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 II rowsort
SELECT + 76 AS col2, 76 AS col1
----
76
76

query I rowsort
SELECT 61 - - 95
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * - SUM( ALL 20 ) + 33 + - 11 - 8 + - 74 + + 93
----
53

skipif mysql # not compatible
query I rowsort label-2
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * - SUM ( ALL 20 ) + 33 + - 11 - 8 + - 74 + + 93
----
53

query I rowsort
SELECT 6 * + + 93
----
558

query I rowsort
SELECT 12 + 95
----
107

query II rowsort
SELECT + 40, + 56 * 38 * + 26 AS col2
----
40
55328

query I rowsort
SELECT ALL 69 - - 24
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7
SELECT SUM( - - 96 ) DIV + 17 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7
SELECT SUM ( - - 96 ) / + 17 AS col0
----
5

query I rowsort
SELECT 22 * + - 99 AS col0
----
-2178

query II rowsort
SELECT ALL 39 * 80 * - + 9 AS col1, 99
----
-28080
99

query I rowsort
SELECT - 98 - 85 col2
----
-183

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

skipif mysql # not compatible
query I rowsort label-11
SELECT SUM ( + 96 )
----
96

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

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

query I rowsort
SELECT ALL - 38 * + 14 * - + 72
----
38304

query I rowsort
SELECT 92 * 87 AS col2
----
8004

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-15
SELECT + ( + 62 ) + + COUNT( * ) DIV 70 * + - ( - 80 ), 51 - 47 + + 70 - CASE 68 WHEN COUNT( * ) THEN NULL ELSE 16 + COUNT( * ) * - 20 END * MAX( DISTINCT - 12 * + 45 ) * 35 AS col1
----
62
-75526

skipif mysql # not compatible
query II rowsort label-15
SELECT + ( + 62 ) + + COUNT ( * ) / 70 * + - ( - 80 ), 51 - 47 + + 70 - CASE 68 WHEN COUNT ( * ) THEN NULL ELSE 16 + COUNT ( * ) * - 20 END * MAX ( DISTINCT - 12 * + 45 ) * 35 AS col1
----
62
-75526

query I rowsort
SELECT - + ( - 78 ) col1
----
78

query I rowsort
SELECT DISTINCT - 94 * - 55 AS col1
----
5170

onlyif mysql # DIV for integer division: 
query I rowsort label-18
SELECT 40 + + 45 + + 16 DIV + 86
----
85

skipif mysql # not compatible
query I rowsort label-18
SELECT 40 + + 45 + + 16 / + 86
----
85

query I rowsort
SELECT - 57 * + + 55 * - - 67
----
-210045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-20
SELECT CAST( NULL AS SIGNED ) - + CASE + 25 WHEN - 76 THEN NULL WHEN - CASE - 67 WHEN + CASE - - 77 WHEN - MIN( DISTINCT - COALESCE ( 20, + 76 ) ) * - CASE CASE 63 WHEN + MIN( DISTINCT 49 ) THEN 10 - + 23 * - 63 WHEN 22 THEN ( + 66 ) END WHEN + 38 * - 32 THEN NULL WHEN 12 THEN CASE COUNT( * ) WHEN - 2 THEN NULL ELSE 92 * 1 + 26 * COUNT( * ) END * 19 + - 82 ELSE 20 * 72 END + + 45 THEN NULL WHEN 76 * + 4 THEN 35 - CASE + NULLIF ( 59, + MIN( 7 ) + MIN( 34 ) * 48 ) WHEN + 4 - 31 * 85 THEN - 12 END ELSE NULL END THEN + 13 END / + 91 + - ( COUNT( * ) ) THEN 15 + + ( + 88 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-20
SELECT CAST ( NULL AS INTEGER ) - + CASE + 25 WHEN - 76 THEN NULL WHEN - CASE - 67 WHEN + CASE - - 77 WHEN - MIN ( DISTINCT - COALESCE ( 20, + 76 ) ) * - CASE CASE 63 WHEN + MIN ( DISTINCT 49 ) THEN 10 - + 23 * - 63 WHEN 22 THEN ( + 66 ) END WHEN + 38 * - 32 THEN NULL WHEN 12 THEN CASE COUNT ( * ) WHEN - 2 THEN NULL ELSE 92 * 1 + 26 * COUNT ( * ) END * 19 + - 82 ELSE 20 * 72 END + + 45 THEN NULL WHEN 76 * + 4 THEN 35 - CASE + NULLIF ( 59, + MIN ( 7 ) + MIN ( 34 ) * 48 ) WHEN + 4 - 31 * 85 THEN - 12 END ELSE NULL END THEN + 13 END / + 91 + - ( COUNT ( * ) ) THEN 15 + + ( + 88 ) ELSE NULL END
----
NULL

query II rowsort
SELECT - + 17, - 4 AS col2
----
-17
-4

query I rowsort
SELECT DISTINCT 75 + + + 97
----
172

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-24
SELECT ALL - + 80 + - 16 + - + 91 AS col0, + 87 * + - 8 + - - COALESCE ( ( 53 ), - - MAX( 27 ) DIV - 29 )
----
-187
-643

skipif mysql # not compatible
query II rowsort label-24
SELECT ALL - + 80 + - 16 + - + 91 AS col0, + 87 * + - 8 + - - COALESCE ( ( 53 ), - - MAX ( 27 ) / - 29 )
----
-187
-643

query I rowsort
SELECT ALL + - 68 + + 75 AS col2
----
7

query I rowsort
SELECT ALL - - 88 + + 54
----
142

query I rowsort
SELECT - 90 + - 62 * - 98
----
5986

query I rowsort
SELECT - 59 * - 96 AS col2
----
5664

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

skipif mysql # not compatible
query I rowsort label-29
SELECT 20 + + COUNT ( * ) AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-30
SELECT 45 + - 10 * CASE + CAST( NULL AS SIGNED ) WHEN 30 - CAST( - COUNT( * ) AS SIGNED ) / + - 27 THEN + NULLIF ( + 21, 3 * 39 - 33 ) WHEN + ( + CAST( NULL AS DECIMAL ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-30
SELECT 45 + - 10 * CASE + CAST ( NULL AS INTEGER ) WHEN 30 - CAST ( - COUNT ( * ) AS INTEGER ) / + - 27 THEN + NULLIF ( + 21, 3 * 39 - 33 ) WHEN + ( + CAST ( NULL AS REAL ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-31
SELECT SUM( - - 40 ) DIV - COUNT( * ) + + 52 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-31
SELECT SUM ( - - 40 ) / - COUNT ( * ) + + 52 AS col1
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT DISTINCT + 83 * + - 30 * COUNT( * ) AS col1
----
-2490

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT + 83 * + - 30 * COUNT ( * ) AS col1
----
-2490

query I rowsort
SELECT DISTINCT + 10 + - 37 AS col1
----
-27

query II rowsort
SELECT ALL - 35, 14 AS col0
----
-35
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-36
SELECT + 63 DIV + COUNT( * ) + - ( CASE + + 76 WHEN - 7 THEN NULL ELSE 90 END ), - 67 + + - 34 AS col0
----
-27
-101

skipif mysql # not compatible
query II rowsort label-36
SELECT + 63 / + COUNT ( * ) + - ( CASE + + 76 WHEN - 7 THEN NULL ELSE 90 END ), - 67 + + - 34 AS col0
----
-27
-101

query I rowsort
SELECT 80 + + + 68
----
148

query I rowsort
SELECT DISTINCT - 20 * - 60 AS col0
----
1200

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

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

query I rowsort
SELECT 77 * + - 6 col0
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT + 12 * + - 62 + + 48 + + MIN( ALL - - 5 )
----
-691

skipif mysql # not compatible
query I rowsort label-41
SELECT + 12 * + - 62 + + 48 + + MIN ( ALL - - 5 )
----
-691

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ( + 23 ) + + MIN( DISTINCT + 66 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-42
SELECT ( + 23 ) + + MIN ( DISTINCT + 66 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT COUNT( DISTINCT 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-43
SELECT COUNT ( DISTINCT 62 ) AS col0
----
1

query II rowsort
SELECT DISTINCT + 57 AS col0, 20 AS col1
----
57
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-45
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, 68 * - 62 + - 89
----
NULL
-4305

skipif mysql # not compatible
query II rowsort label-45
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 68 * - 62 + - 89
----
NULL
-4305

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT - 62 * 16 + - COUNT( * ) - + MIN( + 89 ) * ( + - 55 ) + - 14 AS col2
----
3888

skipif mysql # not compatible
query I rowsort label-47
SELECT - 62 * 16 + - COUNT ( * ) - + MIN ( + 89 ) * ( + - 55 ) + - 14 AS col2
----
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT + + MIN( + 17 ) + - + 96 / CASE - 26 WHEN + + 44 THEN - - ( - COUNT( * ) ) + + + 36 WHEN - SUM( ALL + - 64 ) THEN 87 WHEN 32 THEN NULL END * - 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT + + MIN ( + 17 ) + - + 96 / CASE - 26 WHEN + + 44 THEN - - ( - COUNT ( * ) ) + + + 36 WHEN - SUM ( ALL + - 64 ) THEN 87 WHEN 32 THEN NULL END * - 67 col0
----
NULL

query I rowsort
SELECT ALL 75 * - - 72
----
5400

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT + NULLIF ( 11, - + 12 ) * - - 89 + + COUNT( * ) + + - 60 * - 29
----
2720

skipif mysql # not compatible
query I rowsort label-51
SELECT + NULLIF ( 11, - + 12 ) * - - 89 + + COUNT ( * ) + + - 60 * - 29
----
2720

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-53
SELECT - - 52 * 99 + - + CAST( CAST( 70 AS DECIMAL ) AS SIGNED ) col0
----
5078

skipif mysql # not compatible
query I rowsort label-53
SELECT - - 52 * 99 + - + CAST ( CAST ( 70 AS REAL ) AS INTEGER ) col0
----
5078

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-54
SELECT + 71 DIV CAST( - 83 AS SIGNED ) * + + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-54
SELECT + 71 / CAST ( - 83 AS INTEGER ) * + + 61 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-55
SELECT - COUNT ( * ) + + MAX ( ALL + 60 ) AS col0
----
59

query I rowsort
SELECT ALL + 16 + - 53
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT DISTINCT - COUNT( * ) + - CASE + + 33 WHEN 74 THEN - - 68 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT - COUNT ( * ) + - CASE + + 33 WHEN 74 THEN - - 68 END AS col0
----
NULL

query I rowsort
SELECT + - 35 + + 16 AS col2
----
-19

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

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

query I rowsort
SELECT + + 60 + + - 70 + - ( - 82 ) * - - 89
----
7288

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT DISTINCT + 22 + + - MIN( DISTINCT - + 54 ) * + - COUNT( * ) * - - 24 col2
----
-1274

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT + 22 + + - MIN ( DISTINCT - + 54 ) * + - COUNT ( * ) * - - 24 col2
----
-1274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-63
SELECT + + COALESCE ( + COUNT( * ), - 59 * + 19 - + SUM( DISTINCT - 19 ) * + 40 - + 34 DIV + + 44 * + COALESCE ( 8, 31 ) + 48, - ( + 63 ) ) - + 29 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-63
SELECT + + COALESCE ( + COUNT ( * ), - 59 * + 19 - + SUM ( DISTINCT - 19 ) * + 40 - + 34 / + + 44 * + COALESCE ( 8, 31 ) + 48, - ( + 63 ) ) - + 29 AS col1
----
-28

query I rowsort
SELECT - 57 + - 21 + + 10 * ( + 28 )
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT DISTINCT CASE - ( - 77 ) WHEN + - 14 * + + 19 - + ( - 54 ) THEN NULL WHEN + - 78 / - COUNT( * ) THEN - 55 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT CASE - ( - 77 ) WHEN + - 14 * + + 19 - + ( - 54 ) THEN NULL WHEN + - 78 / - COUNT ( * ) THEN - 55 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-66
SELECT ALL + 97 * - - 65 col0, + 71 DIV + + COUNT( * )
----
6305
71

skipif mysql # not compatible
query II rowsort label-66
SELECT ALL + 97 * - - 65 col0, + 71 / + + COUNT ( * )
----
6305
71

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT - SUM( ALL - 33 ) + + - 89
----
-56

skipif mysql # not compatible
query I rowsort label-67
SELECT - SUM ( ALL - 33 ) + + - 89
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT ALL CASE - 13 WHEN - 90 + - 19 THEN - 76 - - + ( - 60 ) WHEN 46 THEN + ( + 83 ) + - - COALESCE ( + 35, 36 + + 93 * COUNT( ALL ( - 91 ) ) ) * - 63 END * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL CASE - 13 WHEN - 90 + - 19 THEN - 76 - - + ( - 60 ) WHEN 46 THEN + ( + 83 ) + - - COALESCE ( + 35, 36 + + 93 * COUNT ( ALL ( - 91 ) ) ) * - 63 END * - 69
----
NULL

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

skipif mysql # not compatible
query I rowsort label-69
SELECT - 41 + 93 + CAST ( NULL AS INTEGER ) / + 5 * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - + 48, 3 ) * + 65
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ALL NULLIF ( 15, COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL NULLIF ( 15, COUNT ( * ) )
----
15

query I rowsort
SELECT DISTINCT + 79 - 74
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-73
SELECT - ( + 60 ) DIV - 6 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-73
SELECT - ( + 60 ) / - 6 AS col2
----
10

query I rowsort
SELECT 34 * - + 71 * - - 82 + + 48 AS col2
----
-197900

query I rowsort
SELECT - 75 * + - ( ( 96 ) )
----
7200

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

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

query II rowsort
SELECT ( - + 83 ) col2, 79 * 25 + + + 42
----
-83
2017

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

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT - 45 * MAX( 20 ) * + 89
----
-80100

skipif mysql # not compatible
query I rowsort label-79
SELECT - 45 * MAX ( 20 ) * + 89
----
-80100

query I rowsort
SELECT DISTINCT - 90 * + 27
----
-2430

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

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

query II rowsort
SELECT ALL + - 58 * - 42 * - 66 * - 30 + 54 AS col0, - 50
----
4823334
-50

query II rowsort
SELECT - 33 - - ( - 38 ) col0, - 25 * 43
----
-71
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT - - 5 * + MAX( ALL + - ( + 98 ) )
----
-490

skipif mysql # not compatible
query I rowsort label-84
SELECT - - 5 * + MAX ( ALL + - ( + 98 ) )
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT COUNT( * ) * - CASE 22 WHEN 21 * + 58 * COUNT( * ) THEN NULL WHEN - - COUNT( * ) THEN + + 58 / - 40 + + COUNT( * ) ELSE NULL END + - 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT COUNT ( * ) * - CASE 22 WHEN 21 * + 58 * COUNT ( * ) THEN NULL WHEN - - COUNT ( * ) THEN + + 58 / - 40 + + COUNT ( * ) ELSE NULL END + - 20 AS col2
----
NULL

query I rowsort
SELECT + + COALESCE ( - 93, 9 ) AS col2
----
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT ALL - 26 * + 29 + - 13 - - 99 + 44 * - NULLIF ( + - 54, - - 6 - + CASE 29 WHEN - 96 + COUNT( * ) + - 47 THEN - 60 - 32 * - COUNT( * ) WHEN - 54 + 78 / 42 THEN SUM( ALL - 96 ) * 25 END + MIN( ALL - 96 ) * + 74 ) * COUNT( * ) + 1
----
1709

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL - 26 * + 29 + - 13 - - 99 + 44 * - NULLIF ( + - 54, - - 6 - + CASE 29 WHEN - 96 + COUNT ( * ) + - 47 THEN - 60 - 32 * - COUNT ( * ) WHEN - 54 + 78 / 42 THEN SUM ( ALL - 96 ) * 25 END + MIN ( ALL - 96 ) * + 74 ) * COUNT ( * ) + 1
----
1709

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-89
SELECT + - NULLIF ( + 6, - + 78 * 85 DIV + + 69 * + CASE NULLIF ( - 48, - ( - - COUNT( * ) ) ) WHEN + - CASE - 88 WHEN 38 THEN 32 WHEN 28 - + 36 * MIN( ALL - 23 ) THEN 29 * - 32 + - 96 ELSE + 30 * 18 END * ( + 99 * 9 - NULLIF ( 35, 13 + + 45 * COUNT( * ) ) ) THEN MIN( ALL + 61 ) - - 5 ELSE 92 END ) - + 73 DIV - 74
----
-6

skipif mysql # not compatible
query I rowsort label-89
SELECT + - NULLIF ( + 6, - + 78 * 85 / + + 69 * + CASE NULLIF ( - 48, - ( - - COUNT ( * ) ) ) WHEN + - CASE - 88 WHEN 38 THEN 32 WHEN 28 - + 36 * MIN ( ALL - 23 ) THEN 29 * - 32 + - 96 ELSE + 30 * 18 END * ( + 99 * 9 - NULLIF ( 35, 13 + + 45 * COUNT ( * ) ) ) THEN MIN ( ALL + 61 ) - - 5 ELSE 92 END ) - + 73 / - 74
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-90
SELECT ALL 36 * - - 0 + + COUNT( + 90 ) + 92 + - 72 / - 37 - - 13 + 37 - - CAST( NULL AS SIGNED ) * - 91 * COUNT( * ) * 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL 36 * - - 0 + + COUNT ( + 90 ) + 92 + - 72 / - 37 - - 13 + 37 - - CAST ( NULL AS INTEGER ) * - 91 * COUNT ( * ) * 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL - + MAX( DISTINCT 70 ) * 95 * 69 + 39
----
-458811

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL - + MAX ( DISTINCT 70 ) * 95 * 69 + 39
----
-458811

query II rowsort
SELECT - 63 + + 88, + 10 AS col0
----
25
10

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT + COUNT( * ) * 44 * + + 96
----
4224

skipif mysql # not compatible
query I rowsort label-93
SELECT + COUNT ( * ) * 44 * + + 96
----
4224

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

skipif mysql # not compatible
query I rowsort label-94
SELECT + + 23 / - COUNT ( * )
----
-23

query I rowsort
SELECT + 46 - + + 76 AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-96
SELECT ALL - 60 * CAST( - MAX( DISTINCT 35 ) AS SIGNED )
----
2100

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL - 60 * CAST ( - MAX ( DISTINCT 35 ) AS INTEGER )
----
2100

query I rowsort
SELECT + NULLIF ( - 97, - 55 * 31 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT + + CASE + - 80 WHEN MAX( DISTINCT + ( 79 ) ) * - 99 + + 95 - - 65 THEN NULL ELSE - - 91 END * - - 75 - + ( 58 ) * COALESCE ( 14, COUNT( * ) + 69, ( 31 ) * - 85 )
----
6013

skipif mysql # not compatible
query I rowsort label-98
SELECT + + CASE + - 80 WHEN MAX ( DISTINCT + ( 79 ) ) * - 99 + + 95 - - 65 THEN NULL ELSE - - 91 END * - - 75 - + ( 58 ) * COALESCE ( 14, COUNT ( * ) + 69, ( 31 ) * - 85 )
----
6013

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ALL NULLIF ( - + CASE + + 32 WHEN - + 11 THEN - 56 * 90 - + - ( - 52 ) ELSE - - 25 - + COUNT( * ) + - 55 * - ( MIN( - 80 ) ) END, - COUNT( * ) ) AS col2
----
4376

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL NULLIF ( - + CASE + + 32 WHEN - + 11 THEN - 56 * 90 - + - ( - 52 ) ELSE - - 25 - + COUNT ( * ) + - 55 * - ( MIN ( - 80 ) ) END, - COUNT ( * ) ) AS col2
----
4376

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT + COUNT( * ) + - - COUNT( * ) * + 54 * - - 7
----
379

skipif mysql # not compatible
query I rowsort label-100
SELECT + COUNT ( * ) + - - COUNT ( * ) * + 54 * - - 7
----
379

query II rowsort
SELECT - 62 AS col2, - 44 AS col2
----
-62
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT DISTINCT MAX( 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT MAX ( 33 ) AS col0
----
33

query I rowsort
SELECT + 82 + 51 AS col0
----
133

query I rowsort
SELECT ALL + 75 * + - 80 * + 72 * - 47 * - 47 AS col2
----
-954288000

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

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

query I rowsort
SELECT ALL 16 * + + 37
----
592

onlyif mysql # aggregate syntax: 
query II rowsort label-107
SELECT 5 + - ( + COUNT( * ) ), ( 50 ) col2
----
4
50

skipif mysql # not compatible
query II rowsort label-107
SELECT 5 + - ( + COUNT ( * ) ), ( 50 ) col2
----
4
50

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT DISTINCT MIN( DISTINCT + 25 ) + + - 33 * - COUNT( * ) + 66
----
124

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT MIN ( DISTINCT + 25 ) + + - 33 * - COUNT ( * ) + 66
----
124

query I rowsort
SELECT ALL - 3 + - 56 AS col1
----
-59

query I rowsort
SELECT - ( - - 32 ) * 46 + - - 48 + 34
----
-1390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-111
SELECT + 53 DIV 92 * - - COUNT( DISTINCT + 55 ) + 15
----
15

skipif mysql # not compatible
query I rowsort label-111
SELECT + 53 / 92 * - - COUNT ( DISTINCT + 55 ) + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT - ( + + 87 ) * - + 25 + - 71 - + - CASE 51 WHEN - 41 THEN NULL WHEN - - CASE + + 13 WHEN - COALESCE ( CASE - 96 WHEN 0 THEN NULL WHEN + 33 THEN 74 ELSE NULL END, 33 + 65 * - 48 ) THEN - COUNT( * ) ELSE NULL END * 47 THEN - COUNT( * ) / + 28 END * 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-112
SELECT - ( + + 87 ) * - + 25 + - 71 - + - CASE 51 WHEN - 41 THEN NULL WHEN - - CASE + + 13 WHEN - COALESCE ( CASE - 96 WHEN 0 THEN NULL WHEN + 33 THEN 74 ELSE NULL END, 33 + 65 * - 48 ) THEN - COUNT ( * ) ELSE NULL END * 47 THEN - COUNT ( * ) / + 28 END * 52 AS col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-115
SELECT NULLIF ( + 54, 16 ) + - CASE - COUNT( DISTINCT + 51 ) WHEN + COUNT( * ) THEN + COALESCE ( - - 43, - COUNT( * ), - 83 * COALESCE ( + 60, + 74 * - 66 ) * 76 - + 80 * ( 33 * + 76 ) ) * + 69 + + 77 / 15 ELSE NULL END + COUNT( - CAST( 13 AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT NULLIF ( + 54, 16 ) + - CASE - COUNT ( DISTINCT + 51 ) WHEN + COUNT ( * ) THEN + COALESCE ( - - 43, - COUNT ( * ), - 83 * COALESCE ( + 60, + 74 * - 66 ) * 76 - + 80 * ( 33 * + 76 ) ) * + 69 + + 77 / 15 ELSE NULL END + COUNT ( - CAST ( 13 AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-116
SELECT + 70 / ( 26 ) + - + 61 + + CASE + SUM( DISTINCT - 38 ) WHEN 83 * - - CAST( - - 28 AS SIGNED ) / 28 THEN 65 + + - 98 END * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-116
SELECT + 70 / ( 26 ) + - + 61 + + CASE + SUM ( DISTINCT - 38 ) WHEN 83 * - - CAST ( - - 28 AS INTEGER ) / 28 THEN 65 + + - 98 END * 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-117
SELECT + COUNT( * ) DIV - 15 * 4 - + - 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-117
SELECT + COUNT ( * ) / - 15 * 4 - + - 6 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-118
SELECT COUNT( * ) + - + NULLIF ( - ( + - 67 ), + 69 DIV + COUNT( * ) ) + + ( - 59 ) + - 94 DIV + + ( - 79 )
----
-124

skipif mysql # not compatible
query I rowsort label-118
SELECT COUNT ( * ) + - + NULLIF ( - ( + - 67 ), + 69 / + COUNT ( * ) ) + + ( - 59 ) + - 94 / + + ( - 79 )
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-119
SELECT ALL + 16 + - 65 * + CAST( NULL AS SIGNED ) AS col0, - CASE - - 72 WHEN + 50 THEN - + 14 WHEN + 42 * + - CASE - 1 WHEN 19 THEN NULL WHEN CASE + COUNT( * ) WHEN 52 * + 83 THEN 33 WHEN + 0 THEN NULL ELSE NULL END - 19 THEN - COUNT( DISTINCT + 38 ) END THEN NULL END + 43
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-119
SELECT ALL + 16 + - 65 * + CAST ( NULL AS INTEGER ) AS col0, - CASE - - 72 WHEN + 50 THEN - + 14 WHEN + 42 * + - CASE - 1 WHEN 19 THEN NULL WHEN CASE + COUNT ( * ) WHEN 52 * + 83 THEN 33 WHEN + 0 THEN NULL ELSE NULL END - 19 THEN - COUNT ( DISTINCT + 38 ) END THEN NULL END + 43
----
NULL
NULL

query I rowsort
SELECT - + 15 * 5 + - + ( 55 )
----
-130

onlyif mysql # DIV for integer division: 
query II rowsort label-121
SELECT DISTINCT - 46 DIV 17 DIV 16, - 61 AS col1
----
0
-61

skipif mysql # not compatible
query II rowsort label-121
SELECT DISTINCT - 46 / 17 / 16, - 61 AS col1
----
0
-61

query I rowsort
SELECT DISTINCT 24 * - 60
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT - 94 + SUM( + 34 )
----
-60

skipif mysql # not compatible
query I rowsort label-123
SELECT - 94 + SUM ( + 34 )
----
-60

query I rowsort
SELECT ALL + 55 + - + 73 * - 61 * - 93 AS col1
----
-414074

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT - COUNT( - 60 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-125
SELECT - COUNT ( - 60 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-126
SELECT + ( + 42 ) + - 73, 40 AS col2, + + 67 * COUNT( * ) AS col1
----
-31
40
67

skipif mysql # not compatible
query III rowsort label-126
SELECT + ( + 42 ) + - 73, 40 AS col2, + + 67 * COUNT ( * ) AS col1
----
-31
40
67

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT 58 * - + 29 - + - 70 + + 89 - + SUM( 52 ) + + 52 AS col1
----
-1523

skipif mysql # not compatible
query I rowsort label-127
SELECT 58 * - + 29 - + - 70 + + 89 - + SUM ( 52 ) + + 52 AS col1
----
-1523

query I rowsort
SELECT ALL - - ( - 32 ) AS col1
----
-32

query I rowsort
SELECT DISTINCT + 61 * + 89
----
5429

query II rowsort
SELECT ALL + 61 AS col1, 26
----
61
26

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT 95 + - - 14 + 13 * COALESCE ( - 62, + 65, + 41 ) + - + NULLIF ( - 53, 40 + + + 46 * - + 2 + + NULLIF ( 81, COUNT( * ) / 65 + SUM( ALL + 13 ) ) )
----
-644

skipif mysql # not compatible
query I rowsort label-131
SELECT 95 + - - 14 + 13 * COALESCE ( - 62, + 65, + 41 ) + - + NULLIF ( - 53, 40 + + + 46 * - + 2 + + NULLIF ( 81, COUNT ( * ) / 65 + SUM ( ALL + 13 ) ) )
----
-644

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

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

query I rowsort
SELECT 90 * - - ( 72 ) AS col0
----
6480

query II rowsort
SELECT 96 + - 86, 61 AS col1
----
10
61

query I rowsort
SELECT DISTINCT 18 * - + 16
----
-288

onlyif mysql # aggregate syntax: 
query II rowsort label-136
SELECT 80 * - - 35 * + 2 * - 46 AS col2, COUNT( * )
----
-257600
1

skipif mysql # not compatible
query II rowsort label-136
SELECT 80 * - - 35 * + 2 * - 46 AS col2, COUNT ( * )
----
-257600
1

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ( MIN( - 18 ) ) * - 18 AS col1
----
324

skipif mysql # not compatible
query I rowsort label-137
SELECT ( MIN ( - 18 ) ) * - 18 AS col1
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT COUNT( * ) + 48 + - 75 * - 26 * + 92 * - 77 + 80 + - 86 AS col1
----
-13813757

skipif mysql # not compatible
query I rowsort label-138
SELECT COUNT ( * ) + 48 + - 75 * - 26 * + 92 * - 77 + 80 + - 86 AS col1
----
-13813757

query I rowsort
SELECT ALL ( 69 ) + - 96 AS col2
----
-27

query I rowsort
SELECT ( + 30 ) * - 91 * - 64
----
174720

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT DISTINCT SUM( DISTINCT - 87 ) + 58 * + - 6 - + 17 + + 94
----
-358

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT SUM ( DISTINCT - 87 ) + 58 * + - 6 - + 17 + + 94
----
-358

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL 68 + SUM( DISTINCT + 29 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL 68 + SUM ( DISTINCT + 29 ) AS col1
----
97

query I rowsort
SELECT ALL 12 + + 70
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT ALL - - 22 * - COALESCE ( - 76, COUNT( * ) ) AS col2
----
1672

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL - - 22 * - COALESCE ( - 76, COUNT ( * ) ) AS col2
----
1672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-145
SELECT DISTINCT - 17 + ( - COUNT( * ) ) - 68 + - + CAST( 53 AS SIGNED ) DIV - - 93, 90 + + 16 AS col0
----
-86
106

skipif mysql # not compatible
query II rowsort label-145
SELECT DISTINCT - 17 + ( - COUNT ( * ) ) - 68 + - + CAST ( 53 AS INTEGER ) / - - 93, 90 + + 16 AS col0
----
-86
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-146
SELECT DISTINCT - - COALESCE ( 28, + + CASE + - NULLIF ( + COUNT( * ), - - NULLIF ( 16, + - 43 + + CASE COUNT( * ) WHEN - 24 * - + 37 * + 58 THEN NULL WHEN + 34 * 78 - + 49 THEN NULL ELSE 14 END * - 50 ) ) WHEN 58 * + 53 + + 48 THEN - 13 WHEN + CAST( NULL AS SIGNED ) + COUNT( * ) THEN NULL ELSE NULL END ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT - - COALESCE ( 28, + + CASE + - NULLIF ( + COUNT ( * ), - - NULLIF ( 16, + - 43 + + CASE COUNT ( * ) WHEN - 24 * - + 37 * + 58 THEN NULL WHEN + 34 * 78 - + 49 THEN NULL ELSE 14 END * - 50 ) ) WHEN 58 * + 53 + + 48 THEN - 13 WHEN + CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN NULL ELSE NULL END ) AS col1
----
28

query I rowsort
SELECT DISTINCT + - 9 + + 81
----
72

query I rowsort
SELECT + 18 - + NULLIF ( + 79, + 2 ) * 82 col0
----
-6460

query II rowsort
SELECT 61 * + 70 AS col0, 1 * 98 AS col1
----
4270
98

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT MAX( - - 6 ) + - - 71
----
77

skipif mysql # not compatible
query I rowsort label-150
SELECT MAX ( - - 6 ) + - - 71
----
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT 53 DIV 43 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-152
SELECT 53 / 43 AS col0
----
1

query I rowsort
SELECT 40 * - - 66 col1
----
2640

query II rowsort
SELECT 84 + 84 AS col1, - 87 AS col0
----
168
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-155
SELECT DISTINCT - - 29 DIV + NULLIF ( - 61, - 3 ) DIV + - COUNT( * ) - + 2 + 25 * + MIN( DISTINCT - 71 ) col0
----
-1777

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT - - 29 / + NULLIF ( - 61, - 3 ) / + - COUNT ( * ) - + 2 + 25 * + MIN ( DISTINCT - 71 ) col0
----
-1777

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT DISTINCT 42 DIV + 94 col2
----
0

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT 42 / + 94 col2
----
0

query I rowsort
SELECT ALL - - 54 * 84
----
4536

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT DISTINCT - - 37 DIV + 1 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT - - 37 / + 1 AS col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-159
SELECT DISTINCT + 93 * 81 * + COUNT( * ) AS col0, 21 AS col2
----
7533
21

skipif mysql # not compatible
query II rowsort label-159
SELECT DISTINCT + 93 * 81 * + COUNT ( * ) AS col0, 21 AS col2
----
7533
21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-161
SELECT - 83 * 32 * - - ( MIN( + 59 ) ) AS col1, 68 AS col0
----
-156704
68

skipif mysql # not compatible
query II rowsort label-161
SELECT - 83 * 32 * - - ( MIN ( + 59 ) ) AS col1, 68 AS col0
----
-156704
68

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL CASE - 89 WHEN - 39 * - COALESCE ( + MAX( - 4 ), - COALESCE ( + - 32, 5 - - + 63, 30 * + - 38 * - - 59 ) ) THEN NULL ELSE ( 17 ) END
----
17

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL CASE - 89 WHEN - 39 * - COALESCE ( + MAX ( - 4 ), - COALESCE ( + - 32, 5 - - + 63, 30 * + - 38 * - - 59 ) ) THEN NULL ELSE ( 17 ) END
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-163
SELECT - CASE 80 WHEN - 42 THEN 93 * CAST( NULL AS SIGNED ) + 86 * - - 48 WHEN - ( - - 1 ) THEN NULL WHEN + 74 + - 63 THEN NULL END - - 92 + + - 22 + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT - CASE 80 WHEN - 42 THEN 93 * CAST ( NULL AS INTEGER ) + 86 * - - 48 WHEN - ( - - 1 ) THEN NULL WHEN + 74 + - 63 THEN NULL END - - 92 + + - 22 + 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT DISTINCT MAX( ALL 25 )
----
25

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT MAX ( ALL 25 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT DISTINCT + 21 + 91 - + 63 DIV - - ( + + 73 ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT + 21 + 91 - + 63 / - - ( + + 73 ) AS col2
----
112

query II rowsort
SELECT DISTINCT 16 AS col2, + 26
----
16
26

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT ALL COALESCE ( + + 52, - + SUM( DISTINCT + ( 59 ) ) ) + 77 + - + 19 * - 97 AS col0
----
1972

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL COALESCE ( + + 52, - + SUM ( DISTINCT + ( 59 ) ) ) + 77 + - + 19 * - 97 AS col0
----
1972

query I rowsort
SELECT + 5 * + - 63 AS col1
----
-315

onlyif mysql # DIV for integer division: 
query I rowsort label-169
SELECT DISTINCT - 31 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT - 31 / + 83 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-170
SELECT - CAST( 82 AS SIGNED ) + - 58 DIV - 15 + - + COUNT( * ) * - 69 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-170
SELECT - CAST ( 82 AS INTEGER ) + - 58 / - 15 + - + COUNT ( * ) * - 69 AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-171
SELECT - MAX( ALL - - CAST( - + 92 AS SIGNED ) ), 13 AS col2
----
92
13

skipif mysql # not compatible
query II rowsort label-171
SELECT - MAX ( ALL - - CAST ( - + 92 AS INTEGER ) ), 13 AS col2
----
92
13

query I rowsort
SELECT ALL 63 * 28
----
1764

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT + CASE 50 WHEN + COUNT( * ) THEN NULL ELSE 30 END * 97 * COUNT( * ) + COUNT( * ) col1
----
2911

skipif mysql # not compatible
query I rowsort label-175
SELECT + CASE 50 WHEN + COUNT ( * ) THEN NULL ELSE 30 END * 97 * COUNT ( * ) + COUNT ( * ) col1
----
2911

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT + 63 + + + SUM( ALL + 22 ) col0
----
85

skipif mysql # not compatible
query I rowsort label-176
SELECT + 63 + + + SUM ( ALL + 22 ) col0
----
85

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

query II rowsort
SELECT + 54 AS col0, 70
----
54
70

query I rowsort
SELECT ALL + - COALESCE ( - 82, - 42 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ( ( + + 78 ) ) * 24 + - + SUM( DISTINCT - 34 ) + - 14 + - + 58 * + 3 + 93 + 13 + - + 0
----
1824

skipif mysql # not compatible
query I rowsort label-180
SELECT ( ( + + 78 ) ) * 24 + - + SUM ( DISTINCT - 34 ) + - 14 + - + 58 * + 3 + 93 + 13 + - + 0
----
1824

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

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

query I rowsort
SELECT ALL 82 * - - 8
----
656

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-184
SELECT DISTINCT 30 * + 88 * - 56 + + ( - COUNT( * ) ) * + 4 DIV - - 77 AS col1
----
-147840

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT 30 * + 88 * - 56 + + ( - COUNT ( * ) ) * + 4 / - - 77 AS col1
----
-147840

query II rowsort
SELECT + 22, + 51 AS col1
----
22
51

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT ALL + NULLIF ( - 34, NULLIF ( + CASE 43 WHEN - - ( - 4 ) * 55 THEN NULL WHEN - MAX( 79 ) + + SUM( - 98 ) THEN + - COUNT( * ) END, 38 ) * + 58 * COUNT( * ) + ( + 40 ) * + 35 ) * + COALESCE ( 79, - 70 * CASE + 3 WHEN 0 THEN 67 WHEN 49 / NULLIF ( - ( COUNT( ALL - 29 ) ), ( + 22 ) * - 52 ) THEN - 34 + 47 END + 68 ) AS col2
----
-2686

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL + NULLIF ( - 34, NULLIF ( + CASE 43 WHEN - - ( - 4 ) * 55 THEN NULL WHEN - MAX ( 79 ) + + SUM ( - 98 ) THEN + - COUNT ( * ) END, 38 ) * + 58 * COUNT ( * ) + ( + 40 ) * + 35 ) * + COALESCE ( 79, - 70 * CASE + 3 WHEN 0 THEN 67 WHEN 49 / NULLIF ( - ( COUNT ( ALL - 29 ) ), ( + 22 ) * - 52 ) THEN - 34 + 47 END + 68 ) AS col2
----
-2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-187
SELECT + CASE + 1 WHEN - - 92 - 39 * + + 90 THEN - 21 ELSE - - CAST( NULL AS SIGNED ) + + - 26 + - COALESCE ( 36, 23 ) END * 27 - - COUNT( * ) + + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-187
SELECT + CASE + 1 WHEN - - 92 - 39 * + + 90 THEN - 21 ELSE - - CAST ( NULL AS INTEGER ) + + - 26 + - COALESCE ( 36, 23 ) END * 27 - - COUNT ( * ) + + - 67
----
NULL

query I rowsort
SELECT ( 18 ) * 35 + - - 48 * - 52 + + 26 AS col0
----
-1840

query I rowsort
SELECT - 89 * + 64 col1
----
-5696

onlyif mysql # DIV for integer division: 
query I rowsort label-190
SELECT ALL + 16 DIV - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL + 16 / - 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-191
SELECT COUNT( * ) AS col2, + 65 + + SUM( DISTINCT ( + 34 ) )
----
1
99

skipif mysql # not compatible
query II rowsort label-191
SELECT COUNT ( * ) AS col2, + 65 + + SUM ( DISTINCT ( + 34 ) )
----
1
99

query I rowsort
SELECT DISTINCT 36 * - 45 + + 98 + - - 51 AS col1
----
-1471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-193
SELECT DISTINCT 5 * COUNT( * ) + + CAST( NULL AS SIGNED ) / - + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT 5 * COUNT ( * ) + + CAST ( NULL AS INTEGER ) / - + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT - 29 + - - COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-194
SELECT - 29 + - - COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL - 71 + + + MAX( DISTINCT + 6 )
----
-65

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - 71 + + + MAX ( DISTINCT + 6 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-196
SELECT ALL + COUNT( * ) DIV - + CAST( - 62 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL + COUNT ( * ) / - + CAST ( - 62 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-197
SELECT DISTINCT NULLIF ( + + MIN( CASE + 4 WHEN + + 76 + + - NULLIF ( + - ( + 93 ), - 5 + 84 + 39 ) - + CAST( NULL AS SIGNED ) THEN - - NULLIF ( + 0, + 67 ) WHEN + 64 + - 25 THEN + 91 END ), COUNT( * ) * - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT NULLIF ( + + MIN ( CASE + 4 WHEN + + 76 + + - NULLIF ( + - ( + 93 ), - 5 + 84 + 39 ) - + CAST ( NULL AS INTEGER ) THEN - - NULLIF ( + 0, + 67 ) WHEN + 64 + - 25 THEN + 91 END ), COUNT ( * ) * - 82 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-198
SELECT SUM ( ALL 79 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-199
SELECT - CAST( NULL AS DECIMAL ), - MIN( DISTINCT - 37 ) + 25 AS col2
----
NULL
62

skipif mysql # not compatible
query II rowsort label-199
SELECT - CAST ( NULL AS REAL ), - MIN ( DISTINCT - 37 ) + 25 AS col2
----
NULL
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-200
SELECT ALL - NULLIF ( 22, CAST( + 6 AS SIGNED ) ) + - 93 - - ( + 74 ) + - 2 + + 4 + + + 16
----
-23

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - NULLIF ( 22, CAST ( + 6 AS INTEGER ) ) + - 93 - - ( + 74 ) + - 2 + + 4 + + + 16
----
-23

query I rowsort
SELECT - 93 * 38 col2
----
-3534

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT - 99 + 44 * - 52 - NULLIF ( + - COUNT( * ), - 82 * - 74 )
----
-2386

skipif mysql # not compatible
query I rowsort label-202
SELECT - 99 + 44 * - 52 - NULLIF ( + - COUNT ( * ), - 82 * - 74 )
----
-2386

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL + ( - COUNT( * ) ) + 44 + COUNT( * ) * - 6 * - COUNT( * ) + + 13
----
62

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL + ( - COUNT ( * ) ) + 44 + COUNT ( * ) * - 6 * - COUNT ( * ) + + 13
----
62

query II rowsort
SELECT + 51 + - 59 col1, 17 AS col1
----
-8
17

query I rowsort
SELECT - 63 * + 62 AS col0
----
-3906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-207
SELECT DISTINCT - NULLIF ( - 68, - CASE + 97 WHEN + + COUNT( * ) + - + 75 THEN - ( + 18 ) WHEN 67 THEN - - CASE + 35 WHEN + MAX( 59 ) THEN - ( 22 ) WHEN 95 THEN + CAST( NULL AS SIGNED ) ELSE NULL END ELSE NULL END * - COUNT( * ) + 78 ) - + 89
----
-21

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT - NULLIF ( - 68, - CASE + 97 WHEN + + COUNT ( * ) + - + 75 THEN - ( + 18 ) WHEN 67 THEN - - CASE + 35 WHEN + MAX ( 59 ) THEN - ( 22 ) WHEN 95 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END ELSE NULL END * - COUNT ( * ) + 78 ) - + 89
----
-21

query II rowsort
SELECT - NULLIF ( - + 29, - 24 + - 61 ) AS col0, 15 * - 75
----
29
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL - 17 - + + 74 * - COUNT( - - 0 ) + + - 87 * - 89
----
7800

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - 17 - + + 74 * - COUNT ( - - 0 ) + + - 87 * - 89
----
7800

query I rowsort
SELECT DISTINCT + CASE 8 WHEN - - 88 * - 7 THEN + 16 * - 4 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-211
SELECT - + 67, MAX( DISTINCT - 30 ) col1
----
-67
-30

skipif mysql # not compatible
query II rowsort label-211
SELECT - + 67, MAX ( DISTINCT - 30 ) col1
----
-67
-30

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

skipif mysql # not compatible
query II rowsort label-212
SELECT 28, COUNT ( * ) AS col2
----
28
1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-215
SELECT + MIN( DISTINCT - 26 ) / + CASE + + NULLIF ( 10, + 92 * - + 97 - - + CAST( NULL AS SIGNED ) ) WHEN 97 + CAST( + ( + + COUNT( * ) ) AS SIGNED ) * COUNT( * ) * 16 * + CAST( NULL AS SIGNED ) + - 21 THEN + 15 END + ( COUNT( * ) ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT + MIN ( DISTINCT - 26 ) / + CASE + + NULLIF ( 10, + 92 * - + 97 - - + CAST ( NULL AS INTEGER ) ) WHEN 97 + CAST ( + ( + + COUNT ( * ) ) AS INTEGER ) * COUNT ( * ) * 16 * + CAST ( NULL AS INTEGER ) + - 21 THEN + 15 END + ( COUNT ( * ) ) * 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT - + 45 * - NULLIF ( + 72, 35 / + COUNT( * ) + + + ( + - 62 ) * COUNT( - + 54 ) ) * + + 75 * - 40 * - - 23
----
-223560000

skipif mysql # not compatible
query I rowsort label-216
SELECT - + 45 * - NULLIF ( + 72, 35 / + COUNT ( * ) + + + ( + - 62 ) * COUNT ( - + 54 ) ) * + + 75 * - 40 * - - 23
----
-223560000

query II rowsort
SELECT + + 47, + 56 AS col1
----
47
56

query II rowsort
SELECT + 22 col2, + 95 AS col1
----
22
95

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT + + MAX( DISTINCT + + 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-219
SELECT + + MAX ( DISTINCT + + 8 ) AS col2
----
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-221
SELECT - + 96 DIV - - 49
----
-1

skipif mysql # not compatible
query I rowsort label-221
SELECT - + 96 / - - 49
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT DISTINCT + 74 * SUM( 47 ) * + - 78 AS col1
----
-271284

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT + 74 * SUM ( 47 ) * + - 78 AS col1
----
-271284

query I rowsort
SELECT ALL - - 83 * + 77 + + ( + - 97 ) AS col1
----
6294

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-224
SELECT + 58 + - CASE + 45 WHEN ( + 26 ) THEN + - 90 * + 52 + + CAST( - MAX( + - 67 ) AS DECIMAL ) + + ( - 87 ) * - - 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT + 58 + - CASE + 45 WHEN ( + 26 ) THEN + - 90 * + 52 + + CAST ( - MAX ( + - 67 ) AS REAL ) + + ( - 87 ) * - - 59 END
----
NULL

query I rowsort
SELECT + + 46 * - 89
----
-4094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-226
SELECT + 72 DIV COALESCE ( - + MAX( DISTINCT + 33 ), - + 86 * 47, 19 + - 80 + - AVG ( DISTINCT 97 ) * + + CASE + - 50 WHEN + 58 THEN 90 + + - 30 WHEN - COUNT( * ) THEN - 94 END * 27 ) DIV 37 + 18 * - CAST( - 34 AS SIGNED )
----
612

skipif mysql # not compatible
query I rowsort label-226
SELECT + 72 / COALESCE ( - + MAX ( DISTINCT + 33 ), - + 86 * 47, 19 + - 80 + - AVG ( DISTINCT 97 ) * + + CASE + - 50 WHEN + 58 THEN 90 + + - 30 WHEN - COUNT ( * ) THEN - 94 END * 27 ) / 37 + 18 * - CAST ( - 34 AS INTEGER )
----
612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-227
SELECT DISTINCT + 58 + - + SUM( + CAST( 10 AS SIGNED ) ) - 66
----
-18

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT + 58 + - + SUM ( + CAST ( 10 AS INTEGER ) ) - 66
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-228
SELECT ALL 24 + 23 AS col1, 15 DIV - 61 AS col2
----
47
0

skipif mysql # not compatible
query II rowsort label-228
SELECT ALL 24 + 23 AS col1, 15 / - 61 AS col2
----
47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL 47 + - - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL 47 + - - COUNT ( * )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-230
SELECT DISTINCT 59 + + ( + - 6 ) + + 22 + + COUNT( * ) - 43 * + 17 * - COUNT( * ) / - 53 + 59 + 95 + - 99 * - CAST( NULL AS SIGNED ) * - 27 * + + ( 5 ) * 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT 59 + + ( + - 6 ) + + 22 + + COUNT ( * ) - 43 * + 17 * - COUNT ( * ) / - 53 + 59 + 95 + - 99 * - CAST ( NULL AS INTEGER ) * - 27 * + + ( 5 ) * 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-231
SELECT ALL 18 * 3 AS col1, ( + + COUNT( * ) ) AS col2
----
54
1

skipif mysql # not compatible
query II rowsort label-231
SELECT ALL 18 * 3 AS col1, ( + + COUNT ( * ) ) AS col2
----
54
1

query I rowsort
SELECT NULLIF ( + 34, - 62 ) * + 31
----
1054

query I rowsort
SELECT 21 * + - COALESCE ( - 15, - 62, - + 88 ) + + + 10 col1
----
325

query I rowsort
SELECT ALL 94 + + - 79 + 40 col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT DISTINCT MAX( DISTINCT 47 ) * + + 73 - + 22 - + - 15 + - + 5 - + 3 * - MAX( + + 47 ) * - 24 + - 3 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT MAX ( DISTINCT 47 ) * + + 73 - + 22 - + - 15 + - + 5 - + 3 * - MAX ( + + 47 ) * - 24 + - 3 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-236
SELECT ALL 11 + - - 34 * + 7 - - COALESCE ( + 73, - NULLIF ( - + 2, - + 97 + + SUM( DISTINCT - 43 ) ) ) + + - MIN( DISTINCT + + 91 ) DIV 40 AS col1
----
320

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL 11 + - - 34 * + 7 - - COALESCE ( + 73, - NULLIF ( - + 2, - + 97 + + SUM ( DISTINCT - 43 ) ) ) + + - MIN ( DISTINCT + + 91 ) / 40 AS col1
----
320

query I rowsort
SELECT 31 * - + 98
----
-3038

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT ALL 81 + - 6 * + 90 - + COUNT( * )
----
-460

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL 81 + - 6 * + 90 - + COUNT ( * )
----
-460

query I rowsort
SELECT DISTINCT 10 - - - 48
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-240
SELECT DISTINCT + ( + - COUNT( * ) ) DIV - COALESCE ( CAST( NULL AS SIGNED ), + 97 + 71 DIV + 9 * 77 ) + 91 * - 88 * - ( - 16 ) * - + 44 col2
----
5637632

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT + ( + - COUNT ( * ) ) / - COALESCE ( CAST ( NULL AS INTEGER ), + 97 + 71 / + 9 * 77 ) + 91 * - 88 * - ( - 16 ) * - + 44 col2
----
5637632

query I rowsort
SELECT 30 * 98
----
2940

onlyif mysql # aggregate syntax: 
query II rowsort label-242
SELECT ALL + 41 - + + MIN( 58 ) AS col1, - 19 AS col2
----
-17
-19

skipif mysql # not compatible
query II rowsort label-242
SELECT ALL + 41 - + + MIN ( 58 ) AS col1, - 19 AS col2
----
-17
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-243
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 70 AS col2, - COUNT( * ) - + 97
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-243
SELECT DISTINCT CAST ( NULL AS REAL ) * + 70 AS col2, - COUNT ( * ) - + 97
----
NULL
-98

query I rowsort
SELECT + 71 + - + 12 + 78 AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT - + MIN( + + COALESCE ( NULLIF ( + 47, - - 30 ), - 77 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-245
SELECT - + MIN ( + + COALESCE ( NULLIF ( + 47, - - 30 ), - 77 ) )
----
-47

query I rowsort
SELECT + 54 - - 48
----
102

query I rowsort
SELECT - - ( - 48 )
----
-48

query I rowsort
SELECT ALL + - 35 * + 16
----
-560

query II rowsort
SELECT DISTINCT - ( - 96 ), + 26 AS col2
----
96
26

query I rowsort
SELECT - COALESCE ( + + 33, - 20 * - 83, 29 - + CASE + ( 18 ) WHEN + - 93 THEN + 45 + + 10 - - 34 + + - 90 * - - 33 ELSE ( + COALESCE ( 67, - 70 ) ) - 64 * 19 END ) + + 19 * 3
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT + 27 * 80 * - + COUNT( * )
----
-2160

skipif mysql # not compatible
query I rowsort label-252
SELECT + 27 * 80 * - + COUNT ( * )
----
-2160

query I rowsort
SELECT ALL + 16 * + 89 AS col0
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT DISTINCT - COUNT( DISTINCT + 28 ) * - 71 * - 60 AS col0
----
-4260

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT - COUNT ( DISTINCT + 28 ) * - 71 * - 60 AS col0
----
-4260

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT COUNT( * ) * + 44 * - 50
----
-2200

skipif mysql # not compatible
query I rowsort label-255
SELECT COUNT ( * ) * + 44 * - 50
----
-2200

query I rowsort
SELECT 99 * + 18
----
1782

query II rowsort
SELECT + 65, 85 + 44 AS col1
----
65
129

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

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

query II rowsort
SELECT ALL - 79, + 58 * - 50 + - 95 AS col0
----
-79
-2995

query I rowsort
SELECT DISTINCT + 27 - - 77 * 29
----
2260

query I rowsort
SELECT NULLIF ( - 13, + AVG ( ALL 61 ) ) * + 23 * - 45 AS col1
----
13455

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

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

query I rowsort
SELECT NULLIF ( + 68, 22 * - 23 - 30 + - 72 ) + - - 83
----
151

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

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL NULLIF ( + - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ), + - 86 ) - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - 5 ) * 59
----
-295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-266
SELECT ALL 28 - - CASE + - CASE + + CAST( - 17 AS SIGNED ) WHEN 44 * - - ( - 63 ) / - + COUNT( * ) THEN 44 WHEN - + 56 THEN + - 5 ELSE NULL END WHEN - 64 THEN NULL ELSE COALESCE ( + ( 27 ), COUNT( * ) ) + - 76 END
----
-21

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL 28 - - CASE + - CASE + + CAST ( - 17 AS INTEGER ) WHEN 44 * - - ( - 63 ) / - + COUNT ( * ) THEN 44 WHEN - + 56 THEN + - 5 ELSE NULL END WHEN - 64 THEN NULL ELSE COALESCE ( + ( 27 ), COUNT ( * ) ) + - 76 END
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-267
SELECT CAST( 66 AS SIGNED ) + - CASE + 17 WHEN + - 44 THEN - 47 ELSE 22 DIV - 94 END + + 57 - + + 78 + - - ( + - 40 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-267
SELECT CAST ( 66 AS INTEGER ) + - CASE + 17 WHEN + - 44 THEN - 47 ELSE 22 / - 94 END + + 57 - + + 78 + - - ( + - 40 ) AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-268
SELECT ALL CAST( 52 AS SIGNED ) * 66
----
3432

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL CAST ( 52 AS INTEGER ) * 66
----
3432

query II rowsort
SELECT 93, 34 AS col2
----
93
34

query II rowsort
SELECT - 42, 41 AS col1
----
-42
41

onlyif mysql # DIV for integer division: 
query I rowsort label-271
SELECT + 43 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-271
SELECT + 43 / - 98 AS col0
----
0

query I rowsort
SELECT 84 * - 96
----
-8064

onlyif mysql # DIV for integer division: 
query I rowsort label-273
SELECT 15 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-273
SELECT 15 / - 69 AS col2
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( - 35, - 88 / - + 76 )
----
35

query II rowsort
SELECT ALL - 4 AS col1, 56 * 81 AS col0
----
-4
4536

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-276
SELECT ALL - MAX( ALL + 13 ) DIV + 30, 61 + + 47 + - 80 col2
----
0
28

skipif mysql # not compatible
query II rowsort label-276
SELECT ALL - MAX ( ALL + 13 ) / + 30, 61 + + 47 + - 80 col2
----
0
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-277
SELECT - 18 * - + 9 DIV + 1, - 96 * + MAX( ALL - 17 ) AS col0
----
162
1632

skipif mysql # not compatible
query II rowsort label-277
SELECT - 18 * - + 9 / + 1, - 96 * + MAX ( ALL - 17 ) AS col0
----
162
1632

query II rowsort
SELECT ALL 67 col0, ( 15 ) AS col2
----
67
15

onlyif mysql # DIV for integer division: 
query I rowsort label-279
SELECT - 75 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-279
SELECT - 75 / 85
----
0

query I rowsort
SELECT ALL + 24 + + + 3 + - 22
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT + ( - 12 ) - - COUNT( * ) - - - NULLIF ( - + 19, - 59 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-281
SELECT + ( - 12 ) - - COUNT ( * ) - - - NULLIF ( - + 19, - 59 ) AS col2
----
8

query II rowsort
SELECT - - 55 * - 28 * + + 73 AS col1, - 69 + + 61
----
-112420
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-283
SELECT DISTINCT + - 35 * - 91 + + CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT DISTINCT + 70 * MIN( - 87 ) + - 30 * 77
----
-8400

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT + 70 * MIN ( - 87 ) + - 30 * 77
----
-8400

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

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

query II rowsort
SELECT DISTINCT + + 3 * - + 16 + + 44 * - 29 AS col1, + ( + - 26 ) + - 70
----
-1324
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT DISTINCT 93 * + 57 + + COUNT( * ) * - 92
----
5209

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT 93 * + 57 + + COUNT ( * ) * - 92
----
5209

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL + COUNT( * ) * - COUNT( * ) + 82
----
81

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + 82
----
81

query I rowsort
SELECT NULLIF ( - + 72, - 29 ) AS col0
----
-72

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-292
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) * - 36 + ( - 2 ) - - + 20
----
54

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) * - 36 + ( - 2 ) - - + 20
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-293
SELECT DISTINCT + COUNT( * ) * - + NULLIF ( - 65, 61 * - 89 * + + 69 ) - + 48 + + 66 DIV - + 87 * 31 * + MAX( + 39 ) * - 26 col1
----
17

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT + COUNT ( * ) * - + NULLIF ( - 65, 61 * - 89 * + + 69 ) - + 48 + + 66 / - + 87 * 31 * + MAX ( + 39 ) * - 26 col1
----
17

query I rowsort
SELECT ALL - 86 * - ( - 48 ) col2
----
-4128

query I rowsort
SELECT - 99 + + 72 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-296
SELECT DISTINCT - CASE + COUNT( * ) WHEN + + 64 THEN NULL ELSE + CAST( NULL AS SIGNED ) - 65 END * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT - CASE + COUNT ( * ) WHEN + + 64 THEN NULL ELSE + CAST ( NULL AS INTEGER ) - 65 END * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT ALL + 13 * - COALESCE ( + 3, - 24, - COUNT( * ), - - 72 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL + 13 * - COALESCE ( + 3, - 24, - COUNT ( * ), - - 72 ) AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT ALL 87 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL 87 / 90
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT 14 * COUNT( * ) - - + 96
----
110

skipif mysql # not compatible
query I rowsort label-300
SELECT 14 * COUNT ( * ) - - + 96
----
110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT MAX( ALL + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-302
SELECT MAX ( ALL + 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT ALL + 89 * - + COUNT( + 44 ) * - 10 + + 88 col1
----
978

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL + 89 * - + COUNT ( + 44 ) * - 10 + + 88 col1
----
978

query II rowsort
SELECT DISTINCT + ( 39 ) AS col0, + 3 AS col2
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT + - 8 - - 15 * - - 84 + - - 70 + - 1 * COUNT( * ) AS col2
----
1321

skipif mysql # not compatible
query I rowsort label-305
SELECT + - 8 - - 15 * - - 84 + - - 70 + - 1 * COUNT ( * ) AS col2
----
1321

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT DISTINCT COUNT( - + 95 ) + + 13 * - + 87 * + 24 * - + 0 - - COUNT( * ) + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT COUNT ( - + 95 ) + + 13 * - + 87 * + 24 * - + 0 - - COUNT ( * ) + COUNT ( * )
----
3

query I rowsort
SELECT ALL + COALESCE ( - 99, - 64 ) + 65 + - 11 * + 22 AS col2
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT - 69 + - NULLIF ( ( - 84 ), 6 * + COUNT( * ) ) * + 62 AS col2
----
5139

skipif mysql # not compatible
query I rowsort label-308
SELECT - 69 + - NULLIF ( ( - 84 ), 6 * + COUNT ( * ) ) * + 62 AS col2
----
5139

onlyif mysql # aggregate syntax: 
query II rowsort label-309
SELECT - + ( 85 ) AS col1, COUNT( * ) + + 48 + - 68 * + - 52 AS col0
----
-85
3585

skipif mysql # not compatible
query II rowsort label-309
SELECT - + ( 85 ) AS col1, COUNT ( * ) + + 48 + - 68 * + - 52 AS col0
----
-85
3585

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT + 96 + - COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-310
SELECT + 96 + - COUNT ( * ) AS col0
----
95

query I rowsort
SELECT NULLIF ( + 40, 78 * 8 ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-312
SELECT DISTINCT - CAST( 67 AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT - CAST ( 67 AS INTEGER ) AS col1
----
-67

query I rowsort
SELECT + - 7 + - + 9 * - 54 + 58 + + + 86 + + + 43 * + - 64
----
-2129

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT DISTINCT + 68 DIV 70 * + - 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT + 68 / 70 * + - 1 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-316
SELECT ALL - 66 DIV + - 6 - - - 51 + + 15
----
-25

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL - 66 / + - 6 - - - 51 + + 15
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-317
SELECT ALL + 82 / + 94 - - ( - - 95 ) - NULLIF ( + 89, + 27 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL + 82 / + 94 - - ( - - 95 ) - NULLIF ( + 89, + 27 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-318
SELECT + CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) * 36
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-322
SELECT - COALESCE ( - - MAX( DISTINCT + + 89 ), + COUNT( * ) * - + 99 DIV + ( - - 20 ) * 97 * + 47 + + - 55 * - - 49 + - 71 * 79, ( - 9 ) ) * 41 + - 50
----
-3699

skipif mysql # not compatible
query I rowsort label-322
SELECT - COALESCE ( - - MAX ( DISTINCT + + 89 ), + COUNT ( * ) * - + 99 / + ( - - 20 ) * 97 * + 47 + + - 55 * - - 49 + - 71 * 79, ( - 9 ) ) * 41 + - 50
----
-3699

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT DISTINCT - 99 * COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT - 99 * COUNT ( * )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-324
SELECT CAST( - + 4 AS SIGNED ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-324
SELECT CAST ( - + 4 AS INTEGER ) AS col2
----
-4

query I rowsort
SELECT + 47 * + 74
----
3478

query I rowsort
SELECT DISTINCT 87 * - - 41 AS col0
----
3567

query I rowsort
SELECT DISTINCT 25 * 66 - + + 28 AS col2
----
1622

query II rowsort
SELECT ALL + 5, 76 col2
----
5
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-329
SELECT - 17 * 92 DIV - + 34 AS col2, - COUNT( * ) AS col2
----
46
-1

skipif mysql # not compatible
query II rowsort label-329
SELECT - 17 * 92 / - + 34 AS col2, - COUNT ( * ) AS col2
----
46
-1

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

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

query I rowsort
SELECT ( 88 ) AS col1
----
88

query I rowsort
SELECT + 4 + 37
----
41

query I rowsort
SELECT 27 * 24 - 79 + - 53 AS col0
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT - 86 - + CASE + COUNT( * ) WHEN 31 THEN 98 END * - - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT - 86 - + CASE + COUNT ( * ) WHEN 31 THEN 98 END * - - 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT + SUM( 63 ) col2
----
63

skipif mysql # not compatible
query I rowsort label-335
SELECT + SUM ( 63 ) col2
----
63

query I rowsort
SELECT ALL + ( + + 87 ) col1
----
87

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-337
SELECT NULLIF ( - - 23, 56 * - + CASE 9 WHEN NULLIF ( 14, + 69 * - + 0 + + + 79 ) THEN + + 82 ELSE + + 96 - + + ( - NULLIF ( 46, - 4 - 18 ) ) - + - CASE CAST( NULL AS DECIMAL ) WHEN 1 + - CAST( + 38 AS SIGNED ) THEN NULL ELSE + 98 END / 71 END ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-337
SELECT NULLIF ( - - 23, 56 * - + CASE 9 WHEN NULLIF ( 14, + 69 * - + 0 + + + 79 ) THEN + + 82 ELSE + + 96 - + + ( - NULLIF ( 46, - 4 - 18 ) ) - + - CASE CAST ( NULL AS REAL ) WHEN 1 + - CAST ( + 38 AS INTEGER ) THEN NULL ELSE + 98 END / 71 END ) AS col0
----
23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-339
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + - 89 + 31 + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + - 89 + 31 + 87 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-340
SELECT ALL 53 * + 69 + + 61 col1, COUNT( * )
----
3718
1

skipif mysql # not compatible
query II rowsort label-340
SELECT ALL 53 * + 69 + + 61 col1, COUNT ( * )
----
3718
1

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT - 0 + + + SUM( + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-341
SELECT - 0 + + + SUM ( + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT DISTINCT - SUM( - - 67 ) * + + COUNT( * ) * + 80 AS col2
----
-5360

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT - SUM ( - - 67 ) * + + COUNT ( * ) * + 80 AS col2
----
-5360

query I rowsort
SELECT + 50 + - 57 AS col0
----
-7

query I rowsort
SELECT ALL - 16 + 43
----
27

query I rowsort
SELECT ALL + 41 + 25
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL 55 * - + 76 * + COUNT( * ) + + - 41
----
-4221

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL 55 * - + 76 * + COUNT ( * ) + + - 41
----
-4221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-347
SELECT ALL + - CAST( + 62 AS SIGNED ) - MIN( - + 65 )
----
3

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL + - CAST ( + 62 AS INTEGER ) - MIN ( - + 65 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-348
SELECT SUM( DISTINCT 32 ) - + 67, COUNT( * ) + 61 * - 90 AS col2
----
-35
-5489

skipif mysql # not compatible
query II rowsort label-348
SELECT SUM ( DISTINCT 32 ) - + 67, COUNT ( * ) + 61 * - 90 AS col2
----
-35
-5489

onlyif mysql # aggregate syntax: 
query II rowsort label-349
SELECT - 83 - 27 + - 55 AS col0, - 79 + - + ( + MAX( 74 ) ) AS col2
----
-165
-153

skipif mysql # not compatible
query II rowsort label-349
SELECT - 83 - 27 + - 55 AS col0, - 79 + - + ( + MAX ( 74 ) ) AS col2
----
-165
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-350
SELECT ALL + 90 * - CAST( NULL AS SIGNED ) + + COUNT( * ) + + COALESCE ( - + COUNT( * ), - 32 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL + 90 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + COALESCE ( - + COUNT ( * ), - 32 ) col1
----
NULL

query II rowsort
SELECT - 93 col1, - 11 + - - 80 + - 34 + + + 21 AS col1
----
-93
56

query II rowsort
SELECT - 96, + 20 AS col2
----
-96
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-353
SELECT DISTINCT - 76 AS col1, COUNT( * ) DIV + 86
----
-76
0

skipif mysql # not compatible
query II rowsort label-353
SELECT DISTINCT - 76 AS col1, COUNT ( * ) / + 86
----
-76
0

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT COUNT( * ) * + COUNT( * ) * + 61 * + 49 AS col0
----
2989

skipif mysql # not compatible
query I rowsort label-354
SELECT COUNT ( * ) * + COUNT ( * ) * + 61 * + 49 AS col0
----
2989

query I rowsort
SELECT ALL + 85 * + 51 AS col1
----
4335

onlyif mysql # aggregate syntax: 
query II rowsort label-356
SELECT ALL - 89, + 46 * - 99 + - COUNT( * ) col0
----
-89
-4555

skipif mysql # not compatible
query II rowsort label-356
SELECT ALL - 89, + 46 * - 99 + - COUNT ( * ) col0
----
-89
-4555

query I rowsort
SELECT 24 - - + 25
----
49

query I rowsort
SELECT NULLIF ( + + 17, - 21 ) * + - 23
----
-391

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-359
SELECT DISTINCT NULLIF ( - 33, - - COUNT( * ) ) DIV + 60 + - 53 * ( - COUNT( * ) ) DIV + 79 + 1 AS col0, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-359
SELECT DISTINCT NULLIF ( - 33, - - COUNT ( * ) ) / + 60 + - 53 * ( - COUNT ( * ) ) / + 79 + 1 AS col0, COUNT ( * ) AS col0
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-360
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) * - - 51 * 55, SUM( 14 ) col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-360
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) * - - 51 * 55, SUM ( 14 ) col0
----
NULL
14

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT 32 * 6 + COUNT( * ) - - + ( 12 ) * + 82 * 84, - 37 col0
----
82849
-37

skipif mysql # not compatible
query II rowsort label-361
SELECT 32 * 6 + COUNT ( * ) - - + ( 12 ) * + 82 * 84, - 37 col0
----
82849
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-362
SELECT DISTINCT 10 + + + 36 + - COUNT( * ) + - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

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

query I rowsort
SELECT DISTINCT - 50 + + 50
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( 51, 93 )
----
-51

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-366
SELECT ALL 54 + + + 81 - + 74 + + ( - COUNT( * ) ) DIV 1 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL 54 + + + 81 - + 74 + + ( - COUNT ( * ) ) / 1 AS col0
----
60

query II rowsort
SELECT DISTINCT - + 63 AS col0, 42
----
-63
42

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT + - 23 * + + COUNT( ALL - + 26 ) * 85 + COUNT( * ) + + 73 + 47
----
-1834

skipif mysql # not compatible
query I rowsort label-368
SELECT + - 23 * + + COUNT ( ALL - + 26 ) * 85 + COUNT ( * ) + + 73 + 47
----
-1834

query I rowsort
SELECT ALL + CASE ( ( + 31 ) ) WHEN 76 THEN NULL WHEN 92 THEN + ( - 68 ) ELSE - 94 END AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ( + 45 ) + - + COALESCE ( - - COUNT( * ), - + 70 / + COUNT( * ) ) + - CASE - 9 WHEN - + 29 THEN + 59 * + MAX( ALL - 38 ) - + + 18 + - 69 + - + 62 ELSE NULL END * - - 90 + 97 + 53 * + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT ( + 45 ) + - + COALESCE ( - - COUNT ( * ), - + 70 / + COUNT ( * ) ) + - CASE - 9 WHEN - + 29 THEN + 59 * + MAX ( ALL - 38 ) - + + 18 + - 69 + - + 62 ELSE NULL END * - - 90 + 97 + 53 * + 91 AS col2
----
NULL

query I rowsort
SELECT ALL + + 9 + - + 59 * - - 10 AS col1
----
-581

query I rowsort
SELECT - 73 * + 68
----
-4964

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-373
SELECT DISTINCT NULLIF ( - + COUNT( * ), + COUNT( * ) ) DIV 24 AS col2, NULLIF ( 89, ( - 76 ) ) DIV 39 + + COALESCE ( - - 94, + + 54 + - 17 ) DIV + - 10 + - 4 + + COUNT( ALL - 14 ) * - 54
----
0
-65

skipif mysql # not compatible
query II rowsort label-373
SELECT DISTINCT NULLIF ( - + COUNT ( * ), + COUNT ( * ) ) / 24 AS col2, NULLIF ( 89, ( - 76 ) ) / 39 + + COALESCE ( - - 94, + + 54 + - 17 ) / + - 10 + - 4 + + COUNT ( ALL - 14 ) * - 54
----
0
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-374
SELECT - 87 - NULLIF ( CAST( NULL AS SIGNED ), + COALESCE ( - 75, 69 * 83 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-374
SELECT - 87 - NULLIF ( CAST ( NULL AS INTEGER ), + COALESCE ( - 75, 69 * 83 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 42 * - 47 * + 78
----
153972

query I rowsort
SELECT NULLIF ( 11, - 41 / + + 95 + + 64 ) AS col2
----
11

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

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL - CAST ( NULL AS INTEGER ) * 96 AS col0
----
NULL

query I rowsort
SELECT + 53 + 32 AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-379
SELECT 56 * - - 29 * - COUNT( * ) + + - 80 col1, + 44 * COUNT( * ) AS col1
----
-1704
44

skipif mysql # not compatible
query II rowsort label-379
SELECT 56 * - - 29 * - COUNT ( * ) + + - 80 col1, + 44 * COUNT ( * ) AS col1
----
-1704
44

query I rowsort
SELECT 87 + + 12 AS col1
----
99

query I rowsort
SELECT + 36 - - 62 - + + 84 AS col1
----
14

query II rowsort
SELECT - 32, 35 AS col0
----
-32
35

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

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

query I rowsort
SELECT 18 * 71
----
1278

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT DISTINCT SUM( - 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-385
SELECT DISTINCT SUM ( - 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT ALL 70 * SUM( + 73 ) col2
----
5110

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL 70 * SUM ( + 73 ) col2
----
5110

query I rowsort
SELECT ALL + ( - 20 ) * 17 col0
----
-340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-388
SELECT ALL + CAST( ( + 67 ) AS SIGNED ) * 98
----
6566

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL + CAST ( ( + 67 ) AS INTEGER ) * 98
----
6566

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-389
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2, + 24 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-389
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, + 24 AS col2
----
NULL
24

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT 55 DIV + - 89 + - 85
----
-85

skipif mysql # not compatible
query I rowsort label-390
SELECT 55 / + - 89 + - 85
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-391
SELECT + MAX( DISTINCT + 36 ) DIV 87 + + + 14
----
14

skipif mysql # not compatible
query I rowsort label-391
SELECT + MAX ( DISTINCT + 36 ) / 87 + + + 14
----
14

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

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

query I rowsort
SELECT ( 42 ) * + 94 col0
----
3948

query I rowsort
SELECT ALL 98 * + 93 + - 26 AS col2
----
9088

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT DISTINCT + COUNT( * ) * - 86 * - MAX( 11 ) * + 17 * 4 + + 3 + + - 66
----
64265

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT + COUNT ( * ) * - 86 * - MAX ( 11 ) * + 17 * 4 + + 3 + + - 66
----
64265

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT + MIN( - 23 ) col0, + COUNT( 1 )
----
-23
1

skipif mysql # not compatible
query II rowsort label-396
SELECT + MIN ( - 23 ) col0, + COUNT ( 1 )
----
-23
1

onlyif mysql # DIV for integer division: 
query II rowsort label-397
SELECT ALL 22 DIV - + 19, - 49 + + 44 * 90 AS col2
----
-1
3911

skipif mysql # not compatible
query II rowsort label-397
SELECT ALL 22 / - + 19, - 49 + + 44 * 90 AS col2
----
-1
3911

query I rowsort
SELECT + 54 * + 20 * + 94 + - - 81 - 21 + 89 AS col0
----
101669

onlyif mysql # aggregate syntax: 
query II rowsort label-399
SELECT DISTINCT COUNT( * ) * 99 + + 46 AS col1, - 12 + - 65 - + + 42 * ( - 53 ) * 59 + COUNT( * ) col2
----
145
131258

skipif mysql # not compatible
query II rowsort label-399
SELECT DISTINCT COUNT ( * ) * 99 + + 46 AS col1, - 12 + - 65 - + + 42 * ( - 53 ) * 59 + COUNT ( * ) col2
----
145
131258

query I rowsort
SELECT + + 52 * - 2 * + 25
----
-2600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-401
SELECT ALL + 41 / - - 9 + CAST( NULL AS SIGNED ) + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL + 41 / - - 9 + CAST ( NULL AS INTEGER ) + - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT + - 35 + + 31 - - COUNT( * ) + - + 62 * - - 98 * + - 67
----
407089

skipif mysql # not compatible
query I rowsort label-402
SELECT + - 35 + + 31 - - COUNT ( * ) + - + 62 * - - 98 * + - 67
----
407089

query I rowsort
SELECT 77 * - + 5 - 53 + - 29
----
-467

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT - 74 * + SUM( + + 50 ) + ( + + 66 ) + + - 72 + - 72 + + 15 * + 78
----
-2608

skipif mysql # not compatible
query I rowsort label-405
SELECT - 74 * + SUM ( + + 50 ) + ( + + 66 ) + + - 72 + - 72 + + 15 * + 78
----
-2608

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

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) / + + COALESCE ( + 11, - 1 )
----
1

query I rowsort
SELECT 80 * + + 0 * + 12 + - - 62
----
62

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

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

query I rowsort
SELECT DISTINCT + + NULLIF ( + - 67, 74 * + 36 )
----
-67

query I rowsort
SELECT DISTINCT - 72 * 55
----
-3960

onlyif mysql # aggregate syntax: 
query II rowsort label-411
SELECT ALL - 14 - 48, + COALESCE ( - COUNT( * ), + 3, + 82 ) * - 0 * - 53 AS col0
----
-62
0

skipif mysql # not compatible
query II rowsort label-411
SELECT ALL - 14 - 48, + COALESCE ( - COUNT ( * ), + 3, + 82 ) * - 0 * - 53 AS col0
----
-62
0

query I rowsort
SELECT ALL 59 * - 76 + + 12 + + 20 + + - 19 * - 2
----
-4414

query I rowsort
SELECT + - 34 * - - 16 AS col0
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT CASE + 64 WHEN 39 THEN + + MAX( + + NULLIF ( - + NULLIF ( + 8, - - COALESCE ( 47, + - 49 ) ), + 99 ) ) WHEN - 24 * + 31 + + ( + - MAX( 80 ) ) THEN + - ( + 88 ) WHEN 84 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-414
SELECT CASE + 64 WHEN 39 THEN + + MAX ( + + NULLIF ( - + NULLIF ( + 8, - - COALESCE ( 47, + - 49 ) ), + 99 ) ) WHEN - 24 * + 31 + + ( + - MAX ( 80 ) ) THEN + - ( + 88 ) WHEN 84 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - + 95 * - 88 * + 74
----
618640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-416
SELECT ALL COALESCE ( COALESCE ( - 45, - ( 60 ), - 99 + - 82 ), + 78 + + + COALESCE ( - 26, - + 7 + + + 73 * - 33 * + + COUNT( * ) ) + + CAST( NULL AS SIGNED ) * - COUNT( * ) * + + COUNT( * ) + - COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL COALESCE ( COALESCE ( - 45, - ( 60 ), - 99 + - 82 ), + 78 + + + COALESCE ( - 26, - + 7 + + + 73 * - 33 * + + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + + COUNT ( * ) + - COUNT ( * ) )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-417
SELECT - 34 + + MAX( - - ( - 61 ) ) DIV + 64 * - - ( COUNT( * ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-417
SELECT - 34 + + MAX ( - - ( - 61 ) ) / + 64 * - - ( COUNT ( * ) ) AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT ALL + 73 DIV - ( - ( + 61 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL + 73 / - ( - ( + 61 ) ) col1
----
1

query I rowsort
SELECT DISTINCT + 40 * 61 + - - 75 AS col2
----
2515

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-421
SELECT ALL COALESCE ( 31, - 59 ) DIV + 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL COALESCE ( 31, - 59 ) / + 58 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT DISTINCT + NULLIF ( + COUNT( ( 41 ) ), 4 ) * + - COUNT( * ) * + 56 - - + 56
----
0

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT + NULLIF ( + COUNT ( ( 41 ) ), 4 ) * + - COUNT ( * ) * + 56 - - + 56
----
0

query I rowsort
SELECT - 76 * + 21 AS col1
----
-1596

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT + 88 - + 92 DIV + 79 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-425
SELECT + 88 - + 92 / + 79 AS col2
----
87

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

skipif mysql # not compatible
query II rowsort label-426
SELECT - 4 col2, COUNT ( * ) AS col2
----
-4
1

query I rowsort
SELECT - 46 * 73
----
-3358

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT ALL - 96 / CASE + 10 WHEN - 50 THEN 20 + + + COUNT( * ) WHEN + 23 * 30 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL - 96 / CASE + 10 WHEN - 50 THEN 20 + + + COUNT ( * ) WHEN + 23 * 30 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-429
SELECT + 64 + 17 + + COUNT( * ) AS col0, + 25 + + + 70 - - + CAST( NULL AS SIGNED ) * + + 43 + 20
----
82
NULL

skipif mysql # not compatible
query II rowsort label-429
SELECT + 64 + 17 + + COUNT ( * ) AS col0, + 25 + + + 70 - - + CAST ( NULL AS INTEGER ) * + + 43 + 20
----
82
NULL

query I rowsort
SELECT ALL + CASE + ( - 17 ) WHEN + 67 + - 84 * - + 35 * 93 * - 42 THEN + 86 * + 45 * + 44 * 10 ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT ( - - 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL 74 * - 7 + + NULLIF ( - + COUNT( DISTINCT + - 61 ), - 72 + + + 38 )
----
-519

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL 74 * - 7 + + NULLIF ( - + COUNT ( DISTINCT + - 61 ), - 72 + + + 38 )
----
-519

query II rowsort
SELECT + + ( - 50 ) * - 74, - 60 AS col0
----
3700
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-435
SELECT - CAST( NULL AS SIGNED ) / + + 26 + + CAST( NULL AS SIGNED ) AS col1, 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-435
SELECT - CAST ( NULL AS INTEGER ) / + + 26 + + CAST ( NULL AS INTEGER ) AS col1, 25
----
NULL
25

query I rowsort
SELECT DISTINCT + 93 * + 27 - 79 AS col2
----
2432

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT + MAX( 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-437
SELECT + MAX ( 18 ) AS col0
----
18

query II rowsort
SELECT + 46 * - 61 + - - NULLIF ( + - 76, 37 * + - 76 ) AS col0, + 57 * - COALESCE ( - 49, + - 78 ) * - 47 AS col0
----
-2882
-131271

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-440
SELECT DISTINCT 25 * + 38 + - - 4 - + + 60 DIV - - 81
----
954

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT 25 * + 38 + - - 4 - + + 60 / - - 81
----
954

query II rowsort
SELECT ALL + + 99 AS col2, 95 AS col0
----
99
95

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT DISTINCT 4 DIV + 41 * + + ( - 22 )
----
0

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT 4 / + 41 * + + ( - 22 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-443
SELECT + 73 + 39 DIV + - 91 * - 5
----
73

skipif mysql # not compatible
query I rowsort label-443
SELECT + 73 + 39 / + - 91 * - 5
----
73

query I rowsort
SELECT ALL + + 43 AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-445
SELECT + - CAST( - 64 AS SIGNED ) * - 89 AS col2
----
-5696

skipif mysql # not compatible
query I rowsort label-445
SELECT + - CAST ( - 64 AS INTEGER ) * - 89 AS col2
----
-5696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-446
SELECT + CASE CASE - CASE + COUNT( * ) WHEN - COUNT( ALL - 90 ) - - 75 * - 33 * + CAST( NULL AS SIGNED ) THEN + - COUNT( * ) * + - COUNT( * ) * + - 73 END WHEN + CAST( NULL AS SIGNED ) + + 16 * - - COALESCE ( ( - + 34 ), + 99 + - - 16 ) THEN - - 50 * - SUM( DISTINCT + + 76 ) + - AVG ( 65 ) - 49 END WHEN - NULLIF ( + 2, - 44 ) - 15 THEN 92 * - 41 + + 74 WHEN - 58 THEN 50 WHEN CASE - 78 WHEN - MAX( DISTINCT + 30 ) THEN NULL WHEN 63 THEN + 75 ELSE NULL END + - 37 THEN NULL WHEN 34 THEN NULL WHEN + 31 * 72 + 38 THEN NULL ELSE 54 * + 1 END AS col0
----
54

skipif mysql # not compatible
query I rowsort label-446
SELECT + CASE CASE - CASE + COUNT ( * ) WHEN - COUNT ( ALL - 90 ) - - 75 * - 33 * + CAST ( NULL AS INTEGER ) THEN + - COUNT ( * ) * + - COUNT ( * ) * + - 73 END WHEN + CAST ( NULL AS INTEGER ) + + 16 * - - COALESCE ( ( - + 34 ), + 99 + - - 16 ) THEN - - 50 * - SUM ( DISTINCT + + 76 ) + - AVG ( 65 ) - 49 END WHEN - NULLIF ( + 2, - 44 ) - 15 THEN 92 * - 41 + + 74 WHEN - 58 THEN 50 WHEN CASE - 78 WHEN - MAX ( DISTINCT + 30 ) THEN NULL WHEN 63 THEN + 75 ELSE NULL END + - 37 THEN NULL WHEN 34 THEN NULL WHEN + 31 * 72 + 38 THEN NULL ELSE 54 * + 1 END AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT + - 68, 15 * ( - ( COUNT( * ) ) ) AS col2
----
-68
-15

skipif mysql # not compatible
query II rowsort label-447
SELECT + - 68, 15 * ( - ( COUNT ( * ) ) ) AS col2
----
-68
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-448
SELECT + - 24 DIV + 23 + + 76 DIV + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-448
SELECT + - 24 / + 23 + + 76 / + COUNT ( * )
----
75

query I rowsort
SELECT ALL 93 * + 43
----
3999

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-451
SELECT ALL ( + CAST( - - 65 AS SIGNED ) ) AS col0, - COUNT( + 95 ) - - - ( 9 )
----
65
-10

skipif mysql # not compatible
query II rowsort label-451
SELECT ALL ( + CAST ( - - 65 AS INTEGER ) ) AS col0, - COUNT ( + 95 ) - - - ( 9 )
----
65
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-452
SELECT + - CAST( NULL AS DECIMAL ) - - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-452
SELECT + - CAST ( NULL AS REAL ) - - 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT ALL CASE + - 62 WHEN + COUNT( * ) THEN NULL ELSE + + 11 + - 89 * + COUNT( * ) END
----
-78

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL CASE + - 62 WHEN + COUNT ( * ) THEN NULL ELSE + + 11 + - 89 * + COUNT ( * ) END
----
-78

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

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

query I rowsort
SELECT + 88 + 88 + 16 + - + 56 + - + 2 * - - 71
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-456
SELECT ALL 59 + + CASE - + 95 WHEN - MIN( DISTINCT + 33 ) + - + 84 THEN 49 END AS col2, + 99 + + - 64 AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-456
SELECT ALL 59 + + CASE - + 95 WHEN - MIN ( DISTINCT + 33 ) + - + 84 THEN 49 END AS col2, + 99 + + - 64 AS col2
----
NULL
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT - COUNT( * ) - + 46 col0
----
-47

skipif mysql # not compatible
query I rowsort label-458
SELECT - COUNT ( * ) - + 46 col0
----
-47

query I rowsort
SELECT DISTINCT - 91 * - + 1
----
91

query I rowsort
SELECT ALL + 37 + 38 + + + 68 col0
----
143

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-463
SELECT ALL - 74 + - CAST( NULL AS SIGNED ) * - 93 - - 0 + - NULLIF ( COUNT( * ), + - 87 * + + NULLIF ( + 4, + COUNT( * ) ) + - 71 ) * 9 - - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL - 74 + - CAST ( NULL AS INTEGER ) * - 93 - - 0 + - NULLIF ( COUNT ( * ), + - 87 * + + NULLIF ( + 4, + COUNT ( * ) ) + - 71 ) * 9 - - 93 AS col2
----
NULL

query I rowsort
SELECT - 87 + + 5
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-465
SELECT ALL 93 + 4 - + ( + 32 ) + + - 11 + - - 84 + 50 + - 14 + + - CAST( NULL AS SIGNED ) * - 72 * 51 * - 34 + + 62 * + MIN( - + 74 ) * + ( 37 ) + COUNT( * ) * + ( + 62 ) + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL 93 + 4 - + ( + 32 ) + + - 11 + - - 84 + 50 + - 14 + + - CAST ( NULL AS INTEGER ) * - 72 * 51 * - 34 + + 62 * + MIN ( - + 74 ) * + ( 37 ) + COUNT ( * ) * + ( + 62 ) + + 62
----
NULL

query I rowsort
SELECT DISTINCT - 92 * - 45
----
4140

query I rowsort
SELECT ALL + 29 * - 30 AS col0
----
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-468
SELECT COALESCE ( - - 48, - + 21 ) DIV + 38 + - - 23 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-468
SELECT COALESCE ( - - 48, - + 21 ) / + 38 + - - 23 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-469
SELECT DISTINCT - SUM( ALL + 74 ) - + CAST( NULL AS SIGNED ) - + - 75 - + 43 + - - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT - SUM ( ALL + 74 ) - + CAST ( NULL AS INTEGER ) - + - 75 - + 43 + - - 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-470
SELECT DISTINCT - MIN( DISTINCT 61 ) DIV - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT - MIN ( DISTINCT 61 ) / - 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT - 47 - + - SUM( DISTINCT 82 )
----
35

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT - 47 - + - SUM ( DISTINCT 82 )
----
35

query I rowsort
SELECT 78 * 33 + - 54 + - + 73 + 79 + - + 92 + 57
----
2491

query I rowsort
SELECT 62 * - ( 1 )
----
-62

query I rowsort
SELECT ALL - - 23 * + + 56 - - - 7 AS col0
----
1281

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

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

query I rowsort
SELECT ALL - - 31 + + 57 * 53
----
3052

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT 51 * - COUNT( * ) * 85 + 62 * + - 8 col0
----
-4831

skipif mysql # not compatible
query I rowsort label-477
SELECT 51 * - COUNT ( * ) * 85 + 62 * + - 8 col0
----
-4831

query I rowsort
SELECT ALL - 82 + + 22 * 64
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT 62 + COUNT( * ) + + COUNT( * ) - - 72 * - 70
----
-4976

skipif mysql # not compatible
query I rowsort label-479
SELECT 62 + COUNT ( * ) + + COUNT ( * ) - - 72 * - 70
----
-4976

query II rowsort
SELECT + + CASE + + 89 WHEN + ( 61 ) THEN - + ( 61 ) * - - NULLIF ( 77, + 66 + + 77 ) - + 63 + 76 + + - 24 / - + 90 WHEN 97 THEN NULL WHEN 13 / + - 77 THEN NULL END AS col0, 73
----
NULL
73

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-482
SELECT ALL 22 DIV - + 53
----
0

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL 22 / - + 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ALL - NULLIF ( 84, COUNT( * ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL - NULLIF ( 84, COUNT ( * ) ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-484
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) + + 25 + ( + - 64 ) + + + 76 * 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) + + 25 + ( + - 64 ) + + + 76 * 95 AS col0
----
NULL

query II rowsort
SELECT - 91 col1, 32
----
-91
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT 24 * + 84 * - + COUNT( 22 ) AS col2
----
-2016

skipif mysql # not compatible
query I rowsort label-487
SELECT 24 * + 84 * - + COUNT ( 22 ) AS col2
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT NULLIF ( + 96, ( 51 ) - - NULLIF ( - 51, - - ( - 12 ) / - + 73 ) * 71 + - - COALESCE ( 42, 77, + COUNT( * ) ) * 91 ) * + 35 + + + 28 + MAX( - 98 ) / + - CASE + 85 WHEN 61 THEN - 35 * - - 60 + SUM( - 43 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-488
SELECT NULLIF ( + 96, ( 51 ) - - NULLIF ( - 51, - - ( - 12 ) / - + 73 ) * 71 + - - COALESCE ( 42, 77, + COUNT ( * ) ) * 91 ) * + 35 + + + 28 + MAX ( - 98 ) / + - CASE + 85 WHEN 61 THEN - 35 * - - 60 + SUM ( - 43 ) END AS col1
----
NULL

query I rowsort
SELECT 69 + + 99
----
168

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

query I rowsort
SELECT ALL 5 + - 54 col0
----
-49

query I rowsort
SELECT 59 * - 98
----
-5782

query I rowsort
SELECT DISTINCT 52 * 40 * + - 35 * + 44 AS col2
----
-3203200

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT 49 - + COUNT( * ) * - + SUM( DISTINCT - 98 )
----
-49

skipif mysql # not compatible
query I rowsort label-494
SELECT 49 - + COUNT ( * ) * - + SUM ( DISTINCT - 98 )
----
-49

query I rowsort
SELECT 84 * - 68
----
-5712

query I rowsort
SELECT 68 + + ( - 20 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-497
SELECT 3 / - SUM( + 22 ) * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-497
SELECT 3 / - SUM ( + 22 ) * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT 74 * + COUNT( * ) * - + 56 AS col0
----
-4144

skipif mysql # not compatible
query I rowsort label-498
SELECT 74 * + COUNT ( * ) * - + 56 AS col0
----
-4144

query I rowsort
SELECT DISTINCT - 61 * + 81 AS col2
----
-4941

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

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

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL - - COUNT ( DISTINCT + 70 ) AS col1
----
1

query I rowsort
SELECT ( + 1 ) - - 39 * + + 41 AS col2
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT - - 70 * + - 98 * + COUNT( ALL + 6 ) - + 41 AS col1
----
-6901

skipif mysql # not compatible
query I rowsort label-503
SELECT - - 70 * + - 98 * + COUNT ( ALL + 6 ) - + 41 AS col1
----
-6901

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT ALL - - MAX( DISTINCT 50 )
----
50

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL - - MAX ( DISTINCT 50 )
----
50

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

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

query I rowsort
SELECT ALL - + NULLIF ( 28, 59 ) AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-507
SELECT ALL CAST( NULL AS SIGNED ) * + NULLIF ( + COUNT( * ), + ( + ( + 1 ) ) ) / 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL CAST ( NULL AS INTEGER ) * + NULLIF ( + COUNT ( * ), + ( + ( + 1 ) ) ) / 6 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT - 64 DIV + - 19
----
3

skipif mysql # not compatible
query I rowsort label-508
SELECT - 64 / + - 19
----
3

query I rowsort
SELECT + 4 * 77 + + - 50
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT 88 * 86 + + CASE - 37 WHEN - 44 * + + 93 - NULLIF ( - 84, - + 70 + - - NULLIF ( + - 89, + 94 ) - 34 ) + + ( + 39 ) * 68 * - - 17 * - - NULLIF ( 33, + 30 + - 76 * - 15 ) - + AVG ( ALL 84 ) + - ( ( 77 ) ) - COUNT( * ) * + COALESCE ( + 71, 57 ) THEN - 77 - + 0 ELSE 73 END
----
7641

skipif mysql # not compatible
query I rowsort label-510
SELECT 88 * 86 + + CASE - 37 WHEN - 44 * + + 93 - NULLIF ( - 84, - + 70 + - - NULLIF ( + - 89, + 94 ) - 34 ) + + ( + 39 ) * 68 * - - 17 * - - NULLIF ( 33, + 30 + - 76 * - 15 ) - + AVG ( ALL 84 ) + - ( ( 77 ) ) - COUNT ( * ) * + COALESCE ( + 71, 57 ) THEN - 77 - + 0 ELSE 73 END
----
7641

query I rowsort
SELECT 66 - + 80 AS col0
----
-14

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

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

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

skipif mysql # not compatible
query I rowsort label-513
SELECT MAX ( + 7 )
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-514
SELECT DISTINCT - - 53 + 18 + - 41 / - CAST( NULL AS DECIMAL ) + + 47 + CAST( NULL AS DECIMAL ) * 1 + + + 6 + - 92 * - - 31 / 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT - - 53 + 18 + - 41 / - CAST ( NULL AS REAL ) + + 47 + CAST ( NULL AS REAL ) * 1 + + + 6 + - 92 * - - 31 / 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT - 81 * - + 78 * + ( + 96 ) * + 91 + + - COUNT( * )
----
55194047

skipif mysql # not compatible
query I rowsort label-515
SELECT - 81 * - + 78 * + ( + 96 ) * + 91 + + - COUNT ( * )
----
55194047

onlyif mysql # aggregate syntax: 
query II rowsort label-516
SELECT 45 * + - 35 + - - 5 * - 61 * - NULLIF ( 48, + + 90 ) + - COUNT( * ) + + 49 - 22 AS col0, COUNT( * ) * + + COUNT( 71 )
----
13091
1

skipif mysql # not compatible
query II rowsort label-516
SELECT 45 * + - 35 + - - 5 * - 61 * - NULLIF ( 48, + + 90 ) + - COUNT ( * ) + + 49 - 22 AS col0, COUNT ( * ) * + + COUNT ( 71 )
----
13091
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-518
SELECT 69 * 82, - CAST( NULL AS SIGNED ) AS col2
----
5658
NULL

skipif mysql # not compatible
query II rowsort label-518
SELECT 69 * 82, - CAST ( NULL AS INTEGER ) AS col2
----
5658
NULL

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

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT NULLIF ( + COUNT ( * ), + 23 )
----
1

query I rowsort
SELECT ALL + 37 + 5 AS col0
----
42

query I rowsort
SELECT 49 - 5
----
44

query II rowsort
SELECT - 51 AS col2, 5 AS col1
----
-51
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-524
SELECT ALL COUNT( * ) AS col0, CAST( 87 AS SIGNED ) * - - 38 AS col0
----
1
3306

skipif mysql # not compatible
query II rowsort label-524
SELECT ALL COUNT ( * ) AS col0, CAST ( 87 AS INTEGER ) * - - 38 AS col0
----
1
3306

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT - 58 * + COUNT( * ) col2, 46
----
-58
46

skipif mysql # not compatible
query II rowsort label-525
SELECT - 58 * + COUNT ( * ) col2, 46
----
-58
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-526
SELECT ALL CASE - - 24 WHEN + - CASE 76 WHEN - - 77 THEN 71 ELSE + 18 * 53 * CAST( + 1 AS SIGNED ) END * 30 + COALESCE ( - 51, COUNT( * ) * - 11 + - 15 ) + 63 THEN + CAST( + 7 AS SIGNED ) + - 17 - + - 84 + 10 + - CAST( + + 88 AS SIGNED ) * 4 WHEN - 24 THEN NULL ELSE 2 + + COALESCE ( + 97, - 82 * + 60 + 56 ) END AS col0
----
99

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL CASE - - 24 WHEN + - CASE 76 WHEN - - 77 THEN 71 ELSE + 18 * 53 * CAST ( + 1 AS INTEGER ) END * 30 + COALESCE ( - 51, COUNT ( * ) * - 11 + - 15 ) + 63 THEN + CAST ( + 7 AS INTEGER ) + - 17 - + - 84 + 10 + - CAST ( + + 88 AS INTEGER ) * 4 WHEN - 24 THEN NULL ELSE 2 + + COALESCE ( + 97, - 82 * + 60 + 56 ) END AS col0
----
99

query I rowsort
SELECT + 57 - + - 2
----
59

query II rowsort
SELECT - 23 AS col0, ( + 32 ) * 63 * + - 95
----
-23
-191520

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT DISTINCT MAX( 60 ) * - - 36
----
2160

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT MAX ( 60 ) * - - 36
----
2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT ALL 15 * - CAST( + 9 AS SIGNED )
----
-135

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL 15 * - CAST ( + 9 AS INTEGER )
----
-135

query I rowsort
SELECT ALL NULLIF ( - 24, 60 / + 40 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-532
SELECT DISTINCT 72 AS col0, 93 DIV - COUNT( * ) - + ( - 44 ) col1
----
72
-49

skipif mysql # not compatible
query II rowsort label-532
SELECT DISTINCT 72 AS col0, 93 / - COUNT ( * ) - + ( - 44 ) col1
----
72
-49

query II rowsort
SELECT ALL + 56, + 52 + + - 78 AS col1
----
56
-26

query II rowsort
SELECT - ( - 3 ) * + 30 + + 55 * 51 * - - 35 AS col0, + 69
----
98265
69

query II rowsort
SELECT DISTINCT + - 27 AS col2, 28
----
-27
28

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT - 71 * - SUM( 29 ) col2
----
2059

skipif mysql # not compatible
query I rowsort label-536
SELECT - 71 * - SUM ( 29 ) col2
----
2059

query I rowsort
SELECT DISTINCT + + 68 * - 22 * - 0 + - + CASE - 94 WHEN - - 23 THEN + 49 + 34 ELSE NULL END + - 71 / - 60 / - - 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT + + COUNT( * ) + - + 71 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-538
SELECT + + COUNT ( * ) + - + 71 AS col1
----
-70

query I rowsort
SELECT ALL - 64 * + ( - 66 ) + + 30 + - ( + + 28 ) AS col2
----
4226

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT CASE + 37 WHEN + - 10 THEN NULL WHEN + 60 / - 68 * 12 THEN - 95 - + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT CASE + 37 WHEN + - 10 THEN NULL WHEN + 60 / - 68 * 12 THEN - 95 - + - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT + + 74 * - - COUNT( + - 83 ) + + - 30
----
44

skipif mysql # not compatible
query I rowsort label-541
SELECT + + 74 * - - COUNT ( + - 83 ) + + - 30
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT + - 99 * + + COUNT( * ) * 72 * 53 + - 87 AS col2
----
-377871

skipif mysql # not compatible
query I rowsort label-542
SELECT + - 99 * + + COUNT ( * ) * 72 * 53 + - 87 AS col2
----
-377871

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT - COUNT( ALL + 95 ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-543
SELECT - COUNT ( ALL + 95 ) + + COUNT ( * )
----
0

query II rowsort
SELECT + 92 AS col2, - 25 AS col0
----
92
-25

query I rowsort
SELECT - 1 + + 28
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT MIN( - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-546
SELECT MIN ( - 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-547
SELECT - 35 + - 8 col1, - COUNT( CAST( NULL AS SIGNED ) )
----
-43
0

skipif mysql # not compatible
query II rowsort label-547
SELECT - 35 + - 8 col1, - COUNT ( CAST ( NULL AS INTEGER ) )
----
-43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT - MIN( DISTINCT + 53 ) + + 10 col1
----
-43

skipif mysql # not compatible
query I rowsort label-548
SELECT - MIN ( DISTINCT + 53 ) + + 10 col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-549
SELECT DISTINCT NULLIF ( + AVG ( + CAST( NULL AS SIGNED ) ), - + ( 20 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT NULLIF ( + AVG ( + CAST ( NULL AS INTEGER ) ), - + ( 20 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-550
SELECT - ( 66 ) + + CAST( + + 24 AS SIGNED ) DIV 53 DIV + 56 DIV - 50
----
-66

skipif mysql # not compatible
query I rowsort label-550
SELECT - ( 66 ) + + CAST ( + + 24 AS INTEGER ) / 53 / + 56 / - 50
----
-66

query I rowsort
SELECT ALL + 70 * - 87
----
-6090

query II rowsort
SELECT ALL ( 82 ) AS col0, 83 + - 72 AS col0
----
82
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-553
SELECT - NULLIF ( COALESCE ( - 35, - + 26, + 83 * + - 74 + - MAX( ALL + CAST( NULL AS SIGNED ) ) ), 95 + - 95 ) * 50 AS col2
----
1750

skipif mysql # not compatible
query I rowsort label-553
SELECT - NULLIF ( COALESCE ( - 35, - + 26, + 83 * + - 74 + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) ), 95 + - 95 ) * 50 AS col2
----
1750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-554
SELECT ALL CAST( - + 33 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL CAST ( - + 33 AS INTEGER )
----
-33

query I rowsort
SELECT ALL + 70 * - 98 * + + 33
----
-226380

query I rowsort
SELECT ALL NULLIF ( + ( + 64 ), 55 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-557
SELECT - - CASE + + 41 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN 91 THEN 22 WHEN + 37 THEN + COUNT( DISTINCT 44 ) ELSE + 67 * + 38 - 49 END
----
2497

skipif mysql # not compatible
query I rowsort label-557
SELECT - - CASE + + 41 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 91 THEN 22 WHEN + 37 THEN + COUNT ( DISTINCT 44 ) ELSE + 67 * + 38 - 49 END
----
2497

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-558
SELECT ALL - - 29 + - ( 2 ) DIV - 89 * + COUNT( * ) AS col2, ( - 12 ) + - 10 - - 97
----
29
75

skipif mysql # not compatible
query II rowsort label-558
SELECT ALL - - 29 + - ( 2 ) / - 89 * + COUNT ( * ) AS col2, ( - 12 ) + - 10 - - 97
----
29
75

query I rowsort
SELECT - - NULLIF ( + + 30, + 45 * 14 ) - + + ( + - 25 )
----
55

query I rowsort
SELECT - + 46 - + 44 + + - 97 col0
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT DISTINCT + COUNT( * ) + 10 AS col0
----
11

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-562
SELECT ALL - COUNT( * ) DIV - 30 + + 61 * + + COUNT( * ) * + COUNT( * ) + - 92 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL - COUNT ( * ) / - 30 + + 61 * + + COUNT ( * ) * + COUNT ( * ) + - 92 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT DISTINCT 48 * 66 + - - 70 * NULLIF ( + + 34, - + 18 + - + 5 ) + - CASE 85 WHEN - + 13 THEN NULL ELSE 43 + - COUNT( * ) END
----
5506

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT 48 * 66 + - - 70 * NULLIF ( + + 34, - + 18 + - + 5 ) + - CASE 85 WHEN - + 13 THEN NULL ELSE 43 + - COUNT ( * ) END
----
5506

query I rowsort
SELECT + - 5 - + 93 AS col1
----
-98

query I rowsort
SELECT + + 89 * - 69 col2
----
-6141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-566
SELECT DISTINCT - 10 DIV - 78 + 83 * - COALESCE ( COALESCE ( COUNT( * ), + + 95 ), - 88 ) + 20
----
-63

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT - 10 / - 78 + 83 * - COALESCE ( COALESCE ( COUNT ( * ), + + 95 ), - 88 ) + 20
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-567
SELECT SUM( DISTINCT - 22 ) AS col2, - 27 AS col1
----
-22
-27

skipif mysql # not compatible
query II rowsort label-567
SELECT SUM ( DISTINCT - 22 ) AS col2, - 27 AS col1
----
-22
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-568
SELECT COALESCE ( + CAST( + + MAX( + 72 ) AS SIGNED ), + 69 ) AS col0, - 7 col2
----
72
-7

skipif mysql # not compatible
query II rowsort label-568
SELECT COALESCE ( + CAST ( + + MAX ( + 72 ) AS INTEGER ), + 69 ) AS col0, - 7 col2
----
72
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-569
SELECT + 72 * - NULLIF ( CAST( - 29 AS SIGNED ), + + 98 ) AS col2
----
2088

skipif mysql # not compatible
query I rowsort label-569
SELECT + 72 * - NULLIF ( CAST ( - 29 AS INTEGER ), + + 98 ) AS col2
----
2088

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-570
SELECT ALL 23 DIV 11 - - 47 * + + 83 - + 61, + 88 + - COUNT( * ) AS col0
----
3842
87

skipif mysql # not compatible
query II rowsort label-570
SELECT ALL 23 / 11 - - 47 * + + 83 - + 61, + 88 + - COUNT ( * ) AS col0
----
3842
87

query I rowsort
SELECT + NULLIF ( 26, + 2 ) * 10 + - 71
----
189

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-573
SELECT + CAST( NULL AS SIGNED ) col1, 81 + + - 37 + - 7 * + CAST( - - 83 AS SIGNED )
----
NULL
-537

skipif mysql # not compatible
query II rowsort label-573
SELECT + CAST ( NULL AS INTEGER ) col1, 81 + + - 37 + - 7 * + CAST ( - - 83 AS INTEGER )
----
NULL
-537

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

skipif mysql # not compatible
query I rowsort label-574
SELECT CAST ( - - 36 AS INTEGER ) * COUNT ( * ) AS col0
----
36

query I rowsort
SELECT ALL + 46 * - + 15
----
-690

query II rowsort
SELECT DISTINCT - 36, + 0 * - 61 AS col1
----
-36
0

query I rowsort
SELECT ( - 20 ) + + + 24 AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-578
SELECT + 51 AS col2, - ( - 48 ) * + 5 + - 81 * + 78 - + CAST( NULL AS SIGNED )
----
51
NULL

skipif mysql # not compatible
query II rowsort label-578
SELECT + 51 AS col2, - ( - 48 ) * + 5 + - 81 * + 78 - + CAST ( NULL AS INTEGER )
----
51
NULL

query I rowsort
SELECT - NULLIF ( - 8, - + 49 ) * 12 + + 72
----
168

query I rowsort
SELECT 88 * + 70 AS col1
----
6160

onlyif mysql # DIV for integer division: 
query II rowsort label-581
SELECT 58 + 22 + - - 8 AS col1, 4 DIV + + 48
----
88
0

skipif mysql # not compatible
query II rowsort label-581
SELECT 58 + 22 + - - 8 AS col1, 4 / + + 48
----
88
0

query I rowsort
SELECT DISTINCT 93 * - 84
----
-7812

query I rowsort
SELECT DISTINCT 51 * - 86
----
-4386

onlyif mysql # DIV for integer division: 
query I rowsort label-584
SELECT ALL - 11 DIV + - 91 * - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL - 11 / + - 91 * - 29 AS col2
----
0

query I rowsort
SELECT 84 + + 78
----
162

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

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

query I rowsort
SELECT + 79 * 63 + + 24 * - 34 + - + 68
----
4093

query I rowsort
SELECT 3 + 35 + + 24 * 28 col1
----
710

query I rowsort
SELECT 12 + 86 * 15 + - - 90 + - 60
----
1332

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT 83 + 1 + - 21 DIV - + 49 * - - 46 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-591
SELECT 83 + 1 + - 21 / - + 49 * - - 46 AS col2
----
84

query II rowsort
SELECT 26 - - + 9 + - 54 AS col1, 74 + + 51 AS col2
----
-19
125

query II rowsort
SELECT - - 13 AS col0, - 31
----
13
-31

query I rowsort
SELECT - 75 + - 88 + - 17 col0
----
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-595
SELECT ALL + - 89 + - - 18 * - - COUNT( * ) * + 73 AS col1, 99 + - 67 - - - 72
----
1225
-40

skipif mysql # not compatible
query II rowsort label-595
SELECT ALL + - 89 + - - 18 * - - COUNT ( * ) * + 73 AS col1, 99 + - 67 - - - 72
----
1225
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-596
SELECT ALL - 78 * - 72 DIV - COUNT( * )
----
-5616

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL - 78 * - 72 / - COUNT ( * )
----
-5616

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL COUNT( - 67 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL COUNT ( - 67 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + + ( - 94 ) + + - 82 AS col1
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT + COALESCE ( - 57, - 22, - MAX( DISTINCT - 44 ) ) + COUNT( * ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-599
SELECT + COALESCE ( - 57, - 22, - MAX ( DISTINCT - 44 ) ) + COUNT ( * ) col2
----
-56

query I rowsort
SELECT ALL + - NULLIF ( - 11, - 39 ) + + + 43 AS col1
----
54

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

query I rowsort
SELECT - 77 * - 82 AS col2
----
6314

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT 75 * COUNT( * ) * + 77 * 43
----
248325

skipif mysql # not compatible
query I rowsort label-603
SELECT 75 * COUNT ( * ) * + 77 * 43
----
248325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-604
SELECT - 0 DIV - - 97 * - 48 + NULLIF ( - 40, + NULLIF ( SUM( 35 ), - COUNT( * ) * + 82 ) * 73 + + 11 * - 90 ) + + 73 + - 99 DIV - 53 + - COALESCE ( COUNT( * ), 33 + - - 50 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-604
SELECT - 0 / - - 97 * - 48 + NULLIF ( - 40, + NULLIF ( SUM ( 35 ), - COUNT ( * ) * + 82 ) * 73 + + 11 * - 90 ) + + 73 + - 99 / - 53 + - COALESCE ( COUNT ( * ), 33 + - - 50 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT DISTINCT + COUNT( DISTINCT - + 59 ) - + + 50 + 94 * + + 83 * - ( - - 60 )
----
-468169

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT + COUNT ( DISTINCT - + 59 ) - + + 50 + 94 * + + 83 * - ( - - 60 )
----
-468169

query I rowsort
SELECT ALL - 13 * + 81 * + - ( - - 5 ) AS col1
----
5265

onlyif mysql # DIV for integer division: 
query I rowsort label-607
SELECT ALL - + 4 DIV - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL - + 4 / - 81 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-608
SELECT ALL + COUNT( * ) - + NULLIF ( - 88, - + 65 ) + - 5 - - COUNT( * ) * + 59 + - 94 DIV + 34
----
141

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL + COUNT ( * ) - + NULLIF ( - 88, - + 65 ) + - 5 - - COUNT ( * ) * + 59 + - 94 / + 34
----
141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL - ( + COALESCE ( - 55, - 45, 54 * - - COUNT( * ) + + MAX( DISTINCT + 21 ) + + 67, COUNT( * ) ) ) * - 12 * - 98
----
64680

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL - ( + COALESCE ( - 55, - 45, 54 * - - COUNT ( * ) + + MAX ( DISTINCT + 21 ) + + 67, COUNT ( * ) ) ) * - 12 * - 98
----
64680

query I rowsort
SELECT + 0 * + 87 + 82 + + - 54
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT 62 DIV + - 45 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-612
SELECT 62 / + - 45 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT ( - 22 ) * - - 83 + - - NULLIF ( 96, - COUNT( * ) ) + + COUNT( * ) AS col0
----
-1729

skipif mysql # not compatible
query I rowsort label-613
SELECT ( - 22 ) * - - 83 + - - NULLIF ( 96, - COUNT ( * ) ) + + COUNT ( * ) AS col0
----
-1729

query I rowsort
SELECT ALL + 87 * - - 70
----
6090

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT 97 * - MIN( - 79 ) AS col1
----
7663

skipif mysql # not compatible
query I rowsort label-615
SELECT 97 * - MIN ( - 79 ) AS col1
----
7663

query I rowsort
SELECT 68 * 47 col2
----
3196

query I rowsort
SELECT 79 * + + 78 + + 89 * 68
----
12214

query I rowsort
SELECT ALL + 15 + - - 24
----
39

query I rowsort
SELECT DISTINCT 75 * + 82 * - 38 AS col0
----
-233700

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL 93 + + ( + 98 ) + COUNT( * ) + 25
----
217

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL 93 + + ( + 98 ) + COUNT ( * ) + 25
----
217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-621
SELECT + COUNT( * ) * + NULLIF ( + CASE - 48 WHEN 74 THEN + - 25 / - + MIN( ALL 2 ) * + 92 + + CASE - CAST( - + ( - + 90 ) AS SIGNED ) WHEN + - 78 THEN NULL ELSE 5 * + - 5 * - 39 - - + 1 END WHEN 31 + + 1 THEN NULL WHEN 42 THEN NULL ELSE NULL END, - 51 * + - 31 * + 1 - - 39 + + ( + - 65 ) ) - + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT + COUNT ( * ) * + NULLIF ( + CASE - 48 WHEN 74 THEN + - 25 / - + MIN ( ALL 2 ) * + 92 + + CASE - CAST ( - + ( - + 90 ) AS INTEGER ) WHEN + - 78 THEN NULL ELSE 5 * + - 5 * - 39 - - + 1 END WHEN 31 + + 1 THEN NULL WHEN 42 THEN NULL ELSE NULL END, - 51 * + - 31 * + 1 - - 39 + + ( + - 65 ) ) - + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 83 * + - 47 AS col0
----
-3901

query I rowsort
SELECT ALL 74 * 44 * - + 57 AS col2
----
-185592

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ALL COALESCE ( + COUNT( * ), + 20, - 35 + - + 46 ) + 14
----
15

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL COALESCE ( + COUNT ( * ), + 20, - 35 + - + 46 ) + 14
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT ALL - CAST( NULL AS SIGNED ) + - COUNT( * ) - ( 31 ) + - 50 * + 36 - - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL - CAST ( NULL AS INTEGER ) + - COUNT ( * ) - ( 31 ) + - 50 * + 36 - - 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT - MAX( ALL - 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-626
SELECT - MAX ( ALL - 73 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL + COUNT( * ) + - 35 * - 95
----
3326

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL + COUNT ( * ) + - 35 * - 95
----
3326

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT DISTINCT - 86 DIV + 34 + 37 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT - 86 / + 34 + 37 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT ALL - 69 + - - 73 * + - 31 + + CASE - 30 WHEN - + ( - + 15 ) THEN NULL ELSE - - MIN( DISTINCT + + 33 ) END + 31 + - 88 * - ( COUNT( * ) ) + 89 * + 90 * - + 79 AS col2
----
-634970

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL - 69 + - - 73 * + - 31 + + CASE - 30 WHEN - + ( - + 15 ) THEN NULL ELSE - - MIN ( DISTINCT + + 33 ) END + 31 + - 88 * - ( COUNT ( * ) ) + 89 * + 90 * - + 79 AS col2
----
-634970

onlyif mysql # DIV for integer division: 
query I rowsort label-630
SELECT 20 DIV + - 75 * - 97 * - + 47 * - 15 col1
----
0

skipif mysql # not compatible
query I rowsort label-630
SELECT 20 / + - 75 * - 97 * - + 47 * - 15 col1
----
0

query I rowsort
SELECT - 9 * + + ( - 26 )
----
234

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

skipif mysql # not compatible
query I rowsort label-632
SELECT DISTINCT ( SUM ( DISTINCT - 33 ) )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT COUNT( * ) - - + 10 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-633
SELECT COUNT ( * ) - - + 10 AS col0
----
11

query I rowsort
SELECT - + NULLIF ( - - 37, - 28 ) AS col2
----
-37

query I rowsort
SELECT ALL - 34 * + - 82 + + 58 * + 27 AS col0
----
4354

query I rowsort
SELECT - 75 + + ( ( + + ( + 28 ) ) ) AS col0
----
-47

query I rowsort
SELECT 89 * + ( - 59 ) AS col0
----
-5251

query I rowsort
SELECT DISTINCT - + 44 * - 31 * + 55 AS col0
----
75020

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT ALL - ( - CASE CASE 71 WHEN - 33 * + + 76 + - - 39 THEN NULL ELSE - + COUNT( - + ( - + 21 ) ) END WHEN - 70 * + 90 - + + 98 THEN - 22 END ) * CASE + 51 WHEN - + COUNT( ALL - 39 ) THEN NULL ELSE + 54 - + COUNT( * ) + + COALESCE ( - 88, + - 46, - 74 ) + + COALESCE ( - COUNT( * ), 26 + + COUNT( * ) * + ( + ( 41 ) ) * + 35 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL - ( - CASE CASE 71 WHEN - 33 * + + 76 + - - 39 THEN NULL ELSE - + COUNT ( - + ( - + 21 ) ) END WHEN - 70 * + 90 - + + 98 THEN - 22 END ) * CASE + 51 WHEN - + COUNT ( ALL - 39 ) THEN NULL ELSE + 54 - + COUNT ( * ) + + COALESCE ( - 88, + - 46, - 74 ) + + COALESCE ( - COUNT ( * ), 26 + + COUNT ( * ) * + ( + ( 41 ) ) * + 35 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ( 13 ) * + COUNT( DISTINCT + - 29 )
----
13

skipif mysql # not compatible
query I rowsort label-640
SELECT ( 13 ) * + COUNT ( DISTINCT + - 29 )
----
13

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

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL + + CAST ( - 32 AS INTEGER ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT + COALESCE ( COUNT( 53 ), - 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT + COALESCE ( COUNT ( 53 ), - 17 ) AS col0
----
1

query I rowsort
SELECT + 10 * - + ( + 69 ) + + 7
----
-683

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-644
SELECT - 59 DIV - 74 * ( CAST( + - 24 AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-644
SELECT - 59 / - 74 * ( CAST ( + - 24 AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT - COUNT( 61 ) * + 6 + COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-645
SELECT - COUNT ( 61 ) * + 6 + COUNT ( * ) AS col2
----
-5

query II rowsort
SELECT + 95 AS col2, 62 AS col1
----
95
62

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

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

query I rowsort
SELECT ALL + 11 * + 43 AS col2
----
473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-649
SELECT - 5 * - CAST( + 6 AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-649
SELECT - 5 * - CAST ( + 6 AS INTEGER ) AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-650
SELECT ALL 3 * + - COUNT( * ) + - - 60 + - 24 - + 68 AS col2, COUNT( * ) DIV + CAST( + 88 AS SIGNED )
----
-35
0

skipif mysql # not compatible
query II rowsort label-650
SELECT ALL 3 * + - COUNT ( * ) + - - 60 + - 24 - + 68 AS col2, COUNT ( * ) / + CAST ( + 88 AS INTEGER )
----
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT DISTINCT 34 * ( - - COUNT( * ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT 34 * ( - - COUNT ( * ) ) AS col1
----
34

query I rowsort
SELECT ALL + 40 * + - 99 * + 77 * + 51 * - 70 + + - ( - 87 ) AS col2
----
1088564487

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-653
SELECT + 75 * - + 77 * - ( - 15 ) * - + CAST( + 71 AS SIGNED ) AS col2, 38 * + 65
----
6150375
2470

skipif mysql # not compatible
query II rowsort label-653
SELECT + 75 * - + 77 * - ( - 15 ) * - + CAST ( + 71 AS INTEGER ) AS col2, 38 * + 65
----
6150375
2470

query I rowsort
SELECT - 86 + - 41 col2
----
-127

query I rowsort
SELECT + 69 - - 94
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT - 39 + 48 * + COUNT( DISTINCT + 7 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-656
SELECT - 39 + 48 * + COUNT ( DISTINCT + 7 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT + 45 * MIN( - + 83 ) * - + ( + 49 ) - - 35 - - + COUNT( * ) AS col0
----
183051

skipif mysql # not compatible
query I rowsort label-657
SELECT + 45 * MIN ( - + 83 ) * - + ( + 49 ) - - 35 - - + COUNT ( * ) AS col0
----
183051

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT ALL ( - COALESCE ( - 53, + NULLIF ( COUNT( + + 89 ), - + 98 ) * - 79, - 80 ) ) + + 23
----
76

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL ( - COALESCE ( - 53, + NULLIF ( COUNT ( + + 89 ), - + 98 ) * - 79, - 80 ) ) + + 23
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT COUNT( - 52 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-659
SELECT COUNT ( - 52 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT 58 * - - 51 + - COUNT( * ) * - - 84 * 69 AS col2
----
-2838

skipif mysql # not compatible
query I rowsort label-660
SELECT 58 * - - 51 + - COUNT ( * ) * - - 84 * 69 AS col2
----
-2838

query I rowsort
SELECT DISTINCT + 56 * + - 69 - - 37 + - - 59 AS col0
----
-3768

query I rowsort
SELECT ALL 49 - ( - CASE + 62 WHEN - 90 THEN - 54 + - - 53 ELSE + + 64 END ) AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT + 93 + - 26 + - COUNT( * ) + + - 85 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-663
SELECT + 93 + - 26 + - COUNT ( * ) + + - 85 AS col1
----
-19

query I rowsort
SELECT + + 1 * 48 - - - 14 * - - 22 * + NULLIF ( + 58, + 59 ) AS col1
----
-17816

query I rowsort
SELECT ALL 99 * + 63
----
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT DISTINCT - CASE + + 97 WHEN + COUNT( * ) * - 16 THEN + COUNT( * ) * + - 71 * 23 + + 70 ELSE + 73 + - 31 END AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT - CASE + + 97 WHEN + COUNT ( * ) * - 16 THEN + COUNT ( * ) * + - 71 * 23 + + 70 ELSE + 73 + - 31 END AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT DISTINCT SUM( - 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT SUM ( - 17 ) AS col2
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT + SUM( + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-669
SELECT + SUM ( + 99 ) AS col2
----
99

query II rowsort
SELECT ALL - NULLIF ( + + 80, + + 67 ) AS col1, 27
----
-80
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-671
SELECT CAST( NULL AS SIGNED ), 46 * - 33 AS col0
----
NULL
-1518

skipif mysql # not compatible
query II rowsort label-671
SELECT CAST ( NULL AS INTEGER ), 46 * - 33 AS col0
----
NULL
-1518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-672
SELECT COUNT( * ) DIV COUNT( * ) * + 76 + + - 51 - NULLIF ( ( + ( + 32 ) ), 58 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-672
SELECT COUNT ( * ) / COUNT ( * ) * + 76 + + - 51 - NULLIF ( ( + ( + 32 ) ), 58 ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-673
SELECT CAST( 83 AS SIGNED ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-673
SELECT CAST ( 83 AS INTEGER ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-674
SELECT + 90 AS col2, 13 + - SUM( DISTINCT + - 84 ) - - COUNT( * ) + + 68 * + ( + 79 ) AS col1
----
90
5470

skipif mysql # not compatible
query II rowsort label-674
SELECT + 90 AS col2, 13 + - SUM ( DISTINCT + - 84 ) - - COUNT ( * ) + + 68 * + ( + 79 ) AS col1
----
90
5470

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

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL + NULLIF ( + + 42, + 99 + - COUNT ( * ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-676
SELECT CAST( - MAX( DISTINCT 74 ) AS SIGNED ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-676
SELECT CAST ( - MAX ( DISTINCT 74 ) AS INTEGER ) AS col0
----
-74

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-678
SELECT ALL 43 DIV - 64 * - + 17 + 30, 76 AS col0
----
30
76

skipif mysql # not compatible
query II rowsort label-678
SELECT ALL 43 / - 64 * - + 17 + 30, 76 AS col0
----
30
76

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

query I rowsort
SELECT ( - 65 ) AS col2
----
-65

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

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT - ( 12 ) DIV + + 6
----
-2

skipif mysql # not compatible
query I rowsort label-682
SELECT - ( 12 ) / + + 6
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT - 45 + - - 89 + + - NULLIF ( + - 6, 64 ) + ( - + SUM( DISTINCT + + 33 ) ) - + - 39
----
56

skipif mysql # not compatible
query I rowsort label-683
SELECT - 45 + - - 89 + + - NULLIF ( + - 6, 64 ) + ( - + SUM ( DISTINCT + + 33 ) ) - + - 39
----
56

query II rowsort
SELECT ALL 23 * + 61 * - - 6 * + 17 + - ( + - 10 ) AS col2, 45 + 58 AS col2
----
143116
103

query I rowsort
SELECT COALESCE ( - 61, - + 66 ) AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT - 9 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-686
SELECT - 9 / + 17
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-687
SELECT ALL + 81 DIV - - 94 * 45 DIV COUNT( * ) AS col2, - COUNT( * )
----
0
-1

skipif mysql # not compatible
query II rowsort label-687
SELECT ALL + 81 / - - 94 * 45 / COUNT ( * ) AS col2, - COUNT ( * )
----
0
-1

query I rowsort
SELECT ALL 94 * - 60 - + 83 * + 79 * + 7 + - NULLIF ( - 59, 25 ) * 31 + + + 89
----
-49621

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

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

query I rowsort
SELECT ALL + 11 * - 5
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT - - 36 - CAST( + + 97 AS SIGNED ) col0
----
-61

skipif mysql # not compatible
query I rowsort label-691
SELECT - - 36 - CAST ( + + 97 AS INTEGER ) col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-692
SELECT ALL - + COUNT( * ) * - SUM( DISTINCT 80 ) * - 75 - - 3 DIV 39
----
-6000

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL - + COUNT ( * ) * - SUM ( DISTINCT 80 ) * - 75 - - 3 / 39
----
-6000

query II rowsort
SELECT DISTINCT 83 AS col2, - ( 38 ) AS col0
----
83
-38

query I rowsort
SELECT - 66 * + + 41 * + 11 AS col0
----
-29766

query I rowsort
SELECT NULLIF ( - 76, + + 64 + 49 )
----
-76

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

query II rowsort
SELECT ALL 83 AS col2, 15 + + 73
----
83
88

query II rowsort
SELECT ALL 23 * - 41, + 0 AS col2
----
-943
0

query I rowsort
SELECT + COALESCE ( + + 96, + + 29 + + 3 ) AS col0
----
96

query I rowsort
SELECT + NULLIF ( 72, + + 51 ) * - 88 * - 48
----
304128

query II rowsort
SELECT ALL + 29 + + + 24, 16 AS col1
----
53
16

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

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL 76 + COUNT ( * ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT COUNT( DISTINCT - 60 ) * 25 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-703
SELECT COUNT ( DISTINCT - 60 ) * 25 AS col0
----
25

query II rowsort
SELECT ALL 81 + 40, 62 AS col0
----
121
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT 32 * - COALESCE ( - 20, - 32 * COUNT( * ) - + 69 * + NULLIF ( - 85, + 35 * + + 90 ) + - - 51 - CASE 43 WHEN + NULLIF ( - 91, - COUNT( * ) ) THEN + 10 + COUNT( * ) WHEN 94 THEN NULL WHEN COUNT( * ) THEN NULL ELSE NULL END )
----
640

skipif mysql # not compatible
query I rowsort label-706
SELECT 32 * - COALESCE ( - 20, - 32 * COUNT ( * ) - + 69 * + NULLIF ( - 85, + 35 * + + 90 ) + - - 51 - CASE 43 WHEN + NULLIF ( - 91, - COUNT ( * ) ) THEN + 10 + COUNT ( * ) WHEN 94 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE NULL END )
----
640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-707
SELECT ALL COALESCE ( - + MAX( DISTINCT + 54 ), + 87 * - 49, - 92 DIV - 15 ) * 60 + + 30 * - 89 + - + 66
----
-5976

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL COALESCE ( - + MAX ( DISTINCT + 54 ), + 87 * - 49, - 92 / - 15 ) * 60 + + 30 * - 89 + - + 66
----
-5976

query I rowsort
SELECT DISTINCT 80 - + 5 + + + 11 + + 94
----
180

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-709
SELECT 85 * + + 58 - CAST( + ( + 77 ) AS SIGNED ) + - + 94 DIV - - 73 AS col1
----
4852

skipif mysql # not compatible
query I rowsort label-709
SELECT 85 * + + 58 - CAST ( + ( + 77 ) AS INTEGER ) + - + 94 / - - 73 AS col1
----
4852

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

query I rowsort
SELECT DISTINCT ( - 85 ) * + + 29
----
-2465

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-712
SELECT + 42 * + 33 + - COALESCE ( + COUNT( * ), + 28 ) DIV + ( 97 ) * - COUNT( * ), 19 AS col0
----
1386
19

skipif mysql # not compatible
query II rowsort label-712
SELECT + 42 * + 33 + - COALESCE ( + COUNT ( * ), + 28 ) / + ( 97 ) * - COUNT ( * ), 19 AS col0
----
1386
19

query I rowsort
SELECT 75 * 70 AS col1
----
5250

query I rowsort
SELECT + 75 * 0 + + - 51 * + 87
----
-4437

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT - 54 * + 16 + COALESCE ( + 38, + - ( - + 74 ) ) DIV 91 * + - COALESCE ( - 88, + 95, + 90 + - 74 ) * - + 99 AS col1
----
-864

skipif mysql # not compatible
query I rowsort label-715
SELECT - 54 * + 16 + COALESCE ( + 38, + - ( - + 74 ) ) / 91 * + - COALESCE ( - 88, + 95, + 90 + - 74 ) * - + 99 AS col1
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT - 84 - 49 * + CASE SUM( + + ( + - 49 ) ) WHEN - + 61 - + COUNT( * ) THEN ( - + COALESCE ( + - 9, - COUNT( * ), + COUNT( * ) ) ) WHEN - - 10 + + - 26 THEN NULL WHEN - NULLIF ( + COALESCE ( - + 26, - COUNT( * ) * 86 * - + 11 + + 33 + + 97 * + + 10 * + - MIN( ALL - 78 ) * - 93 + ( + - 12 ) + AVG ( + - 67 ) * - - 75 ), 51 ) + - 1 THEN NULL ELSE NULL END * 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-716
SELECT - 84 - 49 * + CASE SUM ( + + ( + - 49 ) ) WHEN - + 61 - + COUNT ( * ) THEN ( - + COALESCE ( + - 9, - COUNT ( * ), + COUNT ( * ) ) ) WHEN - - 10 + + - 26 THEN NULL WHEN - NULLIF ( + COALESCE ( - + 26, - COUNT ( * ) * 86 * - + 11 + + 33 + + 97 * + + 10 * + - MIN ( ALL - 78 ) * - 93 + ( + - 12 ) + AVG ( + - 67 ) * - - 75 ), 51 ) + - 1 THEN NULL ELSE NULL END * 75 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-717
SELECT ALL + COUNT( * ) DIV + + NULLIF ( + + 8, - CAST( + - 50 AS SIGNED ) ) + + CAST( ( + - 83 ) AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL + COUNT ( * ) / + + NULLIF ( + + 8, - CAST ( + - 50 AS INTEGER ) ) + + CAST ( ( + - 83 ) AS INTEGER )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-718
SELECT + 50 DIV - COUNT( * ), CASE COUNT( * ) WHEN 47 THEN + - ( CAST( - + 73 AS SIGNED ) ) - - - 91 ELSE - 51 - - 43 * + 16 + + 51 END * 70 AS col1
----
-50
48160

skipif mysql # not compatible
query II rowsort label-718
SELECT + 50 / - COUNT ( * ), CASE COUNT ( * ) WHEN 47 THEN + - ( CAST ( - + 73 AS INTEGER ) ) - - - 91 ELSE - 51 - - 43 * + 16 + + 51 END * 70 AS col1
----
-50
48160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-719
SELECT DISTINCT - 13 * + 89 + ( COUNT( * ) ) DIV + 95
----
-1157

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT - 13 * + 89 + ( COUNT ( * ) ) / + 95
----
-1157

query I rowsort
SELECT 75 + - - 19 AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-721
SELECT ALL - - MIN( - 75 ) DIV - 55 col1
----
1

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL - - MIN ( - 75 ) / - 55 col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-722
SELECT - 86 DIV + 57 + - 16 * - 81 * + COALESCE ( - - 25, - - 66 DIV - 33 + - 40 )
----
32399

skipif mysql # not compatible
query I rowsort label-722
SELECT - 86 / + 57 + - 16 * - 81 * + COALESCE ( - - 25, - - 66 / - 33 + - 40 )
----
32399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-723
SELECT DISTINCT - CASE + 28 WHEN 92 + - 21 + + 82 * - - CASE 32 WHEN - 67 THEN NULL ELSE - COALESCE ( + - 48, - 36 * 15 + + 82 ) END THEN - + 25 + - 18 END + + 46 * + 80 + + - 63 + 64 - 55 * + COUNT( * ) - + 97 * ( + 60 ) + 78 * - CAST( NULL AS SIGNED ) * - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT - CASE + 28 WHEN 92 + - 21 + + 82 * - - CASE 32 WHEN - 67 THEN NULL ELSE - COALESCE ( + - 48, - 36 * 15 + + 82 ) END THEN - + 25 + - 18 END + + 46 * + 80 + + - 63 + 64 - 55 * + COUNT ( * ) - + 97 * ( + 60 ) + 78 * - CAST ( NULL AS INTEGER ) * - 23 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-724
SELECT CAST( NULL AS SIGNED ) + + 1, 75 + 42 - 11 * + 95 + - + 98 * - 41 AS col1, + 47 AS col0
----
NULL
3090
47

skipif mysql # not compatible
query III rowsort label-724
SELECT CAST ( NULL AS INTEGER ) + + 1, 75 + 42 - 11 * + 95 + - + 98 * - 41 AS col1, + 47 AS col0
----
NULL
3090
47

query I rowsort
SELECT - + 31 col1
----
-31

query II rowsort
SELECT DISTINCT - - 20 + 71, NULLIF ( 28, - 10 ) AS col2
----
91
28

query I rowsort
SELECT DISTINCT + 0 * - 20 * + + 72
----
0

query I rowsort
SELECT ALL 18 + 59 * - COALESCE ( - 52, - + 98 )
----
3086

query II rowsort
SELECT - 89 col2, 90 AS col0
----
-89
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-730
SELECT - 46, 69 DIV - 10 * + COUNT( * ) col2
----
-46
-6

skipif mysql # not compatible
query II rowsort label-730
SELECT - 46, 69 / - 10 * + COUNT ( * ) col2
----
-46
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT ALL - MAX( DISTINCT - 51 ) + - + 81 + + + CAST( NULL AS SIGNED ) + + - 80 * - 48 * + + 76 * - 60 * 94 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL - MAX ( DISTINCT - 51 ) + - + 81 + + + CAST ( NULL AS INTEGER ) + + - 80 * - 48 * + + 76 * - 60 * 94 col0
----
NULL

query I rowsort
SELECT ALL + 98 + + 21
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT MIN( ALL - + 32 ) * 35 AS col1
----
-1120

skipif mysql # not compatible
query I rowsort label-733
SELECT MIN ( ALL - + 32 ) * 35 AS col1
----
-1120

query I rowsort
SELECT 84 + + 50 - - 58 + + 67 * + 2
----
326

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

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

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

skipif mysql # not compatible
query I rowsort label-736
SELECT + MAX ( + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT + COUNT( - 33 ) / - + COALESCE ( COUNT( * ), MAX( DISTINCT 23 ) / + 88 * - 71, - - ( - + COUNT( * ) ) * + - 58 * - + 87 * + COUNT( * ) + + 22 + + 96, + - 35 + + 4 ) + SUM( + + 84 ) + + 29 + CASE + 82 WHEN 45 THEN 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT + COUNT ( - 33 ) / - + COALESCE ( COUNT ( * ), MAX ( DISTINCT 23 ) / + 88 * - 71, - - ( - + COUNT ( * ) ) * + - 58 * - + 87 * + COUNT ( * ) + + 22 + + 96, + - 35 + + 4 ) + SUM ( + + 84 ) + + 29 + CASE + 82 WHEN 45 THEN 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT - 71 * - 55 - - COUNT( + 48 ) + + 24 AS col0
----
3930

skipif mysql # not compatible
query I rowsort label-738
SELECT - 71 * - 55 - - COUNT ( + 48 ) + + 24 AS col0
----
3930

query I rowsort
SELECT 32 * + 37
----
1184

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-742
SELECT 22 DIV + - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-742
SELECT 22 / + - 76 AS col2
----
0

query I rowsort
SELECT 90 * 78 + - 8 AS col2
----
7012

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT DISTINCT 98 DIV 37 * 75 * - 9 AS col2
----
-1350

skipif mysql # not compatible
query I rowsort label-744
SELECT DISTINCT 98 / 37 * 75 * - 9 AS col2
----
-1350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-745
SELECT - 21 DIV ( + ( + 36 ) ) + - COALESCE ( - + COUNT( * ), - 7 )
----
1

skipif mysql # not compatible
query I rowsort label-745
SELECT - 21 / ( + ( + 36 ) ) + - COALESCE ( - + COUNT ( * ), - 7 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT 12 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-746
SELECT 12 / - 98
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-747
SELECT COUNT( * ) * 86 DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-747
SELECT COUNT ( * ) * 86 / + 54
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-748
SELECT CASE 26 WHEN - 14 THEN 8 * 11 + 38 / + 67 - + CAST( NULL AS SIGNED ) + 73 / 5 WHEN + 74 * + 12 + + 98 THEN - + 83 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT CASE 26 WHEN - 14 THEN 8 * 11 + 38 / + 67 - + CAST ( NULL AS INTEGER ) + 73 / 5 WHEN + 74 * + 12 + + 98 THEN - + 83 END AS col1
----
NULL

query I rowsort
SELECT - 73 * - + 18 * - 22 - + 78
----
-28986

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT DISTINCT 60 * + 59 - + ( + CASE WHEN NOT + COUNT( * ) IS NOT NULL THEN - 74 / - 16 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT 60 * + 59 - + ( + CASE WHEN NOT + COUNT ( * ) IS NOT NULL THEN - 74 / - 16 END ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + - 0, 31 AS col2
----
0
31

query I rowsort
SELECT ALL - - ( + + 21 ) * + 91 * - 85
----
-162435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-754
SELECT ALL CAST( NULL AS SIGNED ) + ( + - 12 ) + + + 49 + 87 * + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL CAST ( NULL AS INTEGER ) + ( + - 12 ) + + + 49 + 87 * + + 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-755
SELECT + 15 - - + COUNT( * ) + + CAST( NULL AS SIGNED ) + + 93 + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT + 15 - - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 93 + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT + + 43 - + SUM( DISTINCT - 65 ) + - 89
----
19

skipif mysql # not compatible
query I rowsort label-756
SELECT + + 43 - + SUM ( DISTINCT - 65 ) + - 89
----
19

query I rowsort
SELECT - NULLIF ( - 83, ( + NULLIF ( + 32, - - 6 * ( - + 91 ) * - 92 ) ) )
----
83

query I rowsort
SELECT - 78 - + 75
----
-153

query I rowsort
SELECT - ( 60 ) AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-760
SELECT - 35 DIV + COALESCE ( 24, COUNT( * ) * 6 + 18 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-760
SELECT - 35 / + COALESCE ( 24, COUNT ( * ) * 6 + 18 ) AS col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL - 66 - + CAST ( NULL AS INTEGER ) + - - 80
----
NULL

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

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

query I rowsort
SELECT - 52 * + + 76
----
-3952

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

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

query I rowsort
SELECT ALL - 93 * - + 25 * 81 * - - 70 AS col1
----
13182750

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT + 5 - COUNT( * ) - COUNT( * ) * + 32
----
-28

skipif mysql # not compatible
query I rowsort label-766
SELECT + 5 - COUNT ( * ) - COUNT ( * ) * + 32
----
-28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT - 93 * 92 DIV + - 73 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-768
SELECT - 93 * 92 / + - 73 AS col2
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-769
SELECT ALL + CASE - - COALESCE ( + + CASE - COUNT( * ) WHEN SUM( DISTINCT - COALESCE ( - 93, + 79, + 71 ) ) + - - 48 THEN NULL WHEN + 9 * + 62 THEN + CAST( NULL AS SIGNED ) ELSE NULL END, + COUNT( * ) ) WHEN 86 THEN COUNT( * ) - + + 79 - + - COUNT( ALL - 49 ) / + - COUNT( * ) / ( - COUNT( + + 33 ) ) + + ( - 65 ) + - CAST( NULL AS SIGNED ) * + 56 - - SUM( + 21 ) + - - CASE - NULLIF ( - 30, - 64 ) WHEN - + 99 * 79 THEN + AVG ( ( + 89 ) ) + + 33 END * - 91 / 0 WHEN 38 * 95 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL + CASE - - COALESCE ( + + CASE - COUNT ( * ) WHEN SUM ( DISTINCT - COALESCE ( - 93, + 79, + 71 ) ) + - - 48 THEN NULL WHEN + 9 * + 62 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END, + COUNT ( * ) ) WHEN 86 THEN COUNT ( * ) - + + 79 - + - COUNT ( ALL - 49 ) / + - COUNT ( * ) / ( - COUNT ( + + 33 ) ) + + ( - 65 ) + - CAST ( NULL AS INTEGER ) * + 56 - - SUM ( + 21 ) + - - CASE - NULLIF ( - 30, - 64 ) WHEN - + 99 * 79 THEN + AVG ( ( + 89 ) ) + + 33 END * - 91 / 0 WHEN 38 * 95 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 62 * - + 52 col1
----
-3224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-771
SELECT 22 * - CAST( NULL AS SIGNED ) - - CAST( + + 83 AS SIGNED ) AS col2, 2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-771
SELECT 22 * - CAST ( NULL AS INTEGER ) - - CAST ( + + 83 AS INTEGER ) AS col2, 2
----
NULL
2

onlyif mysql # DIV for integer division: 
query I rowsort label-772
SELECT DISTINCT - ( + 22 ) DIV 44 + ( + 25 ) col2
----
25

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT - ( + 22 ) / 44 + ( + 25 ) col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT + 15 DIV + 74 * + 79 * 55
----
0

skipif mysql # not compatible
query I rowsort label-773
SELECT + 15 / + 74 * + 79 * 55
----
0

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

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

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

query I rowsort
SELECT - - ( 3 ) * COALESCE ( 88, + 45 ) - + - 91 - - - 81
----
274

query I rowsort
SELECT DISTINCT + - 88 col1
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-778
SELECT ALL + - 80 * + 35 + + 69 + - COUNT( * ) AS col2, + 2
----
-2732
2

skipif mysql # not compatible
query II rowsort label-778
SELECT ALL + - 80 * + 35 + + 69 + - COUNT ( * ) AS col2, + 2
----
-2732
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL COUNT( * ) * + 0 + + - 71 + 33
----
-38

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL COUNT ( * ) * + 0 + + - 71 + 33
----
-38

query I rowsort
SELECT ALL + 73 * + 96 + 60 + - ( - 84 )
----
7152

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

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

query I rowsort
SELECT + + 97 + 90 col0
----
187

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT DISTINCT + ( - + 56 ) AS col0, ( + NULLIF ( + 24, + COUNT( * ) ) ) * - + 97 + COUNT( * ) + - + 42 - 15 * + + COUNT( DISTINCT - 60 )
----
-56
-2384

skipif mysql # not compatible
query II rowsort label-784
SELECT DISTINCT + ( - + 56 ) AS col0, ( + NULLIF ( + 24, + COUNT ( * ) ) ) * - + 97 + COUNT ( * ) + - + 42 - 15 * + + COUNT ( DISTINCT - 60 )
----
-56
-2384

query I rowsort
SELECT + - 23 + - 96 AS col1
----
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-786
SELECT ALL 16 * - NULLIF ( - COUNT( ALL + + COALESCE ( + 23, - 14 ) ), + 96 ) + + + 87 * COUNT( * ) AS col1, - 76 DIV 48 col1
----
103
-1

skipif mysql # not compatible
query II rowsort label-786
SELECT ALL 16 * - NULLIF ( - COUNT ( ALL + + COALESCE ( + 23, - 14 ) ), + 96 ) + + + 87 * COUNT ( * ) AS col1, - 76 / 48 col1
----
103
-1

query I rowsort
SELECT DISTINCT - COALESCE ( + - 11, 60, - 49 )
----
11

query I rowsort
SELECT - - ( 55 )
----
55

query I rowsort
SELECT DISTINCT - 79 * - 1 + 46 AS col1
----
125

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-790
SELECT - 35 + + - 21 - COUNT( * ) * - 19 * CAST( NULL AS DECIMAL ) - 8 + - + 45 * + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT - 35 + + - 21 - COUNT ( * ) * - 19 * CAST ( NULL AS REAL ) - 8 + - + 45 * + 53 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 0 * - - 1 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT ALL MIN( ALL 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL MIN ( ALL 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-793
SELECT + COUNT( * ) DIV - ( + 67 )
----
0

skipif mysql # not compatible
query I rowsort label-793
SELECT + COUNT ( * ) / - ( + 67 )
----
0

query I rowsort
SELECT - 29 * + 86 AS col1
----
-2494

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT DISTINCT COALESCE ( + + NULLIF ( - - 72, + - ( 43 ) - + - SUM( - 47 ) ), + 9, + - 86 )
----
72

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT COALESCE ( + + NULLIF ( - - 72, + - ( 43 ) - + - SUM ( - 47 ) ), + 9, + - 86 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-796
SELECT DISTINCT 48, - 5 * - CASE + + 31 WHEN + - 30 THEN + CAST( NULL AS SIGNED ) - + 53 WHEN + 5 + - + 91 THEN - 28 + - SUM( DISTINCT - 53 ) END AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-796
SELECT DISTINCT 48, - 5 * - CASE + + 31 WHEN + - 30 THEN + CAST ( NULL AS INTEGER ) - + 53 WHEN + 5 + - + 91 THEN - 28 + - SUM ( DISTINCT - 53 ) END AS col1
----
48
NULL

query I rowsort
SELECT ALL + ( + 41 ) - + 34 + - 33 AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-798
SELECT - 69 * + COALESCE ( NULLIF ( 62, COUNT( * ) DIV - 64 ), + CAST( NULL AS SIGNED ) DIV 88 + + COUNT( * ) + 55 ) col1
----
-4278

skipif mysql # not compatible
query I rowsort label-798
SELECT - 69 * + COALESCE ( NULLIF ( 62, COUNT ( * ) / - 64 ), + CAST ( NULL AS INTEGER ) / 88 + + COUNT ( * ) + 55 ) col1
----
-4278

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL + COUNT( * ) * - ( - - 70 ) * - - 70
----
-4900

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL + COUNT ( * ) * - ( - - 70 ) * - - 70
----
-4900

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT + 57 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-800
SELECT + 57 / + 71
----
0

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

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

query I rowsort
SELECT - 39 * + + 28
----
-1092

query I rowsort
SELECT - 51 + - ( 58 ) AS col2
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT - 9 - - + 26 * - MAX( + NULLIF ( + 6, - 16 ) )
----
-165

skipif mysql # not compatible
query I rowsort label-804
SELECT - 9 - - + 26 * - MAX ( + NULLIF ( + 6, - 16 ) )
----
-165

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT + 25 * - 79 + - 37 + + ( COUNT( * ) ) + - COUNT( DISTINCT + + 14 ) AS col0
----
-2012

skipif mysql # not compatible
query I rowsort label-806
SELECT + 25 * - 79 + - 37 + + ( COUNT ( * ) ) + - COUNT ( DISTINCT + + 14 ) AS col0
----
-2012

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

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT DISTINCT - MIN( + NULLIF ( - + 36, 63 ) )
----
36

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT - MIN ( + NULLIF ( - + 36, 63 ) )
----
36

query I rowsort
SELECT DISTINCT - NULLIF ( 77, - 20 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-810
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + 29 - - + 71 * - 76 + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + 29 - - + 71 * - 76 + 87
----
NULL

query I rowsort
SELECT 62 * + - 34 - - NULLIF ( + 1, COALESCE ( + 21, + AVG ( DISTINCT 63 ) * + ( 6 ) ) ) + + 94 + 9 col2
----
-2004

query I rowsort
SELECT ALL - + 51 + - + 33
----
-84

query I rowsort
SELECT ALL - - ( - - 20 )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT + - ( - 38 ) DIV + 88 + + 31
----
31

skipif mysql # not compatible
query I rowsort label-814
SELECT + - ( - 38 ) / + 88 + + 31
----
31

query I rowsort
SELECT + COALESCE ( ( - ( - - 70 ) ), 53 ) AS col2
----
-70

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

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

query I rowsort
SELECT - 97 * - 84 AS col0
----
8148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-818
SELECT 50 + - 44 + + 38 * + + CAST( - 71 AS SIGNED ) - 77 - + ( - 35 ) * + 95 DIV - - 94 + - 41 * 49 * + ( + - 79 ) AS col0
----
155977

skipif mysql # not compatible
query I rowsort label-818
SELECT 50 + - 44 + + 38 * + + CAST ( - 71 AS INTEGER ) - 77 - + ( - 35 ) * + 95 / - - 94 + - 41 * 49 * + ( + - 79 ) AS col0
----
155977

query I rowsort
SELECT DISTINCT - 74 + 68
----
-6

query I rowsort
SELECT ALL 49 + - 95
----
-46

query I rowsort
SELECT 29 * 28
----
812

query II rowsort
SELECT ALL - 88, 75 AS col0
----
-88
75

query I rowsort
SELECT DISTINCT + 13 - - - 56
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT ALL + 80 - - 74 DIV 87 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + 80 - - 74 / 87 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT + COUNT( * ) - - 81
----
82

skipif mysql # not compatible
query I rowsort label-825
SELECT + COUNT ( * ) - - 81
----
82

query I rowsort
SELECT - - 98 col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-827
SELECT ALL NULLIF ( + SUM( DISTINCT + 71 ), + ( - 24 ) ) DIV - + 2
----
-35

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL NULLIF ( + SUM ( DISTINCT + 71 ), + ( - 24 ) ) / - + 2
----
-35

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

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

query II rowsort
SELECT - 39 AS col0, - 53 AS col2
----
-39
-53

query II rowsort
SELECT ALL 41 AS col1, 27 - - 72 AS col1
----
41
99

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

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

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

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

query I rowsort
SELECT 31 - + 43 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-834
SELECT ALL 7 AS col2, - 34 * + - COUNT( * ) * - - 12
----
7
408

skipif mysql # not compatible
query II rowsort label-834
SELECT ALL 7 AS col2, - 34 * + - COUNT ( * ) * - - 12
----
7
408

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

skipif mysql # not compatible
query II rowsort label-835
SELECT - 8, COUNT ( * ) AS col2
----
-8
1

query I rowsort
SELECT ( - 3 ) * - + CASE 26 WHEN + ( - - 59 ) THEN 28 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-837
SELECT 64 AS col0, 74 * CAST( NULL AS SIGNED ) * + AVG ( 15 )
----
64
NULL

skipif mysql # not compatible
query II rowsort label-837
SELECT 64 AS col0, 74 * CAST ( NULL AS INTEGER ) * + AVG ( 15 )
----
64
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-838
SELECT ( - 86 ) DIV COUNT( * ) * 0 + 4 * 71 AS col1
----
284

skipif mysql # not compatible
query I rowsort label-838
SELECT ( - 86 ) / COUNT ( * ) * 0 + 4 * 71 AS col1
----
284

query I rowsort
SELECT 63 + - - 82
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT DISTINCT 39 + - 96 * 47 * 64 DIV - 86 AS col1
----
3396

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT 39 + - 96 * 47 * 64 / - 86 AS col1
----
3396

onlyif mysql # DIV for integer division: 
query II rowsort label-841
SELECT ( + - 7 ) DIV + 65 * 3, - 67 AS col0
----
0
-67

skipif mysql # not compatible
query II rowsort label-841
SELECT ( + - 7 ) / + 65 * 3, - 67 AS col0
----
0
-67

query I rowsort
SELECT ALL - 32 + 87 AS col0
----
55

query II rowsort
SELECT - 31 col2, 40
----
-31
40

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

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

query I rowsort
SELECT 33 * + + 70 + - + 31
----
2279

onlyif mysql # DIV for integer division: 
query I rowsort label-846
SELECT - 16 DIV ( + 6 ) * + 9 - + - 22 col2
----
4

skipif mysql # not compatible
query I rowsort label-846
SELECT - 16 / ( + 6 ) * + 9 - + - 22 col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-847
SELECT - 51 DIV SUM( - 52 ) * - - 90 + + SUM( CAST( - ( + 41 ) AS SIGNED ) ) + + 0 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-847
SELECT - 51 / SUM ( - 52 ) * - - 90 + + SUM ( CAST ( - ( + 41 ) AS INTEGER ) ) + + 0 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-848
SELECT - 53, + COUNT( * ) * + 14 AS col1
----
-53
14

skipif mysql # not compatible
query II rowsort label-848
SELECT - 53, + COUNT ( * ) * + 14 AS col1
----
-53
14

query II rowsort
SELECT - 75, 32 AS col1
----
-75
32

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL + - 24 + - 70 + 41 + + + 51 * NULLIF ( COUNT( * ), 52 - + + COUNT( * ) + COUNT( * ) + + + ( + + 81 ) + + COUNT( * ) * 52 ) + - COUNT( * ) * - + 14 * + COALESCE ( + + COUNT( * ), + NULLIF ( + COUNT( - 61 ), - 50 + - + ( - 66 ) ) + + + 12, + 2, - - 45 ) * - + 35
----
-492

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL + - 24 + - 70 + 41 + + + 51 * NULLIF ( COUNT ( * ), 52 - + + COUNT ( * ) + COUNT ( * ) + + + ( + + 81 ) + + COUNT ( * ) * 52 ) + - COUNT ( * ) * - + 14 * + COALESCE ( + + COUNT ( * ), + NULLIF ( + COUNT ( - 61 ), - 50 + - + ( - 66 ) ) + + + 12, + 2, - - 45 ) * - + 35
----
-492

query II rowsort
SELECT ALL - + 78 AS col2, 51
----
-78
51

query II rowsort
SELECT ALL - + 61 AS col2, - 71 - - + 47 AS col2
----
-61
-24

query I rowsort
SELECT + 40 * + 81 - - ( - 84 ) AS col2
----
3156

query I rowsort
SELECT ALL + 84 - 66 AS col1
----
18

query II rowsort
SELECT + 82 AS col1, - 93 + - 86
----
82
-179

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT + 48 * - - 69 + + - COUNT( * )
----
3311

skipif mysql # not compatible
query I rowsort label-857
SELECT + 48 * - - 69 + + - COUNT ( * )
----
3311

query II rowsort
SELECT + 60 AS col2, + 77 + - + 99 AS col2
----
60
-22

query I rowsort
SELECT ALL + 34 * + 8 * - - NULLIF ( - 84, 74 + - 57 + 48 ) AS col1
----
-22848

onlyif mysql # DIV for integer division: 
query I rowsort label-860
SELECT DISTINCT + 62 DIV + NULLIF ( 28, - 29 )
----
2

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT + 62 / + NULLIF ( 28, - 29 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT 31 + - - ( + - COUNT( * ) ) + + 97 * - + 11 * - 17 * - 36 * - 60
----
39180270

skipif mysql # not compatible
query I rowsort label-861
SELECT 31 + - - ( + - COUNT ( * ) ) + + 97 * - + 11 * - 17 * - 36 * - 60
----
39180270

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT ALL NULLIF ( - 79, - ( 27 ) ) + COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL NULLIF ( - 79, - ( 27 ) ) + COUNT ( * ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT COUNT( * ) + + NULLIF ( + 32, + + 13 * - - 17 ) + + 88 col0
----
121

skipif mysql # not compatible
query I rowsort label-863
SELECT COUNT ( * ) + + NULLIF ( + 32, + + 13 * - - 17 ) + + 88 col0
----
121

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

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

query I rowsort
SELECT ALL + COALESCE ( + + ( + 94 ), - 18 ) + - 66
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT - MIN( DISTINCT - - 40 ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-866
SELECT - MIN ( DISTINCT - - 40 ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT DISTINCT ( + COUNT( * ) ) + 80 * 30 AS col2
----
2401

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT ( + COUNT ( * ) ) + 80 * 30 AS col2
----
2401

onlyif mysql # aggregate syntax: 
query II rowsort label-868
SELECT + 73 + + 43 AS col0, + COUNT( * ) AS col1
----
116
1

skipif mysql # not compatible
query II rowsort label-868
SELECT + 73 + + 43 AS col0, + COUNT ( * ) AS col1
----
116
1

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT + NULLIF ( - COUNT( * ), 27 * 4 - 21 / + 29 * - 48 * + ( + 25 ) + + - 60 ) * - + 61
----
61

skipif mysql # not compatible
query I rowsort label-869
SELECT + NULLIF ( - COUNT ( * ), 27 * 4 - 21 / + 29 * - 48 * + ( + 25 ) + + - 60 ) * - + 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL 82 + 23 * + - CASE - ( ( - ( - - 36 ) ) ) WHEN - COUNT( * ) THEN - SUM( 42 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL 82 + 23 * + - CASE - ( ( - ( - - 36 ) ) ) WHEN - COUNT ( * ) THEN - SUM ( 42 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-871
SELECT + + COUNT( - 29 ) + COUNT( * ) col2, 77 + + - 78
----
2
-1

skipif mysql # not compatible
query II rowsort label-871
SELECT + + COUNT ( - 29 ) + COUNT ( * ) col2, 77 + + - 78
----
2
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT + + COUNT( DISTINCT + 79 ) - + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-872
SELECT + + COUNT ( DISTINCT + 79 ) - + + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-873
SELECT ALL - 79 * + SUM( DISTINCT - COALESCE ( 22, COALESCE ( 92, 5 ) ) ) + + 44 + + 30 * - COUNT( * ) DIV + 53 * + + 36 - - - 31 AS col1
----
1751

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - 79 * + SUM ( DISTINCT - COALESCE ( 22, COALESCE ( 92, 5 ) ) ) + + 44 + + 30 * - COUNT ( * ) / + 53 * + + 36 - - - 31 AS col1
----
1751

onlyif mysql # aggregate syntax: 
query II rowsort label-874
SELECT ALL + MAX( - 12 ), - 28 AS col1
----
-12
-28

skipif mysql # not compatible
query II rowsort label-874
SELECT ALL + MAX ( - 12 ), - 28 AS col1
----
-12
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-875
SELECT + CASE CAST( - + ( - 72 ) AS SIGNED ) WHEN + 93 / + + CAST( + 75 AS SIGNED ) * 44 THEN - - 70 WHEN - ( + 64 ) THEN NULL WHEN - MAX( - - 91 ) * + - 64 * - - 88 * + + 63 THEN NULL ELSE SUM( ALL - - NULLIF ( - - 9, - 15 ) ) END, + 70 AS col0
----
9
70

skipif mysql # not compatible
query II rowsort label-875
SELECT + CASE CAST ( - + ( - 72 ) AS INTEGER ) WHEN + 93 / + + CAST ( + 75 AS INTEGER ) * 44 THEN - - 70 WHEN - ( + 64 ) THEN NULL WHEN - MAX ( - - 91 ) * + - 64 * - - 88 * + + 63 THEN NULL ELSE SUM ( ALL - - NULLIF ( - - 9, - 15 ) ) END, + 70 AS col0
----
9
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-876
SELECT ALL + CAST( - MIN( 47 ) AS SIGNED ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL + CAST ( - MIN ( 47 ) AS INTEGER ) AS col0
----
-47

query I rowsort
SELECT DISTINCT + 31 * + 92 - - + 13
----
2865

query I rowsort
SELECT DISTINCT + 10 col2
----
10

query I rowsort
SELECT ALL - + 9 * 99 * + 53 * 0 + 88
----
88

query I rowsort
SELECT ALL + 88 * + - 71 - - 21 AS col2
----
-6227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-881
SELECT + - 38 * - + 75 + - - 49 + + 40 * + 65 * + 53 + - + 31 DIV 82 * - 53 + + - COUNT( * ) AS col0
----
140698

skipif mysql # not compatible
query I rowsort label-881
SELECT + - 38 * - + 75 + - - 49 + + 40 * + 65 * + 53 + - + 31 / 82 * - 53 + + - COUNT ( * ) AS col0
----
140698

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT + SUM( 19 ) * 45
----
855

skipif mysql # not compatible
query I rowsort label-882
SELECT + SUM ( 19 ) * 45
----
855

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-883
SELECT - 42 * - CAST( NULL AS SIGNED ) AS col0, 69
----
NULL
69

skipif mysql # not compatible
query II rowsort label-883
SELECT - 42 * - CAST ( NULL AS INTEGER ) AS col0, 69
----
NULL
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT + + 8 * - 16 * COALESCE ( - - MIN( DISTINCT + 76 ), - 62, NULLIF ( + ( + NULLIF ( 11, - 72 + - 11 ) ), + - MAX( DISTINCT 58 ) ) * - 74 * 75 ) AS col1
----
-9728

skipif mysql # not compatible
query I rowsort label-885
SELECT + + 8 * - 16 * COALESCE ( - - MIN ( DISTINCT + 76 ), - 62, NULLIF ( + ( + NULLIF ( 11, - 72 + - 11 ) ), + - MAX ( DISTINCT 58 ) ) * - 74 * 75 ) AS col1
----
-9728

query I rowsort
SELECT ALL - 3 * 33 AS col1
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-887
SELECT - 17 DIV - 71 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-887
SELECT - 17 / - 71 * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT ALL COUNT( * ) * - 32 col0
----
-32

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL COUNT ( * ) * - 32 col0
----
-32

query I rowsort
SELECT ALL + 12 * + 21 + + 99
----
351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-890
SELECT DISTINCT + CAST( + 23 AS SIGNED ) col0
----
23

skipif mysql # not compatible
query I rowsort label-890
SELECT DISTINCT + CAST ( + 23 AS INTEGER ) col0
----
23

query II rowsort
SELECT + 93, 24 AS col0
----
93
24

query II rowsort
SELECT + 96, - ( - 84 ) * + 36 * + 10 * - - ( + + 45 ) + - 72 AS col1
----
96
1360728

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT DISTINCT + 18 * - COUNT( * ) + + 51 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT + 18 * - COUNT ( * ) + + 51 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT ALL - COUNT( * ) * 32 + COUNT( * ) - - COUNT( * ) * 24 * + 57 * - 23 * 69 * + - 26 + + 22 AS col1
----
56446407

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL - COUNT ( * ) * 32 + COUNT ( * ) - - COUNT ( * ) * 24 * + 57 * - 23 * 69 * + - 26 + + 22 AS col1
----
56446407

query I rowsort
SELECT - 34 - - 33 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT - 10 - COALESCE ( 67, - - 18, - COUNT( * ) * COUNT( * ) ) * + 48 col2
----
-3226

skipif mysql # not compatible
query I rowsort label-896
SELECT - 10 - COALESCE ( 67, - - 18, - COUNT ( * ) * COUNT ( * ) ) * + 48 col2
----
-3226

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL - 4 * - 49 * SUM( ALL - - 89 ) AS col2
----
17444

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL - 4 * - 49 * SUM ( ALL - - 89 ) AS col2
----
17444

query I rowsort
SELECT DISTINCT - 31 + + ( - + 71 )
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT ALL + ( - NULLIF ( + + COUNT( * ), - COUNT( * ) ) ) + - ( - COALESCE ( + 6, + - ( 28 ) ) ) DIV - - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL + ( - NULLIF ( + + COUNT ( * ), - COUNT ( * ) ) ) + - ( - COALESCE ( + 6, + - ( 28 ) ) ) / - - COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT DISTINCT - 86 * + + 84 * - SUM( ALL 57 ) AS col0
----
411768

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT - 86 * + + 84 * - SUM ( ALL 57 ) AS col0
----
411768

query I rowsort
SELECT DISTINCT + 31 + + + 71 AS col0
----
102

query I rowsort
SELECT DISTINCT + 59 + - + 20
----
39

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

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

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

query I rowsort
SELECT DISTINCT - 86 * - - 96 AS col1
----
-8256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-906
SELECT - 32 - CAST( NULL AS SIGNED ) + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-906
SELECT - 32 - CAST ( NULL AS INTEGER ) + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT - 44 * + MIN( ALL - - 2 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-907
SELECT - 44 * + MIN ( ALL - - 2 ) AS col0
----
-88

query I rowsort
SELECT - COALESCE ( + + ( - 17 ), 73, + - 1 )
----
17

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

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

query I rowsort
SELECT ALL + 14 - 86 * 82 * + 50
----
-352586

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

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT - + 30 + CASE + + 19 WHEN + + 9 THEN NULL WHEN - 39 + - CASE + 79 WHEN + 55 * - 12 THEN + + 76 WHEN - 58 THEN NULL ELSE NULL END * AVG ( + 48 ) THEN + 29 * + 16 + COUNT( * ) + + 76 + - 51 END * - 73 * + 63 * SUM( DISTINCT - 81 ) + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT - + 30 + CASE + + 19 WHEN + + 9 THEN NULL WHEN - 39 + - CASE + 79 WHEN + 55 * - 12 THEN + + 76 WHEN - 58 THEN NULL ELSE NULL END * AVG ( + 48 ) THEN + 29 * + 16 + COUNT ( * ) + + 76 + - 51 END * - 73 * + 63 * SUM ( DISTINCT - 81 ) + 98
----
NULL

query I rowsort
SELECT + + 25 * + 56 AS col1
----
1400

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT ALL + 19 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL + 19 / - 85
----
0

query II rowsort
SELECT DISTINCT 43 AS col0, 16 * 20 AS col1
----
43
320

query II rowsort
SELECT + - 83, - 60 AS col0
----
-83
-60

query II rowsort
SELECT ALL + 17 col0, - 11 * - + 5 AS col2
----
17
55

query I rowsort
SELECT + + 23 * + 4 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT + + 12 + + - 99 * 0 + - - COUNT( DISTINCT + - 57 ) col2
----
13

skipif mysql # not compatible
query I rowsort label-919
SELECT + + 12 + + - 99 * 0 + - - COUNT ( DISTINCT + - 57 ) col2
----
13

query II rowsort
SELECT 67, ( - 32 ) AS col0
----
67
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-921
SELECT DISTINCT + 74 * + SUM( + + 27 ) AS col2, + 71 AS col1
----
1998
71

skipif mysql # not compatible
query II rowsort label-921
SELECT DISTINCT + 74 * + SUM ( + + 27 ) AS col2, + 71 AS col1
----
1998
71

onlyif mysql # DIV for integer division: 
query I rowsort label-922
SELECT + + 63 * 41 DIV - 80 + 98 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-922
SELECT + + 63 * 41 / - 80 + 98 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT 46 * + - 65 * 27 - + COALESCE ( + COUNT( * ), + 49 )
----
-80731

skipif mysql # not compatible
query I rowsort label-923
SELECT 46 * + - 65 * 27 - + COALESCE ( + COUNT ( * ), + 49 )
----
-80731

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-925
SELECT + 46 + + 82, + CASE + + NULLIF ( + + 2, - 24 ) WHEN - - MIN( 57 ) - + ( MAX( ALL - 57 ) ) - - COUNT( * ) THEN - + 89 WHEN - 61 + COUNT( * ) THEN NULL WHEN - + 25 * + - 16 THEN - + ( 25 ) ELSE 6 - - - 99 END AS col1
----
128
-93

skipif mysql # not compatible
query II rowsort label-925
SELECT + 46 + + 82, + CASE + + NULLIF ( + + 2, - 24 ) WHEN - - MIN ( 57 ) - + ( MAX ( ALL - 57 ) ) - - COUNT ( * ) THEN - + 89 WHEN - 61 + COUNT ( * ) THEN NULL WHEN - + 25 * + - 16 THEN - + ( 25 ) ELSE 6 - - - 99 END AS col1
----
128
-93

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

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

query I rowsort
SELECT ( - - COALESCE ( + - ( - 18 ), + - 64, - 24 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT 8 * + - CASE ( - 57 ) WHEN - 66 THEN 17 * 65 + - + ( + 44 ) + - + 69 WHEN - + COUNT( ALL 62 ) THEN NULL END - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT 8 * + - CASE ( - 57 ) WHEN - 66 THEN 17 * 65 + - + ( + 44 ) + - + 69 WHEN - + COUNT ( ALL 62 ) THEN NULL END - - 53
----
NULL

query I rowsort
SELECT ALL - 72 * - 5 AS col2
----
360

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-931
SELECT ALL - CAST( NULL AS DECIMAL ) * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL - CAST ( NULL AS REAL ) * 40
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-932
SELECT 31 + COUNT( * ) / - + 15 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT 31 + COUNT ( * ) / - + 15 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 93 + + 31 - - 58 AS col2
----
182

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

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

query I rowsort
SELECT ALL 45 * 28 AS col2
----
1260

query I rowsort
SELECT 66 + 10 AS col1
----
76

query II rowsort
SELECT 46 * 2 AS col1, 72 AS col1
----
92
72

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT 82 * COUNT( * ) * + 78 * - MIN( ALL - 28 ) AS col0
----
179088

skipif mysql # not compatible
query I rowsort label-938
SELECT 82 * COUNT ( * ) * + 78 * - MIN ( ALL - 28 ) AS col0
----
179088

query I rowsort
SELECT - 47 + 6 AS col1
----
-41

query I rowsort
SELECT ALL - 57 * 18 * - 39 col2
----
40014

query II rowsort
SELECT DISTINCT - 46 - - 96, - 63 * + 81 col2
----
50
-5103

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

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

query I rowsort
SELECT 52 * 71
----
3692

query II rowsort
SELECT ALL - 97 * + 63 AS col0, - 76
----
-6111
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-945
SELECT - COUNT( - - CAST( - - 37 AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-945
SELECT - COUNT ( - - CAST ( - - 37 AS INTEGER ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-946
SELECT ( 51 ) + - NULLIF ( + - 52, + - 93 ) * 95 DIV 90 + + 99
----
204

skipif mysql # not compatible
query I rowsort label-946
SELECT ( 51 ) + - NULLIF ( + - 52, + - 93 ) * 95 / 90 + + 99
----
204

query I rowsort
SELECT 29 + 12 AS col0
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT 19 + 89 + MAX( DISTINCT + 13 ) col1
----
121

skipif mysql # not compatible
query I rowsort label-949
SELECT 19 + 89 + MAX ( DISTINCT + 13 ) col1
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-950
SELECT DISTINCT - 14 + - + 34 AS col1, SUM( DISTINCT - 19 ) * + + 21 - 14
----
-48
-413

skipif mysql # not compatible
query II rowsort label-950
SELECT DISTINCT - 14 + - + 34 AS col1, SUM ( DISTINCT - 19 ) * + + 21 - 14
----
-48
-413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-951
SELECT DISTINCT - + CASE 91 WHEN 81 * + 8 + 16 + + - COALESCE ( - + 39, - - ( 36 ) ) * + 57 * + 83 * ( + 72 ) + - - 93 * - CASE - ( 61 ) WHEN - COALESCE ( + 49, + + 0 ) * 98 THEN 95 WHEN + + COUNT( * ) + 3 + 61 THEN NULL END + + CAST( 17 AS SIGNED ) - + 92 * - 56 * - CAST( NULL AS SIGNED ) THEN NULL WHEN + + COALESCE ( + + COUNT( * ), + 36 + 98 + - + COALESCE ( - 29, 43, - 11 ) + - 81 - 12 * 7 * 2 ) * + 70 THEN NULL ELSE + 37 END
----
-37

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT - + CASE 91 WHEN 81 * + 8 + 16 + + - COALESCE ( - + 39, - - ( 36 ) ) * + 57 * + 83 * ( + 72 ) + - - 93 * - CASE - ( 61 ) WHEN - COALESCE ( + 49, + + 0 ) * 98 THEN 95 WHEN + + COUNT ( * ) + 3 + 61 THEN NULL END + + CAST ( 17 AS INTEGER ) - + 92 * - 56 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + COALESCE ( + + COUNT ( * ), + 36 + 98 + - + COALESCE ( - 29, 43, - 11 ) + - 81 - 12 * 7 * 2 ) * + 70 THEN NULL ELSE + 37 END
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT ALL + 81 + COUNT( * ) + - 25 + + 8 * + 98 - + 20
----
821

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL + 81 + COUNT ( * ) + - 25 + + 8 * + 98 - + 20
----
821

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

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

query I rowsort
SELECT DISTINCT + ( + + 85 ) + - - 84 AS col0
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-955
SELECT DISTINCT + 89 * 77 + - 90 DIV + 71
----
6852

skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT + 89 * 77 + - 90 / + 71
----
6852

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT - 75 DIV + - 84 + + - 90 + + 85
----
-5

skipif mysql # not compatible
query I rowsort label-956
SELECT - 75 / + - 84 + + - 90 + + 85
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT 41 * SUM( 5 ) AS col0, 19 + + - 21 * + 71 AS col0
----
205
-1472

skipif mysql # not compatible
query II rowsort label-957
SELECT 41 * SUM ( 5 ) AS col0, 19 + + - 21 * + 71 AS col0
----
205
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT 12 * - CASE 82 WHEN MAX( ALL - 60 ) + + - COUNT( * ) THEN - + 56 + - 30 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT 12 * - CASE 82 WHEN MAX ( ALL - 60 ) + + - COUNT ( * ) THEN - + 56 + - 30 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-959
SELECT CAST( + + 99 AS SIGNED ) + - 49 * - + 13 * 99
----
63162

skipif mysql # not compatible
query I rowsort label-959
SELECT CAST ( + + 99 AS INTEGER ) + - 49 * - + 13 * 99
----
63162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-960
SELECT 31 DIV - + MAX( 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-960
SELECT 31 / - + MAX ( 21 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT ALL - ( + CAST( - 7 AS SIGNED ) ) + 76 + - - 6 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL - ( + CAST ( - 7 AS INTEGER ) ) + 76 + - - 6 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT COUNT( * ) * + 11 * + 80
----
880

skipif mysql # not compatible
query I rowsort label-962
SELECT COUNT ( * ) * + 11 * + 80
----
880

query I rowsort
SELECT ALL 75 + 66 AS col2
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-964
SELECT DISTINCT 34 DIV - 15 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT 34 / - 15 AS col1
----
-2

query I rowsort
SELECT DISTINCT 4 - + + 30 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT COUNT( * ) * - NULLIF ( + 65, + + 67 )
----
-65

skipif mysql # not compatible
query I rowsort label-966
SELECT COUNT ( * ) * - NULLIF ( + 65, + + 67 )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT DISTINCT ( - 55 ) DIV - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT ( - 55 ) / - 93 AS col2
----
0

query I rowsort
SELECT ALL 39 - - COALESCE ( - 97, + 65 + + + 53 ) AS col1
----
-58

query II rowsort
SELECT 95 AS col2, + 77
----
95
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-970
SELECT 82 * + CAST( MAX( + 76 ) AS SIGNED ) AS col2
----
6232

skipif mysql # not compatible
query I rowsort label-970
SELECT 82 * + CAST ( MAX ( + 76 ) AS INTEGER ) AS col2
----
6232

onlyif mysql # aggregate syntax: 
query II rowsort label-971
SELECT ALL 33 * + SUM( DISTINCT - 67 ) AS col0, COUNT( * ) * - NULLIF ( + + 53, + - 66 ) * + COALESCE ( - 42, 96 )
----
-2211
2226

skipif mysql # not compatible
query II rowsort label-971
SELECT ALL 33 * + SUM ( DISTINCT - 67 ) AS col0, COUNT ( * ) * - NULLIF ( + + 53, + - 66 ) * + COALESCE ( - 42, 96 )
----
-2211
2226

query I rowsort
SELECT 56 - - 6 * + CASE 7 WHEN - 92 * - 42 THEN + + 26 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-973
SELECT - 26 AS col1, + 1 + 34 - + CASE - 15 WHEN + - ( + + 80 ) - + CAST( NULL AS SIGNED ) * - 59 THEN - 5 * + + 54 ELSE NULL END * - + 98 * 57 col2
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-973
SELECT - 26 AS col1, + 1 + 34 - + CASE - 15 WHEN + - ( + + 80 ) - + CAST ( NULL AS INTEGER ) * - 59 THEN - 5 * + + 54 ELSE NULL END * - + 98 * 57 col2
----
-26
NULL

query I rowsort
SELECT ALL 79 * - 3
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-975
SELECT + 45 DIV + + 59 * + - 38 + + 59 + 36 * + 38 + 6 AS col1
----
1433

skipif mysql # not compatible
query I rowsort label-975
SELECT + 45 / + + 59 * + - 38 + + 59 + 36 * + 38 + 6 AS col1
----
1433

query I rowsort
SELECT ALL + 92 * - 7 AS col1
----
-644

onlyif mysql # aggregate syntax: 
query II rowsort label-977
SELECT ALL + COUNT( * ) AS col0, 33 * - 95 * - 99 + - 23 AS col2
----
1
310342

skipif mysql # not compatible
query II rowsort label-977
SELECT ALL + COUNT ( * ) AS col0, 33 * - 95 * - 99 + - 23 AS col2
----
1
310342

query I rowsort
SELECT ALL - 17 * + - 51 AS col1
----
867

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT DISTINCT 37 * - ( + COUNT( * ) ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT 37 * - ( + COUNT ( * ) ) col1
----
-37

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

query I rowsort
SELECT ALL NULLIF ( - 0, - - 69 + + - 37 + 15 )
----
0

query I rowsort
SELECT 67 * + 48 AS col1
----
3216

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT - 95 * - - 92 + + COUNT( * )
----
-8739

skipif mysql # not compatible
query I rowsort label-983
SELECT - 95 * - - 92 + + COUNT ( * )
----
-8739

query II rowsort
SELECT ALL 95, 16 AS col2
----
95
16

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - 52 + - SUM( ALL + 13 ) + + 10
----
-55

skipif mysql # not compatible
query I rowsort label-985
SELECT - 52 + - SUM ( ALL + 13 ) + + 10
----
-55

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-987
SELECT ALL - COUNT( * ) + CAST( NULL AS DECIMAL ) + + - 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL - COUNT ( * ) + CAST ( NULL AS REAL ) + + - 76 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT - - COUNT( + - 11 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-988
SELECT - - COUNT ( + - 11 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL + COUNT( * ) + + 60
----
61

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL + COUNT ( * ) + + 60
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT 60 / + ( - CAST( NULL AS SIGNED ) ) + 71 * + 9 / 48 * - + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT 60 / + ( - CAST ( NULL AS INTEGER ) ) + 71 * + 9 / 48 * - + 49 AS col0
----
NULL

query I rowsort
SELECT ALL + - 89 * - - 96 + - 64
----
-8608

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT - 10 * 23 + - 21 - + - 6 - 23 * - + 25 + - COUNT( * ) AS col2
----
329

skipif mysql # not compatible
query I rowsort label-992
SELECT - 10 * 23 + - 21 - + - 6 - 23 * - + 25 + - COUNT ( * ) AS col2
----
329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-993
SELECT - 33 DIV COUNT( * ) + + 15
----
-18

skipif mysql # not compatible
query I rowsort label-993
SELECT - 33 / COUNT ( * ) + + 15
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT COUNT( * ) * 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-994
SELECT COUNT ( * ) * 67 AS col1
----
67

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

onlyif mysql # DIV for integer division: 
query II rowsort label-996
SELECT - 11 + - 62 - - ( 47 ) AS col0, 30 DIV - - 88
----
-26
0

skipif mysql # not compatible
query II rowsort label-996
SELECT - 11 + - 62 - - ( 47 ) AS col0, 30 / - - 88
----
-26
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-997
SELECT ALL + CASE WHEN NOT NULL IS NOT NULL THEN + CAST( - 81 AS SIGNED ) WHEN NOT NULL NOT BETWEEN NULL AND 15 * 92 - - 64 THEN NULL ELSE NULL END AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL + CASE WHEN NOT NULL IS NOT NULL THEN + CAST ( - 81 AS INTEGER ) WHEN NOT NULL NOT BETWEEN NULL AND 15 * 92 - - 64 THEN NULL ELSE NULL END AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT - COUNT( * ) * 49 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-998
SELECT - COUNT ( * ) * 49 AS col2
----
-49

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

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

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

query I rowsort
SELECT DISTINCT 93 * - 95
----
-8835

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT ALL + 59 * + 86 - COUNT( * ) + + + ( - 58 )
----
5015

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL + 59 * + 86 - COUNT ( * ) + + + ( - 58 )
----
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + COUNT( * ) + + + 99 col1
----
100

skipif mysql # not compatible
query I rowsort label-1003
SELECT + COUNT ( * ) + + + 99 col1
----
100

query I rowsort
SELECT - 45 * - 2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT + CASE - COUNT( * ) WHEN - 84 + - ( 63 ) THEN + 42 WHEN - 82 + 36 THEN + ( 54 ) END * - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT + CASE - COUNT ( * ) WHEN - 84 + - ( 63 ) THEN + 42 WHEN - 82 + 36 THEN + ( 54 ) END * - + 2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1007
SELECT + CASE ( CAST( NULL AS SIGNED ) ) WHEN + + 21 THEN + 88 WHEN - 78 THEN NULL ELSE 62 END * 50 AS col2
----
3100

skipif mysql # not compatible
query I rowsort label-1007
SELECT + CASE ( CAST ( NULL AS INTEGER ) ) WHEN + + 21 THEN + 88 WHEN - 78 THEN NULL ELSE 62 END * 50 AS col2
----
3100

query I rowsort
SELECT ALL 92 * - - 57
----
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT + 50 * 17 - - COUNT( - ( + 3 ) ) col2
----
851

skipif mysql # not compatible
query I rowsort label-1009
SELECT + 50 * 17 - - COUNT ( - ( + 3 ) ) col2
----
851

query II rowsort
SELECT DISTINCT + 95 AS col1, - 52 + + 7
----
95
-45

query I rowsort
SELECT + 74 + + 64
----
138

query II rowsort
SELECT ALL + 36 col2, + 40
----
36
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1013
SELECT MAX( DISTINCT + 35 ) AS col1, 85 + + COUNT( * ) * - 32 AS col0
----
35
53

skipif mysql # not compatible
query II rowsort label-1013
SELECT MAX ( DISTINCT + 35 ) AS col1, 85 + + COUNT ( * ) * - 32 AS col0
----
35
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1014
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 98 DIV - + ( + 64 ) - + 31 AS col0
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-1014
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 98 / - + ( + 64 ) - + 31 AS col0
----
NULL
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT ALL MIN( DISTINCT + 27 ) / COUNT( * ) * CAST( NULL AS SIGNED ) + + ( + + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL MIN ( DISTINCT + 27 ) / COUNT ( * ) * CAST ( NULL AS INTEGER ) + + ( + + 68 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1016
SELECT + 28 col1, 52 * - - 63 - - 81 DIV 29 + - + 80
----
28
3198

skipif mysql # not compatible
query II rowsort label-1016
SELECT + 28 col1, 52 * - - 63 - - 81 / 29 + - + 80
----
28
3198

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

skipif mysql # not compatible
query I rowsort label-1017
SELECT + + COUNT ( * ) + COUNT ( * ) / - 59
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1018
SELECT ALL ( - 26 ) DIV - 87 + 71 + 24 - - + 31 AS col1
----
126

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL ( - 26 ) / - 87 + 71 + 24 - - + 31 AS col1
----
126

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

query I rowsort
SELECT ALL 49 + - 51 * + 20
----
-971

query II rowsort
SELECT - 29 AS col2, - 49 + + - 64
----
-29
-113

query II rowsort
SELECT ALL 51 AS col2, - 16 + + + ( + 49 ) * - 69
----
51
-3397

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT + + 0 + + - 56 * + 87 * COUNT( * ) * + 21 AS col2
----
-102312

skipif mysql # not compatible
query I rowsort label-1023
SELECT + + 0 + + - 56 * + 87 * COUNT ( * ) * + 21 AS col2
----
-102312

query I rowsort
SELECT + 36 * 30 + 25 - + 86
----
1019

query I rowsort
SELECT ALL + 45 + - 17
----
28

query I rowsort
SELECT DISTINCT + 86 + - - 90
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-1027
SELECT + - COUNT( DISTINCT 65 ) * + + 43 * - MAX( DISTINCT - 30 ) + + 12 AS col2, + 41 col1
----
-1278
41

skipif mysql # not compatible
query II rowsort label-1027
SELECT + - COUNT ( DISTINCT 65 ) * + + 43 * - MAX ( DISTINCT - 30 ) + + 12 AS col2, + 41 col1
----
-1278
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1028
SELECT - 95 + + 18 DIV COUNT( * ) * 30 AS col1
----
445

skipif mysql # not compatible
query I rowsort label-1028
SELECT - 95 + + 18 / COUNT ( * ) * 30 AS col1
----
445

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT ALL 69 + - + COALESCE ( MIN( ALL - 62 ), + 24 ) AS col2
----
131

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL 69 + - + COALESCE ( MIN ( ALL - 62 ), + 24 ) AS col2
----
131

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

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

query II rowsort
SELECT 60 AS col2, + 22 AS col1
----
60
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT + ( + SUM( + 59 ) ) * + - 22 AS col1
----
-1298

skipif mysql # not compatible
query I rowsort label-1032
SELECT + ( + SUM ( + 59 ) ) * + - 22 AS col1
----
-1298

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

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

query I rowsort
SELECT DISTINCT - ( - 51 ) + - 27
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1035
SELECT CAST( + 49 AS SIGNED ), NULLIF ( 51, - COUNT( * ) ) AS col2
----
49
51

skipif mysql # not compatible
query II rowsort label-1035
SELECT CAST ( + 49 AS INTEGER ), NULLIF ( 51, - COUNT ( * ) ) AS col2
----
49
51

query I rowsort
SELECT ALL + 58 * - 56
----
-3248

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT ALL ( + 64 ) DIV 52 * - 86
----
-86

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL ( + 64 ) / 52 * - 86
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-1038
SELECT DISTINCT - 48 DIV + 83 - 77 + + - ( 25 )
----
-102

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT - 48 / + 83 - 77 + + - ( 25 )
----
-102

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

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

query I rowsort
SELECT DISTINCT + 68 * + 97
----
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT + COUNT( * ) * ( 79 ) * - ( + + 1 ) + + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1041
SELECT + COUNT ( * ) * ( 79 ) * - ( + + 1 ) + + 79 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT + 45 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-1042
SELECT + 45 / - 81
----
0

query I rowsort
SELECT - 51 * + + 37
----
-1887

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ( MAX( ALL - - 66 ) ) col1
----
66

skipif mysql # not compatible
query I rowsort label-1044
SELECT ( MAX ( ALL - - 66 ) ) col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1045
SELECT - NULLIF ( - NULLIF ( - 69, + + 8 ), - 66 * - COUNT( * ) ) * CASE + 75 WHEN 50 / + - 31 * NULLIF ( - 97, + 48 / - - AVG ( + 58 ) * - COUNT( DISTINCT + NULLIF ( + 44, + 26 ) ) * - 8 + 13 * + + CAST( + + 53 AS SIGNED ) + + ( 14 ) ) - 82 * - - CASE - - AVG ( 91 ) WHEN + CASE - 84 WHEN - AVG ( 7 ) + 26 THEN + 60 + - 22 END THEN - - 44 WHEN - + 54 * + 2 + 35 + 38 THEN - COUNT( 89 ) ELSE NULL END THEN 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1045
SELECT - NULLIF ( - NULLIF ( - 69, + + 8 ), - 66 * - COUNT ( * ) ) * CASE + 75 WHEN 50 / + - 31 * NULLIF ( - 97, + 48 / - - AVG ( + 58 ) * - COUNT ( DISTINCT + NULLIF ( + 44, + 26 ) ) * - 8 + 13 * + + CAST ( + + 53 AS INTEGER ) + + ( 14 ) ) - 82 * - - CASE - - AVG ( 91 ) WHEN + CASE - 84 WHEN - AVG ( 7 ) + 26 THEN + 60 + - 22 END THEN - - 44 WHEN - + 54 * + 2 + 35 + 38 THEN - COUNT ( 89 ) ELSE NULL END THEN 37 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + + 57, + 46 + - 95 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT DISTINCT + SUM( ALL - 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT + SUM ( ALL - 29 ) AS col2
----
-29

query I rowsort
SELECT ( - CASE + 57 WHEN + 80 * 27 THEN 73 WHEN 55 THEN NULL ELSE - 92 END ) col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1049
SELECT - 50 DIV + - NULLIF ( COUNT( * ), + NULLIF ( - 6, - - 42 * - 9 ) DIV - + 36 * + 48 + - 84 )
----
50

skipif mysql # not compatible
query I rowsort label-1049
SELECT - 50 / + - NULLIF ( COUNT ( * ), + NULLIF ( - 6, - - 42 * - 9 ) / - + 36 * + 48 + - 84 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1050
SELECT ALL - 24 / + + 46 * + CAST( NULL AS SIGNED ) * + + COALESCE ( - COALESCE ( + ( 58 ), + - 80 * 36 - + 42 + 39 + + 9 / 99 / + 3 + + + 63, + + 0, + - 81 ), - - 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL - 24 / + + 46 * + CAST ( NULL AS INTEGER ) * + + COALESCE ( - COALESCE ( + ( 58 ), + - 80 * 36 - + 42 + 39 + + 9 / 99 / + 3 + + + 63, + + 0, + - 81 ), - - 12 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT ALL 79 * - COUNT( * ) * - + 68
----
5372

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL 79 * - COUNT ( * ) * - + 68
----
5372

query I rowsort
SELECT DISTINCT + 67 * - - 15 + - 3
----
1002

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ALL - 3 * + - 77 + - COUNT( * ) * - + 70 AS col1
----
301

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL - 3 * + - 77 + - COUNT ( * ) * - + 70 AS col1
----
301

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1054
SELECT - + 45 - 54, 95 AS col0, COALESCE ( 39, + 20, - CAST( 66 AS SIGNED ) ) AS col0
----
-99
95
39

skipif mysql # not compatible
query III rowsort label-1054
SELECT - + 45 - 54, 95 AS col0, COALESCE ( 39, + 20, - CAST ( 66 AS INTEGER ) ) AS col0
----
-99
95
39

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

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

query I rowsort
SELECT 71 * - + 37 + - 94 col0
----
-2721

query I rowsort
SELECT DISTINCT + + 89 * - 5 * + 81
----
-36045

query I rowsort
SELECT ALL - 74 * 60 + + + ( - 21 ) AS col0
----
-4461

query I rowsort
SELECT ALL 76 * - 87 + + 44 AS col1
----
-6568

query I rowsort
SELECT ALL 0 + + 12 + 52
----
64

query I rowsort
SELECT + 84 + + 7 * - 31 + 10 * 25 + - ( + 98 ) + + - 15 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1062
SELECT DISTINCT ( 6 ) DIV - - CAST( + 78 AS SIGNED ) + + 87 + MAX( + 6 ) AS col1, NULLIF ( + + 73, 91 ) + - - 75 col1
----
93
148

skipif mysql # not compatible
query II rowsort label-1062
SELECT DISTINCT ( 6 ) / - - CAST ( + 78 AS INTEGER ) + + 87 + MAX ( + 6 ) AS col1, NULLIF ( + + 73, 91 ) + - - 75 col1
----
93
148

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

query I rowsort
SELECT 45 + + - 75
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1065
SELECT + COALESCE ( - - 96, + ( + - CAST( NULL AS SIGNED ) ) ) * - 36 AS col0
----
-3456

skipif mysql # not compatible
query I rowsort label-1065
SELECT + COALESCE ( - - 96, + ( + - CAST ( NULL AS INTEGER ) ) ) * - 36 AS col0
----
-3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1066
SELECT + CAST( 97 AS SIGNED ) + 49 * + COUNT( * ) * - + 61 AS col0
----
-2892

skipif mysql # not compatible
query I rowsort label-1066
SELECT + CAST ( 97 AS INTEGER ) + 49 * + COUNT ( * ) * - + 61 AS col0
----
-2892

query II rowsort
SELECT 41 * + - 5 * + 14 col2, ( 14 ) + + + 83 AS col1
----
-2870
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1068
SELECT ALL CAST( + 93 AS SIGNED ) * - 36 AS col0, NULLIF ( - 18, + 12 * + - 79 ) * 56 + - + 81 - 42 + - 99 * + 37 + + - 57 * - NULLIF ( 57, + 20 ) - - 45 * 68
----
-3348
1515

skipif mysql # not compatible
query II rowsort label-1068
SELECT ALL CAST ( + 93 AS INTEGER ) * - 36 AS col0, NULLIF ( - 18, + 12 * + - 79 ) * 56 + - + 81 - 42 + - 99 * + 37 + + - 57 * - NULLIF ( 57, + 20 ) - - 45 * 68
----
-3348
1515

query I rowsort
SELECT 82 * - + ( - + 40 ) + - + 30
----
3250

query I rowsort
SELECT ( + + 26 ) * 0 * + 6
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT 76 * ( CAST( - + 94 AS SIGNED ) )
----
-7144

skipif mysql # not compatible
query I rowsort label-1071
SELECT 76 * ( CAST ( - + 94 AS INTEGER ) )
----
-7144

onlyif mysql # aggregate syntax: 
query II rowsort label-1072
SELECT 82 * + 13 - NULLIF ( + 7, + 15 * 69 + + 92 + + - ( + + ( - - 78 ) ) + - - 54 * + - 65 ) + - 31 * + + NULLIF ( 48, COUNT( * ) ) AS col1, MIN( ALL - 16 ) * + + 61 + + 3 * 43 + + 89 AS col0
----
-429
-758

skipif mysql # not compatible
query II rowsort label-1072
SELECT 82 * + 13 - NULLIF ( + 7, + 15 * 69 + + 92 + + - ( + + ( - - 78 ) ) + - - 54 * + - 65 ) + - 31 * + + NULLIF ( 48, COUNT ( * ) ) AS col1, MIN ( ALL - 16 ) * + + 61 + + 3 * 43 + + 89 AS col0
----
-429
-758

query II rowsort
SELECT ALL - 1 AS col2, - 93
----
-1
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT DISTINCT - 10 * - 77 * COUNT( * ) AS col1
----
770

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT - 10 * - 77 * COUNT ( * ) AS col1
----
770

onlyif mysql # DIV for integer division: 
query I rowsort label-1075
SELECT DISTINCT 15 DIV - 43 col2
----
0

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT 15 / - 43 col2
----
0

query I rowsort
SELECT ALL - 92 + + ( + COALESCE ( - 97, 72 ) )
----
-189

query II rowsort
SELECT 81, + 74 AS col2
----
81
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT + 38 + COUNT( * ) * MIN( ALL + 41 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT + 38 + COUNT ( * ) * MIN ( ALL + 41 ) AS col2
----
79

query I rowsort
SELECT ALL - 80 + - 88 AS col1
----
-168

query I rowsort
SELECT 74 * + COALESCE ( + 44, - + 4, - 35 ) + 18
----
3274

query II rowsort
SELECT DISTINCT - 24 AS col1, - 77
----
-24
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1082
SELECT DISTINCT - 39 col0, - COUNT( * ) + + 64 AS col0
----
-39
63

skipif mysql # not compatible
query II rowsort label-1082
SELECT DISTINCT - 39 col0, - COUNT ( * ) + + 64 AS col0
----
-39
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT DISTINCT - 86 + - + COUNT( * ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT - 86 + - + COUNT ( * ) col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT - 54 + - - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-1084
SELECT - 54 + - - COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL SUM( + COALESCE ( 40, + 24 + - 74 ) )
----
40

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL SUM ( + COALESCE ( 40, + 24 + - 74 ) )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1086
SELECT - 98, COUNT( * ) * + - CAST( - - 17 AS SIGNED ) + 9 AS col0
----
-98
-8

skipif mysql # not compatible
query II rowsort label-1086
SELECT - 98, COUNT ( * ) * + - CAST ( - - 17 AS INTEGER ) + 9 AS col0
----
-98
-8

query II rowsort
SELECT DISTINCT - 8, - 69 AS col0
----
-8
-69

query I rowsort
SELECT 98 + - 66 AS col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1089
SELECT - 30 + - 62 - + SUM( DISTINCT - 23 ) + + + ( + 94 ) AS col2, - 74
----
25
-74

skipif mysql # not compatible
query II rowsort label-1089
SELECT - 30 + - 62 - + SUM ( DISTINCT - 23 ) + + + ( + 94 ) AS col2, - 74
----
25
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT CASE - - 79 WHEN - + 69 THEN NULL WHEN - 37 THEN - 68 ELSE + 16 END * - COUNT( DISTINCT + 35 ) + - 50 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1090
SELECT CASE - - 79 WHEN - + 69 THEN NULL WHEN - 37 THEN - 68 ELSE + 16 END * - COUNT ( DISTINCT + 35 ) + - 50 AS col2
----
-66

query I rowsort
SELECT ALL - - 19 * - 33
----
-627

query I rowsort
SELECT DISTINCT - + 69 * 44 + - 95 AS col1
----
-3131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1093
SELECT ALL 16 DIV - MAX( ( 73 ) ) * - - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL 16 / - MAX ( ( 73 ) ) * - - 75 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1094
SELECT MAX( ALL + - 13 ) + + 75 * + CASE - - COUNT( * ) WHEN 2 * - ( - CAST( - - 39 AS DECIMAL ) ) * 37 THEN + 23 WHEN + CAST( NULL AS SIGNED ) * 32 + + ( - + NULLIF ( - 69, 40 / - 78 * + + 8 * 17 ) ) THEN NULL WHEN 81 * - 46 THEN + 64 + - - 1 END * - 79 + + 1 - + - 0 AS col0, + 81 + - 31 - - ( - + 55 ) * + 44 AS col0
----
NULL
-2370

skipif mysql # not compatible
query II rowsort label-1094
SELECT MAX ( ALL + - 13 ) + + 75 * + CASE - - COUNT ( * ) WHEN 2 * - ( - CAST ( - - 39 AS REAL ) ) * 37 THEN + 23 WHEN + CAST ( NULL AS INTEGER ) * 32 + + ( - + NULLIF ( - 69, 40 / - 78 * + + 8 * 17 ) ) THEN NULL WHEN 81 * - 46 THEN + 64 + - - 1 END * - 79 + + 1 - + - 0 AS col0, + 81 + - 31 - - ( - + 55 ) * + 44 AS col0
----
NULL
-2370

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT DISTINCT 34 * ( + 96 ) DIV + ( 48 ) + 87 AS col2
----
155

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT 34 * ( + 96 ) / + ( 48 ) + 87 AS col2
----
155

query I rowsort
SELECT ALL 69 * - + 14 AS col1
----
-966

query I rowsort
SELECT 75 * + + 53
----
3975

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

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL 33 * + - COUNT ( * ) * - 64 AS col2
----
2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT CASE - + 89 WHEN + 42 THEN - + 95 WHEN + 94 THEN + ( + - COALESCE ( NULLIF ( + - 65, + CAST( NULL AS SIGNED ) ), - - 81 ) ) * + + 62 + - 40 END * 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1099
SELECT CASE - + 89 WHEN + 42 THEN - + 95 WHEN + 94 THEN + ( + - COALESCE ( NULLIF ( + - 65, + CAST ( NULL AS INTEGER ) ), - - 81 ) ) * + + 62 + - 40 END * 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL 9 * 30 * COUNT( * ) AS col0
----
270

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL 9 * 30 * COUNT ( * ) AS col0
----
270

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT DISTINCT - MAX( ALL - 89 ) + + - 78 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT - MAX ( ALL - 89 ) + + - 78 AS col1
----
11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1104
SELECT DISTINCT - ( - 13 ), 55 * COUNT( * ) AS col2
----
13
55

skipif mysql # not compatible
query II rowsort label-1104
SELECT DISTINCT - ( - 13 ), 55 * COUNT ( * ) AS col2
----
13
55

query I rowsort
SELECT DISTINCT 77 + + - 84
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT DISTINCT - CASE + - 91 WHEN - 67 THEN NULL WHEN + MIN( ALL + 8 ) THEN COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT - CASE + - 91 WHEN - 67 THEN NULL WHEN + MIN ( ALL + 8 ) THEN COUNT ( * ) ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT ALL - - SUM( - - 66 ) + ( 86 ) AS col0
----
152

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL - - SUM ( - - 66 ) + ( 86 ) AS col0
----
152

query I rowsort
SELECT ALL + 57 * + 81
----
4617

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1109
SELECT + + 58 * 65 * - CAST( NULL AS SIGNED ) + 85 AS col0, - COALESCE ( 73, - - 20 + 51 )
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-1109
SELECT + + 58 * 65 * - CAST ( NULL AS INTEGER ) + 85 AS col0, - COALESCE ( 73, - - 20 + 51 )
----
NULL
-73

query I rowsort
SELECT + NULLIF ( - 73, - 50 ) AS col2
----
-73

query I rowsort
SELECT + 92 * ( 77 ) - 0
----
7084

query II rowsort
SELECT - 61 * + + 0, 92 AS col2
----
0
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT - - NULLIF ( - + COALESCE ( 85, - + ( 3 ) ), - - 84 * COUNT( * ) - - 28 + 44 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-1113
SELECT - - NULLIF ( - + COALESCE ( 85, - + ( 3 ) ), - - 84 * COUNT ( * ) - - 28 + 44 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL + 92 * - SUM( - 76 )
----
6992

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + 92 * - SUM ( - 76 )
----
6992

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT ALL + + 4 DIV 49 * - + 8
----
0

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL + + 4 / 49 * - + 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT + + COUNT( DISTINCT 39 ) * + 92 - + - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-1116
SELECT + + COUNT ( DISTINCT 39 ) * + 92 - + - COUNT ( * )
----
93

query I rowsort
SELECT - ( - - NULLIF ( + + 87, - 61 * + 39 + - 70 + 48 ) ) * - - 40 col2
----
-3480

query I rowsort
SELECT - 17 - + + 71
----
-88

query I rowsort
SELECT + 29 * 54
----
1566

query II rowsort
SELECT - 84 AS col0, 28 * + 24 AS col1
----
-84
672

query I rowsort
SELECT DISTINCT - 37 * - + 21 AS col1
----
777

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

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

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT COUNT ( + + 2 ) AS col0
----
1

query II rowsort
SELECT - 95 AS col1, 35
----
-95
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL + SUM( - 17 ) + + SUM( DISTINCT - 33 )
----
-50

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL + SUM ( - 17 ) + + SUM ( DISTINCT - 33 )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1126
SELECT ALL 63 + + COUNT( * ) DIV 50 + + 84 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL 63 + + COUNT ( * ) / 50 + + 84 AS col0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT DISTINCT + 19 + - 59 + 40 + - CAST( NULL AS SIGNED ) + 64 + - + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT + 19 + - 59 + 40 + - CAST ( NULL AS INTEGER ) + 64 + - + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL NULLIF ( - 79, + + NULLIF ( 65, - 3 * COUNT( * ) + + 86 + + COUNT( * ) + - COUNT( * ) + - - 23 + 9 + 76 ) ) col2
----
-79

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL NULLIF ( - 79, + + NULLIF ( 65, - 3 * COUNT ( * ) + + 86 + + COUNT ( * ) + - COUNT ( * ) + - - 23 + 9 + 76 ) ) col2
----
-79

query I rowsort
SELECT - 39 + 65 AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1130
SELECT - 61 AS col2, - MIN( + 22 ) AS col0
----
-61
-22

skipif mysql # not compatible
query II rowsort label-1130
SELECT - 61 AS col2, - MIN ( + 22 ) AS col0
----
-61
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT + 21 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-1131
SELECT + 21 / 95
----
0

query I rowsort
SELECT ( - 35 ) AS col2
----
-35

query I rowsort
SELECT + NULLIF ( ( - + 89 ), + 2 )
----
-89

query II rowsort
SELECT - 9 + - 96 * + 75 AS col1, 95 AS col0
----
-7209
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT ALL SUM( + ( - 6 ) ) * - 48 + NULLIF ( + 11, - - 21 * 36 ) AS col2, ( - + 10 )
----
299
-10

skipif mysql # not compatible
query II rowsort label-1135
SELECT ALL SUM ( + ( - 6 ) ) * - 48 + NULLIF ( + 11, - - 21 * 36 ) AS col2, ( - + 10 )
----
299
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1136
SELECT ALL CAST( + - 77 AS SIGNED ) * 16 + - + 38 AS col2
----
-1270

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL CAST ( + - 77 AS INTEGER ) * 16 + - + 38 AS col2
----
-1270

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

skipif mysql # not compatible
query I rowsort label-1137
SELECT - CAST ( NULL AS INTEGER ) * - 43 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1138
SELECT - CAST( - 65 AS SIGNED ) * - 46 + + 17 - - - 3 * ( + 24 ) + - COUNT( * )
----
-3046

skipif mysql # not compatible
query I rowsort label-1138
SELECT - CAST ( - 65 AS INTEGER ) * - 46 + + 17 - - - 3 * ( + 24 ) + - COUNT ( * )
----
-3046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1139
SELECT ALL + 18 * - - 99 + - - CAST( - CAST( - 86 AS SIGNED ) AS SIGNED ) + - MAX( DISTINCT 5 ) AS col0
----
1863

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL + 18 * - - 99 + - - CAST ( - CAST ( - 86 AS INTEGER ) AS INTEGER ) + - MAX ( DISTINCT 5 ) AS col0
----
1863

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1141
SELECT - 40 * - 12 - - MIN( 33 ) - + - 0 + + COUNT( * ) + - + ( + + 0 ) + + - 70 * + - COALESCE ( - CAST( - CASE 20 WHEN + 44 THEN 60 WHEN COUNT( * ) * + + CASE + 1 WHEN + 75 - - 95 THEN + 46 WHEN + + 5 THEN + 56 ELSE - 6 END + 0 THEN NULL END AS SIGNED ), 80, - - 95 * - - 86 + - 16 + - + 74 DIV - 0 ) + - + 1 DIV + 83
----
6114

skipif mysql # not compatible
query I rowsort label-1141
SELECT - 40 * - 12 - - MIN ( 33 ) - + - 0 + + COUNT ( * ) + - + ( + + 0 ) + + - 70 * + - COALESCE ( - CAST ( - CASE 20 WHEN + 44 THEN 60 WHEN COUNT ( * ) * + + CASE + 1 WHEN + 75 - - 95 THEN + 46 WHEN + + 5 THEN + 56 ELSE - 6 END + 0 THEN NULL END AS INTEGER ), 80, - - 95 * - - 86 + - 16 + - + 74 / - 0 ) + - + 1 / + 83
----
6114

query I rowsort
SELECT ALL + ( + + 99 ) * + 84
----
8316

query I rowsort
SELECT + ( + 99 ) + + 19 AS col0
----
118

query I rowsort
SELECT + 36 + + 28
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT + MAX( + 28 ) * CASE AVG ( - 62 ) WHEN + 41 THEN + + 37 * + - 93 ELSE - 95 END + - 56 + - 49
----
-2765

skipif mysql # not compatible
query I rowsort label-1145
SELECT + MAX ( + 28 ) * CASE AVG ( - 62 ) WHEN + 41 THEN + + 37 * + - 93 ELSE - 95 END + - 56 + - 49
----
-2765

query I rowsort
SELECT DISTINCT - 39 * + 16 * - 90 - 52 AS col1
----
56108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1147
SELECT ALL + 53, + ( - + ( + + NULLIF ( + - ( + 39 ), - 65 - 58 ) ) ) * - COUNT( * ) * 86 * ( + ( - 5 ) ) AS col0, - CAST( NULL AS SIGNED ) col2
----
53
16770
NULL

skipif mysql # not compatible
query III rowsort label-1147
SELECT ALL + 53, + ( - + ( + + NULLIF ( + - ( + 39 ), - 65 - 58 ) ) ) * - COUNT ( * ) * 86 * ( + ( - 5 ) ) AS col0, - CAST ( NULL AS INTEGER ) col2
----
53
16770
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1148
SELECT COALESCE ( 63, - 50 DIV - CASE 36 WHEN - 33 THEN NULLIF ( 4, ( ( + + COALESCE ( - - 17, 97, CASE - 61 WHEN - + 58 THEN NULL WHEN - - ( + 15 ) * - 91 + + 94 + - + 56 + - MAX( DISTINCT + 59 ) * - ( - 60 ) + 90 + 55 THEN - + 78 END - + 64 ) ) ) + NULLIF ( + 72, + 63 ) ) WHEN - 75 * 98 THEN NULL ELSE 2 END + 44 )
----
63

skipif mysql # not compatible
query I rowsort label-1148
SELECT COALESCE ( 63, - 50 / - CASE 36 WHEN - 33 THEN NULLIF ( 4, ( ( + + COALESCE ( - - 17, 97, CASE - 61 WHEN - + 58 THEN NULL WHEN - - ( + 15 ) * - 91 + + 94 + - + 56 + - MAX ( DISTINCT + 59 ) * - ( - 60 ) + 90 + 55 THEN - + 78 END - + 64 ) ) ) + NULLIF ( + 72, + 63 ) ) WHEN - 75 * 98 THEN NULL ELSE 2 END + 44 )
----
63

query I rowsort
SELECT DISTINCT + - 51 AS col2
----
-51

query I rowsort
SELECT ALL - 96 * + 62
----
-5952

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT - 73 * ( 11 ) + - - 27 + + + 46 DIV 56 AS col2
----
-776

skipif mysql # not compatible
query I rowsort label-1152
SELECT - 73 * ( 11 ) + - - 27 + + + 46 / 56 AS col2
----
-776

query II rowsort
SELECT ALL 6 AS col1, ( - 53 ) AS col2
----
6
-53

query I rowsort
SELECT DISTINCT - 52 * 59 AS col1
----
-3068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1155
SELECT + MAX( ALL - 6 ) DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-1155
SELECT + MAX ( ALL - 6 ) / 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1156
SELECT - CAST( 87 AS SIGNED ) * - 74 + 81
----
6519

skipif mysql # not compatible
query I rowsort label-1156
SELECT - CAST ( 87 AS INTEGER ) * - 74 + 81
----
6519

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL + 19 * + + COALESCE ( 10, - ( 93 ), - COUNT( * ), ( - + COUNT( + 94 ) ) + 44 ) AS col2
----
190

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL + 19 * + + COALESCE ( 10, - ( 93 ), - COUNT ( * ), ( - + COUNT ( + 94 ) ) + 44 ) AS col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT - ( + ( - MAX( ALL CASE + 95 WHEN - 88 THEN 14 END ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT - ( + ( - MAX ( ALL CASE + 95 WHEN - 88 THEN 14 END ) ) )
----
NULL

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

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

query II rowsort
SELECT - 83 AS col1, + 87 * + 36 AS col0
----
-83
3132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1161
SELECT ALL CAST( NULL AS SIGNED ) + + + ( + 60 ) + - 20 * + + 14 * + 24 * + 17 * - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL CAST ( NULL AS INTEGER ) + + + ( + 60 ) + - 20 * + + 14 * + 24 * + 17 * - 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT + 75 * + 79 * + - CASE - 23 WHEN + NULLIF ( + 50, + COUNT( * ) ) THEN 26 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1162
SELECT + 75 * + 79 * + - CASE - 23 WHEN + NULLIF ( + 50, + COUNT ( * ) ) THEN 26 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1163
SELECT - CAST( + 72 AS SIGNED ) + - 70 AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-1163
SELECT - CAST ( + 72 AS INTEGER ) + - 70 AS col2
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1164
SELECT DISTINCT + CASE - COUNT( * ) WHEN + 62 THEN - + 9 DIV 2 - - NULLIF ( + 90, AVG ( - + 71 ) * + CAST( + - 30 AS SIGNED ) ) ELSE - 59 END * + 95 * + 52
----
-291460

skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT + CASE - COUNT ( * ) WHEN + 62 THEN - + 9 / 2 - - NULLIF ( + 90, AVG ( - + 71 ) * + CAST ( + - 30 AS INTEGER ) ) ELSE - 59 END * + 95 * + 52
----
-291460

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT DISTINCT - 78 + - 45 * COUNT( * )
----
-123

skipif mysql # not compatible
query I rowsort label-1165
SELECT DISTINCT - 78 + - 45 * COUNT ( * )
----
-123

query I rowsort
SELECT ALL + 24 + - 45 + - - 82 * - - 5 * - 39 AS col1
----
-16011

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT - 21 + - - COUNT( * ) * - 72 * 97 col1
----
-7005

skipif mysql # not compatible
query I rowsort label-1167
SELECT - 21 + - - COUNT ( * ) * - 72 * 97 col1
----
-7005

query I rowsort
SELECT ALL - 61 + 38
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT DISTINCT + COUNT( * ) + + + 56 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT + COUNT ( * ) + + + 56 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1170
SELECT - 59 col0, CAST( AVG ( DISTINCT + 66 ) AS SIGNED ) AS col2
----
-59
66

skipif mysql # not compatible
query II rowsort label-1170
SELECT - 59 col0, CAST ( AVG ( DISTINCT + 66 ) AS INTEGER ) AS col2
----
-59
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1171
SELECT 35 AS col1, NULLIF ( + COUNT( * ), 55 + - 93 * - - 69 )
----
35
1

skipif mysql # not compatible
query II rowsort label-1171
SELECT 35 AS col1, NULLIF ( + COUNT ( * ), 55 + - 93 * - - 69 )
----
35
1

query I rowsort
SELECT - COALESCE ( + + 95, - 93 ) * - 63 AS col1
----
5985

query I rowsort
SELECT - 15 + 46 AS col2
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1174
SELECT DISTINCT + 88 * - + CAST( NULL AS DECIMAL ) * + - 83 * + + 63 * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT + 88 * - + CAST ( NULL AS REAL ) * + - 83 * + + 63 * - 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1175
SELECT ALL CAST( NULL AS SIGNED ), + MAX( DISTINCT + 54 ) AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-1175
SELECT ALL CAST ( NULL AS INTEGER ), + MAX ( DISTINCT + 54 ) AS col2
----
NULL
54

query II rowsort
SELECT - 16 col2, 86 * + 69 AS col0
----
-16
5934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1177
SELECT ALL 91 + 56 - + MAX( + - 24 ) + + 85 * - 38 * - - 40 + ( + ( - 15 ) ) + - CAST( + CASE + - MAX( DISTINCT + + 57 ) WHEN + CAST( + 6 AS SIGNED ) THEN NULL ELSE 18 END AS SIGNED )
----
-129062

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL 91 + 56 - + MAX ( + - 24 ) + + 85 * - 38 * - - 40 + ( + ( - 15 ) ) + - CAST ( + CASE + - MAX ( DISTINCT + + 57 ) WHEN + CAST ( + 6 AS INTEGER ) THEN NULL ELSE 18 END AS INTEGER )
----
-129062

query I rowsort
SELECT DISTINCT + 7 * + - 95 AS col0
----
-665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1179
SELECT ALL + 31 DIV COUNT( * ) * - - 32 - - 62
----
1054

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL + 31 / COUNT ( * ) * - - 32 - - 62
----
1054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1180
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) - - 26 DIV - ( 83 ) + + 90 col0
----
89

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) - - 26 / - ( 83 ) + + 90 col0
----
89

query II rowsort
SELECT ALL + - 68 AS col2, 85 AS col2
----
-68
85

query II rowsort
SELECT - 32 AS col0, + 53 col2
----
-32
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1183
SELECT ALL - - 58 / - 34 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL - - 58 / - 34 - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - - 90 AS col1, 79
----
90
79

query II rowsort
SELECT DISTINCT - + 99, - 46 AS col1
----
-99
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1186
SELECT + COALESCE ( 48, - AVG ( - 6 ), - + SUM( ALL - + 99 ) * - COALESCE ( - 54, + 63 ) + + 47 ) DIV + 2
----
24

skipif mysql # not compatible
query I rowsort label-1186
SELECT + COALESCE ( 48, - AVG ( - 6 ), - + SUM ( ALL - + 99 ) * - COALESCE ( - 54, + 63 ) + + 47 ) / + 2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL + 74 * COUNT( DISTINCT - - 77 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL + 74 * COUNT ( DISTINCT - - 77 ) AS col0
----
74

query II rowsort
SELECT DISTINCT - - 52 AS col0, - 11
----
52
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1189
SELECT DISTINCT - 47 DIV + - 74 - 84 * + + 41
----
-3444

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT - 47 / + - 74 - 84 * + + 41
----
-3444

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1190
SELECT + 1 * 55, 68 + CAST( - 24 AS SIGNED ) * + 3 AS col0
----
55
-4

skipif mysql # not compatible
query II rowsort label-1190
SELECT + 1 * 55, 68 + CAST ( - 24 AS INTEGER ) * + 3 AS col0
----
55
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT - NULLIF ( - - 54, + 28 ) - - + COUNT( 94 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1192
SELECT - NULLIF ( - - 54, + 28 ) - - + COUNT ( 94 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT SUM( - - 21 ) * + 42
----
882

skipif mysql # not compatible
query I rowsort label-1193
SELECT SUM ( - - 21 ) * + 42
----
882

query I rowsort
SELECT 35 * 99
----
3465

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

skipif mysql # not compatible
query II rowsort label-1195
SELECT + COUNT ( * ), ( - CAST ( NULL AS INTEGER ) ) AS col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT 65 DIV 81 DIV ( - - 32 )
----
0

skipif mysql # not compatible
query I rowsort label-1196
SELECT 65 / 81 / ( - - 32 )
----
0

query I rowsort
SELECT + + 81 col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1198
SELECT ALL 20 + COUNT( * ) * - + CAST( NULL AS SIGNED ) * + 36 - 57 + - 52 * - - 67 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL 20 + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + 36 - 57 + - 52 * - - 67 / - COUNT ( * ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + 73 + - - 8
----
81

query I rowsort
SELECT 14 + - - 37 col1
----
51

query I rowsort
SELECT DISTINCT 52 + - 79 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL + ( + 28 ) + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL + ( + 28 ) + + COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL COUNT( 88 ) + - - 48 * - + 83
----
-3983

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL COUNT ( 88 ) + - - 48 * - + 83
----
-3983

query I rowsort
SELECT ALL 46 + 41 + + - 55
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1206
SELECT DISTINCT COUNT( * ) * + 84 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT COUNT ( * ) * + 84 / - 93
----
0

query I rowsort
SELECT ALL 51 + - 67 * 71
----
-4706

query I rowsort
SELECT 75 * - 53
----
-3975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1209
SELECT 81 DIV 37 * - ( - COUNT( * ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1209
SELECT 81 / 37 * - ( - COUNT ( * ) ) AS col0
----
2

query I rowsort
SELECT ALL + ( - 5 ) - - 69 - + 65
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1211
SELECT 16 - - + 65 + - CAST( + COUNT( * ) AS SIGNED ) + + 76 + 11 * + 36 AS col0, 39 - - 37 - + CASE + 13 WHEN COUNT( * ) + - 2 * + + 2 THEN + 60 * - CASE - 47 WHEN + + 57 + - - 21 THEN - + COUNT( * ) * + - 13 ELSE - 45 END - 41 * + 39 WHEN + + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col0
----
552
NULL

skipif mysql # not compatible
query II rowsort label-1211
SELECT 16 - - + 65 + - CAST ( + COUNT ( * ) AS INTEGER ) + + 76 + 11 * + 36 AS col0, 39 - - 37 - + CASE + 13 WHEN COUNT ( * ) + - 2 * + + 2 THEN + 60 * - CASE - 47 WHEN + + 57 + - - 21 THEN - + COUNT ( * ) * + - 13 ELSE - 45 END - 41 * + 39 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col0
----
552
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT 19 DIV - 47 * - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1212
SELECT 19 / - 47 * - 58 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1213
SELECT MAX( DISTINCT - CAST( + ( + 32 ) AS SIGNED ) ) + 79 + + 24 * 5
----
167

skipif mysql # not compatible
query I rowsort label-1213
SELECT MAX ( DISTINCT - CAST ( + ( + 32 ) AS INTEGER ) ) + 79 + + 24 * 5
----
167

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

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

query I rowsort
SELECT + 58 + - 42 - - 95 AS col2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1216
SELECT 9 / + + 51 + 57 + - 31 * - COUNT( * ) * - CAST( NULL AS SIGNED ) * + - 3 - 17 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT 9 / + + 51 + 57 + - 31 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + - 3 - 17 col2
----
NULL

query I rowsort
SELECT ALL + + 2 * + - 64 * + + 58 AS col1
----
-7424

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

query I rowsort
SELECT ALL + - 77 * + - 39 * 50
----
150150

onlyif mysql # aggregate syntax: 
query II rowsort label-1220
SELECT - 80 * 26, - 45 * + COUNT( * ) * - - 51 AS col2
----
-2080
-2295

skipif mysql # not compatible
query II rowsort label-1220
SELECT - 80 * 26, - 45 * + COUNT ( * ) * - - 51 AS col2
----
-2080
-2295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1221
SELECT DISTINCT 50 * 40 * - 76 + + 46 * + 62, CAST( - ( + CAST( 34 AS SIGNED ) ) AS SIGNED ) * SUM( + 37 ) AS col2
----
-149148
-1258

skipif mysql # not compatible
query II rowsort label-1221
SELECT DISTINCT 50 * 40 * - 76 + + 46 * + 62, CAST ( - ( + CAST ( 34 AS INTEGER ) ) AS INTEGER ) * SUM ( + 37 ) AS col2
----
-149148
-1258

query II rowsort
SELECT DISTINCT - ( - 67 ) col0, 41
----
67
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1223
SELECT - 98 * - - ( + 59 ) - SUM( - + 42 ) DIV + 2 AS col2
----
-5761

skipif mysql # not compatible
query I rowsort label-1223
SELECT - 98 * - - ( + 59 ) - SUM ( - + 42 ) / + 2 AS col2
----
-5761

query I rowsort
SELECT ALL - + ( + - 78 ) * + 13 * 2 + + 65
----
2093

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT + 47 * + - 9 * + COUNT( * )
----
-423

skipif mysql # not compatible
query I rowsort label-1225
SELECT + 47 * + - 9 * + COUNT ( * )
----
-423

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

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL - + COUNT ( DISTINCT 5 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT DISTINCT - COUNT( - + 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT - COUNT ( - + 30 )
----
-1

query I rowsort
SELECT ALL - - 85 + - 4 + + 17 AS col0
----
98

query I rowsort
SELECT ALL + - 22 + - ( + + 90 ) AS col0
----
-112

query I rowsort
SELECT ALL 70 * - 96 AS col2
----
-6720

query I rowsort
SELECT DISTINCT 5 * + - 56 AS col2
----
-280

query II rowsort
SELECT - 38 AS col2, 69 * + 43 * 39
----
-38
115713

query I rowsort
SELECT 75 * - 76
----
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT 81 + COUNT( * ) col2
----
82

skipif mysql # not compatible
query I rowsort label-1234
SELECT 81 + COUNT ( * ) col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT 84 * - - COUNT( * ) AS col1
----
84

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

query I rowsort
SELECT ALL - 6 * + 46 * + - ( + + 34 )
----
9384

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

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

query I rowsort
SELECT DISTINCT 98 - + 51 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT DISTINCT NULLIF ( - 27, - CASE + ( + 37 ) WHEN 63 / - - MIN( + + 22 ) * + 47 THEN - 60 END - - + 0 * 0 * - - 11 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT NULLIF ( - 27, - CASE + ( + 37 ) WHEN 63 / - - MIN ( + + 22 ) * + 47 THEN - 60 END - - + 0 * 0 * - - 11 ) AS col2
----
-27

query I rowsort
SELECT ALL CASE - 0 WHEN - 32 THEN NULL ELSE - 74 END AS col0
----
-74

query I rowsort
SELECT ALL 33 - + + 56
----
-23

query II rowsort
SELECT DISTINCT 63 col2, 94 - - 40 - - 32 * - 73 * - 25 AS col1
----
63
58534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1243
SELECT 16 + 22 + - COUNT( * ) + - - COUNT( * ) DIV - 88 * 87 * + + 22 * - + 46 * 98 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-1243
SELECT 16 + 22 + - COUNT ( * ) + - - COUNT ( * ) / - 88 * 87 * + + 22 * - + 46 * 98 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT DISTINCT 62 - + COUNT( * ) * 81 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT 62 - + COUNT ( * ) * 81 AS col0
----
-19

query I rowsort
SELECT + 32 + + 9 AS col2
----
41

query I rowsort
SELECT ALL 97 * ( - - 89 )
----
8633

query I rowsort
SELECT + 2 * 27 col2
----
54

query II rowsort
SELECT 95 AS col1, + 52
----
95
52

query I rowsort
SELECT DISTINCT + 91 * + - 29
----
-2639

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1250
SELECT + 56 * + CAST( + COUNT( * ) AS DECIMAL ) + - CASE 74 WHEN + 44 * - - 8 THEN NULL WHEN + - COUNT( * ) THEN 75 + - - 80 * + + 3 / - ( - 23 ) + + - 64 WHEN 33 THEN + 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT + 56 * + CAST ( + COUNT ( * ) AS REAL ) + - CASE 74 WHEN + 44 * - - 8 THEN NULL WHEN + - COUNT ( * ) THEN 75 + - - 80 * + + 3 / - ( - 23 ) + + - 64 WHEN 33 THEN + 2 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1251
SELECT - + COUNT( * ) AS col2, + 96 * - - 70
----
-1
6720

skipif mysql # not compatible
query II rowsort label-1251
SELECT - + COUNT ( * ) AS col2, + 96 * - - 70
----
-1
6720

query I rowsort
SELECT DISTINCT + 47 * + 13
----
611

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1254
SELECT ALL - - CASE + COUNT( * ) WHEN 19 + + 7 + + COUNT( * ) THEN - 16 WHEN 42 THEN 11 * + 34 * - 18 WHEN - - 36 * ( - 75 ) THEN NULL ELSE NULL END * + - 33 + - CAST( - + 68 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL - - CASE + COUNT ( * ) WHEN 19 + + 7 + + COUNT ( * ) THEN - 16 WHEN 42 THEN 11 * + 34 * - 18 WHEN - - 36 * ( - 75 ) THEN NULL ELSE NULL END * + - 33 + - CAST ( - + 68 AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1256
SELECT - + 53 DIV - - 28 + + 41
----
40

skipif mysql # not compatible
query I rowsort label-1256
SELECT - + 53 / - - 28 + + 41
----
40

query I rowsort
SELECT + 58 - 64
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT + 72 * + MIN( - + 57 )
----
-4104

skipif mysql # not compatible
query I rowsort label-1258
SELECT + 72 * + MIN ( - + 57 )
----
-4104

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT + COUNT( DISTINCT - 59 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1259
SELECT + COUNT ( DISTINCT - 59 ) col2
----
1

query II rowsort
SELECT DISTINCT - 39 * + + 73 + - 47, 82 + + 94 AS col0
----
-2894
176

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT ALL - ( - 74 ) * + + ( + 79 ) + - 90 - + ( - COUNT( * ) ) + 35 * - 67 * + 64
----
-144323

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL - ( - 74 ) * + + ( + 79 ) + - 90 - + ( - COUNT ( * ) ) + 35 * - 67 * + 64
----
-144323

query I rowsort
SELECT DISTINCT - 23 * 88 + + 72
----
-1952

query I rowsort
SELECT ALL + 53 * + 33 + 36 + 50 AS col1
----
1835

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT NULLIF ( - COUNT( * ), - 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-1264
SELECT NULLIF ( - COUNT ( * ), - 53 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL 62 * - MIN( DISTINCT + 76 ) + + ( + 8 ) AS col2
----
-4704

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL 62 * - MIN ( DISTINCT + 76 ) + + ( + 8 ) AS col2
----
-4704

query I rowsort
SELECT + 99 + - 21 + 6
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1267
SELECT - COUNT( * ) * + 53 AS col1, 36 DIV - ( - 16 )
----
-53
2

skipif mysql # not compatible
query II rowsort label-1267
SELECT - COUNT ( * ) * + 53 AS col1, 36 / - ( - 16 )
----
-53
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT - ( + + COUNT( 49 ) ) + + 83 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1268
SELECT - ( + + COUNT ( 49 ) ) + + 83 AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1269
SELECT DISTINCT MAX( 25 ), 20 + - 60 - + 85 * + - 30 col2
----
25
2510

skipif mysql # not compatible
query II rowsort label-1269
SELECT DISTINCT MAX ( 25 ), 20 + - 60 - + 85 * + - 30 col2
----
25
2510

query I rowsort
SELECT + 24 * - ( - 23 ) + - 41
----
511

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

query I rowsort
SELECT DISTINCT + 20 * 35
----
700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1273
SELECT ALL + 48 / + CASE + 1 WHEN + + CAST( NULL AS DECIMAL ) * - 90 * - + 11 THEN 17 END * - NULLIF ( 50, + 42 - 43 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL + 48 / + CASE + 1 WHEN + + CAST ( NULL AS REAL ) * - 90 * - + 11 THEN 17 END * - NULLIF ( 50, + 42 - 43 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 18, + 89 * - 5 + - + 12 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-1275
SELECT DISTINCT + COUNT( * ) * + 63 AS col2, + 87 AS col1
----
63
87

skipif mysql # not compatible
query II rowsort label-1275
SELECT DISTINCT + COUNT ( * ) * + 63 AS col2, + 87 AS col1
----
63
87

query I rowsort
SELECT ALL ( + + 16 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT ALL + ( - + COUNT( * ) ) * - 43 * - + COUNT( * ) * 7 * + + 78
----
-23478

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL + ( - + COUNT ( * ) ) * - 43 * - + COUNT ( * ) * 7 * + + 78
----
-23478

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1278
SELECT - 3 DIV - COUNT( * ) AS col2, 35
----
3
35

skipif mysql # not compatible
query II rowsort label-1278
SELECT - 3 / - COUNT ( * ) AS col2, 35
----
3
35

query II rowsort
SELECT - 26 + 8, - 94 * - 72 AS col2
----
-18
6768

query I rowsort
SELECT DISTINCT - + 69 * + 62
----
-4278

query I rowsort
SELECT + - 23 * 99 col2
----
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT ALL - 18 + - ( SUM( + - 19 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL - 18 + - ( SUM ( + - 19 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1283
SELECT DISTINCT + + 56 + - - COUNT( * ) * + NULLIF ( + 70, - - 39 DIV + 52 + - + 87 - 8 ) DIV MIN( ALL - 73 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT + + 56 + - - COUNT ( * ) * + NULLIF ( + 70, - - 39 / + 52 + - + 87 - 8 ) / MIN ( ALL - 73 ) col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1284
SELECT DISTINCT COUNT( * ) * + + 72 DIV 29 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT COUNT ( * ) * + + 72 / 29 AS col0
----
2

query I rowsort
SELECT ALL - 37 + - 39 + - 80
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT + 76 - 64 + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-1286
SELECT + 76 - 64 + COUNT ( * )
----
13

query I rowsort
SELECT ALL 46 + + + 21 AS col0
----
67

query II rowsort
SELECT - + 63 + - 13 AS col0, 10
----
-76
10

query II rowsort
SELECT + 90 * - 7 * + ( + + ( + NULLIF ( - + 84, + + 4 ) ) ), - ( + 25 ) + + - 77 AS col0
----
52920
-102

query I rowsort
SELECT DISTINCT - 35 * + 33
----
-1155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1291
SELECT ALL NULLIF ( + 68, - 10 ) DIV + ( 22 ) * COUNT( * ) + + 37 + - 97 * - - 57 * - 12
----
66388

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL NULLIF ( + 68, - 10 ) / + ( 22 ) * COUNT ( * ) + + 37 + - 97 * - - 57 * - 12
----
66388

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1292
SELECT ALL + 28 DIV - 40 + - MIN( + + 53 ) - + 46 * - - COUNT( * ) + + 37 AS col2, + 64
----
-62
64

skipif mysql # not compatible
query II rowsort label-1292
SELECT ALL + 28 / - 40 + - MIN ( + + 53 ) - + 46 * - - COUNT ( * ) + + 37 AS col2, + 64
----
-62
64

query I rowsort
SELECT + 56 + 97 * - 20
----
-1884

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1295
SELECT ALL + 99 DIV + 67 + + ( 25 )
----
26

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL + 99 / + 67 + + ( 25 )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT DISTINCT + 19 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT + 19 / 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1297
SELECT DISTINCT 1 DIV + 90 - + 33 - + + 23 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT 1 / + 90 - + 33 - + + 23 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1298
SELECT + CAST( NULL AS SIGNED ) + 5 + - - ( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT + CAST ( NULL AS INTEGER ) + 5 + - - ( 79 )
----
NULL

query I rowsort
SELECT - 22 * - 34
----
748

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

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col0
----
-1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1304
SELECT ( + + CASE - 47 WHEN - CAST( NULL AS SIGNED ) * + + COUNT( * ) - AVG ( - - 13 ) + 46 * - - 3 THEN - 82 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1304
SELECT ( + + CASE - 47 WHEN - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) - AVG ( - - 13 ) + 46 * - - 3 THEN - 82 END )
----
NULL

query II rowsort
SELECT DISTINCT + 26 AS col2, + 48 * - 55 AS col2
----
26
-2640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + 63 * COUNT( 29 )
----
63

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 63 * COUNT ( 29 )
----
63

query I rowsort
SELECT DISTINCT 86 * - 50 AS col0
----
-4300

query I rowsort
SELECT - 56 + + 62
----
6

query I rowsort
SELECT ALL + 43 * + NULLIF ( - + 81, + 0 )
----
-3483

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT - 38 * - 98 * + - MIN( + 80 ) + - + MIN( - - 45 )
----
-297965

skipif mysql # not compatible
query I rowsort label-1311
SELECT - 38 * - 98 * + - MIN ( + 80 ) + - + MIN ( - - 45 )
----
-297965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1312
SELECT 16 + - 73 DIV + COALESCE ( + 65, 65 ) + + 91 + + - COUNT( * ) - - 17 + - COUNT( * ) + + 78 * + - 18 * 16 + + 39 + + - 67
----
-22371

skipif mysql # not compatible
query I rowsort label-1312
SELECT 16 + - 73 / + COALESCE ( + 65, 65 ) + + 91 + + - COUNT ( * ) - - 17 + - COUNT ( * ) + + 78 * + - 18 * 16 + + 39 + + - 67
----
-22371

query I rowsort
SELECT 19 - 34
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1314
SELECT ALL - CASE 74 WHEN + 74 THEN - CASE - 83 WHEN 67 THEN + 50 ELSE 93 + ( COUNT( * ) ) END + + 60 END + - 88 DIV + ( 70 ) col2
----
33

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL - CASE 74 WHEN + 74 THEN - CASE - 83 WHEN 67 THEN + 50 ELSE 93 + ( COUNT ( * ) ) END + + 60 END + - 88 / + ( 70 ) col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT DISTINCT - 26 + 87 * + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-1315
SELECT DISTINCT - 26 + 87 * + COUNT ( * )
----
61

query I rowsort
SELECT DISTINCT - 54 + 16
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT ALL 37 + - ( - CASE 45 WHEN 95 * - SUM( ALL - ( 39 ) ) + - 52 THEN 53 * 73 + CASE 46 WHEN + 23 THEN - 97 / + 60 ELSE NULL END WHEN 13 * 83 THEN 98 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL 37 + - ( - CASE 45 WHEN 95 * - SUM ( ALL - ( 39 ) ) + - 52 THEN 53 * 73 + CASE 46 WHEN + 23 THEN - 97 / + 60 ELSE NULL END WHEN 13 * 83 THEN 98 END ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - COUNT ( * ) + + 14 * COUNT ( * ) AS col1
----
13

query I rowsort
SELECT ALL + 81 * 34 AS col1
----
2754

query I rowsort
SELECT DISTINCT - ( 68 ) + - 44
----
-112

query I rowsort
SELECT 31 * 47 AS col2
----
1457

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT DISTINCT + 54 + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT + 54 + COUNT ( * )
----
55

query I rowsort
SELECT 44 * - 58
----
-2552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1325
SELECT 50 DIV - MIN( 51 )
----
0

skipif mysql # not compatible
query I rowsort label-1325
SELECT 50 / - MIN ( 51 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT ALL 95 DIV ( - 47 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL 95 / ( - 47 ) col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1327
SELECT ALL + ( CASE CAST( + 83 AS SIGNED ) WHEN - 45 THEN 32 END ) + 20 * + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL + ( CASE CAST ( + 83 AS INTEGER ) WHEN - 45 THEN 32 END ) + 20 * + 69 AS col2
----
NULL

query I rowsort
SELECT ALL 47 - + 3 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT MAX( 6 ) * COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1329
SELECT MAX ( 6 ) * COUNT ( * ) AS col0
----
6

query I rowsort
SELECT ALL + 74 - CASE + 12 - + 17 * - 92 WHEN COALESCE ( ( + 36 ), - 64 ) THEN + 56 END
----
NULL

query I rowsort
SELECT 56 * 54
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT ALL MIN( ALL + 41 ) * 31 AS col0
----
1271

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL MIN ( ALL + 41 ) * 31 AS col0
----
1271

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + 66 * - 15 - 55 * - COUNT( * )
----
-935

skipif mysql # not compatible
query I rowsort label-1333
SELECT + 66 * - 15 - 55 * - COUNT ( * )
----
-935

query I rowsort
SELECT ( - 37 ) * 5 col0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT ALL + 47 * + MAX( 66 )
----
3102

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL + 47 * + MAX ( 66 )
----
3102

query I rowsort
SELECT ( + 8 ) * 11
----
88

query I rowsort
SELECT + 15 * - 48 + + 58
----
-662

query I rowsort
SELECT - 28 * + 40 - - 82
----
-1038

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

skipif mysql # not compatible
query I rowsort label-1339
SELECT 90 / COUNT ( * )
----
90

query I rowsort
SELECT 26 * 23 AS col0
----
598

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1341
SELECT NULLIF ( 84, CAST( - COUNT( * ) AS DECIMAL ) * COUNT( * ) + 20 / - 26 ) * - 44 col2
----
-3696

skipif mysql # not compatible
query I rowsort label-1341
SELECT NULLIF ( 84, CAST ( - COUNT ( * ) AS REAL ) * COUNT ( * ) + 20 / - 26 ) * - 44 col2
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL COUNT( * ) + 57 * - 1
----
-56

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL COUNT ( * ) + 57 * - 1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT ALL 74 + COUNT( * ) * 22 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL 74 + COUNT ( * ) * 22 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT 9 + COUNT( * ) * + 22 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1344
SELECT 9 + COUNT ( * ) * + 22 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT DISTINCT COUNT( * ) + CASE WHEN ( NULL ) IS NOT NULL THEN - 13 WHEN 30 < NULL THEN 53 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT COUNT ( * ) + CASE WHEN ( NULL ) IS NOT NULL THEN - 13 WHEN 30 < NULL THEN 53 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL ( 43 ) * - ( 7 + 81 )
----
-3784

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT ALL 38 + + ( + 80 + ( + 29 + - 24 ) ) DIV 64 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL 38 + + ( + 80 + ( + 29 + - 24 ) ) / 64 AS col2
----
39

query I rowsort
SELECT DISTINCT + 94 * + 29 AS col1
----
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL - 40 + COALESCE ( + 69, - COUNT( * ) * - 27, 82 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL - 40 + COALESCE ( + 69, - COUNT ( * ) * - 27, 82 ) AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1350
SELECT ALL + + 68 + + CAST( 59 AS SIGNED )
----
127

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL + + 68 + + CAST ( 59 AS INTEGER )
----
127

query I rowsort
SELECT ALL 5 * 56 AS col0
----
280

query I rowsort
SELECT - 75 + - ( - 56 - 31 ) * - 41 AS col1
----
-3642

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT 31 * MAX( 84 + + 1 ) AS col1
----
2635

skipif mysql # not compatible
query I rowsort label-1353
SELECT 31 * MAX ( 84 + + 1 ) AS col1
----
2635

query I rowsort
SELECT - 49 + + 34
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT DISTINCT 23 * - ( MAX( 21 ) - - 70 * NULLIF ( 28, - 39 * + 95 ) )
----
-45563

skipif mysql # not compatible
query I rowsort label-1355
SELECT DISTINCT 23 * - ( MAX ( 21 ) - - 70 * NULLIF ( 28, - 39 * + 95 ) )
----
-45563

query I rowsort
SELECT ALL + 35 + 89 AS col0
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1357
SELECT NULLIF ( 46, 78 ) - COUNT( * ) DIV + 13 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1357
SELECT NULLIF ( 46, 78 ) - COUNT ( * ) / + 13 AS col0
----
46

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

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT - COUNT ( * ) + - 10 AS col2
----
-11

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

query I rowsort
SELECT DISTINCT + 16 - 77 * 65 AS col2
----
-4989

query I rowsort
SELECT DISTINCT - 52 * NULLIF ( 97 + 11 * + 52, + 80 ) AS col2
----
-34788

query I rowsort
SELECT 80 - + 20 * - 50
----
1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1363
SELECT ALL - - 84 DIV - COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL - - 84 / - COUNT ( * ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT + 74 - + COUNT( * ) col1
----
73

skipif mysql # not compatible
query I rowsort label-1364
SELECT + 74 - + COUNT ( * ) col1
----
73

query I rowsort
SELECT 13 * 55 AS col0
----
715

query I rowsort
SELECT DISTINCT - 92 * 55 AS col1
----
-5060

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

skipif mysql # not compatible
query I rowsort label-1367
SELECT + ( 83 ) * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT ALL - CAST( - 3 AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - CAST ( - 3 AS INTEGER ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT 53 DIV - 68 + ( - ( 69 ) - + 4 * 20 ) AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-1369
SELECT 53 / - 68 + ( - ( 69 ) - + 4 * 20 ) AS col0
----
-149

query I rowsort
SELECT DISTINCT - 33 * 97 AS col0
----
-3201

query I rowsort
SELECT 91 * - - 61 * 34 col2
----
188734

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT CASE - - 61 WHEN SUM( - 5 ) THEN 99 END * - 98 + - 26 * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT CASE - - 61 WHEN SUM ( - 5 ) THEN 99 END * - 98 + - 26 * 29
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1373
SELECT + 74 / 74 + - CAST( NULL AS SIGNED ) * + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT + 74 / 74 + - CAST ( NULL AS INTEGER ) * + 15 AS col1
----
NULL

query I rowsort
SELECT + 16 + 99
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT + 92 + + MAX( 85 ) AS col1
----
177

skipif mysql # not compatible
query I rowsort label-1375
SELECT + 92 + + MAX ( 85 ) AS col1
----
177

query I rowsort
SELECT ALL + ( - + 85 ) * 41 AS col0
----
-3485

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT ALL + MIN( + 5 ) * SUM( DISTINCT 38 + - 49 ) + + 20 * 78 AS col2
----
1505

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL + MIN ( + 5 ) * SUM ( DISTINCT 38 + - 49 ) + + 20 * 78 AS col2
----
1505

query I rowsort
SELECT DISTINCT 33 * - - 95 AS col2
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT DISTINCT - COUNT( * ) * - 45 * 83 + 46 * SUM( - 50 + - 82 )
----
-2337

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT - COUNT ( * ) * - 45 * 83 + 46 * SUM ( - 50 + - 82 )
----
-2337

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

skipif mysql # not compatible
query I rowsort label-1381
SELECT + MAX ( 28 )
----
28

query I rowsort
SELECT ALL - 80 * 31 + + 32
----
-2448

query I rowsort
SELECT ALL 67 * 51 + - 4 AS col1
----
3413

query I rowsort
SELECT ALL 20 + - 84 AS col2
----
-64

query I rowsort
SELECT DISTINCT ( + 73 ) + + 63 col2
----
136

query I rowsort
SELECT + 7 * + 13 + - 80 * 21
----
-1589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT ALL + 81 + + 82 - 12 * + MIN( + 81 DIV + 85 ) AS col2
----
163

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + 81 + + 82 - 12 * + MIN ( + 81 / + 85 ) AS col2
----
163

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

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

query I rowsort
SELECT + 95 + - 65 AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT DISTINCT 35 DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT 35 / + 67 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1391
SELECT DISTINCT + COUNT( * ) DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT + COUNT ( * ) / + 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT ALL 53 * + COALESCE ( ( 30 ), + 27 + 41 ) * + MAX( 73 + ( ( 71 ) ) ) AS col0
----
228960

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL 53 * + COALESCE ( ( 30 ), + 27 + 41 ) * + MAX ( 73 + ( ( 71 ) ) ) AS col0
----
228960

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT - NULLIF ( + - 71, 19 * ( CASE 48 WHEN 39 / SUM( ALL 73 * 75 ) + - ( - 76 ) THEN NULL WHEN 12 THEN + 69 ELSE NULL END ) )
----
71

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT - NULLIF ( + - 71, 19 * ( CASE 48 WHEN 39 / SUM ( ALL 73 * 75 ) + - ( - 76 ) THEN NULL WHEN 12 THEN + 69 ELSE NULL END ) )
----
71

query I rowsort
SELECT ALL + - 23 * - 83
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT + + 18 + - MAX( + 86 )
----
-68

skipif mysql # not compatible
query I rowsort label-1395
SELECT + + 18 + - MAX ( + 86 )
----
-68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT + - NULLIF ( - ( 49 ), 39 * - 90 ) + + COUNT( * ) * 10
----
59

skipif mysql # not compatible
query I rowsort label-1397
SELECT + - NULLIF ( - ( 49 ), 39 * - 90 ) + + COUNT ( * ) * 10
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT - + MIN( + 32 ) + - 12 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1398
SELECT - + MIN ( + 32 ) + - 12 AS col0
----
-44

query I rowsort
SELECT ALL 42 * - 18 * 60 + 10 * - 13
----
-45490

query I rowsort
SELECT - 94 + ( 63 ) + 63 AS col1
----
32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT DISTINCT - ( - - ( 84 ) ) DIV + 14 col0
----
-6

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT - ( - - ( 84 ) ) / + 14 col0
----
-6

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

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT MAX ( DISTINCT 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL - 84 * - + SUM( - - 74 ) col1
----
6216

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL - 84 * - + SUM ( - - 74 ) col1
----
6216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1405
SELECT + 70 DIV - + 49 + + + 66 * - COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 70 / - + 49 + + + 66 * - COUNT ( * ) AS col0
----
-67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT - 92 * + COALESCE ( - 95, COUNT( ALL 72 ), COALESCE ( - 19, 32 + 95 ) * + 63 ) AS col2
----
8740

skipif mysql # not compatible
query I rowsort label-1407
SELECT - 92 * + COALESCE ( - 95, COUNT ( ALL 72 ), COALESCE ( - 19, 32 + 95 ) * + 63 ) AS col2
----
8740

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT - MIN( ALL - - 60 ) * 65 - 31 AS col2
----
-3931

skipif mysql # not compatible
query I rowsort label-1409
SELECT - MIN ( ALL - - 60 ) * 65 - 31 AS col2
----
-3931

query I rowsort
SELECT - ( + + 7 ) * 66 - - 55 * ( - 19 - + 52 ) AS col1
----
-4367

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

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL + CAST ( + - 39 AS INTEGER ) AS col1
----
-39

query I rowsort
SELECT ALL + 63 * + ( + 25 ) + 5 AS col1
----
1580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1413
SELECT - 26 * - COALESCE ( - 33, 31 * CASE + CASE - 39 WHEN MAX( DISTINCT 72 ) THEN + 20 / 94 END WHEN 61 * - CAST( NULL AS SIGNED ) THEN + 45 * + NULLIF ( + 86 * - 82, + 57 * ( 72 ) + + 23 ) ELSE NULL END, 88 + + 3 * 98 ) * COUNT( * ) - 48 col0
----
-906

skipif mysql # not compatible
query I rowsort label-1413
SELECT - 26 * - COALESCE ( - 33, 31 * CASE + CASE - 39 WHEN MAX ( DISTINCT 72 ) THEN + 20 / 94 END WHEN 61 * - CAST ( NULL AS INTEGER ) THEN + 45 * + NULLIF ( + 86 * - 82, + 57 * ( 72 ) + + 23 ) ELSE NULL END, 88 + + 3 * 98 ) * COUNT ( * ) - 48 col0
----
-906

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL + MIN( + 88 ) * - + 78 + + COUNT( * )
----
-6863

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL + MIN ( + 88 ) * - + 78 + + COUNT ( * )
----
-6863

query I rowsort
SELECT - 33 * - ( + - COALESCE ( - 17, + 11 ) ) * 70 AS col1
----
39270

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL - NULLIF ( 67, 64 ) * - CASE - 90 WHEN 98 + MIN( + 71 ) THEN - MIN( ALL 83 ) * ( 64 + 49 ) END + - 65 * 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL - NULLIF ( 67, 64 ) * - CASE - 90 WHEN 98 + MIN ( + 71 ) THEN - MIN ( ALL 83 ) * ( 64 + 49 ) END + - 65 * 68 AS col1
----
NULL

query I rowsort
SELECT ALL 63 * + 87 + + 80
----
5561

query II rowsort
SELECT DISTINCT + 83 col1, 23 * ( 31 )
----
83
713

query I rowsort
SELECT 58 * - 21 + + + 28 AS col2
----
-1190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1420
SELECT CASE - 52 WHEN + 9 THEN NULL ELSE 21 + + COUNT( * ) DIV - COUNT( * ) END AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1420
SELECT CASE - 52 WHEN + 9 THEN NULL ELSE 21 + + COUNT ( * ) / - COUNT ( * ) END AS col1
----
20

query I rowsort
SELECT + CASE - + 27 WHEN - 71 THEN - AVG ( DISTINCT - 47 ) END * + 88 - - NULLIF ( 19, + 12 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1422
SELECT ALL + 91 * 43 * - - CASE - 37 WHEN SUM( 59 ) * 49 + - CAST( NULL AS SIGNED ) THEN 76 END + COUNT( * ) - 31 * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL + 91 * 43 * - - CASE - 37 WHEN SUM ( 59 ) * 49 + - CAST ( NULL AS INTEGER ) THEN 76 END + COUNT ( * ) - 31 * 4
----
NULL

query II rowsort
SELECT 50 AS col2, 86 - - - 12
----
50
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT - CASE - 36 WHEN - 89 + 89 THEN NULL WHEN - 57 THEN NULL ELSE MIN( DISTINCT + 81 ) END + + 7 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1424
SELECT - CASE - 36 WHEN - 89 + 89 THEN NULL WHEN - 57 THEN NULL ELSE MIN ( DISTINCT + 81 ) END + + 7 AS col2
----
-74

query I rowsort
SELECT ALL 23 * + 98 * + - 61 col2
----
-137494

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1426
SELECT ALL - 7 DIV + + SUM( + 89 ) * 9 + - 93 * + 15
----
-1395

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL - 7 / + + SUM ( + 89 ) * 9 + - 93 * + 15
----
-1395

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1427
SELECT ALL 4, - ( + - CAST( NULL AS SIGNED ) ) + 18 col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-1427
SELECT ALL 4, - ( + - CAST ( NULL AS INTEGER ) ) + 18 col1
----
4
NULL

query I rowsort
SELECT + - 63 * + 62
----
-3906

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT ALL - 58 * + COUNT( * ) * 10 AS col2
----
-580

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL - 58 * + COUNT ( * ) * 10 AS col2
----
-580

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

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

query I rowsort
SELECT - 86 * 81 * + 51 col0
----
-355266

query I rowsort
SELECT + 56 * - + 10 AS col2
----
-560

query I rowsort
SELECT - ( + - 64 ) - - 52 AS col2
----
116

query I rowsort
SELECT + 9 + - 21 AS col2
----
-12

query I rowsort
SELECT - COALESCE ( + - 19, + 99 ) AS col0
----
19

query I rowsort
SELECT ALL 53 * 78
----
4134

query I rowsort
SELECT + + 37 + 4 AS col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1438
SELECT ALL + - COUNT( * ) DIV - + 83 + + 81 + + 97 DIV + MIN( 27 + 91 * + 95 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL + - COUNT ( * ) / - + 83 + + 81 + + 97 / + MIN ( 27 + 91 * + 95 ) AS col1
----
81

query I rowsort
SELECT + - 62 + - 64
----
-126

query I rowsort
SELECT ALL - 51 * 49 AS col0
----
-2499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1441
SELECT ALL COUNT( * ) + - NULLIF ( + 89, + + 59 ) DIV - 65
----
2

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL COUNT ( * ) + - NULLIF ( + 89, + + 59 ) / - 65
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1442
SELECT ( + ( CAST( NULL AS SIGNED ) ) ) - + CAST( NULL AS SIGNED ) - ( + 38 + + COUNT( * ) ) * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT ( + ( CAST ( NULL AS INTEGER ) ) ) - + CAST ( NULL AS INTEGER ) - ( + 38 + + COUNT ( * ) ) * 67
----
NULL

query I rowsort
SELECT 84 + - + 24
----
60

query I rowsort
SELECT 19 + - 74 + - 70 AS col2
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ( - 71 ) + - - COUNT( * ) * CASE + 89 WHEN 48 THEN - 67 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT ( - 71 ) + - - COUNT ( * ) * CASE + 89 WHEN 48 THEN - 67 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1446
SELECT 39 * - 51 * + CAST( 71 AS SIGNED )
----
-141219

skipif mysql # not compatible
query I rowsort label-1446
SELECT 39 * - 51 * + CAST ( 71 AS INTEGER )
----
-141219

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1449
SELECT ALL CASE - COUNT( * ) WHEN - + CAST( - 65 AS SIGNED ) THEN NULL WHEN + 34 - + 15 THEN + 87 END + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL CASE - COUNT ( * ) WHEN - + CAST ( - 65 AS INTEGER ) THEN NULL WHEN + 34 - + 15 THEN + 87 END + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1450
SELECT 26 * + + COUNT( * ) * - 63 DIV - CASE COUNT( * ) WHEN COUNT( - 33 ) - - MIN( + 8 ) THEN NULL ELSE 31 END + 93 * + 48 col2
----
4516

skipif mysql # not compatible
query I rowsort label-1450
SELECT 26 * + + COUNT ( * ) * - 63 / - CASE COUNT ( * ) WHEN COUNT ( - 33 ) - - MIN ( + 8 ) THEN NULL ELSE 31 END + 93 * + 48 col2
----
4516

query I rowsort
SELECT 35 * - 71 * + 47 col1
----
-116795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1452
SELECT 54 DIV MIN( ALL 39 ) DIV + 50 + COALESCE ( COUNT( * ), 92 ) + 10
----
11

skipif mysql # not compatible
query I rowsort label-1452
SELECT 54 / MIN ( ALL 39 ) / + 50 + COALESCE ( COUNT ( * ), 92 ) + 10
----
11

query I rowsort
SELECT ALL + 54 * 29 AS col1
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT NULLIF ( 86, + + NULLIF ( 3, 19 * - 44 + + 48 * + COUNT( * ) ) / 22 + + 32 ) * - 8 AS col2
----
-688

skipif mysql # not compatible
query I rowsort label-1454
SELECT NULLIF ( 86, + + NULLIF ( 3, 19 * - 44 + + 48 * + COUNT ( * ) ) / 22 + + 32 ) * - 8 AS col2
----
-688

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT NULLIF ( - - 77, - - COUNT( * ) * + 14 + + 80 ) * MAX( ( 69 ) ) + + NULLIF ( - 34, + CASE - 44 WHEN 12 THEN NULL WHEN - 79 THEN NULL ELSE COALESCE ( - ( - COUNT( * ) ), 51 ) END / - AVG ( + 24 ) ) AS col2
----
5279

skipif mysql # not compatible
query I rowsort label-1455
SELECT NULLIF ( - - 77, - - COUNT ( * ) * + 14 + + 80 ) * MAX ( ( 69 ) ) + + NULLIF ( - 34, + CASE - 44 WHEN 12 THEN NULL WHEN - 79 THEN NULL ELSE COALESCE ( - ( - COUNT ( * ) ), 51 ) END / - AVG ( + 24 ) ) AS col2
----
5279

onlyif mysql # aggregate syntax: 
query II rowsort label-1456
SELECT ALL - 81 * - + 97, COUNT( 64 ) AS col0
----
7857
1

skipif mysql # not compatible
query II rowsort label-1456
SELECT ALL - 81 * - + 97, COUNT ( 64 ) AS col0
----
7857
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1457
SELECT + + 1 * - ( + 53 ) * + 2 * + 63 + - 5 * CASE - 54 + + CAST( NULL AS SIGNED ) WHEN 33 THEN - 25 ELSE - 30 * 9 + + 73 END
----
-5693

skipif mysql # not compatible
query I rowsort label-1457
SELECT + + 1 * - ( + 53 ) * + 2 * + 63 + - 5 * CASE - 54 + + CAST ( NULL AS INTEGER ) WHEN 33 THEN - 25 ELSE - 30 * 9 + + 73 END
----
-5693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1458
SELECT ALL + 78 - 61 - - COUNT( * ) * + 43 * ( 41 DIV - COALESCE ( COUNT( * ), - 91 ) )
----
-1746

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL + 78 - 61 - - COUNT ( * ) * + 43 * ( 41 / - COALESCE ( COUNT ( * ), - 91 ) )
----
-1746

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1459
SELECT ALL + - MIN( ALL 1 ) - - 8 + 38 / - CASE 94 * - 97 WHEN + 2 THEN 34 ELSE 61 END / + SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL + - MIN ( ALL 1 ) - - 8 + 38 / - CASE 94 * - 97 WHEN + 2 THEN 34 ELSE 61 END / + SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT + COUNT( * ) / + - CASE + - 22 WHEN + 22 THEN - 74 END - COALESCE ( COUNT( * ), 18 ) * 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1460
SELECT + COUNT ( * ) / + - CASE + - 22 WHEN + 22 THEN - 74 END - COALESCE ( COUNT ( * ), 18 ) * 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT + - 0 * - COUNT( * ) + MIN( ALL CASE 70 WHEN 53 THEN 35 * + 35 ELSE 80 END ) + + ( + ( + 38 ) + 78 )
----
196

skipif mysql # not compatible
query I rowsort label-1461
SELECT + - 0 * - COUNT ( * ) + MIN ( ALL CASE 70 WHEN 53 THEN 35 * + 35 ELSE 80 END ) + + ( + ( + 38 ) + 78 )
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT - CAST( 99 AS SIGNED ) * + - ( + - 57 ) - 17
----
-5660

skipif mysql # not compatible
query I rowsort label-1462
SELECT - CAST ( 99 AS INTEGER ) * + - ( + - 57 ) - 17
----
-5660

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

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

query I rowsort
SELECT ALL + - 98 * + - 84
----
8232

query I rowsort
SELECT ALL 60 + + 56 * - CASE + NULLIF ( - 43, 57 ) WHEN - 31 THEN NULL ELSE ( - CASE - ( - 71 ) WHEN - 68 / 29 THEN NULL ELSE - 59 END ) * + 40 END * CASE + ( 24 ) * 19 WHEN + 81 * + 18 THEN - 88 ELSE 57 * - 5 END
----
37665660

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

skipif mysql # not compatible
query I rowsort label-1466
SELECT 84 / - COUNT ( * )
----
-84

query I rowsort
SELECT ALL + 84 + - 99
----
-15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1469
SELECT DISTINCT + 67 DIV - 11
----
-6

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT + 67 / - 11
----
-6

query I rowsort
SELECT ( - 41 ) * + 25
----
-1025

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

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

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

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT CAST ( + ( + - 51 ) AS INTEGER ) - - + ( - ( 95 ) ) col2
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-1473
SELECT 18 + - - 70 DIV 35 + - 0
----
20

skipif mysql # not compatible
query I rowsort label-1473
SELECT 18 + - - 70 / 35 + - 0
----
20

query I rowsort
SELECT ALL - 82 * + 68 * + 25 - + 79 * + 54 + 34 * 30 AS col1
----
-142646

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT DISTINCT CASE + 76 WHEN ( 78 ) THEN - 80 WHEN + COUNT( * ) * + 39 + + 95 THEN + COUNT( * ) - - 16 END * - MIN( + 44 * 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT CASE + 76 WHEN ( 78 ) THEN - 80 WHEN + COUNT ( * ) * + 39 + + 95 THEN + COUNT ( * ) - - 16 END * - MIN ( + 44 * 84 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1476
SELECT MIN ( + 30 )
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT COUNT( * ) * - - 79 col0
----
79

skipif mysql # not compatible
query I rowsort label-1478
SELECT COUNT ( * ) * - - 79 col0
----
79

query I rowsort
SELECT ( - 47 ) * 9 + - - 7 + 62 * 23 * + 52
----
73736

query I rowsort
SELECT DISTINCT + 69 * + 9 AS col1
----
621

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

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

query I rowsort
SELECT + 41 * - ( - ( 95 ) ) AS col1
----
3895

query I rowsort
SELECT + - ( 3 ) * 19 + + 5 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1484
SELECT 93 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-1484
SELECT 93 / 99
----
0

query I rowsort
SELECT ALL + 75 + + - 84
----
-9

query I rowsort
SELECT - 78 * - 9
----
702

onlyif mysql # aggregate syntax: 
query II rowsort label-1487
SELECT DISTINCT 47 * - ( + - 35 ) AS col2, 13 + + MAX( DISTINCT 25 ) AS col1
----
1645
38

skipif mysql # not compatible
query II rowsort label-1487
SELECT DISTINCT 47 * - ( + - 35 ) AS col2, 13 + + MAX ( DISTINCT 25 ) AS col1
----
1645
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1488
SELECT DISTINCT + 84 + - COUNT( * ) + CAST( NULL AS SIGNED ) + - + SUM( DISTINCT 62 ) * CASE + 50 WHEN 71 THEN - ( - 18 ) WHEN - 19 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT + 84 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - + SUM ( DISTINCT 62 ) * CASE + 50 WHEN 71 THEN - ( - 18 ) WHEN - 19 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 73 * + 28
----
-2044

query I rowsort
SELECT ALL 74 + - 42 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1491
SELECT DISTINCT - + CASE - 54 WHEN 53 THEN 12 + + 11 WHEN COUNT( * ) THEN NULL ELSE 49 DIV COUNT( * ) END DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT - + CASE - 54 WHEN 53 THEN 12 + + 11 WHEN COUNT ( * ) THEN NULL ELSE 49 / COUNT ( * ) END / 54
----
0

query I rowsort
SELECT ALL + 34 + 70 + - 55 * + - 1 col2
----
159

query I rowsort
SELECT ALL + CASE + 61 WHEN + ( - + 9 ) * + 65 THEN NULL ELSE ( - 69 ) + - 63 END AS col2
----
-132

query I rowsort
SELECT - + 98 col2
----
-98

query II rowsort
SELECT - 25, - 91 + + 59 AS col0
----
-25
-32

query I rowsort
SELECT - 81 + + 37 AS col1
----
-44

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

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL MIN ( 51 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1498
SELECT - 57 + - 89, NULLIF ( 20, + + COUNT( * ) ) AS col0
----
-146
20

skipif mysql # not compatible
query II rowsort label-1498
SELECT - 57 + - 89, NULLIF ( 20, + + COUNT ( * ) ) AS col0
----
-146
20

query I rowsort
SELECT ALL + ( ( + 9 ) ) + - - 40 + + 31
----
80

query I rowsort
SELECT - 33 + + 42
----
9

query II rowsort
SELECT - 39, 4 + 7 AS col0
----
-39
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1502
SELECT DISTINCT 41, 52 * - 87 - + 82 + - CAST( 19 AS SIGNED ) * 57 AS col0
----
41
-5689

skipif mysql # not compatible
query II rowsort label-1502
SELECT DISTINCT 41, 52 * - 87 - + 82 + - CAST ( 19 AS INTEGER ) * 57 AS col0
----
41
-5689

query I rowsort
SELECT DISTINCT - ( - 89 ) - + 25
----
64

query I rowsort
SELECT ALL + 54 * + ( + 69 ) AS col2
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT + 3 + 53 + 36 * CASE + 83 WHEN + - CASE 33 WHEN - ( 7 ) THEN - 15 END + + 60 THEN ( 37 ) * - COUNT( * ) WHEN + 41 THEN + 87 ELSE 38 END AS col2
----
1424

skipif mysql # not compatible
query I rowsort label-1505
SELECT + 3 + 53 + 36 * CASE + 83 WHEN + - CASE 33 WHEN - ( 7 ) THEN - 15 END + + 60 THEN ( 37 ) * - COUNT ( * ) WHEN + 41 THEN + 87 ELSE 38 END AS col2
----
1424

onlyif mysql # aggregate syntax: 
query II rowsort label-1506
SELECT 25 AS col1, 68 * - COUNT( * ) * + 43 + - 35 + - 34
----
25
-2993

skipif mysql # not compatible
query II rowsort label-1506
SELECT 25 AS col1, 68 * - COUNT ( * ) * + 43 + - 35 + - 34
----
25
-2993

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1507
SELECT + 80 + - 49 - + 45 * + ( + ( + - 58 ) ) * - ( 54 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT + 80 + - 49 - + 45 * + ( + ( + - 58 ) ) * - ( 54 ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT - 67 + + MAX( + - 14 )
----
-81

skipif mysql # not compatible
query I rowsort label-1508
SELECT - 67 + + MAX ( + - 14 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT 64 * + COUNT( * ) + + 51 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-1509
SELECT 64 * + COUNT ( * ) + + 51 AS col0
----
115

query I rowsort
SELECT ALL 55 * - - 99
----
5445

onlyif mysql # DIV for integer division: 
query I rowsort label-1511
SELECT + 61 DIV - + 29
----
-2

skipif mysql # not compatible
query I rowsort label-1511
SELECT + 61 / - + 29
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1512
SELECT DISTINCT - ( - COUNT( * ) ) DIV + CASE ( AVG ( 58 ) ) WHEN + 58 THEN 83 ELSE NULL END
----
0

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT - ( - COUNT ( * ) ) / + CASE ( AVG ( 58 ) ) WHEN + 58 THEN 83 ELSE NULL END
----
0

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

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

query I rowsort
SELECT DISTINCT - 40 * + 64 * - 10 AS col2
----
25600

onlyif mysql # aggregate syntax: 
query II rowsort label-1515
SELECT - 17 * - COUNT( ALL - ( + - 67 ) ) AS col0, SUM( + ( 24 ) ) AS col0
----
17
24

skipif mysql # not compatible
query II rowsort label-1515
SELECT - 17 * - COUNT ( ALL - ( + - 67 ) ) AS col0, SUM ( + ( 24 ) ) AS col0
----
17
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1517
SELECT + + 1 + - ( - + 56 ) - + + CASE - NULLIF ( + COUNT( * ), 85 + 15 ) WHEN - 73 THEN + 3 WHEN 63 + + 51 THEN ( 61 ) + + 99 ELSE CAST( NULL AS SIGNED ) END * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT + + 1 + - ( - + 56 ) - + + CASE - NULLIF ( + COUNT ( * ), 85 + 15 ) WHEN - 73 THEN + 3 WHEN 63 + + 51 THEN ( 61 ) + + 99 ELSE CAST ( NULL AS INTEGER ) END * + 6
----
NULL

query II rowsort
SELECT DISTINCT + - 74, 55 col2
----
-74
55

query I rowsort
SELECT ALL + ( - ( 93 ) ) * + - 6 + - 35
----
523

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT + - COALESCE ( ( 47 ), - NULLIF ( + COUNT( * ), - - NULLIF ( 35, - 77 * + 28 ) ) * - 24, - 84 + - 44 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1520
SELECT + - COALESCE ( ( 47 ), - NULLIF ( + COUNT ( * ), - - NULLIF ( 35, - 77 * + 28 ) ) * - 24, - 84 + - 44 ) AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1521
SELECT - ( 36 ) * + + 24 - 35 + + 23 DIV 9 + + COUNT( * ) * 89 col1
----
-808

skipif mysql # not compatible
query I rowsort label-1521
SELECT - ( 36 ) * + + 24 - 35 + + 23 / 9 + + COUNT ( * ) * 89 col1
----
-808

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

query I rowsort
SELECT ALL 36 * 27 AS col1
----
972

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT DISTINCT COUNT( * ) * 82 + - 47 - + 36 + + 56 - 61 col1
----
-6

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT COUNT ( * ) * 82 + - 47 - + 36 + + 56 - 61 col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1525
SELECT - 57, + COALESCE ( + CASE 26 WHEN - + ( - 88 ) * 9 THEN COUNT( * ) ELSE NULL END, + 91, + 47 ) AS col1
----
-57
91

skipif mysql # not compatible
query II rowsort label-1525
SELECT - 57, + COALESCE ( + CASE 26 WHEN - + ( - 88 ) * 9 THEN COUNT ( * ) ELSE NULL END, + 91, + 47 ) AS col1
----
-57
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT - MIN( ALL + ( + 79 ) ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-1526
SELECT - MIN ( ALL + ( + 79 ) ) AS col1
----
-79

query I rowsort
SELECT ALL - ( + 50 ) * 44 + + 36
----
-2164

onlyif mysql # DIV for integer division: 
query I rowsort label-1528
SELECT + + 58 + + 34 + - COALESCE ( - - 6, + NULLIF ( - ( - 16 ), 72 ) * + 61 + 33 ) * + 13 DIV + 94
----
92

skipif mysql # not compatible
query I rowsort label-1528
SELECT + + 58 + + 34 + - COALESCE ( - - 6, + NULLIF ( - ( - 16 ), 72 ) * + 61 + 33 ) * + 13 / + 94
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1529
SELECT DISTINCT + COUNT( * ) * - 94 * - CAST( - 98 AS SIGNED ) + - 37 + - 51
----
-9300

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT + COUNT ( * ) * - 94 * - CAST ( - 98 AS INTEGER ) + - 37 + - 51
----
-9300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1530
SELECT - - 69 * - 51 + - 71 + 2 * 22 * 82 * - NULLIF ( + CASE ( 11 ) WHEN - CAST( - 53 AS SIGNED ) / 53 THEN + 52 ELSE NULL END * CAST( NULL AS SIGNED ), 44 * + 71 ) * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT - - 69 * - 51 + - 71 + 2 * 22 * 82 * - NULLIF ( + CASE ( 11 ) WHEN - CAST ( - 53 AS INTEGER ) / 53 THEN + 52 ELSE NULL END * CAST ( NULL AS INTEGER ), 44 * + 71 ) * + 29
----
NULL

query I rowsort
SELECT - - 25 * + 25
----
625

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1532
SELECT ALL + 4 * 80 + 75 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL + 4 * 80 + 75 + - - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - + 13 AS col0, - 88 * + ( 68 ) AS col2
----
-13
-5984

query II rowsort
SELECT 4, 90 col1
----
4
90

query I rowsort
SELECT + 81 * - 80 AS col2
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT ALL 46 * - - 89 * - COUNT( DISTINCT - 59 ) * + 7
----
-28658

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL 46 * - - 89 * - COUNT ( DISTINCT - 59 ) * + 7
----
-28658

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

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

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

query II rowsort
SELECT - 10 * - 91, - 27 - 5 col2
----
910
-32

query II rowsort
SELECT - ( 98 ) AS col0, 4 AS col0
----
-98
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT - 27 + - MAX( DISTINCT 34 ) * - 12 + ( - 49 ) AS col1
----
332

skipif mysql # not compatible
query I rowsort label-1541
SELECT - 27 + - MAX ( DISTINCT 34 ) * - 12 + ( - 49 ) AS col1
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT + 15 * 73 * - + COUNT( * )
----
-1095

skipif mysql # not compatible
query I rowsort label-1542
SELECT + 15 * 73 * - + COUNT ( * )
----
-1095

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1544
SELECT - AVG ( DISTINCT NULLIF ( - 21, + - 54 ) ) * + CAST( NULL AS SIGNED ), + 29 AS col0
----
NULL
29

skipif mysql # not compatible
query II rowsort label-1544
SELECT - AVG ( DISTINCT NULLIF ( - 21, + - 54 ) ) * + CAST ( NULL AS INTEGER ), + 29 AS col0
----
NULL
29

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

query I rowsort
SELECT ALL - 22 * - + 58
----
1276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT DISTINCT COALESCE ( COUNT( * ), - - 5 DIV + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT COALESCE ( COUNT ( * ), - - 5 / + 11 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT DISTINCT - 5 * + CAST( + CASE + + 63 WHEN - COUNT( * ) THEN - 56 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT - 5 * + CAST ( + CASE + + 63 WHEN - COUNT ( * ) THEN - 56 ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT ALL - 32 * - 98 * COUNT( * )
----
3136

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL - 32 * - 98 * COUNT ( * )
----
3136

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1551
SELECT - COUNT( * ) + + + 33, 3 * 83 * - 42 AS col1
----
32
-10458

skipif mysql # not compatible
query II rowsort label-1551
SELECT - COUNT ( * ) + + + 33, 3 * 83 * - 42 AS col1
----
32
-10458

onlyif mysql # aggregate syntax: 
query II rowsort label-1552
SELECT DISTINCT - COUNT( * ) * - 30 AS col1, + 72 * 9 * 56
----
30
36288

skipif mysql # not compatible
query II rowsort label-1552
SELECT DISTINCT - COUNT ( * ) * - 30 AS col1, + 72 * 9 * 56
----
30
36288

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

skipif mysql # not compatible
query I rowsort label-1553
SELECT - - 36 + + 57 * COUNT ( * ) AS col0
----
93

query I rowsort
SELECT - - COALESCE ( + 54, + - 76 ) * 20 + - 80
----
1000

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT DISTINCT 33 DIV - + 25 + + 7 + 40
----
46

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT 33 / - + 25 + + 7 + 40
----
46

query I rowsort
SELECT - 37 - - 7
----
-30

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

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

query I rowsort
SELECT DISTINCT + 67 + 36 * + 2 AS col1
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-1559
SELECT + - COUNT( * ) * + 57 + + COUNT( * ) col1, 78 AS col0
----
-56
78

skipif mysql # not compatible
query II rowsort label-1559
SELECT + - COUNT ( * ) * + 57 + + COUNT ( * ) col1, 78 AS col0
----
-56
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1560
SELECT COUNT( * ) - + 36 AS col0, + 98 + - 38 * - 97
----
-35
3784

skipif mysql # not compatible
query II rowsort label-1560
SELECT COUNT ( * ) - + 36 AS col0, + 98 + - 38 * - 97
----
-35
3784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1561
SELECT - 99 * - + 21 - - COALESCE ( - 63, - COUNT( * ) - + 16 ) DIV + 10
----
2073

skipif mysql # not compatible
query I rowsort label-1561
SELECT - 99 * - + 21 - - COALESCE ( - 63, - COUNT ( * ) - + 16 ) / + 10
----
2073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1562
SELECT - CAST( NULL AS SIGNED ) * + 58 - - 94 + + - 4 + COUNT( * ) + + - 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1562
SELECT - CAST ( NULL AS INTEGER ) * + 58 - - 94 + + - 4 + COUNT ( * ) + + - 76 col0
----
NULL

query II rowsort
SELECT DISTINCT 27 AS col0, + ( 61 )
----
27
61

query II rowsort
SELECT - 89 col0, - 24
----
-89
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1565
SELECT ( + 77 ) + - 80 - CAST( - 53 AS SIGNED ) + - + 11 * - + CAST( + - MIN( DISTINCT 53 ) AS SIGNED ) + - 57 * 80 AS col0
----
-5093

skipif mysql # not compatible
query I rowsort label-1565
SELECT ( + 77 ) + - 80 - CAST ( - 53 AS INTEGER ) + - + 11 * - + CAST ( + - MIN ( DISTINCT 53 ) AS INTEGER ) + - 57 * 80 AS col0
----
-5093

query I rowsort
SELECT 73 * - - 83 AS col2
----
6059

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

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

query I rowsort
SELECT DISTINCT 85 * + 94
----
7990

query I rowsort
SELECT 79 + - 58 + - 16 * + 46 + 30
----
-685

onlyif mysql # aggregate syntax: 
query II rowsort label-1570
SELECT - 66 AS col0, - 4 * - + 6 * - + MIN( - 33 ) col2
----
-66
792

skipif mysql # not compatible
query II rowsort label-1570
SELECT - 66 AS col0, - 4 * - + 6 * - + MIN ( - 33 ) col2
----
-66
792

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT - COALESCE ( + 68, - - COUNT( * ) + - 52 * + 12 * ( - NULLIF ( COUNT( DISTINCT + 89 ), + SUM( 59 ) + + 98 ) ) + COUNT( * ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-1571
SELECT - COALESCE ( + 68, - - COUNT ( * ) + - 52 * + 12 * ( - NULLIF ( COUNT ( DISTINCT + 89 ), + SUM ( 59 ) + + 98 ) ) + COUNT ( * ) ) AS col1
----
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT ALL - SUM( ALL + COALESCE ( - 34, - ( - + 64 ) * - 52 + 30 + - - 56 + 27 ) )
----
34

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL - SUM ( ALL + COALESCE ( - 34, - ( - + 64 ) * - 52 + 30 + - - 56 + 27 ) )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1574
SELECT + CAST( + ( + 82 ) AS SIGNED ) AS col1, 80 AS col2
----
82
80

skipif mysql # not compatible
query II rowsort label-1574
SELECT + CAST ( + ( + 82 ) AS INTEGER ) AS col1, 80 AS col2
----
82
80

query I rowsort
SELECT ALL + 18 + - 22
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1576
SELECT + COALESCE ( + + 23, - + COALESCE ( + 53, + AVG ( ALL + 39 ) * + ( - COUNT( * ) ) DIV + 38, COUNT( * ) ) * - 18 )
----
23

skipif mysql # not compatible
query I rowsort label-1576
SELECT + COALESCE ( + + 23, - + COALESCE ( + 53, + AVG ( ALL + 39 ) * + ( - COUNT ( * ) ) / + 38, COUNT ( * ) ) * - 18 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL + 38 + - 82 + + 36 * 93 * + COUNT( * ) AS col1
----
3304

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL + 38 + - 82 + + 36 * 93 * + COUNT ( * ) AS col1
----
3304

query I rowsort
SELECT DISTINCT - 29 col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT 16 + 10 DIV - ( + 25 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1579
SELECT 16 + 10 / - ( + 25 ) AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1580
SELECT - - 18 * + CAST( - - NULLIF ( + 61, + COUNT( * ) / 91 / + 97 * - + 44 ) AS SIGNED ) + + NULLIF ( - 53 - 36, - COUNT( * ) ) AS col1
----
1009

skipif mysql # not compatible
query I rowsort label-1580
SELECT - - 18 * + CAST ( - - NULLIF ( + 61, + COUNT ( * ) / 91 / + 97 * - + 44 ) AS INTEGER ) + + NULLIF ( - 53 - 36, - COUNT ( * ) ) AS col1
----
1009

query I rowsort
SELECT ALL + 3 - 2 * + - 65
----
133

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

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

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

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

query I rowsort
SELECT - + 32 * - - 35 + + 11 + 51
----
-1058

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT 27 + - NULLIF ( - COUNT( * ), + NULLIF ( AVG ( ( + 28 ) ), + COUNT( * ) ) / 41 )
----
28

skipif mysql # not compatible
query I rowsort label-1586
SELECT 27 + - NULLIF ( - COUNT ( * ), + NULLIF ( AVG ( ( + 28 ) ), + COUNT ( * ) ) / 41 )
----
28

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

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

query II rowsort
SELECT ALL 46 * - 79 AS col2, + 94 AS col0
----
-3634
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1589
SELECT 38 * COUNT( * ) AS col0, + COUNT( * ) * + + 35 * - 21 + - + 11 + + + 57 * 17 DIV 53 AS col2
----
38
-728

skipif mysql # not compatible
query II rowsort label-1589
SELECT 38 * COUNT ( * ) AS col0, + COUNT ( * ) * + + 35 * - 21 + - + 11 + + + 57 * 17 / 53 AS col2
----
38
-728

query I rowsort
SELECT 45 + 50
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1591
SELECT COALESCE ( + + 56, - AVG ( 44 ) ) DIV 79 * - ( - + COUNT( * ) ) + - 22 + + 74 + COUNT( * ) * + 15 * 50
----
802

skipif mysql # not compatible
query I rowsort label-1591
SELECT COALESCE ( + + 56, - AVG ( 44 ) ) / 79 * - ( - + COUNT ( * ) ) + - 22 + + 74 + COUNT ( * ) * + 15 * 50
----
802

query I rowsort
SELECT DISTINCT 4 * - 28 AS col2
----
-112

query I rowsort
SELECT DISTINCT - 50 * ( + 1 ) AS col1
----
-50

query I rowsort
SELECT 54 * 94
----
5076

query II rowsort
SELECT ALL 32 + - 69 AS col2, 19
----
-37
19

query II rowsort
SELECT ALL 3 + + 21, + 71 AS col1
----
24
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1597
SELECT 44 * + NULLIF ( + + ( + COUNT( * ) ), 13 / + - MAX( DISTINCT + ( - CAST( - 50 AS SIGNED ) ) ) + + 62 )
----
44

skipif mysql # not compatible
query I rowsort label-1597
SELECT 44 * + NULLIF ( + + ( + COUNT ( * ) ), 13 / + - MAX ( DISTINCT + ( - CAST ( - 50 AS INTEGER ) ) ) + + 62 )
----
44

query I rowsort
SELECT ALL 96 + - + ( - 8 ) AS col2
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-1599
SELECT ( 27 ) DIV + + 61
----
0

skipif mysql # not compatible
query I rowsort label-1599
SELECT ( 27 ) / + + 61
----
0

query I rowsort
SELECT DISTINCT ( - 6 ) + + 54 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1601
SELECT + - 53 / COUNT( * ) + + 43 * + - CAST( NULL AS SIGNED ) * + MAX( ALL - - 23 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT + - 53 / COUNT ( * ) + + 43 * + - CAST ( NULL AS INTEGER ) * + MAX ( ALL - - 23 ) col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1603
SELECT ALL - - ( - 66 ) + - AVG ( DISTINCT - - 59 ) * 8 * + 78 * - - AVG ( ALL + 9 ) + + 80 + + NULLIF ( MIN( - 26 ), 69 + 95 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL - - ( - 66 ) + - AVG ( DISTINCT - - 59 ) * 8 * + 78 * - - AVG ( ALL + 9 ) + + 80 + + NULLIF ( MIN ( - 26 ), 69 + 95 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1604
SELECT - 69 / - 63 + MIN( DISTINCT + 96 ) * + 33 / + CASE + CAST( NULL AS SIGNED ) WHEN + - COUNT( * ) THEN + 91 * + CASE 44 WHEN 82 THEN + 48 * - 22 + + CASE - 15 WHEN 32 THEN + COUNT( * ) WHEN 94 THEN NULL ELSE - COALESCE ( 44, + COUNT( * ) ) + MAX( + 59 ) END END WHEN 69 * + 34 THEN + 52 / 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT - 69 / - 63 + MIN ( DISTINCT + 96 ) * + 33 / + CASE + CAST ( NULL AS INTEGER ) WHEN + - COUNT ( * ) THEN + 91 * + CASE 44 WHEN 82 THEN + 48 * - 22 + + CASE - 15 WHEN 32 THEN + COUNT ( * ) WHEN 94 THEN NULL ELSE - COALESCE ( 44, + COUNT ( * ) ) + MAX ( + 59 ) END END WHEN 69 * + 34 THEN + 52 / 58 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1605
SELECT + + 76 * + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * ( - 37 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT DISTINCT - 65 DIV - 35
----
1

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - 65 / - 35
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1608
SELECT + - CAST( + + COUNT( * ) AS SIGNED ), + 52 * + + 29 AS col2
----
-1
1508

skipif mysql # not compatible
query II rowsort label-1608
SELECT + - CAST ( + + COUNT ( * ) AS INTEGER ), + 52 * + + 29 AS col2
----
-1
1508

query I rowsort
SELECT DISTINCT + + 9 AS col1
----
9

query I rowsort
SELECT - - 42 * - 16 + - 48
----
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1611
SELECT - NULLIF ( COUNT( * ), - MAX( - 39 ) * - 33 * 62 ) DIV + 67 + 16 * 57
----
912

skipif mysql # not compatible
query I rowsort label-1611
SELECT - NULLIF ( COUNT ( * ), - MAX ( - 39 ) * - 33 * 62 ) / + 67 + 16 * 57
----
912

query I rowsort
SELECT ALL + - 36 * - 16
----
576

query I rowsort
SELECT - ( + 22 ) * + 8 AS col1
----
-176

query I rowsort
SELECT + + 74 * - 14 + 38 AS col2
----
-998

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT 44 * 63 + 70 * 82 + + 36 + + COUNT( * ) + ( - + ( - - 8 ) ) - + NULLIF ( + 77, + 45 ) * 18 * - 0
----
8541

skipif mysql # not compatible
query I rowsort label-1615
SELECT 44 * 63 + 70 * 82 + + 36 + + COUNT ( * ) + ( - + ( - - 8 ) ) - + NULLIF ( + 77, + 45 ) * 18 * - 0
----
8541

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT COUNT( * ) * 30 - ( - 37 ) + - 47 + + COALESCE ( + COUNT( * ), - COALESCE ( 7, + - ( - 82 ) + 91 * + COUNT( * ) ) * 25, + 69 + + 19 ) * - 20 * - CASE - 7 WHEN + 56 THEN NULLIF ( + ( + NULLIF ( 72, + 68 ) ), 72 ) WHEN - 7 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT COUNT ( * ) * 30 - ( - 37 ) + - 47 + + COALESCE ( + COUNT ( * ), - COALESCE ( 7, + - ( - 82 ) + 91 * + COUNT ( * ) ) * 25, + 69 + + 19 ) * - 20 * - CASE - 7 WHEN + 56 THEN NULLIF ( + ( + NULLIF ( 72, + 68 ) ), 72 ) WHEN - 7 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT + ( CASE - CASE + 79 WHEN 71 + 72 * - + ( + 28 ) * - COUNT( * ) + 28 / ( 10 * 90 + 49 ) THEN NULL WHEN 1 THEN + 0 / COUNT( * ) WHEN + 5 THEN NULL ELSE NULL END WHEN MAX( 25 ) * 72 THEN NULL WHEN + COUNT( * ) * 3 + - 61 * 11 THEN + 16 + + ( - COUNT( * ) ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1617
SELECT + ( CASE - CASE + 79 WHEN 71 + 72 * - + ( + 28 ) * - COUNT ( * ) + 28 / ( 10 * 90 + 49 ) THEN NULL WHEN 1 THEN + 0 / COUNT ( * ) WHEN + 5 THEN NULL ELSE NULL END WHEN MAX ( 25 ) * 72 THEN NULL WHEN + COUNT ( * ) * 3 + - 61 * 11 THEN + 16 + + ( - COUNT ( * ) ) END ) AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - COALESCE ( 27, + 78 + 14 ), - 93 )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT - 75 DIV + 69
----
-1

skipif mysql # not compatible
query I rowsort label-1619
SELECT - 75 / + 69
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT - ( 23 ) * + + 21 * 85 + + ( - 35 ) - + COUNT( + - 88 ) AS col2
----
-41091

skipif mysql # not compatible
query I rowsort label-1620
SELECT - ( 23 ) * + + 21 * 85 + + ( - 35 ) - + COUNT ( + - 88 ) AS col2
----
-41091

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1622
SELECT DISTINCT - 67 * - 49 + - CAST( + 97 AS SIGNED ) DIV - - CAST( - 97 AS SIGNED ) AS col1
----
3284

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT - 67 * - 49 + - CAST ( + 97 AS INTEGER ) / - - CAST ( - 97 AS INTEGER ) AS col1
----
3284

query I rowsort
SELECT ALL + 84 * - - 82 * + ( - 22 ) + + - 99 col1
----
-151635

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT ALL + CASE + COUNT( DISTINCT + 93 ) WHEN + 10 * + + COALESCE ( - 45, - + 69 ) + 47 THEN - + 2 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL + CASE + COUNT ( DISTINCT + 93 ) WHEN + 10 * + + COALESCE ( - 45, - + 69 ) + 47 THEN - + 2 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1625
SELECT - NULLIF ( 88, - - 61 ) DIV COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-1625
SELECT - NULLIF ( 88, - - 61 ) / COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL COUNT( * ) * 60 + - + 93
----
-33

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL COUNT ( * ) * 60 + - + 93
----
-33

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

query I rowsort
SELECT 64 * - - ( + 79 ) - 70 AS col2
----
4986

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT ALL + 73 DIV + 1
----
73

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL + 73 / + 1
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT - SUM( DISTINCT 75 ) + + 38 * ( + - 56 ) * - 97 * + + NULLIF ( + COALESCE ( + + 90, + 35 ), + 56 + + 64 ) - COUNT( * ) AS col2
----
18577364

skipif mysql # not compatible
query I rowsort label-1631
SELECT - SUM ( DISTINCT 75 ) + + 38 * ( + - 56 ) * - 97 * + + NULLIF ( + COALESCE ( + + 90, + 35 ), + 56 + + 64 ) - COUNT ( * ) AS col2
----
18577364

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT + CASE + CASE - + 96 WHEN + 52 THEN + 15 END WHEN + 93 - - 43 THEN + NULLIF ( + 80, + + 20 * - 18 ) ELSE 11 + 97 * 53 END * COUNT( * )
----
5152

skipif mysql # not compatible
query I rowsort label-1632
SELECT + CASE + CASE - + 96 WHEN + 52 THEN + 15 END WHEN + 93 - - 43 THEN + NULLIF ( + 80, + + 20 * - 18 ) ELSE 11 + 97 * 53 END * COUNT ( * )
----
5152

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL + 1 + CASE - MIN( ALL + NULLIF ( + 42, - + COALESCE ( + 99, ( - + 77 ) ) ) ) WHEN 8 THEN 25 WHEN 99 THEN + 64 * 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL + 1 + CASE - MIN ( ALL + NULLIF ( + 42, - + COALESCE ( + 99, ( - + 77 ) ) ) ) WHEN 8 THEN 25 WHEN 99 THEN + 64 * 33 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT - 79 + + COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-1634
SELECT - 79 + + COUNT ( * ) AS col0
----
-78

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

query I rowsort
SELECT ALL 49 * + + 47 AS col2
----
2303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1637
SELECT - CASE COUNT( - + 56 ) WHEN 18 THEN NULL WHEN CASE 74 WHEN - MAX( DISTINCT - 13 ) THEN - + 56 * - NULLIF ( 96, 91 * + 42 ) WHEN 80 * 2 - - 92 THEN 30 * 47 + 63 * - COALESCE ( - 47 DIV COALESCE ( SUM( - 61 ), 72 * COUNT( * ) + - 84 ) + COUNT( * ), 54 ) WHEN CAST( NULL AS SIGNED ) THEN NULL END DIV ( + ( - MIN( DISTINCT - 50 ) ) * + 24 ) THEN 51 WHEN 66 DIV - 89 + + COUNT( * ) THEN NULL WHEN - 86 + + 62 THEN NULL ELSE + MIN( + 9 ) END + ( - 93 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT - CASE COUNT ( - + 56 ) WHEN 18 THEN NULL WHEN CASE 74 WHEN - MAX ( DISTINCT - 13 ) THEN - + 56 * - NULLIF ( 96, 91 * + 42 ) WHEN 80 * 2 - - 92 THEN 30 * 47 + 63 * - COALESCE ( - 47 / COALESCE ( SUM ( - 61 ), 72 * COUNT ( * ) + - 84 ) + COUNT ( * ), 54 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL END / ( + ( - MIN ( DISTINCT - 50 ) ) * + 24 ) THEN 51 WHEN 66 / - 89 + + COUNT ( * ) THEN NULL WHEN - 86 + + 62 THEN NULL ELSE + MIN ( + 9 ) END + ( - 93 ) col1
----
NULL

query I rowsort
SELECT ALL + 1 + + 92 AS col2
----
93

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

query I rowsort
SELECT ALL 56 + - 90 * COALESCE ( + 79, - 91 ) - - 50
----
-7004

query I rowsort
SELECT + 30 + + 60
----
90

query I rowsort
SELECT + + 91 + - 71 + 26 + + + 6 AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1643
SELECT + COUNT( * ) AS col2, + 40 * - 92 * + - 20 AS col0
----
1
73600

skipif mysql # not compatible
query II rowsort label-1643
SELECT + COUNT ( * ) AS col2, + 40 * - 92 * + - 20 AS col0
----
1
73600

query I rowsort
SELECT + - 16 + - - 72
----
56

query I rowsort
SELECT - ( - 68 )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1646
SELECT - - COUNT( * ) AS col2, - 43 * 61
----
1
-2623

skipif mysql # not compatible
query II rowsort label-1646
SELECT - - COUNT ( * ) AS col2, - 43 * 61
----
1
-2623

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT + + COUNT( * ) + + + 59 col2
----
60

skipif mysql # not compatible
query I rowsort label-1647
SELECT + + COUNT ( * ) + + + 59 col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1648
SELECT ALL + COUNT( * ) - + CAST( - - CAST( - 19 AS SIGNED ) AS SIGNED ) - CAST( NULL AS SIGNED ) * 10 * + 92 - - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL + COUNT ( * ) - + CAST ( - - CAST ( - 19 AS INTEGER ) AS INTEGER ) - CAST ( NULL AS INTEGER ) * 10 * + 92 - - 31 AS col0
----
NULL

query I rowsort
SELECT + + 30 * - 37 + 64 * 20
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1650
SELECT + CAST( + CAST( + 23 AS SIGNED ) AS SIGNED ) * COUNT( DISTINCT - 33 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1650
SELECT + CAST ( + CAST ( + 23 AS INTEGER ) AS INTEGER ) * COUNT ( DISTINCT - 33 ) AS col1
----
23

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

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

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

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

query I rowsort
SELECT + 42 * + ( + - 74 ) AS col2
----
-3108

query II rowsort
SELECT DISTINCT + 42 * - 49 - - 85 AS col0, 77
----
-1973
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT 4 DIV + 16 + + + 75 - - - 77 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1655
SELECT 4 / + 16 + + + 75 - - - 77 AS col1
----
-2

query I rowsort
SELECT + + 29 * + 96 AS col1
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT ALL 69 / + 14 * CASE MIN( + + 71 ) WHEN + AVG ( + 99 ) * + ( + + 14 ) + - 72 + + 76 THEN COUNT( - 67 ) * + 13 WHEN ( - 95 ) THEN NULL END * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL 69 / + 14 * CASE MIN ( + + 71 ) WHEN + AVG ( + 99 ) * + ( + + 14 ) + - 72 + + 76 THEN COUNT ( - 67 ) * + 13 WHEN ( - 95 ) THEN NULL END * 60 AS col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL 25 / + CASE - + COALESCE ( - + 4, + + 63 ) WHEN + MIN( 14 ) + 25 THEN - COUNT( * ) + 16 END * + + 39 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL 25 / + CASE - + COALESCE ( - + 4, + + 63 ) WHEN + MIN ( 14 ) + 25 THEN - COUNT ( * ) + 16 END * + + 39 + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1661
SELECT DISTINCT + 40 DIV - 4 + + + 18 + - + 31
----
-23

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT + 40 / - 4 + + + 18 + - + 31
----
-23

query II rowsort
SELECT DISTINCT + 86 AS col2, + 60 col0
----
86
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1663
SELECT DISTINCT 68 * + 19 * + - 71 + + - 60 DIV 26 AS col1
----
-91734

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT 68 * + 19 * + - 71 + + - 60 / 26 AS col1
----
-91734

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT ALL + 77 * MIN( ALL + 50 )
----
3850

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL + 77 * MIN ( ALL + 50 )
----
3850

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

query I rowsort
SELECT ALL - 41 * - 53 + 93 AS col0
----
2266

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1667
SELECT + 40 col1, + CAST( + 63 AS SIGNED ) * - 70 * 5
----
40
-22050

skipif mysql # not compatible
query II rowsort label-1667
SELECT + 40 col1, + CAST ( + 63 AS INTEGER ) * - 70 * 5
----
40
-22050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1668
SELECT DISTINCT NULLIF ( 70, - 6 ) * 91 + - 9 + 83, 53 + + COALESCE ( + 68, 54, - - NULLIF ( + 82, - NULLIF ( - 25, COUNT( * ) ) ) ) * + CAST( MAX( - 80 ) AS SIGNED ) AS col0
----
6444
-5387

skipif mysql # not compatible
query II rowsort label-1668
SELECT DISTINCT NULLIF ( 70, - 6 ) * 91 + - 9 + 83, 53 + + COALESCE ( + 68, 54, - - NULLIF ( + 82, - NULLIF ( - 25, COUNT ( * ) ) ) ) * + CAST ( MAX ( - 80 ) AS INTEGER ) AS col0
----
6444
-5387

query I rowsort
SELECT DISTINCT 5 * 81 + + 20
----
425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT + 99 * - 81 + 98 + - ( - COALESCE ( 17, - CAST( + 30 AS SIGNED ) * - 74 + + - 45 ) ) + - 15 * + 95 AS col2
----
-9329

skipif mysql # not compatible
query I rowsort label-1670
SELECT + 99 * - 81 + 98 + - ( - COALESCE ( 17, - CAST ( + 30 AS INTEGER ) * - 74 + + - 45 ) ) + - 15 * + 95 AS col2
----
-9329

onlyif mysql # aggregate syntax: 
query III rowsort label-1671
SELECT ALL + COUNT( * ) AS col2, 67 AS col2, - 57
----
1
67
-57

skipif mysql # not compatible
query III rowsort label-1671
SELECT ALL + COUNT ( * ) AS col2, 67 AS col2, - 57
----
1
67
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT DISTINCT 42 * - MIN( 32 ) * - - 13 - - - 57 + 82 + + - 64 + - + MAX( ALL 27 ) * 37 * - COUNT( 95 ) * 77 AS col2
----
59412

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT 42 * - MIN ( 32 ) * - - 13 - - - 57 + 82 + + - 64 + - + MAX ( ALL 27 ) * 37 * - COUNT ( 95 ) * 77 AS col2
----
59412

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT - 55 DIV - 13 col2
----
4

skipif mysql # not compatible
query I rowsort label-1674
SELECT - 55 / - 13 col2
----
4

query I rowsort
SELECT ALL 61 - + + 41 * 60
----
-2399

onlyif mysql # aggregate syntax: 
query II rowsort label-1676
SELECT DISTINCT 12, + COUNT( DISTINCT - 49 ) + + - MIN( DISTINCT - + ( + ( 24 ) ) ) AS col0
----
12
25

skipif mysql # not compatible
query II rowsort label-1676
SELECT DISTINCT 12, + COUNT ( DISTINCT - 49 ) + + - MIN ( DISTINCT - + ( + ( 24 ) ) ) AS col0
----
12
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ALL + 69 - COUNT( * ) * + 63
----
6

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + 69 - COUNT ( * ) * + 63
----
6

query II rowsort
SELECT - 66 AS col2, 24 AS col1
----
-66
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT + 24 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-1679
SELECT + 24 / 84
----
0

query II rowsort
SELECT - - 45, + 81 col1
----
45
81

query II rowsort
SELECT - 71 AS col0, 99 AS col2
----
-71
99

query I rowsort
SELECT ALL + - 19 - - 7 AS col0
----
-12

query II rowsort
SELECT - 93 AS col0, - 81 * - ( + 63 ) col2
----
-93
5103

query II rowsort
SELECT - - 22 AS col1, COALESCE ( + + 27, 18 ) col2
----
22
27

query I rowsort
SELECT DISTINCT - + 7 * 98 AS col0
----
-686

query I rowsort
SELECT 56 - + 20 col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1687
SELECT ALL + 99 AS col2, - CAST( - 96 AS SIGNED )
----
99
96

skipif mysql # not compatible
query II rowsort label-1687
SELECT ALL + 99 AS col2, - CAST ( - 96 AS INTEGER )
----
99
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT DISTINCT + + MIN( - 6 ) * + + 7
----
-42

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT + + MIN ( - 6 ) * + + 7
----
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT + 40 * 69 * + 74 * COUNT( * ) AS col2
----
204240

skipif mysql # not compatible
query I rowsort label-1690
SELECT + 40 * 69 * + 74 * COUNT ( * ) AS col2
----
204240

query I rowsort
SELECT ALL + 13 * + 77 * - 57 + 80 + - - 16
----
-56961

query I rowsort
SELECT + 97 + - 53 * 81
----
-4196

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

query II rowsort
SELECT ALL - 14, - 32 AS col2
----
-14
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1695
SELECT - COUNT( * ) DIV - + MAX( DISTINCT - 31 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1695
SELECT - COUNT ( * ) / - + MAX ( DISTINCT - 31 ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1696
SELECT DISTINCT - COUNT( * ) DIV - 74 * 69 * - 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT - COUNT ( * ) / - 74 * 69 * - 32 AS col2
----
0

query I rowsort
SELECT ALL 59 + + 77
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT DISTINCT + ( - COUNT( * ) ) + 55 * + NULLIF ( - 52, ( - + COUNT( * ) ) ) * - 76 - 89 + - + 71 AS col1
----
217199

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT + ( - COUNT ( * ) ) + 55 * + NULLIF ( - 52, ( - + COUNT ( * ) ) ) * - 76 - 89 + - + 71 AS col1
----
217199

query I rowsort
SELECT - 33 * 91 + + - 31
----
-3034

query II rowsort
SELECT ALL + 45 + 23 AS col1, 76 * 80
----
68
6080

onlyif mysql # aggregate syntax: 
query II rowsort label-1701
SELECT ALL COUNT( * ) * + + 96 AS col1, COUNT( * ) * 84 * - 38
----
96
-3192

skipif mysql # not compatible
query II rowsort label-1701
SELECT ALL COUNT ( * ) * + + 96 AS col1, COUNT ( * ) * 84 * - 38
----
96
-3192

query I rowsort
SELECT ALL 86 + 91
----
177

onlyif mysql # aggregate syntax: 
query II rowsort label-1703
SELECT DISTINCT 21 + + - 74, ( MAX( DISTINCT 73 ) ) + - COUNT( * ) - - 39 AS col0
----
-53
111

skipif mysql # not compatible
query II rowsort label-1703
SELECT DISTINCT 21 + + - 74, ( MAX ( DISTINCT 73 ) ) + - COUNT ( * ) - - 39 AS col0
----
-53
111

query I rowsort
SELECT DISTINCT 85 - - 38
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT DISTINCT + COUNT( * ) - + 36 + + 85 * + 43 AS col2
----
3620

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT + COUNT ( * ) - + 36 + + 85 * + 43 AS col2
----
3620

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1707
SELECT DISTINCT 72 * + 68 AS col2, - CAST( NULL AS SIGNED ) * - 56 * COUNT( DISTINCT - 41 ) * + + 14 + - ( + - ( + COUNT( * ) ) ) / + + 32 AS col2
----
4896
NULL

skipif mysql # not compatible
query II rowsort label-1707
SELECT DISTINCT 72 * + 68 AS col2, - CAST ( NULL AS INTEGER ) * - 56 * COUNT ( DISTINCT - 41 ) * + + 14 + - ( + - ( + COUNT ( * ) ) ) / + + 32 AS col2
----
4896
NULL

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

skipif mysql # not compatible
query I rowsort label-1708
SELECT 1 + - NULLIF ( + 28, - - COUNT ( * ) ) * COUNT ( * )
----
-27

query I rowsort
SELECT - 22 - + ( - 43 ) * + - 80 col2
----
-3462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1710
SELECT ALL SUM( DISTINCT 89 ) - + - CAST( NULL AS SIGNED ) * + + 44 * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL SUM ( DISTINCT 89 ) - + - CAST ( NULL AS INTEGER ) * + + 44 * 75
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT - 96 * - + 13 + COUNT( * )
----
1249

skipif mysql # not compatible
query I rowsort label-1712
SELECT - 96 * - + 13 + COUNT ( * )
----
1249

onlyif mysql # aggregate syntax: 
query II rowsort label-1713
SELECT ALL + COUNT( * ) * - - ( - 57 ) * 26 - - 49 AS col1, + 32 AS col1
----
-1433
32

skipif mysql # not compatible
query II rowsort label-1713
SELECT ALL + COUNT ( * ) * - - ( - 57 ) * 26 - - 49 AS col1, + 32 AS col1
----
-1433
32

query II rowsort
SELECT 70 + 39 AS col0, 99 * + 30 * + 19 AS col1
----
109
56430

onlyif mysql # aggregate syntax: 
query II rowsort label-1715
SELECT COUNT( * ) + + 73 AS col1, - ( 87 ) * + - ( + - 94 ) + + 91 + - COALESCE ( - 46, - 99 ) col0
----
74
-8041

skipif mysql # not compatible
query II rowsort label-1715
SELECT COUNT ( * ) + + 73 AS col1, - ( 87 ) * + - ( + - 94 ) + + 91 + - COALESCE ( - 46, - 99 ) col0
----
74
-8041

query I rowsort
SELECT DISTINCT - COALESCE ( - + 87, - 15 ) AS col0
----
87

query I rowsort
SELECT + 29 + - + 9 + - + 53 * - 91
----
4843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1718
SELECT DISTINCT - 26 DIV + SUM( + 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT - 26 / + SUM ( + 50 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1719
SELECT 96 * - + 4 DIV + + 94 DIV - 9 * + - COUNT( * ), - COUNT( * ) - + + 44 * - - 6 AS col0
----
0
-265

skipif mysql # not compatible
query II rowsort label-1719
SELECT 96 * - + 4 / + + 94 / - 9 * + - COUNT ( * ), - COUNT ( * ) - + + 44 * - - 6 AS col0
----
0
-265

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT 39 + + - CASE + 14 WHEN ( + + 39 ) THEN NULL WHEN + MAX( - 41 ) * + + 44 * - 99 / - SUM( + 1 ) THEN NULL ELSE COUNT( * ) END + 58 * + 9 * 65
----
33968

skipif mysql # not compatible
query I rowsort label-1720
SELECT 39 + + - CASE + 14 WHEN ( + + 39 ) THEN NULL WHEN + MAX ( - 41 ) * + + 44 * - 99 / - SUM ( + 1 ) THEN NULL ELSE COUNT ( * ) END + 58 * + 9 * 65
----
33968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1721
SELECT ALL + + 12 DIV + CASE - 55 WHEN - + COUNT( * ) * + - 52 * - 95 THEN NULL WHEN + + ( - MIN( DISTINCT + - 51 ) ) THEN NULL ELSE 65 * + ( + 74 ) * - 68 END * - COUNT( + 1 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL + + 12 / + CASE - 55 WHEN - + COUNT ( * ) * + - 52 * - 95 THEN NULL WHEN + + ( - MIN ( DISTINCT + - 51 ) ) THEN NULL ELSE 65 * + ( + 74 ) * - 68 END * - COUNT ( + 1 ) AS col1
----
0

query II rowsort
SELECT DISTINCT - + 0 + - 8 AS col1, 63 * - 20 AS col1
----
-8
-1260

query I rowsort
SELECT ALL + 2 * 28 + - + 47 + 5 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL - COUNT( * ) * - + 30 * - 62 + 51 + + 84
----
-1725

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL - COUNT ( * ) * - + 30 * - 62 + 51 + + 84
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT 73 * - - 32 * - - COUNT( ALL + 97 ) col2
----
2336

skipif mysql # not compatible
query I rowsort label-1725
SELECT 73 * - - 32 * - - COUNT ( ALL + 97 ) col2
----
2336

onlyif mysql # aggregate syntax: 
query II rowsort label-1726
SELECT COUNT( DISTINCT ( + + ( + 66 ) ) ) AS col1, - ( ( - 36 ) ) + 93 AS col2
----
1
129

skipif mysql # not compatible
query II rowsort label-1726
SELECT COUNT ( DISTINCT ( + + ( + 66 ) ) ) AS col1, - ( ( - 36 ) ) + 93 AS col2
----
1
129

query I rowsort
SELECT 63 * - 5 AS col1
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT MAX( DISTINCT 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-1728
SELECT MAX ( DISTINCT 98 ) AS col0
----
98

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

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL 74 * CAST ( NULL AS INTEGER ) * - 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1730
SELECT COALESCE ( + 18, + 20 * + - 43 DIV + 59, - COUNT( * ) ) * 33 + + 6 * + - 57 AS col2
----
252

skipif mysql # not compatible
query I rowsort label-1730
SELECT COALESCE ( + 18, + 20 * + - 43 / + 59, - COUNT ( * ) ) * 33 + + 6 * + - 57 AS col2
----
252

query II rowsort
SELECT DISTINCT ( 20 ) * 25 - + 9 AS col0, 59
----
491
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1732
SELECT + 90 * - + NULLIF ( + 24, COUNT( * ) ) + 38 + 38 DIV + - 25
----
-2123

skipif mysql # not compatible
query I rowsort label-1732
SELECT + 90 * - + NULLIF ( + 24, COUNT ( * ) ) + 38 + 38 / + - 25
----
-2123

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

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

query I rowsort
SELECT ALL 26 * + 7
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT + COALESCE ( ( - 41 ), - 5 ) * + - CASE - MAX( ALL + 81 ) WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN 40 THEN + 87 * + 87 - 95 * + 11 + - 11 + 13 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT + COALESCE ( ( - 41 ), - 5 ) * + - CASE - MAX ( ALL + 81 ) WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 40 THEN + 87 * + 87 - 95 * + 11 + - 11 + 13 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ALL + 42 * ( + COALESCE ( 41, - 7 * + 17 + + 33 * + + 94 * + + COUNT( * ), - - 12 ) ) col0
----
1722

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL + 42 * ( + COALESCE ( 41, - 7 * + 17 + + 33 * + + 94 * + + COUNT ( * ), - - 12 ) ) col0
----
1722

query I rowsort
SELECT DISTINCT 73 * NULLIF ( 34, - + 25 ) * + + 91 AS col1
----
225862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1738
SELECT - 46 * - CAST( - 61 AS SIGNED ) + + - 4 AS col2
----
-2810

skipif mysql # not compatible
query I rowsort label-1738
SELECT - 46 * - CAST ( - 61 AS INTEGER ) + + - 4 AS col2
----
-2810

query II rowsort
SELECT ALL + 52 AS col0, - 13 + 9 AS col2
----
52
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1740
SELECT 29 * + + 38 + + + 3 + - 87 + - CASE - + 73 WHEN - - CAST( NULL AS SIGNED ) * 45 + + 40 * + 42 - - - 3 THEN + + 29 * + NULLIF ( - 64, + 53 * + MAX( 44 ) ) END + - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1740
SELECT 29 * + + 38 + + + 3 + - 87 + - CASE - + 73 WHEN - - CAST ( NULL AS INTEGER ) * 45 + + 40 * + 42 - - - 3 THEN + + 29 * + NULLIF ( - 64, + 53 * + MAX ( 44 ) ) END + - 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1741
SELECT + + 54 * - - 91 * + ( 82 ) * - + ( - - 19 ) + + + COALESCE ( 79, - - 4 ), + COUNT( * ) * - 82 col0
----
-7655933
-82

skipif mysql # not compatible
query II rowsort label-1741
SELECT + + 54 * - - 91 * + ( 82 ) * - + ( - - 19 ) + + + COALESCE ( 79, - - 4 ), + COUNT ( * ) * - 82 col0
----
-7655933
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-1742
SELECT DISTINCT 11 AS col0, COALESCE ( - + 9, 38 ) DIV - + 78
----
11
0

skipif mysql # not compatible
query II rowsort label-1742
SELECT DISTINCT 11 AS col0, COALESCE ( - + 9, 38 ) / - + 78
----
11
0

query I rowsort
SELECT - NULLIF ( ( 40 ), 97 * + ( - 80 ) ) AS col0
----
-40

query II rowsort
SELECT DISTINCT + 67 AS col0, + 66
----
67
66

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

query I rowsort
SELECT + 52 - - + 80
----
132

query I rowsort
SELECT ALL - 96 * + - 27 AS col1
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT ALL 96 + - 54 + + CASE + - 8 WHEN + 25 THEN - 61 ELSE NULL END * - 23 / 56 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL 96 + - 54 + + CASE + - 8 WHEN + 25 THEN - 61 ELSE NULL END * - 23 / 56 / COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT - + 52 * - + 1 + CASE 67 WHEN ( 85 ) THEN NULL WHEN + COUNT( * ) THEN + COUNT( * ) END + - 5 + - - MIN( DISTINCT 38 ) + + 36 * + 50 - + 15 * + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT - + 52 * - + 1 + CASE 67 WHEN ( 85 ) THEN NULL WHEN + COUNT ( * ) THEN + COUNT ( * ) END + - 5 + - - MIN ( DISTINCT 38 ) + + 36 * + 50 - + 15 * + 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT - COUNT( * ), ( - 15 ) + + + 73 + 19 * 54 * ( + COUNT( * ) ) + + COUNT( * ) + + + COUNT( DISTINCT 41 ) + - 68 * + + 77 + - 70 AS col0
----
-1
-4220

skipif mysql # not compatible
query II rowsort label-1751
SELECT - COUNT ( * ), ( - 15 ) + + + 73 + 19 * 54 * ( + COUNT ( * ) ) + + COUNT ( * ) + + + COUNT ( DISTINCT 41 ) + - 68 * + + 77 + - 70 AS col0
----
-1
-4220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT ALL - - 97 + + 42 + + - 93 * + 92 * CAST( - ( - 86 ) AS SIGNED ) AS col2
----
-735677

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL - - 97 + + 42 + + - 93 * + 92 * CAST ( - ( - 86 ) AS INTEGER ) AS col2
----
-735677

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

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

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

query I rowsort
SELECT DISTINCT 81 + - 0 AS col2
----
81

query II rowsort
SELECT ALL 99 + - 87 + - 64, 1 + + - 74 AS col0
----
-52
-73

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

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

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

query I rowsort
SELECT + 93 + + 34 AS col0
----
127

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1761
SELECT 19 * - - 94 + + + 80 - - + 78 * + ( + - 79 ) * 65 col1, + ( 98 ) DIV + COUNT( * )
----
-398664
98

skipif mysql # not compatible
query II rowsort label-1761
SELECT 19 * - - 94 + + + 80 - - + 78 * + ( + - 79 ) * 65 col1, + ( 98 ) / + COUNT ( * )
----
-398664
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT DISTINCT + COUNT( - + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT + COUNT ( - + 61 )
----
1

query I rowsort
SELECT ALL - 56 * 21
----
-1176

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

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

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

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

query I rowsort
SELECT + 78 * - 66 AS col2
----
-5148

query I rowsort
SELECT ALL + CASE 18 WHEN - 88 THEN - 54 ELSE NULL END
----
NULL

query I rowsort
SELECT NULLIF ( - 80, + 72 )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-1769
SELECT - SUM( + + 17 ) - + COUNT( * ) + - 48, + CASE - 67 WHEN 75 THEN NULL ELSE - 49 END AS col2
----
-66
-49

skipif mysql # not compatible
query II rowsort label-1769
SELECT - SUM ( + + 17 ) - + COUNT ( * ) + - 48, + CASE - 67 WHEN 75 THEN NULL ELSE - 49 END AS col2
----
-66
-49

query I rowsort
SELECT DISTINCT 83 * - + 9 + - 84 AS col2
----
-831

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL - 14 * - 45 + + - COUNT( * )
----
629

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - 14 * - 45 + + - COUNT ( * )
----
629

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT DISTINCT + ( + 99 ) * + COUNT( * ) + + 0 + 22 + + 80 * + 56 AS col1
----
4601

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT + ( + 99 ) * + COUNT ( * ) + + 0 + 22 + + 80 * + 56 AS col1
----
4601

query I rowsort
SELECT DISTINCT + + CASE + 43 WHEN 36 THEN + 10 END * ( + 29 ) + - 97 + - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT - - COUNT( * ) + 92
----
93

skipif mysql # not compatible
query I rowsort label-1774
SELECT - - COUNT ( * ) + 92
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT - 29 * - 77 - + + MIN( DISTINCT + 66 ) + + - 7 * 36
----
1915

skipif mysql # not compatible
query I rowsort label-1775
SELECT - 29 * - 77 - + + MIN ( DISTINCT + 66 ) + + - 7 * 36
----
1915

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT ALL + NULLIF ( COUNT( * ), + + 82 * - - COUNT( * ) ) * 74 + - - 33 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL + NULLIF ( COUNT ( * ), + + 82 * - - COUNT ( * ) ) * 74 + - - 33 AS col2
----
107

query II rowsort
SELECT - + 62 + + NULLIF ( - - 33, + 79 ) AS col1, 42
----
-29
42

query I rowsort
SELECT + + 56 - - 78
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL + COUNT( * ) * 36 + - 77 + - 58
----
-99

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL + COUNT ( * ) * 36 + - 77 + - 58
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1780
SELECT + 73 + + 44 + 75 + + 11 AS col0, 91 / 78 * + CASE - 77 WHEN - 45 THEN NULL WHEN - ( 44 ) + CAST( NULL AS SIGNED ) THEN - 96 - - CASE WHEN NOT - MAX( 93 ) BETWEEN ( COUNT( * ) * - 18 + - COALESCE ( - ( ( - 32 ) ), - 33 + 67 / 10, ( NULLIF ( ( - CAST( - 43 AS SIGNED ) ), CASE COUNT( * ) WHEN + ( - 19 ) * 47 THEN 59 END + 54 ) ), 84 + - CASE + 35 WHEN 38 THEN NULL ELSE 26 * - NULLIF ( 41, MAX( CAST( NULL AS SIGNED ) ) ) END ) * 21 ) AND 26 + 13 * + ( - MIN( DISTINCT 28 ) ) THEN NULL ELSE ( COUNT( * ) ) END END * 45 AS col1
----
203
NULL

skipif mysql # not compatible
query II rowsort label-1780
SELECT + 73 + + 44 + 75 + + 11 AS col0, 91 / 78 * + CASE - 77 WHEN - 45 THEN NULL WHEN - ( 44 ) + CAST ( NULL AS INTEGER ) THEN - 96 - - CASE WHEN NOT - MAX ( 93 ) BETWEEN ( COUNT ( * ) * - 18 + - COALESCE ( - ( ( - 32 ) ), - 33 + 67 / 10, ( NULLIF ( ( - CAST ( - 43 AS INTEGER ) ), CASE COUNT ( * ) WHEN + ( - 19 ) * 47 THEN 59 END + 54 ) ), 84 + - CASE + 35 WHEN 38 THEN NULL ELSE 26 * - NULLIF ( 41, MAX ( CAST ( NULL AS INTEGER ) ) ) END ) * 21 ) AND 26 + 13 * + ( - MIN ( DISTINCT 28 ) ) THEN NULL ELSE ( COUNT ( * ) ) END END * 45 AS col1
----
203
NULL

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

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

query I rowsort
SELECT ALL NULLIF ( - 2, - 90 * - 35 * 12 / - + 72 ) AS col2
----
-2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1784
SELECT ALL MIN( DISTINCT 13 ) + + 89 - - + ( 98 ) * - 53 * SUM( + 54 ) + 75 AS col2, - 23 AS col2
----
-280299
-23

skipif mysql # not compatible
query II rowsort label-1784
SELECT ALL MIN ( DISTINCT 13 ) + + 89 - - + ( 98 ) * - 53 * SUM ( + 54 ) + 75 AS col2, - 23 AS col2
----
-280299
-23

query I rowsort
SELECT DISTINCT 87 + 6 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL CASE + 26 WHEN - NULLIF ( + CASE + 63 WHEN + 78 THEN 67 * 62 + - 87 * 21 * - COUNT( * ) END, + 48 ) THEN NULL ELSE - 26 END
----
-26

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL CASE + 26 WHEN - NULLIF ( + CASE + 63 WHEN + 78 THEN 67 * 62 + - 87 * 21 * - COUNT ( * ) END, + 48 ) THEN NULL ELSE - 26 END
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1787
SELECT CAST( + 13 AS SIGNED ), COUNT( * ) AS col1
----
13
1

skipif mysql # not compatible
query II rowsort label-1787
SELECT CAST ( + 13 AS INTEGER ), COUNT ( * ) AS col1
----
13
1

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

query II rowsort
SELECT - 51 + ( 8 ) AS col2, - 40 AS col1
----
-43
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1790
SELECT 10, CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-1790
SELECT 10, CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL 27 * + - ( - + MAX( - 18 ) )
----
-486

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL 27 * + - ( - + MAX ( - 18 ) )
----
-486

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1792
SELECT ( - MIN( DISTINCT - - 62 ) ) DIV - + 67 + - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1792
SELECT ( - MIN ( DISTINCT - - 62 ) ) / - + 67 + - + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 62 * - 95 AS col1
----
-5890

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT 98 DIV + 21
----
4

skipif mysql # not compatible
query I rowsort label-1795
SELECT 98 / + 21
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT SUM( - ( - - 24 ) ) - - 9
----
-15

skipif mysql # not compatible
query I rowsort label-1796
SELECT SUM ( - ( - - 24 ) ) - - 9
----
-15

query II rowsort
SELECT 83, - 44 AS col0
----
83
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT 79 * - CASE - 59 WHEN + + SUM( 13 ) * + 90 + + ( + 49 ) + + ( + 88 ) + - 91 THEN 59 WHEN + - 86 THEN 31 * 1 / - 33 ELSE NULL END * + 39 + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT 79 * - CASE - 59 WHEN + + SUM ( 13 ) * + 90 + + ( + 49 ) + + ( + 88 ) + - 91 THEN 59 WHEN + - 86 THEN 31 * 1 / - 33 ELSE NULL END * + 39 + 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT 88 DIV + + 77
----
1

skipif mysql # not compatible
query I rowsort label-1799
SELECT 88 / + + 77
----
1

query II rowsort
SELECT + 57 AS col0, 71 col1
----
57
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT 33 * + MIN( 99 )
----
3267

skipif mysql # not compatible
query I rowsort label-1801
SELECT 33 * + MIN ( 99 )
----
3267

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT DISTINCT 14 + - 82 DIV NULLIF ( 99, + 48 )
----
14

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT 14 + - 82 / NULLIF ( 99, + 48 )
----
14

query I rowsort
SELECT 7 - 85
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT DISTINCT MAX( DISTINCT 49 ) + - 85
----
-36

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT MAX ( DISTINCT 49 ) + - 85
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1805
SELECT ALL + 41 + COUNT( * ) - - MIN( ALL + 9 ) DIV - + 65
----
42

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL + 41 + COUNT ( * ) - - MIN ( ALL + 9 ) / - + 65
----
42

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

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

query I rowsort
SELECT + 90 + + 80 * + 23 AS col2
----
1930

query II rowsort
SELECT + - 15 AS col2, 81
----
-15
81

query II rowsort
SELECT ALL - + 65 AS col1, + 84 col2
----
-65
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL + + ( + + COUNT( * ) ) + + + 0 * 5 * + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL + + ( + + COUNT ( * ) ) + + + 0 * 5 * + COUNT ( * ) col0
----
1

query I rowsort
SELECT - 17 + - 78
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL - COUNT( * ) + CASE SUM( DISTINCT + + 51 ) WHEN + 4 THEN - 35 WHEN 6 * + 8 + 72 THEN NULL END + + 89 / + MIN( DISTINCT - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL - COUNT ( * ) + CASE SUM ( DISTINCT + + 51 ) WHEN + 4 THEN - 35 WHEN 6 * + 8 + 72 THEN NULL END + + 89 / + MIN ( DISTINCT - 74 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT - + 64 + + 83 * COUNT ( * ) AS col2
----
19

query I rowsort
SELECT DISTINCT + - 93 * - + 53 AS col1
----
4929

query I rowsort
SELECT ALL - 44 - 98
----
-142

query I rowsort
SELECT + 6 * - - 62 AS col2
----
372

query I rowsort
SELECT ALL 3 - 52
----
-49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT 39 AS col0, + COUNT( ALL - 37 )
----
39
1

skipif mysql # not compatible
query II rowsort label-1820
SELECT 39 AS col0, + COUNT ( ALL - 37 )
----
39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT SUM( 39 ) - + ( + 67 ) * + 98 * - + 88
----
577847

skipif mysql # not compatible
query I rowsort label-1821
SELECT SUM ( 39 ) - + ( + 67 ) * + 98 * - + 88
----
577847

query I rowsort
SELECT DISTINCT + 73 * - 64
----
-4672

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT ALL 51 DIV + 38 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL 51 / + 38 AS col1
----
1

query II rowsort
SELECT ALL 34 AS col2, - 23 col0
----
34
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1825
SELECT COUNT( DISTINCT - 69 ) + 65 DIV 76 * - - 64 * + 52
----
1

skipif mysql # not compatible
query I rowsort label-1825
SELECT COUNT ( DISTINCT - 69 ) + 65 / 76 * - - 64 * + 52
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT CAST( NULL AS SIGNED ) * 60 * 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT CAST ( NULL AS INTEGER ) * 60 * 35 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1828
SELECT ALL 55 * NULLIF ( 43, + 90 - - - CAST( 97 AS SIGNED ) * + - 55 + - - 42 ) AS col1
----
2365

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL 55 * NULLIF ( 43, + 90 - - - CAST ( 97 AS INTEGER ) * + - 55 + - - 42 ) AS col1
----
2365

query I rowsort
SELECT DISTINCT 14 + - 39 - 23 + + 57 + + 31 AS col0
----
40

query I rowsort
SELECT DISTINCT 73 + - - 52
----
125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL COUNT( * ) + 26 * + 53 AS col1
----
1379

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL COUNT ( * ) + 26 * + 53 AS col1
----
1379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL 8 + - 80 - - + 7 + - 73 + + - CAST( - COUNT( - - 40 ) AS SIGNED ) + + 11 * - ( MIN( DISTINCT + 97 ) ) + + 82
----
-1122

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL 8 + - 80 - - + 7 + - 73 + + - CAST ( - COUNT ( - - 40 ) AS INTEGER ) + + 11 * - ( MIN ( DISTINCT + 97 ) ) + + 82
----
-1122

query I rowsort
SELECT ALL - + ( + - 7 ) + - 13 + + 83 + - 57 * 86 + - 4 AS col2
----
-4829

query II rowsort
SELECT DISTINCT - - 31 AS col1, - 74 AS col0
----
31
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT - 5 + + CASE + 64 WHEN - SUM( - 14 ) THEN NULL ELSE + 18 END * + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1836
SELECT - 5 + + CASE + 64 WHEN - SUM ( - 14 ) THEN NULL ELSE + 18 END * + COUNT ( * ) AS col0
----
13

query I rowsort
SELECT DISTINCT - 67 + + 68
----
1

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

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

query II rowsort
SELECT + + 16, - 96 col1
----
16
-96

query II rowsort
SELECT + - 60, - 53 col0
----
-60
-53

query I rowsort
SELECT - ( 2 ) * - + COALESCE ( 17, 99 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1842
SELECT ALL 15 DIV + 95 + - COUNT( * ) * + 86 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL 15 / + 95 + - COUNT ( * ) * + 86 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL + SUM( ALL - 19 ) - + 28 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL + SUM ( ALL - 19 ) - + 28 AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1844
SELECT DISTINCT 47 * - 88 * CAST( NULL AS SIGNED ) * + 40 AS col0, - 13
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-1844
SELECT DISTINCT 47 * - 88 * CAST ( NULL AS INTEGER ) * + 40 AS col0, - 13
----
NULL
-13

query I rowsort
SELECT ALL - + 78 - + 74
----
-152

query I rowsort
SELECT DISTINCT - 60 col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1847
SELECT ALL - + 99 * - - CAST( NULL AS SIGNED ) col0, 85 * + 24 + 50 * 86 * + 40 * + SUM( 69 )
----
NULL
11870040

skipif mysql # not compatible
query II rowsort label-1847
SELECT ALL - + 99 * - - CAST ( NULL AS INTEGER ) col0, 85 * + 24 + 50 * 86 * + 40 * + SUM ( 69 )
----
NULL
11870040

query I rowsort
SELECT 19 + - - 83
----
102

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

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

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

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

query I rowsort
SELECT - 62 * - 49 * + 2 AS col2
----
6076

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT - - COUNT( + 62 ) + 92 + - 1
----
92

skipif mysql # not compatible
query I rowsort label-1852
SELECT - - COUNT ( + 62 ) + 92 + - 1
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1853
SELECT - NULLIF ( ( - 55 ), 93 ) + 58 * + 7 DIV - COUNT( * ) AS col0
----
-351

skipif mysql # not compatible
query I rowsort label-1853
SELECT - NULLIF ( ( - 55 ), 93 ) + 58 * + 7 / - COUNT ( * ) AS col0
----
-351

query I rowsort
SELECT ALL - 96 * - - 54
----
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - 16 + - COUNT( * ) * 14
----
-30

skipif mysql # not compatible
query I rowsort label-1855
SELECT - 16 + - COUNT ( * ) * 14
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1856
SELECT DISTINCT - 15 DIV + 13 * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT - 15 / + 13 * + COUNT ( * )
----
-1

query I rowsort
SELECT - 80 * - ( 21 )
----
1680

onlyif mysql # aggregate syntax: 
query II rowsort label-1858
SELECT + 86 + + + COUNT( * ), 7 AS col2
----
87
7

skipif mysql # not compatible
query II rowsort label-1858
SELECT + 86 + + + COUNT ( * ), 7 AS col2
----
87
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT - 97 DIV - - 25 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1859
SELECT - 97 / - - 25 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT DISTINCT - 79 + CASE - 13 WHEN + 14 - - AVG ( ALL CAST( NULL AS SIGNED ) ) * + - SUM( DISTINCT - 39 ) THEN NULL WHEN 57 THEN + COUNT( * ) + - + 84 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT - 79 + CASE - 13 WHEN + 14 - - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + - SUM ( DISTINCT - 39 ) THEN NULL WHEN 57 THEN + COUNT ( * ) + - + 84 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 88, 6 * + 16 - + 77 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT + 38 + - COUNT( * ) + + NULLIF ( + 17, 56 + - ( COUNT( DISTINCT 78 ) ) * 46 )
----
54

skipif mysql # not compatible
query I rowsort label-1862
SELECT + 38 + - COUNT ( * ) + + NULLIF ( + 17, 56 + - ( COUNT ( DISTINCT 78 ) ) * 46 )
----
54

query I rowsort
SELECT ALL - 25 * + 11
----
-275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1864
SELECT + 43 + 29 * COUNT( * ) + - 95 + - + 30 DIV - 15 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1864
SELECT + 43 + 29 * COUNT ( * ) + - 95 + - + 30 / - 15 AS col2
----
-21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT ALL + 61 + + CAST( CAST( - 5 AS SIGNED ) AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL + 61 + + CAST ( CAST ( - 5 AS INTEGER ) AS INTEGER )
----
56

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

query I rowsort
SELECT ALL - 41 * 75 + + - 82 AS col0
----
-3157

query I rowsort
SELECT + NULLIF ( - 39, - NULLIF ( + 32, 9 ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT + COUNT( * ) * - COALESCE ( + 3, + + 94 + + - 76 ) + 42 - 58 * + CASE 6 WHEN + MIN( ALL + 5 ) * - SUM( DISTINCT 29 ) + + ( - COUNT( * ) ) / - - 52 * + 84 THEN - 14 WHEN 21 THEN 74 WHEN 84 THEN NULL END * + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT + COUNT ( * ) * - COALESCE ( + 3, + + 94 + + - 76 ) + 42 - 58 * + CASE 6 WHEN + MIN ( ALL + 5 ) * - SUM ( DISTINCT 29 ) + + ( - COUNT ( * ) ) / - - 52 * + 84 THEN - 14 WHEN 21 THEN 74 WHEN 84 THEN NULL END * + 82 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT - + 15 DIV + + NULLIF ( 64, 64 - - ( 5 ) + 76 + - 36 ) + + + 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1871
SELECT - + 15 / + + NULLIF ( 64, 64 - - ( 5 ) + 76 + - 36 ) + + + 2 AS col0
----
2

query I rowsort
SELECT DISTINCT + 58 * - - 35 + - + 1 + 73 * - - 82 + + 19 AS col2
----
8034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1873
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1, 0 * + 30 + + 65 AS col2
----
NULL
65

skipif mysql # not compatible
query II rowsort label-1873
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1, 0 * + 30 + + 65 AS col2
----
NULL
65

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1875
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 54 / 65 + + CASE - + 48 WHEN + 46 / - 38 THEN + 80 WHEN - 41 - + 74 - - CASE COUNT( * ) WHEN - 94 THEN + 87 END + + 81 THEN + - ( 88 ) * - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 54 / 65 + + CASE - + 48 WHEN + 46 / - 38 THEN + 80 WHEN - 41 - + 74 - - CASE COUNT ( * ) WHEN - 94 THEN + 87 END + + 81 THEN + - ( 88 ) * - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL - 19 * + 0 + + + 89 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT DISTINCT + 65 * 14 + - + 74 * - COUNT( * ) + + 23 - 85 * + 5 - 62 + + + ( - 61 )
----
459

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT + 65 * 14 + - + 74 * - COUNT ( * ) + + 23 - 85 * + 5 - 62 + + + ( - 61 )
----
459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1878
SELECT + 79 * + 48 + CASE - CAST( NULL AS SIGNED ) WHEN + 60 * AVG ( DISTINCT - 65 ) + - 34 THEN CASE - CAST( NULL AS SIGNED ) WHEN + 26 * + - 7 * - 97 + + 26 + + 34 + + + COUNT( * ) - ( + 72 ) * CASE - 61 WHEN - COUNT( * ) + + COUNT( * ) THEN - ( - 2 ) * + AVG ( - 3 ) + - MIN( 77 ) * 24 END THEN 95 / - 61 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT + 79 * + 48 + CASE - CAST ( NULL AS INTEGER ) WHEN + 60 * AVG ( DISTINCT - 65 ) + - 34 THEN CASE - CAST ( NULL AS INTEGER ) WHEN + 26 * + - 7 * - 97 + + 26 + + 34 + + + COUNT ( * ) - ( + 72 ) * CASE - 61 WHEN - COUNT ( * ) + + COUNT ( * ) THEN - ( - 2 ) * + AVG ( - 3 ) + - MIN ( 77 ) * 24 END THEN 95 / - 61 END END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT + + COUNT ( DISTINCT 87 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1880
SELECT ALL + 36 * + 98 * - - 1 * + CASE - - 81 WHEN - - 0 THEN - 80 - 15 - - 71 * ( + + 2 ) WHEN - CAST( 68 AS SIGNED ) THEN NULL ELSE NULL END - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + + 99 + COUNT( * ) + - 52 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL + 36 * + 98 * - - 1 * + CASE - - 81 WHEN - - 0 THEN - 80 - 15 - - 71 * ( + + 2 ) WHEN - CAST ( 68 AS INTEGER ) THEN NULL ELSE NULL END - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + + 99 + COUNT ( * ) + - 52 / COUNT ( * )
----
NULL

query I rowsort
SELECT - + 92 * + + 70 * 5 AS col0
----
-32200

onlyif mysql # aggregate syntax: 
query II rowsort label-1882
SELECT + - 23 * - - 66 AS col0, - COUNT( * ) * + - 27 + - 25 + - 6 * + - 45 * - 48 + + 42
----
-1518
-12916

skipif mysql # not compatible
query II rowsort label-1882
SELECT + - 23 * - - 66 AS col0, - COUNT ( * ) * + - 27 + - 25 + - 6 * + - 45 * - 48 + + 42
----
-1518
-12916

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT + NULLIF ( - NULLIF ( - ( - MAX( ALL 66 ) ), + 45 * - ( + - 7 ) * ( 93 ) + - 75 / + 93 * - 77 ), + - 67 ) * - - MAX( - + 72 ) - - 42 - - 87 * + NULLIF ( + 81, - 88 )
----
11841

skipif mysql # not compatible
query I rowsort label-1884
SELECT + NULLIF ( - NULLIF ( - ( - MAX ( ALL 66 ) ), + 45 * - ( + - 7 ) * ( 93 ) + - 75 / + 93 * - 77 ), + - 67 ) * - - MAX ( - + 72 ) - - 42 - - 87 * + NULLIF ( + 81, - 88 )
----
11841

query II rowsort
SELECT ALL CASE + 3 WHEN + 44 THEN + ( + - 96 ) + 43 ELSE NULL END AS col2, - 58 * - - 26
----
NULL
-1508

query I rowsort
SELECT DISTINCT 39 * - 34
----
-1326

query I rowsort
SELECT ALL + 65 + + 49 + - - 98 * - 69 * + 26 + + + 14
----
-175684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1888
SELECT + CASE COUNT( * ) WHEN 58 THEN + 18 ELSE + MAX( ALL + - CAST( NULL AS SIGNED ) ) END + MIN( DISTINCT + - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT + CASE COUNT ( * ) WHEN 58 THEN + 18 ELSE + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) END + MIN ( DISTINCT + - 89 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT - CAST( - 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-1889
SELECT - CAST ( - 87 AS INTEGER )
----
87

query I rowsort
SELECT + 56 * - 16 * - 94 AS col1
----
84224

query I rowsort
SELECT DISTINCT - CASE 47 WHEN + - 84 THEN + + ( - 19 ) END + - ( ( - ( + 11 ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL ( + 72 ) AS col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1893
SELECT ALL - 66 + 79 DIV - + COUNT( * ) + - COUNT( ALL - - 19 ) * + 43
----
-188

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - 66 + 79 / - + COUNT ( * ) + - COUNT ( ALL - - 19 ) * + 43
----
-188

query I rowsort
SELECT - 26 - 10 + - - 75
----
39

query I rowsort
SELECT ALL NULLIF ( - 28, NULLIF ( + 82, - 52 ) )
----
-28

query I rowsort
SELECT - 96 * - - 32
----
-3072

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1897
SELECT - 11, + COUNT( * ) DIV + 68 col1
----
-11
0

skipif mysql # not compatible
query II rowsort label-1897
SELECT - 11, + COUNT ( * ) / + 68 col1
----
-11
0

query II rowsort
SELECT 50, 84 * - 24 AS col2
----
50
-2016

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

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

query I rowsort
SELECT ALL + 9 * 73 AS col0
----
657

query I rowsort
SELECT - + 3 * + 64 * 72 AS col0
----
-13824

query II rowsort
SELECT ALL + 41, 68 AS col2
----
41
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1903
SELECT DISTINCT + - ( COUNT( * ) ) DIV 43 - - 22 * NULLIF ( + ( - 8 ), - 66 ) DIV + 96 + + 94 - - 39 DIV 46
----
93

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT + - ( COUNT ( * ) ) / 43 - - 22 * NULLIF ( + ( - 8 ), - 66 ) / + 96 + + 94 - - 39 / 46
----
93

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

skipif mysql # not compatible
query I rowsort label-1904
SELECT - CAST ( NULL AS INTEGER ) * 48 - + 96
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT DISTINCT 76 DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT 76 / - 47
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT - - 77 + - CASE 32 WHEN + 99 * - 57 THEN + 17 + 1 + 67 * - ( - - CAST( NULL AS SIGNED ) ) * - NULLIF ( - 73, 50 - + 65 ) + MAX( DISTINCT - + 33 ) WHEN COUNT( ALL 29 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT - - 77 + - CASE 32 WHEN + 99 * - 57 THEN + 17 + 1 + 67 * - ( - - CAST ( NULL AS INTEGER ) ) * - NULLIF ( - 73, 50 - + 65 ) + MAX ( DISTINCT - + 33 ) WHEN COUNT ( ALL 29 ) THEN NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT - 23 * + + 81 + - + 91 AS col2
----
-1954

query I rowsort
SELECT DISTINCT 65 * + 61 * - 87
----
-344955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1911
SELECT + 11 * 36 + - 61 * - ( + CASE - SUM( DISTINCT 53 ) WHEN - 56 / - + 20 + - ( - COUNT( * ) ) + - 86 * 28 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + + COUNT( * ) + - 31 END ) / - 71 * + COALESCE ( + 74, 49 ) - + NULLIF ( + 66, 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT + 11 * 36 + - 61 * - ( + CASE - SUM ( DISTINCT 53 ) WHEN - 56 / - + 20 + - ( - COUNT ( * ) ) + - 86 * 28 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) + - 31 END ) / - 71 * + COALESCE ( + 74, 49 ) - + NULLIF ( + 66, 71 ) AS col2
----
NULL

query I rowsort
SELECT + ( - 75 ) * 50
----
-3750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1913
SELECT ALL CAST( - - 35 AS SIGNED ) * - 29 AS col2, + COUNT( * ) col0
----
-1015
1

skipif mysql # not compatible
query II rowsort label-1913
SELECT ALL CAST ( - - 35 AS INTEGER ) * - 29 AS col2, + COUNT ( * ) col0
----
-1015
1

query I rowsort
SELECT - 53 + 16 AS col0
----
-37

query I rowsort
SELECT ALL + 30 * 33
----
990

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1917
SELECT CASE 79 WHEN + + AVG ( 52 ) + + 46 + 24 + + 34 * - 18 THEN - 78 ELSE + - COUNT( * ) END * - CAST( + 71 AS SIGNED ) col1
----
71

skipif mysql # not compatible
query I rowsort label-1917
SELECT CASE 79 WHEN + + AVG ( 52 ) + + 46 + 24 + + 34 * - 18 THEN - 78 ELSE + - COUNT ( * ) END * - CAST ( + 71 AS INTEGER ) col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT ALL 98 + 32 * - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL 98 + 32 * - COUNT ( * )
----
66

query I rowsort
SELECT DISTINCT 57 + ( - 37 ) + 41
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1920
SELECT 72 + - - COALESCE ( 76, - COUNT( * ) * - 33 * + + 45 ) DIV - 67
----
71

skipif mysql # not compatible
query I rowsort label-1920
SELECT 72 + - - COALESCE ( 76, - COUNT ( * ) * - 33 * + + 45 ) / - 67
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1921
SELECT ALL 44 + - 77 DIV 11 col0
----
37

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL 44 + - 77 / 11 col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1922
SELECT CAST( NULL AS SIGNED ) + - NULLIF ( + 78, - 19 * + 54 ) + COUNT( * ) + 7 * - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT CAST ( NULL AS INTEGER ) + - NULLIF ( + 78, - 19 * + 54 ) + COUNT ( * ) + 7 * - 79 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - 61 * + 7 AS col0
----
-427

onlyif mysql # aggregate syntax: 
query II rowsort label-1925
SELECT ALL ( - - 84 ) + - - 43 + + - 48 * - + MAX( ( - 74 ) ) AS col2, 98 + 33 * 57
----
-3425
1979

skipif mysql # not compatible
query II rowsort label-1925
SELECT ALL ( - - 84 ) + - - 43 + + - 48 * - + MAX ( ( - 74 ) ) AS col2, 98 + 33 * 57
----
-3425
1979

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT DISTINCT COUNT( * ) + + + ( + COUNT( DISTINCT - 68 ) ) + 54 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT COUNT ( * ) + + + ( + COUNT ( DISTINCT - 68 ) ) + 54 AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1927
SELECT 42 + - 80 DIV + 85 * - ( - 89 )
----
42

skipif mysql # not compatible
query I rowsort label-1927
SELECT 42 + - 80 / + 85 * - ( - 89 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1928
SELECT ALL SUM( DISTINCT + 35 ) * - - 1 * + CASE - 10 WHEN - 28 THEN COALESCE ( MIN( + + 93 ), + 28 * + 17 - + CAST( NULL AS SIGNED ) + - - CAST( + 33 AS DECIMAL ) * 74 ) + - 22 WHEN + SUM( DISTINCT 31 ) THEN NULL END + 25 - 48 / 57 * 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL SUM ( DISTINCT + 35 ) * - - 1 * + CASE - 10 WHEN - 28 THEN COALESCE ( MIN ( + + 93 ), + 28 * + 17 - + CAST ( NULL AS INTEGER ) + - - CAST ( + 33 AS REAL ) * 74 ) + - 22 WHEN + SUM ( DISTINCT 31 ) THEN NULL END + 25 - 48 / 57 * 28 AS col1
----
NULL

query II rowsort
SELECT 51 + + + 38 col1, - 89 AS col1
----
89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT ALL MAX( - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL MAX ( - 44 ) AS col0
----
-44

query I rowsort
SELECT ALL + - ( - 32 ) * - 67
----
-2144

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT ALL + 86 DIV - 69
----
-1

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + 86 / - 69
----
-1

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

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

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

query I rowsort
SELECT ALL + 76 * - 85 + + 36 AS col1
----
-6424

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT 94 * COUNT( * ) + - + 57 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1937
SELECT 94 * COUNT ( * ) + - + 57 AS col2
----
37

query II rowsort
SELECT - 41 - - 19, 64 + + + 18 AS col2
----
-22
82

query I rowsort
SELECT ALL + + 12 * + 4 AS col1
----
48

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1941
SELECT + 51 * + + 88 AS col0, - 12 DIV - ( - - ( + 69 ) )
----
4488
0

skipif mysql # not compatible
query II rowsort label-1941
SELECT + 51 * + + 88 AS col0, - 12 / - ( - - ( + 69 ) )
----
4488
0

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

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL + 85 + COUNT ( * ) / 75 AS col2
----
85

query I rowsort
SELECT ( 27 ) * 38
----
1026

query I rowsort
SELECT 72 * + 46 AS col0
----
3312

onlyif mysql # DIV for integer division: 
query I rowsort label-1945
SELECT - 0 * - 70 + + - 20 DIV + 5
----
-4

skipif mysql # not compatible
query I rowsort label-1945
SELECT - 0 * - 70 + + - 20 / + 5
----
-4

query II rowsort
SELECT DISTINCT - 59 AS col1, 3
----
-59
3

query I rowsort
SELECT ALL COALESCE ( - 26, - + 74 ) + - 21
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1948
SELECT ALL - ( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL - ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT ALL + 66 - + 32 * + NULLIF ( - + 49, + NULLIF ( + + CAST( + AVG ( ALL - 64 ) AS SIGNED ), - 4 ) ) - - 53 * - 45
----
-751

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + 66 - + 32 * + NULLIF ( - + 49, + NULLIF ( + + CAST ( + AVG ( ALL - 64 ) AS INTEGER ), - 4 ) ) - - 53 * - 45
----
-751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT ( + - CAST( + COUNT( * ) AS SIGNED ) ) * + 69 + + COUNT( * ) + 70 + + - NULLIF ( - 93, - COUNT( DISTINCT 8 ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1950
SELECT ( + - CAST ( + COUNT ( * ) AS INTEGER ) ) * + 69 + + COUNT ( * ) + 70 + + - NULLIF ( - 93, - COUNT ( DISTINCT 8 ) ) AS col1
----
95

query I rowsort
SELECT - 86 * - - ( + 6 ) + + 54 + 48 + + 34 + 77 AS col2
----
-303

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT - MIN( - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-1953
SELECT - MIN ( - 16 )
----
16

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

skipif mysql # not compatible
query I rowsort label-1954
SELECT - MIN ( DISTINCT 71 )
----
-71

query II rowsort
SELECT DISTINCT 54 AS col1, 30 AS col1
----
54
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1956
SELECT ALL 31 DIV - COUNT( DISTINCT + - 91 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL 31 / - COUNT ( DISTINCT + - 91 ) AS col1
----
-31

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

skipif mysql # not compatible
query I rowsort label-1957
SELECT NULLIF ( COUNT ( * ), 19 ) - 0 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL + 1 * 4 + + 76 * - - COUNT( * ) * - 8
----
-604

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL + 1 * 4 + + 76 * - - COUNT ( * ) * - 8
----
-604

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

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

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

query I rowsort
SELECT ALL - ( - 92 ) * - 88
----
-8096

query I rowsort
SELECT ALL + 57 * - - 84
----
4788

query I rowsort
SELECT + 32 * + 37
----
1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1964
SELECT ALL 2 * COALESCE ( - - 73, + COALESCE ( + 74, + COUNT( * ) DIV - 72 DIV 67 + + 47 + COUNT( * ) * - 82 * + 58 ), COALESCE ( - 2, ( CAST( CASE WHEN + 8 >= - 93 + - 44 * 1 THEN + 74 ELSE 34 END AS SIGNED ) ) + 81, + 16 ) )
----
146

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL 2 * COALESCE ( - - 73, + COALESCE ( + 74, + COUNT ( * ) / - 72 / 67 + + 47 + COUNT ( * ) * - 82 * + 58 ), COALESCE ( - 2, ( CAST ( CASE WHEN + 8 >= - 93 + - 44 * 1 THEN + 74 ELSE 34 END AS INTEGER ) ) + 81, + 16 ) )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT COUNT( * ) + + MAX( 75 ) * + 10 AS col1
----
751

skipif mysql # not compatible
query I rowsort label-1965
SELECT COUNT ( * ) + + MAX ( 75 ) * + 10 AS col1
----
751

onlyif mysql # aggregate syntax: 
query II rowsort label-1966
SELECT CASE 3 WHEN - 67 THEN + + COUNT( * ) END - - - 86 AS col2, - 77
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-1966
SELECT CASE 3 WHEN - 67 THEN + + COUNT ( * ) END - - - 86 AS col2, - 77
----
NULL
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1967
SELECT - 59 - - 0 + - - 32 DIV + 33 * COUNT( ( + 81 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-1967
SELECT - 59 - - 0 + - - 32 / + 33 * COUNT ( ( + 81 ) )
----
-59

query I rowsort
SELECT - 68 * - + CASE + 84 WHEN - 78 * - 67 THEN NULL ELSE - 23 END
----
-1564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1969
SELECT ALL - COUNT( + 1 ) * + + 52 DIV - 83 * + 26 + - - 63 * 78 + - + 42 - MIN( ALL + 46 ) AS col2
----
4826

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - COUNT ( + 1 ) * + + 52 / - 83 * + 26 + - - 63 * 78 + - + 42 - MIN ( ALL + 46 ) AS col2
----
4826

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

query I rowsort
SELECT ALL + + 64 * - 25 AS col1
----
-1600

query I rowsort
SELECT - + 19 * + + 39 * + ( - 19 )
----
14079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1973
SELECT ALL - 29 * + + 88 + - CAST( - 53 AS SIGNED ) + + + MIN( DISTINCT - 71 ) col0
----
-2570

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL - 29 * + + 88 + - CAST ( - 53 AS INTEGER ) + + + MIN ( DISTINCT - 71 ) col0
----
-2570

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT DISTINCT - + 34 * - 81 + - - 25, + COUNT( * ) AS col2
----
2779
1

skipif mysql # not compatible
query II rowsort label-1974
SELECT DISTINCT - + 34 * - 81 + - - 25, + COUNT ( * ) AS col2
----
2779
1

query I rowsort
SELECT + 88 + + + 60
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1976
SELECT + + CASE - + 95 WHEN 7 / + 35 * + CAST( NULL AS SIGNED ) + + COALESCE ( - 32, 36 ) + + MAX( 99 ) + - 56 + + 61 - + 99 - - 38 THEN 66 * - MAX( + + 26 ) + - 42 ELSE NULL END * - 80 + - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT + + CASE - + 95 WHEN 7 / + 35 * + CAST ( NULL AS INTEGER ) + + COALESCE ( - 32, 36 ) + + MAX ( 99 ) + - 56 + + 61 - + 99 - - 38 THEN 66 * - MAX ( + + 26 ) + - 42 ELSE NULL END * - 80 + - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1977
SELECT 90 AS col2, + 88 * + COUNT( * ) AS col0
----
90
88

skipif mysql # not compatible
query II rowsort label-1977
SELECT 90 AS col2, + 88 * + COUNT ( * ) AS col0
----
90
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL - - 72 * - 1 * - NULLIF ( + 41, + 50 * - 57 ) + - CASE - - 91 WHEN 64 THEN + 94 WHEN - 39 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL - - 72 * - 1 * - NULLIF ( + 41, + 50 * - 57 ) + - CASE - - 91 WHEN 64 THEN + 94 WHEN - 39 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT - MIN( ALL 75 ) * - COALESCE ( - + 17, + ( - 11 ) ) AS col0
----
-1275

skipif mysql # not compatible
query I rowsort label-1979
SELECT - MIN ( ALL 75 ) * - COALESCE ( - + 17, + ( - 11 ) ) AS col0
----
-1275

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1981
SELECT ALL - 8 * + - CASE + ( - - 94 ) WHEN - 72 * - 48 / 66 THEN - - 88 * - AVG ( ALL + ( + CAST( + + 47 AS SIGNED ) ) ) + 2 END + ( + + 12 ) + 94 + 65 / + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - 8 * + - CASE + ( - - 94 ) WHEN - 72 * - 48 / 66 THEN - - 88 * - AVG ( ALL + ( + CAST ( + + 47 AS INTEGER ) ) ) + 2 END + ( + + 12 ) + 94 + 65 / + + 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1982
SELECT ALL - 61 * - ( 13 ) * + COUNT( * ) DIV COUNT( * ) AS col2
----
793

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL - 61 * - ( 13 ) * + COUNT ( * ) / COUNT ( * ) AS col2
----
793

query II rowsort
SELECT DISTINCT + 68 AS col1, - 4
----
68
-4

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL - COUNT( * ) * 85 - - - 84
----
-169

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL - COUNT ( * ) * 85 - - - 84
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1987
SELECT - 83 * - 37 + + 51 + + 79 * 18 * + - 12 * + CAST( NULL AS SIGNED ), MAX( + - 88 ) - + + 1 * 26 AS col0
----
NULL
-114

skipif mysql # not compatible
query II rowsort label-1987
SELECT - 83 * - 37 + + 51 + + 79 * 18 * + - 12 * + CAST ( NULL AS INTEGER ), MAX ( + - 88 ) - + + 1 * 26 AS col0
----
NULL
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1988
SELECT - CAST( + MIN( DISTINCT + + 65 ) AS SIGNED ) + + 22 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1988
SELECT - CAST ( + MIN ( DISTINCT + + 65 ) AS INTEGER ) + + 22 AS col1
----
-43

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

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

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

query I rowsort
SELECT - 67 + 58 AS col1
----
-9

query I rowsort
SELECT + 73 + - ( - 80 )
----
153

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1994
SELECT + COALESCE ( CAST( NULL AS SIGNED ), 92 ) + + 57 - 15
----
134

skipif mysql # not compatible
query I rowsort label-1994
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), 92 ) + + 57 - 15
----
134

query I rowsort
SELECT - 61 * + - 4 * 89 AS col1
----
21716

query II rowsort
SELECT ALL 50 AS col1, + 48
----
50
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT - 63 * - CAST( - 75 AS SIGNED ) * - - 69 + + 41 + 62 * 59 AS col0
----
-322326

skipif mysql # not compatible
query I rowsort label-1997
SELECT - 63 * - CAST ( - 75 AS INTEGER ) * - - 69 + + 41 + 62 * 59 AS col0
----
-322326

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL 25 * + - MIN( ALL - - 46 ) AS col1
----
-1150

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL 25 * + - MIN ( ALL - - 46 ) AS col1
----
-1150

query I rowsort
SELECT + 31 * - + 95 AS col0
----
-2945

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) col0
----
1

query II rowsort
SELECT DISTINCT 10, 55 AS col1
----
10
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT - COUNT( * ) * - - CASE + 22 WHEN 16 THEN NULL WHEN - + MIN( DISTINCT + 72 ) + - 43 + - + MAX( + 16 ) * + 17 + + + COUNT( ALL + ( + 96 ) ) THEN ( 55 ) / - 67 * + - 50 + - 65 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT - COUNT ( * ) * - - CASE + 22 WHEN 16 THEN NULL WHEN - + MIN ( DISTINCT + 72 ) + - 43 + - + MAX ( + 16 ) * + 17 + + + COUNT ( ALL + ( + 96 ) ) THEN ( 55 ) / - 67 * + - 50 + - 65 END AS col0
----
NULL

query I rowsort
SELECT + - 92 * - 16
----
1472

onlyif mysql # aggregate syntax: 
query II rowsort label-2004
SELECT ALL - 18 AS col2, + 4 + + + 74 + - - 35 + COUNT( * ) * + 9
----
-18
122

skipif mysql # not compatible
query II rowsort label-2004
SELECT ALL - 18 AS col2, + 4 + + + 74 + - - 35 + COUNT ( * ) * + 9
----
-18
122

query II rowsort
SELECT 12, - COALESCE ( + 93, 50 * - 22 ) - COALESCE ( - 54, + 24 ) AS col2
----
12
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2006
SELECT + 30 + - CASE + COALESCE ( SUM( + 16 ), + + ( - - 80 ) ) WHEN 76 / - 62 THEN NULL WHEN - ( 98 ) / - 95 + + 67 THEN + 55 ELSE NULL END, 71 AS col0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-2006
SELECT + 30 + - CASE + COALESCE ( SUM ( + 16 ), + + ( - - 80 ) ) WHEN 76 / - 62 THEN NULL WHEN - ( 98 ) / - 95 + + 67 THEN + 55 ELSE NULL END, 71 AS col0
----
NULL
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT + 74 * - 69 + COUNT( * ) col2
----
-5105

skipif mysql # not compatible
query I rowsort label-2007
SELECT + 74 * - 69 + COUNT ( * ) col2
----
-5105

onlyif mysql # aggregate syntax: 
query II rowsort label-2008
SELECT + COUNT( * ) + 64 AS col0, 42
----
65
42

skipif mysql # not compatible
query II rowsort label-2008
SELECT + COUNT ( * ) + 64 AS col0, 42
----
65
42

query I rowsort
SELECT ALL 27 + + - 40
----
-13

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

query I rowsort
SELECT + + 23 + + NULLIF ( - CASE - 23 WHEN 18 THEN - 55 * + 6 + - 22 * - + 85 END, + 49 + - 10 + + + 8 ) + 82 AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( 25 ) + 16 AS col1
----
41

query I rowsort
SELECT ALL - 54 * - ( - 37 )
----
-1998

query I rowsort
SELECT + 19 + - ( - - 43 ) col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL 89 + - 74 + COUNT( * ) * 19
----
34

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL 89 + - 74 + COUNT ( * ) * 19
----
34

query I rowsort
SELECT + 76 - - 25
----
101

query I rowsort
SELECT + 46 * - - 32
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL 16 * - + COUNT( + 58 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL 16 * - + COUNT ( + 58 ) AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT DISTINCT 70 DIV - 23 + - + 22 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT 70 / - 23 + - + 22 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-2020
SELECT ALL + 5, COUNT( * ) * + 3 AS col2
----
5
3

skipif mysql # not compatible
query II rowsort label-2020
SELECT ALL + 5, COUNT ( * ) * + 3 AS col2
----
5
3

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

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

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

skipif mysql # not compatible
query I rowsort label-2022
SELECT CAST ( + - SUM ( + 5 ) AS INTEGER ) AS col2
----
-5

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

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

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

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL 10 / + 35 - - 31
----
31

query I rowsort
SELECT ALL - 98 * + + 57 * 0 - + 55
----
-55

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL - COALESCE ( - + COUNT( * ), COUNT( DISTINCT + ( + 47 ) ), - 36 - - 33 - - 56 ) * + + 75 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL - COALESCE ( - + COUNT ( * ), COUNT ( DISTINCT + ( + 47 ) ), - 36 - - 33 - - 56 ) * + + 75 AS col1
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT COALESCE ( + - 56, + COUNT( * ), - 10 * - 17 + + COUNT( * ) + + + ( COUNT( ALL - - 5 ) ) )
----
-56

skipif mysql # not compatible
query I rowsort label-2032
SELECT COALESCE ( + - 56, + COUNT ( * ), - 10 * - 17 + + COUNT ( * ) + + + ( COUNT ( ALL - - 5 ) ) )
----
-56

query II rowsort
SELECT ALL + 3 * - 25 AS col2, + 54 AS col0
----
-75
54

query I rowsort
SELECT NULLIF ( + + 76, + 79 )
----
76

query I rowsort
SELECT ALL ( 10 )
----
10

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

query I rowsort
SELECT - 78 + + 59 col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2038
SELECT ALL + ( + 3 ) DIV - MIN( ALL + 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL + ( + 3 ) / - MIN ( ALL + 2 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT 92 + - COUNT( * ) + + 88 * + 32 col2
----
2907

skipif mysql # not compatible
query I rowsort label-2039
SELECT 92 + - COUNT ( * ) + + 88 * + 32 col2
----
2907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2040
SELECT - NULLIF ( + 77, + + COALESCE ( - + 12, 43 * 69 + + NULLIF ( 73, + CASE + + COUNT( * ) WHEN 66 * + - 1 THEN NULL WHEN - - 71 - + ( - ( + CAST( NULL AS SIGNED ) ) ) + + 55 THEN - CASE - 85 WHEN + MAX( ALL + 40 ) / ( 91 ) + 96 / 29 THEN NULL WHEN 23 THEN 18 * 59 END END ) ) + - COALESCE ( 37 + - 95, + CAST( 88 AS SIGNED ), 86 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-2040
SELECT - NULLIF ( + 77, + + COALESCE ( - + 12, 43 * 69 + + NULLIF ( 73, + CASE + + COUNT ( * ) WHEN 66 * + - 1 THEN NULL WHEN - - 71 - + ( - ( + CAST ( NULL AS INTEGER ) ) ) + + 55 THEN - CASE - 85 WHEN + MAX ( ALL + 40 ) / ( 91 ) + 96 / 29 THEN NULL WHEN 23 THEN 18 * 59 END END ) ) + - COALESCE ( 37 + - 95, + CAST ( 88 AS INTEGER ), 86 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2041
SELECT ALL + CAST( NULL AS SIGNED ) + + + CASE - - MIN( DISTINCT + 84 ) WHEN - ( - ( + 73 ) ) + + + 18 THEN - + COUNT( * ) * - 20 * CAST( - 94 AS SIGNED ) - - - 98 + - CAST( + 69 AS DECIMAL ) + + NULLIF ( + + 47, + 64 ) * - 20 END - + 23 + 86 * - 13 + 46 * - COUNT( * ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL + CAST ( NULL AS INTEGER ) + + + CASE - - MIN ( DISTINCT + 84 ) WHEN - ( - ( + 73 ) ) + + + 18 THEN - + COUNT ( * ) * - 20 * CAST ( - 94 AS INTEGER ) - - - 98 + - CAST ( + 69 AS REAL ) + + NULLIF ( + + 47, + 64 ) * - 20 END - + 23 + 86 * - 13 + 46 * - COUNT ( * ) * 16
----
NULL

query I rowsort
SELECT DISTINCT - 91 * 2 * 77
----
-14014

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL - + COUNT( * ) + - 95 + + 78 * - 52
----
-4152

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL - + COUNT ( * ) + - 95 + + 78 * - 52
----
-4152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT CAST( + - 86 AS SIGNED ) - - 64 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2044
SELECT CAST ( + - 86 AS INTEGER ) - - 64 AS col1
----
-22

query II rowsort
SELECT DISTINCT - 47 + 82 AS col0, 34 * 79 AS col2
----
35
2686

query I rowsort
SELECT ALL + + ( - + 88 ) + - 22 AS col0
----
-110

query I rowsort
SELECT 61 + 48 AS col1
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2048
SELECT ALL - 14 + - + 63, - CAST( NULL AS SIGNED ) AS col2
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-2048
SELECT ALL - 14 + - + 63, - CAST ( NULL AS INTEGER ) AS col2
----
-77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2049
SELECT ALL - COUNT( - - 70 ) * - 45 + 20 * + - ( - COUNT( * ) ) * + COUNT( * ) + - 27, ( 95 ) AS col1
----
38
95

skipif mysql # not compatible
query II rowsort label-2049
SELECT ALL - COUNT ( - - 70 ) * - 45 + 20 * + - ( - COUNT ( * ) ) * + COUNT ( * ) + - 27, ( 95 ) AS col1
----
38
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT ALL - CASE + + MIN( - - 9 ) WHEN - + 71 + + 6 THEN NULL WHEN - + 21 THEN + + 13 * - 99 ELSE + 5 + - ( + - COUNT( * ) ) END col1
----
-6

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL - CASE + + MIN ( - - 9 ) WHEN - + 71 + + 6 THEN NULL WHEN - + 21 THEN + + 13 * - 99 ELSE + 5 + - ( + - COUNT ( * ) ) END col1
----
-6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2052
SELECT ALL COUNT( * ) - 56 + - COUNT( * ) DIV + COALESCE ( + - 15, 20 )
----
-55

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL COUNT ( * ) - 56 + - COUNT ( * ) / + COALESCE ( + - 15, 20 )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-2053
SELECT ALL + 73 - 95 AS col2, 95 * 91 * + ( - - COUNT( * ) )
----
-22
8645

skipif mysql # not compatible
query II rowsort label-2053
SELECT ALL + 73 - 95 AS col2, 95 * 91 * + ( - - COUNT ( * ) )
----
-22
8645

query II rowsort
SELECT ALL - 46 AS col0, 31 * - 24
----
-46
-744

query I rowsort
SELECT ALL 16 * + 52 AS col0
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT COALESCE ( - 89, + - COUNT( * ) ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT COALESCE ( - 89, + - COUNT ( * ) ) * - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2057
SELECT ALL CASE + 69 WHEN 53 THEN MIN( + 62 ) END * + CAST( - 32 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL CASE + 69 WHEN 53 THEN MIN ( + 62 ) END * + CAST ( - 32 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT COUNT( DISTINCT 29 ) + - - NULLIF ( + - MIN( ALL + 60 ), - + ( - 48 ) * + COUNT( * ) + - + MIN( ALL - + 26 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-2058
SELECT COUNT ( DISTINCT 29 ) + - - NULLIF ( + - MIN ( ALL + 60 ), - + ( - 48 ) * + COUNT ( * ) + - + MIN ( ALL - + 26 ) )
----
-59

query II rowsort
SELECT + 72, + 44 AS col1
----
72
44

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

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

query I rowsort
SELECT ALL 62 * 78 AS col0
----
4836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2062
SELECT 7 * + COUNT( * ) + - 77 DIV 21
----
4

skipif mysql # not compatible
query I rowsort label-2062
SELECT 7 * + COUNT ( * ) + - 77 / 21
----
4

query I rowsort
SELECT ALL 80 * 45 col2
----
3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2064
SELECT - 74 * NULLIF ( - + COUNT( * ), + 43 + + 83 * + CAST( NULL AS SIGNED ) * MAX( - - 15 ) ) + 34
----
108

skipif mysql # not compatible
query I rowsort label-2064
SELECT - 74 * NULLIF ( - + COUNT ( * ), + 43 + + 83 * + CAST ( NULL AS INTEGER ) * MAX ( - - 15 ) ) + 34
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL - MIN( DISTINCT - 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL - MIN ( DISTINCT - 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2066
SELECT COUNT( * ) + 3 + - CASE + + 28 WHEN + 72 + 84 THEN NULL WHEN + 36 THEN + 35 ELSE + + COUNT( * ) - - 63 * 29 END AS col1, 10 DIV 10 DIV - 69
----
-1824
0

skipif mysql # not compatible
query II rowsort label-2066
SELECT COUNT ( * ) + 3 + - CASE + + 28 WHEN + 72 + 84 THEN NULL WHEN + 36 THEN + 35 ELSE + + COUNT ( * ) - - 63 * 29 END AS col1, 10 / 10 / - 69
----
-1824
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2067
SELECT CAST( NULL AS SIGNED ) + - + CASE + 9 WHEN + 70 THEN + 7 WHEN COUNT( * ) * + 47 THEN + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT CAST ( NULL AS INTEGER ) + - + CASE + 9 WHEN + 70 THEN + 7 WHEN COUNT ( * ) * + 47 THEN + 22 END
----
NULL

query I rowsort
SELECT NULLIF ( - 22, + - 16 * + 56 ) * 1 + - 48
----
-70

query I rowsort
SELECT ALL - 72 * - 31
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT ALL 72 + - COUNT( - 81 )
----
71

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL 72 + - COUNT ( - 81 )
----
71

query I rowsort
SELECT COALESCE ( + 94, + ( 98 ), 2 + + 60 - - + 8 ) * + 41
----
3854

query I rowsort
SELECT ALL + 72 + - 31 + - 13 AS col0
----
28

query I rowsort
SELECT ALL - - ( - 69 ) + + 30 - 56
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT ALL - - 70 + - CAST( - 32 AS SIGNED ) + + 30
----
132

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL - - 70 + - CAST ( - 32 AS INTEGER ) + + 30
----
132

query I rowsort
SELECT ALL 48 + + 45
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2076
SELECT DISTINCT 53 * + COALESCE ( CAST( NULL AS SIGNED ), 93 - + ( + + 58 ) )
----
1855

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT 53 * + COALESCE ( CAST ( NULL AS INTEGER ), 93 - + ( + + 58 ) )
----
1855

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT - 92 DIV 47 + + - 62 * 44
----
-2729

skipif mysql # not compatible
query I rowsort label-2077
SELECT - 92 / 47 + + - 62 * 44
----
-2729

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL - 68 + - COUNT( * ) + + - 17 + + 29 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - 68 + - COUNT ( * ) + + - 17 + + 29 AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT 63 * CAST( CAST( + 33 AS SIGNED ) AS SIGNED ) * 42 + 68
----
87386

skipif mysql # not compatible
query I rowsort label-2079
SELECT 63 * CAST ( CAST ( + 33 AS INTEGER ) AS INTEGER ) * 42 + 68
----
87386

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT + 58 DIV + + COALESCE ( - + 19, + 37 ) + 16
----
13

skipif mysql # not compatible
query I rowsort label-2080
SELECT + 58 / + + COALESCE ( - + 19, + 37 ) + 16
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2081
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) DIV - + ( - + 24 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) / - + ( - + 24 ) AS col2
----
0

query II rowsort
SELECT + 3, + 33 AS col0
----
3
33

query I rowsort
SELECT ALL - 2 - - - 75
----
-77

query I rowsort
SELECT 86 * + 83 * - 31 * + 80 + + 72
----
-17702168

query I rowsort
SELECT DISTINCT + + COALESCE ( 50, - 4 ) - 94 + 8 * + - 71 AS col1
----
-612

query I rowsort
SELECT 63 + - + 53 AS col2
----
10

query II rowsort
SELECT DISTINCT + 37 AS col2, + 28 AS col1
----
37
28

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2089
SELECT DISTINCT - ( - + 27 ) AS col0, 22 DIV MIN( 54 )
----
27
0

skipif mysql # not compatible
query II rowsort label-2089
SELECT DISTINCT - ( - + 27 ) AS col0, 22 / MIN ( 54 )
----
27
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2090
SELECT COUNT( * ) DIV 51 AS col0, + 53
----
0
53

skipif mysql # not compatible
query II rowsort label-2090
SELECT COUNT ( * ) / 51 AS col0, + 53
----
0
53

query I rowsort
SELECT ALL - ( + 31 ) col2
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2092
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + + 33 DIV + 45, + 54 + 73 - + - COUNT( * ) AS col1
----
-1
128

skipif mysql # not compatible
query II rowsort label-2092
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + + 33 / + 45, + 54 + 73 - + - COUNT ( * ) AS col1
----
-1
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT ALL 82 * + 40 * + + 82 + - + CAST( NULL AS SIGNED ) * + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL 82 * + 40 * + + 82 + - + CAST ( NULL AS INTEGER ) * + 61 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL + 7 * - CASE ( + 9 ) WHEN - - 70 * - 57 THEN + 60 END + 42 * - COUNT( * ) / 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + 7 * - CASE ( + 9 ) WHEN - - 70 * - 57 THEN + 60 END + 42 * - COUNT ( * ) / 17
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT + 55 DIV - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2097
SELECT + 55 / - 98 AS col1
----
0

query I rowsort
SELECT ALL 19 * + 18 + + + 26 AS col0
----
368

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

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

query I rowsort
SELECT + NULLIF ( - 38, + 74 ) * - - 8
----
-304

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2102
SELECT ALL + NULLIF ( + - 6, + ( - 87 ) * + 69 * - - SUM( 19 ) * + 89 - 52 ) AS col2, 84 + - - 23
----
-6
107

skipif mysql # not compatible
query II rowsort label-2102
SELECT ALL + NULLIF ( + - 6, + ( - 87 ) * + 69 * - - SUM ( 19 ) * + 89 - 52 ) AS col2, 84 + - - 23
----
-6
107

query I rowsort
SELECT ALL - 66 - + NULLIF ( + 15, - ( 92 ) ) AS col2
----
-81

query I rowsort
SELECT + + 92 + + 33 + - 10 AS col2
----
115

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2106
SELECT DISTINCT + ( 76 ) * - 11 + + 23 * - - 36 * + ( - 89 ) * - CASE + 71 WHEN + + ( 78 ) THEN - COUNT( ALL + CAST( - 39 AS DECIMAL ) ) * + 65 * - 70 * ( + + MAX( DISTINCT 96 ) ) * - 28 WHEN - 82 THEN - - CASE - CAST( - 82 AS DECIMAL ) WHEN 35 + 10 THEN 53 + - 10 ELSE 80 END END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT + ( 76 ) * - 11 + + 23 * - - 36 * + ( - 89 ) * - CASE + 71 WHEN + + ( 78 ) THEN - COUNT ( ALL + CAST ( - 39 AS REAL ) ) * + 65 * - 70 * ( + + MAX ( DISTINCT 96 ) ) * - 28 WHEN - 82 THEN - - CASE - CAST ( - 82 AS REAL ) WHEN 35 + 10 THEN 53 + - 10 ELSE 80 END END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2107
SELECT ALL + 14 * ( + + 10 ) DIV - 77 + MIN( + ( 93 ) ) - 82 DIV + 36 - + - 50 * + 93 AS col2
----
4740

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL + 14 * ( + + 10 ) / - 77 + MIN ( + ( 93 ) ) - 82 / + 36 - + - 50 * + 93 AS col2
----
4740

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT + 3 * + COUNT( * ) * 86
----
258

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT + 3 * + COUNT ( * ) * 86
----
258

query I rowsort
SELECT DISTINCT 67 * 8 * - 54
----
-28944

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT + 51 + - 5 + + COUNT( * ) * 72
----
118

skipif mysql # not compatible
query I rowsort label-2110
SELECT + 51 + - 5 + + COUNT ( * ) * 72
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2111
SELECT + 69 * 20 * + 44 * - CASE - + 32 WHEN - 92 - CAST( NULL AS SIGNED ) THEN NULL WHEN - + 27 + + 74 * - 26 * - 37 + + - MIN( DISTINCT 98 ) THEN NULL WHEN + 24 THEN - - 36 ELSE NULL END * 72 * SUM( ALL 40 ) + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT + 69 * 20 * + 44 * - CASE - + 32 WHEN - 92 - CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 27 + + 74 * - 26 * - 37 + + - MIN ( DISTINCT 98 ) THEN NULL WHEN + 24 THEN - - 36 ELSE NULL END * 72 * SUM ( ALL 40 ) + 3 AS col2
----
NULL

query I rowsort
SELECT - 74 * - 84 AS col1
----
6216

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT DISTINCT - ( - 6 ) DIV + - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT - ( - 6 ) / + - 49 AS col0
----
0

query I rowsort
SELECT - 45 * - - 5 col1
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT - MIN( 1 ) * + + 50 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-2115
SELECT - MIN ( 1 ) * + + 50 AS col2
----
-50

query I rowsort
SELECT DISTINCT CASE WHEN NOT + 73 IS NOT NULL THEN 35 + + 15 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT ALL - COUNT( * ) + - 42 + + 90 * - 59 + + - 23 * - + 69 * 50 * + - COUNT( * ) + - COALESCE ( 98, + - 71 + - - CAST( 55 AS SIGNED ), + + COUNT( * ) ) / - CASE 53 WHEN - 94 + - CAST( 36 AS SIGNED ) THEN NULL WHEN + 76 THEN - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL - COUNT ( * ) + - 42 + + 90 * - 59 + + - 23 * - + 69 * 50 * + - COUNT ( * ) + - COALESCE ( 98, + - 71 + - - CAST ( 55 AS INTEGER ), + + COUNT ( * ) ) / - CASE 53 WHEN - 94 + - CAST ( 36 AS INTEGER ) THEN NULL WHEN + 76 THEN - 79 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2118
SELECT DISTINCT CAST( NULL AS SIGNED ) / - COUNT( + 17 ) + + CAST( - 32 AS SIGNED ) col2, 47 AS col0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-2118
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - COUNT ( + 17 ) + + CAST ( - 32 AS INTEGER ) col2, 47 AS col0
----
NULL
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT DISTINCT 3 DIV - + 30 + + + 54 col0
----
54

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT 3 / - + 30 + + + 54 col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT + MAX( ALL 45 ) * - 19
----
-855

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + MAX ( ALL 45 ) * - 19
----
-855

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT - MIN( + + 44 ) + + 42 col1
----
-2

skipif mysql # not compatible
query I rowsort label-2122
SELECT - MIN ( + + 44 ) + + 42 col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2123
SELECT + 28 DIV - - 40 - 88 DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-2123
SELECT + 28 / - - 40 - 88 / - + 91
----
0

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

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT + 72 * COUNT ( * ) AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2125
SELECT ( + CASE 21 WHEN + - ( + CAST( NULL AS SIGNED ) ) THEN NULL WHEN COUNT( * ) THEN COUNT( * ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT ( + CASE 21 WHEN + - ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN COUNT ( * ) THEN COUNT ( * ) END ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ALL 84 * - COUNT( * ) + + 29 col2
----
-55

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL 84 * - COUNT ( * ) + + 29 col2
----
-55

query I rowsort
SELECT ALL 86 * + + 7
----
602

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2129
SELECT + - 54, + CAST( - + 33 AS SIGNED ) AS col1
----
-54
-33

skipif mysql # not compatible
query II rowsort label-2129
SELECT + - 54, + CAST ( - + 33 AS INTEGER ) AS col1
----
-54
-33

query I rowsort
SELECT + - 98 col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT DISTINCT - 80 * + - 91 - - ( - COUNT( * ) ) AS col1
----
7279

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT - 80 * + - 91 - - ( - COUNT ( * ) ) AS col1
----
7279

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ALL CASE + + 63 WHEN - - 3 THEN ( + ( CASE - 44 WHEN - - COUNT( * ) + 35 * 23 THEN + 41 END ) ) / + 61 + - + ( + + ( + 17 ) ) * + SUM( 4 ) END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL CASE + + 63 WHEN - - 3 THEN ( + ( CASE - 44 WHEN - - COUNT ( * ) + 35 * 23 THEN + 41 END ) ) / + 61 + - + ( + + ( + 17 ) ) * + SUM ( 4 ) END * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT + CAST( - 24 AS SIGNED ) + + - 98
----
-122

skipif mysql # not compatible
query I rowsort label-2133
SELECT + CAST ( - 24 AS INTEGER ) + + - 98
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2134
SELECT ALL 86 * - 41 - - ( - + COUNT( * ) ) - + + 54 - + CASE + 98 WHEN - 2 THEN 56 WHEN - - MIN( ALL + 81 ) THEN - 82 + + ( + 8 ) + - + 53 ELSE 90 DIV + 37 END + MAX( 91 ) AS col0
----
-3492

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL 86 * - 41 - - ( - + COUNT ( * ) ) - + + 54 - + CASE + 98 WHEN - 2 THEN 56 WHEN - - MIN ( ALL + 81 ) THEN - 82 + + ( + 8 ) + - + 53 ELSE 90 / + 37 END + MAX ( 91 ) AS col0
----
-3492

onlyif mysql # aggregate syntax: 
query II rowsort label-2135
SELECT + 15 AS col2, 98 + - COALESCE ( 47, - 98 + - + 47 ) + + COUNT( ALL + 76 ) col2
----
15
52

skipif mysql # not compatible
query II rowsort label-2135
SELECT + 15 AS col2, 98 + - COALESCE ( 47, - 98 + - + 47 ) + + COUNT ( ALL + 76 ) col2
----
15
52

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

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

query I rowsort
SELECT + 10 + - - 37
----
47

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT ALL 5, - 99 * - COUNT( ALL - - 49 ) * + 96 - SUM( + 89 ) * - - 82 - - 14 AS col0
----
5
2220

skipif mysql # not compatible
query II rowsort label-2139
SELECT ALL 5, - 99 * - COUNT ( ALL - - 49 ) * + 96 - SUM ( + 89 ) * - - 82 - - 14 AS col0
----
5
2220

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

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

query I rowsort
SELECT + 57 * - + 77 col2
----
-4389

onlyif mysql # aggregate syntax: 
query II rowsort label-2142
SELECT ALL 39 * - 57 * - COALESCE ( - 10, + 14, - CASE + NULLIF ( - 89, + 70 ) WHEN - COALESCE ( + 94, + 32 * - 94 + + 32 + + 27 / + + ( + MIN( ALL + 33 ) ) / - 67, 17 ) THEN + 78 * + 74 + + - 98 WHEN - 78 THEN NULL ELSE NULL END ) AS col2, 3 * - 21 AS col0
----
-22230
-63

skipif mysql # not compatible
query II rowsort label-2142
SELECT ALL 39 * - 57 * - COALESCE ( - 10, + 14, - CASE + NULLIF ( - 89, + 70 ) WHEN - COALESCE ( + 94, + 32 * - 94 + + 32 + + 27 / + + ( + MIN ( ALL + 33 ) ) / - 67, 17 ) THEN + 78 * + 74 + + - 98 WHEN - 78 THEN NULL ELSE NULL END ) AS col2, 3 * - 21 AS col0
----
-22230
-63

query I rowsort
SELECT - 51 * 25 AS col0
----
-1275

onlyif mysql # DIV for integer division: 
query I rowsort label-2144
SELECT DISTINCT 68 DIV 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT 68 / 93 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2146
SELECT 88, 62 + + - ( SUM( - + 78 ) ) + + ( 55 ) * 31 + + 74 * + 83 * + - CAST( NULL AS SIGNED ) AS col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-2146
SELECT 88, 62 + + - ( SUM ( - + 78 ) ) + + ( 55 ) * 31 + + 74 * + 83 * + - CAST ( NULL AS INTEGER ) AS col1
----
88
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2147
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN - MAX( DISTINCT - 49 ) THEN - 10 * - 40 END + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN - MAX ( DISTINCT - 49 ) THEN - 10 * - 40 END + 10
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT - 31 + + + COUNT( * ) + COUNT( * ) * + 10
----
-20

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - 31 + + + COUNT ( * ) + COUNT ( * ) * + 10
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT - CAST( - 68 AS SIGNED ) col0
----
68

skipif mysql # not compatible
query I rowsort label-2150
SELECT - CAST ( - 68 AS INTEGER ) col0
----
68

query I rowsort
SELECT ( 40 ) * + 54 + - 57 + - 8 + + COALESCE ( - - 22, CASE - 46 WHEN + 69 THEN - + 6 * + 88 WHEN - - 53 THEN NULL END ) AS col2
----
2117

query II rowsort
SELECT DISTINCT - 40 + CASE - - 1 WHEN - 43 + - 8 / + 4 THEN - 18 END * + - 45 / 31 AS col1, 82 + + - 78 AS col0
----
NULL
4

query II rowsort
SELECT 88 AS col1, + 76 AS col2
----
88
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT + 61 DIV + - 78 + + 74
----
74

skipif mysql # not compatible
query I rowsort label-2154
SELECT + 61 / + - 78 + + 74
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT ALL - 13 + - - 50 * COALESCE ( - 30, + CAST( + 39 AS SIGNED ), 88 ) col2
----
-1513

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL - 13 + - - 50 * COALESCE ( - 30, + CAST ( + 39 AS INTEGER ), 88 ) col2
----
-1513

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT 57 DIV 61 * - ( + 16 )
----
0

skipif mysql # not compatible
query I rowsort label-2156
SELECT 57 / 61 * - ( + 16 )
----
0

query II rowsort
SELECT DISTINCT - 93 AS col2, 85 + + - 96
----
-93
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2158
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-2158
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 98
----
NULL
98

query I rowsort
SELECT 67 * 41 AS col0
----
2747

query I rowsort
SELECT ALL + 78 - + ( + 89 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT 25 * 8 - + + ( + COUNT( * ) ) AS col0
----
199

skipif mysql # not compatible
query I rowsort label-2161
SELECT 25 * 8 - + + ( + COUNT ( * ) ) AS col0
----
199

query II rowsort
SELECT + - 82 AS col0, 20 + + 96
----
-82
116

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

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

query II rowsort
SELECT ALL - + 37, 16 AS col1
----
-37
16

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

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

query II rowsort
SELECT - 88 AS col2, 3 + 11 - - 14
----
-88
28

query II rowsort
SELECT ALL - + 64 AS col0, 56 + - ( - 95 ) + 97 * - - 74 * + 36 * - + 58 AS col1
----
-64
-14987513

onlyif mysql # DIV for integer division: 
query II rowsort label-2168
SELECT 92 - - 7, + 24 DIV - 77 - + + 36 col1
----
99
-36

skipif mysql # not compatible
query II rowsort label-2168
SELECT 92 - - 7, + 24 / - 77 - + + 36 col1
----
99
-36

query II rowsort
SELECT ALL - - 4 AS col2, 53 AS col2
----
4
53

query I rowsort
SELECT ALL - + ( + - 80 ) col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2171
SELECT ALL 87 / - - COUNT( * ) - + SUM( + 92 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL 87 / - - COUNT ( * ) - + SUM ( + 92 ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 30 * + - 23 * - - 72 - - 11 AS col2, + 46 + 71
----
-49669
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT + 97 - - 35 * + COUNT( * ) * 29
----
1112

skipif mysql # not compatible
query I rowsort label-2173
SELECT + 97 - - 35 * + COUNT ( * ) * 29
----
1112

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

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

query I rowsort
SELECT NULLIF ( + 10, 99 ) + + 51
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2176
SELECT - 29, COUNT( * ) + + 12 AS col0
----
-29
13

skipif mysql # not compatible
query II rowsort label-2176
SELECT - 29, COUNT ( * ) + + 12 AS col0
----
-29
13

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

skipif mysql # not compatible
query I rowsort label-2177
SELECT + COUNT ( * ) / + + 84
----
0

query I rowsort
SELECT DISTINCT 89 + - 54 * - 57
----
3167

onlyif mysql # aggregate syntax: 
query II rowsort label-2179
SELECT ALL 92 + 27 AS col1, + COUNT( * ) * - COUNT( * )
----
119
-1

skipif mysql # not compatible
query II rowsort label-2179
SELECT ALL 92 + 27 AS col1, + COUNT ( * ) * - COUNT ( * )
----
119
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2180
SELECT COUNT( * ) + + MAX( ALL - 14 ) DIV - - 71
----
1

skipif mysql # not compatible
query I rowsort label-2180
SELECT COUNT ( * ) + + MAX ( ALL - 14 ) / - - 71
----
1

query I rowsort
SELECT 35 * + 42
----
1470

query I rowsort
SELECT 70 * 87
----
6090

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

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

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL COUNT ( * ) / - 8 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT ALL - SUM( ALL 83 ) AS col0, + 7 AS col0
----
-83
7

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL - SUM ( ALL 83 ) AS col0, + 7 AS col0
----
-83
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT 14 DIV 59 - + 89
----
-89

skipif mysql # not compatible
query I rowsort label-2186
SELECT 14 / 59 - + 89
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2187
SELECT + 11 * - + 44 DIV + 1 + - + 31
----
-515

skipif mysql # not compatible
query I rowsort label-2187
SELECT + 11 * - + 44 / + 1 + - + 31
----
-515

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2188
SELECT CAST( + CASE + 98 WHEN + 76 - + 17 THEN NULL WHEN - 43 * - + 79 THEN + 2 END AS SIGNED ) / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT CAST ( + CASE + 98 WHEN + 76 - + 17 THEN NULL WHEN - 43 * - + 79 THEN + 2 END AS INTEGER ) / 38
----
NULL

query I rowsort
SELECT 7 + + 79
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-2190
SELECT - COUNT( * ) + - - 33 AS col0, 82 AS col1
----
32
82

skipif mysql # not compatible
query II rowsort label-2190
SELECT - COUNT ( * ) + - - 33 AS col0, 82 AS col1
----
32
82

query I rowsort
SELECT 83 * - - 61
----
5063

query I rowsort
SELECT - + NULLIF ( - - 33, - 91 / + 76 ) * + + 23 + - 0 + - 49 AS col0
----
-808

query I rowsort
SELECT DISTINCT - + 77 * 31 + CASE 71 WHEN - 78 THEN - - 8 ELSE - - 13 END AS col0
----
-2374

onlyif mysql # aggregate syntax: 
query II rowsort label-2194
SELECT + 12 * 36, COUNT( * ) + 93 - 29 AS col2
----
432
65

skipif mysql # not compatible
query II rowsort label-2194
SELECT + 12 * 36, COUNT ( * ) + 93 - 29 AS col2
----
432
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2195
SELECT ( 61 ) * + COUNT( * ) * 8 / - + 13 + + CAST( NULL AS SIGNED ) + + 30 - 51 * - 14 * + + AVG ( ALL + 68 ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT ( 61 ) * + COUNT ( * ) * 8 / - + 13 + + CAST ( NULL AS INTEGER ) + + 30 - 51 * - 14 * + + AVG ( ALL + 68 ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT ALL + 33 + + - 21 * 49 - COUNT( * ) + + 36 + - 0
----
-961

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL + 33 + + - 21 * 49 - COUNT ( * ) + + 36 + - 0
----
-961

query I rowsort
SELECT + ( + COALESCE ( + 60, + 23 ) )
----
60

query I rowsort
SELECT + 95 + - 25
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL + 31 * - COUNT( * ) + - MAX( DISTINCT + + 18 ) * - 76 col2
----
1337

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + 31 * - COUNT ( * ) + - MAX ( DISTINCT + + 18 ) * - 76 col2
----
1337

query I rowsort
SELECT ALL - - 72 + - 59 + + 52 * - 65 AS col0
----
-3367

query I rowsort
SELECT ALL 69 + + 20
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL + ( + COUNT( * ) ) + - 69
----
-68

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL + ( + COUNT ( * ) ) + - 69
----
-68

query II rowsort
SELECT 40 AS col2, - 22
----
40
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT - 80 + + 13 + - MIN( ALL 61 ) + + COUNT( * ) * + SUM( ALL ( 33 ) ) + + - 76 col1
----
-171

skipif mysql # not compatible
query I rowsort label-2204
SELECT - 80 + + 13 + - MIN ( ALL 61 ) + + COUNT ( * ) * + SUM ( ALL ( 33 ) ) + + - 76 col1
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-2205
SELECT - 38 DIV + + 63
----
0

skipif mysql # not compatible
query I rowsort label-2205
SELECT - 38 / + + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT DISTINCT NULLIF ( + ( + 68 ), AVG ( + 60 ) * + COUNT( * ) )
----
68

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT NULLIF ( + ( + 68 ), AVG ( + 60 ) * + COUNT ( * ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT DISTINCT + 13 - 40 - + COUNT( DISTINCT + 46 ) * + - ( + - 79 ) * - 92 AS col0
----
7241

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT + 13 - 40 - + COUNT ( DISTINCT + 46 ) * + - ( + - 79 ) * - 92 AS col0
----
7241

query I rowsort
SELECT ALL 44 * - 50 AS col0
----
-2200

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT - COALESCE ( - - 98, + + 78 ) DIV + 71
----
-1

skipif mysql # not compatible
query I rowsort label-2209
SELECT - COALESCE ( - - 98, + + 78 ) / + 71
----
-1

query I rowsort
SELECT ALL + 23 * - 54
----
-1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT DISTINCT - CAST( - 78 AS SIGNED ) * - 40 * 6 AS col1
----
-18720

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT - CAST ( - 78 AS INTEGER ) * - 40 * 6 AS col1
----
-18720

query I rowsort
SELECT ALL + 96 - + - 55 AS col1
----
151

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2214
SELECT + NULLIF ( 75, 71 * + 4 + - 79 + + 68 ), - NULLIF ( - NULLIF ( 22, - 11 ), - AVG ( - + 90 ) ) * CAST( NULL AS SIGNED ) AS col2
----
75
NULL

skipif mysql # not compatible
query II rowsort label-2214
SELECT + NULLIF ( 75, 71 * + 4 + - 79 + + 68 ), - NULLIF ( - NULLIF ( 22, - 11 ), - AVG ( - + 90 ) ) * CAST ( NULL AS INTEGER ) AS col2
----
75
NULL

query II rowsort
SELECT - 50 AS col2, - 45 + - 80 * - 13
----
-50
995

onlyif mysql # DIV for integer division: 
query I rowsort label-2216
SELECT + 75 DIV + 39 + + 54 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-2216
SELECT + 75 / + 39 + + 54 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL 33 * + COUNT( * ) + - + 52 + + 65
----
46

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL 33 * + COUNT ( * ) + - + 52 + + 65
----
46

query I rowsort
SELECT DISTINCT + 31 * + + 62 AS col1
----
1922

onlyif mysql # DIV for integer division: 
query I rowsort label-2219
SELECT DISTINCT + 20 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + 20 / 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2220
SELECT ALL + CAST( NULL AS SIGNED ) * - + 45 * + + 92 * + 28 + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 45 * + + 92 * + 28 + - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( - + 99, 51 ) * 49 - 38
----
-4889

query II rowsort
SELECT NULLIF ( + 44, 52 ) AS col0, + 43 AS col0
----
44
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT - MAX( ALL - 53 ) * - - 53
----
2809

skipif mysql # not compatible
query I rowsort label-2223
SELECT - MAX ( ALL - 53 ) * - - 53
----
2809

query I rowsort
SELECT + 9 * - - 50 AS col2
----
450

query I rowsort
SELECT + 32 - - + 77 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL + + ( - + ( + + 0 ) ) * + 75 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + + ( - + ( + + 0 ) ) * + 75 * + COUNT ( * )
----
0

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

query I rowsort
SELECT ALL + 8 * - 47 + + 38 AS col1
----
-338

onlyif mysql # aggregate syntax: 
query III rowsort label-2229
SELECT SUM( + 89 ) AS col2, 96 - - MAX( ALL - - 87 ) + 75 + - 73, + - ( - 93 ) AS col2
----
89
185
93

skipif mysql # not compatible
query III rowsort label-2229
SELECT SUM ( + 89 ) AS col2, 96 - - MAX ( ALL - - 87 ) + 75 + - 73, + - ( - 93 ) AS col2
----
89
185
93

query I rowsort
SELECT - 45 - + 0 + + 9 col2
----
-36

query I rowsort
SELECT DISTINCT NULLIF ( - 98, 61 ) AS col2
----
-98

query I rowsort
SELECT ALL + 27 - + 44 + 77 AS col1
----
60

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

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

query II rowsort
SELECT DISTINCT ( + 87 ) AS col0, - 94 * - + 69 AS col1
----
87
6486

query I rowsort
SELECT DISTINCT NULLIF ( - 66, 12 + + 98 - NULLIF ( - - 64, + + 86 ) * - 16 / + ( + 21 ) ) AS col1
----
-66

query I rowsort
SELECT - ( + + 82 ) * - 15 + - 64 col1
----
1166

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ALL NULLIF ( - COUNT( * ), - + 28 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL NULLIF ( - COUNT ( * ), - + 28 ) AS col1
----
-1

query I rowsort
SELECT - 90 + - 44
----
-134

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2240
SELECT ALL + 92 DIV CAST( 54 AS SIGNED ) * - + CAST( 93 AS SIGNED ) - + + 11
----
-104

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + 92 / CAST ( 54 AS INTEGER ) * - + CAST ( 93 AS INTEGER ) - + + 11
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2241
SELECT - ( - CAST( 98 AS SIGNED ) ) + ( - 75 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2241
SELECT - ( - CAST ( 98 AS INTEGER ) ) + ( - 75 ) AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL + 19 * - CAST( - - 46 AS SIGNED ) AS col0
----
-874

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + 19 * - CAST ( - - 46 AS INTEGER ) AS col0
----
-874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2243
SELECT - 19 DIV 91 * 12 * COUNT( * ) DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT - 19 / 91 * 12 * COUNT ( * ) / - COUNT ( * )
----
0

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

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

query I rowsort
SELECT ALL - 2 + + - 20 AS col0
----
-22

query I rowsort
SELECT - - 96 + + 80 + + 70 AS col1
----
246

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT ALL - - 56 DIV - 32 + - 28
----
-29

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL - - 56 / - 32 + - 28
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2249
SELECT + - 47 * - - 2 + + ( + - ( - + 57 ) ) + NULLIF ( + 49, - + 77 * + 93 + 18 ) + + 74 + 11 AS col2, MIN( ALL - - 42 ) * - 77 * + - NULLIF ( + 60, + MIN( ( + 31 ) ) ) + ( 60 ) * - 62
----
97
190320

skipif mysql # not compatible
query II rowsort label-2249
SELECT + - 47 * - - 2 + + ( + - ( - + 57 ) ) + NULLIF ( + 49, - + 77 * + 93 + 18 ) + + 74 + 11 AS col2, MIN ( ALL - - 42 ) * - 77 * + - NULLIF ( + 60, + MIN ( ( + 31 ) ) ) + ( 60 ) * - 62
----
97
190320

query I rowsort
SELECT - 67 + + ( - + 99 ) AS col0
----
-166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2251
SELECT - - 62 DIV 30 - - MAX( - 84 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-2251
SELECT - - 62 / 30 - - MAX ( - 84 ) AS col2
----
-82

query I rowsort
SELECT + 50 - - + 85
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT 95 DIV - - 48 + + 52
----
53

skipif mysql # not compatible
query I rowsort label-2253
SELECT 95 / - - 48 + + 52
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ALL + ( + NULLIF ( ( COUNT( * ) ), 19 ) ) * + SUM( + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL + ( + NULLIF ( ( COUNT ( * ) ), 19 ) ) * + SUM ( + 73 )
----
73

query I rowsort
SELECT + + 20 + ( ( 12 ) ) AS col0
----
32

query I rowsort
SELECT ALL + + 74 col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2257
SELECT COUNT( * ) * - AVG ( - + NULLIF ( + + 25, 21 ) ) + + CASE + + 58 WHEN - - 38 + + 85 * 64 THEN NULL WHEN + + MIN( ALL + 52 ) + ( - + 42 ) THEN - + 73 WHEN - ( 60 ) THEN 49 * 88 / - 41 / + ( + 53 ) ELSE NULL END AS col1, 53 + - 39 + - + MAX( ALL 99 ) * - + 45
----
NULL
4469

skipif mysql # not compatible
query II rowsort label-2257
SELECT COUNT ( * ) * - AVG ( - + NULLIF ( + + 25, 21 ) ) + + CASE + + 58 WHEN - - 38 + + 85 * 64 THEN NULL WHEN + + MIN ( ALL + 52 ) + ( - + 42 ) THEN - + 73 WHEN - ( 60 ) THEN 49 * 88 / - 41 / + ( + 53 ) ELSE NULL END AS col1, 53 + - 39 + - + MAX ( ALL 99 ) * - + 45
----
NULL
4469

query I rowsort
SELECT DISTINCT - - NULLIF ( + 62, + 0 + - + 52 )
----
62

query I rowsort
SELECT DISTINCT 92 - - - 20 AS col2
----
72

query I rowsort
SELECT 80 + 37 AS col0
----
117

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

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

query I rowsort
SELECT ALL - 68 * - 60 AS col1
----
4080

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT ALL 91 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL 91 / + 47
----
1

query I rowsort
SELECT DISTINCT + 5 * + 45
----
225

query I rowsort
SELECT 86 * + + 86 AS col0
----
7396

onlyif mysql # aggregate syntax: 
query II rowsort label-2266
SELECT - 38 col0, ( 30 ) * + 94 * MAX( 97 ) AS col2
----
-38
273540

skipif mysql # not compatible
query II rowsort label-2266
SELECT - 38 col0, ( 30 ) * + 94 * MAX ( 97 ) AS col2
----
-38
273540

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT COUNT( * ) * 74 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT COUNT ( * ) * 74 AS col2
----
74

query I rowsort
SELECT 11 + + 26 AS col0
----
37

query II rowsort
SELECT - 4 AS col2, + 61 col0
----
-4
61

query I rowsort
SELECT 12 + + 53
----
65

query I rowsort
SELECT DISTINCT 54 + 82
----
136

query I rowsort
SELECT DISTINCT + - 0 + + 55 + 12 * + 86
----
1087

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL - MAX( 64 ) + + - ( + 59 ) AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL - MAX ( 64 ) + + - ( + 59 ) AS col0
----
-123

query I rowsort
SELECT 92 * + 72 * + + 23 * - 32 AS col0
----
-4875264

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2275
SELECT + 20 + 13 + - - 16 AS col2, - CAST( NULL AS SIGNED ) * + 36 AS col1
----
49
NULL

skipif mysql # not compatible
query II rowsort label-2275
SELECT + 20 + 13 + - - 16 AS col2, - CAST ( NULL AS INTEGER ) * + 36 AS col1
----
49
NULL

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

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

query I rowsort
SELECT ALL + - 8 + 76
----
68

query I rowsort
SELECT + 87 * - 44 * 78 + - 69 AS col0
----
-298653

onlyif mysql # aggregate syntax: 
query II rowsort label-2279
SELECT DISTINCT - - 95 * - + COUNT( * ) * - - COUNT( * ), + 70 - + 34 AS col1
----
-95
36

skipif mysql # not compatible
query II rowsort label-2279
SELECT DISTINCT - - 95 * - + COUNT ( * ) * - - COUNT ( * ), + 70 - + 34 AS col1
----
-95
36

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

skipif mysql # not compatible
query I rowsort label-2280
SELECT - 14 / 81 * + - COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT ALL + + CAST( + - 38 AS SIGNED ) * + COALESCE ( + ( + SUM( + + 90 ) ), - + 39, + 22 )
----
-3420

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL + + CAST ( + - 38 AS INTEGER ) * + COALESCE ( + ( + SUM ( + + 90 ) ), - + 39, + 22 )
----
-3420

query I rowsort
SELECT ALL 67 - 20
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2283
SELECT + CAST( NULL AS SIGNED ) * 68 + - 31 - + 81 + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT + CAST ( NULL AS INTEGER ) * 68 + - 31 - + 81 + - 83
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2284
SELECT COUNT ( * ) / - + ( - 50 ) + + - 60 AS col1
----
-60

query I rowsort
SELECT 41 * + - 47
----
-1927

onlyif mysql # aggregate syntax: 
query III rowsort label-2286
SELECT 37 AS col1, 28 AS col1, SUM( DISTINCT + 85 )
----
37
28
85

skipif mysql # not compatible
query III rowsort label-2286
SELECT 37 AS col1, 28 AS col1, SUM ( DISTINCT + 85 )
----
37
28
85

query I rowsort
SELECT 54 * + + 52
----
2808

query II rowsort
SELECT ALL - 90 AS col1, 69 AS col2
----
-90
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2289
SELECT DISTINCT - CASE + 64 WHEN COALESCE ( - + CAST( + 86 AS SIGNED ), - 96, - COUNT( 29 ) / + COUNT( * ) * - 26 ) THEN NULL WHEN - CASE + + 33 WHEN - - 94 * + 75 / 75 / - + 39 THEN NULL ELSE + + CASE CAST( NULL AS SIGNED ) WHEN - 88 THEN 84 WHEN + - 24 THEN + COUNT( ALL + - 23 ) END END / - - 42 THEN + 73 WHEN - CAST( NULL AS SIGNED ) / + 33 THEN + + 92 + AVG ( + 33 ) + - AVG ( - 60 ) ELSE CAST( NULL AS DECIMAL ) + 69 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT - CASE + 64 WHEN COALESCE ( - + CAST ( + 86 AS INTEGER ), - 96, - COUNT ( 29 ) / + COUNT ( * ) * - 26 ) THEN NULL WHEN - CASE + + 33 WHEN - - 94 * + 75 / 75 / - + 39 THEN NULL ELSE + + CASE CAST ( NULL AS INTEGER ) WHEN - 88 THEN 84 WHEN + - 24 THEN + COUNT ( ALL + - 23 ) END END / - - 42 THEN + 73 WHEN - CAST ( NULL AS INTEGER ) / + 33 THEN + + 92 + AVG ( + 33 ) + - AVG ( - 60 ) ELSE CAST ( NULL AS REAL ) + 69 END col0
----
NULL

query II rowsort
SELECT ALL - 35 AS col2, ( - 28 ) * + - 11 + - - 47 + 22 * - 88 AS col0
----
-35
-1581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2291
SELECT + 4 * + COALESCE ( COUNT( * ), + CAST( - 45 AS SIGNED ) ) * + + 99 - 86 * 88
----
-7172

skipif mysql # not compatible
query I rowsort label-2291
SELECT + 4 * + COALESCE ( COUNT ( * ), + CAST ( - 45 AS INTEGER ) ) * + + 99 - 86 * 88
----
-7172

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

query I rowsort
SELECT DISTINCT - 9 * - 5
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-2294
SELECT 37, + 56 DIV - 87 DIV 63 * - - 71 * - 31 * + + 35 AS col1
----
37
0

skipif mysql # not compatible
query II rowsort label-2294
SELECT 37, + 56 / - 87 / 63 * - - 71 * - 31 * + + 35 AS col1
----
37
0

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

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL 85 * + ( COUNT ( * ) ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT MIN( - 29 ) + - 29 - - 64 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2296
SELECT MIN ( - 29 ) + - 29 - - 64 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2297
SELECT COUNT( * ) - + - COUNT( - 40 ) - + - COUNT( * ) * + 96 DIV + + 53 + 56 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-2297
SELECT COUNT ( * ) - + - COUNT ( - 40 ) - + - COUNT ( * ) * + 96 / + + 53 + 56 AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT 76 DIV 27 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2298
SELECT 76 / 27 AS col1
----
2

query I rowsort
SELECT - 65 * - 57 * - 53 - 72
----
-196437

query II rowsort
SELECT 67 AS col1, 10 + + - 40 AS col1
----
67
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT ALL COALESCE ( - + 12, - 64 + + + 58 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL COALESCE ( - + 12, - 64 + + + 58 ) + + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2303
SELECT COUNT( * ) DIV - 47 * - - 77 * + + 11
----
0

skipif mysql # not compatible
query I rowsort label-2303
SELECT COUNT ( * ) / - 47 * - - 77 * + + 11
----
0

query I rowsort
SELECT 4 + - 11 + 59 AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT DISTINCT 36 DIV 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT 36 / 79 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT DISTINCT - 69 + - CAST( NULL AS SIGNED ) + 22 * + 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT - 69 + - CAST ( NULL AS INTEGER ) + 22 * + 63 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2307
SELECT + COALESCE ( + + COUNT( * ), 78 * - 9 * - 62, + - CAST( NULL AS SIGNED ) * + - 86 * 36 + + 97 - + COUNT( * ) * + - 40 - - 67 + + 81 ) + - - NULLIF ( - 63, SUM( 66 ) ) AS col2, COUNT( * ) col1
----
-62
1

skipif mysql # not compatible
query II rowsort label-2307
SELECT + COALESCE ( + + COUNT ( * ), 78 * - 9 * - 62, + - CAST ( NULL AS INTEGER ) * + - 86 * 36 + + 97 - + COUNT ( * ) * + - 40 - - 67 + + 81 ) + - - NULLIF ( - 63, SUM ( 66 ) ) AS col2, COUNT ( * ) col1
----
-62
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2308
SELECT - 91 AS col0, 83 / + 12 * + - NULLIF ( - CAST( NULL AS DECIMAL ), + COUNT( * ) + - + COUNT( * ) + + 84 + + 86 * + 65 * - + 43 )
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-2308
SELECT - 91 AS col0, 83 / + 12 * + - NULLIF ( - CAST ( NULL AS REAL ), + COUNT ( * ) + - + COUNT ( * ) + + 84 + + 86 * + 65 * - + 43 )
----
-91
NULL

query I rowsort
SELECT 7 + - + 98 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - CASE 45 WHEN + 99 + COUNT( * ) * - 24 THEN ( - 46 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT - CASE 45 WHEN + 99 + COUNT ( * ) * - 24 THEN ( - 46 ) END
----
NULL

query II rowsort
SELECT ALL 47 AS col2, - 38 AS col1
----
47
-38

query II rowsort
SELECT - 85 - - - COALESCE ( 18, + + 60 ) * - 98 + 68, 77 AS col2
----
1747
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2313
SELECT 76 + + 87 DIV 17
----
81

skipif mysql # not compatible
query I rowsort label-2313
SELECT 76 + + 87 / 17
----
81

query I rowsort
SELECT DISTINCT - + 38 col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT - 9 * + 84 * - - MIN( ALL 82 ) + 42 * - 74 + + 91 AS col0
----
-65009

skipif mysql # not compatible
query I rowsort label-2315
SELECT - 9 * + 84 * - - MIN ( ALL 82 ) + 42 * - 74 + + 91 AS col0
----
-65009

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2317
SELECT + - 24 DIV 43 + + CAST( - 51 AS SIGNED ) DIV + + COUNT( * ) - + 21
----
-72

skipif mysql # not compatible
query I rowsort label-2317
SELECT + - 24 / 43 + + CAST ( - 51 AS INTEGER ) / + + COUNT ( * ) - + 21
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT - + 54 * 5 * + + COUNT( * ) - - 82 AS col0
----
-188

skipif mysql # not compatible
query I rowsort label-2318
SELECT - + 54 * 5 * + + COUNT ( * ) - - 82 AS col0
----
-188

query I rowsort
SELECT - + 37 - 30 + + - 49 AS col2
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2320
SELECT ALL + 4, - 79 / - ( + COUNT( ALL - CASE - 46 WHEN + - 66 + + 12 + 70 THEN - 45 ELSE + 28 END ) ) * 74 + CAST( NULL AS SIGNED ) - - 5 AS col2
----
4
NULL

skipif mysql # not compatible
query II rowsort label-2320
SELECT ALL + 4, - 79 / - ( + COUNT ( ALL - CASE - 46 WHEN + - 66 + + 12 + 70 THEN - 45 ELSE + 28 END ) ) * 74 + CAST ( NULL AS INTEGER ) - - 5 AS col2
----
4
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2321
SELECT CASE 46 WHEN - 7 THEN - MAX( 20 ) * + 89 END * - + COALESCE ( + - AVG ( ALL - - ( + + 61 ) ), + - AVG ( DISTINCT 32 ) ) * + 79 + - + 20 + + 49 / - CAST( 64 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT CASE 46 WHEN - 7 THEN - MAX ( 20 ) * + 89 END * - + COALESCE ( + - AVG ( ALL - - ( + + 61 ) ), + - AVG ( DISTINCT 32 ) ) * + 79 + - + 20 + + 49 / - CAST ( 64 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2322
SELECT - COALESCE ( + - 13, - COUNT( * ) DIV + MAX( - 40 ) + - 70 * 46 * - + 85 + - - 51 ) * + 83 AS col0
----
1079

skipif mysql # not compatible
query I rowsort label-2322
SELECT - COALESCE ( + - 13, - COUNT ( * ) / + MAX ( - 40 ) + - 70 * 46 * - + 85 + - - 51 ) * + 83 AS col0
----
1079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2323
SELECT + 25 DIV - COUNT( * ) + + ( + COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-2323
SELECT + 25 / - COUNT ( * ) + + ( + COUNT ( * ) )
----
-24

query I rowsort
SELECT - 86 + + 98
----
12

query I rowsort
SELECT - 38 * - 3 * - + 55 AS col2
----
-6270

onlyif mysql # aggregate syntax: 
query II rowsort label-2326
SELECT DISTINCT + ( - COUNT( * ) ), MIN( 52 ) AS col2
----
-1
52

skipif mysql # not compatible
query II rowsort label-2326
SELECT DISTINCT + ( - COUNT ( * ) ), MIN ( 52 ) AS col2
----
-1
52

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

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

query I rowsort
SELECT + 32 + + 29 + - - 86 * 8 AS col0
----
749

query II rowsort
SELECT ALL 31 + 48 + 80, 49 * - 90 * 36 - + 88 AS col2
----
159
-158848

query I rowsort
SELECT ALL CASE 19 WHEN 1 * - ( 54 ) THEN NULL ELSE 56 END + - - 68 + - 57
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2331
SELECT - COUNT( DISTINCT + 48 ) AS col0, - 80
----
-1
-80

skipif mysql # not compatible
query II rowsort label-2331
SELECT - COUNT ( DISTINCT + 48 ) AS col0, - 80
----
-1
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL CASE - + 77 WHEN + COUNT( * ) THEN + ( + 10 ) WHEN - 17 + 82 * 27 - + COUNT( + - 81 ) + + COUNT( * ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL CASE - + 77 WHEN + COUNT ( * ) THEN + ( + 10 ) WHEN - 17 + 82 * 27 - + COUNT ( + - 81 ) + + COUNT ( * ) THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT + 72 * + COUNT( * ) * + + 98 AS col0
----
7056

skipif mysql # not compatible
query I rowsort label-2333
SELECT + 72 * + COUNT ( * ) * + + 98 AS col0
----
7056

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL MAX( ALL - 47 ) * + + 43 * - - 4
----
-8084

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL MAX ( ALL - 47 ) * + + 43 * - - 4
----
-8084

query I rowsort
SELECT + 89 + - 56 * - - 84 * 42 col0
----
-197479

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL - 70 + 52 * + - COUNT( * ) + + 96
----
-26

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL - 70 + 52 * + - COUNT ( * ) + + 96
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT - - 65 - - SUM( DISTINCT - 56 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2337
SELECT - - 65 - - SUM ( DISTINCT - 56 ) AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT + + CAST( - CASE 77 WHEN ( - - 4 ) * + + 32 + - 2 + + 18 THEN - 56 + 12 * 65 / + 15 ELSE NULL END AS SIGNED ) * - 64 + - - 93 * + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2338
SELECT + + CAST ( - CASE 77 WHEN ( - - 4 ) * + + 32 + - 2 + + 18 THEN - 56 + 12 * 65 / + 15 ELSE NULL END AS INTEGER ) * - 64 + - - 93 * + 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2339
SELECT COALESCE ( 33, + COUNT( * ) * AVG ( + 88 ) DIV + 71 - + 34, + 23 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2339
SELECT COALESCE ( 33, + COUNT ( * ) * AVG ( + 88 ) / + 71 - + 34, + 23 ) AS col2
----
33

query I rowsort
SELECT DISTINCT + CASE - - 15 WHEN - ( + 50 ) THEN 95 WHEN AVG ( + 36 ) - - 79 THEN NULL END
----
NULL

query I rowsort
SELECT + - ( + 66 ) + + 40 + + - 33 * 4 - + 5 * + 27 AS col2
----
-293

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT + + COUNT( * ) + + 30 - - - 97 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-2342
SELECT + + COUNT ( * ) + + 30 - - - 97 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT + CASE - 9 WHEN + ( + 43 ) THEN NULL WHEN NULLIF ( COUNT( DISTINCT + + 57 ), - ( - + COUNT( * ) ) ) THEN NULL WHEN - - NULLIF ( + ( + 83 ), 29 ) THEN 35 END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2343
SELECT + CASE - 9 WHEN + ( + 43 ) THEN NULL WHEN NULLIF ( COUNT ( DISTINCT + + 57 ), - ( - + COUNT ( * ) ) ) THEN NULL WHEN - - NULLIF ( + ( + 83 ), 29 ) THEN 35 END - + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 38 * - 15, + 9 + - 88 AS col1
----
570
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT ALL - 27 DIV + + COALESCE ( 24, 28 + + 14 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL - 27 / + + COALESCE ( 24, 28 + + 14 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2346
SELECT - + 8 * - 86 AS col2, - 14 * - NULLIF ( - - 98, + ( - COUNT( * ) ) * + 53 )
----
688
1372

skipif mysql # not compatible
query II rowsort label-2346
SELECT - + 8 * - 86 AS col2, - 14 * - NULLIF ( - - 98, + ( - COUNT ( * ) ) * + 53 )
----
688
1372

query I rowsort
SELECT + 76 * + + 44
----
3344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2348
SELECT 92 / + 18 + - 2 + + CASE - COUNT( * ) WHEN + 99 THEN NULL WHEN - 25 THEN - 72 ELSE 23 * + + SUM( + 22 ) - + + COUNT( * ) * + MAX( ALL + + 15 ) / + CASE - 2 WHEN + - 1 THEN + - 87 + + - 34 / + SUM( ALL + 4 ) * + CAST( NULL AS SIGNED ) END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT 92 / + 18 + - 2 + + CASE - COUNT ( * ) WHEN + 99 THEN NULL WHEN - 25 THEN - 72 ELSE 23 * + + SUM ( + 22 ) - + + COUNT ( * ) * + MAX ( ALL + + 15 ) / + CASE - 2 WHEN + - 1 THEN + - 87 + + - 34 / + SUM ( ALL + 4 ) * + CAST ( NULL AS INTEGER ) END END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - CASE - 21 WHEN + - 96 THEN NULL ELSE + 88 END * 90
----
-7920

query I rowsort
SELECT DISTINCT + - COALESCE ( - 64, - - 8 + - 53 ) AS col2
----
64

query I rowsort
SELECT + 74 - + 54 AS col0
----
20

query I rowsort
SELECT ( - 36 ) AS col2
----
-36

query I rowsort
SELECT - ( 36 ) * - - 5
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT + 96 * + 28 DIV - + 7 - - - 66
----
-450

skipif mysql # not compatible
query I rowsort label-2354
SELECT + 96 * + 28 / - + 7 - - - 66
----
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT ALL + 64 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + 64 / + 52
----
1

query I rowsort
SELECT DISTINCT + COALESCE ( 43, + + 86 ) * 36 AS col2
----
1548

query I rowsort
SELECT - 8 * - 33 AS col2
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2358
SELECT DISTINCT 89 * + + COUNT( DISTINCT 25 ) * + 4 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2358
SELECT DISTINCT 89 * + + COUNT ( DISTINCT 25 ) * + 4 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL + COUNT( * ) * 65 + - ( 56 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL + COUNT ( * ) * 65 + - ( 56 ) AS col1
----
9

query I rowsort
SELECT DISTINCT + 47 * 40 AS col2
----
1880

query II rowsort
SELECT + 92, - 14 * - + 86 AS col2
----
92
1204

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT - 49 + - 1 + + - 55 + - 48 DIV + + 59
----
-105

skipif mysql # not compatible
query I rowsort label-2362
SELECT - 49 + - 1 + + - 55 + - 48 / + + 59
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2363
SELECT ALL MIN( 31 ) * + + CAST( 92 AS SIGNED ) * - ( 69 ) * - 18 + + + 31 - + 78 + + - COUNT( * ) * - 73 col1, + 44 AS col0
----
3542210
44

skipif mysql # not compatible
query II rowsort label-2363
SELECT ALL MIN ( 31 ) * + + CAST ( 92 AS INTEGER ) * - ( 69 ) * - 18 + + + 31 - + 78 + + - COUNT ( * ) * - 73 col1, + 44 AS col0
----
3542210
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT NULLIF ( + CAST( + AVG ( ALL - 75 ) AS SIGNED ), 14 )
----
-75

skipif mysql # not compatible
query I rowsort label-2364
SELECT NULLIF ( + CAST ( + AVG ( ALL - 75 ) AS INTEGER ), 14 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT COUNT( - 94 ) * - 55 * + 85 + + 17 AS col2
----
-4658

skipif mysql # not compatible
query I rowsort label-2365
SELECT COUNT ( - 94 ) * - 55 * + 85 + + 17 AS col2
----
-4658

query I rowsort
SELECT NULLIF ( + + 34, 58 - - NULLIF ( - 20, - 73 ) ) AS col0
----
34

query II rowsort
SELECT - 3, - 26 col0
----
-3
-26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2369
SELECT + 91 - COUNT( ALL 49 ) + + ( 19 ) DIV + - 73 AS col1, - COALESCE ( + 14, + COALESCE ( + MAX( ALL - ( + 63 ) ), - 45 * COUNT( * ) + + 39 - 53 - - + COUNT( * ) * - 24, + MIN( DISTINCT - 33 ) * 68 ) ) AS col1
----
90
-14

skipif mysql # not compatible
query II rowsort label-2369
SELECT + 91 - COUNT ( ALL 49 ) + + ( 19 ) / + - 73 AS col1, - COALESCE ( + 14, + COALESCE ( + MAX ( ALL - ( + 63 ) ), - 45 * COUNT ( * ) + + 39 - 53 - - + COUNT ( * ) * - 24, + MIN ( DISTINCT - 33 ) * 68 ) ) AS col1
----
90
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT - MAX( + 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2370
SELECT - MAX ( + 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2371
SELECT ALL 47 * + MIN( DISTINCT + - 1 ) + + + 8 * + 57 - + 93 DIV + - 65 AS col1
----
410

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL 47 * + MIN ( DISTINCT + - 1 ) + + + 8 * + 57 - + 93 / + - 65 AS col1
----
410

query II rowsort
SELECT DISTINCT + 64, 31 + 37 AS col2
----
64
68

query I rowsort
SELECT ALL - ( + 41 ) col0
----
-41

query I rowsort
SELECT ALL - NULLIF ( 76, + + ( + + 62 ) * + - 2 )
----
-76

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

query I rowsort
SELECT + 24 * + + 87 AS col0
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT 5 * + - 71 * - + ( - 5 ) + 96 + + 74 * + 76 * - + COUNT( * ) AS col1
----
-7303

skipif mysql # not compatible
query I rowsort label-2377
SELECT 5 * + - 71 * - + ( - 5 ) + 96 + + 74 * + 76 * - + COUNT ( * ) AS col1
----
-7303

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT DISTINCT CASE + MIN( DISTINCT + - 58 ) WHEN + ( - 84 ) THEN + 12 * - - 43 ELSE NULL END * 98 + - NULLIF ( + CASE 96 WHEN + 69 + + AVG ( 21 ) THEN - + 76 + - MAX( DISTINCT - ( - - 74 ) ) * + 92 ELSE + 34 * + 47 END, - 93 ) + - 48 AS col0, + 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-2379
SELECT DISTINCT CASE + MIN ( DISTINCT + - 58 ) WHEN + ( - 84 ) THEN + 12 * - - 43 ELSE NULL END * 98 + - NULLIF ( + CASE 96 WHEN + 69 + + AVG ( 21 ) THEN - + 76 + - MAX ( DISTINCT - ( - - 74 ) ) * + 92 ELSE + 34 * + 47 END, - 93 ) + - 48 AS col0, + 5
----
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT COUNT( * ) + MIN( DISTINCT 99 ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-2380
SELECT COUNT ( * ) + MIN ( DISTINCT 99 ) AS col1
----
100

query I rowsort
SELECT 97 + + + 1 AS col0
----
98

query I rowsort
SELECT 85 * - + 61
----
-5185

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

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

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

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

query I rowsort
SELECT DISTINCT + + 17 * - 12
----
-204

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

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

query I rowsort
SELECT DISTINCT + - 4 + + 6
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2388
SELECT ALL 68 + + COALESCE ( - COUNT( * ), + 34 + + COUNT( * ) + + 14 * - CAST( - + 79 AS SIGNED ) * - 6 * - - 3 ) - - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL 68 + + COALESCE ( - COUNT ( * ), + 34 + + COUNT ( * ) + + 14 * - CAST ( - + 79 AS INTEGER ) * - 6 * - - 3 ) - - COUNT ( * )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2389
SELECT + COALESCE ( - 99, + 25 + 24 ) DIV - 8 + 63
----
75

skipif mysql # not compatible
query I rowsort label-2389
SELECT + COALESCE ( - 99, + 25 + 24 ) / - 8 + 63
----
75

query I rowsort
SELECT 60 + - 82
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2391
SELECT CASE 12 WHEN - 40 THEN COUNT( * ) * + MAX( DISTINCT 4 ) ELSE - COALESCE ( + 3, - + 32, + 5 ) + - ( - 3 ) * - + 18 DIV 91 END DIV + 64 - + - 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2391
SELECT CASE 12 WHEN - 40 THEN COUNT ( * ) * + MAX ( DISTINCT 4 ) ELSE - COALESCE ( + 3, - + 32, + 5 ) + - ( - 3 ) * - + 18 / 91 END / + 64 - + - 57 AS col2
----
57

query I rowsort
SELECT ALL 21 + + 62
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2393
SELECT + 29 * - - MIN( DISTINCT - 92 ) + + CAST( 30 AS SIGNED ) AS col0
----
-2638

skipif mysql # not compatible
query I rowsort label-2393
SELECT + 29 * - - MIN ( DISTINCT - 92 ) + + CAST ( 30 AS INTEGER ) AS col0
----
-2638

query I rowsort
SELECT ( - ( - 10 ) ) + - 58 col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2395
SELECT ALL 85 * + 68 * 98 * - CAST( - 33 AS SIGNED ) * + - COUNT( * ) AS col2
----
-18692520

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL 85 * + 68 * 98 * - CAST ( - 33 AS INTEGER ) * + - COUNT ( * ) AS col2
----
-18692520

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2396
SELECT ( - - 39 ) + COUNT( * ) + - - 69, + 72 DIV - 84 + + COALESCE ( + 52, - 50 + + + 82 ) + + 59 * - 5 AS col1
----
109
-243

skipif mysql # not compatible
query II rowsort label-2396
SELECT ( - - 39 ) + COUNT ( * ) + - - 69, + 72 / - 84 + + COALESCE ( + 52, - 50 + + + 82 ) + + 59 * - 5 AS col1
----
109
-243

query I rowsort
SELECT ALL - CASE - + 0 WHEN - 50 THEN NULL WHEN + 24 / 17 THEN NULL WHEN - 89 * - - 86 - - - 60 / + 35 THEN - 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT DISTINCT COUNT( * ) + 48 AS col1, + 90 + - 56 * 97 col0
----
49
-5342

skipif mysql # not compatible
query II rowsort label-2398
SELECT DISTINCT COUNT ( * ) + 48 AS col1, + 90 + - 56 * 97 col0
----
49
-5342

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL - CASE - 63 WHEN - COUNT( * ) THEN - 22 WHEN + + 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - CASE - 63 WHEN - COUNT ( * ) THEN - 22 WHEN + + 36 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT ( CASE + 54 WHEN + 68 / 9 + ( + NULLIF ( + CAST( AVG ( - 86 ) AS SIGNED ), + 76 ) ) * - - 91 THEN + - 65 WHEN + - 29 * - 94 + - 12 + - ( + CAST( + 45 AS SIGNED ) ) * + 51 THEN + - 84 / + + 2 * - 29 / + ( 38 ) - + 0 / 40 / - - 62 * + + ( - 56 ) ELSE NULL END ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT ( CASE + 54 WHEN + 68 / 9 + ( + NULLIF ( + CAST ( AVG ( - 86 ) AS INTEGER ), + 76 ) ) * - - 91 THEN + - 65 WHEN + - 29 * - 94 + - 12 + - ( + CAST ( + 45 AS INTEGER ) ) * + 51 THEN + - 84 / + + 2 * - 29 / + ( 38 ) - + 0 / 40 / - - 62 * + + ( - 56 ) ELSE NULL END ) * 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT ALL + 16 DIV 33 col0
----
0

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL + 16 / 33 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT 39 + - ( MAX( ALL + 91 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-2402
SELECT 39 + - ( MAX ( ALL + 91 ) )
----
-52

query I rowsort
SELECT 10 * 34 AS col2
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT ALL + + COUNT( ALL + + 24 ) - 34
----
-33

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL + + COUNT ( ALL + + 24 ) - 34
----
-33

query I rowsort
SELECT ALL - + 98 col1
----
-98

query II rowsort
SELECT DISTINCT 21 * + - 75 AS col2, + 24 * 45
----
-1575
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT - 65 + 96 / MAX( + ( CASE WHEN NOT NULL IS NULL THEN 6 WHEN 37 <> - 98 * - 47 THEN NULL ELSE NULL END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2407
SELECT - 65 + 96 / MAX ( + ( CASE WHEN NOT NULL IS NULL THEN 6 WHEN 37 <> - 98 * - 47 THEN NULL ELSE NULL END ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT 74 DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-2408
SELECT 74 / - + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT - 22 - + MIN( ALL - 82 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2409
SELECT - 22 - + MIN ( ALL - 82 ) AS col0
----
60

query I rowsort
SELECT + 31 * - 10
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT - SUM( - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-2411
SELECT - SUM ( - 56 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2412
SELECT ALL - COUNT( * ) + + 24 DIV - 27 * + SUM( 26 ) + - + 39 DIV 22 * COALESCE ( + COUNT( ALL 98 ), - CAST( - COUNT( * ) AS SIGNED ), + - 79 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL - COUNT ( * ) + + 24 / - 27 * + SUM ( 26 ) + - + 39 / 22 * COALESCE ( + COUNT ( ALL 98 ), - CAST ( - COUNT ( * ) AS INTEGER ), + - 79 ) AS col1
----
-2

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

skipif mysql # not compatible
query I rowsort label-2413
SELECT - - MIN ( ALL - - 17 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT ALL - NULLIF ( + + CAST( NULL AS SIGNED ), 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL - NULLIF ( + + CAST ( NULL AS INTEGER ), 64 )
----
NULL

query I rowsort
SELECT DISTINCT - + 52 + 28
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-2416
SELECT ALL 11 + - + 56 AS col1, + 49 * - 59 * + ( + + COUNT( * ) ) * + + 88 * + 81
----
-45
-20607048

skipif mysql # not compatible
query II rowsort label-2416
SELECT ALL 11 + - + 56 AS col1, + 49 * - 59 * + ( + + COUNT ( * ) ) * + + 88 * + 81
----
-45
-20607048

query II rowsort
SELECT ALL - 84 + - 70 AS col0, 42
----
-154
42

query II rowsort
SELECT ALL - 46 * + 99 * + 33 * 17 * + 63 AS col2, 44
----
-160952022
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT 70 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-2419
SELECT 70 / + 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL - ( + 98 ) * + - COUNT( * ) * - 55 + - 53 + - COUNT( * ) * - 33 * - COALESCE ( 34, 80 ) * + - 28 + COUNT( * ) + - NULLIF ( 99, - 28 * 76 ) + COUNT( - ( 17 ) ) + - 51 + - 12 AS col1
----
25813

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL - ( + 98 ) * + - COUNT ( * ) * - 55 + - 53 + - COUNT ( * ) * - 33 * - COALESCE ( 34, 80 ) * + - 28 + COUNT ( * ) + - NULLIF ( 99, - 28 * 76 ) + COUNT ( - ( 17 ) ) + - 51 + - 12 AS col1
----
25813

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT DISTINCT MAX( DISTINCT - 25 ) * - COUNT( + 8 ) - - 49 + CASE - - CASE - 48 WHEN + + 71 THEN NULL WHEN - - ( 43 ) * + NULLIF ( - - 98, 11 ) * 94 / - 24 + 35 THEN NULL ELSE - 74 - - - 67 / - 75 * COUNT( * ) * - - COALESCE ( + 25, + COUNT( * ) + - 75 ) * + 12 - 2 + - 44 * - 16 + + 0 END WHEN 3 THEN - 80 - 79 * - 18 * 55 WHEN - 13 THEN NULL WHEN 79 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT MAX ( DISTINCT - 25 ) * - COUNT ( + 8 ) - - 49 + CASE - - CASE - 48 WHEN + + 71 THEN NULL WHEN - - ( 43 ) * + NULLIF ( - - 98, 11 ) * 94 / - 24 + 35 THEN NULL ELSE - 74 - - - 67 / - 75 * COUNT ( * ) * - - COALESCE ( + 25, + COUNT ( * ) + - 75 ) * + 12 - 2 + - 44 * - 16 + + 0 END WHEN 3 THEN - 80 - 79 * - 18 * 55 WHEN - 13 THEN NULL WHEN 79 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2422
SELECT DISTINCT 8 DIV - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT 8 / - 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT COALESCE ( 56, - + 13 / 24 ) * + - 45 + - MIN( CASE - 36 WHEN - 87 THEN + 45 WHEN - + 4 THEN 76 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT COALESCE ( 56, - + 13 / 24 ) * + - 45 + - MIN ( CASE - 36 WHEN - 87 THEN + 45 WHEN - + 4 THEN 76 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT MAX( ( 82 ) ) col0
----
82

skipif mysql # not compatible
query I rowsort label-2424
SELECT MAX ( ( 82 ) ) col0
----
82

query I rowsort
SELECT 20 * - 16
----
-320

onlyif mysql # DIV for integer division: 
query I rowsort label-2426
SELECT DISTINCT 72 DIV 5
----
14

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT 72 / 5
----
14

query II rowsort
SELECT + 49 * - 30 + - 92 col2, 81
----
-1562
81

query I rowsort
SELECT 4 + + - 85 - + - 84
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL - NULLIF ( - + NULLIF ( + 90, + 13 + - ( - COALESCE ( - MAX( - - 17 ), 30, + 82 ) ) * 75 ), - 14 * + 87 + 0 / + COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - NULLIF ( - + NULLIF ( + 90, + 13 + - ( - COALESCE ( - MAX ( - - 17 ), 30, + 82 ) ) * 75 ), - 14 * + 87 + 0 / + COUNT ( * ) )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2430
SELECT ALL CAST( NULL AS SIGNED ) * 8 * - COUNT( * ) AS col0
----
NULL

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

query I rowsort
SELECT ( - + 18 ) * + 53
----
-954

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

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

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

query I rowsort
SELECT + 93 + 80 * - 18 + - 93 * + - 74 AS col1
----
5535

query II rowsort
SELECT - 83 col2, + 29
----
-83
29

query I rowsort
SELECT - - 54 * - 66
----
-3564

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

query I rowsort
SELECT DISTINCT - 46 + - - 71
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT ALL + - 79 + - ( - + CAST( - 37 AS SIGNED ) ) AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL + - 79 + - ( - + CAST ( - 37 AS INTEGER ) ) AS col1
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT + + 33 + + 27 + - 88 - - 77 * + 25 * - - MAX( 98 ) * 5 / COUNT( * ) + - ( + CASE - + 45 WHEN - - 82 THEN NULL WHEN NULLIF ( + 17, + CASE WHEN NOT COALESCE ( - + ( + 79 ), + + 59 ) IS NULL THEN 56 END * MIN( - 38 ) * ( - + COALESCE ( - - COUNT( * ), - - COUNT( * ), 73 + + + 29 ) ) ) THEN - 82 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT + + 33 + + 27 + - 88 - - 77 * + 25 * - - MAX ( 98 ) * 5 / COUNT ( * ) + - ( + CASE - + 45 WHEN - - 82 THEN NULL WHEN NULLIF ( + 17, + CASE WHEN NOT COALESCE ( - + ( + 79 ), + + 59 ) IS NULL THEN 56 END * MIN ( - 38 ) * ( - + COALESCE ( - - COUNT ( * ), - - COUNT ( * ), 73 + + + 29 ) ) ) THEN - 82 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT DISTINCT - CAST( + ( + - SUM( DISTINCT + 72 ) ) AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT - CAST ( + ( + - SUM ( DISTINCT + 72 ) ) AS INTEGER )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2442
SELECT + - 58 + + CAST( 78 AS SIGNED ) AS col2, - CAST( - 46 AS SIGNED ) * + 12
----
20
552

skipif mysql # not compatible
query II rowsort label-2442
SELECT + - 58 + + CAST ( 78 AS INTEGER ) AS col2, - CAST ( - 46 AS INTEGER ) * + 12
----
20
552

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL + 5 + + - 24 + + + 17 + - - 57 * - - SUM( DISTINCT - 67 )
----
-3821

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL + 5 + + - 24 + + + 17 + - - 57 * - - SUM ( DISTINCT - 67 )
----
-3821

query I rowsort
SELECT - 3 + 33
----
30

query II rowsort
SELECT - 21 + 23, - 11 AS col0
----
2
-11

query II rowsort
SELECT 16 col1, 73 AS col1
----
16
73

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

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL MAX ( ALL - 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL + 6 - + COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL + 6 - + COUNT ( * ) AS col2
----
5

query I rowsort
SELECT DISTINCT + NULLIF ( - + 17, 33 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT - 45 DIV + - ( + 64 ) + + 78 * - 12
----
-936

skipif mysql # not compatible
query I rowsort label-2450
SELECT - 45 / + - ( + 64 ) + + 78 * - 12
----
-936

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - COUNT( * ) + + 83 * ( + COUNT( * ) ) * - 99 AS col0
----
-8218

skipif mysql # not compatible
query I rowsort label-2453
SELECT - COUNT ( * ) + + 83 * ( + COUNT ( * ) ) * - 99 AS col0
----
-8218

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT 43 DIV + 54 + - 97 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2454
SELECT 43 / + 54 + - 97 AS col0
----
-97

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

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

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - NULLIF ( 3, - 42 ) * + COUNT ( * )
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2457
SELECT 43 DIV 63 + + - 49 * - + 68 * + + 85 + 14 AS col1, - 0 - + 72 AS col1
----
283234
-72

skipif mysql # not compatible
query II rowsort label-2457
SELECT 43 / 63 + + - 49 * - + 68 * + + 85 + 14 AS col1, - 0 - + 72 AS col1
----
283234
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT DISTINCT + MAX( DISTINCT + - ( + 22 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT + MAX ( DISTINCT + - ( + 22 ) ) AS col0
----
-22

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

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + CAST ( - ( + 85 ) AS INTEGER ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT + 60 + 56, + COUNT( * ) AS col0
----
116
1

skipif mysql # not compatible
query II rowsort label-2460
SELECT + 60 + 56, + COUNT ( * ) AS col0
----
116
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2461
SELECT + - 49 DIV + 65 * - - SUM( DISTINCT + 41 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2461
SELECT + - 49 / + 65 * - - SUM ( DISTINCT + 41 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2462
SELECT DISTINCT + - 2 DIV + + 22 AS col0, + 90 + + - ( CASE 29 WHEN - 57 - + + 55 * 42 THEN NULL WHEN 78 + + 21 + 89 * + 6 * - 42 * + ( - 66 ) + + - 58 THEN - - COUNT( * ) * - - 61 * - COUNT( DISTINCT + - 18 ) - + 37 END ) * + ( 12 ) * COUNT( * ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2462
SELECT DISTINCT + - 2 / + + 22 AS col0, + 90 + + - ( CASE 29 WHEN - 57 - + + 55 * 42 THEN NULL WHEN 78 + + 21 + 89 * + 6 * - 42 * + ( - 66 ) + + - 58 THEN - - COUNT ( * ) * - - 61 * - COUNT ( DISTINCT + - 18 ) - + 37 END ) * + ( 12 ) * COUNT ( * ) AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT SUM( DISTINCT + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2463
SELECT SUM ( DISTINCT + 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT ALL - 32 * COUNT( * ) * - 76 + - - 50
----
2482

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL - 32 * COUNT ( * ) * - 76 + - - 50
----
2482

query I rowsort
SELECT - - 5 * + 42
----
210

query I rowsort
SELECT + + 25 + + 84
----
109

query I rowsort
SELECT ALL 43 * 80 * - 99
----
-340560

query II rowsort
SELECT + 12 AS col0, - 18 * + + COALESCE ( + + 18, + 71 + 79 * + 27 * + + 59 + 25, - 40 )
----
12
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL - - 60 * + COUNT( * ) + - CASE + NULLIF ( COUNT( ALL - ( - 51 ) ), - COUNT( ALL + - ( - + 66 ) ) ) WHEN - COUNT( * ) THEN + 59 * - 43 + + + 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL - - 60 * + COUNT ( * ) + - CASE + NULLIF ( COUNT ( ALL - ( - 51 ) ), - COUNT ( ALL + - ( - + 66 ) ) ) WHEN - COUNT ( * ) THEN + 59 * - 43 + + + 76 END AS col2
----
NULL

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

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

query II rowsort
SELECT DISTINCT + 86 * - 54, 58 * + + 61 AS col0
----
-4644
3538

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT ALL 27 * + COUNT( * ) + + - COUNT( * ) + - 43 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL 27 * + COUNT ( * ) + + - COUNT ( * ) + - 43 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL 10 * - COUNT( * ) * - 24
----
240

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL 10 * - COUNT ( * ) * - 24
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL - COALESCE ( + 74, - - COUNT( * ) ) * - COUNT( * ) + + + 52 + + 65 * - ( + - 7 ) + - COUNT( * )
----
580

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL - COALESCE ( + 74, - - COUNT ( * ) ) * - COUNT ( * ) + + + 52 + + 65 * - ( + - 7 ) + - COUNT ( * )
----
580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2475
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( - - 99 ) * + ( - - COALESCE ( + - 92, + COUNT( * ) * + COALESCE ( - 91, + 84 * 39 ) ) ) * + MIN( DISTINCT - - 81 ) / + - ( + ( - + 93 ) ) + - 91 + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( - - 99 ) * + ( - - COALESCE ( + - 92, + COUNT ( * ) * + COALESCE ( - 91, + 84 * 39 ) ) ) * + MIN ( DISTINCT - - 81 ) / + - ( + ( - + 93 ) ) + - 91 + 7
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2476
SELECT ALL 35 * + CASE + 98 WHEN - + COUNT( * ) THEN COUNT( * ) ELSE - 16 * - 96 + 18 DIV 50 + + - ( + SUM( - 6 ) ) END + 30 AS col1
----
54000

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL 35 * + CASE + 98 WHEN - + COUNT ( * ) THEN COUNT ( * ) ELSE - 16 * - 96 + 18 / 50 + + - ( + SUM ( - 6 ) ) END + 30 AS col1
----
54000

query I rowsort
SELECT + - 3 * + ( + 9 ) + + 20 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-2478
SELECT ALL CASE 21 WHEN - - 2 - - 64 THEN - 57 * + 12 / 23 + - ( - COUNT( * ) ) ELSE NULL END AS col0, 72 + - 15 AS col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-2478
SELECT ALL CASE 21 WHEN - - 2 - - 64 THEN - 57 * + 12 / 23 + - ( - COUNT ( * ) ) ELSE NULL END AS col0, 72 + - 15 AS col1
----
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT + + 29 - + COUNT( * ) * - 63 * - ( + 26 ) + - 7 AS col1
----
-1616

skipif mysql # not compatible
query I rowsort label-2479
SELECT + + 29 - + COUNT ( * ) * - 63 * - ( + 26 ) + - 7 AS col1
----
-1616

onlyif mysql # DIV for integer division: 
query I rowsort label-2480
SELECT ALL 73 DIV - 22
----
-3

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL 73 / - 22
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2481
SELECT DISTINCT 68 - - CAST( - - 38 AS SIGNED ) - - 15 DIV + 25 * - - NULLIF ( - 72, - + 31 + + - MAX( - + 82 ) ) + 34 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT 68 - - CAST ( - - 38 AS INTEGER ) - - 15 / + 25 * - - NULLIF ( - 72, - + 31 + + - MAX ( - + 82 ) ) + 34 AS col1
----
140

query I rowsort
SELECT DISTINCT + 1 * - + 26 AS col2
----
-26

query I rowsort
SELECT ALL 62 * + 54
----
3348

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

query I rowsort
SELECT - 67 * - - ( + 49 )
----
-3283

query I rowsort
SELECT - 26 * ( - + 95 )
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL CASE - 43 WHEN + 91 * + AVG ( DISTINCT - 71 ) * MAX( ALL - 72 ) * 52 / - 8 + - 98 * + + 44 + + 24 * + AVG ( + 88 ) THEN + 16 + + + 67 + COUNT( * ) * + 60 WHEN - - 61 + - 18 / + 60 THEN NULL WHEN - COUNT( - 41 ) THEN NULL ELSE - COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL CASE - 43 WHEN + 91 * + AVG ( DISTINCT - 71 ) * MAX ( ALL - 72 ) * 52 / - 8 + - 98 * + + 44 + + 24 * + AVG ( + 88 ) THEN + 16 + + + 67 + COUNT ( * ) * + 60 WHEN - - 61 + - 18 / + 60 THEN NULL WHEN - COUNT ( - 41 ) THEN NULL ELSE - COUNT ( * ) END AS col1
----
-1

query I rowsort
SELECT DISTINCT COALESCE ( + + 71, - NULLIF ( ( 49 ), + - 58 ) ) AS col2
----
71

query II rowsort
SELECT + 31 * - + 90 AS col2, ( - 90 ) AS col1
----
-2790
-90

query I rowsort
SELECT DISTINCT 37 * 31
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT - CASE 55 WHEN - 68 * - MAX( + 85 ) THEN + + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT - CASE 55 WHEN - 68 * - MAX ( + 85 ) THEN + + 97 END
----
NULL

query II rowsort
SELECT DISTINCT - 66 * ( + - 23 ), 68 AS col2
----
1518
68

query I rowsort
SELECT 49 * 43
----
2107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2494
SELECT - 96 * 91 + + 93 + CASE - 97 WHEN 50 - - + 76 + - COALESCE ( + 30, + + 86 / - 49 + - COUNT( * ) * + - 4 * - 76 - + - 91 * 45 / + + 37 * + COUNT( * ) + - 72, + - 36 * - - 45 * - 59 * - COALESCE ( ( - + 99 ), - + ( + 12 ), + 76 * + - 54 ) ) - - 53 THEN + CAST( + 97 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2494
SELECT - 96 * 91 + + 93 + CASE - 97 WHEN 50 - - + 76 + - COALESCE ( + 30, + + 86 / - 49 + - COUNT ( * ) * + - 4 * - 76 - + - 91 * 45 / + + 37 * + COUNT ( * ) + - 72, + - 36 * - - 45 * - 59 * - COALESCE ( ( - + 99 ), - + ( + 12 ), + 76 * + - 54 ) ) - - 53 THEN + CAST ( + 97 AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - - 13 + 98
----
111

query I rowsort
SELECT ALL + - 0 + + 58 AS col2
----
58

query I rowsort
SELECT ALL - - ( - 24 ) + 12 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT DISTINCT + 21 + + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT + 21 + + - COUNT ( * )
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2499
SELECT ALL 55 + - CAST( NULL AS DECIMAL ) + 8 - - - 83 * - + AVG ( - 28 ) + + 63 * - + 11 + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL 55 + - CAST ( NULL AS REAL ) + 8 - - - 83 * - + AVG ( - 28 ) + + 63 * - + 11 + + 84
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2501
SELECT ALL - - COALESCE ( - + 70, 37 * + 35 + + 70 - - 98 + + 31 - - 26 * + - 73 + + 55 * 46 * ( + + 57 ) + - 46 * - + 57 DIV + CAST( - 34 AS SIGNED ) DIV 74 * 52, - 27 * - NULLIF ( - 71, - 92 + 20 + 55 ) + 59 )
----
-70

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL - - COALESCE ( - + 70, 37 * + 35 + + 70 - - 98 + + 31 - - 26 * + - 73 + + 55 * 46 * ( + + 57 ) + - 46 * - + 57 / + CAST ( - 34 AS INTEGER ) / 74 * 52, - 27 * - NULLIF ( - 71, - 92 + 20 + 55 ) + 59 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL + + 33 + 95 * - MIN( + 49 ) + 40 AS col1
----
-4582

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL + + 33 + 95 * - MIN ( + 49 ) + 40 AS col1
----
-4582

query II rowsort
SELECT DISTINCT - 63 + + 21, 9 * - 72 AS col2
----
-42
-648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2504
SELECT 58 * + 50 * CAST( NULL AS SIGNED ) - + 65 - - + 45 + - 39 * - - 48 * - 32 / + 29 + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT 58 * + 50 * CAST ( NULL AS INTEGER ) - + 65 - - + 45 + - 39 * - - 48 * - 32 / + 29 + + 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT DISTINCT 62 * + CAST( 40 AS SIGNED ) / + CASE + 91 WHEN - NULLIF ( + 68, + + 87 + + COUNT( * ) * - + 4 + - + COUNT( * ) ) THEN - 2 ELSE - + 10 + MIN( DISTINCT + - 84 ) + - 41 * + + 76 + - - 30 + COUNT( * ) / AVG ( ALL CASE - + 79 WHEN - 28 * - 18 THEN - - 13 WHEN 24 THEN + 90 END ) * 86 + - - 72 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT 62 * + CAST ( 40 AS INTEGER ) / + CASE + 91 WHEN - NULLIF ( + 68, + + 87 + + COUNT ( * ) * - + 4 + - + COUNT ( * ) ) THEN - 2 ELSE - + 10 + MIN ( DISTINCT + - 84 ) + - 41 * + + 76 + - - 30 + COUNT ( * ) / AVG ( ALL CASE - + 79 WHEN - 28 * - 18 THEN - - 13 WHEN 24 THEN + 90 END ) * 86 + - - 72 END AS col2
----
NULL

query I rowsort
SELECT + 40 * - + 62 * - 8
----
19840

query I rowsort
SELECT DISTINCT + 42 - - 44 AS col1
----
86

query I rowsort
SELECT DISTINCT 21 * + 34
----
714

query I rowsort
SELECT DISTINCT 85 - + - 80 AS col0
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2510
SELECT COALESCE ( + MIN( + 42 ), + 66 DIV 33, - - 87 ) * 68
----
2856

skipif mysql # not compatible
query I rowsort label-2510
SELECT COALESCE ( + MIN ( + 42 ), + 66 / 33, - - 87 ) * 68
----
2856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2511
SELECT SUM( ALL - 6 ) + + COALESCE ( + 10, - 82 DIV - + CASE 81 WHEN - - 71 - - + 79 THEN NULL ELSE - - COUNT( * ) * 73 END, - COUNT( * ) * - 84 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2511
SELECT SUM ( ALL - 6 ) + + COALESCE ( + 10, - 82 / - + CASE 81 WHEN - - 71 - - + 79 THEN NULL ELSE - - COUNT ( * ) * 73 END, - COUNT ( * ) * - 84 ) AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT ( 90 ) DIV - + 22 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2512
SELECT ( 90 ) / - + 22 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT 20 + - COUNT( + 77 ) + - + 62 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2513
SELECT 20 + - COUNT ( + 77 ) + - + 62 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2514
SELECT ALL CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + + 17 + - 73 / + NULLIF ( - 43, - - ( - - COUNT( ALL CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + + 17 + - 73 / + NULLIF ( - 43, - - ( - - COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT CAST( NULL AS SIGNED ) + - - COALESCE ( - 57, + - 66 + - - 30 ) * - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT CAST ( NULL AS INTEGER ) + - - COALESCE ( - 57, + - 66 + - - 30 ) * - 55 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2516
SELECT ALL 37 AS col2, + 4 DIV + 23 AS col2
----
37
0

skipif mysql # not compatible
query II rowsort label-2516
SELECT ALL 37 AS col2, + 4 / + 23 AS col2
----
37
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2517
SELECT - 41, - ( CAST( NULL AS SIGNED ) ) AS col1
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-2517
SELECT - 41, - ( CAST ( NULL AS INTEGER ) ) AS col1
----
-41
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2518
SELECT ( - + 47 ) DIV 29 + + 65 + + COUNT( * ) + + 75
----
140

skipif mysql # not compatible
query I rowsort label-2518
SELECT ( - + 47 ) / 29 + + 65 + + COUNT ( * ) + + 75
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2519
SELECT ALL CAST( NULL AS SIGNED ) + - - 86 + + 28 - + 56 * - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL CAST ( NULL AS INTEGER ) + - - 86 + + 28 - + 56 * - 91 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2520
SELECT ( NULLIF ( + CAST( NULL AS SIGNED ), + ( + 16 ) + + COUNT( * ) + COUNT( * ) + - 57 * + 99 ) ) * + 88 + + - AVG ( 63 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT ( NULLIF ( + CAST ( NULL AS INTEGER ), + ( + 16 ) + + COUNT ( * ) + COUNT ( * ) + - 57 * + 99 ) ) * + 88 + + - AVG ( 63 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 77 + + 7
----
84

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

query I rowsort
SELECT DISTINCT 60 + + 87 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL - COUNT( * ) + 28
----
27

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL - COUNT ( * ) + 28
----
27

query II rowsort
SELECT + 9 + - COALESCE ( - 4, 31 ) AS col2, - 13 * - 75
----
13
975

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT ALL - SUM( - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL - SUM ( - 4 )
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT 53 * - ( - + 24 ) * - + ( - 68 ) + + COALESCE ( + COUNT( * ), NULLIF ( + 19, + - 61 ) + + - COUNT( * ) )
----
86497

skipif mysql # not compatible
query I rowsort label-2528
SELECT 53 * - ( - + 24 ) * - + ( - 68 ) + + COALESCE ( + COUNT ( * ), NULLIF ( + 19, + - 61 ) + + - COUNT ( * ) )
----
86497

query I rowsort
SELECT ALL - 67 - + 49
----
-116

query II rowsort
SELECT - 47 AS col2, - 23
----
-47
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2531
SELECT - 58 + + + CAST( NULL AS DECIMAL ) - + - 79 / + + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2531
SELECT - 58 + + + CAST ( NULL AS REAL ) - + - 79 / + + 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL + 76 * - 26 + - 87 * COUNT( * ) AS col2
----
-2063

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL + 76 * - 26 + - 87 * COUNT ( * ) AS col2
----
-2063

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT - COALESCE ( SUM( ALL 50 ), - 37, - - 52 * - + 28 + 71 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-2533
SELECT - COALESCE ( SUM ( ALL 50 ), - 37, - - 52 * - + 28 + 71 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2534
SELECT + COUNT( * ), COALESCE ( 65, + 28 ) * + + COUNT( ALL + ( 16 ) ) col1
----
1
65

skipif mysql # not compatible
query II rowsort label-2534
SELECT + COUNT ( * ), COALESCE ( 65, + 28 ) * + + COUNT ( ALL + ( 16 ) ) col1
----
1
65

query II rowsort
SELECT ALL - 9 col1, 10
----
-9
10

query I rowsort
SELECT ALL + 15 * + 30
----
450

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2538
SELECT DISTINCT 10 AS col1, - 32 - + 74 * CAST( + 26 AS SIGNED ) * 89
----
10
-171268

skipif mysql # not compatible
query II rowsort label-2538
SELECT DISTINCT 10 AS col1, - 32 - + 74 * CAST ( + 26 AS INTEGER ) * 89
----
10
-171268

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT 79 DIV + 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2539
SELECT 79 / + 50 AS col1
----
1

query I rowsort
SELECT 14 * - - 88 * - + 8 * - 41 * + + 93 AS col0
----
37580928

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT COUNT( * ) + + - 80 + - COALESCE ( + ( 13 ), - - 75 + + 84, + COUNT( * ) * + 93 + 89 )
----
-92

skipif mysql # not compatible
query I rowsort label-2541
SELECT COUNT ( * ) + + - 80 + - COALESCE ( + ( 13 ), - - 75 + + 84, + COUNT ( * ) * + 93 + 89 )
----
-92

query I rowsort
SELECT 4 * 93 * + 4
----
1488

query I rowsort
SELECT 40 + - - 95
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-2544
SELECT ALL MIN( ALL 51 ) AS col0, + 64 * 27 AS col1
----
51
1728

skipif mysql # not compatible
query II rowsort label-2544
SELECT ALL MIN ( ALL 51 ) AS col0, + 64 * 27 AS col1
----
51
1728

onlyif mysql # aggregate syntax: 
query II rowsort label-2545
SELECT COUNT( * ) * + 21 AS col1, 21 * + 69
----
21
1449

skipif mysql # not compatible
query II rowsort label-2545
SELECT COUNT ( * ) * + 21 AS col1, 21 * + 69
----
21
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT ALL ( - COUNT( * ) ) + - 56 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL ( - COUNT ( * ) ) + - 56 AS col2
----
-57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2548
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 80 + - - MIN( - 90 ) + + 37 + + 6 * + COUNT( * ) * - - CAST( - 73 AS DECIMAL ) - + COUNT( * ) / + 50 - 26 + 92 + - 83 + - 61 * - - 36 * + ( + CAST( + 98 AS SIGNED ) ) * 62 - + + 72 + 63 * - 44 + 33 / COUNT( * ) * + + 34 * + 94 + 60 * + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 80 + - - MIN ( - 90 ) + + 37 + + 6 * + COUNT ( * ) * - - CAST ( - 73 AS REAL ) - + COUNT ( * ) / + 50 - 26 + 92 + - 83 + - 61 * - - 36 * + ( + CAST ( + 98 AS INTEGER ) ) * 62 - + + 72 + 63 * - 44 + 33 / COUNT ( * ) * + + 34 * + 94 + 60 * + 13 AS col1
----
NULL

query I rowsort
SELECT + 43 - 37 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL + CASE + 54 WHEN + + 14 THEN MAX( + 33 ) WHEN + 87 THEN NULL ELSE 91 END + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL + CASE + 54 WHEN + + 14 THEN MAX ( + 33 ) WHEN + 87 THEN NULL ELSE 91 END + COUNT ( * ) AS col2
----
92

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

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

query I rowsort
SELECT - 25 * - 49 AS col1
----
1225

query I rowsort
SELECT - COALESCE ( 79, + 16 )
----
-79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT COUNT( * ) * + 64 - MAX( DISTINCT - - COALESCE ( + 88, + + 20 + - 51 * 29 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-2555
SELECT COUNT ( * ) * + 64 - MAX ( DISTINCT - - COALESCE ( + 88, + + 20 + - 51 * 29 ) )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2556
SELECT DISTINCT - SUM( - 18 ) DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT - SUM ( - 18 ) / - 44
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2557
SELECT ALL + MAX( - 2 ) * 70 - + ( + 83 ) * + 97 - - + 76, - 53 AS col0
----
-8115
-53

skipif mysql # not compatible
query II rowsort label-2557
SELECT ALL + MAX ( - 2 ) * 70 - + ( + 83 ) * + 97 - - + 76, - 53 AS col0
----
-8115
-53

query I rowsort
SELECT + + 60 * 86 * - 58 * - 19 col1
----
5686320

query II rowsort
SELECT ALL 90 * + 95, + 46 AS col2
----
8550
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT + + MAX( + + CAST( - 87 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT + + MAX ( + + CAST ( - 87 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + 93
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2561
SELECT - + 10 DIV 51 * 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2561
SELECT - + 10 / 51 * 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT + + MAX( + - ( 85 ) ) * + ( NULLIF ( + 83, - 75 ) ) col1
----
-7055

skipif mysql # not compatible
query I rowsort label-2562
SELECT + + MAX ( + - ( 85 ) ) * + ( NULLIF ( + 83, - 75 ) ) col1
----
-7055

query I rowsort
SELECT ALL - 36 * - 53
----
1908

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

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

query I rowsort
SELECT + - CASE + 68 WHEN + + 31 THEN + 10 WHEN + 93 THEN - 73 END * - 69 + - 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT DISTINCT + CASE ( 71 ) WHEN 47 + COUNT( * ) THEN NULL WHEN + 88 - 70 THEN + 52 / + - 23 - + - COUNT( 74 ) + - 95 / - NULLIF ( + 15, + 41 + - 87 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT + CASE ( 71 ) WHEN 47 + COUNT ( * ) THEN NULL WHEN + 88 - 70 THEN + 52 / + - 23 - + - COUNT ( 74 ) + - 95 / - NULLIF ( + 15, + 41 + - 87 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2567
SELECT ALL - 97 * - CAST( - 72 AS SIGNED ), 69 + - 5 AS col1
----
-6984
64

skipif mysql # not compatible
query II rowsort label-2567
SELECT ALL - 97 * - CAST ( - 72 AS INTEGER ), 69 + - 5 AS col1
----
-6984
64

query I rowsort
SELECT - 27 * 63
----
-1701

query I rowsort
SELECT ALL - 88 * + 56
----
-4928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2570
SELECT + 38 * + ( - 86 ) DIV COUNT( * ) + + 14 * + 52 * 12
----
5468

skipif mysql # not compatible
query I rowsort label-2570
SELECT + 38 * + ( - 86 ) / COUNT ( * ) + + 14 * + 52 * 12
----
5468

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

query I rowsort
SELECT DISTINCT - 80 * 45 AS col0
----
-3600

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT - 43 + + COUNT( - 43 ) + + 52 col2
----
10

skipif mysql # not compatible
query I rowsort label-2574
SELECT - 43 + + COUNT ( - 43 ) + + 52 col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2575
SELECT ALL - 25 DIV 56 DIV - COALESCE ( + - 77, COUNT( CAST( + + 86 AS SIGNED ) ) ) * - 3
----
0

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL - 25 / 56 / - COALESCE ( + - 77, COUNT ( CAST ( + + 86 AS INTEGER ) ) ) * - 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT - MIN( 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-2576
SELECT - MIN ( 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - 49 + 58 - - COUNT( * ) + - + 14 * - COUNT( * ) - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-2577
SELECT - 49 + 58 - - COUNT ( * ) + - + 14 * - COUNT ( * ) - - COUNT ( * )
----
25

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2579
SELECT ALL - 26 DIV - 18 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - 26 / - 18 AS col0
----
1

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

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

query I rowsort
SELECT + 31 - - + 59 * - 30 col2
----
-1739

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ALL + 90 + - COUNT( * ) + + 48
----
137

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL + 90 + - COUNT ( * ) + + 48
----
137

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT DISTINCT CASE - 96 WHEN + 97 * - 13 THEN NULL WHEN COUNT( * ) THEN + - 45 * 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT CASE - 96 WHEN + 97 * - 13 THEN NULL WHEN COUNT ( * ) THEN + - 45 * 73 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL 89 + + + NULLIF ( - SUM( ALL + 3 ), 18 - - 12 - + 89 * 24 - + COUNT( * ) ) + + + COUNT( * ) * + 33 * - + 69 * - + 65
----
148091

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL 89 + + + NULLIF ( - SUM ( ALL + 3 ), 18 - - 12 - + 89 * 24 - + COUNT ( * ) ) + + + COUNT ( * ) * + 33 * - + 69 * - + 65
----
148091

query I rowsort
SELECT - 95 + - 88 + 71 * + 80
----
5497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2589
SELECT - 77 + COUNT( * ) / + ( 37 ) * + CAST( NULL AS SIGNED ) / - 7 + 9 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT - 77 + COUNT ( * ) / + ( 37 ) * + CAST ( NULL AS INTEGER ) / - 7 + 9 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2590
SELECT ALL - COUNT( * ), - ( - 93 ) DIV + + 43 + 36 AS col2
----
-1
38

skipif mysql # not compatible
query II rowsort label-2590
SELECT ALL - COUNT ( * ), - ( - 93 ) / + + 43 + 36 AS col2
----
-1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT - - MAX( - 18 ) * + 50
----
-900

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - - MAX ( - 18 ) * + 50
----
-900

query I rowsort
SELECT ALL + - 1 - 11
----
-12

query I rowsort
SELECT - + 20 * 44 AS col0
----
-880

query I rowsort
SELECT + + 14 * + 84
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL + + MIN( + + 95 ) col0
----
95

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL + + MIN ( + + 95 ) col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2596
SELECT + - 40 + MAX( - - 1 ), 65 * - 92 AS col2
----
-39
-5980

skipif mysql # not compatible
query II rowsort label-2596
SELECT + - 40 + MAX ( - - 1 ), 65 * - 92 AS col2
----
-39
-5980

query I rowsort
SELECT + + COALESCE ( - + 13, - + 77 ) AS col1
----
-13

query I rowsort
SELECT DISTINCT - 26 * + 48 AS col1
----
-1248

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

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT + CAST ( + + 29 AS INTEGER ) AS col1
----
29

query I rowsort
SELECT ALL - 93 * ( - 75 ) AS col1
----
6975

query I rowsort
SELECT + ( - 57 ) col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT SUM( - 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2602
SELECT SUM ( - 94 ) AS col2
----
-94

query I rowsort
SELECT + + 55 * - COALESCE ( + 38, + 40 )
----
-2090

query I rowsort
SELECT ALL 13 * - 9 * 49
----
-5733

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + MAX( + 75 ) + - 36
----
39

skipif mysql # not compatible
query I rowsort label-2605
SELECT + MAX ( + 75 ) + - 36
----
39

query I rowsort
SELECT ( + 2 ) col0
----
2

query I rowsort
SELECT + 15 * - + 94 * + 96 * 72 * 16
----
-155934720

query I rowsort
SELECT - 21 * + 1 * + + 29
----
-609

query I rowsort
SELECT DISTINCT 38 * - 2 * 46 AS col2
----
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT COUNT( * ) + SUM( ALL ( - - 29 ) ) + + 53 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT COUNT ( * ) + SUM ( ALL ( - - 29 ) ) + + 53 AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT DISTINCT 91 + 87 DIV + 64 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT 91 + 87 / + 64 AS col1
----
92

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

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

query I rowsort
SELECT ALL 26 + 53 * - 32
----
-1670

query I rowsort
SELECT 20 * - 15
----
-300

query II rowsort
SELECT - 79 AS col2, + 35
----
-79
35

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

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

query I rowsort
SELECT 68 * + + 74 AS col1
----
5032

query II rowsort
SELECT ALL 88, 79 AS col0
----
88
79

query II rowsort
SELECT - 92 AS col1, + 91
----
-92
91

query I rowsort
SELECT 58 * + - 23 * - 74
----
98716

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL MAX( + 48 ) * - - 77 * 52
----
192192

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL MAX ( + 48 ) * - - 77 * 52
----
192192

query I rowsort
SELECT ALL - 22 - - - 30 AS col1
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ( + + 50 ) - - SUM( ALL - + 58 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2624
SELECT ( + + 50 ) - - SUM ( ALL - + 58 ) AS col1
----
-8

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

skipif mysql # not compatible
query I rowsort label-2625
SELECT CAST ( NULL AS REAL ) * + 88 AS col1
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT DISTINCT + ( - 15 ) DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT + ( - 15 ) / 29
----
0

query II rowsort
SELECT - 65 AS col2, 24 AS col1
----
-65
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT DISTINCT + + 57 DIV 23 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT + + 57 / 23 AS col0
----
2

query I rowsort
SELECT DISTINCT - 97 * + + 26
----
-2522

query I rowsort
SELECT - 11 * 7 + - 33 - - + ( - + 43 )
----
-153

query I rowsort
SELECT ALL - 53 * - + 4 * + 49 * + 45
----
467460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT 97 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT 97 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL - COUNT( * ) * - COUNT( * ) + - 47
----
-46

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + - 47
----
-46

query II rowsort
SELECT 15 AS col2, + 0 * + + 12
----
15
0

onlyif mysql # aggregate syntax: 
query III rowsort label-2637
SELECT ALL - 87 col1, 56, - COUNT( * ) AS col2
----
-87
56
-1

skipif mysql # not compatible
query III rowsort label-2637
SELECT ALL - 87 col1, 56, - COUNT ( * ) AS col2
----
-87
56
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2638
SELECT + 57 col2, 82 DIV COUNT( DISTINCT - - 79 ) AS col2, ( + ( - + 37 ) ) col0
----
57
82
-37

skipif mysql # not compatible
query III rowsort label-2638
SELECT + 57 col2, 82 / COUNT ( DISTINCT - - 79 ) AS col2, ( + ( - + 37 ) ) col0
----
57
82
-37

query I rowsort
SELECT - ( 45 ) + - 70 + 74 AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2640
SELECT ALL 86 + - COUNT( * ) * + 45 / - 1 * - 50 * 40 * + CAST( NULL AS DECIMAL ) AS col1, - 19 + - 34 AS col2
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-2640
SELECT ALL 86 + - COUNT ( * ) * + 45 / - 1 * - 50 * 40 * + CAST ( NULL AS REAL ) AS col1, - 19 + - 34 AS col2
----
NULL
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ALL CASE 61 WHEN + 38 THEN - - 45 * + 38 * - + 59 + + 0 + - 53 - + 57 * + + AVG ( + 10 ) + - + 38 + + + 51 * - + 49 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL CASE 61 WHEN + 38 THEN - - 45 * + 38 * - + 59 + + 0 + - 53 - + 57 * + + AVG ( + 10 ) + - + 38 + + + 51 * - + 49 ELSE NULL END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2642
SELECT COUNT( * ) DIV + CAST( 77 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2642
SELECT COUNT ( * ) / + CAST ( 77 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT + ( 7 ) + 51
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT NULLIF ( - 28, 3 * 33 ) + + - CASE - 80 WHEN + + 71 * 71 THEN NULL WHEN + COUNT( * ) THEN 43 + 13 * - 80 ELSE + + 59 END * 69
----
-4099

skipif mysql # not compatible
query I rowsort label-2644
SELECT NULLIF ( - 28, 3 * 33 ) + + - CASE - 80 WHEN + + 71 * 71 THEN NULL WHEN + COUNT ( * ) THEN 43 + 13 * - 80 ELSE + + 59 END * 69
----
-4099

query I rowsort
SELECT ALL NULLIF ( 46, - 70 * 41 ) + 22 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT COUNT( * ) * 78 * - MAX( - 68 )
----
5304

skipif mysql # not compatible
query I rowsort label-2646
SELECT COUNT ( * ) * 78 * - MAX ( - 68 )
----
5304

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT COUNT( * ) + + COUNT( * ) + + 35 * - COUNT( * ) + + 9 * + ( + + SUM( DISTINCT - 38 ) )
----
-375

skipif mysql # not compatible
query I rowsort label-2647
SELECT COUNT ( * ) + + COUNT ( * ) + + 35 * - COUNT ( * ) + + 9 * + ( + + SUM ( DISTINCT - 38 ) )
----
-375

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2648
SELECT ALL 20 * - 17 col2, CAST( NULL AS DECIMAL ) * - + 19 - 80 * COUNT( * )
----
-340
NULL

skipif mysql # not compatible
query II rowsort label-2648
SELECT ALL 20 * - 17 col2, CAST ( NULL AS REAL ) * - + 19 - 80 * COUNT ( * )
----
-340
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT 65 * + 59 * + + COUNT( * )
----
3835

skipif mysql # not compatible
query I rowsort label-2649
SELECT 65 * + 59 * + + COUNT ( * )
----
3835

query I rowsort
SELECT ALL 13 - 32 * - 92 AS col1
----
2957

query I rowsort
SELECT DISTINCT ( + 68 ) * + 4 + + + 2 col2
----
274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2652
SELECT 55 - CAST( 66 AS SIGNED ) DIV - - 90 + - SUM( + 62 )
----
-7

skipif mysql # not compatible
query I rowsort label-2652
SELECT 55 - CAST ( 66 AS INTEGER ) / - - 90 + - SUM ( + 62 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2653
SELECT CAST( + 64 AS SIGNED ) + + - 3
----
61

skipif mysql # not compatible
query I rowsort label-2653
SELECT CAST ( + 64 AS INTEGER ) + + - 3
----
61

query II rowsort
SELECT ALL 77 - - + 3 AS col1, - 57 * 64 * + 44
----
80
-160512

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT COUNT( * ) + MAX( ALL + + ( 84 ) ) + + 56 * - 76 + - + 38 - - 33 * - - 88 AS col0
----
-1305

skipif mysql # not compatible
query I rowsort label-2655
SELECT COUNT ( * ) + MAX ( ALL + + ( 84 ) ) + + 56 * - 76 + - + 38 - - 33 * - - 88 AS col0
----
-1305

query II rowsort
SELECT 74 + 6, 50 AS col0
----
80
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2657
SELECT ALL 56 * + CAST( NULL AS SIGNED ) * 91 + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL 56 * + CAST ( NULL AS INTEGER ) * 91 + - 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT 63 - - 7 DIV - 97 + - - 48
----
111

skipif mysql # not compatible
query I rowsort label-2658
SELECT 63 - - 7 / - 97 + - - 48
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL + 92 * 41 * + COUNT( * ) * + 25 AS col0
----
94300

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL + 92 * 41 * + COUNT ( * ) * + 25 AS col0
----
94300

query I rowsort
SELECT DISTINCT + ( + 66 ) * + 17 AS col2
----
1122

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT DISTINCT - ( - COUNT( * ) ) AS col2, 65 + - 97 col1
----
1
-32

skipif mysql # not compatible
query II rowsort label-2661
SELECT DISTINCT - ( - COUNT ( * ) ) AS col2, 65 + - 97 col1
----
1
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT 13 DIV - - 9 + 16 + + 45
----
62

skipif mysql # not compatible
query I rowsort label-2662
SELECT 13 / - - 9 + 16 + + 45
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL - - MAX( 82 ) * - 59 + + 20
----
-4818

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - - MAX ( 82 ) * - 59 + + 20
----
-4818

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2664
SELECT COUNT( * ) * - COALESCE ( - + 96, 47 ) + 63 + + 53 - + 94 DIV + NULLIF ( 5, + - 12 ) AS col1
----
194

skipif mysql # not compatible
query I rowsort label-2664
SELECT COUNT ( * ) * - COALESCE ( - + 96, 47 ) + 63 + + 53 - + 94 / + NULLIF ( 5, + - 12 ) AS col1
----
194

query I rowsort
SELECT - NULLIF ( - 43, + 63 ) + 12 + - + 75 * 86
----
-6395

onlyif mysql # DIV for integer division: 
query II rowsort label-2666
SELECT ALL + 16 DIV + - 62 AS col1, 80 DIV - - 71
----
0
1

skipif mysql # not compatible
query II rowsort label-2666
SELECT ALL + 16 / + - 62 AS col1, 80 / - - 71
----
0
1

query I rowsort
SELECT DISTINCT - 62 * 80 * 96 + - - 53 * CASE - ( ( 47 ) ) WHEN - AVG ( DISTINCT - - 82 ) THEN + + 97 - + + 74 WHEN - 3 - + 69 THEN NULL END + - + 85 col1
----
NULL

query I rowsort
SELECT DISTINCT - 7 * + - 29 * + ( + 60 ) + - 24 AS col0
----
12156

query I rowsort
SELECT - 44 * + 18 AS col0
----
-792

query I rowsort
SELECT DISTINCT + ( CASE - 38 WHEN + 42 THEN - 50 / 22 - 52 ELSE NULL END ) * 88 * - + ( - 68 ) - + 3
----
NULL

query I rowsort
SELECT - 8 - + + 16 col0
----
-24

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

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

query II rowsort
SELECT + 19, + 22 AS col2
----
19
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT + COUNT( * ) * 74 * - ( - - 55 ) AS col2
----
-4070

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + COUNT ( * ) * 74 * - ( - - 55 ) AS col2
----
-4070

query II rowsort
SELECT ALL + 74, - 34 AS col1
----
74
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2677
SELECT ALL 90 DIV - + 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL 90 / - + 50 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 22 - + 92 AS col2
----
-70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT ALL + 4 DIV 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL + 4 / 45 AS col0
----
0

query I rowsort
SELECT + ( + ( + + 90 ) ) * - + 53 + 18
----
-4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2682
SELECT COUNT( * ) AS col1, - 48 + + MAX( DISTINCT - CAST( + 28 AS SIGNED ) )
----
1
-76

skipif mysql # not compatible
query II rowsort label-2682
SELECT COUNT ( * ) AS col1, - 48 + + MAX ( DISTINCT - CAST ( + 28 AS INTEGER ) )
----
1
-76

query I rowsort
SELECT DISTINCT 71 * + + CASE + ( + 16 ) WHEN - + 96 THEN 67 ELSE - 22 END
----
-1562

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT - CASE + 51 WHEN + 33 * - 88 * + - SUM( + + 87 ) + 50 THEN - 22 END + + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT - CASE + 51 WHEN + 33 * - 88 * + - SUM ( + + 87 ) + 50 THEN - 22 END + + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT + + 27 + - COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2685
SELECT + + 27 + - COUNT ( * ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL - COUNT( ALL - - COALESCE ( - 22, - 51 * 20 + + + 6 * + + 71 + + 24, 55 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL - COUNT ( ALL - - COALESCE ( - 22, - 51 * 20 + + + 6 * + + 71 + + 24, 55 ) ) AS col1
----
-1

query II rowsort
SELECT - 61 AS col2, + 27 * + ( + - 37 ) AS col2
----
-61
-999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT ALL 76 + 11 + + 18 * - 33 - - 85 + - 36 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL 76 + 11 + + 18 * - 33 - - 85 + - 36 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2689
SELECT + 46 * + - CASE - 32 WHEN - 38 THEN NULL WHEN + COALESCE ( - 27, - COUNT( * ) DIV SUM( DISTINCT - 95 ) * + 89 * + 13 + COALESCE ( - MIN( DISTINCT - ( - 17 ) ), + 24 ) ) THEN + ( 88 ) ELSE + 37 END DIV + COUNT( * ) - - 3
----
-1699

skipif mysql # not compatible
query I rowsort label-2689
SELECT + 46 * + - CASE - 32 WHEN - 38 THEN NULL WHEN + COALESCE ( - 27, - COUNT ( * ) / SUM ( DISTINCT - 95 ) * + 89 * + 13 + COALESCE ( - MIN ( DISTINCT - ( - 17 ) ), + 24 ) ) THEN + ( 88 ) ELSE + 37 END / + COUNT ( * ) - - 3
----
-1699

query I rowsort
SELECT ALL 90 + 17 + 12 - 25 + - 11 - + NULLIF ( - - 42, - 3 ) AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT DISTINCT + 39 + + 21 + + 30 * - 94 / - 10 * - 6 + CAST( NULL AS SIGNED ) + - 57 / - ( 7 ) + + + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + 39 + + 21 + + 30 * - 94 / - 10 * - 6 + CAST ( NULL AS INTEGER ) + - 57 / - ( 7 ) + + + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT MIN( - 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-2692
SELECT MIN ( - 73 ) AS col0
----
-73

query I rowsort
SELECT ALL ( 44 ) + 3
----
47

query I rowsort
SELECT + + 31 - + 1 AS col2
----
30

query I rowsort
SELECT + COALESCE ( - 39, 96 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT ALL + NULLIF ( NULLIF ( + - 80, + COUNT( * ) * 70 - AVG ( ALL - 96 ) ), 84 * - ( 50 ) ) + - 83 + - + COUNT( * ) AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL + NULLIF ( NULLIF ( + - 80, + COUNT ( * ) * 70 - AVG ( ALL - 96 ) ), 84 * - ( 50 ) ) + - 83 + - + COUNT ( * ) AS col1
----
-164

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

skipif mysql # not compatible
query I rowsort label-2697
SELECT + + 81 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 76 + + + 85 + 54 + 70 - + 97
----
188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2699
SELECT ALL + COUNT( * ) DIV 63 + 33 + 24 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL + COUNT ( * ) / 63 + 33 + 24 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT - ( COUNT( * ) ) * + 5 - - 9 - - 67 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2700
SELECT - ( COUNT ( * ) ) * + 5 - - 9 - - 67 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2701
SELECT - + 43 DIV - 75 - - 70 + + + 74 - COUNT( * ) + - 35 - + 69 - + 88 * 8 * + - ( - + 40 ), - 21 * + 99 AS col0
----
-28121
-2079

skipif mysql # not compatible
query II rowsort label-2701
SELECT - + 43 / - 75 - - 70 + + + 74 - COUNT ( * ) + - 35 - + 69 - + 88 * 8 * + - ( - + 40 ), - 21 * + 99 AS col0
----
-28121
-2079

query I rowsort
SELECT + 56 * - 31
----
-1736

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT - 13 * + 20 * - - SUM( ALL + 25 ) + 19 AS col2
----
-6481

skipif mysql # not compatible
query I rowsort label-2703
SELECT - 13 * + 20 * - - SUM ( ALL + 25 ) + 19 AS col2
----
-6481

query I rowsort
SELECT - 50 * + 20 + 83
----
-917

query II rowsort
SELECT ( - - 21 ) AS col1, + 96 AS col1
----
21
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL + MIN( DISTINCT 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL + MIN ( DISTINCT 62 ) AS col0
----
62

query II rowsort
SELECT - 14 * 6, + 32 * + 13 col1
----
-84
416

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT + ( - 94 ) * COUNT( * ) - - 25
----
-69

skipif mysql # not compatible
query I rowsort label-2708
SELECT + ( - 94 ) * COUNT ( * ) - - 25
----
-69

query I rowsort
SELECT ALL + COALESCE ( - NULLIF ( + COALESCE ( - 45, 50 ), + + 37 * - - 49 ), - 58 - + - 82 )
----
45

query I rowsort
SELECT ALL - 63 * 84
----
-5292

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT + COUNT( * ) * CASE + 45 WHEN + 9 THEN NULL WHEN + COUNT( 63 ) + + 37 + + 86 THEN 14 WHEN - NULLIF ( 5, - + 83 ) + + 58 THEN NULL END + - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT + COUNT ( * ) * CASE + 45 WHEN + 9 THEN NULL WHEN + COUNT ( 63 ) + + 37 + + 86 THEN 14 WHEN - NULLIF ( 5, - + 83 ) + + 58 THEN NULL END + - + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL + SUM( + 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + SUM ( + 43 ) AS col1
----
43

query I rowsort
SELECT ( 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2714
SELECT ALL + 0 * + - 39 AS col2, + SUM( 31 )
----
0
31

skipif mysql # not compatible
query II rowsort label-2714
SELECT ALL + 0 * + - 39 AS col2, + SUM ( 31 )
----
0
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT - COALESCE ( 68, - COUNT( * ), - 67 * 46 ) + 72 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2715
SELECT - COALESCE ( 68, - COUNT ( * ), - 67 * 46 ) + 72 AS col2
----
4

query I rowsort
SELECT DISTINCT + 91 * 32
----
2912

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2717
SELECT ALL CAST( - 28 AS SIGNED ) AS col2, 87 AS col0
----
-28
87

skipif mysql # not compatible
query II rowsort label-2717
SELECT ALL CAST ( - 28 AS INTEGER ) AS col2, 87 AS col0
----
-28
87

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

skipif mysql # not compatible
query I rowsort label-2718
SELECT - CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * ( + - 36 )
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( 84, + 49 / + - 58 ) * + 40 * 4 + - + 64 + 79
----
-13425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2720
SELECT - COALESCE ( - 50, - CASE + 20 WHEN - COALESCE ( + 92, - - 70 ) * 30 THEN - + 78 WHEN 96 THEN NULL ELSE NULL END, + CASE - 83 WHEN 76 * + - MIN( - 25 ) / - COUNT( * ) + - 17 + - 33 * - 21 * 38 * + - ( - 47 ) * + COUNT( * ) THEN - 92 END + + 68 * + COUNT( * ) + - COALESCE ( + 56, + 19 * + 45 ) - + 18 / + CAST( + 60 AS SIGNED ) ) - + CASE - 7 WHEN ( 11 ) * 5 THEN + ( + 62 ) / CAST( NULL AS SIGNED ) + 79 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT - COALESCE ( - 50, - CASE + 20 WHEN - COALESCE ( + 92, - - 70 ) * 30 THEN - + 78 WHEN 96 THEN NULL ELSE NULL END, + CASE - 83 WHEN 76 * + - MIN ( - 25 ) / - COUNT ( * ) + - 17 + - 33 * - 21 * 38 * + - ( - 47 ) * + COUNT ( * ) THEN - 92 END + + 68 * + COUNT ( * ) + - COALESCE ( + 56, + 19 * + 45 ) - + 18 / + CAST ( + 60 AS INTEGER ) ) - + CASE - 7 WHEN ( 11 ) * 5 THEN + ( + 62 ) / CAST ( NULL AS INTEGER ) + 79 END AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 10 * - + 5 + + 56 AS col1
----
106

query I rowsort
SELECT DISTINCT - - 37 + + 57 * - ( - + 37 ) * 31 AS col0
----
65416

query I rowsort
SELECT - + ( - - 88 ) + + 10 AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2725
SELECT ALL - 66 + CAST( + 57 AS SIGNED ) * - 73 AS col0, + COUNT( - 36 ) * - + 92
----
-4227
-92

skipif mysql # not compatible
query II rowsort label-2725
SELECT ALL - 66 + CAST ( + 57 AS INTEGER ) * - 73 AS col0, + COUNT ( - 36 ) * - + 92
----
-4227
-92

query I rowsort
SELECT - - 60 + ( CASE ( - 85 ) WHEN + 51 - - 35 THEN 93 * + + 15 - 88 WHEN - 77 THEN NULL END ) + - 87 * - - ( + + 16 ) + - - 43 / - 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT - + 85 + 66 DIV 20 * - - 86
----
173

skipif mysql # not compatible
query I rowsort label-2727
SELECT - + 85 + 66 / 20 * - - 86
----
173

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

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

query I rowsort
SELECT ALL - - 95 + 5 AS col0
----
100

query I rowsort
SELECT DISTINCT + + 33 + - 23 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2731
SELECT DISTINCT - 72 + 46 + - 97 * + - NULLIF ( - CASE + ( 55 ) WHEN + 10 + 1 THEN + ( + - 9 ) WHEN ( + + 70 ) THEN - 57 ELSE + - CASE - 74 WHEN COUNT( * ) / - + COUNT( * ) * + 9 * + COUNT( * ) * + 78 * - 32 + 22 THEN + ( - 22 ) WHEN + COUNT( * ) * - COUNT( 83 ) + - - 53 + - 35 + + CAST( NULL AS SIGNED ) / - - 82 THEN - 34 END END, - COALESCE ( - CASE + + 77 WHEN + 36 * 3 + - + CAST( MIN( - 36 ) AS SIGNED ) THEN + 24 ELSE NULL END, - 42 ) * ( 12 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT - 72 + 46 + - 97 * + - NULLIF ( - CASE + ( 55 ) WHEN + 10 + 1 THEN + ( + - 9 ) WHEN ( + + 70 ) THEN - 57 ELSE + - CASE - 74 WHEN COUNT ( * ) / - + COUNT ( * ) * + 9 * + COUNT ( * ) * + 78 * - 32 + 22 THEN + ( - 22 ) WHEN + COUNT ( * ) * - COUNT ( 83 ) + - - 53 + - 35 + + CAST ( NULL AS INTEGER ) / - - 82 THEN - 34 END END, - COALESCE ( - CASE + + 77 WHEN + 36 * 3 + - + CAST ( MIN ( - 36 ) AS INTEGER ) THEN + 24 ELSE NULL END, - 42 ) * ( 12 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT COUNT( * ) + 65 + 35
----
101

skipif mysql # not compatible
query I rowsort label-2732
SELECT COUNT ( * ) + 65 + 35
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2733
SELECT - + ( + 46 ) AS col0, + 78 + + CAST( NULL AS SIGNED ) - + COALESCE ( - 88, + 20, - + 66 ) AS col1
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-2733
SELECT - + ( + 46 ) AS col0, + 78 + + CAST ( NULL AS INTEGER ) - + COALESCE ( - 88, + 20, - + 66 ) AS col1
----
-46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT NULLIF ( + COUNT( NULLIF ( + 31, - 38 ) ), + - 24 ) * + + 63 * 93 * - - 8
----
46872

skipif mysql # not compatible
query I rowsort label-2734
SELECT NULLIF ( + COUNT ( NULLIF ( + 31, - 38 ) ), + - 24 ) * + + 63 * 93 * - - 8
----
46872

query II rowsort
SELECT 58 AS col1, 44
----
58
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2736
SELECT + 96 DIV 40 + - 78
----
-76

skipif mysql # not compatible
query I rowsort label-2736
SELECT + 96 / 40 + - 78
----
-76

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

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

query I rowsort
SELECT ALL 97 * - 56 AS col0
----
-5432

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT 39 * + 85 * + SUM( - NULLIF ( - 63, - - 68 / + 39 ) ) * - + 3
----
-626535

skipif mysql # not compatible
query I rowsort label-2739
SELECT 39 * + 85 * + SUM ( - NULLIF ( - 63, - - 68 / + 39 ) ) * - + 3
----
-626535

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT DISTINCT 14 * + + NULLIF ( + - 92, SUM( + 4 ) ) AS col2
----
-1288

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT 14 * + + NULLIF ( + - 92, SUM ( + 4 ) ) AS col2
----
-1288

query I rowsort
SELECT DISTINCT 26 - + 32
----
-6

query I rowsort
SELECT ALL - 76 * 63
----
-4788

query I rowsort
SELECT ALL 61 * 99 AS col0
----
6039

query I rowsort
SELECT DISTINCT 96 * - + 66
----
-6336

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT 83 DIV 80 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2746
SELECT 83 / 80 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2747
SELECT + 32 * 92 + + 76 * SUM( DISTINCT - 3 ) AS col0, - ( + 3 ) * + 92
----
2716
-276

skipif mysql # not compatible
query II rowsort label-2747
SELECT + 32 * 92 + + 76 * SUM ( DISTINCT - 3 ) AS col0, - ( + 3 ) * + 92
----
2716
-276

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

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - COUNT ( * ) / 16
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2749
SELECT COUNT( 63 ) DIV + + 97 AS col0, 55 AS col1
----
0
55

skipif mysql # not compatible
query II rowsort label-2749
SELECT COUNT ( 63 ) / + + 97 AS col0, 55 AS col1
----
0
55

query I rowsort
SELECT ALL - 32 + - 75 AS col0
----
-107

query I rowsort
SELECT ALL + 30 + 12 AS col0
----
42

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

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

query I rowsort
SELECT DISTINCT - 14 * 37 AS col1
----
-518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2754
SELECT DISTINCT - - 85 + COUNT( * ) * - 29 * + 43 + - ( + + 29 ) DIV 81
----
-1162

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT - - 85 + COUNT ( * ) * - 29 * + 43 + - ( + + 29 ) / 81
----
-1162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2755
SELECT COUNT( * ) - - 78 + - 4 - - - COUNT( * ) + 23 DIV - + 62 - - SUM( - - ( - 65 ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2755
SELECT COUNT ( * ) - - 78 + - 4 - - - COUNT ( * ) + 23 / - + 62 - - SUM ( - - ( - 65 ) ) AS col1
----
9

query I rowsort
SELECT 41 * + 78 AS col1
----
3198

query I rowsort
SELECT ALL - 70 + 47
----
-23

query I rowsort
SELECT 28 * + - 2 AS col0
----
-56

query I rowsort
SELECT - ( - 60 ) AS col2
----
60

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

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

query I rowsort
SELECT DISTINCT - 36 + 59 * 57
----
3327

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL + COUNT( * ) + + + 69 + 97 AS col1
----
167

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + COUNT ( * ) + + + 69 + 97 AS col1
----
167

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT + COUNT( * ) * - ( + + 12 ) * + + COUNT( - NULLIF ( + - 10, - 85 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-2766
SELECT + COUNT ( * ) * - ( + + 12 ) * + + COUNT ( - NULLIF ( + - 10, - 85 ) )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2767
SELECT ALL - + 43 - 75 * - + 11 + + + 74 + + 59 DIV - COALESCE ( + ( - 78 ), 52, - COUNT( * ) ) * + + 37 * - CAST( + 66 AS SIGNED ) col1
----
856

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL - + 43 - 75 * - + 11 + + + 74 + + 59 / - COALESCE ( + ( - 78 ), 52, - COUNT ( * ) ) * + + 37 * - CAST ( + 66 AS INTEGER ) col1
----
856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT + ( - 56 ) * + ( + CAST( NULL AS SIGNED ) ) * NULLIF ( + ( + AVG ( - 13 ) ), - + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT + ( - 56 ) * + ( + CAST ( NULL AS INTEGER ) ) * NULLIF ( + ( + AVG ( - 13 ) ), - + 94 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT ALL - + SUM( ALL + - 13 ) / - CASE - + 43 WHEN + 58 / COUNT( * ) / - 59 * 71 * - COUNT( * ) * - - COUNT( * ) + 80 - COUNT( * ) * 79 * + 80 THEN NULL WHEN + ( CAST( NULL AS SIGNED ) ) THEN + 12 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - + SUM ( ALL + - 13 ) / - CASE - + 43 WHEN + 58 / COUNT ( * ) / - 59 * 71 * - COUNT ( * ) * - - COUNT ( * ) + 80 - COUNT ( * ) * 79 * + 80 THEN NULL WHEN + ( CAST ( NULL AS INTEGER ) ) THEN + 12 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2770
SELECT - 11 - - + ( AVG ( DISTINCT - 89 ) ) * + + CAST( NULL AS SIGNED ) * - 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT - 11 - - + ( AVG ( DISTINCT - 89 ) ) * + + CAST ( NULL AS INTEGER ) * - 15 col0
----
NULL

query I rowsort
SELECT 66 * + 33
----
2178

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

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

query I rowsort
SELECT 33 + - 82 * - 17
----
1427

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT 39 DIV 27
----
1

skipif mysql # not compatible
query I rowsort label-2774
SELECT 39 / 27
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2775
SELECT 44, + NULLIF ( - ( 19 ), - + 41 ) DIV + 98 * + 84 + 48 col2
----
44
48

skipif mysql # not compatible
query II rowsort label-2775
SELECT 44, + NULLIF ( - ( 19 ), - + 41 ) / + 98 * + 84 + 48 col2
----
44
48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT ALL 67 DIV + 44
----
1

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL 67 / + 44
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT 38 * ( COUNT( * ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2778
SELECT 38 * ( COUNT ( * ) ) AS col1
----
38

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT DISTINCT - 9 AS col1, - ( - 27 ) - - - COUNT( * ) * - 72
----
-9
99

skipif mysql # not compatible
query II rowsort label-2780
SELECT DISTINCT - 9 AS col1, - ( - 27 ) - - - COUNT ( * ) * - 72
----
-9
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT SUM( ALL 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-2781
SELECT SUM ( ALL 14 ) AS col2
----
14

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT COUNT( DISTINCT 83 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2784
SELECT COUNT ( DISTINCT 83 ) col2
----
1

query I rowsort
SELECT ALL 71 * + - 52 * + + 42 AS col2
----
-155064

onlyif mysql # aggregate syntax: 
query II rowsort label-2786
SELECT ALL COALESCE ( - SUM( - - 64 ), + - MAX( DISTINCT 51 ) ) + - 23 AS col2, ( - MAX( - + 49 ) ) AS col0
----
-87
49

skipif mysql # not compatible
query II rowsort label-2786
SELECT ALL COALESCE ( - SUM ( - - 64 ), + - MAX ( DISTINCT 51 ) ) + - 23 AS col2, ( - MAX ( - + 49 ) ) AS col0
----
-87
49

query I rowsort
SELECT + 65 * - + 65 + 35
----
-4190

query I rowsort
SELECT DISTINCT 82 + 34 * - 38 AS col0
----
-1210

query II rowsort
SELECT - 69 AS col0, - 14
----
-69
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT 97 + - MIN( DISTINCT 16 ) * 91
----
-1359

skipif mysql # not compatible
query I rowsort label-2790
SELECT 97 + - MIN ( DISTINCT 16 ) * 91
----
-1359

query I rowsort
SELECT 43 + - 31 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT + + 74 * 33 + - 76 + - - COUNT( ALL - - 31 )
----
2367

skipif mysql # not compatible
query I rowsort label-2792
SELECT + + 74 * 33 + - 76 + - - COUNT ( ALL - - 31 )
----
2367

onlyif mysql # DIV for integer division: 
query I rowsort label-2793
SELECT - - 38 DIV 18 * - 2
----
-4

skipif mysql # not compatible
query I rowsort label-2793
SELECT - - 38 / 18 * - 2
----
-4

query I rowsort
SELECT ALL 66 + + 89 + - 21 AS col2
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-2795
SELECT DISTINCT + - 70 DIV + + ( + 40 ) + 86 col0
----
85

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT + - 70 / + + ( + 40 ) + 86 col0
----
85

query I rowsort
SELECT ALL - - 8 - + 54 + - 11 * + 96 AS col0
----
-1102

query I rowsort
SELECT + 99 * - + 56 * + 26 - 62 AS col1
----
-144206

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

query I rowsort
SELECT ALL - - 32 * 11 AS col2
----
352

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

query I rowsort
SELECT + 99 * + + 72
----
7128

query I rowsort
SELECT + 8 + + + 94 - 68
----
34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2804
SELECT ALL + COUNT( * ) AS col2, CAST( - ( CASE - - 50 WHEN + - 75 THEN + 78 + + MAX( 38 ) - - - 90 * - + 48 WHEN 91 * - 80 THEN + COUNT( * ) + - MIN( ALL + ( + - CAST( NULL AS SIGNED ) ) ) END ) AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2804
SELECT ALL + COUNT ( * ) AS col2, CAST ( - ( CASE - - 50 WHEN + - 75 THEN + 78 + + MAX ( 38 ) - - - 90 * - + 48 WHEN 91 * - 80 THEN + COUNT ( * ) + - MIN ( ALL + ( + - CAST ( NULL AS INTEGER ) ) ) END ) AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT - 62 * + SUM( ALL - + 41 )
----
2542

skipif mysql # not compatible
query I rowsort label-2805
SELECT - 62 * + SUM ( ALL - + 41 )
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT - 79 + + 19 * + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-2806
SELECT - 79 + + 19 * + COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL COUNT( ALL + 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL COUNT ( ALL + 36 ) AS col2
----
1

query II rowsort
SELECT ALL ( 96 ), 60 * - 62 * - 50 AS col0
----
96
186000

query II rowsort
SELECT ALL + 49 * - 92 AS col2, - 48
----
-4508
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - COUNT( * ) + - COALESCE ( + 42, - 28 ) + + 6 - 10
----
-47

skipif mysql # not compatible
query I rowsort label-2810
SELECT - COUNT ( * ) + - COALESCE ( + 42, - 28 ) + + 6 - 10
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT - NULLIF ( - 55, + + ( - 75 ) - 61 * - + AVG ( 76 ) ) DIV 97 + 51
----
51

skipif mysql # not compatible
query I rowsort label-2811
SELECT - NULLIF ( - 55, + + ( - 75 ) - 61 * - + AVG ( 76 ) ) / 97 + 51
----
51

query I rowsort
SELECT - 8 + + 99 + + + ( + + 95 ) * + 44 * - - 43
----
179831

query I rowsort
SELECT ALL - 13 + 46 AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2814
SELECT DISTINCT + 59 / - - CAST( NULL AS SIGNED ) / - - 26 * + - 35 / - 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT + 59 / - - CAST ( NULL AS INTEGER ) / - - 26 * + - 35 / - 8 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT - NULLIF ( 43, + + 94 ) DIV 45 + + 93
----
93

skipif mysql # not compatible
query I rowsort label-2815
SELECT - NULLIF ( 43, + + 94 ) / 45 + + 93
----
93

query I rowsort
SELECT DISTINCT + 59 * 7 AS col2
----
413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2817
SELECT - ( - 27 ) DIV - - CAST( NULLIF ( - 31, - 54 * - ( + COUNT( * ) ) + + 70 + - 17 ) AS SIGNED ) + - + 53 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2817
SELECT - ( - 27 ) / - - CAST ( NULLIF ( - 31, - 54 * - ( + COUNT ( * ) ) + + 70 + - 17 ) AS INTEGER ) + - + 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT + COUNT( DISTINCT - - 12 )
----
1

skipif mysql # not compatible
query I rowsort label-2818
SELECT + COUNT ( DISTINCT - - 12 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT DISTINCT 68 * 7 * 26 + + COUNT( * ) + - + 5 * - - 83 + 80
----
12042

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT 68 * 7 * 26 + + COUNT ( * ) + - + 5 * - - 83 + 80
----
12042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2820
SELECT ALL 11 * 65 * CASE 34 WHEN - - CAST( NULL AS SIGNED ) * + 27 * 62 + - + 21 - 79 + - + CAST( COUNT( * ) AS SIGNED ) + 71 * AVG ( + - 56 ) * - 35 THEN - 0 WHEN ( 7 ) + CAST( - MIN( DISTINCT - 74 ) AS SIGNED ) THEN NULL WHEN + 67 * + 79 + + COALESCE ( 15, + 71 * 41, - 73 ) / - 45 + + COUNT( * ) THEN NULL WHEN - 88 * - + 67 - + 65 THEN NULL END + 30 + COALESCE ( - 31, 93 - - - 86 / 58 + + - 92 + + 47, + COUNT( * ) ) / - ( 93 ) - + - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL 11 * 65 * CASE 34 WHEN - - CAST ( NULL AS INTEGER ) * + 27 * 62 + - + 21 - 79 + - + CAST ( COUNT ( * ) AS INTEGER ) + 71 * AVG ( + - 56 ) * - 35 THEN - 0 WHEN ( 7 ) + CAST ( - MIN ( DISTINCT - 74 ) AS INTEGER ) THEN NULL WHEN + 67 * + 79 + + COALESCE ( 15, + 71 * 41, - 73 ) / - 45 + + COUNT ( * ) THEN NULL WHEN - 88 * - + 67 - + 65 THEN NULL END + 30 + COALESCE ( - 31, 93 - - - 86 / 58 + + - 92 + + 47, + COUNT ( * ) ) / - ( 93 ) - + - 75 AS col2
----
NULL

query I rowsort
SELECT - ( - 69 ) * - 0
----
0

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

skipif mysql # not compatible
query I rowsort label-2822
SELECT - MIN ( DISTINCT - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL COUNT( * ) * + 48 * COUNT( * ) + - - 5
----
53

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL COUNT ( * ) * + 48 * COUNT ( * ) + - - 5
----
53

query I rowsort
SELECT ALL - 63 * - - 11 - 90 * 72 AS col1
----
-7173

query I rowsort
SELECT ALL + + ( - - 72 ) col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT + 59 * + MIN( DISTINCT + ( + 21 ) )
----
1239

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + 59 * + MIN ( DISTINCT + ( + 21 ) )
----
1239

query I rowsort
SELECT + - 48 - - 44 + - 28 + + 77
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL MAX( DISTINCT 99 ) * - - 49 + - 91
----
4760

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL MAX ( DISTINCT 99 ) * - - 49 + - 91
----
4760

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

query I rowsort
SELECT ALL CASE + 39 WHEN - 44 THEN - 7 + + 30 + + 55 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2831
SELECT - + COUNT( 17 ) + COALESCE ( - + 68, - + 98 * + 80 + - SUM( + + CAST( NULL AS SIGNED ) ), 64 )
----
-69

skipif mysql # not compatible
query I rowsort label-2831
SELECT - + COUNT ( 17 ) + COALESCE ( - + 68, - + 98 * + 80 + - SUM ( + + CAST ( NULL AS INTEGER ) ), 64 )
----
-69

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2833
SELECT DISTINCT ( - MAX( ALL - COALESCE ( - 56, 44, COALESCE ( 43, + 65 + + - 25, - 60 * 7 ) + - - 86 * + 46, 22 DIV + 83 + + - ( - 51 ) + 92 - - - ( - CAST( NULL AS SIGNED ) ) ) ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT ( - MAX ( ALL - COALESCE ( - 56, 44, COALESCE ( 43, + 65 + + - 25, - 60 * 7 ) + - - 86 * + 46, 22 / + 83 + + - ( - 51 ) + 92 - - - ( - CAST ( NULL AS INTEGER ) ) ) ) ) AS col2
----
-56

query I rowsort
SELECT + 38 * + 64
----
2432

query I rowsort
SELECT DISTINCT + 72 * + 87
----
6264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2836
SELECT - 32 * - CAST( + + 85 AS SIGNED ) AS col0
----
2720

skipif mysql # not compatible
query I rowsort label-2836
SELECT - 32 * - CAST ( + + 85 AS INTEGER ) AS col0
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT - NULLIF ( NULLIF ( + 14, - 0 ), + + CASE + COUNT( * ) WHEN - 42 + + 58 + 66 + 54 / 55 * 56 + - COUNT( * ) + - + COUNT( * ) / 62 - + - 90 + + ( + - ( + NULLIF ( + + 31, + 77 ) ) ) THEN + 76 WHEN - 4 + + 31 THEN NULL END ) * + COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-2837
SELECT - NULLIF ( NULLIF ( + 14, - 0 ), + + CASE + COUNT ( * ) WHEN - 42 + + 58 + 66 + 54 / 55 * 56 + - COUNT ( * ) + - + COUNT ( * ) / 62 - + - 90 + + ( + - ( + NULLIF ( + + 31, + 77 ) ) ) THEN + 76 WHEN - 4 + + 31 THEN NULL END ) * + COUNT ( * ) AS col2
----
-14

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

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

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

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

query I rowsort
SELECT ALL - 18 + + 26
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2841
SELECT ALL + COUNT( * ) + + ( 33 ) DIV + NULLIF ( - COUNT( * ), - CASE + MAX( ALL + + 16 ) WHEN + 70 THEN NULL ELSE + - 49 END * - - CASE - CAST( NULL AS SIGNED ) WHEN ( - 38 ) THEN 29 + 2 END )
----
-32

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + COUNT ( * ) + + ( 33 ) / + NULLIF ( - COUNT ( * ), - CASE + MAX ( ALL + + 16 ) WHEN + 70 THEN NULL ELSE + - 49 END * - - CASE - CAST ( NULL AS INTEGER ) WHEN ( - 38 ) THEN 29 + 2 END )
----
-32

query I rowsort
SELECT ALL 96 * - 86
----
-8256

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2843
SELECT DISTINCT 64 DIV + 11 + + 75 * + + 75 + + COUNT( * ) - - NULLIF ( + + MAX( ALL + 95 ), + + 88 + + - 66 ) DIV 41, - COUNT( * ) col1
----
5633
-1

skipif mysql # not compatible
query II rowsort label-2843
SELECT DISTINCT 64 / + 11 + + 75 * + + 75 + + COUNT ( * ) - - NULLIF ( + + MAX ( ALL + 95 ), + + 88 + + - 66 ) / 41, - COUNT ( * ) col1
----
5633
-1

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

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

query I rowsort
SELECT 55 * - 44 + + NULLIF ( 3, - 47 * - 19 * + 67 * + 13 + - CASE + 78 WHEN 61 THEN + - ( - 18 ) END )
----
-2417

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT - 18 + - - COALESCE ( + COUNT( * ), 69 ) - + 49 * + 67 + COUNT( * ) AS col2
----
-3299

skipif mysql # not compatible
query I rowsort label-2846
SELECT - 18 + - - COALESCE ( + COUNT ( * ), 69 ) - + 49 * + 67 + COUNT ( * ) AS col2
----
-3299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2847
SELECT ALL 38 DIV + 14 + + MIN( ALL 55 )
----
57

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL 38 / + 14 + + MIN ( ALL 55 )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2848
SELECT - 95 + COUNT( * ) + + 79 + - 78 DIV + + MAX( DISTINCT 41 )
----
-16

skipif mysql # not compatible
query I rowsort label-2848
SELECT - 95 + COUNT ( * ) + + 79 + - 78 / + + MAX ( DISTINCT 41 )
----
-16

query I rowsort
SELECT - 12 * - 36
----
432

query I rowsort
SELECT ALL + 10 * + 79 AS col1
----
790

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2851
SELECT 12 AS col2, - NULLIF ( + 78, - - 16 * 13 + 86 ) * + - 21 + + + COALESCE ( - ( + 54 ), - - 94 * + 13 - - MAX( - + 51 ) - + 44 DIV COUNT( * ), 66 ) + + 74
----
12
1658

skipif mysql # not compatible
query II rowsort label-2851
SELECT 12 AS col2, - NULLIF ( + 78, - - 16 * 13 + 86 ) * + - 21 + + + COALESCE ( - ( + 54 ), - - 94 * + 13 - - MAX ( - + 51 ) - + 44 / COUNT ( * ), 66 ) + + 74
----
12
1658

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2852
SELECT + 58 DIV 7 + COUNT( * ) AS col0, 56 col1
----
9
56

skipif mysql # not compatible
query II rowsort label-2852
SELECT + 58 / 7 + COUNT ( * ) AS col0, 56 col1
----
9
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT - 49 * - - 65 - NULLIF ( 24, + - 12 + + AVG ( DISTINCT + 42 ) * + 25 * + + 49 + - MAX( - 36 ) * - AVG ( - 63 ) * - COALESCE ( 67, - 45 * 59 ) ) + + 45 + - COUNT( * ) * 55 * + COUNT( * ) + - + 77
----
-3296

skipif mysql # not compatible
query I rowsort label-2853
SELECT - 49 * - - 65 - NULLIF ( 24, + - 12 + + AVG ( DISTINCT + 42 ) * + 25 * + + 49 + - MAX ( - 36 ) * - AVG ( - 63 ) * - COALESCE ( 67, - 45 * 59 ) ) + + 45 + - COUNT ( * ) * 55 * + COUNT ( * ) + - + 77
----
-3296

query I rowsort
SELECT + 65 + 87
----
152

query I rowsort
SELECT ALL - - 37 * - 71
----
-2627

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT NULLIF ( + MIN( - + 87 ), - 27 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2856
SELECT NULLIF ( + MIN ( - + 87 ), - 27 ) AS col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2857
SELECT ALL COALESCE ( + COUNT( * ), 59 * - 92 ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL COALESCE ( + COUNT ( * ), 59 * - 92 ) / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT + - COALESCE ( + - 52, - - 29 + - + COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-2858
SELECT + - COALESCE ( + - 52, - - 29 + - + COUNT ( * ) )
----
52

query II rowsort
SELECT + ( + - ( + 94 ) ) AS col0, + 88 AS col1
----
-94
88

query I rowsort
SELECT 75 + - - 41 AS col2
----
116

query II rowsort
SELECT - 33, + ( + 65 ) AS col2
----
-33
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2862
SELECT - 65 * - 24 + COUNT( * ) AS col1, - 67
----
1561
-67

skipif mysql # not compatible
query II rowsort label-2862
SELECT - 65 * - 24 + COUNT ( * ) AS col1, - 67
----
1561
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2863
SELECT ALL - 23, - 2 DIV + ( - + COUNT( + 18 ) ) AS col0
----
-23
2

skipif mysql # not compatible
query II rowsort label-2863
SELECT ALL - 23, - 2 / + ( - + COUNT ( + 18 ) ) AS col0
----
-23
2

query I rowsort
SELECT NULLIF ( - 9, 15 * + + 98 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2865
SELECT ALL - 45 + + + 15 * + COALESCE ( + 80, - 36 + - 9 + + 21 + + 40 + + + COUNT( * ), 96 * - - CAST( NULL AS SIGNED ) )
----
1155

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - 45 + + + 15 * + COALESCE ( + 80, - 36 + - 9 + + 21 + + 40 + + + COUNT ( * ), 96 * - - CAST ( NULL AS INTEGER ) )
----
1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2866
SELECT + 52 * - CAST( - MAX( + 63 ) AS SIGNED ) + 51 + - + COUNT( * )
----
3326

skipif mysql # not compatible
query I rowsort label-2866
SELECT + 52 * - CAST ( - MAX ( + 63 ) AS INTEGER ) + 51 + - + COUNT ( * )
----
3326

query I rowsort
SELECT 44 + + ( - - 43 ) AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT ALL - CAST( 25 AS SIGNED ) * 60
----
-1500

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL - CAST ( 25 AS INTEGER ) * 60
----
-1500

query I rowsort
SELECT DISTINCT 56 + 23
----
79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT ALL 91 + 89 DIV - 81 col1
----
90

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL 91 + 89 / - 81 col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2872
SELECT CASE + MIN( ALL + CAST( NULL AS SIGNED ) ) WHEN 13 THEN + + 72 + 33 ELSE NULL END - 80 + - COUNT( * ) * - 65 * 93 + + + NULLIF ( - 43, 32 ) * 52 + + ( - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT CASE + MIN ( ALL + CAST ( NULL AS INTEGER ) ) WHEN 13 THEN + + 72 + 33 ELSE NULL END - 80 + - COUNT ( * ) * - 65 * 93 + + + NULLIF ( - 43, 32 ) * 52 + + ( - 81 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2873
SELECT 67 DIV + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2873
SELECT 67 / + 84 AS col0
----
0

query I rowsort
SELECT ALL 84 + - - NULLIF ( + - 77, - 56 / - - 24 )
----
7

query II rowsort
SELECT 73 * + 51 AS col0, - 88 * + + 91 col0
----
3723
-8008

query II rowsort
SELECT ALL 55 + - + 60 AS col0, ( + - 8 )
----
-5
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL - 87 + + MIN( + + 97 )
----
10

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL - 87 + + MIN ( + + 97 )
----
10

query II rowsort
SELECT 93 + - 79 AS col1, - 81 * 6 * - + 68 - - + 4 - - + ( - - 50 ) AS col1
----
14
33102

onlyif mysql # DIV for integer division: 
query I rowsort label-2879
SELECT ALL 48 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL 48 / + 72
----
0

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

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

query I rowsort
SELECT DISTINCT 83 * - 77 col1
----
-6391

query I rowsort
SELECT 12 + + 49 AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2883
SELECT 83 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-2883
SELECT 83 / 91
----
0

query I rowsort
SELECT DISTINCT - 69 - + 45 - 47 col1
----
-161

query I rowsort
SELECT DISTINCT - CASE 9 WHEN 4 - + 93 THEN + 47 END AS col2
----
NULL

query I rowsort
SELECT ALL 33 * - 19 AS col1
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT - ( + 72 ) * - + 53 * COUNT( * ) * + 50
----
190800

skipif mysql # not compatible
query I rowsort label-2887
SELECT - ( + 72 ) * - + 53 * COUNT ( * ) * + 50
----
190800

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2889
SELECT 10 * - 91 AS col0, + 19 DIV - 81
----
-910
0

skipif mysql # not compatible
query II rowsort label-2889
SELECT 10 * - 91 AS col0, + 19 / - 81
----
-910
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT + 52 - + 22 AS col1, COUNT( ALL - ( - 61 ) )
----
30
1

skipif mysql # not compatible
query II rowsort label-2890
SELECT + 52 - + 22 AS col1, COUNT ( ALL - ( - 61 ) )
----
30
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2891
SELECT 89 * + 59 AS col1, - COUNT( * ) AS col0
----
5251
-1

skipif mysql # not compatible
query II rowsort label-2891
SELECT 89 * + 59 AS col1, - COUNT ( * ) AS col0
----
5251
-1

query I rowsort
SELECT ALL - + 9 * - 29 AS col1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL - - ( - + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL - - ( - + COUNT ( * ) ) col0
----
-1

query II rowsort
SELECT DISTINCT - - 84 * - 94 * 12 + 75 AS col0, 68
----
-94677
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT - ( - - 19 ) + + COUNT( * ) + - 6 * - ( - 35 ) + 37 * + 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - ( - - 19 ) + + COUNT ( * ) + - 6 * - ( - 35 ) + 37 * + 6 AS col0
----
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL - + COUNT( * ) + + ( - 95 )
----
-96

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL - + COUNT ( * ) + + ( - 95 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT + 11 * - SUM( ALL + 21 ) AS col1
----
-231

skipif mysql # not compatible
query I rowsort label-2898
SELECT + 11 * - SUM ( ALL + 21 ) AS col1
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2899
SELECT ALL - + ( - + ( + 85 ) ) + - 88 * 87 + - 99 + 58 * + CAST( NULL AS SIGNED ) * + + 55 * - 16 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - + ( - + ( + 85 ) ) + - 88 * 87 + - 99 + 58 * + CAST ( NULL AS INTEGER ) * + + 55 * - 16 col2
----
NULL

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

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

query II rowsort
SELECT 59 * 43, 18 AS col2
----
2537
18

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

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

query I rowsort
SELECT ALL - 17 + 55 col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2904
SELECT 48 * 66 DIV - 80
----
-39

skipif mysql # not compatible
query I rowsort label-2904
SELECT 48 * 66 / - 80
----
-39

query I rowsort
SELECT 58 * - - 8 * ( + 63 ) * + + 91
----
2660112

query I rowsort
SELECT 93 + - 75 + + + 58 AS col0
----
76

query I rowsort
SELECT ALL NULLIF ( 36, - 32 * 28 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT ALL 85 + COUNT( * ) * + + 10 AS col2, 39 - - + 24
----
95
63

skipif mysql # not compatible
query II rowsort label-2908
SELECT ALL 85 + COUNT ( * ) * + + 10 AS col2, 39 - - + 24
----
95
63

query I rowsort
SELECT ALL 43 * 64 * - 77 col1
----
-211904

query I rowsort
SELECT DISTINCT + 0 + + - 45 + - 98 + - 76 * + 35 + 19 * - 37 * 61
----
-45686

query II rowsort
SELECT - 65 AS col1, + 28
----
-65
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2912
SELECT DISTINCT 96 - 51 + 12 DIV + - NULLIF ( COALESCE ( - MAX( DISTINCT - 16 ), + 68 ), 58 ) + 93 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT 96 - 51 + 12 / + - NULLIF ( COALESCE ( - MAX ( DISTINCT - 16 ), + 68 ), 58 ) + 93 AS col2
----
138

query I rowsort
SELECT ALL - 28 * - + 45 * + 18 * 26 * + 62 AS col0
----
36560160

query I rowsort
SELECT 67 + + 25
----
92

query I rowsort
SELECT 73 * - 15 * + 65
----
-71175

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

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

query I rowsort
SELECT DISTINCT 42 * 34 AS col1
----
1428

query I rowsort
SELECT - ( 91 ) + 67 col2
----
-24

query II rowsort
SELECT ALL 33 col0, 60 - + + 64 + - 70 AS col0
----
33
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT + MIN( + ( - 82 ) ) + 38
----
-44

skipif mysql # not compatible
query I rowsort label-2920
SELECT + MIN ( + ( - 82 ) ) + 38
----
-44

query I rowsort
SELECT DISTINCT - 10 * - 5
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2922
SELECT ALL ( + CASE 85 WHEN + SUM( + 51 ) THEN + ( - + 59 ) * 17 + 38 * - 32 * 90 + 23 + - + 86 / + COALESCE ( + + COALESCE ( 28, CAST( 85 AS SIGNED ) + - 26 + - CAST( - 61 AS SIGNED ) * 93 + 51 + + 36 * + + CASE 80 WHEN - 49 / - 61 THEN - AVG ( - 51 ) WHEN + - COUNT( * ) THEN NULL ELSE NULL END - - 4 * - 18 - - 19 ), + CAST( + 96 AS SIGNED ) * + + COUNT( * ) ) WHEN - + 28 THEN NULL WHEN + - ( - 76 ) THEN NULL END ) - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL ( + CASE 85 WHEN + SUM ( + 51 ) THEN + ( - + 59 ) * 17 + 38 * - 32 * 90 + 23 + - + 86 / + COALESCE ( + + COALESCE ( 28, CAST ( 85 AS INTEGER ) + - 26 + - CAST ( - 61 AS INTEGER ) * 93 + 51 + + 36 * + + CASE 80 WHEN - 49 / - 61 THEN - AVG ( - 51 ) WHEN + - COUNT ( * ) THEN NULL ELSE NULL END - - 4 * - 18 - - 19 ), + CAST ( + 96 AS INTEGER ) * + + COUNT ( * ) ) WHEN - + 28 THEN NULL WHEN + - ( - 76 ) THEN NULL END ) - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT DISTINCT COUNT( * ) / - CASE + 29 WHEN + SUM( 47 ) THEN + 57 WHEN - 36 THEN + 41 * + + ( + - 65 ) - 13 + 64 * + + 83 + - COUNT( * ) + + 16 / - 59 * + 32 * 43 / - 52 * 73 * 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT COUNT ( * ) / - CASE + 29 WHEN + SUM ( 47 ) THEN + 57 WHEN - 36 THEN + 41 * + + ( + - 65 ) - 13 + 64 * + + 83 + - COUNT ( * ) + + 16 / - 59 * + 32 * 43 / - 52 * 73 * 82 END AS col2
----
NULL

query I rowsort
SELECT + 36 * 60
----
2160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL MIN( ALL 33 ) * 95
----
3135

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL MIN ( ALL 33 ) * 95
----
3135

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT 56 DIV + 36 - 85 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-2927
SELECT 56 / + 36 - 85 AS col0
----
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT + NULLIF ( - MIN( - 23 ), 85 - - 46 / 90 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2929
SELECT + NULLIF ( - MIN ( - 23 ), 85 - - 46 / 90 ) AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2930
SELECT + 5 + + 29 DIV 47 col0
----
5

skipif mysql # not compatible
query I rowsort label-2930
SELECT + 5 + + 29 / 47 col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2931
SELECT ALL NULLIF ( - 37, CAST( NULL AS SIGNED ) - - NULLIF ( + 30, + 18 * 96 ) ) * COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL NULLIF ( - 37, CAST ( NULL AS INTEGER ) - - NULLIF ( + 30, + 18 * 96 ) ) * COUNT ( * ) AS col1
----
-37

query I rowsort
SELECT NULLIF ( 90, + 83 + AVG ( 79 ) ) col1
----
90

query I rowsort
SELECT + 11 * 12
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT - ( 90 ) DIV 44 + 27 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2934
SELECT - ( 90 ) / 44 + 27 AS col2
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL MIN( ALL + 27 ) * CASE + COUNT( * ) WHEN 88 THEN NULL WHEN COUNT( * ) THEN + COUNT( * ) ELSE NULL END + - ( MIN( DISTINCT + 49 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL MIN ( ALL + 27 ) * CASE + COUNT ( * ) WHEN 88 THEN NULL WHEN COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END + - ( MIN ( DISTINCT + 49 ) ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL CASE COUNT( - 10 ) WHEN 91 THEN COUNT( * ) * - 69 WHEN 66 THEN NULL WHEN 19 THEN 81 ELSE NULL END * 60 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL CASE COUNT ( - 10 ) WHEN 91 THEN COUNT ( * ) * - 69 WHEN 66 THEN NULL WHEN 19 THEN 81 ELSE NULL END * 60 + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2938
SELECT COALESCE ( + 42, - COALESCE ( + COUNT( * ), + 26 DIV 14 + - 6 * - CAST( NULL AS SIGNED ) ), + 18 * + CAST( - 89 AS SIGNED ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2938
SELECT COALESCE ( + 42, - COALESCE ( + COUNT ( * ), + 26 / 14 + - 6 * - CAST ( NULL AS INTEGER ) ), + 18 * + CAST ( - 89 AS INTEGER ) ) AS col0
----
42

query I rowsort
SELECT 94 * - 59 + - 24 AS col1
----
-5570

query I rowsort
SELECT - 33 * - 9
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT ALL 28 * 62 + CAST( 93 AS SIGNED ) AS col1
----
1829

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL 28 * 62 + CAST ( 93 AS INTEGER ) AS col1
----
1829

query I rowsort
SELECT + NULLIF ( - 29, + 6 ) + 75
----
46

query I rowsort
SELECT + 97 + + 28 * 78
----
2281

onlyif mysql # DIV for integer division: 
query I rowsort label-2944
SELECT DISTINCT 71 * 71 + - 48 DIV 79 AS col1
----
5041

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT 71 * 71 + - 48 / 79 AS col1
----
5041

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT COALESCE ( - CASE WHEN NOT 79 >= 47 THEN + 94 - 1 END, 30 + 10 ) * - COALESCE ( + 92, - SUM( ALL 4 ) + + 35 ) + 38 AS col1
----
-3642

skipif mysql # not compatible
query I rowsort label-2946
SELECT COALESCE ( - CASE WHEN NOT 79 >= 47 THEN + 94 - 1 END, 30 + 10 ) * - COALESCE ( + 92, - SUM ( ALL 4 ) + + 35 ) + 38 AS col1
----
-3642

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL ( 19 ) * 23 + COUNT( * )
----
438

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL ( 19 ) * 23 + COUNT ( * )
----
438

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL + 95 * NULLIF ( NULLIF ( COUNT( * ), 4 + - 47 * + 86 ) * 18, 42 ) AS col0
----
1710

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + 95 * NULLIF ( NULLIF ( COUNT ( * ), 4 + - 47 * + 86 ) * 18, 42 ) AS col0
----
1710

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2949
SELECT DISTINCT ( + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT ( + AVG ( DISTINCT - CAST ( NULL AS REAL ) ) ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 14 * 81
----
1134

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

query I rowsort
SELECT - 43 + + 18
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL + 96 * - MIN( 48 ) AS col0
----
-4608

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL + 96 * - MIN ( 48 ) AS col0
----
-4608

query I rowsort
SELECT - COALESCE ( 98, 13, + 35 * - 46 ) * 96
----
-9408

query I rowsort
SELECT - 19 + 66
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2956
SELECT - COALESCE ( ( 98 ), + 9 ) DIV CASE WHEN NOT + AVG ( ALL 82 ) * COALESCE ( 41, 21 + AVG ( ALL + ( - 70 ) + + 33 ), + 23 ) BETWEEN ( 86 * - COUNT( * ) ) AND ( NULL ) THEN NULL WHEN NOT NULL IS NULL THEN + 75 ELSE + 88 DIV 95 - - 66 END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2956
SELECT - COALESCE ( ( 98 ), + 9 ) / CASE WHEN NOT + AVG ( ALL 82 ) * COALESCE ( 41, 21 + AVG ( ALL + ( - 70 ) + + 33 ), + 23 ) BETWEEN ( 86 * - COUNT ( * ) ) AND ( NULL ) THEN NULL WHEN NOT NULL IS NULL THEN + 75 ELSE + 88 / 95 - - 66 END AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2957
SELECT - 96 + + COALESCE ( COUNT( * ), + 95, + CAST( NULL AS SIGNED ) )
----
-95

skipif mysql # not compatible
query I rowsort label-2957
SELECT - 96 + + COALESCE ( COUNT ( * ), + 95, + CAST ( NULL AS INTEGER ) )
----
-95

query I rowsort
SELECT ALL ( - 34 )
----
-34

query I rowsort
SELECT - 7 + + 79 * ( 7 ) AS col2
----
546

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

query I rowsort
SELECT + 72 * - 65
----
-4680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT - CAST( AVG ( ALL 64 ) AS SIGNED ) + 43
----
-21

skipif mysql # not compatible
query I rowsort label-2962
SELECT - CAST ( AVG ( ALL 64 ) AS INTEGER ) + 43
----
-21

query I rowsort
SELECT + 89 + - 69 * - 44
----
3125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2964
SELECT DISTINCT CASE - 78 WHEN - CAST( NULL AS SIGNED ) / 45 THEN NULL ELSE - 37 - - 65 END
----
28

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT CASE - 78 WHEN - CAST ( NULL AS INTEGER ) / 45 THEN NULL ELSE - 37 - - 65 END
----
28

query I rowsort
SELECT ALL NULLIF ( - 71, 11 / 97 - - ( + 80 + + 66 ) ) AS col1
----
-71

query I rowsort
SELECT - 77 * + 27
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT SUM( - 84 ) * 6 AS col1
----
-504

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT SUM ( - 84 ) * 6 AS col1
----
-504

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT + 29 + MIN( DISTINCT 1 )
----
30

skipif mysql # not compatible
query I rowsort label-2970
SELECT + 29 + MIN ( DISTINCT 1 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT - MIN( - 27 ) * 96 AS col2
----
2592

skipif mysql # not compatible
query I rowsort label-2971
SELECT - MIN ( - 27 ) * 96 AS col2
----
2592

query I rowsort
SELECT + 63 * 18
----
1134

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

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL 51 + COUNT ( * ) AS col2
----
52

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

skipif mysql # not compatible
query I rowsort label-2974
SELECT - + COUNT ( DISTINCT + 77 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2975
SELECT + - 24 + - 2 * CASE 61 * COUNT( * ) WHEN 34 + + 56 * - 98 THEN 92 - - 38 ELSE - 82 DIV 83 END
----
-24

skipif mysql # not compatible
query I rowsort label-2975
SELECT + - 24 + - 2 * CASE 61 * COUNT ( * ) WHEN 34 + + 56 * - 98 THEN 92 - - 38 ELSE - 82 / 83 END
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2976
SELECT ALL + 16 DIV - COUNT( * ) + - 58 * - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL + 16 / - COUNT ( * ) + - 58 * - COUNT ( * )
----
42

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT ALL + 52 DIV - 61 + 85 * 54
----
4590

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL + 52 / - 61 + 85 * 54
----
4590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2979
SELECT + COUNT( * ) DIV + CAST( AVG ( COALESCE ( + CAST( + 30 AS SIGNED ), 3 ) ) + + ( COUNT( * ) ) DIV - COUNT( 80 ) AS SIGNED ) + SUM( ALL - 18 ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-2979
SELECT + COUNT ( * ) / + CAST ( AVG ( COALESCE ( + CAST ( + 30 AS INTEGER ), 3 ) ) + + ( COUNT ( * ) ) / - COUNT ( 80 ) AS INTEGER ) + SUM ( ALL - 18 ) col2
----
-18

query I rowsort
SELECT + 93 + + 28 * 95 AS col1
----
2753

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2981
SELECT ALL MAX( DISTINCT - 97 ) DIV 15 + - 64 * + 93
----
-5958

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL MAX ( DISTINCT - 97 ) / 15 + - 64 * + 93
----
-5958

query I rowsort
SELECT + + 86 * + 19 AS col1
----
1634

query I rowsort
SELECT + 50 - 14
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2984
SELECT ALL + 42 * - SUM( ALL - 22 DIV 47 + + 69 )
----
-2898

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL + 42 * - SUM ( ALL - 22 / 47 + + 69 )
----
-2898

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

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

query I rowsort
SELECT ALL 61 * + 17 - - 36 * - 11 AS col2
----
641

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL - 87 * - - MAX( ALL + 69 ) * 3 - - 88
----
-17921

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - 87 * - - MAX ( ALL + 69 ) * 3 - - 88
----
-17921

query I rowsort
SELECT ALL 32 * - 72 * 14
----
-32256

query I rowsort
SELECT - 2 - 45
----
-47

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

query I rowsort
SELECT NULLIF ( - 23, - 19 )
----
-23

query I rowsort
SELECT + 31 - + 58 + 30
----
3

query I rowsort
SELECT 12 * - 24
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT 18 DIV + COALESCE ( + 50, + 63, 62 ) * + 10
----
0

skipif mysql # not compatible
query I rowsort label-2995
SELECT 18 / + COALESCE ( + 50, + 63, 62 ) * + 10
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2996
SELECT DISTINCT + 83 DIV + COUNT( * ) DIV + COUNT( ALL 34 * 82 )
----
83

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT + 83 / + COUNT ( * ) / + COUNT ( ALL 34 * 82 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL + SUM( 86 ) * - 35
----
-3010

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + SUM ( 86 ) * - 35
----
-3010

query I rowsort
SELECT 2 * - - 90 col1
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2999
SELECT ALL COUNT( DISTINCT + NULLIF ( + 45, + CAST( NULL AS SIGNED ) DIV 98 + + 34 ) ) DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL COUNT ( DISTINCT + NULLIF ( + 45, + CAST ( NULL AS INTEGER ) / 98 + + 34 ) ) / 73
----
0

query I rowsort
SELECT DISTINCT + ( ( + 92 ) ) * - 9
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL + 65 * MIN( DISTINCT 53 )
----
3445

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL + 65 * MIN ( DISTINCT 53 )
----
3445

query I rowsort
SELECT 27 * 0 * 31
----
0

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

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

query I rowsort
SELECT ALL - 93 + + 35
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3005
SELECT - MIN( 69 ) DIV - 30
----
2

skipif mysql # not compatible
query I rowsort label-3005
SELECT - MIN ( 69 ) / - 30
----
2

query I rowsort
SELECT + 5 + + - 62
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3007
SELECT ALL - 22 DIV + COUNT( ALL 28 )
----
-22

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - 22 / + COUNT ( ALL 28 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT + 32 + - + 62 * COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-3008
SELECT + 32 + - + 62 * COUNT ( * )
----
-30

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT DISTINCT COALESCE ( 67, + COUNT( * ) DIV - 9 )
----
67

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT COALESCE ( 67, + COUNT ( * ) / - 9 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT - CAST( + 2 AS SIGNED ) - - 73 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3011
SELECT - CAST ( + 2 AS INTEGER ) - - 73 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3012
SELECT 18 DIV 13 * - COUNT( + 34 * - 49 ) + + 8 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3012
SELECT 18 / 13 * - COUNT ( + 34 * - 49 ) + + 8 AS col0
----
7

query I rowsort
SELECT DISTINCT - - COALESCE ( 26, + 91 * + 61 ) + 69
----
95

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3016
SELECT + 48 + CAST( NULL AS SIGNED ) + - MAX( 5 ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT + 48 + CAST ( NULL AS INTEGER ) + - MAX ( 5 ) * 17
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL - - ( + NULLIF ( 48, COUNT ( * ) * + 26 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT DISTINCT - CASE - - AVG ( - 26 ) WHEN 7 THEN 85 WHEN + COUNT( * ) THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT - CASE - - AVG ( - 26 ) WHEN 7 THEN 85 WHEN + COUNT ( * ) THEN NULL ELSE NULL END col1
----
NULL

query II rowsort
SELECT 58, 23 * 84 AS col0
----
58
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ( + COUNT( * ) ) * NULLIF ( 15, + 30 * 49 ) * - 92 AS col1
----
-1380

skipif mysql # not compatible
query I rowsort label-3021
SELECT ( + COUNT ( * ) ) * NULLIF ( 15, + 30 * 49 ) * - 92 AS col1
----
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT + 88 * - NULLIF ( 71, MIN( ALL COALESCE ( - ( + 95 ), + 68, 25 * ( 50 ) ) ) * 2 ) + + 72 * 68
----
-1352

skipif mysql # not compatible
query I rowsort label-3022
SELECT + 88 * - NULLIF ( 71, MIN ( ALL COALESCE ( - ( + 95 ), + 68, 25 * ( 50 ) ) ) * 2 ) + + 72 * 68
----
-1352

onlyif mysql # DIV for integer division: 
query I rowsort label-3023
SELECT 76 DIV - + 59 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3023
SELECT 76 / - + 59 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3024
SELECT 83 + - + ( - COALESCE ( NULLIF ( + 80, CAST( NULL AS SIGNED ) ), 11 ) ) + ( 70 + ( 63 ) * + CASE 16 WHEN - ( COUNT( * ) ) THEN + 47 + 92 WHEN - 19 + + 46 * 46 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT 83 + - + ( - COALESCE ( NULLIF ( + 80, CAST ( NULL AS INTEGER ) ), 11 ) ) + ( 70 + ( 63 ) * + CASE 16 WHEN - ( COUNT ( * ) ) THEN + 47 + 92 WHEN - 19 + + 46 * 46 THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT 87 * 29 - 91
----
2432

query I rowsort
SELECT DISTINCT 19 * - 96
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL COUNT( ALL 39 ) * 58
----
58

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL COUNT ( ALL 39 ) * 58
----
58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT 97 * MAX( ALL - 32 ) DIV 83 + + NULLIF ( 13, 89 * 69 )
----
-24

skipif mysql # not compatible
query I rowsort label-3029
SELECT 97 * MAX ( ALL - 32 ) / 83 + + NULLIF ( 13, 89 * 69 )
----
-24

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL ( COUNT( * ) ) + + + 98
----
99

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL ( COUNT ( * ) ) + + + 98
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ( - - COUNT( * ) ) + - 78 + + 29
----
-48

skipif mysql # not compatible
query I rowsort label-3033
SELECT ( - - COUNT ( * ) ) + - 78 + + 29
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3034
SELECT - 33 AS col2, + MIN( DISTINCT - + 12 )
----
-33
-12

skipif mysql # not compatible
query II rowsort label-3034
SELECT - 33 AS col2, + MIN ( DISTINCT - + 12 )
----
-33
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3035
SELECT CAST( NULL AS SIGNED ) + 72 + - ( 0 ) - - 80 * CASE SUM( DISTINCT 26 ) WHEN 56 * + 88 THEN SUM( ALL + ( 47 ) ) * - 51 - - 38 END * - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT CAST ( NULL AS INTEGER ) + 72 + - ( 0 ) - - 80 * CASE SUM ( DISTINCT 26 ) WHEN 56 * + 88 THEN SUM ( ALL + ( 47 ) ) * - 51 - - 38 END * - 5 AS col0
----
NULL

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

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

query I rowsort
SELECT 31 + + - 63 * + 59
----
-3686

query I rowsort
SELECT + CASE + + 12 WHEN + 52 + 51 * + 81 THEN 14 END
----
NULL

query I rowsort
SELECT + 3 * + - 91
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-3040
SELECT ALL 72 + - + 89 + + 10 + 52 * 64 DIV + NULLIF ( 32, 68 )
----
97

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL 72 + - + 89 + + 10 + 52 * 64 / + NULLIF ( 32, 68 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT - + MIN( + 74 ) + + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT - + MIN ( + 74 ) + + COUNT ( * )
----
-73

query I rowsort
SELECT ALL + + 87 + + 45 AS col1
----
132

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

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

query I rowsort
SELECT ALL - 27 + + 30
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT - COUNT( * ) * - ( + - COUNT( * ) ) * ( + 55 * 49 ) + - ( + MAX( DISTINCT 74 ) ) DIV 20
----
-2698

skipif mysql # not compatible
query I rowsort label-3045
SELECT - COUNT ( * ) * - ( + - COUNT ( * ) ) * ( + 55 * 49 ) + - ( + MAX ( DISTINCT 74 ) ) / 20
----
-2698

query I rowsort
SELECT DISTINCT + 99 + 5
----
104

query I rowsort
SELECT ALL - + 8 - 57 + - - 3
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT + 5 * + - CASE - 29 WHEN + 97 + + COUNT( 78 ) THEN 23 / - 21 WHEN 26 THEN 51 * 28 + 30 WHEN + 88 THEN ( 65 ) * 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT + 5 * + - CASE - 29 WHEN + 97 + + COUNT ( 78 ) THEN 23 / - 21 WHEN 26 THEN 51 * 28 + 30 WHEN + 88 THEN ( 65 ) * 41 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3049
SELECT CAST ( + ( 82 ) AS INTEGER ) * COUNT ( * )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3050
SELECT - 28 + + COUNT( * ) * - ( + SUM( ALL CAST( + 8 AS SIGNED ) ) ) DIV 72
----
-28

skipif mysql # not compatible
query I rowsort label-3050
SELECT - 28 + + COUNT ( * ) * - ( + SUM ( ALL CAST ( + 8 AS INTEGER ) ) ) / 72
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3051
SELECT ALL + 50 * 51 - + COUNT( * ) + 76 DIV 22
----
2552

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL + 50 * 51 - + COUNT ( * ) + 76 / 22
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT 59 * + 97 * ( COUNT( * ) ) - 63
----
5660

skipif mysql # not compatible
query I rowsort label-3052
SELECT 59 * + 97 * ( COUNT ( * ) ) - 63
----
5660

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL + 85 * COUNT( * ) - - 90
----
175

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL + 85 * COUNT ( * ) - - 90
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3054
SELECT - 55 * 87 DIV COALESCE ( - 72, 70 + 79 * NULLIF ( + 2, - 61 * COALESCE ( 85, + 93, MIN( 12 ) + - 89 ) ), - 80 )
----
66

skipif mysql # not compatible
query I rowsort label-3054
SELECT - 55 * 87 / COALESCE ( - 72, 70 + 79 * NULLIF ( + 2, - 61 * COALESCE ( 85, + 93, MIN ( 12 ) + - 89 ) ), - 80 )
----
66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT 67 * CAST( NULL AS SIGNED ) / - 23 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT 67 * CAST ( NULL AS INTEGER ) / - 23 col2
----
NULL

query I rowsort
SELECT - 20 + - 25 + 85 AS col2
----
40

query I rowsort
SELECT DISTINCT - 82 * - 36
----
2952

query I rowsort
SELECT - 67 - 38 * + ( 57 ) col0
----
-2233

query I rowsort
SELECT + 73 * 70
----
5110

query I rowsort
SELECT - 84 * - 44
----
3696

query I rowsort
SELECT ALL - 92 * 11 AS col0
----
-1012

query I rowsort
SELECT ALL 52 * 47 + - 88 AS col0
----
2356

query I rowsort
SELECT + 54 * + 54
----
2916

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT ALL - CASE + - 15 WHEN 99 THEN - + COALESCE ( 6, 64 ) WHEN 44 + 51 THEN NULL ELSE 93 - - 32 END * ( - COUNT( 48 ) ) + COALESCE ( - 5 + - 63 * 15, - NULLIF ( 71, + 24 ) + + 7 ) * + 81
----
-76825

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL - CASE + - 15 WHEN 99 THEN - + COALESCE ( 6, 64 ) WHEN 44 + 51 THEN NULL ELSE 93 - - 32 END * ( - COUNT ( 48 ) ) + COALESCE ( - 5 + - 63 * 15, - NULLIF ( 71, + 24 ) + + 7 ) * + 81
----
-76825

query I rowsort
SELECT - 18 - - 55 + 13
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-3067
SELECT + 71 DIV - + 9 col2, 35 AS col0
----
-7
35

skipif mysql # not compatible
query II rowsort label-3067
SELECT + 71 / - + 9 col2, 35 AS col0
----
-7
35

query I rowsort
SELECT ALL - 31 + - - 71
----
40

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

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL + 20 * COUNT ( * ) AS col2
----
20

query I rowsort
SELECT + - 51 - + 74 * + + 27 AS col1
----
-2049

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT - - 81 + + COUNT( * ) * - ( - + 81 ) + 69 * - 39
----
-2529

skipif mysql # not compatible
query I rowsort label-3071
SELECT - - 81 + + COUNT ( * ) * - ( - + 81 ) + 69 * - 39
----
-2529

query I rowsort
SELECT + + 76 * + - 83
----
-6308

query I rowsort
SELECT ALL + 70 - + - ( + - 0 ) AS col1
----
70

query I rowsort
SELECT + CASE 55 WHEN - - 25 * + ( 71 ) * 25 + 97 * 71 THEN - 69 END * - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT + + ( + 9 ) + - + COUNT( * ) * - + 50 col0
----
59

skipif mysql # not compatible
query I rowsort label-3075
SELECT + + ( + 9 ) + - + COUNT ( * ) * - + 50 col0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3076
SELECT + COUNT( * ) + + 44 + - 21 * + + 11 * NULLIF ( 89, + 46 ) + 9 DIV - 13 AS col0
----
-20514

skipif mysql # not compatible
query I rowsort label-3076
SELECT + COUNT ( * ) + + 44 + - 21 * + + 11 * NULLIF ( 89, + 46 ) + 9 / - 13 AS col0
----
-20514

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3077
SELECT + COUNT( * ) + + 31 * 68 DIV - NULLIF ( 95, 88 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3077
SELECT + COUNT ( * ) + + 31 * 68 / - NULLIF ( 95, 88 ) AS col0
----
-21

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

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

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

skipif mysql # not compatible
query I rowsort label-3079
SELECT + COUNT ( * ) + + + 76 * - 31 AS col0
----
-2355

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

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

query I rowsort
SELECT ALL - 94 * - - ( - 98 )
----
9212

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3082
SELECT + 5 DIV + COUNT( * ) AS col0, - 46 * - 4
----
5
184

skipif mysql # not compatible
query II rowsort label-3082
SELECT + 5 / + COUNT ( * ) AS col0, - 46 * - 4
----
5
184

query I rowsort
SELECT - CASE WHEN NULL IS NOT NULL THEN NULL ELSE - 75 END * - 82 AS col0
----
-6150

query I rowsort
SELECT - 79 + - 69 * 84
----
-5875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT CAST( + 86 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3085
SELECT CAST ( + 86 AS INTEGER ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3086
SELECT - 97 * + CAST( + 94 AS SIGNED ) * + 56 AS col2
----
-510608

skipif mysql # not compatible
query I rowsort label-3086
SELECT - 97 * + CAST ( + 94 AS INTEGER ) * + 56 AS col2
----
-510608

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL + NULLIF ( CASE + COUNT( * ) WHEN + - 1 + + - 20 THEN + AVG ( DISTINCT - ( + 14 ) ) ELSE NULL END, 14 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL + NULLIF ( CASE + COUNT ( * ) WHEN + - 1 + + - 20 THEN + AVG ( DISTINCT - ( + 14 ) ) ELSE NULL END, 14 ) AS col0
----
NULL

query I rowsort
SELECT - 43 + + 91 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - 61 * CASE + + 2 WHEN + - COUNT( * ) THEN + + COUNT( * ) + 48 / 76 WHEN 39 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT - 61 * CASE + + 2 WHEN + - COUNT ( * ) THEN + + COUNT ( * ) + 48 / 76 WHEN 39 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL 79 * - CASE - + 59 WHEN + 44 THEN - CASE + 87 WHEN 63 * COUNT( * ) THEN - 89 WHEN - 89 - 86 THEN - AVG ( DISTINCT - 50 ) ELSE NULL END WHEN + CASE WHEN ( 24 ) IS NULL THEN 14 ELSE NULL END + NULLIF ( - 16, COALESCE ( 46, 15 * + 8 ) ) THEN - COUNT( * ) * + COUNT( * ) + + 10 END / COUNT( * ) + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL 79 * - CASE - + 59 WHEN + 44 THEN - CASE + 87 WHEN 63 * COUNT ( * ) THEN - 89 WHEN - 89 - 86 THEN - AVG ( DISTINCT - 50 ) ELSE NULL END WHEN + CASE WHEN ( 24 ) IS NULL THEN 14 ELSE NULL END + NULLIF ( - 16, COALESCE ( 46, 15 * + 8 ) ) THEN - COUNT ( * ) * + COUNT ( * ) + + 10 END / COUNT ( * ) + - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL - COUNT( * ) * + COALESCE ( + 2, - - COUNT( * ) * - 46 ) + + 95 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - COUNT ( * ) * + COALESCE ( + 2, - - COUNT ( * ) * - 46 ) + + 95 AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3092
SELECT - 31 * - COUNT( - 17 ) DIV - ( - COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-3092
SELECT - 31 * - COUNT ( - 17 ) / - ( - COUNT ( * ) )
----
31

query I rowsort
SELECT ALL - 68 * + 52 + 3 - 4 AS col2
----
-3537

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL + CASE - 97 WHEN + + 17 THEN + 85 - 49 WHEN AVG ( DISTINCT 15 ) THEN - 95 + + MIN( + 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL + CASE - 97 WHEN + + 17 THEN + 85 - 49 WHEN AVG ( DISTINCT 15 ) THEN - 95 + + MIN ( + 78 ) END
----
NULL

query I rowsort
SELECT - 19 + - NULLIF ( - + NULLIF ( 12, + 40 + - 20 ), 10 ) + 68 AS col0
----
61

query I rowsort
SELECT NULLIF ( 4, + - 61 ) AS col1
----
4

query I rowsort
SELECT ALL + 69 * + 1 + - 17
----
52

query I rowsort
SELECT - 95 + - 73 * 18 AS col1
----
-1409

query I rowsort
SELECT 61 * + - 6 - ( + 73 ) AS col1
----
-439

query I rowsort
SELECT - 53 * 99 + - 44
----
-5291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3101
SELECT ALL + CASE + + 33 WHEN - 35 THEN + CASE - + 66 WHEN 4 THEN 3 WHEN - 36 THEN 92 * 0 + COUNT( * ) WHEN 34 * 73 + + 94 * 96 THEN 94 - + 52 ELSE NULL END ELSE NULL END * 92 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL + CASE + + 33 WHEN - 35 THEN + CASE - + 66 WHEN 4 THEN 3 WHEN - 36 THEN 92 * 0 + COUNT ( * ) WHEN 34 * 73 + + 94 * 96 THEN 94 - + 52 ELSE NULL END ELSE NULL END * 92 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 62 * - + 66 * 53 + + 7 AS col1
----
-216869

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3103
SELECT 65, + SUM( - 71 ) * - - 65 DIV - COUNT( * ) + 4 AS col1
----
65
4619

skipif mysql # not compatible
query II rowsort label-3103
SELECT 65, + SUM ( - 71 ) * - - 65 / - COUNT ( * ) + 4 AS col1
----
65
4619

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL NULLIF ( - + COUNT( * ), + MIN( DISTINCT + 47 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL NULLIF ( - + COUNT ( * ), + MIN ( DISTINCT + 47 ) ) AS col2
----
-1

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

query I rowsort
SELECT ALL - + 83 * + 88 - + 15
----
-7319

query I rowsort
SELECT - 60 * - 46 col2
----
2760

query I rowsort
SELECT + NULLIF ( - + 41, + 76 + - 39 ) + + 51 * + 22 AS col2
----
1081

onlyif mysql # aggregate syntax: 
query II rowsort label-3109
SELECT DISTINCT 9 AS col0, 43 * + 21 * - 88 + + COUNT( * ) AS col2
----
9
-79463

skipif mysql # not compatible
query II rowsort label-3109
SELECT DISTINCT 9 AS col0, 43 * + 21 * - 88 + + COUNT ( * ) AS col2
----
9
-79463

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT + - COUNT( * ) + - 45 col2
----
-46

skipif mysql # not compatible
query I rowsort label-3110
SELECT + - COUNT ( * ) + - 45 col2
----
-46

query I rowsort
SELECT ALL - 58 * - 9 + 11 AS col1
----
533

query I rowsort
SELECT + - 95 * + 12 * - 48 + - - 1 + - 2 AS col1
----
54719

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL - - 61 * + COALESCE ( - CAST( + - MAX( - 27 ) AS SIGNED ), - SUM( DISTINCT ( + 3 ) ) ) * ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL - - 61 * + COALESCE ( - CAST ( + - MAX ( - 27 ) AS INTEGER ), - SUM ( DISTINCT ( + 3 ) ) ) * ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

query I rowsort
SELECT 67 - + + 92
----
-25

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

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

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

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL MIN ( 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL CASE 21 WHEN COUNT( - - 31 ) * - - COALESCE ( 13, MAX( ALL ( + 20 ) ) * + 71 ) + 45 / 95 THEN 93 * - 56 ELSE NULL END + + ( MAX( DISTINCT + 68 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL CASE 21 WHEN COUNT ( - - 31 ) * - - COALESCE ( 13, MAX ( ALL ( + 20 ) ) * + 71 ) + 45 / 95 THEN 93 * - 56 ELSE NULL END + + ( MAX ( DISTINCT + 68 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3120
SELECT 63 col2, CASE + - 94 WHEN - 30 * - 48 * - COUNT( * ) + + ( 43 - 3 ) * - MAX( 76 / 98 ) THEN NULL ELSE + COUNT( * ) END * + 47 + + 13 AS col0
----
63
60

skipif mysql # not compatible
query II rowsort label-3120
SELECT 63 col2, CASE + - 94 WHEN - 30 * - 48 * - COUNT ( * ) + + ( 43 - 3 ) * - MAX ( 76 / 98 ) THEN NULL ELSE + COUNT ( * ) END * + 47 + + 13 AS col0
----
63
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT DISTINCT 45, - 73 * - - ( - 49 ) * + 84 - MIN( DISTINCT - 50 ) * + 52 AS col2
----
45
303068

skipif mysql # not compatible
query II rowsort label-3121
SELECT DISTINCT 45, - 73 * - - ( - 49 ) * + 84 - MIN ( DISTINCT - 50 ) * + 52 AS col2
----
45
303068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3122
SELECT MIN( + CAST( NULL AS SIGNED ) ) * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) * 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3123
SELECT ALL MAX( DISTINCT 27 ) * - CASE WHEN ( NULL ) BETWEEN - CAST( - 86 AS SIGNED ) AND + 46 + + 97 THEN COUNT( * ) END * - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL MAX ( DISTINCT 27 ) * - CASE WHEN ( NULL ) BETWEEN - CAST ( - 86 AS INTEGER ) AND + 46 + + 97 THEN COUNT ( * ) END * - 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL 67 + - + COUNT( ALL - 18 )
----
66

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL 67 + - + COUNT ( ALL - 18 )
----
66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3126
SELECT 29 * - CASE 69 WHEN - COUNT( * ) * - 84 + - - 98 THEN - 35 ELSE 4 DIV 95 + 9 END * 30 + 73 AS col1
----
-7757

skipif mysql # not compatible
query I rowsort label-3126
SELECT 29 * - CASE 69 WHEN - COUNT ( * ) * - 84 + - - 98 THEN - 35 ELSE 4 / 95 + 9 END * 30 + 73 AS col1
----
-7757

query I rowsort
SELECT DISTINCT 61 + - 26 * - + 51 * + 1 AS col0
----
1387

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

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

query I rowsort
SELECT COALESCE ( + 1, - 91, - 31, 27 + - - 27 * - 43 ) * + 67 AS col1
----
67

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3132
SELECT + 25 AS col1, - 80 - + + COUNT( * ) AS col1
----
25
-81

skipif mysql # not compatible
query II rowsort label-3132
SELECT + 25 AS col1, - 80 - + + COUNT ( * ) AS col1
----
25
-81

query I rowsort
SELECT DISTINCT NULLIF ( 29, - 61 ) * + 10 * - 33 col1
----
-9570

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT 43 DIV - + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3135
SELECT 43 / - + 67 AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT DISTINCT - COUNT( DISTINCT + 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT - COUNT ( DISTINCT + 28 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL COUNT( * ) - 80 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL COUNT ( * ) - 80 AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3139
SELECT 24 AS col1, COALESCE ( 56, + 44, - 83 + + + CAST( NULL AS SIGNED ) )
----
24
56

skipif mysql # not compatible
query II rowsort label-3139
SELECT 24 AS col1, COALESCE ( 56, + 44, - 83 + + + CAST ( NULL AS INTEGER ) )
----
24
56

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3141
SELECT + 58 - 57 + - COUNT( * ) + + COUNT( * ) DIV - + 97 * COUNT( * ) * MIN( ALL 53 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT + 58 - 57 + - COUNT ( * ) + + COUNT ( * ) / - + 97 * COUNT ( * ) * MIN ( ALL 53 ) AS col0
----
0

query I rowsort
SELECT - - ( - 23 ) AS col2
----
-23

query II rowsort
SELECT - + 31, ( + 97 ) - + 27 AS col1
----
-31
70

query I rowsort
SELECT 47 * + 23 AS col0
----
1081

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3145
SELECT + COUNT( * ), ( + - COUNT( * ) ) * + 69 AS col1, 97 + + COUNT( * ) + + 91 DIV 32 AS col2
----
1
-69
100

skipif mysql # not compatible
query III rowsort label-3145
SELECT + COUNT ( * ), ( + - COUNT ( * ) ) * + 69 AS col1, 97 + + COUNT ( * ) + + 91 / 32 AS col2
----
1
-69
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3146
SELECT 44 DIV - - 99 * + 14 * - COUNT( * ) * + + 80 + 32 + 91
----
123

skipif mysql # not compatible
query I rowsort label-3146
SELECT 44 / - - 99 * + 14 * - COUNT ( * ) * + + 80 + 32 + 91
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-3147
SELECT 5 + + + 46 + - + 92 + 59 DIV + 26 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-3147
SELECT 5 + + + 46 + - + 92 + 59 / + 26 AS col2
----
-39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3149
SELECT 36 + 27 * 13 - + CASE - 77 WHEN + ( 34 ) THEN - 79 WHEN 0 THEN NULL WHEN COALESCE ( 57, + 52, + AVG ( + CAST( 62 AS SIGNED ) ) + COUNT( * ) * - ( 27 ) ) + - MAX( 43 ) THEN + 77 * + 55 ELSE NULL END * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT 36 + 27 * 13 - + CASE - 77 WHEN + ( 34 ) THEN - 79 WHEN 0 THEN NULL WHEN COALESCE ( 57, + 52, + AVG ( + CAST ( 62 AS INTEGER ) ) + COUNT ( * ) * - ( 27 ) ) + - MAX ( 43 ) THEN + 77 * + 55 ELSE NULL END * 48
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3150
SELECT - - 95 AS col1, 80 DIV + - 56
----
95
-1

skipif mysql # not compatible
query II rowsort label-3150
SELECT - - 95 AS col1, 80 / + - 56
----
95
-1

query I rowsort
SELECT ALL - 3 + - CASE + - 78 WHEN 18 THEN - 40 * - 43 - 52 + 86 ELSE - 20 + 16 END + - 65
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT DISTINCT + - 54 DIV + 30 + - - 67 + + + 70
----
136

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT + - 54 / + 30 + - - 67 + + + 70
----
136

query I rowsort
SELECT DISTINCT - + ( + 91 ) + 73 * + 97 + - + 50 AS col2
----
6940

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

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

query I rowsort
SELECT ALL - 78 + 37 * + 47 AS col0
----
1661

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL COUNT( * ) + 83 - 68
----
16

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL COUNT ( * ) + 83 - 68
----
16

query I rowsort
SELECT ALL 8 + - 3 AS col1
----
5

query I rowsort
SELECT 21 + 90 AS col1
----
111

query I rowsort
SELECT 34 * 35 + + 77 + CASE ( - 26 ) WHEN + 26 THEN NULL ELSE - 9 END * + 95
----
412

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT COUNT( * ) * + NULLIF ( - 47, + MAX( DISTINCT - 81 ) + 42 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3160
SELECT COUNT ( * ) * + NULLIF ( - 47, + MAX ( DISTINCT - 81 ) + 42 ) AS col1
----
-47

query I rowsort
SELECT ( - 42 ) * - + 15
----
630

query II rowsort
SELECT ALL - ( - 25 ) col2, 53
----
25
53

query I rowsort
SELECT DISTINCT ( ( 58 ) ) - 93
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3164
SELECT ( - COUNT( * ) ) * - 78, NULLIF ( - 74, 73 + + 32 ) * 89 + 14 * - 52 AS col1
----
78
-7314

skipif mysql # not compatible
query II rowsort label-3164
SELECT ( - COUNT ( * ) ) * - 78, NULLIF ( - 74, 73 + + 32 ) * 89 + 14 * - 52 AS col1
----
78
-7314

query I rowsort
SELECT ( 70 ) - + ( - 47 ) * + + 79 * + COALESCE ( 12, 78 + - 94 ) AS col1
----
44626

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3166
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + 34 * + 67 * - 54 + - 66 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT CAST ( NULL AS REAL ) - + 34 * + 67 * - 54 + - 66 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT MAX( DISTINCT - 40 ) * - MIN( ALL - + 87 ) AS col1
----
-3480

skipif mysql # not compatible
query I rowsort label-3167
SELECT MAX ( DISTINCT - 40 ) * - MIN ( ALL - + 87 ) AS col1
----
-3480

query I rowsort
SELECT NULLIF ( + 10, - 53 ) * - 24 AS col2
----
-240

query I rowsort
SELECT 0 - 91
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3170
SELECT DISTINCT - - COUNT( - 33 ) AS col2, - ( - 38 ) AS col1
----
1
38

skipif mysql # not compatible
query II rowsort label-3170
SELECT DISTINCT - - COUNT ( - 33 ) AS col2, - ( - 38 ) AS col1
----
1
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT DISTINCT + 80 * - 85 + - - NULLIF ( ( CAST( NULL AS SIGNED ) ), - 82 + 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT + 80 * - 85 + - - NULLIF ( ( CAST ( NULL AS INTEGER ) ), - 82 + 55 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT DISTINCT - - 23 DIV 48 DIV + - COUNT( * ) * 32
----
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT - - 23 / 48 / + - COUNT ( * ) * 32
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3173
SELECT + + 12 * - 60 * + 92 + - 58 DIV COUNT( * ) * 51 AS col2
----
-69198

skipif mysql # not compatible
query I rowsort label-3173
SELECT + + 12 * - 60 * + 92 + - 58 / COUNT ( * ) * 51 AS col2
----
-69198

onlyif mysql # DIV for integer division: 
query II rowsort label-3174
SELECT - 96 DIV + + 46 col1, - 99 AS col0
----
-2
-99

skipif mysql # not compatible
query II rowsort label-3174
SELECT - 96 / + + 46 col1, - 99 AS col0
----
-2
-99

query I rowsort
SELECT + 5 + - 8 * 56 AS col1
----
-443

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT - + 87 + - CASE - 56 WHEN - 22 THEN + 75 / - CASE 30 WHEN COUNT( * ) THEN - COUNT( * ) END WHEN 16 * 84 + ( 41 + 57 ) * 24 THEN - 62 + + 73 END / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3177
SELECT - + 87 + - CASE - 56 WHEN - 22 THEN + 75 / - CASE 30 WHEN COUNT ( * ) THEN - COUNT ( * ) END WHEN 16 * 84 + ( 41 + 57 ) * 24 THEN - 62 + + 73 END / COUNT ( * ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3179
SELECT - + COUNT( * ) * 75 - - 81 + 0 + 66 * + ( - CAST( + COUNT( * ) AS SIGNED ) ) + - CASE WHEN 22 IS NULL THEN + 24 * MAX( 67 ) ELSE - 27 END AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3179
SELECT - + COUNT ( * ) * 75 - - 81 + 0 + 66 * + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) + - CASE WHEN 22 IS NULL THEN + 24 * MAX ( 67 ) ELSE - 27 END AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT - - COALESCE ( + + 89, COUNT( * ) * 89, - - COUNT( * ) * + - 82 - + 12 + 58 + COUNT( * ) * + MAX( ALL + 60 ), + 63 ) * COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3180
SELECT - - COALESCE ( + + 89, COUNT ( * ) * 89, - - COUNT ( * ) * + - 82 - + 12 + 58 + COUNT ( * ) * + MAX ( ALL + 60 ), + 63 ) * COUNT ( * ) AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3181
SELECT ALL + 15 * + + 2 + COALESCE ( - 44, - 92, + COUNT( * ) * + COALESCE ( CAST( NULL AS SIGNED ), 82 ) * - MIN( DISTINCT + 3 + + 59 ) - 77 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL + 15 * + + 2 + COALESCE ( - 44, - 92, + COUNT ( * ) * + COALESCE ( CAST ( NULL AS INTEGER ), 82 ) * - MIN ( DISTINCT + 3 + + 59 ) - 77 ) * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 64 + 49 AS col1, 54
----
113
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3183
SELECT ALL 69 + - 81 * + - 40 + - - ( CAST( NULL AS SIGNED ) ), 48 AS col2
----
NULL
48

skipif mysql # not compatible
query II rowsort label-3183
SELECT ALL 69 + - 81 * + - 40 + - - ( CAST ( NULL AS INTEGER ) ), 48 AS col2
----
NULL
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT - 12 DIV - - 93 + 7 + - - 86 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3184
SELECT - 12 / - - 93 + 7 + - - 86 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3185
SELECT ALL + CAST( - + 73 AS SIGNED ) + + 89 col2, - MIN( DISTINCT - 99 )
----
16
99

skipif mysql # not compatible
query II rowsort label-3185
SELECT ALL + CAST ( - + 73 AS INTEGER ) + + 89 col2, - MIN ( DISTINCT - 99 )
----
16
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT SUM( ALL + 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT SUM ( ALL + 84 ) AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT - 90 DIV 44 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3187
SELECT - 90 / 44 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3188
SELECT ALL + COALESCE ( 51, + 21 * 69 + 16, 7 + - 12 * COUNT( * ) ) - 83 DIV 79
----
50

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL + COALESCE ( 51, + 21 * 69 + 16, 7 + - 12 * COUNT ( * ) ) - 83 / 79
----
50

query I rowsort
SELECT - 78 - 95
----
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3190
SELECT - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) col0
----
NULL

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

query I rowsort
SELECT - 96 + + 14 AS col2
----
-82

query I rowsort
SELECT - 54 - NULLIF ( + 62, COALESCE ( - 3, - + ( - 47 ) + 65 ) * + 44 ) * - 22 col0
----
1310

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT ALL - ( CASE - SUM( + 89 ) WHEN + 62 + ( - 50 ) THEN - + 74 END ) * - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL - ( CASE - SUM ( + 89 ) WHEN + 62 + ( - 50 ) THEN - + 74 END ) * - 2 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3195
SELECT ALL 60 * MIN( + 73 ), CAST( NULL AS SIGNED ) * - 33 - + 24 AS col0
----
4380
NULL

skipif mysql # not compatible
query II rowsort label-3195
SELECT ALL 60 * MIN ( + 73 ), CAST ( NULL AS INTEGER ) * - 33 - + 24 AS col0
----
4380
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3197
SELECT ALL + 12 * + + NULLIF ( CAST( + 5 AS SIGNED ), - COALESCE ( 77, - 66 + + - 15 * CAST( COUNT( 82 ) AS DECIMAL ) ) ) col0
----
60

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL + 12 * + + NULLIF ( CAST ( + 5 AS INTEGER ), - COALESCE ( 77, - 66 + + - 15 * CAST ( COUNT ( 82 ) AS REAL ) ) ) col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3198
SELECT + COALESCE ( - 45, + NULLIF ( - + COALESCE ( + 13, + 22 ), 11 * + CAST( NULL AS SIGNED ) ) * 58, + ( + SUM( - 26 ) ) + 43 )
----
-45

skipif mysql # not compatible
query I rowsort label-3198
SELECT + COALESCE ( - 45, + NULLIF ( - + COALESCE ( + 13, + 22 ), 11 * + CAST ( NULL AS INTEGER ) ) * 58, + ( + SUM ( - 26 ) ) + 43 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT - MIN( DISTINCT + 20 ) * - 54
----
1080

skipif mysql # not compatible
query I rowsort label-3199
SELECT - MIN ( DISTINCT + 20 ) * - 54
----
1080

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3201
SELECT + - 87 * - 48 + - + COALESCE ( - + 0, + 71 ) * + 52, CAST( NULL AS SIGNED ) + - - 42 + + 45 AS col1
----
4176
NULL

skipif mysql # not compatible
query II rowsort label-3201
SELECT + - 87 * - 48 + - + COALESCE ( - + 0, + 71 ) * + 52, CAST ( NULL AS INTEGER ) + - - 42 + + 45 AS col1
----
4176
NULL

query I rowsort
SELECT + 67 * - 68 AS col0
----
-4556

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL 21 * + 94 + 7 + COUNT( - 2 ) AS col1
----
1982

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL 21 * + 94 + 7 + COUNT ( - 2 ) AS col1
----
1982

query II rowsort
SELECT + 39, 44 AS col2
----
39
44

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3208
SELECT + - 16 * 45 DIV - 4 AS col1, 74 AS col2
----
180
74

skipif mysql # not compatible
query II rowsort label-3208
SELECT + - 16 * 45 / - 4 AS col1, 74 AS col2
----
180
74

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3210
SELECT ALL COUNT( * ) * - 17 + 1 + + - 67 * + + 34 * + - 7 * - 2 + 18 / + CASE + 5 * + 50 WHEN 34 + + 72 THEN CAST( NULL AS SIGNED ) + 63 * 80 WHEN - 31 / + 73 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL COUNT ( * ) * - 17 + 1 + + - 67 * + + 34 * + - 7 * - 2 + 18 / + CASE + 5 * + 50 WHEN 34 + + 72 THEN CAST ( NULL AS INTEGER ) + 63 * 80 WHEN - 31 / + 73 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3211
SELECT + + 32, - 51 + - ( + 42 ) + + 66 * - + COALESCE ( - SUM( DISTINCT + - 5 ), + ( 14 ) ) AS col0
----
32
-423

skipif mysql # not compatible
query II rowsort label-3211
SELECT + + 32, - 51 + - ( + 42 ) + + 66 * - + COALESCE ( - SUM ( DISTINCT + - 5 ), + ( 14 ) ) AS col0
----
32
-423

onlyif mysql # aggregate syntax: 
query II rowsort label-3212
SELECT - COUNT( * ) * - 80 - + 51 AS col1, 70 AS col1
----
29
70

skipif mysql # not compatible
query II rowsort label-3212
SELECT - COUNT ( * ) * - 80 - + 51 AS col1, 70 AS col1
----
29
70

query II rowsort
SELECT ALL - NULLIF ( + - 37, + 60 ), 89 col2
----
37
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT - NULLIF ( 62, - - 79 ) * - + 36 * COUNT( ALL 25 ) col1
----
2232

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT - NULLIF ( 62, - - 79 ) * - + 36 * COUNT ( ALL 25 ) col1
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ALL MIN( ALL + 25 ) * 16 + + 89
----
489

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL MIN ( ALL + 25 ) * 16 + + 89
----
489

query II rowsort
SELECT 70, 18 * - 54 AS col2
----
70
-972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3217
SELECT + + 89 - - 37 + + - 11 - + 85 * + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT + + 89 - - 37 + + - 11 - + 85 * + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT - 14 - 63 * + 69 + - 34
----
-4395

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL - NULLIF ( - COUNT( * ), + + 2 ) - + 85 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL - NULLIF ( - COUNT ( * ), + + 2 ) - + 85 AS col2
----
-84

query I rowsort
SELECT + 78 + + - 93 + - 32
----
-47

query I rowsort
SELECT - 84 * 35 AS col2
----
-2940

query I rowsort
SELECT + 55 + - ( 91 ) AS col0
----
-36

query I rowsort
SELECT DISTINCT - 89 * - 26
----
2314

onlyif mysql # aggregate syntax: 
query II rowsort label-3224
SELECT ALL 37 * + 65 AS col2, - 64 * COUNT( * )
----
2405
-64

skipif mysql # not compatible
query II rowsort label-3224
SELECT ALL 37 * + 65 AS col2, - 64 * COUNT ( * )
----
2405
-64

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

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

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

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

query I rowsort
SELECT - 1 + 15 + + 30 * - 15
----
-436

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT + 12 * + COUNT( * ) * 46
----
552

skipif mysql # not compatible
query I rowsort label-3228
SELECT + 12 * + COUNT ( * ) * 46
----
552

query I rowsort
SELECT - 18 * 85
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT - CASE - MAX( - + 95 ) WHEN 28 THEN + 14 / 21 + - ( - 12 ) WHEN + 51 + + 83 THEN 56 / 96 END + - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT - CASE - MAX ( - + 95 ) WHEN 28 THEN + 14 / 21 + - ( - 12 ) WHEN + 51 + + 83 THEN 56 / 96 END + - 27 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3231
SELECT + SUM( ALL - + 42 ), 73 * CAST( 97 AS SIGNED ) - + - NULLIF ( + ( - - 19 ), CASE - 30 WHEN + 61 + + 40 THEN + 94 + - 34 ELSE + AVG ( DISTINCT 86 ) END - - 73 * CASE + 67 WHEN - 11 + + MAX( DISTINCT ( 61 ) ) * + COUNT( 98 ) THEN 77 ELSE NULL END ) AS col2
----
-42
7100

skipif mysql # not compatible
query II rowsort label-3231
SELECT + SUM ( ALL - + 42 ), 73 * CAST ( 97 AS INTEGER ) - + - NULLIF ( + ( - - 19 ), CASE - 30 WHEN + 61 + + 40 THEN + 94 + - 34 ELSE + AVG ( DISTINCT 86 ) END - - 73 * CASE + 67 WHEN - 11 + + MAX ( DISTINCT ( 61 ) ) * + COUNT ( 98 ) THEN 77 ELSE NULL END ) AS col2
----
-42
7100

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT - COUNT( * ) + CASE 22 WHEN - 24 + - 31 - COUNT( * ) + - 60 / - - 83 THEN + 3 END * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT - COUNT ( * ) + CASE 22 WHEN - 24 + - 31 - COUNT ( * ) + - 60 / - - 83 THEN + 3 END * - 77
----
NULL

query II rowsort
SELECT DISTINCT + ( 83 ), 49 AS col1
----
83
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3234
SELECT DISTINCT 32 DIV 11 * 89 + - COUNT( * ) + MIN( DISTINCT 44 )
----
221

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT 32 / 11 * 89 + - COUNT ( * ) + MIN ( DISTINCT 44 )
----
221

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3235
SELECT ALL - 22 DIV + 73 * - COUNT( * ) - + 98 AS col1, 63 + 0 DIV - ( - + ( ( - 43 ) ) ) + 61 AS col1
----
-98
124

skipif mysql # not compatible
query II rowsort label-3235
SELECT ALL - 22 / + 73 * - COUNT ( * ) - + 98 AS col1, 63 + 0 / - ( - + ( ( - 43 ) ) ) + 61 AS col1
----
-98
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3236
SELECT ALL + 61 DIV 66 + + 32 + - + MIN( DISTINCT ( - 22 ) ) + + 30 AS col2, - 27
----
84
-27

skipif mysql # not compatible
query II rowsort label-3236
SELECT ALL + 61 / 66 + + 32 + - + MIN ( DISTINCT ( - 22 ) ) + + 30 AS col2, - 27
----
84
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT DISTINCT - 89 * - - COALESCE ( + MIN( DISTINCT + 27 ), - MIN( ALL 21 ) ) AS col2
----
-2403

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT - 89 * - - COALESCE ( + MIN ( DISTINCT + 27 ), - MIN ( ALL 21 ) ) AS col2
----
-2403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3238
SELECT DISTINCT + MIN( DISTINCT CAST( NULL AS SIGNED ) ) + - 40 * + 47 * 30 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + - 40 * + 47 * 30 col0
----
NULL

query I rowsort
SELECT + + CASE 84 WHEN 17 THEN - + 10 - 60 * CASE 97 WHEN - - 86 THEN + - 4 + + 11 ELSE 91 END END
----
NULL

query II rowsort
SELECT + - 74 * + 43 * + 58 + + 49, 17 AS col2
----
-184507
17

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

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

query I rowsort
SELECT + 85 * 64 - + + 17
----
5423

query II rowsort
SELECT DISTINCT - ( - + 68 ) AS col0, + 93
----
68
93

query I rowsort
SELECT ALL + 79 + - 6
----
73

query I rowsort
SELECT - 18 * - 98 + - 5 + + 14 + 97 * 4 + + 86
----
2247

query I rowsort
SELECT DISTINCT + + 48 + - 96
----
-48

query I rowsort
SELECT ALL - 24 + + 76
----
52

query I rowsort
SELECT - 6 * + - 33 + - 18
----
180

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT DISTINCT + ( + + MIN( - + 90 ) ) - 32 + + 99 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT + ( + + MIN ( - + 90 ) ) - 32 + + 99 AS col0
----
-23

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

skipif mysql # not compatible
query I rowsort label-3251
SELECT - 43 * COUNT ( * ) * + - 50 AS col1
----
2150

query I rowsort
SELECT 5 * + + 66 AS col0
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT 20 * NULLIF ( + - 82, + 99 / - - COUNT( * ) ) + 49 AS col2
----
-1591

skipif mysql # not compatible
query I rowsort label-3253
SELECT 20 * NULLIF ( + - 82, + 99 / - - COUNT ( * ) ) + 49 AS col2
----
-1591

onlyif mysql # DIV for integer division: 
query I rowsort label-3254
SELECT 11 DIV - - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3254
SELECT 11 / - - 68 AS col2
----
0

query I rowsort
SELECT ALL 61 - - - ( - 24 ) AS col0
----
85

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3257
SELECT DISTINCT 96 * SUM( ALL + 6 ) * - + CAST( NULL AS DECIMAL ) * - - 99 * + 3 * + 49 * + 26 AS col0, + ( + 97 )
----
NULL
97

skipif mysql # not compatible
query II rowsort label-3257
SELECT DISTINCT 96 * SUM ( ALL + 6 ) * - + CAST ( NULL AS REAL ) * - - 99 * + 3 * + 49 * + 26 AS col0, + ( + 97 )
----
NULL
97

query I rowsort
SELECT 46 * 44
----
2024

onlyif mysql # DIV for integer division: 
query I rowsort label-3259
SELECT NULLIF ( - 45, 28 ) DIV - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT NULLIF ( - 45, 28 ) / - 74 AS col1
----
0

query II rowsort
SELECT ALL 20, - 85 * 80 AS col0
----
20
-6800

query I rowsort
SELECT 71 * - - 92 AS col1
----
6532

query II rowsort
SELECT - 77 AS col1, - 29
----
-77
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT DISTINCT ( + - ( + - 13 ) ) + + NULLIF ( + 43, 67 ) * - + COUNT( * ) * COUNT( DISTINCT 20 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT ( + - ( + - 13 ) ) + + NULLIF ( + 43, 67 ) * - + COUNT ( * ) * COUNT ( DISTINCT 20 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT MIN( - 59 ) * 68 + - ( + CASE + - 46 WHEN - 99 + + 11 THEN - - 33 WHEN 69 THEN + COUNT( 76 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT MIN ( - 59 ) * 68 + - ( + CASE + - 46 WHEN - 99 + + 11 THEN - - 33 WHEN 69 THEN + COUNT ( 76 ) END ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 40 + + + 51 AS col2
----
11

query I rowsort
SELECT DISTINCT 82 * - 5
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL COUNT( * ) + + - COALESCE ( 31, - 27 ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL COUNT ( * ) + + - COALESCE ( 31, - 27 ) col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT ALL - + ( + COUNT( * ) ) + - 68 + - 51 + + COUNT( + - 53 ) * - + 43 AS col1
----
-163

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL - + ( + COUNT ( * ) ) + - 68 + - 51 + + COUNT ( + - 53 ) * - + 43 AS col1
----
-163

query I rowsort
SELECT DISTINCT + 2 + 90 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT DISTINCT - 43 + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT - 43 + COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT ALL - - SUM( - + 47 ) + - + 18 * - 24 + + 55 col0
----
440

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL - - SUM ( - + 47 ) + - + 18 * - 24 + + 55 col0
----
440

query I rowsort
SELECT + 25 * + 69
----
1725

query I rowsort
SELECT ALL + 8 + 35
----
43

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

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + CAST ( NULL AS REAL ) - 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3275
SELECT DISTINCT + + 45 DIV + 85 + + + 65 * + SUM( DISTINCT 22 ) * 3
----
4290

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + + 45 / + 85 + + + 65 * + SUM ( DISTINCT 22 ) * 3
----
4290

query I rowsort
SELECT - 74 * + 71 AS col1
----
-5254

query I rowsort
SELECT 95 * + 4 AS col0
----
380

query I rowsort
SELECT ALL + 84 * - - 83 AS col1
----
6972

query I rowsort
SELECT DISTINCT - CASE + + ( + 80 ) WHEN 23 THEN NULL WHEN + 16 + - 59 THEN NULL WHEN - 87 * - 27 THEN 23 * - + 66 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL + + MIN( + 87 ) - 82 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + + MIN ( + 87 ) - 82 AS col1
----
5

query I rowsort
SELECT ALL - 92 * - - 46 * + 19 AS col2
----
-80408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3282
SELECT + 41 - COALESCE ( - COALESCE ( - CAST( NULL AS SIGNED ), - COALESCE ( - 32, 20 ) ), + 60 + 71, + ( COUNT( * ) ) / 28 ) + + CAST( NULL AS SIGNED ) * + 80 * 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3282
SELECT + 41 - COALESCE ( - COALESCE ( - CAST ( NULL AS INTEGER ), - COALESCE ( - 32, 20 ) ), + 60 + 71, + ( COUNT ( * ) ) / 28 ) + + CAST ( NULL AS INTEGER ) * + 80 * 9 AS col2
----
NULL

query II rowsort
SELECT 61 AS col2, 23 col2
----
61
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT 21 + - + 6 + - COUNT( - CASE ( + 86 ) WHEN - 22 + + - 1 THEN - 87 ELSE NULL END ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3285
SELECT 21 + - + 6 + - COUNT ( - CASE ( + 86 ) WHEN - 22 + + - 1 THEN - 87 ELSE NULL END ) AS col2
----
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT 27 * - COUNT( * ) * - + 34 AS col0
----
918

skipif mysql # not compatible
query I rowsort label-3287
SELECT 27 * - COUNT ( * ) * - + 34 AS col0
----
918

query II rowsort
SELECT 42 AS col2, 20 * 34
----
42
680

query I rowsort
SELECT 40 * + 95 AS col2
----
3800

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL SUM( - - 25 )
----
25

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL SUM ( - - 25 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3291
SELECT COUNT( * ) - + 68 + - 20 * + ( - COALESCE ( + COALESCE ( - COUNT( * ), CAST( NULL AS SIGNED ), - 95 + - 37 ), - 9 * + 84 - + COALESCE ( MAX( - 15 ), + 86 * - ( - ( - 89 ) ) + 50 * 11 ) ) ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3291
SELECT COUNT ( * ) - + 68 + - 20 * + ( - COALESCE ( + COALESCE ( - COUNT ( * ), CAST ( NULL AS INTEGER ), - 95 + - 37 ), - 9 * + 84 - + COALESCE ( MAX ( - 15 ), + 86 * - ( - ( - 89 ) ) + 50 * 11 ) ) ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL 37 * + SUM( DISTINCT + 66 ) AS col1
----
2442

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL 37 * + SUM ( DISTINCT + 66 ) AS col1
----
2442

onlyif mysql # DIV for integer division: 
query I rowsort label-3293
SELECT 20 + - + 34 DIV ( + 4 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3293
SELECT 20 + - + 34 / ( + 4 ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3294
SELECT 56 - CASE - + 56 WHEN - NULLIF ( - + 93, 53 * - - 36 ) * - 71 + - 45 * + ( - 65 ) + - NULLIF ( 46 + - 81, + 67 ) THEN 30 / - NULLIF ( + 37, + CASE WHEN - 14 > NULL THEN 53 * 41 + CAST( NULL AS SIGNED ) WHEN + 94 <> 58 * - CASE - 45 WHEN COUNT( * ) THEN 37 / - 69 WHEN + 78 / + 73 THEN - 55 * 29 + + 38 ELSE NULL END THEN NULL ELSE + 61 END * - 51 ) WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT 56 - CASE - + 56 WHEN - NULLIF ( - + 93, 53 * - - 36 ) * - 71 + - 45 * + ( - 65 ) + - NULLIF ( 46 + - 81, + 67 ) THEN 30 / - NULLIF ( + 37, + CASE WHEN - 14 > NULL THEN 53 * 41 + CAST ( NULL AS INTEGER ) WHEN + 94 <> 58 * - CASE - 45 WHEN COUNT ( * ) THEN 37 / - 69 WHEN + 78 / + 73 THEN - 55 * 29 + + 38 ELSE NULL END THEN NULL ELSE + 61 END * - 51 ) WHEN + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 83, 91 ) AS col0
----
83

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

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

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

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

query I rowsort
SELECT 46 + 39 * 30 AS col2
----
1216

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

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

query I rowsort
SELECT 65 + - 98
----
-33

query I rowsort
SELECT ALL 41 + + 45 + 60 * - - 27 * - 45 AS col1
----
-72814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3302
SELECT + ( CAST( NULL AS SIGNED ) ) * 38 / + COALESCE ( + 96, COUNT( * ) - - 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT + ( CAST ( NULL AS INTEGER ) ) * 38 / + COALESCE ( + 96, COUNT ( * ) - - 82 ) AS col1
----
NULL

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

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

query I rowsort
SELECT + 60 + - 78
----
-18

query I rowsort
SELECT ALL - 40 + - + 62 * - 59 + - 22
----
3596

query I rowsort
SELECT + ( + 4 ) + - 24 col0
----
-20

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

query I rowsort
SELECT ALL - NULLIF ( + + 25, + 82 * 1 * + NULLIF ( - 0, 87 ) ) * + - 75 - - 23
----
1898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT + 27 * + AVG ( ALL 15 ) / + - COALESCE ( - 14, + COUNT( * ) + 3 + - + 53, 70 + SUM( DISTINCT + 91 ), 20 * 63 ) + CAST( NULL AS SIGNED ) * - 77 + NULLIF ( + 7, COUNT( * ) + COUNT( * ) * 24 ) / 77 + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT + 27 * + AVG ( ALL 15 ) / + - COALESCE ( - 14, + COUNT ( * ) + 3 + - + 53, 70 + SUM ( DISTINCT + 91 ), 20 * 63 ) + CAST ( NULL AS INTEGER ) * - 77 + NULLIF ( + 7, COUNT ( * ) + COUNT ( * ) * 24 ) / 77 + 61
----
NULL

query I rowsort
SELECT ALL + 94 * - 75 - + - 58 - + 54 AS col1
----
-7046

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT ALL + + CASE 0 WHEN + 9 THEN NULL ELSE - ( - 37 ) * + 95 * 63 * + ( 90 ) - 84 + - - COUNT( * ) + - 9 * 90 + NULLIF ( 59, 32 + COUNT( * ) ) * + 31 END
----
19930986

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + + CASE 0 WHEN + 9 THEN NULL ELSE - ( - 37 ) * + 95 * 63 * + ( 90 ) - 84 + - - COUNT ( * ) + - 9 * 90 + NULLIF ( 59, 32 + COUNT ( * ) ) * + 31 END
----
19930986

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3313
SELECT + + 64 AS col0, - 31 + - + COUNT( * ) * 23 - - 2 AS col0
----
64
-52

skipif mysql # not compatible
query II rowsort label-3313
SELECT + + 64 AS col0, - 31 + - + COUNT ( * ) * 23 - - 2 AS col0
----
64
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT DISTINCT 37 * + - CASE + CASE - 78 WHEN 57 / + - 47 + ( + 16 ) + 74 THEN + ( - COUNT( * ) ) END WHEN COUNT( * ) THEN - 3 * COUNT( * ) + - ( - 34 ) * - 45 WHEN CAST( NULL AS SIGNED ) - 64 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT 37 * + - CASE + CASE - 78 WHEN 57 / + - 47 + ( + 16 ) + 74 THEN + ( - COUNT ( * ) ) END WHEN COUNT ( * ) THEN - 3 * COUNT ( * ) + - ( - 34 ) * - 45 WHEN CAST ( NULL AS INTEGER ) - 64 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + + 32 * - ( + CASE 32 WHEN - 37 THEN + 26 ELSE NULL END ) * - COUNT( * ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT + + 32 * - ( + CASE 32 WHEN - 37 THEN + 26 ELSE NULL END ) * - COUNT ( * ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT - 51 * - + 14 + ( CAST( - CAST( - 49 AS SIGNED ) AS SIGNED ) ) * + - 19
----
-217

skipif mysql # not compatible
query I rowsort label-3316
SELECT - 51 * - + 14 + ( CAST ( - CAST ( - 49 AS INTEGER ) AS INTEGER ) ) * + - 19
----
-217

onlyif mysql # DIV for integer division: 
query I rowsort label-3317
SELECT - 34 DIV 28 * + 84 DIV - 59 + 60
----
61

skipif mysql # not compatible
query I rowsort label-3317
SELECT - 34 / 28 * + 84 / - 59 + 60
----
61

query I rowsort
SELECT ( - 59 ) AS col1
----
-59

query I rowsort
SELECT + 38 + 46
----
84

query I rowsort
SELECT - + 77 * - 27 + - 4
----
2075

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL + + ( - - CASE - 73 WHEN + + ( - + COUNT( * ) ) THEN NULL ELSE 21 * + MAX( ALL 21 ) END ) / - CASE - 66 WHEN + 71 THEN 32 / + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE NULL END * 27 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL + + ( - - CASE - 73 WHEN + + ( - + COUNT ( * ) ) THEN NULL ELSE 21 * + MAX ( ALL 21 ) END ) / - CASE - 66 WHEN + 71 THEN 32 / + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE NULL END * 27 + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL + - ( + + ( + - COALESCE ( - + 51, + MIN( ALL + 60 ) ) ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL + - ( + + ( + - COALESCE ( - + 51, + MIN ( ALL + 60 ) ) ) ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT DISTINCT + SUM( DISTINCT + - 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT + SUM ( DISTINCT + - 69 ) AS col0
----
-69

query II rowsort
SELECT DISTINCT + 30 * + 82 col0, 33 AS col0
----
2460
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3325
SELECT - COUNT( * ) * - - 12 AS col1, - CASE + + 75 WHEN + 83 * + 89 / - COUNT( - ( 56 ) ) - - ( 19 ) + COALESCE ( - ( - 3 ), 30 + - 73, 30 + + 58 * AVG ( ALL ( + NULLIF ( + 46, 2 ) ) * 81 ) ) * 7 THEN NULL WHEN - 47 THEN NULL ELSE CAST( + 87 AS SIGNED ) END
----
-12
-87

skipif mysql # not compatible
query II rowsort label-3325
SELECT - COUNT ( * ) * - - 12 AS col1, - CASE + + 75 WHEN + 83 * + 89 / - COUNT ( - ( 56 ) ) - - ( 19 ) + COALESCE ( - ( - 3 ), 30 + - 73, 30 + + 58 * AVG ( ALL ( + NULLIF ( + 46, 2 ) ) * 81 ) ) * 7 THEN NULL WHEN - 47 THEN NULL ELSE CAST ( + 87 AS INTEGER ) END
----
-12
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3326
SELECT ALL + 57 DIV + 42 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL + 57 / + 42 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3327
SELECT - COALESCE ( - CASE + CASE - 87 WHEN - + 8 THEN NULL WHEN + + 38 * - 98 + - 81 - + COUNT( * ) THEN - 8 * - ( COUNT( ALL - 72 ) ) WHEN 76 THEN - 28 ELSE NULL END WHEN + 16 THEN - 78 * - 17 END, + 5 - NULLIF ( + ( 93 ), 37 * 88 - + 11 ), + 46 * + 9 ) + - 21 DIV + 68
----
88

skipif mysql # not compatible
query I rowsort label-3327
SELECT - COALESCE ( - CASE + CASE - 87 WHEN - + 8 THEN NULL WHEN + + 38 * - 98 + - 81 - + COUNT ( * ) THEN - 8 * - ( COUNT ( ALL - 72 ) ) WHEN 76 THEN - 28 ELSE NULL END WHEN + 16 THEN - 78 * - 17 END, + 5 - NULLIF ( + ( 93 ), 37 * 88 - + 11 ), + 46 * + 9 ) + - 21 / + 68
----
88

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

query II rowsort
SELECT ALL + 85 * + + 36 AS col2, + 51
----
3060
51

query I rowsort
SELECT DISTINCT - ( - + 77 ) * + 20
----
1540

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

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

query I rowsort
SELECT DISTINCT - 12 + 90
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT ALL + 58 + + + 1 + + 83 - 64 DIV - 16 - + + 87 + + 62 * - 1 * - 43 AS col1
----
2725

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL + 58 + + + 1 + + 83 - 64 / - 16 - + + 87 + + 62 * - 1 * - 43 AS col1
----
2725

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

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

query I rowsort
SELECT ALL - 94 + - ( 61 ) AS col2
----
-155

query I rowsort
SELECT DISTINCT + 67 * + + 46
----
3082

onlyif mysql # aggregate syntax: 
query II rowsort label-3337
SELECT ALL 30 + - 48, 10 * 99 * + COUNT( ALL + 76 ) AS col0
----
-18
990

skipif mysql # not compatible
query II rowsort label-3337
SELECT ALL 30 + - 48, 10 * 99 * + COUNT ( ALL + 76 ) AS col0
----
-18
990

onlyif mysql # aggregate syntax: 
query II rowsort label-3338
SELECT - SUM( + 92 ), ( 63 ) + 52 AS col0
----
-92
115

skipif mysql # not compatible
query II rowsort label-3338
SELECT - SUM ( + 92 ), ( 63 ) + 52 AS col0
----
-92
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3339
SELECT DISTINCT + 40 + - + 69 - - MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT + 40 + - + 69 - - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) / 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3340
SELECT - CASE - - 97 WHEN + + ( + 89 ) THEN - - 65 END + + 38 + COUNT( * ) * + 26, 39 * + - 50 * - ( - 98 ) AS col0
----
NULL
-191100

skipif mysql # not compatible
query II rowsort label-3340
SELECT - CASE - - 97 WHEN + + ( + 89 ) THEN - - 65 END + + 38 + COUNT ( * ) * + 26, 39 * + - 50 * - ( - 98 ) AS col0
----
NULL
-191100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3341
SELECT + CAST( NULL AS DECIMAL ) + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT + CAST ( NULL AS REAL ) + 41 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3342
SELECT - + NULLIF ( - CASE - 26 WHEN SUM( DISTINCT - CASE - 64 WHEN - 28 * 20 THEN CAST( + - 1 AS SIGNED ) WHEN + - 68 THEN NULL END ) THEN NULL ELSE + 12 - + COALESCE ( - CASE 78 WHEN - COUNT( * ) * - CASE - 49 / CASE 31 * + 11 WHEN 57 THEN + 0 WHEN + 81 + NULLIF ( - 28, 57 + 19 ) THEN - 39 / - ( 92 ) WHEN 43 + 86 THEN NULL ELSE NULL END WHEN + 43 * - 49 THEN + 70 - 41 / + 98 WHEN 88 THEN NULL WHEN + ( + 87 ) - 92 THEN NULL END THEN NULL WHEN 37 / + 11 THEN - COUNT( * ) * + 53 + + 3 END, + NULLIF ( 64, + 81 - 70 ), COUNT( * ) ) END, + 14 + - 6 * ( - 32 * - 11 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-3342
SELECT - + NULLIF ( - CASE - 26 WHEN SUM ( DISTINCT - CASE - 64 WHEN - 28 * 20 THEN CAST ( + - 1 AS INTEGER ) WHEN + - 68 THEN NULL END ) THEN NULL ELSE + 12 - + COALESCE ( - CASE 78 WHEN - COUNT ( * ) * - CASE - 49 / CASE 31 * + 11 WHEN 57 THEN + 0 WHEN + 81 + NULLIF ( - 28, 57 + 19 ) THEN - 39 / - ( 92 ) WHEN 43 + 86 THEN NULL ELSE NULL END WHEN + 43 * - 49 THEN + 70 - 41 / + 98 WHEN 88 THEN NULL WHEN + ( + 87 ) - 92 THEN NULL END THEN NULL WHEN 37 / + 11 THEN - COUNT ( * ) * + 53 + + 3 END, + NULLIF ( 64, + 81 - 70 ), COUNT ( * ) ) END, + 14 + - 6 * ( - 32 * - 11 ) )
----
-52

query I rowsort
SELECT ALL - 94 - + 11 + - - 51 AS col0
----
-54

query I rowsort
SELECT + 67 * - + ( 97 )
----
-6499

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

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

query I rowsort
SELECT ALL + NULLIF ( + + 64, - 13 ) - + + 51 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT DISTINCT - ( + + 5 ) * COUNT( * ) AS col2, 79
----
-5
79

skipif mysql # not compatible
query II rowsort label-3347
SELECT DISTINCT - ( + + 5 ) * COUNT ( * ) AS col2, 79
----
-5
79

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

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

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

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

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

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

query II rowsort
SELECT + + 87 * 62 AS col2, - 42
----
5394
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3352
SELECT - + ( + 74 ) * - MIN( + - 62 ) + - CAST( NULL AS SIGNED ) + + + NULLIF ( + - 5, + 58 * + + COUNT( * ) + 70 * + 76 + COUNT( * ) ) + ( - 68 ) + - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT - + ( + 74 ) * - MIN ( + - 62 ) + - CAST ( NULL AS INTEGER ) + + + NULLIF ( + - 5, + 58 * + + COUNT ( * ) + 70 * + 76 + COUNT ( * ) ) + ( - 68 ) + - 27 AS col1
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT ( - - 34 )
----
34

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

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * - 87
----
-87

query I rowsort
SELECT + 96 + 48
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT ( CASE + COUNT( * ) WHEN + - ( + SUM( - 44 ) ) THEN + 38 WHEN + COUNT( DISTINCT - - 32 ) * + 81 THEN - + 62 + CAST( - + 37 AS SIGNED ) * + 56 WHEN + 98 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT ( CASE + COUNT ( * ) WHEN + - ( + SUM ( - 44 ) ) THEN + 38 WHEN + COUNT ( DISTINCT - - 32 ) * + 81 THEN - + 62 + CAST ( - + 37 AS INTEGER ) * + 56 WHEN + 98 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT - 73 * - 75 * + + 42 + - + SUM( DISTINCT 78 )
----
229872

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT - 73 * - 75 * + + 42 + - + SUM ( DISTINCT 78 )
----
229872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3361
SELECT COALESCE ( - NULLIF ( - 68, + 55 + + - COUNT( DISTINCT 28 ) + - + 68 ), - CAST( + + 80 AS SIGNED ), COUNT( * ) * NULLIF ( + - 6, - + MAX( ALL 91 ) / 99 ) + 67 )
----
68

skipif mysql # not compatible
query I rowsort label-3361
SELECT COALESCE ( - NULLIF ( - 68, + 55 + + - COUNT ( DISTINCT 28 ) + - + 68 ), - CAST ( + + 80 AS INTEGER ), COUNT ( * ) * NULLIF ( + - 6, - + MAX ( ALL 91 ) / 99 ) + 67 )
----
68

query I rowsort
SELECT DISTINCT 46 * ( + ( - 73 ) ) + 71 + + 67
----
-3220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3363
SELECT ALL 15 * + COUNT( * ) * - + 43 + - - 45 + - 66 DIV COUNT( * ) * + 55 AS col0
----
-4230

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL 15 * + COUNT ( * ) * - + 43 + - - 45 + - 66 / COUNT ( * ) * + 55 AS col0
----
-4230

query II rowsort
SELECT NULLIF ( - 2, + 26 ) AS col0, + 44 AS col2
----
-2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT DISTINCT COUNT( DISTINCT + 62 )
----
1

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT COUNT ( DISTINCT + 62 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT 71 * SUM( DISTINCT - - 51 ) * + 35 * + 9 AS col2
----
1140615

skipif mysql # not compatible
query I rowsort label-3366
SELECT 71 * SUM ( DISTINCT - - 51 ) * + 35 * + 9 AS col2
----
1140615

query I rowsort
SELECT DISTINCT - 81 * 9
----
-729

query II rowsort
SELECT - 75 AS col0, 44
----
-75
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT 55 + COUNT( * ) + - 32 * + + 98 col1
----
-3080

skipif mysql # not compatible
query I rowsort label-3369
SELECT 55 + COUNT ( * ) + - 32 * + + 98 col1
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT 90 - + COALESCE ( - - COUNT( * ), - + 95 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3370
SELECT 90 - + COALESCE ( - - COUNT ( * ), - + 95 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL - 91 * - COUNT( + 17 ) * - 89
----
-8099

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL - 91 * - COUNT ( + 17 ) * - 89
----
-8099

query II rowsort
SELECT ALL 98 AS col2, - 47 AS col0
----
98
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT 32 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT 32 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT ALL CASE 23 WHEN 56 THEN + NULLIF ( 28, + + SUM( DISTINCT + 25 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL CASE 23 WHEN 56 THEN + NULLIF ( 28, + + SUM ( DISTINCT + 25 ) ) END
----
NULL

query II rowsort
SELECT DISTINCT + 27 AS col1, + 13 * - + 4 + - 38 AS col1
----
27
-90

query I rowsort
SELECT + 45 + - 86
----
-41

query II rowsort
SELECT - + 78 col1, 45
----
-78
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3378
SELECT 80 DIV - - COUNT( * ) - 70
----
10

skipif mysql # not compatible
query I rowsort label-3378
SELECT 80 / - - COUNT ( * ) - 70
----
10

query I rowsort
SELECT - 68 * 70 * 32
----
-152320

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL - 5 * + + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL - 5 * + + COUNT ( * )
----
-5

query I rowsort
SELECT DISTINCT - + ( 60 ) * 19 AS col1
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL - - 84 + - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - - 84 + - COUNT ( * )
----
83

query I rowsort
SELECT DISTINCT - - 26 col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3384
SELECT 20 DIV + - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-3384
SELECT 20 / + - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT 57 * 41 * 49 + - 1, 18 * 9 + + MIN( + ( - 23 ) ) + + - 60 AS col1
----
114512
79

skipif mysql # not compatible
query II rowsort label-3385
SELECT 57 * 41 * 49 + - 1, 18 * 9 + + MIN ( + ( - 23 ) ) + + - 60 AS col1
----
114512
79

query I rowsort
SELECT ALL 84 + - ( - 63 ) AS col0
----
147

query I rowsort
SELECT COALESCE ( + - 76, + - 15 * + 20 ) + 49 * + 77 col1
----
3697

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3388
SELECT COUNT( * ) + COUNT( * ) * MIN( ALL - + 25 ), + COALESCE ( - 84, + + 30 DIV - 61 ) * - - 56 col0
----
-24
-4704

skipif mysql # not compatible
query II rowsort label-3388
SELECT COUNT ( * ) + COUNT ( * ) * MIN ( ALL - + 25 ), + COALESCE ( - 84, + + 30 / - 61 ) * - - 56 col0
----
-24
-4704

onlyif mysql # aggregate syntax: 
query II rowsort label-3389
SELECT + 67 * 29 - 76 + - + MAX( DISTINCT - 25 ) + + COUNT( * ) * + 50 * - - ( - 88 ) AS col1, 45
----
-2508
45

skipif mysql # not compatible
query II rowsort label-3389
SELECT + 67 * 29 - 76 + - + MAX ( DISTINCT - 25 ) + + COUNT ( * ) * + 50 * - - ( - 88 ) AS col1, 45
----
-2508
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3390
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 72 + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 72 + 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3391
SELECT ALL 54 * + COUNT( * ) * + CAST( + ( + 40 ) AS SIGNED ) * - COUNT( * ) + COUNT( DISTINCT - ( - 44 ) ) AS col2, - 68 * 86 AS col0
----
-2159
-5848

skipif mysql # not compatible
query II rowsort label-3391
SELECT ALL 54 * + COUNT ( * ) * + CAST ( + ( + 40 ) AS INTEGER ) * - COUNT ( * ) + COUNT ( DISTINCT - ( - 44 ) ) AS col2, - 68 * 86 AS col0
----
-2159
-5848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3392
SELECT ALL 25 + NULLIF ( - + CAST( NULL AS SIGNED ), - + 9 ) / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL 25 + NULLIF ( - + CAST ( NULL AS INTEGER ), - + 9 ) / + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 83 + - 4
----
79

query I rowsort
SELECT 81 + + 11 - - 76
----
168

query II rowsort
SELECT ( + 85 ) + - ( - ( 49 ) ) AS col2, - 13 + - 84
----
134
-97

query I rowsort
SELECT DISTINCT 53 * - 11 * 82
----
-47806

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT 32 * ( 11 ) + + + COUNT( * ) + - + COUNT( * )
----
352

skipif mysql # not compatible
query I rowsort label-3397
SELECT 32 * ( 11 ) + + + COUNT ( * ) + - + COUNT ( * )
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT ALL 71 - - 98 * - 71 + + 21 * - 14 + + - COUNT( * ) AS col1
----
-7182

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL 71 - - 98 * - 71 + + 21 * - 14 + + - COUNT ( * ) AS col1
----
-7182

query I rowsort
SELECT 71 * + 63 AS col2
----
4473

query I rowsort
SELECT DISTINCT 6 - + 16 AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3401
SELECT ALL - 61 DIV NULLIF ( + + 48, 37 + + MAX( 19 ) * + 64 - - + 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL - 61 / NULLIF ( + + 48, 37 + + MAX ( 19 ) * + 64 - - + 32 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3402
SELECT CASE - 83 WHEN - MIN( 45 ) THEN NULL WHEN 57 THEN + 64 - 95 ELSE 76 END * + 59 + + - 6 AS col0, + 9 + + + 64 AS col2
----
4478
73

skipif mysql # not compatible
query II rowsort label-3402
SELECT CASE - 83 WHEN - MIN ( 45 ) THEN NULL WHEN 57 THEN + 64 - 95 ELSE 76 END * + 59 + + - 6 AS col0, + 9 + + + 64 AS col2
----
4478
73

query I rowsort
SELECT ALL - 11 * - 84 AS col1
----
924

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT ALL 85 DIV 59
----
1

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL 85 / 59
----
1

query I rowsort
SELECT - 25 + - 94
----
-119

onlyif mysql # aggregate syntax: 
query II rowsort label-3406
SELECT - 69 * + 41 col1, COUNT( * ) + - 62 AS col0
----
-2829
-61

skipif mysql # not compatible
query II rowsort label-3406
SELECT - 69 * + 41 col1, COUNT ( * ) + - 62 AS col0
----
-2829
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT 46 + - SUM( - 55 ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-3407
SELECT 46 + - SUM ( - 55 ) AS col1
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3408
SELECT ALL - 9 * + CAST( NULL AS SIGNED ) AS col0, + 58 + 21
----
NULL
79

skipif mysql # not compatible
query II rowsort label-3408
SELECT ALL - 9 * + CAST ( NULL AS INTEGER ) AS col0, + 58 + 21
----
NULL
79

query I rowsort
SELECT ALL + - 61 * - - 10
----
-610

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3410
SELECT + CAST( - - 46 AS SIGNED ) DIV + - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3410
SELECT + CAST ( - - 46 AS INTEGER ) / + - 79 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3411
SELECT 95 - - 73 / CAST( NULL AS SIGNED ) / + 28 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT 95 - - 73 / CAST ( NULL AS INTEGER ) / + 28 * - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 65 * + 30 * 7 AS col0
----
-13650

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL + MAX( ALL - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL + MAX ( ALL - 65 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT ALL CAST( - 93 AS SIGNED ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL CAST ( - 93 AS INTEGER ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL - COUNT( * ) + 91 * + SUM( - 98 ) * 35 - + - 43 - + 94 + + 75 AS col2
----
-312107

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - COUNT ( * ) + 91 * + SUM ( - 98 ) * 35 - + - 43 - + 94 + + 75 AS col2
----
-312107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT ALL ( + - 67 ) * - 90 + + - 36 + + CAST( + - 53 AS SIGNED ) AS col0
----
5941

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL ( + - 67 ) * - 90 + + - 36 + + CAST ( + - 53 AS INTEGER ) AS col0
----
5941

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT + 44 * + MAX( ALL - + ( + COALESCE ( + - 97, - 79 ) ) ) + 72 + - + 96 * + + 11 * ( + - 81 ) + - 21 + - 16 * 41 + + 22
----
89221

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT + 44 * + MAX ( ALL - + ( + COALESCE ( + - 97, - 79 ) ) ) + 72 + - + 96 * + + 11 * ( + - 81 ) + - 21 + - 16 * 41 + + 22
----
89221

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT 65 * + COUNT( - + 42 )
----
65

skipif mysql # not compatible
query I rowsort label-3418
SELECT 65 * + COUNT ( - + 42 )
----
65

query I rowsort
SELECT ALL 63 * 74 + + 86
----
4748

query I rowsort
SELECT 36 * + 33
----
1188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3421
SELECT DISTINCT 38 * - + 99 + + MIN( ALL 93 ) + + CASE - - CAST( NULL AS SIGNED ) WHEN + - 71 + - 10 THEN + 45 * - CASE + 38 WHEN + + 93 THEN NULL ELSE CAST( NULL AS SIGNED ) END + - 8 + 75 WHEN 36 THEN NULL END * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT 38 * - + 99 + + MIN ( ALL 93 ) + + CASE - - CAST ( NULL AS INTEGER ) WHEN + - 71 + - 10 THEN + 45 * - CASE + 38 WHEN + + 93 THEN NULL ELSE CAST ( NULL AS INTEGER ) END + - 8 + 75 WHEN 36 THEN NULL END * 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL - 35 / + - 69 / - CASE AVG ( DISTINCT + - 44 ) WHEN - 59 * 51 THEN NULL WHEN - 64 / + 38 + + 59 - - 90 + - + 39 * + - ( ( 45 ) ) + + 29 THEN - COUNT( * ) END * NULLIF ( + 23, COUNT( * ) + - 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL - 35 / + - 69 / - CASE AVG ( DISTINCT + - 44 ) WHEN - 59 * 51 THEN NULL WHEN - 64 / + 38 + + 59 - - 90 + - + 39 * + - ( ( 45 ) ) + + 29 THEN - COUNT ( * ) END * NULLIF ( + 23, COUNT ( * ) + - 0 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3423
SELECT DISTINCT 75 * - + 70 + + - CAST( - 87 AS SIGNED ) DIV 83
----
-5249

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT 75 * - + 70 + + - CAST ( - 87 AS INTEGER ) / 83
----
-5249

query I rowsort
SELECT ALL + NULLIF ( - 85, - - 50 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-3425
SELECT + COUNT( * ) col1, MIN( ALL 13 ) AS col0
----
1
13

skipif mysql # not compatible
query II rowsort label-3425
SELECT + COUNT ( * ) col1, MIN ( ALL 13 ) AS col0
----
1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT SUM( + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-3426
SELECT SUM ( + 31 )
----
31

query I rowsort
SELECT ALL 71 / + - 85 * + - CASE + 57 WHEN + 70 THEN NULL WHEN + 79 THEN + + 31 + + ( - 29 ) + + ( + NULLIF ( 38, - 32 ) ) * + 88 * - 94 * 62 WHEN 31 * + 35 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT + NULLIF ( ( + - MIN( DISTINCT - 79 ) ), 40 * - COUNT( * ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3428
SELECT + NULLIF ( ( + - MIN ( DISTINCT - 79 ) ), 40 * - COUNT ( * ) ) AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT + CAST( NULL AS SIGNED ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3429
SELECT + CAST ( NULL AS INTEGER ) + - 0
----
NULL

query I rowsort
SELECT DISTINCT 0 * + 21 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT + CASE - - 69 WHEN - COUNT( * ) + + + CAST( NULL AS SIGNED ) / - + 31 * - COUNT( * ) + + COUNT( * ) THEN - 38 END * + 21 - - AVG ( DISTINCT 72 ) * + COUNT( * ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT + CASE - - 69 WHEN - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) / - + 31 * - COUNT ( * ) + + COUNT ( * ) THEN - 38 END * + 21 - - AVG ( DISTINCT 72 ) * + COUNT ( * ) * - 5
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3432
SELECT - NULLIF ( + SUM( 38 ), + + 93 * - - 15 ) AS col1, SUM( ALL - - ( ( + 34 ) ) ) DIV + 1 AS col1
----
-38
34

skipif mysql # not compatible
query II rowsort label-3432
SELECT - NULLIF ( + SUM ( 38 ), + + 93 * - - 15 ) AS col1, SUM ( ALL - - ( ( + 34 ) ) ) / + 1 AS col1
----
-38
34

query I rowsort
SELECT + 44 + + 72
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT + + COUNT( * ) * COUNT( * ) + 95 + + 85 + + - COUNT( * ) * + 35
----
146

skipif mysql # not compatible
query I rowsort label-3434
SELECT + + COUNT ( * ) * COUNT ( * ) + 95 + + 85 + + - COUNT ( * ) * + 35
----
146

query I rowsort
SELECT + + 43 * - + 70 * + 50
----
-150500

query I rowsort
SELECT + 27 + + 39 AS col2
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-3437
SELECT ALL 59 + 35 DIV - 74, 44 col1
----
59
44

skipif mysql # not compatible
query II rowsort label-3437
SELECT ALL 59 + 35 / - 74, 44 col1
----
59
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL - COUNT( * ) + 60 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL - COUNT ( * ) + 60 AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3439
SELECT ALL - - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) + + - 56 + - ( - - 53 ) * + 23 AS col0, 62
----
-1275
62

skipif mysql # not compatible
query II rowsort label-3439
SELECT ALL - - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) + + - 56 + - ( - - 53 ) * + 23 AS col0, 62
----
-1275
62

onlyif mysql # DIV for integer division: 
query II rowsort label-3440
SELECT ALL + 39 + 26 + - 78, + 90 DIV 97 AS col2
----
-13
0

skipif mysql # not compatible
query II rowsort label-3440
SELECT ALL + 39 + 26 + - 78, + 90 / 97 AS col2
----
-13
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT ALL 86 DIV ( + 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 86 / ( + 58 ) AS col1
----
1

query I rowsort
SELECT - - 17 * - 62 * - - 50 * + 2 AS col2
----
-105400

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL + COUNT( ALL - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + COUNT ( ALL - 50 )
----
1

query I rowsort
SELECT + + 47 + + + 37
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT - + 42 * MAX( DISTINCT 24 ) AS col1
----
-1008

skipif mysql # not compatible
query I rowsort label-3445
SELECT - + 42 * MAX ( DISTINCT 24 ) AS col1
----
-1008

onlyif mysql # aggregate syntax: 
query II rowsort label-3446
SELECT ALL - 36 + - 87 + - ( COUNT( * ) ) + + 74, + COUNT( * ) AS col0
----
-50
1

skipif mysql # not compatible
query II rowsort label-3446
SELECT ALL - 36 + - 87 + - ( COUNT ( * ) ) + + 74, + COUNT ( * ) AS col0
----
-50
1

query I rowsort
SELECT ALL + + 16 + - 41 col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3448
SELECT CAST( NULL AS SIGNED ) col2, + 81 - - 2 AS col0
----
NULL
83

skipif mysql # not compatible
query II rowsort label-3448
SELECT CAST ( NULL AS INTEGER ) col2, + 81 - - 2 AS col0
----
NULL
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3449
SELECT AVG ( + - CAST( NULL AS SIGNED ) ) * + 27 + + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT AVG ( + - CAST ( NULL AS INTEGER ) ) * + 27 + + 52 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3450
SELECT + NULLIF ( - 33, + 27 / - 58 * CAST( + AVG ( ALL - + 77 ) AS SIGNED ) ) * CAST( + 0 AS SIGNED ) * + COUNT( * ) + - + 13 AS col1, + 0 + - 95 col0
----
-13
-95

skipif mysql # not compatible
query II rowsort label-3450
SELECT + NULLIF ( - 33, + 27 / - 58 * CAST ( + AVG ( ALL - + 77 ) AS INTEGER ) ) * CAST ( + 0 AS INTEGER ) * + COUNT ( * ) + - + 13 AS col1, + 0 + - 95 col0
----
-13
-95

query I rowsort
SELECT ALL + ( - 46 ) col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3452
SELECT ALL - 80 DIV ( + COUNT( * ) ) + SUM( 22 )
----
-58

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL - 80 / ( + COUNT ( * ) ) + SUM ( 22 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL COUNT( * ) * + ( + - ( - ( 16 ) ) ) * - + 96 AS col2
----
-1536

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL COUNT ( * ) * + ( + - ( - ( 16 ) ) ) * - + 96 AS col2
----
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT - COUNT( * ) + + 58 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3454
SELECT - COUNT ( * ) + + 58 AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3455
SELECT ALL COUNT( * ) DIV - 60 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL COUNT ( * ) / - 60 - + + COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3456
SELECT + 59 DIV + 60 + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3456
SELECT + 59 / + 60 + 16 AS col2
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-3457
SELECT ( + 35 ), + 9 DIV 92 AS col0
----
35
0

skipif mysql # not compatible
query II rowsort label-3457
SELECT ( + 35 ), + 9 / 92 AS col0
----
35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT + MIN( DISTINCT ( + - CASE 91 WHEN + - 26 THEN + + 70 ELSE NULL END ) ) * - COUNT( * ) + - 54 * COUNT( * ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT + MIN ( DISTINCT ( + - CASE 91 WHEN + - 26 THEN + + 70 ELSE NULL END ) ) * - COUNT ( * ) + - 54 * COUNT ( * ) + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT - COUNT( * ) * + 52 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-3459
SELECT - COUNT ( * ) * + 52 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query III rowsort label-3460
SELECT ALL + 35 AS col0, 81 AS col0, COUNT( * ) + - - 86 AS col1
----
35
81
87

skipif mysql # not compatible
query III rowsort label-3460
SELECT ALL + 35 AS col0, 81 AS col0, COUNT ( * ) + - - 86 AS col1
----
35
81
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3461
SELECT ( 56 ) AS col1, COUNT( * ) AS col1
----
56
1

skipif mysql # not compatible
query II rowsort label-3461
SELECT ( 56 ) AS col1, COUNT ( * ) AS col1
----
56
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3462
SELECT DISTINCT + 42 AS col1, - COUNT( * ) + 71
----
42
70

skipif mysql # not compatible
query II rowsort label-3462
SELECT DISTINCT + 42 AS col1, - COUNT ( * ) + 71
----
42
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL + MAX( ALL - 15 ) * + 35 + + - 50
----
-575

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL + MAX ( ALL - 15 ) * + 35 + + - 50
----
-575

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT DISTINCT + 87 DIV - 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + 87 / - 62 AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3465
SELECT DISTINCT + CASE + - 40 WHEN + CAST( NULL AS DECIMAL ) THEN + 49 + + ( 78 ) + - - 90 - - ( ( NULLIF ( 60, - 69 ) ) ) * + + 68 / 7 ELSE - AVG ( - CAST( NULL AS DECIMAL ) ) END * - 86 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT + CASE + - 40 WHEN + CAST ( NULL AS REAL ) THEN + 49 + + ( 78 ) + - - 90 - - ( ( NULLIF ( 60, - 69 ) ) ) * + + 68 / 7 ELSE - AVG ( - CAST ( NULL AS REAL ) ) END * - 86 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT + 78 * + COUNT( * ) * - - ( - 5 )
----
-390

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT + 78 * + COUNT ( * ) * - - ( - 5 )
----
-390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT - CAST( NULL AS SIGNED ) * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT - CAST ( NULL AS INTEGER ) * - 76
----
NULL

query II rowsort
SELECT DISTINCT + 38 AS col0, 92 AS col1
----
38
92

query I rowsort
SELECT ALL + 60 * - 32 AS col0
----
-1920

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT + + 64 + - - ( + + 21 ) + 32 DIV - 89 + + 59 * - 24
----
-1331

skipif mysql # not compatible
query I rowsort label-3470
SELECT + + 64 + - - ( + + 21 ) + 32 / - 89 + + 59 * - 24
----
-1331

query I rowsort
SELECT - CASE + 98 WHEN 94 THEN - 52 + - ( + - 84 ) WHEN - + 17 * + 64 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - - 95 * - 58 * + 55 * - - 16
----
-4848800

onlyif mysql # aggregate syntax: 
query II rowsort label-3473
SELECT + - CASE + 62 WHEN + 30 * - 37 THEN - 33 WHEN 47 THEN - 84 + - ( - 36 ) ELSE - ( + 40 ) END + + 76 AS col2, COALESCE ( + + 91, - - 60 + - 80 + 90 * COUNT( * ), 60 * 45 - CASE 84 WHEN + 97 THEN COUNT( * ) ELSE NULL END * COUNT( * ) ) - 51 * + 80 AS col0
----
116
-3989

skipif mysql # not compatible
query II rowsort label-3473
SELECT + - CASE + 62 WHEN + 30 * - 37 THEN - 33 WHEN 47 THEN - 84 + - ( - 36 ) ELSE - ( + 40 ) END + + 76 AS col2, COALESCE ( + + 91, - - 60 + - 80 + 90 * COUNT ( * ), 60 * 45 - CASE 84 WHEN + 97 THEN COUNT ( * ) ELSE NULL END * COUNT ( * ) ) - 51 * + 80 AS col0
----
116
-3989

onlyif mysql # aggregate syntax: 
query II rowsort label-3474
SELECT ALL - 96 col2, + NULLIF ( + SUM( - 7 ), 72 + - - 96 ) AS col2
----
-96
-7

skipif mysql # not compatible
query II rowsort label-3474
SELECT ALL - 96 col2, + NULLIF ( + SUM ( - 7 ), 72 + - - 96 ) AS col2
----
-96
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3475
SELECT - + COUNT( * ), 88 DIV - ( + COUNT( * ) ) AS col1
----
-1
-88

skipif mysql # not compatible
query II rowsort label-3475
SELECT - + COUNT ( * ), 88 / - ( + COUNT ( * ) ) AS col1
----
-1
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3476
SELECT + COUNT( * ) / + - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * - 91 + + ( AVG ( - 19 ) ) + 41 + - + 62 * + 0 / 5, ( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) + + 53 + - 84 + COUNT( * ) * COUNT( * ) * 13 * 29
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3476
SELECT + COUNT ( * ) / + - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 91 + + ( AVG ( - 19 ) ) + 41 + - + 62 * + 0 / 5, ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + + 53 + - 84 + COUNT ( * ) * COUNT ( * ) * 13 * 29
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT + 90 * COALESCE ( 94, - + 92 ) - 15 * - - 34 + 6 * - + COUNT( ALL 19 ) + + COUNT( * ) + 38
----
7983

skipif mysql # not compatible
query I rowsort label-3477
SELECT + 90 * COALESCE ( 94, - + 92 ) - 15 * - - 34 + 6 * - + COUNT ( ALL 19 ) + + COUNT ( * ) + 38
----
7983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL + - CAST( + - 7 AS SIGNED ) * 96 / - 81 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + - CAST ( + - 7 AS INTEGER ) * 96 / - 81 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 4 * + 4 col2, - 73 + + 37
----
16
-36

query I rowsort
SELECT DISTINCT + 1 + 52
----
53

query I rowsort
SELECT DISTINCT - 26 + - 33 AS col2
----
-59

query I rowsort
SELECT DISTINCT 35 * - 90 * 71
----
-223650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3483
SELECT - - 93 + COALESCE ( SUM( - 69 ), - 59 - - + 74 * 86 * + - 9 + ( - + 1 ) + 4 - + - CAST( NULL AS SIGNED ) )
----
24

skipif mysql # not compatible
query I rowsort label-3483
SELECT - - 93 + COALESCE ( SUM ( - 69 ), - 59 - - + 74 * 86 * + - 9 + ( - + 1 ) + 4 - + - CAST ( NULL AS INTEGER ) )
----
24

query I rowsort
SELECT + + 71 + 72 * + 82 AS col2
----
5975

query I rowsort
SELECT ALL + ( 98 ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT + 36 + ( + 85 ) DIV - 78 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3486
SELECT + 36 + ( + 85 ) / - 78 AS col1
----
35

query II rowsort
SELECT ALL - 32 + + 1, + 28 AS col1
----
-31
28

query I rowsort
SELECT + - ( + + 7 ) * - 63 col1
----
441

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT - + 12 AS col0, - 22 - COUNT( + 38 )
----
-12
-23

skipif mysql # not compatible
query II rowsort label-3489
SELECT - + 12 AS col0, - 22 - COUNT ( + 38 )
----
-12
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT CASE + - 50 WHEN 41 THEN NULL WHEN NULLIF ( 91, - 20 ) THEN - 39 * + + 53 * COUNT( + 53 ) ELSE + 73 * + COUNT( * ) + - 47 END - + + 12
----
14

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT CASE + - 50 WHEN 41 THEN NULL WHEN NULLIF ( 91, - 20 ) THEN - 39 * + + 53 * COUNT ( + 53 ) ELSE + 73 * + COUNT ( * ) + - 47 END - + + 12
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT DISTINCT MAX( DISTINCT - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT MAX ( DISTINCT - 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL + 63 * + 67 * + COUNT( * )
----
4221

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + 63 * + 67 * + COUNT ( * )
----
4221

query I rowsort
SELECT DISTINCT + 54 * - 91 AS col2
----
-4914

onlyif mysql # DIV for integer division: 
query I rowsort label-3494
SELECT DISTINCT 60 DIV - 58 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT 60 / - 58 AS col1
----
-1

query II rowsort
SELECT ALL 95 * - + 31 AS col0, - 38 AS col0
----
-2945
-38

query I rowsort
SELECT DISTINCT 30 * - 68
----
-2040

query II rowsort
SELECT 9 * - 54, 32 col0
----
-486
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL - MAX( ALL + 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL - MAX ( ALL + 39 )
----
-39

query I rowsort
SELECT ALL 36 * - 9
----
-324

query I rowsort
SELECT 96 * 20
----
1920

query I rowsort
SELECT DISTINCT 53 * + + 37
----
1961

query I rowsort
SELECT 6 - + 93 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-3503
SELECT 9 * - COUNT( * ), 48 * - 67 AS col2
----
-9
-3216

skipif mysql # not compatible
query II rowsort label-3503
SELECT 9 * - COUNT ( * ), 48 * - 67 AS col2
----
-9
-3216

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3504
SELECT ( COUNT( * ) ) + + NULLIF ( - 24, - CAST( NULL AS DECIMAL ) + 27 ) DIV - 63 * + 50 * + 28 col0
----
1

skipif mysql # not compatible
query I rowsort label-3504
SELECT ( COUNT ( * ) ) + + NULLIF ( - 24, - CAST ( NULL AS REAL ) + 27 ) / - 63 * + 50 * + 28 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT CAST( - 57 AS SIGNED ) * 69 AS col1
----
-3933

skipif mysql # not compatible
query I rowsort label-3505
SELECT CAST ( - 57 AS INTEGER ) * 69 AS col1
----
-3933

query I rowsort
SELECT + 59 * 19 + + 59
----
1180

query I rowsort
SELECT - 96 * 48 + + 35 AS col1
----
-4573

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT - - 76 * + 69 + + + MIN( DISTINCT + + 8 ) AS col0
----
5252

skipif mysql # not compatible
query I rowsort label-3508
SELECT - - 76 * + 69 + + + MIN ( DISTINCT + + 8 ) AS col0
----
5252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3509
SELECT COALESCE ( + 26, + COUNT( * ), + 78 DIV + + MAX( + 57 ) + + MIN( DISTINCT + 58 ) * - 32, ( + + 35 ) * 42 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3509
SELECT COALESCE ( + 26, + COUNT ( * ), + 78 / + + MAX ( + 57 ) + + MIN ( DISTINCT + 58 ) * - 32, ( + + 35 ) * 42 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL + - 17 * + COUNT( 23 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL + - 17 * + COUNT ( 23 ) AS col2
----
-17

query I rowsort
SELECT ALL 18 + 33 + + - 79 AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3512
SELECT ALL + 88 + - - 67 col0, CAST( - 68 AS SIGNED ) AS col0
----
155
-68

skipif mysql # not compatible
query II rowsort label-3512
SELECT ALL + 88 + - - 67 col0, CAST ( - 68 AS INTEGER ) AS col0
----
155
-68

query I rowsort
SELECT ALL - - 42 * - 15 col0
----
-630

query I rowsort
SELECT ALL - - 25 * + 8 * + 86 AS col0
----
17200

query I rowsort
SELECT ALL - 97 + - 3 AS col2
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3516
SELECT ALL - + 75 + + + 82 / CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * + + SUM( DISTINCT 14 ) - + ( COUNT( DISTINCT + 30 ) ) * 91 + + + 69 / - MAX( - NULLIF ( + + 82, + CAST( NULL AS SIGNED ) ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3516
SELECT ALL - + 75 + + + 82 / CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * + + SUM ( DISTINCT 14 ) - + ( COUNT ( DISTINCT + 30 ) ) * 91 + + + 69 / - MAX ( - NULLIF ( + + 82, + CAST ( NULL AS INTEGER ) ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + 28 + CASE - 95 WHEN 46 THEN + 91 + - + 60 ELSE + COUNT( DISTINCT - - 32 ) END AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3517
SELECT + 28 + CASE - 95 WHEN 46 THEN + 91 + - + 60 ELSE + COUNT ( DISTINCT - - 32 ) END AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3518
SELECT ( - 66 ) + + 59 DIV 67 - - SUM( DISTINCT 15 ) * + + 97 AS col2, 69 AS col0
----
1389
69

skipif mysql # not compatible
query II rowsort label-3518
SELECT ( - 66 ) + + 59 / 67 - - SUM ( DISTINCT 15 ) * + + 97 AS col2, 69 AS col0
----
1389
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT DISTINCT - MAX( + - ( - 55 ) ) + + 20
----
-35

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT - MAX ( + - ( - 55 ) ) + + 20
----
-35

query I rowsort
SELECT DISTINCT ( + - 65 )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-3521
SELECT 62 + + - COALESCE ( + 56, - ( - + 39 ) DIV + + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-3521
SELECT 62 + + - COALESCE ( + 56, - ( - + 39 ) / + + 6 )
----
6

query I rowsort
SELECT 49 * + + NULLIF ( + 53, 48 * + 45 * + 85 + - ( + 74 ) )
----
2597

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3523
SELECT 93 * 38 AS col2, + CAST( NULL AS SIGNED )
----
3534
NULL

skipif mysql # not compatible
query II rowsort label-3523
SELECT 93 * 38 AS col2, + CAST ( NULL AS INTEGER )
----
3534
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3524
SELECT ALL - 45 DIV + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL - 45 / + 93 AS col2
----
0

query I rowsort
SELECT DISTINCT - 34 - - 70 + - 17
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - CASE 76 WHEN 54 - - - 40 THEN - + CASE WHEN 93 <= ( + + SUM( 27 ) ) THEN + 84 + - 10 END * + 21 * + - 7 + - + 7 + - 77 ELSE + + 0 * - 32 + + 42 END
----
-42

skipif mysql # not compatible
query I rowsort label-3526
SELECT - CASE 76 WHEN 54 - - - 40 THEN - + CASE WHEN 93 <= ( + + SUM ( 27 ) ) THEN + 84 + - 10 END * + 21 * + - 7 + - + 7 + - 77 ELSE + + 0 * - 32 + + 42 END
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-3527
SELECT ALL SUM( DISTINCT + 26 ) - + + 30 AS col2, + COALESCE ( - 54, - NULLIF ( - MAX( ALL + - 60 ), + 82 ) * + 6 + 96 * CASE COUNT( + + 64 ) WHEN + + COALESCE ( 51, + 55, + 62 ) THEN 27 ELSE + 96 + + 58 END ) col0
----
-4
-54

skipif mysql # not compatible
query II rowsort label-3527
SELECT ALL SUM ( DISTINCT + 26 ) - + + 30 AS col2, + COALESCE ( - 54, - NULLIF ( - MAX ( ALL + - 60 ), + 82 ) * + 6 + 96 * CASE COUNT ( + + 64 ) WHEN + + COALESCE ( 51, + 55, + 62 ) THEN 27 ELSE + 96 + + 58 END ) col0
----
-4
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3528
SELECT CASE + - 4 WHEN - + 0 / - 54 * + ( - + CAST( NULL AS DECIMAL ) ) + + + 83 THEN NULL WHEN 53 THEN NULL WHEN - 29 THEN NULL WHEN + COUNT( * ) - + + 66 + + + 97 THEN + 64 + - 47 ELSE - 47 * 57 END * - + ( + 46 ) AS col0
----
123234

skipif mysql # not compatible
query I rowsort label-3528
SELECT CASE + - 4 WHEN - + 0 / - 54 * + ( - + CAST ( NULL AS REAL ) ) + + + 83 THEN NULL WHEN 53 THEN NULL WHEN - 29 THEN NULL WHEN + COUNT ( * ) - + + 66 + + + 97 THEN + 64 + - 47 ELSE - 47 * 57 END * - + ( + 46 ) AS col0
----
123234

query II rowsort
SELECT - 46 col0, 60 * - 41 + + 72
----
-46
-2388

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3530
SELECT CAST( + 31 AS SIGNED ) + - 46 - + - CAST( NULL AS SIGNED ) - + AVG ( + 63 ) * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT CAST ( + 31 AS INTEGER ) + - 46 - + - CAST ( NULL AS INTEGER ) - + AVG ( + 63 ) * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 71 + - + 25
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL - COALESCE ( + + 79, - COUNT( * ) * + NULLIF ( - 47, - - 3 * - 79 + - + ( + 41 ) + COALESCE ( + 84, + - 2 ) * + 15 ) * - 93 )
----
-79

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - COALESCE ( + + 79, - COUNT ( * ) * + NULLIF ( - 47, - - 3 * - 79 + - + ( + 41 ) + COALESCE ( + 84, + - 2 ) * + 15 ) * - 93 )
----
-79

query I rowsort
SELECT ALL 12 + - 83
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT MAX( 35 ) col0
----
35

skipif mysql # not compatible
query I rowsort label-3534
SELECT MAX ( 35 ) col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL 88 + - COUNT( * ) * 62
----
26

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL 88 + - COUNT ( * ) * 62
----
26

query I rowsort
SELECT 80 * - 36 AS col1
----
-2880

query I rowsort
SELECT 15 + + 68
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3538
SELECT ALL 6 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL 6 / CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 79 AS col1, 75 AS col2
----
79
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT MAX( ALL - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-3540
SELECT MAX ( ALL - 92 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT 42 DIV 41 * + - 55 * 38 + + 7 AS col1
----
-2083

skipif mysql # not compatible
query I rowsort label-3541
SELECT 42 / 41 * + - 55 * 38 + + 7 AS col1
----
-2083

query II rowsort
SELECT + - 67 AS col1, 89 AS col2
----
-67
89

query II rowsort
SELECT DISTINCT - 51 * - ( + 67 ), - 22 AS col1
----
3417
-22

query I rowsort
SELECT ALL 63 + - - 53
----
116

query I rowsort
SELECT DISTINCT - - 52 + 89 AS col0
----
141

query I rowsort
SELECT DISTINCT 7 * 5 AS col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3547
SELECT ( - NULLIF ( - 53, CASE + 15 WHEN + 83 THEN NULL WHEN 35 + + 43 THEN - 29 WHEN - 38 THEN - - 68 ELSE NULL END ) ) DIV - + 50
----
-1

skipif mysql # not compatible
query I rowsort label-3547
SELECT ( - NULLIF ( - 53, CASE + 15 WHEN + 83 THEN NULL WHEN 35 + + 43 THEN - 29 WHEN - 38 THEN - - 68 ELSE NULL END ) ) / - + 50
----
-1

query I rowsort
SELECT ALL - 1 + - 31
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL + 32 + + COUNT( DISTINCT - 12 )
----
33

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL + 32 + + COUNT ( DISTINCT - 12 )
----
33

query I rowsort
SELECT DISTINCT - + COALESCE ( - + NULLIF ( + 19, - 26 * - 41 * 63 ), - + 23 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL - - MIN( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL - - MIN ( - 23 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3552
SELECT - + CASE - + 42 WHEN - 46 * + 30 / - - 81 / + 56 + - 12 THEN + 85 * - 44 + - CAST( NULL AS SIGNED ) + + - 2 * - 44 * + 91 * + 56 WHEN - 97 THEN NULL WHEN - NULLIF ( - NULLIF ( + 91, 15 * + 68 ), + CASE ( 10 ) WHEN - COUNT( * ) + 41 THEN NULL ELSE CAST( NULL AS SIGNED ) END / ( 77 * ( 72 ) ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT - + CASE - + 42 WHEN - 46 * + 30 / - - 81 / + 56 + - 12 THEN + 85 * - 44 + - CAST ( NULL AS INTEGER ) + + - 2 * - 44 * + 91 * + 56 WHEN - 97 THEN NULL WHEN - NULLIF ( - NULLIF ( + 91, 15 * + 68 ), + CASE ( 10 ) WHEN - COUNT ( * ) + 41 THEN NULL ELSE CAST ( NULL AS INTEGER ) END / ( 77 * ( 72 ) ) ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - ( + 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL - - 47 * + 69 + - 75 + - COUNT( * ) + 41
----
3208

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL - - 47 * + 69 + - 75 + - COUNT ( * ) + 41
----
3208

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT 64 DIV - 6 + - - 58
----
48

skipif mysql # not compatible
query I rowsort label-3555
SELECT 64 / - 6 + - - 58
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3556
SELECT - CASE - 66 WHEN + - 39 THEN - 54 WHEN + + 77 * + - 85 THEN CASE + MIN( - 1 ) WHEN + 18 THEN + + ( - 55 ) DIV - 55 WHEN - MIN( DISTINCT - + 48 ) * + 37 + CAST( NULL AS SIGNED ) - - 32 - ( SUM( DISTINCT - 51 ) ) DIV + 2 THEN 56 + 47 * COUNT( * ) END ELSE - 53 - - 37 END
----
16

skipif mysql # not compatible
query I rowsort label-3556
SELECT - CASE - 66 WHEN + - 39 THEN - 54 WHEN + + 77 * + - 85 THEN CASE + MIN ( - 1 ) WHEN + 18 THEN + + ( - 55 ) / - 55 WHEN - MIN ( DISTINCT - + 48 ) * + 37 + CAST ( NULL AS INTEGER ) - - 32 - ( SUM ( DISTINCT - 51 ) ) / + 2 THEN 56 + 47 * COUNT ( * ) END ELSE - 53 - - 37 END
----
16

query I rowsort
SELECT ALL - 55 * - 97 AS col0
----
5335

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT - MIN( 85 ) * 94 * 30 - - + 50 * + COUNT( * ) * - 48 AS col2
----
-242100

skipif mysql # not compatible
query I rowsort label-3558
SELECT - MIN ( 85 ) * 94 * 30 - - + 50 * + COUNT ( * ) * - 48 AS col2
----
-242100

query I rowsort
SELECT + 8 * 7 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT - COUNT( * ) + 30 * CASE WHEN + 47 > - 65 THEN NULL ELSE 54 + COUNT( * ) END + - 53 - + + 81 - - + 90 + 40 * 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT - COUNT ( * ) + 30 * CASE WHEN + 47 > - 65 THEN NULL ELSE 54 + COUNT ( * ) END + - 53 - + + 81 - - + 90 + 40 * 18 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 63 * + + 22 AS col2, + 98 AS col0
----
-1386
98

query I rowsort
SELECT ALL NULLIF ( + 13, + ( 47 ) + 7 )
----
13

query I rowsort
SELECT + 66 * + 56 AS col1
----
3696

query I rowsort
SELECT ALL NULLIF ( 40, - 38 )
----
40

query I rowsort
SELECT + 43 * 99 AS col1
----
4257

onlyif mysql # DIV for integer division: 
query I rowsort label-3566
SELECT DISTINCT + 18 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT + 18 / - 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3567
SELECT - COALESCE ( 57, - 63 * - 81 ) DIV + + MIN( + 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-3567
SELECT - COALESCE ( 57, - 63 * - 81 ) / + + MIN ( + 51 )
----
-1

query I rowsort
SELECT DISTINCT + 19 + + 85 * - 48 AS col2
----
-4061

query I rowsort
SELECT + 76 * + 92 * + + 85 AS col0
----
594320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT CAST( NULL AS SIGNED ) * 93 - - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT CAST ( NULL AS INTEGER ) * 93 - - 85 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 0 * - 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT + NULLIF ( - 3, + COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-3572
SELECT + NULLIF ( - 3, + COUNT ( * ) )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3573
SELECT ALL - 91 * - - ( COUNT( * ) ) + 37 AS col0, COUNT( * )
----
-54
1

skipif mysql # not compatible
query II rowsort label-3573
SELECT ALL - 91 * - - ( COUNT ( * ) ) + 37 AS col0, COUNT ( * )
----
-54
1

query I rowsort
SELECT + 41 * + + 75 AS col1
----
3075

onlyif mysql # aggregate syntax: 
query II rowsort label-3575
SELECT DISTINCT - 94 * COUNT( * ) col2, - 51 AS col1
----
-94
-51

skipif mysql # not compatible
query II rowsort label-3575
SELECT DISTINCT - 94 * COUNT ( * ) col2, - 51 AS col1
----
-94
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT ALL + ( 7 ) DIV 94 col2
----
0

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL + ( 7 ) / 94 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT DISTINCT + 53 * - - 14 * - COUNT( * ) + - CASE + 71 WHEN + COUNT( * ) THEN NULL WHEN - 7 + 49 - + + 31 + - - COUNT( * ) * - 36 * - 88 * + CASE + 9 WHEN + 10 THEN MAX( + ( - 49 ) ) * + 11 * + 9 END * + 23 * COUNT( * ) THEN - 2 + 26 * + ( 56 ) ELSE NULL END + COUNT( ALL 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT + 53 * - - 14 * - COUNT ( * ) + - CASE + 71 WHEN + COUNT ( * ) THEN NULL WHEN - 7 + 49 - + + 31 + - - COUNT ( * ) * - 36 * - 88 * + CASE + 9 WHEN + 10 THEN MAX ( + ( - 49 ) ) * + 11 * + 9 END * + 23 * COUNT ( * ) THEN - 2 + 26 * + ( 56 ) ELSE NULL END + COUNT ( ALL 29 )
----
NULL

query I rowsort
SELECT - CASE WHEN 35 IS NULL THEN 56 ELSE - 39 END + - 10
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT ALL 41 DIV 16
----
2

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL 41 / 16
----
2

query I rowsort
SELECT + 11 + 50
----
61

query I rowsort
SELECT + + 89 * - 37 AS col0
----
-3293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT + + CAST( - 20 AS SIGNED ) * 95
----
-1900

skipif mysql # not compatible
query I rowsort label-3582
SELECT + + CAST ( - 20 AS INTEGER ) * 95
----
-1900

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT COUNT( * ) * - COALESCE ( + 95, - 37, COUNT( * ) ) + - 72 * - NULLIF ( - 94, - COUNT( * ) )
----
-6863

skipif mysql # not compatible
query I rowsort label-3583
SELECT COUNT ( * ) * - COALESCE ( + 95, - 37, COUNT ( * ) ) + - 72 * - NULLIF ( - 94, - COUNT ( * ) )
----
-6863

query I rowsort
SELECT DISTINCT + ( 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3585
SELECT DISTINCT COUNT( + + 39 ), + 93 AS col1
----
1
93

skipif mysql # not compatible
query II rowsort label-3585
SELECT DISTINCT COUNT ( + + 39 ), + 93 AS col1
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT DISTINCT + COUNT( * ) * - + COALESCE ( - 77, - COUNT( * ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT + COUNT ( * ) * - + COALESCE ( - 77, - COUNT ( * ) ) AS col1
----
77

query I rowsort
SELECT - 96 + + 57 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-3588
SELECT ALL NULLIF ( - + COUNT( * ), - 57 ) AS col0, + 85 col1
----
-1
85

skipif mysql # not compatible
query II rowsort label-3588
SELECT ALL NULLIF ( - + COUNT ( * ), - 57 ) AS col0, + 85 col1
----
-1
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT - CAST( NULL AS SIGNED ) + + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT - CAST ( NULL AS INTEGER ) + + - 33
----
NULL

query I rowsort
SELECT ALL ( - 35 ) AS col2
----
-35

query I rowsort
SELECT ALL 37 + - - 74
----
111

query I rowsort
SELECT ALL + 14 * 13
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT ALL + 5 + - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL + 5 + - COUNT ( * ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT DISTINCT + 32 * - + COUNT( * ) * + 40 AS col0
----
-1280

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT + 32 * - + COUNT ( * ) * + 40 AS col0
----
-1280

query I rowsort
SELECT - 1 - + + 45 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3596
SELECT ALL - COUNT( * ) + - 91 DIV - + CAST( - MAX( ALL + 3 ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL - COUNT ( * ) + - 91 / - + CAST ( - MAX ( ALL + 3 ) AS INTEGER )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3597
SELECT - 65 + COUNT( * ) + + CAST( NULL AS SIGNED ) + 23 + + 96 * - 41 * 83 + - - 15 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT - 65 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 23 + + 96 * - 41 * 83 + - - 15 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3598
SELECT ALL CASE - AVG ( DISTINCT + + 94 ) WHEN + CASE - 6 WHEN - 55 + - 44 THEN NULL ELSE - CAST( NULL AS SIGNED ) END * + - ( 55 ) THEN NULL ELSE + + 21 DIV + 69 END
----
0

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL CASE - AVG ( DISTINCT + + 94 ) WHEN + CASE - 6 WHEN - 55 + - 44 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END * + - ( 55 ) THEN NULL ELSE + + 21 / + 69 END
----
0

query I rowsort
SELECT - 16 * - - 91 + + + 66 + + 85
----
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL 59 * - COUNT( * ) * - 67 AS col2
----
3953

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL 59 * - COUNT ( * ) * - 67 AS col2
----
3953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3601
SELECT DISTINCT + COALESCE ( + + 99, + 70 - + COALESCE ( + MAX( ALL 52 ), - AVG ( - - 94 ) + - - 9, ( 50 ) * - 95 ) * + 88 + - 81 + 3 * + + 48 * - + 60 ) * 69 DIV + 32
----
213

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT + COALESCE ( + + 99, + 70 - + COALESCE ( + MAX ( ALL 52 ), - AVG ( - - 94 ) + - - 9, ( 50 ) * - 95 ) * + 88 + - 81 + 3 * + + 48 * - + 60 ) * 69 / + 32
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3602
SELECT ALL + MAX( DISTINCT - 82 ) DIV - CAST( - + 60 AS SIGNED ) - + 78 col0
----
-79

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL + MAX ( DISTINCT - 82 ) / - CAST ( - + 60 AS INTEGER ) - + 78 col0
----
-79

query I rowsort
SELECT - + 79 + 88 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT + - COUNT( * ) + + ( + 69 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3604
SELECT + - COUNT ( * ) + + ( + 69 ) AS col0
----
68

query I rowsort
SELECT - + ( + ( + + 12 ) ) * + 7
----
-84

query I rowsort
SELECT DISTINCT - + 6 * + + 97 AS col1
----
-582

query I rowsort
SELECT ALL + 49 * - 79
----
-3871

query I rowsort
SELECT ALL - + 92 col0
----
-92

query I rowsort
SELECT ALL - - 75 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT ALL + + 63 * + 75 * + 1 + 84 - + + MIN( DISTINCT - 16 ) AS col2
----
4825

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL + + 63 * + 75 * + 1 + 84 - + + MIN ( DISTINCT - 16 ) AS col2
----
4825

query I rowsort
SELECT ( + 79 ) * + 67 AS col2
----
5293

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT NULLIF ( - 49, - 84 ) * + - COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3612
SELECT NULLIF ( - 49, - 84 ) * + - COUNT ( * ) AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3613
SELECT ALL - 22 DIV - - COUNT( * ) + - 15 col0
----
-37

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL - 22 / - - COUNT ( * ) + - 15 col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT 58 DIV + 76 * - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT 58 / + 76 * - 64 AS col1
----
0

query I rowsort
SELECT - 90 * + 35
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT 59 + - 49 - SUM( ( + 22 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT 59 + - 49 - SUM ( ( + 22 ) )
----
-12

query I rowsort
SELECT CASE + 37 WHEN + + 66 THEN - 62 + + - 18 END - - 62 * - 41 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT ALL + 45 DIV + 33 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + 45 / + 33 AS col0
----
1

query I rowsort
SELECT DISTINCT - 91 + 24 * 66
----
1493

query II rowsort
SELECT - 39 AS col0, + 10 + 28 AS col2
----
-39
38

query I rowsort
SELECT ALL 25 * + 88
----
2200

onlyif mysql # aggregate syntax: 
query II rowsort label-3622
SELECT - 96 AS col1, COUNT( * ) * 69 + + 61 * - 18 AS col0
----
-96
-1029

skipif mysql # not compatible
query II rowsort label-3622
SELECT - 96 AS col1, COUNT ( * ) * 69 + + 61 * - 18 AS col0
----
-96
-1029

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL + 73 + + + 43 * + COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + 73 + + + 43 * + COUNT ( * )
----
116

query I rowsort
SELECT ALL 89 * 79 * 11 col0
----
77341

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT COUNT( - 23 ) * - ( + 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-3625
SELECT COUNT ( - 23 ) * - ( + 61 )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3626
SELECT NULLIF ( 39, COUNT( * ) DIV + + 88 * 53 + + COALESCE ( - - CASE - 28 WHEN - - 5 * CASE + 98 WHEN - 86 THEN + + NULLIF ( - COUNT( * ), 2 * + + COUNT( * ) * + - 12 ) END * - + 96 * - + 81 - + 66 + + 58 + + CASE 84 + 90 WHEN 76 * 40 THEN + COALESCE ( + 57, 67 * 29 + + NULLIF ( 4, - 35 + COUNT( * ) * - COUNT( * ) ) ) * COUNT( * ) END DIV - 67 THEN SUM( ALL ( - 79 ) ) + - 55 * 38 END, NULLIF ( - COUNT( DISTINCT ( 41 ) ), NULLIF ( 24, 62 ) + - COUNT( * ) ) DIV + 22, + 63 ) ) + + COALESCE ( + 86, 16 + + ( 78 ) ) DIV + 28
----
42

skipif mysql # not compatible
query I rowsort label-3626
SELECT NULLIF ( 39, COUNT ( * ) / + + 88 * 53 + + COALESCE ( - - CASE - 28 WHEN - - 5 * CASE + 98 WHEN - 86 THEN + + NULLIF ( - COUNT ( * ), 2 * + + COUNT ( * ) * + - 12 ) END * - + 96 * - + 81 - + 66 + + 58 + + CASE 84 + 90 WHEN 76 * 40 THEN + COALESCE ( + 57, 67 * 29 + + NULLIF ( 4, - 35 + COUNT ( * ) * - COUNT ( * ) ) ) * COUNT ( * ) END / - 67 THEN SUM ( ALL ( - 79 ) ) + - 55 * 38 END, NULLIF ( - COUNT ( DISTINCT ( 41 ) ), NULLIF ( 24, 62 ) + - COUNT ( * ) ) / + 22, + 63 ) ) + + COALESCE ( + 86, 16 + + ( 78 ) ) / + 28
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL 83 + NULLIF ( + - COUNT( * ), - 82 / + 22 * - - COUNT( * ) + + 83 - 95 * - 13 * - 25 ) + + - ( + 61 )
----
21

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL 83 + NULLIF ( + - COUNT ( * ), - 82 / + 22 * - - COUNT ( * ) + + 83 - 95 * - 13 * - 25 ) + + - ( + 61 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3628
SELECT - 62 AS col0, - COUNT( ALL - 91 ) AS col2
----
-62
-1

skipif mysql # not compatible
query II rowsort label-3628
SELECT - 62 AS col0, - COUNT ( ALL - 91 ) AS col2
----
-62
-1

query II rowsort
SELECT ALL 64 AS col0, 43 * - 43
----
64
-1849

query I rowsort
SELECT COALESCE ( + 40, 40, + 19, 94 ) * + - 80 AS col0
----
-3200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3631
SELECT ALL 17, 86 * - + 93 * + CAST( NULL AS DECIMAL ) + + + COUNT( * ) / 89 + + 59 + + COUNT( * ) * + + 73 * - 57 + - 23 / CAST( NULL AS SIGNED ) AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-3631
SELECT ALL 17, 86 * - + 93 * + CAST ( NULL AS REAL ) + + + COUNT ( * ) / 89 + + 59 + + COUNT ( * ) * + + 73 * - 57 + - 23 / CAST ( NULL AS INTEGER ) AS col2
----
17
NULL

query II rowsort
SELECT DISTINCT 69, 90 AS col0
----
69
90

query I rowsort
SELECT ALL + 83 * 48
----
3984

query II rowsort
SELECT 99 AS col1, - 33 * - 77 AS col1
----
99
2541

query I rowsort
SELECT DISTINCT 82 - + + 81
----
1

query I rowsort
SELECT DISTINCT + 57 - + + 23 AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3637
SELECT + + COUNT( * ) AS col0, - 34 + + 15 DIV ( 76 ) AS col0
----
1
-34

skipif mysql # not compatible
query II rowsort label-3637
SELECT + + COUNT ( * ) AS col0, - 34 + + 15 / ( 76 ) AS col0
----
1
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3638
SELECT + MAX( + 61 ) * + 27 + - COUNT( * ) * - CAST( NULL AS SIGNED ) * - 0 - + CAST( ( - 5 ) AS DECIMAL ) * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT + MAX ( + 61 ) * + 27 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 0 - + CAST ( ( - 5 ) AS REAL ) * + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + ( - NULLIF ( - 69, + ( + 17 ) ) )
----
-69

query I rowsort
SELECT - 29 * ( 94 )
----
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL + COUNT( * ) * 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL + COUNT ( * ) * 10 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT + + 36 * + 20 - - COUNT( * )
----
721

skipif mysql # not compatible
query I rowsort label-3642
SELECT + + 36 * + 20 - - COUNT ( * )
----
721

onlyif mysql # DIV for integer division: 
query II rowsort label-3643
SELECT ALL - 52, + 94 DIV - + 51 AS col0
----
-52
-1

skipif mysql # not compatible
query II rowsort label-3643
SELECT ALL - 52, + 94 / - + 51 AS col0
----
-52
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT - COUNT( * ) * 27 - + 64 - + MAX( DISTINCT - 94 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3644
SELECT - COUNT ( * ) * 27 - + 64 - + MAX ( DISTINCT - 94 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT + + MAX( - 4 ) * 2 + + - 70
----
-78

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT + + MAX ( - 4 ) * 2 + + - 70
----
-78

query I rowsort
SELECT ALL + 76 + + 90
----
166

query I rowsort
SELECT NULLIF ( + COALESCE ( 4, - + 84 + - + 42 + - + 41, 30 ), - - 64 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL - + 48 + - - 17 + 77 + 22 * 48 + COUNT( * ) * + - 34 - + + 93 + - COUNT( * ) - + ( 76 ) + + 82
----
980

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - + 48 + - - 17 + 77 + 22 * 48 + COUNT ( * ) * + - 34 - + + 93 + - COUNT ( * ) - + ( 76 ) + + 82
----
980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3649
SELECT DISTINCT - 4 + - - 68 AS col2, - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + 94 col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-3649
SELECT DISTINCT - 4 + - - 68 AS col2, - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 94 col2
----
64
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT DISTINCT 84 + + ( - CAST( - + 36 AS SIGNED ) ) + - 60
----
60

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT 84 + + ( - CAST ( - + 36 AS INTEGER ) ) + - 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT 93 + + COUNT( - 49 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3651
SELECT 93 + + COUNT ( - 49 ) AS col1
----
94

query I rowsort
SELECT ALL - 87 + + 95 * - 36 AS col2
----
-3507

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT COUNT( * ) + - 95
----
-94

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT COUNT ( * ) + - 95
----
-94

query I rowsort
SELECT ALL ( - 99 ) + + - 23
----
-122

query I rowsort
SELECT ( + 90 ) * 81 AS col1
----
7290

onlyif mysql # DIV for integer division: 
query I rowsort label-3656
SELECT ( 48 ) DIV + 32 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3656
SELECT ( 48 ) / + 32 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT 87 * - 64 * + 25 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT 87 * - 64 * + 25 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3658
SELECT DISTINCT 24 DIV + - 50 AS col1, + 11 * + 96
----
0
1056

skipif mysql # not compatible
query II rowsort label-3658
SELECT DISTINCT 24 / + - 50 AS col1, + 11 * + 96
----
0
1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3659
SELECT 5 + - + 65 + - 82 * 40 DIV + 42 AS col0, 3 * - 27 + COUNT( * ) * 42 * ( - - 98 )
----
-138
4035

skipif mysql # not compatible
query II rowsort label-3659
SELECT 5 + - + 65 + - 82 * 40 / + 42 AS col0, 3 * - 27 + COUNT ( * ) * 42 * ( - - 98 )
----
-138
4035

query I rowsort
SELECT DISTINCT 77 * + - 66 * 17
----
-86394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT ALL NULLIF ( + - 53, - CAST( 22 AS SIGNED ) ) * + ( - + 16 ) AS col0
----
848

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL NULLIF ( + - 53, - CAST ( 22 AS INTEGER ) ) * + ( - + 16 ) AS col0
----
848

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ( - 50 ) - + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-3662
SELECT ( - 50 ) - + COUNT ( * )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3663
SELECT 43 DIV + + 1, COUNT( * ) * - - 53 - + + COALESCE ( + 37, - - 28 DIV 90 - COUNT( * ) * + CAST( NULL AS SIGNED ), - 0 ) * 63 + - - 39 AS col1
----
43
-2239

skipif mysql # not compatible
query II rowsort label-3663
SELECT 43 / + + 1, COUNT ( * ) * - - 53 - + + COALESCE ( + 37, - - 28 / 90 - COUNT ( * ) * + CAST ( NULL AS INTEGER ), - 0 ) * 63 + - - 39 AS col1
----
43
-2239

onlyif mysql # aggregate syntax: 
query II rowsort label-3664
SELECT 14 + + SUM( DISTINCT + + 88 ) AS col1, - 30
----
102
-30

skipif mysql # not compatible
query II rowsort label-3664
SELECT 14 + + SUM ( DISTINCT + + 88 ) AS col1, - 30
----
102
-30

query I rowsort
SELECT 46 + + 58 * + 71 AS col1
----
4164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT - 80 * + SUM( ALL + - 15 ) + - - 60 + - MAX( + + COALESCE ( + - CAST( + - 21 AS SIGNED ), - 99 + - - 20 + + 49 * - 93 * 13 ) ) AS col0
----
1239

skipif mysql # not compatible
query I rowsort label-3666
SELECT - 80 * + SUM ( ALL + - 15 ) + - - 60 + - MAX ( + + COALESCE ( + - CAST ( + - 21 AS INTEGER ), - 99 + - - 20 + + 49 * - 93 * 13 ) ) AS col0
----
1239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3667
SELECT ALL + + MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL + + MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3668
SELECT + 92 DIV + - NULLIF ( + - COUNT( * ), COUNT( * ) * + + 77 * - COUNT( ALL - 70 ) ) + + ( - 75 ) * - 96 + + + 80 + - + 24 AS col2
----
7348

skipif mysql # not compatible
query I rowsort label-3668
SELECT + 92 / + - NULLIF ( + - COUNT ( * ), COUNT ( * ) * + + 77 * - COUNT ( ALL - 70 ) ) + + ( - 75 ) * - 96 + + + 80 + - + 24 AS col2
----
7348

query I rowsort
SELECT - - 77 * 24 * + - 39 AS col2
----
-72072

query I rowsort
SELECT + - ( + - 44 )
----
44

query I rowsort
SELECT + 4 * - 45 + + - 63 * - 10 + - 75 col1
----
375

query II rowsort
SELECT ALL - 10 * 30 + + - 47 AS col1, + 14 - - 82 col0
----
-347
96

query I rowsort
SELECT + + NULLIF ( - ( + 82 ), + 84 ) AS col2
----
-82

query I rowsort
SELECT + - ( + + 80 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3675
SELECT ALL + 95 * - ( + 35 ) + ( - 56 ) AS col1, + ( + COUNT( * ) )
----
-3381
1

skipif mysql # not compatible
query II rowsort label-3675
SELECT ALL + 95 * - ( + 35 ) + ( - 56 ) AS col1, + ( + COUNT ( * ) )
----
-3381
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3676
SELECT - + 51 * 25, MAX( + 10 ) DIV + - 97 + 4 AS col2
----
-1275
4

skipif mysql # not compatible
query II rowsort label-3676
SELECT - + 51 * 25, MAX ( + 10 ) / + - 97 + 4 AS col2
----
-1275
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3677
SELECT ALL + 81 * + + CASE + COALESCE ( 17, - + 10 + + 15 ) WHEN + - ( - + 27 ) THEN + 92 ELSE + + 85 DIV + - 93 * 97 * - + 6 END + ( - 36 ) * - 61 - - 63 - + COUNT( * ) + 42 DIV - 61 * + - 99 + - COUNT( * ) + - 23
----
2234

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL + 81 * + + CASE + COALESCE ( 17, - + 10 + + 15 ) WHEN + - ( - + 27 ) THEN + 92 ELSE + + 85 / + - 93 * 97 * - + 6 END + ( - 36 ) * - 61 - - 63 - + COUNT ( * ) + 42 / - 61 * + - 99 + - COUNT ( * ) + - 23
----
2234

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT - - MAX( 46 ) * 6 + + 12
----
288

skipif mysql # not compatible
query I rowsort label-3678
SELECT - - MAX ( 46 ) * 6 + + 12
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL - 57 * + 18 + + COUNT( * ) * + 48 * + MAX( DISTINCT 43 ) col0
----
1038

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL - 57 * + 18 + + COUNT ( * ) * + 48 * + MAX ( DISTINCT 43 ) col0
----
1038

query I rowsort
SELECT + 78 - NULLIF ( 29, 35 )
----
49

query I rowsort
SELECT - 84 * + 49 * + 72
----
-296352

onlyif mysql # aggregate syntax: 
query II rowsort label-3682
SELECT COUNT( * ), - 90 AS col2
----
1
-90

skipif mysql # not compatible
query II rowsort label-3682
SELECT COUNT ( * ), - 90 AS col2
----
1
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT - 60 * - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3683
SELECT - 60 * - COUNT ( * )
----
60

query I rowsort
SELECT DISTINCT + COALESCE ( - 23, - 51 * + + 35 ) * + 18
----
-414

query I rowsort
SELECT DISTINCT - 1 * + 55 * - 66 * - 28
----
-101640

query I rowsort
SELECT - 24 - - 10 * - NULLIF ( + 57, - 60 ) AS col0
----
-594

query I rowsort
SELECT DISTINCT - 11 * + 66
----
-726

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL + 56 - - - COUNT( ALL - 68 ) * - 82 * - + 82
----
-6668

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + 56 - - - COUNT ( ALL - 68 ) * - 82 * - + 82
----
-6668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3689
SELECT DISTINCT 63 AS col0, + CAST( NULL AS SIGNED )
----
63
NULL

skipif mysql # not compatible
query II rowsort label-3689
SELECT DISTINCT 63 AS col0, + CAST ( NULL AS INTEGER )
----
63
NULL

query I rowsort
SELECT ALL ( - 15 ) AS col0
----
-15

query I rowsort
SELECT - 65 + - 66
----
-131

onlyif mysql # aggregate syntax: 
query II rowsort label-3692
SELECT 24 AS col2, COUNT( * )
----
24
1

skipif mysql # not compatible
query II rowsort label-3692
SELECT 24 AS col2, COUNT ( * )
----
24
1

query I rowsort
SELECT + 47 - 77
----
-30

query I rowsort
SELECT - 58 * 37 * - 13 AS col0
----
27898

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT + 64 + + 96 * - 15 + - - 34 DIV + + ( - 44 )
----
-1376

skipif mysql # not compatible
query I rowsort label-3695
SELECT + 64 + + 96 * - 15 + - - 34 / + + ( - 44 )
----
-1376

query II rowsort
SELECT ALL 80 AS col1, + 15 col2
----
80
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3697
SELECT - MAX( NULLIF ( + 31, + CAST( NULL AS SIGNED ) / - ( - - 72 ) ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3697
SELECT - MAX ( NULLIF ( + 31, + CAST ( NULL AS INTEGER ) / - ( - - 72 ) ) ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3698
SELECT - 11 AS col1, COUNT( * )
----
-11
1

skipif mysql # not compatible
query II rowsort label-3698
SELECT - 11 AS col1, COUNT ( * )
----
-11
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT - - SUM( + - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-3699
SELECT - - SUM ( + - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT 59 col2, COUNT( * ) * 58 AS col1
----
59
58

skipif mysql # not compatible
query II rowsort label-3700
SELECT 59 col2, COUNT ( * ) * 58 AS col1
----
59
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL + 62 * 9 + + COUNT( ALL - 49 )
----
559

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL + 62 * 9 + + COUNT ( ALL - 49 )
----
559

query I rowsort
SELECT + + 56 * 70 AS col0
----
3920

query I rowsort
SELECT DISTINCT - 28 + + 90 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3704
SELECT ALL + ( + CAST( 23 AS SIGNED ) ) AS col2, + 90 AS col1
----
23
90

skipif mysql # not compatible
query II rowsort label-3704
SELECT ALL + ( + CAST ( 23 AS INTEGER ) ) AS col2, + 90 AS col1
----
23
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT + CAST( NULL AS SIGNED ) / + - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT + CAST ( NULL AS INTEGER ) / + - 18 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT - 64 * + COUNT( * ) + + CAST( NULL AS SIGNED ) * + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT - 64 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3707
SELECT DISTINCT + 70 DIV + - COUNT( * ) + + 54
----
-16

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT + 70 / + - COUNT ( * ) + + 54
----
-16

query I rowsort
SELECT DISTINCT + CASE - 96 WHEN + - 45 THEN 39 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3709
SELECT DISTINCT - + MAX( + 75 ) DIV - - 24 + - 83 * 37 AS col0
----
-3074

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT - + MAX ( + 75 ) / - - 24 + - 83 * 37 AS col0
----
-3074

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3710
SELECT ALL - + NULLIF ( 91, + - 0 ) DIV 43 + - 31 * CASE + 9 WHEN + 37 + - 14 DIV - COUNT( * ) THEN - - COUNT( ALL + 52 ) END + 22, 35 DIV - 88 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3710
SELECT ALL - + NULLIF ( 91, + - 0 ) / 43 + - 31 * CASE + 9 WHEN + 37 + - 14 / - COUNT ( * ) THEN - - COUNT ( ALL + 52 ) END + 22, 35 / - 88 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT + 36 * + + COUNT( * ) * + - 46 AS col0
----
-1656

skipif mysql # not compatible
query I rowsort label-3711
SELECT + 36 * + + COUNT ( * ) * + - 46 AS col0
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL - 83 * - COUNT( DISTINCT - 65 ) + 56 - - 5 * - 0 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL - 83 * - COUNT ( DISTINCT - 65 ) + 56 - - 5 * - 0 AS col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3713
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) / + CASE - 20 WHEN - 12 THEN - ( + CAST( MAX( 91 ) AS SIGNED ) ) WHEN - + MAX( 73 ) THEN NULL ELSE COUNT( * ) END - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + CASE - 20 WHEN - 12 THEN - ( + CAST ( MAX ( 91 ) AS INTEGER ) ) WHEN - + MAX ( 73 ) THEN NULL ELSE COUNT ( * ) END - - 89
----
NULL

query I rowsort
SELECT + ( - - COALESCE ( 29, + 92, - COALESCE ( 39, + 5 ) * + 58 ) ) AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT 23 DIV - 92 * + + 42 - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3715
SELECT 23 / - 92 * + + 42 - 98 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + COUNT( * ) * + 56 + - 35
----
21

skipif mysql # not compatible
query I rowsort label-3716
SELECT + COUNT ( * ) * + 56 + - 35
----
21

query I rowsort
SELECT ( + + 57 ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT + CAST( - AVG ( DISTINCT + 55 ) AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-3718
SELECT + CAST ( - AVG ( DISTINCT + 55 ) AS INTEGER )
----
-55

query II rowsort
SELECT ( - 81 ) AS col2, + 88
----
-81
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3720
SELECT ALL + CASE + 16 WHEN + 17 THEN 94 WHEN - SUM( + + 57 ) THEN + 5 + - NULLIF ( - COALESCE ( - COUNT( * ), 20 * + 29 ), + 63 ) * 30 WHEN + CAST( 12 AS DECIMAL ) * + 80 * 8 + 67 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL + CASE + 16 WHEN + 17 THEN 94 WHEN - SUM ( + + 57 ) THEN + 5 + - NULLIF ( - COALESCE ( - COUNT ( * ), 20 * + 29 ), + 63 ) * 30 WHEN + CAST ( 12 AS REAL ) * + 80 * 8 + 67 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT - 1 + 37 * NULLIF ( + - COUNT( DISTINCT + 77 ), + - 24 / - COUNT( * ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3721
SELECT - 1 + 37 * NULLIF ( + - COUNT ( DISTINCT + 77 ), + - 24 / - COUNT ( * ) ) AS col1
----
-38

query I rowsort
SELECT NULLIF ( 65, 76 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT - 77 + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-3723
SELECT - 77 + COUNT ( * )
----
-76

query I rowsort
SELECT ALL + 71 * + 34 - + - 38
----
2452

onlyif mysql # DIV for integer division: 
query II rowsort label-3725
SELECT ALL + 52 DIV + 27, + 57 + + 36 col0
----
1
93

skipif mysql # not compatible
query II rowsort label-3725
SELECT ALL + 52 / + 27, + 57 + + 36 col0
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL COALESCE ( 47, + + 95, + CASE 68 WHEN COUNT( * ) + - 3 - + + 63 * - 15 THEN - 94 * + - 22 - 61 + + 63 + MIN( DISTINCT + 85 ) - + 24 * NULLIF ( - + 40, + 90 + + COUNT( * ) ) * - + 40 - 70 * - - 13 - 24 END ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL COALESCE ( 47, + + 95, + CASE 68 WHEN COUNT ( * ) + - 3 - + + 63 * - 15 THEN - 94 * + - 22 - 61 + + 63 + MIN ( DISTINCT + 85 ) - + 24 * NULLIF ( - + 40, + 90 + + COUNT ( * ) ) * - + 40 - 70 * - - 13 - 24 END ) AS col2
----
47

query I rowsort
SELECT - 71 * 47 col2
----
-3337

query I rowsort
SELECT + 41 * - 95
----
-3895

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT + COUNT( * ) * + COUNT( * ) + 61 * - + 35
----
-2134

skipif mysql # not compatible
query I rowsort label-3729
SELECT + COUNT ( * ) * + COUNT ( * ) + 61 * - + 35
----
-2134

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT - MIN( DISTINCT + 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3730
SELECT - MIN ( DISTINCT + 35 ) AS col0
----
-35

query I rowsort
SELECT - 23 + + 40 * - 53
----
-2143

query I rowsort
SELECT 69 * 82
----
5658

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT ALL - 53 * 77 * - - COUNT( * ) * + - COUNT( ALL 63 ) * + + 25
----
102025

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL - 53 * 77 * - - COUNT ( * ) * + - COUNT ( ALL 63 ) * + + 25
----
102025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3734
SELECT - COUNT( - 80 ) + - 85 DIV - + CAST( - 81 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-3734
SELECT - COUNT ( - 80 ) + - 85 / - + CAST ( - 81 AS INTEGER )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT ALL + - 17 + - 74 DIV + 40
----
-18

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL + - 17 + - 74 / + 40
----
-18

query I rowsort
SELECT + 48 * - - CASE - 5 WHEN + 17 THEN 21 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - + ( - + 8 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3738
SELECT 78 + NULLIF ( - + 38, 11 ) + 0 + + - COUNT( + - 78 ) * + 79 * - COALESCE ( + NULLIF ( CAST( NULL AS SIGNED ), 21 + - 65 + CASE + ( - - 22 ) WHEN - 66 THEN NULL WHEN 92 + - 45 THEN + AVG ( ALL 79 ) WHEN - ( - + 90 ) + 56 THEN 9 * ( 58 * - 79 ) ELSE + 32 END * - CASE 33 WHEN + COUNT( * ) THEN NULL ELSE COUNT( * ) END ), 77 - 26 ) * 69 AS col1
----
278041

skipif mysql # not compatible
query I rowsort label-3738
SELECT 78 + NULLIF ( - + 38, 11 ) + 0 + + - COUNT ( + - 78 ) * + 79 * - COALESCE ( + NULLIF ( CAST ( NULL AS INTEGER ), 21 + - 65 + CASE + ( - - 22 ) WHEN - 66 THEN NULL WHEN 92 + - 45 THEN + AVG ( ALL 79 ) WHEN - ( - + 90 ) + 56 THEN 9 * ( 58 * - 79 ) ELSE + 32 END * - CASE 33 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END ), 77 - 26 ) * 69 AS col1
----
278041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3739
SELECT ALL COUNT( * ) + + + 5 + + CAST( NULL AS SIGNED ) / - + 21 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL COUNT ( * ) + + + 5 + + CAST ( NULL AS INTEGER ) / - + 21 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3740
SELECT - 84 + - 68 AS col2, 36 + 88 DIV - - COUNT( * )
----
-152
124

skipif mysql # not compatible
query II rowsort label-3740
SELECT - 84 + - 68 AS col2, 36 + 88 / - - COUNT ( * )
----
-152
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL + + COUNT( * ) + - 6 - - - 83 + + + 53 * 27
----
1343

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL + + COUNT ( * ) + - 6 - - - 83 + + + 53 * 27
----
1343

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT + 33 DIV 82 + + 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3742
SELECT + 33 / 82 + + 44 AS col2
----
44

query I rowsort
SELECT ALL 37 + + 20 AS col2
----
57

query II rowsort
SELECT ALL + 23 - 3 AS col0, + 53
----
20
53

query I rowsort
SELECT ALL - 54 * + - NULLIF ( + 49, 73 ) AS col2
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - COUNT( * ) * + 53 + + 29 * 71
----
2006

skipif mysql # not compatible
query I rowsort label-3746
SELECT - COUNT ( * ) * + 53 + + 29 * 71
----
2006

query I rowsort
SELECT 99 * 20 * - ( - 26 )
----
51480

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT COUNT( * ) * - - CASE + 32 WHEN - ( - 55 ) * - 75 + COUNT( ALL 26 ) - + ( - - 94 ) + 30 THEN - - 23 * + 74 + + MAX( ALL - 62 ) + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT COUNT ( * ) * - - CASE + 32 WHEN - ( - 55 ) * - 75 + COUNT ( ALL 26 ) - + ( - - 94 ) + 30 THEN - - 23 * + 74 + + MAX ( ALL - 62 ) + 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT DISTINCT - MIN( 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT - MIN ( 83 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL COUNT( * ) * - ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL COUNT ( * ) * - ( + COUNT ( * ) ) AS col0
----
-1

query II rowsort
SELECT DISTINCT - 60, + 45 AS col0
----
-60
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT ALL - 99 AS col0, + 6 + + 0 + COUNT( * ) AS col1
----
-99
7

skipif mysql # not compatible
query II rowsort label-3752
SELECT ALL - 99 AS col0, + 6 + + 0 + COUNT ( * ) AS col1
----
-99
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ALL SUM( 1 ) * + 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL SUM ( 1 ) * + 66 AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3754
SELECT 92 AS col2, - CAST( 35 AS SIGNED ) + - 79
----
92
-114

skipif mysql # not compatible
query II rowsort label-3754
SELECT 92 AS col2, - CAST ( 35 AS INTEGER ) + - 79
----
92
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT COUNT( * ) * - - CASE + + COUNT( * ) WHEN + - COUNT( * ) * + + 46 THEN NULL ELSE + 59 + CASE - 68 WHEN 40 * - 97 + - 11 THEN - + 35 - - 77 ELSE + - 85 END END AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3755
SELECT COUNT ( * ) * - - CASE + + COUNT ( * ) WHEN + - COUNT ( * ) * + + 46 THEN NULL ELSE + 59 + CASE - 68 WHEN 40 * - 97 + - 11 THEN - + 35 - - 77 ELSE + - 85 END END AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT ( - + COUNT( * ) ) * + + COUNT( * ) * - 87
----
87

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT ( - + COUNT ( * ) ) * + + COUNT ( * ) * - 87
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3757
SELECT 63 * + COUNT( * ) DIV + - 78 AS col0, - COUNT( * ) * + 78 AS col1
----
0
-78

skipif mysql # not compatible
query II rowsort label-3757
SELECT 63 * + COUNT ( * ) / + - 78 AS col0, - COUNT ( * ) * + 78 AS col1
----
0
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3758
SELECT 69 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-3758
SELECT 69 / - 39
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3759
SELECT ALL + 94 DIV 85 * - 64, - 32 AS col1
----
-64
-32

skipif mysql # not compatible
query II rowsort label-3759
SELECT ALL + 94 / 85 * - 64, - 32 AS col1
----
-64
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3760
SELECT + MAX( DISTINCT 47 ) DIV - 87 + + ( + 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3760
SELECT + MAX ( DISTINCT 47 ) / - 87 + + ( + 72 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL + 34 + - 11 + + ( + 15 ) + + + MAX( - 40 ) + - + 15 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + 34 + - 11 + + ( + 15 ) + + + MAX ( - 40 ) + - + 15 AS col2
----
-17

query I rowsort
SELECT - + ( 30 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT SUM( ALL + - 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-3763
SELECT SUM ( ALL + - 29 ) AS col1
----
-29

query I rowsort
SELECT 14 + - CASE + 68 WHEN + + 55 * - ( 11 ) THEN NULL WHEN - COALESCE ( + - 5, - 4, 50 ) THEN + 7 * - 30 - - 94 - - 83 END - + + ( - - 36 ) - + 97 + - 50 * - 85
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3765
SELECT + 6 - - COUNT( + 47 ), + 72 AS col0
----
7
72

skipif mysql # not compatible
query II rowsort label-3765
SELECT + 6 - - COUNT ( + 47 ), + 72 AS col0
----
7
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3766
SELECT - 55 * + 20 + + CASE CAST( NULL AS SIGNED ) WHEN + 73 THEN - - 41 ELSE - - 58 END + + + 95 * + 92 + - 50 AS col1
----
7648

skipif mysql # not compatible
query I rowsort label-3766
SELECT - 55 * + 20 + + CASE CAST ( NULL AS INTEGER ) WHEN + 73 THEN - - 41 ELSE - - 58 END + + + 95 * + 92 + - 50 AS col1
----
7648

query I rowsort
SELECT ALL - 7 + - - 92 - + + 93 col2
----
-8

query I rowsort
SELECT ALL 42 * + 81
----
3402

query I rowsort
SELECT ALL + - 77 - - 41 AS col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT DISTINCT + - 60 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT + - 60 * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL - + NULLIF ( + + COUNT( * ), + 88 + - 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL - + NULLIF ( + + COUNT ( * ), + 88 + - 30 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT CAST( NULL AS SIGNED ) * + COALESCE ( + 31, 87 / 39 ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT CAST ( NULL AS INTEGER ) * + COALESCE ( + 31, 87 / 39 ) * 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL 55 * - COUNT( * ) - + 17
----
-72

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL 55 * - COUNT ( * ) - + 17
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT ALL CAST( NULL AS SIGNED ) * 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL CAST ( NULL AS INTEGER ) * 62 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT COUNT( * ) DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3775
SELECT COUNT ( * ) / 74 AS col2
----
0

query I rowsort
SELECT DISTINCT + 52 * + - 41 * - + 68
----
144976

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT COUNT( - 4 ) * - + NULLIF ( - 57, + - 69 ) * - 46 - - 86
----
-2536

skipif mysql # not compatible
query I rowsort label-3777
SELECT COUNT ( - 4 ) * - + NULLIF ( - 57, + - 69 ) * - 46 - - 86
----
-2536

query II rowsort
SELECT 18 + + - 71 + - 32 + - 98 AS col0, 84 col0
----
-183
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT MIN( ALL + - 10 ) - 90 - + NULLIF ( - 39, - 12 * SUM( + 84 ) + + + 20 + 13 )
----
-61

skipif mysql # not compatible
query I rowsort label-3779
SELECT MIN ( ALL + - 10 ) - 90 - + NULLIF ( - 39, - 12 * SUM ( + 84 ) + + + 20 + 13 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT + COUNT( + + 81 ) * + 23 + SUM( + 87 ) - + 72, + 0 col1
----
38
0

skipif mysql # not compatible
query II rowsort label-3780
SELECT + COUNT ( + + 81 ) * + 23 + SUM ( + 87 ) - + 72, + 0 col1
----
38
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3781
SELECT ALL + ( - 3 ) AS col0, COUNT( * ) * - CAST( - 25 AS SIGNED )
----
-3
25

skipif mysql # not compatible
query II rowsort label-3781
SELECT ALL + ( - 3 ) AS col0, COUNT ( * ) * - CAST ( - 25 AS INTEGER )
----
-3
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3782
SELECT DISTINCT - ( + + MIN( - 35 ) ) + - - 15 + CASE - 13 WHEN 86 * - COUNT( DISTINCT 82 ) / CASE - - COUNT( ALL - + 22 ) WHEN - 1 * - 67 + - 17 * + 18 THEN NULL ELSE 48 + + ( 91 ) END + + COUNT( * ) / - 76 THEN NULL WHEN - + 41 THEN 81 * 30 - + - CASE 16 WHEN CASE 50 WHEN + 57 / + 73 + + 23 THEN 68 WHEN 82 + 32 THEN NULL END THEN NULL ELSE ( - 4 ) END * 34 + - 73 / + 94 WHEN 84 THEN CAST( NULL AS DECIMAL ) * 48 - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT - ( + + MIN ( - 35 ) ) + - - 15 + CASE - 13 WHEN 86 * - COUNT ( DISTINCT 82 ) / CASE - - COUNT ( ALL - + 22 ) WHEN - 1 * - 67 + - 17 * + 18 THEN NULL ELSE 48 + + ( 91 ) END + + COUNT ( * ) / - 76 THEN NULL WHEN - + 41 THEN 81 * 30 - + - CASE 16 WHEN CASE 50 WHEN + 57 / + 73 + + 23 THEN 68 WHEN 82 + 32 THEN NULL END THEN NULL ELSE ( - 4 ) END * 34 + - 73 / + 94 WHEN 84 THEN CAST ( NULL AS REAL ) * 48 - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3783
SELECT ALL CAST( - 91 AS SIGNED ) + + 16 col2
----
-75

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL CAST ( - 91 AS INTEGER ) + + 16 col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3784
SELECT 78 col1, COALESCE ( 80, 64, - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) * 16 ) + 83 AS col0
----
78
163

skipif mysql # not compatible
query II rowsort label-3784
SELECT 78 col1, COALESCE ( 80, 64, - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * 16 ) + 83 AS col0
----
78
163

query II rowsort
SELECT - + 51 AS col0, 82 AS col1
----
-51
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT 8 * + COUNT( * ) + + + 93
----
101

skipif mysql # not compatible
query I rowsort label-3786
SELECT 8 * + COUNT ( * ) + + + 93
----
101

query I rowsort
SELECT ALL + NULLIF ( + - 89, 28 ) + + + 13
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-3788
SELECT - COUNT( * ), 98 AS col2
----
-1
98

skipif mysql # not compatible
query II rowsort label-3788
SELECT - COUNT ( * ), 98 AS col2
----
-1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT + + COUNT( * ) + - + 64 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3789
SELECT + + COUNT ( * ) + - + 64 AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3790
SELECT + ( + COUNT( * ) ) * + 58 * + 14 - 29 + - + 53 DIV COUNT( ALL + - 0 )
----
730

skipif mysql # not compatible
query I rowsort label-3790
SELECT + ( + COUNT ( * ) ) * + 58 * + 14 - 29 + - + 53 / COUNT ( ALL + - 0 )
----
730

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL + 78 * - 17 * COUNT( * ) AS col2
----
-1326

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + 78 * - 17 * COUNT ( * ) AS col2
----
-1326

query I rowsort
SELECT + - 67 + - 31 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT - 56 - + - 47 + + ( - - COALESCE ( - NULLIF ( 71, 21 - 31 ), - - MIN( 36 ) - COUNT( * ), - 36 ) ) + + + 96 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT - 56 - + - 47 + + ( - - COALESCE ( - NULLIF ( 71, 21 - 31 ), - - MIN ( 36 ) - COUNT ( * ), - 36 ) ) + + + 96 AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3794
SELECT ALL - COUNT( * ), 30 + ( + + 65 ) col1
----
-1
95

skipif mysql # not compatible
query II rowsort label-3794
SELECT ALL - COUNT ( * ), 30 + ( + + 65 ) col1
----
-1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT + CASE 38 WHEN - 63 THEN NULL WHEN + COUNT( * ) + - 33 THEN 8 WHEN 81 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT + CASE 38 WHEN - 63 THEN NULL WHEN + COUNT ( * ) + - 33 THEN 8 WHEN 81 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3796
SELECT ALL - ( + + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - ( + + CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 28 - - 76 + - + 19 AS col1
----
85

query I rowsort
SELECT - - 17 * - 26 AS col1
----
-442

query I rowsort
SELECT + 32 + + + 44 + + + 24
----
100

query I rowsort
SELECT - 2 + 13
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3801
SELECT - CAST( NULL AS SIGNED ) + + 37 AS col0, - 41 + + 23
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-3801
SELECT - CAST ( NULL AS INTEGER ) + + 37 AS col0, - 41 + + 23
----
NULL
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3802
SELECT ALL 54 AS col2, CAST( NULL AS DECIMAL ) col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3802
SELECT ALL 54 AS col2, CAST ( NULL AS REAL ) col1
----
54
NULL

query I rowsort
SELECT + + 40 + + 42
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL + COUNT( + 62 ) * 84 - + + 65
----
19

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + COUNT ( + 62 ) * 84 - + + 65
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT COUNT( * ) * - 50
----
-50

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT COUNT ( * ) * - 50
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT ALL + CAST( 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL + CAST ( 42 AS INTEGER )
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3807
SELECT - 78 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT - 78 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + CASE - 18 WHEN - AVG ( 80 ) THEN + 97 END * + + 28
----
NULL

query I rowsort
SELECT ( + - ( - 95 ) )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3810
SELECT + ( + 78 ) AS col0, - COALESCE ( ( 22 ), + SUM( - COALESCE ( - 75, + + 25, - 60 * - 19 ) ) )
----
78
-22

skipif mysql # not compatible
query II rowsort label-3810
SELECT + ( + 78 ) AS col0, - COALESCE ( ( 22 ), + SUM ( - COALESCE ( - 75, + + 25, - 60 * - 19 ) ) )
----
78
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3811
SELECT - 72 + 53 col1, COUNT( * ) * 70 + + 26 DIV ( + 17 ) + 31 + - 76 AS col1
----
-19
26

skipif mysql # not compatible
query II rowsort label-3811
SELECT - 72 + 53 col1, COUNT ( * ) * 70 + + 26 / ( + 17 ) + 31 + - 76 AS col1
----
-19
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL + SUM( ALL 70 )
----
70

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + SUM ( ALL 70 )
----
70

query I rowsort
SELECT ( - + 80 ) AS col2
----
-80

query I rowsort
SELECT - 42 * - 30
----
1260

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT - 65 DIV + - 29
----
2

skipif mysql # not compatible
query I rowsort label-3815
SELECT - 65 / + - 29
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3816
SELECT ALL - COUNT( * ) * - + ( + - 2 ) + 49 DIV - + 68 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL - COUNT ( * ) * - + ( + - 2 ) + 49 / - + 68 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3817
SELECT ( - + MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT ( - + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT + SUM( + + ( 32 ) )
----
32

skipif mysql # not compatible
query I rowsort label-3818
SELECT + SUM ( + + ( 32 ) )
----
32

query I rowsort
SELECT - 12 * + ( + 31 ) AS col0
----
-372

query I rowsort
SELECT - 29 + + 39 col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3821
SELECT DISTINCT - 18 * - MAX( 95 ) + - COALESCE ( - 29, - COUNT( * ) DIV + + CASE + COUNT( * ) WHEN + 89 + SUM( - 34 ) THEN + + 89 ELSE MIN( DISTINCT + - 81 ) END + + NULLIF ( - 98, 46 + - 51 * - 99 ) + 83 - + 13 + + 24, - + 85 * + 39 ) * + - ( CASE - 21 WHEN 56 * + 34 THEN NULL WHEN 5 * - COUNT( * ) THEN 74 ELSE + 61 END ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT - 18 * - MAX ( 95 ) + - COALESCE ( - 29, - COUNT ( * ) / + + CASE + COUNT ( * ) WHEN + 89 + SUM ( - 34 ) THEN + + 89 ELSE MIN ( DISTINCT + - 81 ) END + + NULLIF ( - 98, 46 + - 51 * - 99 ) + 83 - + 13 + + 24, - + 85 * + 39 ) * + - ( CASE - 21 WHEN 56 * + 34 THEN NULL WHEN 5 * - COUNT ( * ) THEN 74 ELSE + 61 END ) AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3822
SELECT DISTINCT 58 * + 80, - 31 * + - SUM( ALL + + CASE + 44 WHEN - + NULLIF ( + 42, 15 + + 35 + + 47 * + ( + 58 ) * - + 35 + - 84 ) THEN NULL ELSE - CAST( NULL AS SIGNED ) - - 54 END ) * - 97 + + 6 AS col1
----
4640
NULL

skipif mysql # not compatible
query II rowsort label-3822
SELECT DISTINCT 58 * + 80, - 31 * + - SUM ( ALL + + CASE + 44 WHEN - + NULLIF ( + 42, 15 + + 35 + + 47 * + ( + 58 ) * - + 35 + - 84 ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) - - 54 END ) * - 97 + + 6 AS col1
----
4640
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT - 64 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-3823
SELECT - 64 / 98
----
0

query II rowsort
SELECT DISTINCT + ( 94 ), + 96 col1
----
94
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT COALESCE ( ( + COUNT( * ) ), + 9 * + COALESCE ( - 1, - SUM( DISTINCT - 32 ) ) * - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT COALESCE ( ( + COUNT ( * ) ), + 9 * + COALESCE ( - 1, - SUM ( DISTINCT - 32 ) ) * - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + + COUNT( * ) + NULLIF ( + 5, - 18 )
----
6

skipif mysql # not compatible
query I rowsort label-3826
SELECT + + COUNT ( * ) + NULLIF ( + 5, - 18 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL + COUNT( * ) * - 31 - COUNT( ALL 79 )
----
-32

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + COUNT ( * ) * - 31 - COUNT ( ALL 79 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT ALL + - CAST( NULL AS SIGNED ) * + 26 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 26 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 13 - 1 col2
----
12

query I rowsort
SELECT + + COALESCE ( 26, - 54 - - 5, + + 63 ) - + 24 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT ALL 3 * CAST( + - 80 AS SIGNED ) * - 22
----
5280

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL 3 * CAST ( + - 80 AS INTEGER ) * - 22
----
5280

onlyif mysql # aggregate syntax: 
query II rowsort label-3832
SELECT + 91 * + COUNT( * ) AS col1, 44 AS col0
----
91
44

skipif mysql # not compatible
query II rowsort label-3832
SELECT + 91 * + COUNT ( * ) AS col1, 44 AS col0
----
91
44

query I rowsort
SELECT - 30 * - 64 col1
----
1920

query I rowsort
SELECT DISTINCT 88 * - 54 + - + 52 + 23
----
-4781

query I rowsort
SELECT ALL - 6 * + + 24 AS col0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT 45 * - ( COUNT( - + 69 ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT 45 * - ( COUNT ( - + 69 ) ) AS col0
----
-45

query I rowsort
SELECT + 66 + 14 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT ALL COUNT( * ) / + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL COUNT ( * ) / + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT + 42 + + - COUNT( ALL + 55 ) + - 81 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-3839
SELECT + 42 + + - COUNT ( ALL + 55 ) + - 81 AS col0
----
-40

query I rowsort
SELECT 53 * NULLIF ( - NULLIF ( + - 2, + + 49 + + 80 ), - - 10 * 41 ) AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT 63 * - COUNT( * ) * + COUNT( - 35 ) * ( + + COUNT( * ) ) * 82
----
-5166

skipif mysql # not compatible
query I rowsort label-3841
SELECT 63 * - COUNT ( * ) * + COUNT ( - 35 ) * ( + + COUNT ( * ) ) * 82
----
-5166

onlyif mysql # DIV for integer division: 
query I rowsort label-3842
SELECT - 96 DIV 60 + + + ( 31 ) col1
----
30

skipif mysql # not compatible
query I rowsort label-3842
SELECT - 96 / 60 + + + ( 31 ) col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3843
SELECT ALL - 7 * + - CAST( NULL AS SIGNED ) * 34 * - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - 7 * + - CAST ( NULL AS INTEGER ) * 34 * - - 9
----
NULL

query I rowsort
SELECT 53 + - - 13 + + 44 * 91
----
4070

query I rowsort
SELECT ALL 94 + - ( + 42 ) AS col1
----
52

query I rowsort
SELECT ALL + 35 + + 71 + - 76
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT + 45 * + COUNT( ALL 4 ) + + 20
----
65

skipif mysql # not compatible
query I rowsort label-3847
SELECT + 45 * + COUNT ( ALL 4 ) + + 20
----
65

query II rowsort
SELECT 3 AS col2, 71 * 51 - 82 + + + 2 + - 95 + ( - 83 ) AS col2
----
3
3363

query II rowsort
SELECT + 77 AS col2, + 9
----
77
9

query I rowsort
SELECT 81 + 37
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT 17 * + + 93 + + COALESCE ( + SUM( + 10 ), ( + - 26 ) + 60 - + 96 * - ( - 94 ), - CAST( + ( - 10 ) AS SIGNED ) ) * + 64 * - + 38 - - - ( 82 ) + - - ( + 18 ) - 66 AS col2
----
-22869

skipif mysql # not compatible
query I rowsort label-3851
SELECT 17 * + + 93 + + COALESCE ( + SUM ( + 10 ), ( + - 26 ) + 60 - + 96 * - ( - 94 ), - CAST ( + ( - 10 ) AS INTEGER ) ) * + 64 * - + 38 - - - ( 82 ) + - - ( + 18 ) - 66 AS col2
----
-22869

query I rowsort
SELECT + 99 * + + 29 + + - ( - 50 )
----
2921

query I rowsort
SELECT 60 + 19 + - - 97 + + 98 + + 43 - + + 91
----
226

query I rowsort
SELECT ALL - 61 - + + 75 AS col0
----
-136

query II rowsort
SELECT ALL - 81, + 70 AS col1
----
-81
70

query I rowsort
SELECT + 82 * - - 16 * + 40 * - - 34 + - - 52 AS col0
----
1784372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3857
SELECT + 84 * + - CAST( - + COUNT( * ) AS SIGNED ) * 84 AS col0, - CAST( + - COALESCE ( - - 20, + 14 ) AS SIGNED ) AS col2
----
7056
20

skipif mysql # not compatible
query II rowsort label-3857
SELECT + 84 * + - CAST ( - + COUNT ( * ) AS INTEGER ) * 84 AS col0, - CAST ( + - COALESCE ( - - 20, + 14 ) AS INTEGER ) AS col2
----
7056
20

query II rowsort
SELECT ALL - 58 col1, - ( 40 ) col2
----
-58
-40

query I rowsort
SELECT 47 + - 10 * - + 75
----
797

query I rowsort
SELECT - ( - + 46 ) AS col1
----
46

query I rowsort
SELECT DISTINCT - 76 * + 31 AS col2
----
-2356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT 40 + CAST( NULL AS SIGNED ) - - 68 + - 4 - + + 32 * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT 40 + CAST ( NULL AS INTEGER ) - - 68 + - 4 - + + 32 * 10
----
NULL

query I rowsort
SELECT ALL - + 98 + 80 AS col2
----
-18

query I rowsort
SELECT ALL + 63 + + 44 col0
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3865
SELECT 44 + - - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT 44 + - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3866
SELECT ALL CAST( - 17 AS SIGNED ) + - + 49 + 99 * - 94 * + 18 + MAX( - 39 ) col0
----
-167613

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL CAST ( - 17 AS INTEGER ) + - + 49 + 99 * - 94 * + 18 + MAX ( - 39 ) col0
----
-167613

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT MAX( - 85 ) + - 30 + - - 94
----
-21

skipif mysql # not compatible
query I rowsort label-3867
SELECT MAX ( - 85 ) + - 30 + - - 94
----
-21

query I rowsort
SELECT 34 + 94 col2
----
128

query I rowsort
SELECT DISTINCT 48 * - + 25 AS col1
----
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3870
SELECT COUNT( - CAST( NULL AS SIGNED ) ) DIV COALESCE ( + 80, - - COUNT( * ) + - + 36 ) DIV + - 53 - - 18
----
18

skipif mysql # not compatible
query I rowsort label-3870
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) / COALESCE ( + 80, - - COUNT ( * ) + - + 36 ) / + - 53 - - 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL - 3 - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - 3 - - COUNT ( * )
----
-2

query I rowsort
SELECT ( - 40 ) + + + 46 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT COUNT( * ) * - - COALESCE ( 20, - + COUNT( * ) * + 45 * + + 52 + + + 74 )
----
20

skipif mysql # not compatible
query I rowsort label-3873
SELECT COUNT ( * ) * - - COALESCE ( 20, - + COUNT ( * ) * + 45 * + + 52 + + + 74 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT COUNT( * ) * - - 55 + - 2
----
53

skipif mysql # not compatible
query I rowsort label-3874
SELECT COUNT ( * ) * - - 55 + - 2
----
53

query I rowsort
SELECT ALL 41 - 11 col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3876
SELECT DISTINCT - - 18 * - 4 * - 62 * + 99 * - CAST( + - 61 AS SIGNED ) + - 22 * + 31 + + 17, 95 + + 20 col1
----
26957431
115

skipif mysql # not compatible
query II rowsort label-3876
SELECT DISTINCT - - 18 * - 4 * - 62 * + 99 * - CAST ( + - 61 AS INTEGER ) + - 22 * + 31 + + 17, 95 + + 20 col1
----
26957431
115

query II rowsort
SELECT DISTINCT 98 * 90, - ( - 5 ) col0
----
8820
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT NULLIF ( + - 92, + CASE - 48 WHEN + + 63 * - + 95 * 94 + + + 30 + - 27 + + 96 THEN - 32 WHEN + 57 + - - 36 * + 80 THEN COUNT( ALL + 22 ) * + - 87 * - COALESCE ( - 12, - - COUNT( * ) * 84 - + 27 + + 9 + - COALESCE ( + 53, + 43 / 21, 80 / - AVG ( 75 ) ) ) WHEN 35 * 32 - 59 THEN NULL ELSE NULL END / 79 ) * + 72 AS col0
----
-6624

skipif mysql # not compatible
query I rowsort label-3878
SELECT NULLIF ( + - 92, + CASE - 48 WHEN + + 63 * - + 95 * 94 + + + 30 + - 27 + + 96 THEN - 32 WHEN + 57 + - - 36 * + 80 THEN COUNT ( ALL + 22 ) * + - 87 * - COALESCE ( - 12, - - COUNT ( * ) * 84 - + 27 + + 9 + - COALESCE ( + 53, + 43 / 21, 80 / - AVG ( 75 ) ) ) WHEN 35 * 32 - 59 THEN NULL ELSE NULL END / 79 ) * + 72 AS col0
----
-6624

query I rowsort
SELECT ALL + 99 * + - 76
----
-7524

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT + COUNT( ALL + - COALESCE ( + 38, 88, 60 + + 58 * + 65, - 36 * NULLIF ( + ( + 98 ), ( - + 85 ) ) ) ) * - COUNT( * ) - - 4 + + - COUNT( * ) + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3880
SELECT + COUNT ( ALL + - COALESCE ( + 38, 88, 60 + + 58 * + 65, - 36 * NULLIF ( + ( + 98 ), ( - + 85 ) ) ) ) * - COUNT ( * ) - - 4 + + - COUNT ( * ) + + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT 83 + COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3881
SELECT 83 + COUNT ( * ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT + ( - CASE 81 WHEN 32 * - - COUNT( * ) * + + 36 - - 12 - 88 / - + 79 / + 52 THEN - 85 + - + 76 * - 16 + + 64 WHEN + + 68 THEN NULL WHEN - 33 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT + ( - CASE 81 WHEN 32 * - - COUNT ( * ) * + + 36 - - 12 - 88 / - + 79 / + 52 THEN - 85 + - + 76 * - 16 + + 64 WHEN + + 68 THEN NULL WHEN - 33 THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3883
SELECT 85 DIV 88 AS col0, + 58 + + + COUNT( * )
----
0
59

skipif mysql # not compatible
query II rowsort label-3883
SELECT 85 / 88 AS col0, + 58 + + + COUNT ( * )
----
0
59

query I rowsort
SELECT - 82 * 48 + 15
----
-3921

query I rowsort
SELECT DISTINCT + 6 + + 73 AS col1
----
79

query I rowsort
SELECT DISTINCT + + ( - - 47 ) + + + 21
----
68

query I rowsort
SELECT + 6 + - + 13 AS col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3888
SELECT + NULLIF ( + + 99, 4 ) DIV + + MAX( - 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-3888
SELECT + NULLIF ( + + 99, 4 ) / + + MAX ( - 52 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT 31 * - CASE - + 30 WHEN 18 / 38 / - - 89 + COUNT( - 4 ) THEN 12 WHEN + COUNT( * ) + - - 23 * + COUNT( * ) THEN + 84 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT 31 * - CASE - + 30 WHEN 18 / 38 / - - 89 + COUNT ( - 4 ) THEN 12 WHEN + COUNT ( * ) + - - 23 * + COUNT ( * ) THEN + 84 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT - COUNT( * ) DIV + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3890
SELECT - COUNT ( * ) / + 72 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT DISTINCT + 61 DIV - 15 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT + 61 / - 15 AS col2
----
-4

query I rowsort
SELECT ALL NULLIF ( + 71, - 27 )
----
71

query I rowsort
SELECT - 13 * + + 97 * - + 7 * 10
----
88270

query II rowsort
SELECT 41 AS col0, + 96 * + 2 * + 12 * - 67
----
41
-154368

query I rowsort
SELECT ALL 1 - - 99 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT DISTINCT CASE + 87 WHEN + - 40 - MAX( 0 ) THEN - 3 WHEN - - 54 - + 55 THEN - MAX( - 29 ) ELSE + 83 END
----
83

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT CASE + 87 WHEN + - 40 - MAX ( 0 ) THEN - 3 WHEN - - 54 - + 55 THEN - MAX ( - 29 ) ELSE + 83 END
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3897
SELECT - 77 + SUM( + + 43 ) * CAST( 7 AS SIGNED ) AS col1
----
224

skipif mysql # not compatible
query I rowsort label-3897
SELECT - 77 + SUM ( + + 43 ) * CAST ( 7 AS INTEGER ) AS col1
----
224

onlyif mysql # aggregate syntax: 
query II rowsort label-3898
SELECT - COUNT( * ) AS col2, ( - + 87 ) * - - 86
----
-1
-7482

skipif mysql # not compatible
query II rowsort label-3898
SELECT - COUNT ( * ) AS col2, ( - + 87 ) * - - 86
----
-1
-7482

query I rowsort
SELECT ALL NULLIF ( - 0, - 10 )
----
0

query I rowsort
SELECT - 53 + 43 + ( - COALESCE ( 67, 80 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3901
SELECT ALL COUNT( * ) * - 58 - - 63, + CAST( NULL AS SIGNED ) / 3 AS col1
----
5
NULL

skipif mysql # not compatible
query II rowsort label-3901
SELECT ALL COUNT ( * ) * - 58 - - 63, + CAST ( NULL AS INTEGER ) / 3 AS col1
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ( MIN( - - 97 ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3902
SELECT ( MIN ( - - 97 ) ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT + 90 * - + CASE + 47 WHEN + COUNT( * ) THEN - - 4 + 74 + - + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT + 90 * - + CASE + 47 WHEN + COUNT ( * ) THEN - - 4 + 74 + - + 52 END
----
NULL

query II rowsort
SELECT ALL + 39, - ( + 35 ) * + 90 AS col1
----
39
-3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3905
SELECT + CASE - - 98 WHEN 52 THEN NULL WHEN ( + + ( - AVG ( - 91 ) ) ) / 32 THEN NULL ELSE - - 34 * - - 65 END + - + ( - - COUNT( * ) ) * 84, MAX( DISTINCT + NULLIF ( - CAST( NULL AS SIGNED ), 56 + - - 39 + + 41 ) ) AS col0
----
2126
NULL

skipif mysql # not compatible
query II rowsort label-3905
SELECT + CASE - - 98 WHEN 52 THEN NULL WHEN ( + + ( - AVG ( - 91 ) ) ) / 32 THEN NULL ELSE - - 34 * - - 65 END + - + ( - - COUNT ( * ) ) * 84, MAX ( DISTINCT + NULLIF ( - CAST ( NULL AS INTEGER ), 56 + - - 39 + + 41 ) ) AS col0
----
2126
NULL

query I rowsort
SELECT ALL + 72 * - 32 AS col1
----
-2304

query I rowsort
SELECT ALL + + ( - + 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT + + MAX( + - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3908
SELECT + + MAX ( + - 51 ) AS col1
----
-51

query I rowsort
SELECT + + ( 10 ) + 33 + 32 AS col0
----
75

query I rowsort
SELECT - 32 * + 9 - - 20
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT + 57 + - + 31 * - ( SUM( + 12 ) ) * - 2 AS col0
----
-687

skipif mysql # not compatible
query I rowsort label-3911
SELECT + 57 + - + 31 * - ( SUM ( + 12 ) ) * - 2 AS col0
----
-687

onlyif mysql # DIV for integer division: 
query I rowsort label-3912
SELECT ALL 27 DIV - + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL 27 / - + 81 AS col0
----
0

query II rowsort
SELECT DISTINCT + + 31, 87 AS col0
----
31
87

query I rowsort
SELECT - 71 + + + 1 AS col2
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT DISTINCT - 51 DIV - - 2
----
-25

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT - 51 / - - 2
----
-25

query I rowsort
SELECT + - 82 * + 85 * - 8
----
55760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3917
SELECT DISTINCT + 25 * 22 DIV - - COUNT( * ) + - ( 86 ) + - 58 + - 23 col2
----
383

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT + 25 * 22 / - - COUNT ( * ) + - ( 86 ) + - 58 + - 23 col2
----
383

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL + COUNT( + - 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + COUNT ( + - 4 ) AS col0
----
1

query II rowsort
SELECT DISTINCT + - 98 AS col2, 14 + - 83
----
-98
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT + - COUNT( * ) + + + 82
----
81

skipif mysql # not compatible
query I rowsort label-3920
SELECT + - COUNT ( * ) + + + 82
----
81

query I rowsort
SELECT ALL + 11 * + 74 + - + 67 + 37
----
784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT + 86 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT + 86 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT + - 88 * - CAST( 91 AS SIGNED ) AS col2
----
8008

skipif mysql # not compatible
query I rowsort label-3923
SELECT + - 88 * - CAST ( 91 AS INTEGER ) AS col2
----
8008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3924
SELECT DISTINCT 43 + CAST( NULL AS SIGNED ) * - + COALESCE ( + CASE + ( + - 72 ) WHEN - NULLIF ( + ( 97 ), + ( CAST( NULL AS SIGNED ) ) / - + 81 * - 88 ) * AVG ( - 46 ) + 12 + - + 65 * - 32 * - + 54 * + + 20 * - COUNT( * ) - + CASE + + 32 WHEN + 1 + 10 THEN + 68 * - 14 WHEN CAST( NULL AS SIGNED ) * - + 18 * + + 61 + - ( - 57 ) + + 8 THEN - 55 END * - 15 THEN NULL WHEN + 50 THEN 57 END, - 97 + 67, 95 + - NULLIF ( - COALESCE ( 85, 36 * - 64 ), 13 * + COUNT( * ) + + 92 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT 43 + CAST ( NULL AS INTEGER ) * - + COALESCE ( + CASE + ( + - 72 ) WHEN - NULLIF ( + ( 97 ), + ( CAST ( NULL AS INTEGER ) ) / - + 81 * - 88 ) * AVG ( - 46 ) + 12 + - + 65 * - 32 * - + 54 * + + 20 * - COUNT ( * ) - + CASE + + 32 WHEN + 1 + 10 THEN + 68 * - 14 WHEN CAST ( NULL AS INTEGER ) * - + 18 * + + 61 + - ( - 57 ) + + 8 THEN - 55 END * - 15 THEN NULL WHEN + 50 THEN 57 END, - 97 + 67, 95 + - NULLIF ( - COALESCE ( 85, 36 * - 64 ), 13 * + COUNT ( * ) + + 92 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT - COUNT( * ) + - + 61 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3925
SELECT - COUNT ( * ) + - + 61 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT DISTINCT COUNT( - - 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT COUNT ( - - 22 ) AS col1
----
1

query I rowsort
SELECT ALL - 3 - - + 62 AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3928
SELECT - ( + 73 ) * 12 + - 21 AS col0, CAST( NULL AS SIGNED ) / 38 * + + CAST( NULL AS SIGNED ) + COALESCE ( + - NULLIF ( + - COALESCE ( - 34, + + 29, 33 * - 62 / NULLIF ( - 78, + + 57 ) / - 70 - 35 - + ( 39 ) + - - ( - + 60 ) + + + 30 * - COUNT( * ) * + + 55 ), - + CASE + MAX( 26 ) WHEN 56 THEN + COUNT( * ) END ), 56, - CASE - 27 WHEN 9 THEN 27 * 0 WHEN 81 THEN 91 END ) + 13 * CAST( NULL AS DECIMAL )
----
-897
NULL

skipif mysql # not compatible
query II rowsort label-3928
SELECT - ( + 73 ) * 12 + - 21 AS col0, CAST ( NULL AS INTEGER ) / 38 * + + CAST ( NULL AS INTEGER ) + COALESCE ( + - NULLIF ( + - COALESCE ( - 34, + + 29, 33 * - 62 / NULLIF ( - 78, + + 57 ) / - 70 - 35 - + ( 39 ) + - - ( - + 60 ) + + + 30 * - COUNT ( * ) * + + 55 ), - + CASE + MAX ( 26 ) WHEN 56 THEN + COUNT ( * ) END ), 56, - CASE - 27 WHEN 9 THEN 27 * 0 WHEN 81 THEN 91 END ) + 13 * CAST ( NULL AS REAL )
----
-897
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT - CAST( - 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-3929
SELECT - CAST ( - 6 AS INTEGER )
----
6

query I rowsort
SELECT - 30 * 32 * + 62
----
-59520

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT - 47 DIV + 7
----
-6

skipif mysql # not compatible
query I rowsort label-3931
SELECT - 47 / + 7
----
-6

query I rowsort
SELECT DISTINCT - 58 * 77
----
-4466

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3933
SELECT ALL - COUNT( * ) DIV - + MIN( 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - COUNT ( * ) / - + MIN ( 94 ) AS col2
----
0

query I rowsort
SELECT DISTINCT ( + + 57 )
----
57

query I rowsort
SELECT - ( 70 ) * + - 34 AS col1
----
2380

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT + COALESCE ( - COUNT( * ), + - 74 + + + 20, + 53 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + - 74 + + + 20, + 53 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3937
SELECT ALL + 32 AS col2, - 2 DIV 42 * + - 87 AS col0
----
32
0

skipif mysql # not compatible
query II rowsort label-3937
SELECT ALL + 32 AS col2, - 2 / 42 * + - 87 AS col0
----
32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT - COUNT( * ) + - 63 + - - COUNT( * ) * - ( - ( - COUNT( * ) ) ) + - MIN( ALL + - 22 ) * + - 65 + NULLIF ( + ( 76 ), - 4 )
----
-1419

skipif mysql # not compatible
query I rowsort label-3938
SELECT - COUNT ( * ) + - 63 + - - COUNT ( * ) * - ( - ( - COUNT ( * ) ) ) + - MIN ( ALL + - 22 ) * + - 65 + NULLIF ( + ( 76 ), - 4 )
----
-1419

query II rowsort
SELECT + 28, + 59 AS col0
----
28
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT - - CAST( NULL AS SIGNED ) * 20 * 21 + - - 8 + - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT - - CAST ( NULL AS INTEGER ) * 20 * 21 + - - 8 + - - 21
----
NULL

query II rowsort
SELECT ALL + 33 col2, + 80 * - 89 AS col1
----
33
-7120

query I rowsort
SELECT DISTINCT 16 * - 79 AS col0
----
-1264

query I rowsort
SELECT ALL + - 92 * + 65
----
-5980

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT ALL + 50 DIV - 98 + - 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL + 50 / - 98 + - 12 AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3945
SELECT DISTINCT - 14 DIV 76 * - 29 + + 81 * + COUNT( * ) - + MIN( ALL - 88 ) AS col1, 78 AS col1
----
169
78

skipif mysql # not compatible
query II rowsort label-3945
SELECT DISTINCT - 14 / 76 * - 29 + + 81 * + COUNT ( * ) - + MIN ( ALL - 88 ) AS col1, 78 AS col1
----
169
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3946
SELECT ALL - - NULLIF ( - 13, - - NULLIF ( 1, CAST( + 75 AS SIGNED ) ) ) DIV 2 + + + 47 + COUNT( * ) DIV + 50 + - 29 * - + 95 + + 30 + + + 91 * - 98 + 51, + COUNT( * ) AS col2
----
-6041
1

skipif mysql # not compatible
query II rowsort label-3946
SELECT ALL - - NULLIF ( - 13, - - NULLIF ( 1, CAST ( + 75 AS INTEGER ) ) ) / 2 + + + 47 + COUNT ( * ) / + 50 + - 29 * - + 95 + + 30 + + + 91 * - 98 + 51, + COUNT ( * ) AS col2
----
-6041
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3947
SELECT - 70 DIV + COALESCE ( 92, 69 - + COUNT( * ) + - 79 )
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT - 70 / + COALESCE ( 92, 69 - + COUNT ( * ) + - 79 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - COUNT( - COALESCE ( - 22, + 73 ) ) - + 57 + 57 + - - 53 - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-3948
SELECT - COUNT ( - COALESCE ( - 22, + 73 ) ) - + 57 + 57 + - - 53 - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT NULLIF ( + - COUNT( * ), - + 57 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3949
SELECT NULLIF ( + - COUNT ( * ), - + 57 ) AS col1
----
-1

query III rowsort
SELECT 50 AS col2, ( + 74 ) * + 20 * + 68 - - ( + 55 ) - 66 - + 82 AS col0, NULLIF ( 40, 81 )
----
50
100547
40

query II rowsort
SELECT + 19 AS col0, - 57 + 53
----
19
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT 15 + - 21 - - 94 * + CAST( 3 AS SIGNED ) AS col1
----
276

skipif mysql # not compatible
query I rowsort label-3952
SELECT 15 + - 21 - - 94 * + CAST ( 3 AS INTEGER ) AS col1
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT + SUM( ALL - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-3953
SELECT + SUM ( ALL - 15 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3954
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - MAX( DISTINCT - 48 ) / 38 + - 64 * + 56 * + + ( + - MIN( 39 ) ) - - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - MAX ( DISTINCT - 48 ) / 38 + - 64 * + 56 * + + ( + - MIN ( 39 ) ) - - 44 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3955
SELECT ALL 2 / + ( - + SUM( ALL - 76 ) ) * + CAST( NULL AS SIGNED ) * + MAX( DISTINCT NULLIF ( + 2, + 9 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL 2 / + ( - + SUM ( ALL - 76 ) ) * + CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT NULLIF ( + 2, + 9 ) )
----
NULL

query I rowsort
SELECT DISTINCT 66 * + + 55 * - 51 col0
----
-185130

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ( 2 ) - + MIN( - - 23 ) - - - 32 - + 26 * - 26
----
623

skipif mysql # not compatible
query I rowsort label-3957
SELECT ( 2 ) - + MIN ( - - 23 ) - - - 32 - + 26 * - 26
----
623

query I rowsort
SELECT DISTINCT 30 * + + 17
----
510

query I rowsort
SELECT NULLIF ( 66, 68 ) + - 67 AS col2
----
-1

query I rowsort
SELECT ALL 65 * + - 92 * - - 29 AS col1
----
-173420

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT MIN( DISTINCT + - 54 ) - + + 37
----
-91

skipif mysql # not compatible
query I rowsort label-3961
SELECT MIN ( DISTINCT + - 54 ) - + + 37
----
-91

query I rowsort
SELECT 62 * 48 AS col0
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT 87 * + + SUM( + + 91 ) AS col0
----
7917

skipif mysql # not compatible
query I rowsort label-3963
SELECT 87 * + + SUM ( + + 91 ) AS col0
----
7917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3964
SELECT 77 + COUNT( * ) * + COALESCE ( ( - + CAST( - 71 AS SIGNED ) ), - 64 + + - 22, + 63 DIV - SUM( + 99 ) + + ( + + 90 ) + + 84 )
----
148

skipif mysql # not compatible
query I rowsort label-3964
SELECT 77 + COUNT ( * ) * + COALESCE ( ( - + CAST ( - 71 AS INTEGER ) ), - 64 + + - 22, + 63 / - SUM ( + 99 ) + + ( + + 90 ) + + 84 )
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL - 12 * - COALESCE ( 14, - + ( MAX( - - 97 ) ) ) * 39
----
6552

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - 12 * - COALESCE ( 14, - + ( MAX ( - - 97 ) ) ) * 39
----
6552

query I rowsort
SELECT + ( - - 70 ) AS col2
----
70

query I rowsort
SELECT 60 + - + 77
----
-17

query I rowsort
SELECT DISTINCT + + 32 + - + 18 * 44 AS col0
----
-760

query II rowsort
SELECT ALL - 62 + + 26 AS col1, + 78 AS col0
----
-36
78

query I rowsort
SELECT ALL 48 * + 1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3971
SELECT DISTINCT + CASE 36 WHEN + - 5 + 10 THEN + + NULLIF ( 31, - 69 ) ELSE - + 86 END * CAST( - MAX( - - 10 ) AS SIGNED ) + + 8
----
868

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT + CASE 36 WHEN + - 5 + 10 THEN + + NULLIF ( 31, - 69 ) ELSE - + 86 END * CAST ( - MAX ( - - 10 ) AS INTEGER ) + + 8
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT DISTINCT + MIN( - + 11 ) + 17 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT + MIN ( - + 11 ) + 17 AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT 9 + + 23 * - 69 * - ( + 54 ) - COUNT( ALL 0 ) AS col1, SUM( DISTINCT ( - 2 ) )
----
85706
-2

skipif mysql # not compatible
query II rowsort label-3973
SELECT 9 + + 23 * - 69 * - ( + 54 ) - COUNT ( ALL 0 ) AS col1, SUM ( DISTINCT ( - 2 ) )
----
85706
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT - - COUNT( * ) / + 81 * - 26 + - - 84 + + 43 + + 85 + 77 + 8 / COUNT( ALL + 88 ) + + COUNT( * ) * - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT - - COUNT ( * ) / + 81 * - 26 + - - 84 + + 43 + + 85 + 77 + 8 / COUNT ( ALL + 88 ) + + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 86 * + 36 AS col0
----
3096

query I rowsort
SELECT ALL - 44 * - + 23
----
1012

query I rowsort
SELECT - 93 * ( + 60 ) + - CASE WHEN NULL NOT BETWEEN ( NULL ) AND ( - 71 ) THEN - 21 ELSE - 6 END * 48
----
-5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3978
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 99 col0, 87 + + CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-3978
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 99 col0, 87 + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
NULL
86

query I rowsort
SELECT DISTINCT - ( + 32 ) AS col0
----
-32

query I rowsort
SELECT ALL - ( - - 40 ) col2
----
-40

query I rowsort
SELECT 33 + 61 * - 68 AS col1
----
-4115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3982
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, + 63 * + COUNT( * )
----
NULL
63

skipif mysql # not compatible
query II rowsort label-3982
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + 63 * + COUNT ( * )
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT 12 * + 28 + - COUNT( * )
----
335

skipif mysql # not compatible
query I rowsort label-3983
SELECT 12 * + 28 + - COUNT ( * )
----
335

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT DISTINCT 83 DIV 60 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT 83 / 60 AS col1
----
1

query I rowsort
SELECT ALL 18 * + 19 * 15 AS col2
----
5130

query I rowsort
SELECT 68 + - ( 86 ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT DISTINCT + 40 DIV + 18
----
2

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT + 40 / + 18
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3988
SELECT ALL COUNT( * ), 13 AS col2
----
1
13

skipif mysql # not compatible
query II rowsort label-3988
SELECT ALL COUNT ( * ), 13 AS col2
----
1
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3989
SELECT DISTINCT + 31 DIV + - 22
----
-1

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT + 31 / + - 22
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL COUNT( + + 50 ) * + ( + COUNT( - 10 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL COUNT ( + + 50 ) * + ( + COUNT ( - 10 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL 82 + + COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL 82 + + COUNT ( * ) AS col0
----
83

query II rowsort
SELECT - 14 AS col2, 19
----
-14
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3993
SELECT 3 + + - ( + 40 ) * - 87 col0, - COUNT( * ) * + + 3 * 36
----
3483
-108

skipif mysql # not compatible
query II rowsort label-3993
SELECT 3 + + - ( + 40 ) * - 87 col0, - COUNT ( * ) * + + 3 * 36
----
3483
-108

query I rowsort
SELECT ALL 76 * ( - 36 ) AS col1
----
-2736

query II rowsort
SELECT - 69 AS col2, - ( + 12 ) AS col2
----
-69
-12

query I rowsort
SELECT ( + 47 ) + - 55
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - COUNT( ALL - + 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-3997
SELECT - COUNT ( ALL - + 85 )
----
-1

query I rowsort
SELECT 87 * 71 AS col2
----
6177

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT 22 + - COALESCE ( + - 24, - 46 + - 83, - 99 DIV 30 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3999
SELECT 22 + - COALESCE ( + - 24, - 46 + - 83, - 99 / 30 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-4000
SELECT - 23 AS col0, COUNT( * ) * + 30 * + 88 * 79 + + 63 AS col0
----
-23
208623

skipif mysql # not compatible
query II rowsort label-4000
SELECT - 23 AS col0, COUNT ( * ) * + 30 * + 88 * 79 + + 63 AS col0
----
-23
208623

query II rowsort
SELECT + 40 AS col1, 92 * + - 81 * + 28 * 64 AS col2
----
40
-13353984

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL COUNT( - + 13 ) + - + 53 col0
----
-52

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL COUNT ( - + 13 ) + - + 53 col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - MIN( DISTINCT + + 43 ) * + + 97 * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT + + 43 ) * + + 97 * + 89
----
NULL

query II rowsort
SELECT ALL - 0 * - 38 * - - 40 AS col0, + 65 * - 29 - + 85
----
0
-1970

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT - COUNT( DISTINCT + + 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4005
SELECT - COUNT ( DISTINCT + + 44 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4006
SELECT ALL MAX( + 53 ) + 62 AS col1, 0 * - 91
----
115
0

skipif mysql # not compatible
query II rowsort label-4006
SELECT ALL MAX ( + 53 ) + 62 AS col1, 0 * - 91
----
115
0

query I rowsort
SELECT DISTINCT - - 64 col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4008
SELECT + - 50 DIV ( CAST( - + 75 AS SIGNED ) ) * + 96 + + 50 + + COALESCE ( + 88, + 85 DIV + 58 + - 25 ) * + MAX( ALL + - 12 ) + 64
----
-942

skipif mysql # not compatible
query I rowsort label-4008
SELECT + - 50 / ( CAST ( - + 75 AS INTEGER ) ) * + 96 + + 50 + + COALESCE ( + 88, + 85 / + 58 + - 25 ) * + MAX ( ALL + - 12 ) + 64
----
-942

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4009
SELECT ALL + 39 * 81 DIV COUNT( * ) + - + 68
----
3091

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL + 39 * 81 / COUNT ( * ) + - + 68
----
3091

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT + ( COALESCE ( COUNT( * ), + COALESCE ( - ( + 59 ), + 52, + 48 * + 45 * + 67 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4010
SELECT + ( COALESCE ( COUNT ( * ), + COALESCE ( - ( + 59 ), + 52, + 48 * + 45 * + 67 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT DISTINCT - + 12 * + + ( COUNT( * ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT - + 12 * + + ( COUNT ( * ) ) AS col1
----
-12

query I rowsort
SELECT - 92 * + 71 + 49 AS col1
----
-6483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4013
SELECT ALL + 24 DIV COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + 24 / COUNT ( * )
----
24

query I rowsort
SELECT - - 18 * - 18 + 85 * + - 64 AS col1
----
-5764

query II rowsort
SELECT + 32 AS col2, - 42 * - 73 AS col0
----
32
3066

query I rowsort
SELECT ALL + - 89 col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT - + 43 * + COUNT( * ) + + - MIN( - + 25 ) + + 38 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4017
SELECT - + 43 * + COUNT ( * ) + + - MIN ( - + 25 ) + + 38 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT MAX( - 95 ) col1
----
-95

skipif mysql # not compatible
query I rowsort label-4018
SELECT MAX ( - 95 ) col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT - ( + 79 ) + ( - - ( - COUNT( * ) ) )
----
-80

skipif mysql # not compatible
query I rowsort label-4019
SELECT - ( + 79 ) + ( - - ( - COUNT ( * ) ) )
----
-80

query II rowsort
SELECT - 30 * + 40, 78 AS col2
----
-1200
78

query I rowsort
SELECT ALL - 44 * 75 col1
----
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT - 26 * + COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT - 26 * + COUNT ( * ) AS col2
----
-26

query I rowsort
SELECT DISTINCT + 99 + + 73
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT ALL - 45 + - CAST( + 84 AS SIGNED ) AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL - 45 + - CAST ( + 84 AS INTEGER ) AS col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT - COUNT( ALL + 62 ) * 9
----
-9

skipif mysql # not compatible
query I rowsort label-4025
SELECT - COUNT ( ALL + 62 ) * 9
----
-9

query I rowsort
SELECT ALL ( - 33 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT + COUNT( * ) + 84 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT + COUNT ( * ) + 84 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL COUNT( * ) + + COUNT( * ) + - 54
----
-52

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL COUNT ( * ) + + COUNT ( * ) + - 54
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4029
SELECT DISTINCT CASE + + CAST( NULL AS SIGNED ) WHEN + 74 THEN 89 * - 75 END, + 45 AS col0
----
NULL
45

skipif mysql # not compatible
query II rowsort label-4029
SELECT DISTINCT CASE + + CAST ( NULL AS INTEGER ) WHEN + 74 THEN 89 * - 75 END, + 45 AS col0
----
NULL
45

query I rowsort
SELECT ALL ( + ( 31 ) )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4031
SELECT DISTINCT 82 + - + 30 AS col1, + CAST( NULL AS SIGNED ) AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-4031
SELECT DISTINCT 82 + - + 30 AS col1, + CAST ( NULL AS INTEGER ) AS col1
----
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL + - 10 / + CASE + 0 WHEN + + 40 * ( - - COUNT( * ) ) THEN NULL WHEN - NULLIF ( + NULLIF ( 89, - 53 ), 57 * ( + + 61 ) ) THEN - 56 - + 32 END + - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL + - 10 / + CASE + 0 WHEN + + 40 * ( - - COUNT ( * ) ) THEN NULL WHEN - NULLIF ( + NULLIF ( 89, - 53 ), 57 * ( + + 61 ) ) THEN - 56 - + 32 END + - 57 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4033
SELECT + + 40 DIV - + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4033
SELECT + + 40 / - + 68 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT ALL - 71 * CAST( 12 AS SIGNED ) + 80 + - 82 + 3 + - 79
----
-930

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL - 71 * CAST ( 12 AS INTEGER ) + 80 + - 82 + 3 + - 79
----
-930

onlyif mysql # aggregate syntax: 
query II rowsort label-4035
SELECT ALL - 60 + COUNT( * ) + 90 + NULLIF ( + CASE - 93 WHEN 36 THEN NULL WHEN + 73 + - 78 + 68 THEN + COUNT( * ) + + - COUNT( * ) + + 87 ELSE NULL END, 80 ) - + 50 * 9 * + COUNT( * ), ( - 51 ) AS col2
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-4035
SELECT ALL - 60 + COUNT ( * ) + 90 + NULLIF ( + CASE - 93 WHEN 36 THEN NULL WHEN + 73 + - 78 + 68 THEN + COUNT ( * ) + + - COUNT ( * ) + + 87 ELSE NULL END, 80 ) - + 50 * 9 * + COUNT ( * ), ( - 51 ) AS col2
----
NULL
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT 48 + - MAX( DISTINCT + - 64 ) - + 57 * - NULLIF ( + + 73, + - 52 - + + COUNT( * ) )
----
4273

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT 48 + - MAX ( DISTINCT + - 64 ) - + 57 * - NULLIF ( + + 73, + - 52 - + + COUNT ( * ) )
----
4273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4037
SELECT DISTINCT MIN( DISTINCT 95 ) * + 87 * - 41 + - - 86 - + 29 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT MIN ( DISTINCT 95 ) * + 87 * - 41 + - - 86 - + 29 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - 80 + - 85 AS col0
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4039
SELECT + 97 - CAST( NULL AS DECIMAL ) / + 75 + + AVG ( - - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT + 97 - CAST ( NULL AS REAL ) / + 75 + + AVG ( - - 30 )
----
NULL

query I rowsort
SELECT ALL - 87 col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT + ( COALESCE ( - 6, - COUNT( * ) - - MIN( DISTINCT + 35 ) ) ) * 9
----
-54

skipif mysql # not compatible
query I rowsort label-4041
SELECT + ( COALESCE ( - 6, - COUNT ( * ) - - MIN ( DISTINCT + 35 ) ) ) * 9
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT + ( - 3 ) * NULLIF ( + + COUNT( * ), + - 29 + - - 75 )
----
-3

skipif mysql # not compatible
query I rowsort label-4042
SELECT + ( - 3 ) * NULLIF ( + + COUNT ( * ), + - 29 + - - 75 )
----
-3

query I rowsort
SELECT + 54 + - + 98 AS col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4044
SELECT - + 8 DIV 6 + + COUNT( * ) * + 34 * + 36 AS col1
----
1223

skipif mysql # not compatible
query I rowsort label-4044
SELECT - + 8 / 6 + + COUNT ( * ) * + 34 * + 36 AS col1
----
1223

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT + CASE - NULLIF ( + COUNT( * ), + NULLIF ( + 75, + 44 ) ) WHEN 55 THEN - 29 + + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT + CASE - NULLIF ( + COUNT ( * ), + NULLIF ( + 75, + 44 ) ) WHEN 55 THEN - 29 + + - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT + - 72 * 26 * + + COUNT( * )
----
-1872

skipif mysql # not compatible
query I rowsort label-4046
SELECT + - 72 * 26 * + + COUNT ( * )
----
-1872

query I rowsort
SELECT ALL + - ( - 71 )
----
71

query I rowsort
SELECT + ( - - 61 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4049
SELECT - ( - ( + 51 ) ) * MAX( 71 ) + 4 DIV - 20 * - 44 AS col0
----
3621

skipif mysql # not compatible
query I rowsort label-4049
SELECT - ( - ( + 51 ) ) * MAX ( 71 ) + 4 / - 20 * - 44 AS col0
----
3621

query I rowsort
SELECT ALL + ( - - 41 ) col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT - ( CASE - + ( 93 ) WHEN 78 * - ( 17 ) THEN NULL ELSE ( + 25 ) END ) DIV + MIN( + 40 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4051
SELECT - ( CASE - + ( 93 ) WHEN 78 * - ( 17 ) THEN NULL ELSE ( + 25 ) END ) / + MIN ( + 40 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT + ( - + COUNT( * ) ) * + ( - 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4052
SELECT + ( - + COUNT ( * ) ) * + ( - 64 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT ALL COALESCE ( NULLIF ( - 41, + 33 ), - 82 - + 76 * 13 + + 47 * - 62 * + COUNT( * ), - - NULLIF ( - + COUNT( * ), 34 ) ) * - + 74 * - + 46 + + ( - + 88 ) * - + 49 + 72 AS col1
----
-135180

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL COALESCE ( NULLIF ( - 41, + 33 ), - 82 - + 76 * 13 + + 47 * - 62 * + COUNT ( * ), - - NULLIF ( - + COUNT ( * ), 34 ) ) * - + 74 * - + 46 + + ( - + 88 ) * - + 49 + 72 AS col1
----
-135180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4054
SELECT + 65 + + COUNT( * ) + - CAST( NULL AS SIGNED ) + + 37 + + - 37 * 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT + 65 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 37 + + - 37 * 27 AS col1
----
NULL

query I rowsort
SELECT - 70 - 15 AS col2
----
-85

query I rowsort
SELECT - 47 * - 42
----
1974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4057
SELECT NULLIF ( - + CAST( - 68 AS SIGNED ), 10 / - - 33 * - 56 + + COALESCE ( + - ( + 71 ), + NULLIF ( - 73, - COALESCE ( - + 55, + 19 ) ) + - 82 ) + 99 * 57 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4057
SELECT NULLIF ( - + CAST ( - 68 AS INTEGER ), 10 / - - 33 * - 56 + + COALESCE ( + - ( + 71 ), + NULLIF ( - 73, - COALESCE ( - + 55, + 19 ) ) + - 82 ) + 99 * 57 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT - 35 + + SUM( - 13 ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-4058
SELECT - 35 + + SUM ( - 13 ) col2
----
-48

query I rowsort
SELECT ALL CASE + 39 WHEN + 21 THEN + 74 / - 34 * + 70 + - 52 * - 75 WHEN + 25 THEN - 78 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT DISTINCT COUNT( * ) * + + 67 * + 99 * + 69 + + - 59 + + CAST( NULL AS SIGNED ) + + + COUNT( * ) * - COUNT( * ) * - - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT COUNT ( * ) * + + 67 * + 99 * + 69 + + - 59 + + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * - COUNT ( * ) * - - 55
----
NULL

query I rowsort
SELECT DISTINCT + 5 * 54 AS col2
----
270

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4062
SELECT ALL + - 83 * - - CAST( NULL AS DECIMAL ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + - 83 * - - CAST ( NULL AS REAL ) * 83
----
NULL

query I rowsort
SELECT - + 95 + - 52 + + + 50 * - 52 - COALESCE ( + - 35, + 56 - + - 18 * + 18 + + 41 ) * - 24 AS col2
----
-3587

query I rowsort
SELECT DISTINCT + 72 * - 25
----
-1800

query I rowsort
SELECT - 81 + + - 26 - + + 96 + - 16 AS col1
----
-219

query II rowsort
SELECT ALL 98 AS col2, - ( + 48 ) AS col1
----
98
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT - 95 + + COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4067
SELECT - 95 + + COUNT ( * ) AS col1
----
-94

query I rowsort
SELECT 45 * 48
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT COUNT( * ) + + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4069
SELECT COUNT ( * ) + + 37 AS col1
----
38

query I rowsort
SELECT - 52 * + - 89 AS col0
----
4628

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL 0 * + COUNT( * ) * - 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL 0 * + COUNT ( * ) * - 52 AS col2
----
0

query I rowsort
SELECT ALL + ( 39 ) col1
----
39

query II rowsort
SELECT ALL + 27, + 73 AS col0
----
27
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4074
SELECT DISTINCT - 29 DIV - MAX( 65 ) AS col2, + 46 * - - 91
----
0
4186

skipif mysql # not compatible
query II rowsort label-4074
SELECT DISTINCT - 29 / - MAX ( 65 ) AS col2, + 46 * - - 91
----
0
4186

query I rowsort
SELECT + 88 * 22 * - 91 + + 10 AS col1
----
-176166

onlyif mysql # aggregate syntax: 
query II rowsort label-4076
SELECT - 27 - - ( - COUNT( * ) ) AS col2, 18 * - 1 * + 9
----
-28
-162

skipif mysql # not compatible
query II rowsort label-4076
SELECT - 27 - - ( - COUNT ( * ) ) AS col2, 18 * - 1 * + 9
----
-28
-162

query I rowsort
SELECT ALL 71 * - ( + + 4 ) AS col1
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT MIN( 51 ) * 61 * 80 AS col2
----
248880

skipif mysql # not compatible
query I rowsort label-4078
SELECT MIN ( 51 ) * 61 * 80 AS col2
----
248880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 59 col2
----
NULL

query II rowsort
SELECT - 11 AS col2, 89 * + 16 + + 73 - + 68 col1
----
-11
1429

query I rowsort
SELECT ( - - 41 ) * - 31 AS col1
----
-1271

query I rowsort
SELECT ALL 1 + + 26
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4083
SELECT 60 AS col2, ( - MIN( CAST( 63 AS SIGNED ) ) ) + 66 + - - 35 + + 97 - - - 40 * - 72 + - 45 DIV 40 * + 48
----
60
2967

skipif mysql # not compatible
query II rowsort label-4083
SELECT 60 AS col2, ( - MIN ( CAST ( 63 AS INTEGER ) ) ) + 66 + - - 35 + + 97 - - - 40 * - 72 + - 45 / 40 * + 48
----
60
2967

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL + 53 * + + 15 * + COUNT( * ) * + COUNT( * ) * - 85
----
-67575

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL + 53 * + + 15 * + COUNT ( * ) * + COUNT ( * ) * - 85
----
-67575

query I rowsort
SELECT DISTINCT 31 + + ( ( + 60 ) ) col0
----
91

query I rowsort
SELECT ( - 23 ) * - 38
----
874

query I rowsort
SELECT ALL 65 + - + 84
----
-19

query I rowsort
SELECT 62 + ( - 95 ) AS col2
----
-33

query II rowsort
SELECT 60, - 75 AS col0
----
60
-75

query I rowsort
SELECT + 19 * + + 94 + 5 + + 95 + - + ( 95 )
----
1791

query I rowsort
SELECT 13 + - - 40
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4092
SELECT DISTINCT 53 + - COUNT( * ) DIV + 21 * - 4
----
53

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT 53 + - COUNT ( * ) / + 21 * - 4
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT 22 + + ( - CAST( + COUNT( DISTINCT - + 68 ) AS SIGNED ) ) + + 85 + + + COUNT( * ) + - 17
----
90

skipif mysql # not compatible
query I rowsort label-4093
SELECT 22 + + ( - CAST ( + COUNT ( DISTINCT - + 68 ) AS INTEGER ) ) + + 85 + + + COUNT ( * ) + - 17
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT DISTINCT - MIN( - - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT - MIN ( - - 43 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4095
SELECT DISTINCT - 35 AS col1, + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-35
1

skipif mysql # not compatible
query II rowsort label-4095
SELECT DISTINCT - 35 AS col1, + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-35
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT DISTINCT 17 - + - COALESCE ( + 66, 31, - 0 * + 53 + + - 32 ) + - ( - ( + + CAST( - 71 AS SIGNED ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT 17 - + - COALESCE ( + 66, 31, - 0 * + 53 + + - 32 ) + - ( - ( + + CAST ( - 71 AS INTEGER ) ) )
----
12

query II rowsort
SELECT DISTINCT 16 AS col2, - 98 AS col0
----
16
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT COUNT( * ) * + ( - - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT COUNT ( * ) * + ( - - 21 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4099
SELECT ALL - ( + 8 ) DIV + COALESCE ( + MIN( DISTINCT 17 ), + + 8 ) AS col1, 85 AS col1
----
0
85

skipif mysql # not compatible
query II rowsort label-4099
SELECT ALL - ( + 8 ) / + COALESCE ( + MIN ( DISTINCT 17 ), + + 8 ) AS col1, 85 AS col1
----
0
85

query I rowsort
SELECT - 87 * - 36 AS col0
----
3132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4101
SELECT ALL COUNT( * ) AS col0, - COALESCE ( - COUNT( * ), COUNT( * ), + MAX( 75 ) ) * 18 DIV CASE - 4 WHEN + - 3 THEN NULL WHEN + MIN( DISTINCT - 71 ) DIV + - 3 THEN - - 85 WHEN + 12 * 1 * - 65 THEN + COUNT( * ) * + COUNT( * ) + - + 58 + - 28 WHEN - - COALESCE ( - - 37, + 69 + + + 5 ) THEN NULL ELSE + ( - 8 ) * - COUNT( * ) + - 85 + + 37 END * - 85 * 41 + ( 93 )
----
1
93

skipif mysql # not compatible
query II rowsort label-4101
SELECT ALL COUNT ( * ) AS col0, - COALESCE ( - COUNT ( * ), COUNT ( * ), + MAX ( 75 ) ) * 18 / CASE - 4 WHEN + - 3 THEN NULL WHEN + MIN ( DISTINCT - 71 ) / + - 3 THEN - - 85 WHEN + 12 * 1 * - 65 THEN + COUNT ( * ) * + COUNT ( * ) + - + 58 + - 28 WHEN - - COALESCE ( - - 37, + 69 + + + 5 ) THEN NULL ELSE + ( - 8 ) * - COUNT ( * ) + - 85 + + 37 END * - 85 * 41 + ( 93 )
----
1
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4102
SELECT COUNT( * ), + MIN( DISTINCT - 30 ) - + 9 AS col2
----
1
-39

skipif mysql # not compatible
query II rowsort label-4102
SELECT COUNT ( * ), + MIN ( DISTINCT - 30 ) - + 9 AS col2
----
1
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT - - 81 AS col1, - SUM( - 59 ) AS col1
----
81
59

skipif mysql # not compatible
query II rowsort label-4103
SELECT - - 81 AS col1, - SUM ( - 59 ) AS col1
----
81
59

query II rowsort
SELECT 30, - NULLIF ( - + 95, - 41 ) * + 62 * 26 AS col2
----
30
153140

onlyif mysql # aggregate syntax: 
query II rowsort label-4105
SELECT 55 AS col1, - COUNT( * )
----
55
-1

skipif mysql # not compatible
query II rowsort label-4105
SELECT 55 AS col1, - COUNT ( * )
----
55
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4106
SELECT ALL 87 AS col0, - COUNT( * ) AS col2
----
87
-1

skipif mysql # not compatible
query II rowsort label-4106
SELECT ALL 87 AS col0, - COUNT ( * ) AS col2
----
87
-1

query II rowsort
SELECT ALL + 86 col1, - 81 AS col1
----
86
-81

query I rowsort
SELECT ALL - ( + - 13 ) col0
----
13

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4109
SELECT ALL + 28 * - + 32 * + + CAST( + 33 AS DECIMAL ) + + 22 - - ( - CAST( NULL AS SIGNED ) ) * ( 85 ) + + - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + 28 * - + 32 * + + CAST ( + 33 AS REAL ) + + 22 - - ( - CAST ( NULL AS INTEGER ) ) * ( 85 ) + + - 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT ( MIN( DISTINCT + - 77 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-4110
SELECT ( MIN ( DISTINCT + - 77 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT ALL + + 38 * + 25 + 83 * + MIN( DISTINCT - + 67 ) * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL + + 38 * + 25 + 83 * + MIN ( DISTINCT - + 67 ) * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - ( 21 ) * 43 + + - 71 + 25 col0
----
-949

query I rowsort
SELECT - 12 + - + 70
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL + MIN( + - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL + MIN ( + - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL - + MAX( - + 29 ) + + 92 - - 10 * 16 * + 1 * + 9 * - + COUNT( DISTINCT - 22 ) AS col0
----
-1319

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL - + MAX ( - + 29 ) + + 92 - - 10 * 16 * + 1 * + 9 * - + COUNT ( DISTINCT - 22 ) AS col0
----
-1319

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT + ( + 15 ) - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4116
SELECT + ( + 15 ) - COUNT ( * )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT + 34 DIV - 32 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4117
SELECT + 34 / - 32 AS col0
----
-1

query II rowsort
SELECT - 67 AS col1, - 43 AS col1
----
-67
-43

query I rowsort
SELECT ( + 47 ) * - + 13 AS col0
----
-611

query I rowsort
SELECT + 61 + + 5 * - 43 AS col2
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL 38 * + - ( + + 34 ) + - COUNT( * )
----
-1293

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL 38 * + - ( + + 34 ) + - COUNT ( * )
----
-1293

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4122
SELECT DISTINCT 47 * - - 82 + COUNT( * ) + + + 46 - 2 * + 33 DIV + COALESCE ( - + 1, - - 30 * - 86, + 32 ) AS col1
----
3967

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT 47 * - - 82 + COUNT ( * ) + + + 46 - 2 * + 33 / + COALESCE ( - + 1, - - 30 * - 86, + 32 ) AS col1
----
3967

query II rowsort
SELECT ALL - COALESCE ( + 97, + - 76 ) AS col0, 96 AS col0
----
-97
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4124
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * - COUNT( + - 53 ) + - + ( + + 52 ) + - COUNT( * ) * - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( + - 53 ) + - + ( + + 52 ) + - COUNT ( * ) * - + 60
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT DISTINCT 3 * - 91 + + NULLIF ( + COALESCE ( + COALESCE ( + 77, - 48 ), COUNT( * ) + + COALESCE ( - 74, - - 97 DIV - - 11 DIV + COALESCE ( + ( 71 ), 31 + + - ( - + 30 ), + - ( + ( + + 49 ) ) ) DIV 89 + MIN( ALL + + 56 ) + 66 ), + COUNT( ALL + 0 ) - + 0 + + 56 * 8 ), - 74 + - 23 * - ( + 58 ) + + COUNT( * ) + - 34 - - - 58 * - CASE 38 * - 77 WHEN + 62 DIV 79 THEN NULL ELSE - NULLIF ( 46, 18 ) END ) DIV 36
----
-271

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT 3 * - 91 + + NULLIF ( + COALESCE ( + COALESCE ( + 77, - 48 ), COUNT ( * ) + + COALESCE ( - 74, - - 97 / - - 11 / + COALESCE ( + ( 71 ), 31 + + - ( - + 30 ), + - ( + ( + + 49 ) ) ) / 89 + MIN ( ALL + + 56 ) + 66 ), + COUNT ( ALL + 0 ) - + 0 + + 56 * 8 ), - 74 + - 23 * - ( + 58 ) + + COUNT ( * ) + - 34 - - - 58 * - CASE 38 * - 77 WHEN + 62 / 79 THEN NULL ELSE - NULLIF ( 46, 18 ) END ) / 36
----
-271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT CAST( NULL AS SIGNED ) + - 83 + - ( + 7 ) * - - 92 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT CAST ( NULL AS INTEGER ) + - 83 + - ( + 7 ) * - - 92 * + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL COALESCE ( - - 68, - COUNT( - 5 ) + + 4 + - - 48 ) * 34 * 70 + ( - + 7 ) * + + 15 AS col1
----
161735

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL COALESCE ( - - 68, - COUNT ( - 5 ) + + 4 + - - 48 ) * 34 * 70 + ( - + 7 ) * + + 15 AS col1
----
161735

query I rowsort
SELECT DISTINCT - 5 * + + 99
----
-495

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4129
SELECT DISTINCT + 51 - 27 - 4 * + COUNT( * ) + + 97 + - - 53 DIV + 8, 72 + + + COUNT( * ) col1
----
123
73

skipif mysql # not compatible
query II rowsort label-4129
SELECT DISTINCT + 51 - 27 - 4 * + COUNT ( * ) + + 97 + - - 53 / + 8, 72 + + + COUNT ( * ) col1
----
123
73

query I rowsort
SELECT DISTINCT 99 - - COALESCE ( + + 17, + 72, 49 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT - 34 * COUNT( * ) * - 29
----
986

skipif mysql # not compatible
query I rowsort label-4131
SELECT - 34 * COUNT ( * ) * - 29
----
986

query I rowsort
SELECT DISTINCT 63 - + - 40 col2
----
103

query I rowsort
SELECT DISTINCT - ( - 93 )
----
93

query I rowsort
SELECT DISTINCT - 90 * - + 99 col1
----
8910

onlyif mysql # aggregate syntax: 
query II rowsort label-4135
SELECT DISTINCT - 79 * 15 AS col0, - COUNT( * ) * 58
----
-1185
-58

skipif mysql # not compatible
query II rowsort label-4135
SELECT DISTINCT - 79 * 15 AS col0, - COUNT ( * ) * 58
----
-1185
-58

query I rowsort
SELECT + 43 + - 94 AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT - + CAST( 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-4137
SELECT - + CAST ( 62 AS INTEGER )
----
-62

query I rowsort
SELECT ALL - 96 + + - 25 AS col0
----
-121

query I rowsort
SELECT + + 16 * + 18 * 69 AS col2
----
19872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT - + CAST( NULL AS SIGNED ) + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT - + CAST ( NULL AS INTEGER ) + + 3
----
NULL

query I rowsort
SELECT DISTINCT + 77 + - 55 - - - 44 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL - 55 + NULLIF ( 44, COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL - 55 + NULLIF ( 44, COUNT ( * ) )
----
-11

query I rowsort
SELECT - 59 * - + 87
----
5133

query I rowsort
SELECT ALL 29 + - - 58
----
87

query II rowsort
SELECT - 76 col2, 99
----
-76
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT MAX( DISTINCT 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT MAX ( DISTINCT 66 ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4147
SELECT ALL - 99 + CAST( NULL AS DECIMAL ) + + MAX( DISTINCT + 76 ) + - - CASE CAST( - 12 AS SIGNED ) WHEN - - CAST( + 37 AS DECIMAL ) - - 12 THEN 14 / + 72 WHEN - 19 * - - 54 + + 64 THEN NULL ELSE - + 42 + - 36 END * + + 94 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - 99 + CAST ( NULL AS REAL ) + + MAX ( DISTINCT + 76 ) + - - CASE CAST ( - 12 AS INTEGER ) WHEN - - CAST ( + 37 AS REAL ) - - 12 THEN 14 / + 72 WHEN - 19 * - - 54 + + 64 THEN NULL ELSE - + 42 + - 36 END * + + 94 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4148
SELECT + 48 - ( 73 ) * + ( 39 ) * + 59 * + 60 * - COUNT( * ) AS col2, CAST( NULL AS SIGNED )
----
10078428
NULL

skipif mysql # not compatible
query II rowsort label-4148
SELECT + 48 - ( 73 ) * + ( 39 ) * + 59 * + 60 * - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER )
----
10078428
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT ALL + NULLIF ( 70, - 4 * - - CAST( NULL AS SIGNED ) + - 55 )
----
70

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + NULLIF ( 70, - 4 * - - CAST ( NULL AS INTEGER ) + - 55 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - 48 + + COALESCE ( + SUM( - + 55 ), ( + 67 ), 43 )
----
-103

skipif mysql # not compatible
query I rowsort label-4150
SELECT - 48 + + COALESCE ( + SUM ( - + 55 ), ( + 67 ), 43 )
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-4151
SELECT - 6 DIV 3 col1
----
-2

skipif mysql # not compatible
query I rowsort label-4151
SELECT - 6 / 3 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT - COUNT( * ) * 27 * + COUNT( * ) * - MIN( ALL 14 ) * + 80
----
30240

skipif mysql # not compatible
query I rowsort label-4152
SELECT - COUNT ( * ) * 27 * + COUNT ( * ) * - MIN ( ALL 14 ) * + 80
----
30240

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ( MIN( ALL 50 ) )
----
50

skipif mysql # not compatible
query I rowsort label-4153
SELECT ( MIN ( ALL 50 ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL + MAX( ALL + + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL + MAX ( ALL + + 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT - 12 + - 60 * - + COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4155
SELECT - 12 + - 60 * - + COUNT ( * ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4156
SELECT - 88 * + - 11 * 49 AS col1, - MAX( ALL - 32 )
----
47432
32

skipif mysql # not compatible
query II rowsort label-4156
SELECT - 88 * + - 11 * 49 AS col1, - MAX ( ALL - 32 )
----
47432
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT NULLIF ( 88, + 44 ) * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT NULLIF ( 88, + 44 ) * - COUNT ( * )
----
-88

query II rowsort
SELECT ALL + 86 AS col1, - 45 + - 98 AS col2
----
86
-143

query II rowsort
SELECT ALL + 57 col1, - 11 AS col2
----
57
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4160
SELECT + 40 DIV + + 58
----
0

skipif mysql # not compatible
query I rowsort label-4160
SELECT + 40 / + + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT - 52 * - 11 * + - MAX( 6 )
----
-3432

skipif mysql # not compatible
query I rowsort label-4161
SELECT - 52 * - 11 * + - MAX ( 6 )
----
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT DISTINCT + NULLIF ( - ( 75 ), + 40 ) * + 21 + - - COUNT( * )
----
-1574

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT + NULLIF ( - ( 75 ), + 40 ) * + 21 + - - COUNT ( * )
----
-1574

query I rowsort
SELECT ALL - 65 * + 73 AS col0
----
-4745

query I rowsort
SELECT + 34 + + 64
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4165
SELECT DISTINCT - 94 * 25 * + 74 * + + 36 - - + 34 / - CAST( NULL AS SIGNED ) + 55 - + - 69 AS col0, + 4
----
NULL
4

skipif mysql # not compatible
query II rowsort label-4165
SELECT DISTINCT - 94 * 25 * + 74 * + + 36 - - + 34 / - CAST ( NULL AS INTEGER ) + 55 - + - 69 AS col0, + 4
----
NULL
4

query I rowsort
SELECT DISTINCT - - CASE - - 71 WHEN 62 THEN + + 47 + + 9 END * - 48 * + 54
----
NULL

query II rowsort
SELECT ALL + 0, 62 AS col1
----
0
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT ALL - CAST( - + 29 AS SIGNED ) * 6 - 74
----
100

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL - CAST ( - + 29 AS INTEGER ) * 6 - 74
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-4169
SELECT DISTINCT - - 58 * + + 77 + + + 66, + COUNT( ALL + 60 ) * + 45 + - 15 + + 9 * 14 * - + 0 col0
----
4532
30

skipif mysql # not compatible
query II rowsort label-4169
SELECT DISTINCT - - 58 * + + 77 + + + 66, + COUNT ( ALL + 60 ) * + 45 + - 15 + + 9 * 14 * - + 0 col0
----
4532
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT ALL + CAST( + 86 AS SIGNED ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL + CAST ( + 86 AS INTEGER ) AS col0
----
86

query I rowsort
SELECT + - 6 * + 11
----
-66

query II rowsort
SELECT ALL + 20 * + + 85 + + + 70 + 75 col2, NULLIF ( 40, - - 21 )
----
1845
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT 95 * + + MAX( DISTINCT + 51 ) / + - CASE + 6 WHEN + - 6 THEN - - 69 END - SUM( + + 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4173
SELECT 95 * + + MAX ( DISTINCT + 51 ) / + - CASE + 6 WHEN + - 6 THEN - - 69 END - SUM ( + + 56 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4174
SELECT - + 66 AS col0, - 77 DIV - 75
----
-66
1

skipif mysql # not compatible
query II rowsort label-4174
SELECT - + 66 AS col0, - 77 / - 75
----
-66
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4175
SELECT ALL - 50 DIV - 95 + - 61 - - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL - 50 / - 95 + - 61 - - COUNT ( * )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4176
SELECT + 7 DIV 52 * 57 + - 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4176
SELECT + 7 / 52 * 57 + - 36 AS col1
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-4177
SELECT ALL - 18 AS col2, 8 DIV - 18
----
-18
0

skipif mysql # not compatible
query II rowsort label-4177
SELECT ALL - 18 AS col2, 8 / - 18
----
-18
0

query I rowsort
SELECT DISTINCT + 17 * - 75 AS col0
----
-1275

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT + - 54 - + 87 * COUNT( ALL + 74 ) AS col1
----
-141

skipif mysql # not compatible
query I rowsort label-4179
SELECT + - 54 - + 87 * COUNT ( ALL + 74 ) AS col1
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4180
SELECT + 35, + CAST( NULL AS SIGNED ) AS col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-4180
SELECT + 35, + CAST ( NULL AS INTEGER ) AS col1
----
35
NULL

query I rowsort
SELECT + + 79 - 61 + + 99 * CASE - + 6 WHEN - 51 THEN + 9 END - + COALESCE ( + + ( - - 95 ), + 91 )
----
NULL

query I rowsort
SELECT ALL + 73 + 53 AS col2
----
126

query I rowsort
SELECT DISTINCT 22 * + + 94
----
2068

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL - ( - 98 ) + ( - 55 ) + MAX( DISTINCT + ( + 0 ) )
----
43

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - ( - 98 ) + ( - 55 ) + MAX ( DISTINCT + ( + 0 ) )
----
43

query I rowsort
SELECT ALL 43 + 50 * - + 60
----
-2957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT + CAST( + 61 AS SIGNED ) * + 11 col2
----
671

skipif mysql # not compatible
query I rowsort label-4186
SELECT + CAST ( + 61 AS INTEGER ) * + 11 col2
----
671

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT - 30 - - - COUNT( * ) + - 96
----
-127

skipif mysql # not compatible
query I rowsort label-4187
SELECT - 30 - - - COUNT ( * ) + - 96
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4188
SELECT DISTINCT MIN( ALL + CAST( NULL AS SIGNED ) ), 97 + - 23 col1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-4188
SELECT DISTINCT MIN ( ALL + CAST ( NULL AS INTEGER ) ), 97 + - 23 col1
----
NULL
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT - 7 - - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-4189
SELECT - 7 - - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL COALESCE ( + + 26, + COUNT( * ) ) col1
----
26

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL COALESCE ( + + 26, + COUNT ( * ) ) col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT + MAX( DISTINCT 6 ) + 65 col2
----
71

skipif mysql # not compatible
query I rowsort label-4191
SELECT + MAX ( DISTINCT 6 ) + 65 col2
----
71

query I rowsort
SELECT - 71 + - - 27 * 7 * - - 68 + 7 AS col1
----
12788

query I rowsort
SELECT ALL + ( - 14 ) AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4194
SELECT 16 + + CASE + NULLIF ( 76, + 36 + 31 * - + COUNT( * ) ) WHEN - SUM( ALL + CAST( + 30 AS SIGNED ) ) THEN NULL WHEN + 66 * + + 94 + - 95 * + - 75 * NULLIF ( + 29, - - 31 ) THEN 37 * + 36 + - ( + 76 ) / - COUNT( * ) WHEN 32 + + 40 THEN 91 ELSE NULL END - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT 16 + + CASE + NULLIF ( 76, + 36 + 31 * - + COUNT ( * ) ) WHEN - SUM ( ALL + CAST ( + 30 AS INTEGER ) ) THEN NULL WHEN + 66 * + + 94 + - 95 * + - 75 * NULLIF ( + 29, - - 31 ) THEN 37 * + 36 + - ( + 76 ) / - COUNT ( * ) WHEN 32 + + 40 THEN 91 ELSE NULL END - 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4195
SELECT ALL + COALESCE ( - 41, + - 7, + 49 + - 13 ) * + 52 * + 15 AS col0, + 40 + 0 - - + SUM( + 6 ) * - + NULLIF ( - MIN( DISTINCT + 79 ), - + 87 * + 97 - 28 )
----
-31980
514

skipif mysql # not compatible
query II rowsort label-4195
SELECT ALL + COALESCE ( - 41, + - 7, + 49 + - 13 ) * + 52 * + 15 AS col0, + 40 + 0 - - + SUM ( + 6 ) * - + NULLIF ( - MIN ( DISTINCT + 79 ), - + 87 * + 97 - 28 )
----
-31980
514

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL SUM( + + 93 ) * ( 73 ) AS col0
----
6789

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL SUM ( + + 93 ) * ( 73 ) AS col0
----
6789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4197
SELECT - 12 / 33 + + 1 + - 81 * + 80 * - 52 * + 68 + 82 * + CAST( NULL AS SIGNED ) * + 8 + + + SUM( DISTINCT - 87 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT - 12 / 33 + + 1 + - 81 * + 80 * - 52 * + 68 + 82 * + CAST ( NULL AS INTEGER ) * + 8 + + + SUM ( DISTINCT - 87 ) AS col1
----
NULL

query I rowsort
SELECT 47 * 66
----
3102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4199
SELECT - CAST( NULL AS SIGNED ) * + 82 * + + ( - 63 ) + + CASE + 99 WHEN - + COUNT( * ) THEN + 63 * + 14 * + COUNT( * ) + COUNT( * ) + 48 - + + AVG ( - 65 ) + 98 / - NULLIF ( ( + - 85 ), + 60 ) / 29 / + 21 * + 24 * + 48 / + 4 END + - - 77 AS col1, - 60
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-4199
SELECT - CAST ( NULL AS INTEGER ) * + 82 * + + ( - 63 ) + + CASE + 99 WHEN - + COUNT ( * ) THEN + 63 * + 14 * + COUNT ( * ) + COUNT ( * ) + 48 - + + AVG ( - 65 ) + 98 / - NULLIF ( ( + - 85 ), + 60 ) / 29 / + 21 * + 24 * + 48 / + 4 END + - - 77 AS col1, - 60
----
NULL
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4200
SELECT DISTINCT + + 99 DIV - 52 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT + + 99 / - 52 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4201
SELECT DISTINCT + ( + COUNT( * ) ) + + 62 DIV + ( + 73 ) * - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT + ( + COUNT ( * ) ) + + 62 / + ( + 73 ) * - + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL - 4 + + 10
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4203
SELECT ( 47 ) / + - 9 + CASE - - COUNT( * ) WHEN - + 55 * - MIN( - 39 ) + + 32 THEN - CAST( NULL AS DECIMAL ) END * - ( 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT ( 47 ) / + - 9 + CASE - - COUNT ( * ) WHEN - + 55 * - MIN ( - 39 ) + + 32 THEN - CAST ( NULL AS REAL ) END * - ( 45 )
----
NULL

query I rowsort
SELECT ALL + - 32 + 64 + - 0 + + 72 * + + 10 * + - ( + 75 ) AS col1
----
-53968

query I rowsort
SELECT 65 * + 54 - - 73
----
3583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4206
SELECT COUNT( * ) * 69 + + ( - 31 ) col2, CAST( NULL AS SIGNED )
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4206
SELECT COUNT ( * ) * 69 + + ( - 31 ) col2, CAST ( NULL AS INTEGER )
----
38
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT DISTINCT - - 19 + + 65 / + - CAST( NULL AS SIGNED ) / + 42 * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - - 19 + + 65 / + - CAST ( NULL AS INTEGER ) / + 42 * + 14
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 71, + 40 ) AS col1
----
71

query I rowsort
SELECT ALL + - ( 15 ) * 66
----
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-4210
SELECT + 28 + ( + SUM( - 11 ) ), - 56 col2
----
17
-56

skipif mysql # not compatible
query II rowsort label-4210
SELECT + 28 + ( + SUM ( - 11 ) ), - 56 col2
----
17
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL + + 77 * 66 * - 31 - COUNT( * ) AS col1
----
-157543

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + + 77 * 66 * - 31 - COUNT ( * ) AS col1
----
-157543

query I rowsort
SELECT ALL + COALESCE ( - 58, - 55 ) col1
----
-58

query I rowsort
SELECT ALL + + 52 - - + 42
----
94

query I rowsort
SELECT 84 * - - 9
----
756

query I rowsort
SELECT - ( + 68 ) AS col1
----
-68

query I rowsort
SELECT DISTINCT + + 2 - - + 94 col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL - MAX( + ( + 53 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL - MAX ( + ( + 53 ) )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4218
SELECT ALL COUNT( * ) DIV + + MIN( DISTINCT 84 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL COUNT ( * ) / + + MIN ( DISTINCT 84 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT DISTINCT MIN( DISTINCT 46 ) * + 59
----
2714

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT MIN ( DISTINCT 46 ) * + 59
----
2714

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT ALL + 64 DIV - 23 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL + 64 / - 23 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4221
SELECT DISTINCT 88 AS col1, COALESCE ( - - 43, - + CASE + 88 WHEN + 77 THEN - + ( + 15 ) * - - 82 + - 34 * - + 10 + - - CASE - - 13 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN COALESCE ( - 12, + 25, - NULLIF ( - CAST( NULL AS SIGNED ), + CASE CAST( NULL AS SIGNED ) WHEN + 33 THEN NULL WHEN - COUNT( * ) / 16 THEN COALESCE ( - 92, CAST( - - 49 AS SIGNED ), ( - 64 ), 88 + + 33 / COUNT( * ) ) - AVG ( DISTINCT - 6 ) / CASE + 85 WHEN + 11 + - - ( 64 ) * 43 THEN - MIN( ALL + 43 ) END END ) ) + - ( - ( - 66 ) ) * 45 THEN NULL WHEN 86 + 49 THEN NULL ELSE + 90 END END * - 39 ) AS col2
----
88
43

skipif mysql # not compatible
query II rowsort label-4221
SELECT DISTINCT 88 AS col1, COALESCE ( - - 43, - + CASE + 88 WHEN + 77 THEN - + ( + 15 ) * - - 82 + - 34 * - + 10 + - - CASE - - 13 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN COALESCE ( - 12, + 25, - NULLIF ( - CAST ( NULL AS INTEGER ), + CASE CAST ( NULL AS INTEGER ) WHEN + 33 THEN NULL WHEN - COUNT ( * ) / 16 THEN COALESCE ( - 92, CAST ( - - 49 AS INTEGER ), ( - 64 ), 88 + + 33 / COUNT ( * ) ) - AVG ( DISTINCT - 6 ) / CASE + 85 WHEN + 11 + - - ( 64 ) * 43 THEN - MIN ( ALL + 43 ) END END ) ) + - ( - ( - 66 ) ) * 45 THEN NULL WHEN 86 + 49 THEN NULL ELSE + 90 END END * - 39 ) AS col2
----
88
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT DISTINCT COUNT( * ) * - NULLIF ( - 34, + 9 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT COUNT ( * ) * - NULLIF ( - 34, + 9 ) AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4223
SELECT CAST( NULL AS SIGNED ) / + CAST( + + 19 AS SIGNED ), + CASE 29 WHEN 95 THEN + 75 * - ( + 3 ) ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4223
SELECT CAST ( NULL AS INTEGER ) / + CAST ( + + 19 AS INTEGER ), + CASE 29 WHEN 95 THEN + 75 * - ( + 3 ) ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT 96 - - 9
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT ALL 23 DIV + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL 23 / + 59 AS col1
----
0

query II rowsort
SELECT 47 + - ( - 45 ) AS col2, 35
----
92
35

query I rowsort
SELECT ALL ( + 73 ) + - + 50 AS col2
----
23

query I rowsort
SELECT ALL + + 96 * + 14 + + - NULLIF ( - 28, - COALESCE ( - + 74, + 85 ) * - 44 - - ( + + 62 ) ) * 69 AS col0
----
3276

query I rowsort
SELECT - 96 * - 0 - + 74 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ALL ( COUNT( * ) ) + ( + COUNT( * ) ) - - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL ( COUNT ( * ) ) + ( + COUNT ( * ) ) - - COUNT ( * ) AS col1
----
3

query I rowsort
SELECT ALL 70 + + 12 AS col0
----
82

query I rowsort
SELECT DISTINCT 84 + + - 86 col2
----
-2

query I rowsort
SELECT - CASE - + ( + - AVG ( - + 10 ) ) WHEN - 81 THEN + 18 ELSE NULL END + + 14 + 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4234
SELECT ALL + + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT + 62 * + - 14 * 47 AS col1, 20
----
-40796
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + - ( - 6 ) * + - 71 * COALESCE ( + 87, - - 0, + 65 * + ( + + ( + 72 ) ) ) + - - MIN( 88 )
----
-36974

skipif mysql # not compatible
query I rowsort label-4236
SELECT + - ( - 6 ) * + - 71 * COALESCE ( + 87, - - 0, + 65 * + ( + + ( + 72 ) ) ) + - - MIN ( 88 )
----
-36974

query I rowsort
SELECT + - ( ( - + 82 ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL + 17 + - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL + 17 + - COUNT ( * )
----
16

query II rowsort
SELECT 29 * - + 55 + + + 29 AS col0, + 8
----
-1566
8

query I rowsort
SELECT DISTINCT - + 77 AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4241
SELECT DISTINCT + + 50 - - COUNT( * ) - - 31 + ( - - COUNT( * ) ) * 51 DIV NULLIF ( - COUNT( * ), - + 67 ) * + 25, + 74 + + 86 AS col2
----
-1193
160

skipif mysql # not compatible
query II rowsort label-4241
SELECT DISTINCT + + 50 - - COUNT ( * ) - - 31 + ( - - COUNT ( * ) ) * 51 / NULLIF ( - COUNT ( * ), - + 67 ) * + 25, + 74 + + 86 AS col2
----
-1193
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT + + 24 * - ( - 40 ) + - COUNT( * ) AS col2
----
959

skipif mysql # not compatible
query I rowsort label-4242
SELECT + + 24 * - ( - 40 ) + - COUNT ( * ) AS col2
----
959

query II rowsort
SELECT DISTINCT + 42, 5 - + 84 AS col2
----
42
-79

query I rowsort
SELECT ALL - 7 * 71 - 83 * + 77 AS col0
----
-6888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4245
SELECT - CASE + CAST( 10 AS DECIMAL ) WHEN - ( + + CASE - - 53 WHEN - COUNT( * ) + + ( COUNT( ALL - 64 ) ) + + 27 + + - 55 THEN - 54 ELSE NULL END ) * - 69 / COALESCE ( 2, - COALESCE ( 72, - 55 ) * ( + 88 ) / 6 + - MAX( + 0 ) + 30, - 2, 50 ) THEN - 10 WHEN 92 THEN COUNT( * ) * CAST( + 63 AS SIGNED ) + + 7 WHEN + 83 + - 32 * - + AVG ( ALL + - CAST( NULL AS SIGNED ) ) THEN 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT - CASE + CAST ( 10 AS REAL ) WHEN - ( + + CASE - - 53 WHEN - COUNT ( * ) + + ( COUNT ( ALL - 64 ) ) + + 27 + + - 55 THEN - 54 ELSE NULL END ) * - 69 / COALESCE ( 2, - COALESCE ( 72, - 55 ) * ( + 88 ) / 6 + - MAX ( + 0 ) + 30, - 2, 50 ) THEN - 10 WHEN 92 THEN COUNT ( * ) * CAST ( + 63 AS INTEGER ) + + 7 WHEN + 83 + - 32 * - + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) THEN 20 END AS col0
----
NULL

query I rowsort
SELECT ALL + - 49 * + CASE - 45 WHEN - 84 THEN - 32 ELSE NULL END + + 19 AS col2
----
NULL

query II rowsort
SELECT ALL + 68 * - + NULLIF ( - 5, + 41 ) AS col1, - 51 AS col2
----
340
-51

query I rowsort
SELECT 87 * 38
----
3306

query II rowsort
SELECT - 23 col2, + 21 * - - 95 AS col0
----
-23
1995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4250
SELECT COUNT( * ) + 57 AS col0, - COUNT( * ) + 8 + + 30 + + 17 * ( - + CAST( NULL AS SIGNED ) ) / + 28 + - 32 col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-4250
SELECT COUNT ( * ) + 57 AS col0, - COUNT ( * ) + 8 + + 30 + + 17 * ( - + CAST ( NULL AS INTEGER ) ) / + 28 + - 32 col1
----
58
NULL

query II rowsort
SELECT ALL 83 AS col1, 69
----
83
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4252
SELECT ALL 34 AS col0, COUNT( * ) + + 42 * - - 8 AS col0
----
34
337

skipif mysql # not compatible
query II rowsort label-4252
SELECT ALL 34 AS col0, COUNT ( * ) + + 42 * - - 8 AS col0
----
34
337

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT ALL COUNT( * ) AS col0, + 89 AS col1
----
1
89

skipif mysql # not compatible
query II rowsort label-4253
SELECT ALL COUNT ( * ) AS col0, + 89 AS col1
----
1
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4254
SELECT DISTINCT CASE - COUNT( * ) WHEN - 41 THEN + 11 WHEN CAST( - 56 AS SIGNED ) / - ( 67 ) + + ( ( - 46 ) ) THEN - 43 * - 68 - 91 * - - ( - + 89 ) ELSE - ( 9 ) * + 19 / COALESCE ( + 79, 85 - - - 77 * - - 34 ) + COUNT( * ) + - 97 + - 34 + - + 43 - 42 + CASE - - COUNT( * ) WHEN 95 THEN + - CAST( - COALESCE ( + COUNT( DISTINCT - - 9 ), COALESCE ( 18, COUNT( * ) ) * 6 + CAST( NULL AS SIGNED ) * + 43, 97, 23 + + COUNT( * ) / CAST( COUNT( DISTINCT 56 ) * 77 + + 81 AS SIGNED ) ) AS SIGNED ) + - 58 END / - 32 * - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT CASE - COUNT ( * ) WHEN - 41 THEN + 11 WHEN CAST ( - 56 AS INTEGER ) / - ( 67 ) + + ( ( - 46 ) ) THEN - 43 * - 68 - 91 * - - ( - + 89 ) ELSE - ( 9 ) * + 19 / COALESCE ( + 79, 85 - - - 77 * - - 34 ) + COUNT ( * ) + - 97 + - 34 + - + 43 - 42 + CASE - - COUNT ( * ) WHEN 95 THEN + - CAST ( - COALESCE ( + COUNT ( DISTINCT - - 9 ), COALESCE ( 18, COUNT ( * ) ) * 6 + CAST ( NULL AS INTEGER ) * + 43, 97, 23 + + COUNT ( * ) / CAST ( COUNT ( DISTINCT 56 ) * 77 + + 81 AS INTEGER ) ) AS INTEGER ) + - 58 END / - 32 * - 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT + 24 * - - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4255
SELECT + 24 * - - COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - MAX( - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-4256
SELECT - MAX ( - 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL CASE - 27 WHEN + + 87 + - COUNT( * ) * + - COUNT( + - 7 ) THEN + 57 WHEN + + 61 - - + 17 THEN - 94 / - CASE 97 WHEN + 69 + + 1 THEN + COUNT( * ) ELSE NULL END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL CASE - 27 WHEN + + 87 + - COUNT ( * ) * + - COUNT ( + - 7 ) THEN + 57 WHEN + + 61 - - + 17 THEN - 94 / - CASE 97 WHEN + 69 + + 1 THEN + COUNT ( * ) ELSE NULL END ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 12 + - 70 AS col2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT DISTINCT 82 DIV 39 * - 72 AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT 82 / 39 * - 72 AS col2
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT + 94 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT + 94 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT ALL 99 * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL 99 * COUNT ( * )
----
99

query I rowsort
SELECT + 81 + 45 AS col2
----
126

query I rowsort
SELECT DISTINCT - 73 * - + 53 + + 43
----
3912

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT - COUNT( + NULLIF ( + + 77, 69 ) ) * 48 - + 59 + 7 + - ( SUM( ALL - + 40 ) ) * - 92 * + - 10
----
36700

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT - COUNT ( + NULLIF ( + + 77, 69 ) ) * 48 - + 59 + 7 + - ( SUM ( ALL - + 40 ) ) * - 92 * + - 10
----
36700

onlyif mysql # aggregate syntax: 
query II rowsort label-4265
SELECT + COUNT( * ), 54 - + 88 AS col1
----
1
-34

skipif mysql # not compatible
query II rowsort label-4265
SELECT + COUNT ( * ), 54 - + 88 AS col1
----
1
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4266
SELECT ALL + ( + - 79 ) * + + ( CAST( + ( 98 ) AS SIGNED ) ) * - COUNT( * ) + + 49 - COUNT( * ) + 58 DIV - 74 + - 29 * - 66 - 18 AS col0
----
9686

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + ( + - 79 ) * + + ( CAST ( + ( 98 ) AS INTEGER ) ) * - COUNT ( * ) + + 49 - COUNT ( * ) + 58 / - 74 + - 29 * - 66 - 18 AS col0
----
9686

query I rowsort
SELECT DISTINCT 98 * + 89
----
8722

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT - 38 * NULLIF ( 92, + ( + - COUNT( * ) ) ) + - 72 AS col2
----
-3568

skipif mysql # not compatible
query I rowsort label-4268
SELECT - 38 * NULLIF ( 92, + ( + - COUNT ( * ) ) ) + - 72 AS col2
----
-3568

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT + 56 DIV + 70 + - - 12
----
12

skipif mysql # not compatible
query I rowsort label-4269
SELECT + 56 / + 70 + - - 12
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4270
SELECT + + 2 DIV ( - 24 )
----
0

skipif mysql # not compatible
query I rowsort label-4270
SELECT + + 2 / ( - 24 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT DISTINCT 95 DIV - 23 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT 95 / - 23 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT ALL 89 * + 5 * - ( + CASE - COUNT( * ) WHEN COUNT( * ) / - 7 THEN 1 * - - 58 + + 74 WHEN - 65 THEN COALESCE ( - 61, - 10 - - COUNT( * ), - 97 * + 57, - 80 / + 88 + + CAST( NULL AS SIGNED ) ) * ( - - 63 ) ELSE NULL END ) + 93 + 20 - + + 24 * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL 89 * + 5 * - ( + CASE - COUNT ( * ) WHEN COUNT ( * ) / - 7 THEN 1 * - - 58 + + 74 WHEN - 65 THEN COALESCE ( - 61, - 10 - - COUNT ( * ), - 97 * + 57, - 80 / + 88 + + CAST ( NULL AS INTEGER ) ) * ( - - 63 ) ELSE NULL END ) + 93 + 20 - + + 24 * 15
----
NULL

query II rowsort
SELECT + 52 AS col2, - 65 * 7 AS col2
----
52
-455

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4274
SELECT + ( - 18 ) * + 41 + - - CAST( CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT + ( - 18 ) * + 41 + - - CAST ( CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query II rowsort
SELECT ALL + 47, 71 AS col1
----
47
71

query II rowsort
SELECT + 54 * 92 AS col2, 72 + 25 * 69 AS col1
----
4968
1797

query I rowsort
SELECT + + 6 + - 70 * - - 61 * - + 19 * 46 * + 52 AS col0
----
194062966

query II rowsort
SELECT - + 0 - + - 23 col2, 13
----
23
13

query I rowsort
SELECT DISTINCT 2 * + 79 + + 2
----
160

onlyif mysql # DIV for integer division: 
query II rowsort label-4280
SELECT + ( - 91 ) AS col0, 96 DIV + 97 * + ( + 74 ) AS col2
----
-91
0

skipif mysql # not compatible
query II rowsort label-4280
SELECT + ( - 91 ) AS col0, 96 / + 97 * + ( + 74 ) AS col2
----
-91
0

query I rowsort
SELECT - - 25 + + ( - 58 ) AS col1
----
-33

query I rowsort
SELECT + + 56 * NULLIF ( - 99, + 9 ) AS col2
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT + CASE 7 WHEN - + COUNT( * ) * + COUNT( * ) THEN 98 - - 46 WHEN + 16 - + NULLIF ( + - 92, - + 52 + - 55 + - - 71 + - 7 ) THEN NULL END + + 62 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT + CASE 7 WHEN - + COUNT ( * ) * + COUNT ( * ) THEN 98 - - 46 WHEN + 16 - + NULLIF ( + - 92, - + 52 + - 55 + - - 71 + - 7 ) THEN NULL END + + 62 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT 68 * + COUNT( * ) * 82
----
5576

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT 68 * + COUNT ( * ) * 82
----
5576

query II rowsort
SELECT ALL - 5 AS col2, + 71 + + ( - 21 ) col0
----
-5
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT - ( NULLIF ( COUNT( * ), 91 * - - MIN( DISTINCT + 17 ) + - - 41 * + 30 * - 49 * ( - + 42 ) * + 58 + - 75 ) ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4286
SELECT - ( NULLIF ( COUNT ( * ), 91 * - - MIN ( DISTINCT + 17 ) + - - 41 * + 30 * - 49 * ( - + 42 ) * + 58 + - 75 ) ) + + COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4287
SELECT - 54 DIV - 33 AS col0, - 96
----
1
-96

skipif mysql # not compatible
query II rowsort label-4287
SELECT - 54 / - 33 AS col0, - 96
----
1
-96

query II rowsort
SELECT - 72 + - - 83 AS col2, 13 + - 13 col0
----
11
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4289
SELECT ALL ( ( + CASE - 42 WHEN 64 THEN NULL WHEN - 30 THEN + + CAST( + COUNT( * ) AS SIGNED ) WHEN - 49 * - 69 * - 32 * - 21 THEN - - NULLIF ( 23, + ( - + 49 ) ) END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL ( ( + CASE - 42 WHEN 64 THEN NULL WHEN - 30 THEN + + CAST ( + COUNT ( * ) AS INTEGER ) WHEN - 49 * - 69 * - 32 * - 21 THEN - - NULLIF ( 23, + ( - + 49 ) ) END ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT - 45 * + 67 + SUM( + 58 ) + 92 - - + 42 * - 70 AS col2
----
-5805

skipif mysql # not compatible
query I rowsort label-4290
SELECT - 45 * + 67 + SUM ( + 58 ) + 92 - - + 42 * - 70 AS col2
----
-5805

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL MIN( DISTINCT - 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL MIN ( DISTINCT - 90 ) AS col1
----
-90

query II rowsort
SELECT ALL ( + + 79 ) AS col1, + 68
----
79
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4293
SELECT + COUNT( * ) DIV - + 71 * + 77
----
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT + COUNT ( * ) / - + 71 * + 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT - 24 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-4294
SELECT - 24 / 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT + COUNT( * ) * + 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4295
SELECT + COUNT ( * ) * + 78 AS col1
----
78

query I rowsort
SELECT - 41 + - 71 * + 49 * + 61
----
-212260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4297
SELECT - 88 DIV - 85 AS col2, CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-4297
SELECT - 88 / - 85 AS col2, CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - 94 + + 91 + + MIN( + - 14 )
----
-17

skipif mysql # not compatible
query I rowsort label-4298
SELECT - 94 + + 91 + + MIN ( + - 14 )
----
-17

query I rowsort
SELECT ALL - 74 + + 25
----
-49

query I rowsort
SELECT DISTINCT + COALESCE ( + 92, - ( 40 ) ) * + + 89 AS col2
----
8188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4301
SELECT ALL - NULLIF ( - + CASE - 89 WHEN + CAST( NULL AS SIGNED ) + COUNT( * ) THEN 62 * 39 END, + 97 ) + + 73 * - - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL - NULLIF ( - + CASE - 89 WHEN + CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN 62 * 39 END, + 97 ) + + 73 * - - 5 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4302
SELECT DISTINCT CAST( + 91 AS SIGNED ) AS col0, - 45
----
91
-45

skipif mysql # not compatible
query II rowsort label-4302
SELECT DISTINCT CAST ( + 91 AS INTEGER ) AS col0, - 45
----
91
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL + CASE - 42 WHEN 9 THEN NULL ELSE + 81 * 95 + - CASE - 4 WHEN MAX( ALL - - 95 ) * + NULLIF ( + - COALESCE ( - ( - - 23 ), + - 25 * + 71, + 35 / - COALESCE ( + - COALESCE ( AVG ( DISTINCT + + ( - + 88 ) ), + 5, 43 ), MIN( 72 ) ) - - CASE + + CASE - + 70 WHEN ( + + 11 ) THEN + 14 WHEN - NULLIF ( - 49, + 25 * - 27 / + ( - 82 ) ) * + 52 + 84 + COUNT( DISTINCT + NULLIF ( - ( + 89 ), 93 ) ) + 33 + + 31 * 87 THEN 56 WHEN COUNT( * ) / 60 THEN + 14 END WHEN - NULLIF ( + 36, + 48 * + 63 ) THEN 63 * 50 WHEN + 16 THEN NULL WHEN - 4 THEN MAX( ALL 74 ) * + 91 END + 85 + 11 ), - 55 ) / 18 + - COUNT( * ) - 3 THEN 36 END - - 57 END + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + CASE - 42 WHEN 9 THEN NULL ELSE + 81 * 95 + - CASE - 4 WHEN MAX ( ALL - - 95 ) * + NULLIF ( + - COALESCE ( - ( - - 23 ), + - 25 * + 71, + 35 / - COALESCE ( + - COALESCE ( AVG ( DISTINCT + + ( - + 88 ) ), + 5, 43 ), MIN ( 72 ) ) - - CASE + + CASE - + 70 WHEN ( + + 11 ) THEN + 14 WHEN - NULLIF ( - 49, + 25 * - 27 / + ( - 82 ) ) * + 52 + 84 + COUNT ( DISTINCT + NULLIF ( - ( + 89 ), 93 ) ) + 33 + + 31 * 87 THEN 56 WHEN COUNT ( * ) / 60 THEN + 14 END WHEN - NULLIF ( + 36, + 48 * + 63 ) THEN 63 * 50 WHEN + 16 THEN NULL WHEN - 4 THEN MAX ( ALL 74 ) * + 91 END + 85 + 11 ), - 55 ) / 18 + - COUNT ( * ) - 3 THEN 36 END - - 57 END + 72
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4304
SELECT ALL - COUNT( * ) + 85 AS col0, CASE + - ( + - 54 ) WHEN - + 8 DIV - + COUNT( * ) + - + COUNT( DISTINCT + 17 ) * - 51 THEN + 57 ELSE + + COUNT( * ) END DIV - 29 + - + 12 - - COUNT( * ) AS col0
----
84
-11

skipif mysql # not compatible
query II rowsort label-4304
SELECT ALL - COUNT ( * ) + 85 AS col0, CASE + - ( + - 54 ) WHEN - + 8 / - + COUNT ( * ) + - + COUNT ( DISTINCT + 17 ) * - 51 THEN + 57 ELSE + + COUNT ( * ) END / - 29 + - + 12 - - COUNT ( * ) AS col0
----
84
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL ( ( COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL ( ( COUNT ( * ) ) ) AS col0
----
1

query I rowsort
SELECT - 22 - - 39
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4307
SELECT + - 72 * 36 * 29 + COUNT( * ) * 84 AS col0, COUNT( * ) AS col2
----
-75084
1

skipif mysql # not compatible
query II rowsort label-4307
SELECT + - 72 * 36 * 29 + COUNT ( * ) * 84 AS col0, COUNT ( * ) AS col2
----
-75084
1

query II rowsort
SELECT + 14 + + + 46 col1, 58
----
60
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT DISTINCT ( + + 76 ) DIV - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT ( + + 76 ) / - 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4310
SELECT - CASE 66 WHEN - 43 + + 70 THEN NULL WHEN + 12 THEN + 31 END - - COUNT( * ), + 80 * 84 * 15 * 53 AS col0
----
NULL
5342400

skipif mysql # not compatible
query II rowsort label-4310
SELECT - CASE 66 WHEN - 43 + + 70 THEN NULL WHEN + 12 THEN + 31 END - - COUNT ( * ), + 80 * 84 * 15 * 53 AS col0
----
NULL
5342400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4312
SELECT ALL MIN( ALL + 35 ) DIV + COUNT( * ) - + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL MIN ( ALL + 35 ) / + COUNT ( * ) - + COUNT ( * )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4313
SELECT - + 51 / + - 4 * - COALESCE ( - 80, - 1 ) / ( - 40 ) * + + 57 + + 44 * - - 43 - - COUNT( * ) - - 55 * - - ( + - MAX( + + 79 ) ) + - - CAST( NULL AS SIGNED ) / + + 96 / + 1 * 92 + - COALESCE ( - 45, + 91 * - 7, + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT - + 51 / + - 4 * - COALESCE ( - 80, - 1 ) / ( - 40 ) * + + 57 + + 44 * - - 43 - - COUNT ( * ) - - 55 * - - ( + - MAX ( + + 79 ) ) + - - CAST ( NULL AS INTEGER ) / + + 96 / + 1 * 92 + - COALESCE ( - 45, + 91 * - 7, + 91 )
----
NULL

query I rowsort
SELECT + + 46 * - 4 AS col0
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4315
SELECT + COUNT( DISTINCT + 7 ) * + CAST( NULL AS SIGNED ) + + 93 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT + COUNT ( DISTINCT + 7 ) * + CAST ( NULL AS INTEGER ) + + 93 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL + + CASE + ( 22 ) WHEN + + 50 * - 8 * - + 66 + 21 + - - 12 / + 65 - - + 66 + 64 * - + COUNT( ALL - - 68 ) - + 35 * + 45 * 86 THEN NULL WHEN + - 65 / - NULLIF ( 35, - 88 ) THEN - 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + + CASE + ( 22 ) WHEN + + 50 * - 8 * - + 66 + 21 + - - 12 / + 65 - - + 66 + 64 * - + COUNT ( ALL - - 68 ) - + 35 * + 45 * 86 THEN NULL WHEN + - 65 / - NULLIF ( 35, - 88 ) THEN - 64 END
----
NULL

query I rowsort
SELECT + 74 * + 31
----
2294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4318
SELECT + 44 * + COALESCE ( CAST( - + ( + + COALESCE ( - 75, + MIN( ALL - 97 ), + 96 ) ) AS SIGNED ), + + ( + 45 ) ) AS col1
----
3300

skipif mysql # not compatible
query I rowsort label-4318
SELECT + 44 * + COALESCE ( CAST ( - + ( + + COALESCE ( - 75, + MIN ( ALL - 97 ), + 96 ) ) AS INTEGER ), + + ( + 45 ) ) AS col1
----
3300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT ALL 13 DIV - COUNT( ALL 75 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL 13 / - COUNT ( ALL 75 ) AS col2
----
-13

query I rowsort
SELECT ALL + - NULLIF ( - + 44, 26 / - 94 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT + - ( - + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4321
SELECT + - ( - + COUNT ( * ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT DISTINCT COALESCE ( + + 96, - - 6 ) * 75 * 77 DIV - 63
----
-8800

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT COALESCE ( + + 96, - - 6 ) * 75 * 77 / - 63
----
-8800

onlyif mysql # aggregate syntax: 
query II rowsort label-4323
SELECT DISTINCT + 60 + - COUNT( * ) + + - 31 + + - 16 AS col1, + 14
----
12
14

skipif mysql # not compatible
query II rowsort label-4323
SELECT DISTINCT + 60 + - COUNT ( * ) + + - 31 + + - 16 AS col1, + 14
----
12
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4324
SELECT ALL COALESCE ( - + 80, ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ), + - COUNT( * ) + - 16 ) + 86 - COUNT( - 42 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL COALESCE ( - + 80, ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ), + - COUNT ( * ) + - 16 ) + 86 - COUNT ( - 42 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT CASE + 90 WHEN CASE + NULLIF ( + + COUNT( * ), - 88 * + - 90 / + 40 ) WHEN COUNT( * ) * - - 92 THEN NULL WHEN - 85 THEN NULL WHEN + 31 * COUNT( * ) THEN + 42 ELSE NULL END THEN - SUM( + + 1 ) END + - 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT CASE + 90 WHEN CASE + NULLIF ( + + COUNT ( * ), - 88 * + - 90 / + 40 ) WHEN COUNT ( * ) * - - 92 THEN NULL WHEN - 85 THEN NULL WHEN + 31 * COUNT ( * ) THEN + 42 ELSE NULL END THEN - SUM ( + + 1 ) END + - 80 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT ALL 6 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL 6 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 41 * + 68
----
2788

query I rowsort
SELECT ALL 24 + + 77
----
101

query I rowsort
SELECT ( - + 24 ) + 7
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT ALL + 42 + + + 50 + + CAST( NULL AS SIGNED ) * - 38 * - ( + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL + 42 + + + 50 + + CAST ( NULL AS INTEGER ) * - 38 * - ( + 79 )
----
NULL

query I rowsort
SELECT ALL 70 + NULLIF ( - 89, + 65 * 91 * + - 3 ) + - + 79 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL + 15 + - COUNT( * ) * + COUNT( * ) + 67
----
81

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + 15 + - COUNT ( * ) * + COUNT ( * ) + 67
----
81

query I rowsort
SELECT 41 + 35 * - + 89 AS col1
----
-3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT 50 + + + CAST( 48 AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4334
SELECT 50 + + + CAST ( 48 AS INTEGER ) AS col1
----
98

query II rowsort
SELECT 57 * - 86 * + 98 * - - 23 AS col1, 9 AS col0
----
-11049108
9

query I rowsort
SELECT 31 + 16
----
47

query I rowsort
SELECT 66 - + 72
----
-6

query I rowsort
SELECT ALL + 53 * + 97 AS col0
----
5141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT 47 * CAST( - 6 AS SIGNED ) col1
----
-282

skipif mysql # not compatible
query I rowsort label-4339
SELECT 47 * CAST ( - 6 AS INTEGER ) col1
----
-282

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4340
SELECT - COUNT( * ), ( 34 ) * + + 4 * + ( + + 20 ) * 91 * CASE 29 WHEN - + CAST( NULL AS DECIMAL ) - + 67 * - 79 + 14 + + MAX( - 95 ) THEN NULL ELSE + 92 END - - 56 AS col2
----
-1
22771896

skipif mysql # not compatible
query II rowsort label-4340
SELECT - COUNT ( * ), ( 34 ) * + + 4 * + ( + + 20 ) * 91 * CASE 29 WHEN - + CAST ( NULL AS REAL ) - + 67 * - 79 + 14 + + MAX ( - 95 ) THEN NULL ELSE + 92 END - - 56 AS col2
----
-1
22771896

query I rowsort
SELECT 17 + 21
----
38

query I rowsort
SELECT ALL - + 10 - + 57
----
-67

query II rowsort
SELECT DISTINCT 70 AS col1, 20 AS col1
----
70
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4344
SELECT ALL - COUNT( * ) AS col1, - ( - + 51 ) - 63 + + COUNT( * ) + - 83 + + CAST( + - 7 AS SIGNED ) * - 99 * + + MIN( ALL 6 ) - 4 AS col1
----
-1
4060

skipif mysql # not compatible
query II rowsort label-4344
SELECT ALL - COUNT ( * ) AS col1, - ( - + 51 ) - 63 + + COUNT ( * ) + - 83 + + CAST ( + - 7 AS INTEGER ) * - 99 * + + MIN ( ALL 6 ) - 4 AS col1
----
-1
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT - MIN( - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT - MIN ( - 40 )
----
40

query II rowsort
SELECT DISTINCT - + 57, - ( - ( + 93 ) ) + 76 AS col1
----
-57
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT + - ( COUNT( * ) ) * - 17 + 27 + + + 74 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-4347
SELECT + - ( COUNT ( * ) ) * - 17 + 27 + + + 74 AS col1
----
118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4348
SELECT - - 62 / - COUNT( * ) + 42 + 39 - + 41 * + 8 * + 48 / - 66 * - NULLIF ( + CAST( NULL AS DECIMAL ), - 31 ) * + - 73 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT - - 62 / - COUNT ( * ) + 42 + 39 - + 41 * + 8 * + 48 / - 66 * - NULLIF ( + CAST ( NULL AS REAL ), - 31 ) * + - 73 + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT + 83 AS col0, 50 AS col0
----
83
50

query I rowsort
SELECT ALL + 45 * - 41 * - 64 * - 14 + + 17
----
-1653103

query I rowsort
SELECT + 81 + - + 9 + - 93 col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4352
SELECT + - COUNT( * ) AS col0, 97 AS col1
----
-1
97

skipif mysql # not compatible
query II rowsort label-4352
SELECT + - COUNT ( * ) AS col0, 97 AS col1
----
-1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL + 84 * + ( - SUM( 70 ) ) * - 19 AS col1
----
111720

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL + 84 * + ( - SUM ( 70 ) ) * - 19 AS col1
----
111720

query I rowsort
SELECT NULLIF ( 27, + 19 ) + + + 24 AS col0
----
51

query I rowsort
SELECT - 47 + 1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * - + ( + 63 ) * + 39 - + COUNT( * )
----
-2458

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * - + ( + 63 ) * + 39 - + COUNT ( * )
----
-2458

onlyif mysql # aggregate syntax: 
query II rowsort label-4357
SELECT ALL - 46 + 38 - + 62 * + + 54 AS col0, + COUNT( * ) col1
----
-3356
1

skipif mysql # not compatible
query II rowsort label-4357
SELECT ALL - 46 + 38 - + 62 * + + 54 AS col0, + COUNT ( * ) col1
----
-3356
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4358
SELECT COUNT( * ) DIV - 1, - MIN( - 90 ) + - - 87 AS col2
----
-1
177

skipif mysql # not compatible
query II rowsort label-4358
SELECT COUNT ( * ) / - 1, - MIN ( - 90 ) + - - 87 AS col2
----
-1
177

query I rowsort
SELECT 22 + + 13 - + NULLIF ( + 40, + 53 ) AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT ALL CAST( + - ( - 60 ) AS SIGNED ) + + + COUNT( * ) col2
----
61

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL CAST ( + - ( - 60 ) AS INTEGER ) + + + COUNT ( * ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL SUM( DISTINCT - 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL SUM ( DISTINCT - 39 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT COUNT( * ) + + COUNT( * ), NULLIF ( - - 2, - 23 ) + 57 AS col0
----
2
59

skipif mysql # not compatible
query II rowsort label-4362
SELECT COUNT ( * ) + + COUNT ( * ), NULLIF ( - - 2, - 23 ) + 57 AS col0
----
2
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT COUNT( * ) * - NULLIF ( + - SUM( DISTINCT + - 10 ), - 56 ) * + NULLIF ( + 39, 20 * + + 79 + - 53 + + 18 + - 40 ) + 42
----
-348

skipif mysql # not compatible
query I rowsort label-4363
SELECT COUNT ( * ) * - NULLIF ( + - SUM ( DISTINCT + - 10 ), - 56 ) * + NULLIF ( + 39, 20 * + + 79 + - 53 + + 18 + - 40 ) + 42
----
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT CASE - + COUNT( * ) WHEN + 61 THEN - + 33 WHEN - + COUNT( * ) THEN NULL WHEN + 54 THEN 52 ELSE - NULLIF ( - 27, - 32 ) END + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT CASE - + COUNT ( * ) WHEN + 61 THEN - + 33 WHEN - + COUNT ( * ) THEN NULL WHEN + 54 THEN 52 ELSE - NULLIF ( - 27, - 32 ) END + - 57
----
NULL

query II rowsort
SELECT DISTINCT 52 * + 32 AS col1, - 46 * + 45 col1
----
1664
-2070

query II rowsort
SELECT ALL 10 - + 98, - 58 AS col0
----
-88
-58

query I rowsort
SELECT DISTINCT 69 * - - 72
----
4968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL - CAST( - - 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - CAST ( - - 83 AS INTEGER )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4369
SELECT ALL 50 DIV + 37
----
1

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL 50 / + 37
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT + ( + CAST( + 44 AS SIGNED ) ) * 58 * - 70 + + 16 AS col2
----
-178624

skipif mysql # not compatible
query I rowsort label-4370
SELECT + ( + CAST ( + 44 AS INTEGER ) ) * 58 * - 70 + + 16 AS col2
----
-178624

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ( - COALESCE ( - 82, - 65 ) ) + - 87 * + SUM( - 29 )
----
2605

skipif mysql # not compatible
query I rowsort label-4371
SELECT ( - COALESCE ( - 82, - 65 ) ) + - 87 * + SUM ( - 29 )
----
2605

query I rowsort
SELECT 38 * - 35 + + 46
----
-1284

onlyif mysql # DIV for integer division: 
query I rowsort label-4373
SELECT ALL + 80 DIV + 28 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + 80 / + 28 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4374
SELECT + SUM( DISTINCT - + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT + SUM ( DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT - 65 * + - 73, ( - - 92 ) * + 84 AS col1
----
4745
7728

query I rowsort
SELECT DISTINCT 35 * 15 * - - 92 + - 44 col1
----
48256

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT - 79 * + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4377
SELECT - 79 * + COUNT ( * ) AS col2
----
-79

query I rowsort
SELECT + 19 * + 29 * + + 39 * - - 45 - + 46 AS col2
----
966959

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT + 55 * ( + + COUNT( ALL + 41 ) ) - - 18 col1
----
73

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT + 55 * ( + + COUNT ( ALL + 41 ) ) - - 18 col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4380
SELECT ALL - - COUNT( * ) * - 2 DIV + MAX( - 31 ) + + - 53 AS col2, CAST( NULL AS SIGNED )
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-4380
SELECT ALL - - COUNT ( * ) * - 2 / + MAX ( - 31 ) + + - 53 AS col2, CAST ( NULL AS INTEGER )
----
-53
NULL

query I rowsort
SELECT - + 11 * - 2
----
22

query I rowsort
SELECT DISTINCT + CASE + + 5 WHEN + 8 THEN NULL ELSE - 14 END AS col0
----
-14

query I rowsort
SELECT ALL + ( - - 15 ) AS col1
----
15

query I rowsort
SELECT ALL + 96 * - + 64 + - 77 * 97
----
-13613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT DISTINCT + 70 * + MAX( DISTINCT CAST( - - 74 AS SIGNED ) ) AS col0
----
5180

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT + 70 * + MAX ( DISTINCT CAST ( - - 74 AS INTEGER ) ) AS col0
----
5180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4386
SELECT + 33, + 2 DIV 12 - + 80 + - + COUNT( * ) - 6 * - - 45 + - - ( 22 ) col2
----
33
-329

skipif mysql # not compatible
query II rowsort label-4386
SELECT + 33, + 2 / 12 - + 80 + - + COUNT ( * ) - 6 * - - 45 + - - ( 22 ) col2
----
33
-329

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL + 80 * + COUNT( * ) + COUNT( * ) + - - COUNT( - ( 72 ) ) * COUNT( * ) * - 42
----
39

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + 80 * + COUNT ( * ) + COUNT ( * ) + - - COUNT ( - ( 72 ) ) * COUNT ( * ) * - 42
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4388
SELECT DISTINCT 76 * - MIN( ALL + 94 ) - + - 90 + - COUNT( * ) + + 95 - - + 40 DIV 17 DIV 40 * - COUNT( * ) AS col1, 44 DIV - COUNT( * ) AS col0
----
-6960
-44

skipif mysql # not compatible
query II rowsort label-4388
SELECT DISTINCT 76 * - MIN ( ALL + 94 ) - + - 90 + - COUNT ( * ) + + 95 - - + 40 / 17 / 40 * - COUNT ( * ) AS col1, 44 / - COUNT ( * ) AS col0
----
-6960
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL + MIN( + 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL + MIN ( + 92 ) AS col0
----
92

query I rowsort
SELECT 79 * + + 95 + + 33 AS col0
----
7538

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT MIN( DISTINCT + COALESCE ( + 88, - + 30 / + 60 ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4391
SELECT MIN ( DISTINCT + COALESCE ( + 88, - + 30 / + 60 ) ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT + ( MIN( ALL - - 98 ) ) * + + 82 * + 64
----
514304

skipif mysql # not compatible
query I rowsort label-4392
SELECT + ( MIN ( ALL - - 98 ) ) * + + 82 * + 64
----
514304

query I rowsort
SELECT ALL + 52 * 6 AS col2
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - COUNT( * ) + NULLIF ( + 30, + 0 )
----
29

skipif mysql # not compatible
query I rowsort label-4394
SELECT - COUNT ( * ) + NULLIF ( + 30, + 0 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4395
SELECT + ( 58 ) DIV 10
----
5

skipif mysql # not compatible
query I rowsort label-4395
SELECT + ( 58 ) / 10
----
5

query I rowsort
SELECT - 99 + + 61 * + - 11
----
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-4397
SELECT ALL 11 - 93 DIV 70 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL 11 - 93 / 70 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL COALESCE ( + 46, - 73 * COUNT( * ) * + + 41 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL COALESCE ( + 46, - 73 * COUNT ( * ) * + + 41 ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT DISTINCT 4 DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT 4 / - 18
----
0

query I rowsort
SELECT ALL ( - COALESCE ( 61, 19 ) ) AS col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4401
SELECT + 38 + - 92 + - 61 DIV COUNT( * ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-4401
SELECT + 38 + - 92 + - 61 / COUNT ( * ) AS col1
----
-115

query I rowsort
SELECT ALL + COALESCE ( - 75, + 96, - + 1 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT DISTINCT 82 * + - 61 + - + 2 * + CAST( 41 AS SIGNED ) * + - 33 AS col1
----
-2296

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT 82 * + - 61 + - + 2 * + CAST ( 41 AS INTEGER ) * + - 33 AS col1
----
-2296

query II rowsort
SELECT + 51 + + 79 + + + 70, - 95 - 30 * - - 18 * 6 AS col0
----
200
-3335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4405
SELECT - MAX( - - 47 ) + - 56 DIV - 82
----
-47

skipif mysql # not compatible
query I rowsort label-4405
SELECT - MAX ( - - 47 ) + - 56 / - 82
----
-47

query I rowsort
SELECT + + 33 * 22 col0
----
726

query I rowsort
SELECT + - 64 + + 38 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT + - MIN( ALL - 99 ) - - 62 * + - 96 AS col1
----
-5853

skipif mysql # not compatible
query I rowsort label-4408
SELECT + - MIN ( ALL - 99 ) - - 62 * + - 96 AS col1
----
-5853

query I rowsort
SELECT ALL ( - 47 ) col1
----
-47

query I rowsort
SELECT + + 89 + 59
----
148

query I rowsort
SELECT + + 83 + + 1 col1
----
84

query I rowsort
SELECT ALL + 78 * + 68
----
5304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT - CAST( - 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-4413
SELECT - CAST ( - 15 AS INTEGER )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT + SUM( - 9 ) * 21 * - 56 AS col0
----
10584

skipif mysql # not compatible
query I rowsort label-4414
SELECT + SUM ( - 9 ) * 21 * - 56 AS col0
----
10584

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4415
SELECT DISTINCT 66 + + 11 + - 93 AS col1, + CASE CASE - NULLIF ( + 77, - 42 ) WHEN COUNT( * ) + AVG ( ALL + 13 ) THEN 68 WHEN + 90 + - - 40 THEN - - CAST( + ( - AVG ( ALL - ( + ( + - 63 ) ) ) ) AS DECIMAL ) + + + 83 END WHEN - 87 THEN 76 / COUNT( * ) END AS col0
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-4415
SELECT DISTINCT 66 + + 11 + - 93 AS col1, + CASE CASE - NULLIF ( + 77, - 42 ) WHEN COUNT ( * ) + AVG ( ALL + 13 ) THEN 68 WHEN + 90 + - - 40 THEN - - CAST ( + ( - AVG ( ALL - ( + ( + - 63 ) ) ) ) AS REAL ) + + + 83 END WHEN - 87 THEN 76 / COUNT ( * ) END AS col0
----
-16
NULL

query I rowsort
SELECT DISTINCT 5 * - 97
----
-485

query I rowsort
SELECT ALL 80 + - 98 * + 74 + - 11 + - 62
----
-7245

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT ALL + COUNT( * ) + ( + - 84 ) * + 84
----
-7055

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + COUNT ( * ) + ( + - 84 ) * + 84
----
-7055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT + ( + 68 ) + - - 22 + + + CAST( + - 43 AS SIGNED ) + + 94 * + CASE 65 WHEN + 96 + + 9 THEN + 69 * - + 77 END / + 16 + - - 49 - - 26 + 85 * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT + ( + 68 ) + - - 22 + + + CAST ( + - 43 AS INTEGER ) + + 94 * + CASE 65 WHEN + 96 + + 9 THEN + 69 * - + 77 END / + 16 + - - 49 - - 26 + 85 * - 11
----
NULL

query I rowsort
SELECT DISTINCT - 59 + 92
----
33

query I rowsort
SELECT + 67 + - 55 * 24 + 79 * + 45 + 80 * + 13 * 13 * - - 34
----
461982

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT SUM( DISTINCT 80 )
----
80

skipif mysql # not compatible
query I rowsort label-4422
SELECT SUM ( DISTINCT 80 )
----
80

query I rowsort
SELECT + 20 * + ( - + 14 ) - - 30
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT + MIN( + - 32 ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-4424
SELECT + MIN ( + - 32 ) col0
----
-32

query I rowsort
SELECT ALL + ( - 75 ) AS col1
----
-75

query I rowsort
SELECT - 12 * + - 89 * - + 61 AS col2
----
-65148

query I rowsort
SELECT - - 7 + + + 41 AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT ALL - ( - CAST( 49 AS SIGNED ) ) * ( 65 )
----
3185

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - ( - CAST ( 49 AS INTEGER ) ) * ( 65 )
----
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ( - NULLIF ( - COUNT( ALL 76 ), - - 35 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4429
SELECT ( - NULLIF ( - COUNT ( ALL 76 ), - - 35 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL - 63 * + MIN( 94 ) + 51 + + 72
----
-5799

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - 63 * + MIN ( 94 ) + 51 + + 72
----
-5799

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT DISTINCT 13 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT 13 / - 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4432
SELECT ALL + CAST( + - 88 AS SIGNED ) * 95 + - 43 * + COUNT( * ) col1
----
-8403

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL + CAST ( + - 88 AS INTEGER ) * 95 + - 43 * + COUNT ( * ) col1
----
-8403

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT - COUNT( * ) * 97 + 33 + 48, 37 AS col0
----
-16
37

skipif mysql # not compatible
query II rowsort label-4433
SELECT - COUNT ( * ) * 97 + 33 + 48, 37 AS col0
----
-16
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL 48 * - - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL 48 * - - COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL 72 * + - 12 - + ( + + COUNT( * ) )
----
-865

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL 72 * + - 12 - + ( + + COUNT ( * ) )
----
-865

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL + SUM( - 86 ) * - 26 * 5 col0
----
11180

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL + SUM ( - 86 ) * - 26 * 5 col0
----
11180

query I rowsort
SELECT + 47 * 97
----
4559

query I rowsort
SELECT + 90 * + - ( ( - + NULLIF ( - 41, + 82 ) ) ) + - 41 col1
----
-3731

query I rowsort
SELECT NULLIF ( 49, + 80 ) col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT - COUNT( * ) + - COUNT( * ) + + - 24 * + 19 + + + 87
----
-371

skipif mysql # not compatible
query I rowsort label-4440
SELECT - COUNT ( * ) + - COUNT ( * ) + + - 24 * + 19 + + + 87
----
-371

query I rowsort
SELECT - ( 13 ) * + - 25
----
325

query I rowsort
SELECT ALL + ( - + 95 ) AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT - CAST( NULL AS SIGNED ) + - - 59 * 45 * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT - CAST ( NULL AS INTEGER ) + - - 59 * 45 * 75
----
NULL

query I rowsort
SELECT COALESCE ( + + 79, + 2 ) AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4445
SELECT ALL - 21 * CASE - 11 WHEN 83 / + ( 25 ) - - 71 * 60 THEN NULL WHEN - 87 THEN NULL WHEN + 83 + 26 * - 76 THEN + - 2 + 31 - - 61 + CASE ( + ( 89 ) ) WHEN - - 77 THEN - - 15 + + COUNT( * ) + + 73 * - 81 * - 23 ELSE NULL END + + COUNT( * ) + CAST( - 30 AS DECIMAL ) * - + 75 / + NULLIF ( - + 10, - AVG ( + 20 ) ) * - + 76 * SUM( DISTINCT - 82 ) * - 51 + 84 WHEN - COALESCE ( + + 42, 63, + 90 ) + - SUM( - 94 ) THEN + 53 * - + 0 * + 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL - 21 * CASE - 11 WHEN 83 / + ( 25 ) - - 71 * 60 THEN NULL WHEN - 87 THEN NULL WHEN + 83 + 26 * - 76 THEN + - 2 + 31 - - 61 + CASE ( + ( 89 ) ) WHEN - - 77 THEN - - 15 + + COUNT ( * ) + + 73 * - 81 * - 23 ELSE NULL END + + COUNT ( * ) + CAST ( - 30 AS REAL ) * - + 75 / + NULLIF ( - + 10, - AVG ( + 20 ) ) * - + 76 * SUM ( DISTINCT - 82 ) * - 51 + 84 WHEN - COALESCE ( + + 42, 63, + 90 ) + - SUM ( - 94 ) THEN + 53 * - + 0 * + 26 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4446
SELECT COUNT( * ), + 67 + + 30 + - - 35 AS col0
----
1
132

skipif mysql # not compatible
query II rowsort label-4446
SELECT COUNT ( * ), + 67 + + 30 + - - 35 AS col0
----
1
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL - COUNT( * ) * - - 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - COUNT ( * ) * - - 10 AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4448
SELECT DISTINCT - 40 DIV - - 12
----
-3

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT - 40 / - - 12
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4449
SELECT ALL 64, + 60 * COUNT( * ) + + COALESCE ( ( + ( + + 1 ) ), - 28 ) * + - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) AS col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-4449
SELECT ALL 64, + 60 * COUNT ( * ) + + COALESCE ( ( + ( + + 1 ) ), - 28 ) * + - MAX ( DISTINCT CAST ( NULL AS REAL ) ) AS col2
----
64
NULL

query I rowsort
SELECT - 22 * + ( + 92 )
----
-2024

query I rowsort
SELECT ALL - + 11 * + 44
----
-484

query I rowsort
SELECT - COALESCE ( - - 66, + 2 * 35 )
----
-66

query II rowsort
SELECT - 56 col0, 9
----
-56
9

query I rowsort
SELECT - 97 * + + 8 AS col0
----
-776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4455
SELECT + 72 + - COUNT( * ) - + 67 / 50 * - - CAST( NULL AS SIGNED ) / - MIN( + + 30 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4455
SELECT + 72 + - COUNT ( * ) - + 67 / 50 * - - CAST ( NULL AS INTEGER ) / - MIN ( + + 30 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL + NULLIF ( 67, - + ( ( - AVG ( 36 ) ) ) + + SUM( ALL - - 27 ) ) * + - 52 AS col1
----
-3484

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL + NULLIF ( 67, - + ( ( - AVG ( 36 ) ) ) + + SUM ( ALL - - 27 ) ) * + - 52 AS col1
----
-3484

query I rowsort
SELECT ALL 68 + + 30
----
98

query I rowsort
SELECT DISTINCT - - 94 + - + 72 AS col2
----
22

query I rowsort
SELECT ALL ( 88 ) col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4460
SELECT - COUNT( * ), - 6 DIV + 42 * - 74 * + - ( - ( + 88 ) ) * NULLIF ( 8, - COALESCE ( - 32, - 62, + - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) ) ) AS col2, - 40 AS col2
----
-1
0
-40

skipif mysql # not compatible
query III rowsort label-4460
SELECT - COUNT ( * ), - 6 / + 42 * - 74 * + - ( - ( + 88 ) ) * NULLIF ( 8, - COALESCE ( - 32, - 62, + - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) ) ) AS col2, - 40 AS col2
----
-1
0
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL + MIN( ALL 54 ) + - - 39 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + MIN ( ALL 54 ) + - - 39 AS col1
----
93

query II rowsort
SELECT - 96 AS col0, - 92 AS col0
----
-96
-92

query I rowsort
SELECT + 18 + - 33 col0
----
-15

query I rowsort
SELECT 20 * - 78 * 27
----
-42120

query I rowsort
SELECT ALL 57 * + ( - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT - SUM( 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT - SUM ( 51 )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT - 60 DIV ( - 35 ) + + 53 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4467
SELECT - 60 / ( - 35 ) + + 53 AS col0
----
54

query I rowsort
SELECT ALL 84 - 68 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT 99 * + - 53 * + + COUNT( * ) AS col1
----
-5247

skipif mysql # not compatible
query I rowsort label-4469
SELECT 99 * + - 53 * + + COUNT ( * ) AS col1
----
-5247

query I rowsort
SELECT ALL 72 * - NULLIF ( 66, + AVG ( ALL - 74 ) + ( - + AVG ( - + 68 ) ) )
----
-4752

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT DISTINCT ( + - 87 ) - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT ( + - 87 ) - COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT 50 * + COUNT( * ) col0
----
50

skipif mysql # not compatible
query I rowsort label-4472
SELECT 50 * + COUNT ( * ) col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT 69 DIV + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4473
SELECT 69 / + COUNT ( * ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT ALL CASE - 59 WHEN - + ( - + 54 ) * + + 69 THEN + 40 WHEN 73 + 77 THEN NULL ELSE - 72 END / - - 82 + - 83 + 34 + 71 + CASE + 97 WHEN + + 48 THEN COUNT( * ) + + COUNT( * ) * - 77 END + - 9 * + + 61 * 72 * - + CASE + + ( 74 ) WHEN + COUNT( * ) - + 96 + + 45 + - COUNT( * ) * - COUNT( * ) / + 53 * + 96 * + 89 * MIN( ALL + - 71 ) THEN NULL WHEN - 67 THEN + COUNT( * ) * + COUNT( * ) + 91 ELSE + 79 END * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL CASE - 59 WHEN - + ( - + 54 ) * + + 69 THEN + 40 WHEN 73 + 77 THEN NULL ELSE - 72 END / - - 82 + - 83 + 34 + 71 + CASE + 97 WHEN + + 48 THEN COUNT ( * ) + + COUNT ( * ) * - 77 END + - 9 * + + 61 * 72 * - + CASE + + ( 74 ) WHEN + COUNT ( * ) - + 96 + + 45 + - COUNT ( * ) * - COUNT ( * ) / + 53 * + 96 * + 89 * MIN ( ALL + - 71 ) THEN NULL WHEN - 67 THEN + COUNT ( * ) * + COUNT ( * ) + 91 ELSE + 79 END * + 65
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT CASE - NULLIF ( + 62, + 3 + + 98 ) WHEN - ( + 3 ) + + + 58 THEN - - 95 ELSE NULL END * COALESCE ( - CAST( NULL AS SIGNED ), 20 * - NULLIF ( 9, + + 67 ) + - 65 / + 43 + 94, 11, + - 98 ) + + 99 + + 47 - - + 6 * + 76 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT CASE - NULLIF ( + 62, + 3 + + 98 ) WHEN - ( + 3 ) + + + 58 THEN - - 95 ELSE NULL END * COALESCE ( - CAST ( NULL AS INTEGER ), 20 * - NULLIF ( 9, + + 67 ) + - 65 / + 43 + 94, 11, + - 98 ) + + 99 + + 47 - - + 6 * + 76 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT DISTINCT 93 * 69 DIV - ( + 20 )
----
-320

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT 93 * 69 / - ( + 20 )
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL 52 * + - MIN( ALL 71 ) * ( + 85 ) AS col1
----
-313820

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL 52 * + - MIN ( ALL 71 ) * ( + 85 ) AS col1
----
-313820

query I rowsort
SELECT + 4 * - + 2 + 9
----
1

query I rowsort
SELECT 94 * + 94 AS col1
----
8836

query I rowsort
SELECT - 73 + 7 + + 0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4481
SELECT ALL + + 96 + 46 * + 67 * + - 35 + COALESCE ( + 18, + + COUNT( * ), - + ( + 7 ) + - - CAST( NULL AS SIGNED ) + + - 27 + + 32 ) * - 4
----
-107846

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + + 96 + 46 * + 67 * + - 35 + COALESCE ( + 18, + + COUNT ( * ), - + ( + 7 ) + - - CAST ( NULL AS INTEGER ) + + - 27 + + 32 ) * - 4
----
-107846

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT 97 + + 13 * + ( + - 76 ) * + COUNT( * ) - + 65
----
-956

skipif mysql # not compatible
query I rowsort label-4482
SELECT 97 + + 13 * + ( + - 76 ) * + COUNT ( * ) - + 65
----
-956

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT - 0 + + - 2 + COUNT( * ) + - 7 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4483
SELECT - 0 + + - 2 + COUNT ( * ) + - 7 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4484
SELECT + COUNT( * ) + + ( 35 ) * COUNT( * ) * - 54 * + COALESCE ( - COUNT( * ), MAX( DISTINCT 28 ) ) + - + 59 * 97 * - ( - + 54 ) AS col2, 22 - 50 AS col0
----
-307151
-28

skipif mysql # not compatible
query II rowsort label-4484
SELECT + COUNT ( * ) + + ( 35 ) * COUNT ( * ) * - 54 * + COALESCE ( - COUNT ( * ), MAX ( DISTINCT 28 ) ) + - + 59 * 97 * - ( - + 54 ) AS col2, 22 - 50 AS col0
----
-307151
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT MAX( + 53 ) + + COUNT( * ) col1
----
54

skipif mysql # not compatible
query I rowsort label-4485
SELECT MAX ( + 53 ) + + COUNT ( * ) col1
----
54

query I rowsort
SELECT ALL - - 92 + - - 96 AS col2
----
188

query I rowsort
SELECT + 49 + 2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT - 68 * + NULLIF ( + 49, COUNT( * ) ) AS col2
----
-3332

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - 68 * + NULLIF ( + 49, COUNT ( * ) ) AS col2
----
-3332

onlyif mysql # aggregate syntax: 
query II rowsort label-4489
SELECT 45 + - 40 AS col0, ( - COUNT( * ) ) AS col0
----
5
-1

skipif mysql # not compatible
query II rowsort label-4489
SELECT 45 + - 40 AS col0, ( - COUNT ( * ) ) AS col0
----
5
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT DISTINCT + COUNT( * ) - + - SUM( DISTINCT 0 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT + COUNT ( * ) - + - SUM ( DISTINCT 0 ) * COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT CASE - 10 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN + 64 + + 40 THEN - + 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT CASE - 10 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 64 + + 40 THEN - + 73 END AS col1
----
NULL

query I rowsort
SELECT ALL + - ( + + 72 ) - - - 80
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4493
SELECT - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4494
SELECT COUNT( * ) + 71 - + 37 AS col0, 44
----
35
44

skipif mysql # not compatible
query II rowsort label-4494
SELECT COUNT ( * ) + 71 - + 37 AS col0, 44
----
35
44

query I rowsort
SELECT DISTINCT 13 * 7
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT SUM( ALL 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4496
SELECT SUM ( ALL 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4497
SELECT - COUNT( * ) * + 15 DIV 76 + - - 86
----
86

skipif mysql # not compatible
query I rowsort label-4497
SELECT - COUNT ( * ) * + 15 / 76 + - - 86
----
86

query I rowsort
SELECT 60 * - 65 AS col1
----
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT 20 * COUNT( * ) + + - 99 * + - 97 + - + 35
----
9588

skipif mysql # not compatible
query I rowsort label-4499
SELECT 20 * COUNT ( * ) + + - 99 * + - 97 + - + 35
----
9588

query I rowsort
SELECT 66 - - - 99 - - CASE 55 WHEN + 56 * - + 68 + - - 61 THEN + 31 WHEN 53 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4501
SELECT COUNT( * ) + 8 + + 49 AS col0, - 83
----
58
-83

skipif mysql # not compatible
query II rowsort label-4501
SELECT COUNT ( * ) + 8 + + 49 AS col0, - 83
----
58
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT + SUM( 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4502
SELECT + SUM ( 59 ) AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT DISTINCT - CAST( + 32 AS SIGNED ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT - CAST ( + 32 AS INTEGER ) AS col0
----
-32

query I rowsort
SELECT ALL 88 * - 51
----
-4488

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT 56 + + 12 + 97 - 21 DIV - - 49
----
165

skipif mysql # not compatible
query I rowsort label-4505
SELECT 56 + + 12 + 97 - 21 / - - 49
----
165

query II rowsort
SELECT + 92 AS col1, 54
----
92
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4507
SELECT DISTINCT - 39 + + COUNT( * ) + 1 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - 39 + + COUNT ( * ) + 1 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 0 * - 68 + + COALESCE ( + 69, + - 29 * 9 + 76, + + 27 * + + ( - - 31 ) ) * - 73 AS col2, - 58 AS col1
----
-5037
-58

query II rowsort
SELECT 85 + 20 - + - 70 AS col2, - 78 * - + 2
----
175
156

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4510
SELECT 91 + - 26 * CAST( - 83 AS SIGNED ) DIV - - 29
----
165

skipif mysql # not compatible
query I rowsort label-4510
SELECT 91 + - 26 * CAST ( - 83 AS INTEGER ) / - - 29
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT MIN( DISTINCT + - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-4511
SELECT MIN ( DISTINCT + - 45 )
----
-45

query I rowsort
SELECT + NULLIF ( 92, 47 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT 59 * - + COUNT( * ) + - 67
----
-126

skipif mysql # not compatible
query I rowsort label-4513
SELECT 59 * - + COUNT ( * ) + - 67
----
-126

query I rowsort
SELECT ALL - 65 + - - 65 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4515
SELECT ALL + 91 + - COUNT( * ) - CAST( NULL AS SIGNED ) + 54 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL + 91 + - COUNT ( * ) - CAST ( NULL AS INTEGER ) + 54 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4516
SELECT + - MAX( DISTINCT + 25 ) * + 56, + 58 AS col1
----
-1400
58

skipif mysql # not compatible
query II rowsort label-4516
SELECT + - MAX ( DISTINCT + 25 ) * + 56, + 58 AS col1
----
-1400
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT DISTINCT 72 + MIN( DISTINCT - + 62 ), 77 AS col2
----
10
77

skipif mysql # not compatible
query II rowsort label-4517
SELECT DISTINCT 72 + MIN ( DISTINCT - + 62 ), 77 AS col2
----
10
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4518
SELECT ALL - + NULLIF ( - - 83, - CAST( - COUNT( * ) AS SIGNED ) + - 93 - + - CAST( NULL AS DECIMAL ) * + COUNT( * ) * - - MAX( ALL 7 ) ) * + - 74
----
6142

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - + NULLIF ( - - 83, - CAST ( - COUNT ( * ) AS INTEGER ) + - 93 - + - CAST ( NULL AS REAL ) * + COUNT ( * ) * - - MAX ( ALL 7 ) ) * + - 74
----
6142

query I rowsort
SELECT ALL 90 + + + 95
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT + 59 * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-4520
SELECT + 59 * COUNT ( * )
----
59

query I rowsort
SELECT - 29 * + 18
----
-522

query II rowsort
SELECT 5 AS col1, NULLIF ( 40, + 19 )
----
5
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT + CASE - 69 WHEN 88 THEN - + 78 + + COUNT( * ) END * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT + CASE - 69 WHEN 88 THEN - + 78 + + COUNT ( * ) END * + 47
----
NULL

query II rowsort
SELECT 42 AS col1, 15
----
42
15

query I rowsort
SELECT ALL + 39 * 91 * + + 58
----
205842

onlyif mysql # aggregate syntax: 
query II rowsort label-4526
SELECT ALL - 70, 17 + + 3 + + + 4 - - 84 * + CASE + COUNT( * ) WHEN - - MIN( 39 ) THEN + 17 ELSE NULL END col0
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-4526
SELECT ALL - 70, 17 + + 3 + + + 4 - - 84 * + CASE + COUNT ( * ) WHEN - - MIN ( 39 ) THEN + 17 ELSE NULL END col0
----
-70
NULL

query I rowsort
SELECT - + 14 col0
----
-14

query I rowsort
SELECT - + 94 * + 41 AS col0
----
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL + MIN( + - 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + MIN ( + - 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT MIN( + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4530
SELECT MIN ( + 23 ) AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4531
SELECT ALL + 24 col0, - CAST( NULL AS SIGNED ) * 0 + + 91 + + ( - MAX( - - 33 ) )
----
24
NULL

skipif mysql # not compatible
query II rowsort label-4531
SELECT ALL + 24 col0, - CAST ( NULL AS INTEGER ) * 0 + + 91 + + ( - MAX ( - - 33 ) )
----
24
NULL

query I rowsort
SELECT - 45 * + 61 + - + 13
----
-2758

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4533
SELECT - MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT - MAX ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + + 22 * + 68 * + - 24 AS col1, + 49 AS col1
----
-35904
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT + 7 + CAST( 36 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-4535
SELECT + 7 + CAST ( 36 AS INTEGER )
----
43

query I rowsort
SELECT - 24 * + - ( + - 18 ) AS col1
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT - 83 + - ( CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT - 83 + - ( CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4538
SELECT - 6 + + - 64 + - - 40 + 8 / - + COUNT( * ) - ( + + CAST( NULL AS SIGNED ) ), 9 + - 88 AS col1
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-4538
SELECT - 6 + + - 64 + - - 40 + 8 / - + COUNT ( * ) - ( + + CAST ( NULL AS INTEGER ) ), 9 + - 88 AS col1
----
NULL
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4539
SELECT + SUM( ALL + 70 ) AS col1, 77 + 36 AS col2
----
70
113

skipif mysql # not compatible
query II rowsort label-4539
SELECT + SUM ( ALL + 70 ) AS col1, 77 + 36 AS col2
----
70
113

onlyif mysql # aggregate syntax: 
query II rowsort label-4540
SELECT ALL + ( - 40 ), - 36 + 45 * + - CASE COUNT( * ) WHEN 54 THEN + - 72 + + + ( 67 ) END AS col0
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-4540
SELECT ALL + ( - 40 ), - 36 + 45 * + - CASE COUNT ( * ) WHEN 54 THEN + - 72 + + + ( 67 ) END AS col0
----
-40
NULL

query I rowsort
SELECT ( - ( 51 ) ) AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4542
SELECT ALL COUNT( * ) DIV - + 85 AS col2, 60 AS col2
----
0
60

skipif mysql # not compatible
query II rowsort label-4542
SELECT ALL COUNT ( * ) / - + 85 AS col2, 60 AS col2
----
0
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4543
SELECT DISTINCT MAX( ALL + + 48 ) * - 12 + + 81 * - CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) + + + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT MAX ( ALL + + 48 ) * - 12 + + 81 * - CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) + + + 37 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT DISTINCT + 81 / - ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT + 81 / - ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4545
SELECT CASE ( + + 44 ) WHEN - 79 + - 66 THEN NULL WHEN + 72 THEN + 38 * SUM( 99 ) END AS col0, CAST( NULL AS SIGNED ) - + + 89
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4545
SELECT CASE ( + + 44 ) WHEN - 79 + - 66 THEN NULL WHEN + 72 THEN + 38 * SUM ( 99 ) END AS col0, CAST ( NULL AS INTEGER ) - + + 89
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL 52 * - 76 + - 22 * - 43 * - COUNT( * ) AS col0
----
-4898

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL 52 * - 76 + - 22 * - 43 * - COUNT ( * ) AS col0
----
-4898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4547
SELECT NULLIF ( - COUNT( * ), - - CAST( 84 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4547
SELECT NULLIF ( - COUNT ( * ), - - CAST ( 84 AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT + NULLIF ( ( - 6 ), + + 37 ) AS col2
----
-6

query I rowsort
SELECT + 93 * 8
----
744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4550
SELECT COALESCE ( + - 47, - 94 * + CAST( NULL AS SIGNED ) * COUNT( DISTINCT 18 ) - + 2 * + ( - CAST( NULL AS SIGNED ) ) - 38 + + COALESCE ( + 34, ( + + NULLIF ( 11, - - 84 * + 8 + + 70 ) ) ), - 32 + - 97 )
----
-47

skipif mysql # not compatible
query I rowsort label-4550
SELECT COALESCE ( + - 47, - 94 * + CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT 18 ) - + 2 * + ( - CAST ( NULL AS INTEGER ) ) - 38 + + COALESCE ( + 34, ( + + NULLIF ( 11, - - 84 * + 8 + + 70 ) ) ), - 32 + - 97 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT DISTINCT + NULLIF ( + 65, + COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT + NULLIF ( + 65, + COUNT ( * ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - MAX( DISTINCT + 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4552
SELECT - MAX ( DISTINCT + 30 ) AS col2
----
-30

query I rowsort
SELECT ALL 0 * + - 22 + - 34 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT + 22 * - 73 + COUNT( DISTINCT - 34 ) + 35
----
-1570

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT + 22 * - 73 + COUNT ( DISTINCT - 34 ) + 35
----
-1570

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT + - 73 * - COUNT( * ) * - 61 col2
----
-4453

skipif mysql # not compatible
query I rowsort label-4555
SELECT + - 73 * - COUNT ( * ) * - 61 col2
----
-4453

query I rowsort
SELECT + - 29 + - 51 + + 49 - + 96 * + 19
----
-1855

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT CASE - 46 WHEN - + COUNT( * ) THEN + - 23 WHEN - - 58 + + + COUNT( DISTINCT - 65 ) * + 76 + + 34 THEN + 83 + - 4 + + 95 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT CASE - 46 WHEN - + COUNT ( * ) THEN + - 23 WHEN - - 58 + + + COUNT ( DISTINCT - 65 ) * + 76 + + 34 THEN + 83 + - 4 + + 95 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4558
SELECT + 7 + - - MIN( ALL + NULLIF ( - 36, - + 90 ) ) col0, + 32 - - + COUNT( * ) DIV + 79 + - + 79 * - 90
----
-29
7142

skipif mysql # not compatible
query II rowsort label-4558
SELECT + 7 + - - MIN ( ALL + NULLIF ( - 36, - + 90 ) ) col0, + 32 - - + COUNT ( * ) / + 79 + - + 79 * - 90
----
-29
7142

query I rowsort
SELECT ALL 51 * - - 23 AS col1
----
1173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4560
SELECT + COUNT( * ) + - COALESCE ( - 67, - COUNT( * ) + + COUNT( * ) - - 66 DIV - COUNT( * ), - 70 )
----
68

skipif mysql # not compatible
query I rowsort label-4560
SELECT + COUNT ( * ) + - COALESCE ( - 67, - COUNT ( * ) + + COUNT ( * ) - - 66 / - COUNT ( * ), - 70 )
----
68

query I rowsort
SELECT + + 46 * - 39 AS col0
----
-1794

query I rowsort
SELECT + 34 + - 24 * - 93 AS col1
----
2266

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT + - ( - - 51 ) * + - ( - MAX( DISTINCT 22 ) )
----
-1122

skipif mysql # not compatible
query I rowsort label-4563
SELECT + - ( - - 51 ) * + - ( - MAX ( DISTINCT 22 ) )
----
-1122

query II rowsort
SELECT + - 72 * 35, - 38 AS col0
----
-2520
-38

query I rowsort
SELECT ALL + 66 * 64 + + 53 AS col1
----
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - MAX( ALL - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4566
SELECT - MAX ( ALL - 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT - ( + CASE ( 23 ) WHEN + 36 THEN + 61 + - + CAST( NULL AS SIGNED ) + + 67 * - + 66 WHEN - 86 THEN NULL ELSE + 7 END ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4567
SELECT - ( + CASE ( 23 ) WHEN + 36 THEN + 61 + - + CAST ( NULL AS INTEGER ) + + 67 * - + 66 WHEN - 86 THEN NULL ELSE + 7 END ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT + COUNT( * ) * + ( 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4568
SELECT + COUNT ( * ) * + ( 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4569
SELECT - COALESCE ( SUM( DISTINCT 43 ), - 76 * + SUM( DISTINCT - 85 ) ) * 60 DIV + - 60 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4569
SELECT - COALESCE ( SUM ( DISTINCT 43 ), - 76 * + SUM ( DISTINCT - 85 ) ) * 60 / + - 60 AS col2
----
43

query I rowsort
SELECT ALL NULLIF ( - 85, - 6 ) AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4571
SELECT DISTINCT CASE + ( + - COALESCE ( COUNT( * ), + + ( + 59 ), - - 80 / + 26 ) ) WHEN ( 11 ) * 85 THEN 46 / - 94 + + - SUM( ALL 15 ) + 10 ELSE - ( + 46 ) * + + 6 + + CAST( NULL AS SIGNED ) + - - 41 END AS col0, - CASE - CASE + - COUNT( * ) WHEN - ( 60 ) + ( 61 ) * - - ( COUNT( + - 66 ) ) * + 54 * - ( - 71 ) / + + 74 THEN NULL WHEN - SUM( DISTINCT + 69 ) * 32 THEN 38 ELSE + 19 END WHEN 55 + 98 + + + 92 * - - 1 THEN NULL ELSE - COUNT( * ) END * + MIN( ALL - 14 ) * 13 AS col0
----
NULL
-182

skipif mysql # not compatible
query II rowsort label-4571
SELECT DISTINCT CASE + ( + - COALESCE ( COUNT ( * ), + + ( + 59 ), - - 80 / + 26 ) ) WHEN ( 11 ) * 85 THEN 46 / - 94 + + - SUM ( ALL 15 ) + 10 ELSE - ( + 46 ) * + + 6 + + CAST ( NULL AS INTEGER ) + - - 41 END AS col0, - CASE - CASE + - COUNT ( * ) WHEN - ( 60 ) + ( 61 ) * - - ( COUNT ( + - 66 ) ) * + 54 * - ( - 71 ) / + + 74 THEN NULL WHEN - SUM ( DISTINCT + 69 ) * 32 THEN 38 ELSE + 19 END WHEN 55 + 98 + + + 92 * - - 1 THEN NULL ELSE - COUNT ( * ) END * + MIN ( ALL - 14 ) * 13 AS col0
----
NULL
-182

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4572
SELECT ALL ( + - 65 ) + + + 44 + - + 15 + - 92 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL ( + - 65 ) + + + 44 + - + 15 + - 92 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4573
SELECT ALL + 94 + - 38 * + - CASE + COUNT( ALL + 36 ) WHEN 37 * 35 THEN + + 23 END AS col0, - 11 DIV + 59 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4573
SELECT ALL + 94 + - 38 * + - CASE + COUNT ( ALL + 36 ) WHEN 37 * 35 THEN + + 23 END AS col0, - 11 / + 59 AS col0
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4574
SELECT - CASE + COALESCE ( + ( 41 ), - ( 76 ) * - 31 * + + 62 + + - 83 + 4 + + 84 / + COUNT( * ) + - ( + + 28 ) * 52, + 46 ) WHEN + MIN( ALL + 86 ) THEN - - 49 * 65 * + - 64 - - + 19 + + + 97 WHEN NULLIF ( - 18, + + 87 ) * MAX( + 68 ) - + - 49 THEN CASE - 93 WHEN 22 - - 53 + - - 87 THEN NULL ELSE + 85 END * - + CAST( NULL AS SIGNED ) * + - 62 / 50 * + 94 WHEN - 44 + - + ( - ( - 24 ) ) THEN 77 ELSE NULL END + 44 AS col1, 74 AS col1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-4574
SELECT - CASE + COALESCE ( + ( 41 ), - ( 76 ) * - 31 * + + 62 + + - 83 + 4 + + 84 / + COUNT ( * ) + - ( + + 28 ) * 52, + 46 ) WHEN + MIN ( ALL + 86 ) THEN - - 49 * 65 * + - 64 - - + 19 + + + 97 WHEN NULLIF ( - 18, + + 87 ) * MAX ( + 68 ) - + - 49 THEN CASE - 93 WHEN 22 - - 53 + - - 87 THEN NULL ELSE + 85 END * - + CAST ( NULL AS INTEGER ) * + - 62 / 50 * + 94 WHEN - 44 + - + ( - ( - 24 ) ) THEN 77 ELSE NULL END + 44 AS col1, 74 AS col1
----
NULL
74

query I rowsort
SELECT DISTINCT 76 + 50
----
126

query I rowsort
SELECT DISTINCT + 76 + 24
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT + CAST( - 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4577
SELECT + CAST ( - 10 AS INTEGER )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT ALL 73 / - 87 * CAST( NULL AS SIGNED ) + - 17 + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL 73 / - 87 * CAST ( NULL AS INTEGER ) + - 17 + 4
----
NULL

query I rowsort
SELECT + 86 * 93 * 79 + + 19 AS col1
----
631861

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4580
SELECT COALESCE ( + CAST( - 87 AS SIGNED ), + 82 ) DIV 90 * - 16 + + 32 - + 51
----
-19

skipif mysql # not compatible
query I rowsort label-4580
SELECT COALESCE ( + CAST ( - 87 AS INTEGER ), + 82 ) / 90 * - 16 + + 32 - + 51
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT 58 * 93 - - - 75 * + + 82 + - + COALESCE ( NULLIF ( - - 11, - COALESCE ( + 41, + COUNT( * ) - + + 50, 16 - 20 ) * 17 * - + 89 * + COUNT( + - 65 ) / - COUNT( * ) + + - 8 ), - - SUM( DISTINCT 19 ) - - 61 )
----
-767

skipif mysql # not compatible
query I rowsort label-4581
SELECT 58 * 93 - - - 75 * + + 82 + - + COALESCE ( NULLIF ( - - 11, - COALESCE ( + 41, + COUNT ( * ) - + + 50, 16 - 20 ) * 17 * - + 89 * + COUNT ( + - 65 ) / - COUNT ( * ) + + - 8 ), - - SUM ( DISTINCT 19 ) - - 61 )
----
-767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4582
SELECT DISTINCT 17 / + CAST( NULL AS SIGNED ) * + 27 * + 0 + - AVG ( ALL - ( - 74 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT 17 / + CAST ( NULL AS INTEGER ) * + 27 * + 0 + - AVG ( ALL - ( - 74 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4583
SELECT ALL - COALESCE ( + + ( 86 ), - 94 + COUNT( * ) - - COALESCE ( - 95, - 38 * 60 - + COUNT( * ) * + + 19 * + 61 + 38 ) DIV + - 57, - 43 ), + 76 AS col0
----
-86
76

skipif mysql # not compatible
query II rowsort label-4583
SELECT ALL - COALESCE ( + + ( 86 ), - 94 + COUNT ( * ) - - COALESCE ( - 95, - 38 * 60 - + COUNT ( * ) * + + 19 * + 61 + 38 ) / + - 57, - 43 ), + 76 AS col0
----
-86
76

query I rowsort
SELECT DISTINCT - 77 + - 69
----
-146

query I rowsort
SELECT 94 * + 44
----
4136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4586
SELECT ALL - COUNT( * ) DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL - COUNT ( * ) / - 52
----
0

query I rowsort
SELECT ALL - 59 - + 7 * 49 AS col1
----
-402

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL - NULLIF ( ( COUNT( ALL - 6 ) ), + 98 * COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL - NULLIF ( ( COUNT ( ALL - 6 ) ), + 98 * COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT - 53 * ( + COUNT( * ) ) + 65 * CASE WHEN NOT ( 12 * 9 ) = ( NULL ) THEN 52 ELSE 60 * + 54 END AS col1
----
210547

skipif mysql # not compatible
query I rowsort label-4589
SELECT - 53 * ( + COUNT ( * ) ) + 65 * CASE WHEN NOT ( 12 * 9 ) = ( NULL ) THEN 52 ELSE 60 * + 54 END AS col1
----
210547

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT 81 * COALESCE ( - ( MAX( ( + 61 ) ) ), + CASE 85 WHEN + 49 THEN + CASE 60 WHEN - 29 * - 77 THEN + COUNT( * ) END + - 59 END )
----
-4941

skipif mysql # not compatible
query I rowsort label-4590
SELECT 81 * COALESCE ( - ( MAX ( ( + 61 ) ) ), + CASE 85 WHEN + 49 THEN + CASE 60 WHEN - 29 * - 77 THEN + COUNT ( * ) END + - 59 END )
----
-4941

query I rowsort
SELECT 84 * 53 AS col0
----
4452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4592
SELECT ALL - 32 DIV + COALESCE ( 70 * + NULLIF ( - 90, 4 - + 48 ), + 1, + COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - 32 / + COALESCE ( 70 * + NULLIF ( - 90, 4 - + 48 ), + 1, + COUNT ( * ) ) AS col0
----
0

query I rowsort
SELECT 26 + + 2 col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4594
SELECT ALL - CAST( - 71 AS SIGNED ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL - CAST ( - 71 AS INTEGER ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT COUNT( * ) * COUNT( * ) + - 37 * 96 AS col2
----
-3551

skipif mysql # not compatible
query I rowsort label-4595
SELECT COUNT ( * ) * COUNT ( * ) + - 37 * 96 AS col2
----
-3551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT DISTINCT CAST( NULL AS SIGNED ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT COUNT( * ) * - 43 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4597
SELECT COUNT ( * ) * - 43 AS col0
----
-43

query I rowsort
SELECT ALL - ( + 46 ) col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT 15 - + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4599
SELECT 15 - + COUNT ( * ) AS col1
----
14

query I rowsort
SELECT 51 * COALESCE ( 83, 62, - 62 ) AS col2
----
4233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT 25 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT 25 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT 41 DIV 28 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4602
SELECT 41 / 28 AS col2
----
1

query I rowsort
SELECT 76 * 39
----
2964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4604
SELECT DISTINCT 30 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT 30 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 89 + 54 col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT + 53 + + SUM( + ( 16 ) + - 92 )
----
-23

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT + 53 + + SUM ( + ( 16 ) + - 92 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT 66 + + COUNT( ( + 56 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4607
SELECT 66 + + COUNT ( ( + 56 ) ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT DISTINCT 82 + + CASE 25 WHEN - 82 THEN NULL WHEN CASE - 5 WHEN - COALESCE ( CAST( 74 AS SIGNED ), ( - 50 ) ) THEN - 14 END + 6 / - 43 THEN NULL WHEN - 11 + - 44 THEN 50 * COUNT( * ) ELSE 0 END
----
82

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT 82 + + CASE 25 WHEN - 82 THEN NULL WHEN CASE - 5 WHEN - COALESCE ( CAST ( 74 AS INTEGER ), ( - 50 ) ) THEN - 14 END + 6 / - 43 THEN NULL WHEN - 11 + - 44 THEN 50 * COUNT ( * ) ELSE 0 END
----
82

query I rowsort
SELECT DISTINCT 94 * - 8 AS col1
----
-752

onlyif mysql # DIV for integer division: 
query I rowsort label-4610
SELECT 79 DIV 29 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4610
SELECT 79 / 29 AS col1
----
2

query I rowsort
SELECT 50 * 51
----
2550

query I rowsort
SELECT ALL 29 * - 26
----
-754

onlyif mysql # DIV for integer division: 
query I rowsort label-4613
SELECT 56 DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4613
SELECT 56 / 85 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT 1 + MAX( - 49 + 97 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4614
SELECT 1 + MAX ( - 49 + 97 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT COUNT( * ) + 79 * MIN( ALL + ( - 27 ) + COALESCE ( 67, ( 34 ), 0 ) ) AS col2
----
3161

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT COUNT ( * ) + 79 * MIN ( ALL + ( - 27 ) + COALESCE ( 67, ( 34 ), 0 ) ) AS col2
----
3161

query I rowsort
SELECT DISTINCT 28 - + 71 col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT DISTINCT 87 - 50 DIV 90
----
87

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT 87 - 50 / 90
----
87

query I rowsort
SELECT DISTINCT - 45 * 94
----
-4230

query I rowsort
SELECT 9 * 64 + + 92
----
668

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT COUNT( * ) * 12 - - 95
----
107

skipif mysql # not compatible
query I rowsort label-4620
SELECT COUNT ( * ) * 12 - - 95
----
107

query I rowsort
SELECT - NULLIF ( - 78, - 90 / 89 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT - COUNT( * ) - - 48
----
47

skipif mysql # not compatible
query I rowsort label-4622
SELECT - COUNT ( * ) - - 48
----
47

query I rowsort
SELECT ALL - 51 - + 5 col2
----
-56

query I rowsort
SELECT + - 66 col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT - 66 * COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4625
SELECT - 66 * COUNT ( * ) AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT ALL - MIN( CAST( NULL AS SIGNED ) ) * + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL - MIN ( CAST ( NULL AS INTEGER ) ) * + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ( + 89 ) - + 95 * + MAX( 67 ) col1
----
-6276

skipif mysql # not compatible
query I rowsort label-4627
SELECT ( + 89 ) - + 95 * + MAX ( 67 ) col1
----
-6276

query I rowsort
SELECT DISTINCT - - 68 AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4629
SELECT + ( - 83 ) * CAST( - 22 AS SIGNED ) AS col2
----
1826

skipif mysql # not compatible
query I rowsort label-4629
SELECT + ( - 83 ) * CAST ( - 22 AS INTEGER ) AS col2
----
1826

query I rowsort
SELECT ALL + - ( + 24 ) + - 54
----
-78

query I rowsort
SELECT 68 + - CASE + 89 + - 10 * + ( - 29 * ( + 49 ) ) WHEN - 31 THEN - 36 * 29 END * 41 AS col1
----
NULL

query I rowsort
SELECT - 25 - + 57 * + 88
----
-5041

query I rowsort
SELECT 14 + - 35 * - 91 AS col2
----
3199

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT + - ( - COUNT( * ) ) * ( - 78 * - 42 ) - 48
----
3228

skipif mysql # not compatible
query I rowsort label-4634
SELECT + - ( - COUNT ( * ) ) * ( - 78 * - 42 ) - 48
----
3228

query I rowsort
SELECT - 82 + 35 AS col0
----
-47

query I rowsort
SELECT ALL - 5 + + NULLIF ( 78 + 66, 69 ) * 78
----
11227

query I rowsort
SELECT - + 91 col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT DISTINCT - 93 + + - 60 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT - 93 + + - 60 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 60 + + 11
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL COUNT( DISTINCT + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL COUNT ( DISTINCT + 11 )
----
1

query I rowsort
SELECT 69 + - 96 AS col1
----
-27

query I rowsort
SELECT DISTINCT - 94 + + 85
----
-9

query I rowsort
SELECT 59 * - 27 * - 82 AS col2
----
130626

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT 95 * + NULLIF ( SUM( DISTINCT + 51 ), 77 * 80 )
----
4845

skipif mysql # not compatible
query I rowsort label-4644
SELECT 95 * + NULLIF ( SUM ( DISTINCT + 51 ), 77 * 80 )
----
4845

query I rowsort
SELECT ( + - 98 ) + 45 * 83 AS col1
----
3637

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT DISTINCT 41 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT 41 / 32
----
1

query I rowsort
SELECT ALL - 77 - + - 58
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) * - ( NULLIF ( - COALESCE ( 63, 5 / - 6 ), 45 * - 76 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * - ( NULLIF ( - COALESCE ( 63, 5 / - 6 ), 45 * - 76 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 75 * 47 * + 88 AS col1
----
310200

query I rowsort
SELECT ALL ( - 42 ) - - 75 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT - COUNT( - 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-4651
SELECT - COUNT ( - 49 )
----
-1

query I rowsort
SELECT + 57 + + + 1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4653
SELECT + 16 / + + CASE 82 WHEN + 40 THEN 52 * - 96 + CASE - 77 WHEN 51 * 83 THEN CAST( - COUNT( * ) AS SIGNED ) END * - 9 ELSE MIN( DISTINCT 20 ) END * - CASE + AVG ( 18 ) WHEN AVG ( DISTINCT 9 ) + CAST( COALESCE ( 85, 70 ) AS DECIMAL ) THEN - 74 * + 89 ELSE + CASE WHEN NOT - 16 <> 99 / 75 THEN - 90 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT + 16 / + + CASE 82 WHEN + 40 THEN 52 * - 96 + CASE - 77 WHEN 51 * 83 THEN CAST ( - COUNT ( * ) AS INTEGER ) END * - 9 ELSE MIN ( DISTINCT 20 ) END * - CASE + AVG ( 18 ) WHEN AVG ( DISTINCT 9 ) + CAST ( COALESCE ( 85, 70 ) AS REAL ) THEN - 74 * + 89 ELSE + CASE WHEN NOT - 16 <> 99 / 75 THEN - 90 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL COUNT( * ) * + 96 * NULLIF ( 92, 39 )
----
8832

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL COUNT ( * ) * + 96 * NULLIF ( 92, 39 )
----
8832

query I rowsort
SELECT + 34 * - 0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4656
SELECT ALL 39 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL 39 * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 4 * - ( - 19 ) AS col1
----
-76

query I rowsort
SELECT 32 * - 93 + ( ( ( COALESCE ( 24, 78 * 70 ) ) ) ) * 15
----
-2616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4659
SELECT + ( ( CASE WHEN NOT NULL NOT BETWEEN 50 AND ( MAX( ( 23 ) ) + ( + 69 + + 36 ) * AVG ( ALL + 91 DIV + CAST( - 77 AS SIGNED ) ) ) THEN 68 * 93 + 40 ELSE + 99 + 3 END ) ) DIV 77 - 16
----
-15

skipif mysql # not compatible
query I rowsort label-4659
SELECT + ( ( CASE WHEN NOT NULL NOT BETWEEN 50 AND ( MAX ( ( 23 ) ) + ( + 69 + + 36 ) * AVG ( ALL + 91 / + CAST ( - 77 AS INTEGER ) ) ) THEN 68 * 93 + 40 ELSE + 99 + 3 END ) ) / 77 - 16
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4660
SELECT + 84 DIV 20 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4660
SELECT + 84 / 20 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4661
SELECT - - 9 DIV COUNT( * ) * MAX( DISTINCT + 74 * + 72 ) + + 94 + 34
----
48080

skipif mysql # not compatible
query I rowsort label-4661
SELECT - - 9 / COUNT ( * ) * MAX ( DISTINCT + 74 * + 72 ) + + 94 + 34
----
48080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT - CAST( NULL AS SIGNED ) * 59 - - 75 * 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT - CAST ( NULL AS INTEGER ) * 59 - - 75 * 41 AS col1
----
NULL

query I rowsort
SELECT + + 17 * - 77
----
-1309

query I rowsort
SELECT ALL - 11 * + NULLIF ( 0, 53 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT + - COUNT( * ) + 82 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4665
SELECT + - COUNT ( * ) + 82 AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT ALL + + CASE 57 WHEN - 47 THEN COUNT( * ) + - 77 * ( AVG ( ALL 51 ) ) ELSE 49 / + 22 + CAST( NULL AS SIGNED ) * + 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL + + CASE 57 WHEN - 47 THEN COUNT ( * ) + - 77 * ( AVG ( ALL 51 ) ) ELSE 49 / + 22 + CAST ( NULL AS INTEGER ) * + 35 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT + + 25 + - MAX( DISTINCT + 38 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4667
SELECT + + 25 + - MAX ( DISTINCT + 38 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL + - NULLIF ( 91, + 38 / + COUNT( * ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + - NULLIF ( 91, + 38 / + COUNT ( * ) ) AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4669
SELECT DISTINCT + - CAST( - - 58 AS SIGNED ) * SUM( CASE 7 WHEN 63 + 0 * 61 THEN 47 * - 18 ELSE NULL END + ( - 35 + 99 ) ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT + - CAST ( - - 58 AS INTEGER ) * SUM ( CASE 7 WHEN 63 + 0 * 61 THEN 47 * - 18 ELSE NULL END + ( - 35 + 99 ) ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - + 99 * - 11 + CASE 54 WHEN 61 THEN 47 WHEN - 59 THEN NULL WHEN 98 THEN NULL ELSE NULL END col1
----
NULL

query I rowsort
SELECT + NULLIF ( - + 2, 45 )
----
-2

query I rowsort
SELECT - 0 * + 55 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT + 40 * - + COUNT( * ) - - 22 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4673
SELECT + 40 * - + COUNT ( * ) - - 22 AS col1
----
-18

query I rowsort
SELECT - + 84 + + + 77 + + 9 * 9 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL + 79 * 52 + + ( - MIN( DISTINCT 7 ) )
----
4101

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL + 79 * 52 + + ( - MIN ( DISTINCT 7 ) )
----
4101

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT - - 9 + + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4676
SELECT - - 9 + + + COUNT ( * )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT ALL + CAST( NULL AS SIGNED ) * + 73 * 1 + - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + CAST ( NULL AS INTEGER ) * + 73 * 1 + - 39 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT + + 40 DIV + - 47
----
0

skipif mysql # not compatible
query I rowsort label-4678
SELECT + + 40 / + - 47
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4679
SELECT ALL + 15 * + CAST( 98 AS SIGNED ) + + 50 * MAX( ALL + 7 * 78 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL + 15 * + CAST ( 98 AS INTEGER ) + + 50 * MAX ( ALL + 7 * 78 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT - ( COUNT( * ) ) * - 63 + + 80 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT - ( COUNT ( * ) ) * - 63 + + 80 AS col1
----
143

query I rowsort
SELECT - COALESCE ( 38, - 94 )
----
-38

query I rowsort
SELECT ALL - 50 * - - 84 + + 76 AS col0
----
-4124

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT + ( + ( + COUNT( 68 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4683
SELECT + ( + ( + COUNT ( 68 ) ) )
----
1

query I rowsort
SELECT ALL 59 * + 70 * - 66
----
-272580

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL + SUM( - 54 ) * 36 AS col1
----
-1944

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL + SUM ( - 54 ) * 36 AS col1
----
-1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4686
SELECT - NULLIF ( + 54, - SUM( DISTINCT 65 ) ) DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT - NULLIF ( + 54, - SUM ( DISTINCT 65 ) ) / 94 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4687
SELECT ALL + 35 DIV MIN( ALL + 1 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL + 35 / MIN ( ALL + 1 ) AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4688
SELECT + 18 - + 12 + + - COUNT( * ) DIV 99 col1
----
6

skipif mysql # not compatible
query I rowsort label-4688
SELECT + 18 - + 12 + + - COUNT ( * ) / 99 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT + CASE - + 42 WHEN + + CASE - ( - 12 ) WHEN 60 / + ( ( 72 ) * 79 ) THEN NULL WHEN - 66 THEN NULL WHEN 98 + - 83 / 88 THEN 37 END THEN - 89 END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT + CASE - + 42 WHEN + + CASE - ( - 12 ) WHEN 60 / + ( ( 72 ) * 79 ) THEN NULL WHEN - 66 THEN NULL WHEN 98 + - 83 / 88 THEN 37 END THEN - 89 END - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT - CAST( NULL AS SIGNED ) * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT - CAST ( NULL AS INTEGER ) * - 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4691
SELECT ALL + 35 DIV - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL + 35 / - 77 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4692
SELECT 4 AS col2, + 60 + + COUNT( * ) AS col2
----
4
61

skipif mysql # not compatible
query II rowsort label-4692
SELECT 4 AS col2, + 60 + + COUNT ( * ) AS col2
----
4
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4693
SELECT - 30 AS col1, - MIN( DISTINCT + 51 ) + - 63
----
-30
-114

skipif mysql # not compatible
query II rowsort label-4693
SELECT - 30 AS col1, - MIN ( DISTINCT + 51 ) + - 63
----
-30
-114

query I rowsort
SELECT - 76 * ( + - 35 )
----
2660

query I rowsort
SELECT DISTINCT ( + ( + 8 ) )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4696
SELECT DISTINCT - 63 * COALESCE ( + 63, ( 0 ) DIV 55 + 59 ) AS col0
----
-3969

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT - 63 * COALESCE ( + 63, ( 0 ) / 55 + 59 ) AS col0
----
-3969

query II rowsort
SELECT 21 col2, + 65 AS col0
----
21
65

query I rowsort
SELECT ALL - 45 * + 21 * CASE + 15 WHEN 86 THEN NULL WHEN 72 THEN 91 WHEN ( - 55 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT - COUNT( * ) - - COALESCE ( + + COUNT( * ), - CASE - 29 WHEN 60 + + ( 28 ) THEN NULL ELSE 2 * + COUNT( * ) END * + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT - COUNT ( * ) - - COALESCE ( + + COUNT ( * ), - CASE - 29 WHEN 60 + + ( 28 ) THEN NULL ELSE 2 * + COUNT ( * ) END * + 61 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT ALL - 72 * COUNT( * ) * + ( 96 )
----
-6912

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL - 72 * COUNT ( * ) * + ( 96 )
----
-6912

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4701
SELECT DISTINCT CASE + 26 WHEN 27 THEN - CAST( NULL AS DECIMAL ) + - 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT CASE + 26 WHEN 27 THEN - CAST ( NULL AS REAL ) + - 48 END
----
NULL

query I rowsort
SELECT ALL ( - - 0 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4703
SELECT ALL + NULLIF ( - + NULLIF ( 11, - 28 + CAST( NULL AS SIGNED ) ), 58 ) * + 15
----
-165

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL + NULLIF ( - + NULLIF ( 11, - 28 + CAST ( NULL AS INTEGER ) ), 58 ) * + 15
----
-165

query I rowsort
SELECT + 10 * - + ( - - 27 )
----
-270

query II rowsort
SELECT 20 AS col0, - 8 + + 2
----
20
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4706
SELECT - 81 + - - 64 + - + 87 + COALESCE ( - MAX( 42 ) + 24 * NULLIF ( + MAX( DISTINCT - 74 ) * 8 + CAST( + CASE + 9 WHEN + NULLIF ( 95, 37 * 40 ) THEN 23 ELSE NULL END AS SIGNED ) DIV + ( + 7 ), 33 ), 77 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4706
SELECT - 81 + - - 64 + - + 87 + COALESCE ( - MAX ( 42 ) + 24 * NULLIF ( + MAX ( DISTINCT - 74 ) * 8 + CAST ( + CASE + 9 WHEN + NULLIF ( 95, 37 * 40 ) THEN 23 ELSE NULL END AS INTEGER ) / + ( + 7 ), 33 ), 77 ) AS col1
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4707
SELECT ALL CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4708
SELECT + 63 - + CAST( + MAX( - 26 ) AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4708
SELECT + 63 - + CAST ( + MAX ( - 26 ) AS INTEGER ) AS col2
----
89

query I rowsort
SELECT - + 46 * - + 62
----
2852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4710
SELECT ALL ( - 60 ) DIV + - 97 * - 20 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL ( - 60 ) / + - 97 * - 20 + COUNT ( * ) AS col0
----
1

query II rowsort
SELECT ALL + + 5 col1, 30
----
5
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT DISTINCT + COUNT( - 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + COUNT ( - 81 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT DISTINCT + 40 DIV - 48 + - COALESCE ( 90, + 38 )
----
-90

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT + 40 / - 48 + - COALESCE ( 90, + 38 )
----
-90

query I rowsort
SELECT - 1 * - 85 col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + 78 * MAX( + 86 ) - 81
----
6627

skipif mysql # not compatible
query I rowsort label-4715
SELECT + 78 * MAX ( + 86 ) - 81
----
6627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4716
SELECT + - COALESCE ( 63, 96, 98 + - 61 DIV 41, COUNT( * ) + 73, + 88 + + CAST( 78 AS SIGNED ) ) * + NULLIF ( 5, + 49 + 68 * 7 )
----
-315

skipif mysql # not compatible
query I rowsort label-4716
SELECT + - COALESCE ( 63, 96, 98 + - 61 / 41, COUNT ( * ) + 73, + 88 + + CAST ( 78 AS INTEGER ) ) * + NULLIF ( 5, + 49 + 68 * 7 )
----
-315

query I rowsort
SELECT ALL + 50 * 87 AS col0
----
4350

query I rowsort
SELECT + + 44 + 0 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT + COUNT( - - 19 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4719
SELECT + COUNT ( - - 19 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT DISTINCT + 39 DIV - + 61 + - 53 - + 45 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT + 39 / - + 61 + - 53 - + 45 AS col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4721
SELECT ALL + ( - 15 ) * + 61 * MAX( + 41 ) - 92 DIV - 57 + 32 AS col1
----
-37482

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + ( - 15 ) * + 61 * MAX ( + 41 ) - 92 / - 57 + 32 AS col1
----
-37482

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT 53 * - COUNT( * ) - + CASE - 60 WHEN + 82 THEN 85 * 40 WHEN MIN( ALL + 8 ) * COUNT( * ) THEN NULL END - - 62 / 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT 53 * - COUNT ( * ) - + CASE - 60 WHEN + 82 THEN 85 * 40 WHEN MIN ( ALL + 8 ) * COUNT ( * ) THEN NULL END - - 62 / 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4723
SELECT DISTINCT + - COUNT( * ), COUNT( * ) * 37 / CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4723
SELECT DISTINCT + - COUNT ( * ), COUNT ( * ) * 37 / CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4724
SELECT ALL + AVG ( ALL - 74 ) * - + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + AVG ( ALL - 74 ) * - + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + + 39 * + 43 - + + 0
----
1677

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4726
SELECT ALL 45 * + ( - 79 ) - - + COUNT( 51 ) - + COUNT( * ) DIV - 23 col0
----
-3554

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL 45 * + ( - 79 ) - - + COUNT ( 51 ) - + COUNT ( * ) / - 23 col0
----
-3554

query I rowsort
SELECT + 58 * 22 + - - 83 + + + 66 + 74
----
1499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4728
SELECT + 95 + - COUNT( * ) * + COUNT( * ) DIV + + MAX( + 16 )
----
95

skipif mysql # not compatible
query I rowsort label-4728
SELECT + 95 + - COUNT ( * ) * + COUNT ( * ) / + + MAX ( + 16 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT 40 * + 38 - - COUNT( DISTINCT - 45 ) AS col0
----
1521

skipif mysql # not compatible
query I rowsort label-4729
SELECT 40 * + 38 - - COUNT ( DISTINCT - 45 ) AS col0
----
1521

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL 65 * - SUM( - 36 )
----
2340

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL 65 * - SUM ( - 36 )
----
2340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4731
SELECT ( - COUNT( * ) ) + + + 6 DIV - COALESCE ( 1, - 6, 98 * 19 ) + + ( 24 ) DIV COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-4731
SELECT ( - COUNT ( * ) ) + + + 6 / - COALESCE ( 1, - 6, 98 * 19 ) + + ( 24 ) / COUNT ( * )
----
17

query I rowsort
SELECT 4 - - 75 * - 12
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ( + SUM( 60 ) ) * - + 66
----
-3960

skipif mysql # not compatible
query I rowsort label-4733
SELECT ( + SUM ( 60 ) ) * - + 66
----
-3960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4734
SELECT 78 + + CAST( + COUNT( * ) AS SIGNED ) - + COALESCE ( CASE - 58 WHEN + 18 - COUNT( * ) THEN + COALESCE ( 23, + 41, COUNT( * ) ) + 54 WHEN 57 THEN 98 ELSE 43 END, 95 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4734
SELECT 78 + + CAST ( + COUNT ( * ) AS INTEGER ) - + COALESCE ( CASE - 58 WHEN + 18 - COUNT ( * ) THEN + COALESCE ( 23, + 41, COUNT ( * ) ) + 54 WHEN 57 THEN 98 ELSE 43 END, 95 ) AS col1
----
36

query I rowsort
SELECT ALL 29 * 93 * + 33 AS col0
----
89001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT CAST( + 82 AS SIGNED ) + - + 95
----
-13

skipif mysql # not compatible
query I rowsort label-4736
SELECT CAST ( + 82 AS INTEGER ) + - + 95
----
-13

query II rowsort
SELECT DISTINCT 5 * - - 79, + 29 * - 16 AS col1
----
395
-464

query I rowsort
SELECT 4 + 55
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4739
SELECT 20 DIV 61 DIV MAX( 11 )
----
0

skipif mysql # not compatible
query I rowsort label-4739
SELECT 20 / 61 / MAX ( 11 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT 90 + - + 24 + - 81 DIV - 12
----
72

skipif mysql # not compatible
query I rowsort label-4740
SELECT 90 + - + 24 + - 81 / - 12
----
72

query I rowsort
SELECT COALESCE ( - ( + - 13 ), + 31 ) + + 74 AS col2
----
87

query I rowsort
SELECT 3 * + - 60 * + 16 AS col0
----
-2880

query I rowsort
SELECT 39 + + + 95 + 79 + - 16 AS col1
----
197

query I rowsort
SELECT ALL - ( - + ( - - ( - 79 ) ) ) + 15
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-4745
SELECT ALL + COUNT( * ) * + COUNT( * ), + 64 AS col1
----
1
64

skipif mysql # not compatible
query II rowsort label-4745
SELECT ALL + COUNT ( * ) * + COUNT ( * ), + 64 AS col1
----
1
64

query I rowsort
SELECT DISTINCT + 72 * 5 * + 97 AS col1
----
34920

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT ALL - COUNT( * ) + + 43 * + 7 col1
----
300

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL - COUNT ( * ) + + 43 * + 7 col1
----
300

query I rowsort
SELECT ALL - - 34 + - 77
----
-43

query I rowsort
SELECT ( - 67 ) * + - 38 AS col1
----
2546

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT + 95 + - COUNT( DISTINCT 88 )
----
94

skipif mysql # not compatible
query I rowsort label-4750
SELECT + 95 + - COUNT ( DISTINCT 88 )
----
94

query I rowsort
SELECT + 50 * - CASE - - 28 WHEN 76 + + 25 THEN + 23 * 92 + 73 END * 58 + + 99 AS col0
----
NULL

query I rowsort
SELECT - 78 - 56
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4753
SELECT + - ( - MAX( - NULLIF ( + 21, CAST( - 67 AS SIGNED ) + - 78 * - 15 ) ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4753
SELECT + - ( - MAX ( - NULLIF ( + 21, CAST ( - 67 AS INTEGER ) + - 78 * - 15 ) ) ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT - 63 DIV - - 94 + + 4 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4754
SELECT - 63 / - - 94 + + 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT + + COUNT( * ) * + 50 + + 7 col1
----
57

skipif mysql # not compatible
query I rowsort label-4755
SELECT + + COUNT ( * ) * + 50 + + 7 col1
----
57

query I rowsort
SELECT DISTINCT - - ( 21 ) AS col2
----
21

query II rowsort
SELECT DISTINCT - 60 + - 99 AS col0, + 79 AS col0
----
-159
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT + MIN( DISTINCT - - 72 ) * 56 AS col1
----
4032

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT + MIN ( DISTINCT - - 72 ) * 56 AS col1
----
4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4759
SELECT DISTINCT - - COUNT( * ) DIV + - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT - - COUNT ( * ) / + - ( - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT 92 * 3 + - 16 AS col0
----
260

query I rowsort
SELECT + 85 + + 19 * 49
----
1016

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT DISTINCT 64 * - MAX( ALL + 1 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT 64 * - MAX ( ALL + 1 ) AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4763
SELECT ALL - 33 AS col1, 71 - + ( - COUNT( * ) ) + - CAST( NULL AS SIGNED ) + 41
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-4763
SELECT ALL - 33 AS col1, 71 - + ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) + 41
----
-33
NULL

query I rowsort
SELECT DISTINCT 24 * + 95 * + 77
----
175560

query I rowsort
SELECT DISTINCT + 90 * - 8 AS col2
----
-720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4766
SELECT CASE + COALESCE ( - CASE - + 12 WHEN + COALESCE ( - ( - 84 ), 49, 19 + + 51 ) * ( + 31 ) THEN 95 WHEN - 3 + 47 THEN NULL WHEN - ( 74 ) THEN - 60 * 10 ELSE 96 END, + 1 / COALESCE ( CAST( + 64 AS SIGNED ) * 24, NULLIF ( 13, 8 - + COUNT( * ) ) ) ) WHEN 58 * - 54 THEN ( 9 ) END * - ( + COALESCE ( + 16, 22 + 76 ) * - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT CASE + COALESCE ( - CASE - + 12 WHEN + COALESCE ( - ( - 84 ), 49, 19 + + 51 ) * ( + 31 ) THEN 95 WHEN - 3 + 47 THEN NULL WHEN - ( 74 ) THEN - 60 * 10 ELSE 96 END, + 1 / COALESCE ( CAST ( + 64 AS INTEGER ) * 24, NULLIF ( 13, 8 - + COUNT ( * ) ) ) ) WHEN 58 * - 54 THEN ( 9 ) END * - ( + COALESCE ( + 16, 22 + 76 ) * - 86 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4767
SELECT DISTINCT 88 * + CAST( NULL AS DECIMAL ) * - NULLIF ( - 27, - + CAST( 30 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT 88 * + CAST ( NULL AS REAL ) * - NULLIF ( - 27, - + CAST ( 30 AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 84 - - 74 AS col1
----
158

query I rowsort
SELECT ( + + 68 ) - - - 63 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ( + + 42 ) * + + ( - SUM( - 83 ) )
----
3486

skipif mysql # not compatible
query I rowsort label-4770
SELECT ( + + 42 ) * + + ( - SUM ( - 83 ) )
----
3486

query I rowsort
SELECT DISTINCT 10 + 10
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT ALL 81 + + - ( 96 ) - CAST( + 40 AS SIGNED ) + COUNT( * ) * 82 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL 81 + + - ( 96 ) - CAST ( + 40 AS INTEGER ) + COUNT ( * ) * 82 AS col1
----
27

query I rowsort
SELECT ALL 45 * - 18 AS col1
----
-810

query I rowsort
SELECT ALL 57 * 98 AS col1
----
5586

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT COUNT( * ) + - 73 + - - COUNT( * ) * + COUNT( DISTINCT - 26 ) + 80 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT COUNT ( * ) + - 73 + - - COUNT ( * ) * + COUNT ( DISTINCT - 26 ) + 80 AS col0
----
9

query I rowsort
SELECT DISTINCT 74 + + + 31 AS col1
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT DISTINCT - 32 + 3 DIV + 5
----
-32

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT - 32 + 3 / + 5
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ALL NULLIF ( - ( + COUNT( * ) ), - - 53 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL NULLIF ( - ( + COUNT ( * ) ), - - 53 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT CAST( + - 50 AS SIGNED ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4779
SELECT CAST ( + - 50 AS INTEGER ) AS col0
----
-50

query II rowsort
SELECT - - 55 AS col1, 98 AS col2
----
55
98

query II rowsort
SELECT ALL 13 AS col0, + 95 + + - ( - 75 ) AS col1
----
13
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT - 92 * - - COALESCE ( + CASE - 44 WHEN + 68 + + COUNT( DISTINCT + 97 ) THEN - 25 END, - 80, 84 + 76 )
----
7360

skipif mysql # not compatible
query I rowsort label-4782
SELECT - 92 * - - COALESCE ( + CASE - 44 WHEN + 68 + + COUNT ( DISTINCT + 97 ) THEN - 25 END, - 80, 84 + 76 )
----
7360

query I rowsort
SELECT - 67 * - NULLIF ( - - 20, + 31 ) AS col2
----
1340

query I rowsort
SELECT DISTINCT + + 69 + + - 42 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT - + COUNT( * ) + + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT - + COUNT ( * ) + + - COUNT ( * )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT MAX( - CAST( - ( 80 ) AS SIGNED ) ) * ( - 76 ) AS col1
----
-6080

skipif mysql # not compatible
query I rowsort label-4786
SELECT MAX ( - CAST ( - ( 80 ) AS INTEGER ) ) * ( - 76 ) AS col1
----
-6080

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT - COUNT( - 73 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4787
SELECT - COUNT ( - 73 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL - NULLIF ( - CASE - CASE 50 WHEN - SUM( ALL + 62 ) THEN + AVG ( + 42 ) ELSE + 8 END WHEN 19 + - 53 THEN 32 END, - 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - NULLIF ( - CASE - CASE 50 WHEN - SUM ( ALL + 62 ) THEN + AVG ( + 42 ) ELSE + 8 END WHEN 19 + - 53 THEN 32 END, - 53 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 67 * - 99 AS col0
----
-6633

query I rowsort
SELECT ALL 27 * - + COALESCE ( + + 22, + + 68 ) * - + 91 - + 75 AS col1
----
53979

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT + NULLIF ( - 45, 53 * + 66 + + COUNT( * ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4791
SELECT + NULLIF ( - 45, 53 * + 66 + + COUNT ( * ) ) AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4792
SELECT + - 2 DIV - 60 * + + 76 - - + 80 * 96 + 51 AS col0
----
7731

skipif mysql # not compatible
query I rowsort label-4792
SELECT + - 2 / - 60 * + + 76 - - + 80 * 96 + 51 AS col0
----
7731

query I rowsort
SELECT ALL - + 52 * - 24 AS col0
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - COUNT( * ) + - 48 - - 56
----
7

skipif mysql # not compatible
query I rowsort label-4794
SELECT - COUNT ( * ) + - 48 - - 56
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT SUM( - 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4795
SELECT SUM ( - 29 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL ( COUNT( DISTINCT - ( - 90 ) ) ) * + 48 - - 71
----
119

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL ( COUNT ( DISTINCT - ( - 90 ) ) ) * + 48 - - 71
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-4797
SELECT COUNT( * ) col1, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4797
SELECT COUNT ( * ) col1, COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT - 48 * - + 59
----
2832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4799
SELECT DISTINCT - COALESCE ( + - COALESCE ( - 62, - - SUM( ALL - 59 ) ), - CASE - 22 WHEN 41 * + COUNT( * ) THEN NULL ELSE COUNT( * ) END, 12 * + ( - 77 ) + NULLIF ( + 35 + + 4, 78 * 6 ) * 42 ) DIV + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT - COALESCE ( + - COALESCE ( - 62, - - SUM ( ALL - 59 ) ), - CASE - 22 WHEN 41 * + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END, 12 * + ( - 77 ) + NULLIF ( + 35 + + 4, 78 * 6 ) * 42 ) / + COUNT ( * )
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-4800
SELECT + 74 * - - 73 - 86 DIV + 28, - 93 - + 20 * - 22 AS col2
----
5399
347

skipif mysql # not compatible
query II rowsort label-4800
SELECT + 74 * - - 73 - 86 / + 28, - 93 - + 20 * - 22 AS col2
----
5399
347

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL + NULLIF ( - - 5, COUNT( * ) + - - 72 + + + COALESCE ( 87, - 65 * - 70, 28 ) / + ( - 92 - - CASE MIN( ALL 26 ) WHEN + ( + 47 ) THEN 91 * 7 WHEN 98 THEN + 32 END * 97 ) )
----
5

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + NULLIF ( - - 5, COUNT ( * ) + - - 72 + + + COALESCE ( 87, - 65 * - 70, 28 ) / + ( - 92 - - CASE MIN ( ALL 26 ) WHEN + ( + 47 ) THEN 91 * 7 WHEN 98 THEN + 32 END * 97 ) )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4802
SELECT ALL - 13 DIV - + 82 * + + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - 13 / - + 82 * + + COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4803
SELECT + 81 AS col2, 91 * 9 + 88 * - - ( COUNT( * ) ) col1
----
81
907

skipif mysql # not compatible
query II rowsort label-4803
SELECT + 81 AS col2, 91 * 9 + 88 * - - ( COUNT ( * ) ) col1
----
81
907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4804
SELECT + 11 * + + COUNT( CAST( NULL AS SIGNED ) ) * CASE + 29 WHEN + 0 THEN + COALESCE ( - 76, 89, 70 + COUNT( * ) DIV + 4 ) WHEN 98 + + MAX( - 7 ) DIV 17 THEN 36 ELSE 81 END * + 20 + - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4804
SELECT + 11 * + + COUNT ( CAST ( NULL AS INTEGER ) ) * CASE + 29 WHEN + 0 THEN + COALESCE ( - 76, 89, 70 + COUNT ( * ) / + 4 ) WHEN 98 + + MAX ( - 7 ) / 17 THEN 36 ELSE 81 END * + 20 + - 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT COUNT( ( 26 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4805
SELECT COUNT ( ( 26 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4806
SELECT + 70 DIV CAST( + COALESCE ( - + 48, - COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4806
SELECT + 70 / CAST ( + COALESCE ( - + 48, - COUNT ( * ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL - CASE + 11 WHEN - COUNT( * ) * + - ( + 7 ) THEN 96 WHEN - COUNT( * ) * + 75 + + COUNT( * ) THEN NULL END + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL - CASE + 11 WHEN - COUNT ( * ) * + - ( + 7 ) THEN 96 WHEN - COUNT ( * ) * + 75 + + COUNT ( * ) THEN NULL END + 83 AS col2
----
NULL

query I rowsort
SELECT 14 * - 80 - + - 70 col0
----
-1050

query II rowsort
SELECT - 58 + + + 93 AS col0, - 93 + - 64 AS col2
----
35
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL ( + 35 ) * - 60 - + SUM( + - 8 ) * - COUNT( * ) + 38 col1
----
-2070

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL ( + 35 ) * - 60 - + SUM ( + - 8 ) * - COUNT ( * ) + 38 col1
----
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL - 87 + - 40 + + 66 * - + COALESCE ( + 44, + ( 76 ) * COUNT( * ) ) AS col1
----
-3031

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - 87 + - 40 + + 66 * - + COALESCE ( + 44, + ( 76 ) * COUNT ( * ) ) AS col1
----
-3031

query I rowsort
SELECT + 45 * + 70 AS col1
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL COALESCE ( - + 0, + CASE + COUNT( * ) WHEN + 27 * + NULLIF ( + 79, + 58 ) * - 99 THEN NULL WHEN - 50 * 80 THEN - 75 ELSE NULL END ) + ( - COUNT( * ) + 15 ) * - 42 AS col2
----
-588

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL COALESCE ( - + 0, + CASE + COUNT ( * ) WHEN + 27 * + NULLIF ( + 79, + 58 ) * - 99 THEN NULL WHEN - 50 * 80 THEN - 75 ELSE NULL END ) + ( - COUNT ( * ) + 15 ) * - 42 AS col2
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT - MAX( ALL - 4 ) * + 49
----
196

skipif mysql # not compatible
query I rowsort label-4815
SELECT - MAX ( ALL - 4 ) * + 49
----
196

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4816
SELECT ALL 68 AS col2, - 86 DIV - COUNT( * )
----
68
86

skipif mysql # not compatible
query II rowsort label-4816
SELECT ALL 68 AS col2, - 86 / - COUNT ( * )
----
68
86

query II rowsort
SELECT + 77 + + 23 AS col0, + 44 AS col2
----
100
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4818
SELECT + - COALESCE ( + + COUNT( * ), - 2, - 87 ) + + COUNT( * ) DIV - ( 8 ) + 57 DIV + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4818
SELECT + - COALESCE ( + + COUNT ( * ), - 2, - 87 ) + + COUNT ( * ) / - ( 8 ) + 57 / + 51 AS col0
----
0

query II rowsort
SELECT - - 1 AS col0, - 76
----
1
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL COUNT( * ) * - + 42
----
-42

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL COUNT ( * ) * - + 42
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4821
SELECT 59 AS col1, - 39 * + COUNT( ALL + 69 ) - + 74 AS col0
----
59
-113

skipif mysql # not compatible
query II rowsort label-4821
SELECT 59 AS col1, - 39 * + COUNT ( ALL + 69 ) - + 74 AS col0
----
59
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4822
SELECT ALL + COUNT( DISTINCT - 46 ) DIV + + 93
----
0

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL + COUNT ( DISTINCT - 46 ) / + + 93
----
0

query I rowsort
SELECT DISTINCT 78 - - - 61 AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT - COUNT( * ) AS col0, + COALESCE ( + 89, - 49, - 55 )
----
-1
89

skipif mysql # not compatible
query II rowsort label-4824
SELECT - COUNT ( * ) AS col0, + COALESCE ( + 89, - 49, - 55 )
----
-1
89

query I rowsort
SELECT DISTINCT 96 - + - 77 * 37 col1
----
2945

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT ALL + 2 * - 65 * 9 + - 92 + - 78 DIV - - NULLIF ( - 25, - ( - 88 ) ) AS col1
----
-1259

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL + 2 * - 65 * 9 + - 92 + - 78 / - - NULLIF ( - 25, - ( - 88 ) ) AS col1
----
-1259

onlyif mysql # aggregate syntax: 
query II rowsort label-4827
SELECT DISTINCT - COUNT( * ), 49 AS col0
----
-1
49

skipif mysql # not compatible
query II rowsort label-4827
SELECT DISTINCT - COUNT ( * ), 49 AS col0
----
-1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT + CASE - + AVG ( DISTINCT + 28 ) WHEN NULLIF ( + CASE - 15 WHEN 89 THEN 30 * COUNT( * ) END, 17 ) + ( 1 ) THEN 63 * 71 WHEN - 14 THEN NULL ELSE NULL END + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT + CASE - + AVG ( DISTINCT + 28 ) WHEN NULLIF ( + CASE - 15 WHEN 89 THEN 30 * COUNT ( * ) END, 17 ) + ( 1 ) THEN 63 * 71 WHEN - 14 THEN NULL ELSE NULL END + + 90
----
NULL

query I rowsort
SELECT - 67 * 54 col1
----
-3618

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT + 4 DIV 79 DIV + 67 * 29 * 57 + - + 46
----
-46

skipif mysql # not compatible
query I rowsort label-4830
SELECT + 4 / 79 / + 67 * 29 * 57 + - + 46
----
-46

query I rowsort
SELECT + COALESCE ( - 35, 37 ) * - - 54 + + 8 + - 0 * 45
----
-1882

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT + - MAX( 93 ) * - 24
----
2232

skipif mysql # not compatible
query I rowsort label-4832
SELECT + - MAX ( 93 ) * - 24
----
2232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4833
SELECT ALL - 75 / 94 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL - 75 / 94 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 18 * - 95 AS col2
----
1710

query I rowsort
SELECT - 7 * - 10 + - + 41
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4836
SELECT DISTINCT - COUNT( * ) * - 35 AS col0, - ( COALESCE ( - CASE + - 70 WHEN 48 THEN 83 WHEN 15 + - COUNT( ALL 68 ) THEN NULL END, + MAX( - 69 ) * - COUNT( * ), - ( - 5 ) ) ) AS col0
----
35
-69

skipif mysql # not compatible
query II rowsort label-4836
SELECT DISTINCT - COUNT ( * ) * - 35 AS col0, - ( COALESCE ( - CASE + - 70 WHEN 48 THEN 83 WHEN 15 + - COUNT ( ALL 68 ) THEN NULL END, + MAX ( - 69 ) * - COUNT ( * ), - ( - 5 ) ) ) AS col0
----
35
-69

query II rowsort
SELECT + 88 * - 26 AS col1, - 97 AS col2
----
-2288
-97

query I rowsort
SELECT - 94 * - 94 col2
----
8836

query I rowsort
SELECT ALL 26 * + 63 + + 86 + + - 80
----
1644

query I rowsort
SELECT ( 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL + 84 * + 69 * - MIN( - - CASE 74 WHEN 6 THEN NULL WHEN - 89 THEN + NULLIF ( - 38, - 69 * + 82 ) + 89 ELSE NULL END ) + - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL + 84 * + 69 * - MIN ( - - CASE 74 WHEN 6 THEN NULL WHEN - 89 THEN + NULLIF ( - 38, - 69 * + 82 ) + 89 ELSE NULL END ) + - 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT DISTINCT - 0 * + - 46 + 49 - - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT - 0 * + - 46 + 49 - - COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - 58 * + - 57 * CASE + 14 WHEN + SUM( DISTINCT 94 ) THEN + - COUNT( * ) + - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT - 58 * + - 57 * CASE + 14 WHEN + SUM ( DISTINCT 94 ) THEN + - COUNT ( * ) + - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL + ( + - 23 ) * 34 * COUNT( 27 ) + + 93 + - - 33
----
-656

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL + ( + - 23 ) * 34 * COUNT ( 27 ) + + 93 + - - 33
----
-656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT DISTINCT + CAST( - - COALESCE ( - 61, + 55 + 52 * ( + 16 ) ) AS SIGNED ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT + CAST ( - - COALESCE ( - 61, + 55 + 52 * ( + 16 ) ) AS INTEGER ) AS col1
----
-61

query I rowsort
SELECT ALL 69 * 92 * 49 + 92 * + 30 + 42 AS col0
----
313854

query I rowsort
SELECT DISTINCT + 23 * - 84 + - + 43 AS col1
----
-1975

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT - 28 * 86 * + - COUNT( * ) * + 69 / - MAX( DISTINCT - 33 ) * + - CASE 93 WHEN + 53 * 89 + MIN( 89 + + 43 * + 60 ) THEN 70 * + 13 + 88 END * + 4 - 58 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT - 28 * 86 * + - COUNT ( * ) * + 69 / - MAX ( DISTINCT - 33 ) * + - CASE 93 WHEN + 53 * 89 + MIN ( 89 + + 43 * + 60 ) THEN 70 * + 13 + 88 END * + 4 - 58 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL + MAX( ALL - - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL + MAX ( ALL - - 49 )
----
49

query I rowsort
SELECT - 45 + 77 AS col1
----
32

query I rowsort
SELECT - 92 - - 81 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT + COUNT( 43 ) * + 97 * + 49 col1
----
4753

skipif mysql # not compatible
query I rowsort label-4852
SELECT + COUNT ( 43 ) * + 97 * + 49 col1
----
4753

query I rowsort
SELECT - - ( 41 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT + + MAX( DISTINCT 82 ) + - - 60 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-4854
SELECT + + MAX ( DISTINCT 82 ) + - - 60 AS col0
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT - - ( + 82 ) * 25 DIV + 55
----
37

skipif mysql # not compatible
query I rowsort label-4855
SELECT - - ( + 82 ) * 25 / + 55
----
37

query I rowsort
SELECT ALL + 80 * - 74 * 42 * - + 48 + + - 89
----
11934631

query III rowsort
SELECT ALL - - 85 * 85, - 76 AS col1, + 46 AS col0
----
7225
-76
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4858
SELECT DISTINCT - CAST( 13 AS SIGNED ) - + CASE + - 53 WHEN + 58 THEN - 86 - + ( 41 ) DIV - 21 ELSE 33 END AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT - CAST ( 13 AS INTEGER ) - + CASE + - 53 WHEN + 58 THEN - 86 - + ( 41 ) / - 21 ELSE 33 END AS col1
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4859
SELECT DISTINCT + COALESCE ( - 89, ( 27 ), 49 ), + COUNT( * ) AS col2
----
-89
1

skipif mysql # not compatible
query II rowsort label-4859
SELECT DISTINCT + COALESCE ( - 89, ( 27 ), 49 ), + COUNT ( * ) AS col2
----
-89
1

query I rowsort
SELECT + 29 - - 73 * + 81
----
5942

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT + SUM( DISTINCT - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-4861
SELECT + SUM ( DISTINCT - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT 18 + - + SUM( - + 43 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4862
SELECT 18 + - + SUM ( - + 43 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT + 65 * + + COALESCE ( + + 7, - 91, + COUNT( * ) * COALESCE ( - 87, 77 ) ) - + MAX( DISTINCT 18 ) * + COUNT( * )
----
437

skipif mysql # not compatible
query I rowsort label-4863
SELECT + 65 * + + COALESCE ( + + 7, - 91, + COUNT ( * ) * COALESCE ( - 87, 77 ) ) - + MAX ( DISTINCT 18 ) * + COUNT ( * )
----
437

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT + 4 * + 88 * + - 47 + + - COUNT( * ) col2
----
-16545

skipif mysql # not compatible
query I rowsort label-4864
SELECT + 4 * + 88 * + - 47 + + - COUNT ( * ) col2
----
-16545

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT DISTINCT MIN( - 26 ) * + + 89 col1
----
-2314

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT MIN ( - 26 ) * + + 89 col1
----
-2314

query II rowsort
SELECT 44 * - 13, + 34 AS col1
----
-572
34

query I rowsort
SELECT ALL 48 * 15
----
720

query I rowsort
SELECT DISTINCT 65 + + 62
----
127

query I rowsort
SELECT 13 * + - 14 - + + 52 AS col0
----
-234

query II rowsort
SELECT DISTINCT - 46, - 19 col0
----
-46
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL COUNT( * ) + - 48 + + 93 * MIN( DISTINCT - ( + 91 ) ) AS col0
----
-8510

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL COUNT ( * ) + - 48 + + 93 * MIN ( DISTINCT - ( + 91 ) ) AS col0
----
-8510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4872
SELECT + 66 DIV COUNT( - 12 ) * - 23 + 69 + - 52 col0
----
-1501

skipif mysql # not compatible
query I rowsort label-4872
SELECT + 66 / COUNT ( - 12 ) * - 23 + 69 + - 52 col0
----
-1501

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT 94 + - 19 - 21 DIV 33
----
75

skipif mysql # not compatible
query I rowsort label-4873
SELECT 94 + - 19 - 21 / 33
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4874
SELECT ALL - 65 AS col2, + 51 + + COUNT( DISTINCT - 78 ) + COUNT( * ) + - 70 AS col2
----
-65
-17

skipif mysql # not compatible
query II rowsort label-4874
SELECT ALL - 65 AS col2, + 51 + + COUNT ( DISTINCT - 78 ) + COUNT ( * ) + - 70 AS col2
----
-65
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4875
SELECT - 78 * 16 + - COUNT( * ) col0, - 72
----
-1249
-72

skipif mysql # not compatible
query II rowsort label-4875
SELECT - 78 * 16 + - COUNT ( * ) col0, - 72
----
-1249
-72

query II rowsort
SELECT DISTINCT + ( + - 83 ) + + - 47 col0, 72 AS col0
----
-130
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT ALL + 24 + - - CAST( 89 AS SIGNED ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL + 24 + - - CAST ( 89 AS INTEGER ) AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL - MAX( ALL 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - MAX ( ALL 15 ) AS col2
----
-15

query II rowsort
SELECT DISTINCT - 67 AS col1, 67
----
-67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT - MIN( - + 43 ) col1
----
43

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT - MIN ( - + 43 ) col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL - CAST( NULL AS SIGNED ) - + 53 * - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - CAST ( NULL AS INTEGER ) - + 53 * - + 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4882
SELECT + 4 col2, CAST( + NULLIF ( 31, - COUNT( * ) * - + 24 + - 49 + + + 58 * + COUNT( * ) * - 98 ) AS SIGNED )
----
4
31

skipif mysql # not compatible
query II rowsort label-4882
SELECT + 4 col2, CAST ( + NULLIF ( 31, - COUNT ( * ) * - + 24 + - 49 + + + 58 * + COUNT ( * ) * - 98 ) AS INTEGER )
----
4
31

query I rowsort
SELECT + 63 + + 14 + - + 30
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL + 26 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL + 26 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL - 51 * + NULLIF ( + - 27, + ( - ( - - COUNT( * ) ) ) + MIN( + 7 ) ) * COUNT( * ) AS col1
----
1377

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL - 51 * + NULLIF ( + - 27, + ( - ( - - COUNT ( * ) ) ) + MIN ( + 7 ) ) * COUNT ( * ) AS col1
----
1377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4886
SELECT DISTINCT - 93 - - + ( - 91 ) - + - CAST( - COUNT( * ) AS SIGNED ) * + 88 * + 90 * - + COUNT( * )
----
7736

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT - 93 - - + ( - 91 ) - + - CAST ( - COUNT ( * ) AS INTEGER ) * + 88 * + 90 * - + COUNT ( * )
----
7736

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT ALL 81 AS col1, + COUNT( * ) * - + 28 + + + 16 AS col0
----
81
-12

skipif mysql # not compatible
query II rowsort label-4887
SELECT ALL 81 AS col1, + COUNT ( * ) * - + 28 + + + 16 AS col0
----
81
-12

query II rowsort
SELECT - 26 AS col0, 42 - - - 72 col1
----
-26
-30

query I rowsort
SELECT DISTINCT ( ( + 73 ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT + 22 * - MAX( 95 ) + - 67 * + + 89 AS col0
----
-8053

skipif mysql # not compatible
query I rowsort label-4890
SELECT + 22 * - MAX ( 95 ) + - 67 * + + 89 AS col0
----
-8053

onlyif mysql # DIV for integer division: 
query I rowsort label-4891
SELECT ALL + + ( - - 64 ) DIV 27
----
2

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + + ( - - 64 ) / 27
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT 43 + - - 28 DIV 2 * 70 * + + COUNT( DISTINCT + - 46 ) * ( + 55 )
----
53943

skipif mysql # not compatible
query I rowsort label-4892
SELECT 43 + - - 28 / 2 * 70 * + + COUNT ( DISTINCT + - 46 ) * ( + 55 )
----
53943

query I rowsort
SELECT - - ( 27 )
----
27

query I rowsort
SELECT ALL + - 45 * + - 4 * 88 * + 93
----
1473120

query I rowsort
SELECT ALL + 8 * 23 * - + 31 * - 58 + + - 29
----
330803

query I rowsort
SELECT - 2 * 38
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL 41 + - COUNT( * ) + 45 + - 54
----
31

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL 41 + - COUNT ( * ) + 45 + - 54
----
31

query I rowsort
SELECT DISTINCT + - 16 * - 19 AS col1
----
304

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4899
SELECT 12 + + NULLIF ( COUNT( * ), 53 DIV - 78 + COUNT( * ) ) AS col1, + 3
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4899
SELECT 12 + + NULLIF ( COUNT ( * ), 53 / - 78 + COUNT ( * ) ) AS col1, + 3
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT DISTINCT - + 3 + MIN( ALL - 40 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT - + 3 + MIN ( ALL - 40 ) AS col1
----
-43

query I rowsort
SELECT ALL + - 40 + + 8 AS col2
----
-32

query I rowsort
SELECT ALL - 54 + + + 39 * - 19
----
-795

query II rowsort
SELECT 20 + 53 col1, - 49
----
73
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL COUNT( * ) * - 75 + - 56 * + 54 * + - COALESCE ( + COUNT( * ), - 20, - + COUNT( * ) )
----
2949

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL COUNT ( * ) * - 75 + - 56 * + 54 * + - COALESCE ( + COUNT ( * ), - 20, - + COUNT ( * ) )
----
2949

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4905
SELECT DISTINCT + 0 + + 78 DIV - 28 * COUNT( * ) + - 68 + + 21 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT + 0 + + 78 / - 28 * COUNT ( * ) + - 68 + + 21 AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4906
SELECT ALL ( + - CASE - - CAST( NULL AS SIGNED ) WHEN - + 44 THEN NULL WHEN - - 30 + - ( - COUNT( * ) ) THEN NULL WHEN + + 0 THEN NULL ELSE + - CAST( NULL AS DECIMAL ) END ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL ( + - CASE - - CAST ( NULL AS INTEGER ) WHEN - + 44 THEN NULL WHEN - - 30 + - ( - COUNT ( * ) ) THEN NULL WHEN + + 0 THEN NULL ELSE + - CAST ( NULL AS REAL ) END ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT COALESCE ( - COUNT( DISTINCT + 67 ), - COALESCE ( ( - COUNT( * ) ), - COUNT( * ) - + 65 ), - 37 * 8 ) + 13 * + 3
----
38

skipif mysql # not compatible
query I rowsort label-4907
SELECT COALESCE ( - COUNT ( DISTINCT + 67 ), - COALESCE ( ( - COUNT ( * ) ), - COUNT ( * ) - + 65 ), - 37 * 8 ) + 13 * + 3
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT ALL ( + 63 ) * - CAST( 40 AS SIGNED )
----
-2520

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL ( + 63 ) * - CAST ( 40 AS INTEGER )
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL ( + 37 ) - + 62 * + + COALESCE ( 97, - + COUNT( * ) ) col0
----
-5977

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL ( + 37 ) - + 62 * + + COALESCE ( 97, - + COUNT ( * ) ) col0
----
-5977

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT NULLIF ( + 71, COUNT( * ) - + 13 * 84 ) * - + 54
----
-3834

skipif mysql # not compatible
query I rowsort label-4910
SELECT NULLIF ( + 71, COUNT ( * ) - + 13 * 84 ) * - + 54
----
-3834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4911
SELECT CAST( NULL AS SIGNED ) * + 74 * + 7 * + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT CAST ( NULL AS INTEGER ) * + 74 * + 7 * + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT 64 + - 23 * - CASE - MAX( DISTINCT + 36 ) WHEN ( + 83 ) THEN NULL ELSE 37 END
----
915

skipif mysql # not compatible
query I rowsort label-4912
SELECT 64 + - 23 * - CASE - MAX ( DISTINCT + 36 ) WHEN ( + 83 ) THEN NULL ELSE 37 END
----
915

onlyif mysql # aggregate syntax: 
query II rowsort label-4913
SELECT + MIN( ALL + 45 ) AS col1, 37 * + + 26
----
45
962

skipif mysql # not compatible
query II rowsort label-4913
SELECT + MIN ( ALL + 45 ) AS col1, 37 * + + 26
----
45
962

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT - CASE - + 61 WHEN + 52 * - 13 THEN + 79 WHEN - 66 THEN - COUNT( * ) + - CASE + + 40 WHEN 5 THEN 91 * 29 ELSE NULL END * - 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT - CASE - + 61 WHEN + 52 * - 13 THEN + 79 WHEN - 66 THEN - COUNT ( * ) + - CASE + + 40 WHEN 5 THEN 91 * 29 ELSE NULL END * - 25 END
----
NULL

query I rowsort
SELECT ALL 0 * + 37 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4916
SELECT ALL - COUNT( + 16 ) DIV - 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - COUNT ( + 16 ) / - 31 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL + + 85 * - + 13 * - 33 - + + SUM( DISTINCT 25 )
----
36440

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + + 85 * - + 13 * - 33 - + + SUM ( DISTINCT 25 )
----
36440

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL + COUNT( * ) * ( 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL + COUNT ( * ) * ( 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + + COUNT( * ) - 94
----
-93

skipif mysql # not compatible
query I rowsort label-4919
SELECT + + COUNT ( * ) - 94
----
-93

query II rowsort
SELECT - 20 * - 58 col1, + 5 AS col2
----
1160
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL ( + 46 ) * + CASE - 31 WHEN 60 / - + ( - MIN( - - 1 ) ) + 61 + + 85 THEN NULL ELSE ( 76 ) END
----
3496

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL ( + 46 ) * + CASE - 31 WHEN 60 / - + ( - MIN ( - - 1 ) ) + 61 + + 85 THEN NULL ELSE ( 76 ) END
----
3496

query I rowsort
SELECT ALL 42 + - 49 - + - 63 - + 91 AS col1
----
-35

query I rowsort
SELECT ALL 47 * - 44 * - + 70
----
144760

onlyif mysql # aggregate syntax: 
query II rowsort label-4924
SELECT ALL + 57 + - 33 + + 21 * - 91 AS col1, 48 * + COUNT( * ) * - 91
----
-1887
-4368

skipif mysql # not compatible
query II rowsort label-4924
SELECT ALL + 57 + - 33 + + 21 * - 91 AS col1, 48 * + COUNT ( * ) * - 91
----
-1887
-4368

query I rowsort
SELECT ALL - 98 + 7 + + + 34
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL COUNT( DISTINCT - - 26 )
----
1

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL COUNT ( DISTINCT - - 26 )
----
1

query I rowsort
SELECT DISTINCT 74 + - + 94 AS col1
----
-20

query I rowsort
SELECT - - 18 - 80
----
-62

query I rowsort
SELECT ALL - NULLIF ( 17, + - 50 * + + 13 + + 74 + + 82 + 74 - + 59 / + 17 ) * + 27
----
-459

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4930
SELECT - - 2 DIV + 78 + 91 + - - 63 AS col0, + CAST( NULL AS SIGNED ) AS col0
----
154
NULL

skipif mysql # not compatible
query II rowsort label-4930
SELECT - - 2 / + 78 + 91 + - - 63 AS col0, + CAST ( NULL AS INTEGER ) AS col0
----
154
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4931
SELECT + CAST( + 28 AS SIGNED ) col0, ( - 54 ) AS col1
----
28
-54

skipif mysql # not compatible
query II rowsort label-4931
SELECT + CAST ( + 28 AS INTEGER ) col0, ( - 54 ) AS col1
----
28
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT DISTINCT - 63 + - ( - 63 ) * - + CAST( + 66 AS SIGNED )
----
-4221

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT - 63 + - ( - 63 ) * - + CAST ( + 66 AS INTEGER )
----
-4221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT - 65 * NULLIF ( NULLIF ( - - 53, - 75 ), + ( CAST( NULL AS SIGNED ) ) ) * + 53 * - 79
----
14424215

skipif mysql # not compatible
query I rowsort label-4933
SELECT - 65 * NULLIF ( NULLIF ( - - 53, - 75 ), + ( CAST ( NULL AS INTEGER ) ) ) * + 53 * - 79
----
14424215

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL - CASE - - COUNT( * ) WHEN + + 8 / 82 * + 89 * 2 + - 37 + + COUNT( * ) + - CASE - 54 WHEN 10 THEN ( + 51 ) + 12 * - 51 WHEN + 91 + - 89 THEN NULL ELSE NULL END + + 65 / - 80 THEN NULL WHEN - 10 THEN 18 WHEN 49 * - COUNT( * ) THEN + 88 - 45 * 52 END * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - CASE - - COUNT ( * ) WHEN + + 8 / 82 * + 89 * 2 + - 37 + + COUNT ( * ) + - CASE - 54 WHEN 10 THEN ( + 51 ) + 12 * - 51 WHEN + 91 + - 89 THEN NULL ELSE NULL END + + 65 / - 80 THEN NULL WHEN - 10 THEN 18 WHEN 49 * - COUNT ( * ) THEN + 88 - 45 * 52 END * + 12
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT - 83 DIV 53 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4935
SELECT - 83 / 53 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL + MAX( - ( - + 19 ) ) * + - 27
----
-513

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + MAX ( - ( - + 19 ) ) * + - 27
----
-513

query I rowsort
SELECT DISTINCT - 41 * - + 27 col2
----
1107

query I rowsort
SELECT DISTINCT - 69 + - 1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT DISTINCT MIN( ALL - - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT MIN ( ALL - - 93 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT ALL - COUNT( * ) + - 82 * - 94 AS col1, 6 * + COUNT( * )
----
7707
6

skipif mysql # not compatible
query II rowsort label-4940
SELECT ALL - COUNT ( * ) + - 82 * - 94 AS col1, 6 * + COUNT ( * )
----
7707
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4941
SELECT - 53 DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4941
SELECT - 53 / + 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT - COUNT( - 46 ) * - NULLIF ( - COUNT( * ), - 68 * + + COUNT( * ) ) * + + ( - 36 ) - 89
----
-53

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT - COUNT ( - 46 ) * - NULLIF ( - COUNT ( * ), - 68 * + + COUNT ( * ) ) * + + ( - 36 ) - 89
----
-53

query I rowsort
SELECT - 29 * 24 AS col2
----
-696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4944
SELECT 96 DIV + 13 + COUNT( * ) * - ( 2 ) DIV + - SUM( + COALESCE ( + 24, + - 13, - + 98, - 78 ) ) + - MAX( ALL - 55 )
----
62

skipif mysql # not compatible
query I rowsort label-4944
SELECT 96 / + 13 + COUNT ( * ) * - ( 2 ) / + - SUM ( + COALESCE ( + 24, + - 13, - + 98, - 78 ) ) + - MAX ( ALL - 55 )
----
62

query I rowsort
SELECT 88 * 21 + - 7
----
1841

query I rowsort
SELECT ( - - 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT + MIN( DISTINCT - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-4947
SELECT + MIN ( DISTINCT - 30 )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT - 19 DIV + 90 + + 96 * 11
----
1056

skipif mysql # not compatible
query I rowsort label-4948
SELECT - 19 / + 90 + + 96 * 11
----
1056

query I rowsort
SELECT - 69 + 73
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4950
SELECT + COALESCE ( + COUNT( DISTINCT + 36 ), + CASE - 1 WHEN + + 92 + + - COUNT( * ) + - - COUNT( * ) * - SUM( DISTINCT - 41 ) THEN NULL WHEN - 32 THEN 95 ELSE - 94 - CAST( 74 AS SIGNED ) * COUNT( * ) END * 66 + + 25, COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4950
SELECT + COALESCE ( + COUNT ( DISTINCT + 36 ), + CASE - 1 WHEN + + 92 + + - COUNT ( * ) + - - COUNT ( * ) * - SUM ( DISTINCT - 41 ) THEN NULL WHEN - 32 THEN 95 ELSE - 94 - CAST ( 74 AS INTEGER ) * COUNT ( * ) END * 66 + + 25, COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT ALL 39 * + 64
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT - COALESCE ( - COUNT( * ), - 15 * 22 ) * + 19 * + + ( - 25 ) + + - COUNT( 7 ) col1
----
-476

skipif mysql # not compatible
query I rowsort label-4952
SELECT - COALESCE ( - COUNT ( * ), - 15 * 22 ) * + 19 * + + ( - 25 ) + + - COUNT ( 7 ) col1
----
-476

query I rowsort
SELECT + 75 * - - 57 + 65
----
4340

query I rowsort
SELECT ALL + CASE - 46 WHEN - 56 THEN NULL ELSE + CASE - + 64 WHEN - 35 THEN + 21 + - + 94 * + 80 END + ( + 59 ) * - 33 END AS col1
----
NULL

query I rowsort
SELECT ALL - 34 * + 59
----
-2006

query I rowsort
SELECT + 77 * 65
----
5005

query I rowsort
SELECT DISTINCT 47 * 89
----
4183

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL + + MIN( DISTINCT + - 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL + + MIN ( DISTINCT + - 16 ) AS col2
----
-16

query I rowsort
SELECT 63 * + - 56 + + - 51 + + 64 + - 70
----
-3585

query I rowsort
SELECT ALL + - 74 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT + + COUNT( * ) * 84 * COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4961
SELECT + + COUNT ( * ) * 84 * COUNT ( * ) AS col1
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4962
SELECT + CAST( NULL AS DECIMAL ) + + - ( 2 ) * + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT + CAST ( NULL AS REAL ) + + - ( 2 ) * + 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT + 74 * - 51 * + - 94 - + - COUNT( * ) AS col1
----
354757

skipif mysql # not compatible
query I rowsort label-4963
SELECT + 74 * - 51 * + - 94 - + - COUNT ( * ) AS col1
----
354757

query I rowsort
SELECT + - 72 * - + 67
----
4824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT + 61 + + - CAST( + 21 AS SIGNED ) col2
----
40

skipif mysql # not compatible
query I rowsort label-4965
SELECT + 61 + + - CAST ( + 21 AS INTEGER ) col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL - 23 * 80 + CASE + + 69 WHEN 69 THEN - + 85 + + 61 - 90 WHEN - 47 - + SUM( DISTINCT - 2 ) THEN NULL END + - 59
----
-2013

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL - 23 * 80 + CASE + + 69 WHEN 69 THEN - + 85 + + 61 - 90 WHEN - 47 - + SUM ( DISTINCT - 2 ) THEN NULL END + - 59
----
-2013

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT ALL + 2 DIV + - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL + 2 / + - 65 AS col1
----
0

query I rowsort
SELECT ALL - 59 * + 79 + - 38 + - 59 AS col2
----
-4758

query I rowsort
SELECT - NULLIF ( + 41, - ( + - 0 ) )
----
-41

query I rowsort
SELECT ALL 76 + + - 70 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4971
SELECT ALL - CASE + COUNT( * ) WHEN 93 * - 82 * - ( + CAST( NULL AS DECIMAL ) ) THEN NULL WHEN + - 36 * - 11 * - 68 THEN 40 END + + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL - CASE + COUNT ( * ) WHEN 93 * - 82 * - ( + CAST ( NULL AS REAL ) ) THEN NULL WHEN + - 36 * - 11 * - 68 THEN 40 END + + 41 AS col0
----
NULL

query I rowsort
SELECT + 59 + + 23
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT - 47 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT - 47 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL CASE 10 WHEN - - 34 * + 50 * - - 60 THEN + 92 ELSE + 40 END AS col2, 1
----
40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT + 53 + + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4975
SELECT + 53 + + COUNT ( * ) AS col2
----
54

query II rowsort
SELECT - 12 * 79 AS col1, 3
----
-948
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT DISTINCT SUM( ALL 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT SUM ( ALL 4 ) AS col2
----
4

query I rowsort
SELECT ALL 35 - ( - 22 ) - - - 7 * - 38 AS col2
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT - COUNT( * ) + + 39
----
38

skipif mysql # not compatible
query I rowsort label-4979
SELECT - COUNT ( * ) + + 39
----
38

query I rowsort
SELECT - 81 + - 92 col0
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT - 20 * - COUNT( * ) * + 65 AS col1
----
1300

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT - 20 * - COUNT ( * ) * + 65 AS col1
----
1300

query II rowsort
SELECT ALL + ( 45 ), - 4 * 88 AS col0
----
45
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT - 11 * + COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT - 11 * + COUNT ( * ) AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT - 34 DIV 51 col1
----
0

skipif mysql # not compatible
query I rowsort label-4984
SELECT - 34 / 51 col1
----
0

query II rowsort
SELECT ALL - 93 * - 9 AS col0, + 74 col1
----
837
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT - 63 DIV + + 39
----
-1

skipif mysql # not compatible
query I rowsort label-4986
SELECT - 63 / + + 39
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT DISTINCT + COALESCE ( + 26, ( - 1 ) + - 49 DIV - + 5 )
----
26

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT + COALESCE ( + 26, ( - 1 ) + - 49 / - + 5 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4988
SELECT DISTINCT + 25 AS col0, COUNT( * ) + - + 58
----
25
-57

skipif mysql # not compatible
query II rowsort label-4988
SELECT DISTINCT + 25 AS col0, COUNT ( * ) + - + 58
----
25
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL + MAX( ALL + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL + MAX ( ALL + 14 )
----
14

query I rowsort
SELECT - 86 * 65 * - 6
----
33540

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT - MIN( ALL - ( + + NULLIF ( - 46, 88 ) ) )
----
-46

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT - MIN ( ALL - ( + + NULLIF ( - 46, 88 ) ) )
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4992
SELECT + - COUNT( * ), 65 col0
----
-1
65

skipif mysql # not compatible
query II rowsort label-4992
SELECT + - COUNT ( * ), 65 col0
----
-1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT ALL - 23 + + - 1 + COUNT( * ) * - 51
----
-75

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL - 23 + + - 1 + COUNT ( * ) * - 51
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT + 32 * ( - 9 ) * + COUNT( * ) AS col1
----
-288

skipif mysql # not compatible
query I rowsort label-4994
SELECT + 32 * ( - 9 ) * + COUNT ( * ) AS col1
----
-288

query I rowsort
SELECT + + ( - 57 ) AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT ALL - CAST( NULL AS SIGNED ) + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - CAST ( NULL AS INTEGER ) + - 75
----
NULL

query I rowsort
SELECT DISTINCT - 73 * + 42 * + 31 * + + COALESCE ( + COALESCE ( - 53, + + 22, + + 17 ), + 72 ) AS col1
----
5037438

query I rowsort
SELECT 79 * - ( 38 ) * + - 60
----
180120

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT ALL - - ( + 32 ) + - - MIN( ALL + + 65 )
----
97

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL - - ( + 32 ) + - - MIN ( ALL + + 65 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT MAX( DISTINCT + 43 ) * - + 80
----
-3440

skipif mysql # not compatible
query I rowsort label-5000
SELECT MAX ( DISTINCT + 43 ) * - + 80
----
-3440

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ALL - MAX( - 28 ) * - + 92 AS col2
----
-2576

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL - MAX ( - 28 ) * - + 92 AS col2
----
-2576

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT + 31 * CASE + 11 WHEN 83 THEN NULL ELSE + COUNT( * ) - - COUNT( * ) END AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5002
SELECT + 31 * CASE + 11 WHEN 83 THEN NULL ELSE + COUNT ( * ) - - COUNT ( * ) END AS col1
----
62

query I rowsort
SELECT 22 + + ( - + 84 )
----
-62

query I rowsort
SELECT 57 * + 72 AS col0
----
4104

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ALL MAX( ALL - 40 ) * - ( + 98 )
----
3920

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL MAX ( ALL - 40 ) * - ( + 98 )
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL MAX( - 31 ) * 1
----
-31

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL MAX ( - 31 ) * 1
----
-31

query I rowsort
SELECT DISTINCT 93 * - 55 AS col1
----
-5115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5008
SELECT CAST( NULL AS SIGNED ) - 2, - 7 * - 31 * - 89 + + - CASE + COALESCE ( 98, 24 + - 2 + + + CAST( - 42 AS SIGNED ) + + NULLIF ( MIN( 74 ) + 66 / 50, + 13 ) ) WHEN - 97 THEN - 25 WHEN + 40 / + 29 + - ( + 74 ) THEN - 94 ELSE NULL END * - COUNT( * ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5008
SELECT CAST ( NULL AS INTEGER ) - 2, - 7 * - 31 * - 89 + + - CASE + COALESCE ( 98, 24 + - 2 + + + CAST ( - 42 AS INTEGER ) + + NULLIF ( MIN ( 74 ) + 66 / 50, + 13 ) ) WHEN - 97 THEN - 25 WHEN + 40 / + 29 + - ( + 74 ) THEN - 94 ELSE NULL END * - COUNT ( * ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT COUNT( * ) * ( 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5009
SELECT COUNT ( * ) * ( 53 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL COUNT( * ) * 55 * + - 76 col0
----
-4180

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL COUNT ( * ) * 55 * + - 76 col0
----
-4180

query I rowsort
SELECT ALL - ( + 98 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL - MAX( ALL - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL - MAX ( ALL - 49 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT DISTINCT 15 / + + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT 15 / + + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 35 + 13 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT + COUNT( * ) + - - 14
----
15

skipif mysql # not compatible
query I rowsort label-5015
SELECT + COUNT ( * ) + - - 14
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-5016
SELECT - 82 * - 85 - + 89 AS col1, - 82 DIV + 3 AS col2
----
6881
-27

skipif mysql # not compatible
query II rowsort label-5016
SELECT - 82 * - 85 - + 89 AS col1, - 82 / + 3 AS col2
----
6881
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5017
SELECT ( 82 ) + - CAST( + 75 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-5017
SELECT ( 82 ) + - CAST ( + 75 AS INTEGER )
----
7

query I rowsort
SELECT ALL + 35 * + - 12 + - 55 + - + 7 * - + 29 * ( + 42 )
----
8051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5019
SELECT DISTINCT 95 + + CAST( NULL AS SIGNED ), - 10 * COUNT( * ) col0
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-5019
SELECT DISTINCT 95 + + CAST ( NULL AS INTEGER ), - 10 * COUNT ( * ) col0
----
NULL
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT DISTINCT - ( 63 ) col1, COUNT( * ) AS col1
----
-63
1

skipif mysql # not compatible
query II rowsort label-5020
SELECT DISTINCT - ( 63 ) col1, COUNT ( * ) AS col1
----
-63
1

query I rowsort
SELECT DISTINCT - 33 + + 71 * + 9
----
606

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ALL - + 23 + COUNT( * ) * CASE + 2 WHEN + - 10 THEN + 48 * - 50 + + 15 - + 4 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL - + 23 + COUNT ( * ) * CASE + 2 WHEN + - 10 THEN + 48 * - 50 + + 15 - + 4 END col1
----
NULL

query I rowsort
SELECT 2 + - 11 + 89
----
80

query II rowsort
SELECT ALL - - 7 + 68 AS col2, 77 AS col2
----
75
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - COUNT( + 15 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5025
SELECT - COUNT ( + 15 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ALL - - COUNT( * ) + SUM( DISTINCT - 99 )
----
-98

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - - COUNT ( * ) + SUM ( DISTINCT - 99 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ( - 37 ) * - CASE + + 22 WHEN - COUNT( * ) THEN - - 83 END * + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT ( - 37 ) * - CASE + + 22 WHEN - COUNT ( * ) THEN - - 83 END * + 78 AS col1
----
NULL

query I rowsort
SELECT 25 * - 82
----
-2050

query I rowsort
SELECT ALL + + 27 - - ( 12 ) * - - 31
----
399

query II rowsort
SELECT DISTINCT - + ( - 29 ) col1, + 13
----
29
13

query I rowsort
SELECT 4 * + - 38 AS col2
----
-152

query I rowsort
SELECT DISTINCT + + 89 - - 88 * + 92 - + 3
----
8182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT DISTINCT ( + 46 ) * - CAST( + 25 AS SIGNED ) AS col1
----
-1150

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT ( + 46 ) * - CAST ( + 25 AS INTEGER ) AS col1
----
-1150

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT COUNT( * ) + + 63 * - + 53
----
-3338

skipif mysql # not compatible
query I rowsort label-5034
SELECT COUNT ( * ) + + 63 * - + 53
----
-3338

query I rowsort
SELECT 3 * 54 * - + 82 * - 75
----
996300

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT COUNT( * ) * 85 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( * ) * 85 AS col1
----
85

query II rowsort
SELECT 35 AS col2, 42 * - + 10 + - - 9
----
35
-411

onlyif mysql # aggregate syntax: 
query II rowsort label-5038
SELECT COUNT( * ) + 12 + - + 80 + + - MAX( - 39 ) * 54, 18 * - 96 * - 31 AS col2
----
2039
53568

skipif mysql # not compatible
query II rowsort label-5038
SELECT COUNT ( * ) + 12 + - + 80 + + - MAX ( - 39 ) * 54, 18 * - 96 * - 31 AS col2
----
2039
53568

query I rowsort
SELECT ALL - 74 * - 69 * 41 AS col0
----
209346

query I rowsort
SELECT DISTINCT + ( + 33 ) * - 48 + - - 94 AS col2
----
-1490

onlyif mysql # aggregate syntax: 
query II rowsort label-5041
SELECT ALL COUNT( * ) AS col0, - CASE - 3 WHEN 5 THEN COUNT( * ) / + 40 END col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5041
SELECT ALL COUNT ( * ) AS col0, - CASE - 3 WHEN 5 THEN COUNT ( * ) / + 40 END col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT ALL 17 DIV - + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL 17 / - + 85 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5043
SELECT NULLIF ( COUNT( * ), - - 79 ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5043
SELECT NULLIF ( COUNT ( * ), - - 79 ) / - COUNT ( * )
----
-1

query I rowsort
SELECT ALL 34 + 75 col1
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT CASE - 91 WHEN + 18 / - 88 * - - SUM( - - 82 ) + + - 65 - - + 91 * 86 + + + CASE 82 WHEN CAST( - 3 AS SIGNED ) / 93 THEN NULL WHEN - 87 + + 20 * - MAX( + 14 ) THEN - 37 / + 34 ELSE - 10 END THEN NULL WHEN 62 THEN 9 END + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5045
SELECT CASE - 91 WHEN + 18 / - 88 * - - SUM ( - - 82 ) + + - 65 - - + 91 * 86 + + + CASE 82 WHEN CAST ( - 3 AS INTEGER ) / 93 THEN NULL WHEN - 87 + + 20 * - MAX ( + 14 ) THEN - 37 / + 34 ELSE - 10 END THEN NULL WHEN 62 THEN 9 END + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT CASE - - COUNT( * ) WHEN 73 * + 38 * + + 62 + - + 68 THEN NULL WHEN - - 85 THEN 90 / 98 WHEN - 50 * + - 31 * - 80 THEN - COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT CASE - - COUNT ( * ) WHEN 73 * + 38 * + + 62 + - + 68 THEN NULL WHEN - - 85 THEN 90 / 98 WHEN - 50 * + - 31 * - 80 THEN - COUNT ( * ) END col1
----
NULL

query I rowsort
SELECT ALL 10 + - - 62
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5048
SELECT ALL NULLIF ( CAST( - ( + 49 ) AS SIGNED ), MAX( - 75 ) + - + 66 ) + + 7
----
-42

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL NULLIF ( CAST ( - ( + 49 ) AS INTEGER ), MAX ( - 75 ) + - + 66 ) + + 7
----
-42

query I rowsort
SELECT + ( + ( - 33 ) ) + + 22 + + + 66 * 19
----
1243

query II rowsort
SELECT 48 AS col0, 20 AS col1
----
48
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT + MAX( DISTINCT - 34 ) * 55 AS col2
----
-1870

skipif mysql # not compatible
query I rowsort label-5051
SELECT + MAX ( DISTINCT - 34 ) * 55 AS col2
----
-1870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5052
SELECT ALL 74 + - NULLIF ( - CAST( COUNT( * ) AS SIGNED ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL 74 + - NULLIF ( - CAST ( COUNT ( * ) AS INTEGER ), - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT + COALESCE ( + COUNT( * ), 38 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5053
SELECT + COALESCE ( + COUNT ( * ), 38 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5054
SELECT DISTINCT - 47 * + - CAST( NULL AS SIGNED ) * 47 + - 16 * - 7 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - 47 * + - CAST ( NULL AS INTEGER ) * 47 + - 16 * - 7 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 6 * + - 15
----
-90

query II rowsort
SELECT + 29 AS col1, 34
----
29
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT DISTINCT + + SUM( 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT + + SUM ( 47 ) AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5058
SELECT ALL - - ( - 19 ) * - + 0 + - - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL - - ( - 19 ) * - + 0 + - - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) - + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT - MAX( + 3 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5059
SELECT - MAX ( + 3 ) AS col1
----
-3

query I rowsort
SELECT ALL + ( - - 29 ) col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5061
SELECT + - COUNT( * ) * - 67 * + 41 + + COUNT( * ) + - 36 DIV - 96 + - - 77 * - 66 AS col2
----
-2334

skipif mysql # not compatible
query I rowsort label-5061
SELECT + - COUNT ( * ) * - 67 * + 41 + + COUNT ( * ) + - 36 / - 96 + - - 77 * - 66 AS col2
----
-2334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT ALL 67 * + + 2 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL 67 * + + 2 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5063
SELECT + + COALESCE ( + COUNT( * ), + COUNT( * ) DIV - 38 * 48 ) * - 52 AS col1, - 44 DIV 80 * - ( - COUNT( * ) ) + + - 64 + - 59 * 2 AS col2
----
-52
-182

skipif mysql # not compatible
query II rowsort label-5063
SELECT + + COALESCE ( + COUNT ( * ), + COUNT ( * ) / - 38 * 48 ) * - 52 AS col1, - 44 / 80 * - ( - COUNT ( * ) ) + + - 64 + - 59 * 2 AS col2
----
-52
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT COUNT( 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5064
SELECT COUNT ( 51 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5065
SELECT ALL - 79 DIV + + 71
----
-1

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL - 79 / + + 71
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5066
SELECT + + 74 DIV - 72 + - ( 8 ) DIV + + COUNT( ALL + 30 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5066
SELECT + + 74 / - 72 + - ( 8 ) / + + COUNT ( ALL + 30 ) AS col1
----
-9

query I rowsort
SELECT - ( - 6 ) * + 39 AS col0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT + COUNT( - 54 )
----
1

skipif mysql # not compatible
query I rowsort label-5068
SELECT + COUNT ( - 54 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5069
SELECT + 3 AS col2, - ( COUNT( - 16 ) )
----
3
-1

skipif mysql # not compatible
query II rowsort label-5069
SELECT + 3 AS col2, - ( COUNT ( - 16 ) )
----
3
-1

query I rowsort
SELECT ALL + - 70 col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-5071
SELECT ALL + + COUNT( * ) AS col1, 79
----
1
79

skipif mysql # not compatible
query II rowsort label-5071
SELECT ALL + + COUNT ( * ) AS col1, 79
----
1
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5072
SELECT ALL NULLIF ( COUNT( + 72 ), 22 + - MIN( ALL + 8 ) + - 73 * + 24 * - 92 DIV - + COUNT( * ) ) DIV + - 91 + + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL NULLIF ( COUNT ( + 72 ), 22 + - MIN ( ALL + 8 ) + - 73 * + 24 * - 92 / - + COUNT ( * ) ) / + - 91 + + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 86 * + 83
----
-7138

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT - + COUNT( * ) + 14
----
13

skipif mysql # not compatible
query I rowsort label-5074
SELECT - + COUNT ( * ) + 14
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5075
SELECT + - CASE NULLIF ( + 48, - NULLIF ( + 27, 21 / - 10 + - 31 + - + 45 / + + 50 ) + NULLIF ( + 56, - AVG ( - 91 ) ) * - COALESCE ( COUNT( * ), 65 + 51, - 98 ) ) WHEN 76 THEN 47 * 72 + - COALESCE ( - 54, - 27 + 63, - CAST( NULL AS SIGNED ) ) WHEN - 8 + + 69 THEN + 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT + - CASE NULLIF ( + 48, - NULLIF ( + 27, 21 / - 10 + - 31 + - + 45 / + + 50 ) + NULLIF ( + 56, - AVG ( - 91 ) ) * - COALESCE ( COUNT ( * ), 65 + 51, - 98 ) ) WHEN 76 THEN 47 * 72 + - COALESCE ( - 54, - 27 + 63, - CAST ( NULL AS INTEGER ) ) WHEN - 8 + + 69 THEN + 33 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT + - 47 DIV + + 87 * + - 37
----
0

skipif mysql # not compatible
query I rowsort label-5076
SELECT + - 47 / + + 87 * + - 37
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5077
SELECT - 6 * 4 DIV - CAST( + COUNT( * ) AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-5077
SELECT - 6 * 4 / - CAST ( + COUNT ( * ) AS INTEGER )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT - SUM( + ( + 2 ) ) * - 71 - + 49 - - + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-5078
SELECT - SUM ( + ( + 2 ) ) * - 71 - + 49 - - + COUNT ( * )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5079
SELECT - 53 + 98 * - + ( - COUNT( * ) ) + + CASE + + ( + 59 ) WHEN - ( - - 65 ) THEN - CAST( - 94 AS SIGNED ) - COUNT( * ) + + 54 * - NULLIF ( + COUNT( DISTINCT + 49 ), 54 ) + 69 ELSE NULL END - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT - 53 + 98 * - + ( - COUNT ( * ) ) + + CASE + + ( + 59 ) WHEN - ( - - 65 ) THEN - CAST ( - 94 AS INTEGER ) - COUNT ( * ) + + 54 * - NULLIF ( + COUNT ( DISTINCT + 49 ), 54 ) + 69 ELSE NULL END - 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT - 3 * + 5 + - + 22 + - + 97 * COUNT( * ) AS col0
----
-134

skipif mysql # not compatible
query I rowsort label-5080
SELECT - 3 * + 5 + - + 22 + - + 97 * COUNT ( * ) AS col0
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5081
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col0, - CAST( - COALESCE ( + - 4, - 32 * 53 ) AS SIGNED ) * - + ( 81 ) AS col0
----
NULL
324

skipif mysql # not compatible
query II rowsort label-5081
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col0, - CAST ( - COALESCE ( + - 4, - 32 * 53 ) AS INTEGER ) * - + ( 81 ) AS col0
----
NULL
324

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT ALL + COUNT( * ) + - 16 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL + COUNT ( * ) + - 16 AS col2
----
-15

query II rowsort
SELECT ALL + 79 + - 19 * 19 * + - 37 AS col2, 50 AS col1
----
13436
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT ALL CASE - CASE - NULLIF ( 45, + 46 + + 62 + 33 * + 28 * - COUNT( * ) ) WHEN 88 THEN + 64 WHEN + 35 - + - 81 THEN CASE 95 WHEN COUNT( * ) THEN NULL WHEN 74 * 42 THEN 32 END ELSE 29 + MIN( DISTINCT + 55 ) END WHEN CASE 4 WHEN - ( 2 ) THEN - 47 ELSE + 23 END - 23 * + 75 THEN NULL ELSE 31 + - 98 END AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL CASE - CASE - NULLIF ( 45, + 46 + + 62 + 33 * + 28 * - COUNT ( * ) ) WHEN 88 THEN + 64 WHEN + 35 - + - 81 THEN CASE 95 WHEN COUNT ( * ) THEN NULL WHEN 74 * 42 THEN 32 END ELSE 29 + MIN ( DISTINCT + 55 ) END WHEN CASE 4 WHEN - ( 2 ) THEN - 47 ELSE + 23 END - 23 * + 75 THEN NULL ELSE 31 + - 98 END AS col1
----
-67

query I rowsort
SELECT - NULLIF ( 92, - 35 * + + 8 ) * - 36 - + 74
----
3238

query I rowsort
SELECT - 75 + + 56 + - 22 * 39 * + - 40
----
34301

query I rowsort
SELECT ALL ( - - 39 )
----
39

query I rowsort
SELECT DISTINCT + 89 + 15
----
104

query I rowsort
SELECT ALL - 34 + + 93 + - 76 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5090
SELECT - 4 - - NULLIF ( ( + 8 ), 67 ) + - 30 + + ( 46 ) + + CAST( NULL AS SIGNED ) * COALESCE ( - 78, + COUNT( * ) ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT - 4 - - NULLIF ( ( + 8 ), 67 ) + - 30 + + ( 46 ) + + CAST ( NULL AS INTEGER ) * COALESCE ( - 78, + COUNT ( * ) ) * 46
----
NULL

query I rowsort
SELECT ALL + 71 + - 97 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT - CASE - + ( 10 ) WHEN + + 62 THEN + ( + + 69 ) ELSE COUNT( * ) + COALESCE ( - 85, - 40 ) END * + - SUM( DISTINCT + 16 ) + + MIN( + ( - 23 ) ) AS col1
----
-1367

skipif mysql # not compatible
query I rowsort label-5092
SELECT - CASE - + ( 10 ) WHEN + + 62 THEN + ( + + 69 ) ELSE COUNT ( * ) + COALESCE ( - 85, - 40 ) END * + - SUM ( DISTINCT + 16 ) + + MIN ( + ( - 23 ) ) AS col1
----
-1367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT DISTINCT CAST( 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT CAST ( 20 AS INTEGER )
----
20

query II rowsort
SELECT ALL - 71 + + - 35 AS col1, + 89
----
-106
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5095
SELECT DISTINCT 47 DIV 88 - COUNT( * ) * COUNT( * ) * + COUNT( * ) * - CAST( + 88 AS SIGNED ) + - 10 * + 95
----
-862

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT 47 / 88 - COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) * - CAST ( + 88 AS INTEGER ) + - 10 * + 95
----
-862

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL + COUNT( DISTINCT - 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL + COUNT ( DISTINCT - 6 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT + + 64 DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5097
SELECT + + 64 / 78 AS col1
----
0

query I rowsort
SELECT + - 42 col0
----
-42

query I rowsort
SELECT ALL + - 18 AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5100
SELECT + + 56 DIV + 50 - + - 54 + + + COUNT( * ) + + 48 + 3 + + 18 + + 24 * + 72 * COUNT( * ) * - + COUNT( * ) + - COUNT( * ) AS col0
----
-1604

skipif mysql # not compatible
query I rowsort label-5100
SELECT + + 56 / + 50 - + - 54 + + + COUNT ( * ) + + 48 + 3 + + 18 + + 24 * + 72 * COUNT ( * ) * - + COUNT ( * ) + - COUNT ( * ) AS col0
----
-1604

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5101
SELECT - 1 + - 24 + - CAST( + 83 AS SIGNED ) AS col2, - ( - ( - 78 ) ) AS col2
----
-108
-78

skipif mysql # not compatible
query II rowsort label-5101
SELECT - 1 + - 24 + - CAST ( + 83 AS INTEGER ) AS col2, - ( - ( - 78 ) ) AS col2
----
-108
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT ALL + 17 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL + 17 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5103
SELECT + + 12 * - MIN( - COALESCE ( 2, + + 26 + - 70 ) ) * + 4 + - COALESCE ( + 50, - ( + 5 ) DIV - 77 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-5103
SELECT + + 12 * - MIN ( - COALESCE ( 2, + + 26 + - 70 ) ) * + 4 + - COALESCE ( + 50, - ( + 5 ) / - 77 ) AS col0
----
46

query II rowsort
SELECT ALL + COALESCE ( + 89, + - 17 + ( - + 4 ), + - COALESCE ( - 49, + + 56 ) * 16 ) AS col2, - 45 + + - 59 * - 28
----
89
1607

query I rowsort
SELECT DISTINCT + + 25 col2
----
25

query I rowsort
SELECT + - 87 + + - 97
----
-184

query I rowsort
SELECT DISTINCT + - 43 AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT + CAST( 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-5108
SELECT + CAST ( 57 AS INTEGER )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5109
SELECT DISTINCT SUM( DISTINCT - 79 ) * + COUNT( * ) * - 65 - - 5 + - + CAST( + 5 AS SIGNED ) * 95 + + + COUNT( * ) * + CAST( NULL AS SIGNED ) + - 46 * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT SUM ( DISTINCT - 79 ) * + COUNT ( * ) * - 65 - - 5 + - + CAST ( + 5 AS INTEGER ) * 95 + + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - 46 * + 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT DISTINCT 70 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT 70 / - 94
----
0

query I rowsort
SELECT ALL 99 * ( 43 ) + - 64
----
4193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT ALL CASE + 64 WHEN - 48 THEN CAST( NULL AS SIGNED ) + + NULLIF ( 76, + 29 ) + 49 * - CAST( + 29 AS SIGNED ) + 67 ELSE NULL END * 88 + + + 98 + + 73 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL CASE + 64 WHEN - 48 THEN CAST ( NULL AS INTEGER ) + + NULLIF ( 76, + 29 ) + 49 * - CAST ( + 29 AS INTEGER ) + 67 ELSE NULL END * 88 + + + 98 + + 73 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT DISTINCT ( + + SUM( ALL + - 96 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT ( + + SUM ( ALL + - 96 ) )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT DISTINCT CAST( 18 AS SIGNED ) + 51
----
69

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT CAST ( 18 AS INTEGER ) + 51
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL + 2 + + COALESCE ( - - 53, + COALESCE ( 3, + COUNT( * ) + - COUNT( * ), + COALESCE ( - 62, - 48 ), - + 68 + - - 56 ) + + NULLIF ( 42, 9 ) ) + 62 * MIN( 84 + 17 * + 54 )
----
62179

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL + 2 + + COALESCE ( - - 53, + COALESCE ( 3, + COUNT ( * ) + - COUNT ( * ), + COALESCE ( - 62, - 48 ), - + 68 + - - 56 ) + + NULLIF ( 42, 9 ) ) + 62 * MIN ( 84 + 17 * + 54 )
----
62179

query I rowsort
SELECT ALL - 48 + 20 AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5117
SELECT 89 - - 83 * - + 39 DIV + COUNT( + 67 )
----
-3148

skipif mysql # not compatible
query I rowsort label-5117
SELECT 89 - - 83 * - + 39 / + COUNT ( + 67 )
----
-3148

query I rowsort
SELECT 63 + + ( + + 0 ) AS col2
----
63

query II rowsort
SELECT DISTINCT 99, 38 AS col2
----
99
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT ALL + 3 + - 26 + NULLIF ( + 54, + COUNT( DISTINCT 92 ) ) * + 3 + - 16 - + 19
----
104

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL + 3 + - 26 + NULLIF ( + 54, + COUNT ( DISTINCT 92 ) ) * + 3 + - 16 - + 19
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5121
SELECT ALL - 62 - + + CASE - + COUNT( * ) WHEN - + 51 * + ( - 91 ) THEN NULL WHEN + - 56 THEN + 2 DIV + + 25 * 81 * - 44 + + 93 - - 1 * + CAST( NULL AS SIGNED ) + - 35 * + 79 ELSE + COUNT( DISTINCT - 47 ) END * CAST( + 61 AS SIGNED ) AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL - 62 - + + CASE - + COUNT ( * ) WHEN - + 51 * + ( - 91 ) THEN NULL WHEN + - 56 THEN + 2 / + + 25 * 81 * - 44 + + 93 - - 1 * + CAST ( NULL AS INTEGER ) + - 35 * + 79 ELSE + COUNT ( DISTINCT - 47 ) END * CAST ( + 61 AS INTEGER ) AS col0
----
-123

query I rowsort
SELECT 10 * - + 73
----
-730

query I rowsort
SELECT ALL - 13 * - 92 AS col2
----
1196

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5124
SELECT 41 DIV - + ( + + COUNT( * ) ) AS col2, + ( + 12 )
----
-41
12

skipif mysql # not compatible
query II rowsort label-5124
SELECT 41 / - + ( + + COUNT ( * ) ) AS col2, + ( + 12 )
----
-41
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT + 41 * + 29 + + + 97 * - COUNT( * )
----
1092

skipif mysql # not compatible
query I rowsort label-5125
SELECT + 41 * + 29 + + + 97 * - COUNT ( * )
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT - - COUNT( 50 )
----
1

skipif mysql # not compatible
query I rowsort label-5126
SELECT - - COUNT ( 50 )
----
1

query I rowsort
SELECT ALL + ( - ( + 12 ) ) AS col0
----
-12

query I rowsort
SELECT + NULLIF ( + 38, + 95 * - 75 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT + COUNT( * ) * SUM( 26 ) * - 38 * + - COUNT( * ) * COUNT( * )
----
988

skipif mysql # not compatible
query I rowsort label-5129
SELECT + COUNT ( * ) * SUM ( 26 ) * - 38 * + - COUNT ( * ) * COUNT ( * )
----
988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5130
SELECT DISTINCT - COALESCE ( + CASE + - 34 WHEN 96 THEN - 64 DIV + - 19 + - 25 * + COALESCE ( - 36, 70 ) END, 37 * ( + - 13 ), NULLIF ( - + 22, + 68 + 21 DIV + COUNT( * ) ) + 65 ) AS col1
----
481

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT - COALESCE ( + CASE + - 34 WHEN 96 THEN - 64 / + - 19 + - 25 * + COALESCE ( - 36, 70 ) END, 37 * ( + - 13 ), NULLIF ( - + 22, + 68 + 21 / + COUNT ( * ) ) + 65 ) AS col1
----
481

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL COUNT( DISTINCT - 79 ) * - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL COUNT ( DISTINCT - 79 ) * - 81 AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5132
SELECT DISTINCT - - 82 DIV - + SUM( ALL + 23 ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT - - 82 / - + SUM ( ALL + 23 ) col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5133
SELECT 40, + 64 * - ( CAST( NULL AS SIGNED ) ) * - 1 + + 63 + - - 62 AS col0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-5133
SELECT 40, + 64 * - ( CAST ( NULL AS INTEGER ) ) * - 1 + + 63 + - - 62 AS col0
----
40
NULL

query I rowsort
SELECT + 57 * 97 * - - 22 * - - 77
----
9366126

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5135
SELECT ALL NULLIF ( - 77, + 97 * - 64 - - COALESCE ( - 45, CAST( AVG ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) * - 75 ) DIV - - 97
----
0

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL NULLIF ( - 77, + 97 * - 64 - - COALESCE ( - 45, CAST ( AVG ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) * - 75 ) / - - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT - 75 * + + CASE 41 WHEN + 7 THEN - 4 + 7 END - COUNT( * ) + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT - 75 * + + CASE 41 WHEN + 7 THEN - 4 + 7 END - COUNT ( * ) + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT 56 * COUNT( * ) + - + 97 - - + ( - - 98 ) - - 66 + + 9 - + 7 * - 64
----
580

skipif mysql # not compatible
query I rowsort label-5137
SELECT 56 * COUNT ( * ) + - + 97 - - + ( - - 98 ) - - 66 + + 9 - + 7 * - 64
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL - COUNT( * ) * - 87
----
87

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL - COUNT ( * ) * - 87
----
87

query I rowsort
SELECT 29 * + 42 AS col0
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL + 79 + - ( 65 ) * + 77 * + NULLIF ( + - MIN( DISTINCT 90 ), + - COUNT( ALL - 66 ) * + - 21 / + COUNT( * ) )
----
450529

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL + 79 + - ( 65 ) * + 77 * + NULLIF ( + - MIN ( DISTINCT 90 ), + - COUNT ( ALL - 66 ) * + - 21 / + COUNT ( * ) )
----
450529

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT DISTINCT 0 * + - SUM( - + 63 )
----
0

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT 0 * + - SUM ( - + 63 )
----
0

query I rowsort
SELECT 41 * 50 AS col1
----
2050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5143
SELECT ALL 17 + + + CAST( + + 41 AS SIGNED ) DIV COUNT( * ) - + SUM( - 79 )
----
137

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL 17 + + + CAST ( + + 41 AS INTEGER ) / COUNT ( * ) - + SUM ( - 79 )
----
137

query I rowsort
SELECT ALL - 6 * 74
----
-444

query I rowsort
SELECT ALL 94 + - - 70
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5146
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 62 col2
----
NULL

query II rowsort
SELECT + 27 AS col1, 31 * 33 + + 40
----
27
1063

query I rowsort
SELECT ALL 99 + - + 55 * + - 47 * - 80
----
-206701

query I rowsort
SELECT ALL 58 + + 9 + + + 18 + + 52 * - 33 AS col0
----
-1631

query II rowsort
SELECT - 82 AS col1, + 70 + 28 * + 58 * + + 66 * - 96 + + 99
----
-82
-10289495

query II rowsort
SELECT 64 AS col2, 56 * - 79
----
64
-4424

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT ALL 51 DIV 48 * + 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL 51 / 48 * + 72 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ALL SUM( CASE + + 76 WHEN - 59 THEN NULL ELSE + + NULLIF ( + + ( - + 49 ), + 29 ) END ) + 11 + 58 * - + CASE - + COUNT( * ) WHEN AVG ( 12 ) * + + 32 THEN - 60 * + 92 - 69 WHEN - 95 / - COALESCE ( - ( + COALESCE ( - CASE + 69 WHEN 84 THEN + 45 + - 81 * 57 ELSE NULL END, + 10 ) ), 47 * - 93, 77 + - 72 * + 80 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL SUM ( CASE + + 76 WHEN - 59 THEN NULL ELSE + + NULLIF ( + + ( - + 49 ), + 29 ) END ) + 11 + 58 * - + CASE - + COUNT ( * ) WHEN AVG ( 12 ) * + + 32 THEN - 60 * + 92 - 69 WHEN - 95 / - COALESCE ( - ( + COALESCE ( - CASE + 69 WHEN 84 THEN + 45 + - 81 * 57 ELSE NULL END, + 10 ) ), 47 * - 93, 77 + - 72 * + 80 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5154
SELECT ALL 22 - - 29, 89 + - COUNT( * ) - - 1 * + 73 AS col2
----
51
161

skipif mysql # not compatible
query II rowsort label-5154
SELECT ALL 22 - - 29, 89 + - COUNT ( * ) - - 1 * + 73 AS col2
----
51
161

query II rowsort
SELECT - 92 AS col2, 25 * + 32
----
-92
800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5156
SELECT ALL 94, CAST( NULL AS SIGNED ) AS col2
----
94
NULL

skipif mysql # not compatible
query II rowsort label-5156
SELECT ALL 94, CAST ( NULL AS INTEGER ) AS col2
----
94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL - 17 - - - COUNT( ALL - - 11 )
----
-18

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL - 17 - - - COUNT ( ALL - - 11 )
----
-18

query II rowsort
SELECT 96, + 83 * - 88 * + 88 AS col2
----
96
-642752

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5159
SELECT ALL 2, COUNT( * ) DIV 65 * - COUNT( DISTINCT + 89 ) + - + 24 * 23 col2
----
2
-552

skipif mysql # not compatible
query II rowsort label-5159
SELECT ALL 2, COUNT ( * ) / 65 * - COUNT ( DISTINCT + 89 ) + - + 24 * 23 col2
----
2
-552

query II rowsort
SELECT - 3 AS col0, - 22
----
-3
-22

query I rowsort
SELECT ALL 9 * + 40 AS col1
----
360

onlyif mysql # aggregate syntax: 
query II rowsort label-5162
SELECT - COUNT( * ) * + + 25, COUNT( * ) + + COUNT( * ) AS col2
----
-25
2

skipif mysql # not compatible
query II rowsort label-5162
SELECT - COUNT ( * ) * + + 25, COUNT ( * ) + + COUNT ( * ) AS col2
----
-25
2

query I rowsort
SELECT 23 * - 54 * 50
----
-62100

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT COUNT( * ) * + - 87
----
-87

skipif mysql # not compatible
query I rowsort label-5164
SELECT COUNT ( * ) * + - 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT - + CASE + 5 WHEN - 52 THEN + MIN( + 75 ) * + 61 + + ( COUNT( * ) ) WHEN + COUNT( * ) THEN NULL ELSE - 48 END AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5165
SELECT - + CASE + 5 WHEN - 52 THEN + MIN ( + 75 ) * + 61 + + ( COUNT ( * ) ) WHEN + COUNT ( * ) THEN NULL ELSE - 48 END AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT 56 + - ( - 1 ) * - + 53 DIV + 91 * 33
----
56

skipif mysql # not compatible
query I rowsort label-5166
SELECT 56 + - ( - 1 ) * - + 53 / + 91 * 33
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT - + MAX( DISTINCT - + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5167
SELECT - + MAX ( DISTINCT - + 31 ) AS col2
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-5168
SELECT ALL 82, 38 DIV - + 64 AS col1
----
82
0

skipif mysql # not compatible
query II rowsort label-5168
SELECT ALL 82, 38 / - + 64 AS col1
----
82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT SUM( ALL + 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT SUM ( ALL + 18 ) AS col2
----
18

query II rowsort
SELECT DISTINCT 66, 69 AS col2
----
66
69

query I rowsort
SELECT 25 - - 21 AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5172
SELECT COUNT( * ) AS col1, COUNT( * ) + + COUNT( * )
----
1
2

skipif mysql # not compatible
query II rowsort label-5172
SELECT COUNT ( * ) AS col1, COUNT ( * ) + + COUNT ( * )
----
1
2

query I rowsort
SELECT ALL - - 80 * - 58 * ( - 9 ) AS col2
----
41760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5174
SELECT + + COUNT( * ) AS col1, + COALESCE ( + 61, + COUNT( * ), 1 * + - 58 + - - 60 / 84 - 32 ) * - CAST( ( - - CAST( NULL AS SIGNED ) ) AS SIGNED ) col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5174
SELECT + + COUNT ( * ) AS col1, + COALESCE ( + 61, + COUNT ( * ), 1 * + - 58 + - - 60 / 84 - 32 ) * - CAST ( ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL - 74 * + + 56 * COUNT( * ) * - 49
----
203056

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL - 74 * + + 56 * COUNT ( * ) * - 49
----
203056

query I rowsort
SELECT ALL - 61 * ( 75 ) + - + 49
----
-4624

query I rowsort
SELECT 10 * 10 + 81 AS col2
----
181

query I rowsort
SELECT ALL - - 87 * 61 + + 80
----
5387

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT DISTINCT + + COUNT( * ) * 24 col2
----
24

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT + + COUNT ( * ) * 24 col2
----
24

query I rowsort
SELECT - 91 * - + ( 46 ) + + 1 + + - 55 AS col2
----
4132

query I rowsort
SELECT DISTINCT - 15 col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5182
SELECT ALL + 40 * + 73 + - + 28 DIV - + COUNT( - 73 ) + + 23 + 86, - 65 AS col0
----
3057
-65

skipif mysql # not compatible
query II rowsort label-5182
SELECT ALL + 40 * + 73 + - + 28 / - + COUNT ( - 73 ) + + 23 + 86, - 65 AS col0
----
3057
-65

query I rowsort
SELECT - 0 + - + 95
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5184
SELECT - 70 DIV - NULLIF ( - + NULLIF ( - + ( + + 4 ), - + 7 ), - NULLIF ( + 12, 32 DIV - ( - 48 ) - 40 + - ( - MIN( + CAST( - 10 AS SIGNED ) ) ) * + - 92 + 58 ) * + COUNT( ALL 51 ) )
----
17

skipif mysql # not compatible
query I rowsort label-5184
SELECT - 70 / - NULLIF ( - + NULLIF ( - + ( + + 4 ), - + 7 ), - NULLIF ( + 12, 32 / - ( - 48 ) - 40 + - ( - MIN ( + CAST ( - 10 AS INTEGER ) ) ) * + - 92 + 58 ) * + COUNT ( ALL 51 ) )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5185
SELECT ALL MAX( + + 50 ) * - 88 * + + 94 + 20, + 36 * 10 + - - ( 34 ) * MIN( ALL + 39 ) * + 34 - - + 19 AS col1
----
-413580
45463

skipif mysql # not compatible
query II rowsort label-5185
SELECT ALL MAX ( + + 50 ) * - 88 * + + 94 + 20, + 36 * 10 + - - ( 34 ) * MIN ( ALL + 39 ) * + 34 - - + 19 AS col1
----
-413580
45463

query I rowsort
SELECT - 88 * - NULLIF ( - 93, - 48 + + 53 + - 33 * - 46 * - 48 * + 28 ) col2
----
-8184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5187
SELECT COUNT( * ) * + 44 DIV - COUNT( * ) + - - 10 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5187
SELECT COUNT ( * ) * + 44 / - COUNT ( * ) + - - 10 AS col0
----
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-5188
SELECT ALL CASE + 8 WHEN - + 76 THEN 62 DIV 21 * - + 13 - + 64 * + COALESCE ( + - 68, - 55 ) ELSE 95 END * + - 41 + 31 AS col1, 36
----
-3864
36

skipif mysql # not compatible
query II rowsort label-5188
SELECT ALL CASE + 8 WHEN - + 76 THEN 62 / 21 * - + 13 - + 64 * + COALESCE ( + - 68, - 55 ) ELSE 95 END * + - 41 + 31 AS col1, 36
----
-3864
36

query II rowsort
SELECT DISTINCT + 30 * - ( + 13 ), - 75 * 19 AS col1
----
-390
-1425

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT - COALESCE ( - 49, - 47 ) DIV + 25
----
1

skipif mysql # not compatible
query I rowsort label-5190
SELECT - COALESCE ( - 49, - 47 ) / + 25
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT DISTINCT + ( - CAST( - - 97 AS SIGNED ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + ( - CAST ( - - 97 AS INTEGER ) ) AS col2
----
-97

query II rowsort
SELECT ALL 45 * 96 AS col0, - 79 * + - 66
----
4320
5214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT ALL COUNT( * ) - - 20 + - CASE 60 WHEN - ( 88 ) / + 52 * 57 + - 10 THEN COALESCE ( - 97, - 48, 35 ) / - - COUNT( * ) * - COUNT( - 75 ) + - - CAST( NULL AS SIGNED ) END + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL COUNT ( * ) - - 20 + - CASE 60 WHEN - ( 88 ) / + 52 * 57 + - 10 THEN COALESCE ( - 97, - 48, 35 ) / - - COUNT ( * ) * - COUNT ( - 75 ) + - - CAST ( NULL AS INTEGER ) END + - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT - COUNT( ( 0 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5194
SELECT - COUNT ( ( 0 ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 58 * - 64
----
3712

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT + COUNT( - 6 ) * 11 * - 46 AS col0
----
-506

skipif mysql # not compatible
query I rowsort label-5196
SELECT + COUNT ( - 6 ) * 11 * - 46 AS col0
----
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT 76 * + NULLIF ( - COUNT( * ), - + 59 * - 41 ) + NULLIF ( - 73, COUNT( * ) ) + - + CASE - + 58 WHEN + ( - - COUNT( * ) ) THEN + 43 WHEN + COUNT( * ) * 44 + - 18 + MAX( 88 ) THEN + 8 + + 63 * + 0 WHEN COUNT( * ) THEN NULL ELSE ( 4 ) * 23 END AS col0
----
-241

skipif mysql # not compatible
query I rowsort label-5197
SELECT 76 * + NULLIF ( - COUNT ( * ), - + 59 * - 41 ) + NULLIF ( - 73, COUNT ( * ) ) + - + CASE - + 58 WHEN + ( - - COUNT ( * ) ) THEN + 43 WHEN + COUNT ( * ) * 44 + - 18 + MAX ( 88 ) THEN + 8 + + 63 * + 0 WHEN COUNT ( * ) THEN NULL ELSE ( 4 ) * 23 END AS col0
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT - 91 + + CASE + 82 WHEN + ( 54 ) * + 74 * 20 + + 49 THEN 67 * - + 18 ELSE COUNT( * ) END AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-5198
SELECT - 91 + + CASE + 82 WHEN + ( 54 ) * + 74 * 20 + + 49 THEN 67 * - + 18 ELSE COUNT ( * ) END AS col0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-5199
SELECT + - COUNT( * ) * - COUNT( * ) * - - 98 * - ( - + COUNT( * ) ) AS col1, 89 * 12 AS col0
----
98
1068

skipif mysql # not compatible
query II rowsort label-5199
SELECT + - COUNT ( * ) * - COUNT ( * ) * - - 98 * - ( - + COUNT ( * ) ) AS col1, 89 * 12 AS col0
----
98
1068

query I rowsort
SELECT + + 1 * - 95 * - 23 AS col2
----
2185

query I rowsort
SELECT ALL - ( - + 95 )
----
95

onlyif mysql # aggregate syntax: 
query III rowsort label-5202
SELECT + 54 + + + 22 + - 4 AS col0, MAX( DISTINCT + 96 ), + 39 * - 8 AS col0
----
72
96
-312

skipif mysql # not compatible
query III rowsort label-5202
SELECT + 54 + + + 22 + - 4 AS col0, MAX ( DISTINCT + 96 ), + 39 * - 8 AS col0
----
72
96
-312

query I rowsort
SELECT DISTINCT + NULLIF ( - 54, - 12 + - - 58 / 27 )
----
-54

query I rowsort
SELECT ALL 20 * + 74
----
1480

query II rowsort
SELECT DISTINCT - 13 * + 90 AS col0, 4 col1
----
-1170
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT 68 + + MAX( - 49 )
----
19

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT 68 + + MAX ( - 49 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5207
SELECT + - CASE + 3 WHEN - COUNT( * ) THEN - - 23 WHEN - 99 / NULLIF ( - 7, + - 12 ) THEN 42 END / + CASE CAST( NULL AS SIGNED ) WHEN - COUNT( * ) / - 34 THEN - 50 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT + - CASE + 3 WHEN - COUNT ( * ) THEN - - 23 WHEN - 99 / NULLIF ( - 7, + - 12 ) THEN 42 END / + CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) / - 34 THEN - 50 END col1
----
NULL

query I rowsort
SELECT + + 5 * - + 80 AS col0
----
-400

query I rowsort
SELECT - + 0 + - - 35 * + 7 AS col1
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL - 20 + - CASE 80 WHEN - + 93 THEN - + 63 + + 15 ELSE + + 9 END + COUNT( DISTINCT 35 ) * - 58 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL - 20 + - CASE 80 WHEN - + 93 THEN - + 63 + + 15 ELSE + + 9 END + COUNT ( DISTINCT 35 ) * - 58 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-5211
SELECT + 83 * COUNT( * ) AS col0, - 34 + - 87
----
83
-121

skipif mysql # not compatible
query II rowsort label-5211
SELECT + 83 * COUNT ( * ) AS col0, - 34 + - 87
----
83
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5212
SELECT DISTINCT - 13 DIV MAX( - 21 ) + 50 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT - 13 / MAX ( - 21 ) + 50 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5213
SELECT ALL 81 * + + ( + + 95 ) DIV ( 95 ) * + 18 * - - CAST( - + 84 AS SIGNED ) + - 89 + + 8 AS col1
----
-122553

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL 81 * + + ( + + 95 ) / ( 95 ) * + 18 * - - CAST ( - + 84 AS INTEGER ) + - 89 + + 8 AS col1
----
-122553

query I rowsort
SELECT ( + 98 ) col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ( - ( MIN( + 51 ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-5215
SELECT ( - ( MIN ( + 51 ) ) )
----
-51

query I rowsort
SELECT ALL + 43 * - 43
----
-1849

query I rowsort
SELECT 53 * - 68 - 9
----
-3613

query I rowsort
SELECT DISTINCT + ( + 18 )
----
18

query I rowsort
SELECT COALESCE ( - 79, + ( 58 ) )
----
-79

query I rowsort
SELECT ALL + ( + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL + MAX( - + 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL + MAX ( - + 29 ) AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5222
SELECT - CAST( - 47 AS SIGNED ) - - + 7 - - ( COUNT( * ) ) + - - 29 + - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5222
SELECT - CAST ( - 47 AS INTEGER ) - - + 7 - - ( COUNT ( * ) ) + - - 29 + - COUNT ( * ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT - ( + 11 ) * - + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-5223
SELECT - ( + 11 ) * - + COUNT ( * )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT 90 * - 99 - + 8 DIV + + 78 * - - 26 * + 51 AS col1
----
-8910

skipif mysql # not compatible
query I rowsort label-5224
SELECT 90 * - 99 - + 8 / + + 78 * - - 26 * + 51 AS col1
----
-8910

onlyif mysql # aggregate syntax: 
query II rowsort label-5225
SELECT ALL + COUNT( * ) AS col1, - 78
----
1
-78

skipif mysql # not compatible
query II rowsort label-5225
SELECT ALL + COUNT ( * ) AS col1, - 78
----
1
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5226
SELECT NULLIF ( - - COUNT( * ), + + 49 * - - 99 * + 55 * + 62 * + MAX( - 76 ) - ( - NULLIF ( - COALESCE ( 93, - - 86 / + 56 / - + 86 + CAST( NULL AS SIGNED ) * 67 * - - ( + ( 43 ) ) + + 45, + CAST( NULL AS SIGNED ) ), + CAST( 88 AS SIGNED ) ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5226
SELECT NULLIF ( - - COUNT ( * ), + + 49 * - - 99 * + 55 * + 62 * + MAX ( - 76 ) - ( - NULLIF ( - COALESCE ( 93, - - 86 / + 56 / - + 86 + CAST ( NULL AS INTEGER ) * 67 * - - ( + ( 43 ) ) + + 45, + CAST ( NULL AS INTEGER ) ), + CAST ( 88 AS INTEGER ) ) ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5227
SELECT + 56 DIV 12
----
4

skipif mysql # not compatible
query I rowsort label-5227
SELECT + 56 / 12
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5228
SELECT ALL - MAX( + 86 ) * + 50 * - - 9 / 83 + + 47 + - - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL - MAX ( + 86 ) * + 50 * - - 9 / 83 + + 47 + - - CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT - 68 * ( - + 42 ) * + 95 + + 70 + + 59 DIV - + 24
----
271388

skipif mysql # not compatible
query I rowsort label-5229
SELECT - 68 * ( - + 42 ) * + 95 + + 70 + + 59 / - + 24
----
271388

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5230
SELECT - MIN( ALL + 11 ) * - + ( + 2 ) DIV 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-5230
SELECT - MIN ( ALL + 11 ) * - + ( + 2 ) / 72 col1
----
0

query I rowsort
SELECT ALL - 34 * - - 84 AS col2
----
-2856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT ALL 1 * + + 78 * - 88 + - CAST( + 78 AS SIGNED ) - - 56 col1
----
-6886

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL 1 * + + 78 * - 88 + - CAST ( + 78 AS INTEGER ) - - 56 col1
----
-6886

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL - 84 + - + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL - 84 + - + COUNT ( * )
----
-85

query I rowsort
SELECT ALL + 73 * + 33
----
2409

query I rowsort
SELECT - 54 - 23 AS col1
----
-77

query II rowsort
SELECT ALL 18, + 65 col1
----
18
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5237
SELECT + 81 DIV - ( 13 ) + - + ( COUNT( 82 ) ) + - 38 DIV + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-5237
SELECT + 81 / - ( 13 ) + - + ( COUNT ( 82 ) ) + - 38 / + COUNT ( * )
----
-45

query I rowsort
SELECT ALL + 57 + - 87 AS col2
----
-30

query I rowsort
SELECT + + ( - - 97 ) * + - 66
----
-6402

query II rowsort
SELECT - 91 col1, + 80 + + + 73 AS col0
----
-91
153

query I rowsort
SELECT ALL - 88 + ( + 92 )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5242
SELECT + - 77 - - COUNT( + 1 ), SUM( - + 2 ) AS col0
----
-76
-2

skipif mysql # not compatible
query II rowsort label-5242
SELECT + - 77 - - COUNT ( + 1 ), SUM ( - + 2 ) AS col0
----
-76
-2

query II rowsort
SELECT + NULLIF ( 86, - 65 + + 97 ) AS col2, 17
----
86
17

query I rowsort
SELECT ALL + 8 * 74
----
592

query I rowsort
SELECT ALL 87 + - - 14 AS col2
----
101

query I rowsort
SELECT DISTINCT 41 * + 18 AS col0
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT 41 * + COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5247
SELECT 41 * + COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5248
SELECT MAX( ALL + + ( + 59 ) ) DIV + 83 + + 74 - 87 * 30 + COUNT( * )
----
-2535

skipif mysql # not compatible
query I rowsort label-5248
SELECT MAX ( ALL + + ( + 59 ) ) / + 83 + + 74 - 87 * 30 + COUNT ( * )
----
-2535

query I rowsort
SELECT 83 * - NULLIF ( + CASE 61 WHEN - + 26 * - 80 + 88 THEN 5 END, + 12 ) * 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ALL - CASE - 38 WHEN COUNT( * ) * - 96 THEN - - 98 WHEN + + 37 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL - CASE - 38 WHEN COUNT ( * ) * - 96 THEN - - 98 WHEN + + 37 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5251
SELECT 92 + - + 44 AS col1, + COUNT( * )
----
48
1

skipif mysql # not compatible
query II rowsort label-5251
SELECT 92 + - + 44 AS col1, + COUNT ( * )
----
48
1

query II rowsort
SELECT 8 * - 34, - 45 AS col0
----
-272
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-5253
SELECT ALL + COUNT( * ) * 79, + 40 + 84 AS col2
----
79
124

skipif mysql # not compatible
query II rowsort label-5253
SELECT ALL + COUNT ( * ) * 79, + 40 + 84 AS col2
----
79
124

query I rowsort
SELECT 97 + - - 4
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT - COUNT( DISTINCT + 60 ) + - COUNT( * ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT - COUNT ( DISTINCT + 60 ) + - COUNT ( * ) col1
----
-2

query I rowsort
SELECT ALL - 94 + 17
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT DISTINCT - 35 + - 2 DIV - 60
----
-35

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT - 35 + - 2 / - 60
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT 31 + + ( + 54 ) + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5258
SELECT 31 + + ( + 54 ) + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 49 + - 50 AS col0
----
-99

query I rowsort
SELECT - + 78 * + + 50 + + 95 + + 41
----
-3764

query I rowsort
SELECT ( + - 35 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT NULLIF ( 32, - 87 * - - 92 + CASE - 46 WHEN + + 75 THEN NULL ELSE + MIN( ALL + - 78 ) END - - - COALESCE ( - + 94, MIN( 69 ) - - 76, + ( + 35 ), SUM( 45 ) * + 27 ) ) + - 1 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5262
SELECT NULLIF ( 32, - 87 * - - 92 + CASE - 46 WHEN + + 75 THEN NULL ELSE + MIN ( ALL + - 78 ) END - - - COALESCE ( - + 94, MIN ( 69 ) - - 76, + ( + 35 ), SUM ( 45 ) * + 27 ) ) + - 1 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL NULLIF ( 44, + COUNT( * ) + - MIN( - + 99 ) )
----
44

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL NULLIF ( 44, + COUNT ( * ) + - MIN ( - + 99 ) )
----
44

query I rowsort
SELECT + 52 + - 88 + 40 * + 5
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT COUNT( * ) + + 58 + 34 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5265
SELECT COUNT ( * ) + + 58 + 34 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT + - CASE + ( - 94 ) WHEN - 9 * + + 41 THEN + 20 / + AVG ( 40 ) * - 27 * + 96 + - COALESCE ( - 27, ( + SUM( + 16 ) ) + + 48 * - COUNT( * ), 93 * - 62 ) END + - MAX( DISTINCT - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT + - CASE + ( - 94 ) WHEN - 9 * + + 41 THEN + 20 / + AVG ( 40 ) * - 27 * + 96 + - COALESCE ( - 27, ( + SUM ( + 16 ) ) + + 48 * - COUNT ( * ), 93 * - 62 ) END + - MAX ( DISTINCT - 62 )
----
NULL

query II rowsort
SELECT ALL - 87 + - 21, 35 * + 95 + - 18 * 44 AS col2
----
-108
2533

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL - 28 * SUM( DISTINCT - + 99 ) * - COALESCE ( + COUNT( * ), + NULLIF ( + 86, + - 17 / + 1 + - 95 ) ) - - COUNT( * ) - + ( + - 37 ) - + 72 + ( + 32 ) * + + 26 + + + 25 + - 83
----
-2032

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL - 28 * SUM ( DISTINCT - + 99 ) * - COALESCE ( + COUNT ( * ), + NULLIF ( + 86, + - 17 / + 1 + - 95 ) ) - - COUNT ( * ) - + ( + - 37 ) - + 72 + ( + 32 ) * + + 26 + + + 25 + - 83
----
-2032

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT - - COUNT( * ) + - 42 + COUNT( + 55 ) * + MIN( 49 ) * + COALESCE ( + 26, 21 - + 31, + 93 ) * - NULLIF ( - + 60, + MAX( + 35 ) )
----
76399

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT - - COUNT ( * ) + - 42 + COUNT ( + 55 ) * + MIN ( 49 ) * + COALESCE ( + 26, 21 - + 31, + 93 ) * - NULLIF ( - + 60, + MAX ( + 35 ) )
----
76399

query I rowsort
SELECT - 1 + - - 91
----
90

query II rowsort
SELECT ALL - COALESCE ( 8, - 57 * + 80 ) - - 19, 88 AS col2
----
11
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5272
SELECT ALL + + COALESCE ( + 52, 35 ) * 79 AS col2, + SUM( DISTINCT 58 ) AS col1
----
4108
58

skipif mysql # not compatible
query II rowsort label-5272
SELECT ALL + + COALESCE ( + 52, 35 ) * 79 AS col2, + SUM ( DISTINCT 58 ) AS col1
----
4108
58

query II rowsort
SELECT - ( 97 ) + - 41 * ( - 55 ) AS col0, 48 AS col2
----
2158
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5274
SELECT 59 * - + 42 AS col0, 85 * - - COUNT( * )
----
-2478
85

skipif mysql # not compatible
query II rowsort label-5274
SELECT 59 * - + 42 AS col0, 85 * - - COUNT ( * )
----
-2478
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5275
SELECT ALL 54, - COUNT( * ) + + 77 + - 20 * - + NULLIF ( + 21, + 47 ) * + 8 AS col0
----
54
3436

skipif mysql # not compatible
query II rowsort label-5275
SELECT ALL 54, - COUNT ( * ) + + 77 + - 20 * - + NULLIF ( + 21, + 47 ) * + 8 AS col0
----
54
3436

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT 86 * 36 * + + 59 * + - COUNT( * )
----
-182664

skipif mysql # not compatible
query I rowsort label-5276
SELECT 86 * 36 * + + 59 * + - COUNT ( * )
----
-182664

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT SUM( ALL 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5277
SELECT SUM ( ALL 84 ) AS col0
----
84

query I rowsort
SELECT DISTINCT 88 * + 11 AS col0
----
968

query I rowsort
SELECT 76 * + 19 AS col2
----
1444

query II rowsort
SELECT ALL - 11 AS col0, - ( - 86 ) AS col2
----
-11
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT MAX( ALL ( + + 80 ) ) col1
----
80

skipif mysql # not compatible
query I rowsort label-5281
SELECT MAX ( ALL ( + + 80 ) ) col1
----
80

query I rowsort
SELECT ALL 22 * - - 70 col1
----
1540

query I rowsort
SELECT DISTINCT 52 * + - 20 col1
----
-1040

query I rowsort
SELECT 66 * + - 20 col0
----
-1320

query I rowsort
SELECT 1 * - - 88 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL COUNT( * ) * 79 col1
----
79

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL COUNT ( * ) * 79 col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT + CASE COUNT( * ) WHEN + 59 * - - 44 - - - 90 * + 30 THEN + 79 END * + - NULLIF ( COUNT( * ), - 37 / SUM( DISTINCT 10 ) + 46 ) - - + MIN( ALL 9 ) + ( - 30 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT + CASE COUNT ( * ) WHEN + 59 * - - 44 - - - 90 * + 30 THEN + 79 END * + - NULLIF ( COUNT ( * ), - 37 / SUM ( DISTINCT 10 ) + 46 ) - - + MIN ( ALL 9 ) + ( - 30 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT COUNT( DISTINCT - + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-5288
SELECT COUNT ( DISTINCT - + 58 )
----
1

query I rowsort
SELECT 27 * + + 5 - + + 96
----
39

query I rowsort
SELECT ALL 51 + - 8
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL - CASE + 90 WHEN - 20 * + 15 + - ( 99 ) + - - COUNT( * ) + 30 * + MIN( + 76 ) - - 11 + - - COUNT( * ) + + COALESCE ( + ( - ( - - 91 ) ), + 51 ) THEN NULL WHEN - + 68 + + 83 THEN ( + 30 ) ELSE 85 END col0
----
-85

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - CASE + 90 WHEN - 20 * + 15 + - ( 99 ) + - - COUNT ( * ) + 30 * + MIN ( + 76 ) - - 11 + - - COUNT ( * ) + + COALESCE ( + ( - ( - - 91 ) ), + 51 ) THEN NULL WHEN - + 68 + + 83 THEN ( + 30 ) ELSE 85 END col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL - 82 + SUM( DISTINCT 73 )
----
-9

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - 82 + SUM ( DISTINCT 73 )
----
-9

query I rowsort
SELECT DISTINCT 44 + + - 85
----
-41

query I rowsort
SELECT ALL + NULLIF ( 67, 54 ) + 15 AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5295
SELECT 45, CAST( - 91 AS SIGNED ) AS col2
----
45
-91

skipif mysql # not compatible
query II rowsort label-5295
SELECT 45, CAST ( - 91 AS INTEGER ) AS col2
----
45
-91

query I rowsort
SELECT DISTINCT - ( - 30 )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5297
SELECT - + 88 * NULLIF ( + 9, + COUNT( * ) ) - - - 87, - 72 AS col2
----
-879
-72

skipif mysql # not compatible
query II rowsort label-5297
SELECT - + 88 * NULLIF ( + 9, + COUNT ( * ) ) - - - 87, - 72 AS col2
----
-879
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5298
SELECT NULLIF ( - 58, - NULLIF ( + COALESCE ( CAST( NULL AS DECIMAL ), - 27 ), COUNT( * ) * - - 9 + 20 * - 79 ) * + + NULLIF ( - 26, - CAST( + COUNT( * ) AS SIGNED ) + + 6 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-5298
SELECT NULLIF ( - 58, - NULLIF ( + COALESCE ( CAST ( NULL AS REAL ), - 27 ), COUNT ( * ) * - - 9 + 20 * - 79 ) * + + NULLIF ( - 26, - CAST ( + COUNT ( * ) AS INTEGER ) + + 6 ) )
----
-58

query I rowsort
SELECT - ( 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT DISTINCT + ( + 68 ) + 71 * - ( - + COUNT( * ) ), 37 * + - 79 AS col1
----
139
-2923

skipif mysql # not compatible
query II rowsort label-5300
SELECT DISTINCT + ( + 68 ) + 71 * - ( - + COUNT ( * ) ), 37 * + - 79 AS col1
----
139
-2923

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT DISTINCT - COUNT( ALL + ( - 14 ) ) - 83
----
-84

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT - COUNT ( ALL + ( - 14 ) ) - 83
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT DISTINCT - COUNT( * ) * COALESCE ( - 48, + COUNT( * ) ) * - COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT - COUNT ( * ) * COALESCE ( - 48, + COUNT ( * ) ) * - COUNT ( * ) AS col2
----
-48

query I rowsort
SELECT - 90 + + 53 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT - - COUNT( * ) + - + 19 * 13 AS col2
----
-246

skipif mysql # not compatible
query I rowsort label-5304
SELECT - - COUNT ( * ) + - + 19 * 13 AS col2
----
-246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5305
SELECT - - 36 * + COUNT( * ) DIV - + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5305
SELECT - - 36 * + COUNT ( * ) / - + 38 AS col2
----
0

query I rowsort
SELECT ALL + 84 * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL NULLIF ( + 17, - + COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL NULLIF ( + 17, - + COUNT ( * ) )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5308
SELECT - 17 + + - 26 + + COUNT( * ) * SUM( DISTINCT 33 ) DIV 44 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-5308
SELECT - 17 + + - 26 + + COUNT ( * ) * SUM ( DISTINCT 33 ) / 44 AS col2
----
-43

query I rowsort
SELECT - 35 * - + 15
----
525

query I rowsort
SELECT - 87 - - CASE + - 72 WHEN - 58 + 25 + + 91 * - 2 + - - 33 * - + 17 THEN 94 WHEN + 53 / - 13 + + ( - + 34 ) THEN - 5 END
----
NULL

query I rowsort
SELECT - 99 * + + 24 * + - 94 AS col2
----
223344

query II rowsort
SELECT + 73 AS col1, 70
----
73
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5313
SELECT - ( + + 29 ) * + COALESCE ( 15, - 59, 17 + - 39 + - 20 DIV - + 66 ) + + - 81 - + 65 AS col0, COUNT( 95 )
----
-581
1

skipif mysql # not compatible
query II rowsort label-5313
SELECT - ( + + 29 ) * + COALESCE ( 15, - 59, 17 + - 39 + - 20 / - + 66 ) + + - 81 - + 65 AS col0, COUNT ( 95 )
----
-581
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ( - + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5314
SELECT ( - + COUNT ( * ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT + 40 * - MIN( ALL - 98 ) * 3 AS col2, - 43 + - 64 AS col1
----
11760
-107

skipif mysql # not compatible
query II rowsort label-5315
SELECT + 40 * - MIN ( ALL - 98 ) * 3 AS col2, - 43 + - 64 AS col1
----
11760
-107

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5316
SELECT - CAST( NULL AS DECIMAL ) + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5316
SELECT - CAST ( NULL AS REAL ) + - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT COALESCE ( - 30, SUM( DISTINCT 57 ), 46 )
----
-30

skipif mysql # not compatible
query I rowsort label-5317
SELECT COALESCE ( - 30, SUM ( DISTINCT 57 ), 46 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT DISTINCT 36 * + 11 + + ( + 28 ) * + CASE 63 WHEN - 53 * CASE - 51 WHEN AVG ( 10 ) / + 4 THEN - 20 + - - NULLIF ( 2, + CAST( NULL AS SIGNED ) * + + 19 + 25 + 68 ) * - + ( COUNT( * ) ) END / COUNT( * ) THEN NULL WHEN 23 THEN + CAST( NULL AS SIGNED ) END * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT 36 * + 11 + + ( + 28 ) * + CASE 63 WHEN - 53 * CASE - 51 WHEN AVG ( 10 ) / + 4 THEN - 20 + - - NULLIF ( 2, + CAST ( NULL AS INTEGER ) * + + 19 + 25 + 68 ) * - + ( COUNT ( * ) ) END / COUNT ( * ) THEN NULL WHEN 23 THEN + CAST ( NULL AS INTEGER ) END * 6
----
NULL

query I rowsort
SELECT ALL 4 * - + 83 + - 90 AS col2
----
-422

query III rowsort
SELECT DISTINCT + 75 AS col0, 70 AS col1, + + 58 + 83
----
75
70
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5321
SELECT DISTINCT - 23 * + - 45 + + 43 + - - COUNT( * ) + + 64 DIV + COUNT( * )
----
1143

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT - 23 * + - 45 + + 43 + - - COUNT ( * ) + + 64 / + COUNT ( * )
----
1143

query I rowsort
SELECT ALL + 40 * + - 32 + + 33
----
-1247

query I rowsort
SELECT + - 47 * - 99 * + 94
----
437382

query I rowsort
SELECT + - 42 * + 19 AS col0
----
-798

query I rowsort
SELECT + + 72 * 86 * 4
----
24768

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT + 34 + - COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5326
SELECT + 34 + - COUNT ( * ) AS col0
----
33

query I rowsort
SELECT ALL 4 * - 83 AS col2
----
-332

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL + COUNT( * ) * 53 - - + 47 - - COUNT( * ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL + COUNT ( * ) * 53 - - + 47 - - COUNT ( * ) AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT + + 15 + + COUNT( * ) - + + 82
----
-66

skipif mysql # not compatible
query I rowsort label-5329
SELECT + + 15 + + COUNT ( * ) - + + 82
----
-66

query II rowsort
SELECT ALL + 52 AS col2, - 18 + - 0 AS col1
----
52
-18

query I rowsort
SELECT + 23 + 44
----
67

query I rowsort
SELECT + - 46 * 41 - ( 55 )
----
-1941

query II rowsort
SELECT + 36 + + 96 AS col0, 2
----
132
2

query II rowsort
SELECT DISTINCT 76 * 29, 65 AS col0
----
2204
65

query I rowsort
SELECT + 63 * - 51 col0
----
-3213

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5336
SELECT ALL ( - CASE + - 24 WHEN COUNT( * ) + + CAST( NULL AS DECIMAL ) * + 91 * + + 65 THEN 88 * + 27 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL ( - CASE + - 24 WHEN COUNT ( * ) + + CAST ( NULL AS REAL ) * + 91 * + + 65 THEN 88 * + 27 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT - 11 + + - MIN( DISTINCT 62 ) * + - 46
----
2841

skipif mysql # not compatible
query I rowsort label-5337
SELECT - 11 + + - MIN ( DISTINCT 62 ) * + - 46
----
2841

query I rowsort
SELECT ALL 76 * - - 16 AS col1
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT + SUM( DISTINCT + 26 ) * 5
----
130

skipif mysql # not compatible
query I rowsort label-5339
SELECT + SUM ( DISTINCT + 26 ) * 5
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5340
SELECT - CAST( 54 AS SIGNED ), 62 col2
----
-54
62

skipif mysql # not compatible
query II rowsort label-5340
SELECT - CAST ( 54 AS INTEGER ), 62 col2
----
-54
62

query I rowsort
SELECT DISTINCT + 81 + + 44 - + 95 + - 39 AS col1
----
-9

query I rowsort
SELECT ALL - 26 + - 71 * 94 AS col0
----
-6700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5343
SELECT - CAST( 57 AS SIGNED ), + 13 + - + 1 DIV + MIN( 56 ) + 82 * + + 18 AS col2
----
-57
1489

skipif mysql # not compatible
query II rowsort label-5343
SELECT - CAST ( 57 AS INTEGER ), + 13 + - + 1 / + MIN ( 56 ) + 82 * + + 18 AS col2
----
-57
1489

onlyif mysql # DIV for integer division: 
query II rowsort label-5344
SELECT - 40 DIV + - 46 AS col1, + 34 * - - 22 + - 33 + + 24 * - 51 AS col0
----
0
-509

skipif mysql # not compatible
query II rowsort label-5344
SELECT - 40 / + - 46 AS col1, + 34 * - - 22 + - 33 + + 24 * - 51 AS col0
----
0
-509

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5345
SELECT ALL + MAX( - 24 ) DIV 70 AS col2, 2 DIV 82 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-5345
SELECT ALL + MAX ( - 24 ) / 70 AS col2, 2 / 82 AS col1
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5346
SELECT DISTINCT 75 + - CASE COUNT( * ) WHEN 92 THEN 2 * + - 73 + + + 15 ELSE - + ( + + CAST( NULL AS SIGNED ) ) END * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT 75 + - CASE COUNT ( * ) WHEN 92 THEN 2 * + - 73 + + + 15 ELSE - + ( + + CAST ( NULL AS INTEGER ) ) END * - 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5347
SELECT - 4 DIV COALESCE ( 93, + 87 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5347
SELECT - 4 / COALESCE ( 93, + 87 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT - 22 * + - CAST( - 38 AS SIGNED ) AS col1
----
-836

skipif mysql # not compatible
query I rowsort label-5348
SELECT - 22 * + - CAST ( - 38 AS INTEGER ) AS col1
----
-836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5349
SELECT DISTINCT - 79 DIV - 91 + - MIN( ALL - + 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT - 79 / - 91 + - MIN ( ALL - + 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL - 91 * - CASE + 72 WHEN - - 77 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL - 91 * - CASE + 72 WHEN - - 77 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT ALL + ( + + ( + + CAST( + + 85 AS SIGNED ) ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL + ( + + ( + + CAST ( + + 85 AS INTEGER ) ) ) AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5352
SELECT - CAST( - + 60 AS SIGNED ) * ( - COUNT( * ) ) - 54
----
-114

skipif mysql # not compatible
query I rowsort label-5352
SELECT - CAST ( - + 60 AS INTEGER ) * ( - COUNT ( * ) ) - 54
----
-114

query II rowsort
SELECT - - 50 * - 39 - - 74 AS col1, 40 * 67
----
-1876
2680

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT DISTINCT + CASE 35 WHEN 70 / - + ( CASE - + ( - COUNT( * ) ) WHEN 40 + - 58 THEN - 8 ELSE - 19 * - 81 END ) THEN - + 18 END / + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + CASE 35 WHEN 70 / - + ( CASE - + ( - COUNT ( * ) ) WHEN 40 + - 58 THEN - 8 ELSE - 19 * - 81 END ) THEN - + 18 END / + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL MIN( + 36 ) * - - ( 44 ) AS col2
----
1584

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL MIN ( + 36 ) * - - ( 44 ) AS col2
----
1584

query I rowsort
SELECT + 45 * + 41 + 27 AS col0
----
1872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5357
SELECT ALL + - 87 DIV - COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL + - 87 / - COUNT ( * ) AS col0
----
87

query I rowsort
SELECT DISTINCT - - COALESCE ( - 46, + - 85, - 60 )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5359
SELECT 61 * - 29 * - ( - 5 ) * + 90 DIV - + 30 - 56 AS col0
----
26479

skipif mysql # not compatible
query I rowsort label-5359
SELECT 61 * - 29 * - ( - 5 ) * + 90 / - + 30 - 56 AS col0
----
26479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5360
SELECT + ( - MIN( ALL - 68 ) ) DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-5360
SELECT + ( - MIN ( ALL - 68 ) ) / + 47
----
1

query I rowsort
SELECT 26 + - 10 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT - COUNT( 22 ) * + + 65
----
-65

skipif mysql # not compatible
query I rowsort label-5362
SELECT - COUNT ( 22 ) * + + 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT + + COUNT( * ) * - MIN( - 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT + + COUNT ( * ) * - MIN ( - 82 ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5364
SELECT DISTINCT CAST( + COUNT( + 58 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT CAST ( + COUNT ( + 58 ) AS INTEGER )
----
1

query II rowsort
SELECT ALL + 23 + - 54 col2, 67
----
-31
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5366
SELECT 76, - COUNT( * ) * - - 32 AS col1
----
76
-32

skipif mysql # not compatible
query II rowsort label-5366
SELECT 76, - COUNT ( * ) * - - 32 AS col1
----
76
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT 56 + - COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5367
SELECT 56 + - COUNT ( * ) AS col2
----
55

query I rowsort
SELECT COALESCE ( - 84, 20, + 72 ) * 5 * + ( + 84 ) AS col1
----
-35280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT ALL 70 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL 70 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT SUM( ALL 64 ) + - MIN( DISTINCT - - 65 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5370
SELECT SUM ( ALL 64 ) + - MIN ( DISTINCT - - 65 ) AS col0
----
-1

query I rowsort
SELECT 82 + + 3 + 64 * + 54
----
3541

query II rowsort
SELECT - 19, - 62 AS col2
----
-19
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT ALL COUNT( * ) + - NULLIF ( + 88, 27 - 75 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL COUNT ( * ) + - NULLIF ( + 88, 27 - 75 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT CASE ( - 87 ) WHEN + - 5 THEN NULL WHEN - - 59 THEN - 98 * - 54 ELSE + COUNT( * ) END + + - 50
----
-49

skipif mysql # not compatible
query I rowsort label-5374
SELECT CASE ( - 87 ) WHEN + - 5 THEN NULL WHEN - - 59 THEN - 98 * - 54 ELSE + COUNT ( * ) END + + - 50
----
-49

query I rowsort
SELECT ALL 34 + 36 * 20 AS col0
----
754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5376
SELECT 1 + CASE - + 64 WHEN 50 THEN + ( 59 ) * + + 24 DIV - 65 WHEN - AVG ( - 5 ) DIV - - MAX( + 91 ) THEN - 64 + + CAST( - 3 AS SIGNED ) * + 70 * COUNT( * ) WHEN - 65 THEN 3 DIV - - 48 DIV - 16 * 52 * - + COUNT( * ) * + 79 - - COUNT( * ) * + 66 ELSE - 3 + 64 * + 4 END - + 60
----
194

skipif mysql # not compatible
query I rowsort label-5376
SELECT 1 + CASE - + 64 WHEN 50 THEN + ( 59 ) * + + 24 / - 65 WHEN - AVG ( - 5 ) / - - MAX ( + 91 ) THEN - 64 + + CAST ( - 3 AS INTEGER ) * + 70 * COUNT ( * ) WHEN - 65 THEN 3 / - - 48 / - 16 * 52 * - + COUNT ( * ) * + 79 - - COUNT ( * ) * + 66 ELSE - 3 + 64 * + 4 END - + 60
----
194

query I rowsort
SELECT ALL - 95 + - 71 AS col2
----
-166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT ALL + CAST( NULL AS SIGNED ) + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + CAST ( NULL AS INTEGER ) + 48 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5379
SELECT CAST( NULL AS DECIMAL ) - 72 * 0 + + AVG ( DISTINCT - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT CAST ( NULL AS REAL ) - 72 * 0 + + AVG ( DISTINCT - 34 )
----
NULL

query II rowsort
SELECT ALL 86 AS col0, 21
----
86
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5381
SELECT 91 + - CAST( NULL AS SIGNED ) * - 99 + + 65 - 66 + COUNT( * ) * - 85 * + CAST( - 18 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT 91 + - CAST ( NULL AS INTEGER ) * - 99 + + 65 - 66 + COUNT ( * ) * - 85 * + CAST ( - 18 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 26 + - 28 AS col2
----
-2

query II rowsort
SELECT 76, 15 AS col2
----
76
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT - COUNT( * ) * + 26 + 3 + + + MIN( DISTINCT + - NULLIF ( - 61, + + 88 ) ) * + 32 AS col1
----
1929

skipif mysql # not compatible
query I rowsort label-5384
SELECT - COUNT ( * ) * + 26 + 3 + + + MIN ( DISTINCT + - NULLIF ( - 61, + + 88 ) ) * + 32 AS col1
----
1929

query I rowsort
SELECT ALL ( + 16 ) - - 35 * - 76
----
-2644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5386
SELECT - ( COUNT( * ) ) DIV + + 6 + 43 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5386
SELECT - ( COUNT ( * ) ) / + + 6 + 43 AS col0
----
43

query I rowsort
SELECT 42 * + + 27 * 50
----
56700

onlyif mysql # DIV for integer division: 
query I rowsort label-5388
SELECT 5 DIV - 99 + + COALESCE ( 87, + 86 + - 94 DIV 48 + + + 96 + 23 )
----
87

skipif mysql # not compatible
query I rowsort label-5388
SELECT 5 / - 99 + + COALESCE ( 87, + 86 + - 94 / 48 + + + 96 + 23 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL - MIN( DISTINCT + 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - MIN ( DISTINCT + 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT DISTINCT - + ( + - MIN( ALL + 92 ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT - + ( + - MIN ( ALL + 92 ) ) AS col1
----
92

query I rowsort
SELECT + 2 * 34
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5392
SELECT + 16 * CAST( - COUNT( * ) AS SIGNED ) AS col1, - NULLIF ( - + 99, + + 7 * - 74 - - + 34 ) AS col1
----
-16
99

skipif mysql # not compatible
query II rowsort label-5392
SELECT + 16 * CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - NULLIF ( - + 99, + + 7 * - 74 - - + 34 ) AS col1
----
-16
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5393
SELECT ALL - + CASE 57 WHEN COUNT( * ) THEN 0 DIV + + COUNT( * ) ELSE - - 28 + - 53 END
----
25

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL - + CASE 57 WHEN COUNT ( * ) THEN 0 / + + COUNT ( * ) ELSE - - 28 + - 53 END
----
25

onlyif mysql # DIV for integer division: 
query III rowsort label-5394
SELECT ALL - + 60 AS col2, + 20 DIV ( + 61 ), - 45 AS col0
----
-60
0
-45

skipif mysql # not compatible
query III rowsort label-5394
SELECT ALL - + 60 AS col2, + 20 / ( + 61 ), - 45 AS col0
----
-60
0
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT 64 DIV - + 76 + 25 + 22 * + 8 AS col1
----
201

skipif mysql # not compatible
query I rowsort label-5395
SELECT 64 / - + 76 + 25 + 22 * + 8 AS col1
----
201

query I rowsort
SELECT ( 28 ) AS col0
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5397
SELECT + 43 + + 57 - + 32 / - 0 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT + 43 + + 57 - + 32 / - 0 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5398
SELECT - 82 * + 89 * COUNT( * ) + CASE + 67 WHEN - 75 * 76 DIV 60 THEN + - 97 WHEN - 3 THEN NULL WHEN - + 31 THEN - 4 ELSE + ( + COUNT( * ) ) DIV - 72 + SUM( ALL - - 72 ) + + + 43 END DIV 25
----
-7294

skipif mysql # not compatible
query I rowsort label-5398
SELECT - 82 * + 89 * COUNT ( * ) + CASE + 67 WHEN - 75 * 76 / 60 THEN + - 97 WHEN - 3 THEN NULL WHEN - + 31 THEN - 4 ELSE + ( + COUNT ( * ) ) / - 72 + SUM ( ALL - - 72 ) + + + 43 END / 25
----
-7294

query I rowsort
SELECT DISTINCT + 51 * + 85 AS col2
----
4335

query I rowsort
SELECT 38 * - + 94
----
-3572

query I rowsort
SELECT ALL + ( 96 ) * 88 AS col1
----
8448

query I rowsort
SELECT ALL 71 + + - 82 AS col2
----
-11

query I rowsort
SELECT ALL + 57 + + 31 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT 48 + - - MAX( DISTINCT 6 ) - 51 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5404
SELECT 48 + - - MAX ( DISTINCT 6 ) - 51 AS col0
----
3

query I rowsort
SELECT - + ( 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5406
SELECT + 0 col2, + ( + COALESCE ( + 24, - ( ( - MIN( + 27 ) ) ) ) )
----
0
24

skipif mysql # not compatible
query II rowsort label-5406
SELECT + 0 col2, + ( + COALESCE ( + 24, - ( ( - MIN ( + 27 ) ) ) ) )
----
0
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT + + COALESCE ( - 4, CASE - - 91 WHEN 4 THEN + 16 WHEN + 96 THEN + - 13 END + + 48, + + 38 ) * - - COUNT( * ) + + 51 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5407
SELECT + + COALESCE ( - 4, CASE - - 91 WHEN 4 THEN + 16 WHEN + 96 THEN + - 13 END + + 48, + + 38 ) * - - COUNT ( * ) + + 51 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT ALL + 26 + + CASE - COUNT( * ) WHEN + COALESCE ( - 62, + + 46 ) / + NULLIF ( + + 97, 68 ) * ( + + 43 ) + - 0 * + COUNT( * ) * + 14 THEN + 34 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL + 26 + + CASE - COUNT ( * ) WHEN + COALESCE ( - 62, + + 46 ) / + NULLIF ( + + 97, 68 ) * ( + + 43 ) + - 0 * + COUNT ( * ) * + 14 THEN + 34 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT 72 * - + NULLIF ( - 66, 86 * 69 + + COUNT( * ) )
----
4752

skipif mysql # not compatible
query I rowsort label-5409
SELECT 72 * - + NULLIF ( - 66, 86 * 69 + + COUNT ( * ) )
----
4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5410
SELECT DISTINCT - COUNT( + 86 ) * - - CASE - - 83 WHEN - NULLIF ( - CAST( 2 AS SIGNED ), + + ( - 43 ) ) THEN - 40 + 64 END * + 53 + - - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT - COUNT ( + 86 ) * - - CASE - - 83 WHEN - NULLIF ( - CAST ( 2 AS INTEGER ), + + ( - 43 ) ) THEN - 40 + 64 END * + 53 + - - 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5411
SELECT 91 DIV SUM( 58 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5411
SELECT 91 / SUM ( 58 ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT ALL - 63 + 61 DIV - 13 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL - 63 + 61 / - 13 AS col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT DISTINCT 75 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT 75 / - 84
----
0

query I rowsort
SELECT 17 + 30 + + 36 * + 62
----
2279

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT - MAX( 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5415
SELECT - MAX ( 91 ) AS col2
----
-91

query I rowsort
SELECT ALL - 74 * 44 * + ( 77 ) AS col0
----
-250712

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT + 0 * - 25 * + 99 + - CASE + 84 WHEN COUNT( 38 ) THEN + MIN( ALL + 49 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT + 0 * - 25 * + 99 + - CASE + 84 WHEN COUNT ( 38 ) THEN + MIN ( ALL + 49 ) END AS col2
----
NULL

query I rowsort
SELECT + 58 + - 91 + - - 28 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), - 32 ) * 6 * + 51 - - 47 / - - CAST( - - COUNT( * ) AS SIGNED ) * + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), - 32 ) * 6 * + 51 - - 47 / - - CAST ( - - COUNT ( * ) AS INTEGER ) * + 46 AS col1
----
NULL

query I rowsort
SELECT + + 42 * 61 col0
----
2562

onlyif mysql # DIV for integer division: 
query I rowsort label-5421
SELECT DISTINCT 81 DIV 11
----
7

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT 81 / 11
----
7

query I rowsort
SELECT DISTINCT + + 82 * + - 87
----
-7134

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5423
SELECT - + COUNT( * ) * + 86 * CASE + 38 WHEN + 64 * - + 75 + + 97 THEN NULL WHEN + NULLIF ( - + CAST( NULL AS DECIMAL ), 60 ) THEN + 68 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT - + COUNT ( * ) * + 86 * CASE + 38 WHEN + 64 * - + 75 + + 97 THEN NULL WHEN + NULLIF ( - + CAST ( NULL AS REAL ), 60 ) THEN + 68 END col0
----
NULL

query I rowsort
SELECT - 53 * 82
----
-4346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5425
SELECT DISTINCT - COALESCE ( MIN( ALL - 64 ), + COUNT( * ) + 14 * - + CAST( - COUNT( * ) AS SIGNED ) * + + 22 + - MIN( ALL 89 ) * - + COALESCE ( 23, - 21 DIV - 26 + - COUNT( - 46 ) - 29 * + 44 ) * - MIN( + 51 ) + + MAX( ALL 20 ), + - 85 ) + + 30 + - ( - 20 ) + + ( + 19 ) * - 15
----
-171

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT - COALESCE ( MIN ( ALL - 64 ), + COUNT ( * ) + 14 * - + CAST ( - COUNT ( * ) AS INTEGER ) * + + 22 + - MIN ( ALL 89 ) * - + COALESCE ( 23, - 21 / - 26 + - COUNT ( - 46 ) - 29 * + 44 ) * - MIN ( + 51 ) + + MAX ( ALL 20 ), + - 85 ) + + 30 + - ( - 20 ) + + ( + 19 ) * - 15
----
-171

query I rowsort
SELECT ALL + 95 + + - 43 col1
----
52

query I rowsort
SELECT DISTINCT - 23 * - 98 col0
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT - 57 * - + COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5428
SELECT - 57 * - + COUNT ( * ) AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5429
SELECT - 69 + + CASE - + 30 WHEN COUNT( - 17 ) THEN + + 4 - + + 16 + - 45 ELSE - CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT - 69 + + CASE - + 30 WHEN COUNT ( - 17 ) THEN + + 4 - + + 16 + - 45 ELSE - CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5430
SELECT ALL - COALESCE ( - + ( - 16 ), - + 73 + - + 32 + - 77 + 65 * - 61 * - 32 * - - 62 * + 9 * + 49 * - + 2 * - 42 ) - 97 col2, - COALESCE ( ( 25 ), COUNT( * ) ) + 29 AS col0
----
-113
4

skipif mysql # not compatible
query II rowsort label-5430
SELECT ALL - COALESCE ( - + ( - 16 ), - + 73 + - + 32 + - 77 + 65 * - 61 * - 32 * - - 62 * + 9 * + 49 * - + 2 * - 42 ) - 97 col2, - COALESCE ( ( 25 ), COUNT ( * ) ) + 29 AS col0
----
-113
4

query I rowsort
SELECT - 87 * + 72 AS col2
----
-6264

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT - MAX( ALL - - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-5432
SELECT - MAX ( ALL - - 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT - 63 + + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-5433
SELECT - 63 + + COUNT ( * )
----
-62

query I rowsort
SELECT + 27 * + 44 AS col2
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL - 5 * - 19 * - 70 * CASE - 13 WHEN + 37 * - 70 THEN NULL WHEN 95 * - 14 THEN + COUNT( * ) / + - COUNT( * ) * - + COUNT( * ) / COUNT( + + 60 ) + 76 - - + ( COUNT( * ) ) END * - COALESCE ( + MAX( DISTINCT - - 34 ), - 39 * 45, - 43 * - 42 + - + 30 + 11 ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL - 5 * - 19 * - 70 * CASE - 13 WHEN + 37 * - 70 THEN NULL WHEN 95 * - 14 THEN + COUNT ( * ) / + - COUNT ( * ) * - + COUNT ( * ) / COUNT ( + + 60 ) + 76 - - + ( COUNT ( * ) ) END * - COALESCE ( + MAX ( DISTINCT - - 34 ), - 39 * 45, - 43 * - 42 + - + 30 + 11 ) * 86
----
NULL

query I rowsort
SELECT - 39 + + 55 + + - 88 * + ( - 95 ) + - ( + 77 )
----
8299

onlyif mysql # DIV for integer division: 
query I rowsort label-5437
SELECT + 45 DIV + 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5437
SELECT + 45 / + 47 AS col1
----
0

query I rowsort
SELECT - 15 + + 76 + - 69 AS col0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5439
SELECT DISTINCT - 86 DIV - 33 - + 12 + + 63 - - 43 * - + 92 * + 97
----
-383679

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT - 86 / - 33 - + 12 + + 63 - - 43 * - + 92 * + 97
----
-383679

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT - + COUNT( * ) * + 42
----
-42

skipif mysql # not compatible
query I rowsort label-5440
SELECT - + COUNT ( * ) * + 42
----
-42

query II rowsort
SELECT - - 9, 44 AS col0
----
9
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT + NULLIF ( + 29, - 97 * - 51 + + 76 ) + + - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-5442
SELECT + NULLIF ( + 29, - 97 * - 51 + + 76 ) + + - COUNT ( * ) AS col2
----
28

query I rowsort
SELECT ALL + ( + + 34 ) AS col2
----
34

query II rowsort
SELECT DISTINCT 10, + 96 * + + 32 * - 5 AS col2
----
10
-15360

query I rowsort
SELECT - 55 * - NULLIF ( + - 89, - 67 + - + 56 )
----
-4895

query I rowsort
SELECT + - 73 + - 39
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5447
SELECT + SUM( ALL 95 ) DIV + 72 + + 22
----
23

skipif mysql # not compatible
query I rowsort label-5447
SELECT + SUM ( ALL 95 ) / + 72 + + 22
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT + MAX( 37 )
----
37

skipif mysql # not compatible
query I rowsort label-5448
SELECT + MAX ( 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL + - ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL + - ( + + COUNT ( * ) )
----
-1

query I rowsort
SELECT + - 87 + + 18 * + + 90 + + 19 - 78 * - 94 * - 66 AS col2
----
-482360

onlyif mysql # aggregate syntax: 
query II rowsort label-5451
SELECT - 39 col2, COUNT( * ) * + 13 AS col1
----
-39
13

skipif mysql # not compatible
query II rowsort label-5451
SELECT - 39 col2, COUNT ( * ) * + 13 AS col1
----
-39
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5452
SELECT ALL 80 DIV - CAST( - + 57 AS SIGNED ) + 7 * + SUM( 95 ) AS col2, + 38 * 13 + - 83 + + + 17 * + - 45 + + CAST( NULL AS SIGNED ) * + SUM( ALL - - 32 ) - - ( - + 88 ) DIV + 60
----
666
NULL

skipif mysql # not compatible
query II rowsort label-5452
SELECT ALL 80 / - CAST ( - + 57 AS INTEGER ) + 7 * + SUM ( 95 ) AS col2, + 38 * 13 + - 83 + + + 17 * + - 45 + + CAST ( NULL AS INTEGER ) * + SUM ( ALL - - 32 ) - - ( - + 88 ) / + 60
----
666
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5453
SELECT + - 30 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-5453
SELECT + - 30 / - 99
----
0

query I rowsort
SELECT + 41 + + 50 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5455
SELECT 85 AS col1, 24 DIV + 90 DIV 65 * - - MIN( DISTINCT + 36 ) AS col1
----
85
0

skipif mysql # not compatible
query II rowsort label-5455
SELECT 85 AS col1, 24 / + 90 / 65 * - - MIN ( DISTINCT + 36 ) AS col1
----
85
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5456
SELECT + - CAST( - + 84 AS SIGNED ) * + + NULLIF ( - - 50, + 35 ) AS col0
----
4200

skipif mysql # not compatible
query I rowsort label-5456
SELECT + - CAST ( - + 84 AS INTEGER ) * + + NULLIF ( - - 50, + 35 ) AS col0
----
4200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5457
SELECT 69 * + - 16 * - + CASE - 37 WHEN - 86 THEN NULL WHEN - NULLIF ( + - 7, 67 - - 53 + + - 92 * + 81 * 63 * 33 * + COUNT( * ) ) THEN NULL ELSE + 56 + - 71 DIV + - 85 * - NULLIF ( 59, - + 8 ) END + - 6 - 38 AS col1
----
61780

skipif mysql # not compatible
query I rowsort label-5457
SELECT 69 * + - 16 * - + CASE - 37 WHEN - 86 THEN NULL WHEN - NULLIF ( + - 7, 67 - - 53 + + - 92 * + 81 * 63 * 33 * + COUNT ( * ) ) THEN NULL ELSE + 56 + - 71 / + - 85 * - NULLIF ( 59, - + 8 ) END + - 6 - 38 AS col1
----
61780

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT - COUNT( * ) * 1 * 12 - 89 AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT - COUNT ( * ) * 1 * 12 - 89 AS col1
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-5459
SELECT ALL 11 DIV 96 col0
----
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL 11 / 96 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT ALL - CAST( NULL AS SIGNED ) * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL - CAST ( NULL AS INTEGER ) * - 37
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - - 30, + 69 * + 30 / - 68 ) * ( - 6 ) - - 51 AS col2
----
231

query I rowsort
SELECT + ( + + 62 ) * + 62 - - 27 * + 69 AS col0
----
5707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT - 78 * - - CAST( - 54 AS SIGNED ) + 94 * + + SUM( DISTINCT - 51 ) * 29 AS col2
----
-134814

skipif mysql # not compatible
query I rowsort label-5463
SELECT - 78 * - - CAST ( - 54 AS INTEGER ) + 94 * + + SUM ( DISTINCT - 51 ) * 29 AS col2
----
-134814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT ALL - 46 * - - 16 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL - 46 * - - 16 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT MAX( - 14 ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-5465
SELECT MAX ( - 14 ) col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5466
SELECT COUNT( * ) AS col0, - 89 * CASE - 86 WHEN COUNT( * ) THEN - 29 ELSE NULL END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5466
SELECT COUNT ( * ) AS col0, - 89 * CASE - 86 WHEN COUNT ( * ) THEN - 29 ELSE NULL END AS col0
----
1
NULL

query I rowsort
SELECT ALL 4 * 80
----
320

query II rowsort
SELECT DISTINCT 84 col1, + ( - + 93 )
----
84
-93

query II rowsort
SELECT ALL 37 AS col1, 85 * 54
----
37
4590

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5470
SELECT 21 AS col0, + CAST( 2 AS SIGNED ) col1
----
21
2

skipif mysql # not compatible
query II rowsort label-5470
SELECT 21 AS col0, + CAST ( 2 AS INTEGER ) col1
----
21
2

query I rowsort
SELECT 45 * - + 69 AS col1
----
-3105

query I rowsort
SELECT ALL - 74 * + 46
----
-3404

query II rowsort
SELECT - 47 AS col2, - 84 AS col1
----
-47
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT NULLIF ( 30, - ( - 37 ) ) * + NULLIF ( + COUNT( * ), 10 + + 3 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5474
SELECT NULLIF ( 30, - ( - 37 ) ) * + NULLIF ( + COUNT ( * ), 10 + + 3 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5475
SELECT + 22 AS col1, COALESCE ( - COUNT( * ), + - 17 ) + - + 19 * - 87 * 98
----
22
161993

skipif mysql # not compatible
query II rowsort label-5475
SELECT + 22 AS col1, COALESCE ( - COUNT ( * ), + - 17 ) + - + 19 * - 87 * 98
----
22
161993

query I rowsort
SELECT - NULLIF ( - 26, - 34 )
----
26

query I rowsort
SELECT ALL - + 66 + + 34 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT DISTINCT + + ( - + COUNT( * ) ) + SUM( ALL + 14 ) col1
----
13

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT + + ( - + COUNT ( * ) ) + SUM ( ALL + 14 ) col1
----
13

query I rowsort
SELECT DISTINCT + + 86 * 97
----
8342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5480
SELECT DISTINCT - MAX( DISTINCT 31 ) + + - CASE - + NULLIF ( + - 37, + + 48 ) WHEN + 51 THEN - NULLIF ( 39, + + 75 / - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * + COUNT( * ) - - ( + COUNT( * ) ) + - 40 ) - + NULLIF ( - COUNT( * ), - 34 ) * - 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT - MAX ( DISTINCT 31 ) + + - CASE - + NULLIF ( + - 37, + + 48 ) WHEN + 51 THEN - NULLIF ( 39, + + 75 / - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) - - ( + COUNT ( * ) ) + - 40 ) - + NULLIF ( - COUNT ( * ), - 34 ) * - 91 END
----
NULL

query II rowsort
SELECT - 45 AS col1, 54 AS col0
----
-45
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL - - MAX( + - 74 ) + + - 69
----
-143

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL - - MAX ( + - 74 ) + + - 69
----
-143

query II rowsort
SELECT + 95, NULLIF ( - 7, - 2 + 93 ) AS col2
----
95
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT + COUNT( * ) * + - 4
----
-4

skipif mysql # not compatible
query I rowsort label-5484
SELECT + COUNT ( * ) * + - 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT + - ( + CASE - - COUNT( * ) WHEN + + 33 + + 87 - 90 THEN NULL WHEN - - 61 - - SUM( DISTINCT - - 4 ) + 31 + 20 * + 65 THEN 48 + + - 36 * + - 31 * + - 79 ELSE - ( + 38 ) END ) col1
----
38

skipif mysql # not compatible
query I rowsort label-5485
SELECT + - ( + CASE - - COUNT ( * ) WHEN + + 33 + + 87 - 90 THEN NULL WHEN - - 61 - - SUM ( DISTINCT - - 4 ) + 31 + 20 * + 65 THEN 48 + + - 36 * + - 31 * + - 79 ELSE - ( + 38 ) END ) col1
----
38

query I rowsort
SELECT + 44 * + 58 + + + 78 AS col2
----
2630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5487
SELECT ALL - + CASE - 84 WHEN + + MAX( ALL - - CAST( NULL AS SIGNED ) ) / - COUNT( * ) - + 50 THEN + 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL - + CASE - 84 WHEN + + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) - + 50 THEN + 14 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT DISTINCT MAX( 35 ) * - 60 + - 45 * - - 84 AS col1
----
-5880

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT MAX ( 35 ) * - 60 + - 45 * - - 84 AS col1
----
-5880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5489
SELECT - 74 * - CAST( NULL AS SIGNED ) - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT - 74 * - CAST ( NULL AS INTEGER ) - 56 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5490
SELECT ( CAST( NULL AS SIGNED ) ) * + - 54 + 41 * 32 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT ( CAST ( NULL AS INTEGER ) ) * + - 54 + 41 * 32 * - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5491
SELECT - NULLIF ( - 98, + 83 - + - 8 / + 27 ) * 44 * - CASE - - 5 WHEN - + CAST( 61 AS DECIMAL ) THEN - COUNT( * ) ELSE NULL END * 47 + + SUM( DISTINCT + 75 ) - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT - NULLIF ( - 98, + 83 - + - 8 / + 27 ) * 44 * - CASE - - 5 WHEN - + CAST ( 61 AS REAL ) THEN - COUNT ( * ) ELSE NULL END * 47 + + SUM ( DISTINCT + 75 ) - 85 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 84 col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5493
SELECT - COALESCE ( 42, + CAST( NULL AS SIGNED ) ) * + 59 + - 31 + COUNT( * ) DIV - 58
----
-2509

skipif mysql # not compatible
query I rowsort label-5493
SELECT - COALESCE ( 42, + CAST ( NULL AS INTEGER ) ) * + 59 + - 31 + COUNT ( * ) / - 58
----
-2509

query I rowsort
SELECT ( - 82 ) * + ( - 90 ) AS col2
----
7380

query I rowsort
SELECT DISTINCT + 60 * + 56
----
3360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5496
SELECT CAST( NULL AS SIGNED ) / - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT CAST ( NULL AS INTEGER ) / - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT COUNT( * ) + + 27 * + ( - + 88 )
----
-2375

skipif mysql # not compatible
query I rowsort label-5497
SELECT COUNT ( * ) + + 27 * + ( - + 88 )
----
-2375

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL - + 13 + + 69 + + SUM( + - 71 ) + + + ( - 29 ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - + 13 + + 69 + + SUM ( + - 71 ) + + + ( - 29 ) col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5499
SELECT 23 + + 86 AS col0, + 83 + - ( - 71 ) - + 68 DIV - COUNT( * ) + + ( - + 48 ) AS col0
----
109
174

skipif mysql # not compatible
query II rowsort label-5499
SELECT 23 + + 86 AS col0, + 83 + - ( - 71 ) - + 68 / - COUNT ( * ) + + ( - + 48 ) AS col0
----
109
174

onlyif mysql # aggregate syntax: 
query II rowsort label-5500
SELECT 82 * 62 * 46 AS col1, 76 * - 79 + - COUNT( * ) AS col1
----
233864
-6005

skipif mysql # not compatible
query II rowsort label-5500
SELECT 82 * 62 * 46 AS col1, 76 * - 79 + - COUNT ( * ) AS col1
----
233864
-6005

query II rowsort
SELECT 69 + 99 AS col2, - 28 * - + 34
----
168
952

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT DISTINCT + 23 + + + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT + 23 + + + COUNT ( * ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL + 65 + - ( - 86 ) + 27 + + + COALESCE ( 37, - - 20 ) + 77 * NULLIF ( - - COUNT( * ), + 45 ) AS col1
----
292

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + 65 + - ( - 86 ) + 27 + + + COALESCE ( 37, - - 20 ) + 77 * NULLIF ( - - COUNT ( * ), + 45 ) AS col1
----
292

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT 61 + 0 DIV 75 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5504
SELECT 61 + 0 / 75 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT 48 + + - 97 + + COUNT( 49 )
----
-48

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT 48 + + - 97 + + COUNT ( 49 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT + ( MIN( ALL - 63 ) ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-5506
SELECT + ( MIN ( ALL - 63 ) ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT DISTINCT + + 9 * + COUNT( DISTINCT + 21 ) + 10 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT + + 9 * + COUNT ( DISTINCT + 21 ) + 10 AS col0
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5508
SELECT ALL + 92 * + + CAST( NULL AS DECIMAL ) - - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL + 92 * + + CAST ( NULL AS REAL ) - - 83 AS col0
----
NULL

query I rowsort
SELECT ALL + + 33 * 65 + - 86
----
2059

query I rowsort
SELECT - COALESCE ( - - 7, + 63 + CASE + 45 WHEN - + 28 THEN 27 * - ( + - 14 ) + 54 + + 23 + 0 ELSE NULL END ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5511
SELECT DISTINCT + 47 * + 79 + - + CAST( NULL AS SIGNED ) + + + 50 + + 24 * 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT + 47 * + 79 + - + CAST ( NULL AS INTEGER ) + + + 50 + + 24 * 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL + CASE 22 WHEN + 54 THEN + 94 * + - 88 * - CASE - COALESCE ( 68, ( 66 ) + 9, - 19 + + ( + ( - ( - 69 ) ) ) - 78 ) WHEN 96 * - 76 * - AVG ( ALL 50 ) - - 67 + - + 53 + + 11 * + 52 * 97 + - 98 + 65 * - 55 * 62 THEN NULL WHEN 6 THEN 79 END * 96 ELSE + 24 END * + COUNT( 5 ) - 10
----
14

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL + CASE 22 WHEN + 54 THEN + 94 * + - 88 * - CASE - COALESCE ( 68, ( 66 ) + 9, - 19 + + ( + ( - ( - 69 ) ) ) - 78 ) WHEN 96 * - 76 * - AVG ( ALL 50 ) - - 67 + - + 53 + + 11 * + 52 * 97 + - 98 + 65 * - 55 * 62 THEN NULL WHEN 6 THEN 79 END * 96 ELSE + 24 END * + COUNT ( 5 ) - 10
----
14

query I rowsort
SELECT ALL + - 66 * + ( - - 26 )
----
-1716

query II rowsort
SELECT DISTINCT - 56 * - 78, 10 AS col0
----
4368
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5515
SELECT COUNT( * ) AS col0, + 94 * + + 81
----
1
7614

skipif mysql # not compatible
query II rowsort label-5515
SELECT COUNT ( * ) AS col0, + 94 * + + 81
----
1
7614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT 20 + + CAST( NULL AS SIGNED ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT 20 + + CAST ( NULL AS INTEGER ) * 28
----
NULL

query II rowsort
SELECT DISTINCT - 59, 58 * + 66 AS col2
----
-59
3828

onlyif mysql # aggregate syntax: 
query II rowsort label-5518
SELECT 30 + - MAX( ALL - 3 ), - 92 AS col0
----
33
-92

skipif mysql # not compatible
query II rowsort label-5518
SELECT 30 + - MAX ( ALL - 3 ), - 92 AS col0
----
33
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT 1 DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-5519
SELECT 1 / - 34
----
0

query I rowsort
SELECT NULLIF ( + - 71, ( + 24 ) ) * COALESCE ( + 30, + 25 ) * - 89 * + + 38
----
7203660

query I rowsort
SELECT - 16 + + 46
----
30

query I rowsort
SELECT + 92 * 4
----
368

onlyif mysql # aggregate syntax: 
query II rowsort label-5523
SELECT ALL 4 + NULLIF ( - COUNT( ALL - 38 ), - - ( + 65 ) * 89 * 17 + + - 90 ) AS col0, + SUM( - 13 ) * + 69 AS col0
----
3
-897

skipif mysql # not compatible
query II rowsort label-5523
SELECT ALL 4 + NULLIF ( - COUNT ( ALL - 38 ), - - ( + 65 ) * 89 * 17 + + - 90 ) AS col0, + SUM ( - 13 ) * + 69 AS col0
----
3
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT + COUNT( * ) + + - 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5524
SELECT + COUNT ( * ) + + - 3 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5525
SELECT DISTINCT + 1 * CASE - COUNT( * ) WHEN + 95 + 7 + + 0 + + 49 THEN NULL WHEN 34 * + 90 THEN + 81 DIV ( - 98 ) * 90 + - + 2 * + - COUNT( * ) * + 13 DIV + COUNT( * ) ELSE - 63 * + 88 END
----
-5544

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT + 1 * CASE - COUNT ( * ) WHEN + 95 + 7 + + 0 + + 49 THEN NULL WHEN 34 * + 90 THEN + 81 / ( - 98 ) * 90 + - + 2 * + - COUNT ( * ) * + 13 / + COUNT ( * ) ELSE - 63 * + 88 END
----
-5544

query I rowsort
SELECT + 86 + 57 AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT - 56 * ( - CASE ( + COUNT( * ) ) WHEN - + 66 / - + 76 THEN NULL WHEN 44 * - - 51 * - 18 + - 71 / 42 / + + 49 THEN - 21 * 86 + - 30 * 71 ELSE + NULLIF ( 52, - - 93 ) END )
----
2912

skipif mysql # not compatible
query I rowsort label-5527
SELECT - 56 * ( - CASE ( + COUNT ( * ) ) WHEN - + 66 / - + 76 THEN NULL WHEN 44 * - - 51 * - 18 + - 71 / 42 / + + 49 THEN - 21 * 86 + - 30 * 71 ELSE + NULLIF ( 52, - - 93 ) END )
----
2912

onlyif mysql # aggregate syntax: 
query II rowsort label-5528
SELECT + 31 * + - 52 + - COALESCE ( + COUNT( * ), - COUNT( * ), + COUNT( * ) ) AS col2, 13 + - 0 + - 45 AS col1
----
-1613
-32

skipif mysql # not compatible
query II rowsort label-5528
SELECT + 31 * + - 52 + - COALESCE ( + COUNT ( * ), - COUNT ( * ), + COUNT ( * ) ) AS col2, 13 + - 0 + - 45 AS col1
----
-1613
-32

query II rowsort
SELECT 46 AS col1, - 51 AS col1
----
46
-51

query I rowsort
SELECT ALL 44 + + 59 AS col1
----
103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5531
SELECT DISTINCT 3 + 79 + + CAST( NULL AS DECIMAL ) + - 22 * - + ( - 65 ) * - 66 * + + AVG ( - + 32 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT 3 + 79 + + CAST ( NULL AS REAL ) + - 22 * - + ( - 65 ) * - 66 * + + AVG ( - + 32 ) AS col0
----
NULL

query I rowsort
SELECT - CASE + 93 WHEN - - 91 + - 78 THEN NULL WHEN - 49 THEN - + 5 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5533
SELECT DISTINCT - ( ( MIN( + ( + - CAST( NULL AS DECIMAL ) ) ) ) ) + + 42 + + - 9 * ( 9 ) - 93 * + - 15, MAX( DISTINCT + - 2 ) AS col0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-5533
SELECT DISTINCT - ( ( MIN ( + ( + - CAST ( NULL AS REAL ) ) ) ) ) + + 42 + + - 9 * ( 9 ) - 93 * + - 15, MAX ( DISTINCT + - 2 ) AS col0
----
NULL
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL MAX( DISTINCT 10 )
----
10

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL MAX ( DISTINCT 10 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5535
SELECT - COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) + + 31 * + - 95 * + - 75
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5535
SELECT - COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) + + 31 * + - 95 * + - 75
----
-1
NULL

query II rowsort
SELECT ALL - 94 + - 82 + + 42 AS col0, - 1 + 78 * - + 45
----
-134
-3511

query I rowsort
SELECT + ( + + 75 ) AS col0
----
75

query I rowsort
SELECT ALL 97 + - 5 AS col1
----
92

query I rowsort
SELECT + 67 * 64 AS col1
----
4288

query I rowsort
SELECT + 80 * 24
----
1920

query II rowsort
SELECT DISTINCT + 81 AS col2, 61 col2
----
81
61

query I rowsort
SELECT + - 48 * + 25
----
-1200

query I rowsort
SELECT - - 42 * - 32 * 58 * - 71 - - 56 * 0 - + 33
----
5534559

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT ALL SUM( 56 ) * - 8 * - 50 AS col1
----
22400

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL SUM ( 56 ) * - 8 * - 50 AS col1
----
22400

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT - + 68 * - - COUNT( ALL + 13 ) - + NULLIF ( + SUM( - + 51 ), - + 75 )
----
-17

skipif mysql # not compatible
query I rowsort label-5545
SELECT - + 68 * - - COUNT ( ALL + 13 ) - + NULLIF ( + SUM ( - + 51 ), - + 75 )
----
-17

query I rowsort
SELECT DISTINCT 25 * + - 21
----
-525

query I rowsort
SELECT ALL ( + 61 ) AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5548
SELECT ALL - NULLIF ( + - 69, + - ( + - CAST( MIN( + 18 ) AS SIGNED ) ) / + 70 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL - NULLIF ( + - 69, + - ( + - CAST ( MIN ( + 18 ) AS INTEGER ) ) / + 70 ) AS col1
----
69

query I rowsort
SELECT ALL + 18 * - 95 AS col0
----
-1710

onlyif mysql # aggregate syntax: 
query II rowsort label-5550
SELECT DISTINCT 37 AS col2, + COUNT( * ) + - - 49
----
37
50

skipif mysql # not compatible
query II rowsort label-5550
SELECT DISTINCT 37 AS col2, + COUNT ( * ) + - - 49
----
37
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT ALL + - CAST( + 63 AS SIGNED ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL + - CAST ( + 63 AS INTEGER ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5552
SELECT + - 37 / + 42 + - CAST( NULL AS DECIMAL ) + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5552
SELECT + - 37 / + 42 + - CAST ( NULL AS REAL ) + + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5553
SELECT 41 * - + ( - 92 ) * - + 66 + 60 DIV + - 14 + + ( + 44 ) * - 89 AS col2
----
-252872

skipif mysql # not compatible
query I rowsort label-5553
SELECT 41 * - + ( - 92 ) * - + 66 + 60 / + - 14 + + ( + 44 ) * - 89 AS col2
----
-252872

query II rowsort
SELECT ( + + 43 ) AS col1, 63 * 22
----
43
1386

query I rowsort
SELECT ALL - 87 * 23 col1
----
-2001

onlyif mysql # aggregate syntax: 
query II rowsort label-5556
SELECT 50 * - + 95 + 67 * + COUNT( * ) col0, + 28 AS col0
----
-4683
28

skipif mysql # not compatible
query II rowsort label-5556
SELECT 50 * - + 95 + 67 * + COUNT ( * ) col0, + 28 AS col0
----
-4683
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL + CASE COUNT( * ) WHEN COUNT( * ) * + 35 + NULLIF ( - 2, COUNT( * ) * - + 94 * 97 + CASE 63 WHEN + - 8 + - 73 * - 4 THEN 7 * - 26 + 11 ELSE NULL END ) THEN - 10 WHEN 19 THEN - 13 + - - 17 ELSE + 83 + - - 79 END
----
162

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL + CASE COUNT ( * ) WHEN COUNT ( * ) * + 35 + NULLIF ( - 2, COUNT ( * ) * - + 94 * 97 + CASE 63 WHEN + - 8 + - 73 * - 4 THEN 7 * - 26 + 11 ELSE NULL END ) THEN - 10 WHEN 19 THEN - 13 + - - 17 ELSE + 83 + - - 79 END
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5558
SELECT DISTINCT + MIN( - - 7 ), 87 + - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
7
86

skipif mysql # not compatible
query II rowsort label-5558
SELECT DISTINCT + MIN ( - - 7 ), 87 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
7
86

query I rowsort
SELECT DISTINCT - 69 * - ( + - 14 ) AS col2
----
-966

query I rowsort
SELECT ALL + ( - - 91 ) * + 69
----
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT 88 * + 42 + - - SUM( + 28 )
----
3724

skipif mysql # not compatible
query I rowsort label-5561
SELECT 88 * + 42 + - - SUM ( + 28 )
----
3724

onlyif mysql # aggregate syntax: 
query II rowsort label-5562
SELECT DISTINCT - 1 * - + CASE - - 73 WHEN - + COUNT( * ) * COALESCE ( + 28, - ( + NULLIF ( + 93, + - 4 * + MAX( DISTINCT + 98 ) ) ) ) THEN NULL WHEN - AVG ( - 3 ) THEN + 62 * + 89 END + + 90 AS col2, COUNT( * ) - 76 col1
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-5562
SELECT DISTINCT - 1 * - + CASE - - 73 WHEN - + COUNT ( * ) * COALESCE ( + 28, - ( + NULLIF ( + 93, + - 4 * + MAX ( DISTINCT + 98 ) ) ) ) THEN NULL WHEN - AVG ( - 3 ) THEN + 62 * + 89 END + + 90 AS col2, COUNT ( * ) - 76 col1
----
NULL
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT ALL + COUNT( * ) * - + 84 + ( + 70 ) + + 85 * + 9 AS col2
----
751

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL + COUNT ( * ) * - + 84 + ( + 70 ) + + 85 * + 9 AS col2
----
751

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT COALESCE ( MAX( ALL 83 ), - + 4 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5564
SELECT COALESCE ( MAX ( ALL 83 ), - + 4 ) AS col2
----
83

query II rowsort
SELECT + CASE - + 10 WHEN + 68 THEN + 47 END col1, - ( + + 76 ) * - 2 * + 10 * + 94
----
NULL
142880

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT - MIN( DISTINCT - + 34 ) - 74 * + 87
----
-6404

skipif mysql # not compatible
query I rowsort label-5566
SELECT - MIN ( DISTINCT - + 34 ) - 74 * + 87
----
-6404

query I rowsort
SELECT NULLIF ( - + 55, + - 17 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT + COUNT( * ) * 64 + - - 88 + - 31 * - 53 + - ( 25 )
----
1770

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT + COUNT ( * ) * 64 + - - 88 + - 31 * - 53 + - ( 25 )
----
1770

query I rowsort
SELECT ALL - 40 * + 79 * + 85 + + 47 * + 98 - - 8 * 79 col0
----
-263362

query I rowsort
SELECT ALL - + 67 * + 90 * 60
----
-361800

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT - 95 + + 99 * COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-5571
SELECT - 95 + + 99 * COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT + - CASE + 3 WHEN + 43 THEN - 97 * + 21 WHEN + - 55 + - COUNT( * ) THEN - - 10 END - - + 73 * + 20 + + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT + - CASE + 3 WHEN + 43 THEN - 97 * + 21 WHEN + - 55 + - COUNT ( * ) THEN - - 10 END - - + 73 * + 20 + + - 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5573
SELECT - COUNT( * ) + 36 DIV - - COUNT( * ) col0
----
35

skipif mysql # not compatible
query I rowsort label-5573
SELECT - COUNT ( * ) + 36 / - - COUNT ( * ) col0
----
35

query I rowsort
SELECT - - 19 * + 42 * + - 63
----
-50274

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT - - 2 + + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5575
SELECT - - 2 + + COUNT ( * ) AS col1
----
3

query I rowsort
SELECT + COALESCE ( - - 31, - + 32 ) * - ( 7 ) * - + 81 AS col0
----
17577

query I rowsort
SELECT + 58 + 26 * + 79 - + 29
----
2083

query I rowsort
SELECT DISTINCT + NULLIF ( - 47, 36 )
----
-47

query I rowsort
SELECT + 81 + 7 + + 47 * - 47 col0
----
-2121

query I rowsort
SELECT + 25 * + + 77
----
1925

query I rowsort
SELECT + + ( + 70 ) + - - 49 + 69 - + 37
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT + + 75 DIV - + 86 + + + 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5582
SELECT + + 75 / - + 86 + + + 18 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5583
SELECT + - 70 * + CAST( - MIN( ALL - + CAST( NULL AS SIGNED ) ) AS DECIMAL ) * - AVG ( DISTINCT + NULLIF ( - 52, 94 * - + 20 ) ) / + 17 - + 17 + COUNT( DISTINCT - 77 ) * - ( + 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT + - 70 * + CAST ( - MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS REAL ) * - AVG ( DISTINCT + NULLIF ( - 52, 94 * - + 20 ) ) / + 17 - + 17 + COUNT ( DISTINCT - 77 ) * - ( + 38 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT - 11 + COUNT( 59 ) * + 55 * + 23 col2
----
1254

skipif mysql # not compatible
query I rowsort label-5584
SELECT - 11 + COUNT ( 59 ) * + 55 * + 23 col2
----
1254

query I rowsort
SELECT DISTINCT 76 * - 3 AS col2
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT COUNT( * ) + - 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT COUNT ( * ) + - 0 AS col1
----
1

query I rowsort
SELECT 26 * - 49 AS col2
----
-1274

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5588
SELECT + 61, COUNT( * ) DIV - + 57 + 54 * COUNT( ALL - 94 ) * + - 89 AS col1
----
61
-4806

skipif mysql # not compatible
query II rowsort label-5588
SELECT + 61, COUNT ( * ) / - + 57 + 54 * COUNT ( ALL - 94 ) * + - 89 AS col1
----
61
-4806

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT DISTINCT 40 * COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT 40 * COUNT ( * )
----
40

query I rowsort
SELECT ALL - 56 + - 61 AS col2
----
-117

query I rowsort
SELECT 16 * - + 18
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT COALESCE ( 40, 48, + COUNT( * ) / + - 18 ) * + COUNT( * ) * + 36 * 68 / - NULLIF ( CASE - 31 WHEN + 24 - + 82 - - 21 + + - COUNT( * ) THEN NULL WHEN COALESCE ( + ( - 79 ), CAST( NULL AS SIGNED ) ) THEN - CAST( NULL AS SIGNED ) + - - ( 43 ) WHEN + 48 + + 83 * - + 67 THEN NULL END, + - 41 ) + + 28 * 63 * + + 77 + NULLIF ( - COUNT( * ), - 64 + + AVG ( + 56 ) ) + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT COALESCE ( 40, 48, + COUNT ( * ) / + - 18 ) * + COUNT ( * ) * + 36 * 68 / - NULLIF ( CASE - 31 WHEN + 24 - + 82 - - 21 + + - COUNT ( * ) THEN NULL WHEN COALESCE ( + ( - 79 ), CAST ( NULL AS INTEGER ) ) THEN - CAST ( NULL AS INTEGER ) + - - ( 43 ) WHEN + 48 + + 83 * - + 67 THEN NULL END, + - 41 ) + + 28 * 63 * + + 77 + NULLIF ( - COUNT ( * ), - 64 + + AVG ( + 56 ) ) + 84 AS col1
----
NULL

query II rowsort
SELECT + 76 AS col2, 18 AS col0
----
76
18

query I rowsort
SELECT ALL - 56 + 29 * + 8 col2
----
176

query I rowsort
SELECT 11 * - 68 + + + 79 * + - 83 - - + 36 * - 28 * + CASE - 78 WHEN - 20 THEN - 69 + - 74 END + + - 90 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 38 * + COALESCE ( 86, + + 71 + 89 ) AS col2
----
-3268

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5597
SELECT ALL - NULLIF ( 62, 62 ) AS col2, + 83 + + 1 - + CAST( NULL AS SIGNED ) + + 36 * - + 6
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5597
SELECT ALL - NULLIF ( 62, 62 ) AS col2, + 83 + + 1 - + CAST ( NULL AS INTEGER ) + + 36 * - + 6
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5598
SELECT ALL CAST( NULL AS SIGNED ) + - 69 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL CAST ( NULL AS INTEGER ) + - 69 + + COUNT ( * )
----
NULL

query I rowsort
SELECT 60 + 35
----
95

query I rowsort
SELECT ALL - 11 - + ( + 70 )
----
-81

query I rowsort
SELECT DISTINCT - 39 * + + 72 AS col1
----
-2808

onlyif mysql # DIV for integer division: 
query I rowsort label-5602
SELECT ALL - COALESCE ( - 75, - + 75, - - 11 DIV 98 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL - COALESCE ( - 75, - + 75, - - 11 / 98 ) AS col0
----
75

query I rowsort
SELECT 98 + - + 61
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT - 40 * CASE + + 6 WHEN + 17 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT - 40 * CASE + + 6 WHEN + 17 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + + 2 - 78
----
-76

query II rowsort
SELECT 77 * 13 * + 95, - 53 AS col2
----
95095
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5607
SELECT 67 DIV - + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-5607
SELECT 67 / - + COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-5608
SELECT - 56 * + 27 * + 22 AS col1, COUNT( * )
----
-33264
1

skipif mysql # not compatible
query II rowsort label-5608
SELECT - 56 * + 27 * + 22 AS col1, COUNT ( * )
----
-33264
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT SUM( DISTINCT - - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-5609
SELECT SUM ( DISTINCT - - 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL + MIN( + 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL + MIN ( + 16 ) AS col1
----
16

query I rowsort
SELECT + 22 * 56
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ( + COUNT( DISTINCT - ( + 15 ) ) ) * - COUNT( * ) / - + COUNT( - - 49 ) * 2 / - CASE COUNT( * ) WHEN + + ( SUM( - 89 ) ) + + 59 / + 16 THEN + 27 WHEN + - 32 THEN - 25 END + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT ( + COUNT ( DISTINCT - ( + 15 ) ) ) * - COUNT ( * ) / - + COUNT ( - - 49 ) * 2 / - CASE COUNT ( * ) WHEN + + ( SUM ( - 89 ) ) + + 59 / + 16 THEN + 27 WHEN + - 32 THEN - 25 END + - 98 AS col1
----
NULL

query I rowsort
SELECT ALL - - 47 * - 91 * + 25 AS col0
----
-106925

query II rowsort
SELECT DISTINCT 5, 43 + + + NULLIF ( - 50, - 90 * - 28 * AVG ( DISTINCT + 52 ) ) AS col1
----
5
-7

query I rowsort
SELECT - 45 - + 0 AS col1
----
-45

query I rowsort
SELECT ALL + 87 + - 15 AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-5617
SELECT DISTINCT NULLIF ( + COUNT( * ), + 42 ) + - 54 AS col1, COUNT( * )
----
-53
1

skipif mysql # not compatible
query II rowsort label-5617
SELECT DISTINCT NULLIF ( + COUNT ( * ), + 42 ) + - 54 AS col1, COUNT ( * )
----
-53
1

query II rowsort
SELECT 62, + 11 + - 99 + + + 48 AS col2
----
62
-40

query II rowsort
SELECT ALL 8 AS col2, - 5 + 46 AS col2
----
8
41

onlyif mysql # DIV for integer division: 
query II rowsort label-5620
SELECT COALESCE ( COALESCE ( + 58, + + 62 + + 81 - 89 - + 36 * - 41 DIV - - 19 + + 42, - 50 ), - 92 ) * - + 54 + + + 70 * 33 * - - 37, 8 col2
----
82338
8

skipif mysql # not compatible
query II rowsort label-5620
SELECT COALESCE ( COALESCE ( + 58, + + 62 + + 81 - 89 - + 36 * - 41 / - - 19 + + 42, - 50 ), - 92 ) * - + 54 + + + 70 * 33 * - - 37, 8 col2
----
82338
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5621
SELECT DISTINCT 34 + + 67 + - 15 + - 6 + 39 + - - ( 55 ) * + COALESCE ( - 91, + MIN( ALL - 73 ), 81 * - - COUNT( * ) ) - - - 23 DIV COUNT( * ) * - 67
----
-3345

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT 34 + + 67 + - 15 + - 6 + 39 + - - ( 55 ) * + COALESCE ( - 91, + MIN ( ALL - 73 ), 81 * - - COUNT ( * ) ) - - - 23 / COUNT ( * ) * - 67
----
-3345

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT 24 * + NULLIF ( + 70, + 98 ) - - + SUM( ALL - 7 )
----
1673

skipif mysql # not compatible
query I rowsort label-5622
SELECT 24 * + NULLIF ( + 70, + 98 ) - - + SUM ( ALL - 7 )
----
1673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5623
SELECT ( - - 62 ) DIV MAX( DISTINCT + COALESCE ( - + 64, - + 49 ) ) * COUNT( * ) * + ( - + 80 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5623
SELECT ( - - 62 ) / MAX ( DISTINCT + COALESCE ( - + 64, - + 49 ) ) * COUNT ( * ) * + ( - + 80 ) AS col1
----
0

query I rowsort
SELECT ALL 28 + + 66 col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5625
SELECT COUNT( * ) * - 68 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT COUNT ( * ) * - 68 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5626
SELECT + SUM( + 3 ) AS col2, SUM( 10 ) AS col1
----
3
10

skipif mysql # not compatible
query II rowsort label-5626
SELECT + SUM ( + 3 ) AS col2, SUM ( 10 ) AS col1
----
3
10

query II rowsort
SELECT 25 * - 31 * + - 0 * + + ( - - 15 ) + + 14, - 26 + + 49 AS col0
----
14
23

query I rowsort
SELECT ALL 21 * - + 14
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT MAX( ALL + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-5629
SELECT MAX ( ALL + 22 )
----
22

query I rowsort
SELECT ALL 33 - + + 61 + 93 * + 31
----
2855

query I rowsort
SELECT ALL 85 * + + 44
----
3740

query II rowsort
SELECT 95 AS col0, - 73 + 90
----
95
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5633
SELECT + 76 AS col2, COUNT( * ) AS col0
----
76
1

skipif mysql # not compatible
query II rowsort label-5633
SELECT + 76 AS col2, COUNT ( * ) AS col0
----
76
1

query I rowsort
SELECT 92 - - 82 + + 88 AS col2
----
262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5635
SELECT + CASE + - 38 WHEN + 64 * + CAST( - 55 AS SIGNED ) + + CAST( NULL AS SIGNED ) THEN NULL WHEN - 82 THEN NULL ELSE + 61 + SUM( ALL - - 87 ) END AS col0
----
148

skipif mysql # not compatible
query I rowsort label-5635
SELECT + CASE + - 38 WHEN + 64 * + CAST ( - 55 AS INTEGER ) + + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 82 THEN NULL ELSE + 61 + SUM ( ALL - - 87 ) END AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL + + COUNT( * ) * + 11
----
11

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL + + COUNT ( * ) * + 11
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5637
SELECT - COUNT( * ) + - + COUNT( - 19 ) DIV - - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5637
SELECT - COUNT ( * ) + - + COUNT ( - 19 ) / - - COUNT ( * ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5638
SELECT DISTINCT - 64 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT - 64 / + 76
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5639
SELECT ALL 71 AS col2, COUNT( * ) * 39 + 97 AS col0
----
71
136

skipif mysql # not compatible
query II rowsort label-5639
SELECT ALL 71 AS col2, COUNT ( * ) * 39 + 97 AS col0
----
71
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5640
SELECT - CAST( - 66 AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5640
SELECT - CAST ( - 66 AS INTEGER ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL - 31 * CASE + COUNT( * ) WHEN - + 21 + + 29 - + + 97 * 2 * - 10 THEN MAX( ALL - - 79 ) WHEN + 52 + + + 22 + + 44 THEN NULL ELSE - ( - 17 ) * 14 * - 56 END col0
----
413168

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL - 31 * CASE + COUNT ( * ) WHEN - + 21 + + 29 - + + 97 * 2 * - 10 THEN MAX ( ALL - - 79 ) WHEN + 52 + + + 22 + + 44 THEN NULL ELSE - ( - 17 ) * 14 * - 56 END col0
----
413168

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT + SUM( - + 96 ) * - 79 col2
----
7584

skipif mysql # not compatible
query I rowsort label-5642
SELECT + SUM ( - + 96 ) * - 79 col2
----
7584

onlyif mysql # aggregate syntax: 
query II rowsort label-5643
SELECT ALL - 51, COUNT( * ) + - + COUNT( + 1 ) AS col2
----
-51
0

skipif mysql # not compatible
query II rowsort label-5643
SELECT ALL - 51, COUNT ( * ) + - + COUNT ( + 1 ) AS col2
----
-51
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT 10 DIV 75 * ( - 24 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5644
SELECT 10 / 75 * ( - 24 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT - 76 * - - COUNT( ALL + 1 )
----
-76

skipif mysql # not compatible
query I rowsort label-5645
SELECT - 76 * - - COUNT ( ALL + 1 )
----
-76

query I rowsort
SELECT 41 + + + 52 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5647
SELECT DISTINCT + - 82 + + COUNT( - 11 ) + COALESCE ( - 28, 14 * - + ( 42 ) - + + 83 * - 59 * + 35 ), - CAST( NULL AS DECIMAL ) AS col2
----
-109
NULL

skipif mysql # not compatible
query II rowsort label-5647
SELECT DISTINCT + - 82 + + COUNT ( - 11 ) + COALESCE ( - 28, 14 * - + ( 42 ) - + + 83 * - 59 * + 35 ), - CAST ( NULL AS REAL ) AS col2
----
-109
NULL

query I rowsort
SELECT - 29 + - 35
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5649
SELECT ALL + ( - COALESCE ( ( + 40 ), + COUNT( * ) ) ) + + - CAST( - 43 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL + ( - COALESCE ( ( + 40 ), + COUNT ( * ) ) ) + + - CAST ( - 43 AS INTEGER )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5650
SELECT - 43 + - CAST( NULL AS SIGNED ), 16 * + 79 AS col2
----
NULL
1264

skipif mysql # not compatible
query II rowsort label-5650
SELECT - 43 + - CAST ( NULL AS INTEGER ), 16 * + 79 AS col2
----
NULL
1264

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT ALL + + 15 + + - 61 + COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL + + 15 + + - 61 + COUNT ( * ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT DISTINCT + 46 + - CASE 5 WHEN - 92 THEN - MIN( - 66 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT + 46 + - CASE 5 WHEN - 92 THEN - MIN ( - 66 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 55 + + - 16
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5654
SELECT DISTINCT NULLIF ( - 2, + MIN( - 29 ) * - - 32 ) AS col1, 42 * + 62
----
-2
2604

skipif mysql # not compatible
query II rowsort label-5654
SELECT DISTINCT NULLIF ( - 2, + MIN ( - 29 ) * - - 32 ) AS col1, 42 * + 62
----
-2
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT - 52 + + COUNT( * ) * - - COUNT( * ) * + + 91
----
39

skipif mysql # not compatible
query I rowsort label-5655
SELECT - 52 + + COUNT ( * ) * - - COUNT ( * ) * + + 91
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5656
SELECT ALL - COALESCE ( SUM( DISTINCT + CASE + 37 WHEN - + 98 DIV 87 THEN NULL WHEN + + 27 THEN + - 99 * 30 * + 46 ELSE NULL END ), + 7 + + MAX( 41 ) + - 87 - - 61 * + + COUNT( * ) DIV 90 ) + - - ( - + 37 ) * 84 AS col2
----
-3069

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - COALESCE ( SUM ( DISTINCT + CASE + 37 WHEN - + 98 / 87 THEN NULL WHEN + + 27 THEN + - 99 * 30 * + 46 ELSE NULL END ), + 7 + + MAX ( 41 ) + - 87 - - 61 * + + COUNT ( * ) / 90 ) + - - ( - + 37 ) * 84 AS col2
----
-3069

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5657
SELECT - 40 * - 76 AS col1, 56 - - 62 + - CAST( NULL AS SIGNED ) AS col1
----
3040
NULL

skipif mysql # not compatible
query II rowsort label-5657
SELECT - 40 * - 76 AS col1, 56 - - 62 + - CAST ( NULL AS INTEGER ) AS col1
----
3040
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5658
SELECT - COUNT( * ) + + 15, 58 DIV + 53 AS col2
----
14
1

skipif mysql # not compatible
query II rowsort label-5658
SELECT - COUNT ( * ) + + 15, 58 / + 53 AS col2
----
14
1

query I rowsort
SELECT ALL + CASE - 59 WHEN + 28 THEN 61 - - + 23 * + 81 * 91 END * + - 35 AS col2
----
NULL

query I rowsort
SELECT + 22 + - - ( 95 )
----
117

query I rowsort
SELECT DISTINCT + 38 * - - 19 AS col0
----
722

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL NULLIF ( + COUNT( * ), - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL NULLIF ( + COUNT ( * ), - 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL + 56 * + MAX( DISTINCT - + 72 ) AS col1
----
-4032

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL + 56 * + MAX ( DISTINCT - + 72 ) AS col1
----
-4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5664
SELECT + 78 DIV - COUNT( * ) + - - ( + 45 )
----
-33

skipif mysql # not compatible
query I rowsort label-5664
SELECT + 78 / - COUNT ( * ) + - - ( + 45 )
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5665
SELECT ( + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT ( + CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + 71, + + 6 ) * 61 * + + 5 - + 97 AS col1
----
21558

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5667
SELECT DISTINCT + NULLIF ( - - 27, + + ( + - 50 ) * + - 60 ) * - 10 + - COUNT( * ) DIV - COUNT( * ), 60 AS col1
----
-269
60

skipif mysql # not compatible
query II rowsort label-5667
SELECT DISTINCT + NULLIF ( - - 27, + + ( + - 50 ) * + - 60 ) * - 10 + - COUNT ( * ) / - COUNT ( * ), 60 AS col1
----
-269
60

query I rowsort
SELECT DISTINCT 40 * 25 - 10
----
990

query I rowsort
SELECT NULLIF ( 82, - ( 30 ) )
----
82

query I rowsort
SELECT ALL + 95 * - 59 * + 9
----
-50445

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT + + COUNT( - 15 ) * 36 + 94 + + + 89 col2
----
219

skipif mysql # not compatible
query I rowsort label-5671
SELECT + + COUNT ( - 15 ) * 36 + 94 + + + 89 col2
----
219

query I rowsort
SELECT ALL - 26 * + 93 AS col0
----
-2418

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5673
SELECT DISTINCT + - CAST( + CASE ( + SUM( + 91 ) ) WHEN + + 52 THEN NULL WHEN 99 + + 65 + COALESCE ( - MIN( - + 94 ), - - 37 + - 35 ) + - 77 * 64 * - + 43 + + 93 THEN - ( - 90 ) ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT + - CAST ( + CASE ( + SUM ( + 91 ) ) WHEN + + 52 THEN NULL WHEN 99 + + 65 + COALESCE ( - MIN ( - + 94 ), - - 37 + - 35 ) + - 77 * 64 * - + 43 + + 93 THEN - ( - 90 ) ELSE NULL END AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5674
SELECT ALL - CAST( NULL AS DECIMAL ) * - + COUNT( * ) * - 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL - CAST ( NULL AS REAL ) * - + COUNT ( * ) * - 58 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT DISTINCT + 49 * 10 + COUNT( * ) AS col0
----
491

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT + 49 * 10 + COUNT ( * ) AS col0
----
491

query II rowsort
SELECT + 77 * + 23 AS col1, 37 AS col1
----
1771
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5677
SELECT DISTINCT + 34 * 75 + CAST( - 35 AS SIGNED ) * + ( - + COUNT( * ) )
----
2585

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT + 34 * 75 + CAST ( - 35 AS INTEGER ) * + ( - + COUNT ( * ) )
----
2585

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT DISTINCT - MAX( ALL + - ( + 86 ) )
----
86

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT - MAX ( ALL + - ( + 86 ) )
----
86

query I rowsort
SELECT + + 13 * - 99 AS col2
----
-1287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5680
SELECT ALL + CAST( NULL AS SIGNED ) + COALESCE ( - CASE 75 WHEN + 24 THEN NULL WHEN SUM( DISTINCT - - 75 ) THEN + - COUNT( * ) * - + 12 + + 65 ELSE 9 + - + SUM( 6 ) END, - AVG ( DISTINCT + 47 ), - 1 + - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL + CAST ( NULL AS INTEGER ) + COALESCE ( - CASE 75 WHEN + 24 THEN NULL WHEN SUM ( DISTINCT - - 75 ) THEN + - COUNT ( * ) * - + 12 + + 65 ELSE 9 + - + SUM ( 6 ) END, - AVG ( DISTINCT + 47 ), - 1 + - 26 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5681
SELECT DISTINCT - 75 DIV + 38 * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT - 75 / + 38 * - COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5682
SELECT + + 64 DIV - - 35 AS col0, 6 AS col0
----
1
6

skipif mysql # not compatible
query II rowsort label-5682
SELECT + + 64 / - - 35 AS col0, 6 AS col0
----
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL + 58 + - 9 * - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + 58 + - 9 * - COUNT ( * )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5684
SELECT - CAST( NULL AS SIGNED ) * ( + - 66 ), 70 AS col1
----
NULL
70

skipif mysql # not compatible
query II rowsort label-5684
SELECT - CAST ( NULL AS INTEGER ) * ( + - 66 ), 70 AS col1
----
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT DISTINCT ( CASE + + 6 WHEN + - COUNT( * ) * + + 40 + 23 THEN + 90 - + 55 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT ( CASE + + 6 WHEN + - COUNT ( * ) * + + 40 + 23 THEN + 90 - + 55 END )
----
NULL

query I rowsort
SELECT - ( - + NULLIF ( - 24, + - 10 ) )
----
-24

query I rowsort
SELECT ALL - NULLIF ( - 41, - 1 ) + + + 1 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT - 64 + + + CAST( NULL AS SIGNED ) + + AVG ( ALL - 45 ) * - + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT - 64 + + + CAST ( NULL AS INTEGER ) + + AVG ( ALL - 45 ) * - + 86 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5689
SELECT 96 AS col0, - ( - COALESCE ( + + 72, 74 DIV - CAST( + MAX( ALL + 44 ) AS SIGNED ) + - 73 + - 68, - - COUNT( * ) ) ) AS col2
----
96
72

skipif mysql # not compatible
query II rowsort label-5689
SELECT 96 AS col0, - ( - COALESCE ( + + 72, 74 / - CAST ( + MAX ( ALL + 44 ) AS INTEGER ) + - 73 + - 68, - - COUNT ( * ) ) ) AS col2
----
96
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5690
SELECT - 61 AS col2, + 23 * + + ( + COUNT( * ) ) + CAST( + 23 AS SIGNED ) AS col1
----
-61
46

skipif mysql # not compatible
query II rowsort label-5690
SELECT - 61 AS col2, + 23 * + + ( + COUNT ( * ) ) + CAST ( + 23 AS INTEGER ) AS col1
----
-61
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5691
SELECT ALL - 97 DIV - - 24 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL - 97 / - - 24 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5692
SELECT DISTINCT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT ALL ( + - ( - + 41 ) )
----
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5694
SELECT ALL CASE ( - 93 ) WHEN + + 82 + - 43 DIV + CAST( - SUM( ALL 91 ) AS DECIMAL ) * + + 75 + + NULLIF ( 52, + COUNT( * ) ) THEN NULL WHEN - 19 * 20 THEN + 75 DIV + 57 + - + 2 + - - 76 WHEN 75 * + + 14 THEN NULL ELSE + + 64 DIV 25 END
----
2

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL CASE ( - 93 ) WHEN + + 82 + - 43 / + CAST ( - SUM ( ALL 91 ) AS REAL ) * + + 75 + + NULLIF ( 52, + COUNT ( * ) ) THEN NULL WHEN - 19 * 20 THEN + 75 / + 57 + - + 2 + - - 76 WHEN 75 * + + 14 THEN NULL ELSE + + 64 / 25 END
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL COALESCE ( 69, 3 * 65, + COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL COALESCE ( 69, 3 * 65, + COUNT ( * ) )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT 25, + SUM( + + 38 ) + + - 60 col2
----
25
-22

skipif mysql # not compatible
query II rowsort label-5696
SELECT 25, + SUM ( + + 38 ) + + - 60 col2
----
25
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT - COUNT( + + 67 ) * - NULLIF ( COUNT( * ), 48 ) * - + 70 + - - 20 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-5697
SELECT - COUNT ( + + 67 ) * - NULLIF ( COUNT ( * ), 48 ) * - + 70 + - - 20 AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5698
SELECT - CAST( + - 43 AS SIGNED ) + + 92 col0, ( + 93 ) + - 42 AS col0
----
135
51

skipif mysql # not compatible
query II rowsort label-5698
SELECT - CAST ( + - 43 AS INTEGER ) + + 92 col0, ( + 93 ) + - 42 AS col0
----
135
51

query II rowsort
SELECT + 37 AS col1, 48 AS col2
----
37
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5700
SELECT + COALESCE ( + 72, + - COUNT( * ) ) col2, - 76 * SUM( - 46 ) AS col2
----
72
3496

skipif mysql # not compatible
query II rowsort label-5700
SELECT + COALESCE ( + 72, + - COUNT ( * ) ) col2, - 76 * SUM ( - 46 ) AS col2
----
72
3496

onlyif mysql # aggregate syntax: 
query II rowsort label-5701
SELECT ALL + COUNT( * ) AS col2, + 87 * 27
----
1
2349

skipif mysql # not compatible
query II rowsort label-5701
SELECT ALL + COUNT ( * ) AS col2, + 87 * 27
----
1
2349

query I rowsort
SELECT + 26 * 41 AS col2
----
1066

query I rowsort
SELECT DISTINCT + 17 * + 31 AS col0
----
527

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT DISTINCT + 97 * + 52 * - COUNT( * ) - + - 88
----
-4956

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT + 97 * + 52 * - COUNT ( * ) - + - 88
----
-4956

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT DISTINCT + SUM( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT + SUM ( 16 )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5706
SELECT ALL + 38 DIV COUNT( * ) + - 35 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL + 38 / COUNT ( * ) + - 35 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5707
SELECT DISTINCT - 42 / - NULLIF ( - 53, COALESCE ( + + 58, + - 0, + + 78 ) ) + ( - CAST( NULL AS SIGNED ) ) + 82 * 91 AS col1, + 37 + + 83 + + COUNT( * )
----
NULL
121

skipif mysql # not compatible
query II rowsort label-5707
SELECT DISTINCT - 42 / - NULLIF ( - 53, COALESCE ( + + 58, + - 0, + + 78 ) ) + ( - CAST ( NULL AS INTEGER ) ) + 82 * 91 AS col1, + 37 + + 83 + + COUNT ( * )
----
NULL
121

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT ALL + 74 DIV COALESCE ( + 13, + 42, - NULLIF ( - + 36, + 66 * + 84 ) DIV - - 18 ) + + - 12
----
-7

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL + 74 / COALESCE ( + 13, + 42, - NULLIF ( - + 36, + 66 * + 84 ) / - - 18 ) + + - 12
----
-7

query I rowsort
SELECT COALESCE ( 15, + 4 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5710
SELECT - 62 DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5710
SELECT - 62 / 69 AS col2
----
0

query I rowsort
SELECT + + 3 * 73 AS col2
----
219

query I rowsort
SELECT ALL + 23 + - + 71 AS col0
----
-48

query I rowsort
SELECT ALL - 48 + - + 58
----
-106

query I rowsort
SELECT DISTINCT 37 * 11
----
407

query I rowsort
SELECT DISTINCT - + 99 + + 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5716
SELECT DISTINCT + COUNT( * ) * 28 * 71 AS col2, 42
----
1988
42

skipif mysql # not compatible
query II rowsort label-5716
SELECT DISTINCT + COUNT ( * ) * 28 * 71 AS col2, 42
----
1988
42

query I rowsort
SELECT ALL 94 + + + 45 * 15
----
769

query II rowsort
SELECT 15 AS col0, + 68 * - 83
----
15
-5644

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT ALL - 96 * - COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL - 96 * - COUNT ( * ) AS col2
----
96

query II rowsort
SELECT ALL 30 AS col2, 22 AS col0
----
30
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT 19 + - 90 + - - CASE + 70 WHEN + + 79 * - COUNT( * ) THEN - + AVG ( DISTINCT - 51 ) + + 84 * + + 32 WHEN COUNT( DISTINCT 20 ) * + - 79 * 90 THEN + 79 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT 19 + - 90 + - - CASE + 70 WHEN + + 79 * - COUNT ( * ) THEN - + AVG ( DISTINCT - 51 ) + + 84 * + + 32 WHEN COUNT ( DISTINCT 20 ) * + - 79 * 90 THEN + 79 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 29 - 9 col1
----
20

query II rowsort
SELECT 35 + - - 75, - 85 + + 56 AS col1
----
110
-29

query I rowsort
SELECT NULLIF ( + 60, 46 ) + - + 51 + + 16 + - 54 * + 25 + - 3 + - 63 * ( + 15 ) AS col0
----
-2273

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5725
SELECT 54 + - + 99 - + 68 * + + 86, 6 * 42 - CAST( NULL AS SIGNED ) + - 46 * - 56 + 51 - + 15 AS col2
----
-5893
NULL

skipif mysql # not compatible
query II rowsort label-5725
SELECT 54 + - + 99 - + 68 * + + 86, 6 * 42 - CAST ( NULL AS INTEGER ) + - 46 * - 56 + 51 - + 15 AS col2
----
-5893
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT ALL - 93 * ( - CAST( 37 AS SIGNED ) ) * 51
----
175491

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL - 93 * ( - CAST ( 37 AS INTEGER ) ) * 51
----
175491

onlyif mysql # DIV for integer division: 
query II rowsort label-5727
SELECT DISTINCT 10 DIV - 17, - 6 AS col2
----
0
-6

skipif mysql # not compatible
query II rowsort label-5727
SELECT DISTINCT 10 / - 17, - 6 AS col2
----
0
-6

query I rowsort
SELECT DISTINCT 27 * - 19
----
-513

query I rowsort
SELECT 80 + + + 97 - 30
----
147

query I rowsort
SELECT ALL 62 * + + 1 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT 89 + - ( - COALESCE ( + 26, + COUNT( * ) - - + 11 ) ) col0
----
115

skipif mysql # not compatible
query I rowsort label-5731
SELECT 89 + - ( - COALESCE ( + 26, + COUNT ( * ) - - + 11 ) ) col0
----
115

query I rowsort
SELECT 99 + + ( ( - + 28 ) ) AS col1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5733
SELECT DISTINCT - 49 DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT - 49 / - 51 AS col1
----
0

query I rowsort
SELECT ALL - ( - 96 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5735
SELECT 85 + - 77, MAX( + + 58 ) AS col0
----
8
58

skipif mysql # not compatible
query II rowsort label-5735
SELECT 85 + - 77, MAX ( + + 58 ) AS col0
----
8
58

query I rowsort
SELECT DISTINCT 20 + + 48
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT ALL - 4 / + - NULLIF ( - - ( + CAST( NULL AS SIGNED ) ), CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL - 4 / + - NULLIF ( - - ( + CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 46 + - + 57
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5739
SELECT ALL 54 + SUM( + 85 ) + + - 39 + + MAX( DISTINCT ( + 56 ) ) + + 93 + + 85 DIV + 20 - COUNT( * ) DIV - SUM( + - 22 ) * - 35 * - 67 * 82 col1
----
253

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL 54 + SUM ( + 85 ) + + - 39 + + MAX ( DISTINCT ( + 56 ) ) + + 93 + + 85 / + 20 - COUNT ( * ) / - SUM ( + - 22 ) * - 35 * - 67 * 82 col1
----
253

query I rowsort
SELECT 7 * + + 22 + + + 63 + 44
----
261

query I rowsort
SELECT DISTINCT - 1 + 23 + - 90 + ( + 97 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT - MAX( + - 47 ) + + ( + 0 ) * 51 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT - MAX ( + - 47 ) + + ( + 0 ) * 51 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT DISTINCT - COUNT( 19 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT - COUNT ( 19 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5744
SELECT ALL - 52 + 16 + - - 93 DIV 42 * 77 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL - 52 + 16 + - - 93 / 42 * 77 AS col1
----
118

query I rowsort
SELECT 46 + - 2 + - 69 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT + ( - CASE ( - ( + 87 ) ) WHEN - 13 THEN NULL WHEN - - 13 - + - COUNT( * ) + MAX( DISTINCT - 43 ) THEN + 46 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT + ( - CASE ( - ( + 87 ) ) WHEN - 13 THEN NULL WHEN - - 13 - + - COUNT ( * ) + MAX ( DISTINCT - 43 ) THEN + 46 ELSE NULL END )
----
NULL

query I rowsort
SELECT - + ( ( - 27 ) ) * - - 58 + 86
----
1652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5748
SELECT CAST( NULL AS SIGNED ) - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT CAST ( NULL AS INTEGER ) - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT ALL - COUNT( * ) * + 4 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL - COUNT ( * ) * + 4 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT DISTINCT - MIN( - - 14 ) - 84
----
-98

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT - MIN ( - - 14 ) - 84
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5751
SELECT + COUNT( * ) + 98 + + 93 + 26 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT + COUNT ( * ) + 98 + + 93 + 26 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - 55 ) AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5753
SELECT DISTINCT - 9 DIV - + 83
----
0

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT - 9 / - + 83
----
0

query I rowsort
SELECT + 89 * - + 54 + - - 69 AS col0
----
-4737

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT MAX( + ( - 54 ) ) + 52 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5755
SELECT MAX ( + ( - 54 ) ) + 52 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5756
SELECT 35 DIV 18 * 68
----
68

skipif mysql # not compatible
query I rowsort label-5756
SELECT 35 / 18 * 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT MIN( + 58 ) * + 5 AS col1
----
290

skipif mysql # not compatible
query I rowsort label-5757
SELECT MIN ( + 58 ) * + 5 AS col1
----
290

query II rowsort
SELECT 72, 87 AS col1
----
72
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT DISTINCT 64 * + - CASE - 44 WHEN + 69 THEN + - COUNT( * ) - - 73 WHEN - 55 THEN NULL WHEN + 79 + + 96 * + - 6 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT 64 * + - CASE - 44 WHEN + 69 THEN + - COUNT ( * ) - - 73 WHEN - 55 THEN NULL WHEN + 79 + + 96 * + - 6 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 81 * - 58 AS col1
----
-4698

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5761
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - 88, + NULLIF ( - + 18, - + 52 * + 67 + + + ( 22 ) ) + - + 31 col1
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-5761
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 88, + NULLIF ( - + 18, - + 52 * + 67 + + + ( 22 ) ) + - + 31 col1
----
NULL
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT AVG ( - 77 ) / - - CASE 50 WHEN - - 56 * - 98 / + - COUNT( * ) + 57 + - - COUNT( * ) + - 37 * - + 0 THEN - + MAX( + - 10 ) + - 41 END * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT AVG ( - 77 ) / - - CASE 50 WHEN - - 56 * - 98 / + - COUNT ( * ) + 57 + - - COUNT ( * ) + - 37 * - + 0 THEN - + MAX ( + - 10 ) + - 41 END * 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL - ( COUNT( * ) ) * - ( + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - ( COUNT ( * ) ) * - ( + 52 )
----
52

query I rowsort
SELECT ALL - 25 * + - 38 AS col2
----
950

query I rowsort
SELECT 54 + + - 41
----
13

query I rowsort
SELECT 96 * - - 42
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT DISTINCT 56 + COUNT( * ) + 50 + + - 32 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT 56 + COUNT ( * ) + 50 + + - 32 AS col2
----
75

query I rowsort
SELECT 79 - - + 83 * - - NULLIF ( - 71, - + 61 ) + + + 22
----
-5792

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL 9 * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL 9 * - COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT 86 * - COUNT( DISTINCT + CASE - 39 WHEN 43 + - 79 THEN + + 76 WHEN - 60 / + + 72 * + - 81 * 66 THEN NULL END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5770
SELECT 86 * - COUNT ( DISTINCT + CASE - 39 WHEN 43 + - 79 THEN + + 76 WHEN - 60 / + + 72 * + - 81 * 66 THEN NULL END ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT DISTINCT 20 + + MIN( ALL 47 ) * - 17 AS col1
----
-779

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT 20 + + MIN ( ALL 47 ) * - 17 AS col1
----
-779

query I rowsort
SELECT ALL 79 + + + 73 AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT - COUNT( DISTINCT 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-5773
SELECT - COUNT ( DISTINCT 15 )
----
-1

query II rowsort
SELECT ALL - 47 * 87 * - 81, + 19 AS col0
----
331209
19

query II rowsort
SELECT + 21 + - 95 * + 78, 34 AS col2
----
-7389
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5776
SELECT + ( - 95 ) * + MIN( 33 ) * - CAST( NULL AS SIGNED ) * - - 95 - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT + ( - 95 ) * + MIN ( 33 ) * - CAST ( NULL AS INTEGER ) * - - 95 - 77
----
NULL

query I rowsort
SELECT DISTINCT + + 26 * - - 79 + - ( + 34 ) + COALESCE ( - 88, 12, - 81 ) AS col1
----
1932

query I rowsort
SELECT ALL - - 60 * - 20 * 38 + - 6
----
-45606

query II rowsort
SELECT DISTINCT + 2 AS col1, 58 * + - 88 * + 10
----
2
-51040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5780
SELECT ALL + + 73 / 92 / + - 83 * + MAX( - CAST( NULL AS SIGNED ) ), 93 + - - 6 AS col2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-5780
SELECT ALL + + 73 / 92 / + - 83 * + MAX ( - CAST ( NULL AS INTEGER ) ), 93 + - - 6 AS col2
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL - 7 * - COUNT( * ) + - 15
----
-8

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL - 7 * - COUNT ( * ) + - 15
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT ALL + + ( - COUNT( * ) ) * + - 33 - - 81 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL + + ( - COUNT ( * ) ) * + - 33 - - 81 AS col2
----
114

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5783
SELECT - - 1 * ( + 43 ) * - COALESCE ( + 81, 75 * + - 89, - CAST( NULL AS SIGNED ), - 73 DIV 19, 71 ) AS col2
----
-3483

skipif mysql # not compatible
query I rowsort label-5783
SELECT - - 1 * ( + 43 ) * - COALESCE ( + 81, 75 * + - 89, - CAST ( NULL AS INTEGER ), - 73 / 19, 71 ) AS col2
----
-3483

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT ALL + COUNT( DISTINCT - - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL + COUNT ( DISTINCT - - 83 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5785
SELECT - 64 AS col2, + COUNT( * )
----
-64
1

skipif mysql # not compatible
query II rowsort label-5785
SELECT - 64 AS col2, + COUNT ( * )
----
-64
1

query I rowsort
SELECT ALL + + 78 * 96 - - 11
----
7499

query II rowsort
SELECT 6, + 33 col0
----
6
33

query I rowsort
SELECT - 87 * 86 AS col2
----
-7482

onlyif mysql # aggregate syntax: 
query II rowsort label-5789
SELECT DISTINCT + MIN( DISTINCT 36 ) AS col1, + 7 + - 0 - 85 + - COUNT( * ) col0
----
36
-79

skipif mysql # not compatible
query II rowsort label-5789
SELECT DISTINCT + MIN ( DISTINCT 36 ) AS col1, + 7 + - 0 - 85 + - COUNT ( * ) col0
----
36
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-5790
SELECT DISTINCT + COUNT( * ), 34 AS col1
----
1
34

skipif mysql # not compatible
query II rowsort label-5790
SELECT DISTINCT + COUNT ( * ), 34 AS col1
----
1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT DISTINCT + NULLIF ( - NULLIF ( + + CASE 46 WHEN - 11 * + 98 * + + ( - + 66 ) / + 2 * + 79 * - 2 + - 71 THEN NULL WHEN + - COUNT( * ) THEN - 87 + + 39 + 48 / - 30 END, - COUNT( * ) ), + + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT + NULLIF ( - NULLIF ( + + CASE 46 WHEN - 11 * + 98 * + + ( - + 66 ) / + 2 * + 79 * - 2 + - 71 THEN NULL WHEN + - COUNT ( * ) THEN - 87 + + 39 + 48 / - 30 END, - COUNT ( * ) ), + + 99 )
----
NULL

query I rowsort
SELECT ALL ( 36 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5793
SELECT ALL CASE + SUM( + 26 ) WHEN + ( 93 ) * CAST( NULL AS SIGNED ) * + AVG ( COALESCE ( 87, ( + 57 ) ) ) + + 51 THEN - 22 WHEN + ( + 97 ) THEN + - 72 * + 11 WHEN + + 92 * - 16 + - CAST( - + SUM( ALL 61 ) AS SIGNED ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL CASE + SUM ( + 26 ) WHEN + ( 93 ) * CAST ( NULL AS INTEGER ) * + AVG ( COALESCE ( 87, ( + 57 ) ) ) + + 51 THEN - 22 WHEN + ( + 97 ) THEN + - 72 * + 11 WHEN + + 92 * - 16 + - CAST ( - + SUM ( ALL 61 ) AS INTEGER ) THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5794
SELECT ALL NULLIF ( + COUNT( ALL - - 12 ), 44 * 81 + - - 61 ) AS col2, - 64 AS col2
----
1
-64

skipif mysql # not compatible
query II rowsort label-5794
SELECT ALL NULLIF ( + COUNT ( ALL - - 12 ), 44 * 81 + - - 61 ) AS col2, - 64 AS col2
----
1
-64

query I rowsort
SELECT - 57 - - + 24 + + + 38 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT - COUNT( * ) + - COUNT( * ) * + COUNT( * ) * - 88
----
87

skipif mysql # not compatible
query I rowsort label-5796
SELECT - COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) * - 88
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT ALL + 66 DIV 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL + 66 / 85 AS col2
----
0

query II rowsort
SELECT - 68 AS col1, - 43 AS col2
----
-68
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT + ( + 45 ) / + 13 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5799
SELECT + ( + 45 ) / + 13 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 10 + - 97
----
-87

query I rowsort
SELECT ALL - 3 + - + ( 19 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL COUNT( * ) * 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL COUNT ( * ) * 99 AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5803
SELECT DISTINCT + 58 + COUNT( * ) - - + 24 DIV - 30 AS col0, + 21 + - - 93 col2
----
59
114

skipif mysql # not compatible
query II rowsort label-5803
SELECT DISTINCT + 58 + COUNT ( * ) - - + 24 / - 30 AS col0, + 21 + - - 93 col2
----
59
114

query I rowsort
SELECT DISTINCT + 49 * - 78 AS col1
----
-3822

query I rowsort
SELECT ALL ( + + 10 ) + 77
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL ( - - MIN( + 67 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL ( - - MIN ( + 67 ) ) AS col2
----
67

query I rowsort
SELECT + 44 + ( - - 45 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5808
SELECT - 2 AS col0, + SUM( - + 43 )
----
-2
-43

skipif mysql # not compatible
query II rowsort label-5808
SELECT - 2 AS col0, + SUM ( - + 43 )
----
-2
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5809
SELECT + 2 + - CAST( NULL AS DECIMAL ) - 98 + - + 43 + 3 * 24 * - ( + - NULLIF ( - COUNT( * ), - 41 * + 55 + - - 18 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT + 2 + - CAST ( NULL AS REAL ) - 98 + - + 43 + 3 * 24 * - ( + - NULLIF ( - COUNT ( * ), - 41 * + 55 + - - 18 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT ALL 72 + - COUNT( * ) + 27 + + ( 40 ) AS col1
----
138

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL 72 + - COUNT ( * ) + 27 + + ( 40 ) AS col1
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5811
SELECT + NULLIF ( - 18, + AVG ( - CAST( - 11 AS SIGNED ) ) * + 34 ) * 4 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-5811
SELECT + NULLIF ( - 18, + AVG ( - CAST ( - 11 AS INTEGER ) ) * + 34 ) * 4 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT - MIN( - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-5812
SELECT - MIN ( - 50 )
----
50

query II rowsort
SELECT ALL 74 AS col0, 37
----
74
37

query I rowsort
SELECT DISTINCT + + 4 - + + 26 AS col1
----
-22

query II rowsort
SELECT ALL + + 94 AS col1, 0 col0
----
94
0

query I rowsort
SELECT ALL 17 * - ( - - 85 ) * - 21 AS col0
----
30345

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT + - COUNT( + - 85 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5817
SELECT + - COUNT ( + - 85 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + 25 * + 30 * + 70 + + + ( + COUNT( * ) )
----
52501

skipif mysql # not compatible
query I rowsort label-5818
SELECT + 25 * + 30 * + 70 + + + ( + COUNT ( * ) )
----
52501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT + 5 * + CAST( NULL AS SIGNED ) + - 40 / + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5819
SELECT + 5 * + CAST ( NULL AS INTEGER ) + - 40 / + + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT + 44 * - 11 + - + COUNT( * ) col1
----
-485

skipif mysql # not compatible
query I rowsort label-5820
SELECT + 44 * - 11 + - + COUNT ( * ) col1
----
-485

onlyif mysql # DIV for integer division: 
query I rowsort label-5821
SELECT + 37 DIV 73 + + 26 DIV + ( - 83 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5821
SELECT + 37 / 73 + + 26 / + ( - 83 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT ALL - CAST( NULL AS SIGNED ) * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL - CAST ( NULL AS INTEGER ) * + 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5823
SELECT + 71 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-5823
SELECT + 71 / + 98
----
0

query I rowsort
SELECT - - 64 * - + 62 col0
----
-3968

query I rowsort
SELECT ALL + + 10 AS col0
----
10

query I rowsort
SELECT ALL + ( - 49 ) AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT DISTINCT + 52 DIV 16
----
3

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT + 52 / 16
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5828
SELECT + ( + 37 ) DIV - 29 + - 49 * + 21 * - + 57 AS col0
----
58652

skipif mysql # not compatible
query I rowsort label-5828
SELECT + ( + 37 ) / - 29 + - 49 * + 21 * - + 57 AS col0
----
58652

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT - COUNT( * ) * CASE - - 61 WHEN - + SUM( 57 ) THEN - + MAX( DISTINCT - - 30 ) * - - COUNT( * ) + 47 / 10 ELSE NULL END AS col2, NULLIF ( + 81, - - SUM( - 59 ) )
----
NULL
81

skipif mysql # not compatible
query II rowsort label-5829
SELECT - COUNT ( * ) * CASE - - 61 WHEN - + SUM ( 57 ) THEN - + MAX ( DISTINCT - - 30 ) * - - COUNT ( * ) + 47 / 10 ELSE NULL END AS col2, NULLIF ( + 81, - - SUM ( - 59 ) )
----
NULL
81

query I rowsort
SELECT + ( + 95 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT CASE - - 19 WHEN + 29 THEN NULL WHEN 4 THEN - 40 + - 74 ELSE + ( - COUNT( * ) ) + - 38 END
----
-39

skipif mysql # not compatible
query I rowsort label-5831
SELECT CASE - - 19 WHEN + 29 THEN NULL WHEN 4 THEN - 40 + - 74 ELSE + ( - COUNT ( * ) ) + - 38 END
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5832
SELECT MAX( ALL - 80 ) * + 68 + + ( + 39 ) - 27 * 60 DIV 35 * + 47 - 62 + - ( + + NULLIF ( - MIN( DISTINCT - 31 ), 74 - ( - + 8 ) ) )
----
-7656

skipif mysql # not compatible
query I rowsort label-5832
SELECT MAX ( ALL - 80 ) * + 68 + + ( + 39 ) - 27 * 60 / 35 * + 47 - 62 + - ( + + NULLIF ( - MIN ( DISTINCT - 31 ), 74 - ( - + 8 ) ) )
----
-7656

query I rowsort
SELECT ALL 51 * + + 56 + 69 AS col1
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT CASE - - 74 WHEN + - 12 - + - 54 THEN NULL WHEN + + SUM( - 64 ) THEN + ( + 58 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT CASE - - 74 WHEN + - 12 - + - 54 THEN NULL WHEN + + SUM ( - 64 ) THEN + ( + 58 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT + COUNT( * ) * 82 * 77 col0
----
6314

skipif mysql # not compatible
query I rowsort label-5835
SELECT + COUNT ( * ) * 82 * 77 col0
----
6314

query I rowsort
SELECT - ( + 90 ) * + 62
----
-5580

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT CASE + - MIN( ALL - + CASE - - 86 WHEN - - 31 THEN NULL ELSE - - ( + 0 ) END ) WHEN + 81 THEN 51 + - 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT CASE + - MIN ( ALL - + CASE - - 86 WHEN - - 31 THEN NULL ELSE - - ( + 0 ) END ) WHEN + 81 THEN 51 + - 5 END
----
NULL

query I rowsort
SELECT COALESCE ( 2, 88 + 23 )
----
2

query II rowsort
SELECT DISTINCT + 62 * + - 3, - 48 AS col2
----
-186
-48

query I rowsort
SELECT ALL 63 * + + 4 + + - 19 + + 12 AS col1
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT ALL 88 * NULLIF ( 71, ( MIN( - 9 ) ) + - 94 ) * - 16 + - 47 AS col2
----
-100015

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL 88 * NULLIF ( 71, ( MIN ( - 9 ) ) + - 94 ) * - 16 + - 47 AS col2
----
-100015

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL + COUNT( * ) * + 79 + + ( 45 ) + + + NULLIF ( - - 90, - + 27 * + - COUNT( * ) ) + - + 44
----
170

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL + COUNT ( * ) * + 79 + + ( 45 ) + + + NULLIF ( - - 90, - + 27 * + - COUNT ( * ) ) + - + 44
----
170

query I rowsort
SELECT - ( 40 ) * - - 68 col1
----
-2720

onlyif mysql # aggregate syntax: 
query II rowsort label-5844
SELECT ALL ( + COUNT( * ) ) * ( + NULLIF ( 67, + AVG ( ALL + 62 ) / - - 18 + + 98 + - + 67 ) ) + 75 + + - 2, CASE + - 6 WHEN ( - 6 ) / + COUNT( * ) THEN + 67 + - 26 END + - 75 - - - 44 * + 52 AS col2
----
140
-2322

skipif mysql # not compatible
query II rowsort label-5844
SELECT ALL ( + COUNT ( * ) ) * ( + NULLIF ( 67, + AVG ( ALL + 62 ) / - - 18 + + 98 + - + 67 ) ) + 75 + + - 2, CASE + - 6 WHEN ( - 6 ) / + COUNT ( * ) THEN + 67 + - 26 END + - 75 - - - 44 * + 52 AS col2
----
140
-2322

query II rowsort
SELECT ALL ( - 12 ) AS col2, 96
----
-12
96

query I rowsort
SELECT + ( - - 23 ) + - 16 + 34
----
41

query I rowsort
SELECT 88 + 89 col2
----
177

query I rowsort
SELECT ALL - 72 + - - 59 + - 66 AS col2
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5849
SELECT DISTINCT + + COALESCE ( 64, + - 93 ) DIV - + 33
----
-1

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT + + COALESCE ( 64, + - 93 ) / - + 33
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5850
SELECT 11 * + 97 - - NULLIF ( - + 23, + - 67 ) + + + 46 + + 26 DIV + 24
----
1091

skipif mysql # not compatible
query I rowsort label-5850
SELECT 11 * + 97 - - NULLIF ( - + 23, + - 67 ) + + + 46 + + 26 / + 24
----
1091

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL - COUNT( + - 46 ) * + - NULLIF ( 65, 60 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL - COUNT ( + - 46 ) * + - NULLIF ( 65, 60 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT NULLIF ( COUNT( * ), 95 + - 67 + - + 0 ) - 48
----
-47

skipif mysql # not compatible
query I rowsort label-5852
SELECT NULLIF ( COUNT ( * ), 95 + - 67 + - + 0 ) - 48
----
-47

query I rowsort
SELECT ALL + ( + NULLIF ( 9, + 44 ) )
----
9

query I rowsort
SELECT ALL - 20 - + 10
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT 91 * - - 11 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT 91 * - - 11 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5856
SELECT ALL - - 90 * + COUNT( DISTINCT + NULLIF ( + + 91, CAST( + 18 AS SIGNED ) ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL - - 90 * + COUNT ( DISTINCT + NULLIF ( + + 91, CAST ( + 18 AS INTEGER ) ) ) AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5857
SELECT ALL CAST( NULL AS SIGNED ) - + - ( + 82 ) / 43 - + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL CAST ( NULL AS INTEGER ) - + - ( + 82 ) / 43 - + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5858
SELECT - MAX( 11 ) * - ( - 2 ) * + 34 + - + COUNT( * ) + + 20 + - + CASE COUNT( * ) WHEN - 83 + + 82 THEN NULL WHEN - 61 THEN - NULLIF ( 26, + + 65 + - COALESCE ( - + AVG ( ALL - + 94 ), + 75 + + 34 ) * + 88 * + + 2 * + 11 * - 93 + 5 ) ELSE - + CAST( NULL AS SIGNED ) * + - 33 + ( + 70 ) * - ( + COUNT( * ) ) / + 33 + + MAX( - 31 ) * 16 * + 14 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5858
SELECT - MAX ( 11 ) * - ( - 2 ) * + 34 + - + COUNT ( * ) + + 20 + - + CASE COUNT ( * ) WHEN - 83 + + 82 THEN NULL WHEN - 61 THEN - NULLIF ( 26, + + 65 + - COALESCE ( - + AVG ( ALL - + 94 ), + 75 + + 34 ) * + 88 * + + 2 * + 11 * - 93 + 5 ) ELSE - + CAST ( NULL AS INTEGER ) * + - 33 + ( + 70 ) * - ( + COUNT ( * ) ) / + 33 + + MAX ( - 31 ) * 16 * + 14 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT ALL + COUNT( * ) * + 87 + + 75 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL + COUNT ( * ) * + 87 + + 75 AS col0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT CASE COUNT( * ) WHEN - ( - 11 ) THEN + 57 + - 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT CASE COUNT ( * ) WHEN - ( - 11 ) THEN + 57 + - 11 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 12 * - + 34 AS col1
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL - + CASE - + 49 WHEN - 73 * 52 * + CASE - 56 WHEN + 85 THEN - 7 ELSE NULL END THEN 55 WHEN + + ( - - MIN( 41 ) ) THEN - + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL - + CASE - + 49 WHEN - 73 * 52 * + CASE - 56 WHEN + 85 THEN - 7 ELSE NULL END THEN 55 WHEN + + ( - - MIN ( 41 ) ) THEN - + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + 42 * - - 16
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT 60 * SUM( ALL - 56 )
----
-3360

skipif mysql # not compatible
query I rowsort label-5864
SELECT 60 * SUM ( ALL - 56 )
----
-3360

query II rowsort
SELECT + ( 3 ) AS col1, 32 AS col0
----
3
32

query I rowsort
SELECT ALL - - 34 col0
----
34

query I rowsort
SELECT 39 * - + 66 AS col0
----
-2574

query I rowsort
SELECT ALL 17 * - + 22
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT ALL COUNT( * ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL COUNT ( * ) * + 1
----
1

query II rowsort
SELECT - 48 * - - 23 + + 21 AS col0, COALESCE ( - 27, + + 43 * ( - + 51 ) + - 99 * 3 - - - 83 + + 71, 17 * + NULLIF ( - 3, + 0 ) + 89, + + 11 ) AS col1
----
-1083
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5871
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - 71 + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 71 + 7 AS col1
----
NULL

query I rowsort
SELECT ALL 64 * + ( + 28 )
----
1792

onlyif mysql # aggregate syntax: 
query II rowsort label-5873
SELECT + 55 AS col2, + COUNT( * ) AS col0
----
55
1

skipif mysql # not compatible
query II rowsort label-5873
SELECT + 55 AS col2, + COUNT ( * ) AS col0
----
55
1

query I rowsort
SELECT DISTINCT 57 + + 53
----
110

query I rowsort
SELECT 3 * - 63 + + + 79 AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT CASE - COUNT( * ) WHEN COUNT( * ) THEN - 21 ELSE - 12 END + - 84 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5876
SELECT CASE - COUNT ( * ) WHEN COUNT ( * ) THEN - 21 ELSE - 12 END + - 84 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL 4 + - + CASE WHEN 66 NOT BETWEEN - 98 AND NULL THEN 44 * + 16 * - - 20 * - MAX( - + 57 ) + + + 64 - - 32 + - AVG ( - 70 ) * + 93 + + 22 / + 62 * + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL 4 + - + CASE WHEN 66 NOT BETWEEN - 98 AND NULL THEN 44 * + 16 * - - 20 * - MAX ( - + 57 ) + + + 64 - - 32 + - AVG ( - 70 ) * + 93 + + 22 / + 62 * + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL - MIN( - 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - MIN ( - 44 ) AS col2
----
44

query II rowsort
SELECT ALL 56 + - 0 + 87, 24 AS col2
----
143
24

query I rowsort
SELECT 14 + - 94
----
-80

query I rowsort
SELECT 24 + + 79 AS col1
----
103

query I rowsort
SELECT 33 + - 84 + 8 + 15
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT COUNT( * ) + + - 22
----
-21

skipif mysql # not compatible
query I rowsort label-5883
SELECT COUNT ( * ) + + - 22
----
-21

query II rowsort
SELECT ALL 86, 17 col0
----
86
17

query I rowsort
SELECT ALL + 35 * - 24 * - + 68 col2
----
57120

query I rowsort
SELECT - 23 + - 9 col1
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-5887
SELECT ALL 93 - CASE + 34 WHEN + 46 THEN - 24 ELSE 55 END AS col2, CASE + 17 WHEN 82 + - 63 + - COALESCE ( - 4, + 41 * 17 + - - 12 / 45 / - SUM( DISTINCT - 69 ) + + ( - 24 ) ) * - 96 THEN NULLIF ( 35, + + 97 + - 47 ) WHEN - + 41 THEN + - 58 * + + 95 * - + 39 ELSE NULL END / + CASE 59 WHEN - 29 THEN 29 * - 58 END AS col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-5887
SELECT ALL 93 - CASE + 34 WHEN + 46 THEN - 24 ELSE 55 END AS col2, CASE + 17 WHEN 82 + - 63 + - COALESCE ( - 4, + 41 * 17 + - - 12 / 45 / - SUM ( DISTINCT - 69 ) + + ( - 24 ) ) * - 96 THEN NULLIF ( 35, + + 97 + - 47 ) WHEN - + 41 THEN + - 58 * + + 95 * - + 39 ELSE NULL END / + CASE 59 WHEN - 29 THEN 29 * - 58 END AS col0
----
38
NULL

query I rowsort
SELECT 29 + + + 91 AS col0
----
120

query I rowsort
SELECT DISTINCT + 91 * - 43
----
-3913

query II rowsort
SELECT DISTINCT 4, ( 60 ) * 12 AS col2
----
4
720

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL 20 * + + COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL 20 * + + COUNT ( * ) AS col0
----
20

query I rowsort
SELECT 5 * + + 59 * + 63 + 42 AS col0
----
18627

query II rowsort
SELECT 45 AS col2, 14
----
45
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT COUNT( + - 19 ) + + - 27 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-5894
SELECT COUNT ( + - 19 ) + + - 27 AS col0
----
-26

query I rowsort
SELECT 28 * + 36 * + 60 AS col0
----
60480

onlyif mysql # DIV for integer division: 
query I rowsort label-5896
SELECT ALL - + ( - ( + + NULLIF ( + 77, + + 85 ) ) ) DIV - + 70
----
-1

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL - + ( - ( + + NULLIF ( + 77, + + 85 ) ) ) / - + 70
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT - COUNT( * ) + - 2 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5897
SELECT - COUNT ( * ) + - 2 AS col0
----
-3

query I rowsort
SELECT DISTINCT - 26 * + 13 col2
----
-338

query I rowsort
SELECT ALL 6 * + 61
----
366

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT 54 * + + COUNT( + 70 ) + + 68 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-5900
SELECT 54 * + + COUNT ( + 70 ) + + 68 AS col1
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5901
SELECT DISTINCT COALESCE ( - + ( 49 ), 86 + - + 13 + - 72, 41 - - 45 ) * CAST( NULL AS SIGNED ) + + - MIN( DISTINCT 75 ) + - 18 + + - 12 / - 16 * - COUNT( * ) * + 62 * + COUNT( * ) * + 99 - - - 22 * + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT COALESCE ( - + ( 49 ), 86 + - + 13 + - 72, 41 - - 45 ) * CAST ( NULL AS INTEGER ) + + - MIN ( DISTINCT 75 ) + - 18 + + - 12 / - 16 * - COUNT ( * ) * + 62 * + COUNT ( * ) * + 99 - - - 22 * + - 71
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5902
SELECT + COUNT( * ), - 50 AS col2
----
1
-50

skipif mysql # not compatible
query II rowsort label-5902
SELECT + COUNT ( * ), - 50 AS col2
----
1
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5903
SELECT ALL + 80 * + - 52, 41 * + + 19 * - + MIN( DISTINCT - - 90 ) * - 44 AS col1, + 25 DIV + 75 AS col2
----
-4160
3084840
0

skipif mysql # not compatible
query III rowsort label-5903
SELECT ALL + 80 * + - 52, 41 * + + 19 * - + MIN ( DISTINCT - - 90 ) * - 44 AS col1, + 25 / + 75 AS col2
----
-4160
3084840
0

query II rowsort
SELECT 54 * 36, 80 AS col0
----
1944
80

query I rowsort
SELECT ALL - COALESCE ( 56, - 82 ) AS col1
----
-56

query I rowsort
SELECT ALL 12 * + - 57 + + 87 AS col1
----
-597

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL - COALESCE ( - 47, COALESCE ( 59, + ( - - 84 ), + 3 ) + + MAX( DISTINCT 1 ), 42 )
----
47

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - COALESCE ( - 47, COALESCE ( 59, + ( - - 84 ), + 3 ) + + MAX ( DISTINCT 1 ), 42 )
----
47

query I rowsort
SELECT ALL 45 * - 36 col0
----
-1620

query I rowsort
SELECT DISTINCT + 90 - 16 AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5910
SELECT ALL SUM( ALL - 39 ) - - + 2 + + 14 * - NULLIF ( + 65, - CAST( 44 AS SIGNED ) + + COUNT( * ) ) AS col2
----
-947

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL SUM ( ALL - 39 ) - - + 2 + + 14 * - NULLIF ( + 65, - CAST ( 44 AS INTEGER ) + + COUNT ( * ) ) AS col2
----
-947

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5911
SELECT + 38 * CAST( NULL AS SIGNED ) AS col1, - 76
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-5911
SELECT + 38 * CAST ( NULL AS INTEGER ) AS col1, - 76
----
NULL
-76

query I rowsort
SELECT DISTINCT 44 * + 83 AS col0
----
3652

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT ALL CASE 60 WHEN - 91 * + AVG ( DISTINCT - + 18 ) THEN 93 WHEN COUNT( * ) + + 5 - + 54 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL CASE 60 WHEN - 91 * + AVG ( DISTINCT - + 18 ) THEN 93 WHEN COUNT ( * ) + + 5 - + 54 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT COALESCE ( - - 56, - COUNT( * ) + + 4, + - SUM( + 18 ) ) * - COUNT( * ) col0
----
-56

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT COALESCE ( - - 56, - COUNT ( * ) + + 4, + - SUM ( + 18 ) ) * - COUNT ( * ) col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5915
SELECT ALL - CASE - 39 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN - + 96 WHEN - - COUNT( * ) THEN NULL ELSE + COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL - CASE - 39 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN - + 96 WHEN - - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5916
SELECT ALL CASE CAST( 94 AS SIGNED ) WHEN + COUNT( * ) * - 8 + 2 THEN 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL CASE CAST ( 94 AS INTEGER ) WHEN + COUNT ( * ) * - 8 + 2 THEN 14 ELSE NULL END
----
NULL

query I rowsort
SELECT + 83 * - + 37
----
-3071

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT - MAX( ALL 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-5918
SELECT - MAX ( ALL 97 )
----
-97

query I rowsort
SELECT + 97 * 97
----
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5920
SELECT + 24 - + CAST( - 24 AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5920
SELECT + 24 - + CAST ( - 24 AS INTEGER ) AS col1
----
48

query I rowsort
SELECT + - 41 * 45 AS col2
----
-1845

query I rowsort
SELECT DISTINCT 11 * ( 23 ) * + 24 - 71 AS col0
----
6001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT ALL - 80 + + + 18 + + 44 / + CAST( NULL AS SIGNED ) + - 89 * - 57 - - 8 * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL - 80 + + + 18 + + 44 / + CAST ( NULL AS INTEGER ) + - 89 * - 57 - - 8 * + 80
----
NULL

query I rowsort
SELECT + - 47 + + + 28 * + 56 AS col1
----
1521

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5925
SELECT - - 42 - + 38 DIV - COALESCE ( - + 98, NULLIF ( + AVG ( - 73 ), + 71 - - + 50 * + - ( - - CAST( NULL AS SIGNED ) ) - 75 ) ) * + 44 + + ( + 30 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5925
SELECT - - 42 - + 38 / - COALESCE ( - + 98, NULLIF ( + AVG ( - 73 ), + 71 - - + 50 * + - ( - - CAST ( NULL AS INTEGER ) ) - 75 ) ) * + 44 + + ( + 30 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-5926
SELECT DISTINCT + + SUM( - 15 ) AS col0, 28 * - 86
----
-15
-2408

skipif mysql # not compatible
query II rowsort label-5926
SELECT DISTINCT + + SUM ( - 15 ) AS col0, 28 * - 86
----
-15
-2408

onlyif mysql # aggregate syntax: 
query II rowsort label-5927
SELECT + 95 AS col0, - COUNT( * ) AS col1
----
95
-1

skipif mysql # not compatible
query II rowsort label-5927
SELECT + 95 AS col0, - COUNT ( * ) AS col1
----
95
-1

query I rowsort
SELECT DISTINCT + 3 * + + 64 AS col1
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5929
SELECT DISTINCT + 30 DIV NULLIF ( + COUNT( * ), - COUNT( * ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT + 30 / NULLIF ( + COUNT ( * ), - COUNT ( * ) ) AS col2
----
30

query I rowsort
SELECT DISTINCT - 31 * 15 AS col1
----
-465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5931
SELECT ALL + CAST( - 53 AS SIGNED ) * + + 21 - - + 24 AS col0
----
-1089

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL + CAST ( - 53 AS INTEGER ) * + + 21 - - + 24 AS col0
----
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT DISTINCT + COUNT( * ) * + 50 * + + 49 * + 59 AS col0
----
144550

skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT + COUNT ( * ) * + 50 * + + 49 * + 59 AS col0
----
144550

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT COUNT( * ) * + 45 + 69
----
114

skipif mysql # not compatible
query I rowsort label-5933
SELECT COUNT ( * ) * + 45 + 69
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5934
SELECT NULLIF ( - + 25, - CAST( NULL AS SIGNED ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5934
SELECT NULLIF ( - + 25, - CAST ( NULL AS INTEGER ) ) AS col0
----
-25

query I rowsort
SELECT ALL + 64 * + 24 - - 92
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT NULLIF ( - 51, MAX( ALL 47 ) + SUM( DISTINCT + 47 ) / MAX( - 77 ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5936
SELECT NULLIF ( - 51, MAX ( ALL 47 ) + SUM ( DISTINCT + 47 ) / MAX ( - 77 ) ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT - 9 + + COUNT( * ) + + 97 + + + COUNT( DISTINCT 23 ) * - 6 * 21 * + ( 0 ) * + 0 - COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5937
SELECT - 9 + + COUNT ( * ) + + 97 + + + COUNT ( DISTINCT 23 ) * - 6 * 21 * + ( 0 ) * + 0 - COUNT ( * ) AS col2
----
88

query I rowsort
SELECT ALL - 41 * + - 18 * + + 37 AS col0
----
27306

onlyif mysql # DIV for integer division: 
query I rowsort label-5939
SELECT ALL + COALESCE ( - + 65, - 82 - 10 DIV + 26 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL + COALESCE ( - + 65, - 82 - 10 / + 26 ) AS col0
----
-65

query I rowsort
SELECT DISTINCT + ( + 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT ALL + SUM( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL + SUM ( - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT + 79 * + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5942
SELECT + 79 * + COUNT ( * ) AS col2
----
79

query I rowsort
SELECT - 91 * - + 69 * - 25 + - 79
----
-157054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5944
SELECT - CASE + - 32 WHEN - - 62 THEN NULL ELSE CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) DIV - + NULLIF ( - 55, CAST( NULL AS SIGNED ) ) + + + 92 * - - 9 + + 30 - - 11 END * + 68 + + 99, 65 col2
----
-58993
65

skipif mysql # not compatible
query II rowsort label-5944
SELECT - CASE + - 32 WHEN - - 62 THEN NULL ELSE CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) / - + NULLIF ( - 55, CAST ( NULL AS INTEGER ) ) + + + 92 * - - 9 + + 30 - - 11 END * + 68 + + 99, 65 col2
----
-58993
65

query I rowsort
SELECT + 42 + - 82
----
-40

query I rowsort
SELECT ALL 11 * - 38 col0
----
-418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5947
SELECT DISTINCT + 43 * - + 31 + + CAST( - SUM( - + 17 ) AS SIGNED ) AS col1
----
-1316

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT + 43 * - + 31 + + CAST ( - SUM ( - + 17 ) AS INTEGER ) AS col1
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT - MAX( DISTINCT - - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-5948
SELECT - MAX ( DISTINCT - - 68 )
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-5949
SELECT DISTINCT - 50 + - 64 + + 9 - 39 + - - 15 + - - 37 col2, COUNT( - 58 )
----
-92
1

skipif mysql # not compatible
query II rowsort label-5949
SELECT DISTINCT - 50 + - 64 + + 9 - 39 + - - 15 + - - 37 col2, COUNT ( - 58 )
----
-92
1

query I rowsort
SELECT ALL 38 + 41
----
79

query I rowsort
SELECT + 8 + + 17 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT DISTINCT - - 41 + + + 52 + - COUNT( + + 81 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5952
SELECT DISTINCT - - 41 + + + 52 + - COUNT ( + + 81 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5953
SELECT + + 12 + - NULLIF ( + + 19, + 76 * + 42 - - 98 + + 59 ) + + COUNT( * ) col1, - 2
----
-6
-2

skipif mysql # not compatible
query II rowsort label-5953
SELECT + + 12 + - NULLIF ( + + 19, + 76 * + 42 - - 98 + + 59 ) + + COUNT ( * ) col1, - 2
----
-6
-2

query I rowsort
SELECT + - 95 * + - 0 - 56 * + 39
----
-2184

onlyif mysql # aggregate syntax: 
query II rowsort label-5955
SELECT DISTINCT 0 + + - 75 / + + ( - + CASE + 22 WHEN - 7 * - COUNT( * ) * ( + - 7 ) + 62 THEN NULL WHEN 16 / + 38 THEN NULL WHEN ( MIN( + 66 ) ) + MIN( ALL 74 ) + + - 7 - - + ( - ( - - 15 ) ) * 7 - + + 15 THEN - AVG ( ALL + 64 ) ELSE NULL END ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5955
SELECT DISTINCT 0 + + - 75 / + + ( - + CASE + 22 WHEN - 7 * - COUNT ( * ) * ( + - 7 ) + 62 THEN NULL WHEN 16 / + 38 THEN NULL WHEN ( MIN ( + 66 ) ) + MIN ( ALL 74 ) + + - 7 - - + ( - ( - - 15 ) ) * 7 - + + 15 THEN - AVG ( ALL + 64 ) ELSE NULL END ), COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5956
SELECT ALL - 31 + + 63 + + 52 - - + 44 + 0 DIV - 98
----
128

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL - 31 + + 63 + + 52 - - + 44 + 0 / - 98
----
128

query I rowsort
SELECT - + ( - 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT DISTINCT ( + 4 ) + + 94 + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT ( + 4 ) + + 94 + - COUNT ( * )
----
97

query II rowsort
SELECT 92, 5 AS col1
----
92
5

query II rowsort
SELECT ALL 29 AS col0, 83
----
29
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT + ( 63 ) + + COALESCE ( - COUNT( * ), + COUNT( * ), + 22 * 96 - + 47 * - ( + - 68 ) + - + 30 * 16 ) * - CASE 98 WHEN + 37 + + - 11 THEN NULL ELSE - 1 END - + + 57
----
5

skipif mysql # not compatible
query I rowsort label-5961
SELECT + ( 63 ) + + COALESCE ( - COUNT ( * ), + COUNT ( * ), + 22 * 96 - + 47 * - ( + - 68 ) + - + 30 * 16 ) * - CASE 98 WHEN + 37 + + - 11 THEN NULL ELSE - 1 END - + + 57
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5962
SELECT ALL 41 DIV - 88 + - 81 - - 74 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL 41 / - 88 + - 81 - - 74 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL + 74 * SUM( - + 49 )
----
-3626

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL + 74 * SUM ( - + 49 )
----
-3626

query I rowsort
SELECT + + 68 + + 54 AS col2
----
122

query II rowsort
SELECT 77 col1, - 56
----
77
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT + COUNT( ALL + + 39 ) * - 82 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-5966
SELECT + COUNT ( ALL + + 39 ) * - 82 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT ALL - COUNT( * ) * + - ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL - COUNT ( * ) * + - ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL 81 * 25
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT ALL AVG ( ALL + 5 ) / + 29 * - CASE + 80 WHEN - COUNT( + 62 ) THEN ( - 86 ) * - 52 END - - ( + 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL AVG ( ALL + 5 ) / + 29 * - CASE + 80 WHEN - COUNT ( + 62 ) THEN ( - 86 ) * - 52 END - - ( + 74 )
----
NULL

query II rowsort
SELECT DISTINCT - 40 AS col2, 99 - + 5 AS col2
----
-40
94

query II rowsort
SELECT 77 AS col2, - 58
----
77
-58

query I rowsort
SELECT - 41 * 65 + + 7 AS col2
----
-2658

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT DISTINCT - SUM( DISTINCT + 36 ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT - SUM ( DISTINCT + 36 ) col1
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-5974
SELECT ALL - 59, + 64 * + COUNT( - 20 ) + - 70 AS col0
----
-59
-6

skipif mysql # not compatible
query II rowsort label-5974
SELECT ALL - 59, + 64 * + COUNT ( - 20 ) + - 70 AS col0
----
-59
-6

query I rowsort
SELECT ( 29 ) * - 97 * - - 15
----
-42195

query I rowsort
SELECT 33 + - 36
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5977
SELECT DISTINCT + 73 DIV 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT + 73 / 44 AS col0
----
1

query I rowsort
SELECT 23 * - 88
----
-2024

onlyif mysql # DIV for integer division: 
query I rowsort label-5979
SELECT ALL CASE COALESCE ( - ( + 63 ), + 73 ) WHEN + + ( 20 ) * + 2 THEN NULL ELSE - - 18 END DIV - + ( - 75 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL CASE COALESCE ( - ( + 63 ), + 73 ) WHEN + + ( 20 ) * + 2 THEN NULL ELSE - - 18 END / - + ( - 75 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5980
SELECT ALL - 75 AS col0, CAST( NULL AS SIGNED ) * + 86
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-5980
SELECT ALL - 75 AS col0, CAST ( NULL AS INTEGER ) * + 86
----
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT - COUNT( * ) * + CASE + 1 WHEN + 26 THEN + + 9 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT - COUNT ( * ) * + CASE + 1 WHEN + 26 THEN + + 9 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT - 70 * 23 DIV 46 + + 84 * + 40 * + 76
----
255325

skipif mysql # not compatible
query I rowsort label-5982
SELECT - 70 * 23 / 46 + + 84 * + 40 * + 76
----
255325

query I rowsort
SELECT ALL - 96 + + 25 * + - 79
----
-2071

query I rowsort
SELECT ALL - + 80 + 44
----
-36

query I rowsort
SELECT DISTINCT - 94 + - - 99 + 59 AS col0
----
64

query I rowsort
SELECT DISTINCT ( 94 )
----
94

query I rowsort
SELECT ALL - ( + ( + - 36 ) ) + + 45
----
81

query I rowsort
SELECT DISTINCT COALESCE ( - 60, - 21 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT DISTINCT - COUNT( * ) + + MAX( + ( 63 ) ) * + 44
----
2771

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT - COUNT ( * ) + + MAX ( + ( 63 ) ) * + 44
----
2771

onlyif mysql # DIV for integer division: 
query II rowsort label-5990
SELECT 62 + - COALESCE ( 7, COALESCE ( 41, + - 28, 40 * + 15 * + 55 ) * 37 * 79 DIV + - ( + 26 ) ) * - - 51 AS col2, - 65 DIV 8 AS col2
----
-295
-8

skipif mysql # not compatible
query II rowsort label-5990
SELECT 62 + - COALESCE ( 7, COALESCE ( 41, + - 28, 40 * + 15 * + 55 ) * 37 * 79 / + - ( + 26 ) ) * - - 51 AS col2, - 65 / 8 AS col2
----
-295
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5991
SELECT - 42 * + CASE WHEN NOT ( + CASE COUNT( * ) WHEN + 72 THEN - CAST( 72 AS SIGNED ) WHEN 67 + 43 + 74 / 70 THEN NULL END ) < 15 THEN 77 * + 59 + + 37 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT - 42 * + CASE WHEN NOT ( + CASE COUNT ( * ) WHEN + 72 THEN - CAST ( 72 AS INTEGER ) WHEN 67 + 43 + 74 / 70 THEN NULL END ) < 15 THEN 77 * + 59 + + 37 END AS col0
----
NULL

query II rowsort
SELECT ALL 85 AS col2, 9
----
85
9

query I rowsort
SELECT - 86 + - 53
----
-139

query I rowsort
SELECT DISTINCT + 78 + 62 + 60 * - 93 AS col2
----
-5440

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ALL + 19 + COUNT( * ) col2
----
20

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL + 19 + COUNT ( * ) col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT + CAST( NULL AS SIGNED ) * + + 18 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT + CAST ( NULL AS INTEGER ) * + + 18 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT ALL - NULLIF ( + 23, - 72 ) - + CASE - 29 WHEN + 65 THEN NULL ELSE + - 63 + 52 END + + 22 DIV + ( - 81 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL - NULLIF ( + 23, - 72 ) - + CASE - 29 WHEN + 65 THEN NULL ELSE + - 63 + 52 END + + 22 / + ( - 81 ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5998
SELECT COUNT( * ) + MAX( ALL + CAST( NULL AS SIGNED ) ) + - 19, + MAX( + 40 ) AS col0
----
NULL
40

skipif mysql # not compatible
query II rowsort label-5998
SELECT COUNT ( * ) + MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - 19, + MAX ( + 40 ) AS col0
----
NULL
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5999
SELECT + CAST( NULL AS SIGNED ) + + 29 + + 35 * + - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT + CAST ( NULL AS INTEGER ) + + 29 + + 35 * + - 99 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6000
SELECT CASE + - NULLIF ( + CAST( NULL AS SIGNED ), + 40 ) WHEN + + 32 THEN + COUNT( * ) * + 16 * 64 * - - 14 - - - COUNT( * ) - - 79 * 88 WHEN + ( 95 ) * + 18 - - CAST( - 30 AS SIGNED ) * + + 91 THEN NULL ELSE + 5 + - CASE - - 88 WHEN + 16 THEN 23 WHEN - - 74 THEN - COUNT( * ) * - 72 END + + SUM( DISTINCT + ( - 96 ) ) END * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT CASE + - NULLIF ( + CAST ( NULL AS INTEGER ), + 40 ) WHEN + + 32 THEN + COUNT ( * ) * + 16 * 64 * - - 14 - - - COUNT ( * ) - - 79 * 88 WHEN + ( 95 ) * + 18 - - CAST ( - 30 AS INTEGER ) * + + 91 THEN NULL ELSE + 5 + - CASE - - 88 WHEN + 16 THEN 23 WHEN - - 74 THEN - COUNT ( * ) * - 72 END + + SUM ( DISTINCT + ( - 96 ) ) END * + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 73 + 75
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT 8 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-6002
SELECT 8 / + 61
----
0

query I rowsort
SELECT 79 * 77 * - 72 AS col0
----
-437976

query I rowsort
SELECT ALL 86 - + 31
----
55

query I rowsort
SELECT 4 - 87 AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6006
SELECT CAST( NULL AS SIGNED ) * COUNT( ALL - 52 ) DIV ( + COALESCE ( COUNT( * ), 48 * + + 3 + NULLIF ( + 76, + COUNT( ALL 78 ) ) ) ), - ( - 74 ) DIV - + 20 + - + 43 * + 6 - + 45 + MIN( - 33 ) + ( - 62 ) + - - 95 AS col1
----
NULL
-306

skipif mysql # not compatible
query II rowsort label-6006
SELECT CAST ( NULL AS INTEGER ) * COUNT ( ALL - 52 ) / ( + COALESCE ( COUNT ( * ), 48 * + + 3 + NULLIF ( + 76, + COUNT ( ALL 78 ) ) ) ), - ( - 74 ) / - + 20 + - + 43 * + 6 - + 45 + MIN ( - 33 ) + ( - 62 ) + - - 95 AS col1
----
NULL
-306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6007
SELECT 87 * - MIN( DISTINCT - NULLIF ( + - ( - + CAST( - 97 AS SIGNED ) ), - + 61 + 70 ) ) + + 37 AS col1
----
-8402

skipif mysql # not compatible
query I rowsort label-6007
SELECT 87 * - MIN ( DISTINCT - NULLIF ( + - ( - + CAST ( - 97 AS INTEGER ) ), - + 61 + 70 ) ) + + 37 AS col1
----
-8402

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6008
SELECT - 60 * - - CAST( 34 AS SIGNED ) + CAST( - 91 AS SIGNED ) AS col2, 36
----
-2131
36

skipif mysql # not compatible
query II rowsort label-6008
SELECT - 60 * - - CAST ( 34 AS INTEGER ) + CAST ( - 91 AS INTEGER ) AS col2, 36
----
-2131
36

query I rowsort
SELECT + NULLIF ( - 53, + + ( + - 13 ) + + 81 * ( 98 ) ) * 53 AS col1
----
-2809

query I rowsort
SELECT ALL + 25 + + - 46 AS col2
----
-21

query I rowsort
SELECT - + 42 * - 53 + + 70 * + 34 + - 99 + 58 AS col1
----
4565

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6012
SELECT - 77 + CAST( - 67 AS SIGNED ) AS col2, + 51 + - ( + 4 ) AS col0
----
-144
47

skipif mysql # not compatible
query II rowsort label-6012
SELECT - 77 + CAST ( - 67 AS INTEGER ) AS col2, + 51 + - ( + 4 ) AS col0
----
-144
47

query I rowsort
SELECT ALL - - 53 + + 78 * 14
----
1145

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT + - COALESCE ( COUNT( * ), 41 + - 99 ) * + 37 + - + 44 * + 56 + + + ( - + 54 )
----
-2555

skipif mysql # not compatible
query I rowsort label-6014
SELECT + - COALESCE ( COUNT ( * ), 41 + - 99 ) * + 37 + - + 44 * + 56 + + + ( - + 54 )
----
-2555

query I rowsort
SELECT + - NULLIF ( 40, AVG ( DISTINCT - 49 ) / + 61 ) AS col1
----
-40

query I rowsort
SELECT ALL - + ( 76 )
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6017
SELECT - 57 DIV - COUNT( * ) + - + 48
----
9

skipif mysql # not compatible
query I rowsort label-6017
SELECT - 57 / - COUNT ( * ) + - + 48
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6018
SELECT 4 * ( + 62 ) * + ( 20 ) * + + 27 + + + 91 + + + 17 / - COUNT( * ) - + + CAST( NULL AS DECIMAL ) + + - ( + 61 ) + - - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT 4 * ( + 62 ) * + ( 20 ) * + + 27 + + + 91 + + + 17 / - COUNT ( * ) - + + CAST ( NULL AS REAL ) + + - ( + 61 ) + - - 70 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6019
SELECT SUM( - - CASE - 68 WHEN 32 THEN - 67 * - 81 * - - 19 END ) * 67 + - 69 + + 46 + 11 - + 71 * + 20 / 9 + - CAST( NULL AS SIGNED ) * + - 16 * 37 * - 93 * 15 * - 64 + - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT SUM ( - - CASE - 68 WHEN 32 THEN - 67 * - 81 * - - 19 END ) * 67 + - 69 + + 46 + 11 - + 71 * + 20 / 9 + - CAST ( NULL AS INTEGER ) * + - 16 * 37 * - 93 * 15 * - 64 + - + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT + 40 + - MAX( 26 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6020
SELECT + 40 + - MAX ( 26 ) AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT - 6 * + + CASE + 14 WHEN - + 17 * 0 * ( + 46 ) * - + 98 + 74 THEN + 41 WHEN - ( + 91 ) + 65 + - - 65 / + - 35 * - - ( CAST( NULL AS SIGNED ) ) THEN + 34 * - 62 * + - 98 - - 32 ELSE - COUNT( - 55 ) END AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6021
SELECT - 6 * + + CASE + 14 WHEN - + 17 * 0 * ( + 46 ) * - + 98 + 74 THEN + 41 WHEN - ( + 91 ) + 65 + - - 65 / + - 35 * - - ( CAST ( NULL AS INTEGER ) ) THEN + 34 * - 62 * + - 98 - - 32 ELSE - COUNT ( - 55 ) END AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT DISTINCT + ( - COUNT( * ) ) * - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT + ( - COUNT ( * ) ) * - - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT MIN( DISTINCT + 29 ) * + 8 col1
----
232

skipif mysql # not compatible
query I rowsort label-6023
SELECT MIN ( DISTINCT + 29 ) * + 8 col1
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT ALL MAX( ALL + + 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL MAX ( ALL + + 14 ) AS col2
----
14

query I rowsort
SELECT - ( + 14 ) + + ( + + ( + 50 ) ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT - 16 * + + COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6026
SELECT - 16 * + + COUNT ( * ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT + 22 * 31 * - - 17 * 2 * COUNT( * )
----
23188

skipif mysql # not compatible
query I rowsort label-6027
SELECT + 22 * 31 * - - 17 * 2 * COUNT ( * )
----
23188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6028
SELECT DISTINCT - MIN( + CAST( 64 AS SIGNED ) ) * - 56 AS col2
----
3584

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT - MIN ( + CAST ( 64 AS INTEGER ) ) * - 56 AS col2
----
3584

query I rowsort
SELECT DISTINCT - 0 * - + 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6030
SELECT DISTINCT 62 AS col1, 74 + + 87 * MAX( 58 ) col1
----
62
5120

skipif mysql # not compatible
query II rowsort label-6030
SELECT DISTINCT 62 AS col1, 74 + + 87 * MAX ( 58 ) col1
----
62
5120

onlyif mysql # DIV for integer division: 
query II rowsort label-6031
SELECT ALL 13 AS col0, 67 + - 7 + - - 16 DIV + + ( - ( - 85 ) ) + + 3 AS col1
----
13
63

skipif mysql # not compatible
query II rowsort label-6031
SELECT ALL 13 AS col0, 67 + - 7 + - - 16 / + + ( - ( - 85 ) ) + + 3 AS col1
----
13
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6032
SELECT - 86 + - + 10 + + 29 DIV 43 + + 17
----
-79

skipif mysql # not compatible
query I rowsort label-6032
SELECT - 86 + - + 10 + + 29 / 43 + + 17
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT ALL CASE - 56 WHEN + CASE - 45 WHEN + 97 + 40 + - + 0 * + 6 THEN + 45 WHEN - 49 * + 13 * - - CASE + 50 WHEN - ( - 30 ) / 29 * - 25 THEN - + 92 ELSE + - 12 END * - COUNT( * ) - SUM( - + 1 ) THEN - 71 END * + 76 * + - ( - - 21 ) + - + COUNT( * ) + - 28 - + 55 * COUNT( * ) THEN NULL ELSE - 20 * + 77 * - 1 END
----
1540

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL CASE - 56 WHEN + CASE - 45 WHEN + 97 + 40 + - + 0 * + 6 THEN + 45 WHEN - 49 * + 13 * - - CASE + 50 WHEN - ( - 30 ) / 29 * - 25 THEN - + 92 ELSE + - 12 END * - COUNT ( * ) - SUM ( - + 1 ) THEN - 71 END * + 76 * + - ( - - 21 ) + - + COUNT ( * ) + - 28 - + 55 * COUNT ( * ) THEN NULL ELSE - 20 * + 77 * - 1 END
----
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT ALL + ( - 37 ) * + + CASE 33 WHEN + - COUNT( * ) * + + 31 THEN + - AVG ( DISTINCT + - 10 ) WHEN 95 THEN NULL WHEN - 64 THEN NULL END + + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL + ( - 37 ) * + + CASE 33 WHEN + - COUNT ( * ) * + + 31 THEN + - AVG ( DISTINCT + - 10 ) WHEN 95 THEN NULL WHEN - 64 THEN NULL END + + + 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6035
SELECT ALL 33 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL 33 / 45
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6036
SELECT + 38 DIV + + 32 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6036
SELECT + 38 / + + 32 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT ALL - COUNT( * ) * - ( 46 ) + + - 54
----
-8

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL - COUNT ( * ) * - ( 46 ) + + - 54
----
-8

query I rowsort
SELECT 82 * - 22 + + 58 AS col2
----
-1746

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT + MIN( - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-6039
SELECT + MIN ( - 58 )
----
-58

query I rowsort
SELECT - 26 * + + 78
----
-2028

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6041
SELECT ALL - 89 * COUNT( * ) * CAST( NULL AS DECIMAL ) + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL - 89 * COUNT ( * ) * CAST ( NULL AS REAL ) + 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT NULLIF ( - 20, - 0 + + 10 - 32 * COUNT( DISTINCT + ( + - 45 ) ) + + 90 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6042
SELECT NULLIF ( - 20, - 0 + + 10 - 32 * COUNT ( DISTINCT + ( + - 45 ) ) + + 90 ) AS col2
----
-20

query I rowsort
SELECT + 8 + 93
----
101

query I rowsort
SELECT + 20 * - + 53
----
-1060

query I rowsort
SELECT DISTINCT - 59 * + 57 - - 8 + - + 42
----
-3397

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6046
SELECT DISTINCT - 63 * + + COUNT( * ) DIV - 93 + - + COUNT( * ) - - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT - 63 * + + COUNT ( * ) / - 93 + - + COUNT ( * ) - - - COUNT ( * )
----
-2

query I rowsort
SELECT DISTINCT + - ( - 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6048
SELECT - COUNT( * ) AS col0, - 68 * - 52
----
-1
3536

skipif mysql # not compatible
query II rowsort label-6048
SELECT - COUNT ( * ) AS col0, - 68 * - 52
----
-1
3536

query II rowsort
SELECT DISTINCT + - 32 AS col2, + 27 * - + 80 AS col1
----
-32
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT ALL + + MIN( + 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + + MIN ( + 28 ) AS col1
----
28

query II rowsort
SELECT DISTINCT + - 89, + ( - - 31 ) col2
----
-89
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL - 15 * ( - COUNT( * ) ) - - ( COUNT( * ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL - 15 * ( - COUNT ( * ) ) - - ( COUNT ( * ) ) AS col0
----
16

query II rowsort
SELECT - 8, + 61 AS col1
----
-8
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6054
SELECT ALL - + 8 DIV 7 * COALESCE ( - - 27, - 62, + 73 * - ( + 45 ) DIV CASE - 52 WHEN 30 THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE - - 11 END + - 65 + + + 47 + - - SUM( DISTINCT + 7 ) * - 56, + - 0 )
----
-27

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL - + 8 / 7 * COALESCE ( - - 27, - 62, + 73 * - ( + 45 ) / CASE - 52 WHEN 30 THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE - - 11 END + - 65 + + + 47 + - - SUM ( DISTINCT + 7 ) * - 56, + - 0 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT DISTINCT - COUNT( DISTINCT - - 58 ) * + + 17
----
-17

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT - COUNT ( DISTINCT - - 58 ) * + + 17
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6056
SELECT DISTINCT - ( - + CASE 51 WHEN - + CAST( - 46 AS SIGNED ) * + + COUNT( * ) * - COUNT( * ) + 59 * + - 13 + 12 THEN COALESCE ( - - 6, + + 84 * COUNT( * ) ) / + 85 + + ( - 88 ) * + + 24 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT - ( - + CASE 51 WHEN - + CAST ( - 46 AS INTEGER ) * + + COUNT ( * ) * - COUNT ( * ) + 59 * + - 13 + 12 THEN COALESCE ( - - 6, + + 84 * COUNT ( * ) ) / + 85 + + ( - 88 ) * + + 24 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6057
SELECT ALL - - 33 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL - - 33 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6058
SELECT - + 31 DIV 64 * - - 33 AS col1, + ( - + CASE + 89 WHEN - + 59 THEN 7 - - - 84 + + 23 END )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6058
SELECT - + 31 / 64 * - - 33 AS col1, + ( - + CASE + 89 WHEN - + 59 THEN 7 - - - 84 + + 23 END )
----
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6059
SELECT ALL - COUNT( * ) DIV 49 * 9 * + 48 col1
----
0

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL - COUNT ( * ) / 49 * 9 * + 48 col1
----
0

query I rowsort
SELECT + - ( + 69 ) + + 53 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT - - 56 - COUNT( * ) + - + 10
----
45

skipif mysql # not compatible
query I rowsort label-6061
SELECT - - 56 - COUNT ( * ) + - + 10
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6062
SELECT ALL COALESCE ( - 0, + SUM( + 89 ) * - - 20 ) AS col1, 20
----
0
20

skipif mysql # not compatible
query II rowsort label-6062
SELECT ALL COALESCE ( - 0, + SUM ( + 89 ) * - - 20 ) AS col1, 20
----
0
20

query II rowsort
SELECT ALL ( COALESCE ( 76, - 42 ) ) AS col1, 47 * + 25 + + + 96 + - 25
----
76
1246

query I rowsort
SELECT - 45 + - - 55 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL + COUNT( * ) + - 70 + 89 + 65 * - - 53 AS col2
----
3465

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL + COUNT ( * ) + - 70 + 89 + 65 * - - 53 AS col2
----
3465

query I rowsort
SELECT - 27 * + 94 AS col0
----
-2538

query I rowsort
SELECT - 32 * - ( - 84 ) * 45
----
-120960

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL - MAX( + 34 ) + + SUM( - 29 ) + + 41
----
-22

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL - MAX ( + 34 ) + + SUM ( - 29 ) + + 41
----
-22

query I rowsort
SELECT - 96 - 41 * + 32
----
-1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6070
SELECT ALL - COUNT( + 81 ) DIV ( - + 96 ) + + + COALESCE ( + 79, MAX( NULLIF ( + 65, + CAST( - + 4 AS SIGNED ) ) ), + COUNT( * ) ) + 5 col2
----
84

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL - COUNT ( + 81 ) / ( - + 96 ) + + + COALESCE ( + 79, MAX ( NULLIF ( + 65, + CAST ( - + 4 AS INTEGER ) ) ), + COUNT ( * ) ) + 5 col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6071
SELECT ALL + 5 DIV - + 98 + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL + 5 / - + 98 + - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6072
SELECT ALL 61 DIV + - COALESCE ( COUNT( * ), 90 ) - - 23 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL 61 / + - COALESCE ( COUNT ( * ), 90 ) - - 23 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT + ( + ( 26 ) ) * COUNT( * ) * + 79 + - + 85 col2
----
1969

skipif mysql # not compatible
query I rowsort label-6073
SELECT + ( + ( 26 ) ) * COUNT ( * ) * + 79 + - + 85 col2
----
1969

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT + + 4 * - COUNT( 69 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6074
SELECT + + 4 * - COUNT ( 69 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT + COALESCE ( - 69, - 70 * - - 64 + - NULLIF ( ( + SUM( DISTINCT + 80 ) ), 58 ), - + 17 ) - - + 75 + 71 + + 45 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-6075
SELECT + COALESCE ( - 69, - 70 * - - 64 + - NULLIF ( ( + SUM ( DISTINCT + 80 ) ), 58 ), - + 17 ) - - + 75 + 71 + + 45 AS col0
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6076
SELECT + 73 * CAST( NULL AS SIGNED ) + - 13 + - + NULLIF ( - ( + AVG ( DISTINCT ( 98 ) ) ), + 88 + + NULLIF ( + 36, + CASE 86 WHEN - - 68 * - 78 * + + 1 THEN - COUNT( * ) ELSE NULL END / 81 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT + 73 * CAST ( NULL AS INTEGER ) + - 13 + - + NULLIF ( - ( + AVG ( DISTINCT ( 98 ) ) ), + 88 + + NULLIF ( + 36, + CASE 86 WHEN - - 68 * - 78 * + + 1 THEN - COUNT ( * ) ELSE NULL END / 81 ) )
----
NULL

query I rowsort
SELECT + + 96 * - + 81 AS col1
----
-7776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6078
SELECT + - 27 + + - 26 - NULLIF ( - CASE - COUNT( * ) WHEN + 23 THEN + 13 * - 85 + COUNT( * ) ELSE + 72 END, - - COUNT( * ) + 0 + - - COUNT( * ) ) DIV + + 5 + ( - 75 ) - 10 DIV + 1 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-6078
SELECT + - 27 + + - 26 - NULLIF ( - CASE - COUNT ( * ) WHEN + 23 THEN + 13 * - 85 + COUNT ( * ) ELSE + 72 END, - - COUNT ( * ) + 0 + - - COUNT ( * ) ) / + + 5 + ( - 75 ) - 10 / + 1 AS col1
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6079
SELECT + + CAST( - MIN( DISTINCT 53 ) AS SIGNED ) + + 5 + - 54 * - + 25 + - - 44 * - + 33 + + 77 AS col2, + 35 * - - 20
----
-73
700

skipif mysql # not compatible
query II rowsort label-6079
SELECT + + CAST ( - MIN ( DISTINCT 53 ) AS INTEGER ) + + 5 + - 54 * - + 25 + - - 44 * - + 33 + + 77 AS col2, + 35 * - - 20
----
-73
700

query I rowsort
SELECT + 97 * - 68
----
-6596

query I rowsort
SELECT ALL + 97 * + 3 * 32
----
9312

query I rowsort
SELECT - 64 * + 70 AS col1
----
-4480

query I rowsort
SELECT - 38 + - 64
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT 27 + + - 60 DIV + 13 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6084
SELECT 27 + + - 60 / + 13 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT ALL COUNT( * ) + - SUM( DISTINCT - 57 ) * + 62 * + 81
----
286255

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL COUNT ( * ) + - SUM ( DISTINCT - 57 ) * + 62 * + 81
----
286255

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6086
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) + 7 - 28 * 68 - - + 80 + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL ( - CAST ( NULL AS REAL ) ) + 7 - 28 * 68 - - + 80 + + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT DISTINCT + COUNT( * ) + 4 + - MAX( + - 90 ) * + 9 * + 82 col2
----
66425

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT + COUNT ( * ) + 4 + - MAX ( + - 90 ) * + 9 * + 82 col2
----
66425

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT ALL + COALESCE ( COUNT( * ), - 22 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL + COALESCE ( COUNT ( * ), - 22 ) * COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6089
SELECT 91 AS col2, 55 DIV - - 10
----
91
5

skipif mysql # not compatible
query II rowsort label-6089
SELECT 91 AS col2, 55 / - - 10
----
91
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT ALL MIN( - ( + + 86 ) ) + - + 24 AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL MIN ( - ( + + 86 ) ) + - + 24 AS col2
----
-110

query I rowsort
SELECT 49 + 40 AS col2
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6092
SELECT CAST( NULL AS DECIMAL ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-6092
SELECT CAST ( NULL AS REAL ) * 80
----
NULL

query II rowsort
SELECT ALL 78, NULLIF ( + 15, + 51 ) + 19 AS col1
----
78
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6094
SELECT CAST( NULL AS DECIMAL ) + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT CAST ( NULL AS REAL ) + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL 61 * + MIN( ( + + 46 ) ) AS col1
----
2806

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL 61 * + MIN ( ( + + 46 ) ) AS col1
----
2806

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT 48 + - - 23 DIV - + 47 * - + 91 * - 95 DIV - - 47 + 22
----
70

skipif mysql # not compatible
query I rowsort label-6096
SELECT 48 + - - 23 / - + 47 * - + 91 * - 95 / - - 47 + 22
----
70

query I rowsort
SELECT NULLIF ( 73, + 65 ) * 60 + 38
----
4418

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT + 38 DIV - 93 * + - 66 + 39 col1
----
39

skipif mysql # not compatible
query I rowsort label-6098
SELECT + 38 / - 93 * + - 66 + 39 col1
----
39

query I rowsort
SELECT - 36 * 12
----
-432

onlyif mysql # DIV for integer division: 
query I rowsort label-6100
SELECT + 45 DIV - ( 37 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6100
SELECT + 45 / - ( 37 ) AS col0
----
-1

query I rowsort
SELECT + + ( - + 84 ) col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL + + MIN( 37 ) * - 56 + 33 + - 4
----
-2043

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL + + MIN ( 37 ) * - 56 + 33 + - 4
----
-2043

onlyif mysql # DIV for integer division: 
query I rowsort label-6103
SELECT 83 DIV + - 99
----
0

skipif mysql # not compatible
query I rowsort label-6103
SELECT 83 / + - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT DISTINCT + - COUNT( * ) * - 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT + - COUNT ( * ) * - 37 AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6105
SELECT CASE + 25 WHEN 29 / - 17 THEN - + COUNT( * ) END / 92, 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-6105
SELECT CASE + 25 WHEN 29 / - 17 THEN - + COUNT ( * ) END / 92, 76 AS col0
----
NULL
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6106
SELECT - 94 AS col2, 44 - COUNT( * )
----
-94
43

skipif mysql # not compatible
query II rowsort label-6106
SELECT - 94 AS col2, 44 - COUNT ( * )
----
-94
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6107
SELECT DISTINCT + CAST( 76 AS SIGNED ) DIV - 17 AS col2, - 81 - 79
----
-4
-160

skipif mysql # not compatible
query II rowsort label-6107
SELECT DISTINCT + CAST ( 76 AS INTEGER ) / - 17 AS col2, - 81 - 79
----
-4
-160

onlyif mysql # DIV for integer division: 
query II rowsort label-6108
SELECT 24 DIV + + 97 - - 28, 32 * - 82 + - + 91 AS col2
----
28
-2715

skipif mysql # not compatible
query II rowsort label-6108
SELECT 24 / + + 97 - - 28, 32 * - 82 + - + 91 AS col2
----
28
-2715

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT + COUNT( * ) * + 82 * - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-6109
SELECT + COUNT ( * ) * + 82 * - COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT ALL SUM( ALL 50 ) + 85 + + 7
----
142

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL SUM ( ALL 50 ) + 85 + + 7
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6111
SELECT 31 * - COUNT( * ) * 43 - - + 70 - + MAX( + CAST( NULL AS SIGNED ) ) * - - COUNT( * ) * 66 * + + 55 + - - SUM( - 81 ) - - - 3 * 90 + + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT 31 * - COUNT ( * ) * 43 - - + 70 - + MAX ( + CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) * 66 * + + 55 + - - SUM ( - 81 ) - - - 3 * 90 + + + 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6112
SELECT ALL 43, + ( + - ( + 55 ) ) * CAST( NULL AS SIGNED ) AS col0
----
43
NULL

skipif mysql # not compatible
query II rowsort label-6112
SELECT ALL 43, + ( + - ( + 55 ) ) * CAST ( NULL AS INTEGER ) AS col0
----
43
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6113
SELECT 14 * - + 5, - 12 + + COUNT( * ) + + + 84 AS col1
----
-70
73

skipif mysql # not compatible
query II rowsort label-6113
SELECT 14 * - + 5, - 12 + + COUNT ( * ) + + + 84 AS col1
----
-70
73

query II rowsort
SELECT 55 AS col2, 83 AS col0
----
55
83

query II rowsort
SELECT - 99, 66 * + + 77 * + + 38 col0
----
-99
193116

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ALL - COUNT( * ) + 84 - - - 11 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL - COUNT ( * ) + 84 - - - 11 AS col0
----
72

query I rowsort
SELECT 4 * - 81
----
-324

query I rowsort
SELECT 7 + + 59 AS col0
----
66

query I rowsort
SELECT 43 - - 89 AS col1
----
132

query II rowsort
SELECT 49 + - 79 col0, + 92
----
-30
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT - MIN( - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6121
SELECT - MIN ( - 88 ) AS col1
----
88

query II rowsort
SELECT 93, 60 * + 72 AS col1
----
93
4320

query I rowsort
SELECT DISTINCT + 51 + + 55 AS col0
----
106

query II rowsort
SELECT 69, + 68 + + 10 AS col2
----
69
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT COALESCE ( 8, + 64 * + COUNT( * ) * 36 + + - 55 ) + - - 9 + + 94
----
111

skipif mysql # not compatible
query I rowsort label-6125
SELECT COALESCE ( 8, + 64 * + COUNT ( * ) * 36 + + - 55 ) + - - 9 + + 94
----
111

query II rowsort
SELECT ALL 75 AS col2, 32 AS col1
----
75
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6127
SELECT - MIN( DISTINCT - CAST( - - 4 AS SIGNED ) )
----
4

skipif mysql # not compatible
query I rowsort label-6127
SELECT - MIN ( DISTINCT - CAST ( - - 4 AS INTEGER ) )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6128
SELECT 52 + - + ( + ( COUNT( * ) ) ) col0, + 47 DIV 10
----
51
4

skipif mysql # not compatible
query II rowsort label-6128
SELECT 52 + - + ( + ( COUNT ( * ) ) ) col0, + 47 / 10
----
51
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6129
SELECT - COUNT( * ) AS col0, COUNT( ALL + + 2 ) * - NULLIF ( - + 70, - ( + CASE - 11 WHEN - + 85 THEN 98 END ) ) AS col0
----
-1
70

skipif mysql # not compatible
query II rowsort label-6129
SELECT - COUNT ( * ) AS col0, COUNT ( ALL + + 2 ) * - NULLIF ( - + 70, - ( + CASE - 11 WHEN - + 85 THEN 98 END ) ) AS col0
----
-1
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT CAST( - - 54 AS SIGNED ) * - 83 AS col2
----
-4482

skipif mysql # not compatible
query I rowsort label-6130
SELECT CAST ( - - 54 AS INTEGER ) * - 83 AS col2
----
-4482

query I rowsort
SELECT NULLIF ( 50, 5 ) + 49 AS col2
----
99

query I rowsort
SELECT - COALESCE ( - 20, 14 )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6133
SELECT + 94 DIV - 66 - + 62 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6133
SELECT + 94 / - 66 - + 62 AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6134
SELECT DISTINCT ( - + 30 ) * + CAST( - CASE + + 79 WHEN + + 42 THEN + 3 WHEN - - 10 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT ( - + 30 ) * + CAST ( - CASE + + 79 WHEN + + 42 THEN + 3 WHEN - - 10 THEN NULL END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6135
SELECT - 43 - - COALESCE ( - CAST( NULL AS SIGNED ), 52 )
----
9

skipif mysql # not compatible
query I rowsort label-6135
SELECT - 43 - - COALESCE ( - CAST ( NULL AS INTEGER ), 52 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT DISTINCT - - SUM( DISTINCT - - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT - - SUM ( DISTINCT - - 31 )
----
31

query I rowsort
SELECT DISTINCT + 63 * + + 43 + - - 5
----
2714

query I rowsort
SELECT - 70 * ( - 42 )
----
2940

onlyif mysql # aggregate syntax: 
query II rowsort label-6139
SELECT 30 AS col1, - ( + 93 ) * + COUNT( * ) AS col1
----
30
-93

skipif mysql # not compatible
query II rowsort label-6139
SELECT 30 AS col1, - ( + 93 ) * + COUNT ( * ) AS col1
----
30
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6140
SELECT 49 * MAX( DISTINCT - + 59 ) + + - CAST( NULL AS SIGNED ) + - NULLIF ( + + 77, + 12 ) + - + 99 * + 99 / + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6140
SELECT 49 * MAX ( DISTINCT - + 59 ) + + - CAST ( NULL AS INTEGER ) + - NULLIF ( + + 77, + 12 ) + - + 99 * + 99 / + + 11
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6141
SELECT + 39 * - COUNT( * ) * ( 90 ) + - 37 + 65 AS col2, 40
----
-3482
40

skipif mysql # not compatible
query II rowsort label-6141
SELECT + 39 * - COUNT ( * ) * ( 90 ) + - 37 + 65 AS col2, 40
----
-3482
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT - + 69 - - + MAX( + 0 ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-6142
SELECT - + 69 - - + MAX ( + 0 ) col0
----
-69

query II rowsort
SELECT + 83 AS col0, 99
----
83
99

query I rowsort
SELECT - ( - + 43 ) + 51 - + - 92 + - 56
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT ALL + 97 * COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL + 97 * COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT + COUNT( * ) * 1 + + 5 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT + COUNT ( * ) * 1 + + 5 AS col2
----
6

query II rowsort
SELECT - 23 * + + 21 + + COALESCE ( - 15, + 68 ) AS col0, - 7 * + 63 col0
----
-498
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT - COUNT( * ) * + 91 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-6148
SELECT - COUNT ( * ) * + 91 AS col2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6149
SELECT - 16 + - CAST( + 51 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-6149
SELECT - 16 + - CAST ( + 51 AS INTEGER )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT + 92 + - ( - - COUNT( * ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6150
SELECT + 92 + - ( - - COUNT ( * ) ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT - 4 * + 12 * - + COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6151
SELECT - 4 * + 12 * - + COUNT ( * ) AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6152
SELECT DISTINCT - 92 DIV 69 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT - 92 / 69 AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6153
SELECT ALL + CAST( NULL AS DECIMAL ) - + ( 30 ) + - - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL + CAST ( NULL AS REAL ) - + ( 30 ) + - - 11 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6154
SELECT - 56 DIV 8
----
-7

skipif mysql # not compatible
query I rowsort label-6154
SELECT - 56 / 8
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6155
SELECT DISTINCT CASE - + 25 WHEN - + 30 THEN - 42 ELSE 15 END, - COUNT( * ) AS col2
----
15
-1

skipif mysql # not compatible
query II rowsort label-6155
SELECT DISTINCT CASE - + 25 WHEN - + 30 THEN - 42 ELSE 15 END, - COUNT ( * ) AS col2
----
15
-1

query I rowsort
SELECT ALL COALESCE ( - 63, - 93 + - + ( 34 ) )
----
-63

query I rowsort
SELECT ALL 44 * ( - 91 ) * 68 * - - 6 AS col2
----
-1633632

query I rowsort
SELECT ALL 61 * + 82
----
5002

query I rowsort
SELECT - 20 - - 34 + 68
----
82

query I rowsort
SELECT - COALESCE ( + 59, - 57 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT + ( + 19 ) * - + COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6161
SELECT + ( + 19 ) * - + COUNT ( * ) AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6162
SELECT - COUNT( * ) * + + 52 DIV - 14 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6162
SELECT - COUNT ( * ) * + + 52 / - 14 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT + CAST( NULL AS SIGNED ) + + 19 * 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6163
SELECT + CAST ( NULL AS INTEGER ) + + 19 * 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6164
SELECT + COUNT( * ) + + - 75 * - 22 DIV + 11 AS col2
----
151

skipif mysql # not compatible
query I rowsort label-6164
SELECT + COUNT ( * ) + + - 75 * - 22 / + 11 AS col2
----
151

query I rowsort
SELECT ALL + + 83 * - ( + - 65 ) AS col0
----
5395

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT + COUNT( * ) + + 84
----
85

skipif mysql # not compatible
query I rowsort label-6166
SELECT + COUNT ( * ) + + 84
----
85

query I rowsort
SELECT + ( - 99 ) - + - 66
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT + - COUNT( * ) + - 14
----
-15

skipif mysql # not compatible
query I rowsort label-6168
SELECT + - COUNT ( * ) + - 14
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL + COUNT( * ) * - 89
----
-89

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL + COUNT ( * ) * - 89
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT CASE - - 85 WHEN - 77 * 87 THEN + 53 WHEN - 29 THEN NULL ELSE NULL END / + - 90 + + ( - 55 ) - + COUNT( * ) + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT CASE - - 85 WHEN - 77 * 87 THEN + 53 WHEN - 29 THEN NULL ELSE NULL END / + - 90 + + ( - 55 ) - + COUNT ( * ) + + 61
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6171
SELECT - 4 + COUNT( * ) AS col0, + 55
----
-3
55

skipif mysql # not compatible
query II rowsort label-6171
SELECT - 4 + COUNT ( * ) AS col0, + 55
----
-3
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT DISTINCT - + 22 DIV - + 12 + + 81 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT - + 22 / - + 12 + + 81 AS col0
----
82

query I rowsort
SELECT ALL 18 * - 73
----
-1314

onlyif mysql # DIV for integer division: 
query I rowsort label-6174
SELECT + 57 DIV 66 * - 69 * + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT + 57 / 66 * - 69 * + 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT + 75 * ( + + 38 ) + COUNT( * ) * + 40
----
2890

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + 75 * ( + + 38 ) + COUNT ( * ) * + 40
----
2890

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6176
SELECT + 93, + 8 / + 30 - + 94 + - 58 - + 22 / + 91 / - 57 + + - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-6176
SELECT + 93, + 8 / + 30 - + 94 + - 58 - + 22 / + 91 / - 57 + + - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
93
NULL

query I rowsort
SELECT - 81 * + 61 - 20 - 25 + - - ( + ( - - 20 ) ) + - 88 * + 50
----
-9366

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT - COUNT( * ) * + 73 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-6178
SELECT - COUNT ( * ) * + 73 AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6179
SELECT + CAST( - 64 AS SIGNED ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6179
SELECT + CAST ( - 64 AS INTEGER ) AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT NULLIF ( - - ( + + 62 ), + CAST( NULL AS SIGNED ) )
----
62

skipif mysql # not compatible
query I rowsort label-6180
SELECT NULLIF ( - - ( + + 62 ), + CAST ( NULL AS INTEGER ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT ALL + 36 * MIN( + - ( + + 92 ) ) - 99 AS col0
----
-3411

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL + 36 * MIN ( + - ( + + 92 ) ) - 99 AS col0
----
-3411

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6182
SELECT - 80 - 13 + 6 AS col1, 13 + - - COUNT( 84 ) DIV + 7 col1
----
-87
13

skipif mysql # not compatible
query II rowsort label-6182
SELECT - 80 - 13 + 6 AS col1, 13 + - - COUNT ( 84 ) / + 7 col1
----
-87
13

query I rowsort
SELECT - 37 * - 20 - + + 46
----
694

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT ALL - COUNT( * ) * + 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL - COUNT ( * ) * + 1 AS col2
----
-1

query I rowsort
SELECT DISTINCT - 88 * + ( - + 73 ) * - 32 + + + 58 * + - 36 AS col2
----
-207656

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT COUNT( * ) * + 1 + + + 44 + - 77 col0
----
-32

skipif mysql # not compatible
query I rowsort label-6186
SELECT COUNT ( * ) * + 1 + + + 44 + - 77 col0
----
-32

query I rowsort
SELECT - 2 - - 79 col0
----
77

query I rowsort
SELECT - 20 * - 36
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6189
SELECT - CAST( 36 AS SIGNED ) - 29 AS col0, 20
----
-65
20

skipif mysql # not compatible
query II rowsort label-6189
SELECT - CAST ( 36 AS INTEGER ) - 29 AS col0, 20
----
-65
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6190
SELECT ALL - - 60 DIV 13 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL - - 60 / 13 AS col0
----
4

query II rowsort
SELECT DISTINCT 33, 64 AS col2
----
33
64

query I rowsort
SELECT - 16 + - 25 * + 90
----
-2266

query I rowsort
SELECT ALL + COALESCE ( - 46, + 98 * + 6, + 85 * - + 78 + - + 20 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ( + 71 ) * - + NULLIF ( - 70, - 93 * + 93 * + 20 + + - COALESCE ( + 73, 12 * + + 7 ) + - 72 + - COUNT( * ) * + - 9 )
----
4970

skipif mysql # not compatible
query I rowsort label-6194
SELECT ( + 71 ) * - + NULLIF ( - 70, - 93 * + 93 * + 20 + + - COALESCE ( + 73, 12 * + + 7 ) + - 72 + - COUNT ( * ) * + - 9 )
----
4970

query II rowsort
SELECT ALL + 63 + 58 + 15 col1, 10
----
136
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6196
SELECT 85 AS col0, + 19 DIV + 65 * + + COUNT( * )
----
85
0

skipif mysql # not compatible
query II rowsort label-6196
SELECT 85 AS col0, + 19 / + 65 * + + COUNT ( * )
----
85
0

query I rowsort
SELECT ALL - 13 + 52
----
39

query I rowsort
SELECT 37 + NULLIF ( 44, + - 71 * + 15 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT - - SUM( - - 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6199
SELECT - - SUM ( - - 47 ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6200
SELECT DISTINCT + 80 + + CASE 30 WHEN - + CAST( NULL AS SIGNED ) THEN 79 WHEN + 30 + + 33 THEN NULL ELSE 6 END, - 79 col2
----
86
-79

skipif mysql # not compatible
query II rowsort label-6200
SELECT DISTINCT + 80 + + CASE 30 WHEN - + CAST ( NULL AS INTEGER ) THEN 79 WHEN + 30 + + 33 THEN NULL ELSE 6 END, - 79 col2
----
86
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT ALL ( - + 97 ) + COUNT( * ) + + 43 * - 13 * - - 24 - - MIN( + 13 ) AS col1
----
-13499

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL ( - + 97 ) + COUNT ( * ) + + 43 * - 13 * - - 24 - - MIN ( + 13 ) AS col1
----
-13499

query I rowsort
SELECT DISTINCT - ( + - 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT COUNT( * ) * - + 88 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6203
SELECT COUNT ( * ) * - + 88 AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6204
SELECT ALL 5 DIV + 63 * - 96 * - 11 col0
----
0

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL 5 / + 63 * - 96 * - 11 col0
----
0

query II rowsort
SELECT 73 * - ( + 51 ) + - ( 60 ) AS col1, 80 AS col2
----
-3783
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT COUNT( * ) - + COUNT( * ) + - - 6
----
6

skipif mysql # not compatible
query I rowsort label-6206
SELECT COUNT ( * ) - + COUNT ( * ) + - - 6
----
6

query I rowsort
SELECT 14 * 42 AS col1
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT - 14 * - 88 * - COUNT( * ) + + - COUNT( * ) - + CASE - - COUNT( * ) WHEN - 87 / + 50 * NULLIF ( 80, - COUNT( * ) ) THEN + 29 - + SUM( + 98 ) * + + 15 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT - 14 * - 88 * - COUNT ( * ) + + - COUNT ( * ) - + CASE - - COUNT ( * ) WHEN - 87 / + 50 * NULLIF ( 80, - COUNT ( * ) ) THEN + 29 - + SUM ( + 98 ) * + + 15 ELSE NULL END
----
NULL

query I rowsort
SELECT + ( - - 26 ) * + - 0 * ( + + 76 ) + - + 72
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6210
SELECT ALL CAST( - 44 AS SIGNED ) - 19
----
-63

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL CAST ( - 44 AS INTEGER ) - 19
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6211
SELECT COUNT( * ) * - - CAST( + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6211
SELECT COUNT ( * ) * - - CAST ( + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6212
SELECT ALL AVG ( + 9 ) / + CAST( NULL AS SIGNED ) * - + 52 * - 43 * + + 61 / + + CAST( - - 47 AS SIGNED ) * + + COUNT( * ) * + 72 + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL AVG ( + 9 ) / + CAST ( NULL AS INTEGER ) * - + 52 * - 43 * + + 61 / + + CAST ( - - 47 AS INTEGER ) * + + COUNT ( * ) * + 72 + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT DISTINCT COUNT( * ) * - 64
----
-64

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT COUNT ( * ) * - 64
----
-64

query I rowsort
SELECT + 70 * 61 + - 5
----
4265

query II rowsort
SELECT DISTINCT 97 * - 71 AS col1, - 52
----
-6887
-52

query I rowsort
SELECT 68 * 34
----
2312

query I rowsort
SELECT 39 + - 97
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-6218
SELECT 77 + 12, COUNT( * ) AS col0
----
89
1

skipif mysql # not compatible
query II rowsort label-6218
SELECT 77 + 12, COUNT ( * ) AS col0
----
89
1

query I rowsort
SELECT 87 + 15
----
102

query I rowsort
SELECT 58 * - + 50 AS col1
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT 93 * - + COALESCE ( + SUM( - 15 ), - + 46 * + 1 + - 68 + - 6 )
----
1395

skipif mysql # not compatible
query I rowsort label-6221
SELECT 93 * - + COALESCE ( + SUM ( - 15 ), - + 46 * + 1 + - 68 + - 6 )
----
1395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6222
SELECT ALL CAST( + 94 AS SIGNED ) + + 11 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL CAST ( + 94 AS INTEGER ) + + 11 AS col1
----
105

query I rowsort
SELECT DISTINCT - 57 * - NULLIF ( - 50, + 2 )
----
-2850

query I rowsort
SELECT DISTINCT 31 + - 39 AS col1
----
-8

query I rowsort
SELECT DISTINCT 90 + + 90 AS col1
----
180

onlyif mysql # DIV for integer division: 
query II rowsort label-6226
SELECT 26 + - - 76 + + 54 DIV - 7 AS col0, 75 + - 5
----
95
70

skipif mysql # not compatible
query II rowsort label-6226
SELECT 26 + - - 76 + + 54 / - 7 AS col0, 75 + - 5
----
95
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT - MIN( + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-6227
SELECT - MIN ( + 62 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6228
SELECT ALL + CAST( NULL AS SIGNED ) + + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 24
----
NULL

query I rowsort
SELECT DISTINCT + 75 * + 17 AS col1
----
1275

query I rowsort
SELECT 75 - - 61 * - 53 * - + 37 * - 37 AS col2
----
-4425902

onlyif mysql # DIV for integer division: 
query I rowsort label-6231
SELECT 6 DIV - - 69
----
0

skipif mysql # not compatible
query I rowsort label-6231
SELECT 6 / - - 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT + COUNT( * ) + 49 col2
----
50

skipif mysql # not compatible
query I rowsort label-6232
SELECT + COUNT ( * ) + 49 col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT 96 + MIN( DISTINCT - 63 ) + 23 * - COALESCE ( - 33, + 42 * + 10, + - 8 ) AS col1
----
792

skipif mysql # not compatible
query I rowsort label-6233
SELECT 96 + MIN ( DISTINCT - 63 ) + 23 * - COALESCE ( - 33, + 42 * + 10, + - 8 ) AS col1
----
792

query I rowsort
SELECT ALL - COALESCE ( + 4, - 5 + 63 )
----
-4

query I rowsort
SELECT DISTINCT - ( - 11 ) * + 72
----
792

query I rowsort
SELECT ALL 78 - - + 42 AS col1
----
120

query I rowsort
SELECT 54 * - 26 AS col1
----
-1404

query I rowsort
SELECT 23 * 81 col0
----
1863

query I rowsort
SELECT ALL - ( - 18 )
----
18

query I rowsort
SELECT DISTINCT - 23 * + 16
----
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL - NULLIF ( + 81, COUNT( * ) ) * + COUNT( * ) - 48 + - 32 * 33
----
-1185

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - NULLIF ( + 81, COUNT ( * ) ) * + COUNT ( * ) - 48 + - 32 * 33
----
-1185

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT SUM( ALL + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-6242
SELECT SUM ( ALL + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT ( - + MIN( DISTINCT + 46 ) ) * 8 col0
----
-368

skipif mysql # not compatible
query I rowsort label-6243
SELECT ( - + MIN ( DISTINCT + 46 ) ) * 8 col0
----
-368

query I rowsort
SELECT ALL 85 * + 61
----
5185

onlyif mysql # aggregate syntax: 
query II rowsort label-6245
SELECT 56 col0, 79 + - COUNT( * )
----
56
78

skipif mysql # not compatible
query II rowsort label-6245
SELECT 56 col0, 79 + - COUNT ( * )
----
56
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT DISTINCT + 61 + + COUNT( DISTINCT 25 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT + 61 + + COUNT ( DISTINCT 25 ) col1
----
62

query I rowsort
SELECT ALL 79 * - - 3 AS col2
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT ALL COUNT( * ) + - ( + 79 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL COUNT ( * ) + - ( + 79 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT + SUM( DISTINCT 78 ) * 89 - + - 66
----
7008

skipif mysql # not compatible
query I rowsort label-6249
SELECT + SUM ( DISTINCT 78 ) * 89 - + - 66
----
7008

query I rowsort
SELECT ALL 49 * ( - 43 ) AS col0
----
-2107

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT + COUNT( * ) + 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-6251
SELECT + COUNT ( * ) + 13 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT + 49 * NULLIF ( 31 * 58, 99 * + COUNT( * ) + ( 70 ) * 83 ) AS col1
----
88102

skipif mysql # not compatible
query I rowsort label-6252
SELECT + 49 * NULLIF ( 31 * 58, 99 * + COUNT ( * ) + ( 70 ) * 83 ) AS col1
----
88102

query I rowsort
SELECT + ( + 9 ) + - 95 * - NULLIF ( + 64, - 4 ) AS col0
----
6089

query I rowsort
SELECT DISTINCT 78 + NULLIF ( - 50, 81 ) col0
----
28

query I rowsort
SELECT - 89 - 42 * + 73 AS col0
----
-3155

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT - 66 - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-6256
SELECT - 66 - COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6257
SELECT ALL 71 + 78 * - COALESCE ( - 56 + - 76, + COUNT( * ), ( 18 ) * NULLIF ( 38 + + 97 DIV 7, - 87 * 63 ) ) col1
----
10367

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL 71 + 78 * - COALESCE ( - 56 + - 76, + COUNT ( * ), ( 18 ) * NULLIF ( 38 + + 97 / 7, - 87 * 63 ) ) col1
----
10367

query I rowsort
SELECT ALL + NULLIF ( + 10, 78 / 21 - - 32 ) * + NULLIF ( + 5, + 94 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT DISTINCT - 54 - COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - 54 - COUNT ( * ) AS col1
----
-55

query I rowsort
SELECT + 30 + 67
----
97

query I rowsort
SELECT ALL - COALESCE ( 40, 69 * 0, + 71 * 28 + - 41 ) - + 0 AS col0
----
-40

query I rowsort
SELECT - 23 * 36
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ALL NULLIF ( + 95, - 48 ) * COUNT( * ) col2
----
95

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL NULLIF ( + 95, - 48 ) * COUNT ( * ) col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6264
SELECT + ( + 27 ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6264
SELECT + ( + 27 ) + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6265
SELECT - 41 DIV MIN( DISTINCT - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-6265
SELECT - 41 / MIN ( DISTINCT - 31 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6266
SELECT + 11 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6266
SELECT + 11 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 37 - - ( + 99 )
----
62

query I rowsort
SELECT + 87 + 15
----
102

query I rowsort
SELECT - 5 - - 87
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT DISTINCT + MAX( DISTINCT + 26 ) col0
----
26

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT + MAX ( DISTINCT + 26 ) col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6271
SELECT - COUNT( * ) DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-6271
SELECT - COUNT ( * ) / 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL + 46 / CASE NULLIF ( 38, COUNT( * ) * + 8 ) WHEN 31 THEN - 38 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL + 46 / CASE NULLIF ( 38, COUNT ( * ) * + 8 ) WHEN 31 THEN - 38 ELSE NULL END
----
NULL

query I rowsort
SELECT - 19 * - 12 + + 97 AS col2
----
325

query I rowsort
SELECT 47 * 53 + 42 AS col2
----
2533

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6275
SELECT ALL - 74 * - ( - 84 DIV COUNT( * ) )
----
-6216

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL - 74 * - ( - 84 / COUNT ( * ) )
----
-6216

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT - MAX( ALL + 36 ) * 69 AS col0
----
-2484

skipif mysql # not compatible
query I rowsort label-6276
SELECT - MAX ( ALL + 36 ) * 69 AS col0
----
-2484

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT + MIN( + 62 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT + MIN ( + 62 ) col1
----
62

query I rowsort
SELECT - 21 + - 20 col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6279
SELECT 74 DIV + CASE - 63 WHEN 16 - SUM( ALL 8 ) THEN + 31 ELSE - 8 END - + ( 22 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6279
SELECT 74 / + CASE - 63 WHEN 16 - SUM ( ALL 8 ) THEN + 31 ELSE - 8 END - + ( 22 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT - MAX( - 86 ) * 10 AS col0
----
860

skipif mysql # not compatible
query I rowsort label-6280
SELECT - MAX ( - 86 ) * 10 AS col0
----
860

query I rowsort
SELECT - NULLIF ( 69, - 83 * 91 - + 61 ) - 28 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT ALL + 74 * + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL + 74 * + COUNT ( * )
----
74

query I rowsort
SELECT DISTINCT + 57 * - 69 AS col1
----
-3933

query I rowsort
SELECT DISTINCT 30 * 11 + 42
----
372

query I rowsort
SELECT DISTINCT 55 * - 87 + + 56 AS col0
----
-4729

query I rowsort
SELECT ALL + 75 * 25
----
1875

query I rowsort
SELECT - 44 + 72
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT ALL 30 * MAX( 13 * - 92 ) + 60 AS col0
----
-35820

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL 30 * MAX ( 13 * - 92 ) + 60 AS col0
----
-35820

query I rowsort
SELECT NULLIF ( + 10, - 74 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT DISTINCT 67 * - 11 + - MIN( + 62 ) AS col2
----
-799

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT 67 * - 11 + - MIN ( + 62 ) AS col2
----
-799

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT ALL - 95 * - MAX( DISTINCT 85 * 20 ) + 50
----
161550

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL - 95 * - MAX ( DISTINCT 85 * 20 ) + 50
----
161550

query I rowsort
SELECT + CASE - 21 WHEN 66 * - 38 THEN - 22 / 45 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT NULLIF ( 53, COUNT( * ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6293
SELECT NULLIF ( 53, COUNT ( * ) ) AS col2
----
53

query I rowsort
SELECT - + 95 + + 84
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6295
SELECT - + COUNT( * ) DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-6295
SELECT - + COUNT ( * ) / - 34
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6296
SELECT + - 31 + - 77 * CASE + 7 * COUNT( * ) WHEN MIN( 29 ) THEN NULL ELSE - 23 * COALESCE ( + 35 * - 77, + 90 ) + - CASE ( - 78 ) + NULLIF ( - CAST( NULL AS SIGNED ), + 32 / - COUNT( * ) ) * - MIN( DISTINCT 15 * + 55 ) WHEN COUNT( * ) THEN 21 ELSE NULL END * - 75 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT + - 31 + - 77 * CASE + 7 * COUNT ( * ) WHEN MIN ( 29 ) THEN NULL ELSE - 23 * COALESCE ( + 35 * - 77, + 90 ) + - CASE ( - 78 ) + NULLIF ( - CAST ( NULL AS INTEGER ), + 32 / - COUNT ( * ) ) * - MIN ( DISTINCT 15 * + 55 ) WHEN COUNT ( * ) THEN 21 ELSE NULL END * - 75 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6297
SELECT ALL - COUNT( * ) DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL - COUNT ( * ) / 96 AS col1
----
0

query I rowsort
SELECT DISTINCT + 93 * + 75
----
6975

query I rowsort
SELECT DISTINCT 19 * 30 - - 52 * + 12
----
1194

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT ALL - 65 * - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL - 65 * - COUNT ( * )
----
65

query I rowsort
SELECT - COALESCE ( - 90, ( + 12 ) ) * 42 + - 50 AS col0
----
3730

query I rowsort
SELECT + 99 * + 75 col1
----
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT DISTINCT - ( 71 ) * COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT - ( 71 ) * COUNT ( * )
----
-71

query I rowsort
SELECT ALL - 74 * 45
----
-3330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6305
SELECT + + 4 * + ( COUNT( * ) DIV 49 )
----
0

skipif mysql # not compatible
query I rowsort label-6305
SELECT + + 4 * + ( COUNT ( * ) / 49 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT ALL CASE - 17 WHEN - 98 * - COUNT( ALL - COALESCE ( - 13, - CAST( NULL AS SIGNED ) * + 29 ) ) + COUNT( * ) THEN NULL WHEN + 86 + 96 THEN + CAST( + COUNT( * ) AS SIGNED ) + + 16 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL CASE - 17 WHEN - 98 * - COUNT ( ALL - COALESCE ( - 13, - CAST ( NULL AS INTEGER ) * + 29 ) ) + COUNT ( * ) THEN NULL WHEN + 86 + 96 THEN + CAST ( + COUNT ( * ) AS INTEGER ) + + 16 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT - COUNT( DISTINCT 35 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6307
SELECT - COUNT ( DISTINCT 35 ) AS col2
----
-1

query I rowsort
SELECT + - 35 - - 53
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT + - 30 * + ( 78 * COALESCE ( COUNT( * ) * + 14, - COALESCE ( + 44, + COUNT( ALL - NULLIF ( + 59, 14 ) ) ) * COUNT( * ) + + NULLIF ( 53, + 19 * 14 + 60 * 57 ) * + COUNT( * ) ) ) AS col1
----
-32760

skipif mysql # not compatible
query I rowsort label-6309
SELECT + - 30 * + ( 78 * COALESCE ( COUNT ( * ) * + 14, - COALESCE ( + 44, + COUNT ( ALL - NULLIF ( + 59, 14 ) ) ) * COUNT ( * ) + + NULLIF ( 53, + 19 * 14 + 60 * 57 ) * + COUNT ( * ) ) ) AS col1
----
-32760

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT + COUNT( * ) + - 73 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-6310
SELECT + COUNT ( * ) + - 73 AS col1
----
-72

query I rowsort
SELECT ( + ( + 78 ) )
----
78

query I rowsort
SELECT ALL + ( + 50 )
----
50

query I rowsort
SELECT - 57 + - 25 AS col1
----
-82

query I rowsort
SELECT + 1 * + 27 col0
----
27

query I rowsort
SELECT DISTINCT - COALESCE ( + 55, - 83 - + 0, - 34 * + 33, - 39 + - 81 )
----
-55

query I rowsort
SELECT DISTINCT + 60 * CASE - 3 WHEN + 57 + - 2 THEN 59 * NULLIF ( + 38, + 26 ) ELSE + 4 END
----
240

query I rowsort
SELECT DISTINCT NULLIF ( + 3, 59 ) AS col0
----
3

query I rowsort
SELECT + NULLIF ( + 40, 9 ) * + 46 AS col2
----
1840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6319
SELECT ALL CAST( NULL AS DECIMAL ) * + + COUNT( * ) / - COALESCE ( - 89, CAST( - 51 AS SIGNED ), 30 + + 87, + 52 + - 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL CAST ( NULL AS REAL ) * + + COUNT ( * ) / - COALESCE ( - 89, CAST ( - 51 AS INTEGER ), 30 + + 87, + 52 + - 72 )
----
NULL

query I rowsort
SELECT - ( 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT ALL NULLIF ( + + 17, - NULLIF ( + COALESCE ( 22, - 20 ), - 26 ) + COUNT( * ) / + ( ( - 45 ) ) ) + - 19
----
-2

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL NULLIF ( + + 17, - NULLIF ( + COALESCE ( 22, - 20 ), - 26 ) + COUNT ( * ) / + ( ( - 45 ) ) ) + - 19
----
-2

query I rowsort
SELECT DISTINCT 75 * - 10
----
-750

query I rowsort
SELECT + 98 * 3 col2
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6324
SELECT DISTINCT 57 / 98 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT 57 / 98 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT ALL 26 DIV + 96 + 74
----
74

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL 26 / + 96 + 74
----
74

query I rowsort
SELECT - 68 * - - ( 44 )
----
-2992

query I rowsort
SELECT DISTINCT - CASE - 15 WHEN - 10 * 13 THEN 35 END + 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6328
SELECT ALL - COALESCE ( + - COUNT( * ), 96 + - CASE WHEN NOT ( + 87 + - 60 * 30 ) <= 61 * 9 THEN 98 END DIV + 29 )
----
1

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL - COALESCE ( + - COUNT ( * ), 96 + - CASE WHEN NOT ( + 87 + - 60 * 30 ) <= 61 * 9 THEN 98 END / + 29 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6329
SELECT 86 DIV - 75 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6329
SELECT 86 / - 75 AS col2
----
-1

query I rowsort
SELECT ALL - 16 + - - 20
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT 93 * - 84 * COUNT( * ) AS col1
----
-7812

skipif mysql # not compatible
query I rowsort label-6331
SELECT 93 * - 84 * COUNT ( * ) AS col1
----
-7812

query I rowsort
SELECT ALL + 53 + 80 * + 13
----
1093

query I rowsort
SELECT + 82 * + 55 + 64
----
4574

query I rowsort
SELECT 76 + - 40 * + 70
----
-2724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6335
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + 87 AS col0
----
NULL

query I rowsort
SELECT - 16 * - + CASE CASE + 56 WHEN 68 + 77 THEN NULL ELSE 18 - + 73 * + 98 END WHEN 92 + ( + ( + AVG ( - 31 ) ) ) THEN 79 WHEN 21 THEN 52 + + CASE 10 WHEN - 59 THEN - 71 ELSE 98 END ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 56 * - + 55
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT ALL - - 34 - + COUNT( + 37 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL - - 34 - + COUNT ( + 37 ) AS col2
----
33

query I rowsort
SELECT + 25 * + 26 - + 59
----
591

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT DISTINCT + 36 * - MAX( - 26 )
----
936

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT + 36 * - MAX ( - 26 )
----
936

query I rowsort
SELECT - + 98 * 94 + 8 - - 12 col2
----
-9192

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT - MAX( ALL - 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-6342
SELECT - MAX ( ALL - 51 ) col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ALL COUNT( ALL - 82 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL COUNT ( ALL - 82 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT + COUNT( * ) * - + 87 + - COUNT( * ) * 32
----
-119

skipif mysql # not compatible
query I rowsort label-6344
SELECT + COUNT ( * ) * - + 87 + - COUNT ( * ) * 32
----
-119

query I rowsort
SELECT ( + 44 ) * + 27 AS col0
----
1188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6346
SELECT 6 * - COUNT( * ) DIV + 89 col1
----
0

skipif mysql # not compatible
query I rowsort label-6346
SELECT 6 * - COUNT ( * ) / + 89 col1
----
0

query I rowsort
SELECT + 63 + - 71 * 25 AS col2
----
-1712

query I rowsort
SELECT + 32 - - 79 * 53
----
4219

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT DISTINCT - 20 * - MAX( - NULLIF ( + 59, 92 * 82 ) ) AS col1
----
-1180

skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT - 20 * - MAX ( - NULLIF ( + 59, 92 * 82 ) ) AS col1
----
-1180

query I rowsort
SELECT - 46 - + 94 col2
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL - 87 * MIN( + 82 ) * 24 + 53 AS col0
----
-171163

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL - 87 * MIN ( + 82 ) * 24 + 53 AS col0
----
-171163

query I rowsort
SELECT DISTINCT 29 * - 62 * 46
----
-82708

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT DISTINCT - - CASE 30 WHEN - COUNT( * ) + MAX( - 77 ) THEN 24 WHEN 55 THEN + 54 / COUNT( + 96 ) END * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT - - CASE 30 WHEN - COUNT ( * ) + MAX ( - 77 ) THEN 24 WHEN 55 THEN + 54 / COUNT ( + 96 ) END * 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6354
SELECT 37 AS col1, CAST( - - 46 AS SIGNED ) * + 96 + + 66
----
37
4482

skipif mysql # not compatible
query II rowsort label-6354
SELECT 37 AS col1, CAST ( - - 46 AS INTEGER ) * + 96 + + 66
----
37
4482

query I rowsort
SELECT ( - 55 ) * 83 * 79 AS col2
----
-360635

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT COUNT( * ) + 55 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6356
SELECT COUNT ( * ) + 55 AS col2
----
56

query II rowsort
SELECT 81, 92 * + 31 * + 8 AS col1
----
81
22816

query I rowsort
SELECT ( 45 ) + 3 AS col1
----
48

query I rowsort
SELECT 87 * + 69 * - 59
----
-354177

query I rowsort
SELECT 58 + - + 47
----
11

query I rowsort
SELECT ALL 62 + - + 36 * + + 13 AS col0
----
-406

query II rowsort
SELECT ALL - 3 AS col2, 73
----
-3
73

query I rowsort
SELECT DISTINCT 91 + + 2
----
93

query I rowsort
SELECT ALL - 12 * + + 53 AS col1
----
-636

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6365
SELECT ALL 26 + CAST( NULL AS DECIMAL ) + + AVG ( DISTINCT 26 ) - - 82 / 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL 26 + CAST ( NULL AS REAL ) + + AVG ( DISTINCT 26 ) - - 82 / 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6366
SELECT 96 + + - 40 - 14 - 84 DIV + 25 * - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6366
SELECT 96 + + - 40 - 14 - 84 / + 25 * - COUNT ( * ) AS col0
----
45

query I rowsort
SELECT 67 + - 30 AS col1
----
37

query I rowsort
SELECT ALL 20 * + 49 AS col0
----
980

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT + 15 * 3 DIV 19 + ( 37 ) col2
----
39

skipif mysql # not compatible
query I rowsort label-6369
SELECT + 15 * 3 / 19 + ( 37 ) col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6370
SELECT 12 + 46 - ( - 75 ) DIV 75 col1
----
59

skipif mysql # not compatible
query I rowsort label-6370
SELECT 12 + 46 - ( - 75 ) / 75 col1
----
59

query II rowsort
SELECT DISTINCT - 50 AS col1, + 54 - 21
----
-50
33

query I rowsort
SELECT DISTINCT 25 - - 15
----
40

query I rowsort
SELECT ALL - 98 * - + 54 + + + 8 * - 66 col2
----
4764

query II rowsort
SELECT ALL - 75 AS col0, 38 - - 53
----
-75
91

query I rowsort
SELECT + 54 + - 61 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT ALL - MAX( 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL - MAX ( 12 ) AS col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6377
SELECT DISTINCT - - COALESCE ( + - 30, ( COUNT( * ) ) DIV - 69 + + CASE ( 10 ) WHEN - 22 + - 47 THEN NULLIF ( 7, - 46 ) END ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT - - COALESCE ( + - 30, ( COUNT ( * ) ) / - 69 + + CASE ( 10 ) WHEN - 22 + - 47 THEN NULLIF ( 7, - 46 ) END ) AS col0
----
-30

query I rowsort
SELECT ( - 95 ) + + + 25
----
-70

query I rowsort
SELECT ALL - 43 * - 65
----
2795

query I rowsort
SELECT - ( - 23 ) * + 64 AS col0
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT - SUM( DISTINCT 23 ) * MIN( ALL + 1 )
----
-23

skipif mysql # not compatible
query I rowsort label-6381
SELECT - SUM ( DISTINCT 23 ) * MIN ( ALL + 1 )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6382
SELECT - 3 DIV + - SUM( ALL - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-6382
SELECT - 3 / + - SUM ( ALL - 64 )
----
0

query I rowsort
SELECT ALL - - 73 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT 75 + + SUM( ALL 87 ) + COUNT( * ) * - COUNT( * ) * + 73
----
89

skipif mysql # not compatible
query I rowsort label-6384
SELECT 75 + + SUM ( ALL 87 ) + COUNT ( * ) * - COUNT ( * ) * + 73
----
89

query I rowsort
SELECT 34 + 25
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6386
SELECT + 56 * CASE CASE 47 WHEN MAX( CAST( NULL AS SIGNED ) ) THEN 31 WHEN + 29 * + CAST( + 13 * 52 AS DECIMAL ) THEN NULL ELSE 4 END WHEN - 41 * - 2 THEN - 63 WHEN - 7 / - 56 THEN NULL ELSE NULL END + 63 * 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT + 56 * CASE CASE 47 WHEN MAX ( CAST ( NULL AS INTEGER ) ) THEN 31 WHEN + 29 * + CAST ( + 13 * 52 AS REAL ) THEN NULL ELSE 4 END WHEN - 41 * - 2 THEN - 63 WHEN - 7 / - 56 THEN NULL ELSE NULL END + 63 * 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT - + SUM( - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-6387
SELECT - + SUM ( - 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT ALL - COUNT( * ) * SUM( - 37 ) + - 96
----
-59

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL - COUNT ( * ) * SUM ( - 37 ) + - 96
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT DISTINCT + MIN( - 71 ) + COUNT( * ) + + 82 * + 66 AS col0
----
5342

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT + MIN ( - 71 ) + COUNT ( * ) + + 82 * + 66 AS col0
----
5342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6390
SELECT - CAST( NULL AS SIGNED ) + - - 20 + - - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6390
SELECT - CAST ( NULL AS INTEGER ) + - - 20 + - - 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT ALL - MAX( + 81 ) + + - 57
----
-138

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL - MAX ( + 81 ) + + - 57
----
-138

query I rowsort
SELECT 24 * + - 83 AS col0
----
-1992

query I rowsort
SELECT 68 + + - 44
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6394
SELECT CASE + 71 WHEN 2 THEN NULL WHEN - + 76 THEN - 80 + NULLIF ( 6, CAST( - 68 AS SIGNED ) + 90 ) ELSE NULL END + - COUNT( * ) / 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6394
SELECT CASE + 71 WHEN 2 THEN NULL WHEN - + 76 THEN - 80 + NULLIF ( 6, CAST ( - 68 AS INTEGER ) + 90 ) ELSE NULL END + - COUNT ( * ) / 88 AS col0
----
NULL

query I rowsort
SELECT 81 * + 72
----
5832

query I rowsort
SELECT DISTINCT CASE + - 87 WHEN - 48 THEN NULL ELSE 42 * - 37 END AS col2
----
-1554

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL - 15 + - 84 * - 76 * SUM( DISTINCT 23 )
----
146817

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL - 15 + - 84 * - 76 * SUM ( DISTINCT 23 )
----
146817

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT 58 * + 19 * + - MAX( DISTINCT + 4 )
----
-4408

skipif mysql # not compatible
query I rowsort label-6398
SELECT 58 * + 19 * + - MAX ( DISTINCT + 4 )
----
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT ALL COUNT( DISTINCT 48 )
----
1

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL COUNT ( DISTINCT 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT 21 + + CASE ( CASE - 67 WHEN - MAX( ALL 28 ) * - COUNT( * ) THEN 40 * 66 WHEN 73 THEN NULL END ) WHEN + COUNT( * ) THEN + 92 ELSE NULL END + 33 * - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT 21 + + CASE ( CASE - 67 WHEN - MAX ( ALL 28 ) * - COUNT ( * ) THEN 40 * 66 WHEN 73 THEN NULL END ) WHEN + COUNT ( * ) THEN + 92 ELSE NULL END + 33 * - 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT - COUNT( * ) * + + 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-6401
SELECT - COUNT ( * ) * + + 99 AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT ALL + 25 DIV + 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL + 25 / + 29 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6403
SELECT + COUNT( * ) DIV + 51 AS col1, - 43 * + ( - 71 ) + 77
----
0
3130

skipif mysql # not compatible
query II rowsort label-6403
SELECT + COUNT ( * ) / + 51 AS col1, - 43 * + ( - 71 ) + 77
----
0
3130

query II rowsort
SELECT ALL + 16 + + 83 col1, + 12 AS col1
----
99
12

query I rowsort
SELECT ALL - 53 + 8 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT - 32 * + COUNT( * ) * 65 AS col2
----
-2080

skipif mysql # not compatible
query I rowsort label-6406
SELECT - 32 * + COUNT ( * ) * 65 AS col2
----
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT - SUM( DISTINCT 38 ) * - + 13
----
494

skipif mysql # not compatible
query I rowsort label-6407
SELECT - SUM ( DISTINCT 38 ) * - + 13
----
494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6408
SELECT + ( + CASE - - 3 WHEN - MAX( DISTINCT 34 ) + 28 THEN + 37 * + 70 END ) * CASE 60 WHEN SUM( 45 ) + ( - 24 ) THEN + 32 - - 92 * CAST( + 40 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT + ( + CASE - - 3 WHEN - MAX ( DISTINCT 34 ) + 28 THEN + 37 * + 70 END ) * CASE 60 WHEN SUM ( 45 ) + ( - 24 ) THEN + 32 - - 92 * CAST ( + 40 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6409
SELECT + 14 DIV CASE + + 85 WHEN + COALESCE ( COUNT( * ), 60 * - 95 + - CASE 79 + - COUNT( * ) * - 46 WHEN CAST( 69 AS SIGNED ) * MIN( - 81 + 5 ) THEN NULL ELSE + 65 * - 28 + + 0 END DIV - COUNT( * ) ) * + COUNT( * ) THEN NULL WHEN 5 * 33 THEN NULL ELSE 4 END * + 28
----
84

skipif mysql # not compatible
query I rowsort label-6409
SELECT + 14 / CASE + + 85 WHEN + COALESCE ( COUNT ( * ), 60 * - 95 + - CASE 79 + - COUNT ( * ) * - 46 WHEN CAST ( 69 AS INTEGER ) * MIN ( - 81 + 5 ) THEN NULL ELSE + 65 * - 28 + + 0 END / - COUNT ( * ) ) * + COUNT ( * ) THEN NULL WHEN 5 * 33 THEN NULL ELSE 4 END * + 28
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT + NULLIF ( - 4, - 81 * + 51 * 82 + + COUNT( * ) * + COUNT( * ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6410
SELECT + NULLIF ( - 4, - 81 * + 51 * 82 + + COUNT ( * ) * + COUNT ( * ) ) AS col2
----
-4

query I rowsort
SELECT + 2 * + 99 AS col1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT + COUNT( ALL + 50 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6412
SELECT + COUNT ( ALL + 50 ) AS col0
----
1

query I rowsort
SELECT + 37 * + + 76
----
2812

query I rowsort
SELECT DISTINCT - 3 * + 29 - - + 42 AS col2
----
-45

query II rowsort
SELECT ALL 77 * 22, + 47 AS col2
----
1694
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT ALL 35 * 8 * 74 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL 35 * 8 * 74 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT 97 * + - 32 + + COUNT( * ) AS col1
----
-3103

skipif mysql # not compatible
query I rowsort label-6417
SELECT 97 * + - 32 + + COUNT ( * ) AS col1
----
-3103

onlyif mysql # aggregate syntax: 
query II rowsort label-6418
SELECT + 74 * - 91 AS col1, COUNT( * )
----
-6734
1

skipif mysql # not compatible
query II rowsort label-6418
SELECT + 74 * - 91 AS col1, COUNT ( * )
----
-6734
1

query I rowsort
SELECT ALL - 86 * - 63 * + 82 col0
----
444276

query I rowsort
SELECT - 66 * + 37 + + 11 + + 27
----
-2404

query I rowsort
SELECT + 31 + + + 95 * + + 93 * + 19
----
167896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6422
SELECT + + COUNT( * ) DIV + MIN( 76 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6422
SELECT + + COUNT ( * ) / + MIN ( 76 ) col1
----
0

query I rowsort
SELECT DISTINCT - - 99 * - 65 + + 81 AS col0
----
-6354

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT - + ( + MIN( - 14 ) ) * 52 + - 11 - SUM( ALL - ( 8 ) )
----
725

skipif mysql # not compatible
query I rowsort label-6424
SELECT - + ( + MIN ( - 14 ) ) * 52 + - 11 - SUM ( ALL - ( 8 ) )
----
725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6425
SELECT ALL + + 62 DIV - 87 AS col1, CASE + 74 WHEN 0 THEN COALESCE ( COUNT( * ), 22, - CAST( - 55 AS SIGNED ) ) + + 70 END * 75 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6425
SELECT ALL + + 62 / - 87 AS col1, CASE + 74 WHEN 0 THEN COALESCE ( COUNT ( * ), 22, - CAST ( - 55 AS INTEGER ) ) + + 70 END * 75 AS col1
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6426
SELECT + 76 DIV + 72 - + 93
----
-92

skipif mysql # not compatible
query I rowsort label-6426
SELECT + 76 / + 72 - + 93
----
-92

query I rowsort
SELECT - 90 * + + 23 - - 99
----
-1971

query I rowsort
SELECT + NULLIF ( + 68, + - 92 ) * 86 * 35
----
204680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6429
SELECT ALL - COUNT( * ) DIV - - 29 + - - 8 DIV - + 2 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL - COUNT ( * ) / - - 29 + - - 8 / - + 2 AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6430
SELECT + - COUNT( * ) DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-6430
SELECT + - COUNT ( * ) / + 52
----
0

query I rowsort
SELECT 46 * - 79 * + 22 * + 38 * 82 + - 87
----
-249118055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6432
SELECT + COALESCE ( + - 64, - + CASE 8 WHEN CAST( 41 AS SIGNED ) * COUNT( * ) THEN + 87 * - 33 WHEN - 23 THEN - 80 END, 34 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6432
SELECT + COALESCE ( + - 64, - + CASE 8 WHEN CAST ( 41 AS INTEGER ) * COUNT ( * ) THEN + 87 * - 33 WHEN - 23 THEN - 80 END, 34 ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL + COUNT( - - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL + COUNT ( - - 46 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT - - COALESCE ( NULLIF ( 65, + 62 ), - 40, COUNT( * ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6434
SELECT - - COALESCE ( NULLIF ( 65, + 62 ), - 40, COUNT ( * ) ) AS col2
----
65

query I rowsort
SELECT - + 24 * - NULLIF ( 68, + 25 ) + + 61 AS col2
----
1693

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT - ( + 67 ) - - ( - + 95 ) + COUNT( * ) AS col1
----
-161

skipif mysql # not compatible
query I rowsort label-6436
SELECT - ( + 67 ) - - ( - + 95 ) + COUNT ( * ) AS col1
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT ALL - 29 + - COUNT( * ) * + + COUNT( * ) * + 6 * - 46 * 37
----
10183

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - 29 + - COUNT ( * ) * + + COUNT ( * ) * + 6 * - 46 * 37
----
10183

query I rowsort
SELECT DISTINCT 16 + + + 80 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL ( MIN( 34 ) )
----
34

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL ( MIN ( 34 ) )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6440
SELECT ALL + 84 - + - 91 + + + 50 DIV + 1 + + - COUNT( * ) - + 12 DIV - 40
----
224

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL + 84 - + - 91 + + + 50 / + 1 + + - COUNT ( * ) - + 12 / - 40
----
224

query I rowsort
SELECT ALL + 30 * CASE - 0 WHEN - 50 THEN NULL WHEN + 54 * - 74 THEN - ( ( + 30 ) ) ELSE 0 + 73 END
----
2190

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT + COUNT( * ) + - - 46 + + + 95 * 12
----
1187

skipif mysql # not compatible
query I rowsort label-6442
SELECT + COUNT ( * ) + - - 46 + + + 95 * 12
----
1187

query I rowsort
SELECT - 9 + + 64 AS col2
----
55

query I rowsort
SELECT - 73 * - 40
----
2920

query I rowsort
SELECT ALL ( - 16 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL + CASE - 87 WHEN COUNT( * ) THEN NULL WHEN - 44 THEN 47 ELSE 3 END - NULLIF ( 64, + 75 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL + CASE - 87 WHEN COUNT ( * ) THEN NULL WHEN - 44 THEN 47 ELSE 3 END - NULLIF ( 64, + 75 ) AS col1
----
-61

query I rowsort
SELECT - NULLIF ( + 48, - - 49 ) * + - 93
----
4464

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6448
SELECT - 79 + + ( 19 ) AS col0, AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-6448
SELECT - 79 + + ( 19 ) AS col0, AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
-60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL NULLIF ( + MAX( ALL + ( + 34 ) ), + 42 * + 74 )
----
34

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL NULLIF ( + MAX ( ALL + ( + 34 ) ), + 42 * + 74 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6450
SELECT ALL + 94 DIV - - NULLIF ( - 22, + 68 * 44 + - 81 + COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL + 94 / - - NULLIF ( - 22, + 68 * 44 + - 81 + COUNT ( * ) )
----
-4

query I rowsort
SELECT DISTINCT ( 91 ) AS col2
----
91

query I rowsort
SELECT ALL 25 * - 21
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT 58 * MIN( ALL + - 54 ) + - 64
----
-3196

skipif mysql # not compatible
query I rowsort label-6453
SELECT 58 * MIN ( ALL + - 54 ) + - 64
----
-3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6454
SELECT - 31 DIV + ( + + 66 ) - 50 DIV + + 74 + CASE + 12 WHEN COALESCE ( + AVG ( 20 ), + 68 DIV 73 ) THEN NULL ELSE - COUNT( * ) END * ( 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-6454
SELECT - 31 / + ( + + 66 ) - 50 / + + 74 + CASE + 12 WHEN COALESCE ( + AVG ( 20 ), + 68 / 73 ) THEN NULL ELSE - COUNT ( * ) END * ( 40 )
----
-40

query I rowsort
SELECT DISTINCT - - 60 * 62 * 91
----
338520

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT ALL + - 97 * - COUNT( * ) col2
----
97

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL + - 97 * - COUNT ( * ) col2
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6457
SELECT ALL - 57 * + 75 * - 46 + - 94 DIV - 1 - - 50 col2
----
196794

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL - 57 * + 75 * - 46 + - 94 / - 1 - - 50 col2
----
196794

query I rowsort
SELECT + - 46 + + 47 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - 11 * + COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6459
SELECT - 11 * + COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT + + ( - COUNT( * ) ) + - 52 + - + 87 * 18 + + ( + 58 ) AS col1
----
-1561

skipif mysql # not compatible
query I rowsort label-6460
SELECT + + ( - COUNT ( * ) ) + - 52 + - + 87 * 18 + + ( + 58 ) AS col1
----
-1561

query II rowsort
SELECT + 22, 6 AS col2
----
22
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6462
SELECT ALL + + 55 DIV - COUNT( * ) - + COUNT( * ) + + MAX( CAST( 29 AS SIGNED ) ) + 20 * 85 DIV 29 + 86 DIV + 64
----
32

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL + + 55 / - COUNT ( * ) - + COUNT ( * ) + + MAX ( CAST ( 29 AS INTEGER ) ) + 20 * 85 / 29 + 86 / + 64
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6463
SELECT ALL - 27 DIV - + 90 * COALESCE ( COUNT( * ), - ( NULLIF ( 53, 18 ) ), + 11 ) + 64
----
64

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL - 27 / - + 90 * COALESCE ( COUNT ( * ), - ( NULLIF ( 53, 18 ) ), + 11 ) + 64
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6464
SELECT DISTINCT + ( + - 69 ) * + NULLIF ( - - 54, + ( COALESCE ( 55, CAST( NULL AS SIGNED ) * 2 ) ) ) * - COUNT( * ) + - 54 * 38 AS col0
----
1674

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT + ( + - 69 ) * + NULLIF ( - - 54, + ( COALESCE ( 55, CAST ( NULL AS INTEGER ) * 2 ) ) ) * - COUNT ( * ) + - 54 * 38 AS col0
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT MIN( DISTINCT 73 )
----
73

skipif mysql # not compatible
query I rowsort label-6465
SELECT MIN ( DISTINCT 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ALL - 48 * 44 * + 50 + + COUNT( * ) AS col2
----
-105599

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - 48 * 44 * + 50 + + COUNT ( * ) AS col2
----
-105599

query I rowsort
SELECT DISTINCT 53 * + - NULLIF ( - 51, + 53 )
----
2703

query I rowsort
SELECT + + 75 * + - 70
----
-5250

query I rowsort
SELECT + + 70 * - ( + 42 ) AS col0
----
-2940

onlyif mysql # aggregate syntax: 
query II rowsort label-6470
SELECT + - 53 AS col2, COUNT( * )
----
-53
1

skipif mysql # not compatible
query II rowsort label-6470
SELECT + - 53 AS col2, COUNT ( * )
----
-53
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT ALL 46 + - - 74 DIV - - 2 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL 46 + - - 74 / - - 2 AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6472
SELECT ALL CAST( 58 AS SIGNED ) * + - 95 * - 48
----
264480

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL CAST ( 58 AS INTEGER ) * + - 95 * - 48
----
264480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6473
SELECT DISTINCT 75 - + 31 + CASE 66 WHEN - CASE CAST( NULL AS SIGNED ) WHEN + 51 + - 93 THEN 78 ELSE + COUNT( * ) END + - 59 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT DISTINCT 75 - + 31 + CASE 66 WHEN - CASE CAST ( NULL AS INTEGER ) WHEN + 51 + - 93 THEN 78 ELSE + COUNT ( * ) END + - 59 THEN + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL 10 - + - 75 * - 44
----
-3290

onlyif mysql # DIV for integer division: 
query I rowsort label-6475
SELECT DISTINCT 62 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT 62 / - 84 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT 6 DIV + + ( + 14 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6476
SELECT 6 / + + ( + 14 ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT 12 + 20 DIV - 76
----
12

skipif mysql # not compatible
query I rowsort label-6477
SELECT 12 + 20 / - 76
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT ALL + COUNT( + - 92 ) * + 62 - + ( + - COALESCE ( - 94, + 49, 9 * - 94 + + COUNT( * ) * + 34 ) ) + 9 * + 47 AS col0
----
391

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL + COUNT ( + - 92 ) * + 62 - + ( + - COALESCE ( - 94, + 49, 9 * - 94 + + COUNT ( * ) * + 34 ) ) + 9 * + 47 AS col0
----
391

query II rowsort
SELECT DISTINCT - 35 - 91 * + 10 * - 6 AS col1, 43 AS col0
----
5425
43

query II rowsort
SELECT - 16 AS col0, 14 + + 25 AS col2
----
-16
39

query I rowsort
SELECT DISTINCT 2 * + 76 * - - COALESCE ( + 58, - 40 ) AS col0
----
8816

query II rowsort
SELECT ALL 20, 87 + NULLIF ( + 77, + - 8 + 89 * - 80 ) AS col2
----
20
164

query II rowsort
SELECT 12 AS col0, - 48
----
12
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT ALL COUNT( * ) * + - 62 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL COUNT ( * ) * + - 62 AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6485
SELECT DISTINCT + AVG ( - + 32 ) * - + COUNT( - 94 ) * - + 35 * - CASE ( 26 ) WHEN 73 * CAST( NULL AS SIGNED ) + 56 * AVG ( 85 ) THEN + 58 WHEN MAX( DISTINCT + 63 ) * 45 + 91 * 77 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT + AVG ( - + 32 ) * - + COUNT ( - 94 ) * - + 35 * - CASE ( 26 ) WHEN 73 * CAST ( NULL AS INTEGER ) + 56 * AVG ( 85 ) THEN + 58 WHEN MAX ( DISTINCT + 63 ) * 45 + 91 * 77 THEN NULL END
----
NULL

query II rowsort
SELECT DISTINCT 32 AS col0, 6 col0
----
32
6

query I rowsort
SELECT ALL + - 95 + + 81
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6488
SELECT CAST( 24 AS SIGNED ) * + - ( + + 44 )
----
-1056

skipif mysql # not compatible
query I rowsort label-6488
SELECT CAST ( 24 AS INTEGER ) * + - ( + + 44 )
----
-1056

query II rowsort
SELECT + 94 AS col2, ( - - 18 )
----
94
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6490
SELECT ALL - - COALESCE ( SUM( + 92 ), 56 DIV + - 73 * + ( + 96 ) )
----
92

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL - - COALESCE ( SUM ( + 92 ), 56 / + - 73 * + ( + 96 ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT COALESCE ( - + 1, - - 34 + ( - COUNT( * ) ) + + 99 * - 6 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6491
SELECT COALESCE ( - + 1, - - 34 + ( - COUNT ( * ) ) + + 99 * - 6 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6492
SELECT ALL + + 3 + + + 24 DIV 27 * - - ( 33 ) - - 73 + 96 * + 94
----
9100

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL + + 3 + + + 24 / 27 * - - ( 33 ) - - 73 + 96 * + 94
----
9100

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT - - 66 * - 8 - 5 - + - COUNT( * ) * + - 31 AS col1
----
-564

skipif mysql # not compatible
query I rowsort label-6493
SELECT - - 66 * - 8 - 5 - + - COUNT ( * ) * + - 31 AS col1
----
-564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6494
SELECT DISTINCT - - 53 + - 95 + + CAST( - + 75 AS SIGNED ) + + 90
----
-27

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT - - 53 + - 95 + + CAST ( - + 75 AS INTEGER ) + + 90
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6495
SELECT ALL - + NULLIF ( + COALESCE ( - - 56, + + 60 + + 75 + - 12 ), + CAST( - COUNT( * ) AS SIGNED ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL - + NULLIF ( + COALESCE ( - - 56, + + 60 + + 75 + - 12 ), + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
-56

query I rowsort
SELECT ALL - 60 + + 78 AS col0
----
18

query I rowsort
SELECT DISTINCT - - 78 * - 10
----
-780

query I rowsort
SELECT - - 30 * 23 + - + 94 AS col2
----
596

query I rowsort
SELECT ALL - 10 + - + 44 col0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT 4 DIV 3 + - 60 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-6500
SELECT 4 / 3 + - 60 AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6501
SELECT + CAST( NULL AS SIGNED ) * COALESCE ( - - 42, + + CAST( NULL AS SIGNED ) ) - - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6501
SELECT + CAST ( NULL AS INTEGER ) * COALESCE ( - - 42, + + CAST ( NULL AS INTEGER ) ) - - 60
----
NULL

query II rowsort
SELECT + + 76, + 18 AS col0
----
76
18

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6503
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0, 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-6503
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0, 5
----
NULL
5

query II rowsort
SELECT + 8 AS col2, 84 * 99
----
8
8316

query I rowsort
SELECT ALL - 66 - - 6 * + 76 * - 2
----
-978

query I rowsort
SELECT 57 - 25
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT COUNT( DISTINCT 76 ) + MIN( 45 )
----
46

skipif mysql # not compatible
query I rowsort label-6507
SELECT COUNT ( DISTINCT 76 ) + MIN ( 45 )
----
46

query I rowsort
SELECT ( + 62 ) * 41 AS col2
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT ALL COUNT( * ) * - + COALESCE ( 3, + SUM( DISTINCT - + NULLIF ( + + ( - NULLIF ( 81, - 98 * - 83 ) ), 8 ) ) ) * + 71
----
-213

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL COUNT ( * ) * - + COALESCE ( 3, + SUM ( DISTINCT - + NULLIF ( + + ( - NULLIF ( 81, - 98 * - 83 ) ), 8 ) ) ) * + 71
----
-213

query II rowsort
SELECT 15 + - 2 AS col2, + 10 AS col0
----
13
10

query I rowsort
SELECT ALL 56 * - + 72 * - ( + - 84 ) AS col0
----
-338688

query II rowsort
SELECT 86 * - 70, 59 col0
----
-6020
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT ALL - 94 * COUNT( * ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL - 94 * COUNT ( * ) col1
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-6514
SELECT DISTINCT MAX( + 72 ), + COUNT( * ) AS col0
----
72
1

skipif mysql # not compatible
query II rowsort label-6514
SELECT DISTINCT MAX ( + 72 ), + COUNT ( * ) AS col0
----
72
1

query I rowsort
SELECT DISTINCT 3 * - - ( + 39 ) * - + 64 + + 29
----
-7459

onlyif mysql # aggregate syntax: 
query II rowsort label-6516
SELECT 5 + + COUNT( * ) AS col2, - COUNT( * )
----
6
-1

skipif mysql # not compatible
query II rowsort label-6516
SELECT 5 + + COUNT ( * ) AS col2, - COUNT ( * )
----
6
-1

query I rowsort
SELECT 11 * 27
----
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6518
SELECT ALL - COUNT( * ) DIV 81 col1, + 72
----
0
72

skipif mysql # not compatible
query II rowsort label-6518
SELECT ALL - COUNT ( * ) / 81 col1, + 72
----
0
72

onlyif mysql # aggregate syntax: 
query II rowsort label-6519
SELECT - MAX( + 29 ) AS col0, CASE + 58 WHEN - ( + + 81 ) * - 9 + - 3 * + 62 + 85 * MIN( - ( 32 ) * 48 - 68 * ( + 75 ) ) THEN + 13 WHEN ( - SUM( DISTINCT 20 ) ) THEN NULL ELSE - 52 * + ( + CASE SUM( + 86 ) WHEN - 81 THEN + 0 ELSE 10 * - 17 END ) + 50 END - 99
----
-29
8791

skipif mysql # not compatible
query II rowsort label-6519
SELECT - MAX ( + 29 ) AS col0, CASE + 58 WHEN - ( + + 81 ) * - 9 + - 3 * + 62 + 85 * MIN ( - ( 32 ) * 48 - 68 * ( + 75 ) ) THEN + 13 WHEN ( - SUM ( DISTINCT 20 ) ) THEN NULL ELSE - 52 * + ( + CASE SUM ( + 86 ) WHEN - 81 THEN + 0 ELSE 10 * - 17 END ) + 50 END - 99
----
-29
8791

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6520
SELECT ALL COUNT( * ) + + 90 DIV 89 + - 56 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL COUNT ( * ) + + 90 / 89 + - 56 AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT CAST( NULL AS SIGNED ) - NULLIF ( + 44, 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT CAST ( NULL AS INTEGER ) - NULLIF ( + 44, 22 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6522
SELECT 31 DIV + 42 col0
----
0

skipif mysql # not compatible
query I rowsort label-6522
SELECT 31 / + 42 col0
----
0

query I rowsort
SELECT ALL 90 + - 87 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT 1 + CASE + 58 WHEN - COUNT( * ) - - 43 + - COUNT( * ) THEN NULL WHEN 39 / 50 THEN + 36 - 99 END / 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6524
SELECT 1 + CASE + 58 WHEN - COUNT ( * ) - - 43 + - COUNT ( * ) THEN NULL WHEN 39 / 50 THEN + 36 - 99 END / 7
----
NULL

query I rowsort
SELECT 37 - 56 col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6526
SELECT ALL 7 / - CAST( NULL AS SIGNED ) AS col1, + CAST( NULL AS SIGNED ) * + - 30 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6526
SELECT ALL 7 / - CAST ( NULL AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) * + - 30 AS col1
----
NULL
NULL

query I rowsort
SELECT 65 + + 72
----
137

query I rowsort
SELECT ALL 28 * + - ( - - 24 )
----
-672

onlyif mysql # DIV for integer division: 
query I rowsort label-6529
SELECT DISTINCT + 8 + - 63 + + 6 DIV + 84
----
-55

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT + 8 + - 63 + + 6 / + 84
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6530
SELECT DISTINCT - 30 * + CAST( NULL AS SIGNED ) AS col1, - 64 - COALESCE ( - 30, 88 + - + 69 + 9 ) * 78
----
NULL
2276

skipif mysql # not compatible
query II rowsort label-6530
SELECT DISTINCT - 30 * + CAST ( NULL AS INTEGER ) AS col1, - 64 - COALESCE ( - 30, 88 + - + 69 + 9 ) * 78
----
NULL
2276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6531
SELECT COUNT( * ) / + CAST( - 16 AS SIGNED ) * COUNT( 63 ) + + + CASE - - COALESCE ( SUM( 27 ), 70 * - CAST( NULL AS SIGNED ) ) WHEN CASE WHEN NOT 77 NOT BETWEEN - 12 AND - 53 / + 13 THEN NULL WHEN NOT ( COUNT( * ) ) <= 4 THEN NULL ELSE 24 END * - 21 THEN 78 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT COUNT ( * ) / + CAST ( - 16 AS INTEGER ) * COUNT ( 63 ) + + + CASE - - COALESCE ( SUM ( 27 ), 70 * - CAST ( NULL AS INTEGER ) ) WHEN CASE WHEN NOT 77 NOT BETWEEN - 12 AND - 53 / + 13 THEN NULL WHEN NOT ( COUNT ( * ) ) <= 4 THEN NULL ELSE 24 END * - 21 THEN 78 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6532
SELECT ALL - 33 * + - 12 * - 54 + + 26 + - CAST( - 55 AS SIGNED )
----
-21303

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL - 33 * + - 12 * - 54 + + 26 + - CAST ( - 55 AS INTEGER )
----
-21303

query I rowsort
SELECT - 56 * + 70 AS col0
----
-3920

query I rowsort
SELECT ALL - - ( + + 89 ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6535
SELECT DISTINCT - 90 * + 77 + + 32 + - + 11 + + 93 + + + 62 / - CASE - 87 WHEN 48 THEN NULL ELSE - 83 END + + 77 / CASE + CASE - CASE + 41 WHEN CASE - 2 WHEN 86 * COALESCE ( - 88 * 90, 39 ) + + NULLIF ( 53 + + MAX( ALL CAST( NULL AS DECIMAL ) ), + CAST( - 64 AS DECIMAL ) * 14 + 88 * ( - 44 ) ) THEN NULL WHEN - 24 THEN 7 END / 48 THEN 8 END WHEN - 31 THEN - MIN( 68 ) * 59 ELSE NULL END WHEN 61 * COUNT( * ) THEN + COALESCE ( + 88, COUNT( * ) / - COUNT( * ) ) ELSE NULL END - - 68 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT - 90 * + 77 + + 32 + - + 11 + + 93 + + + 62 / - CASE - 87 WHEN 48 THEN NULL ELSE - 83 END + + 77 / CASE + CASE - CASE + 41 WHEN CASE - 2 WHEN 86 * COALESCE ( - 88 * 90, 39 ) + + NULLIF ( 53 + + MAX ( ALL CAST ( NULL AS REAL ) ), + CAST ( - 64 AS REAL ) * 14 + 88 * ( - 44 ) ) THEN NULL WHEN - 24 THEN 7 END / 48 THEN 8 END WHEN - 31 THEN - MIN ( 68 ) * 59 ELSE NULL END WHEN 61 * COUNT ( * ) THEN + COALESCE ( + 88, COUNT ( * ) / - COUNT ( * ) ) ELSE NULL END - - 68 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6536
SELECT ALL - - CAST( NULL AS SIGNED ) * - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 56 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6537
SELECT - + COUNT( ALL 60 ) / 79 * + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT - + COUNT ( ALL 60 ) / 79 * + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT - 59 * + + COUNT( * ) * - 80 * 56 AS col1
----
264320

skipif mysql # not compatible
query I rowsort label-6538
SELECT - 59 * + + COUNT ( * ) * - 80 * 56 AS col1
----
264320

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT + NULLIF ( - 51, + ( - + 97 ) * + NULLIF ( COALESCE ( + - 57, 46 ), COUNT( * ) * 40 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-6539
SELECT + NULLIF ( - 51, + ( - + 97 ) * + NULLIF ( COALESCE ( + - 57, 46 ), COUNT ( * ) * 40 ) ) AS col1
----
-51

query I rowsort
SELECT DISTINCT - 80 * + + 69
----
-5520

query I rowsort
SELECT ALL - 71 * + 62 AS col0
----
-4402

query I rowsort
SELECT - 92 - 92 col1
----
-184

query I rowsort
SELECT - 10 + + 73
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6544
SELECT DISTINCT + COUNT( * ), NULLIF ( + - 34, + MAX( 10 ) ) * - 55 AS col2
----
1
1870

skipif mysql # not compatible
query II rowsort label-6544
SELECT DISTINCT + COUNT ( * ), NULLIF ( + - 34, + MAX ( 10 ) ) * - 55 AS col2
----
1
1870

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6545
SELECT ALL + CAST( NULL AS DECIMAL ), 86 AS col0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-6545
SELECT ALL + CAST ( NULL AS REAL ), 86 AS col0
----
NULL
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6546
SELECT COUNT( * ) col1, 75 + + 10
----
1
85

skipif mysql # not compatible
query II rowsort label-6546
SELECT COUNT ( * ) col1, 75 + + 10
----
1
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6547
SELECT + AVG ( ALL - - ( - + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT + AVG ( ALL - - ( - + CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6548
SELECT - COUNT( ALL - - CAST( + - 88 AS SIGNED ) ) DIV 65 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-6548
SELECT - COUNT ( ALL - - CAST ( + - 88 AS INTEGER ) ) / 65 / 65
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6549
SELECT ALL 51 AS col2, 74 + - 42 DIV + - 46
----
51
74

skipif mysql # not compatible
query II rowsort label-6549
SELECT ALL 51 AS col2, 74 + - 42 / + - 46
----
51
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT DISTINCT MAX( DISTINCT - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT MAX ( DISTINCT - 32 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT 26 * - 54 * - COALESCE ( 87, + ( 84 ) * - + NULLIF ( - 53, + SUM( 1 ) ) * - 3 ) + + CAST( 28 AS SIGNED )
----
122176

skipif mysql # not compatible
query I rowsort label-6551
SELECT 26 * - 54 * - COALESCE ( 87, + ( 84 ) * - + NULLIF ( - 53, + SUM ( 1 ) ) * - 3 ) + + CAST ( 28 AS INTEGER )
----
122176

query I rowsort
SELECT DISTINCT NULLIF ( + 28, + + NULLIF ( - 20, 66 ) )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT ALL CASE + 41 WHEN - 17 THEN + 14 * COUNT( * ) + 72 + + 70 - - 77 * + 42 ELSE - 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL CASE + 41 WHEN - 17 THEN + 14 * COUNT ( * ) + 72 + + 70 - - 77 * + 42 ELSE - 86 END
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6554
SELECT DISTINCT NULLIF ( + COUNT( * ), 19 - - CAST( - 47 AS SIGNED ) + - - 19 ) AS col2, - COUNT( * ) * - CASE 9 WHEN MIN( 60 ) THEN + ( + ( - CASE - COUNT( * ) WHEN + 32 THEN 17 END ) ) ELSE NULL END * 37 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6554
SELECT DISTINCT NULLIF ( + COUNT ( * ), 19 - - CAST ( - 47 AS INTEGER ) + - - 19 ) AS col2, - COUNT ( * ) * - CASE 9 WHEN MIN ( 60 ) THEN + ( + ( - CASE - COUNT ( * ) WHEN + 32 THEN 17 END ) ) ELSE NULL END * 37 AS col0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6555
SELECT DISTINCT 63 AS col0, 80 * - - ( + 97 ) * - CASE ( + - CASE - CASE + 93 WHEN - COALESCE ( 4, 78 ) THEN + COUNT( * ) + + 24 ELSE NULL END WHEN 33 * 71 THEN + COUNT( * ) ELSE COALESCE ( - 43, - COUNT( * ) * + 47 + + 62, 24 / COALESCE ( + 82, 91, 53 + 70 ) ) * CAST( NULL AS SIGNED ) END ) WHEN + 74 THEN 52 WHEN 90 / - 18 THEN NULL END + 29
----
63
NULL

skipif mysql # not compatible
query II rowsort label-6555
SELECT DISTINCT 63 AS col0, 80 * - - ( + 97 ) * - CASE ( + - CASE - CASE + 93 WHEN - COALESCE ( 4, 78 ) THEN + COUNT ( * ) + + 24 ELSE NULL END WHEN 33 * 71 THEN + COUNT ( * ) ELSE COALESCE ( - 43, - COUNT ( * ) * + 47 + + 62, 24 / COALESCE ( + 82, 91, 53 + 70 ) ) * CAST ( NULL AS INTEGER ) END ) WHEN + 74 THEN 52 WHEN 90 / - 18 THEN NULL END + 29
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT + 8 * - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-6556
SELECT + 8 * - COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT ALL - 63 + + - 48 col0
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6558
SELECT - 20 * COALESCE ( 5, - CAST( + 93 AS SIGNED ) * + + 90 + - 19 ) AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-6558
SELECT - 20 * COALESCE ( 5, - CAST ( + 93 AS INTEGER ) * + + 90 + - 19 ) AS col0
----
-100

query I rowsort
SELECT + 2 + - 91 col0
----
-89

query I rowsort
SELECT DISTINCT COALESCE ( - 41, + 46 * ( - - 47 ) * - 96 + - 31 + - 10 ) + 3 AS col2
----
-38

query I rowsort
SELECT - 72 * - 71
----
5112

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT + 78 + 35 * MIN( - + 43 ) - - 64 AS col2
----
-1363

skipif mysql # not compatible
query I rowsort label-6562
SELECT + 78 + 35 * MIN ( - + 43 ) - - 64 AS col2
----
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT - MAX( - - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-6563
SELECT - MAX ( - - 44 )
----
-44

query I rowsort
SELECT ALL + 84 + + 63
----
147

query I rowsort
SELECT ALL - 78 + 90
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT - NULLIF ( + 3, - ( + - 62 ) + - - COUNT( * ) + - 47 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6566
SELECT - NULLIF ( + 3, - ( + - 62 ) + - - COUNT ( * ) + - 47 ) AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6567
SELECT ALL + 4 + + ( - COALESCE ( 16, + 83 DIV - COUNT( * ) + - 17 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL + 4 + + ( - COALESCE ( 16, + 83 / - COUNT ( * ) + - 17 ) ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT + COALESCE ( - - COUNT( * ), + + COUNT( * ) ) * 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6568
SELECT + COALESCE ( - - COUNT ( * ), + + COUNT ( * ) ) * 82 AS col2
----
82

query I rowsort
SELECT ALL ( - - 75 ) AS col1
----
75

query II rowsort
SELECT DISTINCT - 31 col0, - 18 + 46 * - 49 AS col1
----
-31
-2272

query I rowsort
SELECT + 71 - + 93
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT DISTINCT + 10 - - COALESCE ( 57, 58 * + 11 DIV - 64 - + + 78 ) + - 8 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT + 10 - - COALESCE ( 57, 58 * + 11 / - 64 - + + 78 ) + - 8 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT ALL + CASE 1 WHEN + 11 * - 48 * + COUNT( * ) / - - 54 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL + CASE 1 WHEN + 11 * - 48 * + COUNT ( * ) / - - 54 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6574
SELECT + CAST( - MAX( ALL - 90 ) AS SIGNED ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6574
SELECT + CAST ( - MAX ( ALL - 90 ) AS INTEGER ) AS col0
----
90

query II rowsort
SELECT + - 72 AS col1, 19 * - 82 - - 97 AS col0
----
-72
-1461

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT + - 71 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-6576
SELECT + - 71 / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT + SUM( - 44 ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-6577
SELECT + SUM ( - 44 ) col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6578
SELECT ALL + COALESCE ( 87, - - 99 DIV + - COUNT( * ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL + COALESCE ( 87, - - 99 / + - COUNT ( * ) ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL + COUNT( * ) * + 43 + 72
----
115

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL + COUNT ( * ) * + 43 + 72
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6580
SELECT ALL + 8 AS col2, - COALESCE ( - + 0, - 59 * + + ( - 32 ) * - 83 DIV 99 + COUNT( * ) * ( 23 * COUNT( * ) ) ) * COUNT( * ) + 44 * 95
----
8
4180

skipif mysql # not compatible
query II rowsort label-6580
SELECT ALL + 8 AS col2, - COALESCE ( - + 0, - 59 * + + ( - 32 ) * - 83 / 99 + COUNT ( * ) * ( 23 * COUNT ( * ) ) ) * COUNT ( * ) + 44 * 95
----
8
4180

query II rowsort
SELECT ALL + 38 AS col0, 67 col1
----
38
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT + COUNT( 15 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6582
SELECT + COUNT ( 15 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT + 87 * + ( + + COUNT( * ) ) + + 17 + - COUNT( * ) * 6 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6583
SELECT + 87 * + ( + + COUNT ( * ) ) + + 17 + - COUNT ( * ) * 6 AS col1
----
98

query I rowsort
SELECT - 57 * 0
----
0

query I rowsort
SELECT ALL - 25 * 23
----
-575

query II rowsort
SELECT ALL + 87, 73 * 17 * ( + + 77 ) AS col1
----
87
95557

query I rowsort
SELECT + 60 * - - 95 - 34 + 88
----
5754

query II rowsort
SELECT ( - 12 ) col2, + 85 AS col0
----
-12
85

query I rowsort
SELECT + ( + ( - + 13 ) )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6590
SELECT + MAX( ALL - 10 ) * - CAST( 6 AS SIGNED ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6590
SELECT + MAX ( ALL - 10 ) * - CAST ( 6 AS INTEGER ) AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6591
SELECT 94 * + - NULLIF ( - 55, - 97 * + + CAST( - + 69 AS SIGNED ) - - + 90 ) + 92 + + NULLIF ( 49, 16 ) * + 93 AS col0
----
9819

skipif mysql # not compatible
query I rowsort label-6591
SELECT 94 * + - NULLIF ( - 55, - 97 * + + CAST ( - + 69 AS INTEGER ) - - + 90 ) + 92 + + NULLIF ( 49, 16 ) * + 93 AS col0
----
9819

query I rowsort
SELECT CASE WHEN ( NULL ) <> - - 65 THEN - 19 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6593
SELECT ALL - 40 DIV - - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL - 40 / - - COUNT ( * ) AS col1
----
-40

query I rowsort
SELECT - 56 * - 99
----
5544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6595
SELECT DISTINCT + COUNT( * ) DIV - - 37 col2
----
0

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT + COUNT ( * ) / - - 37 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6596
SELECT COALESCE ( - COUNT( ALL + 44 ), - + 62 ), - 36 DIV 32 + + - SUM( DISTINCT - 88 ) * - 95 - 93 col2
----
-1
-8454

skipif mysql # not compatible
query II rowsort label-6596
SELECT COALESCE ( - COUNT ( ALL + 44 ), - + 62 ), - 36 / 32 + + - SUM ( DISTINCT - 88 ) * - 95 - 93 col2
----
-1
-8454

query I rowsort
SELECT ALL - 89 * + 9 * - - 50 * + + 26 * + - 99 + 17 * - 32 + + 98
----
103088254

query II rowsort
SELECT DISTINCT + 22 * - - 42, 71 + - - 59 AS col0
----
924
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6599
SELECT DISTINCT - 7 * + + ( COUNT( * ) ) + - 94 * - COUNT( * ) + + COALESCE ( - COUNT( * ), - 85 + CAST( NULL AS SIGNED ) * 23 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT - 7 * + + ( COUNT ( * ) ) + - 94 * - COUNT ( * ) + + COALESCE ( - COUNT ( * ), - 85 + CAST ( NULL AS INTEGER ) * 23 ) AS col1
----
86

query I rowsort
SELECT ALL - NULLIF ( - - 54, - - 33 / - 45 * - 97 ) + + 24 + - 85
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6601
SELECT - 89 - - 54 + - 30 * - COUNT( * ) AS col1, + 16 DIV - 61 * 47
----
-5
0

skipif mysql # not compatible
query II rowsort label-6601
SELECT - 89 - - 54 + - 30 * - COUNT ( * ) AS col1, + 16 / - 61 * 47
----
-5
0

query I rowsort
SELECT DISTINCT + ( - - 87 )
----
87

query II rowsort
SELECT - + 67 + 45 * + + 36 * + 27 * + 53 col2, ( - + 91 ) AS col0
----
2318153
-91

query II rowsort
SELECT + + 61 - 13, + ( - 7 ) * 44 AS col2
----
48
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT + - COUNT( - 9 ) - + 47 col0
----
-48

skipif mysql # not compatible
query I rowsort label-6605
SELECT + - COUNT ( - 9 ) - + 47 col0
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6606
SELECT ALL - 81 * - CASE - 56 WHEN - 69 * - 29 THEN NULL WHEN CAST( - 37 AS DECIMAL ) / + 66 + + 97 THEN NULL ELSE 84 END + 7 * 53
----
7175

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL - 81 * - CASE - 56 WHEN - 69 * - 29 THEN NULL WHEN CAST ( - 37 AS REAL ) / + 66 + + 97 THEN NULL ELSE 84 END + 7 * 53
----
7175

query I rowsort
SELECT - + ( + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT + + COUNT( * ) - - 89 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT + + COUNT ( * ) - - 89 AS col2
----
90

query I rowsort
SELECT 43 * - - ( + + 35 ) AS col2
----
1505

query I rowsort
SELECT 74 + - 34 + + 43
----
83

query II rowsort
SELECT ALL + - 92 * 91 + + ( + 53 ), 44 * NULLIF ( + 94, 94 * - 94 + + 99 + - 5 ) * - 29 col1
----
-8319
-119944

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT - 18 + + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-6612
SELECT - 18 + + COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT DISTINCT - COUNT( + + 46 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT - COUNT ( + + 46 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6614
SELECT + CAST( NULL AS SIGNED ) / + - NULLIF ( + 48, + 12 ) col0, - 58 * - COUNT( * ) AS col0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-6614
SELECT + CAST ( NULL AS INTEGER ) / + - NULLIF ( + 48, + 12 ) col0, - 58 * - COUNT ( * ) AS col0
----
NULL
58

query I rowsort
SELECT + COALESCE ( + - 31, - 56 )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6616
SELECT COALESCE ( - ( - 50 ), - 68 * - ( - + CAST( NULL AS SIGNED ) ) ) * 6 - - 61 col2
----
361

skipif mysql # not compatible
query I rowsort label-6616
SELECT COALESCE ( - ( - 50 ), - 68 * - ( - + CAST ( NULL AS INTEGER ) ) ) * 6 - - 61 col2
----
361

query I rowsort
SELECT + ( 31 ) + + 3
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6618
SELECT DISTINCT 10 DIV + - 94 DIV - SUM( + 2 )
----
0

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT 10 / + - 94 / - SUM ( + 2 )
----
0

query I rowsort
SELECT DISTINCT 74 + - 85
----
-11

query I rowsort
SELECT ALL NULLIF ( 83, - 31 ) + 54
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6621
SELECT DISTINCT 92 * + - CAST( NULL AS SIGNED ) / 31 * + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT 92 * + - CAST ( NULL AS INTEGER ) / 31 * + 29 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 4 + + 87 AS col0
----
91

query I rowsort
SELECT ALL - 35 * + 64 col0
----
-2240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6624
SELECT NULLIF ( - + COUNT( * ), + 84 * 77 DIV 28 + + - 62 ) * 44 * - COUNT( * ), + NULLIF ( - - COUNT( * ), - AVG ( 92 ) ) + 97 DIV + 54 AS col1
----
44
2

skipif mysql # not compatible
query II rowsort label-6624
SELECT NULLIF ( - + COUNT ( * ), + 84 * 77 / 28 + + - 62 ) * 44 * - COUNT ( * ), + NULLIF ( - - COUNT ( * ), - AVG ( 92 ) ) + 97 / + 54 AS col1
----
44
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6625
SELECT ALL 38 + 17 * 15 + + COUNT( * ) * - + NULLIF ( + MIN( + 50 ), - + 35 + - + 89 ) DIV - 41 AS col1
----
294

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL 38 + 17 * 15 + + COUNT ( * ) * - + NULLIF ( + MIN ( + 50 ), - + 35 + - + 89 ) / - 41 AS col1
----
294

query I rowsort
SELECT ALL 97 + - 42
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6627
SELECT 63 * + 39 + + - 26 + + 43 + ( 88 ), COUNT( * ) AS col2
----
2562
1

skipif mysql # not compatible
query II rowsort label-6627
SELECT 63 * + 39 + + - 26 + + 43 + ( 88 ), COUNT ( * ) AS col2
----
2562
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6628
SELECT SUM( - ( - 28 ) ) - + NULLIF ( - + 22, + 82 + + 10 * - 86 + - 45 ) DIV 80 - - NULLIF ( + 28, COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-6628
SELECT SUM ( - ( - 28 ) ) - + NULLIF ( - + 22, + 82 + + 10 * - 86 + - 45 ) / 80 - - NULLIF ( + 28, COUNT ( * ) )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6629
SELECT + 57, - ( - + COUNT( + + 75 ) ) AS col1
----
57
1

skipif mysql # not compatible
query II rowsort label-6629
SELECT + 57, - ( - + COUNT ( + + 75 ) ) AS col1
----
57
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT COALESCE ( - - 65, - MIN( ALL - ( 91 ) ) ) + - - ( + - 35 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6630
SELECT COALESCE ( - - 65, - MIN ( ALL - ( 91 ) ) ) + - - ( + - 35 ) AS col2
----
30

query I rowsort
SELECT - 12 * + CASE WHEN + 33 NOT BETWEEN - 27 + - + 39 AND ( - 33 + - 55 ) THEN + 90 ELSE 54 END + - 40 AS col2
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT DISTINCT - MAX( + 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - MAX ( + 10 ) AS col0
----
-10

query I rowsort
SELECT ALL - ( + 60 ) + + ( 24 ) AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6634
SELECT ALL + NULLIF ( - COUNT( DISTINCT ( CAST( 70 AS SIGNED ) ) ), + ( + 9 ) * + COALESCE ( AVG ( DISTINCT + 8 ), 45 + + 17, + 31 DIV 16 + 35 ) * ( 28 ) + - 4 ) DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL + NULLIF ( - COUNT ( DISTINCT ( CAST ( 70 AS INTEGER ) ) ), + ( + 9 ) * + COALESCE ( AVG ( DISTINCT + 8 ), 45 + + 17, + 31 / 16 + 35 ) * ( 28 ) + - 4 ) / 50
----
0

query I rowsort
SELECT ( - 59 ) + + 65
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6636
SELECT DISTINCT + CAST( CAST( 75 AS SIGNED ) AS SIGNED ) * - CAST( NULL AS DECIMAL ) + CASE 86 WHEN - 55 THEN NULL ELSE - + 38 END * - - CASE - 58 WHEN 34 THEN + 51 + + COALESCE ( + COUNT( * ), 38, COUNT( * ) ) WHEN ( - 79 ) THEN + 37 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT + CAST ( CAST ( 75 AS INTEGER ) AS INTEGER ) * - CAST ( NULL AS REAL ) + CASE 86 WHEN - 55 THEN NULL ELSE - + 38 END * - - CASE - 58 WHEN 34 THEN + 51 + + COALESCE ( + COUNT ( * ), 38, COUNT ( * ) ) WHEN ( - 79 ) THEN + 37 + - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT 0 * + 70 + 75 + - + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) * + + 87 col1
----
75

skipif mysql # not compatible
query I rowsort label-6637
SELECT 0 * + 70 + 75 + - + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * + + 87 col1
----
75

query II rowsort
SELECT ALL + 73 * + NULLIF ( + 84, - - 59 + - 34 ) AS col1, - 15 AS col1
----
6132
-15

query I rowsort
SELECT 46 + - 8 + - 3 + - - 45 * + + 64
----
2915

onlyif mysql # DIV for integer division: 
query I rowsort label-6640
SELECT + 26 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-6640
SELECT + 26 / - 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT - + ( - CASE 65 WHEN - 39 * - COUNT( * ) THEN NULL WHEN + 9 THEN + 88 + + 69 WHEN + ( + 53 ) + + 79 THEN NULL ELSE 0 END )
----
0

skipif mysql # not compatible
query I rowsort label-6641
SELECT - + ( - CASE 65 WHEN - 39 * - COUNT ( * ) THEN NULL WHEN + 9 THEN + 88 + + 69 WHEN + ( + 53 ) + + 79 THEN NULL ELSE 0 END )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6642
SELECT DISTINCT + COUNT( * ) - - 22 * + - COUNT( * ) DIV + 36
----
1

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT + COUNT ( * ) - - 22 * + - COUNT ( * ) / + 36
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT COUNT( * ) * 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6643
SELECT COUNT ( * ) * 57 AS col2
----
57

query I rowsort
SELECT ALL + + 69 * + 61
----
4209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6645
SELECT SUM( + - CASE - + CAST( - CASE 67 WHEN - 85 THEN + 98 END AS SIGNED ) WHEN 77 THEN + 89 ELSE + - 67 END ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6645
SELECT SUM ( + - CASE - + CAST ( - CASE 67 WHEN - 85 THEN + 98 END AS INTEGER ) WHEN 77 THEN + 89 ELSE + - 67 END ) AS col2
----
67

query I rowsort
SELECT 63 + - 23
----
40

query I rowsort
SELECT 9 + - 3
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6648
SELECT DISTINCT + 24 * + 20 DIV + 1 - - MAX( ALL + ( - - 12 ) ) * + 81 col1
----
1452

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT + 24 * + 20 / + 1 - - MAX ( ALL + ( - - 12 ) ) * + 81 col1
----
1452

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT ALL - + 69 DIV - - 12
----
-5

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - + 69 / - - 12
----
-5

query II rowsort
SELECT ALL + 86 AS col1, + 85 + - - 8 + + + 90 + + 96 * + 49
----
86
4887

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT DISTINCT - 44 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT - 44 / 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT 22 - - 95 * - COUNT( * ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-6652
SELECT 22 - - 95 * - COUNT ( * ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT 37 * - + ( - MIN( DISTINCT + + 77 ) )
----
2849

skipif mysql # not compatible
query I rowsort label-6653
SELECT 37 * - + ( - MIN ( DISTINCT + + 77 ) )
----
2849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6654
SELECT ALL - 50 + + CAST( 69 AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL - 50 + + CAST ( 69 AS INTEGER ) AS col0
----
19

query I rowsort
SELECT - 66 * + + 32
----
-2112

onlyif mysql # aggregate syntax: 
query II rowsort label-6656
SELECT + 6 AS col2, - 24 - + - ( COUNT( * ) ) + + + 55 AS col2
----
6
32

skipif mysql # not compatible
query II rowsort label-6656
SELECT + 6 AS col2, - 24 - + - ( COUNT ( * ) ) + + + 55 AS col2
----
6
32

query I rowsort
SELECT ALL + 67 * - COALESCE ( - + 92, + 2 ) * - 71 + - 99
----
-437743

query I rowsort
SELECT ALL 33 + + 79 + 46
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-6659
SELECT DISTINCT + 49 + + COUNT( * ), 4 AS col0
----
50
4

skipif mysql # not compatible
query II rowsort label-6659
SELECT DISTINCT + 49 + + COUNT ( * ), 4 AS col0
----
50
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT DISTINCT - 94 + 1 + COALESCE ( - CASE + COUNT( * ) WHEN - ( 36 ) THEN - - 19 END, COUNT( * ) + + COUNT( * ) + - 22 - COUNT( * ) * 14 ) AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT - 94 + 1 + COALESCE ( - CASE + COUNT ( * ) WHEN - ( 36 ) THEN - - 19 END, COUNT ( * ) + + COUNT ( * ) + - 22 - COUNT ( * ) * 14 ) AS col0
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6661
SELECT DISTINCT MIN( + 68 ) + + 52 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT MIN ( + 68 ) + + 52 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6662
SELECT MIN( + 24 ) AS col0, COALESCE ( + COUNT( * ), + COUNT( ALL + - 92 ) * - 2 - 25 - + 87 * - - ( - + 97 ), - 23 ) DIV + ( 31 ) AS col1
----
24
0

skipif mysql # not compatible
query II rowsort label-6662
SELECT MIN ( + 24 ) AS col0, COALESCE ( + COUNT ( * ), + COUNT ( ALL + - 92 ) * - 2 - 25 - + 87 * - - ( - + 97 ), - 23 ) / + ( 31 ) AS col1
----
24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT + ( - 70 ) * + 47 + + + COUNT( * ) * - COALESCE ( 49, + 87 * - COALESCE ( + 65, - 97 ) + + 85 )
----
-3339

skipif mysql # not compatible
query I rowsort label-6663
SELECT + ( - 70 ) * + 47 + + + COUNT ( * ) * - COALESCE ( 49, + 87 * - COALESCE ( + 65, - 97 ) + + 85 )
----
-3339

query I rowsort
SELECT 31 * - 33 col2
----
-1023

query II rowsort
SELECT + 2, - 99 AS col1
----
2
-99

query I rowsort
SELECT 5 + + 10 col2
----
15

query I rowsort
SELECT 21 * 10 * - 11
----
-2310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6668
SELECT ALL - COUNT( * ) DIV + 15
----
0

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL - COUNT ( * ) / + 15
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6669
SELECT ALL ( - AVG ( ALL + 85 ) ) - + 5 + - 23 + + CASE COALESCE ( + 84, 36 ) WHEN - + 10 * NULLIF ( - 54, - 85 * - 27 ) / + 68 + COALESCE ( 55 + 29, 17, 28 + + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 50 + COUNT( * ) THEN - 1 ELSE NULL END * + COUNT( * ) / 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL ( - AVG ( ALL + 85 ) ) - + 5 + - 23 + + CASE COALESCE ( + 84, 36 ) WHEN - + 10 * NULLIF ( - 54, - 85 * - 27 ) / + 68 + COALESCE ( 55 + 29, 17, 28 + + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 50 + COUNT ( * ) THEN - 1 ELSE NULL END * + COUNT ( * ) / 84
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6670
SELECT + MAX( + 19 ) AS col2, + COUNT( * )
----
19
1

skipif mysql # not compatible
query II rowsort label-6670
SELECT + MAX ( + 19 ) AS col2, + COUNT ( * )
----
19
1

query II rowsort
SELECT ALL - 11, + 11 AS col1
----
-11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT ALL ( + 29 ) - + COUNT( * ) + - + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL ( + 29 ) - + COUNT ( * ) + - + COUNT ( * ) AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6673
SELECT 91 col1, - COUNT( * ) * - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * + 97 + 53
----
91
NULL

skipif mysql # not compatible
query II rowsort label-6673
SELECT 91 col1, - COUNT ( * ) * - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 97 + 53
----
91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6674
SELECT - - CAST( + - COUNT( DISTINCT - - 15 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6674
SELECT - - CAST ( + - COUNT ( DISTINCT - - 15 ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT - 11 * + 55 * - 2 + + 86
----
1296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT + 51 * - 64 * - CAST( NULL AS SIGNED ) / - 42 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT + 51 * - 64 * - CAST ( NULL AS INTEGER ) / - 42 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT - - MAX( ALL + + ( - 33 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-6677
SELECT - - MAX ( ALL + + ( - 33 ) )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL + COALESCE ( 88, - 44 + + NULLIF ( + COUNT( * ), + 71 ) * + 0 * 38 )
----
88

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL + COALESCE ( 88, - 44 + + NULLIF ( + COUNT ( * ), + 71 ) * + 0 * 38 )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6679
SELECT ALL 32, - COUNT( * ) AS col1
----
32
-1

skipif mysql # not compatible
query II rowsort label-6679
SELECT ALL 32, - COUNT ( * ) AS col1
----
32
-1

query I rowsort
SELECT + - NULLIF ( ( - 12 ), + + 26 ) + 74 + 66 col0
----
152

query I rowsort
SELECT ALL ( COALESCE ( - 0, 72 ) )
----
0

query I rowsort
SELECT ALL ( + 82 ) AS col2
----
82

query I rowsort
SELECT + ( + 73 ) + 10
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6684
SELECT - - 60 / - COUNT( * ) / CAST( NULL AS SIGNED ) * + + CAST( - 63 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6684
SELECT - - 60 / - COUNT ( * ) / CAST ( NULL AS INTEGER ) * + + CAST ( - 63 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 53 + 33
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT - COUNT( * ) - - - ( - 4 ) - - + 16
----
19

skipif mysql # not compatible
query I rowsort label-6686
SELECT - COUNT ( * ) - - - ( - 4 ) - - + 16
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6687
SELECT ALL + - CAST( - 5 AS SIGNED ) + - NULLIF ( + - CASE - 96 WHEN - ( - COUNT( * ) ) * 32 THEN - 28 ELSE NULL END, 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL + - CAST ( - 5 AS INTEGER ) + - NULLIF ( + - CASE - 96 WHEN - ( - COUNT ( * ) ) * 32 THEN - 28 ELSE NULL END, 47 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT + ( 42 ) + + COUNT( * ) + + 38 + + 58 * + 78 - + 67 AS col0
----
4538

skipif mysql # not compatible
query I rowsort label-6688
SELECT + ( 42 ) + + COUNT ( * ) + + 38 + + 58 * + 78 - + 67 AS col0
----
4538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT - 80 + CAST( NULL AS SIGNED ) * + ( + + 84 ) + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT - 80 + CAST ( NULL AS INTEGER ) * + ( + + 84 ) + + 61
----
NULL

query I rowsort
SELECT ALL - - 49 + + + 31 - - 82
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT - + COUNT( ALL - - 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-6691
SELECT - + COUNT ( ALL - - 67 )
----
-1

query I rowsort
SELECT ALL + 77 * 25 + + 46 + 16 + + - 42 * - 74 * + 90 AS col2
----
281707

query I rowsort
SELECT ALL 64 + - 30 + + + 64 * 44 AS col0
----
2850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6694
SELECT - - 8 + - 70 + - - COUNT( * ) DIV + 58 col1
----
-62

skipif mysql # not compatible
query I rowsort label-6694
SELECT - - 8 + - 70 + - - COUNT ( * ) / + 58 col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6695
SELECT - 16 + CAST( NULL AS SIGNED ) * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT - 16 + CAST ( NULL AS INTEGER ) * 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6696
SELECT ALL - 8 + - CASE COUNT( + 84 ) WHEN + + 10 THEN NULL WHEN COUNT( * ) THEN - 23 END + + 43 DIV 42 + - + 18 DIV + 18
----
15

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL - 8 + - CASE COUNT ( + 84 ) WHEN + + 10 THEN NULL WHEN COUNT ( * ) THEN - 23 END + + 43 / 42 + - + 18 / + 18
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT ALL + CAST( + 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL + CAST ( + 57 AS INTEGER )
----
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6698
SELECT - CAST( + 88 AS SIGNED ) DIV + 10 + - 36 * - 85 AS col1, 36
----
3052
36

skipif mysql # not compatible
query II rowsort label-6698
SELECT - CAST ( + 88 AS INTEGER ) / + 10 + - 36 * - 85 AS col1, 36
----
3052
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6699
SELECT ALL + NULLIF ( MAX( ALL - 97 ), - NULLIF ( + CAST( NULL AS SIGNED ), - CASE COUNT( * ) WHEN 28 * + - 57 * + - 18 - COUNT( 5 ) * - CASE - 47 WHEN - CAST( + 40 AS SIGNED ) / CAST( NULL AS SIGNED ) + COUNT( * ) THEN COUNT( * ) END THEN NULL ELSE - 97 END + 27 ) ) * - 72 + + 88
----
7072

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL + NULLIF ( MAX ( ALL - 97 ), - NULLIF ( + CAST ( NULL AS INTEGER ), - CASE COUNT ( * ) WHEN 28 * + - 57 * + - 18 - COUNT ( 5 ) * - CASE - 47 WHEN - CAST ( + 40 AS INTEGER ) / CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN COUNT ( * ) END THEN NULL ELSE - 97 END + 27 ) ) * - 72 + + 88
----
7072

query I rowsort
SELECT ( + NULLIF ( - 25, 35 + 73 ) ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6701
SELECT ALL + COUNT( ALL - 11 ) AS col2, - 50
----
1
-50

skipif mysql # not compatible
query II rowsort label-6701
SELECT ALL + COUNT ( ALL - 11 ) AS col2, - 50
----
1
-50

query II rowsort
SELECT ( + - 55 ) AS col1, 88 * - 62 - 71 + 9 * 2 AS col2
----
-55
-5509

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT DISTINCT - ( - + 87 ) * COUNT( * ) * + + 88
----
7656

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT - ( - + 87 ) * COUNT ( * ) * + + 88
----
7656

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT ALL - 8 * 59 * - 20 - COUNT( * )
----
9439

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL - 8 * 59 * - 20 - COUNT ( * )
----
9439

query I rowsort
SELECT DISTINCT - 91 * 22
----
-2002

query I rowsort
SELECT ALL - 18 * + 56 * - - 12 * + + 55 AS col0
----
-665280

query I rowsort
SELECT - 26 * 37 AS col2
----
-962

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL + CASE - 99 WHEN - COUNT( * ) THEN NULL ELSE - 62 END AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL + CASE - 99 WHEN - COUNT ( * ) THEN NULL ELSE - 62 END AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT CASE - 76 WHEN 74 * + 73 * - - 34 THEN - 53 * - MAX( + 70 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6709
SELECT CASE - 76 WHEN 74 * + 73 * - - 34 THEN - 53 * - MAX ( + 70 ) END AS col1
----
NULL

query I rowsort
SELECT + 96 * + 2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT 37 * - SUM( - 94 ) + + NULLIF ( - - 36, ( CASE 12 WHEN + 97 * + 7 + 19 THEN - MAX( 85 ) * + COUNT( * ) END ) / + 52 ) * COUNT( * )
----
3514

skipif mysql # not compatible
query I rowsort label-6711
SELECT 37 * - SUM ( - 94 ) + + NULLIF ( - - 36, ( CASE 12 WHEN + 97 * + 7 + 19 THEN - MAX ( 85 ) * + COUNT ( * ) END ) / + 52 ) * COUNT ( * )
----
3514

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT - 66 - - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-6712
SELECT - 66 - - COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT COALESCE ( - 6, SUM( - 57 ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6713
SELECT COALESCE ( - 6, SUM ( - 57 ) ) AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6714
SELECT ALL - ( NULLIF ( ( + 49 ), + 26 DIV COUNT( * ) DIV + 57 + 71 ) ) DIV + - 85
----
0

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL - ( NULLIF ( ( + 49 ), + 26 / COUNT ( * ) / + 57 + 71 ) ) / + - 85
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6715
SELECT ALL + ( - + 93 ) AS col2, - 59 DIV + 65 AS col2
----
-93
0

skipif mysql # not compatible
query II rowsort label-6715
SELECT ALL + ( - + 93 ) AS col2, - 59 / + 65 AS col2
----
-93
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6716
SELECT DISTINCT - 66 DIV - CAST( - 7 AS SIGNED ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT - 66 / - CAST ( - 7 AS INTEGER ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6717
SELECT ALL - 44 * - CAST( NULL AS SIGNED ) * COUNT( - 90 ) + COUNT( * ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL - 44 * - CAST ( NULL AS INTEGER ) * COUNT ( - 90 ) + COUNT ( * ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL NULLIF ( + 30, 56 ) * + - CASE + + 48 WHEN + 52 THEN NULL WHEN + + ( - 56 ) THEN - 75 * 53 + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL NULLIF ( + 30, 56 ) * + - CASE + + 48 WHEN + 52 THEN NULL WHEN + + ( - 56 ) THEN - 75 * 53 + - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6719
SELECT ALL + CAST( 36 AS SIGNED ), + 58 + - COUNT( * ) AS col1
----
36
57

skipif mysql # not compatible
query II rowsort label-6719
SELECT ALL + CAST ( 36 AS INTEGER ), + 58 + - COUNT ( * ) AS col1
----
36
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT DISTINCT + COUNT( * ) * + 2
----
2

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT + COUNT ( * ) * + 2
----
2

query I rowsort
SELECT + + 72 + - 31 + + 22 * + 16
----
393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6722
SELECT ALL 81 + - CASE - + NULLIF ( + - 64, - + 63 ) WHEN - - 58 + - + COUNT( * ) + + 69 THEN 64 * + + CAST( NULL AS SIGNED ) + + COALESCE ( + COUNT( * ), 41 * + 84 ) - 87 WHEN COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL 81 + - CASE - + NULLIF ( + - 64, - + 63 ) WHEN - - 58 + - + COUNT ( * ) + + 69 THEN 64 * + + CAST ( NULL AS INTEGER ) + + COALESCE ( + COUNT ( * ), 41 * + 84 ) - 87 WHEN COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6723
SELECT + - 3 * 74, SUM( DISTINCT - 89 ) AS col2
----
-222
-89

skipif mysql # not compatible
query II rowsort label-6723
SELECT + - 3 * 74, SUM ( DISTINCT - 89 ) AS col2
----
-222
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6724
SELECT + - 97 + 82 + - CASE + - AVG ( ALL - - 19 ) WHEN - 11 THEN + + 15 WHEN - COALESCE ( + 88, 20 + + - 31, - 44, - 98 ) / - 10 THEN 55 WHEN - COUNT( * ) + 16 THEN NULL ELSE - 16 + - 51 * NULLIF ( + 58 - 31 * + ( - 94 ), CAST( NULL AS SIGNED ) ) END AS col0
----
151573

skipif mysql # not compatible
query I rowsort label-6724
SELECT + - 97 + 82 + - CASE + - AVG ( ALL - - 19 ) WHEN - 11 THEN + + 15 WHEN - COALESCE ( + 88, 20 + + - 31, - 44, - 98 ) / - 10 THEN 55 WHEN - COUNT ( * ) + 16 THEN NULL ELSE - 16 + - 51 * NULLIF ( + 58 - 31 * + ( - 94 ), CAST ( NULL AS INTEGER ) ) END AS col0
----
151573

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT ALL - 17 + COUNT( DISTINCT - 53 )
----
-16

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL - 17 + COUNT ( DISTINCT - 53 )
----
-16

query I rowsort
SELECT - NULLIF ( 89, + 33 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6727
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT DISTINCT 52 + - - 40 + - + COALESCE ( - 82, + 92, + SUM( - + 65 ) ) * + + 9 + - + 92 AS col1
----
738

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT 52 + - - 40 + - + COALESCE ( - 82, + 92, + SUM ( - + 65 ) ) * + + 9 + - + 92 AS col1
----
738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6729
SELECT DISTINCT - + 97 * + - 74 col1, - COALESCE ( - 83, - 12 ) / 77 * + 36 + - COALESCE ( - + 42, + - 51, - + COUNT( * ) * + 35 ) + - CAST( NULL AS SIGNED )
----
7178
NULL

skipif mysql # not compatible
query II rowsort label-6729
SELECT DISTINCT - + 97 * + - 74 col1, - COALESCE ( - 83, - 12 ) / 77 * + 36 + - COALESCE ( - + 42, + - 51, - + COUNT ( * ) * + 35 ) + - CAST ( NULL AS INTEGER )
----
7178
NULL

query I rowsort
SELECT ALL COALESCE ( - 51, - - 15, - 4 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT + 4 - + COUNT( DISTINCT 85 ) + + 48 + - 45
----
6

skipif mysql # not compatible
query I rowsort label-6731
SELECT + 4 - + COUNT ( DISTINCT 85 ) + + 48 + - 45
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6732
SELECT - 10 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT - 10 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6733
SELECT DISTINCT 16 * ( ( COUNT( - 81 ) ) ) * + 30 - + CAST( NULL AS SIGNED ) + COUNT( * ) * - - CAST( + 58 AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT 16 * ( ( COUNT ( - 81 ) ) ) * + 30 - + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - - CAST ( + 58 AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT ALL SUM( ALL 60 )
----
60

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL SUM ( ALL 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6735
SELECT + CAST( 48 AS SIGNED ) - + 81 DIV - 9 + - COUNT( * ) - - + 51
----
107

skipif mysql # not compatible
query I rowsort label-6735
SELECT + CAST ( 48 AS INTEGER ) - + 81 / - 9 + - COUNT ( * ) - - + 51
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6736
SELECT ALL COUNT( * ) * + - COALESCE ( - + CASE + - MAX( - - 13 ) WHEN + CAST( - 59 AS SIGNED ) THEN - 94 * 18 + - NULLIF ( 69, + COUNT( * ) * + COUNT( * ) ) + - 94 * + COUNT( * ) * 78 ELSE NULL END, 97 * COUNT( * ), + 45 * 57 + + 64 ) * 99 col0
----
-9603

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL COUNT ( * ) * + - COALESCE ( - + CASE + - MAX ( - - 13 ) WHEN + CAST ( - 59 AS INTEGER ) THEN - 94 * 18 + - NULLIF ( 69, + COUNT ( * ) * + COUNT ( * ) ) + - 94 * + COUNT ( * ) * 78 ELSE NULL END, 97 * COUNT ( * ), + 45 * 57 + + 64 ) * 99 col0
----
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT DISTINCT 73 * 86 DIV 51 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-6737
SELECT DISTINCT 73 * 86 / 51 AS col0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-6738
SELECT ALL + 41 DIV 6
----
6

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL + 41 / 6
----
6

query II rowsort
SELECT ALL + 4 col1, 45
----
4
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6740
SELECT ALL - 87 / - ( + 57 ) * - MAX( ALL + 81 ) * - + 56 * - COUNT( * ) + SUM( DISTINCT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) * 6 - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL - 87 / - ( + 57 ) * - MAX ( ALL + 81 ) * - + 56 * - COUNT ( * ) + SUM ( DISTINCT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * 6 - 93
----
NULL

query I rowsort
SELECT 36 * - 9
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT 72 + - + 27 + 94 * + + COUNT( * ) AS col2
----
139

skipif mysql # not compatible
query I rowsort label-6742
SELECT 72 + - + 27 + 94 * + + COUNT ( * ) AS col2
----
139

query I rowsort
SELECT DISTINCT - 69 * + 92 * + - 59
----
374532

query I rowsort
SELECT ALL - ( 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6745
SELECT 16 AS col2, COUNT( * ) AS col1
----
16
1

skipif mysql # not compatible
query II rowsort label-6745
SELECT 16 AS col2, COUNT ( * ) AS col1
----
16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT ALL - SUM( - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL - SUM ( - 77 )
----
77

query I rowsort
SELECT DISTINCT - + 33 * - 44 + + 25 * - ( 47 )
----
277

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6748
SELECT ALL - - 86 AS col2, + CAST( NULL AS DECIMAL ) * + + 5 * - 31
----
86
NULL

skipif mysql # not compatible
query II rowsort label-6748
SELECT ALL - - 86 AS col2, + CAST ( NULL AS REAL ) * + + 5 * - 31
----
86
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6749
SELECT + 16 AS col1, - 58 * + CAST( - 80 AS SIGNED ) * + COUNT( * ) + 68 * - CAST( - - 76 AS SIGNED ) - + 88 + 77 + + - 16 * + 85 AS col1
----
16
-1899

skipif mysql # not compatible
query II rowsort label-6749
SELECT + 16 AS col1, - 58 * + CAST ( - 80 AS INTEGER ) * + COUNT ( * ) + 68 * - CAST ( - - 76 AS INTEGER ) - + 88 + 77 + + - 16 * + 85 AS col1
----
16
-1899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6750
SELECT 9 * - - CASE 56 WHEN - - 40 THEN MIN( 30 ) + + 28 ELSE NULL END + - COALESCE ( + - 50, + CAST( NULL AS SIGNED ), - - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT 9 * - - CASE 56 WHEN - - 40 THEN MIN ( 30 ) + + 28 ELSE NULL END + - COALESCE ( + - 50, + CAST ( NULL AS INTEGER ), - - 19 )
----
NULL

query I rowsort
SELECT ALL - 4 * + COALESCE ( + 93, 32, + + ( - 87 ) * + - 23 )
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT - 69 * + 37 + COALESCE ( - ( 83 ), - MAX( NULLIF ( - 43, 24 ) ) ) col0
----
-2636

skipif mysql # not compatible
query I rowsort label-6752
SELECT - 69 * + 37 + COALESCE ( - ( 83 ), - MAX ( NULLIF ( - 43, 24 ) ) ) col0
----
-2636

query I rowsort
SELECT ( + 98 ) + - ( - - ( 6 ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT ALL + 12 + 28 - - 75 + ( - COUNT( * ) ) - 6 * + 13 + 62 + + 94 + 39 + - 55 - 3 * + COUNT( * ) * - 13 col1
----
215

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL + 12 + 28 - - 75 + ( - COUNT ( * ) ) - 6 * + 13 + 62 + + 94 + 39 + - 55 - 3 * + COUNT ( * ) * - 13 col1
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT SUM( - 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6755
SELECT SUM ( - 84 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-6756
SELECT + 35 + ( 63 ) + - CASE - 75 WHEN - ( + - COUNT( * ) ) THEN - + 89 END AS col0, COUNT( * ) + - COUNT( * )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6756
SELECT + 35 + ( 63 ) + - CASE - 75 WHEN - ( + - COUNT ( * ) ) THEN - + 89 END AS col0, COUNT ( * ) + - COUNT ( * )
----
NULL
0

query I rowsort
SELECT 63 * 83
----
5229

query I rowsort
SELECT ALL 75 + - 43
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT ALL - - 78 + - + ( + ( - - 19 ) ) + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL - - 78 + - + ( + ( - - 19 ) ) + COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6760
SELECT - CASE - 66 WHEN + 63 THEN NULL ELSE + + 42 DIV - ( 16 ) + + ( 19 ) * - 95 * + 1 + - 37 + - 3 + - COUNT( * ) END col2
----
1848

skipif mysql # not compatible
query I rowsort label-6760
SELECT - CASE - 66 WHEN + 63 THEN NULL ELSE + + 42 / - ( 16 ) + + ( 19 ) * - 95 * + 1 + - 37 + - 3 + - COUNT ( * ) END col2
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT ALL 2 + 38 * + COUNT( - 14 )
----
40

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL 2 + 38 * + COUNT ( - 14 )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6762
SELECT ALL COUNT( * ) * + + COUNT( * ) DIV + - 40 + + - 10
----
-10

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL COUNT ( * ) * + + COUNT ( * ) / + - 40 + + - 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL + 80 * - + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL + 80 * - + COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-6764
SELECT DISTINCT COUNT( * ) AS col1, 19 AS col0
----
1
19

skipif mysql # not compatible
query II rowsort label-6764
SELECT DISTINCT COUNT ( * ) AS col1, 19 AS col0
----
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT COUNT( * ) + + 63
----
64

skipif mysql # not compatible
query I rowsort label-6765
SELECT COUNT ( * ) + + 63
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT 95 + + 99 * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-6766
SELECT 95 + + 99 * - COUNT ( * )
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-6767
SELECT COALESCE ( - + ( - + 35 ), + 39 + + 19 ) + 13 + - + 36 DIV 78 DIV 94 AS col1, 1
----
48
1

skipif mysql # not compatible
query II rowsort label-6767
SELECT COALESCE ( - + ( - + 35 ), + 39 + + 19 ) + 13 + - + 36 / 78 / 94 AS col1, 1
----
48
1

query I rowsort
SELECT ALL ( - ( + - 44 ) ) - 22 + - 73 * + 57 * + ( + 31 ) * - 30
----
3869752

query I rowsort
SELECT ALL - 18 * - 96
----
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT CAST( NULL AS SIGNED ) + - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT CAST ( NULL AS INTEGER ) + - 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT NULLIF ( 18, - 30 + 86 - 88 ) + + MIN( 22 )
----
40

skipif mysql # not compatible
query I rowsort label-6771
SELECT NULLIF ( 18, - 30 + 86 - 88 ) + + MIN ( 22 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT ALL + 46 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL + 46 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6773
SELECT MAX( ALL - 36 ) DIV 66 DIV + 88 + 19 + 45 + - ( - ( + - COUNT( * ) ) ) * + 0 * - - 45 + - 40 - - MIN( - 64 ) * + 26 AS col2
----
-1640

skipif mysql # not compatible
query I rowsort label-6773
SELECT MAX ( ALL - 36 ) / 66 / + 88 + 19 + 45 + - ( - ( + - COUNT ( * ) ) ) * + 0 * - - 45 + - 40 - - MIN ( - 64 ) * + 26 AS col2
----
-1640

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ALL ( 90 ) * + - COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL ( 90 ) * + - COUNT ( * ) AS col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6775
SELECT COALESCE ( 60, + - CAST( NULL AS SIGNED ) ) + 41 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-6775
SELECT COALESCE ( 60, + - CAST ( NULL AS INTEGER ) ) + 41 AS col2
----
101

query I rowsort
SELECT DISTINCT 96 * ( - 42 ) AS col0
----
-4032

query I rowsort
SELECT 46 * - - 2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL ( + - 78 ) + + 6 + + 15 + + ( - + 61 ) * 27 * + CASE + 74 WHEN + COUNT( * ) * + COUNT( ALL - 57 ) * + 74 * 19 - 37 + ( - 53 - 0 ) * + 10 THEN NULL ELSE - 66 - 10 END
----
125115

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL ( + - 78 ) + + 6 + + 15 + + ( - + 61 ) * 27 * + CASE + 74 WHEN + COUNT ( * ) * + COUNT ( ALL - 57 ) * + 74 * 19 - 37 + ( - 53 - 0 ) * + 10 THEN NULL ELSE - 66 - 10 END
----
125115

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT ALL COUNT( * ) * 64
----
64

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL COUNT ( * ) * 64
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6780
SELECT - ( + 12 ) * - + 39 - - 76 AS col1, + 11 DIV 91 * COUNT( * ) AS col1
----
544
0

skipif mysql # not compatible
query II rowsort label-6780
SELECT - ( + 12 ) * - + 39 - - 76 AS col1, + 11 / 91 * COUNT ( * ) AS col1
----
544
0

query I rowsort
SELECT 9 + 35 AS col1
----
44

query I rowsort
SELECT ALL - + 30 + + - 2 + 53 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6783
SELECT DISTINCT + + COUNT( * ) + + COALESCE ( - + 67, - - COALESCE ( + - 30, - ( + + 35 ) * 25 + COALESCE ( - 52, - 68 - 9 + 38 - + + CAST( + CAST( + ( 19 ) AS SIGNED ) AS SIGNED ) * 21 ), - 14 ) ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT + + COUNT ( * ) + + COALESCE ( - + 67, - - COALESCE ( + - 30, - ( + + 35 ) * 25 + COALESCE ( - 52, - 68 - 9 + 38 - + + CAST ( + CAST ( + ( 19 ) AS INTEGER ) AS INTEGER ) * 21 ), - 14 ) ) col0
----
-66

query I rowsort
SELECT ALL + + ( + - 54 ) * - 39 AS col1
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT DISTINCT - 23 + - COUNT( * ) * - 39 * + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT - 23 + - COUNT ( * ) * - 39 * + COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT DISTINCT + + COALESCE ( + 46, - 87 * - 33 ) * + MAX( - 50 ) + MAX( + 95 )
----
-2205

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT + + COALESCE ( + 46, - 87 * - 33 ) * + MAX ( - 50 ) + MAX ( + 95 )
----
-2205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6787
SELECT - COALESCE ( 64, CASE + CAST( NULL AS SIGNED ) WHEN ( - - 83 ) THEN - - ( 61 ) DIV - MAX( 29 ) + - + 66 + + - COUNT( * ) * 42 * 65 + 94 ELSE + CAST( 55 AS SIGNED ) END ) * - 90 + - 84 AS col0
----
5676

skipif mysql # not compatible
query I rowsort label-6787
SELECT - COALESCE ( 64, CASE + CAST ( NULL AS INTEGER ) WHEN ( - - 83 ) THEN - - ( 61 ) / - MAX ( 29 ) + - + 66 + + - COUNT ( * ) * 42 * 65 + 94 ELSE + CAST ( 55 AS INTEGER ) END ) * - 90 + - 84 AS col0
----
5676

query I rowsort
SELECT DISTINCT - + 26 + + 33 AS col1
----
7

query I rowsort
SELECT 57 + - 35 + - + 48 AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT + 27 * + CAST( - 7 AS SIGNED )
----
-189

skipif mysql # not compatible
query I rowsort label-6790
SELECT + 27 * + CAST ( - 7 AS INTEGER )
----
-189

query I rowsort
SELECT - - NULLIF ( - 53, 29 )
----
-53

query I rowsort
SELECT 80 + 58 AS col0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6793
SELECT - CASE + COUNT( * ) WHEN ( - 92 ) THEN NULL WHEN - + CAST( + + CAST( - - 34 AS SIGNED ) AS SIGNED ) * COUNT( * ) + ( - 52 ) + + 25 * COUNT( * ) THEN - 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT - CASE + COUNT ( * ) WHEN ( - 92 ) THEN NULL WHEN - + CAST ( + + CAST ( - - 34 AS INTEGER ) AS INTEGER ) * COUNT ( * ) + ( - 52 ) + + 25 * COUNT ( * ) THEN - 97 END
----
NULL

query I rowsort
SELECT 40 + + 1 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL - NULLIF ( + CASE + COUNT( * ) WHEN + 16 * - 99 THEN + 56 * - - COUNT( * ) + 37 ELSE + COUNT( * ) * 57 END, - + 4 + 91 * + 19 - - 20 ) - SUM( DISTINCT 97 )
----
-154

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - NULLIF ( + CASE + COUNT ( * ) WHEN + 16 * - 99 THEN + 56 * - - COUNT ( * ) + 37 ELSE + COUNT ( * ) * 57 END, - + 4 + 91 * + 19 - - 20 ) - SUM ( DISTINCT 97 )
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT ALL + 59 DIV - - 14 col2
----
4

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + 59 / - - 14 col2
----
4

query I rowsort
SELECT 14 * - 37
----
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL MIN( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL MIN ( - 23 )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-6799
SELECT DISTINCT COUNT( * ) AS col2, + 24 * - + 88 col2
----
1
-2112

skipif mysql # not compatible
query II rowsort label-6799
SELECT DISTINCT COUNT ( * ) AS col2, + 24 * - + 88 col2
----
1
-2112

onlyif mysql # DIV for integer division: 
query I rowsort label-6800
SELECT ( - 27 ) DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-6800
SELECT ( - 27 ) / 62
----
0

query I rowsort
SELECT DISTINCT + 41 * 1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6802
SELECT ALL + CAST( + + 99 AS SIGNED ) * - 18 + - 12
----
-1794

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL + CAST ( + + 99 AS INTEGER ) * - 18 + - 12
----
-1794

query II rowsort
SELECT ALL 5 AS col2, - 82 + - NULLIF ( + - 19, + 96 ) AS col1
----
5
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT - 67 - + 45 / CASE - + ( + + 83 ) WHEN + COUNT( * ) THEN 35 ELSE NULL END + - 80 + - ( + COALESCE ( 61, - 64 + - 37 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6804
SELECT - 67 - + 45 / CASE - + ( + + 83 ) WHEN + COUNT ( * ) THEN 35 ELSE NULL END + - 80 + - ( + COALESCE ( 61, - 64 + - 37 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6805
SELECT - 9, - 18 + + + 70 + - 19 * - COUNT( * ) + 23 col0
----
-9
94

skipif mysql # not compatible
query II rowsort label-6805
SELECT - 9, - 18 + + + 70 + - 19 * - COUNT ( * ) + 23 col0
----
-9
94

query I rowsort
SELECT - 43 + + + 89
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT - CASE + 27 WHEN + 94 / - 79 - - COUNT( * ) THEN + - 91 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6807
SELECT - CASE + 27 WHEN + 94 / - 79 - - COUNT ( * ) THEN + - 91 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT CASE + ( - COUNT( * ) ) WHEN - - 44 THEN - ( - 96 ) * + NULLIF ( + 35, - ( - + ( 9 ) ) * + - 4 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT CASE + ( - COUNT ( * ) ) WHEN - - 44 THEN - ( - 96 ) * + NULLIF ( + 35, - ( - + ( 9 ) ) * + - 4 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT DISTINCT AVG ( ALL + + 49 ) * + COUNT( ALL + 60 ) + + + 5 * + 93 - + CASE AVG ( ALL + 26 ) WHEN + 14 / 6 + + ( 30 ) THEN 88 * - 0 * + AVG ( + 32 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT AVG ( ALL + + 49 ) * + COUNT ( ALL + 60 ) + + + 5 * + 93 - + CASE AVG ( ALL + 26 ) WHEN + 14 / 6 + + ( 30 ) THEN 88 * - 0 * + AVG ( + 32 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6810
SELECT DISTINCT + CAST( - 47 AS SIGNED ) * 69 * - SUM( - 74 ) AS col2
----
-239982

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT + CAST ( - 47 AS INTEGER ) * 69 * - SUM ( - 74 ) AS col2
----
-239982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6811
SELECT + 53 / - + CAST( NULL AS SIGNED ) - - 44 * MAX( 69 ), 92 * + 84 * COUNT( - ( - + 86 ) ) * 48 + 98 AS col2
----
NULL
371042

skipif mysql # not compatible
query II rowsort label-6811
SELECT + 53 / - + CAST ( NULL AS INTEGER ) - - 44 * MAX ( 69 ), 92 * + 84 * COUNT ( - ( - + 86 ) ) * 48 + 98 AS col2
----
NULL
371042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6812
SELECT + 89 - CASE + CAST( NULL AS SIGNED ) WHEN - 88 THEN - - CASE + 39 WHEN + + 60 THEN - + 35 WHEN + - COUNT( * ) + - + 29 THEN NULL END - 67 + - NULLIF ( - 96, 86 * 89 ) * 50 ELSE - 96 - + 73 * CASE 49 - COUNT( * ) WHEN 42 THEN NULL ELSE 88 END END AS col2
----
6609

skipif mysql # not compatible
query I rowsort label-6812
SELECT + 89 - CASE + CAST ( NULL AS INTEGER ) WHEN - 88 THEN - - CASE + 39 WHEN + + 60 THEN - + 35 WHEN + - COUNT ( * ) + - + 29 THEN NULL END - 67 + - NULLIF ( - 96, 86 * 89 ) * 50 ELSE - 96 - + 73 * CASE 49 - COUNT ( * ) WHEN 42 THEN NULL ELSE 88 END END AS col2
----
6609

query II rowsort
SELECT 84 AS col1, 96 AS col1
----
84
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6814
SELECT ALL 78 * - ( + 53 ) * - - SUM( ALL 19 ) + - - ( - NULLIF ( + 6, - + CAST( + - 5 AS SIGNED ) * - 26 / - MIN( ALL 85 ) * - 43 + COUNT( * ) * 67 ) ) + - 72 * - COUNT( DISTINCT - ( 92 ) + 99 / - 97 ) col2
----
-78480

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL 78 * - ( + 53 ) * - - SUM ( ALL 19 ) + - - ( - NULLIF ( + 6, - + CAST ( + - 5 AS INTEGER ) * - 26 / - MIN ( ALL 85 ) * - 43 + COUNT ( * ) * 67 ) ) + - 72 * - COUNT ( DISTINCT - ( 92 ) + 99 / - 97 ) col2
----
-78480

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT + + 84 * 41 DIV + - 34 + - ( - 9 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6815
SELECT + + 84 * 41 / + - 34 + - ( - 9 ) AS col0
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-6816
SELECT - 20 DIV - 88 + 77, 85 col1
----
77
85

skipif mysql # not compatible
query II rowsort label-6816
SELECT - 20 / - 88 + 77, 85 col1
----
77
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6817
SELECT - 24 * 1 - + CASE + 9 WHEN + 44 - - + 70 THEN + 66 - - 60 WHEN + MIN( + 2 ) * - 72 + - + 70 * + 44 - + - 3 THEN 25 * - 84 ELSE + 38 * 72 + + SUM( ALL ( + NULLIF ( - CAST( NULL AS DECIMAL ), 9 + + 33 / + 5 ) ) ) END + 9 * ( + 26 * - 42 + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6817
SELECT - 24 * 1 - + CASE + 9 WHEN + 44 - - + 70 THEN + 66 - - 60 WHEN + MIN ( + 2 ) * - 72 + - + 70 * + 44 - + - 3 THEN 25 * - 84 ELSE + 38 * 72 + + SUM ( ALL ( + NULLIF ( - CAST ( NULL AS REAL ), 9 + + 33 / + 5 ) ) ) END + 9 * ( + 26 * - 42 + 33 )
----
NULL

query I rowsort
SELECT ALL 48 * + 31
----
1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6819
SELECT DISTINCT + CASE + ( + 94 ) WHEN + 43 THEN ( - CAST( NULL AS SIGNED ) ) WHEN MAX( 81 ) THEN 92 WHEN 1 THEN NULL WHEN 19 THEN + 62 * + - 58 ELSE NULL END AS col1, - 57 col2
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-6819
SELECT DISTINCT + CASE + ( + 94 ) WHEN + 43 THEN ( - CAST ( NULL AS INTEGER ) ) WHEN MAX ( 81 ) THEN 92 WHEN 1 THEN NULL WHEN 19 THEN + 62 * + - 58 ELSE NULL END AS col1, - 57 col2
----
NULL
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6820
SELECT DISTINCT + CAST( - SUM( DISTINCT + - 1 ) AS SIGNED ) * + COUNT( * ) + - 64
----
-63

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT + CAST ( - SUM ( DISTINCT + - 1 ) AS INTEGER ) * + COUNT ( * ) + - 64
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6821
SELECT + - COUNT( * ) * - + 19 DIV + 86 * 6 + - ( 9 ) - 0 + ( + + 36 ) * + + 97 + - 47 DIV - 52 * - 12 * 54 + - + 71 DIV - 32 col2
----
3485

skipif mysql # not compatible
query I rowsort label-6821
SELECT + - COUNT ( * ) * - + 19 / + 86 * 6 + - ( 9 ) - 0 + ( + + 36 ) * + + 97 + - 47 / - 52 * - 12 * 54 + - + 71 / - 32 col2
----
3485

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT + COUNT( * ) * - - 99 + 84 - - 17
----
200

skipif mysql # not compatible
query I rowsort label-6822
SELECT + COUNT ( * ) * - - 99 + 84 - - 17
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT + + SUM( ALL - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-6823
SELECT + + SUM ( ALL - 6 )
----
-6

query I rowsort
SELECT ( 34 ) AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6825
SELECT + 20 + + CAST( NULL AS SIGNED ) - + 54 * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6825
SELECT + 20 + + CAST ( NULL AS INTEGER ) - + 54 * + 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6826
SELECT - 94 * - 94 + + + MAX( DISTINCT - 57 ) + - 8 / + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6826
SELECT - 94 * - 94 + + + MAX ( DISTINCT - 57 ) + - 8 / + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT - - 76 * + - 70 + - - 66 + 54
----
-5200

query I rowsort
SELECT ALL COALESCE ( - 90, + 31 ) AS col1
----
-90

query I rowsort
SELECT 82 * - - 19 - + + 10
----
1548

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT DISTINCT COUNT( * ) AS col2, - 9
----
1
-9

skipif mysql # not compatible
query II rowsort label-6830
SELECT DISTINCT COUNT ( * ) AS col2, - 9
----
1
-9

query I rowsort
SELECT ALL + 54 * + 92 AS col1
----
4968

query I rowsort
SELECT DISTINCT + 46 * 41 AS col0
----
1886

query I rowsort
SELECT + 74 * 41
----
3034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6834
SELECT ALL + CAST( - 45 AS SIGNED ) * + 7 AS col0
----
-315

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + CAST ( - 45 AS INTEGER ) * + 7 AS col0
----
-315

query I rowsort
SELECT - 91 + - 77
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT - MIN( DISTINCT + ( - 64 ) )
----
64

skipif mysql # not compatible
query I rowsort label-6836
SELECT - MIN ( DISTINCT + ( - 64 ) )
----
64

query I rowsort
SELECT - 67 + - 30 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT ALL - 28 + + COUNT( * ) + + + 91
----
64

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - 28 + + COUNT ( * ) + + + 91
----
64

query I rowsort
SELECT - 44 + 24 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6840
SELECT - 7, - COUNT( * ) * 71 + + + 33 + 51 + + 5 * - 86 AS col2
----
-7
-417

skipif mysql # not compatible
query II rowsort label-6840
SELECT - 7, - COUNT ( * ) * 71 + + + 33 + 51 + + 5 * - 86 AS col2
----
-7
-417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT DISTINCT - 10 + + COALESCE ( - 76, 88 ) DIV - + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT - 10 + + COALESCE ( - 76, 88 ) / - + COUNT ( * ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL + 56 + + SUM( - + 68 ) * + + 79 AS col1
----
-5316

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL + 56 + + SUM ( - + 68 ) * + + 79 AS col1
----
-5316

query II rowsort
SELECT ALL 8 + - 54 + - ( + ( - 42 ) ) * + - 4 AS col1, 18
----
-214
18

query I rowsort
SELECT ALL 25 * - 1
----
-25

query I rowsort
SELECT DISTINCT - 11 + 53 + 5
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6846
SELECT CAST( - NULLIF ( - + 75, + - 74 ) AS SIGNED ), + COUNT( - - 31 ) * + 59 AS col2
----
75
59

skipif mysql # not compatible
query II rowsort label-6846
SELECT CAST ( - NULLIF ( - + 75, + - 74 ) AS INTEGER ), + COUNT ( - - 31 ) * + 59 AS col2
----
75
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6847
SELECT ALL ( + - COUNT( ALL + 52 ) ) DIV - 96 + 81 + + 19 + - - 26
----
126

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL ( + - COUNT ( ALL + 52 ) ) / - 96 + 81 + + 19 + - - 26
----
126

query I rowsort
SELECT - 78 * - - 15 AS col1
----
-1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6849
SELECT - - ( + 84 ) + - + 90 DIV 79 col1, 36 + MIN( DISTINCT 83 )
----
83
119

skipif mysql # not compatible
query II rowsort label-6849
SELECT - - ( + 84 ) + - + 90 / 79 col1, 36 + MIN ( DISTINCT 83 )
----
83
119

query I rowsort
SELECT - 79 * 84
----
-6636

query I rowsort
SELECT + 49 + + 8
----
57

query I rowsort
SELECT - + 19 + + COALESCE ( 96, + 53 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL - ( - COALESCE ( - + 25, - 20 ) ) / CASE WHEN NULL BETWEEN ( NULL ) AND 66 AND ( 32 ) = ( 37 * - ( + - CASE + - MIN( DISTINCT - 67 ) WHEN + ( + - 38 ) * - 14 THEN NULL WHEN 25 + CASE 62 + AVG ( DISTINCT 48 ) WHEN + 62 THEN ( + 10 ) END THEN NULL ELSE - 44 END ) ) THEN COUNT( * ) * 6 - 79 / + 29 END - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - ( - COALESCE ( - + 25, - 20 ) ) / CASE WHEN NULL BETWEEN ( NULL ) AND 66 AND ( 32 ) = ( 37 * - ( + - CASE + - MIN ( DISTINCT - 67 ) WHEN + ( + - 38 ) * - 14 THEN NULL WHEN 25 + CASE 62 + AVG ( DISTINCT 48 ) WHEN + 62 THEN ( + 10 ) END THEN NULL ELSE - 44 END ) ) THEN COUNT ( * ) * 6 - 79 / + 29 END - 26 AS col2
----
NULL

query I rowsort
SELECT + + 70 * - - 53 * + 76
----
281960

query I rowsort
SELECT + 55 * + - 98 + + 32 * - 85
----
-8110

query I rowsort
SELECT ALL + 51 col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6857
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) * - - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - - 27 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6858
SELECT - CAST( + + COUNT( * ) AS SIGNED ) * CAST( - 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-6858
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) * CAST ( - 72 AS INTEGER )
----
72

query II rowsort
SELECT + 31, 30 AS col1
----
31
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6860
SELECT - 67 * + 63 + - 42 + + COUNT( * ) DIV 35 AS col1
----
-4263

skipif mysql # not compatible
query I rowsort label-6860
SELECT - 67 * + 63 + - 42 + + COUNT ( * ) / 35 AS col1
----
-4263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6861
SELECT + MIN( 31 ) / ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6861
SELECT + MIN ( 31 ) / ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6862
SELECT ALL 48 * 69 - 6 + - 58 AS col1, 9 + + NULLIF ( + + COUNT( * ), + 73 + + 33 )
----
3248
10

skipif mysql # not compatible
query II rowsort label-6862
SELECT ALL 48 * 69 - 6 + - 58 AS col1, 9 + + NULLIF ( + + COUNT ( * ), + 73 + + 33 )
----
3248
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6863
SELECT + SUM( + 52 ), + 4 AS col1
----
52
4

skipif mysql # not compatible
query II rowsort label-6863
SELECT + SUM ( + 52 ), + 4 AS col1
----
52
4

query II rowsort
SELECT + + 97, - 15 AS col1
----
97
-15

query II rowsort
SELECT DISTINCT + 41, - 72 AS col0
----
41
-72

query I rowsort
SELECT + 27 * - + 97 * 18 AS col1
----
-47142

query I rowsort
SELECT ALL ( - - 10 ) col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6868
SELECT ALL SUM( + 5 ) col1, 42 + - + 95 DIV - SUM( ALL - - 50 ) + + - ( + 47 ) - + ( - COUNT( * ) ) AS col2
----
5
-3

skipif mysql # not compatible
query II rowsort label-6868
SELECT ALL SUM ( + 5 ) col1, 42 + - + 95 / - SUM ( ALL - - 50 ) + + - ( + 47 ) - + ( - COUNT ( * ) ) AS col2
----
5
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6869
SELECT - 80 DIV - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6869
SELECT - 80 / - 92 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6870
SELECT DISTINCT COUNT( * ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 65 + ( + 57 ) * + - 31 + 27 + - - 97
----
-1578

query I rowsort
SELECT DISTINCT + 42 + + + 82 col1
----
124

query I rowsort
SELECT DISTINCT + 78 + + 62 + - 77 + - - 78 col0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6874
SELECT ALL - 24 + - 89 * + 75 AS col1, + 16 - - CAST( 11 AS SIGNED ) AS col1
----
-6699
27

skipif mysql # not compatible
query II rowsort label-6874
SELECT ALL - 24 + - 89 * + 75 AS col1, + 16 - - CAST ( 11 AS INTEGER ) AS col1
----
-6699
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT DISTINCT - 6 + COUNT( * ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - 6 + COUNT ( * ) col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6876
SELECT 74 * + - COUNT( * ) / + ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6876
SELECT 74 * + - COUNT ( * ) / + ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT ALL - 24 + - COUNT( DISTINCT + 90 )
----
-25

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL - 24 + - COUNT ( DISTINCT + 90 )
----
-25

query I rowsort
SELECT 45 * ( + 77 ) * 7
----
24255

query I rowsort
SELECT 64 + + + COALESCE ( + 32, 84 - - - 62 * 59 ) * + ( - - ( + - 73 ) )
----
-2272

onlyif mysql # aggregate syntax: 
query II rowsort label-6880
SELECT 0 * - - 58, - COUNT( * ) col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-6880
SELECT 0 * - - 58, - COUNT ( * ) col0
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT + 77 + + - ( - 1 ) * - SUM( + 39 ) * + MIN( DISTINCT + 53 ) * 33
----
-68134

skipif mysql # not compatible
query I rowsort label-6881
SELECT + 77 + + - ( - 1 ) * - SUM ( + 39 ) * + MIN ( DISTINCT + 53 ) * 33
----
-68134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6882
SELECT - CAST( + COUNT( 14 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6882
SELECT - CAST ( + COUNT ( 14 ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL - 4 - - + 71
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT 86 * + COUNT( * ) + + 66 * + - 62
----
-4006

skipif mysql # not compatible
query I rowsort label-6884
SELECT 86 * + COUNT ( * ) + + 66 * + - 62
----
-4006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6885
SELECT + 52 / + + 67 - + - 93 + 58 + - 88 * + - 4 * + 77 / CASE + CAST( COUNT( * ) AS SIGNED ) WHEN + 53 - COUNT( - - 2 ) THEN + + 29 WHEN - 9 * 51 + + 87 THEN - 94 + 75 END / COUNT( * ) * - 16 * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT + 52 / + + 67 - + - 93 + 58 + - 88 * + - 4 * + 77 / CASE + CAST ( COUNT ( * ) AS INTEGER ) WHEN + 53 - COUNT ( - - 2 ) THEN + + 29 WHEN - 9 * 51 + + 87 THEN - 94 + 75 END / COUNT ( * ) * - 16 * 3
----
NULL

query I rowsort
SELECT DISTINCT 57 * + 59 * + 54 col0
----
181602

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT 66 DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-6887
SELECT 66 / - + 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6888
SELECT + + ( 4 ) DIV - 80 * + 30 * 3 + - 74 DIV 18
----
-4

skipif mysql # not compatible
query I rowsort label-6888
SELECT + + ( 4 ) / - 80 * + 30 * 3 + - 74 / 18
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT + + ( - SUM( - + 99 ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6889
SELECT + + ( - SUM ( - + 99 ) ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT COUNT( 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6890
SELECT COUNT ( 29 ) AS col2
----
1

query I rowsort
SELECT ALL - - 77 * - 47 AS col2
----
-3619

query I rowsort
SELECT DISTINCT - CASE ( 58 ) WHEN - ( - 17 ) THEN - - 32 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT ALL - 55 + MAX( + 7 ) * + - 53
----
-426

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL - 55 + MAX ( + 7 ) * + - 53
----
-426

query II rowsort
SELECT 36 AS col1, - ( + 88 ) + + 92
----
36
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT COUNT( * ) + - COUNT( * ) * - MIN( ALL - 67 ) + 66
----
0

skipif mysql # not compatible
query I rowsort label-6895
SELECT COUNT ( * ) + - COUNT ( * ) * - MIN ( ALL - 67 ) + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT ALL MAX( DISTINCT - 31 ) + - 56 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL MAX ( DISTINCT - 31 ) + - 56 AS col1
----
-87

query I rowsort
SELECT 30 + - 6 * - 52 * + 24
----
7518

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6898
SELECT - 85 * 80 DIV - - CAST( 84 AS SIGNED ) + 66 * - 65 + 69 AS col1
----
-4301

skipif mysql # not compatible
query I rowsort label-6898
SELECT - 85 * 80 / - - CAST ( 84 AS INTEGER ) + 66 * - 65 + 69 AS col1
----
-4301

query II rowsort
SELECT 92 AS col2, - 47 + 62
----
92
15

query I rowsort
SELECT ALL 56 + + + 38 + 91 AS col0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT DISTINCT COUNT( DISTINCT - COALESCE ( 38, ( - 19 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT COUNT ( DISTINCT - COALESCE ( 38, ( - 19 ) ) ) AS col0
----
1

query I rowsort
SELECT ALL 32 + 50
----
82

query II rowsort
SELECT 73, 21 AS col2
----
73
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT CASE + - 13 WHEN 57 THEN - 2 ELSE - 93 END * - 56 * 32 + 41 * + COUNT( * ) AS col1
----
166697

skipif mysql # not compatible
query I rowsort label-6904
SELECT CASE + - 13 WHEN 57 THEN - 2 ELSE - 93 END * - 56 * 32 + 41 * + COUNT ( * ) AS col1
----
166697

query I rowsort
SELECT 84 + + 61 * + - 22
----
-1258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6906
SELECT 55 + - COUNT( * ) + 62 DIV + + 94 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6906
SELECT 55 + - COUNT ( * ) + 62 / + + 94 AS col1
----
54

query I rowsort
SELECT 93 * 29
----
2697

onlyif mysql # DIV for integer division: 
query I rowsort label-6908
SELECT ALL 49 DIV + 2 col2
----
24

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL 49 / + 2 col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6909
SELECT - COUNT( * ) AS col2, - 87
----
-1
-87

skipif mysql # not compatible
query II rowsort label-6909
SELECT - COUNT ( * ) AS col2, - 87
----
-1
-87

query I rowsort
SELECT ALL - 93 - - 54
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6911
SELECT - 70 * 33 * + 84 DIV - ( ( COUNT( * ) ) ) AS col1
----
194040

skipif mysql # not compatible
query I rowsort label-6911
SELECT - 70 * 33 * + 84 / - ( ( COUNT ( * ) ) ) AS col1
----
194040

query II rowsort
SELECT ALL - 52, 95 * + - 67 + + - 84 AS col1
----
-52
-6449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6913
SELECT - MAX( + 77 ) + - + 46 * + 94 - - MIN( DISTINCT 71 ) * - CASE 37 WHEN + COUNT( ALL 3 ) + CAST( + NULLIF ( - - 72, + 83 - ( + 33 ) ) AS SIGNED ) + 29 * COUNT( - 64 ) + 0 * 53 THEN + ( + 18 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT - MAX ( + 77 ) + - + 46 * + 94 - - MIN ( DISTINCT 71 ) * - CASE 37 WHEN + COUNT ( ALL 3 ) + CAST ( + NULLIF ( - - 72, + 83 - ( + 33 ) ) AS INTEGER ) + 29 * COUNT ( - 64 ) + 0 * 53 THEN + ( + 18 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT ALL - COUNT( * ) * - - 66
----
-66

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL - COUNT ( * ) * - - 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT COUNT( * ) * - 26 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-6915
SELECT COUNT ( * ) * - 26 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT - COUNT( * ) + + 80 - 92 - + 52 * - 84 col0
----
4355

skipif mysql # not compatible
query I rowsort label-6916
SELECT - COUNT ( * ) + + 80 - 92 - + 52 * - 84 col0
----
4355

query I rowsort
SELECT - + ( - 22 ) AS col2
----
22

query II rowsort
SELECT + 43 col0, 83
----
43
83

query I rowsort
SELECT ALL - + 4 * - - 43
----
-172

query I rowsort
SELECT 11 + + 99 * - 86 - + 88 AS col0
----
-8591

query I rowsort
SELECT + CASE - 85 WHEN 16 THEN NULL WHEN - 78 THEN + - 75 END col2
----
NULL

query I rowsort
SELECT 70 + + 23 col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6923
SELECT COUNT( * ), + 81 AS col1
----
1
81

skipif mysql # not compatible
query II rowsort label-6923
SELECT COUNT ( * ), + 81 AS col1
----
1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT DISTINCT - COALESCE ( + 28, - + 98, + + 2 * - ( 94 ) + - 67 + - COUNT( * ) + - ( 80 ) + - ( ( 8 ) ) + COUNT( * ) * - 0 * - 21 + - NULLIF ( 9, 57 + 12 / COUNT( * ) ) * 79, + 66 * + 86 + 86 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT - COALESCE ( + 28, - + 98, + + 2 * - ( 94 ) + - 67 + - COUNT ( * ) + - ( 80 ) + - ( ( 8 ) ) + COUNT ( * ) * - 0 * - 21 + - NULLIF ( 9, 57 + 12 / COUNT ( * ) ) * 79, + 66 * + 86 + 86 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT ALL - - MAX( + 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL - - MAX ( + 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-6926
SELECT ALL - - 44 AS col1, + SUM( DISTINCT 94 ) * + ( - 6 ) + - + 5 * + 41 col1
----
44
-769

skipif mysql # not compatible
query II rowsort label-6926
SELECT ALL - - 44 AS col1, + SUM ( DISTINCT 94 ) * + ( - 6 ) + - + 5 * + 41 col1
----
44
-769

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT DISTINCT + 99 DIV - 97 + 52
----
51

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT + 99 / - 97 + 52
----
51

query I rowsort
SELECT + 36 + 96 + 57
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT ALL + NULLIF ( - + COUNT( * ), + COUNT( * ) ) * + 5 - - 10 * - 41 + + - 15 + - + 27 * - 25
----
245

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL + NULLIF ( - + COUNT ( * ), + COUNT ( * ) ) * + 5 - - 10 * - 41 + + - 15 + - + 27 * - 25
----
245

query I rowsort
SELECT DISTINCT + - 87 * + 12
----
-1044

query I rowsort
SELECT - 51 * + + 19
----
-969

query I rowsort
SELECT ALL + ( - 31 ) * - + 86 + + 64 AS col1
----
2730

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT - 68 DIV - ( - + 74 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6933
SELECT - 68 / - ( - + 74 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT MAX( ALL 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6934
SELECT MAX ( ALL 87 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-6935
SELECT ALL - 24 + - CASE WHEN NOT ( NULL ) IN ( + ( + + 40 ), - 58, - + 32 ) THEN - + 65 - - + 22 * - COUNT( * ) + 97 END, + 24 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-6935
SELECT ALL - 24 + - CASE WHEN NOT ( NULL ) IN ( + ( + + 40 ), - 58, - + 32 ) THEN - + 65 - - + 22 * - COUNT ( * ) + 97 END, + 24 AS col2
----
NULL
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6936
SELECT DISTINCT - CASE 30 WHEN 88 * + 46 THEN + CAST( NULL AS SIGNED ) * - + 10 ELSE NULL END * + AVG ( - 41 ) - 83 AS col0, + COUNT( * ) * + 57 * + 24 + - 34 AS col0
----
NULL
1334

skipif mysql # not compatible
query II rowsort label-6936
SELECT DISTINCT - CASE 30 WHEN 88 * + 46 THEN + CAST ( NULL AS INTEGER ) * - + 10 ELSE NULL END * + AVG ( - 41 ) - 83 AS col0, + COUNT ( * ) * + 57 * + 24 + - 34 AS col0
----
NULL
1334

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT DISTINCT 91 + - COUNT( * ) + + - 82
----
8

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT 91 + - COUNT ( * ) + + - 82
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6938
SELECT DISTINCT + ( - COUNT( * ) ) + - MAX( DISTINCT - COALESCE ( + + 79, + 75 DIV - 80 ) ) * - + 79
----
-6242

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT + ( - COUNT ( * ) ) + - MAX ( DISTINCT - COALESCE ( + + 79, + 75 / - 80 ) ) * - + 79
----
-6242

query I rowsort
SELECT - 2 - - 51 AS col2
----
49

query I rowsort
SELECT DISTINCT 8 * + + 52 * + 16
----
6656

onlyif mysql # DIV for integer division: 
query I rowsort label-6941
SELECT DISTINCT + 89 DIV + 77
----
1

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT + 89 / + 77
----
1

query I rowsort
SELECT ALL + 77 - - - 28
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6943
SELECT + ( 24 ) AS col2, + CAST( + - 28 AS SIGNED ) - + ( - + 43 ) + - - 2 * - - NULLIF ( 50, 80 ) + + 38
----
24
153

skipif mysql # not compatible
query II rowsort label-6943
SELECT + ( 24 ) AS col2, + CAST ( + - 28 AS INTEGER ) - + ( - + 43 ) + - - 2 * - - NULLIF ( 50, 80 ) + + 38
----
24
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6944
SELECT + 4 * + + 86 * + - NULLIF ( - 7, - 50 ) DIV COUNT( * ) * - 90 + + 45
----
-216675

skipif mysql # not compatible
query I rowsort label-6944
SELECT + 4 * + + 86 * + - NULLIF ( - 7, - 50 ) / COUNT ( * ) * - 90 + + 45
----
-216675

query I rowsort
SELECT + + 22 + - 63
----
-41

query I rowsort
SELECT ALL ( + 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT + SUM( + 14 ) + 97
----
111

skipif mysql # not compatible
query I rowsort label-6947
SELECT + SUM ( + 14 ) + 97
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6948
SELECT ALL + + 73 / - COUNT( * ) - - COALESCE ( - + COUNT( * ), - + COUNT( * ) / COALESCE ( + - 47, + - 18 ) ) + - NULLIF ( 15, + COUNT( * ) ) + - 15 * + MAX( DISTINCT 79 ) + - + 45 + - 14 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL + + 73 / - COUNT ( * ) - - COALESCE ( - + COUNT ( * ), - + COUNT ( * ) / COALESCE ( + - 47, + - 18 ) ) + - NULLIF ( 15, + COUNT ( * ) ) + - 15 * + MAX ( DISTINCT 79 ) + - + 45 + - 14 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6949
SELECT + 73 * + MIN( 10 ) + + 71, ( 65 ) AS col1
----
801
65

skipif mysql # not compatible
query II rowsort label-6949
SELECT + 73 * + MIN ( 10 ) + + 71, ( 65 ) AS col1
----
801
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT + 27 + + 20 - + - MIN( ALL - 88 ) + - 37 + + - 81 - + 34 * - 12 AS col1
----
249

skipif mysql # not compatible
query I rowsort label-6950
SELECT + 27 + + 20 - + - MIN ( ALL - 88 ) + - 37 + + - 81 - + 34 * - 12 AS col1
----
249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6951
SELECT + CAST( ( + ( COUNT( * ) ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6951
SELECT + CAST ( ( + ( COUNT ( * ) ) ) AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT + ( 97 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6953
SELECT ALL + 65 DIV + 16
----
4

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL + 65 / + 16
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6954
SELECT - CAST( 6 AS SIGNED ) * ( + COUNT( * ) ) + - 34 + 34 * - - 20 * - 17 AS col1
----
-11600

skipif mysql # not compatible
query I rowsort label-6954
SELECT - CAST ( 6 AS INTEGER ) * ( + COUNT ( * ) ) + - 34 + 34 * - - 20 * - 17 AS col1
----
-11600

query I rowsort
SELECT - 79 + - - 11 col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6956
SELECT CAST( ( + 69 ) AS SIGNED ) * + ( - COUNT( * ) ) - - 74
----
5

skipif mysql # not compatible
query I rowsort label-6956
SELECT CAST ( ( + 69 ) AS INTEGER ) * + ( - COUNT ( * ) ) - - 74
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT ALL ( - 6 ) * 77 - + 26 - SUM( DISTINCT + 81 ) AS col2
----
-569

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL ( - 6 ) * 77 - + 26 - SUM ( DISTINCT + 81 ) AS col2
----
-569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6958
SELECT ALL CAST( + 73 AS SIGNED ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL CAST ( + 73 AS INTEGER ) AS col0
----
73

query I rowsort
SELECT DISTINCT ( - - 86 )
----
86

query I rowsort
SELECT - 1 + - 68 * + 65 + + + 41
----
-4380

query I rowsort
SELECT ALL ( - 19 ) col0
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-6962
SELECT - + 42 * + 20 * - 92 AS col0, - 6 * + 50 + 21 + - - 21 DIV 55 + - 28
----
77280
-307

skipif mysql # not compatible
query II rowsort label-6962
SELECT - + 42 * + 20 * - 92 AS col0, - 6 * + 50 + 21 + - - 21 / 55 + - 28
----
77280
-307

onlyif mysql # DIV for integer division: 
query II rowsort label-6963
SELECT - + ( + 46 ) + + 88 AS col0, + 92 DIV + - 43
----
42
-2

skipif mysql # not compatible
query II rowsort label-6963
SELECT - + ( + 46 ) + + 88 AS col0, + 92 / + - 43
----
42
-2

query II rowsort
SELECT DISTINCT 27 AS col0, + 14 AS col2
----
27
14

query I rowsort
SELECT DISTINCT + - 20 + - 11 + + + 94
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6966
SELECT - 89, - 35 - - 13 + - 64 * CAST( ( - 68 ) AS SIGNED ) + - 93 AS col1, 27 * - 58 AS col0
----
-89
4237
-1566

skipif mysql # not compatible
query III rowsort label-6966
SELECT - 89, - 35 - - 13 + - 64 * CAST ( ( - 68 ) AS INTEGER ) + - 93 AS col1, 27 * - 58 AS col0
----
-89
4237
-1566

query I rowsort
SELECT DISTINCT 8 + + - 95 col0
----
-87

query I rowsort
SELECT ALL + 41 + - 37
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT + + COUNT( * ) + - + 68 * + 36 + 87 AS col2
----
-2360

skipif mysql # not compatible
query I rowsort label-6969
SELECT + + COUNT ( * ) + - + 68 * + 36 + 87 AS col2
----
-2360

query I rowsort
SELECT DISTINCT - ( + ( - 61 ) ) * + + 38
----
2318

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6971
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) / - 90 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) / - 90 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6972
SELECT - COUNT( * ) * NULLIF ( - - 56, + 13 ) + 97 AS col0, 54 AS col2
----
41
54

skipif mysql # not compatible
query II rowsort label-6972
SELECT - COUNT ( * ) * NULLIF ( - - 56, + 13 ) + 97 AS col0, 54 AS col2
----
41
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT ALL - - CASE - COUNT( * ) WHEN 21 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL - - CASE - COUNT ( * ) WHEN 21 THEN - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 92 + + - ( 98 ) * + 45 AS col0
----
-4318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6975
SELECT + 71 + - CAST( NULL AS SIGNED ) + + 29 / - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT + 71 + - CAST ( NULL AS INTEGER ) + + 29 / - 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6976
SELECT COUNT( * ) + 91 * + + 69 - + CASE - 53 WHEN + 34 + + 26 THEN + - 11 ELSE NULL END, + 55 - + 91 AS col2
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-6976
SELECT COUNT ( * ) + 91 * + + 69 - + CASE - 53 WHEN + 34 + + 26 THEN + - 11 ELSE NULL END, + 55 - + 91 AS col2
----
NULL
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT ALL + 89 / - + COUNT( * ) * + + CASE - SUM( - + 62 ) WHEN 76 THEN - 97 / 53 * + MAX( ( + 72 ) ) + - 94 - - 59 * - 23 + + 68 * + ( 99 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL + 89 / - + COUNT ( * ) * + + CASE - SUM ( - + 62 ) WHEN 76 THEN - 97 / 53 * + MAX ( ( + 72 ) ) + - 94 - - 59 * - 23 + + 68 * + ( 99 ) END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6978
SELECT ALL - COUNT( * ), AVG ( + - 90 ) + COUNT( DISTINCT + 5 ) * 21 * - - CAST( NULL AS SIGNED ) + - 69 - - + ( + 39 ) + 72 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6978
SELECT ALL - COUNT ( * ), AVG ( + - 90 ) + COUNT ( DISTINCT + 5 ) * 21 * - - CAST ( NULL AS INTEGER ) + - 69 - - + ( + 39 ) + 72 AS col1
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6979
SELECT DISTINCT CAST( NULL AS SIGNED ) - + + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + + 50 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6980
SELECT 97 DIV + NULLIF ( - 34, - + 98 ) + - 24 col0
----
-26

skipif mysql # not compatible
query I rowsort label-6980
SELECT 97 / + NULLIF ( - 34, - + 98 ) + - 24 col0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-6981
SELECT ALL - 4 AS col1, + COUNT( DISTINCT + 62 )
----
-4
1

skipif mysql # not compatible
query II rowsort label-6981
SELECT ALL - 4 AS col1, + COUNT ( DISTINCT + 62 )
----
-4
1

query II rowsort
SELECT + 45 col1, - 16 + + 47 + + 89
----
45
120

query I rowsort
SELECT DISTINCT - 61 - - 71
----
10

query II rowsort
SELECT ALL - 9, - CASE + 5 WHEN 16 THEN 81 ELSE NULL END / - + 81 col0
----
-9
NULL

query III rowsort
SELECT 84 * 38 AS col2, 56 * - + 43 AS col0, 69 AS col0
----
3192
-2408
69

query II rowsort
SELECT ALL - 54, - ( - 35 ) AS col0
----
-54
35

query II rowsort
SELECT 5 col1, 72 AS col1
----
5
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6988
SELECT 73 DIV - - 55 col1
----
1

skipif mysql # not compatible
query I rowsort label-6988
SELECT 73 / - - 55 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6989
SELECT 9 * + - 74 * - 57 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT 9 * + - 74 * - 57 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6990
SELECT 80 - 75 DIV - + 27 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6990
SELECT 80 - 75 / - + 27 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL + - COUNT( * ) + + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL + - COUNT ( * ) + + + COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT 45 DIV - + 47
----
0

skipif mysql # not compatible
query I rowsort label-6992
SELECT 45 / - + 47
----
0

query I rowsort
SELECT + 30 * 54 AS col1
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT COUNT( ALL + 69 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6994
SELECT COUNT ( ALL + 69 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6995
SELECT DISTINCT 9 + + SUM( DISTINCT + 2 ) DIV - 32 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT 9 + + SUM ( DISTINCT + 2 ) / - 32 AS col2
----
9

query I rowsort
SELECT - - COALESCE ( + + 60, - 45 )
----
60

query I rowsort
SELECT 56 - 40 + + + 27
----
43

query II rowsort
SELECT ALL 6 AS col0, + 6 - + 31 * - 16 AS col0
----
6
502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6999
SELECT - 80 * - CAST( NULL AS SIGNED ) * + 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6999
SELECT - 80 * - CAST ( NULL AS INTEGER ) * + 19 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT - MAX( ALL + 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-7000
SELECT - MAX ( ALL + 92 )
----
-92

query I rowsort
SELECT DISTINCT - + 93 + + 4 + + ( + + 28 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-7002
SELECT + 29 AS col0, - 85 * - COUNT( * ) * - + ( - 80 ) + + - COUNT( * ) AS col0
----
29
6799

skipif mysql # not compatible
query II rowsort label-7002
SELECT + 29 AS col0, - 85 * - COUNT ( * ) * - + ( - 80 ) + + - COUNT ( * ) AS col0
----
29
6799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7003
SELECT NULLIF ( 34, 75 ) * - + CAST( + + 35 AS SIGNED ) AS col2
----
-1190

skipif mysql # not compatible
query I rowsort label-7003
SELECT NULLIF ( 34, 75 ) * - + CAST ( + + 35 AS INTEGER ) AS col2
----
-1190

query I rowsort
SELECT 27 + ( + 72 ) - - - 75
----
24

query I rowsort
SELECT - COALESCE ( - 21, + 16 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT DISTINCT + 60 * - 6 * + 43 + + - 63 col0, 41 * + COUNT( * ) * - 54 * + - ( 37 )
----
-15543
81918

skipif mysql # not compatible
query II rowsort label-7006
SELECT DISTINCT + 60 * - 6 * + 43 + + - 63 col0, 41 * + COUNT ( * ) * - 54 * + - ( 37 )
----
-15543
81918

query I rowsort
SELECT 4 * - + 7 AS col0
----
-28

query I rowsort
SELECT ALL 21 * 18
----
378

query I rowsort
SELECT ALL 92 - + 4
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7010
SELECT + CAST( NULL AS SIGNED ) * + 29 + + 17 + + 40 * - - 46, 30 * - CASE + 0 WHEN - ( - ( + 68 ) ) THEN - CASE + - COUNT( * ) WHEN + + 93 - + 79 THEN NULL WHEN - + 1 DIV - 4 + - 57 THEN - - 30 DIV - - AVG ( 89 ) ELSE NULL END ELSE + + 73 END col2
----
NULL
-2190

skipif mysql # not compatible
query II rowsort label-7010
SELECT + CAST ( NULL AS INTEGER ) * + 29 + + 17 + + 40 * - - 46, 30 * - CASE + 0 WHEN - ( - ( + 68 ) ) THEN - CASE + - COUNT ( * ) WHEN + + 93 - + 79 THEN NULL WHEN - + 1 / - 4 + - 57 THEN - - 30 / - - AVG ( 89 ) ELSE NULL END ELSE + + 73 END col2
----
NULL
-2190

query I rowsort
SELECT ALL - ( + 45 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT 39 * - - ( COUNT( * ) ) * + 51
----
1989

skipif mysql # not compatible
query I rowsort label-7012
SELECT 39 * - - ( COUNT ( * ) ) * + 51
----
1989

query II rowsort
SELECT ALL - 65 * - - 59, 28 AS col1
----
-3835
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT COUNT( DISTINCT - 9 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7014
SELECT COUNT ( DISTINCT - 9 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7015
SELECT MIN( DISTINCT + ( + + 79 ) ) DIV + 59 + - 34 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-7015
SELECT MIN ( DISTINCT + ( + + 79 ) ) / + 59 + - 34 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT 65 * - COUNT( 77 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-7016
SELECT 65 * - COUNT ( 77 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT COUNT( ALL 90 )
----
1

skipif mysql # not compatible
query I rowsort label-7017
SELECT COUNT ( ALL 90 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT DISTINCT - COALESCE ( + - 34, - COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT - COALESCE ( + - 34, - COUNT ( * ) )
----
34

query I rowsort
SELECT DISTINCT - 30 * + - 25
----
750

query I rowsort
SELECT DISTINCT 25 * + 67
----
1675

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT 19 * + + 29 * - + COUNT( * )
----
-551

skipif mysql # not compatible
query I rowsort label-7021
SELECT 19 * + + 29 * - + COUNT ( * )
----
-551

query II rowsort
SELECT 89 + + - 30 AS col2, 20 AS col2
----
59
20

query I rowsort
SELECT 67 * + 49 - + + 77
----
3206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL CAST( - 85 AS SIGNED ) + COUNT( - - 17 ) * - 58 + 36
----
-107

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL CAST ( - 85 AS INTEGER ) + COUNT ( - - 17 ) * - 58 + 36
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT DISTINCT + 96 + - MAX( ALL + - 32 )
----
128

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT + 96 + - MAX ( ALL + - 32 )
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7026
SELECT 24 + MAX( ALL + 54 ) + + 32 * + 95 AS col1, + COUNT( * ) * + - 0 * - - 41 * - COALESCE ( - COALESCE ( 26, 74 ), + + 64 * - COALESCE ( + + 86, - 99 ) - + CAST( 13 AS SIGNED ), + ( COUNT( + - 33 ) ) + + 92 ) + 52
----
3118
52

skipif mysql # not compatible
query II rowsort label-7026
SELECT 24 + MAX ( ALL + 54 ) + + 32 * + 95 AS col1, + COUNT ( * ) * + - 0 * - - 41 * - COALESCE ( - COALESCE ( 26, 74 ), + + 64 * - COALESCE ( + + 86, - 99 ) - + CAST ( 13 AS INTEGER ), + ( COUNT ( + - 33 ) ) + + 92 ) + 52
----
3118
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7027
SELECT ALL SUM( + - 96 ) col1, + 19 AS col1
----
-96
19

skipif mysql # not compatible
query II rowsort label-7027
SELECT ALL SUM ( + - 96 ) col1, + 19 AS col1
----
-96
19

query I rowsort
SELECT + - 82 * + - 78 - - 38 * 36 + - 90 + + 26
----
7700

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT DISTINCT - 71 DIV - COALESCE ( + 96, + 24 )
----
0

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT - 71 / - COALESCE ( + 96, + 24 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7030
SELECT ALL + COUNT( * ) + 26, 73 col0
----
27
73

skipif mysql # not compatible
query II rowsort label-7030
SELECT ALL + COUNT ( * ) + 26, 73 col0
----
27
73

query I rowsort
SELECT - - ( 35 ) + 32
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT - ( 87 ) AS col2, - COUNT( * ) AS col1
----
-87
-1

skipif mysql # not compatible
query II rowsort label-7032
SELECT - ( 87 ) AS col2, - COUNT ( * ) AS col1
----
-87
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7033
SELECT - + 52 + - + COUNT( * ) DIV - 72 * - 97 + - + 78 * + 4
----
-364

skipif mysql # not compatible
query I rowsort label-7033
SELECT - + 52 + - + COUNT ( * ) / - 72 * - 97 + - + 78 * + 4
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT + SUM( ALL - - 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7034
SELECT + SUM ( ALL - - 62 ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7035
SELECT - ( + + COALESCE ( - CAST( - 25 AS SIGNED ), + ( ( - - COUNT( * ) ) ) * MIN( 11 ) + - - 0 * - - NULLIF ( + NULLIF ( 34, - + MAX( DISTINCT - - 75 ) * + 42 * - + NULLIF ( + - COUNT( * ), - 20 ) ), - NULLIF ( + - 47, - - 36 + - ( 45 ) + 92 ) ) DIV + 99 ) ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-7035
SELECT - ( + + COALESCE ( - CAST ( - 25 AS INTEGER ), + ( ( - - COUNT ( * ) ) ) * MIN ( 11 ) + - - 0 * - - NULLIF ( + NULLIF ( 34, - + MAX ( DISTINCT - - 75 ) * + 42 * - + NULLIF ( + - COUNT ( * ), - 20 ) ), - NULLIF ( + - 47, - - 36 + - ( 45 ) + 92 ) ) / + 99 ) ) col2
----
-25

query II rowsort
SELECT 33 col2, 5
----
33
5

query II rowsort
SELECT ALL NULLIF ( - 31, - - 63 ) AS col0, 35 AS col1
----
-31
35

query I rowsort
SELECT - 68 * 41
----
-2788

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT NULLIF ( - SUM( DISTINCT - 6 ), + 13 * - - 5 * 75 * - MIN( - 74 ) ) / - CASE + 96 WHEN - 49 THEN + 28 WHEN + - 76 * 15 * + 33 - - 89 * 16 * 81 * + 53 / - COUNT( * ) + + 87 - - 28 + + + CASE - CASE WHEN NOT MIN( DISTINCT 89 ) IS NOT NULL THEN + COALESCE ( 78, - 25 + 12 * - 43 ) WHEN NOT NULL >= 72 THEN - 83 END WHEN 40 THEN + ( 34 ) * + COUNT( * ) WHEN - 27 / CASE 9 WHEN 31 THEN + 87 WHEN - ( + MAX( DISTINCT 58 ) ) THEN NULL ELSE 90 / 55 + - 94 END - 63 * 6 THEN 63 ELSE COUNT( * ) END THEN - 49 END + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT NULLIF ( - SUM ( DISTINCT - 6 ), + 13 * - - 5 * 75 * - MIN ( - 74 ) ) / - CASE + 96 WHEN - 49 THEN + 28 WHEN + - 76 * 15 * + 33 - - 89 * 16 * 81 * + 53 / - COUNT ( * ) + + 87 - - 28 + + + CASE - CASE WHEN NOT MIN ( DISTINCT 89 ) IS NOT NULL THEN + COALESCE ( 78, - 25 + 12 * - 43 ) WHEN NOT NULL >= 72 THEN - 83 END WHEN 40 THEN + ( 34 ) * + COUNT ( * ) WHEN - 27 / CASE 9 WHEN 31 THEN + 87 WHEN - ( + MAX ( DISTINCT 58 ) ) THEN NULL ELSE 90 / 55 + - 94 END - 63 * 6 THEN 63 ELSE COUNT ( * ) END THEN - 49 END + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT + COUNT( - + 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7040
SELECT + COUNT ( - + 64 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7041
SELECT - 27 DIV - 68 + + 68 AS col2, + 27
----
68
27

skipif mysql # not compatible
query II rowsort label-7041
SELECT - 27 / - 68 + + 68 AS col2, + 27
----
68
27

onlyif mysql # aggregate syntax: 
query III rowsort label-7042
SELECT ALL + 3, - COUNT( * ) + - 67 * + - 18 AS col2, - 69 AS col1
----
3
1205
-69

skipif mysql # not compatible
query III rowsort label-7042
SELECT ALL + 3, - COUNT ( * ) + - 67 * + - 18 AS col2, - 69 AS col1
----
3
1205
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT - COUNT( * ) * - 66
----
66

skipif mysql # not compatible
query I rowsort label-7043
SELECT - COUNT ( * ) * - 66
----
66

query I rowsort
SELECT ALL - 34 * - 78
----
2652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7045
SELECT DISTINCT + COUNT( * ) AS col0, NULLIF ( + 59, 62 + - CASE + - COUNT( DISTINCT - - NULLIF ( - 60, + 97 - 48 ) ) WHEN - 46 / + 62 THEN NULL WHEN - 22 * + 98 * + CAST( COUNT( ALL - - ( + - 18 ) ) AS SIGNED ) * + ( - - 20 ) + - 95 + 46 THEN + + 62 END )
----
1
59

skipif mysql # not compatible
query II rowsort label-7045
SELECT DISTINCT + COUNT ( * ) AS col0, NULLIF ( + 59, 62 + - CASE + - COUNT ( DISTINCT - - NULLIF ( - 60, + 97 - 48 ) ) WHEN - 46 / + 62 THEN NULL WHEN - 22 * + 98 * + CAST ( COUNT ( ALL - - ( + - 18 ) ) AS INTEGER ) * + ( - - 20 ) + - 95 + 46 THEN + + 62 END )
----
1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT COALESCE ( ( - 54 ), - 25 * + COUNT( ALL + - CASE - + 47 WHEN - 57 THEN - 29 WHEN - 3 THEN + - 5 END ) * - COUNT( * ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-7046
SELECT COALESCE ( ( - 54 ), - 25 * + COUNT ( ALL + - CASE - + 47 WHEN - 57 THEN - 29 WHEN - 3 THEN + - 5 END ) * - COUNT ( * ) ) AS col1
----
-54

query I rowsort
SELECT ALL + 44 * 41
----
1804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7048
SELECT DISTINCT COALESCE ( + 95, - 48 ) * + 61 * + 29 * - 0 + + 26 + + - MIN( DISTINCT - 37 ) + - 9 * + CAST( NULL AS SIGNED ) * + + 58 + + COUNT( * ) + 79 * 1 * + - 41 * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT COALESCE ( + 95, - 48 ) * + 61 * + 29 * - 0 + + 26 + + - MIN ( DISTINCT - 37 ) + - 9 * + CAST ( NULL AS INTEGER ) * + + 58 + + COUNT ( * ) + 79 * 1 * + - 41 * 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT ALL ( - 60 ) * COUNT( * ) * - 66 * + + MAX( ALL + 4 ) + + + 26 col0
----
15866

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL ( - 60 ) * COUNT ( * ) * - 66 * + + MAX ( ALL + 4 ) + + + 26 col0
----
15866

query II rowsort
SELECT + 9 AS col0, ( + 57 )
----
9
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT + CASE 61 WHEN + - 11 * - 59 / 21 * - + 73 - SUM( + + 75 ) + COUNT( * ) THEN - 15 * - MAX( DISTINCT - + 55 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT + CASE 61 WHEN + - 11 * - 59 / 21 * - + 73 - SUM ( + + 75 ) + COUNT ( * ) THEN - 15 * - MAX ( DISTINCT - + 55 ) END AS col2
----
NULL

query I rowsort
SELECT - ( - 10 ) * + - 59
----
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT - 20 * + COUNT( * ) + + + 42 + + 22 * - - 3
----
88

skipif mysql # not compatible
query I rowsort label-7053
SELECT - 20 * + COUNT ( * ) + + + 42 + + 22 * - - 3
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7054
SELECT + NULLIF ( + 21, + 43 / - CAST( - 85 AS SIGNED ) * + 84 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7054
SELECT + NULLIF ( + 21, + 43 / - CAST ( - 85 AS INTEGER ) * + 84 ) AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7055
SELECT 72 * + 89 * + - CAST( NULL AS SIGNED ) + - 43 - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT 72 * + 89 * + - CAST ( NULL AS INTEGER ) + - 43 - - 84
----
NULL

query I rowsort
SELECT ALL + ( + 81 ) col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7057
SELECT DISTINCT + COUNT( * ) * - 91 + - 42 AS col2, 78 * - COUNT( * ) + + - ( - 15 ) col1
----
-133
-63

skipif mysql # not compatible
query II rowsort label-7057
SELECT DISTINCT + COUNT ( * ) * - 91 + - 42 AS col2, 78 * - COUNT ( * ) + + - ( - 15 ) col1
----
-133
-63

query I rowsort
SELECT + + 72 * 83
----
5976

query I rowsort
SELECT DISTINCT + + ( - 22 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT + - MAX( + + 37 ) * - - 10
----
-370

skipif mysql # not compatible
query I rowsort label-7060
SELECT + - MAX ( + + 37 ) * - - 10
----
-370

query I rowsort
SELECT DISTINCT - ( + 52 ) * + - NULLIF ( ( + 5 ), - + 80 )
----
260

query I rowsort
SELECT - + ( + 46 ) AS col2
----
-46

query I rowsort
SELECT + 1 - - 91 + 93 AS col1
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7064
SELECT - 55 * - COUNT( - 26 ) * - - 89 + CASE + - 19 WHEN + 98 THEN - AVG ( - 43 ) * + 62 WHEN - 73 THEN - - 8 / - COUNT( * ) * - 20 END + 2 - - 47 * + - 88 * - NULLIF ( - 12, + 38 ) * 89 AS col1, - CASE COALESCE ( 56, COALESCE ( SUM( DISTINCT 77 ), CASE COUNT( * ) WHEN + COUNT( * ) THEN 89 / ( - ( 85 ) ) END, 49 ) + 56 ) WHEN + 82 THEN 8 ELSE - CAST( NULL AS SIGNED ) * COUNT( * ) END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7064
SELECT - 55 * - COUNT ( - 26 ) * - - 89 + CASE + - 19 WHEN + 98 THEN - AVG ( - 43 ) * + 62 WHEN - 73 THEN - - 8 / - COUNT ( * ) * - 20 END + 2 - - 47 * + - 88 * - NULLIF ( - 12, + 38 ) * 89 AS col1, - CASE COALESCE ( 56, COALESCE ( SUM ( DISTINCT 77 ), CASE COUNT ( * ) WHEN + COUNT ( * ) THEN 89 / ( - ( 85 ) ) END, 49 ) + 56 ) WHEN + 82 THEN 8 ELSE - CAST ( NULL AS INTEGER ) * COUNT ( * ) END AS col2
----
NULL
NULL

query I rowsort
SELECT ALL - 93 * - 49
----
4557

query I rowsort
SELECT DISTINCT + NULLIF ( + 87, - + 49 * + - ( - 86 ) + + 54 - 47 ) col0
----
87

query I rowsort
SELECT DISTINCT + ( - 15 )
----
-15

query I rowsort
SELECT ALL 81 - - + 50 AS col0
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-7069
SELECT ALL 25 AS col1, + 85 + COUNT( * ) + - + 72 AS col0
----
25
14

skipif mysql # not compatible
query II rowsort label-7069
SELECT ALL 25 AS col1, + 85 + COUNT ( * ) + - + 72 AS col0
----
25
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7070
SELECT ALL + + 50 DIV + + 27 col1
----
1

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL + + 50 / + + 27 col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7071
SELECT DISTINCT 9 AS col1, SUM( + 25 ) AS col2
----
9
25

skipif mysql # not compatible
query II rowsort label-7071
SELECT DISTINCT 9 AS col1, SUM ( + 25 ) AS col2
----
9
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ( + COUNT( + 0 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7072
SELECT ( + COUNT ( + 0 ) ) AS col0
----
1

query II rowsort
SELECT - - 64 AS col0, - 76 * + - 88 + - 21 AS col1
----
64
6667

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT ALL + 66 / - 83 + - + 42 + - + ( + + CASE + MAX( + + 26 ) WHEN - 20 THEN 28 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL + 66 / - 83 + - + 42 + - + ( + + CASE + MAX ( + + 26 ) WHEN - 20 THEN 28 ELSE NULL END )
----
NULL

query I rowsort
SELECT + 39 + + 69 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT ALL NULLIF ( + + 72, + COUNT( * ) * + + ( + - 19 ) )
----
72

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL NULLIF ( + + 72, + COUNT ( * ) * + + ( + - 19 ) )
----
72

query I rowsort
SELECT DISTINCT + 20 * + ( - - 77 )
----
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT + COALESCE ( 18, - 86 ) + COALESCE ( 95, + + COUNT( * ) ) * + 52 + + 26
----
4984

skipif mysql # not compatible
query I rowsort label-7078
SELECT + COALESCE ( 18, - 86 ) + COALESCE ( 95, + + COUNT ( * ) ) * + 52 + + 26
----
4984

onlyif mysql # DIV for integer division: 
query I rowsort label-7079
SELECT + ( + 6 ) DIV + + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7079
SELECT + ( + 6 ) / + + 97 AS col1
----
0

query II rowsort
SELECT ALL - 48 * - CASE + 97 WHEN + 2 THEN NULL ELSE + NULLIF ( - 38, + 6 ) END, 96 * - + 40 AS col1
----
-1824
-3840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7081
SELECT DISTINCT 35 DIV + 27 + - COUNT( * ) - - - 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT 35 / + 27 + - COUNT ( * ) - - - 36 AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7082
SELECT ALL + ( - + 51 ) DIV NULLIF ( 60, CAST( NULL AS SIGNED ) ) + - COUNT( * ) + - COUNT( * ) * CASE + - COUNT( * ) WHEN + - 79 + + NULLIF ( + + 33, 71 ) THEN NULL ELSE + 7 - + 79 END + - CAST( - - 25 AS SIGNED ), + 98 AS col2
----
46
98

skipif mysql # not compatible
query II rowsort label-7082
SELECT ALL + ( - + 51 ) / NULLIF ( 60, CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + - COUNT ( * ) * CASE + - COUNT ( * ) WHEN + - 79 + + NULLIF ( + + 33, 71 ) THEN NULL ELSE + 7 - + 79 END + - CAST ( - - 25 AS INTEGER ), + 98 AS col2
----
46
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7083
SELECT DISTINCT 10 DIV + 31 + + 34 + + ( - 64 )
----
-30

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT 10 / + 31 + + 34 + + ( - 64 )
----
-30

query I rowsort
SELECT - 78 * - + 55 AS col2
----
4290

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT ( + 94 ) * - 81 + - - 0 - - COUNT( * )
----
-7613

skipif mysql # not compatible
query I rowsort label-7085
SELECT ( + 94 ) * - 81 + - - 0 - - COUNT ( * )
----
-7613

query I rowsort
SELECT - COALESCE ( - 54, - 74 ) * - NULLIF ( - 91, 9 ) + - 22 AS col2
----
4892

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT + MAX( ( + 68 ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-7087
SELECT + MAX ( ( + 68 ) ) AS col0
----
68

query I rowsort
SELECT - ( + + 76 ) * 83 AS col0
----
-6308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7089
SELECT - 48 * ( - - 36 ) * 65 DIV 65 * + - 72 + + NULLIF ( - - CAST( + - COUNT( - 47 ) AS SIGNED ), - + 56 * - 59 + - 54 ) AS col1
----
124415

skipif mysql # not compatible
query I rowsort label-7089
SELECT - 48 * ( - - 36 ) * 65 / 65 * + - 72 + + NULLIF ( - - CAST ( + - COUNT ( - 47 ) AS INTEGER ), - + 56 * - 59 + - 54 ) AS col1
----
124415

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT ALL 22 DIV + 40 + - 20
----
-20

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL 22 / + 40 + - 20
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7091
SELECT ALL - COUNT( * ) DIV - 88 + - 76 + + 23 * - + 43 + - + 14 - - 49 * - 61 AS col2
----
-4068

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL - COUNT ( * ) / - 88 + - 76 + + 23 * - + 43 + - + 14 - - 49 * - 61 AS col2
----
-4068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7092
SELECT ALL + CAST( + 73 AS SIGNED ) * - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL + CAST ( + 73 AS INTEGER ) * - COUNT ( * )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7093
SELECT + + CASE + CAST( - + 54 AS SIGNED ) WHEN SUM( 80 ) * - COUNT( * ) / + ( - 10 ) + - 82 + - + ( - NULLIF ( - + 34, - 13 * + SUM( DISTINCT 93 ) / 60 * 20 + + - 4 ) ) THEN NULL WHEN + + 62 * + ( + 25 ) + - + 26 THEN NULL ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-7093
SELECT + + CASE + CAST ( - + 54 AS INTEGER ) WHEN SUM ( 80 ) * - COUNT ( * ) / + ( - 10 ) + - 82 + - + ( - NULLIF ( - + 34, - 13 * + SUM ( DISTINCT 93 ) / 60 * 20 + + - 4 ) ) THEN NULL WHEN + + 62 * + ( + 25 ) + - + 26 THEN NULL ELSE - COUNT ( * ) END
----
-1

query I rowsort
SELECT ALL - 46 - + + 23 AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7095
SELECT + 76 * - 26 * + COUNT( * ) * - NULLIF ( + 91, 74 * - + 64 * 65 ) * - 99, + CASE + NULLIF ( + 27, 57 * + 61 * COUNT( * ) * + 53 * COUNT( * ) * - 26 ) WHEN 96 + 84 * - 66 / 47 THEN NULL WHEN - 43 / 96 - 71 THEN 11 * 79 + NULLIF ( 35, - 91 ) WHEN + 4 * - 6 + - 42 THEN + 49 + + NULLIF ( NULLIF ( - 89, 84 ) - - NULLIF ( CAST( + ( 74 ) AS SIGNED ), - 16 + 85 ), + 84 * - 49 ) END * 48 AS col2
----
-17801784
NULL

skipif mysql # not compatible
query II rowsort label-7095
SELECT + 76 * - 26 * + COUNT ( * ) * - NULLIF ( + 91, 74 * - + 64 * 65 ) * - 99, + CASE + NULLIF ( + 27, 57 * + 61 * COUNT ( * ) * + 53 * COUNT ( * ) * - 26 ) WHEN 96 + 84 * - 66 / 47 THEN NULL WHEN - 43 / 96 - 71 THEN 11 * 79 + NULLIF ( 35, - 91 ) WHEN + 4 * - 6 + - 42 THEN + 49 + + NULLIF ( NULLIF ( - 89, 84 ) - - NULLIF ( CAST ( + ( 74 ) AS INTEGER ), - 16 + 85 ), + 84 * - 49 ) END * 48 AS col2
----
-17801784
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT 41 + COUNT( * ) + COALESCE ( - 30, 12 ) * - + SUM( DISTINCT 25 ) * - 83
----
-62208

skipif mysql # not compatible
query I rowsort label-7096
SELECT 41 + COUNT ( * ) + COALESCE ( - 30, 12 ) * - + SUM ( DISTINCT 25 ) * - 83
----
-62208

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT MIN( DISTINCT - 98 ) * - - 81
----
-7938

skipif mysql # not compatible
query I rowsort label-7097
SELECT MIN ( DISTINCT - 98 ) * - - 81
----
-7938

query I rowsort
SELECT DISTINCT - + 25 AS col0
----
-25

query I rowsort
SELECT ALL - - ( - 83 ) col2
----
-83

query I rowsort
SELECT - 27 * 70 + - - 9
----
-1881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7101
SELECT ALL + + 19 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL + + 19 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 7 col0
----
7

query I rowsort
SELECT - 15 * - 84 + - 72
----
1188

query I rowsort
SELECT + 39 * + 27
----
1053

query I rowsort
SELECT ALL + ( - ( + + 52 ) )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7106
SELECT ( + CASE 96 WHEN 91 / + CAST( + - 61 AS SIGNED ) + - 64 THEN - 32 + + 68 + 95 WHEN - - 73 THEN + 4 * 99 END ) + + + ( - COUNT( * ) ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT ( + CASE 96 WHEN 91 / + CAST ( + - 61 AS INTEGER ) + - 64 THEN - 32 + + 68 + 95 WHEN - - 73 THEN + 4 * 99 END ) + + + ( - COUNT ( * ) ) + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT ( + MIN( ALL 67 ) ) + - 72 * COUNT( * ) * + + 12 AS col0
----
-797

skipif mysql # not compatible
query I rowsort label-7107
SELECT ( + MIN ( ALL 67 ) ) + - 72 * COUNT ( * ) * + + 12 AS col0
----
-797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7108
SELECT DISTINCT 68 + + 52 - COUNT( * ) * - CAST( + 91 AS SIGNED ) + - 42 AS col0
----
169

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT 68 + + 52 - COUNT ( * ) * - CAST ( + 91 AS INTEGER ) + - 42 AS col0
----
169

query I rowsort
SELECT DISTINCT + 61 * - 34 AS col2
----
-2074

query I rowsort
SELECT ALL 39 + - + 39 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7111
SELECT ALL COUNT( * ) + + CAST( 76 AS SIGNED ) + - 94
----
-17

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL COUNT ( * ) + + CAST ( 76 AS INTEGER ) + - 94
----
-17

query I rowsort
SELECT ALL 15 * 58 AS col0
----
870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7113
SELECT ALL 73 + 32 + - + CAST( NULL AS SIGNED ) * + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL 73 + 32 + - + CAST ( NULL AS INTEGER ) * + + 37
----
NULL

query I rowsort
SELECT DISTINCT 32 + + 81 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT COUNT( * ) + 33 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7115
SELECT COUNT ( * ) + 33 AS col1
----
34

query I rowsort
SELECT DISTINCT 8 + - 33 AS col1
----
-25

query I rowsort
SELECT 28 * 20
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT DISTINCT - COUNT( - 89 ) + - ( - 50 ) + - + 4 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7118
SELECT DISTINCT - COUNT ( - 89 ) + - ( - 50 ) + - + 4 AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7119
SELECT DISTINCT 66 DIV - ( - 10 ) AS col0, + COUNT( ALL - 67 ) - - + 14
----
6
15

skipif mysql # not compatible
query II rowsort label-7119
SELECT DISTINCT 66 / - ( - 10 ) AS col0, + COUNT ( ALL - 67 ) - - + 14
----
6
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT DISTINCT MAX( ALL 38 ) * - 2 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT MAX ( ALL 38 ) * - 2 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT 76 + - MIN( + 72 ) - + 39
----
-35

skipif mysql # not compatible
query I rowsort label-7121
SELECT 76 + - MIN ( + 72 ) - + 39
----
-35

query I rowsort
SELECT ALL 86 - + - 96 * 71 * 61
----
415862

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT NULLIF ( + - COUNT( * ), + 26 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7123
SELECT NULLIF ( + - COUNT ( * ), + 26 ) AS col2
----
-1

query I rowsort
SELECT + - 9 col2
----
-9

query I rowsort
SELECT - 74 * + 56 AS col0
----
-4144

query II rowsort
SELECT + 70 AS col2, - 14 * + 91 AS col1
----
70
-1274

query I rowsort
SELECT ALL - ( 51 )
----
-51

query I rowsort
SELECT ( - - 5 ) * + CASE + - 61 WHEN - + 32 THEN + 97 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT + + MAX( ALL + - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-7129
SELECT + + MAX ( ALL + - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT ALL - COALESCE ( - 98, - MAX( ALL 58 ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL - COALESCE ( - 98, - MAX ( ALL 58 ) ) AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7131
SELECT DISTINCT + + COUNT( * ) DIV + - 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT + + COUNT ( * ) / + - 4 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7132
SELECT ALL 77 * + CASE 71 WHEN - 97 + 31 * + COALESCE ( - + 43, CAST( - + ( 18 ) AS DECIMAL ) * + 84 + + 2 ) + + MIN( DISTINCT + NULLIF ( - 60, 25 - + 64 ) ) THEN + - 8 ELSE NULL END * MIN( + + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL 77 * + CASE 71 WHEN - 97 + 31 * + COALESCE ( - + 43, CAST ( - + ( 18 ) AS REAL ) * + 84 + + 2 ) + + MIN ( DISTINCT + NULLIF ( - 60, 25 - + 64 ) ) THEN + - 8 ELSE NULL END * MIN ( + + 40 )
----
NULL

query I rowsort
SELECT - 46 * + 96 col0
----
-4416

query I rowsort
SELECT ALL - 99 * - - 69
----
-6831

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT - 73 DIV - + 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7135
SELECT - 73 / - + 51 AS col2
----
1

query I rowsort
SELECT ALL - 49 + + 58 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - COUNT( ALL - - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-7137
SELECT - COUNT ( ALL - - 37 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT DISTINCT - COUNT( * ) + + 16 * + 21 * + 80 AS col0
----
26879

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT - COUNT ( * ) + + 16 * + 21 * + 80 AS col0
----
26879

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL COALESCE ( COUNT( * ), 2 - + 40 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL COALESCE ( COUNT ( * ), 2 - + 40 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT DISTINCT + 75 + - 53 + - COALESCE ( + ( - - 27 ), + 3, - 96 + + CASE - + 62 WHEN + - 98 THEN NULL ELSE - - SUM( 85 ) * + 10 END ) + + 68
----
63

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT + 75 + - 53 + - COALESCE ( + ( - - 27 ), + 3, - 96 + + CASE - + 62 WHEN + - 98 THEN NULL ELSE - - SUM ( 85 ) * + 10 END ) + + 68
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT ALL - 20 + - + 99 * + CAST( 58 AS SIGNED ) + + 21 + - 18 * - 63 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL - 20 + - + 99 * + CAST ( 58 AS INTEGER ) + + 21 + - 18 * - 63 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT 21 + COUNT( * ) + 39
----
61

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT 21 + COUNT ( * ) + 39
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7143
SELECT DISTINCT - 2 + CAST( - 13 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT - 2 + CAST ( - 13 AS INTEGER )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT NULLIF ( + 54, + + 7 / + COUNT( * ) - - CAST( + 4 AS SIGNED ) + - 33 + SUM( ALL - 15 ) + + 64 + - 5 * - CASE - COUNT( * ) WHEN - 92 THEN + - 73 + COUNT( * ) WHEN + 84 + + ( - CASE - - 30 WHEN + SUM( ALL 22 ) THEN + - 50 * + - 73 WHEN - 14 THEN NULL WHEN - 87 + - 80 THEN NULL END ) * + 87 THEN NULL ELSE + 92 - + NULLIF ( + 11 - - 64, 43 ) END + 92 * CASE - COALESCE ( NULLIF ( COUNT( * ), + 61 + - 31 * 98 ), + 24 + NULLIF ( + 71, + 68 ) ) * - COUNT( * ) WHEN - CASE 68 WHEN 66 - - 49 * + COUNT( * ) THEN 68 + MIN( + 72 ) / + 94 WHEN - 3 THEN 66 * COUNT( * ) END * - 57 + - ( + 10 ) * + 45 THEN - 33 END ) * 28 AS col0
----
1512

skipif mysql # not compatible
query I rowsort label-7144
SELECT NULLIF ( + 54, + + 7 / + COUNT ( * ) - - CAST ( + 4 AS INTEGER ) + - 33 + SUM ( ALL - 15 ) + + 64 + - 5 * - CASE - COUNT ( * ) WHEN - 92 THEN + - 73 + COUNT ( * ) WHEN + 84 + + ( - CASE - - 30 WHEN + SUM ( ALL 22 ) THEN + - 50 * + - 73 WHEN - 14 THEN NULL WHEN - 87 + - 80 THEN NULL END ) * + 87 THEN NULL ELSE + 92 - + NULLIF ( + 11 - - 64, 43 ) END + 92 * CASE - COALESCE ( NULLIF ( COUNT ( * ), + 61 + - 31 * 98 ), + 24 + NULLIF ( + 71, + 68 ) ) * - COUNT ( * ) WHEN - CASE 68 WHEN 66 - - 49 * + COUNT ( * ) THEN 68 + MIN ( + 72 ) / + 94 WHEN - 3 THEN 66 * COUNT ( * ) END * - 57 + - ( + 10 ) * + 45 THEN - 33 END ) * 28 AS col0
----
1512

query I rowsort
SELECT ALL - 85 + + ( + + 91 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ( - 40 ) * + - COUNT( DISTINCT + 45 ) - - - 2 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7146
SELECT ( - 40 ) * + - COUNT ( DISTINCT + 45 ) - - - 2 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT MIN( DISTINCT - 58 ) + 9 + - - 12 + + 30 + + 26 * 76 AS col2
----
1969

skipif mysql # not compatible
query I rowsort label-7147
SELECT MIN ( DISTINCT - 58 ) + 9 + - - 12 + + 30 + + 26 * 76 AS col2
----
1969

query II rowsort
SELECT 73 AS col1, 19 * - 34 AS col0
----
73
-646

query I rowsort
SELECT ALL CASE + 28 WHEN 8 THEN - - 39 END * 62 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7150
SELECT - 94 col2, - MIN( - 79 )
----
-94
79

skipif mysql # not compatible
query II rowsort label-7150
SELECT - 94 col2, - MIN ( - 79 )
----
-94
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT 93 + - COUNT( + 51 )
----
92

skipif mysql # not compatible
query I rowsort label-7151
SELECT 93 + - COUNT ( + 51 )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7152
SELECT - COUNT( * ), + 93 AS col1
----
-1
93

skipif mysql # not compatible
query II rowsort label-7152
SELECT - COUNT ( * ), + 93 AS col1
----
-1
93

query II rowsort
SELECT - 49 AS col2, + 38
----
-49
38

query I rowsort
SELECT 2 + + + 29 + 94
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7155
SELECT ALL 14 * + + 33 DIV - + CAST( NULL AS SIGNED ) * - + 79 AS col0, + COUNT( * ) * 35 + + 72 - - COUNT( CAST( NULL AS SIGNED ) ) DIV + 65
----
NULL
107

skipif mysql # not compatible
query II rowsort label-7155
SELECT ALL 14 * + + 33 / - + CAST ( NULL AS INTEGER ) * - + 79 AS col0, + COUNT ( * ) * 35 + + 72 - - COUNT ( CAST ( NULL AS INTEGER ) ) / + 65
----
NULL
107

query I rowsort
SELECT ALL - 13 * 29 AS col0
----
-377

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT ALL + COUNT( - - 39 ) - + 85 + + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL + COUNT ( - - 39 ) - + 85 + + COUNT ( * )
----
-83

query II rowsort
SELECT ALL 60 AS col0, - 40
----
60
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7159
SELECT CASE + 36 WHEN - 16 - + 46 THEN + - AVG ( - - CAST( NULL AS SIGNED ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT CASE + 36 WHEN - 16 - + 46 THEN + - AVG ( - - CAST ( NULL AS INTEGER ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT DISTINCT - 86 * 2 - - COUNT( * )
----
-171

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT - 86 * 2 - - COUNT ( * )
----
-171

query II rowsort
SELECT ALL + 63 AS col0, - 95
----
63
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT + 48 + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-7162
SELECT + 48 + COUNT ( * )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7163
SELECT CASE 39 WHEN + 80 + + 27 + 19 THEN + + CAST( 10 AS SIGNED ) * + MIN( 98 ) * CAST( NULL AS SIGNED ) + - 53 WHEN - - 90 THEN NULL ELSE + + 6 END col1
----
6

skipif mysql # not compatible
query I rowsort label-7163
SELECT CASE 39 WHEN + 80 + + 27 + 19 THEN + + CAST ( 10 AS INTEGER ) * + MIN ( 98 ) * CAST ( NULL AS INTEGER ) + - 53 WHEN - - 90 THEN NULL ELSE + + 6 END col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT + CASE - 23 WHEN + - 52 THEN NULL WHEN - COUNT( * ) * 64 THEN + COALESCE ( + + MIN( ALL + 93 ), - NULLIF ( 38, + + 89 ) ) * - - 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT + CASE - 23 WHEN + - 52 THEN NULL WHEN - COUNT ( * ) * 64 THEN + COALESCE ( + + MIN ( ALL + 93 ), - NULLIF ( 38, + + 89 ) ) * - - 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7165
SELECT + + COUNT( * ) + - + 71 col0, - 48 AS col2
----
-70
-48

skipif mysql # not compatible
query II rowsort label-7165
SELECT + + COUNT ( * ) + - + 71 col0, - 48 AS col2
----
-70
-48

query I rowsort
SELECT + - 60 * - 12 * 55
----
39600

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7167
SELECT ALL - CAST( - - 89 AS SIGNED ) DIV - 11 - - + 52 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL - CAST ( - - 89 AS INTEGER ) / - 11 - - + 52 AS col2
----
60

query I rowsort
SELECT 49 * + 72 + + - ( 81 )
----
3447

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT + 59 AS col0, + 56 + + 89 * + MIN( DISTINCT 64 ) col0
----
59
5752

skipif mysql # not compatible
query II rowsort label-7169
SELECT + 59 AS col0, + 56 + + 89 * + MIN ( DISTINCT 64 ) col0
----
59
5752

query II rowsort
SELECT ALL + - 20 AS col2, - 69 + 18 + + - 71 AS col1
----
-20
-122

query I rowsort
SELECT DISTINCT + + ( - - 58 ) AS col1
----
58

query II rowsort
SELECT ALL + - 47, + 15 * + 17 AS col0
----
-47
255

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT + COUNT( * ) - 0
----
1

skipif mysql # not compatible
query I rowsort label-7173
SELECT + COUNT ( * ) - 0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7174
SELECT - 60 * 23 * + ( CAST( NULL AS SIGNED ) ) + + 69 - + 20 AS col1, - 26
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-7174
SELECT - 60 * 23 * + ( CAST ( NULL AS INTEGER ) ) + + 69 - + 20 AS col1, - 26
----
NULL
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT + 74 * + COUNT( * ) + - 48
----
26

skipif mysql # not compatible
query I rowsort label-7175
SELECT + 74 * + COUNT ( * ) + - 48
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT + + ( COUNT( * ) ) + - + 81
----
-80

skipif mysql # not compatible
query I rowsort label-7176
SELECT + + ( COUNT ( * ) ) + - + 81
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7177
SELECT - 83, - COUNT( * ) * - CAST( - 86 AS SIGNED ) * + 23 + + COUNT( * ) + ( + 16 ) * - 9 + + 3 AS col2
----
-83
-2118

skipif mysql # not compatible
query II rowsort label-7177
SELECT - 83, - COUNT ( * ) * - CAST ( - 86 AS INTEGER ) * + 23 + + COUNT ( * ) + ( + 16 ) * - 9 + + 3 AS col2
----
-83
-2118

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT - - SUM( - - 29 ) - - 46
----
75

skipif mysql # not compatible
query I rowsort label-7178
SELECT - - SUM ( - - 29 ) - - 46
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7179
SELECT DISTINCT + 71 * CAST( - + 47 AS SIGNED ) / + COALESCE ( + 8, + 95 ) + - 60 * + MIN( + 15 ) * - 27 + - COUNT( * ) + - ( - CASE - - COUNT( * ) WHEN + 30 THEN - - ( - ( + 71 ) ) * + ( + 54 ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT + 71 * CAST ( - + 47 AS INTEGER ) / + COALESCE ( + 8, + 95 ) + - 60 * + MIN ( + 15 ) * - 27 + - COUNT ( * ) + - ( - CASE - - COUNT ( * ) WHEN + 30 THEN - - ( - ( + 71 ) ) * + ( + 54 ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7180
SELECT ALL - + CASE 29 WHEN - 83 * - 53 THEN + 5 * 23 * + SUM( ALL + CAST( NULL AS SIGNED ) ) * 30 ELSE - 30 * - COUNT( * ) END + - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL - + CASE 29 WHEN - 83 * - 53 THEN + 5 * 23 * + SUM ( ALL + CAST ( NULL AS INTEGER ) ) * 30 ELSE - 30 * - COUNT ( * ) END + - COUNT ( * )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7181
SELECT DISTINCT + CAST( - 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT + CAST ( - 86 AS INTEGER )
----
-86

query I rowsort
SELECT ALL 94 + + 5
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT DISTINCT - ( - COUNT( * ) ) + - 96 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT - ( - COUNT ( * ) ) + - 96 AS col0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7184
SELECT DISTINCT CASE + - CAST( NULL AS SIGNED ) WHEN + ( + 24 ) THEN NULL WHEN 89 THEN 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT CASE + - CAST ( NULL AS INTEGER ) WHEN + ( + 24 ) THEN NULL WHEN 89 THEN 33 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT ALL - 16 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - 16 / - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT DISTINCT MAX( DISTINCT - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT MAX ( DISTINCT - 51 ) AS col1
----
-51

query I rowsort
SELECT - 62 + + 9 - - + 87 - 11 * + 79
----
-835

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT DISTINCT MAX( + - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT MAX ( + - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL ( NULLIF ( + - 24, - + COUNT( * ) ) )
----
-24

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL ( NULLIF ( + - 24, - + COUNT ( * ) ) )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-7190
SELECT - 20 * + 50 * + + 51 AS col1, 28 - + COUNT( * ) AS col0
----
-51000
27

skipif mysql # not compatible
query II rowsort label-7190
SELECT - 20 * + 50 * + + 51 AS col1, 28 - + COUNT ( * ) AS col0
----
-51000
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL NULLIF ( COUNT( * ), 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL NULLIF ( COUNT ( * ), 64 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL CASE - 97 WHEN + - 3 + - 73 + + - ( 26 ) + + 13 THEN + SUM( ALL + 42 ) - - SUM( ( + 77 ) ) WHEN 2 - - 5 * - MIN( 65 ) THEN NULL WHEN + COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL CASE - 97 WHEN + - 3 + - 73 + + - ( 26 ) + + 13 THEN + SUM ( ALL + 42 ) - - SUM ( ( + 77 ) ) WHEN 2 - - 5 * - MIN ( 65 ) THEN NULL WHEN + COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7193
SELECT DISTINCT + 72 - + - 12 DIV + - 14 * + - 90
----
72

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + 72 - + - 12 / + - 14 * + - 90
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT ALL CASE COALESCE ( + + COUNT( * ), - + 38 ) WHEN 65 + + 50 THEN + 4 END / + - 58 * + COALESCE ( COALESCE ( - ( - COUNT( * ) ), - + 19 * - 56, - 26 + - 63 ), 41 - MIN( 34 ), + 7 * - COUNT( * ) ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL CASE COALESCE ( + + COUNT ( * ), - + 38 ) WHEN 65 + + 50 THEN + 4 END / + - 58 * + COALESCE ( COALESCE ( - ( - COUNT ( * ) ), - + 19 * - 56, - 26 + - 63 ), 41 - MIN ( 34 ), + 7 * - COUNT ( * ) ) - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL + CASE - COALESCE ( - + COUNT( * ), + 89, 82 ) WHEN + 79 THEN - + CASE - - 64 WHEN + + 73 + - CASE - 14 WHEN + ( + 53 ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + - 57 / - 33 END + 52 * - COUNT( * ) THEN NULL ELSE 5 END * - + 77 WHEN - 80 THEN - - 91 END / - 94 / - 62 + - - 68 + - - 36 / NULLIF ( - MIN( + 77 ), ( 38 ) ) * - 13 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL + CASE - COALESCE ( - + COUNT ( * ), + 89, 82 ) WHEN + 79 THEN - + CASE - - 64 WHEN + + 73 + - CASE - 14 WHEN + ( + 53 ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + - 57 / - 33 END + 52 * - COUNT ( * ) THEN NULL ELSE 5 END * - + 77 WHEN - 80 THEN - - 91 END / - 94 / - 62 + - - 68 + - - 36 / NULLIF ( - MIN ( + 77 ), ( 38 ) ) * - 13 * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - - 59 ) col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7197
SELECT - 60 * + 86 AS col2, MAX( DISTINCT NULLIF ( - 6, - 69 ) ) + + - 75 AS col0
----
-5160
-81

skipif mysql # not compatible
query II rowsort label-7197
SELECT - 60 * + 86 AS col2, MAX ( DISTINCT NULLIF ( - 6, - 69 ) ) + + - 75 AS col0
----
-5160
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7198
SELECT ALL CAST( - 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL CAST ( - 16 AS INTEGER )
----
-16

query I rowsort
SELECT - CASE - - 5 WHEN - - 6 * 86 THEN + 17 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT - 54 + - COUNT( * ) + + + MAX( - 16 ) * - + 97 AS col2
----
1497

skipif mysql # not compatible
query I rowsort label-7200
SELECT - 54 + - COUNT ( * ) + + + MAX ( - 16 ) * - + 97 AS col2
----
1497

query I rowsort
SELECT + - 15 * 82 * + 87 * + + 49 AS col0
----
-5243490

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ALL - + COUNT( * ) * - NULLIF ( 27, + - COUNT( * ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL - + COUNT ( * ) * - NULLIF ( 27, + - COUNT ( * ) ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT DISTINCT - 65 * + + COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT - 65 * + + COUNT ( * ) AS col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7204
SELECT + 8 DIV + + ( - - 79 ) + - COUNT( DISTINCT + 58 ) AS col1, + 64 AS col1
----
-1
64

skipif mysql # not compatible
query II rowsort label-7204
SELECT + 8 / + + ( - - 79 ) + - COUNT ( DISTINCT + 58 ) AS col1, + 64 AS col1
----
-1
64

query I rowsort
SELECT DISTINCT + 32 * 93
----
2976

onlyif mysql # DIV for integer division: 
query I rowsort label-7206
SELECT ALL + 10 DIV + + 52 + - - 8 + + 20 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL + 10 / + + 52 + - - 8 + + 20 AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7207
SELECT + 68 * - 7 + + COUNT( * ) * + 64 DIV COALESCE ( + + 35, 43 ) AS col0
----
-475

skipif mysql # not compatible
query I rowsort label-7207
SELECT + 68 * - 7 + + COUNT ( * ) * + 64 / COALESCE ( + + 35, 43 ) AS col0
----
-475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7208
SELECT + 37 + + + COUNT( * ) AS col1, + COALESCE ( + CAST( NULL AS SIGNED ), - 23 ) * 18
----
38
-414

skipif mysql # not compatible
query II rowsort label-7208
SELECT + 37 + + + COUNT ( * ) AS col1, + COALESCE ( + CAST ( NULL AS INTEGER ), - 23 ) * 18
----
38
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL + MAX( ALL + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL + MAX ( ALL + 3 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7210
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( + 98 AS SIGNED ) + - CAST( NULL AS SIGNED ) / + 21 * - - ( - ( - 52 ) ) + + 7 + - + 24 + + 30 * + 53 + + - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( + 98 AS INTEGER ) + - CAST ( NULL AS INTEGER ) / + 21 * - - ( - ( - 52 ) ) + + 7 + - + 24 + + 30 * + 53 + + - 27 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 0 * + + 98 AS col0
----
0

query I rowsort
SELECT ALL + + 49 * - - 4 + + 28 AS col2
----
224

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7213
SELECT + - 61 DIV 61, - 97 * - MAX( ALL - - 15 ) col1, + 62 col2
----
-1
1455
62

skipif mysql # not compatible
query III rowsort label-7213
SELECT + - 61 / 61, - 97 * - MAX ( ALL - - 15 ) col1, + 62 col2
----
-1
1455
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT ALL 32 * - + COUNT( * ) + - - 43 * + - 22
----
-978

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL 32 * - + COUNT ( * ) + - - 43 * + - 22
----
-978

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT ALL 51 * + COUNT( * ) col2
----
51

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL 51 * + COUNT ( * ) col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT NULLIF ( 94, 1 - + - COUNT( * ) + + + 67 * + 4 / + + 39 + 19 * + 89 )
----
94

skipif mysql # not compatible
query I rowsort label-7216
SELECT NULLIF ( 94, 1 - + - COUNT ( * ) + + + 67 * + 4 / + + 39 + 19 * + 89 )
----
94

query I rowsort
SELECT DISTINCT 85 * - 39
----
-3315

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT + 6 * - 46 - - - CASE COUNT( * ) WHEN 66 THEN + 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7218
SELECT + 6 * - 46 - - - CASE COUNT ( * ) WHEN 66 THEN + 8 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT + COUNT( * ) - 57 col1
----
-56

skipif mysql # not compatible
query I rowsort label-7219
SELECT + COUNT ( * ) - 57 col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT - 32 * COUNT( * ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-7220
SELECT - 32 * COUNT ( * ) col0
----
-32

query I rowsort
SELECT ALL COALESCE ( - 34, - + 86 ) col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT DISTINCT 50 * + ( - + 67 ) * - NULLIF ( COUNT( * ), - 0 )
----
3350

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT 50 * + ( - + 67 ) * - NULLIF ( COUNT ( * ), - 0 )
----
3350

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT COUNT( 21 )
----
1

skipif mysql # not compatible
query I rowsort label-7223
SELECT COUNT ( 21 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT DISTINCT ( MIN( - COALESCE ( + 14, 32 * 33 ) ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT ( MIN ( - COALESCE ( + 14, 32 * 33 ) ) ) AS col1
----
-14

query I rowsort
SELECT 28 - + + 48 + - + 58 * 1 AS col0
----
-78

query I rowsort
SELECT 44 * + + 32 AS col2
----
1408

query I rowsort
SELECT 18 + + COALESCE ( + 11, - 83 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7228
SELECT 27 + + 16 + ( - 22 ) AS col1, + MAX( ALL 90 ) + + COALESCE ( - CASE - 98 WHEN 54 THEN 94 + 14 ELSE NULL END, 24 DIV + - 18 + - 36 ) + COUNT( * ) * COUNT( ALL - + 42 ) AS col1
----
21
54

skipif mysql # not compatible
query II rowsort label-7228
SELECT 27 + + 16 + ( - 22 ) AS col1, + MAX ( ALL 90 ) + + COALESCE ( - CASE - 98 WHEN 54 THEN 94 + 14 ELSE NULL END, 24 / + - 18 + - 36 ) + COUNT ( * ) * COUNT ( ALL - + 42 ) AS col1
----
21
54

query I rowsort
SELECT 34 * 14
----
476

query I rowsort
SELECT ALL - 69 * - + 99 AS col2
----
6831

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7231
SELECT SUM( DISTINCT - + 87 ) * - 64 + - NULLIF ( 83, - - 90 + + + 53 - + 34 * 52 + 84 + - + 57 DIV + + 35 * + 74 + + 8 ) - + - 49 - - - 66 DIV + 66 AS col1
----
5533

skipif mysql # not compatible
query I rowsort label-7231
SELECT SUM ( DISTINCT - + 87 ) * - 64 + - NULLIF ( 83, - - 90 + + + 53 - + 34 * 52 + 84 + - + 57 / + + 35 * + 74 + + 8 ) - + - 49 - - - 66 / + 66 AS col1
----
5533

query II rowsort
SELECT ALL - - 64 + 35 + - 44, 57 AS col1
----
55
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7233
SELECT - + 0 col2, - COALESCE ( - 64, ( MAX( DISTINCT + - 27 ) ), CASE 9 WHEN CASE 23 WHEN + MAX( + 92 ) + + 49 THEN + - 15 ELSE 48 END THEN NULL ELSE - COUNT( * ) END ) * + 53
----
0
3392

skipif mysql # not compatible
query II rowsort label-7233
SELECT - + 0 col2, - COALESCE ( - 64, ( MAX ( DISTINCT + - 27 ) ), CASE 9 WHEN CASE 23 WHEN + MAX ( + 92 ) + + 49 THEN + - 15 ELSE 48 END THEN NULL ELSE - COUNT ( * ) END ) * + 53
----
0
3392

query II rowsort
SELECT ALL - 43, + 71 AS col1
----
-43
71

query I rowsort
SELECT + 85 * + 7 * + 80 AS col0
----
47600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7236
SELECT - 6 DIV - - 78 + - COUNT( * ) + + 93 * 97
----
9020

skipif mysql # not compatible
query I rowsort label-7236
SELECT - 6 / - - 78 + - COUNT ( * ) + + 93 * 97
----
9020

query I rowsort
SELECT ALL - + ( + 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT ALL - 86 + + - COUNT( ALL - 38 ) * + 60 + - 82 + + - 49
----
-277

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL - 86 + + - COUNT ( ALL - 38 ) * + 60 + - 82 + + - 49
----
-277

query I rowsort
SELECT - 52 + + 43
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT + 35 * 12 DIV 39 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7240
SELECT + 35 * 12 / 39 AS col1
----
10

query I rowsort
SELECT DISTINCT - 20 + COALESCE ( ( + 48 ), - 49 * - 72 + + ( + - 93 ) ) - - 73 * 97
----
7109

onlyif mysql # aggregate syntax: 
query II rowsort label-7242
SELECT DISTINCT - ( + ( - SUM( + + 13 ) ) ) AS col0, 36 col0
----
13
36

skipif mysql # not compatible
query II rowsort label-7242
SELECT DISTINCT - ( + ( - SUM ( + + 13 ) ) ) AS col0, 36 col0
----
13
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7243
SELECT ALL - - 93 + + CAST( CASE - 12 WHEN - COUNT( * ) - 5 THEN NULL WHEN 10 THEN NULL ELSE + 0 END AS SIGNED ), - 50 + - MIN( ALL + 93 ) + - 21 - - COUNT( - + ( - 60 ) ) + 34 DIV + 4 AS col1
----
93
-155

skipif mysql # not compatible
query II rowsort label-7243
SELECT ALL - - 93 + + CAST ( CASE - 12 WHEN - COUNT ( * ) - 5 THEN NULL WHEN 10 THEN NULL ELSE + 0 END AS INTEGER ), - 50 + - MIN ( ALL + 93 ) + - 21 - - COUNT ( - + ( - 60 ) ) + 34 / + 4 AS col1
----
93
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT DISTINCT + + COALESCE ( 11, - 84 * + COALESCE ( - 14, - 79, - 42 * + - 4 * ( - - COUNT( * ) ) ) + + 85 ) + 97 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT + + COALESCE ( 11, - 84 * + COALESCE ( - 14, - 79, - 42 * + - 4 * ( - - COUNT ( * ) ) ) + + 85 ) + 97 AS col2
----
108

query I rowsort
SELECT ALL - 71 + NULLIF ( - + 99, 43 * + 21 * - - 98 + - 59 ) + 39 * - 44 + + + 60 AS col2
----
-1826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7246
SELECT + COUNT( * ) - 68 + - 37 - + - 40 / - COUNT( * ) * - + CAST( NULL AS SIGNED ) / 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT + COUNT ( * ) - 68 + - 37 - + - 40 / - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) / 2
----
NULL

query I rowsort
SELECT + 15 + + 28
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7248
SELECT + NULLIF ( + - 3, - 92 - CAST( NULL AS SIGNED ) + - COALESCE ( + + 0, + - 13 ) + AVG ( DISTINCT + 38 ) + - MAX( DISTINCT - - 26 ) * + 50 * + + 30 * 25 / - COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-7248
SELECT + NULLIF ( + - 3, - 92 - CAST ( NULL AS INTEGER ) + - COALESCE ( + + 0, + - 13 ) + AVG ( DISTINCT + 38 ) + - MAX ( DISTINCT - - 26 ) * + 50 * + + 30 * 25 / - COUNT ( * ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT + + 76 * + 79 + - COUNT( DISTINCT - 29 ) * - 61 + - 6 AS col2
----
6059

skipif mysql # not compatible
query I rowsort label-7249
SELECT + + 76 * + 79 + - COUNT ( DISTINCT - 29 ) * - 61 + - 6 AS col2
----
6059

query I rowsort
SELECT ( + + 94 ) * 92 + 4
----
8652

query I rowsort
SELECT 62 * 94 + 51 AS col1
----
5879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7252
SELECT DISTINCT SUM( + 41 ) DIV 20 + + CASE 1 WHEN + + 32 THEN + 94 ELSE - 30 - + COUNT( * ) + + 53 END + 65 - + - 39 + - ( - - 30 ) + + 69 * - COALESCE ( - - ( - CASE + + 41 WHEN + 77 + + 96 + + ( - - 73 ) + - + 0 + + 65 * - - 32 THEN NULL ELSE - - 19 * + SUM( ALL - 65 ) - - COUNT( * ) END ), 73 * ( 34 ), + CAST( 97 AS SIGNED ) DIV - 54 ) * - COUNT( * )
----
85244

skipif mysql # not compatible
query I rowsort label-7252
SELECT DISTINCT SUM ( + 41 ) / 20 + + CASE 1 WHEN + + 32 THEN + 94 ELSE - 30 - + COUNT ( * ) + + 53 END + 65 - + - 39 + - ( - - 30 ) + + 69 * - COALESCE ( - - ( - CASE + + 41 WHEN + 77 + + 96 + + ( - - 73 ) + - + 0 + + 65 * - - 32 THEN NULL ELSE - - 19 * + SUM ( ALL - 65 ) - - COUNT ( * ) END ), 73 * ( 34 ), + CAST ( 97 AS INTEGER ) / - 54 ) * - COUNT ( * )
----
85244

query I rowsort
SELECT ( 6 ) * + 50 AS col2
----
300

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7254
SELECT ALL CAST( - 77 AS SIGNED ) * - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL CAST ( - 77 AS INTEGER ) * - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7255
SELECT ALL COALESCE ( 14, + 83 * 10 DIV + + 41 ) * + 34 + + - 67 AS col0
----
409

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL COALESCE ( 14, + 83 * 10 / + + 41 ) * + 34 + + - 67 AS col0
----
409

onlyif mysql # aggregate syntax: 
query II rowsort label-7256
SELECT COUNT( * ) + + - 61, + ( - 23 ) AS col1
----
-60
-23

skipif mysql # not compatible
query II rowsort label-7256
SELECT COUNT ( * ) + + - 61, + ( - 23 ) AS col1
----
-60
-23

query I rowsort
SELECT 99 * + 91
----
9009

query I rowsort
SELECT NULLIF ( 31, + 21 + + ( + - 45 ) + 19 ) * - + 9 AS col1
----
-279

query I rowsort
SELECT 47 + + 63 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT 63 + - 40 - 66 * + COUNT( * ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-7260
SELECT 63 + - 40 - 66 * + COUNT ( * ) AS col1
----
-43

query I rowsort
SELECT ALL 36 + - - 23
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT - MIN( - - ( + ( + + ( + - 75 ) ) ) ) col1
----
75

skipif mysql # not compatible
query I rowsort label-7262
SELECT - MIN ( - - ( + ( + + ( + - 75 ) ) ) ) col1
----
75

query I rowsort
SELECT ALL + 19 + NULLIF ( 2, 94 ) + + 26 AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7264
SELECT ALL - - 62 + - - CAST( + 82 AS SIGNED )
----
144

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL - - 62 + - - CAST ( + 82 AS INTEGER )
----
144

query I rowsort
SELECT DISTINCT + 48 + + 30 * + - 95
----
-2802

query I rowsort
SELECT + ( + CASE 17 WHEN - + 11 THEN - - 15 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT ALL - - SUM( ALL - 8 ) + - 4
----
-12

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - - SUM ( ALL - 8 ) + - 4
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT 78 + COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7268
SELECT 78 + COUNT ( * ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7269
SELECT - COUNT( * ) - ( - 88 ) - 51 * ( - NULLIF ( + - 61, + 46 * + + 17 * - 59 ) ) * + - 10 * 9 AS col2, + 54 AS col2
----
280077
54

skipif mysql # not compatible
query II rowsort label-7269
SELECT - COUNT ( * ) - ( - 88 ) - 51 * ( - NULLIF ( + - 61, + 46 * + + 17 * - 59 ) ) * + - 10 * 9 AS col2, + 54 AS col2
----
280077
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7270
SELECT ALL + + CASE 43 WHEN + CAST( + 55 AS SIGNED ) THEN - CAST( NULL AS SIGNED ) * - 12 * - COUNT( * ) END * + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + + CASE 43 WHEN + CAST ( + 55 AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) * - 12 * - COUNT ( * ) END * + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT + 50 DIV - - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7271
SELECT + 50 / - - 74 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7272
SELECT + - 80 DIV 45 + + 33 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7272
SELECT + - 80 / 45 + + 33 AS col0
----
32

query II rowsort
SELECT - ( 54 ), 52 * ( + 32 ) - + - 40 + - - 80 * 22 AS col1
----
-54
3464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7274
SELECT ALL 53 * - - 57 - + 52 + - 42 * - 11 DIV COUNT( * ) * + 10 + + + 79 + + 69 AS col0
----
7737

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL 53 * - - 57 - + 52 + - 42 * - 11 / COUNT ( * ) * + 10 + + + 79 + + 69 AS col0
----
7737

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7275
SELECT DISTINCT COUNT( * ) * - + ( + 34 ) DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT COUNT ( * ) * - + ( + 34 ) / + 54
----
0

query I rowsort
SELECT + ( + 8 ) col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7277
SELECT ALL - ( 80 ) DIV + 48
----
-1

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - ( 80 ) / + 48
----
-1

query I rowsort
SELECT + + CASE - + 14 WHEN - + 69 * ( + - 31 ) + + 80 + - 53 THEN 59 * + - NULLIF ( - - 78, + 99 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7279
SELECT ( - COALESCE ( + ( - 46 ), - CAST( NULL AS SIGNED ) * 50 DIV - - 2 + 59 + 28 + 47 * + - 91 * + - COUNT( * ) + + SUM( ALL - + 38 ) ) ) + - 10, 83 AS col0
----
36
83

skipif mysql # not compatible
query II rowsort label-7279
SELECT ( - COALESCE ( + ( - 46 ), - CAST ( NULL AS INTEGER ) * 50 / - - 2 + 59 + 28 + 47 * + - 91 * + - COUNT ( * ) + + SUM ( ALL - + 38 ) ) ) + - 10, 83 AS col0
----
36
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7280
SELECT COUNT( * ) AS col0, - COUNT( DISTINCT - 35 ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-7280
SELECT COUNT ( * ) AS col0, - COUNT ( DISTINCT - 35 ) AS col0
----
1
-1

query I rowsort
SELECT ALL - NULLIF ( + 7, - 93 * 34 )
----
-7

query I rowsort
SELECT DISTINCT - 40 - - 18 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT ALL + COUNT( ALL + 32 ) * NULLIF ( 68, - + 82 ) * 19 AS col0
----
1292

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL + COUNT ( ALL + 32 ) * NULLIF ( 68, - + 82 ) * 19 AS col0
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT ALL + MIN( ALL 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL + MIN ( ALL 40 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT - 13 + - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-7285
SELECT - 13 + - COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT - MAX( + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-7286
SELECT - MAX ( + 48 )
----
-48

query I rowsort
SELECT + 89 + ( + 58 ) * ( - + 12 ) - + ( 84 )
----
-691

query I rowsort
SELECT ALL - ( ( 76 ) ) + - - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT DISTINCT CASE + COUNT( * ) WHEN - + 43 THEN - ( 72 ) / + + COUNT( * ) + 9 ELSE + 55 + + + 51 END
----
106

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT CASE + COUNT ( * ) WHEN - + 43 THEN - ( 72 ) / + + COUNT ( * ) + 9 ELSE + 55 + + + 51 END
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-7290
SELECT ALL - 23 DIV - 5 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL - 23 / - 5 AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7291
SELECT + COUNT( + - 83 ) - COUNT( * ) + - 4 DIV + 12 + ( + 19 ) * 41 * - 90 AS col2
----
-70110

skipif mysql # not compatible
query I rowsort label-7291
SELECT + COUNT ( + - 83 ) - COUNT ( * ) + - 4 / + 12 + ( + 19 ) * 41 * - 90 AS col2
----
-70110

query I rowsort
SELECT DISTINCT 48 + + 80
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT DISTINCT ( 19 ) + 82 * - - COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT ( 19 ) + 82 * - - COUNT ( * )
----
101

query I rowsort
SELECT COALESCE ( + 3, + ( - + 29 ) ) AS col2
----
3

query I rowsort
SELECT ALL 42 + - ( + - 66 )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT + SUM( DISTINCT 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7296
SELECT + SUM ( DISTINCT 90 ) AS col1
----
90

query I rowsort
SELECT + + 6 + + 61 - - 80
----
147

query I rowsort
SELECT - ( + 25 ) AS col1
----
-25

query I rowsort
SELECT + - 31 + + + 88
----
57

query I rowsort
SELECT ALL + 26 + - - 82 + 64 * - 27
----
-1620

query I rowsort
SELECT DISTINCT 87 + - + 7
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7302
SELECT ALL + + 55 - - COUNT( * ) + - + 62 + 14 - - 44 * + ( - COUNT( * ) ) * - CAST( + COUNT( * ) AS SIGNED ) + + 14 + + + COUNT( - NULLIF ( + 5, 99 + - - 16 ) ) * 67 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL + + 55 - - COUNT ( * ) + - + 62 + 14 - - 44 * + ( - COUNT ( * ) ) * - CAST ( + COUNT ( * ) AS INTEGER ) + + 14 + + + COUNT ( - NULLIF ( + 5, 99 + - - 16 ) ) * 67 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 75 * - 99
----
-7425

query I rowsort
SELECT + - 4 * - - 79
----
-316

query I rowsort
SELECT - - 99 * + 55 col0
----
5445

query I rowsort
SELECT + - 88 + - - 2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7307
SELECT - COUNT( * ) DIV - - 42
----
0

skipif mysql # not compatible
query I rowsort label-7307
SELECT - COUNT ( * ) / - - 42
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7308
SELECT DISTINCT - - ( - 35 ) * - + 38, ( COUNT( * ) ) * + 74 + - 6 AS col1
----
1330
68

skipif mysql # not compatible
query II rowsort label-7308
SELECT DISTINCT - - ( - 35 ) * - + 38, ( COUNT ( * ) ) * + 74 + - 6 AS col1
----
1330
68

query I rowsort
SELECT ALL - 49 * + ( + 17 ) AS col2
----
-833

query II rowsort
SELECT DISTINCT + 41 AS col1, 66 AS col1
----
41
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL COUNT( + 67 ) * + 17 - - 55 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL COUNT ( + 67 ) * + 17 - - 55 AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7312
SELECT - 97 + + COALESCE ( + - COALESCE ( 44, ( + ( CAST( NULL AS SIGNED ) ) ) * - COALESCE ( - ( 85 ), - + 55 ) + + 98 + 59 * + 58 + COUNT( * ) DIV 23 * + 66 * 16 ), CASE + + COALESCE ( 9, - CAST( + 95 AS SIGNED ), - CAST( NULL AS SIGNED ) DIV + 30 - CAST( ( NULLIF ( + AVG ( ALL - + 18 ), - 77 + + 35 ) ) AS SIGNED ) - 40 * 76 ) WHEN - 26 + MAX( DISTINCT 88 ) THEN - 41 WHEN + 80 THEN NULL END DIV 50 )
----
-141

skipif mysql # not compatible
query I rowsort label-7312
SELECT - 97 + + COALESCE ( + - COALESCE ( 44, ( + ( CAST ( NULL AS INTEGER ) ) ) * - COALESCE ( - ( 85 ), - + 55 ) + + 98 + 59 * + 58 + COUNT ( * ) / 23 * + 66 * 16 ), CASE + + COALESCE ( 9, - CAST ( + 95 AS INTEGER ), - CAST ( NULL AS INTEGER ) / + 30 - CAST ( ( NULLIF ( + AVG ( ALL - + 18 ), - 77 + + 35 ) ) AS INTEGER ) - 40 * 76 ) WHEN - 26 + MAX ( DISTINCT 88 ) THEN - 41 WHEN + 80 THEN NULL END / 50 )
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT DISTINCT + CASE 31 WHEN - 96 THEN - 76 - + COALESCE ( + CAST( 87 AS SIGNED ), - 42 ) WHEN COALESCE ( + 65, + 2, 33 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT + CASE 31 WHEN - 96 THEN - 76 - + COALESCE ( + CAST ( 87 AS INTEGER ), - 42 ) WHEN COALESCE ( + 65, + 2, 33 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7314
SELECT + CAST( NULL AS DECIMAL ) col1, - 99 * CASE 17 WHEN + 83 * - 29 + AVG ( DISTINCT + 88 ) + - + COUNT( * ) * 30 THEN 43 WHEN + 32 + 59 + + 55 / 15 * 19 THEN + MIN( 74 ) ELSE - + 59 END + - + 57 AS col2
----
NULL
5784

skipif mysql # not compatible
query II rowsort label-7314
SELECT + CAST ( NULL AS REAL ) col1, - 99 * CASE 17 WHEN + 83 * - 29 + AVG ( DISTINCT + 88 ) + - + COUNT ( * ) * 30 THEN 43 WHEN + 32 + 59 + + 55 / 15 * 19 THEN + MIN ( 74 ) ELSE - + 59 END + - + 57 AS col2
----
NULL
5784

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT + 44 * ( - + 55 ) * - COUNT( * ) + 79
----
2499

skipif mysql # not compatible
query I rowsort label-7315
SELECT + 44 * ( - + 55 ) * - COUNT ( * ) + 79
----
2499

query I rowsort
SELECT ALL + CASE + + 87 WHEN 22 THEN + + 71 ELSE NULL END
----
NULL

query I rowsort
SELECT - 61 + 58 + + 9 col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7318
SELECT + MIN( DISTINCT 77 ) AS col2, - 54 AS col2
----
77
-54

skipif mysql # not compatible
query II rowsort label-7318
SELECT + MIN ( DISTINCT 77 ) AS col2, - 54 AS col2
----
77
-54

query I rowsort
SELECT DISTINCT + ( - 80 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT - 37 + - 80 * - ( COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-7320
SELECT - 37 + - 80 * - ( COUNT ( * ) )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT ALL + MIN( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL + MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7322
SELECT ALL - COUNT( * ) * - 5 / + + CASE - CAST( NULL AS SIGNED ) WHEN - + 9 / - - 92 THEN + COUNT( 71 ) ELSE NULL END + + CASE - 81 WHEN 75 * + 56 + - + NULLIF ( - - SUM( - - ( - 64 ) ), 50 + 86 + + 70 * - 74 ) THEN + 53 WHEN - + ( 54 ) * - CASE + 92 WHEN - - 70 * 92 + + 70 / + - 49 THEN ( + 92 ) ELSE NULL END THEN 66 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL - COUNT ( * ) * - 5 / + + CASE - CAST ( NULL AS INTEGER ) WHEN - + 9 / - - 92 THEN + COUNT ( 71 ) ELSE NULL END + + CASE - 81 WHEN 75 * + 56 + - + NULLIF ( - - SUM ( - - ( - 64 ) ), 50 + 86 + + 70 * - 74 ) THEN + 53 WHEN - + ( 54 ) * - CASE + 92 WHEN - - 70 * 92 + + 70 / + - 49 THEN ( + 92 ) ELSE NULL END THEN 66 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT - 93 * 90 + - COUNT( * )
----
-8371

skipif mysql # not compatible
query I rowsort label-7323
SELECT - 93 * 90 + - COUNT ( * )
----
-8371

onlyif mysql # aggregate syntax: 
query II rowsort label-7324
SELECT DISTINCT + 66 AS col2, + COUNT( * ) AS col0
----
66
1

skipif mysql # not compatible
query II rowsort label-7324
SELECT DISTINCT + 66 AS col2, + COUNT ( * ) AS col0
----
66
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7325
SELECT + 50, ( MIN( - + ( 63 ) ) ) * + 56 AS col0
----
50
-3528

skipif mysql # not compatible
query II rowsort label-7325
SELECT + 50, ( MIN ( - + ( 63 ) ) ) * + 56 AS col0
----
50
-3528

query I rowsort
SELECT DISTINCT - 9 * - + 30 AS col1
----
270

query I rowsort
SELECT ALL + 56 * - 7 * + ( + 88 ) + - 53 + 48
----
-34501

query I rowsort
SELECT - 83 + - 32
----
-115

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7329
SELECT DISTINCT - 23 * - + COUNT( * ) + - - ( 54 ) - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT - 23 * - + COUNT ( * ) + - - ( 54 ) - MAX ( DISTINCT CAST ( NULL AS REAL ) ) * - 50
----
NULL

query I rowsort
SELECT + 36 + + 37 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL 67 * - - COUNT( * ) * - - 69 + ( - NULLIF ( - 63, + COUNT( * ) + 24 - - 94 * + 38 + 78 ) ) + - 71 * - + 14 AS col1
----
5680

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL 67 * - - COUNT ( * ) * - - 69 + ( - NULLIF ( - 63, + COUNT ( * ) + 24 - - 94 * + 38 + 78 ) ) + - 71 * - + 14 AS col1
----
5680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7332
SELECT - - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT - - 60 DIV 58 - + 28
----
-27

skipif mysql # not compatible
query I rowsort label-7333
SELECT - - 60 / 58 - + 28
----
-27

query I rowsort
SELECT ALL - 55 - - 53 * - + 5 AS col1
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT - + MIN( DISTINCT 64 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-7335
SELECT - + MIN ( DISTINCT 64 ) AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7336
SELECT + 59 DIV - + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7336
SELECT + 59 / - + 98 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT + + 78 + + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-7337
SELECT + + 78 + + COUNT ( * )
----
79

query I rowsort
SELECT DISTINCT + 72 * + 14
----
1008

query I rowsort
SELECT + - ( - 4 ) + + 56 AS col1
----
60

query I rowsort
SELECT ALL - 39 - + 10 AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT - + 33 DIV + 17
----
-1

skipif mysql # not compatible
query I rowsort label-7341
SELECT - + 33 / + 17
----
-1

query I rowsort
SELECT + + 28 * 99 * - ( 47 )
----
-130284

query I rowsort
SELECT + - 59 - 97 AS col0
----
-156

query II rowsort
SELECT ALL 31, + 67 AS col1
----
31
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7345
SELECT DISTINCT + - MAX( DISTINCT - + 81 ), 41 + 39 AS col1
----
81
80

skipif mysql # not compatible
query II rowsort label-7345
SELECT DISTINCT + - MAX ( DISTINCT - + 81 ), 41 + 39 AS col1
----
81
80

onlyif mysql # DIV for integer division: 
query II rowsort label-7346
SELECT DISTINCT + 20 * + 72 + + + 76 * - 92 + + 33 * - + 58 AS col0, + 85 DIV + 12 AS col2
----
-7466
7

skipif mysql # not compatible
query II rowsort label-7346
SELECT DISTINCT + 20 * + 72 + + + 76 * - 92 + + 33 * - + 58 AS col0, + 85 / + 12 AS col2
----
-7466
7

query II rowsort
SELECT ALL - + 1 col2, - 15
----
-1
-15

query I rowsort
SELECT DISTINCT - 22 * + - 58 * 38
----
48488

query I rowsort
SELECT 2 * 55 AS col0
----
110

query I rowsort
SELECT 38 * + 82
----
3116

query I rowsort
SELECT DISTINCT 73 * - 24 * - 60
----
105120

query I rowsort
SELECT ALL ( - + 54 ) + - 44
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT + COUNT( * ) * - + 57 + 91 - 37 * 44
----
-1594

skipif mysql # not compatible
query I rowsort label-7353
SELECT + COUNT ( * ) * - + 57 + 91 - 37 * 44
----
-1594

query I rowsort
SELECT ALL - 4 + - 10 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7355
SELECT COUNT( * ) * + 62 AS col2, COALESCE ( + CAST( NULL AS SIGNED ), + 93 * - COUNT( * ) - 83, - 21 ) + 90
----
62
-86

skipif mysql # not compatible
query II rowsort label-7355
SELECT COUNT ( * ) * + 62 AS col2, COALESCE ( + CAST ( NULL AS INTEGER ), + 93 * - COUNT ( * ) - 83, - 21 ) + 90
----
62
-86

query I rowsort
SELECT ALL 20 + - 22 + - + 32 + - ( + 87 ) - - + 13
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-7357
SELECT DISTINCT COUNT( * ) * 19 AS col0, + MAX( DISTINCT - 74 ) AS col2
----
19
-74

skipif mysql # not compatible
query II rowsort label-7357
SELECT DISTINCT COUNT ( * ) * 19 AS col0, + MAX ( DISTINCT - 74 ) AS col2
----
19
-74

query I rowsort
SELECT ALL + 32 + - + 52 * + 50 - 72 AS col1
----
-2640

query II rowsort
SELECT DISTINCT - ( 83 ) AS col1, 78
----
-83
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7360
SELECT DISTINCT + 60 DIV + - 36
----
-1

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT + 60 / + - 36
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7361
SELECT 27 + + CAST( NULL AS SIGNED ) + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7361
SELECT 27 + + CAST ( NULL AS INTEGER ) + + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT ALL - ( + SUM( ALL + - 65 ) ) + + 39 - 63
----
41

skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL - ( + SUM ( ALL + - 65 ) ) + + 39 - 63
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7363
SELECT 72 DIV MAX( 91 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7363
SELECT 72 / MAX ( 91 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ( + MIN( DISTINCT + 16 ) ) - - 42 + - + 94 * + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-7364
SELECT ( + MIN ( DISTINCT + 16 ) ) - - 42 + - + 94 * + COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT 78 * + - 41 * CASE - 58 WHEN + - 48 THEN + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7365
SELECT 78 * + - 41 * CASE - 58 WHEN + - 48 THEN + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7366
SELECT DISTINCT + 60 DIV MAX( + 21 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT + 60 / MAX ( + 21 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL - 6 + - + COUNT( * ) + COUNT( ALL - 82 ) + 7 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL - 6 + - + COUNT ( * ) + COUNT ( ALL - 82 ) + 7 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7368
SELECT 69 * 93 * + COUNT( * ) + + ( 53 ) AS col0, + 66
----
6470
66

skipif mysql # not compatible
query II rowsort label-7368
SELECT 69 * 93 * + COUNT ( * ) + + ( 53 ) AS col0, + 66
----
6470
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT 46 + - COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7369
SELECT 46 + - COUNT ( * ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL ( + COUNT( * ) ) - - 93 + ( - 90 ) + - MAX( DISTINCT - 41 ) * + 44 * - 42 AS col1
----
-75764

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL ( + COUNT ( * ) ) - - 93 + ( - 90 ) + - MAX ( DISTINCT - 41 ) * + 44 * - 42 AS col1
----
-75764

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT - CASE SUM( DISTINCT 17 ) WHEN - 21 THEN + 51 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT - CASE SUM ( DISTINCT 17 ) WHEN - 21 THEN + 51 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT 92 + - - 76 AS col0, 15 AS col2
----
168
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT 23 * 78 + + MIN( ALL + 55 )
----
1849

skipif mysql # not compatible
query I rowsort label-7373
SELECT 23 * 78 + + MIN ( ALL + 55 )
----
1849

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT DISTINCT - + 21 - - ( COUNT( * ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT - + 21 - - ( COUNT ( * ) ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT COUNT( * ) - - ( - + ( + 45 ) ) + - + 42 * + 16
----
-716

skipif mysql # not compatible
query I rowsort label-7375
SELECT COUNT ( * ) - - ( - + ( + 45 ) ) + - + 42 * + 16
----
-716

query I rowsort
SELECT 2 * - + 66 * - 4 AS col0
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT - MAX( DISTINCT - 81 ) * - - 49
----
3969

skipif mysql # not compatible
query I rowsort label-7377
SELECT - MAX ( DISTINCT - 81 ) * - - 49
----
3969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7378
SELECT CAST( + + 28 AS SIGNED ) + 97 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-7378
SELECT CAST ( + + 28 AS INTEGER ) + 97 AS col0
----
125

query I rowsort
SELECT 94 + - 89
----
5

query I rowsort
SELECT - 32 * + ( - 6 ) AS col2
----
192

query I rowsort
SELECT 40 + + 70
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT DISTINCT + CASE 18 WHEN + 78 + 21 THEN ( COUNT( * ) ) * - 61 * + + 94 + - + 95 + + MAX( COALESCE ( - - 59, - 10, + 34 + - - 84 + - 83 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + CASE 18 WHEN + 78 + 21 THEN ( COUNT ( * ) ) * - 61 * + + 94 + - + 95 + + MAX ( COALESCE ( - - 59, - 10, + 34 + - - 84 + - 83 ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7383
SELECT ALL ( - - NULLIF ( - 22, + 34 + + + COALESCE ( - CASE WHEN NOT + CAST( 31 AS SIGNED ) IS NULL THEN - SUM( ALL 20 ) * 79 + - + 76 END, + 1 ) + + COUNT( * ) ) )
----
-22

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL ( - - NULLIF ( - 22, + 34 + + + COALESCE ( - CASE WHEN NOT + CAST ( 31 AS INTEGER ) IS NULL THEN - SUM ( ALL 20 ) * 79 + - + 76 END, + 1 ) + + COUNT ( * ) ) )
----
-22

query I rowsort
SELECT ALL ( 35 ) * 26 + 52
----
962

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7385
SELECT + 59 DIV - MAX( DISTINCT - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-7385
SELECT + 59 / - MAX ( DISTINCT - 31 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7386
SELECT ALL + 16 DIV + - NULLIF ( - 57, CAST( 58 AS DECIMAL ) ) AS col0, 58 AS col1
----
0
58

skipif mysql # not compatible
query II rowsort label-7386
SELECT ALL + 16 / + - NULLIF ( - 57, CAST ( 58 AS REAL ) ) AS col0, 58 AS col1
----
0
58

query I rowsort
SELECT ALL - 11 + 22
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT ALL - CASE + 26 WHEN 34 * - MAX( 59 ) THEN + 21 / SUM( + + 44 ) WHEN + + 66 THEN NULL END + - SUM( DISTINCT - + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL - CASE + 26 WHEN 34 * - MAX ( 59 ) THEN + 21 / SUM ( + + 44 ) WHEN + + 66 THEN NULL END + - SUM ( DISTINCT - + 25 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7389
SELECT ALL + 8 * - - ( - 85 ) AS col1, - ( CAST( - - ( + + 46 ) AS SIGNED ) )
----
-680
-46

skipif mysql # not compatible
query II rowsort label-7389
SELECT ALL + 8 * - - ( - 85 ) AS col1, - ( CAST ( - - ( + + 46 ) AS INTEGER ) )
----
-680
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT DISTINCT ( - - 57 ) * + NULLIF ( 77, + COUNT( * ) + + ( + 72 ) + 85 + 9 + + 54 * + 71 * - 92 ) col2
----
4389

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT ( - - 57 ) * + NULLIF ( 77, + COUNT ( * ) + + ( + 72 ) + 85 + 9 + + 54 * + 71 * - 92 ) col2
----
4389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT ALL 32 + - + ( 18 ) + - CAST( + - 50 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL 32 + - + ( 18 ) + - CAST ( + - 50 AS INTEGER )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT MAX( ALL + - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-7392
SELECT MAX ( ALL + - 53 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT - 48 * - + 35 + - 36 * CAST( NULL AS SIGNED ) - + + 49 + - - SUM( DISTINCT + 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT - 48 * - + 35 + - 36 * CAST ( NULL AS INTEGER ) - + + 49 + - - SUM ( DISTINCT + 3 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7394
SELECT ALL CAST( NULL AS SIGNED ) + 22 + + ( - ( - - 46 ) ) * - + 2 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL CAST ( NULL AS INTEGER ) + 22 + + ( - ( - - 46 ) ) * - + 2 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7395
SELECT ALL - ( + 86 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL - ( + 86 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7396
SELECT 64 DIV - COUNT( * ) + - + COUNT( * ) DIV - - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-7396
SELECT 64 / - COUNT ( * ) + - + COUNT ( * ) / - - COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7397
SELECT 71 AS col0, - MIN( DISTINCT 55 )
----
71
-55

skipif mysql # not compatible
query II rowsort label-7397
SELECT 71 AS col0, - MIN ( DISTINCT 55 )
----
71
-55

query I rowsort
SELECT ALL 78 + + - 5
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7399
SELECT CAST( - 48 AS SIGNED ) + + COUNT( * ) - - 51
----
4

skipif mysql # not compatible
query I rowsort label-7399
SELECT CAST ( - 48 AS INTEGER ) + + COUNT ( * ) - - 51
----
4

query II rowsort
SELECT ALL - 88 AS col0, 24 AS col0
----
-88
24

query II rowsort
SELECT + 48, + 90 col0
----
48
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT COUNT( * ) * 78 + + 13
----
91

skipif mysql # not compatible
query I rowsort label-7402
SELECT COUNT ( * ) * 78 + + 13
----
91

query II rowsort
SELECT DISTINCT - 4 AS col2, + 49 AS col0
----
-4
49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7404
SELECT 81 + + CAST( + + 19 AS SIGNED ) + + CAST( NULL AS DECIMAL ) * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT 81 + + CAST ( + + 19 AS INTEGER ) + + CAST ( NULL AS REAL ) * 54
----
NULL

query I rowsort
SELECT ALL 18 * - 53
----
-954

query I rowsort
SELECT 88 + + 77 AS col0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL + 38 * COUNT( DISTINCT + 20 ) * + - 55
----
-2090

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL + 38 * COUNT ( DISTINCT + 20 ) * + - 55
----
-2090

query II rowsort
SELECT DISTINCT 20 AS col2, - 57 AS col0
----
20
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT ALL + MIN( ALL - - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL + MIN ( ALL - - 84 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7410
SELECT NULLIF ( + 36, - 67 * 58 * + + ( + - 68 ) + + CAST( NULL AS SIGNED ) / 33 * - - 71 - - 48 ) + COUNT( * ) AS col1, 92
----
37
92

skipif mysql # not compatible
query II rowsort label-7410
SELECT NULLIF ( + 36, - 67 * 58 * + + ( + - 68 ) + + CAST ( NULL AS INTEGER ) / 33 * - - 71 - - 48 ) + COUNT ( * ) AS col1, 92
----
37
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT - CAST( NULL AS SIGNED ) + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT - CAST ( NULL AS INTEGER ) + + 53
----
NULL

query I rowsort
SELECT - 50 * - NULLIF ( 81, + + 19 * + 50 * + ( + + 24 ) )
----
4050

query I rowsort
SELECT 30 + + + 14
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7414
SELECT - 71, - 29 DIV - 78 - - 77 * - 45 + COUNT( DISTINCT + - 2 ) AS col1
----
-71
-3464

skipif mysql # not compatible
query II rowsort label-7414
SELECT - 71, - 29 / - 78 - - 77 * - 45 + COUNT ( DISTINCT + - 2 ) AS col1
----
-71
-3464

onlyif mysql # DIV for integer division: 
query I rowsort label-7415
SELECT ALL + 22 DIV - 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + 22 / - 51 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7416
SELECT - COUNT( * ) AS col1, 86 * + 58
----
-1
4988

skipif mysql # not compatible
query II rowsort label-7416
SELECT - COUNT ( * ) AS col1, 86 * + 58
----
-1
4988

query I rowsort
SELECT + NULLIF ( 87, + + 86 / + 69 ) + - 10 + + - 38
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7418
SELECT - - 26 * - 20 + - 75 AS col0, - COUNT( - 43 )
----
-595
-1

skipif mysql # not compatible
query II rowsort label-7418
SELECT - - 26 * - 20 + - 75 AS col0, - COUNT ( - 43 )
----
-595
-1

query I rowsort
SELECT ALL - 20 + 90 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7420
SELECT ALL - + COUNT( * ) + COALESCE ( 8, + + CAST( NULL AS SIGNED ) * - + COALESCE ( - COUNT( * ), - COUNT( * ) DIV - 15 DIV 96 * - - 45 * + CAST( + - 4 AS SIGNED ) - COUNT( * ) * + 80 ) ), + CAST( 8 AS SIGNED ) + - - 78 AS col2
----
7
86

skipif mysql # not compatible
query II rowsort label-7420
SELECT ALL - + COUNT ( * ) + COALESCE ( 8, + + CAST ( NULL AS INTEGER ) * - + COALESCE ( - COUNT ( * ), - COUNT ( * ) / - 15 / 96 * - - 45 * + CAST ( + - 4 AS INTEGER ) - COUNT ( * ) * + 80 ) ), + CAST ( 8 AS INTEGER ) + - - 78 AS col2
----
7
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT ALL + + CAST( - ( - - 24 ) AS SIGNED ) + + 40 * + - 37 col1
----
-1504

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL + + CAST ( - ( - - 24 ) AS INTEGER ) + + 40 * + - 37 col1
----
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT ALL + 70 * - - COALESCE ( + COUNT( * ), + + 23 - + 78 * + - 52 ) * 18 AS col1
----
1260

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL + 70 * - - COALESCE ( + COUNT ( * ), + + 23 - + 78 * + - 52 ) * 18 AS col1
----
1260

query I rowsort
SELECT + 96 * - + 67
----
-6432

query I rowsort
SELECT - 66 + - - 53 + + - 2 AS col0
----
-15

query II rowsort
SELECT - 56 AS col2, 49 * - - 20 AS col0
----
-56
980

query I rowsort
SELECT DISTINCT + - 1 * + 86 + - 78 AS col2
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT ALL - MIN( - 67 ) + - 49 + + + 12 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL - MIN ( - 67 ) + - 49 + + + 12 AS col1
----
30

query I rowsort
SELECT ALL + 4 + + - NULLIF ( + 37, + 43 ) AS col1
----
-33

query I rowsort
SELECT - 38 * + 39 AS col1
----
-1482

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT - 97 - + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-7430
SELECT - 97 - + COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT DISTINCT + COUNT( * ) * 9 col1
----
9

skipif mysql # not compatible
query I rowsort label-7431
SELECT DISTINCT + COUNT ( * ) * 9 col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7432
SELECT ALL - 34 * + 53 * - + 1 + CAST( + - 12 AS SIGNED ) * - 92 col1
----
2906

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL - 34 * + 53 * - + 1 + CAST ( + - 12 AS INTEGER ) * - 92 col1
----
2906

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT DISTINCT 20 * - COUNT( DISTINCT + + 48 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT 20 * - COUNT ( DISTINCT + + 48 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT - MAX( ALL + + 33 ) * + 83
----
-2739

skipif mysql # not compatible
query I rowsort label-7434
SELECT - MAX ( ALL + + 33 ) * + 83
----
-2739

query II rowsort
SELECT DISTINCT + 60 * - 27 AS col2, 13 + - + ( - - 49 ) AS col0
----
-1620
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7436
SELECT ALL + NULLIF ( 50, - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) col0
----
50

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL + NULLIF ( 50, - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) col0
----
50

query I rowsort
SELECT - 48 * + + 1 * - 66
----
3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7438
SELECT CASE + MIN( DISTINCT + 93 ) WHEN - 96 * + ( - 91 ) * - + 37 + COALESCE ( + 55, - 66, - CASE - CAST( - + 98 AS SIGNED ) WHEN + NULLIF ( + + 74, - + 29 + 56 + 82 * + + 96 ) THEN 54 * - 46 + + - 3 / - 97 END ) THEN - 88 * + 4 * - 7 * + + COUNT( + 69 ) + + + 41 WHEN + + NULLIF ( - + 29, - 32 ) + 45 - + 37 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT CASE + MIN ( DISTINCT + 93 ) WHEN - 96 * + ( - 91 ) * - + 37 + COALESCE ( + 55, - 66, - CASE - CAST ( - + 98 AS INTEGER ) WHEN + NULLIF ( + + 74, - + 29 + 56 + 82 * + + 96 ) THEN 54 * - 46 + + - 3 / - 97 END ) THEN - 88 * + 4 * - 7 * + + COUNT ( + 69 ) + + + 41 WHEN + + NULLIF ( - + 29, - 32 ) + 45 - + 37 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT DISTINCT ( 29 ) * + 86 - + - COUNT( * ) * + MAX( 37 )
----
2531

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT ( 29 ) * + 86 - + - COUNT ( * ) * + MAX ( 37 )
----
2531

query I rowsort
SELECT DISTINCT + 97 * - 43 col2
----
-4171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7441
SELECT DISTINCT + ( + 65 ), + 83 * CAST( NULL AS SIGNED ) * - 23 AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-7441
SELECT DISTINCT + ( + 65 ), + 83 * CAST ( NULL AS INTEGER ) * - 23 AS col0
----
65
NULL

query I rowsort
SELECT - 51 * + - 30 AS col1
----
1530

query II rowsort
SELECT - 55 + - 82 AS col0, - 34
----
-137
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT + MAX( DISTINCT ( - - 76 ) )
----
76

skipif mysql # not compatible
query I rowsort label-7444
SELECT + MAX ( DISTINCT ( - - 76 ) )
----
76

query I rowsort
SELECT + - ( - - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT + - 15 * + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-7446
SELECT + - 15 * + COUNT ( * )
----
-15

query I rowsort
SELECT ALL ( + - 91 ) AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7448
SELECT + 14 DIV + 40 * + 92
----
0

skipif mysql # not compatible
query I rowsort label-7448
SELECT + 14 / + 40 * + 92
----
0

query I rowsort
SELECT + + 96 + ( 38 ) + 36 AS col0
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7450
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 54 + COALESCE ( + - AVG ( DISTINCT - 95 ), 73 / + 54 ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 54 + COALESCE ( + - AVG ( DISTINCT - 95 ), 73 / + 54 ) + - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 69 + - + ( + + 15 ) col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7452
SELECT ALL - + 29 + + ( 58 ) + - MAX( ALL - + 32 ) * + 12 * - 39 / - CASE + 82 WHEN + + 11 * - 49 + MIN( ALL - 22 ) THEN CAST( + 2 AS SIGNED ) WHEN - + ( - 20 ) * - SUM( 64 ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL - + 29 + + ( 58 ) + - MAX ( ALL - + 32 ) * + 12 * - 39 / - CASE + 82 WHEN + + 11 * - 49 + MIN ( ALL - 22 ) THEN CAST ( + 2 AS INTEGER ) WHEN - + ( - 20 ) * - SUM ( 64 ) THEN NULL END col0
----
NULL

query I rowsort
SELECT + 41 - 67 + + + 43 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT + COUNT( DISTINCT + + 40 )
----
1

skipif mysql # not compatible
query I rowsort label-7454
SELECT + COUNT ( DISTINCT + + 40 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT - + 89 DIV - + 80 + 27 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7455
SELECT - + 89 / - + 80 + 27 AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7456
SELECT - 55 + + ( - - 80 ) + - 76 * - - 98 * + + 15 * - - COUNT( * ) * COALESCE ( + 54, - CASE SUM( + 29 ) WHEN - 17 - + - 84 THEN - + ( + + 96 ) DIV + COUNT( * ) WHEN + + 2 DIV + SUM( - 77 ) THEN + 78 * 20 + + 46 + + ( - - 52 ) END + + MAX( ALL - 75 ) ) AS col0
----
-6032855

skipif mysql # not compatible
query I rowsort label-7456
SELECT - 55 + + ( - - 80 ) + - 76 * - - 98 * + + 15 * - - COUNT ( * ) * COALESCE ( + 54, - CASE SUM ( + 29 ) WHEN - 17 - + - 84 THEN - + ( + + 96 ) / + COUNT ( * ) WHEN + + 2 / + SUM ( - 77 ) THEN + 78 * 20 + + 46 + + ( - - 52 ) END + + MAX ( ALL - 75 ) ) AS col0
----
-6032855

onlyif mysql # DIV for integer division: 
query I rowsort label-7457
SELECT ALL + 8 + - 45 DIV + 92 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + 8 + - 45 / + 92 AS col0
----
8

query I rowsort
SELECT ALL 38 + + 38 + - 22
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7459
SELECT + 39 DIV 29
----
1

skipif mysql # not compatible
query I rowsort label-7459
SELECT + 39 / 29
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7460
SELECT - CAST( - 62 AS SIGNED ) col1
----
62

skipif mysql # not compatible
query I rowsort label-7460
SELECT - CAST ( - 62 AS INTEGER ) col1
----
62

query I rowsort
SELECT DISTINCT + 91 * - NULLIF ( + 7, - 73 + 53 + ( - 48 ) )
----
-637

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7462
SELECT ALL + 73 * NULLIF ( + 30, 96 + 64 - COUNT( * ) * + 41 ) DIV + ( + + 39 ) + 31 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL + 73 * NULLIF ( + 30, 96 + 64 - COUNT ( * ) * + 41 ) / + ( + + 39 ) + 31 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT - CASE + 98 WHEN - - ( 94 ) THEN + 75 + + 47 WHEN + 79 THEN 93 ELSE COUNT( * ) END * 53 col0
----
-53

skipif mysql # not compatible
query I rowsort label-7463
SELECT - CASE + 98 WHEN - - ( 94 ) THEN + 75 + + 47 WHEN + 79 THEN 93 ELSE COUNT ( * ) END * 53 col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7464
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - + COALESCE ( - 99, + - 7 + 89 + - COUNT( * ), COALESCE ( 25, 9, - + ( 71 ) * + - 11 - - + 16 + - - 31 + + - 25 + + 57 ) * - 23 + + 46 / - - 62, - 84 ) + + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - + COALESCE ( - 99, + - 7 + 89 + - COUNT ( * ), COALESCE ( 25, 9, - + ( 71 ) * + - 11 - - + 16 + - - 31 + + - 25 + + 57 ) * - 23 + + 46 / - - 62, - 84 ) + + 32 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT DISTINCT CAST( - + 13 AS SIGNED ) col1
----
-13

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT CAST ( - + 13 AS INTEGER ) col1
----
-13

query I rowsort
SELECT ALL + 74 * - 12
----
-888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7467
SELECT - NULLIF ( 69, + + 83 ) - 59 + CASE - MIN( DISTINCT + + 54 ) WHEN + - 4 * + 73 THEN + - 72 * + 14 + + 86 END * + + 28 * - 41 * CAST( + 62 AS SIGNED ) * 28 * - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT - NULLIF ( 69, + + 83 ) - 59 + CASE - MIN ( DISTINCT + + 54 ) WHEN + - 4 * + 73 THEN + - 72 * + 14 + + 86 END * + + 28 * - 41 * CAST ( + 62 AS INTEGER ) * 28 * - 62 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT 10 DIV + 14 * - 59 + - - 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7468
SELECT 10 / + 14 * - 59 + - - 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL + COALESCE ( - 98, - SUM( ALL - + NULLIF ( - 48, - 53 ) ) - - + 49 )
----
-98

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + COALESCE ( - 98, - SUM ( ALL - + NULLIF ( - 48, - 53 ) ) - - + 49 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT - MIN( + 82 ) + + - 11 + + + 79
----
-14

skipif mysql # not compatible
query I rowsort label-7470
SELECT - MIN ( + 82 ) + + - 11 + + + 79
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL + COALESCE ( - 53, MAX( - + 5 ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL + COALESCE ( - 53, MAX ( - + 5 ) ) AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7472
SELECT + COUNT( * ) / + CAST( NULL AS DECIMAL ) + 59 * + 67 - 97, 26 AS col2
----
NULL
26

skipif mysql # not compatible
query II rowsort label-7472
SELECT + COUNT ( * ) / + CAST ( NULL AS REAL ) + 59 * + 67 - 97, 26 AS col2
----
NULL
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7473
SELECT - 53 * - + CAST( - 99 AS SIGNED )
----
-5247

skipif mysql # not compatible
query I rowsort label-7473
SELECT - 53 * - + CAST ( - 99 AS INTEGER )
----
-5247

query I rowsort
SELECT ALL 65 * 63
----
4095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT - 71 + - 63 + - 37 * - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT - 71 + - 63 + - 37 * - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT ALL - 38 DIV + 4 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL - 38 / + 4 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT ALL + - MIN( DISTINCT + + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL + - MIN ( DISTINCT + + 15 )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT - - 67 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-7478
SELECT - - 67 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT - 46 + + 4 * + + 83 + - 91 + COUNT( * ) + + + 30
----
226

skipif mysql # not compatible
query I rowsort label-7479
SELECT - 46 + + 4 * + + 83 + - 91 + COUNT ( * ) + + + 30
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7480
SELECT ALL - + CASE 81 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 30 + 26 + 81 END + + + 6 AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL - + CASE 81 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 30 + 26 + 81 END + + + 6 AS col1
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL 56 + - + MIN( DISTINCT - - 24 ) * - - 83 - + + 31 + 51 AS col0
----
-1916

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL 56 + - + MIN ( DISTINCT - - 24 ) * - - 83 - + + 31 + 51 AS col0
----
-1916

onlyif mysql # aggregate syntax: 
query II rowsort label-7482
SELECT 87 AS col0, + ( COUNT( * ) ) AS col2
----
87
1

skipif mysql # not compatible
query II rowsort label-7482
SELECT 87 AS col0, + ( COUNT ( * ) ) AS col2
----
87
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT ALL 18 + CAST( - 85 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL 18 + CAST ( - 85 AS INTEGER )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT DISTINCT 27 * MIN( ALL 38 )
----
1026

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT 27 * MIN ( ALL 38 )
----
1026

query I rowsort
SELECT ALL 45 * + 60
----
2700

query I rowsort
SELECT 26 + + 78
----
104

query II rowsort
SELECT - 68, 27 AS col1
----
-68
27

query I rowsort
SELECT 47 * - 55
----
-2585

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL 73 * + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL 73 * + + COUNT ( * )
----
73

query I rowsort
SELECT 53 + + - 46 AS col0
----
7

query II rowsort
SELECT - 79, CASE - + 41 WHEN 82 / 65 THEN - 60 - + + 49 / + - 44 * + 76 / - - 49 END + + 42 AS col2
----
-79
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7492
SELECT CAST( - + 80 AS SIGNED ) + + COUNT( - 68 ) + + 85 + + 95 * + 0 DIV - 79 DIV + 71 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7492
SELECT CAST ( - + 80 AS INTEGER ) + + COUNT ( - 68 ) + + 85 + + 95 * + 0 / - 79 / + 71 AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7493
SELECT MAX( DISTINCT 0 ) DIV 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7493
SELECT MAX ( DISTINCT 0 ) / 80 AS col1
----
0

query I rowsort
SELECT 37 * 50 * - 39
----
-72150

query I rowsort
SELECT 72 + + - 51
----
21

query I rowsort
SELECT ( 3 ) * 91 * 28 AS col2
----
7644

query I rowsort
SELECT 88 + + 48
----
136

query II rowsort
SELECT DISTINCT 93, + 99 + - 77 AS col2
----
93
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7499
SELECT ALL - 15 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL - 15 / 92 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7500
SELECT ALL NULLIF ( - COUNT( * ), - 71 + + 37 ) DIV + 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL NULLIF ( - COUNT ( * ), - 71 + + 37 ) / + 36 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7501
SELECT 72 * - 89 * 56 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT 72 * - 89 * 56 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7502
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7503
SELECT + 3 AS col2, 74 + + - COUNT( * )
----
3
73

skipif mysql # not compatible
query II rowsort label-7503
SELECT + 3 AS col2, 74 + + - COUNT ( * )
----
3
73

query I rowsort
SELECT DISTINCT - 25 * + 29
----
-725

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7505
SELECT 11, COUNT( * ) DIV 77 * - 49 AS col0
----
11
0

skipif mysql # not compatible
query II rowsort label-7505
SELECT 11, COUNT ( * ) / 77 * - 49 AS col0
----
11
0

query I rowsort
SELECT ALL 36 * + - 62 * 91
----
-203112

query I rowsort
SELECT 62 * 86 AS col0
----
5332

query II rowsort
SELECT 17, + 84 + - 18 * + 97 AS col0
----
17
-1662

onlyif mysql # aggregate syntax: 
query II rowsort label-7509
SELECT + COUNT( * ) AS col1, - MIN( + - 7 ) - - 29 col2
----
1
36

skipif mysql # not compatible
query II rowsort label-7509
SELECT + COUNT ( * ) AS col1, - MIN ( + - 7 ) - - 29 col2
----
1
36

query I rowsort
SELECT ALL + ( + 64 ) + - 65 + + + 55
----
54

query II rowsort
SELECT DISTINCT - - 86 AS col1, + 68 AS col0
----
86
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - ( + COUNT( * ) ) * 29 * + 61 * + ( - COUNT( * ) ) + - - 20
----
1789

skipif mysql # not compatible
query I rowsort label-7512
SELECT - ( + COUNT ( * ) ) * 29 * + 61 * + ( - COUNT ( * ) ) + - - 20
----
1789

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7513
SELECT ALL + 35 + + 95, 57 * CAST( + 84 AS SIGNED ) AS col0
----
130
4788

skipif mysql # not compatible
query II rowsort label-7513
SELECT ALL + 35 + + 95, 57 * CAST ( + 84 AS INTEGER ) AS col0
----
130
4788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7514
SELECT - CASE + 28 WHEN - 66 * - + NULLIF ( + 54, + + 41 ) THEN - 79 END / + CASE - + COALESCE ( - 12, - 26 ) WHEN + + 7 + - MAX( - - 89 ) * CAST( + 96 AS SIGNED ) THEN - 29 / - 24 + MAX( - 23 ) + 7 WHEN 90 THEN - 93 * + 89 * + 87 WHEN - COUNT( * ) + + 59 * - 82 THEN + 40 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7514
SELECT - CASE + 28 WHEN - 66 * - + NULLIF ( + 54, + + 41 ) THEN - 79 END / + CASE - + COALESCE ( - 12, - 26 ) WHEN + + 7 + - MAX ( - - 89 ) * CAST ( + 96 AS INTEGER ) THEN - 29 / - 24 + MAX ( - 23 ) + 7 WHEN 90 THEN - 93 * + 89 * + 87 WHEN - COUNT ( * ) + + 59 * - 82 THEN + 40 + + COUNT ( * ) END
----
NULL

query II rowsort
SELECT DISTINCT - 64, + 7 AS col0
----
-64
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL + + CASE 74 WHEN + - COUNT( * ) THEN + 24 * - 79 WHEN + 97 THEN - COUNT( * ) + + COUNT( * ) - - 85 + - 38 + - 76 * - ( 74 ) * + ( + + 3 ) + + + 53 * 43 ELSE - + 19 END + COUNT( + + 67 ) col1
----
-18

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL + + CASE 74 WHEN + - COUNT ( * ) THEN + 24 * - 79 WHEN + 97 THEN - COUNT ( * ) + + COUNT ( * ) - - 85 + - 38 + - 76 * - ( 74 ) * + ( + + 3 ) + + + 53 * 43 ELSE - + 19 END + COUNT ( + + 67 ) col1
----
-18

query I rowsort
SELECT + 54 + + ( 73 ) * 95 * 54 AS col2
----
374544

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT 84 DIV 53 + - 52 * COALESCE ( - - 6, - ( + 46 ) )
----
-311

skipif mysql # not compatible
query I rowsort label-7518
SELECT 84 / 53 + - 52 * COALESCE ( - - 6, - ( + 46 ) )
----
-311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7519
SELECT 89 AS col0, COUNT( * ) - - + CAST( NULL AS SIGNED )
----
89
NULL

skipif mysql # not compatible
query II rowsort label-7519
SELECT 89 AS col0, COUNT ( * ) - - + CAST ( NULL AS INTEGER )
----
89
NULL

query II rowsort
SELECT ALL + + 57 + + 90, + 59 AS col1
----
147
59

query I rowsort
SELECT 63 + + 82 col1
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-7522
SELECT ALL 69 AS col1, - COUNT( * ) * - 6 * 48
----
69
288

skipif mysql # not compatible
query II rowsort label-7522
SELECT ALL 69 AS col1, - COUNT ( * ) * - 6 * 48
----
69
288

query II rowsort
SELECT - 80 AS col1, 47 * + + 44 + CASE WHEN NOT ( NULL ) IS NULL THEN - 52 ELSE 29 END + - 37
----
-80
2060

query I rowsort
SELECT - 3 + - + 25 - 22 * - 69 * - - 39
----
59174

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL - COUNT( * ) - - - 14 + + COUNT( * ) + - 12
----
-26

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL - COUNT ( * ) - - - 14 + + COUNT ( * ) + - 12
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7526
SELECT DISTINCT + CASE + 59 WHEN NULLIF ( NULLIF ( 9, 23 ), - COUNT( * ) ) + + - 39 THEN - + 10 DIV COALESCE ( - 48, - - COUNT( * ) ) + - - 64 * 17 * + MIN( COALESCE ( + 43, 57 * - 48 - - 50 * 23 ) ) * 98 * - - 6 + - - 7 + + + COUNT( + 2 ) * - CAST( - 21 AS SIGNED ) ELSE + + 22 + - + 53 END * - - 77 AS col2
----
-2387

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT + CASE + 59 WHEN NULLIF ( NULLIF ( 9, 23 ), - COUNT ( * ) ) + + - 39 THEN - + 10 / COALESCE ( - 48, - - COUNT ( * ) ) + - - 64 * 17 * + MIN ( COALESCE ( + 43, 57 * - 48 - - 50 * 23 ) ) * 98 * - - 6 + - - 7 + + + COUNT ( + 2 ) * - CAST ( - 21 AS INTEGER ) ELSE + + 22 + - + 53 END * - - 77 AS col2
----
-2387

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7527
SELECT ALL 62 - - - ( + 83 ) + + 33 / CAST( NULL AS DECIMAL ) + + - 61 * + 91 + - + 21 + 74 + - + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL 62 - - - ( + 83 ) + + 33 / CAST ( NULL AS REAL ) + + - 61 * + 91 + - + 21 + 74 + - + 23 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7528
SELECT 56 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7528
SELECT 56 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 26 - - + 48 AS col1
----
74

query II rowsort
SELECT 46 * 47 AS col0, - 69
----
2162
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT DISTINCT 55 * + COALESCE ( - 21, + - 82 ) * SUM( DISTINCT + 14 ) AS col2
----
-16170

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT 55 * + COALESCE ( - 21, + - 82 ) * SUM ( DISTINCT + 14 ) AS col2
----
-16170

onlyif mysql # DIV for integer division: 
query II rowsort label-7532
SELECT ALL - 56 DIV + 19, 60 + - 12 AS col0
----
-2
48

skipif mysql # not compatible
query II rowsort label-7532
SELECT ALL - 56 / + 19, 60 + - 12 AS col0
----
-2
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT ALL 90 * COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL 90 * COUNT ( * ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT COUNT( DISTINCT + 7 ) - + COALESCE ( - COUNT( * ), - + 59 * + 65 * + 72 ) + + 64 * 4
----
258

skipif mysql # not compatible
query I rowsort label-7534
SELECT COUNT ( DISTINCT + 7 ) - + COALESCE ( - COUNT ( * ), - + 59 * + 65 * + 72 ) + + 64 * 4
----
258

query I rowsort
SELECT DISTINCT 19 + - - 43 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT - COUNT( 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-7536
SELECT - COUNT ( 47 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7537
SELECT 62 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-7537
SELECT 62 / 32
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT CASE + 26 WHEN 25 + ( - ( - MIN( ALL 27 ) ) ) * 15 THEN - 94 ELSE NULL END * + 29 * + + 28 / ( + NULLIF ( + - 15, + + CASE - 12 WHEN - COUNT( * ) THEN NULL WHEN - - 76 THEN - - 70 ELSE NULL END + - 89 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT CASE + 26 WHEN 25 + ( - ( - MIN ( ALL 27 ) ) ) * 15 THEN - 94 ELSE NULL END * + 29 * + + 28 / ( + NULLIF ( + - 15, + + CASE - 12 WHEN - COUNT ( * ) THEN NULL WHEN - - 76 THEN - - 70 ELSE NULL END + - 89 ) ) col0
----
NULL

query I rowsort
SELECT ALL 54 + 70
----
124

query I rowsort
SELECT + NULLIF ( - 80, ( + 12 ) ) AS col2
----
-80

query I rowsort
SELECT 77 + + ( + - 30 ) - 84 + 12 + 49 col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7542
SELECT + COUNT( DISTINCT 44 ) AS col0, SUM( ALL + 13 ) AS col0
----
1
13

skipif mysql # not compatible
query II rowsort label-7542
SELECT + COUNT ( DISTINCT 44 ) AS col0, SUM ( ALL + 13 ) AS col0
----
1
13

query I rowsort
SELECT + 89 * - 49 - - - 41 + + 81 + + 53 - - 97 * 74 + - + 97
----
2813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7544
SELECT + COUNT( * ) DIV + 85 * - 98 - + + MAX( 39 ) + + 98
----
59

skipif mysql # not compatible
query I rowsort label-7544
SELECT + COUNT ( * ) / + 85 * - 98 - + + MAX ( 39 ) + + 98
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT ALL - - 59 * COALESCE ( - 36, + COUNT( * ) ) + MIN( + 71 )
----
-2053

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL - - 59 * COALESCE ( - 36, + COUNT ( * ) ) + MIN ( + 71 )
----
-2053

query I rowsort
SELECT + ( - 45 ) col0
----
-45

query I rowsort
SELECT + - 84 + - - ( 47 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7548
SELECT + + CASE WHEN NOT NULL IS NULL THEN CASE - + ( + 17 ) WHEN - + CASE - + 41 WHEN + + 67 + 55 THEN - ( ( + - 49 ) ) END THEN - + 0 WHEN - + NULLIF ( 44, 42 ) - + + SUM( ALL 55 ) * - + COUNT( * ) - ( + - 75 ) THEN NULL END WHEN 80 NOT BETWEEN NULL AND + 94 THEN + - 9 + - 95 END + - 66 AS col1, ( 64 ) col1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-7548
SELECT + + CASE WHEN NOT NULL IS NULL THEN CASE - + ( + 17 ) WHEN - + CASE - + 41 WHEN + + 67 + 55 THEN - ( ( + - 49 ) ) END THEN - + 0 WHEN - + NULLIF ( 44, 42 ) - + + SUM ( ALL 55 ) * - + COUNT ( * ) - ( + - 75 ) THEN NULL END WHEN 80 NOT BETWEEN NULL AND + 94 THEN + - 9 + - 95 END + - 66 AS col1, ( 64 ) col1
----
NULL
64

query I rowsort
SELECT DISTINCT - - 5 * + + 4 + 59 + 93
----
172

query I rowsort
SELECT ALL - - 40 * - + 78 + 16 + 62 * + 94 * + 25
----
142596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7551
SELECT 43 DIV + COUNT( * ) + + 96 * + - 24
----
-2261

skipif mysql # not compatible
query I rowsort label-7551
SELECT 43 / + COUNT ( * ) + + 96 * + - 24
----
-2261

query I rowsort
SELECT - + 26 * + 22
----
-572

query I rowsort
SELECT ALL - 59 * - 60 - - 68
----
3608

query I rowsort
SELECT - + 66 * - 41 AS col1
----
2706

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT MAX( ALL + 0 ) AS col2, - 48 + + 5 AS col2
----
0
-43

skipif mysql # not compatible
query II rowsort label-7555
SELECT MAX ( ALL + 0 ) AS col2, - 48 + + 5 AS col2
----
0
-43

query I rowsort
SELECT + 56 * 38 * 47 AS col0
----
100016

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7557
SELECT DISTINCT + ( - 61 ) DIV + COUNT( * ) AS col1, 30
----
-61
30

skipif mysql # not compatible
query II rowsort label-7557
SELECT DISTINCT + ( - 61 ) / + COUNT ( * ) AS col1, 30
----
-61
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL NULLIF ( NULLIF ( 75, + + COUNT( * ) ), + 76 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL NULLIF ( NULLIF ( 75, + + COUNT ( * ) ), + 76 ) col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT DISTINCT + 33 * + 4 * - 11 * + COUNT( * ) AS col1
----
-1452

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT + 33 * + 4 * - 11 * + COUNT ( * ) AS col1
----
-1452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7560
SELECT - COUNT( * ) - + CAST( NULL AS SIGNED ) + - - 73 - COUNT( * ) * - 11 * - ( - + 47 ) * + 45 + + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT - COUNT ( * ) - + CAST ( NULL AS INTEGER ) + - - 73 - COUNT ( * ) * - 11 * - ( - + 47 ) * + 45 + + - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL + 15 * - + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + 15 * - + COUNT ( * ) AS col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7562
SELECT DISTINCT + 42 DIV + - 11 col1
----
-3

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT + 42 / + - 11 col1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7563
SELECT ALL COUNT( * ) col1, + 34 * + COUNT( * )
----
1
34

skipif mysql # not compatible
query II rowsort label-7563
SELECT ALL COUNT ( * ) col1, + 34 * + COUNT ( * )
----
1
34

query I rowsort
SELECT DISTINCT ( - + 36 ) AS col1
----
-36

query I rowsort
SELECT DISTINCT ( 44 ) AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7566
SELECT ALL + 15 + - 27 - - ( + NULLIF ( - + 93, + COUNT( * ) ) ) / + 3 + + CASE - ( - 8 ) WHEN + - 0 + - 85 THEN - 82 - - CAST( + 88 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL + 15 + - 27 - - ( + NULLIF ( - + 93, + COUNT ( * ) ) ) / + 3 + + CASE - ( - 8 ) WHEN + - 0 + - 85 THEN - 82 - - CAST ( + 88 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 66 + - 69 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT - SUM( 37 ) + - - 92 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7568
SELECT - SUM ( 37 ) + - - 92 AS col0
----
55

query I rowsort
SELECT DISTINCT - 43 + ( 87 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7570
SELECT - COALESCE ( - SUM( - 97 ), + ( ( + + COALESCE ( + 45, + - 27 ) ) ) ) * + 37 / + CAST( NULL AS SIGNED ) + 99 / + ( + COUNT( * ) ) AS col0, 15 AS col0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-7570
SELECT - COALESCE ( - SUM ( - 97 ), + ( ( + + COALESCE ( + 45, + - 27 ) ) ) ) * + 37 / + CAST ( NULL AS INTEGER ) + 99 / + ( + COUNT ( * ) ) AS col0, 15 AS col0
----
NULL
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT - NULLIF ( + 98, + MAX( - + ( - 86 ) ) + + COUNT( * ) / CASE COUNT( * ) WHEN - - COUNT( * ) - + 79 THEN NULL WHEN 94 * 57 * + + 5 + 26 THEN + 58 ELSE - COUNT( * ) END ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-7571
SELECT - NULLIF ( + 98, + MAX ( - + ( - 86 ) ) + + COUNT ( * ) / CASE COUNT ( * ) WHEN - - COUNT ( * ) - + 79 THEN NULL WHEN 94 * 57 * + + 5 + 26 THEN + 58 ELSE - COUNT ( * ) END ) AS col0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7572
SELECT DISTINCT COUNT( 1 ) + - COUNT( * ) DIV - 62 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT COUNT ( 1 ) + - COUNT ( * ) / - 62 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7573
SELECT ALL ( - MAX( DISTINCT - 49 ) ) col0, + CAST( + - COUNT( DISTINCT 10 ) AS SIGNED ) AS col2
----
49
-1

skipif mysql # not compatible
query II rowsort label-7573
SELECT ALL ( - MAX ( DISTINCT - 49 ) ) col0, + CAST ( + - COUNT ( DISTINCT 10 ) AS INTEGER ) AS col2
----
49
-1

query I rowsort
SELECT ALL + ( COALESCE ( + CASE 56 WHEN - 72 THEN 50 ELSE - ( + + 70 ) END, - 38, - + 97 ) ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-7575
SELECT 94 AS col1, + COUNT( * ) col0
----
94
1

skipif mysql # not compatible
query II rowsort label-7575
SELECT 94 AS col1, + COUNT ( * ) col0
----
94
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7576
SELECT + ( - - 58 ) DIV 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7576
SELECT + ( - - 58 ) / 73 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7577
SELECT ALL + 41 DIV + + 69 + CAST( + + 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL + 41 / + + 69 + CAST ( + + 64 AS INTEGER )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7578
SELECT DISTINCT + - CASE 9 WHEN 83 + - COUNT( * ) + - MIN( ALL - + 12 ) + - 90 THEN + NULLIF ( + 61, CAST( 92 AS SIGNED ) ) + - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT + - CASE 9 WHEN 83 + - COUNT ( * ) + - MIN ( ALL - + 12 ) + - 90 THEN + NULLIF ( + 61, CAST ( 92 AS INTEGER ) ) + - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7579
SELECT + 36 * + - 94 DIV 93 + 39 AS col2, 81
----
3
81

skipif mysql # not compatible
query II rowsort label-7579
SELECT + 36 * + - 94 / 93 + 39 AS col2, 81
----
3
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT + SUM( + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-7580
SELECT + SUM ( + 85 )
----
85

query I rowsort
SELECT + - 56 * - - ( - 61 ) + - 44
----
3372

query II rowsort
SELECT + - 14, 91 * + 43 + + - 51 AS col0
----
-14
3862

query II rowsort
SELECT ALL + + 89 AS col1, - 48
----
89
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT CASE COUNT( * ) WHEN + 0 THEN NULL ELSE - - 66 END AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7584
SELECT CASE COUNT ( * ) WHEN + 0 THEN NULL ELSE - - 66 END AS col2
----
66

query I rowsort
SELECT ALL - ( + 15 ) * + + 29 - - 75
----
-360

query I rowsort
SELECT DISTINCT + + NULLIF ( + 47, + 93 ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7587
SELECT ALL 78 * 4 - - 51 - - COUNT( * ) + + 36 * + - 96 + - + CAST( NULL AS SIGNED ) / + 4 * + 80 + + CAST( NULL AS DECIMAL ) * - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL 78 * 4 - - 51 - - COUNT ( * ) + + 36 * + - 96 + - + CAST ( NULL AS INTEGER ) / + 4 * + 80 + + CAST ( NULL AS REAL ) * - - 94
----
NULL

query II rowsort
SELECT ALL + + 55, + 20 AS col0
----
55
20

query I rowsort
SELECT + 38 + + 82 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT CASE - - 83 WHEN + 62 THEN - COALESCE ( + 55, - ( 20 ) + + 93 * 86 * - - MIN( ALL 92 ) ) * - - 82 + 39 + + 65 WHEN + 81 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT CASE - - 83 WHEN + 62 THEN - COALESCE ( + 55, - ( 20 ) + + 93 * 86 * - - MIN ( ALL 92 ) ) * - - 82 + 39 + + 65 WHEN + 81 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7591
SELECT + - NULLIF ( - CASE + - 4 WHEN - MAX( ALL + NULLIF ( + 13, 51 ) ) THEN - CAST( NULL AS SIGNED ) + - 25 WHEN + 27 * + 17 * - ( + + 96 ) THEN NULL END, 22 * + ( AVG ( - 15 ) ) * + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7591
SELECT + - NULLIF ( - CASE + - 4 WHEN - MAX ( ALL + NULLIF ( + 13, 51 ) ) THEN - CAST ( NULL AS INTEGER ) + - 25 WHEN + 27 * + 17 * - ( + + 96 ) THEN NULL END, 22 * + ( AVG ( - 15 ) ) * + 73 )
----
NULL

query I rowsort
SELECT + 32 * + 85
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT - COALESCE ( + - COUNT( * ), - 73 ) * NULLIF ( 59, - COUNT( * ) + - - 1 / + COUNT( * ) + + NULLIF ( + + 6, - COALESCE ( - ( 15 ), + - 54 / + 15, 64 * 59 + + MIN( DISTINCT 7 ) ) * - 82 ) ) * 41 * + 1
----
2419

skipif mysql # not compatible
query I rowsort label-7593
SELECT - COALESCE ( + - COUNT ( * ), - 73 ) * NULLIF ( 59, - COUNT ( * ) + - - 1 / + COUNT ( * ) + + NULLIF ( + + 6, - COALESCE ( - ( 15 ), + - 54 / + 15, 64 * 59 + + MIN ( DISTINCT 7 ) ) * - 82 ) ) * 41 * + 1
----
2419

query II rowsort
SELECT ALL 44 * 82, 92 - + - 71 col1
----
3608
163

query I rowsort
SELECT 55 * + 99 + - 14
----
5431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7596
SELECT NULLIF ( - - 74, 13 + AVG ( 92 ) / - 87 + CAST( 16 AS SIGNED ) + + + 96 * + 68 * - 48 - + CASE + + 39 WHEN - 16 + 84 * - 9 THEN + 28 * + 89 - + 51 + - COUNT( 7 ) + - 27 + + 89 - 37 ELSE NULL END )
----
74

skipif mysql # not compatible
query I rowsort label-7596
SELECT NULLIF ( - - 74, 13 + AVG ( 92 ) / - 87 + CAST ( 16 AS INTEGER ) + + + 96 * + 68 * - 48 - + CASE + + 39 WHEN - 16 + 84 * - 9 THEN + 28 * + 89 - + 51 + - COUNT ( 7 ) + - 27 + + 89 - 37 ELSE NULL END )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT + COUNT( ALL 85 ) + - 36 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7597
SELECT + COUNT ( ALL 85 ) + - 36 AS col1
----
-35

query I rowsort
SELECT ALL ( - - 82 )
----
82

query I rowsort
SELECT ALL 98 * + ( 39 ) + + + ( + - 31 ) AS col1
----
3791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7600
SELECT - CAST( 76 AS SIGNED ) * - - 96 AS col0
----
-7296

skipif mysql # not compatible
query I rowsort label-7600
SELECT - CAST ( 76 AS INTEGER ) * - - 96 AS col0
----
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT MIN( ALL - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-7601
SELECT MIN ( ALL - 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT - 7 + - COALESCE ( + 32, - + 57 + 70 ) + COALESCE ( - MAX( + 59 ), + COUNT( * ) * COUNT( * ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-7602
SELECT - 7 + - COALESCE ( + 32, - + 57 + 70 ) + COALESCE ( - MAX ( + 59 ), + COUNT ( * ) * COUNT ( * ) ) AS col0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7603
SELECT ALL + 84 + - - 19 DIV - COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL + 84 + - - 19 / - COUNT ( * ) AS col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7604
SELECT 78 - - 66 AS col2, 27 * CAST( NULL AS SIGNED )
----
144
NULL

skipif mysql # not compatible
query II rowsort label-7604
SELECT 78 - - 66 AS col2, 27 * CAST ( NULL AS INTEGER )
----
144
NULL

query II rowsort
SELECT 90 * - 58 AS col1, 18 + - 57 col1
----
-5220
-39

query I rowsort
SELECT ALL 77 * + 20 col0
----
1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7607
SELECT + 63 - + COUNT( + 71 ) + - 1 DIV 16 * 21 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-7607
SELECT + 63 - + COUNT ( + 71 ) + - 1 / 16 * 21 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT - MIN( - + CASE 24 WHEN 23 - 28 THEN - 11 + - 30 ELSE + - 67 END )
----
-67

skipif mysql # not compatible
query I rowsort label-7608
SELECT - MIN ( - + CASE 24 WHEN 23 - 28 THEN - 11 + - 30 ELSE + - 67 END )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT 77 + COUNT( + 54 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7609
SELECT 77 + COUNT ( + 54 ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7610
SELECT + CAST( NULL AS SIGNED ) * MIN( DISTINCT - - 68 ) - + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT - - 68 ) - + 65 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7611
SELECT - 55 DIV - 81 + - - 5 + - 73 * 67 AS col0
----
-4886

skipif mysql # not compatible
query I rowsort label-7611
SELECT - 55 / - 81 + - - 5 + - 73 * 67 AS col0
----
-4886

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT + + COALESCE ( - COUNT( * ), - 50, + 60 + - + 44, - + 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-7612
SELECT + + COALESCE ( - COUNT ( * ), - 50, + 60 + - + 44, - + 66 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT - 70 * + 64 - - MAX( 44 ) AS col0
----
-4436

skipif mysql # not compatible
query I rowsort label-7613
SELECT - 70 * + 64 - - MAX ( 44 ) AS col0
----
-4436

query I rowsort
SELECT ALL + 60 * - 41 + + - 89 * - 84 + 22
----
5038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7615
SELECT + CASE + COUNT( * ) WHEN 27 THEN NULL WHEN COUNT( * ) * COUNT( * ) THEN 91 ELSE - CAST( + SUM( ALL + + 88 ) AS SIGNED ) END + + + 11 + + 59 * + 52 * - 10
----
-30578

skipif mysql # not compatible
query I rowsort label-7615
SELECT + CASE + COUNT ( * ) WHEN 27 THEN NULL WHEN COUNT ( * ) * COUNT ( * ) THEN 91 ELSE - CAST ( + SUM ( ALL + + 88 ) AS INTEGER ) END + + + 11 + + 59 * + 52 * - 10
----
-30578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7616
SELECT + ( COUNT( * ) ) * - 97 + - 33 AS col1, + CAST( NULL AS SIGNED ) * - 19 * 57
----
-130
NULL

skipif mysql # not compatible
query II rowsort label-7616
SELECT + ( COUNT ( * ) ) * - 97 + - 33 AS col1, + CAST ( NULL AS INTEGER ) * - 19 * 57
----
-130
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7617
SELECT + 36 * 37 + COUNT( CAST( NULL AS SIGNED ) ), ( + 76 ) AS col1
----
1332
76

skipif mysql # not compatible
query II rowsort label-7617
SELECT + 36 * 37 + COUNT ( CAST ( NULL AS INTEGER ) ), ( + 76 ) AS col1
----
1332
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT 0 * - + 84 + + - 70 + - SUM( 1 ) - - 13 * MIN( 97 ) * ( + + COALESCE ( 90, + 46 + + COUNT( * ) + - + 58 ) ) * 68 * 36 + + - 18 col2
----
277823431

skipif mysql # not compatible
query I rowsort label-7618
SELECT 0 * - + 84 + + - 70 + - SUM ( 1 ) - - 13 * MIN ( 97 ) * ( + + COALESCE ( 90, + 46 + + COUNT ( * ) + - + 58 ) ) * 68 * 36 + + - 18 col2
----
277823431

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7619
SELECT - 15 DIV - + ( - CAST( + 47 AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7619
SELECT - 15 / - + ( - CAST ( + 47 AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT + COUNT( * ) + + - MAX( ALL + 31 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-7620
SELECT + COUNT ( * ) + + - MAX ( ALL + 31 ) AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT ALL 97 DIV - + 35 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL 97 / - + 35 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7622
SELECT 62 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7622
SELECT 62 / - 96 AS col0
----
0

query I rowsort
SELECT DISTINCT 32 * - 11
----
-352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7624
SELECT CASE - + 38 WHEN + 95 - - ( + 43 ) THEN + 77 * - ( 61 ) + - COUNT( * ) + 49 + + 45 ELSE - 74 * + 12 - + - 94 * + + COUNT( * ) + + MIN( - - 37 ) + - 34 * - - 81 + CAST( NULL AS SIGNED ) - + 18 END * COUNT( * ) * - + 49 + - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT CASE - + 38 WHEN + 95 - - ( + 43 ) THEN + 77 * - ( 61 ) + - COUNT ( * ) + 49 + + 45 ELSE - 74 * + 12 - + - 94 * + + COUNT ( * ) + + MIN ( - - 37 ) + - 34 * - - 81 + CAST ( NULL AS INTEGER ) - + 18 END * COUNT ( * ) * - + 49 + - 67 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7625
SELECT CAST( - 62 AS SIGNED ) + 13 + + COALESCE ( CAST( NULL AS SIGNED ), + 40 + 75, 9 DIV COUNT( * ) DIV + COUNT( + + 19 ), 55 + COUNT( * ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7625
SELECT CAST ( - 62 AS INTEGER ) + 13 + + COALESCE ( CAST ( NULL AS INTEGER ), + 40 + 75, 9 / COUNT ( * ) / + COUNT ( + + 19 ), 55 + COUNT ( * ) ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT SUM( DISTINCT 13 ) - + 24 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-7626
SELECT SUM ( DISTINCT 13 ) - + 24 AS col0
----
-11

query I rowsort
SELECT DISTINCT 36 * - 0 AS col1
----
0

query II rowsort
SELECT ALL 53, 57 AS col2
----
53
57

query I rowsort
SELECT + 51 - + 76 + ( + 80 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT COUNT( * ) * - 51 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-7630
SELECT COUNT ( * ) * - 51 AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7631
SELECT + 60 + - CAST( NULL AS SIGNED ) + COALESCE ( 57, - ( + 17 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT + 60 + - CAST ( NULL AS INTEGER ) + COALESCE ( 57, - ( + 17 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT - 87 * - - SUM( DISTINCT 0 )
----
0

skipif mysql # not compatible
query I rowsort label-7632
SELECT - 87 * - - SUM ( DISTINCT 0 )
----
0

query I rowsort
SELECT DISTINCT + - ( + 94 ) * - 25 * - + 41 + - 96
----
-96446

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL - - 86 - 89 + - + 89 + + - MAX( + 59 )
----
-151

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL - - 86 - 89 + - + 89 + + - MAX ( + 59 )
----
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7635
SELECT COUNT( * ) * - 83 DIV 25 + + 39
----
36

skipif mysql # not compatible
query I rowsort label-7635
SELECT COUNT ( * ) * - 83 / 25 + + 39
----
36

query I rowsort
SELECT DISTINCT + + 56 * + 12
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7637
SELECT + CAST( - + SUM( DISTINCT + + 60 ) AS SIGNED ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7637
SELECT + CAST ( - + SUM ( DISTINCT + + 60 ) AS INTEGER ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-7638
SELECT MAX( ALL + 59 ) * ( 15 ) + - + 80, 49 AS col0
----
805
49

skipif mysql # not compatible
query II rowsort label-7638
SELECT MAX ( ALL + 59 ) * ( 15 ) + - + 80, 49 AS col0
----
805
49

query I rowsort
SELECT 33 - + - 89 + - 70 + + - 31 * 79 col1
----
-2397

onlyif mysql # aggregate syntax: 
query II rowsort label-7640
SELECT COUNT( * ) AS col0, + ( - COUNT( * ) )
----
1
-1

skipif mysql # not compatible
query II rowsort label-7640
SELECT COUNT ( * ) AS col0, + ( - COUNT ( * ) )
----
1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT ALL 46 * - 23 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL 46 * - 23 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7642
SELECT DISTINCT 91 + - 7 DIV - ( + 97 )
----
91

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT 91 + - 7 / - ( + 97 )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7643
SELECT COUNT( * ), 99 AS col0
----
1
99

skipif mysql # not compatible
query II rowsort label-7643
SELECT COUNT ( * ), 99 AS col0
----
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT + 77 * - + 30 * + - 91 * + - 57 + 29 DIV - 94 AS col2
----
-11981970

skipif mysql # not compatible
query I rowsort label-7644
SELECT + 77 * - + 30 * + - 91 * + - 57 + 29 / - 94 AS col2
----
-11981970

query II rowsort
SELECT + 84 AS col0, + 85
----
84
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT COUNT( + ( + 95 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7646
SELECT COUNT ( + ( + 95 ) )
----
1

query I rowsort
SELECT ALL 90 + - 35
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT + CAST( + + 4 AS SIGNED ) + + - NULLIF ( 39, + 42 * + + NULLIF ( 10, - 89 * + - 97 + + 34 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-7648
SELECT + CAST ( + + 4 AS INTEGER ) + + - NULLIF ( 39, + 42 * + + NULLIF ( 10, - 89 * + - 97 + + 34 ) )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7649
SELECT ALL CASE - - 20 WHEN + COALESCE ( - + 79, - 61 * + COUNT( * ) * + + 14, 45 - 98, 64 - - + ( + CAST( - 70 AS SIGNED ) ) ) THEN - 0 * 20 WHEN - 1 * + COUNT( * ) - + 27 THEN + 67 * MAX( DISTINCT - 36 ) + - + COUNT( * ) WHEN AVG ( DISTINCT + 85 ) THEN + 4 + - 80 - 35 - - 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL CASE - - 20 WHEN + COALESCE ( - + 79, - 61 * + COUNT ( * ) * + + 14, 45 - 98, 64 - - + ( + CAST ( - 70 AS INTEGER ) ) ) THEN - 0 * 20 WHEN - 1 * + COUNT ( * ) - + 27 THEN + 67 * MAX ( DISTINCT - 36 ) + - + COUNT ( * ) WHEN AVG ( DISTINCT + 85 ) THEN + 4 + - 80 - 35 - - 74 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 66 - + 1 AS col1
----
-67

query I rowsort
SELECT + 65 * + - 2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL MAX( DISTINCT + 44 ) * 47 * + 86
----
177848

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL MAX ( DISTINCT + 44 ) * 47 * + 86
----
177848

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL 36 - - COUNT( * ) + - 39 * ( - 54 ) AS col0
----
2143

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL 36 - - COUNT ( * ) + - 39 * ( - 54 ) AS col0
----
2143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7654
SELECT ALL 5 AS col2, - CAST( + - 68 AS SIGNED ) * + 13 + + + COUNT( * )
----
5
885

skipif mysql # not compatible
query II rowsort label-7654
SELECT ALL 5 AS col2, - CAST ( + - 68 AS INTEGER ) * + 13 + + + COUNT ( * )
----
5
885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT - NULLIF ( CAST( + 42 AS SIGNED ), 86 )
----
-42

skipif mysql # not compatible
query I rowsort label-7655
SELECT - NULLIF ( CAST ( + 42 AS INTEGER ), 86 )
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-7656
SELECT DISTINCT 11 col1, ( 40 ) DIV - - 3
----
11
13

skipif mysql # not compatible
query II rowsort label-7656
SELECT DISTINCT 11 col1, ( 40 ) / - - 3
----
11
13

query I rowsort
SELECT + 88 * + + 63 + + 64
----
5608

query II rowsort
SELECT + + ( + 78 ) + + 1 + + 77, 22 AS col0
----
156
22

query II rowsort
SELECT - + 76, 14 col1
----
-76
14

query I rowsort
SELECT DISTINCT 76 * 39 AS col1
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT DISTINCT ( - - MAX( + 24 ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT ( - - MAX ( + 24 ) ) AS col2
----
24

query I rowsort
SELECT + + 99 * + COALESCE ( + + 44, ( + + 8 ) + + 49, + 97 * - - 92 + 60 ) col1
----
4356

onlyif mysql # aggregate syntax: 
query II rowsort label-7663
SELECT ALL + CASE + - 23 WHEN - 21 + - 93 THEN COUNT( DISTINCT - 26 ) END AS col2, + COUNT( + - 59 ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7663
SELECT ALL + CASE + - 23 WHEN - 21 + - 93 THEN COUNT ( DISTINCT - 26 ) END AS col2, + COUNT ( + - 59 ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT - CASE - NULLIF ( ( + - 77 ), - + 25 * - COALESCE ( - 54, - COUNT( * ) ) ) WHEN - - 36 THEN - COUNT( * ) - - 15 + + 50 - - 16 * - 26 * + 33 * + 73 + - 65 WHEN - 67 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT - CASE - NULLIF ( ( + - 77 ), - + 25 * - COALESCE ( - 54, - COUNT ( * ) ) ) WHEN - - 36 THEN - COUNT ( * ) - - 15 + + 50 - - 16 * - 26 * + 33 * + 73 + - 65 WHEN - 67 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT + MAX( DISTINCT - ( - - 46 ) ) + - COUNT( * ) - + - 7
----
-40

skipif mysql # not compatible
query I rowsort label-7665
SELECT + MAX ( DISTINCT - ( - - 46 ) ) + - COUNT ( * ) - + - 7
----
-40

query I rowsort
SELECT DISTINCT + 11 + + 58
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + 14 + 55 + - 91 * + MIN( + 51 ) AS col2
----
-4572

skipif mysql # not compatible
query I rowsort label-7667
SELECT + 14 + 55 + - 91 * + MIN ( + 51 ) AS col2
----
-4572

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT DISTINCT + - SUM( DISTINCT ( + 91 ) ) * + 97 * - + 24
----
211848

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT + - SUM ( DISTINCT ( + 91 ) ) * + 97 * - + 24
----
211848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT ALL - CAST( + + 44 AS SIGNED ) * 67
----
-2948

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL - CAST ( + + 44 AS INTEGER ) * 67
----
-2948

query I rowsort
SELECT ALL + 28 * 59
----
1652

query I rowsort
SELECT ALL - 5 * - + 76 + + ( + 36 )
----
416

query I rowsort
SELECT ( + + 78 )
----
78

query I rowsort
SELECT - 56 + - 80
----
-136

query II rowsort
SELECT ALL - 24 * - 46 AS col1, ( 21 ) AS col1
----
1104
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7675
SELECT + COUNT( * ) DIV - 75 AS col0, - 97 * + 18 + - + 22 AS col2
----
0
-1768

skipif mysql # not compatible
query II rowsort label-7675
SELECT + COUNT ( * ) / - 75 AS col0, - 97 * + 18 + - + 22 AS col2
----
0
-1768

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT + COUNT( * ) * + 32 + + 29 + 65
----
126

skipif mysql # not compatible
query I rowsort label-7676
SELECT + COUNT ( * ) * + 32 + + 29 + 65
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT + CAST( - + 85 AS SIGNED ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-7677
SELECT + CAST ( - + 85 AS INTEGER ) col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT COALESCE ( COUNT( * ), 31 + - + 30, COUNT( * ), - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-7678
SELECT COALESCE ( COUNT ( * ), 31 + - + 30, COUNT ( * ), - 11 )
----
1

query I rowsort
SELECT ALL 29 * 17 + - 78
----
415

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT NULLIF ( COUNT( + 89 ), + ( + - 31 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7680
SELECT NULLIF ( COUNT ( + 89 ), + ( + - 31 ) ) AS col0
----
1

query I rowsort
SELECT COALESCE ( - + 29, + 30 ) AS col1
----
-29

query II rowsort
SELECT ALL + ( 40 ) AS col2, 92
----
40
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT COALESCE ( 43, - COUNT( 26 ) - - 81 )
----
43

skipif mysql # not compatible
query I rowsort label-7683
SELECT COALESCE ( 43, - COUNT ( 26 ) - - 81 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7684
SELECT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2, + 7 * - 28
----
NULL
-196

skipif mysql # not compatible
query II rowsort label-7684
SELECT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, + 7 * - 28
----
NULL
-196

query I rowsort
SELECT ALL - 62 * + 22 * - 21 AS col0
----
28644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7686
SELECT - CASE - 1 WHEN - 66 THEN NULL ELSE 81 END * COALESCE ( - CAST( NULL AS SIGNED ), - 92, - 70 * - 78, + 51 * 51 )
----
7452

skipif mysql # not compatible
query I rowsort label-7686
SELECT - CASE - 1 WHEN - 66 THEN NULL ELSE 81 END * COALESCE ( - CAST ( NULL AS INTEGER ), - 92, - 70 * - 78, + 51 * 51 )
----
7452

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT - 59 + ( + 65 ) * 8 * 59 * + COUNT( ( + 44 ) )
----
30621

skipif mysql # not compatible
query I rowsort label-7687
SELECT - 59 + ( + 65 ) * 8 * 59 * + COUNT ( ( + 44 ) )
----
30621

query II rowsort
SELECT + 36 + + - 18 AS col2, + 50 * 25
----
18
1250

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT + 12 * + - 93 * - COUNT( * ) AS col1
----
1116

skipif mysql # not compatible
query I rowsort label-7689
SELECT + 12 * + - 93 * - COUNT ( * ) AS col1
----
1116

query I rowsort
SELECT - 86 - - 19 + ( - NULLIF ( + 43, + 35 ) )
----
-110

query I rowsort
SELECT + - 28 * 87 * - - 41 AS col1
----
-99876

onlyif mysql # DIV for integer division: 
query I rowsort label-7692
SELECT ALL 48 DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL 48 / 68 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7693
SELECT DISTINCT - COUNT( 9 ) AS col0, + 93 * 78
----
-1
7254

skipif mysql # not compatible
query II rowsort label-7693
SELECT DISTINCT - COUNT ( 9 ) AS col0, + 93 * 78
----
-1
7254

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7694
SELECT ALL 62 + - 40, - CAST( NULL AS SIGNED ) AS col1
----
22
NULL

skipif mysql # not compatible
query II rowsort label-7694
SELECT ALL 62 + - 40, - CAST ( NULL AS INTEGER ) AS col1
----
22
NULL

query I rowsort
SELECT + 31 + - + 58
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7696
SELECT - 75 DIV - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-7696
SELECT - 75 / - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7697
SELECT + NULLIF ( + COUNT( 27 ), + 80 DIV + 52 ) - 95 + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT + NULLIF ( + COUNT ( 27 ), + 80 / + 52 ) - 95 + + 93
----
NULL

query I rowsort
SELECT + 58 * - + 39 AS col0
----
-2262

query I rowsort
SELECT ALL - 81 + + 99 * + NULLIF ( - 79, + + 9 )
----
-7902

query I rowsort
SELECT - ( - ( - 49 ) ) AS col1
----
-49

query I rowsort
SELECT + - 26 * - 98 * ( + 79 )
----
201292

query I rowsort
SELECT ALL 78 + + + 66 + + - 59
----
85

query I rowsort
SELECT + ( 81 ) * - 42 AS col2
----
-3402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7704
SELECT 2 * + MAX( DISTINCT + + 37 ) + - 51 + + 60 - + COUNT( * ) * + CASE + + 56 WHEN - COUNT( ALL - 60 ) THEN NULL ELSE 15 END DIV - 76
----
83

skipif mysql # not compatible
query I rowsort label-7704
SELECT 2 * + MAX ( DISTINCT + + 37 ) + - 51 + + 60 - + COUNT ( * ) * + CASE + + 56 WHEN - COUNT ( ALL - 60 ) THEN NULL ELSE 15 END / - 76
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7705
SELECT 5 AS col0, ( + + COUNT( * ) )
----
5
1

skipif mysql # not compatible
query II rowsort label-7705
SELECT 5 AS col0, ( + + COUNT ( * ) )
----
5
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7706
SELECT ALL 14 - - + 96 + - 3 * - - CAST( NULL AS SIGNED ) * + + 30 + 95 + + + 67 * + 4 * COALESCE ( - 32, - - CAST( NULL AS SIGNED ) ) * - COALESCE ( - - AVG ( ALL 28 ), 5 + - COALESCE ( + ( - 26 ), - 47 + - 19 * + - COUNT( * ), 75 ) * 42 + + AVG ( + 40 ), 64 * + 20 / - 50 / + - ( + 3 ) * 57 / + COUNT( DISTINCT - 85 ) ) + + 76 / - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL 14 - - + 96 + - 3 * - - CAST ( NULL AS INTEGER ) * + + 30 + 95 + + + 67 * + 4 * COALESCE ( - 32, - - CAST ( NULL AS INTEGER ) ) * - COALESCE ( - - AVG ( ALL 28 ), 5 + - COALESCE ( + ( - 26 ), - 47 + - 19 * + - COUNT ( * ), 75 ) * 42 + + AVG ( + 40 ), 64 * + 20 / - 50 / + - ( + 3 ) * 57 / + COUNT ( DISTINCT - 85 ) ) + + 76 / - 81
----
NULL

query I rowsort
SELECT 7 * + 36
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7708
SELECT CAST( - + CAST( 38 AS SIGNED ) AS SIGNED ) * + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-7708
SELECT CAST ( - + CAST ( 38 AS INTEGER ) AS INTEGER ) * + - COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7709
SELECT DISTINCT - ( - CASE 68 WHEN - + 78 THEN + COUNT( * ) WHEN 92 + + + ( - - 12 ) THEN NULL END ) AS col2, + 37 AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-7709
SELECT DISTINCT - ( - CASE 68 WHEN - + 78 THEN + COUNT ( * ) WHEN 92 + + + ( - - 12 ) THEN NULL END ) AS col2, + 37 AS col2
----
NULL
37

query II rowsort
SELECT ALL - 42 AS col2, 67 AS col2
----
-42
67

query I rowsort
SELECT ALL - ( 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7712
SELECT - COUNT( * ) * + 15 DIV - 29 - + - 1 + + 15
----
16

skipif mysql # not compatible
query I rowsort label-7712
SELECT - COUNT ( * ) * + 15 / - 29 - + - 1 + + 15
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7713
SELECT CAST( 47 AS SIGNED ) * - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-7713
SELECT CAST ( 47 AS INTEGER ) * - COUNT ( * )
----
-47

query I rowsort
SELECT 25 - 80 col2
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-7715
SELECT + 49, - COALESCE ( 36, - 16 * + 37 ) DIV 72 AS col2
----
49
0

skipif mysql # not compatible
query II rowsort label-7715
SELECT + 49, - COALESCE ( 36, - 16 * + 37 ) / 72 AS col2
----
49
0

query I rowsort
SELECT 35 + - - 35 * + - 67 * - 62
----
145425

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT DISTINCT - MIN( - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT - MIN ( - 19 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7718
SELECT - 74 * - 59 + 67 AS col2, + CAST( - + 17 AS SIGNED )
----
4433
-17

skipif mysql # not compatible
query II rowsort label-7718
SELECT - 74 * - 59 + 67 AS col2, + CAST ( - + 17 AS INTEGER )
----
4433
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT 22 * - CAST( - COALESCE ( 9, + 67 * + - 47 + 45 - + - 17 ) AS SIGNED ) AS col2
----
198

skipif mysql # not compatible
query I rowsort label-7719
SELECT 22 * - CAST ( - COALESCE ( 9, + 67 * + - 47 + 45 - + - 17 ) AS INTEGER ) AS col2
----
198

query II rowsort
SELECT 17 col1, - 57 AS col2
----
17
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7721
SELECT DISTINCT - 46 + + 61 * NULLIF ( + + ( + MIN( + 55 ) ), + + MAX( ALL + 48 ) ), - 77 + + - CAST( NULL AS SIGNED ) AS col1
----
3309
NULL

skipif mysql # not compatible
query II rowsort label-7721
SELECT DISTINCT - 46 + + 61 * NULLIF ( + + ( + MIN ( + 55 ) ), + + MAX ( ALL + 48 ) ), - 77 + + - CAST ( NULL AS INTEGER ) AS col1
----
3309
NULL

query II rowsort
SELECT - 89 AS col0, + 4
----
-89
4

query I rowsort
SELECT - ( - + 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT DISTINCT - CASE + + 12 WHEN - - 68 THEN - COUNT( * ) ELSE 39 * - 38 + + - ( 1 ) END + - 58 AS col0
----
1425

skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT - CASE + + 12 WHEN - - 68 THEN - COUNT ( * ) ELSE 39 * - 38 + + - ( 1 ) END + - 58 AS col0
----
1425

query I rowsort
SELECT CASE - 8 WHEN + 0 THEN 92 ELSE NULL END / + 32 col0
----
NULL

query II rowsort
SELECT - - 62 AS col1, 15 AS col2
----
62
15

query I rowsort
SELECT + NULLIF ( 12, - + 70 ) AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT ALL + CAST( 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL + CAST ( 75 AS INTEGER )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL + ( + COUNT( * ) ) + + ( - 15 ) + - 8 - 76 * 92 AS col2
----
-7014

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + ( + COUNT ( * ) ) + + ( - 15 ) + - 8 - 76 * 92 AS col2
----
-7014

query I rowsort
SELECT + 32 - + 98
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT - ( + MIN( DISTINCT - 9 ) ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT - ( + MIN ( DISTINCT - 9 ) ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT + 45 - + + 58 - + 72 - SUM( DISTINCT + - 16 ) * + 98 + - COUNT( * ) + + - 8 * + 83 AS col0
----
818

skipif mysql # not compatible
query I rowsort label-7732
SELECT + 45 - + + 58 - + 72 - SUM ( DISTINCT + - 16 ) * + 98 + - COUNT ( * ) + + - 8 * + 83 AS col0
----
818

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT - SUM( ALL + 41 ) col0
----
-41

skipif mysql # not compatible
query I rowsort label-7733
SELECT - SUM ( ALL + 41 ) col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-7734
SELECT COALESCE ( - - 53, + - 37 * - + COUNT( * ), - + ( + - 14 ) + 84 * - COUNT( * ) * 20 * + - COALESCE ( + - 90, + - 57 + - 43 ) + 27 * 91 ) + - 39 AS col0, + 5 * + 58
----
14
290

skipif mysql # not compatible
query II rowsort label-7734
SELECT COALESCE ( - - 53, + - 37 * - + COUNT ( * ), - + ( + - 14 ) + 84 * - COUNT ( * ) * 20 * + - COALESCE ( + - 90, + - 57 + - 43 ) + 27 * 91 ) + - 39 AS col0, + 5 * + 58
----
14
290

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT ALL + 9 - + - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL + 9 - + - COUNT ( * )
----
10

query I rowsort
SELECT - COALESCE ( - 35, + 2 ) col2
----
35

query I rowsort
SELECT 65 * 18
----
1170

query I rowsort
SELECT 1 + - ( ( - 75 ) ) + 40 AS col0
----
116

query I rowsort
SELECT 71 + + 28 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT + COUNT( * ) * COUNT( * ) + + - 99 * + - 29 + 5
----
2877

skipif mysql # not compatible
query I rowsort label-7740
SELECT + COUNT ( * ) * COUNT ( * ) + + - 99 * + - 29 + 5
----
2877

query I rowsort
SELECT DISTINCT + 80 * + 23
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL - SUM( + NULLIF ( 88, + 84 / - 75 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - SUM ( + NULLIF ( 88, + 84 / - 75 ) )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7743
SELECT ALL SUM( ALL CAST( NULL AS SIGNED ) ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL SUM ( ALL CAST ( NULL AS INTEGER ) ) * - 40
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT COUNT( * ) + + + 73 + 84 + + ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7744
SELECT COUNT ( * ) + + + 73 + 84 + + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT COUNT( * ) * + - 93 * - 34 * - + 19 + - COUNT( * ) AS col0
----
-60079

skipif mysql # not compatible
query I rowsort label-7745
SELECT COUNT ( * ) * + - 93 * - 34 * - + 19 + - COUNT ( * ) AS col0
----
-60079

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7746
SELECT DISTINCT CAST( + 73 AS SIGNED ) DIV 26 * + 14 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT CAST ( + 73 AS INTEGER ) / 26 * + 14 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7747
SELECT 44 + - COUNT( * ) AS col0, - CAST( + - 2 AS SIGNED ) + COUNT( ALL - 98 ) * + COUNT( ALL + - 84 ) col1
----
43
3

skipif mysql # not compatible
query II rowsort label-7747
SELECT 44 + - COUNT ( * ) AS col0, - CAST ( + - 2 AS INTEGER ) + COUNT ( ALL - 98 ) * + COUNT ( ALL + - 84 ) col1
----
43
3

query I rowsort
SELECT ALL CASE - 17 WHEN + 44 THEN + 38 + + 65 * + 86 END + 89 - 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7749
SELECT DISTINCT 24 DIV SUM( DISTINCT - 30 ) * + + 12
----
0

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT 24 / SUM ( DISTINCT - 30 ) * + + 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT ALL - COUNT( * ) * + - 79 + 57 * 4
----
307

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL - COUNT ( * ) * + - 79 + 57 * 4
----
307

onlyif mysql # aggregate syntax: 
query II rowsort label-7751
SELECT DISTINCT 65 + + + 57 * - - ( + COUNT( * ) ) AS col2, 90 AS col1
----
122
90

skipif mysql # not compatible
query II rowsort label-7751
SELECT DISTINCT 65 + + + 57 * - - ( + COUNT ( * ) ) AS col2, 90 AS col1
----
122
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT - 89 * - 49 + COUNT( * ) * - 39 - + 28 - + COUNT( * )
----
4293

skipif mysql # not compatible
query I rowsort label-7752
SELECT - 89 * - 49 + COUNT ( * ) * - 39 - + 28 - + COUNT ( * )
----
4293

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT + ( COUNT( * ) ) + 68 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7753
SELECT + ( COUNT ( * ) ) + 68 AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT DISTINCT 83 + + + CAST( NULL AS SIGNED ) + - + 78 + + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7754
SELECT DISTINCT 83 + + + CAST ( NULL AS INTEGER ) + - + 78 + + 11 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT ALL NULLIF ( - + 96, + - CAST( NULL AS SIGNED ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL NULLIF ( - + 96, + - CAST ( NULL AS INTEGER ) ) AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7756
SELECT 28 + - + 60, - CAST( NULL AS SIGNED ) * - MIN( + 84 ) AS col1
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-7756
SELECT 28 + - + 60, - CAST ( NULL AS INTEGER ) * - MIN ( + 84 ) AS col1
----
-32
NULL

query I rowsort
SELECT DISTINCT 49 + - 98
----
-49

query I rowsort
SELECT DISTINCT + + 22 + + 14 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT - COUNT( + + 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-7759
SELECT - COUNT ( + + 45 )
----
-1

query I rowsort
SELECT + 29 + 89
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT 45 * COUNT( * ) * - + COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-7761
SELECT 45 * COUNT ( * ) * - + COUNT ( * ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT - - COUNT( * ) + + 57 + MIN( DISTINCT 12 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7762
SELECT - - COUNT ( * ) + + 57 + MIN ( DISTINCT 12 ) AS col2
----
70

query I rowsort
SELECT ALL - NULLIF ( + 37, + 87 ) AS col1
----
-37

query I rowsort
SELECT - ( - 96 )
----
96

query I rowsort
SELECT - - 0 * 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT ALL NULLIF ( + SUM( ALL 63 ), - 99 )
----
63

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL NULLIF ( + SUM ( ALL 63 ), - 99 )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7767
SELECT DISTINCT COALESCE ( + + 83, - - CASE - ( + + CAST( NULL AS SIGNED ) ) WHEN - ( + 85 ) THEN 81 END )
----
83

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT COALESCE ( + + 83, - - CASE - ( + + CAST ( NULL AS INTEGER ) ) WHEN - ( + 85 ) THEN 81 END )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7768
SELECT ALL CASE + - 4 WHEN + - 92 * + CAST( + 33 AS SIGNED ) + - 37 THEN NULL WHEN - - 53 + - - 20 THEN + - 9 + - + ( - 81 ) + - + 59 * + - ( 37 ) END - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL CASE + - 4 WHEN + - 92 * + CAST ( + 33 AS INTEGER ) + - 37 THEN NULL WHEN - - 53 + - - 20 THEN + - 9 + - + ( - 81 ) + - + 59 * + - ( 37 ) END - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 75 AS col1, 33
----
75
33

query I rowsort
SELECT DISTINCT 78 * - + 24 AS col1
----
-1872

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT ALL - 3 DIV 5 col0
----
0

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL - 3 / 5 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT NULLIF ( - + COUNT( * ), + 61 * 66 + - 54 * + 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-7772
SELECT NULLIF ( - + COUNT ( * ), + 61 * 66 + - 54 * + 5 )
----
-1

query I rowsort
SELECT - 89 * - 74 AS col0
----
6586

query I rowsort
SELECT ALL + 5 * - 37 + + 47 + - + 91 + 71 col1
----
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7775
SELECT 40 DIV 80 - - - COALESCE ( + COUNT( * ), + - 25 ) * + + 21 * + ( - 1 ) * 99 - - + 35 * + 89 AS col0
----
5194

skipif mysql # not compatible
query I rowsort label-7775
SELECT 40 / 80 - - - COALESCE ( + COUNT ( * ), + - 25 ) * + + 21 * + ( - 1 ) * 99 - - + 35 * + 89 AS col0
----
5194

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT + 59 + + COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-7776
SELECT + 59 + + COUNT ( * ) AS col2
----
60

query II rowsort
SELECT ALL + 96 AS col2, ( + 42 ) col0
----
96
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT ALL + 11 * - + 17 + - + COUNT( * ) col0
----
-188

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL + 11 * - + 17 + - + COUNT ( * ) col0
----
-188

onlyif mysql # aggregate syntax: 
query II rowsort label-7779
SELECT ALL 3 * + - ( COUNT( * ) ) + NULLIF ( 16, - COUNT( * ) - 43 * COALESCE ( + 81, + + 69, - + 29 ) + + 67 / + 28 - ( - 84 ) ), - 57 * + 5 AS col1
----
13
-285

skipif mysql # not compatible
query II rowsort label-7779
SELECT ALL 3 * + - ( COUNT ( * ) ) + NULLIF ( 16, - COUNT ( * ) - 43 * COALESCE ( + 81, + + 69, - + 29 ) + + 67 / + 28 - ( - 84 ) ), - 57 * + 5 AS col1
----
13
-285

query I rowsort
SELECT 66 * 79 - + + ( - 64 ) + + ( - 66 )
----
5212

query I rowsort
SELECT + - 16 + 23
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7782
SELECT + 55 * + CASE - ( 67 ) WHEN - 65 THEN + 80 * - + 19 + + - 48 * + 34 END * + 98 AS col0, 93 * + + 62 + + 47 DIV + 67 - CAST( - + 32 AS SIGNED )
----
NULL
5798

skipif mysql # not compatible
query II rowsort label-7782
SELECT + 55 * + CASE - ( 67 ) WHEN - 65 THEN + 80 * - + 19 + + - 48 * + 34 END * + 98 AS col0, 93 * + + 62 + + 47 / + 67 - CAST ( - + 32 AS INTEGER )
----
NULL
5798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7783
SELECT + + 89 / - 94 + ( + - CAST( NULL AS SIGNED ) ) + + 81 * 13 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT + + 89 / - 94 + ( + - CAST ( NULL AS INTEGER ) ) + + 81 * 13 * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 3 * - + 7 + 18 * - 0
----
21

query I rowsort
SELECT + 82 + 36 * CASE + 90 WHEN + 62 THEN 24 END * + - 11 * - 23 AS col2
----
NULL

query I rowsort
SELECT ALL - 44 * - + 65 + 18 * + 10
----
3040

query I rowsort
SELECT DISTINCT - 0 * - 16
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7788
SELECT + - COUNT( DISTINCT ( - 94 ) ) DIV - 68 * + 67
----
0

skipif mysql # not compatible
query I rowsort label-7788
SELECT + - COUNT ( DISTINCT ( - 94 ) ) / - 68 * + 67
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT + + 89 DIV - - 87 * - - 61 DIV - 77 DIV - 71 + 15
----
15

skipif mysql # not compatible
query I rowsort label-7789
SELECT + + 89 / - - 87 * - - 61 / - 77 / - 71 + 15
----
15

query I rowsort
SELECT + 58 + - 12 + + + 36 * 49
----
1810

query I rowsort
SELECT - - 15 + + - 43 + - 84 AS col2
----
-112

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7792
SELECT + CAST( - 29 AS SIGNED ) DIV 17
----
-1

skipif mysql # not compatible
query I rowsort label-7792
SELECT + CAST ( - 29 AS INTEGER ) / 17
----
-1

query I rowsort
SELECT + - 12 + + 5 - - - ( + 54 ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7794
SELECT + 98 * + MIN( + + ( 95 ) ) + CAST( - 36 AS SIGNED ) + - COUNT( * ) + + COUNT( * ) * 69 * - 37
----
6720

skipif mysql # not compatible
query I rowsort label-7794
SELECT + 98 * + MIN ( + + ( 95 ) ) + CAST ( - 36 AS INTEGER ) + - COUNT ( * ) + + COUNT ( * ) * 69 * - 37
----
6720

query I rowsort
SELECT + 73 + + 2 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7796
SELECT ALL COALESCE ( 6, + CAST( - 66 AS SIGNED ) * + 74 DIV 63 * - 19 * - - 98 DIV 18 + - COUNT( * ) + - 88 ), 78 * - 3 AS col1
----
6
-234

skipif mysql # not compatible
query II rowsort label-7796
SELECT ALL COALESCE ( 6, + CAST ( - 66 AS INTEGER ) * + 74 / 63 * - 19 * - - 98 / 18 + - COUNT ( * ) + - 88 ), 78 * - 3 AS col1
----
6
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL MAX( ALL + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL MAX ( ALL + 70 )
----
70

query I rowsort
SELECT - 67 + 54 AS col1
----
-13

query I rowsort
SELECT - 26 * + - 49
----
1274

query I rowsort
SELECT - ( + - 55 ) AS col2
----
55

query I rowsort
SELECT - 43 + + - 16 AS col2
----
-59

query I rowsort
SELECT ALL - 35 * + ( + 13 )
----
-455

query I rowsort
SELECT - 19 + 25 AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7804
SELECT - CAST( + COALESCE ( - 28, + ( + - 23 ) + + + ( + 71 ) + + ( - - 96 ) * 31 ) AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-7804
SELECT - CAST ( + COALESCE ( - 28, + ( + - 23 ) + + + ( + 71 ) + + ( - - 96 ) * 31 ) AS INTEGER )
----
28

query I rowsort
SELECT - 90 * - 52 AS col2
----
4680

query I rowsort
SELECT - 7 + + 57 * - 55 col1
----
-3142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7807
SELECT ALL + 61 / + - CAST( 11 AS SIGNED ) * + - SUM( ALL 81 ) + - 51 + - COUNT( * ) + + + 1 - - 61 * COUNT( * ) / ( + CASE + - 84 WHEN + 69 - - MIN( 9 ) - + 24 THEN - 6 * - + COUNT( ALL - 7 ) WHEN + COUNT( * ) * + - 57 THEN - 83 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + 61 / + - CAST ( 11 AS INTEGER ) * + - SUM ( ALL 81 ) + - 51 + - COUNT ( * ) + + + 1 - - 61 * COUNT ( * ) / ( + CASE + - 84 WHEN + 69 - - MIN ( 9 ) - + 24 THEN - 6 * - + COUNT ( ALL - 7 ) WHEN + COUNT ( * ) * + - 57 THEN - 83 END ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7808
SELECT DISTINCT - 17 DIV - NULLIF ( 92, + 32 ) + - + 3
----
-3

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT - 17 / - NULLIF ( 92, + 32 ) + - + 3
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7809
SELECT ALL + ( - 43 ) / - ( + CAST( NULL AS SIGNED ) ) + + - MAX( ALL - 25 ) + 34 * - CAST( + - 40 AS SIGNED ) + + 5 * + COUNT( 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL + ( - 43 ) / - ( + CAST ( NULL AS INTEGER ) ) + + - MAX ( ALL - 25 ) + 34 * - CAST ( + - 40 AS INTEGER ) + + 5 * + COUNT ( 74 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT DISTINCT + COUNT( ALL - + 75 ), + 69 - + 84 AS col0
----
1
-15

skipif mysql # not compatible
query II rowsort label-7810
SELECT DISTINCT + COUNT ( ALL - + 75 ), + 69 - + 84 AS col0
----
1
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7811
SELECT CAST( NULL AS SIGNED ) AS col0, + 57
----
NULL
57

skipif mysql # not compatible
query II rowsort label-7811
SELECT CAST ( NULL AS INTEGER ) AS col0, + 57
----
NULL
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7812
SELECT DISTINCT + 12 AS col0, - COUNT( * ) AS col0
----
12
-1

skipif mysql # not compatible
query II rowsort label-7812
SELECT DISTINCT + 12 AS col0, - COUNT ( * ) AS col0
----
12
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT - 24 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-7813
SELECT - 24 / 50
----
0

query I rowsort
SELECT - 29 + + 70 - - - 66
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL + MAX( ALL CASE - 65 WHEN + - 77 - ( 86 ) * - - 32 / + 82 THEN NULL WHEN - 94 THEN - + 87 * - NULLIF ( + + 37, + ( - 95 ) ) ELSE NULL END ) / ( + 64 ) + - + 59 - - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + MAX ( ALL CASE - 65 WHEN + - 77 - ( 86 ) * - - 32 / + 82 THEN NULL WHEN - 94 THEN - + 87 * - NULLIF ( + + 37, + ( - 95 ) ) ELSE NULL END ) / ( + 64 ) + - + 59 - - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7816
SELECT - 0 * - COUNT( * ) col0, 7 - 91 * - 32
----
0
2919

skipif mysql # not compatible
query II rowsort label-7816
SELECT - 0 * - COUNT ( * ) col0, 7 - 91 * - 32
----
0
2919

onlyif mysql # aggregate syntax: 
query II rowsort label-7817
SELECT DISTINCT + COUNT( * ) col2, 44 col2
----
1
44

skipif mysql # not compatible
query II rowsort label-7817
SELECT DISTINCT + COUNT ( * ) col2, 44 col2
----
1
44

query I rowsort
SELECT - NULLIF ( 24, + + COALESCE ( + 49, - - 94 ) ) * - 21 * ( - 24 ) AS col1
----
-12096

query I rowsort
SELECT ALL 83 * - + 7 * + - 29
----
16849

onlyif mysql # aggregate syntax: 
query II rowsort label-7820
SELECT DISTINCT + - COUNT( * ) AS col1, + ( + 61 )
----
-1
61

skipif mysql # not compatible
query II rowsort label-7820
SELECT DISTINCT + - COUNT ( * ) AS col1, + ( + 61 )
----
-1
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7821
SELECT DISTINCT + 88, - 15 * + 79 + + 21 * + CAST( + + 16 AS SIGNED ) AS col2
----
88
-849

skipif mysql # not compatible
query II rowsort label-7821
SELECT DISTINCT + 88, - 15 * + 79 + + 21 * + CAST ( + + 16 AS INTEGER ) AS col2
----
88
-849

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT ALL - 4 * - COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL - 4 * - COUNT ( * ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7823
SELECT - 14 AS col1, + MIN( DISTINCT ( + 83 ) ) * - COUNT( DISTINCT + 49 ) * + 26 AS col0
----
-14
-2158

skipif mysql # not compatible
query II rowsort label-7823
SELECT - 14 AS col1, + MIN ( DISTINCT ( + 83 ) ) * - COUNT ( DISTINCT + 49 ) * + 26 AS col0
----
-14
-2158

query II rowsort
SELECT + 36 AS col0, ( + 93 ) col0
----
36
93

query I rowsort
SELECT 13 + 51 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT COUNT( * ) * - 4 * + 23 col2
----
-92

skipif mysql # not compatible
query I rowsort label-7826
SELECT COUNT ( * ) * - 4 * + 23 col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7827
SELECT + ( 31 ) + + COUNT( * ) DIV - + ( - 99 ) col1
----
31

skipif mysql # not compatible
query I rowsort label-7827
SELECT + ( 31 ) + + COUNT ( * ) / - + ( - 99 ) col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7828
SELECT + 37 AS col1, - MAX( DISTINCT + 18 ) * + + 0 + + 41 + - 58 DIV - - 66 AS col1
----
37
41

skipif mysql # not compatible
query II rowsort label-7828
SELECT + 37 AS col1, - MAX ( DISTINCT + 18 ) * + + 0 + + 41 + - 58 / - - 66 AS col1
----
37
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT + COUNT( ALL + + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-7829
SELECT + COUNT ( ALL + + 28 )
----
1

query II rowsort
SELECT + 82 - + - COALESCE ( + - 3, - 22, 32 + - - 35 ) * - 58 * 46 * + 69 col1, 93
----
552358
93

query I rowsort
SELECT ALL - ( - + 59 )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7832
SELECT DISTINCT COUNT( * ) AS col2, - 8 AS col2
----
1
-8

skipif mysql # not compatible
query II rowsort label-7832
SELECT DISTINCT COUNT ( * ) AS col2, - 8 AS col2
----
1
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7833
SELECT ALL MIN( 54 ) AS col1, - 74
----
54
-74

skipif mysql # not compatible
query II rowsort label-7833
SELECT ALL MIN ( 54 ) AS col1, - 74
----
54
-74

query II rowsort
SELECT - - ( 69 ) AS col1, - 47 AS col2
----
69
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT MAX( ALL 71 ) * 29 + + 89
----
2148

skipif mysql # not compatible
query I rowsort label-7835
SELECT MAX ( ALL 71 ) * 29 + + 89
----
2148

onlyif mysql # aggregate syntax: 
query II rowsort label-7836
SELECT ( - - 46 ) * - - NULLIF ( + 93, 88 ) col2, COALESCE ( - - COUNT( - 74 ), - - 95 * + ( - - 44 ) ) * ( 29 ) AS col0
----
4278
29

skipif mysql # not compatible
query II rowsort label-7836
SELECT ( - - 46 ) * - - NULLIF ( + 93, 88 ) col2, COALESCE ( - - COUNT ( - 74 ), - - 95 * + ( - - 44 ) ) * ( 29 ) AS col0
----
4278
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT ALL COUNT( * ) * - 58 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL COUNT ( * ) * - 58 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL 8 * COALESCE ( - ( - + ( + 95 ) ), + 0 * + - 44, + - COUNT( * ) + + 12 * - 74 + + 21 ) col1
----
760

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL 8 * COALESCE ( - ( - + ( + 95 ) ), + 0 * + - 44, + - COUNT ( * ) + + 12 * - 74 + + 21 ) col1
----
760

query I rowsort
SELECT DISTINCT 43 + + + 98
----
141

query I rowsort
SELECT ( - 51 ) * - 5 AS col1
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT DISTINCT 7 + + + NULLIF ( ( + 49 ), + + 76 - - NULLIF ( CAST( + + 74 AS SIGNED ), + + 12 ) * - 62 ) + + ( 5 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT 7 + + + NULLIF ( ( + 49 ), + + 76 - - NULLIF ( CAST ( + + 74 AS INTEGER ), + + 12 ) * - 62 ) + + ( 5 ) AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7842
SELECT ALL CASE + - 38 WHEN - + 94 * - 79 + 3 * - + 82 * - + 63 * 97 / + + 83 + CASE + 35 WHEN 59 / + 28 + 58 + + MIN( - CAST( + 67 AS SIGNED ) ) THEN NULL WHEN 43 THEN - + NULLIF ( 57, - 38 ) * + 67 + + + 77 END THEN NULL WHEN - 76 THEN 70 * + ( + COUNT( * ) ) ELSE NULL END + + - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL CASE + - 38 WHEN - + 94 * - 79 + 3 * - + 82 * - + 63 * 97 / + + 83 + CASE + 35 WHEN 59 / + 28 + 58 + + MIN ( - CAST ( + 67 AS INTEGER ) ) THEN NULL WHEN 43 THEN - + NULLIF ( 57, - 38 ) * + 67 + + + 77 END THEN NULL WHEN - 76 THEN 70 * + ( + COUNT ( * ) ) ELSE NULL END + + - 7 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 31 + + + 57
----
88

query I rowsort
SELECT DISTINCT ( 26 ) + - 59 - 47
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7845
SELECT CAST( NULL AS SIGNED ) + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT CAST ( NULL AS INTEGER ) + + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL - CASE + + COUNT( * ) WHEN + - 75 + - 43 * + - 71 - 0 THEN NULL WHEN - 63 * + CASE + 46 WHEN ( - 89 ) THEN + + 16 END + - 3 THEN - 93 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL - CASE + + COUNT ( * ) WHEN + - 75 + - 43 * + - 71 - 0 THEN NULL WHEN - 63 * + CASE + 46 WHEN ( - 89 ) THEN + + 16 END + - 3 THEN - 93 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - 32 * + + COUNT( * ) + - + 72
----
-104

skipif mysql # not compatible
query I rowsort label-7847
SELECT - 32 * + + COUNT ( * ) + - + 72
----
-104

query I rowsort
SELECT DISTINCT + 68 * - 97 AS col2
----
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT ALL - 14 - + COUNT( * ) + + 43 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL - 14 - + COUNT ( * ) + + 43 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT 63 * - MAX( DISTINCT + 21 ) + - 83 - 64
----
-1470

skipif mysql # not compatible
query I rowsort label-7850
SELECT 63 * - MAX ( DISTINCT + 21 ) + - 83 - 64
----
-1470

query I rowsort
SELECT ( - 98 ) + + 22
----
-76

query I rowsort
SELECT DISTINCT 16 * - - COALESCE ( 76, - - 23 ) AS col2
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL - 8 - 9 * - COUNT( * ) * + 27 AS col0
----
235

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL - 8 - 9 * - COUNT ( * ) * + 27 AS col0
----
235

query I rowsort
SELECT DISTINCT - ( - + 80 ) AS col1
----
80

query I rowsort
SELECT DISTINCT - 75 - + 4 AS col0
----
-79

query II rowsort
SELECT 92 * 31 AS col1, - 62 AS col1
----
2852
-62

query I rowsort
SELECT - 17 + - - 31 AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT ALL - + CAST( - 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL - + CAST ( - 82 AS INTEGER )
----
82

query I rowsort
SELECT - 0 + + 32 AS col0
----
32

query I rowsort
SELECT + 23 * + - 5 col2
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-7861
SELECT DISTINCT + 23 DIV 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT + 23 / 75 AS col1
----
0

query I rowsort
SELECT + - 8 col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7863
SELECT ALL + COUNT( * ) * + 66, + 78 AS col2
----
66
78

skipif mysql # not compatible
query II rowsort label-7863
SELECT ALL + COUNT ( * ) * + 66, + 78 AS col2
----
66
78

query I rowsort
SELECT - 89 * + 5 * + 94 AS col0
----
-41830

query I rowsort
SELECT DISTINCT + - ( - 97 ) * - 83
----
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT COUNT( * ) * + 82 * + - 7 + - 61 * - + 46
----
2232

skipif mysql # not compatible
query I rowsort label-7866
SELECT COUNT ( * ) * + 82 * + - 7 + - 61 * - + 46
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL MIN( - + 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL MIN ( - + 14 ) AS col0
----
-14

query I rowsort
SELECT 90 + + - 67 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT NULLIF ( - - CASE 98 WHEN - COUNT( * ) THEN + 83 + + ( 42 ) WHEN - - 40 * - - 89 THEN 23 * - 48 END, + 32 * + + 48 ) * + - 72 + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT NULLIF ( - - CASE 98 WHEN - COUNT ( * ) THEN + 83 + + ( 42 ) WHEN - - 40 * - - 89 THEN 23 * - 48 END, + 32 * + + 48 ) * + - 72 + 35 AS col2
----
NULL

query II rowsort
SELECT 75, 77 AS col0
----
75
77

query I rowsort
SELECT ALL 2 + 53 * 3 * ( 61 ) + - 14 AS col1
----
9687

query I rowsort
SELECT 6 + - 51
----
-45

query II rowsort
SELECT - 72, - 72
----
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL MIN( ALL + 33 ) col1
----
33

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL MIN ( ALL + 33 ) col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT - 63 + + 18 + - 44 * - 83 * + COUNT( * ) AS col0
----
3607

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT - 63 + + 18 + - 44 * - 83 * + COUNT ( * ) AS col0
----
3607

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT DISTINCT MIN( + - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT MIN ( + - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT ALL - COUNT( * ) + NULLIF ( + - 34, 66 * - + COUNT( * ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL - COUNT ( * ) + NULLIF ( + - 34, 66 * - + COUNT ( * ) ) AS col2
----
-35

query I rowsort
SELECT ( 79 ) + 24
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-7879
SELECT ALL 48 + + SUM( 82 ) AS col1, 97
----
130
97

skipif mysql # not compatible
query II rowsort label-7879
SELECT ALL 48 + + SUM ( 82 ) AS col1, 97
----
130
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7880
SELECT ( - CAST( NULL AS SIGNED ) ) + + - 58 AS col0, 84 AS col1
----
NULL
84

skipif mysql # not compatible
query II rowsort label-7880
SELECT ( - CAST ( NULL AS INTEGER ) ) + + - 58 AS col0, 84 AS col1
----
NULL
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7881
SELECT MAX( CAST( - 46 AS SIGNED ) ) + - 76
----
-122

skipif mysql # not compatible
query I rowsort label-7881
SELECT MAX ( CAST ( - 46 AS INTEGER ) ) + - 76
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7882
SELECT ( + - CAST( - ( 6 ) AS SIGNED ) ) * - 49 - + 56 + 70 - + + COUNT( * ) * - 22 AS col0
----
-258

skipif mysql # not compatible
query I rowsort label-7882
SELECT ( + - CAST ( - ( 6 ) AS INTEGER ) ) * - 49 - + 56 + 70 - + + COUNT ( * ) * - 22 AS col0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL 59 * + + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL 59 * + + COUNT ( * ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT + COUNT( + 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7884
SELECT + COUNT ( + 35 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT DISTINCT - NULLIF ( 73, - NULLIF ( 92, + + 45 / + 9 * + - 40 / + 35 ) - - SUM( DISTINCT + - 23 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT - NULLIF ( 73, - NULLIF ( 92, + + 45 / + 9 * + - 40 / + 35 ) - - SUM ( DISTINCT + - 23 ) )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-7886
SELECT - 42, COUNT( * ) + - 65 AS col2
----
-42
-64

skipif mysql # not compatible
query II rowsort label-7886
SELECT - 42, COUNT ( * ) + - 65 AS col2
----
-42
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7887
SELECT + CASE - 88 WHEN - 43 * + COUNT( * ) + + 37 THEN CAST( - CAST( - NULLIF ( + - SUM( 84 ), + SUM( ALL - 18 ) - - + ( 18 ) ) AS SIGNED ) AS SIGNED ) ELSE - 41 END * + + CAST( NULL AS SIGNED ) + + - 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7887
SELECT + CASE - 88 WHEN - 43 * + COUNT ( * ) + + 37 THEN CAST ( - CAST ( - NULLIF ( + - SUM ( 84 ), + SUM ( ALL - 18 ) - - + ( 18 ) ) AS INTEGER ) AS INTEGER ) ELSE - 41 END * + + CAST ( NULL AS INTEGER ) + + - 62 col0
----
NULL

query I rowsort
SELECT + - 66 * + 6 AS col0
----
-396

query I rowsort
SELECT + CASE - 74 WHEN 63 * + 34 THEN NULL ELSE 24 END AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT ALL + COUNT( * ) * + - 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL + COUNT ( * ) * + - 34 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT DISTINCT + + SUM( 88 )
----
88

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT + + SUM ( 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT DISTINCT + + COALESCE ( COUNT( * ), - - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT + + COALESCE ( COUNT ( * ), - - 85 )
----
1

query I rowsort
SELECT DISTINCT + 94 * + 83 AS col0
----
7802

query II rowsort
SELECT ALL + 33 AS col0, + 64
----
33
64

query I rowsort
SELECT ALL 42 * 64 + + 15 + + - 28 * - NULLIF ( - 84, + + 43 ) - - 4
----
355

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT ALL 34 * + - SUM( + 40 )
----
-1360

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL 34 * + - SUM ( + 40 )
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT + - COALESCE ( 15, 42 * + ( + + ( + 45 ) ) + - 56 * - 19 + + NULLIF ( - 3, + 1 ), - - MIN( - - 60 ) * - - 40, 65, - SUM( - 81 ) * - COUNT( * ) * - + 44 + + - 70 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7897
SELECT + - COALESCE ( 15, 42 * + ( + + ( + 45 ) ) + - 56 * - 19 + + NULLIF ( - 3, + 1 ), - - MIN ( - - 60 ) * - - 40, 65, - SUM ( - 81 ) * - COUNT ( * ) * - + 44 + + - 70 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL - ( + - MIN( - - 22 ) ) * - 51 + - 62 AS col0
----
-1184

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL - ( + - MIN ( - - 22 ) ) * - 51 + - 62 AS col0
----
-1184

query II rowsort
SELECT 57, + 40 + - - 81 AS col1
----
57
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7900
SELECT - + 0 * - MIN( + 70 ) * - + 49 + + 65 DIV 16 + - + 12 col2
----
-8

skipif mysql # not compatible
query I rowsort label-7900
SELECT - + 0 * - MIN ( + 70 ) * - + 49 + + 65 / 16 + - + 12 col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT + NULLIF ( + COALESCE ( + CAST( NULL AS SIGNED ), + + 72, + 96 * 48 - + 17 ), - - 70 + 58 ) col2
----
72

skipif mysql # not compatible
query I rowsort label-7901
SELECT + NULLIF ( + COALESCE ( + CAST ( NULL AS INTEGER ), + + 72, + 96 * 48 - + 17 ), - - 70 + 58 ) col2
----
72

query I rowsort
SELECT - 20 + + CASE - 5 WHEN - 97 THEN NULL ELSE 15 END
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7903
SELECT ALL - 76 + + - 92 + - 39 * CAST( NULL AS DECIMAL ) * - AVG ( - 87 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL - 76 + + - 92 + - 39 * CAST ( NULL AS REAL ) * - AVG ( - 87 ) col0
----
NULL

query I rowsort
SELECT - 96 + + + 56 AS col1
----
-40

query I rowsort
SELECT - 67 * ( - 20 ) * 52 * - ( - 4 ) * - 3 + + + 69 + + 7 + - - ( - 71 ) col1
----
-836155

query I rowsort
SELECT DISTINCT + 31 + - + 28 AS col1
----
3

query I rowsort
SELECT ALL - CASE 80 WHEN - 89 THEN - 63 WHEN - - 78 THEN - 42 END + - + 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7908
SELECT DISTINCT ( - - ( + NULLIF ( + 87, NULLIF ( - + CAST( 87 AS SIGNED ), + 48 + + COUNT( * ) ) ) ) )
----
87

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT ( - - ( + NULLIF ( + 87, NULLIF ( - + CAST ( 87 AS INTEGER ), + 48 + + COUNT ( * ) ) ) ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL - 58 + ( + + COUNT( - + 28 ) ) + + 83 + ( + 31 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL - 58 + ( + + COUNT ( - + 28 ) ) + + 83 + ( + 31 ) col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7910
SELECT DISTINCT + COALESCE ( - COALESCE ( + 67, + MAX( + NULLIF ( 15, CAST( NULL AS SIGNED ) ) ) ), - + 35, + SUM( 59 ) ) * + 70
----
-4690

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT + COALESCE ( - COALESCE ( + 67, + MAX ( + NULLIF ( 15, CAST ( NULL AS INTEGER ) ) ) ), - + 35, + SUM ( 59 ) ) * + 70
----
-4690

query I rowsort
SELECT ALL 48 + - 83
----
-35

query I rowsort
SELECT ALL 7 + - - 15
----
22

query I rowsort
SELECT + NULLIF ( - - 98, - + 77 ) * + 55
----
5390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7914
SELECT ALL - 14 - - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL - 14 - - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) * COALESCE ( - + SUM( ALL - - 30 ), - 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * COALESCE ( - + SUM ( ALL - - 30 ), - 27 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7916
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), MAX( ALL 30 ) * 65 - - + 85 ) AS col2
----
2035

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), MAX ( ALL 30 ) * 65 - - + 85 ) AS col2
----
2035

query II rowsort
SELECT DISTINCT ( - 44 ) AS col1, 6 * - 82
----
-44
-492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7918
SELECT ALL + ( ( + 32 ) ) - + + MIN( ALL - 28 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL + ( ( + 32 ) ) - + + MIN ( ALL - 28 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 41 * - 90
----
-3690

query I rowsort
SELECT ALL ( - - 40 ) AS col2
----
40

query I rowsort
SELECT + - 81 - + 51 col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT - + COUNT( * ) + - - 44 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7922
SELECT - + COUNT ( * ) + - - 44 AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7923
SELECT - 95 DIV + - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7923
SELECT - 95 / + - 97 AS col1
----
0

query I rowsort
SELECT + + 65 * - + 31 + - 57 + 8
----
-2064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7925
SELECT DISTINCT 89 / + COUNT( * ) * + CAST( NULL AS SIGNED ) - - 46 + 66 * - 21 * 46 * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT 89 / + COUNT ( * ) * + CAST ( NULL AS INTEGER ) - - 46 + 66 * - 21 * 46 * - 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL COUNT( * ) * - + 47 * COALESCE ( 44, 75 )
----
-2068

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL COUNT ( * ) * - + 47 * COALESCE ( 44, 75 )
----
-2068

onlyif mysql # aggregate syntax: 
query II rowsort label-7927
SELECT + + 54 * 28, + 49 * + - 12 * - 53 * - NULLIF ( - - COUNT( * ), - 10 / + ( + 25 ) ) + + 36 AS col1
----
1512
-31128

skipif mysql # not compatible
query II rowsort label-7927
SELECT + + 54 * 28, + 49 * + - 12 * - 53 * - NULLIF ( - - COUNT ( * ), - 10 / + ( + 25 ) ) + + 36 AS col1
----
1512
-31128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7928
SELECT + CASE + 40 WHEN + + 11 * 62 THEN - ( 23 ) * - CAST( NULL AS SIGNED ) ELSE NULL END AS col1, - SUM( DISTINCT + 84 ) AS col2
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-7928
SELECT + CASE + 40 WHEN + + 11 * 62 THEN - ( 23 ) * - CAST ( NULL AS INTEGER ) ELSE NULL END AS col1, - SUM ( DISTINCT + 84 ) AS col2
----
NULL
-84

query I rowsort
SELECT + - 35 + 7 + 42
----
14

query I rowsort
SELECT ( + 4 ) * 51 * ( - 32 ) + - 30
----
-6558

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT DISTINCT - - 68 * - + 71 + + COUNT( ALL + 41 ) + 20 AS col0
----
-4807

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT - - 68 * - + 71 + + COUNT ( ALL + 41 ) + 20 AS col0
----
-4807

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7932
SELECT ALL + - 2 * - 0 DIV - + 47 + - 24 * + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL + - 2 * - 0 / - + 47 + - 24 * + COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL + SUM( + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + SUM ( + 45 )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7934
SELECT + CAST( + - 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-7934
SELECT + CAST ( + - 48 AS INTEGER )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT DISTINCT + COUNT( * ) * 80 + + 8 * + 55 * - - 14 + 13 * COUNT( * ) AS col1
----
6253

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT + COUNT ( * ) * 80 + + 8 * + 55 * - - 14 + 13 * COUNT ( * ) AS col1
----
6253

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL 49 * - + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL 49 * - + COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT + CASE + 19 WHEN - COUNT( * ) + + 53 THEN + - 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT + CASE + 19 WHEN - COUNT ( * ) + + 53 THEN + - 60 END
----
NULL

query I rowsort
SELECT DISTINCT 84 * - 46
----
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ALL SUM( - - 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL SUM ( - - 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT - MIN( - 51 ) - + 16 - 94 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-7940
SELECT - MIN ( - 51 ) - + 16 - 94 AS col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7941
SELECT ALL COALESCE ( - 52, CASE + + 69 WHEN - ( - COUNT( * ) ) THEN + ( - COUNT( * ) ) + 81 + + ( + 71 ) * 20 WHEN + - 45 * + 22 THEN NULL END * 19 * + 83 DIV 56 + + - 80, COUNT( ALL + - ( + 15 ) ) )
----
-52

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL COALESCE ( - 52, CASE + + 69 WHEN - ( - COUNT ( * ) ) THEN + ( - COUNT ( * ) ) + 81 + + ( + 71 ) * 20 WHEN + - 45 * + 22 THEN NULL END * 19 * + 83 / 56 + + - 80, COUNT ( ALL + - ( + 15 ) ) )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7942
SELECT 18 * - 33 + - + COUNT( * ) + - - 72 / 97 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7942
SELECT 18 * - 33 + - + COUNT ( * ) + - - 72 / 97 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( 78 ) col1
----
78

query I rowsort
SELECT - 19 + + 92
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7945
SELECT - 77 * - 43 * CAST( NULL AS SIGNED ) AS col2, 71
----
NULL
71

skipif mysql # not compatible
query II rowsort label-7945
SELECT - 77 * - 43 * CAST ( NULL AS INTEGER ) AS col2, 71
----
NULL
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT - 83 * - + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-7946
SELECT - 83 * - + COUNT ( * )
----
83

query I rowsort
SELECT - 95 + + - ( + 3 ) * - NULLIF ( + + 4, ( + ( 63 ) ) * - - 32 * - 96 ) * - + 58
----
-791

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT - MAX( + 96 ) * - 75 + + + 41 + + 13 * 13 * 11 AS col0
----
9100

skipif mysql # not compatible
query I rowsort label-7948
SELECT - MAX ( + 96 ) * - 75 + + + 41 + + 13 * 13 * 11 AS col0
----
9100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7949
SELECT - CASE - 52 WHEN + CAST( NULL AS SIGNED ) * + + ( + 72 ) THEN + 11 * - + ( 84 ) + 23 + 76 * ( 92 ) WHEN + 38 THEN - - 85 ELSE SUM( ALL - 19 ) END + - 98 * + 91 * + 59
----
-526143

skipif mysql # not compatible
query I rowsort label-7949
SELECT - CASE - 52 WHEN + CAST ( NULL AS INTEGER ) * + + ( + 72 ) THEN + 11 * - + ( 84 ) + 23 + 76 * ( 92 ) WHEN + 38 THEN - - 85 ELSE SUM ( ALL - 19 ) END + - 98 * + 91 * + 59
----
-526143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7950
SELECT ALL - COUNT( * ) DIV + 4
----
0

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL - COUNT ( * ) / + 4
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7951
SELECT - COUNT( * ) + COUNT( * ) * - + 40, + 97 AS col2
----
-41
97

skipif mysql # not compatible
query II rowsort label-7951
SELECT - COUNT ( * ) + COUNT ( * ) * - + 40, + 97 AS col2
----
-41
97

query I rowsort
SELECT DISTINCT ( 84 ) col2
----
84

query I rowsort
SELECT ALL - 55 * + - 3 AS col2
----
165

query I rowsort
SELECT DISTINCT - 38 * - 88
----
3344

query I rowsort
SELECT 59 * + 60 col0
----
3540

query I rowsort
SELECT ALL 51 + - 75 * 59 AS col2
----
-4374

query I rowsort
SELECT 84 * + 83
----
6972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7958
SELECT DISTINCT 86 + - CASE + 97 WHEN MAX( ALL + CAST( + 22 AS SIGNED ) ) THEN NULL WHEN 34 + 28 * ( - 82 ) THEN 47 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT 86 + - CASE + 97 WHEN MAX ( ALL + CAST ( + 22 AS INTEGER ) ) THEN NULL WHEN 34 + 28 * ( - 82 ) THEN 47 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL NULLIF ( - 86, 21 ) + + 48 * COUNT( * ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL NULLIF ( - 86, 21 ) + + 48 * COUNT ( * ) AS col1
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT 3 DIV 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT 3 / 11 AS col0
----
0

query I rowsort
SELECT ALL - 93 + 12 AS col1
----
-81

query I rowsort
SELECT 10 * 45
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT ALL + COALESCE ( COUNT( * ), NULLIF ( + 25, 35 ) ) + 46 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + COALESCE ( COUNT ( * ), NULLIF ( + 25, 35 ) ) + 46 AS col1
----
47

query I rowsort
SELECT DISTINCT 50 + 9 * + 96
----
914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7965
SELECT COUNT( * ) DIV + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7965
SELECT COUNT ( * ) / + 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL MIN( - 27 ) + MAX( DISTINCT 51 + - 38 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL MIN ( - 27 ) + MAX ( DISTINCT 51 + - 38 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT 0 * - MAX( ALL 97 )
----
0

skipif mysql # not compatible
query I rowsort label-7967
SELECT 0 * - MAX ( ALL 97 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7968
SELECT 16 + - CAST( NULL AS SIGNED ) * ( + COUNT( * ) + COUNT( * ) / - 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT 16 + - CAST ( NULL AS INTEGER ) * ( + COUNT ( * ) + COUNT ( * ) / - 12 )
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + 83, 24 * - 59 ) - ( + 39 )
----
-122

query I rowsort
SELECT ALL + 58 - 5 * 33
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT DISTINCT 8 * COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT 8 * COUNT ( * )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7972
SELECT DISTINCT ( + 62 ) - 18 * CASE + 64 WHEN - 77 * + 27 THEN COUNT( * ) WHEN + 47 THEN - COUNT( * ) * - 94 ELSE CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT ( + 62 ) - 18 * CASE + 64 WHEN - 77 * + 27 THEN COUNT ( * ) WHEN + 47 THEN - COUNT ( * ) * - 94 ELSE CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) - + 59 AS col0
----
NULL

query I rowsort
SELECT 25 * 75
----
1875

query I rowsort
SELECT 60 + + 66
----
126

query I rowsort
SELECT DISTINCT 31 * 51 AS col0
----
1581

query I rowsort
SELECT ALL - 23 * + 11
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL MIN( 99 ) * 67
----
6633

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL MIN ( 99 ) * 67
----
6633

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7979
SELECT DISTINCT MIN( + CAST( NULL AS DECIMAL ) ) * 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT MIN ( + CAST ( NULL AS REAL ) ) * 64 AS col2
----
NULL

query I rowsort
SELECT 69 * 10
----
690

query I rowsort
SELECT ALL 30 * 92 AS col0
----
2760

query I rowsort
SELECT DISTINCT 64 + + 89 col1
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT - 68 DIV + 61 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7983
SELECT - 68 / + 61 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7984
SELECT + 51 * NULLIF ( - 4 * - COUNT( * ) + 15, 26 * 40 + 62 * CAST( - 19 AS SIGNED ) ) AS col0
----
969

skipif mysql # not compatible
query I rowsort label-7984
SELECT + 51 * NULLIF ( - 4 * - COUNT ( * ) + 15, 26 * 40 + 62 * CAST ( - 19 AS INTEGER ) ) AS col0
----
969

query I rowsort
SELECT ALL + - 64 + 23
----
-41

query I rowsort
SELECT ( + 84 ) * - 59 AS col0
----
-4956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7987
SELECT ALL CAST( - MIN( ALL 23 ) AS SIGNED ) + 11 * + 4 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL CAST ( - MIN ( ALL 23 ) AS INTEGER ) + 11 * + 4 AS col1
----
21

query I rowsort
SELECT DISTINCT + 7 + 20
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL - COALESCE ( + SUM( DISTINCT - 52 ), - 68 * COUNT( * ) + 47 ) + + 95 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL - COALESCE ( + SUM ( DISTINCT - 52 ), - 68 * COUNT ( * ) + 47 ) + + 95 AS col2
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-7990
SELECT ALL + + 72 + 18 DIV 65
----
72

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL + + 72 + 18 / 65
----
72

query I rowsort
SELECT 31 + - 54 * 43 AS col1
----
-2291

query I rowsort
SELECT - 40 - + 62 * + 81
----
-5062

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT ( 97 ) * 92 + 88 * - COUNT( * ) AS col0
----
8836

skipif mysql # not compatible
query I rowsort label-7993
SELECT ( 97 ) * 92 + 88 * - COUNT ( * ) AS col0
----
8836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7994
SELECT 20 * + CASE WHEN NOT ( 91 * COALESCE ( 28, - 61 / + COUNT( * ) ) ) <= ( - 62 * + 45 + - 9 ) THEN CAST( COALESCE ( 65, 30 ) AS SIGNED ) + - 35 * 11 ELSE NULL END AS col2
----
-6400

skipif mysql # not compatible
query I rowsort label-7994
SELECT 20 * + CASE WHEN NOT ( 91 * COALESCE ( 28, - 61 / + COUNT ( * ) ) ) <= ( - 62 * + 45 + - 9 ) THEN CAST ( COALESCE ( 65, 30 ) AS INTEGER ) + - 35 * 11 ELSE NULL END AS col2
----
-6400

query I rowsort
SELECT ALL - + 60 * 7 AS col1
----
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-7996
SELECT + 89 DIV 32 + - 98
----
-96

skipif mysql # not compatible
query I rowsort label-7996
SELECT + 89 / 32 + - 98
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT CASE + 82 WHEN + 56 THEN NULL WHEN 73 / - COUNT( 84 ) THEN NULL WHEN - ( COUNT( * ) ) THEN + 28 + + ( - 87 ) WHEN 42 + - COUNT( * ) THEN AVG ( - 88 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT CASE + 82 WHEN + 56 THEN NULL WHEN 73 / - COUNT ( 84 ) THEN NULL WHEN - ( COUNT ( * ) ) THEN + 28 + + ( - 87 ) WHEN 42 + - COUNT ( * ) THEN AVG ( - 88 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7998
SELECT ALL - - 68 * - MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL - - 68 * - MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - + 64 col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT + 33 + COUNT( * ) * - 82
----
-49

skipif mysql # not compatible
query I rowsort label-8000
SELECT + 33 + COUNT ( * ) * - 82
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ALL + MAX( ALL 42 ) * 80 - + 84 * - 10
----
4200

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL + MAX ( ALL 42 ) * 80 - + 84 * - 10
----
4200

query I rowsort
SELECT - - 33 * 88 + 89
----
2993

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8003
SELECT ALL ( + MIN( DISTINCT + 32 ) ) - + 55 DIV + 79 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL ( + MIN ( DISTINCT + 32 ) ) - + 55 / + 79 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT 35 * + NULLIF ( COUNT( ALL 42 ), COALESCE ( - 22, 32 + 56 / 25 ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8004
SELECT 35 * + NULLIF ( COUNT ( ALL 42 ), COALESCE ( - 22, 32 + 56 / 25 ) ) AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT DISTINCT + COALESCE ( 33, - 50, 68 DIV - 61 ) - 32
----
1

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT + COALESCE ( 33, - 50, 68 / - 61 ) - 32
----
1

query I rowsort
SELECT 25 * 32 col2
----
800

query I rowsort
SELECT 63 + + 16 + - 81 AS col2
----
-2

query I rowsort
SELECT ALL + COALESCE ( + - 56, 18 + 14 ) * + 2 AS col0
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT DISTINCT - CAST( + 43 AS SIGNED ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT - CAST ( + 43 AS INTEGER ) col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8010
SELECT ALL - MIN( ALL - CAST( - 91 AS SIGNED ) ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL - MIN ( ALL - CAST ( - 91 AS INTEGER ) ) AS col0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8011
SELECT ALL COUNT( * ) DIV - ( 26 )
----
0

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL COUNT ( * ) / - ( 26 )
----
0

query I rowsort
SELECT ALL 30 + + - 63 * + 23
----
-1419

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT DISTINCT 89 + + + SUM( DISTINCT + 33 )
----
122

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT 89 + + + SUM ( DISTINCT + 33 )
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT 92 * - 76 + + COUNT( * )
----
-6991

skipif mysql # not compatible
query I rowsort label-8014
SELECT 92 * - 76 + + COUNT ( * )
----
-6991

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8015
SELECT + COUNT( * ) - - CAST( NULL AS SIGNED ) - - 24 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT + COUNT ( * ) - - CAST ( NULL AS INTEGER ) - - 24 * + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL 23 + - COUNT( * ) - 62
----
-40

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL 23 + - COUNT ( * ) - 62
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT DISTINCT 41 + + MIN( 4 ) + 94 * 13 AS col2
----
1267

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT 41 + + MIN ( 4 ) + 94 * 13 AS col2
----
1267

query I rowsort
SELECT + 6 + 51
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT - + COUNT( * ) * + 74 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8019
SELECT - + COUNT ( * ) * + 74 AS col2
----
-74

query I rowsort
SELECT ALL + 38 + 75
----
113

query I rowsort
SELECT ALL 44 + + - 44
----
0

query I rowsort
SELECT ALL ( 55 ) col1
----
55

query I rowsort
SELECT + 88 + 13
----
101

query I rowsort
SELECT DISTINCT - CASE - 32 WHEN - 49 THEN 77 END AS col2
----
NULL

query I rowsort
SELECT ALL 71 + - 10 AS col1
----
61

query I rowsort
SELECT + - 66 * - ( 27 ) * 72 AS col1
----
128304

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT - COALESCE ( + 99, 28 DIV 35 )
----
-99

skipif mysql # not compatible
query I rowsort label-8027
SELECT - COALESCE ( + 99, 28 / 35 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT - + 92 + + + NULLIF ( - 35, 82 + COUNT( * ) )
----
-127

skipif mysql # not compatible
query I rowsort label-8028
SELECT - + 92 + + + NULLIF ( - 35, 82 + COUNT ( * ) )
----
-127

query I rowsort
SELECT ALL - 11 + - 4 - 61
----
-76

query I rowsort
SELECT + - ( - 96 ) * 88 AS col0
----
8448

query I rowsort
SELECT + COALESCE ( - - 84, 83, + 37 ) AS col1
----
84

query I rowsort
SELECT - + 42 + + - 82 AS col0
----
-124

query I rowsort
SELECT COALESCE ( - + 98, ( - 92 ), - 88 - 48 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT - - CASE - 38 WHEN 32 * 67 + COUNT( * ) / COUNT( * ) THEN NULL WHEN 18 * 63 THEN 67 + 83 ELSE NULL END + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8034
SELECT - - CASE - 38 WHEN 32 * 67 + COUNT ( * ) / COUNT ( * ) THEN NULL WHEN 18 * 63 THEN 67 + 83 ELSE NULL END + 28 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 94 * - 26 * + 59 AS col2
----
-144196

query I rowsort
SELECT ALL - 70 * 88 AS col2
----
-6160

query I rowsort
SELECT DISTINCT + + 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL 1 * CASE 1 WHEN 93 + 65 THEN ( COUNT( * ) ) * COUNT( * ) WHEN MAX( - 83 ) * - MAX( DISTINCT - 18 ) THEN 3 WHEN 51 THEN NULL WHEN 15 THEN NULL ELSE NULL END * + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL 1 * CASE 1 WHEN 93 + 65 THEN ( COUNT ( * ) ) * COUNT ( * ) WHEN MAX ( - 83 ) * - MAX ( DISTINCT - 18 ) THEN 3 WHEN 51 THEN NULL WHEN 15 THEN NULL ELSE NULL END * + 95 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8039
SELECT - + MAX( - CAST( NULL AS SIGNED ) ) / 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT - + MAX ( - CAST ( NULL AS INTEGER ) ) / 82 AS col0
----
NULL

query I rowsort
SELECT ALL + + 65 * 86 + 82
----
5672

query I rowsort
SELECT + ( - 45 ) AS col1
----
-45

query I rowsort
SELECT - 14 * + 19
----
-266

query I rowsort
SELECT ( - - 47 ) AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8044
SELECT + ( - CASE + + 85 WHEN - 7 + ( + 15 + - 41 ) THEN + ( 69 ) * + SUM( ALL 59 ) WHEN 35 * CAST( + ( + CAST( 46 AS SIGNED ) ) AS DECIMAL ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT + ( - CASE + + 85 WHEN - 7 + ( + 15 + - 41 ) THEN + ( 69 ) * + SUM ( ALL 59 ) WHEN 35 * CAST ( + ( + CAST ( 46 AS INTEGER ) ) AS REAL ) THEN NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8045
SELECT + 11 AS col2, SUM( CAST( 79 AS SIGNED ) ) + COUNT( - CAST( NULL AS SIGNED ) ) * - 55
----
11
79

skipif mysql # not compatible
query II rowsort label-8045
SELECT + 11 AS col2, SUM ( CAST ( 79 AS INTEGER ) ) + COUNT ( - CAST ( NULL AS INTEGER ) ) * - 55
----
11
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8046
SELECT DISTINCT + COALESCE ( + - CAST( + 80 AS SIGNED ), 12 + 10 ) * 13 AS col2
----
-1040

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT + COALESCE ( + - CAST ( + 80 AS INTEGER ), 12 + 10 ) * 13 AS col2
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT + SUM( DISTINCT + - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-8047
SELECT + SUM ( DISTINCT + - 49 )
----
-49

query I rowsort
SELECT - 78 * - + 75 AS col2
----
5850

onlyif mysql # DIV for integer division: 
query I rowsort label-8049
SELECT ALL + COALESCE ( 18, + 37 DIV + 34, 27 )
----
18

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL + COALESCE ( 18, + 37 / + 34, 27 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT - 54 - + COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8050
SELECT - 54 - + COUNT ( * ) AS col2
----
-55

query II rowsort
SELECT DISTINCT + 21 AS col1, - 18 + + 33 col0
----
21
15

query I rowsort
SELECT - COALESCE ( + ( + 90 ), 66 + - 35 ) * - 13 col2
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT DISTINCT SUM( - + 96 ) * + 5 + 80
----
-400

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT SUM ( - + 96 ) * + 5 + 80
----
-400

query I rowsort
SELECT NULLIF ( - 30, + - 93 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT COUNT( ALL - ( + + 85 ) ) * 90 + 60
----
150

skipif mysql # not compatible
query I rowsort label-8055
SELECT COUNT ( ALL - ( + + 85 ) ) * 90 + 60
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8056
SELECT ALL + 96 DIV + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL + 96 / + COUNT ( * ) AS col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8057
SELECT - COALESCE ( + SUM( + 87 ), CASE + 78 WHEN + 80 THEN NULL ELSE - 21 * + COUNT( * ) END ) DIV + SUM( DISTINCT - 10 )
----
8

skipif mysql # not compatible
query I rowsort label-8057
SELECT - COALESCE ( + SUM ( + 87 ), CASE + 78 WHEN + 80 THEN NULL ELSE - 21 * + COUNT ( * ) END ) / + SUM ( DISTINCT - 10 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT + CAST( NULL AS SIGNED ) + - + 60 + - 38 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT + CAST ( NULL AS INTEGER ) + - + 60 + - 38 * 0
----
NULL

query I rowsort
SELECT + COALESCE ( + - 40, - + 3 ) col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT DISTINCT MIN( - 91 ) * - 85 + 38 col2
----
7773

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT MIN ( - 91 ) * - 85 + 38 col2
----
7773

query I rowsort
SELECT ALL 20 * + 18 + - NULLIF ( 63, + 80 * 53 ) AS col2
----
297

query II rowsort
SELECT + 48 AS col0, + 13 + + - 93 AS col0
----
48
-80

query I rowsort
SELECT - NULLIF ( + 76, 10 ) col0
----
-76

query I rowsort
SELECT - 82 * + 24
----
-1968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT ALL CAST( - 80 AS SIGNED ) * 58 * - 12 + - CASE + 36 - + 25 WHEN COALESCE ( + 50, - 16 * CASE COUNT( * ) WHEN + 97 THEN + 64 END + 85 ) * + 36 THEN 28 ELSE - ( 36 ) END * - 54 AS col1
----
53736

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL CAST ( - 80 AS INTEGER ) * 58 * - 12 + - CASE + 36 - + 25 WHEN COALESCE ( + 50, - 16 * CASE COUNT ( * ) WHEN + 97 THEN + 64 END + 85 ) * + 36 THEN 28 ELSE - ( 36 ) END * - 54 AS col1
----
53736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8066
SELECT DISTINCT 4, - CASE + 20 WHEN 86 * + 64 + + 76 * + COUNT( * ) THEN 27 / 5 - + 58 WHEN CAST( 25 AS SIGNED ) * 35 THEN CAST( NULL AS SIGNED ) * + 77 WHEN - 55 + - ( 77 + COUNT( * ) * COUNT( * ) ) THEN NULL END AS col2
----
4
NULL

skipif mysql # not compatible
query II rowsort label-8066
SELECT DISTINCT 4, - CASE + 20 WHEN 86 * + 64 + + 76 * + COUNT ( * ) THEN 27 / 5 - + 58 WHEN CAST ( 25 AS INTEGER ) * 35 THEN CAST ( NULL AS INTEGER ) * + 77 WHEN - 55 + - ( 77 + COUNT ( * ) * COUNT ( * ) ) THEN NULL END AS col2
----
4
NULL

query I rowsort
SELECT DISTINCT - - 31 * - 81 - 71 + 10 * - 38
----
-2962

query I rowsort
SELECT ALL + NULLIF ( + 85, 75 ) * 79 + + 77
----
6792

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT ALL 16 DIV + 61 col0
----
0

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL 16 / + 61 col0
----
0

query I rowsort
SELECT - NULLIF ( + 22, + 60 ) col2
----
-22

query I rowsort
SELECT ALL - COALESCE ( - 50, + 46 - + 33 ) + 1 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT DISTINCT + + COUNT( * ) + - 55 * + 40
----
-2199

skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT + + COUNT ( * ) + - 55 * + 40
----
-2199

onlyif mysql # DIV for integer division: 
query I rowsort label-8073
SELECT DISTINCT COALESCE ( + 86, 82 ) DIV + NULLIF ( 45 * - 89 + + 48, 41 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT COALESCE ( + 86, 82 ) / + NULLIF ( 45 * - 89 + + 48, 41 ) AS col0
----
0

query I rowsort
SELECT - - 26 - + 54
----
-28

query I rowsort
SELECT + - 21 * + 52 AS col2
----
-1092

query II rowsort
SELECT 0 AS col1, - 74 + + 51
----
0
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT + 44 * + - 95 + + + MIN( 96 ) + 0 * - 36 AS col0
----
-4084

skipif mysql # not compatible
query I rowsort label-8077
SELECT + 44 * + - 95 + + + MIN ( 96 ) + 0 * - 36 AS col0
----
-4084

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT + COUNT( ALL 87 ) - 39
----
-38

skipif mysql # not compatible
query I rowsort label-8078
SELECT + COUNT ( ALL 87 ) - 39
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8079
SELECT NULLIF ( + - CASE - CASE + 53 WHEN ( CASE + COUNT( * ) WHEN - ( + 58 ) + 63 THEN + 37 + + 56 ELSE COUNT( * ) + 56 END ) THEN - 30 WHEN + 47 THEN - 65 WHEN - 17 THEN NULL END WHEN 45 * - 89 + CAST( 27 - + 33 AS SIGNED ) * + 71 THEN + 80 WHEN CAST( - AVG ( - COALESCE ( 41, 54 ) ) AS SIGNED ) THEN + COUNT( * ) END, 85 / - 18 + + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT NULLIF ( + - CASE - CASE + 53 WHEN ( CASE + COUNT ( * ) WHEN - ( + 58 ) + 63 THEN + 37 + + 56 ELSE COUNT ( * ) + 56 END ) THEN - 30 WHEN + 47 THEN - 65 WHEN - 17 THEN NULL END WHEN 45 * - 89 + CAST ( 27 - + 33 AS INTEGER ) * + 71 THEN + 80 WHEN CAST ( - AVG ( - COALESCE ( 41, 54 ) ) AS INTEGER ) THEN + COUNT ( * ) END, 85 / - 18 + + 98 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL + COUNT( * ) * - - 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL + COUNT ( * ) * - - 69 AS col2
----
69

query I rowsort
SELECT + + 94 * + 22 + 34
----
2102

query I rowsort
SELECT ALL ( + + 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT DISTINCT 90 - + + COUNT( * ) + - COUNT( * ) * - 58
----
147

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT 90 - + + COUNT ( * ) + - COUNT ( * ) * - 58
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT + - 61 * - ( 48 ) * COUNT( - ( 99 ) * 99 ) AS col0
----
2928

skipif mysql # not compatible
query I rowsort label-8084
SELECT + - 61 * - ( 48 ) * COUNT ( - ( 99 ) * 99 ) AS col0
----
2928

query I rowsort
SELECT + + CASE - 68 WHEN + 52 * 2 + 88 THEN 47 ELSE - 56 END + 4 AS col0
----
-52

query I rowsort
SELECT + + 44 - + 35 AS col1
----
9

query II rowsort
SELECT ALL 81 AS col0, 5
----
81
5

query I rowsort
SELECT + - 75 + - - 76 AS col2
----
1

query I rowsort
SELECT - 67 * 5 * - - 95 * + - 92 col2
----
2927900

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT - 84 DIV - 8 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8090
SELECT - 84 / - 8 AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8091
SELECT - 36 DIV 50 + + 29 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8091
SELECT - 36 / 50 + + 29 AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT ALL - 64 * - - CAST( + 29 AS SIGNED )
----
-1856

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL - 64 * - - CAST ( + 29 AS INTEGER )
----
-1856

onlyif mysql # DIV for integer division: 
query I rowsort label-8093
SELECT 60 DIV 30
----
2

skipif mysql # not compatible
query I rowsort label-8093
SELECT 60 / 30
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8094
SELECT ALL 54 + MIN( NULLIF ( - 41, 41 * 10 ) ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL 54 + MIN ( NULLIF ( - 41, 41 * 10 ) ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8095
SELECT ALL CAST( NULL AS SIGNED ) + 70 * + - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL CAST ( NULL AS INTEGER ) + 70 * + - 1 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 72 * - - 46 AS col2
----
3312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8097
SELECT - COUNT( * ) * CAST( 96 AS SIGNED ) + MIN( DISTINCT - 83 ) * + 49
----
-4163

skipif mysql # not compatible
query I rowsort label-8097
SELECT - COUNT ( * ) * CAST ( 96 AS INTEGER ) + MIN ( DISTINCT - 83 ) * + 49
----
-4163

query I rowsort
SELECT DISTINCT + 19 + - 16 AS col2
----
3

query I rowsort
SELECT DISTINCT + 10 + 51 * 60
----
3070

query I rowsort
SELECT 88 + + + 0 + 3 * + 56 + 94
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT ALL + 92 + 98 + + COUNT( * ) - 50
----
141

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL + 92 + 98 + + COUNT ( * ) - 50
----
141

query I rowsort
SELECT ALL - 38 + - ( - 7 )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8103
SELECT 75 + 82 + 83 + - + 78 DIV + 26
----
237

skipif mysql # not compatible
query I rowsort label-8103
SELECT 75 + 82 + 83 + - + 78 / + 26
----
237

query II rowsort
SELECT 78 * 79 AS col0, 75 + 84 col1
----
6162
159

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT ALL - 93 + 66 * NULLIF ( 61, MAX( 10 ) * - 11 )
----
3933

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL - 93 + 66 * NULLIF ( 61, MAX ( 10 ) * - 11 )
----
3933

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8106
SELECT ALL - CASE + + NULLIF ( + + 40, + + 58 - CAST( + 99 AS DECIMAL ) ) WHEN + 51 THEN 22 * + 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL - CASE + + NULLIF ( + + 40, + + 58 - CAST ( + 99 AS REAL ) ) WHEN + 51 THEN 22 * + 72 END AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 77 - + + 19 AS col0, 96
----
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT - 45 * - 48 + - COUNT( * ) * + 21 + + ( + 90 ) AS col1
----
2229

skipif mysql # not compatible
query I rowsort label-8108
SELECT - 45 * - 48 + - COUNT ( * ) * + 21 + + ( + 90 ) AS col1
----
2229

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT - CASE 3 WHEN + COUNT( * ) / + 76 * 30 THEN 83 END - + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT - CASE 3 WHEN + COUNT ( * ) / + 76 * 30 THEN 83 END - + 84 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT 29 * - - CAST( NULL AS SIGNED ) + + + 13 - + 25 + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT 29 * - - CAST ( NULL AS INTEGER ) + + + 13 - + 25 + + 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT ALL - - CAST( 29 AS SIGNED ) * + - CAST( NULL AS SIGNED ) / 47 + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL - - CAST ( 29 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) / 47 + 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8112
SELECT 6 + + + 51 AS col2, + NULLIF ( + 37, COUNT( * ) )
----
57
37

skipif mysql # not compatible
query II rowsort label-8112
SELECT 6 + + + 51 AS col2, + NULLIF ( + 37, COUNT ( * ) )
----
57
37

query I rowsort
SELECT DISTINCT + ( + - 54 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT - SUM( ( - 31 ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT - SUM ( ( - 31 ) ) AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8115
SELECT - 53 * + 15 * + - CASE + 8 WHEN MAX( DISTINCT 89 ) THEN NULL WHEN COUNT( * ) THEN NULL WHEN + 55 + + 23 * + 26 THEN - COUNT( * ) ELSE CAST( NULL AS DECIMAL ) END * + COUNT( * ) + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT - 53 * + 15 * + - CASE + 8 WHEN MAX ( DISTINCT 89 ) THEN NULL WHEN COUNT ( * ) THEN NULL WHEN + 55 + + 23 * + 26 THEN - COUNT ( * ) ELSE CAST ( NULL AS REAL ) END * + COUNT ( * ) + + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT 75 + + MAX( ALL 42 ) + + 43
----
160

skipif mysql # not compatible
query I rowsort label-8116
SELECT 75 + + MAX ( ALL 42 ) + + 43
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-8117
SELECT DISTINCT ( - 94 ) AS col1, + 84 * COUNT( * ) + + 98 AS col1
----
-94
182

skipif mysql # not compatible
query II rowsort label-8117
SELECT DISTINCT ( - 94 ) AS col1, + 84 * COUNT ( * ) + + 98 AS col1
----
-94
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT - CASE - 9 WHEN - COALESCE ( 32, COUNT( * ) / 96, COUNT( * ) * - COUNT( ALL 36 ) ) THEN + 2 + + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT - CASE - 9 WHEN - COALESCE ( 32, COUNT ( * ) / 96, COUNT ( * ) * - COUNT ( ALL 36 ) ) THEN + 2 + + 54 END
----
NULL

query I rowsort
SELECT DISTINCT - 77 + + NULLIF ( 19, + 1 / 48 + 71 * 37 )
----
-58

query I rowsort
SELECT DISTINCT 32 * - 52
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL - COUNT( * ) + + 82 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL - COUNT ( * ) + + 82 AS col0
----
81

query I rowsort
SELECT ALL 67 * + - 1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT 50 + 12 * - 25 + - + COUNT( * ) + + 48 + - SUM( 97 )
----
-300

skipif mysql # not compatible
query I rowsort label-8123
SELECT 50 + 12 * - 25 + - + COUNT ( * ) + + 48 + - SUM ( 97 )
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL ( + + 18 ) + + 53 + CASE + COUNT( * ) WHEN 56 + - COUNT( * ) THEN 98 * + 76 ELSE 20 END AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL ( + + 18 ) + + 53 + CASE + COUNT ( * ) WHEN 56 + - COUNT ( * ) THEN 98 * + 76 ELSE 20 END AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8125
SELECT + 67 AS col0, + 10 + + + 37 + - SUM( - - 92 ) * COUNT( * ) AS col0
----
67
-45

skipif mysql # not compatible
query II rowsort label-8125
SELECT + 67 AS col0, + 10 + + + 37 + - SUM ( - - 92 ) * COUNT ( * ) AS col0
----
67
-45

query I rowsort
SELECT 63 * 40 AS col0
----
2520

query I rowsort
SELECT ALL 13 + - 89 + 83 + + 58 * 1 AS col0
----
65

query I rowsort
SELECT ALL 31 * - - 31
----
961

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT 40 * + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8129
SELECT 40 * + COUNT ( * ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT - 6 * - MIN( ALL - + 46 ) - + 47 + - 49 * 16 AS col1
----
-1107

skipif mysql # not compatible
query I rowsort label-8130
SELECT - 6 * - MIN ( ALL - + 46 ) - + 47 + - 49 * 16 AS col1
----
-1107

query I rowsort
SELECT DISTINCT 24 + 7 col2
----
31

query I rowsort
SELECT ALL 1 + 29 * + 62 - + 70 AS col0
----
1729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8133
SELECT ( - - COALESCE ( + - 14, + - 42 DIV + 17 DIV + 24 + + 50 ) ) + 36 DIV SUM( 92 )
----
-14

skipif mysql # not compatible
query I rowsort label-8133
SELECT ( - - COALESCE ( + - 14, + - 42 / + 17 / + 24 + + 50 ) ) + 36 / SUM ( 92 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT COUNT( * ) * + 2 - + 65
----
-63

skipif mysql # not compatible
query I rowsort label-8134
SELECT COUNT ( * ) * + 2 - + 65
----
-63

query I rowsort
SELECT ALL - 34 * + 63
----
-2142

query II rowsort
SELECT 87, + ( - - 51 ) AS col1
----
87
51

query I rowsort
SELECT ALL 65 + + 30
----
95

query I rowsort
SELECT ALL 23 - - 81 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT + COUNT( - - 67 )
----
1

skipif mysql # not compatible
query I rowsort label-8139
SELECT + COUNT ( - - 67 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT ALL - MAX( DISTINCT - 92 ) - + 11 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL - MAX ( DISTINCT - 92 ) - + 11 AS col2
----
81

query I rowsort
SELECT 4 * + 80 AS col2
----
320

query I rowsort
SELECT ALL 51 * 57 * + + 30 AS col1
----
87210

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL - - ( - 58 ) * + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL - - ( - 58 ) * + COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT ALL - + MAX( - + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL - + MAX ( - + 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT ALL - - CASE - 83 WHEN + SUM( ALL + 40 ) THEN 95 END - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL - - CASE - 83 WHEN + SUM ( ALL + 40 ) THEN 95 END - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 55 * + 76
----
4180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8147
SELECT ALL ( - - CAST( + COUNT( * ) AS SIGNED ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL ( - - CAST ( + COUNT ( * ) AS INTEGER ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT SUM( + - 72 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT SUM ( + - 72 ) AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8149
SELECT ALL - 83 * CAST( CAST( + - COUNT( * ) AS DECIMAL ) AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL - 83 * CAST ( CAST ( + - COUNT ( * ) AS REAL ) AS INTEGER )
----
83

query I rowsort
SELECT 0 + + 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT - CASE + 98 WHEN + 6 / COUNT( * ) + - - 81 THEN - 93 ELSE 76 * + COUNT( * ) END
----
-76

skipif mysql # not compatible
query I rowsort label-8151
SELECT - CASE + 98 WHEN + 6 / COUNT ( * ) + - - 81 THEN - 93 ELSE 76 * + COUNT ( * ) END
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8152
SELECT ALL - 39 DIV - + 2 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL - 39 / - + 2 AS col0
----
19

query I rowsort
SELECT - 50 * 15 + + 38 * - 60 AS col0
----
-3030

query I rowsort
SELECT 89 * - 34
----
-3026

query I rowsort
SELECT + CASE + - 4 WHEN 67 * 1 THEN + 89 ELSE + 51 END
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL + + 46 + - - 82 * + + 71 * SUM( 77 )
----
448340

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL + + 46 + - - 82 * + + 71 * SUM ( 77 )
----
448340

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT - + 4 + + + SUM( - 54 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT - + 4 + + + SUM ( - 54 ) AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8158
SELECT - 32 + - 43 + + 35 * + CAST( NULL AS SIGNED ) + 92 + - 64 * - 61 / 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8158
SELECT - 32 + - 43 + + 35 * + CAST ( NULL AS INTEGER ) + 92 + - 64 * - 61 / 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8159
SELECT - COUNT( * ) DIV ( 93 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8159
SELECT - COUNT ( * ) / ( 93 ) AS col0
----
0

query I rowsort
SELECT ALL 19 + - - 39 AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8161
SELECT - NULLIF ( 68, 70 ) * - 59 * + SUM( DISTINCT - - NULLIF ( CAST( NULL AS SIGNED ), + 97 - - 20 ) ) - + MIN( DISTINCT 66 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT - NULLIF ( 68, 70 ) * - 59 * + SUM ( DISTINCT - - NULLIF ( CAST ( NULL AS INTEGER ), + 97 - - 20 ) ) - + MIN ( DISTINCT 66 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT ALL - 10 + + - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL - 10 + + - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT - 96 + COUNT( * ) + - 31
----
-126

skipif mysql # not compatible
query I rowsort label-8163
SELECT - 96 + COUNT ( * ) + - 31
----
-126

query I rowsort
SELECT + 1 - 77 AS col1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT + ( + - 33 ) - + 34 + + 43 DIV + - 52
----
-67

skipif mysql # not compatible
query I rowsort label-8165
SELECT + ( + - 33 ) - + 34 + + 43 / + - 52
----
-67

query I rowsort
SELECT + 54 * + NULLIF ( - ( + 37 ), - 86 ) AS col1
----
-1998

query I rowsort
SELECT - 65 * + 57
----
-3705

onlyif mysql # aggregate syntax: 
query II rowsort label-8168
SELECT ALL + 4 AS col2, - COUNT( * )
----
4
-1

skipif mysql # not compatible
query II rowsort label-8168
SELECT ALL + 4 AS col2, - COUNT ( * )
----
4
-1

query I rowsort
SELECT ALL 77 * - + 68 AS col2
----
-5236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) - + + 22 / 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) - + + 22 / 82
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-8171
SELECT ALL + 49 AS col1, SUM( + 56 ) * - + 13 col0, + 35 + + 57
----
49
-728
92

skipif mysql # not compatible
query III rowsort label-8171
SELECT ALL + 49 AS col1, SUM ( + 56 ) * - + 13 col0, + 35 + + 57
----
49
-728
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT + COUNT( * ) + - CASE - + NULLIF ( - AVG ( DISTINCT + - ( 85 ) ), - 26 ) WHEN 40 / + 15 + 29 THEN - COUNT( * ) * - 10 WHEN 84 * - COUNT( + 49 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT + COUNT ( * ) + - CASE - + NULLIF ( - AVG ( DISTINCT + - ( 85 ) ), - 26 ) WHEN 40 / + 15 + 29 THEN - COUNT ( * ) * - 10 WHEN 84 * - COUNT ( + 49 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 8 * + 84 - - ( - - 81 ) + + 63 * 7
----
1194

query I rowsort
SELECT COALESCE ( + 65, + 27 + + + 5, + + 29 + - COALESCE ( 27, 49 + 52 * - 6 ) )
----
65

query I rowsort
SELECT + COALESCE ( - 0, + 16 )
----
0

query I rowsort
SELECT + - ( 62 ) + + 14 + + + 70 * 18 col2
----
1212

query II rowsort
SELECT ALL + + 49 AS col2, 63 AS col1
----
49
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT + SUM( - + 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-8178
SELECT + SUM ( - + 75 )
----
-75

query II rowsort
SELECT 88 AS col1, - 88 * 30 AS col2
----
88
-2640

query I rowsort
SELECT + 28 + + 39
----
67

query II rowsort
SELECT ALL + 86, - 59 - + - 17 * - 48 AS col1
----
86
-875

onlyif mysql # aggregate syntax: 
query II rowsort label-8182
SELECT ALL + 45 AS col0, - 56 * + SUM( DISTINCT + 1 ) col2
----
45
-56

skipif mysql # not compatible
query II rowsort label-8182
SELECT ALL + 45 AS col0, - 56 * + SUM ( DISTINCT + 1 ) col2
----
45
-56

query I rowsort
SELECT ALL 29 / 29 / CASE WHEN NOT NULL IS NULL THEN + 70 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8184
SELECT DISTINCT + + COUNT( * ) AS col0, - CAST( + - 82 AS SIGNED )
----
1
82

skipif mysql # not compatible
query II rowsort label-8184
SELECT DISTINCT + + COUNT ( * ) AS col0, - CAST ( + - 82 AS INTEGER )
----
1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT + + COALESCE ( ( + 20 ), + 83, - 88 * + + 46 + + COUNT( 92 - + 1 ) * 47 ) - 77
----
-57

skipif mysql # not compatible
query I rowsort label-8185
SELECT + + COALESCE ( ( + 20 ), + 83, - 88 * + + 46 + + COUNT ( 92 - + 1 ) * 47 ) - 77
----
-57

query I rowsort
SELECT DISTINCT + 1 * - + 27 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT 37 * - - MIN( DISTINCT - 20 ) * + 64 * + 80 + 17 * 16
----
-3788528

skipif mysql # not compatible
query I rowsort label-8187
SELECT 37 * - - MIN ( DISTINCT - 20 ) * + 64 * + 80 + 17 * 16
----
-3788528

query I rowsort
SELECT - - 32 - 76 + + 95 / - CASE + + 36 WHEN + 95 + - 11 THEN ( + 51 ) * - 44 + - 86 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT + + 63 DIV + 87 * - - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8189
SELECT + + 63 / + 87 * - - 79 AS col1
----
0

query I rowsort
SELECT ALL - 52 + ( + 69 )
----
17

query I rowsort
SELECT ALL - 93 * 20 + + - 15 AS col0
----
-1875

onlyif mysql # aggregate syntax: 
query II rowsort label-8192
SELECT - - 82 * - COUNT( * ) AS col1, 95 + + - 60 + 39
----
-82
74

skipif mysql # not compatible
query II rowsort label-8192
SELECT - - 82 * - COUNT ( * ) AS col1, 95 + + - 60 + 39
----
-82
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT DISTINCT + COUNT( DISTINCT - - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT + COUNT ( DISTINCT - - 83 )
----
1

query I rowsort
SELECT ALL + 2 + 58
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8195
SELECT + 71 + CASE - - 91 WHEN 75 + - + COUNT( * ) * + 75 THEN + CAST( 46 AS SIGNED ) ELSE - 27 + + 46 END
----
90

skipif mysql # not compatible
query I rowsort label-8195
SELECT + 71 + CASE - - 91 WHEN 75 + - + COUNT ( * ) * + 75 THEN + CAST ( 46 AS INTEGER ) ELSE - 27 + + 46 END
----
90

query I rowsort
SELECT ALL 40 + + + 28 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT - CASE - 9 WHEN - 65 THEN - NULLIF ( 56, - 46 * + 56 ) * + COUNT( * ) + ( + ( - 62 ) ) * 98 WHEN COUNT( 63 ) THEN NULL END + + 56 * - NULLIF ( COUNT( * ) * - 87 + - ( 30 ) * + 55, - 7 * - 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT - CASE - 9 WHEN - 65 THEN - NULLIF ( 56, - 46 * + 56 ) * + COUNT ( * ) + ( + ( - 62 ) ) * 98 WHEN COUNT ( 63 ) THEN NULL END + + 56 * - NULLIF ( COUNT ( * ) * - 87 + - ( 30 ) * + 55, - 7 * - 83 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8198
SELECT ALL 54 + + NULLIF ( - - 48, + 21 / 92 + + ( 12 ) * COALESCE ( 9, + COALESCE ( NULLIF ( + 12, - COUNT( * ) ), 25 + + CAST( + ( ( - 75 ) ) - 6 AS SIGNED ) * 14 ) - + 40 ) + - SUM( - 14 ) ) col0
----
102

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL 54 + + NULLIF ( - - 48, + 21 / 92 + + ( 12 ) * COALESCE ( 9, + COALESCE ( NULLIF ( + 12, - COUNT ( * ) ), 25 + + CAST ( + ( ( - 75 ) ) - 6 AS INTEGER ) * 14 ) - + 40 ) + - SUM ( - 14 ) ) col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT ALL + 68 + + 98 * + MIN( + 69 ) + 1 + + 38 - - COUNT( * ) * COUNT( * )
----
6870

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL + 68 + + 98 * + MIN ( + 69 ) + 1 + + 38 - - COUNT ( * ) * COUNT ( * )
----
6870

query II rowsort
SELECT ALL - 5 + - 2, + 77 AS col1
----
-7
77

query II rowsort
SELECT + 96 * - 26, + 27 AS col1
----
-2496
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8202
SELECT - CAST( + 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-8202
SELECT - CAST ( + 60 AS INTEGER )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT DISTINCT + 60 + + + ( - NULLIF ( + 89, - NULLIF ( COUNT( * ), + 71 * 89 ) ) ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT + 60 + + + ( - NULLIF ( + 89, - NULLIF ( COUNT ( * ), + 71 * 89 ) ) ) col1
----
-29

query I rowsort
SELECT ALL - 6 + - + 24 + COALESCE ( 72, 36 * - + 31 * + - 67, 1 * 50 ) + 82 * 16
----
1354

query II rowsort
SELECT ALL ( + + 22 ), ( 62 ) AS col0
----
22
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT ALL NULLIF ( - 66, + ( CAST( NULL AS SIGNED ) ) )
----
-66

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL NULLIF ( - 66, + ( CAST ( NULL AS INTEGER ) ) )
----
-66

query I rowsort
SELECT - 59 + 73
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8208
SELECT ALL 35 DIV - 87 - + 39
----
-39

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL 35 / - 87 - + 39
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8209
SELECT ALL + CAST( - ( - CASE - MIN( - ( + 24 ) ) WHEN + 48 THEN 22 ELSE NULL END ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL + CAST ( - ( - CASE - MIN ( - ( + 24 ) ) WHEN + 48 THEN 22 ELSE NULL END ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT - CAST( NULL AS SIGNED ) * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT - CAST ( NULL AS INTEGER ) * - 88
----
NULL

query I rowsort
SELECT ALL + 34 * + - 88
----
-2992

query I rowsort
SELECT 43 * + - 40 - - 42
----
-1678

query I rowsort
SELECT - 12 * - 49
----
588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8214
SELECT + ( + COUNT( + + 34 ) ) DIV 56 DIV - + 50 + - SUM( + 87 ) - COUNT( * ) * + 4 - + 52
----
-143

skipif mysql # not compatible
query I rowsort label-8214
SELECT + ( + COUNT ( + + 34 ) ) / 56 / - + 50 + - SUM ( + 87 ) - COUNT ( * ) * + 4 - + 52
----
-143

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8215
SELECT - CAST( NULL AS DECIMAL ) * + CAST( - + 98 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT - CAST ( NULL AS REAL ) * + CAST ( - + 98 AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + 6 + - ( ( + - 25 ) ) + 79 - 74 * - 17 AS col1
----
1368

query I rowsort
SELECT - CASE - NULLIF ( - 91, - 5 ) WHEN + 63 / + 59 - 87 * 98 THEN + 53 END * 41 AS col1
----
NULL

query I rowsort
SELECT ALL + - ( ( + 31 ) )
----
-31

query I rowsort
SELECT - 25 + 82 - + - 66 AS col1
----
123

query I rowsort
SELECT DISTINCT + + 95 AS col1
----
95

query I rowsort
SELECT - + 27 * - 98
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT DISTINCT + COUNT( * ) * 10 * + 95 * + + 99 * - NULLIF ( - 95, 1 )
----
8934750

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT + COUNT ( * ) * 10 * + 95 * + + 99 * - NULLIF ( - 95, 1 )
----
8934750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT ALL - 51 * + COALESCE ( - COUNT( DISTINCT + - 14 ), + - 36, + 69 * + MAX( + NULLIF ( + CAST( NULL AS SIGNED ), 50 + 36 ) ) - CASE - CASE 63 WHEN + 99 * + 67 THEN 25 + 54 * ( - 31 ) WHEN 49 * - NULLIF ( + 26, 26 * 49 ) THEN + NULLIF ( + COUNT( * ), 42 * - 99 + 23 * - ( 44 / 64 ) ) * + CASE - 22 WHEN - 51 THEN 13 / + 87 ELSE 79 + - 1 * 0 END ELSE + 15 END WHEN ( - 65 ) * + 68 THEN NULL WHEN SUM( ALL - 43 ) + 9 THEN - 89 + 89 END - COALESCE ( 64, + 72 + 4 * + 15 ) ) * ( + MIN( ALL + 69 ) ) + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL - 51 * + COALESCE ( - COUNT ( DISTINCT + - 14 ), + - 36, + 69 * + MAX ( + NULLIF ( + CAST ( NULL AS INTEGER ), 50 + 36 ) ) - CASE - CASE 63 WHEN + 99 * + 67 THEN 25 + 54 * ( - 31 ) WHEN 49 * - NULLIF ( + 26, 26 * 49 ) THEN + NULLIF ( + COUNT ( * ), 42 * - 99 + 23 * - ( 44 / 64 ) ) * + CASE - 22 WHEN - 51 THEN 13 / + 87 ELSE 79 + - 1 * 0 END ELSE + 15 END WHEN ( - 65 ) * + 68 THEN NULL WHEN SUM ( ALL - 43 ) + 9 THEN - 89 + 89 END - COALESCE ( 64, + 72 + 4 * + 15 ) ) * ( + MIN ( ALL + 69 ) ) + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT - - 83 + + COUNT( * ) * + 3 + ( - 86 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8224
SELECT - - 83 + + COUNT ( * ) * + 3 + ( - 86 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT CASE + 78 WHEN - 73 + 2 THEN + ( + + COUNT( * ) ) WHEN - + MAX( ALL + 63 ) THEN + NULLIF ( 45, 13 * - 71 ) * 72 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8225
SELECT CASE + 78 WHEN - 73 + 2 THEN + ( + + COUNT ( * ) ) WHEN - + MAX ( ALL + 63 ) THEN + NULLIF ( 45, 13 * - 71 ) * 72 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL + SUM( + 5 ) * 17 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + SUM ( + 5 ) * 17 AS col0
----
85

query I rowsort
SELECT - + 66 * + 15 * + 87
----
-86130

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - + COUNT( * ) * - 72 + - + 61
----
11

skipif mysql # not compatible
query I rowsort label-8228
SELECT - + COUNT ( * ) * - 72 + - + 61
----
11

query I rowsort
SELECT DISTINCT 45 * - - 75
----
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT + 89 + 78 * - 76 * + COALESCE ( 68, + + COUNT( * ), COUNT( * ) * 51 ) * + 90 AS col1
----
-36279271

skipif mysql # not compatible
query I rowsort label-8230
SELECT + 89 + 78 * - 76 * + COALESCE ( 68, + + COUNT ( * ), COUNT ( * ) * 51 ) * + 90 AS col1
----
-36279271

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT ALL + + COUNT( * ) * - - COUNT( * ) + + NULLIF ( - COUNT( * ), - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + + COUNT ( * ) * - - COUNT ( * ) + + NULLIF ( - COUNT ( * ), - 65 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT DISTINCT + COALESCE ( 22, 59 - + NULLIF ( - CASE - COUNT( * ) WHEN COUNT( * ) + - 85 THEN MIN( ALL + 32 ) * + COALESCE ( + 44 + 69, - 48, ( CAST( 27 AS SIGNED ) ) ) ELSE + 51 END, 7 * ( 82 ) ), - COUNT( * ), - 63 + + COUNT( * ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT + COALESCE ( 22, 59 - + NULLIF ( - CASE - COUNT ( * ) WHEN COUNT ( * ) + - 85 THEN MIN ( ALL + 32 ) * + COALESCE ( + 44 + 69, - 48, ( CAST ( 27 AS INTEGER ) ) ) ELSE + 51 END, 7 * ( 82 ) ), - COUNT ( * ), - 63 + + COUNT ( * ) ) AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8233
SELECT ALL + 50 * COUNT( * ) / 4 - + 83 + - CASE - - CAST( NULL AS SIGNED ) WHEN - + 13 THEN COUNT( * ) * - 69 WHEN + COUNT( * ) * - 63 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL + 50 * COUNT ( * ) / 4 - + 83 + - CASE - - CAST ( NULL AS INTEGER ) WHEN - + 13 THEN COUNT ( * ) * - 69 WHEN + COUNT ( * ) * - 63 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8234
SELECT DISTINCT + 14 * + COUNT( * ) + + CAST( NULL AS SIGNED ) + ( - - CAST( - AVG ( ALL - CASE 76 WHEN 89 THEN NULL ELSE 62 END ) AS SIGNED ) ) * 54 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT + 14 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + ( - - CAST ( - AVG ( ALL - CASE 76 WHEN 89 THEN NULL ELSE 62 END ) AS INTEGER ) ) * 54 + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 70 + + 75 col1
----
145

query II rowsort
SELECT 89, 69 AS col2
----
89
69

query I rowsort
SELECT ALL 90 * 98 * + - 35 col0
----
-308700

query I rowsort
SELECT 43 + - - 77
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL 8 * + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL 8 * + COUNT ( * ) AS col2
----
8

query II rowsort
SELECT - 60 AS col2, 7 AS col1
----
-60
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT ALL 84 - 37 + - - 12 + - - 64 * - CAST( + 71 AS SIGNED ) + - - 72 * 60 AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL 84 - 37 + - - 12 + - - 64 * - CAST ( + 71 AS INTEGER ) + - - 72 * 60 AS col1
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-8242
SELECT DISTINCT 2 * + - 20 DIV - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT 2 * + - 20 / - 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ( - 47 ) - + + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-8243
SELECT ( - 47 ) - + + COUNT ( * ) AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8244
SELECT ALL 48 - - 24 * - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL 48 - - 24 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT ALL 28 AS col2, 12 + 86 AS col0
----
28
98

query II rowsort
SELECT 3, + 49 AS col1
----
3
49

query I rowsort
SELECT 4 * 77
----
308

onlyif mysql # aggregate syntax: 
query II rowsort label-8248
SELECT COUNT( + 73 ) + - 49 col1, - ( + ( 60 ) ) AS col0
----
-48
-60

skipif mysql # not compatible
query II rowsort label-8248
SELECT COUNT ( + 73 ) + - 49 col1, - ( + ( 60 ) ) AS col0
----
-48
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT 13 - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-8249
SELECT 13 - COUNT ( * )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8250
SELECT CAST( - - ( - COUNT( * ) ) AS SIGNED ) + + - COUNT( * ) + + - SUM( DISTINCT + COALESCE ( - + 14, + 51 + COALESCE ( 24, - 32 * + 90 + 11, 0 + + ( 32 ), - 87 * 16 + 92 ) ) ) * + 28 AS col0
----
390

skipif mysql # not compatible
query I rowsort label-8250
SELECT CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) + + - COUNT ( * ) + + - SUM ( DISTINCT + COALESCE ( - + 14, + 51 + COALESCE ( 24, - 32 * + 90 + 11, 0 + + ( 32 ), - 87 * 16 + 92 ) ) ) * + 28 AS col0
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT 23 - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8251
SELECT 23 - COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL + ( COUNT( * ) ) * + - 36 * + 62 * + - 78 col1
----
174096

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL + ( COUNT ( * ) ) * + - 36 * + 62 * + - 78 col1
----
174096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8253
SELECT DISTINCT MAX( ALL - + ( ( + + 90 ) ) ) / + COALESCE ( - 81, COUNT( * ) ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT MAX ( ALL - + ( ( + + 90 ) ) ) / + COALESCE ( - 81, COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8254
SELECT - 48 * - COALESCE ( - + 45, - 59 + 77 DIV 82 * + + SUM( ALL 19 ) * 12 + 81 ) + 7
----
-2153

skipif mysql # not compatible
query I rowsort label-8254
SELECT - 48 * - COALESCE ( - + 45, - 59 + 77 / 82 * + + SUM ( ALL 19 ) * 12 + 81 ) + 7
----
-2153

query I rowsort
SELECT DISTINCT - - 77 * 5
----
385

query I rowsort
SELECT ALL - - 52 + - + 47 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT 96 * + 8 + + COUNT( 39 ) AS col1
----
769

skipif mysql # not compatible
query I rowsort label-8257
SELECT 96 * + 8 + + COUNT ( 39 ) AS col1
----
769

query I rowsort
SELECT 49 * + 37 * - 98 AS col0
----
-177674

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8259
SELECT DISTINCT - + 2 + - - ( - - CAST( - - 18 AS SIGNED ) ) + + 94 DIV + - 82 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT - + 2 + - - ( - - CAST ( - - 18 AS INTEGER ) ) + + 94 / + - 82 AS col1
----
15

query II rowsort
SELECT 95 * - - 78 * 63, 58 AS col0
----
466830
58

query I rowsort
SELECT - 77 + + NULLIF ( - 5, - ( 15 ) ) + - 4 * + 40 AS col0
----
-242

onlyif mysql # DIV for integer division: 
query I rowsort label-8262
SELECT ALL - 51 DIV + - 86 + + 76
----
76

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL - 51 / + - 86 + + 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT DISTINCT - + COUNT( ALL 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-8263
SELECT DISTINCT - + COUNT ( ALL 30 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL - + 27 + + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL - + 27 + + COUNT ( * )
----
-26

query II rowsort
SELECT ALL - + 70 AS col1, + 31
----
-70
31

query I rowsort
SELECT - - 39 * - 39 + 97
----
-1424

query I rowsort
SELECT ALL - + 13 AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8268
SELECT - COUNT( * ) * 46 * - + 15 + + - NULLIF ( - - ( 83 ), + + CASE + ( 97 ) WHEN COUNT( * ) * CAST( - 31 AS SIGNED ) + 76 * 16 THEN 81 + - COUNT( ALL - 94 + - ( - 64 + + 86 ) ) ELSE NULL END ) AS col2
----
607

skipif mysql # not compatible
query I rowsort label-8268
SELECT - COUNT ( * ) * 46 * - + 15 + + - NULLIF ( - - ( 83 ), + + CASE + ( 97 ) WHEN COUNT ( * ) * CAST ( - 31 AS INTEGER ) + 76 * 16 THEN 81 + - COUNT ( ALL - 94 + - ( - 64 + + 86 ) ) ELSE NULL END ) AS col2
----
607

query I rowsort
SELECT ALL - 11 * + + 43 * + 71 + - 45 AS col0
----
-33628

query I rowsort
SELECT ALL + 0 * 24
----
0

query I rowsort
SELECT 54 + 42 AS col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8272
SELECT 98 - + COUNT( * ) DIV 77 - + 96 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8272
SELECT 98 - + COUNT ( * ) / 77 - + 96 AS col2
----
2

query I rowsort
SELECT 44 + + 65
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL + NULLIF ( - 76, - 1 + + 87 * 58 * + COUNT( * ) ) - - COUNT( * ) + 23 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL + NULLIF ( - 76, - 1 + + 87 * 58 * + COUNT ( * ) ) - - COUNT ( * ) + 23 AS col2
----
-52

query I rowsort
SELECT ALL 67 * - + 73
----
-4891

query I rowsort
SELECT 59 * - 99 AS col1
----
-5841

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT DISTINCT - 60 * CASE - - CASE - 76 WHEN + 46 THEN - 65 END WHEN - + AVG ( ALL + - 26 ) THEN + 40 + 49 / - ( 18 * + COUNT( * ) ) WHEN 59 THEN 90 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT - 60 * CASE - - CASE - 76 WHEN + 46 THEN - 65 END WHEN - + AVG ( ALL + - 26 ) THEN + 40 + 49 / - ( 18 * + COUNT ( * ) ) WHEN 59 THEN 90 END AS col2
----
NULL

query II rowsort
SELECT 78 + + 27 + + - 51 * - + 16 AS col1, ( + + 63 ) * ( + 55 ) + + 19 * - 86
----
921
1831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT ALL 54 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL 54 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8280
SELECT ALL 1 DIV SUM( ALL 41 )
----
0

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL 1 / SUM ( ALL 41 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8281
SELECT CASE - AVG ( DISTINCT 73 ) WHEN - - COUNT( * ) * 46 + - + CAST( - + CAST( + 94 AS SIGNED ) AS SIGNED ) THEN ( - 19 ) WHEN 74 THEN 54 * 59 ELSE + 86 - 75 END * - 26
----
-286

skipif mysql # not compatible
query I rowsort label-8281
SELECT CASE - AVG ( DISTINCT 73 ) WHEN - - COUNT ( * ) * 46 + - + CAST ( - + CAST ( + 94 AS INTEGER ) AS INTEGER ) THEN ( - 19 ) WHEN 74 THEN 54 * 59 ELSE + 86 - 75 END * - 26
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT COUNT( * ) + - 95 col0
----
-94

skipif mysql # not compatible
query I rowsort label-8282
SELECT COUNT ( * ) + - 95 col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8283
SELECT DISTINCT NULLIF ( COUNT( - - 4 ), + 97 / CASE + NULLIF ( 17, - MIN( - CAST( NULL AS SIGNED ) ) * 49 ) WHEN 98 THEN + 41 END ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT NULLIF ( COUNT ( - - 4 ), + 97 / CASE + NULLIF ( 17, - MIN ( - CAST ( NULL AS INTEGER ) ) * 49 ) WHEN 98 THEN + 41 END ) * COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT 40 col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL COUNT( * ) + ( + + COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL COUNT ( * ) + ( + + COUNT ( * ) )
----
2

query I rowsort
SELECT DISTINCT 93 * 76
----
7068

query I rowsort
SELECT DISTINCT 52 + - 37 + - 28
----
-13

query I rowsort
SELECT 33 * + 92
----
3036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8289
SELECT ALL - 13 * 8 + + 46 + + ( + ( - COALESCE ( - 98, + - 88 DIV + 17 DIV NULLIF ( 79 * - NULLIF ( AVG ( ALL 7 ) * 15, 0 * SUM( 47 * + 53 ) ), - COUNT( * ) + ( - 95 ) ) ) ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL - 13 * 8 + + 46 + + ( + ( - COALESCE ( - 98, + - 88 / + 17 / NULLIF ( 79 * - NULLIF ( AVG ( ALL 7 ) * 15, 0 * SUM ( 47 * + 53 ) ), - COUNT ( * ) + ( - 95 ) ) ) ) ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT COUNT( * ) * 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-8290
SELECT COUNT ( * ) * 40 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8291
SELECT - COUNT( * ) DIV + 48 + + MIN( - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-8291
SELECT - COUNT ( * ) / + 48 + + MIN ( - 53 )
----
-53

query I rowsort
SELECT - - 49 * 76 - - 39 AS col0
----
3763

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8293
SELECT DISTINCT - 62 * + - 88, CASE + - 93 WHEN 74 THEN COUNT( * ) + - 72 WHEN COUNT( * ) + 37 THEN NULL WHEN - COUNT( * ) * 80 THEN COUNT( * ) DIV - 48 - COUNT( * ) ELSE 96 * - 74 END * 85 AS col1
----
5456
-603840

skipif mysql # not compatible
query II rowsort label-8293
SELECT DISTINCT - 62 * + - 88, CASE + - 93 WHEN 74 THEN COUNT ( * ) + - 72 WHEN COUNT ( * ) + 37 THEN NULL WHEN - COUNT ( * ) * 80 THEN COUNT ( * ) / - 48 - COUNT ( * ) ELSE 96 * - 74 END * 85 AS col1
----
5456
-603840

query I rowsort
SELECT DISTINCT + + 85 col0
----
85

query I rowsort
SELECT - ( + 85 ) * - 2 * + 71 + + 3 + 76
----
12149

query I rowsort
SELECT COALESCE ( + - 10, ( - 24 ) ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-8297
SELECT ALL - COUNT( * ) * - 76 - + - 33 - - 92 AS col1, 48 * 62 * - 16 AS col0
----
201
-47616

skipif mysql # not compatible
query II rowsort label-8297
SELECT ALL - COUNT ( * ) * - 76 - + - 33 - - 92 AS col1, 48 * 62 * - 16 AS col0
----
201
-47616

query I rowsort
SELECT - 17 * - 49 * - 66 * + - 88
----
4838064

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT DISTINCT + 1 DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT + 1 / + 44
----
0

query II rowsort
SELECT + 5 AS col2, + 75 col0
----
5
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8301
SELECT DISTINCT - COALESCE ( + + 75, + 66, + 2 - - - 85 + - 63 ) * - + CAST( NULL AS SIGNED ) / ( SUM( + 86 ) ) + + CAST( NULL AS SIGNED ) * 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT - COALESCE ( + + 75, + 66, + 2 - - - 85 + - 63 ) * - + CAST ( NULL AS INTEGER ) / ( SUM ( + 86 ) ) + + CAST ( NULL AS INTEGER ) * 66 AS col2
----
NULL

query I rowsort
SELECT ALL ( - 43 ) col0
----
-43

query I rowsort
SELECT ALL 13 * 10 * + 74 AS col0
----
9620

query I rowsort
SELECT ALL NULLIF ( ( + - 48 ), - 96 - 70 )
----
-48

query I rowsort
SELECT - 37 * - ( - 69 ) AS col0
----
-2553

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ALL CASE COUNT( * ) WHEN + - 44 * + NULLIF ( + 29, - COUNT( * ) ) THEN 85 WHEN 48 * + - 2 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL CASE COUNT ( * ) WHEN + - 44 * + NULLIF ( + 29, - COUNT ( * ) ) THEN 85 WHEN 48 * + - 2 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT - 83 + 20 * - 3, 98 AS col2
----
-143
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8308
SELECT - 1 DIV + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8308
SELECT - 1 / + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT - COUNT( * ) * + - 41
----
41

skipif mysql # not compatible
query I rowsort label-8309
SELECT - COUNT ( * ) * + - 41
----
41

query I rowsort
SELECT - 53 - - 37 * - + 95
----
-3568

query I rowsort
SELECT ALL + 57 + + 7 * 9 AS col0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-8312
SELECT + 29 + - 97 DIV + 81 - - 75 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-8312
SELECT + 29 + - 97 / + 81 - - 75 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT ALL COUNT( * ) + 8 + - 30 + - 30 + + - 9 * + - 22 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL COUNT ( * ) + 8 + - 30 + - 30 + + - 9 * + - 22 AS col2
----
147

query I rowsort
SELECT + 5 + 1 - + ( - + 47 ) AS col2
----
53

query I rowsort
SELECT ALL - 85 + 81 + + 79 * + - 51 + + + 23 AS col1
----
-4010

onlyif mysql # aggregate syntax: 
query III rowsort label-8316
SELECT DISTINCT 99 col2, - NULLIF ( 63, + - COUNT( * ) ) * 96 * + 44 + + + 42 * - + COUNT( * ) AS col2, + 43
----
99
-266154
43

skipif mysql # not compatible
query III rowsort label-8316
SELECT DISTINCT 99 col2, - NULLIF ( 63, + - COUNT ( * ) ) * 96 * + 44 + + + 42 * - + COUNT ( * ) AS col2, + 43
----
99
-266154
43

query I rowsort
SELECT ALL 87 + 36 + - - 21 + - + 29 * - - 78 * - 43 + - - 87
----
97497

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT - 49 + - 69 + + 74 + + ( - MAX( DISTINCT - - 88 ) ) + + 48 * COALESCE ( - + 32, + 20, 11 ) - 90 * 48 * + 18
----
-79428

skipif mysql # not compatible
query I rowsort label-8318
SELECT - 49 + - 69 + + 74 + + ( - MAX ( DISTINCT - - 88 ) ) + + 48 * COALESCE ( - + 32, + 20, 11 ) - 90 * 48 * + 18
----
-79428

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT - CASE + 86 WHEN + COUNT( * ) THEN NULL ELSE + + COUNT( * ) * - 75 + - COUNT( * ) * - + 86 END
----
-11

skipif mysql # not compatible
query I rowsort label-8319
SELECT - CASE + 86 WHEN + COUNT ( * ) THEN NULL ELSE + + COUNT ( * ) * - 75 + - COUNT ( * ) * - + 86 END
----
-11

query I rowsort
SELECT + + 90 - - 10
----
100

query I rowsort
SELECT ALL + 85 * + + 78 AS col1
----
6630

onlyif mysql # aggregate syntax: 
query II rowsort label-8322
SELECT 78, CASE - - COUNT( * ) WHEN + 91 THEN + 28 * + COUNT( ALL + 85 ) - + NULLIF ( + 7, + + 92 ) + 8 * - 87 END col2
----
78
NULL

skipif mysql # not compatible
query II rowsort label-8322
SELECT 78, CASE - - COUNT ( * ) WHEN + 91 THEN + 28 * + COUNT ( ALL + 85 ) - + NULLIF ( + 7, + + 92 ) + 8 * - 87 END col2
----
78
NULL

query I rowsort
SELECT DISTINCT 11 + - 33
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT + - COALESCE ( - 14, + + SUM( + ( - - 91 ) ) + 67, + + 46 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-8324
SELECT + - COALESCE ( - 14, + + SUM ( + ( - - 91 ) ) + 67, + + 46 ) AS col0
----
14

query I rowsort
SELECT ALL 25 * - + 10
----
-250

onlyif mysql # DIV for integer division: 
query I rowsort label-8326
SELECT ALL 85 DIV - - 80 + + NULLIF ( + 21, ( 8 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL 85 / - - 80 + + NULLIF ( + 21, ( 8 ) ) AS col0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT ALL 91 * 71 DIV - - 68 + - 80
----
15

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL 91 * 71 / - - 68 + - 80
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT - + COUNT( * ) * - 64 * - 57 * 74 * - 10 + + - COALESCE ( + 69, - 74 ) AS col0
----
2699451

skipif mysql # not compatible
query I rowsort label-8328
SELECT - + COUNT ( * ) * - 64 * - 57 * 74 * - 10 + + - COALESCE ( + 69, - 74 ) AS col0
----
2699451

query I rowsort
SELECT + 79 * + - 32
----
-2528

query I rowsort
SELECT + ( - 86 ) AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-8331
SELECT + + 1 DIV - 33 + + 10
----
10

skipif mysql # not compatible
query I rowsort label-8331
SELECT + + 1 / - 33 + + 10
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8332
SELECT + + 3 + - - 65 DIV + - 71 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8332
SELECT + + 3 + - - 65 / + - 71 AS col2
----
3

query I rowsort
SELECT + - ( - - 32 ) AS col0
----
-32

query I rowsort
SELECT ALL + - ( - + 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT + - 28 * + + COUNT( * ) + - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-8335
SELECT + - 28 * + + COUNT ( * ) + - COUNT ( * )
----
-29

query I rowsort
SELECT + 24 + - 22
----
2

query II rowsort
SELECT + 59 AS col0, - ( - 58 )
----
59
58

query II rowsort
SELECT DISTINCT + 49 AS col0, 25
----
49
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8339
SELECT - COALESCE ( + 28, - NULLIF ( 15, 5 ) + - 74, + + 56 DIV - 29 + - MAX( ALL + 50 ) + + COUNT( * ) * - ( 22 * 30 ) ) + 10 * 71
----
682

skipif mysql # not compatible
query I rowsort label-8339
SELECT - COALESCE ( + 28, - NULLIF ( 15, 5 ) + - 74, + + 56 / - 29 + - MAX ( ALL + 50 ) + + COUNT ( * ) * - ( 22 * 30 ) ) + 10 * 71
----
682

query II rowsort
SELECT ALL 25 * + 25 col1, + 30
----
625
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8341
SELECT ALL + COUNT( * ) col1, 54
----
1
54

skipif mysql # not compatible
query II rowsort label-8341
SELECT ALL + COUNT ( * ) col1, 54
----
1
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8342
SELECT + CASE - COUNT( * ) WHEN - - 42 THEN SUM( + 68 ) / - 18 + 99 ELSE NULL END * + 66 / - - 93, 71 AS col1
----
NULL
71

skipif mysql # not compatible
query II rowsort label-8342
SELECT + CASE - COUNT ( * ) WHEN - - 42 THEN SUM ( + 68 ) / - 18 + 99 ELSE NULL END * + 66 / - - 93, 71 AS col1
----
NULL
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT - 89 + + - 91 - + COUNT( * ) AS col2
----
-181

skipif mysql # not compatible
query I rowsort label-8343
SELECT - 89 + + - 91 - + COUNT ( * ) AS col2
----
-181

query I rowsort
SELECT ALL ( 16 ) AS col1
----
16

query I rowsort
SELECT - 60 * + 3
----
-180

query I rowsort
SELECT 52 * - 76 + + 50 + 24 AS col0
----
-3878

query I rowsort
SELECT ALL + 38 * + 80 + + 45
----
3085

onlyif mysql # aggregate syntax: 
query II rowsort label-8348
SELECT COUNT( * ), + 36 AS col0
----
1
36

skipif mysql # not compatible
query II rowsort label-8348
SELECT COUNT ( * ), + 36 AS col0
----
1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL - 89 * COUNT( * ) + + 22 - ( - + COUNT( * ) ) * + 31 + - 98 * - 21 - - 53 + - 86 AS col2
----
1989

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL - 89 * COUNT ( * ) + + 22 - ( - + COUNT ( * ) ) * + 31 + - 98 * - 21 - - 53 + - 86 AS col2
----
1989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8350
SELECT - 53 + + 11, - CAST( - - 19 AS SIGNED ) * + - 31 + + - COUNT( * ) + ( - + 72 ) + COALESCE ( + 42, 13 ) * + COUNT( * ) AS col1
----
-42
558

skipif mysql # not compatible
query II rowsort label-8350
SELECT - 53 + + 11, - CAST ( - - 19 AS INTEGER ) * + - 31 + + - COUNT ( * ) + ( - + 72 ) + COALESCE ( + 42, 13 ) * + COUNT ( * ) AS col1
----
-42
558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8351
SELECT ALL CAST( - 38 AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL CAST ( - 38 AS INTEGER ) AS col0
----
-38

query I rowsort
SELECT DISTINCT - CASE + 39 WHEN - + ( - 20 ) THEN NULL WHEN - 4 THEN - 85 * + 42 + - 57 * + ( ( ( 74 ) ) ) END + 55 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8353
SELECT ALL CAST( + + 58 AS SIGNED ) AS col0, - 55 AS col1
----
58
-55

skipif mysql # not compatible
query II rowsort label-8353
SELECT ALL CAST ( + + 58 AS INTEGER ) AS col0, - 55 AS col1
----
58
-55

query I rowsort
SELECT + - 19 + - - 70
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8355
SELECT - + 58 AS col1, + CAST( NULL AS SIGNED )
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-8355
SELECT - + 58 AS col1, + CAST ( NULL AS INTEGER )
----
-58
NULL

query II rowsort
SELECT DISTINCT - 45 col1, + 74 AS col2
----
-45
74

query I rowsort
SELECT ALL + + 32 + + 66 col0
----
98

query II rowsort
SELECT - 69 * + 96, + 63 * ( + ( - - 89 ) ) * + + 58 AS col1
----
-6624
325206

query I rowsort
SELECT ALL + 28 * + 42 * + 59 * + - 24 * + - NULLIF ( - 23, + - 87 ) + 65
----
-38299903

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL 13 - SUM( + - 30 )
----
43

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL 13 - SUM ( + - 30 )
----
43

query I rowsort
SELECT DISTINCT - NULLIF ( - 9, - 46 - 66 + - 21 )
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8362
SELECT ALL 36 DIV - + CAST( + 59 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL 36 / - + CAST ( + 59 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT - + 12 * 81 - + - 62
----
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT + 33 DIV ( + ( - - 92 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8364
SELECT + 33 / ( + ( - - 92 ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8365
SELECT + 72 * + CAST( NULL AS SIGNED ) AS col2, + 16 AS col2
----
NULL
16

skipif mysql # not compatible
query II rowsort label-8365
SELECT + 72 * + CAST ( NULL AS INTEGER ) AS col2, + 16 AS col2
----
NULL
16

query I rowsort
SELECT 50 + 21 - - 2 col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8367
SELECT + + CAST( - COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8367
SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) col1
----
-1

query I rowsort
SELECT ALL + 63 * + + 17
----
1071

onlyif mysql # DIV for integer division: 
query I rowsort label-8369
SELECT - ( + 37 ) DIV - 22 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8369
SELECT - ( + 37 ) / - 22 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8370
SELECT ALL + - COUNT( * ) DIV + COUNT( * ) - + COUNT( DISTINCT 5 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL + - COUNT ( * ) / + COUNT ( * ) - + COUNT ( DISTINCT 5 ) AS col2
----
-2

query II rowsort
SELECT ALL - 32 AS col0, - 88 AS col2
----
-32
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT - COALESCE ( 65, + + 23 * + COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-8372
SELECT - COALESCE ( 65, + + 23 * + COUNT ( * ) )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8373
SELECT ALL + 60 * - 22 + - ( - + 11 ) + 89 * 24 DIV 89 AS col1
----
-1285

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL + 60 * - 22 + - ( - + 11 ) + 89 * 24 / 89 AS col1
----
-1285

query I rowsort
SELECT ALL - - ( + - 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8375
SELECT CASE WHEN NOT NULL = ( 60 ) THEN - 70 / + CAST( NULL AS SIGNED ) + COUNT( * ) + - - CASE + ( 42 ) WHEN 67 * - 94 THEN + 67 * 94 + - 61 / 23 WHEN - 52 THEN NULL END WHEN - 83 IS NULL THEN NULL ELSE - CAST( NULL AS SIGNED ) END * ( COALESCE ( - CAST( NULL AS DECIMAL ), CASE - 89 WHEN 14 + + 44 THEN + COUNT( * ) + 69 ELSE 85 + 96 END + - 38, + 56 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT CASE WHEN NOT NULL = ( 60 ) THEN - 70 / + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - - CASE + ( 42 ) WHEN 67 * - 94 THEN + 67 * 94 + - 61 / 23 WHEN - 52 THEN NULL END WHEN - 83 IS NULL THEN NULL ELSE - CAST ( NULL AS INTEGER ) END * ( COALESCE ( - CAST ( NULL AS REAL ), CASE - 89 WHEN 14 + + 44 THEN + COUNT ( * ) + 69 ELSE 85 + 96 END + - 38, + 56 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT DISTINCT COUNT( * ) + 16 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT COUNT ( * ) + 16 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8377
SELECT CASE - 19 WHEN COUNT( * ) * 61 + + 63 + - 75 THEN NULL ELSE - + COUNT( + 94 ) + + 2 + + COUNT( * ) * - - MAX( DISTINCT + ( + 63 ) ) + - 66 / + 18 END * CASE COUNT( * ) WHEN 48 * 2 + 48 THEN 60 WHEN + 48 THEN NULL WHEN 96 THEN - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT CASE - 19 WHEN COUNT ( * ) * 61 + + 63 + - 75 THEN NULL ELSE - + COUNT ( + 94 ) + + 2 + + COUNT ( * ) * - - MAX ( DISTINCT + ( + 63 ) ) + - 66 / + 18 END * CASE COUNT ( * ) WHEN 48 * 2 + 48 THEN 60 WHEN + 48 THEN NULL WHEN 96 THEN - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8378
SELECT 23 * - 66 DIV + - COUNT( * )
----
1518

skipif mysql # not compatible
query I rowsort label-8378
SELECT 23 * - 66 / + - COUNT ( * )
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL COUNT( - - 19 ) + + 18 + + 96
----
115

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL COUNT ( - - 19 ) + + 18 + + 96
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL 42 + + 3 + + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL 42 + + 3 + + COUNT ( * ) AS col2
----
46

query I rowsort
SELECT DISTINCT + 66 + + NULLIF ( 15, 58 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT ALL + 57 + + + CAST( NULL AS SIGNED ) * 50 - + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL + 57 + + + CAST ( NULL AS INTEGER ) * 50 - + 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8383
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) / - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) / - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL COUNT( * ) + - 96 + - 95 * + + 11
----
-1140

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL COUNT ( * ) + - 96 + - 95 * + + 11
----
-1140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8385
SELECT DISTINCT + NULLIF ( - 85, - 76 ) + - 72 DIV - 77 * + COUNT( * ) * + COUNT( - + 12 )
----
-85

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT + NULLIF ( - 85, - 76 ) + - 72 / - 77 * + COUNT ( * ) * + COUNT ( - + 12 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT ALL - 85 + - 13 - 27 + - - 19 * - + COUNT( * ) * + - 40 + + + 86 AS col1
----
721

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL - 85 + - 13 - 27 + - - 19 * - + COUNT ( * ) * + - 40 + + + 86 AS col1
----
721

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT 38 * - 58 * + - COUNT( * ) col1
----
2204

skipif mysql # not compatible
query I rowsort label-8387
SELECT 38 * - 58 * + - COUNT ( * ) col1
----
2204

onlyif mysql # aggregate syntax: 
query II rowsort label-8388
SELECT COUNT( * ) + - SUM( ALL - - 32 ) + - 61 * - COUNT( * ), 59 * - 58 * - 83 - 0 AS col1
----
30
284026

skipif mysql # not compatible
query II rowsort label-8388
SELECT COUNT ( * ) + - SUM ( ALL - - 32 ) + - 61 * - COUNT ( * ), 59 * - 58 * - 83 - 0 AS col1
----
30
284026

query I rowsort
SELECT 48 * - 92
----
-4416

onlyif mysql # aggregate syntax: 
query II rowsort label-8390
SELECT 18 + - 6 * + + 28 AS col0, + COUNT( * )
----
-150
1

skipif mysql # not compatible
query II rowsort label-8390
SELECT 18 + - 6 * + + 28 AS col0, + COUNT ( * )
----
-150
1

query I rowsort
SELECT ALL - - 1 - + 17 - 43 * - - 34 AS col1
----
-1478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8392
SELECT + 94 + + + COALESCE ( CAST( + 44 AS SIGNED ), - - 43 * + + 80 + + 40 + - 81, - + 41 + + 82 ) AS col2
----
138

skipif mysql # not compatible
query I rowsort label-8392
SELECT + 94 + + + COALESCE ( CAST ( + 44 AS INTEGER ), - - 43 * + + 80 + + 40 + - 81, - + 41 + + 82 ) AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT ALL + COUNT( * ) - + 32 col1
----
-31

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL + COUNT ( * ) - + 32 col1
----
-31

query I rowsort
SELECT + 3 * 27
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT + COUNT( * ) + + 64 - 80
----
-15

skipif mysql # not compatible
query I rowsort label-8395
SELECT + COUNT ( * ) + + 64 - 80
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT DISTINCT + CASE + + 95 WHEN 53 THEN + - 35 END * - 54 * - 56 * 44 + + ( - 85 ) + + + 42 * COUNT( * ) * + + COALESCE ( - 60, 27 ) / 20 + 49 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT + CASE + + 95 WHEN 53 THEN + - 35 END * - 54 * - 56 * 44 + + ( - 85 ) + + + 42 * COUNT ( * ) * + + COALESCE ( - 60, 27 ) / 20 + 49 * 67
----
NULL

query II rowsort
SELECT DISTINCT + - 88 * - 24, 57 col0
----
2112
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT DISTINCT + 22 * + COUNT( * ) + - ( + 80 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT + 22 * + COUNT ( * ) + - ( + 80 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT + 6 * - 75 * + + CASE - - 54 WHEN - ( NULLIF ( + 89, - - 63 / AVG ( ALL 16 ) + - 50 + - 62 + COUNT( 83 + - 73 ) ) ) THEN - SUM( ALL - 56 ) * + 47 WHEN COUNT( * ) * 97 + + COALESCE ( COUNT( * ) + + 44, + 33, + 75 ) THEN NULL END / 29 - COUNT( * ) * ( MAX( ALL - 90 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT + 6 * - 75 * + + CASE - - 54 WHEN - ( NULLIF ( + 89, - - 63 / AVG ( ALL 16 ) + - 50 + - 62 + COUNT ( 83 + - 73 ) ) ) THEN - SUM ( ALL - 56 ) * + 47 WHEN COUNT ( * ) * 97 + + COALESCE ( COUNT ( * ) + + 44, + 33, + 75 ) THEN NULL END / 29 - COUNT ( * ) * ( MAX ( ALL - 90 ) )
----
NULL

query I rowsort
SELECT - 10 + - + 35
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL ( + 78 ) + + - COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL ( + 78 ) + + - COUNT ( * ) AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT + + CAST( + + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-8402
SELECT + + CAST ( + + 2 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT ALL - 88 + - - NULLIF ( 4, - ( + COUNT( * ) ) / + + 54 * - + 92 )
----
-84

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL - 88 + - - NULLIF ( 4, - ( + COUNT ( * ) ) / + + 54 * - + 92 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT 52 * CASE COUNT( * ) WHEN + ( 53 ) THEN - 74 ELSE 44 END + + - 26 AS col0
----
2262

skipif mysql # not compatible
query I rowsort label-8404
SELECT 52 * CASE COUNT ( * ) WHEN + ( 53 ) THEN - 74 ELSE 44 END + + - 26 AS col0
----
2262

query I rowsort
SELECT 4 * 6 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-8406
SELECT + CAST( NULL AS DECIMAL ) DIV + 30 * - CAST( NULL AS SIGNED ) * - COUNT( 43 ) + + + COUNT( * ), - 83 + MIN( ALL - 13 ) DIV + 23 AS col1
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-8406
SELECT + CAST ( NULL AS REAL ) / + 30 * - CAST ( NULL AS INTEGER ) * - COUNT ( 43 ) + + + COUNT ( * ), - 83 + MIN ( ALL - 13 ) / + 23 AS col1
----
NULL
-83

query II rowsort
SELECT + 56, + 10 AS col1
----
56
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8408
SELECT COUNT( * ), + 86 DIV - 53 AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-8408
SELECT COUNT ( * ), + 86 / - 53 AS col2
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8409
SELECT 23 DIV + + 63 * - COALESCE ( - 94, - COALESCE ( + COUNT( * ), + 48, + 35 ), + + CAST( + + 95 AS SIGNED ), COUNT( + + 80 ) * NULLIF ( 46, - COALESCE ( + 38, COUNT( * ), 0 ) ) * - 38 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8409
SELECT 23 / + + 63 * - COALESCE ( - 94, - COALESCE ( + COUNT ( * ), + 48, + 35 ), + + CAST ( + + 95 AS INTEGER ), COUNT ( + + 80 ) * NULLIF ( 46, - COALESCE ( + 38, COUNT ( * ), 0 ) ) * - 38 ) AS col2
----
0

query I rowsort
SELECT ALL 72 + - + NULLIF ( + 84, 54 )
----
-12

query I rowsort
SELECT 94 + + - 64 AS col2
----
30

query I rowsort
SELECT ALL - NULLIF ( 61, - 87 )
----
-61

query I rowsort
SELECT DISTINCT - 71 + 48 + - + 59 + - NULLIF ( + - ( - 69 ), 11 )
----
-151

query I rowsort
SELECT 7 * 34 col2
----
238

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT 89 * + - ( - - COUNT( * ) ) + + - 0 * - 31 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8415
SELECT 89 * + - ( - - COUNT ( * ) ) + + - 0 * - 31 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL - 53 + CASE MIN( ALL + 10 ) WHEN + 79 THEN NULLIF ( 97, 86 ) / - 86 - SUM( DISTINCT + 63 ) END / + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL - 53 + CASE MIN ( ALL + 10 ) WHEN + 79 THEN NULLIF ( 97, 86 ) / - 86 - SUM ( DISTINCT + 63 ) END / + 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8417
SELECT NULLIF ( - 19, MAX( + CAST( NULL AS SIGNED ) ) ) + + 85 * 40
----
3381

skipif mysql # not compatible
query I rowsort label-8417
SELECT NULLIF ( - 19, MAX ( + CAST ( NULL AS INTEGER ) ) ) + + 85 * 40
----
3381

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT ALL CAST( NULL AS SIGNED ) + - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL CAST ( NULL AS INTEGER ) + - 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT + MAX( - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-8419
SELECT + MAX ( - 74 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8420
SELECT DISTINCT COALESCE ( 92, 83, 24 + - 46, - COUNT( * ) ) * + - MAX( + COALESCE ( - 58, 61 ) ) + 97 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT COALESCE ( 92, 83, 24 + - 46, - COUNT ( * ) ) * + - MAX ( + COALESCE ( - 58, 61 ) ) + 97 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 33, 18 AS col1
----
33
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT COALESCE ( - MIN( ALL - + 64 ), - - 95, + 76 ) * + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-8422
SELECT COALESCE ( - MIN ( ALL - + 64 ), - - 95, + 76 ) * + COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT + COUNT( * ) * - - 74
----
74

skipif mysql # not compatible
query I rowsort label-8423
SELECT + COUNT ( * ) * - - 74
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8424
SELECT + COUNT( * ) DIV + - 64
----
0

skipif mysql # not compatible
query I rowsort label-8424
SELECT + COUNT ( * ) / + - 64
----
0

query II rowsort
SELECT ALL + ( - 70 ) * + - 58 col1, + 39 AS col0
----
4060
39

query I rowsort
SELECT DISTINCT - 89 * 32 AS col1
----
-2848

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT - COUNT( * ) + 30 * + COUNT( * ) + + 89 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-8427
SELECT - COUNT ( * ) + 30 * + COUNT ( * ) + + 89 AS col0
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8428
SELECT - - COUNT( * ), 65 DIV + - 24 + + - 51 * 84 AS col2
----
1
-4286

skipif mysql # not compatible
query II rowsort label-8428
SELECT - - COUNT ( * ), 65 / + - 24 + + - 51 * 84 AS col2
----
1
-4286

query I rowsort
SELECT - 15 + - 19
----
-34

query I rowsort
SELECT - 28 + + 2
----
-26

query II rowsort
SELECT ALL 65 AS col2, 81 AS col2
----
65
81

query I rowsort
SELECT + ( - 72 ) col2
----
-72

query II rowsort
SELECT DISTINCT - 10, 12 AS col0
----
-10
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT ALL - 29 DIV + + 93 * 70
----
0

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL - 29 / + + 93 * 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8435
SELECT - CASE 63 WHEN + COUNT( * ) + - CAST( - NULLIF ( + COALESCE ( + 34, - 51 * - 71, + 35 ), - COUNT( * ) ) AS DECIMAL ) THEN 31 - - + ( + NULLIF ( - MAX( 73 ), + CAST( NULL AS SIGNED ) ) ) * + 18 WHEN 26 * 54 THEN NULL ELSE - 68 * 32 + + 79 END
----
2097

skipif mysql # not compatible
query I rowsort label-8435
SELECT - CASE 63 WHEN + COUNT ( * ) + - CAST ( - NULLIF ( + COALESCE ( + 34, - 51 * - 71, + 35 ), - COUNT ( * ) ) AS REAL ) THEN 31 - - + ( + NULLIF ( - MAX ( 73 ), + CAST ( NULL AS INTEGER ) ) ) * + 18 WHEN 26 * 54 THEN NULL ELSE - 68 * 32 + + 79 END
----
2097

query II rowsort
SELECT DISTINCT + 87 AS col0, + 23 AS col0
----
87
23

query I rowsort
SELECT DISTINCT + 31 * + 39 + 46 AS col0
----
1255

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT + 10 * - 73 - + + COUNT( * ) + - COUNT( * ) * + 59
----
-790

skipif mysql # not compatible
query I rowsort label-8438
SELECT + 10 * - 73 - + + COUNT ( * ) + - COUNT ( * ) * + 59
----
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT ALL + MIN( + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL + MIN ( + 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8440
SELECT ALL - COUNT( * ) * - + 70 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL - COUNT ( * ) * - + 70 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT COALESCE ( - COUNT( * ), + ( - COUNT( * ) ) * 74 * + 5 + 97 ) * + 83 + + 3 + - 70 * + 98
----
-6940

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT COALESCE ( - COUNT ( * ), + ( - COUNT ( * ) ) * 74 * + 5 + 97 ) * + 83 + + 3 + - 70 * + 98
----
-6940

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT DISTINCT - 40 * + - 8 * + 54 + 65 + - COUNT( * ) AS col2
----
17344

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT - 40 * + - 8 * + 54 + 65 + - COUNT ( * ) AS col2
----
17344

onlyif mysql # aggregate syntax: 
query II rowsort label-8443
SELECT DISTINCT + CASE + 66 WHEN - 4 THEN - 89 ELSE NULL END, 82 + - + CASE - MIN( - ( 46 ) ) WHEN - - 38 THEN + 92 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8443
SELECT DISTINCT + CASE + 66 WHEN - 4 THEN - 89 ELSE NULL END, 82 + - + CASE - MIN ( - ( 46 ) ) WHEN - - 38 THEN + 92 ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT COALESCE ( + - NULLIF ( + 16, - 25 ), 11 * + ( + 28 ) - 61 + COALESCE ( - - 18, + 81, - - 50 ) + - + COUNT( * ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8444
SELECT COALESCE ( + - NULLIF ( + 16, - 25 ), 11 * + ( + 28 ) - 61 + COALESCE ( - - 18, + 81, - - 50 ) + - + COUNT ( * ) ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8445
SELECT + MAX( ALL - 11 ) AS col2, - 35 * + ( - 54 ) * ( - COUNT( * ) )
----
-11
-1890

skipif mysql # not compatible
query II rowsort label-8445
SELECT + MAX ( ALL - 11 ) AS col2, - 35 * + ( - 54 ) * ( - COUNT ( * ) )
----
-11
-1890

query I rowsort
SELECT ALL + ( - ( 80 ) ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT COALESCE ( + - SUM( DISTINCT 17 ), 31, - ( - + 29 ) + + 12, + + CASE WHEN + 47 IN ( - 69, NULLIF ( - COUNT( * ), - 52 ) * 59 + + 5 ) THEN 39 ELSE CASE ( COUNT( * ) ) WHEN + 90 THEN + MAX( ALL 34 ) WHEN - COUNT( ALL - 77 ) THEN 11 + 57 * 67 END END ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-8447
SELECT COALESCE ( + - SUM ( DISTINCT 17 ), 31, - ( - + 29 ) + + 12, + + CASE WHEN + 47 IN ( - 69, NULLIF ( - COUNT ( * ), - 52 ) * 59 + + 5 ) THEN 39 ELSE CASE ( COUNT ( * ) ) WHEN + 90 THEN + MAX ( ALL 34 ) WHEN - COUNT ( ALL - 77 ) THEN 11 + 57 * 67 END END ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT + MAX( + - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8448
SELECT + MAX ( + - 98 ) AS col1
----
-98

query I rowsort
SELECT + 59 * - ( 6 ) AS col1
----
-354

query I rowsort
SELECT ALL + 13 * 32 - - + 70 AS col0
----
486

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT - 93 * - 85 - + - 31 DIV 14 AS col2
----
7907

skipif mysql # not compatible
query I rowsort label-8451
SELECT - 93 * - 85 - + - 31 / 14 AS col2
----
7907

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT - 23 * + COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8452
SELECT - 23 * + COUNT ( * ) AS col2
----
-23

query I rowsort
SELECT ALL 35 * + 37 * - 27 AS col2
----
-34965

query I rowsort
SELECT ALL - 36 * - + 74 - - 92
----
2756

query I rowsort
SELECT ALL 11 * 10 * + 63
----
6930

query I rowsort
SELECT + 58 * - - 65
----
3770

query I rowsort
SELECT - 25 * + 30 + 52 + - + 47 AS col1
----
-745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT + CAST( 1 AS SIGNED ) * 41 * + 22
----
902

skipif mysql # not compatible
query I rowsort label-8458
SELECT + CAST ( 1 AS INTEGER ) * 41 * + 22
----
902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT - CAST( NULL AS SIGNED ) + - - 15 + + CAST( NULL AS SIGNED ) * - 5 * + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT - CAST ( NULL AS INTEGER ) + - - 15 + + CAST ( NULL AS INTEGER ) * - 5 * + 39 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8460
SELECT + ( + + 71 ), + CAST( - - 52 AS SIGNED ) AS col1
----
71
52

skipif mysql # not compatible
query II rowsort label-8460
SELECT + ( + + 71 ), + CAST ( - - 52 AS INTEGER ) AS col1
----
71
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + + SUM( - 82 ) + + ( - - 97 )
----
15

skipif mysql # not compatible
query I rowsort label-8461
SELECT + + SUM ( - 82 ) + + ( - - 97 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT ALL CASE - CAST( + COUNT( * ) AS SIGNED ) WHEN + - 10 * - 80 * - 98 / - 15 THEN 40 ELSE NULL END * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL CASE - CAST ( + COUNT ( * ) AS INTEGER ) WHEN + - 10 * - 80 * - 98 / - 15 THEN 40 ELSE NULL END * - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8463
SELECT + + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT + + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) + 35 AS col1
----
NULL

query I rowsort
SELECT ALL - 0 + - ( - + NULLIF ( + 95, + + 3 ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL + MAX( - - 92 ) + - - 92 AS col1
----
184

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL + MAX ( - - 92 ) + - - 92 AS col1
----
184

onlyif mysql # aggregate syntax: 
query II rowsort label-8466
SELECT - ( - - 95 ), + CASE - 8 WHEN - + AVG ( - 28 ) THEN + 35 WHEN + 37 / - + 63 + + 60 THEN 24 + - 80 END * + + 45 * + - NULLIF ( 4, 86 + + 5 * - 24 ) / + COALESCE ( ( - COUNT( * ) ), AVG ( DISTINCT - 52 ), COUNT( * ) ) + + 17 - + 78 col0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-8466
SELECT - ( - - 95 ), + CASE - 8 WHEN - + AVG ( - 28 ) THEN + 35 WHEN + 37 / - + 63 + + 60 THEN 24 + - 80 END * + + 45 * + - NULLIF ( 4, 86 + + 5 * - 24 ) / + COALESCE ( ( - COUNT ( * ) ), AVG ( DISTINCT - 52 ), COUNT ( * ) ) + + 17 - + 78 col0
----
-95
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8467
SELECT - - 12 DIV - 59 * + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8467
SELECT - - 12 / - 59 * + 79 AS col0
----
0

query I rowsort
SELECT - 89 + + 25
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8469
SELECT - 1 - 77 DIV - 20 - + 82
----
-80

skipif mysql # not compatible
query I rowsort label-8469
SELECT - 1 - 77 / - 20 - + 82
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8470
SELECT DISTINCT - NULLIF ( 32, - 65 ) / + CASE - 6 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN 63 * - 19 + + 6 * - 57 THEN 85 - - 5 + + - 2 END - 19 - - 59 * + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT - NULLIF ( 32, - 65 ) / + CASE - 6 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 63 * - 19 + + 6 * - 57 THEN 85 - - 5 + + - 2 END - 19 - - 59 * + 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8471
SELECT ALL - COUNT( * ) * + COUNT( * ) DIV + 85 * - - COALESCE ( - 19, - 26 * 84 * - COUNT( * ), - COALESCE ( 82, 6 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - COUNT ( * ) * + COUNT ( * ) / + 85 * - - COALESCE ( - 19, - 26 * 84 * - COUNT ( * ), - COALESCE ( 82, 6 ) ) AS col0
----
0

query I rowsort
SELECT ALL - ( + 61 ) col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT - 27 * - COUNT( * ) + - 68
----
-41

skipif mysql # not compatible
query I rowsort label-8473
SELECT - 27 * - COUNT ( * ) + - 68
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-8474
SELECT ALL - CASE + - 89 WHEN 20 THEN ( + COUNT( * ) ) ELSE NULL END AS col2, 17 * - COUNT( * )
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-8474
SELECT ALL - CASE + - 89 WHEN 20 THEN ( + COUNT ( * ) ) ELSE NULL END AS col2, 17 * - COUNT ( * )
----
NULL
-17

query I rowsort
SELECT ALL - 36 * 52 col0
----
-1872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8476
SELECT 63 * - COUNT( * ) + + + 21 DIV + + 70 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8476
SELECT 63 * - COUNT ( * ) + + + 21 / + + 70 AS col2
----
-63

query I rowsort
SELECT ALL - ( - - 51 ) AS col2
----
-51

query II rowsort
SELECT 63 * + COALESCE ( + 44, 44 ) * + - 43 * + 30 col0, + 43
----
-3575880
43

onlyif mysql # aggregate syntax: 
query III rowsort label-8479
SELECT CASE - + 80 WHEN + 7 * SUM( - 25 ) THEN + ( - - 19 ) + 39 END + - - ( - 80 ) col0, 59 AS col2, - + 18 AS col2
----
NULL
59
-18

skipif mysql # not compatible
query III rowsort label-8479
SELECT CASE - + 80 WHEN + 7 * SUM ( - 25 ) THEN + ( - - 19 ) + 39 END + - - ( - 80 ) col0, 59 AS col2, - + 18 AS col2
----
NULL
59
-18

query I rowsort
SELECT DISTINCT + ( 9 ) * - - 77 * + 46 * 72 + - 49
----
2295167

query I rowsort
SELECT + + 23 * + ( + + 12 ) + 11 * + + 17 * - - 65 + - 72 AS col1
----
12359

query I rowsort
SELECT DISTINCT - - 52 + + 93 + - 46 * + 40 + + 26 AS col2
----
-1669

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8483
SELECT ALL 80 + - - 7 + + - 84 DIV - 60 DIV - COUNT( * ) + + 95 + 50 + - - COUNT( 2 ) * - - 46 AS col0
----
277

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL 80 + - - 7 + + - 84 / - 60 / - COUNT ( * ) + + 95 + 50 + - - COUNT ( 2 ) * - - 46 AS col0
----
277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT DISTINCT + + 39 * COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT + + 39 * COUNT ( * )
----
39

query II rowsort
SELECT ALL 11 AS col0, + 47 AS col2
----
11
47

query I rowsort
SELECT - ( 84 ) AS col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8488
SELECT DISTINCT + 2 + COUNT( * ) * - 26 DIV - - 25
----
1

skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT + 2 + COUNT ( * ) * - 26 / - - 25
----
1

query I rowsort
SELECT ALL - + 27 + - 11
----
-38

query I rowsort
SELECT DISTINCT 64 + - + ( - + 51 ) AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT CASE + + 44 WHEN - + MAX( - ( + - 78 ) ) THEN - - 28 END * - + 58 - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT CASE + + 44 WHEN - + MAX ( - ( + - 78 ) ) THEN - - 28 END * - + 58 - - 37
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8492
SELECT ( + - 2 ) * - 31 AS col2, - COUNT( * ) + - + 63 DIV 7 * - 95
----
62
854

skipif mysql # not compatible
query II rowsort label-8492
SELECT ( + - 2 ) * - 31 AS col2, - COUNT ( * ) + - + 63 / 7 * - 95
----
62
854

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL + 8 + COUNT( - + 64 ) * + + 43
----
51

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL + 8 + COUNT ( - + 64 ) * + + 43
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT DISTINCT - COUNT( DISTINCT - 18 ) + 46
----
45

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT - COUNT ( DISTINCT - 18 ) + 46
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT ALL COUNT( * ) - + - MIN( ALL + 28 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL COUNT ( * ) - + - MIN ( ALL + 28 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT COUNT( * ) + - NULLIF ( ( + 40 ), 69 / - 53 / - 4 ) + + 13 + + ( + + 85 ) * - 17 + - + MAX( + 8 ) + - MAX( DISTINCT 82 ) + - ( + 20 ) * - 45 col1
----
-661

skipif mysql # not compatible
query I rowsort label-8496
SELECT COUNT ( * ) + - NULLIF ( ( + 40 ), 69 / - 53 / - 4 ) + + 13 + + ( + + 85 ) * - 17 + - + MAX ( + 8 ) + - MAX ( DISTINCT 82 ) + - ( + 20 ) * - 45 col1
----
-661

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8497
SELECT ALL 6 AS col1, 79 col2, - CAST( NULL AS SIGNED ) * + 8
----
6
79
NULL

skipif mysql # not compatible
query III rowsort label-8497
SELECT ALL 6 AS col1, 79 col2, - CAST ( NULL AS INTEGER ) * + 8
----
6
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT ALL MAX( 35 ) - + - 47
----
82

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL MAX ( 35 ) - + - 47
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-8499
SELECT 54 AS col2, + 51 DIV 47
----
54
1

skipif mysql # not compatible
query II rowsort label-8499
SELECT 54 AS col2, + 51 / 47
----
54
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8500
SELECT - 11 DIV + - 41 + - - 20 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8500
SELECT - 11 / + - 41 + - - 20 AS col1
----
20

query II rowsort
SELECT ALL - 77 col2, 34 * 78
----
-77
2652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8502
SELECT NULLIF ( + - COUNT( * ), - 8 * + 5 * + - 51 + - COUNT( ALL - 8 ) ) * + 60 + + CAST( NULL AS SIGNED ) + 47 * - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT NULLIF ( + - COUNT ( * ), - 8 * + 5 * + - 51 + - COUNT ( ALL - 8 ) ) * + 60 + + CAST ( NULL AS INTEGER ) + 47 * - 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT ALL - MIN( ALL + 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL - MIN ( ALL + 72 ) AS col0
----
-72

query II rowsort
SELECT DISTINCT - 80 AS col2, 6 col0
----
-80
6

query II rowsort
SELECT ALL + 59 * - - 97 AS col0, 19 AS col1
----
5723
19

query II rowsort
SELECT ALL - 22 AS col0, CASE 35 WHEN + 47 * 24 THEN + 31 WHEN - 17 THEN NULL END AS col1
----
-22
NULL

query II rowsort
SELECT 73 AS col1, 62 - 75 + - 66 - 79
----
73
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8508
SELECT 8 AS col0, 87 DIV + 47 + COUNT( * )
----
8
2

skipif mysql # not compatible
query II rowsort label-8508
SELECT 8 AS col0, 87 / + 47 + COUNT ( * )
----
8
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8509
SELECT ALL - COALESCE ( - 54, - 68 + 9, + - CASE 86 WHEN - 95 THEN NULL ELSE + 80 * + CASE COUNT( * ) WHEN 33 + + + COUNT( * ) THEN - 94 DIV - - 95 * + 92 * + - 35 END + - 17 END ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL - COALESCE ( - 54, - 68 + 9, + - CASE 86 WHEN - 95 THEN NULL ELSE + 80 * + CASE COUNT ( * ) WHEN 33 + + + COUNT ( * ) THEN - 94 / - - 95 * + 92 * + - 35 END + - 17 END ) AS col2
----
54

query I rowsort
SELECT ALL - 99 * + 31 AS col1
----
-3069

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT - COUNT( ALL + 39 ) * + 16 + - + 0 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-8511
SELECT - COUNT ( ALL + 39 ) * + 16 + - + 0 AS col0
----
-16

query I rowsort
SELECT 8 * + 39 * - + 20 + + - 99 AS col0
----
-6339

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT DISTINCT + MAX( + - ( - + COALESCE ( - 93, 15, - - 47 ) ) ) + - + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT + MAX ( + - ( - + COALESCE ( - 93, 15, - - 47 ) ) ) + - + COUNT ( * )
----
-94

query I rowsort
SELECT ALL - COALESCE ( NULLIF ( - 64, - 70 ), - 35 * + 69 ) + + 32
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT 3 * + + 78 - - ( - 11 ) * + - SUM( 66 ) AS col2
----
960

skipif mysql # not compatible
query I rowsort label-8515
SELECT 3 * + + 78 - - ( - 11 ) * + - SUM ( 66 ) AS col2
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT 13 + - 88 - + - 17 + COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT 13 + - 88 - + - 17 + COUNT ( * ) AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT ALL CAST( + 87 AS SIGNED ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL CAST ( + 87 AS INTEGER ) AS col2
----
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8518
SELECT - ( + + CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT - ( + + CAST ( NULL AS REAL ) ) col1
----
NULL

query I rowsort
SELECT - - ( + 79 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8520
SELECT + 14 + - CAST( NULL AS SIGNED ) / - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8520
SELECT + 14 + - CAST ( NULL AS INTEGER ) / - 41 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8521
SELECT + CAST( - 43 AS SIGNED ) * COUNT( * ) - 42 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8521
SELECT + CAST ( - 43 AS INTEGER ) * COUNT ( * ) - 42 AS col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8522
SELECT ALL + 23 DIV + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL + 23 / + 59 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT 59 + + SUM( - 81 )
----
-22

skipif mysql # not compatible
query I rowsort label-8523
SELECT 59 + + SUM ( - 81 )
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-8524
SELECT - 97 DIV 17 + + 6 + + 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8524
SELECT - 97 / 17 + + 6 + + 0 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8525
SELECT SUM( - 53 ), + ( SUM( - 83 ) ) * - 0 + COUNT( * ) * + 29 + + 2 AS col2
----
-53
31

skipif mysql # not compatible
query II rowsort label-8525
SELECT SUM ( - 53 ), + ( SUM ( - 83 ) ) * - 0 + COUNT ( * ) * + 29 + + 2 AS col2
----
-53
31

query I rowsort
SELECT DISTINCT + + ( + + 53 ) * - 9 * - CASE - 45 WHEN - + AVG ( ALL - + 24 ) THEN + + 55 WHEN - 12 + 55 + - 22 THEN NULL WHEN + 79 THEN NULL ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL - + 99 - 21 * - 21 * 3 AS col1, 93
----
1224
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8528
SELECT ALL CAST( - NULLIF ( COUNT( * ), + 29 / - AVG ( ALL - + 33 ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL CAST ( - NULLIF ( COUNT ( * ), + 29 / - AVG ( ALL - + 33 ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT + 72 * - 43 * - 11 + + - 55 * - 46 + + 68 + NULLIF ( + + ( - + 38 ), 13 + + NULLIF ( 66, + 29 * - NULLIF ( 43, - 18 + ( - 52 + - ( - 60 ) * 92 ) * + 6 ) + - 86 * COALESCE ( + ( ( COUNT( * ) ) ), NULLIF ( + 32, + 81 ) ) ) ) + + 11 * 10
----
36726

skipif mysql # not compatible
query I rowsort label-8529
SELECT + 72 * - 43 * - 11 + + - 55 * - 46 + + 68 + NULLIF ( + + ( - + 38 ), 13 + + NULLIF ( 66, + 29 * - NULLIF ( 43, - 18 + ( - 52 + - ( - 60 ) * 92 ) * + 6 ) + - 86 * COALESCE ( + ( ( COUNT ( * ) ) ), NULLIF ( + 32, + 81 ) ) ) ) + + 11 * 10
----
36726

query I rowsort
SELECT DISTINCT + 25 * + 79 AS col2
----
1975

query I rowsort
SELECT 13 * + + 31 AS col0
----
403

query I rowsort
SELECT - 24 * - 44 * - + 37
----
-39072

query I rowsort
SELECT - 81 * + - 50 + + - ( + 2 )
----
4048

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT CASE + COUNT( * ) WHEN 28 THEN NULL WHEN - 43 THEN - - 4 ELSE 61 END
----
61

skipif mysql # not compatible
query I rowsort label-8534
SELECT CASE + COUNT ( * ) WHEN 28 THEN NULL WHEN - 43 THEN - - 4 ELSE 61 END
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8535
SELECT DISTINCT + CAST( - NULLIF ( 34, 72 ) AS SIGNED ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT + CAST ( - NULLIF ( 34, 72 ) AS INTEGER ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT ALL 88 * + + COUNT( * ) * + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL 88 * + + COUNT ( * ) * + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL 52 * - COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL 52 * - COUNT ( * ) AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8538
SELECT + CASE + 75 WHEN - - 12 / - + 53 + - CASE + + ( - 37 ) WHEN + COUNT( * ) * + COUNT( * ) + + COALESCE ( - CAST( NULL AS DECIMAL ), AVG ( ALL - 96 ) ) THEN 96 WHEN - 50 THEN - + 53 * - 41 / + 94 END THEN + 45 / + ( 25 * - 13 ) WHEN NULLIF ( + 45, ( - COUNT( * ) ) ) THEN NULL END + 10 * - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT + CASE + 75 WHEN - - 12 / - + 53 + - CASE + + ( - 37 ) WHEN + COUNT ( * ) * + COUNT ( * ) + + COALESCE ( - CAST ( NULL AS REAL ), AVG ( ALL - 96 ) ) THEN 96 WHEN - 50 THEN - + 53 * - 41 / + 94 END THEN + 45 / + ( 25 * - 13 ) WHEN NULLIF ( + 45, ( - COUNT ( * ) ) ) THEN NULL END + 10 * - 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8539
SELECT + - 32 + 13 AS col0, - NULLIF ( - - 13, + + COUNT( * ) ) * MIN( + + 36 )
----
-19
-468

skipif mysql # not compatible
query II rowsort label-8539
SELECT + - 32 + 13 AS col0, - NULLIF ( - - 13, + + COUNT ( * ) ) * MIN ( + + 36 )
----
-19
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT DISTINCT - COUNT( * ) * ( 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT - COUNT ( * ) * ( 69 ) AS col0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8541
SELECT ALL - CASE - + NULLIF ( + COUNT( * ), + 0 ) WHEN - 91 / - + SUM( + 50 ) + + - 25 + - - AVG ( DISTINCT - 60 ) * 36 + - 72 THEN NULL WHEN 83 THEN + 5 END * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL - CASE - + NULLIF ( + COUNT ( * ), + 0 ) WHEN - 91 / - + SUM ( + 50 ) + + - 25 + - - AVG ( DISTINCT - 60 ) * 36 + - 72 THEN NULL WHEN 83 THEN + 5 END * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8542
SELECT + 31 * - CASE + 84 WHEN + + COUNT( * ) THEN 29 + - 98 + + + 94 WHEN - 8 + 4 + + 75 * - + 32 * - + CAST( NULL AS SIGNED ) + 37 * - + 88 THEN - NULLIF ( + - 97, - + ( - 38 ) DIV + 11 ) + + 53 * + 58 WHEN - COUNT( * ) DIV - 67 THEN 47 * + MIN( 27 DIV - 53 ) ELSE - 79 + + 68 END + 49
----
390

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 31 * - CASE + 84 WHEN + + COUNT ( * ) THEN 29 + - 98 + + + 94 WHEN - 8 + 4 + + 75 * - + 32 * - + CAST ( NULL AS INTEGER ) + 37 * - + 88 THEN - NULLIF ( + - 97, - + ( - 38 ) / + 11 ) + + 53 * + 58 WHEN - COUNT ( * ) / - 67 THEN 47 * + MIN ( 27 / - 53 ) ELSE - 79 + + 68 END + 49
----
390

query I rowsort
SELECT + 43 * - - ( + 66 ) + - 34
----
2804

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8544
SELECT + 85 DIV - + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-8544
SELECT + 85 / - + COUNT ( * )
----
-85

query I rowsort
SELECT + 98 * 32
----
3136

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8546
SELECT - 68 + COUNT( * ) col1, SUM( DISTINCT - 21 ) DIV - - 52 * + - ( - - 68 ) AS col1
----
-67
0

skipif mysql # not compatible
query II rowsort label-8546
SELECT - 68 + COUNT ( * ) col1, SUM ( DISTINCT - 21 ) / - - 52 * + - ( - - 68 ) AS col1
----
-67
0

query I rowsort
SELECT DISTINCT + 94 * - 19 + - 81 + + 29 AS col2
----
-1838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8548
SELECT + + 55 * + - 58 + + - SUM( ALL CAST( NULL AS SIGNED ) ) + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8548
SELECT + + 55 * + - 58 + + - SUM ( ALL CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + 50 * 72 AS col1
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ALL - COUNT( 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL - COUNT ( 84 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL SUM( DISTINCT - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL SUM ( DISTINCT - 5 )
----
-5

query I rowsort
SELECT - 72 * + + 55
----
-3960

query II rowsort
SELECT - 78 + - ( + + 59 ), 58 + + ( + + 49 ) AS col2
----
-137
107

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8554
SELECT DISTINCT ( + CASE - - NULLIF ( - 99, + COUNT( * ) / 35 + + + 8 ) WHEN 90 * + 31 * - - CAST( NULL AS DECIMAL ) + + - CASE - 55 WHEN + 31 THEN COUNT( * ) ELSE - 39 + 50 END / 82 * + 77 + 63 THEN - 29 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT ( + CASE - - NULLIF ( - 99, + COUNT ( * ) / 35 + + + 8 ) WHEN 90 * + 31 * - - CAST ( NULL AS REAL ) + + - CASE - 55 WHEN + 31 THEN COUNT ( * ) ELSE - 39 + 50 END / 82 * + 77 + 63 THEN - 29 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT - COUNT( * ) - - 67 * + 70 AS col2
----
4689

skipif mysql # not compatible
query I rowsort label-8555
SELECT - COUNT ( * ) - - 67 * + 70 AS col2
----
4689

query I rowsort
SELECT ALL + 4 * - 71
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT DISTINCT - 50 + + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT - 50 + + COUNT ( * )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8558
SELECT - 77 * 96 DIV + + 76
----
-97

skipif mysql # not compatible
query I rowsort label-8558
SELECT - 77 * 96 / + + 76
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8559
SELECT ALL - CAST( - 66 AS SIGNED ) * - 11 * + + MAX( ALL CAST( - + ( - 89 ) AS SIGNED ) ) AS col1
----
-64614

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL - CAST ( - 66 AS INTEGER ) * - 11 * + + MAX ( ALL CAST ( - + ( - 89 ) AS INTEGER ) ) AS col1
----
-64614

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT - 94 DIV NULLIF ( - 61, 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8560
SELECT - 94 / NULLIF ( - 61, 11 ) AS col2
----
1

query I rowsort
SELECT - 6 * 89 AS col2
----
-534

query I rowsort
SELECT - 65 + - 6 AS col2
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8563
SELECT ALL 39 DIV - 7 + + MIN( ALL - 54 ) DIV - - 37 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL 39 / - 7 + + MIN ( ALL - 54 ) / - - 37 AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8564
SELECT + MAX( ALL - 33 ) DIV + - MAX( DISTINCT - 84 ) + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8564
SELECT + MAX ( ALL - 33 ) / + - MAX ( DISTINCT - 84 ) + 70 AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8565
SELECT CAST( - 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-8565
SELECT CAST ( - 59 AS INTEGER )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8566
SELECT DISTINCT 14 DIV + 10 + - COUNT( * ), - 51 + 11 * - + 78 AS col1
----
0
-909

skipif mysql # not compatible
query II rowsort label-8566
SELECT DISTINCT 14 / + 10 + - COUNT ( * ), - 51 + 11 * - + 78 AS col1
----
0
-909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8567
SELECT ALL 83 / + - CASE CASE + 39 WHEN - + COUNT( * ) THEN - 34 / CAST( 56 AS SIGNED ) END WHEN - COUNT( * ) - + 73 THEN 90 ELSE NULL END + - 10 - + COALESCE ( + 71, - ( + 86 ), 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL 83 / + - CASE CASE + 39 WHEN - + COUNT ( * ) THEN - 34 / CAST ( 56 AS INTEGER ) END WHEN - COUNT ( * ) - + 73 THEN 90 ELSE NULL END + - 10 - + COALESCE ( + 71, - ( + 86 ), 90 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8568
SELECT ALL + COUNT( * ) * - 69 DIV + + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + COUNT ( * ) * - 69 / + + 92 AS col0
----
0

query I rowsort
SELECT - ( + - 99 ) * 3 col2
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8570
SELECT CAST( NULL AS SIGNED ), + ( + + 86 ) col1
----
NULL
86

skipif mysql # not compatible
query II rowsort label-8570
SELECT CAST ( NULL AS INTEGER ), + ( + + 86 ) col1
----
NULL
86

query I rowsort
SELECT ALL + ( - 21 ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-8572
SELECT DISTINCT + 18 DIV + 56 + - + 34 AS col1, ( - - 69 )
----
-34
69

skipif mysql # not compatible
query II rowsort label-8572
SELECT DISTINCT + 18 / + 56 + - + 34 AS col1, ( - - 69 )
----
-34
69

query I rowsort
SELECT ALL 46 * 97
----
4462

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8574
SELECT + 96 AS col0, + 15 + - 75 DIV - - COUNT( * ) - - - 62 AS col1
----
96
-122

skipif mysql # not compatible
query II rowsort label-8574
SELECT + 96 AS col0, + 15 + - 75 / - - COUNT ( * ) - - - 62 AS col1
----
96
-122

query I rowsort
SELECT - 69 - 10 col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8576
SELECT DISTINCT + + NULLIF ( + - 33, 26 + - CASE 36 WHEN + 93 * + 19 * ( - CAST( ( + - COUNT( * ) ) AS SIGNED ) ) * - - 36 / + 13 + + COUNT( * ) + + 65 THEN NULL WHEN COUNT( * ) * + - 2 + - - CAST( 43 AS SIGNED ) * + 85 + 33 THEN - 97 + - COUNT( * ) WHEN + 25 THEN 81 ELSE - 6 END ) col0
----
-33

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT + + NULLIF ( + - 33, 26 + - CASE 36 WHEN + 93 * + 19 * ( - CAST ( ( + - COUNT ( * ) ) AS INTEGER ) ) * - - 36 / + 13 + + COUNT ( * ) + + 65 THEN NULL WHEN COUNT ( * ) * + - 2 + - - CAST ( 43 AS INTEGER ) * + 85 + 33 THEN - 97 + - COUNT ( * ) WHEN + 25 THEN 81 ELSE - 6 END ) col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8577
SELECT ALL 13 * - - COUNT( * ) * + + 91 AS col1, - SUM( DISTINCT - 84 )
----
1183
84

skipif mysql # not compatible
query II rowsort label-8577
SELECT ALL 13 * - - COUNT ( * ) * + + 91 AS col1, - SUM ( DISTINCT - 84 )
----
1183
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT + + NULLIF ( - + 17, - 58 + - 8 * + 8 ) DIV - 7
----
2

skipif mysql # not compatible
query I rowsort label-8578
SELECT + + NULLIF ( - + 17, - 58 + - 8 * + 8 ) / - 7
----
2

query II rowsort
SELECT + 30 col0, + 17 - 30 AS col1
----
30
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8580
SELECT ALL + 81 * + 88 - + 70 + - CAST( - 92 AS SIGNED ) AS col1
----
7150

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL + 81 * + 88 - + 70 + - CAST ( - 92 AS INTEGER ) AS col1
----
7150

query I rowsort
SELECT DISTINCT + - CASE 65 WHEN + 18 THEN 72 ELSE - 45 END
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT ALL - + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL - + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT + 32 - COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8583
SELECT + 32 - COUNT ( * ) AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8584
SELECT ALL 76 DIV - 31 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL 76 / - 31 AS col1
----
-2

query II rowsort
SELECT DISTINCT + 37 col0, 37 * + + 75 AS col1
----
37
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT + + COUNT( * ) * - SUM( - 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8586
SELECT + + COUNT ( * ) * - SUM ( - 58 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8587
SELECT ALL COUNT( * ), 90 AS col0
----
1
90

skipif mysql # not compatible
query II rowsort label-8587
SELECT ALL COUNT ( * ), 90 AS col0
----
1
90

query I rowsort
SELECT ALL 43 * + 97 * + + 66
----
275286

query I rowsort
SELECT DISTINCT 89 + - + 47 AS col0
----
42

query I rowsort
SELECT 48 * - 33
----
-1584

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8591
SELECT ALL ( - 9 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL ( - 9 ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT NULLIF ( 7, - + 14 + - 86 ) + + + 56 * 96 * - 95 * 32 * - COUNT( - CAST( 98 AS SIGNED ) )
----
16343047

skipif mysql # not compatible
query I rowsort label-8592
SELECT NULLIF ( 7, - + 14 + - 86 ) + + + 56 * 96 * - 95 * 32 * - COUNT ( - CAST ( 98 AS INTEGER ) )
----
16343047

query I rowsort
SELECT 38 + + - 10
----
28

query I rowsort
SELECT 73 * - - 11 AS col2
----
803

query I rowsort
SELECT ALL + 0 + + + 75
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8596
SELECT ALL - 46 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL - 46 / + 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8597
SELECT DISTINCT CAST( 97 AS SIGNED ) + - COUNT( * ) + - - ( + 46 ) * - 83 * + 27, 56 * + - 32 - + COUNT( DISTINCT + - 59 ) AS col0
----
-102990
-1793

skipif mysql # not compatible
query II rowsort label-8597
SELECT DISTINCT CAST ( 97 AS INTEGER ) + - COUNT ( * ) + - - ( + 46 ) * - 83 * + 27, 56 * + - 32 - + COUNT ( DISTINCT + - 59 ) AS col0
----
-102990
-1793

onlyif mysql # aggregate syntax: 
query II rowsort label-8598
SELECT DISTINCT - 28 * - + COUNT( * ) AS col1, + 5
----
28
5

skipif mysql # not compatible
query II rowsort label-8598
SELECT DISTINCT - 28 * - + COUNT ( * ) AS col1, + 5
----
28
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL + 1 + + COUNT( * ) * - 61
----
-60

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL + 1 + + COUNT ( * ) * - 61
----
-60

query I rowsort
SELECT DISTINCT + 88 * - 27 AS col0
----
-2376

query I rowsort
SELECT ALL - 29 - + 89
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT DISTINCT + - 30 * CASE + 3 WHEN + 26 * + + 18 * - + 60 * + CAST( 88 AS SIGNED ) + + + 46 * 50 THEN - + 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT + - 30 * CASE + 3 WHEN + 26 * + + 18 * - + 60 * + CAST ( 88 AS INTEGER ) + + + 46 * 50 THEN - + 29 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT + MIN( ALL + 10 ) * + 36 + + - 84
----
276

skipif mysql # not compatible
query I rowsort label-8603
SELECT + MIN ( ALL + 10 ) * + 36 + + - 84
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8604
SELECT CAST( NULL AS SIGNED ) - - 40 + COUNT( * ) + + COUNT( * ) * + MIN( ALL 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8604
SELECT CAST ( NULL AS INTEGER ) - - 40 + COUNT ( * ) + + COUNT ( * ) * + MIN ( ALL 81 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8605
SELECT - - CASE - MAX( ALL - + ( + 83 ) ) WHEN + 98 * + ( COALESCE ( + + MAX( DISTINCT - 8 ), + + 90 + - - 88 + 58 * - - COALESCE ( + 63, + 78 * - + 81 ) ) ) * + CAST( NULL AS DECIMAL ) THEN + - 5 ELSE NULL END * + ( + MAX( + ( 44 ) ) ) - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT - - CASE - MAX ( ALL - + ( + 83 ) ) WHEN + 98 * + ( COALESCE ( + + MAX ( DISTINCT - 8 ), + + 90 + - - 88 + 58 * - - COALESCE ( + 63, + 78 * - + 81 ) ) ) * + CAST ( NULL AS REAL ) THEN + - 5 ELSE NULL END * + ( + MAX ( + ( 44 ) ) ) - 8 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8606
SELECT + NULLIF ( - + CAST( NULL AS SIGNED ), - 51 * - ( - 89 ) ) * - - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT + NULLIF ( - + CAST ( NULL AS INTEGER ), - 51 * - ( - 89 ) ) * - - 21 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8607
SELECT 96 + - 80 DIV 96
----
96

skipif mysql # not compatible
query I rowsort label-8607
SELECT 96 + - 80 / 96
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8608
SELECT DISTINCT - + NULLIF ( - CAST( + + ( + - 47 ) AS SIGNED ), 39 ) * 29
----
-1363

skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT - + NULLIF ( - CAST ( + + ( + - 47 ) AS INTEGER ), 39 ) * 29
----
-1363

query I rowsort
SELECT + COALESCE ( + 13, 26 ) * + 59
----
767

onlyif mysql # DIV for integer division: 
query I rowsort label-8610
SELECT 39 * + - 87 + - ( 6 ) DIV + 82 AS col1
----
-3393

skipif mysql # not compatible
query I rowsort label-8610
SELECT 39 * + - 87 + - ( 6 ) / + 82 AS col1
----
-3393

onlyif mysql # aggregate syntax: 
query II rowsort label-8611
SELECT + + COUNT( DISTINCT + + 99 ), - MIN( - 39 ) AS col2
----
1
39

skipif mysql # not compatible
query II rowsort label-8611
SELECT + + COUNT ( DISTINCT + + 99 ), - MIN ( - 39 ) AS col2
----
1
39

query II rowsort
SELECT DISTINCT 97 AS col2, + 28
----
97
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL + 49 + 74 + + + COUNT( * ) + + 89 + - - 87 + - + NULLIF ( - - 95, - COUNT( * ) + + 98 ) AS col0
----
205

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL + 49 + 74 + + + COUNT ( * ) + + 89 + - - 87 + - + NULLIF ( - - 95, - COUNT ( * ) + + 98 ) AS col0
----
205

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT COUNT( * ) * 77 * - 26 col2
----
-2002

skipif mysql # not compatible
query I rowsort label-8614
SELECT COUNT ( * ) * 77 * - 26 col2
----
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL + 77 + - 93 + - ( 82 ) * + + 18 * COUNT( * ) * 70 AS col2
----
-103336

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL + 77 + - 93 + - ( 82 ) * + + 18 * COUNT ( * ) * 70 AS col2
----
-103336

query I rowsort
SELECT DISTINCT 30 + 42
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT COUNT( * ) - - + 11
----
12

skipif mysql # not compatible
query I rowsort label-8617
SELECT COUNT ( * ) - - + 11
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ( + 65 ) * - - COUNT( ALL + 41 ) * 92
----
5980

skipif mysql # not compatible
query I rowsort label-8618
SELECT ( + 65 ) * - - COUNT ( ALL + 41 ) * 92
----
5980

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT DISTINCT 36 + - + 50 * + COUNT( * ) + - 6
----
-20

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT 36 + - + 50 * + COUNT ( * ) + - 6
----
-20

query I rowsort
SELECT 41 * 89 AS col1
----
3649

query I rowsort
SELECT 83 + 66 - 43 + - 73 - - 18 - 58 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT ALL 29 + - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL 29 + - COUNT ( * ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT COUNT( * ) + - + 88 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT COUNT ( * ) + - + 88 AS col2
----
-87

query I rowsort
SELECT ALL - 42 * - - 72
----
-3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8625
SELECT DISTINCT 35 - ( + CAST( + - 33 AS SIGNED ) ) * - - 74 + - ( - 44 )
----
2521

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT 35 - ( + CAST ( + - 33 AS INTEGER ) ) * - - 74 + - ( - 44 )
----
2521

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT - COUNT( - 25 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8626
SELECT - COUNT ( - 25 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT SUM( + ( 82 ) ) * - ( + 13 ) + 72 AS col1
----
-994

skipif mysql # not compatible
query I rowsort label-8627
SELECT SUM ( + ( 82 ) ) * - ( + 13 ) + 72 AS col1
----
-994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8628
SELECT + COUNT( * ) + - + 79 - 35 - - 70 DIV - ( + + COALESCE ( 35, + - ( 56 ) ) ) + 38 DIV - 23
----
-116

skipif mysql # not compatible
query I rowsort label-8628
SELECT + COUNT ( * ) + - + 79 - 35 - - 70 / - ( + + COALESCE ( 35, + - ( 56 ) ) ) + 38 / - 23
----
-116

query II rowsort
SELECT + 91 AS col0, - 54
----
91
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT - 64 * 43 * + 92 + + + 55 * - COUNT( * )
----
-253239

skipif mysql # not compatible
query I rowsort label-8630
SELECT - 64 * 43 * + 92 + + + 55 * - COUNT ( * )
----
-253239

onlyif mysql # aggregate syntax: 
query II rowsort label-8631
SELECT - 92 AS col1, COUNT( * ) AS col0
----
-92
1

skipif mysql # not compatible
query II rowsort label-8631
SELECT - 92 AS col1, COUNT ( * ) AS col0
----
-92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT + 51 * - COUNT( * ) + 32 - + 62
----
-81

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT + 51 * - COUNT ( * ) + 32 - + 62
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8633
SELECT ALL + 62 DIV - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL + 62 / - COUNT ( * )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8634
SELECT CASE - - 85 WHEN - 0 - 72 THEN + 65 + CAST( NULL AS SIGNED ) * + + 5 + - + 12 END * 30 - + 13 + - CASE - + COUNT( DISTINCT - CAST( + + 73 AS SIGNED ) ) WHEN COALESCE ( + COUNT( * ), + 42 * COUNT( * ) + + COUNT( * ) + MAX( ALL + 58 ) + 64 * 6 ) THEN NULL WHEN 16 THEN - 51 * 53 END / - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT CASE - - 85 WHEN - 0 - 72 THEN + 65 + CAST ( NULL AS INTEGER ) * + + 5 + - + 12 END * 30 - + 13 + - CASE - + COUNT ( DISTINCT - CAST ( + + 73 AS INTEGER ) ) WHEN COALESCE ( + COUNT ( * ), + 42 * COUNT ( * ) + + COUNT ( * ) + MAX ( ALL + 58 ) + 64 * 6 ) THEN NULL WHEN 16 THEN - 51 * 53 END / - 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8635
SELECT + 58 DIV - 90 * - 38 * - 88 + CAST( COALESCE ( - 66, 46, + ( + 60 ) - - - 1 * ( + CASE 20 WHEN 51 THEN + AVG ( DISTINCT - 26 ) * + + 38 END ) ) AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-8635
SELECT + 58 / - 90 * - 38 * - 88 + CAST ( COALESCE ( - 66, 46, + ( + 60 ) - - - 1 * ( + CASE 20 WHEN 51 THEN + AVG ( DISTINCT - 26 ) * + + 38 END ) ) AS INTEGER )
----
-66

query I rowsort
SELECT ALL + + 61 * ( + 20 ) + + 15
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT - MAX( DISTINCT - - ( + 87 ) ) + COALESCE ( + - 56, + 48 * 24 ) AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-8637
SELECT - MAX ( DISTINCT - - ( + 87 ) ) + COALESCE ( + - 56, + 48 * 24 ) AS col2
----
-143

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8638
SELECT + 99, - CAST( NULL AS DECIMAL ) col2
----
99
NULL

skipif mysql # not compatible
query II rowsort label-8638
SELECT + 99, - CAST ( NULL AS REAL ) col2
----
99
NULL

query II rowsort
SELECT DISTINCT + - 38 AS col1, 90 + + 80 - 12 AS col2
----
-38
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT - COUNT( * ) * + - 62
----
62

skipif mysql # not compatible
query I rowsort label-8640
SELECT - COUNT ( * ) * + - 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ALL - - ( - 56 ) + - 56 + + + COUNT( * )
----
-111

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL - - ( - 56 ) + - 56 + + + COUNT ( * )
----
-111

query I rowsort
SELECT ALL + 17 + - 97 + + 41 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT - COUNT( * ) - COUNT( * ) - + + 35 * 60 * - + 10 - + 41
----
20957

skipif mysql # not compatible
query I rowsort label-8643
SELECT - COUNT ( * ) - COUNT ( * ) - + + 35 * 60 * - + 10 - + 41
----
20957

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT ALL - 45 + - COUNT( * ) + - 38 + - 76 + + + 22 col2
----
-138

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL - 45 + - COUNT ( * ) + - 38 + - 76 + + + 22 col2
----
-138

query I rowsort
SELECT ALL - ( - 98 ) + 94 + 40 + + 8
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8646
SELECT - COUNT( * ) AS col0, 78 + + - 82 - + CAST( + 8 AS SIGNED )
----
-1
-12

skipif mysql # not compatible
query II rowsort label-8646
SELECT - COUNT ( * ) AS col0, 78 + + - 82 - + CAST ( + 8 AS INTEGER )
----
-1
-12

query II rowsort
SELECT - 13, + 16 col1
----
-13
16

query I rowsort
SELECT - 42 + 98 AS col2
----
56

query I rowsort
SELECT + COALESCE ( + 59, - 72 * + + 1 ) - - 40 AS col2
----
99

query I rowsort
SELECT ALL + 46 * - 58 AS col1
----
-2668

query I rowsort
SELECT + 24 - + 53 - 58 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-8652
SELECT - 22 AS col1, - SUM( DISTINCT + - 96 ) + + 54 AS col1
----
-22
150

skipif mysql # not compatible
query II rowsort label-8652
SELECT - 22 AS col1, - SUM ( DISTINCT + - 96 ) + + 54 AS col1
----
-22
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT DISTINCT - ( - NULLIF ( + 50, + + CAST( NULL AS SIGNED ) ) ) - - COUNT( * ) - + + COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT - ( - NULLIF ( + 50, + + CAST ( NULL AS INTEGER ) ) ) - - COUNT ( * ) - + + COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT - SUM( + + 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-8654
SELECT - SUM ( + + 65 )
----
-65

query I rowsort
SELECT + 88 + - - 48
----
136

query I rowsort
SELECT ALL ( + ( 97 ) )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8657
SELECT + CAST( 81 AS SIGNED ) + - - 20 * - + 14 + - COUNT( * )
----
-200

skipif mysql # not compatible
query I rowsort label-8657
SELECT + CAST ( 81 AS INTEGER ) + - - 20 * - + 14 + - COUNT ( * )
----
-200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8658
SELECT + CAST( 55 AS SIGNED ) * - CASE + + 76 WHEN + 2 THEN NULL WHEN NULLIF ( + 99, + 86 * + 5 ) * + ( 74 ) * + 93 THEN + COALESCE ( 96, + + 22, ( + + NULLIF ( 5, - + 40 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT + CAST ( 55 AS INTEGER ) * - CASE + + 76 WHEN + 2 THEN NULL WHEN NULLIF ( + 99, + 86 * + 5 ) * + ( 74 ) * + 93 THEN + COALESCE ( 96, + + 22, ( + + NULLIF ( 5, - + 40 ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT - ( + 3 ) + - + SUM( 24 ) * 40 * - - 92 * MIN( - 90 )
----
7948797

skipif mysql # not compatible
query I rowsort label-8659
SELECT - ( + 3 ) + - + SUM ( 24 ) * 40 * - - 92 * MIN ( - 90 )
----
7948797

query I rowsort
SELECT - 52 * - 58 AS col2
----
3016

query I rowsort
SELECT + 58 * - 33 * - - 41 * + + 71
----
-5571654

onlyif mysql # aggregate syntax: 
query II rowsort label-8662
SELECT - + 0, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-8662
SELECT - + 0, + COUNT ( * ) AS col2
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8663
SELECT DISTINCT - COUNT( * ) AS col0, ( 88 ) AS col0
----
-1
88

skipif mysql # not compatible
query II rowsort label-8663
SELECT DISTINCT - COUNT ( * ) AS col0, ( 88 ) AS col0
----
-1
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8664
SELECT - - 46, NULLIF ( CAST( NULL AS SIGNED ), - + 65 + ( - + SUM( DISTINCT + - 64 ) ) * + 95 ) AS col2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-8664
SELECT - - 46, NULLIF ( CAST ( NULL AS INTEGER ), - + 65 + ( - + SUM ( DISTINCT + - 64 ) ) * + 95 ) AS col2
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT + 62 * - NULLIF ( + 51, 90 * - ( - + COUNT( * ) ) * ( 77 ) ) col1
----
-3162

skipif mysql # not compatible
query I rowsort label-8665
SELECT + 62 * - NULLIF ( + 51, 90 * - ( - + COUNT ( * ) ) * ( 77 ) ) col1
----
-3162

query I rowsort
SELECT ALL + 77 * 59 col1
----
4543

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL NULLIF ( COUNT( * ), - ( - 84 ) - - 16 + - + 31 / + - 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL NULLIF ( COUNT ( * ), - ( - 84 ) - - 16 + - + 31 / + - 78 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8668
SELECT 97 / CASE COALESCE ( + + 51, - 65 / 87 + + - MAX( ALL + 58 ) ) WHEN + 6 THEN 12 - + 9 + 70 ELSE NULL END + - 27 + - 43 * - - 60 + + + 36 AS col1, - 43
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-8668
SELECT 97 / CASE COALESCE ( + + 51, - 65 / 87 + + - MAX ( ALL + 58 ) ) WHEN + 6 THEN 12 - + 9 + 70 ELSE NULL END + - 27 + - 43 * - - 60 + + + 36 AS col1, - 43
----
NULL
-43

query II rowsort
SELECT DISTINCT + 12, + 75 AS col1
----
12
75

query I rowsort
SELECT DISTINCT + - 63 AS col1
----
-63

query I rowsort
SELECT + 38 + 32
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8672
SELECT ALL + - 73 DIV 31 + 61 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL + - 73 / 31 + 61 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8673
SELECT - 13 * - CAST( NULL AS SIGNED ) * - CASE 55 WHEN - 56 THEN 46 WHEN - - 7 THEN NULL WHEN - + 23 THEN + 43 END + - 78 / - - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT - 13 * - CAST ( NULL AS INTEGER ) * - CASE 55 WHEN - 56 THEN 46 WHEN - - 7 THEN NULL WHEN - + 23 THEN + 43 END + - 78 / - - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT - COUNT( * ) - + COUNT( * ) + + + 17 * - COALESCE ( - 30, - 22 + - COUNT( * ) )
----
508

skipif mysql # not compatible
query I rowsort label-8674
SELECT - COUNT ( * ) - + COUNT ( * ) + + + 17 * - COALESCE ( - 30, - 22 + - COUNT ( * ) )
----
508

onlyif mysql # DIV for integer division: 
query I rowsort label-8675
SELECT - + 11 DIV - ( + 38 ) + 41 DIV - 31
----
-1

skipif mysql # not compatible
query I rowsort label-8675
SELECT - + 11 / - ( + 38 ) + 41 / - 31
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT - - 53 * + - COUNT( * ) + - 80 AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-8676
SELECT - - 53 * + - COUNT ( * ) + - 80 AS col0
----
-133

onlyif mysql # aggregate syntax: 
query II rowsort label-8677
SELECT ALL + 53, COUNT( * ) + - - 81 + COUNT( * ) * + 88 AS col1
----
53
170

skipif mysql # not compatible
query II rowsort label-8677
SELECT ALL + 53, COUNT ( * ) + - - 81 + COUNT ( * ) * + 88 AS col1
----
53
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8678
SELECT - - 24 * CAST( NULL AS SIGNED ) * - + COUNT( * ) + NULLIF ( + COUNT( + + CAST( - 72 AS SIGNED ) ), - 86 / 2 * + 70 ) * 57 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT - - 24 * CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + NULLIF ( + COUNT ( + + CAST ( - 72 AS INTEGER ) ), - 86 / 2 * + 70 ) * 57 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8679
SELECT ALL + COUNT( * ) AS col0, ( + 96 ) AS col2
----
1
96

skipif mysql # not compatible
query II rowsort label-8679
SELECT ALL + COUNT ( * ) AS col0, ( + 96 ) AS col2
----
1
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8680
SELECT ALL + 51 * 64 + 58 DIV + 4 col0
----
3278

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL + 51 * 64 + 58 / + 4 col0
----
3278

query I rowsort
SELECT + 90 * - 65 * - 8 AS col1
----
46800

query I rowsort
SELECT - 95 * - 41
----
3895

query I rowsort
SELECT ALL + 1 * - 70 + 48
----
-22

query I rowsort
SELECT + 66 * - 17 * 62 AS col0
----
-69564

query I rowsort
SELECT - 59 * + 83 col0
----
-4897

query I rowsort
SELECT ALL COALESCE ( - 30, + - 65 ) * 98 AS col0
----
-2940

query I rowsort
SELECT DISTINCT + 41 * + + 97 - - - 73
----
3904

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT + 91 * + + 57 - - MIN( DISTINCT - + 40 ) col0
----
5147

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT + 91 * + + 57 - - MIN ( DISTINCT - + 40 ) col0
----
5147

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8689
SELECT ALL NULLIF ( + CAST( NULL AS DECIMAL ), - 52 + - 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL NULLIF ( + CAST ( NULL AS REAL ), - 52 + - 50 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT COUNT( * ) * + 79 - 77 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT COUNT ( * ) * + 79 - 77 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT DISTINCT ( + SUM( DISTINCT - 64 ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT ( + SUM ( DISTINCT - 64 ) ) AS col0
----
-64

query I rowsort
SELECT - ( 83 ) - - + COALESCE ( + 46, + 84 ) AS col0
----
-37

query I rowsort
SELECT - ( 66 ) * 31 + 33
----
-2013

query I rowsort
SELECT - NULLIF ( - + 34, + ( - 98 ) ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8695
SELECT DISTINCT + CASE + - 32 WHEN + CAST( + 52 AS SIGNED ) THEN 80 + 35 * - MIN( DISTINCT 87 ) END * + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT + CASE + - 32 WHEN + CAST ( + 52 AS INTEGER ) THEN 80 + 35 * - MIN ( DISTINCT 87 ) END * + + 11
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8696
SELECT - - 18 DIV + 17 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8696
SELECT - - 18 / + 17 AS col1
----
1

query I rowsort
SELECT - 55 + - 10 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT DISTINCT - 96 * 95 + - - 0 + 41 * + ( SUM( + 83 ) ) * + 94 * + 12 AS col0
----
3829464

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT - 96 * 95 + - - 0 + 41 * + ( SUM ( + 83 ) ) * + 94 * + 12 AS col0
----
3829464

onlyif mysql # aggregate syntax: 
query II rowsort label-8699
SELECT ALL CASE 60 WHEN - - 21 THEN NULL WHEN - 4 THEN - 87 ELSE NULL END, 87 * + SUM( ALL - ( - + 63 ) ) col1
----
NULL
5481

skipif mysql # not compatible
query II rowsort label-8699
SELECT ALL CASE 60 WHEN - - 21 THEN NULL WHEN - 4 THEN - 87 ELSE NULL END, 87 * + SUM ( ALL - ( - + 63 ) ) col1
----
NULL
5481

query I rowsort
SELECT DISTINCT - - 19 * + 50
----
950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT + - 68 - - 81 + - 88 + + CAST( + 43 AS SIGNED ) + - COUNT( - + 12 )
----
-33

skipif mysql # not compatible
query I rowsort label-8701
SELECT + - 68 - - 81 + - 88 + + CAST ( + 43 AS INTEGER ) + - COUNT ( - + 12 )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8702
SELECT ALL - COALESCE ( + COUNT( * ), COALESCE ( - + 15, + ( + + 21 ), - 98 ) ) + 85 + COUNT( * ) DIV - 43 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - COALESCE ( + COUNT ( * ), COALESCE ( - + 15, + ( + + 21 ), - 98 ) ) + 85 + COUNT ( * ) / - 43 AS col0
----
84

query I rowsort
SELECT - 22 * + 45 + 56
----
-934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8704
SELECT + CAST( - - 21 AS SIGNED ) * 69 AS col1
----
1449

skipif mysql # not compatible
query I rowsort label-8704
SELECT + CAST ( - - 21 AS INTEGER ) * 69 AS col1
----
1449

query I rowsort
SELECT DISTINCT 70 + - 70
----
0

query I rowsort
SELECT 89 + - 97 AS col2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8707
SELECT COUNT( * ) DIV - 84 - + - 63
----
63

skipif mysql # not compatible
query I rowsort label-8707
SELECT COUNT ( * ) / - 84 - + - 63
----
63

query I rowsort
SELECT + COALESCE ( + + 62, 13, + - 73, 78 ) + + 33
----
95

query I rowsort
SELECT - - 64 * 23 - + 51 col0
----
1421

query II rowsort
SELECT DISTINCT 97 + - 35, 27 + - + 90 AS col0
----
62
-63

query I rowsort
SELECT DISTINCT - 52 + - 27
----
-79

query I rowsort
SELECT ALL + 30 + - - 45 AS col1
----
75

query I rowsort
SELECT DISTINCT - 72 + - ( + 56 ) AS col1
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8714
SELECT DISTINCT - 3 + MAX( - 19 ) - 93 DIV 18 DIV - - 29
----
-22

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT - 3 + MAX ( - 19 ) - 93 / 18 / - - 29
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8715
SELECT 64 DIV - ( + + 63 ) - - SUM( - - 74 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8715
SELECT 64 / - ( + + 63 ) - - SUM ( - - 74 ) AS col1
----
73

query II rowsort
SELECT 85, + 38 col0
----
85
38

query II rowsort
SELECT + 96 col0, 75
----
96
75

query I rowsort
SELECT ( + + 24 ) + - 79
----
-55

query I rowsort
SELECT - 57 * 79 + 57 * 36
----
-2451

query II rowsort
SELECT + 6 AS col1, - 43 AS col0
----
6
-43

query I rowsort
SELECT + 7 * - 79 - + + 68 AS col0
----
-621

query II rowsort
SELECT ALL - 5 AS col2, COALESCE ( - - 0, 81 - 32 )
----
-5
0

query I rowsort
SELECT 82 * 61 AS col1
----
5002

onlyif mysql # DIV for integer division: 
query I rowsort label-8724
SELECT DISTINCT 12 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT 12 / + 43
----
0

query II rowsort
SELECT 9 col2, - 8 * - 25 AS col2
----
9
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8726
SELECT 66 + - 47 + + + CASE - 31 WHEN 5 THEN NULL WHEN 68 THEN + 36 END + - ( - CAST( NULL AS SIGNED ) ) + + 60 * COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT 66 + - 47 + + + CASE - 31 WHEN 5 THEN NULL WHEN 68 THEN + 36 END + - ( - CAST ( NULL AS INTEGER ) ) + + 60 * COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 83 * - + 39 AS col0
----
3237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8728
SELECT CAST( COUNT( * ) AS SIGNED ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8728
SELECT CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8729
SELECT 11 - + + CAST( + COUNT( * ) AS SIGNED ) + - 2 - + 59 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-8729
SELECT 11 - + + CAST ( + COUNT ( * ) AS INTEGER ) + - 2 - + 59 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8730
SELECT CAST( COUNT( * ) AS SIGNED ) * 86 col0
----
86

skipif mysql # not compatible
query I rowsort label-8730
SELECT CAST ( COUNT ( * ) AS INTEGER ) * 86 col0
----
86

query I rowsort
SELECT 17 * - - CASE 5 WHEN + - 36 * 64 THEN - 91 END / + 53 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 69 * + 91 AS col1
----
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT - 44 + + CASE - + MAX( ALL + 22 ) WHEN - 90 * - + 76 THEN - ( + 37 ) * 10 ELSE NULL END * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8733
SELECT - 44 + + CASE - + MAX ( ALL + 22 ) WHEN - 90 * - + 76 THEN - ( + 37 ) * 10 ELSE NULL END * + 63
----
NULL

query I rowsort
SELECT ALL 14 * - - ( - + 28 )
----
-392

query I rowsort
SELECT DISTINCT - 8 + + 51
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT DISTINCT - - 17 + - - 58 - - - MAX( DISTINCT 61 )
----
14

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT - - 17 + - - 58 - - - MAX ( DISTINCT 61 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL - COUNT( ALL + 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL - COUNT ( ALL + 67 ) AS col1
----
-1

query I rowsort
SELECT ALL + 75 + 95 col1
----
170

query I rowsort
SELECT ALL - 17 + - + 61 AS col1
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8740
SELECT COUNT( * ) AS col1, + 50 DIV + SUM( + 42 )
----
1
1

skipif mysql # not compatible
query II rowsort label-8740
SELECT COUNT ( * ) AS col1, + 50 / + SUM ( + 42 )
----
1
1

query I rowsort
SELECT + 33 + + 45 AS col2
----
78

query II rowsort
SELECT 92 AS col1, + 68 AS col0
----
92
68

query I rowsort
SELECT 11 + + - 39 + + + 88 * - 15 * 7 col1
----
-9268

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT - 74 * + 93 * - + COUNT( * ) * - 76 col2
----
-523032

skipif mysql # not compatible
query I rowsort label-8744
SELECT - 74 * + 93 * - + COUNT ( * ) * - 76 col2
----
-523032

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL - + MAX( - + 39 ) * COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL - + MAX ( - + 39 ) * COUNT ( * ) AS col0
----
39

query I rowsort
SELECT ALL - 73 + + 10 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT 3 + - + 53 - 45 + + COUNT( * ) + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-8747
SELECT 3 + - + 53 - 45 + + COUNT ( * ) + COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL - + COUNT( ALL - 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - + COUNT ( ALL - 4 )
----
-1

query I rowsort
SELECT - 40 * - 28 + - ( 58 ) AS col2
----
1062

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT + 10 * 65 - MIN( DISTINCT 29 )
----
621

skipif mysql # not compatible
query I rowsort label-8750
SELECT + 10 * 65 - MIN ( DISTINCT 29 )
----
621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8751
SELECT 18 * + + 84 + + CAST( NULL AS SIGNED ) * 64 * + 95 + - COUNT( * ) AS col1, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-8751
SELECT 18 * + + 84 + + CAST ( NULL AS INTEGER ) * 64 * + 95 + - COUNT ( * ) AS col1, 41
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT + COUNT( * ) - 52 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-8752
SELECT + COUNT ( * ) - 52 AS col2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8753
SELECT DISTINCT - 13 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT - 13 / 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT + COUNT( 43 ) * - 26 + NULLIF ( - + 51, + 1 )
----
-77

skipif mysql # not compatible
query I rowsort label-8754
SELECT + COUNT ( 43 ) * - 26 + NULLIF ( - + 51, + 1 )
----
-77

query I rowsort
SELECT 51 * + ( 17 )
----
867

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8756
SELECT DISTINCT - CAST( + 7 AS DECIMAL ) - - 74 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT - CAST ( + 7 AS REAL ) - - 74 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT + COUNT( + 49 )
----
1

skipif mysql # not compatible
query I rowsort label-8757
SELECT + COUNT ( + 49 )
----
1

query I rowsort
SELECT 86 + - - 55 * - 45 * 48 + - 46 AS col1
----
-118760

query I rowsort
SELECT ALL 71 * 31 * + 66 col1
----
145266

query I rowsort
SELECT 92 * + 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL 88 * MAX( - - 90 )
----
7920

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL 88 * MAX ( - - 90 )
----
7920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8762
SELECT ( - + AVG ( DISTINCT - + 57 ) ) + + 9 * 16 / + - 64 + - + CASE 17 WHEN + CASE - 36 WHEN 35 * + - 20 THEN - COUNT( * ) * + ( - COUNT( * ) ) WHEN + 42 * 0 + AVG ( ALL - - 98 ) * 13 + + MAX( ALL 33 ) / + 65 * - COUNT( * ) THEN NULL WHEN - 97 THEN NULL END / 68 THEN NULL WHEN + 57 + SUM( + CASE - 85 WHEN + 0 THEN + CAST( + 5 AS SIGNED ) ELSE NULL END ) THEN 39 END + CAST( 95 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8762
SELECT ( - + AVG ( DISTINCT - + 57 ) ) + + 9 * 16 / + - 64 + - + CASE 17 WHEN + CASE - 36 WHEN 35 * + - 20 THEN - COUNT ( * ) * + ( - COUNT ( * ) ) WHEN + 42 * 0 + AVG ( ALL - - 98 ) * 13 + + MAX ( ALL 33 ) / + 65 * - COUNT ( * ) THEN NULL WHEN - 97 THEN NULL END / 68 THEN NULL WHEN + 57 + SUM ( + CASE - 85 WHEN + 0 THEN + CAST ( + 5 AS INTEGER ) ELSE NULL END ) THEN 39 END + CAST ( 95 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 75 * + 13 AS col2
----
975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT DISTINCT 58 + CAST( 17 AS SIGNED ) * + 58 AS col2
----
1044

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT 58 + CAST ( 17 AS INTEGER ) * + 58 AS col2
----
1044

query I rowsort
SELECT ALL 87 + - 99 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT - 79 + ( SUM( + + 17 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT - 79 + ( SUM ( + + 17 ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL - 21 + + + NULLIF ( - 81, - + 70 * + + 55 - + + ( + COUNT( * ) ) ) AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL - 21 + + + NULLIF ( - 81, - + 70 * + + 55 - + + ( + COUNT ( * ) ) ) AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT - + MIN( + - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-8768
SELECT - + MIN ( + - 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8769
SELECT + + CAST( NULL AS SIGNED ) - - 1 AS col2, 41 AS col0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-8769
SELECT + + CAST ( NULL AS INTEGER ) - - 1 AS col2, 41 AS col0
----
NULL
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8770
SELECT ALL - 29 * 13 DIV - 95 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL - 29 * 13 / - 95 AS col0
----
3

query I rowsort
SELECT + - 66 - + + 82 AS col1
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8772
SELECT ALL 48 * - - COUNT( * ) * - COALESCE ( + 57, + 28 * + 24 + + + MIN( ALL + 5 ) DIV + + 8, + COUNT( * ) ) AS col2
----
-2736

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL 48 * - - COUNT ( * ) * - COALESCE ( + 57, + 28 * + 24 + + + MIN ( ALL + 5 ) / + + 8, + COUNT ( * ) ) AS col2
----
-2736

query I rowsort
SELECT DISTINCT + 96 + - - 44 + 22 * + + 69 * - ( ( + 14 ) ) * 22 * + + 34 + - 62 col0
----
-15896418

query II rowsort
SELECT + + 91 + + + 69, - 37 AS col2
----
160
-37

query I rowsort
SELECT ALL + ( 10 ) + - 68 * 56
----
-3798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8776
SELECT ALL CAST( NULL AS SIGNED ) * - - ( - 31 ) * + - COUNT( * ) + + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL CAST ( NULL AS INTEGER ) * - - ( - 31 ) * + - COUNT ( * ) + + - 57
----
NULL

query I rowsort
SELECT - - CASE 62 WHEN 13 THEN - 2 * - + 8 END * + ( 78 ) * + + 58 + - 0 + - 8 - + - 6 AS col2
----
NULL

query I rowsort
SELECT - 58 - + 28
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL + 3 - - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL + 3 - - - COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT + 20 * + MAX( + 63 ) AS col0
----
1260

skipif mysql # not compatible
query I rowsort label-8780
SELECT + 20 * + MAX ( + 63 ) AS col0
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT MIN( ALL - - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-8781
SELECT MIN ( ALL - - 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL + ( - SUM( ( + 2 ) ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL + ( - SUM ( ( + 2 ) ) ) AS col0
----
-2

query I rowsort
SELECT ALL - 78 * - 63 - - - 93 + - 30 * - 64 + - 22 AS col0
----
6719

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT - COUNT( * ) + + ( + 12 ) - + 12 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8784
SELECT - COUNT ( * ) + + ( + 12 ) - + 12 AS col0
----
-1

query II rowsort
SELECT + 94 AS col0, 59
----
94
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8786
SELECT DISTINCT - 0 * + COALESCE ( - 56, - - 69 * - CAST( - 6 AS SIGNED ) * - 66 * MIN( - 7 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT - 0 * + COALESCE ( - 56, - - 69 * - CAST ( - 6 AS INTEGER ) * - 66 * MIN ( - 7 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8787
SELECT - SUM( 56 ) * - 12 DIV 12
----
56

skipif mysql # not compatible
query I rowsort label-8787
SELECT - SUM ( 56 ) * - 12 / 12
----
56

query II rowsort
SELECT ALL - 28 * - ( + - 11 ) AS col2, + 79
----
-308
79

query I rowsort
SELECT ( + 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT DISTINCT + NULLIF ( - + COUNT( * ), - COUNT( + + 91 ) * + COUNT( * ) + + + SUM( - 91 ) / - - 27 * + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT + NULLIF ( - + COUNT ( * ), - COUNT ( + + 91 ) * + COUNT ( * ) + + + SUM ( - 91 ) / - - 27 * + - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT DISTINCT + 10 * SUM( ALL + 8 ) * + - 49
----
-3920

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT + 10 * SUM ( ALL + 8 ) * + - 49
----
-3920

query I rowsort
SELECT DISTINCT + 1 * + 56 * + 56
----
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT - SUM( DISTINCT + + 34 ) * - 61 * - 61 AS col2
----
-126514

skipif mysql # not compatible
query I rowsort label-8793
SELECT - SUM ( DISTINCT + + 34 ) * - 61 * - 61 AS col2
----
-126514

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT DISTINCT + COALESCE ( 10, - 40 + - 77, - + 75 * COUNT( * ) * 43 * + + 97 * 85 )
----
10

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT + COALESCE ( 10, - 40 + - 77, - + 75 * COUNT ( * ) * 43 * + + 97 * 85 )
----
10

query I rowsort
SELECT - 53 + - 44 AS col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8796
SELECT ALL + 65 DIV + 91 col2
----
0

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL + 65 / + 91 col2
----
0

query I rowsort
SELECT + 35 * - 97 * 89 AS col0
----
-302155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8798
SELECT COALESCE ( + - SUM( - - 78 ), - + CAST( NULL AS SIGNED ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8798
SELECT COALESCE ( + - SUM ( - - 78 ), - + CAST ( NULL AS INTEGER ) ) AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8799
SELECT DISTINCT + COALESCE ( - + ( + 64 ), + - 89, - 0 * - - 59 DIV NULLIF ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), - 83 + - + 48 + - - 53 + + 90 + 12 - - + 19 * - + 45 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT + COALESCE ( - + ( + 64 ), + - 89, - 0 * - - 59 / NULLIF ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), - 83 + - + 48 + - - 53 + + 90 + 12 - - + 19 * - + 45 ) )
----
-64

query I rowsort
SELECT 56 * + 97 - - 72 + - 7
----
5497

query I rowsort
SELECT DISTINCT 4 * + 53 + 40 AS col0
----
252

query I rowsort
SELECT + 75 + - ( + 90 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8803
SELECT ALL CAST( 81 AS SIGNED ) * - ( - 48 ) - + ( - 79 ) + + ( + - 87 ), 7 AS col1
----
3880
7

skipif mysql # not compatible
query II rowsort label-8803
SELECT ALL CAST ( 81 AS INTEGER ) * - ( - 48 ) - + ( - 79 ) + + ( + - 87 ), 7 AS col1
----
3880
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8804
SELECT - MAX( ALL - 53 ) * - COALESCE ( + + 68, - + MAX( ALL - 10 ) ) + - + ( + 55 ) + - 57 DIV + 12 + - - 17 - - 42
----
-3604

skipif mysql # not compatible
query I rowsort label-8804
SELECT - MAX ( ALL - 53 ) * - COALESCE ( + + 68, - + MAX ( ALL - 10 ) ) + - + ( + 55 ) + - 57 / + 12 + - - 17 - - 42
----
-3604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8805
SELECT + CASE WHEN 22 BETWEEN - + 84 AND NULL THEN + MAX( - + 39 ) END * + - 49 + + CAST( + - 39 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT + CASE WHEN 22 BETWEEN - + 84 AND NULL THEN + MAX ( - + 39 ) END * + - 49 + + CAST ( + - 39 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL - 23 * + 17 * + COUNT( * ) + - 93 + - 22 + - 29 + + 24 * 70 * - 24 col0
----
-40855

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL - 23 * + 17 * + COUNT ( * ) + - 93 + - 22 + - 29 + + 24 * 70 * - 24 col0
----
-40855

query I rowsort
SELECT 89 * - - 46 - - 40 AS col0
----
4134

query I rowsort
SELECT + 6 + + + 67 col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8809
SELECT 47 AS col0, - COUNT( * )
----
47
-1

skipif mysql # not compatible
query II rowsort label-8809
SELECT 47 AS col0, - COUNT ( * )
----
47
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8810
SELECT ALL 59 + - + 19 + - COUNT( * ) - 15 + + MIN( + - 46 ) + - 51 + - 14 * 25 * + + ( - 40 ) * + 74 DIV + COUNT( * ) * - - COUNT( * ) + + COUNT( * ) * - 56 AS col2
----
1035871

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL 59 + - + 19 + - COUNT ( * ) - 15 + + MIN ( + - 46 ) + - 51 + - 14 * 25 * + + ( - 40 ) * + 74 / + COUNT ( * ) * - - COUNT ( * ) + + COUNT ( * ) * - 56 AS col2
----
1035871

query I rowsort
SELECT + - 29 * + 44 * 57 AS col2
----
-72732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT - CAST( + 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-8812
SELECT - CAST ( + 15 AS INTEGER )
----
-15

query I rowsort
SELECT + - 79 + + + 81
----
2

query I rowsort
SELECT ALL - 73 - 31
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT + 4 + + COUNT( * ) * - 16 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-8815
SELECT + 4 + + COUNT ( * ) * - 16 AS col2
----
-12

query I rowsort
SELECT DISTINCT - 40 * + 83
----
-3320

onlyif mysql # DIV for integer division: 
query I rowsort label-8817
SELECT + 18 + + 9 DIV - - 17
----
18

skipif mysql # not compatible
query I rowsort label-8817
SELECT + 18 + + 9 / - - 17
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT - 92 DIV + 17
----
-5

skipif mysql # not compatible
query I rowsort label-8818
SELECT - 92 / + 17
----
-5

query I rowsort
SELECT ALL 75 * 93
----
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT - COALESCE ( - - CASE + - 96 WHEN + COUNT( * ) THEN 91 ELSE - 87 * 62 END, 91 ) AS col0
----
5394

skipif mysql # not compatible
query I rowsort label-8820
SELECT - COALESCE ( - - CASE + - 96 WHEN + COUNT ( * ) THEN 91 ELSE - 87 * 62 END, 91 ) AS col0
----
5394

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8821
SELECT ALL ( - - 6 ) AS col1, CAST( NULL AS DECIMAL ) AS col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-8821
SELECT ALL ( - - 6 ) AS col1, CAST ( NULL AS REAL ) AS col0
----
6
NULL

query II rowsort
SELECT ALL + 15 col2, 52 - + 36
----
15
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT + ( COUNT( ALL - 51 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8823
SELECT + ( COUNT ( ALL - 51 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT - 65 + CAST( NULL AS SIGNED ) + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT - 65 + CAST ( NULL AS INTEGER ) + + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT NULLIF ( - SUM( ALL 48 ), - - 59 ) * + 53 + + ( - - 58 ) * - - 84 * - MAX( DISTINCT 81 ) AS col1
----
-397176

skipif mysql # not compatible
query I rowsort label-8825
SELECT NULLIF ( - SUM ( ALL 48 ), - - 59 ) * + 53 + + ( - - 58 ) * - - 84 * - MAX ( DISTINCT 81 ) AS col1
----
-397176

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT - NULLIF ( 20, + - 49 ) * SUM( - - 78 ) AS col0
----
-1560

skipif mysql # not compatible
query I rowsort label-8826
SELECT - NULLIF ( 20, + - 49 ) * SUM ( - - 78 ) AS col0
----
-1560

query I rowsort
SELECT - 44 * - 47 + + 47
----
2115

onlyif mysql # DIV for integer division: 
query II rowsort label-8828
SELECT ALL 63 DIV - ( - 58 ) + + - COALESCE ( + 5, + 18 ) col0, 51 - 46
----
-4
5

skipif mysql # not compatible
query II rowsort label-8828
SELECT ALL 63 / - ( - 58 ) + + - COALESCE ( + 5, + 18 ) col0, 51 - 46
----
-4
5

query II rowsort
SELECT + 18 AS col2, 12 AS col1
----
18
12

query II rowsort
SELECT DISTINCT + 17 AS col2, 13
----
17
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8831
SELECT ALL 56 DIV - 52 + 14
----
13

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL 56 / - 52 + 14
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8832
SELECT DISTINCT COUNT( * ) DIV + - 14 + - + 13 * + + 64 + - - 51 AS col2
----
-781

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT COUNT ( * ) / + - 14 + - + 13 * + + 64 + - - 51 AS col2
----
-781

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT ALL 0 DIV + 6 + + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL 0 / + 6 + + 57 AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8834
SELECT ALL + 17 DIV MAX( + 42 ) * - + ( - COUNT( * ) ) * + 2 + + 61
----
61

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL + 17 / MAX ( + 42 ) * - + ( - COUNT ( * ) ) * + 2 + + 61
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8835
SELECT - CAST( COUNT( * ) AS SIGNED ) * 10 + + + 67 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8835
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * 10 + + + 67 AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8836
SELECT ALL NULLIF ( NULLIF ( COALESCE ( + COUNT( DISTINCT - - 85 ), + AVG ( ALL - - 28 ) * + - 98 ), + 89 ), + 62 ) DIV - - 77 * 61 * 17 + MIN( DISTINCT - 70 ) + + - COUNT( ALL - - 78 )
----
-71

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL NULLIF ( NULLIF ( COALESCE ( + COUNT ( DISTINCT - - 85 ), + AVG ( ALL - - 28 ) * + - 98 ), + 89 ), + 62 ) / - - 77 * 61 * 17 + MIN ( DISTINCT - 70 ) + + - COUNT ( ALL - - 78 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8837
SELECT + ( + 40 ) * - - COALESCE ( + ( - CASE - - 30 WHEN 45 + 5 THEN NULL WHEN 99 * + 77 THEN NULL WHEN + 93 + - 52 THEN NULL WHEN - - 92 + 47 * + 33 * 50 THEN + 86 ELSE NULL END ), - 92 * - - 20 * + CAST( + + 10 AS SIGNED ) + + MAX( ALL - 30 ) * + 41 * 15 + COUNT( + 50 ) * + 9 )
----
-1473640

skipif mysql # not compatible
query I rowsort label-8837
SELECT + ( + 40 ) * - - COALESCE ( + ( - CASE - - 30 WHEN 45 + 5 THEN NULL WHEN 99 * + 77 THEN NULL WHEN + 93 + - 52 THEN NULL WHEN - - 92 + 47 * + 33 * 50 THEN + 86 ELSE NULL END ), - 92 * - - 20 * + CAST ( + + 10 AS INTEGER ) + + MAX ( ALL - 30 ) * + 41 * 15 + COUNT ( + 50 ) * + 9 )
----
-1473640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8838
SELECT ALL - SUM( ALL COALESCE ( - 40, 62 + + + 46 + + 20 - CAST( - 93 AS SIGNED ) + 72 * + - ( + 38 ) DIV 2 + - - ( + - 14 ) * - 96 ) )
----
40

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL - SUM ( ALL COALESCE ( - 40, 62 + + + 46 + + 20 - CAST ( - 93 AS INTEGER ) + 72 * + - ( + 38 ) / 2 + - - ( + - 14 ) * - 96 ) )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8839
SELECT - MAX( ALL - 29 ) DIV + + 76
----
0

skipif mysql # not compatible
query I rowsort label-8839
SELECT - MAX ( ALL - 29 ) / + + 76
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT - 47 + + + CAST( 40 AS SIGNED ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8840
SELECT - 47 + + + CAST ( 40 AS INTEGER ) AS col2
----
-7

query I rowsort
SELECT DISTINCT + 96 + - 80 col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL - COUNT( * ) + 39 * + - 67 AS col2
----
-2614

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL - COUNT ( * ) + 39 * + - 67 AS col2
----
-2614

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8843
SELECT DISTINCT - 80 DIV + + CAST( + 40 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT - 80 / + + CAST ( + 40 AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ALL - SUM( DISTINCT - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL - SUM ( DISTINCT - 27 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT + CAST( NULL AS SIGNED ) / - 34 * 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT + CAST ( NULL AS INTEGER ) / - 34 * 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8846
SELECT ALL 52 * COUNT( * ), 83 AS col0
----
52
83

skipif mysql # not compatible
query II rowsort label-8846
SELECT ALL 52 * COUNT ( * ), 83 AS col0
----
52
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT DISTINCT - NULLIF ( + - 76, + COUNT( * ) ) - - - 76 + + 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT - NULLIF ( + - 76, + COUNT ( * ) ) - - - 76 + + 91 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8848
SELECT ALL - - 68 - - + 68 + 89 * COUNT( * ) * + CASE + + ( - + 88 ) WHEN CAST( + - ( + 45 ) AS SIGNED ) THEN NULL WHEN + 35 THEN + 98 * - + COUNT( * ) + 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL - - 68 - - + 68 + 89 * COUNT ( * ) * + CASE + + ( - + 88 ) WHEN CAST ( + - ( + 45 ) AS INTEGER ) THEN NULL WHEN + 35 THEN + 98 * - + COUNT ( * ) + 8 END
----
NULL

query I rowsort
SELECT NULLIF ( + - 24, + + 59 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT - 93 - + 11 + + 88 + - - COUNT( * ) * - 33
----
-49

skipif mysql # not compatible
query I rowsort label-8850
SELECT - 93 - + 11 + + 88 + - - COUNT ( * ) * - 33
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT ALL CAST( NULL AS SIGNED ) * - ( + + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL CAST ( NULL AS INTEGER ) * - ( + + 69 )
----
NULL

query II rowsort
SELECT ( 2 ) col1, 67 * + - 16
----
2
-1072

onlyif mysql # DIV for integer division: 
query I rowsort label-8853
SELECT 58 - + 18 + + 12 DIV + + 47
----
40

skipif mysql # not compatible
query I rowsort label-8853
SELECT 58 - + 18 + + 12 / + + 47
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-8854
SELECT - 20, 75 DIV - 35 AS col2
----
-20
-2

skipif mysql # not compatible
query II rowsort label-8854
SELECT - 20, 75 / - 35 AS col2
----
-20
-2

query I rowsort
SELECT + 85 + - 57
----
28

query I rowsort
SELECT DISTINCT + ( - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8857
SELECT DISTINCT + 63 AS col2, - NULLIF ( 41, - + 38 ) * + 13 * + COUNT( * ) AS col0
----
63
-533

skipif mysql # not compatible
query II rowsort label-8857
SELECT DISTINCT + 63 AS col2, - NULLIF ( 41, - + 38 ) * + 13 * + COUNT ( * ) AS col0
----
63
-533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8858
SELECT + 43 AS col2, CAST( + - NULLIF ( - 11, 50 + + 27 ) AS SIGNED ) + - CASE - 35 WHEN 19 + - COUNT( * ) THEN + 76 * + MAX( - 38 ) + + - CAST( 30 AS SIGNED ) END AS col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-8858
SELECT + 43 AS col2, CAST ( + - NULLIF ( - 11, 50 + + 27 ) AS INTEGER ) + - CASE - 35 WHEN 19 + - COUNT ( * ) THEN + 76 * + MAX ( - 38 ) + + - CAST ( 30 AS INTEGER ) END AS col1
----
43
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - ( + - ( + - 53 ) ), - 41 )
----
53

query II rowsort
SELECT DISTINCT 87 AS col1, + 49
----
87
49

onlyif mysql # aggregate syntax: 
query II rowsort label-8861
SELECT ( + + 68 ) * - 40 * + 10 + + + 11 AS col2, - COUNT( * ) AS col2
----
-27189
-1

skipif mysql # not compatible
query II rowsort label-8861
SELECT ( + + 68 ) * - 40 * + 10 + + + 11 AS col2, - COUNT ( * ) AS col2
----
-27189
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT DISTINCT COALESCE ( - - 45, COUNT( - 30 ) + 49 ) * - + 2 * + 99 AS col1
----
-8910

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT COALESCE ( - - 45, COUNT ( - 30 ) + 49 ) * - + 2 * + 99 AS col1
----
-8910

query I rowsort
SELECT ALL 72 + - + 66 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8864
SELECT 66 * - ( - 76 ) AS col0, 37 DIV 72 col1, + COUNT( * ) + - 30 - + 98 AS col2
----
5016
0
-127

skipif mysql # not compatible
query III rowsort label-8864
SELECT 66 * - ( - 76 ) AS col0, 37 / 72 col1, + COUNT ( * ) + - 30 - + 98 AS col2
----
5016
0
-127

query I rowsort
SELECT 2 * + 69 AS col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT MAX( DISTINCT + + 12 ) * + - 55 + - 29 AS col0
----
-689

skipif mysql # not compatible
query I rowsort label-8866
SELECT MAX ( DISTINCT + + 12 ) * + - 55 + - 29 AS col0
----
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL + ( - MAX( + 42 ) ) + - + 96
----
-138

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + ( - MAX ( + 42 ) ) + - + 96
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ( - 8 ) * + - 57 / CASE - + COUNT( * ) WHEN + 66 - + COUNT( * ) * - 68 THEN NULL WHEN - + AVG ( ALL + 41 ) * + 99 THEN - - SUM( + 77 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT ( - 8 ) * + - 57 / CASE - + COUNT ( * ) WHEN + 66 - + COUNT ( * ) * - 68 THEN NULL WHEN - + AVG ( ALL + 41 ) * + 99 THEN - - SUM ( + 77 ) END
----
NULL

query I rowsort
SELECT ALL 6 + 93
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8870
SELECT CAST( + 92 AS SIGNED ) * - - 28 + + 48 + - COUNT( * ) DIV + 34 AS col2
----
2624

skipif mysql # not compatible
query I rowsort label-8870
SELECT CAST ( + 92 AS INTEGER ) * - - 28 + + 48 + - COUNT ( * ) / + 34 AS col2
----
2624

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT ( - + 58 ) + - 65 DIV 31 * + 17 + - - 93
----
1

skipif mysql # not compatible
query I rowsort label-8871
SELECT ( - + 58 ) + - 65 / 31 * + 17 + - - 93
----
1

query I rowsort
SELECT 26 * + 20 AS col1
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT COUNT( * ) + - - ( + 59 )
----
60

skipif mysql # not compatible
query I rowsort label-8873
SELECT COUNT ( * ) + - - ( + 59 )
----
60

query I rowsort
SELECT - 64 * + ( + 24 ) + + 79 * + 77 * + + 5 col1
----
28879

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ALL + + 7 - + MAX( ALL + ( 72 ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL + + 7 - + MAX ( ALL + ( 72 ) ) AS col1
----
-65

query I rowsort
SELECT ALL - - 37 col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT ALL - + 32 * - COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL - + 32 * - COUNT ( * ) AS col2
----
32

query I rowsort
SELECT - 11 + - + 19
----
-30

query I rowsort
SELECT + 20 * + 89 + + 95 * 90
----
10330

query I rowsort
SELECT 47 + - 63
----
-16

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8881
SELECT DISTINCT - - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT - - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * + 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT + 49 * COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT + 49 * COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8883
SELECT ( - - 38 ) * - 13 + - + 73 DIV + 80 + + + 51 * + 94, COUNT( * ) AS col0
----
4300
1

skipif mysql # not compatible
query II rowsort label-8883
SELECT ( - - 38 ) * - 13 + - + 73 / + 80 + + + 51 * + 94, COUNT ( * ) AS col0
----
4300
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8884
SELECT 24 DIV ( - COUNT( * ) ) * - 75 AS col1
----
1800

skipif mysql # not compatible
query I rowsort label-8884
SELECT 24 / ( - COUNT ( * ) ) * - 75 AS col1
----
1800

query I rowsort
SELECT + 86 * 13
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT COUNT( ALL - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-8886
SELECT COUNT ( ALL - 90 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8887
SELECT 72 + - 59 + - + CAST( NULL AS SIGNED ) + + - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8887
SELECT 72 + - 59 + - + CAST ( NULL AS INTEGER ) + + - 14 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8888
SELECT 3 DIV - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8888
SELECT 3 / - 33 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8889
SELECT ALL - + COUNT( * ) DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL - + COUNT ( * ) / + 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT ALL 71 * - COUNT( + - 74 ) + - 65 - + 37
----
-173

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL 71 * - COUNT ( + - 74 ) + - 65 - + 37
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT 95 + - - 10 + COUNT( * )
----
106

skipif mysql # not compatible
query I rowsort label-8891
SELECT 95 + - - 10 + COUNT ( * )
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT 42 + + COALESCE ( SUM( - 78 ), 52 * + 99 + - - 51 ) - + 12 * + - CASE COALESCE ( + 76, - - ( 78 ), - - 75, + - 60 ) WHEN + 1 THEN + + 74 / - 45 END + + + COUNT( * ) + - - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT 42 + + COALESCE ( SUM ( - 78 ), 52 * + 99 + - - 51 ) - + 12 * + - CASE COALESCE ( + 76, - - ( 78 ), - - 75, + - 60 ) WHEN + 1 THEN + + 74 / - 45 END + + + COUNT ( * ) + - - 82
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 68, 46 )
----
-68

query I rowsort
SELECT 57 + - 91 * 26 AS col1
----
-2309

onlyif mysql # aggregate syntax: 
query II rowsort label-8895
SELECT - 44 AS col1, COUNT( * ) AS col2
----
-44
1

skipif mysql # not compatible
query II rowsort label-8895
SELECT - 44 AS col1, COUNT ( * ) AS col2
----
-44
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8896
SELECT 66 + 52 * + NULLIF ( - ( - CASE + COUNT( * ) WHEN 92 + 35 THEN 5 END ), - 56 + 83 - - 47 * 66 / + 7 - + 14 * - + 81 ), + 91 col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-8896
SELECT 66 + 52 * + NULLIF ( - ( - CASE + COUNT ( * ) WHEN 92 + 35 THEN 5 END ), - 56 + 83 - - 47 * 66 / + 7 - + 14 * - + 81 ), + 91 col1
----
NULL
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8897
SELECT ALL 24 * + 4 * - 98 * + CASE - 35 WHEN + 65 THEN NULL WHEN 52 THEN NULL ELSE - - COUNT( * ) * COALESCE ( - COUNT( * ), 65 * - 77 + - NULLIF ( + 24, + - 6 ) + - + 7 - COUNT( * ), - + 35 * 78 - + + 37 ) + - + 26 * + 27 + + - 99 DIV + 46 + - 25 END col0
----
6867840

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL 24 * + 4 * - 98 * + CASE - 35 WHEN + 65 THEN NULL WHEN 52 THEN NULL ELSE - - COUNT ( * ) * COALESCE ( - COUNT ( * ), 65 * - 77 + - NULLIF ( + 24, + - 6 ) + - + 7 - COUNT ( * ), - + 35 * 78 - + + 37 ) + - + 26 * + 27 + + - 99 / + 46 + - 25 END col0
----
6867840

query I rowsort
SELECT 76 + + 93
----
169

query I rowsort
SELECT ALL + 33 + + 75
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-8900
SELECT ALL COUNT( * ) + - 63 - + 56 AS col2, ( - - NULLIF ( - - 31, + 37 * - + 86 ) ) * 88 AS col2
----
-118
2728

skipif mysql # not compatible
query II rowsort label-8900
SELECT ALL COUNT ( * ) + - 63 - + 56 AS col2, ( - - NULLIF ( - - 31, + 37 * - + 86 ) ) * 88 AS col2
----
-118
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT MAX( ALL + 65 ) + - - 77 AS col1
----
142

skipif mysql # not compatible
query I rowsort label-8901
SELECT MAX ( ALL + 65 ) + - - 77 AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT DISTINCT MAX( - + 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT MAX ( - + 93 ) AS col1
----
-93

query I rowsort
SELECT 1 + - 72 - + 14
----
-85

query I rowsort
SELECT ALL - 61 + + 33 AS col1
----
-28

query I rowsort
SELECT DISTINCT NULLIF ( + 45, - 30 + 46 )
----
45

query I rowsort
SELECT COALESCE ( + ( - + 3 ), + 96 )
----
-3

query I rowsort
SELECT + 70 + 4 * 76 + - 18 + - 39 + + 23 * ( - + 48 ) * 38 * - 37 * - - 82 AS col2
----
127282685

query II rowsort
SELECT ALL + 71 AS col2, - 3
----
71
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8909
SELECT 35 DIV - 85 + - - 72, - 85 + 60 AS col0
----
72
-25

skipif mysql # not compatible
query II rowsort label-8909
SELECT 35 / - 85 + - - 72, - 85 + 60 AS col0
----
72
-25

onlyif mysql # aggregate syntax: 
query III rowsort label-8910
SELECT + 34 * - COUNT( * ) * - COUNT( * ), 98 + - 74 + + 41 AS col1, - 4 AS col1
----
34
65
-4

skipif mysql # not compatible
query III rowsort label-8910
SELECT + 34 * - COUNT ( * ) * - COUNT ( * ), 98 + - 74 + + 41 AS col1, - 4 AS col1
----
34
65
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8911
SELECT ALL + - 25, - CAST( - 47 AS SIGNED ) AS col1
----
-25
47

skipif mysql # not compatible
query II rowsort label-8911
SELECT ALL + - 25, - CAST ( - 47 AS INTEGER ) AS col1
----
-25
47

query I rowsort
SELECT DISTINCT 69 * - + 96 AS col1
----
-6624

query II rowsort
SELECT + - 55 * + 74 * - 34 AS col0, 37 AS col2
----
138380
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8914
SELECT + - 50 * - 15 * + 1 - 22 + 41 DIV MAX( ALL - 57 ) * + COUNT( * )
----
728

skipif mysql # not compatible
query I rowsort label-8914
SELECT + - 50 * - 15 * + 1 - 22 + 41 / MAX ( ALL - 57 ) * + COUNT ( * )
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT DISTINCT + COUNT( - + 62 )
----
1

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT + COUNT ( - + 62 )
----
1

query I rowsort
SELECT + ( - + ( 8 ) )
----
-8

query I rowsort
SELECT - - 0 + + - 93 + + 32 AS col2
----
-61

query I rowsort
SELECT + 84 * + + 60
----
5040

query I rowsort
SELECT ALL + - ( - + 6 )
----
6

query II rowsort
SELECT - 4 AS col2, 62 col0
----
-4
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8921
SELECT ALL MAX( ALL - 69 ) DIV 62
----
-1

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL MAX ( ALL - 69 ) / 62
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8922
SELECT - + 23 + 74 + - + CAST( - 8 AS SIGNED ) + - + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8922
SELECT - + 23 + 74 + - + CAST ( - 8 AS INTEGER ) + - + COUNT ( * ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT - 12 * - 55 * - 72 * 75 * - MIN( ALL - + 43 ) * - - COUNT( * ) AS col1
----
-153252000

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - 12 * - 55 * - 72 * 75 * - MIN ( ALL - + 43 ) * - - COUNT ( * ) AS col1
----
-153252000

query I rowsort
SELECT DISTINCT 99 * 24 + + ( + 25 )
----
2401

onlyif mysql # aggregate syntax: 
query II rowsort label-8925
SELECT + 77 col0, COUNT( * ) AS col1
----
77
1

skipif mysql # not compatible
query II rowsort label-8925
SELECT + 77 col0, COUNT ( * ) AS col1
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL - 68 + - - COUNT( * ) + - COUNT( * ) * - 33 + + + 32
----
-2

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL - 68 + - - COUNT ( * ) + - COUNT ( * ) * - 33 + + + 32
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT + 87 * + CASE - CAST( NULL AS SIGNED ) WHEN + NULLIF ( - 92, 53 ) - + 64 THEN 71 * 34 + - NULLIF ( + 27, + - 15 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT + 87 * + CASE - CAST ( NULL AS INTEGER ) WHEN + NULLIF ( - 92, 53 ) - + 64 THEN 71 * 34 + - NULLIF ( + 27, + - 15 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT + - COUNT( * ) - + - 27
----
26

skipif mysql # not compatible
query I rowsort label-8928
SELECT + - COUNT ( * ) - + - 27
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8929
SELECT - COUNT( * ) col0, - 20
----
-1
-20

skipif mysql # not compatible
query II rowsort label-8929
SELECT - COUNT ( * ) col0, - 20
----
-1
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8930
SELECT - 60 + - CASE + 71 WHEN + 62 THEN + 56 WHEN + CAST( NULL AS SIGNED ) THEN + ( + 64 ) END + - 6 + - COALESCE ( - COALESCE ( + COUNT( - - 48 ), - MAX( ALL 8 ) ), + + 65 ) + - 29 + - ( - - 73 ) / ( + + ( - 84 ) ) + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT - 60 + - CASE + 71 WHEN + 62 THEN + 56 WHEN + CAST ( NULL AS INTEGER ) THEN + ( + 64 ) END + - 6 + - COALESCE ( - COALESCE ( + COUNT ( - - 48 ), - MAX ( ALL 8 ) ), + + 65 ) + - 29 + - ( - - 73 ) / ( + + ( - 84 ) ) + + 68
----
NULL

query I rowsort
SELECT ALL NULLIF ( 43, 43 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL 95 + - COUNT( * ) - + + 9 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL 95 + - COUNT ( * ) - + + 9 AS col2
----
85

query I rowsort
SELECT ALL - 65 + 21 * - 18 AS col2
----
-443

onlyif mysql # aggregate syntax: 
query II rowsort label-8934
SELECT ALL + NULLIF ( - 43, + MAX( - 57 ) ) + + ( COUNT( * ) ) * + + 14, COUNT( * ) col1
----
-29
1

skipif mysql # not compatible
query II rowsort label-8934
SELECT ALL + NULLIF ( - 43, + MAX ( - 57 ) ) + + ( COUNT ( * ) ) * + + 14, COUNT ( * ) col1
----
-29
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8935
SELECT ALL + 38 DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL + 38 / 65 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT - 0 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT - 0 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 59 - + 92 + + 45
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL - COUNT( + - 32 ) - - 47
----
46

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - COUNT ( + - 32 ) - - 47
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT - 88 - + MAX( 82 ) AS col2
----
-170

skipif mysql # not compatible
query I rowsort label-8939
SELECT - 88 - + MAX ( 82 ) AS col2
----
-170

onlyif mysql # aggregate syntax: 
query II rowsort label-8940
SELECT - MAX( ALL 17 ) AS col0, + 21 AS col2
----
-17
21

skipif mysql # not compatible
query II rowsort label-8940
SELECT - MAX ( ALL 17 ) AS col0, + 21 AS col2
----
-17
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8941
SELECT - 23 * 10, - ( 20 ) * - 24 + - CASE + + 24 WHEN - 56 THEN - 15 WHEN - CAST( + + 31 AS SIGNED ) THEN + 9 END + - 4 + - 27 AS col1
----
-230
NULL

skipif mysql # not compatible
query II rowsort label-8941
SELECT - 23 * 10, - ( 20 ) * - 24 + - CASE + + 24 WHEN - 56 THEN - 15 WHEN - CAST ( + + 31 AS INTEGER ) THEN + 9 END + - 4 + - 27 AS col1
----
-230
NULL

query I rowsort
SELECT + 46 * - ( + - 52 ) AS col0
----
2392

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT ALL - COUNT( * ) - + - 82 col0
----
81

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL - COUNT ( * ) - + - 82 col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8944
SELECT ALL CAST( + - 69 AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL CAST ( + - 69 AS INTEGER ) AS col0
----
-69

query I rowsort
SELECT - 93 * - + 30 * - + 71
----
-198090

query I rowsort
SELECT DISTINCT + ( 30 ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT ALL + CAST( 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL + CAST ( 65 AS INTEGER )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + - COUNT( DISTINCT - + 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-8948
SELECT + - COUNT ( DISTINCT - + 39 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT + 2 DIV - 42 * - - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8949
SELECT + 2 / - 42 * - - 89 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8950
SELECT + ( 26 ) AS col1, ( + CAST( ( - 64 ) AS SIGNED ) )
----
26
-64

skipif mysql # not compatible
query II rowsort label-8950
SELECT + ( 26 ) AS col1, ( + CAST ( ( - 64 ) AS INTEGER ) )
----
26
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT - 46 + + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-8951
SELECT - 46 + + COUNT ( * )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT + + 46 DIV - - 61 + + 62
----
62

skipif mysql # not compatible
query I rowsort label-8952
SELECT + + 46 / - - 61 + + 62
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT + 68 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT + 68 / 88 AS col2
----
0

query I rowsort
SELECT 60 * - 45 + + + 0
----
-2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT DISTINCT + + NULLIF ( + 42, + CAST( + 42 AS SIGNED ) ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT + + NULLIF ( + 42, + CAST ( + 42 AS INTEGER ) ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT DISTINCT 36 * + 5 + - 68 + + 24 + - MAX( ALL + 7 )
----
129

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT 36 * + 5 + - 68 + + 24 + - MAX ( ALL + 7 )
----
129

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8957
SELECT + + COALESCE ( - COUNT( * ), - COUNT( * ), + - CASE - MAX( ALL + 12 ) WHEN - + 99 * - 80 + 9 + 41 + + 2 THEN NULL WHEN 99 * + COUNT( * ) + + 74 - + 42 + + 71 THEN NULL ELSE - 47 END ) * + 42 + - 46 + - ( 16 ) + + 90 * - - 23 * - CAST( NULL AS DECIMAL ), 70 AS col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-8957
SELECT + + COALESCE ( - COUNT ( * ), - COUNT ( * ), + - CASE - MAX ( ALL + 12 ) WHEN - + 99 * - 80 + 9 + 41 + + 2 THEN NULL WHEN 99 * + COUNT ( * ) + + 74 - + 42 + + 71 THEN NULL ELSE - 47 END ) * + 42 + - 46 + - ( 16 ) + + 90 * - - 23 * - CAST ( NULL AS REAL ), 70 AS col0
----
NULL
70

query I rowsort
SELECT + + 94 + - 11 AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT DISTINCT + - CAST( - 33 AS SIGNED ) col1
----
33

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT + - CAST ( - 33 AS INTEGER ) col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT DISTINCT 98 * - COUNT( * ) + + 83 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT 98 * - COUNT ( * ) + + 83 AS col1
----
-15

query I rowsort
SELECT + - 19 + 8
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8962
SELECT ALL 81 * + ( + CAST( NULL AS SIGNED ) ) - ( + COUNT( * ) ) + + NULLIF ( - - 46, - COALESCE ( + + 1, + + 85, - 19 ) + - + 68 - ( + - 90 ) ) * COUNT( DISTINCT + + 85 ) * + - 75 AS col1, 29
----
NULL
29

skipif mysql # not compatible
query II rowsort label-8962
SELECT ALL 81 * + ( + CAST ( NULL AS INTEGER ) ) - ( + COUNT ( * ) ) + + NULLIF ( - - 46, - COALESCE ( + + 1, + + 85, - 19 ) + - + 68 - ( + - 90 ) ) * COUNT ( DISTINCT + + 85 ) * + - 75 AS col1, 29
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT + - SUM( - 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-8963
SELECT + - SUM ( - 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL - COUNT( DISTINCT + + 89 ) * + COUNT( * ) + + COUNT( ALL - + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - COUNT ( DISTINCT + + 89 ) * + COUNT ( * ) + + COUNT ( ALL - + 32 )
----
0

query I rowsort
SELECT + 89 + + - 28 * - - 70 AS col1
----
-1871

onlyif mysql # DIV for integer division: 
query I rowsort label-8966
SELECT - 59 + 1 * 78 * 22 DIV ( + 86 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-8966
SELECT - 59 + 1 * 78 * 22 / ( + 86 ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - COUNT( ALL - 5 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8967
SELECT - COUNT ( ALL - 5 ) AS col0
----
-1

query I rowsort
SELECT ALL - 33 * - 64 * + + 25 col1
----
52800

query I rowsort
SELECT DISTINCT - 24 * 10
----
-240

query I rowsort
SELECT DISTINCT 48 * - 45 AS col0
----
-2160

onlyif mysql # DIV for integer division: 
query I rowsort label-8971
SELECT ALL 41 - - 34 DIV - 14
----
39

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL 41 - - 34 / - 14
----
39

query I rowsort
SELECT 91 + - 65
----
26

query I rowsort
SELECT 30 * + 22 col0
----
660

onlyif mysql # aggregate syntax: 
query II rowsort label-8974
SELECT ALL 65 AS col0, ( CASE - 20 WHEN + - 56 THEN NULL ELSE - 10 + + 18 + + + COALESCE ( - + 79, - - COUNT( - 67 ) ) END ) AS col1
----
65
-71

skipif mysql # not compatible
query II rowsort label-8974
SELECT ALL 65 AS col0, ( CASE - 20 WHEN + - 56 THEN NULL ELSE - 10 + + 18 + + + COALESCE ( - + 79, - - COUNT ( - 67 ) ) END ) AS col1
----
65
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8975
SELECT ( 76 ) + + ( ( + 71 ) ) * + ( ( CAST( + - 14 AS SIGNED ) ) ) - + 18 + COUNT( * ) + - 75
----
-1010

skipif mysql # not compatible
query I rowsort label-8975
SELECT ( 76 ) + + ( ( + 71 ) ) * + ( ( CAST ( + - 14 AS INTEGER ) ) ) - + 18 + COUNT ( * ) + - 75
----
-1010

query I rowsort
SELECT 10 + 28
----
38

query I rowsort
SELECT 20 * - - 32
----
640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8978
SELECT ALL + 71 / + + CASE + + COUNT( * ) WHEN + CAST( + 12 AS SIGNED ) + - 87 THEN + 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL + 71 / + + CASE + + COUNT ( * ) WHEN + CAST ( + 12 AS INTEGER ) + - 87 THEN + 66 END AS col1
----
NULL

query I rowsort
SELECT 26 + - 11 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT 29 * + - 34 * + ( SUM( + 68 ) ) * + 91 AS col1
----
-6101368

skipif mysql # not compatible
query I rowsort label-8980
SELECT 29 * + - 34 * + ( SUM ( + 68 ) ) * + 91 AS col1
----
-6101368

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT DISTINCT + 90 DIV + 31 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT + 90 / + 31 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL - 99 * + MAX( DISTINCT + 99 ) AS col1
----
-9801

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL - 99 * + MAX ( DISTINCT + 99 ) AS col1
----
-9801

query I rowsort
SELECT 45 + ( - 39 ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT + 21 * - 20 + 88 DIV + 21 AS col1
----
-416

skipif mysql # not compatible
query I rowsort label-8984
SELECT + 21 * - 20 + 88 / + 21 AS col1
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT + COALESCE ( - + 87, + 82 * 13 * - COALESCE ( + 77, + 13 ) ) * - 51 * - ( - 41 ) + + COUNT( * )
----
181918

skipif mysql # not compatible
query I rowsort label-8985
SELECT + COALESCE ( - + 87, + 82 * 13 * - COALESCE ( + 77, + 13 ) ) * - 51 * - ( - 41 ) + + COUNT ( * )
----
181918

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL + ( + + COUNT( * ) ) + - - 69 + + 69
----
139

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL + ( + + COUNT ( * ) ) + - - 69 + + 69
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8987
SELECT + - 8 * - 14 * - + COUNT( * ) + ( ( - + CAST( NULL AS SIGNED ) ) ) + + COUNT( * ) / + 19 / 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT + - 8 * - 14 * - + COUNT ( * ) + ( ( - + CAST ( NULL AS INTEGER ) ) ) + + COUNT ( * ) / + 19 / 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT ALL + - CAST( NULL AS SIGNED ) * 5 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL + - CAST ( NULL AS INTEGER ) * 5 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8989
SELECT ALL + ( - 70 ) + - - 75 col2, NULLIF ( - - 17, COALESCE ( 67, + CASE + 89 WHEN - 13 THEN NULL WHEN + 39 THEN - COUNT( * ) + + - ( + 1 ) ELSE NULL END + + ( + 4 ) ) ) - 52
----
5
-35

skipif mysql # not compatible
query II rowsort label-8989
SELECT ALL + ( - 70 ) + - - 75 col2, NULLIF ( - - 17, COALESCE ( 67, + CASE + 89 WHEN - 13 THEN NULL WHEN + 39 THEN - COUNT ( * ) + + - ( + 1 ) ELSE NULL END + + ( + 4 ) ) ) - 52
----
5
-35

query I rowsort
SELECT ALL + 67 * 9 col0
----
603

query I rowsort
SELECT + ( - + 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT DISTINCT - 76 + - CASE NULLIF ( + 21, + 90 * 29 + - 78 ) WHEN - 58 * - ( - 0 ) - + 86 * + 61 * + + 49 THEN + COUNT( * ) WHEN + + MIN( ALL - - 45 ) + 37 + 30 THEN + 82 END + NULLIF ( - 18, + 36 * + NULLIF ( 13, - 30 * + + COUNT( * ) ) + 63 ) * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT - 76 + - CASE NULLIF ( + 21, + 90 * 29 + - 78 ) WHEN - 58 * - ( - 0 ) - + 86 * + 61 * + + 49 THEN + COUNT ( * ) WHEN + + MIN ( ALL - - 45 ) + 37 + 30 THEN + 82 END + NULLIF ( - 18, + 36 * + NULLIF ( 13, - 30 * + + COUNT ( * ) ) + 63 ) * - 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8993
SELECT ALL COUNT( * ) DIV 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL COUNT ( * ) / 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT MIN( 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8994
SELECT MIN ( 95 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL - + COUNT( * ) + + - 45
----
-46

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - + COUNT ( * ) + + - 45
----
-46

query I rowsort
SELECT DISTINCT - + 81 col1
----
-81

query I rowsort
SELECT 81 * + + ( - ( ( + 33 ) ) ) AS col1
----
-2673

query I rowsort
SELECT - 29 * - 81 - - 29 col1
----
2378

query I rowsort
SELECT ALL - - ( - + 72 )
----
-72

query II rowsort
SELECT + 90, 84 col1
----
90
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9001
SELECT + 1 AS col1, COUNT( 65 ) * + 36
----
1
36

skipif mysql # not compatible
query II rowsort label-9001
SELECT + 1 AS col1, COUNT ( 65 ) * + 36
----
1
36

query I rowsort
SELECT DISTINCT 17 * + 76 - 10 - 9
----
1273

query I rowsort
SELECT DISTINCT 22 + 64 + + 64
----
150

query I rowsort
SELECT ALL 78 - - 23 * + 14 AS col1
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT 95 - - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-9005
SELECT 95 - - COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT DISTINCT + 20 * + COUNT( * ) * - 87
----
-1740

skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT + 20 * + COUNT ( * ) * - 87
----
-1740

query I rowsort
SELECT DISTINCT 7 - - - 32 - + + 22 AS col2
----
-47

query I rowsort
SELECT ALL 42 - + 24 AS col0
----
18

query I rowsort
SELECT 85 * + 54 AS col1
----
4590

onlyif mysql # aggregate syntax: 
query III rowsort label-9010
SELECT - 54, + 40 + + 30 * - 15 col1, - COUNT( * ) col0
----
-54
-410
-1

skipif mysql # not compatible
query III rowsort label-9010
SELECT - 54, + 40 + + 30 * - 15 col1, - COUNT ( * ) col0
----
-54
-410
-1

query II rowsort
SELECT 52 col0, 34 AS col2
----
52
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT 94 + - COUNT( * ) - + 16
----
77

skipif mysql # not compatible
query I rowsort label-9012
SELECT 94 + - COUNT ( * ) - + 16
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT COUNT( * ) + - 36
----
-35

skipif mysql # not compatible
query I rowsort label-9013
SELECT COUNT ( * ) + - 36
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT ( + - 27 ) * + ( - + COUNT( * ) )
----
27

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT ( + - 27 ) * + ( - + COUNT ( * ) )
----
27

query I rowsort
SELECT ( 37 ) * - 75
----
-2775

query I rowsort
SELECT ALL + 76 * - 56
----
-4256

query II rowsort
SELECT ALL 32 AS col1, + 42 + + ( - 77 ) AS col1
----
32
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT 16 - + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9018
SELECT 16 - + COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT 55 * + MAX( ALL - + 61 ) AS col1
----
-3355

skipif mysql # not compatible
query I rowsort label-9019
SELECT 55 * + MAX ( ALL - + 61 ) AS col1
----
-3355

query II rowsort
SELECT - 88 AS col2, 95 + - + 15 * COALESCE ( + 8, - ( - - 38 ) ) + - 15 col1
----
-88
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9021
SELECT DISTINCT + COALESCE ( - + NULLIF ( - COUNT( * ), - CASE + 11 WHEN - + NULLIF ( ( - NULLIF ( - 19, - - CASE - 13 WHEN + - 35 * 51 THEN + - 91 * + 73 + + - CAST( NULL AS SIGNED ) END * - ( 58 ) + + ( - CAST( NULL AS SIGNED ) ) + CASE 3 WHEN COUNT( DISTINCT + 42 ) * + 46 * 56 * + - AVG ( ALL - + 41 ) THEN NULL WHEN + SUM( DISTINCT - - 94 ) THEN + 38 WHEN + 99 THEN + 83 / + 78 END / - 43 / 51 - 9 ) ), COALESCE ( 70, + NULLIF ( - 50, - 23 - - 75 ) * - 49, - 63 ) ) + COUNT( * ) THEN - 66 WHEN COUNT( * ) + - 19 * + 41 THEN NULL END ), 90 + 94, 58 - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT + COALESCE ( - + NULLIF ( - COUNT ( * ), - CASE + 11 WHEN - + NULLIF ( ( - NULLIF ( - 19, - - CASE - 13 WHEN + - 35 * 51 THEN + - 91 * + 73 + + - CAST ( NULL AS INTEGER ) END * - ( 58 ) + + ( - CAST ( NULL AS INTEGER ) ) + CASE 3 WHEN COUNT ( DISTINCT + 42 ) * + 46 * 56 * + - AVG ( ALL - + 41 ) THEN NULL WHEN + SUM ( DISTINCT - - 94 ) THEN + 38 WHEN + 99 THEN + 83 / + 78 END / - 43 / 51 - 9 ) ), COALESCE ( 70, + NULLIF ( - 50, - 23 - - 75 ) * - 49, - 63 ) ) + COUNT ( * ) THEN - 66 WHEN COUNT ( * ) + - 19 * + 41 THEN NULL END ), 90 + 94, 58 - COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL + COUNT( DISTINCT - 97 ) + + 54 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL + COUNT ( DISTINCT - 97 ) + + 54 AS col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9023
SELECT DISTINCT + + 31 + + + 61 + + COUNT( * ) * + - 31 DIV + - COUNT( ALL + + 76 ) AS col1
----
123

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT + + 31 + + + 61 + + COUNT ( * ) * + - 31 / + - COUNT ( ALL + + 76 ) AS col1
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-9024
SELECT 47 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9024
SELECT 47 / + 90 AS col2
----
0

query I rowsort
SELECT ALL 81 * + 45 + 49 AS col0
----
3694

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT + COUNT( ALL - 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9026
SELECT + COUNT ( ALL - 51 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9027
SELECT + 85 DIV - 13 - + + 11 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-9027
SELECT + 85 / - 13 - + + 11 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-9028
SELECT ALL - + COUNT( * ) AS col2, + 30
----
-1
30

skipif mysql # not compatible
query II rowsort label-9028
SELECT ALL - + COUNT ( * ) AS col2, + 30
----
-1
30

query I rowsort
SELECT ALL 6 * + + 23 + 3 AS col1
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9030
SELECT ALL 89 * - COUNT( * ) + - - ( + 53 ) + - 53 + + 98 * + 20 + + 67 * + CAST( NULL AS SIGNED ) - + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL 89 * - COUNT ( * ) + - - ( + 53 ) + - 53 + + 98 * + 20 + + 67 * + CAST ( NULL AS INTEGER ) - + - 3
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT - - 67 DIV - - 94 + - - 28 + + ( - 10 ) DIV + 66 * + + ( - NULLIF ( + 12, - 38 ) ) + - - 31 + - 96
----
-37

skipif mysql # not compatible
query I rowsort label-9031
SELECT - - 67 / - - 94 + - - 28 + + ( - 10 ) / + 66 * + + ( - NULLIF ( + 12, - 38 ) ) + - - 31 + - 96
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT ALL + 53 * + NULLIF ( ( + COUNT( * ) ), - - 22 ) + - + ( + + 19 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL + 53 * + NULLIF ( ( + COUNT ( * ) ), - - 22 ) + - + ( + + 19 ) AS col0
----
34

query I rowsort
SELECT DISTINCT - + ( + - 56 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL + NULLIF ( + - 95, + 81 ) * 54 * ( + + MIN( ALL + 89 ) ) AS col0
----
-456570

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL + NULLIF ( + - 95, + 81 ) * 54 * ( + + MIN ( ALL + 89 ) ) AS col0
----
-456570

query I rowsort
SELECT + 27 - - 98 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT - COUNT( * ) * - + 63 * + - 30 + - 29
----
-1919

skipif mysql # not compatible
query I rowsort label-9036
SELECT - COUNT ( * ) * - + 63 * + - 30 + - 29
----
-1919

query I rowsort
SELECT ALL - 60 * 66 - 80
----
-4040

query II rowsort
SELECT DISTINCT - 44, 94 AS col1
----
-44
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ALL + - COUNT( * ) * SUM( DISTINCT - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL + - COUNT ( * ) * SUM ( DISTINCT - 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9040
SELECT + COALESCE ( - CAST( - ( + - 93 ) AS SIGNED ), + 83 ) * - 94 + + ( + 45 ) + - 41 * 47
----
6860

skipif mysql # not compatible
query I rowsort label-9040
SELECT + COALESCE ( - CAST ( - ( + - 93 ) AS INTEGER ), + 83 ) * - 94 + + ( + 45 ) + - 41 * 47
----
6860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9041
SELECT ALL - 79 - ( + - 14 ) + - 28 * CAST( + + 38 AS SIGNED ) AS col1
----
-1129

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - 79 - ( + - 14 ) + - 28 * CAST ( + + 38 AS INTEGER ) AS col1
----
-1129

query I rowsort
SELECT + 54 * - 43 AS col2
----
-2322

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT + 6 + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-9043
SELECT + 6 + + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT DISTINCT MIN( DISTINCT + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT MIN ( DISTINCT + 26 )
----
26

query I rowsort
SELECT ALL 29 * - 20 AS col0
----
-580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9046
SELECT ALL CASE CAST( - 59 AS SIGNED ) WHEN + 27 THEN NULL ELSE - COUNT( * ) + 7 - COALESCE ( - + 27, - - CAST( + - 64 AS SIGNED ) ) END AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL CASE CAST ( - 59 AS INTEGER ) WHEN + 27 THEN NULL ELSE - COUNT ( * ) + 7 - COALESCE ( - + 27, - - CAST ( + - 64 AS INTEGER ) ) END AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9047
SELECT DISTINCT - COUNT( + CAST( NULL AS SIGNED ) ) * + 60 * 82
----
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT - COUNT ( + CAST ( NULL AS INTEGER ) ) * + 60 * 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT DISTINCT 40 + - - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT 40 + - - COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT ALL + COUNT( * ) * - 2 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL + COUNT ( * ) * - 2 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT + 40 DIV + + 47
----
0

skipif mysql # not compatible
query I rowsort label-9050
SELECT + 40 / + + 47
----
0

query II rowsort
SELECT - 52 + - 28 - 83, - 57 * - 30 + - NULLIF ( 10, 79 ) AS col2
----
-163
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT ALL 22 + + ( ( + MAX( DISTINCT 2 ) ) ) * + ( - 34 ) * - 64 - - COALESCE ( + 68, - + COUNT( * ) + 70, - ( + + 90 ) ) + + 66 + - + COUNT( ALL + 55 ) + - 41 AS col1
----
4466

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL 22 + + ( ( + MAX ( DISTINCT 2 ) ) ) * + ( - 34 ) * - 64 - - COALESCE ( + 68, - + COUNT ( * ) + 70, - ( + + 90 ) ) + + 66 + - + COUNT ( ALL + 55 ) + - 41 AS col1
----
4466

onlyif mysql # aggregate syntax: 
query II rowsort label-9053
SELECT + COUNT( * ) + 24 * - - 58 col1, - 31
----
1393
-31

skipif mysql # not compatible
query II rowsort label-9053
SELECT + COUNT ( * ) + 24 * - - 58 col1, - 31
----
1393
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9054
SELECT ALL 39 + + + 46, - CAST( NULL AS SIGNED ) + + + NULLIF ( 3, - 24 + + 96 * - COUNT( * ) * + - 35 ) AS col0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-9054
SELECT ALL 39 + + + 46, - CAST ( NULL AS INTEGER ) + + + NULLIF ( 3, - 24 + + 96 * - COUNT ( * ) * + - 35 ) AS col0
----
85
NULL

query I rowsort
SELECT + 35 + + 65
----
100

query I rowsort
SELECT DISTINCT + 9 + 5
----
14

query I rowsort
SELECT - + 8 col1
----
-8

query I rowsort
SELECT ALL + 95 col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9059
SELECT ALL - 76 + - MIN( DISTINCT 50 ) + + 65 + 39 DIV COUNT( * ) - - 62 AS col0, - 16 - + 94 * + 11 AS col2
----
40
-1050

skipif mysql # not compatible
query II rowsort label-9059
SELECT ALL - 76 + - MIN ( DISTINCT 50 ) + + 65 + 39 / COUNT ( * ) - - 62 AS col0, - 16 - + 94 * + 11 AS col2
----
40
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL NULLIF ( 41, - 31 ) * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL NULLIF ( 41, - 31 ) * COUNT ( * )
----
41

query I rowsort
SELECT + + ( 29 ) + + 43
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9062
SELECT + - 95 * - 35 + + SUM( + CASE + - 25 WHEN ( - 67 ) THEN - 76 * - CAST( NULL AS SIGNED ) WHEN CAST( + 55 AS SIGNED ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9062
SELECT + - 95 * - 35 + + SUM ( + CASE + - 25 WHEN ( - 67 ) THEN - 76 * - CAST ( NULL AS INTEGER ) WHEN CAST ( + 55 AS INTEGER ) THEN NULL END )
----
NULL

query I rowsort
SELECT + - 90 * ( 57 ) col0
----
-5130

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT DISTINCT 54 * - CASE - + 59 WHEN + COUNT( ALL 99 ) - ( + 61 ) + + + ( 18 ) * - 53 * 49 * + - 28 THEN + + 95 WHEN 55 THEN NULL ELSE 78 * - 48 END
----
202176

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT 54 * - CASE - + 59 WHEN + COUNT ( ALL 99 ) - ( + 61 ) + + + ( 18 ) * - 53 * 49 * + - 28 THEN + + 95 WHEN 55 THEN NULL ELSE 78 * - 48 END
----
202176

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT ALL + + MAX( DISTINCT - + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL + + MAX ( DISTINCT - + 18 )
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-9066
SELECT - + ( + + 81 ) + 22 - + 55 * - 7 AS col1, 10 DIV - + 76 AS col0
----
326
0

skipif mysql # not compatible
query II rowsort label-9066
SELECT - + ( + + 81 ) + 22 - + 55 * - 7 AS col1, 10 / - + 76 AS col0
----
326
0

query I rowsort
SELECT - + 57 * - - 3 + 79
----
-92

query I rowsort
SELECT 40 * + 95 + + 41 col0
----
3841

query II rowsort
SELECT ALL + 13 * 19 - - 0 col2, + 32
----
247
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT + MAX( DISTINCT 33 ) * + 13 - 13 * - 31
----
832

skipif mysql # not compatible
query I rowsort label-9070
SELECT + MAX ( DISTINCT 33 ) * + 13 - 13 * - 31
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL - + 29 * 83 * - COUNT( * ) * + - 34 * 79 - + + 56
----
-6465258

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL - + 29 * 83 * - COUNT ( * ) * + - 34 * 79 - + + 56
----
-6465258

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT DISTINCT - - 11 DIV + - 71 + + - 51
----
-51

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT - - 11 / + - 71 + + - 51
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9073
SELECT + COUNT( ALL - ( + + 12 ) ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9073
SELECT + COUNT ( ALL - ( + + 12 ) ) / + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT ALL - + 61 DIV + 34 + + 90 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL - + 61 / + 34 + + 90 AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9075
SELECT DISTINCT + MIN( + 11 ) DIV NULLIF ( + 94, SUM( - 24 ) * + 93 + 24 ) * - 5 + 84 + 61
----
145

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT + MIN ( + 11 ) / NULLIF ( + 94, SUM ( - 24 ) * + 93 + 24 ) * - 5 + 84 + 61
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT DISTINCT - - 36 * + - COALESCE ( 87, - COUNT( * ) ) AS col1
----
-3132

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT - - 36 * + - COALESCE ( 87, - COUNT ( * ) ) AS col1
----
-3132

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT + COUNT( * ) - - 31 * - 89 col0
----
-2758

skipif mysql # not compatible
query I rowsort label-9077
SELECT + COUNT ( * ) - - 31 * - 89 col0
----
-2758

query I rowsort
SELECT ALL + CASE + ( + + 13 ) WHEN - 91 THEN NULL WHEN 65 THEN 89 - 84 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9079
SELECT + 85 * - CASE - - 34 WHEN - - 88 - NULLIF ( 74, COUNT( * ) * + 51 ) THEN - 35 END * + - 63 * COUNT( * ) + - ( + + 43 ) * - CAST( NULL AS DECIMAL ) * - 18 - - - CASE - 94 WHEN - 91 THEN + 42 END + + 68 - + COUNT( * ) * - COUNT( * ) + 89 - 27 - - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT + 85 * - CASE - - 34 WHEN - - 88 - NULLIF ( 74, COUNT ( * ) * + 51 ) THEN - 35 END * + - 63 * COUNT ( * ) + - ( + + 43 ) * - CAST ( NULL AS REAL ) * - 18 - - - CASE - 94 WHEN - 91 THEN + 42 END + + 68 - + COUNT ( * ) * - COUNT ( * ) + 89 - 27 - - 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT + 42 * - - COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9080
SELECT + 42 * - - COUNT ( * ) AS col1
----
42

query II rowsort
SELECT DISTINCT - 3 * + 29 * + + 18 AS col2, - 69
----
-1566
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT ALL CAST( - 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL CAST ( - 81 AS INTEGER )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT DISTINCT CAST( 45 AS SIGNED ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT CAST ( 45 AS INTEGER ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT ALL - 39 * MIN( ALL - 46 ) + COUNT( * ) + + 38
----
1833

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL - 39 * MIN ( ALL - 46 ) + COUNT ( * ) + + 38
----
1833

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT DISTINCT - SUM( - 63 ) * + - 24 + - + 4 + - - 25
----
-1491

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT - SUM ( - 63 ) * + - 24 + - + 4 + - - 25
----
-1491

query I rowsort
SELECT - 11 + - - 91 + + + 3 + + 79
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT MAX( ALL - ( + 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-9087
SELECT MAX ( ALL - ( + 29 ) )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-9088
SELECT - 28 DIV 83 * + 9
----
0

skipif mysql # not compatible
query I rowsort label-9088
SELECT - 28 / 83 * + 9
----
0

query I rowsort
SELECT DISTINCT - 40 + + 10 col1
----
-30

query I rowsort
SELECT ALL + 13 + + 46 + - 91 - + 28 * + + 82
----
-2328

onlyif mysql # DIV for integer division: 
query I rowsort label-9091
SELECT ALL 75 * 23 * 70 * 38 DIV 52
----
88240

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL 75 * 23 * 70 * 38 / 52
----
88240

query I rowsort
SELECT ALL - 91 + 98 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT - - 85 DIV 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9093
SELECT - - 85 / 65 AS col2
----
1

query I rowsort
SELECT ALL - 47 * 94 AS col1
----
-4418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9095
SELECT - 99 - + - COALESCE ( + 66, - 6, 24 + - - CASE COUNT( * ) WHEN + 43 - 28 - 90 + - 20 - + 88 * 73 THEN + 65 DIV + ( 8 ) ELSE NULL END ) + - 34 col2
----
-67

skipif mysql # not compatible
query I rowsort label-9095
SELECT - 99 - + - COALESCE ( + 66, - 6, 24 + - - CASE COUNT ( * ) WHEN + 43 - 28 - 90 + - 20 - + 88 * 73 THEN + 65 / + ( 8 ) ELSE NULL END ) + - 34 col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT - CAST( - 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-9096
SELECT - CAST ( - 61 AS INTEGER )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9097
SELECT - 12 - + - COALESCE ( - + 51, - ( - 19 ), + 9 ) + - CASE + CAST( NULL AS SIGNED ) WHEN + 94 THEN NULL WHEN 25 * + 48 / + 12 + - - 85 THEN NULL WHEN + 29 THEN + 73 + + + COUNT( * ) END AS col2, + 62
----
NULL
62

skipif mysql # not compatible
query II rowsort label-9097
SELECT - 12 - + - COALESCE ( - + 51, - ( - 19 ), + 9 ) + - CASE + CAST ( NULL AS INTEGER ) WHEN + 94 THEN NULL WHEN 25 * + 48 / + 12 + - - 85 THEN NULL WHEN + 29 THEN + 73 + + + COUNT ( * ) END AS col2, + 62
----
NULL
62

query I rowsort
SELECT + 82 * + 68
----
5576

query I rowsort
SELECT ALL 65 - + + 96 AS col1
----
-31

query II rowsort
SELECT ALL + 22, + 28 * - + 61 * + 50 AS col0
----
22
-85400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9101
SELECT 84 DIV 57 DIV - 2 + - COUNT( * ) + - 3 * - 17 + 15 - + 51 DIV + + 32, - COUNT( * ) * - 77 * - 80 - + - 95 AS col0
----
64
-6065

skipif mysql # not compatible
query II rowsort label-9101
SELECT 84 / 57 / - 2 + - COUNT ( * ) + - 3 * - 17 + 15 - + 51 / + + 32, - COUNT ( * ) * - 77 * - 80 - + - 95 AS col0
----
64
-6065

query II rowsort
SELECT DISTINCT - 84, - 87 AS col1
----
-84
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL - 40 * - 15 * - COUNT( * )
----
-600

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL - 40 * - 15 * - COUNT ( * )
----
-600

onlyif mysql # aggregate syntax: 
query II rowsort label-9104
SELECT + 76 - - + 39 - - 8, - COUNT( * ) AS col2
----
123
-1

skipif mysql # not compatible
query II rowsort label-9104
SELECT + 76 - - + 39 - - 8, - COUNT ( * ) AS col2
----
123
-1

query I rowsort
SELECT 33 * - + 89 AS col1
----
-2937

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9106
SELECT + 46 DIV - + 92 + + + COUNT( 80 ) + + 17
----
18

skipif mysql # not compatible
query I rowsort label-9106
SELECT + 46 / - + 92 + + + COUNT ( 80 ) + + 17
----
18

query I rowsort
SELECT + + 79 AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9108
SELECT ALL + 79 * - COUNT( * ) DIV 87 * + 71
----
0

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL + 79 * - COUNT ( * ) / 87 * + 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT 94 + 86 + + COALESCE ( - 10, + 71, + NULLIF ( + - MAX( + 42 ), - + 76 * + + 44 ) )
----
170

skipif mysql # not compatible
query I rowsort label-9109
SELECT 94 + 86 + + COALESCE ( - 10, + 71, + NULLIF ( + - MAX ( + 42 ), - + 76 * + + 44 ) )
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT 16 DIV + 51 - + 76 DIV ( + 26 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9110
SELECT 16 / + 51 - + 76 / ( + 26 ) AS col1
----
-2

query I rowsort
SELECT 1 * + 91
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9112
SELECT - 18 * 91 / 46 + + 25 / + CASE CAST( NULL AS SIGNED ) WHEN - 95 * 93 * + + 98 THEN + NULLIF ( + - 22, - 8 ) WHEN - COUNT( * ) * - 78 THEN 68 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT - 18 * 91 / 46 + + 25 / + CASE CAST ( NULL AS INTEGER ) WHEN - 95 * 93 * + + 98 THEN + NULLIF ( + - 22, - 8 ) WHEN - COUNT ( * ) * - 78 THEN 68 END AS col0
----
NULL

query I rowsort
SELECT 39 - + 37
----
2

query I rowsort
SELECT ALL 83 + - 92
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT ALL + 44 + - + CAST( NULL AS SIGNED ) + - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL + 44 + - + CAST ( NULL AS INTEGER ) + - 70 AS col1
----
NULL

query I rowsort
SELECT ALL - ( 77 ) + - 17 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT 29 + + + 2 * COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9117
SELECT 29 + + + 2 * COUNT ( * ) AS col2
----
31

query I rowsort
SELECT ALL + 26 + + - 86 * ( + - 71 ) + - 22 + - 92
----
6018

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ( + + 30 ) * + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-9119
SELECT ( + + 30 ) * + COUNT ( * )
----
30

query II rowsort
SELECT 38 * - 77, + 94 col1
----
-2926
94

query II rowsort
SELECT ALL - 54 * + 29 AS col1, + 89 * - 94 AS col1
----
-1566
-8366

query I rowsort
SELECT ALL ( - - ( + 33 ) ) + + 93 * - + 37 AS col0
----
-3408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9123
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 15 AS col0, + CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9123
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 15 AS col0, + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9124
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) * + 42 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) * + 42 / + 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT - COUNT( * ) + - + 83 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9125
SELECT - COUNT ( * ) + - + 83 AS col2
----
-84

query I rowsort
SELECT - 88 * - - 81 AS col2
----
-7128

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT - 57 * - - COUNT( * ) col1
----
-57

skipif mysql # not compatible
query I rowsort label-9127
SELECT - 57 * - - COUNT ( * ) col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9128
SELECT DISTINCT - NULLIF ( 2, - NULLIF ( - - 89, - + 17 * - CAST( NULL AS SIGNED ) + - + 92 / - 21 + + + MIN( + + 5 ) + - 41 * 68 + 24 + + + COUNT( + 36 ) ) * - + 66 - - 95 * + CASE + + 56 WHEN + COALESCE ( MAX( ALL - 70 ), COUNT( - 45 ) ) THEN - 92 END + - 80 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT - NULLIF ( 2, - NULLIF ( - - 89, - + 17 * - CAST ( NULL AS INTEGER ) + - + 92 / - 21 + + + MIN ( + + 5 ) + - 41 * 68 + 24 + + + COUNT ( + 36 ) ) * - + 66 - - 95 * + CASE + + 56 WHEN + COALESCE ( MAX ( ALL - 70 ), COUNT ( - 45 ) ) THEN - 92 END + - 80 ) AS col2
----
-2

query I rowsort
SELECT 1 + - - 72 + - 19 AS col0
----
54

query I rowsort
SELECT ALL + - 20 * - 51 - - - ( + 24 )
----
996

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT + COUNT( * ) * - 1 * + 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9131
SELECT + COUNT ( * ) * - 1 * + 18 AS col2
----
-18

query II rowsort
SELECT DISTINCT 72 * + COALESCE ( - 89, + 67 ) AS col2, - 23 * - 81 AS col1
----
-6408
1863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9133
SELECT ALL - + 90 - COALESCE ( - 14, - 23 ) * 12 + - 51 + - 42 + + COUNT( * ) * - 45 DIV 11 * COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL - + 90 - COALESCE ( - 14, - 23 ) * 12 + - 51 + - 42 + + COUNT ( * ) * - 45 / 11 * COUNT ( * ) AS col2
----
-19

query II rowsort
SELECT 70 + + 75 - - 11 * - 66 AS col1, 83 AS col0
----
-581
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT ALL - + COUNT( * ) * + + COUNT( * ) + - 26 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL - + COUNT ( * ) * + + COUNT ( * ) + - 26 AS col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-9136
SELECT - ( + 32 ) DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-9136
SELECT - ( + 32 ) / 60
----
0

query I rowsort
SELECT 50 * + 97 * - 81 AS col1
----
-392850

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT - + 39 * SUM( ALL + - 59 ) + 41 + - + 78
----
2264

skipif mysql # not compatible
query I rowsort label-9138
SELECT - + 39 * SUM ( ALL + - 59 ) + 41 + - + 78
----
2264

onlyif mysql # aggregate syntax: 
query II rowsort label-9139
SELECT ALL - 75, COUNT( * ) AS col1
----
-75
1

skipif mysql # not compatible
query II rowsort label-9139
SELECT ALL - 75, COUNT ( * ) AS col1
----
-75
1

query II rowsort
SELECT DISTINCT - 78 AS col0, + 29
----
-78
29

query I rowsort
SELECT DISTINCT 71 + + 3
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9142
SELECT COUNT( * ) DIV - - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9142
SELECT COUNT ( * ) / - - 73 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9143
SELECT 58 * + CAST( + 88 AS SIGNED ) - + - MAX( ALL - 90 )
----
5014

skipif mysql # not compatible
query I rowsort label-9143
SELECT 58 * + CAST ( + 88 AS INTEGER ) - + - MAX ( ALL - 90 )
----
5014

query I rowsort
SELECT 71 + - 94
----
-23

query I rowsort
SELECT ALL 17 + - 62
----
-45

query I rowsort
SELECT 61 + 15 + 28
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT COUNT( * ) * + 2 * 96
----
192

skipif mysql # not compatible
query I rowsort label-9147
SELECT COUNT ( * ) * + 2 * 96
----
192

query I rowsort
SELECT ALL - - 68 * 11 col1
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT - ( - MIN( ALL 54 ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9149
SELECT - ( - MIN ( ALL 54 ) ) AS col0
----
54

query I rowsort
SELECT ALL CASE - 36 WHEN 10 / - + 45 + + 90 THEN + - 42 + - - 60 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9151
SELECT ALL + 72, 26 * + CAST( - NULLIF ( 0, + 95 ) AS SIGNED ) + + + 70 AS col0
----
72
70

skipif mysql # not compatible
query II rowsort label-9151
SELECT ALL + 72, 26 * + CAST ( - NULLIF ( 0, + 95 ) AS INTEGER ) + + + 70 AS col0
----
72
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT DISTINCT - ( 56 ) * + COALESCE ( COUNT( ALL - - 28 ), + 60 ) + + 53 col2
----
-3

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT - ( 56 ) * + COALESCE ( COUNT ( ALL - - 28 ), + 60 ) + + 53 col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT - + 84 * + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-9153
SELECT - + 84 * + COUNT ( * )
----
-84

query II rowsort
SELECT ALL + 49 AS col1, + 95 * 0
----
49
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9155
SELECT + 4 AS col1, + COUNT( * )
----
4
1

skipif mysql # not compatible
query II rowsort label-9155
SELECT + 4 AS col1, + COUNT ( * )
----
4
1

query I rowsort
SELECT DISTINCT - 45 * 87
----
-3915

query I rowsort
SELECT + + 81 - + 54
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9158
SELECT + MAX( ALL + 46 ) * 24 DIV 71 + - 86
----
-71

skipif mysql # not compatible
query I rowsort label-9158
SELECT + MAX ( ALL + 46 ) * 24 / 71 + - 86
----
-71

query I rowsort
SELECT - 58 * NULLIF ( + + ( + 94 ), - 56 ) + + 75 * - - 88 + + 61 AS col0
----
1209

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL NULLIF ( + 79, + 99 * + + 84 * + + AVG ( 47 ) + NULLIF ( - + 86, + COALESCE ( - 24, - MIN( 28 ) ) ) ) col1
----
79

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL NULLIF ( + 79, + 99 * + + 84 * + + AVG ( 47 ) + NULLIF ( - + 86, + COALESCE ( - 24, - MIN ( 28 ) ) ) ) col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9161
SELECT 42 AS col1, COUNT( * ) + 64
----
42
65

skipif mysql # not compatible
query II rowsort label-9161
SELECT 42 AS col1, COUNT ( * ) + 64
----
42
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT - + 32 + + 52 + - COUNT( * ) * - - 22 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9162
SELECT - + 32 + + 52 + - COUNT ( * ) * - - 22 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT - SUM( ALL - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9163
SELECT - SUM ( ALL - 40 )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9164
SELECT ALL + 62 DIV 90 - + 43
----
-43

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL + 62 / 90 - + 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT - + ( - - NULLIF ( - - COUNT( * ), + - 15 * - 34 * 92 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9165
SELECT - + ( - - NULLIF ( - - COUNT ( * ), + - 15 * - 34 * 92 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9166
SELECT 53 DIV + 63 - + 64 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-9166
SELECT 53 / + 63 - + 64 / + 78
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT ALL + 50 * - 90 + 69 + - + 42 DIV + 23 AS col2
----
-4432

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + 50 * - 90 + 69 + - + 42 / + 23 AS col2
----
-4432

query I rowsort
SELECT - 71 - + 17 + + 45 + + + 20 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT DISTINCT + MAX( ALL + 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT + MAX ( ALL + 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT DISTINCT + COUNT( * ) * - + COALESCE ( + CASE + + 68 WHEN - - 98 THEN 90 ELSE NULL END, - COUNT( * ) ) + 14
----
15

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT + COUNT ( * ) * - + COALESCE ( + CASE + + 68 WHEN - - 98 THEN 90 ELSE NULL END, - COUNT ( * ) ) + 14
----
15

query I rowsort
SELECT NULLIF ( + 8, - 15 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9172
SELECT 90 DIV + 79 + - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9172
SELECT 90 / + 79 + - COUNT ( * ) col1
----
0

query I rowsort
SELECT + 41 * + + 9 AS col0
----
369

query I rowsort
SELECT - 12 + 64
----
52

query I rowsort
SELECT ALL + ( 11 )
----
11

query I rowsort
SELECT ALL + 96 * 63 - - 23 + - 82 + - - 88 + - + 22 * + + 98 AS col0
----
3921

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT NULLIF ( + - MAX( DISTINCT - - 70 ), AVG ( ALL + 8 ) * - 75 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9177
SELECT NULLIF ( + - MAX ( DISTINCT - - 70 ), AVG ( ALL + 8 ) * - 75 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT - COUNT( 64 ) * - ( 15 ) * 98 col1
----
1470

skipif mysql # not compatible
query I rowsort label-9178
SELECT - COUNT ( 64 ) * - ( 15 ) * 98 col1
----
1470

query I rowsort
SELECT DISTINCT + ( 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9180
SELECT DISTINCT + 6 col1, + 98 * - + 11 * - - COUNT( * ) + - + 90 AS col0
----
6
-1168

skipif mysql # not compatible
query II rowsort label-9180
SELECT DISTINCT + 6 col1, + 98 * - + 11 * - - COUNT ( * ) + - + 90 AS col0
----
6
-1168

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT - COUNT( * ) * + ( - MIN( - 73 ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9181
SELECT - COUNT ( * ) * + ( - MIN ( - 73 ) ) AS col1
----
-73

query I rowsort
SELECT + ( + 32 ) * - 42
----
-1344

query I rowsort
SELECT + 7 * - 7 + 40
----
-9

query I rowsort
SELECT + - 73 * + 71 * + 49 * + + 97 * + 37 AS col1
----
-911487563

query I rowsort
SELECT ALL - 68 * - 28 + + - 80
----
1824

query I rowsort
SELECT + 79 + 32 AS col2
----
111

query II rowsort
SELECT DISTINCT 20 AS col2, 74 + + - 33 * 7 AS col0
----
20
-157

query II rowsort
SELECT ALL + 74 AS col1, 99 AS col2
----
74
99

query I rowsort
SELECT + + 96 + - 68
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9190
SELECT + - 52 DIV + + 90
----
0

skipif mysql # not compatible
query I rowsort label-9190
SELECT + - 52 / + + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT - MIN( DISTINCT - ( 47 ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9191
SELECT - MIN ( DISTINCT - ( 47 ) ) AS col2
----
47

query I rowsort
SELECT - - 72 * - + 57 col2
----
-4104

query I rowsort
SELECT - 65 - - 13 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT - + COALESCE ( MAX( + 2 ), 62 )
----
-2

skipif mysql # not compatible
query I rowsort label-9194
SELECT - + COALESCE ( MAX ( + 2 ), 62 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ALL + SUM( + 95 ) * - 83 - + 70 * - - 32 + - - 48 * - + 69 * COUNT( * )
----
-13437

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL + SUM ( + 95 ) * - 83 - + 70 * - - 32 + - - 48 * - + 69 * COUNT ( * )
----
-13437

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9196
SELECT + 8 DIV + - 22 * - 46 - + 99 - MIN( ALL + - 27 )
----
-72

skipif mysql # not compatible
query I rowsort label-9196
SELECT + 8 / + - 22 * - 46 - + 99 - MIN ( ALL + - 27 )
----
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9197
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + 1 + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT - CAST ( NULL AS REAL ) + 1 + 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9198
SELECT ALL + + 48 + + COUNT( * ) - + 71 * 52 * - 38 * 49, + 81 + - 29 DIV - - COUNT( * ) AS col0
----
6874553
52

skipif mysql # not compatible
query II rowsort label-9198
SELECT ALL + + 48 + + COUNT ( * ) - + 71 * 52 * - 38 * 49, + 81 + - 29 / - - COUNT ( * ) AS col0
----
6874553
52

query II rowsort
SELECT - - 20 + 86 * 80 * + + 41 AS col2, 38 * 25 AS col2
----
282100
950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9200
SELECT - COUNT( * ) + - - 13 + + - 48 DIV + + 64 * - 43 * 29 col0
----
12

skipif mysql # not compatible
query I rowsort label-9200
SELECT - COUNT ( * ) + - - 13 + + - 48 / + + 64 * - 43 * 29 col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT ALL ( + 59 ) + + COUNT( * ) + - 42 - - - 24 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL ( + 59 ) + + COUNT ( * ) + - 42 - - - 24 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT - 24 + - COUNT( DISTINCT 46 ) + + + 64 + 38 + + 32 * + + 0 * + ( - - 3 ) * - - 13
----
77

skipif mysql # not compatible
query I rowsort label-9202
SELECT - 24 + - COUNT ( DISTINCT 46 ) + + + 64 + 38 + + 32 * + + 0 * + ( - - 3 ) * - - 13
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 6
----
NULL

query I rowsort
SELECT + 12 * + + 54
----
648

onlyif mysql # DIV for integer division: 
query I rowsort label-9205
SELECT DISTINCT - 13 DIV - + 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT - 13 / - + 15 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9206
SELECT DISTINCT + NULLIF ( - - CAST( NULL AS SIGNED ), - - 77 ), CAST( + 96 AS SIGNED ) AS col2
----
NULL
96

skipif mysql # not compatible
query II rowsort label-9206
SELECT DISTINCT + NULLIF ( - - CAST ( NULL AS INTEGER ), - - 77 ), CAST ( + 96 AS INTEGER ) AS col2
----
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT ALL CAST( NULL AS SIGNED ) / - - 16 - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL CAST ( NULL AS INTEGER ) / - - 16 - + 42
----
NULL

query II rowsort
SELECT - 82 * - + 15, - 23 AS col2
----
1230
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9209
SELECT ALL - CAST( NULL AS SIGNED ) / 20 AS col2, CASE 30 WHEN + - 76 THEN - 25 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9209
SELECT ALL - CAST ( NULL AS INTEGER ) / 20 AS col2, CASE 30 WHEN + - 76 THEN - 25 END AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL + MIN( ALL - ( 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL + MIN ( ALL - ( 65 ) )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-9211
SELECT + ( + 23 ) * COUNT( * ) + - - 84 + + 6 AS col2, CASE + - 96 WHEN 91 + 27 THEN 46 * + 48 END
----
113
NULL

skipif mysql # not compatible
query II rowsort label-9211
SELECT + ( + 23 ) * COUNT ( * ) + - - 84 + + 6 AS col2, CASE + - 96 WHEN 91 + 27 THEN 46 * + 48 END
----
113
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( 54, + - 93 + 31 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9213
SELECT ALL MAX( 78 ) / ( CAST( NULL AS SIGNED ) ) - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL MAX ( 78 ) / ( CAST ( NULL AS INTEGER ) ) - 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT - 46 / + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT - 46 / + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9215
SELECT - 52 * + CAST( 48 AS SIGNED ) AS col1
----
-2496

skipif mysql # not compatible
query I rowsort label-9215
SELECT - 52 * + CAST ( 48 AS INTEGER ) AS col1
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT + 85 * - COUNT( * ) * + 41 - + 89
----
-3574

skipif mysql # not compatible
query I rowsort label-9216
SELECT + 85 * - COUNT ( * ) * + 41 - + 89
----
-3574

query I rowsort
SELECT ( + ( + 30 ) ) AS col2
----
30

query I rowsort
SELECT ( 85 ) * 86 - 77
----
7233

query I rowsort
SELECT - 63 * + + 19 + - ( 63 ) + + 46 + + 32
----
-1182

onlyif mysql # DIV for integer division: 
query II rowsort label-9220
SELECT - 77 * 25 DIV 81 + ( 72 ) AS col1, + 33 AS col1
----
49
33

skipif mysql # not compatible
query II rowsort label-9220
SELECT - 77 * 25 / 81 + ( 72 ) AS col1, + 33 AS col1
----
49
33

query I rowsort
SELECT 45 - - 64 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT - NULLIF ( 15, + 24 * + MIN( + - ( + + 86 ) ) * 77 * - MAX( ALL - + 11 ) + + + 82 - - 55 )
----
-15

skipif mysql # not compatible
query I rowsort label-9222
SELECT - NULLIF ( 15, + 24 * + MIN ( + - ( + + 86 ) ) * 77 * - MAX ( ALL - + 11 ) + + + 82 - - 55 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT - MAX( ALL + - 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9223
SELECT - MAX ( ALL + - 84 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT 56 * + + ( + - COUNT( * ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9224
SELECT 56 * + + ( + - COUNT ( * ) ) AS col2
----
-56

query I rowsort
SELECT DISTINCT - 62 + + - 68 AS col2
----
-130

onlyif mysql # aggregate syntax: 
query II rowsort label-9226
SELECT ALL + COUNT( * ) + + - 31, ( - - 52 ) AS col0
----
-30
52

skipif mysql # not compatible
query II rowsort label-9226
SELECT ALL + COUNT ( * ) + + - 31, ( - - 52 ) AS col0
----
-30
52

query I rowsort
SELECT ALL - 29 + + + ( - ( - 22 ) ) AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9228
SELECT + 15 * ( 59 ) * + COUNT( * ) * - - NULLIF ( CAST( + - NULLIF ( 3, + 92 ) AS SIGNED ), 75 + CAST( NULL AS SIGNED ) + - ( 96 ) + + 12 / 82 ) + - + 5 + - + 9 - 23 AS col1
----
-2692

skipif mysql # not compatible
query I rowsort label-9228
SELECT + 15 * ( 59 ) * + COUNT ( * ) * - - NULLIF ( CAST ( + - NULLIF ( 3, + 92 ) AS INTEGER ), 75 + CAST ( NULL AS INTEGER ) + - ( 96 ) + + 12 / 82 ) + - + 5 + - + 9 - 23 AS col1
----
-2692

onlyif mysql # DIV for integer division: 
query II rowsort label-9229
SELECT 51 AS col1, + 31 DIV - 13 AS col0
----
51
-2

skipif mysql # not compatible
query II rowsort label-9229
SELECT 51 AS col1, + 31 / - 13 AS col0
----
51
-2

query I rowsort
SELECT NULLIF ( - - 18, 28 ) - + 8 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9231
SELECT ALL COUNT( * ) DIV - NULLIF ( - 84, CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL COUNT ( * ) / - NULLIF ( - 84, CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT COUNT( * ) + 10
----
11

skipif mysql # not compatible
query I rowsort label-9232
SELECT COUNT ( * ) + 10
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9233
SELECT CASE CAST( - SUM( 53 ) AS DECIMAL ) WHEN + + 46 THEN - 85 WHEN 23 THEN - 91 * - 26 ELSE NULL END / + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT CASE CAST ( - SUM ( 53 ) AS REAL ) WHEN + + 46 THEN - 85 WHEN 23 THEN - 91 * - 26 ELSE NULL END / + 29 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9234
SELECT CAST( NULL AS DECIMAL ) + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT CAST ( NULL AS REAL ) + - 98
----
NULL

query I rowsort
SELECT 45 * 25
----
1125

onlyif mysql # aggregate syntax: 
query II rowsort label-9236
SELECT ALL 55, - COUNT( * ) AS col0
----
55
-1

skipif mysql # not compatible
query II rowsort label-9236
SELECT ALL 55, - COUNT ( * ) AS col0
----
55
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9237
SELECT DISTINCT - COUNT( * ) col0, 74 * - 87
----
-1
-6438

skipif mysql # not compatible
query II rowsort label-9237
SELECT DISTINCT - COUNT ( * ) col0, 74 * - 87
----
-1
-6438

query I rowsort
SELECT DISTINCT 99 * 61 AS col1
----
6039

query I rowsort
SELECT 54 + 81 + 1
----
136

query I rowsort
SELECT 89 * - 7
----
-623

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT ALL - 25, - ( + + COUNT( * ) ) AS col2
----
-25
-1

skipif mysql # not compatible
query II rowsort label-9241
SELECT ALL - 25, - ( + + COUNT ( * ) ) AS col2
----
-25
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9242
SELECT + 31 DIV 37 - + + 98 + COUNT( DISTINCT 67 ) * + + 43 - + 72
----
-127

skipif mysql # not compatible
query I rowsort label-9242
SELECT + 31 / 37 - + + 98 + COUNT ( DISTINCT 67 ) * + + 43 - + 72
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9243
SELECT ALL - MIN( DISTINCT + 56 ) DIV COUNT( * ) AS col2, + 2
----
-56
2

skipif mysql # not compatible
query II rowsort label-9243
SELECT ALL - MIN ( DISTINCT + 56 ) / COUNT ( * ) AS col2, + 2
----
-56
2

query I rowsort
SELECT ALL + + 48 + + CASE - + 35 WHEN + + 62 THEN NULL ELSE 14 END * 22
----
356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT DISTINCT + - 31 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT + - 31 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 81 + + + 99 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT + COUNT( * ) * 62
----
62

skipif mysql # not compatible
query I rowsort label-9247
SELECT + COUNT ( * ) * 62
----
62

query II rowsort
SELECT + - 83, - 10 - 14 AS col1
----
-83
-24

query I rowsort
SELECT ALL - 33 + 51 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT ALL - SUM( DISTINCT 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL - SUM ( DISTINCT 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT + MIN( DISTINCT - 15 ) + - SUM( 82 )
----
-97

skipif mysql # not compatible
query I rowsort label-9251
SELECT + MIN ( DISTINCT - 15 ) + - SUM ( 82 )
----
-97

query I rowsort
SELECT - - ( 46 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT - 13 + + 39 * + - COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-9253
SELECT - 13 + + 39 * + - COUNT ( * ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT SUM( DISTINCT - - 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9254
SELECT SUM ( DISTINCT - - 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT 40 + + COUNT( ALL - 89 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9255
SELECT 40 + + COUNT ( ALL - 89 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9256
SELECT DISTINCT + 14, COUNT( * ) AS col2
----
14
1

skipif mysql # not compatible
query II rowsort label-9256
SELECT DISTINCT + 14, COUNT ( * ) AS col2
----
14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT ALL COUNT( 95 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL COUNT ( 95 ) AS col1
----
1

query I rowsort
SELECT ( + + 44 ) + - 58
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT SUM( - 13 ) * - 50 - - 54 AS col2
----
704

skipif mysql # not compatible
query I rowsort label-9259
SELECT SUM ( - 13 ) * - 50 - - 54 AS col2
----
704

onlyif mysql # DIV for integer division: 
query I rowsort label-9260
SELECT ALL 0 - + 29 + + 54 DIV + + 74 col0
----
-29

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL 0 - + 29 + + 54 / + + 74 col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT DISTINCT - 22 * 73 * 11 * CAST( 42 AS SIGNED )
----
-741972

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT - 22 * 73 * 11 * CAST ( 42 AS INTEGER )
----
-741972

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL COUNT( DISTINCT ( - + 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL COUNT ( DISTINCT ( - + 37 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9263
SELECT 55 + + 19 DIV 1 + + 27 * 35 AS col2
----
1019

skipif mysql # not compatible
query I rowsort label-9263
SELECT 55 + + 19 / 1 + + 27 * 35 AS col2
----
1019

onlyif mysql # aggregate syntax: 
query II rowsort label-9264
SELECT 74 + COUNT( * ) AS col0, + 7 AS col0
----
75
7

skipif mysql # not compatible
query II rowsort label-9264
SELECT 74 + COUNT ( * ) AS col0, + 7 AS col0
----
75
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT DISTINCT 52 * - - CAST( + - 25 AS SIGNED ) AS col2
----
-1300

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT 52 * - - CAST ( + - 25 AS INTEGER ) AS col2
----
-1300

onlyif mysql # DIV for integer division: 
query I rowsort label-9266
SELECT DISTINCT + 78 DIV - 22 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT + 78 / - 22 AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9267
SELECT + CASE 99 WHEN + 62 + COUNT( * ) THEN NULL WHEN - AVG ( + - 79 ) * - - 73 / + COALESCE ( ( + CASE - NULLIF ( - + 34, + CAST( - + 25 AS DECIMAL ) + - - 61 ) WHEN COUNT( * ) THEN NULL WHEN + 75 * 89 + COALESCE ( + CAST( NULL AS SIGNED ), + - SUM( ALL + 94 ) ) * + 30 * + 21 + - 76 * - 14 * COALESCE ( - 30, - 62 + + 57, - 60 + + 71, + + ( - + SUM( + 17 ) ) ) THEN - ( - ( - 28 ) ) END ), - - SUM( DISTINCT 32 ), - 91 ) THEN 14 ELSE + 14 * - 80 END * 53
----
-59360

skipif mysql # not compatible
query I rowsort label-9267
SELECT + CASE 99 WHEN + 62 + COUNT ( * ) THEN NULL WHEN - AVG ( + - 79 ) * - - 73 / + COALESCE ( ( + CASE - NULLIF ( - + 34, + CAST ( - + 25 AS REAL ) + - - 61 ) WHEN COUNT ( * ) THEN NULL WHEN + 75 * 89 + COALESCE ( + CAST ( NULL AS INTEGER ), + - SUM ( ALL + 94 ) ) * + 30 * + 21 + - 76 * - 14 * COALESCE ( - 30, - 62 + + 57, - 60 + + 71, + + ( - + SUM ( + 17 ) ) ) THEN - ( - ( - 28 ) ) END ), - - SUM ( DISTINCT 32 ), - 91 ) THEN 14 ELSE + 14 * - 80 END * 53
----
-59360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9268
SELECT ALL 98 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL 98 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 71 * - 42 + 47 AS col0
----
-2935

query I rowsort
SELECT ALL + 16 * + 93 + - CASE 28 WHEN 26 THEN + 10 ELSE 75 END AS col0
----
1413

query I rowsort
SELECT + 86 * + 47
----
4042

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL - - 70 * COUNT( * ) + + COALESCE ( 34, + + 36 + - + 8 + + + 96 + - + 88 ) + COUNT( * )
----
105

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - - 70 * COUNT ( * ) + + COALESCE ( 34, + + 36 + - + 8 + + + 96 + - + 88 ) + COUNT ( * )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT - - 84 * - + CASE 78 WHEN - COUNT( * ) THEN 35 WHEN + - 97 * + 37 THEN NULL ELSE NULL END + + 93 / - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT - - 84 * - + CASE 78 WHEN - COUNT ( * ) THEN 35 WHEN + - 97 * + 37 THEN NULL ELSE NULL END + + 93 / - 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT + 46 * - + COUNT( * ) * + + 13
----
-598

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT + 46 * - + COUNT ( * ) * + + 13
----
-598

onlyif mysql # aggregate syntax: 
query II rowsort label-9275
SELECT DISTINCT - 18 * + 73 + - 14 + 27 * NULLIF ( + 45, + - 63 * + NULLIF ( + 55, - - MAX( DISTINCT - 34 ) ) ) * - 89 AS col2, 73 AS col2
----
-109463
73

skipif mysql # not compatible
query II rowsort label-9275
SELECT DISTINCT - 18 * + 73 + - 14 + 27 * NULLIF ( + 45, + - 63 * + NULLIF ( + 55, - - MAX ( DISTINCT - 34 ) ) ) * - 89 AS col2, 73 AS col2
----
-109463
73

query I rowsort
SELECT ALL + - 41 * - + 41 + - - 40 AS col0
----
1721

query III rowsort
SELECT COALESCE ( 36, ( ( 14 ) ) - 10 - 23 * - 33, - 20 ) AS col0, + 96 AS col2, - - 50 + + COALESCE ( 48, - + 44, 73 ) + + - 92 * - 88 + + NULLIF ( 70, - 97 + AVG ( ALL ( 80 ) ) ) + - - COALESCE ( - 62, - 31 * + + 88 ) * + 33 AS col1
----
36
96
6218

query I rowsort
SELECT DISTINCT 67 - - 74 + - 72 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT + 55 * + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9279
SELECT + 55 * + + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT - COALESCE ( + 90, 10 + COUNT( * ), - COUNT( 41 ) ) * + 62
----
-5580

skipif mysql # not compatible
query I rowsort label-9280
SELECT - COALESCE ( + 90, 10 + COUNT ( * ), - COUNT ( 41 ) ) * + 62
----
-5580

query I rowsort
SELECT - - 57 col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9282
SELECT DISTINCT - + 36 - 91 / + 1 + + CAST( NULL AS SIGNED ) + + - 5 / - MIN( DISTINCT - CAST( 24 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT - + 36 - 91 / + 1 + + CAST ( NULL AS INTEGER ) + + - 5 / - MIN ( DISTINCT - CAST ( 24 AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 36 * - NULLIF ( + 34, + 73 )
----
-1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9284
SELECT - COUNT( * ) DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-9284
SELECT - COUNT ( * ) / - 73
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9285
SELECT DISTINCT + 54 DIV 8 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT + 54 / 8 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT DISTINCT COUNT( - + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT COUNT ( - + 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT - 47 - - - 10 + MIN( ALL + 56 ) * - 39
----
-2241

skipif mysql # not compatible
query I rowsort label-9287
SELECT - 47 - - - 10 + MIN ( ALL + 56 ) * - 39
----
-2241

query I rowsort
SELECT ALL ( + + ( - 99 ) ) AS col0
----
-99

query I rowsort
SELECT - 23 + - 98 + - + 18
----
-139

onlyif mysql # aggregate syntax: 
query II rowsort label-9290
SELECT - COUNT( * ) AS col2, - 77 * 66
----
-1
-5082

skipif mysql # not compatible
query II rowsort label-9290
SELECT - COUNT ( * ) AS col2, - 77 * 66
----
-1
-5082

query I rowsort
SELECT ALL + 64 * - - 7 * 65
----
29120

query I rowsort
SELECT DISTINCT + 92 + + 66 + - 79 AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9293
SELECT DISTINCT - 19 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT - 19 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL + 60 AS col2, 49
----
60
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT + COUNT( * ) + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-9295
SELECT + COUNT ( * ) + - 98
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9296
SELECT CAST( 24 AS SIGNED ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9296
SELECT CAST ( 24 AS INTEGER ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT - + 65 * SUM( 1 ) * - - 24 + + + NULLIF ( - + 28, + + 58 * - MAX( + + 94 ) - - 99 ) AS col2
----
-1588

skipif mysql # not compatible
query I rowsort label-9297
SELECT - + 65 * SUM ( 1 ) * - - 24 + + + NULLIF ( - + 28, + + 58 * - MAX ( + + 94 ) - - 99 ) AS col2
----
-1588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9298
SELECT - + 69 * + 61 * + 82 * CAST( + 3 AS SIGNED )
----
-1035414

skipif mysql # not compatible
query I rowsort label-9298
SELECT - + 69 * + 61 * + 82 * CAST ( + 3 AS INTEGER )
----
-1035414

query II rowsort
SELECT 72 AS col1, 18
----
72
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9300
SELECT ALL + CAST( - 11 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + CAST ( - 11 AS INTEGER )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT ALL - + 26 DIV - 74 + + 4 + + 2 col1
----
6

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL - + 26 / - 74 + + 4 + + 2 col1
----
6

query II rowsort
SELECT + 56 AS col2, 6
----
56
6

query I rowsort
SELECT ALL + NULLIF ( + + 59, - 77 ) * - - 81
----
4779

onlyif mysql # aggregate syntax: 
query II rowsort label-9304
SELECT + - 54 AS col1, COUNT( * ) AS col2
----
-54
1

skipif mysql # not compatible
query II rowsort label-9304
SELECT + - 54 AS col1, COUNT ( * ) AS col2
----
-54
1

query I rowsort
SELECT DISTINCT - 28 * + 79 - 81 AS col1
----
-2293

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL ( - + 49 ) * + - COUNT( * ) + + 92 - COUNT( * ) * + ( COUNT( * ) )
----
140

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL ( - + 49 ) * + - COUNT ( * ) + + 92 - COUNT ( * ) * + ( COUNT ( * ) )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT COUNT( DISTINCT - - 19 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9307
SELECT COUNT ( DISTINCT - - 19 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT 3 * - COUNT( * ) + + COUNT( * ) - + 18 * 62 + 28
----
-1090

skipif mysql # not compatible
query I rowsort label-9308
SELECT 3 * - COUNT ( * ) + + COUNT ( * ) - + 18 * 62 + 28
----
-1090

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ALL + + COUNT( + + 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL + + COUNT ( + + 2 ) AS col2
----
1

query I rowsort
SELECT + + 17 * 83 AS col1
----
1411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT - + 12 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT - + 12 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT - + 42 * 89 + + 47 + - COUNT( * ) * + 7 * 98 * - 65 AS col2
----
40899

skipif mysql # not compatible
query I rowsort label-9312
SELECT - + 42 * 89 + + 47 + - COUNT ( * ) * + 7 * 98 * - 65 AS col2
----
40899

query II rowsort
SELECT DISTINCT + - 1 AS col0, 60 * - 58 + + 58 AS col2
----
-1
-3422

query I rowsort
SELECT + 75 + + 72 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT + MIN( + 54 ) * - 1 + - + NULLIF ( 20, + - 39 ) * 42 + - - COUNT( * ) AS col2
----
-893

skipif mysql # not compatible
query I rowsort label-9315
SELECT + MIN ( + 54 ) * - 1 + - + NULLIF ( 20, + - 39 ) * 42 + - - COUNT ( * ) AS col2
----
-893

query I rowsort
SELECT ALL + 68 * 88
----
5984

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT - 59 + + 88 * COUNT( * ) col2
----
29

skipif mysql # not compatible
query I rowsort label-9317
SELECT - 59 + + 88 * COUNT ( * ) col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT + COUNT( * ) * - 96
----
-96

skipif mysql # not compatible
query I rowsort label-9318
SELECT + COUNT ( * ) * - 96
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT - ( - COUNT( * ) ) + + 57 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9319
SELECT - ( - COUNT ( * ) ) + + 57 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT COUNT( + 96 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9320
SELECT COUNT ( + 96 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT - COUNT( * ) + - 88 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9321
SELECT - COUNT ( * ) + - 88 AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9322
SELECT ALL + 5 + - NULLIF ( 31, + 50 * - CAST( NULL AS SIGNED ) + + - 42 + - 59 ) AS col0, 67 DIV 84 col1
----
-26
0

skipif mysql # not compatible
query II rowsort label-9322
SELECT ALL + 5 + - NULLIF ( 31, + 50 * - CAST ( NULL AS INTEGER ) + + - 42 + - 59 ) AS col0, 67 / 84 col1
----
-26
0

query I rowsort
SELECT DISTINCT - 50 * - 23 * 95 * + 24 * - - 13 * 43 AS col0
----
1465698000

query II rowsort
SELECT - 5 col2, 67 AS col2
----
-5
67

query I rowsort
SELECT + 99 * 78 * 85 AS col0
----
656370

query I rowsort
SELECT - 5 + + + 28
----
23

query I rowsort
SELECT 73 * - + 9 AS col2
----
-657

query I rowsort
SELECT ALL 81 + ( 19 ) col2
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-9329
SELECT - 16 AS col0, SUM( ALL - - 24 ) - - COUNT( * )
----
-16
25

skipif mysql # not compatible
query II rowsort label-9329
SELECT - 16 AS col0, SUM ( ALL - - 24 ) - - COUNT ( * )
----
-16
25

query I rowsort
SELECT 89 + - 98 * 54 AS col1
----
-5203

query II rowsort
SELECT 96 AS col1, + 18 col2
----
96
18

query III rowsort
SELECT 42 AS col2, 22 col2, + - 82 + 67
----
42
22
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT CAST( + 8 AS SIGNED ) * 62 col1
----
496

skipif mysql # not compatible
query I rowsort label-9333
SELECT CAST ( + 8 AS INTEGER ) * 62 col1
----
496

onlyif mysql # aggregate syntax: 
query II rowsort label-9334
SELECT + - COUNT( * ), - 9 AS col0
----
-1
-9

skipif mysql # not compatible
query II rowsort label-9334
SELECT + - COUNT ( * ), - 9 AS col0
----
-1
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT DISTINCT + - CASE + 72 WHEN 30 THEN + 25 ELSE + 57 END * - - CAST( 90 AS SIGNED ) + - 55 AS col0
----
-5185

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT + - CASE + 72 WHEN 30 THEN + 25 ELSE + 57 END * - - CAST ( 90 AS INTEGER ) + - 55 AS col0
----
-5185

query I rowsort
SELECT COALESCE ( + 15, + ( + 32 ), + 37 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT ALL + - 83 - COUNT( ALL - 78 ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL + - 83 - COUNT ( ALL - 78 ) col1
----
-84

query I rowsort
SELECT - 43 * + 47 col0
----
-2021

onlyif mysql # aggregate syntax: 
query II rowsort label-9339
SELECT 49 AS col2, + 11 * NULLIF ( - 96, - 72 + - + 26 + 22 * - + ( + 67 ) ) * 81 * COUNT( * ) AS col2
----
49
-85536

skipif mysql # not compatible
query II rowsort label-9339
SELECT 49 AS col2, + 11 * NULLIF ( - 96, - 72 + - + 26 + 22 * - + ( + 67 ) ) * 81 * COUNT ( * ) AS col2
----
49
-85536

onlyif mysql # DIV for integer division: 
query I rowsort label-9340
SELECT + 10 * + - 13 + + - 57 DIV 10 AS col0
----
-135

skipif mysql # not compatible
query I rowsort label-9340
SELECT + 10 * + - 13 + + - 57 / 10 AS col0
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9341
SELECT SUM( 52 ) * + COALESCE ( - 56, + 69, - 27 DIV + + 20 ) * + COUNT( * ) + COALESCE ( 30, + - 45 * - 89 ) + - 32 DIV 59 col1
----
-2882

skipif mysql # not compatible
query I rowsort label-9341
SELECT SUM ( 52 ) * + COALESCE ( - 56, + 69, - 27 / + + 20 ) * + COUNT ( * ) + COALESCE ( 30, + - 45 * - 89 ) + - 32 / 59 col1
----
-2882

query I rowsort
SELECT ALL - - COALESCE ( - 17, - - 84 )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9343
SELECT 86 AS col0, CAST( NULL AS SIGNED )
----
86
NULL

skipif mysql # not compatible
query II rowsort label-9343
SELECT 86 AS col0, CAST ( NULL AS INTEGER )
----
86
NULL

query I rowsort
SELECT + ( + 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT COUNT( * ) * + - 69 - 70 AS col0
----
-139

skipif mysql # not compatible
query I rowsort label-9345
SELECT COUNT ( * ) * + - 69 - 70 AS col0
----
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT 38 DIV 54 * + 36 + + 71
----
71

skipif mysql # not compatible
query I rowsort label-9346
SELECT 38 / 54 * + 36 + + 71
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9347
SELECT 25 * CAST( + AVG ( DISTINCT + 80 ) AS SIGNED ) * + ( - 72 ) col0, + 14 * 43 * - 39 * - - COUNT( * )
----
-144000
-23478

skipif mysql # not compatible
query II rowsort label-9347
SELECT 25 * CAST ( + AVG ( DISTINCT + 80 ) AS INTEGER ) * + ( - 72 ) col0, + 14 * 43 * - 39 * - - COUNT ( * )
----
-144000
-23478

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9348
SELECT - NULLIF ( 72, + + CAST( + 52 AS DECIMAL ) ) + - COALESCE ( 28, 33 ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-9348
SELECT - NULLIF ( 72, + + CAST ( + 52 AS REAL ) ) + - COALESCE ( 28, 33 ) AS col2
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9349
SELECT ALL - 92 DIV + 95 - COUNT( * ) + 94 * - - NULLIF ( - - CAST( 1 AS SIGNED ), + 75 - - 69 + COALESCE ( + - 3, + 54 DIV - 21 + COUNT( DISTINCT + 86 ) ) + - - 85 * + COUNT( * ) )
----
93

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL - 92 / + 95 - COUNT ( * ) + 94 * - - NULLIF ( - - CAST ( 1 AS INTEGER ), + 75 - - 69 + COALESCE ( + - 3, + 54 / - 21 + COUNT ( DISTINCT + 86 ) ) + - - 85 * + COUNT ( * ) )
----
93

query I rowsort
SELECT ALL + 69 * + + ( - 7 )
----
-483

query I rowsort
SELECT + 82 * + 88
----
7216

query I rowsort
SELECT 82 * + + 37 - + + 1
----
3033

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9353
SELECT DISTINCT 83 * - - ( + ( + ( COUNT( * ) ) ) ) * + 6 * - COUNT( * ) * + 87 - 2 DIV - + 43 * + 46 + + ( + - 14 ) AS col1
----
-43340

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT 83 * - - ( + ( + ( COUNT ( * ) ) ) ) * + 6 * - COUNT ( * ) * + 87 - 2 / - + 43 * + 46 + + ( + - 14 ) AS col1
----
-43340

query I rowsort
SELECT ALL 42 + 20 + ( - 92 ) + + 71
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT 0 * + 98 - + - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9355
SELECT 0 * + 98 - + - COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9356
SELECT CAST( 34 AS SIGNED ) * + + COALESCE ( - COALESCE ( + MAX( - - 81 ), COUNT( * ) + - 59 + + 57 * + COUNT( * ), - 60 * - 73 + + - 66 ), 62 ) + 39 AS col0, + 41
----
-2715
41

skipif mysql # not compatible
query II rowsort label-9356
SELECT CAST ( 34 AS INTEGER ) * + + COALESCE ( - COALESCE ( + MAX ( - - 81 ), COUNT ( * ) + - 59 + + 57 * + COUNT ( * ), - 60 * - 73 + + - 66 ), 62 ) + 39 AS col0, + 41
----
-2715
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT COUNT( DISTINCT 5 ) + - 43 * + 43 AS col0
----
-1848

skipif mysql # not compatible
query I rowsort label-9357
SELECT COUNT ( DISTINCT 5 ) + - 43 * + 43 AS col0
----
-1848

query I rowsort
SELECT ALL NULLIF ( - + 30, 1 ) + - 24 + 4
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9359
SELECT DISTINCT 41 + - COALESCE ( CAST( NULL AS SIGNED ), - + SUM( 9 ) * - 11 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT 41 + - COALESCE ( CAST ( NULL AS INTEGER ), - + SUM ( 9 ) * - 11 ) AS col2
----
-58

query I rowsort
SELECT DISTINCT - 19 + 2 AS col0
----
-17

query I rowsort
SELECT 99 * 64 AS col0
----
6336

query I rowsort
SELECT 69 * - + 5 * + + ( 67 ) AS col0
----
-23115

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL COUNT( * ) + + + 72
----
73

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL COUNT ( * ) + + + 72
----
73

query I rowsort
SELECT 82 * + + 38 AS col0
----
3116

query I rowsort
SELECT 89 + 40
----
129

query I rowsort
SELECT ALL - 2 * 75
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL CASE 58 WHEN - + 72 + - 1 THEN NULL WHEN + 49 + + COUNT( DISTINCT - - 26 ) THEN + 67 END - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL CASE 58 WHEN - + 72 + - 1 THEN NULL WHEN + 49 + + COUNT ( DISTINCT - - 26 ) THEN + 67 END - 63
----
NULL

query I rowsort
SELECT 60 + - - 49
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL 88 * - 34 + MAX( - - 0 ) col0
----
-2992

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL 88 * - 34 + MAX ( - - 0 ) col0
----
-2992

onlyif mysql # aggregate syntax: 
query II rowsort label-9370
SELECT + 41 + COUNT( + 62 ), 59 AS col2
----
42
59

skipif mysql # not compatible
query II rowsort label-9370
SELECT + 41 + COUNT ( + 62 ), 59 AS col2
----
42
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT DISTINCT - + NULLIF ( - COUNT( * ), - 9 * - 11 - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT - + NULLIF ( - COUNT ( * ), - 9 * - 11 - 89 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ( 69 ) + - COUNT( - + 45 ) + + COUNT( * ) col1
----
69

skipif mysql # not compatible
query I rowsort label-9372
SELECT ( 69 ) + - COUNT ( - + 45 ) + + COUNT ( * ) col1
----
69

query I rowsort
SELECT - 7 * - + 88
----
616

query I rowsort
SELECT 60 * - + 80
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT 63 + - + COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9375
SELECT 63 + - + COUNT ( * ) AS col2
----
62

query I rowsort
SELECT NULLIF ( + 80, - + 46 ) * + - 33 + - + 76 AS col1
----
-2716

query I rowsort
SELECT DISTINCT - 62 * + 47 * - 53 + - 62 * - 31
----
156364

query I rowsort
SELECT + 84 + ( 22 ) * 60 + + 7
----
1411

onlyif mysql # DIV for integer division: 
query I rowsort label-9379
SELECT ALL - 50 + + + 87 DIV - + COALESCE ( - 72, - 26 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL - 50 + + + 87 / - + COALESCE ( - 72, - 26 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT MAX( ALL + + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-9380
SELECT MAX ( ALL + + 45 )
----
45

query I rowsort
SELECT 5 * - 73 + - + 81 col1
----
-446

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9382
SELECT DISTINCT - 32 DIV + - MIN( + - 12 )
----
-2

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT - 32 / + - MIN ( + - 12 )
----
-2

query II rowsort
SELECT ALL + 28 AS col2, 67 col2
----
28
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT - ( + - COUNT( DISTINCT + 34 ) ) + - 25 + - 9 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9384
SELECT - ( + - COUNT ( DISTINCT + 34 ) ) + - 25 + - 9 AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT ALL - 51 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL - 51 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 88 + - 1 AS col0
----
87

query I rowsort
SELECT + 70 + 19 AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9388
SELECT + COALESCE ( 33, 14, 87 DIV + MIN( ALL 36 ) ) * 71
----
2343

skipif mysql # not compatible
query I rowsort label-9388
SELECT + COALESCE ( 33, 14, 87 / + MIN ( ALL 36 ) ) * 71
----
2343

query I rowsort
SELECT ALL + 15 * - 79 * - 37
----
43845

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT NULLIF ( + COUNT( * ), + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT NULLIF ( + COUNT ( * ), + 25 )
----
1

query I rowsort
SELECT + 22 + 90 AS col2
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT ALL 28 - 36 + 79 + + ( + NULLIF ( 16, 98 ) ) * - CAST( + 27 AS SIGNED )
----
-361

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL 28 - 36 + 79 + + ( + NULLIF ( 16, 98 ) ) * - CAST ( + 27 AS INTEGER )
----
-361

query I rowsort
SELECT - 34 * + 61 * + + 75 AS col0
----
-155550

query I rowsort
SELECT + 40 * + - ( - 30 )
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + 16 + + 78 + COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9395
SELECT + 16 + + 78 + COUNT ( * ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT - NULLIF ( - + 35, COUNT( * ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9396
SELECT - NULLIF ( - + 35, COUNT ( * ) ) AS col0
----
35

query II rowsort
SELECT 67 AS col0, 54 * + 58 * + 46 AS col0
----
67
144072

query I rowsort
SELECT ALL + - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL 61 * - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL 61 * - COUNT ( * )
----
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9400
SELECT CAST( NULL AS DECIMAL ) * - + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9400
SELECT CAST ( NULL AS REAL ) * - + 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9401
SELECT DISTINCT - 40 AS col0, - COUNT( * ) col0
----
-40
-1

skipif mysql # not compatible
query II rowsort label-9401
SELECT DISTINCT - 40 AS col0, - COUNT ( * ) col0
----
-40
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9402
SELECT ALL + COALESCE ( + 20, + + CAST( 45 AS SIGNED ) - + COUNT( * ), - 94 * - + 30 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL + COALESCE ( + 20, + + CAST ( 45 AS INTEGER ) - + COUNT ( * ), - 94 * - + 30 ) AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9403
SELECT ALL CAST( + 3 AS SIGNED ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL CAST ( + 3 AS INTEGER ) AS col0
----
3

query I rowsort
SELECT + 73 + - 89 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT COUNT( * ) * ( + 46 ) col0
----
46

skipif mysql # not compatible
query I rowsort label-9405
SELECT COUNT ( * ) * ( + 46 ) col0
----
46

query II rowsort
SELECT + 64 AS col0, 63 AS col1
----
64
63

query I rowsort
SELECT ALL - ( - 27 ) col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9408
SELECT ( - + COUNT( * ) ) + 42 DIV - + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-9408
SELECT ( - + COUNT ( * ) ) + 42 / - + COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT 18 * - - COUNT( DISTINCT - 99 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9409
SELECT 18 * - - COUNT ( DISTINCT - 99 ) AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT - COUNT( ALL + + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9410
SELECT - COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT - 13 * + - 72 AS col0
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL + ( - - ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL + ( - - ( COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL 18 * + SUM( - 55 ) AS col0
----
-990

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL 18 * + SUM ( - 55 ) AS col0
----
-990

query I rowsort
SELECT - 72 + + - 91 AS col0
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT ALL + CAST( 67 AS SIGNED ) col1
----
67

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL + CAST ( 67 AS INTEGER ) col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9416
SELECT ALL + MAX( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL + MAX ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + COUNT( * ) * + 44
----
44

skipif mysql # not compatible
query I rowsort label-9417
SELECT + COUNT ( * ) * + 44
----
44

query I rowsort
SELECT - - ( - 92 ) AS col0
----
-92

query I rowsort
SELECT 27 * + - 4
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT DISTINCT MIN( - + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT MIN ( - + 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT COUNT( * ) * - 71 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9421
SELECT COUNT ( * ) * - 71 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL + COUNT( * ) * 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL + COUNT ( * ) * 49 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT + 67 * COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-9423
SELECT + 67 * COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9424
SELECT - - 87 DIV ( - + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-9424
SELECT - - 87 / ( - + 88 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9425
SELECT ALL - COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ) ) * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL - COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ) ) * + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL ( ( + 44 ) ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT + MIN( DISTINCT + 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9427
SELECT + MIN ( DISTINCT + 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT DISTINCT + COUNT( * ) * 40 - 77
----
-37

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT + COUNT ( * ) * 40 - 77
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL - - COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL - - COUNT ( * ) * COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL + MIN( - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL + MIN ( - 21 )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT + 54 + + CAST( + + 46 AS SIGNED )
----
100

skipif mysql # not compatible
query I rowsort label-9431
SELECT + 54 + + CAST ( + + 46 AS INTEGER )
----
100

query I rowsort
SELECT DISTINCT + 91 * - + 3 * 49 AS col1
----
-13377

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT COUNT( * ) * + + 10
----
10

skipif mysql # not compatible
query I rowsort label-9433
SELECT COUNT ( * ) * + + 10
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9434
SELECT DISTINCT CAST( - MIN( - 74 ) AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT CAST ( - MIN ( - 74 ) AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 16 * + - 34 AS col0
----
-544

query I rowsort
SELECT 5 * + ( 78 ) - - + 91
----
481

query I rowsort
SELECT DISTINCT - ( - + 97 ) AS col2
----
97

query I rowsort
SELECT ALL + + 17 AS col1
----
17

query I rowsort
SELECT DISTINCT + + 58 AS col1
----
58

query I rowsort
SELECT + ( - 31 ) col2
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9441
SELECT + CAST( NULL AS DECIMAL ) * 15 + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT + CAST ( NULL AS REAL ) * 15 + 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT ALL + COUNT( 2 )
----
1

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + COUNT ( 2 )
----
1

query I rowsort
SELECT ALL + NULLIF ( - 67, + - 68 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT DISTINCT - 32 * - 48 * COUNT( * ) AS col1
----
1536

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT - 32 * - 48 * COUNT ( * ) AS col1
----
1536

query I rowsort
SELECT ALL + 15 * - - 4 AS col1
----
60

query I rowsort
SELECT + ( 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT 52 * - COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-9447
SELECT 52 * - COUNT ( * ) AS col0
----
-52

query I rowsort
SELECT DISTINCT - + 62 AS col2
----
-62

query I rowsort
SELECT DISTINCT + 15 * + - 17
----
-255

query I rowsort
SELECT DISTINCT ( + 63 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT - COUNT( * ) - - - 80
----
-81

skipif mysql # not compatible
query I rowsort label-9451
SELECT - COUNT ( * ) - - - 80
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT DISTINCT + ( + COUNT( 95 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT + ( + COUNT ( 95 ) ) AS col2
----
1

query I rowsort
SELECT + 70 col0
----
70

query I rowsort
SELECT ALL + NULLIF ( 53, 34 )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9455
SELECT ALL 30 AS col1, - COUNT( * ) AS col2
----
30
-1

skipif mysql # not compatible
query II rowsort label-9455
SELECT ALL 30 AS col1, - COUNT ( * ) AS col2
----
30
-1

query I rowsort
SELECT DISTINCT 46 * 99
----
4554

query I rowsort
SELECT + 48 + - 54
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT - ( + COUNT( * ) ) + - 51 col0
----
-52

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT - ( + COUNT ( * ) ) + - 51 col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9459
SELECT CAST( + 13 AS SIGNED ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9459
SELECT CAST ( + 13 AS INTEGER ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL + + MIN( + - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + + MIN ( + - 74 )
----
-74

query I rowsort
SELECT DISTINCT + 36 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT COUNT( * ) * + 20
----
20

skipif mysql # not compatible
query I rowsort label-9462
SELECT COUNT ( * ) * + 20
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT ( 29 ) + - CAST( CAST( 34 AS SIGNED ) AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-9463
SELECT ( 29 ) + - CAST ( CAST ( 34 AS INTEGER ) AS INTEGER )
----
-5

query I rowsort
SELECT ALL - - 6 col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT 6 * - + COUNT( * ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9465
SELECT 6 * - + COUNT ( * ) AS col2
----
-6

query II rowsort
SELECT + 32 col2, 37
----
32
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT COUNT( * ) * - 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9467
SELECT COUNT ( * ) * - 27 AS col1
----
-27

query I rowsort
SELECT DISTINCT + - 79 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - - COUNT( * ) * - - 32
----
32

skipif mysql # not compatible
query I rowsort label-9469
SELECT - - COUNT ( * ) * - - 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL COALESCE ( + COUNT( * ), + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL COALESCE ( + COUNT ( * ), + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9471
SELECT - CAST( NULL AS SIGNED ) / + COUNT( * ) AS col2, + 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-9471
SELECT - CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col2, + 27
----
NULL
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT DISTINCT ( + + MIN( 30 ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT ( + + MIN ( 30 ) ) AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9473
SELECT - 99 DIV + COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-9473
SELECT - 99 / + COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + MAX( ALL + 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9474
SELECT + MAX ( ALL + 96 ) AS col1
----
96

query I rowsort
SELECT DISTINCT + 96 * + + 34 AS col0
----
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT + + 57 + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9476
SELECT + + 57 + COUNT ( * ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ALL + 20 * 55 * - - COUNT( * )
----
1100

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + 20 * 55 * - - COUNT ( * )
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL 52 * - + 49 - COUNT( * ) AS col1
----
-2549

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL 52 * - + 49 - COUNT ( * ) AS col1
----
-2549

query I rowsort
SELECT DISTINCT ( 19 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9480
SELECT DISTINCT CAST( - - 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT CAST ( - - 54 AS INTEGER )
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9481
SELECT ALL CAST( NULL AS DECIMAL ) AS col0, + 71 + - COUNT( * ) col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-9481
SELECT ALL CAST ( NULL AS REAL ) AS col0, + 71 + - COUNT ( * ) col0
----
NULL
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9482
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT + CAST( 47 AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9483
SELECT + CAST ( 47 AS INTEGER ) AS col2
----
47

query I rowsort
SELECT ALL 91 * - + 60 AS col1
----
-5460

query I rowsort
SELECT 12 * + 94
----
1128

onlyif mysql # aggregate syntax: 
query II rowsort label-9486
SELECT 95 + COUNT( * ) * + + 25 + - 52 AS col1, ( + - 57 ) AS col1
----
68
-57

skipif mysql # not compatible
query II rowsort label-9486
SELECT 95 + COUNT ( * ) * + + 25 + - 52 AS col1, ( + - 57 ) AS col1
----
68
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9487
SELECT 2 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-9487
SELECT 2 / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT COUNT( * ) * - 63
----
-63

skipif mysql # not compatible
query I rowsort label-9488
SELECT COUNT ( * ) * - 63
----
-63

query I rowsort
SELECT ALL - 28 col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT COUNT( * ) + - 4 col0
----
-3

skipif mysql # not compatible
query I rowsort label-9490
SELECT COUNT ( * ) + - 4 col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9491
SELECT COUNT( * ) DIV - + 36 col1
----
0

skipif mysql # not compatible
query I rowsort label-9491
SELECT COUNT ( * ) / - + 36 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT DISTINCT 12 + + - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-9492
SELECT DISTINCT 12 + + - COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9493
SELECT - COUNT( * ), - COUNT( * ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-9493
SELECT - COUNT ( * ), - COUNT ( * ) AS col1
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT - + COUNT( * ) * + ( 18 ) + - 52
----
-70

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT - + COUNT ( * ) * + ( 18 ) + - 52
----
-70

query I rowsort
SELECT + ( + 99 ) col1
----
99

query I rowsort
SELECT - - ( + 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9497
SELECT - + 30 + - AVG ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT - + 30 + - AVG ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT + + 24 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT + + 24 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 25 col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT MIN( ALL 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9500
SELECT MIN ( ALL 71 ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) / 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) / 37 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT ALL CAST( - 20 AS SIGNED ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL CAST ( - 20 AS INTEGER ) AS col2
----
-20

query I rowsort
SELECT ALL - ( + 90 ) col1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9504
SELECT - COUNT( * ) AS col1, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-9504
SELECT - COUNT ( * ) AS col1, COUNT ( * )
----
-1
1

query I rowsort
SELECT - ( + 62 )
----
-62

query I rowsort
SELECT ALL - + 38 + - 42 AS col2
----
-80

query I rowsort
SELECT DISTINCT + 79 col1
----
79

query I rowsort
SELECT DISTINCT + ( - 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT + MIN( - + 5 ) * + 85 + + 22 AS col1
----
-403

skipif mysql # not compatible
query I rowsort label-9509
SELECT + MIN ( - + 5 ) * + 85 + + 22 AS col1
----
-403

onlyif mysql # aggregate syntax: 
query II rowsort label-9510
SELECT - + MAX( + + 48 ), + 79 AS col0
----
-48
79

skipif mysql # not compatible
query II rowsort label-9510
SELECT - + MAX ( + + 48 ), + 79 AS col0
----
-48
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT ALL + COUNT( * ) * + 87
----
87

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL + COUNT ( * ) * + 87
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT + 1 * - 79 DIV + 72 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9512
SELECT + 1 * - 79 / + 72 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT - 28 - + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-9513
SELECT - 28 - + COUNT ( * )
----
-29

query I rowsort
SELECT + + 22 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT + 50 * NULLIF ( 26, 36 + - CAST( + - 25 AS SIGNED ) * - - 32 ) + 50
----
1350

skipif mysql # not compatible
query I rowsort label-9515
SELECT + 50 * NULLIF ( 26, 36 + - CAST ( + - 25 AS INTEGER ) * - - 32 ) + 50
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL SUM( 87 ) + - 47 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL SUM ( 87 ) + - 47 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT + - ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9517
SELECT + - ( - + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT - 7 AS col1, COUNT( * )
----
-7
1

skipif mysql # not compatible
query II rowsort label-9518
SELECT - 7 AS col1, COUNT ( * )
----
-7
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT ALL + + 52 * + - CAST( - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL + + 52 * + - CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT COUNT( * ) + + + COUNT( * ) * COUNT( 80 )
----
2

skipif mysql # not compatible
query I rowsort label-9520
SELECT COUNT ( * ) + + + COUNT ( * ) * COUNT ( 80 )
----
2

query I rowsort
SELECT DISTINCT + 58 * - 89
----
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT DISTINCT + MAX( ALL + ( + 62 ) ) * + COUNT( - - 52 )
----
62

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT + MAX ( ALL + ( + 62 ) ) * + COUNT ( - - 52 )
----
62

query I rowsort
SELECT + 81 col1
----
81

query I rowsort
SELECT + 91 col0
----
91

query I rowsort
SELECT DISTINCT - + 91 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9526
SELECT DISTINCT COUNT( * ) AS col2, 49
----
1
49

skipif mysql # not compatible
query II rowsort label-9526
SELECT DISTINCT COUNT ( * ) AS col2, 49
----
1
49

query I rowsort
SELECT - 60 + - - 77 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ALL + SUM( - 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL + SUM ( - 61 ) AS col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT ALL CAST( + + 12 AS SIGNED ) * + + 15 + 83 AS col1
----
263

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL CAST ( + + 12 AS INTEGER ) * + + 15 + 83 AS col1
----
263

query I rowsort
SELECT + + 78 col1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9531
SELECT ALL 70 DIV + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL 70 / + 75 AS col0
----
0

query I rowsort
SELECT DISTINCT ( - 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL + 6 - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL + 6 - COUNT ( * ) AS col1
----
5

query I rowsort
SELECT DISTINCT - + 36 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9535
SELECT DISTINCT - + COUNT( + 85 ), 35 AS col0
----
-1
35

skipif mysql # not compatible
query II rowsort label-9535
SELECT DISTINCT - + COUNT ( + 85 ), 35 AS col0
----
-1
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9536
SELECT ALL + 72 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL + 72 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 14 + + 49
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT 74 + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9538
SELECT 74 + COUNT ( * ) AS col0
----
75

query I rowsort
SELECT - 89 col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT ( + 97 ) + + CAST( + + 24 AS SIGNED ) col1
----
121

skipif mysql # not compatible
query I rowsort label-9540
SELECT ( + 97 ) + + CAST ( + + 24 AS INTEGER ) col1
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT - 18 * - COUNT( * ) + - 30 + - - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9541
SELECT - 18 * - COUNT ( * ) + - 30 + - - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT ALL - COUNT( 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL - COUNT ( 4 )
----
-1

query II rowsort
SELECT 44, - 62 AS col2
----
44
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ( + - 26 ) * - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-9544
SELECT ( + - 26 ) * - COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9545
SELECT ALL 83, - COUNT( * ) AS col0
----
83
-1

skipif mysql # not compatible
query II rowsort label-9545
SELECT ALL 83, - COUNT ( * ) AS col0
----
83
-1

query I rowsort
SELECT - - ( + 29 )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9547
SELECT - COUNT( * ), 97 AS col0
----
-1
97

skipif mysql # not compatible
query II rowsort label-9547
SELECT - COUNT ( * ), 97 AS col0
----
-1
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9548
SELECT - ( - 92 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9548
SELECT - ( - 92 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL + COUNT( * ) + - - 10 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL + COUNT ( * ) + - - 10 AS col0
----
11

query I rowsort
SELECT + + 40 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9551
SELECT DISTINCT - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( + 34 ) AS col1
----
34

query I rowsort
SELECT ALL 75 + - - 89 AS col1
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-9554
SELECT 33 AS col1, COUNT( * ) AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-9554
SELECT 33 AS col1, COUNT ( * ) AS col0
----
33
1

query I rowsort
SELECT DISTINCT + 12 - + - 63
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT DISTINCT 95 * - COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT 95 * - COUNT ( * ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT COUNT( * ) + + 79
----
80

skipif mysql # not compatible
query I rowsort label-9557
SELECT COUNT ( * ) + + 79
----
80

query I rowsort
SELECT DISTINCT - 65 + + 12
----
-53

query I rowsort
SELECT 75 + + 45 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - COUNT( * ) + + 5 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9560
SELECT - COUNT ( * ) + + 5 AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9561
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) DIV + - 3 * - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) / + - 3 * - 58 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9562
SELECT DISTINCT MIN( DISTINCT + CAST( + 69 AS SIGNED ) )
----
69

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT MIN ( DISTINCT + CAST ( + 69 AS INTEGER ) )
----
69

query II rowsort
SELECT - 94 AS col2, + 57
----
-94
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9564
SELECT COUNT( * ) * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT COUNT ( * ) * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT ALL + COUNT( 18 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL + COUNT ( 18 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9566
SELECT ALL + COUNT( * ) AS col2, COUNT( * ) + ( - + 83 )
----
1
-82

skipif mysql # not compatible
query II rowsort label-9566
SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) + ( - + 83 )
----
1
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9567
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9567
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT - 23 - 37
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-9569
SELECT + COUNT( * ), 22 AS col0
----
1
22

skipif mysql # not compatible
query II rowsort label-9569
SELECT + COUNT ( * ), 22 AS col0
----
1
22

query II rowsort
SELECT ALL + 63 AS col0, + 57 AS col1
----
63
57

query I rowsort
SELECT ( - 43 ) AS col2
----
-43

query I rowsort
SELECT ALL + + 42 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL + COUNT( * ) + - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL + COUNT ( * ) + - COUNT ( * ) col1
----
0

query I rowsort
SELECT + + 61 + + 76
----
137

query I rowsort
SELECT + ( 6 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT ALL - - 98 * - - COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL - - 98 * - - COUNT ( * ) AS col0
----
98

query I rowsort
SELECT - 82 + 63 col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9578
SELECT SUM( ALL + CAST( NULL AS DECIMAL ) ) * + + COUNT( * ) AS col1, 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-9578
SELECT SUM ( ALL + CAST ( NULL AS REAL ) ) * + + COUNT ( * ) AS col1, 8
----
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT COUNT( * ) * + 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9579
SELECT COUNT ( * ) * + 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT DISTINCT MIN( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT MIN ( DISTINCT + 79 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9581
SELECT 28 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT 28 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 75 * 77 col1
----
5775

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT DISTINCT 87 DIV + 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT 87 / + 93 col2
----
0

query I rowsort
SELECT ALL - - ( + 29 ) AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9585
SELECT ALL + - MAX( + - 11 ) DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL + - MAX ( + - 11 ) / + 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9586
SELECT + COUNT( * ) AS col1, - 55 col0
----
1
-55

skipif mysql # not compatible
query II rowsort label-9586
SELECT + COUNT ( * ) AS col1, - 55 col0
----
1
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-9587
SELECT DISTINCT + 25 * + COUNT( * ) col2, 26
----
25
26

skipif mysql # not compatible
query II rowsort label-9587
SELECT DISTINCT + 25 * + COUNT ( * ) col2, 26
----
25
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9588
SELECT ALL + COUNT( * ) DIV 67 col2
----
0

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL + COUNT ( * ) / 67 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9589
SELECT + COUNT( * ) + - + SUM( - + ( - - 31 ) ) * COUNT( * ) * - 13 DIV COUNT( * ) + + - 51
----
-453

skipif mysql # not compatible
query I rowsort label-9589
SELECT + COUNT ( * ) + - + SUM ( - + ( - - 31 ) ) * COUNT ( * ) * - 13 / COUNT ( * ) + + - 51
----
-453

query I rowsort
SELECT + 10 + 70
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9591
SELECT ALL + MAX( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL + MAX ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 26 * - 20 + 92 AS col0
----
-428

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT DISTINCT MIN( ALL - 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT MIN ( ALL - 42 ) AS col1
----
-42

query I rowsort
SELECT ALL CASE WHEN NULL >= NULL THEN + 13 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9595
SELECT ALL COALESCE ( + MIN( + 44 ), CAST( COUNT( * ) AS SIGNED ) + - + COUNT( * ), + + 11 )
----
44

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL COALESCE ( + MIN ( + 44 ), CAST ( COUNT ( * ) AS INTEGER ) + - + COUNT ( * ), + + 11 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT ALL CAST( + 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL CAST ( + 82 AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT - 41 * - + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9597
SELECT - 41 * - + COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL + COUNT( * ) * - 30
----
-30

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL + COUNT ( * ) * - 30
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT - 22 DIV + + 20
----
-1

skipif mysql # not compatible
query I rowsort label-9599
SELECT - 22 / + + 20
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT + COUNT( * ) - 99 + 72
----
-26

skipif mysql # not compatible
query I rowsort label-9600
SELECT + COUNT ( * ) - 99 + 72
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9601
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL + COUNT( * ) * + 59
----
59

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + COUNT ( * ) * + 59
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT COUNT( * ) * 83 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9603
SELECT COUNT ( * ) * 83 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT COUNT( * ) * + COUNT( 7 )
----
1

skipif mysql # not compatible
query I rowsort label-9604
SELECT COUNT ( * ) * + COUNT ( 7 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9605
SELECT ALL 63 + - COUNT( * ) DIV COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL 63 + - COUNT ( * ) / COUNT ( * )
----
62

query II rowsort
SELECT ALL - 70 AS col1, + 29
----
-70
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL - - MAX( ALL - - 73 ) - - 6 + - 92
----
-13

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL - - MAX ( ALL - - 73 ) - - 6 + - 92
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT 67 DIV + 9 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9608
SELECT 67 / + 9 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9609
SELECT ALL - 12 + - CAST( NULL AS SIGNED ) AS col0, + 34
----
NULL
34

skipif mysql # not compatible
query II rowsort label-9609
SELECT ALL - 12 + - CAST ( NULL AS INTEGER ) AS col0, + 34
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - MIN( DISTINCT 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-9610
SELECT - MIN ( DISTINCT 45 )
----
-45

query I rowsort
SELECT + - 46 AS col0
----
-46

query I rowsort
SELECT ALL + COALESCE ( + - 18, + 85 )
----
-18

query I rowsort
SELECT - 28 + - + 86
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT + COUNT( DISTINCT + - 91 ) * - 34 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9614
SELECT + COUNT ( DISTINCT + - 91 ) * - 34 AS col0
----
-34

query I rowsort
SELECT - - ( 91 )
----
91

query II rowsort
SELECT DISTINCT + 76 col1, - 8 col0
----
76
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT + - 66 + 80 + ( COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-9617
SELECT + - 66 + 80 + ( COUNT ( * ) )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT + COUNT( * ) + + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9618
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9619
SELECT + 42 + - - CAST( NULL AS SIGNED ) + + CAST( + 17 AS SIGNED ) + + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT + 42 + - - CAST ( NULL AS INTEGER ) + + CAST ( + 17 AS INTEGER ) + + 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT 49 AS col0, COUNT( * )
----
49
1

skipif mysql # not compatible
query II rowsort label-9620
SELECT 49 AS col0, COUNT ( * )
----
49
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT COUNT( * ) * - 69 * - MIN( DISTINCT + - 94 )
----
-6486

skipif mysql # not compatible
query I rowsort label-9621
SELECT COUNT ( * ) * - 69 * - MIN ( DISTINCT + - 94 )
----
-6486

query I rowsort
SELECT 31 * - + ( + 14 ) col0
----
-434

query II rowsort
SELECT + 65 AS col2, + 7 AS col0
----
65
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT DISTINCT + - COUNT( + 29 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT + - COUNT ( + 29 ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9625
SELECT - 35 - CAST( NULL AS SIGNED ), + 10 AS col2
----
NULL
10

skipif mysql # not compatible
query II rowsort label-9625
SELECT - 35 - CAST ( NULL AS INTEGER ), + 10 AS col2
----
NULL
10

query I rowsort
SELECT DISTINCT ( - 64 ) AS col0
----
-64

query I rowsort
SELECT ( - 95 ) AS col2
----
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-9628
SELECT + - 54 * + - 73, - ( 49 ) DIV 14 AS col2
----
3942
-3

skipif mysql # not compatible
query II rowsort label-9628
SELECT + - 54 * + - 73, - ( 49 ) / 14 AS col2
----
3942
-3

query I rowsort
SELECT DISTINCT 69 + 6 col2
----
75

query I rowsort
SELECT + ( 79 ) AS col1
----
79

query I rowsort
SELECT ALL - + 26 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT + + SUM( - + 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-9632
SELECT + + SUM ( - + 18 ) col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - - COUNT( ALL - + 83 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9633
SELECT - - COUNT ( ALL - + 83 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT DISTINCT - SUM( - - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT - SUM ( - - 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT - COUNT( * ) + + 9 col0
----
8

skipif mysql # not compatible
query I rowsort label-9635
SELECT - COUNT ( * ) + + 9 col0
----
8

query I rowsort
SELECT - 4 + 72
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL - COUNT( * ) * + 61 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL - COUNT ( * ) * + 61 AS col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9638
SELECT ALL - + 67 DIV + - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL - + 67 / + - COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9639
SELECT ALL COUNT( * ) * - 89 + + + COUNT( ALL + 10 ) AS col1, + 64 * + 13
----
-88
832

skipif mysql # not compatible
query II rowsort label-9639
SELECT ALL COUNT ( * ) * - 89 + + + COUNT ( ALL + 10 ) AS col1, + 64 * + 13
----
-88
832

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT ALL + COUNT( * ) + 47
----
48

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL + COUNT ( * ) + 47
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT - COUNT( ALL + + 89 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9641
SELECT - COUNT ( ALL + + 89 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT DISTINCT 98 * + 61 * - COUNT( * ) * 92 AS col2
----
-549976

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT 98 * + 61 * - COUNT ( * ) * 92 AS col2
----
-549976

query I rowsort
SELECT - - 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT MAX( + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-9644
SELECT MAX ( + 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT + COUNT( * ) + ( COUNT( * ) ) * 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9645
SELECT + COUNT ( * ) + ( COUNT ( * ) ) * 83 AS col2
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9646
SELECT DISTINCT + 11, 6 + + COUNT( * ) AS col0
----
11
7

skipif mysql # not compatible
query II rowsort label-9646
SELECT DISTINCT + 11, 6 + + COUNT ( * ) AS col0
----
11
7

query I rowsort
SELECT ALL + 26 col1
----
26

query I rowsort
SELECT DISTINCT ( + 72 ) AS col2
----
72

query I rowsort
SELECT ALL ( - 23 ) AS col1
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9650
SELECT ALL CAST( NULL AS DECIMAL ) * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL CAST ( NULL AS REAL ) * + 26
----
NULL

query I rowsort
SELECT ALL 68 + ( - - 7 )
----
75

query I rowsort
SELECT - 53 * + - 59
----
3127

query I rowsort
SELECT ( - 80 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT + CAST( - - 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-9654
SELECT + CAST ( - - 82 AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL - SUM( ALL - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL - SUM ( ALL - 87 )
----
87

query I rowsort
SELECT - + 65 col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT MIN( - ( + + 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9657
SELECT MIN ( - ( + + 0 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9658
SELECT + SUM( DISTINCT + 71 ), - COUNT( * ) AS col0
----
71
-1

skipif mysql # not compatible
query II rowsort label-9658
SELECT + SUM ( DISTINCT + 71 ), - COUNT ( * ) AS col0
----
71
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL + COUNT( * ) * - 13
----
-13

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL + COUNT ( * ) * - 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT 79 * + ( + MIN( ALL + 24 ) ) AS col0
----
1896

skipif mysql # not compatible
query I rowsort label-9660
SELECT 79 * + ( + MIN ( ALL + 24 ) ) AS col0
----
1896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9661
SELECT + COUNT( * ) * 50 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT + COUNT ( * ) * 50 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT ALL - - MAX( ALL 84 )
----
84

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL - - MAX ( ALL 84 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9663
SELECT ALL + 38 DIV - - 46
----
0

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL + 38 / - - 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL - ( - + 60 ) + + + COUNT( * ) + - SUM( DISTINCT + 69 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL - ( - + 60 ) + + + COUNT ( * ) + - SUM ( DISTINCT + 69 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT ALL ( 26 ) * - - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL ( 26 ) * - - COUNT ( * )
----
26

query I rowsort
SELECT ALL + 62 * - + 97 AS col0
----
-6014

query I rowsort
SELECT DISTINCT - 2 col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT CAST( AVG ( DISTINCT + 64 ) AS SIGNED ) * 41
----
2624

skipif mysql # not compatible
query I rowsort label-9668
SELECT CAST ( AVG ( DISTINCT + 64 ) AS INTEGER ) * 41
----
2624

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9669
SELECT ALL - CAST( NULL AS DECIMAL ) + MAX( DISTINCT + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL - CAST ( NULL AS REAL ) + MAX ( DISTINCT + 99 )
----
NULL

query I rowsort
SELECT 19 * 68 col2
----
1292

query I rowsort
SELECT - 29 * + 89 col2
----
-2581

query I rowsort
SELECT DISTINCT + ( + 78 )
----
78

query I rowsort
SELECT + 15 + 74 * - 18 AS col1
----
-1317

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT + 76 + + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9674
SELECT + 76 + + COUNT ( * ) AS col0
----
77

query I rowsort
SELECT ALL NULLIF ( - - 34, + 34 )
----
NULL

query I rowsort
SELECT ALL ( 46 ) AS col2
----
46

query I rowsort
SELECT ALL ( + + 25 ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - 80 * - COUNT( * ) * + 47
----
3760

skipif mysql # not compatible
query I rowsort label-9678
SELECT - 80 * - COUNT ( * ) * + 47
----
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT - 85 * + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-9679
SELECT - 85 * + COUNT ( * )
----
-85

query I rowsort
SELECT DISTINCT + + 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL - 5 + - - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - 5 + - - COUNT ( * )
----
-4

query I rowsort
SELECT ALL + 39 + + 61 AS col1
----
100

query I rowsort
SELECT DISTINCT - + 81 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL - COUNT( - - 68 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL - COUNT ( - - 68 ) AS col1
----
-1

query I rowsort
SELECT + 37 col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT DISTINCT + ( + 87 ) + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT + ( + 87 ) + - COUNT ( * )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9687
SELECT 60 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT 60 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9688
SELECT 28 DIV - - 41 + 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9688
SELECT 28 / - - 41 + 76 AS col0
----
76

query I rowsort
SELECT ALL + + 14 AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9690
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT - 51 * COUNT( * ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-9691
SELECT - 51 * COUNT ( * ) col1
----
-51

query I rowsort
SELECT + ( + + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT + 23 * - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-9693
SELECT + 23 * - COUNT ( * )
----
-23

query I rowsort
SELECT ALL - 46 * - 84
----
3864

onlyif mysql # aggregate syntax: 
query II rowsort label-9695
SELECT + 67 AS col0, + MAX( DISTINCT 4 )
----
67
4

skipif mysql # not compatible
query II rowsort label-9695
SELECT + 67 AS col0, + MAX ( DISTINCT 4 )
----
67
4

query I rowsort
SELECT - + 27 * - + 8 AS col0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL - COUNT( - 5 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL - COUNT ( - 5 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT ALL 35 + + - CAST( + 75 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL 35 + + - CAST ( + 75 AS INTEGER )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9699
SELECT DISTINCT - SUM( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT - SUM ( + - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + 62 col0
----
62

query I rowsort
SELECT + 3 * - 14
----
-42

query I rowsort
SELECT - + ( - 48 )
----
48

query I rowsort
SELECT 4 * + 60
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9704
SELECT ALL + - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 79 * - 5 col2
----
-395

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9706
SELECT + COUNT( * ), 99 DIV - 3 AS col0
----
1
-33

skipif mysql # not compatible
query II rowsort label-9706
SELECT + COUNT ( * ), 99 / - 3 AS col0
----
1
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT + 57 + + ( COUNT( * ) )
----
58

skipif mysql # not compatible
query I rowsort label-9707
SELECT + 57 + + ( COUNT ( * ) )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9708
SELECT - COUNT( * ) col0, - 6
----
-1
-6

skipif mysql # not compatible
query II rowsort label-9708
SELECT - COUNT ( * ) col0, - 6
----
-1
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT - 70 + + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-9709
SELECT - 70 + + COUNT ( * )
----
-69

query I rowsort
SELECT ALL ( 55 ) AS col2
----
55

query I rowsort
SELECT + 49 col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9712
SELECT DISTINCT - 5 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT - 5 / + 91
----
0

query I rowsort
SELECT + 63 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT + MIN( + ( + 60 ) )
----
60

skipif mysql # not compatible
query I rowsort label-9714
SELECT + MIN ( + ( + 60 ) )
----
60

query I rowsort
SELECT - 47 * + 34
----
-1598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9716
SELECT - CAST( ( - - COUNT( * ) ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9716
SELECT - CAST ( ( - - COUNT ( * ) ) AS INTEGER ) col2
----
-1

query I rowsort
SELECT DISTINCT - 90 * + - 30
----
2700

query I rowsort
SELECT ALL - ( + 81 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT COUNT( * ) - - - 64
----
-63

skipif mysql # not compatible
query I rowsort label-9719
SELECT COUNT ( * ) - - - 64
----
-63

query I rowsort
SELECT ALL 13 col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9721
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9722
SELECT ALL - + COUNT( * ) AS col0, ( + - CAST( NULL AS SIGNED ) )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9722
SELECT ALL - + COUNT ( * ) AS col0, ( + - CAST ( NULL AS INTEGER ) )
----
-1
NULL

query I rowsort
SELECT - ( + 11 ) col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT + 51 + + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-9724
SELECT + 51 + + COUNT ( * )
----
52

query I rowsort
SELECT + + 62 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ALL + MIN( DISTINCT - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL + MIN ( DISTINCT - 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT - NULLIF ( + 15, COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-9727
SELECT - NULLIF ( + 15, COUNT ( * ) )
----
-15

query I rowsort
SELECT - - 5 + + 66
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9729
SELECT ALL - CAST( - + AVG ( 53 ) AS SIGNED ) col0, COUNT( * ) col1
----
53
1

skipif mysql # not compatible
query II rowsort label-9729
SELECT ALL - CAST ( - + AVG ( 53 ) AS INTEGER ) col0, COUNT ( * ) col1
----
53
1

query I rowsort
SELECT ALL + + 24 AS col1
----
24

query I rowsort
SELECT ALL + + ( + 12 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT DISTINCT + COUNT( * ) + + + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT + COUNT ( * ) + + + ( COUNT ( * ) )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT ALL + ( + - 44 ) DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL + ( + - 44 ) / + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT + MIN( DISTINCT - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-9734
SELECT + MIN ( DISTINCT - 55 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9735
SELECT + + 1 DIV + + 30 + + ( + + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-9735
SELECT + + 1 / + + 30 + + ( + + 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL + + 98 + SUM( DISTINCT 7 )
----
105

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL + + 98 + SUM ( DISTINCT 7 )
----
105

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9737
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2, - 33 AS col1
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-9737
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2, - 33 AS col1
----
NULL
-33

query I rowsort
SELECT + ( - - 23 ) + + + 18 * - 80 AS col2
----
-1417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT ALL - CAST( NULL AS SIGNED ) * 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL - CAST ( NULL AS INTEGER ) * 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT COUNT( ALL - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-9740
SELECT COUNT ( ALL - 86 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9741
SELECT ALL + CAST( + 32 AS SIGNED ) DIV - 5 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL + CAST ( + 32 AS INTEGER ) / - 5 AS col2
----
-6

query I rowsort
SELECT - + ( 49 ) AS col0
----
-49

query I rowsort
SELECT ALL ( + 0 ) AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9744
SELECT + - 81 + + 72 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT + - 81 + + 72 * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 45 * + 99
----
-4455

query I rowsort
SELECT ALL + + 49 * 32 AS col0
----
1568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9747
SELECT DISTINCT ( + - COUNT( * ) ) DIV + 15
----
0

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT ( + - COUNT ( * ) ) / + 15
----
0

query I rowsort
SELECT - ( + 72 )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9749
SELECT + CAST( NULL AS SIGNED ), 33 - 79 AS col0
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-9749
SELECT + CAST ( NULL AS INTEGER ), 33 - 79 AS col0
----
NULL
-46

query I rowsort
SELECT ( 41 ) * + - 49
----
-2009

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT ALL + COUNT( * ) * 70 + 11
----
81

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL + COUNT ( * ) * 70 + 11
----
81

query I rowsort
SELECT - COALESCE ( - NULLIF ( - 41, - - 61 ), + - 33 * - 84 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT + 20 + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-9753
SELECT + 20 + + COUNT ( * )
----
21

query I rowsort
SELECT + 34 + - 11
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9755
SELECT ALL COUNT( + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9756
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL + + MIN( ALL + - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL + + MIN ( ALL + - 86 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9758
SELECT + CAST( + - 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-9758
SELECT + CAST ( + - 79 AS INTEGER )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT + + 90 * - MIN( 26 ) AS col0
----
-2340

skipif mysql # not compatible
query I rowsort label-9759
SELECT + + 90 * - MIN ( 26 ) AS col0
----
-2340

query I rowsort
SELECT - ( 38 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL SUM( ALL 17 ) + - COUNT( * ) + 48 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL SUM ( ALL 17 ) + - COUNT ( * ) + 48 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT + COUNT( * ) + 13 * COUNT( + 60 )
----
14

skipif mysql # not compatible
query I rowsort label-9762
SELECT + COUNT ( * ) + 13 * COUNT ( + 60 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9763
SELECT ALL CAST( - 58 AS SIGNED ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL CAST ( - 58 AS INTEGER ) AS col2
----
-58

query I rowsort
SELECT ALL - ( 73 ) * + ( - 93 ) AS col0
----
6789

query I rowsort
SELECT - 52 + + ( 29 ) + - 47
----
-70

query I rowsort
SELECT ALL - - 26 AS col2
----
26

query I rowsort
SELECT ( 30 ) + - 29
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9768
SELECT ( + COUNT( * ) ) DIV + 75 + - - 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9768
SELECT ( + COUNT ( * ) ) / + 75 + - - 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT DISTINCT + + COUNT( * ) * 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT + + COUNT ( * ) * 56 AS col2
----
56

query I rowsort
SELECT DISTINCT - + 92
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL + ( COUNT( * ) ) + - CASE 64 WHEN - 47 THEN - 5 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL + ( COUNT ( * ) ) + - CASE 64 WHEN - 47 THEN - 5 END AS col1
----
NULL

query I rowsort
SELECT ALL + + 87 * + 35 AS col0
----
3045

onlyif mysql # DIV for integer division: 
query I rowsort label-9773
SELECT ALL 98 DIV + + 41 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL 98 / + + 41 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT + - 35 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT + - 35 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 58 + 15
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9776
SELECT + ( 86 ), - COUNT( * ) AS col0
----
86
-1

skipif mysql # not compatible
query II rowsort label-9776
SELECT + ( 86 ), - COUNT ( * ) AS col0
----
86
-1

query I rowsort
SELECT - 4 + 61 AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT CAST( ( - + 9 ) AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9778
SELECT CAST ( ( - + 9 ) AS INTEGER ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL ( COUNT( * ) ) + COUNT( * ) + - 95 * - 52 AS col0
----
4942

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL ( COUNT ( * ) ) + COUNT ( * ) + - 95 * - 52 AS col0
----
4942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT + CAST( NULL AS SIGNED ) + + 34 + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT + CAST ( NULL AS INTEGER ) + + 34 + 39 AS col1
----
NULL

query I rowsort
SELECT + 18 + - 72 AS col2
----
-54

query I rowsort
SELECT + + ( - + 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT DISTINCT 51 * COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT 51 * COUNT ( * ) AS col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9784
SELECT DISTINCT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + COUNT ( * )
----
NULL

query I rowsort
SELECT 86 * - 86
----
-7396

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT COUNT( * ) + + 4
----
5

skipif mysql # not compatible
query I rowsort label-9786
SELECT COUNT ( * ) + + 4
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT COUNT( * ) + + 68 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9787
SELECT COUNT ( * ) + + 68 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL MIN( DISTINCT 96 ) * + 26
----
2496

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL MIN ( DISTINCT 96 ) * + 26
----
2496

query I rowsort
SELECT + 37 * - + 40 col0
----
-1480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9790
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL + COUNT( ALL + 87 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL + COUNT ( ALL + 87 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT NULLIF ( + - CAST( NULL AS SIGNED ), - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT NULLIF ( + - CAST ( NULL AS INTEGER ), - 11 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT DISTINCT - COALESCE ( + 97, - MIN( - - 35 ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT - COALESCE ( + 97, - MIN ( - - 35 ) ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT SUM( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9795
SELECT SUM ( 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT DISTINCT + MAX( + + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT + MAX ( + + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT ALL - MIN( 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL - MIN ( 60 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL + COUNT( * ) * 37
----
37

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL + COUNT ( * ) * 37
----
37

query I rowsort
SELECT - 60 * + 50
----
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT DISTINCT - - COUNT( * ) * + + 8 + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT - - COUNT ( * ) * + + 8 + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT - 26 + - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-9801
SELECT - 26 + - COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT COUNT( - ( + + 83 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9802
SELECT COUNT ( - ( + + 83 ) ) AS col1
----
1

query I rowsort
SELECT 10 * 40
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT MIN( + 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9804
SELECT MIN ( + 17 ) AS col0
----
17

query I rowsort
SELECT ALL - 94 col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT + NULLIF ( - - COUNT( - 64 ), + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT + NULLIF ( - - COUNT ( - 64 ), + + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL + MIN( DISTINCT - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + MIN ( DISTINCT - 60 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9808
SELECT + 91 DIV - 66
----
-1

skipif mysql # not compatible
query I rowsort label-9808
SELECT + 91 / - 66
----
-1

query I rowsort
SELECT DISTINCT + 23 + + + 48
----
71

query I rowsort
SELECT - ( + 89 ) * + + 1
----
-89

query I rowsort
SELECT DISTINCT ( 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9812
SELECT ALL COALESCE ( COUNT( * ), + 6, COUNT( * ) DIV MIN( DISTINCT - 14 ) ), - 58 AS col2
----
1
-58

skipif mysql # not compatible
query II rowsort label-9812
SELECT ALL COALESCE ( COUNT ( * ), + 6, COUNT ( * ) / MIN ( DISTINCT - 14 ) ), - 58 AS col2
----
1
-58

query I rowsort
SELECT ALL + 48 * 72 + + 63 col2
----
3519

query I rowsort
SELECT DISTINCT + - 69 + + 41
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9815
SELECT CAST( NULL AS SIGNED ) * 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9815
SELECT CAST ( NULL AS INTEGER ) * 29 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 42 * + - 36
----
-1512

query I rowsort
SELECT + + ( - 63 ) AS col2
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9818
SELECT 36 DIV + - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9818
SELECT 36 / + - 50 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT + - 79 * 25 + + - 32 * + + 12 * + + 11 + + CAST( + 53 AS SIGNED ) AS col1
----
-6146

skipif mysql # not compatible
query I rowsort label-9819
SELECT + - 79 * 25 + + - 32 * + + 12 * + + 11 + + CAST ( + 53 AS INTEGER ) AS col1
----
-6146

onlyif mysql # DIV for integer division: 
query I rowsort label-9820
SELECT ALL + 96 DIV - - 48 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL + 96 / - - 48 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9821
SELECT ALL + MAX( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL + MAX ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT ( + 65 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9823
SELECT - CAST( + 3 AS SIGNED ) + - ( COUNT( ( 43 ) ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9823
SELECT - CAST ( + 3 AS INTEGER ) + - ( COUNT ( ( 43 ) ) ) AS col2
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9824
SELECT + 89 * + CAST( NULL AS DECIMAL ) * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT + 89 * + CAST ( NULL AS REAL ) * 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL + NULLIF ( - COUNT( * ), - ( COUNT( * ) ) * + - 0 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL + NULLIF ( - COUNT ( * ), - ( COUNT ( * ) ) * + - 0 ) AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9826
SELECT ALL + 99 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL + 99 * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT SUM( ALL + 42 ) + - COUNT( * ) col0
----
41

skipif mysql # not compatible
query I rowsort label-9827
SELECT SUM ( ALL + 42 ) + - COUNT ( * ) col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT ALL ( + - 53 ) DIV + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL ( + - 53 ) / + 72 AS col0
----
0

query I rowsort
SELECT 65 + - - 25 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9830
SELECT CAST( - MIN( DISTINCT - + 40 ) AS SIGNED ) DIV - - 84
----
0

skipif mysql # not compatible
query I rowsort label-9830
SELECT CAST ( - MIN ( DISTINCT - + 40 ) AS INTEGER ) / - - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT - SUM( DISTINCT 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-9831
SELECT - SUM ( DISTINCT 9 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9832
SELECT ( + - 99 ), COUNT( - - 21 ) AS col0
----
-99
1

skipif mysql # not compatible
query II rowsort label-9832
SELECT ( + - 99 ), COUNT ( - - 21 ) AS col0
----
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT DISTINCT + SUM( DISTINCT + + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT + SUM ( DISTINCT + + 58 )
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9834
SELECT DISTINCT - 71 * CAST( NULL AS DECIMAL ) + - - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT - 71 * CAST ( NULL AS REAL ) + - - 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9835
SELECT ALL + 38, + COUNT( * ) AS col0
----
38
1

skipif mysql # not compatible
query II rowsort label-9835
SELECT ALL + 38, + COUNT ( * ) AS col0
----
38
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9836
SELECT + CAST( NULL AS SIGNED ) * - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT + CAST ( NULL AS INTEGER ) * - 41 AS col1
----
NULL

query I rowsort
SELECT - ( + + ( + 16 ) )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9838
SELECT + CAST( COUNT( * ) AS SIGNED ) + NULLIF ( ( 79 ), - - COUNT( * ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-9838
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + NULLIF ( ( 79 ), - - COUNT ( * ) ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL 11 * - + COUNT( * ) + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL 11 * - + COUNT ( * ) + COUNT ( * )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT ALL - 56 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL - 56 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9841
SELECT + CAST( - + 21 AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-9841
SELECT + CAST ( - + 21 AS INTEGER )
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9842
SELECT ALL + ( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL + ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT ALL - 40 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL - 40 / + 58
----
0

query I rowsort
SELECT ( + 43 ) AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9845
SELECT - COUNT( ALL - - 3 ) DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT - COUNT ( ALL - - 3 ) / + 76
----
0

query I rowsort
SELECT 82 + - + 55 AS col0
----
27

query I rowsort
SELECT ALL - + ( + 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT + 75 * - COUNT( * ) - + 70 + 69
----
-76

skipif mysql # not compatible
query I rowsort label-9848
SELECT + 75 * - COUNT ( * ) - + 70 + 69
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9849
SELECT + ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT + ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT MIN( DISTINCT - 19 ) + COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9850
SELECT MIN ( DISTINCT - 19 ) + COUNT ( * ) AS col2
----
-18

query II rowsort
SELECT ALL 64 AS col0, ( - 40 )
----
64
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT 26 * + COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT 26 * + COUNT ( * ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT MIN( ALL + ( - 79 ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-9853
SELECT MIN ( ALL + ( - 79 ) ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL ( - 4 ) * + COUNT( * ) * 81
----
-324

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL ( - 4 ) * + COUNT ( * ) * 81
----
-324

query I rowsort
SELECT ALL + + 28 AS col0
----
28

query I rowsort
SELECT - 97 * 30
----
-2910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9857
SELECT - CAST( NULLIF ( COUNT( * ), 10 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9857
SELECT - CAST ( NULLIF ( COUNT ( * ), 10 ) AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9858
SELECT 78 DIV - + 63 + - 26 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9858
SELECT 78 / - + 63 + - 26 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT DISTINCT - 90 * COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT - 90 * COUNT ( * )
----
-90

query I rowsort
SELECT 93 - + + 20 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT COALESCE ( 73, - + ( - COUNT( * ) ) ) * - + 71 AS col1
----
-5183

skipif mysql # not compatible
query I rowsort label-9861
SELECT COALESCE ( 73, - + ( - COUNT ( * ) ) ) * - + 71 AS col1
----
-5183

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT DISTINCT - + 11 * + + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT - + 11 * + + COUNT ( * )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9863
SELECT ALL - MAX( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL - MAX ( CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT 50, + 31 AS col2
----
50
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT MIN( DISTINCT 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT MIN ( DISTINCT 50 ) AS col2
----
50

query I rowsort
SELECT ALL 37 * - 89 * - ( + 60 )
----
197580

query II rowsort
SELECT ALL 26, + 14 AS col1
----
26
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT + ( COUNT( * ) ) * COUNT( * ) * + + 31
----
31

skipif mysql # not compatible
query I rowsort label-9868
SELECT + ( COUNT ( * ) ) * COUNT ( * ) * + + 31
----
31

query I rowsort
SELECT DISTINCT + + 33 AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT - CAST( + - 61 AS SIGNED ) + - 27
----
34

skipif mysql # not compatible
query I rowsort label-9870
SELECT - CAST ( + - 61 AS INTEGER ) + - 27
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT + 67 DIV + ( + 73 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9871
SELECT + 67 / + ( + 73 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL ( ( - + SUM( DISTINCT ( + + 23 ) ) ) )
----
-23

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL ( ( - + SUM ( DISTINCT ( + + 23 ) ) ) )
----
-23

query I rowsort
SELECT + + 67 * + - 99
----
-6633

query I rowsort
SELECT - - 25 col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9875
SELECT + - COUNT( * ) AS col0, 40 col1
----
-1
40

skipif mysql # not compatible
query II rowsort label-9875
SELECT + - COUNT ( * ) AS col0, 40 col1
----
-1
40

query I rowsort
SELECT ALL + - 44 col1
----
-44

query I rowsort
SELECT DISTINCT + ( 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL - SUM( - 38 ) * 94 AS col0
----
3572

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - SUM ( - 38 ) * 94 AS col0
----
3572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9879
SELECT - COUNT( * ) * - - 16 AS col0, CAST( NULL AS SIGNED ) AS col1
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-9879
SELECT - COUNT ( * ) * - - 16 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
-16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT ALL - - ( - 6 ) * - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL - - ( - 6 ) * - COUNT ( * ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9881
SELECT ALL - MIN( + 7 ), 93 AS col2
----
-7
93

skipif mysql # not compatible
query II rowsort label-9881
SELECT ALL - MIN ( + 7 ), 93 AS col2
----
-7
93

query I rowsort
SELECT ALL - 73 * + 29
----
-2117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9883
SELECT 8 DIV - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-9883
SELECT 8 / - COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT - + ( + - COUNT( ALL + 68 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9884
SELECT - + ( + - COUNT ( ALL + 68 ) )
----
1

query I rowsort
SELECT DISTINCT - ( - 30 ) col2
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9886
SELECT 2 + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT 2 + + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + 62, 9 ) AS col0
----
62

query I rowsort
SELECT DISTINCT - 78 * - ( ( 40 ) )
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT MAX( ALL + 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9889
SELECT MAX ( ALL + 26 ) AS col2
----
26

query I rowsort
SELECT ( 77 ) AS col2
----
77

query I rowsort
SELECT ( - - 57 ) AS col1
----
57

query I rowsort
SELECT + 41 - 2 * + 45 AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL CAST( 59 AS SIGNED ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL CAST ( 59 AS INTEGER ) AS col0
----
59

query I rowsort
SELECT + 69 * 42
----
2898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) + - 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 10 * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 10 * - 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT ALL - 81 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL - 81 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT DISTINCT - COUNT( * ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * )
----
-2

query I rowsort
SELECT 53 + 48 AS col1
----
101

query I rowsort
SELECT ALL ( - 27 ) * - 46
----
1242

query I rowsort
SELECT ( - + 76 ) * 42 col1
----
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT MAX( DISTINCT + 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9902
SELECT MAX ( DISTINCT + 10 ) AS col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9903
SELECT ALL - COUNT( * ) DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL - COUNT ( * ) / + 52
----
0

query I rowsort
SELECT - ( 61 ) AS col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9905
SELECT + COUNT( DISTINCT 84 ) DIV + - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9905
SELECT + COUNT ( DISTINCT 84 ) / + - 76 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT - 94 * - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-9906
SELECT - 94 * - COUNT ( * )
----
94

query I rowsort
SELECT DISTINCT + 79 * 75
----
5925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9908
SELECT ALL - CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL - CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL ( 79 )
----
79

query I rowsort
SELECT DISTINCT ( - 42 ) col0
----
-42

query I rowsort
SELECT ALL - 48 * - 54 col0
----
2592

query I rowsort
SELECT ALL - - 23 AS col0
----
23

query I rowsort
SELECT + - 42 col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT ALL - - CAST( - - 45 AS SIGNED ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - - CAST ( - - 45 AS INTEGER ) AS col0
----
45

query I rowsort
SELECT 46 * - 76
----
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT - COUNT( 46 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9916
SELECT - COUNT ( 46 ) col0
----
-1

query I rowsort
SELECT 77 + - + 4
----
73

query I rowsort
SELECT DISTINCT 30 + 41 AS col0
----
71

query I rowsort
SELECT ALL 89 + + 9
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT - - 40 + + + COUNT( * ) col0
----
41

skipif mysql # not compatible
query I rowsort label-9920
SELECT - - 40 + + + COUNT ( * ) col0
----
41

query I rowsort
SELECT + + ( - 51 ) + 38 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT + COUNT( * ) + + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-9922
SELECT + COUNT ( * ) + + - 67
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT + - ( ( + MIN( 57 ) ) ) + - + 26
----
-83

skipif mysql # not compatible
query I rowsort label-9923
SELECT + - ( ( + MIN ( 57 ) ) ) + - + 26
----
-83

query I rowsort
SELECT - ( - + 11 )
----
11

query I rowsort
SELECT ALL + + 16 * - 58 AS col2
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT DISTINCT - MIN( DISTINCT - - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT - MIN ( DISTINCT - - 51 )
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9927
SELECT ALL - 46 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL - 46 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT DISTINCT + COUNT( * ) - + + 39 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT + COUNT ( * ) - + + 39 AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT + 14 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9929
SELECT + 14 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT ALL - MIN( + + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL - MIN ( + + 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT MAX( - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9931
SELECT MAX ( - 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT MAX( - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-9932
SELECT MAX ( - 72 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT MAX( 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9933
SELECT MAX ( 47 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT SUM( + 41 ) col2
----
41

skipif mysql # not compatible
query I rowsort label-9934
SELECT SUM ( + 41 ) col2
----
41

query I rowsort
SELECT + ( 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT - ( + - 21 ) - + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9936
SELECT - ( + - 21 ) - + COUNT ( * ) AS col1
----
20

query I rowsort
SELECT DISTINCT + ( + + 23 )
----
23

query II rowsort
SELECT DISTINCT 23 AS col2, 21
----
23
21

query I rowsort
SELECT + - 78 + - - 79 col0
----
1

query I rowsort
SELECT ( ( 52 ) ) + 44
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT SUM( DISTINCT + - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-9941
SELECT SUM ( DISTINCT + - 38 )
----
-38

query I rowsort
SELECT ALL - + 34
----
-34

query I rowsort
SELECT ALL 36 + 26 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT + ( + COUNT( ALL - 18 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9944
SELECT + ( + COUNT ( ALL - 18 ) ) AS col2
----
1

query I rowsort
SELECT ( + - 7 ) * - 22
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT + 64 * + COUNT( * ) + + 37
----
101

skipif mysql # not compatible
query I rowsort label-9946
SELECT + 64 * + COUNT ( * ) + + 37
----
101

query I rowsort
SELECT DISTINCT - ( - 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT DISTINCT SUM( - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT SUM ( - 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT + MIN( - 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT + MIN ( - 53 ) AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT DISTINCT + COUNT( * ) * + + 88 col2
----
88

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT + COUNT ( * ) * + + 88 col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT MIN( ALL - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-9953
SELECT MIN ( ALL - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9954
SELECT + COUNT( * ), COUNT( DISTINCT - 93 ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9954
SELECT + COUNT ( * ), COUNT ( DISTINCT - 93 ) AS col1
----
1
1

query I rowsort
SELECT DISTINCT + 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL 21 + + COUNT( - - 47 )
----
22

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL 21 + + COUNT ( - - 47 )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9957
SELECT ALL COUNT( * ), - 78 col1
----
1
-78

skipif mysql # not compatible
query II rowsort label-9957
SELECT ALL COUNT ( * ), - 78 col1
----
1
-78

query I rowsort
SELECT ALL ( 32 ) col0
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9959
SELECT + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT + CAST ( NULL AS REAL ) col1
----
NULL

query II rowsort
SELECT DISTINCT - + 76 AS col2, - 7
----
-76
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9961
SELECT ALL - COALESCE ( 53, + - COUNT( * ) ) + CAST( - ( 65 ) AS SIGNED )
----
-118

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL - COALESCE ( 53, + - COUNT ( * ) ) + CAST ( - ( 65 ) AS INTEGER )
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT ALL - CASE - 47 WHEN + - 37 THEN - MIN( DISTINCT + - 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL - CASE - 47 WHEN + - 37 THEN - MIN ( DISTINCT + - 20 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9963
SELECT DISTINCT 36 - 15 DIV - - 60 * + + 45 * + COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT 36 - 15 / - - 60 * + + 45 * + COUNT ( * ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT - COUNT( * ) * + + MAX( DISTINCT - 46 ) * 82
----
3772

skipif mysql # not compatible
query I rowsort label-9964
SELECT - COUNT ( * ) * + + MAX ( DISTINCT - 46 ) * 82
----
3772

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT - COUNT( * ) * + 8 * 9 + - 75
----
-147

skipif mysql # not compatible
query I rowsort label-9965
SELECT - COUNT ( * ) * + 8 * 9 + - 75
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT ALL + CAST( NULL AS SIGNED ) / - - 53 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL + CAST ( NULL AS INTEGER ) / - - 53 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9967
SELECT DISTINCT - 70 * + + 82 DIV + ( + COUNT( * ) )
----
-5740

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT - 70 * + + 82 / + ( + COUNT ( * ) )
----
-5740

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT - COUNT( * ) + - + 55
----
-56

skipif mysql # not compatible
query I rowsort label-9968
SELECT - COUNT ( * ) + - + 55
----
-56

query II rowsort
SELECT 70 AS col2, - 3 AS col2
----
70
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT CAST( - + 9 AS SIGNED ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9970
SELECT CAST ( - + 9 AS INTEGER ) AS col2
----
-9

query I rowsort
SELECT ( 86 )
----
86

query I rowsort
SELECT - 72 * - 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL - COUNT( * ) + - 11
----
-12

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL - COUNT ( * ) + - 11
----
-12

query I rowsort
SELECT - 78 + 25
----
-53

query I rowsort
SELECT ALL - + 13 + + 60 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT COUNT( + 76 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9976
SELECT COUNT ( + 76 ) AS col0
----
1

query I rowsort
SELECT 40 + + 35 AS col2
----
75

query I rowsort
SELECT ALL - - 25 - + 45 AS col0
----
-20

query I rowsort
SELECT 96 * 11 AS col1
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT SUM( DISTINCT + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9980
SELECT SUM ( DISTINCT + 66 ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT DISTINCT - CAST( + ( 5 ) AS SIGNED ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT - CAST ( + ( 5 ) AS INTEGER ) AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9982
SELECT 49 DIV + 42 * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9982
SELECT 49 / + 42 * + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9983
SELECT + + 59 * - COUNT( * ) AS col1, 88 AS col2
----
-59
88

skipif mysql # not compatible
query II rowsort label-9983
SELECT + + 59 * - COUNT ( * ) AS col1, 88 AS col2
----
-59
88

query I rowsort
SELECT ALL + ( + 86 ) col1
----
86

query I rowsort
SELECT ALL - 88 - + ( + + 70 ) + - 74
----
-232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9986
SELECT ALL - COUNT( * ) DIV COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL - COUNT ( * ) / COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL + ( - SUM( DISTINCT + 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL + ( - SUM ( DISTINCT + 56 ) )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT - COUNT( * ) + 32 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9988
SELECT - COUNT ( * ) + 32 AS col0
----
31

query I rowsort
SELECT + 23 * 32 AS col2
----
736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9990
SELECT - CAST( + + 75 AS SIGNED ) * - 14 * - 13
----
-13650

skipif mysql # not compatible
query I rowsort label-9990
SELECT - CAST ( + + 75 AS INTEGER ) * - 14 * - 13
----
-13650

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT DISTINCT COUNT( DISTINCT 53 )
----
1

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT COUNT ( DISTINCT 53 )
----
1

query I rowsort
SELECT + 90 * - 64
----
-5760

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT 56 DIV - + 89
----
0

skipif mysql # not compatible
query I rowsort label-9993
SELECT 56 / - + 89
----
0

query II rowsort
SELECT - 3, 95 AS col0
----
-3
95

query I rowsort
SELECT - 57 * + 17
----
-969

query I rowsort
SELECT + 23 * 11
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT DISTINCT COUNT( DISTINCT 98 )
----
1

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT COUNT ( DISTINCT 98 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT COUNT( * ) + - 46 col0
----
-45

skipif mysql # not compatible
query I rowsort label-9998
SELECT COUNT ( * ) + - 46 col0
----
-45

query I rowsort
SELECT 40 * 57
----
2280

