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)

onlyif mysql # aggregate syntax: 
query II rowsort label-0
SELECT - 62 + SUM( ALL 57 ) AS col1, + 40 * + 33
----
-5
1320

skipif mysql # not compatible
query II rowsort label-0
SELECT - 62 + SUM ( ALL 57 ) AS col1, + 40 * + 33
----
-5
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT - 80 * + MIN( ALL ( + - 39 ) ) * - 78 * - ( - 84 )
----
-20442240

skipif mysql # not compatible
query I rowsort label-1
SELECT - 80 * + MIN ( ALL ( + - 39 ) ) * - 78 * - ( - 84 )
----
-20442240

query II rowsort
SELECT DISTINCT - 26 + + 41 * + 6, - 43 col2
----
220
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL + 62 + - NULLIF ( - COUNT( * ), MAX( - COALESCE ( 46, 58 - + 12, + 96 ) ) * 8 ) + 50 + - - 45 + + - 5 * - 49
----
403

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + 62 + - NULLIF ( - COUNT ( * ), MAX ( - COALESCE ( 46, 58 - + 12, + 96 ) ) * 8 ) + 50 + - - 45 + + - 5 * - 49
----
403

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT ALL - 8 + SUM( - - 2 )
----
-6

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL - 8 + SUM ( - - 2 )
----
-6

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

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT CAST ( + 65 AS INTEGER ) col1
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT - NULLIF ( 52, 73 ) DIV - 38 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7
SELECT - NULLIF ( 52, 73 ) / - 38 AS col1
----
1

query I rowsort
SELECT + 9 * + 85
----
765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9
SELECT ALL CAST( 29 AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL CAST ( 29 AS INTEGER ) AS col1
----
29

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

skipif mysql # not compatible
query I rowsort label-10
SELECT - ( - - 7 ) + - COUNT ( * ) / + - ( + 17 )
----
-7

query I rowsort
SELECT + 85 + 94 AS col1
----
179

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

skipif mysql # not compatible
query II rowsort label-12
SELECT DISTINCT 76 AS col2, COUNT ( * ) AS col2
----
76
1

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

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

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

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

query I rowsort
SELECT + 90 + - 99 * + 72 col2
----
-7038

query I rowsort
SELECT + 49 * - 31
----
-1519

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT ALL MAX( DISTINCT + + 79 ) * - 69 * 19
----
-103569

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL MAX ( DISTINCT + + 79 ) * - 69 * 19
----
-103569

query I rowsort
SELECT + 66 + - - 98 AS col2
----
164

query I rowsort
SELECT ALL NULLIF ( + + 32, + 50 ) AS col0
----
32

query I rowsort
SELECT + - 95 + - - ( - 52 ) AS col0
----
-147

query II rowsort
SELECT ALL 58, 29 AS col0
----
58
29

query II rowsort
SELECT - + 71 AS col0, - 45 + 72 AS col0
----
-71
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-23
SELECT - + COALESCE ( + + 87, + 79 * - COUNT( * ) / + 65 ) * COALESCE ( - - 50, - AVG ( + 70 ) ) + - 34 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-23
SELECT - + COALESCE ( + + 87, + 79 * - COUNT ( * ) / + 65 ) * COALESCE ( - - 50, - AVG ( + 70 ) ) + - 34 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-24
SELECT - - 49 DIV - 67 + + COALESCE ( + 27, + 22 ) - + - 64 * + - MIN( + 41 ) AS col1
----
-2597

skipif mysql # not compatible
query I rowsort label-24
SELECT - - 49 / - 67 + + COALESCE ( + 27, + 22 ) - + - 64 * + - MIN ( + 41 ) AS col1
----
-2597

query II rowsort
SELECT 97, 56 AS col1
----
97
56

query II rowsort
SELECT 22 col1, 35 * + CASE 28 WHEN 4 THEN NULL WHEN - 57 THEN 46 END * + 57 / - 91 AS col1
----
22
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT DISTINCT 55 DIV - 22
----
-2

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT 55 / - 22
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-29
SELECT ALL + 88 DIV 13 col1
----
6

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL + 88 / 13 col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-30
SELECT 64 DIV + 14 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-30
SELECT 64 / + 14 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ( + 49 ) * 44 - - COUNT( DISTINCT + 67 ) + - NULLIF ( - - 10, - NULLIF ( 68, + COUNT( * ) * + 92 + + 77 - NULLIF ( 65, - 4 ) ) ) * 15
----
2007

skipif mysql # not compatible
query I rowsort label-31
SELECT ( + 49 ) * 44 - - COUNT ( DISTINCT + 67 ) + - NULLIF ( - - 10, - NULLIF ( 68, + COUNT ( * ) * + 92 + + 77 - NULLIF ( 65, - 4 ) ) ) * 15
----
2007

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-32
SELECT ALL - 53, 56 * ( + ( + ( - CAST( NULL AS DECIMAL ) ) ) ) + - + 68 - - - MIN( - - ( - 69 ) ) * - 98 + + MAX( + 97 ) * CASE - 4 WHEN - 23 * 97 + COUNT( DISTINCT 40 ) THEN 80 WHEN 54 * 2 THEN - 96 ELSE - MAX( 94 ) END AS col1
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-32
SELECT ALL - 53, 56 * ( + ( + ( - CAST ( NULL AS REAL ) ) ) ) + - + 68 - - - MIN ( - - ( - 69 ) ) * - 98 + + MAX ( + 97 ) * CASE - 4 WHEN - 23 * 97 + COUNT ( DISTINCT 40 ) THEN 80 WHEN 54 * 2 THEN - 96 ELSE - MAX ( 94 ) END AS col1
----
-53
NULL

query I rowsort
SELECT 12 * 21
----
252

query II rowsort
SELECT - 14 * + + 40 * 73, + ( + - 0 ) * - ( + 84 ) AS col2
----
-40880
0

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

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

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

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

query I rowsort
SELECT DISTINCT - + 34 + - 30 + + - 29 * - 95 * 18 AS col0
----
49526

query I rowsort
SELECT ALL 51 + + 71
----
122

query I rowsort
SELECT ALL - 12 + + - 98 AS col2
----
-110

query I rowsort
SELECT ALL 45 + 63 * 74 AS col2
----
4707

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-41
SELECT DISTINCT + 49 * + CAST( + 25 AS SIGNED ) AS col0
----
1225

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT + 49 * + CAST ( + 25 AS INTEGER ) AS col0
----
1225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-42
SELECT + 8 * + + COUNT( * ) * 5 + + 22 * + CAST( + 19 AS SIGNED ) * 0 + - 10 + - 86, 82 * MAX( ALL + 29 ) * + 15 + 91 + - COUNT( * ) col2
----
-56
35760

skipif mysql # not compatible
query II rowsort label-42
SELECT + 8 * + + COUNT ( * ) * 5 + + 22 * + CAST ( + 19 AS INTEGER ) * 0 + - 10 + - 86, 82 * MAX ( ALL + 29 ) * + 15 + 91 + - COUNT ( * ) col2
----
-56
35760

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT DISTINCT + COUNT( * ) * - 86 * - 57
----
4902

skipif mysql # not compatible
query I rowsort label-43
SELECT DISTINCT + COUNT ( * ) * - 86 * - 57
----
4902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-44
SELECT 86 + + COALESCE ( CASE + COUNT( * ) WHEN - MIN( DISTINCT + 41 ) THEN + 90 - - CAST( 74 AS SIGNED ) + - 15 + 70 - + MIN( DISTINCT + + 97 ) + + 97 WHEN - 80 * + MAX( ALL + 39 ) THEN NULL ELSE NULL END, 53 * 89 ) + 65
----
4868

skipif mysql # not compatible
query I rowsort label-44
SELECT 86 + + COALESCE ( CASE + COUNT ( * ) WHEN - MIN ( DISTINCT + 41 ) THEN + 90 - - CAST ( 74 AS INTEGER ) + - 15 + 70 - + MIN ( DISTINCT + + 97 ) + + 97 WHEN - 80 * + MAX ( ALL + 39 ) THEN NULL ELSE NULL END, 53 * 89 ) + 65
----
4868

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT 22 * + - COUNT( ALL - ( + 15 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-45
SELECT 22 * + - COUNT ( ALL - ( + 15 ) )
----
-22

query I rowsort
SELECT 92 * - - 85 * 83
----
649060

query I rowsort
SELECT ALL + 31 * - 52 * + - 76
----
122512

query I rowsort
SELECT DISTINCT + 22 * ( - 41 )
----
-902

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT DISTINCT + 50 * MIN( DISTINCT - + 10 ) col2
----
-500

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT + 50 * MIN ( DISTINCT - + 10 ) col2
----
-500

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-51
SELECT 98 - + MIN( ALL CAST( - + 32 AS SIGNED ) )
----
130

skipif mysql # not compatible
query I rowsort label-51
SELECT 98 - + MIN ( ALL CAST ( - + 32 AS INTEGER ) )
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-52
SELECT 1 DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-52
SELECT 1 / 24
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-53
SELECT - ( - 4 ) * - 73 + + 57 DIV 36
----
-291

skipif mysql # not compatible
query I rowsort label-53
SELECT - ( - 4 ) * - 73 + + 57 / 36
----
-291

query II rowsort
SELECT - COALESCE ( 8, - ( 59 ) ), + 77 AS col0
----
-8
77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT 9 - + 10 + + 63 + - 88 - 18 DIV + 51 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-56
SELECT 9 - + 10 + + 63 + - 88 - 18 / + 51 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT + 96 * + ( + - 70 ) * 47 + COUNT( * ) - 20 + - ( + 41 ) AS col0
----
-315900

skipif mysql # not compatible
query I rowsort label-57
SELECT + 96 * + ( + - 70 ) * 47 + COUNT ( * ) - 20 + - ( + 41 ) AS col0
----
-315900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT DISTINCT - SUM( DISTINCT 13 ) + + 57
----
44

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT - SUM ( DISTINCT 13 ) + + 57
----
44

query I rowsort
SELECT DISTINCT + CASE 19 WHEN - 94 THEN 86 + - + 51 END * - 6 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-61
SELECT - 11 * 77 + 65 + - 81 + + + 15 + - 84 * - + 75 * - + CAST( - CASE 73 WHEN - 3 * - - 90 THEN NULL WHEN + CASE - 12 WHEN COALESCE ( - ( + COALESCE ( + 38, 63 ) ), 42 / 99, - MAX( ALL + 11 ) ) + 36 THEN NULL WHEN 12 + - 7 * - 91 THEN NULL ELSE - 53 END THEN NULL WHEN + 73 / 4 + 42 * + 92 THEN + 15 END AS SIGNED ) * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-61
SELECT - 11 * 77 + 65 + - 81 + + + 15 + - 84 * - + 75 * - + CAST ( - CASE 73 WHEN - 3 * - - 90 THEN NULL WHEN + CASE - 12 WHEN COALESCE ( - ( + COALESCE ( + 38, 63 ) ), 42 / 99, - MAX ( ALL + 11 ) ) + 36 THEN NULL WHEN 12 + - 7 * - 91 THEN NULL ELSE - 53 END THEN NULL WHEN + 73 / 4 + 42 * + 92 THEN + 15 END AS INTEGER ) * 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ( - + MAX( 70 ) ) * + + CASE - 17 WHEN - 36 * 39 + - COUNT( * ) THEN + + MIN( + ( + - 4 ) ) ELSE NULL END + - 97 + 11 + - + COUNT( DISTINCT 27 ) * 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT ( - + MAX ( 70 ) ) * + + CASE - 17 WHEN - 36 * 39 + - COUNT ( * ) THEN + + MIN ( + ( + - 4 ) ) ELSE NULL END + - 97 + 11 + - + COUNT ( DISTINCT 27 ) * 43 AS col1
----
NULL

query I rowsort
SELECT + 54 - - - ( 63 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ( - COUNT( * ) ) * - + NULLIF ( 79, - + 54 * - 78 ) + ( + 30 ) - - ( - 52 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-64
SELECT ( - COUNT ( * ) ) * - + NULLIF ( 79, - + 54 * - 78 ) + ( + 30 ) - - ( - 52 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT ALL - 76 + - SUM( DISTINCT + - 79 ) col1
----
3

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL - 76 + - SUM ( DISTINCT + - 79 ) col1
----
3

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

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL + COUNT ( * ) + 17 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-67
SELECT + 21 + COUNT( * ), - 13 * 38 * - 52 AS col1, + CAST( - 94 AS SIGNED ) + + - 95 + + 78 * - COUNT( * ) AS col2
----
22
25688
-267

skipif mysql # not compatible
query III rowsort label-67
SELECT + 21 + COUNT ( * ), - 13 * 38 * - 52 AS col1, + CAST ( - 94 AS INTEGER ) + + - 95 + + 78 * - COUNT ( * ) AS col2
----
22
25688
-267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-68
SELECT DISTINCT - - CAST( + NULLIF ( 36, 48 * 36 * - + 76 ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT - - CAST ( + NULLIF ( 36, 48 * 36 * - + 76 ) AS INTEGER )
----
36

query II rowsort
SELECT ALL - 51, - 94 + + 54 AS col0
----
-51
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT COUNT( * ) * 32 + + COUNT( ALL + 97 )
----
33

skipif mysql # not compatible
query I rowsort label-70
SELECT COUNT ( * ) * 32 + + COUNT ( ALL + 97 )
----
33

query I rowsort
SELECT ALL 45 + - + 26
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-72
SELECT DISTINCT 4 DIV + - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT 4 / + - 54 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-73
SELECT CAST( + COUNT( * ) AS SIGNED ) + + + 1 * + + 6
----
7

skipif mysql # not compatible
query I rowsort label-73
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + + + 1 * + + 6
----
7

query I rowsort
SELECT 67 * 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT 3 * COUNT( * ) * 51
----
153

skipif mysql # not compatible
query I rowsort label-75
SELECT 3 * COUNT ( * ) * 51
----
153

query II rowsort
SELECT ALL 39 * - NULLIF ( + 9, - - 85 * + 39 ) AS col0, ( + 48 ) * - 22 + + 79 AS col0
----
-351
-977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-77
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + 64 / + 28 * - ( - 41 ) + COUNT( * ) ) + + + NULLIF ( - CAST( + 39 AS SIGNED ), 48 + - + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-77
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + 64 / + 28 * - ( - 41 ) + COUNT ( * ) ) + + + NULLIF ( - CAST ( + 39 AS INTEGER ), 48 + - + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 74 * 15 * + 19 col2
----
21090

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT DISTINCT COUNT( * ) * - 37 * + 18
----
-666

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT COUNT ( * ) * - 37 * + 18
----
-666

query I rowsort
SELECT ( + - 42 ) * - 20
----
840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT ALL NULLIF ( - + 73, - 15 ) - CASE 33 WHEN + - 57 * + 33 * COUNT( * ) - + ( + ( + - MIN( DISTINCT 58 ) ) ) * - 97 * + 32 THEN - - 31 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL NULLIF ( - + 73, - 15 ) - CASE 33 WHEN + - 57 * + 33 * COUNT ( * ) - + ( + ( + - MIN ( DISTINCT 58 ) ) ) * - 97 * + 32 THEN - - 31 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 27 * + 18 AS col0
----
486

query I rowsort
SELECT 1 - + 36 AS col0
----
-35

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

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

query I rowsort
SELECT 43 - - 56
----
99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-88
SELECT ALL + CAST( + - MAX( ALL + - 62 ) AS SIGNED ) * 26 * + CAST( 91 AS SIGNED ) AS col1
----
146692

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL + CAST ( + - MAX ( ALL + - 62 ) AS INTEGER ) * 26 * + CAST ( 91 AS INTEGER ) AS col1
----
146692

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-90
SELECT - 89 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-90
SELECT - 89 + CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT - COALESCE ( + 21, 58 ) + COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-92
SELECT - COALESCE ( + 21, 58 ) + COUNT ( * ) AS col1
----
-20

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT + - ( - COALESCE ( - NULLIF ( 17, 66 ), - - 54 ) ) / + COUNT( - 35 ) + + + ( CASE + 87 WHEN + 87 * - + 81 THEN + 11 * - + 2 + 97 * NULLIF ( MAX( DISTINCT 32 ), - 87 ) ELSE NULL END ) + + 91 + - 54 * NULLIF ( + 86 * COUNT( * ), 0 / 48 + + 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-96
SELECT + - ( - COALESCE ( - NULLIF ( 17, 66 ), - - 54 ) ) / + COUNT ( - 35 ) + + + ( CASE + 87 WHEN + 87 * - + 81 THEN + 11 * - + 2 + 97 * NULLIF ( MAX ( DISTINCT 32 ), - 87 ) ELSE NULL END ) + + 91 + - 54 * NULLIF ( + 86 * COUNT ( * ), 0 / 48 + + 18 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-97
SELECT + NULLIF ( - - ( + + ( - - 99 ) ), ( - COUNT ( * ) ) * 80 - 65 )
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-98
SELECT - - CAST( NULL AS DECIMAL ) / + 48 + + 56 + - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-98
SELECT - - CAST ( NULL AS REAL ) / + 48 + + 56 + - 44 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT + + 11 + SUM( ALL + NULLIF ( + 19, - 71 ) )
----
30

skipif mysql # not compatible
query I rowsort label-99
SELECT + + 11 + SUM ( ALL + NULLIF ( + 19, - 71 ) )
----
30

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

query I rowsort
SELECT ALL 62 * - 18 * 93
----
-103788

query I rowsort
SELECT - 32 * - 43 AS col1
----
1376

query I rowsort
SELECT DISTINCT + 67 * + - 35 * + 80
----
-187600

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT 76 DIV + 65 - 18 + - 30 + - 10 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-104
SELECT 76 / + 65 - 18 + - 30 + - 10 AS col1
----
-57

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

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

query I rowsort
SELECT COALESCE ( 37, 72 )
----
37

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

skipif mysql # not compatible
query I rowsort label-107
SELECT + 9 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-108
SELECT ALL + CAST( NULL AS SIGNED ) * - 91 / 5 - - 24 * + 73 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL + CAST ( NULL AS INTEGER ) * - 91 / 5 - - 24 * + 73 * 26
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 0, - + 70 + + + 88 + - - 76 ) AS col1
----
0

query I rowsort
SELECT ALL - 49 * + + 42
----
-2058

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

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

query I rowsort
SELECT ALL 38 * + 5
----
190

onlyif mysql # DIV for integer division: 
query I rowsort label-113
SELECT ALL 49 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL 49 / - 40
----
-1

query I rowsort
SELECT - 61 * + - 77 + 81 col1
----
4778

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

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

query I rowsort
SELECT + 90 + 52 * - + 29 AS col0
----
-1418

onlyif mysql # DIV for integer division: 
query I rowsort label-117
SELECT + 7 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-117
SELECT + 7 / 21
----
0

query II rowsort
SELECT + 13 + - 57 AS col0, 7
----
-44
7

query II rowsort
SELECT DISTINCT 36 AS col0, - 84 * - 69 AS col2
----
36
5796

query II rowsort
SELECT + 84 * - 19 AS col0, 73 * + 0 AS col0
----
-1596
0

query I rowsort
SELECT DISTINCT - 83 + 9
----
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT + - MAX( 92 ) * - 39 * - + 97 AS col1
----
-348036

skipif mysql # not compatible
query I rowsort label-123
SELECT + - MAX ( 92 ) * - 39 * - + 97 AS col1
----
-348036

query I rowsort
SELECT DISTINCT - 70 + + ( 64 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-125
SELECT DISTINCT + 13 AS col0, - CASE - 80 WHEN COALESCE ( 77, - - COALESCE ( - 19, - 77, + 4 ) + + 13 / + ( - NULLIF ( 81, + - 70 ) ) * 18 * + - CAST( NULL AS SIGNED ) * - 14 ) + - 2 THEN 50 WHEN 43 * 44 THEN 54 * - 81 WHEN + 49 + - 17 THEN + ( 45 ) ELSE 78 END
----
13
-78

skipif mysql # not compatible
query II rowsort label-125
SELECT DISTINCT + 13 AS col0, - CASE - 80 WHEN COALESCE ( 77, - - COALESCE ( - 19, - 77, + 4 ) + + 13 / + ( - NULLIF ( 81, + - 70 ) ) * 18 * + - CAST ( NULL AS INTEGER ) * - 14 ) + - 2 THEN 50 WHEN 43 * 44 THEN 54 * - 81 WHEN + 49 + - 17 THEN + ( 45 ) ELSE 78 END
----
13
-78

query I rowsort
SELECT ALL + 1 + - + 76 + 19 col1
----
-56

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

skipif mysql # not compatible
query I rowsort label-127
SELECT - COUNT ( * ) * 7
----
-7

query I rowsort
SELECT DISTINCT 92 + 98
----
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT ALL + 35 + - 68 * 4 * + + 5 * + + ( - 55 ) + + MAX( DISTINCT - NULLIF ( - + 18, + 73 ) ) - + - 73 * - COUNT( * ) - + + COUNT( - 75 ) DIV + 93 + - ( 76 ) + ( 34 )
----
74738

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + 35 + - 68 * 4 * + + 5 * + + ( - 55 ) + + MAX ( DISTINCT - NULLIF ( - + 18, + 73 ) ) - + - 73 * - COUNT ( * ) - + + COUNT ( - 75 ) / + 93 + - ( 76 ) + ( 34 )
----
74738

query II rowsort
SELECT ALL - 76 * + 72, 89 col2
----
-5472
89

query II rowsort
SELECT ALL + 54 AS col1, 40 AS col1
----
54
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-132
SELECT - 96 col2, - NULLIF ( 51, + MIN( DISTINCT + ( - 80 ) ) + + 60 + - - 84 * - - 38 ) AS col1, + - CAST( 81 AS SIGNED ) + - 50 AS col0
----
-96
-51
-131

skipif mysql # not compatible
query III rowsort label-132
SELECT - 96 col2, - NULLIF ( 51, + MIN ( DISTINCT + ( - 80 ) ) + + 60 + - - 84 * - - 38 ) AS col1, + - CAST ( 81 AS INTEGER ) + - 50 AS col0
----
-96
-51
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT + CASE 92 WHEN - + ( + COUNT( ALL - - 49 ) ) + 94 THEN + + 75 * - - 30 + - 39 WHEN 23 THEN 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT + CASE 92 WHEN - + ( + COUNT ( ALL - - 49 ) ) + 94 THEN + + 75 * - - 30 + - 39 WHEN 23 THEN 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-134
SELECT - - 88 * NULLIF ( 16, - COUNT( * ) ), 54 AS col1
----
1408
54

skipif mysql # not compatible
query II rowsort label-134
SELECT - - 88 * NULLIF ( 16, - COUNT ( * ) ), 54 AS col1
----
1408
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-135
SELECT + 90 * + + 93 * + 72 / - CAST( NULL AS SIGNED ) + + 10 - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT + 90 * + + 93 * + 72 / - CAST ( NULL AS INTEGER ) + + 10 - - 34
----
NULL

query I rowsort
SELECT - 10 - 70
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-137
SELECT - CAST( + - 49 AS SIGNED ) + - ( + MIN( ALL + + 11 ) )
----
38

skipif mysql # not compatible
query I rowsort label-137
SELECT - CAST ( + - 49 AS INTEGER ) + - ( + MIN ( ALL + + 11 ) )
----
38

query I rowsort
SELECT - 98 * + 37
----
-3626

onlyif mysql # aggregate syntax: 
query II rowsort label-139
SELECT - 74 + + 46 col0, + 12 - + COUNT( * )
----
-28
11

skipif mysql # not compatible
query II rowsort label-139
SELECT - 74 + + 46 col0, + 12 - + COUNT ( * )
----
-28
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-140
SELECT ALL + CASE WHEN ( NOT ( + 6 ) IS NOT NULL ) THEN CASE + + CAST( - 76 AS DECIMAL ) WHEN COUNT( * ) + 9 + + - 92 THEN - MAX( - 85 ) / + + 96 WHEN + + 16 / ( 91 ) + - 25 * - 73 THEN - CAST( NULL AS SIGNED ) WHEN COALESCE ( + COALESCE ( - 75, 1 * - 3 + 63 ), - 73, - 32 - - 33 * 15 ) THEN NULL END WHEN 36 IS NULL THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL + CASE WHEN ( NOT ( + 6 ) IS NOT NULL ) THEN CASE + + CAST ( - 76 AS REAL ) WHEN COUNT ( * ) + 9 + + - 92 THEN - MAX ( - 85 ) / + + 96 WHEN + + 16 / ( 91 ) + - 25 * - 73 THEN - CAST ( NULL AS INTEGER ) WHEN COALESCE ( + COALESCE ( - 75, 1 * - 3 + 63 ), - 73, - 32 - - 33 * 15 ) THEN NULL END WHEN 36 IS NULL THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-141
SELECT ALL - COUNT( * ) * - 56 AS col1, 50
----
56
50

skipif mysql # not compatible
query II rowsort label-141
SELECT ALL - COUNT ( * ) * - 56 AS col1, 50
----
56
50

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT 81 * + + SUM( - 47 ) + 96 AS col0
----
-3711

skipif mysql # not compatible
query I rowsort label-142
SELECT 81 * + + SUM ( - 47 ) + 96 AS col0
----
-3711

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

query I rowsort
SELECT - 32 + - 7
----
-39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-146
SELECT ALL - CAST( + + MIN( DISTINCT - 12 ) AS SIGNED ) col2
----
12

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL - CAST ( + + MIN ( DISTINCT - 12 ) AS INTEGER ) col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-147
SELECT DISTINCT - 1 + + 72 DIV + - CAST( - + MAX( - 66 ) AS SIGNED ) - - + 20
----
18

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT - 1 + + 72 / + - CAST ( - + MAX ( - 66 ) AS INTEGER ) - - + 20
----
18

query I rowsort
SELECT 76 * - 98 AS col2
----
-7448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-149
SELECT ( - 44 ) DIV - NULLIF ( - SUM( + 26 ), COALESCE ( + CASE WHEN NOT ( NULL ) NOT IN ( + - ( + - ( + 5 ) ), 77 ) THEN - + 29 WHEN NOT 77 IS NOT NULL THEN NULL ELSE + 52 * - 5 END, + 85 + + MAX( DISTINCT + 60 ) * - 43 ) ) - + 86 * - 24
----
2063

skipif mysql # not compatible
query I rowsort label-149
SELECT ( - 44 ) / - NULLIF ( - SUM ( + 26 ), COALESCE ( + CASE WHEN NOT ( NULL ) NOT IN ( + - ( + - ( + 5 ) ), 77 ) THEN - + 29 WHEN NOT 77 IS NOT NULL THEN NULL ELSE + 52 * - 5 END, + 85 + + MAX ( DISTINCT + 60 ) * - 43 ) ) - + 86 * - 24
----
2063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT - COALESCE ( MIN( - + CAST( NULL AS SIGNED ) ), MAX( ALL - - CASE + 87 WHEN + 2 - 90 THEN NULL WHEN + 52 THEN + 53 END ) * + 53 + + CAST( + COUNT( + + 94 ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-150
SELECT - COALESCE ( MIN ( - + CAST ( NULL AS INTEGER ) ), MAX ( ALL - - CASE + 87 WHEN + 2 - 90 THEN NULL WHEN + 52 THEN + 53 END ) * + 53 + + CAST ( + COUNT ( + + 94 ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-151
SELECT - CAST( + 57 AS SIGNED ), + 97 col2
----
-57
97

skipif mysql # not compatible
query II rowsort label-151
SELECT - CAST ( + 57 AS INTEGER ), + 97 col2
----
-57
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-152
SELECT - 7 + COALESCE ( - COUNT( * ), - + COUNT( + 64 ) ) * + MAX( + ( + 24 ) ) * + CAST( NULL AS SIGNED ) + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-152
SELECT - 7 + COALESCE ( - COUNT ( * ), - + COUNT ( + 64 ) ) * + MAX ( + ( + 24 ) ) * + CAST ( NULL AS INTEGER ) + 85 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-153
SELECT DISTINCT 77 + - + COALESCE ( + - 89, + - 61 - - + CASE + - COUNT( * ) WHEN - ( + 30 ) THEN NULL ELSE + - 86 END ) * - 1 * - + COUNT( * ) + - - 81 AS col0, + 89 AS col0
----
247
89

skipif mysql # not compatible
query II rowsort label-153
SELECT DISTINCT 77 + - + COALESCE ( + - 89, + - 61 - - + CASE + - COUNT ( * ) WHEN - ( + 30 ) THEN NULL ELSE + - 86 END ) * - 1 * - + COUNT ( * ) + - - 81 AS col0, + 89 AS col0
----
247
89

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

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL COUNT ( + 94 ) * - 37 col1
----
-37

query I rowsort
SELECT 76 + 55 - - 70
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT - 64 * CASE + COUNT( * ) WHEN - COUNT( * ) * - + 5 + 48 + - + 18 * - 26 / + - 56 THEN 54 / + COUNT( * ) - - 54 * - 58 - - 84 * + 56 END * - - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-156
SELECT - 64 * CASE + COUNT ( * ) WHEN - COUNT ( * ) * - + 5 + 48 + - + 18 * - 26 / + - 56 THEN 54 / + COUNT ( * ) - - 54 * - 58 - - 84 * + 56 END * - - 1 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-157
SELECT DISTINCT 39 - - - 76 AS col1, + MIN( 58 ) + - 1 / + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) - 3
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-157
SELECT DISTINCT 39 - - - 76 AS col1, + MIN ( 58 ) + - 1 / + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) - 3
----
-37
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-158
SELECT DISTINCT - MIN( DISTINCT + + CAST( - 34 AS SIGNED ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT - MIN ( DISTINCT + + CAST ( - 34 AS INTEGER ) ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL - NULLIF ( + 31, - 69 + - COUNT( * ) - - 2 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL - NULLIF ( + 31, - 69 + - COUNT ( * ) - - 2 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT ( + CASE + + 94 WHEN ( - 48 ) + COUNT( * ) THEN + 61 END ) + - - 94 * SUM( DISTINCT - - 52 ) * - + 84 + - COUNT( * ) + - MAX( ALL + 66 ) + - CASE COUNT( * ) WHEN 20 * + 14 THEN ( 32 ) * + 94 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-160
SELECT ( + CASE + + 94 WHEN ( - 48 ) + COUNT ( * ) THEN + 61 END ) + - - 94 * SUM ( DISTINCT - - 52 ) * - + 84 + - COUNT ( * ) + - MAX ( ALL + 66 ) + - CASE COUNT ( * ) WHEN 20 * + 14 THEN ( 32 ) * + 94 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-161
SELECT DISTINCT - 95 - + 40 + + 30 * + 45 * - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT DISTINCT - 95 - + 40 + + 30 * + 45 * - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT - 29 / - + 90 + - 18 + 98 + - - 15 + 14 + - CASE + + 61 WHEN MAX( DISTINCT + 18 ) * + MIN( + + 29 ) THEN - 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-162
SELECT - 29 / - + 90 + - 18 + 98 + - - 15 + 14 + - CASE + + 61 WHEN MAX ( DISTINCT + 18 ) * + MIN ( + + 29 ) THEN - 63 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-163
SELECT COUNT( DISTINCT - - 72 ) DIV - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-163
SELECT COUNT ( DISTINCT - - 72 ) / - COUNT ( * ) AS col2
----
-1

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

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

query II rowsort
SELECT ALL - 38 col0, - 37
----
-38
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT ALL + SUM( + 27 ) * + + 1 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + SUM ( + 27 ) * + + 1 AS col0
----
27

query II rowsort
SELECT 0 AS col1, 34 AS col0
----
0
34

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT ALL - SUM( ALL - 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL - SUM ( ALL - 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-169
SELECT COUNT( * ) * 62 - 21 AS col1, + NULLIF ( - - 87, 79 + + MIN( DISTINCT 1 ) ) * + 32 + - 78
----
41
2706

skipif mysql # not compatible
query II rowsort label-169
SELECT COUNT ( * ) * 62 - 21 AS col1, + NULLIF ( - - 87, 79 + + MIN ( DISTINCT 1 ) ) * + 32 + - 78
----
41
2706

query I rowsort
SELECT 28 * 58 AS col1
----
1624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-171
SELECT 11 - + + 88 - - + MIN( DISTINCT 6 ) DIV 69
----
-77

skipif mysql # not compatible
query I rowsort label-171
SELECT 11 - + + 88 - - + MIN ( DISTINCT 6 ) / 69
----
-77

query II rowsort
SELECT + 19, 40 * - 46 col2
----
19
-1840

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-173
SELECT DISTINCT + CASE 27 WHEN - 71 THEN - ( - CAST( + MIN( 4 ) AS DECIMAL ) ) END + 7 * 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT + CASE 27 WHEN - 71 THEN - ( - CAST ( + MIN ( 4 ) AS REAL ) ) END + 7 * 52 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-174
SELECT 21 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-174
SELECT 21 / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-175
SELECT SUM( ALL CAST( + 57 AS SIGNED ) ) * MAX( + 88 ) * 31 DIV 43 * + + 7 col1, + 86
----
25312
86

skipif mysql # not compatible
query II rowsort label-175
SELECT SUM ( ALL CAST ( + 57 AS INTEGER ) ) * MAX ( + 88 ) * 31 / 43 * + + 7 col1, + 86
----
25312
86

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

query I rowsort
SELECT 43 * - 36 AS col2
----
-1548

onlyif mysql # DIV for integer division: 
query II rowsort label-178
SELECT DISTINCT - 85, + COALESCE ( + 84, - 34 DIV + 9 ) AS col0
----
-85
84

skipif mysql # not compatible
query II rowsort label-178
SELECT DISTINCT - 85, + COALESCE ( + 84, - 34 / + 9 ) AS col0
----
-85
84

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-180
SELECT + 5 + + + MAX( CAST( - 40 AS SIGNED ) ) + + COUNT( * ) DIV - 72
----
-35

skipif mysql # not compatible
query I rowsort label-180
SELECT + 5 + + + MAX ( CAST ( - 40 AS INTEGER ) ) + + COUNT ( * ) / - 72
----
-35

query I rowsort
SELECT ALL - 40 - + 4
----
-44

query I rowsort
SELECT ALL + CASE + + 11 WHEN - + 22 THEN NULL WHEN - 78 THEN 40 * + 2 + - 86 * 19 - 74 + + 61 ELSE + 83 * 49 * - 23 + - - 36 END - - + 94
----
-93411

query II rowsort
SELECT ALL + 37, 56 AS col2
----
37
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-184
SELECT COALESCE ( 20, - 25 * + - ( - - 99 ), - 26 + - 98 * 86 + - CAST( NULL AS SIGNED ) ) + - COUNT( * ) + COUNT( * ) + + - 3
----
17

skipif mysql # not compatible
query I rowsort label-184
SELECT COALESCE ( 20, - 25 * + - ( - - 99 ), - 26 + - 98 * 86 + - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + COUNT ( * ) + + - 3
----
17

query I rowsort
SELECT 58 - + + 61 + - 16 AS col1
----
-19

query I rowsort
SELECT - 29 * - 6 * - - NULLIF ( 95, 91 * + 87 + - 41 )
----
16530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-187
SELECT - 38 + - + 70 * + COALESCE ( + CASE + 91 WHEN + CAST( NULL AS SIGNED ) + - 78 * + ( - 78 ) THEN + - 29 ELSE NULL END, 84 )
----
-5918

skipif mysql # not compatible
query I rowsort label-187
SELECT - 38 + - + 70 * + COALESCE ( + CASE + 91 WHEN + CAST ( NULL AS INTEGER ) + - 78 * + ( - 78 ) THEN + - 29 ELSE NULL END, 84 )
----
-5918

query I rowsort
SELECT 19 * - 6 col1
----
-114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-189
SELECT 50 + + 29 + ( - 22 ) + + - 41 + 62 * MIN( + - 83 ) + CASE NULLIF ( + COUNT( * ), + 85 ) WHEN + 10 * + MIN( DISTINCT - 66 ) / SUM( DISTINCT 20 ) * + - MAX( ALL COALESCE ( 31, 11 * - 24, 87 / + 24 ) ) + CAST( NULL AS DECIMAL ) - + 39 THEN 48 ELSE NULL END - - SUM( ALL + 58 ) / - MAX( DISTINCT - 25 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT 50 + + 29 + ( - 22 ) + + - 41 + 62 * MIN ( + - 83 ) + CASE NULLIF ( + COUNT ( * ), + 85 ) WHEN + 10 * + MIN ( DISTINCT - 66 ) / SUM ( DISTINCT 20 ) * + - MAX ( ALL COALESCE ( 31, 11 * - 24, 87 / + 24 ) ) + CAST ( NULL AS REAL ) - + 39 THEN 48 ELSE NULL END - - SUM ( ALL + 58 ) / - MAX ( DISTINCT - 25 ) AS col0
----
NULL

query I rowsort
SELECT + ( - 22 ) * + - 27 + ( - 85 ) col2
----
509

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-191
SELECT DISTINCT 93 AS col1, CAST( NULL AS SIGNED ) * - + 37 * 3 col2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-191
SELECT DISTINCT 93 AS col1, CAST ( NULL AS INTEGER ) * - + 37 * 3 col2
----
93
NULL

query I rowsort
SELECT ALL 69 * 50
----
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT ALL - COUNT( * ) * - 12 col2
----
12

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL - COUNT ( * ) * - 12 col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT ( 5 ) + 94 + + 42 + - COUNT( * ) DIV - 17
----
141

skipif mysql # not compatible
query I rowsort label-194
SELECT ( 5 ) + 94 + + 42 + - COUNT ( * ) / - 17
----
141

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-196
SELECT DISTINCT + COUNT( * ) * + 12 * + COUNT( * ) * - CAST( NULL AS SIGNED ) + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT + COUNT ( * ) * + 12 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-197
SELECT 92 + 58 + - COUNT( * ) * + + MIN( DISTINCT - 51 ) DIV - 31 AS col2
----
149

skipif mysql # not compatible
query I rowsort label-197
SELECT 92 + 58 + - COUNT ( * ) * + + MIN ( DISTINCT - 51 ) / - 31 AS col2
----
149

query I rowsort
SELECT CASE 47 WHEN - 96 THEN NULL WHEN - - 95 * + 61 THEN NULL ELSE - 36 END
----
-36

query I rowsort
SELECT 18 * 44 + - + 39 + - 50 * + - 21 + 17
----
1820

query I rowsort
SELECT 37 - - - 11
----
26

query I rowsort
SELECT - 62 * + 64 - - 4
----
-3964

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT ALL COUNT( - - ( + 22 ) ) * - 1 + - - 20 + - + 5 * + 54 AS col2
----
-251

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL COUNT ( - - ( + 22 ) ) * - 1 + - - 20 + - + 5 * + 54 AS col2
----
-251

query I rowsort
SELECT + 61 + + 70 AS col0
----
131

query I rowsort
SELECT + COALESCE ( - 87, - 97 ) AS col2
----
-87

query I rowsort
SELECT DISTINCT + 1 * - 93 + - 12 AS col0
----
-105

query I rowsort
SELECT + 25 * 74 * - + 57
----
-105450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-207
SELECT DISTINCT - ( - MIN( DISTINCT - 13 ) ) * 74 + 70 * + 63 + 40 + ( + + 54 ) / + 3 * + + CAST( NULL AS SIGNED ) + - COALESCE ( + - 17, 46 ) * + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT - ( - MIN ( DISTINCT - 13 ) ) * 74 + 70 * + 63 + 40 + ( + + 54 ) / + 3 * + + CAST ( NULL AS INTEGER ) + - COALESCE ( + - 17, 46 ) * + 61 AS col2
----
NULL

query I rowsort
SELECT + - 8 + + 40 AS col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-209
SELECT + 10 DIV + + 8 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-209
SELECT + 10 / + + 8 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-210
SELECT - - ( + - 33 ) + + + 14 DIV - 67
----
-33

skipif mysql # not compatible
query I rowsort label-210
SELECT - - ( + - 33 ) + + + 14 / - 67
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-211
SELECT DISTINCT + + 21 DIV 60 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT + + 21 / 60 / - 51
----
0

query I rowsort
SELECT ALL - - ( + 59 ) - 30 - - 69 - - 36 AS col1
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-213
SELECT - + SUM( - 89 ) / + COUNT( + 22 ) + + ( CASE + 92 WHEN - - 6 THEN 4 + 87 WHEN - - COALESCE ( CAST( - - COUNT( * ) AS SIGNED ), CAST( + COUNT( * ) AS SIGNED ) ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-213
SELECT - + SUM ( - 89 ) / + COUNT ( + 22 ) + + ( CASE + 92 WHEN - - 6 THEN 4 + 87 WHEN - - COALESCE ( CAST ( - - COUNT ( * ) AS INTEGER ), CAST ( + COUNT ( * ) AS INTEGER ) ) THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT CASE - 0 WHEN - 44 THEN - - MIN( + 22 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT CASE - 0 WHEN - 44 THEN - - MIN ( + 22 ) ELSE NULL END
----
NULL

query II rowsort
SELECT - 60 * - 11, + 46 AS col0
----
660
46

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT - 69 + 59 + + - 76 + + 80 * - ( - + MAX( DISTINCT + - ( - + 82 ) ) ) * - 2 * + + NULLIF ( - + COUNT( DISTINCT - + 46 ), - 73 * - 50 * + + 59 )
----
13034

skipif mysql # not compatible
query I rowsort label-216
SELECT - 69 + 59 + + - 76 + + 80 * - ( - + MAX ( DISTINCT + - ( - + 82 ) ) ) * - 2 * + + NULLIF ( - + COUNT ( DISTINCT - + 46 ), - 73 * - 50 * + + 59 )
----
13034

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

skipif mysql # not compatible
query I rowsort label-217
SELECT - - COUNT ( * ) * - 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT - ( - SUM( DISTINCT - + 97 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-218
SELECT - ( - SUM ( DISTINCT - + 97 ) )
----
-97

query II rowsort
SELECT ALL 42 AS col1, 39
----
42
39

query I rowsort
SELECT - 27 + - 50 + + - ( - 16 )
----
-61

query I rowsort
SELECT ALL + 86 + + + ( ( + 94 ) ) AS col1
----
180

query II rowsort
SELECT 25 AS col2, 72 * - + 42
----
25
-3024

query I rowsort
SELECT + 21 + - 83 * - - 55
----
-4544

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-226
SELECT - 91 / + COUNT ( * ) AS col0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-227
SELECT - 67 * + 19 * + - 15 DIV - - COUNT( * ) AS col1
----
19095

skipif mysql # not compatible
query I rowsort label-227
SELECT - 67 * + 19 * + - 15 / - - COUNT ( * ) AS col1
----
19095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-228
SELECT ALL + 0 DIV 27 * - + 5 + + - 10 + + - MAX( DISTINCT + 94 ) * - ( 42 ) + CASE - ( COUNT( * ) ) WHEN + + COUNT( * ) DIV + + 63 + + 53 THEN NULL WHEN 26 THEN NULL ELSE - - COUNT( * ) * - 36 END AS col1
----
3902

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL + 0 / 27 * - + 5 + + - 10 + + - MAX ( DISTINCT + 94 ) * - ( 42 ) + CASE - ( COUNT ( * ) ) WHEN + + COUNT ( * ) / + + 63 + + 53 THEN NULL WHEN 26 THEN NULL ELSE - - COUNT ( * ) * - 36 END AS col1
----
3902

query I rowsort
SELECT + 61 * - - 34 AS col2
----
2074

query I rowsort
SELECT ALL + 96 * 5 AS col0
----
480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-231
SELECT DISTINCT + COUNT( * ) DIV + 47 * 60 * 29 + + 74 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + COUNT ( * ) / + 47 * 60 * 29 + + 74 AS col2
----
74

query I rowsort
SELECT ALL - 74 * + 49 - + 26 AS col2
----
-3652

query I rowsort
SELECT + ( - COALESCE ( - 57, + 31, - 53 - - 13 - 72 * + 55 - - - 23 * - - 15 + 61 * - 35 ) ) AS col2
----
57

query I rowsort
SELECT + CASE 14 WHEN 47 * - 86 THEN + 3 WHEN + + 14 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + + 79 + + 9 AS col0
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT ALL NULLIF ( - SUM( 98 ), + - 5 ) * + 2 - + - 15 + - + 1 col0
----
-182

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL NULLIF ( - SUM ( 98 ), + - 5 ) * + 2 - + - 15 + - + 1 col0
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-238
SELECT DISTINCT NULLIF ( + 88, - 54 ) / AVG ( - + 47 ) - + 85 + - + 62 * - - CAST( NULL AS SIGNED ) * + - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT NULLIF ( + 88, - 54 ) / AVG ( - + 47 ) - + 85 + - + 62 * - - CAST ( NULL AS INTEGER ) * + - 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-239
SELECT + NULLIF ( 19, - 50 + - COUNT( * ) + - 83 * - ( + - 96 ) ) - - 44 DIV - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-239
SELECT + NULLIF ( 19, - 50 + - COUNT ( * ) + - 83 * - ( + - 96 ) ) - - 44 / - COUNT ( * )
----
-25

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

query I rowsort
SELECT + 58 - + 6
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-242
SELECT + 42, + MAX( DISTINCT + 94 ) col1
----
42
94

skipif mysql # not compatible
query II rowsort label-242
SELECT + 42, + MAX ( DISTINCT + 94 ) col1
----
42
94

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

query I rowsort
SELECT + + 77 + 59
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-245
SELECT - - 72 DIV + MIN( DISTINCT 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-245
SELECT - - 72 / + MIN ( DISTINCT 68 ) AS col1
----
1

query I rowsort
SELECT - 89 + - 99 col0
----
-188

onlyif mysql # aggregate syntax: 
query II rowsort label-247
SELECT ALL - COUNT( * ) AS col1, - CASE + 42 WHEN 71 THEN + 4 ELSE - 99 END
----
-1
99

skipif mysql # not compatible
query II rowsort label-247
SELECT ALL - COUNT ( * ) AS col1, - CASE + 42 WHEN 71 THEN + 4 ELSE - 99 END
----
-1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-248
SELECT ALL - 16 DIV - COUNT( DISTINCT + - 89 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL - 16 / - COUNT ( DISTINCT + - 89 ) AS col1
----
16

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

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

query I rowsort
SELECT ALL + - 39 + - 65 AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT - - COUNT( * ) * 17 + 5 * - 88
----
-423

skipif mysql # not compatible
query I rowsort label-251
SELECT - - COUNT ( * ) * 17 + 5 * - 88
----
-423

query I rowsort
SELECT ALL - 14 + - 44 AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-253
SELECT ALL CAST( NULL AS SIGNED ), - 83 AS col1
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-253
SELECT ALL CAST ( NULL AS INTEGER ), - 83 AS col1
----
NULL
-83

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

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

query I rowsort
SELECT + 15 + 96 * + 16
----
1551

onlyif mysql # aggregate syntax: 
query II rowsort label-256
SELECT ALL 48 AS col2, COUNT( * ) + + 96 + COUNT( * ) AS col1
----
48
98

skipif mysql # not compatible
query II rowsort label-256
SELECT ALL 48 AS col2, COUNT ( * ) + + 96 + COUNT ( * ) AS col1
----
48
98

onlyif mysql # DIV for integer division: 
query I rowsort label-257
SELECT 11 + - + ( - 99 ) + - 88 DIV 43 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-257
SELECT 11 + - + ( - 99 ) + - 88 / 43 AS col2
----
108

query II rowsort
SELECT - 50, + 1 * 54 * - + 27 AS col0
----
-50
-1458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-259
SELECT ALL - CAST( ( + SUM( - 57 ) ) AS SIGNED ) + 80 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL - CAST ( ( + SUM ( - 57 ) ) AS INTEGER ) + 80 AS col1
----
137

query I rowsort
SELECT 27 - 23 + + 75
----
79

query I rowsort
SELECT 37 - 76 * 41
----
-3079

query II rowsort
SELECT DISTINCT 63, 84 AS col1
----
63
84

onlyif mysql # DIV for integer division: 
query II rowsort label-263
SELECT DISTINCT 65 AS col0, COALESCE ( - 21, 51 + 86, 14 ) DIV - 94
----
65
0

skipif mysql # not compatible
query II rowsort label-263
SELECT DISTINCT 65 AS col0, COALESCE ( - 21, 51 + 86, 14 ) / - 94
----
65
0

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT ALL - SUM( DISTINCT - 45 ) - - 41
----
86

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL - SUM ( DISTINCT - 45 ) - - 41
----
86

query I rowsort
SELECT 27 + - + ( 49 ) + - - 72 AS col0
----
50

query I rowsort
SELECT 72 - + 70
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-267
SELECT - 2 / 25 + + - 80 + + CASE + 74 WHEN - AVG ( DISTINCT - + 98 ) - + - 48 / + - 60 THEN NULL WHEN - 85 * 84 THEN CAST( 97 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-267
SELECT - 2 / 25 + + - 80 + + CASE + 74 WHEN - AVG ( DISTINCT - + 98 ) - + - 48 / + - 60 THEN NULL WHEN - 85 * 84 THEN CAST ( 97 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT - ( + MIN( + 1 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT - ( + MIN ( + 1 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL 32 * ( - 58 ) - + MIN( ALL 59 ) AS col2
----
-1915

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL 32 * ( - 58 ) - + MIN ( ALL 59 ) AS col2
----
-1915

onlyif mysql # DIV for integer division: 
query I rowsort label-270
SELECT - 1 DIV + 93 * 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-270
SELECT - 1 / + 93 * 55 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-271
SELECT ALL - ( + 20 ) DIV - - 43 * 47 - + - 71 * - - COUNT( * ) * + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL - ( + 20 ) / - - 43 * 47 - + - 71 * - - COUNT ( * ) * + COUNT ( * )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-272
SELECT + CAST( NULL AS SIGNED ) + + 43 + 4 / 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT + CAST ( NULL AS INTEGER ) + + 43 + 4 / 4 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-273
SELECT ALL - CAST( NULLIF ( 63, - - 48 * - COUNT( * ) ) AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL - CAST ( NULLIF ( 63, - - 48 * - COUNT ( * ) ) AS INTEGER )
----
-63

query I rowsort
SELECT DISTINCT + ( - 60 ) * - 35 AS col1
----
2100

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

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

query II rowsort
SELECT + 59 AS col2, 24
----
59
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-277
SELECT - CAST( - + 3 AS SIGNED ), - 15 + 17 + - 12 + + 37 AS col1
----
3
27

skipif mysql # not compatible
query II rowsort label-277
SELECT - CAST ( - + 3 AS INTEGER ), - 15 + 17 + - 12 + + 37 AS col1
----
3
27

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT - 90 + COUNT( * ) * - 63 * - + 19 AS col1
----
1107

skipif mysql # not compatible
query I rowsort label-278
SELECT - 90 + COUNT ( * ) * - 63 * - + 19 AS col1
----
1107

query I rowsort
SELECT + - COALESCE ( ( - 67 ), - + 88 ) AS col1
----
67

query I rowsort
SELECT 56 + - + 49
----
7

query II rowsort
SELECT 45 col2, 34 * - 29 AS col2
----
45
-986

query I rowsort
SELECT - 17 * - 12
----
204

onlyif mysql # aggregate syntax: 
query II rowsort label-283
SELECT ALL - 4 AS col1, + 12 + - COUNT( * ) AS col1
----
-4
11

skipif mysql # not compatible
query II rowsort label-283
SELECT ALL - 4 AS col1, + 12 + - COUNT ( * ) AS col1
----
-4
11

query I rowsort
SELECT DISTINCT 5 + + 27
----
32

query I rowsort
SELECT ( 52 ) + - 92
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ALL NULLIF ( 1, - + 38 - - 48 / - + 56 - - 54 * CASE - 31 WHEN - - 45 + - + COUNT( * ) + - ( + COUNT( * ) ) + ( - COUNT( * ) ) + - + ( + - 25 ) * + ( + - 20 ) / - 31 * - - 72 + CASE - 95 WHEN - COALESCE ( + SUM( ALL 16 ), + 72, COUNT( * ) * - 33 ) + 8 THEN NULL WHEN - 19 THEN NULL ELSE 31 END * 98 * 50 THEN COUNT( * ) - + 94 WHEN 14 + - 14 THEN NULL END ) + + 67 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL NULLIF ( 1, - + 38 - - 48 / - + 56 - - 54 * CASE - 31 WHEN - - 45 + - + COUNT ( * ) + - ( + COUNT ( * ) ) + ( - COUNT ( * ) ) + - + ( + - 25 ) * + ( + - 20 ) / - 31 * - - 72 + CASE - 95 WHEN - COALESCE ( + SUM ( ALL 16 ), + 72, COUNT ( * ) * - 33 ) + 8 THEN NULL WHEN - 19 THEN NULL ELSE 31 END * 98 * 50 THEN COUNT ( * ) - + 94 WHEN 14 + - 14 THEN NULL END ) + + 67 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT - 6 + + 64 + - + COALESCE ( 32, 55 ) * + COUNT( * ) * - + 24 - - 0 - + 16
----
810

skipif mysql # not compatible
query I rowsort label-287
SELECT - 6 + + 64 + - + COALESCE ( 32, 55 ) * + COUNT ( * ) * - + 24 - - 0 - + 16
----
810

onlyif mysql # aggregate syntax: 
query II rowsort label-288
SELECT ALL 10 + + 50 + - ( - 82 ) - + 87, 82 + 50 * COUNT( * ) AS col2
----
55
132

skipif mysql # not compatible
query II rowsort label-288
SELECT ALL 10 + + 50 + - ( - 82 ) - + 87, 82 + 50 * COUNT ( * ) AS col2
----
55
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-289
SELECT 2 + + CAST( - - 17 AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-289
SELECT 2 + + CAST ( - - 17 AS INTEGER ) AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-290
SELECT COUNT( * ) + - MAX( - + 73 ) AS col1, 72 DIV - 79 * + 8
----
74
0

skipif mysql # not compatible
query II rowsort label-290
SELECT COUNT ( * ) + - MAX ( - + 73 ) AS col1, 72 / - 79 * + 8
----
74
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT ALL CAST( NULL AS SIGNED ) + - + 40 + - 35 + - 13 + - COALESCE ( - - 81, + 60 * - - 85 / - 45 ) * - - 72 * 12 * + - 67 / + 10 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL CAST ( NULL AS INTEGER ) + - + 40 + - 35 + - 13 + - COALESCE ( - - 81, + 60 * - - 85 / - 45 ) * - - 72 * 12 * + - 67 / + 10 * 45
----
NULL

query I rowsort
SELECT ALL 74 * + 55 AS col0
----
4070

query I rowsort
SELECT COALESCE ( 67, 88 ) + - + 4 AS col2
----
63

query II rowsort
SELECT ALL + 96 * - 70, 41 - + - 55 + + 30 * 59 AS col2
----
-6720
1866

query I rowsort
SELECT 46 + - + 31
----
15

query I rowsort
SELECT ALL NULLIF ( 36, + 16 ) - + 42 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT 27 * 36 * + ( 64 ) * + + 58 + - + COUNT( * ) * - + ( - + MAX( ALL + - ( - 21 ) ) ) AS col1
----
3608043

skipif mysql # not compatible
query I rowsort label-297
SELECT 27 * 36 * + ( 64 ) * + + 58 + - + COUNT ( * ) * - + ( - + MAX ( ALL + - ( - 21 ) ) ) AS col1
----
3608043

query I rowsort
SELECT 62 * 11
----
682

query I rowsort
SELECT 72 + 7 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT 81 + - COUNT( * ) * 66
----
15

skipif mysql # not compatible
query I rowsort label-300
SELECT 81 + - COUNT ( * ) * 66
----
15

query I rowsort
SELECT ALL 55 * 76 - - 33
----
4213

query I rowsort
SELECT 52 * + - 92 * + - 61 AS col1
----
291824

query II rowsort
SELECT DISTINCT 1 * + 13, - 52 col0
----
13
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT ALL - SUM( ALL - 59 ), 73 AS col0
----
59
73

skipif mysql # not compatible
query II rowsort label-304
SELECT ALL - SUM ( ALL - 59 ), 73 AS col0
----
59
73

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT + COALESCE ( + 39, COUNT( * ) * 13, + 12 * - + COUNT( * ) + 91 )
----
39

skipif mysql # not compatible
query I rowsort label-305
SELECT + COALESCE ( + 39, COUNT ( * ) * 13, + 12 * - + COUNT ( * ) + 91 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-306
SELECT - CAST( - 68 AS SIGNED ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-306
SELECT - CAST ( - 68 AS INTEGER ) AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT - 51 * 39 DIV - 72 - 5 - - 48 + 9
----
79

skipif mysql # not compatible
query I rowsort label-307
SELECT - 51 * 39 / - 72 - 5 - - 48 + 9
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT ALL - + 72 + 11 + MAX( 30 ) - - - 65 * - 75 AS col2
----
4844

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL - + 72 + 11 + MAX ( 30 ) - - - 65 * - 75 AS col2
----
4844

query II rowsort
SELECT - 79 - - 29 AS col0, 91 AS col0
----
-50
91

query I rowsort
SELECT + NULLIF ( - COALESCE ( + + ( + 28 ), 42 ), + + 41 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT 40 + - - 3 * + SUM( DISTINCT - - 27 ) + + ( 99 ) * + + 56 col0
----
5665

skipif mysql # not compatible
query I rowsort label-311
SELECT 40 + - - 3 * + SUM ( DISTINCT - - 27 ) + + ( 99 ) * + + 56 col0
----
5665

query I rowsort
SELECT ALL + - 59 * - 82
----
4838

query I rowsort
SELECT ALL + 39 + - 88 - + 93 + - + 91 * + 55
----
-5147

query I rowsort
SELECT ALL - 80 + + - 25 + + 50 * + + 85 col1
----
4145

query II rowsort
SELECT DISTINCT - + NULLIF ( 15, 12 ) + + ( - + 82 ) col2, - 87 + + 45 AS col0
----
-97
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-316
SELECT - 38 DIV + MIN( DISTINCT - 52 ), 41 AS col0
----
0
41

skipif mysql # not compatible
query II rowsort label-316
SELECT - 38 / + MIN ( DISTINCT - 52 ), 41 AS col0
----
0
41

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT COUNT( * ) - - NULLIF ( - NULLIF ( + 18, - 70 * + 86 ), + 97 + + CASE - 12 WHEN + - ( 40 ) THEN + 85 END )
----
-17

skipif mysql # not compatible
query I rowsort label-317
SELECT COUNT ( * ) - - NULLIF ( - NULLIF ( + 18, - 70 * + 86 ), + 97 + + CASE - 12 WHEN + - ( 40 ) THEN + 85 END )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-318
SELECT ALL - + 80 + - 99 * CAST( CASE - + 36 WHEN + + COUNT( * ) THEN CAST( - SUM( ALL + 49 ) AS SIGNED ) + + ( 10 ) / - 97 WHEN COUNT( * ) + - 20 THEN NULL ELSE - 34 * - 35 * 95 + + COALESCE ( 59, - - 87 ) END AS SIGNED ) + - 95 * - 37
----
-11194356

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - + 80 + - 99 * CAST ( CASE - + 36 WHEN + + COUNT ( * ) THEN CAST ( - SUM ( ALL + 49 ) AS INTEGER ) + + ( 10 ) / - 97 WHEN COUNT ( * ) + - 20 THEN NULL ELSE - 34 * - 35 * 95 + + COALESCE ( 59, - - 87 ) END AS INTEGER ) + - 95 * - 37
----
-11194356

query I rowsort
SELECT + 98 * + + 74 AS col1
----
7252

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT DISTINCT COUNT( * ) + - 41 * - + ( MAX( + 29 ) ) AS col1
----
1190

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT COUNT ( * ) + - 41 * - + ( MAX ( + 29 ) ) AS col1
----
1190

onlyif mysql # aggregate syntax: 
query II rowsort label-321
SELECT DISTINCT COALESCE ( - + COUNT( * ), - COUNT( * ) ), 22 AS col0
----
-1
22

skipif mysql # not compatible
query II rowsort label-321
SELECT DISTINCT COALESCE ( - + COUNT ( * ), - COUNT ( * ) ), 22 AS col0
----
-1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT - 73 - + 75 * COUNT( * ) * COUNT( * )
----
-148

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT - 73 - + 75 * COUNT ( * ) * COUNT ( * )
----
-148

query I rowsort
SELECT + 44 * + 70
----
3080

query I rowsort
SELECT DISTINCT 91 * 28
----
2548

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

query I rowsort
SELECT - 9 * 95
----
-855

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-327
SELECT 87, + 53 + ( + - 75 ) - 60 + NULLIF ( - 95, - COUNT( - 30 ) * + COUNT( * ) * - 43 * + 5 + - COUNT( ALL 98 ) ) * + ( - 64 ) DIV COUNT( * ) AS col1
----
87
5998

skipif mysql # not compatible
query II rowsort label-327
SELECT 87, + 53 + ( + - 75 ) - 60 + NULLIF ( - 95, - COUNT ( - 30 ) * + COUNT ( * ) * - 43 * + 5 + - COUNT ( ALL 98 ) ) * + ( - 64 ) / COUNT ( * ) AS col1
----
87
5998

query I rowsort
SELECT + 2 + 21
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-329
SELECT + CASE 15 WHEN - 93 THEN NULL WHEN COUNT( * ) - 64 + 93 THEN COUNT( * ) * + ( - COUNT( 38 ) ) + + - 30 END * - 87 * - 39 AS col1, - SUM( 16 ) * + ( + 20 ) * 41
----
NULL
-13120

skipif mysql # not compatible
query II rowsort label-329
SELECT + CASE 15 WHEN - 93 THEN NULL WHEN COUNT ( * ) - 64 + 93 THEN COUNT ( * ) * + ( - COUNT ( 38 ) ) + + - 30 END * - 87 * - 39 AS col1, - SUM ( 16 ) * + ( + 20 ) * 41
----
NULL
-13120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-330
SELECT + SUM( DISTINCT - 12 ) + - 43 * 26 - NULLIF ( + 66, + + 53 ) DIV + 1 AS col0
----
-1196

skipif mysql # not compatible
query I rowsort label-330
SELECT + SUM ( DISTINCT - 12 ) + - 43 * 26 - NULLIF ( + 66, + + 53 ) / + 1 AS col0
----
-1196

onlyif mysql # aggregate syntax: 
query II rowsort label-331
SELECT - 69 AS col2, - 75 * + - 0 * - 65 + - SUM( DISTINCT - 1 ) * + 13 AS col2
----
-69
13

skipif mysql # not compatible
query II rowsort label-331
SELECT - 69 AS col2, - 75 * + - 0 * - 65 + - SUM ( DISTINCT - 1 ) * + 13 AS col2
----
-69
13

query I rowsort
SELECT ALL 60 * + 93
----
5580

onlyif mysql # DIV for integer division: 
query I rowsort label-333
SELECT ALL + 66 DIV + - 99
----
0

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL + 66 / + - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT - SUM( + 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-334
SELECT - SUM ( + 12 ) AS col1
----
-12

query I rowsort
SELECT - + 9 * - 89 col0
----
801

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-336
SELECT DISTINCT + CASE - CAST( NULL AS DECIMAL ) WHEN CAST( 43 AS SIGNED ) + 78 + + 55 * + 83 * 1 THEN NULL ELSE + 87 * 44 END
----
3828

skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT + CASE - CAST ( NULL AS REAL ) WHEN CAST ( 43 AS INTEGER ) + 78 + + 55 * + 83 * 1 THEN NULL ELSE + 87 * 44 END
----
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT - COUNT( * ) * - 94 + + 58
----
152

skipif mysql # not compatible
query I rowsort label-337
SELECT - COUNT ( * ) * - 94 + + 58
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT + COUNT( * ) * - 9 * + + COUNT( * ) + + + 17 + - - 17 * COUNT( DISTINCT - - 20 ) + - 96 + - 37 * + 60 * - 34 * 14
----
1056649

skipif mysql # not compatible
query I rowsort label-338
SELECT + COUNT ( * ) * - 9 * + + COUNT ( * ) + + + 17 + - - 17 * COUNT ( DISTINCT - - 20 ) + - 96 + - 37 * + 60 * - 34 * 14
----
1056649

query I rowsort
SELECT - + 59 - 49 AS col0
----
-108

query II rowsort
SELECT + + ( + 15 ) * + 61, + 40 AS col1
----
915
40

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT 84 * - 93 * + 95 - - + COALESCE ( + MIN( + - 55 ), - + 95, + 55 ) AS col1
----
-742195

skipif mysql # not compatible
query I rowsort label-341
SELECT 84 * - 93 * + 95 - - + COALESCE ( + MIN ( + - 55 ), - + 95, + 55 ) AS col1
----
-742195

onlyif mysql # aggregate syntax: 
query II rowsort label-342
SELECT + + COUNT( * ) AS col2, + 96 * + 62
----
1
5952

skipif mysql # not compatible
query II rowsort label-342
SELECT + + COUNT ( * ) AS col2, + 96 * + 62
----
1
5952

query I rowsort
SELECT ALL + 41 * + - CASE - - 46 WHEN - 9 THEN NULL WHEN 95 THEN NULL ELSE 82 END + 65 * 93 * COALESCE ( + + 87, 96 + + 51 )
----
522553

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT ALL + 5 * 25 + 81 + + MIN( ALL + 44 ) * + 31 AS col1
----
1570

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL + 5 * 25 + 81 + + MIN ( ALL + 44 ) * + 31 AS col1
----
1570

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT ALL - 41 * - 62 + - COUNT( * )
----
2541

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL - 41 * - 62 + - COUNT ( * )
----
2541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-346
SELECT 24 * 67 - 31 + - - 55 - - COUNT( * ) * + + 76 DIV + 60 col2
----
1633

skipif mysql # not compatible
query I rowsort label-346
SELECT 24 * 67 - 31 + - - 55 - - COUNT ( * ) * + + 76 / + 60 col2
----
1633

query II rowsort
SELECT ALL + 75 AS col0, 18 * + 86 - + 74
----
75
1474

query I rowsort
SELECT - - 76 * + 26 + - 12
----
1964

query II rowsort
SELECT - 17 AS col0, - 53 AS col0
----
-17
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT + NULLIF ( - 40, - 11 * + 58 * COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-350
SELECT + NULLIF ( - 40, - 11 * + 58 * COUNT ( * ) )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-351
SELECT - 40 + + 2 * - 27 * - CASE + 19 WHEN + COUNT( * ) * - 78 + + SUM( + 10 ) * - + 86 + - + 31 * 73 THEN + COUNT( * ) WHEN - 78 - + CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END * 25 + - + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-351
SELECT - 40 + + 2 * - 27 * - CASE + 19 WHEN + COUNT ( * ) * - 78 + + SUM ( + 10 ) * - + 86 + - + 31 * 73 THEN + COUNT ( * ) WHEN - 78 - + CAST ( NULL AS REAL ) THEN NULL ELSE NULL END * 25 + - + 61 AS col1
----
NULL

query II rowsort
SELECT + 79 AS col1, + 8 AS col0
----
79
8

query I rowsort
SELECT - 93 * + + 49 AS col2
----
-4557

query I rowsort
SELECT - + 72 + + 23
----
-49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-356
SELECT ALL + + CAST( NULL AS SIGNED ), 85 + ( 24 ) * - + 78 col2
----
NULL
-1787

skipif mysql # not compatible
query II rowsort label-356
SELECT ALL + + CAST ( NULL AS INTEGER ), 85 + ( 24 ) * - + 78 col2
----
NULL
-1787

query I rowsort
SELECT DISTINCT + 14 * + ( + 99 ) AS col2
----
1386

query I rowsort
SELECT - 45 * + + 5 AS col1
----
-225

query II rowsort
SELECT ALL + 96 * 83 AS col0, + 86 col2
----
7968
86

query I rowsort
SELECT DISTINCT + 97 * - 55 - 98 AS col0
----
-5433

query I rowsort
SELECT DISTINCT 66 * - + 90 - - 31 AS col1
----
-5909

query I rowsort
SELECT - 15 + - + 62 + - 75
----
-152

query I rowsort
SELECT - 85 * + 94
----
-7990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-364
SELECT + COUNT( * ) + + 13 + CAST( NULL AS SIGNED ) + + - 57 * - + 68 + - ( + - 9 ) * + COALESCE ( - 93, + COUNT( * ), - 75 - - 6 ) - - 14 + 75 * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-364
SELECT + COUNT ( * ) + + 13 + CAST ( NULL AS INTEGER ) + + - 57 * - + 68 + - ( + - 9 ) * + COALESCE ( - 93, + COUNT ( * ), - 75 - - 6 ) - - 14 + 75 * - 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-365
SELECT DISTINCT CAST( - MAX( 6 ) AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT CAST ( - MAX ( 6 ) AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT - SUM( DISTINCT + + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-366
SELECT - SUM ( DISTINCT + + 99 )
----
-99

query II rowsort
SELECT + 49 + - 12 + - 79 * + 21 * - 12 AS col2, + 70 AS col0
----
19945
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-368
SELECT ALL CAST( - + NULLIF ( + NULLIF ( + COALESCE ( 80, ( + COUNT( * ) ), - 97 * - 28 * 8 * - COUNT( * ) + + 12 + + + COUNT( ALL 35 ) * 20 ), - COALESCE ( + 32, - COUNT( * ) + + 66 ) + - COUNT( * ) + - CAST( NULL AS DECIMAL ) + - 65 / - - 3 * - 46 * + 16 ), - 57 ) AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL CAST ( - + NULLIF ( + NULLIF ( + COALESCE ( 80, ( + COUNT ( * ) ), - 97 * - 28 * 8 * - COUNT ( * ) + + 12 + + + COUNT ( ALL 35 ) * 20 ), - COALESCE ( + 32, - COUNT ( * ) + + 66 ) + - COUNT ( * ) + - CAST ( NULL AS REAL ) + - 65 / - - 3 * - 46 * + 16 ), - 57 ) AS INTEGER )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT - MIN( 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-369
SELECT - MIN ( 33 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-370
SELECT + + 5 DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-370
SELECT + + 5 / + 54
----
0

query I rowsort
SELECT + - 88 + 77 * - 72 col2
----
-5632

query I rowsort
SELECT ALL 87 * + - 70 col1
----
-6090

query I rowsort
SELECT + + 13 + - - 63 * - 34 + - + 1 + - + 0 + - 80 * - 71 * + + 91
----
514750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-374
SELECT DISTINCT + COALESCE ( - CASE - + 8 WHEN - 20 THEN NULL WHEN + + COALESCE ( 94, - 64 * - - COUNT( * ) * - - 3 ) + - 60 THEN NULL ELSE + - 59 DIV CASE - + 34 WHEN - 68 + + 28 THEN + + 20 * - - 81 * + - 36 ELSE NULL END END, + 87 * - ( - ( + 46 ) ) + - - ( 42 ) ) DIV COUNT( * ) + 28 AS col2
----
4072

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT + COALESCE ( - CASE - + 8 WHEN - 20 THEN NULL WHEN + + COALESCE ( 94, - 64 * - - COUNT ( * ) * - - 3 ) + - 60 THEN NULL ELSE + - 59 / CASE - + 34 WHEN - 68 + + 28 THEN + + 20 * - - 81 * + - 36 ELSE NULL END END, + 87 * - ( - ( + 46 ) ) + - - ( 42 ) ) / COUNT ( * ) + 28 AS col2
----
4072

query II rowsort
SELECT ALL + - ( 4 ) AS col1, + ( 35 ) AS col2
----
-4
35

onlyif mysql # DIV for integer division: 
query I rowsort label-376
SELECT ALL - 86 DIV + 97 + + - 38
----
-38

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL - 86 / + 97 + + - 38
----
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-377
SELECT DISTINCT + 51 / - 38 + ( CAST( NULL AS DECIMAL ) ) + - COUNT( * ) + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT + 51 / - 38 + ( CAST ( NULL AS REAL ) ) + - COUNT ( * ) + - 74
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-379
SELECT + + 67 * - + COUNT( DISTINCT 7 ) * 19 + 86 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-379
SELECT + + 67 * - + COUNT ( DISTINCT 7 ) * 19 + 86 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 77 + + 20 AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-381
SELECT + - CAST( + - 8 AS SIGNED ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-381
SELECT + - CAST ( + - 8 AS INTEGER ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT 95 * + COUNT( * ) + + 77 * + - 37 + - 19 + COUNT( * ) + - 31
----
-2803

skipif mysql # not compatible
query I rowsort label-382
SELECT 95 * + COUNT ( * ) + + 77 * + - 37 + - 19 + COUNT ( * ) + - 31
----
-2803

query I rowsort
SELECT ALL - 37 - + + COALESCE ( - + 51, - 22 )
----
14

query I rowsort
SELECT 2 * 0 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT - 31 * + - COUNT( * ) - - 21 * + 79
----
1690

skipif mysql # not compatible
query I rowsort label-386
SELECT - 31 * + - COUNT ( * ) - - 21 * + 79
----
1690

query I rowsort
SELECT ALL ( + 12 ) * + 88 AS col0
----
1056

query II rowsort
SELECT ALL - 91, 93 AS col1
----
-91
93

query I rowsort
SELECT ALL - CASE 39 WHEN + + 22 THEN + + 14 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 65 * - 31
----
-2015

query I rowsort
SELECT 36 * 99
----
3564

query I rowsort
SELECT COALESCE ( + 40, - 10 + - ( 51 ) ) + + ( 56 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-393
SELECT - 56 col0, COUNT( * )
----
-56
1

skipif mysql # not compatible
query II rowsort label-393
SELECT - 56 col0, COUNT ( * )
----
-56
1

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT 55 DIV - - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-394
SELECT 55 / - - 83 AS col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-396
SELECT DISTINCT - CAST( + 52 AS SIGNED ) DIV 32 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT - CAST ( + 52 AS INTEGER ) / 32 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-397
SELECT - 67 AS col1, 4 DIV - 86 AS col2
----
-67
0

skipif mysql # not compatible
query II rowsort label-397
SELECT - 67 AS col1, 4 / - 86 AS col2
----
-67
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT DISTINCT + 21 + COUNT( * ) col0
----
22

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT + 21 + COUNT ( * ) col0
----
22

query I rowsort
SELECT 52 + + + 59
----
111

query I rowsort
SELECT ALL + 3 + + 19
----
22

query I rowsort
SELECT 61 + - + 11 AS col0
----
50

query II rowsort
SELECT ALL + 2 AS col0, + 66 * - 7 AS col1
----
2
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT 46 + + ( + MAX( ALL + - 46 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-404
SELECT 46 + + ( + MAX ( ALL + - 46 ) ) AS col1
----
0

query I rowsort
SELECT 89 * 90 AS col0
----
8010

onlyif mysql # aggregate syntax: 
query II rowsort label-406
SELECT - ( + 69 ) + + 1 * - NULLIF ( + - 95, + 28 * - 9 * + MIN( ALL + - 89 ) / + 4 * - 6 - 20 / - + 76 ) AS col2, - 30 + - COUNT( * )
----
26
-31

skipif mysql # not compatible
query II rowsort label-406
SELECT - ( + 69 ) + + 1 * - NULLIF ( + - 95, + 28 * - 9 * + MIN ( ALL + - 89 ) / + 4 * - 6 - 20 / - + 76 ) AS col2, - 30 + - COUNT ( * )
----
26
-31

query I rowsort
SELECT + 68 + - 55 AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-408
SELECT ALL + 71 * COUNT( * ) * + 41, COALESCE ( 86, 10 ) + - 98 AS col2
----
2911
-12

skipif mysql # not compatible
query II rowsort label-408
SELECT ALL + 71 * COUNT ( * ) * + 41, COALESCE ( 86, 10 ) + - 98 AS col2
----
2911
-12

query I rowsort
SELECT 15 + + 12
----
27

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

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL + COUNT ( * ) - 5 AS col1
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT + COUNT( * ) + - - 5 + + - 83
----
-77

skipif mysql # not compatible
query I rowsort label-412
SELECT + COUNT ( * ) + - - 5 + + - 83
----
-77

query I rowsort
SELECT ALL + 27 - 88 col0
----
-61

query I rowsort
SELECT - 65 * 51 + + 25 AS col2
----
-3290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-415
SELECT - CAST( NULL AS SIGNED ) * - + ( MAX( ALL - 35 ) ) + + + 5 * - 14 - - + MIN( + 51 ) + COALESCE ( + 67, + CASE + ( ( - 46 ) ) WHEN + + 88 * + - 58 THEN - COUNT( * ) END, 94 ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-415
SELECT - CAST ( NULL AS INTEGER ) * - + ( MAX ( ALL - 35 ) ) + + + 5 * - 14 - - + MIN ( + 51 ) + COALESCE ( + 67, + CASE + ( ( - 46 ) ) WHEN + + 88 * + - 58 THEN - COUNT ( * ) END, 94 ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-416
SELECT - + COUNT( * ) DIV + 21 + - + 23 AS col1, - COUNT( * ) + 18
----
-23
17

skipif mysql # not compatible
query II rowsort label-416
SELECT - + COUNT ( * ) / + 21 + - + 23 AS col1, - COUNT ( * ) + 18
----
-23
17

query I rowsort
SELECT 38 - + - 41 AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-418
SELECT ALL - - NULLIF ( - 7, + CAST( + + 53 AS SIGNED ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL - - NULLIF ( - 7, + CAST ( + + 53 AS INTEGER ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT DISTINCT - SUM( + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-419
SELECT DISTINCT - SUM ( + 64 )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-420
SELECT 5 * - MIN( 95 ) + + MIN( 18 ) DIV 8 - - - 94 - + 49 AS col2
----
-616

skipif mysql # not compatible
query I rowsort label-420
SELECT 5 * - MIN ( 95 ) + + MIN ( 18 ) / 8 - - - 94 - + 49 AS col2
----
-616

onlyif mysql # DIV for integer division: 
query I rowsort label-421
SELECT ALL - 94 DIV - 18
----
5

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL - 94 / - 18
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-422
SELECT NULLIF ( 54, + - 43 ) * 57 DIV + MAX( DISTINCT - 83 )
----
-37

skipif mysql # not compatible
query I rowsort label-422
SELECT NULLIF ( 54, + - 43 ) * 57 / + MAX ( DISTINCT - 83 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-423
SELECT ALL SUM( ALL + + 26 ) DIV MIN( + 40 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL SUM ( ALL + + 26 ) / MIN ( + 40 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT ALL 73 * + MIN( - 40 )
----
-2920

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL 73 * + MIN ( - 40 )
----
-2920

query II rowsort
SELECT 8, 2 * + 30 AS col0
----
8
60

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

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

query I rowsort
SELECT ALL + 34 + + - 85 * - 84 AS col1
----
7174

query I rowsort
SELECT DISTINCT 96 + 73 AS col1
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-429
SELECT ALL + 7 + + ( 3 ) DIV + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL + 7 + + ( 3 ) / + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT 81 + - - COUNT( * ) + 22
----
104

skipif mysql # not compatible
query I rowsort label-430
SELECT 81 + - - COUNT ( * ) + 22
----
104

query I rowsort
SELECT ALL 31 + + 61
----
92

query II rowsort
SELECT 76, 13 + - - 4 AS col0
----
76
17

query I rowsort
SELECT 61 * 22 AS col0
----
1342

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-435
SELECT ALL - 44 / + 32 * 66 * 79 / + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL - 44 / + 32 * 66 * 79 / + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT - COALESCE ( 93, COUNT( * ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-436
SELECT - COALESCE ( 93, COUNT ( * ) ) AS col2
----
-93

query I rowsort
SELECT DISTINCT 4 + 98 AS col2
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-438
SELECT DISTINCT + 89, + 78 + + 0 * - COUNT( * ) col2
----
89
78

skipif mysql # not compatible
query II rowsort label-438
SELECT DISTINCT + 89, + 78 + + 0 * - COUNT ( * ) col2
----
89
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-439
SELECT ALL + - CAST( NULL AS DECIMAL ) + 61 * 78 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL + - CAST ( NULL AS REAL ) + 61 * 78 / - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 64 + - 18 + - 33 * 17 AS col1
----
-515

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

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

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

skipif mysql # not compatible
query I rowsort label-442
SELECT - COUNT ( * ) / - 51 AS col0
----
0

query II rowsort
SELECT ALL 58, 0 AS col0
----
58
0

onlyif mysql # DIV for integer division: 
query II rowsort label-444
SELECT - 16 * - - 52 AS col2, + 64 DIV 15 + + 67 * - 92 col1
----
-832
-6160

skipif mysql # not compatible
query II rowsort label-444
SELECT - 16 * - - 52 AS col2, + 64 / 15 + + 67 * - 92 col1
----
-832
-6160

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT ALL + COUNT( * ) AS col1, 53 / CASE - 61 WHEN 73 + COUNT( * ) THEN COUNT( * ) * - 10 + - - 16 + + + 38 / COUNT( DISTINCT 78 ) + + 15 + 1 WHEN - + 91 THEN + COUNT( * ) + 49 END + 14 / 6 col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-447
SELECT ALL + COUNT ( * ) AS col1, 53 / CASE - 61 WHEN 73 + COUNT ( * ) THEN COUNT ( * ) * - 10 + - - 16 + + + 38 / COUNT ( DISTINCT 78 ) + + 15 + 1 WHEN - + 91 THEN + COUNT ( * ) + 49 END + 14 / 6 col1
----
1
NULL

query II rowsort
SELECT DISTINCT + 60 AS col2, + 68 AS col0
----
60
68

query II rowsort
SELECT ALL + 22 AS col0, - 43 AS col2
----
22
-43

query II rowsort
SELECT + 43 AS col1, 47 * 69 - ( - ( + 50 ) )
----
43
3293

onlyif mysql # aggregate syntax: 
query II rowsort label-451
SELECT + MIN( DISTINCT + 12 ) AS col2, - 84 - 55 AS col0
----
12
-139

skipif mysql # not compatible
query II rowsort label-451
SELECT + MIN ( DISTINCT + 12 ) AS col2, - 84 - 55 AS col0
----
12
-139

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-452
SELECT ALL - 5 * + 2 DIV + 15 + + 59 + 45 * - - CAST( + 21 AS SIGNED ) * - 22 * - - 99 col0
----
-2058151

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL - 5 * + 2 / + 15 + + 59 + 45 * - - CAST ( + 21 AS INTEGER ) * - 22 * - - 99 col0
----
-2058151

query I rowsort
SELECT ALL 66 * - + 93 + - 87
----
-6225

query I rowsort
SELECT ALL + NULLIF ( - 39, 51 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-455
SELECT DISTINCT 60 * COUNT( * ) / 98 + + - ( ( COUNT( * ) ) ) + + CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-455
SELECT DISTINCT 60 * COUNT ( * ) / 98 + + - ( ( COUNT ( * ) ) ) + + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-456
SELECT DISTINCT COUNT( * ) * 59 + - 46 AS col2, + 72 - 56 - + 89 * + - ( - CAST( 37 AS SIGNED ) ) col1
----
13
-3277

skipif mysql # not compatible
query II rowsort label-456
SELECT DISTINCT COUNT ( * ) * 59 + - 46 AS col2, + 72 - 56 - + 89 * + - ( - CAST ( 37 AS INTEGER ) ) col1
----
13
-3277

query I rowsort
SELECT ALL 34 * - 64 + + ( + 42 ) + + 48 * + + 5 + - + 15
----
-1909

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT DISTINCT 25 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT 25 / 84
----
0

query II rowsort
SELECT + 90 * + 92, + 80 AS col2
----
8280
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT + 96 * ( - 83 ) * MIN( + 93 ) * - CAST( NULL AS SIGNED ) + 24 + - CAST( + COUNT( 0 ) AS SIGNED ) * 30 / - 94 + 30 + 23 * - + 96 * + - 61 * ( + 25 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT + 96 * ( - 83 ) * MIN ( + 93 ) * - CAST ( NULL AS INTEGER ) + 24 + - CAST ( + COUNT ( 0 ) AS INTEGER ) * 30 / - 94 + 30 + 23 * - + 96 * + - 61 * ( + 25 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT - ( - NULLIF ( ( - 54 ), - 14 + - 80 + 36 * SUM( - 74 ) ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-462
SELECT - ( - NULLIF ( ( - 54 ), - 14 + - 80 + 36 * SUM ( - 74 ) ) ) AS col1
----
-54

query I rowsort
SELECT ALL AVG ( DISTINCT - - CASE + 39 WHEN - 93 * - 40 + ( + 46 ) + + 54 * - 91 THEN NULL WHEN + 87 + - 7 THEN 10 ELSE NULL END ) + + 3
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-464
SELECT MAX( ALL 46 ), - 77 AS col1
----
46
-77

skipif mysql # not compatible
query II rowsort label-464
SELECT MAX ( ALL 46 ), - 77 AS col1
----
46
-77

query II rowsort
SELECT DISTINCT + 93 * + 50 col1, 43
----
4650
43

onlyif mysql # aggregate syntax: 
query II rowsort label-466
SELECT ALL COUNT( * ) - - 42 + - 23 + ( - 1 ), - 42 * - 71 AS col0
----
19
2982

skipif mysql # not compatible
query II rowsort label-466
SELECT ALL COUNT ( * ) - - 42 + - 23 + ( - 1 ), - 42 * - 71 AS col0
----
19
2982

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-468
SELECT + 3 + + COALESCE ( - 46, + 20 + NULLIF ( + COUNT( * ), - 96 - - 4 * 28 ) ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-468
SELECT + 3 + + COALESCE ( - 46, + 20 + NULLIF ( + COUNT ( * ), - 96 - - 4 * 28 ) ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-469
SELECT + + 79 + - - COUNT( * ) AS col0, COUNT( * )
----
80
1

skipif mysql # not compatible
query II rowsort label-469
SELECT + + 79 + - - COUNT ( * ) AS col0, COUNT ( * )
----
80
1

query I rowsort
SELECT - - 74 - - 53 * - 53
----
-2735

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

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

query I rowsort
SELECT + - 5 + + 90
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-473
SELECT MIN( ALL 19 ), - 78 AS col0
----
19
-78

skipif mysql # not compatible
query II rowsort label-473
SELECT MIN ( ALL 19 ), - 78 AS col0
----
19
-78

query III rowsort
SELECT DISTINCT 18 - + 21 AS col1, 36, - 57 AS col1
----
-3
36
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT - MAX( ALL 8 ) + + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-475
SELECT - MAX ( ALL 8 ) + + COUNT ( * )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-476
SELECT DISTINCT - 16 / - ( - + ( + ( 71 ) ) ) / - - 57 + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT - 16 / - ( - + ( + ( 71 ) ) ) / - - 57 + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 24 * - - 63 * + 70 + - - 88 AS col2
----
105928

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT ALL + + COALESCE ( - 60, - 45 - 11 * 4 + 17 - + COUNT( * ) * 70 ) * NULLIF ( 28, 62 ) AS col1
----
-1680

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL + + COALESCE ( - 60, - 45 - 11 * 4 + 17 - + COUNT ( * ) * 70 ) * NULLIF ( 28, 62 ) AS col1
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT DISTINCT - 25 * - - COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT - 25 * - - COUNT ( * ) AS col1
----
-25

query I rowsort
SELECT DISTINCT + 67 * - 14 + + 84
----
-854

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-481
SELECT ALL - + CAST( NULL AS DECIMAL ) * - 3 AS col2, 57
----
NULL
57

skipif mysql # not compatible
query II rowsort label-481
SELECT ALL - + CAST ( NULL AS REAL ) * - 3 AS col2, 57
----
NULL
57

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

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

query II rowsort
SELECT - 39 * + 58 * - - 65 AS col1, - 35
----
-147030
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-484
SELECT ALL - NULLIF ( + MIN( DISTINCT COALESCE ( CAST( NULL AS SIGNED ), + ( - 99 ) ) ), + + 55 ) * - 1 * - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL - NULLIF ( + MIN ( DISTINCT COALESCE ( CAST ( NULL AS INTEGER ), + ( - 99 ) ) ), + + 55 ) * - 1 * - COUNT ( * )
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-485
SELECT DISTINCT + COALESCE ( + 61, + + 68, + 28 * + 38 * - - NULLIF ( + - 45, 8 / + + 37 + + CAST( + COUNT( * ) AS DECIMAL ) + - 16 ) )
----
61

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT + COALESCE ( + 61, + + 68, + 28 * + 38 * - - NULLIF ( + - 45, 8 / + + 37 + + CAST ( + COUNT ( * ) AS REAL ) + - 16 ) )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-486
SELECT CAST( - - 32 AS SIGNED ) DIV - - MIN( ALL - 76 ) * ( + 20 ) + - 0
----
0

skipif mysql # not compatible
query I rowsort label-486
SELECT CAST ( - - 32 AS INTEGER ) / - - MIN ( ALL - 76 ) * ( + 20 ) + - 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-487
SELECT ALL 31 DIV ( - 53 ) + 59 + 21 * 34, + 64 + NULLIF ( + + 56, 49 + CASE - 36 WHEN - 74 + - 71 THEN - COUNT( * ) ELSE + 23 + + 34 + - - 13 END ) AS col0
----
773
120

skipif mysql # not compatible
query II rowsort label-487
SELECT ALL 31 / ( - 53 ) + 59 + 21 * 34, + 64 + NULLIF ( + + 56, 49 + CASE - 36 WHEN - 74 + - 71 THEN - COUNT ( * ) ELSE + 23 + + 34 + - - 13 END ) AS col0
----
773
120

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-489
SELECT - CASE CAST( + 20 AS SIGNED ) WHEN + 50 + 23 THEN - 63 END + - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT - CASE CAST ( + 20 AS INTEGER ) WHEN + 50 + 23 THEN - 63 END + - - 68
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-490
SELECT + COUNT( * ) AS col2, MAX( - 7 ) + - - 3 * - 87 * + + 78 AS col0
----
1
-20365

skipif mysql # not compatible
query II rowsort label-490
SELECT + COUNT ( * ) AS col2, MAX ( - 7 ) + - - 3 * - 87 * + + 78 AS col0
----
1
-20365

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

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

query II rowsort
SELECT DISTINCT + 29, 15 - - 76 AS col0
----
29
91

query I rowsort
SELECT + 36 + 81
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-494
SELECT DISTINCT - 72 DIV 80 * 11 * + + 79 + - - MAX( ALL + 86 ) * - 51 * - + COALESCE ( + - COALESCE ( + 18, + 93 + + - MIN( 91 ) DIV + - 79 ), 20 * - - 8, - + 10 + - + COUNT( * ) ) DIV + + 18 + - 23 AS col0
----
-4409

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT - 72 / 80 * 11 * + + 79 + - - MAX ( ALL + 86 ) * - 51 * - + COALESCE ( + - COALESCE ( + 18, + 93 + + - MIN ( 91 ) / + - 79 ), 20 * - - 8, - + 10 + - + COUNT ( * ) ) / + + 18 + - 23 AS col0
----
-4409

query II rowsort
SELECT - 47 AS col1, 51 AS col1
----
-47
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-496
SELECT COALESCE ( 21, - 82 * - - 26 + - 62 + - - 35 * COUNT( + - 28 ) * - + ( ( - 61 ) ), + 85 * + 99 * + 10 + + ( - - 3 ) ) DIV 65 * - 7
----
0

skipif mysql # not compatible
query I rowsort label-496
SELECT COALESCE ( 21, - 82 * - - 26 + - 62 + - - 35 * COUNT ( + - 28 ) * - + ( ( - 61 ) ), + 85 * + 99 * + 10 + + ( - - 3 ) ) / 65 * - 7
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-497
SELECT ALL + 39 DIV - + COALESCE ( - 56, + 71 ) + + 38
----
38

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL + 39 / - + COALESCE ( - 56, + 71 ) + + 38
----
38

query I rowsort
SELECT ALL 54 - + - 45 + 29 * + 53
----
1636

query I rowsort
SELECT - + NULLIF ( - 24, - AVG ( 20 ) )
----
24

query II rowsort
SELECT ALL 67 * + NULLIF ( + 97, + 34 + - 53 + 80 ) * + 5 + 88, 84 AS col0
----
32583
84

query II rowsort
SELECT - 32, + 36 * + 94 AS col2
----
-32
3384

query I rowsort
SELECT - 55 * 47 + + + 67
----
-2518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-503
SELECT ALL 71, + 33 * - COUNT( * ) * ( + + 61 ) + - CAST( NULL AS SIGNED ) + - + 78 / COUNT( * ) * - + 77 * + 65 AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-503
SELECT ALL 71, + 33 * - COUNT ( * ) * ( + + 61 ) + - CAST ( NULL AS INTEGER ) + - + 78 / COUNT ( * ) * - + 77 * + 65 AS col1
----
71
NULL

query II rowsort
SELECT 41 AS col2, - 23
----
41
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT COUNT( * ) - + 73
----
-72

skipif mysql # not compatible
query I rowsort label-506
SELECT COUNT ( * ) - + 73
----
-72

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

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

query I rowsort
SELECT ALL + 38 + + 84
----
122

query I rowsort
SELECT DISTINCT 23 + 75 + - 33
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-510
SELECT ALL + 47 + COUNT( ALL + CAST( - NULLIF ( + 96, + + 65 ) AS SIGNED ) ) - - + ( + ( + - 33 ) ) * 93
----
-3021

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + 47 + COUNT ( ALL + CAST ( - NULLIF ( + 96, + + 65 ) AS INTEGER ) ) - - + ( + ( + - 33 ) ) * 93
----
-3021

query I rowsort
SELECT ALL + 20 + 67 AS col1
----
87

query I rowsort
SELECT 75 * - 5
----
-375

query I rowsort
SELECT 84 * - 6
----
-504

query I rowsort
SELECT DISTINCT - 30 * 72 * + 32
----
-69120

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT ALL - 21 + - 35 - + COUNT( * ) * - COUNT( 84 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL - 21 + - 35 - + COUNT ( * ) * - COUNT ( 84 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT 65 + 68 + + - SUM( DISTINCT 96 ) + + - 83 * + 27 * + MIN( DISTINCT - 90 )
----
201727

skipif mysql # not compatible
query I rowsort label-516
SELECT 65 + 68 + + - SUM ( DISTINCT 96 ) + + - 83 * + 27 * + MIN ( DISTINCT - 90 )
----
201727

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-517
SELECT 0 * - - COALESCE ( ( + 8 ), - 82 * + - COUNT( * ) DIV + 29 + - + 25, + COUNT( * ) DIV COUNT( * ) ), 31 col0
----
0
31

skipif mysql # not compatible
query II rowsort label-517
SELECT 0 * - - COALESCE ( ( + 8 ), - 82 * + - COUNT ( * ) / + 29 + - + 25, + COUNT ( * ) / COUNT ( * ) ), 31 col0
----
0
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT - CASE + 72 WHEN - - COUNT( * ) THEN - - 7 + + COUNT( * ) + + 80 END / - 26 / - 4 - + 88 * AVG ( - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT - CASE + 72 WHEN - - COUNT ( * ) THEN - - 7 + + COUNT ( * ) + + 80 END / - 26 / - 4 - + 88 * AVG ( - 3 )
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 86, 72 ) AS col1
----
86

query I rowsort
SELECT ALL 72 * - + 40
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT + ( - CASE AVG ( ALL 13 ) WHEN - 56 THEN NULL ELSE 70 + 80 + + 37 END ) * - COUNT( * ) AS col2
----
187

skipif mysql # not compatible
query I rowsort label-522
SELECT + ( - CASE AVG ( ALL 13 ) WHEN - 56 THEN NULL ELSE 70 + 80 + + 37 END ) * - COUNT ( * ) AS col2
----
187

query I rowsort
SELECT ALL + + 14 * - 29 AS col1
----
-406

query I rowsort
SELECT - 85 - + 14 AS col2
----
-99

query I rowsort
SELECT DISTINCT + - 64 * + 39
----
-2496

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT ALL + + COUNT( * ) * - 43 * + 85
----
-3655

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL + + COUNT ( * ) * - 43 * + 85
----
-3655

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT - 12 * - SUM( DISTINCT 22 ) AS col2
----
264

skipif mysql # not compatible
query I rowsort label-528
SELECT - 12 * - SUM ( DISTINCT 22 ) AS col2
----
264

query I rowsort
SELECT 45 - 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT DISTINCT + COALESCE ( 92, - COUNT( * ) - 32 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT + COALESCE ( 92, - COUNT ( * ) - 32 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT DISTINCT - - 72 * ( - 22 ) * + - COUNT( * ) AS col1
----
1584

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT - - 72 * ( - 22 ) * + - COUNT ( * ) AS col1
----
1584

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-532
SELECT ALL - CAST( NULL AS SIGNED ) + - COALESCE ( + AVG ( + 25 ), - 5 * 96 + + - 24 ) + 39 - - 99 * - 27 + + - 7 + 6 AS col0, 7 col1
----
NULL
7

skipif mysql # not compatible
query II rowsort label-532
SELECT ALL - CAST ( NULL AS INTEGER ) + - COALESCE ( + AVG ( + 25 ), - 5 * 96 + + - 24 ) + 39 - - 99 * - 27 + + - 7 + 6 AS col0, 7 col1
----
NULL
7

query I rowsort
SELECT 38 * 68 AS col2
----
2584

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL - MAX( DISTINCT 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL - MAX ( DISTINCT 63 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT + MIN( DISTINCT 58 ) * + - 25
----
-1450

skipif mysql # not compatible
query I rowsort label-535
SELECT + MIN ( DISTINCT 58 ) * + - 25
----
-1450

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT + 1 + MIN( + 16 ) + 58 * - 63 + 92 AS col1
----
-3545

skipif mysql # not compatible
query I rowsort label-537
SELECT + 1 + MIN ( + 16 ) + 58 * - 63 + 92 AS col1
----
-3545

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-538
SELECT + 75 DIV + - CAST( 71 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-538
SELECT + 75 / + - CAST ( 71 AS INTEGER )
----
-1

query I rowsort
SELECT 17 + - 44
----
-27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-541
SELECT 7 - 2 DIV + 73 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-541
SELECT 7 - 2 / + 73 AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-542
SELECT DISTINCT - 23 DIV + 74 * - 96 * - - 85 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-542
SELECT DISTINCT - 23 / + 74 * - 96 * - - 85 * + + COUNT ( * )
----
0

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

query I rowsort
SELECT ALL - + 55 + - 95 + - 33 AS col2
----
-183

query I rowsort
SELECT ALL + 31 + 67 AS col1
----
98

query I rowsort
SELECT ALL 39 * + 47
----
1833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-547
SELECT 75 + + - CAST( - 66 AS SIGNED )
----
141

skipif mysql # not compatible
query I rowsort label-547
SELECT 75 + + - CAST ( - 66 AS INTEGER )
----
141

query I rowsort
SELECT ALL 15 + - ( - ( 56 ) ) + NULLIF ( + - 98, - + 10 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT DISTINCT 74 * - + 72 * - COUNT( * ) * 87 * - 18
----
-8343648

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT 74 * - + 72 * - COUNT ( * ) * 87 * - 18
----
-8343648

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-550
SELECT CAST( + - 79 AS SIGNED ) + - CAST( NULL AS DECIMAL ) / + - 82 * + + 90 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT CAST ( + - 79 AS INTEGER ) + - CAST ( NULL AS REAL ) / + - 82 * + + 90 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-551
SELECT + COUNT( + ( - 24 ) ), 37 col2
----
1
37

skipif mysql # not compatible
query II rowsort label-551
SELECT + COUNT ( + ( - 24 ) ), 37 col2
----
1
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-552
SELECT SUM( + + 85 ) + - + 52 DIV - + 78 * - 2
----
85

skipif mysql # not compatible
query I rowsort label-552
SELECT SUM ( + + 85 ) + - + 52 / - + 78 * - 2
----
85

query I rowsort
SELECT DISTINCT 66 * - + ( - 69 ) - - 92
----
4646

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT DISTINCT - CASE - 61 WHEN + 74 THEN - 83 * + 87 / - 74 - 5 - 82 ELSE NULL END / + COUNT( * ) + + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT - CASE - 61 WHEN + 74 THEN - 83 * + 87 / - 74 - 5 - 82 ELSE NULL END / + COUNT ( * ) + + - 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-555
SELECT ALL 25 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL 25 / 68
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-556
SELECT + 37 + 80 * + - COUNT( * ) AS col2, 97 + - 29 AS col0
----
-43
68

skipif mysql # not compatible
query II rowsort label-556
SELECT + 37 + 80 * + - COUNT ( * ) AS col2, 97 + - 29 AS col0
----
-43
68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-558
SELECT - 89 DIV + NULLIF ( + - 14, 13 * + - 3 * + - 49 * 94 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-558
SELECT - 89 / + NULLIF ( + - 14, 13 * + - 3 * + - 49 * 94 ) col0
----
6

query I rowsort
SELECT ALL 95 * - - 62
----
5890

query I rowsort
SELECT + 1 + + - 56 + - + 3 + + 69
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT - NULLIF ( - + COUNT( * ), - 18 ) * - + 72
----
-72

skipif mysql # not compatible
query I rowsort label-561
SELECT - NULLIF ( - + COUNT ( * ), - 18 ) * - + 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT - - CASE - 96 WHEN - + 67 * 22 THEN NULL ELSE + + 32 END - + 2 * + 89 + - 92 + - - 26 + COUNT( * ) * - + 78
----
-290

skipif mysql # not compatible
query I rowsort label-562
SELECT - - CASE - 96 WHEN - + 67 * 22 THEN NULL ELSE + + 32 END - + 2 * + 89 + - 92 + - - 26 + COUNT ( * ) * - + 78
----
-290

query II rowsort
SELECT DISTINCT + 24, 7 * - 82 AS col2
----
24
-574

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-564
SELECT ALL + - 18 * + + CASE + - MIN( - 65 ) WHEN 9 THEN + 71 WHEN + 79 THEN NULL WHEN 37 / + 8 + 57 / - - 10 * + 32 THEN CAST( NULL AS DECIMAL ) - 22 ELSE NULL END + - NULLIF ( + COUNT( * ), + 64 / 62 / 89 / - AVG ( - COALESCE ( - 22, + 49 * - 95 ) ) * + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + - 18 * + + CASE + - MIN ( - 65 ) WHEN 9 THEN + 71 WHEN + 79 THEN NULL WHEN 37 / + 8 + 57 / - - 10 * + 32 THEN CAST ( NULL AS REAL ) - 22 ELSE NULL END + - NULLIF ( + COUNT ( * ), + 64 / 62 / 89 / - AVG ( - COALESCE ( - 22, + 49 * - 95 ) ) * + 56 )
----
NULL

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

query I rowsort
SELECT ALL - + 95 + - 71 AS col2
----
-166

query II rowsort
SELECT - 66, 55 AS col1
----
-66
55

query I rowsort
SELECT ALL + 96 + + 53 AS col2
----
149

query I rowsort
SELECT DISTINCT - 38 + + 88
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-570
SELECT DISTINCT - 73, + COUNT( * ) col1
----
-73
1

skipif mysql # not compatible
query II rowsort label-570
SELECT DISTINCT - 73, + COUNT ( * ) col1
----
-73
1

query I rowsort
SELECT ALL - - 94 + + - 58
----
36

query I rowsort
SELECT DISTINCT - 77 + 48
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT ALL + 55 + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + 55 + + COUNT ( * )
----
56

query I rowsort
SELECT - - 50 * 45 AS col1
----
2250

query II rowsort
SELECT 44 AS col0, + ( 54 )
----
44
54

query I rowsort
SELECT DISTINCT NULLIF ( 36, - 10 + 56 / - - 67 ) AS col1
----
36

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

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

query I rowsort
SELECT ALL - 20 - - 19 AS col0
----
-1

query I rowsort
SELECT - 97 - 31
----
-128

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

skipif mysql # not compatible
query I rowsort label-580
SELECT + COUNT ( * ) * - COUNT ( * ) / + 56
----
0

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

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

query I rowsort
SELECT - ( 54 ) - + 90 col2
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT + 56 DIV 21 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-583
SELECT + 56 / 21 AS col2
----
2

query I rowsort
SELECT ALL 61 * + 42 AS col2
----
2562

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT - MIN( DISTINCT - - 41 ) * + - SUM( DISTINCT + 83 )
----
3403

skipif mysql # not compatible
query I rowsort label-585
SELECT - MIN ( DISTINCT - - 41 ) * + - SUM ( DISTINCT + 83 )
----
3403

onlyif mysql # DIV for integer division: 
query I rowsort label-586
SELECT DISTINCT + 12 DIV + + 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-586
SELECT DISTINCT + 12 / + + 34 AS col1
----
0

query I rowsort
SELECT DISTINCT 79 * + 45 AS col1
----
3555

query I rowsort
SELECT DISTINCT ( NULLIF ( + 80, + 51 ) )
----
80

query I rowsort
SELECT ALL 55 * 78
----
4290

query II rowsort
SELECT ALL + 64, 12 * 64 AS col1
----
64
768

query I rowsort
SELECT ALL + NULLIF ( - 49, 48 + - 60 + - 96 ) AS col1
----
-49

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

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

query II rowsort
SELECT ( - 47 ) AS col0, + AVG ( + CASE + - 83 WHEN - 60 * - 25 / - - 58 * - - 14 THEN + 91 * + - 17 END )
----
-47
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-594
SELECT ALL 19 * + ( 63 ) * - CASE - 86 WHEN + COUNT( * ) - - 41 THEN - ( + 10 ) + + + 89 END / AVG ( - - 61 ) + - + 73 + - + COUNT( * ), MIN( 69 ) + 71 AS col0
----
NULL
140

skipif mysql # not compatible
query II rowsort label-594
SELECT ALL 19 * + ( 63 ) * - CASE - 86 WHEN + COUNT ( * ) - - 41 THEN - ( + 10 ) + + + 89 END / AVG ( - - 61 ) + - + 73 + - + COUNT ( * ), MIN ( 69 ) + 71 AS col0
----
NULL
140

onlyif mysql # aggregate syntax: 
query II rowsort label-595
SELECT ALL + 54 AS col2, - COUNT( ( 75 ) ) + 24 AS col1
----
54
23

skipif mysql # not compatible
query II rowsort label-595
SELECT ALL + 54 AS col2, - COUNT ( ( 75 ) ) + 24 AS col1
----
54
23

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT + COUNT( - 87 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-596
SELECT + COUNT ( - 87 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT + 60 + + 65 + 68 + - + 72 - + + MAX( DISTINCT + - 15 ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-597
SELECT + 60 + + 65 + 68 + - + 72 - + + MAX ( DISTINCT + - 15 ) AS col1
----
136

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

onlyif mysql # aggregate syntax: 
query III rowsort label-599
SELECT ALL + 70 AS col1, 82 + + - COUNT( * ) - - 80 AS col0, 95
----
70
161
95

skipif mysql # not compatible
query III rowsort label-599
SELECT ALL + 70 AS col1, 82 + + - COUNT ( * ) - - 80 AS col0, 95
----
70
161
95

onlyif mysql # DIV for integer division: 
query II rowsort label-600
SELECT + 77 * + 66 col1, 41 DIV 86 * + - 25 AS col0
----
5082
0

skipif mysql # not compatible
query II rowsort label-600
SELECT + 77 * + 66 col1, 41 / 86 * + - 25 AS col0
----
5082
0

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT COUNT( * ) * + - COUNT( * ) + - 98 + - 64 - CASE 21 WHEN + 84 THEN NULL ELSE - 71 END AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-601
SELECT COUNT ( * ) * + - COUNT ( * ) + - 98 + - 64 - CASE 21 WHEN + 84 THEN NULL ELSE - 71 END AS col0
----
-92

query II rowsort
SELECT + 66 col1, 91 AS col1
----
66
91

query I rowsort
SELECT + 3 * - 89
----
-267

query I rowsort
SELECT DISTINCT + + 9 * + 59 * + 94 + 0 + + 73 AS col0
----
49987

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-605
SELECT + + 22 + CASE - 11 WHEN + COUNT( ( 69 ) ) - + 69 - - - 62 + - MAX( - 21 ) THEN + 62 + + 96 WHEN - + MAX( ALL - 21 ) THEN - COALESCE ( - 78, + + 4 - - + 7 ) ELSE - ( - COUNT( * ) ) - - 50 + 38 END DIV - ( COUNT( * ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-605
SELECT + + 22 + CASE - 11 WHEN + COUNT ( ( 69 ) ) - + 69 - - - 62 + - MAX ( - 21 ) THEN + 62 + + 96 WHEN - + MAX ( ALL - 21 ) THEN - COALESCE ( - 78, + + 4 - - + 7 ) ELSE - ( - COUNT ( * ) ) - - 50 + 38 END / - ( COUNT ( * ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-606
SELECT 16 AS col0, COUNT( - ( 98 ) )
----
16
1

skipif mysql # not compatible
query II rowsort label-606
SELECT 16 AS col0, COUNT ( - ( 98 ) )
----
16
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-607
SELECT + 30 DIV - COUNT( ALL 72 )
----
-30

skipif mysql # not compatible
query I rowsort label-607
SELECT + 30 / - COUNT ( ALL 72 )
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-608
SELECT ALL - 56 * + 81 + 55 / 64 * 75 / - CAST( NULL AS DECIMAL ) * ( + - ( - 65 ) ) * - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL - 56 * + 81 + 55 / 64 * 75 / - CAST ( NULL AS REAL ) * ( + - ( - 65 ) ) * - 65 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-609
SELECT + 84 AS col1, 54 DIV - 71
----
84
0

skipif mysql # not compatible
query II rowsort label-609
SELECT + 84 AS col1, 54 / - 71
----
84
0

query I rowsort
SELECT DISTINCT + 9 * + 31 * - + 89 + + + 68 * - 39
----
-27483

query II rowsort
SELECT ALL + 57, - 93 AS col1
----
57
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT + - 45 DIV + 8 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-612
SELECT + - 45 / + 8 AS col0
----
-5

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

skipif mysql # not compatible
query I rowsort label-613
SELECT - - COUNT ( * ) / - - 88 - 77 AS col2
----
-77

query II rowsort
SELECT 72 AS col2, ( 14 ) AS col1
----
72
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-615
SELECT ALL + CAST( + CASE + 36 WHEN + 71 THEN + 78 ELSE 32 DIV ( 36 ) - 4 + + NULLIF ( - CASE + COUNT( * ) WHEN + - 55 + - - COALESCE ( + - CAST( + + MIN( DISTINCT - 56 ) AS SIGNED ), + 32, 47 * ( - ( + 77 ) ) ) THEN - 86 * + + 32 WHEN ( + + 46 ) THEN + 5 * 40 + + 77 - - CAST( NULL AS SIGNED ) END, + 80 DIV - 18 ) * 85 END AS SIGNED ) * + 76 AS col1
----
17777616

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL + CAST ( + CASE + 36 WHEN + 71 THEN + 78 ELSE 32 / ( 36 ) - 4 + + NULLIF ( - CASE + COUNT ( * ) WHEN + - 55 + - - COALESCE ( + - CAST ( + + MIN ( DISTINCT - 56 ) AS INTEGER ), + 32, 47 * ( - ( + 77 ) ) ) THEN - 86 * + + 32 WHEN ( + + 46 ) THEN + 5 * 40 + + 77 - - CAST ( NULL AS INTEGER ) END, + 80 / - 18 ) * 85 END AS INTEGER ) * + 76 AS col1
----
17777616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-616
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + 25 AS col0
----
NULL

query II rowsort
SELECT ALL 46 col2, + 61 * 30
----
46
1830

query I rowsort
SELECT - 33 - + 78 * + 48 * - - 8
----
-29985

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT + 86 * + + CASE - + 63 WHEN - COUNT( * ) * 21 + + 99 * - 43 THEN 39 * + COUNT( DISTINCT 95 ) + + - 13 + - 23 WHEN 17 * - + 94 * - + COUNT( * ) * - - COUNT( 77 ) THEN NULL WHEN + - 14 THEN NULL WHEN - MAX( ALL - 56 ) * - - 36 / - 29 + - 42 THEN NULL END * + CASE + 8 WHEN - 81 * + COUNT( ALL + 68 ) * 59 THEN + + 98 + ( + 59 ) END + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT + 86 * + + CASE - + 63 WHEN - COUNT ( * ) * 21 + + 99 * - 43 THEN 39 * + COUNT ( DISTINCT 95 ) + + - 13 + - 23 WHEN 17 * - + 94 * - + COUNT ( * ) * - - COUNT ( 77 ) THEN NULL WHEN + - 14 THEN NULL WHEN - MAX ( ALL - 56 ) * - - 36 / - 29 + - 42 THEN NULL END * + CASE + 8 WHEN - 81 * + COUNT ( ALL + 68 ) * 59 THEN + + 98 + ( + 59 ) END + 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-622
SELECT NULLIF ( + CAST( COUNT( * ) AS SIGNED ), 13 + - 24 + COUNT( * ) + - 27 * + 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-622
SELECT NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), 13 + - 24 + COUNT ( * ) + - 27 * + 31 ) AS col0
----
1

query I rowsort
SELECT - 74 + - 55 + + 62 * - + 5 AS col2
----
-439

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT - 80 - - ( + COUNT( * ) ) * - - 55 * + 87 * COUNT( * )
----
4705

skipif mysql # not compatible
query I rowsort label-624
SELECT - 80 - - ( + COUNT ( * ) ) * - - 55 * + 87 * COUNT ( * )
----
4705

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT ALL - COUNT( * ) * + 66 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL - COUNT ( * ) * + 66 AS col2
----
-66

query I rowsort
SELECT ALL ( + - 32 ) AS col0
----
-32

query I rowsort
SELECT DISTINCT - 98 * - 47 AS col0
----
4606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-628
SELECT - COUNT( * ) + + ( NULLIF ( + + CAST( NULL AS SIGNED ), - ( 26 ) / + 85 ) ) * - 6, CAST( COUNT( * ) AS SIGNED ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-628
SELECT - COUNT ( * ) + + ( NULLIF ( + + CAST ( NULL AS INTEGER ), - ( 26 ) / + 85 ) ) * - 6, CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-629
SELECT ALL - 89 * + 37 AS col1, + COUNT( * ) - 35
----
-3293
-34

skipif mysql # not compatible
query II rowsort label-629
SELECT ALL - 89 * + 37 AS col1, + COUNT ( * ) - 35
----
-3293
-34

query I rowsort
SELECT ALL - 17 * - 97 AS col2
----
1649

query II rowsort
SELECT 0 + 96 AS col2, 49 AS col2
----
96
49

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

skipif mysql # not compatible
query I rowsort label-632
SELECT DISTINCT + COUNT ( 41 ) * - - 5 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT 9 + 94 + + 14 * COUNT( * ) + - + 59 - - 37 * + 15 + + 63
----
676

skipif mysql # not compatible
query I rowsort label-633
SELECT 9 + 94 + + 14 * COUNT ( * ) + - + 59 - - 37 * + 15 + + 63
----
676

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT 80 DIV - 97 * - - 59
----
0

skipif mysql # not compatible
query I rowsort label-634
SELECT 80 / - 97 * - - 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT 19 + COUNT( * ) + + + ( - 16 ) * - - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-635
SELECT 19 + COUNT ( * ) + + + ( - 16 ) * - - COUNT ( * )
----
4

query I rowsort
SELECT 25 * + + 48 * + 19 AS col2
----
22800

query I rowsort
SELECT ALL + CASE + - 35 WHEN - 0 THEN 41 ELSE NULL END / + - 89
----
NULL

query I rowsort
SELECT DISTINCT ( - 18 ) + - 0 + 43 col1
----
25

query I rowsort
SELECT DISTINCT 65 + - + 49
----
16

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

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL ( + 91 ) + - - CAST ( - - 11 AS INTEGER )
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-641
SELECT DISTINCT - CASE + CASE - 78 WHEN 96 THEN - 73 * + + 41 ELSE + ( - 48 ) * COUNT( * ) END WHEN + ( CAST( - + 25 AS SIGNED ) ) THEN NULL ELSE + + 30 END AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT - CASE + CASE - 78 WHEN 96 THEN - 73 * + + 41 ELSE + ( - 48 ) * COUNT ( * ) END WHEN + ( CAST ( - + 25 AS INTEGER ) ) THEN NULL ELSE + + 30 END AS col1
----
-30

query I rowsort
SELECT 44 + + 99
----
143

query I rowsort
SELECT DISTINCT - ( 37 ) + 1 col1
----
-36

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

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

query I rowsort
SELECT 23 + 40 * - + 10 AS col1
----
-377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-646
SELECT - ( - ( + 77 ) ) * + 58 * - 41 - - 13 + 59 / - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-646
SELECT - ( - ( + 77 ) ) * + 58 * - 41 - - 13 + 59 / - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT + CASE - COUNT( * ) WHEN + 3 * COALESCE ( - + 60, - 68, - + 47 ) * SUM( - 49 ) + - 7 THEN - + 47 WHEN - COUNT( * ) THEN + 77 * - + SUM( DISTINCT 91 ) ELSE + - 53 - 72 END + + 45 - + 87 AS col0
----
-7049

skipif mysql # not compatible
query I rowsort label-647
SELECT + CASE - COUNT ( * ) WHEN + 3 * COALESCE ( - + 60, - 68, - + 47 ) * SUM ( - 49 ) + - 7 THEN - + 47 WHEN - COUNT ( * ) THEN + 77 * - + SUM ( DISTINCT 91 ) ELSE + - 53 - 72 END + + 45 - + 87 AS col0
----
-7049

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

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

query II rowsort
SELECT ALL 34 - 37 AS col2, 75
----
-3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT DISTINCT - SUM( ALL 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT - SUM ( ALL 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT 8 * - 68 + MAX( - 83 ) + + ( 11 )
----
-616

skipif mysql # not compatible
query I rowsort label-651
SELECT 8 * - 68 + MAX ( - 83 ) + + ( 11 )
----
-616

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-652
SELECT - 31 + 27, ( - - 78 ) * + - 43 * + 71 + + 73 + + 68 * - + 37 + CAST( NULL AS DECIMAL ) AS col1
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-652
SELECT - 31 + 27, ( - - 78 ) * + - 43 * + 71 + + 73 + + 68 * - + 37 + CAST ( NULL AS REAL ) AS col1
----
-4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ALL + 27 - + 5 - + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL + 27 - + 5 - + COUNT ( * )
----
21

query I rowsort
SELECT + 70 * 85 * + + ( - - 90 )
----
535500

onlyif mysql # aggregate syntax: 
query II rowsort label-655
SELECT + 44 + + 8 col1, COUNT( * ) * 24 AS col2
----
52
24

skipif mysql # not compatible
query II rowsort label-655
SELECT + 44 + + 8 col1, COUNT ( * ) * 24 AS col2
----
52
24

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT COUNT( + ( 22 ) ) * + 98 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-656
SELECT COUNT ( + ( 22 ) ) * + 98 AS col2
----
98

query I rowsort
SELECT - CASE WHEN NOT NULL <= 84 THEN + 19 + + 50 ELSE - 91 END * + - 69 + 86 AS col2
----
-6193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-658
SELECT COUNT( * ) * + CASE + - 62 WHEN 59 * + + 16 THEN - NULLIF ( + 39, + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-658
SELECT COUNT ( * ) * + CASE + - 62 WHEN 59 * + + 16 THEN - NULLIF ( + 39, + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) END AS col2
----
NULL

query I rowsort
SELECT + CASE + - 28 WHEN 83 THEN NULL WHEN + 63 THEN + 16 END
----
NULL

query II rowsort
SELECT 0 + + 43 + - 57 + 42 AS col1, 94
----
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT ALL COUNT( + 31 ) * 93 * - 60
----
-5580

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL COUNT ( + 31 ) * 93 * - 60
----
-5580

query I rowsort
SELECT DISTINCT 15 * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-663
SELECT CAST( + 19 AS SIGNED ) * + NULLIF ( + 72, + COUNT( * ) + CAST( NULL AS SIGNED ) ), - 8 DIV - 91 + + 19 - + MAX( 92 ) AS col1
----
1368
-73

skipif mysql # not compatible
query II rowsort label-663
SELECT CAST ( + 19 AS INTEGER ) * + NULLIF ( + 72, + COUNT ( * ) + CAST ( NULL AS INTEGER ) ), - 8 / - 91 + + 19 - + MAX ( 92 ) AS col1
----
1368
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT ALL 92, - SUM( + 29 ) AS col0
----
92
-29

skipif mysql # not compatible
query II rowsort label-664
SELECT ALL 92, - SUM ( + 29 ) AS col0
----
92
-29

query II rowsort
SELECT DISTINCT 96 AS col2, 14
----
96
14

query II rowsort
SELECT ALL 47 AS col2, 1
----
47
1

query I rowsort
SELECT 19 * - - 50 * 48 AS col0
----
45600

onlyif mysql # aggregate syntax: 
query II rowsort label-668
SELECT ALL 12 AS col0, - 52 + - 23 + - MIN( ALL + 10 )
----
12
-85

skipif mysql # not compatible
query II rowsort label-668
SELECT ALL 12 AS col0, - 52 + - 23 + - MIN ( ALL + 10 )
----
12
-85

query I rowsort
SELECT ALL + 68 + 16 * ( - ( + - 52 ) )
----
900

query I rowsort
SELECT 9 * + 44 * - ( + 24 ) * 60
----
-570240

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

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL COUNT ( * ) + 74 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT DISTINCT + ( + - COUNT( * ) ) + + 87 + 85 AS col0
----
171

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT + ( + - COUNT ( * ) ) + + 87 + 85 AS col0
----
171

query I rowsort
SELECT ALL - 95 + + 78 + - + 41 + + 4
----
-54

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

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL + ( - - COUNT ( * ) ) + 18 AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-675
SELECT - 40 DIV 40 * 80 - - - 16
----
-96

skipif mysql # not compatible
query I rowsort label-675
SELECT - 40 / 40 * 80 - - - 16
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT + 85 DIV + 34 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-676
SELECT + 85 / + 34 AS col1
----
2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-678
SELECT ALL - + NULLIF ( 39, + - CASE - NULLIF ( + 5, - 75 ) WHEN - + 17 + + + ( 94 ) THEN CASE + CASE + - 63 WHEN - - ( + COUNT( * ) ) + - ( 63 ) THEN NULL WHEN - - 96 THEN + ( - 1 ) + - 55 ELSE - CAST( NULL AS SIGNED ) END WHEN - + 68 * 82 / - 28 THEN + 53 - + 52 END WHEN 40 + + COUNT( * ) THEN + - SUM( - 92 ) + + 35 * COUNT( * ) WHEN + 74 * 84 THEN NULL END * + 55 ) + + 12 * 48
----
537

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL - + NULLIF ( 39, + - CASE - NULLIF ( + 5, - 75 ) WHEN - + 17 + + + ( 94 ) THEN CASE + CASE + - 63 WHEN - - ( + COUNT ( * ) ) + - ( 63 ) THEN NULL WHEN - - 96 THEN + ( - 1 ) + - 55 ELSE - CAST ( NULL AS INTEGER ) END WHEN - + 68 * 82 / - 28 THEN + 53 - + 52 END WHEN 40 + + COUNT ( * ) THEN + - SUM ( - 92 ) + + 35 * COUNT ( * ) WHEN + 74 * 84 THEN NULL END * + 55 ) + + 12 * 48
----
537

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT + 3 DIV + COALESCE ( 32, + 13, - 10 * - 67 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-679
SELECT + 3 / + COALESCE ( 32, + 13, - 10 * - 67 ) AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT + COUNT( * ) * - 20 + + SUM( ALL 71 ) - 18 + COUNT( * ) * 67 col1
----
100

skipif mysql # not compatible
query I rowsort label-681
SELECT + COUNT ( * ) * - 20 + + SUM ( ALL 71 ) - 18 + COUNT ( * ) * 67 col1
----
100

query II rowsort
SELECT + + 92 col2, 49 - + 79 * + 98 col0
----
92
-7693

query I rowsort
SELECT 7 + + 48 + 95
----
150

query I rowsort
SELECT DISTINCT - - 75 - - 49 col1
----
124

query I rowsort
SELECT DISTINCT - + 44 AS col0
----
-44

query I rowsort
SELECT ALL 23 - - 38 AS col2
----
61

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

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

query II rowsort
SELECT DISTINCT - 89 AS col2, + 7 + ( 6 ) AS col1
----
-89
13

query II rowsort
SELECT DISTINCT - 35 AS col1, 53 AS col0
----
-35
53

query I rowsort
SELECT + 59 * - 84 AS col2
----
-4956

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT DISTINCT 7 * + COUNT( * ) * + 15 + + 1 + - 20 * - 61 AS col0
----
1326

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT 7 * + COUNT ( * ) * + 15 + + 1 + - 20 * - 61 AS col0
----
1326

query I rowsort
SELECT ( + 28 ) * - 10 AS col0
----
-280

query I rowsort
SELECT DISTINCT + 16 * - 92
----
-1472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-694
SELECT ALL CASE - 87 WHEN 33 * - + 95 / CAST( + - MAX( - + ( - 7 ) ) AS SIGNED ) * 41 + - + 83 THEN - 53 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL CASE - 87 WHEN 33 * - + 95 / CAST ( + - MAX ( - + ( - 7 ) ) AS INTEGER ) * 41 + - + 83 THEN - 53 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 20 - + 47 AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT + 97 + - 70 * 23 DIV 96 * 84 * + 42 + - - 87 AS col2
----
-56264

skipif mysql # not compatible
query I rowsort label-696
SELECT + 97 + - 70 * 23 / 96 * 84 * + 42 + - - 87 AS col2
----
-56264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-697
SELECT DISTINCT CASE + + ( 25 ) WHEN 58 * + ( + 52 ) * + 50 THEN NULL ELSE COUNT( * ) END DIV + + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT CASE + + ( 25 ) WHEN 58 * + ( + 52 ) * + 50 THEN NULL ELSE COUNT ( * ) END / + + 83 AS col2
----
0

query I rowsort
SELECT + 85 + + 78 + - 9 + - + 94 * 67 AS col2
----
-6144

query I rowsort
SELECT DISTINCT 96 * - 30
----
-2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-700
SELECT + 67 - - COALESCE ( + + 98, CAST( - 37 AS SIGNED ) * + + COUNT( * ) * 77 * + 27, - 93 )
----
165

skipif mysql # not compatible
query I rowsort label-700
SELECT + 67 - - COALESCE ( + + 98, CAST ( - 37 AS INTEGER ) * + + COUNT ( * ) * 77 * + 27, - 93 )
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT ALL 49 + - COUNT( + 31 ) col2
----
48

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL 49 + - COUNT ( + 31 ) col2
----
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT ALL ( + - 9 ) + 86 * - 84 * + 77 + + + MAX( DISTINCT 69 ) AS col2
----
-556188

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL ( + - 9 ) + 86 * - 84 * + 77 + + + MAX ( DISTINCT 69 ) AS col2
----
-556188

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-705
SELECT DISTINCT CASE - 77 WHEN + 72 THEN + - ( CAST( + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) ) WHEN 54 / - 21 THEN NULL ELSE NULL END + - 24 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT CASE - 77 WHEN + 72 THEN + - ( CAST ( + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) ) WHEN 54 / - 21 THEN NULL ELSE NULL END + - 24 col2
----
NULL

query I rowsort
SELECT DISTINCT 30 + ( - 89 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-707
SELECT ALL ( - 76 ) + - - NULLIF ( + - COUNT( * ), + CASE + - 42 WHEN - 32 THEN NULL WHEN - - 62 * + 97 + + 92 THEN COUNT( * ) END + + - 60 ) AS col2, + 84 DIV - 33 AS col1
----
-77
-2

skipif mysql # not compatible
query II rowsort label-707
SELECT ALL ( - 76 ) + - - NULLIF ( + - COUNT ( * ), + CASE + - 42 WHEN - 32 THEN NULL WHEN - - 62 * + 97 + + 92 THEN COUNT ( * ) END + + - 60 ) AS col2, + 84 / - 33 AS col1
----
-77
-2

query I rowsort
SELECT NULLIF ( - 76, + 54 + + 64 * 56 ) AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-709
SELECT + 36 + - 72 + + 95 * + - ( - - CASE 98 WHEN 95 * - CAST( + 81 AS SIGNED ) THEN - - MIN( 2 ) ELSE + ( + NULLIF ( 51, 99 * - MAX( 70 ) DIV + CAST( + 67 AS SIGNED ) + - 11 ) ) DIV - + 69 * - - COUNT( * ) END ) AS col1, - MAX( + + ( 64 ) ) AS col0
----
-36
-64

skipif mysql # not compatible
query II rowsort label-709
SELECT + 36 + - 72 + + 95 * + - ( - - CASE 98 WHEN 95 * - CAST ( + 81 AS INTEGER ) THEN - - MIN ( 2 ) ELSE + ( + NULLIF ( 51, 99 * - MAX ( 70 ) / + CAST ( + 67 AS INTEGER ) + - 11 ) ) / - + 69 * - - COUNT ( * ) END ) AS col1, - MAX ( + + ( 64 ) ) AS col0
----
-36
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT + NULLIF ( COUNT( * ), - ( - + 19 ) ) * + + 26
----
26

skipif mysql # not compatible
query I rowsort label-710
SELECT + NULLIF ( COUNT ( * ), - ( - + 19 ) ) * + + 26
----
26

query I rowsort
SELECT DISTINCT + 8 * + 83 * + 25 + + ( + 77 ) - 46 col2
----
16631

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL + + COALESCE ( + COUNT( * ), - - 15 * - 15 + + 5, 3 )
----
1

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL + + COALESCE ( + COUNT ( * ), - - 15 * - 15 + + 5, 3 )
----
1

query I rowsort
SELECT ALL - 77 * + 71
----
-5467

query I rowsort
SELECT - - 66 + 57 + 61
----
184

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-717
SELECT + - COUNT( * ) * + + 94 AS col0, 63 * + 78 * - COUNT( * ) + - CAST( NULL AS SIGNED )
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-717
SELECT + - COUNT ( * ) * + + 94 AS col0, 63 * + 78 * - COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
-94
NULL

query I rowsort
SELECT - 13 * 91 * + 71 AS col2
----
-83993

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

query I rowsort
SELECT - - 42 * - 88 * 87 + 98
----
-321454

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT - 40 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-721
SELECT - 40 / - 98 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-722
SELECT ALL - 67 DIV + 63
----
-1

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL - 67 / + 63
----
-1

query I rowsort
SELECT ALL - 71 * - + 43 + 98
----
3151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-724
SELECT - 21 + - MAX( ALL - - 87 ) - - 33 DIV 73 AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-724
SELECT - 21 + - MAX ( ALL - - 87 ) - - 33 / 73 AS col1
----
-108

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

skipif mysql # not compatible
query II rowsort label-725
SELECT COUNT ( * ) AS col1, 7 AS col1
----
1
7

query I rowsort
SELECT - ( - - 19 ) * + 92 * - 84 AS col2
----
146832

query I rowsort
SELECT - 97 + + 3 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT ALL 15 * 39 + + COUNT( * ) AS col0
----
586

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL 15 * 39 + + COUNT ( * ) AS col0
----
586

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT - CASE - 2 WHEN COUNT( * ) + - - COUNT( - 43 ) + + 14 THEN - 46 * + 67 WHEN - + 91 + - 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-729
SELECT - CASE - 2 WHEN COUNT ( * ) + - - COUNT ( - 43 ) + + 14 THEN - 46 * + 67 WHEN - + 91 + - 39 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 44 * - 0 + - NULLIF ( - + 76, + + 38 ) AS col1
----
76

query I rowsort
SELECT - ( - 86 ) * - 53 + - 34 + - - 3
----
-4589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT ALL CAST( - - 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL CAST ( - - 73 AS INTEGER )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT + 83 DIV - SUM( + - 25 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-733
SELECT + 83 / - SUM ( + - 25 ) AS col0
----
3

query I rowsort
SELECT ALL 89 - 0
----
89

query I rowsort
SELECT - 95 * - 30
----
2850

query I rowsort
SELECT + 1 * - 98 AS col2
----
-98

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

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

query I rowsort
SELECT - 71 - + 74
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-739
SELECT - CAST( 75 AS SIGNED ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-739
SELECT - CAST ( 75 AS INTEGER ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL 55 * - - CASE - + COUNT( * ) WHEN + - SUM( ALL - 88 ) / - 74 + + + 1 * + + 55 THEN - 66 WHEN + 3 + - 37 * + 33 * + - 84 THEN - 55 END + + 60 + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL 55 * - - CASE - + COUNT ( * ) WHEN + - SUM ( ALL - 88 ) / - 74 + + + 1 * + + 55 THEN - 66 WHEN + 3 + - 37 * + 33 * + - 84 THEN - 55 END + + 60 + 39
----
NULL

query I rowsort
SELECT + 25 - 86 AS col2
----
-61

query I rowsort
SELECT + - 61 * + 88 + + - 87 * + 3
----
-5629

onlyif mysql # aggregate syntax: 
query II rowsort label-743
SELECT + ( COUNT( * ) ) + - 99, - 85 * NULLIF ( + + 0, + 83 ) AS col0
----
-98
0

skipif mysql # not compatible
query II rowsort label-743
SELECT + ( COUNT ( * ) ) + - 99, - 85 * NULLIF ( + + 0, + 83 ) AS col0
----
-98
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT - CAST( - + 72 AS SIGNED ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-744
SELECT - CAST ( - + 72 AS INTEGER ) AS col0
----
72

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

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL ( COUNT ( DISTINCT 81 ) ) AS col0
----
1

query I rowsort
SELECT ALL - 23 * + 76
----
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT + - COUNT( * ) / - COUNT( * ) + + 48 + + + COUNT( * ) * + CASE COUNT( * ) WHEN 37 * - 67 THEN + 24 WHEN 22 * + COUNT( * ) * + 1 THEN + 54 END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT + - COUNT ( * ) / - COUNT ( * ) + + 48 + + + COUNT ( * ) * + CASE COUNT ( * ) WHEN 37 * - 67 THEN + 24 WHEN 22 * + COUNT ( * ) * + 1 THEN + 54 END * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( 91 ) AS col2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-749
SELECT + + 37 - + - 10 + CAST( + + 22 AS SIGNED ) + 26, + 66 AS col2
----
95
66

skipif mysql # not compatible
query II rowsort label-749
SELECT + + 37 - + - 10 + CAST ( + + 22 AS INTEGER ) + 26, + 66 AS col2
----
95
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT - 10 * - + COUNT( * ) * - - 48 + 39
----
519

skipif mysql # not compatible
query I rowsort label-751
SELECT - 10 * - + COUNT ( * ) * - - 48 + 39
----
519

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

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

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

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

query I rowsort
SELECT ALL - 16 * + + 47 AS col2
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT DISTINCT + COUNT( * ) + + - 6
----
-5

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT + COUNT ( * ) + + - 6
----
-5

query I rowsort
SELECT DISTINCT - 83 * 57 + - 34 + + CASE 63 WHEN - 46 + 44 THEN + + 68 + + 27 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-757
SELECT DISTINCT - 66 + - 95 DIV - ( - - COUNT( * ) ) col1
----
29

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT - 66 + - 95 / - ( - - COUNT ( * ) ) col1
----
29

query I rowsort
SELECT 3 + + 9
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT ALL 86 * - COUNT( * ) * - ( 17 ) * + 0 * + 41
----
0

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL 86 * - COUNT ( * ) * - ( 17 ) * + 0 * + 41
----
0

query II rowsort
SELECT DISTINCT - 51, + 98 AS col2
----
-51
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-761
SELECT CAST( + COUNT( ALL - 58 ) AS SIGNED ) + + COALESCE ( - 85, - 21, + SUM( ALL CASE 31 WHEN + CAST( - 75 AS SIGNED ) * + ( 43 ) + - 97 THEN + 75 * - + 84 + - 89 WHEN 4 + - - 57 THEN - 51 + - ( 44 ) * + - 29 ELSE NULL END ) + + 96 * + 85 + - + 34 + - + 43 + SUM( - 73 ) DIV + 93 ) + + 95 AS col2, + 47
----
11
47

skipif mysql # not compatible
query II rowsort label-761
SELECT CAST ( + COUNT ( ALL - 58 ) AS INTEGER ) + + COALESCE ( - 85, - 21, + SUM ( ALL CASE 31 WHEN + CAST ( - 75 AS INTEGER ) * + ( 43 ) + - 97 THEN + 75 * - + 84 + - 89 WHEN 4 + - - 57 THEN - 51 + - ( 44 ) * + - 29 ELSE NULL END ) + + 96 * + 85 + - + 34 + - + 43 + SUM ( - 73 ) / + 93 ) + + 95 AS col2, + 47
----
11
47

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT ALL - COUNT( * ) + - 51 + - COUNT( * ) + + - 56
----
-109

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL - COUNT ( * ) + - 51 + - COUNT ( * ) + + - 56
----
-109

query II rowsort
SELECT ( + 69 ) * + 36 + - 34 AS col1, 2
----
2450
2

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT 35 * + + COALESCE ( + + 26, - ( COALESCE ( + ( - 66 ), + 64, 67, SUM( 5 ) ) ) + 81, 44 ) AS col2
----
910

skipif mysql # not compatible
query I rowsort label-764
SELECT 35 * + + COALESCE ( + + 26, - ( COALESCE ( + ( - 66 ), + 64, 67, SUM ( 5 ) ) ) + 81, 44 ) AS col2
----
910

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

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL - SUM ( 6 )
----
-6

query II rowsort
SELECT DISTINCT - 41 AS col1, - 56 + 82 AS col0
----
-41
26

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL + COUNT( DISTINCT + - 21 ) + 72 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL + COUNT ( DISTINCT + - 21 ) + 72 AS col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-768
SELECT ALL - 9 DIV - + 49 * CASE 79 WHEN + 37 THEN NULL WHEN - 21 * CASE - - ( COUNT( * ) ) WHEN - AVG ( - 28 ) * + 53 * + + 31 THEN 9 END + - 64 + 9 DIV + - 23 + + 84 DIV 41 + + 31 * + - 80 + 31 * 40 THEN + 78 * - + 79 ELSE - 40 END DIV - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL - 9 / - + 49 * CASE 79 WHEN + 37 THEN NULL WHEN - 21 * CASE - - ( COUNT ( * ) ) WHEN - AVG ( - 28 ) * + 53 * + + 31 THEN 9 END + - 64 + 9 / + - 23 + + 84 / 41 + + 31 * + - 80 + 31 * 40 THEN + 78 * - + 79 ELSE - 40 END / - 62 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-769
SELECT DISTINCT + MIN( ALL NULLIF ( + 33, - CASE + + 40 WHEN + 12 THEN + NULLIF ( - 27, - 44 * + + 35 - CAST( + + 70 AS SIGNED ) ) END ) ) * 74 AS col1
----
2442

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT + MIN ( ALL NULLIF ( + 33, - CASE + + 40 WHEN + 12 THEN + NULLIF ( - 27, - 44 * + + 35 - CAST ( + + 70 AS INTEGER ) ) END ) ) * 74 AS col1
----
2442

query I rowsort
SELECT ALL - 36 * + 45 col1
----
-1620

query II rowsort
SELECT ALL - 64 - ( 38 ) + + - 54 AS col0, + 5 AS col2
----
-156
5

onlyif mysql # aggregate syntax: 
query II rowsort label-772
SELECT - COUNT( * ) * + 67 * + - 30 + 35, 67 AS col1
----
2045
67

skipif mysql # not compatible
query II rowsort label-772
SELECT - COUNT ( * ) * + 67 * + - 30 + 35, 67 AS col1
----
2045
67

query II rowsort
SELECT 9 AS col1, 90 + - 42 AS col2
----
9
48

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

skipif mysql # not compatible
query II rowsort label-774
SELECT - 65 AS col1, - COUNT ( * )
----
-65
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-775
SELECT ALL - ( + - 67 ) * - 88 * - 20 - - 97 + + 92 + + + 66 * - - 34 * - - 37 col0, ( + + COUNT( * ) )
----
201137
1

skipif mysql # not compatible
query II rowsort label-775
SELECT ALL - ( + - 67 ) * - 88 * - 20 - - 97 + + 92 + + + 66 * - - 34 * - - 37 col0, ( + + COUNT ( * ) )
----
201137
1

query I rowsort
SELECT 60 * + + 80
----
4800

query II rowsort
SELECT ALL 72 AS col1, - 37
----
72
-37

query I rowsort
SELECT 34 + + - 30 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-779
SELECT CASE - COALESCE ( + 2, - CAST( NULL AS SIGNED ) ) WHEN + + 11 * - + 93 * 31 THEN 1 + + 71 WHEN - 72 THEN NULL END - - CASE WHEN ( NULL ) IS NOT NULL THEN NULL WHEN - 33 BETWEEN ( NULL ) AND - 14 THEN + 27 END - + 30 / - COALESCE ( 26, - NULLIF ( - 59, - COUNT( * ) ) + + COUNT( * ) + + 41 * 89 + 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT CASE - COALESCE ( + 2, - CAST ( NULL AS INTEGER ) ) WHEN + + 11 * - + 93 * 31 THEN 1 + + 71 WHEN - 72 THEN NULL END - - CASE WHEN ( NULL ) IS NOT NULL THEN NULL WHEN - 33 BETWEEN ( NULL ) AND - 14 THEN + 27 END - + 30 / - COALESCE ( 26, - NULLIF ( - 59, - COUNT ( * ) ) + + COUNT ( * ) + + 41 * 89 + 74 )
----
NULL

query II rowsort
SELECT DISTINCT + 77 AS col2, 38
----
77
38

query I rowsort
SELECT 82 + + 41 * + - 0 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT - 72 + - MIN( ALL - 13 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-782
SELECT - 72 + - MIN ( ALL - 13 ) AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-783
SELECT DISTINCT 46 / - 30 * - 48 / + 34 + - + 45 + + - 9 * - ( - CAST( NULL AS SIGNED ) ) * + 15 / + 99 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT 46 / - 30 * - 48 / + 34 + - + 45 + + - 9 * - ( - CAST ( NULL AS INTEGER ) ) * + 15 / + 99 col0
----
NULL

query I rowsort
SELECT 74 + - 67 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT 92 + + 39 + + ( + COUNT( * ) ) * 60
----
191

skipif mysql # not compatible
query I rowsort label-785
SELECT 92 + + 39 + + ( + COUNT ( * ) ) * 60
----
191

query I rowsort
SELECT + NULLIF ( + 50, 71 )
----
50

query I rowsort
SELECT ALL - CASE + 15 WHEN - 52 THEN + - 46 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-788
SELECT + 10 AS col0, + CAST( NULL AS SIGNED ) * - 54
----
10
NULL

skipif mysql # not compatible
query II rowsort label-788
SELECT + 10 AS col0, + CAST ( NULL AS INTEGER ) * - 54
----
10
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-789
SELECT ALL 0 + - - 66 AS col0, - MAX( DISTINCT - 57 ) - - 95
----
66
152

skipif mysql # not compatible
query II rowsort label-789
SELECT ALL 0 + - - 66 AS col0, - MAX ( DISTINCT - 57 ) - - 95
----
66
152

query II rowsort
SELECT DISTINCT + 17 * - 89, 6 + + NULLIF ( - ( - 71 ), - + ( + + ( 29 ) ) * 0 ) + - 81 AS col2
----
-1513
-4

query I rowsort
SELECT ALL 14 + - + 72 AS col2
----
-58

query I rowsort
SELECT - 88 * - - 64 + + - 53 + - 24 + - - 76 AS col2
----
-5633

query II rowsort
SELECT ALL - 20 AS col0, 81 - 79
----
-20
2

query I rowsort
SELECT DISTINCT 62 + + + 57
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-795
SELECT 4 * + - CAST( + 72 AS SIGNED ) + - ( - - MAX( DISTINCT - ( + 22 ) ) ), + 84 * 51 AS col2
----
-266
4284

skipif mysql # not compatible
query II rowsort label-795
SELECT 4 * + - CAST ( + 72 AS INTEGER ) + - ( - - MAX ( DISTINCT - ( + 22 ) ) ), + 84 * 51 AS col2
----
-266
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ALL 80 + + COUNT( * ) * - COUNT( * ) + 54 * + 0
----
79

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL 80 + + COUNT ( * ) * - COUNT ( * ) + 54 * + 0
----
79

query I rowsort
SELECT 90 + - - 62
----
152

query I rowsort
SELECT DISTINCT 15 + + + 9 + + 5
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-799
SELECT DISTINCT ( + 60 ) + + COUNT( * ) * 32 DIV + - 89 - 25 * + COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT ( + 60 ) + + COUNT ( * ) * 32 / + - 89 - 25 * + COUNT ( * ) AS col1
----
35

query I rowsort
SELECT ALL 44 + 24 + + 30 AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-801
SELECT ALL + 68 - - + 80, 56 DIV - NULLIF ( + 64, - + COUNT( + 65 ) ) AS col1
----
148
0

skipif mysql # not compatible
query II rowsort label-801
SELECT ALL + 68 - - + 80, 56 / - NULLIF ( + 64, - + COUNT ( + 65 ) ) AS col1
----
148
0

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT - 43 * + COUNT( * ) + - 23 + - - 89
----
23

skipif mysql # not compatible
query I rowsort label-802
SELECT - 43 * + COUNT ( * ) + - 23 + - - 89
----
23

query II rowsort
SELECT 34 + ( + 53 ) AS col1, - 25 * + 61 AS col0
----
87
-1525

onlyif mysql # aggregate syntax: 
query II rowsort label-804
SELECT DISTINCT COUNT( * ) * 46, MIN( - COALESCE ( - 74, + - ( - 95 ), 8 ) ) + + 7 * + - 42 AS col0
----
46
-220

skipif mysql # not compatible
query II rowsort label-804
SELECT DISTINCT COUNT ( * ) * 46, MIN ( - COALESCE ( - 74, + - ( - 95 ), 8 ) ) + + 7 * + - 42 AS col0
----
46
-220

onlyif mysql # DIV for integer division: 
query I rowsort label-805
SELECT 50 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-805
SELECT 50 / 52
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-806
SELECT DISTINCT + 60 DIV - 17 AS col1, + 48 - - - 19 + 45 DIV + 71 * - 20 + + 84 * COALESCE ( + - 62, + 79 ) AS col2
----
-3
-5179

skipif mysql # not compatible
query II rowsort label-806
SELECT DISTINCT + 60 / - 17 AS col1, + 48 - - - 19 + 45 / + 71 * - 20 + + 84 * COALESCE ( + - 62, + 79 ) AS col2
----
-3
-5179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-807
SELECT DISTINCT + COUNT( * ) DIV COALESCE ( + 9, COUNT( * ), + 2 ) * 32
----
0

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT + COUNT ( * ) / COALESCE ( + 9, COUNT ( * ), + 2 ) * 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ALL + - 79 * + + 26 + + ( + COUNT( * ) )
----
-2053

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL + - 79 * + + 26 + + ( + COUNT ( * ) )
----
-2053

query I rowsort
SELECT DISTINCT - 42 * ( - 22 ) + - + 1 AS col2
----
923

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT + SUM( 19 ) + + + 17 col1
----
36

skipif mysql # not compatible
query I rowsort label-810
SELECT + SUM ( 19 ) + + + 17 col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT DISTINCT + - 37 * - 31 * - - ( + 95 ) - SUM( 1 )
----
108964

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT + - 37 * - 31 * - - ( + 95 ) - SUM ( 1 )
----
108964

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-812
SELECT ALL - 98 * 44 AS col0, COALESCE ( + 50, - 82 ) + - CAST( + 37 AS SIGNED )
----
-4312
13

skipif mysql # not compatible
query II rowsort label-812
SELECT ALL - 98 * 44 AS col0, COALESCE ( + 50, - 82 ) + - CAST ( + 37 AS INTEGER )
----
-4312
13

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT ALL + COUNT( * ) + COUNT( * ) + + + 81 * + 89 * 73 * + COUNT( * )
----
526259

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL + COUNT ( * ) + COUNT ( * ) + + + 81 * + 89 * 73 * + COUNT ( * )
----
526259

query I rowsort
SELECT 30 - - 16 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-815
SELECT CAST( - + 93 AS SIGNED ) - + 59 * - - COUNT( * ) * - COUNT( - - 9 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-815
SELECT CAST ( - + 93 AS INTEGER ) - + 59 * - - COUNT ( * ) * - COUNT ( - - 9 ) AS col1
----
-34

query I rowsort
SELECT + 36 + - NULLIF ( - 64, - - 51 )
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-817
SELECT ALL - 79 + - NULLIF ( + CASE - 82 WHEN - - COUNT( * ) * - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) THEN + 31 END, 76 + + CAST( NULL AS SIGNED ) ) * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL - 79 + - NULLIF ( + CASE - 82 WHEN - - COUNT ( * ) * - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN + 31 END, 76 + + CAST ( NULL AS INTEGER ) ) * 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT ALL 89 + + 14 + + + 54 DIV - 67 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL 89 + + 14 + + + 54 / - 67 AS col2
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT - + 77 * - 63 + + - 89 DIV COUNT( * ) - NULLIF ( - - COUNT( * ), + + 28 * 53 * - - 52 * + COUNT( 94 ) ) AS col0
----
4761

skipif mysql # not compatible
query I rowsort label-819
SELECT - + 77 * - 63 + + - 89 / COUNT ( * ) - NULLIF ( - - COUNT ( * ), + + 28 * 53 * - - 52 * + COUNT ( 94 ) ) AS col0
----
4761

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT ALL CASE 34 WHEN + 46 THEN NULL WHEN - + 18 THEN NULL WHEN 44 / - 67 THEN - 16 + - 49 + 40 + ( - 95 ) / + 79 * - + CASE + - ( - + 72 ) WHEN 7 + - - 7 - + + 51 THEN NULL WHEN + 64 THEN ( - ( + 66 ) ) END * + + 48 + ( 75 ) + + - 70 END * + 38 + 47 + 96 + + 62 / + NULLIF ( AVG ( + ( + 14 ) ), COUNT( * ) ) + - 57 + + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL CASE 34 WHEN + 46 THEN NULL WHEN - + 18 THEN NULL WHEN 44 / - 67 THEN - 16 + - 49 + 40 + ( - 95 ) / + 79 * - + CASE + - ( - + 72 ) WHEN 7 + - - 7 - + + 51 THEN NULL WHEN + 64 THEN ( - ( + 66 ) ) END * + + 48 + ( 75 ) + + - 70 END * + 38 + 47 + 96 + + 62 / + NULLIF ( AVG ( + ( + 14 ) ), COUNT ( * ) ) + - 57 + + 96 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-821
SELECT + - MAX ( + 64 )
----
-64

query I rowsort
SELECT ALL ( + + 95 ) * + - 11
----
-1045

query I rowsort
SELECT COALESCE ( 70, - 77 ) AS col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT ALL + 36 DIV - 26 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + 36 / - 26 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT ALL 8 * NULLIF ( - COUNT( * ), 42 ) - + COUNT( * ) * - - SUM( + + 76 ) + + + CASE 51 WHEN - 92 / + 26 * - 40 - COALESCE ( - 6, COUNT( 89 ) ) THEN - - 27 WHEN - - NULLIF ( - 8, + + 83 + + - COUNT( * ) ) + + COUNT( DISTINCT + 36 ) / - 73 * + - 24 + - ( 46 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL 8 * NULLIF ( - COUNT ( * ), 42 ) - + COUNT ( * ) * - - SUM ( + + 76 ) + + + CASE 51 WHEN - 92 / + 26 * - 40 - COALESCE ( - 6, COUNT ( 89 ) ) THEN - - 27 WHEN - - NULLIF ( - 8, + + 83 + + - COUNT ( * ) ) + + COUNT ( DISTINCT + 36 ) / - 73 * + - 24 + - ( 46 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + 32 * 71 * - 49 * 8 col0
----
-890624

query I rowsort
SELECT DISTINCT - 64 * + - 87 * - + 29 * + + 16 * - 71 AS col2
----
183432192

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

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

query II rowsort
SELECT + 67 + 50 * 61, - 38 AS col1
----
3117
-38

query I rowsort
SELECT - 78 + - 29 col0
----
-107

query I rowsort
SELECT - 96 + + + 55
----
-41

query II rowsort
SELECT ALL + 89 AS col0, + 50
----
89
50

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT + 72 + + ( - + COUNT( * ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-833
SELECT + 72 + + ( - + COUNT ( * ) ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-834
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-834
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT - COUNT( * ) * + + 4 + + 17 col1
----
13

skipif mysql # not compatible
query I rowsort label-835
SELECT - COUNT ( * ) * + + 4 + + 17 col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-836
SELECT + 25 + + ( + 40 ) - - CAST( NULL AS SIGNED ) + - 52 - + 63 + + NULLIF ( + 72, 84 ) - CAST( - 59 AS DECIMAL ) * - + 9 * AVG ( - - 18 ) * - ( - 71 ) AS col1, 31 DIV + 59 - + 2 + + 48 - - 33 * + SUM( ALL 53 ) * - 17 AS col1
----
NULL
-29687

skipif mysql # not compatible
query II rowsort label-836
SELECT + 25 + + ( + 40 ) - - CAST ( NULL AS INTEGER ) + - 52 - + 63 + + NULLIF ( + 72, 84 ) - CAST ( - 59 AS REAL ) * - + 9 * AVG ( - - 18 ) * - ( - 71 ) AS col1, 31 / + 59 - + 2 + + 48 - - 33 * + SUM ( ALL 53 ) * - 17 AS col1
----
NULL
-29687

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

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

query I rowsort
SELECT ALL + 74 * - 3
----
-222

query I rowsort
SELECT + NULLIF ( 37, 22 * 20 * - ( 88 ) ) - + - 61
----
98

onlyif mysql # aggregate syntax: 
query III rowsort label-840
SELECT ALL ( + - ( - COUNT( * ) ) ) * 53 + 20 + - COUNT( * ) AS col2, + MAX( DISTINCT - 2 ) - + - 81 - 21 * 72 AS col2, 57 AS col1
----
72
-1433
57

skipif mysql # not compatible
query III rowsort label-840
SELECT ALL ( + - ( - COUNT ( * ) ) ) * 53 + 20 + - COUNT ( * ) AS col2, + MAX ( DISTINCT - 2 ) - + - 81 - 21 * 72 AS col2, 57 AS col1
----
72
-1433
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT + - 55 * - - NULLIF ( + 73, - - COUNT( * ) ) * + ( - + COUNT( * ) )
----
4015

skipif mysql # not compatible
query I rowsort label-842
SELECT + - 55 * - - NULLIF ( + 73, - - COUNT ( * ) ) * + ( - + COUNT ( * ) )
----
4015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-843
SELECT + - 76 * + - 23 * + + MAX( + 50 ) + + + 35 - - CAST( NULL AS SIGNED ) - + - 48 - - - COALESCE ( - - COUNT( ALL + + 30 ), 94 ) AS col0, + 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-843
SELECT + - 76 * + - 23 * + + MAX ( + 50 ) + + + 35 - - CAST ( NULL AS INTEGER ) - + - 48 - - - COALESCE ( - - COUNT ( ALL + + 30 ), 94 ) AS col0, + 25
----
NULL
25

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT ALL - 44 * COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL - 44 * COUNT ( * ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-845
SELECT - + 75 + - 81 * + - 0 / + CASE - + 32 WHEN 58 * - 99 * + 34 / 79 + + 81 THEN - + 11 * - 65 + + - CAST( 45 AS SIGNED ) * - - 2 END * + COUNT( * ) + - - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-845
SELECT - + 75 + - 81 * + - 0 / + CASE - + 32 WHEN 58 * - 99 * + 34 / 79 + + 81 THEN - + 11 * - 65 + + - CAST ( 45 AS INTEGER ) * - - 2 END * + COUNT ( * ) + - - 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL COALESCE ( 73, - 45 + - COUNT( * ), + 79 ) + 38 + - + 61 * 98 AS col1
----
-5867

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL COALESCE ( 73, - 45 + - COUNT ( * ), + 79 ) + 38 + - + 61 * 98 AS col1
----
-5867

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

skipif mysql # not compatible
query I rowsort label-847
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( + + CAST ( - 3 AS REAL ) )
----
NULL

query I rowsort
SELECT ALL 90 + - 67
----
23

query I rowsort
SELECT DISTINCT + 86 + + - 31 col2
----
55

query I rowsort
SELECT ALL - - 59 + + 93
----
152

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT ALL + 17 DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL + 17 / - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT - - COALESCE ( + 79, - 7 + 77, - - 40 * - 45 + + 64 + + 96 - - - COUNT( * ) + COALESCE ( 34, 65 - CASE + COALESCE ( 34, + 51, 92 ) WHEN + 39 + 44 * - + COALESCE ( - - 63, + - ( 11 ) / - COUNT( + COALESCE ( 37, 43 + - 90 + 29 / - + 1 ) ) ) * + - 82 - 63 THEN - COUNT( * ) ELSE NULL END ) * 54 + + - 85 - - ( - NULLIF ( - - 81, 95 + COUNT( * ) ) ) + 75 - 26 )
----
79

skipif mysql # not compatible
query I rowsort label-853
SELECT - - COALESCE ( + 79, - 7 + 77, - - 40 * - 45 + + 64 + + 96 - - - COUNT ( * ) + COALESCE ( 34, 65 - CASE + COALESCE ( 34, + 51, 92 ) WHEN + 39 + 44 * - + COALESCE ( - - 63, + - ( 11 ) / - COUNT ( + COALESCE ( 37, 43 + - 90 + 29 / - + 1 ) ) ) * + - 82 - 63 THEN - COUNT ( * ) ELSE NULL END ) * 54 + + - 85 - - ( - NULLIF ( - - 81, 95 + COUNT ( * ) ) ) + 75 - 26 )
----
79

query II rowsort
SELECT - - 45 AS col2, - 6
----
45
-6

query I rowsort
SELECT DISTINCT + + 30 + - 21 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL - - 67 + + NULLIF ( + 47, - 82 ) + + COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL - - 67 + + NULLIF ( + 47, - 82 ) + + COUNT ( * )
----
115

query II rowsort
SELECT - - 91 AS col2, 6 * + - 49 AS col2
----
91
-294

query I rowsort
SELECT ALL + 93 + - - 94 * - 54 AS col2
----
-4983

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-859
SELECT COUNT( * ) AS col2, 98 / AVG ( ALL - CAST( NULL AS DECIMAL ) )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-859
SELECT COUNT ( * ) AS col2, 98 / AVG ( ALL - CAST ( NULL AS REAL ) )
----
1
NULL

query I rowsort
SELECT - 32 + + 93
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-861
SELECT ALL 36 DIV - 98 * - 43 - 87
----
-87

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL 36 / - 98 * - 43 - 87
----
-87

query I rowsort
SELECT - 15 * + - ( + 56 )
----
840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-863
SELECT - MIN( DISTINCT - - 51 ) DIV 66 + - 73 + 31 - - + 40 col2
----
-2

skipif mysql # not compatible
query I rowsort label-863
SELECT - MIN ( DISTINCT - - 51 ) / 66 + - 73 + 31 - - + 40 col2
----
-2

query I rowsort
SELECT - 79 * + - 2
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-865
SELECT - COUNT( * ) * 97 * - 41 + + 18 AS col0, 7 AS col2
----
3995
7

skipif mysql # not compatible
query II rowsort label-865
SELECT - COUNT ( * ) * 97 * - 41 + + 18 AS col0, 7 AS col2
----
3995
7

onlyif mysql # aggregate syntax: 
query II rowsort label-866
SELECT ( - 87 ) AS col0, 47 + + COUNT( ( 44 ) )
----
-87
48

skipif mysql # not compatible
query II rowsort label-866
SELECT ( - 87 ) AS col0, 47 + + COUNT ( ( 44 ) )
----
-87
48

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-868
SELECT - 31 DIV - COALESCE ( + + 20, - 82 + - CAST( 45 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-868
SELECT - 31 / - COALESCE ( + + 20, - 82 + - CAST ( 45 AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT ALL - MAX( - 97 ) * - 2 AS col2
----
-194

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL - MAX ( - 97 ) * - 2 AS col2
----
-194

query I rowsort
SELECT - 49 * + 52 AS col0
----
-2548

query I rowsort
SELECT ALL 36 * 96 AS col1
----
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT + CASE 42 WHEN MAX( DISTINCT 11 ) THEN - - 96 - - 23 WHEN - 63 THEN NULL ELSE + - 0 END
----
0

skipif mysql # not compatible
query I rowsort label-872
SELECT + CASE 42 WHEN MAX ( DISTINCT 11 ) THEN - - 96 - - 23 WHEN - 63 THEN NULL ELSE + - 0 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-873
SELECT + COALESCE ( - 2, CAST( NULL AS SIGNED ) )
----
-2

skipif mysql # not compatible
query I rowsort label-873
SELECT + COALESCE ( - 2, CAST ( NULL AS INTEGER ) )
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-874
SELECT ALL + CAST( NULL AS DECIMAL ) * 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL + CAST ( NULL AS REAL ) * 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT DISTINCT 46 * 43 + - - COALESCE ( + - 60, - - SUM( DISTINCT + + 10 ), - + ( + + 73 ) ) AS col0
----
1918

skipif mysql # not compatible
query I rowsort label-875
SELECT DISTINCT 46 * 43 + - - COALESCE ( + - 60, - - SUM ( DISTINCT + + 10 ), - + ( + + 73 ) ) AS col0
----
1918

onlyif mysql # DIV for integer division: 
query I rowsort label-876
SELECT + 71 DIV - 69 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-876
SELECT + 71 / - 69 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-877
SELECT - 64 * + + COALESCE ( + + 9, + 52 + 91 + CASE + - CAST( NULL AS SIGNED ) WHEN - 91 THEN + 85 END + 58 + + - 19, + ( 1 ) )
----
-576

skipif mysql # not compatible
query I rowsort label-877
SELECT - 64 * + + COALESCE ( + + 9, + 52 + 91 + CASE + - CAST ( NULL AS INTEGER ) WHEN - 91 THEN + 85 END + 58 + + - 19, + ( 1 ) )
----
-576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-878
SELECT + 38 * 41 * + COUNT( * ) * - ( - CAST( - 20 AS SIGNED ) ) col0
----
-31160

skipif mysql # not compatible
query I rowsort label-878
SELECT + 38 * 41 * + COUNT ( * ) * - ( - CAST ( - 20 AS INTEGER ) ) col0
----
-31160

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL - 50 * - - 35 + + 19 + CASE 15 WHEN + 84 THEN MAX( ALL 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL - 50 * - - 35 + + 19 + CASE 15 WHEN + 84 THEN MAX ( ALL 20 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-880
SELECT ALL + 36 * + - 37 + 42 * - - MIN( ALL + 44 ) * - 90 + - ( + 1 ) * COUNT( * ) AS col1, 79 + 59 + SUM( ALL 45 ) * + - 36
----
-167653
-1482

skipif mysql # not compatible
query II rowsort label-880
SELECT ALL + 36 * + - 37 + 42 * - - MIN ( ALL + 44 ) * - 90 + - ( + 1 ) * COUNT ( * ) AS col1, 79 + 59 + SUM ( ALL 45 ) * + - 36
----
-167653
-1482

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT 59 * COALESCE ( + - COUNT( * ), + 72 * + - 30 * - 95 ) * + 51 AS col0
----
-3009

skipif mysql # not compatible
query I rowsort label-881
SELECT 59 * COALESCE ( + - COUNT ( * ), + 72 * + - 30 * - 95 ) * + 51 AS col0
----
-3009

query I rowsort
SELECT ALL + 88 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL COUNT( * ) - - 5
----
6

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL COUNT ( * ) - - 5
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT DISTINCT + 38 * + - 72 + - 10 + + 23 + + + COUNT( * )
----
-2722

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT + 38 * + - 72 + - 10 + + 23 + + + COUNT ( * )
----
-2722

query I rowsort
SELECT - 7 - - 73 AS col2
----
66

query I rowsort
SELECT 5 * - 36 AS col1
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ALL + NULLIF ( - ( - 74 ), COUNT( * ) ) - - NULLIF ( 19, - 77 ) + + 60
----
153

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL + NULLIF ( - ( - 74 ), COUNT ( * ) ) - - NULLIF ( 19, - 77 ) + + 60
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT ALL - MIN( - - 5 ) - - 15 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL - MIN ( - - 5 ) - - 15 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-889
SELECT MIN( ALL - 91 ) * + 16 + + - COALESCE ( 42, 86 + MIN( DISTINCT + 48 ) * - - 47 + COALESCE ( - + ( + 74 ), + - 8 * 17 ) - + 84 * - 11 * + - 2 ) + + MAX( ALL + 37 ) + - 66 + - 75 + + 74 + - CAST( + 47 AS SIGNED ) - 25 * - 18 + - - COUNT( * ) AS col1, ( + CAST( - - 58 AS SIGNED ) )
----
-1124
58

skipif mysql # not compatible
query II rowsort label-889
SELECT MIN ( ALL - 91 ) * + 16 + + - COALESCE ( 42, 86 + MIN ( DISTINCT + 48 ) * - - 47 + COALESCE ( - + ( + 74 ), + - 8 * 17 ) - + 84 * - 11 * + - 2 ) + + MAX ( ALL + 37 ) + - 66 + - 75 + + 74 + - CAST ( + 47 AS INTEGER ) - 25 * - 18 + - - COUNT ( * ) AS col1, ( + CAST ( - - 58 AS INTEGER ) )
----
-1124
58

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

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

query I rowsort
SELECT 28 * + - ( ( + 40 ) ) AS col1
----
-1120

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT DISTINCT 56 DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT 56 / + + 72
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-894
SELECT ALL - CASE - 46 WHEN - - NULLIF ( - 97, + - 42 - - - 16 ) THEN NULL WHEN + 64 * + ( - ( - 17 ) ) THEN CAST( NULL AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL - CASE - 46 WHEN - - NULLIF ( - 97, + - 42 - - - 16 ) THEN NULL WHEN + 64 * + ( - ( - 17 ) ) THEN CAST ( NULL AS REAL ) END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-895
SELECT CAST ( NULL AS INTEGER ) * - 78 AS col1
----
NULL

query II rowsort
SELECT 53 * - + 88 * + 69, - 9 * - 49 AS col1
----
-321816
441

query II rowsort
SELECT + 93, - 89 AS col1
----
93
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-898
SELECT NULLIF ( - COALESCE ( - 33, + ( - + 45 ) ), - + 36 ) + + 45 DIV - 25, COUNT( ALL 21 ) AS col0
----
32
1

skipif mysql # not compatible
query II rowsort label-898
SELECT NULLIF ( - COALESCE ( - 33, + ( - + 45 ) ), - + 36 ) + + 45 / - 25, COUNT ( ALL 21 ) AS col0
----
32
1

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT DISTINCT + 92 * + 62 * 55 * - + COALESCE ( + ( - MIN( + 72 ) ), 43 * 87 - + 76, + + 73 * + 78 * 36 - + 15 )
----
22587840

skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT + 92 * + 62 * 55 * - + COALESCE ( + ( - MIN ( + 72 ) ), 43 * 87 - + 76, + + 73 * + 78 * 36 - + 15 )
----
22587840

query I rowsort
SELECT ALL - COALESCE ( + 25, 41 + - 34 )
----
-25

query II rowsort
SELECT + 56 AS col2, + 14 + - 14
----
56
0

query I rowsort
SELECT ALL + 47 + 47
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT ALL - COUNT( * ) + COALESCE ( - + 61, + 48 * COUNT( * ) )
----
-62

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL - COUNT ( * ) + COALESCE ( - + 61, + 48 * COUNT ( * ) )
----
-62

query I rowsort
SELECT ALL - 74 + - CASE + - 40 WHEN + 78 * + - ( + 53 ) * 91 * 83 * ( 11 ) + - + 57 + - + 52 THEN 46 * - 41 + + NULLIF ( + - 54, - 43 ) END * + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT 49 + - - 9 + + 4 * - 52 * - 43 - COUNT( * ) col0
----
9001

skipif mysql # not compatible
query I rowsort label-905
SELECT 49 + - - 9 + + 4 * - 52 * - 43 - COUNT ( * ) col0
----
9001

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT 22 * - + 68 - - 79 + + 68 + 90 + + COUNT( * ) - - 3 / 90 / + CAST( NULL AS SIGNED ) / 34
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT 22 * - + 68 - - 79 + + 68 + 90 + + COUNT ( * ) - - 3 / 90 / + CAST ( NULL AS INTEGER ) / 34
----
NULL

query I rowsort
SELECT + 32 - + 72 AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT ALL + - 63 + - - 45 + + - 47 DIV + 41
----
-19

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL + - 63 + - - 45 + + - 47 / + 41
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-910
SELECT DISTINCT - - COUNT( * ) DIV 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT - - COUNT ( * ) / 93 AS col2
----
0

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

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

query I rowsort
SELECT - 98 * + - 89 + - 85 AS col0
----
8637

query I rowsort
SELECT DISTINCT - 50 * - 67 AS col0
----
3350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT 5 + + COUNT( * ) col0
----
6

skipif mysql # not compatible
query I rowsort label-915
SELECT 5 + + COUNT ( * ) col0
----
6

query I rowsort
SELECT + 65 * + 4 AS col1
----
260

query II rowsort
SELECT + 74 AS col0, + 39 AS col2
----
74
39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-919
SELECT 84 * - ( + 35 ), - COUNT( * ) + CAST( + CASE 72 WHEN - - 45 THEN NULL WHEN - + 77 THEN - - COUNT( * ) ELSE NULL END AS SIGNED ) AS col2
----
-2940
NULL

skipif mysql # not compatible
query II rowsort label-919
SELECT 84 * - ( + 35 ), - COUNT ( * ) + CAST ( + CASE 72 WHEN - - 45 THEN NULL WHEN - + 77 THEN - - COUNT ( * ) ELSE NULL END AS INTEGER ) AS col2
----
-2940
NULL

query I rowsort
SELECT 43 + 32 AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-921
SELECT COUNT( * ) + 31 + 60 * - 18 + - - 23 * + 84 + - - 29 DIV - 66 AS col2
----
884

skipif mysql # not compatible
query I rowsort label-921
SELECT COUNT ( * ) + 31 + 60 * - 18 + - - 23 * + 84 + - - 29 / - 66 AS col2
----
884

query I rowsort
SELECT + 5 + 99 AS col1
----
104

query I rowsort
SELECT - 14 * + 46 * - 32
----
20608

query II rowsort
SELECT DISTINCT - 94 AS col0, 2 AS col0
----
-94
2

query I rowsort
SELECT ALL 58 - - 43 AS col0
----
101

query I rowsort
SELECT DISTINCT + 27 * - 31 col2
----
-837

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-930
SELECT - MIN ( DISTINCT - 14 )
----
14

query I rowsort
SELECT 47 + 89 + + 10
----
146

query II rowsort
SELECT DISTINCT 84 AS col0, 53 AS col0
----
84
53

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT ALL SUM( DISTINCT - 59 ) * - 76 * - 10 col2, 42
----
-44840
42

skipif mysql # not compatible
query II rowsort label-933
SELECT ALL SUM ( DISTINCT - 59 ) * - 76 * - 10 col2, 42
----
-44840
42

query I rowsort
SELECT 24 + + 58 AS col0
----
82

query I rowsort
SELECT ( - 95 ) + 34 AS col1
----
-61

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-937
SELECT COUNT( * ) DIV 7 AS col2, + CASE 55 WHEN - 28 + - + 74 * - COUNT( - 76 ) DIV + 2 * - 56 THEN NULL WHEN 10 DIV - + 94 THEN NULL ELSE 80 * - 68 * + - 72 END
----
0
391680

skipif mysql # not compatible
query II rowsort label-937
SELECT COUNT ( * ) / 7 AS col2, + CASE 55 WHEN - 28 + - + 74 * - COUNT ( - 76 ) / + 2 * - 56 THEN NULL WHEN 10 / - + 94 THEN NULL ELSE 80 * - 68 * + - 72 END
----
0
391680

query I rowsort
SELECT ALL - COALESCE ( - 56, + + 66 ) AS col0
----
56

query I rowsort
SELECT ALL - 60 * - - 68 + 32 AS col2
----
-4048

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT DISTINCT + ( + 62 ) * COUNT( * ) * - 27 + - 64 AS col0
----
-1738

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT + ( + 62 ) * COUNT ( * ) * - 27 + - 64 AS col0
----
-1738

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT MIN( DISTINCT - 57 ) AS col2, - 34 AS col2
----
-57
-34

skipif mysql # not compatible
query II rowsort label-941
SELECT MIN ( DISTINCT - 57 ) AS col2, - 34 AS col2
----
-57
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-942
SELECT COUNT( * ) DIV - 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-942
SELECT COUNT ( * ) / - 44 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-943
SELECT 69 + 3 / - CAST( NULL AS DECIMAL ) * + CAST( + 94 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT 69 + 3 / - CAST ( NULL AS REAL ) * + CAST ( + 94 AS REAL ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT SUM( ALL - ( - - ( + 4 ) ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-945
SELECT SUM ( ALL - ( - - ( + 4 ) ) ) AS col0
----
-4

query I rowsort
SELECT + 7 * - 10 + + 4
----
-66

query I rowsort
SELECT ALL ( + + 42 ) * - - 47 + - 27 AS col2
----
1947

query I rowsort
SELECT DISTINCT + 54 * + - COALESCE ( - 99, - 9 ) AS col0
----
5346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-949
SELECT ALL 57 * SUM( DISTINCT COALESCE ( 26, - 44 * + 90 DIV - + 75, - - 0 ) ) AS col0
----
1482

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL 57 * SUM ( DISTINCT COALESCE ( 26, - 44 * + 90 / - + 75, - - 0 ) ) AS col0
----
1482

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

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT ALL + NULLIF ( + COUNT( * ), 93 * - 29 ) - + 10 * 92 col2
----
-919

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL + NULLIF ( + COUNT ( * ), 93 * - 29 ) - + 10 * 92 col2
----
-919

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

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

query II rowsort
SELECT - 14 col1, 58
----
-14
58

query II rowsort
SELECT - + 43, - 20 AS col1
----
-43
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-955
SELECT 99 AS col0, 47 DIV 32 * ( - - 77 ) * COALESCE ( + 72, + 4 ) + 29 + 11 * - ( + - NULLIF ( + + NULLIF ( 28, - + 76 ), + - 66 + 77 ) ) * + 37 * - SUM( DISTINCT + - 14 ) + - COUNT( * ) AS col0
----
99
165116

skipif mysql # not compatible
query II rowsort label-955
SELECT 99 AS col0, 47 / 32 * ( - - 77 ) * COALESCE ( + 72, + 4 ) + 29 + 11 * - ( + - NULLIF ( + + NULLIF ( 28, - + 76 ), + - 66 + 77 ) ) * + 37 * - SUM ( DISTINCT + - 14 ) + - COUNT ( * ) AS col0
----
99
165116

query I rowsort
SELECT ALL + - 48 * 48 col1
----
-2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-957
SELECT - CAST( + - COUNT( - 49 ) AS SIGNED ) * - 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-957
SELECT - CAST ( + - COUNT ( - 49 ) AS INTEGER ) * - 15 AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-958
SELECT DISTINCT + 78 DIV + 97 DIV - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT + 78 / + 97 / - COUNT ( * ) AS col1
----
0

query II rowsort
SELECT DISTINCT 70, + 34 AS col1
----
70
34

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT DISTINCT COUNT( DISTINCT ( 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT COUNT ( DISTINCT ( 83 ) )
----
1

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

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

query II rowsort
SELECT - 69 + + - 53 * + ( + 99 ), 55 AS col2
----
-5316
55

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT MIN( - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-963
SELECT MIN ( - 30 )
----
-30

query I rowsort
SELECT ALL - + 68 * + 14
----
-952

query I rowsort
SELECT - + 48 * - 77 AS col0
----
3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-966
SELECT ALL COUNT( * ) + 15 DIV + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL COUNT ( * ) + 15 / + + COUNT ( * )
----
16

query I rowsort
SELECT - COALESCE ( + - 4, + 51 )
----
4

query I rowsort
SELECT ALL + 46 + + 95 AS col2
----
141

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

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

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

query I rowsort
SELECT ALL 60 * + ( + 87 )
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT + MIN( ALL - + 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-972
SELECT + MIN ( ALL - + 20 ) AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-973
SELECT DISTINCT 78 DIV + ( CASE + COUNT( + NULLIF ( - + 32, + 68 ) ) WHEN SUM( + 58 ) * - 57 + - + 32 DIV + ( + 50 ) + - CAST( NULL AS SIGNED ) + - 4 THEN NULL ELSE 33 END ) + - 93 * - 81 + - CAST( - - MAX( - - 50 ) AS SIGNED ) AS col1
----
7485

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT 78 / + ( CASE + COUNT ( + NULLIF ( - + 32, + 68 ) ) WHEN SUM ( + 58 ) * - 57 + - + 32 / + ( + 50 ) + - CAST ( NULL AS INTEGER ) + - 4 THEN NULL ELSE 33 END ) + - 93 * - 81 + - CAST ( - - MAX ( - - 50 ) AS INTEGER ) AS col1
----
7485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-974
SELECT + COUNT( * ) + 28 DIV + 89 * 15 + ( - + 78 ) * 67 * 19
----
-99293

skipif mysql # not compatible
query I rowsort label-974
SELECT + COUNT ( * ) + 28 / + 89 * 15 + ( - + 78 ) * 67 * 19
----
-99293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-975
SELECT + CAST( - 89 AS SIGNED ) AS col2, + 5 * - - 62 + COUNT( * ) + - - COUNT( * ) DIV - 3 * 82 AS col0
----
-89
311

skipif mysql # not compatible
query II rowsort label-975
SELECT + CAST ( - 89 AS INTEGER ) AS col2, + 5 * - - 62 + COUNT ( * ) + - - COUNT ( * ) / - 3 * 82 AS col0
----
-89
311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-976
SELECT ALL 53 * - CASE - CAST( NULL AS SIGNED ) WHEN - CASE + 79 WHEN COUNT( * ) * 78 THEN CASE + CASE - - 67 WHEN COALESCE ( - + ( + 26 ), + ( 65 ) * - 78 * + 41 * - - ( - 16 ) + - 70, + 22 * COUNT( * ) * - 53 + + - 37 ) * - + 88 + COUNT( 55 ) THEN NULL WHEN CAST( + - 25 AS SIGNED ) - + + 34 + + + 60 + + 36 + - 27 + 16 * 69 * - 60 * COUNT( * ) THEN NULL WHEN - 54 THEN - 58 / + 74 END WHEN - 91 + - 26 THEN COUNT( * ) * 61 END * 61 + COUNT( - CASE + 0 WHEN 63 / - 87 THEN 5 WHEN + 91 * 7 THEN NULL WHEN ( 76 ) * - 17 + 3 THEN NULL END ) * 54 END * + 25 THEN NULL WHEN 56 / - 80 THEN 79 + - 10 ELSE NULL END + + MIN( ALL 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL 53 * - CASE - CAST ( NULL AS INTEGER ) WHEN - CASE + 79 WHEN COUNT ( * ) * 78 THEN CASE + CASE - - 67 WHEN COALESCE ( - + ( + 26 ), + ( 65 ) * - 78 * + 41 * - - ( - 16 ) + - 70, + 22 * COUNT ( * ) * - 53 + + - 37 ) * - + 88 + COUNT ( 55 ) THEN NULL WHEN CAST ( + - 25 AS INTEGER ) - + + 34 + + + 60 + + 36 + - 27 + 16 * 69 * - 60 * COUNT ( * ) THEN NULL WHEN - 54 THEN - 58 / + 74 END WHEN - 91 + - 26 THEN COUNT ( * ) * 61 END * 61 + COUNT ( - CASE + 0 WHEN 63 / - 87 THEN 5 WHEN + 91 * 7 THEN NULL WHEN ( 76 ) * - 17 + 3 THEN NULL END ) * 54 END * + 25 THEN NULL WHEN 56 / - 80 THEN 79 + - 10 ELSE NULL END + + MIN ( ALL 1 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 59 * + 17, 22 + + + 10 AS col0
----
1003
32

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

skipif mysql # not compatible
query I rowsort label-978
SELECT + - ( - + 98 ) - - COUNT ( * ) / COUNT ( * )
----
99

query I rowsort
SELECT + 71 * - + 93 * - + 32 AS col1
----
211296

onlyif mysql # DIV for integer division: 
query II rowsort label-980
SELECT ALL + + 0 DIV - 76, + 7 * + 91 AS col2
----
0
637

skipif mysql # not compatible
query II rowsort label-980
SELECT ALL + + 0 / - 76, + 7 * + 91 AS col2
----
0
637

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT + MIN( + 65 ) * + 50 * ( + 84 ) + + + 65 - - + 26 + + 3 * 41 * 19 AS col0
----
275428

skipif mysql # not compatible
query I rowsort label-981
SELECT + MIN ( + 65 ) * + 50 * ( + 84 ) + + + 65 - - + 26 + + 3 * 41 * 19 AS col0
----
275428

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL + COUNT( + 76 ) * + 54 * - 31 * 18 - + COUNT( * ) + + SUM( DISTINCT - 64 ) * + - 35
----
-27893

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + COUNT ( + 76 ) * + 54 * - 31 * 18 - + COUNT ( * ) + + SUM ( DISTINCT - 64 ) * + - 35
----
-27893

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT + - 70 + - COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-983
SELECT + - 70 + - COUNT ( * ) AS col1
----
-71

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT + + MAX( ALL - - 41 ) * - - 90 + - 76 + 76
----
3690

skipif mysql # not compatible
query I rowsort label-986
SELECT + + MAX ( ALL - - 41 ) * - - 90 + - 76 + 76
----
3690

onlyif mysql # DIV for integer division: 
query II rowsort label-987
SELECT + 47 + 20 col2, - 41 DIV - 19
----
67
2

skipif mysql # not compatible
query II rowsort label-987
SELECT + 47 + 20 col2, - 41 / - 19
----
67
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-988
SELECT - 25 * COALESCE ( - 37, - 36 ) * + COALESCE ( 12, 42 DIV - 7, - 57 ) + + SUM( ALL - 39 ) + - 58 * 13 col2
----
10307

skipif mysql # not compatible
query I rowsort label-988
SELECT - 25 * COALESCE ( - 37, - 36 ) * + COALESCE ( 12, 42 / - 7, - 57 ) + + SUM ( ALL - 39 ) + - 58 * 13 col2
----
10307

query II rowsort
SELECT ALL + - 46 * - + 53 AS col0, - 8
----
2438
-8

query I rowsort
SELECT ALL 57 * - 29 * + + 95
----
-157035

query I rowsort
SELECT + + 94 * + ( - - 13 ) + - - 83
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT - 32 * - COUNT( - 39 )
----
32

skipif mysql # not compatible
query I rowsort label-992
SELECT - 32 * - COUNT ( - 39 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-993
SELECT - COUNT( * ) + - 71 + + 14 DIV + COUNT( * ) + 55
----
-3

skipif mysql # not compatible
query I rowsort label-993
SELECT - COUNT ( * ) + - 71 + + 14 / + COUNT ( * ) + 55
----
-3

query I rowsort
SELECT ALL + 59 + + 79
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT - 50 DIV 24 DIV - + ( - 12 )
----
0

skipif mysql # not compatible
query I rowsort label-995
SELECT - 50 / 24 / - + ( - 12 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT DISTINCT + 33 * - COUNT( * ) * + 53
----
-1749

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT + 33 * - COUNT ( * ) * + 53
----
-1749

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

skipif mysql # not compatible
query I rowsort label-997
SELECT - COUNT ( - + ( + + 63 ) ) / - 98 * - - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-998
SELECT 26 AS col2, + MAX( ALL - 83 )
----
26
-83

skipif mysql # not compatible
query II rowsort label-998
SELECT 26 AS col2, + MAX ( ALL - 83 )
----
26
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-999
SELECT ALL + 15 + - 90 - - 51 DIV 4 * 62 + + 14, + MAX( ALL + ( + + 32 ) ) * 15 * 30 col0
----
683
14400

skipif mysql # not compatible
query II rowsort label-999
SELECT ALL + 15 + - 90 - - 51 / 4 * 62 + + 14, + MAX ( ALL + ( + + 32 ) ) * 15 * 30 col0
----
683
14400

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1001
SELECT 34, ( CAST( - + 97 AS SIGNED ) ) * 12 AS col2
----
34
-1164

skipif mysql # not compatible
query II rowsort label-1001
SELECT 34, ( CAST ( - + 97 AS INTEGER ) ) * 12 AS col2
----
34
-1164

query II rowsort
SELECT - 44, + 9 AS col0
----
-44
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1003
SELECT - CASE 12 WHEN 99 THEN NULL ELSE + 26 - + 87 DIV 77 * - 85 * 33 + + + CASE - COUNT( ALL 95 ) WHEN COALESCE ( 48, - 24 ) + - + 96 * + - 4 * 77 THEN - + 26 WHEN 65 * - + 39 + 76 - 0 * + - 64 THEN - COUNT( * ) ELSE - - 30 END END
----
-2861

skipif mysql # not compatible
query I rowsort label-1003
SELECT - CASE 12 WHEN 99 THEN NULL ELSE + 26 - + 87 / 77 * - 85 * 33 + + + CASE - COUNT ( ALL 95 ) WHEN COALESCE ( 48, - 24 ) + - + 96 * + - 4 * 77 THEN - + 26 WHEN 65 * - + 39 + 76 - 0 * + - 64 THEN - COUNT ( * ) ELSE - - 30 END END
----
-2861

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT 62 DIV - 96 * + 52
----
0

skipif mysql # not compatible
query I rowsort label-1004
SELECT 62 / - 96 * + 52
----
0

query I rowsort
SELECT DISTINCT + 70 * - - 18
----
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1006
SELECT ALL - NULLIF ( + 58, - - 38 + - 12 - 25 + + ( + - 32 ) + + 68 * - COUNT( * ) ) AS col1, - 36 + + - ( - 79 ) - COUNT( * ) * + COALESCE ( - COUNT( * ), - 2 ) + 29 - - 53 * + CAST( NULL AS SIGNED ) * - 9 + + 72 + - - 88 * SUM( DISTINCT + 65 ) AS col0
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-1006
SELECT ALL - NULLIF ( + 58, - - 38 + - 12 - 25 + + ( + - 32 ) + + 68 * - COUNT ( * ) ) AS col1, - 36 + + - ( - 79 ) - COUNT ( * ) * + COALESCE ( - COUNT ( * ), - 2 ) + 29 - - 53 * + CAST ( NULL AS INTEGER ) * - 9 + + 72 + - - 88 * SUM ( DISTINCT + 65 ) AS col0
----
-58
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1007
SELECT 50, - COUNT( * ) * 9 AS col0
----
50
-9

skipif mysql # not compatible
query II rowsort label-1007
SELECT 50, - COUNT ( * ) * 9 AS col0
----
50
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-1008
SELECT ALL - 58, MIN( ALL - 27 ) - + 92 AS col1
----
-58
-119

skipif mysql # not compatible
query II rowsort label-1008
SELECT ALL - 58, MIN ( ALL - 27 ) - + 92 AS col1
----
-58
-119

query I rowsort
SELECT 94 + + 47 AS col2
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1010
SELECT DISTINCT - 72 * - 33 + - CAST( - 78 AS SIGNED ) + 71 col2
----
2525

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT - 72 * - 33 + - CAST ( - 78 AS INTEGER ) + 71 col2
----
2525

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT + - MAX( + 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-1011
SELECT + - MAX ( + 79 ) AS col1
----
-79

query I rowsort
SELECT - 35 * + 59 * + - 86 col2
----
177590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1013
SELECT DISTINCT - 22 * - + CASE CASE - 21 WHEN 82 * - CASE + 56 WHEN + 82 THEN - ( - CAST( NULL AS SIGNED ) ) * - 62 WHEN - 41 THEN NULL END * + 26 THEN 76 + - - 62 END WHEN 47 + + CAST( + AVG ( + 31 ) AS SIGNED ) THEN COUNT( * ) * + ( + 23 ) * + ( + + 89 ) / - NULLIF ( COUNT( * ), + 96 ) * - 20 + 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT - 22 * - + CASE CASE - 21 WHEN 82 * - CASE + 56 WHEN + 82 THEN - ( - CAST ( NULL AS INTEGER ) ) * - 62 WHEN - 41 THEN NULL END * + 26 THEN 76 + - - 62 END WHEN 47 + + CAST ( + AVG ( + 31 ) AS INTEGER ) THEN COUNT ( * ) * + ( + 23 ) * + ( + + 89 ) / - NULLIF ( COUNT ( * ), + 96 ) * - 20 + 52 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 39 * + 85 * + 92 + - 77 AS col1
----
-305057

query I rowsort
SELECT 28 * + 53 + - ( + - 60 ) * + 52
----
4604

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1016
SELECT + 60 col2, 86 + + - CAST( NULL AS SIGNED ) + 53
----
60
NULL

skipif mysql # not compatible
query II rowsort label-1016
SELECT + 60 col2, 86 + + - CAST ( NULL AS INTEGER ) + 53
----
60
NULL

query I rowsort
SELECT NULLIF ( + - 96, - 8 ) col0
----
-96

query II rowsort
SELECT ALL - 49 col0, 15 * + 46 * + 55 AS col0
----
-49
37950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1019
SELECT - COUNT( * ) * 28 * - - 96 * + 23 + + NULLIF ( ( - 26 ), + CAST( NULL AS SIGNED ) + + 79 ) DIV + COUNT( - 8 ) + - 77 - + 76
----
-62003

skipif mysql # not compatible
query I rowsort label-1019
SELECT - COUNT ( * ) * 28 * - - 96 * + 23 + + NULLIF ( ( - 26 ), + CAST ( NULL AS INTEGER ) + + 79 ) / + COUNT ( - 8 ) + - 77 - + 76
----
-62003

query II rowsort
SELECT + 10 AS col0, + 81 col0
----
10
81

query I rowsort
SELECT ALL 91 + + 67 col2
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-1022
SELECT - 35 DIV - + 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1022
SELECT - 35 / - + 62 AS col1
----
0

query I rowsort
SELECT - 74 * - - 20
----
-1480

query I rowsort
SELECT + ( - 82 ) * - 10 * + - 80
----
-65600

query I rowsort
SELECT DISTINCT + 46 + - 22 + 27
----
51

query I rowsort
SELECT DISTINCT ( - 55 ) + + 34 AS col2
----
-21

query I rowsort
SELECT ALL + 28 + 52 * 84 * CASE + 73 WHEN + + 7 + 26 THEN 79 END / 45
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1028
SELECT 69 + COUNT( * ) DIV + + COALESCE ( - 53, + 91 )
----
69

skipif mysql # not compatible
query I rowsort label-1028
SELECT 69 + COUNT ( * ) / + + COALESCE ( - 53, + 91 )
----
69

query I rowsort
SELECT ALL + 29 - 16
----
13

query I rowsort
SELECT 72 + - 30 * - ( + 37 )
----
1182

query I rowsort
SELECT 78 * 15 AS col0
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL - 84 * - 35 * - - COUNT( * ) * + 83 AS col0
----
244020

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL - 84 * - 35 * - - COUNT ( * ) * + 83 AS col0
----
244020

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT ALL - 94 * SUM( - 96 )
----
9024

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL - 94 * SUM ( - 96 )
----
9024

query I rowsort
SELECT 7 + + 17 AS col0
----
24

query I rowsort
SELECT ALL + 42 * ( + + 59 ) * 27 AS col2
----
66906

onlyif mysql # aggregate syntax: 
query II rowsort label-1036
SELECT + - 7 * MIN( DISTINCT + 11 ) + - 82 - - 49 AS col2, + ( + COUNT( DISTINCT - 47 ) ) AS col0
----
-110
1

skipif mysql # not compatible
query II rowsort label-1036
SELECT + - 7 * MIN ( DISTINCT + 11 ) + - 82 - - 49 AS col2, + ( + COUNT ( DISTINCT - 47 ) ) AS col0
----
-110
1

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

skipif mysql # not compatible
query I rowsort label-1037
SELECT ( CAST ( NULL AS INTEGER ) ) * 93 AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT - + 6 * - 22 * - - 20 - - 60 - - 7
----
2707

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

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

query I rowsort
SELECT - 22 + + 1 * + - 69 AS col0
----
-91

query I rowsort
SELECT ALL + 66 + - - 5
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT ALL - + CASE - 84 WHEN 75 THEN NULL WHEN - CAST( + 15 AS SIGNED ) THEN NULL ELSE - + 90 END col2
----
90

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - + CASE - 84 WHEN 75 THEN NULL WHEN - CAST ( + 15 AS INTEGER ) THEN NULL ELSE - + 90 END col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT COUNT( - ( 1 ) ) + + MIN( + + 94 )
----
95

skipif mysql # not compatible
query I rowsort label-1045
SELECT COUNT ( - ( 1 ) ) + + MIN ( + + 94 )
----
95

query I rowsort
SELECT ALL 97 + + + 38 AS col0
----
135

query I rowsort
SELECT 63 + - 81 + + 59 * + 5 AS col1
----
277

query II rowsort
SELECT - 31, - 14 AS col2
----
-31
-14

query II rowsort
SELECT 51 AS col0, + 79 + + + ( + 54 ) AS col1
----
51
133

onlyif mysql # aggregate syntax: 
query II rowsort label-1050
SELECT MAX( 45 ) + + 30 AS col1, 39 AS col2
----
75
39

skipif mysql # not compatible
query II rowsort label-1050
SELECT MAX ( 45 ) + + 30 AS col1, 39 AS col2
----
75
39

query II rowsort
SELECT ALL 37 - ( + - 28 ) - + 59 * + - 73 AS col2, - 81
----
4372
-81

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

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

query I rowsort
SELECT + ( - + 65 ) * 58
----
-3770

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

skipif mysql # not compatible
query I rowsort label-1054
SELECT - SUM ( + - 27 )
----
27

query II rowsort
SELECT 75, 84 AS col0
----
75
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1056
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN + + 22 THEN + + 38 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN + + 22 THEN + + 38 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT ALL - CASE COUNT( * ) WHEN + + 5 THEN + 8 ELSE NULL END - + - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL - CASE COUNT ( * ) WHEN + + 5 THEN + 8 ELSE NULL END - + - 52 AS col2
----
NULL

query I rowsort
SELECT + 89 * - + 37 AS col2
----
-3293

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT - SUM( ALL - 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1059
SELECT - SUM ( ALL - 27 ) AS col1
----
27

query II rowsort
SELECT ALL 71 AS col1, 60 AS col2
----
71
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT + 13 + ( - - 63 ) DIV - - 5 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1061
SELECT + 13 + ( - - 63 ) / - - 5 AS col2
----
25

query I rowsort
SELECT + 27 + - 67
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT ALL ( CASE + 39 WHEN + - COUNT( * ) THEN NULL WHEN + 86 THEN - 66 * 17 + + 36 + + - 59 / + 62 ELSE NULL END ) + + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL ( CASE + 39 WHEN + - COUNT ( * ) THEN NULL WHEN + 86 THEN - 66 * 17 + + 36 + + - 59 / + 62 ELSE NULL END ) + + 93 AS col2
----
NULL

query I rowsort
SELECT ALL - - 37 * + - 70 + - ( + 83 ) AS col1
----
-2673

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT - - 59 DIV - 84 + - 63 * - + 75 AS col1
----
4725

skipif mysql # not compatible
query I rowsort label-1065
SELECT - - 59 / - 84 + - 63 * - + 75 AS col1
----
4725

onlyif mysql # aggregate syntax: 
query II rowsort label-1066
SELECT DISTINCT + NULLIF ( + SUM( + + 11 ), - ( + 84 ) ), 12 - - 15 col1
----
11
27

skipif mysql # not compatible
query II rowsort label-1066
SELECT DISTINCT + NULLIF ( + SUM ( + + 11 ), - ( + 84 ) ), 12 - - 15 col1
----
11
27

query I rowsort
SELECT ALL + 66 * 32 * + 35 + 50 + - - 34 * + - 15
----
73460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1068
SELECT - - 50 + CAST( NULL AS SIGNED ) + - 42 + 77 + - - 46 + CASE - 70 WHEN - + 40 THEN ( - 65 ) ELSE NULL END * + + 67 * + COUNT( * ) * - + CASE 34 WHEN + 70 THEN - - 66 ELSE NULL END + - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1068
SELECT - - 50 + CAST ( NULL AS INTEGER ) + - 42 + 77 + - - 46 + CASE - 70 WHEN - + 40 THEN ( - 65 ) ELSE NULL END * + + 67 * + COUNT ( * ) * - + CASE 34 WHEN + 70 THEN - - 66 ELSE NULL END + - + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT ALL + 88 * - 54 + + + COUNT( * ) * 22 * - 19
----
-5170

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL + 88 * - 54 + + + COUNT ( * ) * 22 * - 19
----
-5170

query I rowsort
SELECT - 30 * 64 + 12
----
-1908

query I rowsort
SELECT - - 90 * NULLIF ( + 91, + 65 )
----
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT - COUNT( - 15 ) * - 6 col1
----
6

skipif mysql # not compatible
query I rowsort label-1072
SELECT - COUNT ( - 15 ) * - 6 col1
----
6

query I rowsort
SELECT - ( - 26 ) * 4
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT ALL - 59 * + + COUNT( * ) * + ( - - COALESCE ( 21, + 41 ) ) * 85 - 65 + + + 43 AS col0
----
-105337

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL - 59 * + + COUNT ( * ) * + ( - - COALESCE ( 21, + 41 ) ) * 85 - 65 + + + 43 AS col0
----
-105337

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT - 56 DIV - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1076
SELECT - 56 / - 92 AS col0
----
0

query I rowsort
SELECT ALL - 51 * + 87 + + 86 AS col1
----
-4351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1078
SELECT - - CAST( NULL AS SIGNED ) * - 3 + + CASE - COUNT( * ) WHEN + ( - - SUM( ALL + ( + CAST( 26 AS SIGNED ) ) ) ) THEN NULL WHEN 87 THEN 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT - - CAST ( NULL AS INTEGER ) * - 3 + + CASE - COUNT ( * ) WHEN + ( - - SUM ( ALL + ( + CAST ( 26 AS INTEGER ) ) ) ) THEN NULL WHEN 87 THEN 2 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1079
SELECT COALESCE ( - 38, - 17, - COUNT( * ) ), CAST( NULL AS DECIMAL ) AS col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-1079
SELECT COALESCE ( - 38, - 17, - COUNT ( * ) ), CAST ( NULL AS REAL ) AS col2
----
-38
NULL

query I rowsort
SELECT COALESCE ( - 60, + 23 )
----
-60

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1082
SELECT - 67 * + + ( + CASE + CAST( + 5 AS SIGNED ) WHEN + CAST( - - 52 AS SIGNED ) + AVG ( DISTINCT + + 47 ) THEN 36 * - MAX( - 53 ) * - 94 END ) * + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT - 67 * + + ( + CASE + CAST ( + 5 AS INTEGER ) WHEN + CAST ( - - 52 AS INTEGER ) + AVG ( DISTINCT + + 47 ) THEN 36 * - MAX ( - 53 ) * - 94 END ) * + 15 AS col0
----
NULL

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

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

query I rowsort
SELECT + 94 * + NULLIF ( 55, 80 * - 65 - + 65 ) - + 58 - - + 10 * 72 AS col2
----
5832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1085
SELECT ALL - 64 * - CAST( NULL AS SIGNED ) - NULLIF ( + 71, + 20 / - 71 ) + + 12 + + CAST( NULL AS SIGNED ) + 50 - + + SUM( - - 88 ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL - 64 * - CAST ( NULL AS INTEGER ) - NULLIF ( + 71, + 20 / - 71 ) + + 12 + + CAST ( NULL AS INTEGER ) + 50 - + + SUM ( - - 88 ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT - COUNT( * ) * - 61 col2
----
61

skipif mysql # not compatible
query I rowsort label-1086
SELECT - COUNT ( * ) * - 61 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT - SUM( ALL + + 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1087
SELECT - SUM ( ALL + + 8 ) AS col1
----
-8

query I rowsort
SELECT DISTINCT - 11 * - + 79
----
869

query I rowsort
SELECT + CASE 79 WHEN - 49 / 79 * 41 * + + 83 THEN 84 ELSE NULL END / + ( ( 86 ) ) col0
----
NULL

query I rowsort
SELECT - 60 + 28 + + ( 69 ) * + 21 AS col2
----
1417

onlyif mysql # aggregate syntax: 
query II rowsort label-1091
SELECT 37, 35 * + COUNT( * ) AS col2
----
37
35

skipif mysql # not compatible
query II rowsort label-1091
SELECT 37, 35 * + COUNT ( * ) AS col2
----
37
35

query II rowsort
SELECT 74 AS col0, + COALESCE ( - 71, - 52, - 92 + 41 * - 31 )
----
74
-71

query III rowsort
SELECT ALL 60, 28 AS col2, + - 19 + 23 AS col1
----
60
28
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1094
SELECT + 59 DIV + - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1094
SELECT + 59 / + - 88 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT + 30 + - - CAST( COUNT( * ) AS SIGNED ) + 94 + - 32 * + 38 * 30
----
-36355

skipif mysql # not compatible
query I rowsort label-1095
SELECT + 30 + - - CAST ( COUNT ( * ) AS INTEGER ) + 94 + - 32 * + 38 * 30
----
-36355

query I rowsort
SELECT + 36 * 1 AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-1097
SELECT ALL 17 AS col0, + 34 * + + MAX( + 2 ) AS col2
----
17
68

skipif mysql # not compatible
query II rowsort label-1097
SELECT ALL 17 AS col0, + 34 * + + MAX ( + 2 ) AS col2
----
17
68

query II rowsort
SELECT DISTINCT - 22 + + + 40 AS col2, + 14 * + 17
----
18
238

onlyif mysql # DIV for integer division: 
query I rowsort label-1099
SELECT ALL + 67 DIV CASE - + 4 WHEN - + 18 THEN NULL ELSE + 95 * - 58 + + 16 END * 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL + 67 / CASE - + 4 WHEN - + 18 THEN NULL ELSE + 95 * - 58 + + 16 END * 44 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1100
SELECT + COUNT ( * ) / 46 + + - 54
----
-54

query I rowsort
SELECT DISTINCT + NULLIF ( + 36, - - 86 ) * - 34 * + - ( + NULLIF ( - - 12, + + 29 ) ) col0
----
14688

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1102
SELECT ALL 68 + + CAST( NULL AS SIGNED ) + ( + + 21 ) * + + ( - 46 ), + ( + 74 ) AS col2
----
NULL
74

skipif mysql # not compatible
query II rowsort label-1102
SELECT ALL 68 + + CAST ( NULL AS INTEGER ) + ( + + 21 ) * + + ( - 46 ), + ( + 74 ) AS col2
----
NULL
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT COUNT( * ) + - 80
----
-79

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT COUNT ( * ) + - 80
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-1104
SELECT + + 21 + - + 18 + 69 - - 6 AS col2, + 10 + + - COUNT( * )
----
78
9

skipif mysql # not compatible
query II rowsort label-1104
SELECT + + 21 + - + 18 + 69 - - 6 AS col2, + 10 + + - COUNT ( * )
----
78
9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1106
SELECT ALL 30 + + 68 + + MAX( DISTINCT 22 ) DIV 25
----
98

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL 30 + + 68 + + MAX ( DISTINCT 22 ) / 25
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1107
SELECT ALL - - 20 DIV - 61 + - - MIN( + 48 ) col0
----
48

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL - - 20 / - 61 + - - MIN ( + 48 ) col0
----
48

query II rowsort
SELECT + - 75 AS col1, + 63
----
-75
63

query I rowsort
SELECT + - 9 + 58 AS col2
----
49

query I rowsort
SELECT 3 * + 23 - 35
----
34

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT + 27 * SUM( + 14 ) + 92 AS col0
----
470

skipif mysql # not compatible
query I rowsort label-1114
SELECT + 27 * SUM ( + 14 ) + 92 AS col0
----
470

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

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

query I rowsort
SELECT DISTINCT 84 * 6
----
504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1117
SELECT 72 + + 21 DIV - 43 * COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1117
SELECT 72 + + 21 / - 43 * COUNT ( * ) AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1118
SELECT DISTINCT - COALESCE ( + MAX( DISTINCT - 47 ), - 13, - 88 * + 95, 5 DIV 74 * - - 83 + + - 13 ) AS col0, ( + - 98 ) + + - 31 * + 27 + + 96 AS col1
----
47
-839

skipif mysql # not compatible
query II rowsort label-1118
SELECT DISTINCT - COALESCE ( + MAX ( DISTINCT - 47 ), - 13, - 88 * + 95, 5 / 74 * - - 83 + + - 13 ) AS col0, ( + - 98 ) + + - 31 * + 27 + + 96 AS col1
----
47
-839

onlyif mysql # DIV for integer division: 
query II rowsort label-1119
SELECT 81 + 45, 20 DIV + 67 * + + 78 * 61 AS col1
----
126
0

skipif mysql # not compatible
query II rowsort label-1119
SELECT 81 + 45, 20 / + 67 * + + 78 * 61 AS col1
----
126
0

query I rowsort
SELECT ALL - COALESCE ( + 9, - 83 - + 12 )
----
-9

query I rowsort
SELECT 97 + + 3
----
100

query I rowsort
SELECT 68 * + 63 * 28
----
119952

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT 71 * - COUNT( - - 13 ) + + 76
----
5

skipif mysql # not compatible
query I rowsort label-1124
SELECT 71 * - COUNT ( - - 13 ) + + 76
----
5

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

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

query I rowsort
SELECT ALL + 62 * 28 AS col1
----
1736

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

query I rowsort
SELECT DISTINCT + 90 + - ( 7 ) * 56 + - - 41 * + + 8 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1129
SELECT DISTINCT + 81 * - COUNT( * ), + 81 - + - COALESCE ( 42, - - 59 + + - 23 + 60 - - 35 ) AS col1
----
-81
123

skipif mysql # not compatible
query II rowsort label-1129
SELECT DISTINCT + 81 * - COUNT ( * ), + 81 - + - COALESCE ( 42, - - 59 + + - 23 + 60 - - 35 ) AS col1
----
-81
123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1130
SELECT 6 * - ( + 8 ) AS col0, CAST( NULL AS SIGNED ) AS col0
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-1130
SELECT 6 * - ( + 8 ) AS col0, CAST ( NULL AS INTEGER ) AS col0
----
-48
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1131
SELECT - ( + 20 ) col2, - COALESCE ( - + 2, - 14 + - MAX( 25 ) )
----
-20
2

skipif mysql # not compatible
query II rowsort label-1131
SELECT - ( + 20 ) col2, - COALESCE ( - + 2, - 14 + - MAX ( 25 ) )
----
-20
2

query II rowsort
SELECT 80 + 87 AS col0, - COALESCE ( 67, + 41, - - 58 )
----
167
-67

query I rowsort
SELECT - 45 + + COALESCE ( 84, 7 + 84 * ( + + 60 ) ) AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1134
SELECT ALL 19 + + + COUNT( * ) * + CAST( NULL AS SIGNED ) + + - 64 * 40 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL 19 + + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + - 64 * 40 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT - COALESCE ( + NULLIF ( - 49, - 17 ), NULLIF ( + COUNT( * ), 70 * COUNT( * ) ) * - 60 + + COUNT( * ) ) * 13
----
637

skipif mysql # not compatible
query I rowsort label-1135
SELECT - COALESCE ( + NULLIF ( - 49, - 17 ), NULLIF ( + COUNT ( * ), 70 * COUNT ( * ) ) * - 60 + + COUNT ( * ) ) * 13
----
637

query I rowsort
SELECT 18 * + 6
----
108

query II rowsort
SELECT + 11 + + + ( 7 ) + - + 78 * + - 93 + + 46 * + + 1 AS col0, 64 + 14 + - + 65 + - - 91
----
7318
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1138
SELECT ALL + MAX( ALL - + NULLIF ( + - 99, + 91 / + 43 + - - 59 ) ) + CASE - + COUNT( * ) WHEN 53 * - 45 * + - 32 * - 0 * + COALESCE ( CAST( NULL AS SIGNED ), 45 ) THEN + - CAST( NULLIF ( 14, + 29 * + 64 ) AS SIGNED ) WHEN - 73 * 46 THEN CASE + - 97 WHEN - AVG ( ALL - ( - 55 ) ) + + 28 THEN NULL WHEN + + COALESCE ( - 3, + + 2, - 35 ) THEN + 93 ELSE - - CAST( + COUNT( * ) AS SIGNED ) END / - 68 + 80 + 36 ELSE - CAST( NULL AS SIGNED ) END + 3 + - 89 + - COALESCE ( - - 77, 69 ) * + + 65 * + 4 * - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + MAX ( ALL - + NULLIF ( + - 99, + 91 / + 43 + - - 59 ) ) + CASE - + COUNT ( * ) WHEN 53 * - 45 * + - 32 * - 0 * + COALESCE ( CAST ( NULL AS INTEGER ), 45 ) THEN + - CAST ( NULLIF ( 14, + 29 * + 64 ) AS INTEGER ) WHEN - 73 * 46 THEN CASE + - 97 WHEN - AVG ( ALL - ( - 55 ) ) + + 28 THEN NULL WHEN + + COALESCE ( - 3, + + 2, - 35 ) THEN + 93 ELSE - - CAST ( + COUNT ( * ) AS INTEGER ) END / - 68 + 80 + 36 ELSE - CAST ( NULL AS INTEGER ) END + 3 + - 89 + - COALESCE ( - - 77, 69 ) * + + 65 * + 4 * - 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1139
SELECT DISTINCT + + COALESCE ( - 47, + COUNT( * ) + + 87 ) DIV + 75 * + - 9 + - 96 - + 15 + + + 57 * + 88 col0, - 28 col1
----
4905
-28

skipif mysql # not compatible
query II rowsort label-1139
SELECT DISTINCT + + COALESCE ( - 47, + COUNT ( * ) + + 87 ) / + 75 * + - 9 + - 96 - + 15 + + + 57 * + 88 col0, - 28 col1
----
4905
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT ALL + COUNT( * ) * + 48 + + + 94 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL + COUNT ( * ) * + 48 + + + 94 AS col2
----
142

query I rowsort
SELECT 98 * - 47 * 4
----
-18424

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL - 18 * - + 61 * - COUNT( * ) * - - 41 * + 13 * - NULLIF ( 77, + SUM( ( 39 ) ) + 40 ) AS col0
----
45063018

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - 18 * - + 61 * - COUNT ( * ) * - - 41 * + 13 * - NULLIF ( 77, + SUM ( ( 39 ) ) + 40 ) AS col0
----
45063018

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

query I rowsort
SELECT + CASE 40 WHEN + + 2 THEN NULL ELSE 40 END AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1145
SELECT - ( - ( + 32 ) ) + + COUNT( * ) - - 27 + MAX( DISTINCT + - 74 ), 24 + + + 46 col2
----
-14
70

skipif mysql # not compatible
query II rowsort label-1145
SELECT - ( - ( + 32 ) ) + + COUNT ( * ) - - 27 + MAX ( DISTINCT + - 74 ), 24 + + + 46 col2
----
-14
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL 30 - - MAX( ALL - 21 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL 30 - - MAX ( ALL - 21 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT 57 * - SUM( DISTINCT 0 ) + 99
----
99

skipif mysql # not compatible
query I rowsort label-1147
SELECT 57 * - SUM ( DISTINCT 0 ) + 99
----
99

query II rowsort
SELECT ALL - ( - 81 ), ( 17 ) AS col2
----
81
17

query I rowsort
SELECT - 18 * + 20
----
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT DISTINCT - COUNT( * ) AS col2, + COUNT( - + ( + 69 ) ) + 25 AS col1
----
-1
26

skipif mysql # not compatible
query II rowsort label-1150
SELECT DISTINCT - COUNT ( * ) AS col2, + COUNT ( - + ( + 69 ) ) + 25 AS col1
----
-1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL + 66 * - + NULLIF ( COALESCE ( 87, + + ( + 13 ) ), - COUNT( * ) + - MAX( + 19 ) ) AS col0
----
-5742

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL + 66 * - + NULLIF ( COALESCE ( 87, + + ( + 13 ) ), - COUNT ( * ) + - MAX ( + 19 ) ) AS col0
----
-5742

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1152
SELECT CAST( - 70 AS DECIMAL ) / + 17 * + CAST( NULL AS SIGNED ) + 42 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1152
SELECT CAST ( - 70 AS REAL ) / + 17 * + CAST ( NULL AS INTEGER ) + 42 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1153
SELECT + 34 col2, CASE + 84 WHEN 34 THEN 91 WHEN COUNT( * ) * ( 2 ) * + - 40 THEN 41 + + 27 * NULLIF ( - COUNT( * ), + 27 + 11 ) * + + 74 END AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-1153
SELECT + 34 col2, CASE + 84 WHEN 34 THEN 91 WHEN COUNT ( * ) * ( 2 ) * + - 40 THEN 41 + + 27 * NULLIF ( - COUNT ( * ), + 27 + 11 ) * + + 74 END AS col2
----
34
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1155
SELECT + 45 AS col0, 94 * + + CAST( + 98 AS SIGNED ) AS col0
----
45
9212

skipif mysql # not compatible
query II rowsort label-1155
SELECT + 45 AS col0, 94 * + + CAST ( + 98 AS INTEGER ) AS col0
----
45
9212

query I rowsort
SELECT DISTINCT + 48 * - - 44
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT 87 - + 88 + + COUNT( * ) * - 25
----
-26

skipif mysql # not compatible
query I rowsort label-1157
SELECT 87 - + 88 + + COUNT ( * ) * - 25
----
-26

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1160
SELECT DISTINCT 71 * - NULLIF ( CAST( NULL AS DECIMAL ), + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT 71 * - NULLIF ( CAST ( NULL AS REAL ), + 25 )
----
NULL

query I rowsort
SELECT DISTINCT 30 + + 16 + + 39 AS col1
----
85

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

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - CAST ( NULL AS REAL ) + + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT DISTINCT COUNT( ALL 90 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT COUNT ( ALL 90 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL + SUM( + 8 ) + + COUNT( * ) - 51 * 80 AS col0
----
-4071

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL + SUM ( + 8 ) + + COUNT ( * ) - 51 * 80 AS col0
----
-4071

query I rowsort
SELECT DISTINCT - 22 + + 64
----
42

query I rowsort
SELECT + 50 + 42
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT 64 - + MAX( - 8 )
----
72

skipif mysql # not compatible
query I rowsort label-1167
SELECT 64 - + MAX ( - 8 )
----
72

query I rowsort
SELECT - 33 - 51
----
-84

query I rowsort
SELECT ALL + 83 * 43 * - 95
----
-339055

query I rowsort
SELECT 43 + - 90 AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1171
SELECT - 40 AS col0, 40 * 2 * CAST( NULL AS SIGNED )
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-1171
SELECT - 40 AS col0, 40 * 2 * CAST ( NULL AS INTEGER )
----
-40
NULL

query II rowsort
SELECT - 63 AS col0, - 9 col0
----
-63
-9

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

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

query I rowsort
SELECT ALL + - 36 * - NULLIF ( + CASE - 13 WHEN 39 * ( 21 ) * 71 THEN + - 86 ELSE + - 32 END, 58 )
----
-1152

query I rowsort
SELECT ALL + NULLIF ( + 40, + - ( + 26 ) ) * - - 50 AS col1
----
2000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1176
SELECT ALL - COALESCE ( CAST( + ( 55 ) AS SIGNED ), 28 DIV + ( ( + 49 ) ) * - 92 + + 5 * + + 94 * COUNT( * ) + - 88 + 20 DIV - 61 )
----
-55

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL - COALESCE ( CAST ( + ( 55 ) AS INTEGER ), 28 / + ( ( + 49 ) ) * - 92 + + 5 * + + 94 * COUNT ( * ) + - 88 + 20 / - 61 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT - - ( - - MAX( ALL 57 ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1177
SELECT - - ( - - MAX ( ALL 57 ) ) AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1178
SELECT - - CAST( - 54 AS SIGNED ) - - 41 * - - 28 + + COUNT( * ) AS col1
----
1095

skipif mysql # not compatible
query I rowsort label-1178
SELECT - - CAST ( - 54 AS INTEGER ) - - 41 * - - 28 + + COUNT ( * ) AS col1
----
1095

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

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

query I rowsort
SELECT - 27 * 25 + + 30
----
-645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1181
SELECT DISTINCT + ( + COALESCE ( + ( + + 44 ), + 17 * - + 82, - 48 * - 89, + - 92 * - - 5 + CAST( NULL AS SIGNED ) + - 33 - ( - + NULLIF ( COUNT( * ), + COALESCE ( - 84, + + CASE + MAX( 85 ) WHEN + 70 * + 11 + - - 45 THEN NULL WHEN + 19 / COALESCE ( 80, - SUM( + - 59 ) ) THEN - 39 + COUNT( * ) END ) / 99 / + 85 - - 95 * 82 ) ) ) ), - 33 + + NULLIF ( - 30, + 33 ) + + - 73 + 65 + - 28 AS col0
----
44
-99

skipif mysql # not compatible
query II rowsort label-1181
SELECT DISTINCT + ( + COALESCE ( + ( + + 44 ), + 17 * - + 82, - 48 * - 89, + - 92 * - - 5 + CAST ( NULL AS INTEGER ) + - 33 - ( - + NULLIF ( COUNT ( * ), + COALESCE ( - 84, + + CASE + MAX ( 85 ) WHEN + 70 * + 11 + - - 45 THEN NULL WHEN + 19 / COALESCE ( 80, - SUM ( + - 59 ) ) THEN - 39 + COUNT ( * ) END ) / 99 / + 85 - - 95 * 82 ) ) ) ), - 33 + + NULLIF ( - 30, + 33 ) + + - 73 + 65 + - 28 AS col0
----
44
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT ALL - 70 DIV 65 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL - 70 / 65 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT CASE 32 WHEN + - SUM( ALL - + 1 ) / - + 21 THEN 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1183
SELECT CASE 32 WHEN + - SUM ( ALL - + 1 ) / - + 21 THEN 29 END
----
NULL

query I rowsort
SELECT - 61 + + 42
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT ( + MAX( 8 ) ) * + - 23 - - ( - - 17 ) + 37
----
-130

skipif mysql # not compatible
query I rowsort label-1185
SELECT ( + MAX ( 8 ) ) * + - 23 - - ( - - 17 ) + 37
----
-130

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

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

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

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

query I rowsort
SELECT + 43 + + 95 AS col0
----
138

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1189
SELECT ALL - 16 * + CAST( + CAST( + 26 AS DECIMAL ) AS SIGNED ) * 11 * - 36 + + 2 * - CASE - 1 WHEN - - 61 THEN 9 WHEN - 95 - 65 - - ( - 33 ) THEN NULL WHEN + + 42 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL - 16 * + CAST ( + CAST ( + 26 AS REAL ) AS INTEGER ) * 11 * - 36 + + 2 * - CASE - 1 WHEN - - 61 THEN 9 WHEN - 95 - 65 - - ( - 33 ) THEN NULL WHEN + + 42 THEN NULL END col1
----
NULL

query I rowsort
SELECT ALL + 80 * + 4 * 38 * + + 93 * - 93 AS col1
----
-105171840

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1191
SELECT 8 * + - 76 * - - COUNT( * ) + + 41 AS col2, - COUNT( * ) DIV - 6 * + + 90 AS col2
----
-567
0

skipif mysql # not compatible
query II rowsort label-1191
SELECT 8 * + - 76 * - - COUNT ( * ) + + 41 AS col2, - COUNT ( * ) / - 6 * + + 90 AS col2
----
-567
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT ALL 99 * 62 * + COUNT( * ) + - - 7
----
6145

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL 99 * 62 * + COUNT ( * ) + - - 7
----
6145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1194
SELECT DISTINCT - ( - 30 ) * + - COUNT( * ) DIV - 46 * + + MAX( DISTINCT + 74 ) + + 62 AS col1, + 21 AS col0
----
62
21

skipif mysql # not compatible
query II rowsort label-1194
SELECT DISTINCT - ( - 30 ) * + - COUNT ( * ) / - 46 * + + MAX ( DISTINCT + 74 ) + + 62 AS col1, + 21 AS col0
----
62
21

query I rowsort
SELECT - 36 * - + 32 + + 63 AS col0
----
1215

query I rowsort
SELECT - 18 + + + 69
----
51

query I rowsort
SELECT - - 17 * - + 93
----
-1581

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

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

query I rowsort
SELECT ALL + 53 - + 33 AS col1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1200
SELECT DISTINCT - MAX( DISTINCT 3 ) * MAX( - 55 ) - + + 42 AS col1, + 59 * 76 + 76
----
123
4560

skipif mysql # not compatible
query II rowsort label-1200
SELECT DISTINCT - MAX ( DISTINCT 3 ) * MAX ( - 55 ) - + + 42 AS col1, + 59 * 76 + 76
----
123
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1201
SELECT DISTINCT + 9 * - CAST( - 4 AS SIGNED ) + MAX( DISTINCT - 45 )
----
-9

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT + 9 * - CAST ( - 4 AS INTEGER ) + MAX ( DISTINCT - 45 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1202
SELECT DISTINCT - 29 DIV COUNT( * ) AS col1, 0 col0
----
-29
0

skipif mysql # not compatible
query II rowsort label-1202
SELECT DISTINCT - 29 / COUNT ( * ) AS col1, 0 col0
----
-29
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1203
SELECT + - 21 * + 0 + - MAX( + + 48 ) DIV + ( + 35 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1203
SELECT + - 21 * + 0 + - MAX ( + + 48 ) / + ( + 35 ) AS col0
----
-1

query I rowsort
SELECT - 96 + + - 77
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT DISTINCT + SUM( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT + SUM ( 90 )
----
90

query I rowsort
SELECT DISTINCT - - 83 * - - 70 * - 87
----
-505470

onlyif mysql # aggregate syntax: 
query II rowsort label-1207
SELECT DISTINCT - 33 * - - 28 * - + SUM( ALL + 94 ), 28 AS col0
----
86856
28

skipif mysql # not compatible
query II rowsort label-1207
SELECT DISTINCT - 33 * - - 28 * - + SUM ( ALL + 94 ), 28 AS col0
----
86856
28

onlyif mysql # DIV for integer division: 
query II rowsort label-1208
SELECT ALL + 75 + 34, 17 DIV - - 30 + 9 AS col1
----
109
9

skipif mysql # not compatible
query II rowsort label-1208
SELECT ALL + 75 + 34, 17 / - - 30 + 9 AS col1
----
109
9

query I rowsort
SELECT DISTINCT - 84 * + + 90 AS col2
----
-7560

query I rowsort
SELECT - 73 * 54 col2
----
-3942

onlyif mysql # DIV for integer division: 
query I rowsort label-1211
SELECT ALL + 99 DIV 93 + + 97 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL + 99 / 93 + + 97 AS col2
----
98

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

skipif mysql # not compatible
query I rowsort label-1212
SELECT CAST ( NULL AS INTEGER ) / - + ( + + 85 ) + 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1213
SELECT DISTINCT - 66 * - - MIN( DISTINCT - 93 ) / + 66 + CAST( - 32 AS SIGNED ) / + SUM( - + CAST( NULL AS SIGNED ) ) * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT - 66 * - - MIN ( DISTINCT - 93 ) / + 66 + CAST ( - 32 AS INTEGER ) / + SUM ( - + CAST ( NULL AS INTEGER ) ) * 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL + COALESCE ( 56, + + CASE - 67 WHEN + MAX( + - 93 ) * - 56 * - + 54 THEN - COUNT( * ) WHEN COUNT( * ) THEN + 74 + 73 * 93 END + - + 87 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL + COALESCE ( 56, + + CASE - 67 WHEN + MAX ( + - 93 ) * - 56 * - + 54 THEN - COUNT ( * ) WHEN COUNT ( * ) THEN + 74 + 73 * 93 END + - + 87 ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1215
SELECT - CAST( - 21 AS SIGNED ) + 78 * + + 37
----
2907

skipif mysql # not compatible
query I rowsort label-1215
SELECT - CAST ( - 21 AS INTEGER ) + 78 * + + 37
----
2907

onlyif mysql # DIV for integer division: 
query I rowsort label-1216
SELECT - 37 DIV 34
----
-1

skipif mysql # not compatible
query I rowsort label-1216
SELECT - 37 / 34
----
-1

query I rowsort
SELECT - 55 * 2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT ALL - ( - 20 ) / + ( - 83 ) + + ( - - CASE - 14 WHEN - 46 * + NULLIF ( 31, 68 ) / - 90 THEN - 76 WHEN + COUNT( * ) THEN NULL ELSE NULL END ) - - 43 + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - ( - 20 ) / + ( - 83 ) + + ( - - CASE - 14 WHEN - 46 * + NULLIF ( 31, 68 ) / - 90 THEN - 76 WHEN + COUNT ( * ) THEN NULL ELSE NULL END ) - - 43 + + 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1219
SELECT DISTINCT + 89 DIV + + 36 + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT + 89 / + + 36 + + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT ALL COUNT( * ) * - 68 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL COUNT ( * ) * - 68 AS col2
----
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-1221
SELECT DISTINCT - 31 DIV + 34 * + 17 AS col2, NULLIF ( - 63, ( - 98 ) ) AS col1
----
0
-63

skipif mysql # not compatible
query II rowsort label-1221
SELECT DISTINCT - 31 / + 34 * + 17 AS col2, NULLIF ( - 63, ( - 98 ) ) AS col1
----
0
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT DISTINCT 95 * 1 + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-1222
SELECT DISTINCT 95 * 1 + COUNT ( * )
----
96

query I rowsort
SELECT DISTINCT 12 * - 74
----
-888

query I rowsort
SELECT + 77 * + 11 * + 18
----
15246

query I rowsort
SELECT ALL + COALESCE ( + - 48, 59 ) * 68
----
-3264

query I rowsort
SELECT ALL - 49 * + 76 AS col2
----
-3724

query I rowsort
SELECT + 53 * + - 96 * - + CASE - 66 WHEN + - 58 THEN - 31 ELSE NULL END * - 46
----
NULL

query I rowsort
SELECT NULLIF ( - + 35, + - 74 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT CASE - CASE + 24 WHEN - + 23 THEN + - 6 ELSE NULL END WHEN 53 * - + 50 * 49 / COUNT( * ) THEN NULL WHEN + 30 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-1229
SELECT CASE - CASE + 24 WHEN - + 23 THEN + - 6 ELSE NULL END WHEN 53 * - + 50 * 49 / COUNT ( * ) THEN NULL WHEN + 30 THEN NULL ELSE + COUNT ( * ) END
----
1

query II rowsort
SELECT DISTINCT 77 * 57 * - NULLIF ( + 49, - + 23 ) AS col2, - 66
----
-215061
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT + 17 - CASE - 5 + + 18 WHEN + ( 66 ) * - 0 + COUNT( * ) THEN NULL ELSE 4 + + COUNT( * ) END
----
12

skipif mysql # not compatible
query I rowsort label-1231
SELECT + 17 - CASE - 5 + + 18 WHEN + ( 66 ) * - 0 + COUNT ( * ) THEN NULL ELSE 4 + + COUNT ( * ) END
----
12

query I rowsort
SELECT ALL - 41 * 25 AS col1
----
-1025

query I rowsort
SELECT + NULLIF ( + 22, + 58 * 75 + 12 / ( - 58 ) ) AS col1
----
22

query I rowsort
SELECT DISTINCT - 32 * + 55
----
-1760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT CASE + 23 WHEN - 93 THEN NULL WHEN + 75 + 73 * - CAST( NULL AS SIGNED ) THEN NULL ELSE + 0 + 37 END
----
37

skipif mysql # not compatible
query I rowsort label-1235
SELECT CASE + 23 WHEN - 93 THEN NULL WHEN + 75 + 73 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 0 + 37 END
----
37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT COUNT( 9 )
----
1

skipif mysql # not compatible
query I rowsort label-1237
SELECT COUNT ( 9 )
----
1

query I rowsort
SELECT + 40 - + 77
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT CASE - 88 WHEN 92 + + 96 THEN NULL WHEN + 12 THEN COUNT( DISTINCT + 73 ) * 13 ELSE - ( 59 ) END * - 16 AS col1
----
944

skipif mysql # not compatible
query I rowsort label-1239
SELECT CASE - 88 WHEN 92 + + 96 THEN NULL WHEN + 12 THEN COUNT ( DISTINCT + 73 ) * 13 ELSE - ( 59 ) END * - 16 AS col1
----
944

query I rowsort
SELECT ALL 63 * - 97
----
-6111

query I rowsort
SELECT ALL 98 * + 15
----
1470

query I rowsort
SELECT ALL COALESCE ( - 59, 68, 93 * 7 ) * - 13 col2
----
767

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL COALESCE ( + 49, - NULLIF ( 21, 7 * + 10 + 36 ) * COUNT( * ), 7 + + COUNT( * ) ) + 65 * - COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL COALESCE ( + 49, - NULLIF ( 21, 7 * + 10 + 36 ) * COUNT ( * ), 7 + + COUNT ( * ) ) + 65 * - COUNT ( * ) AS col1
----
-16

query I rowsort
SELECT ALL 3 + + 64 AS col1
----
67

query I rowsort
SELECT ALL 62 + 45
----
107

query I rowsort
SELECT DISTINCT 21 * + 86 AS col0
----
1806

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT 97 + - COUNT( * ) * 95
----
2

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT 97 + - COUNT ( * ) * 95
----
2

query I rowsort
SELECT DISTINCT 14 + 96
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT DISTINCT - MIN( ALL CASE - 48 WHEN 59 THEN NULL ELSE ( 50 ) + 60 * NULLIF ( 68, - 4 ) END ) + 16
----
-4114

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT - MIN ( ALL CASE - 48 WHEN 59 THEN NULL ELSE ( 50 ) + 60 * NULLIF ( 68, - 4 ) END ) + 16
----
-4114

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT ALL + 7 + - CASE NULLIF ( + 61, 70 ) WHEN COUNT( * ) / + 45 THEN + 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL + 7 + - CASE NULLIF ( + 61, 70 ) WHEN COUNT ( * ) / + 45 THEN + 27 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1251
SELECT CAST ( + 24 AS INTEGER ) - + COUNT ( * )
----
23

query I rowsort
SELECT 7 * 10 + CASE - 13 WHEN 84 THEN + 0 ELSE NULL END / - ( + 56 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 35 * + 71 AS col1
----
-2485

onlyif mysql # DIV for integer division: 
query I rowsort label-1254
SELECT + 35 DIV - 92 + 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-1254
SELECT + 35 / - 92 + 54 AS col0
----
54

query I rowsort
SELECT ALL - NULLIF ( 36, ( + 57 ) ) * 41 col2
----
-1476

onlyif mysql # DIV for integer division: 
query I rowsort label-1256
SELECT 6 + 5 DIV - 60
----
6

skipif mysql # not compatible
query I rowsort label-1256
SELECT 6 + 5 / - 60
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT ALL - COUNT( * ) + - 21
----
-22

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL - COUNT ( * ) + - 21
----
-22

query I rowsort
SELECT DISTINCT + 90 + 34 AS col2
----
124

query I rowsort
SELECT DISTINCT - 35 * + 11 AS col2
----
-385

query I rowsort
SELECT ALL + ( 7 ) - 37
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT 8 * - 42 - 84 DIV + 83 AS col2
----
-337

skipif mysql # not compatible
query I rowsort label-1261
SELECT 8 * - 42 - 84 / + 83 AS col2
----
-337

query I rowsort
SELECT ALL + 17 * + 78
----
1326

query I rowsort
SELECT 96 + 13 * 97 AS col0
----
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT - 91 * + COALESCE ( 70 * COUNT( * ), + 8 * 53 ) + + 79 AS col0
----
-6291

skipif mysql # not compatible
query I rowsort label-1264
SELECT - 91 * + COALESCE ( 70 * COUNT ( * ), + 8 * 53 ) + + 79 AS col0
----
-6291

query I rowsort
SELECT 12 + 26 AS col2
----
38

query I rowsort
SELECT - 28 * - 13 + - 64 * + 85
----
-5076

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1267
SELECT ALL + 73 DIV - COUNT( 76 * 71 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL + 73 / - COUNT ( 76 * 71 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT NULLIF ( 44, - 32 ) * + COUNT( * ) + - COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1268
SELECT NULLIF ( 44, - 32 ) * + COUNT ( * ) + - COUNT ( * ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1269
SELECT + CASE 46 WHEN - 20 * + CAST( NULL AS SIGNED ) THEN 79 * 15 - 13 / - 65 WHEN 4 * - 75 + 16 * 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1269
SELECT + CASE 46 WHEN - 20 * + CAST ( NULL AS INTEGER ) THEN 79 * 15 - 13 / - 65 WHEN 4 * - 75 + 16 * 80 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT COUNT( * ) + + 80 * 26 AS col2
----
2081

skipif mysql # not compatible
query I rowsort label-1270
SELECT COUNT ( * ) + + 80 * 26 AS col2
----
2081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1271
SELECT ALL + MAX( DISTINCT 28 ) DIV 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL + MAX ( DISTINCT 28 ) / 39 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1272
SELECT 72 DIV - 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1272
SELECT 72 / - 47 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT ALL + 34 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL + 34 / 45
----
0

query I rowsort
SELECT ALL + 71 * 13 AS col1
----
923

query I rowsort
SELECT - 28 * - 16 AS col0
----
448

query I rowsort
SELECT 21 * COALESCE ( + 36 + ( 64 ) * - 69, 78 * - 40 - + 1 )
----
-91980

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + - MIN( DISTINCT 72 ) * 33 + 77
----
-2299

skipif mysql # not compatible
query I rowsort label-1277
SELECT + - MIN ( DISTINCT 72 ) * 33 + 77
----
-2299

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

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

query I rowsort
SELECT ALL CASE 82 WHEN 7 THEN 73 WHEN 47 * - 36 THEN NULL ELSE NULL END * 49
----
NULL

query I rowsort
SELECT 41 * 83
----
3403

query I rowsort
SELECT DISTINCT + NULLIF ( - 35, ( 51 ) * + 11 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT DISTINCT - - MIN( DISTINCT ( + 72 ) ) * + 23
----
1656

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT - - MIN ( DISTINCT ( + 72 ) ) * + 23
----
1656

query I rowsort
SELECT DISTINCT - - 12 + - 92 AS col0
----
-80

query I rowsort
SELECT ALL + 49 * 98
----
4802

query I rowsort
SELECT 21 * - 98
----
-2058

query I rowsort
SELECT DISTINCT + 27 + + 62 AS col2
----
89

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

skipif mysql # not compatible
query I rowsort label-1287
SELECT + SUM ( + 46 )
----
46

query I rowsort
SELECT ALL - 58 + - 76
----
-134

query I rowsort
SELECT 69 - 49 * 92
----
-4439

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT ALL - CASE WHEN - 7 IS NULL THEN 4 WHEN - 32 BETWEEN + AVG ( 48 ) * - 54 AND + 21 * COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL - CASE WHEN - 7 IS NULL THEN 4 WHEN - 32 BETWEEN + AVG ( 48 ) * - 54 AND + 21 * COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( - 74 ) + 41 * + 25 AS col2
----
951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1293
SELECT ALL CAST( + 1 AS SIGNED ) + SUM( DISTINCT + 76 )
----
77

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL CAST ( + 1 AS INTEGER ) + SUM ( DISTINCT + 76 )
----
77

query I rowsort
SELECT ALL 50 + 71
----
121

query I rowsort
SELECT 78 + - - 29 + + 12
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT 91 - - CAST( 24 AS SIGNED )
----
115

skipif mysql # not compatible
query I rowsort label-1296
SELECT 91 - - CAST ( 24 AS INTEGER )
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-1297
SELECT DISTINCT 55 * 6 DIV + NULLIF ( - 64, - 8 + + 72 * - 36 )
----
-5

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT 55 * 6 / + NULLIF ( - 64, - 8 + + 72 * - 36 )
----
-5

query I rowsort
SELECT COALESCE ( + 87, 32 ) + + 59 AS col2
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1299
SELECT ALL - MIN( DISTINCT - - CAST( - COALESCE ( 91, 34 * + 78, - 49 ) AS SIGNED ) )
----
91

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL - MIN ( DISTINCT - - CAST ( - COALESCE ( 91, 34 * + 78, - 49 ) AS INTEGER ) )
----
91

query I rowsort
SELECT 32 + - 17 AS col2
----
15

query I rowsort
SELECT ALL + 41 * - - ( 60 ) - 70
----
2390

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT 3 DIV - - 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT 3 / - - 38 AS col1
----
0

query I rowsort
SELECT NULLIF ( - 88, 35 ) * + 69 AS col0
----
-6072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT ALL + CAST( + 7 AS SIGNED ) * - 54 col1
----
-378

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL + CAST ( + 7 AS INTEGER ) * - 54 col1
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT 38 * - COUNT( * ) * 8
----
-304

skipif mysql # not compatible
query I rowsort label-1305
SELECT 38 * - COUNT ( * ) * 8
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT DISTINCT + + COUNT( * ) * 1 * + 25 + + 1 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT + + COUNT ( * ) * 1 * + 25 + + 1 AS col0
----
26

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

query I rowsort
SELECT + + 41 col0
----
41

query I rowsort
SELECT ALL + 5 * ( + 82 ) AS col0
----
410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1310
SELECT + 6 * + AVG ( - CAST( NULL AS SIGNED ) ) + 33 + 1 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1310
SELECT + 6 * + AVG ( - CAST ( NULL AS INTEGER ) ) + 33 + 1 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT - 30 * - COUNT( * ) * + 33 + + 84 col1
----
1074

skipif mysql # not compatible
query I rowsort label-1311
SELECT - 30 * - COUNT ( * ) * + 33 + + 84 col1
----
1074

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT - COUNT( * ) * - 64 * - ( + 2 )
----
-128

skipif mysql # not compatible
query I rowsort label-1312
SELECT - COUNT ( * ) * - 64 * - ( + 2 )
----
-128

query I rowsort
SELECT ALL + + 76 + 39 + - 52 col2
----
63

query I rowsort
SELECT DISTINCT - 12 + 95 * 37
----
3503

query I rowsort
SELECT ALL + 90 + - 65
----
25

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

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

query I rowsort
SELECT DISTINCT 15 + 7 * - COALESCE ( 92 * + ( 85 ), 51 ) AS col2
----
-54725

query I rowsort
SELECT ALL - 98 + 52
----
-46

query I rowsort
SELECT DISTINCT - + 34 + - - 78 * - 74 AS col2
----
-5806

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT - + 23 + - COUNT( * )
----
-24

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

query I rowsort
SELECT + 18 * - 20 - + 55
----
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT DISTINCT NULLIF ( + COUNT( * ), - SUM( 35 ) / - MAX( ALL 80 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT NULLIF ( + COUNT ( * ), - SUM ( 35 ) / - MAX ( ALL 80 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT - CASE + 24 WHEN + 95 THEN + 35 + 72 ELSE NULL END + 29 * 75
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1325
SELECT DISTINCT MAX( - ( CAST( NULL AS SIGNED ) ) ) * + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT MAX ( - ( CAST ( NULL AS INTEGER ) ) ) * + 97 AS col0
----
NULL

query II rowsort
SELECT ALL 74 AS col2, 82 AS col1
----
74
82

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

query I rowsort
SELECT ALL - 90 - + NULLIF ( 10, - 24 * 33 - + 69 ) AS col0
----
-100

query I rowsort
SELECT DISTINCT + 35 * - 82
----
-2870

query II rowsort
SELECT ALL 83 AS col2, 2
----
83
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT - CASE 0 WHEN + + ( + ( 61 ) ) * 78 + - SUM( ALL - 87 ) THEN + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1331
SELECT - CASE 0 WHEN + + ( + ( 61 ) ) * 78 + - SUM ( ALL - 87 ) THEN + 98 END
----
NULL

query I rowsort
SELECT - NULLIF ( - 86, + 45 )
----
86

query I rowsort
SELECT + 42 + - - ( - ( + 94 ) ) * - 67
----
6340

query I rowsort
SELECT DISTINCT 54 * - 56
----
-3024

query I rowsort
SELECT ALL + CASE - 75 WHEN + 45 THEN NULL WHEN 86 THEN 57 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT ALL 89 * + ( + ( + CASE - 8 WHEN + 55 + - COUNT( * ) * 86 THEN NULL WHEN 96 + + 86 THEN NULL ELSE - 43 END ) ) * 48
----
-183696

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL 89 * + ( + ( + CASE - 8 WHEN + 55 + - COUNT ( * ) * 86 THEN NULL WHEN 96 + + 86 THEN NULL ELSE - 43 END ) ) * 48
----
-183696

query I rowsort
SELECT + 94 + - 31
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1338
SELECT ALL 0 * - COALESCE ( + ( ( 11 ) ), - 52 + 26, + ( COUNT( * ) ) * + 84 ) DIV + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL 0 * - COALESCE ( + ( ( 11 ) ), - 52 + 26, + ( COUNT ( * ) ) * + 84 ) / + 95 AS col2
----
0

query I rowsort
SELECT DISTINCT 18 * - 98
----
-1764

query I rowsort
SELECT ( ( 33 ) ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT + 45 * + - 17 + + - 1 DIV + 61
----
-765

skipif mysql # not compatible
query I rowsort label-1341
SELECT + 45 * + - 17 + + - 1 / + 61
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT DISTINCT + 32 * - + COUNT( * ) + + - 33
----
-65

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT + 32 * - + COUNT ( * ) + + - 33
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1343
SELECT ALL + + 40, CAST( NULL AS SIGNED ) - + - ( - 49 ) - COUNT( * ) AS col1
----
40
NULL

skipif mysql # not compatible
query II rowsort label-1343
SELECT ALL + + 40, CAST ( NULL AS INTEGER ) - + - ( - 49 ) - COUNT ( * ) AS col1
----
40
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1344
SELECT DISTINCT COALESCE ( 23, 53 * ( 49 ) + - 5 ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT COALESCE ( 23, 53 * ( 49 ) + - 5 ) / 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT - + SUM( - 10 ) + - 77 - - 40 * - 81 * + ( + 84 ) AS col0
----
-272227

skipif mysql # not compatible
query I rowsort label-1345
SELECT - + SUM ( - 10 ) + - 77 - - 40 * - 81 * + ( + 84 ) AS col0
----
-272227

query I rowsort
SELECT + - 63 + + ( - 34 ) col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1347
SELECT - COUNT( * ) col1, CAST( NULL AS DECIMAL ) + 36
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1347
SELECT - COUNT ( * ) col1, CAST ( NULL AS REAL ) + 36
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT ALL ( - + SUM( ALL - 8 ) ) * - 91 + + 83
----
-645

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL ( - + SUM ( ALL - 8 ) ) * - 91 + + 83
----
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT + - ( + COUNT( ALL + 15 ) ) * 21 + + 9 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1349
SELECT + - ( + COUNT ( ALL + 15 ) ) * 21 + + 9 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT + - 13 + + COUNT( * ) + + 48
----
36

skipif mysql # not compatible
query I rowsort label-1350
SELECT + - 13 + + COUNT ( * ) + + 48
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT ALL - 60 * + 10 * + COUNT( * ) + + 55
----
-545

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL - 60 * + 10 * + COUNT ( * ) + + 55
----
-545

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1352
SELECT + - 58 col1, - CAST( 9 AS SIGNED ) AS col2
----
-58
-9

skipif mysql # not compatible
query II rowsort label-1352
SELECT + - 58 col1, - CAST ( 9 AS INTEGER ) AS col2
----
-58
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT ALL 43 * 52 + - 80 * COUNT( * )
----
2156

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL 43 * 52 + - 80 * COUNT ( * )
----
2156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1354
SELECT DISTINCT + 10 * 7 + - + CAST( NULL AS SIGNED ) + - ( 15 ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT + 10 * 7 + - + CAST ( NULL AS INTEGER ) + - ( 15 ) * 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1355
SELECT + COALESCE ( + COUNT( * ), - - NULLIF ( - 59, NULLIF ( + COUNT( * ), - 81 DIV COUNT( * ) ) DIV ( - 36 + 83 * + CAST( + 76 AS SIGNED ) ) ) * 94 ) DIV 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1355
SELECT + COALESCE ( + COUNT ( * ), - - NULLIF ( - 59, NULLIF ( + COUNT ( * ), - 81 / COUNT ( * ) ) / ( - 36 + 83 * + CAST ( + 76 AS INTEGER ) ) ) * 94 ) / 46 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT 72 * - - ( - 83 ) + MIN( + 49 + CASE ( CASE WHEN NULL IN ( 76 ) THEN 71 * 86 + + 12 ELSE + ( + 89 ) END ) + 80 WHEN + 25 THEN 25 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1356
SELECT 72 * - - ( - 83 ) + MIN ( + 49 + CASE ( CASE WHEN NULL IN ( 76 ) THEN 71 * 86 + + 12 ELSE + ( + 89 ) END ) + 80 WHEN + 25 THEN 25 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT ALL CASE - 65 WHEN 78 THEN COALESCE ( 31, 87 ) END * COUNT( * ) + - 35 / 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL CASE - 65 WHEN 78 THEN COALESCE ( 31, 87 ) END * COUNT ( * ) + - 35 / 91 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 55 AS col0, - 52
----
55
-52

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

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

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

skipif mysql # not compatible
query II rowsort label-1360
SELECT 86 AS col2, COUNT ( * ) AS col1
----
86
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1361
SELECT DISTINCT 53 * + 31 - + + MAX( 48 ) + 68 DIV 49
----
1596

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT 53 * + 31 - + + MAX ( 48 ) + 68 / 49
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT DISTINCT - 76 - + 65 * COUNT( * ) + - - 34 * + 64
----
2035

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT - 76 - + 65 * COUNT ( * ) + - - 34 * + 64
----
2035

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT NULLIF ( + - NULLIF ( 53, + MIN( DISTINCT ( 90 ) ) * - 63 ), - 75 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT NULLIF ( + - NULLIF ( 53, + MIN ( DISTINCT ( 90 ) ) * - 63 ), - 75 ) AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1364
SELECT ALL CASE + COUNT( * ) WHEN 32 THEN NULL WHEN 52 THEN - CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL CASE + COUNT ( * ) WHEN 32 THEN NULL WHEN 52 THEN - CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query II rowsort
SELECT - 61 * 97 AS col2, 10 AS col2
----
-5917
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1366
SELECT ALL - MIN( ALL ( - 64 ) ) DIV 1 * 82 col0
----
5248

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL - MIN ( ALL ( - 64 ) ) / 1 * 82 col0
----
5248

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

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

query II rowsort
SELECT - 37 * - 58, + 25 AS col0
----
2146
25

query I rowsort
SELECT - 54 + + 19 + + 52 * - 34
----
-1803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT ALL CAST( - 12 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL CAST ( - 12 AS INTEGER )
----
-12

query I rowsort
SELECT ALL - 58 * + 23
----
-1334

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1372
SELECT + 31 + 13 - - COALESCE ( 94, CAST( NULL AS SIGNED ) + ( 35 ) ) DIV 24
----
47

skipif mysql # not compatible
query I rowsort label-1372
SELECT + 31 + 13 - - COALESCE ( 94, CAST ( NULL AS INTEGER ) + ( 35 ) ) / 24
----
47

query I rowsort
SELECT - 1 * + NULLIF ( 31, - 49 * 40 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT ALL + 86 * + + SUM( ALL + 67 )
----
5762

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL + 86 * + + SUM ( ALL + 67 )
----
5762

query I rowsort
SELECT ALL ( - + 75 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT - MAX( DISTINCT NULLIF ( + 6, + 32 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-1376
SELECT - MAX ( DISTINCT NULLIF ( + 6, + 32 ) )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1377
SELECT DISTINCT CAST( + - 43 AS SIGNED ) col2, + 53 + 61
----
-43
114

skipif mysql # not compatible
query II rowsort label-1377
SELECT DISTINCT CAST ( + - 43 AS INTEGER ) col2, + 53 + 61
----
-43
114

query I rowsort
SELECT ALL - ( 30 ) + 65
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1379
SELECT - NULLIF ( CAST( + 0 AS SIGNED ), - - 23 )
----
0

skipif mysql # not compatible
query I rowsort label-1379
SELECT - NULLIF ( CAST ( + 0 AS INTEGER ), - - 23 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1380
SELECT ALL + 27 DIV 39 + - MIN( DISTINCT + 33 ) + - 20 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL + 27 / 39 + - MIN ( DISTINCT + 33 ) + - 20 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL - ( - - MIN( DISTINCT 38 ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL - ( - - MIN ( DISTINCT 38 ) ) AS col1
----
-38

onlyif mysql # DIV for integer division: 
query II rowsort label-1382
SELECT 31 * + 28 AS col1, - 7 DIV - 77
----
868
0

skipif mysql # not compatible
query II rowsort label-1382
SELECT 31 * + 28 AS col1, - 7 / - 77
----
868
0

query I rowsort
SELECT + ( 58 ) * - 83
----
-4814

query I rowsort
SELECT ALL - 72 + - 72 - - - 20 AS col2
----
-164

query I rowsort
SELECT DISTINCT 34 + + - 64 + + + 57 + - 22 + - 95 * 67 * + 6
----
-38185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1386
SELECT - 21 * + 87 * - + NULLIF ( ( - 58 ), + 50 - CAST( NULL AS SIGNED ) )
----
-105966

skipif mysql # not compatible
query I rowsort label-1386
SELECT - 21 * + 87 * - + NULLIF ( ( - 58 ), + 50 - CAST ( NULL AS INTEGER ) )
----
-105966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1387
SELECT ALL CAST( 5 AS SIGNED ) + - 2
----
3

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL CAST ( 5 AS INTEGER ) + - 2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT 7 * - + MAX( ALL - 11 ) + - ( 59 ) + + 85 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-1388
SELECT 7 * - + MAX ( ALL - 11 ) + - ( 59 ) + + 85 AS col1
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1389
SELECT COUNT( + 7 ) DIV - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1389
SELECT COUNT ( + 7 ) / - 73 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1390
SELECT ALL + 96 - - 38 AS col2, 72 * - NULLIF ( - COALESCE ( ( 56 ), 10 - 54 ), - CASE + COUNT( * ) WHEN + ( 64 ) * - NULLIF ( CAST( - COUNT( * ) AS DECIMAL ) * COUNT( * ) + - 20, 97 + 7 * 47 ) THEN 63 + 90 END + - COUNT( * ) ) * - 30 - 63 AS col1
----
134
-121023

skipif mysql # not compatible
query II rowsort label-1390
SELECT ALL + 96 - - 38 AS col2, 72 * - NULLIF ( - COALESCE ( ( 56 ), 10 - 54 ), - CASE + COUNT ( * ) WHEN + ( 64 ) * - NULLIF ( CAST ( - COUNT ( * ) AS REAL ) * COUNT ( * ) + - 20, 97 + 7 * 47 ) THEN 63 + 90 END + - COUNT ( * ) ) * - 30 - 63 AS col1
----
134
-121023

onlyif mysql # aggregate syntax: 
query II rowsort label-1391
SELECT + COUNT( * ) * - 40, 66 AS col0
----
-40
66

skipif mysql # not compatible
query II rowsort label-1391
SELECT + COUNT ( * ) * - 40, 66 AS col0
----
-40
66

query II rowsort
SELECT 96 * + 53 AS col1, 28
----
5088
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1393
SELECT DISTINCT 63 DIV - CAST( - 31 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT 63 / - CAST ( - 31 AS INTEGER )
----
2

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

skipif mysql # not compatible
query I rowsort label-1394
SELECT COUNT ( * ) * + 14 - + - ( - 35 ) + 19 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT ALL - + 54 * 28 DIV + + 33
----
-45

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL - + 54 * 28 / + + 33
----
-45

query I rowsort
SELECT DISTINCT 26 * - + 38 AS col2
----
-988

query I rowsort
SELECT 90 + + 68 col2
----
158

query I rowsort
SELECT 26 - + 98 AS col0
----
-72

query I rowsort
SELECT 35 - - 83
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT 51 * + COUNT( DISTINCT 15 ) * + + NULLIF ( - 29, CASE 51 WHEN COUNT( * ) THEN - 33 + + 86 * + 58 END + 92 * - 15 ) + 83 * 5
----
-1064

skipif mysql # not compatible
query I rowsort label-1400
SELECT 51 * + COUNT ( DISTINCT 15 ) * + + NULLIF ( - 29, CASE 51 WHEN COUNT ( * ) THEN - 33 + + 86 * + 58 END + 92 * - 15 ) + 83 * 5
----
-1064

query I rowsort
SELECT 22 * - 68 AS col2
----
-1496

query I rowsort
SELECT ALL 25 * + NULLIF ( + 37, 82 ) col2
----
925

query II rowsort
SELECT DISTINCT 44 AS col2, 41
----
44
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1404
SELECT ALL - 27 DIV + 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL - 27 / + 59 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT 41 DIV + + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1405
SELECT 41 / + + 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL + ( + + COUNT( * ) ) + - 16 * - - 64 * - 53
----
54273

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + ( + + COUNT ( * ) ) + - 16 * - - 64 * - 53
----
54273

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT DISTINCT - COUNT( * ) + + - SUM( - 21 )
----
20

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT - COUNT ( * ) + + - SUM ( - 21 )
----
20

query I rowsort
SELECT DISTINCT + 10 * 26
----
260

query I rowsort
SELECT 21 + + 35
----
56

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

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

query I rowsort
SELECT 31 + - 6 - - 36
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1412
SELECT 66 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-1412
SELECT 66 / 45
----
1

query I rowsort
SELECT 37 * + + 34
----
1258

query I rowsort
SELECT DISTINCT + 10 * 69 AS col1
----
690

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1415
SELECT ALL - 27 + - + 60 / - CAST( NULL AS DECIMAL ) * - - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL - 27 + - + 60 / - CAST ( NULL AS REAL ) * - - 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT 72 + - + NULLIF ( - 39, - 49 + 52 * MAX( DISTINCT + 31 ) )
----
111

skipif mysql # not compatible
query I rowsort label-1416
SELECT 72 + - + NULLIF ( - 39, - 49 + 52 * MAX ( DISTINCT + 31 ) )
----
111

query I rowsort
SELECT ALL + + 95 + + 20
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT + 86 DIV 57 + + 98 col2
----
99

skipif mysql # not compatible
query I rowsort label-1418
SELECT + 86 / 57 + + 98 col2
----
99

query I rowsort
SELECT ALL - ( - 7 ) * - - 22 * - 32
----
-4928

onlyif mysql # DIV for integer division: 
query I rowsort label-1420
SELECT + + CASE + - 66 WHEN + 87 THEN - + ( - 37 ) * 98 ELSE + 60 DIV 48 END
----
1

skipif mysql # not compatible
query I rowsort label-1420
SELECT + + CASE + - 66 WHEN + 87 THEN - + ( - 37 ) * 98 ELSE + 60 / 48 END
----
1

query II rowsort
SELECT DISTINCT - 82 AS col0, 50
----
-82
50

query I rowsort
SELECT DISTINCT - 33 + + 24 AS col0
----
-9

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

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

query II rowsort
SELECT + + 74 col0, CASE WHEN NOT NULL >= ( NULL ) THEN NULL ELSE 80 END * - 68
----
74
-5440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1425
SELECT - 11 DIV 15 + + + COUNT( ALL - 57 ) + + 55 + ( 13 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1425
SELECT - 11 / 15 + + + COUNT ( ALL - 57 ) + + 55 + ( 13 ) AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1426
SELECT DISTINCT - MIN( - 31 ) DIV + ( + - 57 ) * - - MIN( ALL - 81 )
----
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT - MIN ( - 31 ) / + ( + - 57 ) * - - MIN ( ALL - 81 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT + + NULLIF ( + NULLIF ( + 73, ( + COUNT( * ) ) * - 14 ), + SUM( DISTINCT + NULLIF ( 57, + 2 / 32 ) ) )
----
73

skipif mysql # not compatible
query I rowsort label-1427
SELECT + + NULLIF ( + NULLIF ( + 73, ( + COUNT ( * ) ) * - 14 ), + SUM ( DISTINCT + NULLIF ( 57, + 2 / 32 ) ) )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1428
SELECT ALL 52 * - + CAST( NULL AS SIGNED ) * 50 * - 23 + + + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL 52 * - + CAST ( NULL AS INTEGER ) * 50 * - 23 + + + 27 AS col0
----
NULL

query I rowsort
SELECT - ( + 4 ) * + 79 * + 84
----
-26544

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ALL - 64 - + - COUNT( * ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL - 64 - + - COUNT ( * ) AS col2
----
-63

query I rowsort
SELECT DISTINCT - ( 83 ) AS col2
----
-83

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

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

query I rowsort
SELECT ALL + 73 * + + NULLIF ( 33, 5 ) * 40 * + 38 AS col1
----
3661680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1434
SELECT DISTINCT COUNT( * ) * + - 75 DIV + - COUNT( ALL 19 ) - 7 col1
----
68

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT COUNT ( * ) * + - 75 / + - COUNT ( ALL 19 ) - 7 col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT 87 + COUNT( * ) * - NULLIF ( 64, - 33 * + 11 + 59 / + 41 - - COUNT( * ) ) + + 2
----
25

skipif mysql # not compatible
query I rowsort label-1435
SELECT 87 + COUNT ( * ) * - NULLIF ( 64, - 33 * + 11 + 59 / + 41 - - COUNT ( * ) ) + + 2
----
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1436
SELECT MIN( - 72 ) / - COUNT( DISTINCT - 51 ) * CAST( NULL AS DECIMAL ) + - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1436
SELECT MIN ( - 72 ) / - COUNT ( DISTINCT - 51 ) * CAST ( NULL AS REAL ) + - 57 AS col1
----
NULL

query I rowsort
SELECT ( 81 ) * - 40
----
-3240

query I rowsort
SELECT 6 * 71
----
426

query I rowsort
SELECT 42 * 14
----
588

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT ALL ( + + 21 ) DIV - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL ( + + 21 ) / - 80 AS col0
----
0

query I rowsort
SELECT ( + - COALESCE ( 63, 11 + + 63 ) ) + + + ( - 93 ) + + 69 AS col1
----
-87

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

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

query II rowsort
SELECT ALL 91, 50 AS col1
----
91
50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1445
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) + 13
----
12

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) + 13
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL + 87 + - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL + 87 + - COUNT ( * ) AS col2
----
86

query I rowsort
SELECT + 59 * 73
----
4307

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT ALL + 24 + - COUNT( ALL + - 86 )
----
23

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL + 24 + - COUNT ( ALL + - 86 )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1450
SELECT DISTINCT + 23 + 9 DIV - + 47 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT + 23 + 9 / - + 47 AS col1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1451
SELECT DISTINCT CASE 71 WHEN - 29 + + 27 THEN + + 43 WHEN CAST( NULL AS SIGNED ) THEN 56 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT CASE 71 WHEN - 29 + + 27 THEN + + 43 WHEN CAST ( NULL AS INTEGER ) THEN 56 END AS col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT DISTINCT + 73 * + MAX( - - 11 ) * - 92 + - - COUNT( * ) AS col0
----
-73875

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT + 73 * + MAX ( - - 11 ) * - 92 + - - COUNT ( * ) AS col0
----
-73875

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT ALL - + 55 - - + MIN( ALL + 87 ) col0
----
32

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL - + 55 - - + MIN ( ALL + 87 ) col0
----
32

query I rowsort
SELECT - + 51 * - 90
----
4590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1457
SELECT - 40 DIV SUM( - + 45 ) + + 24 * 48 AS col1
----
1152

skipif mysql # not compatible
query I rowsort label-1457
SELECT - 40 / SUM ( - + 45 ) + + 24 * 48 AS col1
----
1152

query I rowsort
SELECT ALL - 11 * 49 * 7 - - 30 * + + 30
----
-2873

query I rowsort
SELECT DISTINCT + - 25 * - COALESCE ( 73, + + 77 ) AS col1
----
1825

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT - 97 * + 41 * - COUNT( * )
----
3977

skipif mysql # not compatible
query I rowsort label-1461
SELECT - 97 * + 41 * - COUNT ( * )
----
3977

onlyif mysql # aggregate syntax: 
query II rowsort label-1462
SELECT + COUNT( * ), 56 * + 15 AS col1
----
1
840

skipif mysql # not compatible
query II rowsort label-1462
SELECT + COUNT ( * ), 56 * + 15 AS col1
----
1
840

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT - + ( + - 72 ) DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-1463
SELECT - + ( + - 72 ) / - 87
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1465
SELECT ALL + + COUNT( * ), CASE - 80 WHEN NULLIF ( ( + + 91 ), - MAX( ALL - 68 ) ) THEN - COUNT( * ) ELSE NULL END * 28 + + COUNT( * ) col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1465
SELECT ALL + + COUNT ( * ), CASE - 80 WHEN NULLIF ( ( + + 91 ), - MAX ( ALL - 68 ) ) THEN - COUNT ( * ) ELSE NULL END * 28 + + COUNT ( * ) col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1466
SELECT DISTINCT + 33, + COALESCE ( + MIN( 18 ), - 12 + + 83 * + 30 ) * - 19 AS col1
----
33
-342

skipif mysql # not compatible
query II rowsort label-1466
SELECT DISTINCT + 33, + COALESCE ( + MIN ( 18 ), - 12 + + 83 * + 30 ) * - 19 AS col1
----
33
-342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1467
SELECT - CASE - CAST( - 64 AS SIGNED ) WHEN + 97 THEN - - 56 WHEN - + 59 THEN - 22 / 10 WHEN - 31 THEN NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT - CASE - CAST ( - 64 AS INTEGER ) WHEN + 97 THEN - - 56 WHEN - + 59 THEN - 22 / 10 WHEN - 31 THEN NULL END * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1468
SELECT 17 AS col1, + 23 + + 75 + + COUNT( * ) DIV 11 * - 43 AS col0
----
17
98

skipif mysql # not compatible
query II rowsort label-1468
SELECT 17 AS col1, + 23 + + 75 + + COUNT ( * ) / 11 * - 43 AS col0
----
17
98

query I rowsort
SELECT NULLIF ( 83, - - 14 ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT CASE + - 51 WHEN 19 * + COUNT( * ) THEN + + ( - 4 ) / + 13 + 12 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT CASE + - 51 WHEN 19 * + COUNT ( * ) THEN + + ( - 4 ) / + 13 + 12 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT + COUNT( * ) * + 36 * 17
----
612

skipif mysql # not compatible
query I rowsort label-1471
SELECT + COUNT ( * ) * + 36 * 17
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT ALL - SUM( DISTINCT 2 ) * - 57 + 48 * 60
----
2994

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL - SUM ( DISTINCT 2 ) * - 57 + 48 * 60
----
2994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1473
SELECT ALL + COUNT( ALL + CAST( NULL AS SIGNED ) ) * - 13 + - + 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * - 13 + - + 99 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT - 78 + COUNT( * ) + 99 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1474
SELECT - 78 + COUNT ( * ) + 99 AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1475
SELECT ALL CAST( - 89 AS SIGNED ) * - 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL CAST ( - 89 AS INTEGER ) * - 0 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1476
SELECT - 96 / + - 85
----
1

query I rowsort
SELECT ALL - 94 * - 49 + - 53
----
4553

query I rowsort
SELECT ALL 98 * + 47 + - + 18 col2
----
4588

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT - CASE - 72 WHEN 21 + MAX( - + 86 ) THEN 67 WHEN + CASE - 86 WHEN + 95 THEN - 58 WHEN + 20 + 37 THEN 36 WHEN + 96 THEN - SUM( DISTINCT - 51 ) * + 12 WHEN 1 * + 20 + - 68 THEN 70 * - 70 ELSE NULL END THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1479
SELECT - CASE - 72 WHEN 21 + MAX ( - + 86 ) THEN 67 WHEN + CASE - 86 WHEN + 95 THEN - 58 WHEN + 20 + 37 THEN 36 WHEN + 96 THEN - SUM ( DISTINCT - 51 ) * + 12 WHEN 1 * + 20 + - 68 THEN 70 * - 70 ELSE NULL END THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL + NULLIF ( - + 40, - COUNT( * ) + COUNT( * ) ) * + - 86 AS col1
----
3440

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL + NULLIF ( - + 40, - COUNT ( * ) + COUNT ( * ) ) * + - 86 AS col1
----
3440

query I rowsort
SELECT + 24 - - 99 + 74 + - + 4
----
193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1482
SELECT ALL 48 + + + 43 - + + CAST( NULL AS SIGNED ) - - + 42 * + COUNT( * ) * - - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL 48 + + + 43 - + + CAST ( NULL AS INTEGER ) - - + 42 * + COUNT ( * ) * - - 25 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT ALL 24 + + 56 DIV 2 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL 24 + + 56 / 2 AS col1
----
52

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

skipif mysql # not compatible
query I rowsort label-1484
SELECT + 30 - + + CAST ( NULL AS INTEGER ) * + 54
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT DISTINCT 41 DIV - - 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT 41 / - - 36 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1486
SELECT - CASE - 11 WHEN NULLIF ( + COUNT( * ), - - 68 ) * 40 + 37 + CAST( + 22 AS DECIMAL ) * 50 - + 59 THEN MIN( 35 ) * - 81 WHEN 78 * + 65 THEN NULL WHEN 5 + + 15 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1486
SELECT - CASE - 11 WHEN NULLIF ( + COUNT ( * ), - - 68 ) * 40 + 37 + CAST ( + 22 AS REAL ) * 50 - + 59 THEN MIN ( 35 ) * - 81 WHEN 78 * + 65 THEN NULL WHEN 5 + + 15 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT + 64 + + COUNT( * ) + ( + + 18 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1487
SELECT + 64 + + COUNT ( * ) + ( + + 18 ) AS col0
----
83

query I rowsort
SELECT ALL 41 * - 13 AS col2
----
-533

query I rowsort
SELECT + 10 - - 13 AS col1
----
23

query I rowsort
SELECT ALL 98 * 91 * 23
----
205114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1491
SELECT + 68 + - 46 * 70 + - COALESCE ( - 10, 65, - + CAST( 50 AS SIGNED ) ) AS col2
----
-3142

skipif mysql # not compatible
query I rowsort label-1491
SELECT + 68 + - 46 * 70 + - COALESCE ( - 10, 65, - + CAST ( 50 AS INTEGER ) ) AS col2
----
-3142

query I rowsort
SELECT ALL - 83 * 14 AS col1
----
-1162

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

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

query I rowsort
SELECT + + 3 + - 4 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1495
SELECT ALL - COUNT( * ) * + + 44 AS col2, - 23
----
-44
-23

skipif mysql # not compatible
query II rowsort label-1495
SELECT ALL - COUNT ( * ) * + + 44 AS col2, - 23
----
-44
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-1496
SELECT + - 78 DIV ( + + 34 ) + + 91 DIV 87, 42 AS col1
----
-1
42

skipif mysql # not compatible
query II rowsort label-1496
SELECT + - 78 / ( + + 34 ) + + 91 / 87, 42 AS col1
----
-1
42

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

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL + CAST ( + 23 AS INTEGER ) AS col1
----
23

query I rowsort
SELECT - 64 * - 18 + 29 + 28 AS col2
----
1209

query I rowsort
SELECT ALL - - NULLIF ( + - 48, 51 ) * 9 AS col0
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - ( + COUNT( * ) ) + + + 20
----
19

skipif mysql # not compatible
query I rowsort label-1500
SELECT - ( + COUNT ( * ) ) + + + 20
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1501
SELECT ALL + 56 DIV 35
----
1

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL + 56 / 35
----
1

query I rowsort
SELECT + 97 * 10 AS col1
----
970

onlyif mysql # DIV for integer division: 
query I rowsort label-1503
SELECT + 64 DIV + + 71 + - 91 + - + 40 + 53 + + 82 + + 40 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1503
SELECT + 64 / + + 71 + - 91 + - + 40 + 53 + + 82 + + 40 AS col0
----
44

query I rowsort
SELECT ALL - - 56 * + 78 * + 32 + 78 * - + 80
----
133536

query I rowsort
SELECT DISTINCT - NULLIF ( - 95, 40 ) * + 43 * 4 AS col0
----
16340

query I rowsort
SELECT ALL + 59 * 49 AS col2
----
2891

query II rowsort
SELECT + 25, - 45 AS col2
----
25
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT DISTINCT - 50 * 46 + - - 25 + + 34 - + - 28 + + + COUNT( * ) AS col0
----
-2212

skipif mysql # not compatible
query I rowsort label-1508
SELECT DISTINCT - 50 * 46 + - - 25 + + 34 - + - 28 + + + COUNT ( * ) AS col0
----
-2212

query I rowsort
SELECT DISTINCT 50 * + 46 + - + ( + 34 )
----
2266

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT DISTINCT + 23 + CASE - CASE - 8 WHEN + + 42 + + + 9 + 13 * - - ( + 79 ) / + 77 THEN + 36 + 91 * CASE - 62 WHEN - 71 THEN 66 ELSE NULL END WHEN CASE 1 WHEN + 32 - + COUNT( * ) THEN NULL ELSE - 20 END * 34 + + 61 THEN NULL END WHEN + 28 THEN - 49 + - 77 * - COALESCE ( 96 * 0, 24 ) END + + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT + 23 + CASE - CASE - 8 WHEN + + 42 + + + 9 + 13 * - - ( + 79 ) / + 77 THEN + 36 + 91 * CASE - 62 WHEN - 71 THEN 66 ELSE NULL END WHEN CASE 1 WHEN + 32 - + COUNT ( * ) THEN NULL ELSE - 20 END * 34 + + 61 THEN NULL END WHEN + 28 THEN - 49 + - 77 * - COALESCE ( 96 * 0, 24 ) END + + 84 AS col2
----
NULL

query I rowsort
SELECT ALL - 68 + + 40 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT MAX( ALL - + 24 ) * - ( - 97 ) AS col0
----
-2328

skipif mysql # not compatible
query I rowsort label-1512
SELECT MAX ( ALL - + 24 ) * - ( - 97 ) AS col0
----
-2328

query I rowsort
SELECT DISTINCT + 23 + + 59 + - 38 AS col2
----
44

query I rowsort
SELECT ALL - 69 + 56
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1515
SELECT - 46 AS col2, 93 + NULLIF ( NULLIF ( - - 91, - CAST( + - 45 AS SIGNED ) * + 99 * + MIN( ALL + 72 ) ), - 46 )
----
-46
184

skipif mysql # not compatible
query II rowsort label-1515
SELECT - 46 AS col2, 93 + NULLIF ( NULLIF ( - - 91, - CAST ( + - 45 AS INTEGER ) * + 99 * + MIN ( ALL + 72 ) ), - 46 )
----
-46
184

query I rowsort
SELECT ALL + 6 - + 85
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT 50 * + 62 * + COUNT( * ) * 36
----
111600

skipif mysql # not compatible
query I rowsort label-1517
SELECT 50 * + 62 * + COUNT ( * ) * 36
----
111600

query I rowsort
SELECT ALL - 97 * 10 * + - 69
----
66930

query I rowsort
SELECT ALL - 24 - - 90
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1520
SELECT 66 + + - 12 + + CAST( + 3 AS SIGNED ) + + 3 DIV + 76 * - + COUNT( * ) * - NULLIF ( 51, COALESCE ( - 78, - 9 ) ) + - COUNT( * ) * 23 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-1520
SELECT 66 + + - 12 + + CAST ( + 3 AS INTEGER ) + + 3 / + 76 * - + COUNT ( * ) * - NULLIF ( 51, COALESCE ( - 78, - 9 ) ) + - COUNT ( * ) * 23 AS col2
----
34

query I rowsort
SELECT ALL 94 - 97 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1522
SELECT 75 * - + MAX( CAST( + 53 AS SIGNED ) ) AS col1
----
-3975

skipif mysql # not compatible
query I rowsort label-1522
SELECT 75 * - + MAX ( CAST ( + 53 AS INTEGER ) ) AS col1
----
-3975

query I rowsort
SELECT COALESCE ( - 38, + - 94 + + + 36 ) + - 40
----
-78

query I rowsort
SELECT ALL + 4 * + 98 + - 22
----
370

query I rowsort
SELECT DISTINCT - 45 * 35 AS col1
----
-1575

onlyif mysql # DIV for integer division: 
query I rowsort label-1526
SELECT 8 DIV + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1526
SELECT 8 / + 38 AS col1
----
0

query II rowsort
SELECT ALL - 98 AS col1, - ( 38 ) * + + NULLIF ( + 38, - ( 53 ) + + 10 ) AS col0
----
-98
-1444

query I rowsort
SELECT 85 + + 21 AS col0
----
106

query I rowsort
SELECT - 88 * - ( + 62 )
----
5456

query II rowsort
SELECT ALL 98 * ( 6 ) AS col2, 91 + - 39 + ( ( 86 ) ) AS col0
----
588
138

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

skipif mysql # not compatible
query I rowsort label-1531
SELECT COUNT ( ALL + - 95 ) AS col2
----
1

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1535
SELECT + CAST( 30 AS SIGNED ) * - CAST( NULL AS SIGNED ) * - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT + CAST ( 30 AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - 33 AS col0
----
NULL

query I rowsort
SELECT ALL ( 72 ) + + 19 * COALESCE ( - 49, + + 50 ) AS col1
----
-859

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL - 0 + 70 - CASE - - 91 WHEN + ( 70 ) THEN NULL WHEN - 23 THEN COUNT( - 46 ) WHEN - CASE - 10 WHEN 77 THEN COUNT( * ) + COUNT( * ) ELSE CASE + 35 WHEN - 70 THEN NULL WHEN + 5 THEN NULL WHEN MIN( + ( - 90 ) ) / + 89 THEN NULL ELSE + 79 * - 51 END END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL - 0 + 70 - CASE - - 91 WHEN + ( 70 ) THEN NULL WHEN - 23 THEN COUNT ( - 46 ) WHEN - CASE - 10 WHEN 77 THEN COUNT ( * ) + COUNT ( * ) ELSE CASE + 35 WHEN - 70 THEN NULL WHEN + 5 THEN NULL WHEN MIN ( + ( - 90 ) ) / + 89 THEN NULL ELSE + 79 * - 51 END END THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1538
SELECT NULLIF ( 30, + 8 ) + CAST( NULL AS DECIMAL ) + CAST( + 47 AS SIGNED ) * + - SUM( DISTINCT + 41 ) + + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT NULLIF ( 30, + 8 ) + CAST ( NULL AS REAL ) + CAST ( + 47 AS INTEGER ) * + - SUM ( DISTINCT + 41 ) + + 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1539
SELECT 73 * - + COUNT( * ) + - 56 DIV - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-1539
SELECT 73 * - + COUNT ( * ) + - 56 / - COUNT ( * )
----
-17

query I rowsort
SELECT 60 - - 39 + 59 + + 61
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT 31 * COUNT( * ) * - 2 * 91 * + 38 * - - 74 AS col0
----
-15865304

skipif mysql # not compatible
query I rowsort label-1541
SELECT 31 * COUNT ( * ) * - 2 * 91 * + 38 * - - 74 AS col0
----
-15865304

query I rowsort
SELECT DISTINCT - 92 * 80
----
-7360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1543
SELECT DISTINCT - 83 * - CAST( NULL AS SIGNED ) AS col2, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1543
SELECT DISTINCT - 83 * - CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT COUNT( + 35 ) + + 40 + - 84 * + 56 + 57 + 8 * + 73 * + 13 AS col1
----
2986

skipif mysql # not compatible
query I rowsort label-1544
SELECT COUNT ( + 35 ) + + 40 + - 84 * + 56 + 57 + 8 * + 73 * + 13 AS col1
----
2986

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT DISTINCT + 10 * - COALESCE ( - COUNT( * ), + + 72 * + 45, - - 55 )
----
10

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT + 10 * - COALESCE ( - COUNT ( * ), + + 72 * + 45, - - 55 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1546
SELECT 60 + 64 * - - ( + CAST( NULL AS SIGNED ) ) / 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1546
SELECT 60 + 64 * - - ( + CAST ( NULL AS INTEGER ) ) / 13
----
NULL

query I rowsort
SELECT DISTINCT - 20 * NULLIF ( + + 75, + 87 / 71 / ( - + 76 ) )
----
-1500

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1548
SELECT + 97 + + CAST( + - 67 AS SIGNED ) * 11 * + 25, - 96 + + COALESCE ( - + 20, + + 5 - - NULLIF ( 2 + 83, 34 * + 60 ) ) * 20 AS col2
----
-18328
-496

skipif mysql # not compatible
query II rowsort label-1548
SELECT + 97 + + CAST ( + - 67 AS INTEGER ) * 11 * + 25, - 96 + + COALESCE ( - + 20, + + 5 - - NULLIF ( 2 + 83, 34 * + 60 ) ) * 20 AS col2
----
-18328
-496

query I rowsort
SELECT 10 * + - 46 + + ( + 51 ) col2
----
-409

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT 54 * 31 * + - COUNT( ALL - ( + + 21 ) ) + - 65
----
-1739

skipif mysql # not compatible
query I rowsort label-1550
SELECT 54 * 31 * + - COUNT ( ALL - ( + + 21 ) ) + - 65
----
-1739

query I rowsort
SELECT 41 - - + 10 * 4
----
81

query I rowsort
SELECT DISTINCT - 50 * 71 * - + 82 * + + 22 AS col1
----
6404200

query I rowsort
SELECT DISTINCT - + 6 * - 51 + + 6 + - ( 43 )
----
269

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

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

query I rowsort
SELECT ALL + - 77 + - 12 + - 91 * 7
----
-726

query I rowsort
SELECT + NULLIF ( 24, + - 59 + 57 - - 23 ) + - 24 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1557
SELECT COUNT( * ) + - + 2, 33 AS col2
----
-1
33

skipif mysql # not compatible
query II rowsort label-1557
SELECT COUNT ( * ) + - + 2, 33 AS col2
----
-1
33

query I rowsort
SELECT + 22 - + ( 7 ) + - 67 * - - 29 AS col1
----
-1928

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL + 65 + + COALESCE ( + 65, CASE 5 WHEN 1 + 90 THEN - COUNT( * ) WHEN + 94 * + COALESCE ( 44, 28 ) THEN 68 WHEN + 50 * 2 THEN - COUNT( * ) * 72 ELSE 30 END )
----
130

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL + 65 + + COALESCE ( + 65, CASE 5 WHEN 1 + 90 THEN - COUNT ( * ) WHEN + 94 * + COALESCE ( 44, 28 ) THEN 68 WHEN + 50 * 2 THEN - COUNT ( * ) * 72 ELSE 30 END )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT 90 + MAX( DISTINCT + 54 ) + - - AVG ( - - 91 ) * + CASE SUM( ALL - ( + 84 ) ) WHEN COALESCE ( - 34, 30 / 61 + - 87 ) THEN + AVG ( 47 ) ELSE NULL END * ( COUNT( * ) + - 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT 90 + MAX ( DISTINCT + 54 ) + - - AVG ( - - 91 ) * + CASE SUM ( ALL - ( + 84 ) ) WHEN COALESCE ( - 34, 30 / 61 + - 87 ) THEN + AVG ( 47 ) ELSE NULL END * ( COUNT ( * ) + - 12 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 34 + - 19 AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1562
SELECT DISTINCT + 74 DIV - + 89 * - - COUNT( * ) * + 59
----
0

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT + 74 / - + 89 * - - COUNT ( * ) * + 59
----
0

query II rowsort
SELECT ALL + 97 * - 46 + + - 55 + - + 85 AS col1, 37 AS col0
----
-4602
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1564
SELECT 10 DIV - - COUNT( * ) + + 12
----
22

skipif mysql # not compatible
query I rowsort label-1564
SELECT 10 / - - COUNT ( * ) + + 12
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL + - ( - SUM( + 83 ) ) * 30 + + 76 AS col0
----
2566

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL + - ( - SUM ( + 83 ) ) * 30 + + 76 AS col0
----
2566

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT COUNT( * ) + 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1566
SELECT COUNT ( * ) + 79 AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT + 98 * CAST( NULL AS SIGNED ) + - 38 * - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1567
SELECT + 98 * CAST ( NULL AS INTEGER ) + - 38 * - 26 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1568
SELECT + CASE + COUNT( * ) WHEN + 79 / - 96 - 51 + + CAST( NULL AS SIGNED ) * ( + COUNT( * ) ) THEN 34 + + 92 - + 56 / + 69 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1568
SELECT + CASE + COUNT ( * ) WHEN + 79 / - 96 - 51 + + CAST ( NULL AS INTEGER ) * ( + COUNT ( * ) ) THEN 34 + + 92 - + 56 / + 69 END AS col2
----
NULL

query I rowsort
SELECT + 13 * - 28 col2
----
-364

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

skipif mysql # not compatible
query I rowsort label-1570
SELECT + 19 * + COUNT ( DISTINCT + 0 ) AS col1
----
19

query I rowsort
SELECT ALL 25 * + - 17 AS col0
----
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT DISTINCT - 19 * + + 78 - 36 + + COUNT( * ) AS col2
----
-1517

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT - 19 * + + 78 - 36 + + COUNT ( * ) AS col2
----
-1517

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

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

query I rowsort
SELECT DISTINCT 98 * - ( - 79 ) - + - 85
----
7827

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1576
SELECT ALL 72 * - NULLIF ( 54, - 80 + 22 + + 33 + + 37 + - NULLIF ( - - 44, - 59 * 30 + 24 * ( CAST( + COUNT( * ) AS SIGNED ) ) ) / - 87 ) - + 81 col1
----
-3969

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL 72 * - NULLIF ( 54, - 80 + 22 + + 33 + + 37 + - NULLIF ( - - 44, - 59 * 30 + 24 * ( CAST ( + COUNT ( * ) AS INTEGER ) ) ) / - 87 ) - + 81 col1
----
-3969

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1578
SELECT DISTINCT 59 DIV - + 9 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT 59 / - + 9 AS col0
----
-6

query I rowsort
SELECT ALL 94 * 29
----
2726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1580
SELECT + 34 DIV MIN( DISTINCT - ( + 90 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1580
SELECT + 34 / MIN ( DISTINCT - ( + 90 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1581
SELECT - 4 DIV 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1581
SELECT - 4 / 87 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1582
SELECT ALL + + ( + - CAST( NULL AS SIGNED ) ) * - + 65 * + CASE COUNT( + 16 ) WHEN + CASE + - COUNT( * ) WHEN - 13 THEN + - CAST( 98 AS SIGNED ) * + ( 88 / + 20 ) WHEN + 93 * - ( - CASE - 26 WHEN - 68 THEN NULL WHEN 49 THEN 15 + - 22 ELSE - AVG ( + 85 ) END ) THEN NULL END THEN + COUNT( * ) / 24 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL + + ( + - CAST ( NULL AS INTEGER ) ) * - + 65 * + CASE COUNT ( + 16 ) WHEN + CASE + - COUNT ( * ) WHEN - 13 THEN + - CAST ( 98 AS INTEGER ) * + ( 88 / + 20 ) WHEN + 93 * - ( - CASE - 26 WHEN - 68 THEN NULL WHEN 49 THEN 15 + - 22 ELSE - AVG ( + 85 ) END ) THEN NULL END THEN + COUNT ( * ) / 24 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + + 90 + + 7
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT + - COUNT( * ) + + - 23
----
-24

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

query I rowsort
SELECT ALL - 52 * + 64
----
-3328

onlyif mysql # aggregate syntax: 
query II rowsort label-1586
SELECT ALL + + 16 + - 41 * 15 * - MAX( 24 ), 22 * ( + 15 ) AS col1
----
14776
330

skipif mysql # not compatible
query II rowsort label-1586
SELECT ALL + + 16 + - 41 * 15 * - MAX ( 24 ), 22 * ( + 15 ) AS col1
----
14776
330

query I rowsort
SELECT DISTINCT + 13 + + 5 col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT + 23 * - + COUNT( * ) + + + 56 + - COUNT( * ) + + 40 - + 54 * MIN( 38 ) + 3 + - ( - 87 )
----
-1890

skipif mysql # not compatible
query I rowsort label-1588
SELECT + 23 * - + COUNT ( * ) + + + 56 + - COUNT ( * ) + + 40 - + 54 * MIN ( 38 ) + 3 + - ( - 87 )
----
-1890

query II rowsort
SELECT - 89 AS col1, 54 + - 28 + - ( 33 ) * + 85 * + 94
----
-89
-263644

query I rowsort
SELECT ALL + CASE - 63 WHEN 23 THEN - - 59 WHEN - COALESCE ( + 32, + - AVG ( DISTINCT - 56 ) ) + - 16 THEN NULL WHEN CASE + 10 WHEN - 81 * 86 THEN - 22 ELSE NULL END + + 67 THEN NULL END + - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT - + MAX( - - 29 ) * + 70 * ( - 21 )
----
42630

skipif mysql # not compatible
query I rowsort label-1591
SELECT - + MAX ( - - 29 ) * + 70 * ( - 21 )
----
42630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1592
SELECT ALL + 19 + + ( - + 31 ) + + + COALESCE ( COALESCE ( + - 96, - 50 ), 10 + + 27 * 61 * + 6 + - 24 * - 37, COUNT( * ) * CAST( 15 AS SIGNED ) )
----
-108

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL + 19 + + ( - + 31 ) + + + COALESCE ( COALESCE ( + - 96, - 50 ), 10 + + 27 * 61 * + 6 + - 24 * - 37, COUNT ( * ) * CAST ( 15 AS INTEGER ) )
----
-108

query I rowsort
SELECT ALL - 8 + 43 AS col0
----
35

query II rowsort
SELECT ALL + - 36 * - 3 * + + 53, 45 * + + 50 + - 20 AS col2
----
5724
2230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1595
SELECT DISTINCT + 17 DIV - ( - COUNT( * ) ) + - - 2
----
19

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT + 17 / - ( - COUNT ( * ) ) + - - 2
----
19

query II rowsort
SELECT 82 AS col2, 50 AS col2
----
82
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT ALL + COUNT( * ) * + MAX( DISTINCT - 59 ) * - MAX( ALL 63 ) AS col1
----
3717

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL + COUNT ( * ) * + MAX ( DISTINCT - 59 ) * - MAX ( ALL 63 ) AS col1
----
3717

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT - 43 - - + 78 + CASE - ( 49 ) WHEN + + 90 THEN - MAX( 8 ) END + + 81 * - - ( - - 36 ) * + 96 / NULLIF ( + 80, 71 / 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT - 43 - - + 78 + CASE - ( 49 ) WHEN + + 90 THEN - MAX ( 8 ) END + + 81 * - - ( - - 36 ) * + 96 / NULLIF ( + 80, 71 / 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1599
SELECT - COUNT( * ) * + 64, - 86 AS col2
----
-64
-86

skipif mysql # not compatible
query II rowsort label-1599
SELECT - COUNT ( * ) * + 64, - 86 AS col2
----
-64
-86

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

query II rowsort
SELECT + 73, 57 col1
----
73
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1602
SELECT - COUNT( * ) / + 65 * - 92 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT - COUNT ( * ) / + 65 * - 92 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( - + 16 ) * + 67 * - + 50
----
53600

onlyif mysql # aggregate syntax: 
query II rowsort label-1604
SELECT ALL + 86 AS col2, CASE + 87 WHEN 25 + - CASE - - 30 WHEN - ( - 41 ) * + + 47 + - - 71 * - 83 THEN + 79 * COUNT( * ) + - 5 WHEN 94 + - 32 THEN - 34 ELSE 37 END THEN 60 END * 85 AS col0
----
86
NULL

skipif mysql # not compatible
query II rowsort label-1604
SELECT ALL + 86 AS col2, CASE + 87 WHEN 25 + - CASE - - 30 WHEN - ( - 41 ) * + + 47 + - - 71 * - 83 THEN + 79 * COUNT ( * ) + - 5 WHEN 94 + - 32 THEN - 34 ELSE 37 END THEN 60 END * 85 AS col0
----
86
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1605
SELECT ALL 60 DIV + 46 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL 60 / + 46 AS col1
----
1

query I rowsort
SELECT - ( 95 ) * - 46 AS col2
----
4370

onlyif mysql # aggregate syntax: 
query II rowsort label-1607
SELECT ALL + 40 AS col0, + 81 * + + COUNT( * )
----
40
81

skipif mysql # not compatible
query II rowsort label-1607
SELECT ALL + 40 AS col0, + 81 * + + COUNT ( * )
----
40
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT + MAX( + - ( - 32 ) ) * - + 34
----
-1088

skipif mysql # not compatible
query I rowsort label-1608
SELECT + MAX ( + - ( - 32 ) ) * - + 34
----
-1088

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT - NULLIF ( - - 96, + COUNT( * ) ) + - COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1609
SELECT - NULLIF ( - - 96, + COUNT ( * ) ) + - COUNT ( * ) AS col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1610
SELECT + 18 DIV + + 82 * 49 - 4 + - 1
----
-5

skipif mysql # not compatible
query I rowsort label-1610
SELECT + 18 / + + 82 * 49 - 4 + - 1
----
-5

query I rowsort
SELECT + 12 * NULLIF ( - 12, - - 65 ) + - 62 AS col1
----
-206

query I rowsort
SELECT + NULLIF ( + 27, - 25 / - 18 ) - - - 19 * + 54 AS col1
----
-999

query I rowsort
SELECT + COALESCE ( - 20, - 64 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1614
SELECT ALL 80 * 70 + - CAST( COUNT( * ) AS SIGNED ) AS col0
----
5599

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL 80 * 70 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
5599

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1616
SELECT ALL + 56 * + - ( + - NULLIF ( 53, - + CAST( NULL AS SIGNED ) ) )
----
2968

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL + 56 * + - ( + - NULLIF ( 53, - + CAST ( NULL AS INTEGER ) ) )
----
2968

query I rowsort
SELECT + + 45 * + + 54
----
2430

query I rowsort
SELECT + + 86 + ( - 81 ) + + - 77 AS col2
----
-72

query I rowsort
SELECT DISTINCT 20 * 51 AS col2
----
1020

query I rowsort
SELECT ALL 85 * + 22 + 22
----
1892

query II rowsort
SELECT - 72, ( - + 59 ) AS col1
----
-72
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT + 77 * + MAX( + 24 ) + - + COUNT( * ) * - 64
----
1912

skipif mysql # not compatible
query I rowsort label-1622
SELECT + 77 * + MAX ( + 24 ) + - + COUNT ( * ) * - 64
----
1912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1623
SELECT DISTINCT + COALESCE ( - SUM( ALL 22 ), - 76 ) * 42 + - 11 * - 24 + - - 34 DIV + ( - 52 ) + - - 67
----
-593

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT + COALESCE ( - SUM ( ALL 22 ), - 76 ) * 42 + - 11 * - 24 + - - 34 / + ( - 52 ) + - - 67
----
-593

onlyif mysql # aggregate syntax: 
query II rowsort label-1624
SELECT - 56 AS col2, + 78 * + - 58 * 61 - COUNT( * ) - + 15
----
-56
-275980

skipif mysql # not compatible
query II rowsort label-1624
SELECT - 56 AS col2, + 78 * + - 58 * 61 - COUNT ( * ) - + 15
----
-56
-275980

onlyif mysql # aggregate syntax: 
query II rowsort label-1625
SELECT - COUNT( - + 96 ), + 55 AS col1
----
-1
55

skipif mysql # not compatible
query II rowsort label-1625
SELECT - COUNT ( - + 96 ), + 55 AS col1
----
-1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT + - 18 - + 99 * - 62 + + 21 * ( + + COUNT( * ) )
----
6141

skipif mysql # not compatible
query I rowsort label-1626
SELECT + - 18 - + 99 * - 62 + + 21 * ( + + COUNT ( * ) )
----
6141

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT ALL - COALESCE ( - 71, + 75 DIV 47, - 16 ) col1
----
71

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL - COALESCE ( - 71, + 75 / 47, - 16 ) col1
----
71

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

skipif mysql # not compatible
query I rowsort label-1628
SELECT + + COUNT ( * ) + - CAST ( - 62 AS INTEGER )
----
63

query I rowsort
SELECT ALL - ( + - 91 ) AS col0
----
91

query I rowsort
SELECT - 93 * - NULLIF ( - 4, - 5 / - 62 ) AS col0
----
-372

query I rowsort
SELECT 99 + + 81
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT COUNT( * ) - + 10 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1632
SELECT COUNT ( * ) - + 10 AS col0
----
-9

query I rowsort
SELECT - 50 + - + 1 + 47 AS col1
----
-4

query II rowsort
SELECT 60 - - 93, - ( ( 97 ) ) + - 13 AS col1
----
153
-110

onlyif mysql # aggregate syntax: 
query III rowsort label-1635
SELECT ( + + 36 ) * + 51 AS col1, 47 * - 70 AS col0, COUNT( * )
----
1836
-3290
1

skipif mysql # not compatible
query III rowsort label-1635
SELECT ( + + 36 ) * + 51 AS col1, 47 * - 70 AS col0, COUNT ( * )
----
1836
-3290
1

query I rowsort
SELECT 41 + + 38 AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1637
SELECT 50 + + - 56 * COUNT( * ) DIV - + 66 * + MAX( DISTINCT - 98 )
----
50

skipif mysql # not compatible
query I rowsort label-1637
SELECT 50 + + - 56 * COUNT ( * ) / - + 66 * + MAX ( DISTINCT - 98 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT 60 + 73 * - 61 * ( - 43 ) - + COUNT( * ) * COUNT( * ) + 30 col0
----
191568

skipif mysql # not compatible
query I rowsort label-1638
SELECT 60 + 73 * - 61 * ( - 43 ) - + COUNT ( * ) * COUNT ( * ) + 30 col0
----
191568

query II rowsort
SELECT ALL + 51 * - - 25 AS col1, - 5 - + 53 AS col1
----
1275
-58

query II rowsort
SELECT 69 + + 94, 43 AS col0
----
163
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1641
SELECT ALL + 79 DIV - 24
----
-3

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL + 79 / - 24
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT 76 DIV - 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1642
SELECT 76 / - 82 AS col1
----
0

query I rowsort
SELECT DISTINCT + 61 * - - 29 AS col2
----
1769

onlyif mysql # DIV for integer division: 
query I rowsort label-1644
SELECT + 52 DIV + - 82 + + 19 * + 21
----
399

skipif mysql # not compatible
query I rowsort label-1644
SELECT + 52 / + - 82 + + 19 * + 21
----
399

query I rowsort
SELECT DISTINCT + 34 + - + 67 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT ALL - COUNT( * ) + + 78 * - 86 AS col2
----
-6709

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL - COUNT ( * ) + + 78 * - 86 AS col2
----
-6709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1647
SELECT 85 * + + COALESCE ( + 3, + CAST( NULL AS SIGNED ), 57 * + 72 )
----
255

skipif mysql # not compatible
query I rowsort label-1647
SELECT 85 * + + COALESCE ( + 3, + CAST ( NULL AS INTEGER ), 57 * + 72 )
----
255

query I rowsort
SELECT ALL - 35 + - + 18 + - 0 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT + 75 + COUNT( DISTINCT - + ( + + 90 ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1649
SELECT + 75 + COUNT ( DISTINCT - + ( + + 90 ) ) AS col1
----
76

query I rowsort
SELECT DISTINCT 53 * 61
----
3233

query II rowsort
SELECT ( + 85 ) AS col0, - 8 AS col0
----
85
-8

query I rowsort
SELECT - 41 + + 52 * + - 19 AS col2
----
-1029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1653
SELECT DISTINCT - ( + - 57 ) - CAST( + 80 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT - ( + - 57 ) - CAST ( + 80 AS INTEGER )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL COUNT( * ) * SUM( ALL + + 4 ) * - 78 + - COUNT( * ) + - 68 AS col0
----
-381

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL COUNT ( * ) * SUM ( ALL + + 4 ) * - 78 + - COUNT ( * ) + - 68 AS col0
----
-381

query I rowsort
SELECT DISTINCT ( - - 6 ) - 85 AS col2
----
-79

query II rowsort
SELECT + 91 + + + 89, 74 AS col0
----
180
74

query I rowsort
SELECT 26 * + - 85 AS col0
----
-2210

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

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

query I rowsort
SELECT CASE 29 WHEN - - ( + 92 ) THEN 65 END + - 54 - 17 * + CASE WHEN NOT - 56 >= NULL THEN - 62 ELSE - 72 END / - 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT 44 DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1660
SELECT 44 / - 68 AS col2
----
0

query I rowsort
SELECT ALL 84 * 46 AS col0
----
3864

onlyif mysql # aggregate syntax: 
query II rowsort label-1662
SELECT 74, 14 * 19 + 48 * + - 8 + - 49 * - 50 + + NULLIF ( - + 16, MIN( DISTINCT - - 53 ) ) * + COUNT( * ) AS col0
----
74
2316

skipif mysql # not compatible
query II rowsort label-1662
SELECT 74, 14 * 19 + 48 * + - 8 + - 49 * - 50 + + NULLIF ( - + 16, MIN ( DISTINCT - - 53 ) ) * + COUNT ( * ) AS col0
----
74
2316

query I rowsort
SELECT DISTINCT 2 * + 2 AS col1
----
4

query I rowsort
SELECT ALL + 74 * - 59 AS col1
----
-4366

query I rowsort
SELECT 69 * - 37 AS col0
----
-2553

query I rowsort
SELECT DISTINCT 7 * - - 66 * - 40 AS col0
----
-18480

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1667
SELECT CAST( + CAST( + 35 AS DECIMAL ) AS SIGNED ) * 80
----
2800

skipif mysql # not compatible
query I rowsort label-1667
SELECT CAST ( + CAST ( + 35 AS REAL ) AS INTEGER ) * 80
----
2800

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1669
SELECT ALL 42 * + - CAST( NULL AS DECIMAL ) * - NULLIF ( - 47, + 26 ) / + 59 + - + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL 42 * + - CAST ( NULL AS REAL ) * - NULLIF ( - 47, + 26 ) / + 59 + - + 22 AS col1
----
NULL

query I rowsort
SELECT 4 * + 30 * - 97
----
-11640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1671
SELECT + 10 / + - CAST( NULL AS SIGNED ) - 93 * - COALESCE ( CASE - 26 WHEN + 5 + + 84 + + ( - MAX( - - 54 ) ) * + COUNT( * ) * 97 THEN 2 WHEN 13 * CASE + 95 WHEN + COUNT( * ) + - AVG ( ALL + 31 ) THEN NULL WHEN 66 - - 18 / + 63 THEN 13 ELSE NULL END THEN NULL END, - 59 + 75, 45 * 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1671
SELECT + 10 / + - CAST ( NULL AS INTEGER ) - 93 * - COALESCE ( CASE - 26 WHEN + 5 + + 84 + + ( - MAX ( - - 54 ) ) * + COUNT ( * ) * 97 THEN 2 WHEN 13 * CASE + 95 WHEN + COUNT ( * ) + - AVG ( ALL + 31 ) THEN NULL WHEN 66 - - 18 / + 63 THEN 13 ELSE NULL END THEN NULL END, - 59 + 75, 45 * 42 ) AS col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT DISTINCT - COUNT( * ) * - 71 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - COUNT ( * ) * - 71 AS col1
----
71

query I rowsort
SELECT + 80 + + ( - - 28 ) * 61 AS col2
----
1788

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1676
SELECT SUM( 75 ) DIV - + 79
----
0

skipif mysql # not compatible
query I rowsort label-1676
SELECT SUM ( 75 ) / - + 79
----
0

query I rowsort
SELECT ALL - 23 - - 6
----
-17

query I rowsort
SELECT 79 * + 17
----
1343

query I rowsort
SELECT ALL 86 * - 50
----
-4300

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT ALL + + MIN( ALL + 45 ) - - - 38 - MIN( DISTINCT + 97 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL + + MIN ( ALL + 45 ) - - - 38 - MIN ( DISTINCT + 97 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1681
SELECT DISTINCT + + COUNT( * ) AS col1, 77 + COUNT( * ) + 36 + 6 + + - NULLIF ( + 57, - - 37 ) + - 82 * - 62 AS col2
----
1
5147

skipif mysql # not compatible
query II rowsort label-1681
SELECT DISTINCT + + COUNT ( * ) AS col1, 77 + COUNT ( * ) + 36 + 6 + + - NULLIF ( + 57, - - 37 ) + - 82 * - 62 AS col2
----
1
5147

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT - COUNT( * ) + - COALESCE ( + 1, - - 13 + - 19 + - 77 - - 67 + + 2 + ( COUNT( - - 61 ) ) + + MIN( 50 ) * 97, 6 ) * - 66
----
65

skipif mysql # not compatible
query I rowsort label-1682
SELECT - COUNT ( * ) + - COALESCE ( + 1, - - 13 + - 19 + - 77 - - 67 + + 2 + ( COUNT ( - - 61 ) ) + + MIN ( 50 ) * 97, 6 ) * - 66
----
65

query I rowsort
SELECT - + 52 * 51
----
-2652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1684
SELECT ALL - CAST( NULL AS SIGNED ) * - + ( CASE + 24 WHEN - COUNT( * ) THEN - 36 + SUM( DISTINCT - 73 ) - - + ( + COALESCE ( 40, - 91 * 17 + - NULLIF ( + ( + 84 ), 49 ), - 2 + 10 * 68 ) ) WHEN + ( 6 ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL - CAST ( NULL AS INTEGER ) * - + ( CASE + 24 WHEN - COUNT ( * ) THEN - 36 + SUM ( DISTINCT - 73 ) - - + ( + COALESCE ( 40, - 91 * 17 + - NULLIF ( + ( + 84 ), 49 ), - 2 + 10 * 68 ) ) WHEN + ( 6 ) THEN NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1685
SELECT DISTINCT - 30 DIV 68 + 74 * 58 + - ( 69 ) + + 82 + + COUNT( * ) + - ( - - 42 ) - + MIN( + 35 ) * 30 * + COUNT( * )
----
3214

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT - 30 / 68 + 74 * 58 + - ( 69 ) + + 82 + + COUNT ( * ) + - ( - - 42 ) - + MIN ( + 35 ) * 30 * + COUNT ( * )
----
3214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1686
SELECT - 42 * + CASE - 30 WHEN + - 18 THEN NULL WHEN CAST( + 9 AS SIGNED ) + - 7 THEN NULL ELSE 63 END + - COUNT( * )
----
-2647

skipif mysql # not compatible
query I rowsort label-1686
SELECT - 42 * + CASE - 30 WHEN + - 18 THEN NULL WHEN CAST ( + 9 AS INTEGER ) + - 7 THEN NULL ELSE 63 END + - COUNT ( * )
----
-2647

query III rowsort
SELECT - - 79 AS col1, - 27 + + ( + + 50 ) AS col2, - 38 AS col2
----
79
23
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1688
SELECT ALL COUNT( * ), 16 - + CASE - 85 WHEN - CAST( COUNT( * ) AS SIGNED ) * - COALESCE ( - 1, ( - 29 ), - + 76 * - CAST( + ( 24 ) AS SIGNED ) ) THEN NULL ELSE ( - 54 ) END AS col1
----
1
70

skipif mysql # not compatible
query II rowsort label-1688
SELECT ALL COUNT ( * ), 16 - + CASE - 85 WHEN - CAST ( COUNT ( * ) AS INTEGER ) * - COALESCE ( - 1, ( - 29 ), - + 76 * - CAST ( + ( 24 ) AS INTEGER ) ) THEN NULL ELSE ( - 54 ) END AS col1
----
1
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1689
SELECT - 33 * - 46 + - NULLIF ( + NULLIF ( - + 97, 41 ), MAX( 65 ) * + - 14 * - + 3 ) + - - 52 - COUNT( * ) * 68 DIV + CAST( AVG ( + 85 ) AS SIGNED )
----
1667

skipif mysql # not compatible
query I rowsort label-1689
SELECT - 33 * - 46 + - NULLIF ( + NULLIF ( - + 97, 41 ), MAX ( 65 ) * + - 14 * - + 3 ) + - - 52 - COUNT ( * ) * 68 / + CAST ( AVG ( + 85 ) AS INTEGER )
----
1667

onlyif mysql # DIV for integer division: 
query III rowsort label-1690
SELECT - ( - 54 ) - 65 col2, 7 DIV - 82 + - 90, + - 86 AS col0
----
-11
-90
-86

skipif mysql # not compatible
query III rowsort label-1690
SELECT - ( - 54 ) - 65 col2, 7 / - 82 + - 90, + - 86 AS col0
----
-11
-90
-86

query I rowsort
SELECT DISTINCT CASE 69 WHEN + 54 + 70 * + 60 THEN + 72 ELSE + 1 END
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1692
SELECT + 19 DIV + + COUNT( DISTINCT - 4 )
----
19

skipif mysql # not compatible
query I rowsort label-1692
SELECT + 19 / + + COUNT ( DISTINCT - 4 )
----
19

query I rowsort
SELECT - 31 + - 85 AS col2
----
-116

query I rowsort
SELECT + 36 - 50 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1695
SELECT - COALESCE ( + 72, + + CAST( 39 AS SIGNED ) ) + + 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1695
SELECT - COALESCE ( + 72, + + CAST ( 39 AS INTEGER ) ) + + 71 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1697
SELECT + 83 DIV - + COUNT( + + 69 )
----
-83

skipif mysql # not compatible
query I rowsort label-1697
SELECT + 83 / - + COUNT ( + + 69 )
----
-83

query I rowsort
SELECT + 89 + - 91 AS col2
----
-2

query I rowsort
SELECT ALL 95 + 51 AS col1
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-1700
SELECT + COUNT( * ) + + 92, 47 AS col0
----
93
47

skipif mysql # not compatible
query II rowsort label-1700
SELECT + COUNT ( * ) + + 92, 47 AS col0
----
93
47

query I rowsort
SELECT ALL + 89 + 43 AS col1
----
132

query I rowsort
SELECT ALL 62 * + ( - 4 ) + + 80 AS col1
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT 89 * - - 49 + 78 + 91 * + 80 * - - 46 + - CAST( - + ( - - NULLIF ( - 83, - - 61 ) ) AS SIGNED ) - - 52 + 56 * - 90 + NULLIF ( + 47, 85 ) * 53 col1
----
336739

skipif mysql # not compatible
query I rowsort label-1703
SELECT 89 * - - 49 + 78 + 91 * + 80 * - - 46 + - CAST ( - + ( - - NULLIF ( - 83, - - 61 ) ) AS INTEGER ) - - 52 + 56 * - 90 + NULLIF ( + 47, 85 ) * 53 col1
----
336739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1704
SELECT ALL - 28 * + + 39 * 68 + NULLIF ( - COUNT( * ), + 44 + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + 99 * - 86 - - + MAX( DISTINCT + 78 ) * - - 63 ) + - 43 col0
----
-74300

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL - 28 * + + 39 * 68 + NULLIF ( - COUNT ( * ), + 44 + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + 99 * - 86 - - + MAX ( DISTINCT + 78 ) * - - 63 ) + - 43 col0
----
-74300

query I rowsort
SELECT ALL 52 * ( - - 79 ) * 66
----
271128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1706
SELECT ALL + 5 * + - 97 * + AVG ( - 13 ) - + CASE + CAST( NULL AS SIGNED ) WHEN 12 THEN NULL ELSE - 10 * - 74 * ( 27 ) * + ( ( 10 ) ) * 50 + 25 + 57 + NULLIF ( + CAST( 92 AS SIGNED ), NULLIF ( + 92, 15 * 51 + 93 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + 5 * + - 97 * + AVG ( - 13 ) - + CASE + CAST ( NULL AS INTEGER ) WHEN 12 THEN NULL ELSE - 10 * - 74 * ( 27 ) * + ( ( 10 ) ) * 50 + 25 + 57 + NULLIF ( + CAST ( 92 AS INTEGER ), NULLIF ( + 92, 15 * 51 + 93 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT + ( - 67 ) * + 85 * + COUNT( * ) AS col0
----
-5695

skipif mysql # not compatible
query I rowsort label-1707
SELECT + ( - 67 ) * + 85 * + COUNT ( * ) AS col0
----
-5695

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1709
SELECT - 94 * - 81 + + 39 DIV - 65 AS col1
----
7614

skipif mysql # not compatible
query I rowsort label-1709
SELECT - 94 * - 81 + + 39 / - 65 AS col1
----
7614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1710
SELECT + 27 * COUNT( * ) * + ( 24 ) * 2 + + + COUNT( * ) - - 16 * COALESCE ( + + ( + + CAST( NULL AS SIGNED ) ), + - COUNT( * ) ) - + + MAX( ALL - 20 ) AS col0
----
1301

skipif mysql # not compatible
query I rowsort label-1710
SELECT + 27 * COUNT ( * ) * + ( 24 ) * 2 + + + COUNT ( * ) - - 16 * COALESCE ( + + ( + + CAST ( NULL AS INTEGER ) ), + - COUNT ( * ) ) - + + MAX ( ALL - 20 ) AS col0
----
1301

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT - + 6 * ( + + 1 ) DIV 78 + + - 12 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT - + 6 * ( + + 1 ) / 78 + + - 12 / 52
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1712
SELECT ALL 20 * 52 AS col1, 58 DIV - 54
----
1040
-1

skipif mysql # not compatible
query II rowsort label-1712
SELECT ALL 20 * 52 AS col1, 58 / - 54
----
1040
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1713
SELECT + COALESCE ( + - COALESCE ( - CASE - - 31 WHEN - 84 + + + 86 THEN + 1 + + ( + - CAST( - 39 AS SIGNED ) ) ELSE NULL END, + 8, 87 ), - 11 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1713
SELECT + COALESCE ( + - COALESCE ( - CASE - - 31 WHEN - 84 + + + 86 THEN + 1 + + ( + - CAST ( - 39 AS INTEGER ) ) ELSE NULL END, + 8, 87 ), - 11 ) AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1714
SELECT ALL + NULLIF ( - - CAST( NULL AS SIGNED ), + 95 + - 79 * + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL + NULLIF ( - - CAST ( NULL AS INTEGER ), + 95 + - 79 * + 80 )
----
NULL

query I rowsort
SELECT - + 29 + - 85 AS col0
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT - + 79 * + CAST( - 11 AS SIGNED )
----
869

skipif mysql # not compatible
query I rowsort label-1716
SELECT - + 79 * + CAST ( - 11 AS INTEGER )
----
869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1717
SELECT ALL COALESCE ( - 0, + - MIN( ALL + 48 ), - + 98 * 66 * - 42 * 52 + + 4 + + - CAST( + 82 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL COALESCE ( - 0, + - MIN ( ALL + 48 ), - + 98 * 66 * - 42 * 52 + + 4 + + - CAST ( + 82 AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT - 43 * 65 * - 62 AS col1
----
173290

query I rowsort
SELECT ALL - 47 + - - 98
----
51

query I rowsort
SELECT - 61 + 24 - - 47
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1721
SELECT COUNT( * ) AS col1, NULLIF ( SUM( + 81 ), - 75 )
----
1
81

skipif mysql # not compatible
query II rowsort label-1721
SELECT COUNT ( * ) AS col1, NULLIF ( SUM ( + 81 ), - 75 )
----
1
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1722
SELECT - COUNT( * ) DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-1722
SELECT - COUNT ( * ) / - 70
----
0

query I rowsort
SELECT - 7 * 63 AS col0
----
-441

query I rowsort
SELECT + 13 + 26
----
39

query I rowsort
SELECT ALL - 47 + 41
----
-6

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

query I rowsort
SELECT DISTINCT + 2 + - + 49 AS col1
----
-47

query I rowsort
SELECT ALL 89 * - 19
----
-1691

query I rowsort
SELECT + 47 * 2 AS col2
----
94

query I rowsort
SELECT - 17 + 90 + 84 AS col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT - CASE - + COUNT( ALL - CASE - 99 WHEN - 1 THEN NULL ELSE + 96 END ) WHEN - 23 * 57 + - 2 * NULLIF ( 85, 35 + - AVG ( ALL + - 89 ) - 8 ) THEN NULL WHEN + 87 * 23 THEN NULL ELSE 90 + + 80 END + 53 * + COUNT( * ) col1
----
-117

skipif mysql # not compatible
query I rowsort label-1731
SELECT - CASE - + COUNT ( ALL - CASE - 99 WHEN - 1 THEN NULL ELSE + 96 END ) WHEN - 23 * 57 + - 2 * NULLIF ( 85, 35 + - AVG ( ALL + - 89 ) - 8 ) THEN NULL WHEN + 87 * 23 THEN NULL ELSE 90 + + 80 END + 53 * + COUNT ( * ) col1
----
-117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1732
SELECT ALL - COUNT( * ) / COALESCE ( - 98, + - 74 + COUNT( * ) * 90 * 35, - 98 ) * + SUM( DISTINCT - 63 ) - + + CASE + CAST( NULL AS DECIMAL ) WHEN + 63 - 54 + + 95 THEN - 46 WHEN - 68 * 10 THEN 56 END * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL - COUNT ( * ) / COALESCE ( - 98, + - 74 + COUNT ( * ) * 90 * 35, - 98 ) * + SUM ( DISTINCT - 63 ) - + + CASE + CAST ( NULL AS REAL ) WHEN + 63 - 54 + + 95 THEN - 46 WHEN - 68 * 10 THEN 56 END * 3
----
NULL

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

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

query II rowsort
SELECT + + 30, + 17 AS col0
----
30
17

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

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL + - CAST ( + - 27 AS INTEGER ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT 94 * + 27 + 26 + - + CASE + 96 WHEN 94 * ( - + 96 ) * + - 92 + + + 25 + COUNT( * ) THEN - 32 * + 61 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT 94 * + 27 + 26 + - + CASE + 96 WHEN 94 * ( - + 96 ) * + - 92 + + + 25 + COUNT ( * ) THEN - 32 * + 61 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - 92 * + + 44 + + CASE + + 94 WHEN COUNT( * ) THEN - 4 + - + NULLIF ( ( - 32 ), + - COUNT( * ) ) WHEN - - 45 THEN NULL ELSE NULL END * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1737
SELECT - 92 * + + 44 + + CASE + + 94 WHEN COUNT ( * ) THEN - 4 + - + NULLIF ( ( - 32 ), + - COUNT ( * ) ) WHEN - - 45 THEN NULL ELSE NULL END * + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT DISTINCT + ( 51 ) * NULLIF ( COUNT( * ), - 67 ) / + CASE + - COUNT( * ) WHEN 71 THEN 93 WHEN - 37 + - + 95 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT + ( 51 ) * NULLIF ( COUNT ( * ), - 67 ) / + CASE + - COUNT ( * ) WHEN 71 THEN 93 WHEN - 37 + - + 95 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 42 + + + ( - + 53 ) + 8 - - - 53
----
-56

query I rowsort
SELECT + 87 * 26 + - 29 - + + 12
----
2221

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT + + CASE + 40 WHEN - 11 + - 35 + 69 * COUNT( + 68 ) * + ( 42 ) / - ( + 97 ) + + 61 THEN 63 WHEN - + 72 THEN - 41 + - 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT + + CASE + 40 WHEN - 11 + - 35 + 69 * COUNT ( + 68 ) * + ( 42 ) / - ( + 97 ) + + 61 THEN 63 WHEN - + 72 THEN - 41 + - 11 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1743
SELECT + NULLIF ( - + 17, + ( 37 ) ) + - CAST( NULL AS SIGNED ) AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1743
SELECT + NULLIF ( - + 17, + ( 37 ) ) + - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT DISTINCT + CASE 9 WHEN + 71 + - COUNT( * ) - + + 69 + 46 * - NULLIF ( + 43, + 4 ) + COUNT( * ) THEN NULLIF ( + 56, + COUNT( * ) + - 24 + + - 30 ) END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT + CASE 9 WHEN + 71 + - COUNT ( * ) - + + 69 + 46 * - NULLIF ( + 43, + 4 ) + COUNT ( * ) THEN NULLIF ( + 56, + COUNT ( * ) + - 24 + + - 30 ) END + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - ( 98 ) + - 37
----
-135

query II rowsort
SELECT - 51 * 35 - + + 24 col1, 99
----
-1809
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1747
SELECT ALL 25 + CAST( - MIN( + 87 ) AS SIGNED ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL 25 + CAST ( - MIN ( + 87 ) AS INTEGER ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query III rowsort label-1748
SELECT 50 + + COUNT( * ) AS col0, + 57 * - - COUNT( * ) AS col0, 92 + - 17 AS col2
----
51
57
75

skipif mysql # not compatible
query III rowsort label-1748
SELECT 50 + + COUNT ( * ) AS col0, + 57 * - - COUNT ( * ) AS col0, 92 + - 17 AS col2
----
51
57
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT ( + SUM( + + 78 ) ) + - 33 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1749
SELECT ( + SUM ( + + 78 ) ) + - 33 AS col1
----
45

query I rowsort
SELECT 95 * + 16 * 79 AS col0
----
120080

query I rowsort
SELECT ALL + 15 + NULLIF ( 20, + 45 * + 42 ) + - 32 - ( - + 70 ) * - 66 * - 34 * + 83 * COALESCE ( - - 72, + 39 ) col2
----
938710083

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1753
SELECT 79 * + 88 AS col0, MIN( - + 17 ) AS col0
----
6952
-17

skipif mysql # not compatible
query II rowsort label-1753
SELECT 79 * + 88 AS col0, MIN ( - + 17 ) AS col0
----
6952
-17

query I rowsort
SELECT 85 + + 8 * - - 37 col2
----
381

query I rowsort
SELECT ALL 83 + 77 col1
----
160

onlyif mysql # aggregate syntax: 
query III rowsort label-1756
SELECT 94 + + - 28 * - 14 * - 70 + + + ( + 90 ) AS col1, - NULLIF ( 44, + - COUNT( * ) + + 63 ) + - - 61 * ( + ( 67 ) ), + - 17 AS col0
----
-27256
4043
-17

skipif mysql # not compatible
query III rowsort label-1756
SELECT 94 + + - 28 * - 14 * - 70 + + + ( + 90 ) AS col1, - NULLIF ( 44, + - COUNT ( * ) + + 63 ) + - - 61 * ( + ( 67 ) ), + - 17 AS col0
----
-27256
4043
-17

query I rowsort
SELECT 10 - 72
----
-62

query I rowsort
SELECT 84 + 9 + + + ( + + 51 ) * + 11
----
654

query I rowsort
SELECT 20 + - - ( - - ( + 14 ) ) AS col1
----
34

query I rowsort
SELECT 29 + + - ( - ( + 58 ) )
----
87

query I rowsort
SELECT ALL - 53 - - + 41 * 56
----
2243

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT COUNT( * ) + - - COALESCE ( 61, - 58, - 86 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-1762
SELECT COUNT ( * ) + - - COALESCE ( 61, - 58, - 86 ) col0
----
62

query I rowsort
SELECT 10 + + 85 * - + 52
----
-4410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT ALL + CAST( 61 AS SIGNED ) * - - 13 AS col2
----
793

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL + CAST ( 61 AS INTEGER ) * - - 13 AS col2
----
793

query I rowsort
SELECT ALL - CASE + 25 WHEN 73 THEN - 63 * + ( - 48 ) * - 34 ELSE - 29 END
----
29

query I rowsort
SELECT + 83 + + 96 AS col1
----
179

onlyif mysql # DIV for integer division: 
query I rowsort label-1767
SELECT ALL - + 31 - - 50 DIV COALESCE ( 49, + 56 )
----
-30

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL - + 31 - - 50 / COALESCE ( 49, + 56 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT DISTINCT - COALESCE ( ( + + 20 ), - COUNT( ALL 32 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT - COALESCE ( ( + + 20 ), - COUNT ( ALL 32 ) )
----
-20

query I rowsort
SELECT ALL + + 19 * + 19
----
361

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT + MAX( ALL + 22 ) * + + 38 + - 66
----
770

skipif mysql # not compatible
query I rowsort label-1770
SELECT + MAX ( ALL + 22 ) * + + 38 + - 66
----
770

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1772
SELECT 15 DIV - ( CAST( - 55 AS SIGNED ) ) + + + COUNT( * ) DIV COALESCE ( - 15, - + 60 ) + - 14
----
-14

skipif mysql # not compatible
query I rowsort label-1772
SELECT 15 / - ( CAST ( - 55 AS INTEGER ) ) + + + COUNT ( * ) / COALESCE ( - 15, - + 60 ) + - 14
----
-14

query II rowsort
SELECT ALL - + 16, - 13 + - - 87 + + 67 + - 71 * - 23 col0
----
-16
1774

query II rowsort
SELECT + 43 col1, 17
----
43
17

query I rowsort
SELECT ALL 38 + - 4
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT - 8 + COUNT( ALL - 57 )
----
-7

skipif mysql # not compatible
query I rowsort label-1776
SELECT - 8 + COUNT ( ALL - 57 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT DISTINCT + COUNT( * ) + + ( + 22 )
----
23

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT + COUNT ( * ) + + ( + 22 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT - ( + 70 ) * + NULLIF ( + 37, 4 ) - - 36 - + 21 * + COUNT( * ) col0
----
-2575

skipif mysql # not compatible
query I rowsort label-1778
SELECT - ( + 70 ) * + NULLIF ( + 37, 4 ) - - 36 - + 21 * + COUNT ( * ) col0
----
-2575

query I rowsort
SELECT ALL 65 * + 12 AS col2
----
780

query I rowsort
SELECT ALL - 57 + - 4 * + 8 AS col1
----
-89

query I rowsort
SELECT + 57 + - + 51 * + 9 * 38
----
-17385

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1782
SELECT DISTINCT 43 + + CAST( NULL AS SIGNED ) * - - 92, + 82 * 65 AS col1
----
NULL
5330

skipif mysql # not compatible
query II rowsort label-1782
SELECT DISTINCT 43 + + CAST ( NULL AS INTEGER ) * - - 92, + 82 * 65 AS col1
----
NULL
5330

query I rowsort
SELECT + 94 * - 4 - + 26 col1
----
-402

query I rowsort
SELECT ALL COALESCE ( + 52, + CASE + 71 WHEN + + COALESCE ( 61, + + 37, + NULLIF ( + + 5, - - ( + - 6 ) ) ) THEN - 67 END + - 79 * + 15 ) - 78 AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1785
SELECT DISTINCT + CASE - - 26 WHEN 96 * + 81 + + 1 + + ( + 61 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END * + 56 - - 42 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT + CASE - - 26 WHEN 96 * + 81 + + 1 + + ( + 61 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END * + 56 - - 42 / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1786
SELECT CAST( NULL AS SIGNED ) * - + 17 AS col1, 90 * - 82 col0
----
NULL
-7380

skipif mysql # not compatible
query II rowsort label-1786
SELECT CAST ( NULL AS INTEGER ) * - + 17 AS col1, 90 * - 82 col0
----
NULL
-7380

query I rowsort
SELECT 39 * + 51 AS col0
----
1989

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

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

query I rowsort
SELECT DISTINCT 29 * - + 76 * - 14 * + 22 col2
----
678832

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

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

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

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL - 74 / + 61 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ALL NULLIF ( + ( + - ( - - CASE + + ( - - 66 ) WHEN 18 * - 28 THEN + - COALESCE ( + COUNT( * ), + - 32, - + 35, + - MIN( + 95 ) * + 68 ) END ) ), + 46 + - 51 * 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL NULLIF ( + ( + - ( - - CASE + + ( - - 66 ) WHEN 18 * - 28 THEN + - COALESCE ( + COUNT ( * ), + - 32, - + 35, + - MIN ( + 95 ) * + 68 ) END ) ), + 46 + - 51 * 72 ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT - COALESCE ( 96, + MAX( - 92 ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-1794
SELECT - COALESCE ( 96, + MAX ( - 92 ) ) AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1795
SELECT ALL - 13 DIV + 53 * - 61 * - CASE + ( + - 66 ) WHEN NULLIF ( 22, 58 + + NULLIF ( CAST( NULL AS SIGNED ), 56 ) + + - 43 * + + 6 + CAST( NULL AS SIGNED ) ) DIV + - 89 + - ( + 20 ) + + 3 THEN MIN( 89 ) * 85 ELSE 16 + 30 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL - 13 / + 53 * - 61 * - CASE + ( + - 66 ) WHEN NULLIF ( 22, 58 + + NULLIF ( CAST ( NULL AS INTEGER ), 56 ) + + - 43 * + + 6 + CAST ( NULL AS INTEGER ) ) / + - 89 + - ( + 20 ) + + 3 THEN MIN ( 89 ) * 85 ELSE 16 + 30 END AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1796
SELECT + 56 DIV - 4 - COUNT( ALL + - 61 ) + - 63 * 35 col0
----
-2220

skipif mysql # not compatible
query I rowsort label-1796
SELECT + 56 / - 4 - COUNT ( ALL + - 61 ) + - 63 * 35 col0
----
-2220

query I rowsort
SELECT - + NULLIF ( 74, - 85 ) + 65 + - + 37
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1798
SELECT + CAST( 17 AS SIGNED ) col1
----
17

skipif mysql # not compatible
query I rowsort label-1798
SELECT + CAST ( 17 AS INTEGER ) col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1799
SELECT DISTINCT + ( COUNT( * ) ) col0, + NULLIF ( + - 99, 36 * - 50 - - - COUNT( * ) )
----
1
-99

skipif mysql # not compatible
query II rowsort label-1799
SELECT DISTINCT + ( COUNT ( * ) ) col0, + NULLIF ( + - 99, 36 * - 50 - - - COUNT ( * ) )
----
1
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT DISTINCT - 35 * 68 * - 25 + - - COUNT( * ) AS col2
----
59501

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT - 35 * 68 * - 25 + - - COUNT ( * ) AS col2
----
59501

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL - COUNT( * ) * + 73 + 85
----
12

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL - COUNT ( * ) * + 73 + 85
----
12

query I rowsort
SELECT + NULLIF ( + 34, + - 76 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1803
SELECT ALL 49 * + 91 / CASE - 45 WHEN + - 48 - CAST( NULL AS SIGNED ) + + COUNT( * ) + + 61 * + 42 THEN - 6 WHEN - 63 THEN 97 END + 19 * + - 31 + - 3 * + + COALESCE ( - + 72, 29 ) + + COUNT( * ) * + ( + 89 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL 49 * + 91 / CASE - 45 WHEN + - 48 - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 61 * + 42 THEN - 6 WHEN - 63 THEN 97 END + 19 * + - 31 + - 3 * + + COALESCE ( - + 72, 29 ) + + COUNT ( * ) * + ( + 89 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT - - NULLIF ( - 17, - 9 / - - 29 ) + - COUNT( DISTINCT - 92 )
----
-18

skipif mysql # not compatible
query I rowsort label-1804
SELECT - - NULLIF ( - 17, - 9 / - - 29 ) + - COUNT ( DISTINCT - 92 )
----
-18

query I rowsort
SELECT + NULLIF ( - + 11, - 61 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT + + COUNT( * ) - + COALESCE ( + 55, - 65 )
----
-54

skipif mysql # not compatible
query I rowsort label-1806
SELECT + + COUNT ( * ) - + COALESCE ( + 55, - 65 )
----
-54

query I rowsort
SELECT - 84 * - 1 * + - 9
----
-756

onlyif mysql # DIV for integer division: 
query I rowsort label-1808
SELECT ALL 96 DIV - 48
----
-2

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL 96 / - 48
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT - 2 DIV - 16
----
0

skipif mysql # not compatible
query I rowsort label-1809
SELECT - 2 / - 16
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1810
SELECT + COUNT( DISTINCT - ( 8 ) ) col2, 53 + + 20 + - COUNT( * ) col1
----
1
72

skipif mysql # not compatible
query II rowsort label-1810
SELECT + COUNT ( DISTINCT - ( 8 ) ) col2, 53 + + 20 + - COUNT ( * ) col1
----
1
72

query I rowsort
SELECT - 37 + 23
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT ALL - 98 DIV + 53
----
-1

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL - 98 / + 53
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT MAX( DISTINCT - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1813
SELECT MAX ( DISTINCT - 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT + 48 * - - CASE - - 87 WHEN + - AVG ( 49 ) * - + ( - + COUNT( * ) ) - NULLIF ( 50, 54 + + 87 * + + 20 * - SUM( DISTINCT + COALESCE ( - 39, + + 86, - ( + + COALESCE ( - ( ( - 92 ) ), + 91 * 56 + 75 ) ) * 38 ) ) ) THEN 23 ELSE NULL END * - 48 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1814
SELECT + 48 * - - CASE - - 87 WHEN + - AVG ( 49 ) * - + ( - + COUNT ( * ) ) - NULLIF ( 50, 54 + + 87 * + + 20 * - SUM ( DISTINCT + COALESCE ( - 39, + + 86, - ( + + COALESCE ( - ( ( - 92 ) ), + 91 * 56 + 75 ) ) * 38 ) ) ) THEN 23 ELSE NULL END * - 48 col0
----
NULL

query I rowsort
SELECT + 7 * + - 83
----
-581

query I rowsort
SELECT - 18 + NULLIF ( + 48, + - 92 - - + 35 ) AS col1
----
30

query I rowsort
SELECT ALL - 25 * - 3 - 14
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1818
SELECT - CAST( + + MIN( DISTINCT 10 ) AS SIGNED ) + + ( 59 ) + + - 59
----
-10

skipif mysql # not compatible
query I rowsort label-1818
SELECT - CAST ( + + MIN ( DISTINCT 10 ) AS INTEGER ) + + ( 59 ) + + - 59
----
-10

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

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

query I rowsort
SELECT + 12 + + + 38
----
50

query I rowsort
SELECT DISTINCT + 8 * - 39 AS col2
----
-312

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1822
SELECT + 64 + + + ( 61 ) + 67 - - - 75 DIV - + NULLIF ( 23, CAST( + 31 AS DECIMAL ) ) + - 46
----
149

skipif mysql # not compatible
query I rowsort label-1822
SELECT + 64 + + + ( 61 ) + 67 - - - 75 / - + NULLIF ( 23, CAST ( + 31 AS REAL ) ) + - 46
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-1823
SELECT 82 AS col1, - 18 * - 31 + + MIN( ALL - + NULLIF ( 35, 66 ) )
----
82
523

skipif mysql # not compatible
query II rowsort label-1823
SELECT 82 AS col1, - 18 * - 31 + + MIN ( ALL - + NULLIF ( 35, 66 ) )
----
82
523

query I rowsort
SELECT ALL + 34 + + 22 * 23 + + 7 + - 44
----
503

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT + - 28 + + 36 + - 66 - - 94 * COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1825
SELECT + - 28 + + 36 + - 66 - - 94 * COUNT ( * ) AS col1
----
36

query II rowsort
SELECT - - 7 col0, 94 AS col1
----
7
94

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

query I rowsort
SELECT + 1 + - 58 * - ( - 19 ) - - 12 * - 74 AS col1
----
-1989

query I rowsort
SELECT + 45 * + - 94 AS col1
----
-4230

query I rowsort
SELECT ALL ( - 40 ) + - 68 * 85
----
-5820

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT + 67 + + 49 DIV + + 7
----
74

skipif mysql # not compatible
query I rowsort label-1831
SELECT + 67 + + 49 / + + 7
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1832
SELECT + - COALESCE ( - 90, + + 71 * + + CAST( NULL AS SIGNED ) ) + - - 23 * - 28 * + 42 - - 25 * - 15 * CASE + - 45 WHEN COUNT( * ) + ( - CASE - - 57 WHEN + + 32 THEN 5 ELSE NULL END ) THEN - ( 91 ) END + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT + - COALESCE ( - 90, + + 71 * + + CAST ( NULL AS INTEGER ) ) + - - 23 * - 28 * + 42 - - 25 * - 15 * CASE + - 45 WHEN COUNT ( * ) + ( - CASE - - 57 WHEN + + 32 THEN 5 ELSE NULL END ) THEN - ( 91 ) END + - 51
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1834
SELECT DISTINCT COUNT( DISTINCT - 19 ) + - + COUNT( * ) - 9 * - 2 + - - 56, + 34 AS col0
----
74
34

skipif mysql # not compatible
query II rowsort label-1834
SELECT DISTINCT COUNT ( DISTINCT - 19 ) + - + COUNT ( * ) - 9 * - 2 + - - 56, + 34 AS col0
----
74
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT DISTINCT - 68 DIV 68 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - 68 / 68 / 43
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT + + 52 * COUNT( * ) + - + 1, COUNT( * ) * + COUNT( * ) AS col2
----
51
1

skipif mysql # not compatible
query II rowsort label-1836
SELECT + + 52 * COUNT ( * ) + - + 1, COUNT ( * ) * + COUNT ( * ) AS col2
----
51
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1837
SELECT ALL + 76, CAST( - + 70 AS SIGNED ) AS col0
----
76
-70

skipif mysql # not compatible
query II rowsort label-1837
SELECT ALL + 76, CAST ( - + 70 AS INTEGER ) AS col0
----
76
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1838
SELECT DISTINCT - + 34 DIV - 3
----
11

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT - + 34 / - 3
----
11

query I rowsort
SELECT - ( + + 75 ) + - + 80 - 2 AS col2
----
-157

query II rowsort
SELECT - 83 * - 43 + + - 35, 16 + + 22 AS col0
----
3534
38

query I rowsort
SELECT ALL + + 23 col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1842
SELECT ALL - 29 DIV - 30 + 90 - + + 29 + - MIN( DISTINCT 15 ) AS col2, + 67 + - + CAST( - 53 AS DECIMAL ) * + + CASE - - 0 WHEN 50 THEN NULL WHEN + - COALESCE ( - 18, - 93, - + 11 DIV - - 40 DIV - COUNT( * ) ) THEN ( + 3 ) * 63 - 59 END + ( - 12 + - SUM( DISTINCT 93 ) )
----
46
NULL

skipif mysql # not compatible
query II rowsort label-1842
SELECT ALL - 29 / - 30 + 90 - + + 29 + - MIN ( DISTINCT 15 ) AS col2, + 67 + - + CAST ( - 53 AS REAL ) * + + CASE - - 0 WHEN 50 THEN NULL WHEN + - COALESCE ( - 18, - 93, - + 11 / - - 40 / - COUNT ( * ) ) THEN ( + 3 ) * 63 - 59 END + ( - 12 + - SUM ( DISTINCT 93 ) )
----
46
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1843
SELECT ( + + 77 ) * + 6 * - + CAST( NULL AS SIGNED ) + - + 15 + - 26 + + 95 AS col1, 28 * 78 AS col1
----
NULL
2184

skipif mysql # not compatible
query II rowsort label-1843
SELECT ( + + 77 ) * + 6 * - + CAST ( NULL AS INTEGER ) + - + 15 + - 26 + + 95 AS col1, 28 * 78 AS col1
----
NULL
2184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1844
SELECT DISTINCT + 8 DIV + 50 * 75 * + + COUNT( * ) - - COUNT( * ) - 46 + + CAST( + 17 AS SIGNED ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT + 8 / + 50 * 75 * + + COUNT ( * ) - - COUNT ( * ) - 46 + + CAST ( + 17 AS INTEGER ) AS col2
----
-28

query I rowsort
SELECT ALL + CASE 77 WHEN - + 52 THEN 92 * 53 + - 50 - + 24 END
----
NULL

query I rowsort
SELECT - 24 + - - 6 AS col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1847
SELECT + NULLIF ( + + CAST( NULL AS SIGNED ), + 81 + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT + NULLIF ( + + CAST ( NULL AS INTEGER ), + 81 + 91 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT 94 * - MIN( DISTINCT - ( + - 35 ) ) * 46 + + 46 * + 70
----
-148120

skipif mysql # not compatible
query I rowsort label-1848
SELECT 94 * - MIN ( DISTINCT - ( + - 35 ) ) * 46 + + 46 * + 70
----
-148120

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT COALESCE ( - - 90, 76 * + - COUNT( * ) - 99 )
----
90

skipif mysql # not compatible
query I rowsort label-1849
SELECT COALESCE ( - - 90, 76 * + - COUNT ( * ) - 99 )
----
90

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

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - CAST ( + - 98 AS INTEGER )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1851
SELECT DISTINCT - COUNT( * ) DIV + 59 AS col0, + COALESCE ( - CAST( 21 AS SIGNED ), - 1 ) AS col1
----
0
-21

skipif mysql # not compatible
query II rowsort label-1851
SELECT DISTINCT - COUNT ( * ) / + 59 AS col0, + COALESCE ( - CAST ( 21 AS INTEGER ), - 1 ) AS col1
----
0
-21

query I rowsort
SELECT 19 * + 76 col1
----
1444

onlyif mysql # DIV for integer division: 
query I rowsort label-1853
SELECT DISTINCT - NULLIF ( - 42, - 60 ) DIV + 86 * + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT - NULLIF ( - 42, - 60 ) / + 86 * + 68 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1854
SELECT ALL + COUNT( - 38 ) + + 45 DIV + 35
----
2

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + COUNT ( - 38 ) + + 45 / + 35
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT 38 DIV + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1855
SELECT 38 / + 78 AS col0
----
0

query I rowsort
SELECT 9 * 41 AS col2
----
369

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

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

query I rowsort
SELECT + 38 * - + 72 col1
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL - COUNT( * ) + 55
----
54

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL - COUNT ( * ) + 55
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1860
SELECT CAST( 53 AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1860
SELECT CAST ( 53 AS INTEGER ) AS col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1861
SELECT ALL - - 32 * - - COUNT( * ) - 45 * - 84, - COUNT( * ) DIV NULLIF ( - 9, - 90 ) col0
----
3812
0

skipif mysql # not compatible
query II rowsort label-1861
SELECT ALL - - 32 * - - COUNT ( * ) - 45 * - 84, - COUNT ( * ) / NULLIF ( - 9, - 90 ) col0
----
3812
0

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

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT - + COUNT ( * ) + + + 85 AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT ALL + 61 + - - 2 + + - 20 DIV 10 * - 89 AS col2
----
241

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL + 61 + - - 2 + + - 20 / 10 * - 89 AS col2
----
241

query I rowsort
SELECT + 54 * - - 20 AS col0
----
1080

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

query I rowsort
SELECT ALL + 45 * + + COALESCE ( + 16, 9 * - 56 + - 84 ) * - 7 + 44 AS col2
----
-4996

query II rowsort
SELECT ALL - 34 * + 10, 16 * + 3 AS col1
----
-340
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT ALL - 33, + COALESCE ( - 18, + + COUNT( * ) * + 55 * - - NULLIF ( + COUNT( * ), - ( + 41 ) + + 0 + - 79 * 58 * + + 21 ) * + 70 ) * 67 - + 10 AS col2
----
-33
-1216

skipif mysql # not compatible
query II rowsort label-1868
SELECT ALL - 33, + COALESCE ( - 18, + + COUNT ( * ) * + 55 * - - NULLIF ( + COUNT ( * ), - ( + 41 ) + + 0 + - 79 * 58 * + + 21 ) * + 70 ) * 67 - + 10 AS col2
----
-33
-1216

query I rowsort
SELECT ( ( + + 1 ) ) * + - 15
----
-15

query II rowsort
SELECT + 65 AS col1, 68
----
65
68

query I rowsort
SELECT 78 + + 34
----
112

query I rowsort
SELECT + 19 * + 71 + + - ( + - 94 ) + - 89
----
1354

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT 23 - - - COALESCE ( + 74, + - 35 ) * - 11 + + COUNT( * ) + + - CASE - 93 WHEN 27 THEN - 77 END + + - 34 * + 90 * - + 50 * + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT 23 - - - COALESCE ( + 74, + - 35 ) * - 11 + + COUNT ( * ) + + - CASE - 93 WHEN 27 THEN - 77 END + + - 34 * + 90 * - + 50 * + 70 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT ( + 83 ) DIV - - ( - 7 )
----
-11

skipif mysql # not compatible
query I rowsort label-1874
SELECT ( + 83 ) / - - ( - 7 )
----
-11

query I rowsort
SELECT DISTINCT - 53 * - NULLIF ( 83, + 50 * + + 27 )
----
4399

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT ALL - COUNT( * ) * 31 * - 92 AS col0
----
2852

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL - COUNT ( * ) * 31 * - 92 AS col0
----
2852

query II rowsort
SELECT 29 * ( - 76 ), - 6 AS col1
----
-2204
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1878
SELECT ALL - MAX( DISTINCT 73 ) + 59 AS col2, + 23 + ( - + MAX( - 30 ) )
----
-14
53

skipif mysql # not compatible
query II rowsort label-1878
SELECT ALL - MAX ( DISTINCT 73 ) + 59 AS col2, + 23 + ( - + MAX ( - 30 ) )
----
-14
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT ALL + 8 + + 58 DIV - + 65 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL + 8 + + 58 / - + 65 AS col1
----
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT DISTINCT - ( - COALESCE ( - + 51, 6, 14 DIV + 42 * - - 49 + - 38 ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT - ( - COALESCE ( - + 51, 6, 14 / + 42 * - - 49 + - 38 ) ) AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1882
SELECT ALL + CAST( NULL AS SIGNED ) * - CAST( - 5 AS DECIMAL ) * 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL + CAST ( NULL AS INTEGER ) * - CAST ( - 5 AS REAL ) * 35 AS col1
----
NULL

query I rowsort
SELECT 19 + ( + 80 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT 54 * - COUNT( * ) * 42 AS col1
----
-2268

skipif mysql # not compatible
query I rowsort label-1884
SELECT 54 * - COUNT ( * ) * 42 AS col1
----
-2268

query I rowsort
SELECT 28 + - + ( + 9 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT - + NULLIF ( - CASE - COUNT( ALL 77 ) WHEN - - 18 / 75 THEN - 87 END, + 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1886
SELECT - + NULLIF ( - CASE - COUNT ( ALL 77 ) WHEN - - 18 / 75 THEN - 87 END, + 36 ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( + + 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT + 36 + + 1 + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-1888
SELECT + 36 + + 1 + + COUNT ( * )
----
38

query I rowsort
SELECT DISTINCT + - 68 + + - 21 AS col1
----
-89

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

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

query I rowsort
SELECT 47 + - - 75 * - 25 AS col2
----
-1828

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT DISTINCT - 32 + 46 * + 94 * - COUNT( * ) + - 73 + + 29 * 62 * + - COALESCE ( + CASE - - CASE - - 3 WHEN + 63 + + 25 + - 36 THEN NULL WHEN + - COALESCE ( 8, - ( + COUNT( * ) ) * - + 29, - + COUNT( * ) * 80 + 19 ) THEN 16 WHEN MAX( 88 ) THEN NULL END WHEN - MIN( + 67 ) THEN + COUNT( * ) WHEN - SUM( 66 ) THEN NULL END, 17 ) AS col0
----
-34995

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT - 32 + 46 * + 94 * - COUNT ( * ) + - 73 + + 29 * 62 * + - COALESCE ( + CASE - - CASE - - 3 WHEN + 63 + + 25 + - 36 THEN NULL WHEN + - COALESCE ( 8, - ( + COUNT ( * ) ) * - + 29, - + COUNT ( * ) * 80 + 19 ) THEN 16 WHEN MAX ( 88 ) THEN NULL END WHEN - MIN ( + 67 ) THEN + COUNT ( * ) WHEN - SUM ( 66 ) THEN NULL END, 17 ) AS col0
----
-34995

query I rowsort
SELECT + 86 + + 78
----
164

query I rowsort
SELECT 70 + + 53 AS col2
----
123

query I rowsort
SELECT ( - 29 ) + 23 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL - NULLIF ( + 9, + COALESCE ( + COUNT( * ), + 59 ) ) - - - 23
----
-32

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL - NULLIF ( + 9, + COALESCE ( + COUNT ( * ), + 59 ) ) - - - 23
----
-32

query I rowsort
SELECT ALL - 38 * 56
----
-2128

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

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

query I rowsort
SELECT DISTINCT - - 63 * - + 42
----
-2646

query I rowsort
SELECT 26 * + 40 * + 66
----
68640

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

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT + NULLIF ( - COUNT ( * ), - + 13 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT CASE + CASE + + 22 WHEN + 83 THEN + + 43 * + + 82 ELSE NULL END WHEN + 89 / - 89 THEN NULL WHEN - - COUNT( * ) THEN + + 50 WHEN + 24 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT CASE + CASE + + 22 WHEN + 83 THEN + + 43 * + + 82 ELSE NULL END WHEN + 89 / - 89 THEN NULL WHEN - - COUNT ( * ) THEN + + 50 WHEN + 24 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1903
SELECT + 60 AS col1, - 14 DIV - + 26 * - - 4
----
60
0

skipif mysql # not compatible
query II rowsort label-1903
SELECT + 60 AS col1, - 14 / - + 26 * - - 4
----
60
0

query II rowsort
SELECT ALL - 49, - 11 AS col2
----
-49
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT NULLIF ( - 64, - MIN( ALL 63 ) + 85 )
----
-64

skipif mysql # not compatible
query I rowsort label-1905
SELECT NULLIF ( - 64, - MIN ( ALL 63 ) + 85 )
----
-64

query I rowsort
SELECT + NULLIF ( - 70, + 31 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL CASE + - NULLIF ( - + 59, + + ( + + MAX( + 33 ) ) ) WHEN ( - 17 ) - - COUNT( * ) THEN + - 39 + - - COUNT( * ) + + 77 - - 97 WHEN + 95 THEN NULL ELSE NULL END * 81 * + - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL CASE + - NULLIF ( - + 59, + + ( + + MAX ( + 33 ) ) ) WHEN ( - 17 ) - - COUNT ( * ) THEN + - 39 + - - COUNT ( * ) + + 77 - - 97 WHEN + 95 THEN NULL ELSE NULL END * 81 * + - 78 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT 71 * + ( - 19 ) * + 92 * - - 69 + + SUM( + - 54 )
----
-8563506

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT 71 * + ( - 19 ) * + 92 * - - 69 + + SUM ( + - 54 )
----
-8563506

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT DISTINCT ( 26 ) * - COUNT( + - 30 ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT ( 26 ) * - COUNT ( + - 30 ) col2
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1911
SELECT + 41 DIV - + 46, COUNT( ALL + + ( - 59 ) ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-1911
SELECT + 41 / - + 46, COUNT ( ALL + + ( - 59 ) ) AS col1
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT + 35 + 10 DIV - 72 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1912
SELECT + 35 + 10 / - 72 AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT + 5 / + NULLIF ( - 76, + 52 ) * - + 4 * + 9 / + CAST( NULL AS SIGNED ) * + 97 * - - 47 / + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT + 5 / + NULLIF ( - 76, + 52 ) * - + 4 * + 9 / + CAST ( NULL AS INTEGER ) * + 97 * - - 47 / + - 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT - NULLIF ( + + 75, 80 * MIN( ALL + + ( 91 ) ) * - 80 + 86 * + - CASE + 83 WHEN - - 14 THEN + CAST( NULL AS SIGNED ) + - ( + - 52 ) ELSE NULL END + + - MIN( 4 ) ) + - 51
----
-126

skipif mysql # not compatible
query I rowsort label-1914
SELECT - NULLIF ( + + 75, 80 * MIN ( ALL + + ( 91 ) ) * - 80 + 86 * + - CASE + 83 WHEN - - 14 THEN + CAST ( NULL AS INTEGER ) + - ( + - 52 ) ELSE NULL END + + - MIN ( 4 ) ) + - 51
----
-126

query II rowsort
SELECT + 48 col1, ( 64 ) col1
----
48
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT MIN( + + 27 ) col0
----
27

skipif mysql # not compatible
query I rowsort label-1916
SELECT MIN ( + + 27 ) col0
----
27

query I rowsort
SELECT + 58 * + 68
----
3944

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1918
SELECT ALL 64 DIV + COALESCE ( 84, + 34 DIV 19 + - CAST( NULL AS SIGNED ) * - - ( - 40 ) * + - 71 * + 37 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL 64 / + COALESCE ( 84, + 34 / 19 + - CAST ( NULL AS INTEGER ) * - - ( - 40 ) * + - 71 * + 37 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1919
SELECT DISTINCT + NULLIF ( + 46, 94 * - 47 ) + 47 * - 22 + - + 4 DIV - ( - COUNT( * ) )
----
-992

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT + NULLIF ( + 46, 94 * - 47 ) + 47 * - 22 + - + 4 / - ( - COUNT ( * ) )
----
-992

query I rowsort
SELECT ALL + 5 * + + 8
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL 3 - - 23 * 25 + + 88 - + 63 * - COUNT( * ) col2
----
729

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL 3 - - 23 * 25 + + 88 - + 63 * - COUNT ( * ) col2
----
729

query I rowsort
SELECT ALL - - 69 - 0 + 2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT - CAST( + 44 AS SIGNED ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1923
SELECT - CAST ( + 44 AS INTEGER ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT - - ( - 56 ) * COUNT( * ) + 98
----
42

skipif mysql # not compatible
query I rowsort label-1924
SELECT - - ( - 56 ) * COUNT ( * ) + 98
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-1925
SELECT DISTINCT + + 40 * 80 AS col0, + COUNT( * ) + - + 41
----
3200
-40

skipif mysql # not compatible
query II rowsort label-1925
SELECT DISTINCT + + 40 * 80 AS col0, + COUNT ( * ) + - + 41
----
3200
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT ALL + - 15 DIV - 70 + + - 40
----
-40

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL + - 15 / - 70 + + - 40
----
-40

query I rowsort
SELECT - - ( - + 7 ) * - - 68 AS col0
----
-476

query II rowsort
SELECT - 20, 96 * + + 75 AS col1
----
-20
7200

onlyif mysql # aggregate syntax: 
query II rowsort label-1929
SELECT - 54, - MAX( DISTINCT 71 ) + MIN( DISTINCT - 1 ) AS col0
----
-54
-72

skipif mysql # not compatible
query II rowsort label-1929
SELECT - 54, - MAX ( DISTINCT 71 ) + MIN ( DISTINCT - 1 ) AS col0
----
-54
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT ALL CAST( - - 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL CAST ( - - 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT - + 63 + - COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-1931
SELECT - + 63 + - COUNT ( * ) AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT - 19 DIV - - ( - 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1932
SELECT - 19 / - - ( - 19 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT - CASE - 32 WHEN COUNT( * ) THEN + - 83 + + 59 + - 95 WHEN + 56 THEN NULL END + + + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1933
SELECT - CASE - 32 WHEN COUNT ( * ) THEN + - 83 + + 59 + - 95 WHEN + 56 THEN NULL END + + + 30 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1934
SELECT - ( + + 72 ) * CAST( NULL AS DECIMAL ) - + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT - ( + + 72 ) * CAST ( NULL AS REAL ) - + 38 AS col0
----
NULL

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

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

query I rowsort
SELECT + 60 * 97 AS col1
----
5820

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1938
SELECT DISTINCT MIN( - CAST( NULL AS DECIMAL ) ) / - + ( 13 ) / - + 20 + - - 83 + - + 1 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT MIN ( - CAST ( NULL AS REAL ) ) / - + ( 13 ) / - + 20 + - - 83 + - + 1 + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT DISTINCT 67 / - - 28 * CAST( NULL AS SIGNED ) + + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT 67 / - - 28 * CAST ( NULL AS INTEGER ) + + 14 AS col1
----
NULL

query II rowsort
SELECT - 66 * + 93 AS col2, 78 + 3
----
-6138
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1941
SELECT DISTINCT + COALESCE ( + MIN( DISTINCT + 62 ), + 31 ) DIV + 75 - + 70 + - + 82 + + 73
----
-79

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT + COALESCE ( + MIN ( DISTINCT + 62 ), + 31 ) / + 75 - + 70 + - + 82 + + 73
----
-79

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

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL - 38 / + 95 + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1943
SELECT DISTINCT COUNT( ALL - + CAST( NULL AS SIGNED ) ) DIV - 42 + - - 40
----
40

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) / - 42 + - - 40
----
40

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

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

query II rowsort
SELECT - 30 * + 36 AS col1, 80 * 11 + + 52 AS col1
----
-1080
932

query II rowsort
SELECT ( + - 43 ) AS col0, - 44 * 26 AS col0
----
-43
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT DISTINCT - 6 * - - 74 + - - COUNT( * )
----
-443

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT - 6 * - - 74 + - - COUNT ( * )
----
-443

query II rowsort
SELECT ( 11 ) AS col0, ( - 80 ) * 51 + - 2 * - 98 + - + 68 AS col0
----
11
-3952

query I rowsort
SELECT ALL 3 * - 48 + - 34
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT + NULLIF ( - 45, - ( + + 21 ) + - - 31 * + 47 * + NULLIF ( + + COUNT( * ), - 47 + - 54 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-1950
SELECT + NULLIF ( - 45, - ( + + 21 ) + - - 31 * + 47 * + NULLIF ( + + COUNT ( * ), - 47 + - 54 ) )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1951
SELECT ALL + CASE ( 15 ) WHEN CASE 7 WHEN - 37 THEN NULL ELSE 11 END + - 36 + + 9 + + 12 - + 63 + + 68 THEN 14 WHEN NULLIF ( 31, + 45 ) * 65 * - - CASE 75 WHEN - ( NULLIF ( + 70, + 26 + 12 ) ) + NULLIF ( 72 + - 23 * + 35, - CASE 84 WHEN ( - 2 ) THEN MAX( DISTINCT 82 ) + 40 WHEN + 7 THEN COUNT( * ) ELSE 25 / 81 END * - 54 + NULLIF ( - 61 + COUNT( * ), - COUNT( * ) ) ) THEN NULL WHEN - 43 * + 90 THEN - 84 * MAX( + 37 * - 99 ) ELSE + 16 * - CAST( - 54 AS SIGNED ) END + + 64 + MIN( + 42 - 59 ) * COUNT( * ) THEN NULL WHEN + 87 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL + CASE ( 15 ) WHEN CASE 7 WHEN - 37 THEN NULL ELSE 11 END + - 36 + + 9 + + 12 - + 63 + + 68 THEN 14 WHEN NULLIF ( 31, + 45 ) * 65 * - - CASE 75 WHEN - ( NULLIF ( + 70, + 26 + 12 ) ) + NULLIF ( 72 + - 23 * + 35, - CASE 84 WHEN ( - 2 ) THEN MAX ( DISTINCT 82 ) + 40 WHEN + 7 THEN COUNT ( * ) ELSE 25 / 81 END * - 54 + NULLIF ( - 61 + COUNT ( * ), - COUNT ( * ) ) ) THEN NULL WHEN - 43 * + 90 THEN - 84 * MAX ( + 37 * - 99 ) ELSE + 16 * - CAST ( - 54 AS INTEGER ) END + + 64 + MIN ( + 42 - 59 ) * COUNT ( * ) THEN NULL WHEN + 87 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT ALL + - 85 * - 49 - + 86 * COALESCE ( + COUNT( * ), + + 21 + + + ( + 69 ) ) AS col2
----
4079

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL + - 85 * - 49 - + 86 * COALESCE ( + COUNT ( * ), + + 21 + + + ( + 69 ) ) AS col2
----
4079

query II rowsort
SELECT DISTINCT 97 * 76 AS col0, 99 * - 53
----
7372
-5247

onlyif mysql # DIV for integer division: 
query II rowsort label-1954
SELECT + + ( - 24 ) * - + 70 + - 39 DIV 97 AS col1, - 79 AS col0
----
1680
-79

skipif mysql # not compatible
query II rowsort label-1954
SELECT + + ( - 24 ) * - + 70 + - 39 / 97 AS col1, - 79 AS col0
----
1680
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT + + 79 * + - 66 * + COALESCE ( 3, + COUNT( * ), 41 * + - 81 ) + - 56
----
-15698

skipif mysql # not compatible
query I rowsort label-1955
SELECT + + 79 * + - 66 * + COALESCE ( 3, + COUNT ( * ), 41 * + - 81 ) + - 56
----
-15698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT ALL + + ( + NULLIF ( - 17, - - 62 * + CAST( - 36 AS SIGNED ) * 34 + 74 * + AVG ( ALL + 78 ) + 0 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL + + ( + NULLIF ( - 17, - - 62 * + CAST ( - 36 AS INTEGER ) * 34 + 74 * + AVG ( ALL + 78 ) + 0 ) )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1957
SELECT - ( - 91 ) * + 72 + + - COUNT( * ) + + 5 + + - 53 - + - 12 DIV + 25 * + COALESCE ( - - 11, + CAST( 12 AS SIGNED ) + + + 26 * 29 ) + COUNT( * ) * - - 75
----
6578

skipif mysql # not compatible
query I rowsort label-1957
SELECT - ( - 91 ) * + 72 + + - COUNT ( * ) + + 5 + + - 53 - + - 12 / + 25 * + COALESCE ( - - 11, + CAST ( 12 AS INTEGER ) + + + 26 * 29 ) + COUNT ( * ) * - - 75
----
6578

onlyif mysql # aggregate syntax: 
query II rowsort label-1958
SELECT + 11 * 66, MAX( 0 ) col2
----
726
0

skipif mysql # not compatible
query II rowsort label-1958
SELECT + 11 * 66, MAX ( 0 ) col2
----
726
0

query I rowsort
SELECT - 81 * + 14 + + 61 AS col0
----
-1073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1960
SELECT + 20 + - CAST( + 86 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-1960
SELECT + 20 + - CAST ( + 86 AS INTEGER )
----
-66

query II rowsort
SELECT + 25 * + 27 AS col2, + 71 AS col0
----
675
71

onlyif mysql # DIV for integer division: 
query II rowsort label-1962
SELECT DISTINCT + 80 DIV 73 AS col1, 67 + - + 35 + + + 43 DIV + 44
----
1
32

skipif mysql # not compatible
query II rowsort label-1962
SELECT DISTINCT + 80 / 73 AS col1, 67 + - + 35 + + + 43 / + 44
----
1
32

query I rowsort
SELECT + - 52 + + 24
----
-28

query I rowsort
SELECT ALL 40 * - 72 / - CASE - 69 WHEN - 22 THEN 1 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1965
SELECT - 97 + - CASE 80 WHEN + + AVG ( ALL + - 98 ) + - + 93 THEN - CAST( NULL AS SIGNED ) / - CASE - - 1 WHEN - CASE 63 WHEN + CAST( NULL AS DECIMAL ) THEN + COUNT( * ) WHEN - 1 * + 52 + - 96 THEN NULL END * + - 44 - - 92 THEN NULL ELSE - + 4 END + 68 - COUNT( * ) + - SUM( + 41 ) * - COALESCE ( 3 + 53, - 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT - 97 + - CASE 80 WHEN + + AVG ( ALL + - 98 ) + - + 93 THEN - CAST ( NULL AS INTEGER ) / - CASE - - 1 WHEN - CASE 63 WHEN + CAST ( NULL AS REAL ) THEN + COUNT ( * ) WHEN - 1 * + 52 + - 96 THEN NULL END * + - 44 - - 92 THEN NULL ELSE - + 4 END + 68 - COUNT ( * ) + - SUM ( + 41 ) * - COALESCE ( 3 + 53, - 2 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT 30 * CASE - - 4 WHEN 23 * - 35 + + ( - + COUNT( * ) ) + + ( 15 ) THEN - 95 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT 30 * CASE - - 4 WHEN 23 * - 35 + + ( - + COUNT ( * ) ) + + ( 15 ) THEN - 95 END AS col1
----
NULL

query I rowsort
SELECT 33 + - 6
----
27

query II rowsort
SELECT 1 AS col1, + 21 AS col1
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL + ( 70 ) + - - ( MAX( DISTINCT - + 63 ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL + ( 70 ) + - - ( MAX ( DISTINCT - + 63 ) ) AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1970
SELECT 20 DIV + SUM( - 41 )
----
0

skipif mysql # not compatible
query I rowsort label-1970
SELECT 20 / + SUM ( - 41 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1971
SELECT 17 AS col0, SUM( ALL 30 ) - + 76 - 82 AS col2
----
17
-128

skipif mysql # not compatible
query II rowsort label-1971
SELECT 17 AS col0, SUM ( ALL 30 ) - + 76 - 82 AS col2
----
17
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-1972
SELECT 22 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-1972
SELECT 22 / + 82
----
0

query I rowsort
SELECT 58 * - 71 col0
----
-4118

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT 29 * - 42 * - + 43 AS col0, + ( - + 48 ) * + - 69 + COUNT( - 7 ) AS col0
----
52374
3313

skipif mysql # not compatible
query II rowsort label-1974
SELECT 29 * - 42 * - + 43 AS col0, + ( - + 48 ) * + - 69 + COUNT ( - 7 ) AS col0
----
52374
3313

onlyif mysql # aggregate syntax: 
query II rowsort label-1975
SELECT DISTINCT - COUNT( * ), + 31 col2
----
-1
31

skipif mysql # not compatible
query II rowsort label-1975
SELECT DISTINCT - COUNT ( * ), + 31 col2
----
-1
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1976
SELECT DISTINCT - 87 * + 53 * COALESCE ( 53, - 66 * - 64 * - - CAST( + COALESCE ( + 70, + CAST( NULL AS SIGNED ) ) AS SIGNED ) )
----
-244383

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT - 87 * + 53 * COALESCE ( 53, - 66 * - 64 * - - CAST ( + COALESCE ( + 70, + CAST ( NULL AS INTEGER ) ) AS INTEGER ) )
----
-244383

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

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

query I rowsort
SELECT 57 * 88 AS col1
----
5016

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

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

query I rowsort
SELECT DISTINCT + + 86 - + 2 * + 97
----
-108

query I rowsort
SELECT 76 + + 27 AS col2
----
103

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

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

skipif mysql # not compatible
query I rowsort label-1983
SELECT COUNT ( * ) * + MIN ( ALL + 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT ALL COUNT( * ) + - 26 + + 35
----
10

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL COUNT ( * ) + - 26 + + 35
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1985
SELECT 34 - - 79 DIV 43 * - 65 * + - NULLIF ( - + 77, - 9 + + + 58 )
----
-4971

skipif mysql # not compatible
query I rowsort label-1985
SELECT 34 - - 79 / 43 * - 65 * + - NULLIF ( - + 77, - 9 + + + 58 )
----
-4971

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1987
SELECT - 4 AS col1, - ( 61 ) DIV - 61 AS col1
----
-4
1

skipif mysql # not compatible
query II rowsort label-1987
SELECT - 4 AS col1, - ( 61 ) / - 61 AS col1
----
-4
1

query I rowsort
SELECT - 12 * + 79
----
-948

query I rowsort
SELECT 70 * - 70 AS col1
----
-4900

query I rowsort
SELECT ALL + 35 + - ( - 4 )
----
39

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1992
SELECT ALL 95 + + 4 + 91 DIV + 96 * - 15 * + 2 AS col1, 41
----
99
41

skipif mysql # not compatible
query II rowsort label-1992
SELECT ALL 95 + + 4 + 91 / + 96 * - 15 * + 2 AS col1, 41
----
99
41

query I rowsort
SELECT DISTINCT 99 + + 97 col0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL COALESCE ( - 45, - MAX( DISTINCT - 8 ) + + ( + 32 ) ) + 71 * - 95 col1
----
-6790

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL COALESCE ( - 45, - MAX ( DISTINCT - 8 ) + + ( + 32 ) ) + 71 * - 95 col1
----
-6790

onlyif mysql # aggregate syntax: 
query II rowsort label-1995
SELECT 23 * + 27 * - COUNT( * ) * - 61, 73 AS col1
----
37881
73

skipif mysql # not compatible
query II rowsort label-1995
SELECT 23 * + 27 * - COUNT ( * ) * - 61, 73 AS col1
----
37881
73

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

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

query II rowsort
SELECT NULLIF ( + 0, + 5 * - + 16 * - 91 ) + - 93 * - - ( - - 69 ) * 4, 5 AS col1
----
-25668
5

query II rowsort
SELECT ALL 83 * + 26, ( + + ( + 45 ) ) * + + 58 * + 35 AS col0
----
2158
91350

onlyif mysql # DIV for integer division: 
query I rowsort label-1999
SELECT 13 + - + 67 DIV + - 15
----
17

skipif mysql # not compatible
query I rowsort label-1999
SELECT 13 + - + 67 / + - 15
----
17

query I rowsort
SELECT ALL 1 * 17 * 3
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ( COUNT( * ) ) + + COUNT( ALL 63 )
----
2

skipif mysql # not compatible
query I rowsort label-2001
SELECT ( COUNT ( * ) ) + + COUNT ( ALL 63 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT - MAX( ALL + - 78 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-2002
SELECT - MAX ( ALL + - 78 ) col2
----
78

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

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

query I rowsort
SELECT DISTINCT + 41 * - - 58 - 34 AS col2
----
2344

query I rowsort
SELECT 19 * + 89 + + 96 AS col0
----
1787

query I rowsort
SELECT 64 * 63
----
4032

query I rowsort
SELECT 37 * - 39 + - 36 col0
----
-1479

onlyif mysql # aggregate syntax: 
query II rowsort label-2008
SELECT MIN( + COALESCE ( + 60, - 43 ) ), + 73 AS col0
----
60
73

skipif mysql # not compatible
query II rowsort label-2008
SELECT MIN ( + COALESCE ( + 60, - 43 ) ), + 73 AS col0
----
60
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2009
SELECT - 27 DIV + - ( + COUNT( + + 10 ) ) col2
----
27

skipif mysql # not compatible
query I rowsort label-2009
SELECT - 27 / + - ( + COUNT ( + + 10 ) ) col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT + COUNT( * ) * 18 + - 21 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2010
SELECT + COUNT ( * ) * 18 + - 21 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT MIN( ALL - 39 ) + 81 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2011
SELECT MIN ( ALL - 39 ) + 81 AS col2
----
42

query I rowsort
SELECT ALL - + 10 col1
----
-10

query I rowsort
SELECT + - 47 col0
----
-47

query I rowsort
SELECT DISTINCT 54 * ( - 76 ) col1
----
-4104

query I rowsort
SELECT + 75 * 87 + - 3 - + 80
----
6442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2016
SELECT ALL + + ( + 82 ) * - 6 + CAST( + 88 AS SIGNED )
----
-404

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL + + ( + 82 ) * - 6 + CAST ( + 88 AS INTEGER )
----
-404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2017
SELECT ALL - ( - COUNT( * ) ) * 91 + - 86 / - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL - ( - COUNT ( * ) ) * 91 + - 86 / - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2018
SELECT DISTINCT + CAST( - 20 AS SIGNED ) + + + 12 col2
----
-8

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT + CAST ( - 20 AS INTEGER ) + + + 12 col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL + + SUM( ALL + 27 ) + ( - 60 )
----
-33

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL + + SUM ( ALL + 27 ) + ( - 60 )
----
-33

query I rowsort
SELECT + 83 * + 72 + - - 34
----
6010

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT COUNT( * ) + - 20 * + 34
----
-679

skipif mysql # not compatible
query I rowsort label-2021
SELECT COUNT ( * ) + - 20 * + 34
----
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT + 87 * + - 77 - - SUM( ALL - 21 ) + - - 12
----
-6708

skipif mysql # not compatible
query I rowsort label-2022
SELECT + 87 * + - 77 - - SUM ( ALL - 21 ) + - - 12
----
-6708

query I rowsort
SELECT ALL - - COALESCE ( + - 19, + - ( + ( - ( - 65 ) ) ) )
----
-19

query I rowsort
SELECT DISTINCT 44 + 63 AS col1
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2025
SELECT DISTINCT + - COUNT( * ) + + 8 + CAST( NULL AS SIGNED ) / - 95 - - 92 + + 13 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT + - COUNT ( * ) + + 8 + CAST ( NULL AS INTEGER ) / - 95 - - 92 + + 13 col1
----
NULL

query I rowsort
SELECT - 32 + + 58
----
26

query I rowsort
SELECT ALL - + 99 + + - 72 AS col1
----
-171

query I rowsort
SELECT ALL + + 36 * + 3 + + 63
----
171

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2030
SELECT DISTINCT CASE WHEN - 53 IN ( + + 2, - CAST( NULL AS SIGNED ) + - 66, - 5 * 75 + - 3, + - 79 * 4, - 31 * + + 33 * + + 40 + + 89 ) THEN NULL ELSE ( - 51 ) END + + 35 col2
----
-16

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT CASE WHEN - 53 IN ( + + 2, - CAST ( NULL AS INTEGER ) + - 66, - 5 * 75 + - 3, + - 79 * 4, - 31 * + + 33 * + + 40 + + 89 ) THEN NULL ELSE ( - 51 ) END + + 35 col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2031
SELECT - MIN( ALL + ( + 82 ) ) AS col1, ( 96 ) - - 89
----
-82
185

skipif mysql # not compatible
query II rowsort label-2031
SELECT - MIN ( ALL + ( + 82 ) ) AS col1, ( 96 ) - - 89
----
-82
185

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT - 89 DIV - 72
----
1

skipif mysql # not compatible
query I rowsort label-2032
SELECT - 89 / - 72
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2033
SELECT + 71 + + - 14 * - - 34, + 30 * + 35 + + 64 + - + 77 + + ( + 71 ) + - - ( 81 ) + + - 91 DIV + 58 + MAX( ALL + + 63 ) * + - 79 AS col2
----
-405
-3789

skipif mysql # not compatible
query II rowsort label-2033
SELECT + 71 + + - 14 * - - 34, + 30 * + 35 + + 64 + - + 77 + + ( + 71 ) + - - ( 81 ) + + - 91 / + 58 + MAX ( ALL + + 63 ) * + - 79 AS col2
----
-405
-3789

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

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 88 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 32 - - NULLIF ( + 1, + + 3 ) + + - 91
----
-122

query I rowsort
SELECT - NULLIF ( - - 16, + 84 ) AS col0
----
-16

query I rowsort
SELECT ALL + 14 * NULLIF ( 20, - 82 ) col1
----
280

query I rowsort
SELECT + 99 - + 16 AS col0
----
83

query I rowsort
SELECT 42 * + - 18 + - 29 AS col2
----
-785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2040
SELECT + CASE + - 94 WHEN - - NULLIF ( ( CAST( NULL AS SIGNED ) ), - 26 - + 9 ) + 37 - 38 + SUM( ALL - 2 ) / + + 66 * - 4 THEN 84 WHEN - ( + 89 ) THEN + - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT + CASE + - 94 WHEN - - NULLIF ( ( CAST ( NULL AS INTEGER ) ), - 26 - + 9 ) + 37 - 38 + SUM ( ALL - 2 ) / + + 66 * - 4 THEN 84 WHEN - ( + 89 ) THEN + - 18 END
----
NULL

query I rowsort
SELECT + COALESCE ( + 80, + - ( 24 ) + + - 54 + + - 63, + 11 ) col0
----
80

query II rowsort
SELECT + + 6 * 34 + + + 24 * + 94 * + 95 AS col2, 42 - - + 1 AS col2
----
214524
43

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

query I rowsort
SELECT DISTINCT 43 * - 10 col0
----
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL + - MIN( ALL - + 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL + - MIN ( ALL - + 75 ) AS col0
----
75

query II rowsort
SELECT ALL + 29 * + 84 + - 86, 55 - 40 AS col1
----
2350
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT ALL CASE - + COUNT( * ) WHEN + 17 THEN 44 + - + 69 + - AVG ( ALL ( - CASE - ( - 69 ) WHEN + 78 THEN 56 / - + 15 ELSE NULL END ) ) WHEN + 56 THEN NULL ELSE NULL END * 66 + + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL CASE - + COUNT ( * ) WHEN + 17 THEN 44 + - + 69 + - AVG ( ALL ( - CASE - ( - 69 ) WHEN + 78 THEN 56 / - + 15 ELSE NULL END ) ) WHEN + 56 THEN NULL ELSE NULL END * 66 + + + 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2048
SELECT - SUM( DISTINCT - CAST( + 22 AS SIGNED ) )
----
22

skipif mysql # not compatible
query I rowsort label-2048
SELECT - SUM ( DISTINCT - CAST ( + 22 AS INTEGER ) )
----
22

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

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

query I rowsort
SELECT - - 74 + + + 82
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2051
SELECT ALL + 28 * - CASE 55 WHEN + CASE + + 20 WHEN + 37 THEN NULL ELSE + CASE + 86 WHEN - 70 THEN NULL ELSE + + SUM( 19 ) * - + 8 END * + + ( + ( - COUNT( * ) ) ) + 70 * - COUNT( * ) + 1 + - - 61 * + 95 END * - 3 * - CAST( - 80 AS SIGNED ) + - - 32 + + - 27 + - COUNT( * ) THEN NULLIF ( - 42, + 28 ) END * 30 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL + 28 * - CASE 55 WHEN + CASE + + 20 WHEN + 37 THEN NULL ELSE + CASE + 86 WHEN - 70 THEN NULL ELSE + + SUM ( 19 ) * - + 8 END * + + ( + ( - COUNT ( * ) ) ) + 70 * - COUNT ( * ) + 1 + - - 61 * + 95 END * - 3 * - CAST ( - 80 AS INTEGER ) + - - 32 + + - 27 + - COUNT ( * ) THEN NULLIF ( - 42, + 28 ) END * 30 + - COUNT ( * ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT - 16 * COUNT( - 42 ) + + CASE + + 81 WHEN - 96 THEN - + 42 WHEN 73 THEN NULL END + + 32 * - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT - 16 * COUNT ( - 42 ) + + CASE + + 81 WHEN - 96 THEN - + 42 WHEN 73 THEN NULL END + + 32 * - - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL + COUNT( DISTINCT + 38 ) * - 82 * - + 34 * + 44 + - 48 AS col1
----
122624

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + COUNT ( DISTINCT + 38 ) * - 82 * - + 34 * + 44 + - 48 AS col1
----
122624

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

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

query I rowsort
SELECT - + 47 * + - 71 * + 59 AS col2
----
196883

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

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

query I rowsort
SELECT - 90 - - 54 AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2059
SELECT ALL ( - CAST( + - 96 AS SIGNED ) )
----
96

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL ( - CAST ( + - 96 AS INTEGER ) )
----
96

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

skipif mysql # not compatible
query I rowsort label-2060
SELECT SUM ( DISTINCT - ( 62 ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT - COUNT( * ) - + COALESCE ( + 97, + + 4 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-2061
SELECT - COUNT ( * ) - + COALESCE ( + 97, + + 4 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT ALL 47 * 44 * COUNT( * ) * 16
----
33088

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL 47 * 44 * COUNT ( * ) * 16
----
33088

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT + ( - - 11 ) * 68 + + 99 DIV + 22
----
752

skipif mysql # not compatible
query I rowsort label-2063
SELECT + ( - - 11 ) * 68 + + 99 / + 22
----
752

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT + ( + 29 ) DIV - ( - 59 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2065
SELECT + ( + 29 ) / - ( - 59 ) AS col1
----
0

query II rowsort
SELECT 41, - 90 AS col2
----
41
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT - CASE - ( - 22 ) WHEN - - ( + 3 ) - - 59 + NULLIF ( - 16, - + 19 ) * ( + - COUNT( * ) ) THEN NULL WHEN - 35 + - COUNT( * ) THEN - - ( - - COUNT( - 49 ) ) ELSE + 71 END
----
-71

skipif mysql # not compatible
query I rowsort label-2067
SELECT - CASE - ( - 22 ) WHEN - - ( + 3 ) - - 59 + NULLIF ( - 16, - + 19 ) * ( + - COUNT ( * ) ) THEN NULL WHEN - 35 + - COUNT ( * ) THEN - - ( - - COUNT ( - 49 ) ) ELSE + 71 END
----
-71

query I rowsort
SELECT ALL 81 + - 46 + + 21 col2
----
56

query I rowsort
SELECT ALL 40 + + ( - 11 ) + - + 56 AS col2
----
-27

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

query II rowsort
SELECT + 76 + 13, 57 AS col0
----
89
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2072
SELECT + - 69 DIV 88, 13 * + + 80 - 85 * + CAST( ( 41 ) AS SIGNED ) col1
----
0
-2445

skipif mysql # not compatible
query II rowsort label-2072
SELECT + - 69 / 88, 13 * + + 80 - 85 * + CAST ( ( 41 ) AS INTEGER ) col1
----
0
-2445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2073
SELECT + COUNT( * ) DIV 82 DIV + 50 + 80 + - 94 + + - 19 * + CAST( + COUNT( * ) AS SIGNED ) + CAST( - - 6 AS SIGNED ) + + 69 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2073
SELECT + COUNT ( * ) / 82 / + 50 + 80 + - 94 + + - 19 * + CAST ( + COUNT ( * ) AS INTEGER ) + CAST ( - - 6 AS INTEGER ) + + 69 AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2074
SELECT + ( + 0 ) + - 85 + + 96 * + - 65 * - + 78 AS col2, MAX( 68 )
----
486635
68

skipif mysql # not compatible
query II rowsort label-2074
SELECT + ( + 0 ) + - 85 + + 96 * + - 65 * - + 78 AS col2, MAX ( 68 )
----
486635
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2075
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( + 31 ) / + MIN( ALL + 20 ) * - + MAX( + 66 ) + - - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( + 31 ) / + MIN ( ALL + 20 ) * - + MAX ( + 66 ) + - - 58 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 4 + + - NULLIF ( 5, + 84 - ( 92 ) - - - 29 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 12 * + 23 + - 6 AS col1
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT 42 * 9 - + 48 - + SUM( 22 )
----
308

skipif mysql # not compatible
query I rowsort label-2079
SELECT 42 * 9 - + 48 - + SUM ( 22 )
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL 61 * - + MIN( DISTINCT + + 51 )
----
-3111

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL 61 * - + MIN ( DISTINCT + + 51 )
----
-3111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT DISTINCT - - CASE 36 WHEN - CAST( NULL AS SIGNED ) THEN ( - 33 ) WHEN 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT - - CASE 36 WHEN - CAST ( NULL AS INTEGER ) THEN ( - 33 ) WHEN 47 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ALL - MAX( + 53 ) - + + 39 + + 38
----
-54

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL - MAX ( + 53 ) - + + 39 + + 38
----
-54

query I rowsort
SELECT + 58 * - 38 AS col1
----
-2204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT - 36 * + + COALESCE ( + 55, 82 + + CAST( NULL AS SIGNED ) + 57 ) + + 77 AS col2
----
-1903

skipif mysql # not compatible
query I rowsort label-2084
SELECT - 36 * + + COALESCE ( + 55, 82 + + CAST ( NULL AS INTEGER ) + 57 ) + + 77 AS col2
----
-1903

query II rowsort
SELECT 78 - 11 AS col2, - ( 72 ) - - 89 AS col2
----
67
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2086
SELECT COALESCE ( 40, - 75 ) + - 70 * + CAST( + 38 AS SIGNED ) * - - COUNT( * ) * - 73 * + COALESCE ( 93, + - 37, + COUNT( * ) + 28 ) - + 8
----
18058772

skipif mysql # not compatible
query I rowsort label-2086
SELECT COALESCE ( 40, - 75 ) + - 70 * + CAST ( + 38 AS INTEGER ) * - - COUNT ( * ) * - 73 * + COALESCE ( 93, + - 37, + COUNT ( * ) + 28 ) - + 8
----
18058772

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

skipif mysql # not compatible
query I rowsort label-2087
SELECT 29 / - COUNT ( * )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2088
SELECT DISTINCT 89 DIV + 3
----
29

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT 89 / + 3
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2089
SELECT DISTINCT - NULLIF ( + + CAST( NULL AS DECIMAL ), - - 23 / + - 47 ) * + - 84 / + NULLIF ( - + 1, + - 49 ) + + NULLIF ( SUM( + - 50 ), + CAST( NULL AS SIGNED ) ) * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT - NULLIF ( + + CAST ( NULL AS REAL ), - - 23 / + - 47 ) * + - 84 / + NULLIF ( - + 1, + - 49 ) + + NULLIF ( SUM ( + - 50 ), + CAST ( NULL AS INTEGER ) ) * + 93
----
NULL

query I rowsort
SELECT ALL + 87 * + 90 col2
----
7830

onlyif mysql # DIV for integer division: 
query II rowsort label-2091
SELECT 64 * - 11, 84 DIV + 82 AS col1
----
-704
1

skipif mysql # not compatible
query II rowsort label-2091
SELECT 64 * - 11, 84 / + 82 AS col1
----
-704
1

query I rowsort
SELECT 67 + 21 * - 11
----
-164

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT COUNT( ALL - 52 ) + + 44
----
45

skipif mysql # not compatible
query I rowsort label-2094
SELECT COUNT ( ALL - 52 ) + + 44
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT 54 * - COUNT( DISTINCT 16 ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-2095
SELECT 54 * - COUNT ( DISTINCT 16 ) col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT + 42 + + MIN( ALL + 37 ) col0
----
79

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT + 42 + + MIN ( ALL + 37 ) col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2097
SELECT ALL + 15 + + - 82 * - CASE 4 WHEN - COUNT( * ) THEN 22 ELSE - 91 * 3 DIV 5 END
----
-4413

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + 15 + + - 82 * - CASE 4 WHEN - COUNT ( * ) THEN 22 ELSE - 91 * 3 / 5 END
----
-4413

query I rowsort
SELECT DISTINCT + 93 + + 53
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2099
SELECT - COUNT( * ) - 58 + CAST( NULL AS SIGNED ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2099
SELECT - COUNT ( * ) - 58 + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT 14 * + 33 * - 17
----
-7854

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2101
SELECT DISTINCT - CAST( - + 81 AS SIGNED ), - ( - 70 ) * + 91 AS col1
----
81
6370

skipif mysql # not compatible
query II rowsort label-2101
SELECT DISTINCT - CAST ( - + 81 AS INTEGER ), - ( - 70 ) * + 91 AS col1
----
81
6370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2102
SELECT ALL - CAST( - 3 AS SIGNED ) + 73 + - - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL - CAST ( - 3 AS INTEGER ) + 73 + - - COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT SUM( + 91 ) * - 13 * COUNT( ALL + 75 ) AS col2
----
-1183

skipif mysql # not compatible
query I rowsort label-2103
SELECT SUM ( + 91 ) * - 13 * COUNT ( ALL + 75 ) AS col2
----
-1183

onlyif mysql # DIV for integer division: 
query I rowsort label-2104
SELECT ALL - 2 DIV - - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL - 2 / - - 78 AS col0
----
0

query I rowsort
SELECT ALL + 58 - 58
----
0

query II rowsort
SELECT 73 * 30 AS col1, - 69
----
2190
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2107
SELECT + 12 * - CAST( + 71 AS SIGNED ), - 38 + - 32 col0
----
-852
-70

skipif mysql # not compatible
query II rowsort label-2107
SELECT + 12 * - CAST ( + 71 AS INTEGER ), - 38 + - 32 col0
----
-852
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2108
SELECT 30 DIV + + 79 * + 2 + 9 + - NULLIF ( 2, 99 * + 88 * + 48 ) * + + 25 - COUNT( * ) + + COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-2108
SELECT 30 / + + 79 * + 2 + 9 + - NULLIF ( 2, 99 * + 88 * + 48 ) * + + 25 - COUNT ( * ) + + COUNT ( * ) AS col2
----
-41

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

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT - COUNT ( + 91 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL 95 * - + 89 * + COUNT( * )
----
-8455

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL 95 * - + 89 * + COUNT ( * )
----
-8455

query I rowsort
SELECT DISTINCT - 34 * - + 30 * + ( - 96 ) AS col2
----
-97920

onlyif mysql # DIV for integer division: 
query II rowsort label-2112
SELECT + 55, 45 DIV 99 col1
----
55
0

skipif mysql # not compatible
query II rowsort label-2112
SELECT + 55, 45 / 99 col1
----
55
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT DISTINCT - CASE + COUNT( * ) WHEN - 20 THEN + 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT - CASE + COUNT ( * ) WHEN - 20 THEN + 89 ELSE NULL END
----
NULL

query II rowsort
SELECT 80 AS col1, 94 AS col2
----
80
94

query I rowsort
SELECT 57 * 18 AS col2
----
1026

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

skipif mysql # not compatible
query II rowsort label-2116
SELECT - COUNT ( * ) AS col0, MIN ( - 94 )
----
-1
-94

query II rowsort
SELECT 96 col0, 43 AS col1
----
96
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT NULLIF ( - 10, + + CASE - + COUNT( * ) WHEN - - COUNT( * ) * COUNT( * ) THEN - - 61 ELSE 88 END ) - MAX( DISTINCT - 79 )
----
69

skipif mysql # not compatible
query I rowsort label-2118
SELECT NULLIF ( - 10, + + CASE - + COUNT ( * ) WHEN - - COUNT ( * ) * COUNT ( * ) THEN - - 61 ELSE 88 END ) - MAX ( DISTINCT - 79 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT 76 DIV + + 33
----
2

skipif mysql # not compatible
query I rowsort label-2119
SELECT 76 / + + 33
----
2

query I rowsort
SELECT ALL 71 + 51 AS col2
----
122

query I rowsort
SELECT DISTINCT - 1 * - 21 AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2122
SELECT MAX( ALL - + 82 ) DIV 51
----
-1

skipif mysql # not compatible
query I rowsort label-2122
SELECT MAX ( ALL - + 82 ) / 51
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL 35 + + MIN( - ( + 86 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL 35 + + MIN ( - ( + 86 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT MIN( DISTINCT + 22 ) - MIN( ALL - 66 ) + + - 14 + + 55 * - 85
----
-4601

skipif mysql # not compatible
query I rowsort label-2124
SELECT MIN ( DISTINCT + 22 ) - MIN ( ALL - 66 ) + + - 14 + + 55 * - 85
----
-4601

query I rowsort
SELECT 82 - - - 37
----
45

query I rowsort
SELECT ALL 28 + 6 * - - 95 AS col1
----
598

query I rowsort
SELECT ALL 5 + - 90 AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2128
SELECT CASE - 35 WHEN - - 70 THEN NULL ELSE 36 * + 63 END * + 14 AS col1, CAST( NULL AS SIGNED )
----
31752
NULL

skipif mysql # not compatible
query II rowsort label-2128
SELECT CASE - 35 WHEN - - 70 THEN NULL ELSE 36 * + 63 END * + 14 AS col1, CAST ( NULL AS INTEGER )
----
31752
NULL

query II rowsort
SELECT - + 36 AS col0, 74 AS col0
----
-36
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2130
SELECT - CASE CASE + 28 WHEN - 47 + COUNT( * ) THEN NULL WHEN + + 32 THEN + 5 * - 31 - - ( + 53 ) WHEN - + 33 / - - CAST( NULL AS SIGNED ) THEN NULL WHEN - - COUNT( * ) THEN - 79 END WHEN - 70 THEN + ( - ( - NULLIF ( 6, - + ( + COALESCE ( + + 36, + NULLIF ( + 45, 61 * 32 + NULLIF ( 64, - COALESCE ( + 36, 1, + COUNT( * ) * - 73 ) ) ) ) ) - 79 * 35 ) ) ) WHEN + CASE CAST( - 62 AS SIGNED ) WHEN + 96 * + ( + 69 * + COUNT( * ) ) THEN ( - 18 ) ELSE - 75 * + 71 + COUNT( * ) END - + SUM( + 15 ) THEN NULL ELSE 8 * MAX( - 34 ) END AS col2
----
272

skipif mysql # not compatible
query I rowsort label-2130
SELECT - CASE CASE + 28 WHEN - 47 + COUNT ( * ) THEN NULL WHEN + + 32 THEN + 5 * - 31 - - ( + 53 ) WHEN - + 33 / - - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - COUNT ( * ) THEN - 79 END WHEN - 70 THEN + ( - ( - NULLIF ( 6, - + ( + COALESCE ( + + 36, + NULLIF ( + 45, 61 * 32 + NULLIF ( 64, - COALESCE ( + 36, 1, + COUNT ( * ) * - 73 ) ) ) ) ) - 79 * 35 ) ) ) WHEN + CASE CAST ( - 62 AS INTEGER ) WHEN + 96 * + ( + 69 * + COUNT ( * ) ) THEN ( - 18 ) ELSE - 75 * + 71 + COUNT ( * ) END - + SUM ( + 15 ) THEN NULL ELSE 8 * MAX ( - 34 ) END AS col2
----
272

query I rowsort
SELECT + 24 + + + 93
----
117

query I rowsort
SELECT - 94 - - 23 - - 49 + 29 AS col1
----
7

query I rowsort
SELECT DISTINCT + + ( + + 34 ) - + + 17 + 79
----
96

query I rowsort
SELECT ALL - + 70 - + 7 + - - 5
----
-72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2136
SELECT DISTINCT COUNT( * ) AS col2, + ( 85 ) AS col1
----
1
85

skipif mysql # not compatible
query II rowsort label-2136
SELECT DISTINCT COUNT ( * ) AS col2, + ( 85 ) AS col1
----
1
85

query II rowsort
SELECT ALL + 49 AS col1, 33
----
49
33

query I rowsort
SELECT DISTINCT - + 94 * + 93 + - 79 + - 31 - - 6 * - 97 AS col2
----
-9434

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT ALL + + COALESCE ( + 45, ( + + 75 ) - - 74 * - 58 ) col1, MAX( DISTINCT 78 ) AS col2
----
45
78

skipif mysql # not compatible
query II rowsort label-2139
SELECT ALL + + COALESCE ( + 45, ( + + 75 ) - - 74 * - 58 ) col1, MAX ( DISTINCT 78 ) AS col2
----
45
78

query II rowsort
SELECT + 69 col2, + 52
----
69
52

query II rowsort
SELECT - 10 * 72 - - 52 - + 12 AS col1, + 83 AS col2
----
-680
83

query I rowsort
SELECT ALL - ( + 7 ) * + 55
----
-385

query I rowsort
SELECT - - 90 + 16 * - CASE - - 5 WHEN + 17 THEN + 24 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2144
SELECT DISTINCT + COALESCE ( + + 34, + 57 ), - 65 * 27 DIV 35 + - + 65 - ( - - COUNT( DISTINCT 95 ) ) AS col0
----
34
-116

skipif mysql # not compatible
query II rowsort label-2144
SELECT DISTINCT + COALESCE ( + + 34, + 57 ), - 65 * 27 / 35 + - + 65 - ( - - COUNT ( DISTINCT 95 ) ) AS col0
----
34
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT COUNT( DISTINCT - + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-2145
SELECT COUNT ( DISTINCT - + 65 )
----
1

query II rowsort
SELECT DISTINCT + 39, 39
----
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2147
SELECT - COALESCE ( + + 14, + COALESCE ( - ( - + 57 ), 34 * + 86 ) * + 22 * - 7 * 17 + 24 + 52 + + - CAST( NULL AS SIGNED ), - 46 ) * - - 13 * - - 68 + - COUNT( * )
----
-12377

skipif mysql # not compatible
query I rowsort label-2147
SELECT - COALESCE ( + + 14, + COALESCE ( - ( - + 57 ), 34 * + 86 ) * + 22 * - 7 * 17 + 24 + 52 + + - CAST ( NULL AS INTEGER ), - 46 ) * - - 13 * - - 68 + - COUNT ( * )
----
-12377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2148
SELECT DISTINCT 89 DIV - COUNT( * ), - CAST( NULL AS SIGNED ) AS col0
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-2148
SELECT DISTINCT 89 / - COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col0
----
-89
NULL

query I rowsort
SELECT ALL + CASE - 82 WHEN - ( - + 80 ) THEN - 86 + 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2150
SELECT + COUNT( * ) + - - COUNT( * ) AS col0, NULLIF ( - + 90, + 60 + - ( - 78 ) * - COUNT( * ) )
----
2
-90

skipif mysql # not compatible
query II rowsort label-2150
SELECT + COUNT ( * ) + - - COUNT ( * ) AS col0, NULLIF ( - + 90, + 60 + - ( - 78 ) * - COUNT ( * ) )
----
2
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT - 24 + + - ( + 66 ) + - 12 DIV - 92 - - ( + 47 ) - + 31 * - 81 * + 48 AS col0
----
120485

skipif mysql # not compatible
query I rowsort label-2151
SELECT - 24 + + - ( + 66 ) + - 12 / - 92 - - ( + 47 ) - + 31 * - 81 * + 48 AS col0
----
120485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2152
SELECT ALL ( + + 69 ) * + ( - NULLIF ( SUM( ALL - - 0 ), + - 70 ) ) - + + 60 + - COUNT( * ) + 34 * 76 + - - 51 + - + ( - 86 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL ( + + 69 ) * + ( - NULLIF ( SUM ( ALL - - 0 ), + - 70 ) ) - + + 60 + - COUNT ( * ) + 34 * 76 + - - 51 + - + ( - 86 ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT + 6 - 59 - - - SUM( - + ( - + 55 ) ) + - COUNT( * ) * - + 7 + 34 - + 22 + + COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-2153
SELECT + 6 - 59 - - - SUM ( - + ( - + 55 ) ) + - COUNT ( * ) * - + 7 + 34 - + 22 + + COUNT ( * ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT - SUM( DISTINCT - 4 ) + 67
----
71

skipif mysql # not compatible
query I rowsort label-2154
SELECT - SUM ( DISTINCT - 4 ) + 67
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + 69 * + 81 - + COUNT( ALL + 77 ) + + 78 * + 96 + + + 92 AS col0
----
13168

skipif mysql # not compatible
query I rowsort label-2155
SELECT + 69 * + 81 - + COUNT ( ALL + 77 ) + + 78 * + 96 + + + 92 AS col0
----
13168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT ALL CAST( NULLIF ( - + 62, + 48 ) AS SIGNED ) * - 44 + - 23 AS col1
----
2705

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL CAST ( NULLIF ( - + 62, + 48 ) AS INTEGER ) * - 44 + - 23 AS col1
----
2705

query I rowsort
SELECT + 53 * + + 77 * - 35 AS col1
----
-142835

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT + 59 + - - 24 * - 99 * NULLIF ( + 20, + 39 ) + + - SUM( - 75 ) AS col1
----
-47386

skipif mysql # not compatible
query I rowsort label-2158
SELECT + 59 + - - 24 * - 99 * NULLIF ( + 20, + 39 ) + + - SUM ( - 75 ) AS col1
----
-47386

onlyif mysql # aggregate syntax: 
query II rowsort label-2159
SELECT MAX( DISTINCT 70 ) AS col2, 19 AS col1
----
70
19

skipif mysql # not compatible
query II rowsort label-2159
SELECT MAX ( DISTINCT 70 ) AS col2, 19 AS col1
----
70
19

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

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

query I rowsort
SELECT DISTINCT - 42 + + 4 AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2162
SELECT ALL 17 + - - COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL 17 + - - COUNT ( * ) + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 61 * 60 + + 13 AS col1
----
3673

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL 29 + - COUNT( * ) - COUNT( * ) + SUM( ( 95 ) ) * - - 97 - 22 AS col0
----
9220

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL 29 + - COUNT ( * ) - COUNT ( * ) + SUM ( ( 95 ) ) * - - 97 - 22 AS col0
----
9220

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT + SUM( + 75 ) * + 89
----
6675

skipif mysql # not compatible
query I rowsort label-2166
SELECT + SUM ( + 75 ) * + 89
----
6675

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

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

query I rowsort
SELECT + - 46 * - 55 AS col0
----
2530

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT ALL + + 5 * - 70 * - COUNT( * )
----
350

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL + + 5 * - 70 * - COUNT ( * )
----
350

query I rowsort
SELECT + 53 + + 33 AS col0
----
86

query I rowsort
SELECT + 11 * + 14 + - 93
----
61

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2173
SELECT - + 30 DIV + 64 AS col1, MIN( DISTINCT + 65 ) + + + 45
----
0
110

skipif mysql # not compatible
query II rowsort label-2173
SELECT - + 30 / + 64 AS col1, MIN ( DISTINCT + 65 ) + + + 45
----
0
110

query II rowsort
SELECT - - 14 + COALESCE ( + 23, - 47 ) AS col1, - 94
----
37
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT ALL + + MIN( DISTINCT 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL + + MIN ( DISTINCT 47 ) AS col1
----
47

query I rowsort
SELECT + - 45 * + 21 * 37
----
-34965

query I rowsort
SELECT + 33 * + 19 + + + ( - - 7 )
----
634

query I rowsort
SELECT - 69 + 70 AS col1
----
1

query I rowsort
SELECT ALL + - 50 * - 69
----
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT - + COUNT( * ) * 1 * - COUNT( * ) + 76 - + 29 * + - 46 + + + 27 AS col1
----
1438

skipif mysql # not compatible
query I rowsort label-2180
SELECT - + COUNT ( * ) * 1 * - COUNT ( * ) + 76 - + 29 * + - 46 + + + 27 AS col1
----
1438

query I rowsort
SELECT DISTINCT + 18 * - 6
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2182
SELECT ALL 65 DIV + 30 + - ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL 65 / + 30 + - ( + COUNT ( * ) ) AS col1
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2184
SELECT + 90 / CAST( NULL AS SIGNED ) + - - COUNT( * ) * + ( - ( + ( AVG ( - 24 ) ) ) ), + 95 AS col0
----
NULL
95

skipif mysql # not compatible
query II rowsort label-2184
SELECT + 90 / CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * + ( - ( + ( AVG ( - 24 ) ) ) ), + 95 AS col0
----
NULL
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT DISTINCT 40 * + 33 + + ( COUNT( * ) ) * 19 * + COUNT( * )
----
1339

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT 40 * + 33 + + ( COUNT ( * ) ) * 19 * + COUNT ( * )
----
1339

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT ALL COALESCE ( + - 21, - - 76 ) * - ( 76 ) + - + COUNT( * )
----
1595

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL COALESCE ( + - 21, - - 76 ) * - ( 76 ) + - + COUNT ( * )
----
1595

query I rowsort
SELECT + 2 * + 79 * + + 55 + + 99 * + + ( - 70 ) AS col0
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT - CASE 18 WHEN - 81 THEN - COUNT( * ) ELSE + 88 END * 47
----
-4136

skipif mysql # not compatible
query I rowsort label-2188
SELECT - CASE 18 WHEN - 81 THEN - COUNT ( * ) ELSE + 88 END * 47
----
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL 21 * + + 56 * - COUNT( * ) + COUNT( * ) AS col0
----
-1175

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL 21 * + + 56 * - COUNT ( * ) + COUNT ( * ) AS col0
----
-1175

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL COUNT( * ) / - - CASE + 69 WHEN - + 6 * + MIN( DISTINCT 67 ) - - 44 THEN + CASE - 58 WHEN + ( - - 62 ) + - 99 THEN 56 - - 60 ELSE + - COUNT( * ) END * 14 + - - 92 * - 44 * 79 + + + 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL COUNT ( * ) / - - CASE + 69 WHEN - + 6 * + MIN ( DISTINCT 67 ) - - 44 THEN + CASE - 58 WHEN + ( - - 62 ) + - 99 THEN 56 - - 60 ELSE + - COUNT ( * ) END * 14 + - - 92 * - 44 * 79 + + + 73 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2191
SELECT - ( 73 ) DIV 11 * - 48 + - 40
----
248

skipif mysql # not compatible
query I rowsort label-2191
SELECT - ( 73 ) / 11 * - 48 + - 40
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL 52 * + - 34 + + 88 * COUNT( * )
----
-1680

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL 52 * + - 34 + + 88 * COUNT ( * )
----
-1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2193
SELECT ALL COALESCE ( + + COUNT( * ), + CAST( NULL AS SIGNED ) * + 49 ) * - COUNT( * ) AS col0, CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2193
SELECT ALL COALESCE ( + + COUNT ( * ), + CAST ( NULL AS INTEGER ) * + 49 ) * - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2194
SELECT DISTINCT + 84 DIV + - 45
----
-1

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT + 84 / + - 45
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2195
SELECT ALL + SUM( DISTINCT 98 ) DIV + 5 col0, - COUNT( * )
----
19
-1

skipif mysql # not compatible
query II rowsort label-2195
SELECT ALL + SUM ( DISTINCT 98 ) / + 5 col0, - COUNT ( * )
----
19
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2197
SELECT ( - COUNT( * ) ) DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-2197
SELECT ( - COUNT ( * ) ) / - 46
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2198
SELECT COUNT( * ) * - + MIN( + 81 ) AS col0, 48 * - 50 AS col1
----
-81
-2400

skipif mysql # not compatible
query II rowsort label-2198
SELECT COUNT ( * ) * - + MIN ( + 81 ) AS col0, 48 * - 50 AS col1
----
-81
-2400

query I rowsort
SELECT ALL 75 * - - 83
----
6225

query II rowsort
SELECT - + 53, 80 - 79 - ( + ( + NULLIF ( + 82, 26 ) ) ) * - 86 AS col0
----
-53
7053

query I rowsort
SELECT 99 - + + 14
----
85

query I rowsort
SELECT - NULLIF ( - + 77, - 61 ) - + + 41 * - 33 AS col0
----
1430

query I rowsort
SELECT ALL - 20 - 62 + - - 42 AS col2
----
-40

query II rowsort
SELECT ALL ( ( 44 ) ) AS col0, 2
----
44
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT + 65 * + ( COUNT( * ) ) - - 9 + + 76 * 66
----
5090

skipif mysql # not compatible
query I rowsort label-2205
SELECT + 65 * + ( COUNT ( * ) ) - - 9 + + 76 * 66
----
5090

query I rowsort
SELECT ALL CASE - ( + 90 ) WHEN - 19 THEN 95 END
----
NULL

query I rowsort
SELECT + 9 + 78 + ( - + 10 ) * - 7
----
157

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

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

query I rowsort
SELECT - 1 * + - 12 + 57 AS col0
----
69

query I rowsort
SELECT - - CASE - NULLIF ( - 96, + - 31 + 37 * - 29 ) WHEN - 33 THEN + - ( + - ( - - ( - 78 ) ) ) * - 39 * 27 WHEN + + 67 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2211
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, - 85 * - 21 + - 35 AS col1
----
NULL
1750

skipif mysql # not compatible
query II rowsort label-2211
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, - 85 * - 21 + - 35 AS col1
----
NULL
1750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2212
SELECT ALL 28 / - CASE CAST( 17 AS SIGNED ) WHEN + MAX( ALL + 59 ) * - NULLIF ( 81, + + 15 ) THEN - 67 ELSE NULL END, 41 col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-2212
SELECT ALL 28 / - CASE CAST ( 17 AS INTEGER ) WHEN + MAX ( ALL + 59 ) * - NULLIF ( 81, + + 15 ) THEN - 67 ELSE NULL END, 41 col2
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT DISTINCT - 55 + 8 * - COUNT( * ) + - - MIN( 38 ) * - 46 + 47 AS col0
----
-1764

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT - 55 + 8 * - COUNT ( * ) + - - MIN ( 38 ) * - 46 + 47 AS col0
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT - COUNT( * ) * 75 + 95 + 33
----
53

skipif mysql # not compatible
query I rowsort label-2214
SELECT - COUNT ( * ) * 75 + 95 + 33
----
53

query I rowsort
SELECT ALL - - NULLIF ( - 18, + CASE - 46 WHEN + + 41 THEN NULL ELSE - 35 END ) AS col1
----
-18

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

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

query I rowsort
SELECT ALL + 27 + 57
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT - 99 * 81 + - + SUM( ALL - + 74 ) + + + 74 + + 31 * COUNT( * ) AS col1
----
-7840

skipif mysql # not compatible
query I rowsort label-2218
SELECT - 99 * 81 + - + SUM ( ALL - + 74 ) + + + 74 + + 31 * COUNT ( * ) AS col1
----
-7840

query II rowsort
SELECT 69, 97 AS col0
----
69
97

query I rowsort
SELECT 73 * 67 * - 41
----
-200531

query I rowsort
SELECT 83 * + - 71 col2
----
-5893

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2222
SELECT ALL + 24 + NULLIF ( + 89, - 50 ) + CAST( NULL AS DECIMAL ) + - 3 + - MIN( DISTINCT + 99 ) * + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL + 24 + NULLIF ( + 89, - 50 ) + CAST ( NULL AS REAL ) + - 3 + - MIN ( DISTINCT + 99 ) * + + 69
----
NULL

query I rowsort
SELECT ALL 59 + - COALESCE ( + 89, + + 66 )
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT + MIN( DISTINCT - 16 ) * ( 92 ) + - - 38
----
-1434

skipif mysql # not compatible
query I rowsort label-2225
SELECT + MIN ( DISTINCT - 16 ) * ( 92 ) + - - 38
----
-1434

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

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL 53 + - + COUNT ( * ) AS col0
----
52

query I rowsort
SELECT 82 + + 98
----
180

query I rowsort
SELECT 92 + - 83 AS col2
----
9

query I rowsort
SELECT ALL + 97 * + + 98 col2
----
9506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2230
SELECT 98 * COUNT( * ) DIV + 19 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2230
SELECT 98 * COUNT ( * ) / + 19 AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2231
SELECT ALL - 37 AS col0, + COUNT( * ) + + 30 DIV 18
----
-37
2

skipif mysql # not compatible
query II rowsort label-2231
SELECT ALL - 37 AS col0, + COUNT ( * ) + + 30 / 18
----
-37
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2233
SELECT - ( 89 ) * - - ( + ( - - 93 ) ) * - COUNT( * ) + - 24 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT - ( 89 ) * - - ( + ( - - 93 ) ) * - COUNT ( * ) + - 24 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT 88 * - 4 * + 21
----
-7392

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT 37 * - COUNT( * ) * + - 21 + - 18 + - 40 * - 17
----
1439

skipif mysql # not compatible
query I rowsort label-2237
SELECT 37 * - COUNT ( * ) * + - 21 + - 18 + - 40 * - 17
----
1439

onlyif mysql # aggregate syntax: 
query II rowsort label-2238
SELECT + 13 + 18, 93 * + COUNT( * ) AS col1
----
31
93

skipif mysql # not compatible
query II rowsort label-2238
SELECT + 13 + 18, 93 * + COUNT ( * ) AS col1
----
31
93

query II rowsort
SELECT ALL - 27 col0, + 65
----
-27
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2240
SELECT COUNT( * ) + - + CAST( NULL AS DECIMAL ), - 18 * - + 11 + - + CAST( + 22 AS SIGNED ) col0
----
NULL
176

skipif mysql # not compatible
query II rowsort label-2240
SELECT COUNT ( * ) + - + CAST ( NULL AS REAL ), - 18 * - + 11 + - + CAST ( + 22 AS INTEGER ) col0
----
NULL
176

query I rowsort
SELECT DISTINCT + 86 * + 50
----
4300

query I rowsort
SELECT + 40 + - - ( 47 ) * - 1 AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2243
SELECT ALL - 75 DIV - COALESCE ( - 2, COUNT( * ) ) AS col1, CAST( NULL AS SIGNED ) + + - 38 AS col0
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-2243
SELECT ALL - 75 / - COALESCE ( - 2, COUNT ( * ) ) AS col1, CAST ( NULL AS INTEGER ) + + - 38 AS col0
----
-37
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2244
SELECT - COUNT( * ) DIV + 11 AS col2, 7
----
0
7

skipif mysql # not compatible
query II rowsort label-2244
SELECT - COUNT ( * ) / + 11 AS col2, 7
----
0
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT DISTINCT - + 21 DIV + ( - 79 )
----
0

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT - + 21 / + ( - 79 )
----
0

query I rowsort
SELECT 83 + - - 34 col2
----
117

query I rowsort
SELECT COALESCE ( - 90, - 32 ) AS col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2248
SELECT DISTINCT - 44 AS col2, COUNT( * ) + + - 50 + ( - + SUM( - 64 ) ) + + 32 * CASE CAST( + - 56 AS SIGNED ) WHEN - 1 THEN NULL ELSE - + CASE + - 10 WHEN 22 - - COUNT( * ) * + 11 THEN NULL ELSE - 68 END END
----
-44
2191

skipif mysql # not compatible
query II rowsort label-2248
SELECT DISTINCT - 44 AS col2, COUNT ( * ) + + - 50 + ( - + SUM ( - 64 ) ) + + 32 * CASE CAST ( + - 56 AS INTEGER ) WHEN - 1 THEN NULL ELSE - + CASE + - 10 WHEN 22 - - COUNT ( * ) * + 11 THEN NULL ELSE - 68 END END
----
-44
2191

query I rowsort
SELECT ALL - 17 + 85 * 54 AS col0
----
4573

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2250
SELECT ALL 73 + - COUNT( * ) * + COUNT( * ) DIV 90 col0, + 66 col2
----
73
66

skipif mysql # not compatible
query II rowsort label-2250
SELECT ALL 73 + - COUNT ( * ) * + COUNT ( * ) / 90 col0, + 66 col2
----
73
66

query II rowsort
SELECT - 60 AS col2, 56 AS col0
----
-60
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2252
SELECT DISTINCT + - 16 + + 66 + - CASE 89 WHEN + 2 THEN NULL WHEN 39 * + + 93 + - COUNT( * ) THEN NULL ELSE + + COALESCE ( - 41, - 75 ) + - + 94 END * + CAST( NULL AS SIGNED ) * + 71 * 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + - 16 + + 66 + - CASE 89 WHEN + 2 THEN NULL WHEN 39 * + + 93 + - COUNT ( * ) THEN NULL ELSE + + COALESCE ( - 41, - 75 ) + - + 94 END * + CAST ( NULL AS INTEGER ) * + 71 * 5 AS col2
----
NULL

query II rowsort
SELECT ALL 33 col2, 17 + + + 21
----
33
38

query I rowsort
SELECT - 65 + 80 * - - 9 col2
----
655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2255
SELECT ALL COALESCE ( + 42, 91 * - COALESCE ( - CASE + COALESCE ( + 78, - 97 + - 85 ) WHEN + 83 DIV - 74 * + - 86 + 95 + + + COUNT( * ) * - + 96 THEN 29 END, + + 68 * - - 67 + 14 - + 71 ) ) + + - 93 - + 17 DIV + + 59 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL COALESCE ( + 42, 91 * - COALESCE ( - CASE + COALESCE ( + 78, - 97 + - 85 ) WHEN + 83 / - 74 * + - 86 + 95 + + + COUNT ( * ) * - + 96 THEN 29 END, + + 68 * - - 67 + 14 - + 71 ) ) + + - 93 - + 17 / + + 59 AS col2
----
-51

query I rowsort
SELECT DISTINCT - 23 + - 79
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT 41 - - + 37 * - MIN( - 87 )
----
3260

skipif mysql # not compatible
query I rowsort label-2257
SELECT 41 - - + 37 * - MIN ( - 87 )
----
3260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2258
SELECT + COUNT( - 62 ) col0, - ( + + 9 ) DIV - 77
----
1
0

skipif mysql # not compatible
query II rowsort label-2258
SELECT + COUNT ( - 62 ) col0, - ( + + 9 ) / - 77
----
1
0

query I rowsort
SELECT ALL 69 * - 42 + - 10 - + 57 col2
----
-2965

query II rowsort
SELECT 67 * + 40 AS col1, + 34 * 61 AS col0
----
2680
2074

query I rowsort
SELECT ALL 42 * + 95 * + 27
----
107730

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2262
SELECT 73 / - CAST( NULL AS SIGNED ) AS col1, CASE + + 0 WHEN - 21 + CAST( - + ( + 67 ) AS SIGNED ) THEN + 51 + - 0 + - 5 * - 10 * - 35 * - 20 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2262
SELECT 73 / - CAST ( NULL AS INTEGER ) AS col1, CASE + + 0 WHEN - 21 + CAST ( - + ( + 67 ) AS INTEGER ) THEN + 51 + - 0 + - 5 * - 10 * - 35 * - 20 END
----
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - 74 * - 55 * 50 * + 97 - 46
----
19739454

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT ALL 6 * - + 36 * COUNT( * )
----
-216

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL 6 * - + 36 * COUNT ( * )
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT + 12 DIV + NULLIF ( - - 68, - 44 )
----
0

skipif mysql # not compatible
query I rowsort label-2266
SELECT + 12 / + NULLIF ( - - 68, - 44 )
----
0

query II rowsort
SELECT - 94 + - - 32 AS col1, + 31
----
-62
31

query I rowsort
SELECT - 52 * - 7
----
364

query I rowsort
SELECT ALL + CASE - 99 WHEN - + 77 THEN + + 1 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL + MAX( 3 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL + MAX ( 3 ) col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL + MIN( ALL 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + MIN ( ALL 67 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT + - SUM( ALL 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT + - SUM ( ALL 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT + 64 - 40 + - CASE 67 WHEN + 61 THEN NULL WHEN 42 + 81 THEN NULL WHEN 57 + - + 23 THEN NULL ELSE + MIN( ALL - 19 ) + + 99 + COUNT( * ) END + - + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-2273
SELECT + 64 - 40 + - CASE 67 WHEN + 61 THEN NULL WHEN 42 + 81 THEN NULL WHEN 57 + - + 23 THEN NULL ELSE + MIN ( ALL - 19 ) + + 99 + COUNT ( * ) END + - + COUNT ( * )
----
-58

query I rowsort
SELECT NULLIF ( 87, 78 ) AS col1
----
87

query I rowsort
SELECT ALL - - 18 * 67 AS col1
----
1206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2276
SELECT + + CAST( NULL AS SIGNED ) * + NULLIF ( 70, + - 86 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT + + CAST ( NULL AS INTEGER ) * + NULLIF ( 70, + - 86 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2277
SELECT - 91 + + CAST( COUNT( * ) AS SIGNED ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-2277
SELECT - 91 + + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-90

query I rowsort
SELECT - 4 + + ( 10 ) + - 94 * 41
----
-3848

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2280
SELECT ALL + 52 * COUNT( * ) * - 13 * + 26 * - CAST( NULL AS SIGNED ) AS col1, + 39 * ( + - CAST( NULL AS DECIMAL ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2280
SELECT ALL + 52 * COUNT ( * ) * - 13 * + 26 * - CAST ( NULL AS INTEGER ) AS col1, + 39 * ( + - CAST ( NULL AS REAL ) )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT ALL + CASE - 28 WHEN + 88 THEN + COUNT( * ) END + COALESCE ( + + 90, + 40 - + - NULLIF ( 43, + + COUNT( * ) * - + 64 + + CAST( - COUNT( * ) AS SIGNED ) ) * 30 ) + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL + CASE - 28 WHEN + 88 THEN + COUNT ( * ) END + COALESCE ( + + 90, + 40 - + - NULLIF ( 43, + + COUNT ( * ) * - + 64 + + CAST ( - COUNT ( * ) AS INTEGER ) ) * 30 ) + 95
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2282
SELECT - - 82 - - 37 AS col1, + SUM( ALL 48 ) AS col2
----
119
48

skipif mysql # not compatible
query II rowsort label-2282
SELECT - - 82 - - 37 AS col1, + SUM ( ALL 48 ) AS col2
----
119
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2283
SELECT DISTINCT + - 14 + 89 + + CAST( NULL AS DECIMAL ) * - 80 / + 38 / - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT + - 14 + 89 + + CAST ( NULL AS REAL ) * - 80 / + 38 / - 31
----
NULL

query I rowsort
SELECT ALL - 86 + + - 2 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-2285
SELECT - 93 + + 40 AS col1, + SUM( - ( + 35 ) ) * + 51
----
-53
-1785

skipif mysql # not compatible
query II rowsort label-2285
SELECT - 93 + + 40 AS col1, + SUM ( - ( + 35 ) ) * + 51
----
-53
-1785

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT - + 5 * 64, - COUNT( * ) AS col1
----
-320
-1

skipif mysql # not compatible
query II rowsort label-2286
SELECT - + 5 * 64, - COUNT ( * ) AS col1
----
-320
-1

query I rowsort
SELECT - NULLIF ( + + 49, 45 + 4 ) + - 82
----
NULL

query I rowsort
SELECT + 76 * + 10 AS col2
----
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2289
SELECT ALL - 36 * + + CAST( NULL AS SIGNED ) * 64 - + + 77 * 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL - 36 * + + CAST ( NULL AS INTEGER ) * 64 - + + 77 * 23 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2290
SELECT + - 25 DIV - ( + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-2290
SELECT + - 25 / - ( + 21 )
----
1

query I rowsort
SELECT + 43 - - - 93 + + + 75 * - CASE + + 74 WHEN 78 THEN NULL WHEN 29 THEN + 78 END
----
NULL

query I rowsort
SELECT DISTINCT + 51 * 98 col2
----
4998

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

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

query I rowsort
SELECT ALL 25 - + 96
----
-71

query I rowsort
SELECT ALL - 97 * 42
----
-4074

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ALL + ( NULLIF ( - COUNT( * ), - 51 + 9 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL + ( NULLIF ( - COUNT ( * ), - 51 + 9 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT + 76 * 49 * - MAX( DISTINCT - ( - + 60 ) )
----
-223440

skipif mysql # not compatible
query I rowsort label-2297
SELECT + 76 * 49 * - MAX ( DISTINCT - ( - + 60 ) )
----
-223440

query I rowsort
SELECT + NULLIF ( - COALESCE ( + 49, 1 ), + 50 )
----
-49

query I rowsort
SELECT - ( 10 ) + + + 12
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT + COUNT( * ) * + 24 col0
----
24

skipif mysql # not compatible
query I rowsort label-2300
SELECT + COUNT ( * ) * + 24 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ( + + ( + 80 ) ) * + - ( + MAX( ALL + 1 ) ) * - COUNT( * ) + COUNT( * ) * + 56
----
136

skipif mysql # not compatible
query I rowsort label-2301
SELECT ( + + ( + 80 ) ) * + - ( + MAX ( ALL + 1 ) ) * - COUNT ( * ) + COUNT ( * ) * + 56
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT - 14 * 41 DIV 74 + 61 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2302
SELECT - 14 * 41 / 74 + 61 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2303
SELECT ALL COUNT( * ) * CASE - 14 WHEN + 22 THEN - - 14 WHEN - - COUNT( * ) THEN NULL WHEN + 1 * 61 THEN NULL END AS col2, 55 * 89 * - CAST( + + 85 AS SIGNED ) AS col2
----
NULL
-416075

skipif mysql # not compatible
query II rowsort label-2303
SELECT ALL COUNT ( * ) * CASE - 14 WHEN + 22 THEN - - 14 WHEN - - COUNT ( * ) THEN NULL WHEN + 1 * 61 THEN NULL END AS col2, 55 * 89 * - CAST ( + + 85 AS INTEGER ) AS col2
----
NULL
-416075

query I rowsort
SELECT + 10 + + - 16
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT ALL 16 * 71 * + MAX( DISTINCT - 2 ) AS col0
----
-2272

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL 16 * 71 * + MAX ( DISTINCT - 2 ) AS col0
----
-2272

query I rowsort
SELECT ALL + - 73 * - 30 * + 22 * - 22 + + + COALESCE ( 78, + 36 ) + - + 50 AS col1
----
-1059932

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - - COUNT( * ) * - 96 * 67 * - 11 + 29
----
70781

skipif mysql # not compatible
query I rowsort label-2307
SELECT - - COUNT ( * ) * - 96 * 67 * - 11 + 29
----
70781

query II rowsort
SELECT ALL + + 1, + 40 AS col2
----
1
40

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2310
SELECT + + 3 DIV - 94 + - 62
----
-62

skipif mysql # not compatible
query I rowsort label-2310
SELECT + + 3 / - 94 + - 62
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2311
SELECT + 97 + - COUNT( * ) DIV + 31 DIV + 90 DIV + + 74 DIV - - COUNT( * ) + 92
----
189

skipif mysql # not compatible
query I rowsort label-2311
SELECT + 97 + - COUNT ( * ) / + 31 / + 90 / + + 74 / - - COUNT ( * ) + 92
----
189

query II rowsort
SELECT ALL - - 56 * + + CASE WHEN ( NULL ) IS NULL THEN + 88 END + - 66 AS col1, 50 * + 46 * + 68
----
4862
156400

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT - 8 * - 40 + - COUNT( * ) + + - 83 * + 0 AS col0
----
319

skipif mysql # not compatible
query I rowsort label-2313
SELECT - 8 * - 40 + - COUNT ( * ) + + - 83 * + 0 AS col0
----
319

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT ALL 28 * COUNT( * ) * - ( - - COUNT( * ) ) * - 36 + - - 23 + + 37 * + COALESCE ( + 17, + 54 ) + - 62 * 51 AS col1
----
-1502

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL 28 * COUNT ( * ) * - ( - - COUNT ( * ) ) * - 36 + - - 23 + + 37 * + COALESCE ( + 17, + 54 ) + - 62 * 51 AS col1
----
-1502

query I rowsort
SELECT + 25 + - - 78 AS col0
----
103

query I rowsort
SELECT ALL - - 24 * - 4 + - 43 AS col2
----
-139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2317
SELECT + + ( CAST( - CAST( - 69 AS SIGNED ) AS SIGNED ) ) * - - MIN( + + 87 ) AS col0
----
6003

skipif mysql # not compatible
query I rowsort label-2317
SELECT + + ( CAST ( - CAST ( - 69 AS INTEGER ) AS INTEGER ) ) * - - MIN ( + + 87 ) AS col0
----
6003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT ALL - 40 * - 66 * - CAST( + 43 AS SIGNED ) + + 42 AS col2
----
-113478

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL - 40 * - 66 * - CAST ( + 43 AS INTEGER ) + + 42 AS col2
----
-113478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2319
SELECT - + MAX( ALL 58 ) + + CAST( NULL AS SIGNED ) * CASE + - COUNT( * ) WHEN - - 32 THEN - 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT - + MAX ( ALL 58 ) + + CAST ( NULL AS INTEGER ) * CASE + - COUNT ( * ) WHEN - - 32 THEN - 87 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2320
SELECT ALL - NULLIF ( + 29, + - 76 ), - COUNT( * ) DIV + - 73 col2
----
-29
0

skipif mysql # not compatible
query II rowsort label-2320
SELECT ALL - NULLIF ( + 29, + - 76 ), - COUNT ( * ) / + - 73 col2
----
-29
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT - - CAST( - 11 AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-2321
SELECT - - CAST ( - 11 AS INTEGER ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT - SUM( 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-2322
SELECT - SUM ( 73 )
----
-73

query I rowsort
SELECT - - 96 + 26 AS col2
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2324
SELECT + - 85 * + CAST( + 1 AS SIGNED ) * 93 + 14 + 16 + + 69 + - ( - 77 ) * - 46 AS col0
----
-11348

skipif mysql # not compatible
query I rowsort label-2324
SELECT + - 85 * + CAST ( + 1 AS INTEGER ) * 93 + 14 + 16 + + 69 + - ( - 77 ) * - 46 AS col0
----
-11348

onlyif mysql # aggregate syntax: 
query II rowsort label-2325
SELECT ALL + - 36 - + MIN( - 79 ) AS col2, 80
----
43
80

skipif mysql # not compatible
query II rowsort label-2325
SELECT ALL + - 36 - + MIN ( - 79 ) AS col2, 80
----
43
80

query II rowsort
SELECT DISTINCT 95 * + + 19 AS col2, 26 AS col2
----
1805
26

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

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

query I rowsort
SELECT - NULLIF ( - ( - 32 ), - 28 ) + + 56 col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-2329
SELECT ALL - 11 - - 80 AS col0, + 11 + + COUNT( * ) AS col1
----
69
12

skipif mysql # not compatible
query II rowsort label-2329
SELECT ALL - 11 - - 80 AS col0, + 11 + + COUNT ( * ) AS col1
----
69
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT 66 DIV - - 93
----
0

skipif mysql # not compatible
query I rowsort label-2330
SELECT 66 / - - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT 2 * + - MIN( DISTINCT - 45 )
----
90

skipif mysql # not compatible
query I rowsort label-2331
SELECT 2 * + - MIN ( DISTINCT - 45 )
----
90

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2333
SELECT 2 * 13 DIV + COUNT( * ) + 97 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-2333
SELECT 2 * 13 / + COUNT ( * ) + 97 AS col1
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT 92 DIV 3 DIV + 26 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2334
SELECT 92 / 3 / + 26 AS col2
----
1

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

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

query I rowsort
SELECT ALL - 48 * - - 17 AS col2
----
-816

query I rowsort
SELECT 1 * - 37
----
-37

query I rowsort
SELECT DISTINCT - ( + CASE - 9 WHEN - + 84 * + 87 THEN NULL ELSE + 67 END )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT MAX( + 79 ) + 74 + + 48 + + - COUNT( DISTINCT - - 69 ) AS col0
----
200

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT MAX ( + 79 ) + 74 + + 48 + + - COUNT ( DISTINCT - - 69 ) AS col0
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2340
SELECT ALL - ( + MAX( - CAST( - + CASE - CAST( - + 4 AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) * - - 70 + + 14 * + ( + 85 ) THEN 32 / CAST( - 69 AS SIGNED ) END AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL - ( + MAX ( - CAST ( - + CASE - CAST ( - + 4 AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) * - - 70 + + 14 * + ( + 85 ) THEN 32 / CAST ( - 69 AS INTEGER ) END AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT 89 * 68 * 89 * 18 AS col2
----
9695304

query I rowsort
SELECT ALL 99 + - 53 * + + 23 col0
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT ALL NULLIF ( - 23, 25 + - + MIN( ALL - 17 ) + - - 41 ) + 47 - + 74 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL NULLIF ( - 23, 25 + - + MIN ( ALL - 17 ) + - - 41 ) + 47 - + 74 AS col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2344
SELECT DISTINCT - ( - 11 ) + + 10 DIV + + 32 + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT - ( - 11 ) + + 10 / + + 32 + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
12

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

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 76 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 83 * + 70 * 49 AS col2
----
284690

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

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

query I rowsort
SELECT + 75 + - 93
----
-18

query I rowsort
SELECT 71 * - + 91 AS col0
----
-6461

query II rowsort
SELECT ALL 42 - + 3 * - - 85 + - 12 AS col1, 73
----
-225
73

query I rowsort
SELECT 66 + + 80 * 70 * - 87 + + 85 * + 14 AS col0
----
-485944

onlyif mysql # aggregate syntax: 
query II rowsort label-2352
SELECT 75, + SUM( ALL + 44 ) AS col0
----
75
44

skipif mysql # not compatible
query II rowsort label-2352
SELECT 75, + SUM ( ALL + 44 ) AS col0
----
75
44

onlyif mysql # DIV for integer division: 
query II rowsort label-2353
SELECT 13 AS col2, 58 DIV + + 38 AS col1
----
13
1

skipif mysql # not compatible
query II rowsort label-2353
SELECT 13 AS col2, 58 / + + 38 AS col1
----
13
1

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

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

query II rowsort
SELECT ALL 74 AS col0, 61
----
74
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2356
SELECT DISTINCT 26 AS col2, SUM( + 94 ) + + 82 * + COUNT( * ) AS col1
----
26
176

skipif mysql # not compatible
query II rowsort label-2356
SELECT DISTINCT 26 AS col2, SUM ( + 94 ) + + 82 * + COUNT ( * ) AS col1
----
26
176

query I rowsort
SELECT ALL + 7 + + 8
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT 11 + MAX( DISTINCT + - 15 )
----
-4

skipif mysql # not compatible
query I rowsort label-2358
SELECT 11 + MAX ( DISTINCT + - 15 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT 27 DIV - - 95
----
0

skipif mysql # not compatible
query I rowsort label-2359
SELECT 27 / - - 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2360
SELECT + CAST( NULL AS SIGNED ) / 40 + ( SUM( - - 39 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT + CAST ( NULL AS INTEGER ) / 40 + ( SUM ( - - 39 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2361
SELECT ALL - COALESCE ( + COALESCE ( 73, + MIN( + 45 ) * - 31 + 39, + + 63 ), + + 96 DIV 71 * - 19 ) + + 30 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL - COALESCE ( + COALESCE ( 73, + MIN ( + 45 ) * - 31 + 39, + + 63 ), + + 96 / 71 * - 19 ) + + 30 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT COALESCE ( + 98, + 24 + - 95, - - 16 ) + - NULLIF ( - 52, - - ( COALESCE ( - 58, - 21, ( - - 1 ) * ( + + 98 ) + - COUNT( * ) * + 51 * + SUM( + 89 ), - 29 * 37 ) ) / + COALESCE ( 78, AVG ( ALL - + 18 ) ) * - COUNT( DISTINCT 28 ) - + + 66 * - 55 )
----
150

skipif mysql # not compatible
query I rowsort label-2362
SELECT COALESCE ( + 98, + 24 + - 95, - - 16 ) + - NULLIF ( - 52, - - ( COALESCE ( - 58, - 21, ( - - 1 ) * ( + + 98 ) + - COUNT ( * ) * + 51 * + SUM ( + 89 ), - 29 * 37 ) ) / + COALESCE ( 78, AVG ( ALL - + 18 ) ) * - COUNT ( DISTINCT 28 ) - + + 66 * - 55 )
----
150

query II rowsort
SELECT + 45, 82 AS col0
----
45
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL - - 12 + + MAX( DISTINCT - 22 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL - - 12 + + MAX ( DISTINCT - 22 ) AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT DISTINCT + 14 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT + 14 / - 79
----
0

query I rowsort
SELECT ALL + 56 + ( + + 2 )
----
58

query I rowsort
SELECT - + 71 * - 79 * 5 + + 81 + 27 * + - ( 11 ) + 13
----
27842

query I rowsort
SELECT 6 * + 66
----
396

onlyif mysql # aggregate syntax: 
query II rowsort label-2370
SELECT - COALESCE ( - 79, 79 ) * - 31 + + 86 AS col1, COUNT( * ) * - + ( - 93 )
----
-2363
93

skipif mysql # not compatible
query II rowsort label-2370
SELECT - COALESCE ( - 79, 79 ) * - 31 + + 86 AS col1, COUNT ( * ) * - + ( - 93 )
----
-2363
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2371
SELECT + 7 + + COUNT( * ) + + + CAST( NULL AS SIGNED ) * + - COALESCE ( 7, + MIN( ALL + 94 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT + 7 + + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) * + - COALESCE ( 7, + MIN ( ALL + 94 ) ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2373
SELECT DISTINCT - - CAST( - - NULLIF ( COUNT( * ), - 34 ) AS SIGNED ) - - 94 * 78 AS col2
----
7333

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT - - CAST ( - - NULLIF ( COUNT ( * ), - 34 ) AS INTEGER ) - - 94 * 78 AS col2
----
7333

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

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

query I rowsort
SELECT ALL - 57 * 41
----
-2337

onlyif mysql # aggregate syntax: 
query II rowsort label-2376
SELECT - 75 AS col1, COUNT( * ) + - + COALESCE ( 94, + ( + 59 ) )
----
-75
-93

skipif mysql # not compatible
query II rowsort label-2376
SELECT - 75 AS col1, COUNT ( * ) + - + COALESCE ( 94, + ( + 59 ) )
----
-75
-93

query I rowsort
SELECT + ( NULLIF ( 76, + 4 ) )
----
76

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

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

query I rowsort
SELECT - NULLIF ( + 74, + 1 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT + 71 * MAX( ALL 15 )
----
1065

skipif mysql # not compatible
query I rowsort label-2380
SELECT + 71 * MAX ( ALL 15 )
----
1065

query I rowsort
SELECT ALL + 75 * - ( 80 ) * - 32
----
192000

query II rowsort
SELECT ALL - 21 + + 28 AS col2, 36 AS col0
----
7
36

query I rowsort
SELECT + 35 + 45 + - NULLIF ( 92, + + 2 - - - 86 ) * + - 41 + + + 55 AS col0
----
3907

query I rowsort
SELECT DISTINCT 41 + + 26 AS col0
----
67

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

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

query I rowsort
SELECT ALL 93 + - 31
----
62

query I rowsort
SELECT + 75 * - - 42 AS col0
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT - MIN( DISTINCT - 41 ) + - 92
----
-51

skipif mysql # not compatible
query I rowsort label-2388
SELECT - MIN ( DISTINCT - 41 ) + - 92
----
-51

query I rowsort
SELECT DISTINCT ( - 93 ) + 2 AS col0
----
-91

query I rowsort
SELECT + NULLIF ( 53, + - 12 ) col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT MIN( 10 ) * - 27 - - 73 + + SUM( ALL + 6 ) AS col0, MIN( 89 ) AS col1
----
-191
89

skipif mysql # not compatible
query II rowsort label-2391
SELECT MIN ( 10 ) * - 27 - - 73 + + SUM ( ALL + 6 ) AS col0, MIN ( 89 ) AS col1
----
-191
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL + COUNT( * ) * + + 53 + - 25
----
28

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + COUNT ( * ) * + + 53 + - 25
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2393
SELECT ( + - 89 ), + ( + MIN( 97 ) ) - COUNT( * ) AS col0
----
-89
96

skipif mysql # not compatible
query II rowsort label-2393
SELECT ( + - 89 ), + ( + MIN ( 97 ) ) - COUNT ( * ) AS col0
----
-89
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2394
SELECT ALL ( - CAST( + NULLIF ( - - 14, 4 + + 93 / + COALESCE ( + + NULLIF ( + - 28, + + 56 / + 13 - - 34 ), 9 ) * + 47 ) AS SIGNED ) ) * + - 56 AS col0
----
784

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL ( - CAST ( + NULLIF ( - - 14, 4 + + 93 / + COALESCE ( + + NULLIF ( + - 28, + + 56 / + 13 - - 34 ), 9 ) * + 47 ) AS INTEGER ) ) * + - 56 AS col0
----
784

onlyif mysql # aggregate syntax: 
query II rowsort label-2395
SELECT DISTINCT + 96 * + COUNT( * ) * - 91 * - 15 + - + 12 + + 1 col2, + 52
----
131029
52

skipif mysql # not compatible
query II rowsort label-2395
SELECT DISTINCT + 96 * + COUNT ( * ) * - 91 * - 15 + - + 12 + + 1 col2, + 52
----
131029
52

query I rowsort
SELECT DISTINCT + 31 * - ( - 5 ) - - 20
----
175

query I rowsort
SELECT ALL + 35 * - 25 AS col1
----
-875

onlyif mysql # DIV for integer division: 
query II rowsort label-2398
SELECT ( + + 81 ), - 60 DIV + ( + 6 ) AS col0
----
81
-10

skipif mysql # not compatible
query II rowsort label-2398
SELECT ( + + 81 ), - 60 / + ( + 6 ) AS col0
----
81
-10

query II rowsort
SELECT DISTINCT + + 79, 50 + 91 * 44 AS col2
----
79
4054

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2401
SELECT + 63 col0, 15 DIV + + COUNT( * ) col0
----
63
15

skipif mysql # not compatible
query II rowsort label-2401
SELECT + 63 col0, 15 / + + COUNT ( * ) col0
----
63
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT ALL + + CASE 40 WHEN CAST( + - COUNT( * ) AS SIGNED ) THEN - 42 WHEN + 53 THEN NULL WHEN - + COUNT( * ) / + 77 * + 29 + + 28 + 28 THEN + 31 + 83 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL + + CASE 40 WHEN CAST ( + - COUNT ( * ) AS INTEGER ) THEN - 42 WHEN + 53 THEN NULL WHEN - + COUNT ( * ) / + 77 * + 29 + + 28 + 28 THEN + 31 + 83 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2403
SELECT ALL - 8 DIV 99 AS col1, 90 - COUNT( * ) + 98 AS col0
----
0
187

skipif mysql # not compatible
query II rowsort label-2403
SELECT ALL - 8 / 99 AS col1, 90 - COUNT ( * ) + 98 AS col0
----
0
187

query II rowsort
SELECT DISTINCT + 41, + 5 AS col2
----
41
5

query I rowsort
SELECT ALL + + 29 * + 81
----
2349

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT + + NULLIF ( 38, + COUNT( * ) * - COALESCE ( 37, - + 28, + - 88 ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2406
SELECT + + NULLIF ( 38, + COUNT ( * ) * - COALESCE ( 37, - + 28, + - 88 ) ) AS col0
----
38

query I rowsort
SELECT - 60 + - 2
----
-62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2409
SELECT DISTINCT CAST( - - 3 AS SIGNED ) col0, + 28 DIV + 47 + - COUNT( ALL ( CAST( + 56 AS DECIMAL ) ) ) AS col2
----
3
-1

skipif mysql # not compatible
query II rowsort label-2409
SELECT DISTINCT CAST ( - - 3 AS INTEGER ) col0, + 28 / + 47 + - COUNT ( ALL ( CAST ( + 56 AS REAL ) ) ) AS col2
----
3
-1

query I rowsort
SELECT DISTINCT 53 + + + 61 AS col2
----
114

query I rowsort
SELECT DISTINCT - 34 + + + 14 - - 22 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2412
SELECT DISTINCT ( + 30 ), COUNT( - - 88 ) * - + 92 + + - 44 * - - 91 * - COUNT( * ) AS col2
----
30
3912

skipif mysql # not compatible
query II rowsort label-2412
SELECT DISTINCT ( + 30 ), COUNT ( - - 88 ) * - + 92 + + - 44 * - - 91 * - COUNT ( * ) AS col2
----
30
3912

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT + 70 + 86 + COUNT( * ) / - CASE 4 WHEN 4 * - COUNT( * ) + - 26 + + 34 * + 92 - 20 + - 30 * 29 * + 86 THEN 40 WHEN + - 68 + - 6 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT + 70 + 86 + COUNT ( * ) / - CASE 4 WHEN 4 * - COUNT ( * ) + - 26 + + 34 * + 92 - 20 + - 30 * 29 * + 86 THEN 40 WHEN + - 68 + - 6 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + ( 18 ) + + 41 - - 29 * + 90 * - 25 AS col1
----
-65191

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT DISTINCT 87 + CAST( - 18 AS SIGNED ) * + 50 * + SUM( ALL - 9 ) + - 85 + + COUNT( * ) * + - 33
----
8069

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT 87 + CAST ( - 18 AS INTEGER ) * + 50 * + SUM ( ALL - 9 ) + - 85 + + COUNT ( * ) * + - 33
----
8069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2417
SELECT ALL CAST( + - SUM( ALL + + 9 ) AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL CAST ( + - SUM ( ALL + + 9 ) AS INTEGER )
----
-9

query I rowsort
SELECT + 28 * 57 AS col2
----
1596

query I rowsort
SELECT DISTINCT + ( + 71 ) - - 86 + + ( + - 92 ) + - + 75 * 78 AS col1
----
-5785

onlyif mysql # aggregate syntax: 
query II rowsort label-2420
SELECT - ( + 46 ), CASE - + COUNT( * ) WHEN - COUNT( * ) THEN + 3 ELSE 65 END AS col0
----
-46
3

skipif mysql # not compatible
query II rowsort label-2420
SELECT - ( + 46 ), CASE - + COUNT ( * ) WHEN - COUNT ( * ) THEN + 3 ELSE 65 END AS col0
----
-46
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT - 44 * NULLIF ( 19, - 31 ) + - + 63 + - COUNT( * )
----
-900

skipif mysql # not compatible
query I rowsort label-2421
SELECT - 44 * NULLIF ( 19, - 31 ) + - + 63 + - COUNT ( * )
----
-900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2422
SELECT - 5 * + - 64 + - - 7 * + 35 * 1, - CAST( - + 1 AS SIGNED ) AS col2
----
565
1

skipif mysql # not compatible
query II rowsort label-2422
SELECT - 5 * + - 64 + - - 7 * + 35 * 1, - CAST ( - + 1 AS INTEGER ) AS col2
----
565
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2423
SELECT 67 DIV - 13 + + 55
----
50

skipif mysql # not compatible
query I rowsort label-2423
SELECT 67 / - 13 + + 55
----
50

query II rowsort
SELECT ALL - 23 * + 45 col1, ( - + COALESCE ( - 7, - 48 ) ) + - 8 AS col2
----
-1035
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2425
SELECT ALL + - CAST( 82 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL + - CAST ( 82 AS INTEGER )
----
-82

query I rowsort
SELECT + - 68 * - ( 96 ) AS col1
----
6528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2427
SELECT + MAX( DISTINCT + 88 ) DIV 60 * - 40 * + 40 + - + 21 AS col0
----
-1621

skipif mysql # not compatible
query I rowsort label-2427
SELECT + MAX ( DISTINCT + 88 ) / 60 * - 40 * + 40 + - + 21 AS col0
----
-1621

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2429
SELECT - 35 DIV + MIN( DISTINCT - 44 )
----
0

skipif mysql # not compatible
query I rowsort label-2429
SELECT - 35 / + MIN ( DISTINCT - 44 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT ALL 74 + 1 DIV + 10 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL 74 + 1 / + 10 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT + + NULLIF ( + COUNT( - - 96 ), - 51 )
----
1

skipif mysql # not compatible
query I rowsort label-2431
SELECT + + NULLIF ( + COUNT ( - - 96 ), - 51 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT - 93 * + 63 + - MIN( - 14 ) + 5 * 85
----
-5420

skipif mysql # not compatible
query I rowsort label-2432
SELECT - 93 * + 63 + - MIN ( - 14 ) + 5 * 85
----
-5420

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

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT - 93 / + COUNT ( * ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT CASE - 2 WHEN 53 THEN + 30 END / COUNT( ALL + 86 ) / 54 + + 87, - ( - NULLIF ( ( - + 13 ), + + COUNT( * ) * + 66 ) ) AS col1
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-2434
SELECT CASE - 2 WHEN 53 THEN + 30 END / COUNT ( ALL + 86 ) / 54 + + 87, - ( - NULLIF ( ( - + 13 ), + + COUNT ( * ) * + 66 ) ) AS col1
----
NULL
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2435
SELECT ALL 30 + + ( - CAST( NULL AS SIGNED ) ) AS col0, - MAX( + 8 ) + - + 76 + SUM( ALL - 80 ) AS col0
----
NULL
-164

skipif mysql # not compatible
query II rowsort label-2435
SELECT ALL 30 + + ( - CAST ( NULL AS INTEGER ) ) AS col0, - MAX ( + 8 ) + - + 76 + SUM ( ALL - 80 ) AS col0
----
NULL
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT DISTINCT + MAX( 27 ) + + - 39 * + + 5 + + 9 + + + 52 + - 85 AS col2
----
-192

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT + MAX ( 27 ) + + - 39 * + + 5 + + 9 + + + 52 + - 85 AS col2
----
-192

query I rowsort
SELECT ALL - 21 + - + 34
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL + ( - + 21 ) + 7 * - CASE + - 42 WHEN - 50 THEN NULL ELSE + SUM( + 29 ) + - - 67 END + - - 52 AS col1
----
-641

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL + ( - + 21 ) + 7 * - CASE + - 42 WHEN - 50 THEN NULL ELSE + SUM ( + 29 ) + - - 67 END + - - 52 AS col1
----
-641

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

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT - COUNT ( * ) + + 82 AS col1
----
81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT DISTINCT + 76 + + 63 + + + 68 * - - AVG ( - - CASE 42 WHEN + + 41 + + CAST( NULL AS SIGNED ) THEN + 52 WHEN 88 THEN NULL END ) * + 57 + + 54 + - - 77 + - + 74 * + 78 + + 23 + - - COUNT( DISTINCT - 95 ) + 53 * + - 88 + + 27 * + 85 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT + 76 + + 63 + + + 68 * - - AVG ( - - CASE 42 WHEN + + 41 + + CAST ( NULL AS INTEGER ) THEN + 52 WHEN 88 THEN NULL END ) * + 57 + + 54 + - - 77 + - + 74 * + 78 + + 23 + - - COUNT ( DISTINCT - 95 ) + 53 * + - 88 + + 27 * + 85 col2
----
NULL

query I rowsort
SELECT 1 - - - 88
----
-87

query I rowsort
SELECT 46 * - 0
----
0

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

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

query I rowsort
SELECT ALL + 58 - - - 59 * 20
----
-1122

query II rowsort
SELECT ALL 85 AS col0, + 92 AS col1
----
85
92

query I rowsort
SELECT 36 * 73 col1
----
2628

query I rowsort
SELECT 42 + 83 AS col0
----
125

query II rowsort
SELECT - 92, + 0 * 45 AS col0
----
-92
0

query II rowsort
SELECT ALL 94, 25 + + 54 AS col0
----
94
79

query I rowsort
SELECT 91 * - 8
----
-728

query II rowsort
SELECT + 59 * - 81 * - - 82 AS col2, + 23 AS col0
----
-391878
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + COUNT( * ) + + 79
----
80

skipif mysql # not compatible
query I rowsort label-2453
SELECT + COUNT ( * ) + + 79
----
80

query II rowsort
SELECT + 3 AS col1, - 29 * - - 25
----
3
-725

onlyif mysql # DIV for integer division: 
query I rowsort label-2455
SELECT + 86 DIV + - 68 + - 72
----
-73

skipif mysql # not compatible
query I rowsort label-2455
SELECT + 86 / + - 68 + - 72
----
-73

query I rowsort
SELECT + 26 * + 60 AS col0
----
1560

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

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

query II rowsort
SELECT - 59 AS col0, - 98 * - - CASE + - 95 WHEN - 19 * 49 * 6 THEN + 76 + + 9 * - + 43 ELSE NULL END
----
-59
NULL

query I rowsort
SELECT DISTINCT - - 21 * + 39
----
819

query II rowsort
SELECT ALL - 50, 67 AS col0
----
-50
67

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2462
SELECT ALL - 70 DIV - 76 * - COUNT( * ) + 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL - 70 / - 76 * - COUNT ( * ) + 24 AS col0
----
24

query I rowsort
SELECT 40 * + 30
----
1200

query I rowsort
SELECT ALL + 0 + - - 99
----
99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2466
SELECT 66 AS col1, + NULLIF ( + 97, - 90 * + - 68 * - COALESCE ( 33, - - 74 + 91 ) + - COALESCE ( + 33, + NULLIF ( 77, - + NULLIF ( MAX( 72 ), 73 ) + 50 ) + + 92 + + + 72 ) * CAST( NULL AS SIGNED ) ) * - 81 + + - 66 + 45 AS col2
----
66
-7878

skipif mysql # not compatible
query II rowsort label-2466
SELECT 66 AS col1, + NULLIF ( + 97, - 90 * + - 68 * - COALESCE ( 33, - - 74 + 91 ) + - COALESCE ( + 33, + NULLIF ( 77, - + NULLIF ( MAX ( 72 ), 73 ) + 50 ) + + 92 + + + 72 ) * CAST ( NULL AS INTEGER ) ) * - 81 + + - 66 + 45 AS col2
----
66
-7878

onlyif mysql # aggregate syntax: 
query II rowsort label-2467
SELECT + + 94 AS col1, COUNT( * ) - ( - - 50 )
----
94
-49

skipif mysql # not compatible
query II rowsort label-2467
SELECT + + 94 AS col1, COUNT ( * ) - ( - - 50 )
----
94
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2468
SELECT + 33, 31 / - - 23 - CASE + + 32 WHEN - + 56 THEN - - CAST( NULL AS SIGNED ) WHEN - 32 THEN NULL ELSE NULL END * + + 1 * + 48 AS col0
----
33
NULL

skipif mysql # not compatible
query II rowsort label-2468
SELECT + 33, 31 / - - 23 - CASE + + 32 WHEN - + 56 THEN - - CAST ( NULL AS INTEGER ) WHEN - 32 THEN NULL ELSE NULL END * + + 1 * + 48 AS col0
----
33
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2469
SELECT ALL COUNT( * ) + 77, 38 * 58 AS col2
----
78
2204

skipif mysql # not compatible
query II rowsort label-2469
SELECT ALL COUNT ( * ) + 77, 38 * 58 AS col2
----
78
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT COUNT( * ) - - NULLIF ( + + 19, - NULLIF ( + 2, 60 ) )
----
20

skipif mysql # not compatible
query I rowsort label-2470
SELECT COUNT ( * ) - - NULLIF ( + + 19, - NULLIF ( + 2, 60 ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT SUM( ALL + 55 ) + COALESCE ( + 35, - COUNT( DISTINCT - 74 ) ) col2
----
90

skipif mysql # not compatible
query I rowsort label-2471
SELECT SUM ( ALL + 55 ) + COALESCE ( + 35, - COUNT ( DISTINCT - 74 ) ) col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2472
SELECT COALESCE ( - COUNT( * ), - 87 + + 27 ) DIV - + 73 + - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2472
SELECT COALESCE ( - COUNT ( * ), - 87 + + 27 ) / - + 73 + - 60 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-2473
SELECT ALL COUNT( ALL + 53 ) + - 57 * - COUNT( * ) AS col1, 52 + ( - 46 )
----
58
6

skipif mysql # not compatible
query II rowsort label-2473
SELECT ALL COUNT ( ALL + 53 ) + - 57 * - COUNT ( * ) AS col1, 52 + ( - 46 )
----
58
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + MAX( ALL + - 95 ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-2474
SELECT + MAX ( ALL + - 95 ) col0
----
-95

query I rowsort
SELECT 1 + 91 * - + 92 + + + CASE - 59 WHEN - 95 THEN 94 * 87 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT NULLIF ( + 49, 74 ) + MAX( ALL 20 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2476
SELECT NULLIF ( + 49, 74 ) + MAX ( ALL 20 ) AS col2
----
69

query I rowsort
SELECT 46 - 44 * 53 * + 80
----
-186514

query I rowsort
SELECT ( + + 78 ) * - 18 * + 2
----
-2808

query I rowsort
SELECT ALL 17 - 24 col1
----
-7

query I rowsort
SELECT ALL + 27 * 91
----
2457

query II rowsort
SELECT 45 + 63 AS col1, + 14 col0
----
108
14

query I rowsort
SELECT ALL - 54 * - + 4 AS col0
----
216

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT + SUM( + ( + 28 ) ) * - - 79 * + 28 - ( - 51 ) AS col1
----
61987

skipif mysql # not compatible
query I rowsort label-2484
SELECT + SUM ( + ( + 28 ) ) * - - 79 * + 28 - ( - 51 ) AS col1
----
61987

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

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

query I rowsort
SELECT DISTINCT - ( + ( 12 ) ) col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2487
SELECT DISTINCT + - 56 + - 24 - 35 + 42 DIV + - 48 + - CAST( + 99 AS SIGNED ) + 67 - - CASE - + 41 WHEN - - 20 + + + 71 THEN NULL ELSE COUNT( * ) END * - COUNT( * ) * + - 15
----
-132

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT + - 56 + - 24 - 35 + 42 / + - 48 + - CAST ( + 99 AS INTEGER ) + 67 - - CASE - + 41 WHEN - - 20 + + + 71 THEN NULL ELSE COUNT ( * ) END * - COUNT ( * ) * + - 15
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-2488
SELECT - - COUNT( * ) * 93 AS col0, + MIN( DISTINCT - - 31 ) col0
----
93
31

skipif mysql # not compatible
query II rowsort label-2488
SELECT - - COUNT ( * ) * 93 AS col0, + MIN ( DISTINCT - - 31 ) col0
----
93
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2489
SELECT ALL - 53 * 25 + - + 35 DIV + + 69 + 99 + 44
----
-1182

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL - 53 * 25 + - + 35 / + + 69 + 99 + 44
----
-1182

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT + 98 * - 33 + 98 + 7 + - MAX( DISTINCT + 44 ) + - 2 * COUNT( * )
----
-3175

skipif mysql # not compatible
query I rowsort label-2490
SELECT + 98 * - 33 + 98 + 7 + - MAX ( DISTINCT + 44 ) + - 2 * COUNT ( * )
----
-3175

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2492
SELECT + 10 DIV - 20 + - + COUNT( 72 ) + 80 + + 37 + - 56 + + MIN( 76 ) + 73 * + ( + 27 )
----
2107

skipif mysql # not compatible
query I rowsort label-2492
SELECT + 10 / - 20 + - + COUNT ( 72 ) + 80 + + 37 + - 56 + + MIN ( 76 ) + 73 * + ( + 27 )
----
2107

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT - COUNT( * ) * CASE - COUNT( * ) WHEN - 5 THEN - - 78 END * - 40 - 44 * + NULLIF ( 35, AVG ( 3 ) + + - 29 * + - 21 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT - COUNT ( * ) * CASE - COUNT ( * ) WHEN - 5 THEN - - 78 END * - 40 - 44 * + NULLIF ( 35, AVG ( 3 ) + + - 29 * + - 21 ) AS col1
----
NULL

query I rowsort
SELECT - 26 + - + 33
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2495
SELECT + 35 * - + SUM( 15 ) * + 84 + + 81 * ( + - CASE + - 74 WHEN 16 * + COUNT( * ) + - + NULLIF ( 73, + 97 ) THEN NULL ELSE 67 END ) + CASE 27 WHEN - + 94 - - 27 + - 30 + + + 58 + - NULLIF ( 45, MAX( DISTINCT + + 28 ) * CASE 53 WHEN + COALESCE ( 56, + 63 - - 38, + 64, 50 ) * + 33 + - 19 THEN + 50 + 31 - - 11 * + - ( CAST( - 56 AS SIGNED ) ) END + 27 ) / + 43 * ( COUNT( * ) ) THEN + CAST( NULL AS SIGNED ) * ( - MAX( + 68 ) * - 49 ) WHEN 0 THEN NULL END + + AVG ( ALL 45 ) * ( + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT + 35 * - + SUM ( 15 ) * + 84 + + 81 * ( + - CASE + - 74 WHEN 16 * + COUNT ( * ) + - + NULLIF ( 73, + 97 ) THEN NULL ELSE 67 END ) + CASE 27 WHEN - + 94 - - 27 + - 30 + + + 58 + - NULLIF ( 45, MAX ( DISTINCT + + 28 ) * CASE 53 WHEN + COALESCE ( 56, + 63 - - 38, + 64, 50 ) * + 33 + - 19 THEN + 50 + 31 - - 11 * + - ( CAST ( - 56 AS INTEGER ) ) END + 27 ) / + 43 * ( COUNT ( * ) ) THEN + CAST ( NULL AS INTEGER ) * ( - MAX ( + 68 ) * - 49 ) WHEN 0 THEN NULL END + + AVG ( ALL 45 ) * ( + 76 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT ALL - + 84 * 51 - + CASE - CAST( NULL AS SIGNED ) WHEN - - 6 * - MAX( 28 ) - 38 THEN NULL ELSE + 57 * + + 74 * + MAX( + 29 ) END + 11
----
-126595

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - + 84 * 51 - + CASE - CAST ( NULL AS INTEGER ) WHEN - - 6 * - MAX ( 28 ) - 38 THEN NULL ELSE + 57 * + + 74 * + MAX ( + 29 ) END + 11
----
-126595

query I rowsort
SELECT - NULLIF ( - - 43, - 36 - + + 35 + - 56 ) AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2498
SELECT DISTINCT + 97 DIV 80 + + 73 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT + 97 / 80 + + 73 AS col0
----
74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2500
SELECT + 71 + + + 75 + SUM( ALL 13 ) / 12 * - + 97 * + ( + + ( - 40 ) ) * - 33 + CAST( NULL AS SIGNED ) * 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT + 71 + + + 75 + SUM ( ALL 13 ) / 12 * - + 97 * + ( + + ( - 40 ) ) * - 33 + CAST ( NULL AS INTEGER ) * 34 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2501
SELECT - 86 * + 53 * + - 67 * + 2 * 78 + - 98 AS col2, + 95 + + 84 DIV 30 AS col0
----
47640118
97

skipif mysql # not compatible
query II rowsort label-2501
SELECT - 86 * + 53 * + - 67 * + 2 * 78 + - 98 AS col2, + 95 + + 84 / 30 AS col0
----
47640118
97

query I rowsort
SELECT + 65 * - 91
----
-5915

query II rowsort
SELECT ALL + 72 AS col2, - 64 * 43
----
72
-2752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2504
SELECT 58 * CASE - ( - 21 ) WHEN - MAX( ALL - + 50 ) THEN + 46 + - SUM( - CAST( NULL AS SIGNED ) ) WHEN + 4 + 3 + + 53 THEN NULL ELSE NULL END + + - COALESCE ( + - COUNT( * ), 1 - 70, - 24 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT 58 * CASE - ( - 21 ) WHEN - MAX ( ALL - + 50 ) THEN + 46 + - SUM ( - CAST ( NULL AS INTEGER ) ) WHEN + 4 + 3 + + 53 THEN NULL ELSE NULL END + + - COALESCE ( + - COUNT ( * ), 1 - 70, - 24 ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + 86 * + 4
----
344

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2507
SELECT - CASE + 82 WHEN - 75 THEN + + 37 / 38 + + 75 + + + 35 + - ( + 1 ) / - 0 + 92 + + 95 + - 58 + + + 34 / 79 * + 81 * - + 15 * + CAST( + 34 AS DECIMAL ) + 60 * + - 3 WHEN + MIN( + 92 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT - CASE + 82 WHEN - 75 THEN + + 37 / 38 + + 75 + + + 35 + - ( + 1 ) / - 0 + 92 + + 95 + - 58 + + + 34 / 79 * + 81 * - + 15 * + CAST ( + 34 AS REAL ) + 60 * + - 3 WHEN + MIN ( + 92 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 93 * 5 * + ( - - 21 ) AS col0
----
-9765

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT + 87 + + + 56 + - COUNT( + 85 )
----
142

skipif mysql # not compatible
query I rowsort label-2509
SELECT + 87 + + + 56 + - COUNT ( + 85 )
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2510
SELECT + COUNT( * ) - + 84 + + 6 DIV 99 + - 49, 44 + - 58 AS col0
----
-132
-14

skipif mysql # not compatible
query II rowsort label-2510
SELECT + COUNT ( * ) - + 84 + + 6 / 99 + - 49, 44 + - 58 AS col0
----
-132
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT - ( - 8 ) DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-2511
SELECT - ( - 8 ) / 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT + COUNT( + - 45 ) * + 34 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2512
SELECT + COUNT ( + - 45 ) * + 34 AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2513
SELECT - CAST( - COUNT( ALL + 53 ) AS SIGNED ) + + + 50 col2
----
51

skipif mysql # not compatible
query I rowsort label-2513
SELECT - CAST ( - COUNT ( ALL + 53 ) AS INTEGER ) + + + 50 col2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2514
SELECT - 65 AS col2, COUNT( * ) * + 94
----
-65
94

skipif mysql # not compatible
query II rowsort label-2514
SELECT - 65 AS col2, COUNT ( * ) * + 94
----
-65
94

query I rowsort
SELECT DISTINCT - - 33 * - + ( + 76 ) AS col1
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL + 45 + - COUNT( DISTINCT - 98 ) + - 0
----
44

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + 45 + - COUNT ( DISTINCT - 98 ) + - 0
----
44

query I rowsort
SELECT ALL 0 + - 92 AS col0
----
-92

query I rowsort
SELECT + 83 * + 60
----
4980

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT COALESCE ( - - CASE + 89 WHEN 46 * + - SUM( DISTINCT + + 74 ) * - 76 + 19 + + 20 THEN NULL WHEN - - ( - 0 ) THEN - + 37 ELSE NULL END, - 73 ) col1
----
-73

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT COALESCE ( - - CASE + 89 WHEN 46 * + - SUM ( DISTINCT + + 74 ) * - 76 + 19 + + 20 THEN NULL WHEN - - ( - 0 ) THEN - + 37 ELSE NULL END, - 73 ) col1
----
-73

query I rowsort
SELECT - + ( + 68 ) + + - 43 * - 26 AS col0
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT DISTINCT + MAX( - 26 ) + + 80
----
54

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT + MAX ( - 26 ) + + 80
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2522
SELECT DISTINCT 3 * + CAST( NULL AS SIGNED ) + + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT 3 * + CAST ( NULL AS INTEGER ) + + 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL + - ( + 97 ) * MAX( ALL + 38 ) * 7 AS col1
----
-25802

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL + - ( + 97 ) * MAX ( ALL + 38 ) * 7 AS col1
----
-25802

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT ALL 86 DIV + 13 - - 44
----
50

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL 86 / + 13 - - 44
----
50

query I rowsort
SELECT + 99 * + + 82 AS col2
----
8118

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

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + COUNT ( + - 51 ) AS col0
----
1

query I rowsort
SELECT - 59 - 4 AS col0
----
-63

query I rowsort
SELECT ALL + CASE 93 WHEN ( - + 30 ) - - + 62 THEN NULL ELSE - - 17 END
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2529
SELECT DISTINCT - ( + - 88 ) * + CAST( NULL AS DECIMAL ) + - + 73 - + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - ( + - 88 ) * + CAST ( NULL AS REAL ) + - + 73 - + 82 AS col2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-2531
SELECT - 12 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2532
SELECT - 29 DIV + 12 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2532
SELECT - 29 / + 12 AS col1
----
-2

query I rowsort
SELECT - 6 - - + 31 + + - 65 * 0 * 12 * - 97 * 73 AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT - 93 DIV - 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2534
SELECT - 93 / - 55 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2535
SELECT - 70 + + CASE 96 WHEN - - 38 THEN + + 29 WHEN - 62 + + + 96 * 52 * - 12 * COUNT( * ) * + + CAST( 25 AS SIGNED ) + - + 72 - + 29 THEN NULL WHEN + 1 - - ( + 65 ) THEN + 65 END + - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT - 70 + + CASE 96 WHEN - - 38 THEN + + 29 WHEN - 62 + + + 96 * 52 * - 12 * COUNT ( * ) * + + CAST ( 25 AS INTEGER ) + - + 72 - + 29 THEN NULL WHEN + 1 - - ( + 65 ) THEN + 65 END + - 95 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2536
SELECT + CASE - 87 WHEN - 45 THEN - - 45 * + 47 + + COUNT( * ) ELSE NULL END * + CASE + 23 WHEN 5 * - 69 + COUNT( * ) THEN NULL WHEN + 88 * + 53 THEN NULL WHEN - COALESCE ( - CASE - 51 WHEN - + COUNT( * ) * + CAST( NULL AS SIGNED ) + - 3 THEN NULL WHEN + 15 THEN + - 5 ELSE + COUNT( + + 50 ) * + ( + 63 ) END, + 6, + + 55 / 99 + 76 * - CAST( NULL AS SIGNED ) ) THEN - 58 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2536
SELECT + CASE - 87 WHEN - 45 THEN - - 45 * + 47 + + COUNT ( * ) ELSE NULL END * + CASE + 23 WHEN 5 * - 69 + COUNT ( * ) THEN NULL WHEN + 88 * + 53 THEN NULL WHEN - COALESCE ( - CASE - 51 WHEN - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - 3 THEN NULL WHEN + 15 THEN + - 5 ELSE + COUNT ( + + 50 ) * + ( + 63 ) END, + 6, + + 55 / 99 + 76 * - CAST ( NULL AS INTEGER ) ) THEN - 58 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT - 46 + - COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-2537
SELECT - 46 + - COUNT ( * ) AS col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT NULLIF ( + + 15, + 39 / + - CAST( NULL AS SIGNED ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2538
SELECT NULLIF ( + + 15, + 39 / + - CAST ( NULL AS INTEGER ) ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT - 43 * - MIN( - 93 ) + - + 59 AS col0, 41
----
-4058
41

skipif mysql # not compatible
query II rowsort label-2539
SELECT - 43 * - MIN ( - 93 ) + - + 59 AS col0, 41
----
-4058
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT - COALESCE ( - COUNT( * ), - 53 + - 9 ) * - + 51 + 5 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-2541
SELECT - COALESCE ( - COUNT ( * ), - 53 + - 9 ) * - + 51 + 5 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT + 96 + + COUNT( * ) * + MIN( 30 )
----
126

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT + 96 + + COUNT ( * ) * + MIN ( 30 )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT - COUNT( * ) * - + CASE + - 13 WHEN + 6 THEN + ( - NULLIF ( 4, + 10 ) ) + - + 62 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT - COUNT ( * ) * - + CASE + - 13 WHEN + 6 THEN + ( - NULLIF ( 4, + 10 ) ) + - + 62 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2544
SELECT DISTINCT CAST( 91 AS SIGNED ) + SUM( DISTINCT 21 ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT CAST ( 91 AS INTEGER ) + SUM ( DISTINCT 21 ) AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2545
SELECT ALL + 2 AS col0, + COALESCE ( - - CAST( NULL AS SIGNED ), - + 75, - COALESCE ( + ( + 99 ), - 22 - - 37 + - 74 * 91 ) * - - COUNT( * ) + MAX( 50 ) ) AS col2
----
2
-75

skipif mysql # not compatible
query II rowsort label-2545
SELECT ALL + 2 AS col0, + COALESCE ( - - CAST ( NULL AS INTEGER ), - + 75, - COALESCE ( + ( + 99 ), - 22 - - 37 + - 74 * 91 ) * - - COUNT ( * ) + MAX ( 50 ) ) AS col2
----
2
-75

query II rowsort
SELECT + 66 AS col1, 94 + ( + 49 )
----
66
143

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT ALL + CASE + 19 WHEN + + COUNT( * ) THEN - ( 69 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL + CASE + 19 WHEN + + COUNT ( * ) THEN - ( 69 ) END
----
NULL

query I rowsort
SELECT + 81 + - 78 AS col0
----
3

query I rowsort
SELECT - + COALESCE ( 68, + 58 + + - 65, - + 47 ) AS col2
----
-68

query I rowsort
SELECT DISTINCT + 22 + 76 + + 47
----
145

query I rowsort
SELECT DISTINCT + 19 + - 83 * + 41
----
-3384

query I rowsort
SELECT 7 * ( 96 )
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2553
SELECT ALL - ( + 50 ) * - + CAST( NULL AS SIGNED ) + - - ( MAX( DISTINCT - 57 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL - ( + 50 ) * - + CAST ( NULL AS INTEGER ) + - - ( MAX ( DISTINCT - 57 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL COUNT( * ) - 34 - - 9 * + - 8 * - - 19 + COUNT( * )
----
-1400

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL COUNT ( * ) - 34 - - 9 * + - 8 * - - 19 + COUNT ( * )
----
-1400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2555
SELECT 35 AS col0, CASE + 57 WHEN CAST( - 44 AS SIGNED ) THEN NULL WHEN 9 THEN 79 END AS col0
----
35
NULL

skipif mysql # not compatible
query II rowsort label-2555
SELECT 35 AS col0, CASE + 57 WHEN CAST ( - 44 AS INTEGER ) THEN NULL WHEN 9 THEN 79 END AS col0
----
35
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2556
SELECT 15 * - + CAST( NULL AS SIGNED ) * + + 81 * - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT 15 * - + CAST ( NULL AS INTEGER ) * + + 81 * - 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT DISTINCT - 95 * 86 + - - COUNT( * ) AS col2
----
-8169

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT - 95 * 86 + - - COUNT ( * ) AS col2
----
-8169

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2558
SELECT 94 DIV + - CAST( 43 AS SIGNED ) + - 67 * 91
----
-6099

skipif mysql # not compatible
query I rowsort label-2558
SELECT 94 / + - CAST ( 43 AS INTEGER ) + - 67 * 91
----
-6099

query I rowsort
SELECT 58 * + + 0 - + + 0 + - - 83 + - 86 * - 78 AS col0
----
6791

query I rowsort
SELECT 10 + - 80 AS col1
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT 94 / - - 2 * - CAST( NULL AS SIGNED ) - ( + 5 ) + + 63 * - 73 * + - 78 * + + 10 + + 80 / + 57 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT 94 / - - 2 * - CAST ( NULL AS INTEGER ) - ( + 5 ) + + 63 * - 73 * + - 78 * + + 10 + + 80 / + 57 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL - COUNT( - + 39 ) - - 19 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL - COUNT ( - + 39 ) - - 19 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT 17 * - COUNT( DISTINCT - - 3 )
----
-17

skipif mysql # not compatible
query I rowsort label-2563
SELECT 17 * - COUNT ( DISTINCT - - 3 )
----
-17

query I rowsort
SELECT 29 * - 4 AS col0
----
-116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT 55 + + 33 * - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-2566
SELECT 55 + + 33 * - COUNT ( * )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2567
SELECT ALL - CAST( NULL AS DECIMAL ) * + - CASE COUNT( * ) WHEN SUM( DISTINCT - + 70 ) THEN NULL ELSE COALESCE ( NULLIF ( - + CASE WHEN NOT - 92 NOT IN ( - 24, - NULLIF ( + COUNT( * ), + + 42 * + + 99 + + ( - CAST( + NULLIF ( + + NULLIF ( + - 34, - MAX( + 75 ) * MIN( - - 90 ) + + - 83 + CASE 78 WHEN - - 51 THEN - - MAX( DISTINCT 78 ) WHEN - + 83 THEN NULL ELSE NULL END + + + 24 ), + 35 ) AS SIGNED ) ) ) * 0 - + - 72 + + ( - 77 ) + + - 8 / - 84 * - - 44 ) THEN + 3 END, - + NULLIF ( + 18, 42 * + COUNT( * ) ) + - COUNT( ( + 85 ) ) ), - 31 + + 9 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - CAST ( NULL AS REAL ) * + - CASE COUNT ( * ) WHEN SUM ( DISTINCT - + 70 ) THEN NULL ELSE COALESCE ( NULLIF ( - + CASE WHEN NOT - 92 NOT IN ( - 24, - NULLIF ( + COUNT ( * ), + + 42 * + + 99 + + ( - CAST ( + NULLIF ( + + NULLIF ( + - 34, - MAX ( + 75 ) * MIN ( - - 90 ) + + - 83 + CASE 78 WHEN - - 51 THEN - - MAX ( DISTINCT 78 ) WHEN - + 83 THEN NULL ELSE NULL END + + + 24 ), + 35 ) AS INTEGER ) ) ) * 0 - + - 72 + + ( - 77 ) + + - 8 / - 84 * - - 44 ) THEN + 3 END, - + NULLIF ( + 18, 42 * + COUNT ( * ) ) + - COUNT ( ( + 85 ) ) ), - 31 + + 9 ) END AS col1
----
NULL

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

query I rowsort
SELECT 45 * 44 * 86 col1
----
170280

query I rowsort
SELECT ALL + 69 + 23
----
92

query I rowsort
SELECT ALL + 23 + ( - 97 ) AS col0
----
-74

query I rowsort
SELECT ALL - + 12 + 96 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT + CASE AVG ( 83 ) WHEN + - COUNT( * ) THEN NULL WHEN - - 20 + + 89 + 93 * - + 66 + 57 THEN NULL WHEN COUNT( * ) + 66 * 48 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT + CASE AVG ( 83 ) WHEN + - COUNT ( * ) THEN NULL WHEN - - 20 + + 89 + 93 * - + 66 + 57 THEN NULL WHEN COUNT ( * ) + 66 * 48 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2574
SELECT 73 DIV + ( + + 77 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2574
SELECT 73 / + ( + + 77 ) AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2576
SELECT - COALESCE ( - COUNT( * ), - 69 - - - AVG ( DISTINCT 97 ) * + 90 * - - 67 ) * + 9 * 40 / + 99 - - - 62 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT - COALESCE ( - COUNT ( * ), - 69 - - - AVG ( DISTINCT 97 ) * + 90 * - - 67 ) * + 9 * 40 / + 99 - - - 62 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 81 + + 93 + - + ( - 54 ) AS col2
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT DISTINCT 18 + 50 * + 81 - - - COUNT( * )
----
4067

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT 18 + 50 * + 81 - - - COUNT ( * )
----
4067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2579
SELECT ALL - - 45 - - 62 + 31 - + CASE 86 WHEN + 50 THEN + 92 WHEN 45 + 5 / - 93 THEN + CAST( NULL AS SIGNED ) END + + - 93 + + + 22 * - 92 * - + 97 - + - 45 + + 42 * + CAST( NULL AS SIGNED ) * + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - - 45 - - 62 + 31 - + CASE 86 WHEN + 50 THEN + 92 WHEN 45 + 5 / - 93 THEN + CAST ( NULL AS INTEGER ) END + + - 93 + + + 22 * - 92 * - + 97 - + - 45 + + 42 * + CAST ( NULL AS INTEGER ) * + - 38
----
NULL

query I rowsort
SELECT ALL 45 * 23 AS col1
----
1035

query I rowsort
SELECT 60 + NULLIF ( - 16, + + 34 ) AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT DISTINCT - - CAST( + - 58 AS SIGNED ) - + 90 AS col0
----
-148

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT - - CAST ( + - 58 AS INTEGER ) - + 90 AS col0
----
-148

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT - MIN( DISTINCT + 81 ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-2584
SELECT - MIN ( DISTINCT + 81 ) col2
----
-81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2586
SELECT 10 * MAX( DISTINCT CAST( - - 5 AS SIGNED ) )
----
50

skipif mysql # not compatible
query I rowsort label-2586
SELECT 10 * MAX ( DISTINCT CAST ( - - 5 AS INTEGER ) )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2587
SELECT COUNT( * ) DIV + COALESCE ( + - 4, + - 59 * - - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT COUNT ( * ) / + COALESCE ( + - 4, + - 59 * - - 92 )
----
0

query I rowsort
SELECT ALL 0 * - 5
----
0

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

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL COUNT ( * ) / 83
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2591
SELECT ( + 97 ) * SUM( - NULLIF ( + COALESCE ( + 62, + - CAST( NULL AS SIGNED ) ), 75 ) ) AS col0
----
-6014

skipif mysql # not compatible
query I rowsort label-2591
SELECT ( + 97 ) * SUM ( - NULLIF ( + COALESCE ( + 62, + - CAST ( NULL AS INTEGER ) ), 75 ) ) AS col0
----
-6014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2592
SELECT 64 * + CAST( + 9 AS SIGNED ) * + 50 * 67 * 58 AS col0
----
111916800

skipif mysql # not compatible
query I rowsort label-2592
SELECT 64 * + CAST ( + 9 AS INTEGER ) * + 50 * 67 * 58 AS col0
----
111916800

query I rowsort
SELECT ALL 79 * - + 32 + 52
----
-2476

query I rowsort
SELECT 0 * + 93 * + 58 - - 2 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2595
SELECT COUNT( * ), + 54 DIV + 85 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-2595
SELECT COUNT ( * ), + 54 / + 85 AS col2
----
1
0

query I rowsort
SELECT - 98 * + 73 + - + CASE + + 57 WHEN - 81 * + 50 THEN 5 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2598
SELECT DISTINCT - 87, CASE - - CAST( - + COUNT( * ) AS SIGNED ) WHEN - 0 * COUNT( * ) - + MAX( + 36 ) THEN - - CASE - - 3 WHEN 54 THEN - - CASE + ( 35 ) WHEN 80 THEN 10 / 24 WHEN + - 31 * + 51 / + 86 THEN NULL END END * MAX( ALL - 94 ) WHEN 55 THEN - + 95 * + 62 + + ( - - 18 ) WHEN - 55 THEN NULL ELSE NULL END AS col1
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-2598
SELECT DISTINCT - 87, CASE - - CAST ( - + COUNT ( * ) AS INTEGER ) WHEN - 0 * COUNT ( * ) - + MAX ( + 36 ) THEN - - CASE - - 3 WHEN 54 THEN - - CASE + ( 35 ) WHEN 80 THEN 10 / 24 WHEN + - 31 * + 51 / + 86 THEN NULL END END * MAX ( ALL - 94 ) WHEN 55 THEN - + 95 * + 62 + + ( - - 18 ) WHEN - 55 THEN NULL ELSE NULL END AS col1
----
-87
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2599
SELECT ALL - 83 * 1 DIV - 58 + - 39 + - 50 * 9 + - COUNT( * )
----
-489

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - 83 * 1 / - 58 + - 39 + - 50 * 9 + - COUNT ( * )
----
-489

query I rowsort
SELECT DISTINCT + ( - + 82 ) * - - 71 + - 28 + 9 * 25 + - 38
----
-5663

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

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

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

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

query II rowsort
SELECT + + 83, 10 AS col0
----
83
10

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

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

query II rowsort
SELECT + 62, 71 - - 93 AS col2
----
62
164

query II rowsort
SELECT - 12 AS col2, - 11
----
-12
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT ALL 51 * - COALESCE ( - 16, + 1, + NULLIF ( - 54, - COUNT( * ) ) * 73 - + 37 )
----
816

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL 51 * - COALESCE ( - 16, + 1, + NULLIF ( - 54, - COUNT ( * ) ) * 73 - + 37 )
----
816

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

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

query I rowsort
SELECT ALL - ( + - 42 ) * 84 AS col2
----
3528

query I rowsort
SELECT - + 92 + + ( 10 ) + + 28 * - 82 AS col0
----
-2378

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2611
SELECT - + CASE + 95 WHEN - 71 THEN + 60 * 81 ELSE CAST( NULL AS SIGNED ) END * + 26 * + CAST( NULL AS SIGNED ) * 64 AS col2, - 23 AS col1
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-2611
SELECT - + CASE + 95 WHEN - 71 THEN + 60 * 81 ELSE CAST ( NULL AS INTEGER ) END * + 26 * + CAST ( NULL AS INTEGER ) * 64 AS col2, - 23 AS col1
----
NULL
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2612
SELECT - + 75 * + 67 - + COUNT( * ) DIV + + 77
----
-5025

skipif mysql # not compatible
query I rowsort label-2612
SELECT - + 75 * + 67 - + COUNT ( * ) / + + 77
----
-5025

query II rowsort
SELECT ALL - 65 col0, + 51 + 66 + + 69
----
-65
186

query I rowsort
SELECT - - 6 * 66
----
396

query I rowsort
SELECT - - 0 * + ( 47 ) + + 37 * 8 AS col0
----
296

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT - COUNT( ALL - 4 ) + + - 7 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2616
SELECT - COUNT ( ALL - 4 ) + + - 7 AS col0
----
-8

query II rowsort
SELECT - + 98, - 45 AS col0
----
-98
-45

query I rowsort
SELECT - 93 + + 51 col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT - COUNT( * ) * 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2619
SELECT - COUNT ( * ) * 53 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT DISTINCT CASE - - 1 WHEN - MIN( DISTINCT 3 ) THEN + - 1 / - - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT CASE - - 1 WHEN - MIN ( DISTINCT 3 ) THEN + - 1 / - - 3 END
----
NULL

query I rowsort
SELECT - 6 + - 64
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2622
SELECT ALL COALESCE ( - + 42, CAST( NULL AS SIGNED ) - - ( + 22 ), - 80 + - + 85 * 90 - COUNT( * ) * + 4 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL COALESCE ( - + 42, CAST ( NULL AS INTEGER ) - - ( + 22 ), - 80 + - + 85 * 90 - COUNT ( * ) * + 4 ) AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2623
SELECT ALL + COALESCE ( - + ( ( 32 ) ), + 55 DIV + 14 ) * - COUNT( ALL + + 3 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL + COALESCE ( - + ( ( 32 ) ), + 55 / + 14 ) * - COUNT ( ALL + + 3 ) AS col2
----
32

query I rowsort
SELECT DISTINCT + 22 * - 27
----
-594

query I rowsort
SELECT ALL - ( - - 36 ) + - - 50
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2626
SELECT + COUNT( * ) DIV 77 * ( 19 ) * + + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2626
SELECT + COUNT ( * ) / 77 * ( 19 ) * + + 38 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2627
SELECT + 32 * + NULLIF ( + ( - ( - + COUNT( ALL - - 10 ) ) ), - 15 * 4 + 12 ) - 21 * - COUNT( * ) - - 32, SUM( ALL + 56 ) AS col1
----
85
56

skipif mysql # not compatible
query II rowsort label-2627
SELECT + 32 * + NULLIF ( + ( - ( - + COUNT ( ALL - - 10 ) ) ), - 15 * 4 + 12 ) - 21 * - COUNT ( * ) - - 32, SUM ( ALL + 56 ) AS col1
----
85
56

query II rowsort
SELECT ( 66 ) AS col0, + 9
----
66
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2629
SELECT ALL - 88 DIV + COUNT( + - 53 ) + 14, - 63 AS col2
----
-74
-63

skipif mysql # not compatible
query II rowsort label-2629
SELECT ALL - 88 / + COUNT ( + - 53 ) + 14, - 63 AS col2
----
-74
-63

query I rowsort
SELECT + CASE WHEN NOT - 9 >= 83 THEN + + 22 + ( - 98 ) END
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL - 39 * - MAX( + 89 ) * 36 * 41 + + + 5 AS col1
----
5123201

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL - 39 * - MAX ( + 89 ) * 36 * 41 + + + 5 AS col1
----
5123201

query I rowsort
SELECT DISTINCT + 55 * 79 + + 47 col2
----
4392

query I rowsort
SELECT ALL 62 * + 82 + - 67 AS col0
----
5017

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT + ( + - 92 ) + + ( + 47 ) + ( - 89 ) * - - SUM( ALL ( 47 ) ) + + 20
----
-4208

skipif mysql # not compatible
query I rowsort label-2635
SELECT + ( + - 92 ) + + ( + 47 ) + ( - 89 ) * - - SUM ( ALL ( 47 ) ) + + 20
----
-4208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT + CASE - - 21 WHEN + 53 THEN NULL WHEN - - 69 THEN NULL WHEN + CAST( 31 AS SIGNED ) THEN NULL ELSE - 76 END * - 6 AS col1
----
456

skipif mysql # not compatible
query I rowsort label-2636
SELECT + CASE - - 21 WHEN + 53 THEN NULL WHEN - - 69 THEN NULL WHEN + CAST ( 31 AS INTEGER ) THEN NULL ELSE - 76 END * - 6 AS col1
----
456

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

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

query I rowsort
SELECT - - 25 * 96 + + 78
----
2478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2639
SELECT ALL 53 * CAST( + ( + 60 ) AS SIGNED ) - + ( + ( 2 ) ) AS col2
----
3178

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL 53 * CAST ( + ( + 60 ) AS INTEGER ) - + ( + ( 2 ) ) AS col2
----
3178

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

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

query I rowsort
SELECT + + 96 * + NULLIF ( + + 67, - 57 )
----
6432

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT ALL + + CASE + 25 WHEN + 31 - - - 8 + - 92 THEN NULL ELSE - 11 + - 25 DIV + + 91 * 22 + + 72 END AS col2
----
61

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL + + CASE + 25 WHEN + 31 - - - 8 + - 92 THEN NULL ELSE - 11 + - 25 / + + 91 * 22 + + 72 END AS col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2643
SELECT - CAST( NULL AS SIGNED ) * - + 51 + - + AVG ( - 50 ) * - - ( 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT - CAST ( NULL AS INTEGER ) * - + 51 + - + AVG ( - 50 ) * - - ( 15 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT - 24 * 50 DIV 7 * - 59
----
10089

skipif mysql # not compatible
query I rowsort label-2644
SELECT - 24 * 50 / 7 * - 59
----
10089

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

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL MAX ( - ( - ( 19 ) ) )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-2646
SELECT ALL ( COUNT( * ) ) AS col0, - 74 * + MIN( ALL + 52 ) * + 63
----
1
-242424

skipif mysql # not compatible
query II rowsort label-2646
SELECT ALL ( COUNT ( * ) ) AS col0, - 74 * + MIN ( ALL + 52 ) * + 63
----
1
-242424

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT - - 69 DIV + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2647
SELECT - - 69 / + 70 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT ALL + 58 + 6 + NULLIF ( - 70, - + 44 + - ( + + COALESCE ( 50, + 43, + + 18 ) ) ) + + + 39 * + + MAX( ALL - + 7 )
----
-279

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL + 58 + 6 + NULLIF ( - 70, - + 44 + - ( + + COALESCE ( 50, + 43, + + 18 ) ) ) + + + 39 * + + MAX ( ALL - + 7 )
----
-279

query II rowsort
SELECT DISTINCT ( + - 57 ) * + + 74 * + 10, + 85 AS col1
----
-42180
85

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

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL + ( + COUNT ( 88 ) ) AS col2
----
1

query I rowsort
SELECT - 7 + - 67 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT - MIN( ALL - - 63 ) - - MAX( + 2 )
----
-61

skipif mysql # not compatible
query I rowsort label-2652
SELECT - MIN ( ALL - - 63 ) - - MAX ( + 2 )
----
-61

query I rowsort
SELECT DISTINCT - 54 + + 19
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2654
SELECT - SUM( - - CAST( NULL AS SIGNED ) ) * 28 * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2654
SELECT - SUM ( - - CAST ( NULL AS INTEGER ) ) * 28 * + 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2655
SELECT DISTINCT - 81 + - + 17 + CAST( 17 AS SIGNED ) * - COUNT( * ) AS col1, 89 AS col2
----
-115
89

skipif mysql # not compatible
query II rowsort label-2655
SELECT DISTINCT - 81 + - + 17 + CAST ( 17 AS INTEGER ) * - COUNT ( * ) AS col1, 89 AS col2
----
-115
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT - 47 DIV COALESCE ( + 60, + + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-2656
SELECT - 47 / COALESCE ( + 60, + + 32 )
----
0

query I rowsort
SELECT - 53 + + 26 col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT ALL - 64 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL - 64 / - 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT ALL CAST( 78 AS SIGNED )
----
78

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2661
SELECT DISTINCT - CAST( 67 AS SIGNED ) + - 70 + - 33 + + + NULLIF ( - MAX( + + 27 ), 72 ) + - CAST( + 7 AS SIGNED ) DIV - + COUNT( 48 )
----
-190

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT - CAST ( 67 AS INTEGER ) + - 70 + - 33 + + + NULLIF ( - MAX ( + + 27 ), 72 ) + - CAST ( + 7 AS INTEGER ) / - + COUNT ( 48 )
----
-190

query II rowsort
SELECT 27, 84 AS col2
----
27
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2663
SELECT ALL - CASE - 7 WHEN 97 + + - 14 * + + 16 THEN ( - 51 ) / + - 63 WHEN - 9 THEN - COUNT( * ) / 82 / + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - CASE - 7 WHEN 97 + + - 14 * + + 16 THEN ( - 51 ) / + - 63 WHEN - 9 THEN - COUNT ( * ) / 82 / + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL COUNT( * ) * - - COUNT( * ) / + 66 * - - CASE + 9 WHEN - - 77 * - + 1 + + - 30 + 32 - - COUNT( * ) + - COUNT( * ) * - - 69 THEN - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL COUNT ( * ) * - - COUNT ( * ) / + 66 * - - CASE + 9 WHEN - - 77 * - + 1 + + - 30 + 32 - - COUNT ( * ) + - COUNT ( * ) * - - 69 THEN - 10 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2665
SELECT + 84 AS col0, - 93 DIV - 33
----
84
2

skipif mysql # not compatible
query II rowsort label-2665
SELECT + 84 AS col0, - 93 / - 33
----
84
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT ALL + 74 * CAST( + + 88 AS SIGNED ) AS col1
----
6512

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + 74 * CAST ( + + 88 AS INTEGER ) AS col1
----
6512

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL + 85 * 13 + - COUNT( + + 10 )
----
1104

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL + 85 * 13 + - COUNT ( + + 10 )
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT - MAX( ALL - - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-2668
SELECT - MAX ( ALL - - 57 ) AS col2
----
-57

query I rowsort
SELECT - 72 - - 49 AS col0
----
-23

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2671
SELECT DISTINCT + COUNT( * ) DIV - 10 col2
----
0

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT + COUNT ( * ) / - 10 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT COUNT( * ) * + NULLIF ( + + ( - + ( - 69 ) ), - 78 )
----
69

skipif mysql # not compatible
query I rowsort label-2672
SELECT COUNT ( * ) * + NULLIF ( + + ( - + ( - 69 ) ), - 78 )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2673
SELECT CAST( 38 AS SIGNED ) * 61 * - 12 + + 18 + + + 4 + 26 - + COALESCE ( 81, - - ( - + 74 ) + + + 14 + 11 ) AS col2
----
-27849

skipif mysql # not compatible
query I rowsort label-2673
SELECT CAST ( 38 AS INTEGER ) * 61 * - 12 + + 18 + + + 4 + 26 - + COALESCE ( 81, - - ( - + 74 ) + + + 14 + 11 ) AS col2
----
-27849

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT - COUNT( * ) + + 84 AS col1
----
83

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

query I rowsort
SELECT + 22 - + 52
----
-30

query I rowsort
SELECT ALL - 67 + + 53 + + 9 AS col0
----
-5

query I rowsort
SELECT ALL 14 + 19 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT DISTINCT + CASE + COUNT( * ) WHEN MIN( 58 ) THEN - + SUM( + + 96 ) * + 82 WHEN + 83 THEN - 68 END + 88 + + + ( + + 79 ) * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT + CASE + COUNT ( * ) WHEN MIN ( 58 ) THEN - + SUM ( + + 96 ) * + 82 WHEN + 83 THEN - 68 END + 88 + + + ( + + 79 ) * + 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT CAST( 82 AS SIGNED ) + + - 76 + 45 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-2679
SELECT CAST ( 82 AS INTEGER ) + + - 76 + 45 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL SUM( + + 10 ) + - 19 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL SUM ( + + 10 ) + - 19 AS col1
----
-9

query III rowsort
SELECT - 96 AS col1, + 50 AS col0, + 37 AS col0
----
-96
50
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT COUNT( * ) + - - 30 - + - 38 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-2683
SELECT COUNT ( * ) + - - 30 - + - 38 AS col1
----
69

query I rowsort
SELECT 45 + + - 81 AS col0
----
-36

query I rowsort
SELECT ALL 29 + 20 + 30 AS col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT DISTINCT 47 DIV - 83 * 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT 47 / - 83 * 84 AS col1
----
0

query I rowsort
SELECT ALL + 5 + - - 99 AS col0
----
104

query II rowsort
SELECT 61 + 65 AS col0, 56 AS col2
----
126
56

query II rowsort
SELECT DISTINCT 65 AS col1, 48
----
65
48

query I rowsort
SELECT ALL 82 * - 87 * - + 8 * 78 * 32
----
142451712

query I rowsort
SELECT 70 + 68 col2
----
138

query II rowsort
SELECT - 72, 4 + 28 AS col0
----
-72
32

query I rowsort
SELECT 80 + - 49
----
31

query I rowsort
SELECT ALL + 5 - + 72 * - ( + 77 ) * 67 AS col0
----
371453

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2695
SELECT ( + 87 ) + + + 12 + + 48 DIV 67 * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-2695
SELECT ( + 87 ) + + + 12 + + 48 / 67 * COUNT ( * )
----
99

query II rowsort
SELECT + 82 AS col1, 98 - + COALESCE ( + + 94, 15, + 79 ) + - 48
----
82
-44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2698
SELECT ALL - 15 DIV - 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL - 15 / - 35 AS col0
----
0

query I rowsort
SELECT 79 * 67 AS col2
----
5293

query II rowsort
SELECT ALL - 15, + 72 AS col1
----
-15
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT DISTINCT - COALESCE ( - + ( - - 31 ), COUNT( * ), ( - 28 ) + - + 5 )
----
31

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT - COALESCE ( - + ( - - 31 ), COUNT ( * ), ( - 28 ) + - + 5 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT ALL + COALESCE ( COALESCE ( 71, - 65 * - 11 ), 8 * 24 + + 79 ) * + - 58 - - COUNT( * ) AS col1
----
-4117

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL + COALESCE ( COALESCE ( 71, - 65 * - 11 ), 8 * 24 + + 79 ) * + - 58 - - COUNT ( * ) AS col1
----
-4117

query I rowsort
SELECT + 69 * + 66 * - + 71 + ( 47 )
----
-323287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2704
SELECT ALL - 63, 37 + - CASE 19 WHEN + 9 THEN + - 97 END * - 72 / - - 23 + - 57 + MIN( 34 ) * + 45 AS col1, 19 * - + CAST( - ( - - 29 ) AS SIGNED ) * + 70 AS col0
----
-63
NULL
38570

skipif mysql # not compatible
query III rowsort label-2704
SELECT ALL - 63, 37 + - CASE 19 WHEN + 9 THEN + - 97 END * - 72 / - - 23 + - 57 + MIN ( 34 ) * + 45 AS col1, 19 * - + CAST ( - ( - - 29 ) AS INTEGER ) * + 70 AS col0
----
-63
NULL
38570

query I rowsort
SELECT DISTINCT - + ( + 99 ) col0
----
-99

query I rowsort
SELECT ALL - 74 * - + 55 * + 10 * - + 47 + 61
----
-1912839

query I rowsort
SELECT - 94 * - 87 + - 97
----
8081

query I rowsort
SELECT - 46 * + ( + - 55 ) + + 80 AS col2
----
2610

query I rowsort
SELECT ALL + 22 + + 60 AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2710
SELECT ALL COALESCE ( + - 37, - 0 * - - 45 + + + 54 * + 18 + + COUNT( * ) DIV + 21, + 14 ) + + COUNT( * ) + - - 28 * - 91
----
-2584

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL COALESCE ( + - 37, - 0 * - - 45 + + + 54 * + 18 + + COUNT ( * ) / + 21, + 14 ) + + COUNT ( * ) + - - 28 * - 91
----
-2584

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

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT - CAST ( + ( 98 ) AS INTEGER ) AS col1
----
-98

query I rowsort
SELECT DISTINCT + 89 + - 2 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) col1
----
0

query II rowsort
SELECT 52 AS col2, + 32 AS col2
----
52
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ALL + - MAX( DISTINCT 82 ) + + 26 col2
----
-56

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL + - MAX ( DISTINCT 82 ) + + 26 col2
----
-56

query I rowsort
SELECT ALL 69 + - 72 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2717
SELECT 58, + MIN( CAST( - 46 AS SIGNED ) ) AS col0
----
58
-46

skipif mysql # not compatible
query II rowsort label-2717
SELECT 58, + MIN ( CAST ( - 46 AS INTEGER ) ) AS col0
----
58
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT NULLIF ( 88, + - CASE - - 19 WHEN + MAX( DISTINCT + 8 ) * + 69 * + + 91 * + ( - COUNT( * ) ) * - 94 THEN COUNT( * ) * + - COUNT( * ) ELSE NULL END ) * - + 42
----
-3696

skipif mysql # not compatible
query I rowsort label-2718
SELECT NULLIF ( 88, + - CASE - - 19 WHEN + MAX ( DISTINCT + 8 ) * + 69 * + + 91 * + ( - COUNT ( * ) ) * - 94 THEN COUNT ( * ) * + - COUNT ( * ) ELSE NULL END ) * - + 42
----
-3696

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

skipif mysql # not compatible
query I rowsort label-2719
SELECT - MIN ( + 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL 35 + + MIN( ALL - 33 )
----
2

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL 35 + + MIN ( ALL - 33 )
----
2

query I rowsort
SELECT DISTINCT CASE ( - + 67 ) WHEN + 18 THEN + + 93 + 55 + + 5 / + - 1 ELSE - 21 + 27 END
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2722
SELECT ALL 6 * + 37 * - - 53 * - 46 * 16, - COUNT( * ) * - - ( - 19 ) AS col2
----
-8659776
19

skipif mysql # not compatible
query II rowsort label-2722
SELECT ALL 6 * + 37 * - - 53 * - 46 * 16, - COUNT ( * ) * - - ( - 19 ) AS col2
----
-8659776
19

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

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

query I rowsort
SELECT DISTINCT 41 * - - 89
----
3649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2725
SELECT ALL 99 - + + 21 + CASE - 1 WHEN + SUM( 74 ) * - COUNT( ALL - 9 ) - + 68 THEN - + 39 * COUNT( * ) + + NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) ELSE NULL END * + - CASE + 90 WHEN ( + 78 ) THEN NULL WHEN ( + + 82 ) THEN + 53 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL 99 - + + 21 + CASE - 1 WHEN + SUM ( 74 ) * - COUNT ( ALL - 9 ) - + 68 THEN - + 39 * COUNT ( * ) + + NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) ELSE NULL END * + - CASE + 90 WHEN ( + 78 ) THEN NULL WHEN ( + + 82 ) THEN + 53 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( - 1, 24, 71 )
----
1

query I rowsort
SELECT + 82 * 0 * - 52 AS col2
----
0

query I rowsort
SELECT - 40 + + 50 AS col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2729
SELECT ALL 92 DIV 71 DIV - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL 92 / 71 / - 90 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT DISTINCT + ( COUNT( * ) ) AS col1, - 19 * - + 64
----
1
1216

skipif mysql # not compatible
query II rowsort label-2730
SELECT DISTINCT + ( COUNT ( * ) ) AS col1, - 19 * - + 64
----
1
1216

query I rowsort
SELECT DISTINCT - 36 * - + 77
----
2772

query II rowsort
SELECT + ( 15 ) AS col0, 72 AS col0
----
15
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2733
SELECT - - ( + - 66 ) DIV - 25
----
2

skipif mysql # not compatible
query I rowsort label-2733
SELECT - - ( + - 66 ) / - 25
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT - 62 * + - SUM( + 64 ) * - - NULLIF ( + 55, - 25 * + - 44 + + - 63 ) + - COUNT( * )
----
218239

skipif mysql # not compatible
query I rowsort label-2734
SELECT - 62 * + - SUM ( + 64 ) * - - NULLIF ( + 55, - 25 * + - 44 + + - 63 ) + - COUNT ( * )
----
218239

query I rowsort
SELECT DISTINCT + + 95 col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2736
SELECT + 75 DIV + COUNT( * ) + + 68
----
143

skipif mysql # not compatible
query I rowsort label-2736
SELECT + 75 / + COUNT ( * ) + + 68
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2737
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) * - COUNT( * ) + 22 + + ( + 80 ) / - + 34 * - 90 + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - COUNT ( * ) + 22 + + ( + 80 ) / - + 34 * - 90 + 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT - COUNT( ALL + 46 ) - + 54
----
-55

skipif mysql # not compatible
query I rowsort label-2738
SELECT - COUNT ( ALL + 46 ) - + 54
----
-55

query I rowsort
SELECT DISTINCT - 75 * - - ( + 15 ) + - + 80 * + 26
----
-3205

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

skipif mysql # not compatible
query I rowsort label-2740
SELECT MAX ( + + 0 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2741
SELECT + - ( SUM( + - 57 ) ) AS col0, 66
----
57
66

skipif mysql # not compatible
query II rowsort label-2741
SELECT + - ( SUM ( + - 57 ) ) AS col0, 66
----
57
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2742
SELECT + + CAST( + + 64 AS SIGNED ) AS col2, - 33 * - 71 + COUNT( * )
----
64
2344

skipif mysql # not compatible
query II rowsort label-2742
SELECT + + CAST ( + + 64 AS INTEGER ) AS col2, - 33 * - 71 + COUNT ( * )
----
64
2344

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT - - COUNT( * ) + ( - + COUNT( * ) ) * 72 col2
----
-71

skipif mysql # not compatible
query I rowsort label-2743
SELECT - - COUNT ( * ) + ( - + COUNT ( * ) ) * 72 col2
----
-71

query II rowsort
SELECT ALL - ( - NULLIF ( + 14, 55 ) ) * + - 96 * - ( - 57 ) AS col1, 78 * - 4 AS col1
----
-76608
-312

query I rowsort
SELECT - + 71 + + + 68 * - - 16
----
1017

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

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

query I rowsort
SELECT ALL COALESCE ( + 90, - - 2 ) AS col0
----
90

query I rowsort
SELECT DISTINCT COALESCE ( + 76, 65 ) AS col2
----
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT DISTINCT - 5 - + + 68 * 45 + + 25 + 40 * + - COUNT( * ) + - NULLIF ( + - 72, - 88 + - COUNT( + 51 ) * + - 2 ) AS col0
----
-3008

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT - 5 - + + 68 * 45 + + 25 + 40 * + - COUNT ( * ) + - NULLIF ( + - 72, - 88 + - COUNT ( + 51 ) * + - 2 ) AS col0
----
-3008

query I rowsort
SELECT - 64 * + 46 * - 26
----
76544

onlyif mysql # aggregate syntax: 
query II rowsort label-2752
SELECT 57 col2, NULLIF ( 41, - 89 * 68 * - 48 - + 94 ) * - 22 + 13 + COUNT( * )
----
57
-888

skipif mysql # not compatible
query II rowsort label-2752
SELECT 57 col2, NULLIF ( 41, - 89 * 68 * - 48 - + 94 ) * - 22 + 13 + COUNT ( * )
----
57
-888

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2753
SELECT DISTINCT + 33 DIV NULLIF ( - - COUNT( * ), + + 73 + + + CAST( 60 AS DECIMAL ) + COUNT( * ) * 2 * + - 93 * - 41 * - 15 ) DIV + + 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT + 33 / NULLIF ( - - COUNT ( * ), + + 73 + + + CAST ( 60 AS REAL ) + COUNT ( * ) * 2 * + - 93 * - 41 * - 15 ) / + + 47 AS col1
----
0

query II rowsort
SELECT ALL 16, 45 AS col0
----
16
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2755
SELECT - 58 + + COALESCE ( + COUNT( * ), + 1 * + 58, - COUNT( * ), + 96 DIV + 2 + 13 DIV + 85 * + - COALESCE ( - 10, - + 95 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-2755
SELECT - 58 + + COALESCE ( + COUNT ( * ), + 1 * + 58, - COUNT ( * ), + 96 / + 2 + 13 / + 85 * + - COALESCE ( - 10, - + 95 ) )
----
-57

query I rowsort
SELECT ALL 28 * + 4
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT + 33 * + MIN( - ( - - 70 ) ) AS col1
----
-2310

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT + 33 * + MIN ( - ( - - 70 ) ) AS col1
----
-2310

query I rowsort
SELECT ALL 22 * + 10
----
220

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2760
SELECT + CAST( 47 AS SIGNED ) DIV - CAST( 89 AS SIGNED ) - 1 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2760
SELECT + CAST ( 47 AS INTEGER ) / - CAST ( 89 AS INTEGER ) - 1 AS col0
----
-1

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

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

query I rowsort
SELECT + 80 + - 80 * 79 + - ( + 38 ) AS col0
----
-6278

query I rowsort
SELECT ALL 86 * 1 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT + - 37 + 93 - - COUNT( * ) + - 64 * - + 17 AS col0
----
1145

skipif mysql # not compatible
query I rowsort label-2764
SELECT + - 37 + 93 - - COUNT ( * ) + - 64 * - + 17 AS col0
----
1145

query II rowsort
SELECT 26 AS col0, - 52 + 32
----
26
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT + + MAX( ALL - + 34 ) + + 95 - 4 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2766
SELECT + + MAX ( ALL - + 34 ) + + 95 - 4 AS col0
----
57

query I rowsort
SELECT ALL 22 + - 5
----
17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2768
SELECT ALL - 93 DIV 40 DIV 60 + - 34 + CAST( CAST( 57 AS SIGNED ) AS SIGNED ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL - 93 / 40 / 60 + - 34 + CAST ( CAST ( 57 AS INTEGER ) AS INTEGER ) AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2769
SELECT DISTINCT + 57 DIV 37 + + 84 * 57 + 93
----
4882

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT + 57 / 37 + + 84 * 57 + 93
----
4882

onlyif mysql # DIV for integer division: 
query I rowsort label-2770
SELECT DISTINCT + COALESCE ( + 86, 57 ) DIV - + 85 + + 72 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT + COALESCE ( + 86, 57 ) / - + 85 + + 72 AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2771
SELECT DISTINCT - NULLIF ( ( - - NULLIF ( + 88, - COUNT( ALL + - 63 ) ) ), + - 24 ) / - - CAST( NULL AS SIGNED ) + + + COALESCE ( - - ( + ( + COALESCE ( - - 66, + + 44 - + COUNT( * ) + - - 89 + 70 / - - 14 / MAX( + - 66 ) + - 27 + - 15 ) ) ), 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT - NULLIF ( ( - - NULLIF ( + 88, - COUNT ( ALL + - 63 ) ) ), + - 24 ) / - - CAST ( NULL AS INTEGER ) + + + COALESCE ( - - ( + ( + COALESCE ( - - 66, + + 44 - + COUNT ( * ) + - - 89 + 70 / - - 14 / MAX ( + - 66 ) + - 27 + - 15 ) ) ), 93 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2772
SELECT - + 42 DIV - CAST( - + 42 AS SIGNED ) + - - 41 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2772
SELECT - + 42 / - CAST ( - + 42 AS INTEGER ) + - - 41 AS col0
----
40

query I rowsort
SELECT - - 61 + - + 16 + 91 AS col2
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2774
SELECT ALL - + MAX( ALL + 26 ) DIV - 19 + + - 11 + - + ( + - 80 ) * + + 8 + + 16
----
646

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL - + MAX ( ALL + 26 ) / - 19 + + - 11 + - + ( + - 80 ) * + + 8 + + 16
----
646

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2775
SELECT + COALESCE ( 72, + COUNT( - 73 ) DIV + SUM( + + 80 ) + + 7 ) DIV + 76, 97 col0
----
0
97

skipif mysql # not compatible
query II rowsort label-2775
SELECT + COALESCE ( 72, + COUNT ( - 73 ) / + SUM ( + + 80 ) + + 7 ) / + 76, 97 col0
----
0
97

query I rowsort
SELECT ALL 4 - - ( - - ( + 83 ) ) * - - 32 AS col0
----
2660

query II rowsort
SELECT ALL - CASE - 4 WHEN + 6 THEN 55 END, 4 + + 55 + + 0 AS col1
----
NULL
59

query I rowsort
SELECT ALL + 18 - + 46 + - 48 * 12 + + + 63
----
-541

query I rowsort
SELECT 55 * - 14 AS col0
----
-770

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2781
SELECT 71 + - MIN( ALL 96 ) + + 91 DIV + - 70 + ( + 61 ) + + 92 col2
----
127

skipif mysql # not compatible
query I rowsort label-2781
SELECT 71 + - MIN ( ALL 96 ) + + 91 / + - 70 + ( + 61 ) + + 92 col2
----
127

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT 90 * - 5 * COUNT( * ) AS col1
----
-450

skipif mysql # not compatible
query I rowsort label-2783
SELECT 90 * - 5 * COUNT ( * ) AS col1
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT ALL + 46 * + 92 * - COUNT( * )
----
-4232

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL + 46 * + 92 * - COUNT ( * )
----
-4232

onlyif mysql # aggregate syntax: 
query II rowsort label-2785
SELECT 56 * - COUNT( * ) * 69 - - 66 AS col2, 47
----
-3798
47

skipif mysql # not compatible
query II rowsort label-2785
SELECT 56 * - COUNT ( * ) * 69 - - 66 AS col2, 47
----
-3798
47

query II rowsort
SELECT 5 + + + 56 AS col1, - 23 AS col1
----
61
-23

query I rowsort
SELECT 80 * - 65 AS col0
----
-5200

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT COUNT( * ) * - 35 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2788
SELECT COUNT ( * ) * - 35 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT DISTINCT + 2 + 35 * MAX( ALL 40 ) AS col0
----
1402

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT + 2 + 35 * MAX ( ALL 40 ) AS col0
----
1402

onlyif mysql # aggregate syntax: 
query II rowsort label-2790
SELECT 85 - + 42 AS col2, + MIN( DISTINCT - 61 ) AS col2
----
43
-61

skipif mysql # not compatible
query II rowsort label-2790
SELECT 85 - + 42 AS col2, + MIN ( DISTINCT - 61 ) AS col2
----
43
-61

query I rowsort
SELECT ALL - 95 + + - 63 * - 83
----
5134

query I rowsort
SELECT ALL NULLIF ( ( 87 ), 14 + - - 71 + + 49 ) * + - 84
----
-7308

query I rowsort
SELECT ALL - + 87 + - + 86
----
-173

query I rowsort
SELECT 58 * 37 AS col1
----
2146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2795
SELECT CASE - MIN( ALL - 98 ) WHEN - 95 THEN NULL WHEN + + 96 THEN - COUNT( ALL + 50 ) WHEN 30 THEN + + CAST( 76 AS SIGNED ) - + 93 ELSE + + 12 + + COUNT( * ) * - + CASE + + 29 WHEN 7 THEN - - COUNT( * ) * 49 / + 18 + - COUNT( * ) ELSE CAST( NULL AS SIGNED ) * + 32 END END AS col0, ( + 81 ) * 31 + + + 68 AS col1
----
NULL
2579

skipif mysql # not compatible
query II rowsort label-2795
SELECT CASE - MIN ( ALL - 98 ) WHEN - 95 THEN NULL WHEN + + 96 THEN - COUNT ( ALL + 50 ) WHEN 30 THEN + + CAST ( 76 AS INTEGER ) - + 93 ELSE + + 12 + + COUNT ( * ) * - + CASE + + 29 WHEN 7 THEN - - COUNT ( * ) * 49 / + 18 + - COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) * + 32 END END AS col0, ( + 81 ) * 31 + + + 68 AS col1
----
NULL
2579

query I rowsort
SELECT ALL + 51 + 58 AS col1
----
109

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2797
SELECT ALL 9 + + CAST( NULL AS DECIMAL ) * + 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL 9 + + CAST ( NULL AS REAL ) * + 60 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT - 83 + 69 + + - 69 * + 34 * + - CAST( 75 AS SIGNED ) - 72 - - - ( - CAST( NULL AS SIGNED ) ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT - 83 + 69 + + - 69 * + 34 * + - CAST ( 75 AS INTEGER ) - 72 - - - ( - CAST ( NULL AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT COUNT( DISTINCT - - 36 ) + - 27 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-2799
SELECT COUNT ( DISTINCT - - 36 ) + - 27 AS col0
----
-26

query I rowsort
SELECT + - COALESCE ( - 36, + 64 )
----
36

query I rowsort
SELECT - 5 + + 85 + + 16 - 28 AS col2
----
68

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

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

query II rowsort
SELECT 7 * + 21 col0, - 73 AS col1
----
147
-73

query I rowsort
SELECT + 32 + 59 + - NULLIF ( 33, - ( - - 99 ) ) col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT CAST( + ( + COUNT( * ) ) AS SIGNED ) + - 18 col2
----
-17

skipif mysql # not compatible
query I rowsort label-2805
SELECT CAST ( + ( + COUNT ( * ) ) AS INTEGER ) + - 18 col2
----
-17

query I rowsort
SELECT ALL 83 * - 47 AS col1
----
-3901

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT COUNT( * ) * 50 * 46 + + 66 AS col0
----
2366

skipif mysql # not compatible
query I rowsort label-2807
SELECT COUNT ( * ) * 50 * 46 + + 66 AS col0
----
2366

query I rowsort
SELECT + 14 * - 3 + 74 AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2809
SELECT 54 DIV 36
----
1

skipif mysql # not compatible
query I rowsort label-2809
SELECT 54 / 36
----
1

query I rowsort
SELECT 90 * + 8 AS col2
----
720

query I rowsort
SELECT 61 * + + COALESCE ( 29, + + 30, + + CASE - 66 WHEN - + 34 THEN NULL ELSE - 50 + + 85 - 70 END, + 13 * + 61 + COALESCE ( - + 14, 79 ) * + + 30 ) col0
----
1769

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT 99 * 94 DIV + - 97
----
-95

skipif mysql # not compatible
query I rowsort label-2812
SELECT 99 * 94 / + - 97
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-2813
SELECT ALL - 88 DIV + ( - 89 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL - 88 / + ( - 89 ) col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2814
SELECT 80 / - 88
----
0

query I rowsort
SELECT ALL 17 + - - 27
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT - COUNT( DISTINCT - 83 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2816
SELECT - COUNT ( DISTINCT - 83 ) AS col1
----
-1

query I rowsort
SELECT ALL + ( - + 41 ) + - 39 * + 68 AS col1
----
-2693

query I rowsort
SELECT 95 - - 23 + + 22 * - 35 * + ( - 1 )
----
888

query II rowsort
SELECT 6, - 15 - + 38 AS col0
----
6
-53

query II rowsort
SELECT ALL 23, + 16 AS col2
----
23
16

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

skipif mysql # not compatible
query I rowsort label-2821
SELECT - SUM ( DISTINCT - 2 )
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2823
SELECT ALL + COUNT( * ) + - + CASE - 52 WHEN - - 59 + + - 20 * + 70 THEN - COUNT( * ) + - 10 WHEN + COUNT( * ) + + - 32 + + MIN( - 96 ) THEN + 59 * - 48 WHEN + 55 * + - COALESCE ( + 26, + + 41, + + 86 + 8 ) THEN NULL WHEN - - 96 THEN NULL END + CAST( NULL AS SIGNED ) * 15 * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL + COUNT ( * ) + - + CASE - 52 WHEN - - 59 + + - 20 * + 70 THEN - COUNT ( * ) + - 10 WHEN + COUNT ( * ) + + - 32 + + MIN ( - 96 ) THEN + 59 * - 48 WHEN + 55 * + - COALESCE ( + 26, + + 41, + + 86 + 8 ) THEN NULL WHEN - - 96 THEN NULL END + CAST ( NULL AS INTEGER ) * 15 * + 8
----
NULL

query I rowsort
SELECT ALL - 52 + + 8
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2825
SELECT MIN( CASE 57 WHEN - 4 * + - 84 THEN - - 17 WHEN - + ( - 59 ) THEN + 16 * 15 / 26 END ) + - ( - - CAST( NULL AS SIGNED ) ) + - MIN( ALL + 80 ) * + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2825
SELECT MIN ( CASE 57 WHEN - 4 * + - 84 THEN - - 17 WHEN - + ( - 59 ) THEN + 16 * 15 / 26 END ) + - ( - - CAST ( NULL AS INTEGER ) ) + - MIN ( ALL + 80 ) * + 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT 30 - 24 * + SUM( - + 54 ) * COUNT( * ) + - + 69
----
1257

skipif mysql # not compatible
query I rowsort label-2826
SELECT 30 - 24 * + SUM ( - + 54 ) * COUNT ( * ) + - + 69
----
1257

query I rowsort
SELECT ALL + 80 + 26
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT DISTINCT COUNT( 86 )
----
1

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT COUNT ( 86 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT ALL - CAST( + 34 AS SIGNED ) + - NULLIF ( 25, - 81 ) * 3 AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL - CAST ( + 34 AS INTEGER ) + - NULLIF ( 25, - 81 ) * 3 AS col1
----
-109

query I rowsort
SELECT 30 + 10 AS col0
----
40

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

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL SUM ( ALL - 89 )
----
-89

query I rowsort
SELECT 39 + 55 * 49
----
2734

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

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT COUNT ( ALL 72 ) AS col2
----
1

query I rowsort
SELECT 20 * - 53 AS col0
----
-1060

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT 55 * + MIN( - 46 ) AS col2
----
-2530

skipif mysql # not compatible
query I rowsort label-2835
SELECT 55 * + MIN ( - 46 ) AS col2
----
-2530

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT MAX( - 20 ) + 95 * - 84
----
-8000

skipif mysql # not compatible
query I rowsort label-2836
SELECT MAX ( - 20 ) + 95 * - 84
----
-8000

query I rowsort
SELECT ALL CASE COALESCE ( + 52, - 12 ) WHEN 79 THEN - 13 WHEN 58 THEN NULL ELSE - 32 END
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT 29 * COUNT( ALL ( - 38 ) * 26 )
----
29

skipif mysql # not compatible
query I rowsort label-2838
SELECT 29 * COUNT ( ALL ( - 38 ) * 26 )
----
29

query I rowsort
SELECT + 86 * - 55 + ( NULLIF ( 67, 53 + - 84 ) ) * + 42
----
-1916

query I rowsort
SELECT ALL 19 * 32
----
608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2841
SELECT - 25 * - NULLIF ( + 65, 63 * CAST( + ( + COUNT( * ) ) AS SIGNED ) )
----
1625

skipif mysql # not compatible
query I rowsort label-2841
SELECT - 25 * - NULLIF ( + 65, 63 * CAST ( + ( + COUNT ( * ) ) AS INTEGER ) )
----
1625

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT DISTINCT - 45 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT - 45 / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT 37 * MIN( - 23 ) AS col2
----
-851

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT 37 * MIN ( - 23 ) AS col2
----
-851

query I rowsort
SELECT DISTINCT - 13 * + 97 - + 79 col1
----
-1340

query I rowsort
SELECT DISTINCT + 73 * + 45
----
3285

query I rowsort
SELECT DISTINCT + 64 * 13
----
832

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2848
SELECT + CAST( 29 AS SIGNED ) * + 94
----
2726

skipif mysql # not compatible
query I rowsort label-2848
SELECT + CAST ( 29 AS INTEGER ) * + 94
----
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT + COALESCE ( + 31, + COUNT( * ) * 45 )
----
31

skipif mysql # not compatible
query I rowsort label-2849
SELECT + COALESCE ( + 31, + COUNT ( * ) * 45 )
----
31

query I rowsort
SELECT 83 * 28 + 32 AS col0
----
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT DISTINCT 22 * + MIN( DISTINCT 8 ) + - 58
----
118

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT 22 * + MIN ( DISTINCT 8 ) + - 58
----
118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL 28 * 60 + COUNT( * ) AS col0
----
1681

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL 28 * 60 + COUNT ( * ) AS col0
----
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT DISTINCT - 49 * + COUNT( - 8 ) + - 94 * + COUNT( * ) AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT - 49 * + COUNT ( - 8 ) + - 94 * + COUNT ( * ) AS col2
----
-143

query I rowsort
SELECT ALL + 16 * 16 + + 56
----
312

query I rowsort
SELECT DISTINCT 9 * - 37 + - 91
----
-424

query I rowsort
SELECT + 40 * 9 AS col2
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT MAX( DISTINCT 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2858
SELECT MAX ( DISTINCT 92 ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2859
SELECT ALL 63 + - COUNT( DISTINCT ( CAST( + 60 AS SIGNED ) ) ) DIV 10
----
63

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL 63 + - COUNT ( DISTINCT ( CAST ( + 60 AS INTEGER ) ) ) / 10
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT ALL COUNT( * ) + ( - 40 )
----
-39

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL COUNT ( * ) + ( - 40 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2861
SELECT 30 * - CASE 23 WHEN + 82 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - 15 THEN NULL WHEN + 80 * 51 + + 49 THEN NULL ELSE + 33 * 4 END - 6 DIV + 89 AS col2
----
-3960

skipif mysql # not compatible
query I rowsort label-2861
SELECT 30 * - CASE 23 WHEN + 82 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - 15 THEN NULL WHEN + 80 * 51 + + 49 THEN NULL ELSE + 33 * 4 END - 6 / + 89 AS col2
----
-3960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT - NULLIF ( + 62, - 75 * + NULLIF ( + CAST( 14 AS SIGNED ), + CAST( NULL AS SIGNED ) + 2 ) - - COUNT( * ) ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-2862
SELECT - NULLIF ( + 62, - 75 * + NULLIF ( + CAST ( 14 AS INTEGER ), + CAST ( NULL AS INTEGER ) + 2 ) - - COUNT ( * ) ) AS col1
----
-62

query I rowsort
SELECT ALL 27 + 59 AS col1
----
86

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

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

query I rowsort
SELECT ALL + 78 + 91 * 18 AS col0
----
1716

query I rowsort
SELECT + 85 * 64 col1
----
5440

query I rowsort
SELECT ALL - + 12 * 24 AS col2
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT ALL + CASE - 38 WHEN 22 THEN 49 ELSE MAX( 49 ) * - NULLIF ( - 92, 79 ) END - 97
----
4411

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + CASE - 38 WHEN 22 THEN 49 ELSE MAX ( 49 ) * - NULLIF ( - 92, 79 ) END - 97
----
4411

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL - ( MIN( 90 ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL - ( MIN ( 90 ) ) AS col0
----
-90

query I rowsort
SELECT + + 37 - 92
----
-55

query I rowsort
SELECT + - 79 * 21 AS col0
----
-1659

query I rowsort
SELECT - 44 * - 91
----
4004

query I rowsort
SELECT DISTINCT + 41 * - ( 71 )
----
-2911

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT NULLIF ( - 85, NULLIF ( 64, NULLIF ( + ( + COUNT( * ) ), - 49 * - 61 ) * MIN( + 11 * 82 + + 77 ) ) )
----
-85

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT NULLIF ( - 85, NULLIF ( 64, NULLIF ( + ( + COUNT ( * ) ), - 49 * - 61 ) * MIN ( + 11 * 82 + + 77 ) ) )
----
-85

query I rowsort
SELECT ALL + 91 * 1 AS col0
----
91

query I rowsort
SELECT - - 22 - - 90 AS col0
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2880
SELECT + + NULLIF ( + 72, MAX( 53 ) * - COUNT( * ) ) DIV - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-2880
SELECT + + NULLIF ( + 72, MAX ( 53 ) * - COUNT ( * ) ) / - COUNT ( * )
----
-72

query I rowsort
SELECT - 46 * 52
----
-2392

query I rowsort
SELECT - - 61 + + 61
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT - COUNT( * ) * SUM( - 82 ) * + 7
----
574

skipif mysql # not compatible
query I rowsort label-2883
SELECT - COUNT ( * ) * SUM ( - 82 ) * + 7
----
574

query I rowsort
SELECT 60 * + - 85 * - 1 + 65
----
5165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT CAST( + COUNT( 66 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2885
SELECT CAST ( + COUNT ( 66 ) AS INTEGER )
----
1

query I rowsort
SELECT ALL - 87 * 18 AS col1
----
-1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2887
SELECT - COUNT( * ) DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-2887
SELECT - COUNT ( * ) / - 86
----
0

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

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT 49 / - 64 + + COUNT ( * ) / + COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT ALL 18 DIV + 69 * - 96 + ( 97 ) col2
----
97

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL 18 / + 69 * - 96 + ( 97 ) col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT DISTINCT + COUNT( ALL 94 ) * + 61
----
61

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT + COUNT ( ALL 94 ) * + 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT - CASE - COUNT( * ) WHEN - 52 + + 36 THEN 23 WHEN COUNT( * ) * + SUM( DISTINCT + 96 ) THEN - 47 + + 50 / 24 END + 9 * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT - CASE - COUNT ( * ) WHEN - 52 + + 36 THEN 23 WHEN COUNT ( * ) * + SUM ( DISTINCT + 96 ) THEN - 47 + + 50 / 24 END + 9 * + 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2892
SELECT ALL + 21 * + 87 * CASE COUNT( - 93 ) WHEN - 48 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 57 END + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL + 21 * + 87 * CASE COUNT ( - 93 ) WHEN - 48 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 57 END + 5 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 88 * - - 70
----
6160

query I rowsort
SELECT - 64 + - - 88 * 87 AS col2
----
7592

query I rowsort
SELECT ALL - 25 * + - 22
----
550

query I rowsort
SELECT DISTINCT 36 * - ( + 69 ) / CASE - 9 WHEN + 93 THEN 66 ELSE NULL END + ( 48 )
----
NULL

query I rowsort
SELECT DISTINCT 5 * + ( + 13 ) + + 16
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2899
SELECT ALL - CAST( + SUM( - 59 ) AS SIGNED ) * ( 18 - 15 ) + 77 * 16 AS col2
----
1409

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - CAST ( + SUM ( - 59 ) AS INTEGER ) * ( 18 - 15 ) + 77 * 16 AS col2
----
1409

query I rowsort
SELECT NULLIF ( 28, - 79 * 48 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2901
SELECT - 46 * - - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT COALESCE ( - CAST( + 32 AS SIGNED ), 87, 94 + - 24 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-2902
SELECT COALESCE ( - CAST ( + 32 AS INTEGER ), 87, 94 + - 24 ) AS col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2903
SELECT ALL 48 * 32 * - ( COUNT( * ) ) + 79 DIV COUNT( * ) AS col2
----
-1457

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL 48 * 32 * - ( COUNT ( * ) ) + 79 / COUNT ( * ) AS col2
----
-1457

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + NULLIF ( - - NULLIF ( 65, 20 * + COUNT( * ) + NULLIF ( 67, + 77 - + 13 ) ), + ( 53 ) )
----
65

skipif mysql # not compatible
query I rowsort label-2904
SELECT + NULLIF ( - - NULLIF ( 65, 20 * + COUNT ( * ) + NULLIF ( 67, + 77 - + 13 ) ), + ( 53 ) )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT ALL - MAX( ALL + CAST( - 33 AS SIGNED ) ) * 57 - - 10 AS col2
----
1891

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - MAX ( ALL + CAST ( - 33 AS INTEGER ) ) * 57 - - 10 AS col2
----
1891

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2906
SELECT ALL + MAX( ALL + + ( 56 ) ) * + 91 - COALESCE ( + 33 + - 61, 65 DIV - 56 + NULLIF ( 0, - 13 + - MAX( ALL - 24 ) ), - 18 * 76 )
----
5124

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL + MAX ( ALL + + ( 56 ) ) * + 91 - COALESCE ( + 33 + - 61, 65 / - 56 + NULLIF ( 0, - 13 + - MAX ( ALL - 24 ) ), - 18 * 76 )
----
5124

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT - ( + + COALESCE ( - 88, - COUNT( * ) * ( + 59 ), 78 ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2907
SELECT - ( + + COALESCE ( - 88, - COUNT ( * ) * ( + 59 ), 78 ) ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT - 63 * 16 * - MIN( 26 * 8 ) - + 67 AS col2
----
209597

skipif mysql # not compatible
query I rowsort label-2908
SELECT - 63 * 16 * - MIN ( 26 * 8 ) - + 67 AS col2
----
209597

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + - 69 * + 29 * + COUNT( * ) - 58 AS col2
----
-2059

skipif mysql # not compatible
query I rowsort label-2909
SELECT + - 69 * + 29 * + COUNT ( * ) - 58 AS col2
----
-2059

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL + COUNT( - ( 76 ) ) * 2 col2
----
2

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL + COUNT ( - ( 76 ) ) * 2 col2
----
2

query I rowsort
SELECT - - NULLIF ( 66, + 94 + + 34 / 94 )
----
66

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

query I rowsort
SELECT ALL 61 * 90 + + 5 AS col0
----
5495

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT - COALESCE ( + 53, + COUNT( * ) - 53 ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-2914
SELECT - COALESCE ( + 53, + COUNT ( * ) - 53 ) col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT + COUNT( * ) + + COUNT( DISTINCT - 10 ) - ( + 4 ) * + 38
----
-150

skipif mysql # not compatible
query I rowsort label-2915
SELECT + COUNT ( * ) + + COUNT ( DISTINCT - 10 ) - ( + 4 ) * + 38
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT + COUNT( * ) * 22 * - 15 AS col1
----
-330

skipif mysql # not compatible
query I rowsort label-2916
SELECT + COUNT ( * ) * 22 * - 15 AS col1
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT - COUNT( DISTINCT - 85 ) + + 61
----
60

skipif mysql # not compatible
query I rowsort label-2917
SELECT - COUNT ( DISTINCT - 85 ) + + 61
----
60

query I rowsort
SELECT - 28 - + 73 * 13 AS col0
----
-977

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT DISTINCT - 70 * + + CAST( - 80 AS SIGNED ) * + 93 - + CASE 54 WHEN + 14 THEN + 21 WHEN 49 / 39 + 36 THEN 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT - 70 * + + CAST ( - 80 AS INTEGER ) * + 93 - + CASE 54 WHEN + 14 THEN + 21 WHEN 49 / 39 + 36 THEN 10 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2920
SELECT DISTINCT - CASE + 3 WHEN + 70 DIV 21 THEN ( 34 ) END AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT - CASE + 3 WHEN + 70 / 21 THEN ( 34 ) END AS col2
----
-34

query I rowsort
SELECT - 85 + - + 62
----
-147

query I rowsort
SELECT + 94 + + 71
----
165

query I rowsort
SELECT + 8 + 39 * + 46
----
1802

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT MAX( ALL 4 ) + - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2924
SELECT MAX ( ALL 4 ) + - COUNT ( * ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT ( COUNT( * ) ) * - 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2925
SELECT ( COUNT ( * ) ) * - 7 AS col0
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL COUNT( * ) + 9 - + 14
----
-4

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL COUNT ( * ) + 9 - + 14
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2928
SELECT DISTINCT 14 * + ( 99 ) + COALESCE ( 77 + + ( ( CAST( 67 AS SIGNED ) ) + - COUNT( * ) ), + AVG ( DISTINCT + 84 ) DIV 76 ) AS col2
----
1529

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT 14 * + ( 99 ) + COALESCE ( 77 + + ( ( CAST ( 67 AS INTEGER ) ) + - COUNT ( * ) ), + AVG ( DISTINCT + 84 ) / 76 ) AS col2
----
1529

query I rowsort
SELECT ALL 0 + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT DISTINCT - 83 + - SUM( DISTINCT + 62 ) + + 49 * 67
----
3138

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT - 83 + - SUM ( DISTINCT + 62 ) + + 49 * 67
----
3138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2931
SELECT ALL + COALESCE ( - 7, 26 + - 73, + 75 + SUM( 64 ) ) + COUNT( * ) * + NULLIF ( 61 DIV - 57 + 31, + 83 * 30 )
----
23

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL + COALESCE ( - 7, 26 + - 73, + 75 + SUM ( 64 ) ) + COUNT ( * ) * + NULLIF ( 61 / - 57 + 31, + 83 * 30 )
----
23

query II rowsort
SELECT 6 col2, - 56 * + 18
----
6
-1008

query I rowsort
SELECT ALL 53 + + 23 AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2934
SELECT DISTINCT + MAX( DISTINCT + 46 ) + 62 - - 15 * 1 DIV 30 col2
----
108

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT + MAX ( DISTINCT + 46 ) + 62 - - 15 * 1 / 30 col2
----
108

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2936
SELECT + 10, - COALESCE ( + 20, 39, CASE - 24 WHEN + MAX( - 70 ) THEN NULL WHEN 83 + - 4 THEN NULL WHEN 12 - 94 THEN - ( + CAST( NULL AS SIGNED ) ) + + 57 DIV CAST( NULL AS SIGNED ) ELSE - 14 + COUNT( - 45 - - 12 ) END + 80 ) + - 59 AS col0
----
10
-79

skipif mysql # not compatible
query II rowsort label-2936
SELECT + 10, - COALESCE ( + 20, 39, CASE - 24 WHEN + MAX ( - 70 ) THEN NULL WHEN 83 + - 4 THEN NULL WHEN 12 - 94 THEN - ( + CAST ( NULL AS INTEGER ) ) + + 57 / CAST ( NULL AS INTEGER ) ELSE - 14 + COUNT ( - 45 - - 12 ) END + 80 ) + - 59 AS col0
----
10
-79

query I rowsort
SELECT ALL + 66 + + 16
----
82

query I rowsort
SELECT 89 * 18 * - 35 AS col2
----
-56070

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT ALL + 57 DIV 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + 57 / 53 AS col0
----
1

query II rowsort
SELECT ALL - 69, 84 AS col2
----
-69
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT 8 DIV - + 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2941
SELECT 8 / - + 25 AS col2
----
0

query I rowsort
SELECT 14 * + 8
----
112

query I rowsort
SELECT ALL - ( + - 56 ) - - - 85 AS col1
----
-29

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

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

query I rowsort
SELECT DISTINCT + 39 * + - 41
----
-1599

query I rowsort
SELECT 4 * + - 70 AS col0
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT - COUNT( * ) * + 44 + + - 26
----
-70

skipif mysql # not compatible
query I rowsort label-2947
SELECT - COUNT ( * ) * + 44 + + - 26
----
-70

query II rowsort
SELECT + 80 AS col1, 88
----
80
88

query I rowsort
SELECT NULLIF ( + - NULLIF ( - + 44, - 96 ), ( - 7 ) ) + + 60
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT - COALESCE ( + 57, 78 + NULLIF ( + 66, + SUM( 15 ) / 16 ) ) * 50
----
-2850

skipif mysql # not compatible
query I rowsort label-2950
SELECT - COALESCE ( + 57, 78 + NULLIF ( + 66, + SUM ( 15 ) / 16 ) ) * 50
----
-2850

query II rowsort
SELECT ALL 92, 23 AS col0
----
92
23

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - NULLIF ( + - 73, 7 ), 47 )
----
73

query II rowsort
SELECT 4 AS col0, COALESCE ( - - 46, - 87 * 26, - 81 )
----
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL ( - 72 ) + - + COUNT( * ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL ( - 72 ) + - + COUNT ( * ) col0
----
-73

query II rowsort
SELECT - - 7, + 94 AS col2
----
7
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2957
SELECT - 49 DIV 32 - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2957
SELECT - 49 / 32 - - COUNT ( * )
----
0

query I rowsort
SELECT 66 * 67 AS col1
----
4422

query II rowsort
SELECT - 71 AS col1, + 32 * - 8
----
-71
-256

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

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

query I rowsort
SELECT ALL COALESCE ( - 15, + 69 ) + 76 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT + 72 - 6 * + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-2962
SELECT + 72 - 6 * + COUNT ( * )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2963
SELECT ALL 16 + + - 65 DIV - + 33
----
17

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL 16 + + - 65 / - + 33
----
17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT ALL + 59 + - - 9 DIV - 86 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL + 59 + - - 9 / - 86 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2966
SELECT ALL 83 + - COUNT( * ) - + CAST( + 87 AS SIGNED ) DIV - CAST( - 8 DIV - 38 + + 50 AS SIGNED ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL 83 + - COUNT ( * ) - + CAST ( + 87 AS INTEGER ) / - CAST ( - 8 / - 38 + + 50 AS INTEGER ) AS col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2967
SELECT DISTINCT NULLIF ( 77, + 78 * - 61 + - COALESCE ( - 88 - CASE 65 + + 48 * + 4 WHEN + 3 THEN COUNT( * ) - - MAX( - 46 + + NULLIF ( 36 + - 97, 77 + 29 ) * + 83 ) WHEN 10 THEN NULL END, 62 * + NULLIF ( + 93, 30 ), 4 DIV - NULLIF ( - 61, + 23 * 47 ) ) DIV + ( 24 ) + 16 ) DIV 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT NULLIF ( 77, + 78 * - 61 + - COALESCE ( - 88 - CASE 65 + + 48 * + 4 WHEN + 3 THEN COUNT ( * ) - - MAX ( - 46 + + NULLIF ( 36 + - 97, 77 + 29 ) * + 83 ) WHEN 10 THEN NULL END, 62 * + NULLIF ( + 93, 30 ), 4 / - NULLIF ( - 61, + 23 * 47 ) ) / + ( 24 ) + 16 ) / 58 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT DISTINCT 12 + + + COUNT( * ) + - 56 + - - 62 * - 36 AS col1
----
-2275

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT 12 + + + COUNT ( * ) + - 56 + - - 62 * - 36 AS col1
----
-2275

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT NULLIF ( COUNT( * ), 13 ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2970
SELECT NULLIF ( COUNT ( * ), 13 ) * COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2971
SELECT ALL COALESCE ( - - NULLIF ( + 64, 54 ), 76 + + CAST( 50 AS SIGNED ) ) * - 22 + + 7
----
-1401

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL COALESCE ( - - NULLIF ( + 64, 54 ), 76 + + CAST ( 50 AS INTEGER ) ) * - 22 + + 7
----
-1401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2972
SELECT 89 + + ( - CAST( + 60 AS SIGNED ) )
----
29

skipif mysql # not compatible
query I rowsort label-2972
SELECT 89 + + ( - CAST ( + 60 AS INTEGER ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL SUM( + 43 ) * - + SUM( ALL - + 64 ) AS col0
----
2752

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL SUM ( + 43 ) * - + SUM ( ALL - + 64 ) AS col0
----
2752

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT + 53 * + - ( 52 ) + COUNT( + 96 ) + 60 * + 55 AS col1
----
545

skipif mysql # not compatible
query I rowsort label-2974
SELECT + 53 * + - ( 52 ) + COUNT ( + 96 ) + 60 * + 55 AS col1
----
545

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT SUM( ( - 52 ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-2976
SELECT SUM ( ( - 52 ) ) AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT 71 DIV - + 38 + - 17 * + + 48 AS col2
----
-817

skipif mysql # not compatible
query I rowsort label-2977
SELECT 71 / - + 38 + - 17 * + + 48 AS col2
----
-817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN + 0 * + COALESCE ( 53, - 19 ) * 18 + 14 THEN + 83 + 55 * 66 WHEN + 7 + - 43 * COUNT( * ) THEN NULL WHEN 19 / - 63 THEN 95 ELSE NULL END * - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN + 0 * + COALESCE ( 53, - 19 ) * 18 + 14 THEN + 83 + 55 * 66 WHEN + 7 + - 43 * COUNT ( * ) THEN NULL WHEN 19 / - 63 THEN 95 ELSE NULL END * - 20 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2979
SELECT DISTINCT CASE + - CAST( NULL AS SIGNED ) WHEN - - ( + + 31 ) THEN NULL WHEN + 74 THEN NULL ELSE - 2 END * 60
----
-120

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT CASE + - CAST ( NULL AS INTEGER ) WHEN - - ( + + 31 ) THEN NULL WHEN + 74 THEN NULL ELSE - 2 END * 60
----
-120

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

skipif mysql # not compatible
query I rowsort label-2980
SELECT - 14 * - 98 + - COUNT ( * ) / - COUNT ( * )
----
1373

query I rowsort
SELECT ALL + 35 - - - NULLIF ( 20, 21 + + 40 * 73 ) AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2982
SELECT CAST( NULL AS SIGNED ) * 52 AS col1, - 31 AS col1
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-2982
SELECT CAST ( NULL AS INTEGER ) * 52 AS col1, - 31 AS col1
----
NULL
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-2983
SELECT 49 * - 2, 63 DIV 83 * + 70 AS col1
----
-98
0

skipif mysql # not compatible
query II rowsort label-2983
SELECT 49 * - 2, 63 / 83 * + 70 AS col1
----
-98
0

query I rowsort
SELECT + - 50 + + + 17 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - + 75 * COUNT( * ) - + + 59 AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-2985
SELECT - + 75 * COUNT ( * ) - + + 59 AS col2
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2986
SELECT DISTINCT + - COALESCE ( - CAST( NULL AS SIGNED ), + + COUNT( * ) ) * + COUNT( * )
----
-1

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

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

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT 19 / + COUNT ( * ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL + 95 + - + ( - COUNT( * ) )
----
96

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL + 95 + - + ( - COUNT ( * ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL - ( - + ( - - CASE 97 WHEN - COUNT( * ) * - 40 THEN 74 * - COUNT( * ) + - 91 * MIN( ALL 11 + ( - 64 + + 33 ) ) WHEN 91 THEN NULL END ) ) * 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL - ( - + ( - - CASE 97 WHEN - COUNT ( * ) * - 40 THEN 74 * - COUNT ( * ) + - 91 * MIN ( ALL 11 + ( - 64 + + 33 ) ) WHEN 91 THEN NULL END ) ) * 78 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - + 25 + + 95 AS col0
----
70

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

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

query I rowsort
SELECT - 20 * ( - + CASE + + 75 WHEN 38 THEN + 18 WHEN + 65 THEN 36 ELSE - ( - 32 ) + 14 END ) AS col2
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ALL + - 21 + - ( NULLIF ( + + 4, 85 * ( COUNT( * ) ) ) )
----
-25

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL + - 21 + - ( NULLIF ( + + 4, 85 * ( COUNT ( * ) ) ) )
----
-25

query I rowsort
SELECT - + 23 + 77
----
54

query I rowsort
SELECT DISTINCT + + 96 + 86 + + 10 + + + 30
----
222

query I rowsort
SELECT - - 48 + + 34 AS col1
----
82

query I rowsort
SELECT ALL + - ( + + 32 ) + - 36 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT - + MAX( ALL + 84 ) + + + ( NULLIF ( 24, 97 ) ) - - 39
----
-21

skipif mysql # not compatible
query I rowsort label-2999
SELECT - + MAX ( ALL + 84 ) + + + ( NULLIF ( 24, 97 ) ) - - 39
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3000
SELECT + + 68 - + 98 AS col2, ( + + 93 ) * 77 - COUNT( * ) * 87 AS col2
----
-30
7074

skipif mysql # not compatible
query II rowsort label-3000
SELECT + + 68 - + 98 AS col2, ( + + 93 ) * 77 - COUNT ( * ) * 87 AS col2
----
-30
7074

query I rowsort
SELECT ALL + ( + 33 ) AS col0
----
33

query I rowsort
SELECT - - 99 + NULLIF ( + 45, + 83 )
----
144

query I rowsort
SELECT ALL 9 + ( + 55 ) col2
----
64

query I rowsort
SELECT ALL + NULLIF ( 46, - ( - ( - ( 47 ) ) ) )
----
46

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

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

query II rowsort
SELECT - 92 + - + 25 AS col0, + 5 AS col2
----
-117
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT DISTINCT COALESCE ( + 97, - 24 * ( - + COUNT( * ) ) ) * 56 AS col1
----
5432

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT COALESCE ( + 97, - 24 * ( - + COUNT ( * ) ) ) * 56 AS col1
----
5432

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL NULLIF ( - - MIN( - + 85 ), 22 )
----
-85

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL NULLIF ( - - MIN ( - + 85 ), 22 )
----
-85

query I rowsort
SELECT + 41 + - 83
----
-42

query I rowsort
SELECT ALL + 66 - + ( + + 49 ) + + 22 * - 4 + + 96 AS col2
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-3012
SELECT 74 AS col0, 1 * + + 62 DIV - 40
----
74
-1

skipif mysql # not compatible
query II rowsort label-3012
SELECT 74 AS col0, 1 * + + 62 / - 40
----
74
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT DISTINCT COUNT( - ( + 41 ) ) - + 55 * ( + 89 ) * 47
----
-230064

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT COUNT ( - ( + 41 ) ) - + 55 * ( + 89 ) * 47
----
-230064

query I rowsort
SELECT DISTINCT + COALESCE ( - 10, + + 66 * 12 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3015
SELECT ALL + 96 DIV - 75 - - COUNT( * ) * 72 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL + 96 / - 75 - - COUNT ( * ) * 72 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT ( + NULLIF ( + 25, COUNT( * ) * 3 * 3 ) )
----
25

skipif mysql # not compatible
query I rowsort label-3016
SELECT ( + NULLIF ( + 25, COUNT ( * ) * 3 * 3 ) )
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-3017
SELECT ALL + 53 AS col1, 25 DIV - + 6 + + + 89 col0
----
53
85

skipif mysql # not compatible
query II rowsort label-3017
SELECT ALL + 53 AS col1, 25 / - + 6 + + + 89 col0
----
53
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3018
SELECT + 75 DIV - - COALESCE ( - 10, - COALESCE ( + 89, + 61 + - ( COUNT( * ) - + ( - 38 + 84 ) ) * COUNT( * ) ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3018
SELECT + 75 / - - COALESCE ( - 10, - COALESCE ( + 89, + 61 + - ( COUNT ( * ) - + ( - 38 + 84 ) ) * COUNT ( * ) ) ) AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3019
SELECT ALL 87 DIV + - 86 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL 87 / + - 86 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3020
SELECT - ( + + 21 ) * 33 + COUNT( * ) - + + ( CAST( CAST( 60 AS SIGNED ) AS SIGNED ) )
----
-752

skipif mysql # not compatible
query I rowsort label-3020
SELECT - ( + + 21 ) * 33 + COUNT ( * ) - + + ( CAST ( CAST ( 60 AS INTEGER ) AS INTEGER ) )
----
-752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT ( - CASE CASE - CAST( NULL AS SIGNED ) WHEN 64 + + 97 THEN NULL ELSE 18 END WHEN - ( - 31 ) THEN - 86 / 18 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT ( - CASE CASE - CAST ( NULL AS INTEGER ) WHEN 64 + + 97 THEN NULL ELSE 18 END WHEN - ( - 31 ) THEN - 86 / 18 ELSE NULL END ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT + COALESCE ( - CAST( + - 71 AS SIGNED ), - 50, - - 96 + - 46, - 29 - ( ( + SUM( ALL 81 ) ) ) * COALESCE ( 31 + + 97, 28 + 79 * SUM( 37 * 59 ), 69 + + 24 ) ) * - 67 AS col1
----
-4757

skipif mysql # not compatible
query I rowsort label-3023
SELECT + COALESCE ( - CAST ( + - 71 AS INTEGER ), - 50, - - 96 + - 46, - 29 - ( ( + SUM ( ALL 81 ) ) ) * COALESCE ( 31 + + 97, 28 + 79 * SUM ( 37 * 59 ), 69 + + 24 ) ) * - 67 AS col1
----
-4757

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

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL CAST ( NULL AS INTEGER ) * + NULLIF ( + COUNT ( * ), - ( + - COUNT ( * ) ) ) / - 13
----
NULL

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

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

query I rowsort
SELECT + + 21 - 84 AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT + 38 * CASE + 38 WHEN + ( - 32 ) * + CASE - 61 WHEN + SUM( DISTINCT 94 ) * + 22 THEN + 52 WHEN 83 + - 24 * + 12 THEN + 30 END THEN NULLIF ( + 7, - ( - 98 ) + CAST( NULL AS SIGNED ) ) * - 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT + 38 * CASE + 38 WHEN + ( - 32 ) * + CASE - 61 WHEN + SUM ( DISTINCT 94 ) * + 22 THEN + 52 WHEN 83 + - 24 * + 12 THEN + 30 END THEN NULLIF ( + 7, - ( - 98 ) + CAST ( NULL AS INTEGER ) ) * - 43 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3028
SELECT DISTINCT + 27 * - 57 + + 96 AS col2, COUNT( DISTINCT + 11 )
----
-1443
1

skipif mysql # not compatible
query II rowsort label-3028
SELECT DISTINCT + 27 * - 57 + + 96 AS col2, COUNT ( DISTINCT + 11 )
----
-1443
1

query I rowsort
SELECT ALL COALESCE ( + 36, + 67 ) * + 46 AS col1
----
1656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3030
SELECT + + 69 / + - COALESCE ( 39, + + 45 - + NULLIF ( 41, COUNT( * ) ) ) - CASE 10 WHEN 94 THEN - CAST( MAX( - 34 ) AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT + + 69 / + - COALESCE ( 39, + + 45 - + NULLIF ( 41, COUNT ( * ) ) ) - CASE 10 WHEN 94 THEN - CAST ( MAX ( - 34 ) AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3031
SELECT + CASE + CAST( + + 71 AS SIGNED ) WHEN 24 THEN 74 END * 27 + 38 / 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT + CASE + CAST ( + + 71 AS INTEGER ) WHEN 24 THEN 74 END * 27 + 38 / 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3032
SELECT + 40 DIV - 78 * - + CASE - 46 WHEN + 25 DIV COUNT( * ) + ( 90 - + 21 * 71 ) THEN NULL WHEN - COUNT( * ) * CASE AVG ( 32 ) * - COALESCE ( 8, - 0 - - 49 ) WHEN SUM( ALL 96 ) + 8 THEN 22 END + - ( COUNT( * ) ) THEN 76 + - 96 ELSE 52 * 96 + - 68 END
----
0

skipif mysql # not compatible
query I rowsort label-3032
SELECT + 40 / - 78 * - + CASE - 46 WHEN + 25 / COUNT ( * ) + ( 90 - + 21 * 71 ) THEN NULL WHEN - COUNT ( * ) * CASE AVG ( 32 ) * - COALESCE ( 8, - 0 - - 49 ) WHEN SUM ( ALL 96 ) + 8 THEN 22 END + - ( COUNT ( * ) ) THEN 76 + - 96 ELSE 52 * 96 + - 68 END
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT - 10 + - 11 + + 37 + 34 DIV + + COALESCE ( 75, 82 * 49 )
----
16

skipif mysql # not compatible
query I rowsort label-3033
SELECT - 10 + - 11 + + 37 + 34 / + + COALESCE ( 75, 82 * 49 )
----
16

query I rowsort
SELECT DISTINCT CASE - 33 WHEN - 69 * - 56 THEN - - AVG ( ALL - 49 ) END
----
NULL

query I rowsort
SELECT ALL + 83 * 30 + + ( - 58 ) + 11
----
2443

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT COALESCE ( + COUNT( * ), + - 31 * + 51 + - 15, 76 + 87 ) + - 88 col0
----
-87

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT COALESCE ( + COUNT ( * ), + - 31 * + 51 + - 15, 76 + 87 ) + - 88 col0
----
-87

query I rowsort
SELECT - - 62 * ( + 45 )
----
2790

query II rowsort
SELECT 95, 47 AS col0
----
95
47

query II rowsort
SELECT - 38, 25 AS col2
----
-38
25

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3041
SELECT 3 AS col1, + MIN( + 88 )
----
3
88

skipif mysql # not compatible
query II rowsort label-3041
SELECT 3 AS col1, + MIN ( + 88 )
----
3
88

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

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

query II rowsort
SELECT 46, 22 AS col1
----
46
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3045
SELECT DISTINCT CASE + CAST( - 6 AS DECIMAL ) WHEN + COUNT( * ) - COUNT( * ) / - CAST( - COUNT( * ) AS SIGNED ) - - 94 * - 42 THEN COALESCE ( 7, - ( - COUNT( * ) ) ) * 45 WHEN - 83 * + 32 THEN NULLIF ( 81, - 93 ) WHEN - 25 + + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT CASE + CAST ( - 6 AS REAL ) WHEN + COUNT ( * ) - COUNT ( * ) / - CAST ( - COUNT ( * ) AS INTEGER ) - - 94 * - 42 THEN COALESCE ( 7, - ( - COUNT ( * ) ) ) * 45 WHEN - 83 * + 32 THEN NULLIF ( 81, - 93 ) WHEN - 25 + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3046
SELECT ALL - CAST( NULL AS SIGNED ) - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL - CAST ( NULL AS INTEGER ) - 6
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3047
SELECT - 99 * + CAST( - 51 AS SIGNED ) col1
----
5049

skipif mysql # not compatible
query I rowsort label-3047
SELECT - 99 * + CAST ( - 51 AS INTEGER ) col1
----
5049

query I rowsort
SELECT - 75 - + 98 AS col1
----
-173

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT - 63 * + - COUNT( - 97 ) * - 31 + + 35
----
-1918

skipif mysql # not compatible
query I rowsort label-3050
SELECT - 63 * + - COUNT ( - 97 ) * - 31 + + 35
----
-1918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3051
SELECT - 22 + 56, + CASE CASE - CAST( NULL AS SIGNED ) WHEN - - 40 THEN 73 DIV COALESCE ( - 0, 44 DIV 11 ) ELSE NULL END WHEN + 3 THEN NULL ELSE + 24 DIV - 88 END + CASE - 40 WHEN COUNT( * ) THEN NULL ELSE + 69 END AS col2
----
34
69

skipif mysql # not compatible
query II rowsort label-3051
SELECT - 22 + 56, + CASE CASE - CAST ( NULL AS INTEGER ) WHEN - - 40 THEN 73 / COALESCE ( - 0, 44 / 11 ) ELSE NULL END WHEN + 3 THEN NULL ELSE + 24 / - 88 END + CASE - 40 WHEN COUNT ( * ) THEN NULL ELSE + 69 END AS col2
----
34
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3052
SELECT - 69 DIV + ( + - CASE COALESCE ( - 38, - 13 * COUNT( * ) ) WHEN - 25 - ( 64 + + 26 * + 99 ) * ( - 16 ) THEN NULL ELSE + 29 - 55 END ) - + 12
----
-14

skipif mysql # not compatible
query I rowsort label-3052
SELECT - 69 / + ( + - CASE COALESCE ( - 38, - 13 * COUNT ( * ) ) WHEN - 25 - ( 64 + + 26 * + 99 ) * ( - 16 ) THEN NULL ELSE + 29 - 55 END ) - + 12
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-3053
SELECT 52 * + ( 59 ) * - - 16 AS col1, ( COUNT( * ) )
----
49088
1

skipif mysql # not compatible
query II rowsort label-3053
SELECT 52 * + ( 59 ) * - - 16 AS col1, ( COUNT ( * ) )
----
49088
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT 23 + - 20 - - + COUNT( * ) col0
----
4

skipif mysql # not compatible
query I rowsort label-3055
SELECT 23 + - 20 - - + COUNT ( * ) col0
----
4

query I rowsort
SELECT - 6 * 17 + + 91
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3057
SELECT DISTINCT - COUNT( * ) * + - MAX( ALL + - 93 ) DIV - + 96 + + 67 * 33 * - MIN( + ( + 68 ) ) - - 97 DIV + ( - 19 )
----
-150353

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT - COUNT ( * ) * + - MAX ( ALL + - 93 ) / - + 96 + + 67 * 33 * - MIN ( + ( + 68 ) ) - - 97 / + ( - 19 )
----
-150353

query I rowsort
SELECT ALL + 63 + 76 * + + 7
----
595

query II rowsort
SELECT ALL - - 53 AS col1, + ( + 79 ) * 85 + + - ( - 86 ) + 14 * 53
----
53
7543

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL - NULLIF ( + + 56, - - 11 + 37 * 34 * - + COUNT( * ) ) + - COUNT( * ) * + MAX( ALL 16 )
----
-72

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - NULLIF ( + + 56, - - 11 + 37 * 34 * - + COUNT ( * ) ) + - COUNT ( * ) * + MAX ( ALL 16 )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT DISTINCT - + 16 + - NULLIF ( CAST( 69 AS SIGNED ), + ( + 76 ) ) + - 71 * - 96
----
6731

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT - + 16 + - NULLIF ( CAST ( 69 AS INTEGER ), + ( + 76 ) ) + - 71 * - 96
----
6731

query I rowsort
SELECT ALL + 73 + 10
----
83

query I rowsort
SELECT 95 + + 67
----
162

query II rowsort
SELECT ALL - + 19, 7 + + 75 AS col2
----
-19
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3065
SELECT COALESCE ( + + COUNT( * ), + + 58, + - 84 ) DIV + COUNT( * ) + + 68 * 8 AS col1
----
545

skipif mysql # not compatible
query I rowsort label-3065
SELECT COALESCE ( + + COUNT ( * ), + + 58, + - 84 ) / + COUNT ( * ) + + 68 * 8 AS col1
----
545

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

skipif mysql # not compatible
query I rowsort label-3066
SELECT - 87 * + COUNT ( * ) + + + 45 AS col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3067
SELECT DISTINCT 37 DIV - - 70
----
0

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT 37 / - - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT ALL 42 + MIN( - - 52 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL 42 + MIN ( - - 52 ) AS col1
----
94

query II rowsort
SELECT + 28 AS col2, + 65
----
28
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL - 52 + - COUNT( - + 91 ) + COUNT( * ) + + - 97 * - + 69 * + 91
----
609011

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL - 52 + - COUNT ( - + 91 ) + COUNT ( * ) + + - 97 * - + 69 * + 91
----
609011

query I rowsort
SELECT + ( 68 ) * + 62 * 86 + 23 AS col2
----
362599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT 20 + - CAST( NULL AS SIGNED ) + - 3 + + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT 20 + - CAST ( NULL AS INTEGER ) + - 3 + + 76 AS col2
----
NULL

query I rowsort
SELECT - 27 + - 68
----
-95

query I rowsort
SELECT NULLIF ( - + 92, - 77 * 54 ) * 84
----
-7728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3075
SELECT CAST( + 55 AS SIGNED ) + - + 12 + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-3075
SELECT CAST ( + 55 AS INTEGER ) + - + 12 + COUNT ( * )
----
44

query I rowsort
SELECT COALESCE ( - 9, - ( - 26 ) ) + - ( + - 3 ) col0
----
-6

query I rowsort
SELECT 24 + + 6
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT DISTINCT + ( + + 47 ) * + COUNT( * ) * - 68 AS col1
----
-3196

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT + ( + + 47 ) * + COUNT ( * ) * - 68 AS col1
----
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT DISTINCT - NULLIF ( + + 57, + COALESCE ( + 23, COUNT( * ) * + + MIN( 52 ), COUNT( * ) * 94 ) ) * 11
----
-627

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT - NULLIF ( + + 57, + COALESCE ( + 23, COUNT ( * ) * + + MIN ( 52 ), COUNT ( * ) * 94 ) ) * 11
----
-627

query I rowsort
SELECT 39 * + 50 AS col1
----
1950

query I rowsort
SELECT DISTINCT - 31 + + 86 + - 55 + - + NULLIF ( + 20, 6 + + 15 ) * 24
----
-480

query I rowsort
SELECT DISTINCT + 32 + - - 56 - - 39 AS col0
----
127

query I rowsort
SELECT ALL - 77 + + 29
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT COALESCE ( ( + + MIN( - + 50 ) ), 70 * SUM( - 5 ) + - 40 ) - 98 * + 78
----
-7694

skipif mysql # not compatible
query I rowsort label-3084
SELECT COALESCE ( ( + + MIN ( - + 50 ) ), 70 * SUM ( - 5 ) + - 40 ) - 98 * + 78
----
-7694

onlyif mysql # DIV for integer division: 
query I rowsort label-3085
SELECT + - 25 DIV 69 * 8 DIV + 67 + + 88
----
88

skipif mysql # not compatible
query I rowsort label-3085
SELECT + - 25 / 69 * 8 / + 67 + + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT + 16 + + ( 89 ) + - COUNT( * ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + 16 + + ( 89 ) + - COUNT ( * ) AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL - + 14 * - + 29 * COUNT( * ) + + 84
----
490

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - + 14 * - + 29 * COUNT ( * ) + + 84
----
490

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3088
SELECT ALL - + 51 + + 20 + + - CASE + - 91 WHEN - 20 * - 52 * CAST( + ( 13 ) AS DECIMAL ) - 98 THEN AVG ( DISTINCT - 45 ) WHEN 14 THEN CASE - ( - 91 ) WHEN + ( + MAX( ALL + 60 ) ) - 69 * 93 THEN 91 WHEN 46 THEN NULL END ELSE NULL END * 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL - + 51 + + 20 + + - CASE + - 91 WHEN - 20 * - 52 * CAST ( + ( 13 ) AS REAL ) - 98 THEN AVG ( DISTINCT - 45 ) WHEN 14 THEN CASE - ( - 91 ) WHEN + ( + MAX ( ALL + 60 ) ) - 69 * 93 THEN 91 WHEN 46 THEN NULL END ELSE NULL END * 87 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3089
SELECT 78 * - CAST( 50 AS SIGNED ) * + MAX( ALL 44 ) - + 89
----
-171689

skipif mysql # not compatible
query I rowsort label-3089
SELECT 78 * - CAST ( 50 AS INTEGER ) * + MAX ( ALL 44 ) - + 89
----
-171689

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + COALESCE ( + - 38, - COUNT( * ) )
----
-38

skipif mysql # not compatible
query I rowsort label-3090
SELECT + COALESCE ( + - 38, - COUNT ( * ) )
----
-38

query I rowsort
SELECT 89 - + 58 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT ALL - MIN( ALL - 81 ) col2
----
81

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL - MIN ( ALL - 81 ) col2
----
81

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

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

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

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL - CAST ( NULL AS REAL ) - + 81 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3095
SELECT ALL + COALESCE ( + 32, - ( COUNT( ALL + 55 ) ) ) - - COUNT( * ) + ( 29 ) * NULLIF ( - 21 DIV 24, 88 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL + COALESCE ( + 32, - ( COUNT ( ALL + 55 ) ) ) - - COUNT ( * ) + ( 29 ) * NULLIF ( - 21 / 24, 88 ) AS col1
----
33

query I rowsort
SELECT - 59 + + 45 + - + 65
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT DISTINCT + 98 DIV + + 91 col0
----
1

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT + 98 / + + 91 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3098
SELECT 35 * + 47 * COUNT( * ) + + + 99 + + 58 + + + 86 + + - 27 DIV + 43 * COALESCE ( - 68, - CAST( + 21 AS SIGNED ), 54 )
----
1888

skipif mysql # not compatible
query I rowsort label-3098
SELECT 35 * + 47 * COUNT ( * ) + + + 99 + + 58 + + + 86 + + - 27 / + 43 * COALESCE ( - 68, - CAST ( + 21 AS INTEGER ), 54 )
----
1888

onlyif mysql # DIV for integer division: 
query I rowsort label-3099
SELECT ALL 55 DIV - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL 55 / - 57 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3100
SELECT DISTINCT + 48 * 12 AS col1, + COUNT( * ) AS col0
----
576
1

skipif mysql # not compatible
query II rowsort label-3100
SELECT DISTINCT + 48 * 12 AS col1, + COUNT ( * ) AS col0
----
576
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3101
SELECT - 36 AS col1, + COALESCE ( COALESCE ( - NULLIF ( - - 44, - 32 * - 23 * + + 12 * COALESCE ( - ( COUNT( * ) ) DIV 5, 43 * + COALESCE ( - MIN( ALL 18 ), + 18, + 93 ) ) ), 91 * - 28 - - 31 * 2 ), ( + 59 ) DIV - 99 ) * 81 + + MAX( + 48 ) * + MIN( ALL + 17 ) AS col0
----
-36
-2748

skipif mysql # not compatible
query II rowsort label-3101
SELECT - 36 AS col1, + COALESCE ( COALESCE ( - NULLIF ( - - 44, - 32 * - 23 * + + 12 * COALESCE ( - ( COUNT ( * ) ) / 5, 43 * + COALESCE ( - MIN ( ALL 18 ), + 18, + 93 ) ) ), 91 * - 28 - - 31 * 2 ), ( + 59 ) / - 99 ) * 81 + + MAX ( + 48 ) * + MIN ( ALL + 17 ) AS col0
----
-36
-2748

query I rowsort
SELECT ALL CASE + 58 WHEN + 66 THEN - 70 + + + 24 END AS col0
----
NULL

query I rowsort
SELECT + 23 * - - 37
----
851

query I rowsort
SELECT + 28 * + 31 AS col0
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT ALL 10 + + + 43 - + COUNT( * ) + + + 16 * + 81 AS col2
----
1348

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL 10 + + + 43 - + COUNT ( * ) + + + 16 * + 81 AS col2
----
1348

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT + 16 - - COUNT( * ) + + MAX( DISTINCT 84 ) - + 9 + MAX( DISTINCT + 77 )
----
169

skipif mysql # not compatible
query I rowsort label-3106
SELECT + 16 - - COUNT ( * ) + + MAX ( DISTINCT 84 ) - + 9 + MAX ( DISTINCT + 77 )
----
169

query I rowsort
SELECT DISTINCT 40 + 33 AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3108
SELECT ALL 4 DIV + - 58
----
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL 4 / + - 58
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3109
SELECT - CASE + 98 WHEN + - 5 THEN - CAST( + 23 AS SIGNED ) * - - 2 WHEN + 86 THEN + - 48 + + 40 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3109
SELECT - CASE + 98 WHEN + - 5 THEN - CAST ( + 23 AS INTEGER ) * - - 2 WHEN + 86 THEN + - 48 + + 40 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT - NULLIF ( - + NULLIF ( 84, - - 52 + ( + - MAX( - 73 ) ) ), + 55 )
----
84

skipif mysql # not compatible
query I rowsort label-3110
SELECT - NULLIF ( - + NULLIF ( 84, - - 52 + ( + - MAX ( - 73 ) ) ), + 55 )
----
84

query I rowsort
SELECT - NULLIF ( - + 81, - 10 * + + 27 )
----
81

query II rowsort
SELECT 95 AS col0, + 14
----
95
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3113
SELECT ALL + 45 + 63 DIV 81
----
45

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + 45 + 63 / 81
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3114
SELECT + 33 + 67 + - 92, 45 / - - 88 + ( + + CAST( NULL AS SIGNED ) ) AS col1
----
8
NULL

skipif mysql # not compatible
query II rowsort label-3114
SELECT + 33 + 67 + - 92, 45 / - - 88 + ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
8
NULL

query I rowsort
SELECT + 62 + + - 30 AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3116
SELECT + - 35 DIV + 87 + + SUM( + 49 ) + 4 * 61, - CASE 72 WHEN 81 * 19 THEN - COUNT( * ) * COUNT( * ) + - 83 * 50 END + - 36 DIV + 40 AS col2
----
293
NULL

skipif mysql # not compatible
query II rowsort label-3116
SELECT + - 35 / + 87 + + SUM ( + 49 ) + 4 * 61, - CASE 72 WHEN 81 * 19 THEN - COUNT ( * ) * COUNT ( * ) + - 83 * 50 END + - 36 / + 40 AS col2
----
293
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL 99 * + + COUNT( * ) + + 17 + + 94 + 4 * ( - MAX( DISTINCT - 79 ) ) + - 27 + + 53 AS col2
----
552

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL 99 * + + COUNT ( * ) + + 17 + + 94 + 4 * ( - MAX ( DISTINCT - 79 ) ) + - 27 + + 53 AS col2
----
552

query I rowsort
SELECT + 71 * + 65 AS col2
----
4615

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT + + 7 + - 98 + - COUNT( + NULLIF ( 53, + - 28 + + 81 / - 18 ) ) col2
----
-92

skipif mysql # not compatible
query I rowsort label-3119
SELECT + + 7 + - 98 + - COUNT ( + NULLIF ( 53, + - 28 + + 81 / - 18 ) ) col2
----
-92

query I rowsort
SELECT DISTINCT 63 * + - 85 AS col1
----
-5355

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3121
SELECT + 28 DIV + 35 * MAX( ALL + 97 ) * 75 + + + ( 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3121
SELECT + 28 / + 35 * MAX ( ALL + 97 ) * 75 + + + ( 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT ALL COUNT( * ) * CASE 10 WHEN + 23 * + NULLIF ( - ( - 47 ), 25 * + 96 + 58 ) + 76 / - ( 36 ) THEN NULL WHEN 9 THEN 31 WHEN AVG ( DISTINCT 56 ) * 1 + + 49 * 17 THEN - 65 + - 24 * - 29 END * 31 - NULLIF ( AVG ( ALL + 34 ) - + MIN( ALL + 31 ) * 18, + MAX( ALL 11 ) + ( 94 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL COUNT ( * ) * CASE 10 WHEN + 23 * + NULLIF ( - ( - 47 ), 25 * + 96 + 58 ) + 76 / - ( 36 ) THEN NULL WHEN 9 THEN 31 WHEN AVG ( DISTINCT 56 ) * 1 + + 49 * 17 THEN - 65 + - 24 * - 29 END * 31 - NULLIF ( AVG ( ALL + 34 ) - + MIN ( ALL + 31 ) * 18, + MAX ( ALL 11 ) + ( 94 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT DISTINCT + COUNT( DISTINCT 63 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT + COUNT ( DISTINCT 63 ) col2
----
1

query I rowsort
SELECT ALL - + 38 * + - 73 - + 68 + + 46
----
2752

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

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

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

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

query I rowsort
SELECT ALL + 69 * + 94 AS col2
----
6486

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL 32 * 88 - - + COUNT( * ) * - - 47 AS col0
----
2863

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL 32 * 88 - - + COUNT ( * ) * - - 47 AS col0
----
2863

query I rowsort
SELECT + 98 * 95 - 11 - - NULLIF ( 83, 4 ) * - 70 + + 86
----
3575

query I rowsort
SELECT + NULLIF ( - - 40, + - 14 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT + - COUNT( * ) * 34 * - + 42 * - 68
----
-97104

skipif mysql # not compatible
query I rowsort label-3131
SELECT + - COUNT ( * ) * 34 * - + 42 * - 68
----
-97104

query I rowsort
SELECT ALL + NULLIF ( - 68, - 48 ) * 92
----
-6256

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL + + 2 * + CASE - COUNT( DISTINCT - 87 ) WHEN 40 * + 95 - - - ( + 94 ) * 68 THEN NULL WHEN ( 10 ) * 51 THEN + 67 * - COUNT( * ) + 95 END + - 19 / 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + + 2 * + CASE - COUNT ( DISTINCT - 87 ) WHEN 40 * + 95 - - - ( + 94 ) * 68 THEN NULL WHEN ( 10 ) * 51 THEN + 67 * - COUNT ( * ) + 95 END + - 19 / 30
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT - + COUNT( * ) + + + 36 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3136
SELECT - + COUNT ( * ) + + + 36 AS col1
----
35

query I rowsort
SELECT DISTINCT + 21 * - - 41 * - 59
----
-50799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT - 59 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT - 59 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3139
SELECT ALL + 70 * - 5 + CAST( NULL AS SIGNED ) * - 64 - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL + 70 * - 5 + CAST ( NULL AS INTEGER ) * - 64 - - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT - COUNT( * ) * + 7 + 62 + - + ( - - 1 ) * + 17 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-3140
SELECT - COUNT ( * ) * + 7 + 62 + - + ( - - 1 ) * + 17 AS col2
----
38

query I rowsort
SELECT - 40 + - 13
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT - 17 + 11 * + - CASE + ( + 64 ) WHEN + - 59 + - COALESCE ( 55, + NULLIF ( 47, - CASE 70 WHEN 26 + + 49 THEN 55 - + MIN( DISTINCT 4 - ( 51 ) ) END * + COALESCE ( 36, - COUNT( * ) * 52 ) + 19 * - CASE 75 WHEN 66 * 2 THEN NULL ELSE 33 * 64 END ) + + 30, ( + COALESCE ( + 96, 65 ) ) ) - + 62 THEN NULL ELSE - 26 END
----
269

skipif mysql # not compatible
query I rowsort label-3142
SELECT - 17 + 11 * + - CASE + ( + 64 ) WHEN + - 59 + - COALESCE ( 55, + NULLIF ( 47, - CASE 70 WHEN 26 + + 49 THEN 55 - + MIN ( DISTINCT 4 - ( 51 ) ) END * + COALESCE ( 36, - COUNT ( * ) * 52 ) + 19 * - CASE 75 WHEN 66 * 2 THEN NULL ELSE 33 * 64 END ) + + 30, ( + COALESCE ( + 96, 65 ) ) ) - + 62 THEN NULL ELSE - 26 END
----
269

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT + COUNT( * ) - 72 * 31
----
-2231

skipif mysql # not compatible
query I rowsort label-3143
SELECT + COUNT ( * ) - 72 * 31
----
-2231

query I rowsort
SELECT - ( - - 64 )
----
-64

query I rowsort
SELECT ALL 87 + - - 56 * - ( 9 ) AS col1
----
-417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3146
SELECT - 93 + - COALESCE ( CAST( NULL AS SIGNED ), - 56, - - 42 )
----
-37

skipif mysql # not compatible
query I rowsort label-3146
SELECT - 93 + - COALESCE ( CAST ( NULL AS INTEGER ), - 56, - - 42 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL - ( 76 ) + + 41 + ( - - 38 ) * - - 44 * + SUM( ALL 87 ) * + 28 AS col2
----
4072957

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL - ( 76 ) + + 41 + ( - - 38 ) * - - 44 * + SUM ( ALL 87 ) * + 28 AS col2
----
4072957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3148
SELECT ALL 63 * + COUNT( ALL - 98 ) * 4 - 17 AS col2, + 77 + CAST( + 49 AS SIGNED ) * + + 83 * 57
----
235
231896

skipif mysql # not compatible
query II rowsort label-3148
SELECT ALL 63 * + COUNT ( ALL - 98 ) * 4 - 17 AS col2, + 77 + CAST ( + 49 AS INTEGER ) * + + 83 * 57
----
235
231896

onlyif mysql # aggregate syntax: 
query II rowsort label-3149
SELECT + 69 * - SUM( + 33 ) * 55, + 2 AS col1
----
-125235
2

skipif mysql # not compatible
query II rowsort label-3149
SELECT + 69 * - SUM ( + 33 ) * 55, + 2 AS col1
----
-125235
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3150
SELECT DISTINCT CAST( - ( - COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT CAST ( - ( - COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT ALL 57 + - 24 AS col0
----
33

query I rowsort
SELECT + 63 + - 45 + - 87 * + 7 + + 36 AS col0
----
-555

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

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

query I rowsort
SELECT - 33 * - - 4 AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT + NULLIF ( + - COUNT( * ), - 27 ) + 44 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3155
SELECT + NULLIF ( + - COUNT ( * ), - 27 ) + 44 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT - NULLIF ( 6, - 28 / - 95 + - 48 * COALESCE ( - 91, - 78, + - 97, COUNT( * ) ) )
----
-6

skipif mysql # not compatible
query I rowsort label-3156
SELECT - NULLIF ( 6, - 28 / - 95 + - 48 * COALESCE ( - 91, - 78, + - 97, COUNT ( * ) ) )
----
-6

query I rowsort
SELECT + 15 + - 30 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3158
SELECT ALL 21 - + - 28 AS col2, 57 * - CASE - MAX( DISTINCT + 62 ) WHEN - 90 THEN NULL WHEN - MIN( DISTINCT + 67 ) THEN 98 ELSE NULL END col2
----
49
NULL

skipif mysql # not compatible
query II rowsort label-3158
SELECT ALL 21 - + - 28 AS col2, 57 * - CASE - MAX ( DISTINCT + 62 ) WHEN - 90 THEN NULL WHEN - MIN ( DISTINCT + 67 ) THEN 98 ELSE NULL END col2
----
49
NULL

query I rowsort
SELECT - NULLIF ( - - 96, + 3 ) col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT + + 47 + MIN( - 23 ) + 40 * + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3160
SELECT + + 47 + MIN ( - 23 ) + 40 * + COUNT ( * ) AS col0
----
64

query I rowsort
SELECT + - COALESCE ( + - 83, - 12 + 71 + - 73 ) * + 52 AS col0
----
4316

onlyif mysql # DIV for integer division: 
query I rowsort label-3162
SELECT + - 30 * - + CASE - COALESCE ( - COALESCE ( - + 48, AVG ( - + 77 ) ), 97 + + 10 ) WHEN 18 DIV 51 THEN NULL ELSE - 60 DIV + 90 + 15 DIV - 31 END + - 64
----
-64

skipif mysql # not compatible
query I rowsort label-3162
SELECT + - 30 * - + CASE - COALESCE ( - COALESCE ( - + 48, AVG ( - + 77 ) ), 97 + + 10 ) WHEN 18 / 51 THEN NULL ELSE - 60 / + 90 + 15 / - 31 END + - 64
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3163
SELECT + 5 * + 86 DIV + ( - 82 ) + - + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-3163
SELECT + 5 * + 86 / + ( - 82 ) + - + COUNT ( * )
----
-6

query I rowsort
SELECT DISTINCT - 42 * + 10 - + 14 AS col2
----
-434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3165
SELECT DISTINCT 92 * 12 DIV - CASE - + 86 WHEN - - 39 * 37 THEN + 37 DIV + 42 - ( 2 ) WHEN + NULLIF ( - 20, 6 * - ( COUNT( * ) * - 13 ) + CAST( 92 - CAST( 39 + + 63 AS SIGNED ) AS SIGNED ) ) THEN - 36 ELSE 55 + 28 * CASE - CAST( - 39 AS DECIMAL ) * 80 WHEN - 83 THEN + AVG ( - 90 ) * + 78 ELSE + MIN( + 42 ) END END
----
0

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT 92 * 12 / - CASE - + 86 WHEN - - 39 * 37 THEN + 37 / + 42 - ( 2 ) WHEN + NULLIF ( - 20, 6 * - ( COUNT ( * ) * - 13 ) + CAST ( 92 - CAST ( 39 + + 63 AS INTEGER ) AS INTEGER ) ) THEN - 36 ELSE 55 + 28 * CASE - CAST ( - 39 AS REAL ) * 80 WHEN - 83 THEN + AVG ( - 90 ) * + 78 ELSE + MIN ( + 42 ) END END
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3167
SELECT - 63 DIV - - 9 + + COUNT( * ) * + 67 DIV + - 65 + - COUNT( * ) * + + ( - COUNT( * ) )
----
-7

skipif mysql # not compatible
query I rowsort label-3167
SELECT - 63 / - - 9 + + COUNT ( * ) * + 67 / + - 65 + - COUNT ( * ) * + + ( - COUNT ( * ) )
----
-7

query I rowsort
SELECT ALL - 40 * + 20 * + 91 + - 27
----
-72827

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

query I rowsort
SELECT + 7 * - 39 + - - 65 AS col2
----
-208

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL 77 * + 24 * + COUNT( * ) AS col2
----
1848

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL 77 * + 24 * + COUNT ( * ) AS col2
----
1848

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) * + NULLIF ( COUNT( * ), 41 ) + + - MAX( - - 25 ) + - - NULLIF ( 6, 53 / - ( - 90 * 78 ) + 30 ) + - 16 + + 68 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) * + NULLIF ( COUNT ( * ), 41 ) + + - MAX ( - - 25 ) + - - NULLIF ( 6, 53 / - ( - 90 * 78 ) + 30 ) + - 16 + + 68 AS col2
----
32

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3175
SELECT 34 * - + CASE + 2 WHEN 61 * 66 * - 67 + 71 THEN - CASE - 10 WHEN - + CAST( NULL AS DECIMAL ) THEN - CASE - 36 WHEN 51 THEN 52 END + 97 WHEN + 59 / COUNT( * ) THEN NULL ELSE NULL END - 4 WHEN + 62 * + CASE 42 WHEN 23 THEN + 34 * 31 END - 42 THEN NULL END * - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT 34 * - + CASE + 2 WHEN 61 * 66 * - 67 + 71 THEN - CASE - 10 WHEN - + CAST ( NULL AS REAL ) THEN - CASE - 36 WHEN 51 THEN 52 END + 97 WHEN + 59 / COUNT ( * ) THEN NULL ELSE NULL END - 4 WHEN + 62 * + CASE 42 WHEN 23 THEN + 34 * 31 END - 42 THEN NULL END * - 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT ALL + COUNT( * ) + + + 33 / CASE + 6 WHEN + 31 * - 67 THEN - + COUNT( * ) + - + COUNT( * ) END + - + 2 * + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL + COUNT ( * ) + + + 33 / CASE + 6 WHEN + 31 * - 67 THEN - + COUNT ( * ) + - + COUNT ( * ) END + - + 2 * + 73 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL + CAST ( - 7 AS INTEGER ) + + 82
----
75

query II rowsort
SELECT + 98, 3 col2
----
98
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT 59 + + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3179
SELECT 59 + + COUNT ( * ) AS col1
----
60

query I rowsort
SELECT DISTINCT - 72 * - 53 col1
----
3816

query I rowsort
SELECT DISTINCT + 99 + 32 + + + 59 * - - 54 AS col0
----
3317

query II rowsort
SELECT 39 AS col1, 81
----
39
81

query I rowsort
SELECT 62 * - 54
----
-3348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT 32 + - - CAST( - - 32 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-3184
SELECT 32 + - - CAST ( - - 32 AS INTEGER )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3185
SELECT 68 DIV - 22
----
-3

skipif mysql # not compatible
query I rowsort label-3185
SELECT 68 / - 22
----
-3

query I rowsort
SELECT 39 * - 0 col2
----
0

query II rowsort
SELECT 20 AS col1, + 98 col2
----
20
98

query I rowsort
SELECT 48 - 83 AS col2
----
-35

query II rowsort
SELECT 63, 52 AS col2
----
63
52

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

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

query II rowsort
SELECT - - 26 AS col0, 37 + + 47 - 1
----
26
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT - AVG ( + + 75 ) + ( + CASE 83 WHEN ( - CAST( NULL AS SIGNED ) ) * - CASE CASE WHEN NULL BETWEEN NULL AND 39 THEN 69 * + 23 + + 18 END WHEN 38 + + COUNT( * ) * CAST( NULL AS SIGNED ) THEN - 86 WHEN 65 + + ( COUNT( * ) - 88 ) * 87 THEN NULL END THEN NULL WHEN ( 25 ) * 29 THEN 72 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT - AVG ( + + 75 ) + ( + CASE 83 WHEN ( - CAST ( NULL AS INTEGER ) ) * - CASE CASE WHEN NULL BETWEEN NULL AND 39 THEN 69 * + 23 + + 18 END WHEN 38 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN - 86 WHEN 65 + + ( COUNT ( * ) - 88 ) * 87 THEN NULL END THEN NULL WHEN ( 25 ) * 29 THEN 72 ELSE NULL END ) AS col2
----
NULL

query II rowsort
SELECT - - 72 AS col0, 73
----
72
73

query I rowsort
SELECT ALL + 35 * - - 83 + - - ( 98 ) * + + 58 - - 70 * + 89
----
14819

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

query I rowsort
SELECT ( - 80 ) * + 49 col0
----
-3920

query I rowsort
SELECT + 46 + + 99
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT 64 - - COUNT( DISTINCT + ( + 4 ) )
----
65

skipif mysql # not compatible
query I rowsort label-3198
SELECT 64 - - COUNT ( DISTINCT + ( + 4 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT - COALESCE ( 86, + - COUNT( DISTINCT - + 44 ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3199
SELECT - COALESCE ( 86, + - COUNT ( DISTINCT - + 44 ) ) AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-3200
SELECT - 61 DIV + CASE CASE + 94 WHEN 37 THEN 8 END WHEN - 15 THEN NULL ELSE - ( + - 25 ) + + 18 - + 78 * ( 40 ) * 74 END * - 71 + + 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3200
SELECT - 61 / + CASE CASE + 94 WHEN 37 THEN 8 END WHEN - 15 THEN NULL ELSE - ( + - 25 ) + + 18 - + 78 * ( 40 ) * 74 END * - 71 + + 78 AS col2
----
78

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3202
SELECT + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * - - 56 / + + CAST( - COUNT( * ) AS SIGNED ) + + - 24 - + + CAST( - COUNT( * ) AS SIGNED ) - CAST( NULL AS DECIMAL ) + + + 19 * + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 56 / + + CAST ( - COUNT ( * ) AS INTEGER ) + + - 24 - + + CAST ( - COUNT ( * ) AS INTEGER ) - CAST ( NULL AS REAL ) + + + 19 * + 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT COUNT( * ) + - 56 + - 79 AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT COUNT ( * ) + - 56 + - 79 AS col1
----
-134

query I rowsort
SELECT DISTINCT - 86 + 5 + + - COALESCE ( + 97, 64 * + 1 ) AS col0
----
-178

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

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

query I rowsort
SELECT ALL + 17 + 25
----
42

query I rowsort
SELECT 37 * + 67 + + 80 AS col1
----
2559

query I rowsort
SELECT 43 * + COALESCE ( 71, + NULLIF ( 10, ( 93 ) ) )
----
3053

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT DISTINCT 59 + + - COALESCE ( 32, COUNT( * ) * 79 + + 34 + COUNT( * ) * 82 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT 59 + + - COALESCE ( 32, COUNT ( * ) * 79 + + 34 + COUNT ( * ) * 82 ) AS col2
----
27

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

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

query I rowsort
SELECT 13 * + 84 + + 71
----
1163

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL - 76 + + 73 + + ( - + COUNT( * ) ) + + 61 - + COALESCE ( COUNT( * ), 16 + ( - 34 ) ) * - NULLIF ( COUNT( * ), 77 * + 87 + - ( 92 ) ) * 61
----
118

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL - 76 + + 73 + + ( - + COUNT ( * ) ) + + 61 - + COALESCE ( COUNT ( * ), 16 + ( - 34 ) ) * - NULLIF ( COUNT ( * ), 77 * + 87 + - ( 92 ) ) * 61
----
118

query I rowsort
SELECT DISTINCT 17 * - 79 AS col1
----
-1343

onlyif mysql # aggregate syntax: 
query III rowsort label-3214
SELECT DISTINCT - COUNT( * ) AS col0, + 21, - 48 + - + 11 + + 87 * - - 71 AS col2
----
-1
21
6118

skipif mysql # not compatible
query III rowsort label-3214
SELECT DISTINCT - COUNT ( * ) AS col0, + 21, - 48 + - + 11 + + 87 * - - 71 AS col2
----
-1
21
6118

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3216
SELECT 81 AS col2, - 26 * 10 + - - 84 + ( 30 ) - + ( - - CASE 82 WHEN - 27 * - 28 + 76 THEN NULL ELSE - COUNT( * ) * 56 END ) + 2 * - 44
----
81
-178

skipif mysql # not compatible
query II rowsort label-3216
SELECT 81 AS col2, - 26 * 10 + - - 84 + ( 30 ) - + ( - - CASE 82 WHEN - 27 * - 28 + 76 THEN NULL ELSE - COUNT ( * ) * 56 END ) + 2 * - 44
----
81
-178

query I rowsort
SELECT 68 + - - 83
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT 48 + COUNT( * ) + + 17
----
66

skipif mysql # not compatible
query I rowsort label-3218
SELECT 48 + COUNT ( * ) + + 17
----
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT 87 + COUNT( * ) col1
----
88

skipif mysql # not compatible
query I rowsort label-3220
SELECT 87 + COUNT ( * ) col1
----
88

query II rowsort
SELECT ALL 75, - 65 + 2 AS col0
----
75
-63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3223
SELECT + 60 * 11 + - + ( + CASE - + CAST( NULL AS DECIMAL ) WHEN + COUNT( * ) * + 58 + - 92 THEN NULL WHEN + - 42 THEN + + CAST( - ( 28 ) AS SIGNED ) ELSE 27 END ) + 17 * - COUNT( * ) AS col1
----
616

skipif mysql # not compatible
query I rowsort label-3223
SELECT + 60 * 11 + - + ( + CASE - + CAST ( NULL AS REAL ) WHEN + COUNT ( * ) * + 58 + - 92 THEN NULL WHEN + - 42 THEN + + CAST ( - ( 28 ) AS INTEGER ) ELSE 27 END ) + 17 * - COUNT ( * ) AS col1
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT - 97 * - COALESCE ( + ( 6 ), 64, 5 * + 45 * + 0 + MIN( ALL + - 2 ) )
----
582

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - 97 * - COALESCE ( + ( 6 ), 64, 5 * + 45 * + 0 + MIN ( ALL + - 2 ) )
----
582

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3225
SELECT + SUM( 45 ) * - ( + + 72 ) col1, 48 / CASE + CASE - 22 WHEN 69 THEN NULL WHEN + - 79 * + 53 + 60 THEN CAST( 12 AS DECIMAL ) END WHEN - 38 THEN - MAX( ALL - 85 ) END AS col1
----
-3240
NULL

skipif mysql # not compatible
query II rowsort label-3225
SELECT + SUM ( 45 ) * - ( + + 72 ) col1, 48 / CASE + CASE - 22 WHEN 69 THEN NULL WHEN + - 79 * + 53 + 60 THEN CAST ( 12 AS REAL ) END WHEN - 38 THEN - MAX ( ALL - 85 ) END AS col1
----
-3240
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3226
SELECT ALL - + COUNT( * ) * - ( - + 84 ) * + 1 DIV + COUNT( * ) + - 68 AS col2, + 13 + - 88 * 24 * - - 39 * MIN( DISTINCT 62 ) * + 87 - + COALESCE ( 73 + + 42, - 22 )
----
-152
-444293094

skipif mysql # not compatible
query II rowsort label-3226
SELECT ALL - + COUNT ( * ) * - ( - + 84 ) * + 1 / + COUNT ( * ) + - 68 AS col2, + 13 + - 88 * 24 * - - 39 * MIN ( DISTINCT 62 ) * + 87 - + COALESCE ( 73 + + 42, - 22 )
----
-152
-444293094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3227
SELECT + 87 + + 82 + - COUNT( * ) + 69 * - 14 * - + COUNT( * ) * + - 74 / + 27 / 14 * - - CASE COUNT( * ) WHEN + COUNT( * ) * + 2 THEN - ( CASE + CAST( - 37 AS SIGNED ) WHEN - 9 * 10 THEN + 49 END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT + 87 + + 82 + - COUNT ( * ) + 69 * - 14 * - + COUNT ( * ) * + - 74 / + 27 / 14 * - - CASE COUNT ( * ) WHEN + COUNT ( * ) * + 2 THEN - ( CASE + CAST ( - 37 AS INTEGER ) WHEN - 9 * 10 THEN + 49 END ) END
----
NULL

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

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

query I rowsort
SELECT + 0 + + - 37 + - 80 + 59 AS col2
----
-58

query II rowsort
SELECT ALL 70 col0, - 29 AS col2
----
70
-29

query I rowsort
SELECT 79 + - 13 + - 21 + - 59 + 96 col1
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3232
SELECT 9 DIV 57 * - ( 18 ) * + - 92 * - CAST( - 39 AS SIGNED ) * 47 + - 83 - - 53 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3232
SELECT 9 / 57 * - ( 18 ) * + - 92 * - CAST ( - 39 AS INTEGER ) * 47 + - 83 - - 53 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL + CASE 40 WHEN - + 61 * + 19 + 79 * 86 THEN - 36 + - 69 + + + 63 * - COUNT( DISTINCT + 28 ) + + 99 * 63 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL + CASE 40 WHEN - + 61 * + 19 + 79 * 86 THEN - 36 + - 69 + + + 63 * - COUNT ( DISTINCT + 28 ) + + 99 * 63 END col1
----
NULL

query I rowsort
SELECT 58 * - + 8 AS col2
----
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT ALL + 32 * - 54 * - COUNT( * )
----
1728

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL + 32 * - 54 * - COUNT ( * )
----
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT ALL + 92 * + CAST( - 97 AS SIGNED ) + 73
----
-8851

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL + 92 * + CAST ( - 97 AS INTEGER ) + 73
----
-8851

onlyif mysql # aggregate syntax: 
query II rowsort label-3237
SELECT DISTINCT - 7, COALESCE ( 7, + COUNT( * ), - - 52 ) col0
----
-7
7

skipif mysql # not compatible
query II rowsort label-3237
SELECT DISTINCT - 7, COALESCE ( 7, + COUNT ( * ), - - 52 ) col0
----
-7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL + 21 * ( 32 ) + - CAST( NULL AS SIGNED ) * - + 98
----
NULL

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

query I rowsort
SELECT DISTINCT + - 3 * 45 + - 37 AS col2
----
-172

query I rowsort
SELECT - 4 * - + 94 + - 97 AS col2
----
279

query I rowsort
SELECT + - 2 * 11 AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3242
SELECT ALL - ( - CAST( NULLIF ( 93, 58 - + 54 ) AS SIGNED ) ) * 64 + - - 79 AS col2
----
6031

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL - ( - CAST ( NULLIF ( 93, 58 - + 54 ) AS INTEGER ) ) * 64 + - - 79 AS col2
----
6031

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT DISTINCT + 28 * - 33 + + - MAX( + - CASE + + 31 WHEN 32 THEN NULL ELSE - + 68 * 66 END ) AS col1
----
-5412

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT + 28 * - 33 + + - MAX ( + - CASE + + 31 WHEN 32 THEN NULL ELSE - + 68 * 66 END ) AS col1
----
-5412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3244
SELECT ALL - CASE - 14 WHEN + + 14 THEN - 35 - - - 47 - - 95 DIV - COUNT( * ) + - 17 - + ( + + 59 ) + - + 99 + - - 36 * 11 ELSE 81 * 50 END * 91
----
-368550

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL - CASE - 14 WHEN + + 14 THEN - 35 - - - 47 - - 95 / - COUNT ( * ) + - 17 - + ( + + 59 ) + - + 99 + - - 36 * 11 ELSE 81 * 50 END * 91
----
-368550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3245
SELECT DISTINCT + CASE + 3 WHEN - 30 THEN + 77 WHEN + 4 + - 2 THEN - + CAST( NULL AS SIGNED ) * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT + CASE + 3 WHEN - 30 THEN + 77 WHEN + 4 + - 2 THEN - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 40 * - 31 * - - 61 AS col1
----
-75640

query I rowsort
SELECT + 46 * + 95
----
4370

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3249
SELECT + COUNT( 35 ) / - - 3 + - 53 + - - COUNT( * ) / - 82 * 45 * MIN( DISTINCT 52 ) * + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT + COUNT ( 35 ) / - - 3 + - 53 + - - COUNT ( * ) / - 82 * 45 * MIN ( DISTINCT 52 ) * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3250
SELECT DISTINCT + 18 * + 70 - - + 0 - - COALESCE ( + COUNT( * ), - 80, - 57 ) col2, + COUNT( * ) AS col0
----
1261
1

skipif mysql # not compatible
query II rowsort label-3250
SELECT DISTINCT + 18 * + 70 - - + 0 - - COALESCE ( + COUNT ( * ), - 80, - 57 ) col2, + COUNT ( * ) AS col0
----
1261
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3251
SELECT + COALESCE ( + CAST( + 20 AS SIGNED ), + - 22 * - - ( + 80 ) * + - 13 - 44 - + 89 * + - NULLIF ( - COUNT( - 3 ), 70 - 57 ) - NULLIF ( 39 + - COUNT( ALL - 75 ), 8 ) ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3251
SELECT + COALESCE ( + CAST ( + 20 AS INTEGER ), + - 22 * - - ( + 80 ) * + - 13 - 44 - + 89 * + - NULLIF ( - COUNT ( - 3 ), 70 - 57 ) - NULLIF ( 39 + - COUNT ( ALL - 75 ), 8 ) ) AS col0
----
20

query I rowsort
SELECT ALL 4 * 90 AS col1
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT + 10 * - + MAX( ALL + 23 )
----
-230

skipif mysql # not compatible
query I rowsort label-3253
SELECT + 10 * - + MAX ( ALL + 23 )
----
-230

onlyif mysql # aggregate syntax: 
query II rowsort label-3254
SELECT SUM( 80 ) AS col2, - MIN( 89 ) AS col2
----
80
-89

skipif mysql # not compatible
query II rowsort label-3254
SELECT SUM ( 80 ) AS col2, - MIN ( 89 ) AS col2
----
80
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3255
SELECT ALL ( + - 16 ) * + 6 col2, CAST( NULL AS SIGNED ) * - 73
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-3255
SELECT ALL ( + - 16 ) * + 6 col2, CAST ( NULL AS INTEGER ) * - 73
----
-96
NULL

query I rowsort
SELECT ALL 62 * + - 37 col1
----
-2294

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT DISTINCT - MAX( COALESCE ( - 26, 72 ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT - MAX ( COALESCE ( - 26, 72 ) ) AS col2
----
26

query I rowsort
SELECT + 15 + - ( - + 60 ) + - ( + 55 ) AS col1
----
20

query I rowsort
SELECT + 28 + - + 45 * - 67 * + - 98 * COALESCE ( 43, - ( - 63 ) + NULLIF ( + 25, - AVG ( + - 12 ) ) )
----
-12705182

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

skipif mysql # not compatible
query I rowsort label-3260
SELECT - MIN ( ALL - 81 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3261
SELECT - 12 * + ( - CAST( NULL AS SIGNED ) ) AS col0, + CASE MAX( - 48 ) WHEN 20 * - 45 THEN COUNT( * ) WHEN - 8 THEN 60 ELSE NULL END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3261
SELECT - 12 * + ( - CAST ( NULL AS INTEGER ) ) AS col0, + CASE MAX ( - 48 ) WHEN 20 * - 45 THEN COUNT ( * ) WHEN - 8 THEN 60 ELSE NULL END AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT + - COUNT( * ) + - + 63 * - 96 AS col1
----
6047

skipif mysql # not compatible
query I rowsort label-3262
SELECT + - COUNT ( * ) + - + 63 * - 96 AS col1
----
6047

query I rowsort
SELECT - + 72 + + 41 - + 33 * - 24 AS col0
----
761

query I rowsort
SELECT DISTINCT + 3 * 3 AS col2
----
9

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3266
SELECT ALL - 92 + - 3 DIV - COUNT( ALL 36 ) - 96 - - 77 * - - 88 * - 70
----
-474505

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - 92 + - 3 / - COUNT ( ALL 36 ) - 96 - - 77 * - - 88 * - 70
----
-474505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3267
SELECT ALL + + 60 + CASE + - COUNT( * ) WHEN - - 56 THEN NULL WHEN - 66 + - + ( - - 32 ) THEN NULL ELSE + - 16 DIV 93 END
----
60

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL + + 60 + CASE + - COUNT ( * ) WHEN - - 56 THEN NULL WHEN - 66 + - + ( - - 32 ) THEN NULL ELSE + - 16 / 93 END
----
60

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

skipif mysql # not compatible
query II rowsort label-3268
SELECT - 1 - + + CAST ( - COUNT ( * ) AS INTEGER ) col0, 21 / - + 94 + + - 21
----
0
-21

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

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

query I rowsort
SELECT - ( CASE + 41 WHEN + 66 * + + 45 THEN - 23 END ) + - 29 * - 42 * + - 49 * + 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3271
SELECT ALL + 94 / + COUNT( * ) / + CASE + 97 WHEN + 33 THEN NULL WHEN + - ( + - COUNT( 77 ) ) THEN - + 90 + + 15 / CAST( + 3 AS SIGNED ) END * + 81 + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL + 94 / + COUNT ( * ) / + CASE + 97 WHEN + 33 THEN NULL WHEN + - ( + - COUNT ( 77 ) ) THEN - + 90 + + 15 / CAST ( + 3 AS INTEGER ) END * + 81 + 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT 31 / - COUNT( * ) + - 71 - COUNT( * ) + CASE 25 WHEN + 93 * - 88 THEN + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT 31 / - COUNT ( * ) + - 71 - COUNT ( * ) + CASE 25 WHEN + 93 * - 88 THEN + 16 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 23 AS col1, 99 AS col0
----
23
99

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

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

query I rowsort
SELECT ALL + 59 * 45
----
2655

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

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

query I rowsort
SELECT DISTINCT + 41 * - 16 AS col2
----
-656

query I rowsort
SELECT 50 * + + 43 + 21
----
2171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3279
SELECT - COUNT( * ) + 18 DIV + COUNT( * ) AS col0, - ( 1 )
----
17
-1

skipif mysql # not compatible
query II rowsort label-3279
SELECT - COUNT ( * ) + 18 / + COUNT ( * ) AS col0, - ( 1 )
----
17
-1

query I rowsort
SELECT DISTINCT + 41 * - 47 AS col2
----
-1927

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT + ( + - COALESCE ( - + 25, 50 + 14, + - CAST( NULL AS SIGNED ) * + 80 + - 32 * - 50 ) ) col0
----
25

skipif mysql # not compatible
query I rowsort label-3282
SELECT + ( + - COALESCE ( - + 25, 50 + 14, + - CAST ( NULL AS INTEGER ) * + 80 + - 32 * - 50 ) ) col0
----
25

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

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

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

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

query I rowsort
SELECT + - 62 + + 82 AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3286
SELECT DISTINCT 14 + + + COALESCE ( - - COALESCE ( - + 54, - 34 * + CAST( NULL AS SIGNED ) + - + COUNT( * ) + + COUNT( * ) * - 9 + 57 ), - + 49, - + 96 )
----
-40

skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT 14 + + + COALESCE ( - - COALESCE ( - + 54, - 34 * + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + + COUNT ( * ) * - 9 + 57 ), - + 49, - + 96 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL 32 + - SUM( + 9 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL 32 + - SUM ( + 9 ) AS col0
----
23

query I rowsort
SELECT DISTINCT - 63 + 1 + - NULLIF ( 86, - 46 ) + - 23
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT - NULLIF ( - COUNT( * ), + 55 - 37 + 76 ) * 99 + 57 AS col2
----
156

skipif mysql # not compatible
query I rowsort label-3289
SELECT - NULLIF ( - COUNT ( * ), + 55 - 37 + 76 ) * 99 + 57 AS col2
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-3290
SELECT COUNT( * ) + + MAX( ALL - - 83 ) AS col2, 44
----
84
44

skipif mysql # not compatible
query II rowsort label-3290
SELECT COUNT ( * ) + + MAX ( ALL - - 83 ) AS col2, 44
----
84
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3291
SELECT + 98 + + 29 * - CASE - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) + - 0 / - - 88 + - 34 + - 29 * + COUNT( * ) + + 14 / + - 86 THEN + + 29 + - 86 WHEN COALESCE ( CAST( SUM( DISTINCT - 46 ) AS DECIMAL ), - 21 ) THEN NULL ELSE NULL END / ( 86 * - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT + 98 + + 29 * - CASE - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) + - 0 / - - 88 + - 34 + - 29 * + COUNT ( * ) + + 14 / + - 86 THEN + + 29 + - 86 WHEN COALESCE ( CAST ( SUM ( DISTINCT - 46 ) AS REAL ), - 21 ) THEN NULL ELSE NULL END / ( 86 * - 37 )
----
NULL

query II rowsort
SELECT 75 AS col1, - 37 * + + 99 * + 74
----
75
-271062

query I rowsort
SELECT 98 * + - 32 * + 98 + 66 + + + 49 * + ( - 74 )
----
-310888

onlyif mysql # aggregate syntax: 
query II rowsort label-3294
SELECT CASE + 19 WHEN COUNT( DISTINCT + + 98 ) THEN + + 28 WHEN - 73 THEN NULL ELSE NULL END AS col1, 39
----
NULL
39

skipif mysql # not compatible
query II rowsort label-3294
SELECT CASE + 19 WHEN COUNT ( DISTINCT + + 98 ) THEN + + 28 WHEN - 73 THEN NULL ELSE NULL END AS col1, 39
----
NULL
39

query I rowsort
SELECT 43 * + 43
----
1849

query I rowsort
SELECT DISTINCT + 17 * + + 49 * + 28 AS col1
----
23324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT DISTINCT CAST( - - CAST( + 64 AS SIGNED ) AS SIGNED ) * + + 30 + 19 - - MIN( + 68 )
----
2007

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT CAST ( - - CAST ( + 64 AS INTEGER ) AS INTEGER ) * + + 30 + 19 - - MIN ( + 68 )
----
2007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT CAST( NULL AS SIGNED ) + - + CASE - 52 WHEN - 40 THEN COUNT( * ) END + - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT CAST ( NULL AS INTEGER ) + - + CASE - 52 WHEN - 40 THEN COUNT ( * ) END + - 35 AS col2
----
NULL

query I rowsort
SELECT ALL + 27 * - 89 * 90
----
-216270

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3300
SELECT 87 DIV - + 66 col0, CASE + - CAST( NULL AS SIGNED ) WHEN NULLIF ( 4, 57 * 49 ) THEN ( - - 33 ) END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3300
SELECT 87 / - + 66 col0, CASE + - CAST ( NULL AS INTEGER ) WHEN NULLIF ( 4, 57 * 49 ) THEN ( - - 33 ) END AS col2
----
-1
NULL

query I rowsort
SELECT 58 * + ( - 88 ) AS col0
----
-5104

query I rowsort
SELECT 61 - - 73 + - 54
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT 77 DIV - ( + 40 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3303
SELECT 77 / - ( + 40 ) AS col2
----
-1

query I rowsort
SELECT ( - 16 ) * - 97 AS col0
----
1552

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL + - MAX( DISTINCT + 27 ) + + + ( + - COALESCE ( 74, + 48, - - 48 ) ) + - 72 AS col1
----
-173

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL + - MAX ( DISTINCT + 27 ) + + + ( + - COALESCE ( 74, + 48, - - 48 ) ) + - 72 AS col1
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT DISTINCT + MIN( - - 21 ) + + - ( + - 94 ) + - - 2
----
117

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT + MIN ( - - 21 ) + + - ( + - 94 ) + - - 2
----
117

query I rowsort
SELECT ALL + 25 + 28
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3308
SELECT ALL + CAST( NULL AS SIGNED ) + + CASE + 8 WHEN + 45 THEN - - CAST( - 75 AS SIGNED ) + - COUNT( DISTINCT - - 91 ) - + 32 + + 59 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ELSE 70 + + - 66 / - 96 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL + CAST ( NULL AS INTEGER ) + + CASE + 8 WHEN + 45 THEN - - CAST ( - 75 AS INTEGER ) + - COUNT ( DISTINCT - - 91 ) - + 32 + + 59 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ELSE 70 + + - 66 / - 96 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3309
SELECT 43 + - SUM( + - 57 ) DIV + 60
----
43

skipif mysql # not compatible
query I rowsort label-3309
SELECT 43 + - SUM ( + - 57 ) / + 60
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT + SUM( 41 ) * 41 AS col0
----
1681

skipif mysql # not compatible
query I rowsort label-3310
SELECT + SUM ( 41 ) * 41 AS col0
----
1681

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

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

query I rowsort
SELECT ALL - 9 - 13 AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT DISTINCT - 81 / - CAST( NULL AS SIGNED ) * + COUNT( * ) + - + 88 - + CAST( NULL AS SIGNED ) + ( 54 ) + + 42 * + - NULLIF ( 8, 8 ) * + 89 * - SUM( DISTINCT + 66 ) / ( + 96 ) + 48 / 46 * ( - COUNT( * ) * ( 91 ) + - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT - 81 / - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - + 88 - + CAST ( NULL AS INTEGER ) + ( 54 ) + + 42 * + - NULLIF ( 8, 8 ) * + 89 * - SUM ( DISTINCT + 66 ) / ( + 96 ) + 48 / 46 * ( - COUNT ( * ) * ( 91 ) + - 63 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3314
SELECT ALL 32 * 83 DIV - 48
----
-55

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL 32 * 83 / - 48
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT + CAST( 57 AS SIGNED ) * + 82 col1
----
4674

skipif mysql # not compatible
query I rowsort label-3315
SELECT + CAST ( 57 AS INTEGER ) * + 82 col1
----
4674

query I rowsort
SELECT 5 + 46 * - 82
----
-3767

query I rowsort
SELECT DISTINCT 94 - 36 AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * - 80 + ( + 56 ) * - 67
----
-3672

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - 80 + ( + 56 ) * - 67
----
-3672

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT 26 + + + MAX( DISTINCT - 29 )
----
-3

skipif mysql # not compatible
query I rowsort label-3319
SELECT 26 + + + MAX ( DISTINCT - 29 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT MAX( + 2 ) + + 76 + 85 * 59 * + 70 * + 70 * 78 AS col2, - 2 AS col1
----
1916733078
-2

skipif mysql # not compatible
query II rowsort label-3320
SELECT MAX ( + 2 ) + + 76 + 85 * 59 * + 70 * + 70 * 78 AS col2, - 2 AS col1
----
1916733078
-2

query I rowsort
SELECT ( 47 ) * + 40
----
1880

query I rowsort
SELECT 78 * 41 * - 3
----
-9594

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3323
SELECT 81 + + COUNT( 94 ) AS col0, 6 DIV 64 DIV - 90
----
82
0

skipif mysql # not compatible
query II rowsort label-3323
SELECT 81 + + COUNT ( 94 ) AS col0, 6 / 64 / - 90
----
82
0

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

skipif mysql # not compatible
query I rowsort label-3324
SELECT MIN ( DISTINCT ( 32 ) )
----
32

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

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

query I rowsort
SELECT ALL - 96 * 16 AS col1
----
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT 68 * + 92 * - MIN( DISTINCT - 0 ) * - + 72
----
0

skipif mysql # not compatible
query I rowsort label-3327
SELECT 68 * + 92 * - MIN ( DISTINCT - 0 ) * - + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + SUM( DISTINCT - - 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3328
SELECT + SUM ( DISTINCT - - 39 ) AS col0
----
39

query I rowsort
SELECT ALL 82 * + - 16 + - + COALESCE ( + 30, + 68 ) + - 22 + - - ( - 83 ) * 36 * + 10 - - 92
----
-31152

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL 39 * + CASE 41 WHEN - 40 THEN - + 8 * - + COUNT( * ) END / + 27 + + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL 39 * + CASE 41 WHEN - 40 THEN - + 8 * - + COUNT ( * ) END / + 27 + + 8 AS col2
----
NULL

query I rowsort
SELECT 58 + - + 60 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT 93 * - - MIN( DISTINCT 0 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3332
SELECT 93 * - - MIN ( DISTINCT 0 ) col2
----
0

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

skipif mysql # not compatible
query I rowsort label-3333
SELECT + SUM ( 8 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT 12 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-3334
SELECT 12 / - 89
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3335
SELECT 24 * 36 + + + 44 * - COUNT( * ) DIV + 58 col1
----
864

skipif mysql # not compatible
query I rowsort label-3335
SELECT 24 * 36 + + + 44 * - COUNT ( * ) / + 58 col1
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT SUM( DISTINCT + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-3336
SELECT SUM ( DISTINCT + 95 )
----
95

query I rowsort
SELECT ALL - 29 + - + 17 AS col1
----
-46

query II rowsort
SELECT + 6 AS col2, + ( + 7 )
----
6
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT - + 10 * + + COUNT( DISTINCT - 75 ) + + 12 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3339
SELECT - + 10 * + + COUNT ( DISTINCT - 75 ) + + 12 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT ALL - + 87 DIV 47 * + 72
----
-72

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL - + 87 / 47 * + 72
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3341
SELECT + CASE + 64 WHEN + 97 * - 25 / + - 16 * - 35 * + COUNT( DISTINCT + - 75 ) + + 66 * - ( + - 63 ) * + ( - 87 ) THEN NULL WHEN + 26 * - 4 + 89 THEN + 70 WHEN 15 THEN 93 / - CASE CASE 12 WHEN CAST( NULL AS SIGNED ) THEN - 27 END / + 98 WHEN 96 * 17 THEN - ( + 60 ) WHEN + CAST( + 56 AS DECIMAL ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END END * COUNT( * ) + 89 * - 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT + CASE + 64 WHEN + 97 * - 25 / + - 16 * - 35 * + COUNT ( DISTINCT + - 75 ) + + 66 * - ( + - 63 ) * + ( - 87 ) THEN NULL WHEN + 26 * - 4 + 89 THEN + 70 WHEN 15 THEN 93 / - CASE CASE 12 WHEN CAST ( NULL AS INTEGER ) THEN - 27 END / + 98 WHEN 96 * 17 THEN - ( + 60 ) WHEN + CAST ( + 56 AS REAL ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END END * COUNT ( * ) + 89 * - 55 AS col0
----
NULL

query I rowsort
SELECT - 67 + - 81 AS col2
----
-148

query I rowsort
SELECT ALL - - 74 - + 90
----
-16

query I rowsort
SELECT DISTINCT NULLIF ( - 1, - 91 * - - 75 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3345
SELECT CAST( NULL AS DECIMAL ), - 94 AS col0
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-3345
SELECT CAST ( NULL AS REAL ), - 94 AS col0
----
NULL
-94

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3348
SELECT ALL + 97 DIV - 84 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL + 97 / - 84 AS col1
----
-1

query II rowsort
SELECT - 47 AS col0, + 89 + + 48 AS col1
----
-47
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3350
SELECT DISTINCT ( - CAST( - MIN( - 20 ) AS SIGNED ) )
----
-20

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT ( - CAST ( - MIN ( - 20 ) AS INTEGER ) )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT ALL 6 DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL 6 / 81 AS col2
----
0

query II rowsort
SELECT 79 col1, 58 * + 15 AS col0
----
79
870

onlyif mysql # aggregate syntax: 
query II rowsort label-3353
SELECT ALL 93, + 53 * + 95 * - - COUNT( * ) AS col1
----
93
5035

skipif mysql # not compatible
query II rowsort label-3353
SELECT ALL 93, + 53 * + 95 * - - COUNT ( * ) AS col1
----
93
5035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3354
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), + ( + - SUM( DISTINCT + + 11 ) ) DIV COUNT( * ) + MIN( DISTINCT 5 ), COUNT( * ) + + ( - + 63 ) ) + + COUNT( + + CAST( NULL AS SIGNED ) ) * - - 89 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3354
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), + ( + - SUM ( DISTINCT + + 11 ) ) / COUNT ( * ) + MIN ( DISTINCT 5 ), COUNT ( * ) + + ( - + 63 ) ) + + COUNT ( + + CAST ( NULL AS INTEGER ) ) * - - 89 AS col0
----
6

query I rowsort
SELECT DISTINCT + 55 + 4 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL - ( - + COUNT( * ) ) * - MAX( - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL - ( - + COUNT ( * ) ) * - MAX ( - 57 )
----
57

query II rowsort
SELECT 60, 63 AS col0
----
60
63

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT + COALESCE ( 12, + 50, COUNT( * ) ) * 17 + - COUNT( * )
----
203

skipif mysql # not compatible
query I rowsort label-3360
SELECT + COALESCE ( 12, + 50, COUNT ( * ) ) * 17 + - COUNT ( * )
----
203

query I rowsort
SELECT + COALESCE ( - 17, + - 9, + 76 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT 28 DIV 76 + + 11 col2
----
11

skipif mysql # not compatible
query I rowsort label-3362
SELECT 28 / 76 + + 11 col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL COUNT( * ) * - 16 + - + 93 col2
----
-109

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL COUNT ( * ) * - 16 + - + 93 col2
----
-109

query II rowsort
SELECT ALL + 41 AS col2, - 31
----
41
-31

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

query I rowsort
SELECT + 91 * + 22 * + 30 AS col0
----
60060

onlyif mysql # aggregate syntax: 
query II rowsort label-3367
SELECT ALL + 29 * + - SUM( - - 28 ) * + 9 - - 34 + + ( + - NULLIF ( - COALESCE ( 62, 19 ), + 79 ) ) AS col2, COUNT( - 9 )
----
-7212
1

skipif mysql # not compatible
query II rowsort label-3367
SELECT ALL + 29 * + - SUM ( - - 28 ) * + 9 - - 34 + + ( + - NULLIF ( - COALESCE ( 62, 19 ), + 79 ) ) AS col2, COUNT ( - 9 )
----
-7212
1

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

skipif mysql # not compatible
query II rowsort label-3368
SELECT DISTINCT + 75 col0, - COUNT ( * )
----
75
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3369
SELECT + CAST( NULL AS SIGNED ) * + - MAX( + 96 ) AS col2
----
NULL

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

query II rowsort
SELECT ALL + 37 AS col2, 41 * + 38 col1
----
37
1558

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT DISTINCT - 75 * - COUNT( - 51 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - 75 * - COUNT ( - 51 ) AS col1
----
75

query II rowsort
SELECT + 96 AS col1, 69 * + 82 * + + 12 col0
----
96
67896

onlyif mysql # aggregate syntax: 
query II rowsort label-3373
SELECT COUNT( * ), 13 * + 60 * + 77 * + 61 * + 42 AS col0
----
1
153873720

skipif mysql # not compatible
query II rowsort label-3373
SELECT COUNT ( * ), 13 * + 60 * + 77 * + 61 * + 42 AS col0
----
1
153873720

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT + + 62 - + NULLIF ( COUNT( * ), 64 - 47 )
----
61

skipif mysql # not compatible
query I rowsort label-3374
SELECT + + 62 - + NULLIF ( COUNT ( * ), 64 - 47 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT + CAST( 54 AS SIGNED ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3375
SELECT + CAST ( 54 AS INTEGER ) AS col1
----
54

query II rowsort
SELECT ALL + 6, 66 col2
----
6
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3377
SELECT + + 50, MAX( DISTINCT 93 ) AS col0
----
50
93

skipif mysql # not compatible
query II rowsort label-3377
SELECT + + 50, MAX ( DISTINCT 93 ) AS col0
----
50
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3378
SELECT - 40 * - - 6 DIV COUNT( * ) AS col1
----
-240

skipif mysql # not compatible
query I rowsort label-3378
SELECT - 40 * - - 6 / COUNT ( * ) AS col1
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT - MAX( ALL + 95 ) - - MAX( - 9 ) AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-3379
SELECT - MAX ( ALL + 95 ) - - MAX ( - 9 ) AS col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT + ( + CASE + 83 WHEN - 44 - 81 + + COUNT( * ) * ( 46 ) * - - 89 THEN COUNT( * ) - + 21 - + 49 * - - 34 * - 61 WHEN 63 THEN NULL WHEN + - 53 - + COUNT( * ) * + 99 THEN - 49 + - 34 END ) + + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT + ( + CASE + 83 WHEN - 44 - 81 + + COUNT ( * ) * ( 46 ) * - - 89 THEN COUNT ( * ) - + 21 - + 49 * - - 34 * - 61 WHEN 63 THEN NULL WHEN + - 53 - + COUNT ( * ) * + 99 THEN - 49 + - 34 END ) + + 72 AS col1
----
NULL

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

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

query I rowsort
SELECT + - 35 * 5
----
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3383
SELECT - 11 + 68 * - 82 * - 86 + + 27 - + + CAST( NULL AS SIGNED ) + + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT - 11 + 68 * - 82 * - 86 + + 27 - + + CAST ( NULL AS INTEGER ) + + + 3
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT DISTINCT - 13 * 64 AS col1, - 26 + - 22 + - NULLIF ( COUNT( * ), 47 / CASE - ( + 77 ) WHEN - 14 THEN + ( - 94 ) END + 52 ) + + 33 * + 65 * - - 20 * + COUNT( * ) * 53
----
-832
2273651

skipif mysql # not compatible
query II rowsort label-3385
SELECT DISTINCT - 13 * 64 AS col1, - 26 + - 22 + - NULLIF ( COUNT ( * ), 47 / CASE - ( + 77 ) WHEN - 14 THEN + ( - 94 ) END + 52 ) + + 33 * + 65 * - - 20 * + COUNT ( * ) * 53
----
-832
2273651

query I rowsort
SELECT - 76 * + 99
----
-7524

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL + 41 + COUNT( DISTINCT + 64 ) + - + 73 * - 70 AS col2
----
5152

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL + 41 + COUNT ( DISTINCT + 64 ) + - + 73 * - 70 AS col2
----
5152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3388
SELECT ALL CASE WHEN 81 < - CAST( - + 22 AS SIGNED ) THEN - - CASE 35 WHEN - 27 THEN - - 90 ELSE - - 16 / NULLIF ( + + COUNT( * ), - 24 + ( + + 67 ) + - 95 * - - 31 + + 57 ) + 98 / - SUM( ALL 80 / + 29 ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL CASE WHEN 81 < - CAST ( - + 22 AS INTEGER ) THEN - - CASE 35 WHEN - 27 THEN - - 90 ELSE - - 16 / NULLIF ( + + COUNT ( * ), - 24 + ( + + 67 ) + - 95 * - - 31 + + 57 ) + 98 / - SUM ( ALL 80 / + 29 ) END ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 14 * 7
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT - COUNT( * ) + 39 + + + SUM( ALL + 52 )
----
90

skipif mysql # not compatible
query I rowsort label-3390
SELECT - COUNT ( * ) + 39 + + + SUM ( ALL + 52 )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3391
SELECT ALL - 96 + - 83 AS col2, 80 * - 6 * + ( - - 47 ) - - 69 + COALESCE ( - 20, + + COUNT( * ) ) * + 22 AS col0
----
-179
-22931

skipif mysql # not compatible
query II rowsort label-3391
SELECT ALL - 96 + - 83 AS col2, 80 * - 6 * + ( - - 47 ) - - 69 + COALESCE ( - 20, + + COUNT ( * ) ) * + 22 AS col0
----
-179
-22931

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3393
SELECT + NULLIF ( + + 75, + 74 + - + 67 ) + - NULLIF ( - 47, + + 76 * - COUNT( * ) + - 85 + - 5 + + ( + COUNT( ALL + CAST( NULL AS SIGNED ) ) ) + 53 / - ( + 90 ) + + + COUNT( * ) * - 30 ) * 11 AS col1
----
592

skipif mysql # not compatible
query I rowsort label-3393
SELECT + NULLIF ( + + 75, + 74 + - + 67 ) + - NULLIF ( - 47, + + 76 * - COUNT ( * ) + - 85 + - 5 + + ( + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) ) + 53 / - ( + 90 ) + + + COUNT ( * ) * - 30 ) * 11 AS col1
----
592

query I rowsort
SELECT + 86 + + 69
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ALL - COUNT( * ) + 59 - 8 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL - COUNT ( * ) + 59 - 8 AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3396
SELECT ALL MAX( ALL + CAST( + 30 AS SIGNED ) ) * + 50 AS col1
----
1500

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL MAX ( ALL + CAST ( + 30 AS INTEGER ) ) * + 50 AS col1
----
1500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3397
SELECT DISTINCT - COALESCE ( 18, + + COALESCE ( + 6, 99 ) * - + ( - - 2 ) - + 91 * + 9, 28 + - 47 ) DIV + + 95 + - - MIN( 24 )
----
24

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT - COALESCE ( 18, + + COALESCE ( + 6, 99 ) * - + ( - - 2 ) - + 91 * + 9, 28 + - 47 ) / + + 95 + - - MIN ( 24 )
----
24

query I rowsort
SELECT DISTINCT + 52 * + 69 * - 18 AS col1
----
-64584

query I rowsort
SELECT ALL + 34 * - 50
----
-1700

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

skipif mysql # not compatible
query I rowsort label-3400
SELECT COUNT ( * ) + + - ( + 12 ) + + 63 AS col0
----
52

query I rowsort
SELECT COALESCE ( - 66, - + 28 ) * - 51 + + 71 * - + 69 AS col1
----
-1533

query I rowsort
SELECT ( - 42 ) * 74 + - + 83 AS col1
----
-3191

query I rowsort
SELECT ALL - + NULLIF ( 14, + + 45 ) col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT ALL - - CASE COUNT( * ) WHEN 14 - - - 69 THEN - 17 * + 86 * - COUNT( * ) WHEN 17 * - 24 * 48 - - 85 THEN NULL ELSE + - 17 END AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL - - CASE COUNT ( * ) WHEN 14 - - - 69 THEN - 17 * + 86 * - COUNT ( * ) WHEN 17 * - 24 * 48 - - 85 THEN NULL ELSE + - 17 END AS col2
----
-17

query I rowsort
SELECT DISTINCT - - 80 AS col0
----
80

query I rowsort
SELECT COALESCE ( 24, + + 39 ) AS col2
----
24

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

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

query I rowsort
SELECT DISTINCT - 3 * + - 64 AS col1
----
192

query I rowsort
SELECT - 82 * - 81
----
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT - - CASE + COUNT( * ) WHEN + + 92 * - - 36 * + 60 + - 25 + 36 THEN ( 9 ) ELSE - + ( - - COUNT( * ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-3410
SELECT - - CASE + COUNT ( * ) WHEN + + 92 * - - 36 * + 60 + - 25 + 36 THEN ( 9 ) ELSE - + ( - - COUNT ( * ) ) END
----
-1

query I rowsort
SELECT + 65 + - CASE WHEN ( - ( - 50 ) ) = + 32 THEN + - 37 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT 36 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-3412
SELECT 36 / 71
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT CAST( 79 AS SIGNED ) * 9 + 84 AS col2
----
795

skipif mysql # not compatible
query I rowsort label-3414
SELECT CAST ( 79 AS INTEGER ) * 9 + 84 AS col2
----
795

query I rowsort
SELECT ALL ( - 44 ) * + ( - 59 ) AS col2
----
2596

query I rowsort
SELECT ALL - 9 + + 67 AS col0
----
58

query II rowsort
SELECT 90, 16 AS col2
----
90
16

onlyif mysql # DIV for integer division: 
query II rowsort label-3418
SELECT 96, COALESCE ( + + 37, 32, - + 98 DIV - 93 ) AS col1
----
96
37

skipif mysql # not compatible
query II rowsort label-3418
SELECT 96, COALESCE ( + + 37, 32, - + 98 / - 93 ) AS col1
----
96
37

query I rowsort
SELECT DISTINCT 88 + + + ( 0 ) AS col2
----
88

query I rowsort
SELECT ALL + 37 + 89 + - 84 - 18 AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT ALL 64 DIV + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL 64 / + 90 AS col1
----
0

query II rowsort
SELECT ALL 23 + - ( + - 70 ) AS col2, - 69 AS col2
----
93
-69

query I rowsort
SELECT DISTINCT 81 + + 11 * + 75 - - 99 * - - 97 * - 53 * + 39
----
-19848495

query I rowsort
SELECT 96 * + 89
----
8544

query I rowsort
SELECT ALL - 37 * - - 57 * 84 col0
----
-177156

onlyif mysql # aggregate syntax: 
query II rowsort label-3426
SELECT - 53 AS col1, + 52 * - 47 * - SUM( - 39 ) - 84
----
-53
-95400

skipif mysql # not compatible
query II rowsort label-3426
SELECT - 53 AS col1, + 52 * - 47 * - SUM ( - 39 ) - 84
----
-53
-95400

query I rowsort
SELECT 6 * - 90
----
-540

query I rowsort
SELECT ALL + 65 * 4
----
260

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

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

query I rowsort
SELECT 96 * - + 76
----
-7296

query I rowsort
SELECT ALL + 66 * 46 AS col1
----
3036

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT DISTINCT 73 AS col2, + COUNT( * )
----
73
1

skipif mysql # not compatible
query II rowsort label-3432
SELECT DISTINCT 73 AS col2, + COUNT ( * )
----
73
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3435
SELECT + 63 * - ( - + 16 ) - 73 DIV - 69 AS col2
----
1009

skipif mysql # not compatible
query I rowsort label-3435
SELECT + 63 * - ( - + 16 ) - 73 / - 69 AS col2
----
1009

query I rowsort
SELECT ALL + + 67 * + 56 + - 8
----
3744

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3438
SELECT DISTINCT COUNT( * ) * - ( + + 60 ) + + - 46 + 40 + - CAST( NULL AS DECIMAL ) AS col0, 10 + 88 AS col2
----
NULL
98

skipif mysql # not compatible
query II rowsort label-3438
SELECT DISTINCT COUNT ( * ) * - ( + + 60 ) + + - 46 + 40 + - CAST ( NULL AS REAL ) AS col0, 10 + 88 AS col2
----
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT - + CASE + - 53 WHEN + 5 THEN 51 - COUNT( * ) WHEN - 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT - + CASE + - 53 WHEN + 5 THEN 51 - COUNT ( * ) WHEN - 80 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT - 13 * + 25 * + - 31 - MAX( ALL - 86 ) * 6 AS col2
----
10591

skipif mysql # not compatible
query I rowsort label-3440
SELECT - 13 * + 25 * + - 31 - MAX ( ALL - 86 ) * 6 AS col2
----
10591

query I rowsort
SELECT ALL + 90 + COALESCE ( + 47, - COALESCE ( - - 17, - NULLIF ( - + 39, + 3 ) ), + 52 ) * + 24 * 11
----
12498

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT - - 25 * COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT - - 25 * COUNT ( * ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3443
SELECT DISTINCT + + ( - 42 ) * - 39 AS col2, - ( + 19 ) * - 96 * 53 + - MIN( DISTINCT - 50 )
----
1638
96722

skipif mysql # not compatible
query II rowsort label-3443
SELECT DISTINCT + + ( - 42 ) * - 39 AS col2, - ( + 19 ) * - 96 * 53 + - MIN ( DISTINCT - 50 )
----
1638
96722

query I rowsort
SELECT 56 * 47
----
2632

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT + MAX( - 54 ) * + MIN( ALL - 23 )
----
1242

skipif mysql # not compatible
query I rowsort label-3445
SELECT + MAX ( - 54 ) * + MIN ( ALL - 23 )
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT NULLIF ( 24, + COUNT( * ) ) * + - 95 * - 64 + + - 45 * - - 74 AS col1
----
142590

skipif mysql # not compatible
query I rowsort label-3446
SELECT NULLIF ( 24, + COUNT ( * ) ) * + - 95 * - 64 + + - 45 * - - 74 AS col1
----
142590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT - CAST( + - 67 AS SIGNED ) - ( - 20 ) - + + 43 col1
----
44

skipif mysql # not compatible
query I rowsort label-3447
SELECT - CAST ( + - 67 AS INTEGER ) - ( - 20 ) - + + 43 col1
----
44

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

skipif mysql # not compatible
query II rowsort label-3448
SELECT + - 5 AS col1, COUNT ( * ) / 45
----
-5
0

query I rowsort
SELECT ALL 32 + + 75 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT 35 - + NULLIF ( + - 61, - 16 ) + - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-3450
SELECT 35 - + NULLIF ( + - 61, - 16 ) + - COUNT ( * )
----
95

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

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL - - MAX ( ALL 64 )
----
64

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

query I rowsort
SELECT ALL 55 * + - NULLIF ( - - 9, 0 + + + 69 )
----
-495

query I rowsort
SELECT ALL 47 + + - 15 - - 72 AS col2
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-3455
SELECT DISTINCT COUNT( * ) * - 35, 22 * - 28 AS col2
----
-35
-616

skipif mysql # not compatible
query II rowsort label-3455
SELECT DISTINCT COUNT ( * ) * - 35, 22 * - 28 AS col2
----
-35
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT DISTINCT 82 + + COALESCE ( + COUNT( * ), + 23, - ( + - 12 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT 82 + + COALESCE ( + COUNT ( * ), + 23, - ( + - 12 ) ) AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT ALL 40 * + - CAST( 96 AS SIGNED ) AS col0
----
-3840

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL 40 * + - CAST ( 96 AS INTEGER ) AS col0
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT DISTINCT MIN( ALL 58 ) * - 28
----
-1624

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT MIN ( ALL 58 ) * - 28
----
-1624

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ( - NULLIF ( - COUNT( * ), ( - MIN( 83 ) ) / + - 69 ) ) + 21 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3459
SELECT ( - NULLIF ( - COUNT ( * ), ( - MIN ( 83 ) ) / + - 69 ) ) + 21 AS col1
----
22

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

skipif mysql # not compatible
query I rowsort label-3460
SELECT ( - COUNT ( + 61 ) ) * + + ( 59 ) AS col0
----
-59

query II rowsort
SELECT 12 * - 80, + 41 + - 14 AS col0
----
-960
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT 96 + - - 95 + - NULLIF ( - 24, + + 51 + - 37 ) * COUNT( 86 )
----
215

skipif mysql # not compatible
query I rowsort label-3462
SELECT 96 + - - 95 + - NULLIF ( - 24, + + 51 + - 37 ) * COUNT ( 86 )
----
215

query I rowsort
SELECT + 69 * + + 27 * + 14
----
26082

query I rowsort
SELECT + 27 + - + 18 col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT ALL 27 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL 27 / 51
----
0

query III rowsort
SELECT + 33 * + 0, - 7 * CASE - - 57 WHEN + 29 THEN + 64 END AS col0, + 61 AS col1
----
0
NULL
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3467
SELECT - COUNT( ALL - - CAST( - 91 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3467
SELECT - COUNT ( ALL - - CAST ( - 91 AS INTEGER ) )
----
-1

query I rowsort
SELECT + 9 * 42
----
378

query II rowsort
SELECT - + 77 + + 55 + - 6 - - NULLIF ( + 81, + 99 - + - 74 ) + + - 38 - - - 5 * - 42 AS col0, ( - 48 )
----
225
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT COALESCE ( 2, + - 31 DIV - 2 * - - ( + 18 ) )
----
2

skipif mysql # not compatible
query I rowsort label-3470
SELECT COALESCE ( 2, + - 31 / - 2 * - - ( + 18 ) )
----
2

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

query I rowsort
SELECT DISTINCT 49 * + - 46 AS col1
----
-2254

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ALL + + COUNT( * ) * - + 34 * + 5 * - + COUNT( * ) + + - 64 col2
----
106

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + + COUNT ( * ) * - + 34 * + 5 * - + COUNT ( * ) + + - 64 col2
----
106

query I rowsort
SELECT ALL + + 73 * - + 30
----
-2190

query I rowsort
SELECT 8 * ( - 11 ) + 1 - - 92 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3476
SELECT - COALESCE ( 50, 59 DIV - + AVG ( DISTINCT + 92 ) * + COALESCE ( - 38, + 8 ) * + MIN( - + 85 ) * + MIN( - + 69 ) * - ( - + COALESCE ( + 70, - COUNT( * ) ) ) + - + 88 + + COALESCE ( - COUNT( * ), - COUNT( * ) ) + 52 + - 3 * - MIN( 53 ) + + 57 DIV - 99, + COUNT( * ) + - CASE 89 WHEN CAST( NULL AS SIGNED ) + + 73 THEN + 36 + 22 ELSE - COUNT( * ) - 42 * - 18 END, + 45 )
----
-50

skipif mysql # not compatible
query I rowsort label-3476
SELECT - COALESCE ( 50, 59 / - + AVG ( DISTINCT + 92 ) * + COALESCE ( - 38, + 8 ) * + MIN ( - + 85 ) * + MIN ( - + 69 ) * - ( - + COALESCE ( + 70, - COUNT ( * ) ) ) + - + 88 + + COALESCE ( - COUNT ( * ), - COUNT ( * ) ) + 52 + - 3 * - MIN ( 53 ) + + 57 / - 99, + COUNT ( * ) + - CASE 89 WHEN CAST ( NULL AS INTEGER ) + + 73 THEN + 36 + 22 ELSE - COUNT ( * ) - 42 * - 18 END, + 45 )
----
-50

query I rowsort
SELECT - + 22 * + 64 + + 17 AS col2
----
-1391

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT - 20 + + + COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3478
SELECT - 20 + + + COUNT ( * ) AS col1
----
-19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3480
SELECT DISTINCT + 36 * - NULLIF ( 30, 37 ) + - 29 + 39 + - 25 / 38 + + + 46 * + CAST( + 57 AS SIGNED ) * ( - COUNT( * ) ) * - - 49 - - - 78 + - COUNT( * ) + CAST( NULL AS SIGNED ) + + 7 * 5 + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT + 36 * - NULLIF ( 30, 37 ) + - 29 + 39 + - 25 / 38 + + + 46 * + CAST ( + 57 AS INTEGER ) * ( - COUNT ( * ) ) * - - 49 - - - 78 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + 7 * 5 + 60 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3481
SELECT COUNT( * ) * + 42 * + CAST( MIN( DISTINCT 31 ) AS SIGNED ) + - - 35 + + SUM( ALL - ( 82 ) ) - - 64 + + + 55 * - 0 AS col2, - ( + 87 ) DIV + 93 AS col0
----
1319
0

skipif mysql # not compatible
query II rowsort label-3481
SELECT COUNT ( * ) * + 42 * + CAST ( MIN ( DISTINCT 31 ) AS INTEGER ) + - - 35 + + SUM ( ALL - ( 82 ) ) - - 64 + + + 55 * - 0 AS col2, - ( + 87 ) / + 93 AS col0
----
1319
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL - - COUNT( * ) * - 48 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL - - COUNT ( * ) * - 48 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL + - NULLIF ( - 10, 20 * + + COUNT( DISTINCT + 59 ) * + ( - 56 ) * 75 + 38 + 48 * + 42 + - 99 + + - 77 )
----
10

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL + - NULLIF ( - 10, 20 * + + COUNT ( DISTINCT + 59 ) * + ( - 56 ) * 75 + 38 + 48 * + 42 + - 99 + + - 77 )
----
10

query I rowsort
SELECT + - 21 * + 61 + - 76
----
-1357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3486
SELECT ALL 68 * + - COUNT( * ) + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1, + 5 DIV - + 74 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3486
SELECT ALL 68 * + - COUNT ( * ) + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1, + 5 / - + 74 AS col0
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3487
SELECT - 29 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-3487
SELECT - 29 / 44
----
0

query I rowsort
SELECT ALL - 37 * + 45 AS col2
----
-1665

query I rowsort
SELECT ALL + 83 * - - 99 * 82
----
673794

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3493
SELECT - CAST( + 49 AS SIGNED ) * - 77
----
3773

skipif mysql # not compatible
query I rowsort label-3493
SELECT - CAST ( + 49 AS INTEGER ) * - 77
----
3773

query I rowsort
SELECT ALL ( - ( ( 27 ) ) )
----
-27

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

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

query I rowsort
SELECT DISTINCT 57 * 62 AS col2
----
3534

query II rowsort
SELECT - NULLIF ( + 6, - 37 ) - + + 45 + + 33, 1 AS col0
----
-18
1

query I rowsort
SELECT + 9 * - + NULLIF ( - - 85, - 38 * - 1 ) col1
----
-765

query I rowsort
SELECT + 15 * 52 * - 12
----
-9360

query I rowsort
SELECT DISTINCT 21 * - 46 * - 0 * 6 AS col0
----
0

query I rowsort
SELECT ALL - 14 * - 63
----
882

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3502
SELECT DISTINCT 37 AS col1, - NULLIF ( 68, + - 74 + CAST( - 11 AS SIGNED ) + - 73 )
----
37
-68

skipif mysql # not compatible
query II rowsort label-3502
SELECT DISTINCT 37 AS col1, - NULLIF ( 68, + - 74 + CAST ( - 11 AS INTEGER ) + - 73 )
----
37
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-3503
SELECT DISTINCT + 98 + + 6 * + 9 * - - 61 * - 60, - SUM( 6 ) * + COUNT( * ) * - - 24 AS col2
----
-197542
-144

skipif mysql # not compatible
query II rowsort label-3503
SELECT DISTINCT + 98 + + 6 * + 9 * - - 61 * - 60, - SUM ( 6 ) * + COUNT ( * ) * - - 24 AS col2
----
-197542
-144

query I rowsort
SELECT ALL - 23 + - - ( + 25 ) * + 92 col2
----
2277

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL - 65 + + + COUNT( * ) + 52 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL - 65 + + + COUNT ( * ) + 52 AS col0
----
-12

query I rowsort
SELECT ALL - - 0 + - 94
----
-94

query I rowsort
SELECT + + 85 + 55
----
140

query I rowsort
SELECT + 35 * - 10 * + - ( + 71 ) * + 72 * - + COALESCE ( 23, - 61 )
----
-41151600

query I rowsort
SELECT - 9 - - 22 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT + - 77 * - ( + + 39 ) * + 45 - + + SUM( + ( - 69 ) ) * - 46
----
131961

skipif mysql # not compatible
query I rowsort label-3510
SELECT + - 77 * - ( + + 39 ) * + 45 - + + SUM ( + ( - 69 ) ) * - 46
----
131961

query I rowsort
SELECT DISTINCT - + 95 * + 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT COALESCE ( - 45, MAX( ALL - 45 ) ) * COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT COALESCE ( - 45, MAX ( ALL - 45 ) ) * COUNT ( * )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3513
SELECT DISTINCT MAX( CAST( + 54 AS DECIMAL ) ) * + NULLIF ( + - CAST( NULL AS SIGNED ), + + 70 / 87 - + - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT MAX ( CAST ( + 54 AS REAL ) ) * + NULLIF ( + - CAST ( NULL AS INTEGER ), + + 70 / 87 - + - 75 )
----
NULL

query I rowsort
SELECT - + 3 * + NULLIF ( 10, + 70 ) + - 0 AS col1
----
-30

query I rowsort
SELECT + 23 * - 29 * + 83
----
-55361

query II rowsort
SELECT DISTINCT + 38, 31 AS col2
----
38
31

query I rowsort
SELECT ALL + ( - 61 ) col2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT DISTINCT - 33 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT - 33 / 78
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3519
SELECT ALL - COALESCE ( COUNT( - 48 ), + 58 ) AS col2, 50
----
-1
50

skipif mysql # not compatible
query II rowsort label-3519
SELECT ALL - COALESCE ( COUNT ( - 48 ), + 58 ) AS col2, 50
----
-1
50

query I rowsort
SELECT ALL - 88 * + 85 * - + 70
----
523600

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT 5 * NULLIF ( - COUNT( * ), - + ( - 34 ) ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-3521
SELECT 5 * NULLIF ( - COUNT ( * ), - + ( - 34 ) ) col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3522
SELECT DISTINCT 2, COALESCE ( 17, COUNT( * ) ) AS col2
----
2
17

skipif mysql # not compatible
query II rowsort label-3522
SELECT DISTINCT 2, COALESCE ( 17, COUNT ( * ) ) AS col2
----
2
17

query I rowsort
SELECT ALL + 7 * 86
----
602

query I rowsort
SELECT 86 + 93 - + - 88
----
267

query I rowsort
SELECT ALL - 43 * 89 col1
----
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT + NULLIF ( - COUNT( * ), - - 35 + + 24 ) * 27 * - - 29 + 76 AS col2
----
-707

skipif mysql # not compatible
query I rowsort label-3526
SELECT + NULLIF ( - COUNT ( * ), - - 35 + + 24 ) * 27 * - - 29 + 76 AS col2
----
-707

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3527
SELECT COUNT( * ) DIV + MAX( + + 19 )
----
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT COUNT ( * ) / + MAX ( + + 19 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3528
SELECT DISTINCT 66 AS col2, COUNT( * ) * - - 37
----
66
37

skipif mysql # not compatible
query II rowsort label-3528
SELECT DISTINCT 66 AS col2, COUNT ( * ) * - - 37
----
66
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT 47 * - + 0 * 83 * - + ( - + ( - COUNT( * ) ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3529
SELECT 47 * - + 0 * 83 * - + ( - + ( - COUNT ( * ) ) ) col2
----
0

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

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

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

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

query I rowsort
SELECT ALL - 69 + - 66 + + 47 * - 3 * + 41 * - 24
----
138609

query II rowsort
SELECT - - 39 AS col1, 14 AS col0
----
39
14

query I rowsort
SELECT DISTINCT 92 + 51 AS col2
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-3535
SELECT ALL 10, 70 * - 86 * - COUNT( * ) * COUNT( 3 ) col1
----
10
6020

skipif mysql # not compatible
query II rowsort label-3535
SELECT ALL 10, 70 * - 86 * - COUNT ( * ) * COUNT ( 3 ) col1
----
10
6020

query II rowsort
SELECT 72 + - 32 AS col1, ( - - 88 )
----
40
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - COUNT( * ) * + 90 - - 99 * + + 68
----
6642

skipif mysql # not compatible
query I rowsort label-3537
SELECT - COUNT ( * ) * + 90 - - 99 * + + 68
----
6642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3538
SELECT ALL NULLIF ( + COUNT( * ), - 29 + - + SUM( + + 65 ) ) * SUM( DISTINCT + 71 ) / + 47 * 6 + + 30 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL NULLIF ( + COUNT ( * ), - 29 + - + SUM ( + + 65 ) ) * SUM ( DISTINCT + 71 ) / + 47 * 6 + + 30 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( + + 21 ) + COALESCE ( + 80, - - ( + + 34 ) ) * 73
----
5861

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3541
SELECT ALL MIN( + + 21 ) + + MIN( ALL - + CAST( - 93 AS SIGNED ) ) - - - 20 * + 61 * - 7
----
8654

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL MIN ( + + 21 ) + + MIN ( ALL - + CAST ( - 93 AS INTEGER ) ) - - - 20 * + 61 * - 7
----
8654

query II rowsort
SELECT 61 AS col1, + 81 AS col1
----
61
81

query I rowsort
SELECT DISTINCT - 84 + + 32 + 58 AS col0
----
6

query II rowsort
SELECT DISTINCT - 28 AS col0, 12
----
-28
12

query I rowsort
SELECT ALL 38 + + - 83 * - - 67 * + 95 - - 97 * + 25 * + 42 - 45 + - ( + ( - 10 ) ) AS col0
----
-426442

onlyif mysql # aggregate syntax: 
query II rowsort label-3546
SELECT ALL - + COUNT( * ) AS col0, + 58 * 31 * - ( + 80 ) AS col2
----
-1
-143840

skipif mysql # not compatible
query II rowsort label-3546
SELECT ALL - + COUNT ( * ) AS col0, + 58 * 31 * - ( + 80 ) AS col2
----
-1
-143840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3547
SELECT ALL 21 - + - COUNT( * ) * 64 / + CASE - 49 WHEN - CAST( + ( - 88 ) AS SIGNED ) THEN COUNT( * ) WHEN + - MIN( - 27 ) THEN CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL 21 - + - COUNT ( * ) * 64 / + CASE - 49 WHEN - CAST ( + ( - 88 ) AS INTEGER ) THEN COUNT ( * ) WHEN + - MIN ( - 27 ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3548
SELECT - 84 / ( + CASE - COUNT( * ) WHEN - 99 THEN NULL WHEN - 14 - + - COUNT( ALL CAST( NULL AS SIGNED ) ) * 65 THEN + 96 ELSE + CAST( NULL AS SIGNED ) END ) / 28 - + 8 - 43 + - 72 * - 54 * CAST( NULL AS SIGNED ) / - 15 * + - 17, + COUNT( * ) + SUM( - 9 ) + 92 * 76 AS col1
----
NULL
6984

skipif mysql # not compatible
query II rowsort label-3548
SELECT - 84 / ( + CASE - COUNT ( * ) WHEN - 99 THEN NULL WHEN - 14 - + - COUNT ( ALL CAST ( NULL AS INTEGER ) ) * 65 THEN + 96 ELSE + CAST ( NULL AS INTEGER ) END ) / 28 - + 8 - 43 + - 72 * - 54 * CAST ( NULL AS INTEGER ) / - 15 * + - 17, + COUNT ( * ) + SUM ( - 9 ) + 92 * 76 AS col1
----
NULL
6984

query I rowsort
SELECT - 9 * - 54 AS col1
----
486

onlyif mysql # DIV for integer division: 
query I rowsort label-3550
SELECT ALL 79 DIV 15 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL 79 / 15 AS col2
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT ALL + 10 - - ( NULLIF ( NULLIF ( 71, - 5 ), + + 3 * - + 15 * 9 + + AVG ( ALL - 30 ) + - 57 - 93 * + + COALESCE ( 96, + CASE 68 WHEN - + COUNT( - + 50 ) + + ( + 28 ) * 48 THEN NULL WHEN + 73 / 68 THEN ( SUM( DISTINCT + 11 ) ) / 15 ELSE + 25 + 55 END ) / 47 ) ) * 0
----
10

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL + 10 - - ( NULLIF ( NULLIF ( 71, - 5 ), + + 3 * - + 15 * 9 + + AVG ( ALL - 30 ) + - 57 - 93 * + + COALESCE ( 96, + CASE 68 WHEN - + COUNT ( - + 50 ) + + ( + 28 ) * 48 THEN NULL WHEN + 73 / 68 THEN ( SUM ( DISTINCT + 11 ) ) / 15 ELSE + 25 + 55 END ) / 47 ) ) * 0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3553
SELECT 83 * + COUNT( ALL 2 ) + + COUNT( * ) - - - 96, 6 + - 54 + + COUNT( ALL - 84 ) AS col2
----
-12
-47

skipif mysql # not compatible
query II rowsort label-3553
SELECT 83 * + COUNT ( ALL 2 ) + + COUNT ( * ) - - - 96, 6 + - 54 + + COUNT ( ALL - 84 ) AS col2
----
-12
-47

query I rowsort
SELECT 16 * - - 52 AS col2
----
832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3555
SELECT CAST( + 32 AS SIGNED ) + - + 40 * - 34 + + + 26, + 37 - 76 * COUNT( * ) * 63 AS col1
----
1418
-4751

skipif mysql # not compatible
query II rowsort label-3555
SELECT CAST ( + 32 AS INTEGER ) + - + 40 * - 34 + + + 26, + 37 - 76 * COUNT ( * ) * 63 AS col1
----
1418
-4751

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT ALL - 20 * - 67 col2, COUNT( * ) AS col0
----
1340
1

skipif mysql # not compatible
query II rowsort label-3556
SELECT ALL - 20 * - 67 col2, COUNT ( * ) AS col0
----
1340
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3557
SELECT ALL 58 * - 58, + 63 + COALESCE ( - 20, + COALESCE ( 63, + 93, AVG ( DISTINCT - + ( + 20 ) ) ) DIV 25, + + 73 ) AS col0
----
-3364
43

skipif mysql # not compatible
query II rowsort label-3557
SELECT ALL 58 * - 58, + 63 + COALESCE ( - 20, + COALESCE ( 63, + 93, AVG ( DISTINCT - + ( + 20 ) ) ) / 25, + + 73 ) AS col0
----
-3364
43

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

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

query I rowsort
SELECT 15 * 76 col2
----
1140

query II rowsort
SELECT ALL 10 * 52 col1, 27 * + + 21
----
520
567

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT - 53 * 57 + - COUNT( * ) * 53 AS col1
----
-3074

skipif mysql # not compatible
query I rowsort label-3561
SELECT - 53 * 57 + - COUNT ( * ) * 53 AS col1
----
-3074

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3563
SELECT COALESCE ( + CASE - CAST( + - 71 AS SIGNED ) WHEN - 43 THEN + 98 WHEN - 16 / 4 + + 76 * COUNT( * ) * + ( - 29 ) * - ( - 43 ) * + - 73 + 86 - - 14 + + CAST( + - 46 AS DECIMAL ) * - 41 * + 89 THEN NULL END, - + CAST( NULL AS SIGNED ), 80 ) * - 52 AS col2
----
-4160

skipif mysql # not compatible
query I rowsort label-3563
SELECT COALESCE ( + CASE - CAST ( + - 71 AS INTEGER ) WHEN - 43 THEN + 98 WHEN - 16 / 4 + + 76 * COUNT ( * ) * + ( - 29 ) * - ( - 43 ) * + - 73 + 86 - - 14 + + CAST ( + - 46 AS REAL ) * - 41 * + 89 THEN NULL END, - + CAST ( NULL AS INTEGER ), 80 ) * - 52 AS col2
----
-4160

query I rowsort
SELECT 40 + - 16 + + - 30
----
-6

query I rowsort
SELECT ALL + ( - 96 ) + + 54
----
-42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3566
SELECT ALL + CAST( 51 AS DECIMAL ) / + 5 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + CAST ( 51 AS REAL ) / + 5 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT 76 * CAST( NULL AS SIGNED ) + - 55 + + - ( - ( + 7 ) ) / ( 63 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT 76 * CAST ( NULL AS INTEGER ) + - 55 + + - ( - ( + 7 ) ) / ( 63 ) col0
----
NULL

query I rowsort
SELECT DISTINCT 85 + - + 70 + + 34
----
49

query I rowsort
SELECT DISTINCT + 40 + + - 96 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL - 18 + + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - 18 + + - COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3571
SELECT COUNT( 85 ) - + ( + + 14 ) DIV - + 36, 52 AS col1
----
1
52

skipif mysql # not compatible
query II rowsort label-3571
SELECT COUNT ( 85 ) - + ( + + 14 ) / - + 36, 52 AS col1
----
1
52

query I rowsort
SELECT + 64 * ( + + ( ( - + 67 ) ) ) + + 31 AS col1
----
-4257

query I rowsort
SELECT ALL + CASE + 60 WHEN - NULLIF ( 25, 54 ) / COALESCE ( 41, - 41 * + + ( - 36 ) ) THEN - 27 + - 85 ELSE - + 84 END
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT CAST( + 29 AS SIGNED ) + - 67 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3574
SELECT CAST ( + 29 AS INTEGER ) + - 67 AS col2
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3575
SELECT + 91 DIV + + 66 + 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3575
SELECT + 91 / + + 66 + 25 AS col1
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-3576
SELECT ALL + 82 + - - 0 AS col1, 98 DIV + 93
----
82
1

skipif mysql # not compatible
query II rowsort label-3576
SELECT ALL + 82 + - - 0 AS col1, 98 / + 93
----
82
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT + 30 * + COUNT( * ) AS col0, - 76 * + - 51 AS col1
----
30
3876

skipif mysql # not compatible
query II rowsort label-3577
SELECT + 30 * + COUNT ( * ) AS col0, - 76 * + - 51 AS col1
----
30
3876

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3578
SELECT DISTINCT + + 24 - + + 56 AS col1, 78 DIV - COUNT( * )
----
-32
-78

skipif mysql # not compatible
query II rowsort label-3578
SELECT DISTINCT + + 24 - + + 56 AS col1, 78 / - COUNT ( * )
----
-32
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-3579
SELECT - 57 - COUNT( * ), - 20 AS col0
----
-58
-20

skipif mysql # not compatible
query II rowsort label-3579
SELECT - 57 - COUNT ( * ), - 20 AS col0
----
-58
-20

query I rowsort
SELECT DISTINCT + NULLIF ( 52, + + 53 + + 49 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3581
SELECT ALL + CASE 75 WHEN SUM( DISTINCT + + 67 ) * + 58 * + 54 THEN NULL WHEN + + 84 THEN NULL ELSE - COUNT( * ) DIV + ( - 18 ) * - 67 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL + CASE 75 WHEN SUM ( DISTINCT + + 67 ) * + 58 * + 54 THEN NULL WHEN + + 84 THEN NULL ELSE - COUNT ( * ) / + ( - 18 ) * - 67 END AS col0
----
0

query I rowsort
SELECT ALL 10 * + 85 AS col2
----
850

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3583
SELECT + AVG ( + 22 ) + + + 48 + + 83 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT + AVG ( + 22 ) + + + 48 + + 83 + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT - COUNT( 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-3584
SELECT - COUNT ( 97 )
----
-1

query I rowsort
SELECT - 57 * - 86 + - 33 + + 76
----
4945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3586
SELECT + 7 - CASE + + 5 WHEN COUNT( * ) THEN + + 48 + - 45 WHEN + 9 + - 28 + + 14 * + 89 - + 74 THEN NULL ELSE + + SUM( DISTINCT - 44 ) END + - + 33 * + - 96 - 71 DIV - 91 AS col0
----
3219

skipif mysql # not compatible
query I rowsort label-3586
SELECT + 7 - CASE + + 5 WHEN COUNT ( * ) THEN + + 48 + - 45 WHEN + 9 + - 28 + + 14 * + 89 - + 74 THEN NULL ELSE + + SUM ( DISTINCT - 44 ) END + - + 33 * + - 96 - 71 / - 91 AS col0
----
3219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3587
SELECT + - CAST( - + 30 AS SIGNED ) AS col1, + COUNT( * ) * - 93 - CAST( + + 64 AS SIGNED )
----
30
-157

skipif mysql # not compatible
query II rowsort label-3587
SELECT + - CAST ( - + 30 AS INTEGER ) AS col1, + COUNT ( * ) * - 93 - CAST ( + + 64 AS INTEGER )
----
30
-157

onlyif mysql # DIV for integer division: 
query II rowsort label-3588
SELECT ALL - 51 AS col0, - 17 DIV - ( - 94 ) * + 70 + + 63
----
-51
63

skipif mysql # not compatible
query II rowsort label-3588
SELECT ALL - 51 AS col0, - 17 / - ( - 94 ) * + 70 + + 63
----
-51
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3589
SELECT + 93 DIV 97 + + 2 + + 63 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3589
SELECT + 93 / 97 + + 2 + + 63 AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3590
SELECT + CAST( + COALESCE ( + NULLIF ( + + 7, + MAX( - 11 ) ), - 66 * - 75 + + + 65 ) AS SIGNED ) * - 34
----
-238

skipif mysql # not compatible
query I rowsort label-3590
SELECT + CAST ( + COALESCE ( + NULLIF ( + + 7, + MAX ( - 11 ) ), - 66 * - 75 + + + 65 ) AS INTEGER ) * - 34
----
-238

query I rowsort
SELECT ALL + 15 * + 17 AS col1
----
255

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

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

query I rowsort
SELECT + 68 * - - 70 + - 31 AS col1
----
4729

onlyif mysql # aggregate syntax: 
query II rowsort label-3594
SELECT + 86 - 2 + COUNT( * ) + CASE - COUNT( * ) WHEN 31 * + 65 THEN + 99 * + 95 - + + COUNT( + 19 ) / - COUNT( * ) * - - ( + + 30 ) * - - 8 + 66 END * 57 + - 39, 90 AS col0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-3594
SELECT + 86 - 2 + COUNT ( * ) + CASE - COUNT ( * ) WHEN 31 * + 65 THEN + 99 * + 95 - + + COUNT ( + 19 ) / - COUNT ( * ) * - - ( + + 30 ) * - - 8 + 66 END * 57 + - 39, 90 AS col0
----
NULL
90

query I rowsort
SELECT DISTINCT 98 * + 56
----
5488

query I rowsort
SELECT ALL + 66 * - - 47 + - 65
----
3037

query I rowsort
SELECT + 62 - + 58 AS col0
----
4

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

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL - COUNT ( * ) + 10 AS col1
----
9

query I rowsort
SELECT 89 * 29 + - 65 AS col1
----
2516

query I rowsort
SELECT ALL 44 + + 56 - 20
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT ALL + 53 + + + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL + 53 + + + COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT SUM( 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3602
SELECT SUM ( 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL ( COUNT( DISTINCT - + 33 ) ) * 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL ( COUNT ( DISTINCT - + 33 ) ) * 35 AS col2
----
35

query I rowsort
SELECT ALL 97 + 50
----
147

query I rowsort
SELECT + 3 + + - 12 * + ( + 51 ) AS col2
----
-609

query II rowsort
SELECT + - ( + 85 ) + 59, + 48 AS col0
----
-26
48

query II rowsort
SELECT - - 92 - 31 + 44 AS col2, 95
----
105
95

query I rowsort
SELECT ALL + 86 + - 51
----
35

query I rowsort
SELECT DISTINCT ( NULLIF ( + 34, 25 ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT - COUNT( * ) + + - 21
----
-22

skipif mysql # not compatible
query I rowsort label-3610
SELECT - COUNT ( * ) + + - 21
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT ALL + 37 AS col0, - 81 * + - 58 / + + ( - 38 ) - 45 + ( - + 18 ) + 60 + + COUNT( * ) + 85 + + 69 * + CASE + COUNT( * ) WHEN + 53 / - + 7 - + 67 THEN NULL ELSE + 33 * - CASE WHEN NOT 23 IS NULL THEN NULL ELSE + + 85 END END * + 9 + 42 * + SUM( DISTINCT 43 + 12 ) / COUNT( ALL - 87 * 14 ) * - COUNT( * ) AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-3611
SELECT ALL + 37 AS col0, - 81 * + - 58 / + + ( - 38 ) - 45 + ( - + 18 ) + 60 + + COUNT ( * ) + 85 + + 69 * + CASE + COUNT ( * ) WHEN + 53 / - + 7 - + 67 THEN NULL ELSE + 33 * - CASE WHEN NOT 23 IS NULL THEN NULL ELSE + + 85 END END * + 9 + 42 * + SUM ( DISTINCT 43 + 12 ) / COUNT ( ALL - 87 * 14 ) * - COUNT ( * ) AS col2
----
37
NULL

query I rowsort
SELECT + CASE 46 WHEN + 93 * 15 THEN + + 31 - 95 + - - 59 / - 32 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3613
SELECT DISTINCT + - 89 - - COUNT( * ) + - 46 DIV + + COUNT( * ) col1
----
-134

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT + - 89 - - COUNT ( * ) + - 46 / + + COUNT ( * ) col1
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT DISTINCT 16 DIV + + 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT 16 / + + 39 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT - + 65 * + 91 * COUNT( * ) + CASE - 2 WHEN - 59 THEN 61 ELSE + + 64 END
----
-5851

skipif mysql # not compatible
query I rowsort label-3615
SELECT - + 65 * + 91 * COUNT ( * ) + CASE - 2 WHEN - 59 THEN 61 ELSE + + 64 END
----
-5851

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL - + 22 * COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL - + 22 * COUNT ( * ) AS col2
----
-22

query I rowsort
SELECT + + 54 + + 19
----
73

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3619
SELECT DISTINCT + - COUNT( * ) * - - 22 + - CAST( NULL AS SIGNED ) - - NULLIF ( + ( + 10 ), - 30 ) * - - ( - 2 ) + + - 6 * - ( - + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT + - COUNT ( * ) * - - 22 + - CAST ( NULL AS INTEGER ) - - NULLIF ( + ( + 10 ), - 30 ) * - - ( - 2 ) + + - 6 * - ( - + 1 )
----
NULL

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

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

query I rowsort
SELECT - 0 * - + 33
----
0

query I rowsort
SELECT - 44 * 75
----
-3300

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

skipif mysql # not compatible
query I rowsort label-3623
SELECT - + COUNT ( * ) + + 41 + + 64 AS col0
----
104

query I rowsort
SELECT ALL + - 17 * ( + 14 )
----
-238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3625
SELECT COALESCE ( - COUNT( * ), 27 * + MAX( ALL + 53 ) + - + 26 + + 84 DIV - - 95 ) * 97 * 60 * + - COALESCE ( 55, + COUNT( * ) + - 18 DIV 21 + 70 * + CASE - - NULLIF ( NULLIF ( - 65, - - 4 + + 50 ), - - ( - - 63 ) * 45 ) WHEN 72 THEN + 63 * COUNT( * ) WHEN + 32 + COUNT( * ) THEN NULL ELSE NULL END + + COUNT( * ) ) - COUNT( * ) + 68 AS col1
----
320167

skipif mysql # not compatible
query I rowsort label-3625
SELECT COALESCE ( - COUNT ( * ), 27 * + MAX ( ALL + 53 ) + - + 26 + + 84 / - - 95 ) * 97 * 60 * + - COALESCE ( 55, + COUNT ( * ) + - 18 / 21 + 70 * + CASE - - NULLIF ( NULLIF ( - 65, - - 4 + + 50 ), - - ( - - 63 ) * 45 ) WHEN 72 THEN + 63 * COUNT ( * ) WHEN + 32 + COUNT ( * ) THEN NULL ELSE NULL END + + COUNT ( * ) ) - COUNT ( * ) + 68 AS col1
----
320167

query I rowsort
SELECT ALL + NULLIF ( + 1, + 64 / 92 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT - 29 * + COUNT( * ) * ( + + 8 ) col2
----
-232

skipif mysql # not compatible
query I rowsort label-3627
SELECT - 29 * + COUNT ( * ) * ( + + 8 ) col2
----
-232

onlyif mysql # aggregate syntax: 
query II rowsort label-3628
SELECT - COUNT( * ) + + 2, 21 + - 5 + + + 74 AS col0
----
1
90

skipif mysql # not compatible
query II rowsort label-3628
SELECT - COUNT ( * ) + + 2, 21 + - 5 + + + 74 AS col0
----
1
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3629
SELECT 84 DIV CAST( + COUNT( * ) AS SIGNED ) + 64 AS col0
----
148

skipif mysql # not compatible
query I rowsort label-3629
SELECT 84 / CAST ( + COUNT ( * ) AS INTEGER ) + 64 AS col0
----
148

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3631
SELECT ALL - 21 * - COUNT( * ) + - - 26 * + NULLIF ( + - COALESCE ( - ( + 76 ), - + 29 ), - 90 ), + 33 DIV - 91 + + 80 + - + 46 + 64 AS col2
----
1997
98

skipif mysql # not compatible
query II rowsort label-3631
SELECT ALL - 21 * - COUNT ( * ) + - - 26 * + NULLIF ( + - COALESCE ( - ( + 76 ), - + 29 ), - 90 ), + 33 / - 91 + + 80 + - + 46 + 64 AS col2
----
1997
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT ( COUNT( DISTINCT 63 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3632
SELECT ( COUNT ( DISTINCT 63 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT 84 * COUNT( * ) + + - 78 col1
----
6

skipif mysql # not compatible
query I rowsort label-3633
SELECT 84 * COUNT ( * ) + + - 78 col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3634
SELECT ALL + 22 * - 79 + + + 10 + - - MAX( DISTINCT - - 98 ) + - CAST( NULL AS SIGNED ) * - 37 * 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL + 22 * - 79 + + + 10 + - - MAX ( DISTINCT - - 98 ) + - CAST ( NULL AS INTEGER ) * - 37 * 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT - 63 + COUNT( * ) + + - 35
----
-97

skipif mysql # not compatible
query I rowsort label-3635
SELECT - 63 + COUNT ( * ) + + - 35
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3636
SELECT ALL + CASE + - 90 WHEN - 79 * + 69 - + ( - 26 ) THEN NULL WHEN + + 71 THEN NULL ELSE - 5 DIV + 65 + - COUNT( DISTINCT 95 ) + 76 * 13 END
----
987

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL + CASE + - 90 WHEN - 79 * + 69 - + ( - 26 ) THEN NULL WHEN + + 71 THEN NULL ELSE - 5 / + 65 + - COUNT ( DISTINCT 95 ) + 76 * 13 END
----
987

query I rowsort
SELECT + 39 + - 89 + - 27 * 34 + + 5
----
-963

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT CASE 97 WHEN SUM( + 6 ) THEN + ( - 16 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT CASE 97 WHEN SUM ( + 6 ) THEN + ( - 16 ) END
----
NULL

query I rowsort
SELECT + NULLIF ( 89, - 69 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL - NULLIF ( + - 2, - + 54 ) * + + COUNT( * ) + 8
----
10

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL - NULLIF ( + - 2, - + 54 ) * + + COUNT ( * ) + 8
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT CASE 63 WHEN + + 92 * - + CAST( NULL AS SIGNED ) / - ( + + ( - 70 ) ) THEN - 12 / + + 53 / + ( - - 83 ) * + 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT CASE 63 WHEN + + 92 * - + CAST ( NULL AS INTEGER ) / - ( + + ( - 70 ) ) THEN - 12 / + + 53 / + ( - - 83 ) * + 2 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3642
SELECT COALESCE ( + + 58, + + MAX( ALL 78 ) + + COUNT( * ) DIV - - COUNT( * ) + - 6 + + ( 12 ) ) col2
----
58

skipif mysql # not compatible
query I rowsort label-3642
SELECT COALESCE ( + + 58, + + MAX ( ALL 78 ) + + COUNT ( * ) / - - COUNT ( * ) + - 6 + + ( 12 ) ) col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3643
SELECT COALESCE ( COUNT( * ), + 22 + + - COUNT( * ), CAST( NULL AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3643
SELECT COALESCE ( COUNT ( * ), + 22 + + - COUNT ( * ), CAST ( NULL AS INTEGER ) ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-3644
SELECT + NULLIF ( - + 25, - COUNT ( * ) + - CAST ( - 72 AS INTEGER ) ) AS col0
----
-25

query I rowsort
SELECT + 85 + + 73
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3646
SELECT ALL 25 * - 73 - 50 + + + 9 * - ( + - 0 ) * + 2 * - CAST( - 77 AS SIGNED ) AS col1
----
-1875

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL 25 * - 73 - 50 + + + 9 * - ( + - 0 ) * + 2 * - CAST ( - 77 AS INTEGER ) AS col1
----
-1875

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT + ( - - MIN( + 76 ) ) * - 29 AS col2
----
-2204

skipif mysql # not compatible
query I rowsort label-3647
SELECT + ( - - MIN ( + 76 ) ) * - 29 AS col2
----
-2204

query I rowsort
SELECT + - 4 * + + 82 * + 91 AS col0
----
-29848

query II rowsort
SELECT DISTINCT - 99 * + 25, - 23 * 92 col2
----
-2475
-2116

onlyif mysql # DIV for integer division: 
query I rowsort label-3650
SELECT ALL 42 * + - 98 DIV 96 * - 30 AS col2
----
1260

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL 42 * + - 98 / 96 * - 30 AS col2
----
1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3651
SELECT + ( - NULLIF ( - 34, 37 + - COUNT( * ) * 2 ) ) DIV + 32, ( COALESCE ( - - 59, + 96 ) ) + + CASE 73 WHEN - 12 THEN COUNT( * ) DIV - 99 + - ( - 13 ) * + - 87 * - ( 15 ) END * - - COUNT( * ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3651
SELECT + ( - NULLIF ( - 34, 37 + - COUNT ( * ) * 2 ) ) / + 32, ( COALESCE ( - - 59, + 96 ) ) + + CASE 73 WHEN - 12 THEN COUNT ( * ) / - 99 + - ( - 13 ) * + - 87 * - ( 15 ) END * - - COUNT ( * ) AS col2
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3652
SELECT ALL - 55 DIV + + 56 * 93
----
0

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - 55 / + + 56 * 93
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT + + 69 * + + 59 + - + MIN( + 37 ) + + 78 AS col0
----
4112

skipif mysql # not compatible
query I rowsort label-3654
SELECT + + 69 * + + 59 + - + MIN ( + 37 ) + + 78 AS col0
----
4112

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

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

query I rowsort
SELECT DISTINCT + 30 * 10 AS col0
----
300

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

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

query I rowsort
SELECT - 71 + - 58 + - + 38 AS col0
----
-167

query I rowsort
SELECT - 84 + - + 23
----
-107

query I rowsort
SELECT + 37 * - 3 AS col1
----
-111

query I rowsort
SELECT DISTINCT - - 69 * + 62 AS col1
----
4278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3662
SELECT - + ( + COUNT( * ) ), - CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3662
SELECT - + ( + COUNT ( * ) ), - CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

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

skipif mysql # not compatible
query I rowsort label-3663
SELECT COUNT ( * ) / + + 68
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT ALL 35 + - CAST( 28 AS SIGNED ) col1
----
7

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL 35 + - CAST ( 28 AS INTEGER ) col1
----
7

query I rowsort
SELECT ( 3 ) + 90 + 98 * + 15 + + 27
----
1590

query II rowsort
SELECT DISTINCT + 16 + + 24 - - 47 AS col0, 27 AS col2
----
87
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT DISTINCT CASE + - 17 WHEN + + MAX( CASE + 9 WHEN + + 19 * 17 / + 66 + + 21 / - 38 + 32 THEN + - 14 ELSE NULL END ) + + 48 THEN + COUNT( * ) * 30 / - 37 WHEN 23 THEN NULL END * - - 44 * + COALESCE ( - 12, COUNT( * ) ) * 8 + COUNT( * ) + - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT CASE + - 17 WHEN + + MAX ( CASE + 9 WHEN + + 19 * 17 / + 66 + + 21 / - 38 + 32 THEN + - 14 ELSE NULL END ) + + 48 THEN + COUNT ( * ) * 30 / - 37 WHEN 23 THEN NULL END * - - 44 * + COALESCE ( - 12, COUNT ( * ) ) * 8 + COUNT ( * ) + - - 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT ALL - COALESCE ( + + 9, + COUNT( * ) * + - CAST( + 2 AS SIGNED ), ( 97 ) ) + 4 * + - 9 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL - COALESCE ( + + 9, + COUNT ( * ) * + - CAST ( + 2 AS INTEGER ), ( 97 ) ) + 4 * + - 9 AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-3670
SELECT 21 DIV + - 82
----
0

skipif mysql # not compatible
query I rowsort label-3670
SELECT 21 / + - 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ALL - COUNT( + 23 ) + + 54 + - 33 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL - COUNT ( + 23 ) + + 54 + - 33 AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT DISTINCT - ( - - 49 ) DIV + 8 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT - ( - - 49 ) / + 8 AS col0
----
-6

query I rowsort
SELECT ALL - 53 + - 0 AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), + 60 * - + 25 * + CASE - 21 WHEN + 95 THEN 72 END + + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), + 60 * - + 25 * + CASE - 21 WHEN + 95 THEN 72 END + + 94 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3675
SELECT 32 AS col1, + 52 DIV + - 92
----
32
0

skipif mysql # not compatible
query II rowsort label-3675
SELECT 32 AS col1, + 52 / + - 92
----
32
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3676
SELECT DISTINCT - ( + 0 ) + COUNT( * ) DIV 39 * - 68
----
0

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - ( + 0 ) + COUNT ( * ) / 39 * - 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT 26 * COALESCE ( + 3, + - 61 * + COUNT( * ) ) + 59 AS col0
----
137

skipif mysql # not compatible
query I rowsort label-3677
SELECT 26 * COALESCE ( + 3, + - 61 * + COUNT ( * ) ) + 59 AS col0
----
137

query I rowsort
SELECT 56 * 12 col0
----
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT 30 + 75 + + 76 + - 89 + + COALESCE ( ( - 85 ), + 26, - 68 + - 86 / - COALESCE ( 88, 66, + 28 * + 2 + + 66 - - 39 * 59 * - + 23 ), - + 9 ) * - 91 + CAST( NULL AS SIGNED ) + - ( ( - 36 ) ) + 79 * - 9 * - 28 * + 28 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT 30 + 75 + + 76 + - 89 + + COALESCE ( ( - 85 ), + 26, - 68 + - 86 / - COALESCE ( 88, 66, + 28 * + 2 + + 66 - - 39 * 59 * - + 23 ), - + 9 ) * - 91 + CAST ( NULL AS INTEGER ) + - ( ( - 36 ) ) + 79 * - 9 * - 28 * + 28 * 42
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL - 27 * + MAX( - - 48 )
----
-1296

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL - 27 * + MAX ( - - 48 )
----
-1296

query I rowsort
SELECT ALL - 59 * 12 AS col2
----
-708

onlyif mysql # aggregate syntax: 
query II rowsort label-3683
SELECT ALL - + COUNT( * ) AS col1, - 27 * 24
----
-1
-648

skipif mysql # not compatible
query II rowsort label-3683
SELECT ALL - + COUNT ( * ) AS col1, - 27 * 24
----
-1
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + 63 * - 61 + MAX( ALL - - 8 ) + 36
----
-3799

skipif mysql # not compatible
query I rowsort label-3684
SELECT + 63 * - 61 + MAX ( ALL - - 8 ) + 36
----
-3799

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

skipif mysql # not compatible
query I rowsort label-3685
SELECT - 19 * - 71 * + + COUNT ( DISTINCT - - 17 ) * 59
----
79591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3686
SELECT ALL - CASE + 77 WHEN 71 + + 90 + + CAST( + 35 AS SIGNED ) + - 49 - SUM( 58 ) * - 94 + - COUNT( * ) / - ( + - 77 ) THEN NULL WHEN + COALESCE ( + - AVG ( DISTINCT - - 7 ), - - ( + 69 ) ) * + ( - COALESCE ( 85, 20, + + 75 * + + 89 - - 74 + + CAST( - 62 AS SIGNED ) * ( - ( 38 ) ) + 64, - NULLIF ( + 31, + 72 ) ) ) THEN NULL WHEN - SUM( ALL + 64 ) * 21 + 52 THEN CAST( 42 AS SIGNED ) / 35 END * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - CASE + 77 WHEN 71 + + 90 + + CAST ( + 35 AS INTEGER ) + - 49 - SUM ( 58 ) * - 94 + - COUNT ( * ) / - ( + - 77 ) THEN NULL WHEN + COALESCE ( + - AVG ( DISTINCT - - 7 ), - - ( + 69 ) ) * + ( - COALESCE ( 85, 20, + + 75 * + + 89 - - 74 + + CAST ( - 62 AS INTEGER ) * ( - ( 38 ) ) + 64, - NULLIF ( + 31, + 72 ) ) ) THEN NULL WHEN - SUM ( ALL + 64 ) * 21 + 52 THEN CAST ( 42 AS INTEGER ) / 35 END * - 12
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3688
SELECT COALESCE ( CASE + 93 WHEN - COALESCE ( - 35, + 63 + - - 38 * - 41, + SUM( + - 4 ) ) * + - NULLIF ( + ( + COUNT( * ) ), - 53 ) * + 56 THEN + + 84 END, - 1 ) * + COUNT( * ) DIV 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3688
SELECT COALESCE ( CASE + 93 WHEN - COALESCE ( - 35, + 63 + - - 38 * - 41, + SUM ( + - 4 ) ) * + - NULLIF ( + ( + COUNT ( * ) ), - 53 ) * + 56 THEN + + 84 END, - 1 ) * + COUNT ( * ) / 46 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT 92 + 2 DIV - 13 + + + 58 + - + 53 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3689
SELECT 92 + 2 / - 13 + + + 58 + - + 53 AS col2
----
97

query I rowsort
SELECT ALL - 93 * - + 87
----
8091

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3692
SELECT 10 * 34 + + + 13 AS col2, - ( + + COALESCE ( + 96, + MIN( ALL + + 94 ) ) ) AS col1
----
353
-96

skipif mysql # not compatible
query II rowsort label-3692
SELECT 10 * 34 + + + 13 AS col2, - ( + + COALESCE ( + 96, + MIN ( ALL + + 94 ) ) ) AS col1
----
353
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT + 26 + COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3693
SELECT + 26 + COUNT ( * ) AS col0
----
27

query I rowsort
SELECT ALL 65 * 99 AS col0
----
6435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT - 35 * + 10 + - - 27 * + - CAST( + 85 AS SIGNED ) AS col0
----
-2645

skipif mysql # not compatible
query I rowsort label-3695
SELECT - 35 * + 10 + - - 27 * + - CAST ( + 85 AS INTEGER ) AS col0
----
-2645

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL 5 + + + COUNT( - 31 ) * - + 92
----
-87

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL 5 + + + COUNT ( - 31 ) * - + 92
----
-87

query I rowsort
SELECT DISTINCT + ( - 37 ) + ( + 79 ) + 8 * - 44 * - + 17 AS col0
----
6026

query I rowsort
SELECT ALL 88 + - 62
----
26

query I rowsort
SELECT + 1 + + 45
----
46

query I rowsort
SELECT 34 + 19 AS col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3701
SELECT 12 + + - COUNT( * ) AS col0, 75 + + COALESCE ( + 17, - - 85, - + 83 ) + - + 12 * - - 90 * - 69 col0
----
11
74612

skipif mysql # not compatible
query II rowsort label-3701
SELECT 12 + + - COUNT ( * ) AS col0, 75 + + COALESCE ( + 17, - - 85, - + 83 ) + - + 12 * - - 90 * - 69 col0
----
11
74612

query I rowsort
SELECT DISTINCT 93 + 80
----
173

query I rowsort
SELECT 94 * - 20 + 38
----
-1842

onlyif mysql # aggregate syntax: 
query II rowsort label-3704
SELECT ALL - 76, CASE + 49 WHEN + 40 * - 6 * 51 - COUNT( * ) THEN NULL WHEN - 39 THEN + 32 END / + + 94 AS col0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-3704
SELECT ALL - 76, CASE + 49 WHEN + 40 * - 6 * 51 - COUNT ( * ) THEN NULL WHEN - 39 THEN + 32 END / + + 94 AS col0
----
-76
NULL

query II rowsort
SELECT DISTINCT - 82, - 60 AS col1
----
-82
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT MIN( 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3706
SELECT MIN ( 13 ) AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT + 61 / + 98 * 47 + - 80 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3707
SELECT + 61 / + 98 * 47 + - 80 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 40 * - 35 - 90
----
1310

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3709
SELECT ALL - 95 AS col1, 63 + + COALESCE ( 21, + + COUNT( * ) ) DIV + 34 AS col2
----
-95
63

skipif mysql # not compatible
query II rowsort label-3709
SELECT ALL - 95 AS col1, 63 + + COALESCE ( 21, + + COUNT ( * ) ) / + 34 AS col2
----
-95
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3710
SELECT ( - 62 ) * + CASE + 8 WHEN + 32 THEN NULL WHEN + + 23 THEN NULL ELSE + COALESCE ( + CASE + - CASE - COUNT( ALL 1 ) WHEN COALESCE ( 45, NULLIF ( SUM( DISTINCT - - 50 ), - 33 * 64 * - 2 ) * - COALESCE ( - ( COUNT( + 17 ) ), + 96 * CAST( NULL AS SIGNED ) * 94 ), 50 ) * 20 THEN + 26 * - 56 WHEN + 56 THEN NULL ELSE + 59 * 74 END WHEN 57 * - 68 THEN NULL ELSE 36 END, + 87 ) END * + COUNT( * ) AS col0
----
-2232

skipif mysql # not compatible
query I rowsort label-3710
SELECT ( - 62 ) * + CASE + 8 WHEN + 32 THEN NULL WHEN + + 23 THEN NULL ELSE + COALESCE ( + CASE + - CASE - COUNT ( ALL 1 ) WHEN COALESCE ( 45, NULLIF ( SUM ( DISTINCT - - 50 ), - 33 * 64 * - 2 ) * - COALESCE ( - ( COUNT ( + 17 ) ), + 96 * CAST ( NULL AS INTEGER ) * 94 ), 50 ) * 20 THEN + 26 * - 56 WHEN + 56 THEN NULL ELSE + 59 * 74 END WHEN 57 * - 68 THEN NULL ELSE 36 END, + 87 ) END * + COUNT ( * ) AS col0
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL - COALESCE ( - COUNT( * ), - 10 * 66 )
----
1

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - COALESCE ( - COUNT ( * ), - 10 * 66 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3712
SELECT ALL 38 * + 86, - CASE + - 98 WHEN 1 / - + MAX( DISTINCT - 20 ) THEN COUNT( * ) / - 21 - COUNT( * ) * - - MAX( 97 ) / + + 0 END + COUNT( * ) + + - 11 col1
----
3268
NULL

skipif mysql # not compatible
query II rowsort label-3712
SELECT ALL 38 * + 86, - CASE + - 98 WHEN 1 / - + MAX ( DISTINCT - 20 ) THEN COUNT ( * ) / - 21 - COUNT ( * ) * - - MAX ( 97 ) / + + 0 END + COUNT ( * ) + + - 11 col1
----
3268
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3714
SELECT DISTINCT - 59 AS col0, - CASE NULLIF ( - + 63, + CASE - 19 WHEN - 94 + + + COUNT( * ) THEN - 59 / - 85 * - ( 19 ) * + + 76 WHEN - 88 / COUNT( - - CAST( 86 AS SIGNED ) ) - - + 72 THEN + + NULLIF ( - - NULLIF ( + + 80, - CAST( NULL AS SIGNED ) ), - 43 + 64 ) WHEN - 19 THEN 18 ELSE ( - 36 ) - 44 END ) WHEN SUM( + 50 ) THEN - 20 + ( - MAX( ALL + 87 ) ) ELSE NULL END
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-3714
SELECT DISTINCT - 59 AS col0, - CASE NULLIF ( - + 63, + CASE - 19 WHEN - 94 + + + COUNT ( * ) THEN - 59 / - 85 * - ( 19 ) * + + 76 WHEN - 88 / COUNT ( - - CAST ( 86 AS INTEGER ) ) - - + 72 THEN + + NULLIF ( - - NULLIF ( + + 80, - CAST ( NULL AS INTEGER ) ), - 43 + 64 ) WHEN - 19 THEN 18 ELSE ( - 36 ) - 44 END ) WHEN SUM ( + 50 ) THEN - 20 + ( - MAX ( ALL + 87 ) ) ELSE NULL END
----
-59
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3715
SELECT ALL + 49 DIV + SUM( DISTINCT - NULLIF ( + 50, 48 ) ) + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL + 49 / + SUM ( DISTINCT - NULLIF ( + 50, 48 ) ) + - 6
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT 46 * - - CAST( - 91 AS SIGNED )
----
-4186

skipif mysql # not compatible
query I rowsort label-3716
SELECT 46 * - - CAST ( - 91 AS INTEGER )
----
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL - - ( - MIN( DISTINCT + 93 ) ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL - - ( - MIN ( DISTINCT + 93 ) ) AS col1
----
-93

query II rowsort
SELECT DISTINCT - 48, 49 AS col0
----
-48
49

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3720
SELECT 41, 91 / 59 / + MAX( ALL - 93 ) + + 0 + + CAST( NULL AS DECIMAL ) * + 5 * 80 AS col1
----
41
NULL

skipif mysql # not compatible
query II rowsort label-3720
SELECT 41, 91 / 59 / + MAX ( ALL - 93 ) + + 0 + + CAST ( NULL AS REAL ) * + 5 * 80 AS col1
----
41
NULL

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

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
0

query II rowsort
SELECT + 75, + 87 col0
----
75
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT + - 28 * - 14 + 57 + - 26 + + 66 * + - COUNT( * )
----
357

skipif mysql # not compatible
query I rowsort label-3723
SELECT + - 28 * - 14 + 57 + - 26 + + 66 * + - COUNT ( * )
----
357

onlyif mysql # aggregate syntax: 
query II rowsort label-3724
SELECT 15 + - COUNT( * ) AS col0, + 25 AS col0
----
14
25

skipif mysql # not compatible
query II rowsort label-3724
SELECT 15 + - COUNT ( * ) AS col0, + 25 AS col0
----
14
25

query I rowsort
SELECT 46 * + - 9 * + 69 AS col2
----
-28566

query I rowsort
SELECT ALL + - 40 + - 68 AS col0
----
-108

query II rowsort
SELECT DISTINCT + 64 * - 23 AS col2, - 8
----
-1472
-8

query II rowsort
SELECT ALL 82 AS col0, + COALESCE ( + + 39, - 55 ) AS col2
----
82
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) + - 0 * + 18 / - - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) + - 0 * + 18 / - - 51 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3730
SELECT DISTINCT + COUNT( * ) + - - NULLIF ( COUNT( * ), + - ( + - 94 ) * + 90 ) + - 54 * - COALESCE ( + 45, + - 4 + + - ( CAST( NULL AS SIGNED ) ) )
----
2432

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT + COUNT ( * ) + - - NULLIF ( COUNT ( * ), + - ( + - 94 ) * + 90 ) + - 54 * - COALESCE ( + 45, + - 4 + + - ( CAST ( NULL AS INTEGER ) ) )
----
2432

query I rowsort
SELECT - ( + 54 ) - - - 92 * - 21
----
1878

onlyif mysql # DIV for integer division: 
query I rowsort label-3732
SELECT - CASE - 41 WHEN 14 THEN - ( + 89 ) WHEN + 25 * + 76 THEN NULL WHEN + ( - 71 ) THEN NULL ELSE - - 1 DIV - 92 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3732
SELECT - CASE - 41 WHEN 14 THEN - ( + 89 ) WHEN + 25 * + 76 THEN NULL WHEN + ( - 71 ) THEN NULL ELSE - - 1 / - 92 END AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3733
SELECT ALL COUNT( * ) AS col1, CAST( - 67 AS SIGNED )
----
1
-67

skipif mysql # not compatible
query II rowsort label-3733
SELECT ALL COUNT ( * ) AS col1, CAST ( - 67 AS INTEGER )
----
1
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - 90 + + COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-3734
SELECT - 90 + + COUNT ( * ) AS col0
----
-89

query I rowsort
SELECT + + ( + 80 ) + + 74 AS col1
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3736
SELECT ALL ( - 18 ) DIV + ( COUNT( * ) ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL ( - 18 ) / + ( COUNT ( * ) ) col0
----
-18

query I rowsort
SELECT ALL 40 + - ( 22 ) * NULLIF ( + 37, - 97 + + NULLIF ( + 51, 20 * - - 61 + 68 ) ) + - - 43
----
-731

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT + 22 - 23 + - 26 DIV 73 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-3738
SELECT + 22 - 23 + - 26 / 73 / - 45
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3739
SELECT ALL CAST( NULL AS SIGNED ) * MAX( 64 ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3740
SELECT DISTINCT MIN( DISTINCT + 20 ) * + 69 + + + COALESCE ( + - ( - 61 ), 20 ) * 58 DIV - ( - - 34 ) AS col2, + 54
----
1276
54

skipif mysql # not compatible
query II rowsort label-3740
SELECT DISTINCT MIN ( DISTINCT + 20 ) * + 69 + + + COALESCE ( + - ( - 61 ), 20 ) * 58 / - ( - - 34 ) AS col2, + 54
----
1276
54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3742
SELECT DISTINCT CAST( 33 AS SIGNED ) - 61 + - CASE - COUNT( * ) WHEN 99 THEN - - MIN( 57 ) / 13 + 82 + - 97 / - COALESCE ( + 20, - 92 - - AVG ( - 97 ), 33 ) + - 88 END + + CASE - 95 WHEN + + MIN( + COALESCE ( 22, 45 * + - 95 * + 55 / + - 6 ) ) * 57 THEN COUNT( * ) ELSE + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT CAST ( 33 AS INTEGER ) - 61 + - CASE - COUNT ( * ) WHEN 99 THEN - - MIN ( 57 ) / 13 + 82 + - 97 / - COALESCE ( + 20, - 92 - - AVG ( - 97 ), 33 ) + - 88 END + + CASE - 95 WHEN + + MIN ( + COALESCE ( 22, 45 * + - 95 * + 55 / + - 6 ) ) * 57 THEN COUNT ( * ) ELSE + 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT - 86 + MAX( DISTINCT + 76 )
----
-10

skipif mysql # not compatible
query I rowsort label-3743
SELECT - 86 + MAX ( DISTINCT + 76 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3744
SELECT - CASE - CASE COUNT( * ) WHEN - ( 40 ) * - + 34 + - CAST( NULL AS SIGNED ) * - 74 * + 72 THEN - 95 * + 70 + - COUNT( DISTINCT - + NULLIF ( - 78, - ( - 25 ) / - ( + - 24 ) ) ) ELSE + 72 + - 23 END WHEN - 9 * + 95 THEN 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT - CASE - CASE COUNT ( * ) WHEN - ( 40 ) * - + 34 + - CAST ( NULL AS INTEGER ) * - 74 * + 72 THEN - 95 * + 70 + - COUNT ( DISTINCT - + NULLIF ( - 78, - ( - 25 ) / - ( + - 24 ) ) ) ELSE + 72 + - 23 END WHEN - 9 * + 95 THEN 92 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT - COALESCE ( + - 54, - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-3745
SELECT - COALESCE ( + - 54, - COUNT ( * ) )
----
54

query II rowsort
SELECT ( - - 81 ) AS col1, 42
----
81
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT + 98 - + SUM( + + 18 ) + + - COUNT( * ) + - - 91 + + MIN( DISTINCT - 92 ) + - ( + + 41 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3747
SELECT + 98 - + SUM ( + + 18 ) + + - COUNT ( * ) + - - 91 + + MIN ( DISTINCT - 92 ) + - ( + + 41 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT + NULLIF ( - 51, - + CASE + + COUNT( * ) WHEN - COUNT( * ) THEN 97 END ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3748
SELECT + NULLIF ( - 51, - + CASE + + COUNT ( * ) WHEN - COUNT ( * ) THEN 97 END ) AS col1
----
-51

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3750
SELECT ALL 62 * + + 47 AS col2, 48 DIV + - COALESCE ( - 88, 16 + - COALESCE ( - 93, - - 62 ) ) * + 77 AS col1
----
2914
0

skipif mysql # not compatible
query II rowsort label-3750
SELECT ALL 62 * + + 47 AS col2, 48 / + - COALESCE ( - 88, 16 + - COALESCE ( - 93, - - 62 ) ) * + 77 AS col1
----
2914
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3751
SELECT ( + 72 ), 6 + + 76 + - 12 DIV - 69 + + + COUNT( * ) AS col2
----
72
83

skipif mysql # not compatible
query II rowsort label-3751
SELECT ( + 72 ), 6 + + 76 + - 12 / - 69 + + + COUNT ( * ) AS col2
----
72
83

query I rowsort
SELECT - 80 * + 39 + 90 AS col1
----
-3030

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

skipif mysql # not compatible
query I rowsort label-3753
SELECT COUNT ( * ) * - 1 + MAX ( + 61 ) AS col1
----
60

query I rowsort
SELECT - + 32 * + + 89 col2
----
-2848

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL 88 * 40 + 49 + + COUNT( * ) AS col0
----
3570

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL 88 * 40 + 49 + + COUNT ( * ) AS col0
----
3570

onlyif mysql # aggregate syntax: 
query II rowsort label-3756
SELECT + 81 + + COUNT( * ) * 43 AS col0, + 65 * + 33 - 22 + - 88 * + 63 + + 8
----
124
-3413

skipif mysql # not compatible
query II rowsort label-3756
SELECT + 81 + + COUNT ( * ) * 43 AS col0, + 65 * + 33 - 22 + - 88 * + 63 + + 8
----
124
-3413

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL + 52 * - + COUNT( ALL - 98 ) + + 68 * - - ( + 31 ) * + ( - 95 ) - - - COUNT( * )
----
-200313

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + 52 * - + COUNT ( ALL - 98 ) + + 68 * - - ( + 31 ) * + ( - 95 ) - - - COUNT ( * )
----
-200313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT DISTINCT + 16 * - - 9 + CAST( NULL AS SIGNED ) + + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT + 16 * - - 9 + CAST ( NULL AS INTEGER ) + + + 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3759
SELECT ALL - 60 / - - CASE SUM( ALL - 94 ) WHEN - + 26 THEN 37 + - - 79 WHEN - 30 + CAST( NULL AS SIGNED ) THEN + - CASE + - 87 WHEN + 71 + ( - 74 ) * + - 58 * - 58 THEN + - NULLIF ( - + MIN( DISTINCT + 11 ), + - AVG ( ALL - 29 ) * 76 ) WHEN - - 18 + + - 90 THEN + - 42 * + + AVG ( DISTINCT - + 41 ) * + 95 ELSE NULL END - 22 * - 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL - 60 / - - CASE SUM ( ALL - 94 ) WHEN - + 26 THEN 37 + - - 79 WHEN - 30 + CAST ( NULL AS INTEGER ) THEN + - CASE + - 87 WHEN + 71 + ( - 74 ) * + - 58 * - 58 THEN + - NULLIF ( - + MIN ( DISTINCT + 11 ), + - AVG ( ALL - 29 ) * 76 ) WHEN - - 18 + + - 90 THEN + - 42 * + + AVG ( DISTINCT - + 41 ) * + 95 ELSE NULL END - 22 * - 95 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3760
SELECT - 22 + + CAST( + SUM( + + 2 ) AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-3760
SELECT - 22 + + CAST ( + SUM ( + + 2 ) AS INTEGER )
----
-20

query I rowsort
SELECT + + 1 * 67 * 63 + - - 54
----
4275

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3763
SELECT ALL - - 20 + - ( - 45 ) DIV + + 79
----
20

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL - - 20 + - ( - 45 ) / + + 79
----
20

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

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

query I rowsort
SELECT - 46 + 26 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL + NULLIF ( 36, - ( 71 ) ) * COUNT( * ) + + 34 * + 74 + COALESCE ( 41, + + 20, + - 33 ) AS col2
----
2593

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL + NULLIF ( 36, - ( 71 ) ) * COUNT ( * ) + + 34 * + 74 + COALESCE ( 41, + + 20, + - 33 ) AS col2
----
2593

onlyif mysql # aggregate syntax: 
query II rowsort label-3767
SELECT 24 AS col2, + CASE COUNT( * ) WHEN - COUNT( * ) THEN - 69 END + - + 90 - + 49 + + 93 / COUNT( * ) * + + NULLIF ( - COUNT( * ), + 94 ) * + 5 - 32
----
24
NULL

skipif mysql # not compatible
query II rowsort label-3767
SELECT 24 AS col2, + CASE COUNT ( * ) WHEN - COUNT ( * ) THEN - 69 END + - + 90 - + 49 + + 93 / COUNT ( * ) * + + NULLIF ( - COUNT ( * ), + 94 ) * + 5 - 32
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT DISTINCT + SUM( DISTINCT - - 19 ) - + CASE 69 WHEN - 87 THEN + COUNT( ALL + 88 ) + + 45 * - + 31 WHEN - 72 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT + SUM ( DISTINCT - - 19 ) - + CASE 69 WHEN - 87 THEN + COUNT ( ALL + 88 ) + + 45 * - + 31 WHEN - 72 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3769
SELECT ALL CAST( NULL AS SIGNED ) col1, NULLIF ( - 7, - + COUNT( * ) + + 96 )
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-3769
SELECT ALL CAST ( NULL AS INTEGER ) col1, NULLIF ( - 7, - + COUNT ( * ) + + 96 )
----
NULL
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3770
SELECT DISTINCT 52 - + - ( + - COALESCE ( + - ( + 82 ), + MIN( - - 80 ) DIV + 76 * - COUNT( * ) + 83 DIV - - 88 DIV + COUNT( 27 ) * - COUNT( * ) + - 51 * + CAST( - 32 AS SIGNED ) - - 62 ) ) * - - 33 + + 26 - 16 + - 89 + - 74 AS col0, - 5 * - + 82
----
2605
410

skipif mysql # not compatible
query II rowsort label-3770
SELECT DISTINCT 52 - + - ( + - COALESCE ( + - ( + 82 ), + MIN ( - - 80 ) / + 76 * - COUNT ( * ) + 83 / - - 88 / + COUNT ( 27 ) * - COUNT ( * ) + - 51 * + CAST ( - 32 AS INTEGER ) - - 62 ) ) * - - 33 + + 26 - 16 + - 89 + - 74 AS col0, - 5 * - + 82
----
2605
410

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

query II rowsort
SELECT 48, 29 AS col1
----
48
29

query I rowsort
SELECT - 4 + 32
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3774
SELECT + ( + + 12 ) + - + 36 + - 83 * - 12 * ( - 71 ) * + CAST( NULL AS SIGNED ) * + AVG ( DISTINCT + ( + 21 ) ) * 16 + - 97, CAST( NULL AS SIGNED ) * - 90 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3774
SELECT + ( + + 12 ) + - + 36 + - 83 * - 12 * ( - 71 ) * + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + ( + 21 ) ) * 16 + - 97, CAST ( NULL AS INTEGER ) * - 90 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT - SUM( - 19 ) * + 7 + - + ( + - 80 ) col2
----
213

skipif mysql # not compatible
query I rowsort label-3775
SELECT - SUM ( - 19 ) * + 7 + - + ( + - 80 ) col2
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT + ( - ( + + CAST( NULL AS SIGNED ) ) ) * + 88 * - ( + 20 ) * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT + ( - ( + + CAST ( NULL AS INTEGER ) ) ) * + 88 * - ( + 20 ) * + 56
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT ALL - 95 DIV 3 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - 95 / 3 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT - 74 + + 82 * - 43 + - - COUNT( * ) + - + 4 AS col0
----
-3603

skipif mysql # not compatible
query I rowsort label-3778
SELECT - 74 + + 82 * - 43 + - - COUNT ( * ) + - + 4 AS col0
----
-3603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3779
SELECT - 33 DIV + COUNT( DISTINCT 34 )
----
-33

skipif mysql # not compatible
query I rowsort label-3779
SELECT - 33 / + COUNT ( DISTINCT 34 )
----
-33

query I rowsort
SELECT - 50 + 78 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT ALL - CASE - - 61 WHEN COUNT( * ) + + - 21 THEN + 29 ELSE NULL END / COUNT( ALL + 88 ) + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL - CASE - - 61 WHEN COUNT ( * ) + + - 21 THEN + 29 ELSE NULL END / COUNT ( ALL + 88 ) + 39
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT ALL + ( - MAX( ALL - - 51 ) ), - 62 AS col0
----
-51
-62

skipif mysql # not compatible
query II rowsort label-3782
SELECT ALL + ( - MAX ( ALL - - 51 ) ), - 62 AS col0
----
-51
-62

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT 96 / 88 + - + 18 + - 47 * + + 51 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT 96 / 88 + - + 18 + - 47 * + + 51 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3785
SELECT + 99 + - COUNT( * ) + - + 80, + 84 * + + 76 AS col0
----
18
6384

skipif mysql # not compatible
query II rowsort label-3785
SELECT + 99 + - COUNT ( * ) + - + 80, + 84 * + + 76 AS col0
----
18
6384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3786
SELECT + 12 + - 26 * + COUNT( ALL 70 ) DIV - COUNT( * ) + + COUNT( * ) + + 15 + + 9 DIV + + 58 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3786
SELECT + 12 + - 26 * + COUNT ( ALL 70 ) / - COUNT ( * ) + + COUNT ( * ) + + 15 + + 9 / + + 58 AS col2
----
54

query II rowsort
SELECT - 88 col2, - 70
----
-88
-70

query I rowsort
SELECT ALL + + 69 + + - 62
----
7

query I rowsort
SELECT DISTINCT 0 + - 83 + - - 37 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT - MAX( ALL - 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3790
SELECT - MAX ( ALL - 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL + MIN( 72 ) + - 50 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + MIN ( 72 ) + - 50 AS col1
----
22

query I rowsort
SELECT ALL - 20 + 28 AS col2
----
8

query I rowsort
SELECT ALL - 70 * - - 93 col2
----
-6510

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT - ( - 18 ) * - MIN( - 13 ) AS col2
----
234

skipif mysql # not compatible
query I rowsort label-3794
SELECT - ( - 18 ) * - MIN ( - 13 ) AS col2
----
234

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

skipif mysql # not compatible
query I rowsort label-3795
SELECT + MAX ( + 52 )
----
52

query I rowsort
SELECT DISTINCT - 37 * - 44 * - - 61 + + 54
----
99362

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT ALL 12 - + 97 * COUNT( * ) * - 31 * + 45 * + 93 * - - 27
----
339775977

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL 12 - + 97 * COUNT ( * ) * - 31 * + 45 * + 93 * - - 27
----
339775977

query I rowsort
SELECT DISTINCT 16 * + 85 AS col1
----
1360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3799
SELECT + ( - + MIN( ALL 25 ) ) DIV + 17 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3799
SELECT + ( - + MIN ( ALL 25 ) ) / + 17 AS col2
----
-1

query I rowsort
SELECT DISTINCT 74 * + - 85
----
-6290

query I rowsort
SELECT 40 * 74 AS col2
----
2960

onlyif mysql # aggregate syntax: 
query II rowsort label-3802
SELECT ( - 21 ) + - 10 + + + COALESCE ( - + COUNT( * ), - MIN( - 93 ) ) AS col1, + 43 + - + 96
----
-32
-53

skipif mysql # not compatible
query II rowsort label-3802
SELECT ( - 21 ) + - 10 + + + COALESCE ( - + COUNT ( * ), - MIN ( - 93 ) ) AS col1, + 43 + - + 96
----
-32
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT 56 + 35 - + + ( + MAX( 5 ) ) * - 59
----
386

skipif mysql # not compatible
query I rowsort label-3803
SELECT 56 + 35 - + + ( + MAX ( 5 ) ) * - 59
----
386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3804
SELECT 66 + COUNT( * ) + + + NULLIF ( - ( + - 43 ), - + ( - + COUNT( ALL + ( + 10 ) ) ) DIV + + 43 ) + 46 * 36 DIV 97
----
127

skipif mysql # not compatible
query I rowsort label-3804
SELECT 66 + COUNT ( * ) + + + NULLIF ( - ( + - 43 ), - + ( - + COUNT ( ALL + ( + 10 ) ) ) / + + 43 ) + 46 * 36 / 97
----
127

query I rowsort
SELECT ALL + 8 * ( + ( - - 82 ) )
----
656

query I rowsort
SELECT 40 * + - 50 AS col2
----
-2000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3807
SELECT SUM( + CAST( NULL AS SIGNED ) ) * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) * + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT - 90 * COUNT( * ) * + 99
----
-8910

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT - 90 * COUNT ( * ) * + 99
----
-8910

query II rowsort
SELECT DISTINCT - 81 * + 41 * - NULLIF ( - 43, + + 76 ) col1, 23 * - 3 * - 54 AS col0
----
-142803
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT 59 - + MIN( - 26 )
----
85

skipif mysql # not compatible
query I rowsort label-3810
SELECT 59 - + MIN ( - 26 )
----
85

query I rowsort
SELECT ALL - 9 * + - 45 AS col0
----
405

query I rowsort
SELECT 65 * 52
----
3380

query I rowsort
SELECT DISTINCT - 91 * - 73
----
6643

query I rowsort
SELECT ALL + CASE - 19 WHEN + 10 - ( - 67 ) THEN 32 * - 71 ELSE NULL END + + 63 AS col1
----
NULL

query I rowsort
SELECT + 36 - 51
----
-15

query II rowsort
SELECT DISTINCT 89 * + - 90 AS col1, - 72 AS col1
----
-8010
-72

query I rowsort
SELECT 0 * - 81 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3818
SELECT DISTINCT - + 54 DIV 42 - 29 + + 56 + - - 3
----
29

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT - + 54 / 42 - 29 + + 56 + - - 3
----
29

query II rowsort
SELECT DISTINCT 11 + - NULLIF ( ( - 24 ), + + 35 ) AS col2, - ( - 55 ) + 63
----
35
118

query I rowsort
SELECT ALL 16 + + 48 AS col2
----
64

query I rowsort
SELECT - 86 * 14
----
-1204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT + - 0 * + - 33 + - CAST( 61 AS SIGNED ) - + - 71 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3822
SELECT + - 0 * + - 33 + - CAST ( 61 AS INTEGER ) - + - 71 AS col0
----
10

query I rowsort
SELECT 23 - - 34 * 11 AS col2
----
397

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3824
SELECT + COUNT( * ) DIV + 13 + - 61 + - 18
----
-79

skipif mysql # not compatible
query I rowsort label-3824
SELECT + COUNT ( * ) / + 13 + - 61 + - 18
----
-79

query I rowsort
SELECT ALL + ( - - 63 ) - - 63 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT - COUNT( DISTINCT + 59 ) * CASE - 16 WHEN + COUNT( * ) THEN AVG ( ALL 7 ) WHEN - 12 THEN NULL END - + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT - COUNT ( DISTINCT + 59 ) * CASE - 16 WHEN + COUNT ( * ) THEN AVG ( ALL 7 ) WHEN - 12 THEN NULL END - + - 33
----
NULL

query I rowsort
SELECT ALL + 48 - + 30
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT - 2 * - 71 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT - 2 * - 71 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT COUNT( * ) + + - 99 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3829
SELECT COUNT ( * ) + + - 99 AS col1
----
-98

query I rowsort
SELECT ALL 11 - - 83
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT + MIN( - + 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3831
SELECT + MIN ( - + 8 ) AS col0
----
-8

query II rowsort
SELECT - 28, 85 + + - 25 AS col2
----
-28
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT 50 DIV - + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3833
SELECT 50 / - + 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT 21 * + MAX( 21 )
----
441

skipif mysql # not compatible
query I rowsort label-3834
SELECT 21 * + MAX ( 21 )
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT DISTINCT COUNT( - 12 ) * 79
----
79

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT COUNT ( - 12 ) * 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT - 50 + 19 + - - MAX( ALL + 38 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT - 50 + 19 + - - MAX ( ALL + 38 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT CASE + - COUNT( * ) WHEN - - 22 / + 28 THEN COUNT( ALL - 27 ) * 93 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT CASE + - COUNT ( * ) WHEN - - 22 / + 28 THEN COUNT ( ALL - 27 ) * 93 ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3838
SELECT DISTINCT + 32 + + 62 + + CAST( + 89 AS DECIMAL ) * + + COUNT( * ) * + ( + ( CASE + 50 WHEN 64 * - 32 * CASE COUNT( * ) WHEN - 67 THEN 82 * + 91 WHEN - 87 * - + 15 THEN AVG ( 47 ) ELSE 1 END THEN + 34 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + 32 + + 62 + + CAST ( + 89 AS REAL ) * + + COUNT ( * ) * + ( + ( CASE + 50 WHEN 64 * - 32 * CASE COUNT ( * ) WHEN - 67 THEN 82 * + 91 WHEN - 87 * - + 15 THEN AVG ( 47 ) ELSE 1 END THEN + 34 END ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 9 + 59
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT 46 + - + 26 + ( + + 17 ) - COUNT( * ) + COALESCE ( - - 89, + 23 * - + MIN( DISTINCT - 6 ) ) + 91 + + + COUNT( * ) * 94 * + 55 * - COUNT( * ) * - 14 AS col2
----
72596

skipif mysql # not compatible
query I rowsort label-3840
SELECT 46 + - + 26 + ( + + 17 ) - COUNT ( * ) + COALESCE ( - - 89, + 23 * - + MIN ( DISTINCT - 6 ) ) + 91 + + + COUNT ( * ) * 94 * + 55 * - COUNT ( * ) * - 14 AS col2
----
72596

query I rowsort
SELECT 81 - + 6 + 76 col0
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT CASE + 75 WHEN - 39 / + - MAX( + + ( - 8 ) ) THEN + 62 END + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT CASE + 75 WHEN - 39 / + - MAX ( + + ( - 8 ) ) THEN + 62 END + 23
----
NULL

query II rowsort
SELECT ALL + 32 + - - 33 + 38 - + 38 + + 61 AS col1, 46 + + 34 * 19
----
126
692

query I rowsort
SELECT - COALESCE ( + 46, - 59, + ( ( + - 43 ) ) )
----
-46

query I rowsort
SELECT + 85 + + + 77
----
162

query I rowsort
SELECT - 34 + + - 78 AS col2
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3847
SELECT ALL COUNT( * ) + + 90 + - 70 - + CASE - ( + SUM( - 81 ) ) WHEN 32 + 90 + + 22 THEN - 26 END - - 75 + 91 * - CASE + + 53 WHEN 4 * + 13 * - 14 + CAST( NULL AS SIGNED ) + NULLIF ( 38, + 78 * - + 66 * 7 ) THEN + 0 + - 54 ELSE NULL END * 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL COUNT ( * ) + + 90 + - 70 - + CASE - ( + SUM ( - 81 ) ) WHEN 32 + 90 + + 22 THEN - 26 END - - 75 + 91 * - CASE + + 53 WHEN 4 * + 13 * - 14 + CAST ( NULL AS INTEGER ) + NULLIF ( 38, + 78 * - + 66 * 7 ) THEN + 0 + - 54 ELSE NULL END * 96 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3848
SELECT ALL + - 58 * + 92 - + 58 + MAX( DISTINCT - 58 ) DIV - - 19 - 14 + + 94 - + + COUNT( ALL - - CAST( NULL AS SIGNED ) ) AS col2
----
-5317

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL + - 58 * + 92 - + 58 + MAX ( DISTINCT - 58 ) / - - 19 - 14 + + 94 - + + COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2
----
-5317

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

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

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

skipif mysql # not compatible
query I rowsort label-3850
SELECT - - COUNT ( * ) / + 71 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3851
SELECT DISTINCT + + 76 DIV - 56
----
-1

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT + + 76 / - 56
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ALL + 88 * + 51 * - SUM( ALL + 60 ) AS col2
----
-269280

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL + 88 * + 51 * - SUM ( ALL + 60 ) AS col2
----
-269280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3853
SELECT ALL COUNT( * ) * - - 22 * - 6, COALESCE ( + 43, 96 DIV ( 28 ) ) AS col1
----
-132
43

skipif mysql # not compatible
query II rowsort label-3853
SELECT ALL COUNT ( * ) * - - 22 * - 6, COALESCE ( + 43, 96 / ( 28 ) ) AS col1
----
-132
43

query I rowsort
SELECT - ( + 56 ) * - - 88
----
-4928

query I rowsort
SELECT ALL 30 * - + 71
----
-2130

query I rowsort
SELECT + 4 * - 67 AS col0
----
-268

query I rowsort
SELECT ALL + + 34 * - 14 * + 37
----
-17612

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT DISTINCT - COUNT( * ) * - ( + 95 ) * 16
----
1520

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT - COUNT ( * ) * - ( + 95 ) * 16
----
1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT ALL - CAST( NULL AS SIGNED ) * + COALESCE ( + - 79, 19 * - 50 + - 5 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - CAST ( NULL AS INTEGER ) * + COALESCE ( + - 79, 19 * - 50 + - 5 ) AS col0
----
NULL

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

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

query I rowsort
SELECT + 87 * 88 AS col2
----
7656

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL 22 * COUNT( * ) + - 87 + + - 22 + MIN( DISTINCT + + ( + 42 ) ) + - - 87 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL 22 * COUNT ( * ) + - 87 + + - 22 + MIN ( DISTINCT + + ( + 42 ) ) + - - 87 AS col1
----
42

query II rowsort
SELECT ALL 91 * 94 * 56 + + - 95 + + 51 + 0, 60 col0
----
478980
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3866
SELECT COUNT( ALL 2 ) AS col0, + NULLIF ( 24, + - 43 + - + 48 - ( + + 97 ) + COUNT( * ) + + NULLIF ( - MAX( DISTINCT 11 ), 85 + MAX( + 44 ) + COALESCE ( - MAX( ALL 92 ), 8, + - 85 + + 93 * - 25 ) / - 68 * - CAST( NULL AS SIGNED ) ) + ( + - 17 ) * - 40 * + + 54 ) AS col2
----
1
24

skipif mysql # not compatible
query II rowsort label-3866
SELECT COUNT ( ALL 2 ) AS col0, + NULLIF ( 24, + - 43 + - + 48 - ( + + 97 ) + COUNT ( * ) + + NULLIF ( - MAX ( DISTINCT 11 ), 85 + MAX ( + 44 ) + COALESCE ( - MAX ( ALL 92 ), 8, + - 85 + + 93 * - 25 ) / - 68 * - CAST ( NULL AS INTEGER ) ) + ( + - 17 ) * - 40 * + + 54 ) AS col2
----
1
24

query I rowsort
SELECT ALL 98 * + NULLIF ( - 78, + 11 ) * - 8 col1
----
61152

query II rowsort
SELECT 72 AS col0, 87
----
72
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT - 74 + - ( + 1 ) + + 49 + 48 * + CAST( NULL AS SIGNED ) * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT - 74 + - ( + 1 ) + + 49 + 48 * + CAST ( NULL AS INTEGER ) * - 45
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3871
SELECT + 97 + - + COUNT( 86 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT + 97 + - + COUNT ( 86 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3872
SELECT DISTINCT 3 + + 59, + ( 72 ) col2, - 25 + + + 60 - + - CAST( - - 42 AS SIGNED ) AS col1
----
62
72
77

skipif mysql # not compatible
query III rowsort label-3872
SELECT DISTINCT 3 + + 59, + ( 72 ) col2, - 25 + + + 60 - + - CAST ( - - 42 AS INTEGER ) AS col1
----
62
72
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ALL 62 * + MAX( + + 14 ) AS col0
----
868

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL 62 * + MAX ( + + 14 ) AS col0
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT + 73 + 19 + - ( + - COUNT( * ) )
----
93

skipif mysql # not compatible
query I rowsort label-3874
SELECT + 73 + 19 + - ( + - COUNT ( * ) )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT - COALESCE ( - 63, - 90 + 95, - 34 DIV + ( + ( + 92 ) ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3875
SELECT - COALESCE ( - 63, - 90 + 95, - 34 / + ( + ( + 92 ) ) ) AS col2
----
63

query II rowsort
SELECT ALL 17, - 64 AS col2
----
17
-64

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

skipif mysql # not compatible
query I rowsort label-3877
SELECT - COALESCE ( - 37, + + COUNT ( * ), + - 83 )
----
37

query I rowsort
SELECT DISTINCT 67 + - 65 col1
----
2

query I rowsort
SELECT ALL 26 * 50 * - 33 AS col0
----
-42900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3880
SELECT DISTINCT - CAST( NULL AS SIGNED ), 28 AS col2
----
NULL
28

skipif mysql # not compatible
query II rowsort label-3880
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 28 AS col2
----
NULL
28

query I rowsort
SELECT ALL NULLIF ( 82, + + 24 ) AS col2
----
82

query I rowsort
SELECT + 89 * + 46 + 29 * + 51 * - 91 AS col0
----
-130495

query I rowsort
SELECT + - 38 * - 56
----
2128

query II rowsort
SELECT - ( - - 45 ) AS col2, - 82 AS col2
----
-45
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3885
SELECT DISTINCT 37 / - ( ( + 82 ) ) * CAST( NULL AS SIGNED ) / - COALESCE ( + 16, + CAST( - CASE + 28 WHEN + + 30 + - COUNT( * ) + + CASE - COALESCE ( - 90, 22 ) WHEN CAST( + 50 AS SIGNED ) THEN - 44 * - 23 + + - 47 WHEN - COUNT( * ) THEN NULL WHEN + - 78 * ( + 16 ) THEN NULL END THEN - + 32 + - - ( + 98 ) WHEN + - 42 THEN - 85 END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT 37 / - ( ( + 82 ) ) * CAST ( NULL AS INTEGER ) / - COALESCE ( + 16, + CAST ( - CASE + 28 WHEN + + 30 + - COUNT ( * ) + + CASE - COALESCE ( - 90, 22 ) WHEN CAST ( + 50 AS INTEGER ) THEN - 44 * - 23 + + - 47 WHEN - COUNT ( * ) THEN NULL WHEN + - 78 * ( + 16 ) THEN NULL END THEN - + 32 + - - ( + 98 ) WHEN + - 42 THEN - 85 END AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3886
SELECT - + 7 AS col0, + 42 + MAX( ALL - 41 ) + - ( MAX( + 60 ) ) DIV 62 - + + 30 AS col2, 83 * - + 12 + + 49
----
-7
-29
-947

skipif mysql # not compatible
query III rowsort label-3886
SELECT - + 7 AS col0, + 42 + MAX ( ALL - 41 ) + - ( MAX ( + 60 ) ) / 62 - + + 30 AS col2, 83 * - + 12 + + 49
----
-7
-29
-947

query I rowsort
SELECT ALL 51 - + + ( ( - + 13 ) ) + + + 7
----
71

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3891
SELECT + - 3 * + + COUNT( * ) DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-3891
SELECT + - 3 * + + COUNT ( * ) / - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL - SUM( DISTINCT ( - ( 90 ) ) ) * COUNT( ALL + 56 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL - SUM ( DISTINCT ( - ( 90 ) ) ) * COUNT ( ALL + 56 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - - CASE COUNT( * ) WHEN + COUNT( * ) + - 82 THEN 64 * - 32 / + 18 + + 55 + + 42 * + + 31 END * - - 88 / - COUNT( * ) - + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT - - CASE COUNT ( * ) WHEN + COUNT ( * ) + - 82 THEN 64 * - 32 / + 18 + + 55 + + 42 * + + 31 END * - - 88 / - COUNT ( * ) - + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3894
SELECT ALL + COALESCE ( + MIN( DISTINCT - 72 ), 85 * + 90 * + 47 * 16 * 59 + - 97 + + - 9 * + + 99 * COUNT( * ) * - 88, - 62 ) DIV + 42 - - + COUNT( * ), 33 AS col1
----
0
33

skipif mysql # not compatible
query II rowsort label-3894
SELECT ALL + COALESCE ( + MIN ( DISTINCT - 72 ), 85 * + 90 * + 47 * 16 * 59 + - 97 + + - 9 * + + 99 * COUNT ( * ) * - 88, - 62 ) / + 42 - - + COUNT ( * ), 33 AS col1
----
0
33

query I rowsort
SELECT DISTINCT + 59 * + 88
----
5192

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT - MAX( DISTINCT 10 ) * - 94 * + + 19 col0
----
17860

skipif mysql # not compatible
query I rowsort label-3897
SELECT - MAX ( DISTINCT 10 ) * - 94 * + + 19 col0
----
17860

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

skipif mysql # not compatible
query I rowsort label-3898
SELECT + + 76 + + 34 * - - COUNT ( * ) AS col2
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3899
SELECT DISTINCT ( + - 29 ) * + - 90 + CAST( NULL AS SIGNED ) + + 73 - - COUNT( DISTINCT + 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT ( + - 29 ) * + - 90 + CAST ( NULL AS INTEGER ) + + 73 - - COUNT ( DISTINCT + 4 ) AS col2
----
NULL

query I rowsort
SELECT ALL 18 * - 0 + 1 * + 76
----
76

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

skipif mysql # not compatible
query I rowsort label-3901
SELECT - COUNT ( * ) + - 99 + 96 AS col0
----
-4

query I rowsort
SELECT 50 * 93 + + 6 AS col0
----
4656

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT COALESCE ( + 51, - MIN( DISTINCT - 56 ), + 16 + - 94 + - - 30, + 53 ), 7 AS col0
----
51
7

skipif mysql # not compatible
query II rowsort label-3903
SELECT COALESCE ( + 51, - MIN ( DISTINCT - 56 ), + 16 + - 94 + - - 30, + 53 ), 7 AS col0
----
51
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT - NULLIF ( + - CAST( NULL AS SIGNED ), + 78 - - ( + 90 ) ) / + 77 + 93 * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT - NULLIF ( + - CAST ( NULL AS INTEGER ), + 78 - - ( + 90 ) ) / + 77 + 93 * 2
----
NULL

query II rowsort
SELECT DISTINCT 30 * + 90 * + 17 * - + 66 + - 44 AS col0, ( + 90 ) AS col1
----
-3029444
90

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

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL - 77 * - ( COUNT ( * ) )
----
77

query I rowsort
SELECT + CASE 87 WHEN 19 * + 4 + - - AVG ( + - 14 ) THEN NULL WHEN - + 62 THEN NULL ELSE - + 66 END * - 12 AS col2
----
792

query I rowsort
SELECT 94 + - 0 + - - 34 AS col2
----
128

query I rowsort
SELECT DISTINCT + 60 * + - 63 AS col0
----
-3780

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL - COUNT( * ) + + 95 * + MAX( DISTINCT + 48 ) + NULLIF ( + + 20, 70 ) + 31
----
4610

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - COUNT ( * ) + + 95 * + MAX ( DISTINCT + 48 ) + NULLIF ( + + 20, 70 ) + 31
----
4610

query I rowsort
SELECT 81 + - - 67 col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT + 60 * - 23 * + 21 * - SUM( DISTINCT + + 90 ) * + 43
----
112152600

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT + 60 * - 23 * + 21 * - SUM ( DISTINCT + + 90 ) * + 43
----
112152600

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3913
SELECT COUNT( ALL 80 ) * CAST( NULL AS DECIMAL ) * + 65 - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT COUNT ( ALL 80 ) * CAST ( NULL AS REAL ) * + 65 - + 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3914
SELECT + MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 85 + 36 * - 50 * - ( 87 ) + - 8 AS col1
----
156677

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT DISTINCT COUNT( * ) - 94 * 94 AS col2
----
-8835

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT COUNT ( * ) - 94 * 94 AS col2
----
-8835

onlyif mysql # DIV for integer division: 
query II rowsort label-3917
SELECT ALL + 87 DIV - 57, - 8 * + - 66 col1
----
-1
528

skipif mysql # not compatible
query II rowsort label-3917
SELECT ALL + 87 / - 57, - 8 * + - 66 col1
----
-1
528

query II rowsort
SELECT - 96 + + COALESCE ( 65, 50 + - 20 ), 42 col1
----
-31
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT 75 + 4 * - MAX( 73 )
----
-217

skipif mysql # not compatible
query I rowsort label-3919
SELECT 75 + 4 * - MAX ( 73 )
----
-217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3920
SELECT - CAST( - 79 AS SIGNED ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3920
SELECT - CAST ( - 79 AS INTEGER ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT DISTINCT - 54 * - - COUNT( * ) * - 2
----
108

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT - 54 * - - COUNT ( * ) * - 2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT DISTINCT + COUNT( ALL 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT + COUNT ( ALL 45 ) AS col2
----
1

query I rowsort
SELECT 55 + + 70 + - + 45 AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT ALL - COALESCE ( - + 21, - 41, - 26 ) DIV - - 16
----
1

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - COALESCE ( - + 21, - 41, - 26 ) / - - 16
----
1

query I rowsort
SELECT - 95 + - 70 * + - 52 * + + 95
----
345705

query I rowsort
SELECT - NULLIF ( 34, 94 - + 95 ) * + + 50 AS col0
----
-1700

query I rowsort
SELECT + 63 * 73 * - + 40 + + 87 + - - 48 AS col1
----
-183825

query I rowsort
SELECT ALL ( - + 18 ) + + 66 AS col2
----
48

query I rowsort
SELECT ALL - 17 + 33 + - 25 + - 29
----
-38

query I rowsort
SELECT DISTINCT + 63 + 19 - + 82 AS col2
----
0

query I rowsort
SELECT DISTINCT 58 + - 5
----
53

query I rowsort
SELECT ALL + 45 * - - 57 col0
----
2565

query II rowsort
SELECT + 37 AS col0, 50 AS col2
----
37
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT CAST( NULL AS SIGNED ) * + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT CAST ( NULL AS INTEGER ) * + 55 AS col1
----
NULL

query I rowsort
SELECT 84 * + + 81 col0
----
6804

onlyif mysql # DIV for integer division: 
query I rowsort label-3936
SELECT ALL + 46 * 63 DIV - - 73
----
39

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + 46 * 63 / - - 73
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL - NULLIF ( + 36, + - MIN( CASE 76 WHEN - 99 THEN NULL ELSE - 66 END ) + + 91 * - + 35 )
----
-36

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL - NULLIF ( + 36, + - MIN ( CASE 76 WHEN - 99 THEN NULL ELSE - 66 END ) + + 91 * - + 35 )
----
-36

query I rowsort
SELECT 84 - - 34 + + + 37 AS col0
----
155

query II rowsort
SELECT - 60 AS col2, - 9 AS col1
----
-60
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT 0 * COALESCE ( + - COUNT( * ), - 56 )
----
0

skipif mysql # not compatible
query I rowsort label-3940
SELECT 0 * COALESCE ( + - COUNT ( * ), - 56 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT DISTINCT - 74 * + COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT - 74 * + COUNT ( * ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3942
SELECT + 94 * + 27 + - 39, + CASE 48 WHEN - - 4 * 36 THEN 60 WHEN + 55 THEN - + COUNT( ALL 69 ) * + 32 END + COUNT( * ) col1
----
2499
NULL

skipif mysql # not compatible
query II rowsort label-3942
SELECT + 94 * + 27 + - 39, + CASE 48 WHEN - - 4 * 36 THEN 60 WHEN + 55 THEN - + COUNT ( ALL 69 ) * + 32 END + COUNT ( * ) col1
----
2499
NULL

query II rowsort
SELECT - 74 col2, + 1 AS col0
----
-74
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT - ( - + 89 ) + - + 15 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT - ( - + 89 ) + - + 15 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3945
SELECT 13 DIV - COALESCE ( + 54, - 83 + + 95, - 69, - 98 * 22 DIV + 57 DIV 30, + ( - 18 ) * - + 98 ) * + 90 * - COALESCE ( + CAST( NULL AS SIGNED ), + 15 DIV + 22 + - COUNT( * ), + - 7 + 14 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3945
SELECT 13 / - COALESCE ( + 54, - 83 + + 95, - 69, - 98 * 22 / + 57 / 30, + ( - 18 ) * - + 98 ) * + 90 * - COALESCE ( + CAST ( NULL AS INTEGER ), + 15 / + 22 + - COUNT ( * ), + - 7 + 14 ) AS col2
----
0

query I rowsort
SELECT ALL - 16 * - - COALESCE ( 0, - 85 + - ( 25 ) ) * - - 54 AS col0
----
0

query I rowsort
SELECT 44 + - 6
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - MAX( DISTINCT 14 ) * - 26
----
364

skipif mysql # not compatible
query I rowsort label-3948
SELECT - MAX ( DISTINCT 14 ) * - 26
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT COUNT( DISTINCT - 21 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3949
SELECT COUNT ( DISTINCT - 21 ) AS col1
----
1

query I rowsort
SELECT ALL + - 82 * - 6
----
492

query I rowsort
SELECT ALL NULLIF ( - - 84, - 59 + + + 74 + + - 21 * - ( - 39 ) ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT DISTINCT COUNT( DISTINCT ( - 60 ) ), - 13 AS col1
----
1
-13

skipif mysql # not compatible
query II rowsort label-3952
SELECT DISTINCT COUNT ( DISTINCT ( - 60 ) ), - 13 AS col1
----
1
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT + COUNT( * ) + + 86 + + NULLIF ( 55, - 83 + 86 + + - ( + ( 18 ) ) * 26 + COUNT( * ) ) + 7 * + - 5 * 27
----
-803

skipif mysql # not compatible
query I rowsort label-3953
SELECT + COUNT ( * ) + + 86 + + NULLIF ( 55, - 83 + 86 + + - ( + ( 18 ) ) * 26 + COUNT ( * ) ) + 7 * + - 5 * 27
----
-803

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT ALL - SUM( + + 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL - SUM ( + + 8 ) AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3955
SELECT DISTINCT + ( + CASE + + COUNT( ALL + - 41 ) WHEN + 44 THEN NULL WHEN + + 97 THEN - - 76 WHEN CASE + - 91 WHEN - 3 THEN NULL WHEN - 55 THEN - 82 WHEN 26 THEN NULL END + + - 93 THEN NULL END ) + CAST( 39 AS SIGNED ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT + ( + CASE + + COUNT ( ALL + - 41 ) WHEN + 44 THEN NULL WHEN + + 97 THEN - - 76 WHEN CASE + - 91 WHEN - 3 THEN NULL WHEN - 55 THEN - 82 WHEN 26 THEN NULL END + + - 93 THEN NULL END ) + CAST ( 39 AS INTEGER ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3956
SELECT 3 - - 79 - - 83 DIV - CASE WHEN NOT NULL > NULLIF ( - ( + 17 ), - 92 + + 6 DIV + 66 + - + 49 ) THEN NULL ELSE 30 * 67 + + 68 END
----
82

skipif mysql # not compatible
query I rowsort label-3956
SELECT 3 - - 79 - - 83 / - CASE WHEN NOT NULL > NULLIF ( - ( + 17 ), - 92 + + 6 / + 66 + - + 49 ) THEN NULL ELSE 30 * 67 + + 68 END
----
82

query II rowsort
SELECT DISTINCT 4 AS col2, 38 - - ( + + 70 ) AS col0
----
4
108

query I rowsort
SELECT 49 + + 37 + - + 12 + - + 38
----
36

query II rowsort
SELECT + 43 AS col2, + 35 AS col0
----
43
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3960
SELECT ALL - - 98 DIV 78 * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - - 98 / 78 * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT DISTINCT + 61 * - 90 + - COUNT( * )
----
-5491

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT + 61 * - 90 + - COUNT ( * )
----
-5491

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT SUM( DISTINCT 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3962
SELECT SUM ( DISTINCT 35 ) AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT - NULLIF ( + 54, + - 14 ) * + + 82 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT - NULLIF ( + 54, + - 14 ) * + + 82 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3964
SELECT COUNT( ALL - - CAST( NULL AS DECIMAL ) ) - - 72 DIV - COALESCE ( 39, - + 42 + - SUM( ALL - - 51 ) * - - 5 ) AS col1, + 21
----
-1
21

skipif mysql # not compatible
query II rowsort label-3964
SELECT COUNT ( ALL - - CAST ( NULL AS REAL ) ) - - 72 / - COALESCE ( 39, - + 42 + - SUM ( ALL - - 51 ) * - - 5 ) AS col1, + 21
----
-1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT + COUNT( * ) + + 37 * - 92
----
-3403

skipif mysql # not compatible
query I rowsort label-3965
SELECT + COUNT ( * ) + + 37 * - 92
----
-3403

query I rowsort
SELECT 87 * + 98 * + + 39 + - 55 AS col2
----
332459

query I rowsort
SELECT ALL - 14 * 41 AS col1
----
-574

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3968
SELECT + 90 * 77 + + - CASE 89 WHEN + COUNT( * ) + ( + 17 ) - + - 89 THEN - + SUM( - 39 ) * + ( 88 ) DIV 76 + - - 13 + 67 + + 5 * - COUNT( * ) ELSE - 55 + + 56 END * + 98 - + - 47 + - COUNT( * ) AS col2, - 32 AS col2
----
6878
-32

skipif mysql # not compatible
query II rowsort label-3968
SELECT + 90 * 77 + + - CASE 89 WHEN + COUNT ( * ) + ( + 17 ) - + - 89 THEN - + SUM ( - 39 ) * + ( 88 ) / 76 + - - 13 + 67 + + 5 * - COUNT ( * ) ELSE - 55 + + 56 END * + 98 - + - 47 + - COUNT ( * ) AS col2, - 32 AS col2
----
6878
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-3969
SELECT ALL 3 - - 77, COUNT( * ) AS col2
----
80
1

skipif mysql # not compatible
query II rowsort label-3969
SELECT ALL 3 - - 77, COUNT ( * ) AS col2
----
80
1

query I rowsort
SELECT - 91 * - - 52
----
-4732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT ALL 97 * + ( + 47 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL 97 * + ( + 47 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT + 2 + - 38 * COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-3972
SELECT + 2 + - 38 * COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT - 67 + COUNT( * ) * 62 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3973
SELECT - 67 + COUNT ( * ) * 62 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT + - 65 * - MAX( DISTINCT 71 ) + - - 81 + - 74 * 22 + - 37 AS col1
----
3031

skipif mysql # not compatible
query I rowsort label-3974
SELECT + - 65 * - MAX ( DISTINCT 71 ) + - - 81 + - 74 * 22 + - 37 AS col1
----
3031

query I rowsort
SELECT - - 59 * + + 57
----
3363

onlyif mysql # DIV for integer division: 
query I rowsort label-3976
SELECT ALL - + 67 DIV + 7 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL - + 67 / + 7 AS col0
----
-9

query I rowsort
SELECT - 14 * + 26 AS col1
----
-364

query I rowsort
SELECT ALL ( 2 ) + 78 AS col2
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3979
SELECT ALL - + 75 + COUNT( * ), 84 AS col2
----
-74
84

skipif mysql # not compatible
query II rowsort label-3979
SELECT ALL - + 75 + COUNT ( * ), 84 AS col2
----
-74
84

query I rowsort
SELECT + + 38 + 27 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - + COUNT( * ) - 12
----
-13

skipif mysql # not compatible
query I rowsort label-3981
SELECT - + COUNT ( * ) - 12
----
-13

query I rowsort
SELECT - - ( - 42 ) * 46
----
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT - - 58 + COUNT( * ) - + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3983
SELECT - - 58 + COUNT ( * ) - + COUNT ( * ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT DISTINCT + - COALESCE ( + MIN( ALL + + 89 ), 98 ) + - 13
----
-102

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT + - COALESCE ( + MIN ( ALL + + 89 ), 98 ) + - 13
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-3985
SELECT - 44 + + 13 AS col0, MAX( ALL - 46 ) AS col1
----
-31
-46

skipif mysql # not compatible
query II rowsort label-3985
SELECT - 44 + + 13 AS col0, MAX ( ALL - 46 ) AS col1
----
-31
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL + 17 + + 1 * MIN( ALL - 35 )
----
-18

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + 17 + + 1 * MIN ( ALL - 35 )
----
-18

query I rowsort
SELECT - 5 * + - 81
----
405

query I rowsort
SELECT ALL + ( - 95 ) AS col1
----
-95

query I rowsort
SELECT ( - + 68 ) AS col1
----
-68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3990
SELECT + 68 DIV + - NULLIF ( + 24, - + CAST( NULL AS SIGNED ) ) + - + ( 36 ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-3990
SELECT + 68 / + - NULLIF ( + 24, - + CAST ( NULL AS INTEGER ) ) + - + ( 36 ) col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT + 32 AS col1, ( 26 ) * + COUNT( * ) AS col0
----
32
26

skipif mysql # not compatible
query II rowsort label-3991
SELECT + 32 AS col1, ( 26 ) * + COUNT ( * ) AS col0
----
32
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT - 69 * + + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3992
SELECT - 69 * + + COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT + SUM( 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3993
SELECT + SUM ( 21 ) AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT ALL - 28 DIV - + 26
----
1

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL - 28 / - + 26
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT ( COUNT( + ( 69 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3995
SELECT ( COUNT ( + ( 69 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT DISTINCT + 1 * - + 25 * MAX( DISTINCT - 71 )
----
1775

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT + 1 * - + 25 * MAX ( DISTINCT - 71 )
----
1775

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT + 91 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT + 91 / - 94
----
0

query I rowsort
SELECT - NULLIF ( + ( 17 ), - 57 ) * 35 * + + 96 AS col0
----
-57120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3999
SELECT - 62 - CAST( NULL AS SIGNED ) * + 48 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT - 62 - CAST ( NULL AS INTEGER ) * + 48 * + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4000
SELECT + 79 * + - CAST( - 96 AS SIGNED ) * + 88 - + + 2 col2, + 1
----
667390
1

skipif mysql # not compatible
query II rowsort label-4000
SELECT + 79 * + - CAST ( - 96 AS INTEGER ) * + 88 - + + 2 col2, + 1
----
667390
1

query I rowsort
SELECT 47 * - 18 + - 24 + + 96 * 34 * + - 15 AS col1
----
-49830

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT CASE 43 WHEN NULLIF ( - 18, COUNT( * ) ) THEN COALESCE ( + COUNT( * ), + 96, 89 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT CASE 43 WHEN NULLIF ( - 18, COUNT ( * ) ) THEN COALESCE ( + COUNT ( * ), + 96, 89 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT + 61 DIV - 4
----
-15

skipif mysql # not compatible
query I rowsort label-4003
SELECT + 61 / - 4
----
-15

query II rowsort
SELECT DISTINCT + 1, 32 AS col0
----
1
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT DISTINCT COUNT( ALL - ( - CAST( - 17 AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT COUNT ( ALL - ( - CAST ( - 17 AS INTEGER ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT - + SUM( ALL + - 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4006
SELECT - + SUM ( ALL + - 47 ) AS col0
----
47

query I rowsort
SELECT - 48 + - 49 + - 89 AS col0
----
-186

query I rowsort
SELECT - - COALESCE ( - 1, + 21, 13 ) - + 90
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT ALL - CAST( NULL AS SIGNED ) + + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - CAST ( NULL AS INTEGER ) + + 73 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT DISTINCT + + ( + COUNT( * ) ) * 9 col0
----
9

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + + ( + COUNT ( * ) ) * 9 col0
----
9

query I rowsort
SELECT ALL - ( + 29 ) - - 62 AS col2
----
33

query I rowsort
SELECT + + 66 - - + 30 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4013
SELECT - + MAX( DISTINCT + + 22 ) * + CASE 64 WHEN 23 * - 25 + - + 34 * + 3 + CASE 74 WHEN - 22 * - MAX( DISTINCT + 77 ) THEN - 50 END THEN NULL ELSE - + NULLIF ( + + ( + COUNT( 2 ) ), - 83 + CASE CAST( NULL AS SIGNED ) WHEN 14 THEN NULL WHEN - AVG ( ALL + 17 ) / 56 + + - CASE + ( + 15 ) WHEN + 36 * 34 - - 13 THEN - + CASE 61 WHEN + 55 THEN 6 * - 91 ELSE NULL END END THEN 29 * + COUNT( * ) + 64 WHEN + 29 THEN NULL ELSE NULL END ) END * 26 + 54
----
626

skipif mysql # not compatible
query I rowsort label-4013
SELECT - + MAX ( DISTINCT + + 22 ) * + CASE 64 WHEN 23 * - 25 + - + 34 * + 3 + CASE 74 WHEN - 22 * - MAX ( DISTINCT + 77 ) THEN - 50 END THEN NULL ELSE - + NULLIF ( + + ( + COUNT ( 2 ) ), - 83 + CASE CAST ( NULL AS INTEGER ) WHEN 14 THEN NULL WHEN - AVG ( ALL + 17 ) / 56 + + - CASE + ( + 15 ) WHEN + 36 * 34 - - 13 THEN - + CASE 61 WHEN + 55 THEN 6 * - 91 ELSE NULL END END THEN 29 * + COUNT ( * ) + 64 WHEN + 29 THEN NULL ELSE NULL END ) END * 26 + 54
----
626

query II rowsort
SELECT - 19 col1, + 8 AS col0
----
-19
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT 49 + - 19 - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-4015
SELECT 49 + - 19 - COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT 84 * + + COALESCE ( + + COUNT( DISTINCT + 49 ), + COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-4016
SELECT 84 * + + COALESCE ( + + COUNT ( DISTINCT + 49 ), + COUNT ( * ) )
----
84

query II rowsort
SELECT 99 AS col1, - 19
----
99
-19

query II rowsort
SELECT - 77 AS col0, 43
----
-77
43

query I rowsort
SELECT ALL + 87 - + 16 AS col1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4020
SELECT 65 DIV + - 56
----
-1

skipif mysql # not compatible
query I rowsort label-4020
SELECT 65 / + - 56
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4021
SELECT DISTINCT - COUNT( * ) AS col1, 74 * 78 col0
----
-1
5772

skipif mysql # not compatible
query II rowsort label-4021
SELECT DISTINCT - COUNT ( * ) AS col1, 74 * 78 col0
----
-1
5772

query I rowsort
SELECT DISTINCT - 42 * + 7 AS col1
----
-294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT ALL - NULLIF ( 36, - CAST( + AVG ( ALL - 39 ) AS SIGNED ) - + - ( - + 25 ) / 50 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - NULLIF ( 36, - CAST ( + AVG ( ALL - 39 ) AS INTEGER ) - + - ( - + 25 ) / 50 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL - COUNT( ALL + 84 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL - COUNT ( ALL + 84 ) col2
----
-1

query I rowsort
SELECT 0 * + 36 AS col2
----
0

query II rowsort
SELECT 37 AS col2, - 32
----
37
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4027
SELECT - 94 * - 89 - COUNT( * ) - 39 + 15 DIV 32 AS col2
----
8326

skipif mysql # not compatible
query I rowsort label-4027
SELECT - 94 * - 89 - COUNT ( * ) - 39 + 15 / 32 AS col2
----
8326

query I rowsort
SELECT 90 * + + 12 AS col0
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT 61 * - COUNT( * ) - + 89
----
-150

skipif mysql # not compatible
query I rowsort label-4029
SELECT 61 * - COUNT ( * ) - + 89
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4030
SELECT ALL COALESCE ( + CAST( 19 AS SIGNED ), + CAST( NULL AS SIGNED ) ) * + + 55 * 38 col1
----
39710

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL COALESCE ( + CAST ( 19 AS INTEGER ), + CAST ( NULL AS INTEGER ) ) * + + 55 * 38 col1
----
39710

query I rowsort
SELECT ALL 2 + 4
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4032
SELECT ALL - 88, 74 + + - 89 * + 9 + - + COUNT( * ) AS col2
----
-88
-728

skipif mysql # not compatible
query II rowsort label-4032
SELECT ALL - 88, 74 + + - 89 * + 9 + - + COUNT ( * ) AS col2
----
-88
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT - + 85 * - ( COUNT( * ) ) + - 23 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-4033
SELECT - + 85 * - ( COUNT ( * ) ) + - 23 AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4034
SELECT DISTINCT - 49 AS col2, 23 * - + COUNT( * )
----
-49
-23

skipif mysql # not compatible
query II rowsort label-4034
SELECT DISTINCT - 49 AS col2, 23 * - + COUNT ( * )
----
-49
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT + + NULLIF ( + COUNT( ALL - 52 ), COUNT( * ) - COUNT( * ) * - + COUNT( * ) + + 84 * + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-4035
SELECT + + NULLIF ( + COUNT ( ALL - 52 ), COUNT ( * ) - COUNT ( * ) * - + COUNT ( * ) + + 84 * + 30 )
----
1

query I rowsort
SELECT + 53 * - 17 AS col1
----
-901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4037
SELECT - + 1 AS col2, - ( - MAX( ALL CAST( NULL AS SIGNED ) ) ) * + 69 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4037
SELECT - + 1 AS col2, - ( - MAX ( ALL CAST ( NULL AS INTEGER ) ) ) * + 69 AS col0
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT - 32 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-4038
SELECT - 32 / - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL CASE - NULLIF ( 51, - - 13 ) WHEN 14 THEN MAX( - 80 ) + + ( + COUNT( + 51 ) ) WHEN + 0 * 39 THEN NULL WHEN + 12 * 52 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL CASE - NULLIF ( 51, - - 13 ) WHEN 14 THEN MAX ( - 80 ) + + ( + COUNT ( + 51 ) ) WHEN + 0 * 39 THEN NULL WHEN + 12 * 52 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + 99 + - 66 * 12 * + - 70 AS col2
----
55539

onlyif mysql # aggregate syntax: 
query II rowsort label-4041
SELECT + 12 + - COUNT( DISTINCT + + 72 ) - - + 0 AS col1, 26 AS col1
----
11
26

skipif mysql # not compatible
query II rowsort label-4041
SELECT + 12 + - COUNT ( DISTINCT + + 72 ) - - + 0 AS col1, 26 AS col1
----
11
26

query I rowsort
SELECT - 65 + - + 57 AS col0
----
-122

query I rowsort
SELECT 47 - - + 21
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4044
SELECT - MAX( - 80 ) + + CAST( + 78 AS SIGNED ) + - 49 * + 24 AS col0, 63 * - MAX( ALL - 4 ) AS col2
----
-1018
252

skipif mysql # not compatible
query II rowsort label-4044
SELECT - MAX ( - 80 ) + + CAST ( + 78 AS INTEGER ) + - 49 * + 24 AS col0, 63 * - MAX ( ALL - 4 ) AS col2
----
-1018
252

query I rowsort
SELECT - ( - - 84 ) + + 37 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT 94 + COUNT( * ) * 97
----
191

skipif mysql # not compatible
query I rowsort label-4046
SELECT 94 + COUNT ( * ) * 97
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ( MAX( - ( 41 ) ) ) * + MAX( - - 28 )
----
-1148

skipif mysql # not compatible
query I rowsort label-4047
SELECT ( MAX ( - ( 41 ) ) ) * + MAX ( - - 28 )
----
-1148

query I rowsort
SELECT ALL 34 * - 79 * + 15 AS col0
----
-40290

onlyif mysql # aggregate syntax: 
query II rowsort label-4049
SELECT ( - ( 38 ) ) + SUM( + 1 ), - SUM( DISTINCT + - 9 ) + 17 - - + 70 AS col0
----
-37
96

skipif mysql # not compatible
query II rowsort label-4049
SELECT ( - ( 38 ) ) + SUM ( + 1 ), - SUM ( DISTINCT + - 9 ) + 17 - - + 70 AS col0
----
-37
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT MAX( DISTINCT + + 54 ) + 45
----
99

skipif mysql # not compatible
query I rowsort label-4050
SELECT MAX ( DISTINCT + + 54 ) + 45
----
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4051
SELECT ALL + 55 * - COALESCE ( - 54, - ( - 26 ) + 72 + - 85 - + 55 DIV - CAST( NULL AS SIGNED ) + - 75 - + 79 * 94 * - + 94 ), 67 AS col1
----
2970
67

skipif mysql # not compatible
query II rowsort label-4051
SELECT ALL + 55 * - COALESCE ( - 54, - ( - 26 ) + 72 + - 85 - + 55 / - CAST ( NULL AS INTEGER ) + - 75 - + 79 * 94 * - + 94 ), 67 AS col1
----
2970
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4052
SELECT 0 DIV + 58, MIN( ALL + + 1 ) col0
----
0
1

skipif mysql # not compatible
query II rowsort label-4052
SELECT 0 / + 58, MIN ( ALL + + 1 ) col0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4053
SELECT MIN( DISTINCT - 79 ) AS col0, 94 + - - CAST( NULL AS SIGNED ) * - COUNT( * )
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-4053
SELECT MIN ( DISTINCT - 79 ) AS col0, 94 + - - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
-79
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT 90 DIV - 39 col0
----
-2

skipif mysql # not compatible
query I rowsort label-4054
SELECT 90 / - 39 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT 28 + + MIN( DISTINCT + - 62 )
----
-34

skipif mysql # not compatible
query I rowsort label-4055
SELECT 28 + + MIN ( DISTINCT + - 62 )
----
-34

query I rowsort
SELECT ALL 20 + + CASE + 78 WHEN + 14 THEN - + 18 WHEN - 67 THEN 99 - 40 WHEN - 65 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL + 66 + - 57 - - 10 * - + COUNT( 77 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL + 66 + - 57 - - 10 * - + COUNT ( 77 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL + 47 + + COUNT( * ) * + COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + 47 + + COUNT ( * ) * + COUNT ( * ) AS col1
----
48

query II rowsort
SELECT 92 - - 3 AS col0, - 31 AS col2
----
95
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT - 38 - COALESCE ( + COUNT( * ), - + 27 + 71 ) * 50 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-4060
SELECT - 38 - COALESCE ( + COUNT ( * ), - + 27 + 71 ) * 50 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT - 21 * + - MAX( DISTINCT + + ( - + 6 ) ) col1
----
-126

skipif mysql # not compatible
query I rowsort label-4061
SELECT - 21 * + - MAX ( DISTINCT + + ( - + 6 ) ) col1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT DISTINCT + MAX( ALL + + 43 ) - + 81
----
-38

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT + MAX ( ALL + + 43 ) - + 81
----
-38

query I rowsort
SELECT DISTINCT - 32 * 78 * 14
----
-34944

query I rowsort
SELECT + 87 - - 55 + 84 col2
----
226

query I rowsort
SELECT ALL + + 89 * + 63 * 87
----
487809

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT DISTINCT + SUM( ALL - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT + SUM ( ALL - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT - - ( - - COUNT( * ) ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - - ( - - COUNT ( * ) ) * + 55
----
55

query I rowsort
SELECT - ( - 45 ) + + 69 * + 77
----
5358

query I rowsort
SELECT + - 44 + 78 * 50
----
3856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4070
SELECT + - 14 * + + 45 / + - CAST( NULL AS SIGNED ) - + + COUNT( * ) + - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT + - 14 * + + 45 / + - CAST ( NULL AS INTEGER ) - + + COUNT ( * ) + - 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT + SUM( DISTINCT 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4071
SELECT + SUM ( DISTINCT 92 ) AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4072
SELECT - - 99 DIV - 56 DIV + COUNT( * ) + - - 67 + + 4 * - ( - 46 ) AS col2, COUNT( * ) AS col1
----
250
1

skipif mysql # not compatible
query II rowsort label-4072
SELECT - - 99 / - 56 / + COUNT ( * ) + - - 67 + + 4 * - ( - 46 ) AS col2, COUNT ( * ) AS col1
----
250
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4073
SELECT ALL 40 DIV + + 38 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL 40 / + + 38 AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4074
SELECT 51, 83 DIV + + 87 * + 38 * - 10 * 25 * 31 AS col1
----
51
0

skipif mysql # not compatible
query II rowsort label-4074
SELECT 51, 83 / + + 87 * + 38 * - 10 * 25 * 31 AS col1
----
51
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT - COUNT( - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-4075
SELECT - COUNT ( - 8 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT COUNT( * ) * - + 75 * - - 76 AS col2
----
-5700

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT COUNT ( * ) * - + 75 * - - 76 AS col2
----
-5700

query I rowsort
SELECT + 75 * - 28
----
-2100

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4078
SELECT - NULLIF ( + CAST( NULL AS DECIMAL ), - CAST( NULL AS SIGNED ) / 68 * + + 71 - + - 28 + + - CAST( NULL AS DECIMAL ) - + 81 + 30 * ( - 45 ) * + 8 + + - 73 + + - 8 + - 57 + COALESCE ( 6, + 69 ) / + 12 / + 84 + - 50 / - 18 * + 84 * + 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4078
SELECT - NULLIF ( + CAST ( NULL AS REAL ), - CAST ( NULL AS INTEGER ) / 68 * + + 71 - + - 28 + + - CAST ( NULL AS REAL ) - + 81 + 30 * ( - 45 ) * + 8 + + - 73 + + - 8 + - 57 + COALESCE ( 6, + 69 ) / + 12 / + 84 + - 50 / - 18 * + 84 * + 95 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4079
SELECT + 44 * + - COUNT( * ) DIV - 57 * 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4079
SELECT + 44 * + - COUNT ( * ) / - 57 * 72 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4080
SELECT 67 col0, NULLIF ( - + COUNT( * ), 81 ) * 66 col0
----
67
-66

skipif mysql # not compatible
query II rowsort label-4080
SELECT 67 col0, NULLIF ( - + COUNT ( * ), 81 ) * 66 col0
----
67
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4081
SELECT ALL - CAST( - + 23 AS SIGNED ) * - COUNT( * ) + + 52 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL - CAST ( - + 23 AS INTEGER ) * - COUNT ( * ) + + 52 AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT 98 DIV + + 53 + + 29
----
30

skipif mysql # not compatible
query I rowsort label-4082
SELECT 98 / + + 53 + + 29
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4083
SELECT ALL - 25 DIV COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL - 25 / COUNT ( * ) AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4084
SELECT DISTINCT - 0 * - - 7 + - COUNT( * ) + 13 DIV + - 51 * + 75 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT - 0 * - - 7 + - COUNT ( * ) + 13 / + - 51 * + 75 AS col0
----
-1

query I rowsort
SELECT ( + ( 25 ) ) AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4086
SELECT - 78 * - 98 + 70 AS col1, CAST( COALESCE ( + + ( + + 95 ), 84 ) AS SIGNED ) + - + 86 + 57 - + + 46 * 7 * - - 92 + - - 50 DIV 78 + + 20, - MIN( ALL + - 88 ) AS col0
----
7714
-29538
88

skipif mysql # not compatible
query III rowsort label-4086
SELECT - 78 * - 98 + 70 AS col1, CAST ( COALESCE ( + + ( + + 95 ), 84 ) AS INTEGER ) + - + 86 + 57 - + + 46 * 7 * - - 92 + - - 50 / 78 + + 20, - MIN ( ALL + - 88 ) AS col0
----
7714
-29538
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT CAST( - + NULLIF ( + 16, - 25 ) AS SIGNED ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4087
SELECT CAST ( - + NULLIF ( + 16, - 25 ) AS INTEGER ) AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4088
SELECT - 45 DIV - ( COUNT( * ) ) + + ( SUM( ALL 40 ) ) * + COALESCE ( - 27, 21 ), - NULLIF ( ( - - MAX( ALL 77 ) ), + 81 + COUNT( * ) ) AS col1
----
-1035
-77

skipif mysql # not compatible
query II rowsort label-4088
SELECT - 45 / - ( COUNT ( * ) ) + + ( SUM ( ALL 40 ) ) * + COALESCE ( - 27, 21 ), - NULLIF ( ( - - MAX ( ALL 77 ) ), + 81 + COUNT ( * ) ) AS col1
----
-1035
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4089
SELECT + + MAX( DISTINCT - 82 ) * SUM( 81 ) - + 94 DIV + 81 AS col2
----
-6643

skipif mysql # not compatible
query I rowsort label-4089
SELECT + + MAX ( DISTINCT - 82 ) * SUM ( 81 ) - + 94 / + 81 AS col2
----
-6643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT ALL + + CASE + SUM( ALL + 28 ) WHEN + - COUNT( * ) + + 15 THEN NULL WHEN + 26 THEN - 39 WHEN + 46 * + ( - MIN( + 71 ) ) + - 58 + COUNT( * ) * - - CAST( NULL AS SIGNED ) * - - 79 + 6 + + 21 - 71 * - + 33 THEN - + 5 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL + + CASE + SUM ( ALL + 28 ) WHEN + - COUNT ( * ) + + 15 THEN NULL WHEN + 26 THEN - 39 WHEN + 46 * + ( - MIN ( + 71 ) ) + - 58 + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * - - 79 + 6 + + 21 - 71 * - + 33 THEN - + 5 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4091
SELECT + CAST( COALESCE ( 72, COUNT( * ) ) AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-4091
SELECT + CAST ( COALESCE ( 72, COUNT ( * ) ) AS INTEGER )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT + 49 * - + 67 + - + 91 * COUNT( * ) * + 8 + - 69 + + MAX( - 81 ) * + 25
----
-6105

skipif mysql # not compatible
query I rowsort label-4092
SELECT + 49 * - + 67 + - + 91 * COUNT ( * ) * + 8 + - 69 + + MAX ( - 81 ) * + 25
----
-6105

onlyif mysql # DIV for integer division: 
query II rowsort label-4093
SELECT DISTINCT + - 10 AS col2, - 69 DIV - 87 AS col0
----
-10
0

skipif mysql # not compatible
query II rowsort label-4093
SELECT DISTINCT + - 10 AS col2, - 69 / - 87 AS col0
----
-10
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4094
SELECT ALL - ( + 34 ) * + MIN( ALL + 64 ) AS col0, ( + + 23 ) col0
----
-2176
23

skipif mysql # not compatible
query II rowsort label-4094
SELECT ALL - ( + 34 ) * + MIN ( ALL + 64 ) AS col0, ( + + 23 ) col0
----
-2176
23

query I rowsort
SELECT ALL + 18 * - ( - + 93 ) + + + 43 + + 90 * + 12 - + ( - 27 ) * - ( - 10 ) + - 24 + 14 + - - 34 * 52 - + ( + 88 ) AS col2
----
4737

query I rowsort
SELECT + + 30 + 94 + 39
----
163

query I rowsort
SELECT ALL + + NULLIF ( 6, - 24 * 80 * 63 ) col2
----
6

query II rowsort
SELECT - 96 AS col0, ( 1 )
----
-96
1

query I rowsort
SELECT DISTINCT - 92 * + 26
----
-2392

query I rowsort
SELECT + 24 * + NULLIF ( + 98, + 62 )
----
2352

query I rowsort
SELECT + - 53 + + - 9
----
-62

query II rowsort
SELECT + - 56, + 61 col0
----
-56
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT + 47 AS col1, ( + 7 ) - + COUNT( * ) * - - 34 AS col1
----
47
-27

skipif mysql # not compatible
query II rowsort label-4103
SELECT + 47 AS col1, ( + 7 ) - + COUNT ( * ) * - - 34 AS col1
----
47
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4104
SELECT - NULLIF ( 44, - ( - - 66 ) ) + + - 72 + - + COUNT( * ) AS col1, COUNT( * ) AS col2
----
-117
1

skipif mysql # not compatible
query II rowsort label-4104
SELECT - NULLIF ( 44, - ( - - 66 ) ) + + - 72 + - + COUNT ( * ) AS col1, COUNT ( * ) AS col2
----
-117
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4105
SELECT - - 3 * - - 56 DIV 44 * 71 + 48 + - + 35
----
226

skipif mysql # not compatible
query I rowsort label-4105
SELECT - - 3 * - - 56 / 44 * 71 + 48 + - + 35
----
226

query II rowsort
SELECT + 30 AS col1, CASE + + 86 WHEN - 35 THEN 77 WHEN + 62 THEN NULL END AS col1
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT + 40 * - - 68 + + COUNT( ALL 88 ) + + 3
----
2724

skipif mysql # not compatible
query I rowsort label-4107
SELECT + 40 * - - 68 + + COUNT ( ALL 88 ) + + 3
----
2724

onlyif mysql # aggregate syntax: 
query II rowsort label-4108
SELECT - COUNT( * ), + 57 + 59 * + + 46 * - 47 col0
----
-1
-127501

skipif mysql # not compatible
query II rowsort label-4108
SELECT - COUNT ( * ), + 57 + 59 * + + 46 * - 47 col0
----
-1
-127501

query I rowsort
SELECT - 22 + + 85 + - ( + 61 )
----
2

query I rowsort
SELECT DISTINCT - 55 * 34
----
-1870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4111
SELECT DISTINCT - 83 * + ( - - ( + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT - 83 * + ( - - ( + + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL + 28 + + COUNT( * ) + + 16 + 1 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + 28 + + COUNT ( * ) + + 16 + 1 AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4113
SELECT - 75 DIV + 6
----
-12

skipif mysql # not compatible
query I rowsort label-4113
SELECT - 75 / + 6
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT - 87 + - - COALESCE ( - COUNT( * ), - 83, 74 * - + 97 ) + - 22
----
-110

skipif mysql # not compatible
query I rowsort label-4114
SELECT - 87 + - - COALESCE ( - COUNT ( * ), - 83, 74 * - + 97 ) + - 22
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT + 92 + COUNT( - + 69 ) + - 49 * 67 - - 2 col0
----
-3188

skipif mysql # not compatible
query I rowsort label-4115
SELECT + 92 + COUNT ( - + 69 ) + - 49 * 67 - - 2 col0
----
-3188

query I rowsort
SELECT + 69 + - 98
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4117
SELECT - COUNT( * ) DIV 18
----
0

skipif mysql # not compatible
query I rowsort label-4117
SELECT - COUNT ( * ) / 18
----
0

query I rowsort
SELECT + 45 + - + 77 + + 98 * - + 16
----
-1600

query I rowsort
SELECT DISTINCT + 11 + + 89 AS col0
----
100

query I rowsort
SELECT DISTINCT ( + 52 ) col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4121
SELECT ALL ( + 82 ) + COUNT( * ) + - NULLIF ( - 1, 98 + - 97 ) + - - CAST( 50 AS SIGNED ), COALESCE ( - - SUM( + 2 ), - - COUNT( * ), - 26 ) DIV - 75 AS col2
----
134
0

skipif mysql # not compatible
query II rowsort label-4121
SELECT ALL ( + 82 ) + COUNT ( * ) + - NULLIF ( - 1, 98 + - 97 ) + - - CAST ( 50 AS INTEGER ), COALESCE ( - - SUM ( + 2 ), - - COUNT ( * ), - 26 ) / - 75 AS col2
----
134
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4122
SELECT - 33 + - + 94, + COUNT( * ) AS col0
----
-127
1

skipif mysql # not compatible
query II rowsort label-4122
SELECT - 33 + - + 94, + COUNT ( * ) AS col0
----
-127
1

query I rowsort
SELECT + 9 + COALESCE ( 43, 76 * + + ( - - 3 ), - 34, - 67 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT - NULLIF ( + 26, - + CAST( NULL AS SIGNED ) + - ( + + 71 ) ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4124
SELECT - NULLIF ( + 26, - + CAST ( NULL AS INTEGER ) + - ( + + 71 ) ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - ( ( COALESCE ( + - 5, + COUNT( * ) ) ) )
----
5

skipif mysql # not compatible
query I rowsort label-4125
SELECT - ( ( COALESCE ( + - 5, + COUNT ( * ) ) ) )
----
5

query I rowsort
SELECT + 55 + - - 16 + 91 * - - 40 * + + 88 AS col0
----
320391

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ( - + MIN( 27 ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4127
SELECT ( - + MIN ( 27 ) ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT COUNT( ALL - 93 ) * - 79
----
-79

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT COUNT ( ALL - 93 ) * - 79
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4129
SELECT ALL + - CAST( + 79 AS SIGNED ) AS col0, + 3 col0
----
-79
3

skipif mysql # not compatible
query II rowsort label-4129
SELECT ALL + - CAST ( + 79 AS INTEGER ) AS col0, + 3 col0
----
-79
3

query I rowsort
SELECT ALL 12 * + 47
----
564

query I rowsort
SELECT DISTINCT + + 16 AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT - COALESCE ( + COUNT( * ), + 55 DIV - 96 + 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-4132
SELECT - COALESCE ( + COUNT ( * ), + 55 / - 96 + 53 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4133
SELECT CAST( + + 67 AS SIGNED ) AS col2, - 58 AS col2
----
67
-58

skipif mysql # not compatible
query II rowsort label-4133
SELECT CAST ( + + 67 AS INTEGER ) AS col2, - 58 AS col2
----
67
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT 70 + CASE 49 WHEN - 92 THEN NULL WHEN CAST( - + 61 AS SIGNED ) THEN + MIN( + 94 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT 70 + CASE 49 WHEN - 92 THEN NULL WHEN CAST ( - + 61 AS INTEGER ) THEN + MIN ( + 94 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4135
SELECT CAST( NULL AS SIGNED ) / + 73 - + NULLIF ( CAST( NULL AS SIGNED ), - 34 * - 65 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4135
SELECT CAST ( NULL AS INTEGER ) / + 73 - + NULLIF ( CAST ( NULL AS INTEGER ), - 34 * - 65 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT + 5 * COALESCE ( + - 91, + CAST( NULL AS SIGNED ) * + - COUNT( * ), + COUNT( DISTINCT + 37 ) ) + + ( - 15 )
----
-470

skipif mysql # not compatible
query I rowsort label-4136
SELECT + 5 * COALESCE ( + - 91, + CAST ( NULL AS INTEGER ) * + - COUNT ( * ), + COUNT ( DISTINCT + 37 ) ) + + ( - 15 )
----
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT + + COUNT( ALL + - 38 ) * - COUNT( * ) - + 52 + - 75 * MAX( - + 97 ) + - + 84
----
7138

skipif mysql # not compatible
query I rowsort label-4137
SELECT + + COUNT ( ALL + - 38 ) * - COUNT ( * ) - + 52 + - 75 * MAX ( - + 97 ) + - + 84
----
7138

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT 40 - + - CASE 29 WHEN + - 27 THEN NULL ELSE + COALESCE ( - - 31, + COUNT( * ) * + SUM( DISTINCT 21 ) * - - 0 + ( + - ( - ( + - 17 ) ) ) + 54 ) END - + 14
----
57

skipif mysql # not compatible
query I rowsort label-4138
SELECT 40 - + - CASE 29 WHEN + - 27 THEN NULL ELSE + COALESCE ( - - 31, + COUNT ( * ) * + SUM ( DISTINCT 21 ) * - - 0 + ( + - ( - ( + - 17 ) ) ) + 54 ) END - + 14
----
57

query I rowsort
SELECT ALL 5 + + 27 * - + 79 AS col2
----
-2128

query I rowsort
SELECT ALL 64 + - + 8
----
56

query II rowsort
SELECT - 70 AS col1, - 17 AS col2
----
-70
-17

query I rowsort
SELECT 77 + - 60 AS col2
----
17

query I rowsort
SELECT 84 * - 40
----
-3360

query I rowsort
SELECT 19 * + 29 AS col2
----
551

query I rowsort
SELECT 22 - - + ( + + 35 ) AS col1
----
57

query I rowsort
SELECT 9 * + 9
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL + 98 + - + MAX( - 43 ) * + 19
----
915

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + 98 + - + MAX ( - 43 ) * + 19
----
915

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT 99 + + - 33 DIV + 82 * 75 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4148
SELECT 99 + + - 33 / + 82 * 75 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT 8 + + - 93 - - - 98 * + COUNT( * ) col1
----
-183

skipif mysql # not compatible
query I rowsort label-4149
SELECT 8 + + - 93 - - - 98 * + COUNT ( * ) col1
----
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT 28 + + CAST( - 77 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-4150
SELECT 28 + + CAST ( - 77 AS INTEGER )
----
-49

query II rowsort
SELECT ALL 52 col2, 31
----
52
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT - - ( - MAX( ALL - 98 ) ) * 20 - 44 + 86
----
2002

skipif mysql # not compatible
query I rowsort label-4152
SELECT - - ( - MAX ( ALL - 98 ) ) * 20 - 44 + 86
----
2002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4153
SELECT ALL + MIN( + + ( + 42 ) ) DIV - 38 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL + MIN ( + + ( + 42 ) ) / - 38 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT DISTINCT + 66 / 26 * ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT + 66 / 26 * ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT MIN( - 52 ) + + - COUNT( * ) * - COUNT( * ) * + MAX( - 81 ) + + 24 AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-4155
SELECT MIN ( - 52 ) + + - COUNT ( * ) * - COUNT ( * ) * + MAX ( - 81 ) + + 24 AS col1
----
-109

query I rowsort
SELECT - 16 * + 99 AS col1
----
-1584

onlyif mysql # DIV for integer division: 
query I rowsort label-4157
SELECT + 99 DIV 86 + - 26 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4157
SELECT + 99 / 86 + - 26 AS col2
----
-25

query II rowsort
SELECT + 42, 64 * + 30 AS col0
----
42
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT DISTINCT + MIN( - + 35 ) + - 57
----
-92

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT + MIN ( - + 35 ) + - 57
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT DISTINCT - 23 + - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT - 23 + - COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT COUNT( * ) * - - 7 + 37 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4161
SELECT COUNT ( * ) * - - 7 + 37 AS col1
----
44

query I rowsort
SELECT DISTINCT + 90 + - 95 * - 76
----
7310

query II rowsort
SELECT ALL - + NULLIF ( + - 31, - + 13 ), - 80 AS col2
----
31
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT + CASE - 39 WHEN - CASE + - 42 WHEN - - 49 THEN NULL WHEN + + 47 + + + ( + 97 ) + 84 THEN - 26 WHEN - - MAX( + 29 ) + + 36 - - COUNT( * ) + + 65 THEN NULL END THEN 7 WHEN - - 37 THEN 38 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT + CASE - 39 WHEN - CASE + - 42 WHEN - - 49 THEN NULL WHEN + + 47 + + + ( + 97 ) + 84 THEN - 26 WHEN - - MAX ( + 29 ) + + 36 - - COUNT ( * ) + + 65 THEN NULL END THEN 7 WHEN - - 37 THEN 38 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + - ( + + 9 )
----
-9

query I rowsort
SELECT 74 + - + 69 * 73 + - 36
----
-4999

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT CASE - - 80 WHEN + - COUNT( ALL 79 ) THEN - 62 * + 26 * + 30 + - - 18 + + + 75 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT CASE - - 80 WHEN + - COUNT ( ALL 79 ) THEN - 62 * + 26 * + 30 + - - 18 + + + 75 END + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT ( - + 54 ) DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT ( - + 54 ) / + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT 22 + + COUNT( * ) + 78
----
101

skipif mysql # not compatible
query I rowsort label-4169
SELECT 22 + + COUNT ( * ) + 78
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-4170
SELECT - 25 AS col0, SUM( + - 80 )
----
-25
-80

skipif mysql # not compatible
query II rowsort label-4170
SELECT - 25 AS col0, SUM ( + - 80 )
----
-25
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4171
SELECT ALL 51 + CASE + - 0 WHEN - 86 THEN - MAX( 86 ) ELSE ( + CAST( NULL AS SIGNED ) ) END + ( 88 ) + - - ( - + 56 ) - - 85 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL 51 + CASE + - 0 WHEN - 86 THEN - MAX ( 86 ) ELSE ( + CAST ( NULL AS INTEGER ) ) END + ( 88 ) + - - ( - + 56 ) - - 85 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ( - 39 ) * + COUNT( * ) + + 20 + - 28 - + - ( - 1 )
----
-48

skipif mysql # not compatible
query I rowsort label-4172
SELECT ( - 39 ) * + COUNT ( * ) + + 20 + - 28 - + - ( - 1 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4173
SELECT ALL COUNT( * ) DIV 54 AS col0, - 2 - ( 58 ) + 61 - - + 1 * + - 9
----
0
-8

skipif mysql # not compatible
query II rowsort label-4173
SELECT ALL COUNT ( * ) / 54 AS col0, - 2 - ( 58 ) + 61 - - + 1 * + - 9
----
0
-8

query I rowsort
SELECT DISTINCT 80 + + + 91 AS col1
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT DISTINCT 85 AS col2, - COUNT( * )
----
85
-1

skipif mysql # not compatible
query II rowsort label-4175
SELECT DISTINCT 85 AS col2, - COUNT ( * )
----
85
-1

query I rowsort
SELECT ALL 15 - - - 68 + 67 - + - 53 * + 79 - - 52 AS col1
----
4253

query II rowsort
SELECT - 46, 57 AS col1
----
-46
57

query I rowsort
SELECT 44 + 69 * + 96
----
6668

query II rowsort
SELECT ALL 2 AS col0, - ( + ( 5 ) )
----
2
-5

query I rowsort
SELECT 54 + 29
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL COUNT( - - 87 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL COUNT ( - - 87 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT ( + + CAST( NULL AS SIGNED ) ) * 23 * 82 / + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT ( + + CAST ( NULL AS INTEGER ) ) * 23 * 82 / + 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4183
SELECT DISTINCT 61 AS col2, CASE + 8 WHEN + 40 THEN - - NULLIF ( - COUNT( * ), - 36 ) ELSE NULL END AS col2
----
61
NULL

skipif mysql # not compatible
query II rowsort label-4183
SELECT DISTINCT 61 AS col2, CASE + 8 WHEN + 40 THEN - - NULLIF ( - COUNT ( * ), - 36 ) ELSE NULL END AS col2
----
61
NULL

query I rowsort
SELECT 43 + - + COALESCE ( - 85, 48 ) col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT MAX( ALL - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT MAX ( ALL - 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ( + + 60 ) + + CASE - 33 WHEN + + 28 * - - 92 - - 54 THEN + COUNT( * ) * - 47 END / - ( + - 21 ) * - - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT ( + + 60 ) + + CASE - 33 WHEN + + 28 * - - 92 - - 54 THEN + COUNT ( * ) * - 47 END / - ( + - 21 ) * - - 98 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4187
SELECT ALL + - COUNT( * ) DIV - CAST( + 87 AS SIGNED ) * + - 92 col2
----
0

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + - COUNT ( * ) / - CAST ( + 87 AS INTEGER ) * + - 92 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4188
SELECT - + 28, MIN( - 69 ) AS col2
----
-28
-69

skipif mysql # not compatible
query II rowsort label-4188
SELECT - + 28, MIN ( - 69 ) AS col2
----
-28
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT - + SUM( DISTINCT 48 ) * 11
----
-528

skipif mysql # not compatible
query I rowsort label-4189
SELECT - + SUM ( DISTINCT 48 ) * 11
----
-528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4190
SELECT 10, CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-4190
SELECT 10, CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col1
----
10
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4191
SELECT - COUNT( * ) DIV - - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4191
SELECT - COUNT ( * ) / - - 84 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT DISTINCT - 77 * + 49 + 37 * COUNT( * ) + - - 9 AS col1
----
-3727

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT - 77 * + 49 + 37 * COUNT ( * ) + - - 9 AS col1
----
-3727

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT + MAX( - - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-4193
SELECT + MAX ( - - 13 )
----
13

query I rowsort
SELECT ALL 54 * - 75 + 17 * 87 AS col0
----
-2571

query II rowsort
SELECT + 37 AS col1, 69 + - 14 * - 56 + - 23 AS col0
----
37
830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4196
SELECT DISTINCT - 47 * + + 51 * - 87 + + 40 * + - COUNT( + 27 ) * - CAST( + 22 AS SIGNED ) + + 35 + 15 AS col0
----
209469

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - 47 * + + 51 * - 87 + + 40 * + - COUNT ( + 27 ) * - CAST ( + 22 AS INTEGER ) + + 35 + 15 AS col0
----
209469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4197
SELECT COUNT( * ) DIV 32 + COALESCE ( MIN( 80 ), - COUNT( * ) + - + COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-4197
SELECT COUNT ( * ) / 32 + COALESCE ( MIN ( 80 ), - COUNT ( * ) + - + COUNT ( * ) )
----
80

query I rowsort
SELECT - + 92 * + 67 * 84
----
-517776

onlyif mysql # aggregate syntax: 
query II rowsort label-4199
SELECT - COUNT( * ) - - 60 AS col0, - 73
----
59
-73

skipif mysql # not compatible
query II rowsort label-4199
SELECT - COUNT ( * ) - - 60 AS col0, - 73
----
59
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT + COUNT( 38 )
----
1

skipif mysql # not compatible
query I rowsort label-4200
SELECT + COUNT ( 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT DISTINCT + MAX( 93 ) * + - 96 col2
----
-8928

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT + MAX ( 93 ) * + - 96 col2
----
-8928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4202
SELECT ALL - 90 * 65 - + COALESCE ( - 98, + 76 DIV 95 DIV COALESCE ( - - COUNT( * ), + ( - 71 ) * + 1 + - 24 + - + 26 + + ( - 14 ) * + ( + - 45 ) + 46 * - 31 ) )
----
-5752

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - 90 * 65 - + COALESCE ( - 98, + 76 / 95 / COALESCE ( - - COUNT ( * ), + ( - 71 ) * + 1 + - 24 + - + 26 + + ( - 14 ) * + ( + - 45 ) + 46 * - 31 ) )
----
-5752

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL + SUM( DISTINCT + + 41 ) col2
----
41

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL + SUM ( DISTINCT + + 41 ) col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT MAX( + - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4204
SELECT MAX ( + - 1 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4205
SELECT - 56 * - - 17 AS col1, - CAST( NULL AS SIGNED ) * + + CAST( - 14 AS DECIMAL )
----
-952
NULL

skipif mysql # not compatible
query II rowsort label-4205
SELECT - 56 * - - 17 AS col1, - CAST ( NULL AS INTEGER ) * + + CAST ( - 14 AS REAL )
----
-952
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT + MIN( + + 61 ) * - 7 * - SUM( ALL - ( + + 37 ) ) AS col1
----
-15799

skipif mysql # not compatible
query I rowsort label-4206
SELECT + MIN ( + + 61 ) * - 7 * - SUM ( ALL - ( + + 37 ) ) AS col1
----
-15799

onlyif mysql # aggregate syntax: 
query II rowsort label-4207
SELECT COUNT( 92 ), - 3 AS col2
----
1
-3

skipif mysql # not compatible
query II rowsort label-4207
SELECT COUNT ( 92 ), - 3 AS col2
----
1
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4208
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + NULLIF ( + + 27, + - COUNT( * ) - 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + NULLIF ( + + 27, + - COUNT ( * ) - 10 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4209
SELECT + 44 - CASE - 46 WHEN - - 62 THEN + - NULLIF ( 82, - 70 * 12 * + - 95 ) WHEN - 1 THEN 8 END + + COUNT( * ), - COUNT( * ) + - - COUNT( * ) * - 43 AS col0
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-4209
SELECT + 44 - CASE - 46 WHEN - - 62 THEN + - NULLIF ( 82, - 70 * 12 * + - 95 ) WHEN - 1 THEN 8 END + + COUNT ( * ), - COUNT ( * ) + - - COUNT ( * ) * - 43 AS col0
----
NULL
-44

query I rowsort
SELECT + 96 * + 54
----
5184

query I rowsort
SELECT DISTINCT + 8 * 50 AS col1
----
400

query I rowsort
SELECT DISTINCT + 50 * - + 20 * - + 83
----
83000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT DISTINCT - 75 * - CASE + CAST( 43 AS SIGNED ) WHEN 47 THEN NULL WHEN 98 THEN + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT - 75 * - CASE + CAST ( 43 AS INTEGER ) WHEN 47 THEN NULL WHEN 98 THEN + 54 END
----
NULL

query I rowsort
SELECT + 75 + ( 38 ) - - 46
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT + SUM( + + 17 ) col1
----
17

skipif mysql # not compatible
query I rowsort label-4215
SELECT + SUM ( + + 17 ) col1
----
17

query I rowsort
SELECT + 89 + + ( + - 86 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL COALESCE ( 19, - 48, - MAX( DISTINCT - + 33 ) + + 52 )
----
19

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL COALESCE ( 19, - 48, - MAX ( DISTINCT - + 33 ) + + 52 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4218
SELECT ALL - 50 DIV 45 + + - 65, - 55 - - 92 + - COUNT( * ) AS col1
----
-66
36

skipif mysql # not compatible
query II rowsort label-4218
SELECT ALL - 50 / 45 + + - 65, - 55 - - 92 + - COUNT ( * ) AS col1
----
-66
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT DISTINCT - 32 DIV - 88 - - 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT - 32 / - 88 - - 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT - MAX( 25 ) + 86
----
61

skipif mysql # not compatible
query I rowsort label-4220
SELECT - MAX ( 25 ) + 86
----
61

query I rowsort
SELECT + 27 * - 13 + 31 + + 62 AS col2
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL - + COUNT( * ) * - + 95 * - 37 AS col1
----
-3515

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - + COUNT ( * ) * - + 95 * - 37 AS col1
----
-3515

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4223
SELECT ALL - 36 DIV + 83 * + + CAST( 71 AS SIGNED ) + 96, 65 * - ( ( - + 64 ) ) AS col2
----
96
4160

skipif mysql # not compatible
query II rowsort label-4223
SELECT ALL - 36 / + 83 * + + CAST ( 71 AS INTEGER ) + 96, 65 * - ( ( - + 64 ) ) AS col2
----
96
4160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT + 39 * - + 22 + + CAST( - 12 AS SIGNED ) AS col0
----
-870

skipif mysql # not compatible
query I rowsort label-4224
SELECT + 39 * - + 22 + + CAST ( - 12 AS INTEGER ) AS col0
----
-870

query I rowsort
SELECT - 74 - + 80 AS col0
----
-154

query I rowsort
SELECT - COALESCE ( - 63, - - 15 + - 67, - 62 ) + + 41
----
104

query I rowsort
SELECT ALL - NULLIF ( - - 77, + 66 * + 20 * 44 + + 32 ) * + 29 * - 34 * + + 1 + + + 69 AS col1
----
75991

query II rowsort
SELECT ( + - ( + 34 ) ), - 33 AS col2
----
-34
-33

query I rowsort
SELECT ALL + 63 * - 76 - + + 68
----
-4856

query II rowsort
SELECT + 60 * + 21 + + 20 col1, + 42
----
1280
42

query I rowsort
SELECT NULLIF ( + 73, + 38 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT ALL + SUM( DISTINCT 22 )
----
22

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL + SUM ( DISTINCT 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT + NULLIF ( - SUM( DISTINCT - 59 ), + - 39 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4233
SELECT + NULLIF ( - SUM ( DISTINCT - 59 ), + - 39 ) AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4234
SELECT + COUNT( * ) * + CAST( - 42 AS SIGNED ) col0, + 2
----
-42
2

skipif mysql # not compatible
query II rowsort label-4234
SELECT + COUNT ( * ) * + CAST ( - 42 AS INTEGER ) col0, + 2
----
-42
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4235
SELECT CASE - 50 WHEN - + 50 * + 64 THEN + - 52 WHEN 23 THEN NULL ELSE + 77 + - 19 + CAST( NULL AS SIGNED ) * - 92 * + - NULLIF ( + 91, - 55 ) + + 3 END, - 17 AS col0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-4235
SELECT CASE - 50 WHEN - + 50 * + 64 THEN + - 52 WHEN 23 THEN NULL ELSE + 77 + - 19 + CAST ( NULL AS INTEGER ) * - 92 * + - NULLIF ( + 91, - 55 ) + + 3 END, - 17 AS col0
----
NULL
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT ALL - 3 * CAST( NULL AS SIGNED ) * - COALESCE ( - 99, - 83 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL - 3 * CAST ( NULL AS INTEGER ) * - COALESCE ( - 99, - 83 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT ALL CAST( + ( + 31 ) AS SIGNED ) col2
----
31

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL CAST ( + ( + 31 ) AS INTEGER ) col2
----
31

query I rowsort
SELECT 27 * - 43 AS col2
----
-1161

query I rowsort
SELECT 63 + + 14
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT ALL - CAST( - 70 AS SIGNED ) + + 55
----
125

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - CAST ( - 70 AS INTEGER ) + + 55
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4241
SELECT COALESCE ( + COUNT( * ), - + 39 + + 73, - 61 + 46 + + 63 DIV 13 + - + 54 - - 87, + COUNT( * ) ) * + COUNT( + 15 ) * + 98 col1
----
98

skipif mysql # not compatible
query I rowsort label-4241
SELECT COALESCE ( + COUNT ( * ), - + 39 + + 73, - 61 + 46 + + 63 / 13 + - + 54 - - 87, + COUNT ( * ) ) * + COUNT ( + 15 ) * + 98 col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL + 55 + - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL + 55 + - - COUNT ( * )
----
56

query II rowsort
SELECT + 99 AS col1, 84 * + - ( 25 )
----
99
-2100

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4244
SELECT DISTINCT + 19 AS col0, 77 / + CAST( NULL AS DECIMAL )
----
19
NULL

skipif mysql # not compatible
query II rowsort label-4244
SELECT DISTINCT + 19 AS col0, 77 / + CAST ( NULL AS REAL )
----
19
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT + CAST( 57 AS SIGNED ) col1
----
57

skipif mysql # not compatible
query I rowsort label-4245
SELECT + CAST ( 57 AS INTEGER ) col1
----
57

query I rowsort
SELECT ALL 39 + + 28 AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT - ( - 89 ) * + 22 + 24 + - 70 + 91 - + 78 / + CAST( NULL AS SIGNED ) / 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT - ( - 89 ) * + 22 + 24 + - 70 + 91 - + 78 / + CAST ( NULL AS INTEGER ) / 98 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4248
SELECT ALL 79 + - CAST( 25 AS SIGNED ) / 58 * - + 44 * + CAST( NULL AS SIGNED ) - - 21 + + 73 - - 97 * + COUNT( * ) + + - 44 * 66 * + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL 79 + - CAST ( 25 AS INTEGER ) / 58 * - + 44 * + CAST ( NULL AS INTEGER ) - - 21 + + 73 - - 97 * + COUNT ( * ) + + - 44 * 66 * + 60 AS col2
----
NULL

query I rowsort
SELECT 14 * 21 * + ( - - 61 ) AS col0
----
17934

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4250
SELECT + 89, CAST( NULL AS DECIMAL ) col0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-4250
SELECT + 89, CAST ( NULL AS REAL ) col0
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL 6 + - + 80 + + SUM( + 18 ) * 45 * - 94 AS col0
----
-76214

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL 6 + - + 80 + + SUM ( + 18 ) * 45 * - 94 AS col0
----
-76214

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT + 75 DIV 69
----
1

skipif mysql # not compatible
query I rowsort label-4252
SELECT + 75 / 69
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT ALL + 70 * 45 + + + 4 * COALESCE ( CAST( NULL AS SIGNED ), - 43 ) + 21
----
2999

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL + 70 * 45 + + + 4 * COALESCE ( CAST ( NULL AS INTEGER ), - 43 ) + 21
----
2999

query II rowsort
SELECT 82, - 17 AS col2
----
82
-17

query I rowsort
SELECT ALL - 78 - ( + - 4 ) + 71
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4256
SELECT - 56 / + + CASE 48 WHEN + + 16 THEN NULL WHEN 30 + - 59 THEN - 8 * + 25 END * CASE COALESCE ( - - 17, - ( - 87 ) ) WHEN + - 29 * - - 39 + - + AVG ( DISTINCT + + 28 ) THEN 53 * - + 7 + 2 + + - 4 - + 88 ELSE NULL END + - + COUNT( * ) / ( - NULLIF ( 94, - 56 ) ) AS col1, ( + - 28 ) + + - MAX( DISTINCT + 77 ) * - 95 col1
----
NULL
7287

skipif mysql # not compatible
query II rowsort label-4256
SELECT - 56 / + + CASE 48 WHEN + + 16 THEN NULL WHEN 30 + - 59 THEN - 8 * + 25 END * CASE COALESCE ( - - 17, - ( - 87 ) ) WHEN + - 29 * - - 39 + - + AVG ( DISTINCT + + 28 ) THEN 53 * - + 7 + 2 + + - 4 - + 88 ELSE NULL END + - + COUNT ( * ) / ( - NULLIF ( 94, - 56 ) ) AS col1, ( + - 28 ) + + - MAX ( DISTINCT + 77 ) * - 95 col1
----
NULL
7287

query I rowsort
SELECT 28 * - COALESCE ( - 9, - - 92 )
----
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4258
SELECT ALL - MIN( ALL - 84 ), 77 DIV + 28 col2
----
84
2

skipif mysql # not compatible
query II rowsort label-4258
SELECT ALL - MIN ( ALL - 84 ), 77 / + 28 col2
----
84
2

query I rowsort
SELECT DISTINCT - 89 * 27 * + NULLIF ( + 43, - 33 + + 33 + - - 86 + + + 53 / + - 29 * + 1 * + 21 * ( - 83 ) ) AS col1
----
-103329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT 12 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT 12 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4261
SELECT 47 DIV + 5 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4261
SELECT 47 / + 5 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL - COUNT( DISTINCT 93 ) * + 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL - COUNT ( DISTINCT 93 ) * + 35 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT COUNT( * ) * - - 97 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4263
SELECT COUNT ( * ) * - - 97 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT COUNT( * ) * + 94 * - 86 + - - ( + 42 ) * - 89
----
-11822

skipif mysql # not compatible
query I rowsort label-4264
SELECT COUNT ( * ) * + 94 * - 86 + - - ( + 42 ) * - 89
----
-11822

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ALL - MAX( + COALESCE ( 24, - 6 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL - MAX ( + COALESCE ( 24, - 6 ) )
----
-24

query I rowsort
SELECT DISTINCT 91 * + 70 AS col1
----
6370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4267
SELECT DISTINCT ( + NULLIF ( - SUM( + 54 ), + + 60 * + 81 / + NULLIF ( CAST( NULL AS SIGNED ), AVG ( DISTINCT - 89 ) ) * - COUNT( * ) ) ) * + 53
----
-2862

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT ( + NULLIF ( - SUM ( + 54 ), + + 60 * + 81 / + NULLIF ( CAST ( NULL AS INTEGER ), AVG ( DISTINCT - 89 ) ) * - COUNT ( * ) ) ) * + 53
----
-2862

onlyif mysql # aggregate syntax: 
query II rowsort label-4268
SELECT 44 * 7 * 82 * + COUNT( * ), MIN( - 9 ) * - + 56 + - + 70 + + + COUNT( * ) * + COUNT( * ) * - MIN( + 35 ) * - + 44 + 98 AS col0
----
25256
2072

skipif mysql # not compatible
query II rowsort label-4268
SELECT 44 * 7 * 82 * + COUNT ( * ), MIN ( - 9 ) * - + 56 + - + 70 + + + COUNT ( * ) * + COUNT ( * ) * - MIN ( + 35 ) * - + 44 + 98 AS col0
----
25256
2072

query I rowsort
SELECT 47 - + 56 * - - ( - 1 ) + + + 59 * + + 78 AS col0
----
4705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4270
SELECT ALL - CASE - 93 WHEN - - 38 * - - COUNT( * ) * 68 THEN - + 63 WHEN - 48 * - COUNT( * ) THEN - 97 + + ( - 41 ) WHEN - + CAST( NULL AS SIGNED ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL - CASE - 93 WHEN - - 38 * - - COUNT ( * ) * 68 THEN - + 63 WHEN - 48 * - COUNT ( * ) THEN - 97 + + ( - 41 ) WHEN - + CAST ( NULL AS INTEGER ) THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT 63 DIV + - 15
----
-4

skipif mysql # not compatible
query I rowsort label-4271
SELECT 63 / + - 15
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4272
SELECT 34 * - 33 AS col1, - COUNT( ALL + 19 ) AS col2
----
-1122
-1

skipif mysql # not compatible
query II rowsort label-4272
SELECT 34 * - 33 AS col1, - COUNT ( ALL + 19 ) AS col2
----
-1122
-1

query II rowsort
SELECT 43 * - - 53 AS col0, 0 * - ( 70 ) col2
----
2279
0

query I rowsort
SELECT ALL - - 60 * 23 + + + 82 + - + 2 + + + 67 * + COALESCE ( - 97, - 79 - + + 13 )
----
-5039

query I rowsort
SELECT DISTINCT - 98 * 50 + 88 AS col2
----
-4812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4276
SELECT DISTINCT 28 + + SUM( DISTINCT - + 42 ) * - CAST( - - 70 AS SIGNED ) + - - COUNT( * ) col0
----
2969

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT 28 + + SUM ( DISTINCT - + 42 ) * - CAST ( - - 70 AS INTEGER ) + - - COUNT ( * ) col0
----
2969

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL - + CASE - 85 WHEN 89 * + ( - MIN( DISTINCT - 6 ) ) + + + 77 + - - 37 * SUM( 97 ) + 58 THEN + + 75 + + 28 + + 61 WHEN 7 * - + ( - 72 ) THEN NULL WHEN + 14 + + ( - 62 ) - 3 * 37 * COUNT( * ) THEN - 78 END * - 97 + + + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL - + CASE - 85 WHEN 89 * + ( - MIN ( DISTINCT - 6 ) ) + + + 77 + - - 37 * SUM ( 97 ) + 58 THEN + + 75 + + 28 + + 61 WHEN 7 * - + ( - 72 ) THEN NULL WHEN + 14 + + ( - 62 ) - 3 * 37 * COUNT ( * ) THEN - 78 END * - 97 + + + 40 AS col1
----
NULL

query I rowsort
SELECT ( - - ( + - 7 ) ) + + 76
----
69

query I rowsort
SELECT + 73 + + ( 65 ) * - 92
----
-5907

query I rowsort
SELECT 6 - + - 1 * 7 AS col0
----
13

query I rowsort
SELECT - ( 61 ) * - 59 AS col1
----
3599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4282
SELECT CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) * + 47 * - MIN( DISTINCT - 86 ) * + 56 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) * + 47 * - MIN ( DISTINCT - 86 ) * + 56 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT - 0 + 3 * + 54 - + ( COUNT( * ) ) + 51 + + - 77 * 20 AS col2
----
-1328

skipif mysql # not compatible
query I rowsort label-4283
SELECT - 0 + 3 * + 54 - + ( COUNT ( * ) ) + 51 + + - 77 * 20 AS col2
----
-1328

query I rowsort
SELECT DISTINCT - - ( + - 90 ) - - - 64
----
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-4285
SELECT DISTINCT COUNT( - 17 ) * - COUNT( * ) + + 97 + + 51 * - 70 * - 50 AS col0, COALESCE ( - - 73, + COUNT( * ) + 0, - - 16 ) * ( + 11 ) * + - COUNT( 35 ) + + + 86 - ( + 99 ) + - 1 AS col0
----
178596
-817

skipif mysql # not compatible
query II rowsort label-4285
SELECT DISTINCT COUNT ( - 17 ) * - COUNT ( * ) + + 97 + + 51 * - 70 * - 50 AS col0, COALESCE ( - - 73, + COUNT ( * ) + 0, - - 16 ) * ( + 11 ) * + - COUNT ( 35 ) + + + 86 - ( + 99 ) + - 1 AS col0
----
178596
-817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4286
SELECT COALESCE ( + 93, - 33 + - ( COALESCE ( + 52, + + 80 ) ) ) * - CAST( - 28 AS SIGNED )
----
2604

skipif mysql # not compatible
query I rowsort label-4286
SELECT COALESCE ( + 93, - 33 + - ( COALESCE ( + 52, + + 80 ) ) ) * - CAST ( - 28 AS INTEGER )
----
2604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4287
SELECT ALL CASE + 91 WHEN COUNT( * ) THEN + + NULLIF ( + CAST( - - 86 AS DECIMAL ), + + 8 ) + + 4 WHEN + + 16 / + 52 / - 14 + - MIN( 0 ) * 64 + - - CAST( NULL AS SIGNED ) + + + 1 THEN NULL END * - 91 * - 28 AS col1, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4287
SELECT ALL CASE + 91 WHEN COUNT ( * ) THEN + + NULLIF ( + CAST ( - - 86 AS REAL ), + + 8 ) + + 4 WHEN + + 16 / + 52 / - 14 + - MIN ( 0 ) * 64 + - - CAST ( NULL AS INTEGER ) + + + 1 THEN NULL END * - 91 * - 28 AS col1, - CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT ALL 51 * + 2 col2
----
102

query I rowsort
SELECT 38 * - + 37
----
-1406

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT MAX( + + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-4290
SELECT MAX ( + + 12 )
----
12

query I rowsort
SELECT 28 * 61
----
1708

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT COUNT( * ) * 90 * + ( 84 ) * ( + COUNT( * ) ) * - - 43 + 18
----
325098

skipif mysql # not compatible
query I rowsort label-4292
SELECT COUNT ( * ) * 90 * + ( 84 ) * ( + COUNT ( * ) ) * - - 43 + 18
----
325098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT ALL - CAST( NULL AS SIGNED ) * + + 72 + - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 72 + - + 74
----
NULL

query I rowsort
SELECT + 85 + + - 99
----
-14

query I rowsort
SELECT + 61 + 40 AS col2
----
101

query I rowsort
SELECT DISTINCT 73 + 0 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT + 6 * 51 + COUNT( * ) AS col0
----
307

skipif mysql # not compatible
query I rowsort label-4297
SELECT + 6 * 51 + COUNT ( * ) AS col0
----
307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4298
SELECT + + MAX( 6 ) * - + COUNT( * ) - - - 88 + + - 24 + + + 73 * - - 43 * + + CAST( + 10 AS SIGNED )
----
31272

skipif mysql # not compatible
query I rowsort label-4298
SELECT + + MAX ( 6 ) * - + COUNT ( * ) - - - 88 + + - 24 + + + 73 * - - 43 * + + CAST ( + 10 AS INTEGER )
----
31272

query I rowsort
SELECT DISTINCT + 27 * - + 85
----
-2295

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL + NULLIF ( 25, + + COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + NULLIF ( 25, + + COUNT ( * ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - - 58 + + COUNT( * ) + 2 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4301
SELECT - - 58 + + COUNT ( * ) + 2 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT - - 8 + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-4302
SELECT - - 8 + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT + COUNT( * ) * - + 10
----
-10

skipif mysql # not compatible
query I rowsort label-4303
SELECT + COUNT ( * ) * - + 10
----
-10

query I rowsort
SELECT - + 33 * 48
----
-1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4305
SELECT - CAST( NULL AS SIGNED ) + ( + COUNT( * ) ) + - ( - 57 ) + - - CAST( 98 AS SIGNED ) * ( 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT - CAST ( NULL AS INTEGER ) + ( + COUNT ( * ) ) + - ( - 57 ) + - - CAST ( 98 AS INTEGER ) * ( 6 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4306
SELECT DISTINCT + COUNT( * ), + 10 AS col1
----
1
10

skipif mysql # not compatible
query II rowsort label-4306
SELECT DISTINCT + COUNT ( * ), + 10 AS col1
----
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT DISTINCT 45 - - + 26 * - ( COUNT( * ) ) * COALESCE ( 11, - 27 * 32 ) + + 80 + - ( 6 )
----
-167

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT 45 - - + 26 * - ( COUNT ( * ) ) * COALESCE ( 11, - 27 * 32 ) + + 80 + - ( 6 )
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL + 92 * COUNT( * ) * - 33
----
-3036

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL + 92 * COUNT ( * ) * - 33
----
-3036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4309
SELECT CASE - 5 WHEN MIN( DISTINCT + - 29 ) / - CASE 94 WHEN + - ( COUNT( * ) ) THEN NULL ELSE - - 59 * 31 END * 25 + - + 65 THEN NULL WHEN + - MIN( - CAST( 77 AS DECIMAL ) ) THEN + COUNT( * ) + + + 80 + - + ( + COUNT( ( - 76 ) ) ) WHEN - CAST( + COUNT( * ) AS SIGNED ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT CASE - 5 WHEN MIN ( DISTINCT + - 29 ) / - CASE 94 WHEN + - ( COUNT ( * ) ) THEN NULL ELSE - - 59 * 31 END * 25 + - + 65 THEN NULL WHEN + - MIN ( - CAST ( 77 AS REAL ) ) THEN + COUNT ( * ) + + + 80 + - + ( + COUNT ( ( - 76 ) ) ) WHEN - CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT ALL CAST( - ( - 26 ) AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL CAST ( - ( - 26 ) AS INTEGER ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT DISTINCT + ( + 17 ) * MIN( - 79 ) AS col0
----
-1343

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT + ( + 17 ) * MIN ( - 79 ) AS col0
----
-1343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4312
SELECT ALL + 89 AS col1, COALESCE ( - 1, - + CAST( NULL AS SIGNED ) ) * + 4 + - COALESCE ( + 48, - 54 * 43 + COALESCE ( + - 69, - + 45 ), + 42 + - 31 * - 96 + - - SUM( - 83 ) - + 10 + + 28 + - CAST( NULL AS SIGNED ) DIV - + 87 ) * - 99
----
89
4748

skipif mysql # not compatible
query II rowsort label-4312
SELECT ALL + 89 AS col1, COALESCE ( - 1, - + CAST ( NULL AS INTEGER ) ) * + 4 + - COALESCE ( + 48, - 54 * 43 + COALESCE ( + - 69, - + 45 ), + 42 + - 31 * - 96 + - - SUM ( - 83 ) - + 10 + + 28 + - CAST ( NULL AS INTEGER ) / - + 87 ) * - 99
----
89
4748

query I rowsort
SELECT - 58 - + - ( 35 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT - MAX( ALL + 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-4314
SELECT - MAX ( ALL + 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL ( - MAX( 52 ) ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL ( - MAX ( 52 ) ) AS col1
----
-52

query I rowsort
SELECT + NULLIF ( - - 89, + - 69 ) col1
----
89

query II rowsort
SELECT ( + 54 ), 36 AS col2
----
54
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT - 10 * + CASE + ( - - 44 ) WHEN + + 98 - 35 THEN SUM( 24 ) + 34 WHEN - + 49 / - - 20 THEN - COUNT( * ) * + + MIN( + 81 ) * - 89 - 90 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT - 10 * + CASE + ( - - 44 ) WHEN + + 98 - 35 THEN SUM ( 24 ) + 34 WHEN - + 49 / - - 20 THEN - COUNT ( * ) * + + MIN ( + 81 ) * - 89 - 90 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT + MAX( - - 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4319
SELECT + MAX ( - - 86 ) AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4320
SELECT DISTINCT - COUNT( * ) DIV - + NULLIF ( + NULLIF ( + + COUNT( * ), - - CAST( NULL AS DECIMAL ) DIV + + 85 ), - - 43 * + 20 ) + + 50 AS col1, COUNT( + + 51 ) AS col0
----
51
1

skipif mysql # not compatible
query II rowsort label-4320
SELECT DISTINCT - COUNT ( * ) / - + NULLIF ( + NULLIF ( + + COUNT ( * ), - - CAST ( NULL AS REAL ) / + + 85 ), - - 43 * + 20 ) + + 50 AS col1, COUNT ( + + 51 ) AS col0
----
51
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4321
SELECT DISTINCT + COUNT( * ) * - CASE - 28 WHEN + 51 * - 50 * - COUNT( * ) THEN 3 + + 11 WHEN - 31 THEN NULL WHEN - 61 THEN NULL END + + COUNT( * ) * + - 93 + + + 69 * + 9 AS col2, + 38
----
NULL
38

skipif mysql # not compatible
query II rowsort label-4321
SELECT DISTINCT + COUNT ( * ) * - CASE - 28 WHEN + 51 * - 50 * - COUNT ( * ) THEN 3 + + 11 WHEN - 31 THEN NULL WHEN - 61 THEN NULL END + + COUNT ( * ) * + - 93 + + + 69 * + 9 AS col2, + 38
----
NULL
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4322
SELECT ALL 91 * - 94 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL 91 * - 94 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL + CAST( + COALESCE ( - 84, - COUNT( * ) ) AS SIGNED ) * + 95 * COUNT( DISTINCT + ( + 67 ) ) + + + 25 + + 63 AS col2
----
-7892

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + CAST ( + COALESCE ( - 84, - COUNT ( * ) ) AS INTEGER ) * + 95 * COUNT ( DISTINCT + ( + 67 ) ) + + + 25 + + 63 AS col2
----
-7892

query II rowsort
SELECT + 41, - 46 col2
----
41
-46

query I rowsort
SELECT DISTINCT 97 * + - 85 * 31
----
-255595

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4326
SELECT ALL + 8 AS col2, - 79 + + + ( CAST( NULL AS SIGNED ) ) * - - 72 * - - 26 * + + 30 AS col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-4326
SELECT ALL + 8 AS col2, - 79 + + + ( CAST ( NULL AS INTEGER ) ) * - - 72 * - - 26 * + + 30 AS col2
----
8
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4327
SELECT + COUNT( + - CAST( + - CAST( - - 49 AS SIGNED ) AS DECIMAL ) ) * COUNT( * ) + + COUNT( * ) + + + 66 - + - 8 * 72 + - - NULLIF ( 26, + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) + - ( - 87 ) AS col2
----
757

skipif mysql # not compatible
query I rowsort label-4327
SELECT + COUNT ( + - CAST ( + - CAST ( - - 49 AS INTEGER ) AS REAL ) ) * COUNT ( * ) + + COUNT ( * ) + + + 66 - + - 8 * 72 + - - NULLIF ( 26, + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) + - ( - 87 ) AS col2
----
757

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4328
SELECT + 28 DIV + COALESCE ( - - 41, + 8 * + 97 ) * - - 83 + 83 - COUNT( * ) + + + 37
----
119

skipif mysql # not compatible
query I rowsort label-4328
SELECT + 28 / + COALESCE ( - - 41, + 8 * + 97 ) * - - 83 + 83 - COUNT ( * ) + + + 37
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL 78 * - - COUNT( * ) + + 64 + + 59
----
201

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL 78 * - - COUNT ( * ) + + 64 + + 59
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT DISTINCT 9 * COUNT( * ) + + 72 col2
----
81

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT 9 * COUNT ( * ) + + 72 col2
----
81

query I rowsort
SELECT + + ( - 32 ) + 18 AS col1
----
-14

query I rowsort
SELECT + 15 - - + 46 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + 19 * COALESCE ( - COUNT( * ), + - NULLIF ( MAX( - - 4 ), - 27 ) ) + 47
----
28

skipif mysql # not compatible
query I rowsort label-4333
SELECT + 19 * COALESCE ( - COUNT ( * ), + - NULLIF ( MAX ( - - 4 ), - 27 ) ) + 47
----
28

query II rowsort
SELECT + 68 AS col2, + 56 * + 68 + + - 40 * - - 13 AS col2
----
68
3288

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT + NULLIF ( - + COALESCE ( - + 1, - SUM( NULLIF ( + 24, 95 + + 27 ) ) * 12 * + - 27 ), - 63 ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4335
SELECT + NULLIF ( - + COALESCE ( - + 1, - SUM ( NULLIF ( + 24, 95 + + 27 ) ) * 12 * + - 27 ), - 63 ) - + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT - 15 * + + 75 * 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT - COUNT( * ) * - 49 + + CAST( + CAST( 71 AS SIGNED ) AS SIGNED ) AS col0
----
120

skipif mysql # not compatible
query I rowsort label-4337
SELECT - COUNT ( * ) * - 49 + + CAST ( + CAST ( 71 AS INTEGER ) AS INTEGER ) AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT - MIN( DISTINCT + - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-4338
SELECT - MIN ( DISTINCT + - 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL + SUM( 55 ) * + - MIN( DISTINCT 20 ) * - + 68
----
74800

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL + SUM ( 55 ) * + - MIN ( DISTINCT 20 ) * - + 68
----
74800

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT + + 85 - - - 0 * - CASE - + COUNT( * ) WHEN - COUNT( * ) * 44 / - 20 * + 11 * - 17 THEN - NULLIF ( NULLIF ( + 86, + COUNT( * ) ), - 93 + + 87 ) WHEN - 85 / - 95 + - 90 * MIN( DISTINCT 2 ) + - 54 THEN NULL WHEN - - 24 / 91 THEN - 85 * - + 95 - ( - 36 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT + + 85 - - - 0 * - CASE - + COUNT ( * ) WHEN - COUNT ( * ) * 44 / - 20 * + 11 * - 17 THEN - NULLIF ( NULLIF ( + 86, + COUNT ( * ) ), - 93 + + 87 ) WHEN - 85 / - 95 + - 90 * MIN ( DISTINCT 2 ) + - 54 THEN NULL WHEN - - 24 / 91 THEN - 85 * - + 95 - ( - 36 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4341
SELECT + + COUNT( * ) DIV + 78 * - 15
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT + + COUNT ( * ) / + 78 * - 15
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4342
SELECT DISTINCT 19 AS col1, ( - COALESCE ( - + 35, CAST( + - 66 AS SIGNED ) ) )
----
19
35

skipif mysql # not compatible
query II rowsort label-4342
SELECT DISTINCT 19 AS col1, ( - COALESCE ( - + 35, CAST ( + - 66 AS INTEGER ) ) )
----
19
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT MIN( DISTINCT - + 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT MIN ( DISTINCT - + 24 ) AS col2
----
-24

query II rowsort
SELECT ALL - 58 AS col0, 41
----
-58
41

query I rowsort
SELECT + 44 + + 92 AS col1
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4346
SELECT - 14 * + CASE - - COUNT( * ) WHEN + + 23 THEN NULL ELSE + CAST( NULL AS SIGNED ) * - 45 - + 80 END - - 53 * - 90, + NULLIF ( + - 97, + 37 ) + - + 62 * 5 + - + 67 + + 97 * - 1 + 95 + - - 66 * 6 * + 53 * - 20 - + 13 - COUNT( * ) * - 53 AS col1
----
NULL
-420196

skipif mysql # not compatible
query II rowsort label-4346
SELECT - 14 * + CASE - - COUNT ( * ) WHEN + + 23 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * - 45 - + 80 END - - 53 * - 90, + NULLIF ( + - 97, + 37 ) + - + 62 * 5 + - + 67 + + 97 * - 1 + 95 + - - 66 * 6 * + 53 * - 20 - + 13 - COUNT ( * ) * - 53 AS col1
----
NULL
-420196

query I rowsort
SELECT - 18 * - - ( - 86 )
----
1548

query I rowsort
SELECT + 58 + - 74 AS col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4349
SELECT ALL - - MAX( DISTINCT - - 9 ) DIV 33 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - - MAX ( DISTINCT - - 9 ) / 33 / + 60
----
0

query I rowsort
SELECT - 10 + - 44 * + 32 + - - 12
----
-1406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4351
SELECT ALL 16 + + + NULLIF ( - 39, MAX( COALESCE ( - - 46, CAST( NULL AS SIGNED ) ) ) ) * + 36
----
-1388

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL 16 + + + NULLIF ( - 39, MAX ( COALESCE ( - - 46, CAST ( NULL AS INTEGER ) ) ) ) * + 36
----
-1388

onlyif mysql # aggregate syntax: 
query II rowsort label-4352
SELECT DISTINCT SUM( ALL - + 52 ) AS col1, 15 * - + 79 - + COUNT( * ) AS col1
----
-52
-1186

skipif mysql # not compatible
query II rowsort label-4352
SELECT DISTINCT SUM ( ALL - + 52 ) AS col1, 15 * - + 79 - + COUNT ( * ) AS col1
----
-52
-1186

query I rowsort
SELECT ALL COALESCE ( + + 57, - + 6 * - - 21, - 21 + + 15 )
----
57

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4354
SELECT ALL CASE 1 WHEN + CASE + 6 WHEN - 32 + - 26 THEN NULL WHEN + 91 THEN - 27 * + + 64 + CAST( NULL AS SIGNED ) - - ( - 59 ) * - 4 * - + 96 + - - 75 WHEN + CAST( NULL AS SIGNED ) + + CASE + 39 WHEN 62 THEN - 39 WHEN - CAST( - 2 AS DECIMAL ) THEN NULL ELSE - 61 + 60 END THEN 5 * - NULLIF ( 44, - 99 ) + + 30 + - 46 ELSE NULL END THEN NULL ELSE - + 11 END AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL CASE 1 WHEN + CASE + 6 WHEN - 32 + - 26 THEN NULL WHEN + 91 THEN - 27 * + + 64 + CAST ( NULL AS INTEGER ) - - ( - 59 ) * - 4 * - + 96 + - - 75 WHEN + CAST ( NULL AS INTEGER ) + + CASE + 39 WHEN 62 THEN - 39 WHEN - CAST ( - 2 AS REAL ) THEN NULL ELSE - 61 + 60 END THEN 5 * - NULLIF ( 44, - 99 ) + + 30 + - 46 ELSE NULL END THEN NULL ELSE - + 11 END AS col2
----
-11

query I rowsort
SELECT DISTINCT + 76 + + 95 * - + 36 + 7 AS col2
----
-3337

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT DISTINCT + 31 + + + SUM( DISTINCT + - CASE + 3 WHEN - 56 THEN + 19 ELSE - - 96 * 13 + + 39 END ) AS col1
----
-1256

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT + 31 + + + SUM ( DISTINCT + - CASE + 3 WHEN - 56 THEN + 19 ELSE - - 96 * 13 + + 39 END ) AS col1
----
-1256

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT 56 + - COUNT( * ) * + COUNT( * ) * 64 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4357
SELECT 56 + - COUNT ( * ) * + COUNT ( * ) * 64 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT ALL + ( - 5 ) + 92 - NULLIF ( - 5, - COUNT( * ) ) col0
----
92

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL + ( - 5 ) + 92 - NULLIF ( - 5, - COUNT ( * ) ) col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4359
SELECT DISTINCT + 40 + - COALESCE ( + MAX( - 0 ), + - 13 ) AS col0, - 92 col2
----
40
-92

skipif mysql # not compatible
query II rowsort label-4359
SELECT DISTINCT + 40 + - COALESCE ( + MAX ( - 0 ), + - 13 ) AS col0, - 92 col2
----
40
-92

query I rowsort
SELECT 46 * 90 * 52 * + 5 * + COALESCE ( + 69, - 5 + - - 93 + - - 56 ) col2
----
74271600

query I rowsort
SELECT ALL + 59 + 8 AS col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT ALL - MAX( DISTINCT + 1 ), 19 AS col1
----
-1
19

skipif mysql # not compatible
query II rowsort label-4362
SELECT ALL - MAX ( DISTINCT + 1 ), 19 AS col1
----
-1
19

onlyif mysql # DIV for integer division: 
query II rowsort label-4363
SELECT 72 * + 5, 2 DIV - 33 AS col1
----
360
0

skipif mysql # not compatible
query II rowsort label-4363
SELECT 72 * + 5, 2 / - 33 AS col1
----
360
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT DISTINCT - COALESCE ( + CASE - 60 WHEN + + 8 * - - 0 THEN - - MIN( DISTINCT 68 ) END, ( - + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT - COALESCE ( + CASE - 60 WHEN + + 8 * - - 0 THEN - - MIN ( DISTINCT 68 ) END, ( - + COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL MAX( + - 10 ) * + + 62
----
-620

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL MAX ( + - 10 ) * + + 62
----
-620

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT DISTINCT + ( COUNT( * ) ) * - 35, + COUNT( * ) col2
----
-35
1

skipif mysql # not compatible
query II rowsort label-4366
SELECT DISTINCT + ( COUNT ( * ) ) * - 35, + COUNT ( * ) col2
----
-35
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL - 77 - + COUNT( * ) + 6 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL - 77 - + COUNT ( * ) + 6 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT 35 * + MAX( + + 3 )
----
105

skipif mysql # not compatible
query I rowsort label-4368
SELECT 35 * + MAX ( + + 3 )
----
105

query I rowsort
SELECT + 12 + - ( 19 ) AS col1
----
-7

query I rowsort
SELECT ALL + 86 * 86 + - 28 AS col0
----
7368

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT + ( CASE + NULLIF ( - 13, + ( + COUNT( * ) ) ) WHEN 76 * - - AVG ( + + 94 ) + 52 THEN 96 * COALESCE ( + 7, 72, + 27, - 67 - - + 83 ) * - 63 WHEN COUNT( 1 ) / - + 95 / + CASE + 68 WHEN + + 92 THEN - - ( + 61 ) END THEN NULL ELSE NULL END ) + - MAX( ALL - 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT + ( CASE + NULLIF ( - 13, + ( + COUNT ( * ) ) ) WHEN 76 * - - AVG ( + + 94 ) + 52 THEN 96 * COALESCE ( + 7, 72, + 27, - 67 - - + 83 ) * - 63 WHEN COUNT ( 1 ) / - + 95 / + CASE + 68 WHEN + + 92 THEN - - ( + 61 ) END THEN NULL ELSE NULL END ) + - MAX ( ALL - 31 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT + 0 DIV 71 col2
----
0

skipif mysql # not compatible
query I rowsort label-4372
SELECT + 0 / 71 col2
----
0

query I rowsort
SELECT DISTINCT + + 82 * - ( - 83 ) AS col2
----
6806

query I rowsort
SELECT + ( + 46 ) * - + 89 + - 97
----
-4191

query I rowsort
SELECT ALL + 25 * - - 21 AS col1
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT - + 22 * + 77 + + + 24 + + 34 * - NULLIF ( ( - - COUNT( * ) ), - 27 )
----
-1704

skipif mysql # not compatible
query I rowsort label-4376
SELECT - + 22 * + 77 + + + 24 + + 34 * - NULLIF ( ( - - COUNT ( * ) ), - 27 )
----
-1704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4377
SELECT DISTINCT SUM( + CAST( NULL AS SIGNED ) ), - 59 AS col1
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-4377
SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ), - 59 AS col1
----
NULL
-59

query I rowsort
SELECT 83 + - CASE - - 84 WHEN - 56 * - 25 + + 43 + 18 THEN - - 70 WHEN + - 62 THEN NULL WHEN + - 19 * + 25 THEN NULL END * - - 31 / + 57 + - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT - + MAX( ALL - + 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-4379
SELECT - + MAX ( ALL - + 87 ) AS col2
----
87

query II rowsort
SELECT + 12 + + + 83 - - - 65 * - + 71 * - - 84 + + + 93 * 21 AS col0, - 20 AS col1
----
389708
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4381
SELECT - 16 DIV + COUNT( * ) - - 93 col1
----
77

skipif mysql # not compatible
query I rowsort label-4381
SELECT - 16 / + COUNT ( * ) - - 93 col1
----
77

query I rowsort
SELECT ALL - 10 + 7 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL 8 + + 38 + + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL 8 + + 38 + + COUNT ( * ) AS col0
----
47

query I rowsort
SELECT DISTINCT 81 * - 49 AS col1
----
-3969

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4385
SELECT ALL 93 + - 86 * 4 + + - 51 AS col2, 96 DIV - COUNT( DISTINCT - 92 )
----
-302
-96

skipif mysql # not compatible
query II rowsort label-4385
SELECT ALL 93 + - 86 * 4 + + - 51 AS col2, 96 / - COUNT ( DISTINCT - 92 )
----
-302
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4386
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + - - 43 * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + - - 43 * - 27
----
NULL

query II rowsort
SELECT 0 col0, 94 AS col1
----
0
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4388
SELECT 56 DIV + + ( 26 )
----
2

skipif mysql # not compatible
query I rowsort label-4388
SELECT 56 / + + ( 26 )
----
2

query I rowsort
SELECT ALL 62 + ( 96 )
----
158

query I rowsort
SELECT 27 * + + 52 * 25 AS col1
----
35100

query II rowsort
SELECT 8, - 66 AS col2
----
8
-66

query I rowsort
SELECT ( + 82 ) - + 16 col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4393
SELECT ALL - 99 DIV - 76 col0
----
1

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL - 99 / - 76 col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4394
SELECT COUNT( * ) DIV - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4394
SELECT COUNT ( * ) / - 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT MAX( ALL - + 11 ) * COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4395
SELECT MAX ( ALL - + 11 ) * COUNT ( * ) AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4396
SELECT COUNT( * ) DIV - 27 + + MIN( 20 ) + - 45 DIV + 22 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4396
SELECT COUNT ( * ) / - 27 + + MIN ( 20 ) + - 45 / + 22 AS col1
----
18

query I rowsort
SELECT DISTINCT - 81 * + 57 AS col0
----
-4617

query I rowsort
SELECT ALL + 27 - - 53
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4399
SELECT ALL - 1 AS col0, 80 * + + CAST( NULL AS DECIMAL ) * + 63 + COUNT( * ) col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4399
SELECT ALL - 1 AS col0, 80 * + + CAST ( NULL AS REAL ) * + 63 + COUNT ( * ) col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT 55 * + NULLIF ( - 32, COUNT( * ) / + 55 + + 94 / + 69 ) * + 10 AS col2
----
-17600

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT 55 * + NULLIF ( - 32, COUNT ( * ) / + 55 + + 94 / + 69 ) * + 10 AS col2
----
-17600

query I rowsort
SELECT ALL - 0 * 16 * + 42 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT 81 - COALESCE ( - 84, 30 ) * + + 42 - + CASE + COALESCE ( 32, + 5 + - + 84 * - - 38 ) WHEN + COALESCE ( NULLIF ( - COALESCE ( + + 90, SUM( 85 ), - 37 - COUNT( * ) ), 28 ), + 54 * - + 84 * - COALESCE ( - + 17, - + 83 * 15 ) ) THEN 2 + - COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT 81 - COALESCE ( - 84, 30 ) * + + 42 - + CASE + COALESCE ( 32, + 5 + - + 84 * - - 38 ) WHEN + COALESCE ( NULLIF ( - COALESCE ( + + 90, SUM ( 85 ), - 37 - COUNT ( * ) ), 28 ), + 54 * - + 84 * - COALESCE ( - + 17, - + 83 * 15 ) ) THEN 2 + - COUNT ( * ) END col0
----
NULL

query I rowsort
SELECT ALL - 27 * 50 AS col0
----
-1350

query II rowsort
SELECT + 58 AS col0, 36
----
58
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4405
SELECT COUNT( * ) col2, - 25 DIV - COALESCE ( - ( 74 ), - - 39 * - 0 ) col1
----
1
0

skipif mysql # not compatible
query II rowsort label-4405
SELECT COUNT ( * ) col2, - 25 / - COALESCE ( - ( 74 ), - - 39 * - 0 ) col1
----
1
0

query I rowsort
SELECT + 1 + 77 AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4407
SELECT + CAST( + 71 AS SIGNED ) - - ( + CASE + ( 29 ) WHEN AVG ( - 87 ) THEN + - NULLIF ( + - 23, + COALESCE ( + 8, + 65 * + 85 + + 0 - - 92 ) ) + + ( - ( - CAST( NULL AS DECIMAL ) ) ) + + 89 ELSE NULL END ) + - 40 * 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT + CAST ( + 71 AS INTEGER ) - - ( + CASE + ( 29 ) WHEN AVG ( - 87 ) THEN + - NULLIF ( + - 23, + COALESCE ( + 8, + 65 * + 85 + + 0 - - 92 ) ) + + ( - ( - CAST ( NULL AS REAL ) ) ) + + 89 ELSE NULL END ) + - 40 * 84 AS col1
----
NULL

query II rowsort
SELECT - 3 AS col0, + 76 * - 19 - + 54
----
-3
-1498

query II rowsort
SELECT ALL - 70 AS col0, - 2
----
-70
-2

query I rowsort
SELECT 29 * 66
----
1914

query I rowsort
SELECT ALL - - COALESCE ( + 46, - 95 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT - COUNT( * ) * + + 97
----
-97

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT - COUNT ( * ) * + + 97
----
-97

query II rowsort
SELECT ALL - - 90 AS col1, + 89
----
90
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT ALL - + 42 DIV + - 10 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - + 42 / + - 10 AS col2
----
4

query I rowsort
SELECT 39 - 98
----
-59

query I rowsort
SELECT DISTINCT - 72 * - 89
----
6408

query I rowsort
SELECT ALL + 14 + CASE WHEN NOT - 45 IS NOT NULL THEN - + 95 * 29 + - 89 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4418
SELECT + NULLIF ( + CASE - + NULLIF ( + + 67, - 23 ) WHEN + - 14 - - CAST( NULL AS DECIMAL ) * + CAST( + 82 AS SIGNED ) THEN 88 * 71 ELSE NULL END, - 27 ) - MIN( - 14 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT + NULLIF ( + CASE - + NULLIF ( + + 67, - 23 ) WHEN + - 14 - - CAST ( NULL AS REAL ) * + CAST ( + 82 AS INTEGER ) THEN 88 * 71 ELSE NULL END, - 27 ) - MIN ( - 14 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4419
SELECT + 40 DIV SUM( ALL + + 16 )
----
2

skipif mysql # not compatible
query I rowsort label-4419
SELECT + 40 / SUM ( ALL + + 16 )
----
2

query I rowsort
SELECT - 9 * - 82
----
738

query I rowsort
SELECT ALL 79 + - 97 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT 77 * + MIN( ALL 1 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4422
SELECT 77 * + MIN ( ALL 1 ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4423
SELECT ALL CASE - + 62 WHEN 90 + - CAST( NULL AS SIGNED ) + - + 26 * + COUNT( * ) THEN NULL WHEN 58 THEN MAX( + 7 ) ELSE + - 91 + - + 39 + + - ( - 36 ) END + - + COUNT( 58 )
----
-95

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL CASE - + 62 WHEN 90 + - CAST ( NULL AS INTEGER ) + - + 26 * + COUNT ( * ) THEN NULL WHEN 58 THEN MAX ( + 7 ) ELSE + - 91 + - + 39 + + - ( - 36 ) END + - + COUNT ( 58 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT ALL + 78 + MAX( CAST( 33 AS SIGNED ) )
----
111

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL + 78 + MAX ( CAST ( 33 AS INTEGER ) )
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT DISTINCT - COUNT( * ) + + + 6
----
5

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT - COUNT ( * ) + + + 6
----
5

query I rowsort
SELECT ALL 75 + + 1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - SUM( ALL - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4427
SELECT - SUM ( ALL - 88 ) AS col1
----
88

query I rowsort
SELECT + 51 - 42
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT + COUNT( * ) + - + 49 + - - 10 col1
----
-38

skipif mysql # not compatible
query I rowsort label-4429
SELECT + COUNT ( * ) + - + 49 + - - 10 col1
----
-38

query I rowsort
SELECT + ( 81 ) - - 10
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4431
SELECT ALL 9 - + COUNT( * ), + 79 AS col1
----
8
79

skipif mysql # not compatible
query II rowsort label-4431
SELECT ALL 9 - + COUNT ( * ), + 79 AS col1
----
8
79

query I rowsort
SELECT DISTINCT 38 - + 16
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT ALL MIN( - + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL MIN ( - + 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT + CASE 36 WHEN AVG ( 34 ) THEN - + 62 * 72 END * + 10 * COUNT( * ) + - 16 * COALESCE ( - + 32, ( - 81 ) ) + + - AVG ( - 94 ) * + 12 + + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT + CASE 36 WHEN AVG ( 34 ) THEN - + 62 * 72 END * + 10 * COUNT ( * ) + - 16 * COALESCE ( - + 32, ( - 81 ) ) + + - AVG ( - 94 ) * + 12 + + 52 AS col2
----
NULL

query I rowsort
SELECT + 55 * + + 88 AS col2
----
4840

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT - 37 DIV - - 3
----
-12

skipif mysql # not compatible
query I rowsort label-4436
SELECT - 37 / - - 3
----
-12

query I rowsort
SELECT + 27 * 64 + - 27
----
1701

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT + ( - - COUNT( + 45 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4438
SELECT + ( - - COUNT ( + 45 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4439
SELECT ALL + + CASE + 75 WHEN 89 THEN - 16 WHEN 61 * + + 37 THEN - COUNT( * ) DIV 0 + + ( 39 ) * - + COUNT( * ) + - 95 + + - SUM( DISTINCT + + 68 ) + 26 ELSE - COUNT( * ) * + 25 + - COUNT( * ) + + SUM( DISTINCT - 25 ) * + 33 END * + 5 AS col1
----
-4255

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL + + CASE + 75 WHEN 89 THEN - 16 WHEN 61 * + + 37 THEN - COUNT ( * ) / 0 + + ( 39 ) * - + COUNT ( * ) + - 95 + + - SUM ( DISTINCT + + 68 ) + 26 ELSE - COUNT ( * ) * + 25 + - COUNT ( * ) + + SUM ( DISTINCT - 25 ) * + 33 END * + 5 AS col1
----
-4255

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT DISTINCT - COUNT( * ) * + MIN( ALL - 77 ) * 80
----
6160

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT - COUNT ( * ) * + MIN ( ALL - 77 ) * 80
----
6160

query I rowsort
SELECT - - 73 + - 46
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4442
SELECT ALL - - 82 * + + 2 + + SUM( + 20 ) + 26 * - CAST( - - MAX( DISTINCT + 31 ) AS SIGNED ) * ( - - 95 )
----
-76386

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL - - 82 * + + 2 + + SUM ( + 20 ) + 26 * - CAST ( - - MAX ( DISTINCT + 31 ) AS INTEGER ) * ( - - 95 )
----
-76386

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT DISTINCT + MAX( + 20 ) AS col1, 89 - - - COUNT( * ) + - + 37 + - 95 AS col0
----
20
-44

skipif mysql # not compatible
query II rowsort label-4443
SELECT DISTINCT + MAX ( + 20 ) AS col1, 89 - - - COUNT ( * ) + - + 37 + - 95 AS col0
----
20
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4444
SELECT ALL + COUNT( * ) * + - 39 DIV + 12 + - CAST( + + COUNT( * ) AS SIGNED ) * + - 28 * - - COUNT( * ) + - + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL + COUNT ( * ) * + - 39 / + 12 + - CAST ( + + COUNT ( * ) AS INTEGER ) * + - 28 * - - COUNT ( * ) + - + COUNT ( * ) AS col1
----
24

query I rowsort
SELECT + 10 + + - 79
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4446
SELECT - 24 + - + CAST( - 81 AS SIGNED ) * - + 6 + - 70 * - 71 + + + MIN( + 35 ) + + 36
----
4531

skipif mysql # not compatible
query I rowsort label-4446
SELECT - 24 + - + CAST ( - 81 AS INTEGER ) * - + 6 + - 70 * - 71 + + + MIN ( + 35 ) + + 36
----
4531

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT - MIN( ALL - - 52 ) + - - 76 * - 86 * 46
----
-300708

skipif mysql # not compatible
query I rowsort label-4447
SELECT - MIN ( ALL - - 52 ) + - - 76 * - 86 * 46
----
-300708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4448
SELECT ALL - + NULLIF ( 8, - COUNT( * ) + - + 14 ) * + 29 * - - 46 * + 1 - - COALESCE ( + + NULLIF ( + 4, - 21 ), + - 83 + 50 + - 70 * NULLIF ( - COUNT( * ), + 28 ) + 66, - 72 + - 68 * - - CAST( NULL AS SIGNED ) * + - 68 * - 9 ) + + 97 + - 40 AS col2
----
-10611

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL - + NULLIF ( 8, - COUNT ( * ) + - + 14 ) * + 29 * - - 46 * + 1 - - COALESCE ( + + NULLIF ( + 4, - 21 ), + - 83 + 50 + - 70 * NULLIF ( - COUNT ( * ), + 28 ) + 66, - 72 + - 68 * - - CAST ( NULL AS INTEGER ) * + - 68 * - 9 ) + + 97 + - 40 AS col2
----
-10611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4449
SELECT ALL - CAST( NULL AS SIGNED ) * 77 - + 35 + + 31 / - + 81 AS col0, - 50 + + COUNT( * ) - - COUNT( * )
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-4449
SELECT ALL - CAST ( NULL AS INTEGER ) * 77 - + 35 + + 31 / - + 81 AS col0, - 50 + + COUNT ( * ) - - COUNT ( * )
----
NULL
-48

query I rowsort
SELECT ALL + 41 * 98 + - 26
----
3992

query I rowsort
SELECT ALL + 27 * ( 36 )
----
972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4452
SELECT - + NULLIF ( + 35, CAST( + 39 AS SIGNED ) ) + + 80 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4452
SELECT - + NULLIF ( + 35, CAST ( + 39 AS INTEGER ) ) + + 80 AS col2
----
45

query I rowsort
SELECT ALL + - 98 + 32 AS col0
----
-66

query I rowsort
SELECT ALL 93 * - + 31
----
-2883

onlyif mysql # DIV for integer division: 
query I rowsort label-4455
SELECT DISTINCT + 17 DIV - 83 * 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT + 17 / - 83 * 69 AS col2
----
0

query I rowsort
SELECT - 28 * + 19
----
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT - SUM( - 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4457
SELECT - SUM ( - 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ALL + 99 * COUNT( * ) * COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL + 99 * COUNT ( * ) * COUNT ( * ) AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4459
SELECT - 45 DIV - 22
----
2

skipif mysql # not compatible
query I rowsort label-4459
SELECT - 45 / - 22
----
2

query I rowsort
SELECT ALL - 27 - + - 87
----
60

query II rowsort
SELECT ALL 78, - 74 - + 35 AS col1
----
78
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-4462
SELECT - MIN( ALL ( + 59 ) ) col1, - COUNT( * )
----
-59
-1

skipif mysql # not compatible
query II rowsort label-4462
SELECT - MIN ( ALL ( + 59 ) ) col1, - COUNT ( * )
----
-59
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT - NULLIF ( COUNT( * ), COUNT( * ) ) / - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT - NULLIF ( COUNT ( * ), COUNT ( * ) ) / - 54 AS col0
----
NULL

query I rowsort
SELECT ALL - 36 * ( - ( - + 88 ) ) AS col2
----
-3168

query I rowsort
SELECT DISTINCT ( - 19 ) col2
----
-19

query I rowsort
SELECT ALL - 27 * + + 70 AS col2
----
-1890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT ALL CAST( - 52 AS SIGNED ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL CAST ( - 52 AS INTEGER ) AS col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4468
SELECT DISTINCT CAST( 24 AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT CAST ( 24 AS INTEGER ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - SUM( - 39 ) - - CASE - ( - COUNT( * ) ) WHEN - 58 - - - 64 / - 25 THEN + MIN( + 29 ) + + - NULLIF ( + 73, + 45 ) END + - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT - SUM ( - 39 ) - - CASE - ( - COUNT ( * ) ) WHEN - 58 - - - 64 / - 25 THEN + MIN ( + 29 ) + + - NULLIF ( + 73, + 45 ) END + - 10 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4470
SELECT - ( - NULLIF ( 60, + 51 * + 79 + CAST( NULL AS SIGNED ) ) ) AS col0, 47 * + 83
----
60
3901

skipif mysql # not compatible
query II rowsort label-4470
SELECT - ( - NULLIF ( 60, + 51 * + 79 + CAST ( NULL AS INTEGER ) ) ) AS col0, 47 * + 83
----
60
3901

query I rowsort
SELECT + NULLIF ( - 27, + ( - 28 ) ) * 71 AS col1
----
-1917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4472
SELECT ALL + 92 DIV - - COUNT( + 82 )
----
92

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL + 92 / - - COUNT ( + 82 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT DISTINCT MIN( + 85 ) * 72 col2
----
6120

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT MIN ( + 85 ) * 72 col2
----
6120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT ALL - CAST( 36 AS SIGNED ) / 23 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL - CAST ( 36 AS INTEGER ) / 23 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4475
SELECT - 73 DIV 43 - 87 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-4475
SELECT - 73 / 43 - 87 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL SUM( ALL 88 ) * 17
----
1496

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL SUM ( ALL 88 ) * 17
----
1496

query I rowsort
SELECT + 95 * - 28
----
-2660

query I rowsort
SELECT + COALESCE ( + 5, - 43 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT + ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT + ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT CAST( 77 AS SIGNED ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4480
SELECT CAST ( 77 AS INTEGER ) AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4481
SELECT ALL + 60 DIV - COUNT( ALL 49 ) + 64 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + 60 / - COUNT ( ALL 49 ) + 64 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT + 59 DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4482
SELECT + 59 / - 95 AS col2
----
0

query I rowsort
SELECT + 18 + - 79 AS col0
----
-61

query I rowsort
SELECT + 35 * 68
----
2380

query I rowsort
SELECT 93 * - 86 + - 57
----
-8055

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT DISTINCT - COALESCE ( + 64, 10 ) DIV + 28 + 23
----
21

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT - COALESCE ( + 64, 10 ) / + 28 + 23
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4487
SELECT ALL CAST( NULL AS SIGNED ) / + 75 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL CAST ( NULL AS INTEGER ) / + 75 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT ALL - 83 DIV + 51 + 99
----
98

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL - 83 / + 51 + 99
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4489
SELECT DISTINCT + COUNT( * ) DIV + COALESCE ( + 72, 14 + - 8 ) + 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT + COUNT ( * ) / + COALESCE ( + 72, 14 + - 8 ) + 54 AS col0
----
54

query I rowsort
SELECT DISTINCT ( 8 ) + 46
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT DISTINCT + 76 + - CASE COALESCE ( 43, - 95 * 90, COUNT( * ) ) + + 42 WHEN - 79 - - AVG ( ALL + 87 ) * 3 THEN 14 - - 28 ELSE 51 END * + 55
----
-2729

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT + 76 + - CASE COALESCE ( 43, - 95 * 90, COUNT ( * ) ) + + 42 WHEN - 79 - - AVG ( ALL + 87 ) * 3 THEN 14 - - 28 ELSE 51 END * + 55
----
-2729

query I rowsort
SELECT ALL NULLIF ( - 87, + 93 + + 79 ) * 61 AS col0
----
-5307

query I rowsort
SELECT ALL CASE - 60 WHEN + 7 / 87 THEN 27 END * ( 5 + 39 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT 31 * 24 + 74 DIV 36
----
746

skipif mysql # not compatible
query I rowsort label-4494
SELECT 31 * 24 + 74 / 36
----
746

query I rowsort
SELECT 76 * 57 AS col0
----
4332

query I rowsort
SELECT ( - 86 ) + + NULLIF ( + 68 + - 15, + 69 )
----
-33

query I rowsort
SELECT ALL + 95 - + 71
----
24

query I rowsort
SELECT 62 - + 24 AS col0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4499
SELECT ALL + COUNT( 72 ) DIV 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + COUNT ( 72 ) / 22 AS col1
----
0

query I rowsort
SELECT 72 - 74
----
-2

query I rowsort
SELECT 81 + ( 21 - 18 ) * + 22
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT DISTINCT + 77 DIV + NULLIF ( + 33 * - 14, - 69 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT + 77 / + NULLIF ( + 33 * - 14, - 69 ) AS col2
----
0

query I rowsort
SELECT 56 * 3
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4504
SELECT MIN( CAST( NULL AS SIGNED ) ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT MIN ( CAST ( NULL AS INTEGER ) ) * 12
----
NULL

query I rowsort
SELECT ALL + 68 * 71 AS col2
----
4828

query I rowsort
SELECT 62 + 40 col2
----
102

query I rowsort
SELECT 71 + 54
----
125

query I rowsort
SELECT 7 - + 8 AS col0
----
-1

query I rowsort
SELECT 16 - - 33
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4510
SELECT 91 + NULLIF ( 22, - COUNT( * ) * - 80 ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT 91 + NULLIF ( 22, - COUNT ( * ) * - 80 ) * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4511
SELECT ALL + 6 + - ( - 35 ) DIV COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL + 6 + - ( - 35 ) / COUNT ( * )
----
41

query I rowsort
SELECT DISTINCT - 51 * 55
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL COUNT( * ) + 36 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL COUNT ( * ) + 36 AS col0
----
37

query I rowsort
SELECT ALL + 78 + - ( - 36 + - 29 * - 1 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT + - 48 + ( + 29 ) * COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + - 48 + ( + 29 ) * COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT 27 + COUNT( - 71 )
----
28

skipif mysql # not compatible
query I rowsort label-4516
SELECT 27 + COUNT ( - 71 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT DISTINCT - CASE + 83 WHEN SUM( DISTINCT ( + 18 ) ) * 38 THEN 9 WHEN - 38 THEN MIN( ALL 33 ) ELSE 47 * 76 + - 43 END
----
-3529

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT - CASE + 83 WHEN SUM ( DISTINCT ( + 18 ) ) * 38 THEN 9 WHEN - 38 THEN MIN ( ALL 33 ) ELSE 47 * 76 + - 43 END
----
-3529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4518
SELECT ALL + - CAST( - CASE + 49 WHEN - COALESCE ( 68, 76 + + 92 ) THEN 86 ELSE NULL END AS SIGNED ) + - 90 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL + - CAST ( - CASE + 49 WHEN - COALESCE ( 68, 76 + + 92 ) THEN 86 ELSE NULL END AS INTEGER ) + - 90 col1
----
NULL

query I rowsort
SELECT ALL - - 35 + - 70 * 10 AS col1
----
-665

query I rowsort
SELECT + 79 + + 98 AS col2
----
177

query I rowsort
SELECT DISTINCT + 84 + + 10 * 70 AS col1
----
784

query I rowsort
SELECT ALL + 26 * 55 col1
----
1430

query I rowsort
SELECT - 14 * + 51 + 41 * - 42 AS col2
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ( 84 ) * COUNT( * ) + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-4524
SELECT ( 84 ) * COUNT ( * ) + COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT DISTINCT 41 * + MIN( DISTINCT - 43 ) AS col2
----
-1763

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT 41 * + MIN ( DISTINCT - 43 ) AS col2
----
-1763

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT - - MAX( ALL 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT - - MAX ( ALL 56 ) AS col2
----
56

query I rowsort
SELECT ALL 59 * - 65
----
-3835

query I rowsort
SELECT - 29 + + 57 col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT + - MAX( DISTINCT + 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4529
SELECT + - MAX ( DISTINCT + 81 ) AS col1
----
-81

query I rowsort
SELECT DISTINCT + 32 * - 87 AS col1
----
-2784

onlyif mysql # DIV for integer division: 
query I rowsort label-4531
SELECT 21 DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-4531
SELECT 21 / 32
----
0

query I rowsort
SELECT - 86 * 80 AS col2
----
-6880

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - COUNT( ALL 23 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4533
SELECT - COUNT ( ALL 23 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT + CAST( NULL AS SIGNED ) + + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT + CAST ( NULL AS INTEGER ) + + 94 AS col2
----
NULL

query I rowsort
SELECT + 26 * - 17 - - 25
----
-417

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT ALL 16 DIV + + 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL 16 / + + 38 AS col0
----
0

query I rowsort
SELECT 47 * 32
----
1504

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT 82 + - + CASE - 10 WHEN COUNT( * ) THEN 5 * 55 WHEN - CASE - 22 WHEN 66 * 19 THEN + 56 * - ( 11 ) WHEN - 34 / ( + ( + ( 73 ) ) ) THEN - 86 END THEN 44 END - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT 82 + - + CASE - 10 WHEN COUNT ( * ) THEN 5 * 55 WHEN - CASE - 22 WHEN 66 * 19 THEN + 56 * - ( 11 ) WHEN - 34 / ( + ( + ( 73 ) ) ) THEN - 86 END THEN 44 END - 36 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 51 * - NULLIF ( + 43, - 51 )
----
-2193

onlyif mysql # DIV for integer division: 
query I rowsort label-4540
SELECT 66 DIV - + 90
----
0

skipif mysql # not compatible
query I rowsort label-4540
SELECT 66 / - + 90
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4541
SELECT ALL - COUNT( * ) * 75 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL - COUNT ( * ) * 75 / - 89
----
0

query I rowsort
SELECT 72 + 75 + - COALESCE ( 60, 87 ) AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4543
SELECT CAST( - 7 AS SIGNED ) + + CASE 84 WHEN - 0 THEN - CASE - COUNT( 35 ) WHEN - 82 THEN 50 ELSE NULL END WHEN 70 * - NULLIF ( + 13, 90 ) THEN NULL ELSE NULL END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4543
SELECT CAST ( - 7 AS INTEGER ) + + CASE 84 WHEN - 0 THEN - CASE - COUNT ( 35 ) WHEN - 82 THEN 50 ELSE NULL END WHEN 70 * - NULLIF ( + 13, 90 ) THEN NULL ELSE NULL END * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 91 * + + 62 * 97 AS col1
----
547274

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT 9 * - 32 * ( + 41 * COUNT( ALL + 90 ) )
----
-11808

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT 9 * - 32 * ( + 41 * COUNT ( ALL + 90 ) )
----
-11808

query I rowsort
SELECT 1 * + 22
----
22

query I rowsort
SELECT 7 + + + 35 AS col2
----
42

query I rowsort
SELECT ALL - 10 + + - 94 * - 70
----
6570

query I rowsort
SELECT 16 + - 60 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT ALL - ( + 47 ) + CASE - ( - 97 ) - + 52 WHEN - ( COUNT( ALL + 24 ) ) THEN 87 * + 23 WHEN 1 + + COUNT( * ) THEN NULL ELSE 49 * 69 END col2
----
3334

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL - ( + 47 ) + CASE - ( - 97 ) - + 52 WHEN - ( COUNT ( ALL + 24 ) ) THEN 87 * + 23 WHEN 1 + + COUNT ( * ) THEN NULL ELSE 49 * 69 END col2
----
3334

query I rowsort
SELECT ALL + CASE + 27 WHEN - 55 THEN NULL ELSE 89 END + - 32 AS col0
----
57

query I rowsort
SELECT DISTINCT - 19 + NULLIF ( 28, 57 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL SUM( DISTINCT - ( + 47 ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL SUM ( DISTINCT - ( + 47 ) ) AS col2
----
-47

query I rowsort
SELECT DISTINCT + 92 + - - 87 * 94 AS col0
----
8270

query I rowsort
SELECT - - ( + - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT CASE + 77 WHEN + 82 THEN + 30 + 1 WHEN - ( 87 ) * COUNT( * ) THEN 81 + 99 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT CASE + 77 WHEN + 82 THEN + 30 + 1 WHEN - ( 87 ) * COUNT ( * ) THEN 81 + 99 END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT ALL + CAST( NULL AS SIGNED ) + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL + CAST ( NULL AS INTEGER ) + + 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT COUNT( * ) - + + 55 + 1 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4558
SELECT COUNT ( * ) - + + 55 + 1 AS col0
----
-53

query I rowsort
SELECT + 68 - + - 17
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT 18 * - COUNT( DISTINCT + 39 ) + 67
----
49

skipif mysql # not compatible
query I rowsort label-4560
SELECT 18 * - COUNT ( DISTINCT + 39 ) + 67
----
49

query I rowsort
SELECT ALL - 55 * + - 59 * + 62 AS col0
----
201190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT COUNT( * ) + - NULLIF ( - 41, + COALESCE ( - 57, - 72 ) ) DIV 97
----
1

skipif mysql # not compatible
query I rowsort label-4562
SELECT COUNT ( * ) + - NULLIF ( - 41, + COALESCE ( - 57, - 72 ) ) / 97
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4563
SELECT ALL + 50 * COUNT( * ) - ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL + 50 * COUNT ( * ) - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4564
SELECT ALL - COUNT( + + 68 ) * ( + 9 * CAST( + NULLIF ( - 74, 94 + 43 * + 53 ) AS SIGNED ) ) AS col1
----
666

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL - COUNT ( + + 68 ) * ( + 9 * CAST ( + NULLIF ( - 74, 94 + 43 * + 53 ) AS INTEGER ) ) AS col1
----
666

query I rowsort
SELECT ALL 20 * + 31 - - ( 35 ) AS col1
----
655

onlyif mysql # DIV for integer division: 
query I rowsort label-4566
SELECT DISTINCT + 73 DIV - + 58 col1
----
-1

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT + 73 / - + 58 col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4567
SELECT - COUNT( * ) - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT - COUNT ( * ) - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT + - SUM( - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4568
SELECT + - SUM ( - 16 )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT ALL + + NULLIF ( + COALESCE ( + 78, - 88 DIV - 57 ), 38 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL + + NULLIF ( + COALESCE ( + 78, - 88 / - 57 ), 38 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL + CASE + 60 WHEN - 8 * + COUNT( * ) + + 21 THEN 26 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + CASE + 60 WHEN - 8 * + COUNT ( * ) + + 21 THEN 26 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - - 65 * - 34 * ( + 6 * + 75 )
----
-994500

query I rowsort
SELECT + 87 * + 91 + 41 AS col0
----
7958

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT DISTINCT 78 * - 76 - MIN( 43 )
----
-5971

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT 78 * - 76 - MIN ( 43 )
----
-5971

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT DISTINCT + COUNT( * ) * + ( - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT + COUNT ( * ) * + ( - 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL 10 * - - 72 * COUNT( * )
----
720

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL 10 * - - 72 * COUNT ( * )
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL + ( - CASE - + CAST( NULL AS SIGNED ) WHEN + 77 * - 73 THEN + 27 WHEN 34 THEN 19 WHEN ( - 13 ) THEN + 14 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + ( - CASE - + CAST ( NULL AS INTEGER ) WHEN + 77 * - 73 THEN + 27 WHEN 34 THEN 19 WHEN ( - 13 ) THEN + 14 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + SUM( DISTINCT - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-4577
SELECT + SUM ( DISTINCT - 34 )
----
-34

query I rowsort
SELECT ALL 74 * + 42
----
3108

query I rowsort
SELECT - 80 - + 32
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT SUM( ALL - + 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-4580
SELECT SUM ( ALL - + 95 ) AS col1
----
-95

query I rowsort
SELECT ALL 81 * 20 + 40 col1
----
1660

query II rowsort
SELECT DISTINCT + 33 AS col2, - 11
----
33
-11

query I rowsort
SELECT 5 * + - 37 + - 95 AS col0
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + 38 * - NULLIF ( + 92, 68 + - MIN( DISTINCT 74 ) ) * - 21
----
73416

skipif mysql # not compatible
query I rowsort label-4584
SELECT + 38 * - NULLIF ( + 92, 68 + - MIN ( DISTINCT 74 ) ) * - 21
----
73416

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - ( - CASE - + 35 WHEN - 3 THEN SUM( ( + 84 ) ) + - 70 * - COUNT( DISTINCT 9 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT - ( - CASE - + 35 WHEN - 3 THEN SUM ( ( + 84 ) ) + - 70 * - COUNT ( DISTINCT 9 ) END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4586
SELECT ALL COUNT( * ) + - + COALESCE ( - - 23, 15 ) DIV ( 38 )
----
1

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL COUNT ( * ) + - + COALESCE ( - - 23, 15 ) / ( 38 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT + ( 27 ) + CAST( + 16 AS SIGNED ) + + 40 * - 33
----
-1277

skipif mysql # not compatible
query I rowsort label-4587
SELECT + ( 27 ) + CAST ( + 16 AS INTEGER ) + + 40 * - 33
----
-1277

query I rowsort
SELECT - CASE - - 1 WHEN + AVG ( 29 ) THEN + ( + 45 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT + SUM( 95 ) DIV - + 75 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4589
SELECT + SUM ( 95 ) / - + 75 AS col0
----
-1

query I rowsort
SELECT ALL 96 + 66
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT + COALESCE ( 97, 57 ) - CAST( 31 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-4591
SELECT + COALESCE ( 97, 57 ) - CAST ( 31 AS INTEGER )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4592
SELECT ALL 8 DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL 8 / 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL SUM( - 60 ) + + 80 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL SUM ( - 60 ) + + 80 AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4594
SELECT + 78 - - - CAST( + - 10 AS SIGNED ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-4594
SELECT + 78 - - - CAST ( + - 10 AS INTEGER ) AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL COUNT( + 43 )
----
1

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL COUNT ( + 43 )
----
1

query I rowsort
SELECT ALL 60 + + 49 col2
----
109

query II rowsort
SELECT 60 col2, - 95 AS col1
----
60
-95

query I rowsort
SELECT + 31 + + - 44 * 51 * + 99 AS col2
----
-222125

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL 37 + + - COUNT( DISTINCT - 91 ) + - MAX( ALL 21 + + 49 ) * - ( ( - 61 ) ) * 65 col1
----
-277514

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL 37 + + - COUNT ( DISTINCT - 91 ) + - MAX ( ALL 21 + + 49 ) * - ( ( - 61 ) ) * 65 col1
----
-277514

query I rowsort
SELECT ALL 78 * - 17
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT + + 95 + + COUNT( * ) + ( COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-4602
SELECT + + 95 + + COUNT ( * ) + ( COUNT ( * ) )
----
97

query I rowsort
SELECT - ( + 77 ) - - 33
----
-44

query I rowsort
SELECT + 66 + 58 + - + 96
----
28

query I rowsort
SELECT ALL 35 - + + 15 col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT + 75 * - 86 * CASE 1 WHEN + 76 THEN 68 + 56 * 66 WHEN 10 THEN COUNT( * ) / + 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT + 75 * - 86 * CASE 1 WHEN + 76 THEN 68 + 56 * 66 WHEN 10 THEN COUNT ( * ) / + 69 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT - 25 col1, - 95 AS col0
----
-25
-95

query I rowsort
SELECT - - 55 + + 4 + + + 43 AS col0
----
102

query I rowsort
SELECT ALL - - 55 * 48
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT SUM( - - 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4610
SELECT SUM ( - - 80 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT - + 80 + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-4611
SELECT - + 80 + COUNT ( * )
----
-79

query II rowsort
SELECT + + 89, + 43 * + 24 * + 54 AS col2
----
89
55728

onlyif mysql # DIV for integer division: 
query I rowsort label-4613
SELECT + + ( - + 58 ) DIV + - 72 + + 97 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-4613
SELECT + + ( - + 58 ) / + - 72 + + 97 AS col1
----
97

query I rowsort
SELECT - 38 * + 85
----
-3230

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL - + 64 * - - SUM( DISTINCT + - 38 )
----
2432

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL - + 64 * - - SUM ( DISTINCT + - 38 )
----
2432

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT + 77 + COUNT( * ) * + ( 79 ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-4616
SELECT + 77 + COUNT ( * ) * + ( 79 ) AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT - + 23 * - 54 + - COUNT( * ) * 60 + 16
----
1198

skipif mysql # not compatible
query I rowsort label-4617
SELECT - + 23 * - 54 + - COUNT ( * ) * 60 + 16
----
1198

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT DISTINCT - + 51 * SUM( + 39 ) + + 44 col2
----
-1945

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT - + 51 * SUM ( + 39 ) + + 44 col2
----
-1945

query II rowsort
SELECT ALL + - 48 AS col0, 52 AS col2
----
-48
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT - COUNT( * ) * + + ( - CASE COALESCE ( 60, - 71 ) WHEN + 71 THEN 22 WHEN - 92 THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4620
SELECT - COUNT ( * ) * + + ( - CASE COALESCE ( 60, - 71 ) WHEN + 71 THEN 22 WHEN - 92 THEN NULL ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT ALL - 9 * + COUNT( * ) * ( + 24 ) AS col2
----
-216

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL - 9 * + COUNT ( * ) * ( + 24 ) AS col2
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT DISTINCT 27 DIV - 31 + + 21 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4622
SELECT DISTINCT 27 / - 31 + + 21 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ( + + CASE - 19 WHEN COUNT( * ) THEN - COUNT( * ) + - 71 * - 61 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT ( + + CASE - 19 WHEN COUNT ( * ) THEN - COUNT ( * ) + - 71 * - 61 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4624
SELECT COUNT( * ) * + + 82 DIV + COUNT( * ) + - 6
----
76

skipif mysql # not compatible
query I rowsort label-4624
SELECT COUNT ( * ) * + + 82 / + COUNT ( * ) + - 6
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT - 56 + - COUNT( * ) - + 17
----
-74

skipif mysql # not compatible
query I rowsort label-4625
SELECT - 56 + - COUNT ( * ) - + 17
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ALL 14 * + 39 + - SUM( - - 26 ) * 99
----
-2028

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL 14 * + 39 + - SUM ( - - 26 ) * 99
----
-2028

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT - 39 * + - 26 * - + CASE - 64 WHEN 15 / 65 THEN - 94 * - COUNT( * ) END + + AVG ( ALL + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT - 39 * + - 26 * - + CASE - 64 WHEN 15 / 65 THEN - 94 * - COUNT ( * ) END + + AVG ( ALL + 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT CASE - + 53 WHEN + SUM( COALESCE ( - 22, - 94 + 67 / + 36 ) ) THEN + 81 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT CASE - + 53 WHEN + SUM ( COALESCE ( - 22, - 94 + 67 / + 36 ) ) THEN + 81 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 9 * 47
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT ALL - 27 * + ( - + 89 ) + - COUNT( * ) - - 57
----
2459

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL - 27 * + ( - + 89 ) + - COUNT ( * ) - - 57
----
2459

query I rowsort
SELECT + 76 * - 46 + - + 20 * - 37
----
-2756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4632
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - 84 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4632
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - 84 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4633
SELECT ALL - 47 * - COUNT( * ) AS col2, 67 AS col2
----
47
67

skipif mysql # not compatible
query II rowsort label-4633
SELECT ALL - 47 * - COUNT ( * ) AS col2, 67 AS col2
----
47
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL + 0 * - + COUNT( * ) + 72 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL + 0 * - + COUNT ( * ) + 72 AS col0
----
72

query I rowsort
SELECT - ( - 4 ) AS col0
----
4

query I rowsort
SELECT - COALESCE ( 11, 17 * - 40 ) * - 0 AS col0
----
0

query I rowsort
SELECT + 49 * - 20
----
-980

query I rowsort
SELECT + 6 + 82 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT ALL + COUNT( * ) - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ( + 63 ) * - 58 * 36 AS col2
----
-131544

onlyif mysql # DIV for integer division: 
query I rowsort label-4641
SELECT + 72 * - - 70 + - 42 DIV - 33 AS col1
----
5041

skipif mysql # not compatible
query I rowsort label-4641
SELECT + 72 * - - 70 + - 42 / - 33 AS col1
----
5041

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT ALL 25 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL 25 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4643
SELECT 12 + + COUNT( * ) * 5 DIV + 93 * - 55
----
12

skipif mysql # not compatible
query I rowsort label-4643
SELECT 12 + + COUNT ( * ) * 5 / + 93 * - 55
----
12

query I rowsort
SELECT 58 * - 49 * - 69 AS col1
----
196098

query I rowsort
SELECT 61 - CASE 97 WHEN 46 + + 96 THEN NULL WHEN - ( + 43 ) + - 53 THEN NULL ELSE 77 END AS col1
----
-16

query I rowsort
SELECT - 79 + + 45 * + + ( 45 ) AS col1
----
1946

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL - CASE + 38 WHEN 74 THEN NULL WHEN + ( 29 ) * COUNT( * ) THEN 24 * - 90 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - CASE + 38 WHEN 74 THEN NULL WHEN + ( 29 ) * COUNT ( * ) THEN 24 * - 90 END col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4648
SELECT ALL + 71 + + - 76 + CAST( NULL AS DECIMAL ) + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL + 71 + + - 76 + CAST ( NULL AS REAL ) + 82 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 81 + - 89 - + + 0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4650
SELECT ALL - - CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) * - 98 * + 71 THEN CASE - 28 WHEN COALESCE ( - 53, ( CAST( NULL AS SIGNED ) ) + 17, 45 ) THEN NULLIF ( AVG ( 78 ), + 91 * + 29 + 18 ) END * 35 WHEN 30 THEN - SUM( ALL 1 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - - CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) * - 98 * + 71 THEN CASE - 28 WHEN COALESCE ( - 53, ( CAST ( NULL AS INTEGER ) ) + 17, 45 ) THEN NULLIF ( AVG ( 78 ), + 91 * + 29 + 18 ) END * 35 WHEN 30 THEN - SUM ( ALL 1 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4651
SELECT 4, ( - COALESCE ( 67, + MAX( ALL + 6 ) + - 53 DIV 47 ) ) AS col1
----
4
-67

skipif mysql # not compatible
query II rowsort label-4651
SELECT 4, ( - COALESCE ( 67, + MAX ( ALL + 6 ) + - 53 / 47 ) ) AS col1
----
4
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT 91 DIV 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4652
SELECT 91 / 68 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT CASE - NULLIF ( + 72, + COALESCE ( 94, 43 - 57 ) * + 57 + + COUNT( * ) * 49 ) WHEN 84 THEN NULL ELSE + COUNT( * ) - 23 END * - 53 AS col2
----
1166

skipif mysql # not compatible
query I rowsort label-4653
SELECT CASE - NULLIF ( + 72, + COALESCE ( 94, 43 - 57 ) * + 57 + + COUNT ( * ) * 49 ) WHEN 84 THEN NULL ELSE + COUNT ( * ) - 23 END * - 53 AS col2
----
1166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4654
SELECT ALL - 78 + - 20 * - - 98 * ( + 29 ) * + CASE - 59 WHEN 17 + 10 THEN CAST( NULL AS SIGNED ) - - CASE COUNT( * ) WHEN - 48 THEN NULL WHEN - COUNT( * ) THEN 70 ELSE NULL END * - 93 WHEN + 8 + - 76 * + 33 THEN NULL ELSE - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * CAST( - 82 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL - 78 + - 20 * - - 98 * ( + 29 ) * + CASE - 59 WHEN 17 + 10 THEN CAST ( NULL AS INTEGER ) - - CASE COUNT ( * ) WHEN - 48 THEN NULL WHEN - COUNT ( * ) THEN 70 ELSE NULL END * - 93 WHEN + 8 + - 76 * + 33 THEN NULL ELSE - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * CAST ( - 82 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4655
SELECT ALL + 5 + + CASE + + 92 WHEN 35 THEN NULL ELSE - 37 + - ( 50 - + 79 * + COUNT( * ) ) * + ( 98 * 81 ) END DIV 93 AS col2
----
2479

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL + 5 + + CASE + + 92 WHEN 35 THEN NULL ELSE - 37 + - ( 50 - + 79 * + COUNT ( * ) ) * + ( 98 * 81 ) END / 93 AS col2
----
2479

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL - CASE - - COUNT( * ) WHEN - COUNT( * ) * + 10 * - + MAX( + 94 ) + + 35 THEN + 76 + - COALESCE ( 88, - COUNT( * ) + + COUNT( * ) * - 42, - 98 ) WHEN 77 THEN NULL ELSE NULL END * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - CASE - - COUNT ( * ) WHEN - COUNT ( * ) * + 10 * - + MAX ( + 94 ) + + 35 THEN + 76 + - COALESCE ( 88, - COUNT ( * ) + + COUNT ( * ) * - 42, - 98 ) WHEN 77 THEN NULL ELSE NULL END * - 79
----
NULL

query I rowsort
SELECT 0 * + 72 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT ALL - CAST( + 77 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - CAST ( + 77 AS INTEGER )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4659
SELECT 7 DIV - + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT 7 / - + 88 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL + COUNT( * ) + - 59 + 3 * - - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL + COUNT ( * ) + - 59 + 3 * - - COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL - MIN( - 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL - MIN ( - 96 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT - SUM( - ( + + 69 ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - SUM ( - ( + + 69 ) ) AS col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4663
SELECT 41 * - NULLIF ( - 38, - CAST( NULL AS SIGNED ) )
----
1558

skipif mysql # not compatible
query I rowsort label-4663
SELECT 41 * - NULLIF ( - 38, - CAST ( NULL AS INTEGER ) )
----
1558

query I rowsort
SELECT 16 + - 63
----
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4665
SELECT ALL - 68 - + 57 DIV + CAST( 6 AS SIGNED ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL - 68 - + 57 / + CAST ( 6 AS INTEGER ) AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT 4 - - COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT 4 - - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 66 * - 8 AS col2
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT - NULLIF ( + + 24, SUM( - + 69 ) ) * - - 99 + MAX( + 90 )
----
-2286

skipif mysql # not compatible
query I rowsort label-4668
SELECT - NULLIF ( + + 24, SUM ( - + 69 ) ) * - - 99 + MAX ( + 90 )
----
-2286

query I rowsort
SELECT 96 + - 54
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4670
SELECT 83 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-4670
SELECT 83 / + 92
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4671
SELECT ALL 14, CAST( NULL AS SIGNED ) AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-4671
SELECT ALL 14, CAST ( NULL AS INTEGER ) AS col1
----
14
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT 75 + + COUNT( * ) * + + COUNT( * ) col1
----
76

skipif mysql # not compatible
query I rowsort label-4672
SELECT 75 + + COUNT ( * ) * + + COUNT ( * ) col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT + 20 - 1 + + SUM( 84 ) - + 67 * COALESCE ( 3 + COUNT( * ) * 9, - 85 * + 85 )
----
-701

skipif mysql # not compatible
query I rowsort label-4673
SELECT + 20 - 1 + + SUM ( 84 ) - + 67 * COALESCE ( 3 + COUNT ( * ) * 9, - 85 * + 85 )
----
-701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4674
SELECT COALESCE ( + 27, - 96 * + 55 + - + 19, CAST( NULL AS SIGNED ) ) DIV - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-4674
SELECT COALESCE ( + 27, - 96 * + 55 + - + 19, CAST ( NULL AS INTEGER ) ) / - COUNT ( * )
----
-27

query I rowsort
SELECT + 64 + + + 50 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT SUM( - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT SUM ( - 50 )
----
-50

query I rowsort
SELECT ALL ( + 99 ) + + 17 AS col2
----
116

query II rowsort
SELECT 44 + - 34 + - 91 AS col0, ( 78 ) + 33
----
-81
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT 75 * MAX( DISTINCT - 15 )
----
-1125

skipif mysql # not compatible
query I rowsort label-4679
SELECT 75 * MAX ( DISTINCT - 15 )
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT - SUM( DISTINCT + + NULLIF ( + + 65, + ( - + 84 ) ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-4680
SELECT - SUM ( DISTINCT + + NULLIF ( + + 65, + ( - + 84 ) ) ) AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4681
SELECT ALL 63 * - CAST( + 65 AS SIGNED ) + + 88
----
-4007

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL 63 * - CAST ( + 65 AS INTEGER ) + + 88
----
-4007

query I rowsort
SELECT 62 + - 70 * - 5 AS col2
----
412

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT SUM( 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4683
SELECT SUM ( 22 ) AS col1
----
22

query I rowsort
SELECT + 81 * + + 44 + + 27
----
3591

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ( - 5 ) * + CASE + 1 WHEN - 59 THEN NULL WHEN - - COUNT( DISTINCT + 63 ) * - 25 + + SUM( ALL - 99 ) THEN 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT ( - 5 ) * + CASE + 1 WHEN - 59 THEN NULL WHEN - - COUNT ( DISTINCT + 63 ) * - 25 + + SUM ( ALL - 99 ) THEN 86 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT 46 * - + CASE - + COUNT( DISTINCT + 77 ) WHEN + CAST( - 40 AS SIGNED ) THEN 50 * - 52 WHEN + 10 THEN - CAST( NULL AS SIGNED ) ELSE - 89 END + 95
----
4189

skipif mysql # not compatible
query I rowsort label-4686
SELECT 46 * - + CASE - + COUNT ( DISTINCT + 77 ) WHEN + CAST ( - 40 AS INTEGER ) THEN 50 * - 52 WHEN + 10 THEN - CAST ( NULL AS INTEGER ) ELSE - 89 END + 95
----
4189

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL - 39 * - - 46 * + ( MIN( + 88 ) ) + + ( 47 )
----
-157825

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL - 39 * - - 46 * + ( MIN ( + 88 ) ) + + ( 47 )
----
-157825

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT SUM( DISTINCT + 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4688
SELECT SUM ( DISTINCT + 34 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT MAX( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4689
SELECT MAX ( + 86 )
----
86

query I rowsort
SELECT 7 + ( - + 44 )
----
-37

query I rowsort
SELECT ALL ( 90 ) * - - 83 + 1 - + 53
----
7418

query I rowsort
SELECT - 43 * + 57 + - 72
----
-2523

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT MAX( ALL + 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4693
SELECT MAX ( ALL + 18 ) AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT 83 * + 99 * - + 20 + + CAST( 87 AS SIGNED ) + MIN( 19 ) * 29 AS col1
----
-163702

skipif mysql # not compatible
query I rowsort label-4694
SELECT 83 * + 99 * - + 20 + + CAST ( 87 AS INTEGER ) + MIN ( 19 ) * 29 AS col1
----
-163702

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT MIN( ALL - 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4695
SELECT MIN ( ALL - 73 ) AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT 74 * + 13 + + - CAST( + 40 AS SIGNED ) + - 40 * 79 + + 75
----
-2163

skipif mysql # not compatible
query I rowsort label-4696
SELECT 74 * + 13 + + - CAST ( + 40 AS INTEGER ) + - 40 * 79 + + 75
----
-2163

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT COUNT( CASE - + 84 WHEN - 30 + - + 26 THEN - 31 + + 70 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4697
SELECT COUNT ( CASE - + 84 WHEN - 30 + - + 26 THEN - 31 + + 70 END ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT 42 + - + COUNT( * ) - - - NULLIF ( + AVG ( - ( + CAST( NULL AS SIGNED ) ) ), + 6 ) * + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT 42 + - + COUNT ( * ) - - - NULLIF ( + AVG ( - ( + CAST ( NULL AS INTEGER ) ) ), + 6 ) * + 34 AS col2
----
NULL

query I rowsort
SELECT ALL + 75 * 48
----
3600

query I rowsort
SELECT ALL + 11 * 17 * + + NULLIF ( - - 78, + 91 ) AS col1
----
14586

query II rowsort
SELECT 98 AS col1, 74
----
98
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT ALL + - CAST( - + 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL + - CAST ( - + 64 AS INTEGER )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT - 54 + - MIN( - - 2 ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-4703
SELECT - 54 + - MIN ( - - 2 ) col2
----
-56

query I rowsort
SELECT ALL 24 * 65 AS col0
----
1560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4705
SELECT + 98 * + - 94 * + NULLIF ( - 21, 98 / COALESCE ( 99, - CASE WHEN NULL IS NOT NULL THEN ( - CAST( NULL AS SIGNED ) ) END, 96 ) ) AS col2
----
193452

skipif mysql # not compatible
query I rowsort label-4705
SELECT + 98 * + - 94 * + NULLIF ( - 21, 98 / COALESCE ( 99, - CASE WHEN NULL IS NOT NULL THEN ( - CAST ( NULL AS INTEGER ) ) END, 96 ) ) AS col2
----
193452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4706
SELECT - SUM( DISTINCT 98 ) * + COALESCE ( COUNT( * ), COUNT( * ) DIV 82, 12 ) * + 35 AS col2
----
-3430

skipif mysql # not compatible
query I rowsort label-4706
SELECT - SUM ( DISTINCT 98 ) * + COALESCE ( COUNT ( * ), COUNT ( * ) / 82, 12 ) * + 35 AS col2
----
-3430

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4707
SELECT - + CAST( + 71 AS SIGNED ) DIV + 63
----
-1

skipif mysql # not compatible
query I rowsort label-4707
SELECT - + CAST ( + 71 AS INTEGER ) / + 63
----
-1

query II rowsort
SELECT - 9, + 22 AS col2
----
-9
22

query I rowsort
SELECT ALL COALESCE ( 15, + 12 * - 25 * + - 31 * + 82 + ( + 69 ) ) AS col2
----
15

query II rowsort
SELECT - 42, 12 AS col0
----
-42
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT + MIN( ALL - + 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4711
SELECT + MIN ( ALL - + 50 ) AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT - + 1 + + - 84 * - CAST( NULL AS SIGNED ) / + 92 + 51 * - + 37 * ( 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT - + 1 + + - 84 * - CAST ( NULL AS INTEGER ) / + 92 + 51 * - + 37 * ( 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT ALL + + 69 * NULLIF ( 73, - 75 + - 41 + + SUM( DISTINCT + ( + 29 ) ) * ( - 53 ) )
----
5037

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL + + 69 * NULLIF ( 73, - 75 + - 41 + + SUM ( DISTINCT + ( + 29 ) ) * ( - 53 ) )
----
5037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT DISTINCT + - 44 + CAST( + - 55 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT + - 44 + CAST ( + - 55 AS INTEGER )
----
-99

query I rowsort
SELECT ALL - 29 + ( - + 92 )
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT - 84 * + SUM( DISTINCT - 1 ) * + 63 * + + CASE - 99 WHEN - 21 THEN NULL WHEN 7 + - ( 62 ) THEN - 83 / + 67 WHEN 88 - + 52 THEN NULL END + + 73 * 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT - 84 * + SUM ( DISTINCT - 1 ) * + 63 * + + CASE - 99 WHEN - 21 THEN NULL WHEN 7 + - ( 62 ) THEN - 83 / + 67 WHEN 88 - + 52 THEN NULL END + + 73 * 84 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT DISTINCT 94 AS col0, CASE + COALESCE ( COUNT( * ), + 98 ) WHEN + - 62 + 6 THEN NULL WHEN 74 THEN NULL ELSE + 62 + COUNT( * ) END col1
----
94
63

skipif mysql # not compatible
query II rowsort label-4717
SELECT DISTINCT 94 AS col0, CASE + COALESCE ( COUNT ( * ), + 98 ) WHEN + - 62 + 6 THEN NULL WHEN 74 THEN NULL ELSE + 62 + COUNT ( * ) END col1
----
94
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4718
SELECT - COUNT( * ), - 30 AS col1
----
-1
-30

skipif mysql # not compatible
query II rowsort label-4718
SELECT - COUNT ( * ), - 30 AS col1
----
-1
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4719
SELECT ALL + COALESCE ( + 85, MAX( ALL + 64 ) ) AS col1, 9 DIV + SUM( DISTINCT - 24 ) + - 78
----
85
-78

skipif mysql # not compatible
query II rowsort label-4719
SELECT ALL + COALESCE ( + 85, MAX ( ALL + 64 ) ) AS col1, 9 / + SUM ( DISTINCT - 24 ) + - 78
----
85
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL - - 2 + + 60 + + 95 * + 55 * + COALESCE ( + 16, + 53 * ( COUNT( * ) * 74 ), NULLIF ( + COALESCE ( 16, + 82 + 86 * 3, - 60 ), + COALESCE ( 91, 96 * COALESCE ( - COUNT( * ) * 80, - 98 ) ) ) * 83 ) * 69
----
5768462

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - - 2 + + 60 + + 95 * + 55 * + COALESCE ( + 16, + 53 * ( COUNT ( * ) * 74 ), NULLIF ( + COALESCE ( 16, + 82 + 86 * 3, - 60 ), + COALESCE ( 91, 96 * COALESCE ( - COUNT ( * ) * 80, - 98 ) ) ) * 83 ) * 69
----
5768462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4721
SELECT - CASE + 95 WHEN - CASE - 3 WHEN + 6 THEN COUNT( * ) / - 65 WHEN CAST( NULL AS SIGNED ) THEN NULL END + - 35 THEN NULL ELSE + CASE 36 WHEN 8 * + 38 THEN NULL ELSE CASE + 41 WHEN + MIN( ALL - 45 ) THEN - 88 ELSE 22 * + ( 82 ) END * - 49 + COALESCE ( 58, + 22 ) END END + + 25
----
88363

skipif mysql # not compatible
query I rowsort label-4721
SELECT - CASE + 95 WHEN - CASE - 3 WHEN + 6 THEN COUNT ( * ) / - 65 WHEN CAST ( NULL AS INTEGER ) THEN NULL END + - 35 THEN NULL ELSE + CASE 36 WHEN 8 * + 38 THEN NULL ELSE CASE + 41 WHEN + MIN ( ALL - 45 ) THEN - 88 ELSE 22 * + ( 82 ) END * - 49 + COALESCE ( 58, + 22 ) END END + + 25
----
88363

query I rowsort
SELECT DISTINCT - 32 * + 17 AS col2
----
-544

query I rowsort
SELECT ALL CASE 49 WHEN + 0 THEN - CASE 67 WHEN - 57 THEN - 28 * ( 1 ) END ELSE NULL END
----
NULL

query I rowsort
SELECT - 86 * - 53 * + + 23
----
104834

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT ALL 98 DIV - - ( + 93 )
----
1

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL 98 / - - ( + 93 )
----
1

query I rowsort
SELECT + 38 - 38 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT ALL - 88 DIV 59 DIV - + 53 * 65
----
0

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - 88 / 59 / - + 53 * 65
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4728
SELECT + COUNT( - 49 ) AS col1, - 36
----
1
-36

skipif mysql # not compatible
query II rowsort label-4728
SELECT + COUNT ( - 49 ) AS col1, - 36
----
1
-36

query I rowsort
SELECT ( - + ( + 78 ) )
----
-78

query I rowsort
SELECT + ( - + ( + + 11 ) )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT + ( + + ( - CAST( + - 87 AS SIGNED ) ) ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4731
SELECT + ( + + ( - CAST ( + - 87 AS INTEGER ) ) ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT DISTINCT 37 * - + 61 / + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT 37 * - + 61 / + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 48 * - ( - 29 )
----
1392

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT + ( + 26 ) col1, ( COUNT( * ) )
----
26
1

skipif mysql # not compatible
query II rowsort label-4734
SELECT + ( + 26 ) col1, ( COUNT ( * ) )
----
26
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT DISTINCT + CAST( 93 AS SIGNED ) col0
----
93

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT + CAST ( 93 AS INTEGER ) col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT + - CAST( NULL AS SIGNED ) + + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT + - CAST ( NULL AS INTEGER ) + + - 7
----
NULL

query I rowsort
SELECT + - 85 + 44 col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL - 43 * COUNT( * ) + + COALESCE ( + - 72, + 46 * - + NULLIF ( - - ( 30 ), - 97 * + 8 ) )
----
-115

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - 43 * COUNT ( * ) + + COALESCE ( + - 72, + 46 * - + NULLIF ( - - ( 30 ), - 97 * + 8 ) )
----
-115

query I rowsort
SELECT + 21 * - + 6 + COALESCE ( - 55, 91 - 92 ) AS col1
----
-181

query I rowsort
SELECT - 75 - + 12 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT - 34 * - COUNT( * ) + ( + + ( + + 26 ) )
----
60

skipif mysql # not compatible
query I rowsort label-4741
SELECT - 34 * - COUNT ( * ) + ( + + ( + + 26 ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL - - MAX( - 41 ) * - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - - MAX ( - 41 ) * - COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT + CASE COUNT( DISTINCT + + 4 ) WHEN - 39 THEN - + 51 END * 39 * 24 * + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT + CASE COUNT ( DISTINCT + + 4 ) WHEN - 39 THEN - + 51 END * 39 * 24 * + 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4744
SELECT + 46 + + 70 + + 33 * - COUNT( * ) DIV - 48 * - 20 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-4744
SELECT + 46 + + 70 + + 33 * - COUNT ( * ) / - 48 * - 20 AS col0
----
116

query I rowsort
SELECT - - CASE + + 57 WHEN 86 THEN NULL WHEN + 54 - 8 THEN + 98 ELSE NULL END + + 26
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4746
SELECT CASE COUNT( * ) WHEN 4 + + + COUNT( ALL - 35 ) DIV - ( + MIN( DISTINCT ( + 72 ) ) ) THEN 21 ELSE 39 DIV + 65 END
----
0

skipif mysql # not compatible
query I rowsort label-4746
SELECT CASE COUNT ( * ) WHEN 4 + + + COUNT ( ALL - 35 ) / - ( + MIN ( DISTINCT ( + 72 ) ) ) THEN 21 ELSE 39 / + 65 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT - - COALESCE ( - + COUNT( * ), - + 38 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4747
SELECT - - COALESCE ( - + COUNT ( * ), - + 38 ) AS col0
----
-1

query I rowsort
SELECT ALL - 40 + - + NULLIF ( 15, + 37 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT + - 34 + - 1 + - CASE + 22 WHEN - 66 THEN NULLIF ( + 66, COUNT( * ) - 60 ) WHEN 84 THEN NULL WHEN + 61 THEN + 33 WHEN - 40 THEN NULL END + SUM( - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT + - 34 + - 1 + - CASE + 22 WHEN - 66 THEN NULLIF ( + 66, COUNT ( * ) - 60 ) WHEN 84 THEN NULL WHEN + 61 THEN + 33 WHEN - 40 THEN NULL END + SUM ( - 65 )
----
NULL

query I rowsort
SELECT - 48 + + 0 * + 18 + - + ( - ( 93 ) ) + + 94 col2
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-4751
SELECT 15 col0, - SUM( + 82 ) + + 23
----
15
-59

skipif mysql # not compatible
query II rowsort label-4751
SELECT 15 col0, - SUM ( + 82 ) + + 23
----
15
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4752
SELECT ALL NULLIF ( + - 97, 25 ) AS col2, CASE + 37 WHEN - AVG ( - ( + 78 ) ) THEN 87 WHEN 43 THEN 68 * - NULLIF ( ( - ( - COUNT( + 80 ) ) ), - 84 ) ELSE NULL END / 35 AS col1
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-4752
SELECT ALL NULLIF ( + - 97, 25 ) AS col2, CASE + 37 WHEN - AVG ( - ( + 78 ) ) THEN 87 WHEN 43 THEN 68 * - NULLIF ( ( - ( - COUNT ( + 80 ) ) ), - 84 ) ELSE NULL END / 35 AS col1
----
-97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT - 39 + - + 34 + + 13 + - 14 * - 20 DIV - 20 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 39 + - + 34 + + 13 + - 14 * - 20 / - 20 AS col0
----
-74

query I rowsort
SELECT DISTINCT - 1 * + 22 * - ( - - 16 )
----
352

query I rowsort
SELECT - 26 * + - 73
----
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT - 32 * NULLIF ( + - 83, MAX( + 75 ) * COUNT( * ) + + CASE - + 40 WHEN 26 THEN + ( SUM( DISTINCT 75 ) ) * + 43 WHEN + 62 * - COUNT( * ) THEN NULL ELSE NULL END )
----
2656

skipif mysql # not compatible
query I rowsort label-4756
SELECT - 32 * NULLIF ( + - 83, MAX ( + 75 ) * COUNT ( * ) + + CASE - + 40 WHEN 26 THEN + ( SUM ( DISTINCT 75 ) ) * + 43 WHEN + 62 * - COUNT ( * ) THEN NULL ELSE NULL END )
----
2656

query I rowsort
SELECT - 44 + - + 49
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT - 35 * + MAX( 42 ) + + - 67 + + 60 AS col2
----
-1477

skipif mysql # not compatible
query I rowsort label-4758
SELECT - 35 * + MAX ( 42 ) + + - 67 + + 60 AS col2
----
-1477

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT 45 DIV + + 39 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4759
SELECT 45 / + + 39 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT ALL - 84 * + 59 * - + CAST( NULL AS SIGNED ) / - + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - 84 * + 59 * - + CAST ( NULL AS INTEGER ) / - + 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4761
SELECT DISTINCT COUNT( * ) DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT COUNT ( * ) / 36
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT ALL - MIN( DISTINCT + CAST( 23 AS SIGNED ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL - MIN ( DISTINCT + CAST ( 23 AS INTEGER ) ) AS col1
----
-23

query II rowsort
SELECT 21 * + + ( + 25 ) + - - 39 AS col2, + 43 * - + 93 * - + 45 AS col0
----
564
179955

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT + 98 * - 61 * - + 27 + + CASE + - ( - 27 ) WHEN + 63 THEN - ( 18 ) ELSE ( + 90 ) DIV + 25 END + + 80 * 96
----
169089

skipif mysql # not compatible
query I rowsort label-4764
SELECT + 98 * - 61 * - + 27 + + CASE + - ( - 27 ) WHEN + 63 THEN - ( 18 ) ELSE ( + 90 ) / + 25 END + + 80 * 96
----
169089

query I rowsort
SELECT - 89 * 25
----
-2225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4766
SELECT + + 75 * - CAST( + 84 AS SIGNED ) + 83 + - + ( + 33 ), + 13 * - MAX( 28 ) AS col0
----
-6250
-364

skipif mysql # not compatible
query II rowsort label-4766
SELECT + + 75 * - CAST ( + 84 AS INTEGER ) + 83 + - + ( + 33 ), + 13 * - MAX ( 28 ) AS col0
----
-6250
-364

query II rowsort
SELECT - 73 + - - 51 * + - 54 AS col2, 39 + - 30
----
-2827
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4768
SELECT ALL - - 47 AS col1, CAST( + COUNT( * ) AS SIGNED ) * + 67
----
47
67

skipif mysql # not compatible
query II rowsort label-4768
SELECT ALL - - 47 AS col1, CAST ( + COUNT ( * ) AS INTEGER ) * + 67
----
47
67

query I rowsort
SELECT DISTINCT - COALESCE ( - 16, + 90 + - + 73, - ( 80 ) ) + + - 95 - - - 51 + 13 AS col1
----
-117

query I rowsort
SELECT DISTINCT - + 36 + 45
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT + CASE + 86 WHEN + CASE + COUNT( * ) WHEN - 57 THEN NULL ELSE 40 * - 44 + - 67 END THEN - 67 ELSE 80 END AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4771
SELECT + CASE + 86 WHEN + CASE + COUNT ( * ) WHEN - 57 THEN NULL ELSE 40 * - 44 + - 67 END THEN - 67 ELSE 80 END AS col0
----
80

query I rowsort
SELECT + 39 * + - 95 AS col1
----
-3705

query I rowsort
SELECT ALL - 93 * + - 50 AS col0
----
4650

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4774
SELECT DISTINCT 87 + - 3 * + ( 23 ) DIV - 23 * - COUNT( * ) AS col1, - MIN( + + 48 )
----
84
-48

skipif mysql # not compatible
query II rowsort label-4774
SELECT DISTINCT 87 + - 3 * + ( 23 ) / - 23 * - COUNT ( * ) AS col1, - MIN ( + + 48 )
----
84
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4775
SELECT - + 37 AS col0, COUNT( * ) AS col2
----
-37
1

skipif mysql # not compatible
query II rowsort label-4775
SELECT - + 37 AS col0, COUNT ( * ) AS col2
----
-37
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4776
SELECT + 66 DIV CASE + - 99 WHEN - - 94 DIV + 17 + + + CAST( - - 74 AS SIGNED ) THEN - 83 ELSE - COUNT( + 97 ) END AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4776
SELECT + 66 / CASE + - 99 WHEN - - 94 / + 17 + + + CAST ( - - 74 AS INTEGER ) THEN - 83 ELSE - COUNT ( + 97 ) END AS col0
----
-66

query I rowsort
SELECT DISTINCT - 10 - - 42 AS col1
----
32

query II rowsort
SELECT + 51 AS col0, - 71 * - - 60 AS col0
----
51
-4260

query I rowsort
SELECT 19 * - 91
----
-1729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT + 42 * - 21 * + NULLIF ( 13, CAST( NULL AS SIGNED ) + + 56 * - 59 ) AS col2
----
-11466

skipif mysql # not compatible
query I rowsort label-4780
SELECT + 42 * - 21 * + NULLIF ( 13, CAST ( NULL AS INTEGER ) + + 56 * - 59 ) AS col2
----
-11466

onlyif mysql # DIV for integer division: 
query II rowsort label-4781
SELECT DISTINCT 20 DIV + 61 * + + 58 * + 50, 45 * + 54 AS col0
----
0
2430

skipif mysql # not compatible
query II rowsort label-4781
SELECT DISTINCT 20 / + 61 * + + 58 * + 50, 45 * + 54 AS col0
----
0
2430

query I rowsort
SELECT ALL 69 * + 67 AS col2
----
4623

query I rowsort
SELECT DISTINCT 62 * 20 AS col2
----
1240

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT 26 DIV 22
----
1

skipif mysql # not compatible
query I rowsort label-4784
SELECT 26 / 22
----
1

query I rowsort
SELECT ( 20 ) * - ( + 65 )
----
-1300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4786
SELECT DISTINCT + COUNT( * ) DIV + + 21
----
0

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT + COUNT ( * ) / + + 21
----
0

query I rowsort
SELECT 42 + - 69 AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT ALL - CAST( + 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - CAST ( + 16 AS INTEGER )
----
-16

query I rowsort
SELECT DISTINCT - 43 * 93 AS col0
----
-3999

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT DISTINCT - 71 + + + 74 * - 19 * + SUM( ALL + 88 ) * + 8 + 55 + + - 81 * 16
----
-991136

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT - 71 + + + 74 * - 19 * + SUM ( ALL + 88 ) * + 8 + 55 + + - 81 * 16
----
-991136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4791
SELECT NULLIF ( + - 90, 15 - - + 0 ) * + 49 * - COALESCE ( MAX( + - 74 ), 45 * - CAST( NULL AS SIGNED ) + 4 * 45, + 39 ) * ( - 99 ) + + COUNT( * )
----
32307661

skipif mysql # not compatible
query I rowsort label-4791
SELECT NULLIF ( + - 90, 15 - - + 0 ) * + 49 * - COALESCE ( MAX ( + - 74 ), 45 * - CAST ( NULL AS INTEGER ) + 4 * 45, + 39 ) * ( - 99 ) + + COUNT ( * )
----
32307661

query II rowsort
SELECT 51 * 99 AS col2, + 24 AS col0
----
5049
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT ALL - MAX( - - 8 ) + + - 30 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL - MAX ( - - 8 ) + + - 30 AS col2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4794
SELECT 34 + - 56 DIV + COUNT( ALL 38 ) col0, 39 AS col1
----
-22
39

skipif mysql # not compatible
query II rowsort label-4794
SELECT 34 + - 56 / + COUNT ( ALL 38 ) col0, 39 AS col1
----
-22
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL - COUNT( * ) + + 1 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL - COUNT ( * ) + + 1 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT 27 - CAST( 50 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-4796
SELECT 27 - CAST ( 50 AS INTEGER )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT - - COUNT( - 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT - - COUNT ( - 0 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 6 + + 66 - - 4 - - + 60 AS col1
----
136

query I rowsort
SELECT ALL + - 71 - + + 17
----
-88

query I rowsort
SELECT 96 * + 34 + - 76
----
3188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4801
SELECT + COUNT( DISTINCT + + 32 ) - - 80 + + 43 + COUNT( * ) DIV 58 * + 12 * - - 19 + + COUNT( * ) AS col0
----
125

skipif mysql # not compatible
query I rowsort label-4801
SELECT + COUNT ( DISTINCT + + 32 ) - - 80 + + 43 + COUNT ( * ) / 58 * + 12 * - - 19 + + COUNT ( * ) AS col0
----
125

query I rowsort
SELECT 44 + - - 1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT + NULLIF ( + 87, - + 68 + + COALESCE ( - 27, + + 44 DIV 20 + + - 85 + + 92 DIV - 68 ) ) + 62 DIV 17
----
90

skipif mysql # not compatible
query I rowsort label-4803
SELECT + NULLIF ( + 87, - + 68 + + COALESCE ( - 27, + + 44 / 20 + + - 85 + + 92 / - 68 ) ) + 62 / 17
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT - 39 * COUNT( * ) + + - NULLIF ( + 19, - CAST( NULL AS SIGNED ) * + ( - 19 ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4804
SELECT - 39 * COUNT ( * ) + + - NULLIF ( + 19, - CAST ( NULL AS INTEGER ) * + ( - 19 ) ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL - 21 * - + 73 * - 50 * CASE + COUNT( * ) WHEN - + SUM( ALL - ( - 83 ) ) * - 60 + 18 THEN NULL WHEN 93 THEN NULL WHEN 79 THEN 10 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL - 21 * - + 73 * - 50 * CASE + COUNT ( * ) WHEN - + SUM ( ALL - ( - 83 ) ) * - 60 + 18 THEN NULL WHEN 93 THEN NULL WHEN 79 THEN 10 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 53 + - 51 * 17 * + + 89 + 42 col1
----
-77174

query I rowsort
SELECT DISTINCT + - 16 * - 22 * 85
----
29920

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4808
SELECT COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT COUNT ( * ) + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 81 * + + 17 AS col0
----
1377

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT COALESCE ( + + MIN( DISTINCT - 95 ), - 76 + + + MAX( DISTINCT - ( - + ( + 21 ) ) ) - 69 ) * - + 69
----
6555

skipif mysql # not compatible
query I rowsort label-4810
SELECT COALESCE ( + + MIN ( DISTINCT - 95 ), - 76 + + + MAX ( DISTINCT - ( - + ( + 21 ) ) ) - 69 ) * - + 69
----
6555

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT ALL COALESCE ( - + NULLIF ( + - 72, 3 ), 6, - 84 ) DIV 92 col0
----
0

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL COALESCE ( - + NULLIF ( + - 72, 3 ), 6, - 84 ) / 92 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4812
SELECT DISTINCT 20 AS col1, + ( - 52 ) * - 11 - - COUNT( * )
----
20
573

skipif mysql # not compatible
query II rowsort label-4812
SELECT DISTINCT 20 AS col1, + ( - 52 ) * - 11 - - COUNT ( * )
----
20
573

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL NULLIF ( + 30, - ( - ( NULLIF ( + COUNT( * ), + 77 + - 22 + + 15 / 85 * + COUNT( * ) ) ) ) )
----
30

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL NULLIF ( + 30, - ( - ( NULLIF ( + COUNT ( * ), + 77 + - 22 + + 15 / 85 * + COUNT ( * ) ) ) ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT DISTINCT 9 + + 28 + - 60 + - 26 * - 18 + + CASE - 25 WHEN 98 THEN NULL WHEN + 83 / + + 91 - ( + AVG ( ALL + 42 ) - NULLIF ( - 94 + + CASE - 97 WHEN + 53 THEN + 90 ELSE 24 END, 78 ) ) + MIN( ALL 71 ) THEN 34 END / - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT 9 + + 28 + - 60 + - 26 * - 18 + + CASE - 25 WHEN 98 THEN NULL WHEN + 83 / + + 91 - ( + AVG ( ALL + 42 ) - NULLIF ( - 94 + + CASE - 97 WHEN + 53 THEN + 90 ELSE 24 END, 78 ) ) + MIN ( ALL 71 ) THEN 34 END / - 91
----
NULL

query I rowsort
SELECT ALL ( + + 26 ) * 14 + - 15 col1
----
349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT - NULLIF ( + - CAST( NULL AS SIGNED ), - ( 36 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT - NULLIF ( + - CAST ( NULL AS INTEGER ), - ( 36 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT ALL - 57 + COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL - 57 + COUNT ( * ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT COUNT( ALL - NULLIF ( + + 51, + 18 ) ) + - 74 * - + 27 * 86 AS col1
----
171829

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT COUNT ( ALL - NULLIF ( + + 51, + 18 ) ) + - 74 * - + 27 * 86 AS col1
----
171829

onlyif mysql # DIV for integer division: 
query I rowsort label-4819
SELECT + COALESCE ( - 10, - + 76 * - - 59 * - 60 ) DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4819
SELECT + COALESCE ( - 10, - + 76 * - - 59 * - 60 ) / 56 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4820
SELECT ALL COUNT( * ) + MIN( ( + 48 ) ) - - + CAST( + 20 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL COUNT ( * ) + MIN ( ( + 48 ) ) - - + CAST ( + 20 AS INTEGER )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT + SUM( DISTINCT 60 ) * ( - 78 ) + - 48 * 6 AS col1
----
-4968

skipif mysql # not compatible
query I rowsort label-4821
SELECT + SUM ( DISTINCT 60 ) * ( - 78 ) + - 48 * 6 AS col1
----
-4968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4822
SELECT COALESCE ( 92, CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), - MAX( ALL + 23 ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4822
SELECT COALESCE ( 92, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), - MAX ( ALL + 23 ) ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT ALL - 94 DIV + + 92
----
-1

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - 94 / + + 92
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4824
SELECT 58 * - CAST( + ( - 58 ) AS SIGNED ) + CASE ( ( - ( - MAX( ALL - ( + 78 ) ) ) ) ) WHEN 71 THEN - 18 WHEN + COUNT( * ) * - 69 THEN NULL ELSE NULL END - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT 58 * - CAST ( + ( - 58 ) AS INTEGER ) + CASE ( ( - ( - MAX ( ALL - ( + 78 ) ) ) ) ) WHEN 71 THEN - 18 WHEN + COUNT ( * ) * - 69 THEN NULL ELSE NULL END - 24
----
NULL

query I rowsort
SELECT - 13 - + 93 AS col1
----
-106

query I rowsort
SELECT ALL + + ( ( 58 ) ) AS col0
----
58

query II rowsort
SELECT ALL + - 68 AS col2, + 16 AS col0
----
-68
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - 8 + + COUNT( * ) + - 30 col1
----
-37

skipif mysql # not compatible
query I rowsort label-4828
SELECT - 8 + + COUNT ( * ) + - 30 col1
----
-37

query II rowsort
SELECT - 56 AS col1, + 22 AS col0
----
-56
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT ALL + - COALESCE ( - 17, + + 0, - COUNT( * ) ) * - MAX( DISTINCT + - 22 ) AS col1
----
374

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + - COALESCE ( - 17, + + 0, - COUNT ( * ) ) * - MAX ( DISTINCT + - 22 ) AS col1
----
374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT - CAST( NULL AS SIGNED ) + + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT - CAST ( NULL AS INTEGER ) + + 2 AS col1
----
NULL

query II rowsort
SELECT - 28 AS col1, 81 AS col1
----
-28
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4833
SELECT - COALESCE ( + 92, 68 + + - COALESCE ( + 23, - 70 ) * - - 33 * 53 DIV - - 57 DIV 79 )
----
-92

skipif mysql # not compatible
query I rowsort label-4833
SELECT - COALESCE ( + 92, 68 + + - COALESCE ( + 23, - 70 ) * - - 33 * 53 / - - 57 / 79 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT - 26 * - COUNT( * ) * MAX( + - 59 ) + - - NULLIF ( COALESCE ( + - 65, + - COUNT( ALL + 79 ) + + 72 * 94 ), ( 57 ) ) * - 59 AS col1
----
2301

skipif mysql # not compatible
query I rowsort label-4834
SELECT - 26 * - COUNT ( * ) * MAX ( + - 59 ) + - - NULLIF ( COALESCE ( + - 65, + - COUNT ( ALL + 79 ) + + 72 * 94 ), ( 57 ) ) * - 59 AS col1
----
2301

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL + MAX( DISTINCT + + 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL + MAX ( DISTINCT + + 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL + + MIN( + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL + + MIN ( + 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT + CASE WHEN - 77 BETWEEN NULL AND CASE WHEN ( 83 BETWEEN - 25 + + COUNT( DISTINCT 5 ) + MAX( DISTINCT - 24 ) * 23 AND NULL ) OR ( NULL ) = NULL THEN - ( 6 ) END * - 75 THEN + 18 END * - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT + CASE WHEN - 77 BETWEEN NULL AND CASE WHEN ( 83 BETWEEN - 25 + + COUNT ( DISTINCT 5 ) + MAX ( DISTINCT - 24 ) * 23 AND NULL ) OR ( NULL ) = NULL THEN - ( 6 ) END * - 75 THEN + 18 END * - 28 AS col1
----
NULL

query I rowsort
SELECT - - 72 * + 38
----
2736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4839
SELECT - COUNT( * ) DIV - - 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4839
SELECT - COUNT ( * ) / - - 25 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4840
SELECT ALL + + 76 AS col2, CASE + NULLIF ( + 91, - 83 ) WHEN - + 41 + + 15 THEN NULL WHEN 12 THEN + - COUNT( * ) * + 29 WHEN + 83 THEN 6 ELSE ( COUNT( * ) ) END
----
76
1

skipif mysql # not compatible
query II rowsort label-4840
SELECT ALL + + 76 AS col2, CASE + NULLIF ( + 91, - 83 ) WHEN - + 41 + + 15 THEN NULL WHEN 12 THEN + - COUNT ( * ) * + 29 WHEN + 83 THEN 6 ELSE ( COUNT ( * ) ) END
----
76
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT ALL - - 51 DIV NULLIF ( + + 17, 58 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - - 51 / NULLIF ( + + 17, 58 ) col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4842
SELECT - + ( + COUNT( * ) ) DIV + 92 - - 18
----
18

skipif mysql # not compatible
query I rowsort label-4842
SELECT - + ( + COUNT ( * ) ) / + 92 - - 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - + 89 / 94 * 44 * + - CASE + 71 WHEN + - COUNT( DISTINCT ( 42 ) ) THEN NULL WHEN + 64 - - + ( 95 ) + + 42 * 89 * - 41 THEN 49 + - 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT - + 89 / 94 * 44 * + - CASE + 71 WHEN + - COUNT ( DISTINCT ( 42 ) ) THEN NULL WHEN + 64 - - + ( 95 ) + + 42 * 89 * - 41 THEN 49 + - 52 END
----
NULL

query I rowsort
SELECT + 73 * + COALESCE ( + ( + 86 ), + 13 + 1, - - 67 * + - 55 * + - 76 * - - 17 ) - - 82 AS col2
----
6360

query I rowsort
SELECT - NULLIF ( - + 73, - - 97 ) AS col1
----
73

query II rowsort
SELECT - 64, 6 * - 72 AS col1
----
-64
-432

query II rowsort
SELECT ALL 21 col0, + 57
----
21
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4848
SELECT ALL ( COUNT( * ) ) AS col2, - 40 AS col1
----
1
-40

skipif mysql # not compatible
query II rowsort label-4848
SELECT ALL ( COUNT ( * ) ) AS col2, - 40 AS col1
----
1
-40

query I rowsort
SELECT ALL + 70 + + 16
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT + COUNT( DISTINCT 32 ) + - 28 - 62
----
-89

skipif mysql # not compatible
query I rowsort label-4850
SELECT + COUNT ( DISTINCT 32 ) + - 28 - 62
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4851
SELECT + COALESCE ( ( + COUNT( * ) ), - 31 ) * + COALESCE ( - - 23, 13 + + - 88 + + - 60 * CASE + - 57 WHEN - 63 THEN 34 + 98 ELSE + NULLIF ( - 66, - COALESCE ( - 21, - 32 * - COUNT( * ) ) ) END * 78 ) DIV 73 - 3
----
-3

skipif mysql # not compatible
query I rowsort label-4851
SELECT + COALESCE ( ( + COUNT ( * ) ), - 31 ) * + COALESCE ( - - 23, 13 + + - 88 + + - 60 * CASE + - 57 WHEN - 63 THEN 34 + 98 ELSE + NULLIF ( - 66, - COALESCE ( - 21, - 32 * - COUNT ( * ) ) ) END * 78 ) / 73 - 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT - MAX( 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4852
SELECT - MAX ( 25 ) AS col2
----
-25

query I rowsort
SELECT - 90 + 92 col1
----
2

query I rowsort
SELECT ALL + ( - 42 ) + - 67
----
-109

query I rowsort
SELECT ALL 54 + - 0 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT DISTINCT + 50 * MIN( DISTINCT + NULLIF ( + 10, + 80 ) ) + 52 * - 49
----
-2048

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT + 50 * MIN ( DISTINCT + NULLIF ( + 10, + 80 ) ) + 52 * - 49
----
-2048

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT DISTINCT MAX( + + 46 ) * 66
----
3036

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT MAX ( + + 46 ) * 66
----
3036

query I rowsort
SELECT + 96 * NULLIF ( + - ( + 71 ), 77 ) AS col2
----
-6816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4859
SELECT ALL 79 DIV 78 - + 99 * + ( + COUNT( 0 ) ) * + + 99 + + + ( COUNT( * ) ) + 28 - - 25
----
-9746

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL 79 / 78 - + 99 * + ( + COUNT ( 0 ) ) * + + 99 + + + ( COUNT ( * ) ) + 28 - - 25
----
-9746

query I rowsort
SELECT ALL + 47 * 44 AS col2
----
2068

query I rowsort
SELECT + + 47 * - 60 - + + NULLIF ( 28, - 89 ) AS col2
----
-2848

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT - - 62 * 19 + - - COUNT( * ) AS col1
----
1179

skipif mysql # not compatible
query I rowsort label-4862
SELECT - - 62 * 19 + - - COUNT ( * ) AS col1
----
1179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4863
SELECT ALL + + COALESCE ( + 33, - + 14, - 52 DIV - ( + CASE - 48 WHEN 14 + - COUNT( * ) THEN + - 54 + - 13 END ) + 61 )
----
33

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL + + COALESCE ( + 33, - + 14, - 52 / - ( + CASE - 48 WHEN 14 + - COUNT ( * ) THEN + - 54 + - 13 END ) + 61 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4864
SELECT - ( + + 37 ) DIV + + 15
----
-2

skipif mysql # not compatible
query I rowsort label-4864
SELECT - ( + + 37 ) / + + 15
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4865
SELECT DISTINCT - 23 DIV + 13
----
-1

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT - 23 / + 13
----
-1

query I rowsort
SELECT + 12 * 59
----
708

query I rowsort
SELECT - 7 * - 92 - - 87
----
731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT ALL + COALESCE ( + - ( - CAST( + 48 AS SIGNED ) ), - + 4 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL + COALESCE ( + - ( - CAST ( + 48 AS INTEGER ) ), - + 4 ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4869
SELECT + COALESCE ( + CASE - 22 WHEN + + CAST( NULL AS SIGNED ) THEN NULL ELSE - - COUNT( * ) END, NULLIF ( 65, + 64 ) * - 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4869
SELECT + COALESCE ( + CASE - 22 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL ELSE - - COUNT ( * ) END, NULLIF ( 65, + 64 ) * - 85 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 71 * 30
----
-2130

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT + - MIN( ALL 78 ) * 81 AS col2
----
-6318

skipif mysql # not compatible
query I rowsort label-4871
SELECT + - MIN ( ALL 78 ) * 81 AS col2
----
-6318

query I rowsort
SELECT DISTINCT - + 99 * 74 AS col0
----
-7326

query I rowsort
SELECT ALL + 80 + NULLIF ( - 78, + - 75 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4874
SELECT - 28 * + CAST( NULL AS DECIMAL ) + - 4 * NULLIF ( - CASE + + SUM( 63 ) WHEN + 34 THEN - + COUNT( * ) * + + SUM( DISTINCT 6 ) * - 32 WHEN + 50 THEN NULL ELSE + 64 - 3 END, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT - 28 * + CAST ( NULL AS REAL ) + - 4 * NULLIF ( - CASE + + SUM ( 63 ) WHEN + 34 THEN - + COUNT ( * ) * + + SUM ( DISTINCT 6 ) * - 32 WHEN + 50 THEN NULL ELSE + 64 - 3 END, COUNT ( * ) )
----
NULL

query I rowsort
SELECT 35 - 49 AS col2
----
-14

query II rowsort
SELECT 10 + 32 + + 76 - + + 53 + - 84, 84 * + 37 AS col1
----
-19
3108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT 44 + + CAST( + - 42 AS SIGNED ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4877
SELECT 44 + + CAST ( + - 42 AS INTEGER ) AS col1
----
2

query I rowsort
SELECT 54 + - 51 - + + 68 + 61 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL - 94 * COUNT( * ) * - - 12 AS col0
----
-1128

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL - 94 * COUNT ( * ) * - - 12 AS col0
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT 44 / - CASE - 83 WHEN + - 22 THEN NULL WHEN + - 97 + - 95 THEN + 21 / + + 47 * + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT 44 / - CASE - 83 WHEN + - 22 THEN NULL WHEN + - 97 + - 95 THEN + 21 / + + 47 * + - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT 66 + + - 9 * - MAX( - 68 ) * + 43 * 60 AS col1
----
-1578894

skipif mysql # not compatible
query I rowsort label-4881
SELECT 66 + + - 9 * - MAX ( - 68 ) * + 43 * 60 AS col1
----
-1578894

onlyif mysql # aggregate syntax: 
query II rowsort label-4882
SELECT DISTINCT - 22 - - 23, + MIN( + 3 ) - + 59 + + 56 col0
----
1
0

skipif mysql # not compatible
query II rowsort label-4882
SELECT DISTINCT - 22 - - 23, + MIN ( + 3 ) - + 59 + + 56 col0
----
1
0

query I rowsort
SELECT - COALESCE ( COALESCE ( 22, - 39 * 85 * 37 ), 47 * - 42 * + 31 * + ( 71 ) * + - 34 + 93, 74 + - 3 * 49 ) + 19 AS col2
----
-3

query I rowsort
SELECT - 56 + 1 * + 79 AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4885
SELECT - 47 DIV MIN( + - 92 ) * + 34 + 66 - - 3
----
69

skipif mysql # not compatible
query I rowsort label-4885
SELECT - 47 / MIN ( + - 92 ) * + 34 + 66 - - 3
----
69

query I rowsort
SELECT 63 * + 48 AS col2
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT DISTINCT - + COALESCE ( + COUNT( + ( - - 55 ) ), - - 43 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - + COALESCE ( + COUNT ( + ( - - 55 ) ), - - 43 ) col2
----
-1

query I rowsort
SELECT ALL + 94 * + 98 AS col0
----
9212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT DISTINCT - - SUM( CAST( 72 AS SIGNED ) )
----
72

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT - - SUM ( CAST ( 72 AS INTEGER ) )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4890
SELECT COUNT( * ) DIV + 1 + 83
----
84

skipif mysql # not compatible
query I rowsort label-4890
SELECT COUNT ( * ) / + 1 + 83
----
84

query I rowsort
SELECT ALL + 44 * - + 42
----
-1848

query I rowsort
SELECT + 6 + + - 91
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4893
SELECT ALL 75 * - 12 * 78 AS col1, CAST( + 30 AS SIGNED )
----
-70200
30

skipif mysql # not compatible
query II rowsort label-4893
SELECT ALL 75 * - 12 * 78 AS col1, CAST ( + 30 AS INTEGER )
----
-70200
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4894
SELECT ALL + CAST( NULL AS SIGNED ) * + + 88 AS col2, + 35 + + 29
----
NULL
64

skipif mysql # not compatible
query II rowsort label-4894
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 88 AS col2, + 35 + + 29
----
NULL
64

query I rowsort
SELECT 89 * + - CASE - 55 WHEN - ( + - 57 ) THEN 91 END + AVG ( ALL - 67 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL COUNT( * ) + + COUNT( * ) + 33
----
35

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL COUNT ( * ) + + COUNT ( * ) + 33
----
35

query II rowsort
SELECT 77 AS col1, + 52 AS col0
----
77
52

query I rowsort
SELECT 19 * - - 67 AS col1
----
1273

onlyif mysql # aggregate syntax: 
query II rowsort label-4899
SELECT DISTINCT COUNT( * ) + 61 + - + ( + + 20 ) AS col2, - 49 + + 24
----
42
-25

skipif mysql # not compatible
query II rowsort label-4899
SELECT DISTINCT COUNT ( * ) + 61 + - + ( + + 20 ) AS col2, - 49 + + 24
----
42
-25

query I rowsort
SELECT ALL + 70 + - 1 * + COALESCE ( - 58, - + 51 ) + 7
----
135

query I rowsort
SELECT 9 * + 18
----
162

query I rowsort
SELECT 45 * 54
----
2430

query I rowsort
SELECT DISTINCT 50 * + 47 col0
----
2350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4904
SELECT ALL - CAST( NULL AS SIGNED ) * - + ( - 24 ) / - 2 + NULLIF ( + 21, + 14 * - 14 ) * + 11 + COALESCE ( - - COUNT( * ), + 87 ) - + 62 + 26 * - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL - CAST ( NULL AS INTEGER ) * - + ( - 24 ) / - 2 + NULLIF ( + 21, + 14 * - 14 ) * + 11 + COALESCE ( - - COUNT ( * ), + 87 ) - + 62 + 26 * - 44 AS col2
----
NULL

query II rowsort
SELECT 34 - - 11 * + 23, + 43 AS col2
----
287
43

query I rowsort
SELECT 70 * - 77 AS col2
----
-5390

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4907
SELECT DISTINCT 14 * - CAST( NULL AS DECIMAL ) * - - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT 14 * - CAST ( NULL AS REAL ) * - - 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ALL COUNT( * ) * - SUM( 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL COUNT ( * ) * - SUM ( 18 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4909
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL MAX( - + 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL MAX ( - + 16 ) AS col1
----
-16

query I rowsort
SELECT 69 - - 17 + ( 96 )
----
182

query II rowsort
SELECT - 98 AS col0, 27 AS col0
----
-98
27

query II rowsort
SELECT 25 AS col0, 92
----
25
92

query I rowsort
SELECT 85 * + 27
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT - SUM( + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-4915
SELECT - SUM ( + 17 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT MIN( DISTINCT + 76 ) + - 1 + MAX( + 33 ) + - 25 + - ( + 4 ) + + + CAST( 17 AS SIGNED ) * - - 59 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT MIN ( DISTINCT + 76 ) + - 1 + MAX ( + 33 ) + - 25 + - ( + 4 ) + + + CAST ( 17 AS INTEGER ) * - - 59 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT - 14 DIV - 7 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4917
SELECT - 14 / - 7 AS col1
----
2

query I rowsort
SELECT 19 * - 55
----
-1045

onlyif mysql # DIV for integer division: 
query I rowsort label-4919
SELECT ALL + 28 DIV + 98 + + 1 * 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL + 28 / + 98 + + 1 * 76 AS col0
----
76

query I rowsort
SELECT ( 24 ) * ( 30 )
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4921
SELECT ALL - CAST( NULL AS SIGNED ), 42 + - + 10 * + 1 * + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4921
SELECT ALL - CAST ( NULL AS INTEGER ), 42 + - + 10 * + 1 * + CAST ( NULL AS INTEGER )
----
NULL
NULL

query II rowsort
SELECT DISTINCT - 85 AS col2, CASE - + 34 WHEN - 94 + - 68 + - + ( + 84 ) THEN NULL ELSE + 45 END AS col2
----
-85
45

query I rowsort
SELECT ALL - - 57 * 18 + - - 16 AS col0
----
1042

query I rowsort
SELECT 44 * + 31 + - + 34 * 2 AS col2
----
1296

onlyif mysql # DIV for integer division: 
query I rowsort label-4925
SELECT 88 * 45 DIV + 13 + - 35 + + + 4 - - 81 + - 66 AS col0
----
288

skipif mysql # not compatible
query I rowsort label-4925
SELECT 88 * 45 / + 13 + - 35 + + + 4 - - 81 + - 66 AS col0
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-4926
SELECT + 54 AS col1, COUNT( * )
----
54
1

skipif mysql # not compatible
query II rowsort label-4926
SELECT + 54 AS col1, COUNT ( * )
----
54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT ALL - - SUM( ALL - + 72 ) * + 92 + 17
----
-6607

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL - - SUM ( ALL - + 72 ) * + 92 + 17
----
-6607

query I rowsort
SELECT + 36 * 98 - - CASE 54 WHEN - - ( + 61 ) THEN + + 4 END * - ( + + 59 )
----
NULL

query I rowsort
SELECT + - 27 * + 8 AS col1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ALL + 37 * - COUNT( * ) + + 19
----
-18

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL + 37 * - COUNT ( * ) + + 19
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4931
SELECT COUNT( * ), COUNT( * ) * + 63 AS col2
----
1
63

skipif mysql # not compatible
query II rowsort label-4931
SELECT COUNT ( * ), COUNT ( * ) * + 63 AS col2
----
1
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT CASE 71 WHEN + 33 THEN + 45 * - - 16 - - COUNT( * ) ELSE + + 6 END AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4932
SELECT CASE 71 WHEN + 33 THEN + 45 * - - 16 - - COUNT ( * ) ELSE + + 6 END AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL + + 49 * 28 + - MAX( ALL + ( - 16 ) ) AS col2
----
1388

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL + + 49 * 28 + - MAX ( ALL + ( - 16 ) ) AS col2
----
1388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4934
SELECT ALL + NULLIF ( - + CASE + + COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN + 91 - 10 ELSE NULL END, - COUNT( 73 ) ) / ( + NULLIF ( + + 49, - + COALESCE ( - 56, + + COUNT( * ) * 85, - 13, 50 * - 29 ) / 58 ) ) / 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL + NULLIF ( - + CASE + + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN + 91 - 10 ELSE NULL END, - COUNT ( 73 ) ) / ( + NULLIF ( + + 49, - + COALESCE ( - 56, + + COUNT ( * ) * 85, - 13, 50 * - 29 ) / 58 ) ) / 94 AS col0
----
NULL

query I rowsort
SELECT 2 * - 47 - 1
----
-95

query I rowsort
SELECT - 21 + - 96
----
-117

query I rowsort
SELECT - 23 * + 97 + + 14 + - 6 AS col0
----
-2223

query I rowsort
SELECT - 38 * - + 92 AS col2
----
3496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT DISTINCT ( COALESCE ( - CAST( - CASE + 32 WHEN + - 7 THEN + 93 * - - ( + - 50 ) + - + 17 + - 86 + + MAX( DISTINCT - + 13 ) + 27 - COUNT( * ) / 81 WHEN 57 THEN + COUNT( * ) * 78 END AS SIGNED ), NULLIF ( ( - 99 ), - 16 ) - - 18 ) ) * ( - COUNT( 9 ) )
----
81

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT ( COALESCE ( - CAST ( - CASE + 32 WHEN + - 7 THEN + 93 * - - ( + - 50 ) + - + 17 + - 86 + + MAX ( DISTINCT - + 13 ) + 27 - COUNT ( * ) / 81 WHEN 57 THEN + COUNT ( * ) * 78 END AS INTEGER ), NULLIF ( ( - 99 ), - 16 ) - - 18 ) ) * ( - COUNT ( 9 ) )
----
81

query I rowsort
SELECT ALL - 34 * - 39 + - 19 AS col1
----
1307

query I rowsort
SELECT + CASE WHEN 8 IS NULL THEN - 66 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4942
SELECT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * - + 0 * + 45 + ( - + CAST( NULL AS SIGNED ) ) + 92 + - - 95 / + + 84 / + 91 / + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - + 0 * + 45 + ( - + CAST ( NULL AS INTEGER ) ) + 92 + - - 95 / + + 84 / + 91 / + 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4943
SELECT DISTINCT - COUNT( * ) * ( 79 ) DIV + 22
----
-3

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT - COUNT ( * ) * ( 79 ) / + 22
----
-3

query I rowsort
SELECT ALL 73 - + + 35 + - 21 + + 68 col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4945
SELECT MAX( DISTINCT + - ( ( + 82 ) ) ) AS col0, + COUNT( * )
----
-82
1

skipif mysql # not compatible
query II rowsort label-4945
SELECT MAX ( DISTINCT + - ( ( + 82 ) ) ) AS col0, + COUNT ( * )
----
-82
1

query I rowsort
SELECT + 37 + - - 81
----
118

query II rowsort
SELECT ALL 95 * - 87, + 89 AS col1
----
-8265
89

query I rowsort
SELECT + - 38 + ( + ( + + 83 ) ) * + + 38 + 77
----
3193

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT - + MAX( ALL 21 ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-4949
SELECT - + MAX ( ALL 21 ) col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4950
SELECT SUM( 62 ) AS col1, 23 AS col2
----
62
23

skipif mysql # not compatible
query II rowsort label-4950
SELECT SUM ( 62 ) AS col1, 23 AS col2
----
62
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT + 52 * - + COUNT( * ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-4951
SELECT + 52 * - + COUNT ( * ) col2
----
-52

query I rowsort
SELECT ALL + - ( - + 60 ) + - - 87 AS col2
----
147

query I rowsort
SELECT DISTINCT + 66 * - 19 AS col1
----
-1254

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT - 74 + + + NULLIF ( 88, - + COUNT( * ) ) / + - CASE WHEN NOT ( 94 ) > CASE 79 WHEN 32 + - + 44 * - - 65 THEN 88 ELSE - + 94 - - 73 * - 79 END THEN - 86 * COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT - 74 + + + NULLIF ( 88, - + COUNT ( * ) ) / + - CASE WHEN NOT ( 94 ) > CASE 79 WHEN 32 + - + 44 * - - 65 THEN 88 ELSE - + 94 - - 73 * - 79 END THEN - 86 * COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4955
SELECT + 18 DIV COALESCE ( - + COUNT( * ), + + 94 + ( - + 32 ) * - - COUNT( * ) ) AS col2, + 71 + + 78 + CAST( 13 AS SIGNED ) * - COUNT( + 14 ) * - + 78 * 69
----
-18
70115

skipif mysql # not compatible
query II rowsort label-4955
SELECT + 18 / COALESCE ( - + COUNT ( * ), + + 94 + ( - + 32 ) * - - COUNT ( * ) ) AS col2, + 71 + + 78 + CAST ( 13 AS INTEGER ) * - COUNT ( + 14 ) * - + 78 * 69
----
-18
70115

query I rowsort
SELECT - - 47 * 62 * + 86 AS col0
----
250604

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL - COUNT( * ) + - + 66
----
-67

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL - COUNT ( * ) + - + 66
----
-67

query I rowsort
SELECT - 24 - + + 50 AS col2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4959
SELECT DISTINCT + 51 * - 7 * + 77 * - COALESCE ( - ( + + 33 ), + COUNT( ALL - + 25 ) DIV + 40 + - COALESCE ( - 75, - + ( + 86 ), + + 39, 65 ) )
----
-907137

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT + 51 * - 7 * + 77 * - COALESCE ( - ( + + 33 ), + COUNT ( ALL - + 25 ) / + 40 + - COALESCE ( - 75, - + ( + 86 ), + + 39, 65 ) )
----
-907137

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4960
SELECT DISTINCT 33 DIV 32 AS col0, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4960
SELECT DISTINCT 33 / 32 AS col0, + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4961
SELECT ALL COUNT( * ) DIV + ( + - 34 ) + + - 79 + 88 + MIN( - 24 )
----
-15

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL COUNT ( * ) / + ( + - 34 ) + + - 79 + 88 + MIN ( - 24 )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT ALL + 18 DIV + + 51 + 2
----
2

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL + 18 / + + 51 + 2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4963
SELECT ALL - - 37 * + COUNT( * ) - - + 84 DIV - - ( 56 ) + - + ( - + 55 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL - - 37 * + COUNT ( * ) - - + 84 / - - ( 56 ) + - + ( - + 55 ) AS col0
----
93

query I rowsort
SELECT - 4 + + + 83
----
79

query I rowsort
SELECT + 56 * + - 42 + + 46
----
-2306

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL + CASE - 89 WHEN 35 THEN NULL WHEN 99 + + 39 THEN + NULLIF ( 13, - MAX( DISTINCT - 60 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + CASE - 89 WHEN 35 THEN NULL WHEN 99 + + 39 THEN + NULLIF ( 13, - MAX ( DISTINCT - 60 ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT + COUNT( * ) * - 41 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4967
SELECT + COUNT ( * ) * - 41 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT + 97 + + - MAX( + 7 ) + - + 90
----
0

skipif mysql # not compatible
query I rowsort label-4968
SELECT + 97 + + - MAX ( + 7 ) + - + 90
----
0

query I rowsort
SELECT ALL + ( 58 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT NULLIF ( 11, - COUNT( DISTINCT 26 ) )
----
11

skipif mysql # not compatible
query I rowsort label-4970
SELECT NULLIF ( 11, - COUNT ( DISTINCT 26 ) )
----
11

query I rowsort
SELECT DISTINCT + ( + - 47 ) AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4972
SELECT ALL + 81 / 64 * CAST( NULL AS SIGNED ) * + MIN( ALL 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + 81 / 64 * CAST ( NULL AS INTEGER ) * + MIN ( ALL 26 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - COUNT( * ) * 59 * + 37
----
-2183

skipif mysql # not compatible
query I rowsort label-4973
SELECT - COUNT ( * ) * 59 * + 37
----
-2183

query I rowsort
SELECT DISTINCT + 63 * + + 67 AS col1
----
4221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT + CAST( + + AVG ( + 33 ) AS SIGNED ) * ( - - 97 )
----
3201

skipif mysql # not compatible
query I rowsort label-4975
SELECT + CAST ( + + AVG ( + 33 ) AS INTEGER ) * ( - - 97 )
----
3201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4976
SELECT - NULLIF ( + 46, + - 22 ) - - - 17 DIV - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-4976
SELECT - NULLIF ( + 46, + - 22 ) - - - 17 / - COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4977
SELECT + MIN( ALL - - 87 ) - - + COALESCE ( 32, + 52 - - 65 ) + - 24 + 31 AS col1, NULLIF ( 91, - 9 ) AS col0
----
126
91

skipif mysql # not compatible
query II rowsort label-4977
SELECT + MIN ( ALL - - 87 ) - - + COALESCE ( 32, + 52 - - 65 ) + - 24 + 31 AS col1, NULLIF ( 91, - 9 ) AS col0
----
126
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT + MAX( + 12 ) * + 76 col1
----
912

skipif mysql # not compatible
query I rowsort label-4978
SELECT + MAX ( + 12 ) * + 76 col1
----
912

query I rowsort
SELECT DISTINCT + - 15 * - + 38
----
570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4980
SELECT ALL - ( + - 26 ) + - 20 + NULLIF ( + - 22, 21 DIV CAST( + MIN( - 33 ) AS SIGNED ) ) * + - ( COUNT( * ) ) * CASE WHEN 10 > + - COUNT( DISTINCT + 43 ) THEN + 98 DIV ( - NULLIF ( - 88, + COUNT( * ) ) ) + - 94 END
----
-2040

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL - ( + - 26 ) + - 20 + NULLIF ( + - 22, 21 / CAST ( + MIN ( - 33 ) AS INTEGER ) ) * + - ( COUNT ( * ) ) * CASE WHEN 10 > + - COUNT ( DISTINCT + 43 ) THEN + 98 / ( - NULLIF ( - 88, + COUNT ( * ) ) ) + - 94 END
----
-2040

query I rowsort
SELECT DISTINCT 24 + - 90
----
-66

query I rowsort
SELECT - COALESCE ( - 89, - + 39 ) col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4983
SELECT ALL - COUNT( * ) + + 12 * + CAST( + - 21 AS SIGNED ) col1
----
-253

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL - COUNT ( * ) + + 12 * + CAST ( + - 21 AS INTEGER ) col1
----
-253

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT 59 * 68 DIV 11 + - ( + 5 ) AS col1
----
359

skipif mysql # not compatible
query I rowsort label-4984
SELECT 59 * 68 / 11 + - ( + 5 ) AS col1
----
359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4985
SELECT DISTINCT 64 * - 17 * + MAX( DISTINCT + + 43 ) - 16 * 59 + 34 + - + CASE WHEN NOT ( + 58 ) IS NULL THEN - COUNT( * ) - - + COUNT( * ) * - 92 END DIV CASE SUM( 66 ) WHEN CASE WHEN - 71 IS NULL THEN 84 END THEN - MIN( DISTINCT - 72 ) ELSE + ( 33 ) END + + 76 AS col2
----
-47616

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT 64 * - 17 * + MAX ( DISTINCT + + 43 ) - 16 * 59 + 34 + - + CASE WHEN NOT ( + 58 ) IS NULL THEN - COUNT ( * ) - - + COUNT ( * ) * - 92 END / CASE SUM ( 66 ) WHEN CASE WHEN - 71 IS NULL THEN 84 END THEN - MIN ( DISTINCT - 72 ) ELSE + ( 33 ) END + + 76 AS col2
----
-47616

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL 82 * - 48 + + 44 + 6 + + + MIN( DISTINCT + 18 ) * - - COUNT( * )
----
-3868

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL 82 * - 48 + + 44 + 6 + + + MIN ( DISTINCT + 18 ) * - - COUNT ( * )
----
-3868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4987
SELECT ALL 22 + 90 + - MAX( ALL - 50 ) + + COUNT( * ) + - 55 DIV - + MAX( 85 ) AS col0
----
163

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL 22 + 90 + - MAX ( ALL - 50 ) + + COUNT ( * ) + - 55 / - + MAX ( 85 ) AS col0
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-4988
SELECT ALL 26 + - - 74 + - - ( + 42 ) DIV 45 DIV - + 20 - + 10 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL 26 + - - 74 + - - ( + 42 ) / 45 / - + 20 - + 10 AS col1
----
90

query I rowsort
SELECT ALL - + 77 + - + 23 * + 52 AS col0
----
-1273

query I rowsort
SELECT ALL + + 14 + 89
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4991
SELECT 43 * + MIN( + CAST( + 29 AS SIGNED ) ) col0
----
1247

skipif mysql # not compatible
query I rowsort label-4991
SELECT 43 * + MIN ( + CAST ( + 29 AS INTEGER ) ) col0
----
1247

query I rowsort
SELECT ALL 49 * + + 3 * - - 87 * - - 83
----
1061487

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT - - MAX( 47 )
----
47

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT - - MAX ( 47 )
----
47

query I rowsort
SELECT 7 - + + 6
----
1

query I rowsort
SELECT 19 * - 87
----
-1653

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT 39 * + COUNT( * ) * 95 * - ( + + 69 ) - + 29 * 15 * - 20 AS col0
----
-246945

skipif mysql # not compatible
query I rowsort label-4996
SELECT 39 * + COUNT ( * ) * 95 * - ( + + 69 ) - + 29 * 15 * - 20 AS col0
----
-246945

onlyif mysql # DIV for integer division: 
query I rowsort label-4997
SELECT 61 DIV - 88 * + 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4997
SELECT 61 / - 88 * + 47 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT DISTINCT - 66 DIV 57 DIV + + 48 * - 45
----
0

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT - 66 / 57 / + + 48 * - 45
----
0

query I rowsort
SELECT ALL - 48 * 92 AS col0
----
-4416

query I rowsort
SELECT 44 * - + 61 * - 53 AS col1
----
142252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5001
SELECT DISTINCT NULLIF ( 24, + 99 ) - + CASE + 22 WHEN + - ( + 64 ) + + 34 THEN NULL WHEN 70 * + CAST( NULL AS SIGNED ) THEN - 44 + - ( 94 ) + + 37 WHEN - 71 THEN NULL ELSE NULL END + + + 99 / 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT NULLIF ( 24, + 99 ) - + CASE + 22 WHEN + - ( + 64 ) + + 34 THEN NULL WHEN 70 * + CAST ( NULL AS INTEGER ) THEN - 44 + - ( 94 ) + + 37 WHEN - 71 THEN NULL ELSE NULL END + + + 99 / 72 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5002
SELECT DISTINCT 91 DIV + - 49 AS col1, + 53 DIV - - 43 AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-5002
SELECT DISTINCT 91 / + - 49 AS col1, + 53 / - - 43 AS col2
----
-1
1

query I rowsort
SELECT 60 - - - 15
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT ALL - SUM( - + 76 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL - SUM ( - + 76 ) AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT CAST( NULL AS SIGNED ) * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT CAST ( NULL AS INTEGER ) * - 45
----
NULL

query I rowsort
SELECT ALL + 77 * + 5
----
385

query I rowsort
SELECT 77 * 12 + + 58 + 35 + - 96 AS col0
----
921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT + 13 * + 26 + - 91 - + 59 + + CAST( 4 AS SIGNED ) + 13 + - COUNT( ALL - 88 ) * 19 AS col2
----
186

skipif mysql # not compatible
query I rowsort label-5008
SELECT + 13 * + 26 + - 91 - + 59 + + CAST ( 4 AS INTEGER ) + 13 + - COUNT ( ALL - 88 ) * 19 AS col2
----
186

query I rowsort
SELECT 75 * - 75
----
-5625

query II rowsort
SELECT 79 + 19 AS col0, + 93 AS col1
----
98
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5011
SELECT ALL - 14 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL - 14 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT ALL + 5 + ( - CASE + - 31 WHEN - 99 THEN + 94 WHEN + + 79 THEN CAST( NULL AS SIGNED ) + 40 ELSE NULL END ) * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + 5 + ( - CASE + - 31 WHEN - 99 THEN + 94 WHEN + + 79 THEN CAST ( NULL AS INTEGER ) + 40 ELSE NULL END ) * 26
----
NULL

query I rowsort
SELECT ALL + CASE 68 WHEN 59 THEN NULL WHEN 22 THEN - + 61 END + - 99 + - 83 + - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT - CASE - 17 WHEN + 87 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT - CASE - 17 WHEN + 87 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT + 8 + + SUM( ALL + 70 ) * 19 * - 77 * - + 87 * COUNT( * ) AS col2
----
8909678

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT + 8 + + SUM ( ALL + 70 ) * 19 * - 77 * - + 87 * COUNT ( * ) AS col2
----
8909678

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT DISTINCT - 50 + + COUNT( DISTINCT ( - 82 ) ) - - + 96
----
47

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - 50 + + COUNT ( DISTINCT ( - 82 ) ) - - + 96
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT DISTINCT + - 13 + + - COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT + - 13 + + - COUNT ( * ) AS col1
----
-14

query I rowsort
SELECT ALL - 17 + - - ( - - 51 ) - 41 * - + 56
----
2330

query II rowsort
SELECT 73 + - 53 AS col2, 26
----
20
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT ALL - MIN( + 63 ) * MIN( ALL - 55 ) AS col0
----
3465

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL - MIN ( + 63 ) * MIN ( ALL - 55 ) AS col0
----
3465

query I rowsort
SELECT 19 + 23
----
42

query II rowsort
SELECT ALL - 9, 96 + + 96 AS col1
----
-9
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT COUNT( * ) * + 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5023
SELECT COUNT ( * ) * + 30 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5024
SELECT ALL ( - - 37 ) AS col0, - MIN( + - 92 ) DIV + 54 * - ( + 87 ) DIV + + 78 AS col2
----
37
-1

skipif mysql # not compatible
query II rowsort label-5024
SELECT ALL ( - - 37 ) AS col0, - MIN ( + - 92 ) / + 54 * - ( + 87 ) / + + 78 AS col2
----
37
-1

query I rowsort
SELECT DISTINCT 42 - + 73
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5026
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5026
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5027
SELECT ALL 51, - CAST( - MAX( - 55 ) AS SIGNED ) * + CAST( - + 33 AS SIGNED ) + - - NULLIF ( - - 13, - 16 ) - + 36 AS col2
----
51
1792

skipif mysql # not compatible
query II rowsort label-5027
SELECT ALL 51, - CAST ( - MAX ( - 55 ) AS INTEGER ) * + CAST ( - + 33 AS INTEGER ) + - - NULLIF ( - - 13, - 16 ) - + 36 AS col2
----
51
1792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT ALL + COUNT( * ) - + SUM( DISTINCT - 11 ) * + - CAST( 55 AS SIGNED )
----
-604

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL + COUNT ( * ) - + SUM ( DISTINCT - 11 ) * + - CAST ( 55 AS INTEGER )
----
-604

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5029
SELECT 22 + + COUNT( * ), 9 + + 16 DIV + 59 * - + 47 AS col2
----
23
9

skipif mysql # not compatible
query II rowsort label-5029
SELECT 22 + + COUNT ( * ), 9 + + 16 / + 59 * - + 47 AS col2
----
23
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT - 43 * + CASE COALESCE ( - - 12, - + 15 * + 87 - 69 + - 99 + - 92 ) WHEN COUNT( * ) * - 22 * - 42 * - 26 * ( - 32 ) + - + 0 + ( - 43 + 37 ) THEN 83 + + 63 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT - 43 * + CASE COALESCE ( - - 12, - + 15 * + 87 - 69 + - 99 + - 92 ) WHEN COUNT ( * ) * - 22 * - 42 * - 26 * ( - 32 ) + - + 0 + ( - 43 + 37 ) THEN 83 + + 63 END AS col1
----
NULL

query I rowsort
SELECT 64 * - + 99 AS col2
----
-6336

query I rowsort
SELECT DISTINCT 21 * - 71 AS col1
----
-1491

query I rowsort
SELECT DISTINCT 33 * - 6
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT 54 * + COUNT( * ) * - 39 * 71
----
-149526

skipif mysql # not compatible
query I rowsort label-5034
SELECT 54 * + COUNT ( * ) * - 39 * 71
----
-149526

query I rowsort
SELECT ALL 50 * + - 76 * - 67
----
254600

query I rowsort
SELECT DISTINCT 85 * - 20 * - ( + - 61 ) AS col2
----
-103700

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT 44 * + NULLIF ( COUNT( * ), - - 60 - - + 35 ) * - 61
----
-2684

skipif mysql # not compatible
query I rowsort label-5037
SELECT 44 * + NULLIF ( COUNT ( * ), - - 60 - - + 35 ) * - 61
----
-2684

query I rowsort
SELECT 81 * - 65 + 22 AS col0
----
-5243

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT SUM( DISTINCT - + ( - - 28 ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5039
SELECT SUM ( DISTINCT - + ( - - 28 ) ) AS col0
----
-28

query I rowsort
SELECT ALL - NULLIF ( + 67, + 43 * + ( - 83 ) + - - 13 )
----
-67

query I rowsort
SELECT ALL - 18 + 29 col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT MAX( DISTINCT + 68 ) col1
----
68

skipif mysql # not compatible
query I rowsort label-5042
SELECT MAX ( DISTINCT + 68 ) col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5043
SELECT ALL + COUNT( * ) + + - 48 DIV - 56 * + 40 * + 51 * - 97 + 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL + COUNT ( * ) + + - 48 / - 56 * + 40 * + 51 * - 97 + 45 AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5044
SELECT 88 DIV 64
----
1

skipif mysql # not compatible
query I rowsort label-5044
SELECT 88 / 64
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL 36 + + 57 - + + MIN( 89 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL 36 + + 57 - + + MIN ( 89 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5046
SELECT 94 * + 56 * MAX( ( - - 32 ) ), + 35 col2
----
168448
35

skipif mysql # not compatible
query II rowsort label-5046
SELECT 94 * + 56 * MAX ( ( - - 32 ) ), + 35 col2
----
168448
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT DISTINCT + + CAST( - - ( 69 ) AS SIGNED ) + 59 * + 60 AS col0
----
3609

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT + + CAST ( - - ( 69 ) AS INTEGER ) + 59 * + 60 AS col0
----
3609

query I rowsort
SELECT - 41 + 25 AS col2
----
-16

query I rowsort
SELECT ALL + - 10 + + ( 44 ) AS col0
----
34

query I rowsort
SELECT - 98 - + + 27 + - + 60 + - 1 + + - 44 * 37 AS col0
----
-1814

query I rowsort
SELECT - 25 + - 89 + - + 73
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL + SUM( 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + SUM ( 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT - + 99 * 86 + - COUNT( * )
----
-8515

skipif mysql # not compatible
query I rowsort label-5053
SELECT - + 99 * 86 + - COUNT ( * )
----
-8515

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL COUNT( + - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL COUNT ( + - 5 )
----
1

query I rowsort
SELECT DISTINCT 82 * + 11 - - + 69 + + + ( + 93 ) * + 33
----
4040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5056
SELECT - + 50 - + COUNT( * ) col2, 20 * + 89 DIV - - ( + + COUNT( * ) )
----
-51
1780

skipif mysql # not compatible
query II rowsort label-5056
SELECT - + 50 - + COUNT ( * ) col2, 20 * + 89 / - - ( + + COUNT ( * ) )
----
-51
1780

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT + 75 - + 75 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5057
SELECT + 75 - + 75 * COUNT ( * ) AS col0
----
0

query II rowsort
SELECT ALL + 69 - - ( 17 ) * + + 45 + 49, 52 AS col1
----
883
52

query I rowsort
SELECT DISTINCT - 11 * + 69
----
-759

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5060
SELECT - 27 + CAST( NULL AS DECIMAL ) * 26 / - - AVG ( DISTINCT - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT - 27 + CAST ( NULL AS REAL ) * 26 / - - AVG ( DISTINCT - 79 )
----
NULL

query I rowsort
SELECT ALL - 67 * 26 - - 80
----
-1662

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL CASE 33 WHEN 31 - + 91 + - 17 THEN NULL WHEN 15 / + - COALESCE ( 37, + 38 * - 1 * - - CASE + 48 WHEN 5 THEN - - 58 * - 10 WHEN + 50 * 55 + + 78 THEN 26 + 44 ELSE NULL END, - 15 * 13 ) + 50 * 96 + - COUNT( * ) THEN 36 WHEN + COUNT( - 12 ) * NULLIF ( 85 - 5, - 23 ) THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL CASE 33 WHEN 31 - + 91 + - 17 THEN NULL WHEN 15 / + - COALESCE ( 37, + 38 * - 1 * - - CASE + 48 WHEN 5 THEN - - 58 * - 10 WHEN + 50 * 55 + + 78 THEN 26 + 44 ELSE NULL END, - 15 * 13 ) + 50 * 96 + - COUNT ( * ) THEN 36 WHEN + COUNT ( - 12 ) * NULLIF ( 85 - 5, - 23 ) THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT ( 20 ) AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT DISTINCT 74 DIV - 57
----
-1

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT 74 / - 57
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT 69 * - 80 * - + SUM( DISTINCT - 24 ) + + 20 AS col1
----
-132460

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT 69 * - 80 * - + SUM ( DISTINCT - 24 ) + + 20 AS col1
----
-132460

onlyif mysql # aggregate syntax: 
query II rowsort label-5066
SELECT + COUNT( * ) AS col0, 33 * 54
----
1
1782

skipif mysql # not compatible
query II rowsort label-5066
SELECT + COUNT ( * ) AS col0, 33 * 54
----
1
1782

query I rowsort
SELECT + 91 * - - 41 col0
----
3731

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT 13 * - COUNT( * ) + - 97 AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-5068
SELECT 13 * - COUNT ( * ) + - 97 AS col2
----
-110

query I rowsort
SELECT + ( - - 60 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5070
SELECT + SUM( + 66 ) DIV + ( + + 43 ) + + 89
----
90

skipif mysql # not compatible
query I rowsort label-5070
SELECT + SUM ( + 66 ) / + ( + + 43 ) + + 89
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5071
SELECT ALL 80 * + 33 + - 44 - - + 39 + 97 * - 4 + + CAST( + - 50 AS SIGNED ) col0, + 72 DIV - ( - - 42 ) - - 13 - - + 72 AS col0
----
2197
84

skipif mysql # not compatible
query II rowsort label-5071
SELECT ALL 80 * + 33 + - 44 - - + 39 + 97 * - 4 + + CAST ( + - 50 AS INTEGER ) col0, + 72 / - ( - - 42 ) - - 13 - - + 72 AS col0
----
2197
84

query I rowsort
SELECT DISTINCT 18 * - 34 + - 39 AS col2
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT DISTINCT + MAX( DISTINCT + + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT + MAX ( DISTINCT + + 98 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT + CASE - 8 WHEN + 97 * - + 43 THEN - 86 * - + 38 + - - CAST( NULL AS SIGNED ) * COUNT( * ) / COALESCE ( 61, MIN( DISTINCT - + CAST( - + 36 AS SIGNED ) ) ) * NULLIF ( + + 52, + + CASE - + COUNT( * ) WHEN - 56 THEN NULL WHEN 77 / ( + MAX( 69 ) ) THEN SUM( 98 ) + 84 ELSE NULL END / + 33 ) WHEN 20 THEN 41 * 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT + CASE - 8 WHEN + 97 * - + 43 THEN - 86 * - + 38 + - - CAST ( NULL AS INTEGER ) * COUNT ( * ) / COALESCE ( 61, MIN ( DISTINCT - + CAST ( - + 36 AS INTEGER ) ) ) * NULLIF ( + + 52, + + CASE - + COUNT ( * ) WHEN - 56 THEN NULL WHEN 77 / ( + MAX ( 69 ) ) THEN SUM ( 98 ) + 84 ELSE NULL END / + 33 ) WHEN 20 THEN 41 * 77 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL COUNT( DISTINCT - 5 ) * + - 89 * 74 + - - ( 92 )
----
-6494

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL COUNT ( DISTINCT - 5 ) * + - 89 * 74 + - - ( 92 )
----
-6494

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL 36 * - + 64 * + - 98 * - COUNT( * ) + + - COALESCE ( - - 62, - 95 ) + 56 * + - SUM( DISTINCT - ( - + 40 ) )
----
-228094

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL 36 * - + 64 * + - 98 * - COUNT ( * ) + + - COALESCE ( - - 62, - 95 ) + 56 * + - SUM ( DISTINCT - ( - + 40 ) )
----
-228094

query II rowsort
SELECT - 33, + 55 * 70 * - + 61 AS col0
----
-33
-234850

query II rowsort
SELECT DISTINCT + NULLIF ( ( + + 1 ), - 5 ), 8 AS col2
----
1
8

query I rowsort
SELECT - + 89 * - + 50 - 36 AS col2
----
4414

query I rowsort
SELECT + + 45 + 66 AS col0
----
111

query I rowsort
SELECT + 18 * 85 AS col1
----
1530

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT ALL 88 DIV - 6 + + 3 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL 88 / - 6 + + 3 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT DISTINCT + - COUNT( * ) * 71 - 48 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT + - COUNT ( * ) * 71 - 48 AS col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT - 45 + CASE COUNT( * ) WHEN ( + COUNT( 26 ) ) * + - 28 + - + 29 + 43 * + 17 * - 2 - + 50 + 40 THEN + + 45 WHEN 53 THEN NULL END / - AVG ( + + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT - 45 + CASE COUNT ( * ) WHEN ( + COUNT ( 26 ) ) * + - 28 + - + 29 + 43 * + 17 * - 2 - + 50 + 40 THEN + + 45 WHEN 53 THEN NULL END / - AVG ( + + 77 )
----
NULL

query II rowsort
SELECT 47, + 69 + - 98 AS col0
----
47
-29

query II rowsort
SELECT ALL - 82 * + + 34 * 98, + 10 AS col1
----
-273224
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5087
SELECT + - 76 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT + - 76 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - ( + 89 ) AS col2
----
89

query I rowsort
SELECT ALL - ( + 60 ) * + 6 * 37
----
-13320

query II rowsort
SELECT DISTINCT 20 col1, - COALESCE ( - 11, - 88 ) AS col0
----
20
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5091
SELECT DISTINCT + 35 * + MAX( DISTINCT 9 ) * ( COUNT( + 43 ) ) * + + 99, + COUNT( * ) AS col0
----
31185
1

skipif mysql # not compatible
query II rowsort label-5091
SELECT DISTINCT + 35 * + MAX ( DISTINCT 9 ) * ( COUNT ( + 43 ) ) * + + 99, + COUNT ( * ) AS col0
----
31185
1

query I rowsort
SELECT DISTINCT + 62 + - - ( + ( + 76 ) ) col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT DISTINCT COALESCE ( - 64, - - 58 + NULLIF ( ( + COUNT( * ) ), + 29 * - 24 + + 82 ) + + 28 - + 98 * COUNT( * ) * + 50, + + 77 - + 44 )
----
-64

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT COALESCE ( - 64, - - 58 + NULLIF ( ( + COUNT ( * ) ), + 29 * - 24 + + 82 ) + + 28 - + 98 * COUNT ( * ) * + 50, + + 77 - + 44 )
----
-64

query I rowsort
SELECT + 33 * - 37
----
-1221

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT - COUNT( * ) + + + 91 * + 16 col0
----
1455

skipif mysql # not compatible
query I rowsort label-5095
SELECT - COUNT ( * ) + + + 91 * + 16 col0
----
1455

query I rowsort
SELECT ALL ( - ( - 47 ) )
----
47

query I rowsort
SELECT DISTINCT + 35 + + ( - + 74 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT - ( - COUNT( * ) ) + + 53 + 31 * - + 20 col2
----
-566

skipif mysql # not compatible
query I rowsort label-5098
SELECT - ( - COUNT ( * ) ) + + 53 + 31 * - + 20 col2
----
-566

query I rowsort
SELECT + ( 32 ) + 33 AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5100
SELECT ALL COUNT( * ) DIV + 77 * ( - - 13 ) + + 1
----
1

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL COUNT ( * ) / + 77 * ( - - 13 ) + + 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT - ( - + 12 ) * - COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5101
SELECT - ( - + 12 ) * - COUNT ( * ) AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5102
SELECT DISTINCT CASE - 5 WHEN + 84 THEN + 62 * - 56 + - 43 ELSE - - 80 END DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT CASE - 5 WHEN + 84 THEN + 62 * - 56 + - 43 ELSE - - 80 END / 48
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT NULLIF ( - + ( - - 36 ), + 80 ) + + 51 DIV - 30 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5103
SELECT NULLIF ( - + ( - - 36 ), + 80 ) + + 51 / - 30 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL + 82 + + 95 + + - 93 + - 12 * - 60 * - 82 * + + 88 * + - 87 - + + 46 + + COUNT( * )
----
452010279

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL + 82 + + 95 + + - 93 + - 12 * - 60 * - 82 * + + 88 * + - 87 - + + 46 + + COUNT ( * )
----
452010279

query I rowsort
SELECT 55 * + - 47 + - + 69 + - + 8
----
-2662

query I rowsort
SELECT 84 * + 26
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT DISTINCT 1 - - COALESCE ( - + 10, - 5 + 28 ) * COUNT( ALL - 88 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT 1 - - COALESCE ( - + 10, - 5 + 28 ) * COUNT ( ALL - 88 ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5108
SELECT + + CAST( - 55 AS SIGNED ) col2, - COUNT( * )
----
-55
-1

skipif mysql # not compatible
query II rowsort label-5108
SELECT + + CAST ( - 55 AS INTEGER ) col2, - COUNT ( * )
----
-55
-1

query I rowsort
SELECT 25 * - CASE 21 WHEN ( + 6 ) * - 62 * + 55 * + ( + + AVG ( DISTINCT - 14 ) ) + 89 THEN - + 27 END
----
NULL

query I rowsort
SELECT DISTINCT - ( + 91 ) col2
----
-91

query I rowsort
SELECT 17 * - 68 + + 90 AS col0
----
-1066

query I rowsort
SELECT ALL + 2 - - 22 * + 13
----
288

query II rowsort
SELECT + ( 7 ) AS col0, 80
----
7
80

query I rowsort
SELECT 94 + - 61 * - - 37
----
-2163

query I rowsort
SELECT + 52 * + ( + - 81 )
----
-4212

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT DISTINCT NULLIF ( ( - COALESCE ( - ( + COUNT( + - 14 ) ), 25 ) ), 17 + 57 + - 17 / + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT NULLIF ( ( - COALESCE ( - ( + COUNT ( + - 14 ) ), 25 ) ), 17 + 57 + - 17 / + COUNT ( * ) )
----
1

query I rowsort
SELECT + COALESCE ( - 53, - 98 ) + + - 62 AS col1
----
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5118
SELECT ALL COALESCE ( + MAX( - 33 ), 30 ) * - 43 * + 99 + - CAST( NULL AS SIGNED ) AS col1, 0 * 59 * 13 + - ( - + CAST( + 41 AS SIGNED ) ) - - - 79
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-5118
SELECT ALL COALESCE ( + MAX ( - 33 ), 30 ) * - 43 * + 99 + - CAST ( NULL AS INTEGER ) AS col1, 0 * 59 * 13 + - ( - + CAST ( + 41 AS INTEGER ) ) - - - 79
----
NULL
-38

query I rowsort
SELECT DISTINCT + 28 * + 79 + + - 37 * + - 57
----
4321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5120
SELECT ALL - + CASE COALESCE ( + 19, + 49 ) WHEN + - COUNT( * ) + + CASE + + 55 WHEN + - 69 + 63 THEN - ( - CAST( + MAX( ALL - 80 ) AS SIGNED ) ) * - MAX( + + 12 ) WHEN + NULLIF ( + 26, + 89 * 40 * 93 ) THEN NULL WHEN 50 * CAST( - 45 * + 32 AS SIGNED ) THEN NULL WHEN + 33 * 53 THEN NULL ELSE NULL END THEN - 24 * 36 - 74 END + - 4 / 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL - + CASE COALESCE ( + 19, + 49 ) WHEN + - COUNT ( * ) + + CASE + + 55 WHEN + - 69 + 63 THEN - ( - CAST ( + MAX ( ALL - 80 ) AS INTEGER ) ) * - MAX ( + + 12 ) WHEN + NULLIF ( + 26, + 89 * 40 * 93 ) THEN NULL WHEN 50 * CAST ( - 45 * + 32 AS INTEGER ) THEN NULL WHEN + 33 * 53 THEN NULL ELSE NULL END THEN - 24 * 36 - 74 END + - 4 / 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5121
SELECT ALL + 1 * + - COUNT( * ) DIV - + 95 * + 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + 1 * + - COUNT ( * ) / - + 95 * + 3 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5122
SELECT 34 DIV + 28
----
1

skipif mysql # not compatible
query I rowsort label-5122
SELECT 34 / + 28
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5123
SELECT 70 DIV + COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5123
SELECT 70 / + COUNT ( * ) AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT 73 - + - 44 DIV + 61
----
73

skipif mysql # not compatible
query I rowsort label-5124
SELECT 73 - + - 44 / + 61
----
73

query I rowsort
SELECT ALL 3 * + + 76
----
228

query I rowsort
SELECT DISTINCT 62 + - + ( + 42 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL 21 + + COUNT( * ) * - 23 - - - 28 * 14 * + 39 * + + 95 AS col0
----
-1452362

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL 21 + + COUNT ( * ) * - 23 - - - 28 * 14 * + 39 * + + 95 AS col0
----
-1452362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5128
SELECT ALL - 86 + + + ( CAST( - 91 AS SIGNED ) )
----
-177

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - 86 + + + ( CAST ( - 91 AS INTEGER ) )
----
-177

query I rowsort
SELECT DISTINCT + 31 + + - 88
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-5130
SELECT - 64 AS col2, COUNT( * ) AS col2
----
-64
1

skipif mysql # not compatible
query II rowsort label-5130
SELECT - 64 AS col2, COUNT ( * ) AS col2
----
-64
1

query II rowsort
SELECT ( - 9 ) * - - 32 AS col0, + 53 - - - 7
----
-288
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT DISTINCT + COUNT( * ) + + - 35
----
-34

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT + COUNT ( * ) + + - 35
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT 2 * COUNT( ALL 70 )
----
2

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT 2 * COUNT ( ALL 70 )
----
2

query I rowsort
SELECT ALL 61 + - 93 + 63 * + 6
----
346

query I rowsort
SELECT DISTINCT 20 + + 42
----
62

query II rowsort
SELECT - 75 AS col1, 6 AS col0
----
-75
6

query I rowsort
SELECT 95 * + 68
----
6460

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT + ( 72 ) * - 84 * + - 99 + - COUNT( * ) * - + 80 * - - 55 + - 85 * + - 41 AS col1
----
606637

skipif mysql # not compatible
query I rowsort label-5138
SELECT + ( 72 ) * - 84 * + - 99 + - COUNT ( * ) * - + 80 * - - 55 + - 85 * + - 41 AS col1
----
606637

query I rowsort
SELECT ALL + 87 * - + 50 AS col0
----
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT 4 + CASE + ( 87 ) WHEN - 36 THEN NULL ELSE COUNT( * ) END
----
5

skipif mysql # not compatible
query I rowsort label-5140
SELECT 4 + CASE + ( 87 ) WHEN - 36 THEN NULL ELSE COUNT ( * ) END
----
5

query I rowsort
SELECT CASE - 75 WHEN + + 38 + + - 6 THEN - 60 * 26 END * + 22 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 74 * - + 62
----
-4588

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5143
SELECT ALL + 98 * CASE + + 9 WHEN 34 * + CAST( - - 4 AS SIGNED ) - + AVG ( DISTINCT - + CAST( NULL AS DECIMAL ) ) THEN + - 87 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL + 98 * CASE + + 9 WHEN 34 * + CAST ( - - 4 AS INTEGER ) - + AVG ( DISTINCT - + CAST ( NULL AS REAL ) ) THEN + - 87 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5144
SELECT - 91 * CASE + + 41 WHEN 84 THEN MAX( DISTINCT + 39 ) * 9 + + ( - - ( 71 ) ) WHEN + 84 / + CAST( + - NULLIF ( + NULLIF ( NULLIF ( 87, ( - - 80 ) ), - ( - 8 ) * 25 ), 45 - - 40 ) AS SIGNED ) - + CASE 37 WHEN 36 THEN + 45 + 20 WHEN + 41 THEN + 58 / NULLIF ( 89, CAST( NULL AS SIGNED ) ) END + - 68 * MAX( 78 ) THEN NULL ELSE NULL END * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT - 91 * CASE + + 41 WHEN 84 THEN MAX ( DISTINCT + 39 ) * 9 + + ( - - ( 71 ) ) WHEN + 84 / + CAST ( + - NULLIF ( + NULLIF ( NULLIF ( 87, ( - - 80 ) ), - ( - 8 ) * 25 ), 45 - - 40 ) AS INTEGER ) - + CASE 37 WHEN 36 THEN + 45 + 20 WHEN + 41 THEN + 58 / NULLIF ( 89, CAST ( NULL AS INTEGER ) ) END + - 68 * MAX ( 78 ) THEN NULL ELSE NULL END * 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5145
SELECT ALL + 17 DIV - COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL + 17 / - COUNT ( * ) AS col0
----
-17

query I rowsort
SELECT - 53 * 69
----
-3657

query I rowsort
SELECT 63 * 50 AS col0
----
3150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5148
SELECT DISTINCT - - 93, + NULLIF ( + - 31, - CAST( + - 94 AS SIGNED ) + - 82 * 80 ) AS col0
----
93
-31

skipif mysql # not compatible
query II rowsort label-5148
SELECT DISTINCT - - 93, + NULLIF ( + - 31, - CAST ( + - 94 AS INTEGER ) + - 82 * 80 ) AS col0
----
93
-31

query I rowsort
SELECT - 67 + - 9
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT ALL CAST( NULL AS SIGNED ) * + SUM( 83 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL CAST ( NULL AS INTEGER ) * + SUM ( 83 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5151
SELECT COALESCE ( - 53, + 33 * + 49 + - MIN( DISTINCT CAST( NULL AS SIGNED ) ) ) * - CASE + 21 WHEN - + 99 * - 90 * 80 + 99 + + 51 * - 36 THEN - CASE - 12 WHEN + ( - MAX( DISTINCT COALESCE ( 36, 67 + + 22 ) ) ) THEN + 87 DIV CAST( + ( - ( ( 2 ) ) ) * - 74 AS SIGNED ) ELSE + 36 END DIV 31 WHEN + 24 * 91 THEN 63 WHEN 84 THEN NULL ELSE - ( + 41 ) END - - 31 AS col2
----
-2142

skipif mysql # not compatible
query I rowsort label-5151
SELECT COALESCE ( - 53, + 33 * + 49 + - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * - CASE + 21 WHEN - + 99 * - 90 * 80 + 99 + + 51 * - 36 THEN - CASE - 12 WHEN + ( - MAX ( DISTINCT COALESCE ( 36, 67 + + 22 ) ) ) THEN + 87 / CAST ( + ( - ( ( 2 ) ) ) * - 74 AS INTEGER ) ELSE + 36 END / 31 WHEN + 24 * 91 THEN 63 WHEN 84 THEN NULL ELSE - ( + 41 ) END - - 31 AS col2
----
-2142

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT DISTINCT + + MAX( ALL - 38 ) + + 75 + - + 37 + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT + + MAX ( ALL - 38 ) + + 75 + - + 37 + - + COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT 38 * 84
----
3192

query I rowsort
SELECT - 7 + - 57 AS col2
----
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-5155
SELECT ALL + - 44 + 96 DIV 77 col1, - 63 * + - 98
----
-43
6174

skipif mysql # not compatible
query II rowsort label-5155
SELECT ALL + - 44 + 96 / 77 col1, - 63 * + - 98
----
-43
6174

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL - 99 + + + SUM( DISTINCT - 66 )
----
-165

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL - 99 + + + SUM ( DISTINCT - 66 )
----
-165

query I rowsort
SELECT ALL - 41 + + + 35 col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT + ( - CAST( NULL AS SIGNED ) ) * - 8 * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT + ( - CAST ( NULL AS INTEGER ) ) * - 8 * - 79
----
NULL

query I rowsort
SELECT ALL 21 + 57
----
78

query I rowsort
SELECT 63 * + 54
----
3402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5161
SELECT 96, CAST( NULL AS SIGNED ) / MAX( ALL - - 26 ) AS col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-5161
SELECT 96, CAST ( NULL AS INTEGER ) / MAX ( ALL - - 26 ) AS col0
----
96
NULL

query I rowsort
SELECT 69 + 41 * - 5
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5163
SELECT - SUM( DISTINCT - 55 ) AS col1, COUNT( * ) + COUNT( DISTINCT + CAST( - 34 AS SIGNED ) ) AS col1
----
55
2

skipif mysql # not compatible
query II rowsort label-5163
SELECT - SUM ( DISTINCT - 55 ) AS col1, COUNT ( * ) + COUNT ( DISTINCT + CAST ( - 34 AS INTEGER ) ) AS col1
----
55
2

query II rowsort
SELECT ALL 65, - ( - 92 ) AS col0
----
65
92

query I rowsort
SELECT ALL - 55 * + 88
----
-4840

query I rowsort
SELECT + 49 + + - 5
----
44

query I rowsort
SELECT DISTINCT 55 - - + 66 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT - SUM( + 20 ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-5168
SELECT - SUM ( + 20 ) col0
----
-20

query I rowsort
SELECT + 25 + + 0 AS col0
----
25

query I rowsort
SELECT + 96 * + 58 AS col0
----
5568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5171
SELECT - 2 + + + COUNT( * ) + 17 + - + 69 + - - 52 * 14 * - COUNT( * ) + 31 + + + 25 DIV 64
----
-750

skipif mysql # not compatible
query I rowsort label-5171
SELECT - 2 + + + COUNT ( * ) + 17 + - + 69 + - - 52 * 14 * - COUNT ( * ) + 31 + + + 25 / 64
----
-750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT ALL 7 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL 7 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5173
SELECT + CAST( + ( - - CASE - + 87 WHEN - 80 THEN 20 END ) AS SIGNED ) * 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5173
SELECT + CAST ( + ( - - CASE - + 87 WHEN - 80 THEN 20 END ) AS INTEGER ) * 23 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 37 AS col2, + 49 AS col2
----
37
49

onlyif mysql # aggregate syntax: 
query II rowsort label-5175
SELECT DISTINCT SUM( - 77 ) col1, COUNT( * ) AS col0
----
-77
1

skipif mysql # not compatible
query II rowsort label-5175
SELECT DISTINCT SUM ( - 77 ) col1, COUNT ( * ) AS col0
----
-77
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5176
SELECT ALL COUNT( * ) AS col1, 11 * 34 - 78 + + + 48 + + 77 AS col1
----
1
421

skipif mysql # not compatible
query II rowsort label-5176
SELECT ALL COUNT ( * ) AS col1, 11 * 34 - 78 + + + 48 + + 77 AS col1
----
1
421

query I rowsort
SELECT - NULLIF ( - 25, 37 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT + CASE 85 WHEN - - AVG ( DISTINCT 33 ) * + + 98 - + 85 * + 7 * - CASE + 48 WHEN + 54 + COUNT( - + 64 ) THEN NULL ELSE 71 END THEN - COUNT( * ) - 45 - - + 80 / + + 0 WHEN + - 65 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT + CASE 85 WHEN - - AVG ( DISTINCT 33 ) * + + 98 - + 85 * + 7 * - CASE + 48 WHEN + 54 + COUNT ( - + 64 ) THEN NULL ELSE 71 END THEN - COUNT ( * ) - 45 - - + 80 / + + 0 WHEN + - 65 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5179
SELECT ALL + COUNT( * ), 10 * + COUNT( * ) col1
----
1
10

skipif mysql # not compatible
query II rowsort label-5179
SELECT ALL + COUNT ( * ), 10 * + COUNT ( * ) col1
----
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT - + 16 * + + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-5180
SELECT - + 16 * + + COUNT ( * )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5181
SELECT DISTINCT + - NULLIF ( 67, - - 45 - - SUM( + + 81 ) * - - NULLIF ( 60, + + 2 + - 68 ) * - 34 / CAST( NULL AS DECIMAL ) + - 49 + + - COUNT( * ) + - 32 * + 54 * - CASE - - ( 35 ) WHEN - 26 + 91 * - 43 THEN NULL WHEN 60 THEN - NULLIF ( - MIN( + 5 ), CAST( + COUNT( * ) AS SIGNED ) ) / + COUNT( * ) END )
----
-67

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT + - NULLIF ( 67, - - 45 - - SUM ( + + 81 ) * - - NULLIF ( 60, + + 2 + - 68 ) * - 34 / CAST ( NULL AS REAL ) + - 49 + + - COUNT ( * ) + - 32 * + 54 * - CASE - - ( 35 ) WHEN - 26 + 91 * - 43 THEN NULL WHEN 60 THEN - NULLIF ( - MIN ( + 5 ), CAST ( + COUNT ( * ) AS INTEGER ) ) / + COUNT ( * ) END )
----
-67

query I rowsort
SELECT + + 72 * + + 7
----
504

onlyif mysql # aggregate syntax: 
query II rowsort label-5183
SELECT 4 AS col2, COUNT( + 97 ) AS col1
----
4
1

skipif mysql # not compatible
query II rowsort label-5183
SELECT 4 AS col2, COUNT ( + 97 ) AS col1
----
4
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5184
SELECT CASE + 72 WHEN + ( + - 6 ) THEN NULL ELSE COUNT( * ) DIV + + 89 + MIN( ( 3 ) ) END AS col0, - 1 + + - 13 * + - 47 col2
----
3
610

skipif mysql # not compatible
query II rowsort label-5184
SELECT CASE + 72 WHEN + ( + - 6 ) THEN NULL ELSE COUNT ( * ) / + + 89 + MIN ( ( 3 ) ) END AS col0, - 1 + + - 13 * + - 47 col2
----
3
610

onlyif mysql # aggregate syntax: 
query II rowsort label-5185
SELECT + 59, MIN( DISTINCT 41 ) AS col0
----
59
41

skipif mysql # not compatible
query II rowsort label-5185
SELECT + 59, MIN ( DISTINCT 41 ) AS col0
----
59
41

query II rowsort
SELECT DISTINCT + + 99 AS col2, - 15
----
99
-15

query I rowsort
SELECT ALL - 95 * + ( - 82 )
----
7790

query I rowsort
SELECT ALL - 60 * + 35 + + 1 * + - 75
----
-2175

query I rowsort
SELECT ALL + 45 * 95 + - 83 * - 98 AS col1
----
12409

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT - - ( - + 81 ) DIV 1
----
-81

skipif mysql # not compatible
query I rowsort label-5190
SELECT - - ( - + 81 ) / 1
----
-81

query I rowsort
SELECT ALL - - 80 * + + 26 AS col1
----
2080

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5192
SELECT - COUNT( * ) * - COALESCE ( - 60, - - 45 * - 17 - + 42, + CASE 6 WHEN + CAST( - 13 AS DECIMAL ) THEN NULL ELSE + - 42 END ), + 78 + - + 79 AS col2
----
-60
-1

skipif mysql # not compatible
query II rowsort label-5192
SELECT - COUNT ( * ) * - COALESCE ( - 60, - - 45 * - 17 - + 42, + CASE 6 WHEN + CAST ( - 13 AS REAL ) THEN NULL ELSE + - 42 END ), + 78 + - + 79 AS col2
----
-60
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5193
SELECT + 66 col2, CAST( - - 15 AS SIGNED ) AS col0
----
66
15

skipif mysql # not compatible
query II rowsort label-5193
SELECT + 66 col2, CAST ( - - 15 AS INTEGER ) AS col0
----
66
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5194
SELECT - 77, - MIN( ALL - - 83 ) AS col1
----
-77
-83

skipif mysql # not compatible
query II rowsort label-5194
SELECT - 77, - MIN ( ALL - - 83 ) AS col1
----
-77
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5195
SELECT + + 29 AS col2, + 78 + + CAST( NULL AS SIGNED )
----
29
NULL

skipif mysql # not compatible
query II rowsort label-5195
SELECT + + 29 AS col2, + 78 + + CAST ( NULL AS INTEGER )
----
29
NULL

query II rowsort
SELECT + + 72 AS col0, + 6 + - 17
----
72
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5197
SELECT - MAX( + 48 ) - + + CASE - COALESCE ( + ( + - 0 ), - - ( + 29 ) + + 24, 1 + - 1 * - + ( - + COUNT( * ) ) - + COUNT( * ) ) WHEN ( ( + + 7 ) ) * + NULLIF ( - COUNT( ALL + + 22 ), - CAST( 67 AS DECIMAL ) + 17 ) + - ( 1 ) * 19 THEN 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT - MAX ( + 48 ) - + + CASE - COALESCE ( + ( + - 0 ), - - ( + 29 ) + + 24, 1 + - 1 * - + ( - + COUNT ( * ) ) - + COUNT ( * ) ) WHEN ( ( + + 7 ) ) * + NULLIF ( - COUNT ( ALL + + 22 ), - CAST ( 67 AS REAL ) + 17 ) + - ( 1 ) * 19 THEN 74 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + + 58, 64 )
----
58

query II rowsort
SELECT DISTINCT 33 * - 20, 1 AS col1
----
-660
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - 38 + + MAX( DISTINCT ( 60 ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5200
SELECT - 38 + + MAX ( DISTINCT ( 60 ) ) AS col2
----
22

query I rowsort
SELECT ALL 67 * - + 93 AS col2
----
-6231

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5202
SELECT ALL COUNT( * ) - + - 14 + - CAST( NULL AS DECIMAL ) / - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL COUNT ( * ) - + - 14 + - CAST ( NULL AS REAL ) / - 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT - CASE COUNT( - - 88 ) WHEN + 11 THEN 91 + + - 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT - CASE COUNT ( - - 88 ) WHEN + 11 THEN 91 + + - 1 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT + 8 * - AVG ( - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT + 8 * - AVG ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 96 * 65
----
-6240

query I rowsort
SELECT ALL 32 * - + 24
----
-768

query I rowsort
SELECT - 72 * 28
----
-2016

query I rowsort
SELECT + 78 * - 8 AS col2
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT + 42 * + ( COUNT( * ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5209
SELECT + 42 * + ( COUNT ( * ) ) AS col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5210
SELECT ALL MAX( + + 23 ) * - COALESCE ( 41, - - ( - 94 ) * - 78 * + 10 DIV - COUNT( * ) DIV - COALESCE ( - 40, - ( - 0 ), + - 35 + + MAX( - 33 ) ) + - 35, 23 ) AS col0
----
-943

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL MAX ( + + 23 ) * - COALESCE ( 41, - - ( - 94 ) * - 78 * + 10 / - COUNT ( * ) / - COALESCE ( - 40, - ( - 0 ), + - 35 + + MAX ( - 33 ) ) + - 35, 23 ) AS col0
----
-943

query I rowsort
SELECT + 60 - + 16 + 82 * + - 31 AS col1
----
-2498

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT DISTINCT 65 DIV - 20
----
-3

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT 65 / - 20
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5213
SELECT ( + 36 ) AS col1, 97 - - COUNT( * )
----
36
98

skipif mysql # not compatible
query II rowsort label-5213
SELECT ( + 36 ) AS col1, 97 - - COUNT ( * )
----
36
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT ALL 43 * + 57 + + COUNT( * ) - - + NULLIF ( 96, + 25 + + + 41 ) * ( - 18 )
----
724

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL 43 * + 57 + + COUNT ( * ) - - + NULLIF ( 96, + 25 + + + 41 ) * ( - 18 )
----
724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5215
SELECT + 13 + COUNT( * ) - - CAST( - - 70 AS SIGNED ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5215
SELECT + 13 + COUNT ( * ) - - CAST ( - - 70 AS INTEGER ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT ALL 52 * - MIN( + ( - 35 ) )
----
1820

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL 52 * - MIN ( + ( - 35 ) )
----
1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5217
SELECT - ( + CAST( - - 92 AS SIGNED ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5217
SELECT - ( + CAST ( - - 92 AS INTEGER ) ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT DISTINCT - ( + - 22 ) * + COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT - ( + - 22 ) * + COUNT ( * ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query III rowsort label-5219
SELECT ALL + + MAX( + 31 ), 86 + - ( + 54 ) AS col1, 54 * + 41 AS col1
----
31
32
2214

skipif mysql # not compatible
query III rowsort label-5219
SELECT ALL + + MAX ( + 31 ), 86 + - ( + 54 ) AS col1, 54 * + 41 AS col1
----
31
32
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT + - ( + 13 ) + + + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-5220
SELECT + - ( + 13 ) + + + COUNT ( * )
----
-12

query I rowsort
SELECT - ( 76 ) * - 19 * + 10 + - - 61 * + + 4 * + + 67
----
30788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT ALL 57 / CASE 33 WHEN 26 * - - 15 / - 91 + + CAST( 15 AS SIGNED ) * - 5 * - - 90 THEN - + 64 * + 32 ELSE NULL END + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL 57 / CASE 33 WHEN 26 * - - 15 / - 91 + + CAST ( 15 AS INTEGER ) * - 5 * - - 90 THEN - + 64 * + 32 ELSE NULL END + + 19
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5223
SELECT ALL - - ( - 55 ) DIV COUNT( * ) + - 43
----
-98

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL - - ( - 55 ) / COUNT ( * ) + - 43
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5224
SELECT + CASE + 0 WHEN + 39 THEN - 77 WHEN - - 12 THEN NULL END col1, + MIN( - 64 ) + 59 * 77 * + + COUNT( * ) + + 17 AS col2
----
NULL
4496

skipif mysql # not compatible
query II rowsort label-5224
SELECT + CASE + 0 WHEN + 39 THEN - 77 WHEN - - 12 THEN NULL END col1, + MIN ( - 64 ) + 59 * 77 * + + COUNT ( * ) + + 17 AS col2
----
NULL
4496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5225
SELECT + ( + + 87 ), - COALESCE ( MIN( + - 82 ), CASE - CAST( NULL AS SIGNED ) WHEN - 26 + ( + + 15 ) THEN NULL ELSE + COUNT( * ) END, - 23 + + 7 ) + + 32 AS col1
----
87
114

skipif mysql # not compatible
query II rowsort label-5225
SELECT + ( + + 87 ), - COALESCE ( MIN ( + - 82 ), CASE - CAST ( NULL AS INTEGER ) WHEN - 26 + ( + + 15 ) THEN NULL ELSE + COUNT ( * ) END, - 23 + + 7 ) + + 32 AS col1
----
87
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT + + ( + COUNT( * ) ) * + 77 * COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5226
SELECT + + ( + COUNT ( * ) ) * + 77 * COUNT ( * ) AS col2
----
77

query I rowsort
SELECT DISTINCT - 72 * + - 97
----
6984

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL 86 * - + COUNT( * ) * + + 14 - 67 * - 82 * 36 AS col0
----
196580

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL 86 * - + COUNT ( * ) * + + 14 - 67 * - 82 * 36 AS col0
----
196580

query I rowsort
SELECT DISTINCT + CASE - + 91 WHEN - COALESCE ( 6, - + 92 ) THEN NULL ELSE 77 * - 57 * - 18 END AS col0
----
79002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5230
SELECT ALL - 0 - + COALESCE ( + - 63, + 68 + + - COUNT( * ) + 65 ) + - 77 + + + 2 DIV 90 DIV - + COUNT( * ) + + + 4
----
-10

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL - 0 - + COALESCE ( + - 63, + 68 + + - COUNT ( * ) + 65 ) + - 77 + + + 2 / 90 / - + COUNT ( * ) + + + 4
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5231
SELECT ALL + COUNT( * ) DIV COUNT( - 68 )
----
1

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL + COUNT ( * ) / COUNT ( - 68 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5232
SELECT COUNT( * ) DIV + + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5232
SELECT COUNT ( * ) / + + 86 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5233
SELECT 94 + 12 DIV + - SUM( DISTINCT - 64 )
----
94

skipif mysql # not compatible
query I rowsort label-5233
SELECT 94 + 12 / + - SUM ( DISTINCT - 64 )
----
94

query II rowsort
SELECT DISTINCT 75, - 5 + + 2 AS col0
----
75
-3

query I rowsort
SELECT 4 + - 0 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL COUNT( * ) * 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL COUNT ( * ) * 32 AS col1
----
32

query I rowsort
SELECT ALL - 65 * 0
----
0

query I rowsort
SELECT ALL + 93 + - 19
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5239
SELECT 41 DIV - COALESCE ( 71, - 64 * + + CASE - 92 WHEN + 35 THEN NULL WHEN 89 THEN MIN( ALL 52 ) ELSE + 32 + + CAST( + NULLIF ( - - COUNT( * ), - + 25 + - 54 + + + 58 * + 36 * + 64 * - + 31 ) AS SIGNED ) END, + NULLIF ( 29, + 61 ), 87 + - 24 )
----
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT 41 / - COALESCE ( 71, - 64 * + + CASE - 92 WHEN + 35 THEN NULL WHEN 89 THEN MIN ( ALL 52 ) ELSE + 32 + + CAST ( + NULLIF ( - - COUNT ( * ), - + 25 + - 54 + + + 58 * + 36 * + 64 * - + 31 ) AS INTEGER ) END, + NULLIF ( 29, + 61 ), 87 + - 24 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5240
SELECT + MIN( 58 ) + + 38, 95 AS col0
----
96
95

skipif mysql # not compatible
query II rowsort label-5240
SELECT + MIN ( 58 ) + + 38, 95 AS col0
----
96
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT COUNT( + 21 ) + + COUNT( - - 65 ) - 50 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT COUNT ( + 21 ) + + COUNT ( - - 65 ) - 50 AS col2
----
-48

query II rowsort
SELECT DISTINCT 93 AS col2, + 46 + - 99 AS col2
----
93
-53

query I rowsort
SELECT ALL CASE - 98 WHEN - 4 * + 58 + 76 + - 50 THEN 66 WHEN + 4 THEN NULL END + - - 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5244
SELECT ALL CASE - CAST( CASE - COUNT( * ) WHEN + - 60 THEN - 46 WHEN + 89 THEN - 39 WHEN COUNT( 48 ) / - + 73 * - 24 - + CASE - ( - - 88 ) WHEN 26 + + 46 THEN 73 ELSE - 0 END + - COUNT( * ) THEN NULL END AS SIGNED ) WHEN 97 THEN + 68 WHEN - + 49 + 70 THEN 42 ELSE + 29 END + 68 * - 52
----
-3507

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL CASE - CAST ( CASE - COUNT ( * ) WHEN + - 60 THEN - 46 WHEN + 89 THEN - 39 WHEN COUNT ( 48 ) / - + 73 * - 24 - + CASE - ( - - 88 ) WHEN 26 + + 46 THEN 73 ELSE - 0 END + - COUNT ( * ) THEN NULL END AS INTEGER ) WHEN 97 THEN + 68 WHEN - + 49 + 70 THEN 42 ELSE + 29 END + 68 * - 52
----
-3507

onlyif mysql # aggregate syntax: 
query II rowsort label-5245
SELECT DISTINCT - NULLIF ( - + COUNT( * ), 1 ) AS col2, + 48 AS col2
----
1
48

skipif mysql # not compatible
query II rowsort label-5245
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), 1 ) AS col2, + 48 AS col2
----
1
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5246
SELECT + CAST( 53 AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5246
SELECT + CAST ( 53 AS INTEGER ) AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT 66 - - CAST( + + 80 AS SIGNED ) AS col0
----
146

skipif mysql # not compatible
query I rowsort label-5247
SELECT 66 - - CAST ( + + 80 AS INTEGER ) AS col0
----
146

query I rowsort
SELECT - 19 * - + 10
----
190

query I rowsort
SELECT ALL + ( 91 ) * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5250
SELECT + 63 * - SUM( + 37 ) AS col2, ( + - 51 ) col1
----
-2331
-51

skipif mysql # not compatible
query II rowsort label-5250
SELECT + 63 * - SUM ( + 37 ) AS col2, ( + - 51 ) col1
----
-2331
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5251
SELECT ALL COALESCE ( 19, - + 63 ) - + + CASE 54 WHEN 7 THEN NULL WHEN - 30 * + ( - 90 ) * + 47 THEN + 39 END, CASE + 56 WHEN 6 THEN - COUNT( * ) ELSE + COALESCE ( - 11, - 7, + - 68 * + 87 + 8 - - NULLIF ( + COUNT( * ), MAX( 84 ) ) ) DIV - 39 END AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5251
SELECT ALL COALESCE ( 19, - + 63 ) - + + CASE 54 WHEN 7 THEN NULL WHEN - 30 * + ( - 90 ) * + 47 THEN + 39 END, CASE + 56 WHEN 6 THEN - COUNT ( * ) ELSE + COALESCE ( - 11, - 7, + - 68 * + 87 + 8 - - NULLIF ( + COUNT ( * ), MAX ( 84 ) ) ) / - 39 END AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5252
SELECT + 12, COUNT( * ) + + - 75 + - + 23 + + 33 * - - 45 col0
----
12
1388

skipif mysql # not compatible
query II rowsort label-5252
SELECT + 12, COUNT ( * ) + + - 75 + - + 23 + + 33 * - - 45 col0
----
12
1388

query II rowsort
SELECT DISTINCT - + 11 AS col2, - 69 + 97 - - 70 AS col0
----
-11
98

query I rowsort
SELECT DISTINCT + 49 * + 65
----
3185

query II rowsort
SELECT + 79, 23 col1
----
79
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT ALL - 68 - - + COUNT( * ) AS col0, + 33 col2
----
-67
33

skipif mysql # not compatible
query II rowsort label-5256
SELECT ALL - 68 - - + COUNT ( * ) AS col0, + 33 col2
----
-67
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT ALL - MIN( DISTINCT + - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL - MIN ( DISTINCT + - 75 )
----
75

query I rowsort
SELECT 62 + - 54
----
8

query I rowsort
SELECT 14 * 99 AS col1
----
1386

query II rowsort
SELECT DISTINCT + 51 * 31 col0, 42 * 59
----
1581
2478

query I rowsort
SELECT ALL + 42 * - + 65 AS col1
----
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ( - 33 ) + - + COALESCE ( MIN( + 94 ), + 32 - + ( + + 67 ) * + 99 )
----
-127

skipif mysql # not compatible
query I rowsort label-5262
SELECT ( - 33 ) + - + COALESCE ( MIN ( + 94 ), + 32 - + ( + + 67 ) * + 99 )
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5263
SELECT ALL 55 DIV - + COALESCE ( + 78, - ( + - 4 ) * - NULLIF ( - COUNT( * ), 92 + - 93 - - - NULLIF ( + 16, COUNT( * ) ) + + 85 * - 74 ) * - 78 * 72 * - ( + COALESCE ( + SUM( ALL - - 5 ), MIN( DISTINCT + + 90 ) DIV - 87, - 5 DIV + 50 ) ) + MAX( ALL 67 ) * 91 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL 55 / - + COALESCE ( + 78, - ( + - 4 ) * - NULLIF ( - COUNT ( * ), 92 + - 93 - - - NULLIF ( + 16, COUNT ( * ) ) + + 85 * - 74 ) * - 78 * 72 * - ( + COALESCE ( + SUM ( ALL - - 5 ), MIN ( DISTINCT + + 90 ) / - 87, - 5 / + 50 ) ) + MAX ( ALL 67 ) * 91 ) AS col0
----
0

query I rowsort
SELECT 7 + + 85
----
92

query I rowsort
SELECT 29 * 84
----
2436

query I rowsort
SELECT 32 - - 46
----
78

query I rowsort
SELECT ALL - 61 + - ( - 53 ) * 14
----
681

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5268
SELECT COUNT( * ) DIV - - 79 * - 79 * - + ( + 44 ) * 38 + COUNT( * ) + 85 + + 75 - + + 28 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-5268
SELECT COUNT ( * ) / - - 79 * - 79 * - + ( + 44 ) * 38 + COUNT ( * ) + 85 + + 75 - + + 28 AS col0
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT DISTINCT + 57 DIV 20 * + + 73
----
146

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + 57 / 20 * + + 73
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT ALL 87 + 45 * - - 71 * - + COUNT( * ) * + MIN( ALL 75 ) col2
----
-239538

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL 87 + 45 * - - 71 * - + COUNT ( * ) * + MIN ( ALL 75 ) col2
----
-239538

query II rowsort
SELECT DISTINCT + 65 + 58 AS col2, - 42 * + 12
----
123
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5272
SELECT ALL - 7 + + COALESCE ( + 57, 4 + - - NULLIF ( - COUNT( * ), - 90 * - COALESCE ( + - 72, - 7, + 74 * + CAST( NULL AS SIGNED ) / + 18 ) * - 38 * - + COUNT( * ) + 52 + - 31 * - - ( - - 11 ) ) )
----
50

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL - 7 + + COALESCE ( + 57, 4 + - - NULLIF ( - COUNT ( * ), - 90 * - COALESCE ( + - 72, - 7, + 74 * + CAST ( NULL AS INTEGER ) / + 18 ) * - 38 * - + COUNT ( * ) + 52 + - 31 * - - ( - - 11 ) ) )
----
50

query I rowsort
SELECT + 53 - + 53 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5274
SELECT COUNT( * ) + - - COUNT( * ) - + COUNT( * ) * - - 5 AS col2, 38 - - NULLIF ( + + COUNT( * ), + + 92 ) + COUNT( ALL + + 60 ) AS col1
----
-3
40

skipif mysql # not compatible
query II rowsort label-5274
SELECT COUNT ( * ) + - - COUNT ( * ) - + COUNT ( * ) * - - 5 AS col2, 38 - - NULLIF ( + + COUNT ( * ), + + 92 ) + COUNT ( ALL + + 60 ) AS col1
----
-3
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5275
SELECT + MIN( DISTINCT - - 46 ) - 3 * + 94 AS col2, 92 AS col2
----
-236
92

skipif mysql # not compatible
query II rowsort label-5275
SELECT + MIN ( DISTINCT - - 46 ) - 3 * + 94 AS col2, 92 AS col2
----
-236
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ALL - + 73 + + - 1 + - 45 * - + 90 * + 20 * + + SUM( ALL 43 ) AS col1
----
3482926

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL - + 73 + + - 1 + - 45 * - + 90 * + 20 * + + SUM ( ALL 43 ) AS col1
----
3482926

query I rowsort
SELECT + 11 + 5
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5278
SELECT ALL + 72 - - 44 DIV COUNT( * ) + + + 24 + - + 57 * - + 99 AS col1
----
5783

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL + 72 - - 44 / COUNT ( * ) + + + 24 + - + 57 * - + 99 AS col1
----
5783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5279
SELECT + - 18 / 53 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5279
SELECT + - 18 / 53 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 60 + NULLIF ( - 98, 39 * 92 - - 44 ) AS col2
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL 97 * - - 10 + - COUNT( * ) - 9 + + - 94
----
866

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL 97 * - - 10 + - COUNT ( * ) - 9 + + - 94
----
866

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5282
SELECT DISTINCT 4 DIV - + COUNT( ALL - ( 56 ) ) + 44
----
40

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT 4 / - + COUNT ( ALL - ( 56 ) ) + 44
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT + + 3 * 0 * - - MIN( + + 35 ) * COUNT( * ) + 29
----
29

skipif mysql # not compatible
query I rowsort label-5283
SELECT + + 3 * 0 * - - MIN ( + + 35 ) * COUNT ( * ) + 29
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT + + 50 DIV + 1 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-5284
SELECT + + 50 / + 1 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT DISTINCT + 39 * - 50 * 94 + - COUNT( * ) * + - 92
----
-183208

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT + 39 * - 50 * 94 + - COUNT ( * ) * + - 92
----
-183208

query I rowsort
SELECT - 80 * 28 AS col1
----
-2240

query I rowsort
SELECT ALL 91 * - 4 col1
----
-364

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT - 97 DIV ( 67 ) * + 38
----
-38

skipif mysql # not compatible
query I rowsort label-5288
SELECT - 97 / ( 67 ) * + 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT + COUNT( ALL 9 )
----
1

skipif mysql # not compatible
query I rowsort label-5289
SELECT + COUNT ( ALL 9 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT SUM( DISTINCT + 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-5290
SELECT SUM ( DISTINCT + 63 ) AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5291
SELECT + COUNT( * ) AS col0, + CAST( 98 AS SIGNED ) DIV - + 33 AS col0
----
1
-2

skipif mysql # not compatible
query II rowsort label-5291
SELECT + COUNT ( * ) AS col0, + CAST ( 98 AS INTEGER ) / - + 33 AS col0
----
1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5292
SELECT + 43 * CASE + CASE 87 WHEN + 89 * ( + SUM( DISTINCT 75 ) ) / 61 + - 56 + + NULLIF ( + + 42, + - 20 ) * COUNT( ALL - 65 ) * + + ( 10 ) * 5 * - 99 - - CAST( - COUNT( * ) AS SIGNED ) * + ( + 21 ) THEN 33 * - 1 END WHEN CAST( NULL AS DECIMAL ) THEN 52 - COUNT( * ) END * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5292
SELECT + 43 * CASE + CASE 87 WHEN + 89 * ( + SUM ( DISTINCT 75 ) ) / 61 + - 56 + + NULLIF ( + + 42, + - 20 ) * COUNT ( ALL - 65 ) * + + ( 10 ) * 5 * - 99 - - CAST ( - COUNT ( * ) AS INTEGER ) * + ( + 21 ) THEN 33 * - 1 END WHEN CAST ( NULL AS REAL ) THEN 52 - COUNT ( * ) END * 17
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5293
SELECT ALL COUNT( * ) + - - 47 * + 78 AS col1, 85 col2
----
3667
85

skipif mysql # not compatible
query II rowsort label-5293
SELECT ALL COUNT ( * ) + - - 47 * + 78 AS col1, 85 col2
----
3667
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT DISTINCT + SUM( - - 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT + SUM ( - - 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL SUM( - - 59 ) + - 81
----
-22

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL SUM ( - - 59 ) + - 81
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5296
SELECT - CASE - 95 WHEN - 13 / 25 * 67 / + + MIN( DISTINCT - 43 ) * + 4 + + - 42 + + CAST( NULL AS SIGNED ) + - 32 * 91 / - 94 - - - COUNT( * ) THEN NULL WHEN + + 2 THEN 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT - CASE - 95 WHEN - 13 / 25 * 67 / + + MIN ( DISTINCT - 43 ) * + 4 + + - 42 + + CAST ( NULL AS INTEGER ) + - 32 * 91 / - 94 - - - COUNT ( * ) THEN NULL WHEN + + 2 THEN 46 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT DISTINCT 80 DIV 32 + - 46
----
-44

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT 80 / 32 + - 46
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5298
SELECT ALL + NULLIF ( + - CAST( + 57 AS SIGNED ), - + 89 * - - 95 + COUNT( * ) + - - COALESCE ( - 75, - CAST( NULL AS SIGNED ) + + 40, - 30 ) ) + - 22
----
-79

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL + NULLIF ( + - CAST ( + 57 AS INTEGER ), - + 89 * - - 95 + COUNT ( * ) + - - COALESCE ( - 75, - CAST ( NULL AS INTEGER ) + + 40, - 30 ) ) + - 22
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL - 78 * - - COUNT( + 95 ) * 81
----
-6318

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL - 78 * - - COUNT ( + 95 ) * 81
----
-6318

query II rowsort
SELECT DISTINCT - 19 AS col0, - 30
----
-19
-30

query I rowsort
SELECT DISTINCT 3 + - ( + 49 ) AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5302
SELECT - 6 col1, CASE 34 WHEN - CASE - COUNT( * ) WHEN - + 43 / + 99 THEN NULL WHEN - - 75 + + 48 + + 33 + - 11 THEN 87 WHEN + 83 THEN NULL ELSE NULL END THEN - - MAX( - 49 ) WHEN + - 95 + - CAST( NULL AS SIGNED ) THEN NULL WHEN + 63 + + - ( - 34 ) * + - 82 + - + 29 + ( + 53 ) THEN NULL END AS col2
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-5302
SELECT - 6 col1, CASE 34 WHEN - CASE - COUNT ( * ) WHEN - + 43 / + 99 THEN NULL WHEN - - 75 + + 48 + + 33 + - 11 THEN 87 WHEN + 83 THEN NULL ELSE NULL END THEN - - MAX ( - 49 ) WHEN + - 95 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 63 + + - ( - 34 ) * + - 82 + - + 29 + ( + 53 ) THEN NULL END AS col2
----
-6
NULL

query I rowsort
SELECT - 51 + - 18 + + 90 * - 10
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL 21 - MIN( DISTINCT - - 53 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL 21 - MIN ( DISTINCT - - 53 ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL + MAX( - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + MAX ( - 49 )
----
-49

query II rowsort
SELECT - - 26 AS col1, - 65 * 35 + - 93 AS col2
----
26
-2368

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT NULLIF ( + + COUNT( * ), - + 55 * + - MAX( + + 54 ) + - 13 - + ( + - 85 ) * - + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-5307
SELECT NULLIF ( + + COUNT ( * ), - + 55 * + - MAX ( + + 54 ) + - 13 - + ( + - 85 ) * - + 3 )
----
1

query I rowsort
SELECT - 78 + + 49 + + - ( + - 1 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT + 18 * CASE - - ( - SUM( ALL - 15 ) ) WHEN - - 80 THEN - 1 * 33 ELSE NULL END + + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT + 18 * CASE - - ( - SUM ( ALL - 15 ) ) WHEN - - 80 THEN - 1 * 33 ELSE NULL END + + 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT - CASE - 42 WHEN 2 + - 82 THEN + 30 * + 7 WHEN + 85 THEN + + 68 ELSE 69 END * + - 97 / - CASE + 51 WHEN + 28 - + - 84 THEN 92 WHEN - ( - - MIN( ALL + ( + 2 ) ) ) THEN NULL ELSE NULL END / - 88 * 97 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT - CASE - 42 WHEN 2 + - 82 THEN + 30 * + 7 WHEN + 85 THEN + + 68 ELSE 69 END * + - 97 / - CASE + 51 WHEN + 28 - + - 84 THEN 92 WHEN - ( - - MIN ( ALL + ( + 2 ) ) ) THEN NULL ELSE NULL END / - 88 * 97 * + 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT ALL - 35 DIV - 2 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL - 35 / - 2 AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5312
SELECT - CASE + + 25 WHEN - CAST( 49 AS SIGNED ) * + 63 / 4 + + + 47 + + CAST( NULL AS SIGNED ) THEN 36 WHEN + + 19 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT - CASE + + 25 WHEN - CAST ( 49 AS INTEGER ) * + 63 / 4 + + + 47 + + CAST ( NULL AS INTEGER ) THEN 36 WHEN + + 19 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + ( - + 29 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT + SUM( 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5314
SELECT + SUM ( 30 ) AS col0
----
30

query I rowsort
SELECT - 20 * + 75
----
-1500

query II rowsort
SELECT + 48 col1, 11 + + 21 AS col1
----
48
32

query I rowsort
SELECT DISTINCT + NULLIF ( + 94, + 73 * 38 / + + 24 )
----
94

query II rowsort
SELECT ALL + 53 AS col2, - 6 * + 86
----
53
-516

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT - 74 - + COALESCE ( ( COALESCE ( - 45, - 59 ) ), - 3 + + 76 * - + ( COUNT( * ) ) )
----
-29

skipif mysql # not compatible
query I rowsort label-5319
SELECT - 74 - + COALESCE ( ( COALESCE ( - 45, - 59 ) ), - 3 + + 76 * - + ( COUNT ( * ) ) )
----
-29

query II rowsort
SELECT + NULLIF ( 47, + ( 70 ) ) col1, + 2 AS col0
----
47
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL - 37 * CASE 28 WHEN ( 47 ) THEN NULL ELSE - - 33 + - 94 * - ( + 39 ) + 46 + + + COUNT( * ) + + - COALESCE ( 94, + 2 ) END + - 83
----
-135207

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - 37 * CASE 28 WHEN ( 47 ) THEN NULL ELSE - - 33 + - 94 * - ( + 39 ) + 46 + + + COUNT ( * ) + + - COALESCE ( 94, + 2 ) END + - 83
----
-135207

query I rowsort
SELECT DISTINCT - 51 * 27
----
-1377

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5323
SELECT DISTINCT ( - MIN( ALL 88 ) ) * 19 + - - 70 + 19 + + CAST( NULL AS DECIMAL ) * 70 - - 58 / - + 12 + + 47 - - - 81 + - - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT ( - MIN ( ALL 88 ) ) * 19 + - - 70 + 19 + + CAST ( NULL AS REAL ) * 70 - - 58 / - + 12 + + 47 - - - 81 + - - 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT ALL 38 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL 38 / + 97
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5325
SELECT COALESCE ( - 14, + MAX( DISTINCT + + 79 ) ), 34 * + 99 AS col0
----
-14
3366

skipif mysql # not compatible
query II rowsort label-5325
SELECT COALESCE ( - 14, + MAX ( DISTINCT + + 79 ) ), 34 * + 99 AS col0
----
-14
3366

query I rowsort
SELECT + 96 - ( 79 ) AS col1
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5327
SELECT NULLIF ( - 89, + 30 + - CAST( NULL AS DECIMAL ) )
----
-89

skipif mysql # not compatible
query I rowsort label-5327
SELECT NULLIF ( - 89, + 30 + - CAST ( NULL AS REAL ) )
----
-89

query II rowsort
SELECT + ( + + 41 ) AS col2, 49 AS col1
----
41
49

query I rowsort
SELECT ALL + 27 * 85 + + 36 * 80 * + - 53
----
-150345

query I rowsort
SELECT ALL + 44 * - 77 + + - 91
----
-3479

onlyif mysql # DIV for integer division: 
query I rowsort label-5331
SELECT + 77 DIV + 16
----
4

skipif mysql # not compatible
query I rowsort label-5331
SELECT + 77 / + 16
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5332
SELECT ALL + COALESCE ( - 71, - - 78 * + 10 + - 36 + - 51 * 13, + 67 ) * - 57 + + + 85 - + 42 + + - 78 * + 27 * + CAST( NULL AS SIGNED ) * + ( + COUNT( * ) ) + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL + COALESCE ( - 71, - - 78 * + 10 + - 36 + - 51 * 13, + 67 ) * - 57 + + + 85 - + 42 + + - 78 * + 27 * + CAST ( NULL AS INTEGER ) * + ( + COUNT ( * ) ) + + 44
----
NULL

query I rowsort
SELECT DISTINCT + CASE - 16 WHEN - 48 + + + 56 THEN NULL ELSE + 42 + - 45 END
----
-3

query II rowsort
SELECT DISTINCT + 90 col2, 89 AS col2
----
90
89

query II rowsort
SELECT + 40 + 29, - 47 * 26 col0
----
69
-1222

query I rowsort
SELECT + 93 * - 29 AS col2
----
-2697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT ALL + NULLIF ( - - ( 48 ), CAST( NULL AS SIGNED ) + + 20 / + + 70 * - 95 + - 27 )
----
48

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL + NULLIF ( - - ( 48 ), CAST ( NULL AS INTEGER ) + + 20 / + + 70 * - 95 + - 27 )
----
48

query I rowsort
SELECT ALL - - 43 * - - 29 AS col2
----
1247

onlyif mysql # DIV for integer division: 
query I rowsort label-5339
SELECT + + 0 * - 86 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-5339
SELECT + + 0 * - 86 / + 94
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5340
SELECT 95 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-5340
SELECT 95 / + 50
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5341
SELECT ALL 69 AS col0, COUNT( * ) * + 58 * + COALESCE ( + 63, + 10 )
----
69
3654

skipif mysql # not compatible
query II rowsort label-5341
SELECT ALL 69 AS col0, COUNT ( * ) * + 58 * + COALESCE ( + 63, + 10 )
----
69
3654

query I rowsort
SELECT 41 - - 83
----
124

query II rowsort
SELECT 44 + - - 56 * 48 - + 32, - 78 AS col1
----
2700
-78

query I rowsort
SELECT - 65 - + 64 + + 0 AS col2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT ALL 35 * - COUNT( + 48 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL 35 * - COUNT ( + 48 ) AS col1
----
-35

query I rowsort
SELECT 90 + + - 24
----
66

query I rowsort
SELECT 64 * - 3
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT 79 * + COUNT( * ) * + 47
----
3713

skipif mysql # not compatible
query I rowsort label-5348
SELECT 79 * + COUNT ( * ) * + 47
----
3713

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT ALL - 79 + + + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL - 79 + + + COUNT ( * )
----
-78

query I rowsort
SELECT ALL + 83 + + 38
----
121

query I rowsort
SELECT 7 + + 99 + - 42 AS col0
----
64

query I rowsort
SELECT ALL 32 + - 27 AS col2
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5353
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT - CAST ( NULL AS REAL ) * - - 94 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5354
SELECT ALL - 10 + - - CAST( - - 76 AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL - 10 + - - CAST ( - - 76 AS INTEGER ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5355
SELECT - 31 * + 51 * + COUNT( + ( + CAST( NULL AS SIGNED ) ) ) + - 62
----
-62

skipif mysql # not compatible
query I rowsort label-5355
SELECT - 31 * + 51 * + COUNT ( + ( + CAST ( NULL AS INTEGER ) ) ) + - 62
----
-62

query I rowsort
SELECT 7 * + + 86 AS col2
----
602

query I rowsort
SELECT 42 + 86 * 63
----
5460

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5358
SELECT ALL - CAST( NULL AS DECIMAL ) * - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL - CAST ( NULL AS REAL ) * - 49
----
NULL

query I rowsort
SELECT DISTINCT - 20 * 61 AS col0
----
-1220

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT 32 * - CASE - - 29 WHEN - ( + 87 ) THEN NULL WHEN + + COUNT( * ) THEN - - 92 ELSE - 31 * - - COALESCE ( + 99, - 47 * + 97 * - - 15 ) * + 59 END
----
5794272

skipif mysql # not compatible
query I rowsort label-5360
SELECT 32 * - CASE - - 29 WHEN - ( + 87 ) THEN NULL WHEN + + COUNT ( * ) THEN - - 92 ELSE - 31 * - - COALESCE ( + 99, - 47 * + 97 * - - 15 ) * + 59 END
----
5794272

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL + 48 - + 40 + - - 1 + ( 69 ) + MAX( + 97 ) AS col0
----
175

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL + 48 - + 40 + - - 1 + ( 69 ) + MAX ( + 97 ) AS col0
----
175

onlyif mysql # DIV for integer division: 
query I rowsort label-5362
SELECT DISTINCT 83 DIV + 36 col2
----
2

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT 83 / + 36 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT ALL 0 - + - ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL 0 - + - ( + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT 61 + + - 41 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT CAST( ( 11 ) AS SIGNED ) col2
----
11

skipif mysql # not compatible
query I rowsort label-5365
SELECT CAST ( ( 11 ) AS INTEGER ) col2
----
11

query II rowsort
SELECT 10 * + 42 AS col1, + 61
----
420
61

query I rowsort
SELECT + 47 * + 78 AS col0
----
3666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5368
SELECT COALESCE ( 18, - 55 ) + + 52 / + 15 * - CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1, - 68 * 90 * + + 20 AS col1
----
NULL
-122400

skipif mysql # not compatible
query II rowsort label-5368
SELECT COALESCE ( 18, - 55 ) + + 52 / + 15 * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1, - 68 * 90 * + + 20 AS col1
----
NULL
-122400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT CASE + CAST( NULL AS SIGNED ) WHEN 45 THEN - + 91 END * + - 71 * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN 45 THEN - + 91 END * + - 71 * 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT DISTINCT + - COUNT( * ) * 62
----
-62

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT + - COUNT ( * ) * 62
----
-62

query I rowsort
SELECT DISTINCT 39 * + - 55 * - 78 + - 0 AS col1
----
167310

query I rowsort
SELECT ALL + + 87 * - + 78
----
-6786

query II rowsort
SELECT DISTINCT - + ( + 71 ) * - + 51 col0, 22 - - - 29
----
3621
-7

query I rowsort
SELECT 10 + + ( + - 9 ) + + 0 + + + 5
----
6

query I rowsort
SELECT DISTINCT - 32 * - 55 * 52
----
91520

query II rowsort
SELECT + 63 + + + 11 AS col1, + 6 AS col0
----
74
6

query I rowsort
SELECT ( + - 65 ) + + 51
----
-14

query I rowsort
SELECT ALL + NULLIF ( + + 91, - 75 ) + + + 7 AS col0
----
98

query I rowsort
SELECT DISTINCT - 50 + - 10
----
-60

query I rowsort
SELECT DISTINCT 94 + + - 16 * - 11 AS col1
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT DISTINCT COUNT( ALL + 23 ) + SUM( ALL - + 96 ) - + 1
----
-96

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT COUNT ( ALL + 23 ) + SUM ( ALL - + 96 ) - + 1
----
-96

query I rowsort
SELECT DISTINCT 91 * + 87 AS col0
----
7917

onlyif mysql # aggregate syntax: 
query II rowsort label-5383
SELECT ALL - SUM( DISTINCT + + 82 ) * + ( - - NULLIF ( + 45, - + 93 - + 16 ) ) + - - COUNT( * ) AS col0, 16 + - 68 + 84 * - + 9 + + 46 col0
----
-3689
-762

skipif mysql # not compatible
query II rowsort label-5383
SELECT ALL - SUM ( DISTINCT + + 82 ) * + ( - - NULLIF ( + 45, - + 93 - + 16 ) ) + - - COUNT ( * ) AS col0, 16 + - 68 + 84 * - + 9 + + 46 col0
----
-3689
-762

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL COUNT( * ) * - 92 col2
----
-92

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL COUNT ( * ) * - 92 col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5385
SELECT ALL + ( - + CASE - 15 WHEN + - COUNT( * ) THEN - COALESCE ( + AVG ( ALL ( - 57 ) ), - 4 * 69 * - 22 ) + 57 - - 96 + + 26 / + 97 END ) * 86 + 86 + CASE - 70 WHEN + - COALESCE ( - - 91, + COUNT( * ) * 8 * 10 - 78 ) THEN - 51 * + CAST( NULL AS SIGNED ) + - - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL + ( - + CASE - 15 WHEN + - COUNT ( * ) THEN - COALESCE ( + AVG ( ALL ( - 57 ) ), - 4 * 69 * - 22 ) + 57 - - 96 + + 26 / + 97 END ) * 86 + 86 + CASE - 70 WHEN + - COALESCE ( - - 91, + COUNT ( * ) * 8 * 10 - 78 ) THEN - 51 * + CAST ( NULL AS INTEGER ) + - - 98 END
----
NULL

query I rowsort
SELECT 48 * - - 35 AS col1
----
1680

query I rowsort
SELECT - 1 * - 95 - + - 24 AS col1
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5388
SELECT CAST( NULL AS SIGNED ) * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5388
SELECT CAST ( NULL AS INTEGER ) * 77
----
NULL

query I rowsort
SELECT DISTINCT + 34 * + 74 AS col1
----
2516

query I rowsort
SELECT ALL - 71 * - 59 AS col1
----
4189

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5391
SELECT + 87 AS col1, - COUNT( * ) DIV - 44
----
87
0

skipif mysql # not compatible
query II rowsort label-5391
SELECT + 87 AS col1, - COUNT ( * ) / - 44
----
87
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT ALL - CASE 8 WHEN - ( - 57 ) THEN NULL WHEN 8 + COUNT( * ) THEN + 38 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL - CASE 8 WHEN - ( - 57 ) THEN NULL WHEN 8 + COUNT ( * ) THEN + 38 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 96 AS col2, - 54
----
-96
-54

query I rowsort
SELECT 53 * + 39 + - 46 * - - 53 AS col0
----
-371

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5395
SELECT 67 - - CAST( 41 AS SIGNED ), 7 AS col2
----
108
7

skipif mysql # not compatible
query II rowsort label-5395
SELECT 67 - - CAST ( 41 AS INTEGER ), 7 AS col2
----
108
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5396
SELECT COUNT( * ) * - - ( 56 ) AS col2, MAX( - - 98 )
----
56
98

skipif mysql # not compatible
query II rowsort label-5396
SELECT COUNT ( * ) * - - ( 56 ) AS col2, MAX ( - - 98 )
----
56
98

query I rowsort
SELECT ALL - 88 * - 79 * - 51
----
-354552

query I rowsort
SELECT ALL + 55 * - - 99 + 78
----
5523

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT 24 + - - COUNT( * ) * - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-5399
SELECT 24 + - - COUNT ( * ) * - COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT - MIN( DISTINCT + - 77 ) col2
----
77

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT - MIN ( DISTINCT + - 77 ) col2
----
77

query I rowsort
SELECT ALL + + 34 * + 79
----
2686

query II rowsort
SELECT - 8, + 77 AS col0
----
-8
77

query I rowsort
SELECT ALL + 73 + - 1 + ( + - 26 ) * + - 73 AS col1
----
1970

query I rowsort
SELECT DISTINCT + NULLIF ( - + 38, + 28 - + 77 ) + - + 13 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT + + COUNT( * ) * - - 80
----
80

skipif mysql # not compatible
query I rowsort label-5405
SELECT + + COUNT ( * ) * - - 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT - 86 - + + 21 - + 10 + COUNT( * )
----
-116

skipif mysql # not compatible
query I rowsort label-5406
SELECT - 86 - + + 21 - + 10 + COUNT ( * )
----
-116

query I rowsort
SELECT + - 43 * + - 62 AS col2
----
2666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5408
SELECT ( - AVG ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT ( - AVG ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT ALL COUNT( ALL - 83 ) * + 99
----
99

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL COUNT ( ALL - 83 ) * + 99
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT - ( - CAST( - 70 AS SIGNED ) ) * - ( + 39 ) + + 71 + + + 94
----
2895

skipif mysql # not compatible
query I rowsort label-5411
SELECT - ( - CAST ( - 70 AS INTEGER ) ) * - ( + 39 ) + + 71 + + + 94
----
2895

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT - 37 * - MAX( DISTINCT + COALESCE ( + - 27, 5 * + + 98 + + 67 ) )
----
-999

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT - 37 * - MAX ( DISTINCT + COALESCE ( + - 27, 5 * + + 98 + + 67 ) )
----
-999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5413
SELECT + 21 - + CAST( NULL AS SIGNED ) + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT + 21 - + CAST ( NULL AS INTEGER ) + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT - MAX( DISTINCT ( 67 ) ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-5414
SELECT - MAX ( DISTINCT ( 67 ) ) col1
----
-67

query I rowsort
SELECT ALL 79 - - 92 AS col2
----
171

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5416
SELECT - 85 + + 93 AS col0, CAST( NULL AS DECIMAL ) + - 87
----
8
NULL

skipif mysql # not compatible
query II rowsort label-5416
SELECT - 85 + + 93 AS col0, CAST ( NULL AS REAL ) + - 87
----
8
NULL

query I rowsort
SELECT ( + 73 ) AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5418
SELECT - COUNT( * ) DIV 29 * 5 * + 38 + + COUNT( * ) + - + 11 * - COUNT( * ) * 1 * + ( + 57 ) * - - NULLIF ( 47, - - 96 )
----
29470

skipif mysql # not compatible
query I rowsort label-5418
SELECT - COUNT ( * ) / 29 * 5 * + 38 + + COUNT ( * ) + - + 11 * - COUNT ( * ) * 1 * + ( + 57 ) * - - NULLIF ( 47, - - 96 )
----
29470

query III rowsort
SELECT + 37 + - 95 + - 73 + 56 AS col1, 96 + + + 19 + NULLIF ( - 74, + 63 + + 93 ) * - - 54 * 45 AS col1, - 38 * - + 47
----
-75
-179705
1786

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT + COUNT( * ) * + 59 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5420
SELECT + COUNT ( * ) * + 59 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL ( 22 ) * + 3 + - ( - NULLIF ( MAX( ALL + - 19 ), - 13 * + MAX( ALL 39 ) ) ) + - COUNT( * ) + + + 89 - - 67 AS col1
----
202

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL ( 22 ) * + 3 + - ( - NULLIF ( MAX ( ALL + - 19 ), - 13 * + MAX ( ALL 39 ) ) ) + - COUNT ( * ) + + + 89 - - 67 AS col1
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT + ( - 3 ) * + 26 + 87 + COUNT( * ) + 38 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5422
SELECT + ( - 3 ) * + 26 + 87 + COUNT ( * ) + 38 AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5423
SELECT + ( + COALESCE ( + SUM( - + 53 ), - 77 + + COUNT( * ), + COUNT( * ) + - 31 / - + CAST( NULL AS SIGNED ) ) ) * + NULLIF ( - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) ) * + MAX( + - 50 ) AS col0, + CASE ( - CAST( NULL AS SIGNED ) ) WHEN 53 * - NULLIF ( + 69, + - 71 + + + ( 10 ) ) * - 78 + - 11 + + 80 THEN + 53 WHEN - COUNT( * ) + 44 - 67 THEN AVG ( - 27 ) - 41 WHEN ( 0 ) THEN 40 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5423
SELECT + ( + COALESCE ( + SUM ( - + 53 ), - 77 + + COUNT ( * ), + COUNT ( * ) + - 31 / - + CAST ( NULL AS INTEGER ) ) ) * + NULLIF ( - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) ) * + MAX ( + - 50 ) AS col0, + CASE ( - CAST ( NULL AS INTEGER ) ) WHEN 53 * - NULLIF ( + 69, + - 71 + + + ( 10 ) ) * - 78 + - 11 + + 80 THEN + 53 WHEN - COUNT ( * ) + 44 - 67 THEN AVG ( - 27 ) - 41 WHEN ( 0 ) THEN 40 END
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5424
SELECT - MAX( ALL CAST( NULL AS SIGNED ) ) + + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT - MAX ( ALL CAST ( NULL AS INTEGER ) ) + + - 14
----
NULL

query I rowsort
SELECT + 71 * - 6
----
-426

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT NULLIF ( - - 81, - COALESCE ( - COALESCE ( - 12, - + 82 - + COUNT( * ) ), - COUNT( * ) / + 55 ) / + 12 + ( + COUNT( * ) ) + + 86 )
----
81

skipif mysql # not compatible
query I rowsort label-5426
SELECT NULLIF ( - - 81, - COALESCE ( - COALESCE ( - 12, - + 82 - + COUNT ( * ) ), - COUNT ( * ) / + 55 ) / + 12 + ( + COUNT ( * ) ) + + 86 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT DISTINCT + + CASE + 65 WHEN - 12 THEN - + 77 + + 17 + + 45 * + 27 / - 80 + + COUNT( * ) * 49 / 6 WHEN 53 / - 87 + 19 + + + ( 46 ) / + 82 * - 30 - 95 - + + 19 + + - COUNT( * ) + - 35 + - 80 / + AVG ( ALL + 83 ) THEN 30 * - - 90 * + 30 + 37 + 23 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT + + CASE + 65 WHEN - 12 THEN - + 77 + + 17 + + 45 * + 27 / - 80 + + COUNT ( * ) * 49 / 6 WHEN 53 / - 87 + 19 + + + ( 46 ) / + 82 * - 30 - 95 - + + 19 + + - COUNT ( * ) + - 35 + - 80 / + AVG ( ALL + 83 ) THEN 30 * - - 90 * + 30 + 37 + 23 END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5428
SELECT ALL 99 DIV - - 80
----
1

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL 99 / - - 80
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT + NULLIF ( + COUNT( * ), + COUNT( * ) / - - 35 ) * MIN( - - 81 ) + - 87 + + 81 + - 13
----
62

skipif mysql # not compatible
query I rowsort label-5429
SELECT + NULLIF ( + COUNT ( * ), + COUNT ( * ) / - - 35 ) * MIN ( - - 81 ) + - 87 + + 81 + - 13
----
62

query I rowsort
SELECT ALL - 18 * 24 * + - 14 * + 54 + - + 24
----
326568

query I rowsort
SELECT + 49 * + 92 - 39 col2
----
4469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5432
SELECT + NULLIF ( 18, - + 90 + 67 ) * + AVG ( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT + NULLIF ( 18, - + 90 + 67 ) * + AVG ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT - 31 + 18
----
-13

query I rowsort
SELECT - - ( - - 0 ) + - 14
----
-14

query II rowsort
SELECT - + 86 + - 6, 46 col2
----
-92
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ALL + MAX( ALL + - 24 ) + - 21
----
-45

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL + MAX ( ALL + - 24 ) + - 21
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5437
SELECT - COALESCE ( + 51, 10 * SUM( 45 ) DIV - - 1 - - 55, - 62 ) * + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5437
SELECT - COALESCE ( + 51, 10 * SUM ( 45 ) / - - 1 - - 55, - 62 ) * + 0 AS col2
----
0

query I rowsort
SELECT - 80 * + 83 AS col1
----
-6640

query I rowsort
SELECT DISTINCT ( - 92 ) AS col0
----
-92

query I rowsort
SELECT ALL + 79 - + 83
----
-4

query I rowsort
SELECT - 9 * 49 * 35 AS col0
----
-15435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5442
SELECT - 73 + CAST( - 89 AS SIGNED )
----
-162

skipif mysql # not compatible
query I rowsort label-5442
SELECT - 73 + CAST ( - 89 AS INTEGER )
----
-162

query II rowsort
SELECT - 54, 34 AS col2
----
-54
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5444
SELECT - 61 DIV + ( - COUNT( * ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5444
SELECT - 61 / + ( - COUNT ( * ) ) AS col0
----
61

query I rowsort
SELECT ALL - ( - 86 ) * 22 AS col1
----
1892

query I rowsort
SELECT DISTINCT 90 * 69 * + 64 AS col1
----
397440

query I rowsort
SELECT DISTINCT - 61 * + 29 AS col2
----
-1769

query I rowsort
SELECT - 13 * + + 90 AS col0
----
-1170

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT - 31 DIV - - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5449
SELECT - 31 / - - 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL - COUNT( * ) * 5
----
-5

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL - COUNT ( * ) * 5
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5451
SELECT ALL + CAST( - + 21 AS DECIMAL ) * - 97 + - - 37 + MIN( - 27 ) + - 78 / CAST( NULL AS SIGNED ) * + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL + CAST ( - + 21 AS REAL ) * - 97 + - - 37 + MIN ( - 27 ) + - 78 / CAST ( NULL AS INTEGER ) * + - 58
----
NULL

query I rowsort
SELECT + 1 + 40 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT + MIN( ALL + - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-5453
SELECT + MIN ( ALL + - 27 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5454
SELECT + CAST( + 71 AS SIGNED ) * + - 75 AS col2, 1 AS col0
----
-5325
1

skipif mysql # not compatible
query II rowsort label-5454
SELECT + CAST ( + 71 AS INTEGER ) * + - 75 AS col2, 1 AS col0
----
-5325
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5455
SELECT - 47 - - CAST( + 13 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-5455
SELECT - 47 - - CAST ( + 13 AS INTEGER )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT + COUNT( DISTINCT - ( + + 61 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5456
SELECT + COUNT ( DISTINCT - ( + + 61 ) ) AS col0
----
1

query II rowsort
SELECT DISTINCT - - 31 AS col1, 91 col2
----
31
91

query I rowsort
SELECT DISTINCT 5 + + - 38 AS col0
----
-33

query II rowsort
SELECT + 71 AS col2, 54 + 75
----
71
129

onlyif mysql # aggregate syntax: 
query II rowsort label-5460
SELECT ALL 49 + + 66 + + - 56 * - SUM( DISTINCT + - 14 ) * - + 27, + 37 AS col0
----
21283
37

skipif mysql # not compatible
query II rowsort label-5460
SELECT ALL 49 + + 66 + + - 56 * - SUM ( DISTINCT + - 14 ) * - + 27, + 37 AS col0
----
21283
37

query I rowsort
SELECT ALL + 78 + - 86 + + - 71 + ( - 83 ) AS col2
----
-162

query I rowsort
SELECT + 23 + - 27 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT - 32 DIV + + 50 + 41 * 21 AS col0
----
861

skipif mysql # not compatible
query I rowsort label-5463
SELECT - 32 / + + 50 + 41 * 21 AS col0
----
861

query I rowsort
SELECT 62 * 92 + 83 AS col0
----
5787

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT + - MIN( DISTINCT - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-5465
SELECT + - MIN ( DISTINCT - 35 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5466
SELECT CAST( NULL AS SIGNED ), + 14 AS col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-5466
SELECT CAST ( NULL AS INTEGER ), + 14 AS col0
----
NULL
14

query I rowsort
SELECT ALL - + ( - 52 ) col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5468
SELECT ( + 34 ) DIV + + MAX( - 54 ) + + 32 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-5468
SELECT ( + 34 ) / + + MAX ( - 54 ) + + 32 / - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT DISTINCT COUNT( * ) + 87 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT COUNT ( * ) + 87 AS col0
----
88

query I rowsort
SELECT - COALESCE ( - + 48, - 73, - + 51 + 74 + - ( - - 97 ) * - 93 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT 13 + 25 + + + 51 + + - 77 * CASE NULLIF ( + - 19, - 7 ) WHEN + - 13 THEN 57 WHEN + COUNT( * ) * COUNT( * ) + - - 53 THEN - + 77 WHEN 19 THEN NULL ELSE - - COUNT( ALL + 96 ) + + 23 END * - - 43 * + + 88 * MIN( ALL - 48 ) + - + 50 - - 63
----
335656038

skipif mysql # not compatible
query I rowsort label-5471
SELECT 13 + 25 + + + 51 + + - 77 * CASE NULLIF ( + - 19, - 7 ) WHEN + - 13 THEN 57 WHEN + COUNT ( * ) * COUNT ( * ) + - - 53 THEN - + 77 WHEN 19 THEN NULL ELSE - - COUNT ( ALL + 96 ) + + 23 END * - - 43 * + + 88 * MIN ( ALL - 48 ) + - + 50 - - 63
----
335656038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5472
SELECT ALL - 69 - - + ( + COALESCE ( - 11, 80 - + 49 - - 92 + - COUNT( * ) DIV + 93 + 81 ) ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL - 69 - - + ( + COALESCE ( - 11, 80 - + 49 - - 92 + - COUNT ( * ) / + 93 + 81 ) ) AS col2
----
-80

query I rowsort
SELECT ALL ( 38 ) * - + 50 AS col1
----
-1900

onlyif mysql # aggregate syntax: 
query II rowsort label-5474
SELECT 15 AS col0, + ( - COUNT( ALL - 74 ) )
----
15
-1

skipif mysql # not compatible
query II rowsort label-5474
SELECT 15 AS col0, + ( - COUNT ( ALL - 74 ) )
----
15
-1

query II rowsort
SELECT - 49, 19 col0
----
-49
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT DISTINCT 8 * COUNT( * ) * + 81 AS col0
----
648

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT 8 * COUNT ( * ) * + 81 AS col0
----
648

query I rowsort
SELECT 32 + + 95
----
127

query I rowsort
SELECT ALL - 48 - + 53 AS col2
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT 61 * - - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT 61 * - - COUNT ( * )
----
61

query I rowsort
SELECT 51 * + + 18 AS col0
----
918

query I rowsort
SELECT 58 - 20 AS col0
----
38

query II rowsort
SELECT ( + 76 ) + - 74 - 14, + 92 * 99 col0
----
-12
9108

query II rowsort
SELECT ALL 74, - ( - - 11 ) AS col0
----
74
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5484
SELECT 2 AS col1, - COUNT( * )
----
2
-1

skipif mysql # not compatible
query II rowsort label-5484
SELECT 2 AS col1, - COUNT ( * )
----
2
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT 77 + + 12 * COUNT( * ) * + + 47 * + - 13 AS col2
----
-7255

skipif mysql # not compatible
query I rowsort label-5485
SELECT 77 + + 12 * COUNT ( * ) * + + 47 * + - 13 AS col2
----
-7255

query II rowsort
SELECT 47 + - + 73 * - 69 + - 96, + 95 + + - 87 AS col0
----
4988
8

query I rowsort
SELECT DISTINCT - 12 * + 46
----
-552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5488
SELECT ALL - CASE + NULLIF ( - 49, + + 99 * - - 51 ) WHEN + + 85 * + 62 * COUNT( * ) THEN + 3 ELSE + 30 + 70 END, CAST( 8 AS SIGNED ) DIV COALESCE ( + 33, + ( 15 ) ) + - + 11 + - - 38 col0
----
-100
27

skipif mysql # not compatible
query II rowsort label-5488
SELECT ALL - CASE + NULLIF ( - 49, + + 99 * - - 51 ) WHEN + + 85 * + 62 * COUNT ( * ) THEN + 3 ELSE + 30 + 70 END, CAST ( 8 AS INTEGER ) / COALESCE ( + 33, + ( 15 ) ) + - + 11 + - - 38 col0
----
-100
27

query I rowsort
SELECT DISTINCT - ( - ( - - 52 ) )
----
52

query I rowsort
SELECT DISTINCT - 13 + - 27 AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5491
SELECT ALL - 60 + - 27 - + - 97 + + 62 + + 89 * - - MIN( - 92 ) + + 33 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL - 60 + - 27 - + - 97 + + 62 + + 89 * - - MIN ( - 92 ) + + 33 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + + ( + 83 ) * + COUNT( * ) + - 17 + - 75 - - - 72 * - 56 * 63 * - 43 + - MIN( ALL 40 ) * - 17 AS col0
----
-10922017

skipif mysql # not compatible
query I rowsort label-5492
SELECT + + ( + 83 ) * + COUNT ( * ) + - 17 + - 75 - - - 72 * - 56 * 63 * - 43 + - MIN ( ALL 40 ) * - 17 AS col0
----
-10922017

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5493
SELECT + - COUNT( * ) DIV - 85 + 31 DIV - 79 * - 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5493
SELECT + - COUNT ( * ) / - 85 + 31 / - 79 * - 38 AS col2
----
0

query I rowsort
SELECT + NULLIF ( + 75, 36 * - 38 * 14 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT + + CASE + AVG ( - 44 ) WHEN ( - 50 ) THEN - - 38 + - - 43 + + - 21 / + - 64 ELSE + - 12 * + 1 + + ( + 11 ) * - COUNT( * ) + 80 END
----
57

skipif mysql # not compatible
query I rowsort label-5495
SELECT + + CASE + AVG ( - 44 ) WHEN ( - 50 ) THEN - - 38 + - - 43 + + - 21 / + - 64 ELSE + - 12 * + 1 + + ( + 11 ) * - COUNT ( * ) + 80 END
----
57

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 III rowsort label-5497
SELECT + 0 AS col2, + 2 * + + ( + 7 ) AS col0, - + MAX( + 70 )
----
0
14
-70

skipif mysql # not compatible
query III rowsort label-5497
SELECT + 0 AS col2, + 2 * + + ( + 7 ) AS col0, - + MAX ( + 70 )
----
0
14
-70

query II rowsort
SELECT ALL - + 83, 12 AS col2
----
-83
12

query I rowsort
SELECT 10 + 25
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT + AVG ( ALL 10 ) * + 3 + - CAST( NULL AS SIGNED ) + + 43 + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT + AVG ( ALL 10 ) * + 3 + - CAST ( NULL AS INTEGER ) + + 43 + 97 AS col1
----
NULL

query I rowsort
SELECT ALL 24 * + 39 * - - ( - 92 ) + - + 46 AS col2
----
-86158

query II rowsort
SELECT + 6, 2 * + ( 74 ) AS col1
----
6
148

query I rowsort
SELECT 79 + - + 41 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT DISTINCT - 72 - NULLIF ( COUNT( * ), 59 - - + 68 ) col1
----
-73

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT - 72 - NULLIF ( COUNT ( * ), 59 - - + 68 ) col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT + + MIN( 31 )
----
31

skipif mysql # not compatible
query I rowsort label-5505
SELECT + + MIN ( 31 )
----
31

query I rowsort
SELECT + 16 + 49
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5507
SELECT - COUNT( * ) DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT - COUNT ( * ) / + 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT ALL + COUNT( * ) * - COALESCE ( 97, NULLIF ( + 35, 72 ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL + COUNT ( * ) * - COALESCE ( 97, NULLIF ( + 35, 72 ) ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT ALL COUNT( * ) * + 6 * - 62 * 29 * - 23 * 29 AS col1
----
7195596

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL COUNT ( * ) * + 6 * - 62 * 29 * - 23 * 29 AS col1
----
7195596

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT COUNT( * ) * + ( + - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-5510
SELECT COUNT ( * ) * + ( + - 73 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5511
SELECT ALL 50 DIV + NULLIF ( + 65, + + 59 + NULLIF ( CAST( NULL AS SIGNED ), - 28 ) DIV - 83 )
----
0

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL 50 / + NULLIF ( + 65, + + 59 + NULLIF ( CAST ( NULL AS INTEGER ), - 28 ) / - 83 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5512
SELECT 48 + - CAST( + ( - 32 ) AS SIGNED ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5512
SELECT 48 + - CAST ( + ( - 32 ) AS INTEGER ) AS col0
----
80

query I rowsort
SELECT CASE WHEN NULL IS NULL THEN NULL ELSE - 5 END / - 68 * + 18
----
NULL

query I rowsort
SELECT ( - - 62 ) + + 99 AS col1
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-5515
SELECT ALL ( + 86 ) DIV + ( 8 )
----
10

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL ( + 86 ) / + ( 8 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT 32 * - COUNT( * ) * - 24 AS col0
----
768

skipif mysql # not compatible
query I rowsort label-5516
SELECT 32 * - COUNT ( * ) * - 24 AS col0
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT DISTINCT 7 + + MIN( CASE - ( - + 77 ) WHEN - 2 THEN NULL ELSE 99 END ) col1
----
106

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT 7 + + MIN ( CASE - ( - + 77 ) WHEN - 2 THEN NULL ELSE 99 END ) col1
----
106

query I rowsort
SELECT 86 * + 81
----
6966

query I rowsort
SELECT ALL - 26 + - - CASE WHEN ( 29 ) NOT BETWEEN NULL AND AVG ( 17 ) THEN NULL WHEN - 16 IS NOT NULL THEN - 13 * + + 69 END * - ( - + 68 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 72 + - - 52
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT ALL MAX( - ( 93 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL MAX ( - ( 93 ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL - - 37 * SUM( DISTINCT + 50 ) + + + 92 AS col2
----
1942

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL - - 37 * SUM ( DISTINCT + 50 ) + + + 92 AS col2
----
1942

query I rowsort
SELECT ALL + 35 * + 15 AS col1
----
525

query I rowsort
SELECT - - 24 * + 73
----
1752

query I rowsort
SELECT - 62 * + 53 * + 55 + 31 AS col0
----
-180699

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT - + ( - 84 ) - COUNT( ALL - + 34 ) * + 13 + COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5526
SELECT - + ( - 84 ) - COUNT ( ALL - + 34 ) * + 13 + COUNT ( * ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL - 43 * + ( 86 ) * - 81 + COUNT( * ) + + - 16
----
299523

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL - 43 * + ( 86 ) * - 81 + COUNT ( * ) + + - 16
----
299523

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT - - 74 - - - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-5528
SELECT - - 74 - - - COUNT ( * )
----
73

query I rowsort
SELECT + 27 * + + 1
----
27

query I rowsort
SELECT ALL + ( - 37 ) col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT DISTINCT + COUNT( DISTINCT 75 )
----
1

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT + COUNT ( DISTINCT 75 )
----
1

query I rowsort
SELECT ALL 9 * NULLIF ( + - 87, - 55 )
----
-783

query I rowsort
SELECT - 14 * - - 61 AS col0
----
-854

onlyif mysql # aggregate syntax: 
query II rowsort label-5534
SELECT ALL ( - COUNT( + + 6 ) ) AS col2, 50 col2
----
-1
50

skipif mysql # not compatible
query II rowsort label-5534
SELECT ALL ( - COUNT ( + + 6 ) ) AS col2, 50 col2
----
-1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT DISTINCT 44 * 11 * - - 3 * - + COUNT( * )
----
-1452

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT 44 * 11 * - - 3 * - + COUNT ( * )
----
-1452

query I rowsort
SELECT - 2 + 29 * - 52 AS col1
----
-1510

query I rowsort
SELECT - COALESCE ( - 19, + ( + 37 ) )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5538
SELECT - 78 + + 39 + + 12 - + - COUNT( * ) * + 47 DIV - 78
----
-27

skipif mysql # not compatible
query I rowsort label-5538
SELECT - 78 + + 39 + + 12 - + - COUNT ( * ) * + 47 / - 78
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT DISTINCT 8 + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT 8 + COUNT ( * ) AS col0
----
9

query I rowsort
SELECT ALL 66 + + 22
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5541
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + 3 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5542
SELECT ALL 7 + - + COUNT( * ) * + COUNT( * ), 58 * ( - + 58 ) * - 50 + - 60 + + 20 * 76 DIV + COUNT( * ) AS col0
----
6
169660

skipif mysql # not compatible
query II rowsort label-5542
SELECT ALL 7 + - + COUNT ( * ) * + COUNT ( * ), 58 * ( - + 58 ) * - 50 + - 60 + + 20 * 76 / + COUNT ( * ) AS col0
----
6
169660

query I rowsort
SELECT DISTINCT 65 + - 31
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT - COALESCE ( - - SUM( DISTINCT + 99 ), 77, + 73 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-5544
SELECT - COALESCE ( - - SUM ( DISTINCT + 99 ), 77, + 73 ) AS col0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5545
SELECT + ( + + 94 ) + - + 98 AS col1, + 59 + ( + 69 ) DIV - + COUNT( * )
----
-4
-10

skipif mysql # not compatible
query II rowsort label-5545
SELECT + ( + + 94 ) + - + 98 AS col1, + 59 + ( + 69 ) / - + COUNT ( * )
----
-4
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT - ( + + CASE - + ( + 47 ) WHEN COUNT( * ) THEN NULL WHEN - - 72 THEN 88 + 84 + - - 89 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT - ( + + CASE - + ( + 47 ) WHEN COUNT ( * ) THEN NULL WHEN - - 72 THEN 88 + 84 + - - 89 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5547
SELECT ALL 43 - - 93 + + + 69 DIV + - 71 * - COALESCE ( - 24, + 1, + + CAST( NULL AS SIGNED ) ) col2
----
136

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL 43 - - 93 + + + 69 / + - 71 * - COALESCE ( - 24, + 1, + + CAST ( NULL AS INTEGER ) ) col2
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5548
SELECT + 12 + - COUNT( * ) DIV - - ( + 96 ) - 14
----
-2

skipif mysql # not compatible
query I rowsort label-5548
SELECT + 12 + - COUNT ( * ) / - - ( + 96 ) - 14
----
-2

query II rowsort
SELECT 36, ( - 38 ) AS col1
----
36
-38

query I rowsort
SELECT + + ( 91 )
----
91

query I rowsort
SELECT + 39 + - - ( 70 ) - 86 * + 5
----
-321

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5552
SELECT + - 28 * + + COUNT( * ) * + - 57 DIV - COUNT( * ) AS col2, ( CASE - 48 WHEN 79 + - + 38 THEN NULL WHEN 58 * - 66 * + - 78 DIV 7 * MAX( DISTINCT + 57 ) DIV 26 * + COUNT( * ) THEN 42 * - - 77 END ) * - 72 AS col1
----
-1596
NULL

skipif mysql # not compatible
query II rowsort label-5552
SELECT + - 28 * + + COUNT ( * ) * + - 57 / - COUNT ( * ) AS col2, ( CASE - 48 WHEN 79 + - + 38 THEN NULL WHEN 58 * - 66 * + - 78 / 7 * MAX ( DISTINCT + 57 ) / 26 * + COUNT ( * ) THEN 42 * - - 77 END ) * - 72 AS col1
----
-1596
NULL

query I rowsort
SELECT DISTINCT 27 * + 14 + COALESCE ( - - 79, + + 80 ) * + ( + + 50 )
----
4328

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT 42 * + NULLIF ( - + 69, 92 * - - 31 * - COUNT( * ) ) + - 79
----
-2977

skipif mysql # not compatible
query I rowsort label-5554
SELECT 42 * + NULLIF ( - + 69, 92 * - - 31 * - COUNT ( * ) ) + - 79
----
-2977

onlyif mysql # DIV for integer division: 
query I rowsort label-5555
SELECT - ( + + 37 ) * + ( - 15 ) + - - 47 + ( + 35 ) DIV - 38 + + - 82 DIV 91
----
602

skipif mysql # not compatible
query I rowsort label-5555
SELECT - ( + + 37 ) * + ( - 15 ) + - - 47 + ( + 35 ) / - 38 + + - 82 / 91
----
602

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT ALL + + COALESCE ( + 81, - COUNT( * ) + 2 )
----
81

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL + + COALESCE ( + 81, - COUNT ( * ) + 2 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5557
SELECT ALL + - 68 AS col1, - COUNT( * )
----
-68
-1

skipif mysql # not compatible
query II rowsort label-5557
SELECT ALL + - 68 AS col1, - COUNT ( * )
----
-68
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT + 42 DIV + 74 * + 4 * - 7
----
0

skipif mysql # not compatible
query I rowsort label-5558
SELECT + 42 / + 74 * + 4 * - 7
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5559
SELECT - NULLIF ( - 19, + 98 ) DIV - + ( MIN( - 84 ) ) * 23 + - + COUNT( * ) AS col2, - 74
----
-1
-74

skipif mysql # not compatible
query II rowsort label-5559
SELECT - NULLIF ( - 19, + 98 ) / - + ( MIN ( - 84 ) ) * 23 + - + COUNT ( * ) AS col2, - 74
----
-1
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5560
SELECT - - 1 + + 7 DIV 49 col1
----
1

skipif mysql # not compatible
query I rowsort label-5560
SELECT - - 1 + + 7 / 49 col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT DISTINCT 30 DIV + + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT 30 / + + 67 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5562
SELECT - COUNT( * ) DIV + - MIN( + 21 ) * + - 98 + 59 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5562
SELECT - COUNT ( * ) / + - MIN ( + 21 ) * + - 98 + 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT ALL 96 * COUNT( * ) + + COUNT( * ) + 69 * 12
----
925

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL 96 * COUNT ( * ) + + COUNT ( * ) + 69 * 12
----
925

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT DISTINCT + COUNT( * ) * - 71 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT + COUNT ( * ) * - 71 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT - COUNT( * ) + - 19 col2
----
-20

skipif mysql # not compatible
query I rowsort label-5565
SELECT - COUNT ( * ) + - 19 col2
----
-20

query I rowsort
SELECT - 85 + - 72
----
-157

query I rowsort
SELECT COALESCE ( + + 72, - + 73 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT + COUNT( * ) * - ( + - COUNT( * ) ) + COUNT( * ) * + 65 * - + 1 col1
----
-64

skipif mysql # not compatible
query I rowsort label-5568
SELECT + COUNT ( * ) * - ( + - COUNT ( * ) ) + COUNT ( * ) * + 65 * - + 1 col1
----
-64

query I rowsort
SELECT ALL 40 * - 25 + + - 43 AS col2
----
-1043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5570
SELECT - COUNT( ALL CAST( 89 AS SIGNED ) ) + + 27 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-5570
SELECT - COUNT ( ALL CAST ( 89 AS INTEGER ) ) + + 27 AS col1
----
26

query I rowsort
SELECT 67 * + 6
----
402

query I rowsort
SELECT ALL + 26 + + 35 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT DISTINCT COUNT( + - 75 ) * + 63 + - 30 col0
----
33

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT COUNT ( + - 75 ) * + 63 + - 30 col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL 13 + - - ( - COUNT( ALL 15 ) )
----
12

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL 13 + - - ( - COUNT ( ALL 15 ) )
----
12

query I rowsort
SELECT DISTINCT + 82 * + 9
----
738

query I rowsort
SELECT + 66 * 52 AS col1
----
3432

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT - 33 * - ( + + SUM( ALL + - 13 ) ) * - 45
----
19305

skipif mysql # not compatible
query I rowsort label-5577
SELECT - 33 * - ( + + SUM ( ALL + - 13 ) ) * - 45
----
19305

query II rowsort
SELECT DISTINCT - 35 - - + 73 AS col2, + 66
----
38
66

query I rowsort
SELECT NULLIF ( 74, 36 ) AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5580
SELECT - 99 DIV + + CAST( + - ( - 34 ) AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5580
SELECT - 99 / + + CAST ( + - ( - 34 ) AS INTEGER ) AS col2
----
-2

query I rowsort
SELECT + ( - 25 ) * - 70
----
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + + NULLIF ( + + 30, COUNT( * ) / - 97 )
----
30

skipif mysql # not compatible
query I rowsort label-5582
SELECT + + NULLIF ( + + 30, COUNT ( * ) / - 97 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT + 49 * + MAX( 67 )
----
3283

skipif mysql # not compatible
query I rowsort label-5583
SELECT + 49 * + MAX ( 67 )
----
3283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5584
SELECT ALL CAST( - CAST( - 4 AS SIGNED ) AS SIGNED ) * CASE COUNT( * ) WHEN + 26 THEN NULL ELSE + CAST( - 35 AS SIGNED ) END AS col1
----
-140

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL CAST ( - CAST ( - 4 AS INTEGER ) AS INTEGER ) * CASE COUNT ( * ) WHEN + 26 THEN NULL ELSE + CAST ( - 35 AS INTEGER ) END AS col1
----
-140

query I rowsort
SELECT 61 - - 9 + + 7 col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT ALL 91 + - - 35 + - + COUNT( - 61 ) * + 77 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL 91 + - - 35 + - + COUNT ( - 61 ) * + 77 AS col0
----
49

query I rowsort
SELECT 48 * + 27 AS col2
----
1296

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT DISTINCT - 85 DIV + 8
----
-10

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT - 85 / + 8
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT DISTINCT 96 + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT 96 + + COUNT ( * )
----
97

query I rowsort
SELECT ALL - 67 * + 88
----
-5896

query I rowsort
SELECT DISTINCT + 13 + + ( 17 ) * - 11 + + 28
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL 90 + - + MAX( ( - 46 ) )
----
136

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL 90 + - + MAX ( ( - 46 ) )
----
136

query I rowsort
SELECT 86 * - 31 AS col2
----
-2666

query I rowsort
SELECT ALL - 68 * 59
----
-4012

query I rowsort
SELECT 57 + 27
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT 92 DIV + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5596
SELECT 92 / + 98 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5597
SELECT CAST( - CAST( 56 AS DECIMAL ) AS SIGNED ) + 45
----
-11

skipif mysql # not compatible
query I rowsort label-5597
SELECT CAST ( - CAST ( 56 AS REAL ) AS INTEGER ) + 45
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5598
SELECT 73 * + CAST( - MAX( DISTINCT 62 ) AS SIGNED ) AS col0
----
-4526

skipif mysql # not compatible
query I rowsort label-5598
SELECT 73 * + CAST ( - MAX ( DISTINCT 62 ) AS INTEGER ) AS col0
----
-4526

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT 82 + + 41 * + + COUNT( * ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-5599
SELECT 82 + + 41 * + + COUNT ( * ) AS col0
----
123

query I rowsort
SELECT 85 * + 13
----
1105

query I rowsort
SELECT ALL 24 * - 5
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-5602
SELECT ALL + - NULLIF ( + 17, + 17 * - 96 + 39 ) - COUNT( * ) + 16 + + - COUNT( * ) AS col2, + 78 * 83 * - 63 + + COUNT( * )
----
-3
-407861

skipif mysql # not compatible
query II rowsort label-5602
SELECT ALL + - NULLIF ( + 17, + 17 * - 96 + 39 ) - COUNT ( * ) + 16 + + - COUNT ( * ) AS col2, + 78 * 83 * - 63 + + COUNT ( * )
----
-3
-407861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5603
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * + 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * + 28 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5604
SELECT - 30 - - NULLIF ( - 66, 70 / MAX( DISTINCT + 98 ) + CAST( 32 AS SIGNED ) + + - 40 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5604
SELECT - 30 - - NULLIF ( - 66, 70 / MAX ( DISTINCT + 98 ) + CAST ( 32 AS INTEGER ) + + - 40 ) AS col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5605
SELECT 69 + + 31 + + + 33 * 21 + + - CAST( COUNT( * ) AS SIGNED ) AS col0
----
792

skipif mysql # not compatible
query I rowsort label-5605
SELECT 69 + + 31 + + + 33 * 21 + + - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
792

query I rowsort
SELECT - 58 + + + 38
----
-20

query I rowsort
SELECT + 67 * 31
----
2077

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5608
SELECT SUM( DISTINCT - 71 ) + CAST( COUNT( * ) AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5608
SELECT SUM ( DISTINCT - 71 ) + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-70

query I rowsort
SELECT ( + 58 ) + - 7 + + + 48
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT DISTINCT + + 87 * + + 72 * - COUNT( * ) + COUNT( * )
----
-6263

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT + + 87 * + + 72 * - COUNT ( * ) + COUNT ( * )
----
-6263

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5611
SELECT - 33 DIV - 82 + 93 + + - 99 - - + COUNT( * ), 49 AS col0
----
-5
49

skipif mysql # not compatible
query II rowsort label-5611
SELECT - 33 / - 82 + 93 + + - 99 - - + COUNT ( * ), 49 AS col0
----
-5
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT CAST( NULL AS SIGNED ) + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT CAST ( NULL AS INTEGER ) + - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL - - NULLIF ( 62, + + ( - COUNT( * ) ) + - 85 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL - - NULLIF ( 62, + + ( - COUNT ( * ) ) + - 85 ) col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT - 38 * 62 + + 65 + + + ( + COUNT( * ) ) + - + 50 * + COALESCE ( + 98, + + 2 ) + 44
----
-7146

skipif mysql # not compatible
query I rowsort label-5614
SELECT - 38 * 62 + + 65 + + + ( + COUNT ( * ) ) + - + 50 * + COALESCE ( + 98, + + 2 ) + 44
----
-7146

onlyif mysql # aggregate syntax: 
query II rowsort label-5615
SELECT + 90, SUM( ALL 4 ) AS col0
----
90
4

skipif mysql # not compatible
query II rowsort label-5615
SELECT + 90, SUM ( ALL 4 ) AS col0
----
90
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5616
SELECT CAST( - + COUNT( * ) AS SIGNED ) * 80 * COUNT( - + 73 ) * - 72 AS col2
----
5760

skipif mysql # not compatible
query I rowsort label-5616
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * 80 * COUNT ( - + 73 ) * - 72 AS col2
----
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT DISTINCT 88 * - + 17 + + COUNT( * )
----
-1495

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT 88 * - + 17 + + COUNT ( * )
----
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT MIN( - 88 ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-5618
SELECT MIN ( - 88 ) col2
----
-88

query I rowsort
SELECT + COALESCE ( + - 2, + 37 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT + 19 * COUNT( * ) + - + 62
----
-43

skipif mysql # not compatible
query I rowsort label-5620
SELECT + 19 * COUNT ( * ) + - + 62
----
-43

query I rowsort
SELECT DISTINCT 44 * + 30 * + 72 - - + 48
----
95088

query I rowsort
SELECT + 19 * 89 * + 85 - + 62 AS col0
----
143673

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT SUM( DISTINCT + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-5623
SELECT SUM ( DISTINCT + 68 )
----
68

query II rowsort
SELECT ALL + 21 AS col1, 86
----
21
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT + MIN( DISTINCT - + 38 ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-5625
SELECT + MIN ( DISTINCT - + 38 ) col0
----
-38

query I rowsort
SELECT + 54 * - 74 AS col1
----
-3996

onlyif mysql # aggregate syntax: 
query II rowsort label-5627
SELECT + COUNT( * ) AS col1, 42 - + - 68 AS col1
----
1
110

skipif mysql # not compatible
query II rowsort label-5627
SELECT + COUNT ( * ) AS col1, 42 - + - 68 AS col1
----
1
110

query I rowsort
SELECT - 72 + 54 AS col0
----
-18

query II rowsort
SELECT ALL + 37 col0, - 6 * - 87 AS col1
----
37
522

query I rowsort
SELECT + 83 * 15 * - - 81 AS col1
----
100845

query II rowsort
SELECT 75 AS col2, 69 - + - 77 AS col0
----
75
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5632
SELECT - 80 * - COUNT( * ) + + 2 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT - 80 * - COUNT ( * ) + + 2 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 18 * 35
----
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5634
SELECT ALL - 36 DIV - - COUNT( * ), 1 AS col1
----
-36
1

skipif mysql # not compatible
query II rowsort label-5634
SELECT ALL - 36 / - - COUNT ( * ), 1 AS col1
----
-36
1

query I rowsort
SELECT - ( - 54 ) col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT DISTINCT ( + + NULLIF ( + - 24, - 21 * + + COUNT( * ) / 6 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT ( + + NULLIF ( + - 24, - 21 * + + COUNT ( * ) / 6 ) )
----
-24

query I rowsort
SELECT - 19 * - - COALESCE ( - 10, - + 44 * + 66 )
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT ALL + COUNT( ALL - - 36 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL + COUNT ( ALL - - 36 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5639
SELECT - - 94 AS col2, - 63 DIV 24
----
94
-2

skipif mysql # not compatible
query II rowsort label-5639
SELECT - - 94 AS col2, - 63 / 24
----
94
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5640
SELECT + - 54 * - 80 + + - NULLIF ( 4, - 78 ) + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT + - 54 * - 80 + + - NULLIF ( 4, - 78 ) + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5641
SELECT - + AVG ( + CAST( NULL AS SIGNED ) ) * ( - 74 ) * + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT - + AVG ( + CAST ( NULL AS INTEGER ) ) * ( - 74 ) * + 95 AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 29 ) col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5643
SELECT - 51 DIV + COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5643
SELECT - 51 / + COUNT ( * ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT ALL + - 24 + + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL + - 24 + + COUNT ( * )
----
-23

query I rowsort
SELECT ALL 78 + - 47 col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5646
SELECT DISTINCT - 22 AS col2, - CAST( NULL AS SIGNED ) / - ( - + COUNT( * ) ) - COUNT( * ) + + - 9 + + + COUNT( * ) + + 73
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-5646
SELECT DISTINCT - 22 AS col2, - CAST ( NULL AS INTEGER ) / - ( - + COUNT ( * ) ) - COUNT ( * ) + + - 9 + + + COUNT ( * ) + + 73
----
-22
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5647
SELECT - 22 * - CAST( NULL AS SIGNED ) + - + 9 * + 9 + + COUNT( * ) * + - 94 - - - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5647
SELECT - 22 * - CAST ( NULL AS INTEGER ) + - + 9 * + 9 + + COUNT ( * ) * + - 94 - - - 4 AS col0
----
NULL

query I rowsort
SELECT ALL - + 11 + 50 - + 39
----
0

query II rowsort
SELECT 22 AS col2, + 18
----
22
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT + 75 + - + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-5650
SELECT + 75 + - + COUNT ( * )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT + COALESCE ( + NULLIF ( - + CAST( + - 84 AS SIGNED ), - - 65 * - 81 ), + 7 * - + 27 + - 79 + + - 37 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5651
SELECT + COALESCE ( + NULLIF ( - + CAST ( + - 84 AS INTEGER ), - - 65 * - 81 ), + 7 * - + 27 + - 79 + + - 37 ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5652
SELECT ALL 31 DIV - COALESCE ( - + 20, 68 + - MAX( DISTINCT 41 ) DIV - 62 ) + + 73 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL 31 / - COALESCE ( - + 20, 68 + - MAX ( DISTINCT 41 ) / - 62 ) + + 73 AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5653
SELECT + COUNT( * ) DIV COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5653
SELECT + COUNT ( * ) / COUNT ( * ), COUNT ( * )
----
1
1

query I rowsort
SELECT ALL + NULLIF ( + 33, + 36 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT DISTINCT + COALESCE ( + 53, + 77 ) * + 3 - + COUNT( * ) - ( - 84 ) AS col0
----
242

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT + COALESCE ( + 53, + 77 ) * + 3 - + COUNT ( * ) - ( - 84 ) AS col0
----
242

query I rowsort
SELECT ALL + ( - 43 ) col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5657
SELECT + COUNT( * ) * - COALESCE ( 34, 21 + AVG ( ( + 37 ) ) * + 28 DIV - 53, 71 * - - ( + 28 ), + 14 + + 12 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5657
SELECT + COUNT ( * ) * - COALESCE ( 34, 21 + AVG ( ( + 37 ) ) * + 28 / - 53, 71 * - - ( + 28 ), + 14 + + 12 ) AS col1
----
-34

query I rowsort
SELECT ALL + NULLIF ( - - 43, + + 83 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT - 72 + 80 + 45 + - - 34 * - COUNT( * ) + - - 78
----
97

skipif mysql # not compatible
query I rowsort label-5659
SELECT - 72 + 80 + 45 + - - 34 * - COUNT ( * ) + - - 78
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT + COALESCE ( + - 99, ( NULLIF ( - 88, - - ( 22 ) ) ) * - 83 * - COALESCE ( + MAX( ALL NULLIF ( 65, + - 73 + + + 6 ) ), + 71 ) + + - 15 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-5660
SELECT + COALESCE ( + - 99, ( NULLIF ( - 88, - - ( 22 ) ) ) * - 83 * - COALESCE ( + MAX ( ALL NULLIF ( 65, + - 73 + + + 6 ) ), + 71 ) + + - 15 ) AS col1
----
-99

query I rowsort
SELECT DISTINCT 8 * 90 - + 66 AS col1
----
654

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT CASE + ( + 90 ) WHEN - ( + 57 ) THEN 64 * + - 70 * + - NULLIF ( + COUNT( * ), - 69 - - AVG ( + 38 ) - 49 + + + SUM( - 56 ) * - COUNT( * ) - 65 / + 76 * - - 74 ) WHEN + COUNT( * ) + - 37 THEN NULL WHEN + 83 THEN + COUNT( * ) / - SUM( + + 4 ) ELSE + + NULLIF ( - 0, CASE + COALESCE ( 40, 18 * + COUNT( * ) + 78 + 78 + + + 81 ) WHEN 0 * 31 THEN - 74 WHEN + 52 THEN - ( - COUNT( * ) ) WHEN + 44 THEN NULL END ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5662
SELECT CASE + ( + 90 ) WHEN - ( + 57 ) THEN 64 * + - 70 * + - NULLIF ( + COUNT ( * ), - 69 - - AVG ( + 38 ) - 49 + + + SUM ( - 56 ) * - COUNT ( * ) - 65 / + 76 * - - 74 ) WHEN + COUNT ( * ) + - 37 THEN NULL WHEN + 83 THEN + COUNT ( * ) / - SUM ( + + 4 ) ELSE + + NULLIF ( - 0, CASE + COALESCE ( 40, 18 * + COUNT ( * ) + 78 + 78 + + + 81 ) WHEN 0 * 31 THEN - 74 WHEN + 52 THEN - ( - COUNT ( * ) ) WHEN + 44 THEN NULL END ) END AS col0
----
0

query I rowsort
SELECT - 42 * 57 AS col2
----
-2394

query I rowsort
SELECT ALL 24 * - 36
----
-864

query I rowsort
SELECT + 76 * 14 * - 79 + + 46 * 97 * + 65 AS col1
----
205974

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5666
SELECT + + 0 + + COUNT( - 6 ) + 63 + + + 72 + + + 1 - + - ( 33 ) + - 50 + 52 + - CASE - 36 WHEN + 59 THEN NULL ELSE - + 79 END + - 31 + SUM( ALL + CAST( NULL AS DECIMAL ) ) / 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT + + 0 + + COUNT ( - 6 ) + 63 + + + 72 + + + 1 - + - ( 33 ) + - 50 + 52 + - CASE - 36 WHEN + 59 THEN NULL ELSE - + 79 END + - 31 + SUM ( ALL + CAST ( NULL AS REAL ) ) / 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT + - 25 + + COUNT( * ) + + 54 * 93 * + 59
----
296274

skipif mysql # not compatible
query I rowsort label-5667
SELECT + - 25 + + COUNT ( * ) + + 54 * 93 * + 59
----
296274

query I rowsort
SELECT + 65 + - 96 + + ( - + 20 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5669
SELECT - ( COUNT( * ) ) * + SUM( ALL + 62 ) / - CAST( NULL AS SIGNED ) + + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5669
SELECT - ( COUNT ( * ) ) * + SUM ( ALL + 62 ) / - CAST ( NULL AS INTEGER ) + + 77 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 87 + 72
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT + 92 + - MAX( - 0 ) * + - 55 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5671
SELECT + 92 + - MAX ( - 0 ) * + - 55 AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5672
SELECT ALL + CASE - 94 WHEN + 49 THEN - 84 END + + - COUNT( * ) + + CAST( NULL AS SIGNED ) + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL + CASE - 94 WHEN + 49 THEN - 84 END + + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - 52
----
NULL

query I rowsort
SELECT DISTINCT + 37 + - 7 * - - 43 + + 39 * - NULLIF ( 67, + 3 )
----
-2877

query I rowsort
SELECT ALL + ( - 58 ) + 61
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT + - COUNT( * ) DIV + 66 * 81 DIV + 60 * + - 10
----
0

skipif mysql # not compatible
query I rowsort label-5675
SELECT + - COUNT ( * ) / + 66 * 81 / + 60 * + - 10
----
0

query I rowsort
SELECT - - 18 + 56 + - 21 + 85 col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL 12 * - COUNT( DISTINCT + - 12 ) + + 71 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL 12 * - COUNT ( DISTINCT + - 12 ) + + 71 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5678
SELECT CAST( NULL AS SIGNED ) + 43 + CASE - - 30 WHEN 42 + - - 93 + - - 77 THEN NULL WHEN - 28 THEN + 15 / - NULLIF ( - 2, MIN( - 40 ) ) + - + 74 ELSE - CAST( + AVG ( - 73 ) AS SIGNED ) END * 37 * + 42 * COUNT( DISTINCT + - 81 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5678
SELECT CAST ( NULL AS INTEGER ) + 43 + CASE - - 30 WHEN 42 + - - 93 + - - 77 THEN NULL WHEN - 28 THEN + 15 / - NULLIF ( - 2, MIN ( - 40 ) ) + - + 74 ELSE - CAST ( + AVG ( - 73 ) AS INTEGER ) END * 37 * + 42 * COUNT ( DISTINCT + - 81 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 13, 4 )
----
-13

query I rowsort
SELECT - 69 + + 30 + 29 + 1 AS col0
----
-9

query I rowsort
SELECT DISTINCT - 10 - + ( + 27 ) * - 1 col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT ALL MAX( DISTINCT - 64 ) AS col0, - 53 + + - 59 * - - COUNT( * ) col2
----
-64
-112

skipif mysql # not compatible
query II rowsort label-5682
SELECT ALL MAX ( DISTINCT - 64 ) AS col0, - 53 + + - 59 * - - COUNT ( * ) col2
----
-64
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5683
SELECT 44 DIV COUNT( * ) + - COUNT( * ) * + - 39 + + 82 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-5683
SELECT 44 / COUNT ( * ) + - COUNT ( * ) * + - 39 + + 82 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL COUNT( * ) - - 48 + + ( + - ( - + 52 ) )
----
101

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL COUNT ( * ) - - 48 + + ( + - ( - + 52 ) )
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-5685
SELECT ALL - 2, COUNT( * ) * + - 74 AS col1
----
-2
-74

skipif mysql # not compatible
query II rowsort label-5685
SELECT ALL - 2, COUNT ( * ) * + - 74 AS col1
----
-2
-74

query II rowsort
SELECT 19 AS col2, - 5 - 86 AS col2
----
19
-91

query I rowsort
SELECT 86 * - 99
----
-8514

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5688
SELECT + COUNT( * ) * - 65 DIV - - COUNT( * ) + + 81 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5688
SELECT + COUNT ( * ) * - 65 / - - COUNT ( * ) + + 81 AS col2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5689
SELECT DISTINCT + 63 * + COUNT( * ) * 92 * - 19 AS col0, - 75 AS col1
----
-110124
-75

skipif mysql # not compatible
query II rowsort label-5689
SELECT DISTINCT + 63 * + COUNT ( * ) * 92 * - 19 AS col0, - 75 AS col1
----
-110124
-75

query I rowsort
SELECT 5 + - 27 + - + 84 * + 96
----
-8086

query I rowsort
SELECT 76 * 81 col1
----
6156

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT COUNT( * ) * 37 * 30 AS col0
----
1110

skipif mysql # not compatible
query I rowsort label-5692
SELECT COUNT ( * ) * 37 * 30 AS col0
----
1110

onlyif mysql # aggregate syntax: 
query II rowsort label-5693
SELECT 82 + + MIN( 36 ) col0, 6 + + 73 * 40
----
118
2926

skipif mysql # not compatible
query II rowsort label-5693
SELECT 82 + + MIN ( 36 ) col0, 6 + + 73 * 40
----
118
2926

query I rowsort
SELECT DISTINCT + 64 * - - 55 AS col0
----
3520

query II rowsort
SELECT DISTINCT - 63, 67 + + - 59 AS col1
----
-63
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5696
SELECT - 72 * + COUNT( DISTINCT - 10 ) + - ( + 8 ) + - CAST( - + ( + 22 ) AS SIGNED ) * - NULLIF ( - 56, + 28 * - + 44 ) + + 65 AS col0
----
1217

skipif mysql # not compatible
query I rowsort label-5696
SELECT - 72 * + COUNT ( DISTINCT - 10 ) + - ( + 8 ) + - CAST ( - + ( + 22 ) AS INTEGER ) * - NULLIF ( - 56, + 28 * - + 44 ) + + 65 AS col0
----
1217

query I rowsort
SELECT ALL + 37 * - 81 AS col2
----
-2997

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT DISTINCT ( 86 ) / - CAST( NULL AS SIGNED ) * 28 + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT ( 86 ) / - CAST ( NULL AS INTEGER ) * 28 + 67 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 49 ) col1
----
49

query II rowsort
SELECT 51 AS col1, - 14 * + - 77
----
51
1078

query I rowsort
SELECT 91 * + 30
----
2730

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT ALL + NULLIF ( - + 91, + 33 ) DIV 75 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL + NULLIF ( - + 91, + 33 ) / 75 AS col2
----
-1

query I rowsort
SELECT 77 * 26
----
2002

query II rowsort
SELECT DISTINCT - 95 AS col2, 32
----
-95
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT DISTINCT - 16 + - - 67 + - 93 + + 0 * + 87 * + 78 * + COUNT( * ) + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT - 16 + - - 67 + - 93 + + 0 * + 87 * + 78 * + COUNT ( * ) + + COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL + + 15 + 3 + + COUNT( * ) + - - ( 15 ) + - COUNT( * ) * + MAX( DISTINCT - - 27 ) + + - 80 * - - 29 + + 58 + + 74 * 30
----
-35

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL + + 15 + 3 + + COUNT ( * ) + - - ( 15 ) + - COUNT ( * ) * + MAX ( DISTINCT - - 27 ) + + - 80 * - - 29 + + 58 + + 74 * 30
----
-35

query II rowsort
SELECT ALL 77, 42 AS col2
----
77
42

query I rowsort
SELECT + 77 * - 55
----
-4235

query I rowsort
SELECT ALL - 77 * COALESCE ( + 16, 47 * + - 42 * + 18 ) + 79
----
-1153

query II rowsort
SELECT - 83 col0, + 14 AS col2
----
-83
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5711
SELECT ALL - 33 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL - 33 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT - 43 * COUNT( * ) * + 51
----
-2193

skipif mysql # not compatible
query I rowsort label-5712
SELECT - 43 * COUNT ( * ) * + 51
----
-2193

onlyif mysql # aggregate syntax: 
query II rowsort label-5713
SELECT ALL 96 + ( MAX( DISTINCT 22 ) ), + 83 + - 14 * 88 AS col2
----
118
-1149

skipif mysql # not compatible
query II rowsort label-5713
SELECT ALL 96 + ( MAX ( DISTINCT 22 ) ), + 83 + - 14 * 88 AS col2
----
118
-1149

query II rowsort
SELECT 14, ( + 67 ) AS col2
----
14
67

query I rowsort
SELECT DISTINCT + ( 58 ) AS col0
----
58

query II rowsort
SELECT DISTINCT + 7 AS col1, + 68 AS col0
----
7
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT DISTINCT COUNT( * ) - + CASE + 2 WHEN + COUNT( * ) - - 61 THEN + ( - COUNT( * ) ) / ( - 40 ) * 64 + 25 * + 10 / + COALESCE ( 43, + 68 * + 95 ) + + + 41 + + COUNT( * ) + SUM( 15 ) * + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT COUNT ( * ) - + CASE + 2 WHEN + COUNT ( * ) - - 61 THEN + ( - COUNT ( * ) ) / ( - 40 ) * 64 + 25 * + 10 / + COALESCE ( 43, + 68 * + 95 ) + + + 41 + + COUNT ( * ) + SUM ( 15 ) * + 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT DISTINCT - COUNT( + - 68 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT - COUNT ( + - 68 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 22 * - + 48 col1
----
-1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5720
SELECT ALL 67 DIV + COUNT( - + 27 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL 67 / + COUNT ( - + 27 ) AS col2
----
67

query I rowsort
SELECT ( + 81 ) + 23 AS col0
----
104

query I rowsort
SELECT ALL 85 * ( + 64 )
----
5440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5723
SELECT ( 51 ) * - - CAST( NULL AS DECIMAL ) + + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT ( 51 ) * - - CAST ( NULL AS REAL ) + + - 80
----
NULL

query II rowsort
SELECT DISTINCT 20 * 46 AS col2, 19 AS col0
----
920
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5725
SELECT 76 DIV ( 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5725
SELECT 76 / ( 82 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT CASE - - AVG ( + COALESCE ( - ( + 69 ), + 26 + 71 ) ) WHEN - ( 59 ) THEN + COUNT( * ) + - 95 WHEN - + 28 THEN NULL ELSE NULL END + + + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT CASE - - AVG ( + COALESCE ( - ( + 69 ), + 26 + 71 ) ) WHEN - ( 59 ) THEN + COUNT ( * ) + - 95 WHEN - + 28 THEN NULL ELSE NULL END + + + 39 AS col1
----
NULL

query I rowsort
SELECT ALL 25 * + + 96
----
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5728
SELECT 11 * + NULLIF ( - - 68, - MIN( + 10 ) * + - COUNT( * ) + - 9 + + CAST( NULL AS SIGNED ) * - - 43 + 98 * + 61 ) * - 52
----
-38896

skipif mysql # not compatible
query I rowsort label-5728
SELECT 11 * + NULLIF ( - - 68, - MIN ( + 10 ) * + - COUNT ( * ) + - 9 + + CAST ( NULL AS INTEGER ) * - - 43 + 98 * + 61 ) * - 52
----
-38896

query I rowsort
SELECT ( + + 44 ) * 5 - 96 AS col2
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5730
SELECT 85 + - + CAST( CAST( - - ( + + SUM( ALL + + 90 ) ) AS SIGNED ) AS SIGNED ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-5730
SELECT 85 + - + CAST ( CAST ( - - ( + + SUM ( ALL + + 90 ) ) AS INTEGER ) AS INTEGER ) col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT MAX( DISTINCT + - 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5731
SELECT MAX ( DISTINCT + - 63 ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5732
SELECT ALL + COUNT( * ) * - 29 * CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL + COUNT ( * ) * - 29 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 60 + - 20
----
-80

query I rowsort
SELECT + CASE + 64 WHEN - AVG ( - 90 ) THEN NULL ELSE - 67 + + 8 END
----
-59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5735
SELECT ALL - + CAST( + 19 AS DECIMAL ) + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL - + CAST ( + 19 AS REAL ) + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5736
SELECT 92 * - 11 - 18 DIV + 50
----
-1012

skipif mysql # not compatible
query I rowsort label-5736
SELECT 92 * - 11 - 18 / + 50
----
-1012

query I rowsort
SELECT ALL + 28 * 98 * - - ( 86 ) AS col2
----
235984

query I rowsort
SELECT ALL + + 79 + 16
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5739
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col2, 7 AS col1
----
-1
7

skipif mysql # not compatible
query II rowsort label-5739
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col2, 7 AS col1
----
-1
7

query I rowsort
SELECT ALL + 37 + 35 AS col1
----
72

query I rowsort
SELECT - 4 * - 3 + 51
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT COUNT( DISTINCT + 80 ) - + 96
----
-95

skipif mysql # not compatible
query I rowsort label-5742
SELECT COUNT ( DISTINCT + 80 ) - + 96
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT - 41 + - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT - 41 + - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + - 85 * - - 8 AS col2
----
-680

query I rowsort
SELECT ALL ( + + 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT - + 16 + + 89 - + COUNT( * ) + - - 94 AS col1
----
166

skipif mysql # not compatible
query I rowsort label-5746
SELECT - + 16 + + 89 - + COUNT ( * ) + - - 94 AS col1
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5747
SELECT DISTINCT - CAST( 24 AS SIGNED ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT - CAST ( 24 AS INTEGER ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT + 18 + + + 80 * - - MAX( DISTINCT 30 ) AS col1
----
2418

skipif mysql # not compatible
query I rowsort label-5748
SELECT + 18 + + + 80 * - - MAX ( DISTINCT 30 ) AS col1
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT DISTINCT + 63 * - - COUNT( * ) col0
----
63

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT + 63 * - - COUNT ( * ) col0
----
63

query II rowsort
SELECT - 42 col1, 81
----
-42
81

query I rowsort
SELECT - ( + - 10 ) * ( 54 )
----
540

query I rowsort
SELECT + 73 * + 7 * + ( + 27 ) * - - 95
----
1310715

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT + 31 + - MIN( 5 ) + - 12 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5753
SELECT + 31 + - MIN ( 5 ) + - 12 AS col0
----
14

query II rowsort
SELECT 87 AS col0, - 25
----
87
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5755
SELECT DISTINCT ( - CAST( + CAST( + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS SIGNED ) ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5755
SELECT DISTINCT ( - CAST ( + CAST ( + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS INTEGER ) ), + COUNT ( * )
----
1
1

query I rowsort
SELECT ALL 39 * 62 + + 1 + + - 47 * - COALESCE ( - 28, + 42 * - ( ( - - 62 ) ) - 43, - 65 ) * 6 AS col2
----
-5477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5757
SELECT ALL 8 * 61 * 82 + + 24 / - CAST( 14 AS SIGNED ) + ( + 30 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL 8 * 61 * 82 + + 24 / - CAST ( 14 AS INTEGER ) + ( + 30 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 73 * + + ( 27 ) + + - 12 AS col1
----
1959

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT - ( - COUNT( ( 47 ) ) ) * - + ( 42 ) + 58
----
16

skipif mysql # not compatible
query I rowsort label-5759
SELECT - ( - COUNT ( ( 47 ) ) ) * - + ( 42 ) + 58
----
16

query I rowsort
SELECT CASE - 22 WHEN + - 95 THEN 3 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5761
SELECT CASE - 82 WHEN - 18 THEN - 66 * CAST( NULL AS SIGNED ) + AVG ( DISTINCT + 66 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT CASE - 82 WHEN - 18 THEN - 66 * CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + 66 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 47 + + 78
----
125

query I rowsort
SELECT 20 * + - 42 * + 2 - 55 + - 79
----
-1814

query I rowsort
SELECT ALL + 58 * + 63 * 75 + + 7
----
274057

query I rowsort
SELECT DISTINCT - 99 * + 19 col1
----
-1881

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL - 6 * 88 + - - NULLIF ( - - 58, 2 + 43 ) * + 57 * 63 * + - COUNT( * ) AS col0
----
-208806

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL - 6 * 88 + - - NULLIF ( - - 58, 2 + 43 ) * + 57 * 63 * + - COUNT ( * ) AS col0
----
-208806

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT DISTINCT + CASE 7 WHEN - + COUNT( * ) * - 94 + + COUNT( * ) THEN 74 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT + CASE 7 WHEN - + COUNT ( * ) * - 94 + + COUNT ( * ) THEN 74 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5768
SELECT DISTINCT + 63 * + CAST( NULL AS SIGNED ) - + + 0 + - 34 + - 11 * 31 / - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT + 63 * + CAST ( NULL AS INTEGER ) - + + 0 + - 34 + - 11 * 31 / - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT - + 6 + + 47 + COUNT( * ) * + 33 * + + 24 * + 96 AS col0
----
76073

skipif mysql # not compatible
query I rowsort label-5769
SELECT - + 6 + + 47 + COUNT ( * ) * + 33 * + + 24 * + 96 AS col0
----
76073

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT MAX( + 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5770
SELECT MAX ( + 14 ) AS col1
----
14

query I rowsort
SELECT + - 63 * 89 + - 20
----
-5627

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT DISTINCT + 23 * - COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT + 23 * - COUNT ( * ) AS col2
----
-23

query II rowsort
SELECT ALL 80 AS col2, 77 + + - NULLIF ( - 72, - 80 ) AS col0
----
80
149

query I rowsort
SELECT - 88 * - 85 AS col2
----
7480

query I rowsort
SELECT ALL - 90 * + + 92
----
-8280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5776
SELECT - - COUNT( * ) * 42 - 57 DIV 59 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5776
SELECT - - COUNT ( * ) * 42 - 57 / 59 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5777
SELECT - 67 DIV + - 76, + 13 DIV + 79 + - + COUNT( * ) + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5777
SELECT - 67 / + - 76, + 13 / + 79 + - + COUNT ( * ) + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT ALL CASE + 42 WHEN + 83 THEN 86 * + 27 WHEN 85 / - - 6 + MIN( ALL + 0 ) * 19 * + - 48 THEN NULL WHEN + + 31 THEN - NULLIF ( 31, 29 ) - - - COUNT( * ) + + 78 * 27 ELSE + 2 END
----
2

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL CASE + 42 WHEN + 83 THEN 86 * + 27 WHEN 85 / - - 6 + MIN ( ALL + 0 ) * 19 * + - 48 THEN NULL WHEN + + 31 THEN - NULLIF ( 31, 29 ) - - - COUNT ( * ) + + 78 * 27 ELSE + 2 END
----
2

query I rowsort
SELECT ALL - 22 + - ( + + 85 ) * + + ( - 92 ) + - + 84
----
7714

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL COUNT( * ) * - + 7
----
-7

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL COUNT ( * ) * - + 7
----
-7

query I rowsort
SELECT DISTINCT + 5 + + 79 + + 4
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT ALL - 50 + + + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL - 50 + + + COUNT ( * )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5783
SELECT DISTINCT 25 + - + 80 + - - 68 * - CAST( NULL AS SIGNED ) col0, - 49
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-5783
SELECT DISTINCT 25 + - + 80 + - - 68 * - CAST ( NULL AS INTEGER ) col0, - 49
----
NULL
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT - 32 * + COUNT( * ) * SUM( DISTINCT + 60 )
----
-1920

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT - 32 * + COUNT ( * ) * SUM ( DISTINCT + 60 )
----
-1920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT - 60 + - + 90 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT - 60 + - + 90 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 66 - ( + - 68 ) * 84
----
5778

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL - COUNT( * ) * + - 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL - COUNT ( * ) * + - 74 AS col0
----
74

query II rowsort
SELECT 29, 58 AS col0
----
29
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5789
SELECT 42 DIV - 83 + + 21 + + COUNT( * ) + - - SUM( DISTINCT 89 ) + + 21 AS col2
----
132

skipif mysql # not compatible
query I rowsort label-5789
SELECT 42 / - 83 + + 21 + + COUNT ( * ) + - - SUM ( DISTINCT 89 ) + + 21 AS col2
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5790
SELECT ALL - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + 89 + - 76 * + - 92 + - 69 / - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + 89 + - 76 * + - 92 + - 69 / - + 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5791
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), + 91 + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), + 91 + 43 )
----
NULL

query I rowsort
SELECT DISTINCT + ( + 44 ) AS col0
----
44

query I rowsort
SELECT + 6 + - 32 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT + SUM( DISTINCT - 96 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + SUM ( DISTINCT - 96 ) AS col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5795
SELECT ALL - 78 / - 10 + 50 + - - COUNT( - - 48 ) / + + 19 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL - 78 / - 10 + 50 + - - COUNT ( - - 48 ) / + + 19 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT ALL + 95 DIV - 2 + - - COUNT( * ) + - 81 DIV - 74 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL + 95 / - 2 + - - COUNT ( * ) + - 81 / - 74 AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT DISTINCT 22 DIV + + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT 22 / + + 71 AS col0
----
0

query I rowsort
SELECT ALL + NULLIF ( - - 74, + 59 * 62 * 66 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT - + CAST( NULL AS SIGNED ) + + ( + 94 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5799
SELECT - + CAST ( NULL AS INTEGER ) + + ( + 94 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5800
SELECT + - 29 AS col0, + 65 + - 78 + + 44 DIV + 71
----
-29
-13

skipif mysql # not compatible
query II rowsort label-5800
SELECT + - 29 AS col0, + 65 + - 78 + + 44 / + 71
----
-29
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5801
SELECT + - MIN( DISTINCT - 18 ) * - ( + 4 ) * + CAST( NULL AS SIGNED ) + - + 20 + + ( + 4 ) * - 49 * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5801
SELECT + - MIN ( DISTINCT - 18 ) * - ( + 4 ) * + CAST ( NULL AS INTEGER ) + - + 20 + + ( + 4 ) * - 49 * + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL - COUNT( * ) * - COUNT( * ) * + 75
----
75

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * + 75
----
75

query I rowsort
SELECT ALL 49 - - 70 + 90 AS col2
----
209

query I rowsort
SELECT + CASE - 22 WHEN - 80 * - + ( + 62 ) + - + 3 * 65 THEN NULL ELSE - + 7 END
----
-7

query I rowsort
SELECT ALL 62 * - 9 * 87
----
-48546

onlyif mysql # DIV for integer division: 
query I rowsort label-5806
SELECT - 37 DIV + - 35
----
1

skipif mysql # not compatible
query I rowsort label-5806
SELECT - 37 / + - 35
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL COUNT( * ) * + - 64
----
-64

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL COUNT ( * ) * + - 64
----
-64

query I rowsort
SELECT DISTINCT - + ( - - 65 ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-5809
SELECT ALL - + COUNT( * ), 72 * - 85 * + - 35 col0
----
-1
214200

skipif mysql # not compatible
query II rowsort label-5809
SELECT ALL - + COUNT ( * ), 72 * - 85 * + - 35 col0
----
-1
214200

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT 49 * + COUNT( * ) + - 12 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5810
SELECT 49 * + COUNT ( * ) + - 12 AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5811
SELECT + 86 * + + CAST( + + 28 AS SIGNED ) AS col0
----
2408

skipif mysql # not compatible
query I rowsort label-5811
SELECT + 86 * + + CAST ( + + 28 AS INTEGER ) AS col0
----
2408

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT MAX( + 89 ) + 43 AS col2
----
132

skipif mysql # not compatible
query I rowsort label-5812
SELECT MAX ( + 89 ) + 43 AS col2
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5813
SELECT ALL ( + CAST( 73 AS SIGNED ) ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL ( + CAST ( 73 AS INTEGER ) ) AS col2
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5814
SELECT + 39 + + 16 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT + 39 + + 16 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5815
SELECT + 31 AS col1, - ( - SUM( - 69 ) ) * + COUNT( * )
----
31
-69

skipif mysql # not compatible
query II rowsort label-5815
SELECT + 31 AS col1, - ( - SUM ( - 69 ) ) * + COUNT ( * )
----
31
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT + COUNT( ALL 3 ) * - + COUNT( DISTINCT - 94 ) - 79 + - 50 * 67 * 7
----
-23530

skipif mysql # not compatible
query I rowsort label-5816
SELECT + COUNT ( ALL 3 ) * - + COUNT ( DISTINCT - 94 ) - 79 + - 50 * 67 * 7
----
-23530

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL - 18 + + - COUNT( * ) + ( + 95 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL - 18 + + - COUNT ( * ) + ( + 95 ) AS col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5818
SELECT ALL 8 + + COUNT( * ) AS col2, - 70 + 9 DIV 19 * + 27
----
9
-70

skipif mysql # not compatible
query II rowsort label-5818
SELECT ALL 8 + + COUNT ( * ) AS col2, - 70 + 9 / 19 * + 27
----
9
-70

onlyif mysql # DIV for integer division: 
query II rowsort label-5819
SELECT DISTINCT 67 + 72 AS col0, 60 DIV + 44 col2
----
139
1

skipif mysql # not compatible
query II rowsort label-5819
SELECT DISTINCT 67 + 72 AS col0, 60 / + 44 col2
----
139
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT 95 + + - COUNT( * ) * + 0
----
95

skipif mysql # not compatible
query I rowsort label-5820
SELECT 95 + + - COUNT ( * ) * + 0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT ALL 2 + - + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL 2 + - + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT 20 + - - 76 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT COUNT( * ) + 9 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5823
SELECT COUNT ( * ) + 9 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT ALL + 56 + - + CAST( - 66 AS SIGNED )
----
122

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL + 56 + - + CAST ( - 66 AS INTEGER )
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5825
SELECT ALL + COUNT( * ) DIV + + ( + 35 ) * + 91 * + 7 col0
----
0

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL + COUNT ( * ) / + + ( + 35 ) * + 91 * + 7 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5826
SELECT DISTINCT + 74 - + - 14 DIV + - 41 * 77 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT + 74 - + - 14 / + - 41 * 77 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL + ( ( + - 31 ) ) - 52 - - COUNT( * ) * + 4 + + 31 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + ( ( + - 31 ) ) - 52 - - COUNT ( * ) * + 4 + + 31 AS col0
----
-48

query I rowsort
SELECT 56 * - - 41 - 24 + + + 28 AS col1
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT 45 * - - SUM( 10 )
----
450

skipif mysql # not compatible
query I rowsort label-5829
SELECT 45 * - - SUM ( 10 )
----
450

query I rowsort
SELECT ALL - 50 * + + 84 * 13 AS col1
----
-54600

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT COALESCE ( + - CASE 9 WHEN - 66 * - - SUM( ALL 72 ) + - - MAX( 6 ) THEN NULL WHEN + 97 / 1 * 68 + 72 THEN - - 82 + + 1 END, ( + - 17 ) ) * 21 + + 60 AS col2
----
-297

skipif mysql # not compatible
query I rowsort label-5831
SELECT COALESCE ( + - CASE 9 WHEN - 66 * - - SUM ( ALL 72 ) + - - MAX ( 6 ) THEN NULL WHEN + 97 / 1 * 68 + 72 THEN - - 82 + + 1 END, ( + - 17 ) ) * 21 + + 60 AS col2
----
-297

query I rowsort
SELECT + + ( + 24 ) AS col2
----
24

query I rowsort
SELECT DISTINCT - 17 * 71
----
-1207

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5834
SELECT ALL - 0 * CAST( - + 82 AS SIGNED ) * 52 * + - 93 DIV - 7 - + + 9 + + + 35 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL - 0 * CAST ( - + 82 AS INTEGER ) * 52 * + - 93 / - 7 - + + 9 + + + 35 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT 46 * NULLIF ( + COUNT( * ), 20 * - 63 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5835
SELECT 46 * NULLIF ( + COUNT ( * ), 20 * - 63 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5836
SELECT ALL - - MAX( - 14 ), 74 AS col2
----
-14
74

skipif mysql # not compatible
query II rowsort label-5836
SELECT ALL - - MAX ( - 14 ), 74 AS col2
----
-14
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT + - 26 * + 61 * + 98 + MAX( ALL + COALESCE ( - ( + 44 ), - + 45 ) ) AS col2
----
-155472

skipif mysql # not compatible
query I rowsort label-5837
SELECT + - 26 * + 61 * + 98 + MAX ( ALL + COALESCE ( - ( + 44 ), - + 45 ) ) AS col2
----
-155472

query I rowsort
SELECT - 97 * 62 + - + 86 AS col1
----
-6100

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT - 10 * - + 55 * + - 0 * - COUNT( DISTINCT 4 )
----
0

skipif mysql # not compatible
query I rowsort label-5839
SELECT - 10 * - + 55 * + - 0 * - COUNT ( DISTINCT 4 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT 92 + COUNT( * ) * 96 + - 57
----
131

skipif mysql # not compatible
query I rowsort label-5840
SELECT 92 + COUNT ( * ) * 96 + - 57
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT DISTINCT + COUNT( * ) + + + 97
----
98

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT + COUNT ( * ) + + + 97
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT + - NULLIF ( - - 68, - 22 + - COUNT( * ) )
----
-68

skipif mysql # not compatible
query I rowsort label-5842
SELECT + - NULLIF ( - - 68, - 22 + - COUNT ( * ) )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5843
SELECT - 37 DIV ( 61 ) * - 45 + + + 56 + 27 + 94 + - 93
----
84

skipif mysql # not compatible
query I rowsort label-5843
SELECT - 37 / ( 61 ) * - 45 + + + 56 + 27 + 94 + - 93
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT ALL + ( - COUNT( * ) ) + + 32
----
31

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL + ( - COUNT ( * ) ) + + 32
----
31

query I rowsort
SELECT ALL 26 + 3 * + 62
----
212

onlyif mysql # DIV for integer division: 
query I rowsort label-5846
SELECT ( + - 93 ) DIV - ( 4 )
----
23

skipif mysql # not compatible
query I rowsort label-5846
SELECT ( + - 93 ) / - ( 4 )
----
23

query I rowsort
SELECT DISTINCT 61 * + 38
----
2318

query I rowsort
SELECT ALL - ( - 69 ) + - - 57 * - 52 AS col2
----
-2895

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5849
SELECT - COUNT( * ), + 27 + 31 DIV + - 60 * - 6 AS col0
----
-1
27

skipif mysql # not compatible
query II rowsort label-5849
SELECT - COUNT ( * ), + 27 + 31 / + - 60 * - 6 AS col0
----
-1
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5850
SELECT ALL 0 AS col2, 12 * - COALESCE ( + ( + NULLIF ( - 77, + SUM( - 37 ) * - 69 * - - 97 + + - 13 ) ), - ( - ( - - 84 ) ) * - 20 * - 93, 68 DIV + + 12 ) AS col2
----
0
924

skipif mysql # not compatible
query II rowsort label-5850
SELECT ALL 0 AS col2, 12 * - COALESCE ( + ( + NULLIF ( - 77, + SUM ( - 37 ) * - 69 * - - 97 + + - 13 ) ), - ( - ( - - 84 ) ) * - 20 * - 93, 68 / + + 12 ) AS col2
----
0
924

query I rowsort
SELECT 85 - + 44 col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5852
SELECT 68, 80 - - SUM( 8 ) AS col1
----
68
88

skipif mysql # not compatible
query II rowsort label-5852
SELECT 68, 80 - - SUM ( 8 ) AS col1
----
68
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT - COUNT( 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-5853
SELECT - COUNT ( 22 )
----
-1

query I rowsort
SELECT 30 * 2 AS col0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5855
SELECT ALL COUNT( * ) + - - ( + 17 ) * + + 34, 37 AS col1
----
579
37

skipif mysql # not compatible
query II rowsort label-5855
SELECT ALL COUNT ( * ) + - - ( + 17 ) * + + 34, 37 AS col1
----
579
37

query II rowsort
SELECT 11 AS col0, - 20
----
11
-20

query I rowsort
SELECT 10 - + 19 + - - 62 * + - ( 3 ) + - ( + 39 ) AS col0
----
-234

query II rowsort
SELECT ALL 66, - 66 * 11 * 26 AS col0
----
66
-18876

query II rowsort
SELECT ALL + 60 * - + 91 * + 67, - 0 * + 23 AS col1
----
-365820
0

query I rowsort
SELECT ( 38 ) - + 36 + - 39 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ALL 89 - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL 89 - COUNT ( * ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ( + - MIN( DISTINCT 64 ) ) + 69 * + - 85 col0
----
-5929

skipif mysql # not compatible
query I rowsort label-5862
SELECT ( + - MIN ( DISTINCT 64 ) ) + 69 * + - 85 col0
----
-5929

query I rowsort
SELECT 45 * + + 36 AS col0
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL ( + - MIN( ALL + 48 ) ) * - 19
----
912

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL ( + - MIN ( ALL + 48 ) ) * - 19
----
912

query I rowsort
SELECT + 47 + 5 AS col1
----
52

query I rowsort
SELECT - 53 - - 97
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5867
SELECT COUNT( * ) col2, 37 * 98 - - MAX( + 9 ) AS col1
----
1
3635

skipif mysql # not compatible
query II rowsort label-5867
SELECT COUNT ( * ) col2, 37 * 98 - - MAX ( + 9 ) AS col1
----
1
3635

query I rowsort
SELECT - + 93 + - 29
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5869
SELECT - - COUNT( * ) * - + COUNT( * ) + CAST( - 51 AS SIGNED ) DIV 91
----
-1

skipif mysql # not compatible
query I rowsort label-5869
SELECT - - COUNT ( * ) * - + COUNT ( * ) + CAST ( - 51 AS INTEGER ) / 91
----
-1

query II rowsort
SELECT + 86 AS col1, 4
----
86
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT DISTINCT + - MAX( 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT + - MAX ( 78 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5872
SELECT - 28 * + + 62 + + 20 DIV - 61 * - + 40 * - ( + - 29 )
----
-1736

skipif mysql # not compatible
query I rowsort label-5872
SELECT - 28 * + + 62 + + 20 / - 61 * - + 40 * - ( + - 29 )
----
-1736

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT ALL 74 * - CASE - 98 WHEN + 63 * + 71 + 61 / - + 78 THEN NULL WHEN - COUNT( + 44 ) - - 92 THEN - 95 ELSE - 18 * + + ( + 47 ) * - 6 END * 32 * 69 + - COUNT( * ) + + 35 AS col1
----
-829377758

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL 74 * - CASE - 98 WHEN + 63 * + 71 + 61 / - + 78 THEN NULL WHEN - COUNT ( + 44 ) - - 92 THEN - 95 ELSE - 18 * + + ( + 47 ) * - 6 END * 32 * 69 + - COUNT ( * ) + + 35 AS col1
----
-829377758

query I rowsort
SELECT ALL - 0 * + + 74 + + 72 AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT - 94 + + 60 + + 42 - - CAST( NULL AS SIGNED ) / CASE - CAST( + - 70 AS SIGNED ) WHEN + 73 THEN ( - - 63 ) * + ( - + 29 ) * 2 - 0 * 44 * 50 * - 84 ELSE - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT - 94 + + 60 + + 42 - - CAST ( NULL AS INTEGER ) / CASE - CAST ( + - 70 AS INTEGER ) WHEN + 73 THEN ( - - 63 ) * + ( - + 29 ) * 2 - 0 * 44 * 50 * - 84 ELSE - 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT + - SUM( DISTINCT + - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-5876
SELECT + - SUM ( DISTINCT + - 42 )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5877
SELECT - 87 AS col0, ( + COUNT( * ) ) AS col1
----
-87
1

skipif mysql # not compatible
query II rowsort label-5877
SELECT - 87 AS col0, ( + COUNT ( * ) ) AS col1
----
-87
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5878
SELECT - 8 * - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5878
SELECT - 8 * - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
8

query I rowsort
SELECT + - 17 * + 14
----
-238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT ALL - 21 * 17 + - - 21 - + CAST( + 30 AS SIGNED ) AS col2
----
-366

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - 21 * 17 + - - 21 - + CAST ( + 30 AS INTEGER ) AS col2
----
-366

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT ALL + - MIN( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL + - MIN ( - 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT DISTINCT + 35 * - MAX( + 99 ) + - 82 AS col0
----
-3547

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT + 35 * - MAX ( + 99 ) + - 82 AS col0
----
-3547

query I rowsort
SELECT ALL 82 * - 53 + + - 47
----
-4393

query I rowsort
SELECT - + 81 + + 86 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5885
SELECT ALL - 16 * + NULLIF ( + 4, - - 17 ) + - COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL - 16 * + NULLIF ( + 4, - - 17 ) + - COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT ALL CAST( NULL AS SIGNED ) * 16 + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL CAST ( NULL AS INTEGER ) * 16 + - 34
----
NULL

query I rowsort
SELECT ALL ( - 81 ) col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5888
SELECT - COUNT( - 86 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5888
SELECT - COUNT ( - 86 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 49 - - - 2 * - + 24 * - - 27
----
1345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5890
SELECT - 54 * ( - 68 ) * - CAST( 63 AS SIGNED )
----
-231336

skipif mysql # not compatible
query I rowsort label-5890
SELECT - 54 * ( - 68 ) * - CAST ( 63 AS INTEGER )
----
-231336

query I rowsort
SELECT ALL - 56 - + 19 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT DISTINCT + COUNT( * ) * - ( - - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT + COUNT ( * ) * - ( - - 61 )
----
-61

query I rowsort
SELECT + 83 + - - ( + 83 )
----
166

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5894
SELECT ALL COALESCE ( + 58, ( 81 ) DIV + CAST( NULL AS SIGNED ) + 20, - 71 ) * + - 3
----
-174

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL COALESCE ( + 58, ( 81 ) / + CAST ( NULL AS INTEGER ) + 20, - 71 ) * + - 3
----
-174

query I rowsort
SELECT + 88 + 12 * 52 AS col1
----
712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5896
SELECT + CASE - CAST( 52 AS SIGNED ) WHEN - 58 THEN NULL WHEN + + COUNT( * ) * - - CAST( NULL AS SIGNED ) THEN + + 26 END + ( - NULLIF ( + ( + COUNT( * ) ), + + 93 * 31 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT + CASE - CAST ( 52 AS INTEGER ) WHEN - 58 THEN NULL WHEN + + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) THEN + + 26 END + ( - NULLIF ( + ( + COUNT ( * ) ), + + 93 * 31 ) ) AS col0
----
NULL

query I rowsort
SELECT + 65 * 18 AS col2
----
1170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5898
SELECT - CAST( - 47 AS SIGNED ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5898
SELECT - CAST ( - 47 AS INTEGER ) AS col1
----
47

query I rowsort
SELECT - + 89 + 57
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5900
SELECT + 98 + CAST( 66 AS SIGNED ) + - - 13 DIV + MAX( NULLIF ( + 85, - 55 ) )
----
164

skipif mysql # not compatible
query I rowsort label-5900
SELECT + 98 + CAST ( 66 AS INTEGER ) + - - 13 / + MAX ( NULLIF ( + 85, - 55 ) )
----
164

query I rowsort
SELECT DISTINCT + 39 * + + 22
----
858

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT + - 28 * + - MAX( ALL + 38 )
----
1064

skipif mysql # not compatible
query I rowsort label-5902
SELECT + - 28 * + - MAX ( ALL + 38 )
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT DISTINCT + + SUM( DISTINCT - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5903
SELECT DISTINCT + + SUM ( DISTINCT - 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5904
SELECT DISTINCT - ( + - COUNT( ALL - 87 ) ) DIV - - 13 + + + 37 + - + 67
----
-30

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT - ( + - COUNT ( ALL - 87 ) ) / - - 13 + + + 37 + - + 67
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5905
SELECT ALL + + COALESCE ( + 90, ( + 55 ), - + 49 DIV 6 )
----
90

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL + + COALESCE ( + 90, ( + 55 ), - + 49 / 6 )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5906
SELECT + + MIN( DISTINCT 81 ) DIV 10
----
8

skipif mysql # not compatible
query I rowsort label-5906
SELECT + + MIN ( DISTINCT 81 ) / 10
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT - COUNT( DISTINCT + ( - - 58 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5907
SELECT - COUNT ( DISTINCT + ( - - 58 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5908
SELECT ALL - MIN( DISTINCT COALESCE ( - 56, - 29 ) ) DIV 16 + + - 54 * - 92 * - COALESCE ( 13, 26, - 97 ) AS col2
----
-64581

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL - MIN ( DISTINCT COALESCE ( - 56, - 29 ) ) / 16 + + - 54 * - 92 * - COALESCE ( 13, 26, - 97 ) AS col2
----
-64581

query I rowsort
SELECT + 14 + + 20
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT DISTINCT + - MIN( - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT + - MIN ( - 10 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5911
SELECT + 50 * - 3 + NULLIF ( + 95, - CAST( NULL AS SIGNED ) )
----
-55

skipif mysql # not compatible
query I rowsort label-5911
SELECT + 50 * - 3 + NULLIF ( + 95, - CAST ( NULL AS INTEGER ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT DISTINCT - MAX( ALL + + ( - 49 ) ) * + 79
----
3871

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT - MAX ( ALL + + ( - 49 ) ) * + 79
----
3871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5913
SELECT DISTINCT - 63 DIV 43 + - + MIN( + 89 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT - 63 / 43 + - + MIN ( + 89 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL - - MAX( DISTINCT + - 89 ) * - 70 AS col0
----
6230

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL - - MAX ( DISTINCT + - 89 ) * - 70 AS col0
----
6230

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ( + ( + - NULLIF ( + 44, COUNT( * ) ) ) )
----
-44

skipif mysql # not compatible
query I rowsort label-5915
SELECT ( + ( + - NULLIF ( + 44, COUNT ( * ) ) ) )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5916
SELECT ALL - 30 DIV - + 53 AS col2, COUNT( * ) * - + 92 - + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
0
-93

skipif mysql # not compatible
query II rowsort label-5916
SELECT ALL - 30 / - + 53 AS col2, COUNT ( * ) * - + 92 - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
0
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5917
SELECT 87 * - 69 + 33 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5917
SELECT 87 * - 69 + 33 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5918
SELECT + 88 AS col1, 24 + + - 52 + + + 8 * - 50 DIV SUM( 93 ) DIV - ( 41 )
----
88
-28

skipif mysql # not compatible
query II rowsort label-5918
SELECT + 88 AS col1, 24 + + - 52 + + + 8 * - 50 / SUM ( 93 ) / - ( 41 )
----
88
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT - 67 + - + 32 + ( ( 95 ) ) + + ( - 17 ) + + + ( - CAST( + 38 AS SIGNED ) )
----
-59

skipif mysql # not compatible
query I rowsort label-5919
SELECT - 67 + - + 32 + ( ( 95 ) ) + + ( - 17 ) + + + ( - CAST ( + 38 AS INTEGER ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT ALL + MAX( - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL + MAX ( - 75 )
----
-75

query I rowsort
SELECT DISTINCT + 69 * + 65 AS col1
----
4485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5922
SELECT COALESCE ( - + ( CAST( NULL AS SIGNED ) ), - + COALESCE ( + COUNT( * ), CASE 71 WHEN 16 * + 50 + + - 48 THEN + 43 + + + 12 END * - - COALESCE ( 62, 70 * 77 * - 28 ) + 59 ) * 0 * 40, - COUNT( * ) - - COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5922
SELECT COALESCE ( - + ( CAST ( NULL AS INTEGER ) ), - + COALESCE ( + COUNT ( * ), CASE 71 WHEN 16 * + 50 + + - 48 THEN + 43 + + + 12 END * - - COALESCE ( 62, 70 * 77 * - 28 ) + 59 ) * 0 * 40, - COUNT ( * ) - - COUNT ( * ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT - 31 * + ( + CAST( + + 70 AS SIGNED ) ) AS col2
----
-2170

skipif mysql # not compatible
query I rowsort label-5923
SELECT - 31 * + ( + CAST ( + + 70 AS INTEGER ) ) AS col2
----
-2170

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT ALL - 87 * - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL - 87 * - COUNT ( * ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT COALESCE ( + COUNT( * ), + + 47 )
----
1

skipif mysql # not compatible
query I rowsort label-5925
SELECT COALESCE ( + COUNT ( * ), + + 47 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5926
SELECT ALL - 68 * - - MAX( ALL 64 ) - ( + ( - + 20 ) ) + NULLIF ( + COUNT( * ), 64 ) * - - COALESCE ( - 46, - 48 ) DIV CAST( + - NULLIF ( + 71, 27 ) AS SIGNED ) AS col1
----
-4332

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL - 68 * - - MAX ( ALL 64 ) - ( + ( - + 20 ) ) + NULLIF ( + COUNT ( * ), 64 ) * - - COALESCE ( - 46, - 48 ) / CAST ( + - NULLIF ( + 71, 27 ) AS INTEGER ) AS col1
----
-4332

query I rowsort
SELECT ALL 50 * 16 - + 92 AS col0
----
708

query I rowsort
SELECT - 1 * + + COALESCE ( 44, - + 39, + + 56 * - 52 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5929
SELECT ALL CAST( + + 75 AS SIGNED ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL CAST ( + + 75 AS INTEGER ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT - 71 - + 72 + + + ( - + COUNT( * ) ) * - + 26 * - 54
----
-1547

skipif mysql # not compatible
query I rowsort label-5930
SELECT - 71 - + 72 + + + ( - + COUNT ( * ) ) * - + 26 * - 54
----
-1547

onlyif mysql # aggregate syntax: 
query II rowsort label-5931
SELECT 20 + - 67 * - COUNT( * ) AS col2, - 57 * - 82
----
87
4674

skipif mysql # not compatible
query II rowsort label-5931
SELECT 20 + - 67 * - COUNT ( * ) AS col2, - 57 * - 82
----
87
4674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5932
SELECT ALL - COALESCE ( - 12, + - MAX( - - 96 ) ) DIV + ( 97 ) + - COUNT( * ) + + ( + CAST( 96 AS SIGNED ) ) col1, + 1
----
95
1

skipif mysql # not compatible
query II rowsort label-5932
SELECT ALL - COALESCE ( - 12, + - MAX ( - - 96 ) ) / + ( 97 ) + - COUNT ( * ) + + ( + CAST ( 96 AS INTEGER ) ) col1, + 1
----
95
1

query I rowsort
SELECT 26 * + + 32 AS col0
----
832

query II rowsort
SELECT - 76 AS col2, 43
----
-76
43

query I rowsort
SELECT DISTINCT 94 * 87 AS col1
----
8178

query I rowsort
SELECT ALL - 34 + - 83 * 5 + + 43 col0
----
-406

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5937
SELECT ALL 11 * + CASE - - 76 WHEN - + 11 / - 32 THEN + 4 ELSE CAST( - - 31 AS SIGNED ) END, - 13 * - 27 - - 2 AS col1
----
341
353

skipif mysql # not compatible
query II rowsort label-5937
SELECT ALL 11 * + CASE - - 76 WHEN - + 11 / - 32 THEN + 4 ELSE CAST ( - - 31 AS INTEGER ) END, - 13 * - 27 - - 2 AS col1
----
341
353

query I rowsort
SELECT 45 - 9 + + + 6 * + 60 AS col0
----
396

query I rowsort
SELECT ALL - 25 * + 77
----
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ALL 17 + + + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL 17 + + + COUNT ( * )
----
18

query I rowsort
SELECT - 87 - - 45 AS col1
----
-42

query I rowsort
SELECT DISTINCT - 69 * 48
----
-3312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5943
SELECT DISTINCT + - 82 + + COUNT( * ) + + 18 + + COALESCE ( 78, + CAST( NULL AS SIGNED ) ), 4 * - 51 * 53 * + 79 AS col2
----
15
-854148

skipif mysql # not compatible
query II rowsort label-5943
SELECT DISTINCT + - 82 + + COUNT ( * ) + + 18 + + COALESCE ( 78, + CAST ( NULL AS INTEGER ) ), 4 * - 51 * 53 * + 79 AS col2
----
15
-854148

query I rowsort
SELECT ALL 84 + - + ( - ( + 44 ) ) col1
----
128

query I rowsort
SELECT + 54 + 0 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT - + MAX( ALL 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-5946
SELECT - + MAX ( ALL 6 )
----
-6

query I rowsort
SELECT + 37 - + 48 AS col1
----
-11

query II rowsort
SELECT + 21, 64 - + 45 AS col2
----
21
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5949
SELECT COUNT( * ) * CAST( NULL AS DECIMAL ) * + 94 * - - ( + 24 ) - - - 42 + + AVG ( ALL + - 70 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT COUNT ( * ) * CAST ( NULL AS REAL ) * + 94 * - - ( + 24 ) - - - 42 + + AVG ( ALL + - 70 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT DISTINCT - NULLIF ( - COUNT( * ), + + 69 * - 42 )
----
1

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT - NULLIF ( - COUNT ( * ), + + 69 * - 42 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT ALL COUNT( * ) + - 70 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL COUNT ( * ) + - 70 AS col2
----
-69

query I rowsort
SELECT ALL - 36 + 98
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5953
SELECT - 48 * - CASE - NULLIF ( - CASE - - CAST( NULL AS DECIMAL ) WHEN - 57 THEN + MIN( 15 ) ELSE NULL END, - 14 ) WHEN + COUNT( * ) THEN NULL ELSE - 83 END / - + CAST( NULL AS SIGNED ) / + 8 * + 95 + + + 48 + - + 52 * - - CASE WHEN NOT + 53 IS NOT NULL THEN + ( - 56 ) WHEN 19 BETWEEN - - 63 AND + ( + 6 ) THEN NULL ELSE NULL END * - - CAST( + 33 AS SIGNED ) * + 25 + - 61 + - 96 - COALESCE ( + - 8, - 70 / - 65 + 17, - + MAX( + 73 ) ) + + 37 + + - 41 AS col0, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5953
SELECT - 48 * - CASE - NULLIF ( - CASE - - CAST ( NULL AS REAL ) WHEN - 57 THEN + MIN ( 15 ) ELSE NULL END, - 14 ) WHEN + COUNT ( * ) THEN NULL ELSE - 83 END / - + CAST ( NULL AS INTEGER ) / + 8 * + 95 + + + 48 + - + 52 * - - CASE WHEN NOT + 53 IS NOT NULL THEN + ( - 56 ) WHEN 19 BETWEEN - - 63 AND + ( + 6 ) THEN NULL ELSE NULL END * - - CAST ( + 33 AS INTEGER ) * + 25 + - 61 + - 96 - COALESCE ( + - 8, - 70 / - 65 + 17, - + MAX ( + 73 ) ) + + 37 + + - 41 AS col0, CAST ( NULL AS INTEGER )
----
NULL
NULL

query II rowsort
SELECT ALL - 82 AS col1, - 70
----
-82
-70

query I rowsort
SELECT ALL 56 * + 25 AS col2
----
1400

query I rowsort
SELECT ALL - 34 + + - 15
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT ALL - CASE - 64 WHEN COUNT( * ) + - 84 THEN NULL WHEN + 48 THEN NULL WHEN + COUNT( * ) + + 94 THEN - + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL - CASE - 64 WHEN COUNT ( * ) + - 84 THEN NULL WHEN + 48 THEN NULL WHEN + COUNT ( * ) + + 94 THEN - + COUNT ( * ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5958
SELECT 62 * + + COALESCE ( 67, + MIN( DISTINCT - 20 ) DIV + 24 + COALESCE ( 71, 46 + 86 - CAST( NULL AS SIGNED ) ) ), MAX( 4 ) AS col1
----
4154
4

skipif mysql # not compatible
query II rowsort label-5958
SELECT 62 * + + COALESCE ( 67, + MIN ( DISTINCT - 20 ) / + 24 + COALESCE ( 71, 46 + 86 - CAST ( NULL AS INTEGER ) ) ), MAX ( 4 ) AS col1
----
4154
4

query I rowsort
SELECT ALL 73 - - ( - 37 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5960
SELECT 79 AS col1, COALESCE ( - COUNT( * ), - 64 ) * - 94
----
79
94

skipif mysql # not compatible
query II rowsort label-5960
SELECT 79 AS col1, COALESCE ( - COUNT ( * ), - 64 ) * - 94
----
79
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT CAST( NULL AS SIGNED ) - NULLIF ( 3, + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT CAST ( NULL AS INTEGER ) - NULLIF ( 3, + 53 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT COUNT( * ) * 90
----
90

skipif mysql # not compatible
query I rowsort label-5962
SELECT COUNT ( * ) * 90
----
90

query II rowsort
SELECT ALL - 46, 95 AS col2
----
-46
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5964
SELECT - 46 * 61 + - 74 + - + 1 * + 63 DIV + 8 AS col1
----
-2887

skipif mysql # not compatible
query I rowsort label-5964
SELECT - 46 * 61 + - 74 + - + 1 * + 63 / + 8 AS col1
----
-2887

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT 30 + + + 24 + + + COUNT( * ) + 82 + - + 26 * 57 * + 34 * - + 83 * 34 + + 3
----
142195076

skipif mysql # not compatible
query I rowsort label-5965
SELECT 30 + + + 24 + + + COUNT ( * ) + 82 + - + 26 * 57 * + 34 * - + 83 * 34 + + 3
----
142195076

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5966
SELECT ALL MAX( DISTINCT - 35 ) DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL MAX ( DISTINCT - 35 ) / - 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5967
SELECT 36 / 68 / CASE - COUNT( * ) WHEN - - ( + + CAST( + - 87 AS SIGNED ) ) + MAX( ALL - + 98 ) THEN + 35 * + + 77 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT 36 / 68 / CASE - COUNT ( * ) WHEN - - ( + + CAST ( + - 87 AS INTEGER ) ) + MAX ( ALL - + 98 ) THEN + 35 * + + 77 END col0
----
NULL

query II rowsort
SELECT ALL - 81 AS col1, 90 * - - 6 + + 55 * - 47 * 95 AS col0
----
-81
-245035

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT + 2 * + + 92 - + + SUM( ALL + 69 ) + + + COUNT( * ) + 42 * - 31 * - 13
----
17042

skipif mysql # not compatible
query I rowsort label-5969
SELECT + 2 * + + 92 - + + SUM ( ALL + 69 ) + + + COUNT ( * ) + 42 * - 31 * - 13
----
17042

query I rowsort
SELECT 29 + - + 58
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT 71 * 81 * + + COUNT( * ) * - 10 AS col2
----
-57510

skipif mysql # not compatible
query I rowsort label-5971
SELECT 71 * 81 * + + COUNT ( * ) * - 10 AS col2
----
-57510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5972
SELECT DISTINCT - 21 + 99 * 47 * - 79 * - - 19 + + ( - CAST( NULL AS SIGNED ) ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT - 21 + 99 * 47 * - 79 * - - 19 + + ( - CAST ( NULL AS INTEGER ) ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 66 + 85 + + 74 AS col2
----
225

query I rowsort
SELECT 45 + + 37
----
82

query I rowsort
SELECT ALL - ( + - 14 ) + - 21
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT 55 + 70 + + 43 * + COUNT( * ) + + 68 * + - COALESCE ( - 38, - COUNT( * ) ) - - MAX( ALL + 58 )
----
2810

skipif mysql # not compatible
query I rowsort label-5976
SELECT 55 + 70 + + 43 * + COUNT ( * ) + + 68 * + - COALESCE ( - 38, - COUNT ( * ) ) - - MAX ( ALL + 58 )
----
2810

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5977
SELECT DISTINCT 83 AS col0, + CAST( - 1 AS SIGNED ) DIV - - 24
----
83
0

skipif mysql # not compatible
query II rowsort label-5977
SELECT DISTINCT 83 AS col0, + CAST ( - 1 AS INTEGER ) / - - 24
----
83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT ALL + 92 + + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL + 92 + + - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL + 81 + + MIN( ALL + 94 ) AS col2
----
175

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + 81 + + MIN ( ALL + 94 ) AS col2
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5980
SELECT + CAST( 18 AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5980
SELECT + CAST ( 18 AS INTEGER ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT ALL - - 92 + - - MAX( DISTINCT - 11 ) + + + 22
----
103

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - - 92 + - - MAX ( DISTINCT - 11 ) + + + 22
----
103

query II rowsort
SELECT ALL + 79 col1, - 9 * + 60 AS col2
----
79
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT - NULLIF ( + COUNT( * ), - 76 ) + + 31 + - + 38
----
-8

skipif mysql # not compatible
query I rowsort label-5983
SELECT - NULLIF ( + COUNT ( * ), - 76 ) + + 31 + - + 38
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT DISTINCT - - COALESCE ( ( 93 ), - - 26 * - - 29 * + 16 - 37 - NULLIF ( + 57, - + MIN( - + 4 ) ) ) * - 62 AS col0
----
-5766

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT - - COALESCE ( ( 93 ), - - 26 * - - 29 * + 16 - 37 - NULLIF ( + 57, - + MIN ( - + 4 ) ) ) * - 62 AS col0
----
-5766

query I rowsort
SELECT 28 + - 81 AS col1
----
-53

query I rowsort
SELECT 15 * - 39 + + 20
----
-565

query I rowsort
SELECT ALL 18 + + 33 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT DISTINCT + 7 * + ( - COUNT( * ) ) * + 52 + 75 AS col0
----
-289

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT + 7 * + ( - COUNT ( * ) ) * + 52 + 75 AS col0
----
-289

query I rowsort
SELECT DISTINCT + 96 * + 42
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL - MIN( DISTINCT 68 ) col0
----
-68

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL - MIN ( DISTINCT 68 ) col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT + 10 + + - MAX( - - 96 ) + - - 46 * 68 * - + NULLIF ( 66, + 17 * ( - COUNT( * ) ) )
----
-206534

skipif mysql # not compatible
query I rowsort label-5991
SELECT + 10 + + - MAX ( - - 96 ) + - - 46 * 68 * - + NULLIF ( 66, + 17 * ( - COUNT ( * ) ) )
----
-206534

query I rowsort
SELECT ALL + 86 * 68 - 21 AS col0
----
5827

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5993
SELECT + 34 col2, 37 AS col0, CAST( NULL AS SIGNED )
----
34
37
NULL

skipif mysql # not compatible
query III rowsort label-5993
SELECT + 34 col2, 37 AS col0, CAST ( NULL AS INTEGER )
----
34
37
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5994
SELECT + 37 * 48 / CAST( NULL AS SIGNED ) / + + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT + 37 * 48 / CAST ( NULL AS INTEGER ) / + + 63 AS col1
----
NULL

query II rowsort
SELECT - 35 AS col0, + 21 AS col2
----
-35
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT 28 * + + 88 * + NULLIF ( - 32, 67 / + - 59 * - 21 + - 83 * - 47 ) + + + 43 + - - 42 * - COUNT( * )
----
-78847

skipif mysql # not compatible
query I rowsort label-5996
SELECT 28 * + + 88 * + NULLIF ( - 32, 67 / + - 59 * - 21 + - 83 * - 47 ) + + + 43 + - - 42 * - COUNT ( * )
----
-78847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5997
SELECT COUNT( CAST( + 51 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5997
SELECT COUNT ( CAST ( + 51 AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT 14 * - - 37 AS col2
----
518

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT 97 * + - 49 + - COALESCE ( + 99, COUNT( * ) )
----
-4852

skipif mysql # not compatible
query I rowsort label-5999
SELECT 97 * + - 49 + - COALESCE ( + 99, COUNT ( * ) )
----
-4852

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT DISTINCT COUNT( * ) * 11 * + 49 * + SUM( - + 68 ) * 2
----
-73304

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT COUNT ( * ) * 11 * + 49 * + SUM ( - + 68 ) * 2
----
-73304

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT + MAX( ALL 60 )
----
60

skipif mysql # not compatible
query I rowsort label-6001
SELECT + MAX ( ALL 60 )
----
60

query II rowsort
SELECT + 60 * + 47, 42 + 85 AS col1
----
2820
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT MIN( - + 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6003
SELECT MIN ( - + 79 ) AS col0
----
-79

query I rowsort
SELECT + 78 + - 56 AS col2
----
22

query I rowsort
SELECT + 24 * - 90 AS col1
----
-2160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6006
SELECT ALL - 34 + - COUNT( * ) - - 0 * CAST( + 14 AS SIGNED ) * - 87 + MIN( ALL + 48 ) * ( - 72 ) AS col2
----
-3491

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - 34 + - COUNT ( * ) - - 0 * CAST ( + 14 AS INTEGER ) * - 87 + MIN ( ALL + 48 ) * ( - 72 ) AS col2
----
-3491

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT ALL ( + CASE - ( + COALESCE ( - 19, - 96 ) ) WHEN 69 * + 29 THEN + 34 END ) + + 94 * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL ( + CASE - ( + COALESCE ( - 19, - 96 ) ) WHEN 69 * + 29 THEN + 34 END ) + + 94 * - COUNT ( * ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6008
SELECT ALL + 62 DIV - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL + 62 / - 73 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6009
SELECT DISTINCT 35 DIV + - 23 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT 35 / + - 23 AS col2
----
-1

query I rowsort
SELECT - 92 * + 84
----
-7728

query I rowsort
SELECT + 36 + + - 62 AS col0
----
-26

query I rowsort
SELECT - 5 * - 66 AS col1
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ALL CASE + ( 73 ) WHEN + 42 THEN 76 WHEN - 53 + + MAX( DISTINCT ( - - 90 ) ) THEN + 97 * + - 8 WHEN + 52 * - - 96 * + COUNT( DISTINCT 6 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL CASE + ( 73 ) WHEN + 42 THEN 76 WHEN - 53 + + MAX ( DISTINCT ( - - 90 ) ) THEN + 97 * + - 8 WHEN + 52 * - - 96 * + COUNT ( DISTINCT 6 ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - - 89 - 48 + - 90
----
-49

query I rowsort
SELECT ALL ( - - 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT DISTINCT + - COUNT( * ) * + 93 AS col0, - 0 + + 36 + - + 45
----
-93
-9

skipif mysql # not compatible
query II rowsort label-6016
SELECT DISTINCT + - COUNT ( * ) * + 93 AS col0, - 0 + + 36 + - + 45
----
-93
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL + COALESCE ( + ( - - 99 ), + COUNT( * ) ) - + 79 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL + COALESCE ( + ( - - 99 ), + COUNT ( * ) ) - + 79 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT - COUNT( * ) * - 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6018
SELECT - COUNT ( * ) * - 87 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT - 52 + - NULLIF ( + 53, + 95 + - 45 * + - ( + 33 ) * - + COUNT( * ) + - 9 - + NULLIF ( - - NULLIF ( + + 65, - 32 ), + 55 * - + 17 * - 79 ) * + 22 * - 51 + - 31 ) * - ( + ( - 98 ) ) + + ( + - ( + 86 ) )
----
-5332

skipif mysql # not compatible
query I rowsort label-6019
SELECT - 52 + - NULLIF ( + 53, + 95 + - 45 * + - ( + 33 ) * - + COUNT ( * ) + - 9 - + NULLIF ( - - NULLIF ( + + 65, - 32 ), + 55 * - + 17 * - 79 ) * + 22 * - 51 + - 31 ) * - ( + ( - 98 ) ) + + ( + - ( + 86 ) )
----
-5332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6020
SELECT - 65 + + 23 + + COUNT( * ) DIV 89 * + + 63 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-6020
SELECT - 65 + + 23 + + COUNT ( * ) / 89 * + + 63 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT - COUNT( * ) - - 21 * - 65 + + - 77
----
-1443

skipif mysql # not compatible
query I rowsort label-6021
SELECT - COUNT ( * ) - - 21 * - 65 + + - 77
----
-1443

query I rowsort
SELECT - + 62 * + + 37 * + - 49 * 57 AS col0
----
6407142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6023
SELECT ALL + 51 * - MIN( COALESCE ( + 17, + 64 + - 40 ) ) + 59 DIV - + MAX( 21 )
----
-869

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL + 51 * - MIN ( COALESCE ( + 17, + 64 + - 40 ) ) + 59 / - + MAX ( 21 )
----
-869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT ALL - CAST( NULL AS SIGNED ) / 5 - + 56 * + CASE - 12 WHEN + + 5 THEN + + 6 WHEN 52 - - 86 THEN NULL ELSE - - 1 END - + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL - CAST ( NULL AS INTEGER ) / 5 - + 56 * + CASE - 12 WHEN + + 5 THEN + + 6 WHEN 52 - - 86 THEN NULL ELSE - - 1 END - + 21 AS col2
----
NULL

query I rowsort
SELECT ALL + + 97 * - 89
----
-8633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT ALL CAST( NULL AS SIGNED ) * + 52 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL CAST ( NULL AS INTEGER ) * + 52 col2
----
NULL

query I rowsort
SELECT - 8 * - - 41 AS col0
----
-328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6028
SELECT ALL + 28 * ( 4 ) DIV + + MAX( DISTINCT + 6 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + 28 * ( 4 ) / + + MAX ( DISTINCT + 6 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6029
SELECT ALL + 1 AS col2, 82 * - COUNT( DISTINCT - + ( + NULLIF ( 88, 45 + - + 26 ) ) )
----
1
-82

skipif mysql # not compatible
query II rowsort label-6029
SELECT ALL + 1 AS col2, 82 * - COUNT ( DISTINCT - + ( + NULLIF ( 88, 45 + - + 26 ) ) )
----
1
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT DISTINCT - 56 * - - 61 * - - COUNT( * ) * 75 col1
----
-256200

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT - 56 * - - 61 * - - COUNT ( * ) * 75 col1
----
-256200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6031
SELECT - NULLIF ( - MAX( ALL - 48 ), - + 76 * - + AVG ( DISTINCT - 20 ) ) DIV + MIN( - 42 ) + - + 2 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6031
SELECT - NULLIF ( - MAX ( ALL - 48 ), - + 76 * - + AVG ( DISTINCT - 20 ) ) / + MIN ( - 42 ) + - + 2 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT + NULLIF ( + - SUM( DISTINCT - + 52 ), + + 30 )
----
52

skipif mysql # not compatible
query I rowsort label-6032
SELECT + NULLIF ( + - SUM ( DISTINCT - + 52 ), + + 30 )
----
52

query I rowsort
SELECT - 48 + + - 92 + - 43 col2
----
-183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6034
SELECT ( COALESCE ( + 29, + SUM( + CAST( NULL AS SIGNED ) ) ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6034
SELECT ( COALESCE ( + 29, + SUM ( + CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT CASE + + 93 WHEN - ( - 58 ) THEN COALESCE ( + COUNT( * ), + - 12 + - - 18 + - 41 + - - 9 * 26 * - 49 ) WHEN + 12 - - - 40 THEN NULL ELSE - 55 END col0
----
-55

skipif mysql # not compatible
query I rowsort label-6035
SELECT CASE + + 93 WHEN - ( - 58 ) THEN COALESCE ( + COUNT ( * ), + - 12 + - - 18 + - 41 + - - 9 * 26 * - 49 ) WHEN + 12 - - - 40 THEN NULL ELSE - 55 END col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6036
SELECT ALL 75 * - COUNT( * ) * + COUNT( - 9 ) + - 78 DIV + COUNT( * ) + + 66 * - 65 AS col2
----
-4443

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL 75 * - COUNT ( * ) * + COUNT ( - 9 ) + - 78 / + COUNT ( * ) + + 66 * - 65 AS col2
----
-4443

query I rowsort
SELECT - 42 - + 65
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT + MAX( 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6038
SELECT + MAX ( 52 ) AS col2
----
52

query I rowsort
SELECT ALL - 10 * 17 + - - 46 + - - 53 * + 0
----
-124

query I rowsort
SELECT DISTINCT 30 * - - 12 * - 58 AS col0
----
-20880

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT ALL SUM( - 91 ) * + 78 + + 56 * - 86 * - - CASE NULLIF ( 59, + + 33 ) WHEN + - 19 THEN + CASE - 76 WHEN + 3 * 91 + - COUNT( * ) THEN NULL ELSE + 61 END - ( NULLIF ( 48, + 79 - - ( + 77 ) * - - 10 * + - 95 ) ) END - + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL SUM ( - 91 ) * + 78 + + 56 * - 86 * - - CASE NULLIF ( 59, + + 33 ) WHEN + - 19 THEN + CASE - 76 WHEN + 3 * 91 + - COUNT ( * ) THEN NULL ELSE + 61 END - ( NULLIF ( 48, + 79 - - ( + 77 ) * - - 10 * + - 95 ) ) END - + 83
----
NULL

query I rowsort
SELECT + 94 + + 70 col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL - 93 * - 26 + - COUNT( * ) AS col0
----
2417

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - 93 * - 26 + - COUNT ( * ) AS col0
----
2417

query I rowsort
SELECT ALL 65 * + 22 * - + 26
----
-37180

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6045
SELECT ALL 18 * 19 + + + ( + CASE - 41 WHEN + 61 THEN - - 70 WHEN + - 48 * - - 22 * 66 + - + 63 * - COUNT( * ) * + - ( - 96 ) * 21 * 79 - - 29 * + + CAST( NULL AS DECIMAL ) + COUNT( * ) THEN - - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL 18 * 19 + + + ( + CASE - 41 WHEN + 61 THEN - - 70 WHEN + - 48 * - - 22 * 66 + - + 63 * - COUNT ( * ) * + - ( - 96 ) * 21 * 79 - - 29 * + + CAST ( NULL AS REAL ) + COUNT ( * ) THEN - - COUNT ( * ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT DISTINCT 94 * + - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT 94 * + - COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT 3 * COUNT( * ) + 36 + - 59 + 65 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6047
SELECT 3 * COUNT ( * ) + 36 + - 59 + 65 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL 29 * - NULLIF ( + + 61, - 81 * 71 * 29 + + COUNT( * ) - - 12 + 63 ) * - 75 + - + 80 AS col2
----
132595

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL 29 * - NULLIF ( + + 61, - 81 * 71 * 29 + + COUNT ( * ) - - 12 + 63 ) * - 75 + - + 80 AS col2
----
132595

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT + COUNT( * ) + 54 col2
----
55

skipif mysql # not compatible
query I rowsort label-6049
SELECT + COUNT ( * ) + 54 col2
----
55

query I rowsort
SELECT + + 68 * + + 23 AS col1
----
1564

query I rowsort
SELECT - - 4 + + + 71
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6052
SELECT ALL CAST( NULL AS SIGNED ) * + - 24 - 91 + - 59 - + COUNT( * ) * - COUNT( * ) / 84 / + 28 * - COUNT( * ) * + + 64 + COUNT( * ) * 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL CAST ( NULL AS INTEGER ) * + - 24 - 91 + - 59 - + COUNT ( * ) * - COUNT ( * ) / 84 / + 28 * - COUNT ( * ) * + + 64 + COUNT ( * ) * 5 AS col0
----
NULL

query I rowsort
SELECT + + NULLIF ( + COALESCE ( - - 44, 36 + + 70 * + 12 ), - 95 + 62 ) + - 87 + - + 14 col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-6054
SELECT ALL 95 DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL 95 / 56
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT + - COUNT( * ) + - + 14 + + - 79 + + COUNT( * ) * - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-6055
SELECT + - COUNT ( * ) + - + 14 + + - 79 + + COUNT ( * ) * - COUNT ( * )
----
-95

query I rowsort
SELECT DISTINCT - - 50 * + 69
----
3450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6057
SELECT + CAST( - + 71 AS SIGNED ) + COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6057
SELECT + CAST ( - + 71 AS INTEGER ) + COUNT ( * ) AS col0
----
-70

query I rowsort
SELECT ALL - 57 - - 7 col1
----
-50

query I rowsort
SELECT - 92 * - 18 AS col2
----
1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6060
SELECT ALL - COUNT( * ) DIV 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL - COUNT ( * ) / 36 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ALL + COALESCE ( + - 78, - COUNT( * ), + - 2 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL + COALESCE ( + - 78, - COUNT ( * ), + - 2 ) AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6062
SELECT + + 66 + + ( 73 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT + + 66 + + ( 73 ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 2 + 74 AS col0
----
76

query I rowsort
SELECT ALL + - 45 * - 42
----
1890

query I rowsort
SELECT ALL ( - - 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-6066
SELECT DISTINCT - 6, - 37 + 24 + + 92 + - MIN( + ( - + 92 ) ) col1
----
-6
171

skipif mysql # not compatible
query II rowsort label-6066
SELECT DISTINCT - 6, - 37 + 24 + + 92 + - MIN ( + ( - + 92 ) ) col1
----
-6
171

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT - - CASE + 59 WHEN + - ( - - 40 ) * 3 * - 12 * 81 * + 71 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-6067
SELECT - - CASE + 59 WHEN + - ( - - 40 ) * 3 * - 12 * 81 * + 71 THEN NULL ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL 69 * + + MAX( ALL + + 77 ) * - + 9 AS col1
----
-47817

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL 69 * + + MAX ( ALL + + 77 ) * - + 9 AS col1
----
-47817

query I rowsort
SELECT - 85 + 17
----
-68

query II rowsort
SELECT DISTINCT + 97 + - 73 AS col0, - 10 + 44 + 54 AS col0
----
24
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6071
SELECT - 34 DIV + 12 - - + 68
----
66

skipif mysql # not compatible
query I rowsort label-6071
SELECT - 34 / + 12 - - + 68
----
66

query I rowsort
SELECT ALL - ( + 61 ) AS col2
----
-61

query I rowsort
SELECT 20 * + 64
----
1280

onlyif mysql # aggregate syntax: 
query II rowsort label-6074
SELECT + 84 * + - 83 + COUNT( * ) + - 2 AS col2, 0 + + + 38 AS col2
----
-6973
38

skipif mysql # not compatible
query II rowsort label-6074
SELECT + 84 * + - 83 + COUNT ( * ) + - 2 AS col2, 0 + + + 38 AS col2
----
-6973
38

query I rowsort
SELECT ALL + 34 + - + 99
----
-65

query I rowsort
SELECT ALL - 79 * - + 85 * - - 12 col2
----
80580

query I rowsort
SELECT DISTINCT - COALESCE ( - - ( 57 ), + 11 * - 12 ) AS col1
----
-57

query I rowsort
SELECT DISTINCT - 62 * 88 AS col0
----
-5456

query I rowsort
SELECT ALL - ( + + NULLIF ( - 10, 37 ) ) AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6080
SELECT DISTINCT 24 + - 65 DIV 44 * - - 54 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-6080
SELECT DISTINCT 24 + - 65 / 44 * - - 54 AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6081
SELECT ALL 83 + - 52 + 10 - + 43 / - + 22 * + + COUNT( * ) * - CAST( NULL AS SIGNED ) + 64 * - + 56 - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL 83 + - 52 + 10 - + 43 / - + 22 * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + 64 * - + 56 - + 33
----
NULL

query I rowsort
SELECT 71 * + 69 * 77 AS col1
----
377223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6083
SELECT ALL + 8 * + CAST( NULL AS SIGNED ) / 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL + 8 * + CAST ( NULL AS INTEGER ) / 76
----
NULL

query I rowsort
SELECT 83 * + 49 * - 47 * - 97 col0
----
18541453

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT 90 + - - 96 + + COUNT( * ) AS col0
----
187

skipif mysql # not compatible
query I rowsort label-6085
SELECT 90 + - - 96 + + COUNT ( * ) AS col0
----
187

query I rowsort
SELECT ALL - 35 - - 96
----
61

query I rowsort
SELECT 61 * + + 6
----
366

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT ALL ( CASE - COUNT( * ) WHEN 70 - 56 / - - SUM( DISTINCT + 98 ) THEN - - 58 / + COUNT( * ) * - ( - - 81 ) / - + 99 - + - 84 ELSE NULL END ) - 45 * - 16 + - + ( 6 ) + + + 74 * 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL ( CASE - COUNT ( * ) WHEN 70 - 56 / - - SUM ( DISTINCT + 98 ) THEN - - 58 / + COUNT ( * ) * - ( - - 81 ) / - + 99 - + - 84 ELSE NULL END ) - 45 * - 16 + - + ( 6 ) + + + 74 * 67 AS col1
----
NULL

query II rowsort
SELECT + ( - + 43 ) AS col1, ( + 53 )
----
-43
53

query I rowsort
SELECT ALL ( - 80 ) * + - 41 + - 26 AS col2
----
3254

query I rowsort
SELECT - - 13 col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6092
SELECT ALL + 67 - + + ( + + 53 ) - + + 93 + + + 31, MIN( + COALESCE ( 88, + CAST( NULL AS SIGNED ) ) ) AS col0
----
-48
88

skipif mysql # not compatible
query II rowsort label-6092
SELECT ALL + 67 - + + ( + + 53 ) - + + 93 + + + 31, MIN ( + COALESCE ( 88, + CAST ( NULL AS INTEGER ) ) ) AS col0
----
-48
88

query I rowsort
SELECT 44 * + ( + 69 ) AS col2
----
3036

query I rowsort
SELECT DISTINCT + 45 * + 19
----
855

query I rowsort
SELECT - 81 * 44 AS col1
----
-3564

onlyif mysql # aggregate syntax: 
query II rowsort label-6096
SELECT MAX( 4 ) AS col2, 93 * + - 68 + - COUNT( * ) AS col1
----
4
-6325

skipif mysql # not compatible
query II rowsort label-6096
SELECT MAX ( 4 ) AS col2, 93 * + - 68 + - COUNT ( * ) AS col1
----
4
-6325

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6097
SELECT 23 * + CAST( NULL AS SIGNED ) * + - 98 * + + 34 - + ( - + ( + + 71 ) ) - + + 54 * - 78 + 90 - - 31 * - 0 * 42 - + - 78 AS col2, 60 * 4 col2
----
NULL
240

skipif mysql # not compatible
query II rowsort label-6097
SELECT 23 * + CAST ( NULL AS INTEGER ) * + - 98 * + + 34 - + ( - + ( + + 71 ) ) - + + 54 * - 78 + 90 - - 31 * - 0 * 42 - + - 78 AS col2, 60 * 4 col2
----
NULL
240

query I rowsort
SELECT ALL ( 32 ) col1
----
32

query I rowsort
SELECT 13 + - + ( 9 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT DISTINCT + COUNT( ALL 95 )
----
1

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT + COUNT ( ALL 95 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT DISTINCT + COUNT( * ) * - 59 + COALESCE ( + - ( - + 25 ), - - 81 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT + COUNT ( * ) * - 59 + COALESCE ( + - ( - + 25 ), - - 81 ) AS col0
----
-34

query I rowsort
SELECT DISTINCT 14 + + ( - - 70 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6103
SELECT 8 + 27 DIV + 54 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6103
SELECT 8 + 27 / + 54 AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT COALESCE ( + 96, 88, + 51 * 31 ) DIV 91 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6104
SELECT COALESCE ( + 96, 88, + 51 * 31 ) / 91 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6105
SELECT DISTINCT - 68 + - - CAST( 66 AS SIGNED ) * - COUNT( * ) AS col0, + CASE COUNT( ALL + 71 ) WHEN + 89 + + + 88 THEN + 96 + + - 38 END * + 59
----
-134
NULL

skipif mysql # not compatible
query II rowsort label-6105
SELECT DISTINCT - 68 + - - CAST ( 66 AS INTEGER ) * - COUNT ( * ) AS col0, + CASE COUNT ( ALL + 71 ) WHEN + 89 + + + 88 THEN + 96 + + - 38 END * + 59
----
-134
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6106
SELECT ALL ( + MIN( DISTINCT - NULLIF ( CAST( NULL AS SIGNED ), + 46 ) ) ) + + + CASE - - 90 WHEN - 39 THEN NULL WHEN - 74 THEN + CASE - + 74 WHEN - + 93 THEN NULL WHEN + 63 THEN NULL WHEN COALESCE ( - + MIN( + 82 ), - 28 ) THEN - - ( - COUNT( * ) ) ELSE + 49 END ELSE NULL END * + ( - MAX( DISTINCT + 85 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL ( + MIN ( DISTINCT - NULLIF ( CAST ( NULL AS INTEGER ), + 46 ) ) ) + + + CASE - - 90 WHEN - 39 THEN NULL WHEN - 74 THEN + CASE - + 74 WHEN - + 93 THEN NULL WHEN + 63 THEN NULL WHEN COALESCE ( - + MIN ( + 82 ), - 28 ) THEN - - ( - COUNT ( * ) ) ELSE + 49 END ELSE NULL END * + ( - MAX ( DISTINCT + 85 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6107
SELECT 64 AS col0, - ( COUNT( * ) ) - ( + - NULLIF ( + 5, - + 97 ) ) * 90
----
64
449

skipif mysql # not compatible
query II rowsort label-6107
SELECT 64 AS col0, - ( COUNT ( * ) ) - ( + - NULLIF ( + 5, - + 97 ) ) * 90
----
64
449

onlyif mysql # DIV for integer division: 
query I rowsort label-6108
SELECT 13 + + 3 + - + ( + + 78 ) DIV - ( - 37 ) col1
----
14

skipif mysql # not compatible
query I rowsort label-6108
SELECT 13 + + 3 + - + ( + + 78 ) / - ( - 37 ) col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6109
SELECT 20 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-6109
SELECT 20 / - 87
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6110
SELECT 55 DIV - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6110
SELECT 55 / - 76 AS col1
----
0

query I rowsort
SELECT 65 * 93 col2
----
6045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6112
SELECT ALL - 48 + - COUNT( * ) / 43 / + COUNT( * ) - - 64 + - COUNT( * ) * + AVG ( + + CAST( NULL AS SIGNED ) ) * - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL - 48 + - COUNT ( * ) / 43 / + COUNT ( * ) - - 64 + - COUNT ( * ) * + AVG ( + + CAST ( NULL AS INTEGER ) ) * - 71
----
NULL

query I rowsort
SELECT ALL - 39 + - + 16 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT + MIN( - 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-6114
SELECT + MIN ( - 74 ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT DISTINCT COUNT( * ) + - 65 * + 38
----
-2469

skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT COUNT ( * ) + - 65 * + 38
----
-2469

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT 55 * - - COUNT( * ) col0
----
55

skipif mysql # not compatible
query I rowsort label-6116
SELECT 55 * - - COUNT ( * ) col0
----
55

query I rowsort
SELECT DISTINCT - 66 + - - 49 col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-6118
SELECT DISTINCT 18 * - 78 * + 36, + 97 - + MIN( + + 88 ) - CASE + 45 WHEN + - 92 * 47 THEN - NULLIF ( + + 8, 20 * - 32 ) / + COUNT( * ) / - 48 + - 12 WHEN + 51 * + 65 * MIN( ALL - 43 ) THEN NULL END * + COUNT( * ) col2
----
-50544
NULL

skipif mysql # not compatible
query II rowsort label-6118
SELECT DISTINCT 18 * - 78 * + 36, + 97 - + MIN ( + + 88 ) - CASE + 45 WHEN + - 92 * 47 THEN - NULLIF ( + + 8, 20 * - 32 ) / + COUNT ( * ) / - 48 + - 12 WHEN + 51 * + 65 * MIN ( ALL - 43 ) THEN NULL END * + COUNT ( * ) col2
----
-50544
NULL

query I rowsort
SELECT 38 * - 71 AS col2
----
-2698

query II rowsort
SELECT + 14 AS col2, + 21 AS col0
----
14
21

query I rowsort
SELECT 80 * - 27
----
-2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT ( 35 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT ( 35 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 3 - 36 col2
----
-33

query I rowsort
SELECT DISTINCT - 31 * + 35 AS col0
----
-1085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6125
SELECT + 47 * 76 + COALESCE ( CAST( NULL AS SIGNED ) + - 63 * - 32, + 97 * ( COUNT( * ) ), 86 DIV + COUNT( * ) + - 53 ) AS col0
----
3669

skipif mysql # not compatible
query I rowsort label-6125
SELECT + 47 * 76 + COALESCE ( CAST ( NULL AS INTEGER ) + - 63 * - 32, + 97 * ( COUNT ( * ) ), 86 / + COUNT ( * ) + - 53 ) AS col0
----
3669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6126
SELECT ALL - NULLIF ( - CAST( 36 AS SIGNED ), + 77 )
----
36

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - NULLIF ( - CAST ( 36 AS INTEGER ), + 77 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT 89 + - 34 * CASE ( 39 ) WHEN 51 / - 10 THEN + COUNT( ALL 24 ) * + 58 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT 89 + - 34 * CASE ( 39 ) WHEN 51 / - 10 THEN + COUNT ( ALL 24 ) * + 58 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT ALL - COUNT( 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL - COUNT ( 30 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT COUNT( * ) * - SUM( 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-6129
SELECT COUNT ( * ) * - SUM ( 80 )
----
-80

query I rowsort
SELECT ALL - 14 * + 46 AS col2
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT COUNT( DISTINCT 15 ) * - ( 53 ) + + 44 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6131
SELECT COUNT ( DISTINCT 15 ) * - ( 53 ) + + 44 AS col1
----
-9

query I rowsort
SELECT 15 + 74
----
89

query I rowsort
SELECT 78 * 88 + CASE + 45 WHEN 72 THEN NULL ELSE + 23 END * 43
----
7853

query I rowsort
SELECT 95 * 58
----
5510

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT 30 * COUNT( ALL - 81 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6135
SELECT 30 * COUNT ( ALL - 81 ) AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6136
SELECT ALL COALESCE ( 83, 3 * - 19, 75 DIV 58 ) + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL COALESCE ( 83, 3 * - 19, 75 / 58 ) + - COUNT ( * )
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6137
SELECT ALL 86 + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL 86 + CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6138
SELECT 14 + 70 DIV COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6138
SELECT 14 + 70 / COUNT ( * ) AS col1
----
84

query I rowsort
SELECT 20 * ( - 77 * 43 )
----
-66220

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT COUNT( * ) + - COALESCE ( ( + 42 ) + CASE 70 WHEN 33 - - 47 THEN + SUM( NULLIF ( - 94, 79 * 37 ) ) * 36 ELSE 43 END * - ( - COALESCE ( 2, 19 ) ), 33 )
----
-127

skipif mysql # not compatible
query I rowsort label-6140
SELECT COUNT ( * ) + - COALESCE ( ( + 42 ) + CASE 70 WHEN 33 - - 47 THEN + SUM ( NULLIF ( - 94, 79 * 37 ) ) * 36 ELSE 43 END * - ( - COALESCE ( 2, 19 ) ), 33 )
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT ALL + ( COUNT( * ) ) + 2
----
3

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL + ( COUNT ( * ) ) + 2
----
3

query I rowsort
SELECT - 73 + 23 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT DISTINCT 85 + - MAX( 6 - 25 ) * 88
----
1757

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT 85 + - MAX ( 6 - 25 ) * 88
----
1757

query I rowsort
SELECT - 49 + + 65
----
16

query I rowsort
SELECT - 8 * + 48 AS col1
----
-384

query I rowsort
SELECT + 14 + - 94
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6147
SELECT + COALESCE ( - 89, 90 * 26, ( ( - 54 ) ) * - 98, 20 * CAST( 43 * 58 AS SIGNED ) + + 89 ) + + COUNT( * ) DIV 57 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-6147
SELECT + COALESCE ( - 89, 90 * 26, ( ( - 54 ) ) * - 98, 20 * CAST ( 43 * 58 AS INTEGER ) + + 89 ) + + COUNT ( * ) / 57 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT ALL COUNT( ALL 78 ) * 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL COUNT ( ALL 78 ) * 71 AS col0
----
71

query I rowsort
SELECT + 95 + + 77
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT + 72 + COUNT( * ) * - 30
----
42

skipif mysql # not compatible
query I rowsort label-6150
SELECT + 72 + COUNT ( * ) * - 30
----
42

query I rowsort
SELECT - 83 * - 46
----
3818

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6152
SELECT DISTINCT 71 DIV COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT 71 / COUNT ( * ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6153
SELECT COUNT( * ) * 42 + 62 * CASE 45 + 0 WHEN + 18 + - SUM( 87 + - 38 ) THEN + 92 + + CAST( COUNT( * ) AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6153
SELECT COUNT ( * ) * 42 + 62 * CASE 45 + 0 WHEN + 18 + - SUM ( 87 + - 38 ) THEN + 92 + + CAST ( COUNT ( * ) AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6154
SELECT + COALESCE ( + 66, - 94 ) DIV + 13 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6154
SELECT + COALESCE ( + 66, - 94 ) / + 13 AS col0
----
5

query I rowsort
SELECT + 88 * 74
----
6512

query I rowsort
SELECT ALL - 45 * - 11
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT CASE 87 WHEN + 89 / COUNT( * ) THEN NULL WHEN + NULLIF ( 75, 29 / 40 ) THEN 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT CASE 87 WHEN + 89 / COUNT ( * ) THEN NULL WHEN + NULLIF ( 75, 29 / 40 ) THEN 98 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - + MAX( ALL - ( 9 ) ) * 10 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6158
SELECT - + MAX ( ALL - ( 9 ) ) * 10 AS col2
----
90

query I rowsort
SELECT ALL + 50 * 45 AS col0
----
2250

query I rowsort
SELECT + NULLIF ( 36, 20 * + 9 )
----
36

query I rowsort
SELECT - + 4 - - 10
----
6

query I rowsort
SELECT DISTINCT - + 61 * + 50 + 49 AS col2
----
-3001

query I rowsort
SELECT ALL + - 95 * + 37 + 78 * + 25
----
-1565

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT - - COUNT( * ) * NULLIF ( 61 + 88, 65 * - 85 ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-6164
SELECT - - COUNT ( * ) * NULLIF ( 61 + 88, 65 * - 85 ) AS col1
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-6165
SELECT ALL - 24 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL - 24 / 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT - + COALESCE ( - 60, ( 71 ), + ( - COUNT( * ) ) ) col1
----
60

skipif mysql # not compatible
query I rowsort label-6166
SELECT - + COALESCE ( - 60, ( 71 ), + ( - COUNT ( * ) ) ) col1
----
60

query I rowsort
SELECT DISTINCT + 21 * 17 + 40
----
397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT ALL + SUM( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) + 91 * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL + SUM ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + 91 * 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT + COUNT( * ) + COALESCE ( 55, 66 + 48, - ( + 48 ) + - 10 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-6169
SELECT + COUNT ( * ) + COALESCE ( 55, 66 + 48, - ( + 48 ) + - 10 ) col1
----
56

query I rowsort
SELECT - 18 + - 90 * - 94
----
8442

query I rowsort
SELECT - 32 + COALESCE ( CASE 20 WHEN 38 THEN NULL ELSE + COALESCE ( - 35, 71 * - 29 + 5, - 44 ) END, - 45, 76 )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6172
SELECT - 1 DIV MIN( + 1 + - COALESCE ( + 79, + 14, + 98 + - CASE - ( - 94 ) WHEN - 87 + + 61 THEN NULL WHEN 33 THEN 47 END ) )
----
0

skipif mysql # not compatible
query I rowsort label-6172
SELECT - 1 / MIN ( + 1 + - COALESCE ( + 79, + 14, + 98 + - CASE - ( - 94 ) WHEN - 87 + + 61 THEN NULL WHEN 33 THEN 47 END ) )
----
0

query I rowsort
SELECT - + 2 * 82
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-6174
SELECT DISTINCT + 38 DIV + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT + 38 / + 64 AS col1
----
0

query I rowsort
SELECT ALL + 20 - + 51 + + 28 * 54 * - 87
----
-131575

query I rowsort
SELECT ALL ( - 81 ) col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT - 54 + MAX( - 35 )
----
-89

skipif mysql # not compatible
query I rowsort label-6177
SELECT - 54 + MAX ( - 35 )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6178
SELECT ALL + 21 - + - COUNT( * ) DIV + COALESCE ( + ( + COUNT( * ) ), COUNT( * ) ) col0
----
22

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL + 21 - + - COUNT ( * ) / + COALESCE ( + ( + COUNT ( * ) ), COUNT ( * ) ) col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT - COALESCE ( MAX( DISTINCT 88 ), 66, + COUNT( * ) - 79 * + COUNT( * ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-6179
SELECT - COALESCE ( MAX ( DISTINCT 88 ), 66, + COUNT ( * ) - 79 * + COUNT ( * ) ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT - 18 + - COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-6180
SELECT - 18 + - COUNT ( * ) AS col0
----
-19

query I rowsort
SELECT ALL + 49 * + ( - NULLIF ( - 6, - 75 - 48 ) ) AS col2
----
294

query I rowsort
SELECT + 0 - 6 AS col1
----
-6

query I rowsort
SELECT DISTINCT 65 * - 76
----
-4940

query I rowsort
SELECT DISTINCT + 58 * 11 AS col0
----
638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT CAST( - + 71 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-6185
SELECT CAST ( - + 71 AS INTEGER )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT + + NULLIF ( SUM( 76 ), 66 ) * + 96 + ( 4 )
----
7300

skipif mysql # not compatible
query I rowsort label-6186
SELECT + + NULLIF ( SUM ( 76 ), 66 ) * + 96 + ( 4 )
----
7300

query I rowsort
SELECT + - 68 - 49
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT - MIN( - 69 ) * MAX( ALL + 12 * - 21 ) - - 75 AS col0
----
-17313

skipif mysql # not compatible
query I rowsort label-6188
SELECT - MIN ( - 69 ) * MAX ( ALL + 12 * - 21 ) - - 75 AS col0
----
-17313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6189
SELECT ALL 17 DIV - 45 + - ( - 10 + - COUNT( * ) ) col1
----
11

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL 17 / - 45 + - ( - 10 + - COUNT ( * ) ) col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6190
SELECT + - COUNT( * ) + 45 DIV + 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6190
SELECT + - COUNT ( * ) + 45 / + 62 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT - SUM( ALL - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-6191
SELECT - SUM ( ALL - 89 )
----
89

query I rowsort
SELECT + 3 * - + 63 + 9 AS col2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT 33 * - + 67 + COUNT( * ) AS col1
----
-2210

skipif mysql # not compatible
query I rowsort label-6193
SELECT 33 * - + 67 + COUNT ( * ) AS col1
----
-2210

query I rowsort
SELECT + 90 * 96 + 52 AS col2
----
8692

query I rowsort
SELECT ALL + 94 * 54
----
5076

query I rowsort
SELECT DISTINCT - 36 + + 86 + 71 * + 80
----
5730

query I rowsort
SELECT ALL 19 + + 25 - - ( + 26 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT DISTINCT + 45 + - MIN( 16 ) * 90
----
-1395

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT + 45 + - MIN ( 16 ) * 90
----
-1395

query I rowsort
SELECT - 2 * + 53 + 17
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT ALL - + NULLIF ( COUNT( * ), - 81 * + 97 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL - + NULLIF ( COUNT ( * ), - 81 * + 97 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT ALL - MIN( ALL 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL - MIN ( ALL 41 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6202
SELECT - NULLIF ( CAST( NULL AS SIGNED ), + ( + 18 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6202
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), + ( + 18 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT ALL + + NULLIF ( 65, - 39 * 60 - - 37 ) - ( + COUNT( * ) - + 31 )
----
95

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL + + NULLIF ( 65, - 39 * 60 - - 37 ) - ( + COUNT ( * ) - + 31 )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6204
SELECT CAST( NULL AS SIGNED ) * 88 + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6204
SELECT CAST ( NULL AS INTEGER ) * 88 + 24
----
NULL

query II rowsort
SELECT ALL 32, 35 AS col2
----
32
35

query II rowsort
SELECT ALL 35, 22 + - - ( 52 ) AS col0
----
35
74

query II rowsort
SELECT - 36 AS col1, + ( - 39 ) AS col2
----
-36
-39

query I rowsort
SELECT ALL + 16 * 7
----
112

query I rowsort
SELECT 64 * + - 75
----
-4800

query II rowsort
SELECT ALL 42, ( 32 ) + 82 AS col2
----
42
114

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT COALESCE ( + 51, 80 DIV 42 ) + 53 col2
----
104

skipif mysql # not compatible
query I rowsort label-6211
SELECT COALESCE ( + 51, 80 / 42 ) + 53 col2
----
104

query I rowsort
SELECT 54 * 66
----
3564

query I rowsort
SELECT 90 * 8 AS col1
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6214
SELECT 93 + + - CAST( + COALESCE ( - 54, + 52 ) AS SIGNED ) AS col2
----
147

skipif mysql # not compatible
query I rowsort label-6214
SELECT 93 + + - CAST ( + COALESCE ( - 54, + 52 ) AS INTEGER ) AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT 64 * 21 * + ( + COUNT( * ) )
----
1344

skipif mysql # not compatible
query I rowsort label-6215
SELECT 64 * 21 * + ( + COUNT ( * ) )
----
1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6216
SELECT ALL - SUM( + 24 ) DIV + 99 * - 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - SUM ( + 24 ) / + 99 * - 30 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6217
SELECT 73 DIV + - 25
----
-2

skipif mysql # not compatible
query I rowsort label-6217
SELECT 73 / + - 25
----
-2

query I rowsort
SELECT 80 + ( + + 16 ) AS col0
----
96

query II rowsort
SELECT - 64 col2, 82 AS col2
----
-64
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT 89 + + 35 DIV - 94 * 19 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6220
SELECT 89 + + 35 / - 94 * 19 AS col0
----
89

query I rowsort
SELECT 79 * - 59 AS col0
----
-4661

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT COALESCE ( - COUNT( ALL - 44 ), 9 ) + + 35
----
34

skipif mysql # not compatible
query I rowsort label-6222
SELECT COALESCE ( - COUNT ( ALL - 44 ), 9 ) + + 35
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT + CASE + + 12 WHEN + 59 * + AVG ( DISTINCT + ( + ( 81 ) ) ) THEN NULL WHEN 81 / ( ( - 95 ) ) + 55 THEN + MIN( ALL - 41 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT + CASE + + 12 WHEN + 59 * + AVG ( DISTINCT + ( + ( 81 ) ) ) THEN NULL WHEN 81 / ( ( - 95 ) ) + 55 THEN + MIN ( ALL - 41 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - + ( 34 ) AS col1
----
-34

query I rowsort
SELECT 48 * 50 + 70 * 71 + 81
----
7451

query I rowsort
SELECT 90 * + 17 AS col2
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT DISTINCT + - COUNT( * ) * - 88
----
88

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT + - COUNT ( * ) * - 88
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6228
SELECT 82 DIV + 37
----
2

skipif mysql # not compatible
query I rowsort label-6228
SELECT 82 / + 37
----
2

query I rowsort
SELECT ALL - - 55 + - + 57 AS col0
----
-2

query I rowsort
SELECT + 73 - - 21
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6231
SELECT + - CASE - + 45 WHEN - 18 + - ( COUNT( * ) ) * COUNT( * ) THEN 75 DIV - 58 + - CASE 20 WHEN - 6 + + COUNT( ALL 83 ) THEN 90 * 77 + - COUNT( DISTINCT 21 ) ELSE 32 * CAST( - 13 AS SIGNED ) END ELSE 22 + 17 END
----
-39

skipif mysql # not compatible
query I rowsort label-6231
SELECT + - CASE - + 45 WHEN - 18 + - ( COUNT ( * ) ) * COUNT ( * ) THEN 75 / - 58 + - CASE 20 WHEN - 6 + + COUNT ( ALL 83 ) THEN 90 * 77 + - COUNT ( DISTINCT 21 ) ELSE 32 * CAST ( - 13 AS INTEGER ) END ELSE 22 + 17 END
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT 62 DIV + 5
----
12

skipif mysql # not compatible
query I rowsort label-6232
SELECT 62 / + 5
----
12

query II rowsort
SELECT ALL - + 31 col0, 28 + + 40 * - 83 AS col2
----
-31
-3292

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT + CASE + - 39 WHEN - + 42 * - 11 THEN 58 * AVG ( - 1 * - 91 ) + - COALESCE ( 53, 89 * + 37 + 31 ) * - COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT + CASE + - 39 WHEN - + 42 * - 11 THEN 58 * AVG ( - 1 * - 91 ) + - COALESCE ( 53, 89 * + 37 + 31 ) * - COUNT ( * ) END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6235
SELECT ALL 53 - - 37 DIV - - 26 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL 53 - - 37 / - - 26 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT - COUNT( * ) - 92 * 40
----
-3681

skipif mysql # not compatible
query I rowsort label-6236
SELECT - COUNT ( * ) - 92 * 40
----
-3681

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6237
SELECT ALL 93 DIV + COUNT( * ) + - 60
----
33

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL 93 / + COUNT ( * ) + - 60
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6238
SELECT DISTINCT CAST( NULL AS DECIMAL ) * ( 78 ) * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT CAST ( NULL AS REAL ) * ( 78 ) * 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT NULLIF ( + - 35, 23 ) + - MIN( 14 )
----
-49

skipif mysql # not compatible
query I rowsort label-6239
SELECT NULLIF ( + - 35, 23 ) + - MIN ( 14 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT COUNT( * ) + + + ( 14 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6240
SELECT COUNT ( * ) + + + ( 14 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6241
SELECT 90 + + 92, ( + ( + COUNT( * ) ) ) + - 14 AS col1
----
182
-13

skipif mysql # not compatible
query II rowsort label-6241
SELECT 90 + + 92, ( + ( + COUNT ( * ) ) ) + - 14 AS col1
----
182
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT CAST( - ( + 25 ) AS SIGNED ) * - CAST( CASE 31 WHEN + 5 + - 0 * 74 THEN 70 ELSE + 46 END AS SIGNED )
----
1150

skipif mysql # not compatible
query I rowsort label-6242
SELECT CAST ( - ( + 25 ) AS INTEGER ) * - CAST ( CASE 31 WHEN + 5 + - 0 * 74 THEN 70 ELSE + 46 END AS INTEGER )
----
1150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT 83 + 4 * CAST( 66 AS SIGNED ) AS col2
----
347

skipif mysql # not compatible
query I rowsort label-6243
SELECT 83 + 4 * CAST ( 66 AS INTEGER ) AS col2
----
347

query I rowsort
SELECT 89 * - 7 * + 29
----
-18067

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT CASE + - ( + 15 ) WHEN - + 73 THEN COALESCE ( 41, - ( + 37 ), 63 + 27 ) WHEN 1 - CASE 78 WHEN - COUNT( * ) THEN + 1 * 70 WHEN + 49 THEN NULL END THEN NULL END - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT CASE + - ( + 15 ) WHEN - + 73 THEN COALESCE ( 41, - ( + 37 ), 63 + 27 ) WHEN 1 - CASE 78 WHEN - COUNT ( * ) THEN + 1 * 70 WHEN + 49 THEN NULL END THEN NULL END - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6246
SELECT ALL - 86 + - - 62 + + 86 + + + 44 + 50 DIV 11 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL - 86 + - - 62 + + 86 + + + 44 + 50 / 11 AS col0
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6247
SELECT 79 * + COUNT( * ) * CASE + CAST( + 87 AS SIGNED ) WHEN - 52 THEN + 48 END * 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT 79 * + COUNT ( * ) * CASE + CAST ( + 87 AS INTEGER ) WHEN - 52 THEN + 48 END * 99 AS col0
----
NULL

query II rowsort
SELECT 15 * - + 19 AS col0, NULLIF ( + 23, + 16 )
----
-285
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6249
SELECT CAST( + COUNT( * ) AS SIGNED ) * 37 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6249
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * 37 AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6250
SELECT ALL + 14 + + + CAST( + - 15 AS SIGNED ) - + 40
----
-41

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL + 14 + + + CAST ( + - 15 AS INTEGER ) - + 40
----
-41

query I rowsort
SELECT DISTINCT + 61 * + - 40 AS col2
----
-2440

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL 52 * MAX( + - 72 ) AS col0
----
-3744

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL 52 * MAX ( + - 72 ) AS col0
----
-3744

query I rowsort
SELECT ALL + - 42 * + ( + 19 ) + + 72 col0
----
-726

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT + MIN( 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6254
SELECT + MIN ( 62 ) AS col1
----
62

query I rowsort
SELECT 50 * 41 * + - 38 - - 49
----
-77851

query I rowsort
SELECT + NULLIF ( - 57, 28 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6257
SELECT - + 81 + + COUNT( * ) AS col0, + MAX( DISTINCT 37 )
----
-80
37

skipif mysql # not compatible
query II rowsort label-6257
SELECT - + 81 + + COUNT ( * ) AS col0, + MAX ( DISTINCT 37 )
----
-80
37

query I rowsort
SELECT - - 2 * + 99 - - 30 + - 36
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT DISTINCT - + NULLIF ( - COUNT( * ), 19 ) * + + 53
----
53

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - + NULLIF ( - COUNT ( * ), 19 ) * + + 53
----
53

query I rowsort
SELECT - - 73 * + 26 + - 47 col2
----
1851

query I rowsort
SELECT 40 * - 7 + + 57
----
-223

query I rowsort
SELECT + + 65 + - 39
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6263
SELECT 62 * - 77 * 58 + - + COALESCE ( - + 50, + 79 * 47, 20 ) DIV 96 AS col1
----
-276892

skipif mysql # not compatible
query I rowsort label-6263
SELECT 62 * - 77 * 58 + - + COALESCE ( - + 50, + 79 * 47, 20 ) / 96 AS col1
----
-276892

onlyif mysql # DIV for integer division: 
query I rowsort label-6264
SELECT + 49 DIV - - 60 * + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6264
SELECT + 49 / - - 60 * + 67 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT + 9 * COALESCE ( 10, + 0, + 83 ) * COUNT( * ) + MIN( 60 ) col0
----
150

skipif mysql # not compatible
query I rowsort label-6265
SELECT + 9 * COALESCE ( 10, + 0, + 83 ) * COUNT ( * ) + MIN ( 60 ) col0
----
150

query I rowsort
SELECT - 96 * - - ( - + 98 ) AS col2
----
9408

query I rowsort
SELECT ALL 7 * - - 7
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6268
SELECT + 13 DIV - + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-6268
SELECT + 13 / - + COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6269
SELECT ALL - 17 DIV - - COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL - 17 / - - COUNT ( * ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT - SUM( DISTINCT - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6270
SELECT - SUM ( DISTINCT - 55 ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6271
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), + ( ( - 78 ) ) * CASE + 93 WHEN + CASE - 94 WHEN 13 THEN + 32 * + 31 + COUNT( - 81 + - 31 ) WHEN - 84 THEN NULL END THEN NULL ELSE - 93 * 13 END ) * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), + ( ( - 78 ) ) * CASE + 93 WHEN + CASE - 94 WHEN 13 THEN + 32 * + 31 + COUNT ( - 81 + - 31 ) WHEN - 84 THEN NULL END THEN NULL ELSE - 93 * 13 END ) * 3
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6272
SELECT DISTINCT - 45 + 35 DIV 55 * - 47
----
-45

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT - 45 + 35 / 55 * - 47
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT DISTINCT MIN( - 87 ) + - + 32 + + COUNT( * ) AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT MIN ( - 87 ) + - + 32 + + COUNT ( * ) AS col1
----
-118

query II rowsort
SELECT 80, + 79 * - 14 + + 38 + + - 72 AS col0
----
80
-1140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6275
SELECT + NULLIF ( - + 97, 31 ) - + COUNT( * ) DIV + 74 * 51 + + COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6275
SELECT + NULLIF ( - + 97, 31 ) - + COUNT ( * ) / + 74 * 51 + + COUNT ( * ) AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT + NULLIF ( - COUNT( * ), + 85 ) + - CAST( + - 40 AS SIGNED ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6276
SELECT + NULLIF ( - COUNT ( * ), + 85 ) + - CAST ( + - 40 AS INTEGER ) AS col1
----
39

query I rowsort
SELECT + 6 * + + 24 AS col0
----
144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6278
SELECT - 29 * CASE 53 WHEN + 76 * 75 THEN + 36 WHEN + CAST( - 7 AS DECIMAL ) THEN NULL WHEN 81 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6278
SELECT - 29 * CASE 53 WHEN + 76 * 75 THEN + 36 WHEN + CAST ( - 7 AS REAL ) THEN NULL WHEN 81 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 17 + - - 18 * + + 25
----
467

query I rowsort
SELECT ALL - 51 * + + 47 * - 62 + - 9 + - 2 + 38
----
148641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6281
SELECT + - COALESCE ( 60, + - 23 - - NULLIF ( 56, 62 ) * 5, - MIN( ALL + CAST( NULL AS SIGNED ) ), 61 ) + 2 DIV + 70
----
-60

skipif mysql # not compatible
query I rowsort label-6281
SELECT + - COALESCE ( 60, + - 23 - - NULLIF ( 56, 62 ) * 5, - MIN ( ALL + CAST ( NULL AS INTEGER ) ), 61 ) + 2 / + 70
----
-60

query I rowsort
SELECT ALL + ( + - NULLIF ( + + 40, - 84 * - 22 ) ) AS col2
----
-40

query I rowsort
SELECT + + 71 + - + 9
----
62

query I rowsort
SELECT ALL + 60 - + 64
----
-4

query I rowsort
SELECT + - 2 * - 99 - + 59
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT MAX( ALL 96 )
----
96

skipif mysql # not compatible
query I rowsort label-6286
SELECT MAX ( ALL 96 )
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6287
SELECT + COUNT( * ) DIV + - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6287
SELECT + COUNT ( * ) / + - 89 AS col2
----
0

query I rowsort
SELECT - ( - 21 ) + 70 AS col2
----
91

query I rowsort
SELECT - 29 * 92 * + - 37 col0
----
98716

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT + MIN( ALL + + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-6290
SELECT + MIN ( ALL + + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT + - COUNT( * ) * ( + COUNT( ALL - ( - + 12 ) ) ) + + 0
----
-1

skipif mysql # not compatible
query I rowsort label-6291
SELECT + - COUNT ( * ) * ( + COUNT ( ALL - ( - + 12 ) ) ) + + 0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6292
SELECT ALL + NULLIF ( 3, 43 * CAST( - 81 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL + NULLIF ( 3, 43 * CAST ( - 81 AS INTEGER ) )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6293
SELECT + + ( + 87 ) DIV - COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-6293
SELECT + + ( + 87 ) / - COUNT ( * ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL - 55 * + 46 * + - COUNT( * ) * - 62
----
-156860

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL - 55 * + 46 * + - COUNT ( * ) * - 62
----
-156860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6295
SELECT DISTINCT + - CASE + 15 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 13 * + - ( CAST( NULL AS SIGNED ) ) THEN 51 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT + - CASE + 15 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 13 * + - ( CAST ( NULL AS INTEGER ) ) THEN 51 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT + COUNT( DISTINCT 68 )
----
1

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT + COUNT ( DISTINCT 68 )
----
1

query I rowsort
SELECT + 71 - - 12 AS col2
----
83

query I rowsort
SELECT - - 45 * 34
----
1530

query I rowsort
SELECT DISTINCT + ( - - 65 ) AS col2
----
65

query II rowsort
SELECT + 86 AS col2, - 32 * + - 83
----
86
2656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6301
SELECT ALL + CASE COUNT( * ) WHEN + CAST( 65 AS SIGNED ) THEN NULL ELSE - - 23 END AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + CASE COUNT ( * ) WHEN + CAST ( 65 AS INTEGER ) THEN NULL ELSE - - 23 END AS col1
----
23

query I rowsort
SELECT ALL 49 * - 56 + + - 7
----
-2751

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - MIN( ALL + - 61 ) - - COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6303
SELECT - MIN ( ALL + - 61 ) - - COUNT ( * ) AS col1
----
62

query I rowsort
SELECT ALL 67 * + 31 * + + 79 + + 27
----
164110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6305
SELECT - CAST( - 73 AS SIGNED ) - + 25 + + 21 * 40 * - 33 * COUNT( + 49 * 30 ) AS col1
----
-27672

skipif mysql # not compatible
query I rowsort label-6305
SELECT - CAST ( - 73 AS INTEGER ) - + 25 + + 21 * 40 * - 33 * COUNT ( + 49 * 30 ) AS col1
----
-27672

query I rowsort
SELECT ALL + ( - 4 ) col2
----
-4

query I rowsort
SELECT COALESCE ( - + 29, 21 + + 75 ) col1
----
-29

query I rowsort
SELECT COALESCE ( + 40, - 86 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL NULLIF ( 20, + COUNT( * ) + - 98 * + COUNT( * ) ) * + + 87 + CASE - 44 WHEN 97 THEN + COUNT( * ) ELSE 3 END * SUM( DISTINCT 76 )
----
1968

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL NULLIF ( 20, + COUNT ( * ) + - 98 * + COUNT ( * ) ) * + + 87 + CASE - 44 WHEN 97 THEN + COUNT ( * ) ELSE 3 END * SUM ( DISTINCT 76 )
----
1968

query I rowsort
SELECT - 30 + - - 14
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT - NULLIF ( - - SUM( + 35 ), 14 + - - ( - ( 52 ) ) )
----
-35

skipif mysql # not compatible
query I rowsort label-6311
SELECT - NULLIF ( - - SUM ( + 35 ), 14 + - - ( - ( 52 ) ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT - NULLIF ( - + 15, - MAX( - 59 ) * 60 ) + + 20 + 5 * + 98
----
525

skipif mysql # not compatible
query I rowsort label-6312
SELECT - NULLIF ( - + 15, - MAX ( - 59 ) * 60 ) + + 20 + 5 * + 98
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT + 12 - + - COUNT( * ) + 14 + + 6 * + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6313
SELECT + 12 - + - COUNT ( * ) + 14 + + 6 * + COUNT ( * )
----
33

query I rowsort
SELECT + 29 + - 81 * - 43 AS col1
----
3512

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL + NULLIF ( + COUNT( * ), 42 / + - 33 ) * + 36 * + 73 + 10 * COUNT( * ) + + 28
----
2666

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL + NULLIF ( + COUNT ( * ), 42 / + - 33 ) * + 36 * + 73 + 10 * COUNT ( * ) + + 28
----
2666

query I rowsort
SELECT - COALESCE ( 46, + 83 )
----
-46

query I rowsort
SELECT DISTINCT + 69 + + 99
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-6318
SELECT COUNT( * ) * + + 20 AS col2, COUNT( * )
----
20
1

skipif mysql # not compatible
query II rowsort label-6318
SELECT COUNT ( * ) * + + 20 AS col2, COUNT ( * )
----
20
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT ALL ( + COUNT( * ) ) * 92 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL ( + COUNT ( * ) ) * 92 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT DISTINCT 46 - - 12 * COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT 46 - - 12 * COUNT ( * ) AS col2
----
58

query I rowsort
SELECT 17 + - 95 + - 12
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6322
SELECT DISTINCT COALESCE ( CASE - CAST( 52 AS SIGNED ) WHEN + COUNT( * ) - - 67 THEN NULL ELSE + COUNT( * ) * - 78 END, - CAST( - 20 AS SIGNED ) * 99, - 99 * - ( - 10 ) ) - MAX( 70 ) * + 54 AS col0
----
-3858

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT COALESCE ( CASE - CAST ( 52 AS INTEGER ) WHEN + COUNT ( * ) - - 67 THEN NULL ELSE + COUNT ( * ) * - 78 END, - CAST ( - 20 AS INTEGER ) * 99, - 99 * - ( - 10 ) ) - MAX ( 70 ) * + 54 AS col0
----
-3858

query II rowsort
SELECT ALL - 78 AS col0, 29 col0
----
-78
29

query I rowsort
SELECT - 26 + + - 21 + + 56 + 54 * + 89
----
4815

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT - COUNT( * ) * + 79
----
-79

skipif mysql # not compatible
query I rowsort label-6325
SELECT - COUNT ( * ) * + 79
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6326
SELECT 53 AS col1, 84 * + NULLIF ( + 7, + 12 + + COUNT( * ) )
----
53
588

skipif mysql # not compatible
query II rowsort label-6326
SELECT 53 AS col1, 84 * + NULLIF ( + 7, + 12 + + COUNT ( * ) )
----
53
588

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT - ( + SUM( + 14 ) ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-6327
SELECT - ( + SUM ( + 14 ) ) col2
----
-14

query II rowsort
SELECT - 29 AS col1, 7 * 34 * - + 41 - + + 30 - + 7
----
-29
-9795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6329
SELECT ALL - CAST( + 82 AS SIGNED ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL - CAST ( + 82 AS INTEGER ) AS col1
----
-82

query I rowsort
SELECT - 3 * 70 + - 57 AS col2
----
-267

query I rowsort
SELECT - - 35 * 64 + - 18
----
2222

query II rowsort
SELECT 8, - 21 AS col2
----
8
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-6333
SELECT - 72 DIV 8 + COALESCE ( + 25, + - 16 * + 76 - - 94 ) + - 91 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-6333
SELECT - 72 / 8 + COALESCE ( + 25, + - 16 * + 76 - - 94 ) + - 91 AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6334
SELECT + 64 * - 10 - + + 2 * + - COALESCE ( - COUNT( * ), + 27 ) * - COUNT( * ) - ( + 79 ) DIV 93 AS col2
----
-638

skipif mysql # not compatible
query I rowsort label-6334
SELECT + 64 * - 10 - + + 2 * + - COALESCE ( - COUNT ( * ), + 27 ) * - COUNT ( * ) - ( + 79 ) / 93 AS col2
----
-638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6335
SELECT 75 DIV + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6335
SELECT 75 / + COUNT ( * ) AS col0
----
75

query I rowsort
SELECT + 69 + 34 * - - 68 * + ( 83 ) + - 43
----
191922

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT + 76 DIV - 97 - + + 66 - - - ( - 87 ) + - 41
----
-20

skipif mysql # not compatible
query I rowsort label-6337
SELECT + 76 / - 97 - + + 66 - - - ( - 87 ) + - 41
----
-20

query I rowsort
SELECT ALL - 52 * - 47
----
2444

query I rowsort
SELECT DISTINCT - COALESCE ( + NULLIF ( + CASE WHEN NULL IS NULL THEN 5 END, 43 + - 69 * 60 ), + 24 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6340
SELECT CAST( - SUM( DISTINCT + + 3 ) AS SIGNED ) DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-6340
SELECT CAST ( - SUM ( DISTINCT + + 3 ) AS INTEGER ) / + 18
----
0

query I rowsort
SELECT DISTINCT 37 + - 91 + 21 AS col2
----
-33

query I rowsort
SELECT ALL 72 + 68 - - 90 AS col1
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT 28 + - - 26 + MIN( ALL + + 81 )
----
135

skipif mysql # not compatible
query I rowsort label-6343
SELECT 28 + - - 26 + MIN ( ALL + + 81 )
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6344
SELECT ALL + 55 * 26 * CAST( - 7 AS SIGNED ) AS col0
----
-10010

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL + 55 * 26 * CAST ( - 7 AS INTEGER ) AS col0
----
-10010

query I rowsort
SELECT DISTINCT + 82 - 27 col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6346
SELECT COUNT( * ) - 91 col0, + 81 + - - ( - 11 ) + + - 40 + + 66 - 3 * 35 DIV 99 AS col0
----
-90
95

skipif mysql # not compatible
query II rowsort label-6346
SELECT COUNT ( * ) - 91 col0, + 81 + - - ( - 11 ) + + - 40 + + 66 - 3 * 35 / 99 AS col0
----
-90
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6347
SELECT + 84 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT + 84 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT + 94 + + NULLIF ( + + COUNT( * ), - - 94 + + - 64 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6348
SELECT + 94 + + NULLIF ( + + COUNT ( * ), - - 94 + + - 64 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-6349
SELECT - - COUNT( + 57 ), - 75 AS col0
----
1
-75

skipif mysql # not compatible
query II rowsort label-6349
SELECT - - COUNT ( + 57 ), - 75 AS col0
----
1
-75

query I rowsort
SELECT + 7 + 62
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT + 51 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-6351
SELECT + 51 / 56
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6352
SELECT DISTINCT + - COUNT( * ) DIV + + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT + - COUNT ( * ) / + + 86 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL - MIN( CASE + 91 WHEN 46 THEN + ( + 10 ) + + + 49 + - ( 11 ) / 95 ELSE NULL END ) * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL - MIN ( CASE + 91 WHEN 46 THEN + ( + 10 ) + + + 49 + - ( 11 ) / 95 ELSE NULL END ) * 90
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6354
SELECT - 1 * - 12 + SUM( DISTINCT ( + 48 ) ), - 33 AS col1
----
60
-33

skipif mysql # not compatible
query II rowsort label-6354
SELECT - 1 * - 12 + SUM ( DISTINCT ( + 48 ) ), - 33 AS col1
----
60
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT ALL - MIN( 15 ) + + 97 + + 14 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL - MIN ( 15 ) + + 97 + + 14 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT MAX( ALL COALESCE ( + - 86, 49 * 77, - 34 * - + 59 - COALESCE ( - 68, 8, - 61 * + 42 + - ( + 86 ) ) * 70 ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-6356
SELECT MAX ( ALL COALESCE ( + - 86, 49 * 77, - 34 * - + 59 - COALESCE ( - 68, 8, - 61 * + 42 + - ( + 86 ) ) * 70 ) ) AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6357
SELECT + 36 * - 24 * - COALESCE ( + 44, + NULLIF ( 29, + - 15 ), + 52 DIV 29, 10 * - 4 ) + 10 DIV 69
----
38016

skipif mysql # not compatible
query I rowsort label-6357
SELECT + 36 * - 24 * - COALESCE ( + 44, + NULLIF ( 29, + - 15 ), + 52 / 29, 10 * - 4 ) + 10 / 69
----
38016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT + 67 * 61 + + - 89 * + 62 * - CAST( + 98 AS SIGNED )
----
544851

skipif mysql # not compatible
query I rowsort label-6358
SELECT + 67 * 61 + + - 89 * + 62 * - CAST ( + 98 AS INTEGER )
----
544851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6359
SELECT + 49 * COUNT( * ) + - + 7 + - 75 - + 15 + 61 DIV + 63 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-6359
SELECT + 49 * COUNT ( * ) + - + 7 + - 75 - + 15 + 61 / + 63 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT MAX( DISTINCT + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-6360
SELECT MAX ( DISTINCT + 52 )
----
52

query II rowsort
SELECT ALL - 9 AS col0, + 57 AS col1
----
-9
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6362
SELECT DISTINCT - 25 col0, - 87 + + - CASE WHEN NULL BETWEEN NULL AND + CAST( - 1 AS SIGNED ) THEN - 9 END AS col0
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-6362
SELECT DISTINCT - 25 col0, - 87 + + - CASE WHEN NULL BETWEEN NULL AND + CAST ( - 1 AS INTEGER ) THEN - 9 END AS col0
----
-25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT 64 - CASE - 20 WHEN - 43 THEN 38 * + 85 + - 86 * + - COUNT( DISTINCT 64 ) + - ( COUNT( * ) ) * - 28 ELSE + 72 END + - 82 * 25 AS col1
----
-2058

skipif mysql # not compatible
query I rowsort label-6363
SELECT 64 - CASE - 20 WHEN - 43 THEN 38 * + 85 + - 86 * + - COUNT ( DISTINCT 64 ) + - ( COUNT ( * ) ) * - 28 ELSE + 72 END + - 82 * 25 AS col1
----
-2058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6364
SELECT ALL 59 * - CAST( NULL AS SIGNED ) + - 71 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL 59 * - CAST ( NULL AS INTEGER ) + - 71 col2
----
NULL

query I rowsort
SELECT ( + - 39 ) - + ( + 79 ) - + 73 + - 66 * - 94 * 25 + 77 AS col1
----
154986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6366
SELECT + COUNT( + + CASE 14 WHEN + - 75 + + 10 THEN 81 WHEN - CAST( + 52 AS SIGNED ) * 17 THEN NULL WHEN + 87 THEN NULL END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6366
SELECT + COUNT ( + + CASE 14 WHEN + - 75 + + 10 THEN 81 WHEN - CAST ( + 52 AS INTEGER ) * 17 THEN NULL WHEN + 87 THEN NULL END ) AS col0
----
0

query I rowsort
SELECT DISTINCT 47 - 5 AS col1
----
42

query I rowsort
SELECT + 76 - - + COALESCE ( + 83, + ( - + 75 ) )
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL 82 * - - ( MAX( DISTINCT 90 ) ) * - 71 + 73 AS col0
----
-523907

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL 82 * - - ( MAX ( DISTINCT 90 ) ) * - 71 + 73 AS col0
----
-523907

query I rowsort
SELECT + 53 - ( 45 ) AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6371
SELECT ALL - ( + 58 ) DIV + - 8 - + 78
----
-71

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL - ( + 58 ) / + - 8 - + 78
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT - 70 * + + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-6372
SELECT - 70 * + + COUNT ( * )
----
-70

query I rowsort
SELECT + ( + + 40 ) * - - 17
----
680

query I rowsort
SELECT - 46 * + 87 * + - 54 AS col0
----
216108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6375
SELECT + 17 + - - 22 * - + CAST( - 20 AS SIGNED ) * COUNT( * ) AS col0
----
457

skipif mysql # not compatible
query I rowsort label-6375
SELECT + 17 + - - 22 * - + CAST ( - 20 AS INTEGER ) * COUNT ( * ) AS col0
----
457

query I rowsort
SELECT + + 39 + - 44 + + + 1 + - - 87 * 68 AS col0
----
5912

query I rowsort
SELECT + 22 * CASE + - 43 WHEN + 38 THEN - 32 END AS col2
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - + 99, + + 89 * + 12 ) col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT DISTINCT MAX( + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT MAX ( + 88 )
----
88

query I rowsort
SELECT ALL + 79 * 42 * - 89 AS col1
----
-295302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6381
SELECT - + CASE - 96 WHEN + CAST( + - NULLIF ( + 27, + COUNT( * ) * 87 + + + CAST( NULL AS DECIMAL ) ) AS SIGNED ) + 6 / 2 THEN NULL ELSE 9 + 79 END * + 7 col2
----
-616

skipif mysql # not compatible
query I rowsort label-6381
SELECT - + CASE - 96 WHEN + CAST ( + - NULLIF ( + 27, + COUNT ( * ) * 87 + + + CAST ( NULL AS REAL ) ) AS INTEGER ) + 6 / 2 THEN NULL ELSE 9 + 79 END * + 7 col2
----
-616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT - CAST( - 11 AS SIGNED ) + + + 28 - + 78 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-6382
SELECT - CAST ( - 11 AS INTEGER ) + + + 28 - + 78 AS col1
----
-39

query I rowsort
SELECT DISTINCT + 35 * - 88
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT + - 71 - + - SUM( + + 50 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-6384
SELECT + - 71 - + - SUM ( + + 50 ) AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6385
SELECT - + NULLIF ( - 22, - 61 ) / - - 66 + + 59 + - CAST( NULL AS SIGNED ) * + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT - + NULLIF ( - 22, - 61 ) / - - 66 + + 59 + - CAST ( NULL AS INTEGER ) * + 13 AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( COALESCE ( - 71, - 26 ), + - 58 ) + + 82 AS col0
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6387
SELECT - COUNT( * ) + + 42 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT - COUNT ( * ) + + 42 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 9 + - + 53 AS col2
----
-62

query I rowsort
SELECT DISTINCT + 83 + ( - + 16 )
----
67

query I rowsort
SELECT DISTINCT NULLIF ( - - 29, + + 30 + + - 84 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6391
SELECT ALL - + NULLIF ( - + 78, + + 10 ) DIV COUNT( * ) * 99
----
7722

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL - + NULLIF ( - + 78, + + 10 ) / COUNT ( * ) * 99
----
7722

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6392
SELECT ALL COALESCE ( - 52, - COUNT( * ) ) * + COUNT( * ) * - + ( + - CAST( NULL AS DECIMAL ) ) + + 86 col0, COUNT( ALL 8 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6392
SELECT ALL COALESCE ( - 52, - COUNT ( * ) ) * + COUNT ( * ) * - + ( + - CAST ( NULL AS REAL ) ) + + 86 col0, COUNT ( ALL 8 )
----
NULL
1

query II rowsort
SELECT ( + 54 ) AS col1, 56
----
54
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT + COUNT( - 31 ) * + 9 * 89 * - 67 * + + 43 + + ( + - 58 )
----
-2307739

skipif mysql # not compatible
query I rowsort label-6394
SELECT + COUNT ( - 31 ) * + 9 * 89 * - 67 * + + 43 + + ( + - 58 )
----
-2307739

query I rowsort
SELECT + NULLIF ( 84, + 88 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT 63 * 9 - - - 78 + - 80 * COUNT( * ) * COUNT( * )
----
409

skipif mysql # not compatible
query I rowsort label-6396
SELECT 63 * 9 - - - 78 + - 80 * COUNT ( * ) * COUNT ( * )
----
409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6397
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) / 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6397
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) / 60
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6398
SELECT - 17 DIV 15 - + 52 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6398
SELECT - 17 / 15 - + 52 AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6399
SELECT DISTINCT SUM( DISTINCT + 83 ) * 77 - - + 87 DIV - 60 AS col0
----
6390

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT SUM ( DISTINCT + 83 ) * 77 - - + 87 / - 60 AS col0
----
6390

query I rowsort
SELECT ALL + NULLIF ( - 5, - 38 )
----
-5

query I rowsort
SELECT 0 * - + 83 + - - 0
----
0

query I rowsort
SELECT + 53 + + + 86
----
139

query II rowsort
SELECT + 47 * - 65, ( - 49 ) + 45 AS col1
----
-3055
-4

query I rowsort
SELECT - 72 * + 30 * 37 + 41
----
-79879

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT - 35 * - 44 + + ( - + SUM( ALL COALESCE ( - - 18, 24 ) ) ) AS col2
----
1522

skipif mysql # not compatible
query I rowsort label-6405
SELECT - 35 * - 44 + + ( - + SUM ( ALL COALESCE ( - - 18, 24 ) ) ) AS col2
----
1522

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT NULLIF ( + + 6, - 45 * COUNT( * ) + - 38 ) * - ( + 80 ) + - MAX( + 57 ) * + 28 AS col0
----
-2076

skipif mysql # not compatible
query I rowsort label-6406
SELECT NULLIF ( + + 6, - 45 * COUNT ( * ) + - 38 ) * - ( + 80 ) + - MAX ( + 57 ) * + 28 AS col0
----
-2076

onlyif mysql # DIV for integer division: 
query I rowsort label-6407
SELECT + 6 DIV - 97 + + 97 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6407
SELECT + 6 / - 97 + + 97 AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 25 + - + ( - 86 ) + + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 25 + - + ( - 86 ) + + 95 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6409
SELECT - - NULLIF ( + 83, + - NULLIF ( - CAST( NULL AS SIGNED ), + ( - CAST( NULL AS SIGNED ) ) * 90 ) )
----
83

skipif mysql # not compatible
query I rowsort label-6409
SELECT - - NULLIF ( + 83, + - NULLIF ( - CAST ( NULL AS INTEGER ), + ( - CAST ( NULL AS INTEGER ) ) * 90 ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT DISTINCT - SUM( ALL - 12 ) * 22 + + 63
----
327

skipif mysql # not compatible
query I rowsort label-6410
SELECT DISTINCT - SUM ( ALL - 12 ) * 22 + + 63
----
327

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT - COALESCE ( 39, + 84 - + CASE + 3 WHEN + 72 THEN 68 END DIV + COALESCE ( - ( 42 ), 53 ) - - 75 )
----
-39

skipif mysql # not compatible
query I rowsort label-6411
SELECT - COALESCE ( 39, + 84 - + CASE + 3 WHEN + 72 THEN 68 END / + COALESCE ( - ( 42 ), 53 ) - - 75 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL - COALESCE ( + COUNT( * ), NULLIF ( + + ( + - 60 ), - 52 * + COUNT( * ) + + - 37 + - ( + 39 ) - - 99 / 10 ), 93 - + 68, 86 + 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL - COALESCE ( + COUNT ( * ), NULLIF ( + + ( + - 60 ), - 52 * + COUNT ( * ) + + - 37 + - ( + 39 ) - - 99 / 10 ), 93 - + 68, 86 + 5 )
----
-1

query I rowsort
SELECT ALL 25 + + 85 AS col2
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6414
SELECT ALL + 47 + - 3 DIV - - 69 DIV - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + 47 + - 3 / - - 69 / - COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT + + 67 - - ( - COUNT( * ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6415
SELECT + + 67 - - ( - COUNT ( * ) ) AS col1
----
66

query I rowsort
SELECT + ( - - 34 ) * + + 42 + - 1
----
1427

query I rowsort
SELECT - + 27 col1
----
-27

query I rowsort
SELECT DISTINCT - ( + - 61 ) * - 72 * - COALESCE ( 37, + + 32, 78 ) AS col1
----
162504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6419
SELECT DISTINCT CASE + ( - 9 ) WHEN + + 30 * + + CAST( NULL AS SIGNED ) / AVG ( ALL 52 ) THEN NULL ELSE - + 30 + + 38 END AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT CASE + ( - 9 ) WHEN + + 30 * + + CAST ( NULL AS INTEGER ) / AVG ( ALL 52 ) THEN NULL ELSE - + 30 + + 38 END AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6420
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * COUNT( * ) * - ( 90 ), 89 * + - 64 AS col2
----
NULL
-5696

skipif mysql # not compatible
query II rowsort label-6420
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - ( 90 ), 89 * + - 64 AS col2
----
NULL
-5696

query II rowsort
SELECT DISTINCT COALESCE ( + 99, 17 ) * 64, - 68 AS col0
----
6336
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT + 55 * COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-6422
SELECT + 55 * COUNT ( * )
----
55

query I rowsort
SELECT - 37 + - 28
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT 68 * + COUNT( * ) + 12 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6424
SELECT 68 * + COUNT ( * ) + 12 AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6425
SELECT DISTINCT - 23 DIV - ( - 57 ) AS col0, - MAX( DISTINCT 77 ) AS col2
----
0
-77

skipif mysql # not compatible
query II rowsort label-6425
SELECT DISTINCT - 23 / - ( - 57 ) AS col0, - MAX ( DISTINCT 77 ) AS col2
----
0
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT DISTINCT - 50 - - + ( - CAST( + 35 AS SIGNED ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT - 50 - - + ( - CAST ( + 35 AS INTEGER ) ) AS col1
----
-85

query I rowsort
SELECT DISTINCT - NULLIF ( + COALESCE ( 56, + 49 * 76, + 24 ), + 90 * - ( - + 38 ) ) col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT DISTINCT + 50 - - - 23 + CASE 13 WHEN ( COUNT( * ) ) * 75 THEN + 90 * - + 77 WHEN + + 84 THEN 24 END * + 12 * - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT + 50 - - - 23 + CASE 13 WHEN ( COUNT ( * ) ) * 75 THEN + 90 * - + 77 WHEN + + 84 THEN 24 END * + 12 * - 76 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 97 ) * 17 * 13
----
-21437

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6430
SELECT DISTINCT + 23 DIV - NULLIF ( 77, + - 77 * + 13 ) * - + CAST( 75 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT + 23 / - NULLIF ( 77, + - 77 * + 13 ) * - + CAST ( 75 AS INTEGER )
----
0

query I rowsort
SELECT 98 - 76 AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6432
SELECT COUNT( * ) DIV COUNT( + 60 ) AS col0, 49 + - 8 + 86
----
1
127

skipif mysql # not compatible
query II rowsort label-6432
SELECT COUNT ( * ) / COUNT ( + 60 ) AS col0, 49 + - 8 + 86
----
1
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT 6 * COUNT( * ) * - 64 * 50 - - 42 AS col2
----
-19158

skipif mysql # not compatible
query I rowsort label-6433
SELECT 6 * COUNT ( * ) * - 64 * 50 - - 42 AS col2
----
-19158

query I rowsort
SELECT ALL - 33 * + + 46
----
-1518

query I rowsort
SELECT 14 * - ( + 28 ) * 48
----
-18816

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6436
SELECT - COUNT( * ) * - COUNT( DISTINCT + 72 ) + + 4 + - 45 DIV + + 15, - 68 * - 46 AS col1
----
2
3128

skipif mysql # not compatible
query II rowsort label-6436
SELECT - COUNT ( * ) * - COUNT ( DISTINCT + 72 ) + + 4 + - 45 / + + 15, - 68 * - 46 AS col1
----
2
3128

query I rowsort
SELECT DISTINCT - ( + - 67 ) AS col2
----
67

query II rowsort
SELECT ALL - ( 54 ) * 97 AS col0, - 44 + 11 * - - 89
----
-5238
935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6439
SELECT ALL + CAST( NULL AS SIGNED ) + + 35 * + 13 * - COALESCE ( + 87, + - 32 * + 5 ) + + - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + CAST ( NULL AS INTEGER ) + + 35 * + 13 * - COALESCE ( + 87, + - 32 * + 5 ) + + - 40 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT DISTINCT - - ( + + CAST( NULL AS SIGNED ) ) + + + COALESCE ( 23, + 92 * - + 3 + - 75 + - + 38, - - 60 ) * 21 + 30 * 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT - - ( + + CAST ( NULL AS INTEGER ) ) + + + COALESCE ( 23, + 92 * - + 3 + - 75 + - + 38, - - 60 ) * 21 + 30 * 67 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 97 + - - 87
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6442
SELECT DISTINCT + 18 / - + NULLIF ( - CAST( NULL AS SIGNED ), + COUNT( + - 22 ) ) - + 99 / + + CAST( NULL AS SIGNED ) * - 96 / + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT + 18 / - + NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( + - 22 ) ) - + 99 / + + CAST ( NULL AS INTEGER ) * - 96 / + 88
----
NULL

query I rowsort
SELECT CASE WHEN NOT NULL BETWEEN NULL AND ( NULL ) THEN NULL WHEN NOT NULL IS NULL THEN - 63 ELSE 51 + + 97 END AS col2
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-6444
SELECT 6 + - + 70 DIV - ( + 9 )
----
13

skipif mysql # not compatible
query I rowsort label-6444
SELECT 6 + - + 70 / - ( + 9 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT DISTINCT 41 + 50 + + COUNT( ALL 53 )
----
92

skipif mysql # not compatible
query I rowsort label-6445
SELECT DISTINCT 41 + 50 + + COUNT ( ALL 53 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6446
SELECT - COUNT( * ) + + 57 + + - 63 + - - 12 * + CASE - 67 WHEN + 52 THEN + COUNT( * ) WHEN 83 * + - 33 + 80 - 2 THEN + CAST( 55 AS SIGNED ) * + 46 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT - COUNT ( * ) + + 57 + + - 63 + - - 12 * + CASE - 67 WHEN + 52 THEN + COUNT ( * ) WHEN 83 * + - 33 + 80 - 2 THEN + CAST ( 55 AS INTEGER ) * + 46 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - + ( - 78 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL - MAX( ALL ( + 91 ) ) + - 25 + COUNT( * )
----
-115

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL - MAX ( ALL ( + 91 ) ) + - 25 + COUNT ( * )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT COUNT( * ) * + 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6449
SELECT COUNT ( * ) * + 11 AS col2
----
11

query I rowsort
SELECT ALL + 24 * + 44
----
1056

query I rowsort
SELECT ALL 26 - + - 19 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT ALL CASE + + 23 WHEN - 39 - + CASE + 37 WHEN - ( 60 ) THEN 80 END * 7 * + - COUNT( - 86 ) THEN - 99 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL CASE + + 23 WHEN - 39 - + CASE + 37 WHEN - ( 60 ) THEN 80 END * 7 * + - COUNT ( - 86 ) THEN - 99 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6453
SELECT 8 * + CAST( NULL AS SIGNED ) + - 65, 53 + ( - - 3 ) + 27 - + + 64 * + 22 AS col1
----
NULL
-1325

skipif mysql # not compatible
query II rowsort label-6453
SELECT 8 * + CAST ( NULL AS INTEGER ) + - 65, 53 + ( - - 3 ) + 27 - + + 64 * + 22 AS col1
----
NULL
-1325

query I rowsort
SELECT - 9 + + 84 - - + 24 * + 67 AS col0
----
1683

onlyif mysql # DIV for integer division: 
query I rowsort label-6455
SELECT DISTINCT - 42 DIV + 68 * - 80 + + 80
----
80

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT - 42 / + 68 * - 80 + + 80
----
80

query I rowsort
SELECT 9 * + 62 AS col2
----
558

onlyif mysql # DIV for integer division: 
query II rowsort label-6457
SELECT 6 AS col1, + 24 DIV + 32
----
6
0

skipif mysql # not compatible
query II rowsort label-6457
SELECT 6 AS col1, + 24 / + 32
----
6
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6458
SELECT - 88, COUNT( ALL + 11 ) * - 76 * + 86 AS col1
----
-88
-6536

skipif mysql # not compatible
query II rowsort label-6458
SELECT - 88, COUNT ( ALL + 11 ) * - 76 * + 86 AS col1
----
-88
-6536

query II rowsort
SELECT DISTINCT 93 col1, + 68 col2
----
93
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT ALL - COUNT( * ) * - 82
----
82

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL - COUNT ( * ) * - 82
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6461
SELECT 18 + 25 + + 94 + 13 - - - 86 * + - 80 DIV + COUNT( * ) AS col1
----
7030

skipif mysql # not compatible
query I rowsort label-6461
SELECT 18 + 25 + + 94 + 13 - - - 86 * + - 80 / + COUNT ( * ) AS col1
----
7030

query I rowsort
SELECT ALL 59 * + 84
----
4956

query I rowsort
SELECT DISTINCT - CASE + - 7 WHEN + 82 THEN 71 * 84 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6464
SELECT COUNT( * ) DIV + 57 + 40
----
40

skipif mysql # not compatible
query I rowsort label-6464
SELECT COUNT ( * ) / + 57 + 40
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6465
SELECT ALL - 82 AS col1, ( CAST( + MIN( + 86 ) AS SIGNED ) ) DIV - 13 + 7 - + 40 + + 44 DIV - MAX( ALL - + 45 ) * - 83 * 48
----
-82
-39

skipif mysql # not compatible
query II rowsort label-6465
SELECT ALL - 82 AS col1, ( CAST ( + MIN ( + 86 ) AS INTEGER ) ) / - 13 + 7 - + 40 + + 44 / - MAX ( ALL - + 45 ) * - 83 * 48
----
-82
-39

query I rowsort
SELECT 17 + + 28
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6467
SELECT 74 DIV + - 1 - - 50 + + ( - + ( 44 ) ) + SUM( + 14 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6467
SELECT 74 / + - 1 - - 50 + + ( - + ( 44 ) ) + SUM ( + 14 ) AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT ALL + CAST( - + 65 AS SIGNED ) + 53 + - 49 * 47 col2
----
-2315

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL + CAST ( - + 65 AS INTEGER ) + 53 + - 49 * 47 col2
----
-2315

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT ALL - COUNT( - - 35 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL - COUNT ( - - 35 ) AS col2
----
-1

query I rowsort
SELECT ALL + 91 + + 51 AS col2
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6471
SELECT 95 + 15 + - CAST( NULL AS SIGNED ) + + 39 - - SUM( - - CAST( + - 29 AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT 95 + 15 + - CAST ( NULL AS INTEGER ) + + 39 - - SUM ( - - CAST ( + - 29 AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT ALL + - ( - - 53 ) + - + 22 DIV - 80 * - - 74 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL + - ( - - 53 ) + - + 22 / - 80 * - - 74 AS col2
----
-53

query I rowsort
SELECT ALL - 89 * - + 38
----
3382

query I rowsort
SELECT - 86 * - 5 + + 98
----
528

query I rowsort
SELECT 21 * + - 84
----
-1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6476
SELECT COUNT( * ) * - 98 + + 69 DIV 46 + - ( + ( + COUNT( * ) ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6476
SELECT COUNT ( * ) * - 98 + + 69 / 46 + - ( + ( + COUNT ( * ) ) ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT DISTINCT - - COUNT( ALL + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT - - COUNT ( ALL + 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT ALL - + 90 * - SUM( + - 43 )
----
-3870

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL - + 90 * - SUM ( + - 43 )
----
-3870

query I rowsort
SELECT ALL + 64 + + ( - 83 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-6480
SELECT DISTINCT COUNT( * ) AS col1, - COALESCE ( + ( - + 22 ), + 98 ) col0
----
1
22

skipif mysql # not compatible
query II rowsort label-6480
SELECT DISTINCT COUNT ( * ) AS col1, - COALESCE ( + ( - + 22 ), + 98 ) col0
----
1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT DISTINCT - + AVG ( - 16 ) - + - COUNT( - 68 ) + 5 - - 33 * + 38 * - 42 - + + CASE + - 40 WHEN + 62 THEN 41 * 30 WHEN + COUNT( * ) / 43 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT - + AVG ( - 16 ) - + - COUNT ( - 68 ) + 5 - - 33 * + 38 * - 42 - + + CASE + - 40 WHEN + 62 THEN 41 * 30 WHEN + COUNT ( * ) / 43 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 18, 93 AS col2
----
18
93

query I rowsort
SELECT ALL - 4 - 21 AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT + CASE + - 58 WHEN - + 42 * - ( + 41 ) * + 8 + - 32 THEN + CAST( NULL AS SIGNED ) * - 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT + CASE + - 58 WHEN - + 42 * - ( + 41 ) * + 8 + - 32 THEN + CAST ( NULL AS INTEGER ) * - 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT COUNT( * ) * - - 5
----
5

skipif mysql # not compatible
query I rowsort label-6485
SELECT COUNT ( * ) * - - 5
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6486
SELECT + ( 9 ) * - 48 + 40 AS col2, + MIN( - - 56 ) col0
----
-392
56

skipif mysql # not compatible
query II rowsort label-6486
SELECT + ( 9 ) * - 48 + 40 AS col2, + MIN ( - - 56 ) col0
----
-392
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6487
SELECT ALL - 13 DIV 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL - 13 / 41 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6488
SELECT - 12 AS col0, CAST( NULL AS SIGNED ) * + COUNT( * ) * + - CASE - 72 WHEN - + 10 THEN + + 55 WHEN - 17 * + - 41 * + + COUNT( * ) THEN NULL END AS col1
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-6488
SELECT - 12 AS col0, CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + - CASE - 72 WHEN - + 10 THEN + + 55 WHEN - 17 * + - 41 * + + COUNT ( * ) THEN NULL END AS col1
----
-12
NULL

query I rowsort
SELECT + 76 + + + 80
----
156

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6490
SELECT CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) - 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6491
SELECT + 72 / + COUNT( * ) * 17 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT + 72 / + COUNT ( * ) * 17 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - + 15, + 84 + + 38 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ALL + 41 / CASE + + 37 WHEN - + MIN( ( 49 ) ) THEN 49 * - + 68 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL + 41 / CASE + + 37 WHEN - + MIN ( ( 49 ) ) THEN 49 * - + 68 + - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6494
SELECT + CAST( NULL AS SIGNED ) + 80 * + ( + + 87 ) / - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT + CAST ( NULL AS INTEGER ) + 80 * + ( + + 87 ) / - 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6495
SELECT ALL NULLIF ( + CAST( + 29 AS SIGNED ), - 43 * - + COALESCE ( + + 35, - 22, + 67 * + + 37 ) + - 23 )
----
29

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL NULLIF ( + CAST ( + 29 AS INTEGER ), - 43 * - + COALESCE ( + + 35, - 22, + 67 * + + 37 ) + - 23 )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6496
SELECT DISTINCT COUNT( * ) * 22 AS col2, + ( 53 )
----
22
53

skipif mysql # not compatible
query II rowsort label-6496
SELECT DISTINCT COUNT ( * ) * 22 AS col2, + ( 53 )
----
22
53

query I rowsort
SELECT + 54 * ( + 42 ) * 55
----
124740

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT - COUNT( * ) * MAX( DISTINCT - - 39 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-6498
SELECT - COUNT ( * ) * MAX ( DISTINCT - - 39 ) col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6499
SELECT + COUNT( * ) / 73 * - SUM( ALL + 35 ) * - CAST( NULL AS SIGNED ), + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6499
SELECT + COUNT ( * ) / 73 * - SUM ( ALL + 35 ) * - CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6500
SELECT ALL CAST( NULL AS DECIMAL ) + - NULLIF ( 27, 1 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL CAST ( NULL AS REAL ) + - NULLIF ( 27, 1 ) col1
----
NULL

query II rowsort
SELECT + 24 + + 51, - 51 AS col1
----
75
-51

query I rowsort
SELECT + 94 * + + 18
----
1692

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT + 98 * 48 + + ( - COUNT( * ) ) col2
----
4703

skipif mysql # not compatible
query I rowsort label-6503
SELECT + 98 * 48 + + ( - COUNT ( * ) ) col2
----
4703

query I rowsort
SELECT + CASE 85 WHEN + 65 THEN - + 54 * - + 92 * 25 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT ALL + 82 * - 59 + COUNT( * )
----
-4837

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL + 82 * - 59 + COUNT ( * )
----
-4837

query I rowsort
SELECT ALL + 32 * 9 + 13 - 82
----
219

query I rowsort
SELECT DISTINCT - NULLIF ( 58, - - 75 ) * + 81 + + 8 AS col1
----
-4690

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT CASE - 0 WHEN - + COALESCE ( - - 32, - 79 ) THEN NULL WHEN - 61 THEN MAX( - 35 ) WHEN + - ( 20 ) * + MAX( DISTINCT 73 ) THEN 64 - - 65 * 72 ELSE + 84 * 89 END col0
----
7476

skipif mysql # not compatible
query I rowsort label-6508
SELECT CASE - 0 WHEN - + COALESCE ( - - 32, - 79 ) THEN NULL WHEN - 61 THEN MAX ( - 35 ) WHEN + - ( 20 ) * + MAX ( DISTINCT 73 ) THEN 64 - - 65 * 72 ELSE + 84 * 89 END col0
----
7476

query I rowsort
SELECT - 13 * 11 - + 46 col2
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT + + COALESCE ( - 3, + MAX( DISTINCT + 67 ) + - 82 ) - - + 63 * + 2 * + + 89 AS col2
----
11211

skipif mysql # not compatible
query I rowsort label-6510
SELECT + + COALESCE ( - 3, + MAX ( DISTINCT + 67 ) + - 82 ) - - + 63 * + 2 * + + 89 AS col2
----
11211

query I rowsort
SELECT ALL ( - 5 ) * + - 0 + - 88 AS col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6512
SELECT + + ( + 55 ) * - CAST( NULL AS SIGNED ) + - + 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6512
SELECT + + ( + 55 ) * - CAST ( NULL AS INTEGER ) + - + 58 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT - + 74 * - COUNT( * ) + - + 2 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6513
SELECT - + 74 * - COUNT ( * ) + - + 2 AS col1
----
72

query I rowsort
SELECT + 88 * + + 47 + 85
----
4221

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT + NULLIF ( - COUNT( + 98 ), + - 87 * - + ( + 36 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6515
SELECT + NULLIF ( - COUNT ( + 98 ), + - 87 * - + ( + 36 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6516
SELECT DISTINCT + - 17 DIV + COUNT( * ), + 27 AS col0
----
-17
27

skipif mysql # not compatible
query II rowsort label-6516
SELECT DISTINCT + - 17 / + COUNT ( * ), + 27 AS col0
----
-17
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL + + COALESCE ( + - NULLIF ( MIN( + + 98 ), ( + 67 ) * 60 * + 71 ), + + 74 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL + + COALESCE ( + - NULLIF ( MIN ( + + 98 ), ( + 67 ) * 60 * + 71 ), + + 74 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT + NULLIF ( + 33, SUM( DISTINCT 82 ) )
----
33

skipif mysql # not compatible
query I rowsort label-6518
SELECT + NULLIF ( + 33, SUM ( DISTINCT 82 ) )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6519
SELECT + MIN( ALL - - 0 ) AS col0, - CAST( 0 AS SIGNED )
----
0
0

skipif mysql # not compatible
query II rowsort label-6519
SELECT + MIN ( ALL - - 0 ) AS col0, - CAST ( 0 AS INTEGER )
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT - - 47 * + NULLIF ( 13, - ( - COUNT( * ) ) * 17 ) AS col1
----
611

skipif mysql # not compatible
query I rowsort label-6520
SELECT - - 47 * + NULLIF ( 13, - ( - COUNT ( * ) ) * 17 ) AS col1
----
611

query II rowsort
SELECT ALL - + 75 * 56 AS col0, 44 AS col2
----
-4200
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6522
SELECT DISTINCT + + 12 * + 77 / CAST( NULL AS SIGNED ) * 44 * + 67, - CASE - CASE 77 WHEN + ( - COUNT( * ) ) THEN NULL ELSE 67 - + 13 END WHEN + 85 / 28 THEN 16 END + - COUNT( * ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6522
SELECT DISTINCT + + 12 * + 77 / CAST ( NULL AS INTEGER ) * 44 * + 67, - CASE - CASE 77 WHEN + ( - COUNT ( * ) ) THEN NULL ELSE 67 - + 13 END WHEN + 85 / 28 THEN 16 END + - COUNT ( * ) AS col1
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 50 * + 77 - + - COALESCE ( 26, - 61 ) + - 42 AS col1
----
3834

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT DISTINCT + + 20 * - + COUNT( * ) * - 54 AS col1
----
1080

skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT + + 20 * - + COUNT ( * ) * - 54 AS col1
----
1080

query I rowsort
SELECT - 61 * - 67
----
4087

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT DISTINCT NULLIF ( 37, + 16 * - 29 + - COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT NULLIF ( 37, + 16 * - 29 + - COUNT ( * ) )
----
37

query I rowsort
SELECT ALL ( - 99 ) AS col0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6528
SELECT - CAST( NULL AS DECIMAL ) * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT - CAST ( NULL AS REAL ) * 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6529
SELECT + 30 * + ( + 42 ) * + CAST( + 52 AS SIGNED ) + - 80 + - 11 + - 73 * 51 * + 99 * - - 61 DIV COUNT( * ) AS col0
----
-22417768

skipif mysql # not compatible
query I rowsort label-6529
SELECT + 30 * + ( + 42 ) * + CAST ( + 52 AS INTEGER ) + - 80 + - 11 + - 73 * 51 * + 99 * - - 61 / COUNT ( * ) AS col0
----
-22417768

query I rowsort
SELECT ALL + 10 + 25 * - 81
----
-2015

query I rowsort
SELECT - 18 + 23 AS col2
----
5

query II rowsort
SELECT 69 AS col0, 23 * 22 col2
----
69
506

query I rowsort
SELECT - 94 + + - 87 col2
----
-181

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6534
SELECT ALL + NULLIF ( + + 50, + 85 ) + CAST( NULL AS DECIMAL ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + NULLIF ( + + 50, + 85 ) + CAST ( NULL AS REAL ) * + 52
----
NULL

query I rowsort
SELECT DISTINCT - 92 + - - 40 col2
----
-52

query I rowsort
SELECT ALL 59 + - + 58
----
1

query I rowsort
SELECT + 64 + 19 + + - 41 * + 77 AS col1
----
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT ALL + 20 * COUNT( DISTINCT 95 )
----
20

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL + 20 * COUNT ( DISTINCT 95 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT + COUNT( * ) + - + 61 + + - 22 + + - 30 - + + ( COUNT( * ) ) + COUNT( * ) * + - 6 + + COUNT( + 21 ) * + + 48
----
-71

skipif mysql # not compatible
query I rowsort label-6539
SELECT + COUNT ( * ) + - + 61 + + - 22 + + - 30 - + + ( COUNT ( * ) ) + COUNT ( * ) * + - 6 + + COUNT ( + 21 ) * + + 48
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6540
SELECT ALL - COUNT( * ) DIV 19 + - 44 AS col0, + 29 AS col0
----
-44
29

skipif mysql # not compatible
query II rowsort label-6540
SELECT ALL - COUNT ( * ) / 19 + - 44 AS col0, + 29 AS col0
----
-44
29

query I rowsort
SELECT + 34 * - 39
----
-1326

query I rowsort
SELECT + 50 + + 21
----
71

query I rowsort
SELECT + - 56 * ( + - 18 ) - + + 13 AS col0
----
995

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6544
SELECT + 17, 74 - 47 * + CAST( NULL AS SIGNED ) AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-6544
SELECT + 17, 74 - 47 * + CAST ( NULL AS INTEGER ) AS col2
----
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT COUNT( * ) * - 10 * - 16 * - 4 + 23 AS col0
----
-617

skipif mysql # not compatible
query I rowsort label-6545
SELECT COUNT ( * ) * - 10 * - 16 * - 4 + 23 AS col0
----
-617

onlyif mysql # DIV for integer division: 
query I rowsort label-6546
SELECT ALL 27 DIV - ( - 9 ) - + COALESCE ( - + 31, 15 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL 27 / - ( - 9 ) - + COALESCE ( - + 31, 15 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT + COUNT( DISTINCT + 98 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6547
SELECT + COUNT ( DISTINCT + 98 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT ALL + NULLIF ( - 34, + - MIN( - NULLIF ( + 1, - - ( 26 ) ) ) - - 79 * - 87 + 25 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL + NULLIF ( - 34, + - MIN ( - NULLIF ( + 1, - - ( 26 ) ) ) - - 79 * - 87 + 25 ) AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6549
SELECT DISTINCT + ( - - 73 ) DIV + 13 - + COUNT( * ) * + 11 * 25 AS col1
----
-270

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT + ( - - 73 ) / + 13 - + COUNT ( * ) * + 11 * 25 AS col1
----
-270

query I rowsort
SELECT ALL - 6 * - 47
----
282

query I rowsort
SELECT + 44 / + 35 - + CASE + 60 WHEN 80 THEN + 5 WHEN + 55 THEN NULL ELSE NULL END + - - CASE 29 WHEN - - ( + 20 ) THEN - 66 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + ( + + 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT SUM( ALL - 82 ) * + 61 * - - 33
----
-165066

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT SUM ( ALL - 82 ) * + 61 * - - 33
----
-165066

query I rowsort
SELECT + - 68 + + 0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT + COUNT( * ) * - - 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6555
SELECT + COUNT ( * ) * - - 37 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT + - ( 24 ) * + - COUNT( * ) + - 93 + CASE WHEN NOT NULL NOT BETWEEN + 60 AND + - 92 * 10 THEN NULL ELSE - COUNT( * ) END + 74 col1
----
4

skipif mysql # not compatible
query I rowsort label-6556
SELECT + - ( 24 ) * + - COUNT ( * ) + - 93 + CASE WHEN NOT NULL NOT BETWEEN + 60 AND + - 92 * 10 THEN NULL ELSE - COUNT ( * ) END + 74 col1
----
4

query I rowsort
SELECT + CASE - - 49 WHEN + + 38 THEN + 97 END
----
NULL

query I rowsort
SELECT + + 19 * - 91 + - 89
----
-1818

query I rowsort
SELECT - 89 * - + 56 AS col0
----
4984

onlyif mysql # aggregate syntax: 
query II rowsort label-6560
SELECT DISTINCT - - 37 AS col2, COUNT( * ) * + 58 + - 99 AS col0
----
37
-41

skipif mysql # not compatible
query II rowsort label-6560
SELECT DISTINCT - - 37 AS col2, COUNT ( * ) * + 58 + - 99 AS col0
----
37
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6561
SELECT ALL - - 47 DIV - - 31 + ( - 21 )
----
-20

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL - - 47 / - - 31 + ( - 21 )
----
-20

query I rowsort
SELECT 60 + - 4
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT - COALESCE ( + 98, - + COALESCE ( 7, - 28 + - 45 * - COUNT( * ) ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6563
SELECT - COALESCE ( + 98, - + COALESCE ( 7, - 28 + - 45 * - COUNT ( * ) ) ) AS col0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-6564
SELECT DISTINCT 2 DIV - ( - 57 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT 2 / - ( - 57 ) AS col2
----
0

query II rowsort
SELECT 27 + - 68, 9 - 47 col2
----
-41
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT MIN( 25 ) * 43 AS col0
----
1075

skipif mysql # not compatible
query I rowsort label-6566
SELECT MIN ( 25 ) * 43 AS col0
----
1075

onlyif mysql # DIV for integer division: 
query I rowsort label-6567
SELECT 17 DIV - ( 65 )
----
0

skipif mysql # not compatible
query I rowsort label-6567
SELECT 17 / - ( 65 )
----
0

query I rowsort
SELECT DISTINCT - 60 + 13 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT DISTINCT - ( CASE + + 77 WHEN - 95 + SUM( + 40 ) * + + COUNT( * ) THEN - 53 END ) * 56 / + + 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT - ( CASE + + 77 WHEN - 95 + SUM ( + 40 ) * + + COUNT ( * ) THEN - 53 END ) * 56 / + + 19 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL + 15 + + + 48 + CASE - 38 WHEN + 6 THEN COUNT( * ) + - COUNT( * ) WHEN + COUNT( ALL 13 ) THEN NULL END * - - 45 * + - 68 * + 57 + + 75 * - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL + 15 + + + 48 + CASE - 38 WHEN + 6 THEN COUNT ( * ) + - COUNT ( * ) WHEN + COUNT ( ALL 13 ) THEN NULL END * - - 45 * + - 68 * + 57 + + 75 * - 51 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 61 + - - 97 * + - 45 AS col0
----
-4426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6572
SELECT 52 * + CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6572
SELECT 52 * + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT 23 - 69 + 13 + 45 * - + MAX( DISTINCT 21 ) * 94 col2
----
-88863

skipif mysql # not compatible
query I rowsort label-6573
SELECT 23 - 69 + 13 + 45 * - + MAX ( DISTINCT 21 ) * 94 col2
----
-88863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6574
SELECT DISTINCT - 61 - + NULLIF ( + 11, - + COUNT( * ) + - 55 ) DIV + CAST( + + MAX( + 4 ) AS SIGNED ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT - 61 - + NULLIF ( + 11, - + COUNT ( * ) + - 55 ) / + CAST ( + + MAX ( + 4 ) AS INTEGER ) AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6575
SELECT DISTINCT + 98 - - 98 - - 18 * 69 * 74 - - - 67 * - CAST( + - CAST( + 57 AS SIGNED ) AS SIGNED ) - - 18 AS col2
----
88303

skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT + 98 - - 98 - - 18 * 69 * 74 - - - 67 * - CAST ( + - CAST ( + 57 AS INTEGER ) AS INTEGER ) - - 18 AS col2
----
88303

query I rowsort
SELECT ALL - 43 * + 36 AS col0
----
-1548

query II rowsort
SELECT DISTINCT 92 * - - 64, 81 AS col2
----
5888
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6578
SELECT ALL - - 8 DIV - + 8 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL - - 8 / - + 8 AS col2
----
-1

query I rowsort
SELECT ALL - - 83 * 79 * - + 15 * - 42 AS col1
----
4130910

query I rowsort
SELECT DISTINCT 19 - + - 6
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6581
SELECT - CAST( NULL AS SIGNED ) / 48 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT - CAST ( NULL AS INTEGER ) / 48 * + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6582
SELECT 29 - + CAST( - + 3 AS SIGNED ) + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6582
SELECT 29 - + CAST ( - + 3 AS INTEGER ) + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6583
SELECT - COUNT( * ) * + 79 DIV - 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6583
SELECT - COUNT ( * ) * + 79 / - 68 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6584
SELECT + + 29 * - CAST( NULL AS SIGNED ) * + 23 + + 49 + 6 * - AVG ( + CASE + 14 WHEN - 18 + - 87 THEN 3 END ) * + CASE + 14 WHEN + ( - 62 ) / 91 + 77 THEN - 55 * - COUNT( * ) ELSE - 20 END + + 6 / - 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6584
SELECT + + 29 * - CAST ( NULL AS INTEGER ) * + 23 + + 49 + 6 * - AVG ( + CASE + 14 WHEN - 18 + - 87 THEN 3 END ) * + CASE + 14 WHEN + ( - 62 ) / 91 + 77 THEN - 55 * - COUNT ( * ) ELSE - 20 END + + 6 / - 40 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6585
SELECT ALL - 25 DIV - 75 * + - ( - CAST( - 89 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL - 25 / - 75 * + - ( - CAST ( - 89 AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6586
SELECT 61 / CASE + 51 WHEN + COUNT( * ) + + MAX( DISTINCT + 9 ) + CAST( NULL AS SIGNED ) - - - 43 / - + 95 / + 23 + - 79 + + - MIN( ALL + 24 ) * + + 9 THEN NULL WHEN + 49 THEN + 73 WHEN 50 THEN NULL ELSE + 8 + ( 36 - + 86 ) * + CASE - COALESCE ( 70, - ( 15 ) ) + 49 * 58 WHEN + ( COALESCE ( + 35, 43, 59 + + 57 ) ) * 95 THEN 21 WHEN + 27 + + NULLIF ( - 92, 60 ) THEN NULL END END + 0 * - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6586
SELECT 61 / CASE + 51 WHEN + COUNT ( * ) + + MAX ( DISTINCT + 9 ) + CAST ( NULL AS INTEGER ) - - - 43 / - + 95 / + 23 + - 79 + + - MIN ( ALL + 24 ) * + + 9 THEN NULL WHEN + 49 THEN + 73 WHEN 50 THEN NULL ELSE + 8 + ( 36 - + 86 ) * + CASE - COALESCE ( 70, - ( 15 ) ) + 49 * 58 WHEN + ( COALESCE ( + 35, 43, 59 + + 57 ) ) * 95 THEN 21 WHEN + 27 + + NULLIF ( - 92, 60 ) THEN NULL END END + 0 * - 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6587
SELECT + MIN( 85 ) * + 70 * - + 93 AS col2, + 10 AS col0
----
-553350
10

skipif mysql # not compatible
query II rowsort label-6587
SELECT + MIN ( 85 ) * + 70 * - + 93 AS col2, + 10 AS col0
----
-553350
10

query I rowsort
SELECT ALL + 1 + + + 85 * 55
----
4676

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT + COUNT( * ) - + 98 + COUNT( * ) * 61
----
-36

skipif mysql # not compatible
query I rowsort label-6589
SELECT + COUNT ( * ) - + 98 + COUNT ( * ) * 61
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT 75 * MIN( 84 ) AS col2
----
6300

skipif mysql # not compatible
query I rowsort label-6590
SELECT 75 * MIN ( 84 ) AS col2
----
6300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6591
SELECT ALL NULLIF ( 38, + 23 * + ( + 46 ) ) + + COUNT( * ) - + COUNT( DISTINCT + + 0 ) + + - 57 + + - 48 DIV - + COALESCE ( 85, - AVG ( + 53 ) ) * + 4 * + 44 DIV 22
----
-19

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL NULLIF ( 38, + 23 * + ( + 46 ) ) + + COUNT ( * ) - + COUNT ( DISTINCT + + 0 ) + + - 57 + + - 48 / - + COALESCE ( 85, - AVG ( + 53 ) ) * + 4 * + 44 / 22
----
-19

query I rowsort
SELECT 1 + 70
----
71

query I rowsort
SELECT 8 * - 16 AS col1
----
-128

query II rowsort
SELECT 43 * 40 * 47, - 99 col1
----
80840
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6595
SELECT DISTINCT 30 + SUM( DISTINCT CAST( NULL AS SIGNED ) ) * 64 * + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT 30 + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * 64 * + + 17
----
NULL

query II rowsort
SELECT 13 AS col1, 75
----
13
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6597
SELECT ALL - CAST( NULL AS DECIMAL ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL - CAST ( NULL AS REAL ) + - - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 29 + + 77
----
48

query I rowsort
SELECT 46 + - 45 AS col2
----
1

query III rowsort
SELECT DISTINCT 1 AS col2, - ( - - 5 ) AS col1, + - NULLIF ( + 31, - 67 ) + - 5 AS col0
----
1
-5
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT COUNT( * ) + - ( - - 93 ) + + - 93 * 45 * 46 * - + 38 * - COUNT( * )
----
-7315472

skipif mysql # not compatible
query I rowsort label-6601
SELECT COUNT ( * ) + - ( - - 93 ) + + - 93 * 45 * 46 * - + 38 * - COUNT ( * )
----
-7315472

query I rowsort
SELECT DISTINCT + 29 - - - 8 + - 73 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT COALESCE ( + - 37, COUNT( * ) + - 18 ) * + + 1 * + COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-6603
SELECT COALESCE ( + - 37, COUNT ( * ) + - 18 ) * + + 1 * + COUNT ( * ) AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT 78 DIV - 57
----
-1

skipif mysql # not compatible
query I rowsort label-6604
SELECT 78 / - 57
----
-1

query I rowsort
SELECT ALL + 12 * - - 78
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT ALL - 57 * - - 42 * + COUNT( * ) * - - 29
----
-69426

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL - 57 * - - 42 * + COUNT ( * ) * - - 29
----
-69426

query I rowsort
SELECT 52 + - + 30 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT 61 * + + ( + - COALESCE ( - - 81, + MAX( ALL - 4 ) ) ) AS col0
----
-4941

skipif mysql # not compatible
query I rowsort label-6608
SELECT 61 * + + ( + - COALESCE ( - - 81, + MAX ( ALL - 4 ) ) ) AS col0
----
-4941

query I rowsort
SELECT - 68 + + 94 AS col2
----
26

query I rowsort
SELECT 64 + - - 77 AS col1
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6611
SELECT - COALESCE ( - COUNT( 41 ), - COALESCE ( + NULLIF ( + COUNT( * ), - - COUNT( * ) ), + COUNT( * ) + + COUNT( * ) ), ( COUNT( * ) ) + + + ( - 30 ) * 46 ) * 21 DIV + SUM( 18 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6611
SELECT - COALESCE ( - COUNT ( 41 ), - COALESCE ( + NULLIF ( + COUNT ( * ), - - COUNT ( * ) ), + COUNT ( * ) + + COUNT ( * ) ), ( COUNT ( * ) ) + + + ( - 30 ) * 46 ) * 21 / + SUM ( 18 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL - SUM( 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL - SUM ( 61 )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6613
SELECT COUNT( * ) DIV + - 29 + ( + 85 ) DIV 96 + 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6613
SELECT COUNT ( * ) / + - 29 + ( + 85 ) / 96 + 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-6614
SELECT ALL + 33, + MIN( DISTINCT + 13 ) * - 8 AS col1
----
33
-104

skipif mysql # not compatible
query II rowsort label-6614
SELECT ALL + 33, + MIN ( DISTINCT + 13 ) * - 8 AS col1
----
33
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT ALL + 46 * - COUNT( * ) + - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL + 46 * - COUNT ( * ) + - COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6616
SELECT ALL 14 * - + 72 + NULLIF ( - NULLIF ( - 3, + - 63 * 39 + - - 67 + - 31 ), + 6 ) * + 99 AS col2, - COUNT( * )
----
-711
-1

skipif mysql # not compatible
query II rowsort label-6616
SELECT ALL 14 * - + 72 + NULLIF ( - NULLIF ( - 3, + - 63 * 39 + - - 67 + - 31 ), + 6 ) * + 99 AS col2, - COUNT ( * )
----
-711
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6617
SELECT - 97 DIV + 15 + 75 * 61
----
4569

skipif mysql # not compatible
query I rowsort label-6617
SELECT - 97 / + 15 + 75 * 61
----
4569

query I rowsort
SELECT - + ( 41 ) * - + 69 * + 72
----
203688

query II rowsort
SELECT 64 AS col1, 69
----
64
69

query II rowsort
SELECT ALL + 72, + 51 * - 81 * + 16 * - 67 col1
----
72
4428432

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT - 89 * - + 69 * - 0 * + MAX( ALL 10 ) * + 14 + - - 82 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6621
SELECT - 89 * - + 69 * - 0 * + MAX ( ALL 10 ) * + 14 + - - 82 AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6622
SELECT DISTINCT ( - 5 ) DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT ( - 5 ) / - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT DISTINCT - 66 * - - 92 + - + COUNT( * )
----
-6073

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT - 66 * - - 92 + - + COUNT ( * )
----
-6073

query I rowsort
SELECT ALL 42 + - 38 * + 93
----
-3492

query I rowsort
SELECT ALL ( - 20 ) AS col1
----
-20

query I rowsort
SELECT + 65 + + 22
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT - CASE 22 WHEN + + 70 THEN - - 82 + + + MAX( + ( 98 ) ) * + 18 WHEN + 93 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6627
SELECT - CASE 22 WHEN + + 70 THEN - - 82 + + + MAX ( + ( 98 ) ) * + 18 WHEN + 93 THEN NULL END
----
NULL

query II rowsort
SELECT ALL 94, ( 80 ) + + 76 * 29 col0
----
94
2284

query II rowsort
SELECT ALL 96 AS col1, + 72
----
96
72

query I rowsort
SELECT + 12 * - 5 AS col0
----
-60

query I rowsort
SELECT + 11 + + + 74 + - 24
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT - CASE - - 99 WHEN + CASE - 90 WHEN + 63 + - - 88 THEN NULL WHEN COUNT( * ) + + - 48 + - 16 THEN NULL ELSE + 95 END THEN + 41 * + CASE + 14 WHEN - - 1 - + + 97 * 72 THEN 38 * COUNT( * ) END END * 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT - CASE - - 99 WHEN + CASE - 90 WHEN + 63 + - - 88 THEN NULL WHEN COUNT ( * ) + + - 48 + - 16 THEN NULL ELSE + 95 END THEN + 41 * + CASE + 14 WHEN - - 1 - + + 97 * 72 THEN 38 * COUNT ( * ) END END * 17 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 11, - 83 AS col1
----
11
-83

query I rowsort
SELECT DISTINCT ( + - 11 ) * + 68 AS col2
----
-748

onlyif mysql # aggregate syntax: 
query II rowsort label-6635
SELECT ALL COUNT( * ), + 33 - - + COUNT( * ) AS col1
----
1
34

skipif mysql # not compatible
query II rowsort label-6635
SELECT ALL COUNT ( * ), + 33 - - + COUNT ( * ) AS col1
----
1
34

query I rowsort
SELECT DISTINCT + + 8 * + 99
----
792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT DISTINCT - CAST( - + 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - CAST ( - + 45 AS INTEGER )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6638
SELECT ALL SUM( + 33 ), + 81 col2
----
33
81

skipif mysql # not compatible
query II rowsort label-6638
SELECT ALL SUM ( + 33 ), + 81 col2
----
33
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT + - 44 - ( - COUNT( 92 ) ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-6639
SELECT + - 44 - ( - COUNT ( 92 ) ) AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-6640
SELECT + 10 DIV + 4 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6640
SELECT + 10 / + 4 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT DISTINCT CASE - 7 WHEN + 48 * + - COALESCE ( + MAX( DISTINCT 61 ), + 97 + - COUNT( - + 84 ) * - - 56 ) + AVG ( ALL + 85 ) + + 1 THEN NULL ELSE 67 END * 51 AS col1
----
3417

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT CASE - 7 WHEN + 48 * + - COALESCE ( + MAX ( DISTINCT 61 ), + 97 + - COUNT ( - + 84 ) * - - 56 ) + AVG ( ALL + 85 ) + + 1 THEN NULL ELSE 67 END * 51 AS col1
----
3417

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT ALL - + 53 + - + COUNT( * ) * - 21 + 63
----
31

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL - + 53 + - + COUNT ( * ) * - 21 + 63
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6643
SELECT + + 20 DIV - 36 + ( + 34 ) - - 17
----
51

skipif mysql # not compatible
query I rowsort label-6643
SELECT + + 20 / - 36 + ( + 34 ) - - 17
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6644
SELECT ALL 49 DIV - 15 + - 33 DIV 41
----
-3

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL 49 / - 15 + - 33 / 41
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6645
SELECT ALL + - COUNT( * ) DIV - 51 * - + ( - 39 ) + - - CAST( + - COUNT( * ) AS SIGNED ) + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL + - COUNT ( * ) / - 51 * - + ( - 39 ) + - - CAST ( + - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT ALL 25 * - - 40 AS col2
----
1000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6647
SELECT ALL + - NULLIF ( + 93, - ( + 46 ) ) DIV + 28 + - NULLIF ( MAX( ALL + 24 ), - 22 ) * - + 7 * + ( - 70 ) + + NULLIF ( - + COALESCE ( + + 29, + + CAST( 30 AS SIGNED ) ), - 67 DIV + 62 )
----
-11792

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL + - NULLIF ( + 93, - ( + 46 ) ) / + 28 + - NULLIF ( MAX ( ALL + 24 ), - 22 ) * - + 7 * + ( - 70 ) + + NULLIF ( - + COALESCE ( + + 29, + + CAST ( 30 AS INTEGER ) ), - 67 / + 62 )
----
-11792

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6648
SELECT ALL - NULLIF ( 74, - 8 DIV - 28 ) DIV - 62 + COUNT( * ), MAX( - 83 ) AS col1
----
2
-83

skipif mysql # not compatible
query II rowsort label-6648
SELECT ALL - NULLIF ( 74, - 8 / - 28 ) / - 62 + COUNT ( * ), MAX ( - 83 ) AS col1
----
2
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT DISTINCT 11 DIV 41 + + 41 + + - 94
----
-53

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT 11 / 41 + + 41 + + - 94
----
-53

query I rowsort
SELECT CASE + - 95 WHEN CASE - 51 WHEN + 82 THEN NULL WHEN + - 13 THEN NULL ELSE - 75 END * + 49 THEN - 87 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT - - SUM( DISTINCT 37 ) + - - CASE 10 WHEN - 26 THEN + + COUNT( * ) * - 52 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT - - SUM ( DISTINCT 37 ) + - - CASE 10 WHEN - 26 THEN + + COUNT ( * ) * - 52 + - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6652
SELECT - 78 * + 68 + + NULLIF ( - ( - + CAST( NULL AS SIGNED ) ), + 91 / + - COUNT( * ) * 44 * 66 + AVG ( + - 39 ) ) + - CASE - ( - 27 ) WHEN 16 THEN - - 31 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT - 78 * + 68 + + NULLIF ( - ( - + CAST ( NULL AS INTEGER ) ), + 91 / + - COUNT ( * ) * 44 * 66 + AVG ( + - 39 ) ) + - CASE - ( - 27 ) WHEN 16 THEN - - 31 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6653
SELECT - + 13 * - 10 - - + 37 * 91 + + + ( + 16 ) - + + 17 + 65 * NULLIF ( + 89, + 94 + + COUNT( * ) * - AVG ( CAST( NULL AS SIGNED ) ) + - COUNT( * ) + + 39 + CASE 94 WHEN COUNT( * ) + ( 14 ) THEN 25 + COUNT( * ) END * COUNT( * ) )
----
9281

skipif mysql # not compatible
query I rowsort label-6653
SELECT - + 13 * - 10 - - + 37 * 91 + + + ( + 16 ) - + + 17 + 65 * NULLIF ( + 89, + 94 + + COUNT ( * ) * - AVG ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + + 39 + CASE 94 WHEN COUNT ( * ) + ( 14 ) THEN 25 + COUNT ( * ) END * COUNT ( * ) )
----
9281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6654
SELECT ALL + 39 * COUNT( * ) * 54 * 63 + + 84 DIV - + ( - 98 ) * + 2 + + 90 + CAST( - COUNT( DISTINCT - 84 ) AS SIGNED ) * - 28
----
132796

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL + 39 * COUNT ( * ) * 54 * 63 + + 84 / - + ( - 98 ) * + 2 + + 90 + CAST ( - COUNT ( DISTINCT - 84 ) AS INTEGER ) * - 28
----
132796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6655
SELECT ALL 22 * + 96 * 31 * - + CAST( NULL AS SIGNED ) - 73 + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL 22 * + 96 * 31 * - + CAST ( NULL AS INTEGER ) - 73 + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT - COUNT( * ) * - - 91 * + 99 AS col1
----
-9009

skipif mysql # not compatible
query I rowsort label-6656
SELECT - COUNT ( * ) * - - 91 * + 99 AS col1
----
-9009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6657
SELECT DISTINCT + COUNT( * ) * - 21 * 89 * 37 - MIN( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT + COUNT ( * ) * - 21 * 89 * 37 - MIN ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT NULLIF ( 77, + 3 + - - 4 * MAX( DISTINCT - 32 ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6658
SELECT NULLIF ( 77, + 3 + - - 4 * MAX ( DISTINCT - 32 ) ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT ALL + MIN( DISTINCT - - 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL + MIN ( DISTINCT - - 71 ) AS col2
----
71

query I rowsort
SELECT ALL - 12 * + 1 - 6 AS col2
----
-18

query I rowsort
SELECT - 12 * + ( 70 ) * 99 + 41 AS col1
----
-83119

query I rowsort
SELECT + ( - 13 ) * + 15 * - 89 AS col0
----
17355

query I rowsort
SELECT - 88 + + CASE - - 15 WHEN 79 + + 0 THEN NULL WHEN - 84 + - 9 * - - 15 THEN - ( + COALESCE ( 94, 40, 8 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6664
SELECT CASE + CAST( - + COUNT( * ) AS SIGNED ) WHEN - - 0 / CAST( NULL AS DECIMAL ) THEN - 45 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT CASE + CAST ( - + COUNT ( * ) AS INTEGER ) WHEN - - 0 / CAST ( NULL AS REAL ) THEN - 45 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6665
SELECT NULLIF ( + - 22, CAST( NULL AS SIGNED ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6665
SELECT NULLIF ( + - 22, CAST ( NULL AS INTEGER ) ) AS col2
----
-22

query I rowsort
SELECT - ( 77 ) AS col0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6667
SELECT + 70 DIV 37 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6667
SELECT + 70 / 37 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6668
SELECT ALL 94 DIV - + 92
----
-1

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL 94 / - + 92
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6669
SELECT ALL CAST( MAX( DISTINCT + + 31 ) AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL CAST ( MAX ( DISTINCT + + 31 ) AS INTEGER )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT + COUNT( ALL - COALESCE ( - + 35, - + 94 ) ) - + 43
----
-42

skipif mysql # not compatible
query I rowsort label-6670
SELECT + COUNT ( ALL - COALESCE ( - + 35, - + 94 ) ) - + 43
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6671
SELECT + COALESCE ( - 28, - + 48 ) + + ( 17 ) - - 5 * COUNT( * ) AS col1, + 80 AS col0
----
-6
80

skipif mysql # not compatible
query II rowsort label-6671
SELECT + COALESCE ( - 28, - + 48 ) + + ( 17 ) - - 5 * COUNT ( * ) AS col1, + 80 AS col0
----
-6
80

query II rowsort
SELECT + ( + + 71 ) * 31, - 82 AS col0
----
2201
-82

query I rowsort
SELECT - ( 51 ) + - 88 col1
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT DISTINCT ( + ( - + 13 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT ( + ( - + 13 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6675
SELECT ALL 47 + - 9 + + COUNT( * ) - - 0 * + 86 - + COUNT( * ) * - - COUNT( * ) * 74 / + 92 + - NULLIF ( + - 60, + 71 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL 47 + - 9 + + COUNT ( * ) - - 0 * + 86 - + COUNT ( * ) * - - COUNT ( * ) * 74 / + 92 + - NULLIF ( + - 60, + 71 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL 69 + + COUNT( * ) + + COUNT( * ) - - 11 + + - 50
----
32

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL 69 + + COUNT ( * ) + + COUNT ( * ) - - 11 + + - 50
----
32

query I rowsort
SELECT + COALESCE ( + 29, 43 ) AS col0
----
29

query I rowsort
SELECT ALL 13 + + 33
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT ( + 48 ) + - 89 + - COUNT( * ) + 59 + + 9 * + - SUM( + 91 ) AS col2
----
-802

skipif mysql # not compatible
query I rowsort label-6679
SELECT ( + 48 ) + - 89 + - COUNT ( * ) + 59 + + 9 * + - SUM ( + 91 ) AS col2
----
-802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6680
SELECT + 30 * - 68 + + - 70 + CAST( 39 AS SIGNED ) * + COUNT( * ) DIV + COUNT( * ) AS col2, 0
----
-2071
0

skipif mysql # not compatible
query II rowsort label-6680
SELECT + 30 * - 68 + + - 70 + CAST ( 39 AS INTEGER ) * + COUNT ( * ) / + COUNT ( * ) AS col2, 0
----
-2071
0

query I rowsort
SELECT 83 * 74 AS col1
----
6142

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT ALL 77 * - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL 77 * - COUNT ( * )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT - 46 DIV - 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6683
SELECT - 46 / - 59 AS col2
----
0

query I rowsort
SELECT - 55 * - 14 AS col0
----
770

query II rowsort
SELECT DISTINCT - + 96 * + 28 AS col0, 67 col2
----
-2688
67

query II rowsort
SELECT ALL - 62 col0, 26 * + 7 * - 5 AS col2
----
-62
-910

query I rowsort
SELECT ALL 37 * + 85 AS col0
----
3145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6688
SELECT 37 DIV NULLIF ( - COUNT( * ), - 17 ) * - 56 AS col1
----
2072

skipif mysql # not compatible
query I rowsort label-6688
SELECT 37 / NULLIF ( - COUNT ( * ), - 17 ) * - 56 AS col1
----
2072

query I rowsort
SELECT DISTINCT ( - + 24 ) * 99
----
-2376

query II rowsort
SELECT DISTINCT - 78 AS col0, + 99 * - 13 AS col1
----
-78
-1287

query I rowsort
SELECT ( + ( + 54 ) ) * - 70
----
-3780

query II rowsort
SELECT ALL - 91, 22 * - 12 AS col2
----
-91
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT DISTINCT - MAX( - ( + - NULLIF ( - 75, + 93 * - + 56 ) ) )
----
75

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT - MAX ( - ( + - NULLIF ( - 75, + 93 * - + 56 ) ) )
----
75

query I rowsort
SELECT ALL - 98 * + 77 col1
----
-7546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6695
SELECT 61 * + COUNT( * ) * - COUNT( * ) * - - 7 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT 61 * + COUNT ( * ) * - COUNT ( * ) * - - 7 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL - 97 AS col2, + 88
----
-97
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT 68 + - + 73 * COUNT( - 68 ) * + SUM( - + 44 ) * - CAST( NULL AS SIGNED ) + + - 68 + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT 68 + - + 73 * COUNT ( - 68 ) * + SUM ( - + 44 ) * - CAST ( NULL AS INTEGER ) + + - 68 + - 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6698
SELECT DISTINCT - 8 * - 59 * - - 62 AS col0, + CAST( 57 AS SIGNED ) AS col1
----
29264
57

skipif mysql # not compatible
query II rowsort label-6698
SELECT DISTINCT - 8 * - 59 * - - 62 AS col0, + CAST ( 57 AS INTEGER ) AS col1
----
29264
57

query I rowsort
SELECT ALL - 99 * + - 97
----
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6700
SELECT 51 / - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6700
SELECT 51 / - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL + 26 + - + CASE - COALESCE ( - 25, - 8 ) WHEN 13 * - - ( - 98 ) + - - MIN( + 66 ) + + 8 THEN + 46 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL + 26 + - + CASE - COALESCE ( - 25, - 8 ) WHEN 13 * - - ( - 98 ) + - - MIN ( + 66 ) + + 8 THEN + 46 END AS col0
----
NULL

query I rowsort
SELECT 49 / 4 + - CASE + 89 WHEN - - 4 THEN - 40 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6703
SELECT ALL - CAST( + 59 AS SIGNED ) + + COALESCE ( + 75, - + COALESCE ( 11, + 45, - 74 ) - - 37 + - 63, 15 ) + - 78 - CASE 23 WHEN + 38 THEN - + ( + NULLIF ( 93, 62 * 31 - - 12 * 64 ) ) WHEN ( 10 ) + + ( COALESCE ( 30, COUNT( * ) * 93 + 49 ) ) THEN NULL ELSE ( 86 ) + - 75 END * 25 AS col2
----
-337

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL - CAST ( + 59 AS INTEGER ) + + COALESCE ( + 75, - + COALESCE ( 11, + 45, - 74 ) - - 37 + - 63, 15 ) + - 78 - CASE 23 WHEN + 38 THEN - + ( + NULLIF ( 93, 62 * 31 - - 12 * 64 ) ) WHEN ( 10 ) + + ( COALESCE ( 30, COUNT ( * ) * 93 + 49 ) ) THEN NULL ELSE ( 86 ) + - 75 END * 25 AS col2
----
-337

query I rowsort
SELECT DISTINCT + 39 + - 4 AS col1
----
35

query II rowsort
SELECT - 71 AS col0, 28 * - - 15 * + ( - + ( 10 ) ) + 41
----
-71
-4159

query I rowsort
SELECT 19 * - 14
----
-266

query I rowsort
SELECT ALL + 6 + + 83 * + 31
----
2579

onlyif mysql # aggregate syntax: 
query II rowsort label-6708
SELECT - 44, - 8 + ( + 82 ) * + + 38 + - - 44 + - + COUNT( * ) AS col2
----
-44
3151

skipif mysql # not compatible
query II rowsort label-6708
SELECT - 44, - 8 + ( + 82 ) * + + 38 + - - 44 + - + COUNT ( * ) AS col2
----
-44
3151

onlyif mysql # aggregate syntax: 
query II rowsort label-6709
SELECT - COUNT( * ) - - + 38 - - + 25 AS col0, - COUNT( - - 43 ) col1
----
62
-1

skipif mysql # not compatible
query II rowsort label-6709
SELECT - COUNT ( * ) - - + 38 - - + 25 AS col0, - COUNT ( - - 43 ) col1
----
62
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6710
SELECT - 87 * NULLIF ( + 62, + ( - NULLIF ( - CAST( NULL AS SIGNED ), - - 25 + + 80 ) ) ) AS col0, 9
----
-5394
9

skipif mysql # not compatible
query II rowsort label-6710
SELECT - 87 * NULLIF ( + 62, + ( - NULLIF ( - CAST ( NULL AS INTEGER ), - - 25 + + 80 ) ) ) AS col0, 9
----
-5394
9

query II rowsort
SELECT - - 57 AS col2, + 90 + 38 * - 5 AS col0
----
57
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT DISTINCT - 12 * - COUNT( * ) + + 79 * - + 6 AS col2
----
-462

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT - 12 * - COUNT ( * ) + + 79 * - + 6 AS col2
----
-462

onlyif mysql # aggregate syntax: 
query II rowsort label-6713
SELECT 45, 21 * 18 * SUM( - CASE 29 WHEN + - 88 THEN NULL ELSE + 61 END ) AS col2
----
45
-23058

skipif mysql # not compatible
query II rowsort label-6713
SELECT 45, 21 * 18 * SUM ( - CASE 29 WHEN + - 88 THEN NULL ELSE + 61 END ) AS col2
----
45
-23058

query I rowsort
SELECT ALL + + ( - 27 ) * + - 99 - - COALESCE ( - + 99, - 53, - 19 ) AS col2
----
2574

query I rowsort
SELECT + 53 * + - 99 * 61 * - 22 AS col2
----
7041474

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6716
SELECT ALL 19 DIV 22, + MIN( ALL + 59 ) * 36 - + - 74 - + 99 + 62 + + CAST( NULL AS DECIMAL ) + 92 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6716
SELECT ALL 19 / 22, + MIN ( ALL + 59 ) * 36 - + - 74 - + 99 + 62 + + CAST ( NULL AS REAL ) + 92 AS col2
----
0
NULL

query I rowsort
SELECT ALL - 74 * + - NULLIF ( - 21, 4 ) - + 86 - + - 97 * ( 96 ) AS col0
----
7672

query I rowsort
SELECT 17 * 75 AS col2
----
1275

onlyif mysql # DIV for integer division: 
query I rowsort label-6719
SELECT 72 DIV - - 12 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6719
SELECT 72 / - - 12 AS col2
----
6

query I rowsort
SELECT - 38 * + 40 + + 70 col0
----
-1450

query I rowsort
SELECT 81 - - 99 * + 68
----
6813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6722
SELECT DISTINCT COUNT( * ) DIV - 91 * - ( 30 )
----
0

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT COUNT ( * ) / - 91 * - ( 30 )
----
0

query I rowsort
SELECT DISTINCT 82 * - 96 * - 2 AS col1
----
15744

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT + 94 * + MIN( DISTINCT - COALESCE ( - - ( + - 34 ), + ( - 57 ) + + 12 ) ) + + + 75 * 5 + + + 47
----
3618

skipif mysql # not compatible
query I rowsort label-6724
SELECT + 94 * + MIN ( DISTINCT - COALESCE ( - - ( + - 34 ), + ( - 57 ) + + 12 ) ) + + + 75 * 5 + + + 47
----
3618

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT + MIN( 26 )
----
26

skipif mysql # not compatible
query I rowsort label-6725
SELECT + MIN ( 26 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6726
SELECT ALL - 94 + 54 AS col0, COUNT( * ) AS col2
----
-40
1

skipif mysql # not compatible
query II rowsort label-6726
SELECT ALL - 94 + 54 AS col0, COUNT ( * ) AS col2
----
-40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT DISTINCT - 76 + - COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT - 76 + - COUNT ( * ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT DISTINCT + - 9 + COUNT( * ) * 17 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT + - 9 + COUNT ( * ) * 17 AS col2
----
8

query I rowsort
SELECT ALL - 1 + 20 AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT ALL - CAST( + 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL - CAST ( + 53 AS INTEGER )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL + + 34 + SUM( DISTINCT + 27 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL + + 34 + SUM ( DISTINCT + 27 ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ALL - - COUNT( * ) * 66 + 69
----
135

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL - - COUNT ( * ) * 66 + 69
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6733
SELECT - NULLIF ( - 26, + CAST( + MIN( - 36 ) AS SIGNED ) ) DIV + 59 + - 39
----
-39

skipif mysql # not compatible
query I rowsort label-6733
SELECT - NULLIF ( - 26, + CAST ( + MIN ( - 36 ) AS INTEGER ) ) / + 59 + - 39
----
-39

query I rowsort
SELECT ALL - - 30 + + + 50 + 55
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT DISTINCT - 19 * - ( + MAX( 82 ) ) * + 98
----
152684

skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT - 19 * - ( + MAX ( 82 ) ) * + 98
----
152684

query I rowsort
SELECT - - 55 + + + 59 AS col1
----
114

query I rowsort
SELECT - 92 * + + 79 * COALESCE ( + + 62, + 36 )
----
-450616

query I rowsort
SELECT - + 80 + + + 65 + + - 50 * + 71
----
-3565

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT - - 5 + + MAX( - 92 )
----
-87

skipif mysql # not compatible
query I rowsort label-6739
SELECT - - 5 + + MAX ( - 92 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT + - COALESCE ( COUNT( * ), - 60, + ( + CASE - 38 WHEN 0 THEN + 63 END ) ) - + + 52 * - 58 + - COUNT( * ) AS col2
----
3014

skipif mysql # not compatible
query I rowsort label-6740
SELECT + - COALESCE ( COUNT ( * ), - 60, + ( + CASE - 38 WHEN 0 THEN + 63 END ) ) - + + 52 * - 58 + - COUNT ( * ) AS col2
----
3014

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT - 37 DIV 34 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6741
SELECT - 37 / 34 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6742
SELECT ALL 95 * + CAST( NULL AS SIGNED ) / - 53 + + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL 95 * + CAST ( NULL AS INTEGER ) / - 53 + + 39 AS col1
----
NULL

query I rowsort
SELECT - 64 + + 28 + - ( + - 9 ) * 78 - - 34 AS col0
----
700

query I rowsort
SELECT DISTINCT ( + + 1 ) col0
----
1

query I rowsort
SELECT + 19 * + ( + 15 ) * 17
----
4845

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT ALL - 25 * - - COUNT( * ) * + MAX( - - 54 )
----
-1350

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL - 25 * - - COUNT ( * ) * + MAX ( - - 54 )
----
-1350

query I rowsort
SELECT DISTINCT 42 * - 56 AS col2
----
-2352

query I rowsort
SELECT ALL 77 * + + ( 87 ) AS col1
----
6699

query I rowsort
SELECT - 83 * - - 3
----
-249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6750
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( + 98 ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( + 98 ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT + SUM( DISTINCT - - 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6751
SELECT + SUM ( DISTINCT - - 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL 2 * - AVG ( ALL + 98 ) / CASE - - 19 WHEN + NULLIF ( + 84, - + 48 ) THEN NULL WHEN - - 50 * + 52 / + 92 THEN 56 END / - - 87 + 24 + NULLIF ( - - 92, - 78 + + 21 + + 65 + + + 80 * - 46 ) + + ( 89 + 80 * + 20 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL 2 * - AVG ( ALL + 98 ) / CASE - - 19 WHEN + NULLIF ( + 84, - + 48 ) THEN NULL WHEN - - 50 * + 52 / + 92 THEN 56 END / - - 87 + 24 + NULLIF ( - - 92, - 78 + + 21 + + 65 + + + 80 * - 46 ) + + ( 89 + 80 * + 20 ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT + COALESCE ( + - 26, + 83 + - 85 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT + MAX( DISTINCT - - 19 ) * ( + ( 97 ) ) AS col2
----
1843

skipif mysql # not compatible
query I rowsort label-6754
SELECT + MAX ( DISTINCT - - 19 ) * ( + ( 97 ) ) AS col2
----
1843

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT + SUM( ALL + 41 ) col1
----
41

skipif mysql # not compatible
query I rowsort label-6755
SELECT + SUM ( ALL + 41 ) col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT + 89 * - CAST( - 77 AS SIGNED ) + - + 70 AS col1
----
6783

skipif mysql # not compatible
query I rowsort label-6756
SELECT + 89 * - CAST ( - 77 AS INTEGER ) + - + 70 AS col1
----
6783

query I rowsort
SELECT - 99 + 10
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT DISTINCT 20 * + 26 * - MAX( 7 ) + - 62 - - 3 + - COUNT( * ) AS col1
----
-3700

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT 20 * + 26 * - MAX ( 7 ) + - 62 - - 3 + - COUNT ( * ) AS col1
----
-3700

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT ALL MAX( DISTINCT 85 ) * 70 + - + 70 AS col2
----
5880

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL MAX ( DISTINCT 85 ) * 70 + - + 70 AS col2
----
5880

onlyif mysql # DIV for integer division: 
query I rowsort label-6760
SELECT ALL 75 DIV - - 95 col1
----
0

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL 75 / - - 95 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT ALL - COUNT( * ) * 51 + + + CASE - - SUM( - - 87 ) WHEN + 37 THEN NULL WHEN + - 72 THEN NULL ELSE COUNT( * ) END AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL - COUNT ( * ) * 51 + + + CASE - - SUM ( - - 87 ) WHEN + 37 THEN NULL WHEN + - 72 THEN NULL ELSE COUNT ( * ) END AS col0
----
-50

query I rowsort
SELECT + 10 * - - 86 * + + 8 AS col2
----
6880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6763
SELECT ALL ( + - COUNT( ALL 62 ) ) * + ( COALESCE ( - - 14, 44 + 11 + 62 + - 72 + + 95 DIV + 87 * - + AVG ( ALL 65 ) * CASE 70 WHEN + CASE - 62 WHEN NULLIF ( + CAST( 9 AS SIGNED ), + 26 - + 76 ) + - 92 THEN 41 WHEN - 45 THEN NULL WHEN 3 THEN + 56 + - 57 END THEN - 64 END + + 94 + - 65 DIV - 1, - 44 * 29, - 20 ) ) DIV 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL ( + - COUNT ( ALL 62 ) ) * + ( COALESCE ( - - 14, 44 + 11 + 62 + - 72 + + 95 / + 87 * - + AVG ( ALL 65 ) * CASE 70 WHEN + CASE - 62 WHEN NULLIF ( + CAST ( 9 AS INTEGER ), + 26 - + 76 ) + - 92 THEN 41 WHEN - 45 THEN NULL WHEN 3 THEN + 56 + - 57 END THEN - 64 END + + 94 + - 65 / - 1, - 44 * 29, - 20 ) ) / 61 AS col1
----
0

query I rowsort
SELECT + - 70 + 91 col0
----
21

query I rowsort
SELECT + 24 * 16 AS col2
----
384

query I rowsort
SELECT - ( + + 84 ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6767
SELECT - - CAST( - 60 AS SIGNED ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-6767
SELECT - - CAST ( - 60 AS INTEGER ) AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6768
SELECT - 69 + + CASE - - 36 WHEN + 38 THEN - 31 WHEN 7 * 94 + - + 41 + - + 17 * + 49 THEN - + MIN( + 13 ) * - 27 + - ( + - 54 ) / - CAST( + COUNT( * ) AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6768
SELECT - 69 + + CASE - - 36 WHEN + 38 THEN - 31 WHEN 7 * 94 + - + 41 + - + 17 * + 49 THEN - + MIN ( + 13 ) * - 27 + - ( + - 54 ) / - CAST ( + COUNT ( * ) AS REAL ) END
----
NULL

query I rowsort
SELECT ALL - 24 - + + 76
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT DISTINCT COUNT( DISTINCT 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT COUNT ( DISTINCT 81 ) AS col0
----
1

query I rowsort
SELECT - ( - + 65 ) * 71 AS col1
----
4615

onlyif mysql # DIV for integer division: 
query I rowsort label-6772
SELECT ALL - 63 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL - 63 / 90
----
0

query II rowsort
SELECT ALL 52 AS col1, - 63 - - 30 + 55
----
52
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6774
SELECT - 97, - CAST( - - COUNT( 81 ) AS SIGNED ) + + 22 AS col1
----
-97
21

skipif mysql # not compatible
query II rowsort label-6774
SELECT - 97, - CAST ( - - COUNT ( 81 ) AS INTEGER ) + + 22 AS col1
----
-97
21

query I rowsort
SELECT - - ( - + 70 ) * - 60 * ( + 10 ) col1
----
42000

query I rowsort
SELECT + - 8 - 64
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT + CASE + + 27 WHEN 25 * 93 + - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN - 44 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6777
SELECT + CASE + + 27 WHEN 25 * 93 + - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN - 44 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 90 - - 93 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT - MAX( ALL 30 ) * 8 AS col1
----
-240

skipif mysql # not compatible
query I rowsort label-6779
SELECT - MAX ( ALL 30 ) * 8 AS col1
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6780
SELECT ALL CAST( + COUNT( ALL + 73 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL CAST ( + COUNT ( ALL + 73 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT DISTINCT + CASE - - NULLIF ( + + 12, + MIN( + + 62 ) + + 80 * - 40 ) WHEN - 1 - - + 50 - ( + COUNT( * ) ) * + - COUNT( * ) * + + 54 THEN 14 + 83 + + 74 - - 81 * COUNT( * ) WHEN + 61 THEN - MIN( DISTINCT - + 29 ) / 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT + CASE - - NULLIF ( + + 12, + MIN ( + + 62 ) + + 80 * - 40 ) WHEN - 1 - - + 50 - ( + COUNT ( * ) ) * + - COUNT ( * ) * + + 54 THEN 14 + 83 + + 74 - - 81 * COUNT ( * ) WHEN + 61 THEN - MIN ( DISTINCT - + 29 ) / 5 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6782
SELECT ALL + 66 DIV + + SUM( 84 ) * - COUNT( * ) + - MAX( - + 26 ) + - 97 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL + 66 / + + SUM ( 84 ) * - COUNT ( * ) + - MAX ( - + 26 ) + - 97 AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6783
SELECT DISTINCT 23 / - CAST( NULL AS SIGNED ) + + 67 + - + 41 + + MIN( 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT 23 / - CAST ( NULL AS INTEGER ) + + 67 + - + 41 + + MIN ( 78 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT + COALESCE ( - 66, + COUNT( 85 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-6784
SELECT + COALESCE ( - 66, + COUNT ( 85 ) )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6785
SELECT DISTINCT SUM( + 41 ) / 23 + CASE 35 WHEN - - 79 - 5 THEN 79 * + + 96 * 79 WHEN 63 THEN NULL END + - 12 * 42 * - 57 AS col0, + COUNT( * ) + - 24 * - COUNT( * ) * + ( 13 ) * + 24 col0
----
NULL
7489

skipif mysql # not compatible
query II rowsort label-6785
SELECT DISTINCT SUM ( + 41 ) / 23 + CASE 35 WHEN - - 79 - 5 THEN 79 * + + 96 * 79 WHEN 63 THEN NULL END + - 12 * 42 * - 57 AS col0, + COUNT ( * ) + - 24 * - COUNT ( * ) * + ( 13 ) * + 24 col0
----
NULL
7489

query II rowsort
SELECT 64 AS col0, 60 * - 67 AS col2
----
64
-4020

onlyif mysql # aggregate syntax: 
query II rowsort label-6787
SELECT ALL - 51 AS col0, - MAX( ALL 38 )
----
-51
-38

skipif mysql # not compatible
query II rowsort label-6787
SELECT ALL - 51 AS col0, - MAX ( ALL 38 )
----
-51
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT DISTINCT COUNT( * ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT COUNT ( * ) * 3
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6789
SELECT DISTINCT + 59 - - 34 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT + 59 - - 34 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT DISTINCT - - MIN( 92 )
----
92

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT - - MIN ( 92 )
----
92

query I rowsort
SELECT + ( - 9 ) col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT + SUM( DISTINCT - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-6792
SELECT + SUM ( DISTINCT - 98 )
----
-98

query I rowsort
SELECT + - ( ( 6 ) )
----
-6

query I rowsort
SELECT 4 + - 47 AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT + 74 DIV - 89 + + + 75 * - - 61
----
4575

skipif mysql # not compatible
query I rowsort label-6795
SELECT + 74 / - 89 + + + 75 * - - 61
----
4575

query I rowsort
SELECT - 83 * + 82
----
-6806

query I rowsort
SELECT - - 96 col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6798
SELECT ALL - SUM( DISTINCT ( + 4 ) ) * 20 AS col2, 12 - + 46 + - + 44 AS col0
----
-80
-78

skipif mysql # not compatible
query II rowsort label-6798
SELECT ALL - SUM ( DISTINCT ( + 4 ) ) * 20 AS col2, 12 - + 46 + - + 44 AS col0
----
-80
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6799
SELECT + 6 - CAST( NULL AS SIGNED ) * + + SUM( DISTINCT + - 26 ) col1, 43 + + 10 AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-6799
SELECT + 6 - CAST ( NULL AS INTEGER ) * + + SUM ( DISTINCT + - 26 ) col1, 43 + + 10 AS col1
----
NULL
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6800
SELECT DISTINCT + SUM( DISTINCT + 53 ), CAST( ( + COUNT( * ) ) AS SIGNED ) + - 77 AS col2
----
53
-76

skipif mysql # not compatible
query II rowsort label-6800
SELECT DISTINCT + SUM ( DISTINCT + 53 ), CAST ( ( + COUNT ( * ) ) AS INTEGER ) + - 77 AS col2
----
53
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ALL MAX( ALL + ( + 65 ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL MAX ( ALL + ( + 65 ) ) AS col0
----
65

query I rowsort
SELECT ALL + 92 * + - 49 col1
----
-4508

query II rowsort
SELECT DISTINCT + 60 col0, 61 AS col2
----
60
61

query I rowsort
SELECT DISTINCT 98 * - 75 AS col0
----
-7350

query I rowsort
SELECT ALL ( + + 78 ) col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6806
SELECT 52 + - 35 + COUNT( * ) - + ( - CAST( NULL AS SIGNED ) ) / - 15, 4 AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-6806
SELECT 52 + - 35 + COUNT ( * ) - + ( - CAST ( NULL AS INTEGER ) ) / - 15, 4 AS col2
----
NULL
4

query I rowsort
SELECT 11 * + NULLIF ( - 4, 3 + 88 ) * - - 55
----
-2420

query I rowsort
SELECT 42 - - 98 * - + 65 * - - 68
----
-433118

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT ALL COUNT( + + 63 )
----
1

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL COUNT ( + + 63 )
----
1

query I rowsort
SELECT ALL 43 + + 80 AS col2
----
123

query I rowsort
SELECT 46 + CASE + 61 WHEN - 92 * 7 / + 28 THEN NULL WHEN + 27 THEN + 98 END
----
NULL

query I rowsort
SELECT ALL 72 + - COALESCE ( + 68, + 88 ) - + 8
----
-4

query I rowsort
SELECT ( - + 57 ) + + 40
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT 71 + - + COUNT( + ( + 99 ) ) + + 17 * - 7
----
-49

skipif mysql # not compatible
query I rowsort label-6814
SELECT 71 + - + COUNT ( + ( + 99 ) ) + + 17 * - 7
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT ALL 0 DIV + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL 0 / + 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT DISTINCT 59 + - + COALESCE ( + COUNT( * ), 48 * - - 18 + + 42 ) col2
----
58

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT 59 + - + COALESCE ( + COUNT ( * ), 48 * - - 18 + + 42 ) col2
----
58

query II rowsort
SELECT DISTINCT + 62 * + ( - 29 ) AS col1, 8
----
-1798
8

query I rowsort
SELECT ALL - 8 + - + 94 * + 48 AS col0
----
-4520

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT DISTINCT + 53 * + + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT + 53 * + + COUNT ( * ) AS col2
----
53

query I rowsort
SELECT DISTINCT 99 * + - 90
----
-8910

query I rowsort
SELECT ALL 58 - + 67
----
-9

query I rowsort
SELECT ALL - 9 - + - 88 AS col2
----
79

query I rowsort
SELECT 96 * - 82 AS col1
----
-7872

onlyif mysql # aggregate syntax: 
query II rowsort label-6824
SELECT ALL - ( + ( - - 12 ) ), - NULLIF ( + 21, - + 41 - 78 + - COALESCE ( 18, 0, + + 25, + + 83 ) / + CASE + + 60 WHEN - 93 + ( - NULLIF ( + 44, + 16 ) ) + + 57 + + 63 * 91 THEN MIN( DISTINCT 57 ) * - 22 ELSE NULL END ) + 27 AS col2
----
-12
6

skipif mysql # not compatible
query II rowsort label-6824
SELECT ALL - ( + ( - - 12 ) ), - NULLIF ( + 21, - + 41 - 78 + - COALESCE ( 18, 0, + + 25, + + 83 ) / + CASE + + 60 WHEN - 93 + ( - NULLIF ( + 44, + 16 ) ) + + 57 + + 63 * 91 THEN MIN ( DISTINCT 57 ) * - 22 ELSE NULL END ) + 27 AS col2
----
-12
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT - NULLIF ( CASE + 86 WHEN - 49 THEN - COUNT( * ) END, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT - NULLIF ( CASE + 86 WHEN - 49 THEN - COUNT ( * ) END, COUNT ( * ) )
----
NULL

query II rowsort
SELECT + ( + + 7 ) * + 63 * 11 * + + 78 col2, - 98 * - - 52 AS col2
----
378378
-5096

query I rowsort
SELECT 39 * 12 * 27 AS col1
----
12636

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT 42 * COUNT( * ) * - COUNT( * ) + - 82 AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-6828
SELECT 42 * COUNT ( * ) * - COUNT ( * ) + - 82 AS col0
----
-124

query I rowsort
SELECT 88 - - - 24 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT COUNT( * ) + COALESCE ( - 59, - - NULLIF ( 89, + NULLIF ( + 96, - NULLIF ( 88, 46 ) ) / - 72 ), - + NULLIF ( - 69, - 22 / + - 41 * COUNT( * ) ), - 88 + + + 59 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-6830
SELECT COUNT ( * ) + COALESCE ( - 59, - - NULLIF ( 89, + NULLIF ( + 96, - NULLIF ( 88, 46 ) ) / - 72 ), - + NULLIF ( - 69, - 22 / + - 41 * COUNT ( * ) ), - 88 + + + 59 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT + MIN( + ( + 35 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6831
SELECT + MIN ( + ( + 35 ) ) AS col1
----
35

query I rowsort
SELECT ALL ( - 97 ) col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6833
SELECT - - 73 * SUM( ALL 79 ) * COUNT( * ) * 35 + + + ( - + 54 ) - + 93 + - CAST( NULL AS SIGNED ) * - COUNT( * ) + - 25 + - 77 + + - 60 * + + 66 * + 54 * - 49 + CAST( NULL AS SIGNED ) + + - NULLIF ( ( - - 27 ), + 90 ) * + ( - 0 ) / + 4 + 13 * + 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT - - 73 * SUM ( ALL 79 ) * COUNT ( * ) * 35 + + + ( - + 54 ) - + 93 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 25 + - 77 + + - 60 * + + 66 * + 54 * - 49 + CAST ( NULL AS INTEGER ) + + - NULLIF ( ( - - 27 ), + 90 ) * + ( - 0 ) / + 4 + 13 * + 80 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6834
SELECT 80 DIV MIN( ALL - 1 ), 51 AS col0
----
-80
51

skipif mysql # not compatible
query II rowsort label-6834
SELECT 80 / MIN ( ALL - 1 ), 51 AS col0
----
-80
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT 67 * + 67 * SUM( DISTINCT - 86 )
----
-386054

skipif mysql # not compatible
query I rowsort label-6835
SELECT 67 * + 67 * SUM ( DISTINCT - 86 )
----
-386054

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT DISTINCT - 80 DIV 87 * - - 26 * - 42
----
0

skipif mysql # not compatible
query I rowsort label-6836
SELECT DISTINCT - 80 / 87 * - - 26 * - 42
----
0

query I rowsort
SELECT DISTINCT COALESCE ( 47, - ( - - NULLIF ( 87, - 35 + - 64 ) ) * - + 23, + 55 ) + - - 45
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT 59 DIV 83 * + 34 + - 81 * + + 50 * 48
----
-194400

skipif mysql # not compatible
query I rowsort label-6838
SELECT 59 / 83 * + 34 + - 81 * + + 50 * 48
----
-194400

query I rowsort
SELECT ALL 54 + 29
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT 62 * - SUM( ALL + 91 ) AS col1
----
-5642

skipif mysql # not compatible
query I rowsort label-6840
SELECT 62 * - SUM ( ALL + 91 ) AS col1
----
-5642

onlyif mysql # DIV for integer division: 
query I rowsort label-6841
SELECT DISTINCT 66 DIV - - 90
----
0

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT 66 / - - 90
----
0

query II rowsort
SELECT 73 AS col1, - 96 + + + 35
----
73
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT 60 + MIN( ALL - 3 ) * - - 12 + - 74 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT 60 + MIN ( ALL - 3 ) * - - 12 + - 74 AS col2
----
-50

query I rowsort
SELECT ALL 18 + - 11 AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6845
SELECT + 24 * 90 * + 12 AS col1, COUNT( * ) + 6 DIV + ( + + 94 )
----
25920
1

skipif mysql # not compatible
query II rowsort label-6845
SELECT + 24 * 90 * + 12 AS col1, COUNT ( * ) + 6 / + ( + + 94 )
----
25920
1

query I rowsort
SELECT ALL 94 + - 64
----
30

query I rowsort
SELECT + NULLIF ( - - 56, 99 + + - 30 ) - 44 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT + SUM( + 38 ) - - 9 * + 75
----
713

skipif mysql # not compatible
query I rowsort label-6848
SELECT + SUM ( + 38 ) - - 9 * + 75
----
713

query I rowsort
SELECT ALL 59 - - 5 + + 76 - - - 53 * + + 80 AS col2
----
-4100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6850
SELECT NULLIF ( + CAST( + SUM( 15 ) AS SIGNED ), - - 77 + COUNT( * ) ) col2, 53 * 71
----
15
3763

skipif mysql # not compatible
query II rowsort label-6850
SELECT NULLIF ( + CAST ( + SUM ( 15 ) AS INTEGER ), - - 77 + COUNT ( * ) ) col2, 53 * 71
----
15
3763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6851
SELECT DISTINCT 46 * + ( - - 12 ), COUNT( * ) * CAST( - - COALESCE ( - + 33, - CAST( - SUM( ALL 75 ) AS SIGNED ), 64 + + COUNT( * ) * + CAST( 79 AS DECIMAL ) - + + 46 ) AS SIGNED ) AS col0
----
552
-33

skipif mysql # not compatible
query II rowsort label-6851
SELECT DISTINCT 46 * + ( - - 12 ), COUNT ( * ) * CAST ( - - COALESCE ( - + 33, - CAST ( - SUM ( ALL 75 ) AS INTEGER ), 64 + + COUNT ( * ) * + CAST ( 79 AS REAL ) - + + 46 ) AS INTEGER ) AS col0
----
552
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT + CASE - COUNT( * ) WHEN + 67 THEN - 87 WHEN + 83 * - + COUNT( * ) * + + COUNT( 12 ) THEN - 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT + CASE - COUNT ( * ) WHEN + 67 THEN - 87 WHEN + 83 * - + COUNT ( * ) * + + COUNT ( 12 ) THEN - 97 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT NULLIF ( MAX( - 51 ), 95 / + 91 ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-6853
SELECT NULLIF ( MAX ( - 51 ), 95 / + 91 ) col1
----
-51

query II rowsort
SELECT ALL 81 * 7 * + - 15, - 32 col1
----
-8505
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT + 87 + - + COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6855
SELECT + 87 + - + COUNT ( * ) AS col2
----
86

query I rowsort
SELECT ALL - + 96 * + 44 * + 11
----
-46464

query I rowsort
SELECT DISTINCT 30 * 27 + - 76
----
734

onlyif mysql # aggregate syntax: 
query II rowsort label-6858
SELECT ALL + - 5, - COUNT( * ) + - 42 + - 88 AS col0
----
-5
-131

skipif mysql # not compatible
query II rowsort label-6858
SELECT ALL + - 5, - COUNT ( * ) + - 42 + - 88 AS col0
----
-5
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-6859
SELECT DISTINCT - + 70 DIV 85 * + + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT - + 70 / 85 * + + 36 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT + 32 DIV - + 10
----
-3

skipif mysql # not compatible
query I rowsort label-6860
SELECT + 32 / - + 10
----
-3

query I rowsort
SELECT - 1 * - - 83 * 43
----
-3569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6862
SELECT ALL - + 14 * + 83 - NULLIF ( + 86, + 91 * + 25 ) * CAST( NULL AS SIGNED ) * + CASE + 7 WHEN - COALESCE ( - + 31, + 60, + COUNT( * ), - 50 ) THEN NULL WHEN 17 THEN - - ( - + 56 ) * + + 8 * - + 8 END + + 73 / + + 36 + 67 + 52 * + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL - + 14 * + 83 - NULLIF ( + 86, + 91 * + 25 ) * CAST ( NULL AS INTEGER ) * + CASE + 7 WHEN - COALESCE ( - + 31, + 60, + COUNT ( * ), - 50 ) THEN NULL WHEN 17 THEN - - ( - + 56 ) * + + 8 * - + 8 END + + 73 / + + 36 + 67 + 52 * + 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT - 15 * COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-6863
SELECT - 15 * COUNT ( * )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6864
SELECT ALL + 47 * COUNT( * ) + CAST( NULL AS SIGNED ) + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + 47 * COUNT ( * ) + CAST ( NULL AS INTEGER ) + 66 AS col0
----
NULL

query I rowsort
SELECT - + 20 + + 24 + 54 + - 82 col2
----
-24

query I rowsort
SELECT ALL - 51 * + 10 col2
----
-510

query I rowsort
SELECT - - ( + 88 ) * + 0
----
0

query I rowsort
SELECT DISTINCT - + 99 * + 75
----
-7425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6869
SELECT ALL + - 28 + - 47 * + 42 * - - 45 * - NULLIF ( - 31, + 18 ) * 4 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL + - 28 + - 47 * + 42 * - - 45 * - NULLIF ( - 31, + 18 ) * 4 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - ( - ( + 68 ) ) - 9 AS col0
----
59

query I rowsort
SELECT ALL - 90 * + 29 col0
----
-2610

query I rowsort
SELECT DISTINCT + 25 + 11 AS col0
----
36

query I rowsort
SELECT + ( - 66 ) + - 13
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6874
SELECT ALL + 7 + - 51 + + 37 + - + 57, COUNT( 59 ) AS col0
----
-64
1

skipif mysql # not compatible
query II rowsort label-6874
SELECT ALL + 7 + - 51 + + 37 + - + 57, COUNT ( 59 ) AS col0
----
-64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - COUNT( * ) + + - 69 * - 83
----
5726

skipif mysql # not compatible
query I rowsort label-6875
SELECT - COUNT ( * ) + + - 69 * - 83
----
5726

query I rowsort
SELECT - CASE + 97 WHEN 39 + 78 THEN + 83 * - - 30 * - - 4 * + 1 ELSE ( + - 41 ) END AS col2
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6877
SELECT - ( - - 34 ) + - + CAST( NULL AS DECIMAL ) * + + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT - ( - - 34 ) + - + CAST ( NULL AS REAL ) * + + 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL 65 - + MAX( 86 )
----
-21

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL 65 - + MAX ( 86 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT + SUM( - + 11 ) * - - ( - 94 )
----
1034

skipif mysql # not compatible
query I rowsort label-6879
SELECT + SUM ( - + 11 ) * - - ( - 94 )
----
1034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6880
SELECT DISTINCT CAST( + 10 AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT CAST ( + 10 AS INTEGER ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL SUM( - + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL SUM ( - + 73 )
----
-73

query I rowsort
SELECT + 99 + - 31
----
68

query I rowsort
SELECT ALL 5 * 19 AS col2
----
95

query I rowsort
SELECT - 11 * 8
----
-88

query I rowsort
SELECT + 75 + ( 85 ) - 84
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6886
SELECT + CASE WHEN CASE - CASE + 97 WHEN - + ( + 45 ) + - 51 + + 19 THEN COUNT( * ) END WHEN 94 THEN NULL ELSE + 63 END IS NOT NULL THEN CASE - 33 WHEN + 51 THEN NULL ELSE 63 END DIV + 27 ELSE 56 END
----
2

skipif mysql # not compatible
query I rowsort label-6886
SELECT + CASE WHEN CASE - CASE + 97 WHEN - + ( + 45 ) + - 51 + + 19 THEN COUNT ( * ) END WHEN 94 THEN NULL ELSE + 63 END IS NOT NULL THEN CASE - 33 WHEN + 51 THEN NULL ELSE 63 END / + 27 ELSE 56 END
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT 46 DIV + 47 * 49 + + - 17 - + 1
----
-18

skipif mysql # not compatible
query I rowsort label-6887
SELECT 46 / + 47 * 49 + + - 17 - + 1
----
-18

query II rowsort
SELECT + 36 + + + 28 AS col0, 11 AS col1
----
64
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6889
SELECT ALL 68 DIV COALESCE ( + + 96, - 42, - 79 ) + 83 col1
----
83

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL 68 / COALESCE ( + + 96, - 42, - 79 ) + 83 col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6890
SELECT - - ( 38 ) DIV - 28 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6890
SELECT - - ( 38 ) / - 28 AS col1
----
-1

query I rowsort
SELECT + + 24 + + 38 AS col1
----
62

query I rowsort
SELECT DISTINCT + 57 * - 56 * - 6 + - 0
----
19152

query I rowsort
SELECT + - 91 - - 48 + - 14 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT + + MAX( ALL - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-6894
SELECT + + MAX ( ALL - 21 )
----
-21

query I rowsort
SELECT DISTINCT 38 * + ( 69 ) + - 70
----
2552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6896
SELECT ALL 76 * 88 + CAST( + + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) AS col0
----
6689

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL 76 * 88 + CAST ( + + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0
----
6689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6897
SELECT DISTINCT - 53 * - CASE + - 92 WHEN + 97 THEN NULL WHEN 0 * 0 * + CAST( - ( + 17 ) AS SIGNED ) * - + 57 * - + 73 * - + 27 THEN + CAST( NULL AS SIGNED ) + + + 75 WHEN + + 32 / 92 - + ( - - COUNT( DISTINCT - 94 ) ) + - 33 - - + 81 + CAST( + + 62 AS SIGNED ) / + - 41 THEN NULL ELSE - 82 END * 65 - 77 AS col1
----
-282567

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT - 53 * - CASE + - 92 WHEN + 97 THEN NULL WHEN 0 * 0 * + CAST ( - ( + 17 ) AS INTEGER ) * - + 57 * - + 73 * - + 27 THEN + CAST ( NULL AS INTEGER ) + + + 75 WHEN + + 32 / 92 - + ( - - COUNT ( DISTINCT - 94 ) ) + - 33 - - + 81 + CAST ( + + 62 AS INTEGER ) / + - 41 THEN NULL ELSE - 82 END * 65 - 77 AS col1
----
-282567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6898
SELECT - 88 + + 40 DIV - COUNT( - - 1 )
----
-128

skipif mysql # not compatible
query I rowsort label-6898
SELECT - 88 + + 40 / - COUNT ( - - 1 )
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT ALL + - 1 DIV - 19 + 49 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL + - 1 / - 19 + 49 AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6900
SELECT ALL + 21 DIV 68 * - + ( 78 )
----
0

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL + 21 / 68 * - + ( 78 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6901
SELECT CAST( - + 82 AS SIGNED ) DIV - + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-6901
SELECT CAST ( - + 82 AS INTEGER ) / - + COUNT ( * )
----
82

query I rowsort
SELECT DISTINCT + 3 * + 16 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6903
SELECT - 27 AS col2, + COALESCE ( - NULLIF ( - 82, - COALESCE ( + 26, - COUNT( * ), CASE + + 48 WHEN - + MAX( - + 36 ) THEN NULL WHEN COUNT( * ) THEN + COUNT( * ) END / + NULLIF ( - SUM( DISTINCT 93 ), + 15 ) * - - 98 * - + 80 - - 69 - - 65 ) ), + 34 ) * 70 - 46 + - 76
----
-27
5618

skipif mysql # not compatible
query II rowsort label-6903
SELECT - 27 AS col2, + COALESCE ( - NULLIF ( - 82, - COALESCE ( + 26, - COUNT ( * ), CASE + + 48 WHEN - + MAX ( - + 36 ) THEN NULL WHEN COUNT ( * ) THEN + COUNT ( * ) END / + NULLIF ( - SUM ( DISTINCT 93 ), + 15 ) * - - 98 * - + 80 - - 69 - - 65 ) ), + 34 ) * 70 - 46 + - 76
----
-27
5618

query I rowsort
SELECT DISTINCT - 31 * - 92
----
2852

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT ALL + MAX( ALL - NULLIF ( + 85, + 27 ) ) - 77 * COALESCE ( - + NULLIF ( - COUNT( * ), - - 57 / 14 + + COUNT( * ) ), + 75 + 59 ) - + 32 AS col1
----
-194

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL + MAX ( ALL - NULLIF ( + 85, + 27 ) ) - 77 * COALESCE ( - + NULLIF ( - COUNT ( * ), - - 57 / 14 + + COUNT ( * ) ), + 75 + 59 ) - + 32 AS col1
----
-194

query I rowsort
SELECT ALL - 22 * + 82
----
-1804

query I rowsort
SELECT ALL - 49 * 50
----
-2450

query I rowsort
SELECT 96 * 20 AS col0
----
1920

query I rowsort
SELECT 80 * + + 34 * 47 AS col1
----
127840

query I rowsort
SELECT 22 * - 20 AS col1
----
-440

query II rowsort
SELECT DISTINCT 52 AS col0, - 23
----
52
-23

query I rowsort
SELECT 96 - + 75 + 58 + - + 4 - + 61 * + COALESCE ( + 81, 90 * + + 86 ) + 66 * - 0 * 30 AS col0
----
-4866

query I rowsort
SELECT 5 - - - 40 AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT 11 DIV - - 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6914
SELECT 11 / - - 38 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT 15 + MAX( + 54 ) * - - 29
----
1581

skipif mysql # not compatible
query I rowsort label-6915
SELECT 15 + MAX ( + 54 ) * - - 29
----
1581

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT DISTINCT - SUM( + + 29 ) * + - 45 * - - 17 AS col0
----
22185

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT - SUM ( + + 29 ) * + - 45 * - - 17 AS col0
----
22185

onlyif mysql # aggregate syntax: 
query II rowsort label-6917
SELECT ALL + 42 + SUM( - 94 ) AS col2, 30
----
-52
30

skipif mysql # not compatible
query II rowsort label-6917
SELECT ALL + 42 + SUM ( - 94 ) AS col2, 30
----
-52
30

query I rowsort
SELECT DISTINCT - + ( - NULLIF ( - 40, 79 ) ) AS col2
----
-40

query I rowsort
SELECT ALL + 20 + + 89 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT MIN( ALL - 97 ) * 36 - + 20 / + + ( CASE + 34 WHEN + 6 THEN + 8 ELSE NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT MIN ( ALL - 97 ) * 36 - + 20 / + + ( CASE + 34 WHEN + 6 THEN + 8 ELSE NULL END ) col0
----
NULL

query I rowsort
SELECT + ( + + 95 ) AS col0
----
95

query I rowsort
SELECT DISTINCT ( - 10 ) * + - NULLIF ( ( - 56 ), + 26 ) * 77
----
-43120

query I rowsort
SELECT ALL 53 + + 55
----
108

query II rowsort
SELECT + 27 + + + 20 * + 64 AS col0, CASE - 28 WHEN 11 + - 66 THEN NULL WHEN 12 THEN NULL ELSE - 48 * - 77 END
----
1307
3696

onlyif mysql # aggregate syntax: 
query II rowsort label-6925
SELECT - - 46 * + - 99 + - 92 + - + ( 92 ) + - + 31, - 14 * + + 86 * MAX( + + 86 ) * - 14 + - 50 * - 40 + 53 AS col0
----
-4769
1451669

skipif mysql # not compatible
query II rowsort label-6925
SELECT - - 46 * + - 99 + - 92 + - + ( 92 ) + - + 31, - 14 * + + 86 * MAX ( + + 86 ) * - 14 + - 50 * - 40 + 53 AS col0
----
-4769
1451669

query I rowsort
SELECT DISTINCT - 93 + - ( - - 23 )
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT DISTINCT - + SUM( + - 67 ) col0
----
67

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT - + SUM ( + - 67 ) col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT DISTINCT 38 + + 12 * + MIN( - - 83 ) AS col1
----
1034

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT 38 + + 12 * + MIN ( - - 83 ) AS col1
----
1034

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT DISTINCT + NULLIF ( - + 91, + 46 * + + 44 + + NULLIF ( + 50, + - 85 * - NULLIF ( + 87, ( + 84 ) ) * + - 40 ) ) - - + MAX( DISTINCT 88 ) * - COUNT( * )
----
-179

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT + NULLIF ( - + 91, + 46 * + + 44 + + NULLIF ( + 50, + - 85 * - NULLIF ( + 87, ( + 84 ) ) * + - 40 ) ) - - + MAX ( DISTINCT 88 ) * - COUNT ( * )
----
-179

query I rowsort
SELECT - ( - + 75 )
----
75

query I rowsort
SELECT ALL - - ( - + 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT - MIN( - 84 ) * 73 + 35
----
6167

skipif mysql # not compatible
query I rowsort label-6932
SELECT - MIN ( - 84 ) * 73 + 35
----
6167

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT 0 * + ( COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6933
SELECT 0 * + ( COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6934
SELECT CAST( + 70 AS SIGNED ) * 3 * + ( 76 ) AS col1
----
15960

skipif mysql # not compatible
query I rowsort label-6934
SELECT CAST ( + 70 AS INTEGER ) * 3 * + ( 76 ) AS col1
----
15960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6935
SELECT ALL 36 * CAST( + 82 AS SIGNED )
----
2952

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL 36 * CAST ( + 82 AS INTEGER )
----
2952

query II rowsort
SELECT DISTINCT 32, 27 col0
----
32
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6937
SELECT DISTINCT + COUNT( DISTINCT + - 24 ) DIV - - 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT + COUNT ( DISTINCT + - 24 ) / - - 28 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6938
SELECT ALL 90, 44 * ( + ( COUNT( * ) ) ) DIV + 29 + + 57 - + 52 * + 70 * + 63 + + ( 28 ) AS col0
----
90
-229234

skipif mysql # not compatible
query II rowsort label-6938
SELECT ALL 90, 44 * ( + ( COUNT ( * ) ) ) / + 29 + + 57 - + 52 * + 70 * + 63 + + ( 28 ) AS col0
----
90
-229234

query I rowsort
SELECT ( - 82 ) * + 55
----
-4510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6940
SELECT 15 + + + NULLIF ( + 46, - 8 * + 80 * + CASE + 68 WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN - 47 THEN + - 14 ELSE NULL END ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6940
SELECT 15 + + + NULLIF ( + 46, - 8 * + 80 * + CASE + 68 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 47 THEN + - 14 ELSE NULL END ) AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6941
SELECT CAST( + 12 AS SIGNED ) + + ( 46 ) + - + 58 + + 77 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6941
SELECT CAST ( + 12 AS INTEGER ) + + ( 46 ) + - + 58 + + 77 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6942
SELECT 22 / CASE + + COUNT( DISTINCT 99 ) WHEN + + 20 / + 20 - 79 THEN - COUNT( * ) * - SUM( DISTINCT + 89 ) * - 24 / - + 10 - + ( + - NULLIF ( - 80, + + COUNT( * ) - - 27 ) ) + + 81 * 69 WHEN + + ( - CAST( - + 44 AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6942
SELECT 22 / CASE + + COUNT ( DISTINCT 99 ) WHEN + + 20 / + 20 - 79 THEN - COUNT ( * ) * - SUM ( DISTINCT + 89 ) * - 24 / - + 10 - + ( + - NULLIF ( - 80, + + COUNT ( * ) - - 27 ) ) + + 81 * 69 WHEN + + ( - CAST ( - + 44 AS INTEGER ) ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6943
SELECT DISTINCT + 73 DIV - 83, + 54 AS col0
----
0
54

skipif mysql # not compatible
query II rowsort label-6943
SELECT DISTINCT + 73 / - 83, + 54 AS col0
----
0
54

query I rowsort
SELECT 41 - 44 * + - 13 * + - 35 * - + 56 AS col0
----
1121161

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT DISTINCT 87 + - - 5 - - 66 * - - 37 * + NULLIF ( - - MIN( 13 ), 56 ) * - - COUNT( * ) col1
----
31838

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT 87 + - - 5 - - 66 * - - 37 * + NULLIF ( - - MIN ( 13 ), 56 ) * - - COUNT ( * ) col1
----
31838

query II rowsort
SELECT 12 AS col1, ( 65 ) AS col0
----
12
65

query I rowsort
SELECT DISTINCT + NULLIF ( ( + 36 ), + 63 ) + + - 53 + - + 93 + 24 * + 42 AS col2
----
898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6948
SELECT ALL + + 9 * - + ( + CAST( NULL AS SIGNED ) ) - + 40 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL + + 9 * - + ( + CAST ( NULL AS INTEGER ) ) - + 40 * 51
----
NULL

query II rowsort
SELECT - 10 AS col2, 4
----
-10
4

query I rowsort
SELECT + 59 + - 50
----
9

query II rowsort
SELECT - 60, - 5 col2
----
-60
-5

query I rowsort
SELECT ALL + + 34 + - 61 AS col0
----
-27

query I rowsort
SELECT 11 * + 53 AS col1
----
583

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6954
SELECT - 1 DIV 13 + + 90 + COUNT( * ) * - COALESCE ( + 10, 91 * - 8 * MIN( ALL + - 98 ) + COUNT( * ) ) - + 51
----
29

skipif mysql # not compatible
query I rowsort label-6954
SELECT - 1 / 13 + + 90 + COUNT ( * ) * - COALESCE ( + 10, 91 * - 8 * MIN ( ALL + - 98 ) + COUNT ( * ) ) - + 51
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT DISTINCT ( 16 ) * + COUNT( * ) - + 49 + - 14 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT ( 16 ) * + COUNT ( * ) - + 49 + - 14 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT ALL - - MAX( + - 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL - - MAX ( + - 41 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT COUNT( ALL 81 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6957
SELECT COUNT ( ALL 81 ) AS col2
----
1

query II rowsort
SELECT ALL - ( - 76 ) AS col1, - 45
----
76
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT ALL - ( - SUM( DISTINCT 96 ) ) * 81 * - - COALESCE ( 77, + + 50 + 1 )
----
598752

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL - ( - SUM ( DISTINCT 96 ) ) * 81 * - - COALESCE ( 77, + + 50 + 1 )
----
598752

query I rowsort
SELECT + 48 * - 5 AS col2
----
-240

query I rowsort
SELECT ALL + 47 * - COALESCE ( ( - 64 ), + + 86 + 72, - 66 + - 32 ) + + 0
----
3008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT ALL - 72 * - 46 + + CAST( 26 AS SIGNED )
----
3338

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL - 72 * - 46 + + CAST ( 26 AS INTEGER )
----
3338

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT 67 * + SUM( + + 9 ) + - - 5
----
608

skipif mysql # not compatible
query I rowsort label-6963
SELECT 67 * + SUM ( + + 9 ) + - - 5
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT ALL - COUNT( * ) * COUNT( DISTINCT - 25 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - COUNT ( * ) * COUNT ( DISTINCT - 25 ) AS col1
----
-1

query I rowsort
SELECT - 14 * - 59 + - 14
----
812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6966
SELECT + CAST( NULL AS SIGNED ) / + 67 + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT + CAST ( NULL AS INTEGER ) / + 67 + 50 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6967
SELECT + CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6967
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ALL 67 * ( - 12 ) AS col1
----
-804

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL + - MIN( ALL 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL + - MIN ( ALL 33 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6970
SELECT - 58 * + COALESCE ( - - CAST( NULL AS SIGNED ), 76, 78 DIV - - 74 ) - + 32 * 10 AS col1
----
-4728

skipif mysql # not compatible
query I rowsort label-6970
SELECT - 58 * + COALESCE ( - - CAST ( NULL AS INTEGER ), 76, 78 / - - 74 ) - + 32 * 10 AS col1
----
-4728

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6971
SELECT + COUNT( * ) DIV NULLIF ( - + 13, - 81 ) * - - MAX( 18 ) * 55 DIV 2 - + 24 + - 92 DIV - - 73 AS col2, + 51
----
-25
51

skipif mysql # not compatible
query II rowsort label-6971
SELECT + COUNT ( * ) / NULLIF ( - + 13, - 81 ) * - - MAX ( 18 ) * 55 / 2 - + 24 + - 92 / - - 73 AS col2, + 51
----
-25
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT + - 26 + COUNT( DISTINCT - CAST( 7 AS SIGNED ) )
----
-25

skipif mysql # not compatible
query I rowsort label-6972
SELECT + - 26 + COUNT ( DISTINCT - CAST ( 7 AS INTEGER ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT SUM( DISTINCT - - 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6973
SELECT SUM ( DISTINCT - - 41 ) AS col1
----
41

query II rowsort
SELECT ALL + 49 * + 37 col0, 25
----
1813
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6975
SELECT ALL COALESCE ( + - 97, - AVG ( DISTINCT + - 73 ) + - 10 * 16 ) * + COUNT( ALL - ( + + 96 ) ) DIV COUNT( * ) * NULLIF ( + + 4, + COUNT( * ) + + 90 ) * + 22 * - + 5 + - - CAST( - + COUNT( * ) AS SIGNED ) + - - COUNT( * ) DIV + 22 * + + MIN( ALL - - NULLIF ( + 52, + 97 ) )
----
42679

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL COALESCE ( + - 97, - AVG ( DISTINCT + - 73 ) + - 10 * 16 ) * + COUNT ( ALL - ( + + 96 ) ) / COUNT ( * ) * NULLIF ( + + 4, + COUNT ( * ) + + 90 ) * + 22 * - + 5 + - - CAST ( - + COUNT ( * ) AS INTEGER ) + - - COUNT ( * ) / + 22 * + + MIN ( ALL - - NULLIF ( + 52, + 97 ) )
----
42679

query I rowsort
SELECT + 24 + - - ( - 33 ) col1
----
-9

query I rowsort
SELECT - NULLIF ( + 20, 40 + 95 ) col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT MAX( ALL 69 )
----
69

skipif mysql # not compatible
query I rowsort label-6978
SELECT MAX ( ALL 69 )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6979
SELECT + CAST( 56 AS SIGNED ) * + ( - 36 )
----
-2016

skipif mysql # not compatible
query I rowsort label-6979
SELECT + CAST ( 56 AS INTEGER ) * + ( - 36 )
----
-2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6980
SELECT + 76 * ( + + COALESCE ( + COALESCE ( + 2, 46 * - COUNT( * ) * - - CAST( NULL AS SIGNED ) + - 55 + + 72 * - COUNT( * ) ), + MAX( DISTINCT - - 69 ) * + + COUNT( * ) ) )
----
152

skipif mysql # not compatible
query I rowsort label-6980
SELECT + 76 * ( + + COALESCE ( + COALESCE ( + 2, 46 * - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + - 55 + + 72 * - COUNT ( * ) ), + MAX ( DISTINCT - - 69 ) * + + COUNT ( * ) ) )
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT - NULLIF ( + - ( 61 ), - + COUNT( + 39 ) )
----
61

skipif mysql # not compatible
query I rowsort label-6981
SELECT - NULLIF ( + - ( 61 ), - + COUNT ( + 39 ) )
----
61

query II rowsort
SELECT ALL 34 * - - 39 AS col2, - 27 AS col2
----
1326
-27

query I rowsort
SELECT ALL 46 + + + 13 * + + 25
----
371

query I rowsort
SELECT - NULLIF ( + 22, + 37 )
----
-22

query I rowsort
SELECT ALL + 87 + + - 8 * - 93
----
831

query II rowsort
SELECT + 10 * - + 30, - 57 AS col2
----
-300
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT - NULLIF ( - - 52, - CASE + 52 WHEN + 83 + - 24 * + 61 * + - COUNT( * ) + - COUNT( 26 ) THEN + 66 + 92 * + - 52 WHEN 18 THEN NULL ELSE + 9 END + + + 59 * 33 - + - 0 )
----
-52

skipif mysql # not compatible
query I rowsort label-6987
SELECT - NULLIF ( - - 52, - CASE + 52 WHEN + 83 + - 24 * + 61 * + - COUNT ( * ) + - COUNT ( 26 ) THEN + 66 + 92 * + - 52 WHEN 18 THEN NULL ELSE + 9 END + + + 59 * 33 - + - 0 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6988
SELECT + + 45 + - CAST( - 31 AS DECIMAL ) + - CASE - 50 WHEN + 87 THEN - - NULLIF ( - - CASE - - ( COUNT( * ) ) WHEN - - 61 - - + 46 + SUM( 2 ) * 71 * - 7 THEN + 84 WHEN + 4 * - ( + 30 ) - 48 THEN NULL WHEN 59 THEN NULL END, - 72 * - 0 * + ( + 14 ) ) END * + 97 * 84 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT + + 45 + - CAST ( - 31 AS REAL ) + - CASE - 50 WHEN + 87 THEN - - NULLIF ( - - CASE - - ( COUNT ( * ) ) WHEN - - 61 - - + 46 + SUM ( 2 ) * 71 * - 7 THEN + 84 WHEN + 4 * - ( + 30 ) - 48 THEN NULL WHEN 59 THEN NULL END, - 72 * - 0 * + ( + 14 ) ) END * + 97 * 84 col1
----
NULL

query I rowsort
SELECT ALL 26 + - 88 * 96 * 11 AS col1
----
-92902

query I rowsort
SELECT - + 48 * + 65
----
-3120

query II rowsort
SELECT ALL + 98 - - 46 AS col2, 18
----
144
18

query I rowsort
SELECT - CASE + ( 88 ) WHEN - 24 * 82 - + 79 + - 77 THEN 87 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL + 18 - 73 - 93
----
-148

query I rowsort
SELECT ALL NULLIF ( - COALESCE ( + + 9, + 75 + - - 15 ), + 6 ) * - 38 AS col1
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL + + MIN( + - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL + + MIN ( + - 59 )
----
-59

query I rowsort
SELECT + 10 * 46 - - 59 - 85
----
434

onlyif mysql # DIV for integer division: 
query I rowsort label-6997
SELECT + NULLIF ( + - 21, - 86 * - + 49 * - 46 ) DIV + NULLIF ( + 66, + 41 * - ( + 15 ) * 80 + - 50 + - + 57 * - 76 + - 35 ) + 88 DIV 61 + + 49
----
50

skipif mysql # not compatible
query I rowsort label-6997
SELECT + NULLIF ( + - 21, - 86 * - + 49 * - 46 ) / + NULLIF ( + 66, + 41 * - ( + 15 ) * 80 + - 50 + - + 57 * - 76 + - 35 ) + 88 / 61 + + 49
----
50

query I rowsort
SELECT - 12 * - - 84 col2
----
-1008

query I rowsort
SELECT - ( - COALESCE ( - 22, + + 13 ) ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT + - 15 * - COUNT( * ) + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7000
SELECT + - 15 * - COUNT ( * ) + COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT - 31 * + COUNT( * ) + + - 53 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-7001
SELECT - 31 * + COUNT ( * ) + + - 53 AS col2
----
-84

query I rowsort
SELECT - + 86 * + 32 col2
----
-2752

onlyif mysql # aggregate syntax: 
query II rowsort label-7003
SELECT + 67 AS col2, - COUNT( * )
----
67
-1

skipif mysql # not compatible
query II rowsort label-7003
SELECT + 67 AS col2, - COUNT ( * )
----
67
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT ALL - 90 DIV 89 col2
----
-1

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - 90 / 89 col2
----
-1

query II rowsort
SELECT - 24 * - 90 * - + 39 AS col0, + 75
----
-84240
75

query I rowsort
SELECT - ( - 54 ) * 37
----
1998

query I rowsort
SELECT ALL - 92 * + + 3 + - 80 * + + 93 * + 39 AS col0
----
-290436

query I rowsort
SELECT NULLIF ( ( - + 72 ), + 37 * + ( - 98 ) )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7009
SELECT + 77 DIV - 32
----
-2

skipif mysql # not compatible
query I rowsort label-7009
SELECT + 77 / - 32
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7010
SELECT CAST( NULL AS SIGNED ) * + + ( + + COUNT( * ) ) + + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT CAST ( NULL AS INTEGER ) * + + ( + + COUNT ( * ) ) + + 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT + 94 * + ( - COUNT( * ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-7011
SELECT + 94 * + ( - COUNT ( * ) ) AS col2
----
-94

query I rowsort
SELECT - 64 + + - 44 * - 14 + - - 90 AS col2
----
642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7013
SELECT - 41 + - - 26 DIV - COALESCE ( + + 4, - COUNT( * ) * - 45 + - - 97 )
----
-47

skipif mysql # not compatible
query I rowsort label-7013
SELECT - 41 + - - 26 / - COALESCE ( + + 4, - COUNT ( * ) * - 45 + - - 97 )
----
-47

query I rowsort
SELECT - CASE CASE - 90 WHEN + 1 THEN + + 2 + 32 ELSE NULL END WHEN + + 71 * 56 THEN NULL WHEN - AVG ( ALL + 82 ) * 45 THEN + 74 END col1
----
NULL

query I rowsort
SELECT 19 * 81 + - 32
----
1507

query I rowsort
SELECT + 10 + + + 48
----
58

query I rowsort
SELECT + 87 + - 89 + + 35 * - NULLIF ( + 88, 9 ) * - 75 + - - 89 * - 54 * - 48 AS col0
----
461686

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT + MAX( - 3 ) + + 85 + + - 14
----
68

skipif mysql # not compatible
query I rowsort label-7018
SELECT + MAX ( - 3 ) + + 85 + + - 14
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT + - MIN( DISTINCT 41 ) + - + NULLIF ( + 52, + 87 )
----
-93

skipif mysql # not compatible
query I rowsort label-7019
SELECT + - MIN ( DISTINCT 41 ) + - + NULLIF ( + 52, + 87 )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7020
SELECT - - 92 AS col1, 78 * 24 - - - 89 DIV COUNT( * ) AS col1
----
92
1783

skipif mysql # not compatible
query II rowsort label-7020
SELECT - - 92 AS col1, 78 * 24 - - - 89 / COUNT ( * ) AS col1
----
92
1783

query I rowsort
SELECT + 3 * - + 95
----
-285

query II rowsort
SELECT 55 AS col1, + 11
----
55
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT DISTINCT MAX( + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-7023
SELECT DISTINCT MAX ( + 27 )
----
27

query II rowsort
SELECT ALL + 53, - 71 AS col1
----
53
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-7025
SELECT 40 DIV + - 97 * - + 94 AS col2, 73 AS col0
----
0
73

skipif mysql # not compatible
query II rowsort label-7025
SELECT 40 / + - 97 * - + 94 AS col2, 73 AS col0
----
0
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7026
SELECT 90 DIV + - 10 + + 47 + - + 39
----
-1

skipif mysql # not compatible
query I rowsort label-7026
SELECT 90 / + - 10 + + 47 + - + 39
----
-1

query II rowsort
SELECT DISTINCT - 17 AS col0, 38 AS col0
----
-17
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT ALL - CAST( - 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - CAST ( - 67 AS INTEGER )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7029
SELECT ALL - COALESCE ( 77, - 62 ) + + 82 - - 43 * + - 91, CAST( NULL AS SIGNED ) col2
----
-3908
NULL

skipif mysql # not compatible
query II rowsort label-7029
SELECT ALL - COALESCE ( 77, - 62 ) + + 82 - - 43 * + - 91, CAST ( NULL AS INTEGER ) col2
----
-3908
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT DISTINCT - SUM( DISTINCT 3 ) * 61 AS col2
----
-183

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT - SUM ( DISTINCT 3 ) * 61 AS col2
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT DISTINCT 71 + + + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT 71 + + + COUNT ( * )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7032
SELECT 22 DIV - 34 * + 6 + + - 37 + + 17
----
-20

skipif mysql # not compatible
query I rowsort label-7032
SELECT 22 / - 34 * + 6 + + - 37 + + 17
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL - 86 + + ( - - MIN( + + 42 ) ) * 41 AS col0
----
1636

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL - 86 + + ( - - MIN ( + + 42 ) ) * 41 AS col0
----
1636

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT ALL + COUNT( * ) + + ( + 41 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL + COUNT ( * ) + + ( + 41 ) AS col2
----
42

query II rowsort
SELECT ALL 70 + - 52 AS col0, + 28
----
18
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7036
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 95 / + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 95 / + 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7037
SELECT DISTINCT - COUNT( * ) DIV - 46 col2
----
0

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT - COUNT ( * ) / - 46 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7038
SELECT 21 DIV + 56 * - 29
----
0

skipif mysql # not compatible
query I rowsort label-7038
SELECT 21 / + 56 * - 29
----
0

query I rowsort
SELECT 30 * - 75
----
-2250

query I rowsort
SELECT ALL - 52 * - 1
----
52

query I rowsort
SELECT ALL + 31 - + - 55 + 88
----
174

query I rowsort
SELECT - 0 * 19 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT DISTINCT COUNT( * ) - + 54
----
-53

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT COUNT ( * ) - + 54
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT ALL SUM( DISTINCT - 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL SUM ( DISTINCT - 18 ) AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT - CAST( - 3 AS SIGNED ) + + 31
----
34

skipif mysql # not compatible
query I rowsort label-7045
SELECT - CAST ( - 3 AS INTEGER ) + + 31
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT + 67 * - CAST( - + 22 AS SIGNED )
----
1474

skipif mysql # not compatible
query I rowsort label-7046
SELECT + 67 * - CAST ( - + 22 AS INTEGER )
----
1474

query I rowsort
SELECT + 37 * - 18
----
-666

query I rowsort
SELECT ALL + NULLIF ( + - 18, + 2 ) AS col2
----
-18

query I rowsort
SELECT ( COALESCE ( 46, + 48, + 96 + - 30 ) ) - - 22 + 44
----
112

query I rowsort
SELECT + 94 + 47
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-7051
SELECT - 3 * 34 * - + SUM( 43 ) AS col1, - 45 AS col0
----
4386
-45

skipif mysql # not compatible
query II rowsort label-7051
SELECT - 3 * 34 * - + SUM ( 43 ) AS col1, - 45 AS col0
----
4386
-45

query I rowsort
SELECT 4 + + - 95 AS col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT ALL - + AVG ( 89 ) * + CAST( NULL AS SIGNED ) * 6 + + 65 + - 81 + - 97 * + 28 * 73 + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL - + AVG ( 89 ) * + CAST ( NULL AS INTEGER ) * 6 + + 65 + - 81 + - 97 * + 28 * 73 + - 20
----
NULL

query II rowsort
SELECT 83 + + + 30, + 85 + + 67 + + 64 AS col2
----
113
216

onlyif mysql # aggregate syntax: 
query II rowsort label-7055
SELECT - 64 * 65 - - 84 - + 74, MIN( 12 ) AS col2
----
-4150
12

skipif mysql # not compatible
query II rowsort label-7055
SELECT - 64 * 65 - - 84 - + 74, MIN ( 12 ) AS col2
----
-4150
12

query I rowsort
SELECT ALL + 21 * + 50 + + 48 AS col0
----
1098

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT MAX( DISTINCT - 68 ) col2
----
-68

skipif mysql # not compatible
query I rowsort label-7057
SELECT MAX ( DISTINCT - 68 ) col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT MAX( DISTINCT - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-7058
SELECT MAX ( DISTINCT - 23 ) AS col0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT ( 55 ) DIV + - 55
----
-1

skipif mysql # not compatible
query I rowsort label-7059
SELECT ( 55 ) / + - 55
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ALL MIN( 92 ) + - 74 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL MIN ( 92 ) + - 74 AS col1
----
18

query II rowsort
SELECT ALL 30 + ( - 92 ), 4 * - - 61 * 7 AS col0
----
-62
1708

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT COUNT( + 82 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7062
SELECT COUNT ( + 82 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT + MAX( - - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-7063
SELECT + MAX ( - - 11 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7064
SELECT DISTINCT - ( + NULLIF ( 62, 86 + + 45 + + - CAST( - ( - 79 ) AS SIGNED ) * + 0 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT - ( + NULLIF ( 62, 86 + + 45 + + - CAST ( - ( - 79 ) AS INTEGER ) * + 0 ) )
----
-62

query I rowsort
SELECT COALESCE ( + 54, - 5, + - 37, - 11 ) * - 12 * + ( 66 ) AS col0
----
-42768

query I rowsort
SELECT COALESCE ( 84, 76 + + + 12 + - 9 * - 59 - 26 * + 44 ) + + 54 + 77 AS col1
----
215

onlyif mysql # DIV for integer division: 
query I rowsort label-7067
SELECT ALL + 80 DIV + 29 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL + 80 / + 29 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7068
SELECT + 85 + + + NULLIF ( + COUNT( * ), 48 * + 48 ) * - 26 + - 48 * + CASE 8 WHEN CASE - MAX( - + 42 ) WHEN + + 61 THEN NULL WHEN - MAX( ALL - - CAST( - ( 26 ) AS SIGNED ) ) THEN 56 END THEN 66 WHEN - 25 + ( 38 ) THEN NULL ELSE - 74 END AS col1, - NULLIF ( + ( - ( - 18 ) ), 26 * - - 79 ) - 82 + - ( CAST( + 56 AS SIGNED ) + + 58 ) * 19 AS col2
----
3611
-2266

skipif mysql # not compatible
query II rowsort label-7068
SELECT + 85 + + + NULLIF ( + COUNT ( * ), 48 * + 48 ) * - 26 + - 48 * + CASE 8 WHEN CASE - MAX ( - + 42 ) WHEN + + 61 THEN NULL WHEN - MAX ( ALL - - CAST ( - ( 26 ) AS INTEGER ) ) THEN 56 END THEN 66 WHEN - 25 + ( 38 ) THEN NULL ELSE - 74 END AS col1, - NULLIF ( + ( - ( - 18 ) ), 26 * - - 79 ) - 82 + - ( CAST ( + 56 AS INTEGER ) + + 58 ) * 19 AS col2
----
3611
-2266

query I rowsort
SELECT DISTINCT - ( + COALESCE ( - 85, + 78 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ALL SUM( ALL - - NULLIF ( - 68, - + 64 - - 20 - - 88 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL SUM ( ALL - - NULLIF ( - 68, - + 64 - - 20 - - 88 ) )
----
-68

query I rowsort
SELECT + - 31 * CASE - 20 WHEN 29 THEN NULL WHEN 41 THEN NULL ELSE + + 42 - - 52 * - NULLIF ( 86, - + COALESCE ( 88, + 39 ) * - 38 ) END
----
137330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7072
SELECT - + 25 + - COUNT( * ) DIV + 77 * + - 24 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7072
SELECT - + 25 + - COUNT ( * ) / + 77 * + - 24 AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7073
SELECT ALL + - 83 DIV 33 + - COALESCE ( + + ( + + 76 ), + CAST( NULL AS SIGNED ) )
----
-78

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL + - 83 / 33 + - COALESCE ( + + ( + + 76 ), + CAST ( NULL AS INTEGER ) )
----
-78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7074
SELECT - ( CAST( - 50 AS SIGNED ) ) DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-7074
SELECT - ( CAST ( - 50 AS INTEGER ) ) / 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT DISTINCT - - 70 * 10 * + COUNT( * )
----
700

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT - - 70 * 10 * + COUNT ( * )
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT + 48 + MIN( + 65 ) * - 25
----
-1577

skipif mysql # not compatible
query I rowsort label-7076
SELECT + 48 + MIN ( + 65 ) * - 25
----
-1577

onlyif mysql # aggregate syntax: 
query II rowsort label-7077
SELECT ALL - 95 + + + 17 + + 38 + - + COUNT( * ) + COALESCE ( - 15, 43 ) * - ( - 95 ) + + COUNT( * ) + + + 99 + - 50 * 91 * 70 + - - 28 col2, - ( - NULLIF ( - 7, 62 ) )
----
-319838
-7

skipif mysql # not compatible
query II rowsort label-7077
SELECT ALL - 95 + + + 17 + + 38 + - + COUNT ( * ) + COALESCE ( - 15, 43 ) * - ( - 95 ) + + COUNT ( * ) + + + 99 + - 50 * 91 * 70 + - - 28 col2, - ( - NULLIF ( - 7, 62 ) )
----
-319838
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7078
SELECT ALL - CASE + - COUNT( * ) WHEN CASE - 35 WHEN + 80 / 38 * - - 93 + + NULLIF ( + - 71, - + CAST( - 91 AS SIGNED ) + - + 22 ) + 12 + 29 THEN COALESCE ( + SUM( 26 ), - 56 ) * + 89 + + COUNT( ALL + 69 ) - - 87 WHEN COUNT( * ) * + 57 THEN NULL ELSE NULL END THEN 77 ELSE NULL END * - + CAST( 0 AS SIGNED ) / - COUNT( * ) * - MAX( - + 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL - CASE + - COUNT ( * ) WHEN CASE - 35 WHEN + 80 / 38 * - - 93 + + NULLIF ( + - 71, - + CAST ( - 91 AS INTEGER ) + - + 22 ) + 12 + 29 THEN COALESCE ( + SUM ( 26 ), - 56 ) * + 89 + + COUNT ( ALL + 69 ) - - 87 WHEN COUNT ( * ) * + 57 THEN NULL ELSE NULL END THEN 77 ELSE NULL END * - + CAST ( 0 AS INTEGER ) / - COUNT ( * ) * - MAX ( - + 74 )
----
NULL

query I rowsort
SELECT DISTINCT + + 41 * + 60
----
2460

query I rowsort
SELECT ALL - 4 + NULLIF ( + 73, 94 )
----
69

query I rowsort
SELECT ALL NULLIF ( 43, 93 * + 86 )
----
43

query I rowsort
SELECT ALL + NULLIF ( + 91, 73 ) + 93
----
184

query I rowsort
SELECT DISTINCT + 1 + - + 56 AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT ALL - 43 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL - 43 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + + 74 + 33
----
107

query II rowsort
SELECT 67 AS col2, 17 * 70 AS col2
----
67
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT ALL MIN( - 73 ) * 54 AS col2
----
-3942

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL MIN ( - 73 ) * 54 AS col2
----
-3942

query II rowsort
SELECT 40, 4 AS col1
----
40
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT - NULLIF ( + + 0, 63 + - 11 * + MAX( COALESCE ( + 46, 31 ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7089
SELECT - NULLIF ( + + 0, 63 + - 11 * + MAX ( COALESCE ( + 46, 31 ) ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT 59 DIV + + 58 + - 28
----
-27

skipif mysql # not compatible
query I rowsort label-7090
SELECT 59 / + + 58 + - 28
----
-27

query I rowsort
SELECT - 24 * 3
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7092
SELECT ALL 39 * + + 85 + + - 67 - 83 + - 19 * 76 DIV 91 DIV + 15 AS col1
----
3164

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL 39 * + + 85 + + - 67 - 83 + - 19 * 76 / 91 / + 15 AS col1
----
3164

query II rowsort
SELECT DISTINCT + 47 AS col0, 81 * 35 AS col1
----
47
2835

onlyif mysql # aggregate syntax: 
query II rowsort label-7094
SELECT DISTINCT + 92 AS col2, 48 * + ( 22 ) * - COUNT( * )
----
92
-1056

skipif mysql # not compatible
query II rowsort label-7094
SELECT DISTINCT + 92 AS col2, 48 * + ( 22 ) * - COUNT ( * )
----
92
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT + SUM( ALL - + 86 ) * + 40 * - 38 col2
----
130720

skipif mysql # not compatible
query I rowsort label-7095
SELECT + SUM ( ALL - + 86 ) * + 40 * - 38 col2
----
130720

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT - 13 * + 17 + + 27 + - COUNT( * ) + 96 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-7096
SELECT - 13 * + 17 + + 27 + - COUNT ( * ) + 96 AS col1
----
-99

query I rowsort
SELECT + 88 + - 69
----
19

query I rowsort
SELECT + 99 * 19 AS col1
----
1881

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT + 58 * - - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-7099
SELECT + 58 * - - COUNT ( * )
----
58

query I rowsort
SELECT + CASE - 40 WHEN + + 90 * - 46 THEN + + 45 + + ( COALESCE ( - 2, 60 ) ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7101
SELECT + CAST( 74 AS SIGNED ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7101
SELECT + CAST ( 74 AS INTEGER ) AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7102
SELECT + CASE - + 82 WHEN - 83 / CAST( AVG ( - 41 ) AS DECIMAL ) - COALESCE ( - - CAST( + + 89 AS SIGNED ), + + 72 / - 69 ) THEN AVG ( ALL - 13 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT + CASE - + 82 WHEN - 83 / CAST ( AVG ( - 41 ) AS REAL ) - COALESCE ( - - CAST ( + + 89 AS INTEGER ), + + 72 / - 69 ) THEN AVG ( ALL - 13 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7103
SELECT ALL + 11 AS col1, - COUNT( * )
----
11
-1

skipif mysql # not compatible
query II rowsort label-7103
SELECT ALL + 11 AS col1, - COUNT ( * )
----
11
-1

query I rowsort
SELECT + 28 * 22 AS col1
----
616

query I rowsort
SELECT CASE - - 60 WHEN + 66 THEN 58 END
----
NULL

query II rowsort
SELECT ALL + 94, 81 AS col2
----
94
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7107
SELECT + - ( + 39 ), 43 + + + NULLIF ( 40, MIN( + + 1 ) ) * - + 89 col0
----
-39
-3517

skipif mysql # not compatible
query II rowsort label-7107
SELECT + - ( + 39 ), 43 + + + NULLIF ( 40, MIN ( + + 1 ) ) * - + 89 col0
----
-39
-3517

query II rowsort
SELECT + + 69 AS col0, + 51 + 31 + - - ( - 58 ) AS col2
----
69
24

query I rowsort
SELECT - 10 * + + 91
----
-910

query I rowsort
SELECT + 49 - + 17
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7111
SELECT - - NULLIF ( - CAST( NULL AS SIGNED ), - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT - - NULLIF ( - CAST ( NULL AS INTEGER ), - 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT MIN( ALL + ( + 58 ) )
----
58

skipif mysql # not compatible
query I rowsort label-7112
SELECT MIN ( ALL + ( + 58 ) )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7113
SELECT ALL 37 * 52 DIV 51 * + + 22
----
814

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL 37 * 52 / 51 * + + 22
----
814

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7114
SELECT DISTINCT 15 AS col0, 46 + + CAST( - - 27 AS SIGNED ) + - ( - 21 ) + - 24 AS col2
----
15
70

skipif mysql # not compatible
query II rowsort label-7114
SELECT DISTINCT 15 AS col0, 46 + + CAST ( - - 27 AS INTEGER ) + - ( - 21 ) + - 24 AS col2
----
15
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7115
SELECT DISTINCT 55 + + + 81 - - + 50 DIV 48 + - 42 * - 49
----
2195

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT 55 + + + 81 - - + 50 / 48 + - 42 * - 49
----
2195

query I rowsort
SELECT - - ( - + 25 ) AS col1
----
-25

query I rowsort
SELECT ALL + 64 + - 61 - + 57 - + 75 * - 40 AS col2
----
2946

query I rowsort
SELECT DISTINCT 77 + + 60
----
137

query I rowsort
SELECT + + 83 + + 17 * 95
----
1698

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT ALL + - ( - - 9 ) + MIN( DISTINCT 4 )
----
-5

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL + - ( - - 9 ) + MIN ( DISTINCT 4 )
----
-5

query I rowsort
SELECT ALL - + 63 * - + 68 AS col1
----
4284

query I rowsort
SELECT ALL + - 1 + - 19
----
-20

query II rowsort
SELECT 60, 6 * - NULLIF ( + + 66, - 97 ) AS col1
----
60
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT 13 * - SUM( + 56 )
----
-728

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT 13 * - SUM ( + 56 )
----
-728

query I rowsort
SELECT - 24 + - 64 * - 17
----
1064

onlyif mysql # DIV for integer division: 
query I rowsort label-7126
SELECT DISTINCT - ( - COALESCE ( - - 54, - + 85, - 48 - 37 ) ) DIV + 6 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT - ( - COALESCE ( - - 54, - + 85, - 48 - 37 ) ) / + 6 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT DISTINCT + 55 - ( + - 16 ) * - + 74 * - 42 + COUNT( * )
----
49784

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT + 55 - ( + - 16 ) * - + 74 * - 42 + COUNT ( * )
----
49784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7128
SELECT - NULLIF ( - + 0, - COUNT( * ) ) DIV - 10 + + 96 + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-7128
SELECT - NULLIF ( - + 0, - COUNT ( * ) ) / - 10 + + 96 + COUNT ( * )
----
97

query I rowsort
SELECT - 82 * + 72 * - 64 AS col1
----
377856

query I rowsort
SELECT + ( + 25 ) AS col1
----
25

query I rowsort
SELECT DISTINCT 64 * - + 58 AS col2
----
-3712

query I rowsort
SELECT 59 * 52 * + + ( 90 )
----
276120

query I rowsort
SELECT DISTINCT - 93 * - 89 AS col2
----
8277

onlyif mysql # DIV for integer division: 
query I rowsort label-7134
SELECT 40 DIV + ( + + 1 )
----
40

skipif mysql # not compatible
query I rowsort label-7134
SELECT 40 / + ( + + 1 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT - COUNT( - - 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-7135
SELECT - COUNT ( - - 7 )
----
-1

query I rowsort
SELECT ALL + ( + 23 ) + + 55
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT + 47 + NULLIF ( + COUNT( * ), + 94 * - ( + + 1 ) )
----
48

skipif mysql # not compatible
query I rowsort label-7137
SELECT + 47 + NULLIF ( + COUNT ( * ), + 94 * - ( + + 1 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT - - 87 * + + 99 - SUM( DISTINCT - 41 ) AS col0
----
8654

skipif mysql # not compatible
query I rowsort label-7138
SELECT - - 87 * + + 99 - SUM ( DISTINCT - 41 ) AS col0
----
8654

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7139
SELECT DISTINCT + 1 + + + 94 + 41, CAST( NULL AS SIGNED ) AS col2
----
136
NULL

skipif mysql # not compatible
query II rowsort label-7139
SELECT DISTINCT + 1 + + + 94 + 41, CAST ( NULL AS INTEGER ) AS col2
----
136
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7140
SELECT ALL COUNT( * ) + ( 11 ), CAST( + 78 AS SIGNED ) * - 63 AS col2
----
12
-4914

skipif mysql # not compatible
query II rowsort label-7140
SELECT ALL COUNT ( * ) + ( 11 ), CAST ( + 78 AS INTEGER ) * - 63 AS col2
----
12
-4914

query I rowsort
SELECT ALL - + COALESCE ( 50, + 44, - NULLIF ( + 41, + - 24 * 11 ) ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT + NULLIF ( - 51, ( 82 ) * 19 ) * + 96 + - 6 * ( - COUNT( * ) ) col0
----
-4890

skipif mysql # not compatible
query I rowsort label-7142
SELECT + NULLIF ( - 51, ( 82 ) * 19 ) * + 96 + - 6 * ( - COUNT ( * ) ) col0
----
-4890

query I rowsort
SELECT ALL 27 + 4 * + - COALESCE ( 78, 75 ) AS col0
----
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT + CAST( NULL AS SIGNED ) * + 76 + + 17 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7144
SELECT + CAST ( NULL AS INTEGER ) * + 76 + + 17 * COUNT ( * )
----
NULL

query I rowsort
SELECT - CASE - ( + + ( - 82 ) ) WHEN - + 64 THEN - 43 WHEN - ( 49 ) / + - 3 THEN + ( AVG ( 71 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7146
SELECT DISTINCT + 85 * + 46 col0, - CAST( + 19 AS SIGNED ) * - ( 63 ) * + 49
----
3910
58653

skipif mysql # not compatible
query II rowsort label-7146
SELECT DISTINCT + 85 * + 46 col0, - CAST ( + 19 AS INTEGER ) * - ( 63 ) * + 49
----
3910
58653

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT ALL + 41 - + SUM( 84 )
----
-43

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL + 41 - + SUM ( 84 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT DISTINCT COUNT( DISTINCT - - 98 ) - + 24 * SUM( + 35 ) AS col2
----
-839

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT COUNT ( DISTINCT - - 98 ) - + 24 * SUM ( + 35 ) AS col2
----
-839

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT ALL - MIN( - 92 ) * - + 75 * - COUNT( * )
----
6900

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL - MIN ( - 92 ) * - + 75 * - COUNT ( * )
----
6900

query I rowsort
SELECT 50 * - 86 AS col1
----
-4300

query II rowsort
SELECT 30 AS col2, - 8 AS col2
----
30
-8

query I rowsort
SELECT DISTINCT + 24 * 54 AS col0
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT DISTINCT - COUNT( DISTINCT - + 10 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT - COUNT ( DISTINCT - + 10 ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7154
SELECT DISTINCT + COALESCE ( - - COUNT( * ), - CAST( NULL AS SIGNED ) * + 78 * - + 22 + + COUNT( * ) ) * NULLIF ( + + 40, - CASE COALESCE ( - 46, 80 * - 73 + 19 ) WHEN + - COALESCE ( 94, 51, 53 ) + - - 41 THEN + - 43 / 85 + 44 ELSE COALESCE ( + - 50, 98 / + 39 * + 87 ) * 67 - + 29 END - - + 69 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT + COALESCE ( - - COUNT ( * ), - CAST ( NULL AS INTEGER ) * + 78 * - + 22 + + COUNT ( * ) ) * NULLIF ( + + 40, - CASE COALESCE ( - 46, 80 * - 73 + 19 ) WHEN + - COALESCE ( 94, 51, 53 ) + - - 41 THEN + - 43 / 85 + 44 ELSE COALESCE ( + - 50, 98 / + 39 * + 87 ) * 67 - + 29 END - - + 69 ) AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7155
SELECT ALL + 34 + CAST( - + 98 AS SIGNED ) - + - 91 * - 22
----
-2066

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL + 34 + CAST ( - + 98 AS INTEGER ) - + - 91 * - 22
----
-2066

query I rowsort
SELECT + 60 * + 88 + - 65
----
5215

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7157
SELECT CAST( NULL AS SIGNED ) / 41 + + - 25 AS col2, 9 AS col2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-7157
SELECT CAST ( NULL AS INTEGER ) / 41 + + - 25 AS col2, 9 AS col2
----
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT 84 + + 93 * 61 + + COUNT( DISTINCT - 98 )
----
5758

skipif mysql # not compatible
query I rowsort label-7158
SELECT 84 + + 93 * 61 + + COUNT ( DISTINCT - 98 )
----
5758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7159
SELECT 86 * 70 * 4 + - COUNT( * ) * + NULLIF ( - - ( + 32 ), + + 99 + + SUM( - CAST( NULL AS SIGNED ) ) )
----
24048

skipif mysql # not compatible
query I rowsort label-7159
SELECT 86 * 70 * 4 + - COUNT ( * ) * + NULLIF ( - - ( + 32 ), + + 99 + + SUM ( - CAST ( NULL AS INTEGER ) ) )
----
24048

query I rowsort
SELECT DISTINCT - + 47 + 18 * + + 13
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL + 71 + 12 + + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL + 71 + 12 + + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT DISTINCT - + MIN( DISTINCT + 3 ) * + 82
----
-246

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT - + MIN ( DISTINCT + 3 ) * + 82
----
-246

query I rowsort
SELECT ALL 11 + + + 39 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT ALL + COALESCE ( - 15, + 81 * COUNT( * ) ) + + 1 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL + COALESCE ( - 15, + 81 * COUNT ( * ) ) + + 1 AS col0
----
-14

query I rowsort
SELECT ALL - - 22 * 64 col2
----
1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7166
SELECT + 94 / + 56 / CASE 93 WHEN + COUNT( * ) THEN NULL WHEN - 53 + + + 66 THEN - COUNT( * ) WHEN - - 77 THEN + CAST( + + 33 AS SIGNED ) * + 60 * 7 + 68 * + 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT + 94 / + 56 / CASE 93 WHEN + COUNT ( * ) THEN NULL WHEN - 53 + + + 66 THEN - COUNT ( * ) WHEN - - 77 THEN + CAST ( + + 33 AS INTEGER ) * + 60 * 7 + 68 * + 33 END
----
NULL

query I rowsort
SELECT ALL - ( 85 ) + + + 31
----
-54

query I rowsort
SELECT NULLIF ( - 28, 45 ) - + 87 * + 42
----
-3682

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT ALL 67 AS col0, + ( + COALESCE ( - 92, - COUNT( + 97 ) ) ) col1
----
67
-92

skipif mysql # not compatible
query II rowsort label-7169
SELECT ALL 67 AS col0, + ( + COALESCE ( - 92, - COUNT ( + 97 ) ) ) col1
----
67
-92

query I rowsort
SELECT DISTINCT 18 * 73 * + - 36 AS col1
----
-47304

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT 73 * - - 56 * - COUNT( * ) * 54 AS col0
----
-220752

skipif mysql # not compatible
query I rowsort label-7171
SELECT 73 * - - 56 * - COUNT ( * ) * 54 AS col0
----
-220752

query I rowsort
SELECT DISTINCT - 62 - 24 * + - 3 + 7 AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7173
SELECT ALL + COUNT( * ) DIV - 18 col2
----
0

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL + COUNT ( * ) / - 18 col2
----
0

query I rowsort
SELECT ALL 89 * 51 AS col2
----
4539

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7175
SELECT 34 - - + 73 DIV + + 97 * - COUNT( * ), 13 - + COUNT( * ) + - 59 + + - 58 - ( + 81 ) * - NULLIF ( - 69, - 57 * ( - - 72 ) + 70 ) * - + 31 - + 24 AS col0
----
34
173130

skipif mysql # not compatible
query II rowsort label-7175
SELECT 34 - - + 73 / + + 97 * - COUNT ( * ), 13 - + COUNT ( * ) + - 59 + + - 58 - ( + 81 ) * - NULLIF ( - 69, - 57 * ( - - 72 ) + 70 ) * - + 31 - + 24 AS col0
----
34
173130

query I rowsort
SELECT 5 * - 19 AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7177
SELECT - MIN( ALL - 50 ) AS col0, - 56 DIV ( - - ( - - 81 ) ) col1
----
50
0

skipif mysql # not compatible
query II rowsort label-7177
SELECT - MIN ( ALL - 50 ) AS col0, - 56 / ( - - ( - - 81 ) ) col1
----
50
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7178
SELECT ALL 53 * - COUNT( * ) AS col0, + 61 + - 79 AS col0
----
-53
-18

skipif mysql # not compatible
query II rowsort label-7178
SELECT ALL 53 * - COUNT ( * ) AS col0, + 61 + - 79 AS col0
----
-53
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-7179
SELECT 24 + 42 + + + 76 DIV 58 * + 43 * + COALESCE ( 39, - 92 ) * + ( - 48 ) AS col1, 76 AS col2
----
-80430
76

skipif mysql # not compatible
query II rowsort label-7179
SELECT 24 + 42 + + + 76 / 58 * + 43 * + COALESCE ( 39, - 92 ) * + ( - 48 ) AS col1, 76 AS col2
----
-80430
76

query I rowsort
SELECT 60 * - - 31 * + + 32 AS col0
----
59520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7181
SELECT ( + + CAST( NULL AS SIGNED ) ) + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7181
SELECT ( + + CAST ( NULL AS INTEGER ) ) + 90
----
NULL

query I rowsort
SELECT DISTINCT 0 * 45 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL COUNT( * ) * - 36 * - NULLIF ( + - 37, 5 * - 56 ) * + 64
----
-85248

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL COUNT ( * ) * - 36 * - NULLIF ( + - 37, 5 * - 56 ) * + 64
----
-85248

query I rowsort
SELECT + 29 * 90
----
2610

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7185
SELECT + 93 DIV 71, COUNT( * ) * 83 + - 14 DIV - + 66 * + 57 + - + 26 * + 97 AS col2
----
1
-2439

skipif mysql # not compatible
query II rowsort label-7185
SELECT + 93 / 71, COUNT ( * ) * 83 + - 14 / - + 66 * + 57 + - + 26 * + 97 AS col2
----
1
-2439

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT + COALESCE ( + - 75, + COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-7186
SELECT + COALESCE ( + - 75, + COUNT ( * ) )
----
-75

query I rowsort
SELECT ALL 45 * - - 3 + - + 30
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT ALL - COUNT( * ) * - 30 + - - 60 + + 79 + + + 23
----
192

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL - COUNT ( * ) * - 30 + - - 60 + + 79 + + + 23
----
192

query I rowsort
SELECT ALL - - 21 * 98 + 72 * + - 61 + - - 67 AS col0
----
-2267

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT + + 50 * - 90 * - - COUNT( * ) - 32 AS col2
----
-4532

skipif mysql # not compatible
query I rowsort label-7190
SELECT + + 50 * - 90 * - - COUNT ( * ) - 32 AS col2
----
-4532

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT DISTINCT + NULLIF ( - SUM( 28 ), 64 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT + NULLIF ( - SUM ( 28 ), 64 ) AS col0
----
-28

query I rowsort
SELECT ALL - - 69 * - ( + 91 )
----
-6279

query I rowsort
SELECT - + 40 - 8
----
-48

query I rowsort
SELECT - - 82 * - 66 * - - 72 AS col1
----
-389664

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT MAX( DISTINCT + - 79 ) col2
----
-79

skipif mysql # not compatible
query I rowsort label-7195
SELECT MAX ( DISTINCT + - 79 ) col2
----
-79

query I rowsort
SELECT 79 * - 52 + 65 + + - 75 AS col0
----
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT - 1 * + COUNT( * ) + + 80
----
79

skipif mysql # not compatible
query I rowsort label-7197
SELECT - 1 * + COUNT ( * ) + + 80
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT - COUNT( * ) + 32
----
31

skipif mysql # not compatible
query I rowsort label-7198
SELECT - COUNT ( * ) + 32
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT ALL + + COUNT( DISTINCT 84 )
----
1

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL + + COUNT ( DISTINCT 84 )
----
1

query I rowsort
SELECT ALL - COALESCE ( 61, + + 25 ) * NULLIF ( - 91, - 9 ) * + 63 * 29
----
10141677

query I rowsort
SELECT - 58 + + 9 col2
----
-49

query I rowsort
SELECT - - 13 * - - 64
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT DISTINCT + 2 * CASE + ( - 81 ) WHEN - + COUNT( * ) THEN NULL WHEN 94 THEN - 5 * - - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT + 2 * CASE + ( - 81 ) WHEN - + COUNT ( * ) THEN NULL WHEN 94 THEN - 5 * - - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL ( + - 4 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7205
SELECT ALL + 75 * CAST( - SUM( DISTINCT + 99 ) AS SIGNED ) AS col2
----
-7425

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL + 75 * CAST ( - SUM ( DISTINCT + 99 ) AS INTEGER ) AS col2
----
-7425

query II rowsort
SELECT - - 64 + - 53 AS col2, + 99
----
11
99

query I rowsort
SELECT - 34 * + - 67 + - 7 + + 4 AS col0
----
2275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7208
SELECT + 71 + + CAST( NULL AS SIGNED ) - - + SUM( DISTINCT - 64 ) * + AVG ( ALL + + 41 ) / - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7208
SELECT + 71 + + CAST ( NULL AS INTEGER ) - - + SUM ( DISTINCT - 64 ) * + AVG ( ALL + + 41 ) / - 49
----
NULL

query II rowsort
SELECT DISTINCT 20 AS col2, + 18
----
20
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7210
SELECT DISTINCT 6 DIV - 14
----
0

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT 6 / - 14
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT DISTINCT ( - + CAST( 11 AS SIGNED ) )
----
-11

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT ( - + CAST ( 11 AS INTEGER ) )
----
-11

query I rowsort
SELECT DISTINCT 41 + + 41
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT - COALESCE ( - CAST( + 43 AS SIGNED ), 83 )
----
43

skipif mysql # not compatible
query I rowsort label-7213
SELECT - COALESCE ( - CAST ( + 43 AS INTEGER ), 83 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7214
SELECT ALL CAST( NULL AS SIGNED ), - 27 * + 85 + COUNT( * ) AS col2
----
NULL
-2294

skipif mysql # not compatible
query II rowsort label-7214
SELECT ALL CAST ( NULL AS INTEGER ), - 27 * + 85 + COUNT ( * ) AS col2
----
NULL
-2294

query I rowsort
SELECT DISTINCT 5 + + 47
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT 84, + 20 - + - 20 + - COUNT( * ) + 34 + - 4 * - 99 col0
----
84
469

skipif mysql # not compatible
query II rowsort label-7216
SELECT 84, + 20 - + - 20 + - COUNT ( * ) + 34 + - 4 * - 99 col0
----
84
469

query I rowsort
SELECT ALL 40 + 25 AS col2
----
65

query I rowsort
SELECT + 63 + - 54 * + 32
----
-1665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7219
SELECT DISTINCT - 35 + + ( COUNT( - 65 ) ) * 5 DIV + 80 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT - 35 + + ( COUNT ( - 65 ) ) * 5 / + 80 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT ALL MAX( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL MAX ( 90 )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7221
SELECT ALL MAX( - 65 ) DIV + 20 - - + 19 + - + 55 col2, 87 * 53 col1
----
-39
4611

skipif mysql # not compatible
query II rowsort label-7221
SELECT ALL MAX ( - 65 ) / + 20 - - + 19 + - + 55 col2, 87 * 53 col1
----
-39
4611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7222
SELECT ALL ( - - ( - + CAST( + AVG ( ALL - 39 ) AS SIGNED ) ) ) DIV 68 + + - MIN( + 43 ) AS col2, 62 * + + 61
----
-43
3782

skipif mysql # not compatible
query II rowsort label-7222
SELECT ALL ( - - ( - + CAST ( + AVG ( ALL - 39 ) AS INTEGER ) ) ) / 68 + + - MIN ( + 43 ) AS col2, 62 * + + 61
----
-43
3782

query I rowsort
SELECT DISTINCT 92 * 92 + + - 49
----
8415

onlyif mysql # DIV for integer division: 
query I rowsort label-7224
SELECT ALL - - 44 DIV + 39 + NULLIF ( + ( + + 81 ), + 69 ) + - 12 + + 78 * + 67 AS col2
----
5296

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL - - 44 / + 39 + NULLIF ( + ( + + 81 ), + 69 ) + - 12 + + 78 * + 67 AS col2
----
5296

onlyif mysql # DIV for integer division: 
query I rowsort label-7225
SELECT ALL + + 77 DIV + 23 + + - 37 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL + + 77 / + 23 + + - 37 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT - - 89 * 55 + - 91 + + - SUM( DISTINCT 75 ) + - - 76
----
4805

skipif mysql # not compatible
query I rowsort label-7226
SELECT - - 89 * 55 + - 91 + + - SUM ( DISTINCT 75 ) + - - 76
----
4805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT + + 11 - + - 27 + COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
38

skipif mysql # not compatible
query I rowsort label-7227
SELECT + + 11 - + - 27 + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT DISTINCT + ( - COUNT( DISTINCT + 33 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT + ( - COUNT ( DISTINCT + 33 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT + 7 * 56 * - CAST( - 68 AS SIGNED ) AS col1
----
26656

skipif mysql # not compatible
query I rowsort label-7229
SELECT + 7 * 56 * - CAST ( - 68 AS INTEGER ) AS col1
----
26656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7230
SELECT DISTINCT + AVG ( + CAST( NULL AS SIGNED ) ) * - + COUNT( * ) + + - COALESCE ( 27, 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT + AVG ( + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) + + - COALESCE ( 27, 89 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7231
SELECT DISTINCT 94 DIV + 27 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT 94 / + 27 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT + + 59 * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-7232
SELECT + + 59 * COUNT ( * )
----
59

query I rowsort
SELECT ALL + 53 * 37
----
1961

query I rowsort
SELECT DISTINCT 21 * + 84 * + 22 AS col1
----
38808

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL + COUNT( ALL 41 )
----
1

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL + COUNT ( ALL 41 )
----
1

query II rowsort
SELECT DISTINCT + + 0, - 85 AS col2
----
0
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT NULLIF ( - 37, + COUNT( * ) * + - MIN( 81 ) + + 70 ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-7237
SELECT NULLIF ( - 37, + COUNT ( * ) * + - MIN ( 81 ) + + 70 ) col1
----
-37

query II rowsort
SELECT ALL + 76 AS col2, 86 AS col0
----
76
86

query I rowsort
SELECT - + 1 * 2 + - 12 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT NULLIF ( - 24, + COUNT( 52 ) ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-7240
SELECT NULLIF ( - 24, + COUNT ( 52 ) ) col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT - 59 - MAX( 81 )
----
-140

skipif mysql # not compatible
query I rowsort label-7241
SELECT - 59 - MAX ( 81 )
----
-140

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7242
SELECT ALL CAST( NULL AS DECIMAL ), - 6 AS col0
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-7242
SELECT ALL CAST ( NULL AS REAL ), - 6 AS col0
----
NULL
-6

query I rowsort
SELECT DISTINCT + ( + 40 ) * - 75 * + - 84 + + CASE - + 78 WHEN - + ( + 12 ) * + - 94 THEN + 14 END
----
NULL

query I rowsort
SELECT DISTINCT + 65 + 91
----
156

query I rowsort
SELECT 53 * - 70 AS col2
----
-3710

onlyif mysql # DIV for integer division: 
query I rowsort label-7246
SELECT ALL + 47 + + - 48 + + 43 DIV - + CASE + 45 WHEN - + 24 + - - 30 THEN NULL ELSE 85 END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL + 47 + + - 48 + + 43 / - + CASE + 45 WHEN - + 24 + - - 30 THEN NULL ELSE 85 END AS col1
----
-1

query I rowsort
SELECT 59 - - 30 AS col1
----
89

query I rowsort
SELECT ALL + 75 * 96 * - 66 AS col2
----
-475200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7249
SELECT ALL - ( - 88 ) + + - 2 - + CAST( + 48 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL - ( - 88 ) + + - 2 - + CAST ( + 48 AS INTEGER )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7250
SELECT 33 + 47 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT 33 + 47 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT 69 - - - 70 * + 57 - - COUNT( * )
----
-3920

skipif mysql # not compatible
query I rowsort label-7251
SELECT 69 - - - 70 * + 57 - - COUNT ( * )
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT DISTINCT - 2 + + + ( + - 32 ) + COUNT( * ) * + MIN( - + 6 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7252
SELECT DISTINCT - 2 + + + ( + - 32 ) + COUNT ( * ) * + MIN ( - + 6 ) AS col1
----
-40

query II rowsort
SELECT - 91 col1, - 62
----
-91
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7254
SELECT 56, ( - MIN( + 49 ) ) + ( + + 53 ) AS col0
----
56
4

skipif mysql # not compatible
query II rowsort label-7254
SELECT 56, ( - MIN ( + 49 ) ) + ( + + 53 ) AS col0
----
56
4

query II rowsort
SELECT 62, - 76 AS col1
----
62
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT DISTINCT - 3 + + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT - 3 + + COUNT ( * )
----
-2

query I rowsort
SELECT ALL - 48 + + 26 - 62 AS col0
----
-84

query II rowsort
SELECT - 2 AS col2, 72 AS col0
----
-2
72

onlyif mysql # DIV for integer division: 
query II rowsort label-7259
SELECT ALL + 85 - 83 DIV 98 + 63, + 76 * - 55 AS col2
----
148
-4180

skipif mysql # not compatible
query II rowsort label-7259
SELECT ALL + 85 - 83 / 98 + 63, + 76 * - 55 AS col2
----
148
-4180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7260
SELECT ALL 86 - - - COUNT( * ) DIV - ( 5 ) + + COUNT( * ) col1
----
87

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL 86 - - - COUNT ( * ) / - ( 5 ) + + COUNT ( * ) col1
----
87

query I rowsort
SELECT 30 * 4 AS col0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-7262
SELECT ALL - + 90 DIV 85 - - 39 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL - + 90 / 85 - - 39 AS col0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7263
SELECT + - 63 AS col2, - ( - + COUNT( * ) ) AS col1
----
-63
1

skipif mysql # not compatible
query II rowsort label-7263
SELECT + - 63 AS col2, - ( - + COUNT ( * ) ) AS col1
----
-63
1

query I rowsort
SELECT ( - - ( + + 26 ) ) AS col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7265
SELECT ALL COALESCE ( + 82, + 86 DIV - 90, + 74 * COUNT( * ) - + - 30 * + 27 ) - 94 DIV - + 64 col2
----
83

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL COALESCE ( + 82, + 86 / - 90, + 74 * COUNT ( * ) - + - 30 * + 27 ) - 94 / - + 64 col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT + CASE 64 WHEN - 73 THEN + CAST( NULL AS SIGNED ) * + 28 + 11 + CASE WHEN NOT - 40 <= - 40 THEN + 2 + + - 70 + + + 32 WHEN NOT NULL IS NULL THEN 4 END ELSE NULL END * + ( - - 0 ) + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT + CASE 64 WHEN - 73 THEN + CAST ( NULL AS INTEGER ) * + 28 + 11 + CASE WHEN NOT - 40 <= - 40 THEN + 2 + + - 70 + + + 32 WHEN NOT NULL IS NULL THEN 4 END ELSE NULL END * + ( - - 0 ) + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT + ( + AVG ( DISTINCT - ( + 79 ) ) ) + 8 / - CAST( NULL AS SIGNED ) / - 51 + + 66 + - 84 + COUNT( * ) / - COUNT( ALL ( - - 46 ) ) + 24 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT + ( + AVG ( DISTINCT - ( + 79 ) ) ) + 8 / - CAST ( NULL AS INTEGER ) / - 51 + + 66 + - 84 + COUNT ( * ) / - COUNT ( ALL ( - - 46 ) ) + 24 col1
----
NULL

query I rowsort
SELECT + ( + + 27 ) * 56 AS col0
----
1512

query I rowsort
SELECT ALL 10 * + 50
----
500

onlyif mysql # aggregate syntax: 
query II rowsort label-7270
SELECT ( COUNT( * ) ) AS col0, + 27 AS col1
----
1
27

skipif mysql # not compatible
query II rowsort label-7270
SELECT ( COUNT ( * ) ) AS col0, + 27 AS col1
----
1
27

query I rowsort
SELECT 27 * 51 + - 4 + - CASE 92 WHEN 97 + 20 THEN NULL WHEN - NULLIF ( 81, 39 ) * - 44 - - 2 THEN - - 86 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT - COALESCE ( + - 69, - - COUNT( - + 92 ) ) * + MIN( - 71 )
----
-4899

skipif mysql # not compatible
query I rowsort label-7272
SELECT - COALESCE ( + - 69, - - COUNT ( - + 92 ) ) * + MIN ( - 71 )
----
-4899

query I rowsort
SELECT 1 * - 6 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT 36 * + NULLIF ( + + ( + 33 ), - 79 ) - 32 - - COUNT( * ) * 84 + + 27 * 96
----
3832

skipif mysql # not compatible
query I rowsort label-7274
SELECT 36 * + NULLIF ( + + ( + 33 ), - 79 ) - 32 - - COUNT ( * ) * 84 + + 27 * 96
----
3832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7275
SELECT DISTINCT + COUNT( * ) DIV + 56 + + 63 + - - 67 * - 42 AS col2
----
-2751

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT + COUNT ( * ) / + 56 + + 63 + - - 67 * - 42 AS col2
----
-2751

onlyif mysql # aggregate syntax: 
query II rowsort label-7276
SELECT DISTINCT - 22 AS col1, MIN( DISTINCT + 75 )
----
-22
75

skipif mysql # not compatible
query II rowsort label-7276
SELECT DISTINCT - 22 AS col1, MIN ( DISTINCT + 75 )
----
-22
75

query I rowsort
SELECT ALL 30 + + 50 * + 10
----
530

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7278
SELECT ALL 42 + CAST( NULL AS DECIMAL ) / - + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL 42 + CAST ( NULL AS REAL ) / - + 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ( - 58 ) + COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7279
SELECT ( - 58 ) + COUNT ( * ) AS col2
----
-57

query I rowsort
SELECT ALL + 79 + + 80 col2
----
159

query I rowsort
SELECT ALL 94 + + 97 AS col1
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT ( + COUNT( * ) ) * - CASE + COUNT( * ) WHEN 89 THEN 30 + + + 47 + - 88 * - + 73 WHEN - 0 THEN - COUNT( * ) / + 91 * + + 32 + - 48 + + + 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT ( + COUNT ( * ) ) * - CASE + COUNT ( * ) WHEN 89 THEN 30 + + + 47 + - 88 * - + 73 WHEN - 0 THEN - COUNT ( * ) / + 91 * + + 32 + - 48 + + + 1 END AS col0
----
NULL

query I rowsort
SELECT 69 + NULLIF ( 26, - - 57 ) col1
----
95

query I rowsort
SELECT ALL 88 + - 52 * - 29
----
1596

onlyif mysql # aggregate syntax: 
query II rowsort label-7285
SELECT 78 + + 65 + + + 88 + - - 90 * + 0, COUNT( * ) + - + 54 + 59 col2
----
231
6

skipif mysql # not compatible
query II rowsort label-7285
SELECT 78 + + 65 + + + 88 + - - 90 * + 0, COUNT ( * ) + - + 54 + 59 col2
----
231
6

query I rowsort
SELECT ALL - 16 + - 56 * + + ( + - 44 ) * - - COALESCE ( + 45, + 49, 9 )
----
110864

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT DISTINCT 69 + - + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT 69 + - + COUNT ( * ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT ALL 28 - - COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL 28 - - COUNT ( * ) AS col0
----
29

query I rowsort
SELECT 84 * 1 * + + 86 AS col0
----
7224

query I rowsort
SELECT DISTINCT - 99 * - + 66 AS col2
----
6534

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT DISTINCT - 26 * 67 / + CASE + 14 WHEN - + 81 * + - 49 / - MAX( ALL - 8 ) THEN - 73 * 25 * - 91 * + + 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT - 26 * 67 / + CASE + 14 WHEN - + 81 * + - 49 / - MAX ( ALL - 8 ) THEN - 73 * 25 * - 91 * + + 81 END
----
NULL

query I rowsort
SELECT 3 * + + 8 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7293
SELECT ALL - + ( - COUNT( * ) ) * - 55 + - + AVG ( - - 46 ) * - + 32 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL - + ( - COUNT ( * ) ) * - 55 + - + AVG ( - - 46 ) * - + 32 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT + MIN( ALL + 64 ) * 73 col0
----
4672

skipif mysql # not compatible
query I rowsort label-7294
SELECT + MIN ( ALL + 64 ) * 73 col0
----
4672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7295
SELECT 75 + + CAST( NULL AS SIGNED ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT 75 + + CAST ( NULL AS INTEGER ) + - 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7296
SELECT - - SUM( DISTINCT + CAST( 59 AS SIGNED ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7296
SELECT - - SUM ( DISTINCT + CAST ( 59 AS INTEGER ) ) AS col2
----
59

query I rowsort
SELECT ALL - ( + + 90 ) AS col1
----
-90

query I rowsort
SELECT + 89 - 95 + - 87 * + 38
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT 68 * - - MIN( DISTINCT + 81 ) + - 15
----
5493

skipif mysql # not compatible
query I rowsort label-7299
SELECT 68 * - - MIN ( DISTINCT + 81 ) + - 15
----
5493

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7300
SELECT ALL - ( 94 ) * NULLIF ( + 18, - + 2 * + 34 * + MIN( DISTINCT - 42 ) + 81 + - 90 * + - 28 + - ( + 71 ) - + 1 ) DIV + 87 + - + 25
----
-44

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL - ( 94 ) * NULLIF ( + 18, - + 2 * + 34 * + MIN ( DISTINCT - 42 ) + 81 + - 90 * + - 28 + - ( + 71 ) - + 1 ) / + 87 + - + 25
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT ALL CASE 56 WHEN + ( - - COALESCE ( 42, 90 + + + 86 - + + 74, + 95, + 55 / + + ( + + CAST( NULL AS SIGNED ) ) * + COUNT( * ) + + COUNT( * ) ) ) THEN + 69 / 43 + - + MAX( 40 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL CASE 56 WHEN + ( - - COALESCE ( 42, 90 + + + 86 - + + 74, + 95, + 55 / + + ( + + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + + COUNT ( * ) ) ) THEN + 69 / 43 + - + MAX ( 40 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7302
SELECT ALL 55 DIV - 12 - + 10 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL 55 / - 12 - + 10 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT ALL - - MAX( DISTINCT + - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL - - MAX ( DISTINCT + - 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT MAX( - + 92 ) + + 90
----
-2

skipif mysql # not compatible
query I rowsort label-7304
SELECT MAX ( - + 92 ) + + 90
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7305
SELECT - 66 * - 35 + + + COUNT( * ) * - - 21 * + - 94, + COALESCE ( - 24, + 40 + - + 70, - 18 ) AS col0
----
336
-24

skipif mysql # not compatible
query II rowsort label-7305
SELECT - 66 * - 35 + + + COUNT ( * ) * - - 21 * + - 94, + COALESCE ( - 24, + 40 + - + 70, - 18 ) AS col0
----
336
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-7306
SELECT ALL - 87 * + 49 * + COUNT( * ) AS col1, + 8 + + 15 + - 50 + - + 73
----
-4263
-100

skipif mysql # not compatible
query II rowsort label-7306
SELECT ALL - 87 * + 49 * + COUNT ( * ) AS col1, + 8 + + 15 + - 50 + - + 73
----
-4263
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7307
SELECT COUNT( * ) DIV + + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7307
SELECT COUNT ( * ) / + + 64 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7308
SELECT + CASE - COUNT( - - 14 ) WHEN - - 50 + 57 THEN NULL ELSE ( + 73 ) + - 90 - + + 54 * + ( + 73 ) + + + NULLIF ( 19, + 62 ) * - 25 END DIV + 22 DIV 1 + + 9 AS col0
----
-192

skipif mysql # not compatible
query I rowsort label-7308
SELECT + CASE - COUNT ( - - 14 ) WHEN - - 50 + 57 THEN NULL ELSE ( + 73 ) + - 90 - + + 54 * + ( + 73 ) + + + NULLIF ( 19, + 62 ) * - 25 END / + 22 / 1 + + 9 AS col0
----
-192

query I rowsort
SELECT 16 * - 24 AS col2
----
-384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7310
SELECT ALL + CAST( - 40 AS SIGNED ) * COUNT( ALL 82 ) + - ( ( + 85 ) ) AS col2
----
-125

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL + CAST ( - 40 AS INTEGER ) * COUNT ( ALL 82 ) + - ( ( + 85 ) ) AS col2
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL - - ( CASE - SUM( DISTINCT + + 69 ) WHEN + - 53 THEN 10 ELSE + + 45 END ) * + + COUNT( * ) + - + 75 + 75
----
45

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - - ( CASE - SUM ( DISTINCT + + 69 ) WHEN + - 53 THEN 10 ELSE + + 45 END ) * + + COUNT ( * ) + - + 75 + 75
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL - 52 * 65 * - 58 * COALESCE ( + MIN( DISTINCT + - 10 ), 37, - + 9 ) * ( - - COUNT( * ) ) * - - 48 + 77 AS col0
----
-94099123

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL - 52 * 65 * - 58 * COALESCE ( + MIN ( DISTINCT + - 10 ), 37, - + 9 ) * ( - - COUNT ( * ) ) * - - 48 + 77 AS col0
----
-94099123

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT + COUNT( * ) * 92 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7313
SELECT + COUNT ( * ) * 92 AS col2
----
92

query II rowsort
SELECT ALL + 17 AS col2, 33 * 11 AS col2
----
17
363

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT SUM( DISTINCT - + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-7315
SELECT SUM ( DISTINCT - + 95 )
----
-95

query I rowsort
SELECT ALL + 99 * - + 77 + + 18
----
-7605

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT DISTINCT + 16 * MIN( DISTINCT + 29 ) + - ( - - 71 )
----
393

skipif mysql # not compatible
query I rowsort label-7317
SELECT DISTINCT + 16 * MIN ( DISTINCT + 29 ) + - ( - - 71 )
----
393

onlyif mysql # aggregate syntax: 
query II rowsort label-7318
SELECT + COUNT( * ) col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7318
SELECT + COUNT ( * ) col0, COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7319
SELECT - 77 * - CAST( + 53 AS SIGNED )
----
4081

skipif mysql # not compatible
query I rowsort label-7319
SELECT - 77 * - CAST ( + 53 AS INTEGER )
----
4081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7320
SELECT ALL 88 + - 92 + + COALESCE ( - - COUNT( * ), - 59 * + - 51 ) + + + 44 * + 61 + 95 DIV 47 * - ( 86 ) * + COUNT( * ) col2
----
2509

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL 88 + - 92 + + COALESCE ( - - COUNT ( * ), - 59 * + - 51 ) + + + 44 * + 61 + 95 / 47 * - ( 86 ) * + COUNT ( * ) col2
----
2509

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT SUM( + 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7321
SELECT SUM ( + 21 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT + MIN( ALL + 0 ) - - 3 * - 98 * 49 AS col1
----
-14406

skipif mysql # not compatible
query I rowsort label-7322
SELECT + MIN ( ALL + 0 ) - - 3 * - 98 * 49 AS col1
----
-14406

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ALL 41 + + - ( COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL 41 + + - ( COUNT ( * ) )
----
40

query I rowsort
SELECT + 46 - + + 25 col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7325
SELECT - MIN( + 76 ) * - 48 * + 82 AS col2, - 38
----
299136
-38

skipif mysql # not compatible
query II rowsort label-7325
SELECT - MIN ( + 76 ) * - 48 * + 82 AS col2, - 38
----
299136
-38

query I rowsort
SELECT ALL 28 - + - 60
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7327
SELECT DISTINCT 87 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT DISTINCT 87 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7328
SELECT ALL - 85 - - MAX( ALL + + 90 ) AS col0, NULLIF ( + 96, - 14 * 94 ) * + 90 * - 52 + - 73 * - 27 * + 69 - - 65 AS col0
----
5
-313216

skipif mysql # not compatible
query II rowsort label-7328
SELECT ALL - 85 - - MAX ( ALL + + 90 ) AS col0, NULLIF ( + 96, - 14 * 94 ) * + 90 * - 52 + - 73 * - 27 * + 69 - - 65 AS col0
----
5
-313216

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT + COUNT( * ) * 34 col1
----
34

skipif mysql # not compatible
query I rowsort label-7329
SELECT + COUNT ( * ) * 34 col1
----
34

query I rowsort
SELECT ALL 22 * NULLIF ( + 27, - 82 )
----
594

query I rowsort
SELECT DISTINCT 40 - + - 1
----
41

query II rowsort
SELECT ALL 54, + CASE + + 19 WHEN 82 THEN + + 47 + + 39 ELSE - 83 END + - 29 col2
----
54
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7333
SELECT + MIN( DISTINCT 46 ) DIV COUNT( * ) col1, + 61 AS col2
----
46
61

skipif mysql # not compatible
query II rowsort label-7333
SELECT + MIN ( DISTINCT 46 ) / COUNT ( * ) col1, + 61 AS col2
----
46
61

query I rowsort
SELECT - 86 * - 89
----
7654

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT - 45 - - 27 * + + COUNT( * ) * + ( + 20 ) col2
----
495

skipif mysql # not compatible
query I rowsort label-7335
SELECT - 45 - - 27 * + + COUNT ( * ) * + ( + 20 ) col2
----
495

query I rowsort
SELECT + - 12 * 91
----
-1092

query I rowsort
SELECT - 29 * 0
----
0

query II rowsort
SELECT ALL - 34 AS col1, - 91
----
-34
-91

query I rowsort
SELECT ALL NULLIF ( + - ( + 4 ), 21 * + 81 ) AS col2
----
-4

query I rowsort
SELECT - 95 * - 11 AS col2
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT ALL - MAX( ALL + 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL - MAX ( ALL + 49 ) AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7342
SELECT ALL MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT - - 18 + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT - - 18 + COUNT ( * )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7344
SELECT ALL - CAST( - ( - 18 ) AS SIGNED ) AS col2, 59 AS col0
----
-18
59

skipif mysql # not compatible
query II rowsort label-7344
SELECT ALL - CAST ( - ( - 18 ) AS INTEGER ) AS col2, 59 AS col0
----
-18
59

query II rowsort
SELECT - + 95 AS col1, - 0 - 10
----
-95
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7346
SELECT + 70 AS col1, CASE + COUNT( * ) WHEN + COUNT( * ) THEN - 48 * - 80 WHEN CAST( - - AVG ( DISTINCT + 86 ) AS SIGNED ) - SUM( 26 ) THEN NULL END DIV + MAX( DISTINCT + 46 ) AS col2
----
70
83

skipif mysql # not compatible
query II rowsort label-7346
SELECT + 70 AS col1, CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN - 48 * - 80 WHEN CAST ( - - AVG ( DISTINCT + 86 ) AS INTEGER ) - SUM ( 26 ) THEN NULL END / + MAX ( DISTINCT + 46 ) AS col2
----
70
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT - 11 + - 75 + - - CASE - - AVG ( DISTINCT - 47 ) WHEN 24 / - 72 + + ( + 21 ) THEN MAX( ALL 67 ) END + - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT - 11 + - 75 + - - CASE - - AVG ( DISTINCT - 47 ) WHEN 24 / - 72 + + ( + 21 ) THEN MAX ( ALL 67 ) END + - 40 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7348
SELECT DISTINCT + CAST( + 8 AS SIGNED ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT + CAST ( + 8 AS INTEGER ) AS col1
----
8

query I rowsort
SELECT ALL - + COALESCE ( 82, 22 ) * - - 72 + - + 28
----
-5932

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT DISTINCT + 71 * - - 21 + - - COUNT( * ) AS col1
----
1492

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT + 71 * - - 21 + - - COUNT ( * ) AS col1
----
1492

onlyif mysql # aggregate syntax: 
query II rowsort label-7351
SELECT - SUM( DISTINCT + 43 ) * MAX( DISTINCT - - 29 ), 69 * + - ( 13 ) AS col1
----
-1247
-897

skipif mysql # not compatible
query II rowsort label-7351
SELECT - SUM ( DISTINCT + 43 ) * MAX ( DISTINCT - - 29 ), 69 * + - ( 13 ) AS col1
----
-1247
-897

query I rowsort
SELECT - ( - - 6 ) * + - 58 + - 9 + - 7 + + 47 AS col1
----
379

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT COUNT( * ) * - COUNT( * ) + - + 28 + - 51 * - COUNT( * ) * + CASE - 53 WHEN - - 5 * - + COUNT( * ) * - 52 THEN NULL WHEN + + 37 THEN MAX( - 92 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT COUNT ( * ) * - COUNT ( * ) + - + 28 + - 51 * - COUNT ( * ) * + CASE - 53 WHEN - - 5 * - + COUNT ( * ) * - 52 THEN NULL WHEN + + 37 THEN MAX ( - 92 ) END AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 43 * 79 AS col0, 35
----
-3397
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7355
SELECT ALL + 89 * + CAST( + 90 AS SIGNED ) AS col0
----
8010

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL + 89 * + CAST ( + 90 AS INTEGER ) AS col0
----
8010

query II rowsort
SELECT - COALESCE ( - - 26, - 51 ) + + 32 + - 75 AS col0, - ( + 53 ) * + + 76 + + 53 AS col2
----
-69
-3975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7357
SELECT + 43 * - COUNT( * ) * 9 * + + 25 * + 14 - + + CASE + - MIN( + - 42 ) WHEN - SUM( ALL + 50 ) THEN NULL WHEN - COALESCE ( + 34, - - 47 / + - 86 ) THEN NULL WHEN - COALESCE ( - 86, - 36 / CASE + 19 WHEN + + CAST( NULL AS SIGNED ) + COUNT( * ) THEN COUNT( * ) ELSE NULL END + + COUNT( * ) * + CAST( NULL AS SIGNED ), + 43 ) THEN + 7 END + 7 * - - 61 + 65 - + 70 * + - 63 + - 93 + - COUNT( * ) * - 15 * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT + 43 * - COUNT ( * ) * 9 * + + 25 * + 14 - + + CASE + - MIN ( + - 42 ) WHEN - SUM ( ALL + 50 ) THEN NULL WHEN - COALESCE ( + 34, - - 47 / + - 86 ) THEN NULL WHEN - COALESCE ( - 86, - 36 / CASE + 19 WHEN + + CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END + + COUNT ( * ) * + CAST ( NULL AS INTEGER ), + 43 ) THEN + 7 END + 7 * - - 61 + 65 - + 70 * + - 63 + - 93 + - COUNT ( * ) * - 15 * + 10
----
NULL

query I rowsort
SELECT DISTINCT - 44 * - 22
----
968

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT + CASE + - 21 WHEN 4 + + + 58 - 24 + + COUNT( * ) * + COALESCE ( - 67, + NULLIF ( + 47, COUNT( 76 ) ), - 71 + + - 15 ) / - AVG ( - 52 ) * - + NULLIF ( + + 10, + - 63 ) THEN - - 98 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7359
SELECT + CASE + - 21 WHEN 4 + + + 58 - 24 + + COUNT ( * ) * + COALESCE ( - 67, + NULLIF ( + 47, COUNT ( 76 ) ), - 71 + + - 15 ) / - AVG ( - 52 ) * - + NULLIF ( + + 10, + - 63 ) THEN - - 98 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 26 * - + 20 AS col1
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT - SUM( ALL - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-7361
SELECT - SUM ( ALL - 53 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7362
SELECT + 45 + COUNT( * ), CAST( NULL AS SIGNED ) + - 72 col1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-7362
SELECT + 45 + COUNT ( * ), CAST ( NULL AS INTEGER ) + - 72 col1
----
46
NULL

query I rowsort
SELECT + 63 * COALESCE ( - 70, - 12 * + 33 ) AS col1
----
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT + - ( + 8 ) + + SUM( + COALESCE ( + + 28, - 30 ) ) * 68 * - 3 col0
----
-5720

skipif mysql # not compatible
query I rowsort label-7364
SELECT + - ( + 8 ) + + SUM ( + COALESCE ( + + 28, - 30 ) ) * 68 * - 3 col0
----
-5720

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT DISTINCT - ( - - COUNT( ALL - 76 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT - ( - - COUNT ( ALL - 76 ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7366
SELECT + 46 DIV 68 * + 39 - + 57
----
-57

skipif mysql # not compatible
query I rowsort label-7366
SELECT + 46 / 68 * + 39 - + 57
----
-57

query I rowsort
SELECT + 16 + 17
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7368
SELECT ALL COUNT( * ) + + - 95, + 80 AS col1
----
-94
80

skipif mysql # not compatible
query II rowsort label-7368
SELECT ALL COUNT ( * ) + + - 95, + 80 AS col1
----
-94
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT ( + 58 ) * 9 * - - ( - - 12 ) * COUNT( 44 )
----
6264

skipif mysql # not compatible
query I rowsort label-7369
SELECT ( + 58 ) * 9 * - - ( - - 12 ) * COUNT ( 44 )
----
6264

query I rowsort
SELECT - 0 - + 50 AS col1
----
-50

query I rowsort
SELECT ALL + ( 96 ) + 47
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7372
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + COUNT( * ) * + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7373
SELECT ALL + COUNT( * ) + 58 col2, 71 col2
----
59
71

skipif mysql # not compatible
query II rowsort label-7373
SELECT ALL + COUNT ( * ) + 58 col2, 71 col2
----
59
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7374
SELECT + 7 * 65 + - 16 + - 14 + + MAX( ALL + ( 28 ) ), 75 AS col1
----
453
75

skipif mysql # not compatible
query II rowsort label-7374
SELECT + 7 * 65 + - 16 + - 14 + + MAX ( ALL + ( 28 ) ), 75 AS col1
----
453
75

query I rowsort
SELECT DISTINCT 1 + - + 99
----
-98

query I rowsort
SELECT COALESCE ( - 91, + 37 * + 71 * + COALESCE ( + 84, 30 * + 11 ), + 82 )
----
-91

query I rowsort
SELECT ALL + 29 * 53
----
1537

query I rowsort
SELECT ALL + 20 * 55 AS col2
----
1100

query I rowsort
SELECT DISTINCT + 2 - + 83
----
-81

query II rowsort
SELECT 20, + 78 AS col0
----
20
78

query I rowsort
SELECT 87 * - - 23 * - 68
----
-136068

query I rowsort
SELECT 68 + + 72 * - - 2
----
212

query I rowsort
SELECT 74 * + 59 col1
----
4366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT 77 * - CAST( - 92 AS SIGNED ) * - + 37 + + 9 * + - CAST( + 24 AS SIGNED )
----
-262324

skipif mysql # not compatible
query I rowsort label-7384
SELECT 77 * - CAST ( - 92 AS INTEGER ) * - + 37 + + 9 * + - CAST ( + 24 AS INTEGER )
----
-262324

onlyif mysql # aggregate syntax: 
query II rowsort label-7385
SELECT NULLIF ( + 16, - 32 ) * - 76 + COUNT( * ), + 58 AS col1
----
-1215
58

skipif mysql # not compatible
query II rowsort label-7385
SELECT NULLIF ( + 16, - 32 ) * - 76 + COUNT ( * ), + 58 AS col1
----
-1215
58

query I rowsort
SELECT ALL + 58 * - 69 * - 85 AS col1
----
340170

query I rowsort
SELECT 84 - - + ( + 2 ) AS col1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT COALESCE ( - 71, - CASE ( 16 ) WHEN + AVG ( + 90 ) THEN - - 37 END + 30 ) DIV 13 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7388
SELECT COALESCE ( - 71, - CASE ( 16 ) WHEN + AVG ( + 90 ) THEN - - 37 END + 30 ) / 13 AS col1
----
-5

query I rowsort
SELECT ALL + 95 * - 39 AS col0
----
-3705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7390
SELECT ALL + COUNT( ALL + 57 ) * - 43 * + 20 - + CAST( NULL AS SIGNED ) + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL + COUNT ( ALL + 57 ) * - 43 * + 20 - + CAST ( NULL AS INTEGER ) + + 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT DISTINCT + COUNT( DISTINCT - 81 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT + COUNT ( DISTINCT - 81 ) AS col2
----
1

query I rowsort
SELECT ALL + + 76 + - - 48 * - 69 AS col1
----
-3236

query I rowsort
SELECT ALL - 60 + - 31
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7394
SELECT - CASE - 91 WHEN + 50 / - - COUNT( * ) + - CASE + MIN( 72 ) WHEN - 55 THEN NULL WHEN - 85 THEN NULL WHEN - + 79 * + ( + COALESCE ( 99, - ( + + ( + 8 ) ) * CAST( NULL AS DECIMAL ) * - 37 * + ( + - 21 ) + + ( - ( 87 ) ) + + 60 + 59 * - 66 / + 17, - 13 ) ) + 76 THEN NULL ELSE 39 / - 7 - 21 + - 3 END + + ( + ( + + CAST( NULL AS SIGNED ) ) ) + + 92 * - + ( + AVG ( + - 16 ) ) THEN + 84 - 15 * CAST( NULL AS SIGNED ) WHEN 67 + + 43 THEN NULL ELSE NULL END - 39 * 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT - CASE - 91 WHEN + 50 / - - COUNT ( * ) + - CASE + MIN ( 72 ) WHEN - 55 THEN NULL WHEN - 85 THEN NULL WHEN - + 79 * + ( + COALESCE ( 99, - ( + + ( + 8 ) ) * CAST ( NULL AS REAL ) * - 37 * + ( + - 21 ) + + ( - ( 87 ) ) + + 60 + 59 * - 66 / + 17, - 13 ) ) + 76 THEN NULL ELSE 39 / - 7 - 21 + - 3 END + + ( + ( + + CAST ( NULL AS INTEGER ) ) ) + + 92 * - + ( + AVG ( + - 16 ) ) THEN + 84 - 15 * CAST ( NULL AS INTEGER ) WHEN 67 + + 43 THEN NULL ELSE NULL END - 39 * 72 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7395
SELECT DISTINCT + + ( + + 99 ) + - CAST( + ( 83 ) AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT + + ( + + 99 ) + - CAST ( + ( 83 ) AS INTEGER ) AS col1
----
16

query I rowsort
SELECT 2 + - 73 AS col0
----
-71

query I rowsort
SELECT ALL - 58 + + - 45 AS col1
----
-103

query I rowsort
SELECT ALL 88 + - 35 AS col0
----
53

query I rowsort
SELECT + 71 + - 3
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT MIN( DISTINCT COALESCE ( - - 90, - 78 ) )
----
90

skipif mysql # not compatible
query I rowsort label-7400
SELECT MIN ( DISTINCT COALESCE ( - - 90, - 78 ) )
----
90

query I rowsort
SELECT ALL 33 + - 31 + + - 70
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT DISTINCT SUM( ALL + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT SUM ( ALL + 40 )
----
40

query I rowsort
SELECT DISTINCT - 31 - 63
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7404
SELECT 81 + + - 5 * - + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) col0
----
81

skipif mysql # not compatible
query I rowsort label-7404
SELECT 81 + + - 5 * - + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0
----
81

query I rowsort
SELECT 40 + 6
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7406
SELECT - 73 * - COALESCE ( + CASE - COALESCE ( + 68, + - SUM( + - CAST( 84 AS SIGNED ) ), - COUNT( ALL - 7 ) ) WHEN - ( - 68 ) THEN + 62 + 46 - 99 + - + 30 ELSE NULL END, - - 33, - 70 ) AS col1
----
2409

skipif mysql # not compatible
query I rowsort label-7406
SELECT - 73 * - COALESCE ( + CASE - COALESCE ( + 68, + - SUM ( + - CAST ( 84 AS INTEGER ) ), - COUNT ( ALL - 7 ) ) WHEN - ( - 68 ) THEN + 62 + 46 - 99 + - + 30 ELSE NULL END, - - 33, - 70 ) AS col1
----
2409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT - - CASE 16 WHEN + + 54 * 39 + - CAST( NULL AS SIGNED ) - + - 31 + + MAX( DISTINCT - - 46 ) THEN + COALESCE ( - 47, + 84, 34 ) * - 98 WHEN + CASE - 32 WHEN - 4 + + 1 + + 55 THEN NULL WHEN 87 * - + COUNT( * ) + SUM( ALL 66 ) / - + 2 + - 78 + CAST( NULL AS SIGNED ) * + ( - 81 ) + - 31 THEN + 1 ELSE NULL END * - 43 + + - 19 THEN - 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT - - CASE 16 WHEN + + 54 * 39 + - CAST ( NULL AS INTEGER ) - + - 31 + + MAX ( DISTINCT - - 46 ) THEN + COALESCE ( - 47, + 84, 34 ) * - 98 WHEN + CASE - 32 WHEN - 4 + + 1 + + 55 THEN NULL WHEN 87 * - + COUNT ( * ) + SUM ( ALL 66 ) / - + 2 + - 78 + CAST ( NULL AS INTEGER ) * + ( - 81 ) + - 31 THEN + 1 ELSE NULL END * - 43 + + - 19 THEN - 28 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7408
SELECT 62 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7408
SELECT 62 / 93 AS col0
----
0

query I rowsort
SELECT 25 * - 83 + + 12 AS col0
----
-2063

onlyif mysql # aggregate syntax: 
query II rowsort label-7410
SELECT ALL - COUNT( * ) col1, - 88 AS col2
----
-1
-88

skipif mysql # not compatible
query II rowsort label-7410
SELECT ALL - COUNT ( * ) col1, - 88 AS col2
----
-1
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT + 97 * + 73 + + COUNT( * )
----
7082

skipif mysql # not compatible
query I rowsort label-7411
SELECT + 97 * + 73 + + COUNT ( * )
----
7082

query I rowsort
SELECT ALL + 89 * - 28 col2
----
-2492

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7413
SELECT + 34 * - + 0 * 68 - 79 * - 12 * + 84 * 28 + + COUNT( * ) DIV - 63
----
2229696

skipif mysql # not compatible
query I rowsort label-7413
SELECT + 34 * - + 0 * 68 - 79 * - 12 * + 84 * 28 + + COUNT ( * ) / - 63
----
2229696

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT MAX( DISTINCT - 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7414
SELECT MAX ( DISTINCT - 27 ) AS col1
----
-27

query I rowsort
SELECT 97 * - 39 * - 4
----
15132

query I rowsort
SELECT ALL 58 * - 87 col2
----
-5046

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT ( + + COUNT( * ) ) * 56 + - + COUNT( * ) + - + COUNT( * ) * - 20 * - - 44
----
935

skipif mysql # not compatible
query I rowsort label-7417
SELECT ( + + COUNT ( * ) ) * 56 + - + COUNT ( * ) + - + COUNT ( * ) * - 20 * - - 44
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT COUNT( DISTINCT + - 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7418
SELECT COUNT ( DISTINCT + - 23 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT DISTINCT + COUNT( + 34 ) * ( COUNT( * ) ) + + 17 * + 70 AS col0
----
1191

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT + COUNT ( + 34 ) * ( COUNT ( * ) ) + + 17 * + 70 AS col0
----
1191

query II rowsort
SELECT 22 * - 6, - 24 AS col2
----
-132
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT 3 + + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-7421
SELECT 3 + + + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7422
SELECT 12 DIV - + 91 * COALESCE ( + COUNT( DISTINCT - 62 ), - 52 DIV - 71 ) * - 69 + + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-7422
SELECT 12 / - + 91 * COALESCE ( + COUNT ( DISTINCT - 62 ), - 52 / - 71 ) * - 69 + + - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT ALL 92 + COUNT( DISTINCT 52 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL 92 + COUNT ( DISTINCT 52 ) AS col2
----
93

query I rowsort
SELECT ALL - - COALESCE ( + + 90, - 6 + 90 ) AS col1
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-7425
SELECT - + 6 * + 72 * + 14 + + - 84, - 41 + - 23 DIV + - NULLIF ( - 77, - - 24 + 25 - - - 92 ) AS col0
----
-6132
-41

skipif mysql # not compatible
query II rowsort label-7425
SELECT - + 6 * + 72 * + 14 + + - 84, - 41 + - 23 / + - NULLIF ( - 77, - - 24 + 25 - - - 92 ) AS col0
----
-6132
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT - 89 + + - 35 - - COUNT( * ) AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-7426
SELECT - 89 + + - 35 - - COUNT ( * ) AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT COUNT( + + 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7427
SELECT COUNT ( + + 11 ) AS col2
----
1

query I rowsort
SELECT ALL + 29 + 70 AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT DISTINCT - 71 * + - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) + - 14 - + + 72 * + 20 * - + 88 + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT - 71 * + - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) + - 14 - + + 72 * + 20 * - + 88 + + 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7430
SELECT - + COALESCE ( - SUM( 36 ), 79 * - 4 + - 87 + - 96, + CASE - 64 WHEN ( + 77 ) * + 34 THEN COUNT( * ) WHEN COUNT( * ) DIV 53 THEN - 22 * - 95 * + 51 + 48 * + ( + 82 ) WHEN - 64 THEN NULL END * - MIN( ALL 98 ) ) DIV + CAST( + 23 AS SIGNED ) - + - 44 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-7430
SELECT - + COALESCE ( - SUM ( 36 ), 79 * - 4 + - 87 + - 96, + CASE - 64 WHEN ( + 77 ) * + 34 THEN COUNT ( * ) WHEN COUNT ( * ) / 53 THEN - 22 * - 95 * + 51 + 48 * + ( + 82 ) WHEN - 64 THEN NULL END * - MIN ( ALL 98 ) ) / + CAST ( + 23 AS INTEGER ) - + - 44 AS col0
----
45

query II rowsort
SELECT DISTINCT 22 AS col0, ( - 58 ) AS col1
----
22
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL + MIN( + 28 ) - 61
----
-33

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL + MIN ( + 28 ) - 61
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-7433
SELECT DISTINCT 83 AS col0, COUNT( * ) + + - COUNT( * ) AS col1
----
83
0

skipif mysql # not compatible
query II rowsort label-7433
SELECT DISTINCT 83 AS col0, COUNT ( * ) + + - COUNT ( * ) AS col1
----
83
0

query I rowsort
SELECT ALL 22 - + ( - 42 ) * - 59
----
-2456

query I rowsort
SELECT - 35 - - 56 AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7436
SELECT CAST( + + 60 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-7436
SELECT CAST ( + + 60 AS INTEGER )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT + + 91 + - - COUNT( * ) + 45
----
137

skipif mysql # not compatible
query I rowsort label-7437
SELECT + + 91 + - - COUNT ( * ) + 45
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL + 53 - - - COUNT( * ) + + 98 AS col1
----
150

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + 53 - - - COUNT ( * ) + + 98 AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT + + COUNT( * ) * + + 14 + + + 59 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-7439
SELECT + + COUNT ( * ) * + + 14 + + + 59 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7440
SELECT - COUNT( * ) - + 72 - + - 82 - + - CAST( + 24 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-7440
SELECT - COUNT ( * ) - + 72 - + - 82 - + - CAST ( + 24 AS INTEGER )
----
33

query I rowsort
SELECT DISTINCT NULLIF ( - 83, - AVG ( - 7 ) + + 13 )
----
-83

query II rowsort
SELECT DISTINCT 77 * + 21, ( + 38 ) + - 42 AS col0
----
1617
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT ALL NULLIF ( + + 39, - 74 * + - COUNT( * ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL NULLIF ( + + 39, - 74 * + - COUNT ( * ) ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT + 0 * + MIN( ALL 84 )
----
0

skipif mysql # not compatible
query I rowsort label-7444
SELECT + 0 * + MIN ( ALL 84 )
----
0

query II rowsort
SELECT ALL 12 * - - 19 AS col0, 22 col2
----
228
22

query I rowsort
SELECT DISTINCT - 85 * + 79 AS col1
----
-6715

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT + COALESCE ( - ( + + 80 ), - + ( + + 81 ) + + ( + - 21 ) + - + COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-7447
SELECT + COALESCE ( - ( + + 80 ), - + ( + + 81 ) + + ( + - 21 ) + - + COUNT ( * ) )
----
-80

query I rowsort
SELECT + 70 * + + 19 col2
----
1330

query I rowsort
SELECT ALL 76 * + - 49 AS col0
----
-3724

query I rowsort
SELECT + ( - - 60 ) * + 55
----
3300

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT + 22 DIV + 88 * + 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7451
SELECT + 22 / + 88 * + 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT DISTINCT 55 * + - COUNT( * ) + + 20
----
-35

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT 55 * + - COUNT ( * ) + + 20
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT ALL 46 DIV 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL 46 / 85 AS col1
----
0

query I rowsort
SELECT ALL - 15 * + - 2 + - ( + 40 )
----
-10

query I rowsort
SELECT + 10 * + 47
----
470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7456
SELECT ( - CAST( + COUNT( * ) AS SIGNED ) ) * - 80 + - 81 * - 34 AS col2
----
2834

skipif mysql # not compatible
query I rowsort label-7456
SELECT ( - CAST ( + COUNT ( * ) AS INTEGER ) ) * - 80 + - 81 * - 34 AS col2
----
2834

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT + 80 * + + CASE - 25 WHEN 86 * - ( - COUNT( * ) ) THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT + 80 * + + CASE - 25 WHEN 86 * - ( - COUNT ( * ) ) THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + COALESCE ( - - COUNT( * ), + + 26 * - 45 - + + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-7458
SELECT + COALESCE ( - - COUNT ( * ), + + 26 * - 45 - + + 45 )
----
1

query I rowsort
SELECT + + 44 + + + 57 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL + SUM( 89 ) * + 44 + 44 * - 15
----
3256

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL + SUM ( 89 ) * + 44 + 44 * - 15
----
3256

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT MAX( ALL 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7461
SELECT MAX ( ALL 82 ) AS col1
----
82

query I rowsort
SELECT DISTINCT + 94 * + 12 - - 74
----
1202

query II rowsort
SELECT - - 86 * - 71, + 97 AS col1
----
-6106
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT - 67 + MAX( 48 )
----
-19

skipif mysql # not compatible
query I rowsort label-7464
SELECT - 67 + MAX ( 48 )
----
-19

query II rowsort
SELECT ALL + - 21 - 93 * 37 * + 93 * + 10 AS col1, 35 AS col2
----
-3200151
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT DISTINCT - + 59 DIV + 36 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT - + 59 / + 36 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7467
SELECT + - 42 + + 23, 41 * + CAST( NULL AS SIGNED ) * + 78 / COALESCE ( + 78, - + 73 ) / + CASE + 69 WHEN - 20 THEN 35 WHEN + 20 * 78 + - 24 + - 59 - + 95 THEN NULL WHEN + - 1 - - ( - COUNT( * ) ) * - 8 THEN NULL ELSE NULL END * 57 - MAX( ALL 49 ) + - - 55 - - SUM( DISTINCT 55 ) AS col0
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-7467
SELECT + - 42 + + 23, 41 * + CAST ( NULL AS INTEGER ) * + 78 / COALESCE ( + 78, - + 73 ) / + CASE + 69 WHEN - 20 THEN 35 WHEN + 20 * 78 + - 24 + - 59 - + 95 THEN NULL WHEN + - 1 - - ( - COUNT ( * ) ) * - 8 THEN NULL ELSE NULL END * 57 - MAX ( ALL 49 ) + - - 55 - - SUM ( DISTINCT 55 ) AS col0
----
-19
NULL

query II rowsort
SELECT + - 26 * - 90, 71 * - ( - - 43 ) AS col0
----
2340
-3053

query I rowsort
SELECT + + 68 + + 21 * - 82 AS col2
----
-1654

query I rowsort
SELECT - + 62 - + 87
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL + - COUNT( * ) - + 37
----
-38

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL + - COUNT ( * ) - + 37
----
-38

query I rowsort
SELECT ALL - ( + 68 ) * + 51
----
-3468

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL - + ( + 37 ) * - MAX( + - 70 ) col1
----
-2590

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL - + ( + 37 ) * - MAX ( + - 70 ) col1
----
-2590

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT - SUM( + 14 ) * - + ( + ( - + 70 ) )
----
-980

skipif mysql # not compatible
query I rowsort label-7474
SELECT - SUM ( + 14 ) * - + ( + ( - + 70 ) )
----
-980

query I rowsort
SELECT DISTINCT NULLIF ( + - 98, + 63 * + 49 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT - 77 * CASE COUNT( * ) WHEN 41 THEN NULL WHEN 37 + - - 76 THEN + 76 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT - 77 * CASE COUNT ( * ) WHEN 41 THEN NULL WHEN 37 + - - 76 THEN + 76 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT - 88 + SUM( + ( + + 63 ) ) * 1 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7477
SELECT - 88 + SUM ( + ( + + 63 ) ) * 1 AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7478
SELECT ALL + COUNT( * ) + CAST( - 9 AS SIGNED ) + + COUNT( DISTINCT - 46 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL + COUNT ( * ) + CAST ( - 9 AS INTEGER ) + + COUNT ( DISTINCT - 46 ) AS col1
----
-7

query I rowsort
SELECT + 46 * - 83 AS col0
----
-3818

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7480
SELECT NULLIF ( - - 95, ( 45 ) ) / 45 + + 76 + NULLIF ( - CAST( + ( - COUNT( * ) ) AS SIGNED ), + 1 ) * - COUNT( * ) / + - ( 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7480
SELECT NULLIF ( - - 95, ( 45 ) ) / 45 + + 76 + NULLIF ( - CAST ( + ( - COUNT ( * ) ) AS INTEGER ), + 1 ) * - COUNT ( * ) / + - ( 32 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7481
SELECT ALL - 20 DIV - - COUNT( * ) + 44 col1
----
24

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL - 20 / - - COUNT ( * ) + 44 col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7482
SELECT - CAST( NULL AS SIGNED ) + + - 88 + + + COUNT( * ) + - NULLIF ( 94, - 88 ) - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT - CAST ( NULL AS INTEGER ) + + - 88 + + + COUNT ( * ) + - NULLIF ( 94, - 88 ) - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL 51 / 70 + + + 70 * + 1 * - 72 * - CASE + + 34 WHEN 45 + ( + - 39 ) + + 18 THEN + 98 / + MAX( DISTINCT - 30 ) * - AVG ( + - 88 ) - - + 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL 51 / 70 + + + 70 * + 1 * - 72 * - CASE + + 34 WHEN 45 + ( + - 39 ) + + 18 THEN + 98 / + MAX ( DISTINCT - 30 ) * - AVG ( + - 88 ) - - + 34 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 5 * 42 AS col0
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT 99 * + 26 + - + 31 + - 45 DIV - ( + 10 )
----
2547

skipif mysql # not compatible
query I rowsort label-7485
SELECT 99 * + 26 + - + 31 + - 45 / - ( + 10 )
----
2547

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7486
SELECT ALL - 4 DIV - + COUNT( * ) + 6
----
10

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL - 4 / - + COUNT ( * ) + 6
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7487
SELECT DISTINCT - 54 DIV - + NULLIF ( + MAX( 7 ), - 30 * - + 98 + + 91 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT - 54 / - + NULLIF ( + MAX ( 7 ), - 30 * - + 98 + + 91 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT ALL - COUNT( * ) * + 80 * + COUNT( DISTINCT + 14 )
----
-80

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL - COUNT ( * ) * + 80 * + COUNT ( DISTINCT + 14 )
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT ALL + 77 DIV - 37 + 95
----
93

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL + 77 / - 37 + 95
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT + NULLIF ( + 86, - COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-7490
SELECT + NULLIF ( + 86, - COUNT ( * ) )
----
86

query I rowsort
SELECT 28 * + 70 AS col2
----
1960

query I rowsort
SELECT DISTINCT + + NULLIF ( 17, 82 ) * ( 56 ) + 95 AS col0
----
1047

onlyif mysql # DIV for integer division: 
query I rowsort label-7493
SELECT ALL 68 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL 68 / + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT 77 + + + COUNT( - + 22 ) - - 8 col1
----
86

skipif mysql # not compatible
query I rowsort label-7494
SELECT 77 + + + COUNT ( - + 22 ) - - 8 col1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7495
SELECT ALL + 27 - + 18 + 97 DIV + - 35
----
7

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + 27 - + 18 + 97 / + - 35
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7496
SELECT 80 AS col0, 58 + COUNT( * ) * - 14 - 41 AS col0
----
80
3

skipif mysql # not compatible
query II rowsort label-7496
SELECT 80 AS col0, 58 + COUNT ( * ) * - 14 - 41 AS col0
----
80
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT DISTINCT - + NULLIF ( + - COUNT( 42 ), + 84 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT - + NULLIF ( + - COUNT ( 42 ), + 84 ) AS col1
----
1

query I rowsort
SELECT ALL - 46 - - 51 AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7499
SELECT + 60 * + 29 + 93, 81 - - 84 + + 60 * + COUNT( * ) AS col2
----
1833
225

skipif mysql # not compatible
query II rowsort label-7499
SELECT + 60 * + 29 + 93, 81 - - 84 + + 60 * + COUNT ( * ) AS col2
----
1833
225

query II rowsort
SELECT ALL - + 34 AS col2, 34 AS col0
----
-34
34

query II rowsort
SELECT 17 AS col1, + 84 AS col2
----
17
84

query II rowsort
SELECT - ( + ( - 87 ) ) AS col2, + 69 * - ( + - ( 47 ) ) - 87
----
87
3156

onlyif mysql # DIV for integer division: 
query I rowsort label-7503
SELECT 46 + + - 55 DIV - 55
----
47

skipif mysql # not compatible
query I rowsort label-7503
SELECT 46 + + - 55 / - 55
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL COUNT( ALL - 72 ) * + + ( 26 ) * + + 75
----
1950

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL COUNT ( ALL - 72 ) * + + ( 26 ) * + + 75
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT 76 * + CASE + 31 WHEN 65 THEN COUNT( * ) * + 63 END + + ( 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7505
SELECT 76 * + CASE + 31 WHEN 65 THEN COUNT ( * ) * + 63 END + + ( 47 )
----
NULL

query I rowsort
SELECT + 49 + 72 + - ( - 66 ) * - 28 AS col1
----
-1727

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL COUNT( * ) * - 14 - + - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL COUNT ( * ) * - 14 - + - COUNT ( * )
----
-13

query I rowsort
SELECT ( + 19 ) + + - 55
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT + SUM( DISTINCT + - 6 ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-7509
SELECT + SUM ( DISTINCT + - 6 ) col1
----
-6

query I rowsort
SELECT DISTINCT 41 * - 28
----
-1148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7511
SELECT 3 + + COUNT( * ) AS col1, + ( 56 ) * 4 + - - 92 + 73 DIV + 82 AS col1
----
4
316

skipif mysql # not compatible
query II rowsort label-7511
SELECT 3 + + COUNT ( * ) AS col1, + ( 56 ) * 4 + - - 92 + 73 / + 82 AS col1
----
4
316

onlyif mysql # DIV for integer division: 
query I rowsort label-7512
SELECT ALL + 40 DIV ( - NULLIF ( - + 41, - + 57 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL + 40 / ( - NULLIF ( - + 41, - + 57 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT DISTINCT + COUNT( * ) * + 7 * - 34 col1
----
-238

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT + COUNT ( * ) * + 7 * - 34 col1
----
-238

query I rowsort
SELECT 93 * - 53
----
-4929

onlyif mysql # DIV for integer division: 
query I rowsort label-7515
SELECT ALL 40 + + 6 DIV + 45 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL 40 + + 6 / + 45 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL 99 / CASE NULLIF ( + COUNT( * ), - 20 * - 18 ) WHEN - 14 THEN + 97 WHEN - + 10 THEN - + 80 + + + 0 ELSE NULL END * + - 74 * + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL 99 / CASE NULLIF ( + COUNT ( * ), - 20 * - 18 ) WHEN - 14 THEN + 97 WHEN - + 10 THEN - + 80 + + + 0 ELSE NULL END * + - 74 * + 19 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7517
SELECT 3 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-7517
SELECT 3 / - 54
----
0

query I rowsort
SELECT ALL - ( - - 90 ) * 20 AS col1
----
-1800

query I rowsort
SELECT 19 * 51
----
969

query I rowsort
SELECT ALL - ( + - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT DISTINCT - 50 + 73 * - + ( NULLIF ( + 31, - MIN( ALL + + 54 ) - + NULLIF ( - 0, - 89 ) + - 52 * - + 28 * - + 34 ) ) + + NULLIF ( + 35, + 4 * + 27 + + + AVG ( + + 17 ) ) AS col0
----
-2278

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT - 50 + 73 * - + ( NULLIF ( + 31, - MIN ( ALL + + 54 ) - + NULLIF ( - 0, - 89 ) + - 52 * - + 28 * - + 34 ) ) + + NULLIF ( + 35, + 4 * + 27 + + + AVG ( + + 17 ) ) AS col0
----
-2278

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL + CASE + 83 WHEN - - 44 + + MIN( 75 ) THEN - 45 * - AVG ( - 29 ) END + + 71 / + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL + CASE + 83 WHEN - - 44 + + MIN ( 75 ) THEN - 45 * - AVG ( - 29 ) END + + 71 / + 68 AS col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - ( 33 ), + ( - 88 ) * ( + 88 ) / 17 + + - 58 ) - 57
----
-24

query I rowsort
SELECT 9 * + - 53
----
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT DISTINCT - COUNT( - + 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT - COUNT ( - + 48 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT + COALESCE ( + - 55, - - 46 + + COUNT( * ) * NULLIF ( - 41, + - 61 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-7526
SELECT + COALESCE ( + - 55, - - 46 + + COUNT ( * ) * NULLIF ( - 41, + - 61 ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT DISTINCT 56 * COUNT( * ) * - 57 AS col2
----
-3192

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT 56 * COUNT ( * ) * - 57 AS col2
----
-3192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7528
SELECT ALL - 50 - + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL - 50 - + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7529
SELECT MAX( DISTINCT + + 49 ) * + 38 * + 29 + CASE + - 27 WHEN - 26 + + - 35 THEN NULL WHEN + CASE - 5 WHEN + - 80 THEN - - CAST( NULL AS SIGNED ) WHEN + 18 / ( - 82 ) - + 63 THEN NULL ELSE + 24 END THEN - 32 WHEN + 39 * + + COUNT( * ) * - 56 + 2 / CAST( NULL AS SIGNED ) / - 40 THEN NULL ELSE NULL END / + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7529
SELECT MAX ( DISTINCT + + 49 ) * + 38 * + 29 + CASE + - 27 WHEN - 26 + + - 35 THEN NULL WHEN + CASE - 5 WHEN + - 80 THEN - - CAST ( NULL AS INTEGER ) WHEN + 18 / ( - 82 ) - + 63 THEN NULL ELSE + 24 END THEN - 32 WHEN + 39 * + + COUNT ( * ) * - 56 + 2 / CAST ( NULL AS INTEGER ) / - 40 THEN NULL ELSE NULL END / + 83 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7530
SELECT ALL + - 50 / CAST( NULL AS DECIMAL ) + COUNT( * ) - 77 * - 11 * - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL + - 50 / CAST ( NULL AS REAL ) + COUNT ( * ) - 77 * - 11 * - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT 22 - 65
----
-43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7532
SELECT 1 * + + 62 + - CASE ( + - 27 ) WHEN + 7 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN + 68 - 68 ELSE + 11 END DIV + 82 + - - COALESCE ( - 8, - + 89 + + 55 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-7532
SELECT 1 * + + 62 + - CASE ( + - 27 ) WHEN + 7 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN + 68 - 68 ELSE + 11 END / + 82 + - - COALESCE ( - 8, - + 89 + + 55 ) AS col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT 1 DIV 66 * + - 17
----
0

skipif mysql # not compatible
query I rowsort label-7533
SELECT 1 / 66 * + - 17
----
0

query II rowsort
SELECT + 24 + + - 76 AS col1, - 40 * - + ( + - 63 )
----
-52
-2520

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7535
SELECT DISTINCT - 96 * + - ( - 81 ) - - 47 col2, - COALESCE ( COUNT( * ), MIN( - + 70 ) * - COUNT( * ) ) DIV - 50
----
-7729
0

skipif mysql # not compatible
query II rowsort label-7535
SELECT DISTINCT - 96 * + - ( - 81 ) - - 47 col2, - COALESCE ( COUNT ( * ), MIN ( - + 70 ) * - COUNT ( * ) ) / - 50
----
-7729
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7536
SELECT COUNT( * ) + - CASE WHEN NOT + 56 BETWEEN 86 AND NULL THEN + COUNT( - + 62 ) ELSE + 65 * + COALESCE ( - 79, - - 65 + CAST( NULL AS SIGNED ) * 73 * 14, + - ( COUNT( * ) ) + 74 ) END + + 15 * + NULLIF ( - CASE - - 57 WHEN - MIN( ALL + 38 ) + 77 THEN 74 + 31 + + COUNT( * ) * 86 * COUNT( * ) END, 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT COUNT ( * ) + - CASE WHEN NOT + 56 BETWEEN 86 AND NULL THEN + COUNT ( - + 62 ) ELSE + 65 * + COALESCE ( - 79, - - 65 + CAST ( NULL AS INTEGER ) * 73 * 14, + - ( COUNT ( * ) ) + 74 ) END + + 15 * + NULLIF ( - CASE - - 57 WHEN - MIN ( ALL + 38 ) + 77 THEN 74 + 31 + + COUNT ( * ) * 86 * COUNT ( * ) END, 3 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7537
SELECT + AVG ( - + CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT + AVG ( - + CAST ( NULL AS REAL ) ) col2
----
NULL

query I rowsort
SELECT + 87 * 15 * + CASE - 69 WHEN - 55 - 18 * - 8 THEN NULL WHEN - 96 THEN ( 54 ) ELSE NULL END + + - 47
----
NULL

query II rowsort
SELECT 63 - + + 68 AS col1, 20 * + 10
----
-5
200

query I rowsort
SELECT 7 + + 86
----
93

query I rowsort
SELECT ALL 35 + 4 + - - 21
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7542
SELECT ALL 53 + - COUNT( + 38 ) DIV - 96 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL 53 + - COUNT ( + 38 ) / - 96 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL COUNT( * ) * 86
----
86

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL COUNT ( * ) * 86
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7544
SELECT CASE + COUNT( * ) WHEN + - 67 THEN + + 17 * 26 * + ( + 37 ) - + 6 + 73 + - - COUNT( * ) + + 17 * - COALESCE ( + + 95, - 94, - + 98 ) * - + COUNT( * ) + + 57 * CASE - 43 WHEN - 75 - COUNT( * ) THEN - COUNT( * ) / + - 22 * + CAST( + 57 AS SIGNED ) * + + 67 * COUNT( * ) ELSE - MAX( ALL + - 45 ) END WHEN - 65 - 32 + - COUNT( * ) * + CASE - + ( + 80 ) WHEN + 64 + + - 1 THEN + COALESCE ( - + 7, - 77 * - CAST( NULL AS SIGNED ) - - - 48, - 67 ) WHEN - + 51 - - + COALESCE ( 30, - 80 ) THEN - 31 ELSE NULL END THEN NULL END * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT CASE + COUNT ( * ) WHEN + - 67 THEN + + 17 * 26 * + ( + 37 ) - + 6 + 73 + - - COUNT ( * ) + + 17 * - COALESCE ( + + 95, - 94, - + 98 ) * - + COUNT ( * ) + + 57 * CASE - 43 WHEN - 75 - COUNT ( * ) THEN - COUNT ( * ) / + - 22 * + CAST ( + 57 AS INTEGER ) * + + 67 * COUNT ( * ) ELSE - MAX ( ALL + - 45 ) END WHEN - 65 - 32 + - COUNT ( * ) * + CASE - + ( + 80 ) WHEN + 64 + + - 1 THEN + COALESCE ( - + 7, - 77 * - CAST ( NULL AS INTEGER ) - - - 48, - 67 ) WHEN - + 51 - - + COALESCE ( 30, - 80 ) THEN - 31 ELSE NULL END THEN NULL END * 28
----
NULL

query I rowsort
SELECT DISTINCT 58 * - 49
----
-2842

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT DISTINCT - 63 + - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT - 63 + - COUNT ( * )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7547
SELECT DISTINCT 52 + - 71 DIV + 30
----
50

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT 52 + - 71 / + 30
----
50

query I rowsort
SELECT 93 + - 37 AS col2
----
56

query I rowsort
SELECT DISTINCT 87 - + + 10 * 61 AS col1
----
-523

query II rowsort
SELECT ( - 43 ) + - 81 AS col2, - CASE + 32 WHEN + NULLIF ( 82, + 23 ) THEN NULL ELSE - + 92 END * COALESCE ( - + 33, + ( + 93 ), - 82 ) + 99 * - + 83 * 10
----
-124
-85206

onlyif mysql # DIV for integer division: 
query I rowsort label-7551
SELECT DISTINCT + ( - 48 ) DIV + + COALESCE ( - 21, + - 64 ) - + 7 + - 27
----
-32

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT + ( - 48 ) / + + COALESCE ( - 21, + - 64 ) - + 7 + - 27
----
-32

query I rowsort
SELECT + 4 * - 36 AS col1
----
-144

query I rowsort
SELECT ALL - 73 * + 53
----
-3869

query I rowsort
SELECT + 21 + + - ( - ( + 58 ) ) + + 91 * - 11
----
-922

onlyif mysql # DIV for integer division: 
query I rowsort label-7555
SELECT DISTINCT 45 DIV - - 3
----
15

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT 45 / - - 3
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7556
SELECT ALL + - MAX( - 18 ) * + 71 col0, COALESCE ( - + CAST( + ( + 64 ) AS SIGNED ), - 6 ) * - 9 * + + 7 + 44 * + 97 AS col2
----
1278
8300

skipif mysql # not compatible
query II rowsort label-7556
SELECT ALL + - MAX ( - 18 ) * + 71 col0, COALESCE ( - + CAST ( + ( + 64 ) AS INTEGER ), - 6 ) * - 9 * + + 7 + 44 * + 97 AS col2
----
1278
8300

onlyif mysql # aggregate syntax: 
query II rowsort label-7557
SELECT - COUNT( * ) * + - 70 - - 50, 56 AS col1
----
120
56

skipif mysql # not compatible
query II rowsort label-7557
SELECT - COUNT ( * ) * + - 70 - - 50, 56 AS col1
----
120
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7558
SELECT 16 DIV 41 + + 59
----
59

skipif mysql # not compatible
query I rowsort label-7558
SELECT 16 / 41 + + 59
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT ALL - 10 * CASE 88 WHEN - - 46 THEN NULL ELSE + + 27 * + SUM( + - 62 ) END AS col0
----
16740

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL - 10 * CASE 88 WHEN - - 46 THEN NULL ELSE + + 27 * + SUM ( + - 62 ) END AS col0
----
16740

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT DISTINCT + 52 * + CASE WHEN 17 > NULL THEN + COUNT( * ) / + - 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT + 52 * + CASE WHEN 17 > NULL THEN + COUNT ( * ) / + - 90 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7561
SELECT - 33 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7561
SELECT - 33 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT COALESCE ( + CAST( NULL AS SIGNED ), 80 )
----
80

skipif mysql # not compatible
query I rowsort label-7562
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT - COUNT( * ) + + + 83
----
82

skipif mysql # not compatible
query I rowsort label-7563
SELECT - COUNT ( * ) + + + 83
----
82

query II rowsort
SELECT ALL + + 98 * - 29 * 69 AS col1, + 50 * + 88
----
-196098
4400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7565
SELECT + - 13 * - MAX( 24 ) - + 64 + + - 26 * + 62 + - 32 + - COALESCE ( + CAST( + 77 AS SIGNED ), - - COUNT( + - 34 ) - + + 20 ) col0
----
-1473

skipif mysql # not compatible
query I rowsort label-7565
SELECT + - 13 * - MAX ( 24 ) - + 64 + + - 26 * + 62 + - 32 + - COALESCE ( + CAST ( + 77 AS INTEGER ), - - COUNT ( + - 34 ) - + + 20 ) col0
----
-1473

query I rowsort
SELECT - - NULLIF ( - 94, 19 * + 53 ) + 91 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT + - CASE 5 WHEN - 37 THEN + 58 WHEN 0 + + + COUNT( * ) + ( - + 61 ) THEN 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT + - CASE 5 WHEN - 37 THEN + 58 WHEN 0 + + + COUNT ( * ) + ( - + 61 ) THEN 67 ELSE NULL END
----
NULL

query I rowsort
SELECT + ( + 20 ) AS col0
----
20

query I rowsort
SELECT ALL + + ( + 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT DISTINCT 93 * - 31 + + 53 + - 5 + - COUNT( * ) + 93 AS col0
----
-2743

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT 93 * - 31 + + 53 + - 5 + - COUNT ( * ) + 93 AS col0
----
-2743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7571
SELECT DISTINCT CAST( 45 AS SIGNED ) * - CAST( - - 91 AS SIGNED ) / - 98 + + CASE - 2 WHEN + COUNT( DISTINCT 98 ) THEN NULL WHEN + 16 THEN - MIN( + 19 ) * + COUNT( * ) WHEN 7 THEN NULL END * + NULLIF ( 13, CASE WHEN 30 IN ( + - COUNT( * ) / - - 63 + - - 64 / 66 + - + CASE 63 WHEN + COUNT( * ) THEN ( 59 ) * 44 WHEN 25 * 61 + + NULLIF ( - 8, - 36 ) THEN + 24 + - 22 WHEN MAX( ALL - 71 ) THEN - 21 - + 51 END, + 59 ) THEN NULL ELSE + 47 + + 11 * - ( - 62 ) END + + 74 * 54 ) * + 67 - 24 * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT CAST ( 45 AS INTEGER ) * - CAST ( - - 91 AS INTEGER ) / - 98 + + CASE - 2 WHEN + COUNT ( DISTINCT 98 ) THEN NULL WHEN + 16 THEN - MIN ( + 19 ) * + COUNT ( * ) WHEN 7 THEN NULL END * + NULLIF ( 13, CASE WHEN 30 IN ( + - COUNT ( * ) / - - 63 + - - 64 / 66 + - + CASE 63 WHEN + COUNT ( * ) THEN ( 59 ) * 44 WHEN 25 * 61 + + NULLIF ( - 8, - 36 ) THEN + 24 + - 22 WHEN MAX ( ALL - 71 ) THEN - 21 - + 51 END, + 59 ) THEN NULL ELSE + 47 + + 11 * - ( - 62 ) END + + 74 * 54 ) * + 67 - 24 * - 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7572
SELECT - 2 * - 75 / - 58 * - CAST( NULL AS SIGNED ) + 45 + - - NULLIF ( + 93, + 67 + - 42 + + 60 + - COALESCE ( + 86, - 92, ( + 56 ) ) ) col1, - 43 * 56 * 96 - + 75 AS col0
----
NULL
-231243

skipif mysql # not compatible
query II rowsort label-7572
SELECT - 2 * - 75 / - 58 * - CAST ( NULL AS INTEGER ) + 45 + - - NULLIF ( + 93, + 67 + - 42 + + 60 + - COALESCE ( + 86, - 92, ( + 56 ) ) ) col1, - 43 * 56 * 96 - + 75 AS col0
----
NULL
-231243

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT + 71 + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-7573
SELECT + 71 + COUNT ( * )
----
72

query II rowsort
SELECT ALL 57, + 13 + 32 AS col1
----
57
45

query I rowsort
SELECT - 18 * + 99 * 71
----
-126522

query I rowsort
SELECT ALL - 40 * + 51 AS col2
----
-2040

query I rowsort
SELECT DISTINCT 47 + + - 57 * + 94 AS col2
----
-5311

query II rowsort
SELECT ALL ( - - 22 ) AS col1, 99 AS col0
----
22
99

onlyif mysql # DIV for integer division: 
query II rowsort label-7579
SELECT ALL 82 DIV - + 52, 92 + - 65 + + NULLIF ( - CASE 10 WHEN + 49 THEN + + 41 ELSE NULL END, + NULLIF ( - 8, + 34 ) ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7579
SELECT ALL 82 / - + 52, 92 + - 65 + + NULLIF ( - CASE 10 WHEN + 49 THEN + + 41 ELSE NULL END, + NULLIF ( - 8, + 34 ) ) AS col0
----
-1
NULL

query I rowsort
SELECT + 88 * 0 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7581
SELECT + 81 + - + COALESCE ( - 22, + 78 - + - 25 + 75 * - + 48 ) * + CAST( - + 74 AS SIGNED ) DIV COUNT( * )
----
-1547

skipif mysql # not compatible
query I rowsort label-7581
SELECT + 81 + - + COALESCE ( - 22, + 78 - + - 25 + 75 * - + 48 ) * + CAST ( - + 74 AS INTEGER ) / COUNT ( * )
----
-1547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7582
SELECT + 28 * + - ( + + COUNT( * ) ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT + 28 * + - ( + + COUNT ( * ) ) * - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 89 AS col1, - ( 0 ) + + - 2 - + + 16 * - + 22 AS col2
----
89
350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7584
SELECT ALL CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT - NULLIF ( + - COUNT( * ), + 96 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7585
SELECT - NULLIF ( + - COUNT ( * ), + 96 ) AS col2
----
1

query I rowsort
SELECT ALL 4 * 40 col2
----
160

query I rowsort
SELECT ALL + NULLIF ( - 38, - 1 + 35 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT + - SUM( ALL + 20 ) * + 65 - - + 95 * - + 3 - - 3 AS col2
----
-1582

skipif mysql # not compatible
query I rowsort label-7588
SELECT + - SUM ( ALL + 20 ) * + 65 - - + 95 * - + 3 - - 3 AS col2
----
-1582

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT COUNT( + 26 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7589
SELECT COUNT ( + 26 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT + MIN( - 57 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-7590
SELECT + MIN ( - 57 ) col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7591
SELECT + - COALESCE ( - 77, - 52 * MIN( - NULLIF ( + ( - 82 ), 29 ) ), + CAST( + CASE 60 WHEN - 47 * + 67 THEN + ( - 96 ) + - 50 WHEN NULLIF ( - + COUNT( * ), - CAST( - 52 AS SIGNED ) ) THEN + + 88 * + + 77 + 73 DIV 45 * 70 WHEN - + COUNT( * ) THEN NULL END AS SIGNED ) ) DIV + 27
----
2

skipif mysql # not compatible
query I rowsort label-7591
SELECT + - COALESCE ( - 77, - 52 * MIN ( - NULLIF ( + ( - 82 ), 29 ) ), + CAST ( + CASE 60 WHEN - 47 * + 67 THEN + ( - 96 ) + - 50 WHEN NULLIF ( - + COUNT ( * ), - CAST ( - 52 AS INTEGER ) ) THEN + + 88 * + + 77 + 73 / 45 * 70 WHEN - + COUNT ( * ) THEN NULL END AS INTEGER ) ) / + 27
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7592
SELECT + CASE WHEN NOT - 90 IS NULL THEN + + 64 DIV - + 28 + 95 END * + COUNT( * ) - + - 61 col1
----
154

skipif mysql # not compatible
query I rowsort label-7592
SELECT + CASE WHEN NOT - 90 IS NULL THEN + + 64 / - + 28 + 95 END * + COUNT ( * ) - + - 61 col1
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7593
SELECT DISTINCT 33 DIV - 77 + - + COUNT( * ) + + - 89 + - 61 + - CAST( - 7 AS SIGNED ) * + 3 AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT 33 / - 77 + - + COUNT ( * ) + + - 89 + - 61 + - CAST ( - 7 AS INTEGER ) * + 3 AS col2
----
-130

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7594
SELECT - NULLIF ( + - 79, - 88 * + NULLIF ( - + 75, + 35 ) + + + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) ) DIV - 13 + - 61 * - 88
----
5362

skipif mysql # not compatible
query I rowsort label-7594
SELECT - NULLIF ( + - 79, - 88 * + NULLIF ( - + 75, + 35 ) + + + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) ) / - 13 + - 61 * - 88
----
5362

query I rowsort
SELECT + CASE + 7 WHEN - 46 THEN + COALESCE ( + 75, 86 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT - 33 * - MIN( 32 ) AS col2
----
1056

skipif mysql # not compatible
query I rowsort label-7596
SELECT - 33 * - MIN ( 32 ) AS col2
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT ALL + + MAX( ALL - 90 ) * + ( + 28 ) + + 74 AS col0
----
-2446

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL + + MAX ( ALL - 90 ) * + ( + 28 ) + + 74 AS col0
----
-2446

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT - - 52 - - - 62 DIV 21 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-7598
SELECT - - 52 - - - 62 / 21 AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7599
SELECT + CAST( NULL AS SIGNED ) * 98 / - COALESCE ( NULLIF ( - + CAST( + - MAX( + 95 ) AS SIGNED ), 40 * 72 * 52 * ( 5 ) * - + 86 + COALESCE ( - + 19, - 87 - 52 ) ), 48, 33 + + COUNT( * ) ) * - + 50 + + 70 * + - 43 + + ( ( - + 88 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT + CAST ( NULL AS INTEGER ) * 98 / - COALESCE ( NULLIF ( - + CAST ( + - MAX ( + 95 ) AS INTEGER ), 40 * 72 * 52 * ( 5 ) * - + 86 + COALESCE ( - + 19, - 87 - 52 ) ), 48, 33 + + COUNT ( * ) ) * - + 50 + + 70 * + - 43 + + ( ( - + 88 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7600
SELECT + - CAST( NULL AS SIGNED ) col2, 81
----
NULL
81

skipif mysql # not compatible
query II rowsort label-7600
SELECT + - CAST ( NULL AS INTEGER ) col2, 81
----
NULL
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7601
SELECT DISTINCT + 13 * 50 - 40 + 69 AS col1, - 46 - + 0 + - 77 DIV + 78 * - + COALESCE ( + CAST( + 95 AS SIGNED ), - + NULLIF ( + 11, - - 76 ) - 51 ) DIV 71
----
679
-46

skipif mysql # not compatible
query II rowsort label-7601
SELECT DISTINCT + 13 * 50 - 40 + 69 AS col1, - 46 - + 0 + - 77 / + 78 * - + COALESCE ( + CAST ( + 95 AS INTEGER ), - + NULLIF ( + 11, - - 76 ) - 51 ) / 71
----
679
-46

query II rowsort
SELECT + 83 col2, + 74
----
83
74

onlyif mysql # aggregate syntax: 
query III rowsort label-7603
SELECT DISTINCT + 21, - 91 * - 5 + - 37 AS col1, 52 + + COUNT( * ) col1
----
21
418
53

skipif mysql # not compatible
query III rowsort label-7603
SELECT DISTINCT + 21, - 91 * - 5 + - 37 AS col1, 52 + + COUNT ( * ) col1
----
21
418
53

query I rowsort
SELECT ALL - - 64 * + NULLIF ( + + 29, - + 38 ) * + - 93 + - 23 AS col0
----
-172631

query I rowsort
SELECT DISTINCT 83 * + - 20 * - 28 * + - 66
----
-3067680

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7606
SELECT - AVG ( ALL CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT - AVG ( ALL CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7607
SELECT - 58 + - 10 * - + CAST( COALESCE ( CAST( NULL AS SIGNED ), - 54 DIV - 97 ) AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-7607
SELECT - 58 + - 10 * - + CAST ( COALESCE ( CAST ( NULL AS INTEGER ), - 54 / - 97 ) AS INTEGER )
----
-58

query II rowsort
SELECT - 64 * - 61 * - + 57 * + CASE 47 WHEN - - 47 * 69 THEN + ( - - 26 ) WHEN 16 THEN NULL END, + 16 AS col1
----
NULL
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7609
SELECT ALL - COUNT( * ) DIV - - 61
----
0

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL - COUNT ( * ) / - - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT - 40 + - 95 * + 92 + + COUNT( * ) AS col0
----
-8779

skipif mysql # not compatible
query I rowsort label-7610
SELECT - 40 + - 95 * + 92 + + COUNT ( * ) AS col0
----
-8779

query I rowsort
SELECT DISTINCT - 91 * + - 65
----
5915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7612
SELECT 41 + - - 55 + - CASE 77 WHEN - 61 THEN NULL ELSE 32 * + - CAST( 27 AS SIGNED ) END + + MIN( 92 ) + - + 49 * - + 74 col0
----
4678

skipif mysql # not compatible
query I rowsort label-7612
SELECT 41 + - - 55 + - CASE 77 WHEN - 61 THEN NULL ELSE 32 * + - CAST ( 27 AS INTEGER ) END + + MIN ( 92 ) + - + 49 * - + 74 col0
----
4678

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT 18 - + COALESCE ( - + CASE - 21 WHEN - 29 THEN 24 ELSE NULL END, 90 ) + - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-7613
SELECT 18 - + COALESCE ( - + CASE - 21 WHEN - 29 THEN 24 ELSE NULL END, 90 ) + - COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT 22 * 93 * - + COUNT( * ) * - 23 AS col0
----
47058

skipif mysql # not compatible
query I rowsort label-7614
SELECT 22 * 93 * - + COUNT ( * ) * - 23 AS col0
----
47058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7615
SELECT DISTINCT - COUNT( - 83 ) * + SUM( + NULLIF ( + - 76, CAST( NULL AS SIGNED ) ) ) + + + 91 + + + 34 + - 57 * + + COALESCE ( + 26, 72 * - ( - 34 ) * + 9 * CASE 18 WHEN + + CASE - + 14 WHEN + 87 THEN 22 * - 80 + - 28 ELSE NULL END THEN NULL WHEN + + 71 THEN - 24 ELSE NULL END ) * 54 * + 35 * ( COUNT( * ) ) * 54 AS col1
----
-151252719

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT - COUNT ( - 83 ) * + SUM ( + NULLIF ( + - 76, CAST ( NULL AS INTEGER ) ) ) + + + 91 + + + 34 + - 57 * + + COALESCE ( + 26, 72 * - ( - 34 ) * + 9 * CASE 18 WHEN + + CASE - + 14 WHEN + 87 THEN 22 * - 80 + - 28 ELSE NULL END THEN NULL WHEN + + 71 THEN - 24 ELSE NULL END ) * 54 * + 35 * ( COUNT ( * ) ) * 54 AS col1
----
-151252719

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7616
SELECT 37 * - CAST( NULL AS DECIMAL ) * - - 4 * - - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT 37 * - CAST ( NULL AS REAL ) * - - 4 * - - 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT COALESCE ( - COUNT( * ), - 20 * + 10 + + 13 ) * 8 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7617
SELECT COALESCE ( - COUNT ( * ), - 20 * + 10 + + 13 ) * 8 AS col0
----
-8

query II rowsort
SELECT 27 + + 80 AS col0, CASE + 70 WHEN + - 97 * + 82 + + - 81 THEN NULL ELSE + 29 END + + - CASE 12 WHEN - 9 THEN NULL ELSE + - 45 * 65 - - 33 + - 43 * - 12 END
----
107
2405

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT 20 * MIN( + + 64 ) AS col0
----
1280

skipif mysql # not compatible
query I rowsort label-7619
SELECT 20 * MIN ( + + 64 ) AS col0
----
1280

query I rowsort
SELECT 7 + + 72 * + 79 + - 97
----
5598

query II rowsort
SELECT ALL 7 + - 2, - 62 AS col0
----
5
-62

query I rowsort
SELECT - 77 + + 87 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7623
SELECT DISTINCT 78 + + CASE + + 85 WHEN - 39 THEN - + ( + + CAST( NULL AS SIGNED ) ) DIV + 73 + - - 61 ELSE + 96 END
----
174

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT 78 + + CASE + + 85 WHEN - 39 THEN - + ( + + CAST ( NULL AS INTEGER ) ) / + 73 + - - 61 ELSE + 96 END
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7624
SELECT 81 DIV 90 * - + COUNT( * ) * + - COUNT( * ) + + 75
----
75

skipif mysql # not compatible
query I rowsort label-7624
SELECT 81 / 90 * - + COUNT ( * ) * + - COUNT ( * ) + + 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT 69 + - 75 - + 23 + - COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-7625
SELECT 69 + - 75 - + 23 + - COUNT ( * ) AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7626
SELECT + CAST( ( + ( + + 97 ) ) AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-7626
SELECT + CAST ( ( + ( + + 97 ) ) AS INTEGER )
----
97

query I rowsort
SELECT ALL 23 + + 31 + - 54
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7628
SELECT - 93 * + 26 + SUM( ALL - + 33 ) * - CAST( - - 4 AS SIGNED ) - - + 16 AS col2
----
-2270

skipif mysql # not compatible
query I rowsort label-7628
SELECT - 93 * + 26 + SUM ( ALL - + 33 ) * - CAST ( - - 4 AS INTEGER ) - - + 16 AS col2
----
-2270

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT 46 * - 85 * + NULLIF ( - COALESCE ( 50, - 5 + - - COUNT( * ), - ( - COALESCE ( + 67, - 96 ) ) * COUNT( ALL - - 62 ) ), 78 )
----
195500

skipif mysql # not compatible
query I rowsort label-7629
SELECT 46 * - 85 * + NULLIF ( - COALESCE ( 50, - 5 + - - COUNT ( * ), - ( - COALESCE ( + 67, - 96 ) ) * COUNT ( ALL - - 62 ) ), 78 )
----
195500

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT - + COALESCE ( + 41, 65 ) * - COUNT( * ) + + 59 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-7630
SELECT - + COALESCE ( + 41, 65 ) * - COUNT ( * ) + + 59 AS col2
----
100

query I rowsort
SELECT ALL 37 - 45 * + ( + + 67 )
----
-2978

onlyif mysql # aggregate syntax: 
query III rowsort label-7632
SELECT DISTINCT + 93 - 51 col1, + ( COUNT( DISTINCT - - 70 ) ) AS col1, + 82 AS col1
----
42
1
82

skipif mysql # not compatible
query III rowsort label-7632
SELECT DISTINCT + 93 - 51 col1, + ( COUNT ( DISTINCT - - 70 ) ) AS col1, + 82 AS col1
----
42
1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT ALL + + SUM( DISTINCT + 29 ) * - 38
----
-1102

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL + + SUM ( DISTINCT + 29 ) * - 38
----
-1102

query I rowsort
SELECT NULLIF ( + + NULLIF ( + 80, - AVG ( ALL - 52 ) ), - - 89 * + - 45 * + 44 + + 30 ) * - 46 AS col2
----
-3680

query I rowsort
SELECT DISTINCT 35 * - 88 AS col2
----
-3080

onlyif mysql # aggregate syntax: 
query II rowsort label-7636
SELECT DISTINCT - 4 * 12 * + 60 AS col1, - COUNT( DISTINCT 44 )
----
-2880
-1

skipif mysql # not compatible
query II rowsort label-7636
SELECT DISTINCT - 4 * 12 * + 60 AS col1, - COUNT ( DISTINCT 44 )
----
-2880
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7637
SELECT 22 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7637
SELECT 22 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT ALL SUM( - CASE + + 41 WHEN + 52 THEN NULL WHEN - - 29 + 28 + - 72 THEN 75 * + 58 ELSE NULL END ) * 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL SUM ( - CASE + + 41 WHEN + 52 THEN NULL WHEN - - 29 + 28 + - 72 THEN 75 * + 58 ELSE NULL END ) * 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT CASE + - 81 WHEN - - 51 THEN + - COUNT( * ) ELSE NULL END * - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT CASE + - 81 WHEN - - 51 THEN + - COUNT ( * ) ELSE NULL END * - 10 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT 3 * + ( COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-7640
SELECT 3 * + ( COUNT ( * ) )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7641
SELECT ALL 73 AS col0, COUNT( * )
----
73
1

skipif mysql # not compatible
query II rowsort label-7641
SELECT ALL 73 AS col0, COUNT ( * )
----
73
1

query II rowsort
SELECT 28 AS col2, 70 AS col0
----
28
70

query I rowsort
SELECT 50 * 72 - - - 78
----
3522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7644
SELECT 9 AS col2, - CASE + NULLIF ( 16, - 43 + - 57 * + COUNT( * ) * AVG ( ( CAST( NULL AS SIGNED ) ) ) + CAST( NULL AS SIGNED ) ) WHEN 6 THEN 99 ELSE NULL END
----
9
NULL

skipif mysql # not compatible
query II rowsort label-7644
SELECT 9 AS col2, - CASE + NULLIF ( 16, - 43 + - 57 * + COUNT ( * ) * AVG ( ( CAST ( NULL AS INTEGER ) ) ) + CAST ( NULL AS INTEGER ) ) WHEN 6 THEN 99 ELSE NULL END
----
9
NULL

query I rowsort
SELECT DISTINCT - 60 * 12
----
-720

query II rowsort
SELECT ALL 39 col1, - ( - 90 ) AS col0
----
39
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7647
SELECT 37 DIV COUNT( * ) * - - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7647
SELECT 37 / COUNT ( * ) * - - COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT 72 + - 53 + + COUNT( * ) * + + 73 * 39 + - 27 * - + 16 AS col1
----
3298

skipif mysql # not compatible
query I rowsort label-7648
SELECT 72 + - 53 + + COUNT ( * ) * + + 73 * 39 + - 27 * - + 16 AS col1
----
3298

query I rowsort
SELECT ALL + 31 + + + 95
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7650
SELECT ALL - MAX( DISTINCT + + 66 ) + - 15 - + - 42 * 72 DIV 44
----
-13

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL - MAX ( DISTINCT + + 66 ) + - 15 - + - 42 * 72 / 44
----
-13

query I rowsort
SELECT DISTINCT ( - - NULLIF ( - 93, + 36 ) ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT - COUNT( * ) + 63
----
62

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT - COUNT ( * ) + 63
----
62

query I rowsort
SELECT ALL + 71 + 90 AS col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT ALL + CASE - + 78 WHEN - 51 * + + NULLIF ( - - 83, + 39 ) THEN - CASE 66 WHEN - 11 THEN - + COALESCE ( + 41, - ( + COUNT( * ) ) ) / - - 51 + + COUNT( * ) + + 21 + ( - COUNT( * ) ) * - 97 * - 11 / - COUNT( * ) * + + 90 + - + 67 + 99 + + 18 * 72 WHEN 95 THEN 50 WHEN 17 + + 71 * - - 32 THEN - CASE + - 60 WHEN + COALESCE ( ( + 56 ), + 96, - CASE 29 WHEN 57 THEN - - COUNT( * ) ELSE NULL END * - 0 * 6 * 99 + - ( COUNT( DISTINCT + 50 ) ), ( 78 ) ) * COUNT( * ) THEN + 46 * - 14 - 78 ELSE 23 * + COUNT( * ) END * ( + 91 ) + + 1 END + 38 ELSE 44 * + 66 END
----
2904

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL + CASE - + 78 WHEN - 51 * + + NULLIF ( - - 83, + 39 ) THEN - CASE 66 WHEN - 11 THEN - + COALESCE ( + 41, - ( + COUNT ( * ) ) ) / - - 51 + + COUNT ( * ) + + 21 + ( - COUNT ( * ) ) * - 97 * - 11 / - COUNT ( * ) * + + 90 + - + 67 + 99 + + 18 * 72 WHEN 95 THEN 50 WHEN 17 + + 71 * - - 32 THEN - CASE + - 60 WHEN + COALESCE ( ( + 56 ), + 96, - CASE 29 WHEN 57 THEN - - COUNT ( * ) ELSE NULL END * - 0 * 6 * 99 + - ( COUNT ( DISTINCT + 50 ) ), ( 78 ) ) * COUNT ( * ) THEN + 46 * - 14 - 78 ELSE 23 * + COUNT ( * ) END * ( + 91 ) + + 1 END + 38 ELSE 44 * + 66 END
----
2904

query II rowsort
SELECT ALL 28 + ( - - 66 ) AS col1, - 12 AS col2
----
94
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT + COALESCE ( COUNT( * ), 78 )
----
1

skipif mysql # not compatible
query I rowsort label-7656
SELECT + COALESCE ( COUNT ( * ), 78 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7657
SELECT - 41 DIV COALESCE ( + 53, + 76 * + + NULLIF ( 37, - + 90 ) + + - 15, COUNT( * ) DIV + - 13, + 97 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7657
SELECT - 41 / COALESCE ( + 53, + 76 * + + NULLIF ( 37, - + 90 ) + + - 15, COUNT ( * ) / + - 13, + 97 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT 91 * SUM( ALL + 65 ) col2
----
5915

skipif mysql # not compatible
query I rowsort label-7658
SELECT 91 * SUM ( ALL + 65 ) col2
----
5915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT + CAST( - 39 AS SIGNED ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7659
SELECT + CAST ( - 39 AS INTEGER ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7660
SELECT ALL - - CASE - 97 WHEN 27 THEN + 8 * + + 26 + - COUNT( ALL - + 89 ) - - 53 END col0, 70 AS col1
----
NULL
70

skipif mysql # not compatible
query II rowsort label-7660
SELECT ALL - - CASE - 97 WHEN 27 THEN + 8 * + + 26 + - COUNT ( ALL - + 89 ) - - 53 END col0, 70 AS col1
----
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT 75 * + 36 + + COUNT( * ) - - 49 AS col2
----
2750

skipif mysql # not compatible
query I rowsort label-7661
SELECT 75 * + 36 + + COUNT ( * ) - - 49 AS col2
----
2750

query I rowsort
SELECT ALL + 64 * 95 AS col2
----
6080

onlyif mysql # aggregate syntax: 
query II rowsort label-7663
SELECT ALL - + 35, MAX( DISTINCT + 25 ) AS col0
----
-35
25

skipif mysql # not compatible
query II rowsort label-7663
SELECT ALL - + 35, MAX ( DISTINCT + 25 ) AS col0
----
-35
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL ( - MIN( DISTINCT - 87 ) ) * 32 - 2
----
2782

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL ( - MIN ( DISTINCT - 87 ) ) * 32 - 2
----
2782

query II rowsort
SELECT + 17 AS col0, + 57
----
17
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT MAX( + - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-7666
SELECT MAX ( + - 45 )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7667
SELECT ALL + - 79 * + 66 * - CAST( NULL AS SIGNED ) - - MIN( - 73 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL + - 79 * + 66 * - CAST ( NULL AS INTEGER ) - - MIN ( - 73 ) AS col1
----
NULL

query I rowsort
SELECT 40 * 78 * + + 95
----
296400

onlyif mysql # aggregate syntax: 
query II rowsort label-7669
SELECT NULLIF ( 27, + - 41 ) * + + COUNT( * ) + - - 42 + COUNT( * ) * + 47 AS col2, 23 - - 28 AS col0
----
116
51

skipif mysql # not compatible
query II rowsort label-7669
SELECT NULLIF ( 27, + - 41 ) * + + COUNT ( * ) + - - 42 + COUNT ( * ) * + 47 AS col2, 23 - - 28 AS col0
----
116
51

query I rowsort
SELECT 22 - - 1 * + - CASE - + ( + 15 ) WHEN - 54 THEN + ( + - 71 ) * + 2 END
----
NULL

query I rowsort
SELECT + 53 * 49
----
2597

query I rowsort
SELECT + 58 * - 21 * + - 96 AS col0
----
116928

query I rowsort
SELECT + NULLIF ( + + 80, + 80 ) AS col1
----
NULL

query I rowsort
SELECT + 5 + - + 47 AS col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT ALL ( + 28 ) DIV - - 12 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL ( + 28 ) / - - 12 AS col1
----
2

query I rowsort
SELECT + 22 * - 53
----
-1166

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT 55 * - COUNT( * ) + 30
----
-25

skipif mysql # not compatible
query I rowsort label-7677
SELECT 55 * - COUNT ( * ) + 30
----
-25

query I rowsort
SELECT + 99 * 30 * - 23 AS col2
----
-68310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7679
SELECT + COUNT( DISTINCT + 72 ) + - + 46 - - 51 DIV + 58 col1
----
-45

skipif mysql # not compatible
query I rowsort label-7679
SELECT + COUNT ( DISTINCT + 72 ) + - + 46 - - 51 / + 58 col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT ALL ( 40 ) * + + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL ( 40 ) * + + COUNT ( * ) AS col0
----
40

query II rowsort
SELECT + 63 * 0 col2, - 74
----
0
-74

query I rowsort
SELECT - 69 * 89 col1
----
-6141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7683
SELECT DISTINCT SUM( ALL - 78 ) + + - CASE + COUNT( * ) WHEN - 29 + + + MIN( ALL + 66 ) THEN + + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) END + + 63 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT SUM ( ALL - 78 ) + + - CASE + COUNT ( * ) WHEN - 29 + + + MIN ( ALL + 66 ) THEN + + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) END + + 63 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT - CASE + 66 WHEN + - 74 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 5 END
----
5

skipif mysql # not compatible
query I rowsort label-7684
SELECT - CASE + 66 WHEN + - 74 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 5 END
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT - COUNT( * ) + + CASE - + 62 WHEN - 74 THEN + ( + 69 ) + 37 ELSE + ( + + ( 91 ) ) * - - 47 * - 32 + + 49 END AS col0
----
-136816

skipif mysql # not compatible
query I rowsort label-7685
SELECT - COUNT ( * ) + + CASE - + 62 WHEN - 74 THEN + ( + 69 ) + 37 ELSE + ( + + ( 91 ) ) * - - 47 * - 32 + + 49 END AS col0
----
-136816

query I rowsort
SELECT + 33 + 7 + + 67
----
107

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7687
SELECT ALL CAST( - - CASE 80 WHEN - - 47 + + 29 THEN - - MAX( 2 ) END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL CAST ( - - CASE 80 WHEN - - 47 + + 29 THEN - - MAX ( 2 ) END AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT DISTINCT + - NULLIF ( + + 77, - COUNT( * ) ) + - 39 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT + - NULLIF ( + + 77, - COUNT ( * ) ) + - 39 AS col2
----
-116

query I rowsort
SELECT ALL + + 63 + + - 20 * - + 1 * + 48
----
1023

query I rowsort
SELECT - 95 - 19 AS col2
----
-114

query II rowsort
SELECT - + 64 - + 44 AS col1, 29 AS col1
----
-108
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT ALL + - CASE AVG ( DISTINCT + + 72 ) WHEN COUNT( * ) + - ( + 43 ) + + 43 THEN NULL WHEN - 67 THEN NULL ELSE - 64 END - + + 99 col1
----
-35

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL + - CASE AVG ( DISTINCT + + 72 ) WHEN COUNT ( * ) + - ( + 43 ) + + 43 THEN NULL WHEN - 67 THEN NULL ELSE - 64 END - + + 99 col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-7693
SELECT - COALESCE ( + 76, - COUNT( * ), 4 ), - ( 3 ) AS col1
----
-76
-3

skipif mysql # not compatible
query II rowsort label-7693
SELECT - COALESCE ( + 76, - COUNT ( * ), 4 ), - ( 3 ) AS col1
----
-76
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7694
SELECT - + COUNT( * ) * - 0 * + 59 DIV + 82 * + 89 DIV 57 col1
----
0

skipif mysql # not compatible
query I rowsort label-7694
SELECT - + COUNT ( * ) * - 0 * + 59 / + 82 * + 89 / 57 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7695
SELECT 29 * CAST( - 15 AS SIGNED ) * + ( - 74 ) * - COUNT( * ) * + 25 + + + COALESCE ( - 70, + 54 * 48 + + 35 * - + 18, - + 31 + + - 15 ) + + + 30
----
-804790

skipif mysql # not compatible
query I rowsort label-7695
SELECT 29 * CAST ( - 15 AS INTEGER ) * + ( - 74 ) * - COUNT ( * ) * + 25 + + + COALESCE ( - 70, + 54 * 48 + + 35 * - + 18, - + 31 + + - 15 ) + + + 30
----
-804790

query II rowsort
SELECT ALL 41 / 38 + + - ( 26 ) + + - CASE - 39 WHEN - 82 THEN NULL WHEN - 0 THEN + AVG ( + 75 ) END, 76 AS col2
----
NULL
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7697
SELECT - 35 * 84 * ( CAST( 94 AS SIGNED ) ) * - 28 * COUNT( * ) AS col0
----
7738080

skipif mysql # not compatible
query I rowsort label-7697
SELECT - 35 * 84 * ( CAST ( 94 AS INTEGER ) ) * - 28 * COUNT ( * ) AS col0
----
7738080

query I rowsort
SELECT ( - + 23 ) AS col2
----
-23

query I rowsort
SELECT - 12 * - 23 AS col0
----
276

query II rowsort
SELECT ALL + 51 AS col0, - 80 + + 52 AS col2
----
51
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7701
SELECT DISTINCT + CASE - + CASE COALESCE ( CASE + - 87 WHEN CAST( NULL AS SIGNED ) THEN CAST( + NULLIF ( + + 31, 19 ) AS SIGNED ) ELSE + + 96 END, + 80 * 76 + + - ( COUNT( * ) ) * 72 ) WHEN MIN( + + 54 ) - + - 22 * + 61 - - + 83 + 78 THEN - 54 * + CASE - - ( - + 32 ) WHEN 26 + + CAST( NULL AS SIGNED ) THEN MIN( ALL + 90 ) WHEN + - ( 71 ) THEN + 79 - + 43 ELSE NULL END END WHEN + 75 THEN - + 90 WHEN - 37 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT + CASE - + CASE COALESCE ( CASE + - 87 WHEN CAST ( NULL AS INTEGER ) THEN CAST ( + NULLIF ( + + 31, 19 ) AS INTEGER ) ELSE + + 96 END, + 80 * 76 + + - ( COUNT ( * ) ) * 72 ) WHEN MIN ( + + 54 ) - + - 22 * + 61 - - + 83 + 78 THEN - 54 * + CASE - - ( - + 32 ) WHEN 26 + + CAST ( NULL AS INTEGER ) THEN MIN ( ALL + 90 ) WHEN + - ( 71 ) THEN + 79 - + 43 ELSE NULL END END WHEN + 75 THEN - + 90 WHEN - 37 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT ALL + CASE + 67 WHEN + 81 * + 93 * + - 74 + 33 + + + 47 THEN 83 + - 25 + 99 - - 66 * - 44 * 3 ELSE NULL END * - 12 + + + 1 + - COALESCE ( + 23, COUNT( + 28 ) * - - COUNT( * ), 63 / - - 4 + 86 + 63 + + - 28 * + - 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL + CASE + 67 WHEN + 81 * + 93 * + - 74 + 33 + + + 47 THEN 83 + - 25 + 99 - - 66 * - 44 * 3 ELSE NULL END * - 12 + + + 1 + - COALESCE ( + 23, COUNT ( + 28 ) * - - COUNT ( * ), 63 / - - 4 + 86 + 63 + + - 28 * + - 93 ) AS col0
----
NULL

query I rowsort
SELECT ALL + ( + NULLIF ( + + 23, 36 ) ) AS col0
----
23

query I rowsort
SELECT + 99 * 42
----
4158

query I rowsort
SELECT + NULLIF ( 59, ( 78 ) )
----
59

query II rowsort
SELECT + NULLIF ( 42, + + 11 * - 55 - 79 ) AS col1, + 52 AS col0
----
42
52

query I rowsort
SELECT - 46 * - 75 AS col1
----
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT COALESCE ( MAX( - 6 ), + + COALESCE ( + 95, - 52, - COUNT( DISTINCT - + 34 ) ) )
----
-6

skipif mysql # not compatible
query I rowsort label-7708
SELECT COALESCE ( MAX ( - 6 ), + + COALESCE ( + 95, - 52, - COUNT ( DISTINCT - + 34 ) ) )
----
-6

query I rowsort
SELECT NULLIF ( - - 98, 55 )
----
98

query I rowsort
SELECT + ( - + 42 ) * - 54 + + 97
----
2365

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT DISTINCT - 99 * + COUNT( * ) + COUNT( DISTINCT + 23 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT - 99 * + COUNT ( * ) + COUNT ( DISTINCT + 23 ) AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-7712
SELECT + 68 DIV + 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7712
SELECT + 68 / + 48 AS col0
----
1

query I rowsort
SELECT ALL 74 + + 57 AS col0
----
131

query I rowsort
SELECT ALL 97 + - 73 * 42
----
-2969

query I rowsort
SELECT ALL + 25 * 1 col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT - CAST( + COALESCE ( - 4, CAST( NULL AS SIGNED ) + + 71 ) AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-7716
SELECT - CAST ( + COALESCE ( - 4, CAST ( NULL AS INTEGER ) + + 71 ) AS INTEGER )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT - CASE - 34 WHEN 92 THEN - 89 * 24 WHEN - 39 * CASE - AVG ( 94 ) WHEN 79 + 8 * COUNT( * ) THEN - 82 * 77 ELSE NULLIF ( 8, 6 - + 3 * + 26 ) + - 89 END + + 1 / COALESCE ( 54 / 43 + + 57, 39 ) THEN - 47 * ( 44 * + 89 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT - CASE - 34 WHEN 92 THEN - 89 * 24 WHEN - 39 * CASE - AVG ( 94 ) WHEN 79 + 8 * COUNT ( * ) THEN - 82 * 77 ELSE NULLIF ( 8, 6 - + 3 * + 26 ) + - 89 END + + 1 / COALESCE ( 54 / 43 + + 57, 39 ) THEN - 47 * ( 44 * + 89 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT + 38 * COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7718
SELECT + 38 * COUNT ( * ) AS col0
----
38

query I rowsort
SELECT + 55 + ( 44 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT ALL 61 - + 53 DIV + 69
----
61

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL 61 - + 53 / + 69
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL 20 * COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL 20 * COUNT ( * ) AS col1
----
20

query I rowsort
SELECT - 31 + 51 * - 26
----
-1357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7723
SELECT + ( 37 ) * MIN( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT + ( 37 ) * MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT CASE - 79 WHEN 68 THEN + 19 ELSE + 49 + 57 END AS col0
----
106

query I rowsort
SELECT ALL 25 - + 40 AS col0
----
-15

query I rowsort
SELECT ALL + 81 - - 8
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT DISTINCT MAX( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT MAX ( 2 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7728
SELECT ALL + MAX( ALL + ( + 57 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL + MAX ( ALL + ( + 57 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 6 * 19 AS col2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT 41 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT 41 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 12 - 75
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7732
SELECT DISTINCT - COUNT( * ) * ( - NULLIF ( CAST( NULL AS SIGNED ), 31 ) / COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT - COUNT ( * ) * ( - NULLIF ( CAST ( NULL AS INTEGER ), 31 ) / COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 91 + 89 AS col0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT - 18 * CASE - 28 WHEN + COUNT( ALL - 43 ) THEN 84 END - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT - 18 * CASE - 28 WHEN + COUNT ( ALL - 43 ) THEN 84 END - - 17
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT ALL - CAST( NULL AS SIGNED ) + - 44 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - CAST ( NULL AS INTEGER ) + - 44 col0
----
NULL

query I rowsort
SELECT 31 * + 95
----
2945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7737
SELECT DISTINCT - 46 + + MIN( DISTINCT + 39 ) DIV 20
----
-45

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT - 46 + + MIN ( DISTINCT + 39 ) / 20
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL - COUNT( * ) + 10
----
9

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL - COUNT ( * ) + 10
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT 92 * + NULLIF ( - COUNT( * ) * COUNT( * ), + 27 - 18 ) + 98 col1
----
6

skipif mysql # not compatible
query I rowsort label-7739
SELECT 92 * + NULLIF ( - COUNT ( * ) * COUNT ( * ), + 27 - 18 ) + 98 col1
----
6

query I rowsort
SELECT 57 - + 16 AS col0
----
41

query I rowsort
SELECT 31 + - 46
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7742
SELECT DISTINCT - 1 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT - 1 / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL + 29 + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL + 29 + COUNT ( * )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7744
SELECT NULLIF ( + ( 36 ), - 78 * 96 ) * - CAST( 37 * + 15 + - 89 AS SIGNED ) + + 30 * - 29
----
-17646

skipif mysql # not compatible
query I rowsort label-7744
SELECT NULLIF ( + ( 36 ), - 78 * 96 ) * - CAST ( 37 * + 15 + - 89 AS INTEGER ) + + 30 * - 29
----
-17646

query I rowsort
SELECT DISTINCT + 39 * 6
----
234

query I rowsort
SELECT ALL + 19 - 55 AS col2
----
-36

query I rowsort
SELECT + 94 + + 57 AS col2
----
151

query I rowsort
SELECT DISTINCT - 92 - + 85 * 63
----
-5447

query I rowsort
SELECT - 43 + + 16 AS col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7750
SELECT 38 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-7750
SELECT 38 / 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT 69 + - MAX( 26 ) * 77 col0
----
-1933

skipif mysql # not compatible
query I rowsort label-7751
SELECT 69 + - MAX ( 26 ) * 77 col0
----
-1933

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT + CASE + 60 WHEN 84 THEN 41 * + 36 END * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT + CASE + 60 WHEN 84 THEN 41 * + 36 END * + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7753
SELECT + MAX( COALESCE ( 50, + 71 + 62 ) ) DIV + 23
----
2

skipif mysql # not compatible
query I rowsort label-7753
SELECT + MAX ( COALESCE ( 50, + 71 + 62 ) ) / + 23
----
2

query I rowsort
SELECT ( ( + 79 ) ) + - 96 * + 62 AS col2
----
-5873

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT + 37 + MAX( + 7 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7755
SELECT + 37 + MAX ( + 7 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT 38 + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-7756
SELECT 38 + COUNT ( * ) AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7758
SELECT - SUM( ALL 32 ) DIV + 1
----
-32

skipif mysql # not compatible
query I rowsort label-7758
SELECT - SUM ( ALL 32 ) / + 1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7759
SELECT - CAST( NULL AS SIGNED ) / - MIN( + 90 * COALESCE ( + 23, ( + 15 ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT - CAST ( NULL AS INTEGER ) / - MIN ( + 90 * COALESCE ( + 23, ( + 15 ) ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT - 60 + - SUM( DISTINCT 97 + - 78 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-7760
SELECT - 60 + - SUM ( DISTINCT 97 + - 78 ) AS col1
----
-79

query I rowsort
SELECT ALL 0 + 95
----
95

query I rowsort
SELECT 22 + 86
----
108

query I rowsort
SELECT ALL + 87 + - ( + 70 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT ALL 64 + - 20 + + 22 * - COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL 64 + - 20 + + 22 * - COUNT ( * ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7765
SELECT SUM( + CAST( 76 AS SIGNED ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7765
SELECT SUM ( + CAST ( 76 AS INTEGER ) ) AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7766
SELECT + 1 DIV + CAST( + COUNT( * ) AS SIGNED ) + - 78
----
-77

skipif mysql # not compatible
query I rowsort label-7766
SELECT + 1 / + CAST ( + COUNT ( * ) AS INTEGER ) + - 78
----
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7767
SELECT ALL - MIN( ALL + CASE + CAST( NULL AS DECIMAL ) WHEN + 7 * 51 - - 13 THEN NULL ELSE 85 END )
----
-85

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL - MIN ( ALL + CASE + CAST ( NULL AS REAL ) WHEN + 7 * 51 - - 13 THEN NULL ELSE 85 END )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT SUM( - ( - 60 ) ) col2
----
60

skipif mysql # not compatible
query I rowsort label-7768
SELECT SUM ( - ( - 60 ) ) col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT + MIN( ALL + 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7769
SELECT + MIN ( ALL + 90 ) AS col2
----
90

query I rowsort
SELECT ALL - 97 * + ( 50 )
----
-4850

query I rowsort
SELECT 56 * + 71
----
3976

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT ALL MAX( ALL - ( + 72 ) ) * - ( 51 ) AS col0
----
3672

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL MAX ( ALL - ( + 72 ) ) * - ( 51 ) AS col0
----
3672

query I rowsort
SELECT ALL + 52 * + 93
----
4836

query I rowsort
SELECT 82 * - 41 AS col0
----
-3362

query I rowsort
SELECT 56 - + + 10
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7776
SELECT - 52 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7776
SELECT - 52 * + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 19 * + 29 - - 19 AS col2
----
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT + COALESCE ( + MIN( DISTINCT 32 ), + 6 + 79, - 41 ) + - 5 col2
----
27

skipif mysql # not compatible
query I rowsort label-7778
SELECT + COALESCE ( + MIN ( DISTINCT 32 ), + 6 + 79, - 41 ) + - 5 col2
----
27

query I rowsort
SELECT - 32 - - 12
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL - COUNT( * ) * 64 * 71
----
-4544

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL - COUNT ( * ) * 64 * 71
----
-4544

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT + 77 + - NULLIF ( COUNT( * ), 9 ) * + 27
----
50

skipif mysql # not compatible
query I rowsort label-7781
SELECT + 77 + - NULLIF ( COUNT ( * ), 9 ) * + 27
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7782
SELECT - COALESCE ( - 22, - COUNT( ALL 27 ) + + 15, 82 DIV + 32 ) * 59 AS col1
----
1298

skipif mysql # not compatible
query I rowsort label-7782
SELECT - COALESCE ( - 22, - COUNT ( ALL 27 ) + + 15, 82 / + 32 ) * 59 AS col1
----
1298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7783
SELECT + 91 + - COALESCE ( - 79, COUNT( * ) - + 98 ) DIV 42
----
92

skipif mysql # not compatible
query I rowsort label-7783
SELECT + 91 + - COALESCE ( - 79, COUNT ( * ) - + 98 ) / 42
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT ALL + CAST( + 3 AS SIGNED ) + - 45 col1
----
-42

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL + CAST ( + 3 AS INTEGER ) + - 45 col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT - - MIN( - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7785
SELECT - - MIN ( - 34 ) AS col0
----
-34

query I rowsort
SELECT - - NULLIF ( - 19, 73 ) * + 58 AS col0
----
-1102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7787
SELECT DISTINCT - ( - - COUNT( 12 ) ) DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - ( - - COUNT ( 12 ) ) / 37
----
0

query I rowsort
SELECT DISTINCT + 46 + - 41 + - 46 + NULLIF ( 84, 82 * 37 + - 84 ) AS col0
----
43

query I rowsort
SELECT ALL 53 * - 4 AS col0
----
-212

query I rowsort
SELECT DISTINCT 11 + + 92 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT DISTINCT 23 + - COUNT( * ) + - - 8 * + 91 AS col2
----
750

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT 23 + - COUNT ( * ) + - - 8 * + 91 AS col2
----
750

query I rowsort
SELECT - 46 + - 95
----
-141

query I rowsort
SELECT - COALESCE ( + 63, - 52 * - 69 )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7794
SELECT ALL + 92 AS col0, + CAST( NULL AS SIGNED ) * + + 86 AS col0
----
92
NULL

skipif mysql # not compatible
query II rowsort label-7794
SELECT ALL + 92 AS col0, + CAST ( NULL AS INTEGER ) * + + 86 AS col0
----
92
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7795
SELECT ALL ( - - COALESCE ( + COALESCE ( - MAX( + 13 ), + 85 + COUNT( * ) * 86 ), 39, - 93 * + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + 76 * - 31 ) ) * - CASE COUNT( * ) + 95 WHEN - COALESCE ( - 60, - ( + 59 ) ) / - 36 THEN 46 * - 60 + - 66 * + 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL ( - - COALESCE ( + COALESCE ( - MAX ( + 13 ), + 85 + COUNT ( * ) * 86 ), 39, - 93 * + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 76 * - 31 ) ) * - CASE COUNT ( * ) + 95 WHEN - COALESCE ( - 60, - ( + 59 ) ) / - 36 THEN 46 * - 60 + - 66 * + 41 END
----
NULL

query I rowsort
SELECT + 40 * + - 5 * + 27
----
-5400

query II rowsort
SELECT DISTINCT + 8 col2, 31 + - 61 AS col0
----
8
-30

query I rowsort
SELECT ALL 53 * 62 - + 24
----
3262

query I rowsort
SELECT 92 * - + 2 - + 63 AS col1
----
-247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7800
SELECT ALL - 56 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL - 56 * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT CASE - 26 WHEN ( + COUNT( * ) ) THEN + 86 ELSE NULL END / 76 + - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT CASE - 26 WHEN ( + COUNT ( * ) ) THEN + 86 ELSE NULL END / 76 + - 57 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 65 * - 11 - - 44 AS col1
----
-671

query II rowsort
SELECT ALL + 27, - 21 AS col0
----
27
-21

query I rowsort
SELECT NULLIF ( - 43, - 6 / - 34 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT - 33 * + 66 - - MIN( 98 ) AS col1
----
-2080

skipif mysql # not compatible
query I rowsort label-7805
SELECT - 33 * + 66 - - MIN ( 98 ) AS col1
----
-2080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT - COALESCE ( + 73, - 67, - CAST( NULL AS SIGNED ) )
----
-73

skipif mysql # not compatible
query I rowsort label-7806
SELECT - COALESCE ( + 73, - 67, - CAST ( NULL AS INTEGER ) )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT ALL + NULLIF ( - - 75, + - 69 * 5 ) DIV 73 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + NULLIF ( - - 75, + - 69 * 5 ) / 73 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT 62 * - COUNT( * ) + + 23 + 78 * + 95 + 87
----
7458

skipif mysql # not compatible
query I rowsort label-7808
SELECT 62 * - COUNT ( * ) + + 23 + 78 * + 95 + 87
----
7458

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT ALL + + MIN( ALL + 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL + + MIN ( ALL + 28 ) AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT - 79 * 50 + AVG ( 42 ) + ( + CASE + 73 WHEN 7 * - 51 THEN NULL WHEN - 77 THEN - CAST( NULL AS SIGNED ) END ) + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT - 79 * 50 + AVG ( 42 ) + ( + CASE + 73 WHEN 7 * - 51 THEN NULL WHEN - 77 THEN - CAST ( NULL AS INTEGER ) END ) + 45
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT - 39 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-7811
SELECT - 39 / + 78
----
0

query I rowsort
SELECT ALL + + 93 * - 94 * - 87 + 0 AS col2
----
760554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT + CAST( + 73 AS SIGNED ) + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7813
SELECT + CAST ( + 73 AS INTEGER ) + COUNT ( * ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT + 96 * - 65 - + COUNT( * ) AS col0
----
-6241

skipif mysql # not compatible
query I rowsort label-7814
SELECT + 96 * - 65 - + COUNT ( * ) AS col0
----
-6241

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT + - 10 DIV - ( + 94 )
----
0

skipif mysql # not compatible
query I rowsort label-7815
SELECT + - 10 / - ( + 94 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT - - COALESCE ( + - 17, 63 DIV + 48 ) DIV - ( 70 + 68 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7816
SELECT - - COALESCE ( + - 17, 63 / + 48 ) / - ( 70 + 68 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT - ( COUNT( * ) ) + 62 col2
----
61

skipif mysql # not compatible
query I rowsort label-7817
SELECT - ( COUNT ( * ) ) + 62 col2
----
61

query I rowsort
SELECT - + 30 * + + 44 * + 46 * 26
----
-1578720

query I rowsort
SELECT - - 19 + - 25 AS col1
----
-6

query II rowsort
SELECT DISTINCT 32 AS col1, + 17 + - 42 col0
----
32
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT - COUNT( * ) + + 40
----
39

skipif mysql # not compatible
query I rowsort label-7821
SELECT - COUNT ( * ) + + 40
----
39

query I rowsort
SELECT - - ( - 67 )
----
-67

query I rowsort
SELECT - 55 + 3 - - + 63 * 73 AS col0
----
4547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7824
SELECT ALL - 64 + 43 * - CAST( + COUNT( * ) AS SIGNED ) + 26 * + 17
----
335

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL - 64 + 43 * - CAST ( + COUNT ( * ) AS INTEGER ) + 26 * + 17
----
335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT - 47 + - 96 * - - NULLIF ( - CAST( NULL AS SIGNED ), 64 + 48 ) + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT - 47 + - 96 * - - NULLIF ( - CAST ( NULL AS INTEGER ), 64 + 48 ) + 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT - SUM( DISTINCT 43 ) - COUNT( * ) + + - 82
----
-126

skipif mysql # not compatible
query I rowsort label-7826
SELECT - SUM ( DISTINCT 43 ) - COUNT ( * ) + + - 82
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7827
SELECT + NULLIF ( - 2, CASE - COUNT( * ) WHEN 17 + - ( 45 ) * - 41 THEN NULL WHEN - AVG ( - 61 ) * - SUM( 5 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END ) + + 47 * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-7827
SELECT + NULLIF ( - 2, CASE - COUNT ( * ) WHEN 17 + - ( 45 ) * - 41 THEN NULL WHEN - AVG ( - 61 ) * - SUM ( 5 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) + + 47 * COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT - COUNT( * ) + - - COUNT( * ) * + ( + 5 )
----
4

skipif mysql # not compatible
query I rowsort label-7828
SELECT - COUNT ( * ) + - - COUNT ( * ) * + ( + 5 )
----
4

query I rowsort
SELECT ALL + 24 * + 13
----
312

query II rowsort
SELECT ALL ( 8 ) AS col1, + 13 + + 19 AS col2
----
8
32

query I rowsort
SELECT + 5 * + 10 + - 65
----
-15

query I rowsort
SELECT ALL + ( ( 40 ) ) AS col2
----
40

query I rowsort
SELECT + ( + 82 ) * 29
----
2378

onlyif mysql # DIV for integer division: 
query I rowsort label-7834
SELECT - CASE 27 WHEN - ( + AVG ( DISTINCT 59 ) ) THEN NULL ELSE - 61 END DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-7834
SELECT - CASE 27 WHEN - ( + AVG ( DISTINCT 59 ) ) THEN NULL ELSE - 61 END / - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT MIN( - COALESCE ( - 20, 38 * - 56, + 11 ) ) * - 50 AS col1
----
-1000

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT MIN ( - COALESCE ( - 20, 38 * - 56, + 11 ) ) * - 50 AS col1
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT - COUNT( * ) * + ( - 84 ) col0
----
84

skipif mysql # not compatible
query I rowsort label-7836
SELECT - COUNT ( * ) * + ( - 84 ) col0
----
84

query I rowsort
SELECT + 33 * 89 * + 60 AS col1
----
176220

query I rowsort
SELECT - ( 52 ) * 37 * 66 * - 50 + 44
----
6349244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7839
SELECT + CASE - ( - 98 ) WHEN + 71 THEN NULL WHEN COUNT( - ( 29 ) ) + + ( - 30 + - COUNT( * ) ) THEN NULL WHEN - 27 THEN NULL ELSE 37 DIV + 20 END
----
1

skipif mysql # not compatible
query I rowsort label-7839
SELECT + CASE - ( - 98 ) WHEN + 71 THEN NULL WHEN COUNT ( - ( 29 ) ) + + ( - 30 + - COUNT ( * ) ) THEN NULL WHEN - 27 THEN NULL ELSE 37 / + 20 END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL - 60 * NULLIF ( - 44, + 58 * + MIN( + 15 ) ) AS col1
----
2640

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL - 60 * NULLIF ( - 44, + 58 * + MIN ( + 15 ) ) AS col1
----
2640

query I rowsort
SELECT DISTINCT + + 43 * + 57 * - 71 * 61 AS col0
----
-10615281

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT + MIN( + ( 71 ) )
----
71

skipif mysql # not compatible
query I rowsort label-7842
SELECT + MIN ( + ( 71 ) )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7843
SELECT DISTINCT + 89 + - + 80 DIV ( + 22 ) * 8 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT + 89 + - + 80 / ( + 22 ) * 8 AS col2
----
65

query I rowsort
SELECT + COALESCE ( + 72, + + 68 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT SUM( - + 23 ) * COUNT( * ) * + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-7845
SELECT SUM ( - + 23 ) * COUNT ( * ) * + - COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT 34 * - COUNT( * ) * + 68 + + 20 AS col2
----
-2292

skipif mysql # not compatible
query I rowsort label-7846
SELECT 34 * - COUNT ( * ) * + 68 + + 20 AS col2
----
-2292

query I rowsort
SELECT DISTINCT 29 + + 92 + + 74
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7848
SELECT + CASE 62 WHEN - + 78 * - + COUNT( - 42 ) * - 1 - - 47 THEN NULL WHEN + CAST( + COUNT( * ) AS SIGNED ) THEN NULL ELSE COALESCE ( + 46, + 81 * CASE CASE - 42 WHEN COUNT( * ) THEN - 85 END * 6 WHEN - ( 16 ) * COUNT( * ) THEN NULL WHEN - CAST( + 70 AS SIGNED ) - - 15 * 37 THEN COUNT( - ( + 13 ) ) DIV + 60 WHEN 44 THEN NULL ELSE NULL END ) * + ( + 63 ) END + - COUNT( * )
----
2897

skipif mysql # not compatible
query I rowsort label-7848
SELECT + CASE 62 WHEN - + 78 * - + COUNT ( - 42 ) * - 1 - - 47 THEN NULL WHEN + CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL ELSE COALESCE ( + 46, + 81 * CASE CASE - 42 WHEN COUNT ( * ) THEN - 85 END * 6 WHEN - ( 16 ) * COUNT ( * ) THEN NULL WHEN - CAST ( + 70 AS INTEGER ) - - 15 * 37 THEN COUNT ( - ( + 13 ) ) / + 60 WHEN 44 THEN NULL ELSE NULL END ) * + ( + 63 ) END + - COUNT ( * )
----
2897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7849
SELECT - - CAST( - 50 AS SIGNED ) col2
----
-50

skipif mysql # not compatible
query I rowsort label-7849
SELECT - - CAST ( - 50 AS INTEGER ) col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT DISTINCT - COALESCE ( + MIN( - 39 ), + 39, 35 + 41 ) + CASE ( 87 ) WHEN 36 + + COUNT( * ) THEN 76 - - COALESCE ( - 6, - 69 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT - COALESCE ( + MIN ( - 39 ), + 39, 35 + 41 ) + CASE ( 87 ) WHEN 36 + + COUNT ( * ) THEN 76 - - COALESCE ( - 6, - 69 ) END AS col1
----
NULL

query I rowsort
SELECT + 30 - 97
----
-67

query I rowsort
SELECT ALL 9 + 29 - 57
----
-19

query I rowsort
SELECT ALL 14 + - + 64
----
-50

query I rowsort
SELECT - 97 + - 27 * - + 19 * + + 1
----
416

query I rowsort
SELECT 57 + - 36 - CASE - ( + - 15 ) WHEN + 91 THEN NULL ELSE - 90 END + + 2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT 66 + + 10 + - 8 + - MIN( + - 73 ) * + 41
----
3061

skipif mysql # not compatible
query I rowsort label-7856
SELECT 66 + + 10 + - 8 + - MIN ( + - 73 ) * + 41
----
3061

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT ALL + 28 - + SUM( 54 )
----
-26

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + 28 - + SUM ( 54 )
----
-26

query I rowsort
SELECT NULLIF ( + 51, + 19 * 35 ) * - 69 AS col1
----
-3519

query I rowsort
SELECT 40 * - + 75 AS col2
----
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT 50 * + ( 59 ) * + 16 + COUNT( * ) * 32
----
47232

skipif mysql # not compatible
query I rowsort label-7860
SELECT 50 * + ( 59 ) * + 16 + COUNT ( * ) * 32
----
47232

query I rowsort
SELECT DISTINCT + 84 * - + 63 AS col2
----
-5292

query II rowsort
SELECT - 23 col2, 40 AS col1
----
-23
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT CAST( NULL AS SIGNED ) + - ( - 25 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7863
SELECT CAST ( NULL AS INTEGER ) + - ( - 25 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 93 * - ( 40 )
----
-3720

query I rowsort
SELECT 56 + + 74
----
130

query II rowsort
SELECT - 32 AS col2, + 99 + + - 33
----
-32
66

query II rowsort
SELECT + 34 AS col0, - 55
----
34
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-7868
SELECT ALL + 66 * 73 DIV 75 * 92
----
5888

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL + 66 * 73 / 75 * 92
----
5888

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT NULLIF ( + - NULLIF ( + 6, - ( - - 53 ) + 36 ), - 38 ) * COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-7869
SELECT NULLIF ( + - NULLIF ( + 6, - ( - - 53 ) + 36 ), - 38 ) * COUNT ( * )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7870
SELECT DISTINCT - 21 + - 93 + - 28 DIV + 40 AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT - 21 + - 93 + - 28 / + 40 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT COUNT( 22 ) + - ( + 58 )
----
-57

skipif mysql # not compatible
query I rowsort label-7871
SELECT COUNT ( 22 ) + - ( + 58 )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7872
SELECT - 12 DIV - 83 * - COALESCE ( 7, - 91 + + 30, 32 ) * 24
----
0

skipif mysql # not compatible
query I rowsort label-7872
SELECT - 12 / - 83 * - COALESCE ( 7, - 91 + + 30, 32 ) * 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT + COUNT( DISTINCT + + ( + 55 ) ) * - 24 + - + 37 col1
----
-61

skipif mysql # not compatible
query I rowsort label-7873
SELECT + COUNT ( DISTINCT + + ( + 55 ) ) * - 24 + - + 37 col1
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7874
SELECT + 60 DIV - COUNT( * ) * COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-7874
SELECT + 60 / - COUNT ( * ) * COUNT ( * ) AS col2
----
-60

query I rowsort
SELECT - 44 * + 59 col0
----
-2596

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT DISTINCT COUNT( * ) + - 4 + 36 * + + 66 * + + 33
----
78405

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT COUNT ( * ) + - 4 + 36 * + + 66 * + + 33
----
78405

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT ALL + 99 + - + ( - ( + 3 ) ) - + - 6 DIV - 11
----
102

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL + 99 + - + ( - ( + 3 ) ) - + - 6 / - 11
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT DISTINCT - - COUNT( * ) * - 47 + + 33 col1
----
-14

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT - - COUNT ( * ) * - 47 + + 33 col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT DISTINCT + - CAST( - 75 AS SIGNED ) + + 2 col0
----
77

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT + - CAST ( - 75 AS INTEGER ) + + 2 col0
----
77

query I rowsort
SELECT - 28 + - NULLIF ( - - 87, 2 + - 26 + - 56 ) AS col0
----
-115

query I rowsort
SELECT ALL ( + - ( + 25 ) ) - + + 79 AS col1
----
-104

query I rowsort
SELECT + 77 + - 91 * 18 AS col1
----
-1561

query I rowsort
SELECT COALESCE ( - 87, + - 64 ) + - + 89 AS col1
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT ( 41 ) + + - COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7884
SELECT ( 41 ) + + - COUNT ( * ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT - 4 + + - 50 + + COUNT( * ) * + - COUNT( * ) * - 58
----
4

skipif mysql # not compatible
query I rowsort label-7885
SELECT - 4 + + - 50 + + COUNT ( * ) * + - COUNT ( * ) * - 58
----
4

query II rowsort
SELECT - 17, + 96 AS col2
----
-17
96

onlyif mysql # DIV for integer division: 
query II rowsort label-7887
SELECT ALL 99, - 20 DIV - 79 AS col1
----
99
0

skipif mysql # not compatible
query II rowsort label-7887
SELECT ALL 99, - 20 / - 79 AS col1
----
99
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7888
SELECT DISTINCT 4 AS col2, + 22 * + 98 + + + 34 + + 29 + + MAX( DISTINCT 1 ) * - 18
----
4
2201

skipif mysql # not compatible
query II rowsort label-7888
SELECT DISTINCT 4 AS col2, + 22 * + 98 + + + 34 + + 29 + + MAX ( DISTINCT 1 ) * - 18
----
4
2201

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT 50 * - MIN( DISTINCT - - 86 )
----
-4300

skipif mysql # not compatible
query I rowsort label-7889
SELECT 50 * - MIN ( DISTINCT - - 86 )
----
-4300

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT ALL 99 DIV + 27 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL 99 / + 27 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT 75 * + SUM( - - CASE + + 15 WHEN + 38 * + + 87 + 47 * 24 THEN - 92 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT 75 * + SUM ( - - CASE + + 15 WHEN + 38 * + + 87 + 47 * 24 THEN - 92 ELSE NULL END )
----
NULL

query I rowsort
SELECT 46 + + - 69
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-7893
SELECT 4 AS col1, SUM( ALL - 86 ) * - 46 / CASE 60 WHEN ( 20 ) + 78 THEN - 79 END
----
4
NULL

skipif mysql # not compatible
query II rowsort label-7893
SELECT 4 AS col1, SUM ( ALL - 86 ) * - 46 / CASE 60 WHEN ( 20 ) + 78 THEN - 79 END
----
4
NULL

query I rowsort
SELECT 91 + 73 AS col0
----
164

query I rowsort
SELECT 65 * 10 * + 92 AS col0
----
59800

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT 1 + COUNT( ALL - 9 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7896
SELECT 1 + COUNT ( ALL - 9 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7897
SELECT - COUNT( * ) AS col1, COUNT( * ) col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-7897
SELECT - COUNT ( * ) AS col1, COUNT ( * ) col1
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7898
SELECT CAST( 39 AS SIGNED ) * - ( + NULLIF ( - - COUNT( * ), + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT CAST ( 39 AS INTEGER ) * - ( + NULLIF ( - - COUNT ( * ), + COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT ALL 92 + - NULLIF ( ( - + 9 ), + COALESCE ( + SUM( ALL NULLIF ( + 39, + 74 / 14 ) ), 13 ) ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL 92 + - NULLIF ( ( - + 9 ), + COALESCE ( + SUM ( ALL NULLIF ( + 39, + 74 / 14 ) ), 13 ) ) AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT DISTINCT 51 + + 6 - - - 79 * - 86 * 94 - + COUNT( + 44 )
----
638692

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT 51 + + 6 - - - 79 * - 86 * 94 - + COUNT ( + 44 )
----
638692

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT MIN( - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT MIN ( - 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT ALL - COUNT( * ) + + - 22 * + - 91 AS col2
----
2001

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL - COUNT ( * ) + + - 22 * + - 91 AS col2
----
2001

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT 91 + + 97 * COUNT( * ) AS col1
----
188

skipif mysql # not compatible
query I rowsort label-7903
SELECT 91 + + 97 * COUNT ( * ) AS col1
----
188

query I rowsort
SELECT ALL 86 + 41 AS col1
----
127

query II rowsort
SELECT - 4, - 28 + - + 25 AS col0
----
-4
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7906
SELECT - - 68 * - COALESCE ( + 0, + CAST( 77 AS SIGNED ) * + + 5 DIV 20 + - COUNT( * ) ) + 81 + 63 * + 45
----
2916

skipif mysql # not compatible
query I rowsort label-7906
SELECT - - 68 * - COALESCE ( + 0, + CAST ( 77 AS INTEGER ) * + + 5 / 20 + - COUNT ( * ) ) + 81 + 63 * + 45
----
2916

query I rowsort
SELECT ALL - 11 * - 17 - 80 + 56
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7908
SELECT + 55 AS col1, - 57 - CAST( NULL AS SIGNED ) AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-7908
SELECT + 55 AS col1, - 57 - CAST ( NULL AS INTEGER ) AS col0
----
55
NULL

query II rowsort
SELECT 51 AS col0, - 24
----
51
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL COUNT( * ) * + 21 + - + COUNT( * ) * + 82 - - - NULLIF ( - COUNT( ALL 24 ), + 27 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL COUNT ( * ) * + 21 + - + COUNT ( * ) * + 82 - - - NULLIF ( - COUNT ( ALL 24 ), + 27 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT DISTINCT + 25 * COUNT( * ) * + 60 + 71 AS col0
----
1571

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT + 25 * COUNT ( * ) * + 60 + 71 AS col0
----
1571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7912
SELECT ( - 48 ) * - 78 DIV + COUNT( * ) + + NULLIF ( - 76, - 0 + 22 ) + - COUNT( * ) + 46 * CAST( COUNT( * ) AS SIGNED ) col2
----
3713

skipif mysql # not compatible
query I rowsort label-7912
SELECT ( - 48 ) * - 78 / + COUNT ( * ) + + NULLIF ( - 76, - 0 + 22 ) + - COUNT ( * ) + 46 * CAST ( COUNT ( * ) AS INTEGER ) col2
----
3713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7913
SELECT ALL + + ( - NULLIF ( ( - 7 ), + + 51 ) ) * 97 + COUNT( * ) - - CAST( NULL AS SIGNED ) / 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL + + ( - NULLIF ( ( - 7 ), + + 51 ) ) * 97 + COUNT ( * ) - - CAST ( NULL AS INTEGER ) / 77 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 35 AS col1, + 65
----
35
65

query I rowsort
SELECT DISTINCT - 53 * - 54 - - 49
----
2911

onlyif mysql # aggregate syntax: 
query II rowsort label-7916
SELECT - + COUNT( * ) - - 96 AS col0, - 8 AS col2
----
95
-8

skipif mysql # not compatible
query II rowsort label-7916
SELECT - + COUNT ( * ) - - 96 AS col0, - 8 AS col2
----
95
-8

query II rowsort
SELECT 25, 76 AS col0
----
25
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT + COUNT( - 83 ) * + 20 - - NULLIF ( 70, - COUNT( * ) ) + + 86
----
176

skipif mysql # not compatible
query I rowsort label-7918
SELECT + COUNT ( - 83 ) * + 20 - - NULLIF ( 70, - COUNT ( * ) ) + + 86
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT DISTINCT + COUNT( * ) * + 81 - 75 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT + COUNT ( * ) * + 81 - 75 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT + 67 * - + COUNT( * ) + - + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-7920
SELECT + 67 * - + COUNT ( * ) + - + COUNT ( * )
----
-68

query I rowsort
SELECT DISTINCT - 93 * + 11 AS col1
----
-1023

onlyif mysql # DIV for integer division: 
query I rowsort label-7922
SELECT DISTINCT - 82 DIV - 69
----
1

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT - 82 / - 69
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7923
SELECT DISTINCT COALESCE ( - - CAST( NULL AS SIGNED ), 58 + + 25, - 3 * + COALESCE ( + CASE ( ( COUNT( * ) ) ) WHEN COUNT( * ) + CAST( 3 AS SIGNED ) THEN ( - 30 ) WHEN 70 THEN NULL END, + 34, 7 DIV + 93 + - 96 * - 31 ) + - 82 )
----
83

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT COALESCE ( - - CAST ( NULL AS INTEGER ), 58 + + 25, - 3 * + COALESCE ( + CASE ( ( COUNT ( * ) ) ) WHEN COUNT ( * ) + CAST ( 3 AS INTEGER ) THEN ( - 30 ) WHEN 70 THEN NULL END, + 34, 7 / + 93 + - 96 * - 31 ) + - 82 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7924
SELECT ALL - COALESCE ( - 79, COUNT( * ) ) * - MAX( DISTINCT 74 ) * + 8 * CASE - ( - 65 ) WHEN - 44 - 49 THEN NULL ELSE - CAST( NULL AS SIGNED ) * COUNT( * ) + 96 * - 29 END + SUM( DISTINCT ( + 23 ) ) * + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL - COALESCE ( - 79, COUNT ( * ) ) * - MAX ( DISTINCT 74 ) * + 8 * CASE - ( - 65 ) WHEN - 44 - 49 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * COUNT ( * ) + 96 * - 29 END + SUM ( DISTINCT ( + 23 ) ) * + 77 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( 60 ) AS col1
----
60

query I rowsort
SELECT DISTINCT - 93 * - 45
----
4185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7927
SELECT - 34 * 67 AS col1, ( 32 ) * + 43 + 95 + - CAST( COALESCE ( - COUNT( * ), 79, 88 / COUNT( * ) ) AS SIGNED ) + - 72
----
-2278
1400

skipif mysql # not compatible
query II rowsort label-7927
SELECT - 34 * 67 AS col1, ( 32 ) * + 43 + 95 + - CAST ( COALESCE ( - COUNT ( * ), 79, 88 / COUNT ( * ) ) AS INTEGER ) + - 72
----
-2278
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT - ( SUM( ALL ( + 19 ) ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7928
SELECT - ( SUM ( ALL ( + 19 ) ) ) AS col0
----
-19

query I rowsort
SELECT - COALESCE ( - 71, + NULLIF ( - 15, - - 58 / + ( - 80 ) ) )
----
71

query I rowsort
SELECT ALL - 76 + - ( - 76 ) * + - 22
----
-1748

query I rowsort
SELECT ALL 86 + + 85
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-7932
SELECT ALL 45 DIV 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL 45 / 60 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT DISTINCT COUNT( * ) + - + 4
----
-3

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT COUNT ( * ) + - + 4
----
-3

query I rowsort
SELECT ALL - NULLIF ( - ( - 92 ), + 83 + - 45 * + - 44 * - 33 * + 48 ) + 30 AS col1
----
-62

query I rowsort
SELECT ALL COALESCE ( + 33, - + 72 ) + - 26 * + 17 AS col2
----
-409

query I rowsort
SELECT + 33 + - 6
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7937
SELECT DISTINCT 82 DIV - + 19 - + 14 - - - 73
----
-91

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT 82 / - + 19 - + 14 - - - 73
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7938
SELECT COUNT( * ) DIV + 4 - 4 + 6 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7938
SELECT COUNT ( * ) / + 4 - 4 + 6 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7939
SELECT DISTINCT - 38 DIV + + 86 * + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT - 38 / + + 86 * + + COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query III rowsort label-7940
SELECT ALL - 64 DIV + - 19 - 21 AS col2, - 7 + - - 73, - 95 AS col1
----
-18
66
-95

skipif mysql # not compatible
query III rowsort label-7940
SELECT ALL - 64 / + - 19 - 21 AS col2, - 7 + - - 73, - 95 AS col1
----
-18
66
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT 41 * + COUNT( * ) + - ( - 45 ) + - ( + + 36 )
----
50

skipif mysql # not compatible
query I rowsort label-7941
SELECT 41 * + COUNT ( * ) + - ( - 45 ) + - ( + + 36 )
----
50

query I rowsort
SELECT + ( 37 ) + - - 39 * 35 AS col1
----
1402

query I rowsort
SELECT + 52 * + 11 - 8
----
564

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT + NULLIF ( + + 15, - MIN( ALL - COALESCE ( + 4, + 8 ) ) )
----
15

skipif mysql # not compatible
query I rowsort label-7944
SELECT + NULLIF ( + + 15, - MIN ( ALL - COALESCE ( + 4, + 8 ) ) )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT 86 * + - 83 DIV - - 1 + - 17 + + 53 AS col1
----
-7102

skipif mysql # not compatible
query I rowsort label-7945
SELECT 86 * + - 83 / - - 1 + - 17 + + 53 AS col1
----
-7102

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT - + MIN( ALL - 30 ) * + - ( + 56 ) AS col0
----
-1680

skipif mysql # not compatible
query I rowsort label-7946
SELECT - + MIN ( ALL - 30 ) * + - ( + 56 ) AS col0
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT COUNT( * ) * + - 20 + - 23 * 7 - MAX( 55 ) + + 65
----
-171

skipif mysql # not compatible
query I rowsort label-7947
SELECT COUNT ( * ) * + - 20 + - 23 * 7 - MAX ( 55 ) + + 65
----
-171

query II rowsort
SELECT ALL + 95 col2, + 84 * - ( - 63 ) * 38 AS col2
----
95
201096

query I rowsort
SELECT NULLIF ( 74, - + 14 * + 98 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT COALESCE ( - 96, + ( + ( COUNT( * ) ) ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-7950
SELECT COALESCE ( - 96, + ( + ( COUNT ( * ) ) ) ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-7951
SELECT - COUNT( * ) + - 9 + 76 AS col2, 84 * - 23
----
66
-1932

skipif mysql # not compatible
query II rowsort label-7951
SELECT - COUNT ( * ) + - 9 + 76 AS col2, 84 * - 23
----
66
-1932

query I rowsort
SELECT - ( - - 11 ) * 53 col0
----
-583

query I rowsort
SELECT DISTINCT 76 * ( + 66 ) + 51 col1
----
5067

query I rowsort
SELECT DISTINCT - 62 * 4 col2
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT - ( - 2 ) + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-7955
SELECT - ( - 2 ) + COUNT ( * )
----
3

query I rowsort
SELECT ALL 13 * - 35 + + 14
----
-441

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT ALL + 17 * - 77 * - 48, + COUNT( * ) AS col1
----
62832
1

skipif mysql # not compatible
query II rowsort label-7957
SELECT ALL + 17 * - 77 * - 48, + COUNT ( * ) AS col1
----
62832
1

query I rowsort
SELECT DISTINCT - 62 * + 12 AS col2
----
-744

query I rowsort
SELECT ALL + 8 + - 60
----
-52

query II rowsort
SELECT ALL 36 AS col0, 57
----
36
57

query I rowsort
SELECT ALL - 44 * + 92 AS col2
----
-4048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT ( + - 14 ) + - CAST( + - 72 AS SIGNED ) * + + 24 AS col1
----
1714

skipif mysql # not compatible
query I rowsort label-7962
SELECT ( + - 14 ) + - CAST ( + - 72 AS INTEGER ) * + + 24 AS col1
----
1714

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT COUNT( * ) + + ( + + 41 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7963
SELECT COUNT ( * ) + + ( + + 41 ) AS col2
----
42

query I rowsort
SELECT + 40 * + 16
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT 80 * + MIN( + + 24 ) AS col0
----
1920

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT 80 * + MIN ( + + 24 ) AS col0
----
1920

query I rowsort
SELECT DISTINCT + 59 - + - 1
----
60

query I rowsort
SELECT 44 * - - 99 + - - 78 col1
----
4434

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT DISTINCT - COUNT( * ) * - 78 col2
----
78

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT - COUNT ( * ) * - 78 col2
----
78

query II rowsort
SELECT + + 90 AS col1, - 99
----
90
-99

query I rowsort
SELECT 5 * + 63
----
315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7971
SELECT 23 * - 36 * + - CASE + COUNT( * ) WHEN - COALESCE ( 47, + 38 ) THEN NULL ELSE - 18 END + NULLIF ( - CAST( NULL AS SIGNED ), AVG ( - ( 43 ) ) * 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7971
SELECT 23 * - 36 * + - CASE + COUNT ( * ) WHEN - COALESCE ( 47, + 38 ) THEN NULL ELSE - 18 END + NULLIF ( - CAST ( NULL AS INTEGER ), AVG ( - ( 43 ) ) * 45 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT CASE 47 WHEN - ( - 36 ) * 45 * - 98 THEN + 8 ELSE NULL END * - - CAST( + 26 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT CASE 47 WHEN - ( - 36 ) * 45 * - 98 THEN + 8 ELSE NULL END * - - CAST ( + 26 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 25 * + 15 + - 14 + + 73 AS col0
----
434

onlyif mysql # DIV for integer division: 
query I rowsort label-7974
SELECT 15 DIV - - 99 * 59
----
0

skipif mysql # not compatible
query I rowsort label-7974
SELECT 15 / - - 99 * 59
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT ALL 9 DIV + 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL 9 / + 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT DISTINCT - - ( + COUNT( 28 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT - - ( + COUNT ( 28 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7977
SELECT DISTINCT - + 58 AS col2, ( + CASE - 41 WHEN + COUNT( * ) / + + ( - + 3 ) + - 7 THEN - 13 - COUNT( * ) * + COUNT( DISTINCT - 53 ) END )
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-7977
SELECT DISTINCT - + 58 AS col2, ( + CASE - 41 WHEN + COUNT ( * ) / + + ( - + 3 ) + - 7 THEN - 13 - COUNT ( * ) * + COUNT ( DISTINCT - 53 ) END )
----
-58
NULL

query I rowsort
SELECT - 97 * - 67 AS col0
----
6499

onlyif mysql # aggregate syntax: 
query II rowsort label-7979
SELECT ALL + COUNT( * ) * - 75 + - 66, - 87 AS col2
----
-141
-87

skipif mysql # not compatible
query II rowsort label-7979
SELECT ALL + COUNT ( * ) * - 75 + - 66, - 87 AS col2
----
-141
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7980
SELECT - 6 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-7980
SELECT - 6 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT COUNT( * ) * - 51 * - - 56
----
-2856

skipif mysql # not compatible
query I rowsort label-7981
SELECT COUNT ( * ) * - 51 * - - 56
----
-2856

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7982
SELECT 50 - 29 + 5 - - - 22 DIV 70 * 52 DIV 6 AS col2, COALESCE ( + 65, ( 10 ) + - COUNT( * ) * 52 ) - - 1 AS col2
----
26
66

skipif mysql # not compatible
query II rowsort label-7982
SELECT 50 - 29 + 5 - - - 22 / 70 * 52 / 6 AS col2, COALESCE ( + 65, ( 10 ) + - COUNT ( * ) * 52 ) - - 1 AS col2
----
26
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT COUNT( * ) * + 66 + - 86 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-7983
SELECT COUNT ( * ) * + 66 + - 86 AS col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7984
SELECT ALL + 48 * - - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL + 48 * - - CAST ( + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT - 93 + + COUNT( + 14 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT - 93 + + COUNT ( + 14 ) AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7986
SELECT DISTINCT 34 * - - COUNT( * ) * - ( - + 7 ) / - CAST( NULL AS SIGNED ) * 59 * 55 * + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT 34 * - - COUNT ( * ) * - ( - + 7 ) / - CAST ( NULL AS INTEGER ) * 59 * 55 * + + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ALL - CASE + 86 WHEN + - 39 THEN - 24 END + + 91 + 18 - 51 * COUNT( * ) * - 84 * 58 / ( COUNT( * ) * 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL - CASE + 86 WHEN + - 39 THEN - 24 END + + 91 + 18 - 51 * COUNT ( * ) * - 84 * 58 / ( COUNT ( * ) * 28 )
----
NULL

query I rowsort
SELECT 91 * + 83 col2
----
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT DISTINCT + 22 + - - COALESCE ( 81, + 39, MAX( DISTINCT + 59 ) * + 80 + + 74 ) - + COUNT( * ) + - 49
----
53

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT + 22 + - - COALESCE ( 81, + 39, MAX ( DISTINCT + 59 ) * + 80 + + 74 ) - + COUNT ( * ) + - 49
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7990
SELECT CAST( + ( - + 27 ) AS SIGNED ) DIV - 48 + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7990
SELECT CAST ( + ( - + 27 ) AS INTEGER ) / - 48 + 37 AS col1
----
37

query I rowsort
SELECT 16 * - - 65
----
1040

onlyif mysql # aggregate syntax: 
query II rowsort label-7992
SELECT 6 - COUNT( * ) AS col2, + 9
----
5
9

skipif mysql # not compatible
query II rowsort label-7992
SELECT 6 - COUNT ( * ) AS col2, + 9
----
5
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT DISTINCT + 4 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT + 4 / 75
----
0

query I rowsort
SELECT ALL - + 57 * 44
----
-2508

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7995
SELECT ALL - 71 * + + 52 + + + CAST( + 71 AS SIGNED ) * + 86 - + 63 + + 8 - 60 DIV + 25 + 41
----
2398

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL - 71 * + + 52 + + + CAST ( + 71 AS INTEGER ) * + 86 - + 63 + + 8 - 60 / + 25 + 41
----
2398

onlyif mysql # DIV for integer division: 
query I rowsort label-7996
SELECT DISTINCT - + 27 * 12 DIV + 99 - 31 + + 22 * + 12 + + 32
----
262

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT - + 27 * 12 / + 99 - 31 + + 22 * + 12 + + 32
----
262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7997
SELECT ALL + + 65 * COUNT( * ) * - - COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL + + 65 * COUNT ( * ) * - - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT DISTINCT - COUNT( * ) - + MAX( DISTINCT 76 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT - COUNT ( * ) - + MAX ( DISTINCT 76 ) AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7999
SELECT ALL CASE 38 WHEN CAST( NULL AS SIGNED ) * - 8 - + COUNT( * ) THEN + 25 - - 64 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL CASE 38 WHEN CAST ( NULL AS INTEGER ) * - 8 - + COUNT ( * ) THEN + 25 - - 64 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT + 32 + - CASE + CAST( 21 AS SIGNED ) WHEN - ( - - 36 ) + - - 7 THEN NULL ELSE + - 6 END
----
38

skipif mysql # not compatible
query I rowsort label-8000
SELECT + 32 + - CASE + CAST ( 21 AS INTEGER ) WHEN - ( - - 36 ) + - - 7 THEN NULL ELSE + - 6 END
----
38

query I rowsort
SELECT 38 * + 40 * + ( + 39 )
----
59280

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT 50 * - + 79 + - 85 + + + COUNT( * ) AS col1
----
-4034

skipif mysql # not compatible
query I rowsort label-8002
SELECT 50 * - + 79 + - 85 + + + COUNT ( * ) AS col1
----
-4034

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT + CASE - + MAX( - 2 ) WHEN - - 71 THEN - COUNT( * ) ELSE - + 2 END
----
-2

skipif mysql # not compatible
query I rowsort label-8003
SELECT + CASE - + MAX ( - 2 ) WHEN - - 71 THEN - COUNT ( * ) ELSE - + 2 END
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8004
SELECT + MIN( DISTINCT ( 61 ) ) * - - 76 + - CAST( 42 AS SIGNED )
----
4594

skipif mysql # not compatible
query I rowsort label-8004
SELECT + MIN ( DISTINCT ( 61 ) ) * - - 76 + - CAST ( 42 AS INTEGER )
----
4594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8005
SELECT SUM( - + CAST( NULL AS SIGNED ) ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT SUM ( - + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 26 * 77 * + 65 + - 18
----
-130148

query I rowsort
SELECT - 95 + + 18 - + 80 AS col0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT ALL + 83 * - + COUNT( * ) + + 98 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL + 83 * - + COUNT ( * ) + + 98 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT MIN( ALL - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8009
SELECT MIN ( ALL - 18 )
----
-18

query I rowsort
SELECT ALL 23 + 72 AS col2
----
95

query I rowsort
SELECT DISTINCT 34 * 92 AS col1
----
3128

query I rowsort
SELECT ALL 93 * - + 27
----
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT CASE + - 11 WHEN - - 53 THEN NULL WHEN - + 62 * 27 THEN 63 * + - 11 END * + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8013
SELECT CASE + - 11 WHEN - - 53 THEN NULL WHEN - + 62 * 27 THEN 63 * + - 11 END * + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8014
SELECT CASE 38 WHEN 17 * - - 51 THEN COUNT( * ) END * + + 94 * - CAST( NULL AS SIGNED ) + - CAST( + 50 AS DECIMAL ) / + + AVG ( ALL 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT CASE 38 WHEN 17 * - - 51 THEN COUNT ( * ) END * + + 94 * - CAST ( NULL AS INTEGER ) + - CAST ( + 50 AS REAL ) / + + AVG ( ALL 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL 87 + 13 - + ( + SUM( - 18 ) ) col0
----
118

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL 87 + 13 - + ( + SUM ( - 18 ) ) col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL + MIN( 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL + MIN ( 21 ) AS col0
----
21

query I rowsort
SELECT + 28 * + 74
----
2072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8018
SELECT 8 * + COUNT( * ) - - CAST( + CASE + + 28 WHEN - 13 THEN - COUNT( * ) ELSE NULL END AS SIGNED ) / + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT 8 * + COUNT ( * ) - - CAST ( + CASE + + 28 WHEN - 13 THEN - COUNT ( * ) ELSE NULL END AS INTEGER ) / + 32 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8019
SELECT + CAST( NULL AS SIGNED ) + + 16 / + COALESCE ( + + ( + 84 ), - MAX( - 31 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT + CAST ( NULL AS INTEGER ) + + 16 / + COALESCE ( + + ( + 84 ), - MAX ( - 31 ) ) AS col0
----
NULL

query I rowsort
SELECT + 15 + + + 54
----
69

query I rowsort
SELECT + 74 * - 87 AS col0
----
-6438

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT DISTINCT ( + + 84 ) * - + 94 * + 48 * - COUNT( ALL + - 25 ) AS col2
----
379008

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT ( + + 84 ) * - + 94 * + 48 * - COUNT ( ALL + - 25 ) AS col2
----
379008

onlyif mysql # aggregate syntax: 
query II rowsort label-8023
SELECT ALL COUNT( * ) AS col1, - MAX( DISTINCT 32 ) AS col1
----
1
-32

skipif mysql # not compatible
query II rowsort label-8023
SELECT ALL COUNT ( * ) AS col1, - MAX ( DISTINCT 32 ) AS col1
----
1
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT - - NULLIF ( - - 80, + + 33 + - - NULLIF ( - CAST( + 16 AS SIGNED ), - - COALESCE ( + - 49, COUNT( * ), 85 ) ) + - 37 ) + 64 AS col2
----
144

skipif mysql # not compatible
query I rowsort label-8024
SELECT - - NULLIF ( - - 80, + + 33 + - - NULLIF ( - CAST ( + 16 AS INTEGER ), - - COALESCE ( + - 49, COUNT ( * ), 85 ) ) + - 37 ) + 64 AS col2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT - 58 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT - 58 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8026
SELECT - - ( + - COUNT( * ) ) DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8026
SELECT - - ( + - COUNT ( * ) ) / 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL NULLIF ( - SUM( DISTINCT + - 42 ), + 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL NULLIF ( - SUM ( DISTINCT + - 42 ), + 42 ) AS col0
----
NULL

query I rowsort
SELECT - 86 + 74
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8029
SELECT DISTINCT - 15 DIV + - 30 * + 99
----
0

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT - 15 / + - 30 * + 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8030
SELECT - + CASE - - 98 WHEN - 40 + 0 / - - ( - 92 ) THEN NULL WHEN - + 40 * - COUNT( * ) - 31 THEN + CAST( NULL AS SIGNED ) WHEN 96 THEN NULL END * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT - + CASE - - 98 WHEN - 40 + 0 / - - ( - 92 ) THEN NULL WHEN - + 40 * - COUNT ( * ) - 31 THEN + CAST ( NULL AS INTEGER ) WHEN 96 THEN NULL END * 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8031
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) * 96 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) * 96 AS col0
----
96

query I rowsort
SELECT DISTINCT - 66 + - 52
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL + COUNT( * ) + - 87 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL + COUNT ( * ) + - 87 AS col0
----
-86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8034
SELECT - + CAST( NULL AS DECIMAL ) / - 85 + + + NULLIF ( 27, - 19 + - 43 * 94 ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8034
SELECT - + CAST ( NULL AS REAL ) / - 85 + + + NULLIF ( 27, - 19 + - 43 * 94 ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8035
SELECT ALL 58 DIV - 3 + - 88 * + 6
----
-547

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL 58 / - 3 + - 88 * + 6
----
-547

onlyif mysql # DIV for integer division: 
query II rowsort label-8036
SELECT - 93 AS col1, 54 DIV 35
----
-93
1

skipif mysql # not compatible
query II rowsort label-8036
SELECT - 93 AS col1, 54 / 35
----
-93
1

query I rowsort
SELECT ( NULLIF ( + 34, - + 22 ) ) AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8038
SELECT ( + COUNT( * ) ) AS col2, 34 DIV + 61 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-8038
SELECT ( + COUNT ( * ) ) AS col2, 34 / + 61 AS col0
----
1
0

query I rowsort
SELECT DISTINCT 64 * + 90 + - 76
----
5684

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL 33 * - - 97 + + COUNT( * ) col0
----
3202

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL 33 * - - 97 + + COUNT ( * ) col0
----
3202

onlyif mysql # aggregate syntax: 
query II rowsort label-8041
SELECT + 2 col1, - COUNT( * ) * + 37 + + 21 col0
----
2
-16

skipif mysql # not compatible
query II rowsort label-8041
SELECT + 2 col1, - COUNT ( * ) * + 37 + + 21 col0
----
2
-16

query II rowsort
SELECT ALL + 11 AS col0, 68 col1
----
11
68

query I rowsort
SELECT DISTINCT 17 * - 43
----
-731

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT DISTINCT ( + 37 ) * + NULLIF ( - 34, - 50 ) + 46 + + 64 + - 17 - - COUNT( * )
----
-1164

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT ( + 37 ) * + NULLIF ( - 34, - 50 ) + 46 + + 64 + - 17 - - COUNT ( * )
----
-1164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8045
SELECT CASE 90 WHEN COUNT( * ) THEN 40 * + NULLIF ( + 6, - 82 / + 1 + 73 * 83 + - 45 / + 32 ) + + 88 * - NULLIF ( ( + 73 ) * 15, CAST( 42 AS SIGNED ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT CASE 90 WHEN COUNT ( * ) THEN 40 * + NULLIF ( + 6, - 82 / + 1 + 73 * 83 + - 45 / + 32 ) + + 88 * - NULLIF ( ( + 73 ) * 15, CAST ( 42 AS INTEGER ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 50 * - - 43 - - + 72
----
2222

query II rowsort
SELECT + 67 AS col2, 40 + - 48
----
67
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT + CASE 54 WHEN 57 THEN 7 * 57 + - 61 * COUNT( * ) * 17 WHEN 35 THEN NULL WHEN - + 99 THEN + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8048
SELECT + CASE 54 WHEN 57 THEN 7 * 57 + - 61 * COUNT ( * ) * 17 WHEN 35 THEN NULL WHEN - + 99 THEN + 72 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT + COUNT( - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-8049
SELECT + COUNT ( - 89 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT - 4 + + + ( - + COUNT( * ) ) * + 54 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-8050
SELECT - 4 + + + ( - + COUNT ( * ) ) * + 54 AS col1
----
-58

query I rowsort
SELECT + 10 * + 23
----
230

query I rowsort
SELECT ALL 16 * - - 49 AS col1
----
784

onlyif mysql # aggregate syntax: 
query II rowsort label-8053
SELECT NULLIF ( + + SUM( - 12 ), + + 17 * COUNT( * ) + - - ( 19 ) * + 1 + - 34 ) col2, COUNT( * )
----
-12
1

skipif mysql # not compatible
query II rowsort label-8053
SELECT NULLIF ( + + SUM ( - 12 ), + + 17 * COUNT ( * ) + - - ( 19 ) * + 1 + - 34 ) col2, COUNT ( * )
----
-12
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT DISTINCT 33 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT 33 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT ALL - MIN( DISTINCT + 18 ) * + 33 AS col1
----
-594

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL - MIN ( DISTINCT + 18 ) * + 33 AS col1
----
-594

query I rowsort
SELECT + NULLIF ( - ( 70 ), + - 36 + - 86 + - - 48 * 30 + - 2 )
----
-70

query I rowsort
SELECT + 50 - 34
----
16

query II rowsort
SELECT ALL 92 AS col0, - 92 AS col0
----
92
-92

query I rowsort
SELECT + 44 * + + ( 38 ) AS col0
----
1672

query I rowsort
SELECT + 73 - - ( + 23 ) AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8061
SELECT DISTINCT 12 DIV ( + 17 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT 12 / ( + 17 ) col2
----
0

query II rowsort
SELECT ALL 47 AS col2, 88 * + 86 AS col2
----
47
7568

query II rowsort
SELECT - 69, + 20 + - + 99 AS col2
----
-69
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8064
SELECT - + 57 AS col1, ( COUNT( * ) ) * + COUNT( * ) + 28 * - 58 - 5 AS col0
----
-57
-1628

skipif mysql # not compatible
query II rowsort label-8064
SELECT - + 57 AS col1, ( COUNT ( * ) ) * + COUNT ( * ) + 28 * - 58 - 5 AS col0
----
-57
-1628

query I rowsort
SELECT DISTINCT - 30 + 10 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT + NULLIF ( + NULLIF ( + ( + COUNT( * ) ), - - 80 + 34 ), - 75 ) * 39
----
39

skipif mysql # not compatible
query I rowsort label-8066
SELECT + NULLIF ( + NULLIF ( + ( + COUNT ( * ) ), - - 80 + 34 ), - 75 ) * 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT ALL + COUNT( + 10 ) + + + 70 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL + COUNT ( + 10 ) + + + 70 AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8068
SELECT ALL - + COUNT( * ) + + 62 + - COALESCE ( 98, + 89 + - 10, - + MIN( ALL 54 ) + 46 + + 91 DIV + + 94 * + CAST( NULL AS SIGNED ) + - 39 * - 78 ) * - 40 * - ( - COUNT( * ) )
----
3981

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL - + COUNT ( * ) + + 62 + - COALESCE ( 98, + 89 + - 10, - + MIN ( ALL 54 ) + 46 + + 91 / + + 94 * + CAST ( NULL AS INTEGER ) + - 39 * - 78 ) * - 40 * - ( - COUNT ( * ) )
----
3981

query I rowsort
SELECT + + 42 * 60 AS col2
----
2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT ALL - 37 + CAST( + 0 AS SIGNED ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL - 37 + CAST ( + 0 AS INTEGER ) AS col0
----
-37

query II rowsort
SELECT ALL 47 + - 20, 41 AS col1
----
27
41

query I rowsort
SELECT - 86 - - + 48 AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8073
SELECT - NULLIF ( - + ( - COUNT( * ) ), 3 * - 67 + CAST( NULL AS DECIMAL ) ) AS col0, 55
----
-1
55

skipif mysql # not compatible
query II rowsort label-8073
SELECT - NULLIF ( - + ( - COUNT ( * ) ), 3 * - 67 + CAST ( NULL AS REAL ) ) AS col0, 55
----
-1
55

query I rowsort
SELECT + 30 + - 88 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - COUNT( ALL - + 13 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8075
SELECT - COUNT ( ALL - + 13 ) AS col2
----
-1

query II rowsort
SELECT - 99 AS col0, + 80 + 54
----
-99
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8077
SELECT COUNT( * ) * - COUNT( * ) DIV - 22 + - 26 * + 93 * 29 + COUNT( * ) + - 73 * COALESCE ( COUNT( * ), + 27 ) + + 16 * - 83
----
-71522

skipif mysql # not compatible
query I rowsort label-8077
SELECT COUNT ( * ) * - COUNT ( * ) / - 22 + - 26 * + 93 * 29 + COUNT ( * ) + - 73 * COALESCE ( COUNT ( * ), + 27 ) + + 16 * - 83
----
-71522

onlyif mysql # DIV for integer division: 
query I rowsort label-8078
SELECT - 13 DIV 10
----
-1

skipif mysql # not compatible
query I rowsort label-8078
SELECT - 13 / 10
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8079
SELECT ALL + 81 DIV - - 65 + - + COALESCE ( + 49, - SUM( + 37 ), - - 43, - - 82 )
----
-48

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL + 81 / - - 65 + - + COALESCE ( + 49, - SUM ( + 37 ), - - 43, - - 82 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT - MIN( ALL + - 73 ) * + + 78 AS col1
----
5694

skipif mysql # not compatible
query I rowsort label-8080
SELECT - MIN ( ALL + - 73 ) * + + 78 AS col1
----
5694

onlyif mysql # DIV for integer division: 
query II rowsort label-8081
SELECT ALL 94 DIV 71 AS col2, - 26 * - 22
----
1
572

skipif mysql # not compatible
query II rowsort label-8081
SELECT ALL 94 / 71 AS col2, - 26 * - 22
----
1
572

query I rowsort
SELECT ALL - CASE + 64 WHEN + 31 THEN + 50 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8083
SELECT + 85 DIV - + 71 + - + 4 + - 15 * - MAX( + 2 ) * - COALESCE ( 19, - 38, - + 1 ) * + 24 + 63 * - ( - ( - 76 ) ) * - 19 AS col2
----
77287

skipif mysql # not compatible
query I rowsort label-8083
SELECT + 85 / - + 71 + - + 4 + - 15 * - MAX ( + 2 ) * - COALESCE ( 19, - 38, - + 1 ) * + 24 + 63 * - ( - ( - 76 ) ) * - 19 AS col2
----
77287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8084
SELECT ALL + 89 - - 76 + + + 7 * - CAST( + - ( + 31 ) AS SIGNED )
----
382

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL + 89 - - 76 + + + 7 * - CAST ( + - ( + 31 ) AS INTEGER )
----
382

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT ALL - 17 * COUNT( * ) * - - 22 AS col0
----
-374

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL - 17 * COUNT ( * ) * - - 22 AS col0
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT ALL - COALESCE ( NULLIF ( - + COUNT( * ), - AVG ( - 44 ) ), 26 * + 85 * 89 * + 57 * + 45 * + NULLIF ( + 49, - 13 * + ( - COUNT( * ) ) ) + + 41, COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL - COALESCE ( NULLIF ( - + COUNT ( * ), - AVG ( - 44 ) ), 26 * + 85 * 89 * + 57 * + 45 * + NULLIF ( + 49, - 13 * + ( - COUNT ( * ) ) ) + + 41, COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL - COALESCE ( + 85, - ( + 14 ) ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-8088
SELECT ALL - ( 68 ) AS col1, - COUNT( * ) + 91 + - NULLIF ( 60, + MIN( ALL + 94 ) ) AS col2
----
-68
30

skipif mysql # not compatible
query II rowsort label-8088
SELECT ALL - ( 68 ) AS col1, - COUNT ( * ) + 91 + - NULLIF ( 60, + MIN ( ALL + 94 ) ) AS col2
----
-68
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT DISTINCT - COUNT( DISTINCT + + 3 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT - COUNT ( DISTINCT + + 3 ) AS col2
----
-1

query I rowsort
SELECT 6 + + 24 + + + 44 * - 10
----
-410

query I rowsort
SELECT ALL - 55 * - 15
----
825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8092
SELECT 67 + + 2 * + 71 + + 28 + + - COUNT( * ) / 52 - - COALESCE ( - CAST( NULL AS SIGNED ), 3 ) - - COUNT( * ) / COUNT( * ) * ( CASE 60 WHEN MAX( 16 ) THEN + 63 / - 57 ELSE NULL END ) * 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT 67 + + 2 * + 71 + + 28 + + - COUNT ( * ) / 52 - - COALESCE ( - CAST ( NULL AS INTEGER ), 3 ) - - COUNT ( * ) / COUNT ( * ) * ( CASE 60 WHEN MAX ( 16 ) THEN + 63 / - 57 ELSE NULL END ) * 39 AS col2
----
NULL

query I rowsort
SELECT + 84 + + 2
----
86

query I rowsort
SELECT ALL + 1 + - - 68 - - 29 + + ( 67 )
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-8095
SELECT + 98 DIV + 85 + + 50 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8095
SELECT + 98 / + 85 + + 50 AS col0
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8096
SELECT + 68 * CAST( NULL AS DECIMAL ) * - 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT + 68 * CAST ( NULL AS REAL ) * - 46 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT - - 99 * - MAX( ALL + 44 ) + + 74 * 14 * + + 73 AS col0
----
71272

skipif mysql # not compatible
query I rowsort label-8097
SELECT - - 99 * - MAX ( ALL + 44 ) + + 74 * 14 * + + 73 AS col0
----
71272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8098
SELECT ALL - CAST( NULL AS SIGNED ) + 6 + + 32 - MAX( + 10 ) * + COALESCE ( 43, 90 / + + 13 * + 48 * - 32, SUM( 74 ) * - MIN( ALL - 2 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL - CAST ( NULL AS INTEGER ) + 6 + + 32 - MAX ( + 10 ) * + COALESCE ( 43, 90 / + + 13 * + 48 * - 32, SUM ( 74 ) * - MIN ( ALL - 2 ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8099
SELECT ALL 64 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL 64 / + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT - COUNT( * ) + + 11 * + - 46 * ( + + 56 ) * COALESCE ( + COUNT( * ), 16 + - - COALESCE ( + 30, + 67, 71 ) ) AS col1
----
-28337

skipif mysql # not compatible
query I rowsort label-8100
SELECT - COUNT ( * ) + + 11 * + - 46 * ( + + 56 ) * COALESCE ( + COUNT ( * ), 16 + - - COALESCE ( + 30, + 67, 71 ) ) AS col1
----
-28337

query I rowsort
SELECT ALL 4 + - + 86 * - + 87
----
7486

query I rowsort
SELECT DISTINCT ( + - 91 ) col1
----
-91

query I rowsort
SELECT - COALESCE ( 76, ( + + 92 ) )
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT + NULLIF ( 5, + - 29 ) DIV + - 65
----
0

skipif mysql # not compatible
query I rowsort label-8104
SELECT + NULLIF ( 5, + - 29 ) / + - 65
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8105
SELECT COALESCE ( 9, - 16 DIV - 55 * + + ( + 72 ) * - COUNT( * ) ) + + - 12 + - COUNT( * ) * + 38 + + + 10 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8105
SELECT COALESCE ( 9, - 16 / - 55 * + + ( + 72 ) * - COUNT ( * ) ) + + - 12 + - COUNT ( * ) * + 38 + + + 10 AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8106
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2, + 93 AS col1
----
1
93

skipif mysql # not compatible
query II rowsort label-8106
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2, + 93 AS col1
----
1
93

query II rowsort
SELECT ALL - 81 * - 45 AS col2, + 62
----
3645
62

query I rowsort
SELECT - 50 * + + 16 * + ( 63 )
----
-50400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8109
SELECT ALL COALESCE ( ( + COUNT( * ) ), - 45, - - NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( - - 33 ) ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL COALESCE ( ( + COUNT ( * ) ), - 45, - - NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( - - 33 ) ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL COUNT( * ) - + 53 col0
----
-52

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL COUNT ( * ) - + 53 col0
----
-52

query I rowsort
SELECT DISTINCT 5 * 30
----
150

query I rowsort
SELECT 10 * + ( + 56 ) * 23 - 41 AS col0
----
12839

onlyif mysql # DIV for integer division: 
query I rowsort label-8113
SELECT ALL + ( 14 ) DIV - 71 * - 23 * - 99
----
0

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL + ( 14 ) / - 71 * - 23 * - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT ( - 63 ) * + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-8114
SELECT ( - 63 ) * + COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8115
SELECT DISTINCT COUNT( * ) DIV + MIN( 98 )
----
0

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT COUNT ( * ) / + MIN ( 98 )
----
0

query I rowsort
SELECT 25 + + 95 * + 78
----
7435

query I rowsort
SELECT DISTINCT + ( + 9 ) * + 19
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL - SUM( 87 ) + 23 * - + 72 col1
----
-1743

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL - SUM ( 87 ) + 23 * - + 72 col1
----
-1743

query I rowsort
SELECT DISTINCT - ( - 88 )
----
88

query I rowsort
SELECT 25 * - 7 AS col1
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL - 30 + - COUNT( * ) + + ( 16 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL - 30 + - COUNT ( * ) + + ( 16 ) AS col1
----
-15

query I rowsort
SELECT + + ( 20 )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8123
SELECT ALL + + COUNT( * ) + 99 + 47 * + 7 * 7 + - + 52 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL + + COUNT ( * ) + 99 + 47 * + 7 * 7 + - + 52 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 64 + 42
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8125
SELECT - 5 * - - COUNT( * ) DIV + COUNT( * ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-8125
SELECT - 5 * - - COUNT ( * ) / + COUNT ( * ) col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8126
SELECT ALL + - COALESCE ( + + 73, 17 - + + 54 DIV 21 + - ( - 16 ) + + 13 ) + + - 65 * - 23
----
1422

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL + - COALESCE ( + + 73, 17 - + + 54 / 21 + - ( - 16 ) + + 13 ) + + - 65 * - 23
----
1422

query I rowsort
SELECT DISTINCT - 48 + 42 - - - 69 + + 49 * - ( + 81 ) * - - 60
----
-238215

query I rowsort
SELECT ALL - 89 + - - 53
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8129
SELECT DISTINCT + COALESCE ( - + ( ( 35 ) ), + 63 DIV 75 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT + COALESCE ( - + ( ( 35 ) ), + 63 / 75 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT + 41 * 15 * - + MAX( ALL + + 94 )
----
-57810

skipif mysql # not compatible
query I rowsort label-8130
SELECT + 41 * 15 * - + MAX ( ALL + + 94 )
----
-57810

onlyif mysql # aggregate syntax: 
query II rowsort label-8131
SELECT ALL COUNT( * ) AS col1, 19
----
1
19

skipif mysql # not compatible
query II rowsort label-8131
SELECT ALL COUNT ( * ) AS col1, 19
----
1
19

query I rowsort
SELECT ALL 38 - - - 80
----
-42

query I rowsort
SELECT - 7 * + 60
----
-420

query II rowsort
SELECT - + 22, 41 AS col2
----
-22
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8135
SELECT DISTINCT + + 96 - + COUNT( * ) DIV - + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT + + 96 - + COUNT ( * ) / - + COUNT ( * )
----
97

query II rowsort
SELECT DISTINCT 84, - ( NULLIF ( - + 27, - 91 - - + 19 ) ) col2
----
84
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT + 34 - CAST( - + 8 AS SIGNED ) * - + 55
----
-406

skipif mysql # not compatible
query I rowsort label-8137
SELECT + 34 - CAST ( - + 8 AS INTEGER ) * - + 55
----
-406

query I rowsort
SELECT ALL + 93 - - 7
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8139
SELECT ALL COUNT( * ) DIV + - 44
----
0

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL COUNT ( * ) / + - 44
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT - CAST( NULL AS SIGNED ) + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8140
SELECT - CAST ( NULL AS INTEGER ) + + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT - COALESCE ( + + 97, + 43, SUM( + 24 ) ) + - 94 AS col1
----
-191

skipif mysql # not compatible
query I rowsort label-8141
SELECT - COALESCE ( + + 97, + 43, SUM ( + 24 ) ) + - 94 AS col1
----
-191

query I rowsort
SELECT + 11 - + + 27 + + 60 - + - 35 * ( 75 ) col2
----
2669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8143
SELECT + 81 + 91 - 69 * - + CAST( NULL AS SIGNED ) * + COUNT( * ) / 6 + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8143
SELECT + 81 + 91 - 69 * - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / 6 + - 96
----
NULL

query I rowsort
SELECT - NULLIF ( + - 10, 77 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT DISTINCT SUM( DISTINCT + 39 ) * - 93 + + COALESCE ( + ( 45 ), - + 14 ) - + 47 * + COALESCE ( + 84, + + COALESCE ( - 31, - - 78 ) + + NULLIF ( - COUNT( * ), - 62 ), - 13 ) + 75 * 22 col0
----
-5880

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT SUM ( DISTINCT + 39 ) * - 93 + + COALESCE ( + ( 45 ), - + 14 ) - + 47 * + COALESCE ( + 84, + + COALESCE ( - 31, - - 78 ) + + NULLIF ( - COUNT ( * ), - 62 ), - 13 ) + 75 * 22 col0
----
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT DISTINCT COUNT( * ) * - 74
----
-74

skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT COUNT ( * ) * - 74
----
-74

query II rowsort
SELECT + 27 + + 73 col0, 29 * 51
----
100
1479

query I rowsort
SELECT + 91 * - 51
----
-4641

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8149
SELECT + ( + + 3 ) * + + 63 * COUNT( * ) * - 87 + COALESCE ( + 47, - ( + + 12 ), 58 ) - + 11 DIV 62 * - COUNT( * ) AS col2
----
-16396

skipif mysql # not compatible
query I rowsort label-8149
SELECT + ( + + 3 ) * + + 63 * COUNT ( * ) * - 87 + COALESCE ( + 47, - ( + + 12 ), 58 ) - + 11 / 62 * - COUNT ( * ) AS col2
----
-16396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8150
SELECT + CASE + - 10 WHEN + + 64 THEN - COUNT( * ) / + - 85 + - 3 WHEN - MAX( + 14 ) THEN NULL ELSE - CASE + ( - 23 ) WHEN + 34 * - 34 + + 75 THEN - CAST( 34 AS SIGNED ) WHEN 31 * + 72 THEN NULL END * - 43 + - 52 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT + CASE + - 10 WHEN + + 64 THEN - COUNT ( * ) / + - 85 + - 3 WHEN - MAX ( + 14 ) THEN NULL ELSE - CASE + ( - 23 ) WHEN + 34 * - 34 + + 75 THEN - CAST ( 34 AS INTEGER ) WHEN 31 * + 72 THEN NULL END * - 43 + - 52 END AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( - - 58, + + 89, + 44 ) * 3 * - - 19 AS col2
----
-3306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8152
SELECT CASE + - ( + 88 ) WHEN - 75 - - MAX( - + 68 ) THEN 78 * - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN NULL ELSE + 97 * + + 19 END AS col1
----
1843

skipif mysql # not compatible
query I rowsort label-8152
SELECT CASE + - ( + 88 ) WHEN - 75 - - MAX ( - + 68 ) THEN 78 * - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN NULL ELSE + 97 * + + 19 END AS col1
----
1843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8153
SELECT ALL NULLIF ( COUNT( * ), COALESCE ( - - 76, - COUNT( * ) * 37 + ( - 44 ) + - 4 - - - NULLIF ( COALESCE ( + COALESCE ( SUM( - - 48 ), 78 / + 84 + 88 * 50, - 25, - 3 * 8 ), - CAST( NULL AS SIGNED ) + 61 / - 10 ), 73 * - 43 ), + 64 / 73 + + ( MAX( ALL + 45 ) + 71 / + MAX( DISTINCT - 2 ) ) * CAST( NULL AS DECIMAL ) ) + COUNT( * ) ) * - CAST( NULL AS SIGNED ) + - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL NULLIF ( COUNT ( * ), COALESCE ( - - 76, - COUNT ( * ) * 37 + ( - 44 ) + - 4 - - - NULLIF ( COALESCE ( + COALESCE ( SUM ( - - 48 ), 78 / + 84 + 88 * 50, - 25, - 3 * 8 ), - CAST ( NULL AS INTEGER ) + 61 / - 10 ), 73 * - 43 ), + 64 / 73 + + ( MAX ( ALL + 45 ) + 71 / + MAX ( DISTINCT - 2 ) ) * CAST ( NULL AS REAL ) ) + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) + - 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT DISTINCT - COALESCE ( 90, 53, + 10 ) * + + COALESCE ( + 56, - 41 ) * - - COUNT( * ) + 15 + CASE + - 61 WHEN 69 * - 36 + 41 - 54 THEN + 29 ELSE COUNT( * ) END + MAX( + 34 ) AS col0
----
-4990

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT - COALESCE ( 90, 53, + 10 ) * + + COALESCE ( + 56, - 41 ) * - - COUNT ( * ) + 15 + CASE + - 61 WHEN 69 * - 36 + 41 - 54 THEN + 29 ELSE COUNT ( * ) END + MAX ( + 34 ) AS col0
----
-4990

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT ALL + - 91 * - 68 * 0 * - + 21 * - + ( ( + COUNT( * ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL + - 91 * - 68 * 0 * - + 21 * - + ( ( + COUNT ( * ) ) ) AS col0
----
0

query I rowsort
SELECT + - ( + + 65 ) + - ( + 48 )
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8157
SELECT DISTINCT - 93 * + + CAST( + + 93 AS SIGNED ) * ( COUNT( * ) ) - - 47 + - + 23 * + 69 * 68 * + 81 AS col1
----
-8749798

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT - 93 * + + CAST ( + + 93 AS INTEGER ) * ( COUNT ( * ) ) - - 47 + - + 23 * + 69 * 68 * + 81 AS col1
----
-8749798

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT DISTINCT 68 DIV - + 74
----
0

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT 68 / - + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT + - COUNT( * ) + - ( + - 95 ) * - 30 * + 2 AS col0
----
-5701

skipif mysql # not compatible
query I rowsort label-8159
SELECT + - COUNT ( * ) + - ( + - 95 ) * - 30 * + 2 AS col0
----
-5701

query I rowsort
SELECT 38 * + - 75 + - 83 - - - 91
----
-3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8161
SELECT + CAST( - CASE - + CAST( NULL AS SIGNED ) WHEN - - NULLIF ( 47, 41 ) / + + 36 + - 53 + + - 44 THEN + 99 * NULLIF ( + 94, 81 ) WHEN + 4 * + 5 + 65 THEN 3 / 50 END AS SIGNED ) + 82 * - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT + CAST ( - CASE - + CAST ( NULL AS INTEGER ) WHEN - - NULLIF ( 47, 41 ) / + + 36 + - 53 + + - 44 THEN + 99 * NULLIF ( + 94, 81 ) WHEN + 4 * + 5 + 65 THEN 3 / 50 END AS INTEGER ) + 82 * - 48 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8162
SELECT ALL - COALESCE ( - + ( 42 ), - + MIN( ALL - 41 ) + - 29 - - CAST( - 9 AS SIGNED ) * - 80 + 96 + - 62 * 10, - COUNT( * ) + 19 + 72 * 98 ) * 4 - + 2 DIV 33
----
168

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL - COALESCE ( - + ( 42 ), - + MIN ( ALL - 41 ) + - 29 - - CAST ( - 9 AS INTEGER ) * - 80 + 96 + - 62 * 10, - COUNT ( * ) + 19 + 72 * 98 ) * 4 - + 2 / 33
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT DISTINCT SUM( - ( - 61 ) )
----
61

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT SUM ( - ( - 61 ) )
----
61

query I rowsort
SELECT + 3 * + 31 + + 60 * + - 42 * 50
----
-125907

query I rowsort
SELECT - + 28 + - + 39
----
-67

query I rowsort
SELECT - - 53 + - ( - 82 )
----
135

query II rowsort
SELECT - 41 * 26 AS col1, + ( 88 )
----
-1066
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8168
SELECT + 11 + - + CASE - MIN( DISTINCT 88 ) WHEN + - COUNT( * ) * - ( - 60 ) THEN NULL WHEN 66 THEN SUM( ALL + + CAST( NULL AS DECIMAL ) ) END + 69 + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT + 11 + - + CASE - MIN ( DISTINCT 88 ) WHEN + - COUNT ( * ) * - ( - 60 ) THEN NULL WHEN 66 THEN SUM ( ALL + + CAST ( NULL AS REAL ) ) END + 69 + 24 AS col1
----
NULL

query I rowsort
SELECT ALL + 58 * 5
----
290

query I rowsort
SELECT + 87 + 68 - - + 0
----
155

query I rowsort
SELECT - 58 * 35 AS col2
----
-2030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8172
SELECT ALL - 68 + + 23 + 66 * - 82 * - 36 - CAST( NULL AS SIGNED ) + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL - 68 + + 23 + 66 * - 82 * - 36 - CAST ( NULL AS INTEGER ) + 69 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - - 34 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL - SUM( DISTINCT + 24 ) * + 50 * + + COUNT( * ) AS col0
----
-1200

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL - SUM ( DISTINCT + 24 ) * + 50 * + + COUNT ( * ) AS col0
----
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8175
SELECT ALL COALESCE ( + - 50, + CAST( + + NULLIF ( - COALESCE ( 95, + 63 + - COUNT( * ) + 97 ), + CAST( NULL AS SIGNED ) / + - MAX( ALL + + 67 ) ) AS SIGNED ) + ( 60 ) ) + - - 54 * + COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL COALESCE ( + - 50, + CAST ( + + NULLIF ( - COALESCE ( 95, + 63 + - COUNT ( * ) + 97 ), + CAST ( NULL AS INTEGER ) / + - MAX ( ALL + + 67 ) ) AS INTEGER ) + ( 60 ) ) + - - 54 * + COUNT ( * ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query III rowsort label-8176
SELECT 51 AS col0, 97 * 16 AS col2, - 79 * - COUNT( * ) + 69 AS col0
----
51
1552
148

skipif mysql # not compatible
query III rowsort label-8176
SELECT 51 AS col0, 97 * 16 AS col2, - 79 * - COUNT ( * ) + 69 AS col0
----
51
1552
148

onlyif mysql # DIV for integer division: 
query I rowsort label-8177
SELECT ALL 39 DIV + 22
----
1

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL 39 / + 22
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8178
SELECT ALL - ( + 85 ) DIV + COUNT( * ) + + MIN( ALL 20 )
----
-65

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL - ( + 85 ) / + COUNT ( * ) + + MIN ( ALL 20 )
----
-65

query I rowsort
SELECT - 15 - + 30
----
-45

query I rowsort
SELECT + ( + + 71 ) AS col1
----
71

query I rowsort
SELECT - 33 * - 29
----
957

query I rowsort
SELECT - 92 * - + 12 AS col0
----
1104

query I rowsort
SELECT + 97 * 74 AS col1
----
7178

query I rowsort
SELECT - 68 * ( - 35 ) AS col0
----
2380

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8185
SELECT ALL 71 DIV - COUNT( * ) + - - 23 * + 97 * + + 93 AS col0, 79
----
207412
79

skipif mysql # not compatible
query II rowsort label-8185
SELECT ALL 71 / - COUNT ( * ) + - - 23 * + 97 * + + 93 AS col0, 79
----
207412
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8186
SELECT COUNT( * ) * + 63 + - 43 DIV - + 50
----
63

skipif mysql # not compatible
query I rowsort label-8186
SELECT COUNT ( * ) * + 63 + - 43 / - + 50
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8187
SELECT ALL + 70 * - SUM( 80 ) * 65 / 7 * - - 30 * + COUNT( * ) * - CASE COUNT( CAST( - - 80 AS SIGNED ) ) WHEN - ( 59 ) THEN NULLIF ( - - COUNT( * ), + 36 * + 17 ) / NULLIF ( - MAX( ALL 12 ) * CAST( + NULLIF ( COUNT( * ), + NULLIF ( 67, + 68 ) * - 81 - 24 ) * 63 + - 32 AS DECIMAL ), ( 73 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL + 70 * - SUM ( 80 ) * 65 / 7 * - - 30 * + COUNT ( * ) * - CASE COUNT ( CAST ( - - 80 AS INTEGER ) ) WHEN - ( 59 ) THEN NULLIF ( - - COUNT ( * ), + 36 * + 17 ) / NULLIF ( - MAX ( ALL 12 ) * CAST ( + NULLIF ( COUNT ( * ), + NULLIF ( 67, + 68 ) * - 81 - 24 ) * 63 + - 32 AS REAL ), ( 73 ) ) END AS col2
----
NULL

query I rowsort
SELECT ALL + + 17 col1
----
17

query I rowsort
SELECT ALL 56 * - 2 col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ALL + - ( - CASE - 43 WHEN - 73 THEN NULL WHEN - COUNT( * ) + 77 THEN + 39 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL + - ( - CASE - 43 WHEN - 73 THEN NULL WHEN - COUNT ( * ) + 77 THEN + 39 END ) AS col2
----
NULL

query I rowsort
SELECT + - 15 + - + 7 * + 27 * + + 72 AS col2
----
-13623

query I rowsort
SELECT + 14 * 48
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT - 55 * 85 + - 42 + 28 + COUNT( * ) + + 10 + - - 35
----
-4643

skipif mysql # not compatible
query I rowsort label-8193
SELECT - 55 * 85 + - 42 + 28 + COUNT ( * ) + + 10 + - - 35
----
-4643

onlyif mysql # aggregate syntax: 
query II rowsort label-8194
SELECT DISTINCT + COUNT( + 55 ) * + + 62 - 8 * + 95, MAX( - + 17 ) AS col2
----
-698
-17

skipif mysql # not compatible
query II rowsort label-8194
SELECT DISTINCT + COUNT ( + 55 ) * + + 62 - 8 * + 95, MAX ( - + 17 ) AS col2
----
-698
-17

query I rowsort
SELECT + 80 * - 11 - - 96 + - 49 * - 90 * + - 16
----
-71344

query I rowsort
SELECT DISTINCT + + 9 - 91
----
-82

query II rowsort
SELECT ALL - 49 col0, - NULLIF ( + - 14, - + 68 ) col1
----
-49
14

query I rowsort
SELECT DISTINCT - 4 * + 42 AS col2
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8199
SELECT ALL - - MIN( ALL + 64 ) * + 18 * - + CAST( - - 86 AS SIGNED ) AS col2
----
-99072

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL - - MIN ( ALL + 64 ) * + 18 * - + CAST ( - - 86 AS INTEGER ) AS col2
----
-99072

query I rowsort
SELECT + ( + 53 ) * + 18 AS col1
----
954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8201
SELECT - 69 - + COUNT( ALL + 51 ) DIV 88 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8201
SELECT - 69 - + COUNT ( ALL + 51 ) / 88 AS col0
----
-69

query I rowsort
SELECT DISTINCT + 86 * + 55 AS col2
----
4730

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8203
SELECT - ( + COUNT( * ) ) * - + 14 + ( - + 22 ) + - - 80 * - 25 + 39, CAST( NULL AS DECIMAL ) AS col2
----
-1969
NULL

skipif mysql # not compatible
query II rowsort label-8203
SELECT - ( + COUNT ( * ) ) * - + 14 + ( - + 22 ) + - - 80 * - 25 + 39, CAST ( NULL AS REAL ) AS col2
----
-1969
NULL

query II rowsort
SELECT 99 AS col0, - 12
----
99
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8205
SELECT - 49, COUNT( * ) AS col1
----
-49
1

skipif mysql # not compatible
query II rowsort label-8205
SELECT - 49, COUNT ( * ) AS col1
----
-49
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT ALL + CASE ( 36 ) WHEN + - 0 THEN - ( + COALESCE ( - MAX( - 20 ), + 53 ) ) END + + 70 + - 85 + - - CAST( + - 17 AS SIGNED ) - - + 79 * - 77 + 34 * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL + CASE ( 36 ) WHEN + - 0 THEN - ( + COALESCE ( - MAX ( - 20 ), + 53 ) ) END + + 70 + - 85 + - - CAST ( + - 17 AS INTEGER ) - - + 79 * - 77 + 34 * 60
----
NULL

query I rowsort
SELECT ALL 40 + + 83 * 61
----
5103

query II rowsort
SELECT 23 AS col1, + ( ( 99 ) )
----
23
99

query I rowsort
SELECT ALL + 0 + 79
----
79

query I rowsort
SELECT 38 * - 29 AS col1
----
-1102

query I rowsort
SELECT ALL - 36 + - 13 col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT ALL - 27 * - MAX( ALL - 76 )
----
-2052

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL - 27 * - MAX ( ALL - 76 )
----
-2052

query II rowsort
SELECT - 20, + 34 AS col0
----
-20
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT 19 + - 48 * + - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-8214
SELECT 19 + - 48 * + - COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8215
SELECT ALL 73 AS col1, - ( + 15 ) * - + COUNT( * )
----
73
15

skipif mysql # not compatible
query II rowsort label-8215
SELECT ALL 73 AS col1, - ( + 15 ) * - + COUNT ( * )
----
73
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT DISTINCT - ( - ( + + CASE - COUNT( * ) WHEN - 95 * + 28 THEN - - 49 WHEN 90 * + 78 THEN - 10 + + 93 / - 11 WHEN + 3 THEN - 52 ELSE NULL END ) ) * 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT - ( - ( + + CASE - COUNT ( * ) WHEN - 95 * + 28 THEN - - 49 WHEN 90 * + 78 THEN - 10 + + 93 / - 11 WHEN + 3 THEN - 52 ELSE NULL END ) ) * 27 AS col2
----
NULL

query I rowsort
SELECT 64 - ( - 15 )
----
79

onlyif mysql # aggregate syntax: 
query III rowsort label-8218
SELECT 23, COUNT( * ) AS col2, - 20 * 89 AS col2
----
23
1
-1780

skipif mysql # not compatible
query III rowsort label-8218
SELECT 23, COUNT ( * ) AS col2, - 20 * 89 AS col2
----
23
1
-1780

query I rowsort
SELECT ALL + 37 + - - 24 * + 42
----
1045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8220
SELECT - 80 * + - ( - + 28 ) + - 94 + - + CASE + 39 WHEN - - ( 52 ) THEN - + 0 + 69 + + + 42 * + 47 / - 69 WHEN COUNT( * ) THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN 68 + + 76 * + 14 END * ( 49 * 14 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT - 80 * + - ( - + 28 ) + - 94 + - + CASE + 39 WHEN - - ( 52 ) THEN - + 0 + 69 + + + 42 * + 47 / - 69 WHEN COUNT ( * ) THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN 68 + + 76 * + 14 END * ( 49 * 14 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8221
SELECT ALL - CASE - CAST( - 12 AS SIGNED ) WHEN - 87 / + + MIN( ALL + 24 ) THEN NULL WHEN + - 34 THEN 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL - CASE - CAST ( - 12 AS INTEGER ) WHEN - 87 / + + MIN ( ALL + 24 ) THEN NULL WHEN + - 34 THEN 19 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8222
SELECT DISTINCT - 10 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT - 10 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8223
SELECT 37 DIV - 48 + + 12
----
12

skipif mysql # not compatible
query I rowsort label-8223
SELECT 37 / - 48 + + 12
----
12

query I rowsort
SELECT DISTINCT - ( - + 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ALL - SUM( ALL - 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL - SUM ( ALL - 31 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT + COUNT( * ) + COUNT( ALL - 69 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8226
SELECT + COUNT ( * ) + COUNT ( ALL - 69 ) AS col2
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-8227
SELECT 5 DIV + 82 AS col2, - 71
----
0
-71

skipif mysql # not compatible
query II rowsort label-8227
SELECT 5 / + 82 AS col2, - 71
----
0
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT 63 * - + MIN( ALL - 31 ) + + 21 * 0 + - MIN( + 34 ) + - + 87 AS col1
----
1832

skipif mysql # not compatible
query I rowsort label-8228
SELECT 63 * - + MIN ( ALL - 31 ) + + 21 * 0 + - MIN ( + 34 ) + - + 87 AS col1
----
1832

query II rowsort
SELECT + 96, + 47 col1
----
96
47

query I rowsort
SELECT ALL - 8 * + - 44
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT SUM( NULLIF ( + 24, - + 8 ) ) * - 36 * + + 84 + + + 97
----
-72479

skipif mysql # not compatible
query I rowsort label-8231
SELECT SUM ( NULLIF ( + 24, - + 8 ) ) * - 36 * + + 84 + + + 97
----
-72479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT ALL - NULLIF ( - COUNT( * ), + NULLIF ( NULLIF ( + 94, + SUM( DISTINCT 11 ) * CASE + 56 WHEN 41 THEN + - 26 - - - 70 ELSE 60 END ), 33 / - 73 + - CAST( - 16 AS SIGNED ) + - 68 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL - NULLIF ( - COUNT ( * ), + NULLIF ( NULLIF ( + 94, + SUM ( DISTINCT 11 ) * CASE + 56 WHEN 41 THEN + - 26 - - - 70 ELSE 60 END ), 33 / - 73 + - CAST ( - 16 AS INTEGER ) + - 68 ) )
----
1

query I rowsort
SELECT 97 * + 28 AS col1
----
2716

query I rowsort
SELECT 84 + ( 23 )
----
107

query I rowsort
SELECT 20 * 5 + + - 17 * + 30 - - ( - 46 )
----
-456

query I rowsort
SELECT 77 * + 96 AS col2
----
7392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8237
SELECT + 50 + - + COUNT( * ) * + CAST( NULL AS SIGNED ) * + + AVG ( - 96 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT + 50 + - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + + AVG ( - 96 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT ALL - 65 + - - 14 * + 89 * + + COUNT( * )
----
1181

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL - 65 + - - 14 * + 89 * + + COUNT ( * )
----
1181

onlyif mysql # aggregate syntax: 
query II rowsort label-8239
SELECT DISTINCT 48 AS col1, 39 * - COUNT( * )
----
48
-39

skipif mysql # not compatible
query II rowsort label-8239
SELECT DISTINCT 48 AS col1, 39 * - COUNT ( * )
----
48
-39

query I rowsort
SELECT ALL ( + 5 ) + 69
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT MAX( DISTINCT + 4 ) + + 90 + - - 96 AS col0
----
190

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT MAX ( DISTINCT + 4 ) + + 90 + - - 96 AS col0
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT DISTINCT + CAST( 96 AS SIGNED ) + + - 47 * + 22 AS col0
----
-938

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT + CAST ( 96 AS INTEGER ) + + - 47 * + 22 AS col0
----
-938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8243
SELECT NULLIF ( 58, + 15 ) * + 99 + + - CAST( - - 58 AS SIGNED ) AS col1
----
5684

skipif mysql # not compatible
query I rowsort label-8243
SELECT NULLIF ( 58, + 15 ) * + 99 + + - CAST ( - - 58 AS INTEGER ) AS col1
----
5684

query II rowsort
SELECT ALL 86 * + 19 AS col2, + NULLIF ( - - 63, 39 )
----
1634
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8245
SELECT 19 * - + 87 AS col0, - COALESCE ( 86, - - CAST( - + 63 AS SIGNED ) )
----
-1653
-86

skipif mysql # not compatible
query II rowsort label-8245
SELECT 19 * - + 87 AS col0, - COALESCE ( 86, - - CAST ( - + 63 AS INTEGER ) )
----
-1653
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8246
SELECT 54 + + + 26 + + MIN( + 48 ) DIV 88 AS col0, 15
----
80
15

skipif mysql # not compatible
query II rowsort label-8246
SELECT 54 + + + 26 + + MIN ( + 48 ) / 88 AS col0, 15
----
80
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT - MAX( ALL ( + 50 ) ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-8247
SELECT - MAX ( ALL ( + 50 ) ) AS col2
----
-50

query I rowsort
SELECT 64 + + 8
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8249
SELECT ALL + CAST( + 35 AS SIGNED ) + + ( + - 95 ) - 83 AS col1, - 79 * - 23 AS col1
----
-143
1817

skipif mysql # not compatible
query II rowsort label-8249
SELECT ALL + CAST ( + 35 AS INTEGER ) + + ( + - 95 ) - 83 AS col1, - 79 * - 23 AS col1
----
-143
1817

query I rowsort
SELECT ALL - 5 - 94 col0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8251
SELECT 44 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT 44 * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8252
SELECT ALL MAX( ALL + 83 ) AS col2, 54 + - 5 DIV - + 67 + 42 AS col0
----
83
96

skipif mysql # not compatible
query II rowsort label-8252
SELECT ALL MAX ( ALL + 83 ) AS col2, 54 + - 5 / - + 67 + 42 AS col0
----
83
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8253
SELECT DISTINCT MAX( ALL - CAST( 24 AS SIGNED ) )
----
-24

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT MAX ( ALL - CAST ( 24 AS INTEGER ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT COUNT( * ) * - ( - 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8254
SELECT COUNT ( * ) * - ( - 34 ) AS col1
----
34

query I rowsort
SELECT 70 * - 14 * + 35 AS col1
----
-34300

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT 74 - MAX( 76 ) + - COUNT( * ) - - 40 * 53 AS col1
----
2117

skipif mysql # not compatible
query I rowsort label-8256
SELECT 74 - MAX ( 76 ) + - COUNT ( * ) - - 40 * 53 AS col1
----
2117

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL - MIN( DISTINCT 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL - MIN ( DISTINCT 4 )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8258
SELECT - 21 * MAX( 37 ) * COUNT( * ) DIV 30 - - COUNT( + + 43 ) * + 85 + + COUNT( * ) * - + COUNT( ALL - 23 ) - - 10 * + + 89 * - 4 * 9 AS col2, 22 AS col2
----
-31981
22

skipif mysql # not compatible
query II rowsort label-8258
SELECT - 21 * MAX ( 37 ) * COUNT ( * ) / 30 - - COUNT ( + + 43 ) * + 85 + + COUNT ( * ) * - + COUNT ( ALL - 23 ) - - 10 * + + 89 * - 4 * 9 AS col2, 22 AS col2
----
-31981
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8259
SELECT 51 * COUNT( * ) - - CAST( 30 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-8259
SELECT 51 * COUNT ( * ) - - CAST ( 30 AS INTEGER )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8260
SELECT DISTINCT + SUM( ALL + - 75 ) * - + 84 AS col1, + 39
----
6300
39

skipif mysql # not compatible
query II rowsort label-8260
SELECT DISTINCT + SUM ( ALL + - 75 ) * - + 84 AS col1, + 39
----
6300
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL + SUM( + + 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + SUM ( + + 69 ) AS col1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8262
SELECT + + 92 DIV - 87 + 38
----
37

skipif mysql # not compatible
query I rowsort label-8262
SELECT + + 92 / - 87 + 38
----
37

query I rowsort
SELECT DISTINCT + 10 * - ( 53 )
----
-530

query II rowsort
SELECT ALL + - ( + 97 ), 35 AS col1
----
-97
35

query I rowsort
SELECT ALL + + ( ( - - 31 ) )
----
31

query II rowsort
SELECT - + 55 * 50 AS col0, 6 AS col0
----
-2750
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT - COALESCE ( - MAX( DISTINCT - 50 ), 86 * - 96, + COUNT( * ) ) + + 17 + + + COUNT( * ) + - 56 col1
----
-88

skipif mysql # not compatible
query I rowsort label-8267
SELECT - COALESCE ( - MAX ( DISTINCT - 50 ), 86 * - 96, + COUNT ( * ) ) + + 17 + + + COUNT ( * ) + - 56 col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL + + CASE + - 10 WHEN - 11 * + 69 / 46 * - MIN( + ( + + 15 ) ) * - 90 * 1 + 82 + + 27 + + ( + 15 ) + - + 36 / + - NULLIF ( + - ( COUNT( * ) ), 18 ) THEN ( - MAX( 82 ) ) - 41 * - 78 WHEN + 34 / - 21 THEN NULL WHEN + COUNT( * ) THEN 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL + + CASE + - 10 WHEN - 11 * + 69 / 46 * - MIN ( + ( + + 15 ) ) * - 90 * 1 + 82 + + 27 + + ( + 15 ) + - + 36 / + - NULLIF ( + - ( COUNT ( * ) ), 18 ) THEN ( - MAX ( 82 ) ) - 41 * - 78 WHEN + 34 / - 21 THEN NULL WHEN + COUNT ( * ) THEN 18 END
----
NULL

query I rowsort
SELECT DISTINCT + - NULLIF ( 89, - 14 * + 30 ) * 50 + 60 AS col0
----
-4390

onlyif mysql # aggregate syntax: 
query II rowsort label-8270
SELECT ALL + 33 * - + SUM( ALL 40 ) + + - 69 + 67, 62 * COUNT( * ) AS col2
----
-1322
62

skipif mysql # not compatible
query II rowsort label-8270
SELECT ALL + 33 * - + SUM ( ALL 40 ) + + - 69 + 67, 62 * COUNT ( * ) AS col2
----
-1322
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT - ( - CAST( NULL AS SIGNED ) ) * - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT - ( - CAST ( NULL AS INTEGER ) ) * - 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT DISTINCT - 61 + - COUNT( * ) * - 37 * + + 22 + - 46
----
707

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT - 61 + - COUNT ( * ) * - 37 * + + 22 + - 46
----
707

query I rowsort
SELECT DISTINCT + 3 * + + 11 * + 31 AS col1
----
1023

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL + COUNT( * ) + + SUM( ALL 40 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL + COUNT ( * ) + + SUM ( ALL 40 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT + 28 * - COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8275
SELECT + 28 * - COUNT ( * ) AS col0
----
-28

query I rowsort
SELECT - 40 - - + 27 AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8277
SELECT DISTINCT MAX( DISTINCT CAST( 33 AS SIGNED ) ) * - COUNT( * ) col1
----
-33

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT MAX ( DISTINCT CAST ( 33 AS INTEGER ) ) * - COUNT ( * ) col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT - 16 - MAX( - 33 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-8278
SELECT - 16 - MAX ( - 33 ) col2
----
17

query I rowsort
SELECT - CASE COALESCE ( + - 23, - 0 * - 2 + + 0, + 10 / 97 + + 86 ) WHEN + 47 + + + 54 THEN NULL ELSE + + 90 END AS col2
----
-90

query I rowsort
SELECT - 93 + - + ( - 1 ) * + 20 AS col0
----
-73

query I rowsort
SELECT ALL 80 - 28
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT ALL ( - COUNT( - + 59 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL ( - COUNT ( - + 59 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8283
SELECT + MAX( 36 ) - + 87 AS col1, 95 + - 93 + 43 + + MIN( DISTINCT + ( - - COALESCE ( - + 33, - 76 ) ) ) * + 50 + + ( - - 70 ) DIV + 97 + - 32 AS col0
----
-51
-1637

skipif mysql # not compatible
query II rowsort label-8283
SELECT + MAX ( 36 ) - + 87 AS col1, 95 + - 93 + 43 + + MIN ( DISTINCT + ( - - COALESCE ( - + 33, - 76 ) ) ) * + 50 + + ( - - 70 ) / + 97 + - 32 AS col0
----
-51
-1637

query I rowsort
SELECT ALL 74 * + 10
----
740

query I rowsort
SELECT ALL 44 - - 51
----
95

query I rowsort
SELECT - ( + + 65 )
----
-65

query I rowsort
SELECT + 26 + 79 - - + ( + - 15 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT + ( + 62 ) * + COUNT( * ) * + - 91 AS col2
----
-5642

skipif mysql # not compatible
query I rowsort label-8288
SELECT + ( + 62 ) * + COUNT ( * ) * + - 91 AS col2
----
-5642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8289
SELECT ALL 38 * + CAST( 2 AS SIGNED ) col0
----
76

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL 38 * + CAST ( 2 AS INTEGER ) col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT + 3 + - + NULLIF ( MIN( + - 72 ), - 94 ) * 22 AS col2
----
1587

skipif mysql # not compatible
query I rowsort label-8290
SELECT + 3 + - + NULLIF ( MIN ( + - 72 ), - 94 ) * 22 AS col2
----
1587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8291
SELECT + COUNT( * ) * CAST( - MIN( + 86 ) AS SIGNED ) * - 29 + + 52 * - + 77 * + - 19 AS col2
----
78570

skipif mysql # not compatible
query I rowsort label-8291
SELECT + COUNT ( * ) * CAST ( - MIN ( + 86 ) AS INTEGER ) * - 29 + + 52 * - + 77 * + - 19 AS col2
----
78570

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT - COALESCE ( COUNT( * ), + 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8292
SELECT - COALESCE ( COUNT ( * ), + 67 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8293
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT + 20 DIV 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8294
SELECT + 20 / 30 AS col1
----
0

query II rowsort
SELECT ALL + 22 AS col2, 57
----
22
57

query I rowsort
SELECT + 33 * CASE + AVG ( + - 28 ) WHEN - - 74 THEN 80 WHEN - 19 * + 78 + + + 14 THEN 22 ELSE + + 2 END AS col2
----
66

query I rowsort
SELECT ALL 3 * 13 + + 52 col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8298
SELECT ALL + CASE + COUNT( + 44 ) WHEN + + 25 - + - CAST( NULL AS SIGNED ) + + 60 THEN - 34 WHEN + 20 + - + 58 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL + CASE + COUNT ( + 44 ) WHEN + + 25 - + - CAST ( NULL AS INTEGER ) + + 60 THEN - 34 WHEN + 20 + - + 58 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT + CASE - - COUNT( * ) WHEN - + 86 + - 55 THEN + + AVG ( + 16 ) * 51 + - ( + 86 ) * - AVG ( DISTINCT - - 67 ) WHEN - 47 + + - 83 THEN NULL ELSE + 45 + - - 14 END
----
59

skipif mysql # not compatible
query I rowsort label-8299
SELECT + CASE - - COUNT ( * ) WHEN - + 86 + - 55 THEN + + AVG ( + 16 ) * 51 + - ( + 86 ) * - AVG ( DISTINCT - - 67 ) WHEN - 47 + + - 83 THEN NULL ELSE + 45 + - - 14 END
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8300
SELECT CAST( - 2 AS SIGNED ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-8300
SELECT CAST ( - 2 AS INTEGER ) col0
----
-2

query I rowsort
SELECT ALL + - 85 * - 88 AS col2
----
7480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8302
SELECT + - 1 * + 63 / CASE - COUNT( * ) WHEN 31 * + ( + + CAST( NULL AS SIGNED ) ) THEN + COUNT( * ) * + 55 + - - CAST( + 54 AS SIGNED ) + 17 - + CAST( + 17 AS DECIMAL ) + - 79 + + ( - 64 ) * - - 9 * 96 * 18 ELSE NULL END * 72 + - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT + - 1 * + 63 / CASE - COUNT ( * ) WHEN 31 * + ( + + CAST ( NULL AS INTEGER ) ) THEN + COUNT ( * ) * + 55 + - - CAST ( + 54 AS INTEGER ) + 17 - + CAST ( + 17 AS REAL ) + - 79 + + ( - 64 ) * - - 9 * 96 * 18 ELSE NULL END * 72 + - 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT - 5 * COUNT( DISTINCT - ( + 6 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-8303
SELECT - 5 * COUNT ( DISTINCT - ( + 6 ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT DISTINCT - + NULLIF ( 79, - - 52 ) * MAX( ALL - 45 ) + - + 62 AS col2
----
3493

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT - + NULLIF ( 79, - - 52 ) * MAX ( ALL - 45 ) + - + 62 AS col2
----
3493

query I rowsort
SELECT ALL + - ( + 61 ) * 96 + - 2
----
-5858

query I rowsort
SELECT COALESCE ( - 67, 73 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT DISTINCT COUNT( * ) * - + 60 + - SUM( 82 ) * - 69 - 71 - 8 - + 21
----
5498

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT COUNT ( * ) * - + 60 + - SUM ( 82 ) * - 69 - 71 - 8 - + 21
----
5498

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT ALL + 93, - CASE - NULLIF ( + 6, 58 ) WHEN - COUNT( * ) THEN - - 39 * + SUM( + 90 ) + 70 + ( - + 87 ) * + 29 * - + 76 / - - 19 + - + 58 WHEN - - AVG ( ALL - 43 ) * + CASE COUNT( * ) / 43 WHEN 52 / - COUNT( * ) THEN 32 END - - 99 THEN - 0 * - 92 END AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-8308
SELECT ALL + 93, - CASE - NULLIF ( + 6, 58 ) WHEN - COUNT ( * ) THEN - - 39 * + SUM ( + 90 ) + 70 + ( - + 87 ) * + 29 * - + 76 / - - 19 + - + 58 WHEN - - AVG ( ALL - 43 ) * + CASE COUNT ( * ) / 43 WHEN 52 / - COUNT ( * ) THEN 32 END - - 99 THEN - 0 * - 92 END AS col1
----
93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT - - COUNT( 42 ) + - + 31
----
-30

skipif mysql # not compatible
query I rowsort label-8309
SELECT - - COUNT ( 42 ) + - + 31
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT ALL + + SUM( ALL - 20 ) * - 96 + + - 39 * + ( 66 ) + 3 + - CASE 3 WHEN - + 12 THEN - 29 * + - COUNT( * ) / + 37 WHEN COUNT( * ) - COALESCE ( + + 15, - 72 ) + 74 THEN NULL WHEN ( 68 ) / - 83 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL + + SUM ( ALL - 20 ) * - 96 + + - 39 * + ( 66 ) + 3 + - CASE 3 WHEN - + 12 THEN - 29 * + - COUNT ( * ) / + 37 WHEN COUNT ( * ) - COALESCE ( + + 15, - 72 ) + 74 THEN NULL WHEN ( 68 ) / - 83 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8311
SELECT - 75 * + - SUM( - - 52 ) + CAST( 0 AS SIGNED ) AS col1
----
3900

skipif mysql # not compatible
query I rowsort label-8311
SELECT - 75 * + - SUM ( - - 52 ) + CAST ( 0 AS INTEGER ) AS col1
----
3900

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8312
SELECT - 0 * 91 DIV CAST( - 42 AS SIGNED ) + - 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8312
SELECT - 0 * 91 / CAST ( - 42 AS INTEGER ) + - 6 AS col2
----
-6

query I rowsort
SELECT NULLIF ( - 43, + 60 )
----
-43

query I rowsort
SELECT 68 * - 18 - + 76
----
-1300

query I rowsort
SELECT - 81 * 98
----
-7938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8316
SELECT ALL - CAST( + 50 AS SIGNED ) DIV - + 30 + COUNT( * ) AS col2, - COALESCE ( - COUNT( * ), CAST( 47 AS SIGNED ), - 18 + - - 51 ) + - + NULLIF ( 75, 82 ) - - + COUNT( * ) * + 39 AS col1
----
2
-35

skipif mysql # not compatible
query II rowsort label-8316
SELECT ALL - CAST ( + 50 AS INTEGER ) / - + 30 + COUNT ( * ) AS col2, - COALESCE ( - COUNT ( * ), CAST ( 47 AS INTEGER ), - 18 + - - 51 ) + - + NULLIF ( 75, 82 ) - - + COUNT ( * ) * + 39 AS col1
----
2
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-8317
SELECT ALL - 44 * - - ( 32 ) - + 58 col1, 80 - + - MIN( - 58 )
----
-1466
22

skipif mysql # not compatible
query II rowsort label-8317
SELECT ALL - 44 * - - ( 32 ) - + 58 col1, 80 - + - MIN ( - 58 )
----
-1466
22

query I rowsort
SELECT - 45 * + 99 * + 27 * - ( - + 83 ) AS col2
----
-9983655

query I rowsort
SELECT DISTINCT + 88 * + 73 * + 30
----
192720

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT + ( + NULLIF ( ( - + 47 ), 76 / - + COUNT( * ) + AVG ( 95 ) ) ) * + 15 * + 29 AS col1
----
-20445

skipif mysql # not compatible
query I rowsort label-8320
SELECT + ( + NULLIF ( ( - + 47 ), 76 / - + COUNT ( * ) + AVG ( 95 ) ) ) * + 15 * + 29 AS col1
----
-20445

query II rowsort
SELECT ALL + 79 * - 20 AS col1, - 69 * + + 19 * - 64 + + - 7 AS col0
----
-1580
83897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8322
SELECT + ( - + ( + - 79 ) ) + - 9 * + 54 - - - COALESCE ( - + 57, - MAX( ALL + 39 ) ) + 47 * - + ( CAST( - + 94 AS SIGNED ) ) AS col0
----
4068

skipif mysql # not compatible
query I rowsort label-8322
SELECT + ( - + ( + - 79 ) ) + - 9 * + 54 - - - COALESCE ( - + 57, - MAX ( ALL + 39 ) ) + 47 * - + ( CAST ( - + 94 AS INTEGER ) ) AS col0
----
4068

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT + MIN( - 99 ) + 61 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-8323
SELECT + MIN ( - 99 ) + 61 AS col1
----
-38

query I rowsort
SELECT CASE - + 97 WHEN - + 3 + 39 THEN COALESCE ( + 57, + 92 ) * 44 END * + 35 * 14 * + 29 AS col0
----
NULL

query I rowsort
SELECT ALL - + 58 + - + 65
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL + SUM( ALL + 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL + SUM ( ALL + 77 ) AS col1
----
77

query I rowsort
SELECT + 44 * + ( - 49 )
----
-2156

onlyif mysql # aggregate syntax: 
query II rowsort label-8328
SELECT ALL SUM( - 4 ), COUNT( * ) AS col0
----
-4
1

skipif mysql # not compatible
query II rowsort label-8328
SELECT ALL SUM ( - 4 ), COUNT ( * ) AS col0
----
-4
1

query I rowsort
SELECT - COALESCE ( - + 60, - 5 ) AS col2
----
60

query I rowsort
SELECT ALL 37 + - 53 + + - 13
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8331
SELECT - 20 DIV COUNT( * ) AS col2, + 42 * + SUM( + 17 ) * + CAST( NULL AS SIGNED ) - - 71 col1
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-8331
SELECT - 20 / COUNT ( * ) AS col2, + 42 * + SUM ( + 17 ) * + CAST ( NULL AS INTEGER ) - - 71 col1
----
-20
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8332
SELECT CAST( NULL AS SIGNED ) / 93 + - + ( + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT CAST ( NULL AS INTEGER ) / 93 + - + ( + 60 )
----
NULL

query I rowsort
SELECT DISTINCT - 27 + 65 + + 95 + + + 35 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT + 3 + - + MIN( DISTINCT - 21 )
----
24

skipif mysql # not compatible
query I rowsort label-8334
SELECT + 3 + - + MIN ( DISTINCT - 21 )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8335
SELECT 29 * 73 * + COUNT( * ) + 65 - + 24 DIV 9 AS col1
----
2180

skipif mysql # not compatible
query I rowsort label-8335
SELECT 29 * 73 * + COUNT ( * ) + 65 - + 24 / 9 AS col1
----
2180

query I rowsort
SELECT ALL - 78 + + 16
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8337
SELECT + COUNT( * ) * - - COUNT( * ) + - 14 + + 19, + 37 AS col2
----
6
37

skipif mysql # not compatible
query II rowsort label-8337
SELECT + COUNT ( * ) * - - COUNT ( * ) + - 14 + + 19, + 37 AS col2
----
6
37

query I rowsort
SELECT DISTINCT 26 + 19
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8339
SELECT DISTINCT - 45 + + 74 - ( - + 34 ) DIV - 4 * + - COUNT( * ) + - + 31 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8339
SELECT DISTINCT - 45 + + 74 - ( - + 34 ) / - 4 * + - COUNT ( * ) + - + 31 AS col1
----
6

query I rowsort
SELECT 21 - - 15 + NULLIF ( + + 67, 87 ) + NULLIF ( - 14, - + 20 ) * 9 * + + 74
----
-9221

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT COUNT( * ) + + 74 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-8341
SELECT COUNT ( * ) + + 74 AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8342
SELECT + 44, - CAST( NULL AS SIGNED ) * + AVG ( ALL - + 42 ) * + - ( - 33 ) AS col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-8342
SELECT + 44, - CAST ( NULL AS INTEGER ) * + AVG ( ALL - + 42 ) * + - ( - 33 ) AS col1
----
44
NULL

query I rowsort
SELECT ALL - 37 - 40 + - - 20 col2
----
-57

query I rowsort
SELECT ALL + ( + 45 ) * 31
----
1395

query I rowsort
SELECT 35 * - + 29
----
-1015

query I rowsort
SELECT DISTINCT - 64 * 64 AS col2
----
-4096

query I rowsort
SELECT DISTINCT 10 * - 99 AS col0
----
-990

query II rowsort
SELECT DISTINCT - COALESCE ( - 92, + - 25 ) AS col1, + 6 * - - 68
----
92
408

query II rowsort
SELECT ALL 65 AS col2, 55
----
65
55

query I rowsort
SELECT DISTINCT - ( - + 15 ) * - + 70 col0
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ( COUNT( * ) ) - + 5
----
-4

skipif mysql # not compatible
query I rowsort label-8351
SELECT ( COUNT ( * ) ) - + 5
----
-4

query I rowsort
SELECT 73 * + - 44 AS col1
----
-3212

query II rowsort
SELECT 60 * - 16 * 58, + CASE - 56 WHEN - 64 THEN + - 96 * - - 41 + + 49 ELSE - 59 END * - 46 + - + 85 AS col1
----
-55680
2629

query II rowsort
SELECT 24, - 1 AS col0
----
24
-1

query I rowsort
SELECT ALL + 48 + - 68 * 16 + + + ( 87 ) AS col0
----
-953

query I rowsort
SELECT 95 + + 27 AS col1
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8357
SELECT DISTINCT - + 81 + - + 11 * - 72 * - 45 + + - NULLIF ( + 87, - 2 ) + + MAX( + + CAST( NULL AS SIGNED ) ) + - + 7 AS col2, - 73 AS col1
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-8357
SELECT DISTINCT - + 81 + - + 11 * - 72 * - 45 + + - NULLIF ( + 87, - 2 ) + + MAX ( + + CAST ( NULL AS INTEGER ) ) + - + 7 AS col2, - 73 AS col1
----
NULL
-73

query I rowsort
SELECT 28 + ( 22 ) * 41 AS col0
----
930

onlyif mysql # aggregate syntax: 
query II rowsort label-8359
SELECT - 9 + - COUNT( * ) + - - COUNT( * ) AS col1, 90 col1
----
-9
90

skipif mysql # not compatible
query II rowsort label-8359
SELECT - 9 + - COUNT ( * ) + - - COUNT ( * ) AS col1, 90 col1
----
-9
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8360
SELECT ALL - CAST( ( + - 98 ) AS SIGNED ) * + 67 - + 83 AS col2, - 64 + CAST( NULL AS DECIMAL ) - 69 + + COUNT( * ) * 74 / + 4 * + - 50 + ( + 34 ) * - + 13 * + CAST( NULL AS DECIMAL ) + - 12 * + 55 AS col0
----
6483
NULL

skipif mysql # not compatible
query II rowsort label-8360
SELECT ALL - CAST ( ( + - 98 ) AS INTEGER ) * + 67 - + 83 AS col2, - 64 + CAST ( NULL AS REAL ) - 69 + + COUNT ( * ) * 74 / + 4 * + - 50 + ( + 34 ) * - + 13 * + CAST ( NULL AS REAL ) + - 12 * + 55 AS col0
----
6483
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8361
SELECT ALL + - 39 + - 63 DIV 31 + + 20 col0
----
-21

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL + - 39 + - 63 / 31 + + 20 col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT DISTINCT SUM( DISTINCT - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT SUM ( DISTINCT - 94 )
----
-94

query I rowsort
SELECT ALL - - 84 * - 28 + - + 91 + + 21
----
-2422

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT 43 * CASE + 29 WHEN - - COUNT( * ) + 54 - + + 22 * - 71 * 84 * + + 40 THEN - 96 / + 40 END + - + 74 + + 97 / 22 + 24 / - COALESCE ( - - COUNT( * ), COUNT( ALL - 77 ) ) * + - CASE COUNT( * ) WHEN - CASE + 24 WHEN 5 + 97 THEN NULL WHEN 40 THEN 78 ELSE 69 + - NULLIF ( + ( ( + ( + 6 ) ) ) + - 40, 46 ) END * 69 + 23 THEN NULL ELSE 20 * 95 END / 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8364
SELECT 43 * CASE + 29 WHEN - - COUNT ( * ) + 54 - + + 22 * - 71 * 84 * + + 40 THEN - 96 / + 40 END + - + 74 + + 97 / 22 + 24 / - COALESCE ( - - COUNT ( * ), COUNT ( ALL - 77 ) ) * + - CASE COUNT ( * ) WHEN - CASE + 24 WHEN 5 + 97 THEN NULL WHEN 40 THEN 78 ELSE 69 + - NULLIF ( + ( ( + ( + 6 ) ) ) + - 40, 46 ) END * 69 + 23 THEN NULL ELSE 20 * 95 END / 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8365
SELECT - + SUM( ALL - + 6 ) DIV + 63 + - - 82 * - ( + 86 ) + + - 50
----
-7102

skipif mysql # not compatible
query I rowsort label-8365
SELECT - + SUM ( ALL - + 6 ) / + 63 + - - 82 * - ( + 86 ) + + - 50
----
-7102

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT DISTINCT - 4 DIV + - 86
----
0

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT - 4 / + - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT - + 99 * - 67 - - COUNT( * ) + + + 17 * 1
----
6651

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT - + 99 * - 67 - - COUNT ( * ) + + + 17 * 1
----
6651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8368
SELECT - COUNT( * ) * - + 77 DIV - - 28 + + + 99
----
101

skipif mysql # not compatible
query I rowsort label-8368
SELECT - COUNT ( * ) * - + 77 / - - 28 + + + 99
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-8369
SELECT COUNT( DISTINCT - 30 ) AS col1, - 15 * NULLIF ( 9, - 5 ) * - SUM( - 27 ) AS col0
----
1
-3645

skipif mysql # not compatible
query II rowsort label-8369
SELECT COUNT ( DISTINCT - 30 ) AS col1, - 15 * NULLIF ( 9, - 5 ) * - SUM ( - 27 ) AS col0
----
1
-3645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8370
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT DISTINCT - MAX( ALL + - 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT - MAX ( ALL + - 31 ) AS col1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT CAST( NULL AS SIGNED ) * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT CAST ( NULL AS INTEGER ) * - 25
----
NULL

query I rowsort
SELECT 44 + ( - 6 ) col0
----
38

query I rowsort
SELECT ALL 69 * 80 AS col1
----
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT CASE + 90 WHEN - - 89 * + ( + 69 ) + + 42 THEN 50 WHEN - - 90 - 94 + 7 - 86 + - + ( 51 ) + - CASE + + 31 WHEN - + MIN( ALL 12 ) THEN NULL WHEN - - NULLIF ( + + COUNT( * ), - 80 ) THEN - + COALESCE ( 6, 56 + 20 ) + 56 END * - 46 * + MIN( + 27 ) THEN - 63 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT CASE + 90 WHEN - - 89 * + ( + 69 ) + + 42 THEN 50 WHEN - - 90 - 94 + 7 - 86 + - + ( 51 ) + - CASE + + 31 WHEN - + MIN ( ALL 12 ) THEN NULL WHEN - - NULLIF ( + + COUNT ( * ), - 80 ) THEN - + COALESCE ( 6, 56 + 20 ) + 56 END * - 46 * + MIN ( + 27 ) THEN - 63 END + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8376
SELECT ALL - 99, 0 DIV - 84 * 13 + 53 + 12 col1
----
-99
65

skipif mysql # not compatible
query II rowsort label-8376
SELECT ALL - 99, 0 / - 84 * 13 + 53 + 12 col1
----
-99
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT 34 + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-8377
SELECT 34 + + COUNT ( * )
----
35

query I rowsort
SELECT + COALESCE ( 31, - 51 )
----
31

query I rowsort
SELECT NULLIF ( + - 10, - 19 ) + - + 97 AS col1
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8380
SELECT + 72 * + + 33 * NULLIF ( 35, + 72 / 80 ) + + + 8 * + - 21 * - 38 + 11 * CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT + 72 * + + 33 * NULLIF ( 35, + 72 / 80 ) + + + 8 * + - 21 * - 38 + 11 * CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT + 80 * NULLIF ( - MIN( DISTINCT + 87 ), + 97 ) * - NULLIF ( - + 89, + + 50 )
----
-619440

skipif mysql # not compatible
query I rowsort label-8381
SELECT + 80 * NULLIF ( - MIN ( DISTINCT + 87 ), + 97 ) * - NULLIF ( - + 89, + + 50 )
----
-619440

query I rowsort
SELECT - 86 + 80 * - ( - 81 )
----
6394

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT 21 + + 1 + + + 94 + - COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT 21 + + 1 + + + 94 + - COUNT ( * )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT - 50 + MAX( ALL 55 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8384
SELECT - 50 + MAX ( ALL 55 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8385
SELECT ALL 55 * - 25 * COUNT( * ) * - 83 AS col2, + 0
----
114125
0

skipif mysql # not compatible
query II rowsort label-8385
SELECT ALL 55 * - 25 * COUNT ( * ) * - 83 AS col2, + 0
----
114125
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8386
SELECT - CAST( NULL AS SIGNED ) + - 60 + + ( + 13 ) / + ( - CASE - 34 WHEN + 36 THEN - 99 END ) + + 15 + + 36 * - SUM( ALL 3 ) * - + 84 * - + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT - CAST ( NULL AS INTEGER ) + - 60 + + ( + 13 ) / + ( - CASE - 34 WHEN + 36 THEN - 99 END ) + + 15 + + 36 * - SUM ( ALL 3 ) * - + 84 * - + 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL CASE + - 77 WHEN 48 THEN + + 5 * 42 + - + COALESCE ( + 53, - 43 ) WHEN - MIN( - + 80 ) THEN NULL WHEN 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL CASE + - 77 WHEN 48 THEN + + 5 * 42 + - + COALESCE ( + 53, - 43 ) WHEN - MIN ( - + 80 ) THEN NULL WHEN 63 THEN NULL END
----
NULL

query II rowsort
SELECT + 15 AS col2, + 56
----
15
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8389
SELECT + - ( - CAST( NULL AS SIGNED ) ) * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT + - ( - CAST ( NULL AS INTEGER ) ) * + 5
----
NULL

query I rowsort
SELECT DISTINCT - 60 + + 65
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8391
SELECT - - CAST( NULL AS SIGNED ) / 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT - - CAST ( NULL AS INTEGER ) / 6 AS col2
----
NULL

query I rowsort
SELECT - + 33 + CASE - 23 WHEN - 4 THEN - - ( - 25 ) END * 82
----
NULL

query I rowsort
SELECT - 2 * - NULLIF ( 73, AVG ( COALESCE ( + 62, - + 86 ) ) + + ( 5 ) + + 68 ) AS col2
----
146

query I rowsort
SELECT ALL - ( + + 48 ) + + 75 col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL + + COALESCE ( + - SUM( DISTINCT - 80 ), - - 41, - 33 ) - + - NULLIF ( 9, - - COUNT( * ) * + 17 ) * + - 65 AS col2
----
-505

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL + + COALESCE ( + - SUM ( DISTINCT - 80 ), - - 41, - 33 ) - + - NULLIF ( 9, - - COUNT ( * ) * + 17 ) * + - 65 AS col2
----
-505

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT - 29 DIV + 3 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8396
SELECT - 29 / + 3 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT ALL + + ( 54 ) DIV + 63 * 46 * - 5
----
0

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL + + ( 54 ) / + 63 * 46 * - 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT - - 56 + - + MAX( ALL + 4 )
----
52

skipif mysql # not compatible
query I rowsort label-8398
SELECT - - 56 + - + MAX ( ALL + 4 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT - 43 * - + NULLIF ( SUM( DISTINCT - 15 ), + - 66 * + NULLIF ( - COUNT( * ), + - 75 ) )
----
-645

skipif mysql # not compatible
query I rowsort label-8399
SELECT - 43 * - + NULLIF ( SUM ( DISTINCT - 15 ), + - 66 * + NULLIF ( - COUNT ( * ), + - 75 ) )
----
-645

query II rowsort
SELECT 57 AS col2, 54 AS col2
----
57
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL - - 74 * + + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL - - 74 * + + COUNT ( * ) AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8402
SELECT ALL + - 11 - - COUNT( DISTINCT CAST( + 56 AS SIGNED ) ) * + 17 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL + - 11 - - COUNT ( DISTINCT CAST ( + 56 AS INTEGER ) ) * + 17 AS col1
----
6

query II rowsort
SELECT ALL - - 98 * + - 24 AS col0, 16 * + 64
----
-2352
1024

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT + COUNT( * ), + 35 * + + COUNT( * ) * - 55 * - - 7 * - 94 * + + 76 AS col1
----
1
96265400

skipif mysql # not compatible
query II rowsort label-8404
SELECT + COUNT ( * ), + 35 * + + COUNT ( * ) * - 55 * - - 7 * - 94 * + + 76 AS col1
----
1
96265400

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT + + COUNT( - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT + + COUNT ( - 27 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8406
SELECT + COALESCE ( + CAST( 89 AS SIGNED ), - - 45, - - 46 ) - + 99 + + MAX( DISTINCT - 13 ) * + + 3
----
-49

skipif mysql # not compatible
query I rowsort label-8406
SELECT + COALESCE ( + CAST ( 89 AS INTEGER ), - - 45, - - 46 ) - + 99 + + MAX ( DISTINCT - 13 ) * + + 3
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8407
SELECT - 10 DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-8407
SELECT - 10 / 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT + COUNT( * ) * + 97 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8408
SELECT + COUNT ( * ) * + 97 AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT ALL + 47 DIV - - 15 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL + 47 / - - 15 AS col2
----
3

query I rowsort
SELECT NULLIF ( - 25, 22 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT + COALESCE ( - + ( 29 ), CASE + + COUNT( * ) WHEN + COUNT( * ) / 32 + - CASE + AVG ( + - 94 ) WHEN + 95 THEN - 33 + + + COUNT( * ) END + ( 80 ) + + 38 + 19 * COALESCE ( + 8, 67 + - 82 ) + + 10 THEN NULL WHEN 26 + - 25 THEN 65 END ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-8411
SELECT + COALESCE ( - + ( 29 ), CASE + + COUNT ( * ) WHEN + COUNT ( * ) / 32 + - CASE + AVG ( + - 94 ) WHEN + 95 THEN - 33 + + + COUNT ( * ) END + ( 80 ) + + 38 + 19 * COALESCE ( + 8, 67 + - 82 ) + + 10 THEN NULL WHEN 26 + - 25 THEN 65 END ) AS col1
----
-29

query II rowsort
SELECT + ( - 19 ) AS col0, 71
----
-19
71

query I rowsort
SELECT ALL 74 * 7 AS col0
----
518

query I rowsort
SELECT + 56 * - ( 17 ) col1
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL COUNT( * ) * - + 54 + 21 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL COUNT ( * ) * - + 54 + 21 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT + ( + - 48 ) * COUNT( - - 72 ) + - 83
----
-131

skipif mysql # not compatible
query I rowsort label-8416
SELECT + ( + - 48 ) * COUNT ( - - 72 ) + - 83
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8417
SELECT DISTINCT SUM( ALL CAST( NULL AS SIGNED ) ) / ( - - 98 ) / + + 13 + + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT SUM ( ALL CAST ( NULL AS INTEGER ) ) / ( - - 98 ) / + + 13 + + - 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8418
SELECT DISTINCT 92 * 59 * - 38 + + CAST( NULL AS SIGNED ) + 14, 37 * + 5 AS col2
----
NULL
185

skipif mysql # not compatible
query II rowsort label-8418
SELECT DISTINCT 92 * 59 * - 38 + + CAST ( NULL AS INTEGER ) + 14, 37 * + 5 AS col2
----
NULL
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT COUNT( ALL 1 )
----
1

skipif mysql # not compatible
query I rowsort label-8419
SELECT COUNT ( ALL 1 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8420
SELECT ALL 67 * - - 25 + 85 + + - COUNT( * ) DIV + 55 col0
----
1760

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL 67 * - - 25 + 85 + + - COUNT ( * ) / + 55 col0
----
1760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8421
SELECT + ( - - CASE - 8 WHEN + - 42 THEN COUNT( * ) DIV - 14 * + 1 ELSE + + 39 - COALESCE ( - 64, + + 31 ) END ) + 27
----
130

skipif mysql # not compatible
query I rowsort label-8421
SELECT + ( - - CASE - 8 WHEN + - 42 THEN COUNT ( * ) / - 14 * + 1 ELSE + + 39 - COALESCE ( - 64, + + 31 ) END ) + 27
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT COUNT( - 74 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8422
SELECT COUNT ( - 74 ) AS col2
----
1

query I rowsort
SELECT - 43 * - 3 - + 81 + - 89
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT - + 37 * COUNT( * ) + + 36
----
-1

skipif mysql # not compatible
query I rowsort label-8424
SELECT - + 37 * COUNT ( * ) + + 36
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8425
SELECT + - CASE - + CASE + COUNT( ALL 17 ) WHEN - + 22 + - - COALESCE ( + 34, 62 + - CAST( NULL AS SIGNED ) / - - COUNT( * ) ) + - 29 + - 37 THEN - - 72 * - 27 END WHEN NULLIF ( - 6, + 16 / 78 + 75 ) THEN + - 69 * + 74 ELSE + 32 * - 68 END + 80
----
2256

skipif mysql # not compatible
query I rowsort label-8425
SELECT + - CASE - + CASE + COUNT ( ALL 17 ) WHEN - + 22 + - - COALESCE ( + 34, 62 + - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) ) + - 29 + - 37 THEN - - 72 * - 27 END WHEN NULLIF ( - 6, + 16 / 78 + 75 ) THEN + - 69 * + 74 ELSE + 32 * - 68 END + 80
----
2256

query I rowsort
SELECT + + 93 + - 59 + + 80 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT + COUNT( * ) + - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8427
SELECT + COUNT ( * ) + - - COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT + - 15 * - COUNT( * ) * + COUNT( ALL + 27 ) + - + NULLIF ( - - CAST( - AVG ( DISTINCT - 57 ) AS SIGNED ), 17 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-8428
SELECT + - 15 * - COUNT ( * ) * + COUNT ( ALL + 27 ) + - + NULLIF ( - - CAST ( - AVG ( DISTINCT - 57 ) AS INTEGER ), 17 ) AS col2
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-8429
SELECT - - 10 * + 88 - 82 AS col1, 2 DIV 30 + - - 67
----
798
67

skipif mysql # not compatible
query II rowsort label-8429
SELECT - - 10 * + 88 - 82 AS col1, 2 / 30 + - - 67
----
798
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT - - COUNT( + 73 ) + + 27 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8430
SELECT - - COUNT ( + 73 ) + + 27 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT - - SUM( DISTINCT - 48 ) - - 12
----
-36

skipif mysql # not compatible
query I rowsort label-8431
SELECT - - SUM ( DISTINCT - 48 ) - - 12
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - ( COUNT( * ) ) - - + 52
----
51

skipif mysql # not compatible
query I rowsort label-8432
SELECT - ( COUNT ( * ) ) - - + 52
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8433
SELECT - 29 DIV COUNT( * ) * - + 17 AS col2, 56 AS col0
----
493
56

skipif mysql # not compatible
query II rowsort label-8433
SELECT - 29 / COUNT ( * ) * - + 17 AS col2, 56 AS col0
----
493
56

query I rowsort
SELECT ALL - 51 * - 51 AS col1
----
2601

query II rowsort
SELECT ALL + 89, 65 AS col0
----
89
65

query I rowsort
SELECT - 28 + 26
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT - 14 * + 71 + - COUNT( * ) * + + 42 * - 7 * + 65
----
18116

skipif mysql # not compatible
query I rowsort label-8437
SELECT - 14 * + 71 + - COUNT ( * ) * + + 42 * - 7 * + 65
----
18116

query II rowsort
SELECT + 6, + 21 AS col2
----
6
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8439
SELECT + 7 AS col2, 15 * - - COUNT( * ) AS col1
----
7
15

skipif mysql # not compatible
query II rowsort label-8439
SELECT + 7 AS col2, 15 * - - COUNT ( * ) AS col1
----
7
15

query II rowsort
SELECT ALL - 18 AS col2, 70 * - - 26
----
-18
1820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8441
SELECT + 1 * COUNT( * ) + + - 36 DIV + 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8441
SELECT + 1 * COUNT ( * ) + + - 36 / + 20 AS col0
----
0

query I rowsort
SELECT DISTINCT - 70 + 68 * - + 46 * - 92
----
287706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8443
SELECT ALL + 16 + + - NULLIF ( + CAST( + CAST( + + ( - COUNT( * ) ) AS SIGNED ) AS SIGNED ), - 98 * COUNT( * ) ) * + - 37 * 13 + + 29 AS col2, + 63 + + 41 col2
----
-436
104

skipif mysql # not compatible
query II rowsort label-8443
SELECT ALL + 16 + + - NULLIF ( + CAST ( + CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) AS INTEGER ), - 98 * COUNT ( * ) ) * + - 37 * 13 + + 29 AS col2, + 63 + + 41 col2
----
-436
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8444
SELECT + ( - CAST( NULL AS SIGNED ) ) / - + 38 * + + COUNT( * ) + - 1 + 56 + - AVG ( ALL - 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT + ( - CAST ( NULL AS INTEGER ) ) / - + 38 * + + COUNT ( * ) + - 1 + 56 + - AVG ( ALL - 46 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 43 * + - NULLIF ( + 83, 49 + - + ( - 99 ) + + 12 ) * + - 24 AS col2
----
85656

query I rowsort
SELECT 79 + - 78 + CASE - 55 WHEN + 82 THEN + + 22 END AS col2
----
NULL

query II rowsort
SELECT + 72 AS col1, + 7
----
72
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8448
SELECT ALL COUNT( * ) DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL COUNT ( * ) / + 64
----
0

query I rowsort
SELECT 59 * 17 AS col2
----
1003

query II rowsort
SELECT 21, 68 AS col1
----
21
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8451
SELECT 89 * - COUNT( * ) + - 24 + - CAST( - 63 AS SIGNED ) + - - 12 - + 15
----
-53

skipif mysql # not compatible
query I rowsort label-8451
SELECT 89 * - COUNT ( * ) + - 24 + - CAST ( - 63 AS INTEGER ) + - - 12 - + 15
----
-53

query I rowsort
SELECT 72 * + - 72 AS col2
----
-5184

query II rowsort
SELECT 64 AS col0, 2
----
64
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8454
SELECT COUNT( ALL COALESCE ( + 69, - - 54 + + - 49, + + 31, + - 3 ) ) DIV - + ( - - 11 ) - + CASE - 12 WHEN + + 96 THEN NULL WHEN - + MAX( - + ( - + 71 ) ) + - CAST( NULL AS SIGNED ) THEN + 72 * 2 ELSE + 75 * 89 + - + ( + + 72 ) END * + 52 + CAST( - 64 AS SIGNED )
----
-343420

skipif mysql # not compatible
query I rowsort label-8454
SELECT COUNT ( ALL COALESCE ( + 69, - - 54 + + - 49, + + 31, + - 3 ) ) / - + ( - - 11 ) - + CASE - 12 WHEN + + 96 THEN NULL WHEN - + MAX ( - + ( - + 71 ) ) + - CAST ( NULL AS INTEGER ) THEN + 72 * 2 ELSE + 75 * 89 + - + ( + + 72 ) END * + 52 + CAST ( - 64 AS INTEGER )
----
-343420

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8455
SELECT ( - 85 ) + CAST( NULL AS DECIMAL ) / + 12 * - + 93 + - 17 - - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT ( - 85 ) + CAST ( NULL AS REAL ) / + 12 * - + 93 + - 17 - - + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT + + 26 AS col2, + 51
----
26
51

query I rowsort
SELECT - COALESCE ( - 63, + + 93 + - NULLIF ( ( 34 ), 4 ) - - - 18 * + 9 ) + + - ( + + 60 ) AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8458
SELECT - 11 AS col0, - 32 * - CAST( NULL AS SIGNED ) - + 91
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-8458
SELECT - 11 AS col0, - 32 * - CAST ( NULL AS INTEGER ) - + 91
----
-11
NULL

query I rowsort
SELECT ALL - 11 - - - 20 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ALL + - 94 * - + MIN( DISTINCT + - 47 ) + - 5 AS col0
----
-4423

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL + - 94 * - + MIN ( DISTINCT + - 47 ) + - 5 AS col0
----
-4423

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL + + 32 * 31 + + 98 * - - 71 + + COUNT( * ) * - 55
----
7895

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL + + 32 * 31 + + 98 * - - 71 + + COUNT ( * ) * - 55
----
7895

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8462
SELECT ALL CAST( NULL AS SIGNED ), + 27 + + 97 col2
----
NULL
124

skipif mysql # not compatible
query II rowsort label-8462
SELECT ALL CAST ( NULL AS INTEGER ), + 27 + + 97 col2
----
NULL
124

onlyif mysql # DIV for integer division: 
query I rowsort label-8463
SELECT ALL - 61 DIV 29
----
-2

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL - 61 / 29
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8464
SELECT - - CAST( NULL AS SIGNED ), + 98 + + 22 col1
----
NULL
120

skipif mysql # not compatible
query II rowsort label-8464
SELECT - - CAST ( NULL AS INTEGER ), + 98 + + 22 col1
----
NULL
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8465
SELECT DISTINCT - 17 - + - MIN( + 51 ) AS col0, 4 * - + MIN( ALL 9 ) * + + 77 + 44 + + 5 * + + 33 + - - NULLIF ( - COUNT( * ), + ( + ( - 28 ) ) + NULLIF ( + - 55, + + 95 ) ) + + CAST( NULL AS SIGNED ) * + - COUNT( * ) * - 3
----
34
NULL

skipif mysql # not compatible
query II rowsort label-8465
SELECT DISTINCT - 17 - + - MIN ( + 51 ) AS col0, 4 * - + MIN ( ALL 9 ) * + + 77 + 44 + + 5 * + + 33 + - - NULLIF ( - COUNT ( * ), + ( + ( - 28 ) ) + NULLIF ( + - 55, + + 95 ) ) + + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * - 3
----
34
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT - 47 + CASE - COUNT( * ) WHEN - 26 THEN NULL WHEN + 86 THEN NULL ELSE CAST( + 99 AS SIGNED ) END
----
52

skipif mysql # not compatible
query I rowsort label-8466
SELECT - 47 + CASE - COUNT ( * ) WHEN - 26 THEN NULL WHEN + 86 THEN NULL ELSE CAST ( + 99 AS INTEGER ) END
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8467
SELECT CAST( NULL AS SIGNED ) AS col0, + 34 col0
----
NULL
34

skipif mysql # not compatible
query II rowsort label-8467
SELECT CAST ( NULL AS INTEGER ) AS col0, + 34 col0
----
NULL
34

query II rowsort
SELECT DISTINCT 24 AS col2, - 69 AS col2
----
24
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-8469
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( + - 32 ) col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-8469
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( + - 32 ) col0
----
1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8470
SELECT - COUNT( * ) AS col1, - ( + + 86 ) AS col0
----
-1
-86

skipif mysql # not compatible
query II rowsort label-8470
SELECT - COUNT ( * ) AS col1, - ( + + 86 ) AS col0
----
-1
-86

query I rowsort
SELECT DISTINCT 88 * + + 19
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL + - COUNT( * ) * + + 86 * MIN( + 78 ) + - COUNT( * )
----
-6709

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL + - COUNT ( * ) * + + 86 * MIN ( + 78 ) + - COUNT ( * )
----
-6709

query I rowsort
SELECT - ( + + 51 ) + 92
----
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8474
SELECT CAST( NULL AS DECIMAL ) - MIN( DISTINCT - 71 ) - - - 45 + 99 + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT CAST ( NULL AS REAL ) - MIN ( DISTINCT - 71 ) - - - 45 + 99 + - 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8475
SELECT ALL 99 + - - CASE - SUM( ALL + + 89 ) WHEN + - AVG ( + + 37 ) * - 76 / + COUNT( * ) + 43 + - 55 THEN - - 49 + NULLIF ( - 92, - - CAST( NULL AS SIGNED ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL 99 + - - CASE - SUM ( ALL + + 89 ) WHEN + - AVG ( + + 37 ) * - 76 / + COUNT ( * ) + 43 + - 55 THEN - - 49 + NULLIF ( - 92, - - CAST ( NULL AS INTEGER ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT CAST( NULL AS SIGNED ) * AVG ( ALL + + 79 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT CAST ( NULL AS INTEGER ) * AVG ( ALL + + 79 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 2 + + - ( - 78 ) + - 54
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8478
SELECT DISTINCT - AVG ( DISTINCT + ( - 15 ) ) * + MAX( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT - AVG ( DISTINCT + ( - 15 ) ) * + MAX ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT 98 + + + ( - + 54 )
----
44

query I rowsort
SELECT 82 - - 43 AS col1
----
125

query I rowsort
SELECT ALL - 57 * - 56 * - 7 AS col1
----
-22344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8482
SELECT DISTINCT + COALESCE ( + 36, + + COUNT( * ) + 29, NULLIF ( - + 52, + + CASE 41 WHEN - 13 THEN NULL WHEN + COUNT( * ) THEN - + 66 END + - COALESCE ( - 86, 86 * - 0 + - 51 ) ) DIV - 56 * 51 ) + - - ( + 18 ) col2
----
54

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT + COALESCE ( + 36, + + COUNT ( * ) + 29, NULLIF ( - + 52, + + CASE 41 WHEN - 13 THEN NULL WHEN + COUNT ( * ) THEN - + 66 END + - COALESCE ( - 86, 86 * - 0 + - 51 ) ) / - 56 * 51 ) + - - ( + 18 ) col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8483
SELECT 59 - - CAST( NULL AS SIGNED ) + + + 29 + + 36 AS col2, 33 AS col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-8483
SELECT 59 - - CAST ( NULL AS INTEGER ) + + + 29 + + 36 AS col2, 33 AS col2
----
NULL
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8484
SELECT CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) + + 70 - - 12 + - SUM( DISTINCT ( + 16 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-8484
SELECT CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) + + 70 - - 12 + - SUM ( DISTINCT ( + 16 ) ) AS col0
----
67

query I rowsort
SELECT DISTINCT + 12 * - ( - + 28 )
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT COUNT( * ) * - NULLIF ( 81, - COUNT( * ) )
----
-81

skipif mysql # not compatible
query I rowsort label-8486
SELECT COUNT ( * ) * - NULLIF ( 81, - COUNT ( * ) )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8487
SELECT ALL + CASE + COUNT( * ) WHEN + 19 THEN + CAST( NULL AS DECIMAL ) * NULLIF ( - + 70, - COALESCE ( + COUNT( * ), NULLIF ( - 75, 51 + - + 72 ) - + + 94 + - 93 ) ) - - 19 * + 67 WHEN - ( 90 ) THEN - 74 * COUNT( * ) ELSE NULL END - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + CASE + COUNT ( * ) WHEN + 19 THEN + CAST ( NULL AS REAL ) * NULLIF ( - + 70, - COALESCE ( + COUNT ( * ), NULLIF ( - 75, 51 + - + 72 ) - + + 94 + - 93 ) ) - - 19 * + 67 WHEN - ( 90 ) THEN - 74 * COUNT ( * ) ELSE NULL END - - 47
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8488
SELECT 94 * - MIN( + + NULLIF ( - + 52, + - 46 ) ) AS col2, - COUNT( * )
----
4888
-1

skipif mysql # not compatible
query II rowsort label-8488
SELECT 94 * - MIN ( + + NULLIF ( - + 52, + - 46 ) ) AS col2, - COUNT ( * )
----
4888
-1

query I rowsort
SELECT DISTINCT + 12 * + 69
----
828

query II rowsort
SELECT + 68 - + 49 AS col0, + 81
----
19
81

query I rowsort
SELECT DISTINCT - 32 * + 85 col0
----
-2720

query I rowsort
SELECT - 35 + ( - 87 ) * + + 93
----
-8126

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT MAX( + 88 ) * 74 col0
----
6512

skipif mysql # not compatible
query I rowsort label-8493
SELECT MAX ( + 88 ) * 74 col0
----
6512

query I rowsort
SELECT - 9 * ( 92 ) * - - ( + 52 ) * - 9
----
387504

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT 97 + ( - - COALESCE ( - COUNT( * ), - 75 + 97 ) ) * COUNT( * ) - + 12 + - 76 * + 91 * + 45 AS col1
----
-311136

skipif mysql # not compatible
query I rowsort label-8495
SELECT 97 + ( - - COALESCE ( - COUNT ( * ), - 75 + 97 ) ) * COUNT ( * ) - + 12 + - 76 * + 91 * + 45 AS col1
----
-311136

query I rowsort
SELECT - 96 * 40 + + 45 + 30 col2
----
-3765

query I rowsort
SELECT - ( - 6 ) + - 93 + + 77 + 63
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8498
SELECT ALL + 38 * + + 22 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL + 38 * + + 22 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL - COUNT( * ) * + + 72
----
-72

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL - COUNT ( * ) * + + 72
----
-72

query I rowsort
SELECT ALL - - ( - + 43 ) + + - 94
----
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8501
SELECT - 20 DIV + 7 + - + COUNT( * ) + + 69 + + 50 col1
----
116

skipif mysql # not compatible
query I rowsort label-8501
SELECT - 20 / + 7 + - + COUNT ( * ) + + 69 + + 50 col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT - COUNT( * ) + 49
----
48

skipif mysql # not compatible
query I rowsort label-8502
SELECT - COUNT ( * ) + 49
----
48

query I rowsort
SELECT 38 + + - 28 * + 21
----
-550

query I rowsort
SELECT ALL 58 + + 27
----
85

query I rowsort
SELECT DISTINCT 93 + 38
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT DISTINCT COALESCE ( - - 94, - 8 * + MAX( DISTINCT + + 31 ) * + 7 * + 38 - 26 * - COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT COALESCE ( - - 94, - 8 * + MAX ( DISTINCT + + 31 ) * + 7 * + 38 - 26 * - COUNT ( * ) )
----
94

query I rowsort
SELECT ALL 45 * - 35 * + 40 * + 73
----
-4599000

query I rowsort
SELECT + 51 * - 85
----
-4335

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL + MAX( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL + MAX ( - 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT + 97 * - COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8510
SELECT + 97 * - COUNT ( * ) AS col1
----
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8511
SELECT + COALESCE ( - 74, + 91 DIV - - CAST( + 18 AS SIGNED ) * 52 - + 11, 7 )
----
-74

skipif mysql # not compatible
query I rowsort label-8511
SELECT + COALESCE ( - 74, + 91 / - - CAST ( + 18 AS INTEGER ) * 52 - + 11, 7 )
----
-74

query I rowsort
SELECT + 15 + + 42 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8513
SELECT COALESCE ( + + 7, NULLIF ( ( + 76 ), - 92 * + - 77 * - 46 ) - - - 11 + - COUNT( * ) + - 96 * + 22 * + CAST( NULL AS SIGNED ) + - CAST( - - COALESCE ( 77, - 88, + 60 + - + 77 ) AS SIGNED ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8513
SELECT COALESCE ( + + 7, NULLIF ( ( + 76 ), - 92 * + - 77 * - 46 ) - - - 11 + - COUNT ( * ) + - 96 * + 22 * + CAST ( NULL AS INTEGER ) + - CAST ( - - COALESCE ( 77, - 88, + 60 + - + 77 ) AS INTEGER ) ) AS col2
----
7

query I rowsort
SELECT - 56 * - 46 * 97 AS col0
----
249872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8515
SELECT ( - 7 ) DIV - 12 + - - CASE + COUNT( * ) WHEN ( - COUNT( * ) ) THEN + 47 * - - 4 + - + 31 + - 0 * + COALESCE ( 85, COUNT( * ) ) + SUM( ALL - 46 ) ELSE 88 END AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8515
SELECT ( - 7 ) / - 12 + - - CASE + COUNT ( * ) WHEN ( - COUNT ( * ) ) THEN + 47 * - - 4 + - + 31 + - 0 * + COALESCE ( 85, COUNT ( * ) ) + SUM ( ALL - 46 ) ELSE 88 END AS col0
----
88

query I rowsort
SELECT NULLIF ( 47, + - 67 ) AS col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8517
SELECT + 20 DIV + + 10 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8517
SELECT + 20 / + + 10 AS col2
----
2

query I rowsort
SELECT - 66 + 14 + - - 45
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8519
SELECT ALL 36 DIV - - 61 col2
----
0

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL 36 / - - 61 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT + MAX( - 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8520
SELECT + MAX ( - 54 ) AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8521
SELECT + COUNT( * ) DIV 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8521
SELECT + COUNT ( * ) / 31 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT - 7 * + NULLIF ( + CAST( - 39 AS SIGNED ), 32 + + + 31 ) - - 3
----
276

skipif mysql # not compatible
query I rowsort label-8522
SELECT - 7 * + NULLIF ( + CAST ( - 39 AS INTEGER ), 32 + + + 31 ) - - 3
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT ALL - + CASE - - MIN( 73 ) WHEN + COUNT( * ) + + - 9 THEN NULL WHEN - 0 * + 92 * 61 THEN - - COALESCE ( + 72, + 51 ) END * + ( - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL - + CASE - - MIN ( 73 ) WHEN + COUNT ( * ) + + - 9 THEN NULL WHEN - 0 * + 92 * 61 THEN - - COALESCE ( + 72, + 51 ) END * + ( - 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT - + 48 + + COUNT( * ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-8524
SELECT - + 48 + + COUNT ( * ) col0
----
-47

query II rowsort
SELECT + + 58 col1, + 24 AS col1
----
58
24

query I rowsort
SELECT ALL + - 77 + - 23 AS col0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8527
SELECT ALL 39 + - CAST( NULL AS SIGNED ) * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL 39 + - CAST ( NULL AS INTEGER ) * - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT - NULLIF ( MAX( DISTINCT - - 47 ), + SUM( + 92 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-8528
SELECT - NULLIF ( MAX ( DISTINCT - - 47 ), + SUM ( + 92 ) )
----
-47

query II rowsort
SELECT - - 73, 5 * + - 85 AS col2
----
73
-425

query I rowsort
SELECT - + ( 8 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8531
SELECT - - 77 * - - ( + CASE + 92 WHEN + 82 * 58 THEN NULL WHEN CASE - COUNT( * ) WHEN - - 95 THEN NULL WHEN + COUNT( * ) * - 78 THEN 60 / 92 ELSE - MAX( DISTINCT + 8 ) END THEN + + 80 ELSE ( 39 ) END ), 47 AS col0
----
3003
47

skipif mysql # not compatible
query II rowsort label-8531
SELECT - - 77 * - - ( + CASE + 92 WHEN + 82 * 58 THEN NULL WHEN CASE - COUNT ( * ) WHEN - - 95 THEN NULL WHEN + COUNT ( * ) * - 78 THEN 60 / 92 ELSE - MAX ( DISTINCT + 8 ) END THEN + + 80 ELSE ( 39 ) END ), 47 AS col0
----
3003
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8532
SELECT + MAX( ALL - CAST( NULL AS SIGNED ) ) * + + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT + MAX ( ALL - CAST ( NULL AS INTEGER ) ) * + + 13 AS col1
----
NULL

query II rowsort
SELECT 27, + 38 * 46 AS col2
----
27
1748

query I rowsort
SELECT DISTINCT 10 * + 91
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL - 2 + - ( - COUNT( * ) ) * + 8
----
6

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL - 2 + - ( - COUNT ( * ) ) * + 8
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT - MAX( ALL + + 31 ) + 96 col0
----
65

skipif mysql # not compatible
query I rowsort label-8536
SELECT - MAX ( ALL + + 31 ) + 96 col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8537
SELECT DISTINCT + 84 - - 90 - - 30 + + 50 + - + ( + 34 ) DIV + 74 * + 1 AS col2
----
254

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT + 84 - - 90 - - 30 + + 50 + - + ( + 34 ) / + 74 * + 1 AS col2
----
254

query I rowsort
SELECT ALL - 29 * + 54 AS col0
----
-1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8539
SELECT + 27 + - MIN( DISTINCT - 50 ) * - 98 * + - 90 DIV - COUNT( * ) + + 13 * - ( - 7 ) + + 96 + + NULLIF ( + + 13, + - ( + + 51 ) ) AS col1
----
-440773

skipif mysql # not compatible
query I rowsort label-8539
SELECT + 27 + - MIN ( DISTINCT - 50 ) * - 98 * + - 90 / - COUNT ( * ) + + 13 * - ( - 7 ) + + 96 + + NULLIF ( + + 13, + - ( + + 51 ) ) AS col1
----
-440773

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - MAX( DISTINCT - 81 ) * - - NULLIF ( - 31, 62 * 13 - 14 )
----
-2511

skipif mysql # not compatible
query I rowsort label-8540
SELECT - MAX ( DISTINCT - 81 ) * - - NULLIF ( - 31, 62 * 13 - 14 )
----
-2511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8541
SELECT ALL CAST( - 80 AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL CAST ( - 80 AS INTEGER ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT - 74 - + + 1 * ( - - COUNT( * ) ) + + - 27 * + 87
----
-2424

skipif mysql # not compatible
query I rowsort label-8542
SELECT - 74 - + + 1 * ( - - COUNT ( * ) ) + + - 27 * + 87
----
-2424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8543
SELECT + 80 * + ( + COUNT( * ) ) * + 84 DIV - 42 + - 51 - - 79
----
-132

skipif mysql # not compatible
query I rowsort label-8543
SELECT + 80 * + ( + COUNT ( * ) ) * + 84 / - 42 + - 51 - - 79
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-8544
SELECT DISTINCT 20 DIV 5 - + NULLIF ( + - 68, 50 ) * + 76
----
5172

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT 20 / 5 - + NULLIF ( + - 68, 50 ) * + 76
----
5172

query I rowsort
SELECT + 44 * 41
----
1804

query I rowsort
SELECT + NULLIF ( 47, ( + - 24 ) ) AS col1
----
47

query I rowsort
SELECT + ( 0 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8548
SELECT + ( + 56 ), + 82 + 12 / + CAST( NULL AS SIGNED ) col2
----
56
NULL

skipif mysql # not compatible
query II rowsort label-8548
SELECT + ( + 56 ), + 82 + 12 / + CAST ( NULL AS INTEGER ) col2
----
56
NULL

query I rowsort
SELECT ALL 2 * - 92
----
-184

query I rowsort
SELECT + - 43 * NULLIF ( - 16, 60 + + + 14 )
----
688

query I rowsort
SELECT ALL + + ( + 77 ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8552
SELECT 0 col1, COUNT( * ) * + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8552
SELECT 0 col1, COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT + - 82 * 42
----
-3444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8554
SELECT ALL 37 * + - 15 + + + CAST( NULL AS SIGNED ) * + - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL 37 * + - 15 + + + CAST ( NULL AS INTEGER ) * + - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT + COALESCE ( + - SUM( DISTINCT + + ( 28 ) ), - 80 + 5 )
----
-28

skipif mysql # not compatible
query I rowsort label-8555
SELECT + COALESCE ( + - SUM ( DISTINCT + + ( 28 ) ), - 80 + 5 )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8556
SELECT DISTINCT 54 DIV + + 64 * + 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT 54 / + + 64 * + 3 AS col2
----
0

query I rowsort
SELECT + + 56 + + ( + 24 ) AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), + 18 * - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), + 18 * - 90 )
----
NULL

query I rowsort
SELECT ALL - ( + - 86 ) + + 18
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT - 30 - - COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-8560
SELECT - 30 - - COUNT ( * ) AS col2
----
-29

query I rowsort
SELECT + 73 + - - 11
----
84

query I rowsort
SELECT DISTINCT 81 - + 89
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT 82 + 92 + + COALESCE ( + 97, + CAST( - - 68 AS SIGNED ) + 27 ) + 37 AS col0
----
308

skipif mysql # not compatible
query I rowsort label-8563
SELECT 82 + 92 + + COALESCE ( + 97, + CAST ( - - 68 AS INTEGER ) + 27 ) + 37 AS col0
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT 92 + - 13 - 4 * + COUNT( * ) + COUNT( * ) + 24
----
100

skipif mysql # not compatible
query I rowsort label-8564
SELECT 92 + - 13 - 4 * + COUNT ( * ) + COUNT ( * ) + 24
----
100

query I rowsort
SELECT 8 * + + 53 col1
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT 17 + + CASE COUNT( DISTINCT - - 81 ) WHEN + - 67 + - 0 THEN 61 * - 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT 17 + + CASE COUNT ( DISTINCT - - 81 ) WHEN + - 67 + - 0 THEN 61 * - 22 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8567
SELECT 98 DIV 71 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8567
SELECT 98 / 71 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL + COUNT( * ) * + - 6 col0
----
-6

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + COUNT ( * ) * + - 6 col0
----
-6

query I rowsort
SELECT DISTINCT + 53 * + 26
----
1378

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT + 9 DIV + 60 * 8 + + + 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8570
SELECT + 9 / + 60 * 8 + + + 44 AS col2
----
44

query II rowsort
SELECT 32 * + + 9 AS col2, 45 * - 62 AS col0
----
288
-2790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT - ( - - CAST( NULL AS SIGNED ) ) / 57 - + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT - ( - - CAST ( NULL AS INTEGER ) ) / 57 - + - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT - 77 * - NULLIF ( + 99, - 23 ) * 0 + - + 42 + - 91 * + 83 + - 33 - + + COUNT( * ) + + 36 AS col2
----
-7593

skipif mysql # not compatible
query I rowsort label-8573
SELECT - 77 * - NULLIF ( + 99, - 23 ) * 0 + - + 42 + - 91 * + 83 + - 33 - + + COUNT ( * ) + + 36 AS col2
----
-7593

onlyif mysql # aggregate syntax: 
query II rowsort label-8574
SELECT 93 - + - COUNT( * ) AS col1, - 37 + - - 16 AS col2
----
94
-21

skipif mysql # not compatible
query II rowsort label-8574
SELECT 93 - + - COUNT ( * ) AS col1, - 37 + - - 16 AS col2
----
94
-21

query I rowsort
SELECT DISTINCT + + 18 + 15 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT ALL - 51 + + - SUM( ALL - 68 )
----
17

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL - 51 + + - SUM ( ALL - 68 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8577
SELECT 72 + + + 97 + + 13 * 46 * + 75 * SUM( - + ( - 50 ) ) AS col2, + 84 AS col1
----
2242669
84

skipif mysql # not compatible
query II rowsort label-8577
SELECT 72 + + + 97 + + 13 * 46 * + 75 * SUM ( - + ( - 50 ) ) AS col2, + 84 AS col1
----
2242669
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT + 64 + - 84 * COUNT( DISTINCT + 76 ) + + - COUNT( * ) + - 51 * - 56
----
2835

skipif mysql # not compatible
query I rowsort label-8578
SELECT + 64 + - 84 * COUNT ( DISTINCT + 76 ) + + - COUNT ( * ) + - 51 * - 56
----
2835

query I rowsort
SELECT ALL 3 * + + 1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT CASE MIN( ALL - + CAST( NULL AS SIGNED ) ) WHEN + 83 THEN + COALESCE ( + - 83, 86 ) + + 52 * COALESCE ( - 64, - 55 ) * - 48 - 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT CASE MIN ( ALL - + CAST ( NULL AS INTEGER ) ) WHEN + 83 THEN + COALESCE ( + - 83, 86 ) + + 52 * COALESCE ( - 64, - 55 ) * - 48 - 0 END AS col2
----
NULL

query I rowsort
SELECT ( + 19 ) + - ( 0 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL CASE + COUNT( * ) WHEN - 9 * 73 THEN + 5 END + - ( - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL CASE + COUNT ( * ) WHEN - 9 * 73 THEN + 5 END + - ( - 49 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8583
SELECT + 89 * + + CAST( NULL AS DECIMAL ) * + 41 + COUNT( - - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT + 89 * + + CAST ( NULL AS REAL ) * + 41 + COUNT ( - - 70 )
----
NULL

query I rowsort
SELECT DISTINCT 32 - + 19 * - 99 * - 34
----
-63922

onlyif mysql # aggregate syntax: 
query II rowsort label-8585
SELECT DISTINCT + NULLIF ( + - 60, - 2 ) AS col1, COUNT( * ) AS col2
----
-60
1

skipif mysql # not compatible
query II rowsort label-8585
SELECT DISTINCT + NULLIF ( + - 60, - 2 ) AS col1, COUNT ( * ) AS col2
----
-60
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 85 - + CAST( CASE - 87 WHEN - + 53 THEN + 13 / - 38 END AS SIGNED ) - NULLIF ( - 4, + - 93 ) + + 26 * + - ( - + 67 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 85 - + CAST ( CASE - 87 WHEN - + 53 THEN + 13 / - 38 END AS INTEGER ) - NULLIF ( - 4, + - 93 ) + + 26 * + - ( - + 67 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8587
SELECT DISTINCT - MAX( + - 1 ) - - + COUNT( * ) AS col0, + 57 AS col2
----
2
57

skipif mysql # not compatible
query II rowsort label-8587
SELECT DISTINCT - MAX ( + - 1 ) - - + COUNT ( * ) AS col0, + 57 AS col2
----
2
57

query I rowsort
SELECT ALL + 29 * 57 AS col1
----
1653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8589
SELECT COUNT( ALL - 31 ) * + + 53 DIV + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8589
SELECT COUNT ( ALL - 31 ) * + + 53 / + COUNT ( * ) AS col2
----
53

query I rowsort
SELECT 1 * + 38
----
38

query I rowsort
SELECT ALL 69 * - 1 * + ( + 19 ) AS col1
----
-1311

query I rowsort
SELECT 72 - 1 + - 43 * + 8
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-8593
SELECT 8 DIV + 6
----
1

skipif mysql # not compatible
query I rowsort label-8593
SELECT 8 / + 6
----
1

query I rowsort
SELECT 79 * + 84 AS col1
----
6636

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT - COUNT( ALL - 70 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8595
SELECT - COUNT ( ALL - 70 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT ALL + MIN( - - NULLIF ( + 31, 41 ) ) * 60
----
1860

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL + MIN ( - - NULLIF ( + 31, 41 ) ) * 60
----
1860

query II rowsort
SELECT ALL 59, + 56 AS col2
----
59
56

query I rowsort
SELECT DISTINCT 92 * - + 31 AS col2
----
-2852

query I rowsort
SELECT 7 - - ( + 31 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8600
SELECT ALL COUNT( * ) * + - 27 DIV + 12 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL COUNT ( * ) * + - 27 / + 12 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT 13 + - + COUNT( * ) * 68 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8601
SELECT 13 + - + COUNT ( * ) * 68 AS col0
----
-55

query I rowsort
SELECT ALL - 95 + - + 93
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT - COUNT( ALL + 38 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8603
SELECT - COUNT ( ALL + 38 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8604
SELECT 33 DIV + COALESCE ( CASE + COALESCE ( COUNT( * ), 75 + - AVG ( + 56 ) ) WHEN + 31 * - 40 * 94 - 21 DIV - 70 THEN - - 73 ELSE NULL END, COUNT( * ) * + 53 ) * - 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8604
SELECT 33 / + COALESCE ( CASE + COALESCE ( COUNT ( * ), 75 + - AVG ( + 56 ) ) WHEN + 31 * - 40 * 94 - 21 / - 70 THEN - - 73 ELSE NULL END, COUNT ( * ) * + 53 ) * - 41 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT CAST( NULL AS SIGNED ) * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT CAST ( NULL AS INTEGER ) * 23
----
NULL

query I rowsort
SELECT 7 + + 97
----
104

query II rowsort
SELECT 77 - + 43 * + - 36 * - 57, - 57 AS col0
----
-88159
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT ALL + - MIN( + + 20 ) * + MIN( - - CAST( NULL AS SIGNED ) ) - + ( + - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL + - MIN ( + + 20 ) * + MIN ( - - CAST ( NULL AS INTEGER ) ) - + ( + - 87 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT COUNT( ALL + + 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8609
SELECT COUNT ( ALL + + 81 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT ALL + + 26 * - 20 + CAST( NULL AS SIGNED ) * + 6 * + 64 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL + + 26 * - 20 + CAST ( NULL AS INTEGER ) * + 6 * + 64 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8611
SELECT DISTINCT + COUNT( * ) / + 85 + CASE 57 WHEN COUNT( * ) THEN NULL WHEN + 93 / + 56 * + COUNT( * ) THEN - + COUNT( ALL CASE + CAST( - 27 AS DECIMAL ) WHEN + - 4 THEN + + 24 ELSE - + 15 END ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT + COUNT ( * ) / + 85 + CASE 57 WHEN COUNT ( * ) THEN NULL WHEN + 93 / + 56 * + COUNT ( * ) THEN - + COUNT ( ALL CASE + CAST ( - 27 AS REAL ) WHEN + - 4 THEN + + 24 ELSE - + 15 END ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8612
SELECT ( 38 ) * + 33 * - 15 - + 54 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8612
SELECT ( 38 ) * + 33 * - 15 - + 54 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - 11 * - + 94 * - + 6 AS col0, 96 AS col0
----
-6204
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8614
SELECT 87 DIV 1 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8614
SELECT 87 / 1 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT DISTINCT - - COUNT( - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-8615
SELECT DISTINCT - - COUNT ( - 41 )
----
1

query I rowsort
SELECT + - ( ( + 49 ) ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT ALL - 44 * - 4 + COUNT( * ) col2
----
177

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL - 44 * - 4 + COUNT ( * ) col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT - 45 * + - 4 + + 30 - + COUNT( * ) AS col0
----
209

skipif mysql # not compatible
query I rowsort label-8618
SELECT - 45 * + - 4 + + 30 - + COUNT ( * ) AS col0
----
209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8619
SELECT + + 33 / - 24 * CASE 61 WHEN + + 39 THEN - - 92 + + - 95 WHEN 78 * - - 60 + + NULLIF ( + 42, - 8 / + 27 ) * + + 94 THEN + - 66 + - - 24 * + 2 + - + 7 - + + 51 WHEN + CASE + + ( - - 16 ) WHEN + + 14 THEN ( + COUNT( ALL CAST( - - 0 AS SIGNED ) ) ) ELSE 2 END / - 72 THEN 9 END / COUNT( ALL - 42 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8619
SELECT + + 33 / - 24 * CASE 61 WHEN + + 39 THEN - - 92 + + - 95 WHEN 78 * - - 60 + + NULLIF ( + 42, - 8 / + 27 ) * + + 94 THEN + - 66 + - - 24 * + 2 + - + 7 - + + 51 WHEN + CASE + + ( - - 16 ) WHEN + + 14 THEN ( + COUNT ( ALL CAST ( - - 0 AS INTEGER ) ) ) ELSE 2 END / - 72 THEN 9 END / COUNT ( ALL - 42 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT NULLIF ( + - 87, 47 / - AVG ( + 85 ) * - 61 + ( + COALESCE ( CASE + 67 WHEN + COUNT( * ) + - - 57 + 64 THEN - 39 ELSE NULL END, - + 90 + ( + + COUNT( ALL - - 46 ) ) ) ) + - COUNT( * ) + - ( + 0 ) * 53 * + + 0 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-8620
SELECT NULLIF ( + - 87, 47 / - AVG ( + 85 ) * - 61 + ( + COALESCE ( CASE + 67 WHEN + COUNT ( * ) + - - 57 + 64 THEN - 39 ELSE NULL END, - + 90 + ( + + COUNT ( ALL - - 46 ) ) ) ) + - COUNT ( * ) + - ( + 0 ) * 53 * + + 0 ) AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8621
SELECT - 56 AS col2, + CAST( NULL AS SIGNED ) * - 36
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-8621
SELECT - 56 AS col2, + CAST ( NULL AS INTEGER ) * - 36
----
-56
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8622
SELECT ALL + + 12 AS col2, + 99 * + MIN( + - 85 )
----
12
-8415

skipif mysql # not compatible
query II rowsort label-8622
SELECT ALL + + 12 AS col2, + 99 * + MIN ( + - 85 )
----
12
-8415

query I rowsort
SELECT DISTINCT - 71 * 45 + + - 45 - 33 * - 31
----
-2217

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL + CASE - + 79 WHEN + + ( 42 ) + + + 61 THEN - MAX( + 12 ) * 84 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL + CASE - + 79 WHEN + + ( 42 ) + + + 61 THEN - MAX ( + 12 ) * 84 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8625
SELECT ALL 93 * - - COUNT( * ) col2, 39
----
93
39

skipif mysql # not compatible
query II rowsort label-8625
SELECT ALL 93 * - - COUNT ( * ) col2, 39
----
93
39

query II rowsort
SELECT + NULLIF ( 1, 30 * 86 ) AS col2, ( + + 30 ) AS col2
----
1
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT + CAST( - + 62 AS SIGNED ) + + + 99 * - 55
----
-5507

skipif mysql # not compatible
query I rowsort label-8627
SELECT + CAST ( - + 62 AS INTEGER ) + + + 99 * - 55
----
-5507

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT + 57 - + 91 - + COUNT( DISTINCT 78 ) * + + 68 * + NULLIF ( - ( + COUNT( * ) ), - 6 ) * - 87 AS col1
----
-5950

skipif mysql # not compatible
query I rowsort label-8628
SELECT + 57 - + 91 - + COUNT ( DISTINCT 78 ) * + + 68 * + NULLIF ( - ( + COUNT ( * ) ), - 6 ) * - 87 AS col1
----
-5950

query I rowsort
SELECT DISTINCT - 53 * 19
----
-1007

onlyif mysql # DIV for integer division: 
query II rowsort label-8630
SELECT ALL 15 DIV 21 AS col2, + 15 * 87
----
0
1305

skipif mysql # not compatible
query II rowsort label-8630
SELECT ALL 15 / 21 AS col2, + 15 * 87
----
0
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT + 21 + - + 96 / - CASE - 29 WHEN - COALESCE ( + COUNT( * ), + + 91 * COUNT( * ) + 27 ) THEN - AVG ( ALL + + 99 ) * 18 + - 11 WHEN - ( 93 ) THEN NULL ELSE NULL END * + 42 + - 0 + + + CASE - + 81 WHEN - 6 THEN + 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT + 21 + - + 96 / - CASE - 29 WHEN - COALESCE ( + COUNT ( * ), + + 91 * COUNT ( * ) + 27 ) THEN - AVG ( ALL + + 99 ) * 18 + - 11 WHEN - ( 93 ) THEN NULL ELSE NULL END * + 42 + - 0 + + + CASE - + 81 WHEN - 6 THEN + 20 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8632
SELECT DISTINCT COUNT( ALL 65 ) + - - CAST( NULL AS SIGNED ) + ( + - 8 ) AS col1, + 72 AS col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-8632
SELECT DISTINCT COUNT ( ALL 65 ) + - - CAST ( NULL AS INTEGER ) + ( + - 8 ) AS col1, + 72 AS col0
----
NULL
72

query I rowsort
SELECT + 97 + 57
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT + 15 * - + NULLIF ( + 97, - - 71 / MIN( + 58 ) ) AS col0
----
-1455

skipif mysql # not compatible
query I rowsort label-8634
SELECT + 15 * - + NULLIF ( + 97, - - 71 / MIN ( + 58 ) ) AS col0
----
-1455

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT ALL COUNT( * ) + + - 48 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL COUNT ( * ) + + - 48 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT - SUM( ALL 10 ) * + 24 AS col2
----
-240

skipif mysql # not compatible
query I rowsort label-8636
SELECT - SUM ( ALL 10 ) * + 24 AS col2
----
-240

query I rowsort
SELECT - 43 + + 75
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT - ( - - COALESCE ( + + 96, 94 * + + COUNT( * ) + 16, + 9 * - 11 + - + COUNT( * ) ) )
----
-96

skipif mysql # not compatible
query I rowsort label-8638
SELECT - ( - - COALESCE ( + + 96, 94 * + + COUNT ( * ) + 16, + 9 * - 11 + - + COUNT ( * ) ) )
----
-96

query I rowsort
SELECT + 19 - - + 68
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT DISTINCT + MIN( DISTINCT + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT + MIN ( DISTINCT + 56 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8641
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - 3 * COUNT( ( + 63 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 3 * COUNT ( ( + 63 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8642
SELECT + + CAST( NULL AS SIGNED ) + - COUNT( * ) + + 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8642
SELECT + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 94 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT + MIN( DISTINCT - - 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8643
SELECT + MIN ( DISTINCT - - 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT + 30 * 25 + COUNT( * )
----
751

skipif mysql # not compatible
query I rowsort label-8644
SELECT + 30 * 25 + COUNT ( * )
----
751

query I rowsort
SELECT - + 88 - 31 AS col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT ALL + COALESCE ( + - COUNT( * ), + ( MIN( + 68 ) ) * 89 - - 76, - ( + 97 ) * + 33 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL + COALESCE ( + - COUNT ( * ), + ( MIN ( + 68 ) ) * 89 - - 76, - ( + 97 ) * + 33 ) AS col1
----
-1

query II rowsort
SELECT DISTINCT - ( - + 74 ) * + 17 + 0, 3 + - CASE + 33 WHEN 91 THEN + 36 END AS col0
----
1258
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT - COUNT( * ) * 41 - + 71
----
-112

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT - COUNT ( * ) * 41 - + 71
----
-112

onlyif mysql # DIV for integer division: 
query II rowsort label-8649
SELECT ALL - - 46 DIV 15 col2, 20
----
3
20

skipif mysql # not compatible
query II rowsort label-8649
SELECT ALL - - 46 / 15 col2, 20
----
3
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8650
SELECT - 49 + CASE - 95 WHEN + - 38 * + + COUNT( DISTINCT 5 ) - - ( - 10 ) / - 20 + + 32 / + 92 THEN NULL WHEN 73 THEN NULL WHEN - SUM( + + 69 ) THEN + AVG ( ALL - - CAST( + + 9 AS SIGNED ) ) WHEN 80 / + - CASE + 78 WHEN - CAST( + - 43 AS SIGNED ) THEN + 22 END + 93 THEN + 13 * - 83 END + + 42 + + 22 - + 58 * - 26 * - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8650
SELECT - 49 + CASE - 95 WHEN + - 38 * + + COUNT ( DISTINCT 5 ) - - ( - 10 ) / - 20 + + 32 / + 92 THEN NULL WHEN 73 THEN NULL WHEN - SUM ( + + 69 ) THEN + AVG ( ALL - - CAST ( + + 9 AS INTEGER ) ) WHEN 80 / + - CASE + 78 WHEN - CAST ( + - 43 AS INTEGER ) THEN + 22 END + 93 THEN + 13 * - 83 END + + 42 + + 22 - + 58 * - 26 * - 65 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 5 * - + 7
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8652
SELECT - COALESCE ( - 63, + 13 * + 86 ) * + 49 + + MAX( ALL + + 99 ) + 88 * + - CAST( 44 AS SIGNED ) AS col0
----
-686

skipif mysql # not compatible
query I rowsort label-8652
SELECT - COALESCE ( - 63, + 13 * + 86 ) * + 49 + + MAX ( ALL + + 99 ) + 88 * + - CAST ( 44 AS INTEGER ) AS col0
----
-686

onlyif mysql # aggregate syntax: 
query II rowsort label-8653
SELECT ALL - 72 * 17 + + + COUNT( * ) * + 82 + + - 36 AS col0, 36
----
-1178
36

skipif mysql # not compatible
query II rowsort label-8653
SELECT ALL - 72 * 17 + + + COUNT ( * ) * + 82 + + - 36 AS col0, 36
----
-1178
36

onlyif mysql # DIV for integer division: 
query II rowsort label-8654
SELECT DISTINCT + 14 * - 56, 74 DIV + - 46 AS col0
----
-784
-1

skipif mysql # not compatible
query II rowsort label-8654
SELECT DISTINCT + 14 * - 56, 74 / + - 46 AS col0
----
-784
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8655
SELECT COALESCE ( + 65, + 6 * + ( NULLIF ( - CASE + 45 WHEN 37 * - 95 THEN COUNT( + 82 ) WHEN - 14 THEN NULL ELSE 10 END, - 6 ) ) * - 56 + - - 51 DIV + - 49 * 37 * + 73 * + 62 + 22 - + 37 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8655
SELECT COALESCE ( + 65, + 6 * + ( NULLIF ( - CASE + 45 WHEN 37 * - 95 THEN COUNT ( + 82 ) WHEN - 14 THEN NULL ELSE 10 END, - 6 ) ) * - 56 + - - 51 / + - 49 * 37 * + 73 * + 62 + 22 - + 37 ) AS col1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8656
SELECT COALESCE ( - 87, 45 * 9 DIV + COUNT( * ) )
----
-87

skipif mysql # not compatible
query I rowsort label-8656
SELECT COALESCE ( - 87, 45 * 9 / + COUNT ( * ) )
----
-87

query I rowsort
SELECT + 57 + - 83 * 30 + + 99 AS col0
----
-2334

query I rowsort
SELECT ALL 97 * 72 * - 10 + - 76
----
-69916

query II rowsort
SELECT ALL 57 AS col1, 59 + + + 57 col2
----
57
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8660
SELECT DISTINCT COUNT( DISTINCT + 79 ) * + 92 + 29 + + 94 - - + CASE - 89 WHEN 0 * - 30 + + 37 THEN + 63 ELSE NULL END * - + ( COUNT( * ) ) / - AVG ( ( - 14 ) ) + - CAST( NULL AS DECIMAL ) + + - SUM( ALL NULLIF ( + 16, ( - 48 ) ) ) + + CAST( - 2 AS SIGNED ) + COUNT( * ) + - COUNT( * ) * - 8 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT COUNT ( DISTINCT + 79 ) * + 92 + 29 + + 94 - - + CASE - 89 WHEN 0 * - 30 + + 37 THEN + 63 ELSE NULL END * - + ( COUNT ( * ) ) / - AVG ( ( - 14 ) ) + - CAST ( NULL AS REAL ) + + - SUM ( ALL NULLIF ( + 16, ( - 48 ) ) ) + + CAST ( - 2 AS INTEGER ) + COUNT ( * ) + - COUNT ( * ) * - 8 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT - CASE COUNT( DISTINCT + 78 ) WHEN + COUNT( * ) THEN + 46 + - 3 END AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8661
SELECT - CASE COUNT ( DISTINCT + 78 ) WHEN + COUNT ( * ) THEN + 46 + - 3 END AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT - 62 - - 1 + + + 10 * - CAST( 6 AS SIGNED )
----
-121

skipif mysql # not compatible
query I rowsort label-8662
SELECT - 62 - - 1 + + + 10 * - CAST ( 6 AS INTEGER )
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT - CASE + 93 WHEN - 7 THEN + CAST( NULL AS SIGNED ) - 89 * + 56 WHEN 13 THEN + - 58 WHEN - + 46 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT - CASE + 93 WHEN - 7 THEN + CAST ( NULL AS INTEGER ) - 89 * + 56 WHEN 13 THEN + - 58 WHEN - + 46 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT 82 AS col2, + ( + 66 )
----
82
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8665
SELECT DISTINCT CAST( 62 AS SIGNED ) + - 70
----
-8

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT CAST ( 62 AS INTEGER ) + - 70
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT ALL COUNT( * ) + 8
----
9

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL COUNT ( * ) + 8
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT + 31 * + COUNT( * ) * + + 34
----
1054

skipif mysql # not compatible
query I rowsort label-8667
SELECT + 31 * + COUNT ( * ) * + + 34
----
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ALL - 5 * - CASE + 36 WHEN - 64 THEN - MIN( ALL - 69 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL - 5 * - CASE + 36 WHEN - 64 THEN - MIN ( ALL - 69 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8669
SELECT + 8 - - 65 + - + 57 + + 42 DIV COALESCE ( 96, - COUNT( * ) + + - ( - + 93 ) * + 66 * + 0 DIV 41 + - + 80, + - COUNT( * ) * + NULLIF ( + 45, - 76 + 83 ) + + + COUNT( + + 44 ) + - + 47 + 60 * - - 60 )
----
16

skipif mysql # not compatible
query I rowsort label-8669
SELECT + 8 - - 65 + - + 57 + + 42 / COALESCE ( 96, - COUNT ( * ) + + - ( - + 93 ) * + 66 * + 0 / 41 + - + 80, + - COUNT ( * ) * + NULLIF ( + 45, - 76 + 83 ) + + + COUNT ( + + 44 ) + - + 47 + 60 * - - 60 )
----
16

query I rowsort
SELECT + - 58 + + - 63
----
-121

query I rowsort
SELECT ALL 5 - - 20 + + ( + + 87 ) * + 88
----
7681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8672
SELECT CASE 65 WHEN - COUNT( * ) * NULLIF ( 83, - + 63 ) THEN + 74 - + + 5 + - COUNT( * ) * - ( - - CAST( - 90 AS SIGNED ) ) / + - 70 - + 25 / - 72 * + - 69 + 72 WHEN + 60 - - 53 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT CASE 65 WHEN - COUNT ( * ) * NULLIF ( 83, - + 63 ) THEN + 74 - + + 5 + - COUNT ( * ) * - ( - - CAST ( - 90 AS INTEGER ) ) / + - 70 - + 25 / - 72 * + - 69 + 72 WHEN + 60 - - 53 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8673
SELECT ALL - 28 * - CAST( - 84 AS SIGNED ) + + - 21 + + 64 - - 72 - - 21 - + - 93 - 28 * - 30 * COUNT( * ) * - 80
----
-69323

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL - 28 * - CAST ( - 84 AS INTEGER ) + + - 21 + + 64 - - 72 - - 21 - + - 93 - 28 * - 30 * COUNT ( * ) * - 80
----
-69323

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT DISTINCT + 0 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT + 0 / - 32
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8675
SELECT 26 * - COUNT( ALL - - ( - + ( + + 72 ) ) ), 59 + + COUNT( * ) + - 43 DIV + + 99 * 86 AS col2
----
-26
60

skipif mysql # not compatible
query II rowsort label-8675
SELECT 26 * - COUNT ( ALL - - ( - + ( + + 72 ) ) ), 59 + + COUNT ( * ) + - 43 / + + 99 * 86 AS col2
----
-26
60

query I rowsort
SELECT DISTINCT - 9 * + 47 + - NULLIF ( - - 52, - 4 ) AS col2
----
-475

query I rowsort
SELECT 88 * + 14 AS col1
----
1232

query I rowsort
SELECT ALL - 76 * - 74 AS col1
----
5624

query II rowsort
SELECT - 85 col2, 37
----
-85
37

query I rowsort
SELECT + 74 * 7
----
518

onlyif mysql # DIV for integer division: 
query II rowsort label-8681
SELECT 21 DIV + 59 + 98 - - ( 17 ), 11 AS col1
----
115
11

skipif mysql # not compatible
query II rowsort label-8681
SELECT 21 / + 59 + 98 - - ( 17 ), 11 AS col1
----
115
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL - NULLIF ( - + 15, COUNT( * ) * 67 )
----
15

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL - NULLIF ( - + 15, COUNT ( * ) * 67 )
----
15

query I rowsort
SELECT DISTINCT - 25 + + NULLIF ( + + 9, - 45 ) * + - 92 col2
----
-853

query II rowsort
SELECT DISTINCT - 20, 14 AS col2
----
-20
14

query I rowsort
SELECT 91 * 26 AS col0
----
2366

query I rowsort
SELECT ALL - 8 + + 22
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT 98 - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-8687
SELECT 98 - COUNT ( * ) AS col1
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8688
SELECT ALL 51 DIV 44 AS col1, 14 col2
----
1
14

skipif mysql # not compatible
query II rowsort label-8688
SELECT ALL 51 / 44 AS col1, 14 col2
----
1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT ALL COUNT( * ) + + + ( - 93 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL COUNT ( * ) + + + ( - 93 ) AS col2
----
-92

query I rowsort
SELECT DISTINCT 69 + 87
----
156

query II rowsort
SELECT ALL - 78, 70 col1
----
-78
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8692
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + - 93 DIV - + 2
----
47

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + - 93 / - + 2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8693
SELECT - CASE 55 WHEN - 85 * - 82 THEN NULL WHEN - NULLIF ( + + ( - 76 ), - 24 ) THEN NULL ELSE - - CASE AVG ( CAST( NULL AS SIGNED ) ) WHEN 41 THEN + 37 END END * - NULLIF ( - - 6, + COUNT( ALL ( + - 38 ) ) ) - - 66, - ( 1 ) - - 74 AS col0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-8693
SELECT - CASE 55 WHEN - 85 * - 82 THEN NULL WHEN - NULLIF ( + + ( - 76 ), - 24 ) THEN NULL ELSE - - CASE AVG ( CAST ( NULL AS INTEGER ) ) WHEN 41 THEN + 37 END END * - NULLIF ( - - 6, + COUNT ( ALL ( + - 38 ) ) ) - - 66, - ( 1 ) - - 74 AS col0
----
NULL
73

query II rowsort
SELECT 92 AS col2, + 18 AS col2
----
92
18

query I rowsort
SELECT 97 + - 83 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8696
SELECT - 93 * + COUNT( * ) + COUNT( * ) + 89 + - 33 + + NULLIF ( - + CAST( NULL AS SIGNED ), - 94 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8696
SELECT - 93 * + COUNT ( * ) + COUNT ( * ) + 89 + - 33 + + NULLIF ( - + CAST ( NULL AS INTEGER ), - 94 ) AS col0
----
NULL

query I rowsort
SELECT 42 - 28 + 43 + - 19 * 99
----
-1824

query I rowsort
SELECT 16 + - 53 col0
----
-37

query I rowsort
SELECT ALL - 45 + - ( + 28 )
----
-73

query II rowsort
SELECT DISTINCT 70 AS col2, - 70 AS col1
----
70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT 26 + 33 - COUNT( DISTINCT + 42 )
----
58

skipif mysql # not compatible
query I rowsort label-8701
SELECT 26 + 33 - COUNT ( DISTINCT + 42 )
----
58

query I rowsort
SELECT ALL + 45 + - 43 + ( 54 ) col1
----
56

query II rowsort
SELECT DISTINCT 26, 94 col2
----
26
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT ALL 28 AS col0, + COUNT( * ) AS col1
----
28
1

skipif mysql # not compatible
query II rowsort label-8704
SELECT ALL 28 AS col0, + COUNT ( * ) AS col1
----
28
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8705
SELECT DISTINCT + COUNT( DISTINCT 94 ) - 93 + + COUNT( * ) AS col0, + ( + 50 )
----
-91
50

skipif mysql # not compatible
query II rowsort label-8705
SELECT DISTINCT + COUNT ( DISTINCT 94 ) - 93 + + COUNT ( * ) AS col0, + ( + 50 )
----
-91
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8706
SELECT ALL 20 * + 8 AS col1, NULLIF ( 97, - 22 ) + - 98 + + + 26 + + SUM( DISTINCT - CAST( - 22 AS SIGNED ) ) * - 84
----
160
-1823

skipif mysql # not compatible
query II rowsort label-8706
SELECT ALL 20 * + 8 AS col1, NULLIF ( 97, - 22 ) + - 98 + + + 26 + + SUM ( DISTINCT - CAST ( - 22 AS INTEGER ) ) * - 84
----
160
-1823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8707
SELECT - ( - CAST( - 26 AS SIGNED ) )
----
-26

skipif mysql # not compatible
query I rowsort label-8707
SELECT - ( - CAST ( - 26 AS INTEGER ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT 85 * + SUM( DISTINCT + 83 )
----
7055

skipif mysql # not compatible
query I rowsort label-8708
SELECT 85 * + SUM ( DISTINCT + 83 )
----
7055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8709
SELECT ALL - 32 * CAST( NULL AS SIGNED ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - 32 * CAST ( NULL AS INTEGER ) + + + COUNT ( * )
----
NULL

query II rowsort
SELECT + 51, 62 - + 53 AS col2
----
51
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8711
SELECT - 81 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT - 81 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT DISTINCT - NULLIF ( - + 8, + COUNT( * ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT - NULLIF ( - + 8, + COUNT ( * ) ) AS col2
----
8

query I rowsort
SELECT 64 * + 52 col2
----
3328

onlyif mysql # aggregate syntax: 
query II rowsort label-8714
SELECT ALL 62 AS col2, COUNT( * ) AS col1
----
62
1

skipif mysql # not compatible
query II rowsort label-8714
SELECT ALL 62 AS col2, COUNT ( * ) AS col1
----
62
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8715
SELECT DISTINCT + 69 AS col0, 2 DIV - 12 AS col0
----
69
0

skipif mysql # not compatible
query II rowsort label-8715
SELECT DISTINCT + 69 AS col0, 2 / - 12 AS col0
----
69
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT ALL - 16 DIV + - 34
----
0

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL - 16 / + - 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT + NULLIF ( COUNT( * ), + - 66 ) + + ( - + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8717
SELECT + NULLIF ( COUNT ( * ), + - 66 ) + + ( - + COUNT ( * ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT ALL MAX( - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL MAX ( - 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL + NULLIF ( + 86, - COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL + NULLIF ( + 86, - COUNT ( * ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT + COUNT( ALL + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-8720
SELECT + COUNT ( ALL + 34 )
----
1

query II rowsort
SELECT + - 33, 2 AS col1
----
-33
2

query I rowsort
SELECT 21 + + 75 AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8723
SELECT + + COUNT( * ) col1, 41 AS col1
----
1
41

skipif mysql # not compatible
query II rowsort label-8723
SELECT + + COUNT ( * ) col1, 41 AS col1
----
1
41

query I rowsort
SELECT ALL 79 * + 70 + 99 AS col2
----
5629

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT 75 * + - 29 * + COUNT( * ) * + + ( + 72 ) + 5 * 77
----
-156215

skipif mysql # not compatible
query I rowsort label-8725
SELECT 75 * + - 29 * + COUNT ( * ) * + + ( + 72 ) + 5 * 77
----
-156215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8726
SELECT ( - + 34 ) DIV - COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8726
SELECT ( - + 34 ) / - COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL 34 + - - 69 - - + COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL 34 + - - 69 - - + COUNT ( * )
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8728
SELECT + 71 DIV + 7 * COUNT( * ) + - 22 * 31 + - - 70 AS col1
----
-602

skipif mysql # not compatible
query I rowsort label-8728
SELECT + 71 / + 7 * COUNT ( * ) + - 22 * 31 + - - 70 AS col1
----
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT MAX( + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-8729
SELECT MAX ( + 93 )
----
93

query I rowsort
SELECT ALL 10 + 82 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT DISTINCT COUNT( - 15 ) + - - 32
----
33

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT COUNT ( - 15 ) + - - 32
----
33

query I rowsort
SELECT ALL 28 + + ( - 5 ) * + + 21 AS col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8733
SELECT ALL + CAST( NULL AS SIGNED ) + 35 * - 75 col1, - 40 AS col2
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-8733
SELECT ALL + CAST ( NULL AS INTEGER ) + 35 * - 75 col1, - 40 AS col2
----
NULL
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8734
SELECT - 83 * + 24 + + + CAST( NULL AS DECIMAL ) + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT - 83 * + 24 + + + CAST ( NULL AS REAL ) + 19
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8735
SELECT ALL COALESCE ( - + CAST( NULL AS SIGNED ), - - 2 DIV 76 ) + ( - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL COALESCE ( - + CAST ( NULL AS INTEGER ), - - 2 / 76 ) + ( - 33 )
----
-33

query I rowsort
SELECT DISTINCT 63 * - 64 AS col1
----
-4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8737
SELECT - SUM( - 2 ) * - 0 + - - ( + - CAST( 82 AS SIGNED ) ) + MAX( + + 42 )
----
-40

skipif mysql # not compatible
query I rowsort label-8737
SELECT - SUM ( - 2 ) * - 0 + - - ( + - CAST ( 82 AS INTEGER ) ) + MAX ( + + 42 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8738
SELECT COUNT( ALL + 93 ) * - COUNT( * ) AS col0, + 75 * - - 21 AS col0
----
-1
1575

skipif mysql # not compatible
query II rowsort label-8738
SELECT COUNT ( ALL + 93 ) * - COUNT ( * ) AS col0, + 75 * - - 21 AS col0
----
-1
1575

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8739
SELECT 42 + - 91 + - 31 * + ( - CAST( NULL AS SIGNED ) ) AS col2, + 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-8739
SELECT 42 + - 91 + - 31 * + ( - CAST ( NULL AS INTEGER ) ) AS col2, + 73
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + NULLIF ( - COUNT( 11 ), - - 57 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8740
SELECT + NULLIF ( - COUNT ( 11 ), - - 57 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8741
SELECT ALL CASE + - 93 WHEN + 14 * + + 86 THEN NULL WHEN + + 51 - + 24 THEN NULL ELSE 21 END DIV - 50 * + MAX( 39 ) - - + COUNT( * ) + + - 12, 65 AS col2
----
-11
65

skipif mysql # not compatible
query II rowsort label-8741
SELECT ALL CASE + - 93 WHEN + 14 * + + 86 THEN NULL WHEN + + 51 - + 24 THEN NULL ELSE 21 END / - 50 * + MAX ( 39 ) - - + COUNT ( * ) + + - 12, 65 AS col2
----
-11
65

query II rowsort
SELECT DISTINCT 55 - 39, 75 AS col0
----
16
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL ( COUNT( * ) ) * + + COUNT( * ) * + ( - 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL ( COUNT ( * ) ) * + + COUNT ( * ) * + ( - 71 ) AS col1
----
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8744
SELECT ALL - CAST( NULL AS DECIMAL ) - - 75, 78 AS col0
----
NULL
78

skipif mysql # not compatible
query II rowsort label-8744
SELECT ALL - CAST ( NULL AS REAL ) - - 75, 78 AS col0
----
NULL
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT - NULLIF ( + COUNT( ALL + 72 ), + 27 * + - CASE 99 WHEN + 80 * - + 73 + - 86 * - COUNT( * ) THEN NULL ELSE 18 END + - - COUNT( * ) + - 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-8745
SELECT - NULLIF ( + COUNT ( ALL + 72 ), + 27 * + - CASE 99 WHEN + 80 * - + 73 + - 86 * - COUNT ( * ) THEN NULL ELSE 18 END + - - COUNT ( * ) + - 68 )
----
-1

query II rowsort
SELECT + 43 - 31, - 5 AS col1
----
12
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT - COUNT( * ) * - ( + - 86 ) * 33 * 8 - + + 15
----
-22719

skipif mysql # not compatible
query I rowsort label-8747
SELECT - COUNT ( * ) * - ( + - 86 ) * 33 * 8 - + + 15
----
-22719

query I rowsort
SELECT + + 56 * + 4 - + 13
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT - 26 * - COUNT( DISTINCT - 68 ) * - NULLIF ( + + 21, - + ( 49 ) ) * + - 83 + + 32 + + 19 AS col0
----
45369

skipif mysql # not compatible
query I rowsort label-8749
SELECT - 26 * - COUNT ( DISTINCT - 68 ) * - NULLIF ( + + 21, - + ( 49 ) ) * + - 83 + + 32 + + 19 AS col0
----
45369

onlyif mysql # aggregate syntax: 
query II rowsort label-8750
SELECT - 1 + - 72 col0, COUNT( * ) * + 26 AS col2
----
-73
26

skipif mysql # not compatible
query II rowsort label-8750
SELECT - 1 + - 72 col0, COUNT ( * ) * + 26 AS col2
----
-73
26

query II rowsort
SELECT - - 82 - - 36, 45 AS col1
----
118
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT - SUM( + 3 ) * + 1 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8752
SELECT - SUM ( + 3 ) * + 1 AS col0
----
-3

query I rowsort
SELECT DISTINCT + 26 + + 49 * 94 AS col2
----
4632

query I rowsort
SELECT - 86 + + 31 + + - 16
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT - + CAST( NULL AS SIGNED ) * 56 + + CAST( + COUNT( * ) AS SIGNED ) + + + COUNT( * ) * + 45 * + 9 - + - MIN( DISTINCT 75 ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT - + CAST ( NULL AS INTEGER ) * 56 + + CAST ( + COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) * + 45 * + 9 - + - MIN ( DISTINCT 75 ) * + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT ALL - 93 + - COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL - 93 + - COUNT ( * ) AS col2
----
-94

query I rowsort
SELECT ALL + 61 * 40 + - 92 + 58 * 88 + + - 56 * 68 * 36 * - 2
----
281628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8758
SELECT + SUM( - 44 ) AS col2, + 18 - + 10 * + + CAST( NULL AS DECIMAL ) * 22 / - - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-8758
SELECT + SUM ( - 44 ) AS col2, + 18 - + 10 * + + CAST ( NULL AS REAL ) * 22 / - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-44
NULL

query I rowsort
SELECT + 22 * 1 AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8760
SELECT ALL 17 * + 75 + COUNT( * ), 45 AS col2
----
1276
45

skipif mysql # not compatible
query II rowsort label-8760
SELECT ALL 17 * + 75 + COUNT ( * ), 45 AS col2
----
1276
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT - COUNT( * ) - - - 38 + 2 + 79 * - ( + - 56 ) col0
----
4387

skipif mysql # not compatible
query I rowsort label-8761
SELECT - COUNT ( * ) - - - 38 + 2 + 79 * - ( + - 56 ) col0
----
4387

query I rowsort
SELECT ( - 4 ) AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8763
SELECT + NULLIF ( - - 66, - - CAST( 5 AS SIGNED ) )
----
66

skipif mysql # not compatible
query I rowsort label-8763
SELECT + NULLIF ( - - 66, - - CAST ( 5 AS INTEGER ) )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8764
SELECT ALL + 71 AS col2, COUNT( * ) + + 2 AS col1
----
71
3

skipif mysql # not compatible
query II rowsort label-8764
SELECT ALL + 71 AS col2, COUNT ( * ) + + 2 AS col1
----
71
3

query I rowsort
SELECT + 39 + + 86
----
125

query I rowsort
SELECT + 56 * 51
----
2856

query I rowsort
SELECT ALL + ( - - 97 ) AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8768
SELECT DISTINCT + 22 * - - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) - + ( 98 ) * + CAST( NULL AS SIGNED ), - CASE - ( 19 ) WHEN - 96 THEN COUNT( DISTINCT 45 ) * 56 * + 74 * COUNT( * ) WHEN - 36 THEN - 66 ELSE NULL END + - 37 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8768
SELECT DISTINCT + 22 * - - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) - + ( 98 ) * + CAST ( NULL AS INTEGER ), - CASE - ( 19 ) WHEN - 96 THEN COUNT ( DISTINCT 45 ) * 56 * + 74 * COUNT ( * ) WHEN - 36 THEN - 66 ELSE NULL END + - 37 AS col1
----
NULL
NULL

query I rowsort
SELECT DISTINCT 44 * - 62 AS col2
----
-2728

onlyif mysql # aggregate syntax: 
query II rowsort label-8770
SELECT + 96 * + MIN( - - 33 ) col2, - COUNT( * )
----
3168
-1

skipif mysql # not compatible
query II rowsort label-8770
SELECT + 96 * + MIN ( - - 33 ) col2, - COUNT ( * )
----
3168
-1

query II rowsort
SELECT DISTINCT + 93, 64 + - 66 col1
----
93
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT MAX( DISTINCT + + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-8772
SELECT MAX ( DISTINCT + + 51 )
----
51

query I rowsort
SELECT - + 21 - - 31
----
10

query I rowsort
SELECT ALL ( - 84 ) col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL + 49 * + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + 49 * + COUNT ( * )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT DISTINCT 55 / + CAST( NULL AS SIGNED ) * 30 + - 47 + + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT 55 / + CAST ( NULL AS INTEGER ) * 30 + - 47 + + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT DISTINCT + COUNT( * ) * - 57 * + COUNT( - 35 )
----
-57

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT + COUNT ( * ) * - 57 * + COUNT ( - 35 )
----
-57

query I rowsort
SELECT DISTINCT ( - - 63 )
----
63

query I rowsort
SELECT ALL - 89 + + + 31 * - - 37 * 86
----
98553

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8780
SELECT ALL + 30 + + - MAX( 92 ) AS col2, 32 + + + 28 DIV 84
----
-62
32

skipif mysql # not compatible
query II rowsort label-8780
SELECT ALL + 30 + + - MAX ( 92 ) AS col2, 32 + + + 28 / 84
----
-62
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8781
SELECT + + 8 + - ( 54 ) DIV - - 11
----
4

skipif mysql # not compatible
query I rowsort label-8781
SELECT + + 8 + - ( 54 ) / - - 11
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT + 70 * - 53 + MAX( - 48 ) * - 71
----
-302

skipif mysql # not compatible
query I rowsort label-8782
SELECT + 70 * - 53 + MAX ( - 48 ) * - 71
----
-302

query II rowsort
SELECT - 20 AS col0, + 29 - - NULLIF ( + 80, - - 33 )
----
-20
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL + COALESCE ( - - NULLIF ( - - 0, - - MIN( - 33 ) ), - 42 - - COUNT( * ) ) + + 56 + - - 55 * + 16 + + - 75 * 52 AS col0
----
-2964

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL + COALESCE ( - - NULLIF ( - - 0, - - MIN ( - 33 ) ), - 42 - - COUNT ( * ) ) + + 56 + - - 55 * + 16 + + - 75 * 52 AS col0
----
-2964

query I rowsort
SELECT ALL 62 + + 75
----
137

query I rowsort
SELECT - - 84 * + 79 AS col2
----
6636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8787
SELECT DISTINCT ( + 80 ) AS col2, SUM( + CAST( NULL AS SIGNED ) )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-8787
SELECT DISTINCT ( + 80 ) AS col2, SUM ( + CAST ( NULL AS INTEGER ) )
----
80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT - CAST( NULL AS SIGNED ) + + ( - AVG ( - NULLIF ( + 49, - - 44 ) ) ) + + + 27 * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT - CAST ( NULL AS INTEGER ) + + ( - AVG ( - NULLIF ( + 49, - - 44 ) ) ) + + + 27 * - 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8789
SELECT 85 DIV 56 + - COUNT( * ) DIV + 44 + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-8789
SELECT 85 / 56 + - COUNT ( * ) / + 44 + - 45
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT ALL + COUNT( + 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL + COUNT ( + 56 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8791
SELECT COUNT( + - 79 ) DIV + - CAST( + 43 AS SIGNED ) - 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8791
SELECT COUNT ( + - 79 ) / + - CAST ( + 43 AS INTEGER ) - 3 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT - MIN( DISTINCT - NULLIF ( + - 23, - + 35 ) ) * 12 * 73 * 82 + - - 22
----
-1652114

skipif mysql # not compatible
query I rowsort label-8792
SELECT - MIN ( DISTINCT - NULLIF ( + - 23, - + 35 ) ) * 12 * 73 * 82 + - - 22
----
-1652114

query I rowsort
SELECT ALL + ( - 71 ) * 17 AS col0
----
-1207

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL + MIN( DISTINCT + - 49 ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL + MIN ( DISTINCT + - 49 ) col1
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8795
SELECT DISTINCT + CASE + + 54 WHEN - 11 THEN 73 * - 43 * + 30 WHEN - CAST( + 31 AS DECIMAL ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT + CASE + + 54 WHEN - 11 THEN 73 * - 43 * + 30 WHEN - CAST ( + 31 AS REAL ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8796
SELECT DISTINCT + COUNT( - - 24 ) AS col1, + 87 AS col1
----
1
87

skipif mysql # not compatible
query II rowsort label-8796
SELECT DISTINCT + COUNT ( - - 24 ) AS col1, + 87 AS col1
----
1
87

query II rowsort
SELECT ALL - 77 * 73, NULLIF ( - 72, + 58 ) AS col2
----
-5621
-72

query I rowsort
SELECT - 9 + + 96
----
87

query I rowsort
SELECT ALL + 14 - + 61 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT 16 * - COUNT( * ) * 69 AS col0
----
-1104

skipif mysql # not compatible
query I rowsort label-8800
SELECT 16 * - COUNT ( * ) * 69 AS col0
----
-1104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8801
SELECT CASE - 82 WHEN - - 68 * + - COUNT( * ) THEN 53 - - COUNT( * ) END * + ( 75 ) + - CASE WHEN - 72 <> - - CASE + COUNT( * ) WHEN - 97 THEN - - 20 * + - 94 END + - 81 THEN + - CAST( + + 51 AS SIGNED ) END + - 11 * + NULLIF ( - + 64, 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT CASE - 82 WHEN - - 68 * + - COUNT ( * ) THEN 53 - - COUNT ( * ) END * + ( 75 ) + - CASE WHEN - 72 <> - - CASE + COUNT ( * ) WHEN - 97 THEN - - 20 * + - 94 END + - 81 THEN + - CAST ( + + 51 AS INTEGER ) END + - 11 * + NULLIF ( - + 64, 80 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT 22 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-8802
SELECT 22 / - 55
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT DISTINCT - 32 DIV ( 41 ) * + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT - 32 / ( 41 ) * + 92 AS col2
----
0

query I rowsort
SELECT 70 * + 79
----
5530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8805
SELECT 77 + - 7 + - 12 + + - COUNT( * ) * + CAST( 33 AS SIGNED ) + - 3
----
22

skipif mysql # not compatible
query I rowsort label-8805
SELECT 77 + - 7 + - 12 + + - COUNT ( * ) * + CAST ( 33 AS INTEGER ) + - 3
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8806
SELECT ALL 61 * MIN( ALL - - COALESCE ( + + 82, 75 * - 61 - - 27 + + 97 DIV - 26 ) ) * - 29 - - 47 AS col1
----
-145011

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL 61 * MIN ( ALL - - COALESCE ( + + 82, 75 * - 61 - - 27 + + 97 / - 26 ) ) * - 29 - - 47 AS col1
----
-145011

onlyif mysql # DIV for integer division: 
query II rowsort label-8807
SELECT 48 DIV + 25 col0, 50 + + 88 AS col1
----
1
138

skipif mysql # not compatible
query II rowsort label-8807
SELECT 48 / + 25 col0, 50 + + 88 AS col1
----
1
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT DISTINCT - ( CASE + - 21 WHEN - 87 THEN - - 20 END ) / 12 * - 43 - - - NULLIF ( - 57, + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT - ( CASE + - 21 WHEN - 87 THEN - - 20 END ) / 12 * - 43 - - - NULLIF ( - 57, + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - 99 AS col0
----
NULL

query I rowsort
SELECT ALL - ( - 81 ) AS col1
----
81

query I rowsort
SELECT 70 * + 25 AS col2
----
1750

onlyif mysql # DIV for integer division: 
query I rowsort label-8811
SELECT + 52 DIV - NULLIF ( + 66, + ( + 74 ) ) * + 25 * - 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8811
SELECT + 52 / - NULLIF ( + 66, + ( + 74 ) ) * + 25 * - 11 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT ALL - 0 + - 99 + + + 48 + + 38 - - CASE + + MAX( ALL + 89 ) WHEN 92 THEN NULL WHEN 34 * + 14 + + - 77 * + 61 THEN + 12 / + + 71 END * + 41 + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL - 0 + - 99 + + + 48 + + 38 - - CASE + + MAX ( ALL + 89 ) WHEN 92 THEN NULL WHEN 34 * + 14 + + - 77 * + 61 THEN + 12 / + + 71 END * + 41 + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL - + 48 * - MIN( + - 51 ) AS col0
----
-2448

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL - + 48 * - MIN ( + - 51 ) AS col0
----
-2448

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8814
SELECT ALL 5 + - 85, + COALESCE ( + COUNT( DISTINCT - 84 ), + + 23, 62 DIV - 87 + ( + + 31 ) ) AS col1
----
-80
1

skipif mysql # not compatible
query II rowsort label-8814
SELECT ALL 5 + - 85, + COALESCE ( + COUNT ( DISTINCT - 84 ), + + 23, 62 / - 87 + ( + + 31 ) ) AS col1
----
-80
1

query I rowsort
SELECT DISTINCT ( - 12 ) AS col0
----
-12

query I rowsort
SELECT + 84 + - 31 * + 97 + + + 89 col0
----
-2834

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL + NULLIF ( - 52, 17 * 49 + COUNT( * ) - - + 69 * - - 5 * - COUNT( 78 ) ) + 99 col2
----
47

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL + NULLIF ( - 52, 17 * 49 + COUNT ( * ) - - + 69 * - - 5 * - COUNT ( 78 ) ) + 99 col2
----
47

query I rowsort
SELECT ALL - ( 89 ) + + 22
----
-67

query I rowsort
SELECT + 41 - 25 * + + 29
----
-684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8820
SELECT SUM( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT SUM ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT ALL - COUNT( - + 36 ) + - 67 + - + 71 AS col2
----
-139

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL - COUNT ( - + 36 ) + - 67 + - + 71 AS col2
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL COUNT( * ) + + 12 * COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL COUNT ( * ) + + 12 * COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT + 66 + - - 49 * + COALESCE ( - - COUNT( * ), + 90 )
----
115

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT + 66 + - - 49 * + COALESCE ( - - COUNT ( * ), + 90 )
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-8824
SELECT ALL 74 DIV + 76 + - - 30 - + - 54 * + 85 * - + NULLIF ( + + 9, + 68 ) - ( + 53 ) * - 10 * - + 46 AS col1
----
-65660

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL 74 / + 76 + - - 30 - + - 54 * + 85 * - + NULLIF ( + + 9, + 68 ) - ( + 53 ) * - 10 * - + 46 AS col1
----
-65660

query II rowsort
SELECT ALL + 16 - - 47 * - 95 * - - 49 AS col0, 31 + 66 * 75 AS col1
----
-218769
4981

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT MAX( 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8826
SELECT MAX ( 99 ) AS col1
----
99

query I rowsort
SELECT 1 * + 61 AS col2
----
61

query I rowsort
SELECT 36 * + - 39 AS col0
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT DISTINCT 86 * + + MIN( 51 )
----
4386

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT 86 * + + MIN ( 51 )
----
4386

query II rowsort
SELECT DISTINCT 43 AS col1, - ( - 30 )
----
43
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT DISTINCT 4 - - COUNT( * ) * + + 69
----
73

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT 4 - - COUNT ( * ) * + + 69
----
73

query I rowsort
SELECT 26 * 80
----
2080

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT ALL - 18 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL - 18 / + 60
----
0

query I rowsort
SELECT 35 * - 31 col2
----
-1085

query II rowsort
SELECT DISTINCT + 0 * 49 * + 3 AS col2, - 48 * - - 34
----
0
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL - SUM( - 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL - SUM ( - 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL - COUNT( - 95 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL - COUNT ( - 95 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8838
SELECT - CAST( + 37 AS SIGNED ) * + - CAST( 2 AS SIGNED ) / + - 92 * - COUNT( * ) + + 1 / + 23 * + - CAST( NULL AS SIGNED ) / + 7 - + - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8838
SELECT - CAST ( + 37 AS INTEGER ) * + - CAST ( 2 AS INTEGER ) / + - 92 * - COUNT ( * ) + + 1 / + 23 * + - CAST ( NULL AS INTEGER ) / + 7 - + - 42 AS col2
----
NULL

query I rowsort
SELECT 61 * + - 95
----
-5795

query I rowsort
SELECT 19 * - + 5 + - ( NULLIF ( - 12, 63 ) )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT 36, + 96 * - COUNT( * ) AS col0
----
36
-96

skipif mysql # not compatible
query II rowsort label-8841
SELECT 36, + 96 * - COUNT ( * ) AS col0
----
36
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8842
SELECT 41 + - COALESCE ( 75, + ( CAST( + - 66 AS SIGNED ) ) + + - 84 + COUNT( * ) + - + 57 + - 27 ) + 5 DIV + 90 DIV - 12 + - - MIN( ALL - + 56 )
----
-90

skipif mysql # not compatible
query I rowsort label-8842
SELECT 41 + - COALESCE ( 75, + ( CAST ( + - 66 AS INTEGER ) ) + + - 84 + COUNT ( * ) + - + 57 + - 27 ) + 5 / + 90 / - 12 + - - MIN ( ALL - + 56 )
----
-90

query I rowsort
SELECT 51 + COALESCE ( - 87, 80 ) col1
----
-36

query I rowsort
SELECT ALL - 56 + + 45
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT DISTINCT - COUNT( + 89 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT - COUNT ( + 89 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT DISTINCT - 10 + + COUNT( * ) * COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT - 10 + + COUNT ( * ) * COUNT ( * ) AS col2
----
-9

query I rowsort
SELECT ALL + 56 + + 80
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT + 50 * + - COUNT( * ) - 38 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8848
SELECT + 50 * + - COUNT ( * ) - 38 AS col2
----
-88

query I rowsort
SELECT 44 * 5 + + 33 - 52 AS col1
----
201

query I rowsort
SELECT DISTINCT - - ( - 4 ) AS col0
----
-4

query I rowsort
SELECT + - NULLIF ( + 46, + ( + 79 ) ) col1
----
-46

query I rowsort
SELECT ALL + 63 + + 96
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8853
SELECT COUNT( * ) + + NULLIF ( CASE - + 68 WHEN + 57 - 1 THEN - MAX( - - CAST( NULL AS SIGNED ) ) WHEN + ( - 71 ) THEN NULL END, 0 - + SUM( + + 37 ) * - - 73 * - AVG ( - 35 ) + 51 * COUNT( + 87 ) ) / - 51 * - + 9 + - 71 * - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT COUNT ( * ) + + NULLIF ( CASE - + 68 WHEN + 57 - 1 THEN - MAX ( - - CAST ( NULL AS INTEGER ) ) WHEN + ( - 71 ) THEN NULL END, 0 - + SUM ( + + 37 ) * - - 73 * - AVG ( - 35 ) + 51 * COUNT ( + 87 ) ) / - 51 * - + 9 + - 71 * - 59 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8854
SELECT ALL - + COALESCE ( 68, + 35 + - CASE 20 WHEN 36 THEN + 26 WHEN - - 70 THEN NULL ELSE + - ( + 63 ) - + 34 + + 78 * + - 46 DIV + ( - 62 ) * - CAST( NULL AS SIGNED ) + + COUNT( * ) END - - + COUNT( * ), - - ( + 42 ) ) + + - 48 AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL - + COALESCE ( 68, + 35 + - CASE 20 WHEN 36 THEN + 26 WHEN - - 70 THEN NULL ELSE + - ( + 63 ) - + 34 + + 78 * + - 46 / + ( - 62 ) * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) END - - + COUNT ( * ), - - ( + 42 ) ) + + - 48 AS col1
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT - 37 * + 40 + - + 68 + - 29 - 17 - - COUNT( * ) AS col2
----
-1593

skipif mysql # not compatible
query I rowsort label-8855
SELECT - 37 * + 40 + - + 68 + - 29 - 17 - - COUNT ( * ) AS col2
----
-1593

query I rowsort
SELECT - 39 + - 23 AS col2
----
-62

query I rowsort
SELECT - 8 - - 19 + 14
----
25

query I rowsort
SELECT 3 + - 94
----
-91

query I rowsort
SELECT ALL + - 53 + + 6
----
-47

query I rowsort
SELECT 33 * - 65 col1
----
-2145

query I rowsort
SELECT ALL - 6 * 11
----
-66

query I rowsort
SELECT ALL 5 + 33 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT + - MIN( 99 ) * - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT + - MIN ( 99 ) * - COUNT ( * )
----
99

query I rowsort
SELECT 90 + - 68
----
22

query II rowsort
SELECT ALL - 92 col2, 11 AS col1
----
-92
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8866
SELECT COALESCE ( - 96, COUNT( * ) * 58 DIV - 86 + - + 95 DIV + - 59 ) + + - 81 - - COUNT( * ) DIV + 21
----
-177

skipif mysql # not compatible
query I rowsort label-8866
SELECT COALESCE ( - 96, COUNT ( * ) * 58 / - 86 + - + 95 / + - 59 ) + + - 81 - - COUNT ( * ) / + 21
----
-177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8867
SELECT COUNT( * ) * - 45 DIV + ( 83 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8867
SELECT COUNT ( * ) * - 45 / + ( 83 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT 16 + - COUNT( * ) col2
----
15

skipif mysql # not compatible
query I rowsort label-8868
SELECT 16 + - COUNT ( * ) col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8869
SELECT DISTINCT 40 AS col2, MIN( + - 56 )
----
40
-56

skipif mysql # not compatible
query II rowsort label-8869
SELECT DISTINCT 40 AS col2, MIN ( + - 56 )
----
40
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8870
SELECT - CASE + - 71 WHEN + 68 + - 90 * + 64 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN 40 * 75 + - COUNT( * ) THEN ( + + 23 ) ELSE - 25 * ( - 73 ) * - 41 * - MIN( COALESCE ( - 8, - + 58 * 18 + - - CAST( NULL AS SIGNED ) ) ) + + 16 END
----
598584

skipif mysql # not compatible
query I rowsort label-8870
SELECT - CASE + - 71 WHEN + 68 + - 90 * + 64 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN 40 * 75 + - COUNT ( * ) THEN ( + + 23 ) ELSE - 25 * ( - 73 ) * - 41 * - MIN ( COALESCE ( - 8, - + 58 * 18 + - - CAST ( NULL AS INTEGER ) ) ) + + 16 END
----
598584

query I rowsort
SELECT + 97 + 11 AS col0
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT + 56 DIV + + 6
----
9

skipif mysql # not compatible
query I rowsort label-8872
SELECT + 56 / + + 6
----
9

query I rowsort
SELECT + 73 + + - COALESCE ( - ( 72 ), - ( - 30 ) ) - 89
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8874
SELECT + COUNT( * ) DIV - 72 * - 91 + - 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8874
SELECT + COUNT ( * ) / - 72 * - 91 + - 38 AS col0
----
-38

query I rowsort
SELECT DISTINCT 85 * - 43 AS col2
----
-3655

query I rowsort
SELECT ALL 16 * - 59 + - + 69 AS col2
----
-1013

query I rowsort
SELECT + NULLIF ( - + 82, - + 28 ) AS col2
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8878
SELECT + COUNT( * ) DIV - - 67
----
0

skipif mysql # not compatible
query I rowsort label-8878
SELECT + COUNT ( * ) / - - 67
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8879
SELECT ALL - 81 * - 83 * - CAST( NULL AS SIGNED ) + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL - 81 * - 83 * - CAST ( NULL AS INTEGER ) + 15
----
NULL

query I rowsort
SELECT + 2 * - 19 AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8881
SELECT ALL CAST( - 70 AS SIGNED ) * COUNT( * ) * - - 72 * + 79 + - MIN( DISTINCT - 3 ) DIV COUNT( * ) * - + MAX( 30 )
----
-398250

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL CAST ( - 70 AS INTEGER ) * COUNT ( * ) * - - 72 * + 79 + - MIN ( DISTINCT - 3 ) / COUNT ( * ) * - + MAX ( 30 )
----
-398250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT + - 4 * - 82 / - CAST( NULL AS SIGNED ) * + - 20 + 82 + 42 + - COUNT( * ) + - COUNT( * ) - - 90 + - 44 * + 43 * + COUNT( + 53 ) * - + SUM( + 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT + - 4 * - 82 / - CAST ( NULL AS INTEGER ) * + - 20 + 82 + 42 + - COUNT ( * ) + - COUNT ( * ) - - 90 + - 44 * + 43 * + COUNT ( + 53 ) * - + SUM ( + 74 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT - NULLIF ( 0, - - SUM( - - 57 ) * 22 * + + 88 ) * + 67 + - + 22 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-8883
SELECT - NULLIF ( 0, - - SUM ( - - 57 ) * 22 * + + 88 ) * + 67 + - + 22 AS col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8884
SELECT + + 33 col2, + COUNT( * ) DIV - 14 + - + 38 + - 44 * + 88 * + 0 + + 98 - + - 28
----
33
88

skipif mysql # not compatible
query II rowsort label-8884
SELECT + + 33 col2, + COUNT ( * ) / - 14 + - + 38 + - 44 * + 88 * + 0 + + 98 - + - 28
----
33
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8885
SELECT + 26 AS col2, CAST( - COUNT( * ) AS SIGNED )
----
26
-1

skipif mysql # not compatible
query II rowsort label-8885
SELECT + 26 AS col2, CAST ( - COUNT ( * ) AS INTEGER )
----
26
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8886
SELECT ALL + - COUNT( * ), 6 * 98 AS col0
----
-1
588

skipif mysql # not compatible
query II rowsort label-8886
SELECT ALL + - COUNT ( * ), 6 * 98 AS col0
----
-1
588

onlyif mysql # aggregate syntax: 
query II rowsort label-8887
SELECT + COUNT( * ) AS col0, - 49
----
1
-49

skipif mysql # not compatible
query II rowsort label-8887
SELECT + COUNT ( * ) AS col0, - 49
----
1
-49

query II rowsort
SELECT ALL 14 * + 26 + - 98 + - 9, + COALESCE ( - 7, - 77 ) AS col2
----
257
-7

query I rowsort
SELECT ALL - + 34 * - 40 + - - 1
----
1361

query I rowsort
SELECT + ( - 96 ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8891
SELECT ALL + + COUNT( * ), 35 AS col0
----
1
35

skipif mysql # not compatible
query II rowsort label-8891
SELECT ALL + + COUNT ( * ), 35 AS col0
----
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT ALL - + 35 * - 14 + - + 70 - - - COUNT( * ) AS col0
----
419

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL - + 35 * - 14 + - + 70 - - - COUNT ( * ) AS col0
----
419

query I rowsort
SELECT ALL + 66 * - 82 AS col2
----
-5412

query I rowsort
SELECT DISTINCT 76 * + + 12 - - ( - 37 ) * + - 57
----
3021

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT - 82 + + 47 DIV 66
----
-82

skipif mysql # not compatible
query I rowsort label-8895
SELECT - 82 + + 47 / 66
----
-82

query II rowsort
SELECT DISTINCT 6 AS col2, - 20
----
6
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL + NULLIF ( - 56, + 14 + 59 + - - COUNT( * ) * + COUNT( * ) ) - 39 col0
----
-95

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL + NULLIF ( - 56, + 14 + 59 + - - COUNT ( * ) * + COUNT ( * ) ) - 39 col0
----
-95

query I rowsort
SELECT - 26 * 51 AS col0
----
-1326

query I rowsort
SELECT - ( + 13 ) - + 92
----
-105

query II rowsort
SELECT ALL + 61 AS col1, - 46 AS col1
----
61
-46

query I rowsort
SELECT - 53 - - + 24
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT - + COUNT( * ) * COUNT( * ) * 44 + + COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-8902
SELECT - + COUNT ( * ) * COUNT ( * ) * 44 + + COUNT ( * ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8903
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8904
SELECT DISTINCT + COUNT( * ) DIV + 16
----
0

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT + COUNT ( * ) / + 16
----
0

query I rowsort
SELECT ALL COALESCE ( 95, - 93 )
----
95

query I rowsort
SELECT ALL 86 * 88 AS col1
----
7568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8907
SELECT - SUM( DISTINCT - + 98 ) DIV 53 * - + 66 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8907
SELECT - SUM ( DISTINCT - + 98 ) / 53 * - + 66 AS col2
----
-66

query I rowsort
SELECT ALL + ( - ( - 61 ) ) * - + 97
----
-5917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8909
SELECT + COUNT( * ) * - 4 DIV - - 64 * + 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8909
SELECT + COUNT ( * ) * - 4 / - - 64 * + 39 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8910
SELECT ALL + 18 * 5 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + 18 * 5 * + CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT - 80 * 56 AS col0, 46
----
-4480
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT ALL - CAST( - 78 AS SIGNED ) * 68 AS col1
----
5304

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL - CAST ( - 78 AS INTEGER ) * 68 AS col1
----
5304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8913
SELECT DISTINCT NULLIF ( + CAST( + 92 AS SIGNED ), - MIN( DISTINCT + 63 ) + - + 2 ) * 25 * + - 61 AS col0
----
-140300

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT NULLIF ( + CAST ( + 92 AS INTEGER ), - MIN ( DISTINCT + 63 ) + - + 2 ) * 25 * + - 61 AS col0
----
-140300

query II rowsort
SELECT ALL 44 + + 62 AS col1, + 59 AS col2
----
106
59

query II rowsort
SELECT - ( - 63 ) AS col2, + 89 AS col0
----
63
89

query I rowsort
SELECT ALL ( - ( - - 4 ) )
----
-4

query I rowsort
SELECT DISTINCT 79 + + 66
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT CAST( 28 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-8918
SELECT CAST ( 28 AS INTEGER )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8919
SELECT DISTINCT 55 DIV + + COUNT( * ) + + 5
----
60

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT 55 / + + COUNT ( * ) + + 5
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8920
SELECT ALL 24 DIV - + 4 + + ( - MIN( ALL + - 50 ) ) + 95
----
139

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL 24 / - + 4 + + ( - MIN ( ALL + - 50 ) ) + 95
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT + COALESCE ( + SUM( - 21 ), - 75 ) * 34 + 56 + - ( - 38 )
----
-620

skipif mysql # not compatible
query I rowsort label-8921
SELECT + COALESCE ( + SUM ( - 21 ), - 75 ) * 34 + 56 + - ( - 38 )
----
-620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT + ( 18 ) DIV + + COUNT( * ) + - COALESCE ( - 64, - - COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-8922
SELECT + ( 18 ) / + + COUNT ( * ) + - COALESCE ( - 64, - - COUNT ( * ) )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT ALL CAST( NULL AS SIGNED ) / + 6 / + 29 + - 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL CAST ( NULL AS INTEGER ) / + 6 / + 29 + - 58 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8924
SELECT + NULLIF ( - 22, - 36 * - 43 + ( + 29 ) + + 73 * COALESCE ( + + 53, ( + ( CAST( NULL AS SIGNED ) ) ) ) + + 40 - - COUNT( * ) ) * - + CAST( COUNT( * ) AS SIGNED ) + MIN( 1 ) * + - 15 * - 53 AS col1
----
817

skipif mysql # not compatible
query I rowsort label-8924
SELECT + NULLIF ( - 22, - 36 * - 43 + ( + 29 ) + + 73 * COALESCE ( + + 53, ( + ( CAST ( NULL AS INTEGER ) ) ) ) + + 40 - - COUNT ( * ) ) * - + CAST ( COUNT ( * ) AS INTEGER ) + MIN ( 1 ) * + - 15 * - 53 AS col1
----
817

query I rowsort
SELECT DISTINCT + 5 * + CASE + 59 WHEN - 90 THEN - - 54 * + + 43 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT - MAX( ALL 5 ) * + 90 - - 23 + 27
----
-400

skipif mysql # not compatible
query I rowsort label-8926
SELECT - MAX ( ALL 5 ) * + 90 - - 23 + 27
----
-400

onlyif mysql # aggregate syntax: 
query II rowsort label-8927
SELECT + - 67 + + + MAX( ALL + - 33 ) AS col2, 22
----
-100
22

skipif mysql # not compatible
query II rowsort label-8927
SELECT + - 67 + + + MAX ( ALL + - 33 ) AS col2, 22
----
-100
22

query I rowsort
SELECT + + 50 * + 83
----
4150

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT + + 92 + + + COUNT( - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-8929
SELECT + + 92 + + + COUNT ( - 93 )
----
93

query II rowsort
SELECT ALL - + 57 * + 67 - + - 4 AS col2, 78 * + 74 AS col2
----
-3815
5772

query I rowsort
SELECT - COALESCE ( - - 61, + 90 + + + 24 )
----
-61

query II rowsort
SELECT ALL 0 * - 55 AS col2, 42
----
0
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8933
SELECT - 70 * 18 DIV - - ( + NULLIF ( - 44, 97 DIV + NULLIF ( + COUNT( * ), - 84 ) * + CAST( + + 24 AS SIGNED ) * 79 + + 19 * - + ( - 1 ) * + - NULLIF ( + 62, 92 * + + MIN( DISTINCT + 92 ) + + COUNT( * ) + + 94 DIV + 40 * - 29 ) * - - COUNT( * ) * 72 * + NULLIF ( + - 55, + 45 ) ) ) - + ( + COUNT( * ) ) * + 35 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8933
SELECT - 70 * 18 / - - ( + NULLIF ( - 44, 97 / + NULLIF ( + COUNT ( * ), - 84 ) * + CAST ( + + 24 AS INTEGER ) * 79 + + 19 * - + ( - 1 ) * + - NULLIF ( + 62, 92 * + + MIN ( DISTINCT + 92 ) + + COUNT ( * ) + + 94 / + 40 * - 29 ) * - - COUNT ( * ) * 72 * + NULLIF ( + - 55, + 45 ) ) ) - + ( + COUNT ( * ) ) * + 35 AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8934
SELECT - + 33 * 49 + - - 64 + + - 18 * - 55 * + - 15 + - COUNT( * ) DIV 78 * + 18 + + 66 DIV + 23 AS col0
----
-16401

skipif mysql # not compatible
query I rowsort label-8934
SELECT - + 33 * 49 + - - 64 + + - 18 * - 55 * + - 15 + - COUNT ( * ) / 78 * + 18 + + 66 / + 23 AS col0
----
-16401

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT ALL 74 * - 81 - + + 33 * + ( + MAX( DISTINCT 98 ) )
----
-9228

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL 74 * - 81 - + + 33 * + ( + MAX ( DISTINCT 98 ) )
----
-9228

query I rowsort
SELECT DISTINCT + + ( 24 )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8937
SELECT - 90 * + 32 + - COALESCE ( 88, + + COUNT( * ) + + COALESCE ( 47, - 96 DIV + 31 ), - + 26 )
----
-2968

skipif mysql # not compatible
query I rowsort label-8937
SELECT - 90 * + 32 + - COALESCE ( 88, + + COUNT ( * ) + + COALESCE ( 47, - 96 / + 31 ), - + 26 )
----
-2968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT - + CAST( 91 AS SIGNED ) * - CAST( - - CAST( - - 37 AS SIGNED ) AS SIGNED ) AS col1
----
3367

skipif mysql # not compatible
query I rowsort label-8938
SELECT - + CAST ( 91 AS INTEGER ) * - CAST ( - - CAST ( - - 37 AS INTEGER ) AS INTEGER ) AS col1
----
3367

query I rowsort
SELECT + - ( - - 64 ) AS col0
----
-64

query I rowsort
SELECT - NULLIF ( 29, - 59 ) AS col0
----
-29

query I rowsort
SELECT ALL + - 98 * - 67 AS col1
----
6566

query I rowsort
SELECT ALL 29 * + - 92 + 14 * + 63
----
-1786

onlyif mysql # DIV for integer division: 
query I rowsort label-8943
SELECT DISTINCT + COALESCE ( 95, - - 42 DIV + 76 * - 30 + 1 ) * - 9
----
-855

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT + COALESCE ( 95, - - 42 / + 76 * - 30 + 1 ) * - 9
----
-855

onlyif mysql # aggregate syntax: 
query II rowsort label-8944
SELECT DISTINCT 36 AS col1, 89 + - - ( - ( - 46 ) ) * - MAX( - - 50 ) col0
----
36
-2211

skipif mysql # not compatible
query II rowsort label-8944
SELECT DISTINCT 36 AS col1, 89 + - - ( - ( - 46 ) ) * - MAX ( - - 50 ) col0
----
36
-2211

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8945
SELECT CAST( NULL AS DECIMAL ) / + COALESCE ( - NULLIF ( 61, CAST( - + COALESCE ( - ( + 36 ), - 36 + - 17 ) AS DECIMAL ) * + COALESCE ( 92, + ( + COUNT( * ) ) ) ), + 25 * - - 21 + - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT CAST ( NULL AS REAL ) / + COALESCE ( - NULLIF ( 61, CAST ( - + COALESCE ( - ( + 36 ), - 36 + - 17 ) AS REAL ) * + COALESCE ( 92, + ( + COUNT ( * ) ) ) ), + 25 * - - 21 + - 22 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8946
SELECT 52 * + 32 DIV - 8
----
-208

skipif mysql # not compatible
query I rowsort label-8946
SELECT 52 * + 32 / - 8
----
-208

onlyif mysql # aggregate syntax: 
query II rowsort label-8947
SELECT DISTINCT 94 AS col2, + COUNT( * ) AS col2
----
94
1

skipif mysql # not compatible
query II rowsort label-8947
SELECT DISTINCT 94 AS col2, + COUNT ( * ) AS col2
----
94
1

query I rowsort
SELECT ALL - ( + 43 ) + - - 7 + ( + ( + 87 ) ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ALL - 96 + 99 - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL - 96 + 99 - COUNT ( * )
----
2

query I rowsort
SELECT 41 + - + 23 + 7
----
25

query I rowsort
SELECT 77 * - + 36 AS col1
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT 51 + + - COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8952
SELECT 51 + + - COUNT ( * ) AS col1
----
50

query I rowsort
SELECT ALL + 24 + 19 AS col2
----
43

query I rowsort
SELECT ALL - 69 * - 3 AS col2
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-8955
SELECT ALL - 97 DIV 44 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - 97 / 44 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT DISTINCT + ( + 54 ) + + COUNT( * ) - 41 * 93 * - 83
----
316534

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT + ( + 54 ) + + COUNT ( * ) - 41 * 93 * - 83
----
316534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT DISTINCT 32 * + - ( 69 ) * 73 + CAST( + - 49 AS SIGNED ) + 59 + 35 * + 65 * + + 63 AS col2
----
-17849

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT 32 * + - ( 69 ) * 73 + CAST ( + - 49 AS INTEGER ) + 59 + 35 * + 65 * + + 63 AS col2
----
-17849

query I rowsort
SELECT ALL 91 * - 15 AS col1
----
-1365

query I rowsort
SELECT ALL + 24 + + - 1 AS col2
----
23

query I rowsort
SELECT ALL - 70 * 76 * + + 53
----
-281960

query II rowsort
SELECT - 23 AS col2, + 65
----
-23
65

query I rowsort
SELECT ALL + 97 * - 9
----
-873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT 66 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT 66 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8964
SELECT 57 AS col0, + NULLIF ( + 64, - NULLIF ( + COALESCE ( 6, + + 94 ), - - CAST( - COUNT( * ) AS SIGNED ) ) ) + - 26 AS col0
----
57
38

skipif mysql # not compatible
query II rowsort label-8964
SELECT 57 AS col0, + NULLIF ( + 64, - NULLIF ( + COALESCE ( 6, + + 94 ), - - CAST ( - COUNT ( * ) AS INTEGER ) ) ) + - 26 AS col0
----
57
38

query I rowsort
SELECT ALL - NULLIF ( + 66, + 59 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8966
SELECT ALL 31 - + CAST( NULL AS SIGNED ) + ( - ( + 37 ) ) - - ( - + 46 ) + + COUNT( ALL - + CAST( NULL AS SIGNED ) ) + + 48 * - 83 + + ( ( - - 53 ) ) * 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL 31 - + CAST ( NULL AS INTEGER ) + ( - ( + 37 ) ) - - ( - + 46 ) + + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) + + 48 * - 83 + + ( ( - - 53 ) ) * 2 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - - 70 AS col1, - 35
----
70
-35

query I rowsort
SELECT 39 * 67 * + - 13 * - - 80
----
-2717520

query I rowsort
SELECT DISTINCT - - ( + 9 ) AS col1
----
9

query I rowsort
SELECT DISTINCT - + 93 col0
----
-93

query I rowsort
SELECT ALL + 49 - - - 83
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8972
SELECT ( COALESCE ( + - 39, NULLIF ( + 69, + 51 + COUNT( * ) * MIN( ALL - - 99 ) + + + 82 * 82 + - 81 ) DIV 2 * 18 + CAST( ( - 51 ) AS SIGNED ), - + 27, 26 ) ) * + 77 * + 95 + 58
----
-285227

skipif mysql # not compatible
query I rowsort label-8972
SELECT ( COALESCE ( + - 39, NULLIF ( + 69, + 51 + COUNT ( * ) * MIN ( ALL - - 99 ) + + + 82 * 82 + - 81 ) / 2 * 18 + CAST ( ( - 51 ) AS INTEGER ), - + 27, 26 ) ) * + 77 * + 95 + 58
----
-285227

query I rowsort
SELECT + 50 * - 87
----
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT + + COUNT( ALL + + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-8974
SELECT + + COUNT ( ALL + + 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT + - COALESCE ( + MIN( + + ( - 10 ) ), + - 27 )
----
10

skipif mysql # not compatible
query I rowsort label-8975
SELECT + - COALESCE ( + MIN ( + + ( - 10 ) ), + - 27 )
----
10

query I rowsort
SELECT DISTINCT 56 * - 92 + + + 6 col2
----
-5146

query I rowsort
SELECT DISTINCT ( + 77 ) + 2 col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ( - 90 ) * COUNT( * ) * + 3 + - 17 - COUNT( * ) + + 39 * - 78
----
-3330

skipif mysql # not compatible
query I rowsort label-8978
SELECT ( - 90 ) * COUNT ( * ) * + 3 + - 17 - COUNT ( * ) + + 39 * - 78
----
-3330

query I rowsort
SELECT ALL + 1 * + ( - ( + 26 ) )
----
-26

query I rowsort
SELECT ALL + 28 + + ( - 41 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT DISTINCT 26 + - CASE + 29 WHEN - - 2 THEN NULL WHEN - + COUNT( * ) THEN + 33 * + 76 + 17 WHEN + 16 THEN NULL END * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT 26 + - CASE + 29 WHEN - - 2 THEN NULL WHEN - + COUNT ( * ) THEN + 33 * + 76 + 17 WHEN + 16 THEN NULL END * + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8982
SELECT 76 DIV - + 61 AS col1, COUNT( * ) * - COUNT( * ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8982
SELECT 76 / - + 61 AS col1, COUNT ( * ) * - COUNT ( * ) AS col2
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL - 92 + + 95 * + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL - 92 + + 95 * + COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT - MIN( ALL - + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-8984
SELECT - MIN ( ALL - + 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT 60 * NULLIF ( - 20, COUNT( * ) ) * - + 70
----
84000

skipif mysql # not compatible
query I rowsort label-8985
SELECT 60 * NULLIF ( - 20, COUNT ( * ) ) * - + 70
----
84000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8986
SELECT DISTINCT - COUNT( * ) DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT - COUNT ( * ) / + 80
----
0

query I rowsort
SELECT + 98 - + COALESCE ( - - 42, 45 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8988
SELECT + CAST( 21 AS SIGNED ) * + CAST( NULL AS SIGNED ) + - 22 - + NULLIF ( + + 71, + - COUNT( * ) * 12 ) + + COALESCE ( + COUNT( * ), - COUNT( * ), + COUNT( DISTINCT + + 47 ) ) + 9 * - - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT + CAST ( 21 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + - 22 - + NULLIF ( + + 71, + - COUNT ( * ) * 12 ) + + COALESCE ( + COUNT ( * ), - COUNT ( * ), + COUNT ( DISTINCT + + 47 ) ) + 9 * - - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT - 48 * + COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8989
SELECT - 48 * + COUNT ( * ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT DISTINCT - 87 * + 28 + COUNT( * ) + - 51 + + 77 + 35 + + - 89 * + - 32 AS col1
----
474

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT - 87 * + 28 + COUNT ( * ) + - 51 + + 77 + 35 + + - 89 * + - 32 AS col1
----
474

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT - + 96 DIV + 71 + 61 DIV - + ( 36 ) + 26
----
24

skipif mysql # not compatible
query I rowsort label-8991
SELECT - + 96 / + 71 + 61 / - + ( 36 ) + 26
----
24

query I rowsort
SELECT 26 + 85 - 53 AS col2
----
58

query I rowsort
SELECT - 14 * - 2 AS col0
----
28

query I rowsort
SELECT DISTINCT - 26 * + 23
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL ( COUNT( * ) ) * + + 38 + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL ( COUNT ( * ) ) * + + 38 + COUNT ( * ) AS col2
----
39

query I rowsort
SELECT 82 * 67 + + 71 AS col1
----
5565

query I rowsort
SELECT DISTINCT 34 + - - 45 col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT MAX( DISTINCT - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-8998
SELECT MAX ( DISTINCT - 86 )
----
-86

query I rowsort
SELECT - 0 * - 70 + + + 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT COUNT( ALL + 69 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9000
SELECT COUNT ( ALL + 69 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT + MIN( DISTINCT - 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-9001
SELECT + MIN ( DISTINCT - 42 ) AS col2
----
-42

query I rowsort
SELECT + 10 + - 22
----
-12

query I rowsort
SELECT ALL 74 + - COALESCE ( + 20, 3 ) AS col2
----
54

query II rowsort
SELECT ALL 52, 13 + - 77 col1
----
52
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT COALESCE ( + - 40, 98 ) * - 58 + MAX( ALL 80 ) AS col2
----
2400

skipif mysql # not compatible
query I rowsort label-9005
SELECT COALESCE ( + - 40, 98 ) * - 58 + MAX ( ALL 80 ) AS col2
----
2400

query I rowsort
SELECT - ( - - ( + 18 ) ) col1
----
-18

query I rowsort
SELECT + 85 + - 84
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT + COUNT( * ) * 77 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9008
SELECT + COUNT ( * ) * 77 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT - ( 84 ) * COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-9009
SELECT - ( 84 ) * COUNT ( * )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9010
SELECT + CASE - - 31 WHEN - - 44 THEN ( - + 55 ) WHEN CASE - - 64 WHEN + 60 THEN NULL WHEN + - 46 THEN + 14 ELSE - 10 + 76 END THEN NULL ELSE - ( CAST( NULL AS SIGNED ) ) END + - ( - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT + CASE - - 31 WHEN - - 44 THEN ( - + 55 ) WHEN CASE - - 64 WHEN + 60 THEN NULL WHEN + - 46 THEN + 14 ELSE - 10 + 76 END THEN NULL ELSE - ( CAST ( NULL AS INTEGER ) ) END + - ( - 82 )
----
NULL

query I rowsort
SELECT - 67 - + 37 AS col0
----
-104

query I rowsort
SELECT + 37 + - 89 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT DISTINCT - COUNT( ALL - 83 ) * + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT - COUNT ( ALL - 83 ) * + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT ALL - 93 * - + 33 * COUNT( * )
----
3069

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL - 93 * - + 33 * COUNT ( * )
----
3069

query I rowsort
SELECT - - 88 + + 33 * + - 73
----
-2321

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL - SUM( 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL - SUM ( 13 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9017
SELECT - + ( COALESCE ( COUNT( * ), + + CAST( NULL AS SIGNED ), 60 + - ( + ( + 31 ) ) ) ), COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9017
SELECT - + ( COALESCE ( COUNT ( * ), + + CAST ( NULL AS INTEGER ), 60 + - ( + ( + 31 ) ) ) ), COUNT ( * ) AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT - + 13 + - 61 + + 19 * + MIN( ALL - 69 ) * 87 * + 84
----
-9580862

skipif mysql # not compatible
query I rowsort label-9018
SELECT - + 13 + - 61 + + 19 * + MIN ( ALL - 69 ) * 87 * + 84
----
-9580862

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ALL - 49 * + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL - 49 * + COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT + - COUNT( * ) * - 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9020
SELECT + - COUNT ( * ) * - 50 AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9021
SELECT - - 38 + + 60 * - CAST( - 39 AS SIGNED )
----
2378

skipif mysql # not compatible
query I rowsort label-9021
SELECT - - 38 + + 60 * - CAST ( - 39 AS INTEGER )
----
2378

query I rowsort
SELECT - 46 + + - 11
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT - 50 DIV - 41
----
1

skipif mysql # not compatible
query I rowsort label-9023
SELECT - 50 / - 41
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9024
SELECT DISTINCT 37 DIV 34 + 85 * 89 * - ( + - ( - 46 ) )
----
-347989

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT 37 / 34 + 85 * 89 * - ( + - ( - 46 ) )
----
-347989

onlyif mysql # DIV for integer division: 
query I rowsort label-9025
SELECT ALL + + 67 DIV CASE + - 31 WHEN + + 6 THEN + 24 ELSE - ( - 11 ) END + - + 34
----
-28

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL + + 67 / CASE + - 31 WHEN + + 6 THEN + 24 ELSE - ( - 11 ) END + - + 34
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT + CASE - - 58 WHEN - + 46 * + - 22 THEN - COUNT( * ) WHEN 45 * - 76 THEN + 43 / COUNT( * ) * + + 99 * - + 64 + + - ( 52 ) ELSE + COUNT( * ) * + 69 + - 9 END AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9026
SELECT + CASE - - 58 WHEN - + 46 * + - 22 THEN - COUNT ( * ) WHEN 45 * - 76 THEN + 43 / COUNT ( * ) * + + 99 * - + 64 + + - ( 52 ) ELSE + COUNT ( * ) * + 69 + - 9 END AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9027
SELECT DISTINCT + 48 / COUNT( * ) + 3 + - CAST( NULL AS SIGNED ) - + - COUNT( * ) + + - COALESCE ( + 23, - 61 + - 6 + + CAST( NULL AS SIGNED ) ) * + 23 * + ( MAX( + + 92 ) ) * - - COUNT( * ) * + - 29 * + COUNT( * ) * COUNT( * ), 68 + + 11 + - - ( COUNT( * ) ) * - 91 * + 94 * 11 + + COUNT( * ) / + 29 + + 92 + CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9027
SELECT DISTINCT + 48 / COUNT ( * ) + 3 + - CAST ( NULL AS INTEGER ) - + - COUNT ( * ) + + - COALESCE ( + 23, - 61 + - 6 + + CAST ( NULL AS INTEGER ) ) * + 23 * + ( MAX ( + + 92 ) ) * - - COUNT ( * ) * + - 29 * + COUNT ( * ) * COUNT ( * ), 68 + + 11 + - - ( COUNT ( * ) ) * - 91 * + 94 * 11 + + COUNT ( * ) / + 29 + + 92 + CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT - + 11 * - 74 * + - 46 + ( + 97 ) * - COUNT( * ) AS col0
----
-37541

skipif mysql # not compatible
query I rowsort label-9028
SELECT - + 11 * - 74 * + - 46 + ( + 97 ) * - COUNT ( * ) AS col0
----
-37541

onlyif mysql # DIV for integer division: 
query I rowsort label-9029
SELECT ALL + ( - 66 ) DIV - - 64
----
-1

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL + ( - 66 ) / - - 64
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9030
SELECT + - 42 * - CAST( NULL AS SIGNED ) * 8 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT + - 42 * - CAST ( NULL AS INTEGER ) * 8 - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT CASE - 91 WHEN 42 THEN + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT CASE - 91 WHEN 42 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + - 25 * + 35
----
-875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9033
SELECT DISTINCT + 12 * NULLIF ( - 80, - COUNT( * ) ) * + MAX( - CAST( NULL AS SIGNED ) ) * + MAX( + 71 ) + + - 32 + - - MAX( 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT + 12 * NULLIF ( - 80, - COUNT ( * ) ) * + MAX ( - CAST ( NULL AS INTEGER ) ) * + MAX ( + 71 ) + + - 32 + - - MAX ( 75 ) AS col0
----
NULL

query I rowsort
SELECT - 92 - + + ( - COALESCE ( - 54, + 84 ) ) * 92
----
-5060

query I rowsort
SELECT - 34 * - 2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT + COALESCE ( + + COUNT( * ), - 61 + + ( + + 49 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9036
SELECT + COALESCE ( + + COUNT ( * ), - 61 + + ( + + 49 ) )
----
1

query I rowsort
SELECT NULLIF ( - 92, 9 ) AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9038
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - CAST( + 56 AS SIGNED ) + 21 AS col1, + 19
----
NULL
-35
19

skipif mysql # not compatible
query III rowsort label-9038
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - CAST ( + 56 AS INTEGER ) + 21 AS col1, + 19
----
NULL
-35
19

onlyif mysql # DIV for integer division: 
query II rowsort label-9039
SELECT DISTINCT + 19 AS col1, - 84 DIV - 40 + + 67 col1
----
19
69

skipif mysql # not compatible
query II rowsort label-9039
SELECT DISTINCT + 19 AS col1, - 84 / - 40 + + 67 col1
----
19
69

query I rowsort
SELECT DISTINCT 96 * - - 88 + + 39 AS col2
----
8487

query I rowsort
SELECT DISTINCT + ( - - 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL 71 * - COUNT( * ) - - - 9
----
-80

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL 71 * - COUNT ( * ) - - - 9
----
-80

query I rowsort
SELECT COALESCE ( 32, + 18 + + 49 + + - 49, ( + + 56 ) ) AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9044
SELECT COALESCE ( + + 25, - MIN( - 58 ) DIV - + COUNT( * ) - - NULLIF ( COUNT( * ), - COALESCE ( - 57, + MAX( + + 22 ) ) ), 5 )
----
25

skipif mysql # not compatible
query I rowsort label-9044
SELECT COALESCE ( + + 25, - MIN ( - 58 ) / - + COUNT ( * ) - - NULLIF ( COUNT ( * ), - COALESCE ( - 57, + MAX ( + + 22 ) ) ), 5 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT MIN( DISTINCT + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-9045
SELECT MIN ( DISTINCT + 21 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9046
SELECT ALL + 65 DIV + ( + 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL + 65 / + ( + 61 ) AS col2
----
1

query I rowsort
SELECT - ( - - 47 ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT DISTINCT 14 * 75 * - + 59 * COUNT( * ) * 92 AS col0
----
-5699400

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT 14 * 75 * - + 59 * COUNT ( * ) * 92 AS col0
----
-5699400

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT ALL + 66 DIV + + 93
----
0

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL + 66 / + + 93
----
0

query II rowsort
SELECT ALL 17 AS col1, - 87
----
17
-87

query I rowsort
SELECT - COALESCE ( - - 5, - 3 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT DISTINCT + 48 * - COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT + 48 * - COUNT ( * ) AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9053
SELECT ALL SUM( 46 ), - 47 * 95 * - CAST( 64 AS SIGNED ) * - + 56 AS col1
----
46
-16002560

skipif mysql # not compatible
query II rowsort label-9053
SELECT ALL SUM ( 46 ), - 47 * 95 * - CAST ( 64 AS INTEGER ) * - + 56 AS col1
----
46
-16002560

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT - ( + SUM( ALL + 50 ) ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-9054
SELECT - ( + SUM ( ALL + 50 ) ) AS col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT ALL 77 DIV - 25
----
-3

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL 77 / - 25
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9056
SELECT + - AVG ( ALL + CAST( NULL AS SIGNED ) ) - + 24 + - - CAST( - 28 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) - + 24 + - - CAST ( - 28 AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 30 col1, 20 AS col0
----
-30
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT + 21 * - + CASE + 58 WHEN + MIN( - + 74 ) THEN NULL ELSE + 36 END col1
----
-756

skipif mysql # not compatible
query I rowsort label-9058
SELECT + 21 * - + CASE + 58 WHEN + MIN ( - + 74 ) THEN NULL ELSE + 36 END col1
----
-756

query II rowsort
SELECT - 64, 89 * + 70 AS col0
----
-64
6230

query II rowsort
SELECT ALL - 1 + 40 - 32 + - 17 AS col2, 12 col2
----
-10
12

query I rowsort
SELECT ALL + 37 * - ( - + 83 ) AS col1
----
3071

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT + 87 * - ( 69 ) + 45 + COUNT( * ) AS col0
----
-5957

skipif mysql # not compatible
query I rowsort label-9062
SELECT + 87 * - ( 69 ) + 45 + COUNT ( * ) AS col0
----
-5957

query I rowsort
SELECT ALL + + 39 + - 87 + + 99
----
51

query II rowsort
SELECT DISTINCT 9 AS col0, + 38
----
9
38

query II rowsort
SELECT ALL - 46 + 22 + - 67 + ( 88 ) * - + 59, 2 AS col2
----
-5283
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9066
SELECT 41 DIV - MAX( - + 8 ) - + 14 + MIN( ALL 64 ) - - 82 + 6 DIV + 42 + - 42 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9066
SELECT 41 / - MAX ( - + 8 ) - + 14 + MIN ( ALL 64 ) - - 82 + 6 / + 42 + - 42 AS col2
----
95

onlyif mysql # DIV for integer division: 
query II rowsort label-9067
SELECT - 49 AS col2, - 0 DIV 96 AS col2
----
-49
0

skipif mysql # not compatible
query II rowsort label-9067
SELECT - 49 AS col2, - 0 / 96 AS col2
----
-49
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9068
SELECT ALL 7 + 49 * COUNT( * ) * - - 36 DIV - COUNT( * ) AS col1
----
-1757

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL 7 + 49 * COUNT ( * ) * - - 36 / - COUNT ( * ) AS col1
----
-1757

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9069
SELECT + ( 21 ) * + + COUNT( * ) + - + 80 DIV + 24
----
18

skipif mysql # not compatible
query I rowsort label-9069
SELECT + ( 21 ) * + + COUNT ( * ) + - + 80 / + 24
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9070
SELECT - 64 / + 8 * + - 35 + - 27 + 5 + - 59 + + CAST( NULL AS SIGNED ) + COUNT( * ) + ( + 28 ) * - - COUNT( * ) * CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) + 82 + + - 78 + + 85 * + + ( + - 59 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9070
SELECT - 64 / + 8 * + - 35 + - 27 + 5 + - 59 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) + ( + 28 ) * - - COUNT ( * ) * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) + 82 + + - 78 + + 85 * + + ( + - 59 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9071
SELECT + + 0 * - + 63 + - 75 - - 36 DIV 39 * - NULLIF ( - - 40, + - 28 )
----
-75

skipif mysql # not compatible
query I rowsort label-9071
SELECT + + 0 * - + 63 + - 75 - - 36 / 39 * - NULLIF ( - - 40, + - 28 )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9072
SELECT ALL - + COALESCE ( + 76, 17 - + 82, - 24 DIV + CASE 9 WHEN 77 + + 20 * - 30 THEN - + 41 WHEN 8 * - COUNT( * ) THEN NULL ELSE NULL END + COALESCE ( + 28, - - 3, ( + + 95 ) * + 21 + 46 ) ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL - + COALESCE ( + 76, 17 - + 82, - 24 / + CASE 9 WHEN 77 + + 20 * - 30 THEN - + 41 WHEN 8 * - COUNT ( * ) THEN NULL ELSE NULL END + COALESCE ( + 28, - - 3, ( + + 95 ) * + 21 + 46 ) ) col2
----
-76

query I rowsort
SELECT DISTINCT - - ( + - 53 )
----
-53

query I rowsort
SELECT ALL + 42 - + 14 * - + 36 + 78 col2
----
624

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9075
SELECT DISTINCT + 51 DIV - + 86, 99 + + MAX( + 44 ) AS col1
----
0
143

skipif mysql # not compatible
query II rowsort label-9075
SELECT DISTINCT + 51 / - + 86, 99 + + MAX ( + 44 ) AS col1
----
0
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9076
SELECT ALL - 79 * + 81, - 22 * + + COUNT( * ) / - - 22 * 12 + + - 52 * + NULLIF ( + 59, - COUNT( * ) * + 6 - MIN( + - CAST( NULL AS SIGNED ) ) + + ( + - 4 ) + - 0 ) * - CAST( NULL AS SIGNED ) * - 4 - + CASE 75 WHEN 76 THEN 87 END AS col2
----
-6399
NULL

skipif mysql # not compatible
query II rowsort label-9076
SELECT ALL - 79 * + 81, - 22 * + + COUNT ( * ) / - - 22 * 12 + + - 52 * + NULLIF ( + 59, - COUNT ( * ) * + 6 - MIN ( + - CAST ( NULL AS INTEGER ) ) + + ( + - 4 ) + - 0 ) * - CAST ( NULL AS INTEGER ) * - 4 - + CASE 75 WHEN 76 THEN 87 END AS col2
----
-6399
NULL

query I rowsort
SELECT 60 * 35
----
2100

query I rowsort
SELECT DISTINCT + 61 - + + 25
----
36

query II rowsort
SELECT ALL + 79 * - - 47 AS col2, 50 col2
----
3713
50

query II rowsort
SELECT DISTINCT + 62 * - 92 AS col0, + COALESCE ( 73, 24 ) AS col2
----
-5704
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT 1 - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9081
SELECT 1 - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT COUNT( * ) * + + MAX( ALL + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9082
SELECT COUNT ( * ) * + + MAX ( ALL + 13 ) AS col2
----
13

query I rowsort
SELECT 14 + 58
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT NULLIF ( - 16, - + 19 ) + - MIN( DISTINCT 37 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-9084
SELECT NULLIF ( - 16, - + 19 ) + - MIN ( DISTINCT 37 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT - MIN( + + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-9085
SELECT - MIN ( + + 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT + 45 + - 71 + + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-9086
SELECT + 45 + - 71 + + COUNT ( * )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT COUNT( * ) - + ( 78 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9087
SELECT COUNT ( * ) - + ( 78 ) AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9088
SELECT ( MAX( ALL 71 ) ) + + NULLIF ( 58, + 37 DIV + + 26 ) col1, 40 DIV - + COUNT( * ) - - 44 + - NULLIF ( - 97, + 22 ) AS col0
----
129
101

skipif mysql # not compatible
query II rowsort label-9088
SELECT ( MAX ( ALL 71 ) ) + + NULLIF ( 58, + 37 / + + 26 ) col1, 40 / - + COUNT ( * ) - - 44 + - NULLIF ( - 97, + 22 ) AS col0
----
129
101

query I rowsort
SELECT ALL - + 96 + + ( - 29 )
----
-125

query I rowsort
SELECT DISTINCT + + 33 + + 29
----
62

query I rowsort
SELECT DISTINCT - 8 + - 14 AS col1
----
-22

query II rowsort
SELECT ALL 11 + - 43 col2, - 67
----
-32
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9093
SELECT 8 + + 7 * + 96 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT 8 + + 7 * + 96 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 48 + + 41 AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9095
SELECT CASE + COALESCE ( - 22, + - 29 ) WHEN ( ( - CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN + - 51 THEN + MAX( ALL + 57 ) END * + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9095
SELECT CASE + COALESCE ( - 22, + - 29 ) WHEN ( ( - CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN + - 51 THEN + MAX ( ALL + 57 ) END * + 40 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9096
SELECT 47 + 24 AS col0, + CAST( - - 16 AS SIGNED ) AS col0
----
71
16

skipif mysql # not compatible
query II rowsort label-9096
SELECT 47 + 24 AS col0, + CAST ( - - 16 AS INTEGER ) AS col0
----
71
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9097
SELECT ALL - CAST( NULL AS SIGNED ) + COALESCE ( - 14, + COUNT( * ), - COUNT( * ) * - 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL - CAST ( NULL AS INTEGER ) + COALESCE ( - 14, + COUNT ( * ), - COUNT ( * ) * - 81 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT ( + 46 ) DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-9098
SELECT ( + 46 ) / - 80
----
0

query I rowsort
SELECT ALL 57 - - 96
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9100
SELECT + CAST( + CAST( + + 99 AS SIGNED ) AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-9100
SELECT + CAST ( + CAST ( + + 99 AS INTEGER ) AS INTEGER )
----
99

query I rowsort
SELECT DISTINCT 57 * + - 50
----
-2850

query II rowsort
SELECT ALL - 99 AS col1, 9 AS col0
----
-99
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9103
SELECT CAST( + 92 AS SIGNED ) * - 33 * CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9103
SELECT CAST ( + 92 AS INTEGER ) * - 33 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT COALESCE ( - 82, - 8 * SUM( 89 ) ) * + + 54 col2
----
-4428

skipif mysql # not compatible
query I rowsort label-9104
SELECT COALESCE ( - 82, - 8 * SUM ( 89 ) ) * + + 54 col2
----
-4428

query I rowsort
SELECT ALL 62 - 86 col1
----
-24

query I rowsort
SELECT ALL 39 * 57
----
2223

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT 96 * + COUNT( * ) * - 94
----
-9024

skipif mysql # not compatible
query I rowsort label-9107
SELECT 96 * + COUNT ( * ) * - 94
----
-9024

query II rowsort
SELECT DISTINCT - 44 AS col2, 93
----
-44
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9109
SELECT DISTINCT - COUNT( * ) AS col2, COUNT( * ) DIV 91 - - 90 + - - NULLIF ( - 94, 68 * + 7 ) + + 2 * 93 * + - 64 * + - SUM( - + 51 )
----
-1
-607108

skipif mysql # not compatible
query II rowsort label-9109
SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) / 91 - - 90 + - - NULLIF ( - 94, 68 * + 7 ) + + 2 * 93 * + - 64 * + - SUM ( - + 51 )
----
-1
-607108

query II rowsort
SELECT DISTINCT - 18 col0, + 69 + + 63
----
-18
132

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9111
SELECT DISTINCT - 2 DIV + 68 * + 21 * 76 AS col0, + ( 79 ) - - - CAST( NULL AS DECIMAL ) DIV 17
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9111
SELECT DISTINCT - 2 / + 68 * + 21 * 76 AS col0, + ( 79 ) - - - CAST ( NULL AS REAL ) / 17
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT ALL - COUNT( - + 85 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL - COUNT ( - + 85 ) col2
----
-1

query I rowsort
SELECT DISTINCT 55 + + ( - 50 )
----
5

query I rowsort
SELECT 5 - + 32 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL - MIN( - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL - MIN ( - 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT - COUNT( ALL + + 5 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9116
SELECT - COUNT ( ALL + + 5 ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9117
SELECT DISTINCT + NULLIF ( - COUNT( * ), ( + - 16 ) * - - 97 ) * - CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN - CAST( NULL AS SIGNED ) * 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT + NULLIF ( - COUNT ( * ), ( + - 16 ) * - - 97 ) * - CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) * 62 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9118
SELECT 54 DIV - 92 * + 3
----
0

skipif mysql # not compatible
query I rowsort label-9118
SELECT 54 / - 92 * + 3
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9119
SELECT - 42 * + + 64 + 28 + COUNT( * ) - + - 35 * ( + - 59 ) * 37 DIV + COUNT( * )
----
-79064

skipif mysql # not compatible
query I rowsort label-9119
SELECT - 42 * + + 64 + 28 + COUNT ( * ) - + - 35 * ( + - 59 ) * 37 / + COUNT ( * )
----
-79064

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT DISTINCT + + 31 * + COUNT( + - 80 ) col2
----
31

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT + + 31 * + COUNT ( + - 80 ) col2
----
31

query II rowsort
SELECT 60, + 40 AS col0
----
60
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9122
SELECT - - 92 AS col1, + COUNT( * ) DIV + 97 * - + 88 - 2 * + - 80 * 38 * + 6 AS col2
----
92
36480

skipif mysql # not compatible
query II rowsort label-9122
SELECT - - 92 AS col1, + COUNT ( * ) / + 97 * - + 88 - 2 * + - 80 * 38 * + 6 AS col2
----
92
36480

query II rowsort
SELECT DISTINCT - + 18 + - - 88 * 6, - 62 * 99 AS col2
----
510
-6138

query I rowsort
SELECT COALESCE ( + 83, - 57 + + 30 + - - NULLIF ( + 92, 31 ) ) AS col2
----
83

query I rowsort
SELECT ALL - 18 + + 11 AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9126
SELECT + NULLIF ( - ( SUM( 39 ) ), + 81 + - + 78 ) * 89 - + + 61 * COUNT( * ) * - 89 + - 69 - - 16 + 25 * + - 83 * - COUNT( * ) * - - COALESCE ( 22, + 89 * CASE COUNT( * ) WHEN ( COUNT( * ) ) THEN NULL WHEN + 22 THEN - 25 ELSE + + 85 END * 32 * - 58 * 30 * 74 + + COUNT( * ) + - 26 DIV + + 65 ) * + COUNT( * ) * 10 + + 3 col1
----
458408

skipif mysql # not compatible
query I rowsort label-9126
SELECT + NULLIF ( - ( SUM ( 39 ) ), + 81 + - + 78 ) * 89 - + + 61 * COUNT ( * ) * - 89 + - 69 - - 16 + 25 * + - 83 * - COUNT ( * ) * - - COALESCE ( 22, + 89 * CASE COUNT ( * ) WHEN ( COUNT ( * ) ) THEN NULL WHEN + 22 THEN - 25 ELSE + + 85 END * 32 * - 58 * 30 * 74 + + COUNT ( * ) + - 26 / + + 65 ) * + COUNT ( * ) * 10 + + 3 col1
----
458408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9127
SELECT ALL 22, + 52 DIV - CAST( + ( COALESCE ( + COUNT( ALL + NULLIF ( - 58, 25 + - 39 ) ), - - ( + 54 ) * + - 9 + + 88, - + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col0
----
22
-52

skipif mysql # not compatible
query II rowsort label-9127
SELECT ALL 22, + 52 / - CAST ( + ( COALESCE ( + COUNT ( ALL + NULLIF ( - 58, 25 + - 39 ) ), - - ( + 54 ) * + - 9 + + 88, - + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col0
----
22
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL COUNT( * ) * - 61 * + 82
----
-5002

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL COUNT ( * ) * - 61 * + 82
----
-5002

onlyif mysql # aggregate syntax: 
query II rowsort label-9129
SELECT 16 col2, COUNT( * ) * - 32 AS col2
----
16
-32

skipif mysql # not compatible
query II rowsort label-9129
SELECT 16 col2, COUNT ( * ) * - 32 AS col2
----
16
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT - - 72 * + 58 + + - 44 DIV - 4 AS col2
----
4187

skipif mysql # not compatible
query I rowsort label-9130
SELECT - - 72 * + 58 + + - 44 / - 4 AS col2
----
4187

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT DISTINCT - SUM( - - 40 ) * MAX( ALL - 87 ) - + 80 * - + 33 + CASE + 87 WHEN + - COUNT( * ) + - - 71 THEN - - 31 WHEN AVG ( ALL 76 ) THEN NULL ELSE - 76 END
----
6044

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT - SUM ( - - 40 ) * MAX ( ALL - 87 ) - + 80 * - + 33 + CASE + 87 WHEN + - COUNT ( * ) + - - 71 THEN - - 31 WHEN AVG ( ALL 76 ) THEN NULL ELSE - 76 END
----
6044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT + CAST( - 48 AS SIGNED ) * - 37 * + 79 AS col0
----
140304

skipif mysql # not compatible
query I rowsort label-9132
SELECT + CAST ( - 48 AS INTEGER ) * - 37 * + 79 AS col0
----
140304

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT DISTINCT + MIN( + 32 ) * + - 40 * - 85
----
108800

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT + MIN ( + 32 ) * + - 40 * - 85
----
108800

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT - MIN( DISTINCT + + 49 ) * - + 35
----
1715

skipif mysql # not compatible
query I rowsort label-9134
SELECT - MIN ( DISTINCT + + 49 ) * - + 35
----
1715

onlyif mysql # DIV for integer division: 
query I rowsort label-9135
SELECT ALL 56 DIV + 29 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL 56 / + 29 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9136
SELECT + 8 / - + CAST( 21 AS DECIMAL ) + + + ( AVG ( ALL - 19 ) ) + - 85 * - 24 * - MAX( ALL + - CAST( NULL AS SIGNED ) ) * - MIN( 25 ) + - ( 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT + 8 / - + CAST ( 21 AS REAL ) + + + ( AVG ( ALL - 19 ) ) + - 85 * - 24 * - MAX ( ALL + - CAST ( NULL AS INTEGER ) ) * - MIN ( 25 ) + - ( 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT + CAST( NULL AS SIGNED ) * 35 * - 75 * 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT + CAST ( NULL AS INTEGER ) * 35 * - 75 * 99 AS col1
----
NULL

query I rowsort
SELECT ALL 85 * 50
----
4250

query I rowsort
SELECT CASE 84 WHEN + 94 THEN - 87 END
----
NULL

query I rowsort
SELECT ALL - 47 * + 6 + + + 64 AS col0
----
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL - 36 * COUNT( * ) + + COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL - 36 * COUNT ( * ) + + COUNT ( * ) AS col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9142
SELECT CASE + - 82 WHEN 75 THEN + 5 + - 93 + + 28 / - + COUNT( * ) * + 10 + 54 WHEN + - 13 / 26 * - - 59 * - - 12 + 50 + - 26 * 78 THEN - 19 / + COUNT( * ) * + 8 * - 2 + - 22 + + + NULLIF ( - COUNT( ALL CAST( + 51 AS SIGNED ) ), - 64 ) / - 25 - + 21 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT CASE + - 82 WHEN 75 THEN + 5 + - 93 + + 28 / - + COUNT ( * ) * + 10 + 54 WHEN + - 13 / 26 * - - 59 * - - 12 + 50 + - 26 * 78 THEN - 19 / + COUNT ( * ) * + 8 * - 2 + - 22 + + + NULLIF ( - COUNT ( ALL CAST ( + 51 AS INTEGER ) ), - 64 ) / - 25 - + 21 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9143
SELECT + 49 + COALESCE ( - 98, + + 91 DIV - + 11 * + ( - NULLIF ( - 25, - MIN( DISTINCT ( 32 ) ) * CAST( NULL AS SIGNED ) ) ) - + 54, 73 * - 56 DIV + 10 + CASE + - ( - CASE - 82 WHEN COUNT( * ) - - 82 THEN NULL ELSE 17 END ) WHEN 70 * - - COUNT( * ) + + - 96 + COALESCE ( + 11, SUM( + 52 ) ) THEN NULL WHEN - CAST( NULL AS SIGNED ) + - - COALESCE ( 24, + ( - 52 ) ) * - + CASE + 78 WHEN + ( + 87 ) THEN NULL WHEN + - 48 THEN - 2 END DIV - - 72 THEN 22 END ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-9143
SELECT + 49 + COALESCE ( - 98, + + 91 / - + 11 * + ( - NULLIF ( - 25, - MIN ( DISTINCT ( 32 ) ) * CAST ( NULL AS INTEGER ) ) ) - + 54, 73 * - 56 / + 10 + CASE + - ( - CASE - 82 WHEN COUNT ( * ) - - 82 THEN NULL ELSE 17 END ) WHEN 70 * - - COUNT ( * ) + + - 96 + COALESCE ( + 11, SUM ( + 52 ) ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) + - - COALESCE ( 24, + ( - 52 ) ) * - + CASE + 78 WHEN + ( + 87 ) THEN NULL WHEN + - 48 THEN - 2 END / - - 72 THEN 22 END ) col2
----
-49

query I rowsort
SELECT + 7 * - + 38
----
-266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9145
SELECT ALL 13 * 69 DIV + COUNT( * ) AS col0
----
897

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL 13 * 69 / + COUNT ( * ) AS col0
----
897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9146
SELECT ALL + + COUNT( * ) * SUM( DISTINCT 53 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL + + COUNT ( * ) * SUM ( DISTINCT 53 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9147
SELECT + + COUNT( * ) * + 11 DIV - + 54 col2
----
0

skipif mysql # not compatible
query I rowsort label-9147
SELECT + + COUNT ( * ) * + 11 / - + 54 col2
----
0

query I rowsort
SELECT DISTINCT 32 + - - 39
----
71

query I rowsort
SELECT + - 84 * + 44 AS col1
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT DISTINCT + + COUNT( * ) * - + 13 + - - 7 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT + + COUNT ( * ) * - + 13 + - - 7 AS col1
----
-6

query I rowsort
SELECT + 43 + 15 * + + 81 AS col0
----
1258

query I rowsort
SELECT ALL 12 - 40 col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL 17 * COUNT( * ) * 61
----
1037

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL 17 * COUNT ( * ) * 61
----
1037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT - 56 + - CAST( - + 90 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-9154
SELECT - 56 + - CAST ( - + 90 AS INTEGER )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT ALL + + 40 - + + COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + + 40 - + + COUNT ( * ) AS col1
----
39

query I rowsort
SELECT ALL - 37 * - + 49 AS col1
----
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT - - COUNT( * ) + 19 col1
----
20

skipif mysql # not compatible
query I rowsort label-9157
SELECT - - COUNT ( * ) + 19 col1
----
20

query I rowsort
SELECT ALL + NULLIF ( 64, + - 80 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9159
SELECT - - 77 + 71 + - COUNT( DISTINCT - - 32 ) * - 17, 6 * + - 79 AS col2
----
165
-474

skipif mysql # not compatible
query II rowsort label-9159
SELECT - - 77 + 71 + - COUNT ( DISTINCT - - 32 ) * - 17, 6 * + - 79 AS col2
----
165
-474

query II rowsort
SELECT 7 AS col1, + 2 col1
----
7
2

query I rowsort
SELECT - ( 19 ) + 83
----
64

query I rowsort
SELECT ALL - 20 * - 37
----
740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9163
SELECT DISTINCT + COALESCE ( - + 62, - MAX( - + ( + 0 ) ) DIV 52 * - SUM( ALL - - 88 ) ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT + COALESCE ( - + 62, - MAX ( - + ( + 0 ) ) / 52 * - SUM ( ALL - - 88 ) ) AS col1
----
-62

query II rowsort
SELECT + 89 AS col1, + 2 + + 80
----
89
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT - MIN( + + 51 ) * 79 AS col0
----
-4029

skipif mysql # not compatible
query I rowsort label-9165
SELECT - MIN ( + + 51 ) * 79 AS col0
----
-4029

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9166
SELECT ALL - 3 DIV - NULLIF ( - 4, + - COUNT( * ) ) * + 91 + + 10 - - 75 * + COUNT( * ) - + ( + 62 ) * + - 93 col1, - 38 AS col2
----
5851
-38

skipif mysql # not compatible
query II rowsort label-9166
SELECT ALL - 3 / - NULLIF ( - 4, + - COUNT ( * ) ) * + 91 + + 10 - - 75 * + COUNT ( * ) - + ( + 62 ) * + - 93 col1, - 38 AS col2
----
5851
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9167
SELECT CAST( + 61 AS SIGNED ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9167
SELECT CAST ( + 61 AS INTEGER ) AS col0
----
61

query I rowsort
SELECT + 85 + - 63
----
22

query I rowsort
SELECT + 44 * 64 AS col2
----
2816

query I rowsort
SELECT - 31 - + 68 col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9171
SELECT - 49 * + 69 / - + MAX( ALL CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT - 49 * + 69 / - + MAX ( ALL CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT ALL + 85 + + 29
----
114

query II rowsort
SELECT DISTINCT - 43 AS col0, - 91 AS col1
----
-43
-91

query I rowsort
SELECT 14 * + - 40
----
-560

query II rowsort
SELECT ALL - 17 col1, 63 AS col2
----
-17
63

query I rowsort
SELECT DISTINCT 17 - - 44 * 14 * 17 AS col2
----
10489

query II rowsort
SELECT + + 63 AS col0, 26
----
63
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT + SUM( + 71 ) * - + 56 * 96
----
-381696

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT + SUM ( + 71 ) * - + 56 * 96
----
-381696

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL - MIN( + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL - MIN ( + 25 )
----
-25

query I rowsort
SELECT - + NULLIF ( 26, 79 ) AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9181
SELECT - 88 * ( - + 36 ) * + 10 + + + CAST( NULL AS SIGNED ), 37 / + CAST( NULL AS SIGNED ) * + 92 * + - CAST( NULL AS SIGNED ) + - - 14
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9181
SELECT - 88 * ( - + 36 ) * + 10 + + + CAST ( NULL AS INTEGER ), 37 / + CAST ( NULL AS INTEGER ) * + 92 * + - CAST ( NULL AS INTEGER ) + - - 14
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT + SUM( - + 19 ) * + + 85 + + MIN( ( + 46 ) ) col1
----
-1569

skipif mysql # not compatible
query I rowsort label-9182
SELECT + SUM ( - + 19 ) * + + 85 + + MIN ( ( + 46 ) ) col1
----
-1569

onlyif mysql # aggregate syntax: 
query III rowsort label-9183
SELECT + 96, + SUM( ALL 73 ) AS col1, 76 * 21 + 88 + + 91 + + - 57 + - COALESCE ( COALESCE ( + + COUNT( - 36 ), + - 36, - + 94 + 88 ), + COUNT( * ) ) - SUM( DISTINCT 10 ) col0
----
96
73
1707

skipif mysql # not compatible
query III rowsort label-9183
SELECT + 96, + SUM ( ALL 73 ) AS col1, 76 * 21 + 88 + + 91 + + - 57 + - COALESCE ( COALESCE ( + + COUNT ( - 36 ), + - 36, - + 94 + 88 ), + COUNT ( * ) ) - SUM ( DISTINCT 10 ) col0
----
96
73
1707

query I rowsort
SELECT - 90 * 25
----
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT COUNT( * ) - - 50 col0
----
51

skipif mysql # not compatible
query I rowsort label-9185
SELECT COUNT ( * ) - - 50 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL + 88 + - 4 * COUNT( * ) * + + 69 AS col0
----
-188

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL + 88 + - 4 * COUNT ( * ) * + + 69 AS col0
----
-188

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9187
SELECT DISTINCT 45 + + 7, COALESCE ( + COUNT( * ), + 21 DIV ( - 9 ) ) AS col0, + 39 AS col0
----
52
1
39

skipif mysql # not compatible
query III rowsort label-9187
SELECT DISTINCT 45 + + 7, COALESCE ( + COUNT ( * ), + 21 / ( - 9 ) ) AS col0, + 39 AS col0
----
52
1
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9188
SELECT DISTINCT 86 AS col1, + NULLIF ( + MAX( DISTINCT + 43 ), - 81 ) + - + MAX( ALL 72 ) DIV - COUNT( * ) AS col2
----
86
115

skipif mysql # not compatible
query II rowsort label-9188
SELECT DISTINCT 86 AS col1, + NULLIF ( + MAX ( DISTINCT + 43 ), - 81 ) + - + MAX ( ALL 72 ) / - COUNT ( * ) AS col2
----
86
115

query I rowsort
SELECT DISTINCT 39 + 53 AS col0
----
92

query II rowsort
SELECT DISTINCT 92 AS col1, 37 * ( + - 61 ) * + 37 AS col0
----
92
-83509

onlyif mysql # DIV for integer division: 
query II rowsort label-9191
SELECT + 12 * + 16 + - 18 DIV + 23 AS col2, - 81 AS col1
----
192
-81

skipif mysql # not compatible
query II rowsort label-9191
SELECT + 12 * + 16 + - 18 / + 23 AS col2, - 81 AS col1
----
192
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT 14 + - + 6 * 27 * COUNT( * )
----
-148

skipif mysql # not compatible
query I rowsort label-9192
SELECT 14 + - + 6 * 27 * COUNT ( * )
----
-148

query I rowsort
SELECT ALL + 89 + ( 98 ) * + - COALESCE ( + 91, + 22 )
----
-8829

query I rowsort
SELECT + 56 * + 70 + - ( 52 ) - + + 79
----
3789

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT 4 + + 31 + + COUNT( * ) + - + 58
----
-22

skipif mysql # not compatible
query I rowsort label-9195
SELECT 4 + + 31 + + COUNT ( * ) + - + 58
----
-22

query I rowsort
SELECT 14 + - + 75
----
-61

query I rowsort
SELECT 20 * NULLIF ( + NULLIF ( - 13, 23 ), + CASE - 52 WHEN + - 81 * + 66 + + 36 + 1 / + 19 THEN + 59 ELSE + 14 + - + 17 END ) col2
----
-260

query II rowsort
SELECT DISTINCT + 45 * 56 AS col1, 40 AS col1
----
2520
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT DISTINCT + 72 - - 54 - 53 * - 43 * + 32 * - ( COUNT( * ) )
----
-72802

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT + 72 - - 54 - 53 * - 43 * + 32 * - ( COUNT ( * ) )
----
-72802

query III rowsort
SELECT ALL - 1 AS col0, 65 col1, + 16
----
-1
65
16

query I rowsort
SELECT - 82 * - 79 + - - 83
----
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-9202
SELECT ALL + + 74 * 43 DIV + 9
----
353

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL + + 74 * 43 / + 9
----
353

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9203
SELECT COUNT( * ) * - + 49 + - - MIN( ALL - CAST( + + 37 AS SIGNED ) ) - 93 AS col2
----
-179

skipif mysql # not compatible
query I rowsort label-9203
SELECT COUNT ( * ) * - + 49 + - - MIN ( ALL - CAST ( + + 37 AS INTEGER ) ) - 93 AS col2
----
-179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT 90 + + CAST( 45 AS SIGNED ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-9204
SELECT 90 + + CAST ( 45 AS INTEGER ) AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT - - COUNT( DISTINCT + 10 ) * + + COUNT( * ) * - - 54 + 99
----
153

skipif mysql # not compatible
query I rowsort label-9205
SELECT - - COUNT ( DISTINCT + 10 ) * + + COUNT ( * ) * - - 54 + 99
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT DISTINCT 51 DIV 98 * - 48 + + ( 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT 51 / 98 * - 48 + + ( 92 ) AS col0
----
92

query I rowsort
SELECT ALL + 7 * - + 49
----
-343

onlyif mysql # DIV for integer division: 
query I rowsort label-9208
SELECT - 38 DIV 97 * + 80 + + 50
----
50

skipif mysql # not compatible
query I rowsort label-9208
SELECT - 38 / 97 * + 80 + + 50
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9209
SELECT 78 - + + 30 + + + CASE - 34 WHEN 64 THEN NULL WHEN + CAST( + CASE + 53 WHEN - + 39 THEN 70 * - 15 * + 41 END AS SIGNED ) * SUM( DISTINCT 20 ) + + CAST( 48 AS SIGNED ) + + - 86 - + - ( - 90 ) + - + 25 + + CAST( NULL AS SIGNED ) * + + 54 THEN - 34 * - COUNT( * ) END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT 78 - + + 30 + + + CASE - 34 WHEN 64 THEN NULL WHEN + CAST ( + CASE + 53 WHEN - + 39 THEN 70 * - 15 * + 41 END AS INTEGER ) * SUM ( DISTINCT 20 ) + + CAST ( 48 AS INTEGER ) + + - 86 - + - ( - 90 ) + - + 25 + + CAST ( NULL AS INTEGER ) * + + 54 THEN - 34 * - COUNT ( * ) END * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9210
SELECT - CASE 49 WHEN - 46 THEN CAST( + 6 AS SIGNED ) WHEN - - MIN( ALL 85 ) THEN - MIN( + - 13 ) * CASE + 15 WHEN - COALESCE ( - - 11, - 86 ) * - - 13 + + - COUNT( * ) * 98 + 90 + + 54 * 36 THEN NULL WHEN - 18 * 62 + 20 THEN NULL WHEN - MIN( ALL + - ( 6 ) ) THEN NULL WHEN + + 10 THEN NULL ELSE + ( + NULLIF ( - 5, + COALESCE ( + 12, + - 18, 30 ) - COUNT( * ) * 66 * + 17 ) ) * - 95 + - + NULLIF ( + ( + - 46 ), 61 * COUNT( * ) * + + 41 + 58 ) * - 60 - 84 END ELSE NULL END * - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT - CASE 49 WHEN - 46 THEN CAST ( + 6 AS INTEGER ) WHEN - - MIN ( ALL 85 ) THEN - MIN ( + - 13 ) * CASE + 15 WHEN - COALESCE ( - - 11, - 86 ) * - - 13 + + - COUNT ( * ) * 98 + 90 + + 54 * 36 THEN NULL WHEN - 18 * 62 + 20 THEN NULL WHEN - MIN ( ALL + - ( 6 ) ) THEN NULL WHEN + + 10 THEN NULL ELSE + ( + NULLIF ( - 5, + COALESCE ( + 12, + - 18, 30 ) - COUNT ( * ) * 66 * + 17 ) ) * - 95 + - + NULLIF ( + ( + - 46 ), 61 * COUNT ( * ) * + + 41 + 58 ) * - 60 - 84 END ELSE NULL END * - 84 AS col0
----
NULL

query II rowsort
SELECT - 61 + + 72 AS col2, 54
----
11
54

query II rowsort
SELECT - 2, - 87 - ( 19 ) AS col2
----
-2
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT DISTINCT - MIN( ALL 81 ) * 55 * - - 99 AS col1
----
-441045

skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT - MIN ( ALL 81 ) * 55 * - - 99 AS col1
----
-441045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9214
SELECT + 88 * - COUNT( * ) + - 17 DIV COALESCE ( - 83, 8 ) + + ( 26 ) * + 93 col2
----
2330

skipif mysql # not compatible
query I rowsort label-9214
SELECT + 88 * - COUNT ( * ) + - 17 / COALESCE ( - 83, 8 ) + + ( 26 ) * + 93 col2
----
2330

query I rowsort
SELECT NULLIF ( 3, - 22 + - ( - + ( 74 ) ) ) + - NULLIF ( + + 14, + 20 + 84 / + ( 30 ) )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9216
SELECT ALL 81, - CAST( + 8 AS SIGNED ) AS col1
----
81
-8

skipif mysql # not compatible
query II rowsort label-9216
SELECT ALL 81, - CAST ( + 8 AS INTEGER ) AS col1
----
81
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9217
SELECT ALL 4 + - 61 AS col0, CAST( NULL AS SIGNED )
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-9217
SELECT ALL 4 + - 61 AS col0, CAST ( NULL AS INTEGER )
----
-57
NULL

query I rowsort
SELECT ALL 86 + - ( - 54 ) AS col1
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9219
SELECT 95 + + 75 / 15 + - 8 + - CASE - MIN( - 71 ) WHEN + + ( 91 ) THEN + NULLIF ( - ( + 78 ), + 68 ) - 24 WHEN - CAST( 55 AS SIGNED ) THEN NULL END + 39 + - 68 - - 88 * 61 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT 95 + + 75 / 15 + - 8 + - CASE - MIN ( - 71 ) WHEN + + ( 91 ) THEN + NULLIF ( - ( + 78 ), + 68 ) - 24 WHEN - CAST ( 55 AS INTEGER ) THEN NULL END + 39 + - 68 - - 88 * 61 * + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT - COUNT( ALL + 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-9220
SELECT - COUNT ( ALL + 64 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9221
SELECT CAST( NULL AS SIGNED ) + CASE + CAST( - + 25 AS DECIMAL ) WHEN + CAST( NULL AS SIGNED ) / + + COUNT( * ) THEN - 43 * - - ( + 99 ) * + 60 * - + 99 + ( + - 52 ) - - - 26 WHEN - 45 * + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) THEN + - 65 - - MAX( + + 49 ) + - CAST( NULL AS SIGNED ) + - 81 + + 80 ELSE NULL END col1, - 10 + - 68
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-9221
SELECT CAST ( NULL AS INTEGER ) + CASE + CAST ( - + 25 AS REAL ) WHEN + CAST ( NULL AS INTEGER ) / + + COUNT ( * ) THEN - 43 * - - ( + 99 ) * + 60 * - + 99 + ( + - 52 ) - - - 26 WHEN - 45 * + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + - 65 - - MAX ( + + 49 ) + - CAST ( NULL AS INTEGER ) + - 81 + + 80 ELSE NULL END col1, - 10 + - 68
----
NULL
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT ALL ( + + COUNT( * ) ) + + 86
----
87

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL ( + + COUNT ( * ) ) + + 86
----
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9223
SELECT CAST( + 73 AS SIGNED ) DIV + 59
----
1

skipif mysql # not compatible
query I rowsort label-9223
SELECT CAST ( + 73 AS INTEGER ) / + 59
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9224
SELECT 30 * 77 AS col2, - 24 DIV + + 69
----
2310
0

skipif mysql # not compatible
query II rowsort label-9224
SELECT 30 * 77 AS col2, - 24 / + + 69
----
2310
0

query I rowsort
SELECT ALL + 85 * 28 AS col2
----
2380

query I rowsort
SELECT + NULLIF ( - + ( + 98 ), - + 19 - + COALESCE ( - 29, + 63, + 1 * 45 - - 78 * - 28 ) * + 21 * + 43 * - ( + 77 ) ) AS col1
----
-98

query I rowsort
SELECT + 2 * - 99 AS col1
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT COALESCE ( - 44, 83 DIV - + COALESCE ( - 97, 3 ) + - 89 + + 1 * 31 )
----
-44

skipif mysql # not compatible
query I rowsort label-9228
SELECT COALESCE ( - 44, 83 / - + COALESCE ( - 97, 3 ) + - 89 + + 1 * 31 )
----
-44

query I rowsort
SELECT + NULLIF ( - 34, - 9 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9230
SELECT - 72 + MIN( DISTINCT - 54 ) * 28 * + 99 AS col1, 6 * + 24 * + - ( 23 )
----
-149760
-3312

skipif mysql # not compatible
query II rowsort label-9230
SELECT - 72 + MIN ( DISTINCT - 54 ) * 28 * + 99 AS col1, 6 * + 24 * + - ( 23 )
----
-149760
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT + + MAX( + + 84 ) * - 16 AS col2
----
-1344

skipif mysql # not compatible
query I rowsort label-9231
SELECT + + MAX ( + + 84 ) * - 16 AS col2
----
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9232
SELECT + - CAST( + 27 AS SIGNED ) - - - 83 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-9232
SELECT + - CAST ( + 27 AS INTEGER ) - - - 83 AS col1
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9233
SELECT - 63 * - - 89 + + + MIN( ALL CAST( - 47 AS SIGNED ) ) - + + 90
----
-5744

skipif mysql # not compatible
query I rowsort label-9233
SELECT - 63 * - - 89 + + + MIN ( ALL CAST ( - 47 AS INTEGER ) ) - + + 90
----
-5744

query I rowsort
SELECT ALL + - 46 * - + 67
----
3082

query I rowsort
SELECT - 9 * - 80 AS col1
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ALL + - SUM( 99 ) * + ( 10 )
----
-990

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL + - SUM ( 99 ) * + ( 10 )
----
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9237
SELECT + - COUNT( * ) * + 51 - + 85 + 19 DIV ( 49 ) * - 51 * + 83
----
-136

skipif mysql # not compatible
query I rowsort label-9237
SELECT + - COUNT ( * ) * + 51 - + 85 + 19 / ( 49 ) * - 51 * + 83
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9238
SELECT COUNT( * ) * + 14 + + - COUNT( * ) + + 87 - + CASE + COUNT( * ) WHEN - + ( + 78 ) + + - 93 + + 49 THEN - AVG ( 6 ) * - 3 WHEN 20 / 58 * + 64 - 79 * - - 56 + - 71 THEN NULL ELSE - 22 * - + AVG ( ALL - 43 ) + - AVG ( ALL CAST( NULL AS SIGNED ) ) + + 17 END * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9238
SELECT COUNT ( * ) * + 14 + + - COUNT ( * ) + + 87 - + CASE + COUNT ( * ) WHEN - + ( + 78 ) + + - 93 + + 49 THEN - AVG ( 6 ) * - 3 WHEN 20 / 58 * + 64 - 79 * - - 56 + - 71 THEN NULL ELSE - 22 * - + AVG ( ALL - 43 ) + - AVG ( ALL CAST ( NULL AS INTEGER ) ) + + 17 END * + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT + - CASE WHEN CASE ( + 47 ) WHEN - 40 * - 12 * - 39 + + - 4 THEN 17 * + COUNT( * ) END IS NOT NULL THEN 52 * 48 + 60 + - - 47 + - - COUNT( * ) + + + 88 + - 38 + ( + 8 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9239
SELECT + - CASE WHEN CASE ( + 47 ) WHEN - 40 * - 12 * - 39 + + - 4 THEN 17 * + COUNT ( * ) END IS NOT NULL THEN 52 * 48 + 60 + - - 47 + - - COUNT ( * ) + + + 88 + - 38 + ( + 8 ) END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9240
SELECT + - ( + - 85 ) DIV - 7
----
-12

skipif mysql # not compatible
query I rowsort label-9240
SELECT + - ( + - 85 ) / - 7
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9241
SELECT - + 20 + COALESCE ( - 61, - 44 * COUNT( * ) + 26 + + NULLIF ( + 15, + 63 ) * - 13, + COALESCE ( - 75, + 19 ) + - + ( 57 ) DIV - - 97 * 56 ) * + 41 + - MIN( DISTINCT + 90 ) AS col1
----
-2611

skipif mysql # not compatible
query I rowsort label-9241
SELECT - + 20 + COALESCE ( - 61, - 44 * COUNT ( * ) + 26 + + NULLIF ( + 15, + 63 ) * - 13, + COALESCE ( - 75, + 19 ) + - + ( 57 ) / - - 97 * 56 ) * + 41 + - MIN ( DISTINCT + 90 ) AS col1
----
-2611

query I rowsort
SELECT - CASE - - 42 WHEN + + 90 - 10 / - 76 THEN 59 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9243
SELECT ALL 69 DIV 91 * + 73 + - + 50 + + 9 + + - 96 + + + 81 * - COUNT( * ) * + - COUNT( * ) * - 30 + + 19 AS col0
----
-2548

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL 69 / 91 * + 73 + - + 50 + + 9 + + - 96 + + + 81 * - COUNT ( * ) * + - COUNT ( * ) * - 30 + + 19 AS col0
----
-2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9244
SELECT - COUNT( * ) / + ( - CAST( NULL AS SIGNED ) ) - - CAST( NULL AS SIGNED ) * 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT - COUNT ( * ) / + ( - CAST ( NULL AS INTEGER ) ) - - CAST ( NULL AS INTEGER ) * 60 AS col0
----
NULL

query II rowsort
SELECT ALL - - 62 + + 24 AS col2, 91
----
86
91

query I rowsort
SELECT DISTINCT + - 0 + - 86 AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9247
SELECT ALL CASE - + 68 WHEN ( 80 ) + + - 64 THEN + 10 - - - 4 * CAST( NULL AS SIGNED ) * 4 * + 66 WHEN + - SUM( ALL 7 ) * - 77 + - - 98 THEN NULL END + + - 67 + - CASE - CAST( NULL AS DECIMAL ) WHEN + + COUNT( * ) THEN NULL ELSE + + CAST( 22 AS SIGNED ) END - - MAX( 3 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL CASE - + 68 WHEN ( 80 ) + + - 64 THEN + 10 - - - 4 * CAST ( NULL AS INTEGER ) * 4 * + 66 WHEN + - SUM ( ALL 7 ) * - 77 + - - 98 THEN NULL END + + - 67 + - CASE - CAST ( NULL AS REAL ) WHEN + + COUNT ( * ) THEN NULL ELSE + + CAST ( 22 AS INTEGER ) END - - MAX ( 3 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT - COUNT( DISTINCT - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-9248
SELECT - COUNT ( DISTINCT - 62 )
----
-1

query II rowsort
SELECT 66 AS col0, 68 - 54 AS col2
----
66
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9250
SELECT - NULLIF ( COUNT( ALL + 79 ), - 38 + - CASE + 27 WHEN - + MIN( - 59 ) THEN - 7 + - COUNT( ALL - 37 ) * 78 + - 41 / ( CAST( NULL AS SIGNED ) ) END / - ( + COALESCE ( - 96, - - 52 + + 17 / + - 66 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9250
SELECT - NULLIF ( COUNT ( ALL + 79 ), - 38 + - CASE + 27 WHEN - + MIN ( - 59 ) THEN - 7 + - COUNT ( ALL - 37 ) * 78 + - 41 / ( CAST ( NULL AS INTEGER ) ) END / - ( + COALESCE ( - 96, - - 52 + + 17 / + - 66 ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT - COUNT( * ) - - 76 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9251
SELECT - COUNT ( * ) - - 76 AS col1
----
75

query I rowsort
SELECT + 9 + - 29 col1
----
-20

query I rowsort
SELECT + 26 * 80 AS col1
----
2080

query II rowsort
SELECT - NULLIF ( + - 35, + 47 ) AS col0, 10 AS col1
----
35
10

query I rowsort
SELECT - 90 * + NULLIF ( 44, 34 * 25 + - 41 )
----
-3960

query I rowsort
SELECT - 49 + 4 * - COALESCE ( 68, 42 * + + 53, - 52 ) * + 37 col2
----
-10113

query I rowsort
SELECT + 25 * 1 * 22
----
550

onlyif mysql # DIV for integer division: 
query I rowsort label-9258
SELECT + 42 DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-9258
SELECT + 42 / - + 91
----
0

query I rowsort
SELECT - 40 * - 69 * ( - 64 )
----
-176640

onlyif mysql # aggregate syntax: 
query II rowsort label-9260
SELECT ALL + - 10, + COUNT( * ) + 30 * + COUNT( * ) AS col0
----
-10
31

skipif mysql # not compatible
query II rowsort label-9260
SELECT ALL + - 10, + COUNT ( * ) + 30 * + COUNT ( * ) AS col0
----
-10
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9261
SELECT + + COUNT( * ) DIV + - 22 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9261
SELECT + + COUNT ( * ) / + - 22 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9262
SELECT - + 35 * - + COUNT( * ) + + CAST( 82 AS SIGNED ) * 71 - ( CAST( + - AVG ( ALL + - CASE 66 WHEN - - 65 THEN NULL WHEN 44 THEN - 89 * + 30 * - 66 * 73 ELSE + 3 END ) AS SIGNED ) ) + - + 19 AS col1, + NULLIF ( + + COUNT( * ), + 19 * 81 ) AS col2
----
5835
1

skipif mysql # not compatible
query II rowsort label-9262
SELECT - + 35 * - + COUNT ( * ) + + CAST ( 82 AS INTEGER ) * 71 - ( CAST ( + - AVG ( ALL + - CASE 66 WHEN - - 65 THEN NULL WHEN 44 THEN - 89 * + 30 * - 66 * 73 ELSE + 3 END ) AS INTEGER ) ) + - + 19 AS col1, + NULLIF ( + + COUNT ( * ), + 19 * 81 ) AS col2
----
5835
1

query I rowsort
SELECT DISTINCT 72 * + 84 col0
----
6048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT ALL - CASE + + 80 WHEN 48 + - 90 THEN 31 * 81 WHEN + - 41 THEN NULL END / ( 67 ) + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL - CASE + + 80 WHEN 48 + - 90 THEN 31 * 81 WHEN + - 41 THEN NULL END / ( 67 ) + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9265
SELECT DISTINCT + 2 AS col2, 49 DIV + + ( - 30 ) AS col0
----
2
-1

skipif mysql # not compatible
query II rowsort label-9265
SELECT DISTINCT + 2 AS col2, 49 / + + ( - 30 ) AS col0
----
2
-1

query I rowsort
SELECT - 43 * - - 49 * + + 16 * + 9
----
-303408

query I rowsort
SELECT ALL - 85 * 38 + 40 AS col0
----
-3190

query I rowsort
SELECT + 96 + + CASE - + 3 WHEN 99 * + - 46 THEN + 79 ELSE NULL END + 73
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9269
SELECT DISTINCT + 27, + COUNT( ALL - 19 ) AS col2
----
27
1

skipif mysql # not compatible
query II rowsort label-9269
SELECT DISTINCT + 27, + COUNT ( ALL - 19 ) AS col2
----
27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT ( - - COUNT( * ) ) * - + 96 + - 24 + + 42
----
-78

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT ( - - COUNT ( * ) ) * - + 96 + - 24 + + 42
----
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9271
SELECT ALL 10 * + 64 + NULLIF ( CASE - + 85 WHEN + + 92 * - 57 * 69 THEN + + 99 WHEN - + COUNT( * ) - - 98 + + ( + ( + 45 ) ) * - ( 44 ) / - NULLIF ( + COUNT( * ), - 17 - + 95 * 77 ) * + - 88 * - 53 * ( + 17 ) - - - 60 THEN NULL END, 9 ) + - 23 * - + 38 - + MIN( ALL 45 ) * - CAST( NULL AS DECIMAL ) - 43 * + 98 + - 36 * 9 + + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL 10 * + 64 + NULLIF ( CASE - + 85 WHEN + + 92 * - 57 * 69 THEN + + 99 WHEN - + COUNT ( * ) - - 98 + + ( + ( + 45 ) ) * - ( 44 ) / - NULLIF ( + COUNT ( * ), - 17 - + 95 * 77 ) * + - 88 * - 53 * ( + 17 ) - - - 60 THEN NULL END, 9 ) + - 23 * - + 38 - + MIN ( ALL 45 ) * - CAST ( NULL AS REAL ) - 43 * + 98 + - 36 * 9 + + - 21
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT ALL + + 64 * 2 + + 91 + - 40 * + + 81 + - 61 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL + + 64 * 2 + + 91 + - 40 * + + 81 + - 61 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT - 69 + + + 17 + - - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-9273
SELECT - 69 + + + 17 + - - COUNT ( * )
----
-51

query II rowsort
SELECT - 45 + 60, - 58 + + ( - 77 ) * 8 AS col1
----
15
-674

query I rowsort
SELECT - 56 + 20
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9276
SELECT 95 + 46, + CAST( - 69 AS SIGNED ) * + 7 + SUM( - 14 ) AS col2
----
141
-497

skipif mysql # not compatible
query II rowsort label-9276
SELECT 95 + 46, + CAST ( - 69 AS INTEGER ) * + 7 + SUM ( - 14 ) AS col2
----
141
-497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9277
SELECT NULLIF ( 13, 79 - - 63 + + CAST( CAST( ( 78 ) AS SIGNED ) AS SIGNED ) ) - MAX( DISTINCT + 82 ) + + 91 * ( + - 31 ) AS col0
----
-2890

skipif mysql # not compatible
query I rowsort label-9277
SELECT NULLIF ( 13, 79 - - 63 + + CAST ( CAST ( ( 78 ) AS INTEGER ) AS INTEGER ) ) - MAX ( DISTINCT + 82 ) + + 91 * ( + - 31 ) AS col0
----
-2890

query I rowsort
SELECT 4 + - 90
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9279
SELECT DISTINCT - COUNT( * ) DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT - COUNT ( * ) / 87
----
0

query I rowsort
SELECT DISTINCT - 40 - - 50
----
10

query I rowsort
SELECT 10 * - 84 col1
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT COUNT( * ) + 43 + - + 63 + + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-9282
SELECT COUNT ( * ) + 43 + - + 63 + + COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9283
SELECT 58 * ( - - MAX( - 40 ) ), + 64 + - 64 AS col2
----
-2320
0

skipif mysql # not compatible
query II rowsort label-9283
SELECT 58 * ( - - MAX ( - 40 ) ), + 64 + - 64 AS col2
----
-2320
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL 31 * CASE - NULLIF ( - 45, + 96 ) WHEN 23 THEN + 27 + - - 20 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL 31 * CASE - NULLIF ( - 45, + 96 ) WHEN 23 THEN + 27 + - - 20 + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT DISTINCT - COUNT( ALL + + 66 ) * COUNT( * ) * + ( + + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT - COUNT ( ALL + + 66 ) * COUNT ( * ) * + ( + + 52 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9286
SELECT - 82 * ( COALESCE ( + + 44, - + 17, + + 59 ) ) - MAX( DISTINCT 9 ) - - - 36 + + 59 - 74 DIV + + 49, 87 + CAST( NULL AS DECIMAL ) AS col0
----
-3595
NULL

skipif mysql # not compatible
query II rowsort label-9286
SELECT - 82 * ( COALESCE ( + + 44, - + 17, + + 59 ) ) - MAX ( DISTINCT 9 ) - - - 36 + + 59 - 74 / + + 49, 87 + CAST ( NULL AS REAL ) AS col0
----
-3595
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT ALL - CAST( + - 93 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL - CAST ( + - 93 AS INTEGER )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT DISTINCT - CASE - 79 WHEN 69 THEN - - 22 END + - MAX( ALL - 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT - CASE - 79 WHEN 69 THEN - - 22 END + - MAX ( ALL - 11 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT - 4 DIV + + 91 * 91 * 8 * + - 43 + 2 + - COALESCE ( 23, + + 73 ) * - 81
----
1865

skipif mysql # not compatible
query I rowsort label-9289
SELECT - 4 / + + 91 * 91 * 8 * + - 43 + 2 + - COALESCE ( 23, + + 73 ) * - 81
----
1865

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL 1 + - CASE - 68 WHEN COUNT( * ) * - MIN( + 58 ) + + 52 THEN + 40 + - + COUNT( * ) WHEN NULLIF ( - 9, + + ( - + 68 ) ) THEN 75 - - - 84 ELSE NULL END + - 67 * - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL 1 + - CASE - 68 WHEN COUNT ( * ) * - MIN ( + 58 ) + + 52 THEN + 40 + - + COUNT ( * ) WHEN NULLIF ( - 9, + + ( - + 68 ) ) THEN 75 - - - 84 ELSE NULL END + - 67 * - 49 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT DISTINCT - 0 DIV - 11 - + 46 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT - 0 / - 11 - + 46 AS col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9292
SELECT COUNT( * ) - + 39 DIV - 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9292
SELECT COUNT ( * ) - + 39 / - 37 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9293
SELECT ALL - 67 * + - 10 AS col0, COUNT( ALL 32 ) DIV - 11 * - 33 * 59 * 13 * - ( + + 51 ) * - - 67 - 93 col1
----
670
-93

skipif mysql # not compatible
query II rowsort label-9293
SELECT ALL - 67 * + - 10 AS col0, COUNT ( ALL 32 ) / - 11 * - 33 * 59 * 13 * - ( + + 51 ) * - - 67 - 93 col1
----
670
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9294
SELECT DISTINCT 28 + + COUNT( * ) AS col1, COUNT( * ) + + 51 + + - 51 + + 65 * 24 * + CAST( NULL AS SIGNED ) * - 72 AS col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-9294
SELECT DISTINCT 28 + + COUNT ( * ) AS col1, COUNT ( * ) + + 51 + + - 51 + + 65 * 24 * + CAST ( NULL AS INTEGER ) * - 72 AS col2
----
29
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9295
SELECT ( - 3 ) * + ( COALESCE ( 45, - 27 + + 29, + NULLIF ( 45, 91 * + 66 ) ) ) * - - 24 + + - 4 * - COUNT( * ) + - 96 - + 69 + + + 48 * - - 90 * - 85, - 15 AS col0
----
-370601
-15

skipif mysql # not compatible
query II rowsort label-9295
SELECT ( - 3 ) * + ( COALESCE ( 45, - 27 + + 29, + NULLIF ( 45, 91 * + 66 ) ) ) * - - 24 + + - 4 * - COUNT ( * ) + - 96 - + 69 + + + 48 * - - 90 * - 85, - 15 AS col0
----
-370601
-15

query I rowsort
SELECT + + ( - ( - 61 ) ) AS col0
----
61

query I rowsort
SELECT ALL - 18 + 76 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT + 21 * - COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-9298
SELECT + 21 * - COUNT ( * ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT + COUNT( + 6 )
----
1

skipif mysql # not compatible
query I rowsort label-9299
SELECT + COUNT ( + 6 )
----
1

query I rowsort
SELECT ALL 13 - 54 AS col2
----
-41

query I rowsort
SELECT 89 * 43 AS col2
----
3827

query I rowsort
SELECT 30 + ( + + 85 ) + + 60 * - 37
----
-2105

query III rowsort
SELECT 91 AS col1, 32 * 37 AS col2, + 14 AS col2
----
91
1184
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9304
SELECT ALL - CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 43 AS col0, + 87
----
43
87

query I rowsort
SELECT 33 * + 61
----
2013

query I rowsort
SELECT 20 - - 72
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9308
SELECT 23 DIV - COUNT( DISTINCT - - 76 ) * - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-9308
SELECT 23 / - COUNT ( DISTINCT - - 76 ) * - COUNT ( * )
----
23

query I rowsort
SELECT 29 + + + 27 + + + 74 AS col2
----
130

query I rowsort
SELECT ALL - 36 + 52 AS col0
----
16

query I rowsort
SELECT 39 + - 43 AS col0
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9312
SELECT 48 + + - 47 + CAST( NULL AS DECIMAL ) + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT 48 + + - 47 + CAST ( NULL AS REAL ) + 19 AS col2
----
NULL

query I rowsort
SELECT ALL + 64 + - 35 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9314
SELECT 58 * ( - COALESCE ( - ( - CAST( + 79 AS SIGNED ) ), - COUNT( - CAST( 14 AS SIGNED ) ) ) * + COUNT( * ) ) col2
----
-4582

skipif mysql # not compatible
query I rowsort label-9314
SELECT 58 * ( - COALESCE ( - ( - CAST ( + 79 AS INTEGER ) ), - COUNT ( - CAST ( 14 AS INTEGER ) ) ) * + COUNT ( * ) ) col2
----
-4582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9315
SELECT ALL - COALESCE ( - 58, COALESCE ( 52, 47 * + 95 + 43, 91 ) + + 21 DIV - CAST( COUNT( * ) AS SIGNED ) ) + 45
----
103

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL - COALESCE ( - 58, COALESCE ( 52, 47 * + 95 + 43, 91 ) + + 21 / - CAST ( COUNT ( * ) AS INTEGER ) ) + 45
----
103

query I rowsort
SELECT 64 - + 48 * + 70 AS col1
----
-3296

query I rowsort
SELECT 38 + 33 col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT MIN( - 89 ) + 40
----
-49

skipif mysql # not compatible
query I rowsort label-9318
SELECT MIN ( - 89 ) + 40
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL COUNT( * ) * MIN( DISTINCT 4 ) + - 8
----
-4

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL COUNT ( * ) * MIN ( DISTINCT 4 ) + - 8
----
-4

query I rowsort
SELECT 83 + COALESCE ( - 62, + 22 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT ALL - 92 * - MAX( + 96 * + 70 )
----
618240

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL - 92 * - MAX ( + 96 * + 70 )
----
618240

onlyif mysql # DIV for integer division: 
query I rowsort label-9322
SELECT + 62 DIV ( 9 ) + + ( 38 - + 83 )
----
-39

skipif mysql # not compatible
query I rowsort label-9322
SELECT + 62 / ( 9 ) + + ( 38 - + 83 )
----
-39

query I rowsort
SELECT ALL - ( 56 ) AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT DISTINCT 76 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT 76 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT 25 * 80 + ( 35 )
----
2035

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL + 72 * - MIN( DISTINCT 86 ) + - 88 AS col1
----
-6280

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL + 72 * - MIN ( DISTINCT 86 ) + - 88 AS col1
----
-6280

query I rowsort
SELECT DISTINCT - NULLIF ( + 23, - 58 ) col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT + 18 * 66 + MAX( ALL 78 + 71 * - 76 )
----
-4130

skipif mysql # not compatible
query I rowsort label-9328
SELECT + 18 * 66 + MAX ( ALL 78 + 71 * - 76 )
----
-4130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9329
SELECT 39 DIV 32 + + COUNT( * ) DIV 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9329
SELECT 39 / 32 + + COUNT ( * ) / 70 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9330
SELECT - ( - CAST( NULL AS SIGNED ) ) * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT - ( - CAST ( NULL AS INTEGER ) ) * + 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9331
SELECT ALL NULLIF ( + COUNT( - 8 ), 22 ) * + CAST( + 77 AS SIGNED ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL NULLIF ( + COUNT ( - 8 ), 22 ) * + CAST ( + 77 AS INTEGER ) AS col1
----
77

query I rowsort
SELECT + ( + 80 ) + + 35 col0
----
115

query I rowsort
SELECT 30 * - 15 + - 50 AS col1
----
-500

query I rowsort
SELECT DISTINCT 21 * - 47
----
-987

query I rowsort
SELECT + 86 + + 84
----
170

query I rowsort
SELECT + 62 * 11
----
682

query I rowsort
SELECT ALL 68 * - 4 AS col2
----
-272

query I rowsort
SELECT + 50 * - 87 col1
----
-4350

query I rowsort
SELECT 68 * + 99 + - 31 AS col1
----
6701

onlyif mysql # DIV for integer division: 
query I rowsort label-9340
SELECT + 43 + ( - ( 64 ) ) DIV + 39 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9340
SELECT + 43 + ( - ( 64 ) ) / + 39 AS col2
----
42

query I rowsort
SELECT - 8 + ( - 30 )
----
-38

query I rowsort
SELECT ALL 14 + - 43 * - 61
----
2637

query I rowsort
SELECT + 20 + 13 AS col1
----
33

query I rowsort
SELECT + 96 * + 37
----
3552

query I rowsort
SELECT ALL + 96 * 76
----
7296

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT NULLIF ( + MIN( - 67 ), + 89 ) + 29
----
-38

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT NULLIF ( + MIN ( - 67 ), + 89 ) + 29
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT DISTINCT + 78 * + ( + SUM( ALL 99 ) )
----
7722

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT + 78 * + ( + SUM ( ALL 99 ) )
----
7722

query I rowsort
SELECT DISTINCT - 23 + + 87 AS col0
----
64

query I rowsort
SELECT DISTINCT 13 + 73 * - 3 AS col1
----
-206

query I rowsort
SELECT ALL + 92 + - 69
----
23

query I rowsort
SELECT DISTINCT + 33 * 49
----
1617

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT - - 22 DIV 84 col1
----
0

skipif mysql # not compatible
query I rowsort label-9352
SELECT - - 22 / 84 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT ALL - - COUNT( * ) + + 42
----
43

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL - - COUNT ( * ) + + 42
----
43

query I rowsort
SELECT DISTINCT - 73 * + 35 AS col2
----
-2555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9355
SELECT - + 62 DIV COALESCE ( - CAST( NULL AS SIGNED ), 36, 62, CASE COUNT( * ) WHEN 51 + 7 THEN - 47 END ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9355
SELECT - + 62 / COALESCE ( - CAST ( NULL AS INTEGER ), 36, 62, CASE COUNT ( * ) WHEN 51 + 7 THEN - 47 END ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9356
SELECT ALL + + 20 DIV SUM( DISTINCT + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + + 20 / SUM ( DISTINCT + 80 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT - MIN( 59 ) * 51 AS col1
----
-3009

skipif mysql # not compatible
query I rowsort label-9357
SELECT - MIN ( 59 ) * 51 AS col1
----
-3009

query I rowsort
SELECT ALL + + COALESCE ( 9, 86 )
----
9

query I rowsort
SELECT - - 85 * 72
----
6120

query I rowsort
SELECT - - 79 + 82 AS col0
----
161

query I rowsort
SELECT ALL 40 * 71 - 81 AS col1
----
2759

query I rowsort
SELECT - ( 86 ) col1
----
-86

query I rowsort
SELECT ALL + - 65 * - 38 AS col2
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT - + CASE 32 WHEN - ( 55 ) + - 11 THEN 49 WHEN - COUNT( * ) * 33 THEN NULL WHEN 76 THEN NULL END - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT - + CASE 32 WHEN - ( 55 ) + - 11 THEN 49 WHEN - COUNT ( * ) * 33 THEN NULL WHEN 76 THEN NULL END - + 68
----
NULL

query I rowsort
SELECT 44 * - + 8 * 37 + 33 AS col2
----
-12991

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT DISTINCT + 53 * - MIN( ALL + 71 ) AS col1
----
-3763

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT + 53 * - MIN ( ALL + 71 ) AS col1
----
-3763

query I rowsort
SELECT - 62 * - - 32
----
-1984

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT + MAX( DISTINCT 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9368
SELECT + MAX ( DISTINCT 13 ) AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT NULLIF ( - CAST( - 36 AS SIGNED ), 73 )
----
36

skipif mysql # not compatible
query I rowsort label-9369
SELECT NULLIF ( - CAST ( - 36 AS INTEGER ), 73 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT + COUNT( * ) - + 50
----
-49

skipif mysql # not compatible
query I rowsort label-9370
SELECT + COUNT ( * ) - + 50
----
-49

query I rowsort
SELECT + NULLIF ( + - 72, - 42 + 26 ) * - 1 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT NULLIF ( - 8, COUNT( * ) * + 44 )
----
-8

skipif mysql # not compatible
query I rowsort label-9372
SELECT NULLIF ( - 8, COUNT ( * ) * + 44 )
----
-8

query I rowsort
SELECT + ( - - 69 ) col1
----
69

query I rowsort
SELECT ALL - 92 * - 79 * 65 + 68 AS col2
----
472488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9375
SELECT DISTINCT + ( + 68 ) * - 35 + + MIN( 61 ) DIV - 76
----
-2380

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT + ( + 68 ) * - 35 + + MIN ( 61 ) / - 76
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT DISTINCT - COUNT( * ) * 8 + + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT - COUNT ( * ) * 8 + + COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT ALL 49 * + ( - COUNT( * ) ) + 73
----
24

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL 49 * + ( - COUNT ( * ) ) + 73
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT ALL 66 * + ( COUNT( * ) ) * + 22
----
1452

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL 66 * + ( COUNT ( * ) ) * + 22
----
1452

onlyif mysql # DIV for integer division: 
query I rowsort label-9379
SELECT ALL + 15 * - 1 + + 29 DIV - 39
----
-15

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL + 15 * - 1 + + 29 / - 39
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT + SUM( ALL 45 ) - 6
----
39

skipif mysql # not compatible
query I rowsort label-9380
SELECT + SUM ( ALL 45 ) - 6
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT - ( + + ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9381
SELECT - ( + + ( COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL 60 + + CASE + 20 WHEN + 41 THEN + COUNT( * ) / 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL 60 + + CASE + 20 WHEN + 41 THEN + COUNT ( * ) / 63 END
----
NULL

query I rowsort
SELECT + 66 * 25 col2
----
1650

query I rowsort
SELECT ALL 72 * + + 14 AS col0
----
1008

query I rowsort
SELECT - 36 + - 31 * - 38
----
1142

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT + NULLIF ( - + NULLIF ( COUNT( * ), - 48 ), 93 * 5 ) * 78 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-9386
SELECT + NULLIF ( - + NULLIF ( COUNT ( * ), - 48 ), 93 * 5 ) * 78 AS col2
----
-78

query I rowsort
SELECT + 24 + + 63
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9388
SELECT ALL COALESCE ( COALESCE ( + 36, + ( 16 ) ), CAST( NULL AS SIGNED ) * + ( - 86 * + CAST( + 36 AS SIGNED ) ) ) - + 43 * 78 AS col2
----
-3318

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL COALESCE ( COALESCE ( + 36, + ( 16 ) ), CAST ( NULL AS INTEGER ) * + ( - 86 * + CAST ( + 36 AS INTEGER ) ) ) - + 43 * 78 AS col2
----
-3318

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ALL 90 - + COUNT( * ) + + ( - COALESCE ( SUM( 56 ), + MIN( ALL 40 ) ) ) * 0
----
89

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL 90 - + COUNT ( * ) + + ( - COALESCE ( SUM ( 56 ), + MIN ( ALL 40 ) ) ) * 0
----
89

query I rowsort
SELECT DISTINCT + + 18 * 15
----
270

query I rowsort
SELECT + 64 + - 11 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT ALL + MAX( - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL + MAX ( - 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT + + COUNT( * ) * - - 66
----
66

skipif mysql # not compatible
query I rowsort label-9393
SELECT + + COUNT ( * ) * - - 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT DISTINCT + 89 * - + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT + 89 * - + COUNT ( * )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + - 30 + - + NULLIF ( 52, COALESCE ( - 73, - 22 / COUNT( * ), + 78 + 31 ) ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9395
SELECT + - 30 + - + NULLIF ( 52, COALESCE ( - 73, - 22 / COUNT ( * ), + 78 + 31 ) ) AS col1
----
-82

query I rowsort
SELECT ALL - COALESCE ( + 6, 31, 92 + - 75 ) AS col1
----
-6

query I rowsort
SELECT - + 50 + - + 9 AS col1
----
-59

query I rowsort
SELECT - 10 * 10
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT + + 81 * + + 3 - SUM( 22 ) + 13 * + 42 AS col1
----
767

skipif mysql # not compatible
query I rowsort label-9399
SELECT + + 81 * + + 3 - SUM ( 22 ) + 13 * + 42 AS col1
----
767

query I rowsort
SELECT ALL 37 * - 88
----
-3256

query I rowsort
SELECT DISTINCT + CASE 72 WHEN 22 THEN 27 - 48 WHEN 8 THEN 79 ELSE NULL END * 78
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9402
SELECT DISTINCT - 45 DIV - - 47
----
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT - 45 / - - 47
----
0

query II rowsort
SELECT ALL - 53 AS col0, 53
----
-53
53

query I rowsort
SELECT ALL - ( - 26 ) + - + 69 AS col2
----
-43

query I rowsort
SELECT 30 * - 96 AS col0
----
-2880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT CAST( NULL AS SIGNED ) * - - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT CAST ( NULL AS INTEGER ) * - - 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9407
SELECT + 82, CAST( - 28 AS SIGNED ) AS col2
----
82
-28

skipif mysql # not compatible
query II rowsort label-9407
SELECT + 82, CAST ( - 28 AS INTEGER ) AS col2
----
82
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT 43 + + - CAST( + 58 AS SIGNED ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-9408
SELECT 43 + + - CAST ( + 58 AS INTEGER ) AS col2
----
-15

query I rowsort
SELECT DISTINCT - ( - 28 )
----
28

query I rowsort
SELECT 20 + ( + 24 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT DISTINCT - CAST( - + 3 AS SIGNED ) + 88
----
91

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT - CAST ( - + 3 AS INTEGER ) + 88
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9412
SELECT ALL - 68 + + - CASE COUNT( * ) WHEN + 19 THEN + 59 * + 10 WHEN COUNT( * ) - - 69 * 13 THEN NULL WHEN - 51 THEN CASE 86 WHEN 79 THEN - 6 * + 18 ELSE ( - 49 ) * - 33 END ELSE + COUNT( * ) DIV 7 + MAX( ALL - 32 ) END AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL - 68 + + - CASE COUNT ( * ) WHEN + 19 THEN + 59 * + 10 WHEN COUNT ( * ) - - 69 * 13 THEN NULL WHEN - 51 THEN CASE 86 WHEN 79 THEN - 6 * + 18 ELSE ( - 49 ) * - 33 END ELSE + COUNT ( * ) / 7 + MAX ( ALL - 32 ) END AS col0
----
-36

query I rowsort
SELECT ALL - ( 45 ) + 34 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT DISTINCT + MAX( DISTINCT - 44 ) + - COUNT( * ) * 23 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT + MAX ( DISTINCT - 44 ) + - COUNT ( * ) * 23 AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9415
SELECT 64 + - CASE + NULLIF ( CAST( CAST( + 15 AS SIGNED ) AS DECIMAL ), 28 + + MAX( + 32 + ( 55 - 58 ) ) ) WHEN 78 THEN NULL WHEN COUNT( * ) - + CASE WHEN NULL IN ( COUNT( * ) + - 67 ) THEN CASE 48 WHEN 43 THEN NULL WHEN 57 THEN + 30 END END THEN - 46 + 65 * - 88 ELSE 73 * 60 + CAST( NULL AS SIGNED ) END * 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT 64 + - CASE + NULLIF ( CAST ( CAST ( + 15 AS INTEGER ) AS REAL ), 28 + + MAX ( + 32 + ( 55 - 58 ) ) ) WHEN 78 THEN NULL WHEN COUNT ( * ) - + CASE WHEN NULL IN ( COUNT ( * ) + - 67 ) THEN CASE 48 WHEN 43 THEN NULL WHEN 57 THEN + 30 END END THEN - 46 + 65 * - 88 ELSE 73 * 60 + CAST ( NULL AS INTEGER ) END * 63 AS col2
----
NULL

query I rowsort
SELECT ALL + 32 + 68
----
100

query I rowsort
SELECT 45 * - 27 AS col1
----
-1215

query II rowsort
SELECT DISTINCT 17, - 23 AS col2
----
17
-23

query I rowsort
SELECT ALL + 6 + 73 AS col1
----
79

query II rowsort
SELECT - 71 AS col1, ( - 88 )
----
-71
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL - CASE + 62 WHEN 32 THEN - 95 + ( 93 ) * + 19 END * MAX( - 84 + 9 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL - CASE + 62 WHEN 32 THEN - 95 + ( 93 ) * + 19 END * MAX ( - 84 + 9 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9422
SELECT DISTINCT - + 11 DIV 51 * + ( 65 ) + ( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT - + 11 / 51 * + ( 65 ) + ( - 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT ALL - CASE - 12 WHEN - 20 / + 73 + + 54 * + CAST( 57 * + MIN( - 56 ) AS SIGNED ) THEN 6 WHEN CAST( NULL AS SIGNED ) THEN 54 / 80 - - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL - CASE - 12 WHEN - 20 / + 73 + + 54 * + CAST ( 57 * + MIN ( - 56 ) AS INTEGER ) THEN 6 WHEN CAST ( NULL AS INTEGER ) THEN 54 / 80 - - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + 49 * - 79
----
-3871

query I rowsort
SELECT ALL - 40 * + 64
----
-2560

query I rowsort
SELECT DISTINCT + 81 - + + 88 * - 55 * 4
----
19441

query I rowsort
SELECT ALL - + 36 * + 69 + 88 + - 40 AS col1
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT - MAX( + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-9428
SELECT - MAX ( + 58 )
----
-58

query I rowsort
SELECT ALL - 90 * + - 97 AS col2
----
8730

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT + COUNT( * ) * + 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9430
SELECT + COUNT ( * ) * + 81 AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT - 24 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-9431
SELECT - 24 / + 35
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9432
SELECT COUNT( * ) DIV + + COUNT( * ) + - + COUNT( * ) + + 48 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9432
SELECT COUNT ( * ) / + + COUNT ( * ) + - + COUNT ( * ) + + 48 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT DISTINCT + CASE 82 WHEN - - ( + 9 ) THEN 15 WHEN 94 THEN 40 + + COUNT( * ) WHEN + 85 THEN + 66 / - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9433
SELECT DISTINCT + CASE 82 WHEN - - ( + 9 ) THEN 15 WHEN 94 THEN 40 + + COUNT ( * ) WHEN + 85 THEN + 66 / - 18 END
----
NULL

query II rowsort
SELECT - 24, 93 * 2 * + 41 col0
----
-24
7626

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT - COUNT( * ) * + - 53 * 17 + - ( 88 )
----
813

skipif mysql # not compatible
query I rowsort label-9435
SELECT - COUNT ( * ) * + - 53 * 17 + - ( 88 )
----
813

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT NULLIF ( COALESCE ( 10, 57 - COUNT( * ) ), - COUNT( * ) + - SUM( DISTINCT 60 ) ) + - 91
----
-81

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT NULLIF ( COALESCE ( 10, 57 - COUNT ( * ) ), - COUNT ( * ) + - SUM ( DISTINCT 60 ) ) + - 91
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9437
SELECT ALL - - 57, 20 * ( + CASE 4 WHEN 66 * - 11 - + 3 THEN 52 WHEN + ( CASE 12 WHEN ( COUNT( * ) ) + 14 THEN NULL WHEN 83 THEN 86 ELSE NULL END ) THEN NULL END ) AS col0
----
57
NULL

skipif mysql # not compatible
query II rowsort label-9437
SELECT ALL - - 57, 20 * ( + CASE 4 WHEN 66 * - 11 - + 3 THEN 52 WHEN + ( CASE 12 WHEN ( COUNT ( * ) ) + 14 THEN NULL WHEN 83 THEN 86 ELSE NULL END ) THEN NULL END ) AS col0
----
57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT COUNT( + - 3 ) * + 2 + + ( + 43 ) + - 19 * COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9438
SELECT COUNT ( + - 3 ) * + 2 + + ( + 43 ) + - 19 * COUNT ( * ) AS col2
----
26

query I rowsort
SELECT 40 + NULLIF ( + 66, 40 ) - 39 * + 14
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL COUNT( - + 59 ) + - + COUNT( ALL 34 )
----
0

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL COUNT ( - + 59 ) + - + COUNT ( ALL 34 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT - ( - COUNT( * ) ) * ( + 86 ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT - ( - COUNT ( * ) ) * ( + 86 ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT ALL ( - COUNT( * ) ) + + ( COUNT( + 38 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL ( - COUNT ( * ) ) + + ( COUNT ( + 38 ) ) col1
----
0

query I rowsort
SELECT DISTINCT - ( 67 ) AS col1
----
-67

query II rowsort
SELECT 64 * - + 12 AS col0, 37
----
-768
37

query I rowsort
SELECT 68 * 96
----
6528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9446
SELECT ALL + 46 DIV COUNT( + 85 )
----
46

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + 46 / COUNT ( + 85 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT + MAX( - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-9447
SELECT + MAX ( - 25 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9448
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), 45 ) * NULLIF ( + COUNT( * ), 43 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), 45 ) * NULLIF ( + COUNT ( * ), 43 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9449
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + + CAST ( NULL AS REAL ) - 63
----
NULL

query II rowsort
SELECT - - ( + 23 ) AS col2, + 90
----
23
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9451
SELECT 93 + - 44 DIV + 39 DIV - - ( COUNT( * ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9451
SELECT 93 + - 44 / + 39 / - - ( COUNT ( * ) ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT COUNT( * ) * + + MIN( ALL + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-9452
SELECT COUNT ( * ) * + + MIN ( ALL + 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT - COUNT( * ) * + ( ( - 97 ) )
----
97

skipif mysql # not compatible
query I rowsort label-9453
SELECT - COUNT ( * ) * + ( ( - 97 ) )
----
97

query I rowsort
SELECT - + 22 + - 27 col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT - - 48 + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-9455
SELECT - - 48 + COUNT ( * )
----
49

query I rowsort
SELECT - + 73 + - 40
----
-113

query I rowsort
SELECT ALL + + 42 + + 47
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9458
SELECT - - SUM( ALL + ( CAST( NULL AS SIGNED ) ) ) + 84 * 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT - - SUM ( ALL + ( CAST ( NULL AS INTEGER ) ) ) + 84 * 58 AS col0
----
NULL

query I rowsort
SELECT ALL 2 + + - NULLIF ( + ( + 53 ), 53 ) + CASE - 68 WHEN + 79 THEN NULL WHEN 87 THEN NULL ELSE - 61 + - 77 END * 56 AS col2
----
NULL

query I rowsort
SELECT - ( + 67 ) * 27 AS col2
----
-1809

query I rowsort
SELECT - 15 * + 55 * - - 41 AS col1
----
-33825

query I rowsort
SELECT + 85 + + - 24
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT - 29 * 74 * 15 DIV + ( ( 41 ) ) AS col0
----
-785

skipif mysql # not compatible
query I rowsort label-9463
SELECT - 29 * 74 * 15 / + ( ( 41 ) ) AS col0
----
-785

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT + 15 + + - NULLIF ( + 4, 6 + - 80 * - COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-9464
SELECT + 15 + + - NULLIF ( + 4, 6 + - 80 * - COUNT ( * ) )
----
11

query I rowsort
SELECT ( + - 61 ) AS col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT + CAST( NULL AS SIGNED ) * CAST( - 58 AS SIGNED ) * + - 37 * - 2 * 38 + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9466
SELECT + CAST ( NULL AS INTEGER ) * CAST ( - 58 AS INTEGER ) * + - 37 * - 2 * 38 + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL + 26 * + 39 + + COUNT( * ) - - 22
----
1037

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + 26 * + 39 + + COUNT ( * ) - - 22
----
1037

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT + MAX( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9468
SELECT + MAX ( 43 )
----
43

query I rowsort
SELECT ALL - 32 * 67 + - 67 - 90 col1
----
-2301

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL + NULLIF ( - 10, COALESCE ( - COUNT( - 82 ), 61, ( 36 ) * COALESCE ( 69, - AVG ( 64 ) + COALESCE ( - 3 + - 47, 79 ) ) ) * + 54 ) * + ( + 9 ) + COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL + NULLIF ( - 10, COALESCE ( - COUNT ( - 82 ), 61, ( 36 ) * COALESCE ( 69, - AVG ( 64 ) + COALESCE ( - 3 + - 47, 79 ) ) ) * + 54 ) * + ( + 9 ) + COUNT ( * ) AS col2
----
-89

query II rowsort
SELECT DISTINCT + 81, + 1 AS col1
----
81
1

query I rowsort
SELECT ALL 37 * - 20 + - ( 24 ) * - NULLIF ( - 59, - 73 ) * - 27 AS col1
----
37492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9473
SELECT ALL 6 * 35 + - COUNT( ALL - 16 ) + CASE COUNT( CAST( NULL AS SIGNED ) ) WHEN COUNT( * ) - 34 THEN NULL WHEN - CASE + COUNT( 63 ) WHEN - COUNT( ALL - 27 ) + - 1 THEN NULL WHEN + 87 * + 47 THEN NULL WHEN 55 * + 24 THEN 91 * 57 + + COUNT( * ) * 35 END THEN + COUNT( * ) + - CAST( NULL AS SIGNED ) ELSE 6 + 1 * - 65 END + 81 DIV COALESCE ( - 72, 72 + - COUNT( * ), - 99 + + 87 ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL 6 * 35 + - COUNT ( ALL - 16 ) + CASE COUNT ( CAST ( NULL AS INTEGER ) ) WHEN COUNT ( * ) - 34 THEN NULL WHEN - CASE + COUNT ( 63 ) WHEN - COUNT ( ALL - 27 ) + - 1 THEN NULL WHEN + 87 * + 47 THEN NULL WHEN 55 * + 24 THEN 91 * 57 + + COUNT ( * ) * 35 END THEN + COUNT ( * ) + - CAST ( NULL AS INTEGER ) ELSE 6 + 1 * - 65 END + 81 / COALESCE ( - 72, 72 + - COUNT ( * ), - 99 + + 87 ) AS col1
----
149

query I rowsort
SELECT 41 * 73 * - 61 + + 15
----
-182558

query I rowsort
SELECT CASE + ( - 34 ) WHEN - 48 * + 47 - 45 + - 54 THEN + 43 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9476
SELECT + 25 * - - COALESCE ( + 37, + 60, - CAST( NULL AS SIGNED ) ) * 36 + + CAST( CASE 68 WHEN 18 + - 97 * 24 THEN CASE 50 WHEN - 69 THEN + 87 ELSE 28 / ( - 42 * 80 ) END END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9476
SELECT + 25 * - - COALESCE ( + 37, + 60, - CAST ( NULL AS INTEGER ) ) * 36 + + CAST ( CASE 68 WHEN 18 + - 97 * 24 THEN CASE 50 WHEN - 69 THEN + 87 ELSE 28 / ( - 42 * 80 ) END END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT CASE - 4 WHEN - NULLIF ( - - ( - 19 ), COUNT( + 30 ) ) * + COUNT( * ) THEN - 67 WHEN + 58 / AVG ( + 20 ) + COUNT( * ) THEN 33 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT CASE - 4 WHEN - NULLIF ( - - ( - 19 ), COUNT ( + 30 ) ) * + COUNT ( * ) THEN - 67 WHEN + 58 / AVG ( + 20 ) + COUNT ( * ) THEN 33 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT + COUNT( * ) + 36 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9478
SELECT + COUNT ( * ) + 36 AS col0
----
37

query I rowsort
SELECT + 13 * 96 * + - 13 AS col0
----
-16224

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT CASE - MIN( - 71 ) WHEN 54 THEN + + 97 + + 36 WHEN SUM( + ( 24 ) ) - - 10 * - 70 THEN - 29 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT CASE - MIN ( - 71 ) WHEN 54 THEN + + 97 + + 36 WHEN SUM ( + ( 24 ) ) - - 10 * - 70 THEN - 29 * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9481
SELECT + COUNT( * ) + + - ( - COUNT( * ) ) AS col0, 93 * + + 67 * COUNT( * )
----
2
6231

skipif mysql # not compatible
query II rowsort label-9481
SELECT + COUNT ( * ) + + - ( - COUNT ( * ) ) AS col0, 93 * + + 67 * COUNT ( * )
----
2
6231

query I rowsort
SELECT + COALESCE ( + - 21, + ( 53 ) - - 20, - 66 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT ( - 35 ) * + - COUNT( * ) * - 25
----
-875

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT ( - 35 ) * + - COUNT ( * ) * - 25
----
-875

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT + ( - COUNT( * ) ) * 43 + + 47
----
4

skipif mysql # not compatible
query I rowsort label-9484
SELECT + ( - COUNT ( * ) ) * 43 + + 47
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT ALL 89 * + COALESCE ( - 74, 80, - - NULLIF ( 51, - MIN( - 73 ) ) )
----
-6586

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL 89 * + COALESCE ( - 74, 80, - - NULLIF ( 51, - MIN ( - 73 ) ) )
----
-6586

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT + COUNT( * ) + - 14 * + 57 AS col2
----
-797

skipif mysql # not compatible
query I rowsort label-9486
SELECT + COUNT ( * ) + - 14 * + 57 AS col2
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT + 70 * - SUM( ALL - 36 ) * - 18 * - 93
----
4218480

skipif mysql # not compatible
query I rowsort label-9487
SELECT + 70 * - SUM ( ALL - 36 ) * - 18 * - 93
----
4218480

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT - - 12 + 22 + + + MIN( + + 3 ) * - 5 + MAX( + 58 - 65 )
----
12

skipif mysql # not compatible
query I rowsort label-9488
SELECT - - 12 + 22 + + + MIN ( + + 3 ) * - 5 + MAX ( + 58 - 65 )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9489
SELECT DISTINCT COALESCE ( + - ( 83 ), + + 96, - 52 ) DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT COALESCE ( + - ( 83 ), + + 96, - 52 ) / 93
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9490
SELECT - - ( + MAX( ALL 59 ) ) + - 60 DIV - 1 - 67 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9490
SELECT - - ( + MAX ( ALL 59 ) ) + - 60 / - 1 - 67 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL + COALESCE ( - COUNT( * ), - 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL + COALESCE ( - COUNT ( * ), - 19 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9492
SELECT DISTINCT - COUNT( * ) + - + 79 + + - 85 AS col1, + 86
----
-165
86

skipif mysql # not compatible
query II rowsort label-9492
SELECT DISTINCT - COUNT ( * ) + - + 79 + + - 85 AS col1, + 86
----
-165
86

query I rowsort
SELECT DISTINCT + 38 * - CASE + + ( + 99 ) WHEN 20 THEN CASE 11 WHEN - 6 - + 55 / + AVG ( ALL 89 * - 89 ) THEN NULL WHEN + 91 THEN 9 / 85 END END
----
NULL

query I rowsort
SELECT ALL + 16 + 8 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9495
SELECT DISTINCT 25, MAX( - CAST( - + 24 AS SIGNED ) ) AS col1
----
25
24

skipif mysql # not compatible
query II rowsort label-9495
SELECT DISTINCT 25, MAX ( - CAST ( - + 24 AS INTEGER ) ) AS col1
----
25
24

query I rowsort
SELECT ALL - 47 + - 44
----
-91

query I rowsort
SELECT - 13 * - - 65 AS col1
----
-845

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9498
SELECT - 4 - - 1 DIV - - COUNT( * ) * + COUNT( ALL - 65 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9498
SELECT - 4 - - 1 / - - COUNT ( * ) * + COUNT ( ALL - 65 ) AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9499
SELECT - COALESCE ( 24, + - 57 DIV - 6 + - 52 + 20 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9499
SELECT - COALESCE ( 24, + - 57 / - 6 + - 52 + 20 ) AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT DISTINCT - 36 + - 39 + 36 + - - ( + 76 ) DIV 65 * + 96 col1
----
57

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT - 36 + - 39 + 36 + - - ( + 76 ) / 65 * + 96 col1
----
57

query I rowsort
SELECT ALL + ( - + ( 53 ) ) + + 46
----
-7

query II rowsort
SELECT 31 AS col0, + 34
----
31
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL - NULLIF ( - 61, 23 + - - 59 ) - + + COUNT( * ) + ( - 75 ) + - MAX( ALL + 88 )
----
-103

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL - NULLIF ( - 61, 23 + - - 59 ) - + + COUNT ( * ) + ( - 75 ) + - MAX ( ALL + 88 )
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-9504
SELECT ALL 33 DIV - + 9 - - ( - 75 )
----
-78

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL 33 / - + 9 - - ( - 75 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL + COALESCE ( ( + + 64 ), + ( + + ( - COUNT( * ) ) ) + + 17 ) * 65
----
4160

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + COALESCE ( ( + + 64 ), + ( + + ( - COUNT ( * ) ) ) + + 17 ) * 65
----
4160

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT 55 DIV - 11 + - 10
----
-15

skipif mysql # not compatible
query I rowsort label-9506
SELECT 55 / - 11 + - 10
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9507
SELECT + COUNT( * ) * + COUNT( * ) DIV 38 * + 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9507
SELECT + COUNT ( * ) * + COUNT ( * ) / 38 * + 11 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT + COUNT( * ) + - 29
----
-28

skipif mysql # not compatible
query I rowsort label-9508
SELECT + COUNT ( * ) + - 29
----
-28

query I rowsort
SELECT ALL - 73 * 41 AS col0
----
-2993

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9510
SELECT ALL 70 DIV + 80 - - + COUNT( * ) DIV 95 AS col0, NULLIF ( COUNT( * ), 1 + 54 ) + MAX( - 81 )
----
0
-80

skipif mysql # not compatible
query II rowsort label-9510
SELECT ALL 70 / + 80 - - + COUNT ( * ) / 95 AS col0, NULLIF ( COUNT ( * ), 1 + 54 ) + MAX ( - 81 )
----
0
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT - COALESCE ( - 81, - 31, + - ( 84 ) ) DIV + 76
----
1

skipif mysql # not compatible
query I rowsort label-9511
SELECT - COALESCE ( - 81, - 31, + - ( 84 ) ) / + 76
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9512
SELECT + CAST( NULL AS SIGNED ) * 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9512
SELECT + CAST ( NULL AS INTEGER ) * 16 AS col2
----
NULL

query I rowsort
SELECT ALL + ( ( + 95 ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT + CASE - + 92 WHEN + 63 - MAX( DISTINCT + 56 ) THEN + 28 * ( + 28 + + 44 ) ELSE NULL END * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9514
SELECT + CASE - + 92 WHEN + 63 - MAX ( DISTINCT + 56 ) THEN + 28 * ( + 28 + + 44 ) ELSE NULL END * - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL + ( + 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT - MAX( ALL - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-9516
SELECT - MAX ( ALL - 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT + - CASE - - 8 WHEN + COALESCE ( + COUNT( + ( + + 76 ) ), 3 * 89 + 71 ) THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT + - CASE - - 8 WHEN + COALESCE ( + COUNT ( + ( + + 76 ) ), 3 * 89 + 71 ) THEN COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9518
SELECT + CAST( NULL AS DECIMAL ) - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9518
SELECT + CAST ( NULL AS REAL ) - 5 AS col1
----
NULL

query I rowsort
SELECT + 68 * + 87 + - 46
----
5870

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT ALL 7 * - COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL 7 * - COUNT ( * ) AS col0
----
-7

query II rowsort
SELECT + 58, - 93 + - + 56 AS col1
----
58
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT + CAST( NULL AS SIGNED ) * - - 70 - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT + CAST ( NULL AS INTEGER ) * - - 70 - + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT + COALESCE ( - + 58, + + 91 * - + 10, COUNT( * ) * - - 60 + 49 * 49 )
----
-58

skipif mysql # not compatible
query I rowsort label-9523
SELECT + COALESCE ( - + 58, + + 91 * - + 10, COUNT ( * ) * - - 60 + 49 * 49 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT ALL 34 + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL 34 + - COUNT ( * )
----
33

query I rowsort
SELECT 99 * - 37 AS col0
----
-3663

query I rowsort
SELECT ALL 74 + 6 AS col0
----
80

query II rowsort
SELECT ALL + 58 AS col1, - 94 * - 31 AS col1
----
58
2914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT ( + CAST( + - 42 AS SIGNED ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-9528
SELECT ( + CAST ( + - 42 AS INTEGER ) ) AS col2
----
-42

query I rowsort
SELECT ALL - 20 + 60
----
40

query I rowsort
SELECT ( 28 ) - - 7
----
35

query II rowsort
SELECT 43 AS col2, 22 AS col0
----
43
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT + 84 + + 82 * 71 * + - COUNT( * ) * - 87 - MAX( + 91 ) * + 57
----
501411

skipif mysql # not compatible
query I rowsort label-9532
SELECT + 84 + + 82 * 71 * + - COUNT ( * ) * - 87 - MAX ( + 91 ) * + 57
----
501411

onlyif mysql # aggregate syntax: 
query II rowsort label-9533
SELECT COUNT( * ), 81 + - + 73 AS col1
----
1
8

skipif mysql # not compatible
query II rowsort label-9533
SELECT COUNT ( * ), 81 + - + 73 AS col1
----
1
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9534
SELECT + 67 DIV + + CAST( - 65 AS SIGNED ) * - 1 * + - 98 DIV - 85 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9534
SELECT + 67 / + + CAST ( - 65 AS INTEGER ) * - 1 * + - 98 / - 85 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9535
SELECT ALL + 85 + + + COUNT( * ) - - 62 + - ( - - 58 ) DIV + + 1
----
90

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL + 85 + + + COUNT ( * ) - - 62 + - ( - - 58 ) / + + 1
----
90

query I rowsort
SELECT 2 * + 44 + - 69 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT - 76 * + 48 - COUNT( * ) AS col1
----
-3649

skipif mysql # not compatible
query I rowsort label-9537
SELECT - 76 * + 48 - COUNT ( * ) AS col1
----
-3649

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT 48 + - NULLIF ( - + 85, - 50 + COUNT( * ) )
----
133

skipif mysql # not compatible
query I rowsort label-9538
SELECT 48 + - NULLIF ( - + 85, - 50 + COUNT ( * ) )
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9539
SELECT ALL - + 99 * - + CAST( + + 9 AS SIGNED ) * - COUNT( * ) + + 64 + - 24 + 51
----
-800

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL - + 99 * - + CAST ( + + 9 AS INTEGER ) * - COUNT ( * ) + + 64 + - 24 + 51
----
-800

query I rowsort
SELECT ALL 86 - + 71 AS col1
----
15

query II rowsort
SELECT 42 + 39 AS col2, 51
----
81
51

query I rowsort
SELECT ALL + 50 - 27 * - 58 + - - 84 AS col2
----
1700

query I rowsort
SELECT ALL ( 20 ) * - + 65 * + 25 AS col0
----
-32500

query I rowsort
SELECT DISTINCT + 59 * + 71
----
4189

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT 77 + - COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9545
SELECT 77 + - COUNT ( * ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL - 87 - COUNT( 23 ) * 5 * COUNT( ALL 17 )
----
-92

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL - 87 - COUNT ( 23 ) * 5 * COUNT ( ALL 17 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT 64 * - COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-9547
SELECT 64 * - COUNT ( * ) AS col1
----
-64

query I rowsort
SELECT DISTINCT - COALESCE ( + 57, - - 22 + + 13 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL - 88 * - - COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL - 88 * - - COUNT ( * ) AS col2
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9550
SELECT ALL - 15 DIV + - COUNT( * ) AS col0, + 65
----
15
65

skipif mysql # not compatible
query II rowsort label-9550
SELECT ALL - 15 / + - COUNT ( * ) AS col0, + 65
----
15
65

query I rowsort
SELECT DISTINCT - NULLIF ( - + 23, + AVG ( ALL + + 10 ) )
----
23

query I rowsort
SELECT + 97 * - 97 + 4
----
-9405

query I rowsort
SELECT ALL - 88 * + 23
----
-2024

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL + NULLIF ( - MAX( DISTINCT - 48 ), - - 54 ) * + - 13
----
-624

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL + NULLIF ( - MAX ( DISTINCT - 48 ), - - 54 ) * + - 13
----
-624

query I rowsort
SELECT - 35 * - 5
----
175

query I rowsort
SELECT - 75 + NULLIF ( + - 18, - 29 ) + 6 AS col2
----
-87

query II rowsort
SELECT ALL 19 + + COALESCE ( 95, 93 ) - 85 AS col2, 88 AS col0
----
29
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT + COUNT( * ) * COUNT( * ) + + 88 + - 93 + - 39 * - COUNT( * ) * 63
----
2453

skipif mysql # not compatible
query I rowsort label-9558
SELECT + COUNT ( * ) * COUNT ( * ) + + 88 + - 93 + - 39 * - COUNT ( * ) * 63
----
2453

query I rowsort
SELECT ALL - 29 + - 94
----
-123

query I rowsort
SELECT ALL + 71 * 70 AS col0
----
4970

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - 31 * + 18 + + 19 + - COUNT( * ) + + 79 + + MIN( ( 48 ) ) * - 75 AS col2
----
-4061

skipif mysql # not compatible
query I rowsort label-9561
SELECT - 31 * + 18 + + 19 + - COUNT ( * ) + + 79 + + MIN ( ( 48 ) ) * - 75 AS col2
----
-4061

query I rowsort
SELECT ALL + 49 + + 57
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9563
SELECT DISTINCT + 22 + - MAX( DISTINCT 12 ) DIV 72 - 3 + + 47
----
66

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT + 22 + - MAX ( DISTINCT 12 ) / 72 - 3 + + 47
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT ALL CAST( NULL AS SIGNED ) + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL CAST ( NULL AS INTEGER ) + 84
----
NULL

query I rowsort
SELECT DISTINCT + 55 * - 0
----
0

query I rowsort
SELECT - 65 + - + 40 AS col0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9567
SELECT ALL ( CAST( - 84 AS SIGNED ) ) * + - 35 * 50 - - + COUNT( * )
----
147001

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL ( CAST ( - 84 AS INTEGER ) ) * + - 35 * 50 - - + COUNT ( * )
----
147001

query I rowsort
SELECT 16 * 91
----
1456

onlyif mysql # DIV for integer division: 
query I rowsort label-9569
SELECT ALL - NULLIF ( - 73, 19 * 51 ) DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL - NULLIF ( - 73, 19 * 51 ) / + 99
----
0

query I rowsort
SELECT ALL + 53 - 49
----
4

query I rowsort
SELECT DISTINCT 92 * + + 53 + 55 * + + 50 - + - 9
----
7635

query I rowsort
SELECT ALL 68 - - 85 - 29 - 95 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL 80 * - COUNT( - - 78 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL 80 * - COUNT ( - - 78 ) AS col0
----
-80

query II rowsort
SELECT ALL 72 AS col2, + 93 AS col2
----
72
93

query I rowsort
SELECT DISTINCT 97 - - + 67
----
164

query I rowsort
SELECT 39 * 65 col1
----
2535

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT MIN( 67 ) * 62 col0
----
4154

skipif mysql # not compatible
query I rowsort label-9577
SELECT MIN ( 67 ) * 62 col0
----
4154

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9578
SELECT - 83 AS col0, CAST( NULL AS SIGNED ) + - 38 AS col1
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-9578
SELECT - 83 AS col0, CAST ( NULL AS INTEGER ) + - 38 AS col1
----
-83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT ( - + ( - - COUNT( * ) ) ) * 33
----
-33

skipif mysql # not compatible
query I rowsort label-9579
SELECT ( - + ( - - COUNT ( * ) ) ) * 33
----
-33

query I rowsort
SELECT 87 * - + ( + ( + 27 ) ) AS col1
----
-2349

query I rowsort
SELECT ALL 85 * - - 82 * + - 48 AS col1
----
-334560

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT COUNT( ALL + - 77 ) - 2 * - - 86 AS col1
----
-171

skipif mysql # not compatible
query I rowsort label-9582
SELECT COUNT ( ALL + - 77 ) - 2 * - - 86 AS col1
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9583
SELECT ALL 95, ( - 30 ) * - ( + - 5 ) * + 43 - + - 70 + + - ( - CAST( NULL AS SIGNED ) ) AS col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-9583
SELECT ALL 95, ( - 30 ) * - ( + - 5 ) * + 43 - + - 70 + + - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
95
NULL

query II rowsort
SELECT ALL 98, 58 AS col2
----
98
58

query I rowsort
SELECT ALL 74 * + 97 + - 2 AS col0
----
7176

query I rowsort
SELECT + 48 * - - 58
----
2784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9587
SELECT NULLIF ( - MAX( ALL - 50 ), - AVG ( - 90 ) DIV - 4 ) DIV + 19 + 36 + + COUNT( * ) * - 93 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-9587
SELECT NULLIF ( - MAX ( ALL - 50 ), - AVG ( - 90 ) / - 4 ) / + 19 + 36 + + COUNT ( * ) * - 93 AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9588
SELECT DISTINCT 49 * + 1 + 14 - - + 7 DIV 93 * 81 * - NULLIF ( - - 6, 43 )
----
63

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT 49 * + 1 + 14 - - + 7 / 93 * 81 * - NULLIF ( - - 6, 43 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9589
SELECT + CASE 59 WHEN + COALESCE ( + 5, - - 85 ) * + - COUNT( + 66 ) * 0 + + CAST( NULL AS SIGNED ) THEN NULL WHEN 1 * COUNT( ALL - NULLIF ( 44, + 1 + 9 ) ) + + ( COALESCE ( + CAST( 41 AS SIGNED ), 60 * + 36 - + 80 / 70, 97 / - 18 ) ) THEN 55 + 29 / 88 WHEN 45 * 72 THEN 86 * 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT + CASE 59 WHEN + COALESCE ( + 5, - - 85 ) * + - COUNT ( + 66 ) * 0 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 1 * COUNT ( ALL - NULLIF ( 44, + 1 + 9 ) ) + + ( COALESCE ( + CAST ( 41 AS INTEGER ), 60 * + 36 - + 80 / 70, 97 / - 18 ) ) THEN 55 + 29 / 88 WHEN 45 * 72 THEN 86 * 51 ELSE NULL END
----
NULL

query I rowsort
SELECT - 89 * - 91 AS col2
----
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL - - 5 * + COUNT( * ) * 76 * + COUNT( * ) + + - 74 AS col0
----
306

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL - - 5 * + COUNT ( * ) * 76 * + COUNT ( * ) + + - 74 AS col0
----
306

onlyif mysql # DIV for integer division: 
query I rowsort label-9592
SELECT DISTINCT 58 * + 79 + - ( + + 31 ) + - 31 * - 82 * - 51 + + - 55 DIV - 25
----
-125089

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT 58 * + 79 + - ( + + 31 ) + - 31 * - 82 * - 51 + + - 55 / - 25
----
-125089

query II rowsort
SELECT ALL + + 33 col0, - 17 AS col0
----
33
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-9594
SELECT + ( + SUM( ALL ( - + 87 ) ) ), 11 AS col0
----
-87
11

skipif mysql # not compatible
query II rowsort label-9594
SELECT + ( + SUM ( ALL ( - + 87 ) ) ), 11 AS col0
----
-87
11

query I rowsort
SELECT - - 40 * 2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - 22 / - CASE - 24 WHEN + 44 THEN + 6 * + COUNT( * ) END + ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT - 22 / - CASE - 24 WHEN + 44 THEN + 6 * + COUNT ( * ) END + ( - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9597
SELECT ALL + - CASE - 71 WHEN - 59 * 93 + 19 / 62 + + ( - 83 ) THEN NULL WHEN + CASE - CASE 2 WHEN - 40 THEN NULL WHEN - 90 THEN NULL WHEN + 66 - 9 THEN - 41 / 10 END WHEN COUNT( * ) THEN NULL WHEN + CAST( - 40 AS SIGNED ) + + 44 THEN 79 WHEN 43 * 15 THEN NULL END * MIN( 65 ) THEN - COUNT( * ) + 44 * + 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL + - CASE - 71 WHEN - 59 * 93 + 19 / 62 + + ( - 83 ) THEN NULL WHEN + CASE - CASE 2 WHEN - 40 THEN NULL WHEN - 90 THEN NULL WHEN + 66 - 9 THEN - 41 / 10 END WHEN COUNT ( * ) THEN NULL WHEN + CAST ( - 40 AS INTEGER ) + + 44 THEN 79 WHEN 43 * 15 THEN NULL END * MIN ( 65 ) THEN - COUNT ( * ) + 44 * + 76 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9598
SELECT - - COUNT( * ) - 46 - 6 + + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT - - COUNT ( * ) - 46 - 6 + + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 80 * - 61 - 42 AS col2
----
4838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT ALL + - SUM( - 2 ) - CASE + 96 WHEN + 70 * 54 + + 26 THEN NULL WHEN + + 34 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL + - SUM ( - 2 ) - CASE + 96 WHEN + 70 * 54 + + 26 THEN NULL WHEN + + 34 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT ALL - - ( - - MIN( ALL - - 74 ) ) * - 67 * + - MAX( - 43 ) * + + 35 + - 70 + 98 * CASE - ( - 26 ) * + 68 WHEN COUNT( * ) * 4 THEN NULL WHEN 57 THEN 29 - 95 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL - - ( - - MIN ( ALL - - 74 ) ) * - 67 * + - MAX ( - 43 ) * + + 35 + - 70 + 98 * CASE - ( - 26 ) * + 68 WHEN COUNT ( * ) * 4 THEN NULL WHEN 57 THEN 29 - 95 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9602
SELECT DISTINCT 37 DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT 37 / 96 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9603
SELECT DISTINCT - - CASE 12 WHEN - 75 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN - 77 THEN ( - 3 ) END * - + 94 + + 32 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT - - CASE 12 WHEN - 75 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 77 THEN ( - 3 ) END * - + 94 + + 32 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL - ( MIN( + - 47 ) )
----
47

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - ( MIN ( + - 47 ) )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9605
SELECT COUNT( * ) AS col2, 86 * + 49 * 65 AS col2
----
1
273910

skipif mysql # not compatible
query II rowsort label-9605
SELECT COUNT ( * ) AS col2, 86 * + 49 * 65 AS col2
----
1
273910

query II rowsort
SELECT - 69 + - 11 + - 97 col1, ( + 31 ) AS col1
----
-177
31

query I rowsort
SELECT + 38 - - 19 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9608
SELECT - 21 + + - COALESCE ( - - ( - 72 ), - ( - - CAST( NULL AS SIGNED ) ), - 70 * - 73, + - 48 ) + + 25 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9608
SELECT - 21 + + - COALESCE ( - - ( - 72 ), - ( - - CAST ( NULL AS INTEGER ) ), - 70 * - 73, + - 48 ) + + 25 AS col1
----
76

onlyif mysql # aggregate syntax: 
query III rowsort label-9609
SELECT ALL ( - COUNT( * ) ) AS col1, 96 * + COUNT( * ) * + ( + MAX( - 5 ) ) AS col0, - 31 + 95 + + 11
----
-1
-480
75

skipif mysql # not compatible
query III rowsort label-9609
SELECT ALL ( - COUNT ( * ) ) AS col1, 96 * + COUNT ( * ) * + ( + MAX ( - 5 ) ) AS col0, - 31 + 95 + + 11
----
-1
-480
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - 97 + - MIN( - + 53 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-9610
SELECT - 97 + - MIN ( - + 53 ) AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9611
SELECT + 21 * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 50 + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT + 21 * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 50 + - 85
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT DISTINCT 26 * - ( - - CAST( 74 AS SIGNED ) )
----
-1924

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT 26 * - ( - - CAST ( 74 AS INTEGER ) )
----
-1924

onlyif mysql # aggregate syntax: 
query II rowsort label-9613
SELECT ALL ( 73 ), SUM( ALL + + 42 ) AS col2
----
73
42

skipif mysql # not compatible
query II rowsort label-9613
SELECT ALL ( 73 ), SUM ( ALL + + 42 ) AS col2
----
73
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9614
SELECT + 67 + - CAST( NULL AS SIGNED ) * - 42 DIV - 95 AS col1, 50 + 74 DIV ( + 15 )
----
NULL
54

skipif mysql # not compatible
query II rowsort label-9614
SELECT + 67 + - CAST ( NULL AS INTEGER ) * - 42 / - 95 AS col1, 50 + 74 / ( + 15 )
----
NULL
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT DISTINCT - 15 + - NULLIF ( - COUNT( + - CAST( + 57 AS SIGNED ) ), + ( + + COUNT( * ) ) )
----
-14

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT - 15 + - NULLIF ( - COUNT ( + - CAST ( + 57 AS INTEGER ) ), + ( + + COUNT ( * ) ) )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9616
SELECT ALL 49 + 16 * - - 95 * MIN( + + 85 ) * + 26 + + COUNT( * ) DIV - 81 AS col2
----
3359249

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL 49 + 16 * - - 95 * MIN ( + + 85 ) * + 26 + + COUNT ( * ) / - 81 AS col2
----
3359249

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT - 31 * - + 52 * - 89 * - - COUNT( * ) col1
----
-143468

skipif mysql # not compatible
query I rowsort label-9617
SELECT - 31 * - + 52 * - 89 * - - COUNT ( * ) col1
----
-143468

query I rowsort
SELECT + NULLIF ( 47, - 36 / - + 26 ) + 25 + - 57
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9619
SELECT + 13 + + + ( + 24 ) + - ( CAST( NULL AS SIGNED ) ) * 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT + 13 + + + ( + 24 ) + - ( CAST ( NULL AS INTEGER ) ) * 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT + 31 * + CASE COUNT( * ) WHEN + + 24 * - 90 + + - 32 THEN + 43 WHEN + - NULLIF ( + 37, 96 ) THEN 47 / NULLIF ( - 30, - 65 ) ELSE NULL END * ( - SUM( ALL 88 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT + 31 * + CASE COUNT ( * ) WHEN + + 24 * - 90 + + - 32 THEN + 43 WHEN + - NULLIF ( + 37, 96 ) THEN 47 / NULLIF ( - 30, - 65 ) ELSE NULL END * ( - SUM ( ALL 88 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT 36 + + MAX( ALL 84 ) AS col0
----
120

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT 36 + + MAX ( ALL 84 ) AS col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9622
SELECT ALL - NULLIF ( - 89, - - ( - 75 ) * + 42 * + - CAST( NULL AS DECIMAL ) ) DIV - - COALESCE ( + - 77, 32 + + 4 * + 61, 41 ) + 2 * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL - NULLIF ( - 89, - - ( - 75 ) * + 42 * + - CAST ( NULL AS REAL ) ) / - - COALESCE ( + - 77, 32 + + 4 * + 61, 41 ) + 2 * + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9623
SELECT DISTINCT 13 DIV - COUNT( * ) + - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT 13 / - COUNT ( * ) + - COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + 67 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + 67 AS col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9625
SELECT DISTINCT 42 DIV + + ( + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT 42 / + + ( + 93 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT + - 35 DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-9626
SELECT + - 35 / + 44
----
0

query I rowsort
SELECT ALL + 24 * - - 11 AS col0
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-9628
SELECT ALL 81 DIV - - 85 * 39 + + NULLIF ( - ( 76 ), - 5 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL 81 / - - 85 * 39 + + NULLIF ( - ( 76 ), - 5 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT 33 * + COUNT( * ) + - + 77 * + + COUNT( * ) + - 63 + 64 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-9629
SELECT 33 * + COUNT ( * ) + - + 77 * + + COUNT ( * ) + - 63 + 64 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT DISTINCT + - 77 DIV + 91 + - 50
----
-50

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT + - 77 / + 91 + - 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT + CASE - 16 WHEN - 67 * - 14 * + - COUNT( * ) THEN - 75 * - - COUNT( * ) + + 21 ELSE - ( 3 ) END
----
-3

skipif mysql # not compatible
query I rowsort label-9631
SELECT + CASE - 16 WHEN - 67 * - 14 * + - COUNT ( * ) THEN - 75 * - - COUNT ( * ) + + 21 ELSE - ( 3 ) END
----
-3

query I rowsort
SELECT - - 2 * - + 69 + - 13
----
-151

query I rowsort
SELECT - 11 * + - 73
----
803

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL 81 * + - 88 * 19 * + COUNT( * ) * + ( + + 72 )
----
-9751104

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL 81 * + - 88 * 19 * + COUNT ( * ) * + ( + + 72 )
----
-9751104

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT ALL + + SUM( ALL + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL + + SUM ( ALL + 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9636
SELECT + + 66 + + - COUNT( * ) * + ( + - 29 ), 65 AS col1
----
95
65

skipif mysql # not compatible
query II rowsort label-9636
SELECT + + 66 + + - COUNT ( * ) * + ( + - 29 ), 65 AS col1
----
95
65

query I rowsort
SELECT + + COALESCE ( - + 67, - + 28 ) AS col1
----
-67

query I rowsort
SELECT ALL - 51 * 4 - + - 19
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT - ( - COUNT( * ) ) * + 51 - + ( - + 2 ) + + ( + - SUM( ALL 44 ) ) * 3 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-9639
SELECT - ( - COUNT ( * ) ) * + 51 - + ( - + 2 ) + + ( + - SUM ( ALL 44 ) ) * 3 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT - - 51 + 45 * - NULLIF ( COUNT( * ), ( - - 79 ) * + - MAX( ALL 45 ) ) + + ( + 71 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9640
SELECT - - 51 + 45 * - NULLIF ( COUNT ( * ), ( - - 79 ) * + - MAX ( ALL 45 ) ) + + ( + 71 ) AS col2
----
77

query I rowsort
SELECT - 39 * - 40 * 93 AS col1
----
145080

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT - SUM( DISTINCT - 68 ) * 60
----
4080

skipif mysql # not compatible
query I rowsort label-9642
SELECT - SUM ( DISTINCT - 68 ) * 60
----
4080

onlyif mysql # aggregate syntax: 
query II rowsort label-9643
SELECT COUNT( * ), 92 AS col1
----
1
92

skipif mysql # not compatible
query II rowsort label-9643
SELECT COUNT ( * ), 92 AS col1
----
1
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9644
SELECT ALL CAST( NULL AS SIGNED ), - 89 col2
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-9644
SELECT ALL CAST ( NULL AS INTEGER ), - 89 col2
----
NULL
-89

query II rowsort
SELECT ALL COALESCE ( - - 94, + 53 ) AS col2, + 31 - 47 AS col1
----
94
-16

query I rowsort
SELECT ALL + COALESCE ( - 85, 61 * + 95 ) * + 34 + + 35 col0
----
-2855

onlyif mysql # DIV for integer division: 
query I rowsort label-9647
SELECT DISTINCT 48 * + 11 * - 41 * + 33 + - + ( 83 ) * 80 DIV 9
----
-715121

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT 48 * + 11 * - 41 * + 33 + - + ( 83 ) * 80 / 9
----
-715121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9648
SELECT ALL + MAX( ( + - 68 ) ) / - 71 + + CAST( NULL AS SIGNED ) + + + COUNT( * ) + + SUM( DISTINCT 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL + MAX ( ( + - 68 ) ) / - 71 + + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + + SUM ( DISTINCT 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - SUM( ALL + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-9649
SELECT - SUM ( ALL + 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT DISTINCT + 83 + 71 * - COUNT( * ) * - - 55 AS col1
----
-3822

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT + 83 + 71 * - COUNT ( * ) * - - 55 AS col1
----
-3822

query I rowsort
SELECT ALL - 29 + + 80 AS col0
----
51

query I rowsort
SELECT DISTINCT 73 + - + 32 * - 18 AS col2
----
649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9653
SELECT 57 - COUNT( * ) + - 29 - + CAST( - 32 AS SIGNED ) * + 97 - + 89 AS col2
----
3042

skipif mysql # not compatible
query I rowsort label-9653
SELECT 57 - COUNT ( * ) + - 29 - + CAST ( - 32 AS INTEGER ) * + 97 - + 89 AS col2
----
3042

onlyif mysql # aggregate syntax: 
query II rowsort label-9654
SELECT 19 AS col0, 14 + - COUNT( - 17 )
----
19
13

skipif mysql # not compatible
query II rowsort label-9654
SELECT 19 AS col0, 14 + - COUNT ( - 17 )
----
19
13

query I rowsort
SELECT 67 * - 4 AS col2
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT DISTINCT + 84 + + 33 + - ( COUNT( * ) ) * + - 6 * + + 58
----
465

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT + 84 + + 33 + - ( COUNT ( * ) ) * + - 6 * + + 58
----
465

query I rowsort
SELECT ALL 96 + + - 86
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ALL SUM( ALL - 12 ) + - - 36 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL SUM ( ALL - 12 ) + - - 36 AS col2
----
24

query I rowsort
SELECT 92 - - ( + 27 )
----
119

query II rowsort
SELECT ALL 59, + 63 AS col2
----
59
63

query I rowsort
SELECT DISTINCT + 84 + + 33 - + 18 * ( - 52 ) AS col2
----
1053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT DISTINCT - CASE + 52 WHEN - 81 THEN NULL WHEN + 80 THEN NULL ELSE + CAST( + ( + 14 ) AS SIGNED ) - 11 END AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT - CASE + 52 WHEN - 81 THEN NULL WHEN + 80 THEN NULL ELSE + CAST ( + ( + 14 ) AS INTEGER ) - 11 END AS col1
----
-3

query I rowsort
SELECT 3 * 11 + - 41 + 97
----
89

query I rowsort
SELECT - COALESCE ( 73, - 80 * - 29 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT COALESCE ( + COUNT( * ), 21 * + 75, + + 51 * - + 93 + + 6 * 74, - - 60 + + 0 ) + COUNT( DISTINCT + 9 )
----
2

skipif mysql # not compatible
query I rowsort label-9665
SELECT COALESCE ( + COUNT ( * ), 21 * + 75, + + 51 * - + 93 + + 6 * 74, - - 60 + + 0 ) + COUNT ( DISTINCT + 9 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT + SUM( DISTINCT - 99 ) + COUNT( DISTINCT + - 86 )
----
-98

skipif mysql # not compatible
query I rowsort label-9666
SELECT + SUM ( DISTINCT - 99 ) + COUNT ( DISTINCT + - 86 )
----
-98

query I rowsort
SELECT ALL 1 * - + 41 AS col0
----
-41

query I rowsort
SELECT - 71 * - 69 * + 70 AS col2
----
342930

onlyif mysql # DIV for integer division: 
query I rowsort label-9669
SELECT ALL 40 DIV + 21 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL 40 / + 21 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9670
SELECT + + COUNT( * ) AS col0, + 8 * - + 15
----
1
-120

skipif mysql # not compatible
query II rowsort label-9670
SELECT + + COUNT ( * ) AS col0, + 8 * - + 15
----
1
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-9671
SELECT + 24 col1, - 90 * - COUNT( * ) * + - 99
----
24
-8910

skipif mysql # not compatible
query II rowsort label-9671
SELECT + 24 col1, - 90 * - COUNT ( * ) * + - 99
----
24
-8910

query I rowsort
SELECT + 37 + + - ( + + 18 ) * 3 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT + - CASE + 97 WHEN - 83 * + 88 - 80 + COUNT( * ) * + - 8 THEN + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT + - CASE + 97 WHEN - 83 * + 88 - 80 + COUNT ( * ) * + - 8 THEN + 72 END
----
NULL

query I rowsort
SELECT + 11 * - 17 + - 36
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT - NULLIF ( + + MIN( 79 ), + - MIN( + 84 ) * - + 66 - - 62 + + + 67 * 68 + - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-9675
SELECT - NULLIF ( + + MIN ( 79 ), + - MIN ( + 84 ) * - + 66 - - 62 + + + 67 * 68 + - 79 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9676
SELECT + - COUNT( * ) AS col2, NULLIF ( + 93, - + 8 ) * + CAST( + 95 AS SIGNED ) col1
----
-1
8835

skipif mysql # not compatible
query II rowsort label-9676
SELECT + - COUNT ( * ) AS col2, NULLIF ( + 93, - + 8 ) * + CAST ( + 95 AS INTEGER ) col1
----
-1
8835

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + 40 * - 62 * 17 - - 55 + + + 4 + - 90 + COUNT( * ) col0
----
-42190

skipif mysql # not compatible
query I rowsort label-9677
SELECT + 40 * - 62 * 17 - - 55 + + + 4 + - 90 + COUNT ( * ) col0
----
-42190

query I rowsort
SELECT ALL ( + 22 ) * + + 21 AS col0
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL - NULLIF ( - 43, NULLIF ( - 98, + 21 * + - COUNT( + 0 ) + - + 57 + - - 99 ) - + + CASE - 29 WHEN - 97 THEN + AVG ( DISTINCT + 5 ) * 64 END ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL - NULLIF ( - 43, NULLIF ( - 98, + 21 * + - COUNT ( + 0 ) + - + 57 + - - 99 ) - + + CASE - 29 WHEN - 97 THEN + AVG ( DISTINCT + 5 ) * 64 END ) AS col0
----
43

query I rowsort
SELECT ALL - 33 + - 47
----
-80

query I rowsort
SELECT ALL 74 + - 55 + - 62 col0
----
-43

query II rowsort
SELECT 2, 12 AS col0
----
2
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT 77 * CAST( + 3 AS SIGNED )
----
231

skipif mysql # not compatible
query I rowsort label-9683
SELECT 77 * CAST ( + 3 AS INTEGER )
----
231

query I rowsort
SELECT ALL 50 + + 15 * - 74 AS col0
----
-1060

query I rowsort
SELECT ALL + 60 + + - 37 * + 31 AS col2
----
-1087

query II rowsort
SELECT 10 col0, + 66 + + 70
----
10
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT MAX( DISTINCT - + 13 ) + - 86 + - ( + 37 ) - - + 48 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-9687
SELECT MAX ( DISTINCT - + 13 ) + - 86 + - ( + 37 ) - - + 48 AS col2
----
-88

query I rowsort
SELECT 93 - - - 7
----
86

query II rowsort
SELECT - 39 AS col0, + 80 + + + 57 * - + 1 col0
----
-39
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9690
SELECT CAST( - SUM( ALL - 43 ) AS SIGNED ) + 96 AS col2
----
139

skipif mysql # not compatible
query I rowsort label-9690
SELECT CAST ( - SUM ( ALL - 43 ) AS INTEGER ) + 96 AS col2
----
139

query II rowsort
SELECT 2 - + - 60, - 64 AS col0
----
62
-64

query II rowsort
SELECT - 94, 98 + - 89 AS col0
----
-94
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9693
SELECT DISTINCT + 52 * CASE - ( - 15 ) WHEN - 3 + + 1 THEN 59 * + + 98 + - 3 END AS col1, + CASE + - NULLIF ( 90, - CASE + 91 WHEN 60 * COUNT( * ) THEN NULL WHEN + 23 / 67 THEN NULL ELSE + 76 END + 58 * + COUNT( * ) ) WHEN AVG ( DISTINCT 10 ) THEN NULL WHEN - 12 THEN ( 27 ) END * 57 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9693
SELECT DISTINCT + 52 * CASE - ( - 15 ) WHEN - 3 + + 1 THEN 59 * + + 98 + - 3 END AS col1, + CASE + - NULLIF ( 90, - CASE + 91 WHEN 60 * COUNT ( * ) THEN NULL WHEN + 23 / 67 THEN NULL ELSE + 76 END + 58 * + COUNT ( * ) ) WHEN AVG ( DISTINCT 10 ) THEN NULL WHEN - 12 THEN ( 27 ) END * 57 AS col0
----
NULL
NULL

query I rowsort
SELECT 83 + + ( - 71 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ALL 66 * + 65 * - - ( COUNT( ALL - 16 ) ) * - + 72 AS col1
----
-308880

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL 66 * + 65 * - - ( COUNT ( ALL - 16 ) ) * - + 72 AS col1
----
-308880

query I rowsort
SELECT DISTINCT + 7 * 34
----
238

query I rowsort
SELECT DISTINCT - 53 * - 5 AS col1
----
265

query II rowsort
SELECT ALL + 98 - - 21, 8 * - 80 AS col0
----
119
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT ALL - 35 - - ( + MIN( DISTINCT 3 ) ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL - 35 - - ( + MIN ( DISTINCT 3 ) ) AS col1
----
-32

query II rowsort
SELECT ALL 15 AS col2, + NULLIF ( - - ( + + 55 ), - - ( 69 ) )
----
15
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9701
SELECT 89 + MIN( ALL - CAST( NULL AS SIGNED ) ) - + 77 * + + 49 - COALESCE ( 31, - 2, - - 96 * + 28 ) * - + 76 * 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT 89 + MIN ( ALL - CAST ( NULL AS INTEGER ) ) - + 77 * + + 49 - COALESCE ( 31, - 2, - - 96 * + 28 ) * - + 76 * 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT COUNT( * ) * - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9702
SELECT COUNT ( * ) * - 81 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT 27 + + + 85 * + + COUNT( * )
----
112

skipif mysql # not compatible
query I rowsort label-9703
SELECT 27 + + + 85 * + + COUNT ( * )
----
112

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9704
SELECT ALL + - COALESCE ( - 86, 78 * - 10 DIV - + CAST( NULL AS SIGNED ) ) * - 11 AS col2
----
-946

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL + - COALESCE ( - 86, 78 * - 10 / - + CAST ( NULL AS INTEGER ) ) * - 11 AS col2
----
-946

query I rowsort
SELECT - ( + 88 ) * 79 AS col0
----
-6952

onlyif mysql # DIV for integer division: 
query I rowsort label-9706
SELECT - 2 * + - 77 DIV - 55
----
-2

skipif mysql # not compatible
query I rowsort label-9706
SELECT - 2 * + - 77 / - 55
----
-2

query I rowsort
SELECT DISTINCT + ( 29 ) * - + 87 * + 64 * - 47 * 23
----
174551232

query I rowsort
SELECT ALL - - ( - 91 ) AS col2
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9709
SELECT - MIN( - 15 ) DIV - - 50 + COUNT( * ) - + 85 * + + 76 DIV + + 76 + - - 19 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-9709
SELECT - MIN ( - 15 ) / - - 50 + COUNT ( * ) - + 85 * + + 76 / + + 76 + - - 19 AS col0
----
-65

query I rowsort
SELECT - 91 + + 98 + - ( - 83 ) + - 18 * - 92 AS col2
----
1746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9711
SELECT - COUNT( * ) * - 22 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-9711
SELECT - COUNT ( * ) * - 22 / + 51
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9712
SELECT + - 55 AS col0, - COUNT( * ) AS col1
----
-55
-1

skipif mysql # not compatible
query II rowsort label-9712
SELECT + - 55 AS col0, - COUNT ( * ) AS col1
----
-55
-1

query I rowsort
SELECT DISTINCT - 62 * - + 92 * 90
----
513360

query I rowsort
SELECT ALL 62 + + 3
----
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9715
SELECT DISTINCT 33 DIV - - COALESCE ( - CAST( NULL AS SIGNED ), - + 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT 33 / - - COALESCE ( - CAST ( NULL AS INTEGER ), - + 21 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9716
SELECT 77 DIV 92 DIV + 60 AS col0, - 31
----
0
-31

skipif mysql # not compatible
query II rowsort label-9716
SELECT 77 / 92 / + 60 AS col0, - 31
----
0
-31

query I rowsort
SELECT ALL 56 + 44 col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT SUM( ALL - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9718
SELECT SUM ( ALL - 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT + COALESCE ( 21, ( - 14 ) ) * - - SUM( ALL - ( - 71 ) )
----
1491

skipif mysql # not compatible
query I rowsort label-9719
SELECT + COALESCE ( 21, ( - 14 ) ) * - - SUM ( ALL - ( - 71 ) )
----
1491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9720
SELECT + CAST( NULL AS SIGNED ) + 39 * - 49 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9720
SELECT + CAST ( NULL AS INTEGER ) + 39 * - 49 col0
----
NULL

query I rowsort
SELECT - 21 * - 15 + NULLIF ( - + 30, - 46 )
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9722
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1, - 79
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-9722
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1, - 79
----
NULL
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9723
SELECT DISTINCT 25 - + 73 - + - 24 + ( - 22 ) DIV - SUM( - 89 ) + - 72
----
-96

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT 25 - + 73 - + - 24 + ( - 22 ) / - SUM ( - 89 ) + - 72
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL SUM( 45 ) col2
----
45

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL SUM ( 45 ) col2
----
45

query I rowsort
SELECT - NULLIF ( 24, 69 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9726
SELECT ALL 60 - - - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL 60 - - - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 72 * + 50 AS col1
----
3600

onlyif mysql # aggregate syntax: 
query II rowsort label-9728
SELECT ALL + COUNT( DISTINCT - + 85 ) - + + 73, 36 AS col2
----
-72
36

skipif mysql # not compatible
query II rowsort label-9728
SELECT ALL + COUNT ( DISTINCT - + 85 ) - + + 73, 36 AS col2
----
-72
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9729
SELECT + 18 - - CAST( NULL AS SIGNED ), NULLIF ( - 50, - 84 * - COUNT( ( - + 82 ) ) * COALESCE ( + + 83, 81 * - + SUM( - 93 ) ) / + 49 + COUNT( * ) + 40 + 70 ) * COUNT( * ) + 3 col2
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-9729
SELECT + 18 - - CAST ( NULL AS INTEGER ), NULLIF ( - 50, - 84 * - COUNT ( ( - + 82 ) ) * COALESCE ( + + 83, 81 * - + SUM ( - 93 ) ) / + 49 + COUNT ( * ) + 40 + 70 ) * COUNT ( * ) + 3 col2
----
NULL
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT - 24 DIV - - NULLIF ( 73, + + 65 )
----
0

skipif mysql # not compatible
query I rowsort label-9730
SELECT - 24 / - - NULLIF ( 73, + + 65 )
----
0

query I rowsort
SELECT + 36 * - + 78 * 43
----
-120744

query I rowsort
SELECT - - 65 + + 80 - - - 13
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT ALL - COUNT( * ) * - - 17 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL - COUNT ( * ) * - - 17 AS col0
----
-17

query I rowsort
SELECT DISTINCT + 74 * 42 * - 79 AS col2
----
-245532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9735
SELECT + NULLIF ( + - 39, + 15 ) * + CASE - ( - 36 ) WHEN 96 THEN + CASE + CASE + 68 WHEN + - ( + 43 ) * + ( 71 * + ( 55 * - 72 ) + 22 * 30 ) THEN 66 ELSE + 1 + + 1 END WHEN 84 THEN + 71 ELSE NULL END DIV ( 59 - + COUNT( * ) ) ELSE - 88 END col0
----
3432

skipif mysql # not compatible
query I rowsort label-9735
SELECT + NULLIF ( + - 39, + 15 ) * + CASE - ( - 36 ) WHEN 96 THEN + CASE + CASE + 68 WHEN + - ( + 43 ) * + ( 71 * + ( 55 * - 72 ) + 22 * 30 ) THEN 66 ELSE + 1 + + 1 END WHEN 84 THEN + 71 ELSE NULL END / ( 59 - + COUNT ( * ) ) ELSE - 88 END col0
----
3432

query I rowsort
SELECT DISTINCT 19 * + 57 * - 62 + 55 AS col0
----
-67091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9737
SELECT - 2 * + COALESCE ( + 35, + ( - - 95 ), - 92 * - 3 DIV - COALESCE ( + - ( - 30 ), 7 ) * 20 + CAST( NULL AS SIGNED ) + 83, - 8 + 15 * - COALESCE ( + CASE CASE + COUNT( * ) WHEN 30 + 96 THEN COUNT( * ) + 67 ELSE NULL END WHEN + 31 + 3 THEN - 4 END, + ( - 2 ) + - ( 70 - 69 ) ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9737
SELECT - 2 * + COALESCE ( + 35, + ( - - 95 ), - 92 * - 3 / - COALESCE ( + - ( - 30 ), 7 ) * 20 + CAST ( NULL AS INTEGER ) + 83, - 8 + 15 * - COALESCE ( + CASE CASE + COUNT ( * ) WHEN 30 + 96 THEN COUNT ( * ) + 67 ELSE NULL END WHEN + 31 + 3 THEN - 4 END, + ( - 2 ) + - ( 70 - 69 ) ) ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT + CASE COUNT( * ) WHEN - 53 * - + 26 THEN 19 WHEN 52 * - 67 * 19 THEN NULL WHEN + SUM( - + 35 ) + COUNT( * ) THEN NULL ELSE 19 END
----
19

skipif mysql # not compatible
query I rowsort label-9738
SELECT + CASE COUNT ( * ) WHEN - 53 * - + 26 THEN 19 WHEN 52 * - 67 * 19 THEN NULL WHEN + SUM ( - + 35 ) + COUNT ( * ) THEN NULL ELSE 19 END
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9739
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) * + 56 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) * + 56 AS col1
----
-56

query I rowsort
SELECT ALL 77 * + 45 + ( + ( COALESCE ( + 17, - 63 ) ) ) col1
----
3482

query I rowsort
SELECT DISTINCT - 87 * - 10
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT ALL COALESCE ( - - 92, - - 77 * + 10 + + 17, + 88 * + 31 - + 98 ) * + 36 * + - 90 * + 99 + - 81 + - COUNT( * ) AS col0
----
-29510002

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL COALESCE ( - - 92, - - 77 * + 10 + + 17, + 88 * + 31 - + 98 ) * + 36 * + - 90 * + 99 + - 81 + - COUNT ( * ) AS col0
----
-29510002

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT DISTINCT + ( MIN( - - 31 ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT + ( MIN ( - - 31 ) ) AS col0
----
31

query II rowsort
SELECT ALL - 70 * - 46 * - - 35 AS col0, - 53 * - 49 * 39 * - + 47 AS col0
----
112700
-4760301

query I rowsort
SELECT - 32 + 20
----
-12

query I rowsort
SELECT CASE - 99 WHEN - - 12 + - - 83 THEN NULL ELSE 69 - + 76 + - 7 END
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9747
SELECT + 55 + + - 37 * - ( + - 57 ) + - 29 - 26 DIV 36 * - 20 + + COUNT( * ) * + 8 AS col0
----
-2075

skipif mysql # not compatible
query I rowsort label-9747
SELECT + 55 + + - 37 * - ( + - 57 ) + - 29 - 26 / 36 * - 20 + + COUNT ( * ) * + 8 AS col0
----
-2075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9748
SELECT ALL - 34 / + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL - 34 / + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9749
SELECT ALL + 72 * - - 76 - + - COUNT( * ) * - 47, 61 + - - 57 AS col1
----
5425
118

skipif mysql # not compatible
query II rowsort label-9749
SELECT ALL + 72 * - - 76 - + - COUNT ( * ) * - 47, 61 + - - 57 AS col1
----
5425
118

query I rowsort
SELECT + 72 * - + 41
----
-2952

query I rowsort
SELECT ALL 42 * - 65 col1
----
-2730

query I rowsort
SELECT + 48 * - 33
----
-1584

query I rowsort
SELECT + 7 * 45
----
315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9754
SELECT - COALESCE ( NULLIF ( + COUNT( * ), - 85 * 20 * + CASE + 74 WHEN + - COALESCE ( - - 25, - 29 ) THEN - 12 ELSE - COUNT( * ) - 42 * 41 END + - COUNT( * ) + ( 94 ) / - ( ( + 94 ) * 96 ) ), - CAST( NULL AS SIGNED ) ) + + 19
----
18

skipif mysql # not compatible
query I rowsort label-9754
SELECT - COALESCE ( NULLIF ( + COUNT ( * ), - 85 * 20 * + CASE + 74 WHEN + - COALESCE ( - - 25, - 29 ) THEN - 12 ELSE - COUNT ( * ) - 42 * 41 END + - COUNT ( * ) + ( 94 ) / - ( ( + 94 ) * 96 ) ), - CAST ( NULL AS INTEGER ) ) + + 19
----
18

query I rowsort
SELECT + 25 - - 31
----
56

query I rowsort
SELECT + 95 + 67 AS col0
----
162

query I rowsort
SELECT + 1 + 97 col1
----
98

query I rowsort
SELECT ALL 7 * 2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT + 18 * + - CAST( - - 26 AS SIGNED ) * CASE - 70 WHEN - 53 / 47 THEN 64 * - - 72 * + + 14 WHEN 4 * + 4 - - 51 + + 50 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9759
SELECT + 18 * + - CAST ( - - 26 AS INTEGER ) * CASE - 70 WHEN - 53 / 47 THEN 64 * - - 72 * + + 14 WHEN 4 * + 4 - - 51 + + 50 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT + - 25 + + + COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9760
SELECT + - 25 + + + COUNT ( * ) AS col2
----
-24

query II rowsort
SELECT DISTINCT 52 AS col2, + 56 AS col1
----
52
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9762
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) * - 73 * 19 + + 64 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 73 * 19 + + 64 col2
----
NULL

query I rowsort
SELECT + - 75 + + 2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9764
SELECT ALL - - CAST( NULL AS DECIMAL ) * - 4 + + - COALESCE ( + - 51, - CASE 23 WHEN + + MIN( + + 91 ) + + MIN( - 24 ) + NULLIF ( + - COUNT( * ), + - 61 ) * 41 * - 11 THEN 44 - + 65 ELSE NULLIF ( - CASE CAST( + 4 AS DECIMAL ) WHEN 96 * + COUNT( * ) + - 15 THEN - ( + COUNT( * ) ) WHEN + CASE 8 WHEN + 55 + COUNT( * ) THEN 13 / - 74 ELSE NULL END + - 2 THEN NULL END, NULLIF ( + 16, + CAST( NULL AS SIGNED ) ) * - 66 + + COUNT( * ) ) * ( - COUNT( ALL + 69 ) ) END * + 52 + + 95 / - CASE + CAST( NULL AS DECIMAL ) * + 13 WHEN 63 * + 54 + 6 THEN NULL ELSE 56 END, 32 + + 39 ) - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL - - CAST ( NULL AS REAL ) * - 4 + + - COALESCE ( + - 51, - CASE 23 WHEN + + MIN ( + + 91 ) + + MIN ( - 24 ) + NULLIF ( + - COUNT ( * ), + - 61 ) * 41 * - 11 THEN 44 - + 65 ELSE NULLIF ( - CASE CAST ( + 4 AS REAL ) WHEN 96 * + COUNT ( * ) + - 15 THEN - ( + COUNT ( * ) ) WHEN + CASE 8 WHEN + 55 + COUNT ( * ) THEN 13 / - 74 ELSE NULL END + - 2 THEN NULL END, NULLIF ( + 16, + CAST ( NULL AS INTEGER ) ) * - 66 + + COUNT ( * ) ) * ( - COUNT ( ALL + 69 ) ) END * + 52 + + 95 / - CASE + CAST ( NULL AS REAL ) * + 13 WHEN 63 * + 54 + 6 THEN NULL ELSE 56 END, 32 + + 39 ) - 26
----
NULL

query II rowsort
SELECT 21, - 28 + + + 72 AS col2
----
21
44

query I rowsort
SELECT - 64 + 85 + - ( - 92 ) + - 20 * + ( - 62 ) AS col0
----
1353

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT - CASE + + COUNT( * ) WHEN + 93 THEN + + COUNT( * ) / 74 + - - 51 + 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT - CASE + + COUNT ( * ) WHEN + 93 THEN + + COUNT ( * ) / 74 + - - 51 + 59 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT - + CASE - 11 WHEN - - 93 - - 27 THEN 48 * + - 57 * - MIN( ALL - 19 ) - + 71 + + 65 / - + 47 * - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT - + CASE - 11 WHEN - - 93 - - 27 THEN 48 * + - 57 * - MIN ( ALL - 19 ) - + 71 + + 65 / - + 47 * - 92 END
----
NULL

query I rowsort
SELECT ALL - + 41 * - - 13 + 70 - 66 AS col1
----
-529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9770
SELECT DISTINCT + 69 / COUNT( * ) * + + 66 / 5 + COUNT( * ) + + - 78 * SUM( + 70 ) * + CASE + 95 WHEN 10 THEN - COALESCE ( + - 10, - COUNT( DISTINCT + 98 ) ) WHEN CASE 49 WHEN + 56 / + 51 + + ( 34 + 41 ) THEN NULL WHEN - CAST( ( - 13 ) AS SIGNED ) / - 47 THEN + 70 ELSE NULL END * 43 THEN NULL END + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT + 69 / COUNT ( * ) * + + 66 / 5 + COUNT ( * ) + + - 78 * SUM ( + 70 ) * + CASE + 95 WHEN 10 THEN - COALESCE ( + - 10, - COUNT ( DISTINCT + 98 ) ) WHEN CASE 49 WHEN + 56 / + 51 + + ( 34 + 41 ) THEN NULL WHEN - CAST ( ( - 13 ) AS INTEGER ) / - 47 THEN + 70 ELSE NULL END * 43 THEN NULL END + 41 AS col1
----
NULL

query I rowsort
SELECT ALL - 68 * - + 26 col2
----
1768

onlyif mysql # DIV for integer division: 
query I rowsort label-9772
SELECT DISTINCT + 4 DIV + 3 + + 80 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT + 4 / + 3 + + 80 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL - - ( - MIN( - 29 ) )
----
29

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL - - ( - MIN ( - 29 ) )
----
29

query I rowsort
SELECT DISTINCT - 83 + 65
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9775
SELECT DISTINCT + 29 + - 1 + + 54 + + 48 DIV + COUNT( * )
----
130

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT + 29 + - 1 + + 54 + + 48 / + COUNT ( * )
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-9776
SELECT ALL - COALESCE ( + COUNT( * ), + 53, MIN( - 98 ) ) AS col0, 74
----
-1
74

skipif mysql # not compatible
query II rowsort label-9776
SELECT ALL - COALESCE ( + COUNT ( * ), + 53, MIN ( - 98 ) ) AS col0, 74
----
-1
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9777
SELECT - COUNT( ALL + CAST( + 16 AS SIGNED ) ) DIV + 92 * - - 77 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9777
SELECT - COUNT ( ALL + CAST ( + 16 AS INTEGER ) ) / + 92 * - - 77 + COUNT ( * )
----
1

query I rowsort
SELECT 83 + - ( - 36 )
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL - COUNT( * ) * - 16 * + COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL - COUNT ( * ) * - 16 * + COUNT ( * ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT CAST( NULL AS SIGNED ) * + 85 * - 59 * 71 + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT CAST ( NULL AS INTEGER ) * + 85 * - 59 * 71 + 32 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 21 * - 7 AS col2, + 7
----
147
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL COUNT( * ) * MIN( DISTINCT + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL COUNT ( * ) * MIN ( DISTINCT + 11 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9783
SELECT 11 * - CAST( + - 68 AS SIGNED )
----
748

skipif mysql # not compatible
query I rowsort label-9783
SELECT 11 * - CAST ( + - 68 AS INTEGER )
----
748

onlyif mysql # aggregate syntax: 
query II rowsort label-9784
SELECT 18 + + 17 AS col0, + COUNT( * )
----
35
1

skipif mysql # not compatible
query II rowsort label-9784
SELECT 18 + + 17 AS col0, + COUNT ( * )
----
35
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT ALL - CAST( - 29 AS SIGNED ) col0
----
29

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL - CAST ( - 29 AS INTEGER ) col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT 1 * + - COUNT( - - 59 ) * + + 83 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-9786
SELECT 1 * + - COUNT ( - - 59 ) * + + 83 AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9787
SELECT 8 DIV - ( - - 73 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9787
SELECT 8 / - ( - - 73 ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9788
SELECT SUM( + 9 ) * - - 67 + + 62 AS col2, + 98
----
665
98

skipif mysql # not compatible
query II rowsort label-9788
SELECT SUM ( + 9 ) * - - 67 + + 62 AS col2, + 98
----
665
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT COUNT( * ) * - + 61
----
-61

skipif mysql # not compatible
query I rowsort label-9789
SELECT COUNT ( * ) * - + 61
----
-61

query I rowsort
SELECT DISTINCT COALESCE ( NULLIF ( - 98, - 46 ), + 8 ) col1
----
-98

query I rowsort
SELECT DISTINCT 56 * + 18 AS col0
----
1008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT 4 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT 4 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9793
SELECT ALL + NULLIF ( - 87, 20 ) + + 83 AS col0, MAX( + 71 ) * + COUNT( * ) + - 92 * 75 AS col1
----
-4
-6829

skipif mysql # not compatible
query II rowsort label-9793
SELECT ALL + NULLIF ( - 87, 20 ) + + 83 AS col0, MAX ( + 71 ) * + COUNT ( * ) + - 92 * 75 AS col1
----
-4
-6829

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9794
SELECT COALESCE ( - 75, + 88 + + 84 + + 81, + 69 ) DIV + - COUNT( - + 4 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9794
SELECT COALESCE ( - 75, + 88 + + 84 + + 81, + 69 ) / + - COUNT ( - + 4 ) AS col1
----
75

query I rowsort
SELECT ALL - 33 * + 77 * 96 AS col2
----
-243936

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT COUNT( * ) + - 90 + + 98
----
9

skipif mysql # not compatible
query I rowsort label-9796
SELECT COUNT ( * ) + - 90 + + 98
----
9

query I rowsort
SELECT ALL + 58 + - + 35
----
23

query I rowsort
SELECT - - ( - - 43 )
----
43

query I rowsort
SELECT 53 + + 57 AS col2
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-9800
SELECT ALL COUNT( * ) - + - 48 - 71 * 25 col1, COUNT( * )
----
-1726
1

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL COUNT ( * ) - + - 48 - 71 * 25 col1, COUNT ( * )
----
-1726
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9801
SELECT - CAST( - 40 AS SIGNED ) + CAST( NULL AS SIGNED ) + ( + 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9801
SELECT - CAST ( - 40 AS INTEGER ) + CAST ( NULL AS INTEGER ) + ( + 41 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT + SUM( - ( - - 20 ) ) - + 48
----
-68

skipif mysql # not compatible
query I rowsort label-9802
SELECT + SUM ( - ( - - 20 ) ) - + 48
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9803
SELECT ALL + 56 DIV - COALESCE ( 70, - 69 * - 89 + + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL + 56 / - COALESCE ( 70, - 69 * - 89 + + 53 )
----
0

query II rowsort
SELECT 3 AS col2, 70
----
3
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT DISTINCT COUNT( * ) * 36 * - 48 AS col2
----
-1728

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT COUNT ( * ) * 36 * - 48 AS col2
----
-1728

query II rowsort
SELECT ALL - 48 AS col1, 15
----
-48
15

query I rowsort
SELECT DISTINCT 9 - 27 * + 53 * 81 AS col1
----
-115902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9808
SELECT ALL + COUNT( * ) * - 80 DIV + - CAST( + 27 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL + COUNT ( * ) * - 80 / + - CAST ( + 27 AS INTEGER )
----
2

query I rowsort
SELECT DISTINCT 2 * + 50 col2
----
100

query I rowsort
SELECT 12 * - 89 AS col2
----
-1068

query I rowsort
SELECT DISTINCT 96 * - 34 * + 46 * + 48
----
-7206912

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT DISTINCT - SUM( - - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT - SUM ( - - 67 )
----
-67

query I rowsort
SELECT 11 * + + ( + 63 )
----
693

query I rowsort
SELECT 46 * - + 1 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL - COUNT( + + 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL - COUNT ( + + 22 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT - ( 20 ) * - ( + - MAX( - 42 ) ) * + 43 * - 78 + COUNT( * ) + - 67 + + + 43 + + ( - 99 ) * - 57 * - + MAX( ALL 8 ) + ( 9 + + 31 ) AS col2
----
-2862487

skipif mysql # not compatible
query I rowsort label-9816
SELECT - ( 20 ) * - ( + - MAX ( - 42 ) ) * + 43 * - 78 + COUNT ( * ) + - 67 + + + 43 + + ( - 99 ) * - 57 * - + MAX ( ALL 8 ) + ( 9 + + 31 ) AS col2
----
-2862487

query II rowsort
SELECT ALL - NULLIF ( + 5, - - 70 ) + - ( - + 0 ), + 67 * + 49 AS col1
----
-5
3283

query I rowsort
SELECT ALL + 22 * + + 43 col0
----
946

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT + 67 * - 25 + - - COUNT( * ) * + 59 * - COUNT( ALL 75 ) + + - 31
----
-1765

skipif mysql # not compatible
query I rowsort label-9819
SELECT + 67 * - 25 + - - COUNT ( * ) * + 59 * - COUNT ( ALL 75 ) + + - 31
----
-1765

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT COUNT( * ) + + 97 * + + 67
----
6500

skipif mysql # not compatible
query I rowsort label-9820
SELECT COUNT ( * ) + + 97 * + + 67
----
6500

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT + - NULLIF ( - 85, - 76 + + NULLIF ( + - 55, - COUNT( * ) ) + + + COUNT( * ) ) * + COUNT( * ) - 26
----
59

skipif mysql # not compatible
query I rowsort label-9821
SELECT + - NULLIF ( - 85, - 76 + + NULLIF ( + - 55, - COUNT ( * ) ) + + + COUNT ( * ) ) * + COUNT ( * ) - 26
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9822
SELECT DISTINCT 48 AS col1, + 31 * NULLIF ( - 51, COUNT( * ) / + 66 + + 54 ) AS col0
----
48
-1581

skipif mysql # not compatible
query II rowsort label-9822
SELECT DISTINCT 48 AS col1, + 31 * NULLIF ( - 51, COUNT ( * ) / + 66 + + 54 ) AS col0
----
48
-1581

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9823
SELECT 75 + + + 43 - - 34 + - - 9 * - 81 * - CASE - - 37 WHEN - AVG ( - 64 ) * + + 27 * - + 3 THEN + COUNT( * ) * + COUNT( ALL 73 ) + + 33 + 56 DIV - 83 ELSE - 72 END
----
-52336

skipif mysql # not compatible
query I rowsort label-9823
SELECT 75 + + + 43 - - 34 + - - 9 * - 81 * - CASE - - 37 WHEN - AVG ( - 64 ) * + + 27 * - + 3 THEN + COUNT ( * ) * + COUNT ( ALL 73 ) + + 33 + 56 / - 83 ELSE - 72 END
----
-52336

query II rowsort
SELECT DISTINCT 55, 79 * + 58 col1
----
55
4582

query I rowsort
SELECT ALL + 46 * + 6 AS col0
----
276

query I rowsort
SELECT + - 40 * - 35
----
1400

query I rowsort
SELECT - + CASE WHEN 44 <> 1 THEN 33 END * + 37
----
-1221

query II rowsort
SELECT - 61 AS col2, 42 AS col1
----
-61
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9829
SELECT + ( + NULLIF ( - - CAST( NULL AS SIGNED ), - + COUNT( * ) * + 72 - + 50 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT + ( + NULLIF ( - - CAST ( NULL AS INTEGER ), - + COUNT ( * ) * + 72 - + 50 ) ) AS col2
----
NULL

query I rowsort
SELECT + - 91 + - + 29
----
-120

query I rowsort
SELECT DISTINCT - 27 * 26 - 12 AS col2
----
-714

query I rowsort
SELECT + + ( + 95 ) + + + 84 AS col1
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9833
SELECT ALL NULLIF ( - + CAST( NULL AS SIGNED ), - - 78 / + - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL NULLIF ( - + CAST ( NULL AS INTEGER ), - - 78 / + - 5 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9834
SELECT ALL + 67 AS col0, - 24 DIV COUNT( * ) col1
----
67
-24

skipif mysql # not compatible
query II rowsort label-9834
SELECT ALL + 67 AS col0, - 24 / COUNT ( * ) col1
----
67
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9835
SELECT - AVG ( - + 82 ) / - - 51 + + COUNT( * ) + + + COALESCE ( - NULLIF ( + 98, + MIN( - 19 ) ), 18 ) + CAST( NULL AS SIGNED ) * + 45 + AVG ( DISTINCT - ( 16 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT - AVG ( - + 82 ) / - - 51 + + COUNT ( * ) + + + COALESCE ( - NULLIF ( + 98, + MIN ( - 19 ) ), 18 ) + CAST ( NULL AS INTEGER ) * + 45 + AVG ( DISTINCT - ( 16 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ALL MAX( ALL 72 ) * 2
----
144

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL MAX ( ALL 72 ) * 2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT NULLIF ( - ( - 43 ), - SUM( - - 84 ) / - + 4 + - 77 ) col2
----
43

skipif mysql # not compatible
query I rowsort label-9837
SELECT NULLIF ( - ( - 43 ), - SUM ( - - 84 ) / - + 4 + - 77 ) col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + 49 + + COUNT( * ) + + CASE 64 WHEN - 67 * + 2 THEN NULL WHEN - - 15 THEN NULL WHEN - 35 THEN NULL WHEN + - 56 + 52 + - - 75 * + MAX( 13 ) THEN + 71 + - 23 ELSE + 66 END * 95
----
6320

skipif mysql # not compatible
query I rowsort label-9838
SELECT + 49 + + COUNT ( * ) + + CASE 64 WHEN - 67 * + 2 THEN NULL WHEN - - 15 THEN NULL WHEN - 35 THEN NULL WHEN + - 56 + 52 + - - 75 * + MAX ( 13 ) THEN + 71 + - 23 ELSE + 66 END * 95
----
6320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9839
SELECT + 8 * - ( + COALESCE ( - NULLIF ( + 22, - 2 ), MAX( + 48 ), 26 - 51 ) ) DIV - - COUNT( * ) + - - 28 col0
----
204

skipif mysql # not compatible
query I rowsort label-9839
SELECT + 8 * - ( + COALESCE ( - NULLIF ( + 22, - 2 ), MAX ( + 48 ), 26 - 51 ) ) / - - COUNT ( * ) + - - 28 col0
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT + CAST( NULL AS SIGNED ) * + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT + CAST ( NULL AS INTEGER ) * + 39 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( - + 77, - 75 / + - 43 * - - 54 ) AS col0
----
-77

query II rowsort
SELECT ALL + 66 AS col2, + 54
----
66
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT CASE COUNT( * ) WHEN - 94 THEN 23 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT CASE COUNT ( * ) WHEN - 94 THEN 23 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9844
SELECT 76 * CAST( - AVG ( 2 ) AS SIGNED ) + 98 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9844
SELECT 76 * CAST ( - AVG ( 2 ) AS INTEGER ) + 98 AS col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-9845
SELECT + 72 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT + 72 / 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9846
SELECT - CASE + 72 WHEN 85 + - 75 * - ( 46 ) THEN NULL ELSE - 48 * 87 + - - ( + CASE + 77 WHEN - 46 THEN 81 + - - CAST( + COUNT( * ) AS SIGNED ) * - 33 + 19 DIV 64 ELSE 0 END ) + 77 END + COUNT( * ) col1
----
4100

skipif mysql # not compatible
query I rowsort label-9846
SELECT - CASE + 72 WHEN 85 + - 75 * - ( 46 ) THEN NULL ELSE - 48 * 87 + - - ( + CASE + 77 WHEN - 46 THEN 81 + - - CAST ( + COUNT ( * ) AS INTEGER ) * - 33 + 19 / 64 ELSE 0 END ) + 77 END + COUNT ( * ) col1
----
4100

query I rowsort
SELECT + 89 + - - 82 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT ALL CASE ( - + COUNT( * ) ) WHEN 42 THEN + 76 * - 55 + + 31 * + + 42 * - 21 END / 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL CASE ( - + COUNT ( * ) ) WHEN 42 THEN + 76 * - 55 + + 31 * + + 42 * - 21 END / 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT + CASE + 33 WHEN 64 THEN 92 - + + COUNT( * ) + + - 78 + - - MAX( ALL - 20 ) WHEN + 28 THEN - + 56 + - 39 ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-9849
SELECT + CASE + 33 WHEN 64 THEN 92 - + + COUNT ( * ) + + - 78 + - - MAX ( ALL - 20 ) WHEN + 28 THEN - + 56 + - 39 ELSE + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT SUM( + - 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9850
SELECT SUM ( + - 98 ) AS col2
----
-98

query I rowsort
SELECT + + ( - + 68 ) col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9852
SELECT + CAST( NULL AS SIGNED ) / 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT + CAST ( NULL AS INTEGER ) / 30
----
NULL

query I rowsort
SELECT - 17 + - - 88 AS col0
----
71

query I rowsort
SELECT DISTINCT NULLIF ( + 12, - 34 )
----
12

query I rowsort
SELECT DISTINCT + 83 + 37 * - 65 + + + 4 * 61 AS col1
----
-2078

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT MIN( DISTINCT - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT MIN ( DISTINCT - 99 )
----
-99

query I rowsort
SELECT ALL + 50 * 56
----
2800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9858
SELECT ALL - 81 - + + ( + + ( - CAST( NULL AS SIGNED ) ) ) + - + 96 * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL - 81 - + + ( + + ( - CAST ( NULL AS INTEGER ) ) ) + - + 96 * + 9
----
NULL

query I rowsort
SELECT DISTINCT + + 85 * - + 77
----
-6545

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT + - 0 - - - 47 + + SUM( ALL + ( + - 17 ) ) * - 39 + - - 28 * + SUM( ALL - - 73 ) * + 42
----
86464

skipif mysql # not compatible
query I rowsort label-9860
SELECT + - 0 - - - 47 + + SUM ( ALL + ( + - 17 ) ) * - 39 + - - 28 * + SUM ( ALL - - 73 ) * + 42
----
86464

query I rowsort
SELECT - 33 * + - 5 + - + 51 AS col0
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-9862
SELECT ALL 78 AS col1, + 68 + 10 + + 72 * + + MIN( DISTINCT - - 32 )
----
78
2382

skipif mysql # not compatible
query II rowsort label-9862
SELECT ALL 78 AS col1, + 68 + 10 + + 72 * + + MIN ( DISTINCT - - 32 )
----
78
2382

query I rowsort
SELECT DISTINCT - + 93 * + 62
----
-5766

query I rowsort
SELECT - 99 * - 40
----
3960

query I rowsort
SELECT + + ( - + 26 ) * ( 79 ) AS col0
----
-2054

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT ALL - NULLIF ( + MAX( ALL 91 ), ( COUNT( * ) ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL - NULLIF ( + MAX ( ALL 91 ), ( COUNT ( * ) ) ) AS col1
----
-91

query I rowsort
SELECT DISTINCT NULLIF ( + - 69, 84 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9868
SELECT - 38 - + 34 AS col2, + COUNT( * )
----
-72
1

skipif mysql # not compatible
query II rowsort label-9868
SELECT - 38 - + 34 AS col2, + COUNT ( * )
----
-72
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9869
SELECT ALL 50 DIV + ( 61 ) * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL 50 / + ( 61 ) * + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9870
SELECT ALL ( 38 ) col0, COALESCE ( - COUNT( * ), + 42 ) - + - 90 AS col2
----
38
89

skipif mysql # not compatible
query II rowsort label-9870
SELECT ALL ( 38 ) col0, COALESCE ( - COUNT ( * ), + 42 ) - + - 90 AS col2
----
38
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT ALL - 80 DIV + 13
----
-6

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL - 80 / + 13
----
-6

query I rowsort
SELECT - 20 * ( 48 )
----
-960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9873
SELECT + 26 * 73 DIV NULLIF ( + 49, + - COUNT( * ) + + 82 - + + COUNT( * ) DIV - 12 * + + 54 * 52 * 60 DIV - 13 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-9873
SELECT + 26 * 73 / NULLIF ( + 49, + - COUNT ( * ) + + 82 - + + COUNT ( * ) / - 12 * + + 54 * 52 * 60 / - 13 ) AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9874
SELECT - 96 * - + 29 col1, - COUNT( * ) + 55 * + COALESCE ( - NULLIF ( - - MIN( ALL - CAST( NULL AS SIGNED ) ), 55 ), 64 + + + 8, NULLIF ( + NULLIF ( - - 26, + 4 ), + - 56 / ( 54 ) ) + 65 ) * 71 AS col1
----
2784
281159

skipif mysql # not compatible
query II rowsort label-9874
SELECT - 96 * - + 29 col1, - COUNT ( * ) + 55 * + COALESCE ( - NULLIF ( - - MIN ( ALL - CAST ( NULL AS INTEGER ) ), 55 ), 64 + + + 8, NULLIF ( + NULLIF ( - - 26, + 4 ), + - 56 / ( 54 ) ) + 65 ) * 71 AS col1
----
2784
281159

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT + COUNT( * ) * 4 col1
----
4

skipif mysql # not compatible
query I rowsort label-9875
SELECT + COUNT ( * ) * 4 col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9876
SELECT ALL + COUNT( * ) DIV - CAST( 90 AS SIGNED ) * + + 21 + + 13 * + - 51 AS col0
----
-663

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL + COUNT ( * ) / - CAST ( 90 AS INTEGER ) * + + 21 + + 13 * + - 51 AS col0
----
-663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9877
SELECT ALL + COUNT( * ) * + - 31 DIV COALESCE ( 83, + 36 - 29 + + + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL + COUNT ( * ) * + - 31 / COALESCE ( 83, + 36 - 29 + + + 54 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9878
SELECT DISTINCT - 75 DIV 51 + + ( + + NULLIF ( 36, 57 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT - 75 / 51 + + ( + + NULLIF ( 36, 57 ) ) AS col0
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-9879
SELECT - 30 + + 7 AS col1, 77 DIV - 86
----
-23
0

skipif mysql # not compatible
query II rowsort label-9879
SELECT - 30 + + 7 AS col1, 77 / - 86
----
-23
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT + 36 * 50 * ( - + 50 ) * SUM( ALL - 65 ) AS col2
----
5850000

skipif mysql # not compatible
query I rowsort label-9880
SELECT + 36 * 50 * ( - + 50 ) * SUM ( ALL - 65 ) AS col2
----
5850000

query I rowsort
SELECT - 6 + - - 65
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9882
SELECT + CAST( - 26 AS SIGNED ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9882
SELECT + CAST ( - 26 AS INTEGER ) AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9883
SELECT ALL + - CASE - - 18 WHEN 23 * CASE + AVG ( + NULLIF ( + 62, 36 ) ) WHEN 52 THEN 83 + - 6 WHEN - 16 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + - CASE + + 13 WHEN - COUNT( * ) + + 40 * + CAST( NULL AS SIGNED ) THEN 95 - - 68 / 16 WHEN 36 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + 96 WHEN - COUNT( * ) THEN NULL END THEN - 55 / - 82 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL + - CASE - - 18 WHEN 23 * CASE + AVG ( + NULLIF ( + 62, 36 ) ) WHEN 52 THEN 83 + - 6 WHEN - 16 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + - CASE + + 13 WHEN - COUNT ( * ) + + 40 * + CAST ( NULL AS INTEGER ) THEN 95 - - 68 / 16 WHEN 36 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + 96 WHEN - COUNT ( * ) THEN NULL END THEN - 55 / - 82 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT + 15 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-9884
SELECT + 15 / - 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL + NULLIF ( + + 5, 47 ) * + 17 + - COUNT( * ) + - + ( CASE - 81 WHEN - + 87 THEN NULL WHEN - 36 * + 89 THEN NULL WHEN 40 THEN 18 END ) + - - 10 + - - 40 / + - 25 * + 64 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL + NULLIF ( + + 5, 47 ) * + 17 + - COUNT ( * ) + - + ( CASE - 81 WHEN - + 87 THEN NULL WHEN - 36 * + 89 THEN NULL WHEN 40 THEN 18 END ) + - - 10 + - - 40 / + - 25 * + 64 + COUNT ( * )
----
NULL

query I rowsort
SELECT + - 34 * - + 1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT + - 90 + + COUNT( 16 )
----
-89

skipif mysql # not compatible
query I rowsort label-9887
SELECT + - 90 + + COUNT ( 16 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9888
SELECT - SUM( ALL 48 ) * - + 59 * CASE - CAST( NULL AS SIGNED ) WHEN + 8 - + - 60 THEN - ( - 83 ) * + 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT - SUM ( ALL 48 ) * - + 59 * CASE - CAST ( NULL AS INTEGER ) WHEN + 8 - + - 60 THEN - ( - 83 ) * + 10 ELSE NULL END
----
NULL

query I rowsort
SELECT 40 * 15 + + 4
----
604

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT + 56 * 56 - + + 77 * COUNT( * ) * + 45
----
-329

skipif mysql # not compatible
query I rowsort label-9890
SELECT + 56 * 56 - + + 77 * COUNT ( * ) * + 45
----
-329

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT + - 80 * + COUNT( * ) - 66 + + + COUNT( * ) + + 91
----
-54

skipif mysql # not compatible
query I rowsort label-9891
SELECT + - 80 * + COUNT ( * ) - 66 + + + COUNT ( * ) + + 91
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9892
SELECT ALL + 69 DIV 53 AS col2, - COUNT( * ) * - 39 * 79 AS col1
----
1
3081

skipif mysql # not compatible
query II rowsort label-9892
SELECT ALL + 69 / 53 AS col2, - COUNT ( * ) * - 39 * 79 AS col1
----
1
3081

query I rowsort
SELECT - - ( - - 85 ) AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9894
SELECT + 97 + + + 73 AS col2, - 59 * - ( - CASE - + 91 WHEN + NULLIF ( + CAST( 58 AS SIGNED ), - - CASE CAST( NULL AS SIGNED ) WHEN 20 * + 43 THEN 8 * + 74 / + 39 / 41 WHEN 39 THEN NULL ELSE NULL END ) / 83 THEN NULL WHEN - 87 THEN NULL WHEN + 65 THEN - 57 END )
----
170
NULL

skipif mysql # not compatible
query II rowsort label-9894
SELECT + 97 + + + 73 AS col2, - 59 * - ( - CASE - + 91 WHEN + NULLIF ( + CAST ( 58 AS INTEGER ), - - CASE CAST ( NULL AS INTEGER ) WHEN 20 * + 43 THEN 8 * + 74 / + 39 / 41 WHEN 39 THEN NULL ELSE NULL END ) / 83 THEN NULL WHEN - 87 THEN NULL WHEN + 65 THEN - 57 END )
----
170
NULL

query I rowsort
SELECT DISTINCT - 44 * + 28 * - 87 * - - 95 AS col0
----
10182480

query I rowsort
SELECT 5 + - 98 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-9897
SELECT DISTINCT 66, - 14 * + COUNT( * ) AS col2
----
66
-14

skipif mysql # not compatible
query II rowsort label-9897
SELECT DISTINCT 66, - 14 * + COUNT ( * ) AS col2
----
66
-14

query I rowsort
SELECT 83 + + - 25 * - 3 * - 93
----
-6892

query I rowsort
SELECT ( 45 ) + + 21 + + + 96 * + 35 * + 51 * - - NULLIF ( - 47, + - 42 / 65 )
----
-8053854

query I rowsort
SELECT 95 * + + 63
----
5985

onlyif mysql # DIV for integer division: 
query I rowsort label-9901
SELECT 2 DIV - - 65
----
0

skipif mysql # not compatible
query I rowsort label-9901
SELECT 2 / - - 65
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9902
SELECT ALL - 76 + - CAST( - - 41 AS SIGNED )
----
-117

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL - 76 + - CAST ( - - 41 AS INTEGER )
----
-117

query I rowsort
SELECT ALL + COALESCE ( + - 32, + + 59 ) + + 32
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9904
SELECT - 82, - 5 * - ( COUNT( * ) ) * - COUNT( * ) + NULLIF ( CAST( 11 AS SIGNED ), ( 81 ) * ( 49 ) ) + 11 * - - 70 * CAST( + ( - - 46 ) AS SIGNED ) AS col0
----
-82
35426

skipif mysql # not compatible
query II rowsort label-9904
SELECT - 82, - 5 * - ( COUNT ( * ) ) * - COUNT ( * ) + NULLIF ( CAST ( 11 AS INTEGER ), ( 81 ) * ( 49 ) ) + 11 * - - 70 * CAST ( + ( - - 46 ) AS INTEGER ) AS col0
----
-82
35426

query II rowsort
SELECT ALL 83, 87 + - - 2 AS col2
----
83
89

onlyif mysql # DIV for integer division: 
query II rowsort label-9906
SELECT 17 + ( 61 ) DIV - 74, 61 * + 88 AS col2
----
17
5368

skipif mysql # not compatible
query II rowsort label-9906
SELECT 17 + ( 61 ) / - 74, 61 * + 88 AS col2
----
17
5368

query I rowsort
SELECT DISTINCT + 31 + - 53 AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9908
SELECT ALL - CASE - COUNT( * ) WHEN - ( 49 ) THEN - + 67 ELSE NULL END + + CASE + CAST( NULL AS SIGNED ) WHEN - + 23 * + 12 THEN - CAST( NULL AS SIGNED ) * - + COUNT( * ) + 35 ELSE NULL END + + 87 + + CAST( NULL AS SIGNED ) * NULLIF ( - CAST( - - 47 AS SIGNED ), - + ( - ( - 26 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL - CASE - COUNT ( * ) WHEN - ( 49 ) THEN - + 67 ELSE NULL END + + CASE + CAST ( NULL AS INTEGER ) WHEN - + 23 * + 12 THEN - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + 35 ELSE NULL END + + 87 + + CAST ( NULL AS INTEGER ) * NULLIF ( - CAST ( - - 47 AS INTEGER ), - + ( - ( - 26 ) ) ) AS col0
----
NULL

query I rowsort
SELECT 37 + - 65 col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT ALL 54 + - NULLIF ( + 32, - 88 + + 78 + COUNT( * ) + - 99 + + 48 * - 17 + - + 26 * COUNT( + 66 ) * 12 + 6 ) * - 7 * - NULLIF ( - 72, + 79 ) * 65
----
1048374

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL 54 + - NULLIF ( + 32, - 88 + + 78 + COUNT ( * ) + - 99 + + 48 * - 17 + - + 26 * COUNT ( + 66 ) * 12 + 6 ) * - 7 * - NULLIF ( - 72, + 79 ) * 65
----
1048374

query I rowsort
SELECT DISTINCT - ( - COALESCE ( - + 37, - 74 - + 23 * - 83 ) )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9912
SELECT 17 DIV 18 * MIN( 69 )
----
0

skipif mysql # not compatible
query I rowsort label-9912
SELECT 17 / 18 * MIN ( 69 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT 52 + + + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-9913
SELECT 52 + + + COUNT ( * )
----
53

query I rowsort
SELECT DISTINCT + NULLIF ( - ( + - 97 ), + 13 ) + + 89 - - - 39 AS col1
----
147

onlyif mysql # DIV for integer division: 
query II rowsort label-9915
SELECT 24 AS col2, 61 + - + 25 - 97 + 73 DIV 34 DIV + - 84 + - - 91 * + 86
----
24
7765

skipif mysql # not compatible
query II rowsort label-9915
SELECT 24 AS col2, 61 + - + 25 - 97 + 73 / 34 / + - 84 + - - 91 * + 86
----
24
7765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9916
SELECT + CASE - COALESCE ( 18, COUNT( * ) + - - 28 ) WHEN COUNT( * ) THEN + 42 ELSE + 61 END * CAST( 26 AS DECIMAL ) - + - CAST( NULL AS SIGNED ) * - 56 * - 80 * + 27 - COUNT( * ) + 13 * - - 53 * - 60 * 16 - + NULLIF ( + MIN( 84 ), - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT + CASE - COALESCE ( 18, COUNT ( * ) + - - 28 ) WHEN COUNT ( * ) THEN + 42 ELSE + 61 END * CAST ( 26 AS REAL ) - + - CAST ( NULL AS INTEGER ) * - 56 * - 80 * + 27 - COUNT ( * ) + 13 * - - 53 * - 60 * 16 - + NULLIF ( + MIN ( 84 ), - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9917
SELECT ALL + 14 - + + COUNT( * ) + + 26 DIV 17 * 72 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + 14 - + + COUNT ( * ) + + 26 / 17 * 72 AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9918
SELECT 35 * + + SUM( - + 40 ), + 80 AS col2
----
-1400
80

skipif mysql # not compatible
query II rowsort label-9918
SELECT 35 * + + SUM ( - + 40 ), + 80 AS col2
----
-1400
80

query I rowsort
SELECT DISTINCT 91 * - + 19
----
-1729

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT ALL - - MAX( DISTINCT + + 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL - - MAX ( DISTINCT + + 4 ) AS col0
----
4

query II rowsort
SELECT ALL - 84, - 45 - + 12 AS col2
----
-84
-57

query I rowsort
SELECT ALL 18 - - + 21 + 32 AS col2
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-9923
SELECT + 17 AS col2, 34 DIV 85
----
17
0

skipif mysql # not compatible
query II rowsort label-9923
SELECT + 17 AS col2, 34 / 85
----
17
0

query I rowsort
SELECT DISTINCT + 40 * + 73
----
2920

query I rowsort
SELECT ALL - ( - 93 ) AS col0
----
93

query II rowsort
SELECT 22 * + ( + + 70 ), 59 AS col1
----
1540
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT DISTINCT - COUNT( 58 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT - COUNT ( 58 ) AS col0
----
-1

query I rowsort
SELECT 86 + - 58 + 25 * + 34 * 3 * - 64
----
-163172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT 92 * + CAST( 8 AS SIGNED )
----
736

skipif mysql # not compatible
query I rowsort label-9929
SELECT 92 * + CAST ( 8 AS INTEGER )
----
736

query I rowsort
SELECT 28 + - 54
----
-26

query I rowsort
SELECT DISTINCT 32 + - ( - - 30 ) col2
----
2

query I rowsort
SELECT 37 + - 77 + + - 18 - 63 * + 52
----
-3334

onlyif mysql # DIV for integer division: 
query I rowsort label-9933
SELECT ALL 67 + + 38 DIV - + 3 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL 67 + + 38 / - + 3 AS col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9934
SELECT DISTINCT ( + 25 ) DIV - - 95
----
0

skipif mysql # not compatible
query I rowsort label-9934
SELECT DISTINCT ( + 25 ) / - - 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9935
SELECT DISTINCT COUNT( * ) + + 60 + 10 * + 45 * - 92 * - CAST( NULL AS DECIMAL ) * - 42 AS col1, - 3
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-9935
SELECT DISTINCT COUNT ( * ) + + 60 + 10 * + 45 * - 92 * - CAST ( NULL AS REAL ) * - 42 AS col1, - 3
----
NULL
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT ( + 64 ) - COALESCE ( - + CAST( + 93 AS SIGNED ), 99 ) AS col2
----
157

skipif mysql # not compatible
query I rowsort label-9936
SELECT ( + 64 ) - COALESCE ( - + CAST ( + 93 AS INTEGER ), 99 ) AS col2
----
157

query I rowsort
SELECT - NULLIF ( + 55, 96 ) AS col1
----
-55

query II rowsort
SELECT ALL - 45 + 43 - - 48 * 79 AS col2, 70 AS col1
----
3790
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT 56 * + - 64 * + COUNT( * )
----
-3584

skipif mysql # not compatible
query I rowsort label-9939
SELECT 56 * + - 64 * + COUNT ( * )
----
-3584

query I rowsort
SELECT + NULLIF ( 67, ( + ( + 69 ) ) - + 58 ) AS col1
----
67

query I rowsort
SELECT 46 * ( + 70 ) - 17
----
3203

query I rowsort
SELECT NULLIF ( 23, 57 * + - 42 )
----
23

query I rowsort
SELECT DISTINCT + COALESCE ( + - 88, 49 - + 90, - 46, - 58 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-9944
SELECT - 63 * - 36 * - 58 + - - COUNT( * ) - - - 98, 58 AS col1
----
-131641
58

skipif mysql # not compatible
query II rowsort label-9944
SELECT - 63 * - 36 * - 58 + - - COUNT ( * ) - - - 98, 58 AS col1
----
-131641
58

query I rowsort
SELECT ALL + 62 * - 45 * + - 88
----
245520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9946
SELECT ALL + + COALESCE ( COUNT( * ), - ( - 31 ) DIV 42 * 4 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL + + COALESCE ( COUNT ( * ), - ( - 31 ) / 42 * 4 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9947
SELECT ALL + NULLIF ( + 41, 20 ) * 5 * CAST( NULL AS SIGNED ) + - 17 + + 75 + + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL + NULLIF ( + 41, 20 ) * 5 * CAST ( NULL AS INTEGER ) + - 17 + + 75 + + - 78
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9948
SELECT - 39 DIV - - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-9948
SELECT - 39 / - - COUNT ( * )
----
-39

query I rowsort
SELECT 22 * 33 + 24
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL + 58 * + - 9 * - ( + 11 ) * + 34 * ( + MIN( ALL 15 ) )
----
2928420

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL + 58 * + - 9 * - ( + 11 ) * + 34 * ( + MIN ( ALL 15 ) )
----
2928420

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL - ( - MAX( ALL + 66 ) ) * 45 + + 76
----
3046

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL - ( - MAX ( ALL + 66 ) ) * 45 + + 76
----
3046

query I rowsort
SELECT - 79 + + + 51 * + 62 AS col1
----
3083

query I rowsort
SELECT - - 11 * - 80
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT + - 6 + COUNT( * ) + + + 13 - 45 + - 75 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-9954
SELECT + - 6 + COUNT ( * ) + + + 13 - 45 + - 75 AS col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT + 85 + - 11 * 53 - - + ( 43 ) + - COUNT( * )
----
-456

skipif mysql # not compatible
query I rowsort label-9955
SELECT + 85 + - 11 * 53 - - + ( 43 ) + - COUNT ( * )
----
-456

query I rowsort
SELECT - NULLIF ( - 85, - + ( ( + ( - 75 ) ) ) ) AS col0
----
85

query I rowsort
SELECT + 62 + 25 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT ALL ( - CASE - COUNT( * ) WHEN + + COUNT( * ) + - 40 THEN - 24 END ) * COALESCE ( 1, + + 86 ) + - - 33 / - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL ( - CASE - COUNT ( * ) WHEN + + COUNT ( * ) + - 40 THEN - 24 END ) * COALESCE ( 1, + + 86 ) + - - 33 / - 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9959
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) + + 87 * - CAST( + + 18 AS SIGNED ) AS col2, - 53 AS col2
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-9959
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 87 * - CAST ( + + 18 AS INTEGER ) AS col2, - 53 AS col2
----
NULL
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT + 26 + - COUNT( DISTINCT + + 0 ) - 88 * - ( - 51 ) + + + 87 + 70 * + 4 + 22 + - COUNT( * ) + - - 76 * 84 * MAX( DISTINCT - 90 ) AS col2
----
-578635

skipif mysql # not compatible
query I rowsort label-9960
SELECT + 26 + - COUNT ( DISTINCT + + 0 ) - 88 * - ( - 51 ) + + + 87 + 70 * + 4 + 22 + - COUNT ( * ) + - - 76 * 84 * MAX ( DISTINCT - 90 ) AS col2
----
-578635

onlyif mysql # DIV for integer division: 
query I rowsort label-9961
SELECT ALL + 58 + + - 28 + - - 9 + + 38 DIV 57 * 4 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL + 58 + + - 28 + - - 9 + + 38 / 57 * 4 AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9962
SELECT DISTINCT 30 AS col0, - COUNT( * )
----
30
-1

skipif mysql # not compatible
query II rowsort label-9962
SELECT DISTINCT 30 AS col0, - COUNT ( * )
----
30
-1

query I rowsort
SELECT DISTINCT 55 + 6 AS col2
----
61

query I rowsort
SELECT - 31 + - - 58 + - 0 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT + 7 + + MIN( DISTINCT 0 ) + + 62 + 41 * - 67
----
-2678

skipif mysql # not compatible
query I rowsort label-9965
SELECT + 7 + + MIN ( DISTINCT 0 ) + + 62 + 41 * - 67
----
-2678

onlyif mysql # DIV for integer division: 
query I rowsort label-9966
SELECT ALL 71 DIV - + 7 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL 71 / - + 7 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT + 77 + + COUNT( DISTINCT 92 )
----
78

skipif mysql # not compatible
query I rowsort label-9967
SELECT + 77 + + COUNT ( DISTINCT 92 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL MAX( - 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL MAX ( - 24 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT + + COUNT( * ) + - 65 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-9969
SELECT + + COUNT ( * ) + - 65 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL + + COUNT( DISTINCT + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL + + COUNT ( DISTINCT + 86 )
----
1

query II rowsort
SELECT + 29 AS col0, 66 AS col0
----
29
66

query I rowsort
SELECT - 70 + - NULLIF ( - 72, + 97 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT + COUNT( * ) * COALESCE ( + 43, + 56 * 60 ) * COUNT( * ) + - + 98 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9973
SELECT + COUNT ( * ) * COALESCE ( + 43, + 56 * 60 ) * COUNT ( * ) + - + 98 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT + COALESCE ( 75, + - COUNT( * ) + + SUM( ALL - 47 ) + - COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-9974
SELECT + COALESCE ( 75, + - COUNT ( * ) + + SUM ( ALL - 47 ) + - COUNT ( * ) )
----
75

query I rowsort
SELECT ALL - - 68 * + 30 + + + ( 88 ) * - + 61 * 51 * + 2
----
-545496

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9976
SELECT - + 1 * 8 + + + COALESCE ( COUNT( DISTINCT 63 ), + 56 * 86 - COUNT( * ) + + ( + 91 ), + ( 65 ) + 23 + ( - + ( 46 ) ) * - ( + + 44 ) * - 52 ) + 56 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT - + 1 * 8 + + + COALESCE ( COUNT ( DISTINCT 63 ), + 56 * 86 - COUNT ( * ) + + ( + 91 ), + ( 65 ) + 23 + ( - + ( 46 ) ) * - ( + + 44 ) * - 52 ) + 56 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9977
SELECT DISTINCT - CAST( + 10 AS SIGNED ) * 7 - - COUNT( * ) + + - 31 DIV 34 + - 47 + + 50 * + 83 col2
----
4034

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT - CAST ( + 10 AS INTEGER ) * 7 - - COUNT ( * ) + + - 31 / 34 + - 47 + + 50 * + 83 col2
----
4034

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL + - 48 * + 94 + + COUNT( * ) * 7 + + 21 - + 11 * 72 * CASE - COUNT( * ) WHEN - - 70 THEN 62 WHEN - + 62 * COUNT( * ) THEN - - MIN( DISTINCT NULLIF ( 4, + + 68 / 25 + - - 51 + ( 57 ) * 61 ) ) / + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL + - 48 * + 94 + + COUNT ( * ) * 7 + + 21 - + 11 * 72 * CASE - COUNT ( * ) WHEN - - 70 THEN 62 WHEN - + 62 * COUNT ( * ) THEN - - MIN ( DISTINCT NULLIF ( 4, + + 68 / 25 + - - 51 + ( 57 ) * 61 ) ) / + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9979
SELECT + CAST( NULL AS SIGNED ) * - - 98 * - 11 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT + CAST ( NULL AS INTEGER ) * - - 98 * - 11 col2
----
NULL

query I rowsort
SELECT - 43 * - 13 AS col0
----
559

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT + + MIN( + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9981
SELECT + + MIN ( + 1 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9982
SELECT - 27 DIV + + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9982
SELECT - 27 / + + 62 AS col0
----
0

query I rowsort
SELECT - 74 * + 58 * - 64
----
274688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9984
SELECT ALL - ( - - 78 ) * 76 DIV + + COUNT( 49 ) * + + COUNT( * ) + + 61
----
-5867

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL - ( - - 78 ) * 76 / + + COUNT ( 49 ) * + + COUNT ( * ) + + 61
----
-5867

query I rowsort
SELECT - 50 * - 11 * - 50 * COALESCE ( + 59, + 20 ) * - 31 col1
----
50297500

onlyif mysql # DIV for integer division: 
query II rowsort label-9986
SELECT DISTINCT + 27 * - ( + 29 ) * 11 * - 74 - 52 DIV - + 12, 95 + + 34 * 19 * 41 + + - 17 AS col1
----
637366
26564

skipif mysql # not compatible
query II rowsort label-9986
SELECT DISTINCT + 27 * - ( + 29 ) * 11 * - 74 - 52 / - + 12, 95 + + 34 * 19 * 41 + + - 17 AS col1
----
637366
26564

onlyif mysql # aggregate syntax: 
query II rowsort label-9987
SELECT ALL 24, COUNT( * ) AS col1
----
24
1

skipif mysql # not compatible
query II rowsort label-9987
SELECT ALL 24, COUNT ( * ) AS col1
----
24
1

query I rowsort
SELECT - 14 + - + 63
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT - COUNT( * ) * - ( - - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9989
SELECT - COUNT ( * ) * - ( - - 58 )
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9990
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, - ( + - 49 ) AS col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-9990
SELECT ALL CAST ( NULL AS REAL ) AS col1, - ( + - 49 ) AS col2
----
NULL
49

query II rowsort
SELECT - 90 + + 66 + - 62 + - 88 AS col2, - ( + - 36 ) + - 38 AS col2
----
-174
-2

query I rowsort
SELECT + 13 + + 72 col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9993
SELECT ALL 30 * CAST( 33 AS SIGNED ) AS col0
----
990

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL 30 * CAST ( 33 AS INTEGER ) AS col0
----
990

query I rowsort
SELECT CASE - 29 WHEN AVG ( ALL 34 ) THEN - - 79 END + - 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9995
SELECT 62 * + COUNT( * ) AS col0, - ( + 27 ) * + - 84 * - 41 AS col2
----
62
-92988

skipif mysql # not compatible
query II rowsort label-9995
SELECT 62 * + COUNT ( * ) AS col0, - ( + 27 ) * + - 84 * - 41 AS col2
----
62
-92988

query I rowsort
SELECT DISTINCT - 35 * 12 AS col0
----
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-9997
SELECT ALL - - 42, COALESCE ( 49, - + 47 ) + + COUNT( * ) + - 47 - - + 28 * + 46 col1
----
42
1291

skipif mysql # not compatible
query II rowsort label-9997
SELECT ALL - - 42, COALESCE ( 49, - + 47 ) + + COUNT ( * ) + - 47 - - + 28 * + 46 col1
----
42
1291

onlyif mysql # DIV for integer division: 
query I rowsort label-9998
SELECT + 81 DIV + 7 + - ( + + 95 ) DIV 95
----
10

skipif mysql # not compatible
query I rowsort label-9998
SELECT + 81 / + 7 + - ( + + 95 ) / 95
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ALL ( - - ( - + 88 ) ) + 98 + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL ( - - ( - + 88 ) ) + 98 + COUNT ( * )
----
11

