sqllogictest
Artifact Content
Not logged in

Artifact 29a7bcf8d5eef3317295bd2085da1ccf27788461:


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 I rowsort label-0
SELECT ALL 28 * 99 * - - NULLIF ( COUNT( * ), COUNT( DISTINCT 38 ) * 95 )
----
2772

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL 28 * 99 * - - NULLIF ( COUNT ( * ), COUNT ( DISTINCT 38 ) * 95 )
----
2772

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1
SELECT 93 * - CASE COUNT( CAST( NULL AS DECIMAL ) ) WHEN - 86 / 50 THEN - COUNT( * ) WHEN - 18 - - 73 THEN NULL WHEN 17 * 31 + - 49 * 1 THEN NULL WHEN 57 THEN - COUNT( * ) + 74 ELSE + 35 END
----
-3255

skipif mysql # not compatible
query I rowsort label-1
SELECT 93 * - CASE COUNT ( CAST ( NULL AS REAL ) ) WHEN - 86 / 50 THEN - COUNT ( * ) WHEN - 18 - - 73 THEN NULL WHEN 17 * 31 + - 49 * 1 THEN NULL WHEN 57 THEN - COUNT ( * ) + 74 ELSE + 35 END
----
-3255

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT COUNT( ALL 11 ) + + 8 * 65
----
521

skipif mysql # not compatible
query I rowsort label-2
SELECT COUNT ( ALL 11 ) + + 8 * 65
----
521

query I rowsort
SELECT ALL 92 * ( 60 )
----
5520

query II rowsort
SELECT DISTINCT 2, 5 AS col1
----
2
5

query I rowsort
SELECT 89 - + - 4 AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6
SELECT DISTINCT 79 + CAST( MIN( ALL + 2 ) AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT 79 + CAST ( MIN ( ALL + 2 ) AS INTEGER )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT ALL + 60 + + 11 * 72 DIV + ( - 60 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL + 60 + + 11 * 72 / + ( - 60 ) AS col2
----
47

query I rowsort
SELECT ( + + 67 ) + + 76 AS col2
----
143

query I rowsort
SELECT 18 * - 16 * + + 5
----
-1440

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-10
SELECT 89 + CASE + CAST( NULL AS SIGNED ) WHEN 17 THEN NULL ELSE + 80 DIV 80 END * 11
----
100

skipif mysql # not compatible
query I rowsort label-10
SELECT 89 + CASE + CAST ( NULL AS INTEGER ) WHEN 17 THEN NULL ELSE + 80 / 80 END * 11
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-11
SELECT ALL + MIN( 66 ) * + COUNT( ALL ( 64 ) ) + - CAST( - 47 - 65 AS SIGNED ) * 47 + MAX( DISTINCT + 14 + + 79 * - 4 )
----
5028

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL + MIN ( 66 ) * + COUNT ( ALL ( 64 ) ) + - CAST ( - 47 - 65 AS INTEGER ) * 47 + MAX ( DISTINCT + 14 + + 79 * - 4 )
----
5028

onlyif mysql # DIV for integer division: 
query I rowsort label-12
SELECT 98 + - + 87 DIV - 28 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-12
SELECT 98 + - + 87 / - 28 AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT - COUNT( * ) * 73 - + 32 + 92 + ( 76 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-13
SELECT - COUNT ( * ) * 73 - + 32 + 92 + ( 76 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL - 2 * + NULLIF ( 51, 15 / - ( + COUNT( ALL - 58 ) ) )
----
-102

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL - 2 * + NULLIF ( 51, 15 / - ( + COUNT ( ALL - 58 ) ) )
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-15
SELECT DISTINCT + MAX( ALL - - 72 ) * + + 38 * CASE + CAST( 46 AS SIGNED ) WHEN 25 + 11 THEN - MAX( ALL 76 ) * - 98 END + 20 + + CAST( 80 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT + MAX ( ALL - - 72 ) * + + 38 * CASE + CAST ( 46 AS INTEGER ) WHEN 25 + 11 THEN - MAX ( ALL 76 ) * - 98 END + 20 + + CAST ( 80 AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-17
SELECT ALL - - 70 * - + 36 - + - 9 DIV 33 AS col0
----
-2520

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL - - 70 * - + 36 - + - 9 / 33 AS col0
----
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-18
SELECT + + 1 * + + 28 + - 20 + - 87 DIV + 88
----
8

skipif mysql # not compatible
query I rowsort label-18
SELECT + + 1 * + + 28 + - 20 + - 87 / + 88
----
8

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

skipif mysql # not compatible
query I rowsort label-19
SELECT + CAST ( NULL AS INTEGER ) * 63 * + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT - - 15 * + ( - - SUM( + 28 ) ) + - 75 * 82
----
-5730

skipif mysql # not compatible
query I rowsort label-20
SELECT - - 15 * + ( - - SUM ( + 28 ) ) + - 75 * 82
----
-5730

query II rowsort
SELECT 14 AS col2, - 24
----
14
-24

query I rowsort
SELECT - - CASE 47 WHEN 26 * 1 THEN - AVG ( ALL - 85 ) WHEN 7 THEN NULL END * + 75 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-23
SELECT ALL + 59 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL + 59 / - 64
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-25
SELECT + - MAX( - CAST( NULL AS SIGNED ) ) + 4 * + 69 AS col2
----
NULL

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

query I rowsort
SELECT - - 4 * + 54 AS col0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT + 1 * + + COALESCE ( + 70, + MAX( DISTINCT + 94 ) ) + - 39 * 29 AS col2
----
-1061

skipif mysql # not compatible
query I rowsort label-27
SELECT + 1 * + + COALESCE ( + 70, + MAX ( DISTINCT + 94 ) ) + - 39 * 29 AS col2
----
-1061

query I rowsort
SELECT ALL 87 * 84 * + 86 AS col0
----
628488

query I rowsort
SELECT - 93 * - 46 * 99
----
423522

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-31
SELECT + CAST( ( + 37 ) AS SIGNED ) DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-31
SELECT + CAST ( ( + 37 ) AS INTEGER ) / - 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-32
SELECT - CASE + - 0 WHEN COALESCE ( 76, 29 ) * CAST( - COUNT( * ) + 68 * 29 AS SIGNED ) + - ( + 2 ) THEN + 12 + + 53 WHEN 59 * - 41 THEN + 73 END + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT - CASE + - 0 WHEN COALESCE ( 76, 29 ) * CAST ( - COUNT ( * ) + 68 * 29 AS INTEGER ) + - ( + 2 ) THEN + 12 + + 53 WHEN 59 * - 41 THEN + 73 END + - 7
----
NULL

query I rowsort
SELECT ALL CASE 88 WHEN + + 76 THEN NULL ELSE - 48 * 73 END col1
----
-3504

query I rowsort
SELECT ALL - 37 * 52 * - 76
----
146224

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT + SUM( + 97 ) * - 37
----
-3589

skipif mysql # not compatible
query I rowsort label-35
SELECT + SUM ( + 97 ) * - 37
----
-3589

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

query I rowsort
SELECT ALL 45 + + - 22 * + 14 AS col2
----
-263

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT ALL COUNT( * ) + - 92 * + ( 97 )
----
-8923

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL COUNT ( * ) + - 92 * + ( 97 )
----
-8923

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT + NULLIF ( + - 17, 4 ) + - COUNT( * ) * - ( 1 * + 62 + 54 )
----
99

skipif mysql # not compatible
query I rowsort label-39
SELECT + NULLIF ( + - 17, 4 ) + - COUNT ( * ) * - ( 1 * + 62 + 54 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-40
SELECT ALL 38 + + + 59 - - CASE + 32 WHEN 68 + ( + 8 ) * COUNT( * ) THEN + 37 / + 24 - CASE 35 WHEN - 19 * - 22 THEN NULL WHEN 0 * CASE 80 WHEN - COALESCE ( 39, 32 ) THEN - 61 WHEN - COUNT( * ) * 89 + + 12 * CAST( + 46 * - 98 AS SIGNED ) THEN - 8 ELSE - 66 END THEN + 23 / 82 WHEN - 70 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL 38 + + + 59 - - CASE + 32 WHEN 68 + ( + 8 ) * COUNT ( * ) THEN + 37 / + 24 - CASE 35 WHEN - 19 * - 22 THEN NULL WHEN 0 * CASE 80 WHEN - COALESCE ( 39, 32 ) THEN - 61 WHEN - COUNT ( * ) * 89 + + 12 * CAST ( + 46 * - 98 AS INTEGER ) THEN - 8 ELSE - 66 END THEN + 23 / 82 WHEN - 70 THEN NULL END END
----
NULL

query I rowsort
SELECT + 9 + + 12 AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-42
SELECT + 85 DIV ( - 75 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-42
SELECT + 85 / ( - 75 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-43
SELECT + ( - + COALESCE ( - + 92, SUM( + NULLIF ( ( 74 ), 41 ) ) DIV + NULLIF ( 85, ( + CAST( NULL AS SIGNED ) ) DIV COUNT( * ) ) - + 87 ) ) * 43
----
3956

skipif mysql # not compatible
query I rowsort label-43
SELECT + ( - + COALESCE ( - + 92, SUM ( + NULLIF ( ( 74 ), 41 ) ) / + NULLIF ( 85, ( + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) ) - + 87 ) ) * 43
----
3956

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT - 2 + - + 61 * - 91 * - - 6 * - COUNT( * ) AS col0
----
-33308

skipif mysql # not compatible
query I rowsort label-44
SELECT - 2 + - + 61 * - 91 * - - 6 * - COUNT ( * ) AS col0
----
-33308

query I rowsort
SELECT ALL 78 + - 19 AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-46
SELECT ALL + CASE - + SUM( + 48 ) WHEN + 90 THEN NULL WHEN 52 THEN COALESCE ( + 84, 5 ) DIV - AVG ( ALL 95 * 9 ) ELSE NULLIF ( - 24, + COUNT( * ) ) - COUNT( DISTINCT + 35 ) END + - 50 * ( 77 * - COUNT( * ) )
----
3825

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL + CASE - + SUM ( + 48 ) WHEN + 90 THEN NULL WHEN 52 THEN COALESCE ( + 84, 5 ) / - AVG ( ALL 95 * 9 ) ELSE NULLIF ( - 24, + COUNT ( * ) ) - COUNT ( DISTINCT + 35 ) END + - 50 * ( 77 * - COUNT ( * ) )
----
3825

query I rowsort
SELECT + - 70 * + + ( + + 78 ) AS col1
----
-5460

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

onlyif mysql # DIV for integer division: 
query I rowsort label-49
SELECT ALL - 4 DIV - 71 - + 16 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL - 4 / - 71 - + 16 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT MIN( - 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-50
SELECT MIN ( - 65 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-51
SELECT + - ( - 20 ) AS col2, + ( - NULLIF ( 53, + MAX( ALL - 99 ) ) ) col2
----
20
-53

skipif mysql # not compatible
query II rowsort label-51
SELECT + - ( - 20 ) AS col2, + ( - NULLIF ( 53, + MAX ( ALL - 99 ) ) ) col2
----
20
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT DISTINCT + 82 DIV + MAX( 93 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT + 82 / + MAX ( 93 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-53
SELECT + 19 - ( MAX( DISTINCT + CAST( 11 AS SIGNED ) ) ) * + 11
----
-102

skipif mysql # not compatible
query I rowsort label-53
SELECT + 19 - ( MAX ( DISTINCT + CAST ( 11 AS INTEGER ) ) ) * + 11
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-54
SELECT - 88 / + ( - CAST( NULL AS SIGNED ) ) * + 68 + COALESCE ( 95, - ( + 54 ) + COUNT( * ), - COUNT( * ) ) + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT - 88 / + ( - CAST ( NULL AS INTEGER ) ) * + 68 + COALESCE ( 95, - ( + 54 ) + COUNT ( * ), - COUNT ( * ) ) + 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-55
SELECT ALL + - ( + CASE - 28 WHEN - CASE + 2 WHEN CASE 18 WHEN 82 + 6 THEN CASE 29 WHEN 13 + - 40 / 33 THEN NULL WHEN + 77 THEN NULL WHEN + 2 THEN + 85 END + 98 END THEN 89 * + COALESCE ( + 54, 59 / - 12 ) ELSE - 15 END * - 33 THEN + 18 * + CAST( 28 / - 40 AS SIGNED ) WHEN - 36 THEN NULL END ) * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL + - ( + CASE - 28 WHEN - CASE + 2 WHEN CASE 18 WHEN 82 + 6 THEN CASE 29 WHEN 13 + - 40 / 33 THEN NULL WHEN + 77 THEN NULL WHEN + 2 THEN + 85 END + 98 END THEN 89 * + COALESCE ( + 54, 59 / - 12 ) ELSE - 15 END * - 33 THEN + 18 * + CAST ( 28 / - 40 AS INTEGER ) WHEN - 36 THEN NULL END ) * - 19
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-57
SELECT ALL + CAST( - - CAST( MAX( DISTINCT 48 ) AS SIGNED ) AS SIGNED ) DIV 72 - + 90
----
-90

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL + CAST ( - - CAST ( MAX ( DISTINCT 48 ) AS INTEGER ) AS INTEGER ) / 72 - + 90
----
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT ALL - 30 * 46 * - 47 + - MAX( - 49 )
----
64909

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL - 30 * 46 * - 47 + - MAX ( - 49 )
----
64909

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT - + 44 - - - COUNT( * ) + 72 + + 60 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-61
SELECT - + 44 - - - COUNT ( * ) + 72 + + 60 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL + - ( + MIN( + - NULLIF ( - 74, 39 + 61 ) ) )
----
-74

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL + - ( + MIN ( + - NULLIF ( - 74, 39 + 61 ) ) )
----
-74

query I rowsort
SELECT + + 24 * - + 36 - - 29 AS col1
----
-835

query II rowsort
SELECT - 4 * - 51 AS col1, + ( ( - 20 ) )
----
204
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-65
SELECT + 77 AS col1, - 77 * - + 80 + - CAST( - 11 AS SIGNED ) + 54 * + 76 AS col0
----
77
10275

skipif mysql # not compatible
query II rowsort label-65
SELECT + 77 AS col1, - 77 * - + 80 + - CAST ( - 11 AS INTEGER ) + 54 * + 76 AS col0
----
77
10275

query I rowsort
SELECT - 69 + 90
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT NULLIF ( ( - ( - 93 ) ), - COALESCE ( - 38, + 43, + 5 * + 24, + 8 ) + COUNT( * ) ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-67
SELECT NULLIF ( ( - ( - 93 ) ), - COALESCE ( - 38, + 43, + 5 * + 24, + 8 ) + COUNT ( * ) ) AS col2
----
93

query I rowsort
SELECT - NULLIF ( - 87, - + 8 ) + ( - ( 69 ) ) AS col0
----
18

query I rowsort
SELECT ALL + COALESCE ( 32, + + 65 )
----
32

query I rowsort
SELECT - ( + + 52 ) * - 63 AS col0
----
3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-71
SELECT DISTINCT CASE 19 WHEN + 12 - + 59 + - CAST( 12 AS SIGNED ) THEN + COUNT( * ) WHEN + 54 * + 18 THEN MIN( ALL - 48 ) END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT CASE 19 WHEN + 12 - + 59 + - CAST ( 12 AS INTEGER ) THEN + COUNT ( * ) WHEN + 54 * + 18 THEN MIN ( ALL - 48 ) END * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT DISTINCT 59 * + MIN( DISTINCT 27 ) + + - COALESCE ( - - 1, - 0 * 9 + - 16 * - 85 )
----
1592

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT 59 * + MIN ( DISTINCT 27 ) + + - COALESCE ( - - 1, - 0 * 9 + - 16 * - 85 )
----
1592

query I rowsort
SELECT - ( ( - 33 ) ) + + 75 * + + 34 + - 45
----
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT ALL - NULLIF ( + 3, + COALESCE ( + 57, - - 64 + + 72, 25, MIN( - 25 ) ) ) + - 75 * 78
----
-5853

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL - NULLIF ( + 3, + COALESCE ( + 57, - - 64 + + 72, 25, MIN ( - 25 ) ) ) + - 75 * 78
----
-5853

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT - 97 + + + 73 * + MIN( DISTINCT - - 48 ) + - 27 * 65
----
1652

skipif mysql # not compatible
query I rowsort label-75
SELECT - 97 + + + 73 * + MIN ( DISTINCT - - 48 ) + - 27 * 65
----
1652

query I rowsort
SELECT + 3 * + 98 col2
----
294

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

query I rowsort
SELECT - ( + 3 ) + + - 45 AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-79
SELECT DISTINCT CAST( 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT CAST ( 23 AS INTEGER )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL - 34 + + MAX( - ( - - 1 ) ) * - 0 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL - 34 + + MAX ( - ( - - 1 ) ) * - 0 AS col2
----
-34

query II rowsort
SELECT DISTINCT 22 col0, + ( - 78 )
----
22
-78

query I rowsort
SELECT DISTINCT - COALESCE ( + 48, - - 31, - COALESCE ( + CASE + 54 WHEN + 10 THEN + 61 - - 54 ELSE 86 END, - 57, 65 ) ) - 9 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT ALL COUNT( * ) - - + NULLIF ( CASE + 80 WHEN 66 - 98 * - 62 THEN NULL WHEN - 87 THEN NULL ELSE + 34 END, - CASE 96 WHEN 27 - + SUM( ALL 73 ) / + ( - 58 * 25 ) THEN + ( + CASE 76 WHEN + 13 THEN - 46 + + 41 * - 4 END ) + - 21 ELSE NULL END / 34 )
----
35

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL COUNT ( * ) - - + NULLIF ( CASE + 80 WHEN 66 - 98 * - 62 THEN NULL WHEN - 87 THEN NULL ELSE + 34 END, - CASE 96 WHEN 27 - + SUM ( ALL 73 ) / + ( - 58 * 25 ) THEN + ( + CASE 76 WHEN + 13 THEN - 46 + + 41 * - 4 END ) + - 21 ELSE NULL END / 34 )
----
35

query II rowsort
SELECT DISTINCT - 56, - ( ( - 12 ) ) AS col1
----
-56
12

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT - 50 + + COUNT( * ) * 93 + - MAX( DISTINCT - + 51 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-85
SELECT - 50 + + COUNT ( * ) * 93 + - MAX ( DISTINCT - + 51 ) AS col2
----
94

query I rowsort
SELECT + 89 + - + 68
----
21

query I rowsort
SELECT DISTINCT + 52 * 96 + + 61
----
5053

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-89
SELECT + 16 + - - CASE CAST( NULL AS DECIMAL ) WHEN - 97 THEN NULL WHEN + 8 / + COUNT( * ) THEN - MIN( DISTINCT NULLIF ( + NULLIF ( + 91, - 33 + - 7 ), - 35 * 94 ) ) * - MAX( ALL + CAST( NULL AS SIGNED ) - - 40 ) WHEN - 86 + 11 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT + 16 + - - CASE CAST ( NULL AS REAL ) WHEN - 97 THEN NULL WHEN + 8 / + COUNT ( * ) THEN - MIN ( DISTINCT NULLIF ( + NULLIF ( + 91, - 33 + - 7 ), - 35 * 94 ) ) * - MAX ( ALL + CAST ( NULL AS INTEGER ) - - 40 ) WHEN - 86 + 11 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT DISTINCT - - ( - - NULLIF ( - COUNT( * ), 60 + + + 42 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-90
SELECT DISTINCT - - ( - - NULLIF ( - COUNT ( * ), 60 + + + 42 ) )
----
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-92
SELECT ALL - CASE COUNT( * ) WHEN - + 25 THEN - ( 25 ) * 74 ELSE + 79 DIV 75 END
----
-1

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL - CASE COUNT ( * ) WHEN - + 25 THEN - ( 25 ) * 74 ELSE + 79 / 75 END
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-94
SELECT COUNT( * ) DIV + 56 + + + CAST( + - 27 AS SIGNED ) + - 34 * COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-94
SELECT COUNT ( * ) / + 56 + + + CAST ( + - 27 AS INTEGER ) + - 34 * COUNT ( * )
----
-61

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-96
SELECT 38 + - CASE COUNT( * ) WHEN + 77 THEN NULL ELSE + 35 END DIV - 91 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-96
SELECT 38 + - CASE COUNT ( * ) WHEN + 77 THEN NULL ELSE + 35 END / - 91 AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-97
SELECT ALL - 76 DIV - + 17
----
4

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL - 76 / - + 17
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT ALL 63 + COUNT( * ) + + 49
----
113

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL 63 + COUNT ( * ) + + 49
----
113

query I rowsort
SELECT DISTINCT 7 + + 42 AS col1
----
49

query I rowsort
SELECT 67 * 41 AS col1
----
2747

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT 74 + - - COUNT( + 91 )
----
75

skipif mysql # not compatible
query I rowsort label-102
SELECT 74 + - - COUNT ( + 91 )
----
75

query I rowsort
SELECT ALL 69 + + 59
----
128

query I rowsort
SELECT ALL + 64 + - - 47
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-105
SELECT 99 + + 19 + 3 + + 13 + 95 - CASE 22 WHEN + NULLIF ( 80, + 63 + COUNT( * ) ) + + 32 * 60 THEN NULL WHEN 24 THEN NULL ELSE + CAST( NULL AS SIGNED ) END * + 59 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT 99 + + 19 + 3 + + 13 + 95 - CASE 22 WHEN + NULLIF ( 80, + 63 + COUNT ( * ) ) + + 32 * 60 THEN NULL WHEN 24 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END * + 59 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-106
SELECT 2 * - 11 DIV COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-106
SELECT 2 * - 11 / COUNT ( * ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL + MAX( 0 ) * - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL + MAX ( 0 ) * - 87 AS col0
----
0

query II rowsort
SELECT DISTINCT - 41 AS col0, + 30
----
-41
30

query II rowsort
SELECT 89 + + + 33 - + - 37 * + 8 AS col1, + ( + 1 ) - + 19 AS col1
----
418
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT COALESCE ( + 51, + - 90 * - 94 DIV + + 80 ) * + 4 - - 60 * + 2
----
324

skipif mysql # not compatible
query I rowsort label-110
SELECT COALESCE ( + 51, + - 90 * - 94 / + + 80 ) * + 4 - - 60 * + 2
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT DISTINCT - ( - 23 ) + - CASE 69 WHEN + MAX( DISTINCT - 36 ) * 17 THEN NULL WHEN 46 THEN + 6 * ( - ( 29 ) ) - - 33 WHEN 16 + 68 THEN NULL END - 45 * + 27 * MIN( ALL - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT - ( - 23 ) + - CASE 69 WHEN + MAX ( DISTINCT - 36 ) * 17 THEN NULL WHEN 46 THEN + 6 * ( - ( 29 ) ) - - 33 WHEN 16 + 68 THEN NULL END - 45 * + 27 * MIN ( ALL - 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-112
SELECT ALL 60 AS col2, + COUNT( * ) * 67 AS col0
----
60
67

skipif mysql # not compatible
query II rowsort label-112
SELECT ALL 60 AS col2, + COUNT ( * ) * 67 AS col0
----
60
67

query II rowsort
SELECT 20 AS col1, 38
----
20
38

query I rowsort
SELECT DISTINCT - 48 - 31 + 10
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-115
SELECT 18 * 20 * 79 * + + 70, - COUNT( * ) AS col2
----
1990800
-1

skipif mysql # not compatible
query II rowsort label-115
SELECT 18 * 20 * 79 * + + 70, - COUNT ( * ) AS col2
----
1990800
-1

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

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - COUNT ( * ) * 55 AS col0
----
-55

query II rowsort
SELECT 24 + + 93, 9 AS col2
----
117
9

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

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL - COUNT ( * ) * + - 78 * 2 AS col2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT COUNT( * ) + 27 col0
----
28

skipif mysql # not compatible
query I rowsort label-119
SELECT COUNT ( * ) + 27 col0
----
28

query I rowsort
SELECT ALL - - 37 * + 21 AS col0
----
777

query I rowsort
SELECT NULLIF ( - + 29, - 73 ) + + 61 * 63 AS col1
----
3814

onlyif mysql # DIV for integer division: 
query I rowsort label-122
SELECT + 74 DIV - 8 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-122
SELECT + 74 / - 8 AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-123
SELECT 43 / 26 - + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-123
SELECT 43 / 26 - + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-124
SELECT + COALESCE ( - ( - - 40 ), - COALESCE ( ( ( + CAST( SUM( 95 ) AS SIGNED ) ) ), CAST( NULL AS SIGNED ), 27 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-124
SELECT + COALESCE ( - ( - - 40 ), - COALESCE ( ( ( + CAST ( SUM ( 95 ) AS INTEGER ) ) ), CAST ( NULL AS INTEGER ), 27 ) )
----
-40

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-126
SELECT ALL 40 DIV - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL 40 / - COUNT ( * )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-127
SELECT 22 DIV 28 * 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-127
SELECT 22 / 28 * 76 AS col1
----
0

query II rowsort
SELECT DISTINCT + 66 AS col2, - 17
----
66
-17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT - 48 DIV - + 49 + + 71 * + + 56 * + ( - 27 ) AS col0
----
-107352

skipif mysql # not compatible
query I rowsort label-130
SELECT - 48 / - + 49 + + 71 * + + 56 * + ( - 27 ) AS col0
----
-107352

query I rowsort
SELECT + NULLIF ( 20, - 48 ) AS col1
----
20

query I rowsort
SELECT 91 * + 57 * + + 8 AS col2
----
41496

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT DISTINCT 7 * + COUNT( * ) * ( - - 56 ) + - 79 + + + 0 + - 9 * - ( - 95 ) AS col1
----
-542

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT 7 * + COUNT ( * ) * ( - - 56 ) + - 79 + + + 0 + - 9 * - ( - 95 ) AS col1
----
-542

query I rowsort
SELECT ALL - 51 * + + ( - - 86 ) + 98 AS col2
----
-4288

query I rowsort
SELECT 40 - + ( + 58 ) - + 9 + 58 AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-136
SELECT + - 83 AS col1, 81 * - 61 + - - ( + 55 ) + - COUNT( * ) - + CASE - 64 + COUNT( * ) WHEN - 38 THEN 59 + ( 78 + + 17 * 94 ) WHEN 44 + COUNT( * ) THEN 98 END
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-136
SELECT + - 83 AS col1, 81 * - 61 + - - ( + 55 ) + - COUNT ( * ) - + CASE - 64 + COUNT ( * ) WHEN - 38 THEN 59 + ( 78 + + 17 * 94 ) WHEN 44 + COUNT ( * ) THEN 98 END
----
-83
NULL

query I rowsort
SELECT DISTINCT - + 3 * + 63 + + + 0 col1
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-138
SELECT DISTINCT 15 * - 25 - 81 + - 38 + - 40 DIV 21 - + 30 * 29 DIV + 95
----
-504

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT 15 * - 25 - 81 + - 38 + - 40 / 21 - + 30 * 29 / + 95
----
-504

onlyif mysql # aggregate syntax: 
query II rowsort label-139
SELECT ALL - 73 AS col2, + COUNT( + 15 ) + 15 * - NULLIF ( + 21, ( COUNT( * ) ) * 97 - + 30 ) AS col0
----
-73
-314

skipif mysql # not compatible
query II rowsort label-139
SELECT ALL - 73 AS col2, + COUNT ( + 15 ) + 15 * - NULLIF ( + 21, ( COUNT ( * ) ) * 97 - + 30 ) AS col0
----
-73
-314

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-140
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * SUM( 90 ) + - 0 + 86 * + - 2 + 96 * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT + CAST ( NULL AS REAL ) * SUM ( 90 ) + - 0 + 86 * + - 2 + 96 * 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT 77 * ( NULLIF ( - - COALESCE ( - 7, - 87, COUNT( * ) ), COUNT( * ) + 16 ) ) AS col2
----
-539

skipif mysql # not compatible
query I rowsort label-141
SELECT 77 * ( NULLIF ( - - COALESCE ( - 7, - 87, COUNT ( * ) ), COUNT ( * ) + 16 ) ) AS col2
----
-539

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-142
SELECT ALL 8 * 3 * + 81 + - 9 DIV - 17, COUNT( * ) AS col2
----
1944
1

skipif mysql # not compatible
query II rowsort label-142
SELECT ALL 8 * 3 * + 81 + - 9 / - 17, COUNT ( * ) AS col2
----
1944
1

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT ( - 99 ) - COALESCE ( - 89, + - MAX( 12 ) * - 37 + 25, - 61, 29 * + 87 + 16 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-143
SELECT ( - 99 ) - COALESCE ( - 89, + - MAX ( 12 ) * - 37 + 25, - 61, 29 * + 87 + 16 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-144
SELECT COUNT( ALL - - 76 ), - 72 AS col2
----
1
-72

skipif mysql # not compatible
query II rowsort label-144
SELECT COUNT ( ALL - - 76 ), - 72 AS col2
----
1
-72

query I rowsort
SELECT ( - 43 ) * + 98 * 35 + + 9 + + 16 * + + 12 * 62 col2
----
-135577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-146
SELECT 78 * + 2 - + CAST( NULL AS SIGNED ) + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-146
SELECT 78 * + 2 - + CAST ( NULL AS INTEGER ) + 53 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-147
SELECT ALL 15 + - 21, 32 + - + 36 + + 35 + + + CAST( NULL AS DECIMAL ) + 50 * 1 / - 83 AS col0
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-147
SELECT ALL 15 + - 21, 32 + - + 36 + + 35 + + + CAST ( NULL AS REAL ) + 50 * 1 / - 83 AS col0
----
-6
NULL

query I rowsort
SELECT ( + 53 ) * - + 6 AS col0
----
-318

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT MIN( DISTINCT - 86 ) + - CASE - COUNT( * ) WHEN - 75 THEN + 16 * + + ( + 43 ) - 83 END + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-149
SELECT MIN ( DISTINCT - 86 ) + - CASE - COUNT ( * ) WHEN - 75 THEN + 16 * + + ( + 43 ) - 83 END + 66
----
NULL

query II rowsort
SELECT 28 * - + 56 AS col2, + 93 + 76 + + + 94 AS col1
----
-1568
263

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-151
SELECT ALL - COUNT( * ) * 79 DIV + COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL - COUNT ( * ) * 79 / + COUNT ( * ) AS col1
----
-79

query I rowsort
SELECT + NULLIF ( + 78, 99 )
----
78

query I rowsort
SELECT DISTINCT 14 - + 31 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-154
SELECT - 2 * - + 78 col1, + CASE - NULLIF ( - 32, + + 9 ) WHEN MIN( ALL - 57 ) THEN NULL ELSE 36 END AS col1
----
156
36

skipif mysql # not compatible
query II rowsort label-154
SELECT - 2 * - + 78 col1, + CASE - NULLIF ( - 32, + + 9 ) WHEN MIN ( ALL - 57 ) THEN NULL ELSE 36 END AS col1
----
156
36

query I rowsort
SELECT ALL 8 * 92 AS col0
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT + 14 + + - MIN( - 63 )
----
77

skipif mysql # not compatible
query I rowsort label-156
SELECT + 14 + + - MIN ( - 63 )
----
77

query II rowsort
SELECT + 7 + + - 30 AS col2, 69
----
-23
69

query I rowsort
SELECT - + 58 * + + 39 * + 56 AS col0
----
-126672

query I rowsort
SELECT + 71 + - 96 - - - 33 * + 5
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT ALL - 3 * ( + - 89 ) * - ( + - SUM( + - 33 ) ) AS col1
----
-8811

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL - 3 * ( + - 89 ) * - ( + - SUM ( + - 33 ) ) AS col1
----
-8811

query I rowsort
SELECT ALL + - 96 + - + 10 AS col0
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-162
SELECT - + 6 - + 2 / CAST( NULL AS SIGNED ) * + 13 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-162
SELECT - + 6 - + 2 / CAST ( NULL AS INTEGER ) * + 13 * - 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-163
SELECT + - NULLIF ( - AVG ( ALL - 76 ), + 1 + + - 12 ) + + ( + 20 ) + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT + - NULLIF ( - AVG ( ALL - 76 ), + 1 + + - 12 ) + + ( + 20 ) + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT + - 67 + + 61
----
-6

query I rowsort
SELECT ALL - 51 + 32
----
-19

query I rowsort
SELECT - 87 + 13 + 41 - + - 11 * - 78 * 62 AS col1
----
-53229

onlyif mysql # DIV for integer division: 
query I rowsort label-167
SELECT + - 82 DIV 71
----
-1

skipif mysql # not compatible
query I rowsort label-167
SELECT + - 82 / 71
----
-1

query II rowsort
SELECT - 1 + - 0 AS col2, - 45 * 86
----
-1
-3870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-169
SELECT + SUM( 11 ) * + 60 * + 45 * CAST( + 29 AS SIGNED ) + - 61 * 57
----
857823

skipif mysql # not compatible
query I rowsort label-169
SELECT + SUM ( 11 ) * + 60 * + 45 * CAST ( + 29 AS INTEGER ) + - 61 * 57
----
857823

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT ALL 25 * + 23 * 16 + - 95 + - + 6 * - + COUNT( * ) AS col0
----
9111

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL 25 * + 23 * 16 + - 95 + - + 6 * - + COUNT ( * ) AS col0
----
9111

query I rowsort
SELECT DISTINCT + - ( + + CASE + 53 WHEN 42 / - 11 THEN 47 WHEN - ( 62 ) THEN 57 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT ALL - 41 * + COALESCE ( + 50, + + 0 + - - 75 - + 68 DIV ( + - 42 ) ) + 1
----
-2049

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - 41 * + COALESCE ( + 50, + + 0 + - - 75 - + 68 / ( + - 42 ) ) + 1
----
-2049

query II rowsort
SELECT ALL + 28, + 24 AS col2
----
28
24

query II rowsort
SELECT + 27 AS col2, + 46 col0
----
27
46

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

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

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

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

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

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

query II rowsort
SELECT ALL + 63 AS col1, 30 AS col2
----
63
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-179
SELECT CASE - ( + + 65 ) WHEN + 33 THEN NULL WHEN + 22 THEN - - ( COALESCE ( - 11, 11 * + NULLIF ( - COUNT( * ) * + COALESCE ( + 18, - 8, - 53 ), + COALESCE ( 59, - MIN( + 74 ) * + COUNT( * ) + CASE 28 WHEN + 84 THEN - 78 + + CAST( NULL AS SIGNED ) END ) * + 20 ) ) ) / - 2 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-179
SELECT CASE - ( + + 65 ) WHEN + 33 THEN NULL WHEN + 22 THEN - - ( COALESCE ( - 11, 11 * + NULLIF ( - COUNT ( * ) * + COALESCE ( + 18, - 8, - 53 ), + COALESCE ( 59, - MIN ( + 74 ) * + COUNT ( * ) + CASE 28 WHEN + 84 THEN - 78 + + CAST ( NULL AS INTEGER ) END ) * + 20 ) ) ) / - 2 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-180
SELECT ALL 28 * + 81 - + + 80 + 26 * + 13 * + - NULLIF ( - MAX( ALL COALESCE ( 96, 62 ) ), ( - COUNT( * ) ) ) * 12 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL 28 * + 81 - + + 80 + 26 * + 13 * + - NULLIF ( - MAX ( ALL COALESCE ( 96, 62 ) ), ( - COUNT ( * ) ) ) * 12 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 50 * + 74 col1
----
3700

query II rowsort
SELECT ALL + 79 AS col0, + ( 40 ) AS col1
----
79
40

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT CASE - - COUNT( * ) WHEN + 77 THEN - 6 + 66 WHEN - 24 THEN NULL ELSE 64 END
----
64

skipif mysql # not compatible
query I rowsort label-183
SELECT CASE - - COUNT ( * ) WHEN + 77 THEN - 6 + 66 WHEN - 24 THEN NULL ELSE 64 END
----
64

query I rowsort
SELECT + 44 + + + 23 AS col2
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-185
SELECT + 2 DIV 69 * - + 31 AS col1, - NULLIF ( + 57, - 38 ) AS col2
----
0
-57

skipif mysql # not compatible
query II rowsort label-185
SELECT + 2 / 69 * - + 31 AS col1, - NULLIF ( + 57, - 38 ) AS col2
----
0
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-186
SELECT - ( 37 ) * NULLIF ( 58, COUNT( * ) DIV + 14 ) DIV ( + 76 ) DIV - 91 + - 78 * + 1 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-186
SELECT - ( 37 ) * NULLIF ( 58, COUNT ( * ) / + 14 ) / ( + 76 ) / - 91 + - 78 * + 1 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT CASE + - 78 WHEN 62 THEN - 41 ELSE + COUNT( * ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-187
SELECT CASE + - 78 WHEN 62 THEN - 41 ELSE + COUNT ( * ) END AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT + 67 DIV + 24 col0
----
2

skipif mysql # not compatible
query I rowsort label-188
SELECT + 67 / + 24 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-189
SELECT - CASE + CASE COALESCE ( - COUNT( * ), + MAX( + - 10 ) + + + 39 ) WHEN - 63 THEN NULL WHEN 26 / 80 THEN 16 * 76 END WHEN - 42 THEN + COALESCE ( NULLIF ( - 0, + COUNT( * ) + + 85 ), 55, - 24 * + 52, + 61 - - 84 * COUNT( * ) ) WHEN - COUNT( * ) * - 99 THEN + MIN( ALL - COALESCE ( + 19, + 21 * 5 ) ) END + MAX( ALL - CAST( 68 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT - CASE + CASE COALESCE ( - COUNT ( * ), + MAX ( + - 10 ) + + + 39 ) WHEN - 63 THEN NULL WHEN 26 / 80 THEN 16 * 76 END WHEN - 42 THEN + COALESCE ( NULLIF ( - 0, + COUNT ( * ) + + 85 ), 55, - 24 * + 52, + 61 - - 84 * COUNT ( * ) ) WHEN - COUNT ( * ) * - 99 THEN + MIN ( ALL - COALESCE ( + 19, + 21 * 5 ) ) END + MAX ( ALL - CAST ( 68 AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-190
SELECT DISTINCT - 54 DIV - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT - 54 / - 60 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-191
SELECT ALL - 72, + COALESCE ( - COALESCE ( - 85, - 90, + 28 * - COUNT( * ) ), - ( - 91 ) ) AS col2
----
-72
85

skipif mysql # not compatible
query II rowsort label-191
SELECT ALL - 72, + COALESCE ( - COALESCE ( - 85, - 90, + 28 * - COUNT ( * ) ), - ( - 91 ) ) AS col2
----
-72
85

query I rowsort
SELECT + + ( - + CASE - + 0 WHEN 30 THEN - 59 WHEN - 18 + + 59 THEN 27 ELSE NULL END ) / + 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-193
SELECT DISTINCT 95, - CAST( NULL AS SIGNED ) * - + MIN( + 72 ) AS col0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-193
SELECT DISTINCT 95, - CAST ( NULL AS INTEGER ) * - + MIN ( + 72 ) AS col0
----
95
NULL

query I rowsort
SELECT DISTINCT 61 * - 90
----
-5490

query I rowsort
SELECT + + 35 + + 68 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ALL - ( - MAX( - ( + - ( 72 ) ) ) ) col0
----
72

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL - ( - MAX ( - ( + - ( 72 ) ) ) ) col0
----
72

query II rowsort
SELECT - 90 AS col2, 46
----
-90
46

query I rowsort
SELECT - 19 + 74 * - 21 AS col1
----
-1573

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT MIN( + 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-199
SELECT MIN ( + 33 ) AS col2
----
33

query I rowsort
SELECT - 32 * + - 33 AS col1
----
1056

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT COUNT( * ) AS col2, + 58 * - 65 + - 71 * COUNT( * ) - 4 * + 19 AS col2
----
1
-3917

skipif mysql # not compatible
query II rowsort label-201
SELECT COUNT ( * ) AS col2, + 58 * - 65 + - 71 * COUNT ( * ) - 4 * + 19 AS col2
----
1
-3917

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT ALL - MAX( DISTINCT ( + + 8 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL - MAX ( DISTINCT ( + + 8 ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT DISTINCT + MAX( DISTINCT - 60 ) + 76 + + 72 - + - SUM( - - 9 ) * - 6
----
34

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT + MAX ( DISTINCT - 60 ) + 76 + + 72 - + - SUM ( - - 9 ) * - 6
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL + COALESCE ( + COUNT( * ), - 43 * + 88 ) + + 7 col1
----
8

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL + COALESCE ( + COUNT ( * ), - 43 * + 88 ) + + 7 col1
----
8

query II rowsort
SELECT DISTINCT 2 AS col0, 72 * + - 64
----
2
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT DISTINCT + 97 + + ( + 68 ) * COUNT( * ) AS col1
----
165

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT + 97 + + ( + 68 ) * COUNT ( * ) AS col1
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT - 31, + 47 * - + 22 * - - 28 * - 51 * COUNT( * ) AS col1
----
-31
1476552

skipif mysql # not compatible
query II rowsort label-207
SELECT - 31, + 47 * - + 22 * - - 28 * - 51 * COUNT ( * ) AS col1
----
-31
1476552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-208
SELECT ALL CAST( NULL AS SIGNED ) / - 16 - CASE - 63 WHEN + 37 THEN - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL CAST ( NULL AS INTEGER ) / - 16 - CASE - 63 WHEN + 37 THEN - 55 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-209
SELECT ALL 18 DIV ( + - NULLIF ( - + 36, + MAX( + 82 ) * 35 ) ) - - COALESCE ( - 67, - 78 * 55 + - ( COUNT( + 54 ) ) ) * MIN( ALL 41 )
----
-2747

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL 18 / ( + - NULLIF ( - + 36, + MAX ( + 82 ) * 35 ) ) - - COALESCE ( - 67, - 78 * 55 + - ( COUNT ( + 54 ) ) ) * MIN ( ALL 41 )
----
-2747

onlyif mysql # aggregate syntax: 
query II rowsort label-210
SELECT - ( 98 ) - MIN( 66 ) AS col0, 17 AS col2
----
-164
17

skipif mysql # not compatible
query II rowsort label-210
SELECT - ( 98 ) - MIN ( 66 ) AS col0, 17 AS col2
----
-164
17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-212
SELECT - 42 * COUNT( - 30 ) + + 90 + - - CAST( ( - 42 ) AS SIGNED ) - + + 90 + + + NULLIF ( + 44, - 71 ) DIV - 25
----
-85

skipif mysql # not compatible
query I rowsort label-212
SELECT - 42 * COUNT ( - 30 ) + + 90 + - - CAST ( ( - 42 ) AS INTEGER ) - + + 90 + + + NULLIF ( + 44, - 71 ) / - 25
----
-85

query I rowsort
SELECT ALL + 15 - + 8
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT ALL COUNT( * ) - - 29 + + - 82 + 92 + - 34 - + + 31 * 93 * - COUNT( * ) + - 35 col1
----
2854

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL COUNT ( * ) - - 29 + + - 82 + 92 + - 34 - + + 31 * 93 * - COUNT ( * ) + - 35 col1
----
2854

query I rowsort
SELECT 18 * + 48 AS col0
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT 27 - + - SUM( 41 )
----
68

skipif mysql # not compatible
query I rowsort label-216
SELECT 27 - + - SUM ( 41 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-217
SELECT ALL - CASE 27 WHEN + 98 - + + 59 + - + 40 * + - 53 THEN 7 * + CASE + 44 WHEN - 89 THEN NULL WHEN COUNT( * ) + 48 THEN 45 ELSE NULL END ELSE - CAST( - 78 AS SIGNED ) + 38 END AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL - CASE 27 WHEN + 98 - + + 59 + - + 40 * + - 53 THEN 7 * + CASE + 44 WHEN - 89 THEN NULL WHEN COUNT ( * ) + 48 THEN 45 ELSE NULL END ELSE - CAST ( - 78 AS INTEGER ) + 38 END AS col1
----
-116

query II rowsort
SELECT 8 * + - 98, - 72 * - - 21 AS col1
----
-784
-1512

query I rowsort
SELECT DISTINCT + 98 * + 80 * 82 AS col2
----
642880

query I rowsort
SELECT 27 + 6 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL ( - 91 ) * - COUNT( * ) + - - 12 * - 43 - - 99 AS col0
----
-326

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL ( - 91 ) * - COUNT ( * ) + - - 12 * - 43 - - 99 AS col0
----
-326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-222
SELECT COUNT( * ) * - + 50 * ( CAST( + - 70 AS SIGNED ) )
----
3500

skipif mysql # not compatible
query I rowsort label-222
SELECT COUNT ( * ) * - + 50 * ( CAST ( + - 70 AS INTEGER ) )
----
3500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-223
SELECT ALL + COALESCE ( + COUNT( * ), - 99 DIV + CAST( NULL AS SIGNED ) - 58 * MIN( 77 ) ) + 52
----
53

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL + COALESCE ( + COUNT ( * ), - 99 / + CAST ( NULL AS INTEGER ) - 58 * MIN ( 77 ) ) + 52
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT ALL MIN( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL MIN ( 61 )
----
61

query I rowsort
SELECT DISTINCT - 17 + - 79 + + + 39 col1
----
-57

query I rowsort
SELECT + NULLIF ( COALESCE ( - ( + 94 ), - 60 ), - 84 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT - 33 + - 73 + + + COUNT( * ) + 55 - 29
----
-79

skipif mysql # not compatible
query I rowsort label-227
SELECT - 33 + - 73 + + + COUNT ( * ) + 55 - 29
----
-79

query II rowsort
SELECT ALL 73 + + 89 + + 96 + 98 col0, NULLIF ( - - 2, - 16 ) - + ( + 30 ) + 3
----
356
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT - 17 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-229
SELECT - 17 / + 50
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT 0 + - ( - CAST( + 51 AS SIGNED ) )
----
51

skipif mysql # not compatible
query I rowsort label-230
SELECT 0 + - ( - CAST ( + 51 AS INTEGER ) )
----
51

query I rowsort
SELECT + 26 * - + 12 col2
----
-312

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-232
SELECT DISTINCT + CAST( - 38 AS SIGNED ) DIV 33 * 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT + CAST ( - 38 AS INTEGER ) / 33 * 10 AS col2
----
-10

query I rowsort
SELECT ALL - 60 * + 85 * - - 8 AS col0
----
-40800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-234
SELECT ALL - 49 + COALESCE ( CAST( 27 AS SIGNED ), + - 46 * - ( + 79 ) + 79 )
----
-22

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - 49 + COALESCE ( CAST ( 27 AS INTEGER ), + - 46 * - ( + 79 ) + 79 )
----
-22

query I rowsort
SELECT DISTINCT CASE - - 57 WHEN 94 + - 4 + + 72 * + 21 THEN + 45 + - - 37 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-236
SELECT DISTINCT CASE + ( + 23 ) WHEN - NULLIF ( + ( - 52 ), + + 28 * + 61 * - + 71 + - 86 * ( - COUNT( * ) ) ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END / 57
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT CASE + ( + 23 ) WHEN - NULLIF ( + ( - 52 ), + + 28 * + 61 * - + 71 + - 86 * ( - COUNT ( * ) ) ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END / 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT ALL 36 + - ( - + CASE NULLIF ( - 96, ( 36 ) + - + COUNT( * ) ) WHEN + - COUNT( * ) * 69 THEN 36 WHEN - COALESCE ( COUNT( * ), 45 + 9 ) + 20 THEN - COUNT( * ) + 88 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL 36 + - ( - + CASE NULLIF ( - 96, ( 36 ) + - + COUNT ( * ) ) WHEN + - COUNT ( * ) * 69 THEN 36 WHEN - COALESCE ( COUNT ( * ), 45 + 9 ) + 20 THEN - COUNT ( * ) + 88 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT + 10 * 5 * - COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-238
SELECT + 10 * 5 * - COUNT ( * ) AS col0
----
-50

query I rowsort
SELECT ALL - 99 * + - 3
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT - 33 + - MAX( + 70 )
----
-103

skipif mysql # not compatible
query I rowsort label-240
SELECT - 33 + - MAX ( + 70 )
----
-103

query I rowsort
SELECT ALL 2 - - + 89 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-242
SELECT - COALESCE ( + - 55, 38 * + MAX( NULLIF ( + 3, - 52 ) ) + - + 72 * 70 * ( NULLIF ( + ( - ( + CAST( NULL AS SIGNED ) ) ), + COUNT( * ) ) ) + 33 ) col0
----
55

skipif mysql # not compatible
query I rowsort label-242
SELECT - COALESCE ( + - 55, 38 * + MAX ( NULLIF ( + 3, - 52 ) ) + - + 72 * 70 * ( NULLIF ( + ( - ( + CAST ( NULL AS INTEGER ) ) ), + COUNT ( * ) ) ) + 33 ) col0
----
55

query I rowsort
SELECT 7 + - 53
----
-46

query I rowsort
SELECT 83 + + 62 * + 93 col1
----
5849

query I rowsort
SELECT 22 + - 43
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-246
SELECT ( 34 ) + + 61 + - 97 + - - COUNT( * ) DIV COALESCE ( - COUNT( * ), - 0 )
----
-3

skipif mysql # not compatible
query I rowsort label-246
SELECT ( 34 ) + + 61 + - 97 + - - COUNT ( * ) / COALESCE ( - COUNT ( * ), - 0 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT ALL 63 - - COUNT( * ) * - 65 * - 60
----
3963

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL 63 - - COUNT ( * ) * - 65 * - 60
----
3963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-248
SELECT CAST( COUNT( * ) AS SIGNED ) * - - 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-248
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - - 71 AS col0
----
71

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-250
SELECT ALL - 37, - 59 DIV 85 * 1 + 79 + - 58 + + 44 DIV + + 2 AS col1
----
-37
43

skipif mysql # not compatible
query II rowsort label-250
SELECT ALL - 37, - 59 / 85 * 1 + 79 + - 58 + + 44 / + + 2 AS col1
----
-37
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-251
SELECT ALL - 44 AS col0, - COALESCE ( - + MIN( + + 3 ), - NULLIF ( - 40, + - 29 ), 9 ) * - 37 + + - 8 + + COUNT( * ) DIV 25
----
-44
-119

skipif mysql # not compatible
query II rowsort label-251
SELECT ALL - 44 AS col0, - COALESCE ( - + MIN ( + + 3 ), - NULLIF ( - 40, + - 29 ), 9 ) * - 37 + + - 8 + + COUNT ( * ) / 25
----
-44
-119

query II rowsort
SELECT ALL + 84 * + 7 * + 27, - 85 AS col1
----
15876
-85

query I rowsort
SELECT 18 * - 64 * 94
----
-108288

onlyif mysql # aggregate syntax: 
query II rowsort label-254
SELECT 78, + ( - SUM( - 42 ) ) AS col2
----
78
42

skipif mysql # not compatible
query II rowsort label-254
SELECT 78, + ( - SUM ( - 42 ) ) AS col2
----
78
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-255
SELECT CAST( NULL AS SIGNED ) * + 56 * 11 / 7 / - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-255
SELECT CAST ( NULL AS INTEGER ) * + 56 * 11 / 7 / - 72 AS col2
----
NULL

query I rowsort
SELECT 37 + - 17 + 32 + - 25 AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-257
SELECT ALL - ( - CASE 59 WHEN + 1 THEN NULL WHEN + 33 THEN + COALESCE ( - 95, + - 0 / - 64 / - AVG ( + CAST( NULL AS SIGNED ) ) / - COALESCE ( 27, - 98 ) ) END ) * + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL - ( - CASE 59 WHEN + 1 THEN NULL WHEN + 33 THEN + COALESCE ( - 95, + - 0 / - 64 / - AVG ( + CAST ( NULL AS INTEGER ) ) / - COALESCE ( 27, - 98 ) ) END ) * + 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-258
SELECT 8 DIV - ( + SUM( - + 74 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-258
SELECT 8 / - ( + SUM ( - + 74 ) ) AS col2
----
0

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

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

query I rowsort
SELECT 53 * - 41
----
-2173

query I rowsort
SELECT - ( - - 85 ) * - 94 * 22 * - 91 + ( + 37 ) + - COALESCE ( + 61, - 99 + ( 98 ), ( - 54 ) ) + - 28 col2
----
-15996032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-262
SELECT DISTINCT MAX( - 70 ) + 52 + - - CAST( - + COUNT( * ) AS SIGNED ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT MAX ( - 70 ) + 52 + - - CAST ( - + COUNT ( * ) AS INTEGER ) col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-263
SELECT 12 * - 56 + - CASE - COALESCE ( - 87, - CAST( + COUNT( * ) AS DECIMAL ) * - ( + 6 ) + - 80 * - 10 ) WHEN + 54 THEN NULL ELSE 34 END + 36 * CASE + 40 + 7 WHEN MAX( DISTINCT 10 ) THEN + ( + 57 ) + 15 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT 12 * - 56 + - CASE - COALESCE ( - 87, - CAST ( + COUNT ( * ) AS REAL ) * - ( + 6 ) + - 80 * - 10 ) WHEN + 54 THEN NULL ELSE 34 END + 36 * CASE + 40 + 7 WHEN MAX ( DISTINCT 10 ) THEN + ( + 57 ) + 15 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 40 + + 93
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-265
SELECT ALL + COUNT( * ) + - 97 + - 94, - CASE 9 WHEN + COALESCE ( 88, - 80, + ( + NULLIF ( + CAST( - CASE - COUNT( ALL 30 ) WHEN - 6 THEN CASE CASE - 2 WHEN 40 THEN 0 + - 26 * - 54 ELSE NULL END WHEN + COUNT( + 3 ) THEN + 75 / 97 WHEN 85 * 93 THEN NULL END WHEN - 90 THEN NULL END AS SIGNED ), 44 ) ) * - 74 + MIN( 27 + 85 / 18 ), + ( COUNT( * ) ) ) + - 59 THEN NULL WHEN ( 91 ) * - ( 72 ) THEN + MIN( ALL - 26 ) + 0 / 12 END AS col2
----
-190
NULL

skipif mysql # not compatible
query II rowsort label-265
SELECT ALL + COUNT ( * ) + - 97 + - 94, - CASE 9 WHEN + COALESCE ( 88, - 80, + ( + NULLIF ( + CAST ( - CASE - COUNT ( ALL 30 ) WHEN - 6 THEN CASE CASE - 2 WHEN 40 THEN 0 + - 26 * - 54 ELSE NULL END WHEN + COUNT ( + 3 ) THEN + 75 / 97 WHEN 85 * 93 THEN NULL END WHEN - 90 THEN NULL END AS INTEGER ), 44 ) ) * - 74 + MIN ( 27 + 85 / 18 ), + ( COUNT ( * ) ) ) + - 59 THEN NULL WHEN ( 91 ) * - ( 72 ) THEN + MIN ( ALL - 26 ) + 0 / 12 END AS col2
----
-190
NULL

query I rowsort
SELECT ALL - 22 + 58 AS col1
----
36

query I rowsort
SELECT DISTINCT - ( - 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT + - 23 + COUNT( * ) * - 95 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT + - 23 + COUNT ( * ) * - 95 AS col2
----
-118

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

query I rowsort
SELECT ALL + ( 90 ) * - 66 * + COALESCE ( + 45, - 2 ) col2
----
-267300

onlyif mysql # aggregate syntax: 
query II rowsort label-271
SELECT COUNT( * ) * + 55 - + 15 AS col2, 97 * + 57
----
40
5529

skipif mysql # not compatible
query II rowsort label-271
SELECT COUNT ( * ) * + 55 - + 15 AS col2, 97 * + 57
----
40
5529

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-273
SELECT ALL 64 AS col0, - CASE WHEN ( 81 ) >= + ( 41 ) THEN + 29 WHEN NOT ( MIN( ALL 79 ) * - NULLIF ( AVG ( DISTINCT - 77 ) * COALESCE ( - COALESCE ( 70, + SUM( - 82 ), - 59 ) + 13 / + 42, + 57 + - 79 * MAX( 75 ) ), 41 + 41 * - 0 ) + COUNT( * ) ) IS NULL THEN NULL WHEN NOT NULL NOT IN ( 7 - NULLIF ( + 50 + 68, + 71 + 98 ) ) THEN - COUNT( * ) + 76 ELSE NULL END
----
64
-29

skipif mysql # not compatible
query II rowsort label-273
SELECT ALL 64 AS col0, - CASE WHEN ( 81 ) >= + ( 41 ) THEN + 29 WHEN NOT ( MIN ( ALL 79 ) * - NULLIF ( AVG ( DISTINCT - 77 ) * COALESCE ( - COALESCE ( 70, + SUM ( - 82 ), - 59 ) + 13 / + 42, + 57 + - 79 * MAX ( 75 ) ), 41 + 41 * - 0 ) + COUNT ( * ) ) IS NULL THEN NULL WHEN NOT NULL NOT IN ( 7 - NULLIF ( + 50 + 68, + 71 + 98 ) ) THEN - COUNT ( * ) + 76 ELSE NULL END
----
64
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT - CASE ( - 50 ) WHEN 35 * + 28 + COUNT( * ) THEN - COALESCE ( - ( 5 ), - - ( - 79 ), + COUNT( * ) * + ( 95 ), 75 / + 70 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT - CASE ( - 50 ) WHEN 35 * + 28 + COUNT ( * ) THEN - COALESCE ( - ( 5 ), - - ( - 79 ), + COUNT ( * ) * + ( 95 ), 75 / + 70 ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL - 3 * 83
----
-249

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-276
SELECT - 90 * + - 53 + MIN( ALL 38 ) DIV - - 91, + 94 AS col1
----
4770
94

skipif mysql # not compatible
query II rowsort label-276
SELECT - 90 * + - 53 + MIN ( ALL 38 ) / - - 91, + 94 AS col1
----
4770
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-277
SELECT DISTINCT - 70 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT - 70 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 12 - - 17 AS col0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-279
SELECT - + NULLIF ( 82, + - 72 ) AS col0, MIN( NULLIF ( 45, + 69 ) ) * - + 48
----
-82
-2160

skipif mysql # not compatible
query II rowsort label-279
SELECT - + NULLIF ( 82, + - 72 ) AS col0, MIN ( NULLIF ( 45, + 69 ) ) * - + 48
----
-82
-2160

query I rowsort
SELECT ALL - 15 - + - 0
----
-15

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

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

query I rowsort
SELECT + 10 * 26
----
260

onlyif mysql # DIV for integer division: 
query II rowsort label-283
SELECT ALL 16 DIV - 78 AS col0, 6 * 55 * + + ( 4 )
----
0
1320

skipif mysql # not compatible
query II rowsort label-283
SELECT ALL 16 / - 78 AS col0, 6 * 55 * + + ( 4 )
----
0
1320

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-284
SELECT ALL 86 AS col0, + COUNT( * ) DIV - NULLIF ( - NULLIF ( + 65, + - CASE 81 WHEN + 67 DIV + 38 THEN NULL ELSE + + ( + 65 ) + 30 * 38 END * + CASE 1 WHEN 93 + 81 THEN 42 END ), + 62 ) + - 15 * 10 col0
----
86
-150

skipif mysql # not compatible
query II rowsort label-284
SELECT ALL 86 AS col0, + COUNT ( * ) / - NULLIF ( - NULLIF ( + 65, + - CASE 81 WHEN + 67 / + 38 THEN NULL ELSE + + ( + 65 ) + 30 * 38 END * + CASE 1 WHEN 93 + 81 THEN 42 END ), + 62 ) + - 15 * 10 col0
----
86
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-285
SELECT 82 AS col1, - 11 * COUNT( * ) * CASE 29 WHEN + COUNT( DISTINCT - - 8 ) THEN - 25 ELSE NULL END col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-285
SELECT 82 AS col1, - 11 * COUNT ( * ) * CASE 29 WHEN + COUNT ( DISTINCT - - 8 ) THEN - 25 ELSE NULL END col1
----
82
NULL

query I rowsort
SELECT ALL NULLIF ( + 40, + 29 * 21 + 36 ) * - ( 81 ) AS col2
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT + NULLIF ( 81, - MAX( - 42 ) + - - 97 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-287
SELECT + NULLIF ( 81, - MAX ( - 42 ) + - - 97 ) AS col1
----
81

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

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

query I rowsort
SELECT ALL - 73 * - - 86 + - + 89
----
-6367

query I rowsort
SELECT ALL - 40 * - + 82 * + 31 + - 4 AS col1
----
101676

query I rowsort
SELECT DISTINCT 8 * + - 4 * - 25
----
800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-292
SELECT 26 DIV - NULLIF ( - 7, + MAX( DISTINCT - 57 ) + - + 16 DIV - + 73 - 91 + - COUNT( * ) * - COUNT( * ) + + 40 ) + + COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-292
SELECT 26 / - NULLIF ( - 7, + MAX ( DISTINCT - 57 ) + - + 16 / - + 73 - 91 + - COUNT ( * ) * - COUNT ( * ) + + 40 ) + + COUNT ( * ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT ALL - COUNT( * ) * 9 + + 47 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL - COUNT ( * ) * 9 + + 47 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-294
SELECT 26 * - 97 * + CASE MIN( ALL CAST( + 7 AS DECIMAL ) ) WHEN - 82 + + 2 + - ( + 22 ) THEN NULL ELSE + 51 + 12 END + - 74 DIV 44 AS col0
----
-158887

skipif mysql # not compatible
query I rowsort label-294
SELECT 26 * - 97 * + CASE MIN ( ALL CAST ( + 7 AS REAL ) ) WHEN - 82 + + 2 + - ( + 22 ) THEN NULL ELSE + 51 + 12 END + - 74 / 44 AS col0
----
-158887

query I rowsort
SELECT - 90 - + 10 * - + 23
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-296
SELECT ALL 96 DIV + + 32
----
3

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL 96 / + + 32
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-298
SELECT ALL + AVG ( ALL - + 94 ) * - - 72 * - 54 - - 76 + + CAST( NULL AS SIGNED ) + - COALESCE ( 14, COUNT( * ), 64 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL + AVG ( ALL - + 94 ) * - - 72 * - 54 - - 76 + + CAST ( NULL AS INTEGER ) + - COALESCE ( 14, COUNT ( * ), 64 ) AS col2
----
NULL

query I rowsort
SELECT + + 4 * + ( - ( - - 58 ) ) AS col0
----
-232

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-301
SELECT - - COUNT( * ) + 87 DIV 12 + - + ( COALESCE ( - 58, - 88 * 82 DIV + + ( - - 98 ) * - 55 ) ) + 96
----
162

skipif mysql # not compatible
query I rowsort label-301
SELECT - - COUNT ( * ) + 87 / 12 + - + ( COALESCE ( - 58, - 88 * 82 / + + ( - - 98 ) * - 55 ) ) + 96
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-302
SELECT DISTINCT - 65 * - COALESCE ( - 64, - + 47 + - - ( + COALESCE ( 19, + COUNT( * ) DIV 2 ) ), - - ( - 32 ) ) + - CAST( MAX( COALESCE ( + 64, + 73 ) ) AS SIGNED )
----
-4224

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT - 65 * - COALESCE ( - 64, - + 47 + - - ( + COALESCE ( 19, + COUNT ( * ) / 2 ) ), - - ( - 32 ) ) + - CAST ( MAX ( COALESCE ( + 64, + 73 ) ) AS INTEGER )
----
-4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-303
SELECT ALL 45 * + 28 + + + 46 - CASE - COUNT( * ) WHEN MAX( - CASE + 54 WHEN 92 THEN 68 WHEN 52 THEN CAST( NULL AS SIGNED ) ELSE NULL END ) THEN + COUNT( * ) WHEN 85 THEN - 81 * ( 57 * - ( - CASE - 79 WHEN AVG ( ALL + 72 ) THEN NULL WHEN - COALESCE ( - 12, ( NULLIF ( - COUNT( * ), - ( 64 ) - 27 ) ), + CAST( - 93 AS SIGNED ) - - 26 * - 78 ) * 93 THEN 27 / - 96 ELSE 53 * 52 END * COUNT( * ) ) ) WHEN + CAST( MIN( ALL - 4 ) AS SIGNED ) * COUNT( * ) + 83 THEN - 34 + ( COALESCE ( + 14, - 89 / + 84 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL 45 * + 28 + + + 46 - CASE - COUNT ( * ) WHEN MAX ( - CASE + 54 WHEN 92 THEN 68 WHEN 52 THEN CAST ( NULL AS INTEGER ) ELSE NULL END ) THEN + COUNT ( * ) WHEN 85 THEN - 81 * ( 57 * - ( - CASE - 79 WHEN AVG ( ALL + 72 ) THEN NULL WHEN - COALESCE ( - 12, ( NULLIF ( - COUNT ( * ), - ( 64 ) - 27 ) ), + CAST ( - 93 AS INTEGER ) - - 26 * - 78 ) * 93 THEN 27 / - 96 ELSE 53 * 52 END * COUNT ( * ) ) ) WHEN + CAST ( MIN ( ALL - 4 ) AS INTEGER ) * COUNT ( * ) + 83 THEN - 34 + ( COALESCE ( + 14, - 89 / + 84 ) ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL + - 95, + 90 AS col0
----
-95
90

query I rowsort
SELECT - ( - 98 ) * + ( + - 84 ) + + - 30 * - - 89 - + - 69
----
-10833

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT DISTINCT COUNT( * ) * COUNT( * ) - - + 66
----
67

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) - - + 66
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT + + 52 + 35 + + AVG ( ALL + 78 ) - 33 + CAST( NULL AS SIGNED ) * 71 * + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT + + 52 + 35 + + AVG ( ALL + 78 ) - 33 + CAST ( NULL AS INTEGER ) * 71 * + 34 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-308
SELECT ALL - + 53 - + - COALESCE ( + 61, + COUNT( * ), + 36 * + 78 * + 77 - - 11 * SUM( DISTINCT 35 ) + CAST( 34 AS SIGNED ) ) * 54
----
3241

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL - + 53 - + - COALESCE ( + 61, + COUNT ( * ), + 36 * + 78 * + 77 - - 11 * SUM ( DISTINCT 35 ) + CAST ( 34 AS INTEGER ) ) * 54
----
3241

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-309
SELECT ALL + 82 DIV - - CAST( 13 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL + 82 / - - CAST ( 13 AS INTEGER )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-310
SELECT - - 77 + 89 DIV + + 14
----
83

skipif mysql # not compatible
query I rowsort label-310
SELECT - - 77 + 89 / + + 14
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT - COUNT( * ) + - 13 * 41 AS col2
----
-534

skipif mysql # not compatible
query I rowsort label-311
SELECT - COUNT ( * ) + - 13 * 41 AS col2
----
-534

query I rowsort
SELECT - + 2 * + - 76 + + + 75 col0
----
227

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT - 81 + + 99 + + - COUNT( DISTINCT - 25 ) + + + COUNT( * ) * - - 56
----
73

skipif mysql # not compatible
query I rowsort label-314
SELECT - 81 + + 99 + + - COUNT ( DISTINCT - 25 ) + + + COUNT ( * ) * - - 56
----
73

query I rowsort
SELECT ALL 45 * - + 30 AS col1
----
-1350

onlyif mysql # DIV for integer division: 
query II rowsort label-316
SELECT ALL ( - COALESCE ( + 85, 48 DIV + 81 ) ), + ( - 43 ) - + 45 AS col2
----
-85
-88

skipif mysql # not compatible
query II rowsort label-316
SELECT ALL ( - COALESCE ( + 85, 48 / + 81 ) ), + ( - 43 ) - + 45 AS col2
----
-85
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-317
SELECT DISTINCT - COUNT( * ) * + CAST( - 99 AS SIGNED ) DIV + - 68
----
-1

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT - COUNT ( * ) * + CAST ( - 99 AS INTEGER ) / + - 68
----
-1

query I rowsort
SELECT + 4 + 30 col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT ALL - 84 * - + COUNT( * ) * + 3 * 3 AS col1
----
756

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL - 84 * - + COUNT ( * ) * + 3 * 3 AS col1
----
756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-320
SELECT - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT + MIN( DISTINCT 47 ) + - 21 + - COALESCE ( + - 55, COALESCE ( 9, - 46, + 42 ) )
----
81

skipif mysql # not compatible
query I rowsort label-321
SELECT + MIN ( DISTINCT 47 ) + - 21 + - COALESCE ( + - 55, COALESCE ( 9, - 46, + 42 ) )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-322
SELECT ALL MIN( ALL 15 ) + + 89 + - COUNT( * ) + COALESCE ( - - 87, - COUNT( * ) - 29, - - 26 ) + + CAST( NULL AS SIGNED ) + 66 + - 68 + 85 * - COUNT( * ) / COUNT( * ) * 77 * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL MIN ( ALL 15 ) + + 89 + - COUNT ( * ) + COALESCE ( - - 87, - COUNT ( * ) - 29, - - 26 ) + + CAST ( NULL AS INTEGER ) + 66 + - 68 + 85 * - COUNT ( * ) / COUNT ( * ) * 77 * 70 AS col1
----
NULL

query I rowsort
SELECT - 44 + 15 - + 9 + + 61
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-324
SELECT ALL + COUNT( * ) + - CASE + 41 WHEN + 56 - + 92 * + 96 * - 74 + - CAST( + 49 AS DECIMAL ) - + + COUNT( * ) / - CAST( - + 33 AS SIGNED ) * + 36 * + 6 THEN + MIN( - 62 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL + COUNT ( * ) + - CASE + 41 WHEN + 56 - + 92 * + 96 * - 74 + - CAST ( + 49 AS REAL ) - + + COUNT ( * ) / - CAST ( - + 33 AS INTEGER ) * + 36 * + 6 THEN + MIN ( - 62 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 32 * 78 AS col0
----
2496

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-327
SELECT ALL - COUNT( * ) DIV - COUNT( * ) + - 99 * + 95 + - 58 + - + 66 - - 60 * 73
----
-5148

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL - COUNT ( * ) / - COUNT ( * ) + - 99 * + 95 + - 58 + - + 66 - - 60 * 73
----
-5148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-328
SELECT DISTINCT + 35 DIV 46 * - 90 * - 73 + - + MIN( ALL + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT + 35 / 46 * - 90 * - 73 + - + MIN ( ALL + 48 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT ALL ( 83 ) * - - 86 * 88 + 10 + - 48 * - COUNT( DISTINCT + + 3 ) + - 25 + 92 + - - 79 + + 84 DIV 66 AS col2
----
628349

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL ( 83 ) * - - 86 * 88 + 10 + - 48 * - COUNT ( DISTINCT + + 3 ) + - 25 + 92 + - - 79 + + 84 / 66 AS col2
----
628349

onlyif mysql # aggregate syntax: 
query II rowsort label-330
SELECT DISTINCT 55 * + + 17 col1, + 92 + - + 15 + - 94 + NULLIF ( + 13, COUNT( * ) ) AS col0
----
935
-4

skipif mysql # not compatible
query II rowsort label-330
SELECT DISTINCT 55 * + + 17 col1, + 92 + - + 15 + - 94 + NULLIF ( + 13, COUNT ( * ) ) AS col0
----
935
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-331
SELECT + 66 + - + 88 DIV COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-331
SELECT + 66 + - + 88 / COUNT ( * )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-332
SELECT CAST( + AVG ( ALL - 4 ) AS SIGNED ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-332
SELECT CAST ( + AVG ( ALL - 4 ) AS INTEGER ) AS col1
----
-4

query II rowsort
SELECT ALL COALESCE ( - + 77, - + 52 - + 45 ) * + 82 AS col2, - 92 + - + 39 - ( - ( + ( + - 39 ) ) ) AS col1
----
-6314
-170

query I rowsort
SELECT + - 70 * 76 + - + 75 AS col0
----
-5395

onlyif mysql # DIV for integer division: 
query III rowsort label-335
SELECT ALL 96 * - - 60 AS col1, 20, + + 41 DIV - 44 * + 96 AS col2
----
5760
20
0

skipif mysql # not compatible
query III rowsort label-335
SELECT ALL 96 * - - 60 AS col1, 20, + + 41 / - 44 * + 96 AS col2
----
5760
20
0

query I rowsort
SELECT + 22 * - 38 * - 30 + - 47
----
25033

query I rowsort
SELECT ALL - 36 * - ( + + 61 ) AS col0
----
2196

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL + + COALESCE ( 77, COUNT( + 17 ) * 78 * 36 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL + + COALESCE ( 77, COUNT ( + 17 ) * 78 * 36 ) AS col1
----
77

query I rowsort
SELECT + 72 + + + NULLIF ( + - 29, + 50 ) AS col1
----
43

query I rowsort
SELECT ALL + + NULLIF ( - 65, - 65 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT + 29 * + COUNT( * ) col0
----
29

skipif mysql # not compatible
query I rowsort label-341
SELECT + 29 * + COUNT ( * ) col0
----
29

query I rowsort
SELECT - 99 + + - 41
----
-140

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

query I rowsort
SELECT DISTINCT + 87 * + - 68 * - 50
----
295800

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT ALL CASE + 34 WHEN + 89 + - - SUM( - 41 ) + - 23 * - 96 * - + 35 + - COUNT( * ) THEN + - 67 WHEN + 65 THEN NULL WHEN + 0 THEN - 52 * - 36 ELSE - CASE - COUNT( 82 ) WHEN 17 * + 56 + + 52 THEN + 92 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL CASE + 34 WHEN + 89 + - - SUM ( - 41 ) + - 23 * - 96 * - + 35 + - COUNT ( * ) THEN + - 67 WHEN + 65 THEN NULL WHEN + 0 THEN - 52 * - 36 ELSE - CASE - COUNT ( 82 ) WHEN 17 * + 56 + + 52 THEN + 92 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL - MIN( DISTINCT 22 ) + - 31 * - 95
----
2923

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - MIN ( DISTINCT 22 ) + - 31 * - 95
----
2923

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-347
SELECT ( - 73 ) * + 76 AS col2, - CAST( NULL AS SIGNED )
----
-5548
NULL

skipif mysql # not compatible
query II rowsort label-347
SELECT ( - 73 ) * + 76 AS col2, - CAST ( NULL AS INTEGER )
----
-5548
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-348
SELECT 28 * NULLIF ( + 38, + 79 * + + CAST( NULL AS SIGNED ) ) AS col2
----
1064

skipif mysql # not compatible
query I rowsort label-348
SELECT 28 * NULLIF ( + 38, + 79 * + + CAST ( NULL AS INTEGER ) ) AS col2
----
1064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-349
SELECT 2 * + CAST( ( + 75 ) AS SIGNED )
----
150

skipif mysql # not compatible
query I rowsort label-349
SELECT 2 * + CAST ( ( + 75 ) AS INTEGER )
----
150

query II rowsort
SELECT - 32, 66 AS col2
----
-32
66

query I rowsort
SELECT DISTINCT - 71 + - - 75 col1
----
4

query I rowsort
SELECT 27 * + 21
----
567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-353
SELECT ALL - CASE WHEN NULL >= - 51 THEN NULL ELSE + 42 - 22 + + - 29 END * + CASE - 40 WHEN + 8 DIV - 29 * + - 42 THEN + - 87 DIV - + 37 DIV 50 + + ( - ( 18 ) ) WHEN 36 - - 6 THEN NULL ELSE + 58 END * COUNT( * ) AS col0
----
522

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL - CASE WHEN NULL >= - 51 THEN NULL ELSE + 42 - 22 + + - 29 END * + CASE - 40 WHEN + 8 / - 29 * + - 42 THEN + - 87 / - + 37 / 50 + + ( - ( 18 ) ) WHEN 36 - - 6 THEN NULL ELSE + 58 END * COUNT ( * ) AS col0
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL + 26 + - 35 + 53 - COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + 26 + - 35 + 53 - COUNT ( * ) AS col2
----
43

query I rowsort
SELECT DISTINCT - 35 * 60 AS col2
----
-2100

query I rowsort
SELECT DISTINCT + 36 * + 8 AS col2
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-357
SELECT 61, - 34 * - NULLIF ( - 76, ( + 33 ) + + 28 ) / 8 + CAST( NULL AS SIGNED ) + + 5 AS col1
----
61
NULL

skipif mysql # not compatible
query II rowsort label-357
SELECT 61, - 34 * - NULLIF ( - 76, ( + 33 ) + + 28 ) / 8 + CAST ( NULL AS INTEGER ) + + 5 AS col1
----
61
NULL

query I rowsort
SELECT ALL - 63 - - 95 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT 52 + + 56 + 10 * 89 / - + SUM( - + 39 ) * CASE AVG ( 53 ) WHEN 67 THEN + 15 * - 38 + - 36 - 46 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT 52 + + 56 + 10 * 89 / - + SUM ( - + 39 ) * CASE AVG ( 53 ) WHEN 67 THEN + 15 * - 38 + - 36 - 46 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT DISTINCT - CASE - 64 WHEN + + 60 * - 61 * - + 61 THEN + SUM( ALL ( - 66 ) ) WHEN + 42 THEN + 28 * + 31 + CASE - - ( - 66 ) WHEN + 51 THEN + 26 * 31 + - 99 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT - CASE - 64 WHEN + + 60 * - 61 * - + 61 THEN + SUM ( ALL ( - 66 ) ) WHEN + 42 THEN + 28 * + 31 + CASE - - ( - 66 ) WHEN + 51 THEN + 26 * 31 + - 99 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT ALL - 76 / + + 56 * + COALESCE ( - SUM( - - 96 ), CASE - - 74 WHEN - - COUNT( * ) + - ( 18 ) THEN + 24 ELSE NULL END ) * CASE 68 WHEN SUM( - 28 ) THEN 43 / - 24 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL - 76 / + + 56 * + COALESCE ( - SUM ( - - 96 ), CASE - - 74 WHEN - - COUNT ( * ) + - ( 18 ) THEN + 24 ELSE NULL END ) * CASE 68 WHEN SUM ( - 28 ) THEN 43 / - 24 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-362
SELECT + COUNT( * ) * + 94 DIV + ( 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-362
SELECT + COUNT ( * ) * + 94 / + ( 86 ) AS col0
----
1

query I rowsort
SELECT ALL - - 12 - - 35
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT DISTINCT + 32 DIV - 78 * 92
----
0

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT + 32 / - 78 * 92
----
0

query I rowsort
SELECT DISTINCT - 74 - - 89 * - - 97 + - 92 + + 71 * 69 AS col0
----
13366

query I rowsort
SELECT + 61 - - - 48 + + - 28
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-367
SELECT ALL COUNT( * ) * - ( - 46 ) + + NULLIF ( - 12, + 82 ), + NULLIF ( + + COUNT( * ), - ( + - COUNT( * ) ) * - 65 ) * - 12 AS col2
----
34
-12

skipif mysql # not compatible
query II rowsort label-367
SELECT ALL COUNT ( * ) * - ( - 46 ) + + NULLIF ( - 12, + 82 ), + NULLIF ( + + COUNT ( * ), - ( + - COUNT ( * ) ) * - 65 ) * - 12 AS col2
----
34
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-368
SELECT ALL - + 53, COUNT( * ) * 0 * COUNT( * ) + + 5 AS col2
----
-53
5

skipif mysql # not compatible
query II rowsort label-368
SELECT ALL - + 53, COUNT ( * ) * 0 * COUNT ( * ) + + 5 AS col2
----
-53
5

onlyif mysql # aggregate syntax: 
query II rowsort label-369
SELECT DISTINCT - - 1, - COUNT( * ) * + 31 * - + 65 AS col0
----
1
2015

skipif mysql # not compatible
query II rowsort label-369
SELECT DISTINCT - - 1, - COUNT ( * ) * + 31 * - + 65 AS col0
----
1
2015

query I rowsort
SELECT DISTINCT - + 75 col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT DISTINCT 15 * + 73 * + 96 * - ( + 68 ) * + COUNT( * ) + ( - 11 ) - - ( + MAX( DISTINCT - + 76 ) )
----
-7148247

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT 15 * + 73 * + 96 * - ( + 68 ) * + COUNT ( * ) + ( - 11 ) - - ( + MAX ( DISTINCT - + 76 ) )
----
-7148247

query I rowsort
SELECT DISTINCT 85 + + 57 col2
----
142

query II rowsort
SELECT 38 - 52 + + 42, + 4 * + + 8 + - 18 AS col0
----
28
14

query I rowsort
SELECT ALL 46 + + 65 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT - 16 + + 17 + - - CASE - + COUNT( * ) WHEN + 11 THEN 96 END + - 28 + COALESCE ( - 24, - 31 ) / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT - 16 + + 17 + - - CASE - + COUNT ( * ) WHEN + 11 THEN 96 END + - 28 + COALESCE ( - 24, - 31 ) / - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT - 46 AS col0, - 2
----
-46
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-377
SELECT COALESCE ( - - 37, + - 96 + - + CAST( NULL AS SIGNED ), + + 19, - COALESCE ( + + COUNT( * ), 49, 60 ) ) + + CASE + 24 WHEN - 40 THEN - - 69 END - + + 96 - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-377
SELECT COALESCE ( - - 37, + - 96 + - + CAST ( NULL AS INTEGER ), + + 19, - COALESCE ( + + COUNT ( * ), 49, 60 ) ) + + CASE + 24 WHEN - 40 THEN - - 69 END - + + 96 - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-378
SELECT ALL 63 + + 46 * + 66 + - CAST( 90 AS SIGNED ) DIV + 6 * + COUNT( * ) AS col2
----
3084

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL 63 + + 46 * + 66 + - CAST ( 90 AS INTEGER ) / + 6 * + COUNT ( * ) AS col2
----
3084

query I rowsort
SELECT 18 + + - 71 * - + 95 AS col0
----
6763

query I rowsort
SELECT DISTINCT 92 + ( 71 ) col2
----
163

query I rowsort
SELECT DISTINCT ( - ( 61 ) ) * - 35 * + - 89
----
-190015

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-382
SELECT DISTINCT ( + COALESCE ( - 94, - - 86 DIV - 61 * + + MIN( 96 ) ) ) * - 61 AS col2
----
5734

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT ( + COALESCE ( - 94, - - 86 / - 61 * + + MIN ( 96 ) ) ) * - 61 AS col2
----
5734

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-383
SELECT ALL + 94 + - COUNT( * ) AS col2, ( + 8 ) DIV 20 * + - 89 * + 21 - + - 93 * - 66 + - 53
----
93
-6191

skipif mysql # not compatible
query II rowsort label-383
SELECT ALL + 94 + - COUNT ( * ) AS col2, ( + 8 ) / 20 * + - 89 * + 21 - + - 93 * - 66 + - 53
----
93
-6191

query I rowsort
SELECT 52 + 8 col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-385
SELECT 62 + - 49 DIV + 39
----
61

skipif mysql # not compatible
query I rowsort label-385
SELECT 62 + - 49 / + 39
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-386
SELECT DISTINCT - 4 DIV CAST( MIN( ALL - 54 ) AS SIGNED ) DIV - - 9 * + 95 + - 97 + - ( - + 56 ) * - + 24 AS col2
----
-1441

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT - 4 / CAST ( MIN ( ALL - 54 ) AS INTEGER ) / - - 9 * + 95 + - 97 + - ( - + 56 ) * - + 24 AS col2
----
-1441

query II rowsort
SELECT 72 + + 58 AS col1, + 10 AS col1
----
130
10

query I rowsort
SELECT 81 + - 43
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT - COALESCE ( + + 81, - + COALESCE ( + COUNT( * ), 5 + + COUNT( * ) + + - 92 + - + 5 + + 92 * - 40 + - 23 ), - + 52 * + 87 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-389
SELECT - COALESCE ( + + 81, - + COALESCE ( + COUNT ( * ), 5 + + COUNT ( * ) + + - 92 + - + 5 + + 92 * - 40 + - 23 ), - + 52 * + 87 ) AS col1
----
-81

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

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

query I rowsort
SELECT - + 73 + 85
----
12

query I rowsort
SELECT + - 3 * - 95 * - + 40 * + - 84 - 63 AS col1
----
957537

query I rowsort
SELECT ALL + + 80 * + 50 * + - 95 col0
----
-380000

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT DISTINCT NULLIF ( ( - - 38 ), - COUNT( * ) - ( 29 ) ) * + SUM( DISTINCT + 64 ) + + + ( + + 20 )
----
2452

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT NULLIF ( ( - - 38 ), - COUNT ( * ) - ( 29 ) ) * + SUM ( DISTINCT + 64 ) + + + ( + + 20 )
----
2452

query I rowsort
SELECT DISTINCT + + 60 * - + 31 + - 99 AS col1
----
-1959

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT ALL - - 94 * - - COUNT( * ) + + 85
----
179

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL - - 94 * - - COUNT ( * ) + + 85
----
179

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-398
SELECT + - SUM( - 86 ) + COALESCE ( 36, + + 87 DIV 13 - + MAX( + 31 ) ) * + 64 AS col0
----
2390

skipif mysql # not compatible
query I rowsort label-398
SELECT + - SUM ( - 86 ) + COALESCE ( 36, + + 87 / 13 - + MAX ( + 31 ) ) * + 64 AS col0
----
2390

query I rowsort
SELECT + 75 * - + 70 AS col0
----
-5250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-400
SELECT CAST( + + 70 AS SIGNED ) col1, + 51 * 87 * - 34 col2
----
70
-150858

skipif mysql # not compatible
query II rowsort label-400
SELECT CAST ( + + 70 AS INTEGER ) col1, + 51 * 87 * - 34 col2
----
70
-150858

query I rowsort
SELECT + ( - 63 ) * + 90 + + 14 col0
----
-5656

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT - + 71 * - 85 * - 66 + + CASE - 2 WHEN - 77 THEN - - 43 WHEN 17 * + 8 * + + 13 * - - COUNT( * ) THEN 41 / - 2 WHEN + 1 THEN - 76 + 11 WHEN SUM( 51 ) * COUNT( * ) THEN 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-402
SELECT - + 71 * - 85 * - 66 + + CASE - 2 WHEN - 77 THEN - - 43 WHEN 17 * + 8 * + + 13 * - - COUNT ( * ) THEN 41 / - 2 WHEN + 1 THEN - 76 + 11 WHEN SUM ( 51 ) * COUNT ( * ) THEN 44 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-403
SELECT COUNT( * ) AS col1, 59 DIV 92
----
1
0

skipif mysql # not compatible
query II rowsort label-403
SELECT COUNT ( * ) AS col1, 59 / 92
----
1
0

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

skipif mysql # not compatible
query I rowsort label-404
SELECT SUM ( - - 77 )
----
77

query I rowsort
SELECT - 69 * + 73
----
-5037

query I rowsort
SELECT + ( + + 90 ) * 28 * 46 + + + NULLIF ( + 22, + 87 )
----
115942

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT - MAX( 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-407
SELECT - MAX ( 48 ) AS col1
----
-48

query I rowsort
SELECT ALL + 62 + - 42 col1
----
20

query I rowsort
SELECT DISTINCT 86 + + - 33 AS col2
----
53

query II rowsort
SELECT DISTINCT 86 AS col1, 73 + + 39 AS col0
----
86
112

query I rowsort
SELECT ALL 9 - + 72 col2
----
-63

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-413
SELECT DISTINCT 14 DIV + CAST( + AVG ( DISTINCT + 58 ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-413
SELECT DISTINCT 14 / + CAST ( + AVG ( DISTINCT + 58 ) AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-414
SELECT ALL 73 - - + 99 * - 82 col1, MIN( DISTINCT - + 11 )
----
-8045
-11

skipif mysql # not compatible
query II rowsort label-414
SELECT ALL 73 - - + 99 * - 82 col1, MIN ( DISTINCT - + 11 )
----
-8045
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT DISTINCT 32 * MAX( - - 14 ) * + 8 AS col0
----
3584

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT 32 * MAX ( - - 14 ) * + 8 AS col0
----
3584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-416
SELECT + 55 - - - 0 * COALESCE ( - 26, - 32 DIV - MIN( DISTINCT 59 ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-416
SELECT + 55 - - - 0 * COALESCE ( - 26, - 32 / - MIN ( DISTINCT 59 ) ) AS col2
----
55

query I rowsort
SELECT ALL 67 * - + ( + 44 ) AS col0
----
-2948

query I rowsort
SELECT - ( - - ( - 35 ) ) AS col0
----
35

query I rowsort
SELECT + 7 * - 41 AS col0
----
-287

onlyif mysql # DIV for integer division: 
query II rowsort label-420
SELECT ALL 13 * 95 * - 72 AS col0, 36 DIV - 30
----
-88920
-1

skipif mysql # not compatible
query II rowsort label-420
SELECT ALL 13 * 95 * - 72 AS col0, 36 / - 30
----
-88920
-1

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

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

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

query I rowsort
SELECT + 60 + ( - - ( 75 ) ) AS col2
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT DISTINCT 8 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT 8 / - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT - - 13 * - 44 + + + COUNT( * ) * - COUNT( * )
----
-573

skipif mysql # not compatible
query I rowsort label-425
SELECT - - 13 * - 44 + + + COUNT ( * ) * - COUNT ( * )
----
-573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-426
SELECT + - 44 + + + CASE - + 84 WHEN - 22 THEN + COUNT( * ) WHEN - 52 * 66 + 35 + CAST( + COUNT( DISTINCT - - ( - NULLIF ( 40, 41 ) ) ) AS SIGNED ) THEN + - 65 ELSE COALESCE ( - 92, - COUNT( + 24 ) + 95 ) END AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-426
SELECT + - 44 + + + CASE - + 84 WHEN - 22 THEN + COUNT ( * ) WHEN - 52 * 66 + 35 + CAST ( + COUNT ( DISTINCT - - ( - NULLIF ( 40, 41 ) ) ) AS INTEGER ) THEN + - 65 ELSE COALESCE ( - 92, - COUNT ( + 24 ) + 95 ) END AS col1
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT + - COUNT( * ) * + - 55 + + NULLIF ( - 42, - 83 + 98 + - COALESCE ( + - MAX( + 13 ), + 50, - 59 ) - + + 69 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-427
SELECT + - COUNT ( * ) * + - 55 + + NULLIF ( - 42, - 83 + 98 + - COALESCE ( + - MAX ( + 13 ), + 50, - 59 ) - + + 69 ) AS col1
----
13

query I rowsort
SELECT - 18 * - 23
----
414

query I rowsort
SELECT ALL - 97 * + 10
----
-970

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

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

query I rowsort
SELECT - + 86 * 43 AS col2
----
-3698

query II rowsort
SELECT DISTINCT - 27 * + - ( + 43 ) * - - 28 + + 67 AS col2, 89 AS col1
----
32575
89

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL - MAX( ALL 58 ) * - - COUNT( * ) + - 68 * + + 21 + - - COALESCE ( + 17, - 50 ) + - 33 AS col1
----
-1502

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL - MAX ( ALL 58 ) * - - COUNT ( * ) + - 68 * + + 21 + - - COALESCE ( + 17, - 50 ) + - 33 AS col1
----
-1502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-434
SELECT DISTINCT + - 47 AS col1, + 44 / 67 * - COALESCE ( - 71, 93 ) * + 4 + + ( 30 ) + 22 - - 97 + - 65 + + + ( + 35 ) * - SUM( ALL 66 ) + - CAST( NULL AS SIGNED ) * - 34
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-434
SELECT DISTINCT + - 47 AS col1, + 44 / 67 * - COALESCE ( - 71, 93 ) * + 4 + + ( 30 ) + 22 - - 97 + - 65 + + + ( + 35 ) * - SUM ( ALL 66 ) + - CAST ( NULL AS INTEGER ) * - 34
----
-47
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-435
SELECT DISTINCT + 89 AS col0, COUNT( * ) DIV + 93 * - - COUNT( * ) AS col1
----
89
0

skipif mysql # not compatible
query II rowsort label-435
SELECT DISTINCT + 89 AS col0, COUNT ( * ) / + 93 * - - COUNT ( * ) AS col1
----
89
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-437
SELECT COALESCE ( + 70, + + 76, - 6, + + CAST( 68 AS SIGNED ) + - 17 )
----
70

skipif mysql # not compatible
query I rowsort label-437
SELECT COALESCE ( + 70, + + 76, - 6, + + CAST ( 68 AS INTEGER ) + - 17 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-438
SELECT ALL + COUNT( * ) * - - AVG ( - 8 ) / + CASE 4 WHEN - - CAST( NULL AS SIGNED ) * - 16 - + NULLIF ( - - NULLIF ( - + 65, 79 * - + ( CAST( NULL AS SIGNED ) ) + + 65 + 28 + - 65 + ( + 12 ) * + 15 ), - 29 ) THEN - 45 ELSE - CASE 59 WHEN + 87 * 53 + 85 THEN - CASE - 56 WHEN + COALESCE ( 50, 95 - 31 / CAST( NULL AS SIGNED ), + 2 / - 71 ) * 71 THEN CAST( NULL AS DECIMAL ) ELSE + 97 END WHEN 73 THEN NULL ELSE NULL END + + 22 END * + 8 - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL + COUNT ( * ) * - - AVG ( - 8 ) / + CASE 4 WHEN - - CAST ( NULL AS INTEGER ) * - 16 - + NULLIF ( - - NULLIF ( - + 65, 79 * - + ( CAST ( NULL AS INTEGER ) ) + + 65 + 28 + - 65 + ( + 12 ) * + 15 ), - 29 ) THEN - 45 ELSE - CASE 59 WHEN + 87 * 53 + 85 THEN - CASE - 56 WHEN + COALESCE ( 50, 95 - 31 / CAST ( NULL AS INTEGER ), + 2 / - 71 ) * 71 THEN CAST ( NULL AS REAL ) ELSE + 97 END WHEN 73 THEN NULL ELSE NULL END + + 22 END * + 8 - 49
----
NULL

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

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

query I rowsort
SELECT ALL + ( - 80 ) AS col2
----
-80

query I rowsort
SELECT - 74 * ( + 47 ) * - - 27 + COALESCE ( 1, 57 + 5, + 8 ) AS col1
----
-93905

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-442
SELECT ALL - CAST( NULL AS DECIMAL ) / - 92 * + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL - CAST ( NULL AS REAL ) / - 92 * + 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT - 85 + 16 * - SUM( - + 58 )
----
843

skipif mysql # not compatible
query I rowsort label-443
SELECT - 85 + 16 * - SUM ( - + 58 )
----
843

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT + 91 - + COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-444
SELECT + 91 - + COUNT ( * ) AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-445
SELECT - 3 DIV - - 14
----
0

skipif mysql # not compatible
query I rowsort label-445
SELECT - 3 / - - 14
----
0

query I rowsort
SELECT ALL + 31 * + 69 AS col0
----
2139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-447
SELECT - COUNT( - 79 ) + - + CASE - COUNT( * ) WHEN - MIN( - - 91 ) / - + ( CASE + 97 WHEN 66 THEN + ( - - 13 ) - 10 + - 6 END ) THEN NULL ELSE CAST( NULL AS SIGNED ) END - + - 20 * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-447
SELECT - COUNT ( - 79 ) + - + CASE - COUNT ( * ) WHEN - MIN ( - - 91 ) / - + ( CASE + 97 WHEN 66 THEN + ( - - 13 ) - 10 + - 6 END ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END - + - 20 * + 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-448
SELECT + CAST( COUNT( * ) AS SIGNED ) * + - 41 * - - CASE + ( + 55 ) WHEN 4 * + 42 THEN NULL WHEN COALESCE ( - + COALESCE ( - 43, 6 ), COALESCE ( - 84, - ( 93 ), - 12 ) * - COUNT( * ) ) - 80 THEN - 5 * - 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * + - 41 * - - CASE + ( + 55 ) WHEN 4 * + 42 THEN NULL WHEN COALESCE ( - + COALESCE ( - 43, 6 ), COALESCE ( - 84, - ( 93 ), - 12 ) * - COUNT ( * ) ) - 80 THEN - 5 * - 16 END
----
NULL

query I rowsort
SELECT DISTINCT 91 * 18
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT - 55 + COUNT( * ) + 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-450
SELECT - 55 + COUNT ( * ) + 27 AS col1
----
-27

query I rowsort
SELECT - 31 + - + 13 + + + 99 * - 57 AS col1
----
-5687

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-453
SELECT DISTINCT CAST( + MAX( ALL CASE - + 62 WHEN + - 82 THEN + 32 / + 15 END ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT CAST ( + MAX ( ALL CASE - + 62 WHEN + - 82 THEN + 32 / + 15 END ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 14 * 88 AS col2
----
-1232

query I rowsort
SELECT + 84 * 44
----
3696

query I rowsort
SELECT + 1 + 30 AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-457
SELECT 42 AS col0, + COUNT( DISTINCT - 62 ) AS col0
----
42
1

skipif mysql # not compatible
query II rowsort label-457
SELECT 42 AS col0, + COUNT ( DISTINCT - 62 ) AS col0
----
42
1

onlyif mysql # aggregate syntax: 
query II rowsort label-458
SELECT + + 34 + - 1, 33 * COUNT( * ) + - - NULLIF ( MIN( - + 73 ), COUNT( 12 ) + + ( + MIN( + NULLIF ( - 95, - - 43 + + 18 ) ) ) + 64 ) AS col2
----
33
-40

skipif mysql # not compatible
query II rowsort label-458
SELECT + + 34 + - 1, 33 * COUNT ( * ) + - - NULLIF ( MIN ( - + 73 ), COUNT ( 12 ) + + ( + MIN ( + NULLIF ( - 95, - - 43 + + 18 ) ) ) + 64 ) AS col2
----
33
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT + - 64 * ( - COUNT( * ) ) * 5 AS col0
----
320

skipif mysql # not compatible
query I rowsort label-460
SELECT + - 64 * ( - COUNT ( * ) ) * 5 AS col0
----
320

query I rowsort
SELECT + - 59 + 30
----
-29

query II rowsort
SELECT - - 44 AS col0, 4 AS col1
----
44
4

query I rowsort
SELECT ALL 6 + + 70
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT DISTINCT - - 63 + 81 + 81 + + 54 * - - COUNT( * ) * 17 * - COUNT( * ) AS col2
----
-693

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT - - 63 + 81 + 81 + + 54 * - - COUNT ( * ) * 17 * - COUNT ( * ) AS col2
----
-693

query II rowsort
SELECT - + 21 AS col0, 43 AS col1
----
-21
43

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT + NULLIF ( - 40, ( + + 83 ) * 69 * + 77 - - 33 + - - 98 * - 45 * 82 * NULLIF ( 98, - ( + + 26 ) ) + - - 5 / + 22 ) * + MIN( + 94 ) AS col1
----
-3760

skipif mysql # not compatible
query I rowsort label-466
SELECT + NULLIF ( - 40, ( + + 83 ) * 69 * + 77 - - 33 + - - 98 * - 45 * 82 * NULLIF ( 98, - ( + + 26 ) ) + - - 5 / + 22 ) * + MIN ( + 94 ) AS col1
----
-3760

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

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

query I rowsort
SELECT ALL + 77 + + 88 AS col1
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-469
SELECT - 96 * - COALESCE ( CAST( - 40 AS SIGNED ), COUNT( * ) )
----
-3840

skipif mysql # not compatible
query I rowsort label-469
SELECT - 96 * - COALESCE ( CAST ( - 40 AS INTEGER ), COUNT ( * ) )
----
-3840

query II rowsort
SELECT 23, - 2 * - + 2 AS col2
----
23
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-471
SELECT ALL 35 DIV - MIN( ALL - 62 ) * - 86 + + + 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL 35 / - MIN ( ALL - 62 ) * - 86 + + + 28 AS col1
----
28

query I rowsort
SELECT - - 1 * ( + 86 ) + - + 47 * - - 68
----
-3110

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT - 16 * - + 85 + + 50 + - - COUNT( * ) + - 0 + - + 16 AS col2
----
1395

skipif mysql # not compatible
query I rowsort label-473
SELECT - 16 * - + 85 + + 50 + - - COUNT ( * ) + - 0 + - + 16 AS col2
----
1395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-474
SELECT DISTINCT - 69 - + COUNT( + 43 ) DIV + COUNT( * ) DIV + - 1
----
-68

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT - 69 - + COUNT ( + 43 ) / + COUNT ( * ) / + - 1
----
-68

query II rowsort
SELECT ALL - 8 * + 39 AS col0, + 60 AS col0
----
-312
60

query II rowsort
SELECT DISTINCT - ( + - 86 ), 29 AS col1
----
86
29

query I rowsort
SELECT 53 + 44 col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT ALL - 8 * + ( 97 ) * 58 + - 69 + + + COUNT( * ) + + - COUNT( * ) AS col0
----
-45077

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL - 8 * + ( 97 ) * 58 + - 69 + + + COUNT ( * ) + + - COUNT ( * ) AS col0
----
-45077

onlyif mysql # DIV for integer division: 
query I rowsort label-479
SELECT ALL - 63 DIV + 20 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL - 63 / + 20 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT DISTINCT + COUNT( * ) * - 74 * + + 22
----
-1628

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT + COUNT ( * ) * - 74 * + + 22
----
-1628

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-481
SELECT 81 DIV - + COUNT( * ), + MAX( ALL + 1 ) AS col1
----
-81
1

skipif mysql # not compatible
query II rowsort label-481
SELECT 81 / - + COUNT ( * ), + MAX ( ALL + 1 ) AS col1
----
-81
1

onlyif mysql # aggregate syntax: 
query III rowsort label-482
SELECT COUNT( * ) * + + 11 AS col2, - 52 AS col0, - + MIN( ALL + 73 ) + 4 AS col0
----
11
-52
-69

skipif mysql # not compatible
query III rowsort label-482
SELECT COUNT ( * ) * + + 11 AS col2, - 52 AS col0, - + MIN ( ALL + 73 ) + 4 AS col0
----
11
-52
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-483
SELECT 12 - COUNT( * ) * - 90, - 32 + 30 AS col2
----
102
-2

skipif mysql # not compatible
query II rowsort label-483
SELECT 12 - COUNT ( * ) * - 90, - 32 + 30 AS col2
----
102
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-484
SELECT DISTINCT + 66 + + 70 AS col0, - CAST( + + 21 AS SIGNED )
----
136
-21

skipif mysql # not compatible
query II rowsort label-484
SELECT DISTINCT + 66 + + 70 AS col0, - CAST ( + + 21 AS INTEGER )
----
136
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-485
SELECT ALL - 8 + 13 / CASE + + 79 WHEN + + 76 / ( + CAST( NULL AS SIGNED ) ) + - - ( 16 ) THEN - - 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL - 8 + 13 / CASE + + 79 WHEN + + 76 / ( + CAST ( NULL AS INTEGER ) ) + - - ( 16 ) THEN - - 70 ELSE NULL END
----
NULL

query I rowsort
SELECT 58 - - - 18 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-487
SELECT ( + 33 ) * - 53 + - MIN( - CAST( + 40 AS SIGNED ) ) + 65 - - SUM( DISTINCT 2 ) - 35 + + 69 + 15 * 59 * + - 14 * - 87 * - NULLIF ( 94, + 17 + - 55 ) + + 0 * 81
----
-101327028

skipif mysql # not compatible
query I rowsort label-487
SELECT ( + 33 ) * - 53 + - MIN ( - CAST ( + 40 AS INTEGER ) ) + 65 - - SUM ( DISTINCT 2 ) - 35 + + 69 + 15 * 59 * + - 14 * - 87 * - NULLIF ( 94, + 17 + - 55 ) + + 0 * 81
----
-101327028

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT DISTINCT 13 + + - COUNT( + 19 ) - - COUNT( * ) + + 43 col2
----
56

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT 13 + + - COUNT ( + 19 ) - - COUNT ( * ) + + 43 col2
----
56

query I rowsort
SELECT ALL + 41 + + + 57 + + 2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-490
SELECT DISTINCT + CASE - 76 WHEN + - 35 + - 0 + CASE - ( - CAST( NULL AS SIGNED ) ) WHEN - + 76 / - COUNT( * ) + - 19 + + 82 + + 62 / + 93 + + 7 THEN + 28 WHEN - 84 THEN NULL END - + AVG ( DISTINCT - 29 ) * 58 THEN 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT + CASE - 76 WHEN + - 35 + - 0 + CASE - ( - CAST ( NULL AS INTEGER ) ) WHEN - + 76 / - COUNT ( * ) + - 19 + + 82 + + 62 / + 93 + + 7 THEN + 28 WHEN - 84 THEN NULL END - + AVG ( DISTINCT - 29 ) * 58 THEN 80 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT + 44 + + SUM( + + 25 ) * - + ( 56 ) + + 28 AS col1
----
-1328

skipif mysql # not compatible
query I rowsort label-491
SELECT + 44 + + SUM ( + + 25 ) * - + ( 56 ) + + 28 AS col1
----
-1328

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT 28 - - + 6 + - COUNT( * ) col2
----
33

skipif mysql # not compatible
query I rowsort label-492
SELECT 28 - - + 6 + - COUNT ( * ) col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT 58 + + COUNT( * ) + - 50 col0
----
9

skipif mysql # not compatible
query I rowsort label-493
SELECT 58 + + COUNT ( * ) + - 50 col0
----
9

query I rowsort
SELECT NULLIF ( + - 18, 43 )
----
-18

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-496
SELECT DISTINCT + + COALESCE ( + 76, - ( - 91 ) * + 72, + 15 DIV + 5 + + - 53 - + - 12 DIV + 25, + + 33 + - - SUM( - 40 ) DIV - 12 + + + 26 * 29 ) * - 22 - 21 * + 9 AS col0
----
-1861

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT + + COALESCE ( + 76, - ( - 91 ) * + 72, + 15 / + 5 + + - 53 - + - 12 / + 25, + + 33 + - - SUM ( - 40 ) / - 12 + + + 26 * 29 ) * - 22 - 21 * + 9 AS col0
----
-1861

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

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

query I rowsort
SELECT ALL - ( + 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-499
SELECT COUNT( * ) + 81 + + + 3, 98 + - - 9 - + 78 + + ( - COUNT( * ) ) * - 54 AS col2
----
85
83

skipif mysql # not compatible
query II rowsort label-499
SELECT COUNT ( * ) + 81 + + + 3, 98 + - - 9 - + 78 + + ( - COUNT ( * ) ) * - 54 AS col2
----
85
83

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-500
SELECT DISTINCT ( + CAST( - 14 AS DECIMAL ) ) - + + 18 + - CAST( NULL AS SIGNED ) / + - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT ( + CAST ( - 14 AS REAL ) ) - + + 18 + - CAST ( NULL AS INTEGER ) / + - 61 AS col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-503
SELECT + 5 * 30 + - COUNT( DISTINCT 16 ) + - ( + 53 ) DIV + - 58 - + 66 AS col0, + ( COUNT( + 32 ) ) col0
----
83
1

skipif mysql # not compatible
query II rowsort label-503
SELECT + 5 * 30 + - COUNT ( DISTINCT 16 ) + - ( + 53 ) / + - 58 - + 66 AS col0, + ( COUNT ( + 32 ) ) col0
----
83
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-505
SELECT ALL - 88 AS col1, 17 + - CAST( 90 AS SIGNED )
----
-88
-73

skipif mysql # not compatible
query II rowsort label-505
SELECT ALL - 88 AS col1, 17 + - CAST ( 90 AS INTEGER )
----
-88
-73

query II rowsort
SELECT ALL - 91, + 38 + + - 10 AS col2
----
-91
28

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL - NULLIF ( ( - - 29 ), - 36 + + COUNT( * ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL - NULLIF ( ( - - 29 ), - 36 + + COUNT ( * ) ) AS col2
----
-29

query I rowsort
SELECT ALL - 77 * - + 45 AS col0
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT ALL 14 + + - MAX( DISTINCT + - 97 ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL 14 + + - MAX ( DISTINCT + - 97 ) AS col0
----
111

query I rowsort
SELECT CASE - 46 WHEN - 15 THEN + 32 + - 44 ELSE 49 + ( 30 ) END - + 2 AS col0
----
77

query I rowsort
SELECT DISTINCT + 59 * - 86
----
-5074

query I rowsort
SELECT 68 * + 81 * + 72 - + 25 + 58
----
396609

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT CASE + MAX( - 25 ) WHEN + COALESCE ( + 59, + - 8 ) THEN NULL WHEN 43 * - ( ( + 19 ) ) - COUNT( * ) - 48 THEN - 21 END + + 19 + 85 + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-513
SELECT CASE + MAX ( - 25 ) WHEN + COALESCE ( + 59, + - 8 ) THEN NULL WHEN 43 * - ( ( + 19 ) ) - COUNT ( * ) - 48 THEN - 21 END + + 19 + 85 + - 20
----
NULL

query III rowsort
SELECT ALL + 69 + - - 36 * - 16 AS col1, + 19 col1, - 38 * 68 * + 12 AS col0
----
-507
19
-31008

query I rowsort
SELECT - COALESCE ( 69, - 91 ) AS col1
----
-69

query I rowsort
SELECT + 66 + 52 * + ( + 30 ) * 14 + 86
----
21992

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-517
SELECT DISTINCT COUNT( * ), - 53 + - CASE - 73 WHEN + 61 THEN NULL WHEN + 57 THEN NULL ELSE - + 59 DIV + 85 END AS col2
----
1
-53

skipif mysql # not compatible
query II rowsort label-517
SELECT DISTINCT COUNT ( * ), - 53 + - CASE - 73 WHEN + 61 THEN NULL WHEN + 57 THEN NULL ELSE - + 59 / + 85 END AS col2
----
1
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT ALL + 42 + + 60 * + COUNT( * ) * - + 23 AS col1
----
-1338

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL + 42 + + 60 * + COUNT ( * ) * - + 23 AS col1
----
-1338

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT + 29 * - + 97 + SUM( - - 74 )
----
-2739

skipif mysql # not compatible
query I rowsort label-519
SELECT + 29 * - + 97 + SUM ( - - 74 )
----
-2739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-520
SELECT ALL - 26 + - COUNT( * ) + NULLIF ( + 45, CAST( ( + CASE + ( - - 95 ) WHEN - - 11 THEN NULL ELSE - 71 END ) AS SIGNED ) * 38 * + COUNT( * ) * + 77 )
----
18

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL - 26 + - COUNT ( * ) + NULLIF ( + 45, CAST ( ( + CASE + ( - - 95 ) WHEN - - 11 THEN NULL ELSE - 71 END ) AS INTEGER ) * 38 * + COUNT ( * ) * + 77 )
----
18

query II rowsort
SELECT DISTINCT 35 AS col1, ( - ( 39 ) )
----
35
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL + MIN( 39 ) + - 60 * - - 85 AS col0
----
-5061

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL + MIN ( 39 ) + - 60 * - - 85 AS col0
----
-5061

query II rowsort
SELECT - 14 AS col0, 49 AS col0
----
-14
49

query I rowsort
SELECT - 12 + - + 93
----
-105

query I rowsort
SELECT ALL + + 45 - 62 + 15 * - 41 AS col1
----
-632

onlyif mysql # DIV for integer division: 
query II rowsort label-526
SELECT - - 76 AS col1, 1 * - 23 * 37 DIV - ( + 27 ) AS col2
----
76
31

skipif mysql # not compatible
query II rowsort label-526
SELECT - - 76 AS col1, 1 * - 23 * 37 / - ( + 27 ) AS col2
----
76
31

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

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

query II rowsort
SELECT + 21, 61 AS col2
----
21
61

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT + NULLIF ( - COALESCE ( - 88, - 18 ), + + CASE 13 WHEN + 91 * 9 + - COUNT( * ) - + 7 + COUNT( * ) * 0 THEN + 39 + 93 END * - 36 ) * - 22 AS col0
----
-1936

skipif mysql # not compatible
query I rowsort label-529
SELECT + NULLIF ( - COALESCE ( - 88, - 18 ), + + CASE 13 WHEN + 91 * 9 + - COUNT ( * ) - + 7 + COUNT ( * ) * 0 THEN + 39 + 93 END * - 36 ) * - 22 AS col0
----
-1936

query II rowsort
SELECT ALL + 34 AS col0, + 26
----
34
26

query I rowsort
SELECT - 86 * + - 95
----
8170

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT + COUNT( 81 ) * ( + 98 ) + + 32 + + COUNT( * ) * + 24 * 57 + - - ( CASE + - 89 WHEN + - 73 THEN NULL WHEN - SUM( ALL + + 70 ) THEN NULL WHEN + + 20 THEN + - COUNT( * ) END ) / - - ( + 48 ) * - 59 / 57 - - COUNT( * ) * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-532
SELECT + COUNT ( 81 ) * ( + 98 ) + + 32 + + COUNT ( * ) * + 24 * 57 + - - ( CASE + - 89 WHEN + - 73 THEN NULL WHEN - SUM ( ALL + + 70 ) THEN NULL WHEN + + 20 THEN + - COUNT ( * ) END ) / - - ( + 48 ) * - 59 / 57 - - COUNT ( * ) * 48
----
NULL

query II rowsort
SELECT ( + 20 ) AS col1, 65 AS col2
----
20
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT + COALESCE ( - COUNT( * ), + 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-535
SELECT + COALESCE ( - COUNT ( * ), + 21 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT + ( - - 87 ) * - 21 * - COUNT( * ) - 24
----
1803

skipif mysql # not compatible
query I rowsort label-536
SELECT + ( - - 87 ) * - 21 * - COUNT ( * ) - 24
----
1803

query I rowsort
SELECT ALL 50 * + - 25
----
-1250

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

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT + CAST ( - - AVG ( + 57 ) AS INTEGER ) AS col1
----
57

query I rowsort
SELECT DISTINCT 94 * - 99 + 73 col1
----
-9233

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT + COUNT( * ) + + 94 + + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-540
SELECT + COUNT ( * ) + + 94 + + COUNT ( * ) AS col2
----
96

query I rowsort
SELECT ALL 69 * 6 * 85 + - - 55
----
35245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-542
SELECT + ( - + 90 ) DIV + COUNT( * ) + 66 - 62 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-542
SELECT + ( - + 90 ) / + COUNT ( * ) + 66 - 62 AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-543
SELECT CAST( + 98 AS SIGNED ) * + ( + CAST( NULL AS SIGNED ) ) + 19 + + - 69 * - COUNT( * ) / + 22 + - 1 AS col1, + 25 col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-543
SELECT CAST ( + 98 AS INTEGER ) * + ( + CAST ( NULL AS INTEGER ) ) + 19 + + - 69 * - COUNT ( * ) / + 22 + - 1 AS col1, + 25 col2
----
NULL
25

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT CASE 33 WHEN + COUNT( * ) THEN + 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-544
SELECT CASE 33 WHEN + COUNT ( * ) THEN + 13 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-545
SELECT ALL CASE 68 WHEN + 26 + - + 93 + - - CAST( - - 62 AS SIGNED ) * - COUNT( * ) THEN + 25 * + 80 + + 3 + - 32 + - 75 * - - 73 * + 52 END * + 44 + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL CASE 68 WHEN + 26 + - + 93 + - - CAST ( - - 62 AS INTEGER ) * - COUNT ( * ) THEN + 25 * + 80 + + 3 + - 32 + - 75 * - - 73 * + 52 END * + 44 + 36 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT + 43 DIV - - 17 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-547
SELECT + 43 / - - 17 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT ALL 54 DIV 77 * - - 20 * - 31 * + - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL 54 / 77 * - - 20 * - 31 * + - 83 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-549
SELECT DISTINCT 66 DIV 17 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT 66 / 17 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT ALL - + 40 * 51 + - - COUNT( * )
----
-2039

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL - + 40 * 51 + - - COUNT ( * )
----
-2039

query I rowsort
SELECT ALL + COALESCE ( + + 91, - 84 ) AS col2
----
91

query I rowsort
SELECT COALESCE ( - + 48, + 55 ) AS col2
----
-48

query I rowsort
SELECT ALL 6 * + + 1 + + 30 * 31
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT DISTINCT 43 * - 35 * + COUNT( * ) - COUNT( * ) + - ( + 44 ) * + 87 * + 56 * - 43
----
9216318

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT 43 * - 35 * + COUNT ( * ) - COUNT ( * ) + - ( + 44 ) * + 87 * + 56 * - 43
----
9216318

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

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

query II rowsort
SELECT + 13 + - + 64 AS col2, - 36 AS col0
----
-51
-36

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

skipif mysql # not compatible
query I rowsort label-557
SELECT - - NULLIF ( + - CAST ( NULL AS INTEGER ), + ( - 80 ) + + ( - COUNT ( * ) ) ) * - COUNT ( + 20 ) col2
----
NULL

query I rowsort
SELECT ALL + 14 * + - 76 AS col0
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT MAX( - + 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-559
SELECT MAX ( - + 78 ) AS col1
----
-78

query I rowsort
SELECT + + 59 - - 54 + 1
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-561
SELECT - CAST( NULL AS SIGNED ) * - - 5 AS col2, + 56 - + + 7 * 35 + + - 1
----
NULL
-190

skipif mysql # not compatible
query II rowsort label-561
SELECT - CAST ( NULL AS INTEGER ) * - - 5 AS col2, + 56 - + + 7 * 35 + + - 1
----
NULL
-190

query I rowsort
SELECT + - CASE 68 WHEN + 64 THEN - 67 WHEN - 89 THEN - 93 * + - 32 ELSE NULL END - + - 4
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-564
SELECT - 85 * - 47 * + MIN( + 29 ) / - - CASE + - CAST( - 70 AS SIGNED ) WHEN ( - 56 ) THEN 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT - 85 * - 47 * + MIN ( + 29 ) / - - CASE + - CAST ( - 70 AS INTEGER ) WHEN ( - 56 ) THEN 75 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-565
SELECT DISTINCT - 82 DIV - ( COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT - 82 / - ( COUNT ( * ) )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-566
SELECT + 42 + + COUNT( * ) AS col2, + COUNT( * ) * + 86 col0
----
43
86

skipif mysql # not compatible
query II rowsort label-566
SELECT + 42 + + COUNT ( * ) AS col2, + COUNT ( * ) * + 86 col0
----
43
86

query I rowsort
SELECT - - 43 - + + 22 AS col0
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-568
SELECT ALL - 37 / - 1 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL - 37 / - 1 + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + - 32 * 82 + - 40 AS col1
----
-2664

query I rowsort
SELECT - - 26 * 53 AS col1
----
1378

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-571
SELECT - + 68 - + + NULLIF ( + + 83, + CAST( - 11 AS DECIMAL ) * - + 5 * + 12 ) AS col1
----
-151

skipif mysql # not compatible
query I rowsort label-571
SELECT - + 68 - + + NULLIF ( + + 83, + CAST ( - 11 AS REAL ) * - + 5 * + 12 ) AS col1
----
-151

query I rowsort
SELECT - + ( + + 81 ) * + 93
----
-7533

query II rowsort
SELECT 38 AS col1, - 90
----
38
-90

query I rowsort
SELECT ALL - 49 * - - 1 * + ( + 18 ) col2
----
-882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-575
SELECT ALL 45 DIV - + MIN( - - 91 ) * 98 - - - 95 + + 76 - + + 74 * 28 * + + 92
----
-190643

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL 45 / - + MIN ( - - 91 ) * 98 - - - 95 + + 76 - + + 74 * 28 * + + 92
----
-190643

query I rowsort
SELECT ALL + 77 * 62
----
4774

query I rowsort
SELECT - NULLIF ( + 61, - 7 ) * - 95 + - + 45 AS col2
----
5750

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT + COUNT( ALL + 22 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-578
SELECT + COUNT ( ALL + 22 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-579
SELECT 54, COUNT( - 35 ) - + ( 39 ) AS col0
----
54
-38

skipif mysql # not compatible
query II rowsort label-579
SELECT 54, COUNT ( - 35 ) - + ( 39 ) AS col0
----
54
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-580
SELECT DISTINCT - NULLIF ( + 12, - CAST( 98 AS DECIMAL ) )
----
-12

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT - NULLIF ( + 12, - CAST ( 98 AS REAL ) )
----
-12

query I rowsort
SELECT ALL + 42 + - 19 AS col1
----
23

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

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

query II rowsort
SELECT ALL 13 * 63 * 84, + 53 AS col1
----
68796
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-584
SELECT 96 + + CAST( - NULLIF ( + + 17, - 76 ) AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-584
SELECT 96 + + CAST ( - NULLIF ( + + 17, - 76 ) AS INTEGER )
----
79

query I rowsort
SELECT ALL - 42 + 64 * - 20 AS col0
----
-1322

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT MIN( + 27 ) - - 2
----
29

skipif mysql # not compatible
query I rowsort label-586
SELECT MIN ( + 27 ) - - 2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT COUNT( * ) + - + 24
----
-23

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

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

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

query I rowsort
SELECT 13 + + 57 col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-590
SELECT ALL + + 99 * + + MIN( ALL + - CAST( NULL AS SIGNED ) ) / 25 * - 44 * COUNT( * ) * + COUNT( * ) * 82 * - - NULLIF ( 69, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL + + 99 * + + MIN ( ALL + - CAST ( NULL AS INTEGER ) ) / 25 * - 44 * COUNT ( * ) * + COUNT ( * ) * 82 * - - NULLIF ( 69, COUNT ( * ) )
----
NULL

query I rowsort
SELECT 5 + - - 27 AS col1
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-592
SELECT ALL 30 DIV 47 - - 58, - 18 AS col1
----
58
-18

skipif mysql # not compatible
query II rowsort label-592
SELECT ALL 30 / 47 - - 58, - 18 AS col1
----
58
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-593
SELECT - SUM( + CAST( NULL AS SIGNED ) ) + 60 AS col0, - ( - 48 )
----
NULL
48

skipif mysql # not compatible
query II rowsort label-593
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) + 60 AS col0, - ( - 48 )
----
NULL
48

query I rowsort
SELECT ALL + 52 * - - 79
----
4108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT + 96 + - - COUNT( * ) / - - 80 * CAST( NULL AS SIGNED ) + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + + 45 - + 20 - - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT + 96 + - - COUNT ( * ) / - - 80 * CAST ( NULL AS INTEGER ) + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 45 - + 20 - - 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT + ( + 0 ) * - NULLIF ( COUNT( * ), - 84 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT + ( + 0 ) * - NULLIF ( COUNT ( * ), - 84 ) AS col2
----
0

query I rowsort
SELECT + 40 * + 93
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT 5 * 85 * + + 56 * 17 - NULLIF ( - 98, 28 * 59 * 4 * - + COUNT( * ) + - COALESCE ( + 44, - 17 * - + 85 * - 61 ) ) + + 90
----
404788

skipif mysql # not compatible
query I rowsort label-598
SELECT 5 * 85 * + + 56 * 17 - NULLIF ( - 98, 28 * 59 * 4 * - + COUNT ( * ) + - COALESCE ( + 44, - 17 * - + 85 * - 61 ) ) + + 90
----
404788

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT ALL 88 + + 68 * + COUNT( * ) + + 91 AS col1
----
247

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL 88 + + 68 * + COUNT ( * ) + + 91 AS col1
----
247

query I rowsort
SELECT DISTINCT 4 + 71 AS col2
----
75

query I rowsort
SELECT 62 + + 41 - - 6 + + 98 + + 18 + - - 59 col1
----
284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-602
SELECT ALL 98 + - NULLIF ( + CAST( NULL AS SIGNED ), - + CAST( - 45 AS SIGNED ) + - 42 ) + + ( MIN( + 96 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL 98 + - NULLIF ( + CAST ( NULL AS INTEGER ), - + CAST ( - 45 AS INTEGER ) + - 42 ) + + ( MIN ( + 96 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 73 + + 87 * + 29 AS col1
----
2596

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT ALL - COUNT( * ) + - 0 + 7 * 98 AS col0
----
685

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL - COUNT ( * ) + - 0 + 7 * 98 AS col0
----
685

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-605
SELECT 73 * + 82 + CASE WHEN NOT + 38 IS NULL THEN + NULLIF ( - + CASE + + 68 WHEN - 78 THEN 45 + + + 76 WHEN + 28 THEN NULL ELSE NULL END, 37 ) - + + COALESCE ( CAST( CAST( 86 AS DECIMAL ) AS SIGNED ), 76 + + + 18 - + 17 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-605
SELECT 73 * + 82 + CASE WHEN NOT + 38 IS NULL THEN + NULLIF ( - + CASE + + 68 WHEN - 78 THEN 45 + + + 76 WHEN + 28 THEN NULL ELSE NULL END, 37 ) - + + COALESCE ( CAST ( CAST ( 86 AS REAL ) AS INTEGER ), 76 + + + 18 - + 17 ) END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-606
SELECT DISTINCT - 28 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT - 28 / - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT 6 + 25 AS col0
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT 77 + + MAX( DISTINCT - - 69 ) - - + 5 * - ( - 31 ) * - 81 col2
----
-12409

skipif mysql # not compatible
query I rowsort label-610
SELECT 77 + + MAX ( DISTINCT - - 69 ) - - + 5 * - ( - 31 ) * - 81 col2
----
-12409

onlyif mysql # DIV for integer division: 
query I rowsort label-611
SELECT DISTINCT 90 DIV 33 * 52 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT 90 / 33 * 52 AS col2
----
104

query I rowsort
SELECT 90 - ( - - 55 ) + - 55 AS col2
----
-20

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

skipif mysql # not compatible
query II rowsort label-613
SELECT DISTINCT - 64 AS col0, - COUNT ( * ) col0
----
-64
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-614
SELECT DISTINCT - CASE - - 66 WHEN 50 + - + 51 THEN - 15 WHEN + + 16 DIV 11 - + 86 THEN + - 51 DIV - 76 ELSE 58 END AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT - CASE - - 66 WHEN 50 + - + 51 THEN - 15 WHEN + + 16 / 11 - + 86 THEN + - 51 / - 76 ELSE 58 END AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT 12 + MIN( DISTINCT + COALESCE ( 4, + 84 ) )
----
16

skipif mysql # not compatible
query I rowsort label-615
SELECT 12 + MIN ( DISTINCT + COALESCE ( 4, + 84 ) )
----
16

query II rowsort
SELECT + 64 AS col2, 66 AS col0
----
64
66

query I rowsort
SELECT 22 + 78
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-618
SELECT + 55 * 22 + - + 11 - 79 + - 62 * - + 92 * 55 * + 19 + - CAST( NULL AS SIGNED ) / - + MAX( DISTINCT - + 99 ) * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT + 55 * 22 + - + 11 - 79 + - 62 * - + 92 * 55 * + 19 + - CAST ( NULL AS INTEGER ) / - + MAX ( DISTINCT - + 99 ) * + 59
----
NULL

query II rowsort
SELECT DISTINCT - + 30 AS col1, - 53 + 53
----
-30
0

query II rowsort
SELECT ALL - 92, 7 * - 0 AS col2
----
-92
0

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT DISTINCT - + MAX( - 66 ) - + 57 + - - 40 * 82 * 95 AS col0
----
311609

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT - + MAX ( - 66 ) - + 57 + - - 40 * 82 * 95 AS col0
----
311609

onlyif mysql # aggregate syntax: 
query II rowsort label-622
SELECT ALL - 40 AS col0, - SUM( ALL + + 80 ) + 3 * + - 75 AS col1
----
-40
-305

skipif mysql # not compatible
query II rowsort label-622
SELECT ALL - 40 AS col0, - SUM ( ALL + + 80 ) + 3 * + - 75 AS col1
----
-40
-305

query I rowsort
SELECT ALL + 31 * + ( - + 97 )
----
-3007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-624
SELECT - CASE 76 WHEN - 30 THEN + CASE ( + 27 ) WHEN - ( - + 75 ) THEN + 15 + - COUNT( * ) WHEN - + 91 THEN + + 25 WHEN + + 55 + - + 60 THEN + + 58 + - MIN( DISTINCT - 33 ) + + 56 * + - 15 * - COUNT( * ) * + 52 END DIV MIN( + CASE + 14 WHEN + 87 THEN NULL ELSE COALESCE ( 44, 25 * ( 4 ) + + 28 ) END ) WHEN MIN( ALL 40 ) + + 88 THEN NULL WHEN 68 THEN - 4 * 41 ELSE 54 + 41 END AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-624
SELECT - CASE 76 WHEN - 30 THEN + CASE ( + 27 ) WHEN - ( - + 75 ) THEN + 15 + - COUNT ( * ) WHEN - + 91 THEN + + 25 WHEN + + 55 + - + 60 THEN + + 58 + - MIN ( DISTINCT - 33 ) + + 56 * + - 15 * - COUNT ( * ) * + 52 END / MIN ( + CASE + 14 WHEN + 87 THEN NULL ELSE COALESCE ( 44, 25 * ( 4 ) + + 28 ) END ) WHEN MIN ( ALL 40 ) + + 88 THEN NULL WHEN 68 THEN - 4 * 41 ELSE 54 + 41 END AS col2
----
-95

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

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 20 * + 89 + - 3 AS col0
----
1777

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL - + 34 * - CASE - + 22 WHEN - + 79 * - - MIN( - 46 ) THEN + 27 ELSE NULL END * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL - + 34 * - CASE - + 22 WHEN - + 79 * - - MIN ( - 46 ) THEN + 27 ELSE NULL END * - 81
----
NULL

query I rowsort
SELECT 99 + + - 80 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT - MAX( DISTINCT - 10 ) * + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-629
SELECT - MAX ( DISTINCT - 10 ) * + COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-630
SELECT + 3 DIV 25 * 86 * 32 * COUNT( * ) * + - NULLIF ( + 97, + + 56 )
----
0

skipif mysql # not compatible
query I rowsort label-630
SELECT + 3 / 25 * 86 * 32 * COUNT ( * ) * + - NULLIF ( + 97, + + 56 )
----
0

query II rowsort
SELECT - 18 AS col2, 49 col1
----
-18
49

onlyif mysql # aggregate syntax: 
query II rowsort label-632
SELECT ALL 77 + 83 * + COUNT( * ) + - 26 AS col1, 35 AS col0
----
134
35

skipif mysql # not compatible
query II rowsort label-632
SELECT ALL 77 + 83 * + COUNT ( * ) + - 26 AS col1, 35 AS col0
----
134
35

query I rowsort
SELECT 76 - + 76
----
0

query I rowsort
SELECT DISTINCT - + 29 + + + 80 + 26
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-635
SELECT ALL - 55 DIV + COUNT( * ) AS col0, - COUNT( * ) + CAST( NULL AS SIGNED )
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-635
SELECT ALL - 55 / + COUNT ( * ) AS col0, - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
-55
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-637
SELECT 65 + - - CASE - - 81 WHEN - 42 * - 38 * - COUNT( * ) + + 32 + - - 74 + - + 35 THEN NULL WHEN + 18 + + - 66 THEN NULL WHEN - - ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE 89 END + - 17 AS col0, + COUNT( * )
----
137
1

skipif mysql # not compatible
query II rowsort label-637
SELECT 65 + - - CASE - - 81 WHEN - 42 * - 38 * - COUNT ( * ) + + 32 + - - 74 + - + 35 THEN NULL WHEN + 18 + + - 66 THEN NULL WHEN - - ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 89 END + - 17 AS col0, + COUNT ( * )
----
137
1

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT DISTINCT 21 + + - COUNT( * ) AS col0, - 67 * - + COUNT( * ) * - COUNT( * ) * 90
----
20
-6030

skipif mysql # not compatible
query II rowsort label-638
SELECT DISTINCT 21 + + - COUNT ( * ) AS col0, - 67 * - + COUNT ( * ) * - COUNT ( * ) * 90
----
20
-6030

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT ALL COUNT( ALL - 73 ) + MAX( + + 6 )
----
7

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL COUNT ( ALL - 73 ) + MAX ( + + 6 )
----
7

query I rowsort
SELECT DISTINCT 50 + - 5 * 22
----
-60

query I rowsort
SELECT + 56 + - - 67
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL COUNT( * ) + + 38 - + 22 * + 57
----
-1215

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL COUNT ( * ) + + 38 - + 22 * + 57
----
-1215

query I rowsort
SELECT ALL 20 - - + COALESCE ( - 79, + - 58 )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT + COUNT( * ) * - - ( - + 40 ) * - 26 * - + 60 * - + MIN( - - 6 ) AS col0, 55
----
374400
55

skipif mysql # not compatible
query II rowsort label-644
SELECT + COUNT ( * ) * - - ( - + 40 ) * - 26 * - + 60 * - + MIN ( - - 6 ) AS col0, 55
----
374400
55

query II rowsort
SELECT DISTINCT - 4 * 23 - 51 AS col1, 12 col2
----
-143
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-646
SELECT ALL + 79 DIV 76 * + CAST( 89 AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL + 79 / 76 * + CAST ( 89 AS INTEGER ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-647
SELECT - 13 DIV + CAST( + 83 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-647
SELECT - 13 / + CAST ( + 83 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT NULLIF ( 27, - ( - 68 ) + - + 22 * + 82 * - 34 ) AS col1
----
27

query I rowsort
SELECT + 84 + 4
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-650
SELECT - 48 DIV 30 * + - SUM( - 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-650
SELECT - 48 / 30 * + - SUM ( - 7 ) AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-651
SELECT + COUNT( * ) * + CAST( - COUNT( + 27 ) AS SIGNED ) + - - 8
----
7

skipif mysql # not compatible
query I rowsort label-651
SELECT + COUNT ( * ) * + CAST ( - COUNT ( + 27 ) AS INTEGER ) + - - 8
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-652
SELECT COALESCE ( 81, 63, 29 DIV + COUNT( * ) * - + 85 + CAST( COUNT( * ) AS SIGNED ) )
----
81

skipif mysql # not compatible
query I rowsort label-652
SELECT COALESCE ( 81, 63, 29 / + COUNT ( * ) * - + 85 + CAST ( COUNT ( * ) AS INTEGER ) )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-653
SELECT - COUNT( + - 98 ) * - 98 - + 88 DIV - 48
----
99

skipif mysql # not compatible
query I rowsort label-653
SELECT - COUNT ( + - 98 ) * - 98 - + 88 / - 48
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-654
SELECT + COUNT( * ) DIV - + 33 col1
----
0

skipif mysql # not compatible
query I rowsort label-654
SELECT + COUNT ( * ) / - + 33 col1
----
0

query I rowsort
SELECT - + 71 + - 26 + + 98 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-656
SELECT ALL - COUNT( DISTINCT 92 ) DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL - COUNT ( DISTINCT 92 ) / 55
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-657
SELECT ALL - ( - 97 ) * - 97 * 52 + + CAST( 85 AS SIGNED ) + + - CAST( NULL AS SIGNED ) * 4 * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL - ( - 97 ) * - 97 * 52 + + CAST ( 85 AS INTEGER ) + + - CAST ( NULL AS INTEGER ) * 4 * - 87
----
NULL

query I rowsort
SELECT - - 96 + - - ( 55 )
----
151

query I rowsort
SELECT DISTINCT + 33 * 10 * + - 31
----
-10230

query I rowsort
SELECT DISTINCT - - 82 * - 37 AS col1
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT - - 47 * COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-661
SELECT - - 47 * COUNT ( * ) AS col2
----
47

query I rowsort
SELECT ALL + 61 * + + 85 + + 10
----
5195

query II rowsort
SELECT + 95 + - 32 AS col1, 31 AS col2
----
63
31

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT + 15 * - 1 * + 17 + - 51 + COUNT( * ), 15 AS col1
----
-305
15

skipif mysql # not compatible
query II rowsort label-664
SELECT + 15 * - 1 * + 17 + - 51 + COUNT ( * ), 15 AS col1
----
-305
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT - 78 + ( - MAX( ALL - 74 ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-666
SELECT - 78 + ( - MAX ( ALL - 74 ) ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT CASE - + 40 WHEN + 24 + + - 33 + + + 55 * + COUNT( * ) * + 53 THEN + + COUNT( * ) - - + 7 + + 75 * COALESCE ( - ( + 89 ), + CASE WHEN NOT NULL IS NOT NULL THEN AVG ( DISTINCT + 84 ) ELSE - 47 * + 24 + + COUNT( * ) * - MAX( ALL - + 26 ) END ) / - 8 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-667
SELECT CASE - + 40 WHEN + 24 + + - 33 + + + 55 * + COUNT ( * ) * + 53 THEN + + COUNT ( * ) - - + 7 + + 75 * COALESCE ( - ( + 89 ), + CASE WHEN NOT NULL IS NOT NULL THEN AVG ( DISTINCT + 84 ) ELSE - 47 * + 24 + + COUNT ( * ) * - MAX ( ALL - + 26 ) END ) / - 8 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL - COUNT( * ) + 70 - NULLIF ( + 27, + ( 22 ) )
----
42

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL - COUNT ( * ) + 70 - NULLIF ( + 27, + ( 22 ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT - - MAX( + + 56 ) + 45
----
101

skipif mysql # not compatible
query I rowsort label-670
SELECT - - MAX ( + + 56 ) + 45
----
101

query I rowsort
SELECT ALL - - 27 + + 87 col2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-672
SELECT ALL + CAST( NULL AS SIGNED ) * 95 * + 85 - - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL + CAST ( NULL AS INTEGER ) * 95 * + 85 - - 73 AS col2
----
NULL

query I rowsort
SELECT - + 20 + 66 + + - 85 AS col2
----
-39

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

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

query I rowsort
SELECT ALL + 98 * 58 - + ( + - 3 )
----
5687

query II rowsort
SELECT - 16, - 11 AS col2
----
-16
-11

query I rowsort
SELECT - 98 + 33
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-678
SELECT + ( + + 77 ) + + - 83 AS col2, COUNT( * ) AS col2
----
-6
1

skipif mysql # not compatible
query II rowsort label-678
SELECT + ( + + 77 ) + + - 83 AS col2, COUNT ( * ) AS col2
----
-6
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT ALL 44 - + - 77 + 1 + - 37 - 65 + + 58 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL 44 - + - 77 + 1 + - 37 - 65 + + 58 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-681
SELECT - CAST( NULL AS SIGNED ) + - 83 * NULLIF ( - 26, + - 51 ) + - - CASE + COALESCE ( + 44, - 52 ) WHEN - 21 THEN + 91 WHEN + 83 + - - MAX( DISTINCT 24 ) THEN NULL ELSE CAST( - 34 AS DECIMAL ) END + 24 * + + 2 * - 12 * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-681
SELECT - CAST ( NULL AS INTEGER ) + - 83 * NULLIF ( - 26, + - 51 ) + - - CASE + COALESCE ( + 44, - 52 ) WHEN - 21 THEN + 91 WHEN + 83 + - - MAX ( DISTINCT 24 ) THEN NULL ELSE CAST ( - 34 AS REAL ) END + 24 * + + 2 * - 12 * 60
----
NULL

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

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

query I rowsort
SELECT ALL ( ( + ( + 9 ) ) ) AS col0
----
9

query I rowsort
SELECT ALL ( - 49 ) * - 77
----
3773

query I rowsort
SELECT + 96 * 49 * + 62 * 86 AS col2
----
25081728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-686
SELECT ALL COUNT( * ) DIV - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL COUNT ( * ) / - 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT - COUNT( + ( COALESCE ( - 46, 89 * + 7 + + + 83 ) ) ) - - - 33 col0
----
-34

skipif mysql # not compatible
query I rowsort label-687
SELECT - COUNT ( + ( COALESCE ( - 46, 89 * + 7 + + + 83 ) ) ) - - - 33 col0
----
-34

query I rowsort
SELECT + 72 * - + 35
----
-2520

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

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

query II rowsort
SELECT DISTINCT + 57 AS col2, 53
----
57
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT CAST( - ( 64 ) AS SIGNED ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-691
SELECT CAST ( - ( 64 ) AS INTEGER ) AS col0
----
-64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-693
SELECT + 42 + - - 0 + + COUNT( * ) + - NULLIF ( + + 52, ( + MIN( ALL - - 73 ) ) + + CASE - 77 WHEN + 33 DIV - + 31 + + 70 + + COALESCE ( + - CAST( 35 AS SIGNED ), - 58, + 10 ) THEN - + 4 END ) DIV 81
----
43

skipif mysql # not compatible
query I rowsort label-693
SELECT + 42 + - - 0 + + COUNT ( * ) + - NULLIF ( + + 52, ( + MIN ( ALL - - 73 ) ) + + CASE - 77 WHEN + 33 / - + 31 + + 70 + + COALESCE ( + - CAST ( 35 AS INTEGER ), - 58, + 10 ) THEN - + 4 END ) / 81
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-694
SELECT CAST( - NULLIF ( + 36, + 77 + + + 17 ) AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-694
SELECT CAST ( - NULLIF ( + 36, + 77 + + + 17 ) AS INTEGER )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-695
SELECT ALL + 8 col0, + 33 + - + 37 * + COUNT( * ) AS col1
----
8
-4

skipif mysql # not compatible
query II rowsort label-695
SELECT ALL + 8 col0, + 33 + - + 37 * + COUNT ( * ) AS col1
----
8
-4

query I rowsort
SELECT ALL + 37 * + - 62 AS col2
----
-2294

query I rowsort
SELECT + 13 * + 32 + + 6
----
422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-698
SELECT + + COUNT( * ) + + MIN( DISTINCT - CAST( NULL AS SIGNED ) ), MIN( + - 36 ) + + 54 AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-698
SELECT + + COUNT ( * ) + + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ), MIN ( + - 36 ) + + 54 AS col2
----
NULL
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-699
SELECT + - CAST( - 29 AS SIGNED ) * - + CASE + - NULLIF ( 87, - CASE - 77 WHEN - 22 THEN NULL WHEN + - MAX( ALL - 18 ) * + + 91 THEN - + CAST( NULL AS SIGNED ) - CASE 33 WHEN - 10 * - 18 * 35 THEN - + 42 + + + 15 WHEN + - AVG ( + + 92 ) THEN NULL END + 90 + - 76 + 84 * 70 / + 57 END ) WHEN + COUNT( * ) THEN + 22 WHEN 98 THEN - 13 ELSE NULL END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-699
SELECT + - CAST ( - 29 AS INTEGER ) * - + CASE + - NULLIF ( 87, - CASE - 77 WHEN - 22 THEN NULL WHEN + - MAX ( ALL - 18 ) * + + 91 THEN - + CAST ( NULL AS INTEGER ) - CASE 33 WHEN - 10 * - 18 * 35 THEN - + 42 + + + 15 WHEN + - AVG ( + + 92 ) THEN NULL END + 90 + - 76 + 84 * 70 / + 57 END ) WHEN + COUNT ( * ) THEN + 22 WHEN 98 THEN - 13 ELSE NULL END * 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-700
SELECT ALL + COUNT( * ) * + 39 + + 2 + + 39 - 3 DIV + ( + 99 )
----
80

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL + COUNT ( * ) * + 39 + + 2 + + 39 - 3 / + ( + 99 )
----
80

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-702
SELECT DISTINCT - 21 DIV + 80 - + + 65 * + COUNT( * ) + 37
----
-28

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT - 21 / + 80 - + + 65 * + COUNT ( * ) + 37
----
-28

query II rowsort
SELECT DISTINCT + - 41 AS col0, - 77 + - 57 * + - 28 + 48 * 8 AS col2
----
-41
1903

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-704
SELECT DISTINCT + + 10 * 43 * + - 7 * - - 64 + - + ( + COUNT( * ) ) DIV - 30
----
-192640

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT + + 10 * 43 * + - 7 * - - 64 + - + ( + COUNT ( * ) ) / - 30
----
-192640

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT - 42 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-705
SELECT - 42 / + 88
----
0

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

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL + COUNT ( * ) * - 50 + - 2 + - + NULLIF ( + ( + 1 ), + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT - + 33 * + 92 * - MAX( + 46 )
----
139656

skipif mysql # not compatible
query I rowsort label-707
SELECT - + 33 * + 92 * - MAX ( + 46 )
----
139656

query I rowsort
SELECT DISTINCT + 27 * - + 93
----
-2511

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-709
SELECT ALL - 84 * + 85 + - 60 AS col0, ( CAST( 40 AS SIGNED ) ) AS col0
----
-7200
40

skipif mysql # not compatible
query II rowsort label-709
SELECT ALL - 84 * + 85 + - 60 AS col0, ( CAST ( 40 AS INTEGER ) ) AS col0
----
-7200
40

query I rowsort
SELECT + 95 + 58
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-711
SELECT + COALESCE ( + + 6, + ( - CASE + + 8 WHEN + - COUNT( * ) / CASE - 93 WHEN + 74 + + 89 - + SUM( + CAST( + 46 AS SIGNED ) ) + + - 85 * - + ( + ( - - 1 ) ) THEN - 19 * + 49 * - COUNT( * ) * + - 52 WHEN + 75 * 31 THEN NULL END + 10 * - 32 THEN 51 WHEN - 27 * + SUM( DISTINCT 62 * 38 ) THEN NULL ELSE NULL END ), 72 * - 62 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-711
SELECT + COALESCE ( + + 6, + ( - CASE + + 8 WHEN + - COUNT ( * ) / CASE - 93 WHEN + 74 + + 89 - + SUM ( + CAST ( + 46 AS INTEGER ) ) + + - 85 * - + ( + ( - - 1 ) ) THEN - 19 * + 49 * - COUNT ( * ) * + - 52 WHEN + 75 * 31 THEN NULL END + 10 * - 32 THEN 51 WHEN - 27 * + SUM ( DISTINCT 62 * 38 ) THEN NULL ELSE NULL END ), 72 * - 62 ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT 55 + - - ( + + 52 ) * 33 DIV - 27
----
-8

skipif mysql # not compatible
query I rowsort label-712
SELECT 55 + - - ( + + 52 ) * 33 / - 27
----
-8

query I rowsort
SELECT 71 * + - 93 AS col2
----
-6603

onlyif mysql # aggregate syntax: 
query II rowsort label-714
SELECT DISTINCT 74 - COUNT( * ), 60 * - 52 + COALESCE ( + NULLIF ( + + MAX( + + 82 ), - + COUNT( * ) * - SUM( DISTINCT - + 20 ) ), - 79 ) AS col1
----
73
-3038

skipif mysql # not compatible
query II rowsort label-714
SELECT DISTINCT 74 - COUNT ( * ), 60 * - 52 + COALESCE ( + NULLIF ( + + MAX ( + + 82 ), - + COUNT ( * ) * - SUM ( DISTINCT - + 20 ) ), - 79 ) AS col1
----
73
-3038

query II rowsort
SELECT 90 + 1 AS col2, - 18
----
91
-18

query II rowsort
SELECT ALL + 24 - - + 22, + 16 AS col0
----
46
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-717
SELECT 96 * COUNT( * ) DIV - 20 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-717
SELECT 96 * COUNT ( * ) / - 20 AS col2
----
-4

query I rowsort
SELECT DISTINCT ( 89 ) * - - 67
----
5963

query I rowsort
SELECT ALL + 97 * + 11 * + 73 AS col0
----
77891

query II rowsort
SELECT 86 * + - 46 AS col1, + 83
----
-3956
83

query II rowsort
SELECT 89 + - ( - - 18 ) * + 61, - 89 AS col1
----
-1009
-89

query II rowsort
SELECT 25 - - 10 AS col2, 31 AS col2
----
35
31

query I rowsort
SELECT 34 - + 96
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT 5 DIV - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-724
SELECT 5 / - 58 AS col0
----
0

query I rowsort
SELECT 12 * - 46 * 34 AS col1
----
-18768

onlyif mysql # aggregate syntax: 
query II rowsort label-726
SELECT DISTINCT - MIN( ALL + ( + 83 ) ) * - - COUNT( * ) AS col0, 0 AS col0
----
-83
0

skipif mysql # not compatible
query II rowsort label-726
SELECT DISTINCT - MIN ( ALL + ( + 83 ) ) * - - COUNT ( * ) AS col0, 0 AS col0
----
-83
0

query I rowsort
SELECT DISTINCT 45 + 28 AS col0
----
73

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-729
SELECT - 54 * COUNT( * ) + + - 2 - + + COALESCE ( + 2, - 50 + 22 * - 0 * + + 85 DIV - 52 - COUNT( * ) * 33, - + 39 ) + - 61 * + 10 * - 2 * + COUNT( * ) - - 13 * - 34 AS col2, 70 * - + COUNT( DISTINCT - 9 )
----
720
-70

skipif mysql # not compatible
query II rowsort label-729
SELECT - 54 * COUNT ( * ) + + - 2 - + + COALESCE ( + 2, - 50 + 22 * - 0 * + + 85 / - 52 - COUNT ( * ) * 33, - + 39 ) + - 61 * + 10 * - 2 * + COUNT ( * ) - - 13 * - 34 AS col2, 70 * - + COUNT ( DISTINCT - 9 )
----
720
-70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT ALL COALESCE ( - + 84, + 65 * 37 + + + COUNT( * ), + + 60 - + 15 + + CAST( NULL AS SIGNED ) ) + 57 / - - 37 + CAST( NULL AS SIGNED ) * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL COALESCE ( - + 84, + 65 * 37 + + + COUNT ( * ), + + 60 - + 15 + + CAST ( NULL AS INTEGER ) ) + 57 / - - 37 + CAST ( NULL AS INTEGER ) * + 53
----
NULL

query I rowsort
SELECT - 56 * - - ( + 48 ) + 57 AS col2
----
-2631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-733
SELECT - 31 * + NULLIF ( - 27, + COALESCE ( ( + COUNT( * ) ), - 53 - CAST( 28 AS SIGNED ) ) ) + + MIN( - 80 ) + - 64
----
693

skipif mysql # not compatible
query I rowsort label-733
SELECT - 31 * + NULLIF ( - 27, + COALESCE ( ( + COUNT ( * ) ), - 53 - CAST ( 28 AS INTEGER ) ) ) + + MIN ( - 80 ) + - 64
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT 28 * - 50 + - 86 + - + COUNT( * )
----
-1487

skipif mysql # not compatible
query I rowsort label-734
SELECT 28 * - 50 + - 86 + - + COUNT ( * )
----
-1487

query I rowsort
SELECT - 13 + 31
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT ALL - COALESCE ( - + 47, 2 * - + COUNT( * ) + + NULLIF ( - 3, + 97 ), + - 29 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL - COALESCE ( - + 47, 2 * - + COUNT ( * ) + + NULLIF ( - 3, + 97 ), + - 29 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL - MIN( DISTINCT + 27 ) - - 48 - COUNT( * ) * 47 + - CASE 23 WHEN - 97 + - - 10 THEN ( - + 44 ) WHEN - 45 + + 7 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL - MIN ( DISTINCT + 27 ) - - 48 - COUNT ( * ) * 47 + - CASE 23 WHEN - 97 + - - 10 THEN ( - + 44 ) WHEN - 45 + + 7 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-738
SELECT + 80 + - - 50 * - CAST( + + 26 AS SIGNED ) + + 49 AS col1
----
-1171

skipif mysql # not compatible
query I rowsort label-738
SELECT + 80 + - - 50 * - CAST ( + + 26 AS INTEGER ) + + 49 AS col1
----
-1171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-739
SELECT + CASE + + 3 WHEN - 40 THEN NULL WHEN 34 * - + 21 THEN + 15 ELSE 53 - - 85 + 10 * - - 23 * 2 * COUNT( * ) END * MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) + + 68 + + CAST( - 25 AS SIGNED ) + + + 46 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-739
SELECT + CASE + + 3 WHEN - 40 THEN NULL WHEN 34 * - + 21 THEN + 15 ELSE 53 - - 85 + 10 * - - 23 * 2 * COUNT ( * ) END * MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + + 68 + + CAST ( - 25 AS INTEGER ) + + + 46 col1
----
NULL

query I rowsort
SELECT + + 8 * 9 + + 36
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-741
SELECT ALL 32 - - + CAST( - 71 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL 32 - - + CAST ( - 71 AS INTEGER )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-742
SELECT DISTINCT - CASE 85 WHEN + CAST( NULL AS SIGNED ) THEN + + 24 WHEN + 30 THEN 18 * 73 ELSE NULL END AS col1, + 76 AS col2
----
NULL
76

skipif mysql # not compatible
query II rowsort label-742
SELECT DISTINCT - CASE 85 WHEN + CAST ( NULL AS INTEGER ) THEN + + 24 WHEN + 30 THEN 18 * 73 ELSE NULL END AS col1, + 76 AS col2
----
NULL
76

onlyif mysql # aggregate syntax: 
query II rowsort label-743
SELECT 71 * + COALESCE ( + COUNT( * ), - + 40, MAX( + 49 ) + + - ( 91 ) * - 4 - - 17 ) AS col2, + 6 - 97 * - CASE + 63 WHEN - - 9 THEN + 44 / + + ( - + 35 ) + - CASE - 32 WHEN + 96 THEN NULL ELSE NULLIF ( COUNT( * ), 24 ) END WHEN - + 0 THEN NULL END + + 62
----
71
NULL

skipif mysql # not compatible
query II rowsort label-743
SELECT 71 * + COALESCE ( + COUNT ( * ), - + 40, MAX ( + 49 ) + + - ( 91 ) * - 4 - - 17 ) AS col2, + 6 - 97 * - CASE + 63 WHEN - - 9 THEN + 44 / + + ( - + 35 ) + - CASE - 32 WHEN + 96 THEN NULL ELSE NULLIF ( COUNT ( * ), 24 ) END WHEN - + 0 THEN NULL END + + 62
----
71
NULL

query I rowsort
SELECT 6 * - 14 * 45
----
-3780

query I rowsort
SELECT DISTINCT 62 * - 7
----
-434

query I rowsort
SELECT 90 + + 55
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-747
SELECT ALL - 55 * - 87 * COUNT( * ) DIV + COUNT( * )
----
4785

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL - 55 * - 87 * COUNT ( * ) / + COUNT ( * )
----
4785

query I rowsort
SELECT 96 * + 98 AS col1
----
9408

onlyif mysql # aggregate syntax: 
query II rowsort label-749
SELECT ALL 81 col1, + COUNT( ALL - 25 ) + CASE - + 99 WHEN - 6 THEN 0 + - - ( + 42 ) END + NULLIF ( + - 70, + 54 * 24 * + 72 + - 44 ) * - 64
----
81
NULL

skipif mysql # not compatible
query II rowsort label-749
SELECT ALL 81 col1, + COUNT ( ALL - 25 ) + CASE - + 99 WHEN - 6 THEN 0 + - - ( + 42 ) END + NULLIF ( + - 70, + 54 * 24 * + 72 + - 44 ) * - 64
----
81
NULL

query I rowsort
SELECT ALL 61 * + 54 AS col2
----
3294

query II rowsort
SELECT 84 AS col1, ( + 0 ) AS col1
----
84
0

query I rowsort
SELECT 25 + - - ( - 73 ) - - + 62 + - 89 - + 87 * 45 - + 97 AS col2
----
-4087

query I rowsort
SELECT 31 * - 69 col1
----
-2139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT ALL - COUNT( * ) + + ( - 21 ) + - MAX( ALL + + ( + + 19 ) ) + - + 65 + ( 14 ) / + + 33 + + - CASE + 26 WHEN + + 32 THEN 34 * - 82 WHEN - 87 THEN - 18 ELSE NULL END * - ( 47 ) + - + ( 21 ) * - + 0 + 9 + - 8 * - - 21 + COUNT( * ) * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL - COUNT ( * ) + + ( - 21 ) + - MAX ( ALL + + ( + + 19 ) ) + - + 65 + ( 14 ) / + + 33 + + - CASE + 26 WHEN + + 32 THEN 34 * - 82 WHEN - 87 THEN - 18 ELSE NULL END * - ( 47 ) + - + ( 21 ) * - + 0 + 9 + - 8 * - - 21 + COUNT ( * ) * 43 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-756
SELECT ALL - 66 + CAST( + 66 AS SIGNED ) - - - 90 * COUNT( 60 ) + + - ( 28 ) * COUNT( * ) * - + ( 51 )
----
1338

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL - 66 + CAST ( + 66 AS INTEGER ) - - - 90 * COUNT ( 60 ) + + - ( 28 ) * COUNT ( * ) * - + ( 51 )
----
1338

query I rowsort
SELECT 21 + + - 96
----
-75

query I rowsort
SELECT 31 + - 99 + - - ( + 1 ) + + 98
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-759
SELECT ALL + 21 + + 82 - CAST( - 61 AS SIGNED ) - - - 2
----
162

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL + 21 + + 82 - CAST ( - 61 AS INTEGER ) - - - 2
----
162

query I rowsort
SELECT ALL - 30 * - CASE + 44 WHEN + - ( + - 25 ) + - 29 THEN NULL ELSE 45 END
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT - 4 + 44 DIV - + 7
----
-10

skipif mysql # not compatible
query I rowsort label-761
SELECT - 4 + 44 / - + 7
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT DISTINCT - CASE - 51 WHEN + COUNT( 77 ) THEN NULL WHEN - ( - 49 ) THEN - 80 * ( + 51 ) + - 19 ELSE + 31 END * 75 * COUNT( * ) * + NULLIF ( - COALESCE ( + + ( + - 28 ), + - 53 + - 76 + + 73 * + MIN( DISTINCT - + 0 ) ), 98 * + - COUNT( * ) ) * 50 * - 43
----
139965000

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - CASE - 51 WHEN + COUNT ( 77 ) THEN NULL WHEN - ( - 49 ) THEN - 80 * ( + 51 ) + - 19 ELSE + 31 END * 75 * COUNT ( * ) * + NULLIF ( - COALESCE ( + + ( + - 28 ), + - 53 + - 76 + + 73 * + MIN ( DISTINCT - + 0 ) ), 98 * + - COUNT ( * ) ) * 50 * - 43
----
139965000

query I rowsort
SELECT + - 84 * 80 + - - 51 + - - 41 + + 58 AS col2
----
-6570

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + COALESCE ( + COUNT( * ), COUNT( * ) + 70 + + 90 ) * + 77
----
77

skipif mysql # not compatible
query I rowsort label-764
SELECT + COALESCE ( + COUNT ( * ), COUNT ( * ) + 70 + + 90 ) * + 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT ALL - - COALESCE ( + 18, 37 * + 12 + - 25 - - + COUNT( * ) - - 19 ) * 51 AS col0
----
918

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL - - COALESCE ( + 18, 37 * + 12 + - 25 - - + COUNT ( * ) - - 19 ) * 51 AS col0
----
918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-766
SELECT COALESCE ( COUNT( * ), 20 * + - COUNT( * ) * COUNT( * ) DIV + 36 + + 75 )
----
1

skipif mysql # not compatible
query I rowsort label-766
SELECT COALESCE ( COUNT ( * ), 20 * + - COUNT ( * ) * COUNT ( * ) / + 36 + + 75 )
----
1

query II rowsort
SELECT - 70 * 61 + - ( + + COALESCE ( - 34, + 53, - + 75 ) ) * - ( - + ( 36 ) ), 22 AS col0
----
-3046
22

query I rowsort
SELECT DISTINCT 50 * - 1 + 63
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL - MIN( + 52 ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL - MIN ( + 52 ) col2
----
-52

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

query I rowsort
SELECT ALL - 38 * + - 21
----
798

query I rowsort
SELECT 89 * 26 AS col0
----
2314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-773
SELECT ALL - + 8 DIV 70 * + 3 + COUNT( * ) + - - 97 + CAST( + 9 AS SIGNED ) * - 78 AS col2
----
-604

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL - + 8 / 70 * + 3 + COUNT ( * ) + - - 97 + CAST ( + 9 AS INTEGER ) * - 78 AS col2
----
-604

query I rowsort
SELECT - 86 * + 6
----
-516

query I rowsort
SELECT - ( + + CASE - 74 WHEN - 92 + - - 11 THEN + 77 * 5 + + 0 - + 31 / - 91 * - 15 END ) - 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT + COUNT( 13 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-776
SELECT + COUNT ( 13 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT MAX( - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-778
SELECT MAX ( - 73 )
----
-73

query I rowsort
SELECT ALL 85 * + + 60 col1
----
5100

query I rowsort
SELECT + 97 * 21 * + - 85 AS col0
----
-173145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-781
SELECT 75 AS col2, 18 + + COALESCE ( + 38, + ( + + 17 ), + + 10 + + + 69 ) + - 42 + - - CAST( - 56 AS SIGNED ) + + 19 * - - CAST( + 59 AS SIGNED ) * - 12 AS col0
----
75
-13494

skipif mysql # not compatible
query II rowsort label-781
SELECT 75 AS col2, 18 + + COALESCE ( + 38, + ( + + 17 ), + + 10 + + + 69 ) + - 42 + - - CAST ( - 56 AS INTEGER ) + + 19 * - - CAST ( + 59 AS INTEGER ) * - 12 AS col0
----
75
-13494

onlyif mysql # aggregate syntax: 
query II rowsort label-782
SELECT - NULLIF ( + + 55, + COUNT( * ) + + - ( - 36 ) + - - ( 74 ) ), 31 * - - 4 * + - 76 + - 97 AS col2
----
-55
-9521

skipif mysql # not compatible
query II rowsort label-782
SELECT - NULLIF ( + + 55, + COUNT ( * ) + + - ( - 36 ) + - - ( 74 ) ), 31 * - - 4 * + - 76 + - 97 AS col2
----
-55
-9521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-783
SELECT + 67 * + + CAST( NULL AS SIGNED ) * - - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-783
SELECT + 67 * + + CAST ( NULL AS INTEGER ) * - - 52 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-784
SELECT DISTINCT 73 + - CAST( + + 65 AS SIGNED ) * + 54
----
-3437

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT 73 + - CAST ( + + 65 AS INTEGER ) * + 54
----
-3437

onlyif mysql # DIV for integer division: 
query II rowsort label-785
SELECT ALL 46 AS col1, + 85 DIV - ( - + 79 )
----
46
1

skipif mysql # not compatible
query II rowsort label-785
SELECT ALL 46 AS col1, + 85 / - ( - + 79 )
----
46
1

query II rowsort
SELECT DISTINCT CASE - 13 WHEN + 8 + + 83 THEN NULL ELSE - + 19 END + 48, - 4 + 22 AS col0
----
29
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-787
SELECT + 90 + 80 + - 68 + + + 53 + COUNT( * ) + + COUNT( * ) DIV COUNT( * ) * + 68
----
224

skipif mysql # not compatible
query I rowsort label-787
SELECT + 90 + 80 + - 68 + + + 53 + COUNT ( * ) + + COUNT ( * ) / COUNT ( * ) * + 68
----
224

query I rowsort
SELECT ALL 13 + + + 24 AS col0
----
37

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT - 6 - 20 DIV - - 66
----
-6

skipif mysql # not compatible
query I rowsort label-791
SELECT - 6 - 20 / - - 66
----
-6

query I rowsort
SELECT ALL + - ( 92 ) + - 69 AS col2
----
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-793
SELECT 45 col0, COUNT( ALL + 10 ) + + + 6
----
45
7

skipif mysql # not compatible
query II rowsort label-793
SELECT 45 col0, COUNT ( ALL + 10 ) + + + 6
----
45
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT + - 86 * - COUNT( * ) * - - 1 * - + ( - 23 ) AS col0
----
1978

skipif mysql # not compatible
query I rowsort label-795
SELECT + - 86 * - COUNT ( * ) * - - 1 * - + ( - 23 ) AS col0
----
1978

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT + COUNT( * ) + - 75 * - ( + SUM( ALL + + 47 ) ) AS col2
----
3526

skipif mysql # not compatible
query I rowsort label-796
SELECT + COUNT ( * ) + - 75 * - ( + SUM ( ALL + + 47 ) ) AS col2
----
3526

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT + - COUNT( * ) * + - 44 * + + 27 - - 58
----
1246

skipif mysql # not compatible
query I rowsort label-797
SELECT + - COUNT ( * ) * + - 44 * + + 27 - - 58
----
1246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-798
SELECT ALL - CASE + + 82 WHEN - + 39 THEN NULL WHEN + - COUNT( * ) * + 15 + COUNT( - 63 ) * - - 15 - CAST( + - 49 AS SIGNED ) THEN - 80 * + + 35 + - 19 END * + 34 * - - 7 * + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL - CASE + + 82 WHEN - + 39 THEN NULL WHEN + - COUNT ( * ) * + 15 + COUNT ( - 63 ) * - - 15 - CAST ( + - 49 AS INTEGER ) THEN - 80 * + + 35 + - 19 END * + 34 * - - 7 * + 7 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-799
SELECT - 10 * - + CAST( - COUNT( * ) AS SIGNED ) + 92 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-799
SELECT - 10 * - + CAST ( - COUNT ( * ) AS INTEGER ) + 92 AS col2
----
82

query II rowsort
SELECT ALL + 24, 47 AS col2
----
24
47

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT - MAX( - 23 ) * 20
----
460

skipif mysql # not compatible
query I rowsort label-801
SELECT - MAX ( - 23 ) * 20
----
460

query I rowsort
SELECT ALL + - 14 * + 13 * + 38 - 34 + 48 AS col2
----
-6902

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT DISTINCT + ( + + CASE - 93 WHEN - 37 THEN MIN( ALL - 79 ) WHEN - COUNT( * ) + 68 THEN NULL WHEN + 40 + 4 + - 54 - 57 * - COUNT( - 5 ) * + 90 THEN - 1 ELSE 63 * ( - 13 ) / 61 * - - 94 * + 40 * - CASE - - 82 WHEN + 33 THEN NULL WHEN + COUNT( * ) THEN 72 ELSE NULL END * - COALESCE ( 57 + COALESCE ( - 78 - - 69, + 81 - 12, 88 + - 60 ), ( 97 ) ) END ) * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-803
SELECT DISTINCT + ( + + CASE - 93 WHEN - 37 THEN MIN ( ALL - 79 ) WHEN - COUNT ( * ) + 68 THEN NULL WHEN + 40 + 4 + - 54 - 57 * - COUNT ( - 5 ) * + 90 THEN - 1 ELSE 63 * ( - 13 ) / 61 * - - 94 * + 40 * - CASE - - 82 WHEN + 33 THEN NULL WHEN + COUNT ( * ) THEN 72 ELSE NULL END * - COALESCE ( 57 + COALESCE ( - 78 - - 69, + 81 - 12, 88 + - 60 ), ( 97 ) ) END ) * - 44
----
NULL

query I rowsort
SELECT - 93 * - - 67 + 68 + - + 78 col2
----
-6241

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT 37 * - COUNT( * ) + - - 42 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-805
SELECT 37 * - COUNT ( * ) + - - 42 AS col1
----
5

query I rowsort
SELECT NULLIF ( + 63, 22 + - 40 ) col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT 29 * COUNT( * ) + - 7 * - + COUNT( 98 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-807
SELECT 29 * COUNT ( * ) + - 7 * - + COUNT ( 98 ) AS col1
----
36

query II rowsort
SELECT - 85 * + NULLIF ( - + 67, + 21 ) * - 20, - 41 AS col2
----
-113900
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT - ( - + MIN( - 56 ) ) * - COUNT( - 32 ) * + 68 AS col2
----
3808

skipif mysql # not compatible
query I rowsort label-809
SELECT - ( - + MIN ( - 56 ) ) * - COUNT ( - 32 ) * + 68 AS col2
----
3808

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT DISTINCT + 57 * COUNT( * ) * + + 70 * 95 + - + COUNT( * ) AS col1
----
379049

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT + 57 * COUNT ( * ) * + + 70 * 95 + - + COUNT ( * ) AS col1
----
379049

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-811
SELECT ALL 55 * - MIN( 15 ) + - 12 DIV 75 * + + 43
----
-825

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL 55 * - MIN ( 15 ) + - 12 / 75 * + + 43
----
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT DISTINCT - SUM( DISTINCT - 94 ) * + 90 + 16 + - 61 + 98 AS col2
----
8513

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT - SUM ( DISTINCT - 94 ) * + 90 + 16 + - 61 + 98 AS col2
----
8513

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-813
SELECT DISTINCT - 79 * - - 90 + + + CASE + 45 WHEN - - 14 THEN NULL ELSE + + 89 + + 89 + + NULLIF ( + 7, 93 ) - + 1 DIV CAST( 45 AS SIGNED ) END + - - 20 * + - 30 AS col1
----
-7525

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT - 79 * - - 90 + + + CASE + 45 WHEN - - 14 THEN NULL ELSE + + 89 + + 89 + + NULLIF ( + 7, 93 ) - + 1 / CAST ( 45 AS INTEGER ) END + - - 20 * + - 30 AS col1
----
-7525

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT - CASE + 53 WHEN + COUNT( * ) + - COUNT( * ) THEN - 73 + 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT - CASE + 53 WHEN + COUNT ( * ) + - COUNT ( * ) THEN - 73 + 32 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT - 54 * + 39
----
-2106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-818
SELECT - CAST( - AVG ( + - 94 ) AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-818
SELECT - CAST ( - AVG ( + - 94 ) AS INTEGER ) AS col2
----
-94

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-820
SELECT DISTINCT CAST( + 68 AS SIGNED ) * + - 21 AS col0
----
-1428

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT CAST ( + 68 AS INTEGER ) * + - 21 AS col0
----
-1428

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-822
SELECT 72 DIV - 27 AS col2, + 40 * + 79 * ( + CASE - - 45 WHEN COUNT( * ) THEN NULL WHEN 84 + + 33 THEN NULL WHEN - COUNT( * ) THEN 95 WHEN + - 23 * 63 * COUNT( * ) + + 49 * + NULLIF ( - COUNT( ALL NULLIF ( 47, + + 30 * - - 4 * 13 ) ), + COUNT( * ) ) * + 23 * 51 THEN 98 END ) AS col2
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-822
SELECT 72 / - 27 AS col2, + 40 * + 79 * ( + CASE - - 45 WHEN COUNT ( * ) THEN NULL WHEN 84 + + 33 THEN NULL WHEN - COUNT ( * ) THEN 95 WHEN + - 23 * 63 * COUNT ( * ) + + 49 * + NULLIF ( - COUNT ( ALL NULLIF ( 47, + + 30 * - - 4 * 13 ) ), + COUNT ( * ) ) * + 23 * 51 THEN 98 END ) AS col2
----
-2
NULL

query I rowsort
SELECT ALL 76 * + 80 * 93 * - COALESCE ( + 60, - + 97 ) + + + 82
----
-33926318

query I rowsort
SELECT ( - 85 ) * - - 48 + 34 AS col2
----
-4046

query I rowsort
SELECT + 49 * 33 + - + CASE - 31 WHEN + 78 THEN - 0 ELSE NULL END + 88 / 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-826
SELECT ALL - NULLIF ( 54, CAST( NULL AS SIGNED ) ) AS col0, 84 * NULLIF ( - 8, - MAX( ALL - + 36 ) ) - + 25
----
-54
-697

skipif mysql # not compatible
query II rowsort label-826
SELECT ALL - NULLIF ( 54, CAST ( NULL AS INTEGER ) ) AS col0, 84 * NULLIF ( - 8, - MAX ( ALL - + 36 ) ) - + 25
----
-54
-697

query I rowsort
SELECT DISTINCT - 92 * 7 + + ( 14 ) AS col0
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT + - COUNT( DISTINCT + 90 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-828
SELECT + - COUNT ( DISTINCT + 90 ) col1
----
-1

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT 99 DIV + 82 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-832
SELECT 99 / + 82 AS col2
----
1

query I rowsort
SELECT 35 * - 71
----
-2485

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT ALL + 33 + - + 71 + - - COUNT( * ) + - 9 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL + 33 + - + 71 + - - COUNT ( * ) + - 9 AS col1
----
-46

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-837
SELECT ALL + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * - COUNT( * ) col1, - 6 + - + 19 col0
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-837
SELECT ALL + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1, - 6 + - + 19 col0
----
NULL
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-838
SELECT 25 DIV + - COUNT( ALL 76 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-838
SELECT 25 / + - COUNT ( ALL 76 ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-839
SELECT ALL + ( + + 90 ) + + CAST( - + 15 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL + ( + + 90 ) + + CAST ( - + 15 AS INTEGER )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-840
SELECT DISTINCT + 89 + + 78 - + 43 - + 60 * - + ( + COUNT( * ) ) + - - 52 DIV 77 AS col0, - 88
----
184
-88

skipif mysql # not compatible
query II rowsort label-840
SELECT DISTINCT + 89 + + 78 - + 43 - + 60 * - + ( + COUNT ( * ) ) + - - 52 / 77 AS col0, - 88
----
184
-88

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

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

query I rowsort
SELECT 14 + 62 * + 31 AS col0
----
1936

query II rowsort
SELECT - 1, + 63 AS col2
----
-1
63

query I rowsort
SELECT - 56 * 4 + - ( + - 97 ) + ( - - 13 ) AS col0
----
-114

query I rowsort
SELECT 59 * - 22 AS col0
----
-1298

query II rowsort
SELECT - 55, 36 * 57 AS col2
----
-55
2052

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT ALL - 71 - - + 99 DIV + 50 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL - 71 - - + 99 / + 50 AS col1
----
-70

query I rowsort
SELECT DISTINCT + 17 * - - 19
----
323

query II rowsort
SELECT DISTINCT - 85, + 1 AS col1
----
-85
1

query I rowsort
SELECT DISTINCT - 39 - + 12 - 98
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT ALL SUM( 52 ) * + 43 AS col1
----
2236

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL SUM ( 52 ) * + 43 AS col1
----
2236

query I rowsort
SELECT DISTINCT + - 89 * 25
----
-2225

query I rowsort
SELECT ALL - 6 - - + 96 + - + 2 * + 72
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT - COUNT( * ) * - 26 * 55
----
1430

skipif mysql # not compatible
query I rowsort label-854
SELECT - COUNT ( * ) * - 26 * 55
----
1430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT CASE 11 WHEN - - 57 THEN - CAST( NULL AS SIGNED ) WHEN + 95 - + 45 THEN + CAST( COUNT( * ) AS SIGNED ) END * + - SUM( + + 16 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-855
SELECT CASE 11 WHEN - - 57 THEN - CAST ( NULL AS INTEGER ) WHEN + 95 - + 45 THEN + CAST ( COUNT ( * ) AS INTEGER ) END * + - SUM ( + + 16 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL + - 14 * - MIN( + 8 )
----
112

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL + - 14 * - MIN ( + 8 )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT CASE + 27 WHEN + - COALESCE ( + + 43, + 63, 17 ) * + COUNT( * ) * + - 50 THEN - 3 - + - 56 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT CASE + 27 WHEN + - COALESCE ( + + 43, + 63, 17 ) * + COUNT ( * ) * + - 50 THEN - 3 - + - 56 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 97 + - NULLIF ( + - COALESCE ( + 96, + 72 * - 86 ), 87 ) AS col0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT - NULLIF ( COUNT( * ), 91 / - 27 + - - 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-859
SELECT - NULLIF ( COUNT ( * ), 91 / - 27 + - - 35 ) AS col1
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT CASE - SUM( + 15 ) WHEN - 35 THEN + ( + COUNT( * ) ) WHEN + COUNT( * ) * - 46 THEN NULL END + - 74 - + - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT CASE - SUM ( + 15 ) WHEN - 35 THEN + ( + COUNT ( * ) ) WHEN + COUNT ( * ) * - 46 THEN NULL END + - 74 - + - 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT 74 * + MAX( ALL + 91 ) AS col0, 18 * COUNT( * ) - 46 * + - COUNT( ALL + - 41 )
----
6734
64

skipif mysql # not compatible
query II rowsort label-862
SELECT 74 * + MAX ( ALL + 91 ) AS col0, 18 * COUNT ( * ) - 46 * + - COUNT ( ALL + - 41 )
----
6734
64

query II rowsort
SELECT 18 * 44 * 53, 96 AS col1
----
41976
96

query I rowsort
SELECT 5 - CASE + ( ( 29 ) ) WHEN 39 THEN + 99 + 12 ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT 66 + - - 75 + - 80
----
61

query I rowsort
SELECT 97 * + 86
----
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT ALL + 88 + SUM( - - 64 ) col1
----
152

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL + 88 + SUM ( - - 64 ) col1
----
152

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

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

query I rowsort
SELECT ALL - 7 + + 30
----
23

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

skipif mysql # not compatible
query I rowsort label-871
SELECT - 30 / + + ( COUNT ( * ) ) - + COUNT ( * )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-872
SELECT SUM( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-872
SELECT SUM ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT + 85 * 32 + 38 + - 81 * + - 32 AS col0
----
5350

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT SUM( 26 )
----
26

skipif mysql # not compatible
query I rowsort label-874
SELECT SUM ( 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT SUM( DISTINCT 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-875
SELECT SUM ( DISTINCT 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT 65 * - 23 * - COUNT( * ) + 38 - - 32 AS col2
----
1565

skipif mysql # not compatible
query I rowsort label-876
SELECT 65 * - 23 * - COUNT ( * ) + 38 - - 32 AS col2
----
1565

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT SUM( - 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-877
SELECT SUM ( - 35 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-878
SELECT ALL COUNT( * ) * - - 33, + 59 AS col0
----
33
59

skipif mysql # not compatible
query II rowsort label-878
SELECT ALL COUNT ( * ) * - - 33, + 59 AS col0
----
33
59

query I rowsort
SELECT DISTINCT 62 + 67 + COALESCE ( - 44, + 65 * - - 87 ) AS col0
----
85

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-881
SELECT 25 + - + MAX( DISTINCT - - 37 ) * 74 AS col0, + 43 AS col2
----
-2713
43

skipif mysql # not compatible
query II rowsort label-881
SELECT 25 + - + MAX ( DISTINCT - - 37 ) * 74 AS col0, + 43 AS col2
----
-2713
43

query I rowsort
SELECT - NULLIF ( + 39, - + 67 ) * 72 + - CASE + 44 WHEN + + 0 THEN - 66 + - 56 WHEN - 37 THEN + 38 END AS col2
----
NULL

query I rowsort
SELECT 40 * + 42 AS col0
----
1680

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT COUNT( * ) * - 39 + + - 83 col2
----
-122

skipif mysql # not compatible
query I rowsort label-885
SELECT COUNT ( * ) * - 39 + + - 83 col2
----
-122

query I rowsort
SELECT 60 + + - 21 + - - 76
----
115

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-888
SELECT ALL 7 * 85 DIV 36
----
16

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL 7 * 85 / 36
----
16

query I rowsort
SELECT 56 * ( 51 ) AS col2
----
2856

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-891
SELECT + CASE + 83 WHEN + NULLIF ( 98, 3 ) THEN NULL WHEN - 75 THEN CAST( - 89 AS DECIMAL ) WHEN AVG ( ALL + 61 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-891
SELECT + CASE + 83 WHEN + NULLIF ( 98, 3 ) THEN NULL WHEN - 75 THEN CAST ( - 89 AS REAL ) WHEN AVG ( ALL + 61 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT + - 55 - - + 51 DIV + 94
----
-55

skipif mysql # not compatible
query I rowsort label-892
SELECT + - 55 - - + 51 / + 94
----
-55

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

skipif mysql # not compatible
query I rowsort label-893
SELECT - - COUNT ( * ) / - + 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT ALL + NULLIF ( - COUNT( * ), 26 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + NULLIF ( - COUNT ( * ), 26 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT + COUNT( * ) + - 54 + + COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-895
SELECT + COUNT ( * ) + - 54 + + COUNT ( * ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL - + CASE + COUNT( * ) WHEN + 93 / - + 94 THEN NULL WHEN 87 - - + 57 THEN - 12 END / + ( COUNT( * ) ) + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL - + CASE + COUNT ( * ) WHEN + 93 / - + 94 THEN NULL WHEN 87 - - + 57 THEN - 12 END / + ( COUNT ( * ) ) + 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-897
SELECT + ( + 36 ) DIV - + 51 * + 54 * + CAST( + + 27 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-897
SELECT + ( + 36 ) / - + 51 * + 54 * + CAST ( + + 27 AS INTEGER )
----
0

query II rowsort
SELECT - - 97 + + 38, - 23 AS col0
----
135
-23

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

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

query I rowsort
SELECT DISTINCT - 11 + - + 77 * + + 94 AS col1
----
-7249

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

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

query II rowsort
SELECT ALL + 67 + + 14, - 52 AS col1
----
81
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-903
SELECT DISTINCT - 9 + + COUNT( DISTINCT - 15 ) * - + 31, - 49 AS col1
----
-40
-49

skipif mysql # not compatible
query II rowsort label-903
SELECT DISTINCT - 9 + + COUNT ( DISTINCT - 15 ) * - + 31, - 49 AS col1
----
-40
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-904
SELECT - ( - 4 ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-904
SELECT - ( - 4 ) / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT - 2 * + COUNT( * ) + 68 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-905
SELECT - 2 * + COUNT ( * ) + 68 AS col0
----
66

query I rowsort
SELECT ALL + + COALESCE ( + - 11, - + 39 ) * NULLIF ( + 36, 50 ) + + - 96 AS col1
----
-492

onlyif mysql # aggregate syntax: 
query II rowsort label-907
SELECT + COUNT( * ), 78 + + COUNT( * ) - - 5 * 62 AS col0
----
1
389

skipif mysql # not compatible
query II rowsort label-907
SELECT + COUNT ( * ), 78 + + COUNT ( * ) - - 5 * 62 AS col0
----
1
389

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT ALL 9 DIV 6 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL 9 / 6 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-909
SELECT + 15 * + CAST ( NULL AS INTEGER ) col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-911
SELECT ALL - MIN( CAST( NULL AS DECIMAL ) ) * + + 24 + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL - MIN ( CAST ( NULL AS REAL ) ) * + + 24 + + 77
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-912
SELECT CASE 10 WHEN + + COALESCE ( + 71, - 10 * - 29 / + CASE + CAST( NULL AS DECIMAL ) WHEN + COUNT( * ) THEN + 41 / - + 29 WHEN + + 31 * COUNT( * ) + + - ( - + 71 ) + + COUNT( * ) * + COUNT( * ) THEN NULL END ) * - 25 THEN 19 WHEN + 33 - ( + 29 ) THEN + SUM( ALL - 40 ) + - + ( - - 66 ) WHEN - ( - 5 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT CASE 10 WHEN + + COALESCE ( + 71, - 10 * - 29 / + CASE + CAST ( NULL AS REAL ) WHEN + COUNT ( * ) THEN + 41 / - + 29 WHEN + + 31 * COUNT ( * ) + + - ( - + 71 ) + + COUNT ( * ) * + COUNT ( * ) THEN NULL END ) * - 25 THEN 19 WHEN + 33 - ( + 29 ) THEN + SUM ( ALL - 40 ) + - + ( - - 66 ) WHEN - ( - 5 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-913
SELECT ALL 73 DIV 84 * + 88 * - 90 * + NULLIF ( - 91, + CAST( + COUNT( * ) AS SIGNED ) ), COUNT( * ) * - 77 col1
----
0
-77

skipif mysql # not compatible
query II rowsort label-913
SELECT ALL 73 / 84 * + 88 * - 90 * + NULLIF ( - 91, + CAST ( + COUNT ( * ) AS INTEGER ) ), COUNT ( * ) * - 77 col1
----
0
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT - 79 - - 34 DIV + 81 - + 87
----
-166

skipif mysql # not compatible
query I rowsort label-914
SELECT - 79 - - 34 / + 81 - + 87
----
-166

query I rowsort
SELECT + 85 * - ( 44 )
----
-3740

query II rowsort
SELECT ALL - 48 * - 3 - + 59, + 55 * ( + 12 ) col0
----
85
660

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-917
SELECT + 49 DIV - SUM( + 1 ) AS col0, 59
----
-49
59

skipif mysql # not compatible
query II rowsort label-917
SELECT + 49 / - SUM ( + 1 ) AS col0, 59
----
-49
59

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

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

query I rowsort
SELECT DISTINCT 48 * + 54 col2
----
2592

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

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

query II rowsort
SELECT DISTINCT + 88 AS col2, ( + 47 ) * + 28 + - + 18
----
88
1298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-922
SELECT + ( COALESCE ( + + 77, COUNT( * ) DIV + - 78 + - 50 ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-922
SELECT + ( COALESCE ( + + 77, COUNT ( * ) / + - 78 + - 50 ) ) AS col1
----
77

query I rowsort
SELECT + 95 * - 94
----
-8930

query I rowsort
SELECT + + ( - - NULLIF ( + + 48, + + 67 + + 34 + 6 ) ) + + 34
----
82

query I rowsort
SELECT + CASE + 36 WHEN 29 THEN 1 ELSE NULL END * + + 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT - + 87 + - COUNT( * ) - 35 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-926
SELECT - + 87 + - COUNT ( * ) - 35 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT - MIN( ALL 20 ) * - 66 + COUNT( * ) + + 45 * + 27
----
2536

skipif mysql # not compatible
query I rowsort label-927
SELECT - MIN ( ALL 20 ) * - 66 + COUNT ( * ) + + 45 * + 27
----
2536

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

query I rowsort
SELECT ALL - - 46 + + + 41 AS col2
----
87

query I rowsort
SELECT DISTINCT 4 + + - 29 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT - + 93 + 15 + - - 82 * - MAX( DISTINCT + 54 )
----
-4506

skipif mysql # not compatible
query I rowsort label-931
SELECT - + 93 + 15 + - - 82 * - MAX ( DISTINCT + 54 )
----
-4506

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-932
SELECT ALL - CAST( NULL AS DECIMAL ) col2, - NULLIF ( + + ( MIN( DISTINCT 15 ) ), - MAX( + - 24 ) * MIN( 85 ) / + + 91 + - - ( + 33 ) + - + 65 + 2 * - 45 ) + - 87 col2
----
NULL
-102

skipif mysql # not compatible
query II rowsort label-932
SELECT ALL - CAST ( NULL AS REAL ) col2, - NULLIF ( + + ( MIN ( DISTINCT 15 ) ), - MAX ( + - 24 ) * MIN ( 85 ) / + + 91 + - - ( + 33 ) + - + 65 + 2 * - 45 ) + - 87 col2
----
NULL
-102

query I rowsort
SELECT ALL 32 + 42 * - 12 AS col2
----
-472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-934
SELECT + COALESCE ( - 18, + + 47 DIV + 65, - + 58 DIV 60 * - 16 + + + CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-934
SELECT + COALESCE ( - 18, + + 47 / + 65, - + 58 / 60 * - 16 + + + CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
-18

query I rowsort
SELECT + 15 * + - 26 AS col0
----
-390

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT - - 11 DIV + + 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-937
SELECT - - 11 / + + 40 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT - 2 + 4 + - COUNT( * ) + + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-938
SELECT - 2 + 4 + - COUNT ( * ) + + - 41
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-939
SELECT DISTINCT + + ( + 95 ) / CASE - CAST( NULL AS SIGNED ) WHEN - 40 THEN COUNT( * ) WHEN 18 * + CAST( NULL AS SIGNED ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT + + ( + 95 ) / CASE - CAST ( NULL AS INTEGER ) WHEN - 40 THEN COUNT ( * ) WHEN 18 * + CAST ( NULL AS INTEGER ) THEN NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT ( - - 46 ) AS col0
----
46

query I rowsort
SELECT ALL + 2 - 12 AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT ALL - 31 DIV - 21 - - - 82 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL - 31 / - 21 - - - 82 AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-943
SELECT DISTINCT - 29 * + ( + COALESCE ( + 72, 6, + MIN( - 68 ) * CAST( 47 AS SIGNED ), - - ( 66 ) ) ) AS col2, + 79
----
-2088
79

skipif mysql # not compatible
query II rowsort label-943
SELECT DISTINCT - 29 * + ( + COALESCE ( + 72, 6, + MIN ( - 68 ) * CAST ( 47 AS INTEGER ), - - ( 66 ) ) ) AS col2, + 79
----
-2088
79

query I rowsort
SELECT - 44 * 22
----
-968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-945
SELECT COUNT( * ) / - 20 - - - 16 + + - ( - 60 ) - + 0 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT COUNT ( * ) / - 20 - - - 16 + + - ( - 60 ) - + 0 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 32 ) * 52
----
-1664

query I rowsort
SELECT - 38 * + NULLIF ( - + 96, - ( - + 10 ) + - + 73 ) + + 17 AS col0
----
3665

query I rowsort
SELECT - 8 * - 60 AS col2
----
480

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-951
SELECT - COALESCE ( 97, + CASE + + 45 WHEN + + 46 * - ( + 98 ) * - - 19 - + 0 THEN NULL ELSE + + 35 END DIV - 7 ) + + 68 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-951
SELECT - COALESCE ( 97, + CASE + + 45 WHEN + + 46 * - ( + 98 ) * - - 19 - + 0 THEN NULL ELSE + + 35 END / - 7 ) + + 68 AS col1
----
-29

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT ALL 89 * + COUNT( * ) col0
----
89

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL 89 * + COUNT ( * ) col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-955
SELECT COUNT( - 50 ) DIV + 84 * 13
----
0

skipif mysql # not compatible
query I rowsort label-955
SELECT COUNT ( - 50 ) / + 84 * 13
----
0

query I rowsort
SELECT ALL - 27 * - 40 col2
----
1080

query II rowsort
SELECT DISTINCT - 52, 35 + 80 AS col0
----
-52
115

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT DISTINCT + 36 + - COUNT( * ) * + 34
----
2

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT + 36 + - COUNT ( * ) * + 34
----
2

query I rowsort
SELECT ALL + CASE - - 21 WHEN - - 21 + + 8 THEN - 66 * - - ( + COALESCE ( + 22, 53 ) ) + - - 41 WHEN + - ( 65 ) THEN 63 END * ( - + 3 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT ALL + 3 + - SUM( ALL 37 ) + + 77 + 56 + + 27 + 70 + + 30 - 30 AS col0
----
196

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL + 3 + - SUM ( ALL 37 ) + + 77 + 56 + + 27 + 70 + + 30 - 30 AS col0
----
196

query II rowsort
SELECT DISTINCT - 31 AS col2, 63 - + + 4
----
-31
59

query II rowsort
SELECT DISTINCT 63, 43 AS col2
----
63
43

query I rowsort
SELECT ALL 20 + - 68
----
-48

query II rowsort
SELECT - + 95 AS col2, + 74 + + 43
----
-95
117

query I rowsort
SELECT DISTINCT + 9 + + ( + + 13 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL CASE - NULLIF ( + MAX( DISTINCT + - ( 92 ) ), - 9 * - NULLIF ( + COUNT( * ), - ( - - 30 ) ) + + 87 ) WHEN - 48 - + 25 - + + 8 THEN - 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL CASE - NULLIF ( + MAX ( DISTINCT + - ( 92 ) ), - 9 * - NULLIF ( + COUNT ( * ), - ( - - 30 ) ) + + 87 ) WHEN - 48 - + 25 - + + 8 THEN - 6 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-967
SELECT CAST( 3 AS SIGNED ) + + ( - - COUNT( 47 ) )
----
4

skipif mysql # not compatible
query I rowsort label-967
SELECT CAST ( 3 AS INTEGER ) + + ( - - COUNT ( 47 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT - 87 * + + 38 + + COUNT( * )
----
-3305

skipif mysql # not compatible
query I rowsort label-968
SELECT - 87 * + + 38 + + COUNT ( * )
----
-3305

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

query I rowsort
SELECT - 35 + - - 47 + - 2 AS col2
----
10

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

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT COUNT ( * ) - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT + 53 - - 17 + - 32 DIV - - 99 * - 57 DIV 10 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-972
SELECT + 53 - - 17 + - 32 / - - 99 * - 57 / 10 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT ALL AVG ( ALL + + 26 ) * - CASE + - 3 WHEN + + 85 * + 71 - + - 37 - + 7 * - - 80 THEN + - COUNT( * ) * 79 WHEN + 28 THEN - ( 57 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL AVG ( ALL + + 26 ) * - CASE + - 3 WHEN + + 85 * + 71 - + - 37 - + 7 * - - 80 THEN + - COUNT ( * ) * 79 WHEN + 28 THEN - ( 57 ) ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT 41 + + - 74 * + 55 AS col2
----
-4029

query I rowsort
SELECT 50 + + - 74 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT ALL + ( SUM( + + 60 ) ) - 74 * 92
----
-6748

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL + ( SUM ( + + 60 ) ) - 74 * 92
----
-6748

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT 44 DIV - 69 * - 78 + + ( - + 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-978
SELECT 44 / - 69 * - 78 + + ( - + 76 ) AS col1
----
-76

query I rowsort
SELECT 34 * - 50 * + - 47 AS col0
----
79900

query I rowsort
SELECT ALL + 44 * - - 78 * - 54 AS col2
----
-185328

onlyif mysql # DIV for integer division: 
query I rowsort label-981
SELECT ALL ( ( + 81 ) ) DIV 38
----
2

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL ( ( + 81 ) ) / 38
----
2

query I rowsort
SELECT ALL - 72 * 80 AS col0
----
-5760

query I rowsort
SELECT ALL - 54 * + 66
----
-3564

query II rowsort
SELECT 69 * - + 53 AS col2, 77 - 30
----
-3657
47

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT ALL - 81 + - 82 + + 96 * + COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL - 81 + - 82 + + 96 * + COUNT ( * ) AS col1
----
-67

query I rowsort
SELECT ALL - NULLIF ( - 76, 6 / + + 41 )
----
76

query I rowsort
SELECT + 41 * + - 49 * + 89 AS col2
----
-178801

query I rowsort
SELECT DISTINCT + - 55 + + 84 + - 0 * 54
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL - + 92 + + COUNT( * ) * - 40
----
-132

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL - + 92 + + COUNT ( * ) * - 40
----
-132

query I rowsort
SELECT 95 - - 22 col0
----
117

query I rowsort
SELECT + 96 * 76 * + + 26 - 14 AS col1
----
189682

query II rowsort
SELECT DISTINCT + - 63 + - 14 AS col2, 3
----
-77
3

query I rowsort
SELECT DISTINCT 65 * - + 34
----
-2210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-994
SELECT ALL + 71 + - COUNT( * ) - 81 DIV + 95 * - - 89 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL + 71 + - COUNT ( * ) - 81 / + 95 * - - 89 AS col2
----
70

query I rowsort
SELECT + 74 + - 88
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT MIN( DISTINCT + 47 ) * 53
----
2491

skipif mysql # not compatible
query I rowsort label-996
SELECT MIN ( DISTINCT + 47 ) * 53
----
2491

query I rowsort
SELECT ALL + - 87 * - + 88 + 71 col2
----
7727

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

query I rowsort
SELECT + 57 - + 56 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT DISTINCT - 22 * MIN( + - 44 ) * + 57 AS col2
----
55176

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT - 22 * MIN ( + - 44 ) * + 57 AS col2
----
55176

query I rowsort
SELECT CASE + + 99 WHEN - 62 THEN 0 + + 68 ELSE NULL END - 36 + 9 + 32 / - 45 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 86 * + - 86 AS col0
----
7396

query I rowsort
SELECT ALL 21 - - 41 AS col1
----
62

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

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

query I rowsort
SELECT 15 + - - 76 AS col1
----
91

query II rowsort
SELECT ALL 70 AS col2, 3
----
70
3

query I rowsort
SELECT NULLIF ( - 39, - 6 * + + 99 ) * + 44 * + 40
----
-68640

query I rowsort
SELECT 40 - 83 + + 86 - - 38 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL ( + 71 ) * MIN( ALL + 40 ) AS col2
----
2840

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL ( + 71 ) * MIN ( ALL + 40 ) AS col2
----
2840

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1012
SELECT CASE + ( 21 ) WHEN - + 86 THEN NULL WHEN CAST( - 55 AS SIGNED ) THEN NULL ELSE + - COUNT( * ) * + 78 * - COUNT( * ) END col0
----
78

skipif mysql # not compatible
query I rowsort label-1012
SELECT CASE + ( 21 ) WHEN - + 86 THEN NULL WHEN CAST ( - 55 AS INTEGER ) THEN NULL ELSE + - COUNT ( * ) * + 78 * - COUNT ( * ) END col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ALL COUNT( DISTINCT 13 ) * - 82 + + ( + 3 )
----
-79

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL COUNT ( DISTINCT 13 ) * - 82 + + ( + 3 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1014
SELECT 86 * + CAST( NULL AS SIGNED ) + SUM( - 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT 86 * + CAST ( NULL AS INTEGER ) + SUM ( - 56 )
----
NULL

query I rowsort
SELECT - 24 + - - 85
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT + 36 * - CASE - 71 WHEN CAST( + 47 AS SIGNED ) THEN 26 * + 37 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1016
SELECT + 36 * - CASE - 71 WHEN CAST ( + 47 AS INTEGER ) THEN 26 * + 37 + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1017
SELECT ALL 52 * 84 + - NULLIF ( + 34, - 32 ) + + + 73 * - 0 + COUNT( * ) DIV + - 93 AS col2
----
4334

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL 52 * 84 + - NULLIF ( + 34, - 32 ) + + + 73 * - 0 + COUNT ( * ) / + - 93 AS col2
----
4334

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT + + 64 * + 66 * + NULLIF ( + 66, 96 * + 49 + - - COUNT( * ) + 68 ) + 21 AS col2
----
278805

skipif mysql # not compatible
query I rowsort label-1018
SELECT + + 64 * + 66 * + NULLIF ( + 66, 96 * + 49 + - - COUNT ( * ) + 68 ) + 21 AS col2
----
278805

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT ALL 53 DIV + - 96 + - + 91 * - ( - 94 ) * + - 93 - - - 40 + + 61 + - + 86
----
795457

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL 53 / + - 96 + - + 91 * - ( - 94 ) * + - 93 - - - 40 + + 61 + - + 86
----
795457

query I rowsort
SELECT DISTINCT 11 * 29 + - 38 + - 17 AS col2
----
264

query I rowsort
SELECT ALL + 86 * - - 86 AS col0
----
7396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1022
SELECT - 6 + + + 93 * 9 DIV - + MIN( DISTINCT 22 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1022
SELECT - 6 + + + 93 * 9 / - + MIN ( DISTINCT 22 ) AS col2
----
-44

query I rowsort
SELECT DISTINCT + 49 * + + 52 + - - 79 AS col0
----
2627

query I rowsort
SELECT 78 * - 0 + - 67
----
-67

query I rowsort
SELECT - + 20 * - 93
----
1860

onlyif mysql # DIV for integer division: 
query I rowsort label-1026
SELECT - - 63 * - 0 + - + 26 DIV - - 43 * + 95 DIV - 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1026
SELECT - - 63 * - 0 + - + 26 / - - 43 * + 95 / - 18 AS col2
----
0

query I rowsort
SELECT - 55 + - 74
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL + - MAX( DISTINCT + 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + - MAX ( DISTINCT + 92 )
----
-92

query I rowsort
SELECT ALL + - 38 col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1030
SELECT - COALESCE ( 7, + 96, 12 DIV + 21 + CASE - NULLIF ( - - MAX( DISTINCT - + 36 ), - 89 * - 93 ) WHEN - 66 THEN - - 98 END ) * + + CASE - - CASE 27 WHEN - 6 + - 94 THEN NULLIF ( + 10, + 57 ) * - + 94 + 39 * 40 * + NULLIF ( - 18, + 48 ) * + + 50 + 84 ELSE - 18 * COUNT( * ) + 4 + - - 65 + - 78 END WHEN 59 - - 0 THEN NULL WHEN - ( - 71 ) + - 47 THEN NULL ELSE 7 END * CASE 67 WHEN + CASE - 11 WHEN + COALESCE ( - 83, 56 ) DIV 60 + 66 * + 8 THEN - 74 * - CASE - 92 * + COUNT( * ) WHEN 71 * 94 THEN - 24 - 0 END END * 13 THEN NULL WHEN 78 THEN NULL ELSE 70 END
----
-3430

skipif mysql # not compatible
query I rowsort label-1030
SELECT - COALESCE ( 7, + 96, 12 / + 21 + CASE - NULLIF ( - - MAX ( DISTINCT - + 36 ), - 89 * - 93 ) WHEN - 66 THEN - - 98 END ) * + + CASE - - CASE 27 WHEN - 6 + - 94 THEN NULLIF ( + 10, + 57 ) * - + 94 + 39 * 40 * + NULLIF ( - 18, + 48 ) * + + 50 + 84 ELSE - 18 * COUNT ( * ) + 4 + - - 65 + - 78 END WHEN 59 - - 0 THEN NULL WHEN - ( - 71 ) + - 47 THEN NULL ELSE 7 END * CASE 67 WHEN + CASE - 11 WHEN + COALESCE ( - 83, 56 ) / 60 + 66 * + 8 THEN - 74 * - CASE - 92 * + COUNT ( * ) WHEN 71 * 94 THEN - 24 - 0 END END * 13 THEN NULL WHEN 78 THEN NULL ELSE 70 END
----
-3430

query II rowsort
SELECT ALL 4, - COALESCE ( + 40, + + 77 ) AS col2
----
4
-40

query I rowsort
SELECT - - 37 + - 98
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1033
SELECT ALL - CAST( 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL - CAST ( 61 AS INTEGER )
----
-61

query II rowsort
SELECT ALL + 94, - 97 AS col2
----
94
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT - - SUM( - 25 ) * 80
----
-2000

skipif mysql # not compatible
query I rowsort label-1035
SELECT - - SUM ( - 25 ) * 80
----
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT - SUM( ALL - + 13 ) + COUNT( * ) + - 64 + - 80
----
-130

skipif mysql # not compatible
query I rowsort label-1036
SELECT - SUM ( ALL - + 13 ) + COUNT ( * ) + - 64 + - 80
----
-130

query II rowsort
SELECT DISTINCT - 62 * - 26, 89 AS col1
----
1612
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT - COALESCE ( - - 34, + + ( - + 13 ) * - COUNT( * ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1038
SELECT - COALESCE ( - - 34, + + ( - + 13 ) * - COUNT ( * ) ) AS col2
----
-34

query II rowsort
SELECT - 32 * 69 AS col1, - 77 AS col2
----
-2208
-77

query I rowsort
SELECT ALL 44 * 47
----
2068

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1041
SELECT ALL ( + COUNT( * ) ) * 38 + + 93 AS col0, + 43 DIV 5 DIV SUM( ALL + - 82 ) * - COUNT( * ) AS col2
----
131
0

skipif mysql # not compatible
query II rowsort label-1041
SELECT ALL ( + COUNT ( * ) ) * 38 + + 93 AS col0, + 43 / 5 / SUM ( ALL + - 82 ) * - COUNT ( * ) AS col2
----
131
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT ALL - CAST( 53 AS SIGNED ) * 11 AS col0
----
-583

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - CAST ( 53 AS INTEGER ) * 11 AS col0
----
-583

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1044
SELECT ALL - 44 + + 8 DIV + 99 * + 95 * - 10 + ( COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - 44 + + 8 / + 99 * + 95 * - 10 + ( COUNT ( * ) )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT + CASE 37 WHEN - + 22 - 54 THEN + 78 DIV - 19 + - + 91 WHEN + 67 * - - NULLIF ( - 48, - - AVG ( + 19 ) ) DIV + COUNT( * ) + + - COALESCE ( + 10, + + CASE + - 72 WHEN - COUNT( * ) THEN NULL WHEN - - CASE - + 2 WHEN - COUNT( * ) * + + 64 THEN - - MAX( DISTINCT + ( + - 91 ) ) + - 67 WHEN + 78 THEN NULL ELSE NULL END * - - 35 * + AVG ( 76 ) * + - 95 * 35 THEN + 21 * 34 ELSE - NULLIF ( - 34, + 75 * 97 ) + 96 END, 81 * 25 ) THEN COUNT( * ) + - 37 ELSE 85 * - MAX( DISTINCT + 4 ) END * 13 AS col2
----
-4420

skipif mysql # not compatible
query I rowsort label-1045
SELECT + CASE 37 WHEN - + 22 - 54 THEN + 78 / - 19 + - + 91 WHEN + 67 * - - NULLIF ( - 48, - - AVG ( + 19 ) ) / + COUNT ( * ) + + - COALESCE ( + 10, + + CASE + - 72 WHEN - COUNT ( * ) THEN NULL WHEN - - CASE - + 2 WHEN - COUNT ( * ) * + + 64 THEN - - MAX ( DISTINCT + ( + - 91 ) ) + - 67 WHEN + 78 THEN NULL ELSE NULL END * - - 35 * + AVG ( 76 ) * + - 95 * 35 THEN + 21 * 34 ELSE - NULLIF ( - 34, + 75 * 97 ) + 96 END, 81 * 25 ) THEN COUNT ( * ) + - 37 ELSE 85 * - MAX ( DISTINCT + 4 ) END * 13 AS col2
----
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT + MIN( 5 ) + - + COUNT( + 84 ) + - 92 - + CASE - COUNT( * ) WHEN - + 66 THEN - 84 WHEN - MAX( + - 53 ) / + + 84 THEN NULL WHEN + MAX( DISTINCT + - 71 ) + - 46 / MAX( DISTINCT + ( 88 ) ) * + 22 - + + 50 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1046
SELECT + MIN ( 5 ) + - + COUNT ( + 84 ) + - 92 - + CASE - COUNT ( * ) WHEN - + 66 THEN - 84 WHEN - MAX ( + - 53 ) / + + 84 THEN NULL WHEN + MAX ( DISTINCT + - 71 ) + - 46 / MAX ( DISTINCT + ( 88 ) ) * + 22 - + + 50 THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1047
SELECT - ( 62 ) col1, ( - - 26 ) * - 65 - - COUNT( * )
----
-62
-1689

skipif mysql # not compatible
query II rowsort label-1047
SELECT - ( 62 ) col1, ( - - 26 ) * - 65 - - COUNT ( * )
----
-62
-1689

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1049
SELECT 18 DIV 20 + - 27 - + COUNT( * ) DIV - 25
----
-27

skipif mysql # not compatible
query I rowsort label-1049
SELECT 18 / 20 + - 27 - + COUNT ( * ) / - 25
----
-27

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1051
SELECT CAST( CASE - + ( + 15 ) WHEN + + 41 THEN NULL WHEN + 34 THEN NULL WHEN 27 THEN - 90 + + + ( - - 88 ) END AS SIGNED ) col1, 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-1051
SELECT CAST ( CASE - + ( + 15 ) WHEN + + 41 THEN NULL WHEN + 34 THEN NULL WHEN 27 THEN - 90 + + + ( - - 88 ) END AS INTEGER ) col1, 72
----
NULL
72

query I rowsort
SELECT + 12 * + + 45 * 52
----
28080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT DISTINCT 24 * CAST( - 96 AS SIGNED ) col1
----
-2304

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT 24 * CAST ( - 96 AS INTEGER ) col1
----
-2304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1054
SELECT ALL COUNT( * ) DIV - 42 * + 79 + + 91
----
91

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL COUNT ( * ) / - 42 * + 79 + + 91
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT DISTINCT COUNT( DISTINCT + 99 ) * NULLIF ( + + 2, 99 )
----
2

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT COUNT ( DISTINCT + 99 ) * NULLIF ( + + 2, 99 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1058
SELECT + - 74 * - + 81 + COUNT( * ) + + COUNT( * ) - + COUNT( * ) + - ( + CAST( - 85 AS SIGNED ) ) + - 53 - 71 + - 18 * - - COUNT( * ), + 44 AS col1
----
5938
44

skipif mysql # not compatible
query II rowsort label-1058
SELECT + - 74 * - + 81 + COUNT ( * ) + + COUNT ( * ) - + COUNT ( * ) + - ( + CAST ( - 85 AS INTEGER ) ) + - 53 - 71 + - 18 * - - COUNT ( * ), + 44 AS col1
----
5938
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1059
SELECT COALESCE ( + - 32, - MIN( ALL - 16 ) * - - 64 - + 75, + + 42 + - + 40 DIV + 39, - + 82 * + 68 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-1059
SELECT COALESCE ( + - 32, - MIN ( ALL - 16 ) * - - 64 - + 75, + + 42 + - + 40 / + 39, - + 82 * + 68 ) AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT - 26 DIV 13 * 50
----
-100

skipif mysql # not compatible
query I rowsort label-1060
SELECT - 26 / 13 * 50
----
-100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT DISTINCT + 22 DIV + - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT + 22 / + - 66 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1063
SELECT + - 83 - + 61, 38 + 95 + CASE - 69 WHEN + - 38 THEN COUNT( * ) - - + 75 + - 16 WHEN - 69 + + 40 / + COALESCE ( - 72, - 10 ) + + 86 THEN - ( COALESCE ( COUNT( * ), + 1 - - - 32, + 13, - + 23 ) ) + + + 2 END * AVG ( DISTINCT - 58 ) AS col1
----
-144
NULL

skipif mysql # not compatible
query II rowsort label-1063
SELECT + - 83 - + 61, 38 + 95 + CASE - 69 WHEN + - 38 THEN COUNT ( * ) - - + 75 + - 16 WHEN - 69 + + 40 / + COALESCE ( - 72, - 10 ) + + 86 THEN - ( COALESCE ( COUNT ( * ), + 1 - - - 32, + 13, - + 23 ) ) + + + 2 END * AVG ( DISTINCT - 58 ) AS col1
----
-144
NULL

query I rowsort
SELECT ALL + - 32 * + 57 * + + 12 - + 15
----
-21903

query I rowsort
SELECT 33 * + 94 + + 56 AS col0
----
3158

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

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

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

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

query I rowsort
SELECT + 72 + 32 col0
----
104

query I rowsort
SELECT ALL - 37 * + 90
----
-3330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1070
SELECT - + NULLIF ( - CAST( + 39 AS SIGNED ), + 32 ) * + CAST( + 80 AS SIGNED ) + + 10 + 85 + - + COUNT( * ) DIV + + ( 20 ) + + - CAST( + 48 AS SIGNED ) + - 10 * + 17 * + ( - 19 ) * + + 79
----
258337

skipif mysql # not compatible
query I rowsort label-1070
SELECT - + NULLIF ( - CAST ( + 39 AS INTEGER ), + 32 ) * + CAST ( + 80 AS INTEGER ) + + 10 + 85 + - + COUNT ( * ) / + + ( 20 ) + + - CAST ( + 48 AS INTEGER ) + - 10 * + 17 * + ( - 19 ) * + + 79
----
258337

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT - SUM( DISTINCT + + 6 ) - + 6 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1071
SELECT - SUM ( DISTINCT + + 6 ) - + 6 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT DISTINCT - 28 * - COUNT( * ) + - COUNT( * ) * - + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT - 28 * - COUNT ( * ) + - COUNT ( * ) * - + COUNT ( * )
----
29

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

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

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

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

query I rowsort
SELECT DISTINCT + 84 * 14 * 42 * - 24 + + + ( + 55 ) col1
----
-1185353

query I rowsort
SELECT ALL + 85 + - 3 + + 92 AS col0
----
174

query I rowsort
SELECT ALL + 12 + - 92 AS col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1078
SELECT 59 DIV + + ( 94 ) * COUNT( * ) - + 77 AS col2, 6 + - + 76 * - 10 AS col1
----
-77
766

skipif mysql # not compatible
query II rowsort label-1078
SELECT 59 / + + ( 94 ) * COUNT ( * ) - + 77 AS col2, 6 + - + 76 * - 10 AS col1
----
-77
766

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

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL 90 + COUNT ( * ) - + + MAX ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT ALL + 85 + - + 80
----
5

query I rowsort
SELECT 40 + 47 * + 83 * - 59 AS col2
----
-230119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1082
SELECT - 82 AS col1, - MAX( DISTINCT + ( + 96 ) ) + + CAST( - + 85 AS SIGNED ) - + 64 * 3 col0
----
-82
-373

skipif mysql # not compatible
query II rowsort label-1082
SELECT - 82 AS col1, - MAX ( DISTINCT + ( + 96 ) ) + + CAST ( - + 85 AS INTEGER ) - + 64 * 3 col0
----
-82
-373

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT 49 + - NULLIF ( 27, - 3 * - 30 ) + - 32 * - - 98 * 26 * + + 89 * + 24 * ( - + 2 ) * + CAST( NULL AS SIGNED ) + - + 85 + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1084
SELECT 49 + - NULLIF ( 27, - 3 * - 30 ) + - 32 * - - 98 * 26 * + + 89 * + 24 * ( - + 2 ) * + CAST ( NULL AS INTEGER ) + - + 85 + 3 AS col0
----
NULL

query I rowsort
SELECT 85 * - COALESCE ( - ( + 3 ), - 68, + - 3 )
----
255

query I rowsort
SELECT ALL - 13 + + + 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT CASE + 57 WHEN - - 30 - - - 22 THEN - COALESCE ( + 36, ( - 2 ) + 82 - - 66 ) END * MIN( + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT CASE + 57 WHEN - - 30 - - - 22 THEN - COALESCE ( + 36, ( - 2 ) + 82 - - 66 ) END * MIN ( + 1 )
----
NULL

query I rowsort
SELECT ALL + 50 + + + 86 * - 57
----
-4852

query I rowsort
SELECT ALL - 23 * - - 5 AS col1
----
-115

query I rowsort
SELECT DISTINCT + 68 + - 78 AS col1
----
-10

query I rowsort
SELECT DISTINCT + 5 * 7 AS col1
----
35

query I rowsort
SELECT + 2 * 58 * + - AVG ( + 25 ) * + - CASE - 0 WHEN - 94 THEN + AVG ( ALL - - 67 ) + 87 WHEN 38 THEN NULL WHEN + 40 THEN NULL ELSE NULL END + - AVG ( ALL - 87 ) + - 33 + + 34
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1094
SELECT ( CASE 83 WHEN 40 - AVG ( - - 44 ) + - 88 THEN NULL ELSE + + 85 * + 16 END ) DIV - 71 - + MAX( + 86 ) * ( + - 26 ) - 14 + - + 19 + 32 * - 80 * 40 DIV - 4 AS col2
----
27784

skipif mysql # not compatible
query I rowsort label-1094
SELECT ( CASE 83 WHEN 40 - AVG ( - - 44 ) + - 88 THEN NULL ELSE + + 85 * + 16 END ) / - 71 - + MAX ( + 86 ) * ( + - 26 ) - 14 + - + 19 + 32 * - 80 * 40 / - 4 AS col2
----
27784

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1095
SELECT + - CAST( NULL AS DECIMAL ) * - 13 / 85 + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT + - CAST ( NULL AS REAL ) * - 13 / 85 + + 17
----
NULL

query I rowsort
SELECT + 10 - - COALESCE ( - + 34, 10 ) * - + 47 - + + 87
----
1521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1097
SELECT 62 + CAST( NULL AS SIGNED ) + + + 45 + 49 + + 57 * + NULLIF ( - NULLIF ( + 91, - COUNT( DISTINCT - 74 ) ), - - 37 + 77 + - ( - 72 ) * + 76 * + 10 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT 62 + CAST ( NULL AS INTEGER ) + + + 45 + 49 + + 57 * + NULLIF ( - NULLIF ( + 91, - COUNT ( DISTINCT - 74 ) ), - - 37 + 77 + - ( - 72 ) * + 76 * + 10 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 92 * + 14
----
-1288

onlyif mysql # DIV for integer division: 
query I rowsort label-1099
SELECT - + 26 DIV + 96 + - + 63 + 73 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1099
SELECT - + 26 / + 96 + - + 63 + 73 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL - 43 * + 51 * 62 * - COUNT( * ) * + COUNT( * ) + + 3 AS col2
----
135969

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL - 43 * + 51 * 62 * - COUNT ( * ) * + COUNT ( * ) + + 3 AS col2
----
135969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1101
SELECT COALESCE ( 23, + CASE - 34 WHEN - 44 DIV - CAST( NULL AS SIGNED ) + - + COUNT( * ) * 0 THEN NULL WHEN + - 55 THEN - 10 + + + 92 END DIV 67, - 80 DIV 72 + + COUNT( * ) ) + + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-1101
SELECT COALESCE ( 23, + CASE - 34 WHEN - 44 / - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * 0 THEN NULL WHEN + - 55 THEN - 10 + + + 92 END / 67, - 80 / 72 + + COUNT ( * ) ) + + COUNT ( * ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT COUNT( - - 41 ) * + - 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1102
SELECT COUNT ( - - 41 ) * + - 9 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT - - 11 * - + 10 + - + 80 + - SUM( ALL - 96 )
----
-94

skipif mysql # not compatible
query I rowsort label-1103
SELECT - - 11 * - + 10 + - + 80 + - SUM ( ALL - 96 )
----
-94

query I rowsort
SELECT - 17 * - + 65
----
1105

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

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

query I rowsort
SELECT 11 + + 92 * 12 * + 3 AS col2
----
3323

onlyif mysql # aggregate syntax: 
query II rowsort label-1107
SELECT ALL - + 9 AS col0, 86 * - COALESCE ( - 33, - 3 * - 19 - COUNT( * ) * 75 + - + 59 + 34, + 63, - 68 - + - 84 ) col0
----
-9
2838

skipif mysql # not compatible
query II rowsort label-1107
SELECT ALL - + 9 AS col0, 86 * - COALESCE ( - 33, - 3 * - 19 - COUNT ( * ) * 75 + - + 59 + 34, + 63, - 68 - + - 84 ) col0
----
-9
2838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1108
SELECT ALL - 16 DIV MIN( + - 76 ) DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL - 16 / MIN ( + - 76 ) / 83
----
0

query II rowsort
SELECT DISTINCT - - 28 AS col1, + 53 col0
----
28
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1110
SELECT DISTINCT NULLIF ( + + CAST( + ( 9 ) AS SIGNED ), - 11 + 71 ) + + AVG ( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT NULLIF ( + + CAST ( + ( 9 ) AS INTEGER ), - 11 + 71 ) + + AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1111
SELECT ALL 12, 34 DIV 29 + - - COALESCE ( + 69, + 63, - - 10, - 4 ) AS col1
----
12
70

skipif mysql # not compatible
query II rowsort label-1111
SELECT ALL 12, 34 / 29 + - - COALESCE ( + 69, + 63, - - 10, - 4 ) AS col1
----
12
70

query I rowsort
SELECT 17 * 59 + - + 99 + - COALESCE ( + 19, - + 95 + - + 47 ) * 21 AS col1
----
505

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT DISTINCT 9 + 56 + + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT 9 + 56 + + COUNT ( * ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL ( + COALESCE ( 10, + 51, - - CASE 30 WHEN - + 86 + CASE + 28 WHEN + 42 * + + 5 THEN ( 70 ) ELSE NULL END * - 78 THEN NULL ELSE - 84 END ) ) + - + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL ( + COALESCE ( 10, + 51, - - CASE 30 WHEN - + 86 + CASE + 28 WHEN + 42 * + + 5 THEN ( 70 ) ELSE NULL END * - 78 THEN NULL ELSE - 84 END ) ) + - + COUNT ( * )
----
9

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-1115
SELECT DISTINCT 17 AS col2, 55 - + - CASE + 1 WHEN - 44 THEN NULL WHEN - 66 THEN + NULLIF ( + NULLIF ( + ( + 98 ), + 1 ), 97 * 4 DIV 63 ) DIV - 43 + + ( 31 ) ELSE NULL END + - CAST( + 72 AS DECIMAL ) AS col2, - 95 + + ( + 85 ) + + - 5 DIV + 83 + - - ( - - 93 ) + 75 + - ( - CASE 49 WHEN 56 + 35 DIV - 99 + - 86 DIV - 55 THEN - 56 ELSE 48 * + 38 + 34 END ) col0
----
17
NULL
2016

skipif mysql # not compatible
query III rowsort label-1115
SELECT DISTINCT 17 AS col2, 55 - + - CASE + 1 WHEN - 44 THEN NULL WHEN - 66 THEN + NULLIF ( + NULLIF ( + ( + 98 ), + 1 ), 97 * 4 / 63 ) / - 43 + + ( 31 ) ELSE NULL END + - CAST ( + 72 AS REAL ) AS col2, - 95 + + ( + 85 ) + + - 5 / + 83 + - - ( - - 93 ) + 75 + - ( - CASE 49 WHEN 56 + 35 / - 99 + - 86 / - 55 THEN - 56 ELSE 48 * + 38 + 34 END ) col0
----
17
NULL
2016

query II rowsort
SELECT 8, 67 AS col0
----
8
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT 40 * - - ( + + CASE + 35 WHEN - 69 THEN NULL WHEN + + COUNT( * ) THEN NULL ELSE - 39 END )
----
-1560

skipif mysql # not compatible
query I rowsort label-1117
SELECT 40 * - - ( + + CASE + 35 WHEN - 69 THEN NULL WHEN + + COUNT ( * ) THEN NULL ELSE - 39 END )
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ( - 58 ) - + 60 - + CASE + - 97 WHEN + COUNT( * ) THEN - 2 END + - 11 / - - 39 + - - 38 * - 0 * - 60 * 43 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT ( - 58 ) - + 60 - + CASE + - 97 WHEN + COUNT ( * ) THEN - 2 END + - 11 / - - 39 + - - 38 * - 0 * - 60 * 43 + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 36 + 53 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL - 27 * - MIN( DISTINCT 53 )
----
1431

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL - 27 * - MIN ( DISTINCT 53 )
----
1431

onlyif mysql # aggregate syntax: 
query II rowsort label-1121
SELECT - 88 AS col2, - 56 + - + SUM( + - 94 )
----
-88
38

skipif mysql # not compatible
query II rowsort label-1121
SELECT - 88 AS col2, - 56 + - + SUM ( + - 94 )
----
-88
38

query I rowsort
SELECT DISTINCT 19 - 94
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-1123
SELECT ALL 44, - CASE + SUM( ALL + 96 ) WHEN - + 11 THEN - - 17 + - + COUNT( * ) * - + COUNT( DISTINCT - 97 ) WHEN - MAX( 24 ) + - 85 THEN NULL END + - 56 * 73 * - ( 41 ) AS col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-1123
SELECT ALL 44, - CASE + SUM ( ALL + 96 ) WHEN - + 11 THEN - - 17 + - + COUNT ( * ) * - + COUNT ( DISTINCT - 97 ) WHEN - MAX ( 24 ) + - 85 THEN NULL END + - 56 * 73 * - ( 41 ) AS col0
----
44
NULL

query I rowsort
SELECT ALL - 18 - - + 99 col2
----
81

query II rowsort
SELECT ALL 98, + 86 * + 84 AS col0
----
98
7224

onlyif mysql # aggregate syntax: 
query II rowsort label-1126
SELECT 24, 14 * ( - + 68 ) * - COUNT( * ) AS col2
----
24
952

skipif mysql # not compatible
query II rowsort label-1126
SELECT 24, 14 * ( - + 68 ) * - COUNT ( * ) AS col2
----
24
952

query I rowsort
SELECT 3 * + NULLIF ( ( 65 ), + - 72 ) AS col1
----
195

query II rowsort
SELECT - 56 AS col1, + 39 AS col2
----
-56
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT ( + 97 ) + - + 32 * + COALESCE ( 10, + + MAX( ALL - + 82 ) )
----
-223

skipif mysql # not compatible
query I rowsort label-1129
SELECT ( + 97 ) + - + 32 * + COALESCE ( 10, + + MAX ( ALL - + 82 ) )
----
-223

query II rowsort
SELECT - 4 AS col2, 84 * + 39
----
-4
3276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1131
SELECT DISTINCT + 55 * - 25 + - CAST( NULL AS SIGNED ) + 29 AS col2, - 9
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-1131
SELECT DISTINCT + 55 * - 25 + - CAST ( NULL AS INTEGER ) + 29 AS col2, - 9
----
NULL
-9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1133
SELECT - 62 DIV - - ( 73 ) + - + 29 + 59 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1133
SELECT - 62 / - - ( 73 ) + - + 29 + 59 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1134
SELECT DISTINCT - CAST( - 9 AS SIGNED ) * ( + + 1 ) + - - 5 * - COUNT( * ) AS col1, + 44
----
4
44

skipif mysql # not compatible
query II rowsort label-1134
SELECT DISTINCT - CAST ( - 9 AS INTEGER ) * ( + + 1 ) + - - 5 * - COUNT ( * ) AS col1, + 44
----
4
44

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT + COUNT( * ) - 57 * - - 31
----
-1766

skipif mysql # not compatible
query I rowsort label-1137
SELECT + COUNT ( * ) - 57 * - - 31
----
-1766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1138
SELECT CASE - 64 WHEN - 2 THEN CAST( - - 67 AS SIGNED ) * - MIN( ALL - 31 ) * + + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT CASE - 64 WHEN - 2 THEN CAST ( - - 67 AS INTEGER ) * - MIN ( ALL - 31 ) * + + COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT - 90 DIV 95 + - 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-1139
SELECT - 90 / 95 + - 50 AS col1
----
-50

query II rowsort
SELECT DISTINCT - 38 AS col2, 68 * + + 53 AS col2
----
-38
3604

query II rowsort
SELECT 8 AS col1, NULLIF ( - + 21, 94 )
----
8
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT + 90 - + 61 + COUNT( * ) * 44 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1142
SELECT + 90 - + 61 + COUNT ( * ) * 44 AS col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1143
SELECT COUNT( * ) * 39 - 33 DIV + COUNT( 20 )
----
6

skipif mysql # not compatible
query I rowsort label-1143
SELECT COUNT ( * ) * 39 - 33 / + COUNT ( 20 )
----
6

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

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL - ( + - 53 ) + COUNT ( * ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL 85 + + - MIN( DISTINCT - 98 ) * - 25
----
-2365

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL 85 + + - MIN ( DISTINCT - 98 ) * - 25
----
-2365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1146
SELECT - 50 + - 47 * 38 DIV - - 23 + + COUNT( ALL - 5 )
----
-126

skipif mysql # not compatible
query I rowsort label-1146
SELECT - 50 + - 47 * 38 / - - 23 + + COUNT ( ALL - 5 )
----
-126

query I rowsort
SELECT + 26 + + 4
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1148
SELECT + 64 * - CAST( + COALESCE ( + 94, + + 93 - + 67 * - 98 ) AS SIGNED ) + - + ( - + 30 ) AS col2
----
-5986

skipif mysql # not compatible
query I rowsort label-1148
SELECT + 64 * - CAST ( + COALESCE ( + 94, + + 93 - + 67 * - 98 ) AS INTEGER ) + - + ( - + 30 ) AS col2
----
-5986

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL SUM( ALL + 56 ) - + 91 * 83 AS col0
----
-7497

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL SUM ( ALL + 56 ) - + 91 * 83 AS col0
----
-7497

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1150
SELECT DISTINCT COUNT( * ) DIV + - 29 col1
----
0

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT COUNT ( * ) / + - 29 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1151
SELECT - COALESCE ( + 73, CASE 54 WHEN + - 61 + 19 THEN + 53 ELSE NULL END ) AS col2, CAST( NULL AS SIGNED ) * - 13
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-1151
SELECT - COALESCE ( + 73, CASE 54 WHEN + - 61 + 19 THEN + 53 ELSE NULL END ) AS col2, CAST ( NULL AS INTEGER ) * - 13
----
-73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT + COUNT( * ) + - 19 + + + 44 * ( - 23 )
----
-1030

skipif mysql # not compatible
query I rowsort label-1152
SELECT + COUNT ( * ) + - 19 + + + 44 * ( - 23 )
----
-1030

onlyif mysql # DIV for integer division: 
query II rowsort label-1153
SELECT DISTINCT 13 DIV - - 60 AS col1, 32 * + 66
----
0
2112

skipif mysql # not compatible
query II rowsort label-1153
SELECT DISTINCT 13 / - - 60 AS col1, 32 * + 66
----
0
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT + ( - + 15 ) / - - CASE - + 48 WHEN + COUNT( * ) THEN + + 35 + - 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1154
SELECT + ( - + 15 ) / - - CASE - + 48 WHEN + COUNT ( * ) THEN + + 35 + - 28 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1155
SELECT + 54 + CASE - 90 WHEN - 9 * COUNT( * ) THEN NULL WHEN + 74 * - COUNT( * ) * MAX( 80 ) + + + 82 * 13 THEN - + ( + MAX( COALESCE ( - 5, 24 ) ) ) * + 85 END + 41 AS col0, 91 DIV - 67 + COUNT( * ) * + 54 DIV 57
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1155
SELECT + 54 + CASE - 90 WHEN - 9 * COUNT ( * ) THEN NULL WHEN + 74 * - COUNT ( * ) * MAX ( 80 ) + + + 82 * 13 THEN - + ( + MAX ( COALESCE ( - 5, 24 ) ) ) * + 85 END + 41 AS col0, 91 / - 67 + COUNT ( * ) * + 54 / 57
----
NULL
-1

query I rowsort
SELECT - 18 * 62
----
-1116

query I rowsort
SELECT ALL + 87 * 79
----
6873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT + 36 * - - 94 + - 63 + - + ( - + 51 ) * + 28 - + - CAST( NULL AS SIGNED ) / - ( + CASE - SUM( + 37 ) WHEN - 15 + - 15 * + COUNT( * ) + + 14 * MAX( ( - 45 ) ) THEN + 87 + - 59 + - 98 * - - CASE - - 50 WHEN - 88 THEN NULL ELSE ( - - 96 ) + - + ( - + 18 ) * 22 * - COUNT( - 27 ) * + 28 * - - 29 - - MAX( + + 70 ) + + - NULLIF ( + 31, COUNT( * ) ) + + 61 END + - COALESCE ( - 12 + - COUNT( * ) * 78, 39 ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT + 36 * - - 94 + - 63 + - + ( - + 51 ) * + 28 - + - CAST ( NULL AS INTEGER ) / - ( + CASE - SUM ( + 37 ) WHEN - 15 + - 15 * + COUNT ( * ) + + 14 * MAX ( ( - 45 ) ) THEN + 87 + - 59 + - 98 * - - CASE - - 50 WHEN - 88 THEN NULL ELSE ( - - 96 ) + - + ( - + 18 ) * 22 * - COUNT ( - 27 ) * + 28 * - - 29 - - MAX ( + + 70 ) + + - NULLIF ( + 31, COUNT ( * ) ) + + 61 END + - COALESCE ( - 12 + - COUNT ( * ) * 78, 39 ) ELSE NULL END ) AS col2
----
NULL

query II rowsort
SELECT - 45 + + 67 AS col1, + 76
----
22
76

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1161
SELECT ALL + 26 DIV + + 47, - 22 AS col0
----
0
-22

skipif mysql # not compatible
query II rowsort label-1161
SELECT ALL + 26 / + + 47, - 22 AS col0
----
0
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-1162
SELECT ALL + 46 DIV - 71 * - ( - 20 ) + - ( + ( + 2 ) ), 78 - + - NULLIF ( + + 93, - ( ( - 45 ) ) ) AS col1
----
-2
171

skipif mysql # not compatible
query II rowsort label-1162
SELECT ALL + 46 / - 71 * - ( - 20 ) + - ( + ( + 2 ) ), 78 - + - NULLIF ( + + 93, - ( ( - 45 ) ) ) AS col1
----
-2
171

query II rowsort
SELECT ( 92 ) AS col2, 93 AS col1
----
92
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1164
SELECT + + 35 + - - CAST( + + 43 AS SIGNED ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1164
SELECT + + 35 + - - CAST ( + + 43 AS INTEGER ) AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1165
SELECT 29 DIV 70 * + + 63 - + 33 + + + 96 * + MAX( + 49 ) AS col0, 40
----
4671
40

skipif mysql # not compatible
query II rowsort label-1165
SELECT 29 / 70 * + + 63 - + 33 + + + 96 * + MAX ( + 49 ) AS col0, 40
----
4671
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1166
SELECT - 8 + - COUNT( COALESCE ( + 18, + 34, + - 80 * - - CAST( ( + 2 ) AS SIGNED ) + + 40 + - 49 * + 42 * + 42 ) ) + 92 * + 4 col1
----
359

skipif mysql # not compatible
query I rowsort label-1166
SELECT - 8 + - COUNT ( COALESCE ( + 18, + 34, + - 80 * - - CAST ( ( + 2 ) AS INTEGER ) + + 40 + - 49 * + 42 * + 42 ) ) + 92 * + 4 col1
----
359

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT ALL - - 71 * + 69 * - + 50 * + CASE 19 WHEN + COUNT( * ) + + 40 / - + COUNT( * ) THEN 74 + - NULLIF ( 56, - 17 ) END + + 95 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL - - 71 * + 69 * - + 50 * + CASE 19 WHEN + COUNT ( * ) + + 40 / - + COUNT ( * ) THEN 74 + - NULLIF ( 56, - 17 ) END + + 95 + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 58 * + 12 col0
----
-696

query I rowsort
SELECT ALL - 45 * - 31 + + 75
----
1470

query I rowsort
SELECT - 88 + + - 94
----
-182

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

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

query I rowsort
SELECT ALL - ( + 38 ) * - - 0 + 26
----
26

query I rowsort
SELECT - 50 * + + 9 AS col1
----
-450

query I rowsort
SELECT - 56 * 32
----
-1792

query I rowsort
SELECT ALL + NULLIF ( + 24, + AVG ( DISTINCT 21 ) ) col1
----
24

query I rowsort
SELECT - 26 * + + 94
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT ALL + ( NULLIF ( - MAX( DISTINCT + 32 ), - MIN( + 26 ) * 97 / + 88 ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + ( NULLIF ( - MAX ( DISTINCT + 32 ), - MIN ( + 26 ) * 97 / + 88 ) ) AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1178
SELECT COALESCE ( + + 37, - + CAST( NULL AS SIGNED ) + - 90 + - + MAX( DISTINCT + 87 ) * 47 * + 72 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1178
SELECT COALESCE ( + + 37, - + CAST ( NULL AS INTEGER ) + - 90 + - + MAX ( DISTINCT + 87 ) * 47 * + 72 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT NULLIF ( + + COUNT( * ), - ( + 27 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1179
SELECT NULLIF ( + + COUNT ( * ), - ( + 27 ) ) col1
----
1

query I rowsort
SELECT + 8 + - 60
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT + COALESCE ( ( - + SUM( + - 92 ) ), + - NULLIF ( 47, + 12 ) * - 20 )
----
92

skipif mysql # not compatible
query I rowsort label-1181
SELECT + COALESCE ( ( - + SUM ( + - 92 ) ), + - NULLIF ( 47, + 12 ) * - 20 )
----
92

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

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

query I rowsort
SELECT DISTINCT 84 * 75 - - 37 + 4
----
6341

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT DISTINCT COUNT( * ) * + NULLIF ( + - 33, + MIN( ALL + + 11 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT COUNT ( * ) * + NULLIF ( + - 33, + MIN ( ALL + + 11 ) ) AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1185
SELECT DISTINCT CAST( + 44 AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT CAST ( + 44 AS INTEGER ) AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT DISTINCT - 87 * - ( + - 51 ) - 42 - + 88 * - CAST( MAX( ALL 0 ) AS SIGNED ) + - 71 * 69 * 73 AS col0
----
-362106

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT - 87 * - ( + - 51 ) - 42 - + 88 * - CAST ( MAX ( ALL 0 ) AS INTEGER ) + - 71 * 69 * 73 AS col0
----
-362106

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL CASE - 61 WHEN 8 THEN + + SUM( ALL - + 37 ) * 97 END * + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL CASE - 61 WHEN 8 THEN + + SUM ( ALL - + 37 ) * 97 END * + + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT + CAST( 50 AS SIGNED ) + 57 + + 13 * COUNT( DISTINCT - 93 ) * + - 92 AS col2
----
-1089

skipif mysql # not compatible
query I rowsort label-1188
SELECT + CAST ( 50 AS INTEGER ) + 57 + + 13 * COUNT ( DISTINCT - 93 ) * + - 92 AS col2
----
-1089

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

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

query I rowsort
SELECT + 60 + + + ( - 8 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1191
SELECT + 18 / + CAST( NULL AS DECIMAL ) * 4, 1 * - 64 + COUNT( * ) AS col0
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-1191
SELECT + 18 / + CAST ( NULL AS REAL ) * 4, 1 * - 64 + COUNT ( * ) AS col0
----
NULL
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1192
SELECT - CAST( NULL AS SIGNED ) * 20 * ( + COUNT( * ) ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT + 36 + + ( + + MIN( + ( + + 64 ) ) )
----
100

skipif mysql # not compatible
query I rowsort label-1193
SELECT + 36 + + ( + + MIN ( + ( + + 64 ) ) )
----
100

query II rowsort
SELECT ALL 51 AS col0, 1 * + - 40
----
51
-40

query II rowsort
SELECT DISTINCT 3 AS col2, - 75 AS col1
----
3
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT + 20 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-1196
SELECT + 20 / 39
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1197
SELECT ALL + COUNT( * ) DIV - + ( - 50 ) AS col2, + COUNT( * ) AS col0, - 73
----
0
1
-73

skipif mysql # not compatible
query III rowsort label-1197
SELECT ALL + COUNT ( * ) / - + ( - 50 ) AS col2, + COUNT ( * ) AS col0, - 73
----
0
1
-73

query I rowsort
SELECT + + 0 * + - 2 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1199
SELECT ALL CASE COALESCE ( + 92, - + NULLIF ( - MAX( ALL + + 46 ), ( - 85 ) + + COALESCE ( 54, + COUNT( * ) * + - 42 ) ) * ( + - COUNT( * ) ), + + 66 - + 75 * - COUNT( * ) + ( 64 ) * + - COUNT( * ), + 91 + COUNT( * ) + + COALESCE ( + 2, - CAST( NULL AS SIGNED ) * + - 21 + 39 ) / + 0 * - - 85 ) WHEN - 23 THEN NULL WHEN + - 51 THEN + COUNT( * ) ELSE - 84 END
----
-84

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL CASE COALESCE ( + 92, - + NULLIF ( - MAX ( ALL + + 46 ), ( - 85 ) + + COALESCE ( 54, + COUNT ( * ) * + - 42 ) ) * ( + - COUNT ( * ) ), + + 66 - + 75 * - COUNT ( * ) + ( 64 ) * + - COUNT ( * ), + 91 + COUNT ( * ) + + COALESCE ( + 2, - CAST ( NULL AS INTEGER ) * + - 21 + 39 ) / + 0 * - - 85 ) WHEN - 23 THEN NULL WHEN + - 51 THEN + COUNT ( * ) ELSE - 84 END
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1200
SELECT DISTINCT + ( - - 56 ) DIV + 89 + ( + 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT + ( - - 56 ) / + 89 + ( + 38 ) AS col0
----
38

query I rowsort
SELECT DISTINCT 8 + - 48 * + + 39 * 2
----
-3736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT ALL - + NULLIF ( - 18, + 64 * CAST( NULL AS SIGNED ) - + - ( - + 44 ) ) * ( - COALESCE ( 26, - 67 ) )
----
-468

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL - + NULLIF ( - 18, + 64 * CAST ( NULL AS INTEGER ) - + - ( - + 44 ) ) * ( - COALESCE ( 26, - 67 ) )
----
-468

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

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

query I rowsort
SELECT ALL 49 * + - 55 AS col1
----
-2695

query II rowsort
SELECT ALL 85, - 71 * + 89 AS col1
----
85
-6319

query I rowsort
SELECT - 93 + - 88 AS col2
----
-181

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

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

query I rowsort
SELECT DISTINCT + ( - 86 ) + - - 90 + - - 30 * - 96
----
-2876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1209
SELECT ALL + 92 * + CAST( - 0 AS SIGNED ) * 52 + 60 - + - 12 DIV 96 + 4 - - NULLIF ( - 51, - COUNT( * ) ) + - + 70
----
-57

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL + 92 * + CAST ( - 0 AS INTEGER ) * 52 + 60 - + - 12 / 96 + 4 - - NULLIF ( - 51, - COUNT ( * ) ) + - + 70
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT ALL - NULLIF ( + 77, NULLIF ( 62, + 68 * + 24 + + 69 + - + 74 ) ) + + - 50 + + 92 - 94 * - 18 * + 72 * + - 33 + + - COUNT( ALL - ( + 55 ) ) AS col0
----
-4020228

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL - NULLIF ( + 77, NULLIF ( 62, + 68 * + 24 + + 69 + - + 74 ) ) + + - 50 + + 92 - 94 * - 18 * + 72 * + - 33 + + - COUNT ( ALL - ( + 55 ) ) AS col0
----
-4020228

query II rowsort
SELECT + - 96 AS col1, 29
----
-96
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1212
SELECT DISTINCT NULLIF ( - - CAST( + 58 AS SIGNED ), - + 99 ) + + 88 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT NULLIF ( - - CAST ( + 58 AS INTEGER ), - + 99 ) + + 88 AS col0
----
146

query II rowsort
SELECT + + 73 AS col1, + ( + 3 )
----
73
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1214
SELECT ALL - 68 + + + COUNT( DISTINCT - 17 ) + CASE 2 WHEN - CASE + + 74 WHEN - NULLIF ( 80, + + 55 * + 67 * - - 70 ) THEN COUNT( * ) WHEN - 34 - - + NULLIF ( - 42, - 26 + + + 15 ) THEN NULL ELSE NULL END THEN - 67 WHEN ( + - 48 ) THEN + 80 + - + 92 - 78 ELSE ( 67 ) * - NULLIF ( + CAST( - + 99 AS SIGNED ), - COUNT( * ) ) + - - 88 * + CASE - - ( + - COUNT( ALL - + ( - ( - 25 ) ) ) ) WHEN + + 70 + CAST( NULL AS SIGNED ) THEN 46 + 45 END / 70 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL - 68 + + + COUNT ( DISTINCT - 17 ) + CASE 2 WHEN - CASE + + 74 WHEN - NULLIF ( 80, + + 55 * + 67 * - - 70 ) THEN COUNT ( * ) WHEN - 34 - - + NULLIF ( - 42, - 26 + + + 15 ) THEN NULL ELSE NULL END THEN - 67 WHEN ( + - 48 ) THEN + 80 + - + 92 - 78 ELSE ( 67 ) * - NULLIF ( + CAST ( - + 99 AS INTEGER ), - COUNT ( * ) ) + - - 88 * + CASE - - ( + - COUNT ( ALL - + ( - ( - 25 ) ) ) ) WHEN + + 70 + CAST ( NULL AS INTEGER ) THEN 46 + 45 END / 70 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT - MAX( + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-1215
SELECT - MAX ( + 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT 67 * - 49 * - 22 + + CASE + 66 WHEN 39 THEN - 62 * - COUNT( * ) + + 1 END * + SUM( DISTINCT 79 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT 67 * - 49 * - 22 + + CASE + 66 WHEN 39 THEN - 62 * - COUNT ( * ) + + 1 END * + SUM ( DISTINCT 79 ) AS col2
----
NULL

query I rowsort
SELECT 78 * 40 AS col0
----
3120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1218
SELECT ALL - 95 DIV COUNT( * ) * + + 78
----
-7410

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - 95 / COUNT ( * ) * + + 78
----
-7410

query I rowsort
SELECT DISTINCT - 77 * + 37 * 23
----
-65527

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

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

query II rowsort
SELECT ALL - ( 68 ) AS col0, - ( + - 77 ) AS col2
----
-68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT 78 - + - SUM( ALL - + 13 ) * + 10 - + 34 * - + COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1222
SELECT 78 - + - SUM ( ALL - + 13 ) * + 10 - + 34 * - + COUNT ( * ) AS col2
----
-18

query I rowsort
SELECT ALL - ( - + NULLIF ( + 91, - 29 * + 94 - - 99 + COALESCE ( - - 80, - 4 ) ) )
----
91

query I rowsort
SELECT 94 * + - 58
----
-5452

query II rowsort
SELECT 68 + + 61 AS col2, - 17 + - 29 AS col0
----
129
-46

query I rowsort
SELECT 5 * + 46 + 27
----
257

query I rowsort
SELECT 93 * + 22 * + - 53
----
-108438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1228
SELECT ALL + 60 + + ( - COUNT( * ) ) * + NULLIF ( 28, - CAST( NULL AS SIGNED ) ) - - - 34 col1
----
-2

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL + 60 + + ( - COUNT ( * ) ) * + NULLIF ( 28, - CAST ( NULL AS INTEGER ) ) - - - 34 col1
----
-2

query II rowsort
SELECT DISTINCT 53 + 62 AS col1, 98
----
115
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL + MIN( DISTINCT - + 85 ) * + 1
----
-85

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL + MIN ( DISTINCT - + 85 ) * + 1
----
-85

query I rowsort
SELECT - 27 * + + 70
----
-1890

query I rowsort
SELECT ALL + 74 + + 43 - 37 AS col0
----
80

query II rowsort
SELECT - 80 + - 73 AS col1, 21 + - ( 67 ) + + 66 * 13 * - + 28
----
-153
-24070

query I rowsort
SELECT - 94 + - - 74 + 17 * 77 AS col0
----
1289

query I rowsort
SELECT + 63 * + - 18
----
-1134

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT DISTINCT - 82 * 25 DIV - 20 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT - 82 * 25 / - 20 AS col2
----
102

query I rowsort
SELECT 41 + + 69
----
110

query I rowsort
SELECT ALL - COALESCE ( - 92, 98 + - - 73 ) + - 51
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT + 30 + - COUNT( * ) + - + 0 + - 17
----
12

skipif mysql # not compatible
query I rowsort label-1239
SELECT + 30 + - COUNT ( * ) + - + 0 + - 17
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL - ( + 37 ) * - + MIN( + + ( + 96 ) )
----
3552

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL - ( + 37 ) * - + MIN ( + + ( + 96 ) )
----
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT 10 + - ( - 40 ) + + 97 + + 47 * - COUNT( * ) * + 83 * 80
----
-311933

skipif mysql # not compatible
query I rowsort label-1241
SELECT 10 + - ( - 40 ) + + 97 + + 47 * - COUNT ( * ) * + 83 * 80
----
-311933

query I rowsort
SELECT ALL 26 - 20 * 98
----
-1934

query II rowsort
SELECT 3 * - 31 AS col2, - 72
----
-93
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1244
SELECT + 83 DIV + 61 + - 81 + + CAST( - COUNT( * ) AS SIGNED ) + - 94 * - + NULLIF ( 49, - ( - 34 ) * - - 87 + SUM( - + 67 ) ) AS col1
----
4525

skipif mysql # not compatible
query I rowsort label-1244
SELECT + 83 / + 61 + - 81 + + CAST ( - COUNT ( * ) AS INTEGER ) + - 94 * - + NULLIF ( 49, - ( - 34 ) * - - 87 + SUM ( - + 67 ) ) AS col1
----
4525

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

query I rowsort
SELECT 59 * 64 AS col2
----
3776

query I rowsort
SELECT DISTINCT 32 * - + 10 col2
----
-320

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

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

query I rowsort
SELECT + 89 * - 73 * ( 73 ) * 79 + 85
----
-37468114

query I rowsort
SELECT 78 + - 19 + 13 + 99
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1251
SELECT 84 * - - 73 / + CASE 55 WHEN + 79 * 10 THEN + 88 * ( - + 22 ) + CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1251
SELECT 84 * - - 73 / + CASE 55 WHEN + 79 * 10 THEN + 88 * ( - + 22 ) + CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 96 * - - 41 AS col2
----
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT - 51 * - COUNT( * ) + 95 + - 51
----
95

skipif mysql # not compatible
query I rowsort label-1253
SELECT - 51 * - COUNT ( * ) + 95 + - 51
----
95

query I rowsort
SELECT ALL - NULLIF ( - 27, - 74 * 32 * - 61 )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1255
SELECT COUNT( - 26 ) * - + COUNT( * ) DIV + + COALESCE ( - + 42, + ( + 43 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1255
SELECT COUNT ( - 26 ) * - + COUNT ( * ) / + + COALESCE ( - + 42, + ( + 43 ) )
----
0

query I rowsort
SELECT DISTINCT - 19 * - 62 AS col0
----
1178

query I rowsort
SELECT DISTINCT 48 + + 88
----
136

query I rowsort
SELECT 12 * + 12 col2
----
144

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1262
SELECT - 69 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 15 + + 50 + + 38 * + 88 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT - 69 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 15 + + 50 + + 38 * + 88 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT - MAX( DISTINCT 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-1263
SELECT - MAX ( DISTINCT 15 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-1264
SELECT ALL 97 AS col1, NULLIF ( - COUNT( * ), - 70 )
----
97
-1

skipif mysql # not compatible
query II rowsort label-1264
SELECT ALL 97 AS col1, NULLIF ( - COUNT ( * ), - 70 )
----
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT MIN( ALL - - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-1265
SELECT MIN ( ALL - - 10 )
----
10

query I rowsort
SELECT ALL + - 27 + 46 * + 32 * - 70 * - 88
----
9067493

query I rowsort
SELECT ALL - + 65 + + + 8 * - 87 + + 80 AS col1
----
-681

query I rowsort
SELECT DISTINCT ( 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1269
SELECT - 85 * - MAX( 27 ) * - 10 + + 90 + - COUNT( * ) DIV + 54 * - 18 + + COUNT( * ) AS col2
----
-22859

skipif mysql # not compatible
query I rowsort label-1269
SELECT - 85 * - MAX ( 27 ) * - 10 + + 90 + - COUNT ( * ) / + 54 * - 18 + + COUNT ( * ) AS col2
----
-22859

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1271
SELECT DISTINCT - - 22 * + CAST( - SUM( 62 ) AS SIGNED )
----
-1364

skipif mysql # not compatible
query I rowsort label-1271
SELECT DISTINCT - - 22 * + CAST ( - SUM ( 62 ) AS INTEGER )
----
-1364

onlyif mysql # aggregate syntax: 
query II rowsort label-1272
SELECT ALL + SUM( + 2 ) * + + 56, 92 AS col1
----
112
92

skipif mysql # not compatible
query II rowsort label-1272
SELECT ALL + SUM ( + 2 ) * + + 56, 92 AS col1
----
112
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1273
SELECT - 76, 87 * ( ( + COUNT( * ) ) ) * - 97 * - CASE - - 73 WHEN + 21 THEN NULL WHEN 2 * 94 + - 17 THEN + COUNT( * ) END AS col0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-1273
SELECT - 76, 87 * ( ( + COUNT ( * ) ) ) * - 97 * - CASE - - 73 WHEN + 21 THEN NULL WHEN 2 * 94 + - 17 THEN + COUNT ( * ) END AS col0
----
-76
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT DISTINCT + 49 * 28 DIV 1 + - 91 DIV + 6 + - + 33
----
1324

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT + 49 * 28 / 1 + - 91 / + 6 + - + 33
----
1324

query I rowsort
SELECT - 97 - 8 + - 23
----
-128

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT + COUNT( * ) AS col0, + 97 - + 73 + - 66
----
1
-42

skipif mysql # not compatible
query II rowsort label-1277
SELECT + COUNT ( * ) AS col0, + 97 - + 73 + - 66
----
1
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT DISTINCT 14 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT 14 / - 82
----
0

query I rowsort
SELECT + ( + + 2 ) * + - 10 AS col1
----
-20

query I rowsort
SELECT + 60 * + 81 + - 21
----
4839

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL 53 * - + COUNT( - - 51 ) + 3 + - - COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL 53 * - + COUNT ( - - 51 ) + 3 + - - COUNT ( * ) AS col2
----
-49

query I rowsort
SELECT + ( + 79 ) + - 47 AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1283
SELECT CASE - - 41 WHEN + COUNT( * ) THEN NULL WHEN + COALESCE ( + CAST( - - MIN( + ( + 38 ) ) AS SIGNED ), 68 ) * + + 79 THEN - 90 + + ( 29 ) * + COALESCE ( COUNT( * ), + 82 + 49, + 14 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT CASE - - 41 WHEN + COUNT ( * ) THEN NULL WHEN + COALESCE ( + CAST ( - - MIN ( + ( + 38 ) ) AS INTEGER ), 68 ) * + + 79 THEN - 90 + + ( 29 ) * + COALESCE ( COUNT ( * ), + 82 + 49, + 14 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1284
SELECT ALL + 29 * - 82 + - 46 * + 30 * + CASE + 4 WHEN + - COUNT( * ) THEN NULL WHEN + - 27 THEN - + ( - SUM( DISTINCT 13 ) ) WHEN + CAST( + + 52 AS SIGNED ) / + 35 THEN 87 - - - 42 + - 8 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL + 29 * - 82 + - 46 * + 30 * + CASE + 4 WHEN + - COUNT ( * ) THEN NULL WHEN + - 27 THEN - + ( - SUM ( DISTINCT 13 ) ) WHEN + CAST ( + + 52 AS INTEGER ) / + 35 THEN 87 - - - 42 + - 8 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT 65 * + - 4 + 35 + 77 + COUNT( * ) AS col2
----
-147

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT 65 * + - 4 + 35 + 77 + COUNT ( * ) AS col2
----
-147

query I rowsort
SELECT 79 * 73 + 64 AS col0
----
5831

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT ALL - 18 * COUNT( * ) + 10 * + 21 * 0
----
-18

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL - 18 * COUNT ( * ) + 10 * + 21 * 0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT MIN( ALL 81 )
----
81

skipif mysql # not compatible
query I rowsort label-1288
SELECT MIN ( ALL 81 )
----
81

query I rowsort
SELECT + 24 + - 40 + + - 49 + + ( - 79 ) + + 88
----
-56

query I rowsort
SELECT DISTINCT + + 27 * - 26 + + 38 + + - ( + 79 ) * + 31 + 4 * + ( + 1 ) + - - 4 col0
----
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT ALL - COALESCE ( - + 34, + COUNT( * ) ) * + - 29 - - ( - + 81 ) * - 39 + + 40
----
2213

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL - COALESCE ( - + 34, + COUNT ( * ) ) * + - 29 - - ( - + 81 ) * - 39 + + 40
----
2213

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT + NULLIF ( - - MAX( DISTINCT + + 13 ), - 77 ) * - 38 AS col0
----
-494

skipif mysql # not compatible
query I rowsort label-1292
SELECT + NULLIF ( - - MAX ( DISTINCT + + 13 ), - 77 ) * - 38 AS col0
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT ALL - COUNT( * ) - 65 - - 28
----
-38

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL - COUNT ( * ) - 65 - - 28
----
-38

query II rowsort
SELECT ALL - 4 AS col0, 9
----
-4
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT ALL - - 87 - + COUNT( DISTINCT - + 14 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL - - 87 - + COUNT ( DISTINCT - + 14 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT + + MAX( - + 99 ) * + 58 AS col2
----
-5742

skipif mysql # not compatible
query I rowsort label-1296
SELECT + + MAX ( - + 99 ) * + 58 AS col2
----
-5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1297
SELECT + - ( + + 28 ) + - - ( + CASE - - 66 WHEN + 19 * + - 17 * - 28 * - 24 + + 64 THEN NULL WHEN - 70 * - 65 THEN 42 WHEN CASE + + 11 WHEN - - 9 * - 34 + - - 23 + + 39 * - + CAST( - - COUNT( * ) AS SIGNED ) * 34 THEN + + 8 WHEN 24 * + + 90 + + CAST( NULL AS DECIMAL ) THEN NULL END + + 47 THEN SUM( ALL - 53 ) ELSE - 91 * + 2 END ) + - + 94 AS col2
----
-304

skipif mysql # not compatible
query I rowsort label-1297
SELECT + - ( + + 28 ) + - - ( + CASE - - 66 WHEN + 19 * + - 17 * - 28 * - 24 + + 64 THEN NULL WHEN - 70 * - 65 THEN 42 WHEN CASE + + 11 WHEN - - 9 * - 34 + - - 23 + + 39 * - + CAST ( - - COUNT ( * ) AS INTEGER ) * 34 THEN + + 8 WHEN 24 * + + 90 + + CAST ( NULL AS REAL ) THEN NULL END + + 47 THEN SUM ( ALL - 53 ) ELSE - 91 * + 2 END ) + - + 94 AS col2
----
-304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1298
SELECT - 48 - 9 * - CAST( 83 AS SIGNED ) col2
----
699

skipif mysql # not compatible
query I rowsort label-1298
SELECT - 48 - 9 * - CAST ( 83 AS INTEGER ) col2
----
699

onlyif mysql # aggregate syntax: 
query III rowsort label-1299
SELECT DISTINCT + 68, - COUNT( * ) * - MIN( DISTINCT 33 ) AS col2, + 61 AS col2
----
68
33
61

skipif mysql # not compatible
query III rowsort label-1299
SELECT DISTINCT + 68, - COUNT ( * ) * - MIN ( DISTINCT 33 ) AS col2, + 61 AS col2
----
68
33
61

onlyif mysql # aggregate syntax: 
query II rowsort label-1300
SELECT ALL 60 AS col0, 72 * COUNT( * ) col1
----
60
72

skipif mysql # not compatible
query II rowsort label-1300
SELECT ALL 60 AS col0, 72 * COUNT ( * ) col1
----
60
72

query I rowsort
SELECT - 5 + 80
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT - 28 + + MIN( - 45 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1302
SELECT - 28 + + MIN ( - 45 ) AS col2
----
-73

query I rowsort
SELECT DISTINCT ( 12 ) AS col2
----
12

query I rowsort
SELECT DISTINCT + 64 * 61
----
3904

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT + NULLIF ( + + SUM( ALL + + 18 ), + 58 )
----
18

skipif mysql # not compatible
query I rowsort label-1305
SELECT + NULLIF ( + + SUM ( ALL + + 18 ), + 58 )
----
18

query I rowsort
SELECT + 2 * + - 57
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT - NULLIF ( ( + CASE 27 WHEN + + 28 THEN NULL ELSE 38 + - ( - 81 ) END ), + COUNT( * ) ) * 94
----
-11186

skipif mysql # not compatible
query I rowsort label-1307
SELECT - NULLIF ( ( + CASE 27 WHEN + + 28 THEN NULL ELSE 38 + - ( - 81 ) END ), + COUNT ( * ) ) * 94
----
-11186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1308
SELECT - 5 / 53 * CASE + COUNT( DISTINCT 6 ) WHEN + 76 + 61 / - 90 / - COALESCE ( - - 43, ( + - AVG ( + 26 ) ) ) - + + COALESCE ( - 19, - 30 + COUNT( * ), + + 10 * + 77 / + 51 ) + - - 24 THEN NULL ELSE - ( - 70 ) END + 82 * + 85 + + 86 + + MIN( ALL - - 26 ) * + - CASE CAST( ( - 65 ) AS DECIMAL ) WHEN - CAST( NULL AS SIGNED ) + - 28 THEN - 73 WHEN - - ( - 83 ) THEN + 66 + + 85 - + - 94 + - - 42 * - 58 WHEN - COALESCE ( + NULLIF ( 40, 85 * - 79 ), - 14 * + 35, - 86 * 65 + + 84 ) + - 33 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT - 5 / 53 * CASE + COUNT ( DISTINCT 6 ) WHEN + 76 + 61 / - 90 / - COALESCE ( - - 43, ( + - AVG ( + 26 ) ) ) - + + COALESCE ( - 19, - 30 + COUNT ( * ), + + 10 * + 77 / + 51 ) + - - 24 THEN NULL ELSE - ( - 70 ) END + 82 * + 85 + + 86 + + MIN ( ALL - - 26 ) * + - CASE CAST ( ( - 65 ) AS REAL ) WHEN - CAST ( NULL AS INTEGER ) + - 28 THEN - 73 WHEN - - ( - 83 ) THEN + 66 + + 85 - + - 94 + - - 42 * - 58 WHEN - COALESCE ( + NULLIF ( 40, 85 * - 79 ), - 14 * + 35, - 86 * 65 + + 84 ) + - 33 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1309
SELECT - 84 * - 44 AS col2, + CAST( NULL AS SIGNED ) + + - 74
----
3696
NULL

skipif mysql # not compatible
query II rowsort label-1309
SELECT - 84 * - 44 AS col2, + CAST ( NULL AS INTEGER ) + + - 74
----
3696
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1310
SELECT ALL + 2 DIV COUNT( * ) * CAST( 69 AS SIGNED ) + + NULLIF ( ( + ( + - COUNT( * ) ) ), - + 31 )
----
137

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL + 2 / COUNT ( * ) * CAST ( 69 AS INTEGER ) + + NULLIF ( ( + ( + - COUNT ( * ) ) ), - + 31 )
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT + NULLIF ( - + 9, - NULLIF ( - - MAX( DISTINCT + 56 ), - + 7 * - SUM( - 42 ) * 43 ) ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1311
SELECT + NULLIF ( - + 9, - NULLIF ( - - MAX ( DISTINCT + 56 ), - + 7 * - SUM ( - 42 ) * 43 ) ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1312
SELECT + 36 DIV + 51, - 18 * + + COUNT( + 4 ) col2
----
0
-18

skipif mysql # not compatible
query II rowsort label-1312
SELECT + 36 / + 51, - 18 * + + COUNT ( + 4 ) col2
----
0
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1313
SELECT - 0 DIV ( - + 38 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1313
SELECT - 0 / ( - + 38 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1314
SELECT ALL COUNT( * ) * MIN( - - 3 ) + + 18 * - - 97 + - 54 DIV + 80
----
1749

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL COUNT ( * ) * MIN ( - - 3 ) + + 18 * - - 97 + - 54 / + 80
----
1749

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

skipif mysql # not compatible
query I rowsort label-1315
SELECT ( + ( + ( - SUM ( + 72 ) ) ) )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1316
SELECT DISTINCT - - COALESCE ( + - 7, - + CAST( - COUNT( * ) AS SIGNED ) + + - 71 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1316
SELECT DISTINCT - - COALESCE ( + - 7, - + CAST ( - COUNT ( * ) AS INTEGER ) + + - 71 ) AS col1
----
-7

query II rowsort
SELECT DISTINCT - 3 * 67 AS col0, 55
----
-201
55

query I rowsort
SELECT DISTINCT + 34 - + 65 + - + 99
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1319
SELECT + 64 * CAST( ( + 17 ) AS SIGNED ) + + - 70 * - + 21
----
2558

skipif mysql # not compatible
query I rowsort label-1319
SELECT + 64 * CAST ( ( + 17 ) AS INTEGER ) + + - 70 * - + 21
----
2558

onlyif mysql # aggregate syntax: 
query II rowsort label-1320
SELECT - ( MAX( DISTINCT - + 7 ) ) AS col0, + 42
----
7
42

skipif mysql # not compatible
query II rowsort label-1320
SELECT - ( MAX ( DISTINCT - + 7 ) ) AS col0, + 42
----
7
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1321
SELECT - + 52 * + 22 - + CAST( + 69 AS SIGNED )
----
-1213

skipif mysql # not compatible
query I rowsort label-1321
SELECT - + 52 * + 22 - + CAST ( + 69 AS INTEGER )
----
-1213

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT 9 * 60 DIV 9
----
60

skipif mysql # not compatible
query I rowsort label-1322
SELECT 9 * 60 / 9
----
60

query I rowsort
SELECT 39 + - 49 * - 90 col2
----
4449

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT MIN( - + 78 ) + + + 19
----
-59

skipif mysql # not compatible
query I rowsort label-1324
SELECT MIN ( - + 78 ) + + + 19
----
-59

query I rowsort
SELECT DISTINCT + 11 * 8 AS col0
----
88

query I rowsort
SELECT ALL - 0 * 97 + - - 13
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT + 39 * + + 89 * - 19 * - COUNT( * ) AS col0
----
65949

skipif mysql # not compatible
query I rowsort label-1327
SELECT + 39 * + + 89 * - 19 * - COUNT ( * ) AS col0
----
65949

onlyif mysql # aggregate syntax: 
query II rowsort label-1328
SELECT 59 - 34 - + 86, - MAX( + ( - 23 ) ) AS col1
----
-61
23

skipif mysql # not compatible
query II rowsort label-1328
SELECT 59 - 34 - + 86, - MAX ( + ( - 23 ) ) AS col1
----
-61
23

query I rowsort
SELECT ALL 32 + 92 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL - 14 + COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - 14 + COUNT ( * ) AS col2
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-1331
SELECT 78 * 12 DIV 24 col2, + 57 AS col2
----
39
57

skipif mysql # not compatible
query II rowsort label-1331
SELECT 78 * 12 / 24 col2, + 57 AS col2
----
39
57

query II rowsort
SELECT ( 92 ) * - 30 + 57 * + - ( 24 ) AS col2, 54 * + 24 AS col0
----
-4128
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT ALL + 42 + + CASE - - 65 WHEN COUNT( * ) THEN NULL WHEN 86 * + 65 / + - 65 + 64 + COUNT( * ) THEN NULL ELSE + + 4 * + - COUNT( * ) * + - 7 END
----
70

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL + 42 + + CASE - - 65 WHEN COUNT ( * ) THEN NULL WHEN 86 * + 65 / + - 65 + 64 + COUNT ( * ) THEN NULL ELSE + + 4 * + - COUNT ( * ) * + - 7 END
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1334
SELECT 4 AS col0, - 87 + - - CAST( NULL AS SIGNED ) - - 85 * + 39 AS col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-1334
SELECT 4 AS col0, - 87 + - - CAST ( NULL AS INTEGER ) - - 85 * + 39 AS col1
----
4
NULL

query I rowsort
SELECT ALL 72 + - 45 col0
----
27

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1338
SELECT DISTINCT - 51, CAST( + COALESCE ( - 47, - AVG ( 79 ), + - 50 * 37 ) AS SIGNED ) AS col1
----
-51
-47

skipif mysql # not compatible
query II rowsort label-1338
SELECT DISTINCT - 51, CAST ( + COALESCE ( - 47, - AVG ( 79 ), + - 50 * 37 ) AS INTEGER ) AS col1
----
-51
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1339
SELECT 98, + CASE - + 60 WHEN + 75 THEN - 50 + 45 + - COUNT( * ) + + 95 WHEN - - 83 THEN 35 * - 0 - - 80 END + + 0 * 68 + - ( + 87 ) + 36 * + - ( + 78 ) + + MAX( + CAST( NULL AS SIGNED ) ) AS col0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-1339
SELECT 98, + CASE - + 60 WHEN + 75 THEN - 50 + 45 + - COUNT ( * ) + + 95 WHEN - - 83 THEN 35 * - 0 - - 80 END + + 0 * 68 + - ( + 87 ) + 36 * + - ( + 78 ) + + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0
----
98
NULL

query II rowsort
SELECT ALL - 64 AS col1, + 44
----
-64
44

query I rowsort
SELECT ALL + 15 + + 72
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT 79 * COUNT( * ) - - - 98 - - - 13
----
-32

skipif mysql # not compatible
query I rowsort label-1343
SELECT 79 * COUNT ( * ) - - - 98 - - - 13
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT 28 * - 45 * - ( - COUNT( * ) )
----
-1260

skipif mysql # not compatible
query I rowsort label-1344
SELECT 28 * - 45 * - ( - COUNT ( * ) )
----
-1260

onlyif mysql # aggregate syntax: 
query II rowsort label-1345
SELECT ALL - - 32 AS col1, COUNT( DISTINCT - 67 ) col2
----
32
1

skipif mysql # not compatible
query II rowsort label-1345
SELECT ALL - - 32 AS col1, COUNT ( DISTINCT - 67 ) col2
----
32
1

query I rowsort
SELECT DISTINCT - - 91 - - 31
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1347
SELECT NULLIF ( ( MAX( + + 99 ) ), - COALESCE ( - - SUM( ALL - CAST( ( 8 ) AS SIGNED ) ), + - 94 * + 5, 80 * - COUNT( * ) ) * + CASE - - 31 WHEN 43 THEN NULL WHEN - NULLIF ( + 2, - 47 ) THEN - + 41 ELSE NULL END + - 53 * 14 ) * + 87 + - + 10 + - NULLIF ( - 83, 10 + + 2 ) AS col1, + 7 - 50 DIV + - 7 AS col1
----
8686
14

skipif mysql # not compatible
query II rowsort label-1347
SELECT NULLIF ( ( MAX ( + + 99 ) ), - COALESCE ( - - SUM ( ALL - CAST ( ( 8 ) AS INTEGER ) ), + - 94 * + 5, 80 * - COUNT ( * ) ) * + CASE - - 31 WHEN 43 THEN NULL WHEN - NULLIF ( + 2, - 47 ) THEN - + 41 ELSE NULL END + - 53 * 14 ) * + 87 + - + 10 + - NULLIF ( - 83, 10 + + 2 ) AS col1, + 7 - 50 / + - 7 AS col1
----
8686
14

query I rowsort
SELECT 85 * + 42
----
3570

onlyif mysql # aggregate syntax: 
query II rowsort label-1349
SELECT ALL - 75 AS col2, ( - - MIN( ALL 18 ) ) AS col1
----
-75
18

skipif mysql # not compatible
query II rowsort label-1349
SELECT ALL - 75 AS col2, ( - - MIN ( ALL 18 ) ) AS col1
----
-75
18

query I rowsort
SELECT - 47 + + 34
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1351
SELECT - NULLIF ( 1, - 34 ) DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1351
SELECT - NULLIF ( 1, - 34 ) / + 57 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1352
SELECT SUM( 84 ) * - COALESCE ( 95, ( - 79 ) ) * + - 31 DIV - + COUNT( * ) AS col0
----
-247380

skipif mysql # not compatible
query I rowsort label-1352
SELECT SUM ( 84 ) * - COALESCE ( 95, ( - 79 ) ) * + - 31 / - + COUNT ( * ) AS col0
----
-247380

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT - 22 * + COUNT( * ) * + 82 * - 60
----
108240

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT - 22 * + COUNT ( * ) * + 82 * - 60
----
108240

onlyif mysql # aggregate syntax: 
query II rowsort label-1354
SELECT ALL - - 4 AS col2, 31 * COUNT( * ) + + 12 col1
----
4
43

skipif mysql # not compatible
query II rowsort label-1354
SELECT ALL - - 4 AS col2, 31 * COUNT ( * ) + + 12 col1
----
4
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1355
SELECT - 44 AS col1, + CAST( NULL AS SIGNED ) AS col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-1355
SELECT - 44 AS col1, + CAST ( NULL AS INTEGER ) AS col1
----
-44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT ALL 18 * + 97 + + COUNT( * ) * - 71
----
1675

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL 18 * + 97 + + COUNT ( * ) * - 71
----
1675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1357
SELECT ALL - 73 + - + CAST( - 67 AS SIGNED ) * + 3 AS col0, - 35 AS col1
----
128
-35

skipif mysql # not compatible
query II rowsort label-1357
SELECT ALL - 73 + - + CAST ( - 67 AS INTEGER ) * + 3 AS col0, - 35 AS col1
----
128
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT DISTINCT 28, - COUNT( * ) col0
----
28
-1

skipif mysql # not compatible
query II rowsort label-1358
SELECT DISTINCT 28, - COUNT ( * ) col0
----
28
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL + MIN( DISTINCT + 79 ) + + 0 * - NULLIF ( + 28, COALESCE ( + 73, + COUNT( * ) * 94 + - + COUNT( * ) ) )
----
79

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + MIN ( DISTINCT + 79 ) + + 0 * - NULLIF ( + 28, COALESCE ( + 73, + COUNT ( * ) * 94 + - + COUNT ( * ) ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT + COUNT( * ) + + 35 + + 88 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-1360
SELECT + COUNT ( * ) + + 35 + + 88 AS col0
----
124

query I rowsort
SELECT DISTINCT - 70 + - 45
----
-115

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1363
SELECT - 57 AS col2, - CASE - 72 WHEN 77 * + 72 * - + 88 THEN SUM( ALL 68 ) END + - 64 * - COUNT( * ) * - - COUNT( * ) * - 85 AS col1
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-1363
SELECT - 57 AS col2, - CASE - 72 WHEN 77 * + 72 * - + 88 THEN SUM ( ALL 68 ) END + - 64 * - COUNT ( * ) * - - COUNT ( * ) * - 85 AS col1
----
-57
NULL

query I rowsort
SELECT - 37 * + 95 AS col1
----
-3515

query I rowsort
SELECT NULLIF ( + 32, + - 56 ) - + - 90 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT 23 * - 13 * + COUNT( * )
----
-299

skipif mysql # not compatible
query I rowsort label-1366
SELECT 23 * - 13 * + COUNT ( * )
----
-299

onlyif mysql # aggregate syntax: 
query II rowsort label-1367
SELECT 94 * COUNT( * ), + 2 * 72 * + 75 AS col2
----
94
10800

skipif mysql # not compatible
query II rowsort label-1367
SELECT 94 * COUNT ( * ), + 2 * 72 * + 75 AS col2
----
94
10800

onlyif mysql # aggregate syntax: 
query II rowsort label-1368
SELECT DISTINCT 20 * - 32, ( - COUNT( * ) ) AS col1
----
-640
-1

skipif mysql # not compatible
query II rowsort label-1368
SELECT DISTINCT 20 * - 32, ( - COUNT ( * ) ) AS col1
----
-640
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1369
SELECT ALL - CASE 56 WHEN - COUNT( DISTINCT - + 3 ) + 79 THEN + 70 * + - 48 ELSE - 16 END * CASE COUNT( * ) WHEN + - 53 THEN NULL WHEN + 65 * + 22 + 49 THEN + 50 END * + 30 + 56 + COUNT( + 14 ) AS col2, COUNT( * ) + + - 13 - + CASE + 54 WHEN MAX( 86 ) THEN + 60 ELSE - 8 + - 7 * + 42 END col2
----
NULL
290

skipif mysql # not compatible
query II rowsort label-1369
SELECT ALL - CASE 56 WHEN - COUNT ( DISTINCT - + 3 ) + 79 THEN + 70 * + - 48 ELSE - 16 END * CASE COUNT ( * ) WHEN + - 53 THEN NULL WHEN + 65 * + 22 + 49 THEN + 50 END * + 30 + 56 + COUNT ( + 14 ) AS col2, COUNT ( * ) + + - 13 - + CASE + 54 WHEN MAX ( 86 ) THEN + 60 ELSE - 8 + - 7 * + 42 END col2
----
NULL
290

query I rowsort
SELECT 13 + - 44
----
-31

query I rowsort
SELECT ALL - ( 94 ) * + 93 * - ( 44 ) AS col2
----
384648

query I rowsort
SELECT 32 + 12
----
44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1374
SELECT 3 DIV CASE + + 23 WHEN COUNT( * ) THEN + - ( 8 ) WHEN 68 DIV - - 57 THEN + NULLIF ( - 25, - 53 ) - + 77 WHEN - 67 * - CAST( NULL AS DECIMAL ) THEN + 75 * - 10 + - 17 * - - 44 ELSE CAST( NULL AS SIGNED ) END AS col1, CAST( + + 25 AS SIGNED ) DIV + - 82
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1374
SELECT 3 / CASE + + 23 WHEN COUNT ( * ) THEN + - ( 8 ) WHEN 68 / - - 57 THEN + NULLIF ( - 25, - 53 ) - + 77 WHEN - 67 * - CAST ( NULL AS REAL ) THEN + 75 * - 10 + - 17 * - - 44 ELSE CAST ( NULL AS INTEGER ) END AS col1, CAST ( + + 25 AS INTEGER ) / + - 82
----
NULL
0

query I rowsort
SELECT 38 * + 72
----
2736

query I rowsort
SELECT + NULLIF ( - 33, 97 ) AS col1
----
-33

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

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

query I rowsort
SELECT DISTINCT - + 56 * - 53 - + 75 + + ( ( - + 83 ) ) + 31
----
2841

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1380
SELECT - 92 * COUNT( * ) * - 26 * CAST( NULL AS DECIMAL ) * + + 0 - 8 + 25 + 5 + + 80 + - + 20 - ( + - 41 ) + - 72 * + 63 + + 78 + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT - 92 * COUNT ( * ) * - 26 * CAST ( NULL AS REAL ) * + + 0 - 8 + 25 + 5 + + 80 + - + 20 - ( + - 41 ) + - 72 * + 63 + + 78 + 9 AS col0
----
NULL

query I rowsort
SELECT - 36 - 86 col1
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1382
SELECT - + CASE CAST( COALESCE ( - 54, - 15 * + 13 - + NULLIF ( 38, - 8 * - 64 * - 71 ) - + 93, MIN( + 2 ) ) AS SIGNED ) WHEN 20 * - + 4 + - 99 + 86 THEN + + 32 / 43 * + 11 + 19 + + COUNT( * ) * + 38 WHEN - - CAST( NULL AS SIGNED ) THEN 23 END * + MIN( 89 ) + - 30 - - + COUNT( DISTINCT NULLIF ( - 16, 77 ) ) + 8 / + 69 * + 62 + - + 49 + - COUNT( 18 ) AS col1, MAX( ALL + 39 )
----
NULL
39

skipif mysql # not compatible
query II rowsort label-1382
SELECT - + CASE CAST ( COALESCE ( - 54, - 15 * + 13 - + NULLIF ( 38, - 8 * - 64 * - 71 ) - + 93, MIN ( + 2 ) ) AS INTEGER ) WHEN 20 * - + 4 + - 99 + 86 THEN + + 32 / 43 * + 11 + 19 + + COUNT ( * ) * + 38 WHEN - - CAST ( NULL AS INTEGER ) THEN 23 END * + MIN ( 89 ) + - 30 - - + COUNT ( DISTINCT NULLIF ( - 16, 77 ) ) + 8 / + 69 * + 62 + - + 49 + - COUNT ( 18 ) AS col1, MAX ( ALL + 39 )
----
NULL
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1383
SELECT ALL 1 * + CAST( NULL AS SIGNED ) + 75 + + - 44 * COALESCE ( - 24, - 38 ) * - 14 + - ( MAX( - 2 ) ) + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL 1 * + CAST ( NULL AS INTEGER ) + 75 + + - 44 * COALESCE ( - 24, - 38 ) * - 14 + - ( MAX ( - 2 ) ) + 53 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL - 33 * - COUNT( * ) - 49 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL - 33 * - COUNT ( * ) - 49 AS col0
----
-16

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

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT - COUNT ( * ) / + + ( + 87 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT DISTINCT - + 71 + + - NULLIF ( - SUM( ALL + 25 ), COUNT( * ) * - + 56 ) - + 10 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT - + 71 + + - NULLIF ( - SUM ( ALL + 25 ), COUNT ( * ) * - + 56 ) - + 10 AS col2
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT + + 55 + MAX( DISTINCT + + 64 ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-1389
SELECT + + 55 + MAX ( DISTINCT + + 64 ) AS col1
----
119

query I rowsort
SELECT - + 86 * - 84 * + 85 * CASE WHEN ( - 30 IS NULL ) THEN - 15 ELSE NULL END * - 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT + 79 * + 96 * - MAX( + 97 ) AS col2
----
-735648

skipif mysql # not compatible
query I rowsort label-1391
SELECT + 79 * + 96 * - MAX ( + 97 ) AS col2
----
-735648

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT ALL 85 * + ( ( + ( COUNT( * ) ) ) ) col1
----
85

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL 85 * + ( ( + ( COUNT ( * ) ) ) ) col1
----
85

query II rowsort
SELECT ALL + 14 + 34 * 80 * 67 * + 6 AS col2, 94
----
1093454
94

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

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

query I rowsort
SELECT ALL 79 + 19 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1396
SELECT DISTINCT COALESCE ( + 14, - + CAST( + ( 53 ) AS SIGNED ), + ( + NULLIF ( 42, + 65 + - - 22 ) ) ) + + 47, 21 col1
----
61
21

skipif mysql # not compatible
query II rowsort label-1396
SELECT DISTINCT COALESCE ( + 14, - + CAST ( + ( 53 ) AS INTEGER ), + ( + NULLIF ( 42, + 65 + - - 22 ) ) ) + + 47, 21 col1
----
61
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1397
SELECT DISTINCT CAST( - + 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT CAST ( - + 1 AS INTEGER )
----
-1

query I rowsort
SELECT ALL 43 - - 57
----
100

query I rowsort
SELECT - 49 - + + 66 * - + 50 + + 49 AS col1
----
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT + 55 * + 58 * + MAX( + + 57 )
----
181830

skipif mysql # not compatible
query I rowsort label-1400
SELECT + 55 * + 58 * + MAX ( + + 57 )
----
181830

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT - 25 - 60 - 90 * + - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1401
SELECT - 25 - 60 - 90 * + - COUNT ( * ) AS col1
----
5

query I rowsort
SELECT + 89 * 29 col0
----
2581

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT - ( + + CASE - - COALESCE ( - SUM( 78 ), + 31 ) WHEN + + 98 - NULLIF ( - CASE - NULLIF ( CASE COALESCE ( + 2, 82 ) WHEN - 52 * - ( 40 ) THEN - - COALESCE ( + 57, - 67, - - 71 ) ELSE 73 END, - + ( + 8 ) ) WHEN - 51 * + 96 THEN + AVG ( - 63 ) END, + 46 ) + - 2 THEN NULL ELSE + 22 END )
----
-22

skipif mysql # not compatible
query I rowsort label-1403
SELECT - ( + + CASE - - COALESCE ( - SUM ( 78 ), + 31 ) WHEN + + 98 - NULLIF ( - CASE - NULLIF ( CASE COALESCE ( + 2, 82 ) WHEN - 52 * - ( 40 ) THEN - - COALESCE ( + 57, - 67, - - 71 ) ELSE 73 END, - + ( + 8 ) ) WHEN - 51 * + 96 THEN + AVG ( - 63 ) END, + 46 ) + - 2 THEN NULL ELSE + 22 END )
----
-22

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

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

query I rowsort
SELECT + 54 * + 37
----
1998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1406
SELECT ALL 65 * - + NULLIF ( + COUNT( * ), - ( - NULLIF ( - COUNT( * ), NULLIF ( - 3, + + CAST( NULL AS SIGNED ) * + 78 * - CAST( NULL AS SIGNED ) + + - 7 + - + 12 ) - 27 ) ) * 21 + NULLIF ( - COALESCE ( - + 61, ( + 65 ) ), + CAST( - - 62 AS SIGNED ) ) + COUNT( * ) ) * - 82
----
5330

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL 65 * - + NULLIF ( + COUNT ( * ), - ( - NULLIF ( - COUNT ( * ), NULLIF ( - 3, + + CAST ( NULL AS INTEGER ) * + 78 * - CAST ( NULL AS INTEGER ) + + - 7 + - + 12 ) - 27 ) ) * 21 + NULLIF ( - COALESCE ( - + 61, ( + 65 ) ), + CAST ( - - 62 AS INTEGER ) ) + COUNT ( * ) ) * - 82
----
5330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT ALL + 26 * + CAST( - 22 AS SIGNED )
----
-572

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL + 26 * + CAST ( - 22 AS INTEGER )
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT + COUNT( ALL 99 ) * 76
----
76

skipif mysql # not compatible
query I rowsort label-1408
SELECT + COUNT ( ALL 99 ) * 76
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT + - CASE 49 WHEN 23 THEN + 75 ELSE - 74 END DIV 27 * - 78 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-1409
SELECT + - CASE 49 WHEN 23 THEN + 75 ELSE - 74 END / 27 * - 78 AS col0
----
-156

query I rowsort
SELECT + 78 * + - 25 + - - 92 AS col2
----
-1858

query I rowsort
SELECT + - 26 * - 36 * - ( + - ( - 92 ) ) * - 45 - + 89
----
3874951

onlyif mysql # DIV for integer division: 
query II rowsort label-1412
SELECT + 42 DIV ( + 93 ) AS col0, + 99 * - 37
----
0
-3663

skipif mysql # not compatible
query II rowsort label-1412
SELECT + 42 / ( + 93 ) AS col0, + 99 * - 37
----
0
-3663

query I rowsort
SELECT DISTINCT + NULLIF ( - 88, + 52 ) AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT + 69 + + 1 * + 87 DIV + 91 col0
----
69

skipif mysql # not compatible
query I rowsort label-1414
SELECT + 69 + + 1 * + 87 / + 91 col0
----
69

query I rowsort
SELECT ALL - 81 * + 45 AS col2
----
-3645

query I rowsort
SELECT + + 17 col0
----
17

query II rowsort
SELECT ALL + 25 * + ( - + 92 ) + 51 + - 67, 72 + + 20 AS col0
----
-2316
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT + - COUNT( * ) * 53 * 4 AS col2
----
-212

skipif mysql # not compatible
query I rowsort label-1418
SELECT + - COUNT ( * ) * 53 * 4 AS col2
----
-212

query II rowsort
SELECT ALL - COALESCE ( + - 76, 80 ) * 86 + - 85, 62 * + COALESCE ( 69, - 3 ) * 68 AS col1
----
6451
290904

query II rowsort
SELECT - 52 AS col2, - 98
----
-52
-98

query I rowsort
SELECT - 28 * 32 AS col2
----
-896

query I rowsort
SELECT - + 52 + 21
----
-31

query I rowsort
SELECT DISTINCT - 88 * + 38
----
-3344

query I rowsort
SELECT ALL - 67 * + - 6 + + 61 + 44
----
507

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT DISTINCT NULLIF ( - - COALESCE ( - 70, 58 ), - - 0 - COUNT( * ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT NULLIF ( - - COALESCE ( - 70, 58 ), - - 0 - COUNT ( * ) ) AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1426
SELECT - COUNT( - 2 ) * 65 * - COUNT( * ) * + CAST( NULL AS SIGNED ) + 36 + AVG ( ALL 21 ) / 57 * + ( - 46 ) - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1426
SELECT - COUNT ( - 2 ) * 65 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 36 + AVG ( ALL 21 ) / 57 * + ( - 46 ) - 12 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 1 * + 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT - MAX( 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1428
SELECT - MAX ( 20 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1429
SELECT ALL ( + 60 ) AS col0, SUM( ALL 4 ) AS col1
----
60
4

skipif mysql # not compatible
query II rowsort label-1429
SELECT ALL ( + 60 ) AS col0, SUM ( ALL 4 ) AS col1
----
60
4

query I rowsort
SELECT - 31 - + ( 86 ) AS col0
----
-117

query II rowsort
SELECT DISTINCT 23 AS col0, 99 + + + 24
----
23
123

query II rowsort
SELECT 12 + 8, 99 AS col0
----
20
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT NULLIF ( + 80, COUNT( * ) ) - - 58 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-1433
SELECT NULLIF ( + 80, COUNT ( * ) ) - - 58 AS col1
----
138

query I rowsort
SELECT 22 + 18 * - - 24
----
454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1435
SELECT DISTINCT + 66 DIV + + MAX( DISTINCT 17 )
----
3

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT + 66 / + + MAX ( DISTINCT 17 )
----
3

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

skipif mysql # not compatible
query I rowsort label-1436
SELECT COUNT ( * ) / + - 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT COUNT( * ) + - 31 * + 53 * - 41 + + 75 col1
----
67439

skipif mysql # not compatible
query I rowsort label-1437
SELECT COUNT ( * ) + - 31 * + 53 * - 41 + + 75 col1
----
67439

query II rowsort
SELECT ALL 40 AS col0, + 62 + - 79 AS col0
----
40
-17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1440
SELECT ALL 97 AS col2, 59 / - CASE CAST( NULL AS SIGNED ) WHEN - 98 * 51 * COUNT( * ) * + 97 * COUNT( * ) * - 79 * - - 19 - + ( + 10 ) THEN + 68 WHEN + - NULLIF ( + 75, ( + 80 ) + COUNT( * ) * - 36 * + 63 + - - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + - 28 ) + + + 5 THEN + 22 ELSE NULL END
----
97
NULL

skipif mysql # not compatible
query II rowsort label-1440
SELECT ALL 97 AS col2, 59 / - CASE CAST ( NULL AS INTEGER ) WHEN - 98 * 51 * COUNT ( * ) * + 97 * COUNT ( * ) * - 79 * - - 19 - + ( + 10 ) THEN + 68 WHEN + - NULLIF ( + 75, ( + 80 ) + COUNT ( * ) * - 36 * + 63 + - - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + - 28 ) + + + 5 THEN + 22 ELSE NULL END
----
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT + + 79 DIV - + 50 + - 75 + + 1 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-1441
SELECT + + 79 / - + 50 + - 75 + + 1 AS col0
----
-75

query I rowsort
SELECT 70 * - 84
----
-5880

query I rowsort
SELECT COALESCE ( + 65, - 21 ) AS col2
----
65

query I rowsort
SELECT 29 + - + 37 * - 7 col1
----
288

query I rowsort
SELECT - 31 * + 32 * - + 86
----
85312

onlyif mysql # aggregate syntax: 
query II rowsort label-1446
SELECT + + 62, COUNT( * ) + - SUM( ALL 74 ) AS col0
----
62
-73

skipif mysql # not compatible
query II rowsort label-1446
SELECT + + 62, COUNT ( * ) + - SUM ( ALL 74 ) AS col0
----
62
-73

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

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

query II rowsort
SELECT + - 9 AS col1, - 45 * + 34 + - 6 AS col2
----
-9
-1536

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT DISTINCT - 68, SUM( - 68 ) + + 68 + - 3 AS col1
----
-68
-3

skipif mysql # not compatible
query II rowsort label-1449
SELECT DISTINCT - 68, SUM ( - 68 ) + + 68 + - 3 AS col1
----
-68
-3

query I rowsort
SELECT DISTINCT - 74 + 60 + 29
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT ALL + 11 * ( MAX( DISTINCT - ( - - 73 ) ) ) AS col0
----
-803

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + 11 * ( MAX ( DISTINCT - ( - - 73 ) ) ) AS col0
----
-803

onlyif mysql # DIV for integer division: 
query I rowsort label-1452
SELECT - 33 * 47 DIV + 19 + + - 68 * + ( + - 34 ) AS col0
----
2231

skipif mysql # not compatible
query I rowsort label-1452
SELECT - 33 * 47 / + 19 + + - 68 * + ( + - 34 ) AS col0
----
2231

query II rowsort
SELECT DISTINCT - 37 col1, - 21 AS col1
----
-37
-21

query I rowsort
SELECT NULLIF ( + 45, + 81 )
----
45

query I rowsort
SELECT ALL 0 - - + 9 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT 57 * + SUM( - 68 ) AS col1
----
-3876

skipif mysql # not compatible
query I rowsort label-1456
SELECT 57 * + SUM ( - 68 ) AS col1
----
-3876

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT SUM( ALL 65 ) + COALESCE ( - 77, - COUNT( * ) ) * + ( - 35 )
----
2760

skipif mysql # not compatible
query I rowsort label-1457
SELECT SUM ( ALL 65 ) + COALESCE ( - 77, - COUNT ( * ) ) * + ( - 35 )
----
2760

query I rowsort
SELECT - 83 * 45 AS col2
----
-3735

query I rowsort
SELECT 16 - - 9 + 41 + + 66 AS col0
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1460
SELECT ALL COUNT( * ) - + COUNT( * ) + - 47 DIV 48
----
0

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

query I rowsort
SELECT 38 + + 76
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT 22 * - + CASE + MAX( DISTINCT 96 ) WHEN + 2 THEN - MIN( + 98 ) * - ( 57 ) + + 56 - + 79 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT 22 * - + CASE + MAX ( DISTINCT 96 ) WHEN + 2 THEN - MIN ( + 98 ) * - ( 57 ) + + 56 - + 79 * + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1463
SELECT DISTINCT COALESCE ( + - 87, - CAST( - 9 AS SIGNED ), - - COUNT( * ) ) * - 31
----
2697

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT COALESCE ( + - 87, - CAST ( - 9 AS INTEGER ), - - COUNT ( * ) ) * - 31
----
2697

query I rowsort
SELECT 47 * 11
----
517

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT DISTINCT - 39 + - 41 + + 75 * + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT - 39 + - 41 + + 75 * + COUNT ( * )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1467
SELECT - 15 / - CAST( + CASE + 90 WHEN - 31 * + + 51 THEN + + 0 WHEN - - 33 THEN - 87 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT - 15 / - CAST ( + CASE + 90 WHEN - 31 * + + 51 THEN + + 0 WHEN - - 33 THEN - 87 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL - + 7 + 64 * - COALESCE ( + + MAX( ALL - 16 ), 81 ) * + - CASE COUNT( * ) WHEN + ( + ( + MIN( DISTINCT 97 ) ) ) - + ( + 23 ) THEN - 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - + 7 + 64 * - COALESCE ( + + MAX ( ALL - 16 ), 81 ) * + - CASE COUNT ( * ) WHEN + ( + ( + MIN ( DISTINCT 97 ) ) ) - + ( + 23 ) THEN - 7 END
----
NULL

query I rowsort
SELECT + 24 * + 23 - + 86 * + - 58 AS col0
----
5540

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT ALL - ( - 48 ) DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL - ( - 48 ) / + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL + 38 * + 91 * COUNT( * ) * MIN( DISTINCT 20 ) + - + 67
----
69093

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL + 38 * + 91 * COUNT ( * ) * MIN ( DISTINCT 20 ) + - + 67
----
69093

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1472
SELECT 51 DIV + ( - + COUNT( * ) ) + 18 * + 77 * + + 44 + + 97 - + - 55 * COUNT( * ) * - + 89 AS col1, 90 * - 60 AS col2
----
56135
-5400

skipif mysql # not compatible
query II rowsort label-1472
SELECT 51 / + ( - + COUNT ( * ) ) + 18 * + 77 * + + 44 + + 97 - + - 55 * COUNT ( * ) * - + 89 AS col1, 90 * - 60 AS col2
----
56135
-5400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1473
SELECT ALL - 24 * - CAST( NULL AS SIGNED ) + 50 + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL - 24 * - CAST ( NULL AS INTEGER ) + 50 + 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT - COALESCE ( - 6, + 18 * - 22 * + 82 + + 47 ) + - COUNT( * ) * + MAX( ALL - 57 ) + + + 87 + - COUNT( * ) * + COUNT( * ) - + - 24 AS col0
----
173

skipif mysql # not compatible
query I rowsort label-1474
SELECT - COALESCE ( - 6, + 18 * - 22 * + 82 + + 47 ) + - COUNT ( * ) * + MAX ( ALL - 57 ) + + + 87 + - COUNT ( * ) * + COUNT ( * ) - + - 24 AS col0
----
173

query I rowsort
SELECT ALL + 54 * 37 AS col1
----
1998

onlyif mysql # DIV for integer division: 
query I rowsort label-1476
SELECT + 44 DIV - NULLIF ( + - ( + ( - - 91 ) ), 95 ) + + 26
----
26

skipif mysql # not compatible
query I rowsort label-1476
SELECT + 44 / - NULLIF ( + - ( + ( - - 91 ) ), 95 ) + + 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT - - 87 * + 50 + + + 6 - - 41 + - 63 * + COUNT( * ) + 29 * + 81
----
6683

skipif mysql # not compatible
query I rowsort label-1477
SELECT - - 87 * + 50 + + + 6 - - 41 + - 63 * + COUNT ( * ) + 29 * + 81
----
6683

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL + - 36 * - 22 - CASE - 7 WHEN - 15 THEN - 86 WHEN 33 + 86 THEN 47 + + 46 + - - 32 + + + 63 * COUNT( DISTINCT - 14 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + - 36 * - 22 - CASE - 7 WHEN - 15 THEN - 86 WHEN 33 + 86 THEN 47 + + 46 + - - 32 + + + 63 * COUNT ( DISTINCT - 14 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL - + NULLIF ( + - 81, + - 47 / - COUNT( * ) ) col2
----
81

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL - + NULLIF ( + - 81, + - 47 / - COUNT ( * ) ) col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT - + 58 * 26 + + - 57 + - 65 + + COUNT( * ) + - 15 * + 86
----
-2919

skipif mysql # not compatible
query I rowsort label-1480
SELECT - + 58 * 26 + + - 57 + - 65 + + COUNT ( * ) + - 15 * + 86
----
-2919

onlyif mysql # aggregate syntax: 
query II rowsort label-1481
SELECT ALL 7 * - 22 AS col1, NULLIF ( + ( + 8 ), - 33 * COUNT( * ) ) + + - COUNT( * ) AS col1
----
-154
7

skipif mysql # not compatible
query II rowsort label-1481
SELECT ALL 7 * - 22 AS col1, NULLIF ( + ( + 8 ), - 33 * COUNT ( * ) ) + + - COUNT ( * ) AS col1
----
-154
7

query I rowsort
SELECT - ( + 26 ) * 89 + + 21 + + 59 AS col1
----
-2234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1483
SELECT ALL - CAST( - ( + - ( ( - - COUNT( * ) ) ) ) AS SIGNED ) AS col2, + 63 + 93 AS col0
----
-1
156

skipif mysql # not compatible
query II rowsort label-1483
SELECT ALL - CAST ( - ( + - ( ( - - COUNT ( * ) ) ) ) AS INTEGER ) AS col2, + 63 + 93 AS col0
----
-1
156

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + COUNT( * ) * + SUM( DISTINCT + 3 ) + + 78
----
81

skipif mysql # not compatible
query I rowsort label-1485
SELECT + COUNT ( * ) * + SUM ( DISTINCT + 3 ) + + 78
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1486
SELECT 96 DIV NULLIF ( - ( + - 84 ), 34 * - + CASE - 7 WHEN - - 21 THEN NULL ELSE - MAX( ALL + 19 ) END )
----
1

skipif mysql # not compatible
query I rowsort label-1486
SELECT 96 / NULLIF ( - ( + - 84 ), 34 * - + CASE - 7 WHEN - - 21 THEN NULL ELSE - MAX ( ALL + 19 ) END )
----
1

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

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

query I rowsort
SELECT + 26 + + + 52
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT + NULLIF ( 13, - COUNT( * ) )
----
13

skipif mysql # not compatible
query I rowsort label-1489
SELECT + NULLIF ( 13, - COUNT ( * ) )
----
13

query I rowsort
SELECT + 2 + + 71
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1491
SELECT + 78 DIV + - NULLIF ( 19, - 7 * AVG ( ALL + 82 ) * + - ( COALESCE ( NULLIF ( - 32, 7 * - 48 ), - + 9 * - + 28 ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-1491
SELECT + 78 / + - NULLIF ( 19, - 7 * AVG ( ALL + 82 ) * + - ( COALESCE ( NULLIF ( - 32, 7 * - 48 ), - + 9 * - + 28 ) ) )
----
-4

query I rowsort
SELECT + 54 * 78 col2
----
4212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1493
SELECT DISTINCT 24 AS col1, 87 + - COUNT( * ) + + CAST( NULL AS SIGNED ) * - 69 * - - 3 + 60 col1
----
24
NULL

skipif mysql # not compatible
query II rowsort label-1493
SELECT DISTINCT 24 AS col1, 87 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 69 * - - 3 + 60 col1
----
24
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1494
SELECT ALL - 93 + + 8 DIV 56 DIV - + ( + CAST( + 80 AS SIGNED ) ), - 38 AS col0
----
-93
-38

skipif mysql # not compatible
query II rowsort label-1494
SELECT ALL - 93 + + 8 / 56 / - + ( + CAST ( + 80 AS INTEGER ) ), - 38 AS col0
----
-93
-38

query I rowsort
SELECT ALL 54 + 98
----
152

query I rowsort
SELECT + 18 * + 15
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT + 36 + - 66 + - NULLIF ( ( - 19 ), + COALESCE ( 23, - 53, + - ( COUNT( * ) ) ) )
----
-11

skipif mysql # not compatible
query I rowsort label-1497
SELECT + 36 + - 66 + - NULLIF ( ( - 19 ), + COALESCE ( 23, - 53, + - ( COUNT ( * ) ) ) )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1498
SELECT - 86 AS col1, CAST( - COALESCE ( - - 75, - COUNT( * ), + 80 * ( - COALESCE ( - COUNT( * ), CAST( + + 50 AS DECIMAL ), 84 ) ) ) AS SIGNED )
----
-86
-75

skipif mysql # not compatible
query II rowsort label-1498
SELECT - 86 AS col1, CAST ( - COALESCE ( - - 75, - COUNT ( * ), + 80 * ( - COALESCE ( - COUNT ( * ), CAST ( + + 50 AS REAL ), 84 ) ) ) AS INTEGER )
----
-86
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT + 12 + COUNT( * ) + - CASE - - 45 WHEN + 11 THEN + - COALESCE ( 40, + - ( + 17 ) * + 55 - - ( 65 ) + COUNT( * ) + + + 33 * + 56 ) ELSE + + 13 END
----
0

skipif mysql # not compatible
query I rowsort label-1499
SELECT + 12 + COUNT ( * ) + - CASE - - 45 WHEN + 11 THEN + - COALESCE ( 40, + - ( + 17 ) * + 55 - - ( 65 ) + COUNT ( * ) + + + 33 * + 56 ) ELSE + + 13 END
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1501
SELECT - CAST( COUNT( * ) AS SIGNED ) - - 78
----
77

skipif mysql # not compatible
query I rowsort label-1501
SELECT - CAST ( COUNT ( * ) AS INTEGER ) - - 78
----
77

query I rowsort
SELECT ALL + 22 + 90
----
112

query I rowsort
SELECT + + 29 + - 11 col0
----
18

query I rowsort
SELECT DISTINCT 87 + - 98
----
-11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1506
SELECT ALL + - 75 + ( + - 5 ) * 47 * + + COALESCE ( + 46, - - 3 DIV + COUNT( * ) DIV + - 41 ) AS col2
----
-10885

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL + - 75 + ( + - 5 ) * 47 * + + COALESCE ( + 46, - - 3 / + COUNT ( * ) / + - 41 ) AS col2
----
-10885

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + 89 * + MIN( DISTINCT + ( 97 ) ) * - 47
----
-405751

skipif mysql # not compatible
query I rowsort label-1507
SELECT + 89 * + MIN ( DISTINCT + ( 97 ) ) * - 47
----
-405751

query I rowsort
SELECT ALL ( + + 58 ) AS col2
----
58

query II rowsort
SELECT - - 3 + - 6 + 87 AS col0, + 31
----
84
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1510
SELECT - - COALESCE ( + + 98, 59, - 66 ) + + 56 + + 32 * - 9 * - CAST( + + MIN( - 43 ) AS SIGNED ) AS col0
----
-12230

skipif mysql # not compatible
query I rowsort label-1510
SELECT - - COALESCE ( + + 98, 59, - 66 ) + + 56 + + 32 * - 9 * - CAST ( + + MIN ( - 43 ) AS INTEGER ) AS col0
----
-12230

onlyif mysql # DIV for integer division: 
query I rowsort label-1511
SELECT ALL - - 87 DIV + 11 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL - - 87 / + 11 AS col0
----
7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT + MAX( ( + - 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1514
SELECT + MAX ( ( + - 1 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT - 2 * + 74 * + COUNT( * )
----
-148

skipif mysql # not compatible
query I rowsort label-1515
SELECT - 2 * + 74 * + COUNT ( * )
----
-148

query I rowsort
SELECT DISTINCT - 79 * + 32 AS col0
----
-2528

query I rowsort
SELECT ALL + CASE 55 WHEN 47 * - 95 THEN - 31 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1518
SELECT ALL 20 * + SUM( - + CAST( + 93 AS SIGNED ) ) + + 30 - - - ( + + 7 ), 1 * 73 AS col1
----
-1837
73

skipif mysql # not compatible
query II rowsort label-1518
SELECT ALL 20 * + SUM ( - + CAST ( + 93 AS INTEGER ) ) + + 30 - - - ( + + 7 ), 1 * 73 AS col1
----
-1837
73

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

skipif mysql # not compatible
query I rowsort label-1519
SELECT - 39 * + + 96 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1520
SELECT ALL - 34 DIV 26 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - 34 / 26 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT + 25 DIV - ( + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT + 25 / - ( + 42 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1522
SELECT - MAX( ALL 3 ) AS col2, 97
----
-3
97

skipif mysql # not compatible
query II rowsort label-1522
SELECT - MAX ( ALL 3 ) AS col2, 97
----
-3
97

query I rowsort
SELECT ALL 63 * - - 6 + 45 col1
----
423

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + ( - 8 ) + + 16 * + + 14 + - + 16 + COUNT( * )
----
201

skipif mysql # not compatible
query I rowsort label-1525
SELECT + ( - 8 ) + + 16 * + + 14 + - + 16 + COUNT ( * )
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT + MAX( ALL + 25 ) + 15
----
40

skipif mysql # not compatible
query I rowsort label-1526
SELECT + MAX ( ALL + 25 ) + 15
----
40

query I rowsort
SELECT ALL 0 + + 93 col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1528
SELECT DISTINCT - 17 * - 94 AS col0, + SUM( COALESCE ( + + 0, - + 5 * - ( + 42 ) + + 12, - - 64 ) ) AS col2
----
1598
0

skipif mysql # not compatible
query II rowsort label-1528
SELECT DISTINCT - 17 * - 94 AS col0, + SUM ( COALESCE ( + + 0, - + 5 * - ( + 42 ) + + 12, - - 64 ) ) AS col2
----
1598
0

query I rowsort
SELECT ALL 53 + + 12 + + 65
----
130

onlyif mysql # DIV for integer division: 
query II rowsort label-1530
SELECT + 6 DIV - + 71 AS col2, + 5 AS col2
----
0
5

skipif mysql # not compatible
query II rowsort label-1530
SELECT + 6 / - + 71 AS col2, + 5 AS col2
----
0
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1531
SELECT ALL CASE 52 WHEN + 7 THEN - COUNT( * ) ELSE NULL END + - CAST( NULL AS SIGNED ) + + 70 + - 39 AS col2, 46 * + 94 + 71
----
NULL
4395

skipif mysql # not compatible
query II rowsort label-1531
SELECT ALL CASE 52 WHEN + 7 THEN - COUNT ( * ) ELSE NULL END + - CAST ( NULL AS INTEGER ) + + 70 + - 39 AS col2, 46 * + 94 + 71
----
NULL
4395

query I rowsort
SELECT - NULLIF ( + 10, - - 49 ) AS col1
----
-10

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT + - COUNT( * ) - - ( + + 61 )
----
60

skipif mysql # not compatible
query I rowsort label-1535
SELECT + - COUNT ( * ) - - ( + + 61 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT - + NULLIF ( + + COUNT( * ), + COUNT( * ) ) * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1536
SELECT - + NULLIF ( + + COUNT ( * ), + COUNT ( * ) ) * + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT + + 74 + 76 AS col2
----
150

query I rowsort
SELECT ALL 39 - - 87 - 33
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL + ( + MIN( 76 ) ) * + SUM( ALL 75 )
----
5700

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL + ( + MIN ( 76 ) ) * + SUM ( ALL 75 )
----
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT ALL + CASE + + 47 WHEN - COUNT( * ) THEN 25 * + COUNT( ALL - - 12 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL + CASE + + 47 WHEN - COUNT ( * ) THEN 25 * + COUNT ( ALL - - 12 ) END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT SUM( + + COALESCE ( + 74, 61 * + 89 ) ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1542
SELECT SUM ( + + COALESCE ( + 74, 61 * + 89 ) ) AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1543
SELECT + 76 DIV ( - - 11 ) + - - COUNT( * ) - - 41
----
48

skipif mysql # not compatible
query I rowsort label-1543
SELECT + 76 / ( - - 11 ) + - - COUNT ( * ) - - 41
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT - - COALESCE ( + + COUNT( + 24 ), + COUNT( * ), - NULLIF ( - 16, 15 * + - 86 + 79 ) + 79 ) * + 34
----
34

skipif mysql # not compatible
query I rowsort label-1544
SELECT - - COALESCE ( + + COUNT ( + 24 ), + COUNT ( * ), - NULLIF ( - 16, 15 * + - 86 + 79 ) + 79 ) * + 34
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1545
SELECT + - COUNT( * ) * - 44 DIV + 92 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1545
SELECT + - COUNT ( * ) * - 44 / + 92 + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT 72 * - - COUNT( * ) + + 43 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-1546
SELECT 72 * - - COUNT ( * ) + + 43 AS col2
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-1547
SELECT ( + COUNT( * ) ), + 7 * - 47 AS col0
----
1
-329

skipif mysql # not compatible
query II rowsort label-1547
SELECT ( + COUNT ( * ) ), + 7 * - 47 AS col0
----
1
-329

query I rowsort
SELECT 48 * + COALESCE ( + COALESCE ( - 40, 31 ), - 20 )
----
-1920

query I rowsort
SELECT 22 * - + 25 AS col2
----
-550

query I rowsort
SELECT ALL 85 + + 30 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT ALL COUNT( * ) + - ( - 61 ) * + 45 AS col2
----
2746

skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL COUNT ( * ) + - ( - 61 ) * + 45 AS col2
----
2746

query I rowsort
SELECT ALL + 93 + 89 - ( - - 87 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT 47 * - MAX( + 92 ) col1
----
-4324

skipif mysql # not compatible
query I rowsort label-1553
SELECT 47 * - MAX ( + 92 ) col1
----
-4324

query II rowsort
SELECT DISTINCT - ( - 61 ) * 21 AS col2, 0 + - + 65 + - + 51
----
1281
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT ALL + COUNT( ALL - 52 ) + - 42 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + COUNT ( ALL - 52 ) + - 42 AS col2
----
-41

query I rowsort
SELECT 37 + - CASE 98 WHEN + 32 + - + 9 THEN NULL WHEN - 70 THEN 43 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 21 + 90 + - - 36 col2
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT ALL - COUNT( * ) AS col0, 88 + - 84 + NULLIF ( 91, + COUNT( * ) + - MIN( + 39 ) + + 91 )
----
-1
95

skipif mysql # not compatible
query II rowsort label-1558
SELECT ALL - COUNT ( * ) AS col0, 88 + - 84 + NULLIF ( 91, + COUNT ( * ) + - MIN ( + 39 ) + + 91 )
----
-1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL - ( + MAX( DISTINCT + 9 ) ) * + 50 AS col1
----
-450

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL - ( + MAX ( DISTINCT + 9 ) ) * + 50 AS col1
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT DISTINCT + COUNT( DISTINCT + 92 ) + + 99 * 89 AS col1
----
8812

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT + COUNT ( DISTINCT + 92 ) + + 99 * 89 AS col1
----
8812

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT ALL + 58 - COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL + 58 - COUNT ( * ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT 82 + + COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1562
SELECT 82 + + COUNT ( * ) AS col2
----
83

query I rowsort
SELECT 53 + + 27 AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT DISTINCT + 86 DIV 83
----
1

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT + 86 / 83
----
1

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

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

query I rowsort
SELECT 72 + 71 AS col0
----
143

query I rowsort
SELECT ALL 11 * - 10 col0
----
-110

query I rowsort
SELECT 81 + + 82 * 13 AS col1
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT MIN( 45 ) * 43
----
1935

skipif mysql # not compatible
query I rowsort label-1569
SELECT MIN ( 45 ) * 43
----
1935

query I rowsort
SELECT ALL + 69 * 67
----
4623

query I rowsort
SELECT 7 + + 37
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT ( 37 ) + + 72 DIV 33 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-1572
SELECT ( 37 ) + + 72 / 33 AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1573
SELECT ( - 17 ) DIV + NULLIF ( + COUNT( * ) + 55 * - 48, 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1573
SELECT ( - 17 ) / + NULLIF ( + COUNT ( * ) + 55 * - 48, 79 ) AS col0
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL 67 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1576
SELECT DISTINCT - CASE - COUNT( * ) WHEN 9 THEN NULL WHEN 38 + COUNT( * ) THEN CASE COUNT( * ) WHEN - MIN( ALL - 72 ) THEN + COUNT( * ) * + 67 WHEN - CAST( + 43 AS SIGNED ) * 79 THEN + 32 * 75 ELSE - 54 END * + CASE - COUNT( * ) WHEN - 84 THEN + 83 ELSE + 24 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - CASE - COUNT ( * ) WHEN 9 THEN NULL WHEN 38 + COUNT ( * ) THEN CASE COUNT ( * ) WHEN - MIN ( ALL - 72 ) THEN + COUNT ( * ) * + 67 WHEN - CAST ( + 43 AS INTEGER ) * 79 THEN + 32 * 75 ELSE - 54 END * + CASE - COUNT ( * ) WHEN - 84 THEN + 83 ELSE + 24 END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT DISTINCT CASE - 34 WHEN - MIN( - 22 ) THEN NULL WHEN + 80 THEN ( 30 ) * 57 ELSE NULL END + + 44 * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT CASE - 34 WHEN - MIN ( - 22 ) THEN NULL WHEN + 80 THEN ( 30 ) * 57 ELSE NULL END + + 44 * 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT NULLIF ( + COUNT( * ), 28 * COUNT( * ) ) * 10 col0
----
10

skipif mysql # not compatible
query I rowsort label-1578
SELECT NULLIF ( + COUNT ( * ), 28 * COUNT ( * ) ) * 10 col0
----
10

query I rowsort
SELECT ALL NULLIF ( 79, + 3 / 52 ) * 72 AS col2
----
5688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1580
SELECT - SUM( 24 ) DIV 8 + + COALESCE ( - 85 + 54, 58 * - 83, 66 * 32 )
----
-34

skipif mysql # not compatible
query I rowsort label-1580
SELECT - SUM ( 24 ) / 8 + + COALESCE ( - 85 + 54, 58 * - 83, 66 * 32 )
----
-34

query I rowsort
SELECT ALL ( 94 ) + - 3 * 54 col1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-1582
SELECT - ( - 79 ) DIV 65 - 89 * COALESCE ( 80, 41 DIV - 39 )
----
-7119

skipif mysql # not compatible
query I rowsort label-1582
SELECT - ( - 79 ) / 65 - 89 * COALESCE ( 80, 41 / - 39 )
----
-7119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1583
SELECT ( - COUNT( DISTINCT 97 ) ) DIV ( ( 89 ) + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-1583
SELECT ( - COUNT ( DISTINCT 97 ) ) / ( ( 89 ) + 53 )
----
0

query I rowsort
SELECT 73 + 95 AS col2
----
168

query I rowsort
SELECT DISTINCT + 89 + + 51 AS col1
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT ALL + 63 * - ( + 78 DIV + 7 ) AS col0
----
-693

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + 63 * - ( + 78 / + 7 ) AS col0
----
-693

query I rowsort
SELECT 63 + - 17
----
46

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT 75 - + CASE 74 WHEN 65 THEN - ( 98 ) WHEN - 65 THEN NULL ELSE CAST( 4 AS SIGNED ) END
----
71

skipif mysql # not compatible
query I rowsort label-1589
SELECT 75 - + CASE 74 WHEN 65 THEN - ( 98 ) WHEN - 65 THEN NULL ELSE CAST ( 4 AS INTEGER ) END
----
71

query I rowsort
SELECT ALL + 72 * - 78 col1
----
-5616

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

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL - 0 * CAST ( 97 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT DISTINCT + 29 - - 3 AS col0
----
32

query I rowsort
SELECT 36 * 42 AS col0
----
1512

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1596
SELECT ALL - CASE - 73 WHEN ( - 11 ) * - 59 THEN CAST( - 82 AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL - CASE - 73 WHEN ( - 11 ) * - 59 THEN CAST ( - 82 AS REAL ) END AS col2
----
NULL

query I rowsort
SELECT 16 * + 50
----
800

query I rowsort
SELECT ALL 44 * + 65
----
2860

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT - COUNT( + 91 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1599
SELECT - COUNT ( + 91 ) AS col0
----
-1

query I rowsort
SELECT - - ( 29 ) * - 88
----
-2552

query I rowsort
SELECT + - 16 * 38
----
-608

query I rowsort
SELECT ALL + + 1 + 63 col0
----
64

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL + + COUNT ( * ) + 93 * + COUNT ( * ) AS col1
----
94

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

query I rowsort
SELECT DISTINCT - 28 + 36 AS col0
----
8

query I rowsort
SELECT ALL - 70 + - 69
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT + - 64 - + COALESCE ( + COUNT( * ), 9 + - 75, - ( - MIN( ALL 26 ) ), - SUM( ALL + 63 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1609
SELECT + - 64 - + COALESCE ( + COUNT ( * ), 9 + - 75, - ( - MIN ( ALL 26 ) ), - SUM ( ALL + 63 ) )
----
-65

query I rowsort
SELECT + 32 - - + 5
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT CASE - MIN( ALL 25 ) WHEN - 70 THEN NULL ELSE + 28 END col0
----
28

skipif mysql # not compatible
query I rowsort label-1611
SELECT CASE - MIN ( ALL 25 ) WHEN - 70 THEN NULL ELSE + 28 END col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1612
SELECT DISTINCT + COUNT( * ) * - 68 DIV 18 + 9
----
6

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT + COUNT ( * ) * - 68 / 18 + 9
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1613
SELECT COALESCE ( + CAST( NULL AS SIGNED ), + 27 - 77 * - MAX( 72 * + 72 ) ) col2
----
399195

skipif mysql # not compatible
query I rowsort label-1613
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), + 27 - 77 * - MAX ( 72 * + 72 ) ) col2
----
399195

query I rowsort
SELECT ALL + 8 * - - 59 + 66
----
538

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT CASE - 8 WHEN COUNT( * ) + CAST( NULL AS SIGNED ) THEN NULL ELSE - ( 31 ) END
----
-31

skipif mysql # not compatible
query I rowsort label-1616
SELECT CASE - 8 WHEN COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN NULL ELSE - ( 31 ) END
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT CASE MIN( ALL - 62 ) WHEN - 62 THEN NULL ELSE - 83 / + 45 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1617
SELECT CASE MIN ( ALL - 62 ) WHEN - 62 THEN NULL ELSE - 83 / + 45 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT + COUNT( * ) * - 0 - - CASE + COUNT( * ) + - 23 WHEN + MIN( 6 ) THEN - COUNT( * ) + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT + COUNT ( * ) * - 0 - - CASE + COUNT ( * ) + - 23 WHEN + MIN ( 6 ) THEN - COUNT ( * ) + COUNT ( * ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL + ( 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT ALL + COUNT( * ) * + MAX( ALL - 86 ) - - 80
----
-6

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + COUNT ( * ) * + MAX ( ALL - 86 ) - - 80
----
-6

query I rowsort
SELECT + COALESCE ( 7, - 44 + + 16 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT ALL 63 * - ( 32 ) - - NULLIF ( - COUNT( * ), - 36 ) AS col0
----
-2017

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL 63 * - ( 32 ) - - NULLIF ( - COUNT ( * ), - 36 ) AS col0
----
-2017

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT + NULLIF ( MIN( + NULLIF ( 90, + 96 ) ), + COUNT( DISTINCT 9 ) ) * COUNT( * ) col0
----
90

skipif mysql # not compatible
query I rowsort label-1624
SELECT + NULLIF ( MIN ( + NULLIF ( 90, + 96 ) ), + COUNT ( DISTINCT 9 ) ) * COUNT ( * ) col0
----
90

query I rowsort
SELECT ALL 48 * - 14
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT 76 * + - 58 + CASE NULLIF ( - 51, - 42 * 80 + - COUNT( * ) ) WHEN + 9 THEN COUNT( * ) * 11 END * - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT 76 * + - 58 + CASE NULLIF ( - 51, - 42 * 80 + - COUNT ( * ) ) WHEN + 9 THEN COUNT ( * ) * 11 END * - 78 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 83 * + + 26
----
2158

query I rowsort
SELECT + NULLIF ( 0, - ( 88 ) ) * - 41 col1
----
0

query I rowsort
SELECT + ( - 79 ) + - 82 * 94 AS col0
----
-7787

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

skipif mysql # not compatible
query I rowsort label-1630
SELECT - 13 / + + 80 - COALESCE ( COUNT ( * ), CAST ( + 94 AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT + COUNT( * ) * + - 94 + 31 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1631
SELECT + COUNT ( * ) * + - 94 + 31 AS col1
----
-63

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

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

query I rowsort
SELECT + + 95 * COALESCE ( 6, - 48 ) + 14 col2
----
584

onlyif mysql # DIV for integer division: 
query I rowsort label-1634
SELECT - + ( - 66 ) DIV + 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1634
SELECT - + ( - 66 ) / + 28 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1635
SELECT ALL + 6 DIV - 58 * + 23 + COUNT( + 69 ) * - NULLIF ( NULLIF ( 93, + COUNT( * ) * + 69 + COUNT( * ) * + 99 ) * 86, 2 + 11 )
----
-7998

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL + 6 / - 58 * + 23 + COUNT ( + 69 ) * - NULLIF ( NULLIF ( 93, + COUNT ( * ) * + 69 + COUNT ( * ) * + 99 ) * 86, 2 + 11 )
----
-7998

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT DISTINCT + 48 + CASE COALESCE ( 21, 93 - + COUNT( - 85 ) * ( 63 * + 83 ), - 2 - 84, - 60 ) WHEN 33 * 55 THEN NULL WHEN - 40 THEN NULL ELSE 88 END + - 1 * - COUNT( * ) * + 62
----
198

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT + 48 + CASE COALESCE ( 21, 93 - + COUNT ( - 85 ) * ( 63 * + 83 ), - 2 - 84, - 60 ) WHEN 33 * 55 THEN NULL WHEN - 40 THEN NULL ELSE 88 END + - 1 * - COUNT ( * ) * + 62
----
198

query I rowsort
SELECT DISTINCT - 84 * 76
----
-6384

query I rowsort
SELECT ALL + 25 * - 25
----
-625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1639
SELECT - 2 + - - CASE 85 WHEN MAX( - 66 ) + + COUNT( * ) THEN 29 * CAST( NULL AS SIGNED ) + - 96 WHEN + 87 THEN - 50 ELSE CAST( NULL AS SIGNED ) - - 85 * - 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT - 2 + - - CASE 85 WHEN MAX ( - 66 ) + + COUNT ( * ) THEN 29 * CAST ( NULL AS INTEGER ) + - 96 WHEN + 87 THEN - 50 ELSE CAST ( NULL AS INTEGER ) - - 85 * - 76 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT SUM( ALL 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-1640
SELECT SUM ( ALL 60 ) col2
----
60

query I rowsort
SELECT - 16 + - 67 AS col0
----
-83

query I rowsort
SELECT + 55 + - - 53 + + 99 AS col2
----
207

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

query I rowsort
SELECT - + 59 + + 16 * - 35 AS col1
----
-619

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT - + MIN( ALL 30 ) + - 10 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1645
SELECT - + MIN ( ALL 30 ) + - 10 AS col0
----
-40

query I rowsort
SELECT - - 87 col1
----
87

query I rowsort
SELECT ALL - 79 + - + 62 * + 45 AS col2
----
-2869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1648
SELECT DISTINCT 56 * + CAST( - AVG ( + 43 ) AS SIGNED )
----
-2408

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT 56 * + CAST ( - AVG ( + 43 ) AS INTEGER )
----
-2408

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT - CASE + - 5 WHEN - 8 THEN NULL WHEN + ( 97 ) * + ( 67 * 91 ) THEN - COUNT( 43 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT - CASE + - 5 WHEN - 8 THEN NULL WHEN + ( 97 ) * + ( 67 * 91 ) THEN - COUNT ( 43 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT ALL + - MAX( 10 ) + - 89 * - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL + - MAX ( 10 ) + - 89 * - COUNT ( * ) AS col1
----
79

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1652
SELECT COALESCE ( + + ( MAX( ALL + CAST( NULL AS SIGNED ) ) ), 86 + 92 * - 99 )
----
-9022

skipif mysql # not compatible
query I rowsort label-1652
SELECT COALESCE ( + + ( MAX ( ALL + CAST ( NULL AS INTEGER ) ) ), 86 + 92 * - 99 )
----
-9022

query I rowsort
SELECT ALL - 7 + - COALESCE ( 11, - 39 )
----
-18

query I rowsort
SELECT - 20 * - - 75 col1
----
-1500

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

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

query II rowsort
SELECT 18 AS col0, 27 + + 5
----
18
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1657
SELECT - 14 + - 8 + MIN( + 18 ) + 53 DIV CAST( - 92 DIV - SUM( 63 ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-1657
SELECT - 14 + - 8 + MIN ( + 18 ) + 53 / CAST ( - 92 / - SUM ( 63 ) AS INTEGER )
----
49

query I rowsort
SELECT + 78 + + 26 + + 46 - - 47
----
197

query I rowsort
SELECT DISTINCT - 90 * + 41 * - ( 62 ) col0
----
228780

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

skipif mysql # not compatible
query I rowsort label-1660
SELECT - 42 / COUNT ( * )
----
-42

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

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

query I rowsort
SELECT DISTINCT + 17 * + ( + 99 ) AS col2
----
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT + ( - + 67 ) + + + ( + MAX( 1 ) ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-1663
SELECT + ( - + 67 ) + + + ( + MAX ( 1 ) ) col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT - 6 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-1664
SELECT - 6 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT + COUNT( * ) * + 15 * + + 68
----
1020

skipif mysql # not compatible
query I rowsort label-1665
SELECT + COUNT ( * ) * + 15 * + + 68
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT - ( - ( - 59 ) ) - CASE MIN( 62 ) WHEN - 77 / COUNT( DISTINCT 84 ) THEN - COUNT( * ) * 43 WHEN 95 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT - ( - ( - 59 ) ) - CASE MIN ( 62 ) WHEN - 77 / COUNT ( DISTINCT 84 ) THEN - COUNT ( * ) * 43 WHEN 95 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 88 * - 38 AS col1
----
-3344

onlyif mysql # aggregate syntax: 
query II rowsort label-1668
SELECT ALL + 36 col1, - COUNT( * )
----
36
-1

skipif mysql # not compatible
query II rowsort label-1668
SELECT ALL + 36 col1, - COUNT ( * )
----
36
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT - 96 * + 21 * + - COUNT( * ) + 85 * 72
----
8136

skipif mysql # not compatible
query I rowsort label-1669
SELECT - 96 * + 21 * + - COUNT ( * ) + 85 * 72
----
8136

query II rowsort
SELECT ALL + 52 AS col1, 87 AS col2
----
52
87

query I rowsort
SELECT DISTINCT - 88 * - 42
----
3696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1672
SELECT DISTINCT AVG ( - + ( + - 57 ) ) * - 28 + CAST( NULL AS SIGNED ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT AVG ( - + ( + - 57 ) ) * - 28 + CAST ( NULL AS INTEGER ) * - 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1673
SELECT + CAST( NULL AS SIGNED ) * + 54 / 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT + CAST ( NULL AS INTEGER ) * + 54 / 7
----
NULL

query I rowsort
SELECT - 87 * - 20 * 83 * + 9 col1
----
1299780

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT ALL - COUNT( * ) + + COALESCE ( + 86, CASE + 77 WHEN + SUM( 61 ) THEN NULL WHEN + COUNT( 69 ) THEN NULL WHEN COUNT( * ) + 30 THEN + 23 END ) + + 10 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL - COUNT ( * ) + + COALESCE ( + 86, CASE + 77 WHEN + SUM ( 61 ) THEN NULL WHEN + COUNT ( 69 ) THEN NULL WHEN COUNT ( * ) + 30 THEN + 23 END ) + + 10 AS col0
----
95

query II rowsort
SELECT DISTINCT - - 61 AS col2, 72
----
61
72

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

skipif mysql # not compatible
query I rowsort label-1677
SELECT - SUM ( - - ( + 81 ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT + 53 * - + COUNT( * ) + - - 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1678
SELECT + 53 * - + COUNT ( * ) + - - 54 AS col2
----
1

query II rowsort
SELECT 88 AS col0, 52
----
88
52

query I rowsort
SELECT ALL + - 21 + - 56
----
-77

query I rowsort
SELECT ALL 50 + 55
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT DISTINCT - - 9 * + - COUNT( * ) - + COUNT( * ) * 31
----
-40

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT - - 9 * + - COUNT ( * ) - + COUNT ( * ) * 31
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT DISTINCT - 0 + + COALESCE ( - 7, 65 + - 86 * 32 ) DIV - 5 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - 0 + + COALESCE ( - 7, 65 + - 86 * 32 ) / - 5 AS col1
----
1

query I rowsort
SELECT ALL - 42 + + 93
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT 81 + COALESCE ( 66, - COUNT( * ) ) + 39 * 42
----
1785

skipif mysql # not compatible
query I rowsort label-1685
SELECT 81 + COALESCE ( 66, - COUNT ( * ) ) + 39 * 42
----
1785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1686
SELECT ALL + ( 33 ) - - - 41 * - NULLIF ( - 13 * - 56 + + CASE - CAST( + 90 AS SIGNED ) + - 53 WHEN 21 DIV 52 + - MIN( + 64 ) THEN NULL WHEN - 62 THEN + ( - 29 ) WHEN + COUNT( * ) THEN + 95 ELSE - 72 * + 77 END DIV 52, + 58 )
----
25535

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + ( 33 ) - - - 41 * - NULLIF ( - 13 * - 56 + + CASE - CAST ( + 90 AS INTEGER ) + - 53 WHEN 21 / 52 + - MIN ( + 64 ) THEN NULL WHEN - 62 THEN + ( - 29 ) WHEN + COUNT ( * ) THEN + 95 ELSE - 72 * + 77 END / 52, + 58 )
----
25535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1687
SELECT CAST( + + 58 AS SIGNED ) * CAST( 52 AS SIGNED )
----
3016

skipif mysql # not compatible
query I rowsort label-1687
SELECT CAST ( + + 58 AS INTEGER ) * CAST ( 52 AS INTEGER )
----
3016

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

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

query I rowsort
SELECT ALL - 3 * NULLIF ( + + 30, + - ( - 16 ) * 64 ) AS col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT COALESCE ( 59, 93 DIV 6, + COALESCE ( - ( 44 ), - 4 * 24, 48 DIV + 25 ) ) + 30
----
89

skipif mysql # not compatible
query I rowsort label-1690
SELECT COALESCE ( 59, 93 / 6, + COALESCE ( - ( 44 ), - 4 * 24, 48 / + 25 ) ) + 30
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT 50 + - - COUNT( * ) + + + 63 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-1691
SELECT 50 + - - COUNT ( * ) + + + 63 AS col0
----
114

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

skipif mysql # not compatible
query I rowsort label-1692
SELECT 56 * - COUNT ( 56 )
----
-56

query I rowsort
SELECT ALL 72 * 54 AS col2
----
3888

query I rowsort
SELECT 66 - + 96
----
-30

query I rowsort
SELECT 76 + - CASE + - 21 WHEN 28 + - 7 * ( + 28 * 72 ) THEN 30 * 64 ELSE NULL END + - 37 * 68
----
NULL

query I rowsort
SELECT 46 * + 42 * - 55 * 51 col1
----
-5419260

query I rowsort
SELECT 82 * 2
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1698
SELECT 85 + - COUNT( * ) + + + 45 * 0 DIV - 24
----
84

skipif mysql # not compatible
query I rowsort label-1698
SELECT 85 + - COUNT ( * ) + + + 45 * 0 / - 24
----
84

query I rowsort
SELECT ALL - NULLIF ( + 43, - - 20 ) AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1700
SELECT 1 DIV + - 71 * - 86 DIV + COUNT( * ) * + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT 1 / + - 71 * - 86 / + COUNT ( * ) * + 78 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1701
SELECT ALL - COUNT( * ) * - 72 AS col2, COALESCE ( + 14, NULLIF ( COUNT( * ), - ( 87 ) ), - CAST( 24 AS SIGNED ) ) AS col0
----
72
14

skipif mysql # not compatible
query II rowsort label-1701
SELECT ALL - COUNT ( * ) * - 72 AS col2, COALESCE ( + 14, NULLIF ( COUNT ( * ), - ( 87 ) ), - CAST ( 24 AS INTEGER ) ) AS col0
----
72
14

query I rowsort
SELECT 7 * + 4
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT DISTINCT - 59 DIV + 23 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT - 59 / + 23 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT ALL + CASE + 77 WHEN 94 * + 7 + 85 * COUNT( * ) THEN + COUNT( * ) WHEN + 66 THEN NULL ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL + CASE + 77 WHEN 94 * + 7 + 85 * COUNT ( * ) THEN + COUNT ( * ) WHEN + 66 THEN NULL ELSE NULL END + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 14 * - 43 AS col1
----
602

query I rowsort
SELECT ALL - 41 * - 3 AS col2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT ALL + 59 + + - CAST( - 56 AS SIGNED )
----
115

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL + 59 + + - CAST ( - 56 AS INTEGER )
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1708
SELECT ALL - 48 + - NULLIF ( - - COUNT( * ), + 14 - CAST( - 40 AS SIGNED ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL - 48 + - NULLIF ( - - COUNT ( * ), + 14 - CAST ( - 40 AS INTEGER ) ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT + COALESCE ( - ( - 8 ), + 29 * COUNT( * ) - SUM( ALL - 58 ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1709
SELECT + COALESCE ( - ( - 8 ), + 29 * COUNT ( * ) - SUM ( ALL - 58 ) ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1710
SELECT SUM( DISTINCT + 87 ) DIV + 37
----
2

skipif mysql # not compatible
query I rowsort label-1710
SELECT SUM ( DISTINCT + 87 ) / + 37
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1711
SELECT + - SUM( - - 79 ) * - COUNT( * ) * + 81 + CAST( - 91 AS SIGNED )
----
6308

skipif mysql # not compatible
query I rowsort label-1711
SELECT + - SUM ( - - 79 ) * - COUNT ( * ) * + 81 + CAST ( - 91 AS INTEGER )
----
6308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1712
SELECT 32 + + 75, COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
107
0

skipif mysql # not compatible
query II rowsort label-1712
SELECT 32 + + 75, COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
107
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1713
SELECT ( COUNT( * ) ) * - CAST( + - 71 AS SIGNED ) * AVG ( - 41 * CASE 90 WHEN 9 THEN NULL WHEN - 42 + 28 THEN 61 + 95 END ) - - SUM( - ( + 99 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT ( COUNT ( * ) ) * - CAST ( + - 71 AS INTEGER ) * AVG ( - 41 * CASE 90 WHEN 9 THEN NULL WHEN - 42 + 28 THEN 61 + 95 END ) - - SUM ( - ( + 99 ) )
----
NULL

query I rowsort
SELECT 43 * - + 73 + - 24 * - 82 + - 64
----
-1235

query I rowsort
SELECT ALL 90 + - 43
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT - CASE 20 WHEN - 43 THEN + COUNT( DISTINCT 39 ) * 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - CASE 20 WHEN - 43 THEN + COUNT ( DISTINCT 39 ) * 55 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 4 + + - ( - 73 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT + COUNT( * ) * + 63 * + + 3
----
189

skipif mysql # not compatible
query I rowsort label-1718
SELECT + COUNT ( * ) * + 63 * + + 3
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-1719
SELECT DISTINCT - COUNT( * ) * - 88 AS col2, + 87 AS col0
----
88
87

skipif mysql # not compatible
query II rowsort label-1719
SELECT DISTINCT - COUNT ( * ) * - 88 AS col2, + 87 AS col0
----
88
87

query I rowsort
SELECT + NULLIF ( + 71, - 1 ) * + 32 * 11 col0
----
24992

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT NULLIF ( + + MAX( DISTINCT - + 61 ), - ( + 24 ) * COALESCE ( 28, - COUNT( * ), 62 * + 2 ) ) + 48 * 80
----
3779

skipif mysql # not compatible
query I rowsort label-1721
SELECT NULLIF ( + + MAX ( DISTINCT - + 61 ), - ( + 24 ) * COALESCE ( 28, - COUNT ( * ), 62 * + 2 ) ) + 48 * 80
----
3779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1722
SELECT 70 + + 33, + 55 * - NULLIF ( + 18, CASE + 27 WHEN + 95 THEN 77 WHEN + NULLIF ( 15, - 94 - + SUM( + 94 + 17 ) ) THEN NULL ELSE NULL END ) - - CAST( NULL AS SIGNED ) * 77 AS col2
----
103
NULL

skipif mysql # not compatible
query II rowsort label-1722
SELECT 70 + + 33, + 55 * - NULLIF ( + 18, CASE + 27 WHEN + 95 THEN 77 WHEN + NULLIF ( 15, - 94 - + SUM ( + 94 + 17 ) ) THEN NULL ELSE NULL END ) - - CAST ( NULL AS INTEGER ) * 77 AS col2
----
103
NULL

query I rowsort
SELECT + COALESCE ( 89, + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT DISTINCT COUNT( * ) * + 40 col0
----
40

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT COUNT ( * ) * + 40 col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1725
SELECT CASE + 52 WHEN - 28 + + 27 THEN NULL ELSE + COUNT( * ) DIV + 67 END DIV + 54 col0
----
0

skipif mysql # not compatible
query I rowsort label-1725
SELECT CASE + 52 WHEN - 28 + + 27 THEN NULL ELSE + COUNT ( * ) / + 67 END / + 54 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1726
SELECT 66 + + CAST( - CASE - + 77 WHEN CAST( NULL AS SIGNED ) * + ( ( 38 ) ) THEN ( NULLIF ( + AVG ( - 58 ), + 16 / 96 ) ) WHEN 47 + - 50 THEN NULL END AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT 66 + + CAST ( - CASE - + 77 WHEN CAST ( NULL AS INTEGER ) * + ( ( 38 ) ) THEN ( NULLIF ( + AVG ( - 58 ), + 16 / 96 ) ) WHEN 47 + - 50 THEN NULL END AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + 17 * - - 66 AS col2
----
1122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1728
SELECT ( + COALESCE ( + ( 90 ), + NULLIF ( + CAST( NULL AS SIGNED ), - 18 ) + - 57 ) ) + - 93 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1728
SELECT ( + COALESCE ( + ( 90 ), + NULLIF ( + CAST ( NULL AS INTEGER ), - 18 ) + - 57 ) ) + - 93 AS col0
----
-3

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

skipif mysql # not compatible
query I rowsort label-1729
SELECT COUNT ( * ) / + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT 82 * 88 * + + COUNT( * )
----
7216

skipif mysql # not compatible
query I rowsort label-1730
SELECT 82 * 88 * + + COUNT ( * )
----
7216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1731
SELECT 85 + + CAST( - + 63 AS SIGNED ) col0
----
22

skipif mysql # not compatible
query I rowsort label-1731
SELECT 85 + + CAST ( - + 63 AS INTEGER ) col0
----
22

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

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

query I rowsort
SELECT 10 + 23 + 49 * 83
----
4100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT SUM( COALESCE ( CAST( NULL AS SIGNED ), + 93 ) ) * 41 * 23
----
87699

skipif mysql # not compatible
query I rowsort label-1734
SELECT SUM ( COALESCE ( CAST ( NULL AS INTEGER ), + 93 ) ) * 41 * 23
----
87699

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT DISTINCT 32 * 88 + + CAST( 92 AS SIGNED )
----
2908

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT 32 * 88 + + CAST ( 92 AS INTEGER )
----
2908

query I rowsort
SELECT DISTINCT 0 * + 82 + + 19 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL - 51 * + - 40 + SUM( + 52 ) AS col2
----
2092

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL - 51 * + - 40 + SUM ( + 52 ) AS col2
----
2092

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1739
SELECT 73 DIV + 39 + - + 12 AS col2, CAST( - 32 AS SIGNED ) AS col0
----
-11
-32

skipif mysql # not compatible
query II rowsort label-1739
SELECT 73 / + 39 + - + 12 AS col2, CAST ( - 32 AS INTEGER ) AS col0
----
-11
-32

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

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

query I rowsort
SELECT COALESCE ( + 94, 51 )
----
94

query II rowsort
SELECT ALL - 54 * 58 + + 25 AS col1, 96 AS col0
----
-3107
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1743
SELECT - 13 - + COUNT( * ) + SUM( 35 ) * + 0 DIV + 43
----
-14

skipif mysql # not compatible
query I rowsort label-1743
SELECT - 13 - + COUNT ( * ) + SUM ( 35 ) * + 0 / + 43
----
-14

query I rowsort
SELECT DISTINCT - + 34 * + 56 * - 42 + 23 + + 75 AS col2
----
80066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1745
SELECT DISTINCT + - 68 * - 22 + + + CAST( NULL AS SIGNED ) - - MIN( DISTINCT - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT + - 68 * - 22 + + + CAST ( NULL AS INTEGER ) - - MIN ( DISTINCT - 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT DISTINCT + COUNT( * ) * 31 - 64 col0
----
-33

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT + COUNT ( * ) * 31 - 64 col0
----
-33

query I rowsort
SELECT DISTINCT - 17 * 71 - + 37 * + 50 * 42 * 28 - 96 AS col1
----
-2176903

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT - NULLIF ( - COUNT( * ), 4 * + COUNT( * ) * - 22 ) - - 42 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1749
SELECT - NULLIF ( - COUNT ( * ), 4 * + COUNT ( * ) * - 22 ) - - 42 AS col0
----
43

query I rowsort
SELECT - - 62 * - 8
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT + 98 * + + COUNT( * ) + - 82 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1751
SELECT + 98 * + + COUNT ( * ) + - 82 AS col1
----
16

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1753
SELECT 47 AS col2, 84 * CASE - 4 WHEN 97 * - - 39 + - 49 THEN ( + COUNT( * ) ) + + 91 WHEN + 52 THEN - CAST( COUNT( * ) AS SIGNED ) ELSE 23 DIV 68 END * 66 + 99 AS col2
----
47
99

skipif mysql # not compatible
query II rowsort label-1753
SELECT 47 AS col2, 84 * CASE - 4 WHEN 97 * - - 39 + - 49 THEN ( + COUNT ( * ) ) + + 91 WHEN + 52 THEN - CAST ( COUNT ( * ) AS INTEGER ) ELSE 23 / 68 END * 66 + 99 AS col2
----
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1754
SELECT + COUNT( * ) * 44 AS col1, 24 * + - 12 AS col1
----
44
-288

skipif mysql # not compatible
query II rowsort label-1754
SELECT + COUNT ( * ) * 44 AS col1, 24 * + - 12 AS col1
----
44
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT ALL CASE 19 WHEN + + COUNT( * ) * + 34 - 14 THEN + 78 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL CASE 19 WHEN + + COUNT ( * ) * + 34 - 14 THEN + 78 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT DISTINCT 84 * + COUNT( * ) * - 55 AS col1
----
-4620

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT 84 * + COUNT ( * ) * - 55 AS col1
----
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT - MAX( ALL + 77 ) + - 7 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-1758
SELECT - MAX ( ALL + 77 ) + - 7 AS col0
----
-84

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

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

query I rowsort
SELECT ALL 19 * 70
----
1330

query I rowsort
SELECT ALL 78 + - + 87 - - 86 + 27 * ( + + COALESCE ( - 90, 46, 53, + 53 * - 5 ) ) + - 93
----
-2446

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT ALL 65 + - COUNT( * ) + + - 39 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL 65 + - COUNT ( * ) + + - 39 AS col1
----
25

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1765
SELECT + 6 + 63 DIV - 92 * + - 84 AS col1, 37
----
6
37

skipif mysql # not compatible
query II rowsort label-1765
SELECT + 6 + 63 / - 92 * + - 84 AS col1, 37
----
6
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1766
SELECT ALL - 80 DIV - - 7 + 47 + - MAX( + - 42 ) DIV - 5 + - ( + 81 )
----
-53

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL - 80 / - - 7 + 47 + - MAX ( + - 42 ) / - 5 + - ( + 81 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL 23 * - NULLIF ( COUNT( * ), - 63 + - - MAX( ALL 27 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL 23 * - NULLIF ( COUNT ( * ), - 63 + - - MAX ( ALL 27 ) )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1768
SELECT + - ( - - CASE ( COUNT( * ) ) WHEN - 28 * MIN( DISTINCT - 17 ) THEN - ( 29 ) ELSE 57 END ) DIV 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1768
SELECT + - ( - - CASE ( COUNT ( * ) ) WHEN - 28 * MIN ( DISTINCT - 17 ) THEN - ( 29 ) ELSE 57 END ) / 98 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1769
SELECT ALL - - 36 DIV - 89 - + - COUNT( * ) + - 3
----
-2

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL - - 36 / - 89 - + - COUNT ( * ) + - 3
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT DISTINCT + SUM( DISTINCT - + COALESCE ( + 26, 69, 62 ) ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT + SUM ( DISTINCT - + COALESCE ( + 26, 69, 62 ) ) col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1771
SELECT ALL + + NULLIF ( - 17, + + 93 + - 76 - - 28 + + + CAST( NULL AS SIGNED ) / 77 * - 20 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL + + NULLIF ( - 17, + + 93 + - 76 - - 28 + + + CAST ( NULL AS INTEGER ) / 77 * - 20 ) AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1772
SELECT + 99 * - 61 - - - 17 DIV - 60 * NULLIF ( - + 16, 25 + 8 * - 15 ) * 38
----
-6039

skipif mysql # not compatible
query I rowsort label-1772
SELECT + 99 * - 61 - - - 17 / - 60 * NULLIF ( - + 16, 25 + 8 * - 15 ) * 38
----
-6039

query I rowsort
SELECT - 14 * 6 + 71
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1774
SELECT ALL + COUNT( * ) AS col2, 46 AS col0, - - 30 DIV - - CASE + + 25 WHEN 88 + + 80 THEN NULL ELSE + 56 END
----
1
46
0

skipif mysql # not compatible
query III rowsort label-1774
SELECT ALL + COUNT ( * ) AS col2, 46 AS col0, - - 30 / - - CASE + + 25 WHEN 88 + + 80 THEN NULL ELSE + 56 END
----
1
46
0

query I rowsort
SELECT + + 74 + - + ( + 41 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT 69 * + 22 * + 8 * 44 / - CASE - 13 WHEN 7 - - 27 * - 68 THEN - SUM( - 78 ) END - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1776
SELECT 69 * + 22 * + 8 * 44 / - CASE - 13 WHEN 7 - - 27 * - 68 THEN - SUM ( - 78 ) END - 82 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + + ( + 62 ) * - 31
----
-1922

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT + 51 * + - COUNT( DISTINCT + ( + 37 ) ) + + 45 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1779
SELECT + 51 * + - COUNT ( DISTINCT + ( + 37 ) ) + + 45 AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1780
SELECT DISTINCT - 61 DIV - - CASE - 37 WHEN + 67 + + 6 THEN NULL WHEN + CAST( NULL AS SIGNED ) + 78 THEN 24 ELSE - 98 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - 61 / - - CASE - 37 WHEN + 67 + + 6 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + 78 THEN 24 ELSE - 98 END AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1781
SELECT - + 50 * + NULLIF ( - NULLIF ( + + 38, 42 - 29 + 8 / - 71 ), + CAST( NULL AS SIGNED ) * COALESCE ( 1, ( NULLIF ( ( COUNT( ALL 93 ) ), 93 ) ) + 25 ) + 66 )
----
1900

skipif mysql # not compatible
query I rowsort label-1781
SELECT - + 50 * + NULLIF ( - NULLIF ( + + 38, 42 - 29 + 8 / - 71 ), + CAST ( NULL AS INTEGER ) * COALESCE ( 1, ( NULLIF ( ( COUNT ( ALL 93 ) ), 93 ) ) + 25 ) + 66 )
----
1900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1782
SELECT - COUNT( * ) + COUNT( + 65 ) - - 44 * COALESCE ( + 77, - ( 17 ), COUNT( * ) DIV + 16 ) * 98 AS col2
----
332024

skipif mysql # not compatible
query I rowsort label-1782
SELECT - COUNT ( * ) + COUNT ( + 65 ) - - 44 * COALESCE ( + 77, - ( 17 ), COUNT ( * ) / + 16 ) * 98 AS col2
----
332024

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

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

query I rowsort
SELECT - 96 + - 45 - + NULLIF ( + + 8, - AVG ( - 0 ) + + 83 ) AS col0
----
-149

query I rowsort
SELECT ALL 37 * + 26 + 76
----
1038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1786
SELECT ALL COUNT( * ) * 53 + - - 88 DIV 77 * - 12
----
41

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL COUNT ( * ) * 53 + - - 88 / 77 * - 12
----
41

query I rowsort
SELECT DISTINCT 12 * - - 77 + + - 43 AS col1
----
881

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT - 60 DIV + + 69
----
0

skipif mysql # not compatible
query I rowsort label-1788
SELECT - 60 / + + 69
----
0

query I rowsort
SELECT DISTINCT - 9 + - + 12 AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1790
SELECT DISTINCT - 0 + - COUNT( * ) * + CASE WHEN NOT ( + 85 ) BETWEEN ( NULL ) AND ( MAX( DISTINCT - 50 ) * - 30 + 20 ) THEN NULL ELSE - COALESCE ( CAST( + 6 AS SIGNED ), - 16 ) DIV 87 END
----
0

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT - 0 + - COUNT ( * ) * + CASE WHEN NOT ( + 85 ) BETWEEN ( NULL ) AND ( MAX ( DISTINCT - 50 ) * - 30 + 20 ) THEN NULL ELSE - COALESCE ( CAST ( + 6 AS INTEGER ), - 16 ) / 87 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT - NULLIF ( - 7, - ( + 70 ) * - COALESCE ( 47, - 78 ) * NULLIF ( COUNT( * ), - 74 ) )
----
7

skipif mysql # not compatible
query I rowsort label-1791
SELECT - NULLIF ( - 7, - ( + 70 ) * - COALESCE ( 47, - 78 ) * NULLIF ( COUNT ( * ), - 74 ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT NULLIF ( + - 24, + COALESCE ( - SUM( ALL - 78 ), 11 ) + + 7 * + 31 ) * - CASE 73 + 27 / + COUNT( * ) WHEN - CASE + 10 WHEN - ( + CASE 7 WHEN ( - 57 ) THEN NULL ELSE 74 * - 9 END ) THEN NULL WHEN - 7 THEN 45 * 58 ELSE NULL END THEN 22 WHEN + 65 THEN + 5 * - 28 ELSE 70 * + COUNT( * ) END AS col1
----
1680

skipif mysql # not compatible
query I rowsort label-1792
SELECT NULLIF ( + - 24, + COALESCE ( - SUM ( ALL - 78 ), 11 ) + + 7 * + 31 ) * - CASE 73 + 27 / + COUNT ( * ) WHEN - CASE + 10 WHEN - ( + CASE 7 WHEN ( - 57 ) THEN NULL ELSE 74 * - 9 END ) THEN NULL WHEN - 7 THEN 45 * 58 ELSE NULL END THEN 22 WHEN + 65 THEN + 5 * - 28 ELSE 70 * + COUNT ( * ) END AS col1
----
1680

query I rowsort
SELECT DISTINCT + 10 * - - 93 col1
----
930

query I rowsort
SELECT ALL 88 + + + 62 AS col2
----
150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT COUNT( * ) * + + 97 * - 28
----
-2716

skipif mysql # not compatible
query I rowsort label-1796
SELECT COUNT ( * ) * + + 97 * - 28
----
-2716

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT 76 * 43 + - 31 * + 94 - - COUNT( * ) AS col2
----
355

skipif mysql # not compatible
query I rowsort label-1799
SELECT 76 * 43 + - 31 * + 94 - - COUNT ( * ) AS col2
----
355

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT - 66 * - - COUNT( * ) + - 36 * - 61 + - - 20 + 33
----
2183

skipif mysql # not compatible
query I rowsort label-1800
SELECT - 66 * - - COUNT ( * ) + - 36 * - 61 + - - 20 + 33
----
2183

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT COUNT( ALL 72 ) * + 19 + + ( - - 34 )
----
53

skipif mysql # not compatible
query I rowsort label-1801
SELECT COUNT ( ALL 72 ) * + 19 + + ( - - 34 )
----
53

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1803
SELECT ALL + 84 DIV - SUM( - - 13 ), - COUNT( * ) AS col2
----
-6
-1

skipif mysql # not compatible
query II rowsort label-1803
SELECT ALL + 84 / - SUM ( - - 13 ), - COUNT ( * ) AS col2
----
-6
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1804
SELECT - 97 * CASE + 51 WHEN + - COALESCE ( - 60, - CAST( + 40 AS SIGNED ) * 10 ) + - 71 THEN - COUNT( * ) / 16 - CASE - 80 WHEN 82 * 85 THEN NULL WHEN 85 THEN + 84 * 73 + 15 ELSE + COUNT( 81 ) * + SUM( ALL 71 ) END END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1804
SELECT - 97 * CASE + 51 WHEN + - COALESCE ( - 60, - CAST ( + 40 AS INTEGER ) * 10 ) + - 71 THEN - COUNT ( * ) / 16 - CASE - 80 WHEN 82 * 85 THEN NULL WHEN 85 THEN + 84 * 73 + 15 ELSE + COUNT ( 81 ) * + SUM ( ALL 71 ) END END col2
----
NULL

query I rowsort
SELECT + - NULLIF ( - 74, + 77 + + 76 ) AS col2
----
74

query I rowsort
SELECT ( + 57 ) + + - 22
----
35

query I rowsort
SELECT DISTINCT 45 * + + 36
----
1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1808
SELECT + 20 * ( 76 ) + - ( + 58 ) DIV CASE - ( COALESCE ( - MAX( ALL 46 ), COUNT( * ), + 11 ) ) WHEN 43 THEN ( + 12 ) * - COALESCE ( - 64, 76, - COUNT( * ) + + 67 ) + + 32 ELSE + 36 END AS col2
----
1519

skipif mysql # not compatible
query I rowsort label-1808
SELECT + 20 * ( 76 ) + - ( + 58 ) / CASE - ( COALESCE ( - MAX ( ALL 46 ), COUNT ( * ), + 11 ) ) WHEN 43 THEN ( + 12 ) * - COALESCE ( - 64, 76, - COUNT ( * ) + + 67 ) + + 32 ELSE + 36 END AS col2
----
1519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1809
SELECT ALL 89 * - CAST( NULL AS SIGNED ) - AVG ( DISTINCT - - 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL 89 * - CAST ( NULL AS INTEGER ) - AVG ( DISTINCT - - 59 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1810
SELECT DISTINCT - ( + 5 ) AS col1, NULLIF ( + + 49, - 94 + - 24 / + - 20 ) + - COUNT( * ) * + 27
----
-5
22

skipif mysql # not compatible
query II rowsort label-1810
SELECT DISTINCT - ( + 5 ) AS col1, NULLIF ( + + 49, - 94 + - 24 / + - 20 ) + - COUNT ( * ) * + 27
----
-5
22

query I rowsort
SELECT DISTINCT 12 * - 40 * 95 AS col1
----
-45600

onlyif mysql # aggregate syntax: 
query II rowsort label-1812
SELECT ALL COUNT( * ) * - - 82 + 44 AS col1, - 23
----
126
-23

skipif mysql # not compatible
query II rowsort label-1812
SELECT ALL COUNT ( * ) * - - 82 + 44 AS col1, - 23
----
126
-23

query I rowsort
SELECT DISTINCT + 40 + 52 - + - 21 col0
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1814
SELECT DISTINCT 43 + + 3 + 34 + + MAX( + + 48 ) * + 59 * + - 22 * + - 4 DIV COUNT( * ) * 4 col1
----
996944

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT 43 + + 3 + 34 + + MAX ( + + 48 ) * + 59 * + - 22 * + - 4 / COUNT ( * ) * 4 col1
----
996944

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT ALL 2 + - - 67 * + + COUNT( * ) * 74
----
4960

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL 2 + - - 67 * + + COUNT ( * ) * 74
----
4960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT 95 * + 14 * + COUNT( * ) * 64 AS col0
----
85120

skipif mysql # not compatible
query I rowsort label-1817
SELECT 95 * + 14 * + COUNT ( * ) * 64 AS col0
----
85120

query I rowsort
SELECT 66 * + 39 col0
----
2574

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT 97 AS col0, + MIN( ALL - + 72 ) AS col0
----
97
-72

skipif mysql # not compatible
query II rowsort label-1820
SELECT 97 AS col0, + MIN ( ALL - + 72 ) AS col0
----
97
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL 66 + - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL 66 + - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT DISTINCT 1 + 11 * 91 - + + COUNT( 79 ) * - + 43
----
1045

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT 1 + 11 * 91 - + + COUNT ( 79 ) * - + 43
----
1045

query I rowsort
SELECT ALL 60 * + 89 * 34 * + - 70
----
-12709200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1824
SELECT ALL + 23 + - 51 + + - 8 + 25 * + + 9 * + MIN( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + 23 + - 51 + + - 8 + 25 * + + 9 * + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 1 - 41 - - - 58 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT DISTINCT + 41 + + COUNT( * ) * + - MAX( 23 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT + 41 + + COUNT ( * ) * + - MAX ( 23 ) AS col1
----
18

query I rowsort
SELECT 81 * 13 AS col2
----
1053

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT 34 AS col1, + MAX( ALL + - 21 ) AS col0
----
34
-21

skipif mysql # not compatible
query II rowsort label-1828
SELECT 34 AS col1, + MAX ( ALL + - 21 ) AS col0
----
34
-21

query I rowsort
SELECT 0 + + + 0 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1830
SELECT 36 DIV + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1830
SELECT 36 / + 80 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1831
SELECT ALL - ( - COUNT( 85 ) ) / 4 / - - CAST( NULL AS SIGNED ) + - + 9 + - + 23 * 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL - ( - COUNT ( 85 ) ) / 4 / - - CAST ( NULL AS INTEGER ) + - + 9 + - + 23 * 21 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 41, 27 * - + 79 + - + 33 col2
----
41
-2166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL + 24 - + CAST( 52 AS SIGNED ) + + NULLIF ( - 47, + 58 + + 11 / + 16 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL + 24 - + CAST ( 52 AS INTEGER ) + + NULLIF ( - 47, + 58 + + 11 / + 16 ) AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT DISTINCT - + 85 DIV + 56
----
-1

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT - + 85 / + 56
----
-1

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

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

query I rowsort
SELECT DISTINCT + + 6 - - 4 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1837
SELECT 90 + - - MAX( + 60 ), - 89 AS col1
----
150
-89

skipif mysql # not compatible
query II rowsort label-1837
SELECT 90 + - - MAX ( + 60 ), - 89 AS col1
----
150
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL CASE + COALESCE ( - + 17, + 12 * + COUNT( * ) - - 1, + + ( - 45 ) ) WHEN + 69 - 31 THEN 60 * 23 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL CASE + COALESCE ( - + 17, + 12 * + COUNT ( * ) - - 1, + + ( - 45 ) ) WHEN + 69 - 31 THEN 60 * 23 ELSE NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 19 ) col0
----
-19

query II rowsort
SELECT ALL - - 81 * 6 * - 99 AS col0, - 6 AS col2
----
-48114
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1841
SELECT ( COALESCE ( - COUNT( * ), - ( + NULLIF ( + + 44, 0 * + 83 ) ) + 36 ) ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT ( COALESCE ( - COUNT ( * ), - ( + NULLIF ( + + 44, 0 * + 83 ) ) + 36 ) ) * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 51 * 39 AS col0
----
1989

query II rowsort
SELECT + + 16 col2, + 71 col0
----
16
71

onlyif mysql # aggregate syntax: 
query II rowsort label-1844
SELECT ALL - 90 AS col1, 4 * + + MIN( - 93 ) + - 9 - - 52 AS col2
----
-90
-329

skipif mysql # not compatible
query II rowsort label-1844
SELECT ALL - 90 AS col1, 4 * + + MIN ( - 93 ) + - 9 - - 52 AS col2
----
-90
-329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1845
SELECT ALL - - CAST( 40 AS SIGNED ) * + - MAX( - - 20 ) AS col0, + MAX( 56 ) * 34 - - + 28 DIV 79 AS col2
----
-800
1904

skipif mysql # not compatible
query II rowsort label-1845
SELECT ALL - - CAST ( 40 AS INTEGER ) * + - MAX ( - - 20 ) AS col0, + MAX ( 56 ) * 34 - - + 28 / 79 AS col2
----
-800
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT - 17 * + 35 * + COUNT( * ) AS col1
----
-595

skipif mysql # not compatible
query I rowsort label-1846
SELECT - 17 * + 35 * + COUNT ( * ) AS col1
----
-595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1847
SELECT ALL + COUNT( - - 54 ) * - 49 * + 37 + + 27 + + 11 + 50 + + COALESCE ( 38, + 75 * - 74 ) - + CAST( + 74 AS SIGNED ) * + 69 + ( + 60 )
----
-6733

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL + COUNT ( - - 54 ) * - 49 * + 37 + + 27 + + 11 + 50 + + COALESCE ( 38, + 75 * - 74 ) - + CAST ( + 74 AS INTEGER ) * + 69 + ( + 60 )
----
-6733

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

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

query I rowsort
SELECT ALL - - ( + 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ( + ( - SUM( DISTINCT + 65 ) ) ) - 83
----
-148

skipif mysql # not compatible
query I rowsort label-1850
SELECT ( + ( - SUM ( DISTINCT + 65 ) ) ) - 83
----
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-1851
SELECT DISTINCT 19 + - 79 + + + COUNT( * ) AS col2, 45 col1
----
-59
45

skipif mysql # not compatible
query II rowsort label-1851
SELECT DISTINCT 19 + - 79 + + + COUNT ( * ) AS col2, 45 col1
----
-59
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT ALL + 11 + + COUNT( * ) + + 10 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL + 11 + + COUNT ( * ) + + 10 AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-1853
SELECT + 84, - COUNT( * ) + + 32 col1
----
84
31

skipif mysql # not compatible
query II rowsort label-1853
SELECT + 84, - COUNT ( * ) + + 32 col1
----
84
31

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

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

query I rowsort
SELECT ALL - 36 + + + 28 col1
----
-8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT - 23 * - - CAST( NULL AS SIGNED ) - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1857
SELECT - 23 * - - CAST ( NULL AS INTEGER ) - 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1858
SELECT DISTINCT 96 * - + COUNT( * ) AS col1, + 86
----
-96
86

skipif mysql # not compatible
query II rowsort label-1858
SELECT DISTINCT 96 * - + COUNT ( * ) AS col1, + 86
----
-96
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL 55 * ( - 46 ) * - + COUNT( * ) AS col0
----
2530

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL 55 * ( - 46 ) * - + COUNT ( * ) AS col0
----
2530

query I rowsort
SELECT ALL 66 + 79
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-1861
SELECT + COUNT( 89 ) AS col2, 96 + - 62
----
1
34

skipif mysql # not compatible
query II rowsort label-1861
SELECT + COUNT ( 89 ) AS col2, 96 + - 62
----
1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL COUNT( * ) - - 7 * - 76 col0
----
-531

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL COUNT ( * ) - - 7 * - 76 col0
----
-531

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT - COUNT( + 20 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1863
SELECT - COUNT ( + 20 ) AS col0
----
-1

query I rowsort
SELECT + 95 * - 98
----
-9310

query I rowsort
SELECT - 59 + + 2 * 11 * 30
----
601

onlyif mysql # aggregate syntax: 
query II rowsort label-1866
SELECT ALL SUM( ALL - 83 ) AS col2, - 73 + + 48 * 27 * - 55 col2
----
-83
-71353

skipif mysql # not compatible
query II rowsort label-1866
SELECT ALL SUM ( ALL - 83 ) AS col2, - 73 + + 48 * 27 * - 55 col2
----
-83
-71353

query I rowsort
SELECT + 64 * + 57 * + - 16
----
-58368

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL COUNT( - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL COUNT ( - 86 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL ( - - MAX( + 0 ) ) * - + 78 + - 92 * 12
----
-1104

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL ( - - MAX ( + 0 ) ) * - + 78 + - 92 * 12
----
-1104

query I rowsort
SELECT DISTINCT + 86 - 26 * + + 70
----
-1734

onlyif mysql # aggregate syntax: 
query II rowsort label-1871
SELECT - COUNT( * ) * COUNT( * ) * - 47 - - 84 col2, 45
----
131
45

skipif mysql # not compatible
query II rowsort label-1871
SELECT - COUNT ( * ) * COUNT ( * ) * - 47 - - 84 col2, 45
----
131
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT DISTINCT + - 91 * + NULLIF ( - + COUNT( * ), - - 21 + + + 84 ) + 31
----
122

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT + - 91 * + NULLIF ( - + COUNT ( * ), - - 21 + + + 84 ) + 31
----
122

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

query I rowsort
SELECT - - 89 * + 15 AS col2
----
1335

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT + 66 - + CASE + ( - + 58 ) WHEN - 46 + + - 68 THEN + NULLIF ( 15, - CASE - 97 WHEN - 68 THEN NULL WHEN + 61 THEN COUNT( * ) / - 10 + 49 END + 75 ) END + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT + 66 - + CASE + ( - + 58 ) WHEN - 46 + + - 68 THEN + NULLIF ( 15, - CASE - 97 WHEN - 68 THEN NULL WHEN + 61 THEN COUNT ( * ) / - 10 + 49 END + 75 ) END + + 33 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1876
SELECT - CASE - - 59 WHEN 28 * + - CAST( NULL AS DECIMAL ) THEN NULL WHEN + + 78 THEN - 39 WHEN + - 83 * + 63 + COUNT( * ) THEN 84 + COUNT( * ) ELSE NULL END + - 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT - CASE - - 59 WHEN 28 * + - CAST ( NULL AS REAL ) THEN NULL WHEN + + 78 THEN - 39 WHEN + - 83 * + 63 + COUNT ( * ) THEN 84 + COUNT ( * ) ELSE NULL END + - 32 AS col1
----
NULL

query I rowsort
SELECT - 93 * + 15 * 4
----
-5580

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT DISTINCT 86 * 5 + + 66 * - COUNT( * ) AS col0
----
364

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT 86 * 5 + + 66 * - COUNT ( * ) AS col0
----
364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1880
SELECT ALL 24 * + - CAST( NULL AS SIGNED ) + - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL 24 * + - CAST ( NULL AS INTEGER ) + - 13 AS col1
----
NULL

query I rowsort
SELECT ALL - 82 * + CASE 99 WHEN 85 THEN 52 END AS col2
----
NULL

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

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

query I rowsort
SELECT - 91 * - NULLIF ( - + ( - 41 ), + 76 )
----
3731

query I rowsort
SELECT DISTINCT - - 11 * - COALESCE ( + 37, - - 24 )
----
-407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT + 90 + + + NULLIF ( CAST( NULLIF ( - 5, - + SUM( ALL - - 97 ) + - - COALESCE ( ( - 83 ), - 3 ) ) AS SIGNED ), 33 * AVG ( DISTINCT - 9 ) ) * + SUM( + 91 * + 1 - 47 ) AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-1885
SELECT + 90 + + + NULLIF ( CAST ( NULLIF ( - 5, - + SUM ( ALL - - 97 ) + - - COALESCE ( ( - 83 ), - 3 ) ) AS INTEGER ), 33 * AVG ( DISTINCT - 9 ) ) * + SUM ( + 91 * + 1 - 47 ) AS col0
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT NULLIF ( - 12, COUNT( * ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1886
SELECT NULLIF ( - 12, COUNT ( * ) ) AS col1
----
-12

query I rowsort
SELECT ALL ( 48 ) * 29 + + 79 col1
----
1471

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT DISTINCT + 13 * - - ( COUNT( * ) ) col1
----
13

skipif mysql # not compatible
query I rowsort label-1888
SELECT DISTINCT + 13 * - - ( COUNT ( * ) ) col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT NULLIF ( - 69, - - CASE + - MAX( ALL - - 38 ) WHEN + 35 THEN - 87 ELSE NULL END * - 81 )
----
-69

skipif mysql # not compatible
query I rowsort label-1889
SELECT NULLIF ( - 69, - - CASE + - MAX ( ALL - - 38 ) WHEN + 35 THEN - 87 ELSE NULL END * - 81 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-1890
SELECT DISTINCT + 62 AS col2, + 89 * + COUNT( ALL + 88 ) AS col2
----
62
89

skipif mysql # not compatible
query II rowsort label-1890
SELECT DISTINCT + 62 AS col2, + 89 * + COUNT ( ALL + 88 ) AS col2
----
62
89

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

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT COUNT ( * ) * 35 - + 0 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1892
SELECT DISTINCT COALESCE ( 68, - - COALESCE ( + COUNT( ALL 97 ), + 44 DIV - + NULLIF ( - - 63, + + 14 * - 8 ) * - CAST( + CASE 12 WHEN 44 THEN NULL ELSE CAST( NULL AS SIGNED ) + 31 END + - MAX( - 94 ) AS SIGNED ) ) * - 98, - ( 53 ) ) DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT COALESCE ( 68, - - COALESCE ( + COUNT ( ALL 97 ), + 44 / - + NULLIF ( - - 63, + + 14 * - 8 ) * - CAST ( + CASE 12 WHEN 44 THEN NULL ELSE CAST ( NULL AS INTEGER ) + 31 END + - MAX ( - 94 ) AS INTEGER ) ) * - 98, - ( 53 ) ) / - 70
----
0

query I rowsort
SELECT + NULLIF ( + + 14, - 8 )
----
14

query I rowsort
SELECT NULLIF ( - - 89, + - 0 + 25 * - - 19 * - 0 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT - CASE + + 38 WHEN + COUNT( + + 68 ) THEN 67 ELSE + 82 + + 94 + + - 87 END * - 38 - - 89 * 47 AS col0
----
7565

skipif mysql # not compatible
query I rowsort label-1895
SELECT - CASE + + 38 WHEN + COUNT ( + + 68 ) THEN 67 ELSE + 82 + + 94 + + - 87 END * - 38 - - 89 * 47 AS col0
----
7565

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT - ( - 49 ) - - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-1896
SELECT - ( - 49 ) - - COUNT ( * )
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-1897
SELECT + 1 * - 53 DIV + COALESCE ( + 50, - COALESCE ( 61, - - 56 ) DIV + 14 ) AS col0, + 38
----
-1
38

skipif mysql # not compatible
query II rowsort label-1897
SELECT + 1 * - 53 / + COALESCE ( + 50, - COALESCE ( 61, - - 56 ) / + 14 ) AS col0, + 38
----
-1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT 60 * + COUNT( * ) - 1
----
59

skipif mysql # not compatible
query I rowsort label-1898
SELECT 60 * + COUNT ( * ) - 1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT ALL + 60 DIV - 32 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + 60 / - 32 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT + 65 DIV + - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1900
SELECT + 65 / + - 92 AS col1
----
0

query I rowsort
SELECT + 41 - + 2 + + + 58 AS col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1902
SELECT ALL 47 * + - NULLIF ( - + COUNT( * ), + - 87 + + 80 ) AS col1, 6 DIV + MIN( DISTINCT 88 )
----
47
0

skipif mysql # not compatible
query II rowsort label-1902
SELECT ALL 47 * + - NULLIF ( - + COUNT ( * ), + - 87 + + 80 ) AS col1, 6 / + MIN ( DISTINCT 88 )
----
47
0

query I rowsort
SELECT ALL CASE + - 3 WHEN + 13 + - 24 THEN - - 23 * + 77 WHEN 71 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT ALL + 17 col0, ( 67 ) col2
----
17
67

query I rowsort
SELECT ALL 94 + - ( 87 ) - + NULLIF ( + ( 2 ), - 18 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT + 63 + + - COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-1906
SELECT + 63 + + - COUNT ( * ) AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT - NULLIF ( + CASE - + 43 WHEN 36 THEN NULL ELSE + MIN( ALL - - 43 ) * 28 + + - 56 * + 67 END, - 44 / - COALESCE ( - 74 + - ( + COUNT( * ) ), + COALESCE ( SUM( CAST( NULL AS SIGNED ) ), 43, 71 ) * - COUNT( + 52 ) ) ) - + 97 * + 63
----
-3563

skipif mysql # not compatible
query I rowsort label-1907
SELECT - NULLIF ( + CASE - + 43 WHEN 36 THEN NULL ELSE + MIN ( ALL - - 43 ) * 28 + + - 56 * + 67 END, - 44 / - COALESCE ( - 74 + - ( + COUNT ( * ) ), + COALESCE ( SUM ( CAST ( NULL AS INTEGER ) ), 43, 71 ) * - COUNT ( + 52 ) ) ) - + 97 * + 63
----
-3563

query I rowsort
SELECT ALL - 52 + - 26 - - + ( - - 38 ) AS col0
----
-40

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

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL - COUNT ( * ) + 90 AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1910
SELECT - CASE + 74 WHEN - - 31 THEN + + 66 * + + 51 WHEN - - CAST( - 71 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT - CASE + 74 WHEN - - 31 THEN + + 66 * + + 51 WHEN - - CAST ( - 71 AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT ALL + 61 DIV - 22 col1
----
-2

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL + 61 / - 22 col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1912
SELECT - 9 * + COUNT( - + 22 ) AS col0, + 5 + - 87
----
-9
-82

skipif mysql # not compatible
query II rowsort label-1912
SELECT - 9 * + COUNT ( - + 22 ) AS col0, + 5 + - 87
----
-9
-82

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

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

query I rowsort
SELECT ALL 96 + - 38 col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT + - ( - - CASE 69 WHEN + 10 THEN - + COUNT( * ) * - COUNT( * ) ELSE NULL END ) + ( ( + 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT + - ( - - CASE 69 WHEN + 10 THEN - + COUNT ( * ) * - COUNT ( * ) ELSE NULL END ) + ( ( + 65 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT + + COUNT( * ) + + 24 + + SUM( 50 )
----
75

skipif mysql # not compatible
query I rowsort label-1916
SELECT + + COUNT ( * ) + + 24 + + SUM ( 50 )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT + + CAST( + AVG ( 34 ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-1917
SELECT + + CAST ( + AVG ( 34 ) AS INTEGER )
----
34

query I rowsort
SELECT - 63 * - - 18 * 61 AS col2
----
-69174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1919
SELECT 1 - COALESCE ( - + 26, 80, - 39 * + 2 * + CASE - 61 WHEN - + CASE - + 51 WHEN + ( 37 ) / CAST( NULL AS SIGNED ) THEN MAX( 98 ) * 63 + - 13 * - 79 WHEN 11 THEN NULL WHEN 85 + 12 THEN COUNT( * ) + 59 ELSE - 67 + - 80 END THEN + 82 END * + 70 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1919
SELECT 1 - COALESCE ( - + 26, 80, - 39 * + 2 * + CASE - 61 WHEN - + CASE - + 51 WHEN + ( 37 ) / CAST ( NULL AS INTEGER ) THEN MAX ( 98 ) * 63 + - 13 * - 79 WHEN 11 THEN NULL WHEN 85 + 12 THEN COUNT ( * ) + 59 ELSE - 67 + - 80 END THEN + 82 END * + 70 ) AS col2
----
27

query I rowsort
SELECT + 52 * + 3 + - 45 AS col1
----
111

query I rowsort
SELECT 94 * - + 56
----
-5264

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

skipif mysql # not compatible
query I rowsort label-1922
SELECT COUNT ( * ) * - 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT 65 * + SUM( - 65 ) + + + 56 + + COUNT( * ) AS col1
----
-4168

skipif mysql # not compatible
query I rowsort label-1923
SELECT 65 * + SUM ( - 65 ) + + + 56 + + COUNT ( * ) AS col1
----
-4168

query II rowsort
SELECT ALL - 81 col0, + 70 * - 17 AS col2
----
-81
-1190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1925
SELECT + 25, - CASE 93 WHEN CAST( - - 62 AS SIGNED ) * - 6 * + - 85 THEN NULL ELSE + 49 END col1
----
25
-49

skipif mysql # not compatible
query II rowsort label-1925
SELECT + 25, - CASE 93 WHEN CAST ( - - 62 AS INTEGER ) * - 6 * + - 85 THEN NULL ELSE + 49 END col1
----
25
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1926
SELECT 19 * COALESCE ( - 36, - COUNT( * ) * 85 DIV - 36 + + + 64 * - + COUNT( * ) ) AS col0
----
-684

skipif mysql # not compatible
query I rowsort label-1926
SELECT 19 * COALESCE ( - 36, - COUNT ( * ) * 85 / - 36 + + + 64 * - + COUNT ( * ) ) AS col0
----
-684

query II rowsort
SELECT DISTINCT - 96 AS col2, 3
----
-96
3

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1929
SELECT 9 * - ( - NULLIF ( CAST( NULL AS DECIMAL ), + + CAST( NULL AS SIGNED ) * - - 98 ) ), 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-1929
SELECT 9 * - ( - NULLIF ( CAST ( NULL AS REAL ), + + CAST ( NULL AS INTEGER ) * - - 98 ) ), 87 AS col2
----
NULL
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1930
SELECT DISTINCT + 0 DIV ( - 3 )
----
0

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT + 0 / ( - 3 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1931
SELECT 56, - CASE - - CAST( NULL AS SIGNED ) WHEN COUNT( ALL - CAST( NULL AS DECIMAL ) ) / - 57 THEN 17 * 39 ELSE NULL END AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-1931
SELECT 56, - CASE - - CAST ( NULL AS INTEGER ) WHEN COUNT ( ALL - CAST ( NULL AS REAL ) ) / - 57 THEN 17 * 39 ELSE NULL END AS col0
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL + CASE + - 56 WHEN - + 54 THEN + 23 * 31 + + - COUNT( * ) - + - 26 + + 65 * - 10 + + + COALESCE ( 89, SUM( + 58 ) - - CASE + MIN( 25 ) + - 41 WHEN + 58 THEN NULL WHEN + COUNT( * ) * COUNT( * ) + - COUNT( * ) THEN + 90 END * 17, 81 ) - + 95 * + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + CASE + - 56 WHEN - + 54 THEN + 23 * 31 + + - COUNT ( * ) - + - 26 + + 65 * - 10 + + + COALESCE ( 89, SUM ( + 58 ) - - CASE + MIN ( 25 ) + - 41 WHEN + 58 THEN NULL WHEN + COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) THEN + 90 END * 17, 81 ) - + 95 * + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 83 + 1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1934
SELECT - 57 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-1934
SELECT - 57 / - 87
----
0

query I rowsort
SELECT DISTINCT 96 + 81
----
177

query I rowsort
SELECT ALL + 76 + + 54 * 55
----
3046

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT DISTINCT CASE + 42 WHEN - + COUNT( * ) / + + NULLIF ( - + 90, + 3 + - 92 ) THEN + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT CASE + 42 WHEN - + COUNT ( * ) / + + NULLIF ( - + 90, + 3 + - 92 ) THEN + 91 END
----
NULL

query I rowsort
SELECT ALL - 7 + 84 + + 15 + 3
----
95

query I rowsort
SELECT 45 * + 41 AS col1
----
1845

query I rowsort
SELECT DISTINCT + 32 + 71 + + + 77 AS col2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL COUNT( * ) + + 79 + - MAX( + 9 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL COUNT ( * ) + + 79 + - MAX ( + 9 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + 6 + + CASE + 36 WHEN 13 THEN + 98 * + COUNT( * ) * 58 + 79 + - - COUNT( DISTINCT 30 ) ELSE - 30 END
----
-24

skipif mysql # not compatible
query I rowsort label-1942
SELECT + 6 + + CASE + 36 WHEN 13 THEN + 98 * + COUNT ( * ) * 58 + 79 + - - COUNT ( DISTINCT 30 ) ELSE - 30 END
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL MIN( ALL - 98 ) + - 30
----
-128

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL MIN ( ALL - 98 ) + - 30
----
-128

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

query II rowsort
SELECT - - 14, 86 * + 86 AS col1
----
14
7396

query I rowsort
SELECT + 73 + - ( 84 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1947
SELECT COUNT( * ) - + 96 / - CAST( NULL AS SIGNED ) * + 21 * - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT COUNT ( * ) - + 96 / - CAST ( NULL AS INTEGER ) * + 21 * - 7 AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1948
SELECT DISTINCT 81 AS col0, - COUNT ( * ) AS col0
----
81
-1

query I rowsort
SELECT DISTINCT 26 - - - 81
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1950
SELECT ALL - 99 * + 16 DIV + + COUNT( * )
----
-1584

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL - 99 * + 16 / + + COUNT ( * )
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT DISTINCT + SUM( ALL ( 86 ) ) * + 60 * - + COUNT( * ) - + - 42 AS col0
----
-5118

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT + SUM ( ALL ( 86 ) ) * + 60 * - + COUNT ( * ) - + - 42 AS col0
----
-5118

query I rowsort
SELECT DISTINCT + ( - 2 ) * - 42 AS col2
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1953
SELECT ALL SUM( 22 ) * + 88 AS col1, 19 AS col1
----
1936
19

skipif mysql # not compatible
query II rowsort label-1953
SELECT ALL SUM ( 22 ) * + 88 AS col1, 19 AS col1
----
1936
19

query I rowsort
SELECT 29 * + - 2
----
-58

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

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT - MAX ( ALL CAST ( 26 AS INTEGER ) )
----
-26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1957
SELECT 19 DIV COALESCE ( + - 77, - + 33 DIV + + 18, - 53 ) DIV + 18 * + + 38 - + 4
----
-4

skipif mysql # not compatible
query I rowsort label-1957
SELECT 19 / COALESCE ( + - 77, - + 33 / + + 18, - 53 ) / + 18 * + + 38 - + 4
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1958
SELECT DISTINCT - COUNT( DISTINCT - + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0, + COALESCE ( 47, - ( - - 82 ) ) DIV 89 * - 23 + + + 24 * - COUNT( * ) col2
----
0
-24

skipif mysql # not compatible
query II rowsort label-1958
SELECT DISTINCT - COUNT ( DISTINCT - + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0, + COALESCE ( 47, - ( - - 82 ) ) / 89 * - 23 + + + 24 * - COUNT ( * ) col2
----
0
-24

query I rowsort
SELECT 29 * 60 AS col2
----
1740

query I rowsort
SELECT ALL + 33 + + 62 col1
----
95

query I rowsort
SELECT 19 * - - 91 AS col2
----
1729

query I rowsort
SELECT ALL + ( - - 18 ) + - 99 + - - ( 52 ) + 71
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT 25 - ( - + 27 ) / + CASE + 55 WHEN + 52 - 41 - + + COUNT( * ) + 16 * 44 * + 43 THEN NULL WHEN - ( COALESCE ( COUNT( 78 ), 34 ) ) THEN NULL WHEN - 69 THEN ( 47 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT 25 - ( - + 27 ) / + CASE + 55 WHEN + 52 - 41 - + + COUNT ( * ) + 16 * 44 * + 43 THEN NULL WHEN - ( COALESCE ( COUNT ( 78 ), 34 ) ) THEN NULL WHEN - 69 THEN ( 47 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT ALL - MAX( - - ( + 12 ) ) + + - 44 * + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL - MAX ( - - ( + 12 ) ) + + - 44 * + COUNT ( * )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1965
SELECT + COUNT( * ) * - 28 + - CASE + + CASE - 29 WHEN COUNT( * ) THEN NULL WHEN + 22 THEN + 23 END WHEN 53 + + 5 THEN NULL WHEN - 63 + 10 * - 87 THEN CAST( NULL AS SIGNED ) WHEN 83 THEN NULL ELSE NULL END - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT + COUNT ( * ) * - 28 + - CASE + + CASE - 29 WHEN COUNT ( * ) THEN NULL WHEN + 22 THEN + 23 END WHEN 53 + + 5 THEN NULL WHEN - 63 + 10 * - 87 THEN CAST ( NULL AS INTEGER ) WHEN 83 THEN NULL ELSE NULL END - 9 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT ALL + 5 + CASE - - ( + CAST( NULL AS SIGNED ) ) WHEN + 75 THEN NULL ELSE - 83 * - 9 - + + 40 + - 82 END col2
----
630

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL + 5 + CASE - - ( + CAST ( NULL AS INTEGER ) ) WHEN + 75 THEN NULL ELSE - 83 * - 9 - + + 40 + - 82 END col2
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL - 94 * - 41 * ( 57 ) * CASE - 31 WHEN + + COUNT( * ) * 80 + + - 38 * + ( + - 69 ) * - 53 THEN 81 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL - 94 * - 41 * ( 57 ) * CASE - 31 WHEN + + COUNT ( * ) * 80 + + - 38 * + ( + - 69 ) * - 53 THEN 81 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1968
SELECT DISTINCT - + CAST( + 49 AS SIGNED ) + + + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - + CAST ( + 49 AS INTEGER ) + + + COUNT ( * )
----
-48

query I rowsort
SELECT ALL 12 + 27 AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1970
SELECT ALL ( ( 90 ) ) AS col2, - 45 - + 66 * 16 + - - 46 * COUNT( * ) AS col1
----
90
-1055

skipif mysql # not compatible
query II rowsort label-1970
SELECT ALL ( ( 90 ) ) AS col2, - 45 - + 66 * 16 + - - 46 * COUNT ( * ) AS col1
----
90
-1055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1971
SELECT NULLIF ( + 20, COUNT( * ) + + + CAST( NULL AS SIGNED ) * - 27 / - MAX( ALL 76 ) + + + 88 - + - 33 * - 21 - 15 * - COUNT( * ) ) + + 72
----
92

skipif mysql # not compatible
query I rowsort label-1971
SELECT NULLIF ( + 20, COUNT ( * ) + + + CAST ( NULL AS INTEGER ) * - 27 / - MAX ( ALL 76 ) + + + 88 - + - 33 * - 21 - 15 * - COUNT ( * ) ) + + 72
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1972
SELECT + ( - NULLIF ( + + CAST( NULL AS DECIMAL ), + 4 ) ) * ( - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT + ( - NULLIF ( + + CAST ( NULL AS REAL ), + 4 ) ) * ( - 50 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1973
SELECT DISTINCT - 51 DIV - + 62 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT - 51 / - + 62 * - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1974
SELECT COALESCE ( 78, CAST( + 83 AS SIGNED ) ) + + 25 + - 40
----
63

skipif mysql # not compatible
query I rowsort label-1974
SELECT COALESCE ( 78, CAST ( + 83 AS INTEGER ) ) + + 25 + - 40
----
63

query I rowsort
SELECT ALL 14 * ( + 24 ) * + 55
----
18480

query I rowsort
SELECT + ( + 3 ) * 35
----
105

query I rowsort
SELECT ALL - 18 * 81 + - 35
----
-1493

onlyif mysql # aggregate syntax: 
query II rowsort label-1978
SELECT DISTINCT - 1 - 36, COUNT( * ) AS col1
----
-37
1

skipif mysql # not compatible
query II rowsort label-1978
SELECT DISTINCT - 1 - 36, COUNT ( * ) AS col1
----
-37
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1979
SELECT ALL COUNT( - 71 ) AS col1, - 29 + - 64 - - COUNT( ( + - 48 ) ) AS col2
----
1
-92

skipif mysql # not compatible
query II rowsort label-1979
SELECT ALL COUNT ( - 71 ) AS col1, - 29 + - 64 - - COUNT ( ( + - 48 ) ) AS col2
----
1
-92

query I rowsort
SELECT DISTINCT + ( 23 ) * - + 95 + 2 AS col2
----
-2183

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT DISTINCT COUNT( + 74 ) * 9 AS col0, - 63
----
9
-63

skipif mysql # not compatible
query II rowsort label-1981
SELECT DISTINCT COUNT ( + 74 ) * 9 AS col0, - 63
----
9
-63

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

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

query I rowsort
SELECT + 84 * + 77
----
6468

query I rowsort
SELECT + 96 + - 22 + - 33
----
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1986
SELECT - NULLIF ( - COALESCE ( + - CASE 34 WHEN COUNT( * ) THEN COUNT( * ) END, - 28 + - 38 ), - + CASE + 50 WHEN + - COUNT( * ) THEN + 54 WHEN + - 28 + + ( + 38 + 46 ) * - 75 THEN 85 * 65 ELSE CAST( NULL AS SIGNED ) END * - 63 ) * 6 + 30
----
-366

skipif mysql # not compatible
query I rowsort label-1986
SELECT - NULLIF ( - COALESCE ( + - CASE 34 WHEN COUNT ( * ) THEN COUNT ( * ) END, - 28 + - 38 ), - + CASE + 50 WHEN + - COUNT ( * ) THEN + 54 WHEN + - 28 + + ( + 38 + 46 ) * - 75 THEN 85 * 65 ELSE CAST ( NULL AS INTEGER ) END * - 63 ) * 6 + 30
----
-366

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT CASE + 6 WHEN + + 82 THEN - CASE + 22 WHEN - + 2 THEN + 67 / - 6 * + 17 + AVG ( ALL + - 67 ) END * 15 + + - 62 + - 22 * - COUNT( * ) WHEN MIN( ( - 20 ) ) THEN + ( + 30 ) * 13 ELSE - MIN( ALL - 82 ) - - 15 END AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1987
SELECT CASE + 6 WHEN + + 82 THEN - CASE + 22 WHEN - + 2 THEN + 67 / - 6 * + 17 + AVG ( ALL + - 67 ) END * 15 + + - 62 + - 22 * - COUNT ( * ) WHEN MIN ( ( - 20 ) ) THEN + ( + 30 ) * 13 ELSE - MIN ( ALL - 82 ) - - 15 END AS col1
----
97

query I rowsort
SELECT + 48 * 5
----
240

onlyif mysql # DIV for integer division: 
query II rowsort label-1989
SELECT ALL + 45 AS col0, - 81 + + 35 + + 87 DIV + 77
----
45
-45

skipif mysql # not compatible
query II rowsort label-1989
SELECT ALL + 45 AS col0, - 81 + + 35 + + 87 / + 77
----
45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT - 68 DIV + - 12 - 15
----
-10

skipif mysql # not compatible
query I rowsort label-1990
SELECT - 68 / + - 12 - 15
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1991
SELECT DISTINCT + 61, - CAST( NULL AS SIGNED ) * + - 69 AS col2
----
61
NULL

skipif mysql # not compatible
query II rowsort label-1991
SELECT DISTINCT + 61, - CAST ( NULL AS INTEGER ) * + - 69 AS col2
----
61
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT ALL 62 * - 10 * + + 10 + - + CAST( NULL AS SIGNED ) + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL 62 * - 10 * + + 10 + - + CAST ( NULL AS INTEGER ) + + 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1993
SELECT ALL 24 * + CASE + 26 WHEN - MIN( + 19 ) * + CASE + 97 WHEN - 76 + + COUNT( * ) THEN NULL ELSE + + 14 END THEN NULL WHEN - 90 * + - 80 THEN NULL WHEN - + COALESCE ( + 92, + 88, 53 + COUNT( * ) * + ( - CAST( + CASE - 64 WHEN - 0 * COUNT( * ) - + 77 THEN + 75 END AS SIGNED ) ) ) THEN NULL ELSE COUNT( * ) END
----
24

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL 24 * + CASE + 26 WHEN - MIN ( + 19 ) * + CASE + 97 WHEN - 76 + + COUNT ( * ) THEN NULL ELSE + + 14 END THEN NULL WHEN - 90 * + - 80 THEN NULL WHEN - + COALESCE ( + 92, + 88, 53 + COUNT ( * ) * + ( - CAST ( + CASE - 64 WHEN - 0 * COUNT ( * ) - + 77 THEN + 75 END AS INTEGER ) ) ) THEN NULL ELSE COUNT ( * ) END
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1994
SELECT - 80 * + - 61 + + CAST( - 47 AS SIGNED ) + - - CAST( 20 AS SIGNED ) + + NULLIF ( + 75, + 30 ) + - 25 DIV - SUM( DISTINCT - + 31 ) AS col0
----
4928

skipif mysql # not compatible
query I rowsort label-1994
SELECT - 80 * + - 61 + + CAST ( - 47 AS INTEGER ) + - - CAST ( 20 AS INTEGER ) + + NULLIF ( + 75, + 30 ) + - 25 / - SUM ( DISTINCT - + 31 ) AS col0
----
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-1995
SELECT - 70 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-1995
SELECT - 70 / 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1996
SELECT + 82 + - + CASE 28 WHEN 87 THEN NULLIF ( - + 91, - 28 + - - CAST( NULL AS SIGNED ) + + COALESCE ( - 99, 7 + - 34 ) * + 17 ) * + ( 31 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT + 82 + - + CASE 28 WHEN 87 THEN NULLIF ( - + 91, - 28 + - - CAST ( NULL AS INTEGER ) + + COALESCE ( - 99, 7 + - 34 ) * + 17 ) * + ( 31 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT COALESCE ( + 10, - 40 * - COUNT( * ) * 43, + 46 * 91 * + - 22 )
----
10

skipif mysql # not compatible
query I rowsort label-1997
SELECT COALESCE ( + 10, - 40 * - COUNT ( * ) * 43, + 46 * 91 * + - 22 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL + COALESCE ( 12, + 55 + + + COALESCE ( MAX( ALL - 1 ), + 13 * + ( - + 51 ) ) + + MAX( ALL 14 ) + COUNT( 84 ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL + COALESCE ( 12, + 55 + + + COALESCE ( MAX ( ALL - 1 ), + 13 * + ( - + 51 ) ) + + MAX ( ALL 14 ) + COUNT ( 84 ) ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT ALL - - COUNT( * ) * 34 + SUM( ALL - 30 ) + + 26
----
30

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL - - COUNT ( * ) * 34 + SUM ( ALL - 30 ) + + 26
----
30

query I rowsort
SELECT + + 29 * - + 10
----
-290

query II rowsort
SELECT - 7 AS col0, - 98 * + 69
----
-7
-6762

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT ALL - 26 * 23 + - + 26 + + 13 * - COUNT( * )
----
-637

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL - 26 * 23 + - + 26 + + 13 * - COUNT ( * )
----
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - + 79 + 40 - SUM( DISTINCT 58 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2003
SELECT - + 79 + 40 - SUM ( DISTINCT 58 ) AS col0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2004
SELECT ALL - ( - 8 ) * + + COALESCE ( + 65, 76 ) + - 39 + + ( + 18 ) * + CAST( 50 AS SIGNED ) AS col0
----
1381

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL - ( - 8 ) * + + COALESCE ( + 65, 76 ) + - 39 + + ( + 18 ) * + CAST ( 50 AS INTEGER ) AS col0
----
1381

query I rowsort
SELECT + - 68 * + 45 * - 18 AS col0
----
55080

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL - - 2 * + NULLIF ( + ( + 13 ), + + MAX( - 10 ) + - - COUNT( * ) ) + - 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL - - 2 * + NULLIF ( + ( + 13 ), + + MAX ( - 10 ) + - - COUNT ( * ) ) + - 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2008
SELECT + 98 AS col2, COUNT( * ) + + NULLIF ( 51, 13 ) AS col0
----
98
52

skipif mysql # not compatible
query II rowsort label-2008
SELECT + 98 AS col2, COUNT ( * ) + + NULLIF ( 51, 13 ) AS col0
----
98
52

query II rowsort
SELECT - 15, - 76 AS col1
----
-15
-76

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

query I rowsort
SELECT ALL - 72 * + 24 AS col0
----
-1728

onlyif mysql # aggregate syntax: 
query II rowsort label-2012
SELECT - 91 + - SUM( ALL 56 ) + 18 * + 31 * - 71 AS col1, + 67 + - + ( + COUNT( * ) ) AS col2
----
-39765
66

skipif mysql # not compatible
query II rowsort label-2012
SELECT - 91 + - SUM ( ALL 56 ) + 18 * + 31 * - 71 AS col1, + 67 + - + ( + COUNT ( * ) ) AS col2
----
-39765
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT MIN( + COALESCE ( 67, - 18 ) )
----
67

skipif mysql # not compatible
query I rowsort label-2013
SELECT MIN ( + COALESCE ( 67, - 18 ) )
----
67

query I rowsort
SELECT - 31 - + 26 + + 75 * 66 AS col2
----
4893

onlyif mysql # aggregate syntax: 
query II rowsort label-2015
SELECT ALL COUNT( * ) * - 31, 10 AS col1
----
-31
10

skipif mysql # not compatible
query II rowsort label-2015
SELECT ALL COUNT ( * ) * - 31, 10 AS col1
----
-31
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2016
SELECT - 48 DIV + ( + 29 ) * - COUNT( * ) + - COUNT( + 45 ) * 30 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2016
SELECT - 48 / + ( + 29 ) * - COUNT ( * ) + - COUNT ( + 45 ) * 30 AS col2
----
-29

query I rowsort
SELECT - 25 * - 2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT ALL - 28 DIV 23 + - 66 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - 28 / 23 + - 66 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT 97 * - + 24 + - COUNT( * )
----
-2329

skipif mysql # not compatible
query I rowsort label-2019
SELECT 97 * - + 24 + - COUNT ( * )
----
-2329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2020
SELECT + CASE COALESCE ( + CAST( COUNT( * ) AS SIGNED ), - - 91, - 82 * + - 37 ) WHEN - COUNT( * ) THEN NULL WHEN + + 94 THEN - + CASE - COUNT( * ) WHEN 23 THEN + 45 - SUM( ALL 24 ) + MAX( - 37 + + 56 ) * - 58 ELSE 68 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT + CASE COALESCE ( + CAST ( COUNT ( * ) AS INTEGER ), - - 91, - 82 * + - 37 ) WHEN - COUNT ( * ) THEN NULL WHEN + + 94 THEN - + CASE - COUNT ( * ) WHEN 23 THEN + 45 - SUM ( ALL 24 ) + MAX ( - 37 + + 56 ) * - 58 ELSE 68 END END AS col0
----
NULL

query I rowsort
SELECT ALL + 6 * + + 44 * + 59
----
15576

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT - 1 DIV - - 51 + + 95 * 16 * + 49
----
74480

skipif mysql # not compatible
query I rowsort label-2022
SELECT - 1 / - - 51 + + 95 * 16 * + 49
----
74480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2023
SELECT + 77 - 42 * + - 24 * + CAST( - + 16 AS SIGNED )
----
-16051

skipif mysql # not compatible
query I rowsort label-2023
SELECT + 77 - 42 * + - 24 * + CAST ( - + 16 AS INTEGER )
----
-16051

query I rowsort
SELECT ALL - ( 4 ) * - 7
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2025
SELECT ALL - 51 DIV - - 77 + - - SUM( DISTINCT + + ( + - 13 ) ) - + 27 * COUNT( ALL 46 )
----
-40

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL - 51 / - - 77 + - - SUM ( DISTINCT + + ( + - 13 ) ) - + 27 * COUNT ( ALL 46 )
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2026
SELECT + AVG ( ALL - CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT + AVG ( ALL - CAST ( NULL AS REAL ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2027
SELECT CAST( + 81 AS SIGNED ), + 98 AS col2
----
81
98

skipif mysql # not compatible
query II rowsort label-2027
SELECT CAST ( + 81 AS INTEGER ), + 98 AS col2
----
81
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT ( - COALESCE ( + - 34, - + SUM( - - 61 ) ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2029
SELECT ( - COALESCE ( + - 34, - + SUM ( - - 61 ) ) ) AS col1
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-2030
SELECT + ( - + 45 ), 76 DIV - 95 AS col0
----
-45
0

skipif mysql # not compatible
query II rowsort label-2030
SELECT + ( - + 45 ), 76 / - 95 AS col0
----
-45
0

query II rowsort
SELECT ALL ( 26 ) * 80 + - 55 AS col0, 62 + - 66 + - 94
----
2025
-98

query I rowsort
SELECT + + 83 * 45 AS col2
----
3735

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT + 3 - + COUNT( ALL + 44 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2033
SELECT + 3 - + COUNT ( ALL + 44 ) AS col0
----
2

query I rowsort
SELECT + 73 * - 65
----
-4745

query I rowsort
SELECT + 67 * - 46 - ( + 41 ) * 86 col2
----
-6608

onlyif mysql # aggregate syntax: 
query II rowsort label-2036
SELECT ALL + + ( - 73 ) AS col0, COUNT( + ( 98 ) ) AS col2
----
-73
1

skipif mysql # not compatible
query II rowsort label-2036
SELECT ALL + + ( - 73 ) AS col0, COUNT ( + ( 98 ) ) AS col2
----
-73
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2037
SELECT + 79 * 38 + + 91 + - - CAST( NULL AS SIGNED ), + ( - 64 ) AS col0
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-2037
SELECT + 79 * 38 + + 91 + - - CAST ( NULL AS INTEGER ), + ( - 64 ) AS col0
----
NULL
-64

query I rowsort
SELECT + + 56 * - - ( + + 25 ) * - 94 AS col2
----
-131600

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT ALL + 12 DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL + 12 / + 57 AS col2
----
0

query I rowsort
SELECT + 66 - + 49 AS col1
----
17

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2042
SELECT CAST( NULL AS SIGNED ) + 21 / ( 52 ), - 22 AS col2
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-2042
SELECT CAST ( NULL AS INTEGER ) + 21 / ( 52 ), - 22 AS col2
----
NULL
-22

query I rowsort
SELECT 79 * - 4 AS col0
----
-316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2044
SELECT 38 + COALESCE ( 88, - + 3, + - 73 DIV - 50 + + + 27 * - + COUNT( ALL COALESCE ( + 79, + CAST( NULL AS SIGNED ) ) ) ) * 2 - - 6 AS col0
----
220

skipif mysql # not compatible
query I rowsort label-2044
SELECT 38 + COALESCE ( 88, - + 3, + - 73 / - 50 + + + 27 * - + COUNT ( ALL COALESCE ( + 79, + CAST ( NULL AS INTEGER ) ) ) ) * 2 - - 6 AS col0
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL - 77 * CASE - 62 WHEN + + 47 THEN - SUM( DISTINCT - 78 ) ELSE NULL END + COUNT( * ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - 77 * CASE - 62 WHEN + + 47 THEN - SUM ( DISTINCT - 78 ) ELSE NULL END + COUNT ( * ) + + + COUNT ( * )
----
NULL

query I rowsort
SELECT 71 + + ( - - 35 ) * - 38
----
-1259

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT 78 + 69 * - MAX( + + 0 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT 78 + 69 * - MAX ( + + 0 ) AS col2
----
78

query I rowsort
SELECT DISTINCT - 19 + - 13
----
-32

query II rowsort
SELECT 14 AS col2, - 17
----
14
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2051
SELECT DISTINCT + COALESCE ( + 83, 27 * - + 74 + 59 DIV + - 25 DIV + + 29 ) + 29
----
112

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT + COALESCE ( + 83, 27 * - + 74 + 59 / + - 25 / + + 29 ) + 29
----
112

query II rowsort
SELECT - 62, 28 + - 30 AS col0
----
-62
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2053
SELECT 45 DIV - 22 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2053
SELECT 45 / - 22 AS col2
----
-2

query I rowsort
SELECT ALL + 2 + + - 35 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT 28 * 30 * SUM( + 19 )
----
15960

skipif mysql # not compatible
query I rowsort label-2055
SELECT 28 * 30 * SUM ( + 19 )
----
15960

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT 75 DIV + - 90 + 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-2056
SELECT 75 / + - 90 + 73 AS col1
----
73

query II rowsort
SELECT 46, 44 col1
----
46
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL - COUNT( - 72 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL - COUNT ( - 72 ) col1
----
-1

query I rowsort
SELECT 65 + 46 - - 82
----
193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2060
SELECT + COUNT( * ) * + - 6 + - 15 + - - COALESCE ( + - 17, - CAST( - NULLIF ( + 66, - 79 + 29 * CAST( + 52 AS SIGNED ) + - + ( - 65 ) * ( 9 ) * - 79 ) AS SIGNED ), - 12 ) + 78 * - 55 * + 84
----
-360398

skipif mysql # not compatible
query I rowsort label-2060
SELECT + COUNT ( * ) * + - 6 + - 15 + - - COALESCE ( + - 17, - CAST ( - NULLIF ( + 66, - 79 + 29 * CAST ( + 52 AS INTEGER ) + - + ( - 65 ) * ( 9 ) * - 79 ) AS INTEGER ), - 12 ) + 78 * - 55 * + 84
----
-360398

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT + CASE + + 72 WHEN 4 THEN + 7 * - COALESCE ( + - 92, + - COUNT( * ) + - 58 + - 65 ) + - 20 + + SUM( - 14 ) WHEN - + 0 THEN + 50 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2061
SELECT + CASE + + 72 WHEN 4 THEN + 7 * - COALESCE ( + - 92, + - COUNT ( * ) + - 58 + - 65 ) + - 20 + + SUM ( - 14 ) WHEN - + 0 THEN + 50 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT + + 10 * ( 48 ) - + 54 + - 67 * + + 23 * - CASE + 64 WHEN - + 67 * - - 75 + - 26 + - COUNT( * ) - - 38 * 44 - 31 + NULLIF ( - COUNT( * ) + - 65, + 82 + COUNT( * ) ) * - 66 * - 78 + 48 * - 57 THEN - 51 * COUNT( * ) END / 74 * COUNT( DISTINCT + NULLIF ( - COALESCE ( 4, - 65 ), - 75 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT + + 10 * ( 48 ) - + 54 + - 67 * + + 23 * - CASE + 64 WHEN - + 67 * - - 75 + - 26 + - COUNT ( * ) - - 38 * 44 - 31 + NULLIF ( - COUNT ( * ) + - 65, + 82 + COUNT ( * ) ) * - 66 * - 78 + 48 * - 57 THEN - 51 * COUNT ( * ) END / 74 * COUNT ( DISTINCT + NULLIF ( - COALESCE ( 4, - 65 ), - 75 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2063
SELECT DISTINCT + - CASE + 66 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE COUNT( * ) + - CASE + COUNT( * ) WHEN - 69 - + - 28 THEN - + MIN( + 92 ) WHEN - COUNT( 32 ) THEN + ( + 23 ) * + 17 * - 37 WHEN 63 THEN NULL ELSE + 67 * - 34 - 64 END - 31 END * - 94 AS col2
----
217328

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT + - CASE + 66 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE COUNT ( * ) + - CASE + COUNT ( * ) WHEN - 69 - + - 28 THEN - + MIN ( + 92 ) WHEN - COUNT ( 32 ) THEN + ( + 23 ) * + 17 * - 37 WHEN 63 THEN NULL ELSE + 67 * - 34 - 64 END - 31 END * - 94 AS col2
----
217328

query I rowsort
SELECT DISTINCT - - 63 col0
----
63

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2066
SELECT 36 * - COUNT( - 4 ) + - CASE + - AVG ( - 17 ) WHEN - + 81 THEN - COUNT( - 79 ) ELSE - CAST( NULL AS DECIMAL ) END + - + 22 - + 2 / - - 6 * + 92 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT 36 * - COUNT ( - 4 ) + - CASE + - AVG ( - 17 ) WHEN - + 81 THEN - COUNT ( - 79 ) ELSE - CAST ( NULL AS REAL ) END + - + 22 - + 2 / - - 6 * + 92 * 34
----
NULL

query I rowsort
SELECT DISTINCT 52 * ( + ( + 19 ) ) + + + CASE 22 WHEN - 5 THEN - + 45 / - + 12 + - + 41 ELSE NULL END + 11
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2068
SELECT - AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) * + - 52 col2, 70 - - 95 + - 68
----
NULL
97

skipif mysql # not compatible
query II rowsort label-2068
SELECT - AVG ( DISTINCT CAST ( NULL AS REAL ) ) * + - 52 col2, 70 - - 95 + - 68
----
NULL
97

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT - 39 + + - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2071
SELECT - 39 + + - COUNT ( * ) AS col1
----
-40

query I rowsort
SELECT DISTINCT 9 + 93
----
102

query I rowsort
SELECT ALL - 20 + + - 86 * + 11 AS col2
----
-966

query I rowsort
SELECT DISTINCT ( + 77 ) + - 14 AS col1
----
63

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

skipif mysql # not compatible
query I rowsort label-2075
SELECT CAST ( NULL AS INTEGER ) * + - 2 * - COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT DISTINCT - CASE WHEN ( NULL ) BETWEEN + - 30 AND - CASE - - 62 WHEN 3 THEN + - 4 ELSE + + 4 END THEN - - ( - + 12 ) ELSE NULL END / 27 AS col2
----
NULL

query I rowsort
SELECT 45 + + - ( 47 ) AS col2
----
-2

query I rowsort
SELECT COALESCE ( + - 12, - + 20 ) * + 87 AS col0
----
-1044

query I rowsort
SELECT 28 - - 30
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2081
SELECT - 15 AS col2, NULLIF ( - 49, - ( 18 ) + + COUNT( * ) ) + - - 90
----
-15
41

skipif mysql # not compatible
query II rowsort label-2081
SELECT - 15 AS col2, NULLIF ( - 49, - ( 18 ) + + COUNT ( * ) ) + - - 90
----
-15
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT + 89 * + + MIN( DISTINCT + + 48 ) AS col1
----
4272

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT + 89 * + + MIN ( DISTINCT + + 48 ) AS col1
----
4272

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2083
SELECT ALL NULLIF ( - - 91, + CAST( NULL AS DECIMAL ) ) + - 84 + + 21 + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL NULLIF ( - - 91, + CAST ( NULL AS REAL ) ) + - 84 + + 21 + - COUNT ( * )
----
27

query I rowsort
SELECT ALL + 71 - - + 45
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT DISTINCT ( - MIN( ALL - 50 ) ) * 51 AS col1
----
2550

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT ( - MIN ( ALL - 50 ) ) * 51 AS col1
----
2550

query I rowsort
SELECT 71 * - 81 + 22
----
-5729

query I rowsort
SELECT 63 * - - 23 AS col0
----
1449

onlyif mysql # aggregate syntax: 
query II rowsort label-2088
SELECT ALL 67 * + - 7 * + 95 * + + 91 * - NULLIF ( + SUM( - ( - 12 ) ), + - 99 ) - - 27 - - 14 AS col1, ( + - 26 )
----
48654101
-26

skipif mysql # not compatible
query II rowsort label-2088
SELECT ALL 67 * + - 7 * + 95 * + + 91 * - NULLIF ( + SUM ( - ( - 12 ) ), + - 99 ) - - 27 - - 14 AS col1, ( + - 26 )
----
48654101
-26

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

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

query I rowsort
SELECT 83 * - 85
----
-7055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2091
SELECT + 46 * 9 AS col1, CAST( - COUNT( * ) AS SIGNED ) col2
----
414
-1

skipif mysql # not compatible
query II rowsort label-2091
SELECT + 46 * 9 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) col2
----
414
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2092
SELECT - CASE + 0 WHEN - - CASE 59 WHEN + + 76 THEN NULL WHEN 87 + + 49 THEN + COUNT( * ) WHEN ( - + 97 ) THEN NULL ELSE NULL END THEN - - 57 ELSE NULL END + - CAST( - - ( + CAST( - 71 AS SIGNED ) ) AS SIGNED ) * - COUNT( * ) * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT - CASE + 0 WHEN - - CASE 59 WHEN + + 76 THEN NULL WHEN 87 + + 49 THEN + COUNT ( * ) WHEN ( - + 97 ) THEN NULL ELSE NULL END THEN - - 57 ELSE NULL END + - CAST ( - - ( + CAST ( - 71 AS INTEGER ) ) AS INTEGER ) * - COUNT ( * ) * 99
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2093
SELECT DISTINCT + 95 DIV + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT + 95 / + 98 AS col1
----
0

query II rowsort
SELECT ALL + 3 AS col1, 76 * - 51
----
3
-3876

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL - COALESCE ( - COUNT( * ), - + COALESCE ( - - COUNT( * ), COUNT( * ) ) - 12, - + 87 ) * + 0 + - 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - COALESCE ( - COUNT ( * ), - + COALESCE ( - - COUNT ( * ), COUNT ( * ) ) - 12, - + 87 ) * + 0 + - 50 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ALL + - SUM( + - 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL + - SUM ( + - 62 ) AS col1
----
62

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL - 84 * SUM( ALL - 23 ) AS col0
----
1932

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL - 84 * SUM ( ALL - 23 ) AS col0
----
1932

query I rowsort
SELECT - ( - 72 ) col2
----
72

query I rowsort
SELECT - 92 * + 39
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL 16 * SUM( + 91 ) + + 75 - - 63
----
1594

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL 16 * SUM ( + 91 ) + + 75 - - 63
----
1594

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT - + 4 - + CASE - 14 WHEN + 83 + + - MAX( - 7 ) THEN - ( 99 ) * - 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT - + 4 - + CASE - 14 WHEN + 83 + + - MAX ( - 7 ) THEN - ( 99 ) * - 3 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 49, 25 AS col2
----
49
25

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

query I rowsort
SELECT ALL + 60 + - 34 AS col2
----
26

query I rowsort
SELECT DISTINCT + + 2 col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2109
SELECT - 42 + 97 * MIN( - 89 ) AS col2, 81 AS col1
----
-8675
81

skipif mysql # not compatible
query II rowsort label-2109
SELECT - 42 + 97 * MIN ( - 89 ) AS col2, 81 AS col1
----
-8675
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL + NULLIF ( 39, - ( 68 ) / - COUNT( * ) ) + + 21 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL + NULLIF ( 39, - ( 68 ) / - COUNT ( * ) ) + + 21 AS col1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT + 2 - 59 + + 2 DIV 75 + - 84 AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-2111
SELECT + 2 - 59 + + 2 / 75 + - 84 AS col0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT - 72 + + COALESCE ( 68, - + COUNT( * ), + - COALESCE ( - + 10, + 37 * 37 + + - 17 ), + COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2112
SELECT - 72 + + COALESCE ( 68, - + COUNT ( * ), + - COALESCE ( - + 10, + 37 * 37 + + - 17 ), + COUNT ( * ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL MIN( DISTINCT - - 53 ) + 16 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL MIN ( DISTINCT - - 53 ) + 16 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT - CASE - 16 WHEN + 38 THEN NULL ELSE 54 DIV + 82 - - 66 END AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2114
SELECT - CASE - 16 WHEN + 38 THEN NULL ELSE 54 / + 82 - - 66 END AS col0
----
-66

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2116
SELECT - 66 * 79 AS col0, COALESCE ( 5, COUNT( * ) ) * 41 + + - 40 + - 85 + + - 11 + + - 87 * - - 93 + - 48 AS col2
----
-5214
-8070

skipif mysql # not compatible
query II rowsort label-2116
SELECT - 66 * 79 AS col0, COALESCE ( 5, COUNT ( * ) ) * 41 + + - 40 + - 85 + + - 11 + + - 87 * - - 93 + - 48 AS col2
----
-5214
-8070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT - COALESCE ( + CAST( + - 84 AS SIGNED ), + 61 * - 69 + + + COUNT( * ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2117
SELECT - COALESCE ( + CAST ( + - 84 AS INTEGER ), + 61 * - 69 + + + COUNT ( * ) ) AS col1
----
84

query I rowsort
SELECT ALL 77 * - 19 AS col0
----
-1463

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

skipif mysql # not compatible
query I rowsort label-2119
SELECT - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2120
SELECT + 18 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT + 18 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL - 84 - - - 7 + - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL - 84 - - - 7 + - COUNT ( * )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2122
SELECT + 88 DIV - + 67
----
-1

skipif mysql # not compatible
query I rowsort label-2122
SELECT + 88 / - + 67
----
-1

query I rowsort
SELECT + 0 + 27
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT ALL 11 DIV 87 * 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL 11 / 87 * 82 AS col0
----
0

query II rowsort
SELECT - ( - 55 ) AS col2, 25
----
55
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT - MIN( ALL + ( + ( 85 ) ) ) * + 28 AS col1
----
-2380

skipif mysql # not compatible
query I rowsort label-2126
SELECT - MIN ( ALL + ( + ( 85 ) ) ) * + 28 AS col1
----
-2380

query I rowsort
SELECT ALL 64 * 9 AS col0
----
576

query I rowsort
SELECT - 43 * + - 54 AS col2
----
2322

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

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

query I rowsort
SELECT ALL + 49 * + 70
----
3430

query I rowsort
SELECT - 10 * ( + 44 )
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ALL - COALESCE ( - ( - 5 ), 26 * - 71 + - + 32 * - 29 + + - 96 ) * - 97 * - MIN( ALL + 31 ) AS col1
----
-15035

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL - COALESCE ( - ( - 5 ), 26 * - 71 + - + 32 * - 29 + + - 96 ) * - 97 * - MIN ( ALL + 31 ) AS col1
----
-15035

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2133
SELECT + + SUM( - 38 ) AS col2, 41 DIV 26 DIV - COUNT( * ) col1
----
-38
-1

skipif mysql # not compatible
query II rowsort label-2133
SELECT + + SUM ( - 38 ) AS col2, 41 / 26 / - COUNT ( * ) col1
----
-38
-1

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

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

query I rowsort
SELECT + - 50 * - + 88 * 80
----
352000

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT ALL + ( + + CAST( + 23 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) + + 9 + 58 + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL + ( + + CAST ( + 23 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + + 9 + 58 + + 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2138
SELECT ALL - 79 * - - CASE + 79 WHEN ( ( 56 ) ) THEN + CAST( - 30 AS DECIMAL ) END + - 45 + - ( + - 4 ) + + 9 + - 86 * + + CASE + 71 WHEN + - ( - 0 ) THEN + ( - 33 ) / 92 WHEN - CASE - COUNT( * ) WHEN - 74 THEN - 77 * - COUNT( + 88 ) + + 86 WHEN SUM( - 40 ) + COUNT( * ) THEN + 51 * - MIN( ALL 9 ) ELSE + 44 * + 21 END THEN 87 ELSE NULL END * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL - 79 * - - CASE + 79 WHEN ( ( 56 ) ) THEN + CAST ( - 30 AS REAL ) END + - 45 + - ( + - 4 ) + + 9 + - 86 * + + CASE + 71 WHEN + - ( - 0 ) THEN + ( - 33 ) / 92 WHEN - CASE - COUNT ( * ) WHEN - 74 THEN - 77 * - COUNT ( + 88 ) + + 86 WHEN SUM ( - 40 ) + COUNT ( * ) THEN + 51 * - MIN ( ALL 9 ) ELSE + 44 * + 21 END THEN 87 ELSE NULL END * + 45
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2139
SELECT ALL - + 30 * 90 - + 50 - - 7 + + COUNT( * ) DIV + 59
----
-2743

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL - + 30 * 90 - + 50 - - 7 + + COUNT ( * ) / + 59
----
-2743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2140
SELECT DISTINCT + ( + CASE - + 26 WHEN CAST( NULL AS SIGNED ) * - 53 + ( - + CAST( NULL AS SIGNED ) ) * - + COUNT( * ) + + + 68 * - - 7 + 72 * + - COUNT( * ) * + 97 * + 7 * + 48 + 26 / + - 92 THEN - COUNT( * ) WHEN + COUNT( * ) * NULLIF ( + 82, - MIN( + 32 ) ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT + ( + CASE - + 26 WHEN CAST ( NULL AS INTEGER ) * - 53 + ( - + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) + + + 68 * - - 7 + 72 * + - COUNT ( * ) * + 97 * + 7 * + 48 + 26 / + - 92 THEN - COUNT ( * ) WHEN + COUNT ( * ) * NULLIF ( + 82, - MIN ( + 32 ) ) THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL - + 31 * MAX( ALL - 33 ) * 65 + + - 32 AS col0
----
66463

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - + 31 * MAX ( ALL - 33 ) * 65 + + - 32 AS col0
----
66463

query I rowsort
SELECT + NULLIF ( 2, + 24 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2143
SELECT DISTINCT - COUNT( * ) * + 13 DIV - + 78 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT - COUNT ( * ) * + 13 / - + 78 + + 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - 54 + + + CASE + NULLIF ( - 83, + + COUNT( * ) ) WHEN + 7 * - 9 - + 70 - - 43 / 33 * - 49 / - - 57 + + + CASE 90 WHEN + 66 THEN NULL ELSE NULLIF ( - 48, - 90 * COUNT( * ) ) * 68 + 98 END THEN NULL WHEN - 75 + - 27 THEN 59 ELSE NULL END / 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT - 54 + + + CASE + NULLIF ( - 83, + + COUNT ( * ) ) WHEN + 7 * - 9 - + 70 - - 43 / 33 * - 49 / - - 57 + + + CASE 90 WHEN + 66 THEN NULL ELSE NULLIF ( - 48, - 90 * COUNT ( * ) ) * 68 + 98 END THEN NULL WHEN - 75 + - 27 THEN 59 ELSE NULL END / 87
----
NULL

query I rowsort
SELECT - 66 * - 62
----
4092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT + 72 * - - CASE - 2 WHEN + CAST( NULL AS SIGNED ) * ( + ( + 68 ) ) + - 26 THEN - 60 ELSE NULL END * + CAST( NULL AS SIGNED ) * - + 93 / - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT + 72 * - - CASE - 2 WHEN + CAST ( NULL AS INTEGER ) * ( + ( + 68 ) ) + - 26 THEN - 60 ELSE NULL END * + CAST ( NULL AS INTEGER ) * - + 93 / - 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2147
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 54 * + 31 AS col0
----
NULL
1674

skipif mysql # not compatible
query II rowsort label-2147
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 54 * + 31 AS col0
----
NULL
1674

query I rowsort
SELECT - 42 * - 66
----
2772

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

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

query I rowsort
SELECT - 60 + - + 51 AS col1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT - MAX( + 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-2151
SELECT - MAX ( + 76 ) AS col1
----
-76

query I rowsort
SELECT ALL 6 - + - 39
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2153
SELECT 24 AS col2, CAST( NULL AS DECIMAL ) * 39
----
24
NULL

skipif mysql # not compatible
query II rowsort label-2153
SELECT 24 AS col2, CAST ( NULL AS REAL ) * 39
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL - 53 * + MIN( - 52 ) AS col1
----
2756

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - 53 * + MIN ( - 52 ) AS col1
----
2756

query I rowsort
SELECT - 76 * - NULLIF ( - 4, - 39 )
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT + 82 + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2156
SELECT + 82 + COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT - MIN( DISTINCT 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-2157
SELECT - MIN ( DISTINCT 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT - CAST( - - 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-2158
SELECT - CAST ( - - 25 AS INTEGER )
----
-25

query II rowsort
SELECT ALL 81, - 11 AS col2
----
81
-11

query I rowsort
SELECT 69 * 28 * + - 29 AS col2
----
-56028

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT - + SUM( DISTINCT - 52 ) * - 67 * - 41 * + 72
----
10284768

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT - + SUM ( DISTINCT - 52 ) * - 67 * - 41 * + 72
----
10284768

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2163
SELECT ALL + 29 + 40 - + - CAST( NULL AS DECIMAL ) AS col0, 99 * + CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2163
SELECT ALL + 29 + 40 - + - CAST ( NULL AS REAL ) AS col0, 99 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

query I rowsort
SELECT 22 * + 62
----
1364

query II rowsort
SELECT + 29 AS col1, - 95
----
29
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-2166
SELECT - 83 * - - 53 + + - SUM( - 95 ) AS col2, 57 AS col1
----
-4304
57

skipif mysql # not compatible
query II rowsort label-2166
SELECT - 83 * - - 53 + + - SUM ( - 95 ) AS col2, 57 AS col1
----
-4304
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT SUM( DISTINCT - - 87 ) col0
----
87

skipif mysql # not compatible
query I rowsort label-2167
SELECT SUM ( DISTINCT - - 87 ) col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL - COUNT( * ) + - + 56 - - MAX( ALL ( + ( - - 38 ) ) ) + - - 17 * + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL - COUNT ( * ) + - + 56 - - MAX ( ALL ( + ( - - 38 ) ) ) + - - 17 * + COUNT ( * )
----
-2

query II rowsort
SELECT 57 AS col1, 66 AS col0
----
57
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2170
SELECT CAST( - - 81 AS SIGNED ) - - 73 * + - 12 - 87
----
-882

skipif mysql # not compatible
query I rowsort label-2170
SELECT CAST ( - - 81 AS INTEGER ) - - 73 * + - 12 - 87
----
-882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2171
SELECT ALL + CASE - + CASE + - 77 WHEN - SUM( DISTINCT + NULLIF ( ( - 35 ), - 85 * 86 ) ) * + 9 * + COUNT( * ) * 96 THEN + + 38 + 36 / + - 53 * + 58 WHEN 27 + 20 THEN NULL END WHEN - CAST( NULL AS SIGNED ) THEN 50 + COALESCE ( 28, - ( - 55 ) * + 85, + 20 + - ( + 33 + 87 ) ) END + 78 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL + CASE - + CASE + - 77 WHEN - SUM ( DISTINCT + NULLIF ( ( - 35 ), - 85 * 86 ) ) * + 9 * + COUNT ( * ) * 96 THEN + + 38 + 36 / + - 53 * + 58 WHEN 27 + 20 THEN NULL END WHEN - CAST ( NULL AS INTEGER ) THEN 50 + COALESCE ( 28, - ( - 55 ) * + 85, + 20 + - ( + 33 + 87 ) ) END + 78 * - 50
----
NULL

query I rowsort
SELECT + 77 + 92 * - 48
----
-4339

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

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

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

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

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

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

query I rowsort
SELECT 38 + + 87
----
125

query I rowsort
SELECT ALL + 12 * - ( - 0 )
----
0

query I rowsort
SELECT 64 - + + 7
----
57

query I rowsort
SELECT ( 59 ) + + 93 AS col2
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT 44 DIV + + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2180
SELECT 44 / + + 97 AS col2
----
0

query I rowsort
SELECT 63 + 4 col0
----
67

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

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + COUNT ( * ) * + + ( + 4 ) AS col2
----
4

query I rowsort
SELECT DISTINCT - 67 * 73 AS col0
----
-4891

query I rowsort
SELECT 73 + 8
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2185
SELECT DISTINCT + MIN( DISTINCT - 17 ) + + + 91 DIV - + 94 AS col2, + 52
----
-17
52

skipif mysql # not compatible
query II rowsort label-2185
SELECT DISTINCT + MIN ( DISTINCT - 17 ) + + + 91 / - + 94 AS col2, + 52
----
-17
52

query I rowsort
SELECT DISTINCT - 99 + + - 29
----
-128

query I rowsort
SELECT - + COALESCE ( NULLIF ( ( + + 80 ), + AVG ( DISTINCT + 8 ) ), 14 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT - ( + - 12 ) + - MIN( + COALESCE ( + 47, + 47 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-2188
SELECT - ( + - 12 ) + - MIN ( + COALESCE ( + 47, + 47 ) )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2189
SELECT - COUNT( * ) * + MAX( - ( + 87 ) ), - 29 AS col2
----
87
-29

skipif mysql # not compatible
query II rowsort label-2189
SELECT - COUNT ( * ) * + MAX ( - ( + 87 ) ), - 29 AS col2
----
87
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT ALL - 97 + 57 DIV + - ( - 38 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL - 97 + 57 / + - ( - 38 ) AS col2
----
-96

query I rowsort
SELECT 58 * 88 * - 50 col0
----
-255200

query I rowsort
SELECT DISTINCT - 6 * - 98 * - + 7 - - 28 + 20
----
-4068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2193
SELECT DISTINCT + + CASE - CAST( 18 AS SIGNED ) WHEN 49 THEN 65 * - 7 * - MIN( DISTINCT - + 77 ) + - + 62 * COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * 79 END * + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT + + CASE - CAST ( 18 AS INTEGER ) WHEN 49 THEN 65 * - 7 * - MIN ( DISTINCT - + 77 ) + - + 62 * COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 79 END * + 67 AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2196
SELECT - ( 42 ) DIV - COUNT( * ) + - + 10 - + 7 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2196
SELECT - ( 42 ) / - COUNT ( * ) + - + 10 - + 7 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2197
SELECT - CAST( NULL AS SIGNED ) + + - NULLIF ( - 87, + 43 ) + - SUM( ALL + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT - CAST ( NULL AS INTEGER ) + + - NULLIF ( - 87, + 43 ) + - SUM ( ALL + 23 )
----
NULL

query I rowsort
SELECT + 83 * 34 col0
----
2822

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT - 58 + 97 + + 91 DIV 20 * 22 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-2199
SELECT - 58 + 97 + + 91 / 20 * 22 AS col0
----
127

query II rowsort
SELECT DISTINCT - 70 AS col0, - 87
----
-70
-87

query I rowsort
SELECT ALL 31 - - 4 AS col0
----
35

query I rowsort
SELECT DISTINCT 48 * + 6 * + ( 49 )
----
14112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2203
SELECT COUNT( * ) * CAST( - + 72 AS SIGNED ) * 63 - - 79 * - 20 AS col0, NULLIF ( + - 19, - MAX( - 71 ) / + CASE + MAX( DISTINCT 30 ) WHEN + 66 * + 80 * - - COUNT( * ) + COUNT( * ) * + 39 THEN NULL WHEN + + 14 * 62 + + COALESCE ( 76, + 58 * 35 + 49 ) * + 22 THEN - MAX( DISTINCT 49 ) WHEN + MAX( 47 ) + + 15 * + 33 THEN NULL END * 63 ) AS col1
----
-6116
-19

skipif mysql # not compatible
query II rowsort label-2203
SELECT COUNT ( * ) * CAST ( - + 72 AS INTEGER ) * 63 - - 79 * - 20 AS col0, NULLIF ( + - 19, - MAX ( - 71 ) / + CASE + MAX ( DISTINCT 30 ) WHEN + 66 * + 80 * - - COUNT ( * ) + COUNT ( * ) * + 39 THEN NULL WHEN + + 14 * 62 + + COALESCE ( 76, + 58 * 35 + 49 ) * + 22 THEN - MAX ( DISTINCT 49 ) WHEN + MAX ( 47 ) + + 15 * + 33 THEN NULL END * 63 ) AS col1
----
-6116
-19

query I rowsort
SELECT 73 + + 23 AS col1
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT + ( NULLIF ( - + COUNT( * ), - - 4 ) ) * 9 * + 40 + + COUNT( - 56 ) AS col0
----
-359

skipif mysql # not compatible
query I rowsort label-2206
SELECT + ( NULLIF ( - + COUNT ( * ), - - 4 ) ) * 9 * + 40 + + COUNT ( - 56 ) AS col0
----
-359

query I rowsort
SELECT ALL 53 + + + CASE - 99 WHEN - 51 THEN NULL WHEN - 91 THEN NULL ELSE + + 4 - 82 END
----
-25

query I rowsort
SELECT ALL + 90 * - 44 * + 98 * 2
----
-776160

query I rowsort
SELECT ALL + 81 + + 27 AS col2
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT DISTINCT 46 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT 46 / - 59
----
0

query I rowsort
SELECT ALL - 18 + - - 5 * - - 75 - - 74
----
431

query I rowsort
SELECT ALL + 18 * - + ( + 43 ) + + 74
----
-700

query I rowsort
SELECT DISTINCT - 59 + + + 34
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2214
SELECT - + NULLIF ( - COUNT( * ), 75 ), 10 DIV - 71 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2214
SELECT - + NULLIF ( - COUNT ( * ), 75 ), 10 / - 71 AS col0
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2215
SELECT - - 62 * - NULLIF ( - 7, + MAX( - NULLIF ( 29, - CAST( NULL AS DECIMAL ) ) ) ) AS col1
----
434

skipif mysql # not compatible
query I rowsort label-2215
SELECT - - 62 * - NULLIF ( - 7, + MAX ( - NULLIF ( 29, - CAST ( NULL AS REAL ) ) ) ) AS col1
----
434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2216
SELECT - ( - NULLIF ( 65, + - COUNT( * ) * - CAST( + - 74 AS SIGNED ) ) )
----
65

skipif mysql # not compatible
query I rowsort label-2216
SELECT - ( - NULLIF ( 65, + - COUNT ( * ) * - CAST ( + - 74 AS INTEGER ) ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT - 24 * MIN( - 8 ) AS col0
----
192

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT - 24 * MIN ( - 8 ) AS col0
----
192

query I rowsort
SELECT ALL + 66 + - 85 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT + NULLIF ( + - 65, - + ( - COUNT( * ) ) + - 40 )
----
-65

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + NULLIF ( + - 65, - + ( - COUNT ( * ) ) + - 40 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL - + 69 - COUNT( ALL 72 ) * ( + 62 ) * 12 AS col1
----
-813

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL - + 69 - COUNT ( ALL 72 ) * ( + 62 ) * 12 AS col1
----
-813

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

query I rowsort
SELECT - - 61 * - 95 AS col1
----
-5795

query I rowsort
SELECT CASE - 38 WHEN 34 THEN + 76 * + 25 * - 1 + 46 + + + 86 * + 94 * - 77 + + 15 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT + COALESCE ( + COALESCE ( 16, + + 82 ), COUNT( DISTINCT - - 9 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-2225
SELECT + COALESCE ( + COALESCE ( 16, + + 82 ), COUNT ( DISTINCT - - 9 ) ) AS col0
----
16

query I rowsort
SELECT COALESCE ( - 34, + 66 + + 65 + - + 18 )
----
-34

query I rowsort
SELECT ALL + 57 * + 95 * 84 AS col2
----
454860

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

skipif mysql # not compatible
query I rowsort label-2228
SELECT - COUNT ( * ) / - + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT NULLIF ( - COUNT( * ), + 40 * - 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-2229
SELECT NULLIF ( - COUNT ( * ), + 40 * - 96 )
----
-1

query I rowsort
SELECT DISTINCT + COALESCE ( + CASE - NULLIF ( + 30, 85 + - 60 ) WHEN - 94 - + 23 THEN + - 24 ELSE NULL END, 85 ) * - ( 15 ) * + + 28 + - + ( + 4 )
----
-35704

query I rowsort
SELECT + CASE WHEN NOT + 14 <> NULL THEN - + 92 + + + 92 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT - 1 DIV + - 88
----
0

skipif mysql # not compatible
query I rowsort label-2232
SELECT - 1 / + - 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT - 60 + + COALESCE ( + 71, - + 83, + 9 + 47 ) + + MAX( DISTINCT 33 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2233
SELECT - 60 + + COALESCE ( + 71, - + 83, + 9 + 47 ) + + MAX ( DISTINCT 33 ) AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2234
SELECT COALESCE ( + + COUNT( * ), + CAST( NULL AS SIGNED ), - + 37 * + 61 + + 91 + - 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2234
SELECT COALESCE ( + + COUNT ( * ), + CAST ( NULL AS INTEGER ), - + 37 * + 61 + + 91 + - 82 ) AS col1
----
1

query I rowsort
SELECT + 42 * - 23 AS col0
----
-966

query I rowsort
SELECT - 53 + + - 90 * - 75 AS col0
----
6697

query I rowsort
SELECT + 97 * + 71 + + 68 AS col1
----
6955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT DISTINCT 47 * CASE - COALESCE ( - + 19, COUNT( ALL + 28 ), - - 74 * 78 * + 67 / + - 2 ) WHEN 72 + - 17 + - + 40 * 53 THEN + 36 + + COUNT( * ) + 11 END * + 79 * - CAST( COUNT( * ) AS SIGNED ) + + 84 + - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT 47 * CASE - COALESCE ( - + 19, COUNT ( ALL + 28 ), - - 74 * 78 * + 67 / + - 2 ) WHEN 72 + - 17 + - + 40 * 53 THEN + 36 + + COUNT ( * ) + 11 END * + 79 * - CAST ( COUNT ( * ) AS INTEGER ) + + 84 + - 95 AS col0
----
NULL

query I rowsort
SELECT ALL 16 * 59 + + 58 AS col1
----
1002

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT MAX( ALL 67 )
----
67

skipif mysql # not compatible
query I rowsort label-2240
SELECT MAX ( ALL 67 )
----
67

query I rowsort
SELECT ALL 5 * 82
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT + COUNT( DISTINCT + - 90 ) + + 41 + + 35 + + + 79 + 19 * 93 AS col1
----
1923

skipif mysql # not compatible
query I rowsort label-2242
SELECT + COUNT ( DISTINCT + - 90 ) + + 41 + + 35 + + + 79 + 19 * 93 AS col1
----
1923

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2244
SELECT DISTINCT 99 + + 33 AS col1, 13 DIV - - 36 * 21 AS col1
----
132
0

skipif mysql # not compatible
query II rowsort label-2244
SELECT DISTINCT 99 + + 33 AS col1, 13 / - - 36 * 21 AS col1
----
132
0

query I rowsort
SELECT ALL - - 67 - - 57 col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2246
SELECT - ( + CASE + NULLIF ( + COUNT( * ), - 62 * CASE COUNT( 35 ) WHEN - - 59 + + 5 THEN - - 39 WHEN + ( + 68 ) THEN - + 64 * - - COUNT( * ) * + 38 ELSE NULL END - - 63 ) WHEN - CAST( + ( + 47 ) AS SIGNED ) - 1 THEN COUNT( * ) ELSE NULL END ) * MAX( ALL 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT - ( + CASE + NULLIF ( + COUNT ( * ), - 62 * CASE COUNT ( 35 ) WHEN - - 59 + + 5 THEN - - 39 WHEN + ( + 68 ) THEN - + 64 * - - COUNT ( * ) * + 38 ELSE NULL END - - 63 ) WHEN - CAST ( + ( + 47 ) AS INTEGER ) - 1 THEN COUNT ( * ) ELSE NULL END ) * MAX ( ALL 53 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT ALL + 45 DIV - + 74 + + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL + 45 / - + 74 + + - 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT - - SUM( ALL - - 7 ) + - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2248
SELECT - - SUM ( ALL - - 7 ) + - COUNT ( * ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2249
SELECT - + COUNT( * ), 69 * + 42 AS col0
----
-1
2898

skipif mysql # not compatible
query II rowsort label-2249
SELECT - + COUNT ( * ), 69 * + 42 AS col0
----
-1
2898

query I rowsort
SELECT - - 84 * - 15 AS col2
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT + - 15 * + + 43 * + + COALESCE ( + 70, - 42, - + 87 * + - 75 + COUNT( * ) ) col2
----
-45150

skipif mysql # not compatible
query I rowsort label-2251
SELECT + - 15 * + + 43 * + + COALESCE ( + 70, - 42, - + 87 * + - 75 + COUNT ( * ) ) col2
----
-45150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT DISTINCT + 51 * COALESCE ( - + 83, - 2, + 14 + COUNT( * ) DIV - 35 )
----
-4233

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + 51 * COALESCE ( - + 83, - 2, + 14 + COUNT ( * ) / - 35 )
----
-4233

query I rowsort
SELECT DISTINCT 53 * + - 78 * - 29
----
119886

query II rowsort
SELECT - 90 + - + 29 AS col1, - 29
----
-119
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2255
SELECT - COUNT( ALL - - 32 ) * + - 89 AS col2, 9 DIV + 18 * ( - 65 ) AS col0
----
89
0

skipif mysql # not compatible
query II rowsort label-2255
SELECT - COUNT ( ALL - - 32 ) * + - 89 AS col2, 9 / + 18 * ( - 65 ) AS col0
----
89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + SUM( - 27 ) * 34 + + 16 AS col0
----
-902

skipif mysql # not compatible
query I rowsort label-2256
SELECT + SUM ( - 27 ) * 34 + + 16 AS col0
----
-902

onlyif mysql # aggregate syntax: 
query II rowsort label-2257
SELECT DISTINCT - 8 * + + 72, + NULLIF ( 1, - CASE - 77 WHEN + 43 THEN - 45 ELSE NULL END + + COUNT( * ) ) - 98 + + 27 AS col1
----
-576
-70

skipif mysql # not compatible
query II rowsort label-2257
SELECT DISTINCT - 8 * + + 72, + NULLIF ( 1, - CASE - 77 WHEN + 43 THEN - 45 ELSE NULL END + + COUNT ( * ) ) - 98 + + 27 AS col1
----
-576
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT DISTINCT + CAST( 94 AS SIGNED ) + - 46 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT + CAST ( 94 AS INTEGER ) + - 46 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2259
SELECT DISTINCT 59 + + 27 + - - 15 + NULLIF ( - 57, 89 ) DIV ( - 15 ) * 97 - 50 DIV 90
----
392

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT 59 + + 27 + - - 15 + NULLIF ( - 57, 89 ) / ( - 15 ) * 97 - 50 / 90
----
392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2260
SELECT DISTINCT - 8 * - COUNT( * ) DIV - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT - 8 * - COUNT ( * ) / - 41 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT ALL 94 + + + 5 * - NULLIF ( + + COUNT( * ), 52 * - 19 * - 54 * CAST( NULL AS SIGNED ) * + ( 65 ) )
----
89

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL 94 + + + 5 * - NULLIF ( + + COUNT ( * ), 52 * - 19 * - 54 * CAST ( NULL AS INTEGER ) * + ( 65 ) )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT 89 * + 95 * - - ( - + COUNT( * ) ) AS col1
----
-8455

skipif mysql # not compatible
query I rowsort label-2262
SELECT 89 * + 95 * - - ( - + COUNT ( * ) ) AS col1
----
-8455

query I rowsort
SELECT ALL - 90 * + 68 * ( - 29 )
----
177480

query II rowsort
SELECT ALL - ( 32 ) col1, 14 * + 71
----
-32
994

onlyif mysql # aggregate syntax: 
query II rowsort label-2265
SELECT DISTINCT + COUNT( * ) + - 79 + 19, ( + - 4 ) col2
----
-59
-4

skipif mysql # not compatible
query II rowsort label-2265
SELECT DISTINCT + COUNT ( * ) + - 79 + 19, ( + - 4 ) col2
----
-59
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT ALL - 64 + + 6 DIV 86 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - 64 + + 6 / 86 AS col0
----
-64

query I rowsort
SELECT + 81 * + + 90 + 41 + + 7
----
7338

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

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

query I rowsort
SELECT DISTINCT + 16 * + 2 + + 0 * - 24 + + ( 25 ) AS col2
----
57

query I rowsort
SELECT ( - - 79 ) * - 81
----
-6399

query II rowsort
SELECT 91 * 55 AS col1, ( - 83 ) col1
----
5005
-83

query II rowsort
SELECT - 83 + - - 87, 16 AS col0
----
4
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL - NULLIF ( - - 55, + COUNT( * ) ) - 23
----
-78

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL - NULLIF ( - - 55, + COUNT ( * ) ) - 23
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2274
SELECT - + MAX( - 62 ), 46 * COUNT( * ) * 95 AS col1
----
62
4370

skipif mysql # not compatible
query II rowsort label-2274
SELECT - + MAX ( - 62 ), 46 * COUNT ( * ) * 95 AS col1
----
62
4370

query II rowsort
SELECT 84 * + 94 AS col1, 44 * - 8 AS col2
----
7896
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ALL NULLIF ( - - COUNT( * ), - 7 + - 25 - + 73 * + 98 )
----
1

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL NULLIF ( - - COUNT ( * ), - 7 + - 25 - + 73 * + 98 )
----
1

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT COUNT ( * ) + 44 AS col1
----
45

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

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

query I rowsort
SELECT 73 * - 88 col2
----
-6424

query I rowsort
SELECT ALL 72 + + - 29
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT COUNT( * ) - - MAX( ALL - 24 ) * - 42
----
1009

skipif mysql # not compatible
query I rowsort label-2283
SELECT COUNT ( * ) - - MAX ( ALL - 24 ) * - 42
----
1009

query I rowsort
SELECT 83 * 20 col0
----
1660

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT + NULLIF ( - + 70, - COUNT( * ) ) * + 1 * + - 53 - + 41
----
3669

skipif mysql # not compatible
query I rowsort label-2285
SELECT + NULLIF ( - + 70, - COUNT ( * ) ) * + 1 * + - 53 - + 41
----
3669

query I rowsort
SELECT DISTINCT + 21 * + - 26 AS col1
----
-546

query I rowsort
SELECT ALL + 67 + - + ( 9 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL COALESCE ( - COUNT( * ), - 35 ) + - - 95
----
94

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL COALESCE ( - COUNT ( * ), - 35 ) + - - 95
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT 73 * + CASE - 32 WHEN - - 0 THEN - 68 * + - COALESCE ( - SUM( - 95 ), + - ( + + ( + 89 ) ), - COALESCE ( - 54, 88 ) * - 44 * 24 * NULLIF ( + 44, - COUNT( * ) + + + COUNT( - 92 ) ) + - 32 + + + 65 ) * 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2289
SELECT 73 * + CASE - 32 WHEN - - 0 THEN - 68 * + - COALESCE ( - SUM ( - 95 ), + - ( + + ( + 89 ) ), - COALESCE ( - 54, 88 ) * - 44 * 24 * NULLIF ( + 44, - COUNT ( * ) + + + COUNT ( - 92 ) ) + - 32 + + + 65 ) * 3 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT ALL - 95 + - + 57 + 20 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL - 95 + - + 57 + 20 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 30 * - 92
----
-2760

query I rowsort
SELECT 89 - 28 col1
----
61

query II rowsort
SELECT ALL - 27 AS col1, 0
----
-27
0

query I rowsort
SELECT 63 + + 84 * - - 35
----
3003

query I rowsort
SELECT 98 * - 39
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ( + - NULLIF ( - 97, 51 ) ) + + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-2296
SELECT ( + - NULLIF ( - 97, 51 ) ) + + COUNT ( * )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2297
SELECT ALL + 32 - - CAST( + 79 AS SIGNED ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL + 32 - - CAST ( + 79 AS INTEGER ) AS col2
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-2298
SELECT DISTINCT - 46, - SUM( ALL + COALESCE ( + 89, 60, + 53 ) ) AS col2
----
-46
-89

skipif mysql # not compatible
query II rowsort label-2298
SELECT DISTINCT - 46, - SUM ( ALL + COALESCE ( + 89, 60, + 53 ) ) AS col2
----
-46
-89

query I rowsort
SELECT 24 * - 9
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL - SUM( - + ( + 31 ) ) * + 87 AS col0
----
2697

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL - SUM ( - + ( + 31 ) ) * + 87 AS col0
----
2697

query I rowsort
SELECT ALL - ( - NULLIF ( - - 28, - 11 ) ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL + 32 - + + 30 * - MIN( - 25 ) col0
----
-718

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL + 32 - + + 30 * - MIN ( - 25 ) col0
----
-718

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT ALL - 89 - - 94 + + MAX( + - 25 ) * - + SUM( + ( - 18 ) ) AS col2
----
-445

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL - 89 - - 94 + + MAX ( + - 25 ) * - + SUM ( + ( - 18 ) ) AS col2
----
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL - 78 * - + COUNT( * ) + - - 61
----
139

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - 78 * - + COUNT ( * ) + - - 61
----
139

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

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

query I rowsort
SELECT DISTINCT - 45 * ( + 17 ) * 84 + - - 98 AS col1
----
-64162

query I rowsort
SELECT - 59 + + - 50
----
-109

query I rowsort
SELECT - 68 * + 69 * 20 * - 32
----
3002880

query II rowsort
SELECT 19 + + 56 * + 34 AS col2, 5 * + 81 AS col1
----
1923
405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2310
SELECT ALL + 62 DIV - - 12 + + SUM( ALL - ( - ( - 82 ) ) )
----
-77

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL + 62 / - - 12 + + SUM ( ALL - ( - ( - 82 ) ) )
----
-77

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

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT - SUM ( 96 )
----
-96

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

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL NULLIF ( 40, + COUNT ( * ) )
----
40

query I rowsort
SELECT + 48 * + 62
----
2976

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT ALL 61, MIN( ALL 15 ) AS col1
----
61
15

skipif mysql # not compatible
query II rowsort label-2314
SELECT ALL 61, MIN ( ALL 15 ) AS col1
----
61
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2315
SELECT ALL + COUNT( * ) * 85 DIV + 62 col1
----
1

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + COUNT ( * ) * 85 / + 62 col1
----
1

query I rowsort
SELECT ALL + 2 + + 18
----
20

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2318
SELECT DISTINCT COUNT( * ) AS col1, COALESCE ( + ( - 67 ), - 18 ) AS col1
----
1
-67

skipif mysql # not compatible
query II rowsort label-2318
SELECT DISTINCT COUNT ( * ) AS col1, COALESCE ( + ( - 67 ), - 18 ) AS col1
----
1
-67

query I rowsort
SELECT - 14 + + 23 col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2320
SELECT - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) - + NULLIF ( - 62, - + 15 ) + 11 col2, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-2320
SELECT - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) - + NULLIF ( - 62, - + 15 ) + 11 col2, 41
----
NULL
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT + MAX( ALL + 22 ) - + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-2322
SELECT + MAX ( ALL + 22 ) - + - COUNT ( * )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2323
SELECT + ( + 7 ) + - 87 * + COUNT( * ) * - CAST( 58 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2, 46 * - - 57 + - 17 DIV 1 * - - 31 AS col0
----
NULL
2095

skipif mysql # not compatible
query II rowsort label-2323
SELECT + ( + 7 ) + - 87 * + COUNT ( * ) * - CAST ( 58 AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2, 46 * - - 57 + - 17 / 1 * - - 31 AS col0
----
NULL
2095

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL + COUNT( ALL - - 34 ) + - + 59
----
-58

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + COUNT ( ALL - - 34 ) + - + 59
----
-58

query I rowsort
SELECT ALL 95 * 14 AS col1
----
1330

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT + 85 DIV - - 77 + - 95 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2326
SELECT + 85 / - - 77 + - 95 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL 10 * 61 + COUNT( * ) - - + 93 * 46 AS col0
----
4889

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL 10 * 61 + COUNT ( * ) - - + 93 * 46 AS col0
----
4889

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT + COUNT( * ) * + 34 * - + 37
----
-1258

skipif mysql # not compatible
query I rowsort label-2328
SELECT + COUNT ( * ) * + 34 * - + 37
----
-1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2329
SELECT CASE - + 30 WHEN + - 56 / + COALESCE ( 27, + 17 * 67, NULLIF ( ( + 73 ), - 91 ) ) * ( - 46 ) - - - CAST( NULL AS SIGNED ) + + ( - 18 ) THEN NULL ELSE + - 74 END
----
-74

skipif mysql # not compatible
query I rowsort label-2329
SELECT CASE - + 30 WHEN + - 56 / + COALESCE ( 27, + 17 * 67, NULLIF ( ( + 73 ), - 91 ) ) * ( - 46 ) - - - CAST ( NULL AS INTEGER ) + + ( - 18 ) THEN NULL ELSE + - 74 END
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT + SUM( ALL 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2330
SELECT + SUM ( ALL 49 ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2331
SELECT + CASE 51 WHEN 27 + - 0 + - 35 + - - 64 THEN 41 * + 29 / - 55 - + + 3 * + COUNT( * ) + COUNT( * ) * + 44 WHEN - 88 + MIN( DISTINCT + 70 ) + + + 81 + COUNT( * ) * + CAST( NULL AS SIGNED ) * ( - COUNT( DISTINCT - - 43 ) ) * - 40 * 54 THEN NULL END * 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT + CASE 51 WHEN 27 + - 0 + - 35 + - - 64 THEN 41 * + 29 / - 55 - + + 3 * + COUNT ( * ) + COUNT ( * ) * + 44 WHEN - 88 + MIN ( DISTINCT + 70 ) + + + 81 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * ( - COUNT ( DISTINCT - - 43 ) ) * - 40 * 54 THEN NULL END * 95 AS col0
----
NULL

query I rowsort
SELECT 36 * 14 + + - 11 * - ( + 81 ) AS col2
----
1395

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT - 47 DIV 58 * - 40 + 80 + - 88 + + ( - + 72 ) * + + 50 DIV 10 * + 14
----
-5048

skipif mysql # not compatible
query I rowsort label-2333
SELECT - 47 / 58 * - 40 + 80 + - 88 + + ( - + 72 ) * + + 50 / 10 * + 14
----
-5048

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL - 73 * + + COUNT( ALL + 46 )
----
-73

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL - 73 * + + COUNT ( ALL + 46 )
----
-73

query I rowsort
SELECT ALL 90 * - 98 - - 6 AS col2
----
-8814

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT + ( - MAX( 59 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-2336
SELECT + ( - MAX ( 59 ) )
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-2337
SELECT - 10 DIV - 63 AS col0, 15 col0
----
0
15

skipif mysql # not compatible
query II rowsort label-2337
SELECT - 10 / - 63 AS col0, 15 col0
----
0
15

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

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

query I rowsort
SELECT ALL 90 * - 34 col0
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT + + ( - CASE - COUNT( + + 57 ) WHEN + NULLIF ( - ( + 10 ), + + 83 ) THEN + 29 END ) * + 33 / - + 60 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT + + ( - CASE - COUNT ( + + 57 ) WHEN + NULLIF ( - ( + 10 ), + + 83 ) THEN + 29 END ) * + 33 / - + 60 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2341
SELECT - + 72 * + CAST( - COUNT( ALL 15 ) AS DECIMAL ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT - + 72 * + CAST ( - COUNT ( ALL 15 ) AS REAL ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT ALL + CAST( 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL + CAST ( 19 AS INTEGER )
----
19

query I rowsort
SELECT DISTINCT + COALESCE ( + - 40, + 98 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-2344
SELECT ALL + 6 + + 45, + NULLIF ( + ( + 61 ), COALESCE ( + 39, - + 68, - - 55 * 50 - 49 + - COUNT( * ) - 21 * - 38 ) ) AS col1
----
51
61

skipif mysql # not compatible
query II rowsort label-2344
SELECT ALL + 6 + + 45, + NULLIF ( + ( + 61 ), COALESCE ( + 39, - + 68, - - 55 * 50 - 49 + - COUNT ( * ) - 21 * - 38 ) ) AS col1
----
51
61

query I rowsort
SELECT DISTINCT + - 88 + - 91
----
-179

query I rowsort
SELECT - - 45 + 43 AS col2
----
88

query I rowsort
SELECT DISTINCT + 40 + - 29
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2348
SELECT - 34 DIV + 14 col0
----
-2

skipif mysql # not compatible
query I rowsort label-2348
SELECT - 34 / + 14 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL COALESCE ( COUNT( * ), - 21 * - 8 - - - 52, - 73 * + - 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL COALESCE ( COUNT ( * ), - 21 * - 8 - - - 52, - 73 * + - 45 ) AS col2
----
1

query I rowsort
SELECT - 31 * - + 6 AS col2
----
186

query I rowsort
SELECT DISTINCT 42 + + 84 AS col0
----
126

query I rowsort
SELECT ALL + 67 + 36
----
103

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

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

query I rowsort
SELECT DISTINCT - 49 - - - 95
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - COALESCE ( + - 98, - + 89 + - NULLIF ( + + COUNT( * ), 23 ), - + 85 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2355
SELECT - COALESCE ( + - 98, - + 89 + - NULLIF ( + + COUNT ( * ), 23 ), - + 85 ) AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT ALL - 31 - + 17 DIV 58 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL - 31 - + 17 / 58 AS col2
----
-31

query I rowsort
SELECT ALL 41 * - 58 AS col0
----
-2378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2358
SELECT CAST( + MIN( DISTINCT - 35 ) AS SIGNED ), 96 + - 35 AS col1
----
-35
61

skipif mysql # not compatible
query II rowsort label-2358
SELECT CAST ( + MIN ( DISTINCT - 35 ) AS INTEGER ), 96 + - 35 AS col1
----
-35
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT + 71 * - - COALESCE ( - 58, COALESCE ( - 2, + 12 + - 51, + + 20, MIN( ALL + 27 ) ) ) AS col0
----
-4118

skipif mysql # not compatible
query I rowsort label-2359
SELECT + 71 * - - COALESCE ( - 58, COALESCE ( - 2, + 12 + - 51, + + 20, MIN ( ALL + 27 ) ) ) AS col0
----
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT DISTINCT MIN( - + ( + - 12 ) ) * - 62 col2
----
-744

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT MIN ( - + ( + - 12 ) ) * - 62 col2
----
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT COUNT( - 22 ) * + 55 - - 61 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-2361
SELECT COUNT ( - 22 ) * + 55 - - 61 AS col2
----
116

query I rowsort
SELECT ALL + 77 * - + 0 AS col0
----
0

query I rowsort
SELECT + CASE - 82 WHEN + + AVG ( DISTINCT + 76 ) THEN + 0 END
----
NULL

query I rowsort
SELECT + 35 * - + 58
----
-2030

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2367
SELECT DISTINCT + 55, - COUNT( * ) col1
----
55
-1

skipif mysql # not compatible
query II rowsort label-2367
SELECT DISTINCT + 55, - COUNT ( * ) col1
----
55
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT - - 56 * + + MAX( ALL + + 30 )
----
1680

skipif mysql # not compatible
query I rowsort label-2368
SELECT - - 56 * + + MAX ( ALL + + 30 )
----
1680

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT + 57 + + 50 + + 51 DIV - 23
----
105

skipif mysql # not compatible
query I rowsort label-2369
SELECT + 57 + + 50 + + 51 / - 23
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2370
SELECT 92 * - CAST( NULL AS SIGNED ) - - 78 + 0 + + + 3 + + 78 * + 8 + + COUNT( * ) * CASE 1 WHEN COUNT( * ) THEN 88 * 45 / + 83 + - 74 WHEN 87 * - CAST( NULL AS DECIMAL ) THEN NULL WHEN - 0 * - - 57 / - CAST( NULL AS SIGNED ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2370
SELECT 92 * - CAST ( NULL AS INTEGER ) - - 78 + 0 + + + 3 + + 78 * + 8 + + COUNT ( * ) * CASE 1 WHEN COUNT ( * ) THEN 88 * 45 / + 83 + - 74 WHEN 87 * - CAST ( NULL AS REAL ) THEN NULL WHEN - 0 * - - 57 / - CAST ( NULL AS INTEGER ) THEN NULL END AS col1
----
NULL

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

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

query II rowsort
SELECT 86 col2, - COALESCE ( 81, - 30 ) + + 85 AS col2
----
86
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2373
SELECT - 50 DIV - 22 - - 66 DIV - + MAX( ALL - NULLIF ( + + ( - + 52 ), + 89 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2373
SELECT - 50 / - 22 - - 66 / - + MAX ( ALL - NULLIF ( + + ( - + 52 ), + 89 ) ) AS col0
----
1

query I rowsort
SELECT ALL 19 * + 40
----
760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2375
SELECT + COUNT( * ) * + 20 + - 54 AS col1, - NULLIF ( - - 17, + 57 + - + 79 ) + + 66 + COUNT( * ) * 53 * - CASE - - 80 WHEN + ( 36 ) THEN + 73 - + NULLIF ( - 3, - 39 + - - CAST( NULL AS SIGNED ) ) + - 93 + + - COUNT( * ) * + - COUNT( * ) ELSE NULL END AS col2
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-2375
SELECT + COUNT ( * ) * + 20 + - 54 AS col1, - NULLIF ( - - 17, + 57 + - + 79 ) + + 66 + COUNT ( * ) * 53 * - CASE - - 80 WHEN + ( 36 ) THEN + 73 - + NULLIF ( - 3, - 39 + - - CAST ( NULL AS INTEGER ) ) + - 93 + + - COUNT ( * ) * + - COUNT ( * ) ELSE NULL END AS col2
----
-34
NULL

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

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

query I rowsort
SELECT 57 * 68 + - 72 + - 76
----
3728

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT ALL - - 75 * + MAX( - 93 ) + + 22 * - 5
----
-7085

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL - - 75 * + MAX ( - 93 ) + + 22 * - 5
----
-7085

query I rowsort
SELECT ALL + + 9 * - 31 + - 7
----
-286

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2381
SELECT + 44 * - 21 * 81 + - CAST( NULL AS SIGNED ) - + 60 + + - 35 * 4 * 24 AS col2, 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-2381
SELECT + 44 * - 21 * 81 + - CAST ( NULL AS INTEGER ) - + 60 + + - 35 * 4 * 24 AS col2, 11
----
NULL
11

query I rowsort
SELECT + 70 + - 88
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT DISTINCT + 61 + + - 27 * ( - COUNT( DISTINCT - 98 ) ) - 3 - - 46 * - 71 * + - 12 AS col1
----
39277

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT + 61 + + - 27 * ( - COUNT ( DISTINCT - 98 ) ) - 3 - - 46 * - 71 * + - 12 AS col1
----
39277

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

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

query I rowsort
SELECT 15 + - 47 AS col0
----
-32

query II rowsort
SELECT DISTINCT 86, 16 AS col0
----
86
16

query I rowsort
SELECT DISTINCT 72 - 6 col1
----
66

query I rowsort
SELECT 82 * - + 61 col1
----
-5002

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT 89 - + - SUM( 56 ) AS col1
----
145

skipif mysql # not compatible
query I rowsort label-2390
SELECT 89 - + - SUM ( 56 ) AS col1
----
145

query I rowsort
SELECT DISTINCT + 63 * - + 93
----
-5859

query II rowsort
SELECT - 3, 27 AS col0
----
-3
27

query I rowsort
SELECT 79 + 6 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT 88 + - COUNT( * ) + - 22
----
65

skipif mysql # not compatible
query I rowsort label-2394
SELECT 88 + - COUNT ( * ) + - 22
----
65

query I rowsort
SELECT ALL + 0 - + 68 AS col0
----
-68

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

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL - 0 / - + 5
----
0

query I rowsort
SELECT ALL - COALESCE ( + - 85, 81 * - ( 7 ) * - + 17, + 82 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT DISTINCT - 19 DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - 19 / 86 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2399
SELECT 17 DIV - CAST( - + AVG ( DISTINCT - - 94 ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2399
SELECT 17 / - CAST ( - + AVG ( DISTINCT - - 94 ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT 23 + + 19
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT - 84 * - CAST( NULL AS SIGNED ) + ( COUNT( * ) ) + + ( - 89 ) * 22 + 38 * 22 * 11 * + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT - 84 * - CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) + + ( - 89 ) * 22 + 38 * 22 * 11 * + 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2402
SELECT + - 12 AS col2, - 82 * - - COUNT( * ) + + - 6 * + + COUNT( 20 ) * + + 96 + + 37 - - + 12 + 88 AS col0
----
-12
-521

skipif mysql # not compatible
query II rowsort label-2402
SELECT + - 12 AS col2, - 82 * - - COUNT ( * ) + + - 6 * + + COUNT ( 20 ) * + + 96 + + 37 - - + 12 + 88 AS col0
----
-12
-521

query I rowsort
SELECT ALL + 55 * - 37 * - - 38
----
-77330

onlyif mysql # aggregate syntax: 
query II rowsort label-2404
SELECT ALL - ( 57 ) + + MAX( DISTINCT + + 38 ) AS col2, 13 + + + COUNT( * ) AS col1
----
-19
14

skipif mysql # not compatible
query II rowsort label-2404
SELECT ALL - ( 57 ) + + MAX ( DISTINCT + + 38 ) AS col2, 13 + + + COUNT ( * ) AS col1
----
-19
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2405
SELECT ALL + NULLIF ( 19, 22 ) + + 1, 27 * MAX( DISTINCT - 23 ) * + 98 + - COUNT( * ) + - 75 * - - 62 + + COUNT( DISTINCT - 90 ) + - MIN( - + 64 ) + + - 48 AS col0
----
20
-65492

skipif mysql # not compatible
query II rowsort label-2405
SELECT ALL + NULLIF ( 19, 22 ) + + 1, 27 * MAX ( DISTINCT - 23 ) * + 98 + - COUNT ( * ) + - 75 * - - 62 + + COUNT ( DISTINCT - 90 ) + - MIN ( - + 64 ) + + - 48 AS col0
----
20
-65492

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT + ( - - SUM( ALL ( - 65 ) ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-2406
SELECT + ( - - SUM ( ALL ( - 65 ) ) ) AS col1
----
-65

query I rowsort
SELECT DISTINCT - ( 53 ) AS col0
----
-53

query II rowsort
SELECT + 30, 71 AS col0
----
30
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2409
SELECT + 75 * + COALESCE ( - 39, + MAX( ALL ( + + 55 ) ), - - ( + - COUNT( - + NULLIF ( + + 85, 47 + 93 + CAST( NULL AS SIGNED ) ) ) ) ) + 72
----
-2853

skipif mysql # not compatible
query I rowsort label-2409
SELECT + 75 * + COALESCE ( - 39, + MAX ( ALL ( + + 55 ) ), - - ( + - COUNT ( - + NULLIF ( + + 85, 47 + 93 + CAST ( NULL AS INTEGER ) ) ) ) ) + 72
----
-2853

query II rowsort
SELECT 53 - 76 + - - 86 + 23 AS col0, 51 * + 56 AS col0
----
86
2856

onlyif mysql # aggregate syntax: 
query II rowsort label-2411
SELECT - 14 AS col2, + COUNT( * ) - - 33 AS col2
----
-14
34

skipif mysql # not compatible
query II rowsort label-2411
SELECT - 14 AS col2, + COUNT ( * ) - - 33 AS col2
----
-14
34

query I rowsort
SELECT ALL - 62 * - - NULLIF ( + 33, 22 + + 51 ) AS col2
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL COUNT( DISTINCT 22 )
----
1

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL COUNT ( DISTINCT 22 )
----
1

query II rowsort
SELECT - 64, - 14 AS col0
----
-64
-14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT ALL CAST( NULL AS SIGNED ) - - + 93 + + 18 / - 29 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL CAST ( NULL AS INTEGER ) - - + 93 + + 18 / - 29 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 31 * - - 92
----
2852

query I rowsort
SELECT DISTINCT 7 - + 96 col0
----
-89

query II rowsort
SELECT 98 + 48 + + - 99, - 99 AS col0
----
47
-99

query I rowsort
SELECT 1 - - 92 + + CASE - + 53 WHEN - NULLIF ( 64, 12 * + + 51 + - 52 ) THEN 36 END AS col0
----
NULL

query II rowsort
SELECT 82 * 31, 71 AS col1
----
2542
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT 17 * 54 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT 17 * 54 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT 7 * + 13 AS col0
----
91

query I rowsort
SELECT ALL 0 * 2 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2426
SELECT ALL + CAST( NULL AS DECIMAL ) + - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL + CAST ( NULL AS REAL ) + - 45 AS col0
----
NULL

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

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

query I rowsort
SELECT 97 * + - 38 col2
----
-3686

query I rowsort
SELECT 33 * - + 66 * - + 37 * 14 AS col2
----
1128204

query I rowsort
SELECT ALL - 17 * 99 * 60 + 71 AS col1
----
-100909

query I rowsort
SELECT - 46 * 40 - 36 AS col0
----
-1876

onlyif mysql # DIV for integer division: 
query I rowsort label-2432
SELECT 52 DIV 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2432
SELECT 52 / 44 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2433
SELECT ALL - 79 DIV ( + - 74 ) DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - 79 / ( + - 74 ) / - 38
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2434
SELECT DISTINCT + 1 * 34 * + MIN( DISTINCT + + 84 ) + - 4 - + 61 + 66 DIV 62 * + CAST( - - 53 AS SIGNED ) + - 42 + + 71
----
2873

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT + 1 * 34 * + MIN ( DISTINCT + + 84 ) + - 4 - + 61 + 66 / 62 * + CAST ( - - 53 AS INTEGER ) + - 42 + + 71
----
2873

query I rowsort
SELECT ALL - 65 * - + 79 * + - 75 + + + 70 col2
----
-385055

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2436
SELECT COALESCE ( + - CAST( NULL AS SIGNED ), + 59 ) DIV 22
----
2

skipif mysql # not compatible
query I rowsort label-2436
SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), + 59 ) / 22
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2437
SELECT ALL - ( + 64 ) DIV + - ( 77 )
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL - ( + 64 ) / + - ( 77 )
----
0

query I rowsort
SELECT + 53 * 43 - - + 90
----
2369

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT + + MIN( - 42 ) AS col2, + 61 AS col2
----
-42
61

skipif mysql # not compatible
query II rowsort label-2439
SELECT + + MIN ( - 42 ) AS col2, + 61 AS col2
----
-42
61

query I rowsort
SELECT - ( + 77 ) * 33 AS col0
----
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL + NULLIF ( COUNT( 80 ), - 34 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL + NULLIF ( COUNT ( 80 ), - 34 ) AS col0
----
1

query II rowsort
SELECT + ( - 66 ), - 34 AS col2
----
-66
-34

query II rowsort
SELECT ALL - - 77 - - + 66 AS col1, ( + 98 ) AS col2
----
143
98

query I rowsort
SELECT - - 22 * - ( + 91 )
----
-2002

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2446
SELECT DISTINCT + - CASE + 44 WHEN 14 * + + 1 THEN NULL ELSE NULLIF ( - 59, - 51 ) DIV 64 END, - 94 + + COUNT( * ) AS col0
----
0
-93

skipif mysql # not compatible
query II rowsort label-2446
SELECT DISTINCT + - CASE + 44 WHEN 14 * + + 1 THEN NULL ELSE NULLIF ( - 59, - 51 ) / 64 END, - 94 + + COUNT ( * ) AS col0
----
0
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT + COUNT( - 14 ) * 16 * - ( + ( + COUNT( * ) ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT + COUNT ( - 14 ) * 16 * - ( + ( + COUNT ( * ) ) ) + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 71, - 23 col2
----
71
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-2449
SELECT 44 AS col1, 67 * - 46 - + + CASE 93 WHEN 1 THEN - COALESCE ( - + 98, + + 41, 55 / + - 28 ) + + 2 * - COALESCE ( 47, - COUNT( * ) * + 43 ) + + ( ( - + 92 ) ) WHEN + - COUNT( * ) THEN + 74 / - COUNT( * ) + + 15 END
----
44
NULL

skipif mysql # not compatible
query II rowsort label-2449
SELECT 44 AS col1, 67 * - 46 - + + CASE 93 WHEN 1 THEN - COALESCE ( - + 98, + + 41, 55 / + - 28 ) + + 2 * - COALESCE ( 47, - COUNT ( * ) * + 43 ) + + ( ( - + 92 ) ) WHEN + - COUNT ( * ) THEN + 74 / - COUNT ( * ) + + 15 END
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT - CASE + 73 WHEN + 62 THEN + - COALESCE ( 23, + 71, + 62, + - 70 * + 39 ) + + 37 * 93 * + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT - CASE + 73 WHEN + 62 THEN + - COALESCE ( 23, + 71, + 62, + - 70 * + 39 ) + + 37 * 93 * + COUNT ( * ) END AS col1
----
NULL

query II rowsort
SELECT ALL 91, - 75 * + 26 col2
----
91
-1950

query I rowsort
SELECT ALL 19 * 77 AS col2
----
1463

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + COUNT( * ) / - + CASE + 64 WHEN COUNT( * ) THEN NULL WHEN SUM( + CASE + 64 WHEN + + 19 THEN NULL ELSE + 68 END ) THEN - + 1 WHEN - ( + 1 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT + COUNT ( * ) / - + CASE + 64 WHEN COUNT ( * ) THEN NULL WHEN SUM ( + CASE + 64 WHEN + + 19 THEN NULL ELSE + 68 END ) THEN - + 1 WHEN - ( + 1 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + 30 * 55
----
1650

query I rowsort
SELECT ALL 12 * NULLIF ( 22, 80 * - + 50 - - 18 )
----
264

query I rowsort
SELECT + 18 + - 9
----
9

query I rowsort
SELECT ALL 83 * - 40 AS col0
----
-3320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2458
SELECT ALL COALESCE ( + 96, + + 65 * - ( - + 37 ) * + + 32 ) + + 7 + + CASE 62 WHEN + 9 * - - 53 * + MIN( - 55 ) THEN NULL WHEN - 47 / + + COUNT( * ) + + 39 - + - 59 * 31 / 85 * 12 * - - 72 THEN - 17 END * - 72 + ( + COUNT( * ) ) * ( + 82 ) - CAST( NULL AS SIGNED ) + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL COALESCE ( + 96, + + 65 * - ( - + 37 ) * + + 32 ) + + 7 + + CASE 62 WHEN + 9 * - - 53 * + MIN ( - 55 ) THEN NULL WHEN - 47 / + + COUNT ( * ) + + 39 - + - 59 * 31 / 85 * 12 * - - 72 THEN - 17 END * - 72 + ( + COUNT ( * ) ) * ( + 82 ) - CAST ( NULL AS INTEGER ) + 77
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2459
SELECT DISTINCT COUNT( * ) * MIN( 99 ) AS col2, + 89
----
99
89

skipif mysql # not compatible
query II rowsort label-2459
SELECT DISTINCT COUNT ( * ) * MIN ( 99 ) AS col2, + 89
----
99
89

query I rowsort
SELECT ALL 76 + 39
----
115

query I rowsort
SELECT + 82 + - - ( - ( + - 43 ) ) + - + 22 AS col1
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-2462
SELECT + 88 - + - 95 + COUNT( * ), + ( 91 ) + - - 51 * + 53 AS col2
----
184
2794

skipif mysql # not compatible
query II rowsort label-2462
SELECT + 88 - + - 95 + COUNT ( * ), + ( 91 ) + - - 51 * + 53 AS col2
----
184
2794

query I rowsort
SELECT + 64 + 85 AS col2
----
149

query I rowsort
SELECT - 40 + + ( - - 70 )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2465
SELECT ALL 46 + - 56 + - CAST( NULL AS SIGNED ) / - - 76 * + 6 + + 55 + - 37 / 61 + - 46 AS col1, - 57 AS col1
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-2465
SELECT ALL 46 + - 56 + - CAST ( NULL AS INTEGER ) / - - 76 * + 6 + + 55 + - 37 / 61 + - 46 AS col1, - 57 AS col1
----
NULL
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL COUNT( + 15 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL COUNT ( + 15 ) col1
----
1

query I rowsort
SELECT + + 44 + - + 15 AS col2
----
29

query I rowsort
SELECT ALL + 39 + + - 23 AS col0
----
16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2470
SELECT ALL - 46 DIV + + 34 + - + 62 + 66 + + 52 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL - 46 / + + 34 + - + 62 + 66 + + 52 AS col1
----
55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2472
SELECT ALL CAST( + 88 AS SIGNED ) * + 92 AS col2, + CASE CAST( + - 70 AS SIGNED ) WHEN - NULLIF ( 61, - - 2 + 17 + + - 56 ) - + 90 + + 83 THEN + + 14 * + 97 + 78 WHEN - 15 THEN SUM( ALL + - ( + 24 ) ) - + 82 + + - COALESCE ( - 5, + - 94 * + 68 + + 23 * + COUNT( * ) + COUNT( * ) * 5 + CAST( + 54 AS SIGNED ) * + ( + CAST( NULL AS SIGNED ) ), - 86 ) * + 99 END * 41 AS col0
----
8096
NULL

skipif mysql # not compatible
query II rowsort label-2472
SELECT ALL CAST ( + 88 AS INTEGER ) * + 92 AS col2, + CASE CAST ( + - 70 AS INTEGER ) WHEN - NULLIF ( 61, - - 2 + 17 + + - 56 ) - + 90 + + 83 THEN + + 14 * + 97 + 78 WHEN - 15 THEN SUM ( ALL + - ( + 24 ) ) - + 82 + + - COALESCE ( - 5, + - 94 * + 68 + + 23 * + COUNT ( * ) + COUNT ( * ) * 5 + CAST ( + 54 AS INTEGER ) * + ( + CAST ( NULL AS INTEGER ) ), - 86 ) * + 99 END * 41 AS col0
----
8096
NULL

query I rowsort
SELECT + 26 * - 62
----
-1612

query I rowsort
SELECT - 96 + + + 39
----
-57

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2477
SELECT ALL 29 * 24 - + + COUNT( * ) col2, + 12 * + 15 * + + 77
----
695
13860

skipif mysql # not compatible
query II rowsort label-2477
SELECT ALL 29 * 24 - + + COUNT ( * ) col2, + 12 * + 15 * + + 77
----
695
13860

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

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

query I rowsort
SELECT DISTINCT 41 * + 56 AS col1
----
2296

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

skipif mysql # not compatible
query I rowsort label-2480
SELECT - 85 + - 15 + + COUNT ( * ) AS col0
----
-99

query II rowsort
SELECT DISTINCT + 64 AS col0, - 47
----
64
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2482
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN - CAST( - 0 AS SIGNED ) THEN NULL WHEN 19 THEN + ( - 60 ) + 67 END * 90, + 24 + - 82 AS col2
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-2482
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN - CAST ( - 0 AS INTEGER ) THEN NULL WHEN 19 THEN + ( - 60 ) + 67 END * 90, + 24 + - 82 AS col2
----
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT - 12 * - ( + - ( - 68 ) ) * + SUM( 13 )
----
10608

skipif mysql # not compatible
query I rowsort label-2483
SELECT - 12 * - ( + - ( - 68 ) ) * + SUM ( 13 )
----
10608

onlyif mysql # aggregate syntax: 
query II rowsort label-2484
SELECT ALL + - 82 AS col2, SUM( 64 ) AS col1
----
-82
64

skipif mysql # not compatible
query II rowsort label-2484
SELECT ALL + - 82 AS col2, SUM ( 64 ) AS col1
----
-82
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2485
SELECT ALL + + 62 DIV - MAX( DISTINCT - + 55 ) + - 8 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL + + 62 / - MAX ( DISTINCT - + 55 ) + - 8 AS col1
----
-7

query I rowsort
SELECT - 56 - + 64
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT - + MAX( + 66 ) * - - 97 + - 20 AS col0
----
-6422

skipif mysql # not compatible
query I rowsort label-2487
SELECT - + MAX ( + 66 ) * - - 97 + - 20 AS col0
----
-6422

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT + - 80 * - 33 + + COUNT( * )
----
2641

skipif mysql # not compatible
query I rowsort label-2488
SELECT + - 80 * - 33 + + COUNT ( * )
----
2641

onlyif mysql # aggregate syntax: 
query II rowsort label-2489
SELECT DISTINCT + 80 * + COUNT( ALL 64 ) AS col2, + 2
----
80
2

skipif mysql # not compatible
query II rowsort label-2489
SELECT DISTINCT + 80 * + COUNT ( ALL 64 ) AS col2, + 2
----
80
2

query I rowsort
SELECT - 54 + 2 * + 19 * + 21
----
744

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2492
SELECT ALL 27 * + 13 + - COALESCE ( 42, + 42 * + MAX( ALL - 33 ) + - 65, - CASE - 70 WHEN + 30 * + COUNT( * ) + - + 51 / - NULLIF ( 60, - NULLIF ( 77, CAST( - - 35 AS SIGNED ) ) * + 99 * + 92 * + NULLIF ( - 58, - 51 * + - 99 + - 14 * 17 * 68 * 46 ) * MAX( ALL + 25 * - 47 ) ) * - 99 + AVG ( + 90 ) * - 67 THEN 85 * 31 WHEN - MIN( ALL - 98 ) THEN NULL END ) AS col0
----
309

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL 27 * + 13 + - COALESCE ( 42, + 42 * + MAX ( ALL - 33 ) + - 65, - CASE - 70 WHEN + 30 * + COUNT ( * ) + - + 51 / - NULLIF ( 60, - NULLIF ( 77, CAST ( - - 35 AS INTEGER ) ) * + 99 * + 92 * + NULLIF ( - 58, - 51 * + - 99 + - 14 * 17 * 68 * 46 ) * MAX ( ALL + 25 * - 47 ) ) * - 99 + AVG ( + 90 ) * - 67 THEN 85 * 31 WHEN - MIN ( ALL - 98 ) THEN NULL END ) AS col0
----
309

query I rowsort
SELECT - CASE 97 WHEN - 8 * + 2 + + 49 THEN 88 / 58 + + 2 + - 77 + 97 WHEN 79 THEN + 30 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 95 * - 89 * 6 * + 39 * - 40 + + 33 AS col0
----
79138833

query I rowsort
SELECT DISTINCT + 96 + - 49 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL - COALESCE ( - - 13, COUNT( * ) * - - 40, + COUNT( * ) * - 29 ) + + 30 * - 54 AS col2
----
-1633

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - COALESCE ( - - 13, COUNT ( * ) * - - 40, + COUNT ( * ) * - 29 ) + + 30 * - 54 AS col2
----
-1633

onlyif mysql # DIV for integer division: 
query II rowsort label-2497
SELECT + 41 DIV 29 AS col1, - 43 AS col2
----
1
-43

skipif mysql # not compatible
query II rowsort label-2497
SELECT + 41 / 29 AS col1, - 43 AS col2
----
1
-43

query I rowsort
SELECT - 52 * 7
----
-364

query I rowsort
SELECT - NULLIF ( 67, 25 ) AS col1
----
-67

query I rowsort
SELECT ALL - 42 + + 11
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2501
SELECT ALL CAST( + 74 AS SIGNED ) * + 48 AS col1
----
3552

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL CAST ( + 74 AS INTEGER ) * + 48 AS col1
----
3552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2502
SELECT DISTINCT 58 + - + 1 / CAST( NULL AS DECIMAL ) + + 45 + + COALESCE ( 29, - - 35 * 70 / + CAST( - COUNT( * ) AS SIGNED ) * - 68 + 83 * 83 - - - 76 + + ( + COUNT( * ) ) * + + COUNT( - 74 ), - 54 ) + + COUNT( * ) * + 45 * 68 + + - ( - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT 58 + - + 1 / CAST ( NULL AS REAL ) + + 45 + + COALESCE ( 29, - - 35 * 70 / + CAST ( - COUNT ( * ) AS INTEGER ) * - 68 + 83 * 83 - - - 76 + + ( + COUNT ( * ) ) * + + COUNT ( - 74 ), - 54 ) + + COUNT ( * ) * + 45 * 68 + + - ( - 97 )
----
NULL

query I rowsort
SELECT DISTINCT + 70 * + + 32 AS col2
----
2240

onlyif mysql # DIV for integer division: 
query II rowsort label-2504
SELECT + + 7 DIV - + 64 AS col2, + 38
----
0
38

skipif mysql # not compatible
query II rowsort label-2504
SELECT + + 7 / - + 64 AS col2, + 38
----
0
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT + 24 + - 32 + + 19 * ( + COUNT( * ) ) * + 24 + 63 AS col0
----
511

skipif mysql # not compatible
query I rowsort label-2505
SELECT + 24 + - 32 + + 19 * ( + COUNT ( * ) ) * + 24 + 63 AS col0
----
511

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL - 27 - + COUNT( * ) + COUNT( * ) - + - 80 * - 12 * - 72 * - + CASE WHEN NOT ( NOT - 46 IS NULL ) THEN 10 + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - 27 - + COUNT ( * ) + COUNT ( * ) - + - 80 * - 12 * - 72 * - + CASE WHEN NOT ( NOT - 46 IS NULL ) THEN 10 + 9 END
----
NULL

query I rowsort
SELECT + CASE - 43 WHEN - 70 THEN - 49 * 28 + - 73 * - 94 / 92 * - + 57 / 41 * - - NULLIF ( - 6, 17 * 60 + + - 2 * - 65 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT - MAX( - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-2508
SELECT - MAX ( - 35 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2509
SELECT - 81 * + 30 + + + CAST( NULL AS SIGNED ) - - 83 AS col0, 55 * 11 * - 29
----
NULL
-17545

skipif mysql # not compatible
query II rowsort label-2509
SELECT - 81 * + 30 + + + CAST ( NULL AS INTEGER ) - - 83 AS col0, 55 * 11 * - 29
----
NULL
-17545

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2510
SELECT + + ( 83 ) DIV + + 73 + ( + + COUNT( * ) ) + + 12 - + 58 AS col2, + 77
----
-44
77

skipif mysql # not compatible
query II rowsort label-2510
SELECT + + ( 83 ) / + + 73 + ( + + COUNT ( * ) ) + + 12 - + 58 AS col2, + 77
----
-44
77

query I rowsort
SELECT - 74 + + 4 + + 40 col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT ALL + - 2 * - NULLIF ( - + 89, 61 + + - CAST( NULL AS SIGNED ) ) AS col0
----
-178

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL + - 2 * - NULLIF ( - + 89, 61 + + - CAST ( NULL AS INTEGER ) ) AS col0
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT + ( - - 85 ) * - SUM( ALL - + 12 ) AS col2
----
1020

skipif mysql # not compatible
query I rowsort label-2513
SELECT + ( - - 85 ) * - SUM ( ALL - + 12 ) AS col2
----
1020

query I rowsort
SELECT ALL + 0 * - + 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2515
SELECT COUNT( * ) / - 25 + + - COALESCE ( + + 33, + COALESCE ( - 59, - - 84 ) + + + COUNT( * ) ) * - - 61 * - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 93 + - 0 + + + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT COUNT ( * ) / - 25 + + - COALESCE ( + + 33, + COALESCE ( - 59, - - 84 ) + + + COUNT ( * ) ) * - - 61 * - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 93 + - 0 + + + 47 AS col2
----
NULL

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

query I rowsort
SELECT ALL + 51 * 99 AS col2
----
5049

onlyif mysql # DIV for integer division: 
query II rowsort label-2518
SELECT + 63 DIV - 17 AS col0, + 11
----
-3
11

skipif mysql # not compatible
query II rowsort label-2518
SELECT + 63 / - 17 AS col0, + 11
----
-3
11

query I rowsort
SELECT + 37 + - 77 - - - 54
----
-94

query I rowsort
SELECT DISTINCT 90 + + ( - 22 ) AS col1
----
68

query I rowsort
SELECT DISTINCT 48 + - + 73 * + + 78 AS col2
----
-5646

query I rowsort
SELECT ALL 7 * 59 * + 97
----
40061

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT 98 / CAST( NULL AS SIGNED ) * 22 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT 98 / CAST ( NULL AS INTEGER ) * 22 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT 1 + - 28 DIV + 10 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2524
SELECT 1 + - 28 / + 10 col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2525
SELECT ALL 83 + - CASE + + 11 WHEN 33 * + SUM( - 91 ) THEN + CASE - CAST( 60 AS SIGNED ) WHEN + 48 / - 69 * + CAST( 17 AS SIGNED ) + - MAX( ALL - ( + + 52 ) ) * - 45 THEN + - 43 ELSE - + SUM( - CASE - - 68 WHEN - 60 THEN - 16 ELSE + 22 END ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL 83 + - CASE + + 11 WHEN 33 * + SUM ( - 91 ) THEN + CASE - CAST ( 60 AS INTEGER ) WHEN + 48 / - 69 * + CAST ( 17 AS INTEGER ) + - MAX ( ALL - ( + + 52 ) ) * - 45 THEN + - 43 ELSE - + SUM ( - CASE - - 68 WHEN - 60 THEN - 16 ELSE + 22 END ) END END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT ALL 1 + - NULLIF ( - - 84, 59 ) + - 27 + + - 60 + + 72 + 95 DIV + 62
----
-97

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL 1 + - NULLIF ( - - 84, 59 ) + - 27 + + - 60 + + 72 + 95 / + 62
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT ALL + CASE + + 70 WHEN - COUNT( * ) THEN + 87 WHEN + 65 * + - 80 THEN - - 6 * - - 78 ELSE NULL END + + - COUNT( * ) * - - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + CASE + + 70 WHEN - COUNT ( * ) THEN + 87 WHEN + 65 * + - 80 THEN - - 6 * - - 78 ELSE NULL END + + - COUNT ( * ) * - - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT DISTINCT - MAX( + 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT - MAX ( + 66 ) AS col0
----
-66

query I rowsort
SELECT 23 * - 49
----
-1127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT + CASE - 82 WHEN + 38 THEN + 52 + + CAST( NULL AS SIGNED ) + + 77 + 46 / 44 + + COUNT( - 11 ) + - + SUM( CAST( 72 AS SIGNED ) ) * - 51 + - 14 END * - 85 + + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT + CASE - 82 WHEN + 38 THEN + 52 + + CAST ( NULL AS INTEGER ) + + 77 + 46 / 44 + + COUNT ( - 11 ) + - + SUM ( CAST ( 72 AS INTEGER ) ) * - 51 + - 14 END * - 85 + + 19 AS col0
----
NULL

query I rowsort
SELECT 33 * - 51
----
-1683

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL + NULLIF ( 98, + + 6 + + COUNT( * ) ) + 95 col2
----
193

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL + NULLIF ( 98, + + 6 + + COUNT ( * ) ) + 95 col2
----
193

query I rowsort
SELECT ALL - 55 * + 91
----
-5005

query I rowsort
SELECT ALL + 83 * 80 * - + 9 AS col1
----
-59760

query I rowsort
SELECT 23 + 84 AS col1
----
107

query II rowsort
SELECT ALL 18 col0, + 8 + + 87
----
18
95

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

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

query I rowsort
SELECT ALL - 11 - + 10 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2539
SELECT ALL + ( + 24 ) * - + 41 + - CASE - + 67 WHEN + COUNT( * ) THEN NULL ELSE 92 + ( - CAST( - 41 AS SIGNED ) ) END
----
-1117

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + ( + 24 ) * - + 41 + - CASE - + 67 WHEN + COUNT ( * ) THEN NULL ELSE 92 + ( - CAST ( - 41 AS INTEGER ) ) END
----
-1117

query I rowsort
SELECT 2 + 43
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2541
SELECT ALL - 31 - + - CASE + CAST( NULL AS SIGNED ) WHEN + CAST( - 29 AS SIGNED ) DIV + + 58 THEN - COUNT( ALL ( + 36 ) ) DIV + 3 - - 9 * + - 60 WHEN + 4 THEN 20 * 94 + 76 + - + 53 DIV NULLIF ( + 28, + 28 ) - + + COALESCE ( + - ( + 33 ), + 68 ) - + 94 * ( - CAST( NULL AS SIGNED ) ) + + 18 ELSE + 26 END
----
-5

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - 31 - + - CASE + CAST ( NULL AS INTEGER ) WHEN + CAST ( - 29 AS INTEGER ) / + + 58 THEN - COUNT ( ALL ( + 36 ) ) / + 3 - - 9 * + - 60 WHEN + 4 THEN 20 * 94 + 76 + - + 53 / NULLIF ( + 28, + 28 ) - + + COALESCE ( + - ( + 33 ), + 68 ) - + 94 * ( - CAST ( NULL AS INTEGER ) ) + + 18 ELSE + 26 END
----
-5

query I rowsort
SELECT 35 * - 55 * - + 4
----
7700

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT DISTINCT + 40 DIV + 42 * + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT + 40 / + 42 * + 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT + ( - NULLIF ( - COUNT( * ), + COUNT( * ) ) ) * + - 10
----
-10

skipif mysql # not compatible
query I rowsort label-2544
SELECT + ( - NULLIF ( - COUNT ( * ), + COUNT ( * ) ) ) * + - 10
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2545
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * - 54 * + - 89
----
-4806

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - 54 * + - 89
----
-4806

query I rowsort
SELECT - 44 + 40 + + - ( + 29 ) col1
----
-33

query I rowsort
SELECT DISTINCT - - 95 * - 12
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT - + NULLIF ( + + SUM( + 53 ), + MIN( + + 53 ) - + 69 + + 72 * + 87 - + 48 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT - + NULLIF ( + + SUM ( + 53 ), + MIN ( + + 53 ) - + 69 + + 72 * + 87 - + 48 ) AS col2
----
-53

query I rowsort
SELECT ALL - 46 * + + 67
----
-3082

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2551
SELECT ALL + 71 * + - CAST( COUNT( * ) AS SIGNED ) AS col1, COUNT( - 77 ) DIV COUNT( * ) - - + 39
----
-71
40

skipif mysql # not compatible
query II rowsort label-2551
SELECT ALL + 71 * + - CAST ( COUNT ( * ) AS INTEGER ) AS col1, COUNT ( - 77 ) / COUNT ( * ) - - + 39
----
-71
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT ALL 64 * + COUNT( * ) + + - SUM( + CAST( - 86 AS SIGNED ) )
----
150

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL 64 * + COUNT ( * ) + + - SUM ( + CAST ( - 86 AS INTEGER ) )
----
150

query I rowsort
SELECT 85 * - 37 + + 32 + + 76 col1
----
-3037

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2554
SELECT DISTINCT - COALESCE ( 86, + 21 + + - 22 * + COUNT( * ) + + 82 DIV + 77 + - 84, + 30 * + 12 DIV - NULLIF ( + - 27, - + 83 ) + + 72 DIV - 73 * + 8 ) AS col0, - COUNT( * ) * - + COUNT( * ) AS col1
----
-86
1

skipif mysql # not compatible
query II rowsort label-2554
SELECT DISTINCT - COALESCE ( 86, + 21 + + - 22 * + COUNT ( * ) + + 82 / + 77 + - 84, + 30 * + 12 / - NULLIF ( + - 27, - + 83 ) + + 72 / - 73 * + 8 ) AS col0, - COUNT ( * ) * - + COUNT ( * ) AS col1
----
-86
1

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

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL COUNT ( * ) + - + 7 AS col1
----
-6

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

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

query II rowsort
SELECT DISTINCT - 30 AS col2, + 67 AS col1
----
-30
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT ( + 92 ) * + SUM( DISTINCT ( 34 ) ) * + + 54 * - 78 * - + 79 AS col2
----
1040835744

skipif mysql # not compatible
query I rowsort label-2558
SELECT ( + 92 ) * + SUM ( DISTINCT ( 34 ) ) * + + 54 * - 78 * - + 79 AS col2
----
1040835744

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

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL COUNT ( * ) + - + 36 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2560
SELECT + COUNT( * ), 49 * 31 col1
----
1
1519

skipif mysql # not compatible
query II rowsort label-2560
SELECT + COUNT ( * ), 49 * 31 col1
----
1
1519

query II rowsort
SELECT 6 AS col1, 98
----
6
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2562
SELECT DISTINCT + CAST( 80 AS SIGNED ) + + ( + + 37 ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT + CAST ( 80 AS INTEGER ) + + ( + + 37 ) AS col2
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2563
SELECT DISTINCT + 79 - - 84 - - COALESCE ( - NULLIF ( - CASE - 78 WHEN - 14 THEN + - 99 WHEN 30 THEN NULL ELSE - 7 END, - - 21 ), + - 96 ) DIV - 60 - + COALESCE ( - - 15, + - ( + 99 ) + + 35, MAX( - 21 ) )
----
148

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT + 79 - - 84 - - COALESCE ( - NULLIF ( - CASE - 78 WHEN - 14 THEN + - 99 WHEN 30 THEN NULL ELSE - 7 END, - - 21 ), + - 96 ) / - 60 - + COALESCE ( - - 15, + - ( + 99 ) + + 35, MAX ( - 21 ) )
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-2564
SELECT ALL - 24 DIV + + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL - 24 / + + 88 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2565
SELECT DISTINCT ( MIN( DISTINCT - CAST( + 61 AS SIGNED ) ) ) - - 45 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT ( MIN ( DISTINCT - CAST ( + 61 AS INTEGER ) ) ) - - 45 AS col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2566
SELECT DISTINCT - 34 DIV + + MIN( + NULLIF ( 88, - 95 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT - 34 / + + MIN ( + NULLIF ( 88, - 95 ) )
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL - COUNT ( * ) / - 57 AS col0
----
0

query II rowsort
SELECT 27, 95 * - - 65 AS col1
----
27
6175

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT + 2 DIV + + ( 14 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2570
SELECT + 2 / + + ( 14 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2571
SELECT ALL + - 10 * - CASE MIN( ALL COALESCE ( - + 88, - - 44 ) ) WHEN + CAST( + 90 AS DECIMAL ) THEN + + 38 / 67 WHEN - - ( 84 ) * + 61 * + 97 * - + 98 THEN + 55 ELSE NULL END AS col0, 17 AS col2
----
NULL
17

skipif mysql # not compatible
query II rowsort label-2571
SELECT ALL + - 10 * - CASE MIN ( ALL COALESCE ( - + 88, - - 44 ) ) WHEN + CAST ( + 90 AS REAL ) THEN + + 38 / 67 WHEN - - ( 84 ) * + 61 * + 97 * - + 98 THEN + 55 ELSE NULL END AS col0, 17 AS col2
----
NULL
17

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

skipif mysql # not compatible
query I rowsort label-2572
SELECT - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 18 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 5 AS col2, 3
----
5
3

query I rowsort
SELECT ALL + ( + 44 ) col2
----
44

query I rowsort
SELECT DISTINCT - - 68 * - - 62 + - + 2 AS col1
----
4214

query I rowsort
SELECT - - 6 * + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - 9 + + 49 + 89 * + 22 * - COUNT( * ) * 60 + - ( - 66 ) * COUNT( * ) col1
----
-117374

skipif mysql # not compatible
query I rowsort label-2577
SELECT - 9 + + 49 + 89 * + 22 * - COUNT ( * ) * 60 + - ( - 66 ) * COUNT ( * ) col1
----
-117374

query II rowsort
SELECT - + 65 AS col2, + 61
----
-65
61

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

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

query I rowsort
SELECT - ( - + 93 ) + 97
----
190

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT - 36 / 68 / CAST( NULL AS SIGNED ) * - 55 * - AVG ( ALL - 98 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT - 36 / 68 / CAST ( NULL AS INTEGER ) * - 55 * - AVG ( ALL - 98 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2583
SELECT ALL 43 * 35 * ( NULLIF ( - - 44, - CAST( NULL AS DECIMAL ) + - - 28 - + 94 + + 97 + + COUNT( * ) * 67 + + + 80 + + 2 - + COALESCE ( + - 37, + COALESCE ( - COALESCE ( - COUNT( * ), 35 * + - 24 - + + 16 ), - + 95, + 12 ) * - COUNT( * ) + + COALESCE ( 9, COUNT( * ) * - CAST( NULL AS DECIMAL ), - + 91 / + 80 + - 4 * ( + AVG ( DISTINCT + 73 ) ) ), + 79, - 73 ) * 95 * CASE + 28 + COALESCE ( - 91, 33 ) * - 57 WHEN + 44 + - 4 THEN NULL WHEN + ( - 30 ) * - 88 - - 2 THEN + 24 + 10 END ) ) + - COUNT( * )
----
66219

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL 43 * 35 * ( NULLIF ( - - 44, - CAST ( NULL AS REAL ) + - - 28 - + 94 + + 97 + + COUNT ( * ) * 67 + + + 80 + + 2 - + COALESCE ( + - 37, + COALESCE ( - COALESCE ( - COUNT ( * ), 35 * + - 24 - + + 16 ), - + 95, + 12 ) * - COUNT ( * ) + + COALESCE ( 9, COUNT ( * ) * - CAST ( NULL AS REAL ), - + 91 / + 80 + - 4 * ( + AVG ( DISTINCT + 73 ) ) ), + 79, - 73 ) * 95 * CASE + 28 + COALESCE ( - 91, 33 ) * - 57 WHEN + 44 + - 4 THEN NULL WHEN + ( - 30 ) * - 88 - - 2 THEN + 24 + 10 END ) ) + - COUNT ( * )
----
66219

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT - 34 * + COUNT( + 98 ) - - 41 + 63 * + + 18 * + - 50
----
-56693

skipif mysql # not compatible
query I rowsort label-2584
SELECT - 34 * + COUNT ( + 98 ) - - 41 + 63 * + + 18 * + - 50
----
-56693

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL + CASE + 12 WHEN 62 THEN NULL ELSE + SUM( 48 ) + + COUNT( * ) + - + 45 END AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + CASE + 12 WHEN 62 THEN NULL ELSE + SUM ( 48 ) + + COUNT ( * ) + - + 45 END AS col1
----
4

query I rowsort
SELECT ALL + + 69 * 41 + - 77 AS col2
----
2752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2587
SELECT + + 53 / + + MAX( ALL - 19 ) * + + CAST( NULL AS SIGNED ) * - + 95 * MIN( ALL + CAST( NULL AS SIGNED ) ) + + + 96 * + 43 * + COALESCE ( + 93, 7 * 95 / + - 20, - CAST( + COALESCE ( 72, COUNT( * ) + + 93 + - - 23, COUNT( DISTINCT - 60 ), 82 ) AS SIGNED ) * - + 89 ) / + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT + + 53 / + + MAX ( ALL - 19 ) * + + CAST ( NULL AS INTEGER ) * - + 95 * MIN ( ALL + CAST ( NULL AS INTEGER ) ) + + + 96 * + 43 * + COALESCE ( + 93, 7 * 95 / + - 20, - CAST ( + COALESCE ( 72, COUNT ( * ) + + 93 + - - 23, COUNT ( DISTINCT - 60 ), 82 ) AS INTEGER ) * - + 89 ) / + 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ALL 38 * - MIN( - 55 ) + - 66 + + 52 AS col2
----
2076

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL 38 * - MIN ( - 55 ) + - 66 + + 52 AS col2
----
2076

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2589
SELECT DISTINCT - 90 / + + CAST( NULL AS DECIMAL ) + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT - 90 / + + CAST ( NULL AS REAL ) + - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL + COUNT( * ) * - 43 * 77 + COUNT( * )
----
-3310

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + COUNT ( * ) * - 43 * 77 + COUNT ( * )
----
-3310

query I rowsort
SELECT ALL - 82 * 56
----
-4592

query I rowsort
SELECT DISTINCT + 96 * + + 68 + - 16 AS col0
----
6512

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT + NULLIF ( - ( COUNT( * ) ), 12 + CASE - 38 WHEN + 68 + + 27 / - - CASE + ( + + COUNT( * ) ) WHEN + COALESCE ( - 60, + 56 * - ( + 95 ) ) THEN + NULLIF ( - - COUNT( * ), 9 + 15 * + COALESCE ( 8, - 37, + 37 ) * - 61 + - + ( + 21 ) + CASE - COUNT( * ) WHEN + 5 THEN NULL WHEN + 87 THEN + 23 * COUNT( * ) WHEN - 32 THEN NULL END ) ELSE - 26 END THEN 86 * 55 + - 30 END / COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2593
SELECT + NULLIF ( - ( COUNT ( * ) ), 12 + CASE - 38 WHEN + 68 + + 27 / - - CASE + ( + + COUNT ( * ) ) WHEN + COALESCE ( - 60, + 56 * - ( + 95 ) ) THEN + NULLIF ( - - COUNT ( * ), 9 + 15 * + COALESCE ( 8, - 37, + 37 ) * - 61 + - + ( + 21 ) + CASE - COUNT ( * ) WHEN + 5 THEN NULL WHEN + 87 THEN + 23 * COUNT ( * ) WHEN - 32 THEN NULL END ) ELSE - 26 END THEN 86 * 55 + - 30 END / COUNT ( * ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT - 21 DIV - 90 * 54 + 81 * 27 + - + 80 AS col0
----
2107

skipif mysql # not compatible
query I rowsort label-2594
SELECT - 21 / - 90 * 54 + 81 * 27 + - + 80 AS col0
----
2107

query I rowsort
SELECT + 0 + 27 AS col0
----
27

query I rowsort
SELECT ALL + CASE + 13 WHEN 62 THEN + + 43 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2597
SELECT CASE - + COUNT( * ) WHEN 56 THEN - CASE - COUNT( * ) WHEN - 20 * 53 THEN - ( MIN( ( + CAST( NULL AS DECIMAL ) ) ) ) END / - 14 WHEN + - 58 * 14 THEN - 45 * 79 + + 28 + - COALESCE ( + + COUNT( * ), 45 + + - 33, - 62 + ( - - 88 ) - - COALESCE ( - - COUNT( * ), 60 + - 95 + + - 73, - 43 ) ) / - 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT CASE - + COUNT ( * ) WHEN 56 THEN - CASE - COUNT ( * ) WHEN - 20 * 53 THEN - ( MIN ( ( + CAST ( NULL AS REAL ) ) ) ) END / - 14 WHEN + - 58 * 14 THEN - 45 * 79 + + 28 + - COALESCE ( + + COUNT ( * ), 45 + + - 33, - 62 + ( - - 88 ) - - COALESCE ( - - COUNT ( * ), 60 + - 95 + + - 73, - 43 ) ) / - 99 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( 89 ) col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2599
SELECT + 58 * - - COUNT( * ), + 0 * + - 93 AS col0
----
58
0

skipif mysql # not compatible
query II rowsort label-2599
SELECT + 58 * - - COUNT ( * ), + 0 * + - 93 AS col0
----
58
0

query I rowsort
SELECT DISTINCT 81 * - 22 AS col1
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT + 22 * - + COUNT( * ) * + 4 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-2601
SELECT + 22 * - + COUNT ( * ) * + 4 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT - 28 * + + MIN( ALL + 71 )
----
-1988

skipif mysql # not compatible
query I rowsort label-2602
SELECT - 28 * + + MIN ( ALL + 71 )
----
-1988

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

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

query I rowsort
SELECT + + 34 + 9 + + 48
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2605
SELECT DISTINCT + COALESCE ( - 47, COUNT( DISTINCT + - 45 ) + 66 ) * - + MAX( DISTINCT - + 63 ) * + - 87 + + ( 48 ) AS col2, + MIN( ALL + 71 ) + + 79 col1
----
257655
150

skipif mysql # not compatible
query II rowsort label-2605
SELECT DISTINCT + COALESCE ( - 47, COUNT ( DISTINCT + - 45 ) + 66 ) * - + MAX ( DISTINCT - + 63 ) * + - 87 + + ( 48 ) AS col2, + MIN ( ALL + 71 ) + + 79 col1
----
257655
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2606
SELECT ALL - 95 * - 1 * + CAST( - 10 AS SIGNED )
----
-950

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL - 95 * - 1 * + CAST ( - 10 AS INTEGER )
----
-950

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT + 40 + MIN( + 12 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2607
SELECT + 40 + MIN ( + 12 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL 10 + - + SUM( - - 28 )
----
-18

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL 10 + - + SUM ( - - 28 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2609
SELECT + CAST( + MAX( 69 ) AS SIGNED ) * + 13 AS col1
----
897

skipif mysql # not compatible
query I rowsort label-2609
SELECT + CAST ( + MAX ( 69 ) AS INTEGER ) * + 13 AS col1
----
897

query I rowsort
SELECT - 63 + 28 col1
----
-35

query I rowsort
SELECT + 6 * 42 col1
----
252

query I rowsort
SELECT - + ( - - 3 ) + 7
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT - + CASE 5 WHEN - - AVG ( DISTINCT 69 ) / 80 THEN + CAST( 18 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT - + CASE 5 WHEN - - AVG ( DISTINCT 69 ) / 80 THEN + CAST ( 18 AS INTEGER ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 66 + 89 * - ( + + 31 ) AS col1
----
-2825

query I rowsort
SELECT - + 83 + + - 59
----
-142

query I rowsort
SELECT ALL - - ( - 67 ) * + 66 * + 55 col1
----
-243210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL + 3 + - - CAST( + 93 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL + 3 + - - CAST ( + 93 AS INTEGER )
----
96

query II rowsort
SELECT DISTINCT ( 59 ) AS col2, 93
----
59
93

query I rowsort
SELECT DISTINCT + NULLIF ( - 55, + 74 ) AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2620
SELECT DISTINCT COUNT( - + 7 ) DIV - ( - 99 ) + - + 65 + - 27 + 80 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT COUNT ( - + 7 ) / - ( - 99 ) + - + 65 + - 27 + 80 AS col0
----
-12

query I rowsort
SELECT - 36 * - 13 AS col2
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL + MIN( DISTINCT - 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + MIN ( DISTINCT - 34 ) AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2623
SELECT ALL - ( - 61 ) DIV - 57 - - 28 + - ( + + 82 )
----
-55

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL - ( - 61 ) / - 57 - - 28 + - ( + + 82 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT - 17 DIV 67 + + 60
----
60

skipif mysql # not compatible
query I rowsort label-2624
SELECT - 17 / 67 + + 60
----
60

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

skipif mysql # not compatible
query II rowsort label-2625
SELECT CAST ( NULL AS INTEGER ) col0, 61 AS col0
----
NULL
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2626
SELECT - 6 * - 42 DIV + COUNT( * ) col1
----
252

skipif mysql # not compatible
query I rowsort label-2626
SELECT - 6 * - 42 / + COUNT ( * ) col1
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2627
SELECT ALL + COUNT( * ) * ( - + COUNT( + 71 ) ) * + ( 72 ) + CAST( - 94 AS SIGNED ) AS col0, + 57 + + + 63 AS col1
----
-166
120

skipif mysql # not compatible
query II rowsort label-2627
SELECT ALL + COUNT ( * ) * ( - + COUNT ( + 71 ) ) * + ( 72 ) + CAST ( - 94 AS INTEGER ) AS col0, + 57 + + + 63 AS col1
----
-166
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT 16 - ( + 73 ) * + 80 * + + 58 * + - CASE - ( 12 ) WHEN - COALESCE ( + + 43, MIN( - 92 ) ) THEN + 26 * - - 42 WHEN + 87 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT 16 - ( + 73 ) * + 80 * + + 58 * + - CASE - ( 12 ) WHEN - COALESCE ( + + 43, MIN ( - 92 ) ) THEN + 26 * - - 42 WHEN + 87 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL + NULLIF ( - COUNT( * ), - - 92 ) * 13 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + NULLIF ( - COUNT ( * ), - - 92 ) * 13 AS col1
----
-13

query I rowsort
SELECT 22 * + 81 AS col1
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT + COUNT( 10 ) * 45 + + 61
----
106

skipif mysql # not compatible
query I rowsort label-2631
SELECT + COUNT ( 10 ) * 45 + + 61
----
106

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT DISTINCT - ( MIN( DISTINCT - + CASE + 54 WHEN - 86 * + 73 * 89 / + 24 THEN 93 + + - 81 * + 41 * - 8 * + 11 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT - ( MIN ( DISTINCT - + CASE + 54 WHEN - 86 * + 73 * 89 / + 24 THEN 93 + + - 81 * + 41 * - 8 * + 11 END ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT DISTINCT 51 DIV - 11
----
-4

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT 51 / - 11
----
-4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2636
SELECT DISTINCT - 61 + - 86 DIV - - 32 + + - ( - CASE + - NULLIF ( - 41, - + 98 ) WHEN + + 31 DIV - + AVG ( ALL + 17 ) THEN NULL WHEN - 53 + + + MIN( 32 ) + 2 THEN - 18 WHEN 43 THEN NULL ELSE 44 + - 51 - - 83 END ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT - 61 + - 86 / - - 32 + + - ( - CASE + - NULLIF ( - 41, - + 98 ) WHEN + + 31 / - + AVG ( ALL + 17 ) THEN NULL WHEN - 53 + + + MIN ( 32 ) + 2 THEN - 18 WHEN 43 THEN NULL ELSE 44 + - 51 - - 83 END ) AS col0
----
13

query I rowsort
SELECT - 24 * 51 + 22 * + 37 * 66 AS col2
----
52500

query I rowsort
SELECT ALL + 28 + - 70
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2639
SELECT 28 + - - 82 + + COALESCE ( + 71, 51 * - - 60 + 34 + 34 + - 59 DIV CAST( + CASE ( + 88 ) WHEN - 75 - - MIN( - 43 ) THEN NULL WHEN - + 37 THEN + + CASE - COUNT( * ) WHEN + - 8 THEN NULL ELSE + - 77 DIV 33 END - - COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE NULL END AS SIGNED ) ) + - 64 * + 2
----
53

skipif mysql # not compatible
query I rowsort label-2639
SELECT 28 + - - 82 + + COALESCE ( + 71, 51 * - - 60 + 34 + 34 + - 59 / CAST ( + CASE ( + 88 ) WHEN - 75 - - MIN ( - 43 ) THEN NULL WHEN - + 37 THEN + + CASE - COUNT ( * ) WHEN + - 8 THEN NULL ELSE + - 77 / 33 END - - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END AS INTEGER ) ) + - 64 * + 2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT + 91 * + CAST( - ( - - 78 ) AS SIGNED ) AS col2
----
-7098

skipif mysql # not compatible
query I rowsort label-2640
SELECT + 91 * + CAST ( - ( - - 78 ) AS INTEGER ) AS col2
----
-7098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT 48 * + 99 + + 84 - - - CAST( NULL AS SIGNED ) + + + 13 + AVG ( DISTINCT + 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT 48 * + 99 + + 84 - - - CAST ( NULL AS INTEGER ) + + + 13 + AVG ( DISTINCT + 68 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL + 92 + 90 + NULLIF ( + 90, + COUNT( * ) + - 30 - - - 90 + + - 57 / - 70 * - 18 ) + + 46 * - 57 AS col2
----
-2350

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL + 92 + 90 + NULLIF ( + 90, + COUNT ( * ) + - 30 - - - 90 + + - 57 / - 70 * - 18 ) + + 46 * - 57 AS col2
----
-2350

query I rowsort
SELECT DISTINCT + 34 + 53 + - - 10
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT ALL - COUNT( * ) * + - MIN( DISTINCT - ( - 75 ) )
----
75

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL - COUNT ( * ) * + - MIN ( DISTINCT - ( - 75 ) )
----
75

query I rowsort
SELECT DISTINCT + - ( + 90 ) + 25 AS col0
----
-65

query I rowsort
SELECT DISTINCT 15 + 22
----
37

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2648
SELECT + MIN( DISTINCT - + 13 ) * 83 * MAX( DISTINCT 72 ) * - 21 AS col0, - CAST( NULL AS SIGNED )
----
1631448
NULL

skipif mysql # not compatible
query II rowsort label-2648
SELECT + MIN ( DISTINCT - + 13 ) * 83 * MAX ( DISTINCT 72 ) * - 21 AS col0, - CAST ( NULL AS INTEGER )
----
1631448
NULL

query I rowsort
SELECT 97 * + 47 + - 35 AS col2
----
4524

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2650
SELECT ( + COUNT( * ) ) DIV - 71 - - 89 * - 15 AS col2
----
-1335

skipif mysql # not compatible
query I rowsort label-2650
SELECT ( + COUNT ( * ) ) / - 71 - - 89 * - 15 AS col2
----
-1335

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2651
SELECT ALL - 56 * 91 DIV + SUM( ALL + 71 ) AS col0, 36 AS col1
----
-71
36

skipif mysql # not compatible
query II rowsort label-2651
SELECT ALL - 56 * 91 / + SUM ( ALL + 71 ) AS col0, 36 AS col1
----
-71
36

query I rowsort
SELECT - ( CASE 63 WHEN 42 / + + 90 * 31 THEN + + 80 * 76 - + + 11 + + + CASE 69 WHEN + + ( + NULLIF ( - 83, 16 * + - 25 * COALESCE ( + - 10, 77 ) ) ) THEN ( 93 ) WHEN - 17 THEN NULL END END ) / 48 + - 7 AS col2
----
NULL

query I rowsort
SELECT ALL - ( 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT - 38 * NULLIF ( - 64, - 41 + - 77 + 98 - - COUNT( * ) + COUNT( * ) ) AS col0
----
2432

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT - 38 * NULLIF ( - 64, - 41 + - 77 + 98 - - COUNT ( * ) + COUNT ( * ) ) AS col0
----
2432

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT 42 * + 28 DIV - + 1 AS col2
----
-1176

skipif mysql # not compatible
query I rowsort label-2655
SELECT 42 * + 28 / - + 1 AS col2
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT - COALESCE ( + 65, COUNT( * ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - COALESCE ( + 65, COUNT ( * ) ) AS col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2657
SELECT 65 DIV - - COUNT( * ) + + + 70
----
135

skipif mysql # not compatible
query I rowsort label-2657
SELECT 65 / - - COUNT ( * ) + + + 70
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT NULLIF ( - 75, COUNT( * ) ) + - 86 + + COUNT( * )
----
-160

skipif mysql # not compatible
query I rowsort label-2658
SELECT NULLIF ( - 75, COUNT ( * ) ) + - 86 + + COUNT ( * )
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT + 68 * + 2 + + 8 + - 11 * - - COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-2659
SELECT + 68 * + 2 + + 8 + - 11 * - - COUNT ( * )
----
133

onlyif mysql # DIV for integer division: 
query II rowsort label-2660
SELECT DISTINCT - COALESCE ( + 67, 63 DIV - 55 ), 24 col1
----
-67
24

skipif mysql # not compatible
query II rowsort label-2660
SELECT DISTINCT - COALESCE ( + 67, 63 / - 55 ), 24 col1
----
-67
24

query I rowsort
SELECT ALL + 94 * ( + 40 ) AS col1
----
3760

query II rowsort
SELECT 57 * - 74 AS col0, + 29 + ( - - 82 ) AS col0
----
-4218
111

query I rowsort
SELECT DISTINCT + 21 + - 82 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT + 76 + ( + MAX( + - 31 ) )
----
45

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT + 76 + ( + MAX ( + - 31 ) )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2665
SELECT DISTINCT - 21 + + COUNT( * ) AS col0, 24 + + 74 + - + 23 * 19 * COUNT( + NULLIF ( - + 46, - 14 - + + 15 ) ) AS col0
----
-20
-339

skipif mysql # not compatible
query II rowsort label-2665
SELECT DISTINCT - 21 + + COUNT ( * ) AS col0, 24 + + 74 + - + 23 * 19 * COUNT ( + NULLIF ( - + 46, - 14 - + + 15 ) ) AS col0
----
-20
-339

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT + + SUM( + - 5 ) * + + 65
----
-325

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT + + SUM ( + - 5 ) * + + 65
----
-325

query I rowsort
SELECT 82 * + 38 * 85 * + - 10 + ( + + 83 ) * + 88 + + 9 col2
----
-2641287

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT + - 91 * + - 97 + 42 - - 78 + 51 * + - 10 * - - ( SUM( ALL - - 17 ) )
----
277

skipif mysql # not compatible
query I rowsort label-2668
SELECT + - 91 * + - 97 + 42 - - 78 + 51 * + - 10 * - - ( SUM ( ALL - - 17 ) )
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT - SUM( ALL - 62 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-2669
SELECT - SUM ( ALL - 62 ) col2
----
62

query I rowsort
SELECT ALL + + 11 + - 30 col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT - 98 + - + MAX( - + 10 )
----
-88

skipif mysql # not compatible
query I rowsort label-2671
SELECT - 98 + - + MAX ( - + 10 )
----
-88

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

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL COUNT ( * ) / - 18 AS col0
----
0

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

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

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

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

query II rowsort
SELECT 42 + - 90 AS col2, + 31 AS col0
----
-48
31

query II rowsort
SELECT ALL + 55 - + 21, + 14 AS col2
----
34
14

query I rowsort
SELECT ( - + 24 ) * - 99
----
2376

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

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

query II rowsort
SELECT + 47 + 58 AS col0, - 18 * + 91 col0
----
105
-1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2680
SELECT ALL COALESCE ( + - ( SUM( ALL - 73 ) ), - 32 + - 4, 30 + - + COUNT( * ) + - + 51 - - ( + - 28 ) - + 34 * 9 * + - ( - 23 ) * 44 * + COUNT( * ) * + 20 DIV + 85 * + 46 * - NULLIF ( - - 41, + - MAX( ALL 78 ) ) )
----
73

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL COALESCE ( + - ( SUM ( ALL - 73 ) ), - 32 + - 4, 30 + - + COUNT ( * ) + - + 51 - - ( + - 28 ) - + 34 * 9 * + - ( - 23 ) * 44 * + COUNT ( * ) * + 20 / + 85 * + 46 * - NULLIF ( - - 41, + - MAX ( ALL 78 ) ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT 53 * - MIN( - 98 ) * + 60 AS col0
----
311640

skipif mysql # not compatible
query I rowsort label-2681
SELECT 53 * - MIN ( - 98 ) * + 60 AS col0
----
311640

query I rowsort
SELECT DISTINCT 39 * - 21 + 18 AS col0
----
-801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT DISTINCT - COUNT( ALL - 53 ) * + 9 + 28 DIV + 36
----
-9

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT - COUNT ( ALL - 53 ) * + 9 + 28 / + 36
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL COALESCE ( COUNT( * ), 17 * - + ( + + 64 ), + 9 * 56 + - 64 )
----
1

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL COALESCE ( COUNT ( * ), 17 * - + ( + + 64 ), + 9 * 56 + - 64 )
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2686
SELECT + SUM( ALL + 1 ) DIV + COUNT( DISTINCT + - 94 )
----
1

skipif mysql # not compatible
query I rowsort label-2686
SELECT + SUM ( ALL + 1 ) / + COUNT ( DISTINCT + - 94 )
----
1

query I rowsort
SELECT + 29 * + - 59
----
-1711

query I rowsort
SELECT + 35 + + 85 + 63 AS col0
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT + 47 DIV - + 49
----
0

skipif mysql # not compatible
query I rowsort label-2689
SELECT + 47 / - + 49
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2690
SELECT DISTINCT COALESCE ( + COUNT( * ), - CASE - 86 WHEN 59 + + 31 THEN - - 86 WHEN + 49 - 93 THEN - 32 ELSE + - COUNT( * ) + - MIN( 56 ) DIV 85 END + 53 ) * + COUNT( * ) + 68 * - 68
----
-4623

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT COALESCE ( + COUNT ( * ), - CASE - 86 WHEN 59 + + 31 THEN - - 86 WHEN + 49 - 93 THEN - 32 ELSE + - COUNT ( * ) + - MIN ( 56 ) / 85 END + 53 ) * + COUNT ( * ) + 68 * - 68
----
-4623

query I rowsort
SELECT - 88 * + 99 AS col0
----
-8712

query I rowsort
SELECT CASE + 53 WHEN + + 44 THEN + 10 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 62 * + + 2 * - - 98
----
-12152

query I rowsort
SELECT + 17 + + - 85
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT DISTINCT 1 * - + MAX( + 28 ) + + + 26 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT 1 * - + MAX ( + 28 ) + + + 26 AS col1
----
-2

query I rowsort
SELECT DISTINCT + 52 * 53 + + 84 + + 88
----
2928

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT + 16 * - + COUNT( * ) + - - 92 + 24 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT + 16 * - + COUNT ( * ) + - - 92 + 24 AS col1
----
100

query I rowsort
SELECT ALL 9 * + - 1 + + 60 - + 81 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2699
SELECT DISTINCT NULLIF ( + - ( 3 ), - + 56 * COUNT( * ) ) * MAX( ALL - 87 ) + - 38 AS col2, - 57 + 39
----
223
-18

skipif mysql # not compatible
query II rowsort label-2699
SELECT DISTINCT NULLIF ( + - ( 3 ), - + 56 * COUNT ( * ) ) * MAX ( ALL - 87 ) + - 38 AS col2, - 57 + 39
----
223
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2700
SELECT - COALESCE ( + 38, CAST( NULL AS SIGNED ), - - 84 * + + 69 + 45 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2700
SELECT - COALESCE ( + 38, CAST ( NULL AS INTEGER ), - - 84 * + + 69 + 45 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL - CASE ( 51 ) WHEN - 52 THEN - + 89 + + 45 + 63 END - - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL - CASE ( 51 ) WHEN - 52 THEN - + 89 + + 45 + 63 END - - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - + 46 * + 43 col0
----
-1978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2703
SELECT ALL - 40 * 46 * - MIN( + CAST( NULL AS SIGNED ) ) / + ( - COALESCE ( 25, + 24 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL - 40 * 46 * - MIN ( + CAST ( NULL AS INTEGER ) ) / + ( - COALESCE ( 25, + 24 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2704
SELECT ALL - 24 - - 99 DIV COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - 24 - - 99 / COUNT ( * ) AS col2
----
75

query II rowsort
SELECT - 65, + 14 AS col1
----
-65
14

query I rowsort
SELECT - 2 * - - 62 col1
----
-124

query I rowsort
SELECT + 72 * - + 91 AS col1
----
-6552

query I rowsort
SELECT ALL - COALESCE ( 93, - 82 - 10 * 65 * + - 68 )
----
-93

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

query I rowsort
SELECT - 30 + + - 33
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT - COALESCE ( + - MIN( - - 8 ), 46, + 92 )
----
8

skipif mysql # not compatible
query I rowsort label-2711
SELECT - COALESCE ( + - MIN ( - - 8 ), 46, + 92 )
----
8

query II rowsort
SELECT ALL 46 AS col1, 67 AS col0
----
46
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT - COUNT( * ) + + 60
----
59

skipif mysql # not compatible
query I rowsort label-2713
SELECT - COUNT ( * ) + + 60
----
59

query I rowsort
SELECT ALL 17 + 95 AS col1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT DISTINCT 35 + + + 11 DIV + 42
----
35

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT 35 + + + 11 / + 42
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2716
SELECT + CASE - COUNT( * ) WHEN - + 74 THEN CASE + - COALESCE ( - - COUNT( + 94 ), + ( + 91 ) * + + 8 ) WHEN - - CAST( NULL AS DECIMAL ) * + + 20 + 35 THEN + 91 + - 60 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT + CASE - COUNT ( * ) WHEN - + 74 THEN CASE + - COALESCE ( - - COUNT ( + 94 ), + ( + 91 ) * + + 8 ) WHEN - - CAST ( NULL AS REAL ) * + + 20 + 35 THEN + 91 + - 60 END END AS col2
----
NULL

query I rowsort
SELECT + 76 + + - ( + - 1 ) AS col0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2718
SELECT ALL + 68 DIV - - 95 + - 77 * - COUNT( * ) * + 98 * + + 58 AS col1
----
437668

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL + 68 / - - 95 + - 77 * - COUNT ( * ) * + 98 * + + 58 AS col1
----
437668

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT ALL 97 DIV - 20 + + + 74
----
70

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL 97 / - 20 + + + 74
----
70

query II rowsort
SELECT DISTINCT + 44, + 28 col1
----
44
28

query I rowsort
SELECT - 40 * + 59
----
-2360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2722
SELECT + 46 * - 73 DIV + - COUNT( * ) * + + COUNT( * ) AS col0
----
3358

skipif mysql # not compatible
query I rowsort label-2722
SELECT + 46 * - 73 / + - COUNT ( * ) * + + COUNT ( * ) AS col0
----
3358

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT + 63 DIV + 29
----
2

skipif mysql # not compatible
query I rowsort label-2723
SELECT + 63 / + 29
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2724
SELECT - ( 78 ) + + CAST( 31 AS SIGNED ), 43 * - + 46 AS col2
----
-47
-1978

skipif mysql # not compatible
query II rowsort label-2724
SELECT - ( 78 ) + + CAST ( 31 AS INTEGER ), 43 * - + 46 AS col2
----
-47
-1978

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

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

query I rowsort
SELECT ALL + 90 * - + 16 - + - 4 * - + 98 - - 78
----
-1754

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2727
SELECT DISTINCT + - 58 AS col0, CAST( NULL AS SIGNED ) / 88 + + - 26 AS col1, + ( + - 29 ) AS col1
----
-58
NULL
-29

skipif mysql # not compatible
query III rowsort label-2727
SELECT DISTINCT + - 58 AS col0, CAST ( NULL AS INTEGER ) / 88 + + - 26 AS col1, + ( + - 29 ) AS col1
----
-58
NULL
-29

query I rowsort
SELECT ALL + - NULLIF ( + + 19, 61 ) AS col2
----
-19

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT 8 AS col1, COUNT( * ) * - - 21 AS col1
----
8
21

skipif mysql # not compatible
query II rowsort label-2730
SELECT 8 AS col1, COUNT ( * ) * - - 21 AS col1
----
8
21

query I rowsort
SELECT ALL 76 * - 81 AS col1
----
-6156

query II rowsort
SELECT + 46 + + 84 AS col0, + 23 AS col1
----
130
23

query I rowsort
SELECT - 16 - - - 53 AS col2
----
-69

query I rowsort
SELECT + + COALESCE ( + + 74, + + 78 + - 1 ) * - 97 + - 48
----
-7226

query II rowsort
SELECT 52 AS col1, 60 AS col1
----
52
60

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

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

query I rowsort
SELECT + 73 * + 64 AS col0
----
4672

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT SUM( DISTINCT - 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2738
SELECT SUM ( DISTINCT - 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL CASE 32 WHEN + COALESCE ( + + 36, + COUNT( * ) ) THEN - 49 WHEN MAX( DISTINCT - 53 ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL CASE 32 WHEN + COALESCE ( + + 36, + COUNT ( * ) ) THEN - 49 WHEN MAX ( DISTINCT - 53 ) THEN NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2740
SELECT - - CAST( + - 72 AS SIGNED ) + CAST( + - 14 AS SIGNED ) AS col0, 53 AS col0
----
-86
53

skipif mysql # not compatible
query II rowsort label-2740
SELECT - - CAST ( + - 72 AS INTEGER ) + CAST ( + - 14 AS INTEGER ) AS col0, 53 AS col0
----
-86
53

query II rowsort
SELECT ALL 16, 69 AS col1
----
16
69

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

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

query I rowsort
SELECT - + 23 + ( + 50 ) * - 91 + - 29
----
-4602

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL - - 64 * COUNT( * ) * 51
----
3264

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL - - 64 * COUNT ( * ) * 51
----
3264

query I rowsort
SELECT 74 + - 1 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL - COUNT( * ) + - + ( 6 ) - - + COUNT( * ) + - + 74 * + + 69 * - 19 AS col0
----
97008

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL - COUNT ( * ) + - + ( 6 ) - - + COUNT ( * ) + - + 74 * + + 69 * - 19 AS col0
----
97008

onlyif mysql # aggregate syntax: 
query II rowsort label-2747
SELECT COUNT( * ) * + + 77 AS col0, - 21 AS col0
----
77
-21

skipif mysql # not compatible
query II rowsort label-2747
SELECT COUNT ( * ) * + + 77 AS col0, - 21 AS col0
----
77
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2748
SELECT DISTINCT - CAST( - MAX( - 69 ) AS SIGNED ) + + 82
----
13

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT - CAST ( - MAX ( - 69 ) AS INTEGER ) + + 82
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL + COUNT( * ) * + 19 * 9 AS col0
----
171

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL + COUNT ( * ) * + 19 * 9 AS col0
----
171

query I rowsort
SELECT DISTINCT - 79 * 17 AS col0
----
-1343

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT 35 DIV 9
----
3

skipif mysql # not compatible
query I rowsort label-2751
SELECT 35 / 9
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL + 7 + - MAX( - 94 ) * + 44 AS col0
----
4143

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL + 7 + - MAX ( - 94 ) * + 44 AS col0
----
4143

onlyif mysql # DIV for integer division: 
query I rowsort label-2753
SELECT 61 DIV - 76 col0
----
0

skipif mysql # not compatible
query I rowsort label-2753
SELECT 61 / - 76 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2754
SELECT 70 * - CAST( - - 4 AS SIGNED ) * + 17 * MAX( - CAST( + 74 AS SIGNED ) ) + - + 95 - + - 12
----
352157

skipif mysql # not compatible
query I rowsort label-2754
SELECT 70 * - CAST ( - - 4 AS INTEGER ) * + 17 * MAX ( - CAST ( + 74 AS INTEGER ) ) + - + 95 - + - 12
----
352157

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2755
SELECT ALL + 44 + - + 73 AS col2, + ( - ( + + CAST( - 59 AS SIGNED ) ) ) * 97 + - 61
----
-29
5662

skipif mysql # not compatible
query II rowsort label-2755
SELECT ALL + 44 + - + 73 AS col2, + ( - ( + + CAST ( - 59 AS INTEGER ) ) ) * 97 + - 61
----
-29
5662

query I rowsort
SELECT DISTINCT - 90 + - 81 * ( - 14 ) AS col0
----
1044

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT 96 * 8 DIV 94 * - 99 col2
----
-792

skipif mysql # not compatible
query I rowsort label-2757
SELECT 96 * 8 / 94 * - 99 col2
----
-792

query I rowsort
SELECT ALL - 72 * - - COALESCE ( - 10, - 30 ) AS col2
----
720

query I rowsort
SELECT ALL - 51 * 56 AS col1
----
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT ALL - 40 * MAX( + 38 ) AS col1
----
-1520

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL - 40 * MAX ( + 38 ) AS col1
----
-1520

query I rowsort
SELECT 2 + 29 AS col2
----
31

query I rowsort
SELECT DISTINCT - + 75 * 0
----
0

query II rowsort
SELECT - CASE 83 WHEN 23 * ( + + ( - NULLIF ( - + ( 4 ), - 23 * 40 ) ) ) THEN 35 WHEN + 24 THEN - + 26 * - 78 ELSE NULL END * - 73 AS col1, 46 * + 59 AS col1
----
NULL
2714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT 88 * - 94 / + 82 * CAST( NULL AS SIGNED ) + + - 4 - - + ( - 62 ) * - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT 88 * - 94 / + 82 * CAST ( NULL AS INTEGER ) + + - 4 - - + ( - 62 ) * - - 25
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2765
SELECT ALL + 24 DIV - ( 29 )
----
0

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL + 24 / - ( 29 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2767
SELECT 20 * - + MIN( + + 90 ) + 27 - - - ( 82 ) * - COUNT( - 47 ) + - + ( - - 89 ) * - + 84 * + 1 col2, + 0
----
5785
0

skipif mysql # not compatible
query II rowsort label-2767
SELECT 20 * - + MIN ( + + 90 ) + 27 - - - ( 82 ) * - COUNT ( - 47 ) + - + ( - - 89 ) * - + 84 * + 1 col2, + 0
----
5785
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2768
SELECT ALL + 63 DIV - 70 * + CAST( + - 53 AS SIGNED ) + - + ( - CASE - 64 WHEN - + COUNT( * ) THEN NULL ELSE + 20 DIV - - 25 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL + 63 / - 70 * + CAST ( + - 53 AS INTEGER ) + - + ( - CASE - 64 WHEN - + COUNT ( * ) THEN NULL ELSE + 20 / - - 25 END ) AS col0
----
0

query I rowsort
SELECT 97 * + 12 + + 29
----
1193

onlyif mysql # aggregate syntax: 
query II rowsort label-2770
SELECT ALL 33 * + 52 AS col2, + CASE + + ( + 31 ) WHEN - - SUM( DISTINCT 1 ) * - 49 + COUNT( * ) + + 27 THEN - + 3 ELSE + + 95 * 50 * 12 + - COUNT( * ) - + 30 END AS col2
----
1716
56969

skipif mysql # not compatible
query II rowsort label-2770
SELECT ALL 33 * + 52 AS col2, + CASE + + ( + 31 ) WHEN - - SUM ( DISTINCT 1 ) * - 49 + COUNT ( * ) + + 27 THEN - + 3 ELSE + + 95 * 50 * 12 + - COUNT ( * ) - + 30 END AS col2
----
1716
56969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2771
SELECT - 7 * + + CAST( NULL AS SIGNED ) + 43 - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2771
SELECT - 7 * + + CAST ( NULL AS INTEGER ) + 43 - 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL 90 + - COALESCE ( 11, 47 * + 42 + + 55 + - + 27, - + 66 ) * CASE + - 6 WHEN + 96 * - COUNT( * ) + + 40 THEN - COUNT( * ) WHEN + ( - + 45 ) + + - 77 THEN NULL WHEN + - 81 THEN 25 / - 54 + + NULLIF ( 42, + 83 ) + + 67 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL 90 + - COALESCE ( 11, 47 * + 42 + + 55 + - + 27, - + 66 ) * CASE + - 6 WHEN + 96 * - COUNT ( * ) + + 40 THEN - COUNT ( * ) WHEN + ( - + 45 ) + + - 77 THEN NULL WHEN + - 81 THEN 25 / - 54 + + NULLIF ( 42, + 83 ) + + 67 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 7 + - 36 + - + 47 + + 56 AS col1
----
-20

query II rowsort
SELECT ALL 79 AS col2, 22 AS col2
----
79
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT 26 * - COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2775
SELECT 26 * - COUNT ( * ) AS col1
----
-26

query I rowsort
SELECT 61 * - 60 * 21 AS col1
----
-76860

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL COUNT( * ) + 90
----
91

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL COUNT ( * ) + 90
----
91

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

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

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

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

query I rowsort
SELECT ALL - 75 + 19
----
-56

query I rowsort
SELECT DISTINCT - 57 + 49 * + 32
----
1511

query I rowsort
SELECT ALL + 48 * - 31
----
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT ALL 58 + MAX( 10 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL 58 + MAX ( 10 ) AS col2
----
68

query I rowsort
SELECT 77 * - + ( 12 )
----
-924

query I rowsort
SELECT 51 + + 38 + + 94
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT 86 - - + COUNT( ALL 85 )
----
87

skipif mysql # not compatible
query I rowsort label-2786
SELECT 86 - - + COUNT ( ALL 85 )
----
87

query II rowsort
SELECT 67 * + 82 * + 5 AS col1, 71 * + + ( + - 20 ) AS col1
----
27470
-1420

query I rowsort
SELECT 70 + - ( + 85 ) * - + 17
----
1515

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL + 40 * + MAX( - 25 ) AS col1
----
-1000

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL + 40 * + MAX ( - 25 ) AS col1
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT - 10 * CASE - + 33 WHEN COUNT( * ) + - ( + 18 ) + - + COUNT( * ) THEN - + 83 ELSE NULL END / - NULLIF ( - + 85, + 69 ) * + + 57 / - - 53 + - - ( + SUM( - 20 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - 10 * CASE - + 33 WHEN COUNT ( * ) + - ( + 18 ) + - + COUNT ( * ) THEN - + 83 ELSE NULL END / - NULLIF ( - + 85, + 69 ) * + + 57 / - - 53 + - - ( + SUM ( - 20 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2791
SELECT DISTINCT + + COUNT( * ) DIV + 59 + + 93 + 70
----
163

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT + + COUNT ( * ) / + 59 + + 93 + 70
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - 19 * - COUNT( * ) + - 46 * - + 81 AS col2
----
3745

skipif mysql # not compatible
query I rowsort label-2792
SELECT - 19 * - COUNT ( * ) + - 46 * - + 81 AS col2
----
3745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT CAST( + - ( - 79 ) AS SIGNED ) * + 18 * + 9 * + - 50 AS col1
----
-639900

skipif mysql # not compatible
query I rowsort label-2793
SELECT CAST ( + - ( - 79 ) AS INTEGER ) * + 18 * + 9 * + - 50 AS col1
----
-639900

onlyif mysql # aggregate syntax: 
query II rowsort label-2794
SELECT COUNT( * ) AS col0, 15 - 34 AS col1
----
1
-19

skipif mysql # not compatible
query II rowsort label-2794
SELECT COUNT ( * ) AS col0, 15 - 34 AS col1
----
1
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2795
SELECT + 44 AS col2, CAST( NULL AS SIGNED ) * 36 * + 65
----
44
NULL

skipif mysql # not compatible
query II rowsort label-2795
SELECT + 44 AS col2, CAST ( NULL AS INTEGER ) * 36 * + 65
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL 94 * + COUNT( * ) col2
----
94

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL 94 * + COUNT ( * ) col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT - 64 + - MAX( 53 ) * 31 AS col2
----
-1707

skipif mysql # not compatible
query I rowsort label-2797
SELECT - 64 + - MAX ( 53 ) * 31 AS col2
----
-1707

query I rowsort
SELECT DISTINCT + + 56 * 39 AS col2
----
2184

onlyif mysql # DIV for integer division: 
query II rowsort label-2799
SELECT + - 6 * 22 DIV + - 50, 31 AS col0
----
2
31

skipif mysql # not compatible
query II rowsort label-2799
SELECT + - 6 * 22 / + - 50, 31 AS col0
----
2
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL + COUNT( * ) + + 25 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL + COUNT ( * ) + + 25 AS col2
----
26

query I rowsort
SELECT DISTINCT - NULLIF ( - 15, + 76 * - 94 + - - 31 + 48 ) + - 86
----
-71

query I rowsort
SELECT - + 21 + - 88 AS col1
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT + - 15 - + COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-2803
SELECT + - 15 - + COUNT ( * ) AS col0
----
-16

query II rowsort
SELECT ALL + + 88 AS col1, - 47 * - 1 * - 32 AS col1
----
88
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT - + 8 * - 95 + - + ( + COUNT( * ) ) * - 90 * + MAX( DISTINCT + 21 ) AS col0
----
2650

skipif mysql # not compatible
query I rowsort label-2805
SELECT - + 8 * - 95 + - + ( + COUNT ( * ) ) * - 90 * + MAX ( DISTINCT + 21 ) AS col0
----
2650

query I rowsort
SELECT + 27 + - 43 AS col1
----
-16

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

query I rowsort
SELECT DISTINCT 12 * - 83
----
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL 88 + - SUM( ALL - 29 ) * - - 54 + COUNT( * ) + + 97
----
1752

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL 88 + - SUM ( ALL - 29 ) * - - 54 + COUNT ( * ) + + 97
----
1752

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

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

query I rowsort
SELECT ALL 59 + + 28 AS col1
----
87

query I rowsort
SELECT DISTINCT 17 - ( - - 71 ) + 67 col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2813
SELECT - MIN( + 33 ) AS col1, - 44
----
-33
-44

skipif mysql # not compatible
query II rowsort label-2813
SELECT - MIN ( + 33 ) AS col1, - 44
----
-33
-44

query I rowsort
SELECT + NULLIF ( + 80, 18 ) + - + 55 + + + ( ( + 89 ) )
----
114

query I rowsort
SELECT ALL 52 * - ( - 27 )
----
1404

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2817
SELECT - COALESCE ( + - 71, + COALESCE ( - 27, + CAST( NULL AS SIGNED ) - - COALESCE ( 64, - COALESCE ( NULLIF ( - 6, + 79 + - - 49 DIV SUM( DISTINCT - 97 ) ), - - 51, + 61 + CAST( - 80 AS SIGNED ) * + + COUNT( * ) ) * + - 20 + + 45 + 38 - - 55 * + 30 DIV - + 32 + + + 13 ) * 19 ) + - - CAST( - ( COUNT( ALL 94 ) ) AS SIGNED ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2817
SELECT - COALESCE ( + - 71, + COALESCE ( - 27, + CAST ( NULL AS INTEGER ) - - COALESCE ( 64, - COALESCE ( NULLIF ( - 6, + 79 + - - 49 / SUM ( DISTINCT - 97 ) ), - - 51, + 61 + CAST ( - 80 AS INTEGER ) * + + COUNT ( * ) ) * + - 20 + + 45 + 38 - - 55 * + 30 / - + 32 + + + 13 ) * 19 ) + - - CAST ( - ( COUNT ( ALL 94 ) ) AS INTEGER ) ) AS col1
----
71

query I rowsort
SELECT - 99 + + + 17 + - + 34 AS col0
----
-116

query I rowsort
SELECT DISTINCT + ( + NULLIF ( + COALESCE ( - 15, - ( + 43 ), - 26 * + 21 ), - + 4 + - 5 ) ) * + - 31
----
465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2820
SELECT DISTINCT COUNT( * ) DIV - - COALESCE ( + - 10, - - 81 ) - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT COUNT ( * ) / - - COALESCE ( + - 10, - - 81 ) - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2821
SELECT - ( + - 35 ) col2, + COALESCE ( - COUNT( * ), + - 2 DIV - + ( COALESCE ( - 50, - 22 * - 8, + 22 + + - 74, - - 39 ) ) - - 70, - 11 ) AS col2
----
35
-1

skipif mysql # not compatible
query II rowsort label-2821
SELECT - ( + - 35 ) col2, + COALESCE ( - COUNT ( * ), + - 2 / - + ( COALESCE ( - 50, - 22 * - 8, + 22 + + - 74, - - 39 ) ) - - 70, - 11 ) AS col2
----
35
-1

query I rowsort
SELECT ALL + 57 * - - 87
----
4959

query I rowsort
SELECT + 12 * + 75 AS col0
----
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT DISTINCT + + 8 * + + 61 * - 31 - - CAST( - - 46 AS SIGNED ) + COUNT( * ) + - 32 * COALESCE ( - - 19, - COUNT( * ), - - 92 ) * - 3 - 41
----
-13298

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT + + 8 * + + 61 * - 31 - - CAST ( - - 46 AS INTEGER ) + COUNT ( * ) + - 32 * COALESCE ( - - 19, - COUNT ( * ), - - 92 ) * - 3 - 41
----
-13298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2825
SELECT ALL - + COUNT( * ) * + 18 DIV - - 92 * + - ( - 27 ) + - COUNT( 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL - + COUNT ( * ) * + 18 / - - 92 * + - ( - 27 ) + - COUNT ( 14 )
----
-1

query II rowsort
SELECT ALL 9 * + 58 AS col0, 4 - + - 90 * + 50
----
522
4504

query I rowsort
SELECT DISTINCT 27 * - 68
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL + 33 * - - COUNT( * ) + + 19
----
52

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL + 33 * - - COUNT ( * ) + + 19
----
52

query I rowsort
SELECT ALL - 68 * - - 10 + + - 60
----
-740

query I rowsort
SELECT + - 66 + 55 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT - 28 * + + 23 + + COUNT( * ) * - COUNT( * ) - - + ( - 33 ) * + + 18
----
-1239

skipif mysql # not compatible
query I rowsort label-2831
SELECT - 28 * + + 23 + + COUNT ( * ) * - COUNT ( * ) - - + ( - 33 ) * + + 18
----
-1239

query I rowsort
SELECT + + 4 * + 23 * - 75 + - + 17 + - - 24 AS col1
----
-6893

query I rowsort
SELECT DISTINCT + - 18 * + - 97 + 87
----
1833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2834
SELECT - 16 * 17 DIV COUNT( * ) * - 72
----
19584

skipif mysql # not compatible
query I rowsort label-2834
SELECT - 16 * 17 / COUNT ( * ) * - 72
----
19584

onlyif mysql # DIV for integer division: 
query I rowsort label-2835
SELECT ALL + ( + - 5 ) * - 70 DIV + 10 - + - 29 + + 83 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL + ( + - 5 ) * - 70 / + 10 - + - 29 + + 83 AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL 19 * - + 76 + 30 + - + CASE - 71 WHEN - 65 THEN + COUNT( * ) + - 64 WHEN + 4 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL 19 * - + 76 + 30 + - + CASE - 71 WHEN - 65 THEN + COUNT ( * ) + - 64 WHEN + 4 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT DISTINCT COUNT( * ) * + 76 + - + 7 + - COUNT( * ) + + 77 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT COUNT ( * ) * + 76 + - + 7 + - COUNT ( * ) + + 77 AS col1
----
145

query I rowsort
SELECT ALL 71 * 55 AS col1
----
3905

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT MIN( DISTINCT 35 )
----
35

skipif mysql # not compatible
query I rowsort label-2839
SELECT MIN ( DISTINCT 35 )
----
35

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

skipif mysql # not compatible
query I rowsort label-2840
SELECT + CAST ( NULL AS REAL ) * - 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT + CAST( NULL AS SIGNED ) / 27 * + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT + CAST ( NULL AS INTEGER ) / 27 * + + 79
----
NULL

query I rowsort
SELECT - 93 * - 80 AS col2
----
7440

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT ALL 5 DIV 5
----
1

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL 5 / 5
----
1

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

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL CAST ( + + 75 AS INTEGER ) AS col1
----
75

query I rowsort
SELECT ALL 57 * + 23 col1
----
1311

onlyif mysql # DIV for integer division: 
query I rowsort label-2846
SELECT + 81 DIV 64 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2846
SELECT + 81 / 64 AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT - CASE ( - SUM( - 8 ) ) WHEN - 11 THEN MIN( DISTINCT - - 96 ) END + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT - CASE ( - SUM ( - 8 ) ) WHEN - 11 THEN MIN ( DISTINCT - - 96 ) END + - 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2849
SELECT ALL MIN( + 40 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT + + 0 * - 67 AS col1
----
0

query I rowsort
SELECT ALL ( + + 31 ) + + + 76
----
107

query I rowsort
SELECT + + 31 + 72 AS col1
----
103

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2856
SELECT 3 * COALESCE ( - + 29, CAST( NULL AS SIGNED ), + COALESCE ( 52, 70, + + 21 * + MAX( - - CAST( - 24 AS SIGNED ) ) ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2856
SELECT 3 * COALESCE ( - + 29, CAST ( NULL AS INTEGER ), + COALESCE ( 52, 70, + + 21 * + MAX ( - - CAST ( - 24 AS INTEGER ) ) ) ) AS col1
----
-87

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

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT COUNT ( * ) + - 95 AS col1
----
-94

query I rowsort
SELECT ALL - 76 + + 23
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2859
SELECT DISTINCT + - NULLIF ( - 13, + 23 * - COUNT( * ) * - 80 ) + COUNT( * ), + 9 * COUNT( * ) + + 35 AS col0
----
14
44

skipif mysql # not compatible
query II rowsort label-2859
SELECT DISTINCT + - NULLIF ( - 13, + 23 * - COUNT ( * ) * - 80 ) + COUNT ( * ), + 9 * COUNT ( * ) + + 35 AS col0
----
14
44

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2861
SELECT ALL COUNT( * ) DIV - - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL COUNT ( * ) / - - 76 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT 79 * + 5 + 97 + + 30 * - - MAX( 95 ) + + + 80 AS col0
----
3422

skipif mysql # not compatible
query I rowsort label-2862
SELECT 79 * + 5 + 97 + + 30 * - - MAX ( 95 ) + + + 80 AS col0
----
3422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2863
SELECT + 59 * COUNT( * ) + + CAST( NULL AS SIGNED ) + + + 76 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT + MAX( - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-2864
SELECT + MAX ( - 37 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2865
SELECT + NULLIF ( - + 93, + CAST( NULL AS SIGNED ) ) AS col0, - COUNT( * ) AS col0
----
-93
-1

skipif mysql # not compatible
query II rowsort label-2865
SELECT + NULLIF ( - + 93, + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( * ) AS col0
----
-93
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL - NULLIF ( - 49, + - 37 + - - CASE + 37 WHEN - - 43 THEN - 0 END + - 16 + - + 74 * - COUNT( * ) / 74 * + 5 + + - 63 ) * - 63 AS col1
----
-3087

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL - NULLIF ( - 49, + - 37 + - - CASE + 37 WHEN - - 43 THEN - 0 END + - 16 + - + 74 * - COUNT ( * ) / 74 * + 5 + + - 63 ) * - 63 AS col1
----
-3087

query I rowsort
SELECT ALL + ( 76 ) + + - 35
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT DISTINCT ( + - COUNT( * ) ) * + 35 + - + COALESCE ( + + 12, + - 7 ) + - + 23 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT ( + - COUNT ( * ) ) * + 35 + - + COALESCE ( + + 12, + - 7 ) + - + 23 AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT 55 * + - 79 * + - 30 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT 55 * + - 79 * + - 30 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2870
SELECT DISTINCT - 98 DIV + 98 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT - 98 / + 98 col2
----
-1

query I rowsort
SELECT + 46 * 23 - - 77 + + 34 - - 14
----
1183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2872
SELECT DISTINCT - COALESCE ( - 49, + 67 * + COALESCE ( + COUNT( * ), MIN( + + 94 ) DIV - COUNT( * ) + - 3 ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT - COALESCE ( - 49, + 67 * + COALESCE ( + COUNT ( * ), MIN ( + + 94 ) / - COUNT ( * ) + - 3 ) ) AS col1
----
49

query I rowsort
SELECT 80 * + 78 + - 33
----
6207

query I rowsort
SELECT 86 - + 8 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2875
SELECT DISTINCT - COUNT( * ) AS col0, + CAST( + 6 AS SIGNED ) - - - 62
----
-1
-56

skipif mysql # not compatible
query II rowsort label-2875
SELECT DISTINCT - COUNT ( * ) AS col0, + CAST ( + 6 AS INTEGER ) - - - 62
----
-1
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2876
SELECT 67 * - COALESCE ( - 21, 5 DIV - 82 + 87 + - + COUNT( * ) DIV - 81 )
----
1407

skipif mysql # not compatible
query I rowsort label-2876
SELECT 67 * - COALESCE ( - 21, 5 / - 82 + 87 + - + COUNT ( * ) / - 81 )
----
1407

query I rowsort
SELECT 79 * + - 62
----
-4898

query II rowsort
SELECT ALL 60 AS col2, + 62
----
60
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2879
SELECT ALL 62, SUM( DISTINCT - 53 ) * + COUNT( * ) AS col2
----
62
-53

skipif mysql # not compatible
query II rowsort label-2879
SELECT ALL 62, SUM ( DISTINCT - 53 ) * + COUNT ( * ) AS col2
----
62
-53

query I rowsort
SELECT DISTINCT - 27 * - - 50 AS col1
----
-1350

query II rowsort
SELECT 11, + 54 AS col2
----
11
54

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

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

query II rowsort
SELECT 94, - 38 * + 15 * + - ( + 71 ) AS col2
----
94
40470

query I rowsort
SELECT + 69 + + - 75 + 10 col0
----
4

query I rowsort
SELECT ALL - 65 + + + 40 AS col1
----
-25

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2887
SELECT ALL - + CAST( NULL AS DECIMAL ) + + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL - + CAST ( NULL AS REAL ) + + - 86
----
NULL

query I rowsort
SELECT ALL 61 * + - 48 AS col0
----
-2928

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

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

query I rowsort
SELECT 20 - + 9
----
11

query I rowsort
SELECT - 58 * 56
----
-3248

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2893
SELECT + 28 * + 12 + - 51 DIV 24 - + 14 AS col2
----
320

skipif mysql # not compatible
query I rowsort label-2893
SELECT + 28 * + 12 + - 51 / 24 - + 14 AS col2
----
320

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

query I rowsort
SELECT 40 + + + 48 AS col0
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL + MAX( ALL - 63 ) - 70 * + 99 + 16 + + 96 AS col1
----
-6881

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL + MAX ( ALL - 63 ) - 70 * + 99 + 16 + + 96 AS col1
----
-6881

query I rowsort
SELECT 89 * + 84 AS col0
----
7476

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT DISTINCT COUNT( * ) - + + 68 * + + 70 * + 27 * + + 12 AS col0
----
-1542239

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT COUNT ( * ) - + + 68 * + + 70 * + 27 * + + 12 AS col0
----
-1542239

query II rowsort
SELECT + 92 col0, ( - 11 )
----
92
-11

query I rowsort
SELECT 70 * + 91 AS col2
----
6370

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT DISTINCT 94 DIV + 63
----
1

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT 94 / + 63
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2904
SELECT 89 DIV COUNT( * ) col1, - MAX( + 40 ) AS col0
----
89
-40

skipif mysql # not compatible
query II rowsort label-2904
SELECT 89 / COUNT ( * ) col1, - MAX ( + 40 ) AS col0
----
89
-40

query I rowsort
SELECT 60 * 33 * - - 10 AS col1
----
19800

query I rowsort
SELECT 96 + + + 43
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-2907
SELECT ALL 29 * COUNT( * ) * - 36, 80 * CASE 6 WHEN + + 30 THEN NULL WHEN - 33 + - MAX( ALL ( 11 ) ) * + 13 THEN NULL WHEN + 92 THEN NULL ELSE + - 1 * + COUNT( * ) END AS col2
----
-1044
-80

skipif mysql # not compatible
query II rowsort label-2907
SELECT ALL 29 * COUNT ( * ) * - 36, 80 * CASE 6 WHEN + + 30 THEN NULL WHEN - 33 + - MAX ( ALL ( 11 ) ) * + 13 THEN NULL WHEN + 92 THEN NULL ELSE + - 1 * + COUNT ( * ) END AS col2
----
-1044
-80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + 60 * 45 - - - 20 * - - COUNT( * )
----
2680

skipif mysql # not compatible
query I rowsort label-2909
SELECT + 60 * 45 - - - 20 * - - COUNT ( * )
----
2680

query I rowsort
SELECT 85 + + - 8
----
77

query II rowsort
SELECT - 92 - 21 * + - COALESCE ( + + 11, 60, + + 8 * 73 ), 44 col2
----
139
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2912
SELECT DISTINCT - 78 * COUNT( * ) + - 38 col0, COALESCE ( - 62, - 54 )
----
-116
-62

skipif mysql # not compatible
query II rowsort label-2912
SELECT DISTINCT - 78 * COUNT ( * ) + - 38 col0, COALESCE ( - 62, - 54 )
----
-116
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL + + 59 + - + COUNT( * ) * + 84
----
-25

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + + 59 + - + COUNT ( * ) * + 84
----
-25

query I rowsort
SELECT ALL - - 88 * + 23 AS col0
----
2024

query I rowsort
SELECT - 19 + + + 34
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL - 84 * - + 30 - - + MIN( + 41 )
----
2561

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL - 84 * - + 30 - - + MIN ( + 41 )
----
2561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2917
SELECT - + CAST( NULL AS SIGNED ) + - 11 + - COUNT( * ) * + MAX( DISTINCT + 60 ) * - 20 + 79 + - CAST( - - ( CASE 21 WHEN 0 * - 91 + + 79 + - ( 37 ) * - 70 THEN + - 49 WHEN - 65 + + + 0 THEN - 54 END ) AS SIGNED ) * - MAX( + + ( - + 48 ) ) / + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT - + CAST ( NULL AS INTEGER ) + - 11 + - COUNT ( * ) * + MAX ( DISTINCT + 60 ) * - 20 + 79 + - CAST ( - - ( CASE 21 WHEN 0 * - 91 + + 79 + - ( 37 ) * - 70 THEN + - 49 WHEN - 65 + + + 0 THEN - 54 END ) AS INTEGER ) * - MAX ( + + ( - + 48 ) ) / + + 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2918
SELECT + + 99 - - 89 DIV + COUNT( * ) AS col0
----
188

skipif mysql # not compatible
query I rowsort label-2918
SELECT + + 99 - - 89 / + COUNT ( * ) AS col0
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT DISTINCT CASE - 32 WHEN 64 + + 19 THEN NULL WHEN 79 THEN NULL ELSE ( - + NULLIF ( - 0, + 39 ) ) * - + COUNT( * ) + 33 END
----
33

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT CASE - 32 WHEN 64 + + 19 THEN NULL WHEN 79 THEN NULL ELSE ( - + NULLIF ( - 0, + 39 ) ) * - + COUNT ( * ) + 33 END
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2920
SELECT - COUNT( 62 ), + 92 + - - 23 AS col2
----
-1
115

skipif mysql # not compatible
query II rowsort label-2920
SELECT - COUNT ( 62 ), + 92 + - - 23 AS col2
----
-1
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT + COUNT( * ) + - + 57
----
-56

skipif mysql # not compatible
query I rowsort label-2921
SELECT + COUNT ( * ) + - + 57
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT ALL + COUNT( 59 ) * 5
----
5

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + COUNT ( 59 ) * 5
----
5

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

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL + 41 / - COUNT ( * ) AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2924
SELECT - - ( - - 83 ) + - 95 + + - 7 DIV + COALESCE ( + MIN( ALL - 94 ), 30 )
----
-12

skipif mysql # not compatible
query I rowsort label-2924
SELECT - - ( - - 83 ) + - 95 + + - 7 / + COALESCE ( + MIN ( ALL - 94 ), 30 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2925
SELECT + 30 * + CAST( - 16 AS SIGNED ) * - COALESCE ( + 18, - + 98, COALESCE ( 45, - 81 ) - - 88 * 62 * - 52 ) * 11 * 16 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT + 30 * + CAST ( - 16 AS INTEGER ) * - COALESCE ( + 18, - + 98, COALESCE ( 45, - 81 ) - - 88 * 62 * - 52 ) * 11 * 16 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2926
SELECT + 76 * + ( + CAST( NULL AS SIGNED ) ) + - - 3 + CAST( - 83 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT + 76 * + ( + CAST ( NULL AS INTEGER ) ) + - - 3 + CAST ( - 83 AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT + SUM( ALL 32 ) + - 64 * - 11 AS col2
----
736

skipif mysql # not compatible
query I rowsort label-2927
SELECT + SUM ( ALL 32 ) + - 64 * - 11 AS col2
----
736

query I rowsort
SELECT ALL 88 * 99 * - 40 AS col1
----
-348480

query I rowsort
SELECT + 94 * - NULLIF ( 57, 83 ) AS col0
----
-5358

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2930
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT + CAST ( NULL AS REAL ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2932
SELECT ALL + 50 AS col1, - 82 * COUNT( - ( + 72 ) ) * + - 69 + - 72
----
50
5586

skipif mysql # not compatible
query II rowsort label-2932
SELECT ALL + 50 AS col1, - 82 * COUNT ( - ( + 72 ) ) * + - 69 + - 72
----
50
5586

query I rowsort
SELECT ( - 42 ) * 1 + + - 65
----
-107

query I rowsort
SELECT ALL 75 * - + 73 + + 68 AS col1
----
-5407

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT 82 * + COUNT( DISTINCT - + 86 ) * ( + + 1 ) - 60
----
22

skipif mysql # not compatible
query I rowsort label-2935
SELECT 82 * + COUNT ( DISTINCT - + 86 ) * ( + + 1 ) - 60
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT MIN( 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2936
SELECT MIN ( 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + 93 * COUNT( * ) + 57
----
150

skipif mysql # not compatible
query I rowsort label-2937
SELECT + 93 * COUNT ( * ) + 57
----
150

query I rowsort
SELECT + 34 + - 11 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL - 51 * + 31 + - 97 * - + 39 + COUNT( * ) + + + 28 AS col1
----
2231

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - 51 * + 31 + - 97 * - + 39 + COUNT ( * ) + + + 28 AS col1
----
2231

query I rowsort
SELECT - 10 + + 64
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2941
SELECT 82 * CAST( 27 AS SIGNED ) * - 21 + + - 70 * + - 39, + NULLIF ( 76, - COUNT( * ) * + + 18 + + - 17 - - 12 / + COUNT( * ) ) AS col0
----
-43764
76

skipif mysql # not compatible
query II rowsort label-2941
SELECT 82 * CAST ( 27 AS INTEGER ) * - 21 + + - 70 * + - 39, + NULLIF ( 76, - COUNT ( * ) * + + 18 + + - 17 - - 12 / + COUNT ( * ) ) AS col0
----
-43764
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2942
SELECT ALL CAST( NULL AS SIGNED ) * 19 + + CASE 41 WHEN - + 58 * + 34 + - COUNT( * ) + + - 40 THEN NULL ELSE + SUM( - 83 ) + - 55 * 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL CAST ( NULL AS INTEGER ) * 19 + + CASE 41 WHEN - + 58 * + 34 + - COUNT ( * ) + + - 40 THEN NULL ELSE + SUM ( - 83 ) + - 55 * 74 END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT + 90 + SUM( DISTINCT + 29 ) AS col2
----
119

skipif mysql # not compatible
query I rowsort label-2945
SELECT + 90 + SUM ( DISTINCT + 29 ) AS col2
----
119

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2946
SELECT + + 69 + - CASE MIN( 61 ) WHEN - NULLIF ( - - 21, - + 98 ) - - + ( - + 59 ) / + 72 - - + 67 * 70 THEN + 70 * + 5 + ( CAST( 20 AS DECIMAL ) ) WHEN + 26 + - COUNT( * ) * - + 22 THEN NULL END + + 65 / + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT + + 69 + - CASE MIN ( 61 ) WHEN - NULLIF ( - - 21, - + 98 ) - - + ( - + 59 ) / + 72 - - + 67 * 70 THEN + 70 * + 5 + ( CAST ( 20 AS REAL ) ) WHEN + 26 + - COUNT ( * ) * - + 22 THEN NULL END + + 65 / + 80
----
NULL

query I rowsort
SELECT ALL + - 24 + - 91
----
-115

query II rowsort
SELECT DISTINCT - 98 AS col0, + 55
----
-98
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - - 77 + + - COUNT( ALL + - ( - 95 ) )
----
76

skipif mysql # not compatible
query I rowsort label-2949
SELECT - - 77 + + - COUNT ( ALL + - ( - 95 ) )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2950
SELECT - NULLIF ( + CASE + - 96 WHEN + AVG ( + CASE 99 WHEN 65 THEN - + 34 END ) THEN NULL WHEN 32 THEN + 89 END, + SUM( 52 ) ) + + 42 * - 45, 23 AS col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-2950
SELECT - NULLIF ( + CASE + - 96 WHEN + AVG ( + CASE 99 WHEN 65 THEN - + 34 END ) THEN NULL WHEN 32 THEN + 89 END, + SUM ( 52 ) ) + + 42 * - 45, 23 AS col0
----
NULL
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2951
SELECT + 79 * - MIN( - 88 ) AS col0, COUNT( DISTINCT 18 )
----
6952
1

skipif mysql # not compatible
query II rowsort label-2951
SELECT + 79 * - MIN ( - 88 ) AS col0, COUNT ( DISTINCT 18 )
----
6952
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL + - SUM( DISTINCT + 0 ) * + + COUNT( * ) * + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL + - SUM ( DISTINCT + 0 ) * + + COUNT ( * ) * + 52 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2955
SELECT + CASE ( + + COALESCE ( - + 26, 99 * 4 * 69, - - COALESCE ( - + 51, 70 * MAX( + 1 ) * 70 ) + + + 21 ) ) WHEN - CAST( NULL AS SIGNED ) * - 47 * + - CASE + - 39 WHEN - + 17 THEN + 1 ELSE NULL END + + 76 THEN - + SUM( 68 ) ELSE + CASE COUNT( * ) WHEN - + MAX( ALL CAST( NULL AS SIGNED ) ) + - 97 THEN + + ( 9 ) ELSE - 57 * - 2 END END AS col0
----
114

skipif mysql # not compatible
query I rowsort label-2955
SELECT + CASE ( + + COALESCE ( - + 26, 99 * 4 * 69, - - COALESCE ( - + 51, 70 * MAX ( + 1 ) * 70 ) + + + 21 ) ) WHEN - CAST ( NULL AS INTEGER ) * - 47 * + - CASE + - 39 WHEN - + 17 THEN + 1 ELSE NULL END + + 76 THEN - + SUM ( 68 ) ELSE + CASE COUNT ( * ) WHEN - + MAX ( ALL CAST ( NULL AS INTEGER ) ) + - 97 THEN + + ( 9 ) ELSE - 57 * - 2 END END AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT - - 51 * + MAX( DISTINCT + 50 )
----
2550

skipif mysql # not compatible
query I rowsort label-2956
SELECT - - 51 * + MAX ( DISTINCT + 50 )
----
2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2957
SELECT DISTINCT + ( + ( + - 38 ) ) * - CASE + 52 WHEN + + COUNT( * ) THEN - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT + ( + ( + - 38 ) ) * - CASE + 52 WHEN + + COUNT ( * ) THEN - + CAST ( NULL AS INTEGER ) END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT - - NULLIF ( - MIN( - - 20 ), - - 53 )
----
-20

skipif mysql # not compatible
query I rowsort label-2959
SELECT - - NULLIF ( - MIN ( - - 20 ), - - 53 )
----
-20

query I rowsort
SELECT ALL + - 77 * - 32 AS col2
----
2464

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2961
SELECT - - 32 - 28 * CASE + CAST( + 81 AS DECIMAL ) WHEN - 74 * + COUNT( * ) THEN NULL WHEN + 58 THEN 87 / - COUNT( * ) ELSE CASE + MIN( + 8 ) WHEN + 45 * + + NULLIF ( + 82, - - COUNT( * ) * 5 * - + COUNT( * ) + - ( - 60 ) / - ( - 90 ) ) THEN + 69 ELSE NULL END * - 98 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT - - 32 - 28 * CASE + CAST ( + 81 AS REAL ) WHEN - 74 * + COUNT ( * ) THEN NULL WHEN + 58 THEN 87 / - COUNT ( * ) ELSE CASE + MIN ( + 8 ) WHEN + 45 * + + NULLIF ( + 82, - - COUNT ( * ) * 5 * - + COUNT ( * ) + - ( - 60 ) / - ( - 90 ) ) THEN + 69 ELSE NULL END * - 98 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT - CASE - COUNT( * ) WHEN - + 6 THEN NULL ELSE - 3 END DIV - 98 * + 33 - - 79 + - - 60 - - 72 * - 41 * + + 54
----
-159269

skipif mysql # not compatible
query I rowsort label-2962
SELECT - CASE - COUNT ( * ) WHEN - + 6 THEN NULL ELSE - 3 END / - 98 * + 33 - - 79 + - - 60 - - 72 * - 41 * + + 54
----
-159269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2963
SELECT DISTINCT COUNT( * ) DIV - MAX( - 8 ) + 71
----
71

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT COUNT ( * ) / - MAX ( - 8 ) + 71
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2964
SELECT DISTINCT + NULLIF ( 19, - + 3 + + CAST( NULL AS DECIMAL ) * 8 )
----
19

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT + NULLIF ( 19, - + 3 + + CAST ( NULL AS REAL ) * 8 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2965
SELECT DISTINCT - 17 DIV 5 + - MAX( DISTINCT - - 67 )
----
-70

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT - 17 / 5 + - MAX ( DISTINCT - - 67 )
----
-70

query II rowsort
SELECT ALL + ( 6 ) AS col1, 57 + 68 AS col0
----
6
125

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT DISTINCT 71 DIV 91 + - + 93 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT 71 / 91 + - + 93 AS col2
----
-93

query I rowsort
SELECT + NULLIF ( - - 37, 35 ) AS col1
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT - 28 DIV ( + - 13 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2969
SELECT - 28 / ( + - 13 ) AS col0
----
2

query I rowsort
SELECT 86 * - 41 + 68 + + 61 - + 91
----
-3488

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT ALL - 7 DIV + + 32 + - 25 col2
----
-25

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL - 7 / + + 32 + - 25 col2
----
-25

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

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

query I rowsort
SELECT + 11 * 58
----
638

query I rowsort
SELECT + NULLIF ( + - 39, 1 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2975
SELECT ALL - 51 + 21 AS col0, + CAST( ( COUNT( DISTINCT + 10 ) ) AS SIGNED )
----
-30
1

skipif mysql # not compatible
query II rowsort label-2975
SELECT ALL - 51 + 21 AS col0, + CAST ( ( COUNT ( DISTINCT + 10 ) ) AS INTEGER )
----
-30
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2976
SELECT DISTINCT - CAST( + + 50 AS SIGNED ), 2 AS col2
----
-50
2

skipif mysql # not compatible
query II rowsort label-2976
SELECT DISTINCT - CAST ( + + 50 AS INTEGER ), 2 AS col2
----
-50
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL + COUNT( * ) * + 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL + COUNT ( * ) * + 96 AS col2
----
96

query I rowsort
SELECT - 10 * 29 AS col2
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT - MAX( 28 ) + - + 82
----
-110

skipif mysql # not compatible
query I rowsort label-2979
SELECT - MAX ( 28 ) + - + 82
----
-110

query I rowsort
SELECT ALL ( 79 ) * + + 49
----
3871

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2981
SELECT + 77 * - 3 * - 7 * 14 - - 41 - - SUM( - 12 ) DIV - + 34 + + 44 + - - 3 DIV + - ( - 33 ) - + - 80 * - + 29 AS col0, + COUNT( * ) + + - 91
----
20403
-90

skipif mysql # not compatible
query II rowsort label-2981
SELECT + 77 * - 3 * - 7 * 14 - - 41 - - SUM ( - 12 ) / - + 34 + + 44 + - - 3 / + - ( - 33 ) - + - 80 * - + 29 AS col0, + COUNT ( * ) + + - 91
----
20403
-90

query I rowsort
SELECT DISTINCT - 35 * + 89
----
-3115

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

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

query I rowsort
SELECT DISTINCT 83 * + 57 * 44
----
208164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT - CASE + + 97 WHEN ( - ( - 75 ) ) THEN - 20 WHEN CAST( NULL AS SIGNED ) THEN CAST( NULL AS SIGNED ) ELSE NULL END * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT - CASE + + 97 WHEN ( - ( - 75 ) ) THEN - 20 WHEN CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END * 91
----
NULL

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

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

query II rowsort
SELECT - 53 - + + 10 AS col2, - 30 col1
----
-63
-30

query II rowsort
SELECT + 62 * + 20, 67 AS col2
----
1240
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT - COUNT( 99 ) + - 37 + - SUM( - 93 ) * - - 91 AS col0
----
8425

skipif mysql # not compatible
query I rowsort label-2989
SELECT - COUNT ( 99 ) + - 37 + - SUM ( - 93 ) * - - 91 AS col0
----
8425

query I rowsort
SELECT ALL - 53 + 5 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT ALL + MIN( - 80 ) + - + 42 AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL + MIN ( - 80 ) + - + 42 AS col0
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT CAST( + 39 AS SIGNED ) + + + 60 - 52 col2
----
47

skipif mysql # not compatible
query I rowsort label-2992
SELECT CAST ( + 39 AS INTEGER ) + + + 60 - 52 col2
----
47

query I rowsort
SELECT 86 * + - 79 col0
----
-6794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2994
SELECT SUM( ALL + 40 ) DIV - 24 + - 10
----
-11

skipif mysql # not compatible
query I rowsort label-2994
SELECT SUM ( ALL + 40 ) / - 24 + - 10
----
-11

query I rowsort
SELECT ALL 71 + NULLIF ( + - 21, 85 ) AS col2
----
50

query I rowsort
SELECT ALL + 63 * 19
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT DISTINCT + SUM( + - 84 ) + + 46 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT + SUM ( + - 84 ) + + 46 AS col2
----
-38

query I rowsort
SELECT 91 * 25 + 13
----
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL - ( MIN( DISTINCT - 71 ) ) col2
----
71

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL - ( MIN ( DISTINCT - 71 ) ) col2
----
71

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

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

query I rowsort
SELECT 11 + - 68 * - 27 AS col1
----
1847

query I rowsort
SELECT DISTINCT + 19 + 24
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT 92 * 39 + - 29 * ( SUM( DISTINCT 94 ) ) + COUNT( * ) AS col1
----
863

skipif mysql # not compatible
query I rowsort label-3003
SELECT 92 * 39 + - 29 * ( SUM ( DISTINCT 94 ) ) + COUNT ( * ) AS col1
----
863

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

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

query I rowsort
SELECT ALL - CASE WHEN + 72 IS NOT NULL THEN - - 77 + + 73 * - 15 + + + 45 ELSE NULL END col0
----
973

query I rowsort
SELECT 39 * + 63
----
2457

query I rowsort
SELECT + 95 + - - 15
----
110

query I rowsort
SELECT DISTINCT - + 40 * - 36 AS col2
----
1440

query I rowsort
SELECT + 8 + + - 34 * + 5 col1
----
-162

query II rowsort
SELECT ( 14 ) * + + 95 AS col1, 60
----
1330
60

query I rowsort
SELECT + 75 + 3 AS col1
----
78

query I rowsort
SELECT ALL + 95 * + - 54
----
-5130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3013
SELECT 10 + - + CAST( - ( - - 11 ) AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-3013
SELECT 10 + - + CAST ( - ( - - 11 ) AS INTEGER )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3014
SELECT - ( NULLIF ( + CAST( NULL AS SIGNED ), - 80 ) ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3014
SELECT - ( NULLIF ( + CAST ( NULL AS INTEGER ), - 80 ) ) * 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT + 24 + 38 * ( CASE + - COUNT( * ) WHEN + COUNT( * ) - 90 THEN - - 47 ELSE NULL END ) / - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT + 24 + 38 * ( CASE + - COUNT ( * ) WHEN + COUNT ( * ) - 90 THEN - - 47 ELSE NULL END ) / - 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT MAX( DISTINCT ( - 65 ) ) + - - 85
----
20

skipif mysql # not compatible
query I rowsort label-3016
SELECT MAX ( DISTINCT ( - 65 ) ) + - - 85
----
20

query I rowsort
SELECT 10 * + 99 + 56 + + 66 + - 23 + - + ( 88 )
----
1001

query I rowsort
SELECT DISTINCT 16 + + ( - 18 ) * - 20
----
376

query I rowsort
SELECT ALL + 29 + + - 71 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + MIN( + + ( 61 ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3020
SELECT + MIN ( + + ( 61 ) ) AS col2
----
61

query I rowsort
SELECT ALL 77 * - - 16 AS col0
----
1232

query I rowsort
SELECT DISTINCT 36 + + 10
----
46

query II rowsort
SELECT 80 col1, + 30
----
80
30

query I rowsort
SELECT ALL 30 + 86 AS col2
----
116

query I rowsort
SELECT 70 - 97
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT CASE 81 WHEN 57 + - 85 - CAST( NULL AS SIGNED ) * - AVG ( ALL - 30 ) * - - 50 THEN 12 END - + 44 + + - 32 * + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT CASE 81 WHEN 57 + - 85 - CAST ( NULL AS INTEGER ) * - AVG ( ALL - 30 ) * - - 50 THEN 12 END - + 44 + + - 32 * + 16 AS col1
----
NULL

query II rowsort
SELECT 96 AS col0, - 49 col1
----
96
-49

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3029
SELECT 66 AS col1, 36 - + - 29 + - 23 DIV + COALESCE ( + 17, - - 12 * 81, 69 + - - 95 )
----
66
64

skipif mysql # not compatible
query II rowsort label-3029
SELECT 66 AS col1, 36 - + - 29 + - 23 / + COALESCE ( + 17, - - 12 * 81, 69 + - - 95 )
----
66
64

query I rowsort
SELECT 21 + - - 23 + COALESCE ( + - 37, - 39, + 94 + 74 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3031
SELECT + COUNT( * ) AS col2, + COALESCE ( 92, - 7 * + COUNT( * ), - 89 + - - 61 )
----
1
92

skipif mysql # not compatible
query II rowsort label-3031
SELECT + COUNT ( * ) AS col2, + COALESCE ( 92, - 7 * + COUNT ( * ), - 89 + - - 61 )
----
1
92

query I rowsort
SELECT 30 + + 7 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT + 58 - COUNT( * ) * + - 46 * + COALESCE ( - 0, COALESCE ( - COUNT( * ), - 98 ), 91 * - + 48, - SUM( 77 ) - + 61 + - 41 * + 29 )
----
58

skipif mysql # not compatible
query I rowsort label-3033
SELECT + 58 - COUNT ( * ) * + - 46 * + COALESCE ( - 0, COALESCE ( - COUNT ( * ), - 98 ), 91 * - + 48, - SUM ( 77 ) - + 61 + - 41 * + 29 )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3034
SELECT DISTINCT + 53, - ( 75 ) * + 36 + - - 79 * - + 70 - + 90 * + + MIN( 28 ) + - 3 * - - 43 AS col1
----
53
-10879

skipif mysql # not compatible
query II rowsort label-3034
SELECT DISTINCT + 53, - ( 75 ) * + 36 + - - 79 * - + 70 - + 90 * + + MIN ( 28 ) + - 3 * - - 43 AS col1
----
53
-10879

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL - NULLIF ( 98, COUNT( * ) * + NULLIF ( - 53, 64 ) ) * - + 71 AS col2
----
6958

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL - NULLIF ( 98, COUNT ( * ) * + NULLIF ( - 53, 64 ) ) * - + 71 AS col2
----
6958

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3036
SELECT NULLIF ( - 81, + 88 * + 73 ) AS col1, - ( ( + CAST( NULL AS SIGNED ) ) ) + + 22 * - 33 * 54
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-3036
SELECT NULLIF ( - 81, + 88 * + 73 ) AS col1, - ( ( + CAST ( NULL AS INTEGER ) ) ) + + 22 * - 33 * 54
----
-81
NULL

query I rowsort
SELECT ALL - 59 * - - 22 - + 45 + 6 * + 91
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT + CASE - + 66 WHEN + COALESCE ( - COUNT( * ), + 21 + + 41 + 62 + + 38 ) THEN - - 46 - + 29 / - 36 + 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT + CASE - + 66 WHEN + COALESCE ( - COUNT ( * ), + 21 + + 41 + 62 + + 38 ) THEN - - 46 - + 29 / - 36 + 41 ELSE NULL END
----
NULL

query I rowsort
SELECT + 98 + ( - - 48 ) AS col0
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT - 4 * - COALESCE ( ( - 47 ), + CAST( NULL AS SIGNED ) * - 48 + + 56 * + 72 )
----
-188

skipif mysql # not compatible
query I rowsort label-3040
SELECT - 4 * - COALESCE ( ( - 47 ), + CAST ( NULL AS INTEGER ) * - 48 + + 56 * + 72 )
----
-188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT MAX( + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-3042
SELECT MAX ( + 80 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3043
SELECT - + ( + + 31 ) - + ( 74 ) col1, + 24 - + CAST( + CAST( + 86 AS SIGNED ) AS SIGNED ) col0
----
-105
-62

skipif mysql # not compatible
query II rowsort label-3043
SELECT - + ( + + 31 ) - + ( 74 ) col1, + 24 - + CAST ( + CAST ( + 86 AS INTEGER ) AS INTEGER ) col0
----
-105
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT - + 46 * - - 18 + + 10 - + + COUNT( * ) * - 75 AS col0
----
-743

skipif mysql # not compatible
query I rowsort label-3044
SELECT - + 46 * - - 18 + + 10 - + + COUNT ( * ) * - 75 AS col0
----
-743

onlyif mysql # aggregate syntax: 
query II rowsort label-3045
SELECT + + 32 AS col1, COUNT( * ) + + - ( 16 ) AS col2
----
32
-15

skipif mysql # not compatible
query II rowsort label-3045
SELECT + + 32 AS col1, COUNT ( * ) + + - ( 16 ) AS col2
----
32
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3046
SELECT 92, + MAX( 98 ) col1
----
92
98

skipif mysql # not compatible
query II rowsort label-3046
SELECT 92, + MAX ( 98 ) col1
----
92
98

query I rowsort
SELECT ALL - + 62 * + 85
----
-5270

query I rowsort
SELECT + - 69 + 40
----
-29

query I rowsort
SELECT ALL + COALESCE ( + 91, + 71, - 27 ) * + 52 AS col0
----
4732

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

query I rowsort
SELECT - - 13 * + + 90 AS col0
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT + COUNT( + 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3052
SELECT + COUNT ( + 75 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT ALL - - 57 + - 83 DIV - 41
----
59

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL - - 57 + - 83 / - 41
----
59

query I rowsort
SELECT - 88 + 23
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT DISTINCT - + CASE - + 8 WHEN - + 44 / - 49 * 16 + + 90 + COUNT( * ) THEN + - 72 END * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - + CASE - + 8 WHEN - + 44 / - 49 * 16 + + 90 + COUNT ( * ) THEN + - 72 END * - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT + - 28 + - COUNT( * ) + 71
----
42

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT + - 28 + - COUNT ( * ) + 71
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3057
SELECT + CAST( NULL AS SIGNED ) + SUM( DISTINCT 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT + CAST ( NULL AS INTEGER ) + SUM ( DISTINCT 70 )
----
NULL

query I rowsort
SELECT - COALESCE ( - 42, 94 * - 7 ) + - + ( + 33 ) AS col1
----
9

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

skipif mysql # not compatible
query I rowsort label-3059
SELECT - 12 + + 83 + + COUNT ( * ) AS col1
----
72

query I rowsort
SELECT + 18 - 42 + - 73 - - 87 * + 49 AS col0
----
4166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT - CAST( + 94 AS SIGNED ) + - - 1 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3061
SELECT - CAST ( + 94 AS INTEGER ) + - - 1 AS col1
----
-93

query I rowsort
SELECT + 94 - - + 16 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT - ( - CASE + 5 WHEN + - ( 57 ) + - COUNT( * ) THEN COUNT( * ) / - + ( + - 71 ) - + + 39 WHEN - 9 + + 2 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT - ( - CASE + 5 WHEN + - ( 57 ) + - COUNT ( * ) THEN COUNT ( * ) / - + ( + - 71 ) - + + 39 WHEN - 9 + + 2 THEN NULL END )
----
NULL

query I rowsort
SELECT + 70 + + - 95 * - 92
----
8810

query I rowsort
SELECT + 82 * + 90 AS col2
----
7380

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL ( - COALESCE ( + + 23, - COUNT( * ), - 27, + 99 + + 58 * + 34 ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL ( - COALESCE ( + + 23, - COUNT ( * ), - 27, + 99 + + 58 * + 34 ) ) AS col2
----
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT + 58 + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3068
SELECT + 58 + COUNT ( * ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3069
SELECT DISTINCT - 46 * 62 AS col1, 54 * CASE 9 WHEN + NULLIF ( - - 87, 56 - + 3 ) * CAST( + 2 AS SIGNED ) * - CAST( NULL AS DECIMAL ) + + - SUM( DISTINCT + 17 ) + + 82 + + + 21 - 67 + - 98 * CASE + 93 WHEN - - 56 THEN NULL WHEN + 81 + - COUNT( * ) + + 77 + + - COUNT( * ) THEN + 95 END * + ( - 13 ) THEN - 92 END AS col0
----
-2852
NULL

skipif mysql # not compatible
query II rowsort label-3069
SELECT DISTINCT - 46 * 62 AS col1, 54 * CASE 9 WHEN + NULLIF ( - - 87, 56 - + 3 ) * CAST ( + 2 AS INTEGER ) * - CAST ( NULL AS REAL ) + + - SUM ( DISTINCT + 17 ) + + 82 + + + 21 - 67 + - 98 * CASE + 93 WHEN - - 56 THEN NULL WHEN + 81 + - COUNT ( * ) + + 77 + + - COUNT ( * ) THEN + 95 END * + ( - 13 ) THEN - 92 END AS col0
----
-2852
NULL

query I rowsort
SELECT + 34 + + 32 col0
----
66

query I rowsort
SELECT + 52 * + 34 * 48 col0
----
84864

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT + CASE - 98 WHEN - 58 THEN NULL WHEN + COUNT( * ) + COUNT( * ) THEN - NULLIF ( 92, + + 73 ) + 13 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT + CASE - 98 WHEN - 58 THEN NULL WHEN + COUNT ( * ) + COUNT ( * ) THEN - NULLIF ( 92, + + 73 ) + 13 ELSE NULL END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3073
SELECT + COUNT ( * ) / 84 * 30 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-3074
SELECT - 1 / + 40 + - + ( COUNT ( * ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT + 77 DIV + 57 + + 16
----
17

skipif mysql # not compatible
query I rowsort label-3075
SELECT + 77 / + 57 + + 16
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT + 34 / - - CAST( NULL AS SIGNED ) - 10 + 29 * 4 * - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT + 34 / - - CAST ( NULL AS INTEGER ) - 10 + 29 * 4 * - 88 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3077
SELECT + - 58 + + + 69, - 39 * - - COALESCE ( CAST( + 6 AS SIGNED ), - 50 ) AS col1
----
11
-234

skipif mysql # not compatible
query II rowsort label-3077
SELECT + - 58 + + + 69, - 39 * - - COALESCE ( CAST ( + 6 AS INTEGER ), - 50 ) AS col1
----
11
-234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3078
SELECT ALL - - CAST( NULL AS SIGNED ) * + - CAST( + 70 AS SIGNED ) + 62 + 64 * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - - CAST ( NULL AS INTEGER ) * + - CAST ( + 70 AS INTEGER ) + 62 + 64 * - 31
----
NULL

query II rowsort
SELECT + + 92 * + 44 + + 29 + + 18 + - + 86 AS col1, + 13
----
4009
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3080
SELECT + CASE - 16 WHEN + CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) THEN + ( + 98 ) + + COALESCE ( + ( - 89 ), + COUNT( * ) ) ELSE + + 39 END AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3080
SELECT + CASE - 16 WHEN + CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) THEN + ( + 98 ) + + COALESCE ( + ( - 89 ), + COUNT ( * ) ) ELSE + + 39 END AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT - + COUNT( * ) * 87 + ( 78 )
----
-9

skipif mysql # not compatible
query I rowsort label-3081
SELECT - + COUNT ( * ) * 87 + ( 78 )
----
-9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3083
SELECT ALL + COALESCE ( + + 75, 98, - 36 + - 4 ) AS col0, + COUNT( * ) AS col1
----
75
1

skipif mysql # not compatible
query II rowsort label-3083
SELECT ALL + COALESCE ( + + 75, 98, - 36 + - 4 ) AS col0, + COUNT ( * ) AS col1
----
75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT DISTINCT ( - CASE + - COUNT( * ) WHEN + 91 - + 46 THEN 95 * 11 * - 91 END ) * + 32 * - - MIN( + - 57 ) + - MAX( DISTINCT 41 ) + - + ( - + 32 ) / - CASE - 44 WHEN - - 43 THEN + + 48 ELSE ( - 87 ) + + - 25 END + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT ( - CASE + - COUNT ( * ) WHEN + 91 - + 46 THEN 95 * 11 * - 91 END ) * + 32 * - - MIN ( + - 57 ) + - MAX ( DISTINCT 41 ) + - + ( - + 32 ) / - CASE - 44 WHEN - - 43 THEN + + 48 ELSE ( - 87 ) + + - 25 END + + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT + - 98 * COUNT( * ) + - 66 AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-3085
SELECT + - 98 * COUNT ( * ) + - 66 AS col0
----
-164

query I rowsort
SELECT ALL NULLIF ( 9, + 31 ) * 32 + - 26 AS col1
----
262

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT + COALESCE ( - 91, + - 48 * - + COUNT( * ), - 9, - 22 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT + COALESCE ( - 91, + - 48 * - + COUNT ( * ), - 9, - 22 ) AS col0
----
-91

query I rowsort
SELECT DISTINCT 76 * + + 61 + + - 88 * ( + + 64 )
----
-996

onlyif mysql # DIV for integer division: 
query II rowsort label-3089
SELECT ALL + 13 DIV 23 col0, - 45 AS col2
----
0
-45

skipif mysql # not compatible
query II rowsort label-3089
SELECT ALL + 13 / 23 col0, - 45 AS col2
----
0
-45

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3091
SELECT ALL ( ( + + COUNT( * ) ) ) AS col2, - CASE 68 WHEN + + CAST( NULL AS SIGNED ) + - 93 THEN + 3 WHEN + + 29 / COALESCE ( - + CAST( NULL AS SIGNED ), ( + COUNT( * ) ), - + 8 + - + 10 ) THEN NULL END * + 43 + - + NULLIF ( - - 11, - 36 * + 13 ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3091
SELECT ALL ( ( + + COUNT ( * ) ) ) AS col2, - CASE 68 WHEN + + CAST ( NULL AS INTEGER ) + - 93 THEN + 3 WHEN + + 29 / COALESCE ( - + CAST ( NULL AS INTEGER ), ( + COUNT ( * ) ), - + 8 + - + 10 ) THEN NULL END * + 43 + - + NULLIF ( - - 11, - 36 * + 13 ) AS col0
----
1
NULL

query I rowsort
SELECT - 18 + + - 6 AS col1
----
-24

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

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

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

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT + 23 - COUNT ( * ) AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT ALL + NULLIF ( 33, - COALESCE ( - + NULLIF ( - ( - 93 ), - - 76 + - 91 ), CAST( NULL AS SIGNED ), + + 54 / - 43 ) ) - 26 * - 48 * - + 20 col0
----
-24927

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL + NULLIF ( 33, - COALESCE ( - + NULLIF ( - ( - 93 ), - - 76 + - 91 ), CAST ( NULL AS INTEGER ), + + 54 / - 43 ) ) - 26 * - 48 * - + 20 col0
----
-24927

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

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

query I rowsort
SELECT DISTINCT + 23 * + 63
----
1449

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT 20 + 84 DIV 77 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3098
SELECT 20 + 84 / 77 AS col1
----
21

query I rowsort
SELECT ALL + 5 - + 86 AS col1
----
-81

query II rowsort
SELECT 42 AS col0, - 27 AS col1
----
42
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT 4 - + COALESCE ( 79, + + 46 ) + + 37 * + 0 col1, 27 * - + SUM( - 77 ) AS col2
----
-75
2079

skipif mysql # not compatible
query II rowsort label-3101
SELECT 4 - + COALESCE ( 79, + + 46 ) + + 37 * + 0 col1, 27 * - + SUM ( - 77 ) AS col2
----
-75
2079

query I rowsort
SELECT 40 * 60
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT 14 - COUNT( * ) + + COUNT( * ) + + 35 * - + SUM( ( + 63 ) ) * + 83
----
-183001

skipif mysql # not compatible
query I rowsort label-3103
SELECT 14 - COUNT ( * ) + + COUNT ( * ) + + 35 * - + SUM ( ( + 63 ) ) * + 83
----
-183001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT 55 + ( - CASE + - CAST( - 28 AS SIGNED ) WHEN 30 THEN 94 END ) - - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT 55 + ( - CASE + - CAST ( - 28 AS INTEGER ) WHEN 30 THEN 94 END ) - - - 39
----
NULL

query I rowsort
SELECT 29 * + + 24
----
696

query II rowsort
SELECT ALL - 4 AS col1, - 23 * + 57
----
-4
-1311

query I rowsort
SELECT DISTINCT 21 * + 62 col2
----
1302

query I rowsort
SELECT DISTINCT + 15 + + - 26 AS col2
----
-11

query I rowsort
SELECT 85 - - 71
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT COUNT( * ) * MIN( DISTINCT 76 ) * + 26 * - 24
----
-47424

skipif mysql # not compatible
query I rowsort label-3110
SELECT COUNT ( * ) * MIN ( DISTINCT 76 ) * + 26 * - 24
----
-47424

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL + + 53 + - SUM( ALL + 75 ) + 11 + COUNT( * ) * + 16
----
5

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + + 53 + - SUM ( ALL + 75 ) + 11 + COUNT ( * ) * + 16
----
5

query I rowsort
SELECT - ( - 40 ) col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3113
SELECT + + 49 AS col0, + 52 + + 60 * + COUNT( * )
----
49
112

skipif mysql # not compatible
query II rowsort label-3113
SELECT + + 49 AS col0, + 52 + + 60 * + COUNT ( * )
----
49
112

onlyif mysql # aggregate syntax: 
query II rowsort label-3114
SELECT 84, COUNT( * ) - + 40 AS col0
----
84
-39

skipif mysql # not compatible
query II rowsort label-3114
SELECT 84, COUNT ( * ) - + 40 AS col0
----
84
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT ALL COUNT( * ) + - 65 * - 70 AS col2
----
4551

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL COUNT ( * ) + - 65 * - 70 AS col2
----
4551

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT - MIN( DISTINCT - 6 ) * - - 80 AS col2
----
480

skipif mysql # not compatible
query I rowsort label-3116
SELECT - MIN ( DISTINCT - 6 ) * - - 80 AS col2
----
480

query I rowsort
SELECT ALL - 66 + + 75 * - 77 + - 51 AS col2
----
-5892

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3118
SELECT - 4 DIV + SUM( + 77 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3118
SELECT - 4 / + SUM ( + 77 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3119
SELECT DISTINCT - 75 DIV - 83 col0
----
0

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT - 75 / - 83 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT COALESCE ( + 17, 19 + - 91 ) + - + MIN( DISTINCT + 77 ) + + 20 * 87 AS col2
----
1680

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT COALESCE ( + 17, 19 + - 91 ) + - + MIN ( DISTINCT + 77 ) + + 20 * 87 AS col2
----
1680

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

query II rowsort
SELECT DISTINCT - + 45 AS col1, - 43
----
-45
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3123
SELECT - CAST( - SUM( DISTINCT - + ( + - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) * + - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT - CAST ( - SUM ( DISTINCT - + ( + - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) * + - 62 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 63 * 15 * + + ( + 97 ) + - + 26 AS col2
----
91639

query I rowsort
SELECT - 37 + - + 7
----
-44

query I rowsort
SELECT ALL NULLIF ( + 43, + - 6 ) - + 40 col0
----
3

query I rowsort
SELECT 98 + 44
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-3128
SELECT 5 + + COUNT( * ), + 25 AS col1
----
6
25

skipif mysql # not compatible
query II rowsort label-3128
SELECT 5 + + COUNT ( * ), + 25 AS col1
----
6
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL COUNT( * ) * 58 * + - CASE + 31 WHEN - 11 THEN + 57 + - + 86 ELSE - - 57 END * + 68 * 88 * + - 14 AS col2
----
276963456

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL COUNT ( * ) * 58 * + - CASE + 31 WHEN - 11 THEN + 57 + - + 86 ELSE - - 57 END * + 68 * 88 * + - 14 AS col2
----
276963456

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

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

query I rowsort
SELECT 24 + + + 38 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3132
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + - MAX( 71 ), NULLIF ( - COUNT( * ), - CAST( 33 AS SIGNED ) ) col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3132
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + - MAX ( 71 ), NULLIF ( - COUNT ( * ), - CAST ( 33 AS INTEGER ) ) col0
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3133
SELECT 40 DIV 60 * + COUNT( * ) DIV + 64, + MIN( + - 23 ) AS col0
----
0
-23

skipif mysql # not compatible
query II rowsort label-3133
SELECT 40 / 60 * + COUNT ( * ) / + 64, + MIN ( + - 23 ) AS col0
----
0
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT ALL + 1 DIV 93 * 88
----
0

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + 1 / 93 * 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - MAX( - 15 )
----
15

skipif mysql # not compatible
query I rowsort label-3135
SELECT - MAX ( - 15 )
----
15

query I rowsort
SELECT 23 + - 35 * + 92 AS col0
----
-3197

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT 30 DIV - - 98 * 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3137
SELECT 30 / - - 98 * 13 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT 65 DIV - 24 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3138
SELECT 65 / - 24 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT ALL MIN( + 85 ) + + 97 AS col0
----
182

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL MIN ( + 85 ) + + 97 AS col0
----
182

query I rowsort
SELECT ALL + 2 + + 16 * + 53 AS col1
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT + 84 + + + 13 + - 20 - - 7 + + COUNT( * ) * + 51 + + + 33 + - 37
----
131

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT + 84 + + + 13 + - 20 - - 7 + + COUNT ( * ) * + 51 + + + 33 + - 37
----
131

query II rowsort
SELECT 58 + - - 56, 33 * + + ( 48 ) AS col1
----
114
1584

onlyif mysql # aggregate syntax: 
query II rowsort label-3143
SELECT 30 * COUNT( * ) AS col2, 7
----
30
7

skipif mysql # not compatible
query II rowsort label-3143
SELECT 30 * COUNT ( * ) AS col2, 7
----
30
7

query II rowsort
SELECT ( - 64 ) * 54 + + 75 AS col0, - 89 AS col2
----
-3381
-89

query I rowsort
SELECT 79 * - + 46 AS col1
----
-3634

query I rowsort
SELECT ALL - 40 * + 38 + - 68
----
-1588

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT + COALESCE ( + COUNT( - - ( 19 ) ), - 95, + + 49 * 2 + - + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-3147
SELECT + COALESCE ( + COUNT ( - - ( 19 ) ), - 95, + + 49 * 2 + - + 34 )
----
1

query I rowsort
SELECT 33 + 31 + - 52 AS col0
----
12

query II rowsort
SELECT ALL - 11 * 93 * - 67 + - ( + 47 ) AS col0, ( - 29 )
----
68494
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3150
SELECT ALL ( COUNT( * ) ) - + 28 + - 13 DIV + - ( - 8 ) + COUNT( DISTINCT - 1 )
----
-27

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL ( COUNT ( * ) ) - + 28 + - 13 / + - ( - 8 ) + COUNT ( DISTINCT - 1 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3151
SELECT 91 / + - COUNT( * ) * + 69 + + - NULLIF ( CASE + 30 WHEN + 69 * - ( - 8 ) THEN NULL WHEN + 33 * 73 THEN - 12 - - + 11 ELSE NULL END, - CAST( NULL AS SIGNED ) * - COUNT( * ) ) + - - 13 + - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT 91 / + - COUNT ( * ) * + 69 + + - NULLIF ( CASE + 30 WHEN + 69 * - ( - 8 ) THEN NULL WHEN + 33 * 73 THEN - 12 - - + 11 ELSE NULL END, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) + - - 13 + - ( - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT 12 DIV + 16 + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-3152
SELECT 12 / + 16 + - 6
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3153
SELECT + - 25 + + 61 * - + CASE + - CAST( - - ( - ( + COUNT( * ) ) ) AS SIGNED ) WHEN + - 40 * - 94 * - NULLIF ( + - 66, ( - 39 ) ) THEN COUNT( * ) + + + 56 WHEN CAST( NULL AS DECIMAL ) * COUNT( DISTINCT + + 96 ) - 6 THEN NULL WHEN - + 61 * - MIN( ALL 53 ) / - 39 * - 71 - - 13 THEN 13 ELSE NULL END + 37 + - 46 + SUM( DISTINCT 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3153
SELECT + - 25 + + 61 * - + CASE + - CAST ( - - ( - ( + COUNT ( * ) ) ) AS INTEGER ) WHEN + - 40 * - 94 * - NULLIF ( + - 66, ( - 39 ) ) THEN COUNT ( * ) + + + 56 WHEN CAST ( NULL AS REAL ) * COUNT ( DISTINCT + + 96 ) - 6 THEN NULL WHEN - + 61 * - MIN ( ALL 53 ) / - 39 * - 71 - - 13 THEN 13 ELSE NULL END + 37 + - 46 + SUM ( DISTINCT 85 ) AS col0
----
NULL

query I rowsort
SELECT ALL + ( 66 ) - 64 + + 62 * 58
----
3598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3155
SELECT + + 13 DIV + COUNT( + 2 )
----
13

skipif mysql # not compatible
query I rowsort label-3155
SELECT + + 13 / + COUNT ( + 2 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3156
SELECT 54 col0, 69 + - + COUNT( * ) AS col1
----
54
68

skipif mysql # not compatible
query II rowsort label-3156
SELECT 54 col0, 69 + - + COUNT ( * ) AS col1
----
54
68

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

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

query I rowsort
SELECT + 83 * 24 * - 54
----
-107568

query II rowsort
SELECT DISTINCT + 76 AS col1, + 39 * + NULLIF ( + 32, - - 28 * + 92 * 65 * + 13 )
----
76
1248

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT ALL 53 DIV + + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL 53 / + + 79 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ALL 65 - + + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL 65 - + + COUNT ( * )
----
64

query II rowsort
SELECT DISTINCT 80 AS col2, 20 AS col0
----
80
20

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

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

query I rowsort
SELECT + 17 * + - NULLIF ( - 80, ( + 83 ) * - 93 + 33 )
----
1360

query I rowsort
SELECT ALL 57 + + 82 + + 48
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL - 70 + - + COUNT( * ) + + - 8 * + 59
----
-543

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL - 70 + - + COUNT ( * ) + + - 8 * + 59
----
-543

query I rowsort
SELECT ALL + 15 + - 69 AS col2
----
-54

query I rowsort
SELECT + 21 * 61 AS col0
----
1281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3169
SELECT ALL - 43 DIV COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL - 43 / COUNT ( * )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3170
SELECT ALL 45 + + 50 + + CAST( ( - + ( + COALESCE ( + + 59, CAST( NULL AS SIGNED ), + - ( ( + - 51 ) ) * COUNT( * ) ) ) ) AS SIGNED ) DIV - 63 * + 4
----
95

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL 45 + + 50 + + CAST ( ( - + ( + COALESCE ( + + 59, CAST ( NULL AS INTEGER ), + - ( ( + - 51 ) ) * COUNT ( * ) ) ) ) AS INTEGER ) / - 63 * + 4
----
95

query I rowsort
SELECT + 9 - - 16 AS col0
----
25

query I rowsort
SELECT DISTINCT - 53 + 36
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT + 86 + MAX( ALL + CAST( NULL AS SIGNED ) + 96 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT + 86 + MAX ( ALL + CAST ( NULL AS INTEGER ) + 96 ) AS col0
----
NULL

query I rowsort
SELECT - 91 * + 50
----
-4550

query I rowsort
SELECT ALL 44 * - ( + 17 ) - 95 * 26
----
-3218

query I rowsort
SELECT ALL + 81 * ( 43 ) AS col2
----
3483

query I rowsort
SELECT DISTINCT - 26 * - 47 AS col0
----
1222

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT ALL + 42 * ( + 63 DIV 84 ) - - 69 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL + 42 * ( + 63 / 84 ) - - 69 AS col1
----
69

query I rowsort
SELECT - 96 * 96 AS col1
----
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT COALESCE ( - 70, + ( MAX( DISTINCT - 92 ) ) )
----
-70

skipif mysql # not compatible
query I rowsort label-3180
SELECT COALESCE ( - 70, + ( MAX ( DISTINCT - 92 ) ) )
----
-70

query I rowsort
SELECT COALESCE ( 10, 81 * + 91 ) col0
----
10

query I rowsort
SELECT - 66 * + 32 AS col1
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT 73 * COUNT( * ) - - 39 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-3183
SELECT 73 * COUNT ( * ) - - 39 AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3184
SELECT COALESCE ( - 56, + 63 + + COUNT( CAST( - ( + 37 ) AS DECIMAL ) + 43 ), 88 + + 16 )
----
-56

skipif mysql # not compatible
query I rowsort label-3184
SELECT COALESCE ( - 56, + 63 + + COUNT ( CAST ( - ( + 37 ) AS REAL ) + 43 ), 88 + + 16 )
----
-56

query I rowsort
SELECT DISTINCT 12 * + 90
----
1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3186
SELECT ALL - 19 DIV COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL - 19 / COUNT ( * )
----
-19

query I rowsort
SELECT - 35 * 42 AS col2
----
-1470

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT + 53 DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT + 53 / 73 AS col0
----
0

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

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

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

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

query I rowsort
SELECT - 67 * + 43 + - 35
----
-2916

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

skipif mysql # not compatible
query I rowsort label-3192
SELECT + 88 / COUNT ( * ) col1
----
88

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

skipif mysql # not compatible
query I rowsort label-3193
SELECT - 99 + COUNT ( * ) * 50 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT 10 * - 52 - 20 * SUM( ALL 28 * 48 )
----
-27400

skipif mysql # not compatible
query I rowsort label-3194
SELECT 10 * - 52 - 20 * SUM ( ALL 28 * 48 )
----
-27400

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

skipif mysql # not compatible
query I rowsort label-3195
SELECT - 17 / 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3196
SELECT - 76 + NULLIF ( CAST( NULL AS SIGNED ), - 14 * 7 + - 76 ) * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT - 76 + NULLIF ( CAST ( NULL AS INTEGER ), - 14 * 7 + - 76 ) * 14
----
NULL

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

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

query I rowsort
SELECT - 52 + 8 AS col1
----
-44

query I rowsort
SELECT DISTINCT + 29 + - 40
----
-11

query I rowsort
SELECT ALL 40 + - 76
----
-36

query I rowsort
SELECT + 46 + + 68 col1
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT DISTINCT + 56 DIV 59 col0
----
0

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT + 56 / 59 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT 69 + MAX( ( 63 ) ) AS col1
----
132

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT 69 + MAX ( ( 63 ) ) AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL MAX( 62 )
----
62

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL MAX ( 62 )
----
62

query I rowsort
SELECT + 98 + + 93
----
191

query I rowsort
SELECT ALL 4 + + ( - 59 ) * 20 AS col0
----
-1176

query I rowsort
SELECT - NULLIF ( - 30, + 73 * - 33 ) col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT DISTINCT 39 + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT 39 + + COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + COUNT( * ) + 23
----
24

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

query I rowsort
SELECT ALL 84 * ( 8 + 16 ) AS col2
----
2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3211
SELECT - CASE 3 WHEN CAST( NULL AS SIGNED ) THEN 54 * + 42 + - 18 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT - CASE 3 WHEN CAST ( NULL AS INTEGER ) THEN 54 * + 42 + - 18 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT + - COUNT( * ) + + NULLIF ( + AVG ( DISTINCT - 85 ) + + CAST( NULL AS SIGNED ), 96 * + 21 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT + - COUNT ( * ) + + NULLIF ( + AVG ( DISTINCT - 85 ) + + CAST ( NULL AS INTEGER ), 96 * + 21 ) AS col2
----
NULL

query I rowsort
SELECT - + 74 * 37 AS col0
----
-2738

query I rowsort
SELECT + ( 66 ) * - 77 + - 94
----
-5176

query I rowsort
SELECT - 59 - 61 * + 67
----
-4146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3216
SELECT DISTINCT - COUNT( * ) DIV - 22 - 32 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT - COUNT ( * ) / - 22 - 32 AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT 88 DIV - ( 31 + 79 ) + 65 * 46
----
2990

skipif mysql # not compatible
query I rowsort label-3217
SELECT 88 / - ( 31 + 79 ) + 65 * 46
----
2990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3218
SELECT 18 + - NULLIF ( - 62 + + 19 DIV + COUNT( * ), - 90 + 91 )
----
61

skipif mysql # not compatible
query I rowsort label-3218
SELECT 18 + - NULLIF ( - 62 + + 19 / + COUNT ( * ), - 90 + 91 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3219
SELECT DISTINCT - ( AVG ( ALL - CAST( NULL AS DECIMAL ) ) ) / + COUNT( + 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT - ( AVG ( ALL - CAST ( NULL AS REAL ) ) ) / + COUNT ( + 16 ) AS col0
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( + 49, AVG ( - 81 ) - - 30 / - NULLIF ( + 45, 55 ) ) AS col1
----
49

query I rowsort
SELECT ALL 13 * - 55
----
-715

query I rowsort
SELECT DISTINCT 18 * 9 AS col1
----
162

query I rowsort
SELECT 98 * + 66
----
6468

query I rowsort
SELECT 33 + + + NULLIF ( + 22, 14 + + 4 ) + - 78
----
-23

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

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

query I rowsort
SELECT 23 * + 35
----
805

query I rowsort
SELECT 59 + 3
----
62

query I rowsort
SELECT DISTINCT - 70 + + 26 * 6
----
86

query I rowsort
SELECT ALL + 15 + + - 22 AS col1
----
-7

query I rowsort
SELECT 49 * - 5
----
-245

query I rowsort
SELECT ALL 58 * 83 AS col2
----
4814

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT ALL - 16 + + CAST( - 77 AS SIGNED ) + - 43 AS col2
----
-136

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL - 16 + + CAST ( - 77 AS INTEGER ) + - 43 AS col2
----
-136

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

skipif mysql # not compatible
query I rowsort label-3234
SELECT 39 - + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 43 * - 51 * 48 col1
----
-105264

query I rowsort
SELECT CASE + 45 WHEN 9 THEN + 89 WHEN + ( - 11 ) THEN + 31 + + 22 END / + 29 AS col1
----
NULL

query I rowsort
SELECT ALL 15 - - 96 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT 8 - - + COUNT( * ) * - 88 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-3238
SELECT 8 - - + COUNT ( * ) * - 88 AS col2
----
-80

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3241
SELECT + CASE 85 WHEN 47 THEN 3 DIV - 54 ELSE 38 END DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3241
SELECT + CASE 85 WHEN 47 THEN 3 / - 54 ELSE 38 END / - 92 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3242
SELECT ALL - - CAST( 54 AS SIGNED ) - 65 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL - - CAST ( 54 AS INTEGER ) - 65 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT ( + 67 ) * CASE - 89 WHEN NULLIF ( ( 91 ), 28 ) THEN + 48 + + 46 WHEN 96 THEN NULLIF ( + CAST( NULL AS SIGNED ), - 19 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT ( + 67 ) * CASE - 89 WHEN NULLIF ( ( 91 ), 28 ) THEN + 48 + + 46 WHEN 96 THEN NULLIF ( + CAST ( NULL AS INTEGER ), - 19 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT + 65 + + SUM( + 97 )
----
162

skipif mysql # not compatible
query I rowsort label-3245
SELECT + 65 + + SUM ( + 97 )
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT 8 + - COUNT( * ) * - 64 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3246
SELECT 8 + - COUNT ( * ) * - 64 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT - 48 - - MAX( + 30 )
----
-18

skipif mysql # not compatible
query I rowsort label-3247
SELECT - 48 - - MAX ( + 30 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT - 87 * CAST( + 71 AS SIGNED ) + 42
----
-6135

skipif mysql # not compatible
query I rowsort label-3248
SELECT - 87 * CAST ( + 71 AS INTEGER ) + 42
----
-6135

query I rowsort
SELECT 54 + + 80
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT DISTINCT + CASE + 74 WHEN 93 THEN NULL WHEN COUNT( * ) THEN 73 ELSE + 79 END * - NULLIF ( - 56, 23 / + ( + 50 ) + + 11 )
----
4424

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT + CASE + 74 WHEN 93 THEN NULL WHEN COUNT ( * ) THEN 73 ELSE + 79 END * - NULLIF ( - 56, 23 / + ( + 50 ) + + 11 )
----
4424

query I rowsort
SELECT ALL - NULLIF ( - + 99, - 51 ) AS col0
----
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL - SUM( DISTINCT - 7 ) * - NULLIF ( ( 38 ) + - 61, + 5 )
----
161

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL - SUM ( DISTINCT - 7 ) * - NULLIF ( ( 38 ) + - 61, + 5 )
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3255
SELECT COUNT( * ) * + CAST( + 12 AS SIGNED ) * 91
----
1092

skipif mysql # not compatible
query I rowsort label-3255
SELECT COUNT ( * ) * + CAST ( + 12 AS INTEGER ) * 91
----
1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT - 93 * CAST( + 53 AS SIGNED ) * + 77 + 84 * + 72 AS col1
----
-373485

skipif mysql # not compatible
query I rowsort label-3256
SELECT - 93 * CAST ( + 53 AS INTEGER ) * + 77 + 84 * + 72 AS col1
----
-373485

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL 7 + 36 + - CASE 11 WHEN + 0 - - 15 * + COUNT( * ) THEN 47 ELSE NULL END * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL 7 + 36 + - CASE 11 WHEN + 0 - - 15 * + COUNT ( * ) THEN 47 ELSE NULL END * + 67
----
NULL

query I rowsort
SELECT + COALESCE ( 90, 60, - 93 ) AS col0
----
90

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

skipif mysql # not compatible
query I rowsort label-3259
SELECT COUNT ( * ) / - 60 + 47
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT - 22 DIV - - 41 - 49 + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-3260
SELECT - 22 / - - 41 - 49 + COUNT ( * )
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL 94 + + MIN( DISTINCT - - 9 )
----
103

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL 94 + + MIN ( DISTINCT - - 9 )
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT ALL ( 29 ) DIV - 29 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL ( 29 ) / - 29 col1
----
-1

query I rowsort
SELECT 59 * + - 9 * + 49 col2
----
-26019

query I rowsort
SELECT DISTINCT 41 + + 82 - + - 28 + + ( - 22 ) AS col1
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3266
SELECT DISTINCT COALESCE ( - 95, - - 37 + MAX( DISTINCT 17 + - 72 * + 11 ) * - 87 ) DIV - 41 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT COALESCE ( - 95, - - 37 + MAX ( DISTINCT 17 + - 72 * + 11 ) * - 87 ) / - 41 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3267
SELECT ALL - 83 + CASE + ( ( + CAST( 19 AS DECIMAL ) ) ) WHEN - COUNT( * ) THEN COUNT( ALL - CAST( NULL AS SIGNED ) ) + 35 END + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL - 83 + CASE + ( ( + CAST ( 19 AS REAL ) ) ) WHEN - COUNT ( * ) THEN COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + 35 END + 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3268
SELECT 47 * - COUNT( * ) * ( 64 ) * + 2 - NULLIF ( - ( - 34 ) - - 30 * - 68, 78 ) DIV 71 AS col0
----
-5988

skipif mysql # not compatible
query I rowsort label-3268
SELECT 47 * - COUNT ( * ) * ( 64 ) * + 2 - NULLIF ( - ( - 34 ) - - 30 * - 68, 78 ) / 71 AS col0
----
-5988

query I rowsort
SELECT ALL ( + 15 ) * 36 AS col1
----
540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3270
SELECT ALL COALESCE ( + - COUNT( * ), 14 * - 80, ( ( CASE WHEN NOT 81 IS NULL THEN COUNT( * ) DIV + 42 END ) ) ) + 90
----
89

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL COALESCE ( + - COUNT ( * ), 14 * - 80, ( ( CASE WHEN NOT 81 IS NULL THEN COUNT ( * ) / + 42 END ) ) ) + 90
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT COUNT( * ) + CASE + - CASE + 95 WHEN ( 84 ) THEN NULL WHEN 10 * - 69 THEN NULL ELSE + 68 * 10 + NULLIF ( COUNT( * ), 79 + 88 ) END WHEN 8 / - 84 + - 41 THEN NULL WHEN + 27 THEN ( - 25 ) WHEN 97 THEN - ( - 80 ) * COUNT( * ) + 33 * 59 ELSE 89 END + 62 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-3271
SELECT COUNT ( * ) + CASE + - CASE + 95 WHEN ( 84 ) THEN NULL WHEN 10 * - 69 THEN NULL ELSE + 68 * 10 + NULLIF ( COUNT ( * ), 79 + 88 ) END WHEN 8 / - 84 + - 41 THEN NULL WHEN + 27 THEN ( - 25 ) WHEN 97 THEN - ( - 80 ) * COUNT ( * ) + 33 * 59 ELSE 89 END + 62 AS col0
----
152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3272
SELECT + CAST( NULL AS DECIMAL ) * - 56 * - 24 * 64 - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT + CAST ( NULL AS REAL ) * - 56 * - 24 * 64 - 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3273
SELECT DISTINCT COUNT( * ), 80 + + - 82 AS col2
----
1
-2

skipif mysql # not compatible
query II rowsort label-3273
SELECT DISTINCT COUNT ( * ), 80 + + - 82 AS col2
----
1
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT DISTINCT + SUM( DISTINCT 21 ) col1
----
21

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + SUM ( DISTINCT 21 ) col1
----
21

query I rowsort
SELECT - 36 * ( - 95 )
----
3420

query I rowsort
SELECT 99 * + 78
----
7722

query I rowsort
SELECT DISTINCT + 69 * - 57 + + - NULLIF ( - 4, - 65 + - 97 / + 20 ) + 69
----
-3860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3279
SELECT + COUNT( * ) + + 38 + COALESCE ( - CAST( 66 AS SIGNED ), - 74 DIV 13, 80 )
----
-27

skipif mysql # not compatible
query I rowsort label-3279
SELECT + COUNT ( * ) + + 38 + COALESCE ( - CAST ( 66 AS INTEGER ), - 74 / 13, 80 )
----
-27

query I rowsort
SELECT - + ( ( + 22 ) ) * - 59
----
1298

query I rowsort
SELECT + + 41 * + 71 AS col0
----
2911

query I rowsort
SELECT DISTINCT ( - - 99 ) AS col1
----
99

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

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

query II rowsort
SELECT DISTINCT - 43, + ( COALESCE ( - 81, + 77 + - 40 ) ) + - 79 * - 67 AS col1
----
-43
5212

query I rowsort
SELECT DISTINCT + - 70 + 90 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL + + 20 + + COUNT( * ) * 9 * COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL + + 20 + + COUNT ( * ) * 9 * COUNT ( * )
----
29

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

query I rowsort
SELECT + - 14 - + - 52
----
38

query I rowsort
SELECT ALL + - COALESCE ( - 35, - 73 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT + COUNT( * ) - + + 40 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-3290
SELECT + COUNT ( * ) - + + 40 AS col2
----
-39

query I rowsort
SELECT + COALESCE ( + 80, - 8 * - + 53 - 48, 60 )
----
80

query I rowsort
SELECT + COALESCE ( + 53, - 15, + + 17 )
----
53

query I rowsort
SELECT CASE + 88 WHEN 77 THEN - - 19 ELSE 38 * - 83 END
----
-3154

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL + COUNT( DISTINCT + + 10 ) * - + MIN( ALL - 30 ) col0
----
30

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL + COUNT ( DISTINCT + + 10 ) * - + MIN ( ALL - 30 ) col0
----
30

query I rowsort
SELECT + 17 * + 70 + + - 73 * - + 71 * - 33
----
-169849

query I rowsort
SELECT ALL - 13 * - - 6 - + + 92 AS col0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT + ( - MIN( DISTINCT 45 ) ) * - - COALESCE ( + 88, + 86 + 18 ) + - 33
----
-3993

skipif mysql # not compatible
query I rowsort label-3297
SELECT + ( - MIN ( DISTINCT 45 ) ) * - - COALESCE ( + 88, + 86 + 18 ) + - 33
----
-3993

query I rowsort
SELECT CASE + 41 WHEN - + 61 * 93 THEN + 50 + + 31 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT + COUNT( * ) + - 25
----
-24

skipif mysql # not compatible
query I rowsort label-3299
SELECT + COUNT ( * ) + - 25
----
-24

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

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

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

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

query I rowsort
SELECT + 93 + + + 16 + + 87 * + 23 * 16 AS col0
----
32125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT + 4 * + CAST( - 55 AS SIGNED ) AS col1
----
-220

skipif mysql # not compatible
query I rowsort label-3303
SELECT + 4 * + CAST ( - 55 AS INTEGER ) AS col1
----
-220

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

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

query I rowsort
SELECT + ( + - 99 ) * + 85 + 97
----
-8318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3306
SELECT ALL COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) * - 50 - 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * - 50 - 6 AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT ALL 45 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL 45 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3308
SELECT + 57 DIV - + 9 AS col0, 8
----
-6
8

skipif mysql # not compatible
query II rowsort label-3308
SELECT + 57 / - + 9 AS col0, 8
----
-6
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL - MAX( ALL + 9 ) * - COUNT( + 6 )
----
9

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL - MAX ( ALL + 9 ) * - COUNT ( + 6 )
----
9

query I rowsort
SELECT DISTINCT 80 * - 29
----
-2320

query I rowsort
SELECT - 81 * + + 22 * + - 64 * - 83
----
-9465984

query I rowsort
SELECT ALL ( 79 ) * + + 82 * - 61 AS col1
----
-395158

query I rowsort
SELECT + 20 - 85 AS col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3314
SELECT - + ( + + MIN( + 71 ) ) DIV 32 DIV + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3314
SELECT - + ( + + MIN ( + 71 ) ) / 32 / + COUNT ( * ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL NULLIF ( - MAX( ALL - 57 ), 73 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL NULLIF ( - MAX ( ALL - 57 ), 73 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT + 33 - COALESCE ( + 45, - COUNT( * ) ) * + 59
----
-2622

skipif mysql # not compatible
query I rowsort label-3316
SELECT + 33 - COALESCE ( + 45, - COUNT ( * ) ) * + 59
----
-2622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3317
SELECT + + 50 * + - COUNT( * ), - ( + CAST( - 25 AS SIGNED ) ) AS col0
----
-50
25

skipif mysql # not compatible
query II rowsort label-3317
SELECT + + 50 * + - COUNT ( * ), - ( + CAST ( - 25 AS INTEGER ) ) AS col0
----
-50
25

query I rowsort
SELECT - - NULLIF ( 57, 68 ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3319
SELECT CAST( + - 5 AS SIGNED ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3319
SELECT CAST ( + - 5 AS INTEGER ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT - 26 + - + ( - COALESCE ( + CASE 22 WHEN + 30 THEN NULL WHEN 11 THEN COUNT( * ) * - 73 ELSE NULL END, + 79 + 36 ) ) * 4
----
434

skipif mysql # not compatible
query I rowsort label-3320
SELECT - 26 + - + ( - COALESCE ( + CASE 22 WHEN + 30 THEN NULL WHEN 11 THEN COUNT ( * ) * - 73 ELSE NULL END, + 79 + 36 ) ) * 4
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT DISTINCT - SUM( + 0 ) + + ( + - 71 ) * 62 col0
----
-4402

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT - SUM ( + 0 ) + + ( + - 71 ) * 62 col0
----
-4402

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

query I rowsort
SELECT DISTINCT + 37 + + - 39 AS col1
----
-2

query I rowsort
SELECT - 83 - 94 AS col2
----
-177

query I rowsort
SELECT DISTINCT - ( + - 33 ) + 69 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT + 4 + 88 - - + COUNT( DISTINCT + - 25 )
----
93

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT + 4 + 88 - - + COUNT ( DISTINCT + - 25 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT - 6 * + 10 + - COUNT( * ) + + 13
----
-48

skipif mysql # not compatible
query I rowsort label-3327
SELECT - 6 * + 10 + - COUNT ( * ) + + 13
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL + ( - 96 ) + - + COALESCE ( + - NULLIF ( SUM( ( + 88 ) ), 46 * - 17 ), 29 * 79 ) + + 58
----
50

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + ( - 96 ) + - + COALESCE ( + - NULLIF ( SUM ( ( + 88 ) ), 46 * - 17 ), 29 * 79 ) + + 58
----
50

query I rowsort
SELECT - ( + + 51 ) + 52
----
1

query I rowsort
SELECT ALL - 80 * + 52 AS col1
----
-4160

onlyif mysql # DIV for integer division: 
query I rowsort label-3331
SELECT - - ( + 27 ) DIV + 84 * + 94
----
0

skipif mysql # not compatible
query I rowsort label-3331
SELECT - - ( + 27 ) / + 84 * + 94
----
0

query I rowsort
SELECT - - 69 + AVG ( + 88 ) * CASE 75 WHEN + 37 THEN - 99 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 63 + - - 74
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT + CAST( - 83 AS SIGNED ) + + 39 * + 47 AS col0
----
1750

skipif mysql # not compatible
query I rowsort label-3334
SELECT + CAST ( - 83 AS INTEGER ) + + 39 * + 47 AS col0
----
1750

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3336
SELECT DISTINCT - 52 DIV COUNT( * ) + + - 95, - CAST( NULL AS DECIMAL ) * + 12 AS col2
----
-147
NULL

skipif mysql # not compatible
query II rowsort label-3336
SELECT DISTINCT - 52 / COUNT ( * ) + + - 95, - CAST ( NULL AS REAL ) * + 12 AS col2
----
-147
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT DISTINCT 82 DIV + 13 col2
----
6

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT 82 / + 13 col2
----
6

query II rowsort
SELECT DISTINCT + 81 AS col0, - 45
----
81
-45

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

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

query II rowsort
SELECT DISTINCT + 26 AS col1, 39 AS col2
----
26
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3341
SELECT DISTINCT - 11 DIV - 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT - 11 / - 28 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3342
SELECT - 75 DIV 53 - 68 AS col2, 17 + 46 - + 11 AS col1
----
-69
52

skipif mysql # not compatible
query II rowsort label-3342
SELECT - 75 / 53 - 68 AS col2, 17 + 46 - + 11 AS col1
----
-69
52

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

skipif mysql # not compatible
query I rowsort label-3343
SELECT + ( + - ( + - 0 ) ) * 42 / 66
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3345
SELECT + ( - ( - 57 ) ) AS col1, 64 + 26 + + 44 DIV - 91 * COALESCE ( + 12, - 3 DIV - 46 )
----
57
90

skipif mysql # not compatible
query II rowsort label-3345
SELECT + ( - ( - 57 ) ) AS col1, 64 + 26 + + 44 / - 91 * COALESCE ( + 12, - 3 / - 46 )
----
57
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3346
SELECT ALL CAST( NULL AS SIGNED ) / + 57 - + 58 * + - CASE - + 21 WHEN - 96 THEN + 95 + + 31 ELSE - ( 83 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL CAST ( NULL AS INTEGER ) / + 57 - + 58 * + - CASE - + 21 WHEN - 96 THEN + 95 + + 31 ELSE - ( 83 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + MIN( DISTINCT COALESCE ( - 59, + + 64 * - 36 ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3347
SELECT + MIN ( DISTINCT COALESCE ( - 59, + + 64 * - 36 ) ) AS col0
----
-59

query I rowsort
SELECT - 81 - + 34 AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT + CASE COUNT( * ) WHEN - 61 * - 85 - + + 32 THEN 71 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT + CASE COUNT ( * ) WHEN - 61 * - 85 - + + 32 THEN 71 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL + NULLIF ( 52, + + ( - COUNT( * ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + NULLIF ( 52, + + ( - COUNT ( * ) ) )
----
52

query I rowsort
SELECT DISTINCT + COALESCE ( ( - 22 ), + ( 6 ) ) AS col1
----
-22

query I rowsort
SELECT ALL - 21 * 9
----
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3353
SELECT + 68 * - 92 + + 31 DIV 65 + - COUNT( * ) + - MIN( 69 ) AS col1
----
-6326

skipif mysql # not compatible
query I rowsort label-3353
SELECT + 68 * - 92 + + 31 / 65 + - COUNT ( * ) + - MIN ( 69 ) AS col1
----
-6326

query I rowsort
SELECT 70 * - 2 AS col1
----
-140

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

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL 84 + + - COUNT ( * ) AS col1
----
83

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

query I rowsort
SELECT ALL 93 + + + ( - 86 ) AS col0
----
7

query I rowsort
SELECT DISTINCT + 8 + ( 1 ) + - 69
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL + 44 * COUNT( DISTINCT 12 ) + 72
----
116

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL + 44 * COUNT ( DISTINCT 12 ) + 72
----
116

query I rowsort
SELECT ALL - 86 + - 16 AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL SUM( ALL - + ( + 71 ) ) + + + 50 + + 40 col1
----
19

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL SUM ( ALL - + ( + 71 ) ) + + + 50 + + 40 col1
----
19

query I rowsort
SELECT ALL - CASE - 0 WHEN + + 11 THEN + + 89 * - NULLIF ( 23, ( - 20 ) + 20 ) / 68 END * 31 AS col1
----
NULL

query I rowsort
SELECT - 43 + + ( 30 ) * + + 46
----
1337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3364
SELECT + 47 * 0 * + - 85 + + + 63 * - COALESCE ( + 21, - 5 - CAST( NULL AS SIGNED ) * + COUNT( * ), - MIN( + 38 ) )
----
-1323

skipif mysql # not compatible
query I rowsort label-3364
SELECT + 47 * 0 * + - 85 + + + 63 * - COALESCE ( + 21, - 5 - CAST ( NULL AS INTEGER ) * + COUNT ( * ), - MIN ( + 38 ) )
----
-1323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT + NULLIF ( + + CAST( - 30 AS SIGNED ), 68 ) * 25 + 86 * - 27
----
-3072

skipif mysql # not compatible
query I rowsort label-3365
SELECT + NULLIF ( + + CAST ( - 30 AS INTEGER ), 68 ) * 25 + 86 * - 27
----
-3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3366
SELECT CAST( 6 AS SIGNED ) * 31 * + CASE WHEN NOT ( + 11 ) IS NOT NULL THEN - 29 END - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT CAST ( 6 AS INTEGER ) * 31 * + CASE WHEN NOT ( + 11 ) IS NOT NULL THEN - 29 END - 59 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3367
SELECT ALL + - 90 + - NULLIF ( + + CAST( NULL AS SIGNED ), - 90 * COUNT( * ) - 74 * + 0 ) + + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + - 90 + - NULLIF ( + + CAST ( NULL AS INTEGER ), - 90 * COUNT ( * ) - 74 * + 0 ) + + 66 AS col1
----
NULL

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

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

query II rowsort
SELECT DISTINCT 8, 56 AS col2
----
8
56

query I rowsort
SELECT DISTINCT CASE - 86 WHEN - + 96 + 74 THEN + 2 END - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL - 24 * + + 12 * + COALESCE ( + 26, 13 * + 84 + + MAX( 7 ) + + COUNT( * ), - 50 * 22 )
----
-7488

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL - 24 * + + 12 * + COALESCE ( + 26, 13 * + 84 + + MAX ( 7 ) + + COUNT ( * ), - 50 * 22 )
----
-7488

query I rowsort
SELECT 49 + + 13 * 0 * - - 17
----
49

query I rowsort
SELECT ALL 53 - + 61 * - 55 AS col2
----
3408

query II rowsort
SELECT ALL 73 AS col1, - 96 - + 15
----
73
-111

query I rowsort
SELECT ( + + 46 ) + + + 75 * - 67 AS col2
----
-4979

query I rowsort
SELECT 32 * + 54 * - 27
----
-46656

query I rowsort
SELECT 68 * + ( - - ( - 95 ) )
----
-6460

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT 88 * + 44 + - COUNT( * )
----
3871

skipif mysql # not compatible
query I rowsort label-3378
SELECT 88 * + 44 + - COUNT ( * )
----
3871

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT 74 - + 45 + - COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3379
SELECT 74 - + 45 + - COUNT ( * ) AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3380
SELECT - 8 DIV 29 + 54 * + 93
----
5022

skipif mysql # not compatible
query I rowsort label-3380
SELECT - 8 / 29 + 54 * + 93
----
5022

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT ALL - ( - CAST( + 37 AS SIGNED ) )
----
37

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL - ( - CAST ( + 37 AS INTEGER ) )
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL MAX( + + 57 ) * 66 * 89 + - CASE - + COUNT( DISTINCT - 7 ) WHEN 69 + MAX( 28 ) THEN 21 WHEN 81 THEN NULL ELSE 31 END * - 18 AS col0
----
335376

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL MAX ( + + 57 ) * 66 * 89 + - CASE - + COUNT ( DISTINCT - 7 ) WHEN 69 + MAX ( 28 ) THEN 21 WHEN 81 THEN NULL ELSE 31 END * - 18 AS col0
----
335376

query I rowsort
SELECT ALL - NULLIF ( - + 91, - 47 ) AS col0
----
91

query I rowsort
SELECT DISTINCT - 7 * 82
----
-574

query I rowsort
SELECT + 64 * - 42 + - 63
----
-2751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT 62 * + 60 + 91 - 70 * + 0 * - CAST( NULL AS SIGNED ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT 62 * + 60 + 91 - 70 * + 0 * - CAST ( NULL AS INTEGER ) * - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT ALL + COUNT( - 54 ) + - + 42
----
-41

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL + COUNT ( - 54 ) + - + 42
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3389
SELECT 73 * - 28 AS col1, + CASE - 27 WHEN + MIN( - 70 ) * 10 THEN + COUNT( * ) * + 63 END * + 78 AS col1
----
-2044
NULL

skipif mysql # not compatible
query II rowsort label-3389
SELECT 73 * - 28 AS col1, + CASE - 27 WHEN + MIN ( - 70 ) * 10 THEN + COUNT ( * ) * + 63 END * + 78 AS col1
----
-2044
NULL

query I rowsort
SELECT DISTINCT + 98 + - + ( 75 ) AS col2
----
23

query I rowsort
SELECT ALL + - ( - - 66 ) + - 37 + - 29
----
-132

query I rowsort
SELECT DISTINCT 73 * - ( + 83 ) + - 12
----
-6071

query I rowsort
SELECT DISTINCT - 48 + - 8
----
-56

query I rowsort
SELECT ALL 82 + - 58
----
24

query I rowsort
SELECT ALL - 79 * + 58 + + 5 col2
----
-4577

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - MAX( ALL - 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3397
SELECT - MAX ( ALL - 29 ) AS col2
----
29

query I rowsort
SELECT ALL + + 26 + + - 68 * + 12 + + 94 col0
----
-696

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL + MIN( DISTINCT 83 ) + + + 11
----
94

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL + MIN ( DISTINCT 83 ) + + + 11
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT - 32 - + + COALESCE ( - 89, - 67 DIV + 62 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3401
SELECT - 32 - + + COALESCE ( - 89, - 67 / + 62 ) AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT - ( + - CAST( 47 AS SIGNED ) ) * + ( - + 34 )
----
-1598

skipif mysql # not compatible
query I rowsort label-3402
SELECT - ( + - CAST ( 47 AS INTEGER ) ) * + ( - + 34 )
----
-1598

onlyif mysql # DIV for integer division: 
query II rowsort label-3403
SELECT ALL - 36 AS col2, + 93 + - - 13 DIV - ( 9 ) AS col1
----
-36
92

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL - 36 AS col2, + 93 + - - 13 / - ( 9 ) AS col1
----
-36
92

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

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

query I rowsort
SELECT ALL + NULLIF ( - + 74, - 48 * 50 + + 30 + - - 76 ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3406
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) * 55 AS col1
----
NULL

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

query I rowsort
SELECT ALL + NULLIF ( + - 43, 50 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3408
SELECT ALL 11 - + + SUM( ALL 91 ) + + 37 AS col1, 68 + - 78 AS col0
----
-43
-10

skipif mysql # not compatible
query II rowsort label-3408
SELECT ALL 11 - + + SUM ( ALL 91 ) + + 37 AS col1, 68 + - 78 AS col0
----
-43
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3409
SELECT + ( - 71 ) - + 70 DIV - 48
----
-70

skipif mysql # not compatible
query I rowsort label-3409
SELECT + ( - 71 ) - + 70 / - 48
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3410
SELECT ALL + 2 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL + 2 / 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3411
SELECT DISTINCT 25 * MIN( ALL - 86 ) * - - 89 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT 25 * MIN ( ALL - 86 ) * - - 89 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT 52 - - + SUM( ALL 70 ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-3412
SELECT 52 - - + SUM ( ALL 70 ) AS col1
----
122

query I rowsort
SELECT DISTINCT ( + 92 ) * - + 93 AS col1
----
-8556

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3414
SELECT COUNT( * ) DIV + COALESCE ( 47, + - ( + - 99 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3414
SELECT COUNT ( * ) / + COALESCE ( 47, + - ( + - 99 ) )
----
0

query I rowsort
SELECT ( - 26 ) * 15 * 36 + + - 4 + - 60 AS col1
----
-14104

onlyif mysql # aggregate syntax: 
query II rowsort label-3416
SELECT ALL 6 * - 13, - COUNT( * ) + - 16 AS col2
----
-78
-17

skipif mysql # not compatible
query II rowsort label-3416
SELECT ALL 6 * - 13, - COUNT ( * ) + - 16 AS col2
----
-78
-17

query I rowsort
SELECT 78 * + + 50 AS col2
----
3900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3418
SELECT + COALESCE ( + NULLIF ( - + 72, - 41 * - 43 ), 72 + CAST( NULL AS SIGNED ), + COUNT( * ) * + COUNT( * ) + 27 )
----
-72

skipif mysql # not compatible
query I rowsort label-3418
SELECT + COALESCE ( + NULLIF ( - + 72, - 41 * - 43 ), 72 + CAST ( NULL AS INTEGER ), + COUNT ( * ) * + COUNT ( * ) + 27 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3419
SELECT COALESCE ( - + 76, - CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-3419
SELECT COALESCE ( - + 76, - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT 93 * SUM( + 29 ) AS col2
----
2697

skipif mysql # not compatible
query I rowsort label-3420
SELECT 93 * SUM ( + 29 ) AS col2
----
2697

query I rowsort
SELECT ALL 10 * CASE WHEN NULL < NULL THEN 69 END + + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL COUNT( * ) * - + COUNT( * ) + 25 - 15 * - MIN( DISTINCT 96 ) * + 92 + 61 col1
----
132565

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL COUNT ( * ) * - + COUNT ( * ) + 25 - 15 * - MIN ( DISTINCT 96 ) * + 92 + 61 col1
----
132565

onlyif mysql # aggregate syntax: 
query II rowsort label-3423
SELECT - 80 * - 4 * COUNT( * ) AS col2, - 90 + 39 * 76 * - 88 * 92
----
320
-23996634

skipif mysql # not compatible
query II rowsort label-3423
SELECT - 80 * - 4 * COUNT ( * ) AS col2, - 90 + 39 * 76 * - 88 * 92
----
320
-23996634

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT DISTINCT - 77 * + + MIN( ALL - 20 ) + SUM( DISTINCT 25 ) col0
----
1565

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT - 77 * + + MIN ( ALL - 20 ) + SUM ( DISTINCT 25 ) col0
----
1565

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT COUNT( * ) * + - 50 + + - 55 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT COUNT ( * ) * + - 50 + + - 55 AS col0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT - - COALESCE ( + 76, - - 15 + - - 77 + - 53 * - MAX( DISTINCT 79 ) + 51 ) + - 90 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3426
SELECT - - COALESCE ( + 76, - - 15 + - - 77 + - 53 * - MAX ( DISTINCT 79 ) + 51 ) + - 90 AS col1
----
-14

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3428
SELECT ALL - ( 84 ) * 50 * - + CAST( - - COUNT( * ) AS SIGNED ) * 20 + - 29 + + 31
----
84002

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL - ( 84 ) * 50 * - + CAST ( - - COUNT ( * ) AS INTEGER ) * 20 + - 29 + + 31
----
84002

query I rowsort
SELECT + 90 * + 13 + + + 50
----
1220

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT - 72 * 16 - COUNT( * )
----
-1153

skipif mysql # not compatible
query I rowsort label-3430
SELECT - 72 * 16 - COUNT ( * )
----
-1153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT - 29 + COALESCE ( + 80, - 49, + - 19, + CASE WHEN NOT + 58 IS NOT NULL THEN NULL ELSE - 37 - CASE 24 WHEN + 92 * + 97 THEN CASE 96 WHEN - 9 THEN NULL WHEN 89 - - COUNT( * ) THEN - NULLIF ( + 32, + 51 + - CAST( NULL AS SIGNED ) ) WHEN CAST( + ( + CAST( 90 AS SIGNED ) ) AS SIGNED ) THEN NULL END ELSE 23 + 58 END END * CASE COUNT( ( 0 ) ) WHEN + 8 + + COUNT( * ) THEN NULL ELSE - 84 END ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3431
SELECT - 29 + COALESCE ( + 80, - 49, + - 19, + CASE WHEN NOT + 58 IS NOT NULL THEN NULL ELSE - 37 - CASE 24 WHEN + 92 * + 97 THEN CASE 96 WHEN - 9 THEN NULL WHEN 89 - - COUNT ( * ) THEN - NULLIF ( + 32, + 51 + - CAST ( NULL AS INTEGER ) ) WHEN CAST ( + ( + CAST ( 90 AS INTEGER ) ) AS INTEGER ) THEN NULL END ELSE 23 + 58 END END * CASE COUNT ( ( 0 ) ) WHEN + 8 + + COUNT ( * ) THEN NULL ELSE - 84 END ) AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3432
SELECT + + 76 * + + 7 - - NULLIF ( - 76, CAST( NULL AS SIGNED ) ) AS col2, 33 AS col0
----
456
33

skipif mysql # not compatible
query II rowsort label-3432
SELECT + + 76 * + + 7 - - NULLIF ( - 76, CAST ( NULL AS INTEGER ) ) AS col2, 33 AS col0
----
456
33

query I rowsort
SELECT CASE 46 WHEN + 52 * + 18 THEN - ( + + 65 ) * - 39 + - 16 * 91 WHEN 24 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3434
SELECT DISTINCT + ( - + 40 ) col0, CAST( NULL AS DECIMAL ) / + + 49 * - 77
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-3434
SELECT DISTINCT + ( - + 40 ) col0, CAST ( NULL AS REAL ) / + + 49 * - 77
----
-40
NULL

query I rowsort
SELECT ALL COALESCE ( + 89, - 0 * - - 36 - - 56 ) AS col0
----
89

query II rowsort
SELECT - - 37 + - + ( 66 ) AS col0, - 43 * 37
----
-29
-1591

onlyif mysql # aggregate syntax: 
query II rowsort label-3437
SELECT DISTINCT + + COUNT( * ) * + - 51 AS col2, - 32 col1
----
-51
-32

skipif mysql # not compatible
query II rowsort label-3437
SELECT DISTINCT + + COUNT ( * ) * + - 51 AS col2, - 32 col1
----
-51
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3438
SELECT - + ( + + CAST( NULL AS SIGNED ) ) + - COUNT( * ) + 50 AS col0
----
NULL

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

query II rowsort
SELECT + 88 * + 22 AS col0, ( + 26 ) AS col0
----
1936
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3440
SELECT ALL + COUNT( * ) * - - COUNT( * ) AS col2, + NULLIF ( - + COUNT( * ), - - 80 ) / - - CAST( NULL AS SIGNED ) / + NULLIF ( + COUNT( ALL - 19 ), + 29 )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3440
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) AS col2, + NULLIF ( - + COUNT ( * ), - - 80 ) / - - CAST ( NULL AS INTEGER ) / + NULLIF ( + COUNT ( ALL - 19 ), + 29 )
----
1
NULL

query I rowsort
SELECT - 12 + + 36
----
24

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

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

query II rowsort
SELECT ALL 73, + 56 + - + 34 - - 73 - 24 AS col2
----
73
71

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

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

query I rowsort
SELECT + 53 + + 40
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3446
SELECT 48, ( + - 18 ) + + - 81 + + - COALESCE ( - 78, MIN( + - 59 ) - + COUNT( * ), - 70 + 6 ) - 62 * + 18 * + ( + 0 * - 79 ) * 87 AS col0
----
48
-21

skipif mysql # not compatible
query II rowsort label-3446
SELECT 48, ( + - 18 ) + + - 81 + + - COALESCE ( - 78, MIN ( + - 59 ) - + COUNT ( * ), - 70 + 6 ) - 62 * + 18 * + ( + 0 * - 79 ) * 87 AS col0
----
48
-21

query I rowsort
SELECT DISTINCT ( 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT + ( - + 44 ) + + COUNT( * ) - - 73 + + 97 + + 66
----
193

skipif mysql # not compatible
query I rowsort label-3448
SELECT + ( - + 44 ) + + COUNT ( * ) - - 73 + + 97 + + 66
----
193

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT DISTINCT MIN( 89 ) * + - 59 * + - 47
----
246797

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT MIN ( 89 ) * + - 59 * + - 47
----
246797

query I rowsort
SELECT DISTINCT 81 + + + NULLIF ( + + 38, + 60 ) * + 70
----
2741

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT ALL 16 + + - 27 + 15 - COUNT( * ) + + - 29 * + + 96 + 65 * + + 21 AS col1
----
-1416

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL 16 + + - 27 + 15 - COUNT ( * ) + + - 29 * + + 96 + 65 * + + 21 AS col1
----
-1416

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT - ( + 43 ) + 68 + ( + + 12 ) DIV - + 10
----
24

skipif mysql # not compatible
query I rowsort label-3453
SELECT - ( + 43 ) + 68 + ( + + 12 ) / - + 10
----
24

query I rowsort
SELECT + 4 - + + 24
----
-20

query I rowsort
SELECT DISTINCT 10 * + 54
----
540

onlyif mysql # DIV for integer division: 
query I rowsort label-3456
SELECT + 74 DIV + 23 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3456
SELECT + 74 / + 23 AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3457
SELECT ALL + 57, SUM( DISTINCT 82 ) * - 46 col1
----
57
-3772

skipif mysql # not compatible
query II rowsort label-3457
SELECT ALL + 57, SUM ( DISTINCT 82 ) * - 46 col1
----
57
-3772

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT DISTINCT - 62 DIV 9 + 69 * - 28
----
-1938

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT - 62 / 9 + 69 * - 28
----
-1938

query I rowsort
SELECT DISTINCT 74 * - 97 AS col0
----
-7178

query I rowsort
SELECT + 20 + + 13 AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3461
SELECT ALL + MAX( - - 49 ) * 5 + 41 * + 88 * - - 27 col1, 87 * - 41 AS col0
----
97661
-3567

skipif mysql # not compatible
query II rowsort label-3461
SELECT ALL + MAX ( - - 49 ) * 5 + 41 * + 88 * - - 27 col1, 87 * - 41 AS col0
----
97661
-3567

query I rowsort
SELECT ALL + 96 * - 17
----
-1632

query III rowsort
SELECT - + 27 + - ( - 40 ), - NULLIF ( + 34, 16 ) AS col1, ( - - 82 ) - 99 col0
----
13
-34
-17

query I rowsort
SELECT DISTINCT - 79 * + 8 - - - 17 AS col1
----
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL 6 * 36 * + NULLIF ( - + 77, - COUNT( * ) ) AS col0
----
-16632

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL 6 * 36 * + NULLIF ( - + 77, - COUNT ( * ) ) AS col0
----
-16632

query I rowsort
SELECT - 59 + + ( 40 ) + ( + + 12 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3467
SELECT + COUNT( * ) / + 87 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT + COUNT ( * ) / + 87 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3468
SELECT - + ( + + 40 ) * + + SUM( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT - + ( + + 40 ) * + + SUM ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 16 - + 69
----
-53

query I rowsort
SELECT - - 0 * - - 54 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3472
SELECT - + 31 - 40 + - 57 + - 41 * - 23 * COUNT( * ) AS col0, + 55
----
815
55

skipif mysql # not compatible
query II rowsort label-3472
SELECT - + 31 - 40 + - 57 + - 41 * - 23 * COUNT ( * ) AS col0, + 55
----
815
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3473
SELECT ALL - 66 DIV + COUNT( ALL - 3 )
----
-66

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL - 66 / + COUNT ( ALL - 3 )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-3474
SELECT - 88 DIV ( 8 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-3474
SELECT - 88 / ( 8 ) col0
----
-11

query I rowsort
SELECT - 94 + 30 AS col2
----
-64

query I rowsort
SELECT ALL + 93 + + - 47 AS col0
----
46

query II rowsort
SELECT ALL ( 1 ) AS col1, 9 AS col0
----
1
9

query I rowsort
SELECT ALL + 76 + - 84 * + - 72 + - - 72
----
6196

query I rowsort
SELECT - ( + - 2 ) - 15 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3480
SELECT ALL + 3 * 49 * + ( - - 34 ) AS col0, ( + + 38 ) + + MAX( 34 ) + - COUNT( * ) DIV CAST( - CAST( + MAX( 71 ) AS SIGNED ) - COUNT( * ) AS SIGNED ) AS col2
----
4998
72

skipif mysql # not compatible
query II rowsort label-3480
SELECT ALL + 3 * 49 * + ( - - 34 ) AS col0, ( + + 38 ) + + MAX ( 34 ) + - COUNT ( * ) / CAST ( - CAST ( + MAX ( 71 ) AS INTEGER ) - COUNT ( * ) AS INTEGER ) AS col2
----
4998
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT DISTINCT - 48 + - 48 / CASE + + 21 WHEN CAST( + 40 AS SIGNED ) THEN ( - 37 ) + 50 END * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT - 48 + - 48 / CASE + + 21 WHEN CAST ( + 40 AS INTEGER ) THEN ( - 37 ) + 50 END * - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL + 94 + + - 32 + + + 50 * CASE - 63 WHEN - ( - 38 ) / + 1 + + 75 THEN NULL ELSE MIN( - 87 ) END + - 40 AS col2
----
-4328

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL + 94 + + - 32 + + + 50 * CASE - 63 WHEN - ( - 38 ) / + 1 + + 75 THEN NULL ELSE MIN ( - 87 ) END + - 40 AS col2
----
-4328

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

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

query I rowsort
SELECT ALL + 76 + 54 col0
----
130

query I rowsort
SELECT 73 * - ( + - 89 )
----
6497

query I rowsort
SELECT 22 - + - ( - 85 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3487
SELECT ALL 62 + COUNT( * ) AS col1, + NULLIF ( 82, + 24 )
----
63
82

skipif mysql # not compatible
query II rowsort label-3487
SELECT ALL 62 + COUNT ( * ) AS col1, + NULLIF ( 82, + 24 )
----
63
82

query I rowsort
SELECT ALL - NULLIF ( - 24, 88 - + 20 ) AS col2
----
24

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

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

query I rowsort
SELECT 11 * 33
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL 15 * SUM( - 31 ) * - 93 + + + 13 AS col2
----
43258

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL 15 * SUM ( - 31 ) * - 93 + + + 13 AS col2
----
43258

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3492
SELECT ALL - + CAST( NULL AS SIGNED ) - + AVG ( + CAST( NULL AS DECIMAL ) ) + + - 26 + + 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - + CAST ( NULL AS INTEGER ) - + AVG ( + CAST ( NULL AS REAL ) ) + + - 26 + + 84 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3493
SELECT + - CASE 84 WHEN 25 THEN NULL WHEN + + 65 + 26 THEN + 16 WHEN + CAST( 68 AS SIGNED ) * NULLIF ( 56, 66 ) THEN 93 - 23 / 63 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT + - CASE 84 WHEN 25 THEN NULL WHEN + + 65 + 26 THEN + 16 WHEN + CAST ( 68 AS INTEGER ) * NULLIF ( 56, 66 ) THEN 93 - 23 / 63 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3494
SELECT + + 40 * + ( COUNT( * ) ) + 21 DIV COUNT( * ) DIV - - COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-3494
SELECT + + 40 * + ( COUNT ( * ) ) + 21 / COUNT ( * ) / - - COUNT ( * ) AS col0
----
61

query II rowsort
SELECT DISTINCT 10 * 31 AS col1, + ( - 7 ) AS col0
----
310
-7

query I rowsort
SELECT + 84 + - 66
----
18

query I rowsort
SELECT ALL - 67 * - 86 + + 8 AS col0
----
5770

query I rowsort
SELECT 54 + + 43 * + ( 4 ) + 56 AS col2
----
282

query I rowsort
SELECT DISTINCT - 98 * - + 22 * - + CASE - 67 WHEN - - 67 THEN - + 22 * - 87 * - 21 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3501
SELECT 70 * ( + - 15 ) DIV + COALESCE ( + 15, - + 26 ) - + COUNT( * ) - + - 23
----
-48

skipif mysql # not compatible
query I rowsort label-3501
SELECT 70 * ( + - 15 ) / + COALESCE ( + 15, - + 26 ) - + COUNT ( * ) - + - 23
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT - - COUNT( * ) * COALESCE ( + 85, + - 29 ) * - 66 + COUNT( * ) - - CASE + 72 WHEN - 75 THEN NULL ELSE 19 END
----
-5590

skipif mysql # not compatible
query I rowsort label-3502
SELECT - - COUNT ( * ) * COALESCE ( + 85, + - 29 ) * - 66 + COUNT ( * ) - - CASE + 72 WHEN - 75 THEN NULL ELSE 19 END
----
-5590

query I rowsort
SELECT 23 + + 60 AS col1
----
83

query I rowsort
SELECT 70 + - 40
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3505
SELECT CAST( NULL AS SIGNED ) * + 11 + + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT CAST ( NULL AS INTEGER ) * + 11 + + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 3 + - 79 AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3507
SELECT + NULLIF ( 32, 39 * - CASE 91 WHEN + - COALESCE ( - - 67, - + COUNT( * ), + - 13 * COUNT( * ) + - 92 ) THEN 99 * - CAST( NULL AS DECIMAL ) WHEN + 99 THEN NULL WHEN - 14 THEN 79 WHEN - 44 / - 67 THEN NULL END * 91 ) * + 2 - ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT + NULLIF ( 32, 39 * - CASE 91 WHEN + - COALESCE ( - - 67, - + COUNT ( * ), + - 13 * COUNT ( * ) + - 92 ) THEN 99 * - CAST ( NULL AS REAL ) WHEN + 99 THEN NULL WHEN - 14 THEN 79 WHEN - 44 / - 67 THEN NULL END * 91 ) * + 2 - ( CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT + 91 * + COALESCE ( COALESCE ( - 43, - 35 * - 10, + 46 ), - 9 * + 18 )
----
-3913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3509
SELECT + CAST( - 8 AS SIGNED ) * - CASE + - 86 WHEN - + 38 THEN - - 51 * - + NULLIF ( - ( + 75 ), 97 * - 31 + 55 ) WHEN + ( + 86 ) * - 90 + 55 THEN - COUNT( * ) END * 95 + - 78 - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT + CAST ( - 8 AS INTEGER ) * - CASE + - 86 WHEN - + 38 THEN - - 51 * - + NULLIF ( - ( + 75 ), 97 * - 31 + 55 ) WHEN + ( + 86 ) * - 90 + 55 THEN - COUNT ( * ) END * 95 + - 78 - 97 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 62 + + - 5
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL + 7 + + - MAX( ALL - + ( + - 76 ) ) + + 68 + + 60 + - 99 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + 7 + + - MAX ( ALL - + ( + - 76 ) ) + + 68 + + 60 + - 99 AS col1
----
-40

query I rowsort
SELECT 7 * - 46 + - 90
----
-412

query I rowsort
SELECT DISTINCT 82 + 72
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT + CASE + + 92 WHEN 11 THEN ( + + ( - COUNT( * ) ) ) * + - 61 ELSE - 31 END + - - 29
----
-2

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT + CASE + + 92 WHEN 11 THEN ( + + ( - COUNT ( * ) ) ) * + - 61 ELSE - 31 END + - - 29
----
-2

query I rowsort
SELECT 87 + 36 + + 46 * 26 + + 89 + 63 col1
----
1471

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3517
SELECT 81 AS col2, MIN( + - ( - CASE - - 33 WHEN 8 THEN 9 DIV + + 78 + + - 5 + - - 35 ELSE 39 END ) ) * - 2 AS col2
----
81
-78

skipif mysql # not compatible
query II rowsort label-3517
SELECT 81 AS col2, MIN ( + - ( - CASE - - 33 WHEN 8 THEN 9 / + + 78 + + - 5 + - - 35 ELSE 39 END ) ) * - 2 AS col2
----
81
-78

query II rowsort
SELECT 17 AS col1, 94
----
17
94

query I rowsort
SELECT ALL - 44 + 20 + + ( 66 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT COUNT( + 26 ) * 72 * - 35 AS col0
----
-2520

skipif mysql # not compatible
query I rowsort label-3520
SELECT COUNT ( + 26 ) * 72 * - 35 AS col0
----
-2520

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

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL - COUNT ( * ) / + - 59
----
0

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

skipif mysql # not compatible
query I rowsort label-3522
SELECT COUNT ( ALL - 81 ) + - 50 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT 98 AS col1, 8 * + + NULLIF ( - 92, + NULLIF ( - 93, 39 ) * 22 * - - COUNT( * ) * 10 * - 0 + + 9 ) - 8 AS col2
----
98
-744

skipif mysql # not compatible
query II rowsort label-3523
SELECT 98 AS col1, 8 * + + NULLIF ( - 92, + NULLIF ( - 93, 39 ) * 22 * - - COUNT ( * ) * 10 * - 0 + + 9 ) - 8 AS col2
----
98
-744

query I rowsort
SELECT 83 + - 52
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL + CASE - 68 WHEN COALESCE ( 94, 86, 32 ) THEN NULL WHEN 44 * + + COUNT( * ) * + 92 * + 5 + + COUNT( * ) THEN 83 + - 78 ELSE NULL END + - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL + CASE - 68 WHEN COALESCE ( 94, 86, 32 ) THEN NULL WHEN 44 * + + COUNT ( * ) * + 92 * + 5 + + COUNT ( * ) THEN 83 + - 78 ELSE NULL END + - 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT ALL - MIN( DISTINCT - 18 ) + 6
----
24

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL - MIN ( DISTINCT - 18 ) + 6
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT 99 + 11 + - 68 * - - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-3528
SELECT 99 + 11 + - 68 * - - COUNT ( * )
----
42

query I rowsort
SELECT 8 + + - 71 + 41 * - 21 + + + 8
----
-916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT DISTINCT - COALESCE ( 0, COALESCE ( - 10, ( 67 ) + - + 22 + - 97 ) * CAST( NULL AS SIGNED ) ) * + + 6
----
0

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - COALESCE ( 0, COALESCE ( - 10, ( 67 ) + - + 22 + - 97 ) * CAST ( NULL AS INTEGER ) ) * + + 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL COUNT( + 56 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL COUNT ( + 56 ) col2
----
1

query I rowsort
SELECT ALL + 0 - + 32 AS col1
----
-32

query I rowsort
SELECT 31 + + - ( + - 75 )
----
106

query I rowsort
SELECT - ( 22 ) + + 32 + + 42 * 99
----
4168

query I rowsort
SELECT DISTINCT - - 54 * - - 79
----
4266

onlyif mysql # aggregate syntax: 
query II rowsort label-3536
SELECT ALL - + 99 AS col2, + COUNT( * ) + + 51 AS col2
----
-99
52

skipif mysql # not compatible
query II rowsort label-3536
SELECT ALL - + 99 AS col2, + COUNT ( * ) + + 51 AS col2
----
-99
52

query I rowsort
SELECT 20 + - 71 AS col1
----
-51

query I rowsort
SELECT ALL - 13 * + - 74 AS col1
----
962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT DISTINCT COUNT( DISTINCT + + COALESCE ( + + 85, - 84, - - 48 + - + 77 + CAST( NULL AS SIGNED ) + - + 72 * 86 ) ) * - 61
----
-61

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT COUNT ( DISTINCT + + COALESCE ( + + 85, - 84, - - 48 + - + 77 + CAST ( NULL AS INTEGER ) + - + 72 * 86 ) ) * - 61
----
-61

query I rowsort
SELECT DISTINCT - + 37 * + 0 AS col0
----
0

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

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

query I rowsort
SELECT ALL + 95 + - 37
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3543
SELECT 15 + CAST( NULL AS SIGNED ) * - 81 / 43 * - 61 * - 53 * - - 23 / + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT 15 + CAST ( NULL AS INTEGER ) * - 81 / 43 * - 61 * - 53 * - - 23 / + 76 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3544
SELECT - 7 * + + CASE + + COUNT( 36 ) WHEN AVG ( + ( 99 ) ) THEN - SUM( DISTINCT - - 20 ) * + 66 * COUNT( * ) - + 60 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END / - 19 - + 96 * - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT - 7 * + + CASE + + COUNT ( 36 ) WHEN AVG ( + ( 99 ) ) THEN - SUM ( DISTINCT - - 20 ) * + 66 * COUNT ( * ) - + 60 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END / - 19 - + 96 * - 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT 18 * MIN( - 19 )
----
-342

skipif mysql # not compatible
query I rowsort label-3545
SELECT 18 * MIN ( - 19 )
----
-342

query II rowsort
SELECT - 17 AS col0, + 42 * + 23 * + - 74
----
-17
-71484

query I rowsort
SELECT ALL 53 + - 76 + + + 21 * - + 47 + + 93
----
-917

query I rowsort
SELECT DISTINCT 65 + + + 70 AS col2
----
135

query I rowsort
SELECT CASE + 86 WHEN - - ( 47 ) THEN + 75 / COALESCE ( - 68, 61 ) WHEN + 43 + + 84 - 18 THEN NULL ELSE NULL END + - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT 41 + MIN( - 10 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT 41 + MIN ( - 10 ) AS col1
----
31

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

query I rowsort
SELECT DISTINCT 52 + - - 58 + - 77 * 68
----
-5126

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT - 64 * - COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-3553
SELECT - 64 * - COUNT ( * ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT DISTINCT 87 + + 84 + - MAX( DISTINCT - 65 ) AS col1
----
236

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT 87 + + 84 + - MAX ( DISTINCT - 65 ) AS col1
----
236

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT DISTINCT 98 DIV + - 63
----
-1

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT 98 / + - 63
----
-1

query I rowsort
SELECT ALL - 13 - - 49 + + 53
----
89

query I rowsort
SELECT + 28 * + 66
----
1848

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

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

query I rowsort
SELECT - NULLIF ( - 29, - 17 ) AS col1
----
29

query I rowsort
SELECT DISTINCT 51 - 34
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT COUNT( DISTINCT + + 44 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT COUNT ( DISTINCT + + 44 ) col1
----
1

query II rowsort
SELECT - 97 * - 76 AS col1, 30 AS col0
----
7372
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT SUM( - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT SUM ( - 61 )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3564
SELECT DISTINCT + - MIN( 31 ) DIV - ( - 89 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT + - MIN ( 31 ) / - ( - 89 ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3565
SELECT - 27 DIV 68 AS col2, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-3565
SELECT - 27 / 68 AS col2, + COUNT ( * ) AS col2
----
0
1

query II rowsort
SELECT ALL 93 AS col1, ( - 73 ) AS col2
----
93
-73

query I rowsort
SELECT DISTINCT + 76 * + - 99 AS col1
----
-7524

query II rowsort
SELECT 55, 54 AS col2
----
55
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL + - CASE - 20 WHEN + 35 THEN NULL WHEN 11 THEN NULL WHEN - - 78 + COUNT( * ) THEN - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL + - CASE - 20 WHEN + 35 THEN NULL WHEN 11 THEN NULL WHEN - - 78 + COUNT ( * ) THEN - 92 END
----
NULL

query I rowsort
SELECT ALL - 84 * + - 82 + 79 + - 31 AS col1
----
6936

query I rowsort
SELECT 68 * - 0 + 57
----
57

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

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

query I rowsort
SELECT - 82 + - + 45 + ( - 40 )
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3574
SELECT ALL - 72 * 10 + + 69 * 44 * + + ( + COUNT( * ) ) + - 33 + SUM( ALL - - 67 ) * - CAST( + 63 AS SIGNED ) * 70 + 59 * 74 DIV 48
----
-293097

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL - 72 * 10 + + 69 * 44 * + + ( + COUNT ( * ) ) + - 33 + SUM ( ALL - - 67 ) * - CAST ( + 63 AS INTEGER ) * 70 + 59 * 74 / 48
----
-293097

query I rowsort
SELECT + NULLIF ( + 92, - - 60 + - 96 )
----
92

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

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

query II rowsort
SELECT ALL - + 38 * + + 66 * + 37 + + + 42 AS col2, - 11
----
-92754
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3578
SELECT ALL AVG ( DISTINCT 58 ) * - - COUNT( * ) + - 21 + - AVG ( + CAST( NULL AS DECIMAL ) ) * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL AVG ( DISTINCT 58 ) * - - COUNT ( * ) + - 21 + - AVG ( + CAST ( NULL AS REAL ) ) * + 79
----
NULL

query I rowsort
SELECT + ( - 51 ) + + 33 + + 8 + - 6 * - 72
----
422

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL + 35 * + NULLIF ( + COUNT( * ), + 99 )
----
35

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL + 35 * + NULLIF ( + COUNT ( * ), + 99 )
----
35

query I rowsort
SELECT NULLIF ( + + 46, 37 ) * 30 * + - 93 + 24
----
-128316

query I rowsort
SELECT - ( 10 ) + + 96
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT - COUNT( * ) * 73 - + 33
----
-106

skipif mysql # not compatible
query I rowsort label-3583
SELECT - COUNT ( * ) * 73 - + 33
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3584
SELECT + COUNT( DISTINCT + + 34 ), + 21 DIV NULLIF ( 34, ( + - 48 ) * - 0 - - 91 - + 47 * 48 * + + 24 * 80 ) + + 24 AS col2
----
1
24

skipif mysql # not compatible
query II rowsort label-3584
SELECT + COUNT ( DISTINCT + + 34 ), + 21 / NULLIF ( 34, ( + - 48 ) * - 0 - - 91 - + 47 * 48 * + + 24 * 80 ) + + 24 AS col2
----
1
24

query II rowsort
SELECT - 34 + - 68 AS col2, - 54 * + ( - + 70 ) + - 71 col2
----
-102
3709

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT ALL - 72 * + COUNT( * ) * - 53 * + + 46 col0
----
175536

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL - 72 * + COUNT ( * ) * - 53 * + + 46 col0
----
175536

onlyif mysql # aggregate syntax: 
query II rowsort label-3588
SELECT ALL + 18 * - + 22, COUNT( * ) AS col0
----
-396
1

skipif mysql # not compatible
query II rowsort label-3588
SELECT ALL + 18 * - + 22, COUNT ( * ) AS col0
----
-396
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3589
SELECT + 28 DIV - NULLIF ( - 56, - 68 * CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3589
SELECT + 28 / - NULLIF ( - 56, - 68 * CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT - ( - COUNT( - 4 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3590
SELECT - ( - COUNT ( - 4 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT + 80 + + 33 + CAST( NULL AS SIGNED ) * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT + 80 + + 33 + CAST ( NULL AS INTEGER ) * - 43
----
NULL

query III rowsort
SELECT - 9 + + 30 AS col1, - 51, 1 AS col2
----
21
-51
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3593
SELECT + 68 * - 91, - CAST( NULL AS SIGNED ) AS col2
----
-6188
NULL

skipif mysql # not compatible
query II rowsort label-3593
SELECT + 68 * - 91, - CAST ( NULL AS INTEGER ) AS col2
----
-6188
NULL

query I rowsort
SELECT + 74 * 39 AS col1
----
2886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3595
SELECT + 86 + - ( - 80 ) * - ( 61 ) * - MIN( DISTINCT 85 ) * 2 - - 81 + - COUNT( DISTINCT - 51 ) + - 33 + - 87 DIV 19
----
829729

skipif mysql # not compatible
query I rowsort label-3595
SELECT + 86 + - ( - 80 ) * - ( 61 ) * - MIN ( DISTINCT 85 ) * 2 - - 81 + - COUNT ( DISTINCT - 51 ) + - 33 + - 87 / 19
----
829729

query I rowsort
SELECT ALL - ( + + 82 ) * + 13 AS col0
----
-1066

query I rowsort
SELECT + - 74 * - 85
----
6290

query I rowsort
SELECT ALL - 69 * + 14
----
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT + 73 + + MAX( - - 41 ) col2
----
114

skipif mysql # not compatible
query I rowsort label-3599
SELECT + 73 + + MAX ( - - 41 ) col2
----
114

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3602
SELECT ALL 61 * + 0 DIV - 54 + - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL 61 * + 0 / - 54 + - 81 AS col1
----
-81

query I rowsort
SELECT + 0 + + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ( COUNT( DISTINCT - 27 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3604
SELECT ( COUNT ( DISTINCT - 27 ) ) AS col1
----
1

query I rowsort
SELECT - 14 + + - 43
----
-57

query I rowsort
SELECT - + 17 + - - 28
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3607
SELECT + + 47 * - CASE - + 66 WHEN + 31 THEN NULL WHEN MIN( DISTINCT - CAST( + 86 AS SIGNED ) ) THEN NULL ELSE + - 48 END * + 41 * - + 70, + 16 * - SUM( DISTINCT 39 ) AS col0
----
-6474720
-624

skipif mysql # not compatible
query II rowsort label-3607
SELECT + + 47 * - CASE - + 66 WHEN + 31 THEN NULL WHEN MIN ( DISTINCT - CAST ( + 86 AS INTEGER ) ) THEN NULL ELSE + - 48 END * + 41 * - + 70, + 16 * - SUM ( DISTINCT 39 ) AS col0
----
-6474720
-624

query I rowsort
SELECT - - 42 + - ( + + 99 )
----
-57

query I rowsort
SELECT DISTINCT + + 70 * + + ( + - 83 )
----
-5810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3610
SELECT DISTINCT + COUNT( * ) DIV - + COALESCE ( + + 85, - + 1, - 23 DIV - CASE + 47 WHEN ( - 85 ) THEN COUNT( DISTINCT 97 ) * + - NULLIF ( NULLIF ( - 71, 60 * - 16 - NULLIF ( 42 + - 48 * - 29, + COUNT( * ) + 49 ) ), 83 ) * + 50 + ( COUNT( * ) + 28 * + 66 ) WHEN - 46 THEN + 68 END ) + 64 * + 6 + 41
----
425

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT + COUNT ( * ) / - + COALESCE ( + + 85, - + 1, - 23 / - CASE + 47 WHEN ( - 85 ) THEN COUNT ( DISTINCT 97 ) * + - NULLIF ( NULLIF ( - 71, 60 * - 16 - NULLIF ( 42 + - 48 * - 29, + COUNT ( * ) + 49 ) ), 83 ) * + 50 + ( COUNT ( * ) + 28 * + 66 ) WHEN - 46 THEN + 68 END ) + 64 * + 6 + 41
----
425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT DISTINCT - - COUNT( * ) * - CASE ( + COUNT( * ) ) WHEN - CAST( NULL AS SIGNED ) - 15 THEN 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - - COUNT ( * ) * - CASE ( + COUNT ( * ) ) WHEN - CAST ( NULL AS INTEGER ) - 15 THEN 58 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT ALL 57 DIV 96 + + 55 * - 30 + + 23 AS col2
----
-1627

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL 57 / 96 + + 55 * - 30 + + 23 AS col2
----
-1627

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT + - 46 * 96 + MAX( - - 7 ) * 19
----
-4283

skipif mysql # not compatible
query I rowsort label-3613
SELECT + - 46 * 96 + MAX ( - - 7 ) * 19
----
-4283

query II rowsort
SELECT + 13 AS col1, - ( + + 59 ) AS col0
----
13
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT 3 * + COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-3615
SELECT 3 * + COUNT ( * ) col1
----
3

query I rowsort
SELECT DISTINCT + 31 - - ( - 30 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3617
SELECT DISTINCT - 19 AS col2, + NULLIF ( + - 66, + - 33 + + - COUNT( * ) ) + + 87 AS col1
----
-19
21

skipif mysql # not compatible
query II rowsort label-3617
SELECT DISTINCT - 19 AS col2, + NULLIF ( + - 66, + - 33 + + - COUNT ( * ) ) + + 87 AS col1
----
-19
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT + 31 - - + 64 * + - NULLIF ( + 24, + COALESCE ( COUNT( * ), + - 21 ) - - 69 ) AS col1
----
-1505

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT + 31 - - + 64 * + - NULLIF ( + 24, + COALESCE ( COUNT ( * ), + - 21 ) - - 69 ) AS col1
----
-1505

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL - MIN( - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - MIN ( - 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT - SUM( DISTINCT 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT - SUM ( DISTINCT 32 )
----
-32

query II rowsort
SELECT + 41, 54 * + 12 * - 78 * - 13 AS col0
----
41
657072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3623
SELECT 13, + 76 * - ( 96 ) / - + COALESCE ( - - 57, + - COUNT( * ), + 62 * + - 54 ) + + CAST( NULL AS SIGNED ) + - - 90 / + - MAX( - 24 ) AS col0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-3623
SELECT 13, + 76 * - ( 96 ) / - + COALESCE ( - - 57, + - COUNT ( * ), + 62 * + - 54 ) + + CAST ( NULL AS INTEGER ) + - - 90 / + - MAX ( - 24 ) AS col0
----
13
NULL

query II rowsort
SELECT - 44, 37 + + ( - 63 ) + - + 98 AS col0
----
-44
-124

query I rowsort
SELECT 2 - - + 29 + 41 * - 86
----
-3495

query II rowsort
SELECT DISTINCT 51 AS col1, - 77 AS col0
----
51
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL CASE + 5 WHEN - CASE WHEN NOT 80 BETWEEN - 85 AND 13 + + 29 THEN + 6 END / + - 45 THEN NULL WHEN - - ( + COUNT( * ) ) * ( ( + 15 ) ) THEN NULL ELSE + COUNT( * ) END * - 64
----
-64

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL CASE + 5 WHEN - CASE WHEN NOT 80 BETWEEN - 85 AND 13 + + 29 THEN + 6 END / + - 45 THEN NULL WHEN - - ( + COUNT ( * ) ) * ( ( + 15 ) ) THEN NULL ELSE + COUNT ( * ) END * - 64
----
-64

query II rowsort
SELECT ALL 56 AS col0, + 75 + 77 AS col1
----
56
152

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3630
SELECT 6 * + + CASE - COUNT( * ) WHEN 6 * 55 + 28 + + - 64 + + + 92 - - COUNT( ALL + - 3 ) + + - 72 * - COUNT( * ) * + COUNT( * ) * + 99 * 36 + - CASE 13 + - 43 WHEN + 14 * 55 THEN NULL WHEN ( - ( - SUM( ( + 95 ) ) ) ) + + 7 / + MAX( DISTINCT 65 ) THEN AVG ( DISTINCT + 41 ) * + 9 WHEN - MIN( 78 ) / + 10 THEN MAX( ALL 88 ) END THEN 27 / 54 WHEN - CAST( NULL AS SIGNED ) THEN + CASE - CAST( NULL AS SIGNED ) WHEN - CASE 84 WHEN 72 - - 39 THEN NULL WHEN - 42 THEN NULL ELSE + 69 END * 94 THEN + 21 * + 11 ELSE 18 END * COUNT( * ) WHEN COUNT( * ) * 90 + 92 * 41 THEN NULLIF ( CAST( + 94 AS DECIMAL ), + 25 * CAST( NULL AS SIGNED ) + - 55 ) + 39 * + COUNT( * ) ELSE - CASE 23 WHEN 1 THEN + 39 * ( - 46 * 8 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT 6 * + + CASE - COUNT ( * ) WHEN 6 * 55 + 28 + + - 64 + + + 92 - - COUNT ( ALL + - 3 ) + + - 72 * - COUNT ( * ) * + COUNT ( * ) * + 99 * 36 + - CASE 13 + - 43 WHEN + 14 * 55 THEN NULL WHEN ( - ( - SUM ( ( + 95 ) ) ) ) + + 7 / + MAX ( DISTINCT 65 ) THEN AVG ( DISTINCT + 41 ) * + 9 WHEN - MIN ( 78 ) / + 10 THEN MAX ( ALL 88 ) END THEN 27 / 54 WHEN - CAST ( NULL AS INTEGER ) THEN + CASE - CAST ( NULL AS INTEGER ) WHEN - CASE 84 WHEN 72 - - 39 THEN NULL WHEN - 42 THEN NULL ELSE + 69 END * 94 THEN + 21 * + 11 ELSE 18 END * COUNT ( * ) WHEN COUNT ( * ) * 90 + 92 * 41 THEN NULLIF ( CAST ( + 94 AS REAL ), + 25 * CAST ( NULL AS INTEGER ) + - 55 ) + 39 * + COUNT ( * ) ELSE - CASE 23 WHEN 1 THEN + 39 * ( - 46 * 8 ) END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3631
SELECT DISTINCT + 49, - 71 + + + 86 - - COALESCE ( - 95, - MIN( + 6 ), COUNT( * ) * - NULLIF ( - 57, NULLIF ( - 73, + + 61 / 83 + 44 * - COUNT( * ) ) ) * + SUM( 14 ) ) * 62 AS col2
----
49
-5875

skipif mysql # not compatible
query II rowsort label-3631
SELECT DISTINCT + 49, - 71 + + + 86 - - COALESCE ( - 95, - MIN ( + 6 ), COUNT ( * ) * - NULLIF ( - 57, NULLIF ( - 73, + + 61 / 83 + 44 * - COUNT ( * ) ) ) * + SUM ( 14 ) ) * 62 AS col2
----
49
-5875

query I rowsort
SELECT ALL 1 + - 25
----
-24

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

query I rowsort
SELECT - ( - 18 ) - 69 AS col2
----
-51

query I rowsort
SELECT DISTINCT + 90 + - + 25 * + 47 * 87 AS col0
----
-102135

query II rowsort
SELECT ALL + ( 38 ) + - + 57, + 35 - - + 59 + - 25 AS col1
----
-19
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT 31 * - ( - 46 ) + COUNT( * ) AS col0
----
1427

skipif mysql # not compatible
query I rowsort label-3637
SELECT 31 * - ( - 46 ) + COUNT ( * ) AS col0
----
1427

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT ALL + CAST( NULL AS SIGNED ) * - 89 * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL + CAST ( NULL AS INTEGER ) * - 89 * COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3640
SELECT ALL + 96 + - + 38 + CAST( + + 17 AS SIGNED ) * - 7 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL + 96 + - + 38 + CAST ( + + 17 AS INTEGER ) * - 7 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3641
SELECT 54 - - - COALESCE ( - 84, - - 1 * + - 17, - + 20 ) * CASE - 94 WHEN - 89 THEN CAST( NULL AS SIGNED ) ELSE NULL END / - COUNT( + + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT 54 - - - COALESCE ( - 84, - - 1 * + - 17, - + 20 ) * CASE - 94 WHEN - 89 THEN CAST ( NULL AS INTEGER ) ELSE NULL END / - COUNT ( + + 80 )
----
NULL

query II rowsort
SELECT - 52 AS col0, 7
----
-52
7

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3644
SELECT + COUNT( * ) DIV 37 + - ( - MAX( ALL - 22 ) ) * - + 66 + + SUM( DISTINCT + 9 ) AS col2
----
1461

skipif mysql # not compatible
query I rowsort label-3644
SELECT + COUNT ( * ) / 37 + - ( - MAX ( ALL - 22 ) ) * - + 66 + + SUM ( DISTINCT + 9 ) AS col2
----
1461

query II rowsort
SELECT + 86 AS col0, - 48
----
86
-48

query I rowsort
SELECT + + 71 * 22 + 74 + - 57 * + 1 AS col2
----
1579

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL - COUNT( ALL - 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - COUNT ( ALL - 26 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3648
SELECT + 9 * - COUNT( * ) * - - NULLIF ( + - COUNT( 29 ), + + 76 * 66 ) - ( + - 50 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT + 9 * - COUNT ( * ) * - - NULLIF ( + - COUNT ( 29 ), + + 76 * 66 ) - ( + - 50 ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT 12 * + - MIN( - - 97 )
----
-1164

skipif mysql # not compatible
query I rowsort label-3649
SELECT 12 * + - MIN ( - - 97 )
----
-1164

onlyif mysql # DIV for integer division: 
query I rowsort label-3650
SELECT ALL 29 DIV + - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL 29 / + - 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT COUNT( ALL - - 22 ) * ( + - COUNT( * ) ) + - - 51 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3651
SELECT COUNT ( ALL - - 22 ) * ( + - COUNT ( * ) ) + - - 51 AS col1
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-3652
SELECT 93 DIV - 13 col2, 50 * + + 79 AS col2
----
-7
3950

skipif mysql # not compatible
query II rowsort label-3652
SELECT 93 / - 13 col2, 50 * + + 79 AS col2
----
-7
3950

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL - CASE 42 WHEN + 47 + - - COUNT( * ) * - + 59 * - 64 THEN NULL WHEN 50 THEN + 92 * + 15 - + COUNT( * ) + + 0 * - 5 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - CASE 42 WHEN + 47 + - - COUNT ( * ) * - + 59 * - 64 THEN NULL WHEN 50 THEN + 92 * + 15 - + COUNT ( * ) + + 0 * - 5 END AS col1
----
NULL

query I rowsort
SELECT - 38 * - 28 + - 66 AS col1
----
998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT ALL - CAST( - + 67 AS SIGNED ) * CAST( - ( - 39 ) AS SIGNED ) + + 9 AS col1
----
2622

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - CAST ( - + 67 AS INTEGER ) * CAST ( - ( - 39 ) AS INTEGER ) + + 9 AS col1
----
2622

query I rowsort
SELECT 12 + 81 + - 54 * 75 - - 5
----
-3952

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT 21 + - 25 + 17 + - 1 * + + 10 AS col0, COALESCE ( + 42, - 88, - COALESCE ( - COALESCE ( + MIN( ALL + 42 ), 34 ), 24 ) ) * 40 AS col2
----
3
1680

skipif mysql # not compatible
query II rowsort label-3658
SELECT 21 + - 25 + 17 + - 1 * + + 10 AS col0, COALESCE ( + 42, - 88, - COALESCE ( - COALESCE ( + MIN ( ALL + 42 ), 34 ), 24 ) ) * 40 AS col2
----
3
1680

query I rowsort
SELECT 28 * - - ( + + 18 )
----
504

query I rowsort
SELECT 18 * - 14 * - 56 + - - 12
----
14124

onlyif mysql # aggregate syntax: 
query II rowsort label-3661
SELECT ALL - ( - - 66 ) AS col1, 45 * + ( - COUNT( * ) ) AS col2
----
-66
-45

skipif mysql # not compatible
query II rowsort label-3661
SELECT ALL - ( - - 66 ) AS col1, 45 * + ( - COUNT ( * ) ) AS col2
----
-66
-45

query II rowsort
SELECT 18 * - 64 AS col2, 63 col0
----
-1152
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3663
SELECT ALL + COALESCE ( + 77, + - 85 + 12 + - 2 * - + 94 ) + - 9 DIV + + NULLIF ( - 28, + 28 * - + 50 + - SUM( DISTINCT - 81 ) + ( - 79 ) * - 97 * + 84 - - ( 69 ) ) + 14
----
91

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + COALESCE ( + 77, + - 85 + 12 + - 2 * - + 94 ) + - 9 / + + NULLIF ( - 28, + 28 * - + 50 + - SUM ( DISTINCT - 81 ) + ( - 79 ) * - 97 * + 84 - - ( 69 ) ) + 14
----
91

query I rowsort
SELECT 43 * - 33 AS col0
----
-1419

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT - SUM( DISTINCT 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-3665
SELECT - SUM ( DISTINCT 43 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3666
SELECT ALL + - 41 + 62 AS col2, + 53 * + COUNT( * ) * + 96
----
21
5088

skipif mysql # not compatible
query II rowsort label-3666
SELECT ALL + - 41 + 62 AS col2, + 53 * + COUNT ( * ) * + 96
----
21
5088

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3668
SELECT DISTINCT - + NULLIF ( + 65, - - CAST( + - 48 AS SIGNED ) * 94 - - + 40 + 28 + - - 31 / + 29 ) * + 66, - 11 AS col1
----
-4290
-11

skipif mysql # not compatible
query II rowsort label-3668
SELECT DISTINCT - + NULLIF ( + 65, - - CAST ( + - 48 AS INTEGER ) * 94 - - + 40 + 28 + - - 31 / + 29 ) * + 66, - 11 AS col1
----
-4290
-11

query I rowsort
SELECT 46 + - 35 AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3670
SELECT DISTINCT + 95 + - COUNT( * ) AS col2, + 17
----
94
17

skipif mysql # not compatible
query II rowsort label-3670
SELECT DISTINCT + 95 + - COUNT ( * ) AS col2, + 17
----
94
17

query I rowsort
SELECT DISTINCT + + ( - 17 ) * - 11 AS col1
----
187

query I rowsort
SELECT DISTINCT + + 99 + + 17 AS col0
----
116

query I rowsort
SELECT ALL - 45 + + + ( + - 57 )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT + - 49 + + COUNT( * ) * + 20 * - - 44 + 8
----
839

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + - 49 + + COUNT ( * ) * + 20 * - - 44 + 8
----
839

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT + + 65 + - - 62 + 14 DIV 98 DIV + 47 * + 33 col2
----
127

skipif mysql # not compatible
query I rowsort label-3675
SELECT + + 65 + - - 62 + 14 / 98 / + 47 * + 33 col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL CASE - MAX( + 34 ) WHEN 81 + + 44 THEN 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL CASE - MAX ( + 34 ) WHEN 81 + + 44 THEN 39 END
----
NULL

query I rowsort
SELECT DISTINCT - ( - 27 ) - 56 - 27 * - 86
----
2293

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT + 82 * - CAST( + - 87 AS SIGNED ) + + 25
----
7159

skipif mysql # not compatible
query I rowsort label-3679
SELECT + 82 * - CAST ( + - 87 AS INTEGER ) + + 25
----
7159

query I rowsort
SELECT ALL 73 * - 54 - + + 19 + + 53 AS col1
----
-3908

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3681
SELECT ALL + NULLIF ( SUM( DISTINCT - CAST( NULL AS SIGNED ) ), - + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + NULLIF ( SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ), - + 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT DISTINCT 3 * COUNT( * ) - + - 39 + - - 86 AS col0
----
128

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT 3 * COUNT ( * ) - + - 39 + - - 86 AS col0
----
128

query I rowsort
SELECT ALL 23 * + + 45
----
1035

query I rowsort
SELECT ALL 35 * + 48
----
1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3685
SELECT + CASE - - COUNT( - NULLIF ( + 82, 0 ) ) WHEN - + 4 THEN NULL WHEN 7 * + 18 - + - SUM( ALL + 97 ) + - 8 + + + 44 * + - ( + NULLIF ( - + COUNT( * ), + 52 ) ) + 62 THEN NULL WHEN + 46 THEN - CAST( NULL AS SIGNED ) + - 76 ELSE - CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT + CASE - - COUNT ( - NULLIF ( + 82, 0 ) ) WHEN - + 4 THEN NULL WHEN 7 * + 18 - + - SUM ( ALL + 97 ) + - 8 + + + 44 * + - ( + NULLIF ( - + COUNT ( * ), + 52 ) ) + 62 THEN NULL WHEN + 46 THEN - CAST ( NULL AS INTEGER ) + - 76 ELSE - CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT + 81 * 39 AS col2
----
3159

query I rowsort
SELECT ALL 87 * + 55 AS col0
----
4785

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT + MIN( - + 65 ) - 5 - - 61 col2
----
-9

skipif mysql # not compatible
query I rowsort label-3688
SELECT + MIN ( - + 65 ) - 5 - - 61 col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT + 99 DIV + 90
----
1

skipif mysql # not compatible
query I rowsort label-3689
SELECT + 99 / + 90
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT CASE - COUNT( * ) WHEN - - 34 THEN + 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT CASE - COUNT ( * ) WHEN - - 34 THEN + 59 ELSE NULL END
----
NULL

query I rowsort
SELECT + 45 * - 42 * + - 23 AS col0
----
43470

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3692
SELECT NULLIF ( + - 99, 11 * + + CAST( NULL AS DECIMAL ) ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3692
SELECT NULLIF ( + - 99, 11 * + + CAST ( NULL AS REAL ) ) AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3693
SELECT + 63 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-3693
SELECT + 63 / 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL + ( + - 70 ) * - COUNT( ALL 23 ) * - 40 + 44 + 68 AS col2
----
-2688

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL + ( + - 70 ) * - COUNT ( ALL 23 ) * - 40 + 44 + 68 AS col2
----
-2688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT ALL 52 * CAST( NULL AS SIGNED ) + + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL 52 * CAST ( NULL AS INTEGER ) + + 44 AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT + 9 * + 83 + + + 47
----
794

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3701
SELECT + + 24 * - COALESCE ( + 22, - COALESCE ( - 69, - 84 ) DIV - - 66 * - 95 ), COUNT( * ) + 85 AS col0
----
-528
86

skipif mysql # not compatible
query II rowsort label-3701
SELECT + + 24 * - COALESCE ( + 22, - COALESCE ( - 69, - 84 ) / - - 66 * - 95 ), COUNT ( * ) + 85 AS col0
----
-528
86

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

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

query I rowsort
SELECT DISTINCT - ( + - 78 ) AS col0
----
78

query I rowsort
SELECT DISTINCT + - 92 * - 14 AS col0
----
1288

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3706
SELECT - ( - COUNT( * ) ) DIV - - 82
----
0

skipif mysql # not compatible
query I rowsort label-3706
SELECT - ( - COUNT ( * ) ) / - - 82
----
0

query I rowsort
SELECT + 30 * - 40 + 13 AS col0
----
-1187

query I rowsort
SELECT + 58 * + 70
----
4060

query I rowsort
SELECT 18 * + 11 - - 66 AS col0
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT ALL - 67 DIV - 70 * + - 86 + 92
----
92

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL - 67 / - 70 * + - 86 + 92
----
92

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3712
SELECT 28 * - 52 + - 98 DIV + + 85 col0, + 91 AS col2
----
-1457
91

skipif mysql # not compatible
query II rowsort label-3712
SELECT 28 * - 52 + - 98 / + + 85 col0, + 91 AS col2
----
-1457
91

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

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

query I rowsort
SELECT DISTINCT - ( - 54 ) * + + 16 * - 85 - - 16
----
-73424

query I rowsort
SELECT DISTINCT - 57 * + 92 + 62
----
-5182

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT ( - CASE 40 WHEN 99 - - - 57 THEN + 22 WHEN + MAX( DISTINCT + 87 ) - + 74 + + 10 * 73 THEN + 14 ELSE + COUNT( * ) * COUNT( * ) * + 78 + - 44 + + 34 END )
----
-68

skipif mysql # not compatible
query I rowsort label-3716
SELECT ( - CASE 40 WHEN 99 - - - 57 THEN + 22 WHEN + MAX ( DISTINCT + 87 ) - + 74 + + 10 * 73 THEN + 14 ELSE + COUNT ( * ) * COUNT ( * ) * + 78 + - 44 + + 34 END )
----
-68

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

query I rowsort
SELECT + 68 + 98 AS col2
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT + NULLIF ( + + 10, - SUM( ALL 31 ) )
----
10

skipif mysql # not compatible
query I rowsort label-3719
SELECT + NULLIF ( + + 10, - SUM ( ALL 31 ) )
----
10

query II rowsort
SELECT ( - 88 ) AS col0, - 93 + + 98 + - 31 - + 71 * + 57 AS col0
----
-88
-4073

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + CASE + + COUNT( * ) WHEN + + 8 * - 10 THEN + 51 END * + 6 * - 82 + + - 29 + - + 85 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT + CASE + + COUNT ( * ) WHEN + + 8 * - 10 THEN + 51 END * + 6 * - 82 + + - 29 + - + 85 col2
----
NULL

query I rowsort
SELECT + - 14 * 12 AS col2
----
-168

query I rowsort
SELECT ALL + ( + + 83 ) - - 49 AS col1
----
132

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT DISTINCT + 76 DIV 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT + 76 / 40 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT 68 + + - 60 * + + 11 * - MAX( + 63 )
----
41648

skipif mysql # not compatible
query I rowsort label-3726
SELECT 68 + + - 60 * + + 11 * - MAX ( + 63 )
----
41648

query I rowsort
SELECT - 97 * - 34 + + 59 + 8 + + 9 * - 24 AS col2
----
3149

query I rowsort
SELECT 98 * - - 32
----
3136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT + 20 + + 88 * - CAST( ( - - COALESCE ( + ( - 28 ), - COUNT( * ) * CASE - 14 WHEN - 30 THEN + 22 END + - - 52 ) ) AS SIGNED ) + + + 77
----
2561

skipif mysql # not compatible
query I rowsort label-3729
SELECT + 20 + + 88 * - CAST ( ( - - COALESCE ( + ( - 28 ), - COUNT ( * ) * CASE - 14 WHEN - 30 THEN + 22 END + - - 52 ) ) AS INTEGER ) + + + 77
----
2561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3730
SELECT COUNT( DISTINCT + CAST( - 57 AS SIGNED ) ) - + 37 + + 79 - - + 48 col0, 90 AS col2
----
91
90

skipif mysql # not compatible
query II rowsort label-3730
SELECT COUNT ( DISTINCT + CAST ( - 57 AS INTEGER ) ) - + 37 + + 79 - - + 48 col0, 90 AS col2
----
91
90

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

skipif mysql # not compatible
query I rowsort label-3731
SELECT + 3 - - COUNT ( * ) AS col1
----
4

query I rowsort
SELECT ALL - 24 * + 69 AS col1
----
-1656

query I rowsort
SELECT + 47 * + 15
----
705

query I rowsort
SELECT 55 + - - 22 + - 56 * 42 * - - 49 - + - 86 AS col1
----
-115085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3735
SELECT - 69 + - CASE + 39 WHEN - 81 THEN 4 + + COUNT( * ) * 68 * - - 66 * MAX( DISTINCT - + ( - + 20 ) ) * CAST( CASE 45 WHEN 96 THEN NULL ELSE + CAST( NULL AS SIGNED ) END AS SIGNED ) + 43 * COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT - 69 + - CASE + 39 WHEN - 81 THEN 4 + + COUNT ( * ) * 68 * - - 66 * MAX ( DISTINCT - + ( - + 20 ) ) * CAST ( CASE 45 WHEN 96 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS INTEGER ) + 43 * COUNT ( * ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT 12 + 41, 21 + 61 + + 95 - + 76 * - - 8 AS col2
----
53
-431

onlyif mysql # DIV for integer division: 
query II rowsort label-3737
SELECT DISTINCT + 68 DIV - 51 AS col1, ( + - 75 )
----
-1
-75

skipif mysql # not compatible
query II rowsort label-3737
SELECT DISTINCT + 68 / - 51 AS col1, ( + - 75 )
----
-1
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3738
SELECT 31 / + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3738
SELECT 31 / + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3740
SELECT 21 / - COUNT ( + 21 ) AS col0
----
-21

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

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL + COUNT ( * ) + 2 AS col0
----
3

query I rowsort
SELECT 27 * - 33 AS col1
----
-891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3743
SELECT DISTINCT + 5 + + COUNT( * ) - 28 + + 33 * 20 DIV NULLIF ( - - COUNT( * ), + 77 ) * - 98 * + MIN( CAST( + + ( 92 ) AS SIGNED ) )
----
-5950582

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT + 5 + + COUNT ( * ) - 28 + + 33 * 20 / NULLIF ( - - COUNT ( * ), + 77 ) * - 98 * + MIN ( CAST ( + + ( 92 ) AS INTEGER ) )
----
-5950582

query I rowsort
SELECT ALL 86 + 26 + + 64 AS col2
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3745
SELECT ALL + CAST( NULL AS SIGNED ) + 32 / + + 99 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + CAST ( NULL AS INTEGER ) + 32 / + + 99 * - 38
----
NULL

query I rowsort
SELECT 56 * + + 4 AS col0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT DISTINCT - NULLIF ( + SUM( + - 59 ), + + 20 + - - ( - COUNT( * ) ) )
----
59

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT - NULLIF ( + SUM ( + - 59 ), + + 20 + - - ( - COUNT ( * ) ) )
----
59

query I rowsort
SELECT DISTINCT - 79 - + 62
----
-141

query I rowsort
SELECT ALL + 49 - + 91
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT + 91 * + 26 * + COUNT( * ) AS col0
----
2366

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT + 91 * + 26 * + COUNT ( * ) AS col0
----
2366

query I rowsort
SELECT - 29 - + + NULLIF ( + 39, 24 / + 44 ) + 27 * - - 96
----
2524

query I rowsort
SELECT + 38 + + 24 + - + ( 42 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT + + 42 * ( COUNT( * ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT + + 42 * ( COUNT ( * ) ) AS col0
----
42

query I rowsort
SELECT + - COALESCE ( + 0, + 62 + + - 51 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT + COALESCE ( + 11, - NULLIF ( + COUNT( * ), - - 16 / + 47 ) * - 36 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3755
SELECT + COALESCE ( + 11, - NULLIF ( + COUNT ( * ), - - 16 / + 47 ) * - 36 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT COUNT( * ) * - + NULLIF ( + 14, 44 ) + + 35 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3756
SELECT COUNT ( * ) * - + NULLIF ( + 14, 44 ) + + 35 AS col2
----
21

query I rowsort
SELECT ALL + CASE + - 90 WHEN 67 THEN + 55 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT + CASE - 40 WHEN + + 17 * - 81 * + 25 - - + NULLIF ( - 28, + - COUNT( * ) ) + - 9 + - - 47 * - 45 THEN + - 63 ELSE 75 * - - COALESCE ( - COUNT( * ), 99 ) END
----
-75

skipif mysql # not compatible
query I rowsort label-3758
SELECT + CASE - 40 WHEN + + 17 * - 81 * + 25 - - + NULLIF ( - 28, + - COUNT ( * ) ) + - 9 + - - 47 * - 45 THEN + - 63 ELSE 75 * - - COALESCE ( - COUNT ( * ), 99 ) END
----
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3759
SELECT CAST( NULL AS DECIMAL ) * + NULLIF ( + NULLIF ( - 29, + 90 + + 49 / + - 93 + + CASE 52 WHEN + - 25 / - ( + 97 ) THEN NULL ELSE - + MIN( - 99 ) + - + MIN( - - 37 ) END * + 3 ), - 49 ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT CAST ( NULL AS REAL ) * + NULLIF ( + NULLIF ( - 29, + 90 + + 49 / + - 93 + + CASE 52 WHEN + - 25 / - ( + 97 ) THEN NULL ELSE - + MIN ( - 99 ) + - + MIN ( - - 37 ) END * + 3 ), - 49 ) + 70
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - - 69, - 77 ) * - + 28
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT 93 * + 18 + - - COUNT( * ) + - - COUNT( * ) * COUNT( * ) * - 52
----
1623

skipif mysql # not compatible
query I rowsort label-3761
SELECT 93 * + 18 + - - COUNT ( * ) + - - COUNT ( * ) * COUNT ( * ) * - 52
----
1623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3762
SELECT DISTINCT - 14 DIV + 26 * + 57 * 85 + CASE 11 WHEN - 93 THEN NULL WHEN + 34 THEN + + 94 + - - COUNT( * ) * COUNT( * ) + + + 18 + - ( + 60 ) * - 39 ELSE - + 4 DIV - 63 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT - 14 / + 26 * + 57 * 85 + CASE 11 WHEN - 93 THEN NULL WHEN + 34 THEN + + 94 + - - COUNT ( * ) * COUNT ( * ) + + + 18 + - ( + 60 ) * - 39 ELSE - + 4 / - 63 END AS col0
----
0

query I rowsort
SELECT DISTINCT + 3 + + + 58 - + + ( - 63 ) AS col1
----
124

query I rowsort
SELECT + 67 * + + 66 AS col2
----
4422

onlyif mysql # aggregate syntax: 
query II rowsort label-3765
SELECT COUNT( DISTINCT - 45 ) - + - 29 * 88, 86 AS col0
----
2553
86

skipif mysql # not compatible
query II rowsort label-3765
SELECT COUNT ( DISTINCT - 45 ) - + - 29 * 88, 86 AS col0
----
2553
86

query II rowsort
SELECT 63, 59 col0
----
63
59

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

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

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

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL 64 + - 64 + + CAST ( 33 AS INTEGER )
----
33

query II rowsort
SELECT 2 - - + ( + + 38 ) * + + 40 AS col2, 49 AS col1
----
1522
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3770
SELECT 6 AS col0, COALESCE ( + 26, - 15, + + 67 * + - 61 + - 39 + + 30 + - 20 + - CAST( NULL AS SIGNED ) * + - NULLIF ( - - 46, - 89 + 50 DIV 48 ), 3 * 87 DIV - + 66 ) AS col1
----
6
26

skipif mysql # not compatible
query II rowsort label-3770
SELECT 6 AS col0, COALESCE ( + 26, - 15, + + 67 * + - 61 + - 39 + + 30 + - 20 + - CAST ( NULL AS INTEGER ) * + - NULLIF ( - - 46, - 89 + 50 / 48 ), 3 * 87 / - + 66 ) AS col1
----
6
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT NULLIF ( 48, + COUNT( * ) * ( ( + - 23 ) ) ) * + 60 * - 97 AS col0
----
-279360

skipif mysql # not compatible
query I rowsort label-3771
SELECT NULLIF ( 48, + COUNT ( * ) * ( ( + - 23 ) ) ) * + 60 * - 97 AS col0
----
-279360

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT COUNT( - 50 ) * 73 * - COUNT( * ) * 73 AS col0
----
-5329

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT COUNT ( - 50 ) * 73 * - COUNT ( * ) * 73 AS col0
----
-5329

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT 27 - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-3773
SELECT 27 - - COUNT ( * )
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL COALESCE ( + SUM( ALL - 89 ), - + 39 * + 13 + 11 ) * + 36
----
-3204

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL COALESCE ( + SUM ( ALL - 89 ), - + 39 * + 13 + 11 ) * + 36
----
-3204

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

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

query I rowsort
SELECT ALL + ( - 98 ) * COALESCE ( - 62, + + 72, 37 ) + 60
----
6136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT CASE 72 WHEN - + 7 - + CAST( - + 69 AS SIGNED ) THEN 91 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT CASE 72 WHEN - + 7 - + CAST ( - + 69 AS INTEGER ) THEN 91 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT COALESCE ( - + 61, + 22 * 11 - COUNT( * ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-3779
SELECT COALESCE ( - + 61, + 22 * 11 - COUNT ( * ) ) AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3780
SELECT - CAST( - 66 AS SIGNED ) DIV - 46 + + - 59 + + + 0 DIV - 4 * - COUNT( * ) * - + 81 * - + 35 + - 98 DIV 11 * 40 AS col2
----
-380

skipif mysql # not compatible
query I rowsort label-3780
SELECT - CAST ( - 66 AS INTEGER ) / - 46 + + - 59 + + + 0 / - 4 * - COUNT ( * ) * - + 81 * - + 35 + - 98 / 11 * 40 AS col2
----
-380

query I rowsort
SELECT 62 * + 26 AS col0
----
1612

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3782
SELECT ALL - 1 col2, MIN( - 62 ) * 16 DIV + 60 AS col1
----
-1
-16

skipif mysql # not compatible
query II rowsort label-3782
SELECT ALL - 1 col2, MIN ( - 62 ) * 16 / + 60 AS col1
----
-1
-16

query I rowsort
SELECT COALESCE ( 70, 16 + + 78 ) + 69
----
139

query I rowsort
SELECT 46 + - - 69 AS col2
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-3785
SELECT ALL 56 DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL 56 / 96 AS col1
----
0

query I rowsort
SELECT ALL - + 52 * 84 AS col0
----
-4368

query I rowsort
SELECT DISTINCT + ( - 10 ) col1
----
-10

query I rowsort
SELECT - - 81 * - 29
----
-2349

query I rowsort
SELECT ALL + NULLIF ( - 55, 72 ) * + + 99 AS col2
----
-5445

query I rowsort
SELECT - + ( - 36 ) * 64 AS col1
----
2304

query I rowsort
SELECT - + 48 + 80 + - ( - 98 ) * + - 51
----
-4966

query II rowsort
SELECT + - 38 AS col1, 14 - - 89
----
-38
103

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

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

query II rowsort
SELECT + 66, + COALESCE ( - 19, + 88 ) + - 12 + 62 AS col2
----
66
31

query I rowsort
SELECT - 2 * - 25 * - - 87 * - 35
----
-152250

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT - COUNT( * ) AS col1, - 16 * + 75
----
-1
-1200

skipif mysql # not compatible
query II rowsort label-3796
SELECT - COUNT ( * ) AS col1, - 16 * + 75
----
-1
-1200

query II rowsort
SELECT ALL + - 85 AS col1, + 41 * + 79
----
-85
3239

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT - - 80 + - 42 + 73 - COUNT( * ) * + - MIN( - 7 ) col0
----
104

skipif mysql # not compatible
query I rowsort label-3798
SELECT - - 80 + - 42 + 73 - COUNT ( * ) * + - MIN ( - 7 ) col0
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3799
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 62
----
NULL
62

skipif mysql # not compatible
query II rowsort label-3799
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 62
----
NULL
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3800
SELECT ALL - 41 * + COUNT( ALL 16 ) + - + 31 - CAST( NULL AS DECIMAL ) * MAX( DISTINCT - 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL - 41 * + COUNT ( ALL 16 ) + - + 31 - CAST ( NULL AS REAL ) * MAX ( DISTINCT - 6 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3801
SELECT DISTINCT 17 AS col0, MIN( DISTINCT - 89 ) * + - 30
----
17
2670

skipif mysql # not compatible
query II rowsort label-3801
SELECT DISTINCT 17 AS col0, MIN ( DISTINCT - 89 ) * + - 30
----
17
2670

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT - + NULLIF ( - COUNT( * ), + - COUNT( - 90 ) - - NULLIF ( + 36, - + SUM( ALL - - ( 62 ) ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3803
SELECT - + NULLIF ( - COUNT ( * ), + - COUNT ( - 90 ) - - NULLIF ( + 36, - + SUM ( ALL - - ( 62 ) ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL 48 + - MIN( ALL 72 )
----
-24

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL 48 + - MIN ( ALL 72 )
----
-24

query I rowsort
SELECT - 47 + - 54
----
-101

query I rowsort
SELECT ALL 58 + + + 18 + 95 AS col2
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3807
SELECT ALL + 96 + - SUM( + 62 ) + - 3 DIV - 90 * - 56
----
34

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL + 96 + - SUM ( + 62 ) + - 3 / - 90 * - 56
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT + 16 + - 5 + - + 39 * + COUNT( * ) * - 48 col2
----
1883

skipif mysql # not compatible
query I rowsort label-3808
SELECT + 16 + - 5 + - + 39 * + COUNT ( * ) * - 48 col2
----
1883

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT + COUNT( ALL + + 76 ) + - 20 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3809
SELECT + COUNT ( ALL + + 76 ) + - 20 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3810
SELECT + 69 + - + 66 + + CASE NULLIF ( 46, + 90 * 77 ) WHEN - 69 * - 47 / + 26 / CAST( + ( 25 ) AS SIGNED ) * 56 + 11 THEN + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT + 69 + - + 66 + + CASE NULLIF ( 46, + 90 * 77 ) WHEN - 69 * - 47 / + 26 / CAST ( + ( 25 ) AS INTEGER ) * 56 + 11 THEN + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT + 80 DIV - - ( - 70 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3811
SELECT + 80 / - - ( - 70 ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3812
SELECT + 86 DIV COALESCE ( + 65, - - 14 + - 94, + MAX( - 5 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3812
SELECT + 86 / COALESCE ( + 65, - - 14 + - 94, + MAX ( - 5 ) )
----
1

query I rowsort
SELECT ALL 51 * + ( + 61 ) AS col1
----
3111

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT + ( - 52 ) + + COUNT( * ) + 83 - - 41 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3814
SELECT + ( - 52 ) + + COUNT ( * ) + 83 - - 41 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3815
SELECT ALL 47 / CASE COUNT( * ) WHEN 16 THEN ( 5 ) * 71 ELSE - 20 * 12 END * + + CASE + + 81 WHEN + + 90 * + SUM( ALL - + ( CAST( NULL AS SIGNED ) ) ) - 19 THEN 25 - + + NULLIF ( - 4, - 91 + COUNT( * ) ) WHEN 49 THEN NULL WHEN NULLIF ( - 39, + 90 ) / CASE WHEN NOT 18 + ( + CAST( - ( ( + CAST( - 69 AS DECIMAL ) ) ) AS SIGNED ) ) IS NOT NULL THEN NULL ELSE 89 - CASE 17 WHEN 89 THEN 79 END END THEN NULL WHEN 70 THEN - 48 END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL 47 / CASE COUNT ( * ) WHEN 16 THEN ( 5 ) * 71 ELSE - 20 * 12 END * + + CASE + + 81 WHEN + + 90 * + SUM ( ALL - + ( CAST ( NULL AS INTEGER ) ) ) - 19 THEN 25 - + + NULLIF ( - 4, - 91 + COUNT ( * ) ) WHEN 49 THEN NULL WHEN NULLIF ( - 39, + 90 ) / CASE WHEN NOT 18 + ( + CAST ( - ( ( + CAST ( - 69 AS REAL ) ) ) AS INTEGER ) ) IS NOT NULL THEN NULL ELSE 89 - CASE 17 WHEN 89 THEN 79 END END THEN NULL WHEN 70 THEN - 48 END - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3816
SELECT CAST( + - 34 AS SIGNED ) AS col1, 77
----
-34
77

skipif mysql # not compatible
query II rowsort label-3816
SELECT CAST ( + - 34 AS INTEGER ) AS col1, 77
----
-34
77

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

query I rowsort
SELECT - 20 * 1 + + 61
----
41

query I rowsort
SELECT + 64 - - NULLIF ( - 37, 0 + ( 26 ) )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3820
SELECT + - CAST( - MAX( 62 ) AS SIGNED ) * + 33 * 3 DIV COUNT( * ) AS col2
----
6138

skipif mysql # not compatible
query I rowsort label-3820
SELECT + - CAST ( - MAX ( 62 ) AS INTEGER ) * + 33 * 3 / COUNT ( * ) AS col2
----
6138

query I rowsort
SELECT DISTINCT - 47 * - 65 AS col1
----
3055

query I rowsort
SELECT ALL + 31 * + 25 + - - 68
----
843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3823
SELECT ALL + + 95 * 74 - - + 61 + - + 21 - - 87 DIV - + SUM( 33 ) AS col1
----
7068

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + + 95 * 74 - - + 61 + - + 21 - - 87 / - + SUM ( 33 ) AS col1
----
7068

query I rowsort
SELECT - + 50 - + + 15 AS col0
----
-65

query I rowsort
SELECT ALL + ( + - 67 ) * + 13 * 74
----
-64454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3826
SELECT - 36 * 49 * - + COALESCE ( + 29, - - 66, - COUNT( DISTINCT 68 ) * - SUM( - 19 ) DIV ( - 35 ) + + 19 + - COUNT( * ) * - COALESCE ( - - 65, 84 ) )
----
51156

skipif mysql # not compatible
query I rowsort label-3826
SELECT - 36 * 49 * - + COALESCE ( + 29, - - 66, - COUNT ( DISTINCT 68 ) * - SUM ( - 19 ) / ( - 35 ) + + 19 + - COUNT ( * ) * - COALESCE ( - - 65, 84 ) )
----
51156

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT ALL + 73 * 30 + + - 79 + - + MIN( ALL - - 44 ) + MAX( + ( + 87 ) ) * - ( COUNT( * ) ) + + MIN( ALL - - 68 ), + ( + 72 ) AS col2
----
2048
72

skipif mysql # not compatible
query II rowsort label-3827
SELECT ALL + 73 * 30 + + - 79 + - + MIN ( ALL - - 44 ) + MAX ( + ( + 87 ) ) * - ( COUNT ( * ) ) + + MIN ( ALL - - 68 ), + ( + 72 ) AS col2
----
2048
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3828
SELECT + 89 DIV + 47 AS col1, MAX( ALL 68 )
----
1
68

skipif mysql # not compatible
query II rowsort label-3828
SELECT + 89 / + 47 AS col1, MAX ( ALL 68 )
----
1
68

query I rowsort
SELECT - 2 * - 29 AS col0
----
58

query II rowsort
SELECT DISTINCT + ( - 95 ) * + - 99 * - 47 + + + NULLIF ( - 26, - 68 ), 74 AS col2
----
-442061
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT DISTINCT CAST( + + CASE 10 WHEN - + 31 THEN + 49 + + 21 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT CAST ( + + CASE 10 WHEN - + 31 THEN + 49 + + 21 END AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + 92 - - 64 AS col2
----
156

query I rowsort
SELECT - 5 - + 17
----
-22

query I rowsort
SELECT DISTINCT - 19 * - + 18
----
342

query I rowsort
SELECT - 81 - + + 74
----
-155

query I rowsort
SELECT - 39 * - + 14
----
546

query I rowsort
SELECT + 45 * - 21 * + 33
----
-31185

query I rowsort
SELECT - 57 + + 22
----
-35

query II rowsort
SELECT ALL 37, + 23 AS col1
----
37
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3841
SELECT DISTINCT - ( - CAST( - 35 AS SIGNED ) ) * + 1 * 73, + 23 * - CASE ( MIN( + CASE + 98 WHEN - 38 * 40 + 56 THEN NULL WHEN 50 THEN + 52 END ) ) WHEN - 95 THEN + COUNT( DISTINCT + 63 ) ELSE - + 58 + ( + 89 ) END AS col2
----
-2555
-713

skipif mysql # not compatible
query II rowsort label-3841
SELECT DISTINCT - ( - CAST ( - 35 AS INTEGER ) ) * + 1 * 73, + 23 * - CASE ( MIN ( + CASE + 98 WHEN - 38 * 40 + 56 THEN NULL WHEN 50 THEN + 52 END ) ) WHEN - 95 THEN + COUNT ( DISTINCT + 63 ) ELSE - + 58 + ( + 89 ) END AS col2
----
-2555
-713

query II rowsort
SELECT 44 AS col2, + 18 AS col1
----
44
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT 62 - - + 78 + - COUNT( * ) + 25 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-3843
SELECT 62 - - + 78 + - COUNT ( * ) + 25 AS col2
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3844
SELECT 71 - + + NULLIF ( CASE CAST( 33 AS SIGNED ) WHEN - 35 * - COUNT( * ) THEN + 41 * - - 24 ELSE NULL END, 56 ) - - CAST( + - 80 AS SIGNED ) * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT 71 - + + NULLIF ( CASE CAST ( 33 AS INTEGER ) WHEN - 35 * - COUNT ( * ) THEN + 41 * - - 24 ELSE NULL END, 56 ) - - CAST ( + - 80 AS INTEGER ) * - 11
----
NULL

query I rowsort
SELECT 45 + - 6
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT SUM( + 5 ) + - - ( + ( - - 77 ) ) + - COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3846
SELECT SUM ( + 5 ) + - - ( + ( - - 77 ) ) + - COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT DISTINCT + MIN( + 3 ) + + COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT + MIN ( + 3 ) + + COUNT ( * ) AS col2
----
4

query I rowsort
SELECT DISTINCT ( - - ( + 53 ) ) + + ( - 99 ) + - 96 AS col0
----
-142

query I rowsort
SELECT DISTINCT ( 95 ) + - - ( + 51 ) AS col2
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3850
SELECT + 89 DIV - 43 + + 73 * - 2 * + MAX( DISTINCT + + 86 )
----
-12558

skipif mysql # not compatible
query I rowsort label-3850
SELECT + 89 / - 43 + + 73 * - 2 * + MAX ( DISTINCT + + 86 )
----
-12558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3851
SELECT ALL 81 * + 28 - + CAST( - COUNT( ALL - + CAST( + + 17 AS SIGNED ) ) AS SIGNED ) AS col1
----
2269

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL 81 * + 28 - + CAST ( - COUNT ( ALL - + CAST ( + + 17 AS INTEGER ) ) AS INTEGER ) AS col1
----
2269

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT 37 + + ( - - MIN( ALL + 53 ) )
----
90

skipif mysql # not compatible
query I rowsort label-3852
SELECT 37 + + ( - - MIN ( ALL + 53 ) )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3853
SELECT ALL 8 + + + MAX( + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL 8 + + + MAX ( + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 91 + 3 col1
----
-88

query I rowsort
SELECT ALL - + ( - - 45 ) col2
----
-45

query I rowsort
SELECT ALL + 64 - + + 14
----
50

query I rowsort
SELECT 37 + 66 + + 75 AS col0
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT - COUNT( * ) * 42 / - ( + 53 ) + + CASE + NULLIF ( 3, + 35 ) WHEN + + 49 THEN + 71 WHEN + - ( + 22 ) THEN 21 * + CAST( + 77 AS SIGNED ) * - 11 + + 28 END - + - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT - COUNT ( * ) * 42 / - ( + 53 ) + + CASE + NULLIF ( 3, + 35 ) WHEN + + 49 THEN + 71 WHEN + - ( + 22 ) THEN 21 * + CAST ( + 77 AS INTEGER ) * - 11 + + 28 END - + - 83 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3860
SELECT 27 + 73 DIV + 81 + + 11 AS col1, 89
----
38
89

skipif mysql # not compatible
query II rowsort label-3860
SELECT 27 + 73 / + 81 + + 11 AS col1, 89
----
38
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3861
SELECT CAST( NULL AS SIGNED ) / AVG ( + 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3861
SELECT CAST ( NULL AS INTEGER ) / AVG ( + 93 ) AS col1
----
NULL

query I rowsort
SELECT 36 + + 95
----
131

query I rowsort
SELECT 72 - - 74 * + 66 col2
----
4956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3864
SELECT DISTINCT + 61 - - MIN( - - 69 ) DIV CAST( + + 4 AS SIGNED ) * + + COALESCE ( 79, + + 74 DIV 67 * + 84, + 63 DIV - 57 ) AS col2
----
1404

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + 61 - - MIN ( - - 69 ) / CAST ( + + 4 AS INTEGER ) * + + COALESCE ( 79, + + 74 / 67 * + 84, + 63 / - 57 ) AS col2
----
1404

query II rowsort
SELECT 16 AS col0, + 63
----
16
63

query II rowsort
SELECT DISTINCT 40 AS col1, + 57 AS col1
----
40
57

query I rowsort
SELECT 65 * - 10 AS col1
----
-650

query I rowsort
SELECT 71 + 71
----
142

query I rowsort
SELECT DISTINCT 15 * + 6
----
90

query II rowsort
SELECT 8, 10 AS col0
----
8
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL + 71 + - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL + 71 + - COUNT ( * )
----
70

query II rowsort
SELECT 16 AS col1, ( 6 ) col2
----
16
6

query I rowsort
SELECT - COALESCE ( 24, + + 19 ) AS col1
----
-24

query I rowsort
SELECT 34 + 51
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL + + 41 + + MAX( ALL 60 ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + + 41 + + MAX ( ALL 60 ) AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3877
SELECT + COUNT( * ) AS col1, NULLIF ( - 22, - 96 * - 83 + - + MAX( + 93 ) * - COUNT( * ) + + 44 + + + CAST( NULL AS SIGNED ) * COUNT( ALL - 91 ) ) * COALESCE ( + 46, - CASE - COUNT( * ) WHEN + - 36 THEN - 40 ELSE NULL END DIV - 3 + - 3 + - 21 + COALESCE ( + 35, + 36 + ( 21 + - COUNT( * ) ) ) ) AS col0
----
1
-1012

skipif mysql # not compatible
query II rowsort label-3877
SELECT + COUNT ( * ) AS col1, NULLIF ( - 22, - 96 * - 83 + - + MAX ( + 93 ) * - COUNT ( * ) + + 44 + + + CAST ( NULL AS INTEGER ) * COUNT ( ALL - 91 ) ) * COALESCE ( + 46, - CASE - COUNT ( * ) WHEN + - 36 THEN - 40 ELSE NULL END / - 3 + - 3 + - 21 + COALESCE ( + 35, + 36 + ( 21 + - COUNT ( * ) ) ) ) AS col0
----
1
-1012

query I rowsort
SELECT - 95 * 77
----
-7315

query I rowsort
SELECT + NULLIF ( + 84, 89 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT DISTINCT + - ( 6 ) + COUNT( DISTINCT + + 56 ) + - - COUNT( * ) * + SUM( DISTINCT 58 )
----
53

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT + - ( 6 ) + COUNT ( DISTINCT + + 56 ) + - - COUNT ( * ) * + SUM ( DISTINCT 58 )
----
53

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

query I rowsort
SELECT + 62 - - 13
----
75

query I rowsort
SELECT + 45 * + + 73 AS col0
----
3285

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL - 62 * + - COUNT( - 54 ) * 28 + + 40 AS col0
----
1776

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL - 62 * + - COUNT ( - 54 ) * 28 + + 40 AS col0
----
1776

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3885
SELECT + 13, - ( - + COUNT( * ) ) DIV + + ( + + 37 ) + COUNT( * ) + - 50 AS col0
----
13
-49

skipif mysql # not compatible
query II rowsort label-3885
SELECT + 13, - ( - + COUNT ( * ) ) / + + ( + + 37 ) + COUNT ( * ) + - 50 AS col0
----
13
-49

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

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

query I rowsort
SELECT ALL 42 - + 31 AS col1
----
11

query I rowsort
SELECT - 11 * 31 * 88 + - 74 * 97 col1
----
-37186

onlyif mysql # aggregate syntax: 
query II rowsort label-3889
SELECT ALL 81 * 21 * ( + 89 ), + 14 - + - COUNT( * ) AS col0
----
151389
15

skipif mysql # not compatible
query II rowsort label-3889
SELECT ALL 81 * 21 * ( + 89 ), + 14 - + - COUNT ( * ) AS col0
----
151389
15

query II rowsort
SELECT + 20 + + + 92 * - 43 + - ( + - 66 ) + - + 65 AS col0, + 0 + + 49 * 3 * - - 47
----
-3935
6909

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3891
SELECT COUNT( * ) * + 10 DIV - - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3891
SELECT COUNT ( * ) * + 10 / - - 56 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3892
SELECT + COALESCE ( + 52, + 88 * - 69 DIV COUNT( * ) DIV - CAST( - 39 AS SIGNED ) )
----
52

skipif mysql # not compatible
query I rowsort label-3892
SELECT + COALESCE ( + 52, + 88 * - 69 / COUNT ( * ) / - CAST ( - 39 AS INTEGER ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ( 81 ) * + + 89 + MAX( 41 ) AS col1
----
7250

skipif mysql # not compatible
query I rowsort label-3893
SELECT ( 81 ) * + + 89 + MAX ( 41 ) AS col1
----
7250

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3894
SELECT DISTINCT CAST( - + 75 AS SIGNED ) DIV + - 73
----
1

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT CAST ( - + 75 AS INTEGER ) / + - 73
----
1

query II rowsort
SELECT - COALESCE ( 8, + + ( 73 ), - + 26 ), 17 AS col1
----
-8
17

query I rowsort
SELECT ALL 92 * - + 71 AS col1
----
-6532

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3897
SELECT + ( - CAST( 28 AS DECIMAL ) ) * + + 48 * + + CAST( NULL AS SIGNED ) * - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT + ( - CAST ( 28 AS REAL ) ) * + + 48 * + + CAST ( NULL AS INTEGER ) * - 79 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3898
SELECT DISTINCT 27 + - - COALESCE ( 32, - 11 DIV - 28, + + 88 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT 27 + - - COALESCE ( 32, - 11 / - 28, + + 88 ) AS col2
----
59

query I rowsort
SELECT ALL 86 + - - 18
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + 91 - + COUNT( - 97 ) * 38 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3900
SELECT + 91 - + COUNT ( - 97 ) * 38 AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT + ( + COALESCE ( + SUM( + 9 ), + 65 + 77 + - - 72, + 0 * ( + - CAST( NULL AS SIGNED ) ) ) ) - + - 56 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3901
SELECT + ( + COALESCE ( + SUM ( + 9 ), + 65 + 77 + - - 72, + 0 * ( + - CAST ( NULL AS INTEGER ) ) ) ) - + - 56 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT + COUNT( * ) + 63 - - + 6 * - + 62 + SUM( ALL 47 ) AS col2
----
-261

skipif mysql # not compatible
query I rowsort label-3902
SELECT + COUNT ( * ) + 63 - - + 6 * - + 62 + SUM ( ALL 47 ) AS col2
----
-261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3903
SELECT ALL - NULLIF ( ( - - 66 ), + + 49 * - COUNT( * ) * - + 10 * + 14 + + - CAST( 81 AS SIGNED ) + + 17 + - ( - + ( + 95 ) ) DIV COUNT( * ) DIV - 65 - ( - 89 ) - + 7 + - - 51 ) DIV + NULLIF ( - SUM( - + 47 ), CAST( NULL AS SIGNED ) * + ( + COUNT( * ) * + 0 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - NULLIF ( ( - - 66 ), + + 49 * - COUNT ( * ) * - + 10 * + 14 + + - CAST ( 81 AS INTEGER ) + + 17 + - ( - + ( + 95 ) ) / COUNT ( * ) / - 65 - ( - 89 ) - + 7 + - - 51 ) / + NULLIF ( - SUM ( - + 47 ), CAST ( NULL AS INTEGER ) * + ( + COUNT ( * ) * + 0 ) ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT DISTINCT + ( - 68 ) + - 69 * + 97 + - - COUNT( - 40 ) - 30 + - - 42 * - SUM( ALL + - ( + + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + ( - 68 ) + - 69 * + 97 + - - COUNT ( - 40 ) - 30 + - - 42 * - SUM ( ALL + - ( + + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT DISTINCT + 40 + 66 + - + 29 + + CASE + NULLIF ( + 17, - + NULLIF ( + ( - 92 ), - ( + - 56 ) ) ) WHEN - - CASE + - COALESCE ( + 95, 23 + - - 28 ) WHEN + 98 / - 34 THEN NULL WHEN - - COUNT( * ) + - ( - ( ( 49 ) ) ) THEN NULL ELSE - ( 75 ) - CAST( NULL AS SIGNED ) END THEN COUNT( * ) END * - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + 40 + 66 + - + 29 + + CASE + NULLIF ( + 17, - + NULLIF ( + ( - 92 ), - ( + - 56 ) ) ) WHEN - - CASE + - COALESCE ( + 95, 23 + - - 28 ) WHEN + 98 / - 34 THEN NULL WHEN - - COUNT ( * ) + - ( - ( ( 49 ) ) ) THEN NULL ELSE - ( 75 ) - CAST ( NULL AS INTEGER ) END THEN COUNT ( * ) END * - 27 AS col0
----
NULL

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

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

query I rowsort
SELECT - 66 - + + 42
----
-108

query I rowsort
SELECT - + 38 - - - 94 AS col1
----
-132

query I rowsort
SELECT - CASE - + 36 WHEN 61 THEN 31 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3910
SELECT - - 52 * - SUM( DISTINCT CASE - 33 WHEN 55 THEN 30 WHEN + - 42 - - 96 THEN + CAST( - 95 AS SIGNED ) END ) AS col1, - MIN( + 51 ) + - 39 AS col0
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-3910
SELECT - - 52 * - SUM ( DISTINCT CASE - 33 WHEN 55 THEN 30 WHEN + - 42 - - 96 THEN + CAST ( - 95 AS INTEGER ) END ) AS col1, - MIN ( + 51 ) + - 39 AS col0
----
NULL
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-3911
SELECT - - COUNT( * ) + + 82 AS col0, 89
----
83
89

skipif mysql # not compatible
query II rowsort label-3911
SELECT - - COUNT ( * ) + + 82 AS col0, 89
----
83
89

query I rowsort
SELECT - 42 * - 14 + ( + 98 ) * + 24
----
2940

query I rowsort
SELECT ALL - 46 * 99 - + 28 + + 99 col2
----
-4483

query I rowsort
SELECT DISTINCT + 64 * - 38
----
-2432

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ALL + COALESCE ( 78, - + 58, COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL + COALESCE ( 78, - + 58, COUNT ( * ) )
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3916
SELECT + + 87 + - 78, CAST( NULL AS DECIMAL ) AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3916
SELECT + + 87 + - 78, CAST ( NULL AS REAL ) AS col1
----
9
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3917
SELECT - 64 DIV + 77 * - - 71 DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3917
SELECT - 64 / + 77 * - - 71 / 57 AS col1
----
0

query I rowsort
SELECT + 70 * - 76
----
-5320

query I rowsort
SELECT DISTINCT 93 * - - 51 AS col1
----
4743

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT - COUNT( * ) * - - 40 + - COUNT( * ) + ( - + 89 ) + 89 * + 83 * - 88 AS col1
----
-650186

skipif mysql # not compatible
query I rowsort label-3920
SELECT - COUNT ( * ) * - - 40 + - COUNT ( * ) + ( - + 89 ) + 89 * + 83 * - 88 AS col1
----
-650186

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT CASE + 83 WHEN - ( - NULLIF ( + 71, - 50 * - SUM( DISTINCT - 10 ) ) ) THEN + 59 WHEN - 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT CASE + 83 WHEN - ( - NULLIF ( + 71, - 50 * - SUM ( DISTINCT - 10 ) ) ) THEN + 59 WHEN - 89 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT ALL - 79 DIV - ( - + 55 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL - 79 / - ( - + 55 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3923
SELECT - 34 + NULLIF ( - - CAST( NULL AS DECIMAL ), COUNT( * ) / + 12 + - 69 ) - + 48 + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT - 34 + NULLIF ( - - CAST ( NULL AS REAL ), COUNT ( * ) / + 12 + - 69 ) - + 48 + 59 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL + 6 * + MAX( ALL - 14 )
----
-84

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + 6 * + MAX ( ALL - 14 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT + NULLIF ( COUNT( * ), COUNT( * ) ) + + 89 + - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT + NULLIF ( COUNT ( * ), COUNT ( * ) ) + + 89 + - + 39
----
NULL

query I rowsort
SELECT + COALESCE ( 63, + 5 + 90 * + - 36 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT + 88 * 21 * + 7 + - + 92 + 48 + COUNT( - + 54 ) AS col1
----
12893

skipif mysql # not compatible
query I rowsort label-3928
SELECT + 88 * 21 * + 7 + - + 92 + 48 + COUNT ( - + 54 ) AS col1
----
12893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT ALL ( CAST( NULL AS SIGNED ) ) * 70 + - - 3 + + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * 70 + - - 3 + + + 2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL COUNT( * ) + 31 + + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL COUNT ( * ) + 31 + + + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3932
SELECT + ( - COALESCE ( - MIN( ALL - - 24 ), - 0 DIV + 63 + - 59 * - 56 * + ( COUNT( * ) ) - - 26 * 25 ) ) + - + 9 + - - COUNT( * ) * + 34 - - 12, - COUNT( * ) * + - 68 * + 74 AS col2
----
61
5032

skipif mysql # not compatible
query II rowsort label-3932
SELECT + ( - COALESCE ( - MIN ( ALL - - 24 ), - 0 / + 63 + - 59 * - 56 * + ( COUNT ( * ) ) - - 26 * 25 ) ) + - + 9 + - - COUNT ( * ) * + 34 - - 12, - COUNT ( * ) * + - 68 * + 74 AS col2
----
61
5032

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL 32 + - - 98 + + + 34 - - 21 * + + COUNT( * ) + + - COUNT( * )
----
184

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL 32 + - - 98 + + + 34 - - 21 * + + COUNT ( * ) + + - COUNT ( * )
----
184

query II rowsort
SELECT - ( ( + - 79 ) ) AS col1, + 19
----
79
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3935
SELECT + + 42 + + + 41 + - COUNT( * ) col0, 59 AS col1
----
82
59

skipif mysql # not compatible
query II rowsort label-3935
SELECT + + 42 + + + 41 + - COUNT ( * ) col0, 59 AS col1
----
82
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL + NULLIF ( + 27, SUM( 24 ) ) col2
----
27

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + NULLIF ( + 27, SUM ( 24 ) ) col2
----
27

query I rowsort
SELECT DISTINCT 29 + - NULLIF ( + 22, 83 )
----
7

query I rowsort
SELECT ALL - 61 + + 40
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3939
SELECT - 41 AS col1, - MAX( ALL + 58 ) AS col0
----
-41
-58

skipif mysql # not compatible
query II rowsort label-3939
SELECT - 41 AS col1, - MAX ( ALL + 58 ) AS col0
----
-41
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT - + COUNT( DISTINCT - + 65 ) + + + 52
----
51

skipif mysql # not compatible
query I rowsort label-3940
SELECT - + COUNT ( DISTINCT - + 65 ) + + + 52
----
51

query I rowsort
SELECT + 17 * + - 58 * + - COALESCE ( + + 50, - 58, + + 44 ) * - 50 * + 77 + + 85 AS col0
----
-189804915

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT - 86 * + SUM( + - 9 ) * + 48
----
37152

skipif mysql # not compatible
query I rowsort label-3942
SELECT - 86 * + SUM ( + - 9 ) * + 48
----
37152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT + COUNT( * ) * + CASE - 87 WHEN + - 83 THEN - CAST( + 54 AS SIGNED ) WHEN NULLIF ( 2, - + 1 ) + + 21 + + + 3 * + 4 + + COUNT( * ) THEN - 34 + - - 37 END + - 56 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT + COUNT ( * ) * + CASE - 87 WHEN + - 83 THEN - CAST ( + 54 AS INTEGER ) WHEN NULLIF ( 2, - + 1 ) + + 21 + + + 3 * + 4 + + COUNT ( * ) THEN - 34 + - - 37 END + - 56 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3944
SELECT - + 43 * - ( + + ( + 78 ) ) + - - 12 + - - 8 + 37 - - 26 / + + ( - 32 ) * - - COUNT( * ) - + CAST( NULL AS SIGNED ) * 35 * - - 67 * - 50 / + 54 + - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT - + 43 * - ( + + ( + 78 ) ) + - - 12 + - - 8 + 37 - - 26 / + + ( - 32 ) * - - COUNT ( * ) - + CAST ( NULL AS INTEGER ) * 35 * - - 67 * - 50 / + 54 + - 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL 13 - - CASE - COUNT( * ) WHEN COUNT( * ) + + ( - AVG ( ALL - + 84 ) ) THEN NULL WHEN + + COUNT( * ) * - COUNT( * ) THEN 53 END AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL 13 - - CASE - COUNT ( * ) WHEN COUNT ( * ) + + ( - AVG ( ALL - + 84 ) ) THEN NULL WHEN + + COUNT ( * ) * - COUNT ( * ) THEN 53 END AS col1
----
66

query I rowsort
SELECT DISTINCT 18 * - 79 + - + 14 AS col1
----
-1436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3947
SELECT ALL - - COUNT( * ) DIV - - 33 - + COUNT( * ) * + - 32 * + 12
----
384

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - - COUNT ( * ) / - - 33 - + COUNT ( * ) * + - 32 * + 12
----
384

query I rowsort
SELECT - + ( - 25 ) * - - 88 * 38
----
83600

query II rowsort
SELECT 73, + 74 AS col2
----
73
74

query I rowsort
SELECT ALL + NULLIF ( 13, - 95 + - 97 * - 76 + + NULLIF ( ( - 48 ), + NULLIF ( 97, - 46 ) ) + - + ( - 75 ) ) AS col1
----
13

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

skipif mysql # not compatible
query I rowsort label-3951
SELECT + CAST ( NULL AS REAL ) * - 39
----
NULL

query I rowsort
SELECT - 77 * + 24 + 97 AS col0
----
-1751

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT - 22 * 61 - + - 18 DIV 78 * 96 AS col2
----
-1342

skipif mysql # not compatible
query I rowsort label-3955
SELECT - 22 * 61 - + - 18 / 78 * 96 AS col2
----
-1342

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ALL + MAX( + 84 ) col0
----
84

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + MAX ( + 84 ) col0
----
84

query I rowsort
SELECT DISTINCT 81 * - NULLIF ( - ( + + 93 ), - - 57 ) * + 42
----
316386

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT - MIN( - ( + + 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT - MIN ( - ( + + 17 ) )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3960
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 43 + + ( - 6 ) - ( - 23 ) / COUNT( * ) / 83 * - - 53, - 98 col2
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-3960
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 43 + + ( - 6 ) - ( - 23 ) / COUNT ( * ) / 83 * - - 53, - 98 col2
----
NULL
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT ALL 98 + CAST( NULL AS SIGNED ) / + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL 98 + CAST ( NULL AS INTEGER ) / + + 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT DISTINCT + 2 + ( + + 46 ) + 72 DIV - - 29
----
50

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT + 2 + ( + + 46 ) + 72 / - - 29
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3963
SELECT 81 DIV + - COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3963
SELECT 81 / + - COUNT ( * ) AS col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3964
SELECT ALL + 84 + COUNT( * ) DIV + 92 + ( + 92 )
----
176

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL + 84 + COUNT ( * ) / + 92 + ( + 92 )
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT 65 + + 73 + ( + - COUNT( * ) ) AS col1
----
137

skipif mysql # not compatible
query I rowsort label-3965
SELECT 65 + + 73 + ( + - COUNT ( * ) ) AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL - 12 * COUNT( DISTINCT + + 99 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL - 12 * COUNT ( DISTINCT + + 99 ) AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT 71 DIV 53 DIV + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3967
SELECT 71 / 53 / + 80 AS col0
----
0

query I rowsort
SELECT 39 * - - 52 + + 67 AS col1
----
2095

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT DISTINCT - 30 DIV - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT - 30 / - 48 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT ALL NULLIF ( 44, + MIN( + - 13 ) ) + + 38 + - COUNT( * ) * + MAX( - 77 ) AS col0
----
159

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL NULLIF ( 44, + MIN ( + - 13 ) ) + + 38 + - COUNT ( * ) * + MAX ( - 77 ) AS col0
----
159

query I rowsort
SELECT DISTINCT - 58 + - 57
----
-115

query I rowsort
SELECT 98 - + 57
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT - 5 * + 74 AS col0, COALESCE ( + - 66, MIN( + 62 ) ) + + 46
----
-370
-20

skipif mysql # not compatible
query II rowsort label-3973
SELECT - 5 * + 74 AS col0, COALESCE ( + - 66, MIN ( + 62 ) ) + + 46
----
-370
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT - NULLIF ( 58, COUNT( * ) ) + - CAST( - - 4 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-3974
SELECT - NULLIF ( 58, COUNT ( * ) ) + - CAST ( - - 4 AS INTEGER )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT 88 * - - COUNT( * ) * + 58
----
5104

skipif mysql # not compatible
query I rowsort label-3975
SELECT 88 * - - COUNT ( * ) * + 58
----
5104

query I rowsort
SELECT 91 + - 18
----
73

query I rowsort
SELECT ALL CASE 33 WHEN + 19 THEN - - 0 * 58 + 29 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL - 75 * - MAX( DISTINCT + 60 ) + ( - 54 ) + + COUNT( - + ( - 70 ) ) AS col0
----
4447

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL - 75 * - MAX ( DISTINCT + 60 ) + ( - 54 ) + + COUNT ( - + ( - 70 ) ) AS col0
----
4447

query I rowsort
SELECT ALL + NULLIF ( + - 3, - 22 ) AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3980
SELECT DISTINCT COUNT( * ) DIV - 22, + COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-3980
SELECT DISTINCT COUNT ( * ) / - 22, + COUNT ( * ) AS col0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3981
SELECT ALL - 25 * + - 2 + + 14 + + COUNT( * ) * - 16 + MIN( DISTINCT 34 ) - CAST( NULL AS SIGNED ) / + ( + - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL - 25 * + - 2 + + 14 + + COUNT ( * ) * - 16 + MIN ( DISTINCT 34 ) - CAST ( NULL AS INTEGER ) / + ( + - 26 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT ALL 47 * + 89 * - MAX( - 6 ) col0, 92 AS col1
----
25098
92

skipif mysql # not compatible
query II rowsort label-3982
SELECT ALL 47 * + 89 * - MAX ( - 6 ) col0, 92 AS col1
----
25098
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT 47 DIV + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3983
SELECT 47 / + 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3984
SELECT - 5 * + + 53 + - ( 93 ) + 58 AS col1, - 35 + + 80 + - MIN( + ( - + 99 ) ) + - 37
----
-300
107

skipif mysql # not compatible
query II rowsort label-3984
SELECT - 5 * + + 53 + - ( 93 ) + 58 AS col1, - 35 + + 80 + - MIN ( + ( - + 99 ) ) + - 37
----
-300
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + CASE - 91 WHEN + 72 * + 50 + + - 37 + + COALESCE ( - + 78, 27 ) * - 70 * 36 THEN - - 47 - - COUNT( * ) * 77 * 26 * 86 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT + CASE - 91 WHEN + 72 * + 50 + + - 37 + + COALESCE ( - + 78, 27 ) * - 70 * 36 THEN - - 47 - - COUNT ( * ) * 77 * 26 * 86 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3986
SELECT CAST( + + 75 AS SIGNED ) DIV 15 + 39 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3986
SELECT CAST ( + + 75 AS INTEGER ) / 15 + 39 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3987
SELECT - 58 + + + CASE + - 73 WHEN - - COUNT( * ) * - 93 + - 80 + + + MAX( + 62 ) * + 6 + + 19 THEN + 83 + + + 53 END + + 3 + - + COUNT( * ) / CAST( NULL AS SIGNED ) * - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT - 58 + + + CASE + - 73 WHEN - - COUNT ( * ) * - 93 + - 80 + + + MAX ( + 62 ) * + 6 + + 19 THEN + 83 + + + 53 END + + 3 + - + COUNT ( * ) / CAST ( NULL AS INTEGER ) * - 99 AS col2
----
NULL

query I rowsort
SELECT ALL 23 * + 40 AS col2
----
920

query I rowsort
SELECT 46 * + 98 AS col1
----
4508

query I rowsort
SELECT ALL 40 + + - ( + NULLIF ( + 57, + + 49 * + 9 * - + 91 ) ) AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3991
SELECT ALL + 15 DIV + SUM( - - 98 ) DIV - + 3
----
0

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL + 15 / + SUM ( - - 98 ) / - + 3
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3992
SELECT 93 AS col2, 35 + + - CASE 24 WHEN - + 5 THEN - - 90 * - CAST( NULL AS DECIMAL ) WHEN - + 51 THEN + 65 ELSE NULL END AS col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-3992
SELECT 93 AS col2, 35 + + - CASE 24 WHEN - + 5 THEN - - 90 * - CAST ( NULL AS REAL ) WHEN - + 51 THEN + 65 ELSE NULL END AS col0
----
93
NULL

query I rowsort
SELECT DISTINCT ( + 91 ) + COALESCE ( + + 81, - 13 ) AS col2
----
172

query I rowsort
SELECT 71 * 15 AS col2
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT 10 + + COUNT( 11 ) * - 91
----
-81

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT 10 + + COUNT ( 11 ) * - 91
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3996
SELECT ALL - COUNT( * ) AS col0, 18
----
-1
18

skipif mysql # not compatible
query II rowsort label-3996
SELECT ALL - COUNT ( * ) AS col0, 18
----
-1
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT 84 + CAST( + + 21 AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT 84 + CAST ( + + 21 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 27 AS col1, - 78 + + 93 * - 89 col0
----
27
-8355

query II rowsort
SELECT 23, - ( + 48 ) AS col1
----
23
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL - 43 * + - 71 * + 68 * + COUNT( * )
----
207604

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL - 43 * + - 71 * + 68 * + COUNT ( * )
----
207604

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT SUM( + ( - 39 ) ) + - + 40
----
-79

skipif mysql # not compatible
query I rowsort label-4001
SELECT SUM ( + ( - 39 ) ) + - + 40
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT + SUM( - - 94 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-4002
SELECT + SUM ( - - 94 ) col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT + 79 * 19 * + 15 * COUNT( * ) + 80 + 84 AS col0
----
22679

skipif mysql # not compatible
query I rowsort label-4003
SELECT + 79 * 19 * + 15 * COUNT ( * ) + 80 + 84 AS col0
----
22679

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT 74 * COUNT( * ) * + 53 * + MIN( - 84 )
----
-329448

skipif mysql # not compatible
query I rowsort label-4004
SELECT 74 * COUNT ( * ) * + 53 * + MIN ( - 84 )
----
-329448

query I rowsort
SELECT ALL 9 + - - 72 AS col0
----
81

query I rowsort
SELECT 80 + + + 7 AS col1
----
87

query I rowsort
SELECT ALL 27 * 34 * + 51 * 83
----
3885894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4008
SELECT ALL - CAST( + 51 AS SIGNED ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - CAST ( + 51 AS INTEGER ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT DISTINCT - MIN( ALL + 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT - MIN ( ALL + 24 ) AS col2
----
-24

query I rowsort
SELECT DISTINCT + 72 - + - ( + 39 ) * - 95
----
-3633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4011
SELECT ALL + ( 84 ) DIV 36 * MIN( + - 21 ) * 45 DIV - 74 + 46 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + ( 84 ) / 36 * MIN ( + - 21 ) * 45 / - 74 + 46 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT 6 + COUNT( * ) * + ( 59 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4012
SELECT 6 + COUNT ( * ) * + ( 59 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL + COUNT( * ) - - 87
----
88

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + COUNT ( * ) - - 87
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT + 3 * - - 58 + ( - COUNT( * ) ) - - 43
----
216

skipif mysql # not compatible
query I rowsort label-4014
SELECT + 3 * - - 58 + ( - COUNT ( * ) ) - - 43
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4015
SELECT 67 + + - CASE + 11 WHEN + 39 THEN NULL ELSE + 21 * 45 + + 69 + - + 94 END * - + 63 * + SUM( + 94 ) * + 22 * - + CAST( NULL AS SIGNED ) / + 15 + + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT 67 + + - CASE + 11 WHEN + 39 THEN NULL ELSE + 21 * 45 + + 69 + - + 94 END * - + 63 * + SUM ( + 94 ) * + 22 * - + CAST ( NULL AS INTEGER ) / + 15 + + - 23
----
NULL

query I rowsort
SELECT - 90 * - 5
----
450

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT ALL + 70 DIV 41 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + 70 / 41 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT COUNT( * ) + CASE 62 WHEN - + 15 THEN 4 END - CASE 83 WHEN 40 * + 43 + + + COUNT( * ) THEN + 41 * 73 WHEN 88 THEN NULL END * + 10 * - ( - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT COUNT ( * ) + CASE 62 WHEN - + 15 THEN 4 END - CASE 83 WHEN 40 * + 43 + + + COUNT ( * ) THEN + 41 * 73 WHEN 88 THEN NULL END * + 10 * - ( - 30 )
----
NULL

query I rowsort
SELECT ALL - 79 - - + 67
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT 36 / + ( 33 ) * MIN( ALL 8 ) - + ( - + 28 ) + - + CAST( NULL AS SIGNED ) * - 5 * + 0 * - MAX( - - 95 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT 36 / + ( 33 ) * MIN ( ALL 8 ) - + ( - + 28 ) + - + CAST ( NULL AS INTEGER ) * - 5 * + 0 * - MAX ( - - 95 ) AS col0
----
NULL

query I rowsort
SELECT + 39 * + 7 AS col0
----
273

query I rowsort
SELECT - 62 + + - 75
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL - CASE 16 WHEN + 88 THEN NULL WHEN - MIN( DISTINCT - 69 ) THEN - - 7 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - CASE 16 WHEN + 88 THEN NULL WHEN - MIN ( DISTINCT - 69 ) THEN - - 7 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4024
SELECT DISTINCT - MIN( DISTINCT + 29 ) * - CAST( - - 94 AS SIGNED ) AS col1
----
2726

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT - MIN ( DISTINCT + 29 ) * - CAST ( - - 94 AS INTEGER ) AS col1
----
2726

query I rowsort
SELECT - 6 * - 37 * + 91 AS col1
----
20202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4026
SELECT 74 * + CASE + + MIN( + 68 ) WHEN + SUM( - CAST( NULL AS SIGNED ) ) * - 32 * - 67 * + 31 + - ( + MAX( - 62 ) ) THEN NULL WHEN - 48 / ( + 81 ) * - ( + 56 ) + 86 + 61 + - 91 * 57 + - 5 THEN + + 82 * 66 + 88 + 71 - ( NULLIF ( 35, - 63 * + COUNT( * ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT 74 * + CASE + + MIN ( + 68 ) WHEN + SUM ( - CAST ( NULL AS INTEGER ) ) * - 32 * - 67 * + 31 + - ( + MAX ( - 62 ) ) THEN NULL WHEN - 48 / ( + 81 ) * - ( + 56 ) + 86 + 61 + - 91 * 57 + - 5 THEN + + 82 * 66 + 88 + 71 - ( NULLIF ( 35, - 63 * + COUNT ( * ) ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4027
SELECT - 89, 88 * - CAST( NULL AS SIGNED ) AS col1
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-4027
SELECT - 89, 88 * - CAST ( NULL AS INTEGER ) AS col1
----
-89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL - MAX( DISTINCT 32 ) + - MAX( + 85 )
----
-117

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL - MAX ( DISTINCT 32 ) + - MAX ( + 85 )
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT 51 + + CASE + ( - 90 ) WHEN 14 * - NULLIF ( - COUNT( * ), - - CASE 58 WHEN + + 18 THEN + 8 + + 47 ELSE NULL END ) THEN NULL WHEN - 12 * + 54 THEN - 42 END / - SUM( - 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT 51 + + CASE + ( - 90 ) WHEN 14 * - NULLIF ( - COUNT ( * ), - - CASE 58 WHEN + + 18 THEN + 8 + + 47 ELSE NULL END ) THEN NULL WHEN - 12 * + 54 THEN - 42 END / - SUM ( - 37 ) AS col0
----
NULL

query I rowsort
SELECT - + 13 * - 37 AS col2
----
481

query I rowsort
SELECT DISTINCT + 91 + 98
----
189

query I rowsort
SELECT ALL - 33 + 25 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT DISTINCT 64 * + COUNT( ALL - + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT 64 * + COUNT ( ALL - + 64 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT DISTINCT 45 * - CAST( NULL AS SIGNED ) + + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT 45 * - CAST ( NULL AS INTEGER ) + + + 97
----
NULL

query I rowsort
SELECT DISTINCT - 90 * - 24 + 79
----
2239

onlyif mysql # DIV for integer division: 
query I rowsort label-4036
SELECT ALL 93 DIV 12
----
7

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL 93 / 12
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4037
SELECT 57 DIV + MIN( ALL + - 77 ) + + ( + + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-4037
SELECT 57 / + MIN ( ALL + - 77 ) + + ( + + 44 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4038
SELECT + COALESCE ( + + 31, + 24 + + ( COUNT( * ) ) + + + CAST( - 72 AS SIGNED ) * + 63 * - 34 * + NULLIF ( + + 6, COALESCE ( - + 92, + + 92 + - 59 + COUNT( * ) ) / - 1 * 88 + ( 15 ) / + CAST( NULL AS SIGNED ) ) )
----
31

skipif mysql # not compatible
query I rowsort label-4038
SELECT + COALESCE ( + + 31, + 24 + + ( COUNT ( * ) ) + + + CAST ( - 72 AS INTEGER ) * + 63 * - 34 * + NULLIF ( + + 6, COALESCE ( - + 92, + + 92 + - 59 + COUNT ( * ) ) / - 1 * 88 + ( 15 ) / + CAST ( NULL AS INTEGER ) ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL ( + CASE + 37 WHEN - - 19 + + 86 * ( 74 ) / MIN( ALL 77 ) + + COUNT( * ) - - COUNT( * ) THEN NULL WHEN 53 THEN + 61 END ) * 63 * 9 + + - 53 + + - NULLIF ( + ( + 95 ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL ( + CASE + 37 WHEN - - 19 + + 86 * ( 74 ) / MIN ( ALL 77 ) + + COUNT ( * ) - - COUNT ( * ) THEN NULL WHEN 53 THEN + 61 END ) * 63 * 9 + + - 53 + + - NULLIF ( + ( + 95 ), - COUNT ( * ) )
----
NULL

query II rowsort
SELECT + 16, 48 AS col2
----
16
48

query I rowsort
SELECT DISTINCT ( + 82 ) * + ( - 23 ) + + 84 AS col0
----
-1802

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT + COUNT( ALL + 19 ) * 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4042
SELECT + COUNT ( ALL + 19 ) * 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT 21 * + - 56 - + MAX( ALL + 5 ) - + 65 AS col2
----
-1246

skipif mysql # not compatible
query I rowsort label-4043
SELECT 21 * + - 56 - + MAX ( ALL + 5 ) - + 65 AS col2
----
-1246

query I rowsort
SELECT NULLIF ( + 61, + 14 / + + 59 * - - 22 ) AS col1
----
61

query I rowsort
SELECT CASE + COALESCE ( 52, 57 / + 3 * - 65 * 38 + - 62 - + 85 / + + 65 ) WHEN - - 83 THEN NULL WHEN + 88 THEN - 37 / - 83 END AS col2
----
NULL

query II rowsort
SELECT + 75 * - 8 + 29 + + 73 AS col0, - 77 AS col1
----
-498
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4047
SELECT DISTINCT + 29 AS col0, MIN( + - 28 )
----
29
-28

skipif mysql # not compatible
query II rowsort label-4047
SELECT DISTINCT + 29 AS col0, MIN ( + - 28 )
----
29
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-4048
SELECT COUNT( * ) AS col0, 89 AS col1
----
1
89

skipif mysql # not compatible
query II rowsort label-4048
SELECT COUNT ( * ) AS col0, 89 AS col1
----
1
89

query I rowsort
SELECT 58 * + 50 - + 45 * - 58 AS col1
----
5510

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT + COUNT( ALL + + 79 ) * + + 8 * - COUNT( * ) - - - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-4050
SELECT + COUNT ( ALL + + 79 ) * + + 8 * - COUNT ( * ) - - - COUNT ( * )
----
-9

query I rowsort
SELECT DISTINCT + 41 * + 84
----
3444

query I rowsort
SELECT - - 30 * - 42
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT DISTINCT + - SUM( 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT + - SUM ( 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL + - 54 * - - SUM( DISTINCT - 91 ) * ( - - 35 ) + - 29
----
171961

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL + - 54 * - - SUM ( DISTINCT - 91 ) * ( - - 35 ) + - 29
----
171961

query II rowsort
SELECT ALL 21, + 40 AS col0
----
21
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4056
SELECT DISTINCT - 80 * 35 * 85 + COUNT( * ) col1, COALESCE ( + NULLIF ( - 60, + + ( - + 56 ) ), 69 * 81 * 42 * - + 66, + 47 )
----
-237999
-60

skipif mysql # not compatible
query II rowsort label-4056
SELECT DISTINCT - 80 * 35 * 85 + COUNT ( * ) col1, COALESCE ( + NULLIF ( - 60, + + ( - + 56 ) ), 69 * 81 * 42 * - + 66, + 47 )
----
-237999
-60

query I rowsort
SELECT - 24 * + + 61
----
-1464

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT SUM( ALL - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT SUM ( ALL - 93 ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query III rowsort label-4059
SELECT MIN( ALL 63 ) AS col2, MAX( - 31 ), - 42 col2
----
63
-31
-42

skipif mysql # not compatible
query III rowsort label-4059
SELECT MIN ( ALL 63 ) AS col2, MAX ( - 31 ), - 42 col2
----
63
-31
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4060
SELECT + + 9 DIV + SUM( ALL + 16 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4060
SELECT + + 9 / + SUM ( ALL + 16 ) AS col0
----
0

query I rowsort
SELECT ALL - - 0 + - 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT - + 17 + 53 * + - COUNT( * ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-4062
SELECT - + 17 + 53 * + - COUNT ( * ) col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4063
SELECT ALL + 64 AS col1, + COUNT( * ) AS col0
----
64
1

skipif mysql # not compatible
query II rowsort label-4063
SELECT ALL + 64 AS col1, + COUNT ( * ) AS col0
----
64
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4064
SELECT DISTINCT - CASE - 13 WHEN - + 32 + 73 THEN NULL ELSE - CAST( NULL AS SIGNED ) END + ( 71 ) * + SUM( - + ( - + 46 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT - CASE - 13 WHEN - + 32 + 73 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END + ( 71 ) * + SUM ( - + ( - + 46 ) )
----
NULL

query I rowsort
SELECT ALL + 31 + + + 75 * 46 + - 51 + + 13 AS col2
----
3443

query II rowsort
SELECT 41 AS col0, 11 * - - 15
----
41
165

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4067
SELECT DISTINCT + + 70 DIV 70 * - - CAST( - 94 AS SIGNED ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT + + 70 / 70 * - - CAST ( - 94 AS INTEGER ) AS col1
----
-94

query I rowsort
SELECT ALL - - 8 + - 35 AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT DISTINCT + - 45 + - CAST( NULL AS SIGNED ) + - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT + - 45 + - CAST ( NULL AS INTEGER ) + - 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT ALL 93 + - 31 + + COUNT( * ) * + + 4
----
66

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL 93 + - 31 + + COUNT ( * ) * + + 4
----
66

query II rowsort
SELECT ALL ( + 1 ) col0, + 93 * + ( - 18 )
----
1
-1674

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT ALL + 61 * ( 32 ) AS col2, COUNT( * ) + + 40 - + - 13 * - 51 * - - 29
----
1952
-19186

skipif mysql # not compatible
query II rowsort label-4072
SELECT ALL + 61 * ( 32 ) AS col2, COUNT ( * ) + + 40 - + - 13 * - 51 * - - 29
----
1952
-19186

query I rowsort
SELECT DISTINCT + 43 * 55 * + 75
----
177375

query I rowsort
SELECT ALL - 89 + - 62 * + 1 AS col1
----
-151

query I rowsort
SELECT - 52 + - 38 * + ( + 19 )
----
-774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT CAST( + 7 AS SIGNED ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4076
SELECT CAST ( + 7 AS INTEGER ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT ALL 84 DIV - 58 + ( + ( + 3 ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL 84 / - 58 + ( + ( + 3 ) ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4078
SELECT + 97 DIV 9 + - + CASE + - COUNT( * ) WHEN - - MIN( DISTINCT 26 ) THEN NULL WHEN + 44 THEN + 12 DIV + 9 WHEN CASE - SUM( ALL - 92 ) WHEN - ( + - COUNT( * ) ) * NULLIF ( - 90, + - CAST( - 75 AS SIGNED ) ) THEN + 83 * 4 * 47 END * 16 - + + 65 THEN + + CAST( NULL AS SIGNED ) ELSE + 69 DIV - + 61 + - MAX( 75 ) END * 86
----
6546

skipif mysql # not compatible
query I rowsort label-4078
SELECT + 97 / 9 + - + CASE + - COUNT ( * ) WHEN - - MIN ( DISTINCT 26 ) THEN NULL WHEN + 44 THEN + 12 / + 9 WHEN CASE - SUM ( ALL - 92 ) WHEN - ( + - COUNT ( * ) ) * NULLIF ( - 90, + - CAST ( - 75 AS INTEGER ) ) THEN + 83 * 4 * 47 END * 16 - + + 65 THEN + + CAST ( NULL AS INTEGER ) ELSE + 69 / - + 61 + - MAX ( 75 ) END * 86
----
6546

query I rowsort
SELECT + 34 * - 53
----
-1802

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4080
SELECT DISTINCT COUNT( ALL - 15 ) DIV - ( + 17 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT COUNT ( ALL - 15 ) / - ( + 17 ) AS col2
----
0

query I rowsort
SELECT ALL COALESCE ( - 82, + 90 ) * 62
----
-5084

query II rowsort
SELECT ( - 15 ), 86 col2
----
-15
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT + 50 + + - COUNT( * ), - 91 + 20 + - 82 + - - 90 + - - 85 * 38 * + + 90 AS col0
----
49
290637

skipif mysql # not compatible
query II rowsort label-4083
SELECT + 50 + + - COUNT ( * ), - 91 + 20 + - 82 + - - 90 + - - 85 * 38 * + + 90 AS col0
----
49
290637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4084
SELECT CASE - 47 WHEN - NULLIF ( - - 46, 29 ) THEN - 28 WHEN + 11 THEN NULL ELSE ( 9 ) - - CAST( NULL AS SIGNED ) END * 12 * + - 67 + 39 - + + 78 + - + 35, ( - 82 ) + + - COUNT( * ) AS col1
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-4084
SELECT CASE - 47 WHEN - NULLIF ( - - 46, 29 ) THEN - 28 WHEN + 11 THEN NULL ELSE ( 9 ) - - CAST ( NULL AS INTEGER ) END * 12 * + - 67 + 39 - + + 78 + - + 35, ( - 82 ) + + - COUNT ( * ) AS col1
----
NULL
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4085
SELECT + 20 DIV - COUNT( * ), 6 * + + 6 AS col0
----
-20
36

skipif mysql # not compatible
query II rowsort label-4085
SELECT + 20 / - COUNT ( * ), 6 * + + 6 AS col0
----
-20
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4086
SELECT ALL - 42 * + 21 AS col0, + 33 - NULLIF ( COUNT( + 70 ), - 17 * + CASE + ( - 43 ) WHEN - CASE - COUNT( * ) WHEN + COALESCE ( - 82, + 41 ) + - 68 THEN NULL WHEN 60 + - + 34 + - + SUM( + - 39 ) THEN + 94 ELSE NULL END * + 69 - - + MIN( 90 ) + + + 20 - - 79 * - 1 / + 81 THEN NULL ELSE + ( 92 ) * NULLIF ( + MIN( DISTINCT + 62 ) + + 48, + COUNT( * ) * - 50 + 22 ) END + 70 ) * 49 AS col2
----
-882
-16

skipif mysql # not compatible
query II rowsort label-4086
SELECT ALL - 42 * + 21 AS col0, + 33 - NULLIF ( COUNT ( + 70 ), - 17 * + CASE + ( - 43 ) WHEN - CASE - COUNT ( * ) WHEN + COALESCE ( - 82, + 41 ) + - 68 THEN NULL WHEN 60 + - + 34 + - + SUM ( + - 39 ) THEN + 94 ELSE NULL END * + 69 - - + MIN ( 90 ) + + + 20 - - 79 * - 1 / + 81 THEN NULL ELSE + ( 92 ) * NULLIF ( + MIN ( DISTINCT + 62 ) + + 48, + COUNT ( * ) * - 50 + 22 ) END + 70 ) * 49 AS col2
----
-882
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4087
SELECT DISTINCT + 20 DIV + - 45 - + + NULLIF ( - COALESCE ( CAST( NULL AS SIGNED ), 86 ), - 48 * 66 + 29 + + 44 ) - - COUNT( * ) DIV + + 27 + - 77 + - + ( + + COUNT( * ) ) * - - 4
----
5

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT + 20 / + - 45 - + + NULLIF ( - COALESCE ( CAST ( NULL AS INTEGER ), 86 ), - 48 * 66 + 29 + + 44 ) - - COUNT ( * ) / + + 27 + - 77 + - + ( + + COUNT ( * ) ) * - - 4
----
5

query I rowsort
SELECT + 8 / + - CASE + - 18 WHEN - 5 * + 37 THEN + - 40 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL + COUNT( * ) * MIN( ALL + - ( - 56 ) ) - 7 + - - 57 + 12
----
118

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + COUNT ( * ) * MIN ( ALL + - ( - 56 ) ) - 7 + - - 57 + 12
----
118

query I rowsort
SELECT + + 82 + 27
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4091
SELECT - - 47 * 10 + - + 49 * - CASE - 76 WHEN + + 35 THEN NULL WHEN + MIN( ALL 72 ) * - 2 * - + COUNT( * ) + - 85 THEN NULL ELSE ( 62 ) - CAST( NULL AS DECIMAL ) + - + ( + COUNT( * ) ) * - - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT - - 47 * 10 + - + 49 * - CASE - 76 WHEN + + 35 THEN NULL WHEN + MIN ( ALL 72 ) * - 2 * - + COUNT ( * ) + - 85 THEN NULL ELSE ( 62 ) - CAST ( NULL AS REAL ) + - + ( + COUNT ( * ) ) * - - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4092
SELECT ALL + 82 * 84 * - - 90 + + 11 * CAST( + NULLIF ( 97, - 71 * + + MAX( + + 64 ) + + 31 - - 45 ) AS SIGNED ) AS col1, NULLIF ( + 58, - 23 * + + MIN( + 37 ) / + 56 )
----
620987
58

skipif mysql # not compatible
query II rowsort label-4092
SELECT ALL + 82 * 84 * - - 90 + + 11 * CAST ( + NULLIF ( 97, - 71 * + + MAX ( + + 64 ) + + 31 - - 45 ) AS INTEGER ) AS col1, NULLIF ( + 58, - 23 * + + MIN ( + 37 ) / + 56 )
----
620987
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4093
SELECT DISTINCT + 24 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT + 24 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT ALL + COALESCE ( + COUNT( * ), - 34, COUNT( * ) * COUNT( * ) - - 66 ) * 66 * 38
----
2508

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL + COALESCE ( + COUNT ( * ), - 34, COUNT ( * ) * COUNT ( * ) - - 66 ) * 66 * 38
----
2508

onlyif mysql # DIV for integer division: 
query I rowsort label-4095
SELECT DISTINCT - 44 + + 31 + 9 DIV + 12
----
-13

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT - 44 + + 31 + 9 / + 12
----
-13

query I rowsort
SELECT ALL + 75 * 86 * + 60 + - 70 AS col1
----
386930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4097
SELECT + MAX( ALL + 29 ) DIV + SUM( + - 14 )
----
-2

skipif mysql # not compatible
query I rowsort label-4097
SELECT + MAX ( ALL + 29 ) / + SUM ( + - 14 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4098
SELECT 46 * + 29 * + + 99 AS col2, COUNT( * ) - + - 67
----
132066
68

skipif mysql # not compatible
query II rowsort label-4098
SELECT 46 * + 29 * + + 99 AS col2, COUNT ( * ) - + - 67
----
132066
68

query II rowsort
SELECT - 5 AS col0, + 47
----
-5
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL + 57 - - ( - - 80 ) + ( - + 43 ) * - - SUM( DISTINCT - 78 ) AS col1
----
3491

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL + 57 - - ( - - 80 ) + ( - + 43 ) * - - SUM ( DISTINCT - 78 ) AS col1
----
3491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4101
SELECT 65 DIV ( - MAX( DISTINCT 97 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4101
SELECT 65 / ( - MAX ( DISTINCT 97 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT 0 * - 29 DIV + MAX( ALL + + 87 ) * + 42
----
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT 0 * - 29 / + MAX ( ALL + + 87 ) * + 42
----
0

query I rowsort
SELECT ALL 10 - 15
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT ALL - 94 DIV 39
----
-2

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - 94 / 39
----
-2

query I rowsort
SELECT DISTINCT + 39 - - 29 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL + CASE + ( - 93 ) WHEN COUNT( * ) + + 56 + - 59 + + - 4 / - 40 THEN COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN + + 6 END * - 78 * + 90 * - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + CASE + ( - 93 ) WHEN COUNT ( * ) + + 56 + - 59 + + - 4 / - 40 THEN COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN + + 6 END * - 78 * + 90 * - - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT COUNT( * ) + + 17 * + - ( + - 79 )
----
1344

skipif mysql # not compatible
query I rowsort label-4107
SELECT COUNT ( * ) + + 17 * + - ( + - 79 )
----
1344

onlyif mysql # aggregate syntax: 
query II rowsort label-4108
SELECT DISTINCT + COUNT( * ) * + MAX( ALL - 3 ) AS col1, - COALESCE ( - 72, - + COUNT( * ) ) AS col2
----
-3
72

skipif mysql # not compatible
query II rowsort label-4108
SELECT DISTINCT + COUNT ( * ) * + MAX ( ALL - 3 ) AS col1, - COALESCE ( - 72, - + COUNT ( * ) ) AS col2
----
-3
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL - SUM( + + CASE - - 65 WHEN - 72 THEN NULL WHEN + + 87 THEN 96 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - SUM ( + + CASE - - 65 WHEN - 72 THEN NULL WHEN + + 87 THEN 96 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT ALL + 95 * 26 * - 63 AS col1
----
-155610

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT DISTINCT - COUNT( + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT - COUNT ( + 80 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT 95 * 79 * - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT 95 * 79 * - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - CASE - 54 WHEN + 49 / + 85 + - - 93 THEN - COALESCE ( + 65, + 99 + 75 ) / - + 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4114
SELECT ALL - COUNT( * ), + ( 47 ) col1
----
-1
47

skipif mysql # not compatible
query II rowsort label-4114
SELECT ALL - COUNT ( * ), + ( 47 ) col1
----
-1
47

query I rowsort
SELECT DISTINCT - - ( + 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT ALL - ( - ( + MAX( DISTINCT + + 86 ) ) ) AS col1, 51 * - 48 + - - 39 AS col1
----
86
-2409

skipif mysql # not compatible
query II rowsort label-4116
SELECT ALL - ( - ( + MAX ( DISTINCT + + 86 ) ) ) AS col1, 51 * - 48 + - - 39 AS col1
----
86
-2409

query I rowsort
SELECT ALL - 58 + + + 83 AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4118
SELECT ( CAST( - 33 AS SIGNED ) ) AS col0, 96 AS col1
----
-33
96

skipif mysql # not compatible
query II rowsort label-4118
SELECT ( CAST ( - 33 AS INTEGER ) ) AS col0, 96 AS col1
----
-33
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT 91 DIV + 38
----
2

skipif mysql # not compatible
query I rowsort label-4119
SELECT 91 / + 38
----
2

query I rowsort
SELECT - 15 * - NULLIF ( + + 52, - 88 + 30 ) AS col2
----
780

query I rowsort
SELECT ALL - + 95 + - 24
----
-119

query I rowsort
SELECT ALL 98 + 21
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-4123
SELECT 15, MIN( + + 56 ) AS col0
----
15
56

skipif mysql # not compatible
query II rowsort label-4123
SELECT 15, MIN ( + + 56 ) AS col0
----
15
56

query I rowsort
SELECT + 81 * - 39
----
-3159

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT 29 + NULLIF ( + + 24, + MIN( + 16 ) ) + - + 73 * + 86 * MAX( - 41 ) col0
----
257451

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT 29 + NULLIF ( + + 24, + MIN ( + 16 ) ) + - + 73 * + 86 * MAX ( - 41 ) col0
----
257451

query I rowsort
SELECT - + NULLIF ( + 71, ( + 0 ) ) AS col0
----
-71

query II rowsort
SELECT - 17 - + - 47 - 75 AS col2, - 13 AS col1
----
-45
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4128
SELECT + ( - ( + COALESCE ( + MAX( DISTINCT + 53 ), + ( - 95 ) + + + CAST( NULL AS SIGNED ) + + 62 + - 15 * 69 + 71 ) ) )
----
-53

skipif mysql # not compatible
query I rowsort label-4128
SELECT + ( - ( + COALESCE ( + MAX ( DISTINCT + 53 ), + ( - 95 ) + + + CAST ( NULL AS INTEGER ) + + 62 + - 15 * 69 + 71 ) ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL + COUNT( ( - 82 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL + COUNT ( ( - 82 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT - NULLIF ( + 72, + COALESCE ( + 61, - CAST( NULL AS SIGNED ) + + 54 ) / + COUNT( DISTINCT - 19 ) * + 97 ) * - + 38 + 57
----
2793

skipif mysql # not compatible
query I rowsort label-4130
SELECT - NULLIF ( + 72, + COALESCE ( + 61, - CAST ( NULL AS INTEGER ) + + 54 ) / + COUNT ( DISTINCT - 19 ) * + 97 ) * - + 38 + 57
----
2793

query I rowsort
SELECT - 75 + - 81
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-4132
SELECT - 52, ( - + CASE - 70 WHEN - MAX( - 15 ) * - 84 * - - 91 + + - 52 - + - 76 THEN + 42 * - ( + + 22 ) ELSE - MAX( DISTINCT + + 55 ) END ) col1
----
-52
55

skipif mysql # not compatible
query II rowsort label-4132
SELECT - 52, ( - + CASE - 70 WHEN - MAX ( - 15 ) * - 84 * - - 91 + + - 52 - + - 76 THEN + 42 * - ( + + 22 ) ELSE - MAX ( DISTINCT + + 55 ) END ) col1
----
-52
55

query II rowsort
SELECT - 64 AS col1, 66
----
-64
66

query I rowsort
SELECT + 67 * - + 79 + - 10 + + ( 18 ) AS col0
----
-5285

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT MAX( + 59 ) + + 32
----
91

skipif mysql # not compatible
query I rowsort label-4135
SELECT MAX ( + 59 ) + + 32
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT 0 - - 52 + + 21 + + + SUM( + 78 ) - - - 91 * - 7 AS col2
----
788

skipif mysql # not compatible
query I rowsort label-4136
SELECT 0 - - 52 + + 21 + + + SUM ( + 78 ) - - - 91 * - 7 AS col2
----
788

query I rowsort
SELECT ALL 99 * - + ( 73 ) AS col2
----
-7227

query I rowsort
SELECT 81 * 54
----
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ( + COUNT( * ) ) + + 71
----
72

skipif mysql # not compatible
query I rowsort label-4139
SELECT ( + COUNT ( * ) ) + + 71
----
72

query I rowsort
SELECT DISTINCT 46 - + - 93
----
139

query I rowsort
SELECT ALL 63 * + + 76
----
4788

onlyif mysql # aggregate syntax: 
query II rowsort label-4142
SELECT 0 + - 36, - COUNT( * ) AS col0
----
-36
-1

skipif mysql # not compatible
query II rowsort label-4142
SELECT 0 + - 36, - COUNT ( * ) AS col0
----
-36
-1

query I rowsort
SELECT 71 * + 22 AS col0
----
1562

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT - SUM( + - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-4144
SELECT - SUM ( + - 39 )
----
39

query III rowsort
SELECT 9 + - 21 AS col0, + 23 * 10 * - - 24 AS col1, - + 49 AS col0
----
-12
5520
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4146
SELECT 25 DIV + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4146
SELECT 25 / + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT DISTINCT + 33 * 30 * - 36 + - + 0
----
-35640

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL + ( + - 6 ) * + - COUNT( * ) col0
----
6

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL + ( + - 6 ) * + - COUNT ( * ) col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4149
SELECT DISTINCT - COUNT( DISTINCT - 50 ) * - COALESCE ( + 18, - MAX( - - 63 ) + - 48 * + ( - COUNT( * ) ), + - COUNT( * ) ) / + + 65 * 6 / ( - 97 ) + - 50 + CAST( NULL AS SIGNED ) * 28 / - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT - COUNT ( DISTINCT - 50 ) * - COALESCE ( + 18, - MAX ( - - 63 ) + - 48 * + ( - COUNT ( * ) ), + - COUNT ( * ) ) / + + 65 * 6 / ( - 97 ) + - 50 + CAST ( NULL AS INTEGER ) * 28 / - 51
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT - + CAST( NULL AS SIGNED ) / - 93 + - + ( - 57 ) / 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT - + CAST ( NULL AS INTEGER ) / - 93 + - + ( - 57 ) / 2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4151
SELECT - 99 DIV + 68
----
-1

skipif mysql # not compatible
query I rowsort label-4151
SELECT - 99 / + 68
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4152
SELECT ALL + + CASE + COUNT( * ) WHEN - + 60 + - 85 + 97 THEN NULL ELSE - - 97 + - 28 - 18 * + 75 END * 44 + - + COUNT( * ) DIV + - 82
----
-56364

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL + + CASE + COUNT ( * ) WHEN - + 60 + - 85 + 97 THEN NULL ELSE - - 97 + - 28 - 18 * + 75 END * 44 + - + COUNT ( * ) / + - 82
----
-56364

query I rowsort
SELECT ALL - COALESCE ( - 51, + 53, - ( 70 ) ) * + 36 AS col0
----
1836

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4154
SELECT + CASE + - 69 WHEN 0 * - 79 THEN NULL WHEN COALESCE ( + - 72, + - ( + CAST( - COUNT( * ) AS DECIMAL ) ), - - 70 ) THEN 55 * 31 * - + 65 WHEN ( + - ( - 34 ) ) THEN - + 15 END col2, - 39
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-4154
SELECT + CASE + - 69 WHEN 0 * - 79 THEN NULL WHEN COALESCE ( + - 72, + - ( + CAST ( - COUNT ( * ) AS REAL ) ), - - 70 ) THEN 55 * 31 * - + 65 WHEN ( + - ( - 34 ) ) THEN - + 15 END col2, - 39
----
NULL
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ( COUNT( * ) ) + - 69 - - + 73 col1
----
5

skipif mysql # not compatible
query I rowsort label-4155
SELECT ( COUNT ( * ) ) + - 69 - - + 73 col1
----
5

query I rowsort
SELECT - + 9 * + 39 + + + 50 AS col0
----
-301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT ALL + CASE 51 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + + 92 END
----
92

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL + CASE 51 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 92 END
----
92

query I rowsort
SELECT - 84 * - 98 + - 20 AS col0
----
8212

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4159
SELECT ALL 68 * - + MAX( + CAST( NULL AS DECIMAL ) ) + 50 * 88 * - - 0 * - MAX( DISTINCT - - 0 ) + 54 + - + 38 col0, + 82 - + 21 * + + COUNT( * ) AS col0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-4159
SELECT ALL 68 * - + MAX ( + CAST ( NULL AS REAL ) ) + 50 * 88 * - - 0 * - MAX ( DISTINCT - - 0 ) + 54 + - + 38 col0, + 82 - + 21 * + + COUNT ( * ) AS col0
----
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL COUNT( * ) + - COUNT( * ) * + + 22
----
-21

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL COUNT ( * ) + - COUNT ( * ) * + + 22
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT - 1 + CAST( + + 70 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-4161
SELECT - 1 + CAST ( + + 70 AS INTEGER )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT DISTINCT + - MAX( DISTINCT 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT + - MAX ( DISTINCT 46 ) AS col2
----
-46

query I rowsort
SELECT - 15 + + - 46 * - - 45
----
-2085

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4164
SELECT DISTINCT - - COUNT( ALL + + CASE + 71 WHEN - 75 THEN NULL ELSE + + ( - 23 ) + - 53 END ) DIV - - 2 * - - NULLIF ( 87, - 94 + - 40 ) * + ( - + 84 ), + 72 AS col0
----
0
72

skipif mysql # not compatible
query II rowsort label-4164
SELECT DISTINCT - - COUNT ( ALL + + CASE + 71 WHEN - 75 THEN NULL ELSE + + ( - 23 ) + - 53 END ) / - - 2 * - - NULLIF ( 87, - 94 + - 40 ) * + ( - + 84 ), + 72 AS col0
----
0
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT ALL + - CAST( - 97 AS SIGNED ) - 7
----
90

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + - CAST ( - 97 AS INTEGER ) - 7
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4166
SELECT - - ( - + COUNT( * ) ) AS col2, - 2 * ( + + COUNT( * ) ) * 31
----
-1
-62

skipif mysql # not compatible
query II rowsort label-4166
SELECT - - ( - + COUNT ( * ) ) AS col2, - 2 * ( + + COUNT ( * ) ) * 31
----
-1
-62

query II rowsort
SELECT + 42 + + 84, 42 * - - 40 AS col2
----
126
1680

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT - - 3 DIV + - CASE + 91 WHEN - 61 THEN - 95 ELSE - 75 END
----
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT - - 3 / + - CASE + 91 WHEN - 61 THEN - 95 ELSE - 75 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + + COUNT( 40 ) * 18 * - - 52 + + 46 + + - 97 AS col1
----
885

skipif mysql # not compatible
query I rowsort label-4169
SELECT + + COUNT ( 40 ) * 18 * - - 52 + + 46 + + - 97 AS col1
----
885

query I rowsort
SELECT DISTINCT + 92 * + 70 + 96
----
6536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT - CAST( - + 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-4171
SELECT - CAST ( - + 95 AS INTEGER )
----
95

query I rowsort
SELECT + - 23 + + + 4
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT - SUM( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-4173
SELECT - SUM ( - 38 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4174
SELECT ALL + 94 * + CAST( + 28 AS SIGNED )
----
2632

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + 94 * + CAST ( + 28 AS INTEGER )
----
2632

query II rowsort
SELECT 64, ( + 48 ) AS col0
----
64
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT ALL ( CASE 36 WHEN - 87 THEN NULL ELSE 26 * CAST( ( + - 49 ) AS SIGNED ) END ) AS col1
----
-1274

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL ( CASE 36 WHEN - 87 THEN NULL ELSE 26 * CAST ( ( + - 49 ) AS INTEGER ) END ) AS col1
----
-1274

onlyif mysql # DIV for integer division: 
query I rowsort label-4177
SELECT - CASE - + 66 WHEN - - 17 THEN NULL WHEN - 97 * + - 17 THEN NULL ELSE - 82 * 83 END DIV 27 col2
----
252

skipif mysql # not compatible
query I rowsort label-4177
SELECT - CASE - + 66 WHEN - - 17 THEN NULL WHEN - 97 * + - 17 THEN NULL ELSE - 82 * 83 END / 27 col2
----
252

query II rowsort
SELECT ALL 22, 41 AS col1
----
22
41

query I rowsort
SELECT + 69 * - 41
----
-2829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4180
SELECT ALL 9 + + COUNT( * ) * CAST( + - NULLIF ( - 42, + 16 ) AS SIGNED ) + - + COUNT( * ) + - 17
----
33

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL 9 + + COUNT ( * ) * CAST ( + - NULLIF ( - 42, + 16 ) AS INTEGER ) + - + COUNT ( * ) + - 17
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT - COALESCE ( - 52, + + 19 + 86, 17 + + 37 ), - 15 + COUNT( * ) AS col2
----
52
-14

skipif mysql # not compatible
query II rowsort label-4181
SELECT - COALESCE ( - 52, + + 19 + 86, 17 + + 37 ), - 15 + COUNT ( * ) AS col2
----
52
-14

query I rowsort
SELECT + 33 * 15 AS col2
----
495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4183
SELECT - CASE + 24 WHEN + 1 THEN NULL WHEN - + 27 + - MAX( DISTINCT - 44 ) * COUNT( * ) * + - CASE CAST( NULL AS SIGNED ) WHEN + 53 THEN - + 88 WHEN + 25 * + - 0 THEN NULL ELSE NULL END * - 58 / + 77 + - + 38 THEN NULL ELSE 19 END AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4183
SELECT - CASE + 24 WHEN + 1 THEN NULL WHEN - + 27 + - MAX ( DISTINCT - 44 ) * COUNT ( * ) * + - CASE CAST ( NULL AS INTEGER ) WHEN + 53 THEN - + 88 WHEN + 25 * + - 0 THEN NULL ELSE NULL END * - 58 / + 77 + - + 38 THEN NULL ELSE 19 END AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT COUNT( - 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT COUNT ( - 71 ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4185
SELECT DISTINCT + 12 / - - AVG ( - 53 ) + + 19 * + 63 * - 2 + - AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT + 12 / - - AVG ( - 53 ) + + 19 * + 63 * - 2 + - AVG ( DISTINCT CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4186
SELECT DISTINCT - COUNT( * ) / - - CAST( NULL AS SIGNED ) + - - NULLIF ( 38, + 46 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT - COUNT ( * ) / - - CAST ( NULL AS INTEGER ) + - - NULLIF ( 38, + 46 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4187
SELECT ALL - - COALESCE ( 62, - COUNT( * ), - 38 + + 71 + 18 * + 62 ) DIV CASE - COUNT( DISTINCT - - 10 ) WHEN + COUNT( * ) + + ( - 5 ) * 81 THEN NULL ELSE + + 4 * + - 62 * + 35 + + + SUM( 76 ) END + + 49 * 76 * - COALESCE ( - NULLIF ( 5, 61 ), - - COUNT( * ) * - + 48 ) * COUNT( * ) * 27 + + - 37 - - ( 39 ) * - 11
----
502274

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL - - COALESCE ( 62, - COUNT ( * ), - 38 + + 71 + 18 * + 62 ) / CASE - COUNT ( DISTINCT - - 10 ) WHEN + COUNT ( * ) + + ( - 5 ) * 81 THEN NULL ELSE + + 4 * + - 62 * + 35 + + + SUM ( 76 ) END + + 49 * 76 * - COALESCE ( - NULLIF ( 5, 61 ), - - COUNT ( * ) * - + 48 ) * COUNT ( * ) * 27 + + - 37 - - ( 39 ) * - 11
----
502274

query I rowsort
SELECT + + 50 + - 2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4189
SELECT - + NULLIF ( NULLIF ( + 78, + + 11 ), + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) ) * + ( MAX( ALL + 85 ) ) * 3 + - 62 + - - ( + - MIN( DISTINCT CAST( + 47 AS SIGNED ) ) )
----
-19999

skipif mysql # not compatible
query I rowsort label-4189
SELECT - + NULLIF ( NULLIF ( + 78, + + 11 ), + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ) * + ( MAX ( ALL + 85 ) ) * 3 + - 62 + - - ( + - MIN ( DISTINCT CAST ( + 47 AS INTEGER ) ) )
----
-19999

query I rowsort
SELECT ALL 78 * + 14 - 93 - - - 74 AS col1
----
925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4191
SELECT ALL 60 / + CASE + 18 WHEN + 5 * CASE + - AVG ( DISTINCT - 92 ) WHEN + 52 THEN NULL WHEN - CASE COUNT( ALL 97 ) WHEN 7 + + 76 + 53 THEN - - 45 * - 29 END THEN + ( + 75 ) END + - 90 + 38 - 40 THEN NULL WHEN + 77 * CAST( - 64 AS SIGNED ) / COUNT( * ) + - - 40 + + COUNT( * ) THEN + 89 + + - 85 ELSE 9 * + ( 56 / 18 ) END + CASE 84 WHEN + 94 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN 38 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL 60 / + CASE + 18 WHEN + 5 * CASE + - AVG ( DISTINCT - 92 ) WHEN + 52 THEN NULL WHEN - CASE COUNT ( ALL 97 ) WHEN 7 + + 76 + 53 THEN - - 45 * - 29 END THEN + ( + 75 ) END + - 90 + 38 - 40 THEN NULL WHEN + 77 * CAST ( - 64 AS INTEGER ) / COUNT ( * ) + - - 40 + + COUNT ( * ) THEN + 89 + + - 85 ELSE 9 * + ( 56 / 18 ) END + CASE 84 WHEN + 94 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN 38 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL + + COALESCE ( - COUNT( * ), - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL + + COALESCE ( - COUNT ( * ), - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4193
SELECT DISTINCT + COUNT( * ) * 39 - + 85, COUNT( * ) * 55 AS col2
----
-46
55

skipif mysql # not compatible
query II rowsort label-4193
SELECT DISTINCT + COUNT ( * ) * 39 - + 85, COUNT ( * ) * 55 AS col2
----
-46
55

query I rowsort
SELECT ALL - 13 * - 51
----
663

query I rowsort
SELECT ALL + + 87 col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4196
SELECT + + 33 * + COUNT( - 37 ) - 37 - 96 + 52, - COALESCE ( + COUNT( * ), - + CAST( NULL AS SIGNED ) ) * SUM( ALL - + 50 ) col1
----
-48
50

skipif mysql # not compatible
query II rowsort label-4196
SELECT + + 33 * + COUNT ( - 37 ) - 37 - 96 + 52, - COALESCE ( + COUNT ( * ), - + CAST ( NULL AS INTEGER ) ) * SUM ( ALL - + 50 ) col1
----
-48
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - - 68 * - + COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4197
SELECT - - 68 * - + COUNT ( * ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT ALL + + 53 AS col1, 30 * MAX( ALL + + 85 )
----
53
2550

skipif mysql # not compatible
query II rowsort label-4198
SELECT ALL + + 53 AS col1, 30 * MAX ( ALL + + 85 )
----
53
2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT DISTINCT NULLIF ( + - COUNT( * ), + COALESCE ( 24, + - CASE - + 65 WHEN - 42 THEN NULL WHEN 7 + + 10 + - - 89 * - 78 * - 31 + + 60 + + COALESCE ( + 26, 22 + + ( 91 ), 70 ) * - MAX( + 20 ) * MIN( DISTINCT 9 ) + - CASE + ( 44 ) WHEN + 65 THEN NULL WHEN - CAST( NULL AS SIGNED ) * 99 / 27 THEN 45 + 33 / COUNT( * ) ELSE + COUNT( * ) END + + COUNT( * ) THEN NULL ELSE + 59 - ( - 64 + + 48 ) END, 57 ) * 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT NULLIF ( + - COUNT ( * ), + COALESCE ( 24, + - CASE - + 65 WHEN - 42 THEN NULL WHEN 7 + + 10 + - - 89 * - 78 * - 31 + + 60 + + COALESCE ( + 26, 22 + + ( 91 ), 70 ) * - MAX ( + 20 ) * MIN ( DISTINCT 9 ) + - CASE + ( 44 ) WHEN + 65 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * 99 / 27 THEN 45 + 33 / COUNT ( * ) ELSE + COUNT ( * ) END + + COUNT ( * ) THEN NULL ELSE + 59 - ( - 64 + + 48 ) END, 57 ) * 67 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT DISTINCT ( SUM( ALL + 93 ) )
----
93

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT ( SUM ( ALL + 93 ) )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4201
SELECT COUNT( * ), - MAX( 28 ) AS col1
----
1
-28

skipif mysql # not compatible
query II rowsort label-4201
SELECT COUNT ( * ), - MAX ( 28 ) AS col1
----
1
-28

query I rowsort
SELECT - 51 * + - 2 AS col2
----
102

query I rowsort
SELECT ALL + 63 * + + 82 col2
----
5166

onlyif mysql # DIV for integer division: 
query I rowsort label-4204
SELECT + 69 DIV - + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4204
SELECT + 69 / - + 92 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT - 39 + + COUNT( ALL - 89 ) * - 42
----
-81

skipif mysql # not compatible
query I rowsort label-4205
SELECT - 39 + + COUNT ( ALL - 89 ) * - 42
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL + 63 + + - SUM( DISTINCT - 75 ) - + 6 + 67 AS col0
----
199

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL + 63 + + - SUM ( DISTINCT - 75 ) - + 6 + 67 AS col0
----
199

query I rowsort
SELECT - 92 + + + 45 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4208
SELECT ALL 3 + + - 92 + - 81 + + 66, ( + - SUM( - 19 ) ) AS col2
----
-104
19

skipif mysql # not compatible
query II rowsort label-4208
SELECT ALL 3 + + - 92 + - 81 + + 66, ( + - SUM ( - 19 ) ) AS col2
----
-104
19

query II rowsort
SELECT DISTINCT 83 AS col0, + 19
----
83
19

query I rowsort
SELECT + 68 + + 93
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL + COUNT( * ) + - MIN( DISTINCT + 63 )
----
-62

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + COUNT ( * ) + - MIN ( DISTINCT + 63 )
----
-62

query I rowsort
SELECT + 85 * + - 93 AS col2
----
-7905

query I rowsort
SELECT + 62 + - ( - 38 ) AS col2
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4214
SELECT - 32 DIV + 10, + 41 * CASE + 72 WHEN 17 THEN + + 17 ELSE NULL END DIV - 93 + + + COUNT( * ) * - - 53 AS col0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4214
SELECT - 32 / + 10, + 41 * CASE + 72 WHEN 17 THEN + + 17 ELSE NULL END / - 93 + + + COUNT ( * ) * - - 53 AS col0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT + COUNT( * ) + + 23 + - - 48 * 91 AS col1
----
4392

skipif mysql # not compatible
query I rowsort label-4215
SELECT + COUNT ( * ) + + 23 + - - 48 * 91 AS col1
----
4392

query I rowsort
SELECT - 49 * + 12
----
-588

query I rowsort
SELECT 89 * 48
----
4272

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL - + CASE + 84 WHEN ( - 93 ) / + 59 - + COUNT( - 90 ) THEN - 44 * - - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL - + CASE + 84 WHEN ( - 93 ) / + 59 - + COUNT ( - 90 ) THEN - 44 * - - 67 END
----
NULL

query I rowsort
SELECT DISTINCT + 52 - + - 47 * + 65
----
3107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT DISTINCT - CAST( - 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - CAST ( - 18 AS INTEGER ) AS col0
----
18

query I rowsort
SELECT ALL 91 * 0 AS col1
----
0

query I rowsort
SELECT + - CASE 43 WHEN - + 1 * - 56 + - 5 THEN 71 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4223
SELECT DISTINCT 49 * + - COUNT( * ) DIV SUM( + 93 ) * + CASE + COUNT( * ) WHEN - - 31 THEN MIN( 65 ) WHEN - ( - + COUNT( * ) ) THEN 83 END * - 17 * COUNT( * ) DIV 30 - 51
----
-51

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT 49 * + - COUNT ( * ) / SUM ( + 93 ) * + CASE + COUNT ( * ) WHEN - - 31 THEN MIN ( 65 ) WHEN - ( - + COUNT ( * ) ) THEN 83 END * - 17 * COUNT ( * ) / 30 - 51
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT DISTINCT 53 - - + CASE + - COUNT( * ) WHEN + - 82 * + 41 THEN ( 84 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT 53 - - + CASE + - COUNT ( * ) WHEN + - 82 * + 41 THEN ( 84 ) END AS col1
----
NULL

query I rowsort
SELECT + ( - + 90 ) * - 82 AS col2
----
7380

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT - CASE COUNT( * ) WHEN - 87 THEN 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT - CASE COUNT ( * ) WHEN - 87 THEN 82 END
----
NULL

query I rowsort
SELECT ALL - ( - + 17 ) - 34 AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4228
SELECT - 31 AS col0, 42 DIV - + COUNT( * )
----
-31
-42

skipif mysql # not compatible
query II rowsort label-4228
SELECT - 31 AS col0, 42 / - + COUNT ( * )
----
-31
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4229
SELECT - SUM( 67 ) + - - COALESCE ( COALESCE ( + COUNT( * ), + 4 - - + 98 - 24 * - CAST( NULL AS SIGNED ) * 58 ), - + 12 + 40 )
----
-66

skipif mysql # not compatible
query I rowsort label-4229
SELECT - SUM ( 67 ) + - - COALESCE ( COALESCE ( + COUNT ( * ), + 4 - - + 98 - 24 * - CAST ( NULL AS INTEGER ) * 58 ), - + 12 + 40 )
----
-66

query I rowsort
SELECT ALL - - ( - 40 )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4231
SELECT + COALESCE ( - - 0, + COUNT( * ) ) * ( 2 ) + - + 57 * + CASE - COALESCE ( CAST( NULL AS SIGNED ), - 29 * - - 44, 6 / 51 * - - CAST( NULL AS SIGNED ) + - COUNT( * ), + - CASE + AVG ( - + ( - 84 ) ) WHEN - CAST( 99 AS SIGNED ) THEN SUM( - - 5 ) - - + COUNT( * ) * + - 81 WHEN - + 92 + - 13 * CAST( NULL AS SIGNED ) THEN - - 41 END * + 12 + + - 56 / + COUNT( * ) + COUNT( DISTINCT + CASE - 74 WHEN 55 + 28 THEN NULL WHEN 29 THEN 26 * + 96 + + 82 * 20 ELSE NULL END ) ) WHEN 57 THEN COUNT( * ) * SUM( ALL - 91 * 33 ) - 74 * 24 WHEN NULLIF ( COUNT( * ), - 1 ) * 51 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT + COALESCE ( - - 0, + COUNT ( * ) ) * ( 2 ) + - + 57 * + CASE - COALESCE ( CAST ( NULL AS INTEGER ), - 29 * - - 44, 6 / 51 * - - CAST ( NULL AS INTEGER ) + - COUNT ( * ), + - CASE + AVG ( - + ( - 84 ) ) WHEN - CAST ( 99 AS INTEGER ) THEN SUM ( - - 5 ) - - + COUNT ( * ) * + - 81 WHEN - + 92 + - 13 * CAST ( NULL AS INTEGER ) THEN - - 41 END * + 12 + + - 56 / + COUNT ( * ) + COUNT ( DISTINCT + CASE - 74 WHEN 55 + 28 THEN NULL WHEN 29 THEN 26 * + 96 + + 82 * 20 ELSE NULL END ) ) WHEN 57 THEN COUNT ( * ) * SUM ( ALL - 91 * 33 ) - 74 * 24 WHEN NULLIF ( COUNT ( * ), - 1 ) * 51 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT DISTINCT + 76 DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT + 76 / - 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT - + COALESCE ( - + NULLIF ( - 37, - 23 * - 80 + + + 64 - - - COUNT( * ) ), 25, + - 65 * - - 54 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT - + COALESCE ( - + NULLIF ( - 37, - 23 * - 80 + + + 64 - - - COUNT ( * ) ), 25, + - 65 * - - 54 ) AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4234
SELECT 6 DIV - 94 * - + 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT 6 / - 94 * - + 36 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4235
SELECT ALL - COUNT( * ) DIV + 23 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - COUNT ( * ) / + 23 AS col0
----
0

onlyif mysql # DIV for integer division: 
query III rowsort label-4236
SELECT DISTINCT - 65 col1, - 68 AS col0, + + 29 DIV - 63
----
-65
-68
0

skipif mysql # not compatible
query III rowsort label-4236
SELECT DISTINCT - 65 col1, - 68 AS col0, + + 29 / - 63
----
-65
-68
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * + 40 / 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 40 / 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL + CASE WHEN NOT 94 NOT BETWEEN + + MIN( ALL + 81 ) AND NULL THEN - - CASE - 71 WHEN - - ( + COUNT( * ) ) THEN NULL WHEN - - 41 * + - 96 * - + COUNT( * ) - COALESCE ( - + 78, 97, + 32 * 1 * - CASE + + 16 WHEN + - MAX( DISTINCT 97 ) THEN + + 89 END + - + 70 ) * - COUNT( * ) THEN - 33 WHEN - + NULLIF ( + 58, + - COUNT( * ) ) THEN NULL END ELSE NULL END + - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL + CASE WHEN NOT 94 NOT BETWEEN + + MIN ( ALL + 81 ) AND NULL THEN - - CASE - 71 WHEN - - ( + COUNT ( * ) ) THEN NULL WHEN - - 41 * + - 96 * - + COUNT ( * ) - COALESCE ( - + 78, 97, + 32 * 1 * - CASE + + 16 WHEN + - MAX ( DISTINCT 97 ) THEN + + 89 END + - + 70 ) * - COUNT ( * ) THEN - 33 WHEN - + NULLIF ( + 58, + - COUNT ( * ) ) THEN NULL END ELSE NULL END + - + 42
----
NULL

query I rowsort
SELECT 0 + + - 32 AS col1
----
-32

query I rowsort
SELECT ALL 40 * - 84 * 62
----
-208320

onlyif mysql # DIV for integer division: 
query II rowsort label-4241
SELECT 74 DIV + 24, 85 AS col1
----
3
85

skipif mysql # not compatible
query II rowsort label-4241
SELECT 74 / + 24, 85 AS col1
----
3
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT 67 * - + CASE + - ( - 86 ) WHEN + + 94 / + MIN( + - 28 ) + - - 30 THEN 48 + + - 86 * 61 + + - COUNT( * ) * 90 ELSE NULL END * - 0 + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT 67 * - + CASE + - ( - 86 ) WHEN + + 94 / + MIN ( + - 28 ) + - - 30 THEN 48 + + - 86 * 61 + + - COUNT ( * ) * 90 ELSE NULL END * - 0 + 9 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 76 * + - 36
----
-2736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT 19 + CAST( NULL AS SIGNED ) - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT 19 + CAST ( NULL AS INTEGER ) - - 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4245
SELECT ALL + 67 + 38 AS col1, 82 AS col1, - + 58 + 11 + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * + 91 + 80 * + 82 + - 62 + 23 + COUNT( * ) - + + COALESCE ( ( 87 ), 89 ) - 69 + + + 55 AS col0
----
105
82
NULL

skipif mysql # not compatible
query III rowsort label-4245
SELECT ALL + 67 + 38 AS col1, 82 AS col1, - + 58 + 11 + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 91 + 80 * + 82 + - 62 + 23 + COUNT ( * ) - + + COALESCE ( ( 87 ), 89 ) - 69 + + + 55 AS col0
----
105
82
NULL

query I rowsort
SELECT ALL - 4 + - + ( 52 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4247
SELECT DISTINCT + COALESCE ( - 70, + COUNT( * ) ) + SUM( DISTINCT 58 ) DIV 86 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT + COALESCE ( - 70, + COUNT ( * ) ) + SUM ( DISTINCT 58 ) / 86 AS col0
----
-70

query II rowsort
SELECT DISTINCT 80 * - - 48, + 7 AS col2
----
3840
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT DISTINCT 39 + SUM( DISTINCT 18 ) + 44 * - + 47 - - + SUM( - 20 )
----
-2031

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT 39 + SUM ( DISTINCT 18 ) + 44 * - + 47 - - + SUM ( - 20 )
----
-2031

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL + 31 + + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL + 31 + + COUNT ( * ) AS col2
----
32

query I rowsort
SELECT DISTINCT + 22 + + + 50 AS col1
----
72

query II rowsort
SELECT DISTINCT + 50 + + 36 AS col0, - ( + - ( + 58 ) ) * - 9 * - + ( 11 ) AS col0
----
86
5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT CAST( + COUNT( ALL + 36 ) AS SIGNED ) * + - 55 col0
----
-55

skipif mysql # not compatible
query I rowsort label-4253
SELECT CAST ( + COUNT ( ALL + 36 ) AS INTEGER ) * + - 55 col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT COUNT( * ) * + MIN( - 54 ) * + COALESCE ( COALESCE ( ( 55 ), 25 ), COUNT( ALL 35 ) + 77, + COUNT( * ) + - 41 ) * - 99
----
294030

skipif mysql # not compatible
query I rowsort label-4254
SELECT COUNT ( * ) * + MIN ( - 54 ) * + COALESCE ( COALESCE ( ( 55 ), 25 ), COUNT ( ALL 35 ) + 77, + COUNT ( * ) + - 41 ) * - 99
----
294030

query I rowsort
SELECT DISTINCT + 14 * - 79 col1
----
-1106

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL + 5 - - SUM( DISTINCT - 47 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL + 5 - - SUM ( DISTINCT - 47 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT CASE + - 51 WHEN - - ( COUNT( * ) ) * - - 72 + - - 40 THEN NULL ELSE - - COUNT( * ) END * + - 12 - 60 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4257
SELECT CASE + - 51 WHEN - - ( COUNT ( * ) ) * - - 72 + - - 40 THEN NULL ELSE - - COUNT ( * ) END * + - 12 - 60 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT DISTINCT - ( COALESCE ( - 43, + COUNT( * ) + - 24, - 46 ) ) * - ( - 23 )
----
989

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT - ( COALESCE ( - 43, + COUNT ( * ) + - 24, - 46 ) ) * - ( - 23 )
----
989

query I rowsort
SELECT ALL - 37 * + ( + ( + - ( + - 50 ) ) ) * - 84
----
155400

onlyif mysql # DIV for integer division: 
query II rowsort label-4260
SELECT DISTINCT ( - 56 ) AS col1, 9 + 16 DIV ( - 16 ) AS col2
----
-56
8

skipif mysql # not compatible
query II rowsort label-4260
SELECT DISTINCT ( - 56 ) AS col1, 9 + 16 / ( - 16 ) AS col2
----
-56
8

query I rowsort
SELECT DISTINCT - 20 - + 83 + + 48 + - 93 AS col1
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4262
SELECT - 11 DIV - + ( ( - 42 ) ) + + COALESCE ( - - NULLIF ( - - CASE - 90 WHEN 28 THEN + NULLIF ( - CASE + + MIN( + 53 ) WHEN - 2 + - + COUNT( * ) THEN - - 98 ELSE NULL END, 46 ) - - - COUNT( * ) + 44 + + 59 + - ( - NULLIF ( NULLIF ( - 15, - NULLIF ( - - MAX( - 30 ), + ( COUNT( * ) ) + + 99 ) ), + + COUNT( * ) ) ) DIV - 76 END, + 85 ), + 47 * + 28 - + 90, 46 ) + - 13 * 28
----
862

skipif mysql # not compatible
query I rowsort label-4262
SELECT - 11 / - + ( ( - 42 ) ) + + COALESCE ( - - NULLIF ( - - CASE - 90 WHEN 28 THEN + NULLIF ( - CASE + + MIN ( + 53 ) WHEN - 2 + - + COUNT ( * ) THEN - - 98 ELSE NULL END, 46 ) - - - COUNT ( * ) + 44 + + 59 + - ( - NULLIF ( NULLIF ( - 15, - NULLIF ( - - MAX ( - 30 ), + ( COUNT ( * ) ) + + 99 ) ), + + COUNT ( * ) ) ) / - 76 END, + 85 ), + 47 * + 28 - + 90, 46 ) + - 13 * 28
----
862

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT CASE - 51 WHEN 62 - - 55 * COUNT( * ) + - ( 61 ) THEN 99 + 90 * - 66 ELSE NULL END * ( + COUNT( * ) ) * 57 - + + ( 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT CASE - 51 WHEN 62 - - 55 * COUNT ( * ) + - ( 61 ) THEN 99 + 90 * - 66 ELSE NULL END * ( + COUNT ( * ) ) * 57 - + + ( 35 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT - 81 * + 84 * - 25 + + - CAST( - 61 AS SIGNED )
----
170161

skipif mysql # not compatible
query I rowsort label-4264
SELECT - 81 * + 84 * - 25 + + - CAST ( - 61 AS INTEGER )
----
170161

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT 52 + + MIN( DISTINCT - + 37 ) - 97 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4265
SELECT 52 + + MIN ( DISTINCT - + 37 ) - 97 AS col1
----
-82

query I rowsort
SELECT + + 81 * + - 37 + + 60 - + 61 * 52 - + + COALESCE ( + - 10, - + 36 * - 50 - + + 5 * - 25, 93 )
----
-6099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT ALL + CAST( NULL AS SIGNED ) * + 1 * + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL + CAST ( NULL AS INTEGER ) * + 1 * + 94 AS col1
----
NULL

query I rowsort
SELECT 29 * - 5 * + 90 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT 8 * ( COUNT( * ) ) * - 93
----
-744

skipif mysql # not compatible
query I rowsort label-4269
SELECT 8 * ( COUNT ( * ) ) * - 93
----
-744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4270
SELECT - 97 * + + 55 DIV + COUNT( * ) AS col2
----
-5335

skipif mysql # not compatible
query I rowsort label-4270
SELECT - 97 * + + 55 / + COUNT ( * ) AS col2
----
-5335

query I rowsort
SELECT ALL - ( - + 31 ) AS col2
----
31

query II rowsort
SELECT DISTINCT - 51 col1, ( + 26 ) * - 86 - 35
----
-51
-2271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4273
SELECT MIN( ALL + ( + CAST( NULL AS SIGNED ) ) ) * - NULLIF ( + 32, - 86 ) - NULLIF ( + 71, - + COUNT( * ) ) - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT MIN ( ALL + ( + CAST ( NULL AS INTEGER ) ) ) * - NULLIF ( + 32, - 86 ) - NULLIF ( + 71, - + COUNT ( * ) ) - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL - MAX( DISTINCT + + 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL - MAX ( DISTINCT + + 2 ) AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT ALL 86 DIV - 53 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL 86 / - 53 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4276
SELECT 9 DIV + - 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4276
SELECT 9 / + - 20 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL 98 + + 10 + ( + + COUNT( * ) )
----
109

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL 98 + + 10 + ( + + COUNT ( * ) )
----
109

query I rowsort
SELECT 15 * 8 AS col1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT ALL + CAST( NULL AS SIGNED ) + - - ( 60 ) + 15 / + 8 * - - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + CAST ( NULL AS INTEGER ) + - - ( 60 ) + 15 / + 8 * - - 73 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT CAST( NULL AS SIGNED ) - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT CAST ( NULL AS INTEGER ) - - 30
----
NULL

query I rowsort
SELECT 28 * 65
----
1820

query I rowsort
SELECT 99 + + 44 * - + 68 + - 53 AS col0
----
-2946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT 34 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT 34 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 18 ) + - ( - ( - - 85 ) )
----
103

query II rowsort
SELECT 17 AS col1, 62
----
17
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4286
SELECT DISTINCT + COALESCE ( - CAST( - 83 AS SIGNED ), - + 31 ) * 85
----
7055

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT + COALESCE ( - CAST ( - 83 AS INTEGER ), - + 31 ) * 85
----
7055

query I rowsort
SELECT + 26 + + ( - 8 ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4288
SELECT - 92 AS col1, NULLIF ( - 69, - - 90 ) + + + CAST( NULL AS SIGNED ) AS col2
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-4288
SELECT - 92 AS col1, NULLIF ( - 69, - - 90 ) + + + CAST ( NULL AS INTEGER ) AS col2
----
-92
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4289
SELECT ALL - 39, + 7 + - COUNT( * ) AS col1
----
-39
6

skipif mysql # not compatible
query II rowsort label-4289
SELECT ALL - 39, + 7 + - COUNT ( * ) AS col1
----
-39
6

query I rowsort
SELECT - 57 + - - 2 AS col0
----
-55

query I rowsort
SELECT - 70 + - + 42 * - - COALESCE ( + + 94, 35 )
----
-4018

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4292
SELECT - 9 DIV - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-4292
SELECT - 9 / - COUNT ( * )
----
9

query I rowsort
SELECT ALL - + 42 * - 6 + 86 AS col0
----
338

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT - MAX( + 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4294
SELECT - MAX ( + 90 ) AS col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4295
SELECT DISTINCT - CAST( 70 AS SIGNED ) DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT - CAST ( 70 AS INTEGER ) / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL - + ( - COUNT( * ) ) * + + 27
----
27

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL - + ( - COUNT ( * ) ) * + + 27
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT - + CASE + COUNT( * ) WHEN + 91 THEN + - 47 + ( - CASE + 91 WHEN 7 THEN + 11 END ) + - + COUNT( * ) + + 5 + + 63 * - + 45 * + 52 * + COUNT( * ) / + 39 * - CAST( + - CASE + 64 WHEN - 41 * + - COUNT( * ) + 97 THEN COUNT( * ) / + 3 ELSE - 41 * + 50 * 72 * MIN( ALL 88 ) END AS SIGNED ) / - CASE 69 WHEN - 68 THEN NULL ELSE + - 31 * - 18 END * 94 WHEN + SUM( + 60 ) * 50 THEN + 41 END / + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT - + CASE + COUNT ( * ) WHEN + 91 THEN + - 47 + ( - CASE + 91 WHEN 7 THEN + 11 END ) + - + COUNT ( * ) + + 5 + + 63 * - + 45 * + 52 * + COUNT ( * ) / + 39 * - CAST ( + - CASE + 64 WHEN - 41 * + - COUNT ( * ) + 97 THEN COUNT ( * ) / + 3 ELSE - 41 * + 50 * 72 * MIN ( ALL 88 ) END AS INTEGER ) / - CASE 69 WHEN - 68 THEN NULL ELSE + - 31 * - 18 END * 94 WHEN + SUM ( + 60 ) * 50 THEN + 41 END / + 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT ALL 50 * + + 63 + + COUNT( * ) AS col1, - 52 - + - 25
----
3151
-27

skipif mysql # not compatible
query II rowsort label-4298
SELECT ALL 50 * + + 63 + + COUNT ( * ) AS col1, - 52 - + - 25
----
3151
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT ALL + CAST( 98 AS SIGNED ) col2
----
98

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL + CAST ( 98 AS INTEGER ) col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4300
SELECT + 16, COUNT( * ) + CAST( NULL AS SIGNED ) / 91 AS col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-4300
SELECT + 16, COUNT ( * ) + CAST ( NULL AS INTEGER ) / 91 AS col2
----
16
NULL

query I rowsort
SELECT ALL + 98 * 54 + - 73 * COALESCE ( - 29, + + 94 * + 4 * + 75 * 42 - 44 ) + - 64
----
7345

query II rowsort
SELECT + + 90 AS col1, 56 AS col1
----
90
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4303
SELECT 4 * + - CAST( CASE + 83 WHEN - 64 THEN - + 35 * 20 * - - 25 + 6 ELSE + COALESCE ( + - COUNT( * ), + - 27 ) END AS SIGNED ) * - - 98 + + ( + COUNT( * ) ) + + - 54 + + + COALESCE ( - 28, + 39, - 92 * + 75 ) * 57 AS col2
----
-1257

skipif mysql # not compatible
query I rowsort label-4303
SELECT 4 * + - CAST ( CASE + 83 WHEN - 64 THEN - + 35 * 20 * - - 25 + 6 ELSE + COALESCE ( + - COUNT ( * ), + - 27 ) END AS INTEGER ) * - - 98 + + ( + COUNT ( * ) ) + + - 54 + + + COALESCE ( - 28, + 39, - 92 * + 75 ) * 57 AS col2
----
-1257

query II rowsort
SELECT ALL + - 56, + 34 * - - 13 AS col1
----
-56
442

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT + SUM( + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4305
SELECT + SUM ( + 67 )
----
67

query I rowsort
SELECT ALL - 12 * + 65 * ( - + 91 ) * + - 43 + + NULLIF ( - - 26, - - 95 ) - + - ( + 49 ) + 24 + - 47 * + - 35 AS col2
----
-3050396

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT + NULLIF ( - COUNT( * ), - 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-4307
SELECT + NULLIF ( - COUNT ( * ), - 10 )
----
-1

query I rowsort
SELECT DISTINCT - 96 * 98 + - 87 AS col0
----
-9495

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL 5 * - CASE + 51 WHEN + COALESCE ( + + SUM( - - ( 52 ) ), + 85 ) THEN + - 13 + - + CASE + 45 WHEN - + ( + 55 ) THEN 41 ELSE COUNT( * ) END * + 24 WHEN + 76 THEN NULL END / + MIN( ALL + - 63 ) + - 5 + - - COUNT( * ) * - + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL 5 * - CASE + 51 WHEN + COALESCE ( + + SUM ( - - ( 52 ) ), + 85 ) THEN + - 13 + - + CASE + 45 WHEN - + ( + 55 ) THEN 41 ELSE COUNT ( * ) END * + 24 WHEN + 76 THEN NULL END / + MIN ( ALL + - 63 ) + - 5 + - - COUNT ( * ) * - + 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT MIN( ALL 21 ) * + + 56 * 72 + - 72 + + 48 AS col1
----
84648

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT MIN ( ALL 21 ) * + + 56 * 72 + - 72 + + 48 AS col1
----
84648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT ALL + 96 * 3 + + CAST( + - 75 AS SIGNED ) AS col2
----
213

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + 96 * 3 + + CAST ( + - 75 AS INTEGER ) AS col2
----
213

query I rowsort
SELECT + 62 + - 56 AS col2
----
6

query I rowsort
SELECT ALL 27 * 75 * 53
----
107325

query I rowsort
SELECT + 50 * + - CASE - 6 WHEN 76 * + + 55 - + 57 * 65 THEN NULL ELSE 0 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + 56 * CASE - COUNT( * ) WHEN + - 85 THEN NULL ELSE + 56 END
----
3136

skipif mysql # not compatible
query I rowsort label-4315
SELECT + 56 * CASE - COUNT ( * ) WHEN + - 85 THEN NULL ELSE + 56 END
----
3136

onlyif mysql # aggregate syntax: 
query II rowsort label-4316
SELECT COUNT( + + 69 ) AS col1, - 80 * - MIN( - + 47 ) * - + 4 + 16
----
1
15056

skipif mysql # not compatible
query II rowsort label-4316
SELECT COUNT ( + + 69 ) AS col1, - 80 * - MIN ( - + 47 ) * - + 4 + 16
----
1
15056

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4317
SELECT + COALESCE ( + 20, + - 5 + 1 - - COALESCE ( - + 95, - - CAST( - 78 AS SIGNED ), + - 53 ) DIV + 6 ) + ( - + 81 ) AS col0, 78 AS col0
----
-61
78

skipif mysql # not compatible
query II rowsort label-4317
SELECT + COALESCE ( + 20, + - 5 + 1 - - COALESCE ( - + 95, - - CAST ( - 78 AS INTEGER ), + - 53 ) / + 6 ) + ( - + 81 ) AS col0, 78 AS col0
----
-61
78

query I rowsort
SELECT ALL - ( 16 ) * + 29
----
-464

query I rowsort
SELECT - NULLIF ( + - 51, - + 25 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT COUNT( + ( + 31 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4320
SELECT COUNT ( + ( + 31 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT + 55 * SUM( + 69 )
----
3795

skipif mysql # not compatible
query I rowsort label-4321
SELECT + 55 * SUM ( + 69 )
----
3795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT DISTINCT CAST( ( - 49 ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT CAST ( ( - 49 ) AS INTEGER )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT + + COUNT( * ) * - - 9
----
9

skipif mysql # not compatible
query I rowsort label-4323
SELECT + + COUNT ( * ) * - - 9
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT + 85 * - - 86 + 83 DIV 66 + - 45
----
7266

skipif mysql # not compatible
query I rowsort label-4324
SELECT + 85 * - - 86 + 83 / 66 + - 45
----
7266

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT - SUM( + + ( - - 63 ) ) * + 21 AS col2
----
-1323

skipif mysql # not compatible
query I rowsort label-4325
SELECT - SUM ( + + ( - - 63 ) ) * + 21 AS col2
----
-1323

query I rowsort
SELECT ALL + 71 * 54
----
3834

query I rowsort
SELECT ALL - 96 * - 91 AS col1
----
8736

query I rowsort
SELECT + - 91 - + 63
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4329
SELECT ALL - + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 16 * - + 7
----
-112

query I rowsort
SELECT ALL 4 + 10
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT ALL - + 14 + - - 6 DIV 67 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL - + 14 + - - 6 / 67 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4333
SELECT ALL + 55 + CAST( + - 42 AS SIGNED ) + - 60 * - + 56 * COUNT( * ) AS col2
----
3373

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL + 55 + CAST ( + - 42 AS INTEGER ) + - 60 * - + 56 * COUNT ( * ) AS col2
----
3373

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4334
SELECT + 64 DIV 3 * + + 74 * ( - 89 ) + + COUNT( * ) * - 42 AS col1
----
-138348

skipif mysql # not compatible
query I rowsort label-4334
SELECT + 64 / 3 * + + 74 * ( - 89 ) + + COUNT ( * ) * - 42 AS col1
----
-138348

onlyif mysql # DIV for integer division: 
query I rowsort label-4335
SELECT - - 58 DIV + ( - 28 )
----
-2

skipif mysql # not compatible
query I rowsort label-4335
SELECT - - 58 / + ( - 28 )
----
-2

query I rowsort
SELECT ALL - 51 / + + 57 - - CASE 78 WHEN - 11 * + 85 + - 26 - - 29 + + 44 THEN - 22 ELSE NULL END + - 21 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT + 64 * + ( + CAST( + 95 AS SIGNED ) ) * 65 + + 70
----
395270

skipif mysql # not compatible
query I rowsort label-4337
SELECT + 64 * + ( + CAST ( + 95 AS INTEGER ) ) * 65 + + 70
----
395270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4338
SELECT ALL 26 DIV 24 + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL 26 / 24 + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT + SUM( ALL + 31 ) * 74 + + 10 AS col2
----
2304

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + SUM ( ALL + 31 ) * 74 + + 10 AS col2
----
2304

onlyif mysql # DIV for integer division: 
query I rowsort label-4340
SELECT ALL - 2 DIV 53 + 52 + - 8 * 38
----
-252

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL - 2 / 53 + 52 + - 8 * 38
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT - 69 * COUNT( ALL + - 21 )
----
-69

skipif mysql # not compatible
query I rowsort label-4341
SELECT - 69 * COUNT ( ALL + - 21 )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4342
SELECT - 87 DIV COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4342
SELECT - 87 / COUNT ( * ) AS col1
----
-87

query II rowsort
SELECT ALL + 63 AS col2, 66 * 39 * + - 95 AS col1
----
63
-244530

query I rowsort
SELECT ( - 10 ) col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ( - - MAX( DISTINCT - 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-4345
SELECT ( - - MAX ( DISTINCT - 56 ) )
----
-56

query I rowsort
SELECT ALL - ( + + 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT - MAX( - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - MAX ( - 41 )
----
41

query I rowsort
SELECT ALL 73 * - + 11 col1
----
-803

query I rowsort
SELECT ALL 91 * - - ( + 90 ) AS col1
----
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL - MIN( 87 ) * - 58 + - 68 col1
----
4978

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL - MIN ( 87 ) * - 58 + - 68 col1
----
4978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT 33 + + CAST( - 8 AS SIGNED ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4351
SELECT 33 + + CAST ( - 8 AS INTEGER ) AS col2
----
25

query II rowsort
SELECT ALL 33 AS col2, 60 * - 72 * 77
----
33
-332640

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT + 78 + - 42 DIV + + 15
----
76

skipif mysql # not compatible
query I rowsort label-4353
SELECT + 78 + - 42 / + + 15
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL - 50 + - + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - 50 + - + COUNT ( * )
----
-51

query I rowsort
SELECT 4 + 68 AS col0
----
72

query I rowsort
SELECT DISTINCT 49 + + 73 col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT NULLIF ( - + 36, - ( - COUNT( * ) ) ) + + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-4357
SELECT NULLIF ( - + 36, - ( - COUNT ( * ) ) ) + + COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4358
SELECT + 85 DIV ( - - MAX( ALL + + 67 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4358
SELECT + 85 / ( - - MAX ( ALL + + 67 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT 73 + - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4359
SELECT 73 + - COUNT ( * ) AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4360
SELECT DISTINCT COUNT( * ) + + 43 - 91 DIV - 55
----
45

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT COUNT ( * ) + + 43 - 91 / - 55
----
45

query I rowsort
SELECT ALL + 24 + 97 + + 80 AS col2
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT 37 + - MAX( - 18 ) + 15 + 36 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-4362
SELECT 37 + - MAX ( - 18 ) + 15 + 36 AS col1
----
106

query I rowsort
SELECT 52 * + 25 AS col0
----
1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4364
SELECT - - 25 / + + 68 / + ( + CASE ( + - 3 ) WHEN + - CAST( ( COUNT( ALL + + 5 ) ) AS SIGNED ) THEN + 87 * + - 90 * COALESCE ( - COALESCE ( + - 69, + 90 ), - 33 ) * - + 25 WHEN + ( + 68 ) + + - 82 THEN + 77 * 81 * - COUNT( * ) * - 38 + - + 88 END ) + MIN( ALL + + 97 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT - - 25 / + + 68 / + ( + CASE ( + - 3 ) WHEN + - CAST ( ( COUNT ( ALL + + 5 ) ) AS INTEGER ) THEN + 87 * + - 90 * COALESCE ( - COALESCE ( + - 69, + 90 ), - 33 ) * - + 25 WHEN + ( + 68 ) + + - 82 THEN + 77 * 81 * - COUNT ( * ) * - 38 + - + 88 END ) + MIN ( ALL + + 97 ) AS col2
----
NULL

query I rowsort
SELECT ALL 4 - 49 col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT ALL + 4 - NULLIF ( + 45, - 86 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + 4 - NULLIF ( + 45, - 86 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4367
SELECT ALL - 83 AS col2, + COUNT( * ) + - - 75
----
-83
76

skipif mysql # not compatible
query II rowsort label-4367
SELECT ALL - 83 AS col2, + COUNT ( * ) + - - 75
----
-83
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT 25 + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4368
SELECT 25 + - COUNT ( * )
----
24

query II rowsort
SELECT 28 * - 88 AS col0, - 60 AS col1
----
-2464
-60

query II rowsort
SELECT 77 col2, - 26 * - - 16 AS col0
----
77
-416

query I rowsort
SELECT - 97 * + + 96 + + 23 AS col2
----
-9289

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT 77 DIV 70 + - - 46
----
47

skipif mysql # not compatible
query I rowsort label-4372
SELECT 77 / 70 + - - 46
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4373
SELECT 15 + 15 + - COALESCE ( + + 1, - - NULLIF ( 53, - 37 DIV - 81 ), 90 * + 48 DIV 95 ) * - 12 - COUNT( * ) * + 63 * - NULLIF ( + 36, + - 22 )
----
2310

skipif mysql # not compatible
query I rowsort label-4373
SELECT 15 + 15 + - COALESCE ( + + 1, - - NULLIF ( 53, - 37 / - 81 ), 90 * + 48 / 95 ) * - 12 - COUNT ( * ) * + 63 * - NULLIF ( + 36, + - 22 )
----
2310

query I rowsort
SELECT 53 * 16 AS col2
----
848

query I rowsort
SELECT - 34 * - 68 + - 5 AS col0
----
2307

query I rowsort
SELECT 60 - 76 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT + MIN( + 22 ) * 81 AS col1
----
1782

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT + MIN ( + 22 ) * 81 AS col1
----
1782

query II rowsort
SELECT ALL - 98 AS col0, CASE - COALESCE ( - 75, 62, - - 87 / + - 83 + + 74 ) WHEN + 97 THEN + - 36 ELSE NULL END
----
-98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT 78 * COUNT( * ) + 70
----
148

skipif mysql # not compatible
query I rowsort label-4379
SELECT 78 * COUNT ( * ) + 70
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT 43 * - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-4380
SELECT 43 * - - COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT 50 + - 99 + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-4381
SELECT 50 + - 99 + - COUNT ( * )
----
-50

query II rowsort
SELECT 59 + + 7, 14 AS col1
----
66
14

query I rowsort
SELECT 33 * 58
----
1914

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4384
SELECT + MAX( CAST( NULL AS DECIMAL ) ) * - + COUNT( * ) * 96 * - + SUM( - 89 ) + + COUNT( * ) + + ( - COUNT( * ) ) AS col0, - 29
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-4384
SELECT + MAX ( CAST ( NULL AS REAL ) ) * - + COUNT ( * ) * 96 * - + SUM ( - 89 ) + + COUNT ( * ) + + ( - COUNT ( * ) ) AS col0, - 29
----
NULL
-29

query I rowsort
SELECT 43 * + 47 * + 21 AS col1
----
42441

query I rowsort
SELECT ALL - 79 + + 83
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4387
SELECT DISTINCT COUNT( * ) AS col0, 84 * 38 AS col2
----
1
3192

skipif mysql # not compatible
query II rowsort label-4387
SELECT DISTINCT COUNT ( * ) AS col0, 84 * 38 AS col2
----
1
3192

query I rowsort
SELECT - 76 * 2 + + 37
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4389
SELECT ALL - - 35 DIV + + MIN( DISTINCT - 70 ) * ( + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL - - 35 / + + MIN ( DISTINCT - 70 ) * ( + - COUNT ( * ) )
----
0

query II rowsort
SELECT ALL + - 72 + + 34 AS col0, - 4 AS col1
----
-38
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4391
SELECT 73 * + + CAST( NULL AS SIGNED ) + - 9 + + NULLIF ( 80, 75 * - 87 + 20 ) * - CASE - 2 WHEN - - 75 THEN + - 57 WHEN - 46 THEN - MAX( DISTINCT + 29 ) END * - 36 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT 73 * + + CAST ( NULL AS INTEGER ) + - 9 + + NULLIF ( 80, 75 * - 87 + 20 ) * - CASE - 2 WHEN - - 75 THEN + - 57 WHEN - 46 THEN - MAX ( DISTINCT + 29 ) END * - 36 col2
----
NULL

query II rowsort
SELECT - 34, + 67 + - COALESCE ( - ( - - 49 ), + - 79 + - + 35 ) AS col1
----
-34
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4393
SELECT DISTINCT NULLIF ( 21, - 45 * - 74 * 20 - + 30 * COUNT( * ) * + 13 ) + + 5 - + 17 - 6 DIV 86
----
9

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT NULLIF ( 21, - 45 * - 74 * 20 - + 30 * COUNT ( * ) * + 13 ) + + 5 - + 17 - 6 / 86
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT + MIN( + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4394
SELECT + MIN ( + 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT ALL + 19 + + 81 DIV - MIN( ALL 40 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL + 19 + + 81 / - MIN ( ALL 40 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL - + 68 + + - 57 + + - COUNT( * )
----
-126

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL - + 68 + + - 57 + + - COUNT ( * )
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT - MIN( DISTINCT + - 73 ) * + - 6 AS col0
----
-438

skipif mysql # not compatible
query I rowsort label-4397
SELECT - MIN ( DISTINCT + - 73 ) * + - 6 AS col0
----
-438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4398
SELECT ALL 22 + + CAST( NULL AS SIGNED ) * - COALESCE ( 23, + + 52 ) * + 95 + - ( + 88 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL 22 + + CAST ( NULL AS INTEGER ) * - COALESCE ( 23, + + 52 ) * + 95 + - ( + 88 ) AS col1
----
NULL

query I rowsort
SELECT 21 - - + 49 AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4400
SELECT ALL 30, - COUNT( * ) AS col1
----
30
-1

skipif mysql # not compatible
query II rowsort label-4400
SELECT ALL 30, - COUNT ( * ) AS col1
----
30
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4401
SELECT ALL + - CAST( 85 AS SIGNED ) - + 18
----
-103

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL + - CAST ( 85 AS INTEGER ) - + 18
----
-103

query II rowsort
SELECT DISTINCT 86, + 44 col0
----
86
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4403
SELECT DISTINCT 67 DIV + + COUNT( * ) + + 38 - + + ( 87 )
----
18

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT 67 / + + COUNT ( * ) + + 38 - + + ( 87 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4404
SELECT ( + 79 ) AS col1, + COUNT( * ) + + 87
----
79
88

skipif mysql # not compatible
query II rowsort label-4404
SELECT ( + 79 ) AS col1, + COUNT ( * ) + + 87
----
79
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4405
SELECT - 58 * ( 50 ) DIV + MIN( ALL + 91 )
----
-31

skipif mysql # not compatible
query I rowsort label-4405
SELECT - 58 * ( 50 ) / + MIN ( ALL + 91 )
----
-31

query I rowsort
SELECT ALL 4 * - 69 * + - 57 AS col1
----
15732

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT + 10 DIV - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4407
SELECT + 10 / - 84 AS col0
----
0

query I rowsort
SELECT + 16 * - + ( 67 ) * - 92 AS col2
----
98624

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT ALL ( + 13 ) * 71 DIV - 35
----
-26

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL ( + 13 ) * 71 / - 35
----
-26

query I rowsort
SELECT CASE - 38 WHEN 85 THEN - 57 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL ( - 82 ) * + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL ( - 82 ) * + COUNT ( * )
----
-82

query I rowsort
SELECT DISTINCT - 27 * - - 69 + - 27
----
-1890

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT 83 * 37 + 28 * + 40 + COUNT( * ) AS col2, + 39 col0
----
4192
39

skipif mysql # not compatible
query II rowsort label-4413
SELECT 83 * 37 + 28 * + 40 + COUNT ( * ) AS col2, + 39 col0
----
4192
39

query I rowsort
SELECT - ( 86 ) * - + 9 * + 97
----
75078

query II rowsort
SELECT - 54 * - 36 - - 16 + + 94 * + 73 AS col0, 23 AS col0
----
8822
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4416
SELECT MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL 47 * + ( - 78 ) + - COUNT( * )
----
-3667

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL 47 * + ( - 78 ) + - COUNT ( * )
----
-3667

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT + 14 + 82 + + - COUNT( * ) + + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-4418
SELECT + 14 + 82 + + - COUNT ( * ) + + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL - 17 * - COUNT( * ) + - 55 * - + 56 AS col1
----
3097

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - 17 * - COUNT ( * ) + - 55 * - + 56 AS col1
----
3097

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL 8 * + + ( - 57 ) * + 59 * + 65 + + + MIN( DISTINCT 52 ) + - COUNT( * ) - - - 51 AS col1
----
-1748760

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL 8 * + + ( - 57 ) * + 59 * + 65 + + + MIN ( DISTINCT 52 ) + - COUNT ( * ) - - - 51 AS col1
----
-1748760

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT DISTINCT 52 * + 86 + - + CASE - 81 WHEN - 60 THEN NULL WHEN 81 THEN + - COUNT( * ) + 93 * 19 WHEN + - 95 THEN + + 22 + 23 * - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT 52 * + 86 + - + CASE - 81 WHEN - 60 THEN NULL WHEN 81 THEN + - COUNT ( * ) + 93 * 19 WHEN + - 95 THEN + + 22 + 23 * - 42 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4422
SELECT ALL + 17 + + + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + 17 + + + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4423
SELECT - CASE - COUNT( * ) WHEN 25 / + AVG ( DISTINCT - 63 ) THEN NULL ELSE + 9 * - COUNT( * ) END AS col1, 69 + MIN( ALL + 0 )
----
9
69

skipif mysql # not compatible
query II rowsort label-4423
SELECT - CASE - COUNT ( * ) WHEN 25 / + AVG ( DISTINCT - 63 ) THEN NULL ELSE + 9 * - COUNT ( * ) END AS col1, 69 + MIN ( ALL + 0 )
----
9
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT DISTINCT + + ( + - 47 ) + + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT + + ( + - 47 ) + + COUNT ( * )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT - 23 + 62 + - CASE + - 51 WHEN - + CAST( + ( + + 65 ) AS SIGNED ) THEN NULL WHEN + 8 * + 74 THEN + 11 END * + 4 * + + ( - 45 ) + - 15 + ( + SUM( + - 44 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT - 23 + 62 + - CASE + - 51 WHEN - + CAST ( + ( + + 65 ) AS INTEGER ) THEN NULL WHEN + 8 * + 74 THEN + 11 END * + 4 * + + ( - 45 ) + - 15 + ( + SUM ( + - 44 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT SUM( - - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-4426
SELECT SUM ( - - 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - COALESCE ( - - 40, NULLIF ( COUNT( * ), - 57 ) ) + - - COALESCE ( - COALESCE ( + 70, - 53, + 74 + + 50 ), + - 24 * COUNT( * ) )
----
-110

skipif mysql # not compatible
query I rowsort label-4427
SELECT - COALESCE ( - - 40, NULLIF ( COUNT ( * ), - 57 ) ) + - - COALESCE ( - COALESCE ( + 70, - 53, + 74 + + 50 ), + - 24 * COUNT ( * ) )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT - - MAX( DISTINCT - 90 ) + - - 42 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4428
SELECT - - MAX ( DISTINCT - 90 ) + - - 42 AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4429
SELECT ALL - 65 DIV + 99 col2, 6 * - + 74 * - + COUNT( - 95 ) AS col2
----
0
444

skipif mysql # not compatible
query II rowsort label-4429
SELECT ALL - 65 / + 99 col2, 6 * - + 74 * - + COUNT ( - 95 ) AS col2
----
0
444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT - CAST( 39 AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4430
SELECT - CAST ( 39 AS INTEGER ) AS col1
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4431
SELECT - - 27 + + + 59 * + - COUNT( * ) DIV - + 71 + 38 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4431
SELECT - - 27 + + + 59 * + - COUNT ( * ) / - + 71 + 38 AS col1
----
65

query I rowsort
SELECT ALL - 16 * - 60
----
960

query I rowsort
SELECT - + 52 + - 3 * 7
----
-73

query II rowsort
SELECT - 26 * 34 AS col2, + 64 * + 33 - 82 + - ( + 30 ) * 92 * - 61 AS col0
----
-884
170390

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4435
SELECT ALL 65 * - CAST( + 43 AS SIGNED ), 13 AS col2
----
-2795
13

skipif mysql # not compatible
query II rowsort label-4435
SELECT ALL 65 * - CAST ( + 43 AS INTEGER ), 13 AS col2
----
-2795
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT - + MIN( - + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-4436
SELECT - + MIN ( - + 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT + COUNT( * ) + - 54 + + CASE - AVG ( ALL - 70 ) WHEN - + ( + - 13 ) * + + 57 * 72 THEN NULL ELSE 26 * - 14 * 19 + 6 * - - 73 END
----
-6531

skipif mysql # not compatible
query I rowsort label-4437
SELECT + COUNT ( * ) + - 54 + + CASE - AVG ( ALL - 70 ) WHEN - + ( + - 13 ) * + + 57 * 72 THEN NULL ELSE 26 * - 14 * 19 + 6 * - - 73 END
----
-6531

query I rowsort
SELECT ALL + 86 * - 36
----
-3096

query I rowsort
SELECT + 40 * - 27 AS col0
----
-1080

query I rowsort
SELECT + 99 + ( - 24 ) + 95 AS col0
----
170

query I rowsort
SELECT - 4 + - + 69 AS col1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4442
SELECT ALL 51 DIV 67 * COUNT( * ), 80 AS col1
----
0
80

skipif mysql # not compatible
query II rowsort label-4442
SELECT ALL 51 / 67 * COUNT ( * ), 80 AS col1
----
0
80

query II rowsort
SELECT + COALESCE ( + - 40, + 14 ) AS col2, NULLIF ( - 76, + 3 / 79 )
----
-40
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT ALL 32 / + - 76 * + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL 32 / + - 76 * + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( + ( 19 ) )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT ALL 15 DIV 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL 15 / 75 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4447
SELECT DISTINCT COALESCE ( COUNT( * ), - + COALESCE ( - AVG ( ALL + 36 ), + - 26 + + ( - 5 ) ) ) DIV + - NULLIF ( 92, 88 * - COUNT( * ) + + AVG ( DISTINCT - 93 ) ) + ( 47 ) + + 96 AS col2
----
143

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT COALESCE ( COUNT ( * ), - + COALESCE ( - AVG ( ALL + 36 ), + - 26 + + ( - 5 ) ) ) / + - NULLIF ( 92, 88 * - COUNT ( * ) + + AVG ( DISTINCT - 93 ) ) + ( 47 ) + + 96 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ( - + MAX( ALL - - 40 ) ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-4448
SELECT ( - + MAX ( ALL - - 40 ) ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + 87 * + COUNT( * ) * + - 48 + + + 43 AS col0
----
-4133

skipif mysql # not compatible
query I rowsort label-4449
SELECT + 87 * + COUNT ( * ) * + - 48 + + + 43 AS col0
----
-4133

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4450
SELECT ALL - CAST( NULL AS DECIMAL ) * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - CAST ( NULL AS REAL ) * + 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT + CAST( + 73 AS SIGNED ) + + + 99 AS col1
----
172

skipif mysql # not compatible
query I rowsort label-4451
SELECT + CAST ( + 73 AS INTEGER ) + + + 99 AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT + COUNT( DISTINCT - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + COUNT ( DISTINCT - 89 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT - CAST( - 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-4453
SELECT - CAST ( - 74 AS INTEGER )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4454
SELECT ALL - 36 * - SUM( - 77 ) - - + 93 + - + COUNT( * ) - - 45 + - 61 * + ( + - 18 ) AS col0, 29
----
-1537
29

skipif mysql # not compatible
query II rowsort label-4454
SELECT ALL - 36 * - SUM ( - 77 ) - - + 93 + - + COUNT ( * ) - - 45 + - 61 * + ( + - 18 ) AS col0, 29
----
-1537
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - COALESCE ( + 71, + COUNT( * ) + 76 )
----
-71

skipif mysql # not compatible
query I rowsort label-4455
SELECT - COALESCE ( + 71, + COUNT ( * ) + 76 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL 96 * + 79 + - COUNT( * ) - + 39 - 22
----
7522

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL 96 * + 79 + - COUNT ( * ) - + 39 - 22
----
7522

query I rowsort
SELECT - + ( + 30 ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4458
SELECT - + 35 AS col1, - CASE 91 WHEN - - 94 * CAST( NULL AS SIGNED ) THEN + 1 + - 26 + CASE - + 7 WHEN + - 80 THEN NULL WHEN + 69 / 51 + 54 * 53 + - 40 THEN 23 ELSE + 16 END ELSE NULL END
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-4458
SELECT - + 35 AS col1, - CASE 91 WHEN - - 94 * CAST ( NULL AS INTEGER ) THEN + 1 + - 26 + CASE - + 7 WHEN + - 80 THEN NULL WHEN + 69 / 51 + 54 * 53 + - 40 THEN 23 ELSE + 16 END ELSE NULL END
----
-35
NULL

query II rowsort
SELECT DISTINCT 15 AS col2, 91
----
15
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT ALL SUM( + 9 ) * + - 40, 45 AS col1
----
-360
45

skipif mysql # not compatible
query II rowsort label-4460
SELECT ALL SUM ( + 9 ) * + - 40, 45 AS col1
----
-360
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4461
SELECT - COALESCE ( 15, + 3 * + - 23 + - ( 96 ) * 4 ) DIV + 59 - - + 87 col0
----
87

skipif mysql # not compatible
query I rowsort label-4461
SELECT - COALESCE ( 15, + 3 * + - 23 + - ( 96 ) * 4 ) / + 59 - - + 87 col0
----
87

query I rowsort
SELECT DISTINCT - CASE 98 WHEN + - 48 THEN + 51 WHEN 7 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 30 + - 63 + 41 AS col0
----
8

query I rowsort
SELECT CASE - 76 WHEN - 31 * - 72 THEN + 25 WHEN + - 66 THEN - ( + 1 ) END / + - 41 col1
----
NULL

query I rowsort
SELECT + 46 * - NULLIF ( + - ( + 96 ), 69 ) AS col0
----
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT CASE 77 WHEN 21 THEN - 28 * - 42 * COUNT( * ) * - 82 - 67 WHEN + - 86 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT CASE 77 WHEN 21 THEN - 28 * - 42 * COUNT ( * ) * - 82 - 67 WHEN + - 86 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT ALL + CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL + CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT 28 - - 50 DIV + + NULLIF ( 72, + 18 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4468
SELECT 28 - - 50 / + + NULLIF ( 72, + 18 ) AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4469
SELECT 34 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-4469
SELECT 34 / 32
----
1

query I rowsort
SELECT 37 + - - 80
----
117

query I rowsort
SELECT 44 * - - 51
----
2244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4472
SELECT ALL - ( - + 38 ) + + - CAST( + COUNT( DISTINCT + 75 ) AS SIGNED ) * + 81 * + 51 AS col1
----
-4093

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL - ( - + 38 ) + + - CAST ( + COUNT ( DISTINCT + 75 ) AS INTEGER ) * + 81 * + 51 AS col1
----
-4093

onlyif mysql # aggregate syntax: 
query II rowsort label-4473
SELECT ALL + COUNT( * ) + - 34 + + ( - 15 ) col2, + COUNT( * )
----
-48
1

skipif mysql # not compatible
query II rowsort label-4473
SELECT ALL + COUNT ( * ) + - 34 + + ( - 15 ) col2, + COUNT ( * )
----
-48
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4474
SELECT DISTINCT - 37 * - CASE + + 59 WHEN - 2 - + COUNT( CAST( NULL AS SIGNED ) ) THEN NULL WHEN 16 THEN NULL WHEN + + 42 * - CASE + 97 WHEN + 19 THEN 41 WHEN - + 63 THEN + - CAST( NULL AS SIGNED ) END * + 17 THEN + + 42 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT - 37 * - CASE + + 59 WHEN - 2 - + COUNT ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 16 THEN NULL WHEN + + 42 * - CASE + 97 WHEN + 19 THEN 41 WHEN - + 63 THEN + - CAST ( NULL AS INTEGER ) END * + 17 THEN + + 42 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 68 + + 22 * 85 AS col0
----
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT 27 + COUNT( 35 ) + - + 94
----
-66

skipif mysql # not compatible
query I rowsort label-4476
SELECT 27 + COUNT ( 35 ) + - + 94
----
-66

query I rowsort
SELECT 63 - - 73 AS col1
----
136

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4478
SELECT + 46 DIV 58 - - + CAST( + + 53 AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4478
SELECT + 46 / 58 - - + CAST ( + + 53 AS INTEGER ) AS col0
----
53

query I rowsort
SELECT DISTINCT - 38 * - 83 AS col2
----
3154

query I rowsort
SELECT 59 * 10 AS col2
----
590

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL - ( - - MIN( ALL - 18 ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL - ( - - MIN ( ALL - 18 ) ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4482
SELECT DISTINCT - 38 * + - 97 col2, - ( + COUNT( * ) )
----
3686
-1

skipif mysql # not compatible
query II rowsort label-4482
SELECT DISTINCT - 38 * + - 97 col2, - ( + COUNT ( * ) )
----
3686
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL COUNT( * ) + + 84 + + 86
----
171

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL COUNT ( * ) + + 84 + + 86
----
171

query I rowsort
SELECT DISTINCT + 66 - - + 6
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-4485
SELECT DISTINCT + 59 DIV 66 AS col1, - 7 + + + 56
----
0
49

skipif mysql # not compatible
query II rowsort label-4485
SELECT DISTINCT + 59 / 66 AS col1, - 7 + + + 56
----
0
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT ALL - 90 - 28 + + ( 2 ) * + - COALESCE ( 48, - CAST( NULL AS SIGNED ) ) * 92
----
-8950

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL - 90 - 28 + + ( 2 ) * + - COALESCE ( 48, - CAST ( NULL AS INTEGER ) ) * 92
----
-8950

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4487
SELECT 35 * + 37, + COALESCE ( + 72, 46, + CAST( NULL AS SIGNED ) ) AS col2
----
1295
72

skipif mysql # not compatible
query II rowsort label-4487
SELECT 35 * + 37, + COALESCE ( + 72, 46, + CAST ( NULL AS INTEGER ) ) AS col2
----
1295
72

query I rowsort
SELECT DISTINCT 70 * - + 59 - + + 12
----
-4142

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT COUNT( * ) * + 51 * 32 + + 58 * - 25
----
182

skipif mysql # not compatible
query I rowsort label-4489
SELECT COUNT ( * ) * + 51 * 32 + + 58 * - 25
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4490
SELECT MIN( DISTINCT + + 56 ) * - 93 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT MIN ( DISTINCT + + 56 ) * - 93 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT 27 + MIN( DISTINCT 53 ) + 54 + - 40 * + 7
----
-146

skipif mysql # not compatible
query I rowsort label-4491
SELECT 27 + MIN ( DISTINCT 53 ) + 54 + - 40 * + 7
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL COUNT( * ) - 78 * - ( 36 ) + - 83 AS col0
----
2726

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL COUNT ( * ) - 78 * - ( 36 ) + - 83 AS col0
----
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT COUNT( * ) * + COUNT( + 49 ) * - 99 * 11 AS col1
----
-1089

skipif mysql # not compatible
query I rowsort label-4493
SELECT COUNT ( * ) * + COUNT ( + 49 ) * - 99 * 11 AS col1
----
-1089

onlyif mysql # aggregate syntax: 
query III rowsort label-4494
SELECT - 90 * - + 71 + - ( 9 ) * - COUNT( * ) * - - 88 + - + 41 AS col1, - 99 + + - 55 + - + 45 AS col2, - 86
----
7141
-199
-86

skipif mysql # not compatible
query III rowsort label-4494
SELECT - 90 * - + 71 + - ( 9 ) * - COUNT ( * ) * - - 88 + - + 41 AS col1, - 99 + + - 55 + - + 45 AS col2, - 86
----
7141
-199
-86

query I rowsort
SELECT 65 * - ( - 31 ) AS col2
----
2015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT + 38 + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT + 38 + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + 77 * + 83 * 59 - ( + 98 ) + COUNT( * ) col1
----
376972

skipif mysql # not compatible
query I rowsort label-4497
SELECT + 77 * + 83 * 59 - ( + 98 ) + COUNT ( * ) col1
----
376972

query I rowsort
SELECT + 21 + + 70 * - - 98
----
6881

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4499
SELECT CAST( NULL AS DECIMAL ) + 38 - + 37 + ( + 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT CAST ( NULL AS REAL ) + 38 - + 37 + ( + 95 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT DISTINCT + 14 + + + 58 + - COALESCE ( + NULLIF ( + MAX( + 22 ), 68 ), + 49, - 48, - 53 * - - 67 ) * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT + 14 + + + 58 + - COALESCE ( + NULLIF ( + MAX ( + 22 ), 68 ), + 49, - 48, - 53 * - - 67 ) * COUNT ( * )
----
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4501
SELECT 63 + - ( - 35 ) + - 92 DIV COALESCE ( 76, 22, - CAST( NULL AS SIGNED ) ) - - 37 + - ( + 82 )
----
52

skipif mysql # not compatible
query I rowsort label-4501
SELECT 63 + - ( - 35 ) + - 92 / COALESCE ( 76, 22, - CAST ( NULL AS INTEGER ) ) - - 37 + - ( + 82 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT ALL ( CAST( - - COUNT( * ) AS SIGNED ) ) * - 70 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL ( CAST ( - - COUNT ( * ) AS INTEGER ) ) * - 70 AS col2
----
-70

query II rowsort
SELECT DISTINCT 15, + 41 AS col2
----
15
41

query I rowsort
SELECT 72 + + 49
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT 78 * - CAST( COUNT( * ) AS SIGNED ) * 85
----
-6630

skipif mysql # not compatible
query I rowsort label-4505
SELECT 78 * - CAST ( COUNT ( * ) AS INTEGER ) * 85
----
-6630

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL + SUM( DISTINCT 96 ) * + 89 col0
----
8544

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL + SUM ( DISTINCT 96 ) * + 89 col0
----
8544

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT DISTINCT - COALESCE ( + MIN( ALL - 30 ), + + 56 )
----
30

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - COALESCE ( + MIN ( ALL - 30 ), + + 56 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4508
SELECT + 95 AS col2, + ( + 77 ) DIV + COUNT( * ) + - - COUNT( * ) + + + 69
----
95
147

skipif mysql # not compatible
query II rowsort label-4508
SELECT + 95 AS col2, + ( + 77 ) / + COUNT ( * ) + - - COUNT ( * ) + + + 69
----
95
147

query I rowsort
SELECT ALL - ( + 32 ) AS col2
----
-32

query I rowsort
SELECT DISTINCT - 2 * - 12
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT 62 + - 72 DIV + 91
----
62

skipif mysql # not compatible
query I rowsort label-4511
SELECT 62 + - 72 / + 91
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL + - COUNT( * ) * - - 28 * + MAX( ALL 62 )
----
-1736

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL + - COUNT ( * ) * - - 28 * + MAX ( ALL 62 )
----
-1736

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT DISTINCT + - SUM( 50 ) * - - 81 - COUNT( * )
----
-4051

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT + - SUM ( 50 ) * - - 81 - COUNT ( * )
----
-4051

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT NULLIF ( - - 7, + ( - COUNT( * ) ) ) col0
----
7

skipif mysql # not compatible
query I rowsort label-4514
SELECT NULLIF ( - - 7, + ( - COUNT ( * ) ) ) col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT - COUNT( ALL 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT - COUNT ( ALL 84 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT ALL + + 29 * - COUNT( * ) * 2
----
-58

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL + + 29 * - COUNT ( * ) * 2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT MAX( DISTINCT + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4517
SELECT MAX ( DISTINCT + 11 ) AS col1
----
11

query I rowsort
SELECT - + 23 + 10 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT - + SUM( + - COALESCE ( + + 83, - - 45 ) ) * 13
----
1079

skipif mysql # not compatible
query I rowsort label-4519
SELECT - + SUM ( + - COALESCE ( + + 83, - - 45 ) ) * 13
----
1079

query I rowsort
SELECT - - 53 * 7 * 89 AS col1
----
33019

query II rowsort
SELECT + - ( + + 66 ) + - - 77 AS col1, 46
----
11
46

query I rowsort
SELECT DISTINCT + - 4 + 10
----
6

query I rowsort
SELECT - - 4 / + CASE + 19 WHEN + 5 THEN 72 * 63 + 92 + + 28 + 56 * 95 + 28 END AS col2
----
NULL

query I rowsort
SELECT ALL - - 75 + - - 41
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT - - SUM( 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4525
SELECT - - SUM ( 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT - MAX( ALL - NULLIF ( + - 88, - 3 ) ) + 72 * - - 43 * 69 col1
----
213536

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT - MAX ( ALL - NULLIF ( + - 88, - 3 ) ) + 72 * - - 43 * 69 col1
----
213536

query I rowsort
SELECT ALL 51 + + 39
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT - 28 + + 24 + - + 42 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT - 28 + + 24 + - + 42 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 51 + 44 AS col2
----
95

query I rowsort
SELECT DISTINCT 57 + + 46 * + 50 AS col2
----
2357

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT - CASE + MAX( DISTINCT 10 ) WHEN - 29 THEN - + 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT - CASE + MAX ( DISTINCT 10 ) WHEN - 29 THEN - + 58 END AS col2
----
NULL

query I rowsort
SELECT ALL 85 * + + 30 AS col1
----
2550

onlyif mysql # aggregate syntax: 
query II rowsort label-4533
SELECT - CASE WHEN 54 IS NULL THEN - 34 + - 75 / + COUNT( * ) END AS col1, 66 AS col0
----
NULL
66

skipif mysql # not compatible
query II rowsort label-4533
SELECT - CASE WHEN 54 IS NULL THEN - 34 + - 75 / + COUNT ( * ) END AS col1, 66 AS col0
----
NULL
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + 50 + - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4534
SELECT + 50 + - COUNT ( * )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4535
SELECT - COALESCE ( - 10, - 6, - 31 + + - 60 - COUNT( * ) - - CAST( - - COUNT( * ) AS SIGNED ) * 50 * 14 )
----
10

skipif mysql # not compatible
query I rowsort label-4535
SELECT - COALESCE ( - 10, - 6, - 31 + + - 60 - COUNT ( * ) - - CAST ( - - COUNT ( * ) AS INTEGER ) * 50 * 14 )
----
10

query I rowsort
SELECT ALL + 66 - + - 71 * + + 24 AS col2
----
1770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT + CAST( NULL AS SIGNED ) * - AVG ( 71 ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT + CAST ( NULL AS INTEGER ) * - AVG ( 71 ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT + 14 + 86
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - COUNT( * ) - + 30 * COALESCE ( + ( 97 ), 44 * + 53 )
----
-2911

skipif mysql # not compatible
query I rowsort label-4539
SELECT - COUNT ( * ) - + 30 * COALESCE ( + ( 97 ), 44 * + 53 )
----
-2911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4540
SELECT + CAST( NULL AS SIGNED ) * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4540
SELECT + CAST ( NULL AS INTEGER ) * + 64
----
NULL

query I rowsort
SELECT - 14 * - + ( - 84 ) AS col0
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT + COALESCE ( - 40, 21 * - + COUNT( * ), - 79 - + 40 + 93 )
----
-40

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT + COALESCE ( - 40, 21 * - + COUNT ( * ), - 79 - + 40 + 93 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT DISTINCT CAST( + - 39 AS SIGNED ) * - 89 AS col1
----
3471

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT CAST ( + - 39 AS INTEGER ) * - 89 AS col1
----
3471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT ALL - NULLIF ( - CAST( NULL AS SIGNED ), + 0 ) / - 82 * 30 + + 63 + + 41 + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - NULLIF ( - CAST ( NULL AS INTEGER ), + 0 ) / - 82 * 30 + + 63 + + 41 + 53 AS col0
----
NULL

query I rowsort
SELECT - - 43 * + - 7
----
-301

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT DISTINCT - ( + + 2 ) * + - 44 + - + 79 * 34 * - + 89 + + - COUNT( * ) + COUNT( * ) AS col0
----
239142

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT - ( + + 2 ) * + - 44 + - + 79 * 34 * - + 89 + + - COUNT ( * ) + COUNT ( * ) AS col0
----
239142

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT - - 94 DIV - 29 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4547
SELECT - - 94 / - 29 AS col0
----
-3

query I rowsort
SELECT ALL + NULLIF ( + 3, - NULLIF ( + - 70, + 22 ) * + ( + - 7 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT - 90 * - ( - CASE - CASE + + 82 WHEN 42 * + ( + 16 ) * 77 * + SUM( DISTINCT - 80 ) + - - 87 - 0 THEN - - COUNT( * ) END WHEN + 14 + + 80 * - 42 THEN COALESCE ( - + 5, - ( + 3 ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT - 90 * - ( - CASE - CASE + + 82 WHEN 42 * + ( + 16 ) * 77 * + SUM ( DISTINCT - 80 ) + - - 87 - 0 THEN - - COUNT ( * ) END WHEN + 14 + + 80 * - 42 THEN COALESCE ( - + 5, - ( + 3 ) ) END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT ALL - + 14 * - CAST( NULL AS SIGNED ) + - 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL - + 14 * - CAST ( NULL AS INTEGER ) + - 28 col1
----
NULL

query I rowsort
SELECT - 6 * + 63 + + - 84 + - + 99 AS col0
----
-561

query II rowsort
SELECT + 6 AS col2, - 90
----
6
-90

query I rowsort
SELECT ALL + 77 * + 13 + 87 + - 1 * + - 9
----
1097

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT + COUNT( * ) * - - 41
----
41

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT + COUNT ( * ) * - - 41
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT - + COUNT( * ) * - CASE + + 32 WHEN 26 THEN + - 42 WHEN + 87 / 20 + + ( 37 ) + - CAST( 49 AS SIGNED ) THEN NULL END + + 80 + + 10 * + - 3 + + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT - + COUNT ( * ) * - CASE + + 32 WHEN 26 THEN + - 42 WHEN + 87 / 20 + + ( 37 ) + - CAST ( 49 AS INTEGER ) THEN NULL END + + 80 + + 10 * + - 3 + + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL 26 * 34 + - COUNT( DISTINCT + - 2 ) * - - COUNT( - - 42 )
----
883

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL 26 * 34 + - COUNT ( DISTINCT + - 2 ) * - - COUNT ( - - 42 )
----
883

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL ( - + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL ( - + COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT - 28 + 14 col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT SUM( + + 96 ) * + COUNT( * ) * + NULLIF ( - - COUNT( * ), 9 ) * + + 53 + 59 AS col2
----
5147

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT SUM ( + + 96 ) * + COUNT ( * ) * + NULLIF ( - - COUNT ( * ), 9 ) * + + 53 + 59 AS col2
----
5147

query II rowsort
SELECT - 22 * + 33 AS col0, + 34
----
-726
34

query I rowsort
SELECT + CASE - 14 WHEN + 43 THEN 90 + + 12 * - 40 * + ( 34 ) - 9 WHEN - 83 THEN NULL ELSE NULL END + - + ( - + 10 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4563
SELECT DISTINCT - ( + + CAST( + COUNT( * ) AS SIGNED ) ) DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT - ( + + CAST ( + COUNT ( * ) AS INTEGER ) ) / + 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4564
SELECT - 74 + MAX( - 55 ) + - - 16 * - 50 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT - 74 + MAX ( - 55 ) + - - 16 * - 50 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4565
SELECT - 92 * 50 DIV + 86, 3 + - ( + COALESCE ( - 99, + ( + + 54 ) ) ) * - 67 AS col1
----
-53
-6630

skipif mysql # not compatible
query II rowsort label-4565
SELECT - 92 * 50 / + 86, 3 + - ( + COALESCE ( - 99, + ( + + 54 ) ) ) * - 67 AS col1
----
-53
-6630

query I rowsort
SELECT ALL + 34 - + 30 * - + 37
----
1144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT ALL 38 - - CAST( ( - - 50 ) AS SIGNED ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL 38 - - CAST ( ( - - 50 ) AS INTEGER ) AS col0
----
88

query I rowsort
SELECT - ( - - 69 ) * 80 * - + 92
----
507840

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT + - 47 + + + MIN( - - 85 )
----
38

skipif mysql # not compatible
query I rowsort label-4569
SELECT + - 47 + + + MIN ( - - 85 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4570
SELECT + CAST( NULL AS SIGNED ) + + MAX( ALL - - 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT + CAST ( NULL AS INTEGER ) + + MAX ( ALL - - 47 ) AS col2
----
NULL

query I rowsort
SELECT - 38 * + 53
----
-2014

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT DISTINCT - 59 + COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT - 59 + COUNT ( * ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT COUNT( * ) / 55 * + + CASE + 95 WHEN + COUNT( * ) + - + 29 THEN NULL WHEN - + 59 * - - 83 THEN NULL WHEN CASE - 70 WHEN - COALESCE ( + + 37, 44, + + 23 ) * + 15 - - + 66 THEN NULL ELSE - 89 END THEN - 2 * - - MIN( + - 77 ) - - + 22 END / - 10 + - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT COUNT ( * ) / 55 * + + CASE + 95 WHEN + COUNT ( * ) + - + 29 THEN NULL WHEN - + 59 * - - 83 THEN NULL WHEN CASE - 70 WHEN - COALESCE ( + + 37, 44, + + 23 ) * + 15 - - + 66 THEN NULL ELSE - 89 END THEN - 2 * - - MIN ( + - 77 ) - - + 22 END / - 10 + - 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4574
SELECT - 70 DIV MIN( ALL + - 23 ) + 3 DIV + 77 * COUNT( * ) + SUM( DISTINCT 8 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4574
SELECT - 70 / MIN ( ALL + - 23 ) + 3 / + 77 * COUNT ( * ) + SUM ( DISTINCT 8 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL + COUNT( * ) + - + 78 + + 22 * ( - 10 ) * + 40
----
-8877

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL + COUNT ( * ) + - + 78 + + 22 * ( - 10 ) * + 40
----
-8877

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT 94 + COUNT( * ) * - + COUNT( * ) * + - 60
----
154

skipif mysql # not compatible
query I rowsort label-4576
SELECT 94 + COUNT ( * ) * - + COUNT ( * ) * + - 60
----
154

query I rowsort
SELECT - 97 + + 83
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT ALL - + CASE + 79 WHEN - 38 / COALESCE ( - - MAX( - 97 ), + COALESCE ( 37, - 92 ) ) - + 96 THEN NULL WHEN + 3 * - 65 THEN + 23 ELSE - + ( ( + - ( - ( - + 75 ) ) ) ) END + + - 20 * - 40 + + 77 AS col0
----
802

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL - + CASE + 79 WHEN - 38 / COALESCE ( - - MAX ( - 97 ), + COALESCE ( 37, - 92 ) ) - + 96 THEN NULL WHEN + 3 * - 65 THEN + 23 ELSE - + ( ( + - ( - ( - + 75 ) ) ) ) END + + - 20 * - 40 + + 77 AS col0
----
802

onlyif mysql # DIV for integer division: 
query I rowsort label-4579
SELECT + 40 DIV + 81 * - 87 col2
----
0

skipif mysql # not compatible
query I rowsort label-4579
SELECT + 40 / + 81 * - 87 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT ALL 10 + - 48 * - - CAST( NULL AS SIGNED ) - + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL 10 + - 48 * - - CAST ( NULL AS INTEGER ) - + 74 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + COALESCE ( - 39, + + 8 ) col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT DISTINCT + 83 + - ( COUNT( * ) ) + - - COUNT( * ) * ( - CASE + 21 WHEN + 94 THEN 18 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT + 83 + - ( COUNT ( * ) ) + - - COUNT ( * ) * ( - CASE + 21 WHEN + 94 THEN 18 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL - 65 - + - COUNT( * ) + 3
----
-61

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL - 65 - + - COUNT ( * ) + 3
----
-61

query II rowsort
SELECT 94 AS col0, - ( 43 ) + 84 * + 23 AS col1
----
94
1889

query II rowsort
SELECT + 51 AS col2, + 21 * - + 97 AS col0
----
51
-2037

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT 53 * + + 4 * - ( COUNT( * ) ) AS col0
----
-212

skipif mysql # not compatible
query I rowsort label-4586
SELECT 53 * + + 4 * - ( COUNT ( * ) ) AS col0
----
-212

query I rowsort
SELECT DISTINCT 21 * 36 AS col0
----
756

onlyif mysql # aggregate syntax: 
query II rowsort label-4588
SELECT - 62 col0, 22 - - 81 * - 72 * MAX( DISTINCT - 35 )
----
-62
204142

skipif mysql # not compatible
query II rowsort label-4588
SELECT - 62 col0, 22 - - 81 * - 72 * MAX ( DISTINCT - 35 )
----
-62
204142

query I rowsort
SELECT ALL - 66 - - + 1 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT 31 AS col1, + ( + 6 ) * + - 26 * - - 7 * MIN( ALL ( + 24 ) ) AS col0
----
31
-26208

skipif mysql # not compatible
query II rowsort label-4590
SELECT 31 AS col1, + ( + 6 ) * + - 26 * - - 7 * MIN ( ALL ( + 24 ) ) AS col0
----
31
-26208

query I rowsort
SELECT 62 + 65 AS col0
----
127

query I rowsort
SELECT 68 * 68 * - - 66
----
305184

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT 4 + COUNT( * ) * - ( + 11 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4593
SELECT 4 + COUNT ( * ) * - ( + 11 ) AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4594
SELECT DISTINCT - 48 DIV + 7
----
-6

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT - 48 / + 7
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT 87 - + - 14 + - COUNT( * ) + + 56 * 93
----
5308

skipif mysql # not compatible
query I rowsort label-4595
SELECT 87 - + - 14 + - COUNT ( * ) + + 56 * 93
----
5308

onlyif mysql # DIV for integer division: 
query I rowsort label-4596
SELECT DISTINCT - 58 DIV - 78 * 32 * + 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT - 58 / - 78 * 32 * + 96 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL - COUNT( * ) + + 65 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL - COUNT ( * ) + + 65 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT - COALESCE ( + MAX( DISTINCT 78 ), + 23, + COUNT( * ) + + 86 * + 44 )
----
-78

skipif mysql # not compatible
query I rowsort label-4598
SELECT - COALESCE ( + MAX ( DISTINCT 78 ), + 23, + COUNT ( * ) + + 86 * + 44 )
----
-78

query I rowsort
SELECT ALL + 97 + + + 11 * + 67 + + 25 + - 66 col2
----
793

query I rowsort
SELECT - 11 * - + 17
----
187

query I rowsort
SELECT ALL - 14 + - 39 col1
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-4602
SELECT ALL - 45 AS col2, 81 DIV - 68 + 47 AS col1
----
-45
46

skipif mysql # not compatible
query II rowsort label-4602
SELECT ALL - 45 AS col2, 81 / - 68 + 47 AS col1
----
-45
46

onlyif mysql # DIV for integer division: 
query II rowsort label-4603
SELECT ALL - - 21, 36 DIV + 19 + - 62 + + - 95 AS col2
----
21
-156

skipif mysql # not compatible
query II rowsort label-4603
SELECT ALL - - 21, 36 / + 19 + - 62 + + - 95 AS col2
----
21
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4604
SELECT ALL + 53 - - MAX( DISTINCT + + 59 ) * ( + + COALESCE ( - 88, 95 DIV - + 21, - 66 * + SUM( ALL 2 ) ) ) * 44 * - - 60 + + + 80 AS col2, CAST( NULL AS SIGNED ) * - 82
----
-13706747
NULL

skipif mysql # not compatible
query II rowsort label-4604
SELECT ALL + 53 - - MAX ( DISTINCT + + 59 ) * ( + + COALESCE ( - 88, 95 / - + 21, - 66 * + SUM ( ALL 2 ) ) ) * 44 * - - 60 + + + 80 AS col2, CAST ( NULL AS INTEGER ) * - 82
----
-13706747
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT - COUNT( * ) * - ( + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-4605
SELECT - COUNT ( * ) * - ( + 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - - COUNT( * ) * + 48 + 80 + 64
----
192

skipif mysql # not compatible
query I rowsort label-4606
SELECT - - COUNT ( * ) * + 48 + 80 + 64
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT COUNT( * ) * - ( 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4607
SELECT COUNT ( * ) * - ( 47 ) AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT NULLIF ( 46, + 60 ) * + 22 * + + 36 + - - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT NULLIF ( 46, + 60 ) * + 22 * + + 36 + - - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4609
SELECT ALL COALESCE ( + 75, + MIN( ALL - NULLIF ( - 80, - ( - + 39 ) ) ) DIV - + 9 + - 21 - - 68, - + 37 + - COUNT( * ) ) * 18 AS col2
----
1350

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL COALESCE ( + 75, + MIN ( ALL - NULLIF ( - 80, - ( - + 39 ) ) ) / - + 9 + - 21 - - 68, - + 37 + - COUNT ( * ) ) * 18 AS col2
----
1350

query I rowsort
SELECT 62 + + - 50 * - ( + 43 ) AS col0
----
2212

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL 80 - ( - - COUNT( * ) ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL 80 - ( - - COUNT ( * ) ) AS col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4612
SELECT ALL + 34 DIV + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL + 34 / + + COUNT ( * )
----
34

query I rowsort
SELECT 43 * 65 * + 25 + + 8 * ( + COALESCE ( + 19, 67, 1, - 89 * - 44 ) )
----
70027

query I rowsort
SELECT 97 + + 87
----
184

query I rowsort
SELECT 7 + - 72 AS col2
----
-65

query I rowsort
SELECT 13 * ( - 77 ) AS col2
----
-1001

query I rowsort
SELECT 97 + + 72 + + - 15 + + 60
----
214

query II rowsort
SELECT ALL 67 * - - 33 AS col2, 4 AS col0
----
2211
4

query I rowsort
SELECT 3 * + 23 col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL SUM( - 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL SUM ( - 97 ) AS col2
----
-97

query I rowsort
SELECT DISTINCT COALESCE ( - NULLIF ( 48, - + 97 + - 42 ), + 59 - + 28 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4622
SELECT ALL - - CAST( NULL AS SIGNED ) + + AVG ( ALL + + 63 ) + MIN( ALL CAST( NULL AS SIGNED ) ) * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL - - CAST ( NULL AS INTEGER ) + + AVG ( ALL + + 63 ) + MIN ( ALL CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + - ( - 3 ) + - 7 AS col0
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4624
SELECT ALL + + 95 + + + 33 * - - 94 - ( CAST( NULL AS DECIMAL ) ) - - 98 / + 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL + + 95 + + + 33 * - - 94 - ( CAST ( NULL AS REAL ) ) - - 98 / + 50 col1
----
NULL

query I rowsort
SELECT - 95 + + + 46
----
-49

query I rowsort
SELECT DISTINCT + + ( - 60 ) + + - 71 - - 5 * - 3
----
-146

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4627
SELECT - 9 + + MIN( DISTINCT + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT - 9 + + MIN ( DISTINCT + + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT - 18 + 9 * - + 65 + 34
----
-569

query I rowsort
SELECT DISTINCT - 72 * + 58 - 58
----
-4234

query II rowsort
SELECT - + 5 * 99 + NULLIF ( + 22, + 99 ) * ( - + 86 ), - 97 - + 98 AS col2
----
-2387
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4631
SELECT + COALESCE ( - 1, SUM( ALL + - 0 ) * CASE + 68 WHEN - 66 + + MIN( + 29 ) * - CASE - COUNT( * ) WHEN 11 THEN 83 + 8 - + 8 WHEN + 31 THEN NULL END THEN - + 70 END * + + 98 + + - COALESCE ( + 84, - 26 DIV ( ( + ( 43 ) ) ), - 15 + + 97 ) + 44, CAST( NULL AS SIGNED ) + + 93 ) * 67 + COALESCE ( ( + 13 ), - 42 * - COUNT( * ) * 85 ) * - MAX( + 68 ) * - ( + ( + COUNT( * ) ) ) + + - 59
----
758

skipif mysql # not compatible
query I rowsort label-4631
SELECT + COALESCE ( - 1, SUM ( ALL + - 0 ) * CASE + 68 WHEN - 66 + + MIN ( + 29 ) * - CASE - COUNT ( * ) WHEN 11 THEN 83 + 8 - + 8 WHEN + 31 THEN NULL END THEN - + 70 END * + + 98 + + - COALESCE ( + 84, - 26 / ( ( + ( 43 ) ) ), - 15 + + 97 ) + 44, CAST ( NULL AS INTEGER ) + + 93 ) * 67 + COALESCE ( ( + 13 ), - 42 * - COUNT ( * ) * 85 ) * - MAX ( + 68 ) * - ( + ( + COUNT ( * ) ) ) + + - 59
----
758

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT ALL - 29 * 86 + - - 51 - - 50 DIV 51 - - 17 AS col0
----
-2426

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL - 29 * 86 + - - 51 - - 50 / 51 - - 17 AS col0
----
-2426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4633
SELECT ALL - COUNT( * ) * 48 * 71 DIV - 26 + - ( - 76 ) + + ( 48 )
----
255

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL - COUNT ( * ) * 48 * 71 / - 26 + - ( - 76 ) + + ( 48 )
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4634
SELECT ( - COUNT( * ) ) DIV - - COUNT( * ) + + 56 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4634
SELECT ( - COUNT ( * ) ) / - - COUNT ( * ) + + 56 AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4635
SELECT ALL - - 14 * - SUM( 25 ) * - 53 + + - 83 - + + 83 + - 20 * - 56 * ( - 18 ) * NULLIF ( + + 26, 83 ) + - 44 + + COUNT( + 24 ) - - - COUNT( * ) AS col1, 76 * 72 - + 72
----
-505820
5400

skipif mysql # not compatible
query II rowsort label-4635
SELECT ALL - - 14 * - SUM ( 25 ) * - 53 + + - 83 - + + 83 + - 20 * - 56 * ( - 18 ) * NULLIF ( + + 26, 83 ) + - 44 + + COUNT ( + 24 ) - - - COUNT ( * ) AS col1, 76 * 72 - + 72
----
-505820
5400

query I rowsort
SELECT DISTINCT + COALESCE ( + 96, + 44 - - + 5, - - 17 )
----
96

query I rowsort
SELECT DISTINCT 22 * ( 32 ) AS col2
----
704

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4638
SELECT DISTINCT 86 * - 73 * - COUNT( + + 82 ) * + 72 AS col2, 20 DIV MIN( + 81 )
----
452016
0

skipif mysql # not compatible
query II rowsort label-4638
SELECT DISTINCT 86 * - 73 * - COUNT ( + + 82 ) * + 72 AS col2, 20 / MIN ( + 81 )
----
452016
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT SUM( ALL ( + 11 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4639
SELECT SUM ( ALL ( + 11 ) ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT MAX( DISTINCT + 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4640
SELECT MAX ( DISTINCT + 26 ) AS col0
----
26

query I rowsort
SELECT DISTINCT 50 * + 1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL SUM( ALL + 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL SUM ( ALL + 4 ) AS col1
----
4

query I rowsort
SELECT ALL 43 + + + 60 + - 1 - + - 91 * - 66
----
-5904

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT + 85 DIV + ( + 90 )
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT + 85 / + ( + 90 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4645
SELECT + CAST( NULL AS DECIMAL ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4645
SELECT + CAST ( NULL AS REAL ) + - 58
----
NULL

query I rowsort
SELECT + 31 * 48
----
1488

query I rowsort
SELECT - CASE - + 52 WHEN 11 THEN NULL ELSE + 55 END
----
-55

query I rowsort
SELECT + 49 + - 89 AS col2
----
-40

query I rowsort
SELECT DISTINCT - 27 + + 38
----
11

query II rowsort
SELECT - - 79, + 69 + - 11 AS col2
----
79
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4651
SELECT ALL + COUNT( * ) col1, COUNT( * ) * SUM( + + 66 ) * - ( NULLIF ( + 62, + 91 + - SUM( ALL - + ( - CAST( NULL AS SIGNED ) ) ) ) ) + - 85 - NULLIF ( + 29, + + 69 ) DIV ( + + 2 ) col0
----
1
-4191

skipif mysql # not compatible
query II rowsort label-4651
SELECT ALL + COUNT ( * ) col1, COUNT ( * ) * SUM ( + + 66 ) * - ( NULLIF ( + 62, + 91 + - SUM ( ALL - + ( - CAST ( NULL AS INTEGER ) ) ) ) ) + - 85 - NULLIF ( + 29, + + 69 ) / ( + + 2 ) col0
----
1
-4191

query I rowsort
SELECT - + 9 * - 42 AS col1
----
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4653
SELECT - 29 * + - ( + 68 ) AS col1, 87 + + 46 * - - 13 - 95 * COUNT( * ) DIV - 4 AS col2
----
1972
708

skipif mysql # not compatible
query II rowsort label-4653
SELECT - 29 * + - ( + 68 ) AS col1, 87 + + 46 * - - 13 - 95 * COUNT ( * ) / - 4 AS col2
----
1972
708

query II rowsort
SELECT - 42 AS col2, - 80 AS col0
----
-42
-80

query I rowsort
SELECT - 47 + - 17
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4656
SELECT + 87 * COALESCE ( + 57, - 12 ) * + - COUNT( * ) * + 49 - - - 7 + - ( - + CAST( NULL AS SIGNED ) ) * - - 61 / - + 3 * COALESCE ( 67, - 60, + 67 * 70 ) * + 96 * + 35 + + 57 - - 14 * - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT + 87 * COALESCE ( + 57, - 12 ) * + - COUNT ( * ) * + 49 - - - 7 + - ( - + CAST ( NULL AS INTEGER ) ) * - - 61 / - + 3 * COALESCE ( 67, - 60, + 67 * 70 ) * + 96 * + 35 + + 57 - - 14 * - - 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4657
SELECT - AVG ( - - 60 ) / ( + 95 ) * + ( 59 ) / CAST( NULL AS SIGNED ) / - 23 + + + 15 + 13 + + 99 - + 87 * 90 / + AVG ( DISTINCT + - ( - 52 ) ) * COUNT( * ) - - + 6 + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT - AVG ( - - 60 ) / ( + 95 ) * + ( 59 ) / CAST ( NULL AS INTEGER ) / - 23 + + + 15 + 13 + + 99 - + 87 * 90 / + AVG ( DISTINCT + - ( - 52 ) ) * COUNT ( * ) - - + 6 + 47
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4658
SELECT ALL + COUNT( * ), + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-4658
SELECT ALL + COUNT ( * ), + COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT - + 57 - 24
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - - 82 * + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4660
SELECT - - 82 * + COUNT ( * )
----
82

query I rowsort
SELECT DISTINCT + 52 * - + 69 AS col0
----
-3588

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4662
SELECT - CAST( NULL AS DECIMAL ) / + ( - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT - CAST ( NULL AS REAL ) / + ( - 64 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4663
SELECT MAX( DISTINCT + - CAST( + - 46 AS SIGNED ) ) / NULLIF ( - + CAST( 12 AS DECIMAL ), - - 78 + - COUNT( * ) ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT MAX ( DISTINCT + - CAST ( + - 46 AS INTEGER ) ) / NULLIF ( - + CAST ( 12 AS REAL ), - - 78 + - COUNT ( * ) ) - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 34 * + 12 AS col2
----
-408

onlyif mysql # DIV for integer division: 
query I rowsort label-4665
SELECT + 18 * + 24 + - 36 DIV + 8
----
428

skipif mysql # not compatible
query I rowsort label-4665
SELECT + 18 * + 24 + - 36 / + 8
----
428

query II rowsort
SELECT ALL + 36 AS col1, 22 * - - 86 AS col2
----
36
1892

query I rowsort
SELECT ( - + 89 ) * 34 * + - 0 + + 47 + + + 79 + + + 66
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4668
SELECT + 98 * - MAX( ALL - - 96 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT + 98 * - MAX ( ALL - - 96 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 71 * + + 78 + + + 98
----
5636

query I rowsort
SELECT ( + ( + 93 ) )
----
93

query I rowsort
SELECT + 74 * - 76
----
-5624

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4672
SELECT ALL + 22 * COUNT( * ) + + ( + COUNT( * ) ) * + 97 + 28 * + + 90 / + 7 * - - 45 * + CAST( NULL AS DECIMAL ) * CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + 22 * COUNT ( * ) + + ( + COUNT ( * ) ) * + 97 + 28 * + + 90 / + 7 * - - 45 * + CAST ( NULL AS REAL ) * CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT - ( COUNT( * ) ) + 76 * - + COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4673
SELECT - ( COUNT ( * ) ) + 76 * - + COUNT ( * ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4674
SELECT DISTINCT 17 * + 85 * + MIN( + + 5 ) * + 19 + + + 40 AS col1, - COUNT( ALL 3 ) + - 75 + COUNT( * )
----
137315
-75

skipif mysql # not compatible
query II rowsort label-4674
SELECT DISTINCT 17 * + 85 * + MIN ( + + 5 ) * + 19 + + + 40 AS col1, - COUNT ( ALL 3 ) + - 75 + COUNT ( * )
----
137315
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT ( - COUNT( * ) ) + 4
----
3

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT ( - COUNT ( * ) ) + 4
----
3

query I rowsort
SELECT DISTINCT + COALESCE ( - + 39, 7 - - 73 ) + + 90
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL - MAX( ALL + 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - MAX ( ALL + 33 ) AS col1
----
-33

query I rowsort
SELECT ( - 6 ) + - 69
----
-75

query II rowsort
SELECT 42 AS col2, + 49 AS col1
----
42
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT DISTINCT ( - - COALESCE ( 24, - 70 ) ) * + CAST( - ( + 46 ) AS SIGNED ) * - 11 + 9 - + - 6 * - 85 - 23 col1
----
11620

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT ( - - COALESCE ( 24, - 70 ) ) * + CAST ( - ( + 46 ) AS INTEGER ) * - 11 + 9 - + - 6 * - 85 - 23 col1
----
11620

query II rowsort
SELECT - - 25 AS col1, - 81
----
25
-81

query I rowsort
SELECT ALL - 98 * + 7 + - 43 + - 33 AS col1
----
-762

query I rowsort
SELECT DISTINCT - 82 * - 1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT COALESCE ( COUNT( * ), + 40, + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4684
SELECT COALESCE ( COUNT ( * ), + 40, + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL - 49 - + 85 * + - ( COUNT( * ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - 49 - + 85 * + - ( COUNT ( * ) ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT DISTINCT - 22 col1, + ( + 51 ) * + COUNT( * ) AS col1
----
-22
51

skipif mysql # not compatible
query II rowsort label-4686
SELECT DISTINCT - 22 col1, + ( + 51 ) * + COUNT ( * ) AS col1
----
-22
51

query I rowsort
SELECT 81 + - 91 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + ( 52 ) - + + ( MIN( - 18 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + ( 52 ) - + + ( MIN ( - 18 ) ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT 71 + - 11 - + - 95 + COUNT( * ) * 1 AS col0
----
156

skipif mysql # not compatible
query I rowsort label-4689
SELECT 71 + - 11 - + - 95 + COUNT ( * ) * 1 AS col0
----
156

query I rowsort
SELECT 74 * + + 64 AS col0
----
4736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4691
SELECT + 41 * - + 18 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT + 41 * - + 18 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 66 * - 10 AS col1
----
-660

query I rowsort
SELECT ( - 67 ) * - - 92 AS col0
----
-6164

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT COUNT( ALL 20 ) + - 14 + + + COUNT( * ) * + 48 + COUNT( * ) * + + 5 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4694
SELECT COUNT ( ALL 20 ) + - 14 + + + COUNT ( * ) * + 48 + COUNT ( * ) * + + 5 AS col2
----
40

query I rowsort
SELECT DISTINCT CASE 54 WHEN + 65 THEN NULL WHEN + 9 THEN NULL ELSE 16 + - - 69 + - 97 * - - 47 + - 96 + - 59 + + 91 * 65 END
----
1286

query I rowsort
SELECT ALL + COALESCE ( + 39, + + 99 * - - 33, 28 * - - 41 ) * - 62
----
-2418

query I rowsort
SELECT 43 * 86 col0
----
3698

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL MAX( DISTINCT 6 ) * - - 45 AS col1
----
270

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL MAX ( DISTINCT 6 ) * - - 45 AS col1
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT - COALESCE ( 66, + MIN( DISTINCT - 11 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT - COALESCE ( 66, + MIN ( DISTINCT - 11 ) )
----
-66

query I rowsort
SELECT DISTINCT + 14 * 40 col0
----
560

query I rowsort
SELECT ALL - NULLIF ( + 50, 69 * + 76 ) AS col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4702
SELECT CAST( + 52 AS SIGNED ) * + COUNT( * ) * + 87 * - 58 + 19
----
-262373

skipif mysql # not compatible
query I rowsort label-4702
SELECT CAST ( + 52 AS INTEGER ) * + COUNT ( * ) * + 87 * - 58 + 19
----
-262373

query I rowsort
SELECT 75 * + 18 * + + 33 + + 82
----
44632

query I rowsort
SELECT DISTINCT - 30 + - 62 AS col2
----
-92

query I rowsort
SELECT ALL + 75 + - + NULLIF ( + 45, - - 56 + - + 51 + 80 ) + 90
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL 74 + - 96 * + 36 * COALESCE ( 3, COALESCE ( + 95, - COUNT( * ) ) ) * 18 AS col1
----
-186550

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL 74 + - 96 * + 36 * COALESCE ( 3, COALESCE ( + 95, - COUNT ( * ) ) ) * 18 AS col1
----
-186550

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL - ( + 25 ) * COUNT( * ) + + 21 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL - ( + 25 ) * COUNT ( * ) + + 21 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4708
SELECT DISTINCT 9 + + 36, + CASE - - 42 WHEN 78 THEN NULLIF ( + - 69, + - MIN( + + 2 ) - - + COUNT( * ) + COALESCE ( + AVG ( ALL - 52 ), 96 + ( - 85 ), + COUNT( - + 20 ) + + + 4 ) ) WHEN - 51 * + 11 - SUM( DISTINCT 84 ) THEN NULL END col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-4708
SELECT DISTINCT 9 + + 36, + CASE - - 42 WHEN 78 THEN NULLIF ( + - 69, + - MIN ( + + 2 ) - - + COUNT ( * ) + COALESCE ( + AVG ( ALL - 52 ), 96 + ( - 85 ), + COUNT ( - + 20 ) + + + 4 ) ) WHEN - 51 * + 11 - SUM ( DISTINCT 84 ) THEN NULL END col2
----
45
NULL

query I rowsort
SELECT ALL - 85 * + - 38 AS col2
----
3230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT DISTINCT + 58 + - + CAST( + ( 55 ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT + 58 + - + CAST ( + ( 55 ) AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL - COUNT( * ) * - + COALESCE ( + 98, COUNT( * ) ) col0
----
98

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL - COUNT ( * ) * - + COALESCE ( + 98, COUNT ( * ) ) col0
----
98

query I rowsort
SELECT ALL + 40 * + + NULLIF ( + 70, + 65 ) * + 30 AS col2
----
84000

query I rowsort
SELECT ALL - ( - 36 ) * + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT 32 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-4714
SELECT 32 / + 94
----
0

query I rowsort
SELECT 3 * ( - + 28 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT - MAX( ALL + - 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT - MAX ( ALL + - 86 ) AS col0
----
86

query I rowsort
SELECT DISTINCT + + 34 * + 14 AS col1
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL + 53 - - + COUNT( * ) col1
----
54

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + 53 - - + COUNT ( * ) col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4719
SELECT DISTINCT + 31 * + 2, MAX( + 87 ) AS col2
----
62
87

skipif mysql # not compatible
query II rowsort label-4719
SELECT DISTINCT + 31 * + 2, MAX ( + 87 ) AS col2
----
62
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT 9 - + 75 + + COUNT( * ) + 11 * + 56 AS col0
----
551

skipif mysql # not compatible
query I rowsort label-4720
SELECT 9 - + 75 + + COUNT ( * ) + 11 * + 56 AS col0
----
551

query I rowsort
SELECT NULLIF ( - - 68, 5 ) + + 71 AS col2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL - NULLIF ( - NULLIF ( + 60, 87 * - - 94 * 95 ), + CASE 51 WHEN + CASE - 14 WHEN + 35 + - NULLIF ( - 85, 50 / + 83 ) THEN NULL WHEN 72 THEN NULL WHEN + + 96 + - ( + 69 ) THEN + - 12 + + 77 END THEN + + 51 + + - 44 ELSE + COUNT( * ) END ) * + MAX( DISTINCT 55 )
----
3300

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - NULLIF ( - NULLIF ( + 60, 87 * - - 94 * 95 ), + CASE 51 WHEN + CASE - 14 WHEN + 35 + - NULLIF ( - 85, 50 / + 83 ) THEN NULL WHEN 72 THEN NULL WHEN + + 96 + - ( + 69 ) THEN + - 12 + + 77 END THEN + + 51 + + - 44 ELSE + COUNT ( * ) END ) * + MAX ( DISTINCT 55 )
----
3300

query I rowsort
SELECT + 38 * - ( + - 92 ) AS col1
----
3496

query I rowsort
SELECT 19 * - 21
----
-399

query I rowsort
SELECT + 82 + - 22
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4726
SELECT DISTINCT - CASE - NULLIF ( COUNT( * ), - + CAST( + ( - + CAST( NULL AS SIGNED ) ) AS DECIMAL ) ) WHEN + - 99 THEN + COUNT( * ) WHEN 46 * + + 57 * - - 88 * COUNT( * ) + + COUNT( * ) * + 82 THEN NULL ELSE 78 END * - + CASE 64 WHEN 42 THEN NULL WHEN - 90 * - 72 - + + 31 / + SUM( + + 71 ) + + 76 THEN 65 END + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT - CASE - NULLIF ( COUNT ( * ), - + CAST ( + ( - + CAST ( NULL AS INTEGER ) ) AS REAL ) ) WHEN + - 99 THEN + COUNT ( * ) WHEN 46 * + + 57 * - - 88 * COUNT ( * ) + + COUNT ( * ) * + 82 THEN NULL ELSE 78 END * - + CASE 64 WHEN 42 THEN NULL WHEN - 90 * - 72 - + + 31 / + SUM ( + + 71 ) + + 76 THEN 65 END + 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4727
SELECT - 5 DIV - ( 23 ) - + 54 - - 35 * COUNT( * ) * + + 90 AS col1
----
3096

skipif mysql # not compatible
query I rowsort label-4727
SELECT - 5 / - ( 23 ) - + 54 - - 35 * COUNT ( * ) * + + 90 AS col1
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT DISTINCT - COUNT( 50 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT - COUNT ( 50 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4729
SELECT ALL + 85 + + + 17, + NULLIF ( + - 83, + - COUNT( * ) + - - 70 ) col2
----
102
-83

skipif mysql # not compatible
query II rowsort label-4729
SELECT ALL + 85 + + + 17, + NULLIF ( + - 83, + - COUNT ( * ) + - - 70 ) col2
----
102
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT COUNT( * ) + + 6 * 89 * + COALESCE ( 34, - SUM( DISTINCT + - 78 ) ) AS col1
----
18157

skipif mysql # not compatible
query I rowsort label-4730
SELECT COUNT ( * ) + + 6 * 89 * + COALESCE ( 34, - SUM ( DISTINCT + - 78 ) ) AS col1
----
18157

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT 62 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT 62 / - 76 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT ALL COUNT( * ) + - + NULLIF ( 72, - - 52 ) col0
----
-71

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL COUNT ( * ) + - + NULLIF ( 72, - - 52 ) col0
----
-71

query I rowsort
SELECT CASE + - 64 WHEN - ( + 41 ) * + 95 THEN NULL ELSE - - 15 END
----
15

query I rowsort
SELECT ALL 56 * + 4
----
224

query I rowsort
SELECT + 62 * - 72 AS col1
----
-4464

query I rowsort
SELECT + CASE + 84 WHEN - 77 THEN - + 68 * - 63 + + ( + 34 ) ELSE 34 END
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4737
SELECT ALL + 68 * + 23 + + - COUNT( * ) AS col0, 27 AS col1
----
1563
27

skipif mysql # not compatible
query II rowsort label-4737
SELECT ALL + 68 * + 23 + + - COUNT ( * ) AS col0, 27 AS col1
----
1563
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4738
SELECT CASE - CAST( + 39 AS SIGNED ) WHEN NULLIF ( 31, + 56 + + 62 ) THEN - + 15 DIV - 83 ELSE 14 + - 25 DIV + 14 END AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4738
SELECT CASE - CAST ( + 39 AS INTEGER ) WHEN NULLIF ( 31, + 56 + + 62 ) THEN - + 15 / - 83 ELSE 14 + - 25 / + 14 END AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT ALL 20 * NULLIF ( - 45, - 82 * 26 - - - 88 ) AS col1, + 92 * + COALESCE ( - - 88, + + ( 96 ) ) * - COUNT( ALL - 1 )
----
-900
-8096

skipif mysql # not compatible
query II rowsort label-4739
SELECT ALL 20 * NULLIF ( - 45, - 82 * 26 - - - 88 ) AS col1, + 92 * + COALESCE ( - - 88, + + ( 96 ) ) * - COUNT ( ALL - 1 )
----
-900
-8096

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT + 26 + - + COUNT( * ) * + 45 * + - ( + 74 )
----
3356

skipif mysql # not compatible
query I rowsort label-4740
SELECT + 26 + - + COUNT ( * ) * + 45 * + - ( + 74 )
----
3356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4741
SELECT + 71 * + 48 + COUNT( * ) DIV - ( + 36 ) AS col2
----
3408

skipif mysql # not compatible
query I rowsort label-4741
SELECT + 71 * + 48 + COUNT ( * ) / - ( + 36 ) AS col2
----
3408

query II rowsort
SELECT 45 * - 56 + + 95 AS col2, + 22
----
-2425
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4743
SELECT - 49 + + 44 + - NULLIF ( + - 72, - + 14 * - 22 * - CAST( NULL AS SIGNED ) ) + + COUNT( * ) * - COALESCE ( + - 42, + + NULLIF ( - 0, + 70 ) ) col2
----
109

skipif mysql # not compatible
query I rowsort label-4743
SELECT - 49 + + 44 + - NULLIF ( + - 72, - + 14 * - 22 * - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * - COALESCE ( + - 42, + + NULLIF ( - 0, + 70 ) ) col2
----
109

query I rowsort
SELECT ALL + - ( + - ( 78 ) )
----
78

query I rowsort
SELECT - + CASE + 30 WHEN 41 - - 22 * 49 THEN + 80 WHEN ( 7 ) THEN NULL WHEN + + COALESCE ( - 70, 9, + 17 ) * 38 + - 56 THEN NULL END * - + COALESCE ( + 6, + 38 * + - ( + - 34 ) )
----
NULL

query I rowsort
SELECT - 90 * - 47 + + 24 + + 84
----
4338

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT ALL + 1 * - - COUNT( * ) * + 60 + - 92 col2
----
-32

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL + 1 * - - COUNT ( * ) * + 60 + - 92 col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL + MIN( DISTINCT - - ( 66 ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + MIN ( DISTINCT - - ( 66 ) ) AS col1
----
66

query I rowsort
SELECT ALL + + 94 * + + 95
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT - - 46 + - 68 + + COUNT( * ) * - COALESCE ( - 29, + 26 ) + - + 10 + + - 26 - - 8 + + 2 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4750
SELECT - - 46 + - 68 + + COUNT ( * ) * - COALESCE ( - 29, + 26 ) + - + 10 + + - 26 - - 8 + + 2 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT - 40 * 35 * - + SUM( 37 )
----
51800

skipif mysql # not compatible
query I rowsort label-4751
SELECT - 40 * 35 * - + SUM ( 37 )
----
51800

query I rowsort
SELECT - + 72 + - + 33
----
-105

query II rowsort
SELECT - + 57 col0, - 54
----
-57
-54

query I rowsort
SELECT ALL 23 * + 27
----
621

query I rowsort
SELECT DISTINCT - 97 * - 38 AS col2
----
3686

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL - SUM( ALL - - 74 ) + - 12 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - SUM ( ALL - - 74 ) + - 12 AS col0
----
-86

query II rowsort
SELECT DISTINCT + 8 AS col0, - 98 AS col1
----
8
-98

query I rowsort
SELECT ALL + 83 + - - 64
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT ALL + 25 * - COUNT( * ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL + 25 * - COUNT ( * ) AS col2
----
-25

query I rowsort
SELECT - - 9 + - 40 col1
----
-31

query I rowsort
SELECT - 12 + - 33 AS col2
----
-45

query II rowsort
SELECT - 67 AS col2, - 30
----
-67
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + 25 + NULLIF ( - + MAX( + 62 ), - 62 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT + 25 + NULLIF ( - + MAX ( + 62 ), - 62 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT ALL + - 77 + COUNT( * ) * + 94 * 51 col0, ( + 22 ) - ( - - 66 ) AS col0
----
4717
-44

skipif mysql # not compatible
query II rowsort label-4764
SELECT ALL + - 77 + COUNT ( * ) * + 94 * 51 col0, ( + 22 ) - ( - - 66 ) AS col0
----
4717
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4765
SELECT - COUNT( * ) + - + 67 + - 38 * + COUNT( * ) AS col0, - 72 AS col0
----
-106
-72

skipif mysql # not compatible
query II rowsort label-4765
SELECT - COUNT ( * ) + - + 67 + - 38 * + COUNT ( * ) AS col0, - 72 AS col0
----
-106
-72

query I rowsort
SELECT DISTINCT 22 * 45 AS col1
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL + 76 + SUM( ALL - - 97 ) + + 65 * + + 98 AS col2
----
6543

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + 76 + SUM ( ALL - - 97 ) + + 65 * + + 98 AS col2
----
6543

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + CASE - 33 WHEN + 73 THEN NULL WHEN 75 + + - 10 + - - 20 + ( COALESCE ( - + COUNT( * ), 77 ) ) * + COUNT( * ) + 13 / 97 + + 69 THEN NULL ELSE + + 33 END + 94 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-4768
SELECT + CASE - 33 WHEN + 73 THEN NULL WHEN 75 + + - 10 + - - 20 + ( COALESCE ( - + COUNT ( * ), 77 ) ) * + COUNT ( * ) + 13 / 97 + + 69 THEN NULL ELSE + + 33 END + 94 AS col1
----
127

query I rowsort
SELECT ALL + 12 + + + 40 * - 87 * + ( - 19 ) AS col0
----
66132

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT + COUNT( * ) * 94 * + 35
----
3290

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT + COUNT ( * ) * 94 * + 35
----
3290

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL 50 - - COUNT( * ) + + + 48
----
99

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL 50 - - COUNT ( * ) + + + 48
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4772
SELECT + 56 + - 54 DIV + 13 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4772
SELECT + 56 + - 54 / + 13 AS col2
----
52

query II rowsort
SELECT + 15 * 71 AS col1, + ( - 46 ) + - 36 * + 93 AS col0
----
1065
-3394

query I rowsort
SELECT - 5 * + 99 + + 61 AS col0
----
-434

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT CASE + 94 WHEN 57 THEN + 48 ELSE NULL END / - ( COUNT( * ) ) + 54 * - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT CASE + 94 WHEN 57 THEN + 48 ELSE NULL END / - ( COUNT ( * ) ) + 54 * - 68 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT CAST( + ( 23 ) AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-4776
SELECT CAST ( + ( 23 ) AS INTEGER )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4777
SELECT + 79 * - COUNT( * ) AS col0, - 3
----
-79
-3

skipif mysql # not compatible
query II rowsort label-4777
SELECT + 79 * - COUNT ( * ) AS col0, - 3
----
-79
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + COUNT( - 19 ) + 6 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4778
SELECT + COUNT ( - 19 ) + 6 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4779
SELECT + NULLIF ( 85, + + 30 / SUM( DISTINCT ( - 19 ) ) + CAST( - + 5 AS SIGNED ) )
----
85

skipif mysql # not compatible
query I rowsort label-4779
SELECT + NULLIF ( 85, + + 30 / SUM ( DISTINCT ( - 19 ) ) + CAST ( - + 5 AS INTEGER ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL + MIN( ( - 39 ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL + MIN ( ( - 39 ) ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + + 25 * 92 - + 68 * - 79 * - MAX( ALL - + 72 )
----
389084

skipif mysql # not compatible
query I rowsort label-4781
SELECT + + 25 * 92 - + 68 * - 79 * - MAX ( ALL - + 72 )
----
389084

query I rowsort
SELECT + + 81 * - - 72 AS col1
----
5832

query I rowsort
SELECT - 93 * - - 55
----
-5115

query II rowsort
SELECT + 37 - - 76 * - ( 67 ) AS col1, - 31 AS col0
----
-5055
-31

query I rowsort
SELECT DISTINCT - 29 * - 98 + - NULLIF ( 10, + + 91 + - 70 ) AS col0
----
2832

query I rowsort
SELECT DISTINCT + 64 * 18 + + 15 - + 81 - - 99 AS col2
----
1185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4787
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + 59 * + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + 59 * + + 50
----
NULL

query I rowsort
SELECT ALL 57 * + 60 AS col2
----
3420

onlyif mysql # DIV for integer division: 
query I rowsort label-4789
SELECT + ( + ( 26 ) ) DIV - 68 - 58
----
-58

skipif mysql # not compatible
query I rowsort label-4789
SELECT + ( + ( 26 ) ) / - 68 - 58
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT - 0 - - ( - - 42 ) * ( COUNT( DISTINCT 47 ) )
----
42

skipif mysql # not compatible
query I rowsort label-4790
SELECT - 0 - - ( - - 42 ) * ( COUNT ( DISTINCT 47 ) )
----
42

query I rowsort
SELECT - 10 * - 79
----
790

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT - - COUNT( * ) * + 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT - - COUNT ( * ) * + 91 AS col2
----
91

query I rowsort
SELECT DISTINCT ( 99 ) col2
----
99

query I rowsort
SELECT 87 * + + 42 * - - 62 * + ( + 99 )
----
22428252

query II rowsort
SELECT DISTINCT 92 + 99 + + 40 * - 60 * - 69 AS col1, + 39 * - - 30
----
165791
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT 87 + - CASE COUNT( * ) WHEN + 57 THEN NULL ELSE - ( - 18 ) * ( - 11 ) + + 74 + 64 * - 85 END AS col2
----
5651

skipif mysql # not compatible
query I rowsort label-4796
SELECT 87 + - CASE COUNT ( * ) WHEN + 57 THEN NULL ELSE - ( - 18 ) * ( - 11 ) + + 74 + 64 * - 85 END AS col2
----
5651

query I rowsort
SELECT DISTINCT - 45 - + 47 AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4798
SELECT 12 - + 84 - - - COUNT( * ) DIV + - 46 * - 65 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4798
SELECT 12 - + 84 - - - COUNT ( * ) / + - 46 * - 65 AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4799
SELECT ALL ( CASE - 11 WHEN 89 THEN + 27 WHEN - 62 * - COUNT( * ) * 0 * - + NULLIF ( - - 34, - 96 ) * + 92 + ( - MIN( ALL CAST( + 90 AS SIGNED ) ) ) - + - 33 + + 67 + + + 58 * 30 + + 36 THEN NULL ELSE + + 51 END ) * - + CASE + 46 WHEN - - 9 * - 37 THEN ( 40 ) ELSE NULL END * - COUNT( * ) * - + NULLIF ( - ( + 1 ), + ( - - 98 ) / + COUNT( * ) ) * - 25 + - 98 / 81 * - - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL ( CASE - 11 WHEN 89 THEN + 27 WHEN - 62 * - COUNT ( * ) * 0 * - + NULLIF ( - - 34, - 96 ) * + 92 + ( - MIN ( ALL CAST ( + 90 AS INTEGER ) ) ) - + - 33 + + 67 + + + 58 * 30 + + 36 THEN NULL ELSE + + 51 END ) * - + CASE + 46 WHEN - - 9 * - 37 THEN ( 40 ) ELSE NULL END * - COUNT ( * ) * - + NULLIF ( - ( + 1 ), + ( - - 98 ) / + COUNT ( * ) ) * - 25 + - 98 / 81 * - - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT 22 + - COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4800
SELECT 22 + - COUNT ( * ) AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT ALL + CASE ( - - 56 ) WHEN COALESCE ( - AVG ( 86 ), + 89 / - + COUNT( * ) + - COALESCE ( - 38, MAX( + + 12 ), + ( + - 58 ) ), + NULLIF ( - 68, + - 13 ) ) + - ( - + 75 ) THEN + ( - 61 ) ELSE + MIN( DISTINCT - - 45 ) END * - + ( CAST( - 95 AS SIGNED ) ) AS col0
----
4275

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + CASE ( - - 56 ) WHEN COALESCE ( - AVG ( 86 ), + 89 / - + COUNT ( * ) + - COALESCE ( - 38, MAX ( + + 12 ), + ( + - 58 ) ), + NULLIF ( - 68, + - 13 ) ) + - ( - + 75 ) THEN + ( - 61 ) ELSE + MIN ( DISTINCT - - 45 ) END * - + ( CAST ( - 95 AS INTEGER ) ) AS col0
----
4275

query II rowsort
SELECT 55 * + - 60 * - 70 + - ( 40 ) AS col0, - 85 col2
----
230960
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT + 64 * + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT + 64 * + COUNT ( * ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4804
SELECT DISTINCT - 73 AS col0, COUNT( * )
----
-73
1

skipif mysql # not compatible
query II rowsort label-4804
SELECT DISTINCT - 73 AS col0, COUNT ( * )
----
-73
1

query I rowsort
SELECT ALL + 55 * 60
----
3300

query I rowsort
SELECT 21 + 19 + + + 21 AS col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4807
SELECT 19 DIV ( + 55 ) * 82 - + 75 + + ( + 29 )
----
-46

skipif mysql # not compatible
query I rowsort label-4807
SELECT 19 / ( + 55 ) * 82 - + 75 + + ( + 29 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4808
SELECT - CAST( NULL AS SIGNED ) * - 25 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT - CAST ( NULL AS INTEGER ) * - 25 + + COUNT ( * )
----
NULL

query I rowsort
SELECT ( + 25 ) + + 51 col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT 19 + - COUNT( DISTINCT 94 + + 78 ) col0
----
18

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT 19 + - COUNT ( DISTINCT 94 + + 78 ) col0
----
18

query I rowsort
SELECT - 68 * 19 + - 9
----
-1301

query I rowsort
SELECT ALL 53 + - 6 * + 57
----
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT 56 + 18 * + COUNT( DISTINCT + 39 * 15 )
----
74

skipif mysql # not compatible
query I rowsort label-4813
SELECT 56 + 18 * + COUNT ( DISTINCT + 39 * 15 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT ALL - ( 84 ) DIV 44
----
-1

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - ( 84 ) / 44
----
-1

query I rowsort
SELECT DISTINCT - CASE 13 WHEN 67 - 73 THEN 88 + - 45 * 8 ELSE + 19 END col2
----
-19

query I rowsort
SELECT ALL 47 * 74 AS col2
----
3478

query I rowsort
SELECT ALL 59 * 61
----
3599

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4818
SELECT ALL 18 + COUNT( * ) / - ( - CAST( NULL AS DECIMAL ) * 33 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL 18 + COUNT ( * ) / - ( - CAST ( NULL AS REAL ) * 33 ) AS col1
----
NULL

query I rowsort
SELECT 47 * 11 + - 86
----
431

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + 30 * - 31 + - COUNT( * ) AS col0
----
-931

skipif mysql # not compatible
query I rowsort label-4820
SELECT + 30 * - 31 + - COUNT ( * ) AS col0
----
-931

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL 11 * MIN( ALL + 16 ) AS col0
----
176

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL 11 * MIN ( ALL + 16 ) AS col0
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT 1 + + 95 DIV + 64 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4822
SELECT 1 + + 95 / + 64 AS col0
----
2

query I rowsort
SELECT ALL 87 + ( 18 ) AS col1
----
105

query I rowsort
SELECT 10 + 12 AS col2
----
22

query I rowsort
SELECT DISTINCT 17 + - 93 AS col2
----
-76

query I rowsort
SELECT ( 14 ) + 44 AS col0
----
58

query I rowsort
SELECT DISTINCT 93 - 20
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT SUM( ALL - 98 ) + + 77 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4828
SELECT SUM ( ALL - 98 ) + + 77 AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT CAST( NULL AS SIGNED ) / + ( 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT CAST ( NULL AS INTEGER ) / + ( 22 )
----
NULL

query I rowsort
SELECT ALL + 58 * 18 AS col0
----
1044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4831
SELECT ALL COUNT( * ) DIV - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL COUNT ( * ) / - 57 AS col0
----
0

query I rowsort
SELECT DISTINCT 80 * - 75
----
-6000

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT DISTINCT COUNT( * ) - 79
----
-78

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT COUNT ( * ) - 79
----
-78

query I rowsort
SELECT ALL 98 * - 84
----
-8232

query I rowsort
SELECT 97 * 37 AS col1
----
3589

query I rowsort
SELECT 32 + - 10
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL + CASE 8 WHEN COUNT( * ) THEN + 26 WHEN - 66 * 41 + 42 THEN NULL END * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL + CASE 8 WHEN COUNT ( * ) THEN + 26 WHEN - 66 * 41 + 42 THEN NULL END * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT COUNT( * ) - 19
----
-18

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT COUNT ( * ) - 19
----
-18

query I rowsort
SELECT 22 + COALESCE ( + 22, + 2 + 49 * + 91 ) * - 41
----
-880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4840
SELECT ALL COUNT( * ) * + CAST( 68 AS SIGNED ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL COUNT ( * ) * + CAST ( 68 AS INTEGER ) AS col0
----
68

query I rowsort
SELECT 47 + - 83
----
-36

query I rowsort
SELECT 51 * 22 AS col2
----
1122

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT ( COALESCE ( - 77, + 3 ) ) DIV 29 + 63
----
61

skipif mysql # not compatible
query I rowsort label-4843
SELECT ( COALESCE ( - 77, + 3 ) ) / 29 + 63
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT DISTINCT + 70 * COALESCE ( 57, MIN( 64 ) ) AS col2
----
3990

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT + 70 * COALESCE ( 57, MIN ( 64 ) ) AS col2
----
3990

query I rowsort
SELECT + 97 * + 17 AS col0
----
1649

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + MIN( DISTINCT 10 ) + 56
----
66

skipif mysql # not compatible
query I rowsort label-4846
SELECT + MIN ( DISTINCT 10 ) + 56
----
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4847
SELECT ALL 75 * 59 + + ( + COALESCE ( 0, NULLIF ( CAST( NULL AS SIGNED ), 6 ) * + 79, - 13 + NULLIF ( + 72, 78 - CAST( - 96 AS DECIMAL ) * - 20 ) ) ) AS col1
----
4425

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL 75 * 59 + + ( + COALESCE ( 0, NULLIF ( CAST ( NULL AS INTEGER ), 6 ) * + 79, - 13 + NULLIF ( + 72, 78 - CAST ( - 96 AS REAL ) * - 20 ) ) ) AS col1
----
4425

query I rowsort
SELECT DISTINCT + 64 * + 78 + 70 col1
----
5062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT DISTINCT + + 74 * + CAST( NULL AS SIGNED ) + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + + 74 * + CAST ( NULL AS INTEGER ) + 86 AS col1
----
NULL

query I rowsort
SELECT ALL ( 3 ) * 19 + - 95 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4851
SELECT DISTINCT - 76 * - CAST( + NULLIF ( NULLIF ( 68, 5 ), 39 * MIN( DISTINCT 10 ) + - 69 * - 12 ) / COALESCE ( - 44 * - NULLIF ( - 5, - 93 ) + 6 / - ( - COALESCE ( - 96, 24 / 49 ) ), 37, + COUNT( * ) + - 13 * 75 ) + - MAX( ALL - 19 ) AS SIGNED )
----
1444

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - 76 * - CAST ( + NULLIF ( NULLIF ( 68, 5 ), 39 * MIN ( DISTINCT 10 ) + - 69 * - 12 ) / COALESCE ( - 44 * - NULLIF ( - 5, - 93 ) + 6 / - ( - COALESCE ( - 96, 24 / 49 ) ), 37, + COUNT ( * ) + - 13 * 75 ) + - MAX ( ALL - 19 ) AS INTEGER )
----
1444

query I rowsort
SELECT - + 13 * + 18 - + 99
----
-333

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT - CASE ( 54 ) WHEN 24 + + ( - 3 ) / + 26 THEN 57 + + SUM( - 59 ) * - 18 ELSE - 1 END
----
1

skipif mysql # not compatible
query I rowsort label-4853
SELECT - CASE ( 54 ) WHEN 24 + + ( - 3 ) / + 26 THEN 57 + + SUM ( - 59 ) * - 18 ELSE - 1 END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT COUNT( * ) * - ( + COUNT( * ) * - 38 + 7 ) + ( 10 ) col2
----
41

skipif mysql # not compatible
query I rowsort label-4854
SELECT COUNT ( * ) * - ( + COUNT ( * ) * - 38 + 7 ) + ( 10 ) col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4855
SELECT 78 * - CASE COUNT( * ) + - 53 WHEN 55 + CAST( NULL AS SIGNED ) * - COALESCE ( 38, COUNT( + CAST( NULL AS SIGNED ) ) * - 73 - - MIN( DISTINCT 80 + 37 ) ) THEN COUNT( * ) * - MIN( 52 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT 78 * - CASE COUNT ( * ) + - 53 WHEN 55 + CAST ( NULL AS INTEGER ) * - COALESCE ( 38, COUNT ( + CAST ( NULL AS INTEGER ) ) * - 73 - - MIN ( DISTINCT 80 + 37 ) ) THEN COUNT ( * ) * - MIN ( 52 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT + COALESCE ( + COUNT( * ), + 35, - 95 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4856
SELECT + COALESCE ( + COUNT ( * ), + 35, - 95 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + 83 * - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-4857
SELECT + 83 * - COUNT ( * )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT + CAST( + ( - 72 ) AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-4858
SELECT + CAST ( + ( - 72 ) AS INTEGER )
----
-72

query I rowsort
SELECT ALL - 77 - - 64
----
-13

query I rowsort
SELECT - - 72 - + 25 AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT DISTINCT - 33 DIV 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT - 33 / 52 AS col0
----
0

query I rowsort
SELECT + 62 + ( + 99 + + 53 ) AS col0
----
214

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT - COUNT( ALL + 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-4863
SELECT - COUNT ( ALL + 65 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL MAX( 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL MAX ( 78 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT - CAST( NULL AS SIGNED ) + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT - CAST ( NULL AS INTEGER ) + 70 AS col0
----
NULL

query I rowsort
SELECT + 16 * 39 AS col0
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT + 33 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT + 33 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT COALESCE ( + - COUNT( * ), 58 + - COUNT( * ) * 5 ) * + MIN( 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT COALESCE ( + - COUNT ( * ), 58 + - COUNT ( * ) * 5 ) * + MIN ( 46 )
----
-46

query I rowsort
SELECT DISTINCT ( + 84 ) * CASE + 66 WHEN 41 THEN + ( + 70 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 68 - 80 * 69 AS col0
----
-5452

query I rowsort
SELECT + 80 * - 36
----
-2880

query I rowsort
SELECT + 86 * + 3 AS col0
----
258

query I rowsort
SELECT DISTINCT 3 * - + 47
----
-141

query I rowsort
SELECT + 32 + 51 - 41 col0
----
42

query I rowsort
SELECT + 50 * - 46 AS col2
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - CASE + 93 WHEN COUNT( * ) THEN COUNT( * ) + - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT - CASE + 93 WHEN COUNT ( * ) THEN COUNT ( * ) + - 0 END
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 23, + 97, 68 + 81 ) + + 5
----
28

query I rowsort
SELECT + 38 + - 84 * 83 col2
----
-6934

query I rowsort
SELECT - 20 * + 55
----
-1100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT - CASE - + 13 WHEN 87 THEN - 16 WHEN + CAST( - 98 AS SIGNED ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT - CASE - + 13 WHEN 87 THEN - 16 WHEN + CAST ( - 98 AS INTEGER ) THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT + 46 * + 54 AS col2
----
2484

query I rowsort
SELECT ALL - 92 + - 76
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4883
SELECT + 84 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT + 84 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT + ( ( + CAST( NULL AS SIGNED ) ) ) + 41 * CASE 38 WHEN - 35 THEN NULL ELSE 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT + ( ( + CAST ( NULL AS INTEGER ) ) ) + 41 * CASE 38 WHEN - 35 THEN NULL ELSE 20 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT - CASE + - ( + COUNT( * ) ) WHEN + 88 * - 39 + - 19 * - 91 THEN NULL WHEN + 61 + - SUM( - 66 ) * COUNT( * ) THEN NULL ELSE 33 END * 72
----
-2376

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT - CASE + - ( + COUNT ( * ) ) WHEN + 88 * - 39 + - 19 * - 91 THEN NULL WHEN + 61 + - SUM ( - 66 ) * COUNT ( * ) THEN NULL ELSE 33 END * 72
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL + 24 * + 80 + 58 + - COALESCE ( COUNT( * ), 83 + - 78 )
----
1977

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + 24 * + 80 + 58 + - COALESCE ( COUNT ( * ), 83 + - 78 )
----
1977

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ALL 55 * + 24 * ( CASE COUNT( * ) WHEN - 95 * 2 + 61 THEN 57 * + 64 WHEN - ( + 55 ) * + 17 THEN NULL ELSE + 79 END ) + - 14 AS col0
----
104266

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL 55 * + 24 * ( CASE COUNT ( * ) WHEN - 95 * 2 + 61 THEN 57 * + 64 WHEN - ( + 55 ) * + 17 THEN NULL ELSE + 79 END ) + - 14 AS col0
----
104266

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + - COUNT( * ) + - 35 + 4 * + ( NULLIF ( 85, 15 ) )
----
304

skipif mysql # not compatible
query I rowsort label-4888
SELECT + - COUNT ( * ) + - 35 + 4 * + ( NULLIF ( 85, 15 ) )
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT 36 * - COUNT( * ) - 45
----
-81

skipif mysql # not compatible
query I rowsort label-4889
SELECT 36 * - COUNT ( * ) - 45
----
-81

query I rowsort
SELECT - + 61 - - 91 * - 97 AS col0
----
-8888

query I rowsort
SELECT DISTINCT + ( + 62 ) col0
----
62

query I rowsort
SELECT - - ( + + 17 ) + - 99 * - 44 col0
----
4373

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT - COUNT( * ) * - - 90 + 65 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4893
SELECT - COUNT ( * ) * - - 90 + 65 AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4894
SELECT DISTINCT - + COUNT( * ) * + - 22 * - ( + COALESCE ( 53, - ( MIN( + COALESCE ( ( 21 ), COALESCE ( 28, + 18 ) * ( + ( + 69 ) ) ) ) ) * 72 + + 23 ) DIV + ( - 53 ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - + COUNT ( * ) * + - 22 * - ( + COALESCE ( 53, - ( MIN ( + COALESCE ( ( 21 ), COALESCE ( 28, + 18 ) * ( + ( + 69 ) ) ) ) ) * 72 + + 23 ) / + ( - 53 ) ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT DISTINCT - + 5 * - - ( - COUNT( * ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT - + 5 * - - ( - COUNT ( * ) ) AS col2
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4896
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / 49 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT - CAST ( NULL AS REAL ) / 49 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT - COUNT( * ) + + - 3
----
-4

skipif mysql # not compatible
query I rowsort label-4897
SELECT - COUNT ( * ) + + - 3
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL - + 55 * COUNT( * ) - + 9
----
-64

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL - + 55 * COUNT ( * ) - + 9
----
-64

query I rowsort
SELECT ALL - - 88 * + ( + 30 )
----
2640

query I rowsort
SELECT COALESCE ( - 8, + 51 * 91 )
----
-8

query I rowsort
SELECT + 92 + + NULLIF ( + 27, + 41 ) + 61
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT ALL + CAST( + 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL + CAST ( + 55 AS INTEGER )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT + MIN( 49 )
----
49

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT + MIN ( 49 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT DISTINCT CAST( AVG ( 57 ) AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT CAST ( AVG ( 57 ) AS INTEGER )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT + 86 DIV - + 47
----
-1

skipif mysql # not compatible
query I rowsort label-4905
SELECT + 86 / - + 47
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label