sqllogictest
Artifact Content
Not logged in

Artifact d47d48e5d00e4ad503d14cdfebc1033b3de94bf7:


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