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 # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-0
SELECT DISTINCT + CASE - + 74 WHEN - 67 + 72 + + 5 THEN - - 62 + CASE + CAST( NULL AS SIGNED ) WHEN - 26 THEN COUNT( * ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT + CASE - + 74 WHEN - 67 + 72 + + 5 THEN - - 62 + CASE + CAST ( NULL AS INTEGER ) WHEN - 26 THEN COUNT ( * ) END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL COUNT( ALL - 33 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL COUNT ( ALL - 33 ) col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT + - COUNT( - 22 ) + 18
----
17

skipif mysql # not compatible
query I rowsort label-3
SELECT + - COUNT ( - 22 ) + 18
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-4
SELECT ALL 67 AS col1, - 25 + + 83 + + + 93 DIV + - 41 + 93
----
67
149

skipif mysql # not compatible
query II rowsort label-4
SELECT ALL 67 AS col1, - 25 + + 83 + + + 93 / + - 41 + 93
----
67
149

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT - 65 + - NULLIF ( - + COUNT( * ), + - ( + COUNT( * ) ) ) * + - 53 * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6
SELECT - 65 + - NULLIF ( - + COUNT ( * ), + - ( + COUNT ( * ) ) ) * + - 53 * + 54
----
NULL

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

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

query I rowsort
SELECT ALL - NULLIF ( + - 27, - 23 * + - 91 )
----
27

query I rowsort
SELECT DISTINCT + 50 + - NULLIF ( + 2, - 49 * + 52 ) * CASE WHEN NOT - 70 IS NOT NULL THEN - 94 + - 11 END + + 14 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-10
SELECT + 23 DIV - 18 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-10
SELECT + 23 / - 18 AS col2
----
-1

query I rowsort
SELECT - 93 + - 50 AS col0
----
-143

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

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

query II rowsort
SELECT ALL + 88 * - - 98 col2, ( + + 47 )
----
8624
47

query I rowsort
SELECT ALL + 70 * 79 AS col1
----
5530

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

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

query I rowsort
SELECT ALL + 61 + - 57 - + 47 col1
----
-43

query I rowsort
SELECT ALL - 89 * 4 * 54 AS col1
----
-19224

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-19
SELECT ALL + ( + ( + - 53 ) ) + - NULLIF ( + + SUM( + + 44 ), + - CAST( - 87 AS DECIMAL ) + 73 * - 93 ) AS col0, - COUNT( * ) - - + 88
----
-97
87

skipif mysql # not compatible
query II rowsort label-19
SELECT ALL + ( + ( + - 53 ) ) + - NULLIF ( + + SUM ( + + 44 ), + - CAST ( - 87 AS REAL ) + 73 * - 93 ) AS col0, - COUNT ( * ) - - + 88
----
-97
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-20
SELECT - COALESCE ( + CASE - - 59 WHEN - ( - - COUNT( * ) ) * + - 74 / - + COUNT( * ) + + SUM( DISTINCT - 86 ) - + - CAST( NULL AS SIGNED ) THEN - + 95 WHEN + 39 * + 66 + 69 * + 54 + - COUNT( * ) * + + 71 THEN NULL END, + + 33 + - 62 ) + - COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-20
SELECT - COALESCE ( + CASE - - 59 WHEN - ( - - COUNT ( * ) ) * + - 74 / - + COUNT ( * ) + + SUM ( DISTINCT - 86 ) - + - CAST ( NULL AS INTEGER ) THEN - + 95 WHEN + 39 * + 66 + 69 * + 54 + - COUNT ( * ) * + + 71 THEN NULL END, + + 33 + - 62 ) + - COUNT ( * ) AS col0
----
28

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

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL ( + 59 ) / - 20 - ( COUNT ( * ) ) AS col1
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT - 45 / - + 3 * + CASE 63 WHEN + COUNT( - 32 ) * CASE + SUM( DISTINCT - 40 ) WHEN MIN( 37 ) THEN + + 28 WHEN - COUNT( * ) + COUNT( * ) THEN NULL END THEN - + 68 * - 19 WHEN + 60 * 76 + + - ( 53 ) + - 76 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-23
SELECT - 45 / - + 3 * + CASE 63 WHEN + COUNT ( - 32 ) * CASE + SUM ( DISTINCT - 40 ) WHEN MIN ( 37 ) THEN + + 28 WHEN - COUNT ( * ) + COUNT ( * ) THEN NULL END THEN - + 68 * - 19 WHEN + 60 * 76 + + - ( 53 ) + - 76 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 51 * + 66
----
3366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-25
SELECT ALL - COUNT( * ) DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL - COUNT ( * ) / + 73
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT ALL 64 DIV + 68 - 33 - - + ( 31 )
----
-2

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL 64 / + 68 - 33 - - + ( 31 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-27
SELECT ALL - CAST( - COALESCE ( - ( + 57 ), + 30 - - 63 + - 63 * COUNT( * ) * 39, + - 58 ) AS SIGNED ) DIV NULLIF ( + 96, + CAST( 45 AS SIGNED ) ) - - 43 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL - CAST ( - COALESCE ( - ( + 57 ), + 30 - - 63 + - 63 * COUNT ( * ) * 39, + - 58 ) AS INTEGER ) / NULLIF ( + 96, + CAST ( 45 AS INTEGER ) ) - - 43 AS col0
----
43

query I rowsort
SELECT ALL - 24 * - 68
----
1632

query I rowsort
SELECT + 25 * + 44 AS col1
----
1100

query I rowsort
SELECT DISTINCT + - 0 * 27 * + - 32 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-31
SELECT - 78 DIV 87 AS col0, - 20 AS col2
----
0
-20

skipif mysql # not compatible
query II rowsort label-31
SELECT - 78 / 87 AS col0, - 20 AS col2
----
0
-20

query I rowsort
SELECT 28 * 81 + + + 18 * + 72 AS col0
----
3564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-33
SELECT ALL COALESCE ( - - 64, + + 91 ) * + CAST( NULL AS SIGNED ) * + 53 * - 47 * 53 AS col2, ( COUNT( * ) )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-33
SELECT ALL COALESCE ( - - 64, + + 91 ) * + CAST ( NULL AS INTEGER ) * + 53 * - 47 * 53 AS col2, ( COUNT ( * ) )
----
NULL
1

query I rowsort
SELECT - 91 * - 62 * 30 AS col2
----
169260

query II rowsort
SELECT ( + 3 ), 83 AS col0
----
3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT DISTINCT - 81 * + - COUNT( * ) + - COUNT( - ( - ( + 18 ) ) ) + + - 95 + - - 53 * + MIN( ALL - 73 ) + COUNT( * )
----
-3883

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT - 81 * + - COUNT ( * ) + - COUNT ( - ( - ( + 18 ) ) ) + + - 95 + - - 53 * + MIN ( ALL - 73 ) + COUNT ( * )
----
-3883

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT ALL + CASE + - AVG ( DISTINCT - - CASE + 95 WHEN - + 50 THEN - 54 ELSE NULL END ) WHEN - + 11 / 23 + 88 * COUNT( * ) THEN - 33 ELSE - COUNT( * ) * 85 * + + 49 - + 23 END AS col2
----
-4188

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL + CASE + - AVG ( DISTINCT - - CASE + 95 WHEN - + 50 THEN - 54 ELSE NULL END ) WHEN - + 11 / 23 + 88 * COUNT ( * ) THEN - 33 ELSE - COUNT ( * ) * 85 * + + 49 - + 23 END AS col2
----
-4188

query II rowsort
SELECT + - 92 * - 64 AS col1, 36 + 26 AS col2
----
5888
62

onlyif mysql # aggregate syntax: 
query II rowsort label-39
SELECT ALL + SUM( + 31 ), - 66 AS col0
----
31
-66

skipif mysql # not compatible
query II rowsort label-39
SELECT ALL + SUM ( + 31 ), - 66 AS col0
----
31
-66

query I rowsort
SELECT ALL - 88 * CASE - 93 WHEN + 31 - ( + 95 ) + 78 * ( 8 ) * - 6 + COALESCE ( 98, - 93 + + 41 / - 99 ) THEN - 71 END + - + AVG ( DISTINCT + + 65 ) AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT + 99 * - 23 + - ( + 90 ) * - COUNT( * ) + - + COUNT( * )
----
-2188

skipif mysql # not compatible
query I rowsort label-43
SELECT + 99 * - 23 + - ( + 90 ) * - COUNT ( * ) + - + COUNT ( * )
----
-2188

query I rowsort
SELECT DISTINCT 88 + + 24 + - 91 + + + 42 * 94 + + 92 AS col0
----
4061

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-45
SELECT DISTINCT 0 * + - CAST( - 71 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT 0 * + - CAST ( - 71 AS INTEGER ) col1
----
0

query II rowsort
SELECT DISTINCT 90, 77 col1
----
90
77

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT SUM( + NULLIF ( + - ( 67 ), - 8 + + + 83 ) ) + - 32 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-47
SELECT SUM ( + NULLIF ( + - ( 67 ), - 8 + + + 83 ) ) + - 32 AS col0
----
-99

query I rowsort
SELECT ALL 87 - - 12 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-49
SELECT COUNT( DISTINCT 99 ) * - 72 * 93 * + CAST( + - 72 AS SIGNED ) AS col0, - COUNT( * ) AS col1
----
482112
-1

skipif mysql # not compatible
query II rowsort label-49
SELECT COUNT ( DISTINCT 99 ) * - 72 * 93 * + CAST ( + - 72 AS INTEGER ) AS col0, - COUNT ( * ) AS col1
----
482112
-1

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

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

query II rowsort
SELECT DISTINCT 58 AS col0, - 99
----
58
-99

query II rowsort
SELECT ALL 10 AS col2, + 27
----
10
27

query I rowsort
SELECT ( + - 83 ) + + + 44 * + 54 AS col2
----
2293

query I rowsort
SELECT ALL - 40 * + - 70 AS col0
----
2800

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

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

query I rowsort
SELECT 10 * + 88 col0
----
880

query I rowsort
SELECT ALL - ( - 37 ) col2
----
37

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-59
SELECT 68 / - CAST( NULL AS DECIMAL ) + + 99 AS col1, - 44
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-59
SELECT 68 / - CAST ( NULL AS REAL ) + + 99 AS col1, - 44
----
NULL
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT DISTINCT - COUNT( - - 54 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT - COUNT ( - - 54 ) AS col2
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-62
SELECT 45 DIV - 37 - + 21
----
-22

skipif mysql # not compatible
query I rowsort label-62
SELECT 45 / - 37 - + 21
----
-22

query I rowsort
SELECT - 84 * + - 95 AS col1
----
7980

query I rowsort
SELECT COALESCE ( - + 79, + 29 * + 20 ) + 6
----
-73

query I rowsort
SELECT NULLIF ( 35, - + 17 )
----
35

query I rowsort
SELECT ALL + - 85 + - + ( 36 ) - + + 22 AS col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT DISTINCT - 94 * - - 15 - - 16 + COUNT( * ) + + 16
----
-1377

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT - 94 * - - 15 - - 16 + COUNT ( * ) + + 16
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT DISTINCT + MIN( DISTINCT 0 ) + + 36 * - 75
----
-2700

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT + MIN ( DISTINCT 0 ) + + 36 * - 75
----
-2700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-69
SELECT DISTINCT - + CASE + 34 WHEN + + 53 * - MIN( - - 70 ) THEN 9 DIV - 99 WHEN + - 23 THEN - 28 ELSE + 13 * + 8 + 54 END AS col2
----
-158

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT - + CASE + 34 WHEN + + 53 * - MIN ( - - 70 ) THEN 9 / - 99 WHEN + - 23 THEN - 28 ELSE + 13 * + 8 + 54 END AS col2
----
-158

query I rowsort
SELECT ALL - 91 * 62
----
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT + 10 * + - 54 + - COUNT( * ) + 12 + + - 38 * + 1 AS col0
----
-567

skipif mysql # not compatible
query I rowsort label-71
SELECT + 10 * + - 54 + - COUNT ( * ) + 12 + + - 38 * + 1 AS col0
----
-567

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

skipif mysql # not compatible
query I rowsort label-72
SELECT - 84 - COUNT ( * ) + - COUNT ( * ) * + 80 AS col1
----
-165

query I rowsort
SELECT 72 + 56 - - - 57 AS col1
----
71

query I rowsort
SELECT ALL COALESCE ( 19, + - 75 ) - - - ( + CASE - 60 WHEN 47 THEN + 52 END ) AS col1
----
NULL

query II rowsort
SELECT - 37 AS col0, + 64 AS col0
----
-37
64

query I rowsort
SELECT DISTINCT + 16 - 12 AS col2
----
4

query I rowsort
SELECT DISTINCT 17 * 39
----
663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-78
SELECT CAST( NULL AS SIGNED ) + - NULLIF ( 54, + 42 ) + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-78
SELECT CAST ( NULL AS INTEGER ) + - NULLIF ( 54, + 42 ) + 56
----
NULL

query II rowsort
SELECT 45 col1, 81
----
45
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-80
SELECT - 48 AS col1, - CASE 79 WHEN - 5 THEN - CAST( + COUNT( * ) AS SIGNED ) / - 17 + - COUNT( * ) - - COUNT( * ) / NULLIF ( + 60, - 21 ) * - 80 WHEN - + 87 THEN NULLIF ( COUNT( * ), 74 ) END * + 58 * + 42 + - - 16
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-80
SELECT - 48 AS col1, - CASE 79 WHEN - 5 THEN - CAST ( + COUNT ( * ) AS INTEGER ) / - 17 + - COUNT ( * ) - - COUNT ( * ) / NULLIF ( + 60, - 21 ) * - 80 WHEN - + 87 THEN NULLIF ( COUNT ( * ), 74 ) END * + 58 * + 42 + - - 16
----
-48
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-81
SELECT COUNT( * ) + + COUNT( * ) * ( - 74 ) AS col1, 3 - + + 69 AS col0
----
-73
-66

skipif mysql # not compatible
query II rowsort label-81
SELECT COUNT ( * ) + + COUNT ( * ) * ( - 74 ) AS col1, 3 - + + 69 AS col0
----
-73
-66

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

skipif mysql # not compatible
query I rowsort label-82
SELECT 85 / + - 52
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT DISTINCT MAX( - 82 ) * + - NULLIF ( - - COUNT( * ), 53 )
----
82

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT MAX ( - 82 ) * + - NULLIF ( - - COUNT ( * ), 53 )
----
82

query II rowsort
SELECT ALL 5 AS col2, - 9 * 18
----
5
-162

query I rowsort
SELECT 30 + - 91 * - ( - - 98 ) + + 15
----
8963

query I rowsort
SELECT 20 * + 11 AS col1
----
220

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-89
SELECT ALL - 74 AS col0, COALESCE ( + 82, + + COUNT( * ) ) AS col2
----
-74
82

skipif mysql # not compatible
query II rowsort label-89
SELECT ALL - 74 AS col0, COALESCE ( + 82, + + COUNT ( * ) ) AS col2
----
-74
82

query II rowsort
SELECT - 40 AS col2, 97 col1
----
-40
97

query I rowsort
SELECT DISTINCT 33 * - 40 + 46 AS col2
----
-1274

onlyif mysql # aggregate syntax: 
query II rowsort label-92
SELECT + 13 AS col1, - 31 + COUNT( * ) AS col0
----
13
-30

skipif mysql # not compatible
query II rowsort label-92
SELECT + 13 AS col1, - 31 + COUNT ( * ) AS col0
----
13
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT ALL MAX( - 61 ) * + 67 + - 34 col2
----
-4121

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL MAX ( - 61 ) * + 67 + - 34 col2
----
-4121

query I rowsort
SELECT DISTINCT - + 20 * - 20 + 17 + + 99 * + 70 AS col1
----
7347

query II rowsort
SELECT + - 72 col0, - 97 AS col1
----
-72
-97

query I rowsort
SELECT + 32 + ( + 17 ) * + 72
----
1256

query I rowsort
SELECT - + 26 * - + 61 * 62
----
98332

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT ALL + + NULLIF ( - + COUNT( * ), 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL + + NULLIF ( - + COUNT ( * ), 25 )
----
-1

query I rowsort
SELECT DISTINCT + + 16 + + 54 + + - NULLIF ( + - 17, + 57 ) col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT ALL + 38 - - - ( - 79 ) + + ( ( + COUNT( * ) ) ) * + - 12 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL + 38 - - - ( - 79 ) + + ( ( + COUNT ( * ) ) ) * + - 12 AS col0
----
105

query II rowsort
SELECT DISTINCT + + 90, 59 * + - ( + NULLIF ( + 29, + - 69 ) ) AS col0
----
90
-1711

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL + COALESCE ( MIN( DISTINCT - 28 ), 90 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL + COALESCE ( MIN ( DISTINCT - 28 ), 90 ) AS col0
----
-28

query I rowsort
SELECT ALL NULLIF ( + - 26, + 32 ) * + 66 * 53 + - 94
----
-91042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-104
SELECT - CAST( NULL AS DECIMAL ) / + + COALESCE ( + - COUNT( * ), + ( NULLIF ( - 90, - CAST( SUM( + 54 ) AS SIGNED ) + - + CAST( NULL AS SIGNED ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-104
SELECT - CAST ( NULL AS REAL ) / + + COALESCE ( + - COUNT ( * ), + ( NULLIF ( - 90, - CAST ( SUM ( + 54 ) AS INTEGER ) + - + CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 30 - + + ( - 47 ) + - - 0 * 39 * - 40
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-106
SELECT + COALESCE ( - + 65, - - 54 + - 31 + + CAST( NULL AS SIGNED ) * - 4 * + + COUNT( * ) ) * + 99 * - CAST( NULL AS SIGNED ) - - CAST( - 40 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT + COALESCE ( - + 65, - - 54 + - 31 + + CAST ( NULL AS INTEGER ) * - 4 * + + COUNT ( * ) ) * + 99 * - CAST ( NULL AS INTEGER ) - - CAST ( - 40 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( 49 ) AS col1
----
49

query I rowsort
SELECT DISTINCT ( - 40 ) * - - 73 * + + 68 col1
----
-198560

query I rowsort
SELECT DISTINCT ( + 33 ) AS col0
----
33

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

query I rowsort
SELECT - 63 + + 87 * 41
----
3504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-112
SELECT - 56 + - CASE - 45 WHEN CAST( ( + 18 ) AS SIGNED ) / - 4 THEN NULL WHEN + + ( + CAST( - 48 AS SIGNED ) ) THEN + + CAST( - 45 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-112
SELECT - 56 + - CASE - 45 WHEN CAST ( ( + 18 ) AS INTEGER ) / - 4 THEN NULL WHEN + + ( + CAST ( - 48 AS INTEGER ) ) THEN + + CAST ( - 45 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT - COALESCE ( + COUNT( * ), COALESCE ( - 17, 63 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-113
SELECT - COALESCE ( + COUNT ( * ), COALESCE ( - 17, 63 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT + NULLIF ( + 13, + COUNT( * ) ) * - 76 + + 42
----
-946

skipif mysql # not compatible
query I rowsort label-114
SELECT + NULLIF ( + 13, + COUNT ( * ) ) * - 76 + + 42
----
-946

query I rowsort
SELECT + 71 + - - 74 * + ( + - 50 ) col2
----
-3629

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

skipif mysql # not compatible
query I rowsort label-116
SELECT + + 30 + - - 58 * - + COUNT ( * ) AS col2
----
-28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT + - 55 + + 41 * - MAX( - + 27 )
----
1052

skipif mysql # not compatible
query I rowsort label-118
SELECT + - 55 + + 41 * - MAX ( - + 27 )
----
1052

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT + MIN( 39 ) * COUNT( * ) * - + 21
----
-819

skipif mysql # not compatible
query I rowsort label-119
SELECT + MIN ( 39 ) * COUNT ( * ) * - + 21
----
-819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-120
SELECT - CASE + 28 WHEN CAST( + - 87 AS SIGNED ) THEN - 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-120
SELECT - CASE + 28 WHEN CAST ( + - 87 AS INTEGER ) THEN - 41 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT + - ( - COALESCE ( 40, - - MIN( ALL 38 ) ) )
----
40

skipif mysql # not compatible
query I rowsort label-122
SELECT + - ( - COALESCE ( 40, - - MIN ( ALL 38 ) ) )
----
40

query I rowsort
SELECT 12 * 47 * + 3 - - 26 - + 15 AS col1
----
1703

query I rowsort
SELECT DISTINCT - 24 * - 23 + + 50 - - ( - 49 ) col1
----
553

query I rowsort
SELECT ALL 71 * ( - 60 )
----
-4260

query II rowsort
SELECT + 82, - 88 + - 17 col2
----
82
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-127
SELECT + MAX( + + COALESCE ( + - 10, + - 30 * - + 80 ) ) + - COUNT( * ) + - + 90 * + 28 + - - 2 + + + 85 * - 39, ( 20 ) + - - 31 AS col1
----
-5844
51

skipif mysql # not compatible
query II rowsort label-127
SELECT + MAX ( + + COALESCE ( + - 10, + - 30 * - + 80 ) ) + - COUNT ( * ) + - + 90 * + 28 + - - 2 + + + 85 * - 39, ( 20 ) + - - 31 AS col1
----
-5844
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-128
SELECT + CAST( NULL AS SIGNED ) * 75 / - - NULLIF ( + MAX( + 35 ), + AVG ( + - 1 ) ) * - 3 + CAST( - 29 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-128
SELECT + CAST ( NULL AS INTEGER ) * 75 / - - NULLIF ( + MAX ( + 35 ), + AVG ( + - 1 ) ) * - 3 + CAST ( - 29 AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-129
SELECT + COUNT( ALL - - 35 ) * + 68 + - CAST( - 39 AS SIGNED ) * 87 AS col1
----
3461

skipif mysql # not compatible
query I rowsort label-129
SELECT + COUNT ( ALL - - 35 ) * + 68 + - CAST ( - 39 AS INTEGER ) * 87 AS col1
----
3461

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT - MAX( DISTINCT + + 87 ) - - COUNT( * ) * + 50 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-130
SELECT - MAX ( DISTINCT + + 87 ) - - COUNT ( * ) * + 50 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT DISTINCT MAX( ALL 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT MAX ( ALL 38 ) AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-132
SELECT ALL - CAST( + 66 AS SIGNED ) * - 43 * - 50 * + 89 AS col0
----
-12629100

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL - CAST ( + 66 AS INTEGER ) * - 43 * - 50 * + 89 AS col0
----
-12629100

query I rowsort
SELECT - 99 + + - 7 AS col0
----
-106

query I rowsort
SELECT ALL NULLIF ( + 1, + NULLIF ( + - CASE - 59 WHEN - 63 * + 20 + 76 * 97 THEN 14 ELSE NULL END, + 70 ) ) AS col1
----
1

query I rowsort
SELECT - 92 + - - 64
----
-28

query I rowsort
SELECT ALL ( + CASE + - 19 WHEN 93 / + 1 THEN - + ( 46 ) * 38 + + 3 WHEN + 7 * + ( + + 77 ) THEN NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL - COUNT( DISTINCT - + 52 ) * - 66 + + 57 * - - 24
----
1434

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL - COUNT ( DISTINCT - + 52 ) * - 66 + + 57 * - - 24
----
1434

onlyif mysql # DIV for integer division: 
query I rowsort label-138
SELECT - 63 DIV + 63 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-138
SELECT - 63 / + 63 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-139
SELECT - 69 + 39 + COUNT( * ) * + - MIN( + 43 ) + + CAST( NULL AS SIGNED ) * + 22 - - 9 + + 88 * + + 12 * + 96 * - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT - 69 + 39 + COUNT ( * ) * + - MIN ( + 43 ) + + CAST ( NULL AS INTEGER ) * + 22 - - 9 + + 88 * + + 12 * + 96 * - - 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT - COUNT( * ) + - + 32 - ( + 24 ) + - + 75
----
-132

skipif mysql # not compatible
query I rowsort label-140
SELECT - COUNT ( * ) + - + 32 - ( + 24 ) + - + 75
----
-132

query I rowsort
SELECT ALL + NULLIF ( - + 6, + - 90 + + 34 ) + + 66 * - 35 * + + 12 AS col2
----
-27726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-142
SELECT 16 AS col2, + 63 * + 48 * + CASE 63 WHEN + 48 / - + NULLIF ( + + COALESCE ( CASE + + NULLIF ( + 39, - 69 ) WHEN - - NULLIF ( + CASE + 58 WHEN - 4 * - 22 + COUNT( * ) THEN NULL ELSE - 87 END, + 36 + + ( 2 ) * 99 * + + 42 - - + COUNT( * ) ) THEN - COUNT( * ) WHEN - 54 + - MAX( + 13 ) THEN NULL END, + 66 + + 78 + + 64 + + 38 * + 37 ), - SUM( - 81 ) - - 4 + + COUNT( * ) ) * + MIN( ALL + ( 73 ) ) THEN - 99 WHEN + CAST( NULL AS SIGNED ) + - 41 THEN + 72 ELSE - 37 END + 55 * 22 AS col2
----
16
-110678

skipif mysql # not compatible
query II rowsort label-142
SELECT 16 AS col2, + 63 * + 48 * + CASE 63 WHEN + 48 / - + NULLIF ( + + COALESCE ( CASE + + NULLIF ( + 39, - 69 ) WHEN - - NULLIF ( + CASE + 58 WHEN - 4 * - 22 + COUNT ( * ) THEN NULL ELSE - 87 END, + 36 + + ( 2 ) * 99 * + + 42 - - + COUNT ( * ) ) THEN - COUNT ( * ) WHEN - 54 + - MAX ( + 13 ) THEN NULL END, + 66 + + 78 + + 64 + + 38 * + 37 ), - SUM ( - 81 ) - - 4 + + COUNT ( * ) ) * + MIN ( ALL + ( 73 ) ) THEN - 99 WHEN + CAST ( NULL AS INTEGER ) + - 41 THEN + 72 ELSE - 37 END + 55 * 22 AS col2
----
16
-110678

query I rowsort
SELECT + 21 + 76
----
97

query I rowsort
SELECT - 33 * 39 AS col0
----
-1287

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

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

query I rowsort
SELECT ALL - 65 + - 2
----
-67

query II rowsort
SELECT ALL + 66 col1, - 56
----
66
-56

query II rowsort
SELECT + 58 AS col2, - 89 AS col2
----
58
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-149
SELECT + - 99, - 53 + - + COUNT( * ) * + 32 AS col0
----
-99
-85

skipif mysql # not compatible
query II rowsort label-149
SELECT + - 99, - 53 + - + COUNT ( * ) * + 32 AS col0
----
-99
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-150
SELECT ALL - 42 col2, COALESCE ( - - 13, + 29, COUNT( * ) * 55 - + 30 ) AS col0
----
-42
13

skipif mysql # not compatible
query II rowsort label-150
SELECT ALL - 42 col2, COALESCE ( - - 13, + 29, COUNT ( * ) * 55 - + 30 ) AS col0
----
-42
13

query I rowsort
SELECT ALL 88 - 81
----
7

query I rowsort
SELECT 98 * + 86 - + 38 - + 57
----
8333

query I rowsort
SELECT + 27 * - + 43 * - 90
----
104490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-154
SELECT ( - CAST( - CASE 84 WHEN + CAST( - + CAST( + + 59 AS SIGNED ) AS SIGNED ) THEN + - COUNT( + 60 ) + - 32 * - 91 END AS SIGNED ) ) + + 12 + - 66 + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-154
SELECT ( - CAST ( - CASE 84 WHEN + CAST ( - + CAST ( + + 59 AS INTEGER ) AS INTEGER ) THEN + - COUNT ( + 60 ) + - 32 * - 91 END AS INTEGER ) ) + + 12 + - 66 + + 28
----
NULL

query I rowsort
SELECT DISTINCT - 60 * + 13
----
-780

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-156
SELECT + COALESCE ( ( - ( - NULLIF ( - CAST( NULL AS SIGNED ), 87 ) ) ), 52 * - - 74, 85 + + - AVG ( ALL - + ( 7 ) ) DIV - 25 * + 38 ) AS col1
----
3848

skipif mysql # not compatible
query I rowsort label-156
SELECT + COALESCE ( ( - ( - NULLIF ( - CAST ( NULL AS INTEGER ), 87 ) ) ), 52 * - - 74, 85 + + - AVG ( ALL - + ( 7 ) ) / - 25 * + 38 ) AS col1
----
3848

query I rowsort
SELECT + 94 * - 75 AS col0
----
-7050

query I rowsort
SELECT 1 + + 25 AS col2
----
26

query II rowsort
SELECT - 40 * + - 83 - + 82 * + 85 col2, + 78
----
-3650
78

query I rowsort
SELECT - 60 * - 76 col0
----
4560

query I rowsort
SELECT 47 + 95
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT ALL 23 DIV - - 44
----
0

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL 23 / - - 44
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-163
SELECT 88 DIV - COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-163
SELECT 88 / - COUNT ( * ) AS col1
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-164
SELECT COUNT( * ) DIV - 32 AS col2, 46 + 95 AS col2
----
0
141

skipif mysql # not compatible
query II rowsort label-164
SELECT COUNT ( * ) / - 32 AS col2, 46 + 95 AS col2
----
0
141

query I rowsort
SELECT 94 * - 10 AS col0
----
-940

onlyif mysql # aggregate syntax: 
query II rowsort label-166
SELECT 3 * + ( + + 24 ) + 2, + MAX( DISTINCT + 48 ) * - 98 AS col2
----
74
-4704

skipif mysql # not compatible
query II rowsort label-166
SELECT 3 * + ( + + 24 ) + 2, + MAX ( DISTINCT + 48 ) * - 98 AS col2
----
74
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT DISTINCT 58 * - - 43 * - COUNT( * ) AS col0
----
-2494

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT 58 * - - 43 * - COUNT ( * ) AS col0
----
-2494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-168
SELECT ( - + CAST( ( - - 21 ) AS SIGNED ) ) * + CASE + 3 WHEN + 19 THEN + - AVG ( + 89 ) WHEN + 13 + + NULLIF ( + 69, + 53 + + 42 ) THEN NULL END + 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT ( - + CAST ( ( - - 21 ) AS INTEGER ) ) * + CASE + 3 WHEN + 19 THEN + - AVG ( + 89 ) WHEN + 13 + + NULLIF ( + 69, + 53 + + 42 ) THEN NULL END + 67 col2
----
NULL

query I rowsort
SELECT DISTINCT + CASE - + 33 WHEN + + CASE + 20 WHEN + ( 2 ) THEN + - 39 * - - 26 * + + 35 WHEN 82 THEN + 48 ELSE NULL END THEN - 27 * + + 63 ELSE - 74 END + - 66 col1
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT ALL - 40 + - COUNT( ALL - ( + 71 ) ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL - 40 + - COUNT ( ALL - ( + 71 ) ) col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-171
SELECT DISTINCT 16 + - ( + COUNT( * ) ) DIV - - 71
----
16

skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT 16 + - ( + COUNT ( * ) ) / - - 71
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT 48 * - CASE + + 66 WHEN - 40 THEN NULL ELSE - NULLIF ( + - COUNT( * ), - COUNT( * ) + - 82 * - MIN( DISTINCT - 53 ) ) END AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-172
SELECT 48 * - CASE + + 66 WHEN - 40 THEN NULL ELSE - NULLIF ( + - COUNT ( * ), - COUNT ( * ) + - 82 * - MIN ( DISTINCT - 53 ) ) END AS col2
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-173
SELECT 41 * - + 95 - - 62 - + + 59 * - CAST( NULL AS DECIMAL ) - 30 + - 10 * 98 * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-173
SELECT 41 * - + 95 - - 62 - + + 59 * - CAST ( NULL AS REAL ) - 30 + - 10 * 98 * - 5
----
NULL

query II rowsort
SELECT DISTINCT - 32 * 92 AS col2, 10 AS col0
----
-2944
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-175
SELECT ALL + 68 + + 94 + + 97 + - 47 + + 90 * + 56 * + 68 DIV - - COUNT( * ) AS col2
----
342932

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL + 68 + + 94 + + 97 + - 47 + + 90 * + 56 * + 68 / - - COUNT ( * ) AS col2
----
342932

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT 78 * 21 + 9 * MIN( DISTINCT - - 39 ) * - - NULLIF ( + + 32, 3 )
----
12870

skipif mysql # not compatible
query I rowsort label-176
SELECT 78 * 21 + 9 * MIN ( DISTINCT - - 39 ) * - - NULLIF ( + + 32, 3 )
----
12870

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

query I rowsort
SELECT + 42 + - 59
----
-17

query I rowsort
SELECT 14 * - 42
----
-588

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

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT + 69 + - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-181
SELECT + 69 + - COUNT ( * )
----
68

query I rowsort
SELECT DISTINCT + + 42 - + - 31 AS col0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-183
SELECT ALL - SUM( DISTINCT - 36 ), - COALESCE ( - + 13, + 38 ) col2
----
36
13

skipif mysql # not compatible
query II rowsort label-183
SELECT ALL - SUM ( DISTINCT - 36 ), - COALESCE ( - + 13, + 38 ) col2
----
36
13

query I rowsort
SELECT 85 + 70
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT + 58 * COUNT( * ) * - - 30 AS col0
----
1740

skipif mysql # not compatible
query I rowsort label-185
SELECT + 58 * COUNT ( * ) * - - 30 AS col0
----
1740

query I rowsort
SELECT 62 * 89 AS col2
----
5518

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT COUNT( * ) * - 8 * 87 + + + 49
----
-647

skipif mysql # not compatible
query I rowsort label-187
SELECT COUNT ( * ) * - 8 * 87 + + + 49
----
-647

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT COUNT( - - NULLIF ( - 65, + 71 ) )
----
1

skipif mysql # not compatible
query I rowsort label-188
SELECT COUNT ( - - NULLIF ( - 65, + 71 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT ALL 17 * - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL 17 * - COUNT ( * )
----
-17

query I rowsort
SELECT 4 * + 34 AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT ALL - 8 + + - 26 + + MAX( - - 66 ) col2
----
32

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL - 8 + + - 26 + + MAX ( - - 66 ) col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-192
SELECT DISTINCT - 99 * + COUNT( - 98 ) AS col2, + NULLIF ( - 34, + 36 * + 76 * + 75 * 75 + + ( - 88 ) + - 98 + + - 14 + + COUNT( * ) * - 95 + - 20 ) * + 78
----
-99
-2652

skipif mysql # not compatible
query II rowsort label-192
SELECT DISTINCT - 99 * + COUNT ( - 98 ) AS col2, + NULLIF ( - 34, + 36 * + 76 * + 75 * 75 + + ( - 88 ) + - 98 + + - 14 + + COUNT ( * ) * - 95 + - 20 ) * + 78
----
-99
-2652

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-194
SELECT NULLIF ( + 47, + 55 * - 26 * + ( - 34 ) * + CAST( - + AVG ( DISTINCT - 43 ) AS SIGNED ) + + 63 ) - + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-194
SELECT NULLIF ( + 47, + 55 * - 26 * + ( - 34 ) * + CAST ( - + AVG ( DISTINCT - 43 ) AS INTEGER ) + + 63 ) - + + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-195
SELECT ALL - CASE + ( + 15 ) WHEN MIN( - - 27 ) + - - 6 - + - CASE - COUNT( * ) WHEN - 79 THEN 63 * 64 * + + COUNT( * ) + + - COUNT( * ) END + + + 49 THEN + 63 END + MIN( DISTINCT + + 21 ) + - 51, - 89 AS col0
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-195
SELECT ALL - CASE + ( + 15 ) WHEN MIN ( - - 27 ) + - - 6 - + - CASE - COUNT ( * ) WHEN - 79 THEN 63 * 64 * + + COUNT ( * ) + + - COUNT ( * ) END + + + 49 THEN + 63 END + MIN ( DISTINCT + + 21 ) + - 51, - 89 AS col0
----
NULL
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-196
SELECT 8 * + - CAST( NULL AS SIGNED ) / + 92 - + + ( + + NULLIF ( CAST( NULL AS SIGNED ), + 3 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-196
SELECT 8 * + - CAST ( NULL AS INTEGER ) / + 92 - + + ( + + NULLIF ( CAST ( NULL AS INTEGER ), + 3 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT ALL 75 + + 45
----
120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT DISTINCT 10 + NULLIF ( 34, + 46 + - + 67 + SUM( ALL 30 ) * + + 39 + + 15 * - 58 ) + - 16 * + 12 / - 84 * + CASE - 32 WHEN - 15 - - 71 THEN - 39 * - - 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT 10 + NULLIF ( 34, + 46 + - + 67 + SUM ( ALL 30 ) * + + 39 + + 15 * - 58 ) + - 16 * + 12 / - 84 * + CASE - 32 WHEN - 15 - - 71 THEN - 39 * - - 41 END
----
NULL

query II rowsort
SELECT 45 * 30 + 8 AS col0, 16 AS col0
----
1358
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-202
SELECT ALL 4 * + COALESCE ( + 49, 33 * + CAST( - 93 AS SIGNED ) * - 47, - - CASE 10 WHEN + COALESCE ( + COALESCE ( + + 26, + ( + 11 ), 43 - + 93, + COUNT( * ) ), - - AVG ( ALL + - 54 ) * + 42 ) THEN - 70 ELSE NULL END ) * - - 32 AS col2
----
6272

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL 4 * + COALESCE ( + 49, 33 * + CAST ( - 93 AS INTEGER ) * - 47, - - CASE 10 WHEN + COALESCE ( + COALESCE ( + + 26, + ( + 11 ), 43 - + 93, + COUNT ( * ) ), - - AVG ( ALL + - 54 ) * + 42 ) THEN - 70 ELSE NULL END ) * - - 32 AS col2
----
6272

query I rowsort
SELECT ALL NULLIF ( 14, - 30 / + 72 ) + - 27 - - 29
----
16

query I rowsort
SELECT ALL 97 - + 22 - + 31 AS col2
----
44

query I rowsort
SELECT 54 + + 78 AS col1
----
132

query I rowsort
SELECT ALL 9 * + 7
----
63

query I rowsort
SELECT - + 43 + - + 67
----
-110

query I rowsort
SELECT ALL + 37 - - 91 AS col0
----
128

query I rowsort
SELECT + - 31 * - 12
----
372

query I rowsort
SELECT - 82 * 39 AS col0
----
-3198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-211
SELECT - - CASE WHEN 75 NOT IN ( + - CAST( NULL AS SIGNED ) / + 95, + 16 + + 69 + + + 80 + + 95 - - + CASE + 86 WHEN - 55 THEN COUNT( * ) + - + 70 + - - 23 * + MAX( DISTINCT - 37 ) / + 89 * - - 80 * 65 WHEN COUNT( * ) * + CAST( - 56 AS SIGNED ) + - + 54 * + + 3 * - 60 + 91 THEN NULL ELSE - 68 END * 16 ) THEN + 71 + + 22 + 34 * - COUNT( * ) ELSE + ( - - 19 ) END + - 23
----
-4

skipif mysql # not compatible
query I rowsort label-211
SELECT - - CASE WHEN 75 NOT IN ( + - CAST ( NULL AS INTEGER ) / + 95, + 16 + + 69 + + + 80 + + 95 - - + CASE + 86 WHEN - 55 THEN COUNT ( * ) + - + 70 + - - 23 * + MAX ( DISTINCT - 37 ) / + 89 * - - 80 * 65 WHEN COUNT ( * ) * + CAST ( - 56 AS INTEGER ) + - + 54 * + + 3 * - 60 + 91 THEN NULL ELSE - 68 END * 16 ) THEN + 71 + + 22 + 34 * - COUNT ( * ) ELSE + ( - - 19 ) END + - 23
----
-4

query I rowsort
SELECT DISTINCT + 4 - - 93 + + 68 - + + ( + 90 )
----
75

query I rowsort
SELECT - + 93 * + + 7
----
-651

query I rowsort
SELECT ALL 9 - + 62
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT + 49 * - COUNT( * ) * - 95 * 7
----
32585

skipif mysql # not compatible
query I rowsort label-215
SELECT + 49 * - COUNT ( * ) * - 95 * 7
----
32585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-216
SELECT DISTINCT - CAST( + + 4 AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT - CAST ( + + 4 AS INTEGER ) AS col0
----
-4

query I rowsort
SELECT ALL + 21 * - - 12 AS col1
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-218
SELECT - - 16 DIV - 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-218
SELECT - - 16 / - 21 AS col1
----
0

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

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

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

query I rowsort
SELECT - - 66 * + - ( + ( - 93 ) ) col0
----
6138

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT - 12 DIV - + 69
----
0

skipif mysql # not compatible
query I rowsort label-222
SELECT - 12 / - + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT 80 * + 38 * - 64 + - 30 + 11 + 59 - + COUNT( ( + 26 ) )
----
-194521

skipif mysql # not compatible
query I rowsort label-223
SELECT 80 * + 38 * - 64 + - 30 + 11 + 59 - + COUNT ( ( + 26 ) )
----
-194521

query I rowsort
SELECT ALL - 69 * - ( - 32 ) + - - 85
----
-2123

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT DISTINCT - 23 * - + COUNT( * ) + + - 6 * 2
----
11

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT - 23 * - + COUNT ( * ) + + - 6 * 2
----
11

query I rowsort
SELECT ALL 61 * - 41 + 62 * - - 22
----
-1137

query I rowsort
SELECT COALESCE ( + 72, - 61, - 6 - 66 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT 22 * + + 69 * - CASE 13 WHEN - + COUNT( * ) THEN + - 45 END - + + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-228
SELECT 22 * + + 69 * - CASE 13 WHEN - + COUNT ( * ) THEN + - 45 END - + + 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-229
SELECT ALL + 97 * 48 + NULLIF ( 43, COUNT( * ) ) * - 58 AS col0, 31 AS col1
----
2162
31

skipif mysql # not compatible
query II rowsort label-229
SELECT ALL + 97 * 48 + NULLIF ( 43, COUNT ( * ) ) * - 58 AS col0, 31 AS col1
----
2162
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT + MIN( + 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-231
SELECT + MIN ( + 25 ) AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-232
SELECT NULLIF ( 1, - + CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-232
SELECT NULLIF ( 1, - + CAST ( NULL AS INTEGER ) )
----
1

query I rowsort
SELECT - 16 * 40
----
-640

query I rowsort
SELECT ALL + 50 * - 77 AS col0
----
-3850

query I rowsort
SELECT DISTINCT 63 * + 56 * + 78 AS col2
----
275184

query I rowsort
SELECT ALL 66 * + - 97 - - 17
----
-6385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-237
SELECT ALL + CAST( + 26 AS SIGNED ) * - COALESCE ( - 53, 65 - + 50 * + 58 * + 36, - COUNT( * ) )
----
1378

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL + CAST ( + 26 AS INTEGER ) * - COALESCE ( - 53, 65 - + 50 * + 58 * + 36, - COUNT ( * ) )
----
1378

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-240
SELECT - SUM( ALL + + ( - 1 ) ) - 95 AS col1, + 8
----
-94
8

skipif mysql # not compatible
query II rowsort label-240
SELECT - SUM ( ALL + + ( - 1 ) ) - 95 AS col1, + 8
----
-94
8

query II rowsort
SELECT - 93, + 59 AS col0
----
-93
59

onlyif mysql # aggregate syntax: 
query II rowsort label-242
SELECT ALL - 94 col0, 24 * - COUNT( * )
----
-94
-24

skipif mysql # not compatible
query II rowsort label-242
SELECT ALL - 94 col0, 24 * - COUNT ( * )
----
-94
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-243
SELECT ALL 54 DIV ( - + 4 ) col2
----
-13

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL 54 / ( - + 4 ) col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-244
SELECT ALL 77 AS col0, + CASE - - 76 WHEN + + 50 - - 24 * + 69 THEN COUNT( * ) WHEN - + 29 THEN NULL END AS col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-244
SELECT ALL 77 AS col0, + CASE - - 76 WHEN + + 50 - - 24 * + 69 THEN COUNT ( * ) WHEN - + 29 THEN NULL END AS col2
----
77
NULL

query II rowsort
SELECT DISTINCT + 12 AS col0, + 5 * 91
----
12
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-246
SELECT DISTINCT - CASE SUM( DISTINCT - - ( - 17 ) ) WHEN - + COUNT( * ) THEN NULL ELSE - 2 * + CAST( NULL AS SIGNED ) END * 16 / + 12 * 30 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT - CASE SUM ( DISTINCT - - ( - 17 ) ) WHEN - + COUNT ( * ) THEN NULL ELSE - 2 * + CAST ( NULL AS INTEGER ) END * 16 / + 12 * 30 col2
----
NULL

query I rowsort
SELECT ALL - ( 87 ) * + 97 + 68
----
-8371

query II rowsort
SELECT + + 20 * - 32 col1, - 71 AS col2
----
-640
-71

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

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL SUM ( - 28 )
----
-28

query I rowsort
SELECT + - NULLIF ( + + 71, + 68 ) - + 52 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT ALL - 81 * MAX( + 77 ) AS col2
----
-6237

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL - 81 * MAX ( + 77 ) AS col2
----
-6237

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

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT + + 70 - COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-253
SELECT + + 70 - COUNT ( * ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-254
SELECT + 13 * - CAST( - CASE + COUNT( * ) WHEN + 98 + - CAST( NULL AS SIGNED ) THEN - - 5 * + + MIN( 48 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-254
SELECT + 13 * - CAST ( - CASE + COUNT ( * ) WHEN + 98 + - CAST ( NULL AS INTEGER ) THEN - - 5 * + + MIN ( 48 ) END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-255
SELECT + - ( + COALESCE ( + - 66, + 7 - - - CASE - CASE - + COUNT( * ) WHEN - - 69 THEN + + CAST( + + ( - 14 ) AS SIGNED ) END WHEN + AVG ( ALL 75 ) THEN + 29 * + ( + - 65 ) END, - + ( + 38 ) DIV - 30 ) ) - 85 + - - 3 * - 87 * 6 AS col0
----
-1585

skipif mysql # not compatible
query I rowsort label-255
SELECT + - ( + COALESCE ( + - 66, + 7 - - - CASE - CASE - + COUNT ( * ) WHEN - - 69 THEN + + CAST ( + + ( - 14 ) AS INTEGER ) END WHEN + AVG ( ALL 75 ) THEN + 29 * + ( + - 65 ) END, - + ( + 38 ) / - 30 ) ) - 85 + - - 3 * - 87 * 6 AS col0
----
-1585

query I rowsort
SELECT DISTINCT - 31 * - - ( + - 92 ) col2
----
2852

query I rowsort
SELECT - 1 * - 97 col1
----
97

query I rowsort
SELECT + 40 + 12 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL COUNT( DISTINCT 58 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL COUNT ( DISTINCT 58 ) col0
----
1

query I rowsort
SELECT + - 93 * 89 AS col2
----
-8277

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-261
SELECT DISTINCT - 87 + - - SUM( + 60 ) DIV + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT - 87 + - - SUM ( + 60 ) / + COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-262
SELECT DISTINCT + 7, 28 * 1 + + - COUNT( * ) + NULLIF ( - 92, + SUM( - + 12 ) ) * + - COUNT( + - ( 49 ) ) AS col0
----
7
119

skipif mysql # not compatible
query II rowsort label-262
SELECT DISTINCT + 7, 28 * 1 + + - COUNT ( * ) + NULLIF ( - 92, + SUM ( - + 12 ) ) * + - COUNT ( + - ( 49 ) ) AS col0
----
7
119

query I rowsort
SELECT + ( + 33 ) + + - 35
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-264
SELECT ALL + + 37 DIV + COUNT( ALL - 43 ) + + - 52 * + 41 AS col1
----
-2095

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL + + 37 / + COUNT ( ALL - 43 ) + + - 52 * + 41 AS col1
----
-2095

query I rowsort
SELECT DISTINCT + 35 * - 57
----
-1995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-266
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0, 47 AS col2
----
1
47

skipif mysql # not compatible
query II rowsort label-266
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0, 47 AS col2
----
1
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-267
SELECT 27 * + + COUNT( * ) + - 45 DIV - 72
----
27

skipif mysql # not compatible
query I rowsort label-267
SELECT 27 * + + COUNT ( * ) + - 45 / - 72
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-268
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + COUNT( * ) / - 21 * ( 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT + CAST ( NULL AS REAL ) * + COUNT ( * ) / - 21 * ( 84 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-269
SELECT ALL + ( - COUNT( * ) ), ( 98 ) * + 20 * + 29 + - CAST( - 37 AS SIGNED ) AS col0
----
-1
56877

skipif mysql # not compatible
query II rowsort label-269
SELECT ALL + ( - COUNT ( * ) ), ( 98 ) * + 20 * + 29 + - CAST ( - 37 AS INTEGER ) AS col0
----
-1
56877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-270
SELECT DISTINCT 57 * - ( - CAST( + 30 AS SIGNED ) )
----
1710

skipif mysql # not compatible
query I rowsort label-270
SELECT DISTINCT 57 * - ( - CAST ( + 30 AS INTEGER ) )
----
1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-271
SELECT ALL 94 DIV - 10 - - + MAX( ALL 85 ) * - 10 - - - 91 col2
----
-950

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL 94 / - 10 - - + MAX ( ALL 85 ) * - 10 - - - 91 col2
----
-950

onlyif mysql # aggregate syntax: 
query II rowsort label-272
SELECT DISTINCT + MIN( DISTINCT + 4 ), - 4 AS col0
----
4
-4

skipif mysql # not compatible
query II rowsort label-272
SELECT DISTINCT + MIN ( DISTINCT + 4 ), - 4 AS col0
----
4
-4

query I rowsort
SELECT 58 * + + 98 AS col1
----
5684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-274
SELECT ( + 10 ) + CAST( NULL AS SIGNED ) * + - 22 * - COALESCE ( + - 17, 54 - + 1, - 0 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT ( + 10 ) + CAST ( NULL AS INTEGER ) * + - 22 * - COALESCE ( + - 17, 54 - + 1, - 0 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT 73 + 68 + ( 70 ) * + + 13 * + COALESCE ( - - 31, - 80 + - - 49 * 56, - - 35 * - COUNT( * ) + + + 63 ) AS col0
----
28351

skipif mysql # not compatible
query I rowsort label-275
SELECT 73 + 68 + ( 70 ) * + + 13 * + COALESCE ( - - 31, - 80 + - - 49 * 56, - - 35 * - COUNT ( * ) + + + 63 ) AS col0
----
28351

query II rowsort
SELECT 44 + ( + + 56 ), - 26 AS col2
----
100
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-277
SELECT MAX( ALL - 94 ) * 78 DIV - 99 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-277
SELECT MAX ( ALL - 94 ) * 78 / - 99 AS col1
----
74

query II rowsort
SELECT DISTINCT + 43 * 17 AS col0, 22 + - 93 + 12 * - 1 * 71 AS col2
----
731
-923

onlyif mysql # aggregate syntax: 
query II rowsort label-279
SELECT DISTINCT + + 23 * - + 35 AS col2, COUNT( * ) + - - 99
----
-805
100

skipif mysql # not compatible
query II rowsort label-279
SELECT DISTINCT + + 23 * - + 35 AS col2, COUNT ( * ) + - - 99
----
-805
100

query I rowsort
SELECT 91 + + + 95 * + 86 col0
----
8261

query I rowsort
SELECT - 71 + + - 63 + 99 * 75
----
7291

query I rowsort
SELECT DISTINCT - 2 + - ( + - 4 ) AS col0
----
2

query I rowsort
SELECT 71 * ( + CASE WHEN 81 IS NULL THEN + 64 + + - 52 END ) + - 72
----
NULL

query I rowsort
SELECT ALL + + 93 + + 81 col2
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-285
SELECT DISTINCT - 0 DIV 81 * COUNT( * ), - 6 col0
----
0
-6

skipif mysql # not compatible
query II rowsort label-285
SELECT DISTINCT - 0 / 81 * COUNT ( * ), - 6 col0
----
0
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-286
SELECT DISTINCT + 42 + + 42 + + 10 AS col1, + CAST( NULL AS SIGNED )
----
94
NULL

skipif mysql # not compatible
query II rowsort label-286
SELECT DISTINCT + 42 + + 42 + + 10 AS col1, + CAST ( NULL AS INTEGER )
----
94
NULL

query I rowsort
SELECT ALL + CASE - 52 WHEN + 49 - 91 - 25 * - 55 THEN + 5 END + + + 27
----
NULL

query I rowsort
SELECT ALL + 9 + - 23 AS col0
----
-14

query II rowsort
SELECT DISTINCT - 50 + + + 17 AS col2, ( - 25 ) - + + 76
----
-33
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT CAST( NULL AS SIGNED ) * 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT CAST ( NULL AS INTEGER ) * 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT NULLIF ( 93, + 54 * + 48 ) * COUNT( * ) * - 65
----
-6045

skipif mysql # not compatible
query I rowsort label-291
SELECT NULLIF ( 93, + 54 * + 48 ) * COUNT ( * ) * - 65
----
-6045

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT 59 * + CASE - ( + CASE - 89 WHEN - 16 THEN NULL ELSE - + COUNT( * ) END ) WHEN SUM( + 95 ) + - 9 THEN NULL WHEN + + 69 THEN - MAX( + 18 ) / + - 94 END - + - 4 - - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-292
SELECT 59 * + CASE - ( + CASE - 89 WHEN - 16 THEN NULL ELSE - + COUNT ( * ) END ) WHEN SUM ( + 95 ) + - 9 THEN NULL WHEN + + 69 THEN - MAX ( + 18 ) / + - 94 END - + - 4 - - 35
----
NULL

query I rowsort
SELECT ALL ( 81 ) * 51 col1
----
4131

onlyif mysql # DIV for integer division: 
query I rowsort label-294
SELECT DISTINCT - 5 DIV - - 14
----
0

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT - 5 / - - 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT DISTINCT COALESCE ( - 96, - 76, - + COALESCE ( + + 23, + 30 * + - ( 75 ) - COUNT( * ) + - 63 ) ) - - 14
----
-82

skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT COALESCE ( - 96, - 76, - + COALESCE ( + + 23, + 30 * + - ( 75 ) - COUNT ( * ) + - 63 ) ) - - 14
----
-82

query I rowsort
SELECT 29 * + 35
----
1015

onlyif mysql # aggregate syntax: 
query II rowsort label-297
SELECT 64 + - - 79 * + 46, - COUNT( * ) - + 68 AS col1
----
3698
-69

skipif mysql # not compatible
query II rowsort label-297
SELECT 64 + - - 79 * + 46, - COUNT ( * ) - + 68 AS col1
----
3698
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT ALL 86 DIV - 47 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL 86 / - 47 AS col0
----
-1

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

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

query I rowsort
SELECT 83 * 36
----
2988

query I rowsort
SELECT ALL - 87 * - - 24
----
-2088

query I rowsort
SELECT 93 * + 27 col1
----
2511

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT ALL - NULLIF ( - - 5, + 95 * - - 58 + + MIN( + + 66 ) + + + 45 )
----
-5

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL - NULLIF ( - - 5, + 95 * - - 58 + + MIN ( + + 66 ) + + + 45 )
----
-5

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

skipif mysql # not compatible
query I rowsort label-304
SELECT - ( - COUNT ( * ) ) * + 21 + 67 AS col2
----
88

query I rowsort
SELECT ALL 89 + + 32
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT DISTINCT - COUNT( + 39 ) + + 34 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT - COUNT ( + 39 ) + + 34 AS col2
----
33

query I rowsort
SELECT 16 + + - 14 + 83
----
85

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT - 86 * + + 4 + + 98 + + COUNT( - - 18 )
----
-245

skipif mysql # not compatible
query I rowsort label-310
SELECT - 86 * + + 4 + + 98 + + COUNT ( - - 18 )
----
-245

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT + + 99 * + 83 + + SUM( 40 ) - - COUNT( * ) + + - 79 + 13 * + 23 * - MIN( ALL + 47 ) col1
----
-5874

skipif mysql # not compatible
query I rowsort label-311
SELECT + + 99 * + 83 + + SUM ( 40 ) - - COUNT ( * ) + + - 79 + 13 * + 23 * - MIN ( ALL + 47 ) col1
----
-5874

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT - MIN( DISTINCT + ( 85 ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-312
SELECT - MIN ( DISTINCT + ( 85 ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT + COUNT( * ) - - - 46 * 20
----
-919

skipif mysql # not compatible
query I rowsort label-313
SELECT + COUNT ( * ) - - - 46 * 20
----
-919

query II rowsort
SELECT ALL + 98 AS col2, ( - + 57 ) col2
----
98
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT DISTINCT NULLIF ( - 27, 15 - 24 + - 15 - ( + MAX( + 11 ) ) * + 45 * 97 )
----
-27

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT NULLIF ( - 27, 15 - 24 + - 15 - ( + MAX ( + 11 ) ) * + 45 * 97 )
----
-27

query I rowsort
SELECT ALL - + 53 * 52
----
-2756

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT 54 - 85 + + - 54 * + ( - - 32 ) * + 8 * + SUM( + 43 )
----
-594463

skipif mysql # not compatible
query I rowsort label-317
SELECT 54 - 85 + + - 54 * + ( - - 32 ) * + 8 * + SUM ( + 43 )
----
-594463

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-319
SELECT 13 * + 3 DIV - 55 * - 14
----
0

skipif mysql # not compatible
query I rowsort label-319
SELECT 13 * + 3 / - 55 * - 14
----
0

query I rowsort
SELECT 49 * + 96
----
4704

query I rowsort
SELECT ALL COALESCE ( + - 36, + 25 * 85 + - + 35 ) AS col1
----
-36

query I rowsort
SELECT 32 + + 83 * + + 26
----
2190

query I rowsort
SELECT ALL 5 * - - ( + 98 )
----
490

query I rowsort
SELECT 39 * - ( - 90 ) AS col0
----
3510

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

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL - 18 / - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT DISTINCT - COUNT( * ) * 69 - + 59 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT - COUNT ( * ) * 69 - + 59 AS col2
----
-128

query I rowsort
SELECT - 75 + + 13 * 97 AS col0
----
1186

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT + SUM( ALL + - 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-328
SELECT + SUM ( ALL + - 99 ) AS col1
----
-99

query I rowsort
SELECT + 39 + - + 90
----
-51

query I rowsort
SELECT ALL 45 * 49 * + + 20 AS col0
----
44100

onlyif mysql # aggregate syntax: 
query II rowsort label-331
SELECT - 51 * + - CASE - 19 WHEN + 21 + + 74 + - 57 THEN + COUNT( * ) END, - 61 col0
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-331
SELECT - 51 * + - CASE - 19 WHEN + 21 + + 74 + - 57 THEN + COUNT ( * ) END, - 61 col0
----
NULL
-61

query I rowsort
SELECT ALL 63 * + 29
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT + 10 * - - 40 * - + 89 * - COUNT( * ) + - 89 + 53 - - 72 + - COUNT( * )
----
35635

skipif mysql # not compatible
query I rowsort label-333
SELECT + 10 * - - 40 * - + 89 * - COUNT ( * ) + - 89 + 53 - - 72 + - COUNT ( * )
----
35635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-334
SELECT CASE - + CASE - + CAST( NULL AS DECIMAL ) WHEN 90 * COUNT( * ) + + - SUM( DISTINCT - 42 ) + - 51 * 77 * + 32 * - 94 THEN - + 93 / + NULLIF ( - - 45, - - CAST( - 25 AS SIGNED ) * - COALESCE ( + - 96, + COUNT( * ) ) / - 56 * + - 6 + - - MIN( - + ( - 91 ) ) ) * - 34 WHEN - - ( - 44 ) THEN NULL END WHEN - 29 THEN COALESCE ( - 99, NULLIF ( ( + 37 ), - 46 ), - 27 ) + + 60 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT CASE - + CASE - + CAST ( NULL AS REAL ) WHEN 90 * COUNT ( * ) + + - SUM ( DISTINCT - 42 ) + - 51 * 77 * + 32 * - 94 THEN - + 93 / + NULLIF ( - - 45, - - CAST ( - 25 AS INTEGER ) * - COALESCE ( + - 96, + COUNT ( * ) ) / - 56 * + - 6 + - - MIN ( - + ( - 91 ) ) ) * - 34 WHEN - - ( - 44 ) THEN NULL END WHEN - 29 THEN COALESCE ( - 99, NULLIF ( ( + 37 ), - 46 ), - 27 ) + + 60 END AS col1
----
NULL

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

query II rowsort
SELECT DISTINCT 44 * + 74 col1, 34 - - 76
----
3256
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-337
SELECT ALL 34 * - - COUNT( * ) DIV 36 * 8 * 88 DIV 96 * 44 + 61 * ( + - 27 ) AS col0
----
-1647

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL 34 * - - COUNT ( * ) / 36 * 8 * 88 / 96 * 44 + 61 * ( + - 27 ) AS col0
----
-1647

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-338
SELECT + 4 DIV CAST( 14 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-338
SELECT + 4 / CAST ( 14 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT ALL + COALESCE ( COUNT( * ), + - 83 * + 86 * + + 42, - 12 * + NULLIF ( - COUNT( - 90 ), - 93 ) + - COUNT( * ) * - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL + COALESCE ( COUNT ( * ), + - 83 * + 86 * + + 42, - 12 * + NULLIF ( - COUNT ( - 90 ), - 93 ) + - COUNT ( * ) * - 85 )
----
1

query I rowsort
SELECT + COALESCE ( + 40, 52 + 68 * + - 63 * - 87, 8, - 91 )
----
40

query II rowsort
SELECT + 2 * + 20 + - - 2 * + 64 AS col2, - 8
----
168
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-342
SELECT ALL - 94 DIV - 89
----
1

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL - 94 / - 89
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-343
SELECT DISTINCT 68 * + 81 + CAST( NULL AS SIGNED ) + + + 81 + - 6 * - MIN( - + 24 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT 68 * + 81 + CAST ( NULL AS INTEGER ) + + + 81 + - 6 * - MIN ( - + 24 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-344
SELECT ALL 6 * ( - + 74 ) - + 37 + - 18 * 12 / 81 * + CAST( NULL AS SIGNED ) - + COUNT( * ) + ( - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL 6 * ( - + 74 ) - + 37 + - 18 * 12 / 81 * + CAST ( NULL AS INTEGER ) - + COUNT ( * ) + ( - 67 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-345
SELECT ALL - 95 * + + 85 + - 42 + 92 AS col2, + 62 * MAX( ALL - COALESCE ( - - 15, + 58, - 96 + + + 35 ) )
----
-8025
-930

skipif mysql # not compatible
query II rowsort label-345
SELECT ALL - 95 * + + 85 + - 42 + 92 AS col2, + 62 * MAX ( ALL - COALESCE ( - - 15, + 58, - 96 + + + 35 ) )
----
-8025
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL + NULLIF ( + 11, - ( + - COUNT( * ) ) ) * - ( + ( - 73 ) ) + 93 + + 18 * + COUNT( * )
----
914

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL + NULLIF ( + 11, - ( + - COUNT ( * ) ) ) * - ( + ( - 73 ) ) + 93 + + 18 * + COUNT ( * )
----
914

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT DISTINCT - 0 * - SUM( DISTINCT + - 49 )
----
0

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT - 0 * - SUM ( DISTINCT + - 49 )
----
0

query I rowsort
SELECT ALL 90 + + 6 AS col0
----
96

query I rowsort
SELECT ALL + 61 - - ( + - 24 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT - - MAX( 80 ) + 50 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-350
SELECT - - MAX ( 80 ) + 50 AS col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT - + 81 + + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-351
SELECT - + 81 + + COUNT ( * )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-352
SELECT - - NULLIF ( + + 40, + ( + + 26 ) + CASE - MAX( + - 94 ) WHEN COUNT( * ) THEN - + 97 - CAST( NULL AS SIGNED ) + 65 ELSE NULL END ) + COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-352
SELECT - - NULLIF ( + + 40, + ( + + 26 ) + CASE - MAX ( + - 94 ) WHEN COUNT ( * ) THEN - + 97 - CAST ( NULL AS INTEGER ) + 65 ELSE NULL END ) + COUNT ( * ) AS col1
----
41

query I rowsort
SELECT - + 31 + + + 85
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT ALL COALESCE ( - 44, - COUNT( * ) DIV - COUNT( * ) - 58, - + COUNT( + 19 ) * + 83 )
----
-44

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL COALESCE ( - 44, - COUNT ( * ) / - COUNT ( * ) - 58, - + COUNT ( + 19 ) * + 83 )
----
-44

query I rowsort
SELECT - 17 * - 20 AS col2
----
340

query I rowsort
SELECT - 23 * - 87
----
2001

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-358
SELECT DISTINCT - 4 * 67 * + - 12 * CAST( - + 77 AS SIGNED ) * 42 AS col2
----
-10400544

skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT - 4 * 67 * + - 12 * CAST ( - + 77 AS INTEGER ) * 42 AS col2
----
-10400544

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT ALL - ( + + 4 ) * 2 AS col0, + 41 * + - SUM( - + 82 )
----
-8
3362

skipif mysql # not compatible
query II rowsort label-359
SELECT ALL - ( + + 4 ) * 2 AS col0, + 41 * + - SUM ( - + 82 )
----
-8
3362

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-360
SELECT DISTINCT CASE - 23 WHEN 20 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN - - 52 + + + 46 END AS col0, + 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-360
SELECT DISTINCT CASE - 23 WHEN 20 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN - - 52 + + + 46 END AS col0, + 72
----
NULL
72

query I rowsort
SELECT DISTINCT - 5 * - 50 AS col1
----
250

query I rowsort
SELECT - 34 + + ( + + 70 ) * + 57
----
3956

onlyif mysql # DIV for integer division: 
query I rowsort label-363
SELECT - 51 DIV + + ( - + 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-363
SELECT - 51 / + + ( - + 94 ) AS col2
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-365
SELECT ALL + COALESCE ( + + 13, 24 DIV - + 56 + - 44 * - 81 + - - 29 - - - 88 * 87 )
----
13

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + COALESCE ( + + 13, 24 / - + 56 + - 44 * - 81 + - - 29 - - - 88 * 87 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT + 6 * + 50 * - COALESCE ( 86, - ( - 88 ) + ( 69 ) - + 88 - - 65 * - MIN( DISTINCT 32 ) ) * - - 22 - + 85
----
-567685

skipif mysql # not compatible
query I rowsort label-366
SELECT + 6 * + 50 * - COALESCE ( 86, - ( - 88 ) + ( 69 ) - + 88 - - 65 * - MIN ( DISTINCT 32 ) ) * - - 22 - + 85
----
-567685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-367
SELECT DISTINCT + MIN( - 45 ) DIV - 33 + + CAST( + - 20 AS SIGNED ) + - 84 + + 92 * + - ( 14 ) AS col2
----
-1391

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT + MIN ( - 45 ) / - 33 + + CAST ( + - 20 AS INTEGER ) + - 84 + + 92 * + - ( 14 ) AS col2
----
-1391

query I rowsort
SELECT - 97 * - + 82 * - ( - 40 )
----
318160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT ALL 62 DIV - 36 + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL 62 / - 36 + - COUNT ( * )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-370
SELECT ALL + 13 DIV + CAST( - 55 AS SIGNED ) * + 58 + 2 + + MAX( + 89 ) * - 85 + COUNT( * ) AS col0
----
-7562

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL + 13 / + CAST ( - 55 AS INTEGER ) * + 58 + 2 + + MAX ( + 89 ) * - 85 + COUNT ( * ) AS col0
----
-7562

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT + ( + + 73 ) + 58 - COUNT( * ) + 61 * + - COUNT( * ) * + + 61
----
-3591

skipif mysql # not compatible
query I rowsort label-371
SELECT + ( + + 73 ) + 58 - COUNT ( * ) + 61 * + - COUNT ( * ) * + + 61
----
-3591

query I rowsort
SELECT - + 92 * + + 70 AS col0
----
-6440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-373
SELECT + + 87 * - CASE - 5 WHEN - + 77 THEN + COUNT( ALL + + 68 ) * 22 / - 51 * COUNT( * ) * - CAST( - - SUM( + + 41 ) AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-373
SELECT + + 87 * - CASE - 5 WHEN - + 77 THEN + COUNT ( ALL + + 68 ) * 22 / - 51 * COUNT ( * ) * - CAST ( - - SUM ( + + 41 ) AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-374
SELECT DISTINCT 89 * - - CAST( - 10 AS SIGNED ) + - - NULLIF ( + 65, - 16 ) - COUNT( ALL - 26 ) AS col0, + 5 DIV - + 27 + - 2 AS col0
----
-826
-2

skipif mysql # not compatible
query II rowsort label-374
SELECT DISTINCT 89 * - - CAST ( - 10 AS INTEGER ) + - - NULLIF ( + 65, - 16 ) - COUNT ( ALL - 26 ) AS col0, + 5 / - + 27 + - 2 AS col0
----
-826
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT DISTINCT NULLIF ( 59, 35 * + ( 62 ) * - 11 ) * - + 30 * - - 84 * + 28 * - 81 * COUNT( * ) + 63
----
337206303

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT NULLIF ( 59, 35 * + ( 62 ) * - 11 ) * - + 30 * - - 84 * + 28 * - 81 * COUNT ( * ) + 63
----
337206303

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

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

query I rowsort
SELECT 24 * + 96 * - 6 * + + 33 + + 88 - - 32
----
-456072

query I rowsort
SELECT - 67 * - - 59 + + 37 AS col0
----
-3916

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT ALL + 39 * - + CASE + ( - 68 ) WHEN + - COUNT( * ) THEN NULL WHEN + 72 THEN - 83 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL + 39 * - + CASE + ( - 68 ) WHEN + - COUNT ( * ) THEN NULL WHEN + 72 THEN - 83 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT MAX( 94 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-380
SELECT MAX ( 94 ) col1
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT ALL ( + MAX( DISTINCT + ( + 78 ) ) ) * 69 AS col0
----
5382

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL ( + MAX ( DISTINCT + ( + 78 ) ) ) * 69 AS col0
----
5382

query I rowsort
SELECT DISTINCT 35 * 79 AS col1
----
2765

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT 58 - 25 * COUNT( * ) + + 58 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-384
SELECT 58 - 25 * COUNT ( * ) + + 58 AS col1
----
91

query II rowsort
SELECT ALL 38 AS col0, 4 AS col0
----
38
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-386
SELECT COUNT( * ) * + + 47 AS col0, - CAST( + - 71 AS SIGNED )
----
47
71

skipif mysql # not compatible
query II rowsort label-386
SELECT COUNT ( * ) * + + 47 AS col0, - CAST ( + - 71 AS INTEGER )
----
47
71

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT ( MIN( - - 99 ) ) + + 31
----
130

skipif mysql # not compatible
query I rowsort label-387
SELECT ( MIN ( - - 99 ) ) + + 31
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT 67 - + 17 + - COUNT( * ) - - 49 + 67
----
165

skipif mysql # not compatible
query I rowsort label-388
SELECT 67 - + 17 + - COUNT ( * ) - - 49 + 67
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT DISTINCT 98, - COUNT( * ) + + 77 AS col0
----
98
76

skipif mysql # not compatible
query II rowsort label-389
SELECT DISTINCT 98, - COUNT ( * ) + + 77 AS col0
----
98
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-390
SELECT 57 + 58, COUNT( * ) DIV + + 98 AS col0
----
115
0

skipif mysql # not compatible
query II rowsort label-390
SELECT 57 + 58, COUNT ( * ) / + + 98 AS col0
----
115
0

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT DISTINCT CASE 56 WHEN + - MAX( DISTINCT ( + - 14 ) ) THEN 67 WHEN + 84 THEN NULL END + - 4 + - + 49 * - - ( - COUNT( * ) ) * + 26 * 20 * - - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT CASE 56 WHEN + - MAX ( DISTINCT ( + - 14 ) ) THEN 67 WHEN + 84 THEN NULL END + - 4 + - + 49 * - - ( - COUNT ( * ) ) * + 26 * 20 * - - 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT ALL + 56 + - ( + 12 ) - COUNT( ALL - 50 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL + 56 + - ( + 12 ) - COUNT ( ALL - 50 ) AS col1
----
43

query I rowsort
SELECT DISTINCT + 83 * - 26
----
-2158

onlyif mysql # aggregate syntax: 
query II rowsort label-394
SELECT 26 AS col0, + MAX( ALL 71 )
----
26
71

skipif mysql # not compatible
query II rowsort label-394
SELECT 26 AS col0, + MAX ( ALL 71 )
----
26
71

query I rowsort
SELECT ALL + 66 * NULLIF ( - 99, + + 93 )
----
-6534

query II rowsort
SELECT ( - 17 ) + ( + 99 ), + 61 AS col2
----
82
61

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT ALL + 57 + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL + 57 + COUNT ( * )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-398
SELECT NULLIF ( - 9, - CAST( NULL AS SIGNED ) - + - 39 ) * + - COALESCE ( + 93, 13, + + CASE + 37 WHEN + COUNT( * ) THEN + COUNT( * ) * + 95 * - - 77 * - + MAX( ALL + 9 ) * 38 * + 16 + - 90 - 39 - + COUNT( * ) * + 23 WHEN - MAX( 75 ) + + ( 59 ) + - AVG ( - ( - + 48 ) ) THEN NULL WHEN + 69 * - 55 + - - NULLIF ( + - COUNT( * ), + COUNT( * ) ) + + 55 THEN NULL END ) + + 94 + + 63 - 58 AS col1
----
936

skipif mysql # not compatible
query I rowsort label-398
SELECT NULLIF ( - 9, - CAST ( NULL AS INTEGER ) - + - 39 ) * + - COALESCE ( + 93, 13, + + CASE + 37 WHEN + COUNT ( * ) THEN + COUNT ( * ) * + 95 * - - 77 * - + MAX ( ALL + 9 ) * 38 * + 16 + - 90 - 39 - + COUNT ( * ) * + 23 WHEN - MAX ( 75 ) + + ( 59 ) + - AVG ( - ( - + 48 ) ) THEN NULL WHEN + 69 * - 55 + - - NULLIF ( + - COUNT ( * ), + COUNT ( * ) ) + + 55 THEN NULL END ) + + 94 + + 63 - 58 AS col1
----
936

onlyif mysql # aggregate syntax: 
query II rowsort label-399
SELECT 14 * + COUNT( * ), + 50 AS col1
----
14
50

skipif mysql # not compatible
query II rowsort label-399
SELECT 14 * + COUNT ( * ), + 50 AS col1
----
14
50

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT + COUNT( * ) * + 91 * + 28 + - 35 AS col2
----
2513

skipif mysql # not compatible
query I rowsort label-400
SELECT + COUNT ( * ) * + 91 * + 28 + - 35 AS col2
----
2513

query II rowsort
SELECT + 70 col2, + 43 AS col0
----
70
43

query I rowsort
SELECT ALL - + COALESCE ( 26, + 94 ) AS col2
----
-26

query I rowsort
SELECT 91 + + 90 * - 20
----
-1709

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

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

query I rowsort
SELECT + 88 + - 91 col2
----
-3

query I rowsort
SELECT ALL 28 - - + 66 * - 0
----
28

query I rowsort
SELECT - ( 68 ) + 32 - + 76 * 48 + - - 56 AS col2
----
-3628

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT NULLIF ( + 9, ( 92 ) ) DIV 76 + - 90 + + 50
----
-40

skipif mysql # not compatible
query I rowsort label-408
SELECT NULLIF ( + 9, ( 92 ) ) / 76 + - 90 + + 50
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-409
SELECT ALL - + CASE 40 WHEN - 86 THEN NULL WHEN 95 THEN NULL ELSE - COALESCE ( + - CAST( NULL AS SIGNED ), - 42 * 51 ) + 43 END * - NULLIF ( + 12, - + COUNT( * ) * - - 16 + 91 ) AS col2, - 74 * + + 53 AS col1
----
26220
-3922

skipif mysql # not compatible
query II rowsort label-409
SELECT ALL - + CASE 40 WHEN - 86 THEN NULL WHEN 95 THEN NULL ELSE - COALESCE ( + - CAST ( NULL AS INTEGER ), - 42 * 51 ) + 43 END * - NULLIF ( + 12, - + COUNT ( * ) * - - 16 + 91 ) AS col2, - 74 * + + 53 AS col1
----
26220
-3922

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT - 55 * - 56 * - 28 + - + 98 + CASE - 24 WHEN - 76 / 22 + + CAST( + 93 AS SIGNED ) * + - 81 THEN - - 9 * + CAST( NULL AS SIGNED ) END * 85 * 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT - 55 * - 56 * - 28 + - + 98 + CASE - 24 WHEN - 76 / 22 + + CAST ( + 93 AS INTEGER ) * + - 81 THEN - - 9 * + CAST ( NULL AS INTEGER ) END * 85 * 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL - - COUNT( * ) - + - 47 + + COALESCE ( 73, + - COUNT( * ) * 24 + - 83 ) * - 10
----
-682

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL - - COUNT ( * ) - + - 47 + + COALESCE ( 73, + - COUNT ( * ) * 24 + - 83 ) * - 10
----
-682

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT + CASE 14 WHEN + COUNT( * ) * - 35 THEN + 76 * + SUM( ALL ( 11 ) ) END + + 21 * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-412
SELECT + CASE 14 WHEN + COUNT ( * ) * - 35 THEN + 76 * + SUM ( ALL ( 11 ) ) END + + 21 * + 82
----
NULL

query I rowsort
SELECT + 47 * 49
----
2303

query I rowsort
SELECT DISTINCT + 42 * - 15 + + 3
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT SUM( DISTINCT + + 95 ) * - 40 * + + NULLIF ( - - 43, - 67 * + 29 / - 21 * + 78 ) * + 42 + + 94 AS col0
----
-6862706

skipif mysql # not compatible
query I rowsort label-415
SELECT SUM ( DISTINCT + + 95 ) * - 40 * + + NULLIF ( - - 43, - 67 * + 29 / - 21 * + 78 ) * + 42 + + 94 AS col0
----
-6862706

query III rowsort
SELECT DISTINCT - - 70 AS col1, - 18 + + 12 + + - 80 + - + 92 * - - 19 * - + 74 AS col1, + + 18 * + 1 AS col2
----
70
129266
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-417
SELECT ALL + - CAST( + 16 AS SIGNED ) * - + SUM( 26 )
----
416

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL + - CAST ( + 16 AS INTEGER ) * - + SUM ( 26 )
----
416

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

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT CASE 22 WHEN 59 * + - 21 THEN + - NULLIF ( - 16, - 4 * - 53 + - ( + 66 ) / - + 76 * + COUNT( * ) + - + 36 ) + - 51 WHEN + ( + 21 ) * + COALESCE ( + - 56, - 35 ) * - - 65 * - + AVG ( 77 ) + + + COUNT( * ) THEN 77 - COALESCE ( - 60, + - 48 ) WHEN 45 THEN + + 53 END * 86 * + COUNT( * ) + 78 / - + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-419
SELECT CASE 22 WHEN 59 * + - 21 THEN + - NULLIF ( - 16, - 4 * - 53 + - ( + 66 ) / - + 76 * + COUNT ( * ) + - + 36 ) + - 51 WHEN + ( + 21 ) * + COALESCE ( + - 56, - 35 ) * - - 65 * - + AVG ( 77 ) + + + COUNT ( * ) THEN 77 - COALESCE ( - 60, + - 48 ) WHEN 45 THEN + + 53 END * 86 * + COUNT ( * ) + 78 / - + 17 AS col2
----
NULL

query I rowsort
SELECT ( 28 ) + - - 48 + + + 4 col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-421
SELECT COUNT( * ) * + - 29 DIV 2
----
-14

skipif mysql # not compatible
query I rowsort label-421
SELECT COUNT ( * ) * + - 29 / 2
----
-14

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

skipif mysql # not compatible
query I rowsort label-422
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) + + - 82
----
-83

query I rowsort
SELECT ALL 22 + 6
----
28

query I rowsort
SELECT ALL 40 + 15 + 98 * + + 10
----
1035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-425
SELECT DISTINCT + CASE - + 63 WHEN - 89 THEN - - COALESCE ( - + 3, + - SUM( ALL - CASE CAST( - 80 AS SIGNED ) WHEN + - 11 * + - 36 THEN + 58 + - 57 WHEN 47 THEN 77 END ) * + 55 + - 99 + - - CAST( + 14 AS SIGNED ) ) * + 61 WHEN + 25 THEN NULL ELSE NULL END + + 55 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT + CASE - + 63 WHEN - 89 THEN - - COALESCE ( - + 3, + - SUM ( ALL - CASE CAST ( - 80 AS INTEGER ) WHEN + - 11 * + - 36 THEN + 58 + - 57 WHEN 47 THEN 77 END ) * + 55 + - 99 + - - CAST ( + 14 AS INTEGER ) ) * + 61 WHEN + 25 THEN NULL ELSE NULL END + + 55 col1
----
NULL

query I rowsort
SELECT ALL 16 * + ( + 63 ) * + 62 AS col1
----
62496

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT MAX( DISTINCT + 23 ) + ( - 45 )
----
-22

skipif mysql # not compatible
query I rowsort label-427
SELECT MAX ( DISTINCT + 23 ) + ( - 45 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT NULLIF ( - + 8, COUNT( * ) ) + - 96 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT NULLIF ( - + 8, COUNT ( * ) ) + - 96 AS col1
----
-104

query I rowsort
SELECT ALL 80 * - - 12 AS col2
----
960

query I rowsort
SELECT DISTINCT 39 + 36 * - 3 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT 99 + - COUNT( * ) + - 10 * - 47
----
568

skipif mysql # not compatible
query I rowsort label-431
SELECT 99 + - COUNT ( * ) + - 10 * - 47
----
568

onlyif mysql # aggregate syntax: 
query II rowsort label-432
SELECT DISTINCT 74 + + - COUNT( * ), + 29 AS col0
----
73
29

skipif mysql # not compatible
query II rowsort label-432
SELECT DISTINCT 74 + + - COUNT ( * ), + 29 AS col0
----
73
29

onlyif mysql # aggregate syntax: 
query II rowsort label-433
SELECT 8 + + 0 - - - MIN( + 31 ) * + 17 AS col0, - 79
----
-519
-79

skipif mysql # not compatible
query II rowsort label-433
SELECT 8 + + 0 - - - MIN ( + 31 ) * + 17 AS col0, - 79
----
-519
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT ALL 9 + - - SUM( - 76 )
----
-67

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL 9 + - - SUM ( - 76 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT DISTINCT - SUM( ALL - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT - SUM ( ALL - 49 )
----
49

query I rowsort
SELECT ALL + 65 * 48 AS col2
----
3120

query I rowsort
SELECT COALESCE ( 64, - 6 ) AS col1
----
64

query I rowsort
SELECT DISTINCT + COALESCE ( - 87, + 64 ) * - - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT ALL - + SUM( + - 65 ) col1
----
65

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL - + SUM ( + - 65 ) col1
----
65

query I rowsort
SELECT ALL - + 44 * - 49 * - 31 + + 86
----
-66750

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT - 53 * - 44 * + + COUNT( * )
----
2332

skipif mysql # not compatible
query I rowsort label-441
SELECT - 53 * - 44 * + + COUNT ( * )
----
2332

onlyif mysql # aggregate syntax: 
query II rowsort label-442
SELECT - NULLIF ( - 64, - 33 / COUNT( * ) * + 11 ) AS col2, + 36 * - 22 * + 88 col1
----
64
-69696

skipif mysql # not compatible
query II rowsort label-442
SELECT - NULLIF ( - 64, - 33 / COUNT ( * ) * + 11 ) AS col2, + 36 * - 22 * + 88 col1
----
64
-69696

query II rowsort
SELECT 54 * - 2 AS col1, - 48 + + ( 97 )
----
-108
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-444
SELECT ALL - 22 DIV - 62 DIV + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL - 22 / - 62 / + + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-445
SELECT - 16 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-445
SELECT - 16 / + 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-446
SELECT ALL - CAST( 15 AS SIGNED ) + - 39
----
-54

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL - CAST ( 15 AS INTEGER ) + - 39
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT - 55 + ( - SUM( ALL 6 ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-447
SELECT - 55 + ( - SUM ( ALL 6 ) ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-448
SELECT - 38 * + - CASE - 34 WHEN CAST( NULL AS SIGNED ) / + 67 / - + 22 THEN + + 55 WHEN + 30 * 97 + 41 * + 4 * + 75 - + 31 THEN NULL ELSE COUNT( ALL + + 32 ) + - ( - + CASE NULLIF ( - 70, - 73 * 21 / + + COUNT( * ) + 87 ) WHEN + 35 THEN - 39 / + - 70 + + - 49 - - 52 END ) + - ( - 88 ) END + + - COUNT( * ) / + 41 / + + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT - 38 * + - CASE - 34 WHEN CAST ( NULL AS INTEGER ) / + 67 / - + 22 THEN + + 55 WHEN + 30 * 97 + 41 * + 4 * + 75 - + 31 THEN NULL ELSE COUNT ( ALL + + 32 ) + - ( - + CASE NULLIF ( - 70, - 73 * 21 / + + COUNT ( * ) + 87 ) WHEN + 35 THEN - 39 / + - 70 + + - 49 - - 52 END ) + - ( - 88 ) END + + - COUNT ( * ) / + 41 / + + ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT ALL + 0 + - - 26 + - COUNT( * ) + - 11 + + - 19 + + - CASE + + ( - - 95 ) WHEN + 93 THEN NULL WHEN COUNT( * ) THEN - - 98 - 38 ELSE NULL END * - - 8 / 55 - - 59 * - + 79 + - 74 + 25 * + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL + 0 + - - 26 + - COUNT ( * ) + - 11 + + - 19 + + - CASE + + ( - - 95 ) WHEN + 93 THEN NULL WHEN COUNT ( * ) THEN - - 98 - 38 ELSE NULL END * - - 8 / 55 - - 59 * - + 79 + - 74 + 25 * + 19 AS col1
----
NULL

query II rowsort
SELECT - 81, 41 AS col0
----
-81
41

query I rowsort
SELECT - 11 + + 35 AS col1
----
24

query I rowsort
SELECT - NULLIF ( - 16, + + 49 * - 82 + + - 43 ) + 25 AS col0
----
41

query I rowsort
SELECT ALL 75 + - + 29 AS col0
----
46

query I rowsort
SELECT ALL - 38 + + - 8 AS col0
----
-46

query I rowsort
SELECT ALL NULLIF ( - 81, + 7 * + ( 16 ) ) AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-456
SELECT ALL 69 + - CAST( + - 99 AS SIGNED ) + - 29 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL 69 + - CAST ( + - 99 AS INTEGER ) + - 29 AS col0
----
139

query II rowsort
SELECT DISTINCT 52 AS col2, + 66 * + 66 col2
----
52
4356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-458
SELECT + CASE CAST( NULL AS SIGNED ) WHEN + 30 * + 52 THEN NULL ELSE - COUNT( ALL 45 ) * + - CAST( NULL AS SIGNED ) END - - 75 + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-458
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN + 30 * + 52 THEN NULL ELSE - COUNT ( ALL 45 ) * + - CAST ( NULL AS INTEGER ) END - - 75 + + 90
----
NULL

query I rowsort
SELECT ALL 33 + + 2 col1
----
35

query I rowsort
SELECT - 39 * 2 AS col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-461
SELECT - CASE AVG ( ALL - ( COALESCE ( + - 88, - - 44 ) ) ) WHEN - 3 THEN + + NULLIF ( + - CAST( - + 42 AS SIGNED ), + 47 ) WHEN - 58 * - - 73 + - - 48 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT - CASE AVG ( ALL - ( COALESCE ( + - 88, - - 44 ) ) ) WHEN - 3 THEN + + NULLIF ( + - CAST ( - + 42 AS INTEGER ), + 47 ) WHEN - 58 * - - 73 + - - 48 THEN NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 93 - - 37
----
130

query I rowsort
SELECT DISTINCT - 86 * + 96
----
-8256

query I rowsort
SELECT + - 80 + 94 + + 24 + - - 8 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-466
SELECT ALL COUNT( * ) - + 28 + - 43 + - COUNT( * ) + 92 * SUM( + 50 ) / + 59 + - - 57 * + CAST( NULL AS SIGNED ) + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL COUNT ( * ) - + 28 + - 43 + - COUNT ( * ) + 92 * SUM ( + 50 ) / + 59 + - - 57 * + CAST ( NULL AS INTEGER ) + + 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-467
SELECT DISTINCT + 16 * - 87 * + + COALESCE ( + 82, - 10 + - 58, + COALESCE ( + 35, + 82 DIV NULLIF ( - 95, COALESCE ( + ( 27 ), - - 59, - - CAST( NULL AS SIGNED ) * + - 49 * - - 5 * - CAST( - 76 AS SIGNED ) - - + 39 ) DIV 62 + + COALESCE ( - + 17, + 15, 41 + - CAST( NULL AS SIGNED ) + - 45, 96 ) ) * - 40 ) * + COUNT( * ) )
----
-114144

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT + 16 * - 87 * + + COALESCE ( + 82, - 10 + - 58, + COALESCE ( + 35, + 82 / NULLIF ( - 95, COALESCE ( + ( 27 ), - - 59, - - CAST ( NULL AS INTEGER ) * + - 49 * - - 5 * - CAST ( - 76 AS INTEGER ) - - + 39 ) / 62 + + COALESCE ( - + 17, + 15, 41 + - CAST ( NULL AS INTEGER ) + - 45, 96 ) ) * - 40 ) * + COUNT ( * ) )
----
-114144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-468
SELECT + 70 / + + AVG ( + 35 ) - + 21 + - + 84 + - - 32 + + + COUNT( CAST( - ( + - 20 ) AS SIGNED ) ) / + CASE 4 WHEN - + 60 THEN + + 69 + - 10 ELSE NULL END + - 16 + 69 / + ( - COUNT( * ) ) * - 88 + - 87 * - COALESCE ( + COUNT( * ), - 5 ) / + + 31 + - + 22 + + ( - NULLIF ( - 16, + 6 + - 64 * COUNT( * ) ) ) * 28 - - - ( + 49 ) - + 40 * - 84 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-468
SELECT + 70 / + + AVG ( + 35 ) - + 21 + - + 84 + - - 32 + + + COUNT ( CAST ( - ( + - 20 ) AS INTEGER ) ) / + CASE 4 WHEN - + 60 THEN + + 69 + - 10 ELSE NULL END + - 16 + 69 / + ( - COUNT ( * ) ) * - 88 + - 87 * - COALESCE ( + COUNT ( * ), - 5 ) / + + 31 + - + 22 + + ( - NULLIF ( - 16, + 6 + - 64 * COUNT ( * ) ) ) * 28 - - - ( + 49 ) - + 40 * - 84 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-469
SELECT + - 78 + - 2 * - 98 AS col2, + COALESCE ( + 56, + CAST( NULL AS SIGNED ) + - 88 ) / + 83 + + CAST( 87 AS SIGNED ) * CAST( NULL AS DECIMAL ) * - ( - CAST( 48 AS SIGNED ) ) * + - 43 * + 81 * - 55
----
118
NULL

skipif mysql # not compatible
query II rowsort label-469
SELECT + - 78 + - 2 * - 98 AS col2, + COALESCE ( + 56, + CAST ( NULL AS INTEGER ) + - 88 ) / + 83 + + CAST ( 87 AS INTEGER ) * CAST ( NULL AS REAL ) * - ( - CAST ( 48 AS INTEGER ) ) * + - 43 * + 81 * - 55
----
118
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT + - COUNT( DISTINCT + COALESCE ( - + 61, + 57, 16 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-470
SELECT + - COUNT ( DISTINCT + COALESCE ( - + 61, + 57, 16 ) ) col2
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-472
SELECT + + CAST( - + 57 AS SIGNED ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-472
SELECT + + CAST ( - + 57 AS INTEGER ) AS col1
----
-57

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

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

query I rowsort
SELECT DISTINCT + + 25 AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT DISTINCT + 49 AS col0, + COUNT( * ) + - 13 AS col1
----
49
-12

skipif mysql # not compatible
query II rowsort label-475
SELECT DISTINCT + 49 AS col0, + COUNT ( * ) + - 13 AS col1
----
49
-12

query I rowsort
SELECT + 73 + 82 * - COALESCE ( - - 7, COALESCE ( + - 46, + 31 ) )
----
-501

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL + NULLIF ( - + 23, + - 77 + - 75 - + COUNT( * ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL + NULLIF ( - + 23, + - 77 + - 75 - + COUNT ( * ) ) AS col0
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-478
SELECT ALL - 93 * + 32 * - - CASE + 5 WHEN + 11 THEN NULL WHEN 86 THEN + + CAST( NULL AS DECIMAL ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL - 93 * + 32 * - - CASE + 5 WHEN + 11 THEN NULL WHEN 86 THEN + + CAST ( NULL AS REAL ) ELSE NULL END col1
----
NULL

query I rowsort
SELECT - + 71 + - - 6 AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-480
SELECT DISTINCT - + 67 * + - 8 * + - 71 + 2 + - + 55 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT - + 67 * + - 8 * + - 71 + 2 + - + 55 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT DISTINCT - - COUNT( * ) * MAX( + 8 ) + - 59
----
-51

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT - - COUNT ( * ) * MAX ( + 8 ) + - 59
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT ALL SUM( 29 ) * + 39 + + - 60 + - - MIN( ALL + - 69 ) * 51 * 5 * + 7 AS col0
----
-122094

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL SUM ( 29 ) * + 39 + + - 60 + - - MIN ( ALL + - 69 ) * 51 * 5 * + 7 AS col0
----
-122094

query I rowsort
SELECT DISTINCT + NULLIF ( - 76, 39 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-484
SELECT ALL COUNT( * ) * - - ( - CAST( 90 AS SIGNED ) ) + + 78 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL COUNT ( * ) * - - ( - CAST ( 90 AS INTEGER ) ) + + 78 AS col1
----
-12

query I rowsort
SELECT - 5 * + 92 * + 74 * + 67 AS col1
----
-2280680

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

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

query I rowsort
SELECT DISTINCT 78 * - 95 + 51 + - - COALESCE ( - 36, + + 27 + + 29 - - 70 ) AS col0
----
-7395

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT ALL 40 * - + 90 + + 6 + - COUNT( * ) * 15 - + - COUNT( * ) + 89 col2
----
-3519

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL 40 * - + 90 + + 6 + - COUNT ( * ) * 15 - + - COUNT ( * ) + 89 col2
----
-3519

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT DISTINCT - CASE 29 WHEN 9 THEN 46 ELSE + COUNT( * ) END * + 74 - - - 32 AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT - CASE 29 WHEN 9 THEN 46 ELSE + COUNT ( * ) END * + 74 - - - 32 AS col1
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-490
SELECT + NULLIF ( - 7, 80 ) * 32 * - + CAST( NULL AS SIGNED ) - - + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT + NULLIF ( - 7, 80 ) * 32 * - + CAST ( NULL AS INTEGER ) - - + 44 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-492
SELECT - 77 * - 4 + COALESCE ( + - ( + + COUNT( DISTINCT ( + 62 ) ) ), + 47 ) + - 41 * - - 1 + 14 * CAST( + ( 84 ) AS SIGNED ) * - - 40 + + + 8
----
47314

skipif mysql # not compatible
query I rowsort label-492
SELECT - 77 * - 4 + COALESCE ( + - ( + + COUNT ( DISTINCT ( + 62 ) ) ), + 47 ) + - 41 * - - 1 + 14 * CAST ( + ( 84 ) AS INTEGER ) * - - 40 + + + 8
----
47314

query I rowsort
SELECT ALL + 7 - NULLIF ( - + 57, - - 46 ) col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT - COUNT( * ) * - 46 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-494
SELECT - COUNT ( * ) * - 46 AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-495
SELECT DISTINCT CAST( - + 92 AS SIGNED ) AS col0, - 92 + - + 83 + 58 + + ( 54 ) DIV + - 13 + + 34 * - 52 * - COALESCE ( + COUNT( * ), + 88 ) + - 88 + - CAST( 81 AS SIGNED )
----
-92
1478

skipif mysql # not compatible
query II rowsort label-495
SELECT DISTINCT CAST ( - + 92 AS INTEGER ) AS col0, - 92 + - + 83 + 58 + + ( 54 ) / + - 13 + + 34 * - 52 * - COALESCE ( + COUNT ( * ), + 88 ) + - 88 + - CAST ( 81 AS INTEGER )
----
-92
1478

query I rowsort
SELECT - 15 * - 50 AS col0
----
750

query I rowsort
SELECT DISTINCT - 62 * - 99 AS col2
----
6138

query I rowsort
SELECT DISTINCT - 25 - + 62
----
-87

query I rowsort
SELECT - 85 * + + 89 * - - 50 AS col2
----
-378250

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

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

query I rowsort
SELECT + 64 + + ( 19 ) col1
----
83

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 74 * + 67 + - ( + 6 ) AS col0
----
4952

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT + COUNT( * ) * - + MIN( 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-507
SELECT + COUNT ( * ) * - + MIN ( 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-508
SELECT DISTINCT - 55 * 22 * + COUNT( * ) * - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT - 55 * 22 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-509
SELECT DISTINCT - 44 / - CAST( NULL AS SIGNED ) * + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT - 44 / - CAST ( NULL AS INTEGER ) * + + 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-510
SELECT ALL + CAST( 52 AS SIGNED ) + + 73
----
125

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + CAST ( 52 AS INTEGER ) + + 73
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT ALL + COUNT( * ) + - 23 * + - 41
----
944

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL + COUNT ( * ) + - 23 * + - 41
----
944

query I rowsort
SELECT DISTINCT 45 + - - 11 * + 95 AS col1
----
1090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-513
SELECT 17 DIV - 51 + - - COALESCE ( + - 89, - - COUNT( * ) * - 62 )
----
-89

skipif mysql # not compatible
query I rowsort label-513
SELECT 17 / - 51 + - - COALESCE ( + - 89, - - COUNT ( * ) * - 62 )
----
-89

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

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

query I rowsort
SELECT DISTINCT 58 + 74 * 8 + 48
----
698

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-516
SELECT + 31 AS col1, MIN( 64 ) DIV 74 * 41 AS col0
----
31
0

skipif mysql # not compatible
query II rowsort label-516
SELECT + 31 AS col1, MIN ( 64 ) / 74 * 41 AS col0
----
31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT ALL - COUNT( * ) + - 40
----
-41

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL - COUNT ( * ) + - 40
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-518
SELECT ALL - COALESCE ( 34, 64 + + 46 + + + 53 * + - COUNT( * ) + + 13 DIV - MAX( DISTINCT 25 ), - - 65 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - COALESCE ( 34, 64 + + 46 + + + 53 * + - COUNT ( * ) + + 13 / - MAX ( DISTINCT 25 ), - - 65 ) AS col0
----
-34

query I rowsort
SELECT DISTINCT - 29 * 14
----
-406

query I rowsort
SELECT 92 * + 68 AS col1
----
6256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-521
SELECT SUM( + - CAST( NULL AS SIGNED ) ) * + + 6 AS col1
----
NULL

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

query I rowsort
SELECT 18 * + 37 col2
----
666

onlyif mysql # aggregate syntax: 
query II rowsort label-523
SELECT ALL 8 AS col0, 98 * + COUNT( + 49 )
----
8
98

skipif mysql # not compatible
query II rowsort label-523
SELECT ALL 8 AS col0, 98 * + COUNT ( + 49 )
----
8
98

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT 92 + COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-524
SELECT 92 + COUNT ( * ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-525
SELECT ALL 97 - - - 58 * + - 84 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL 97 - - - 58 * + - 84 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-526
SELECT ALL + ( ( - 2 ) ) DIV - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL + ( ( - 2 ) ) / - 65 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-527
SELECT DISTINCT + CAST( + - 2 AS SIGNED ) DIV + ( + 63 ) * - 3 + - ( - - 3 ) * - 80
----
240

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT + CAST ( + - 2 AS INTEGER ) / + ( + 63 ) * - 3 + - ( - - 3 ) * - 80
----
240

query I rowsort
SELECT 17 * + 19
----
323

query I rowsort
SELECT ( + 41 ) + + 23
----
64

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-531
SELECT CAST( + 98 AS SIGNED ) DIV - 14 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-531
SELECT CAST ( + 98 AS INTEGER ) / - 14 AS col1
----
-7

query I rowsort
SELECT 33 * - 35 col0
----
-1155

query I rowsort
SELECT 36 + 66 AS col0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-534
SELECT DISTINCT + ( NULLIF ( + 97, + CAST( NULL AS SIGNED ) ) ) * - 96 AS col2
----
-9312

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT + ( NULLIF ( + 97, + CAST ( NULL AS INTEGER ) ) ) * - 96 AS col2
----
-9312

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

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL - COUNT ( * ) + - COUNT ( * ) * 31 AS col2
----
-32

query I rowsort
SELECT DISTINCT - ( 12 ) + ( 82 ) col2
----
70

query I rowsort
SELECT 26 + 42 * 16
----
698

query I rowsort
SELECT 33 * - ( + 30 ) AS col2
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT 25 + ( ( 48 ) - - 53 * NULLIF ( + 59 * - COUNT( * ), 82 * + 10 ) ) col2
----
-3054

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT 25 + ( ( 48 ) - - 53 * NULLIF ( + 59 * - COUNT ( * ), 82 * + 10 ) ) col2
----
-3054

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

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

query I rowsort
SELECT 23 + 8 AS col1
----
31

query I rowsort
SELECT 58 * - 83 AS col2
----
-4814

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT DISTINCT + ( 27 ) + - 92 DIV + 57 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT + ( 27 ) + - 92 / + 57 AS col0
----
26

query I rowsort
SELECT ALL 24 + 99
----
123

query I rowsort
SELECT - 64 * 94 + NULLIF ( 17, 44 ) AS col1
----
-5999

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

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + ( + 20 ) / COUNT ( * )
----
20

query I rowsort
SELECT ALL 76 * 11
----
836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-548
SELECT ALL + 42 - COUNT( * ) * COALESCE ( COALESCE ( - 61, - 61 * + 26 ), 1, 50 * - CAST( - 36 * - 4 AS SIGNED ) )
----
103

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL + 42 - COUNT ( * ) * COALESCE ( COALESCE ( - 61, - 61 * + 26 ), 1, 50 * - CAST ( - 36 * - 4 AS INTEGER ) )
----
103

query I rowsort
SELECT ALL 70 - 58
----
12

query I rowsort
SELECT 83 + 94 AS col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT + 25 * + 49 + - NULLIF ( COUNT( * ), + 46 ) * COUNT( * )
----
1224

skipif mysql # not compatible
query I rowsort label-551
SELECT + 25 * + 49 + - NULLIF ( COUNT ( * ), + 46 ) * COUNT ( * )
----
1224

query I rowsort
SELECT ALL 57 - - NULLIF ( - NULLIF ( 86, 25 ), 87 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT SUM( DISTINCT 89 ) * - 77 AS col0
----
-6853

skipif mysql # not compatible
query I rowsort label-553
SELECT SUM ( DISTINCT 89 ) * - 77 AS col0
----
-6853

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

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

query I rowsort
SELECT 73 * 49
----
3577

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-556
SELECT ALL COALESCE ( + COUNT( * ), + 3, 38 - - 91, 51 DIV + 65 + 47 ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL COALESCE ( + COUNT ( * ), + 3, 38 - - 91, 51 / + 65 + 47 ) / COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT 69 - 65
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT NULLIF ( + 18, COUNT( * ) * 13 ) * + ( ( NULLIF ( + 88, + 86 ) ) * - 62 )
----
-98208

skipif mysql # not compatible
query I rowsort label-558
SELECT NULLIF ( + 18, COUNT ( * ) * 13 ) * + ( ( NULLIF ( + 88, + 86 ) ) * - 62 )
----
-98208

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ALL + CASE + 30 WHEN + COUNT( * ) THEN 97 * - 91 ELSE + ( + 90 ) END * + 78 AS col1
----
7020

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL + CASE + 30 WHEN + COUNT ( * ) THEN 97 * - 91 ELSE + ( + 90 ) END * + 78 AS col1
----
7020

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT SUM( ALL 65 ) * 27
----
1755

skipif mysql # not compatible
query I rowsort label-560
SELECT SUM ( ALL 65 ) * 27
----
1755

query I rowsort
SELECT - NULLIF ( 29, 71 * - 60 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT COALESCE ( 93, - COUNT( DISTINCT 29 ) ) * - 87
----
-8091

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT COALESCE ( 93, - COUNT ( DISTINCT 29 ) ) * - 87
----
-8091

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-563
SELECT - CASE + COUNT( * ) WHEN + 46 THEN - ( 27 ) + CAST( NULL AS DECIMAL ) END * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT - CASE + COUNT ( * ) WHEN + 46 THEN - ( 27 ) + CAST ( NULL AS REAL ) END * + 89
----
NULL

query I rowsort
SELECT 19 * - 44
----
-836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-565
SELECT ALL - 5 + - CAST( NULL AS SIGNED ) * 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL - 5 + - CAST ( NULL AS INTEGER ) * 30 AS col0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL COUNT ( ALL + 95 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 77 + 46
----
123

query I rowsort
SELECT + - 66 * 71
----
-4686

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT + 26 DIV + 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-570
SELECT + 26 / + 73 AS col0
----
0

query I rowsort
SELECT ALL + 86 + 87
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT DISTINCT + - 35 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT + - 35 / 47
----
0

query I rowsort
SELECT ALL - CASE 58 WHEN 40 THEN NULL WHEN + 92 THEN + ( - 81 ) + 59 END + + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT - + SUM( 26 ) + + 87 * + 37
----
3193

skipif mysql # not compatible
query I rowsort label-574
SELECT - + SUM ( 26 ) + + 87 * + 37
----
3193

onlyif mysql # DIV for integer division: 
query I rowsort label-575
SELECT DISTINCT - 61 DIV 53 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT - 61 / 53 AS col0
----
-1

query I rowsort
SELECT ALL + 3 + + 32 * + 99 AS col1
----
3171

query I rowsort
SELECT + + 39 * ( 78 + + 39 ) AS col2
----
4563

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-579
SELECT - + 23 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-579
SELECT - + 23 / - 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT DISTINCT + MAX( ALL 2 ) * COUNT( * ) - COALESCE ( 29 - 21 * - 21, + 59 * + 73, 15 + 11 * 99 )
----
-468

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT + MAX ( ALL 2 ) * COUNT ( * ) - COALESCE ( 29 - 21 * - 21, + 59 * + 73, 15 + 11 * 99 )
----
-468

query I rowsort
SELECT DISTINCT - 98 * - 98 - - 61 col2
----
9665

query I rowsort
SELECT COALESCE ( + 20, 90 ) AS col1
----
20

query I rowsort
SELECT - ( + 47 ) * 86
----
-4042

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-584
SELECT DISTINCT + 38 * + 64 DIV + COUNT( * ) AS col2
----
2432

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT + 38 * + 64 / + COUNT ( * ) AS col2
----
2432

query I rowsort
SELECT NULLIF ( 60, - 62 ) AS col2
----
60

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-587
SELECT DISTINCT + MIN( DISTINCT 97 ) DIV + 86
----
1

skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT + MIN ( DISTINCT 97 ) / + 86
----
1

query I rowsort
SELECT ALL ( 45 ) * - 39
----
-1755

query I rowsort
SELECT DISTINCT - 94 * + - 23 AS col0
----
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT + 45 * + 24 * + NULLIF ( - 51, - NULLIF ( 87, SUM( DISTINCT ( 29 ) ) / 80 ) * ( + ( 39 ) ) )
----
-55080

skipif mysql # not compatible
query I rowsort label-590
SELECT + 45 * + 24 * + NULLIF ( - 51, - NULLIF ( 87, SUM ( DISTINCT ( 29 ) ) / 80 ) * ( + ( 39 ) ) )
----
-55080

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT ALL - MIN( ALL - + 54 ) * - NULLIF ( + 25, COUNT( * ) )
----
-1350

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL - MIN ( ALL - + 54 ) * - NULLIF ( + 25, COUNT ( * ) )
----
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT + 39 * + - SUM( ALL - 98 ) + - 58 * - 59 AS col1
----
7244

skipif mysql # not compatible
query I rowsort label-592
SELECT + 39 * + - SUM ( ALL - 98 ) + - 58 * - 59 AS col1
----
7244

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT SUM( ( 9 ) )
----
9

skipif mysql # not compatible
query I rowsort label-593
SELECT SUM ( ( 9 ) )
----
9

query I rowsort
SELECT + 14 * + + 66
----
924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT ALL - MAX( - CAST( - 91 AS SIGNED ) ) * COUNT( * ) + 43 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL - MAX ( - CAST ( - 91 AS INTEGER ) ) * COUNT ( * ) + 43 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT + MAX( DISTINCT - + 72 ) * - 62 AS col0
----
4464

skipif mysql # not compatible
query I rowsort label-596
SELECT + MAX ( DISTINCT - + 72 ) * - 62 AS col0
----
4464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-597
SELECT ALL + COALESCE ( - 17, + 40 * 20 + 5, ( - 61 ) * + 41 ) * CAST( NULL AS SIGNED ) + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL + COALESCE ( - 17, + 40 * 20 + 5, ( - 61 ) * + 41 ) * CAST ( NULL AS INTEGER ) + 91 AS col2
----
NULL

query I rowsort
SELECT + - 70 + - 42 AS col1
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-599
SELECT + + 95 + AVG ( + 59 ) + CASE 54 - - 3 / + COUNT( * ) WHEN 56 - 66 THEN 34 END / CASE - ( 56 ) * CAST( NULL AS SIGNED ) WHEN + 71 + + 71 THEN NULL ELSE + COUNT( * ) + - 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-599
SELECT + + 95 + AVG ( + 59 ) + CASE 54 - - 3 / + COUNT ( * ) WHEN 56 - 66 THEN 34 END / CASE - ( 56 ) * CAST ( NULL AS INTEGER ) WHEN + 71 + + 71 THEN NULL ELSE + COUNT ( * ) + - 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT + 15 + COALESCE ( ( 58 ), 35 * 63 + + MIN( ALL + 47 ) )
----
73

skipif mysql # not compatible
query I rowsort label-600
SELECT + 15 + COALESCE ( ( 58 ), 35 * 63 + + MIN ( ALL + 47 ) )
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT ALL MAX( ALL + 0 ) + 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL MAX ( ALL + 0 ) + 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT CASE - COUNT( DISTINCT - 73 ) WHEN - 19 THEN NULL WHEN 62 - - 27 THEN + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-603
SELECT CASE - COUNT ( DISTINCT - 73 ) WHEN - 19 THEN NULL WHEN 62 - - 27 THEN + 72 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT + SUM( ALL + 25 ) * - 75 AS col1
----
-1875

skipif mysql # not compatible
query I rowsort label-604
SELECT + SUM ( ALL + 25 ) * - 75 AS col1
----
-1875

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT + - 54 + COUNT( * ) - 4 * + 16 AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-605
SELECT + - 54 + COUNT ( * ) - 4 * + 16 AS col1
----
-117

query I rowsort
SELECT ALL 29 + CASE - 55 WHEN - 21 + - 48 * + 18 THEN - 35 END AS col0
----
NULL

query I rowsort
SELECT ALL - 74 + - - 79 * - 77
----
-6157

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

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

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

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

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

query I rowsort
SELECT ALL - CASE WHEN NOT 51 <> - ( - 74 ) THEN - ( 22 ) + 5 END
----
NULL

query I rowsort
SELECT DISTINCT CASE + ( 61 ) WHEN 36 THEN 20 * - NULLIF ( - 20, + 90 - COALESCE ( 36, 51 / - 10, 84 ) * 1 ) WHEN + 30 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT DISTINCT - NULLIF ( - + COUNT( * ), + 82 / 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), + 82 / 79 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT ALL MAX( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL MAX ( 16 )
----
16

query I rowsort
SELECT - 11 + 5
----
-6

query I rowsort
SELECT + 23 * + - 65
----
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT - 28 * 95 * - COUNT( * )
----
2660

skipif mysql # not compatible
query I rowsort label-617
SELECT - 28 * 95 * - COUNT ( * )
----
2660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-618
SELECT ALL - 79 / - - 49 * 52 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - 79 / - - 49 * 52 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-619
SELECT ALL + COALESCE ( - + 4, COALESCE ( - COUNT( DISTINCT + 12 ), COUNT( * ) * + 64 + ( + CAST( NULL AS SIGNED ) ), - 41 ) * 46 + + 1 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL + COALESCE ( - + 4, COALESCE ( - COUNT ( DISTINCT + 12 ), COUNT ( * ) * + 64 + ( + CAST ( NULL AS INTEGER ) ), - 41 ) * 46 + + 1 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT + ( + 60 ) * - 88 + COUNT( * )
----
-5279

skipif mysql # not compatible
query I rowsort label-620
SELECT + ( + 60 ) * - 88 + COUNT ( * )
----
-5279

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

skipif mysql # not compatible
query II rowsort label-621
SELECT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - MIN ( - 84 ) col0
----
NULL
NULL

query I rowsort
SELECT + 17 * - 34 * - 16 + - CASE 8 WHEN 25 THEN NULL WHEN 43 + + 71 THEN 51 * + 98 + 5 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 7 * + 34 * + 14 * 96 AS col1
----
319872

query I rowsort
SELECT - 69 + - CASE + 57 WHEN + 96 THEN NULL WHEN 53 + - 41 THEN - 58 ELSE - 19 * - 7 + + COALESCE ( 29 - 97, - ( 10 ) ) * + 60 END + 92 AS col0
----
3970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT ALL + CAST( CASE + - 92 WHEN 14 * + COUNT( * ) THEN + CASE - 80 WHEN 38 THEN COUNT( * ) END * + 53 + COALESCE ( - COUNT( * ), - 3 * 99 + + 78 ) * + 62 WHEN ( 61 ) THEN NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL + CAST ( CASE + - 92 WHEN 14 * + COUNT ( * ) THEN + CASE - 80 WHEN 38 THEN COUNT ( * ) END * + 53 + COALESCE ( - COUNT ( * ), - 3 * 99 + + 78 ) * + 62 WHEN ( 61 ) THEN NULL END AS INTEGER ) AS col0
----
NULL

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

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

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

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

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

query I rowsort
SELECT - 15 + + 6 * 26
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-630
SELECT ALL - 7 * + 35 * + MAX( ALL - 98 ) + - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL - 7 * + 35 * + MAX ( ALL - 98 ) + - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-631
SELECT + 91 + - COUNT( DISTINCT + 4 ) DIV + ( - 70 )
----
91

skipif mysql # not compatible
query I rowsort label-631
SELECT + 91 + - COUNT ( DISTINCT + 4 ) / + ( - 70 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT 17 * ( - 79 ) * - COUNT( * ) AS col1
----
1343

skipif mysql # not compatible
query I rowsort label-632
SELECT 17 * ( - 79 ) * - COUNT ( * ) AS col1
----
1343

query I rowsort
SELECT ALL - 45 * + 62 col2
----
-2790

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT ALL + NULLIF ( + 3, CASE + ( + 32 ) WHEN - COUNT( * ) * 46 THEN NULL WHEN - 74 THEN 20 * 64 WHEN 88 - 81 THEN 25 - - 54 ELSE - 65 END / + COUNT( * ) ) + 49
----
52

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL + NULLIF ( + 3, CASE + ( + 32 ) WHEN - COUNT ( * ) * 46 THEN NULL WHEN - 74 THEN 20 * 64 WHEN 88 - 81 THEN 25 - - 54 ELSE - 65 END / + COUNT ( * ) ) + 49
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT + - COUNT( + 27 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-636
SELECT + - COUNT ( + 27 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-637
SELECT ALL + 39 + - NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL + 39 + - NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col1
----
38

query I rowsort
SELECT ALL - NULLIF ( - ( + 14 ), 19 ) * + 77
----
1078

onlyif mysql # aggregate syntax: 
query II rowsort label-639
SELECT - COUNT( * ), 10 + 45 * 0 col2
----
-1
10

skipif mysql # not compatible
query II rowsort label-639
SELECT - COUNT ( * ), 10 + 45 * 0 col2
----
-1
10

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

query I rowsort
SELECT ALL + COALESCE ( - 32, + 41 ) AS col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-642
SELECT + CASE - - 67 WHEN + + 9 + + COUNT( * ) THEN 92 + - 97 ELSE 85 END DIV COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-642
SELECT + CASE - - 67 WHEN + + 9 + + COUNT ( * ) THEN 92 + - 97 ELSE 85 END / COUNT ( * ) AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-643
SELECT - 74 * - + 87 DIV COUNT( * ) AS col2
----
6438

skipif mysql # not compatible
query I rowsort label-643
SELECT - 74 * - + 87 / COUNT ( * ) AS col2
----
6438

query II rowsort
SELECT DISTINCT 48 AS col0, + 71
----
48
71

query I rowsort
SELECT ALL + 3 - 91
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT DISTINCT - NULLIF ( - COUNT( * ), + + 35 - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT - NULLIF ( - COUNT ( * ), + + 35 - 85 )
----
1

query I rowsort
SELECT - 1 - - + 14 + - 48 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL - + COUNT( * ) - + - CASE + 29 WHEN + 96 THEN NULL WHEN - 90 THEN + 33 * 46 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL - + COUNT ( * ) - + - CASE + 29 WHEN + 96 THEN NULL WHEN - 90 THEN + 33 * 46 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL + CASE - 97 WHEN 62 THEN NULL WHEN - 16 THEN 19 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT + 81 + - NULLIF ( 43, + 73 / - 57 ) + + COUNT( * ) * - 55 col0
----
-17

skipif mysql # not compatible
query I rowsort label-651
SELECT + 81 + - NULLIF ( 43, + 73 / - 57 ) + + COUNT ( * ) * - 55 col0
----
-17

query I rowsort
SELECT + 51 * + - 90 + + 91 * - 97
----
-13417

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT 84 + - + 88 * + SUM( DISTINCT - 16 ) AS col1
----
1492

skipif mysql # not compatible
query I rowsort label-653
SELECT 84 + - + 88 * + SUM ( DISTINCT - 16 ) AS col1
----
1492

query I rowsort
SELECT DISTINCT 30 * - + NULLIF ( + + 74, - 56 + - 3 ) AS col0
----
-2220

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-655
SELECT ( - 79 ) + + + CASE - - 41 WHEN 40 * - 71 THEN NULL WHEN - 11 * - 97 + - ( - 73 ) THEN NULL WHEN - COALESCE ( CASE 8 WHEN 1 * - CASE + CASE 14 WHEN - 36 THEN + COALESCE ( 66, + 53 * + COUNT( - 37 * 68 ) + 7 * 11, 46 * + CAST( + COUNT( * ) AS DECIMAL ) ) - 48 WHEN - 29 + + CASE 35 WHEN 81 THEN NULL WHEN - 7 + - 48 THEN + 74 * + 86 END THEN NULL END WHEN 69 THEN - COUNT( * ) + 72 END THEN NULL WHEN - 6 * COUNT( * ) THEN COALESCE ( COUNT( * ), - 61 ) WHEN + COUNT( * ) THEN NULL END, + 83 ) + - 54 * COUNT( * ) THEN - 10 END * 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-655
SELECT ( - 79 ) + + + CASE - - 41 WHEN 40 * - 71 THEN NULL WHEN - 11 * - 97 + - ( - 73 ) THEN NULL WHEN - COALESCE ( CASE 8 WHEN 1 * - CASE + CASE 14 WHEN - 36 THEN + COALESCE ( 66, + 53 * + COUNT ( - 37 * 68 ) + 7 * 11, 46 * + CAST ( + COUNT ( * ) AS REAL ) ) - 48 WHEN - 29 + + CASE 35 WHEN 81 THEN NULL WHEN - 7 + - 48 THEN + 74 * + 86 END THEN NULL END WHEN 69 THEN - COUNT ( * ) + 72 END THEN NULL WHEN - 6 * COUNT ( * ) THEN COALESCE ( COUNT ( * ), - 61 ) WHEN + COUNT ( * ) THEN NULL END, + 83 ) + - 54 * COUNT ( * ) THEN - 10 END * 50 AS col2
----
NULL

query I rowsort
SELECT ALL 93 * + + ( - 66 ) AS col2
----
-6138

query I rowsort
SELECT 76 * + 72
----
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT DISTINCT 46 + + ( - ( - - COUNT( * ) ) ) + + CASE SUM( DISTINCT 33 ) WHEN - 80 THEN NULL ELSE 81 + COUNT( * ) * - COUNT( * ) END AS col0
----
125

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT 46 + + ( - ( - - COUNT ( * ) ) ) + + CASE SUM ( DISTINCT 33 ) WHEN - 80 THEN NULL ELSE 81 + COUNT ( * ) * - COUNT ( * ) END AS col0
----
125

query I rowsort
SELECT ALL 57 * - + 41 AS col0
----
-2337

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

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

query I rowsort
SELECT ALL - ( + 82 ) + - 1 + 88
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL - CASE - 24 WHEN - 7 + + - COALESCE ( - 48, 52 + + 85, 15 + 4 ) + + ( ( + 88 ) + 82 ) * - CASE WHEN NOT 30 IS NULL THEN - 41 + 40 * - COUNT( * ) ELSE NULLIF ( 57, + 63 ) END * + COUNT( * ) THEN 24 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL - CASE - 24 WHEN - 7 + + - COALESCE ( - 48, 52 + + 85, 15 + 4 ) + + ( ( + 88 ) + 82 ) * - CASE WHEN NOT 30 IS NULL THEN - 41 + 40 * - COUNT ( * ) ELSE NULLIF ( 57, + 63 ) END * + COUNT ( * ) THEN 24 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT ALL CASE - - ( - COUNT( * ) ) WHEN 54 * + 79 THEN + 99 END + + ( + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL CASE - - ( - COUNT ( * ) ) WHEN 54 * + 79 THEN + 99 END + + ( + 59 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ALL COUNT( * ) + 92 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL COUNT ( * ) + 92 AS col2
----
93

query I rowsort
SELECT 36 * 60
----
2160

query I rowsort
SELECT ALL 21 + + 37 col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT NULLIF ( + 67, + 92 ) - + - CASE COUNT( * ) WHEN - 62 - 4 THEN - 94 WHEN 18 + 52 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-668
SELECT NULLIF ( + 67, + 92 ) - + - CASE COUNT ( * ) WHEN - 62 - 4 THEN - 94 WHEN 18 + 52 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - ( + 31 ) * + + 80 * 56 col2
----
-138880

query I rowsort
SELECT DISTINCT - 40 + 45
----
5

query I rowsort
SELECT ALL + 68 + - + 31
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT SUM( DISTINCT - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-672
SELECT SUM ( DISTINCT - 0 ) AS col0
----
0

query I rowsort
SELECT ALL - - ( 92 ) * + 83
----
7636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-674
SELECT CAST( - COUNT( * ) AS SIGNED ) + + 30 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-674
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + 30 AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-675
SELECT 87 * - 69 - - CAST( ( 58 ) AS SIGNED ) AS col2
----
-5945

skipif mysql # not compatible
query I rowsort label-675
SELECT 87 * - 69 - - CAST ( ( 58 ) AS INTEGER ) AS col2
----
-5945

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT - 3 * + COUNT( * ) + + 98 * 2 + 75 AS col1
----
268

skipif mysql # not compatible
query I rowsort label-677
SELECT - 3 * + COUNT ( * ) + + 98 * 2 + 75 AS col1
----
268

query I rowsort
SELECT 73 - - COALESCE ( 33, 4 ) AS col0
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-679
SELECT ALL + - 87 - 31 * + + NULLIF ( + CAST( - 54 AS SIGNED ), ( - 10 ) * ( + 41 ) ) DIV CAST( COUNT( * ) - + 33 * + 87 AS SIGNED ) + + 68 DIV ( 98 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL + - 87 - 31 * + + NULLIF ( + CAST ( - 54 AS INTEGER ), ( - 10 ) * ( + 41 ) ) / CAST ( COUNT ( * ) - + 33 * + 87 AS INTEGER ) + + 68 / ( 98 ) AS col2
----
-87

query II rowsort
SELECT - 72 * + 70 AS col0, 49 AS col1
----
-5040
49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-681
SELECT - 42 * - CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) + + + 87 * 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-681
SELECT - 42 * - CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) + + + 87 * 75 AS col0
----
NULL

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

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

query II rowsort
SELECT ALL - 83 * + 20 col0, - CASE - - 22 WHEN - ( - 86 ) THEN 40 END
----
-1660
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-685
SELECT + COUNT( * ) + - - 47 AS col1, + 24 AS col2
----
48
24

skipif mysql # not compatible
query II rowsort label-685
SELECT + COUNT ( * ) + - - 47 AS col1, + 24 AS col2
----
48
24

query I rowsort
SELECT - 75 * + 91 AS col0
----
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT 52 * - CASE + + MAX( + - 36 ) WHEN MIN( - 6 ) * - AVG ( ALL + 22 ) THEN - 34 * 9 ELSE NULL END / 6 - + 59 * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-687
SELECT 52 * - CASE + + MAX ( + - 36 ) WHEN MIN ( - 6 ) * - AVG ( ALL + 22 ) THEN - 34 * 9 ELSE NULL END / 6 - + 59 * - 0
----
NULL

query I rowsort
SELECT DISTINCT + 89 * + 13
----
1157

onlyif mysql # aggregate syntax: 
query II rowsort label-689
SELECT ALL - 31 * 56, 45 + + COUNT( * ) AS col2
----
-1736
46

skipif mysql # not compatible
query II rowsort label-689
SELECT ALL - 31 * 56, 45 + + COUNT ( * ) AS col2
----
-1736
46

query I rowsort
SELECT - 62 + 58 AS col1
----
-4

query I rowsort
SELECT 83 + - 21 AS col0
----
62

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

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

query I rowsort
SELECT ALL ( + + 13 ) + 67 col1
----
80

query I rowsort
SELECT ALL - 89 + - 24 col0
----
-113

query I rowsort
SELECT 17 - 35 AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-696
SELECT - 34 DIV - 87 + - - CAST( + MAX( ALL - 99 ) AS SIGNED ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-696
SELECT - 34 / - 87 + - - CAST ( + MAX ( ALL - 99 ) AS INTEGER ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT ALL COUNT( * ) * - - 77
----
77

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL COUNT ( * ) * - - 77
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-698
SELECT - 64 * - CAST( NULL AS SIGNED ) + + 73 AS col1, + 62 + - 47
----
NULL
15

skipif mysql # not compatible
query II rowsort label-698
SELECT - 64 * - CAST ( NULL AS INTEGER ) + + 73 AS col1, + 62 + - 47
----
NULL
15

query I rowsort
SELECT CASE 69 WHEN + 4 THEN NULL ELSE - 25 END
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT 54 * + - ( CAST( NULL AS SIGNED ) ) + - ( + 55 ) - + 36 / ( 37 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-700
SELECT 54 * + - ( CAST ( NULL AS INTEGER ) ) + - ( + 55 ) - + 36 / ( 37 ) AS col2
----
NULL

query II rowsort
SELECT ALL - 91 * - 52 + + 1, 49 + 43 * + 69 col1
----
4733
3016

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT + 79 + + + 91 + - 3 DIV - - ( 71 ) + + 37
----
207

skipif mysql # not compatible
query I rowsort label-702
SELECT + 79 + + + 91 + - 3 / - - ( 71 ) + + 37
----
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-703
SELECT DISTINCT NULLIF ( 53, CASE + 50 WHEN CASE 32 WHEN + ( + 96 ) - - CAST( - 11 AS SIGNED ) * + 54 THEN NULL WHEN 8 + 83 THEN - 86 ELSE NULL END + + 71 THEN NULL WHEN 20 + 13 THEN NULL WHEN + 91 THEN 69 END DIV + COUNT( * ) ) * - ( 55 DIV 26 )
----
-106

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT NULLIF ( 53, CASE + 50 WHEN CASE 32 WHEN + ( + 96 ) - - CAST ( - 11 AS INTEGER ) * + 54 THEN NULL WHEN 8 + 83 THEN - 86 ELSE NULL END + + 71 THEN NULL WHEN 20 + 13 THEN NULL WHEN + 91 THEN 69 END / + COUNT ( * ) ) * - ( 55 / 26 )
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT + CASE 10 WHEN + COUNT( + 73 ) THEN - - 97 + 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-704
SELECT + CASE 10 WHEN + COUNT ( + 73 ) THEN - - 97 + 20 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT DISTINCT + + ( - 37 ) * - 25 - - 55 * 41 DIV + 97 - + 77 DIV - 43
----
949

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT + + ( - 37 ) * - 25 - - 55 * 41 / + 97 - + 77 / - 43
----
949

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT DISTINCT 78 DIV + - 63
----
-1

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT 78 / + - 63
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT - ( - COUNT( * ) ) + - 16 - COUNT( * ) * SUM( DISTINCT + CASE - 49 WHEN 1 * - 36 THEN + 23 * + 99 WHEN CASE 70 WHEN + 53 THEN - 83 ELSE NULL END THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-707
SELECT - ( - COUNT ( * ) ) + - 16 - COUNT ( * ) * SUM ( DISTINCT + CASE - 49 WHEN 1 * - 36 THEN + 23 * + 99 WHEN CASE 70 WHEN + 53 THEN - 83 ELSE NULL END THEN NULL END )
----
NULL

query I rowsort
SELECT - + 50 * - 8
----
400

query I rowsort
SELECT DISTINCT - ( 60 ) * - 21 * + 38 - - 7
----
47887

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT DISTINCT - - 22 * - MIN( ALL + 80 ) - - 16 AS col1
----
-1744

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT - - 22 * - MIN ( ALL + 80 ) - - 16 AS col1
----
-1744

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT - COUNT( * ) * - 50 + + - 34
----
16

skipif mysql # not compatible
query I rowsort label-711
SELECT - COUNT ( * ) * - 50 + + - 34
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL COUNT( - 9 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL COUNT ( - 9 ) AS col2
----
1

query I rowsort
SELECT + + 54 * - 27 AS col0
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT - - COUNT( * ) * + 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-714
SELECT - - COUNT ( * ) * + 56 AS col2
----
56

query I rowsort
SELECT ( + COALESCE ( + - 54, 43 ) )
----
-54

query II rowsort
SELECT 74 AS col2, - 63 + - ( COALESCE ( - + 16, + ( - COALESCE ( - ( 2 ), 52 + 26 ) ) + + 95 * 24 ) ) + - 49 * 36
----
74
-1811

query I rowsort
SELECT ALL - + 67 + 48 + + 44 * - 80
----
-3539

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT DISTINCT MIN( ALL 28 ) + - COUNT( * ) + + - 56 + + 40 * COALESCE ( 94, + 86 ) * - 59
----
-221869

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT MIN ( ALL 28 ) + - COUNT ( * ) + + - 56 + + 40 * COALESCE ( 94, + 86 ) * - 59
----
-221869

query II rowsort
SELECT 17, 5 col1
----
17
5

query II rowsort
SELECT - 25, 82 AS col0
----
-25
82

query I rowsort
SELECT ALL - 21 + + 13 AS col2
----
-8

query I rowsort
SELECT DISTINCT ( - 86 ) AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-723
SELECT - ( - 35 ) DIV ( ( - - 66 ) ) + + - 24 * 58
----
-1392

skipif mysql # not compatible
query I rowsort label-723
SELECT - ( - 35 ) / ( ( - - 66 ) ) + + - 24 * 58
----
-1392

query I rowsort
SELECT - 63 + 10 * - 98
----
-1043

query I rowsort
SELECT - 39 + + 90 AS col0
----
51

query I rowsort
SELECT - 98 - 38
----
-136

query I rowsort
SELECT - 27 * + - 88
----
2376

query I rowsort
SELECT - 4 * + 59 col2
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ALL - 85 + 13 - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL - 85 + 13 - COUNT ( * )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-730
SELECT ALL + 1 AS col0, + 35 + + ( - CASE WHEN NOT ( + CAST( ( - 42 ) AS DECIMAL ) ) IS NULL THEN NULL WHEN COUNT( * ) BETWEEN ( NULL ) AND + COALESCE ( ( - 92 ), 86 ) THEN CAST( 66 AS SIGNED ) END )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-730
SELECT ALL + 1 AS col0, + 35 + + ( - CASE WHEN NOT ( + CAST ( ( - 42 ) AS REAL ) ) IS NULL THEN NULL WHEN COUNT ( * ) BETWEEN ( NULL ) AND + COALESCE ( ( - 92 ), 86 ) THEN CAST ( 66 AS INTEGER ) END )
----
1
NULL

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

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

query I rowsort
SELECT ALL + CASE 11 WHEN 16 THEN NULL WHEN 84 THEN NULL ELSE 10 END AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-733
SELECT + 73 * - - 34, + COUNT( 80 ) + CAST( NULL AS SIGNED ) - 33 AS col0
----
2482
NULL

skipif mysql # not compatible
query II rowsort label-733
SELECT + 73 * - - 34, + COUNT ( 80 ) + CAST ( NULL AS INTEGER ) - 33 AS col0
----
2482
NULL

query I rowsort
SELECT 59 * 6 + + 53 * 79
----
4541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-735
SELECT + COUNT( * ) * - 6 DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-735
SELECT + COUNT ( * ) * - 6 / - 20
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-737
SELECT 85 DIV - 70 - COALESCE ( + SUM( DISTINCT - - 72 ), 35 + 59 ) DIV - MIN( 97 * 8 + 91 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-737
SELECT 85 / - 70 - COALESCE ( + SUM ( DISTINCT - - 72 ), 35 + 59 ) / - MIN ( 97 * 8 + 91 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-738
SELECT + 55 AS col0, - 69 DIV + 16 + - 67 + + COUNT( 30 )
----
55
-70

skipif mysql # not compatible
query II rowsort label-738
SELECT + 55 AS col0, - 69 / + 16 + - 67 + + COUNT ( 30 )
----
55
-70

query I rowsort
SELECT DISTINCT + - 80 col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT + + NULLIF ( 91, - + 15 ) - + - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-740
SELECT + + NULLIF ( 91, - + 15 ) - + - COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT ALL + 5 * - SUM( 36 ) + - 90 AS col2
----
-270

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL + 5 * - SUM ( 36 ) + - 90 AS col2
----
-270

query I rowsort
SELECT 35 * 44 * - - 80 - 99 + - 86 col0
----
123015

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT ALL 51 * - COUNT( * ) * - 53 AS col2
----
2703

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL 51 * - COUNT ( * ) * - 53 AS col2
----
2703

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT + + 69 - - + SUM( DISTINCT ( + - 87 ) ) + - - 40 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-744
SELECT + + 69 - - + SUM ( DISTINCT ( + - 87 ) ) + - - 40 AS col2
----
22

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

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

query I rowsort
SELECT + - 56 * + - 21 + + + 53 + - 95 + + 10 + - + 81 * 43 AS col1
----
-2339

query II rowsort
SELECT + 51 AS col0, 46
----
51
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-749
SELECT + + 78 DIV MIN( + + 90 )
----
0

skipif mysql # not compatible
query I rowsort label-749
SELECT + + 78 / MIN ( + + 90 )
----
0

query I rowsort
SELECT DISTINCT + 70 * + ( 56 ) + 25 + + 6 + 81 - + 11
----
4021

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT - NULLIF ( - - 0, 48 * + + 5 / + 23 - - 75 * 53 - - COUNT( * ) * 86 )
----
0

skipif mysql # not compatible
query I rowsort label-751
SELECT - NULLIF ( - - 0, 48 * + + 5 / + 23 - - 75 * 53 - - COUNT ( * ) * 86 )
----
0

query I rowsort
SELECT ALL + 27 * - + 11 + - 73 * - 73 * - + 10
----
-53587

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT ALL 53 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL 53 / 76
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-755
SELECT DISTINCT 79, COUNT( * ) AS col1
----
79
1

skipif mysql # not compatible
query II rowsort label-755
SELECT DISTINCT 79, COUNT ( * ) AS col1
----
79
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-756
SELECT ALL + 48 * - 46 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL + 48 * - 46 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 46, 24 + 76 )
----
46

query I rowsort
SELECT + 58 + + 93 * + - 32 AS col0
----
-2918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-759
SELECT ALL COALESCE ( - 37, - CAST( NULL AS SIGNED ) ) * - 81 * - 48 + 75 + 46 + ( 0 )
----
-143735

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL COALESCE ( - 37, - CAST ( NULL AS INTEGER ) ) * - 81 * - 48 + 75 + 46 + ( 0 )
----
-143735

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT SUM( ALL + + 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-760
SELECT SUM ( ALL + + 66 ) AS col0
----
66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-762
SELECT 27 + + 49 AS col1, COUNT( * ) DIV 89
----
76
0

skipif mysql # not compatible
query II rowsort label-762
SELECT 27 + + 49 AS col1, COUNT ( * ) / 89
----
76
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-763
SELECT ALL + 99 * + 7 * + COALESCE ( + COUNT( * ), + + 91 ) * - CAST( NULL AS SIGNED ) * - 35 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL + 99 * + 7 * + COALESCE ( + COUNT ( * ), + + 91 ) * - CAST ( NULL AS INTEGER ) * - 35 * COUNT ( * ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-765
SELECT NULLIF ( + + COUNT( * ), + 4 + + 62 ) + - COUNT( * ) * + + 53 DIV 64 + - ( - 79 )
----
80

skipif mysql # not compatible
query I rowsort label-765
SELECT NULLIF ( + + COUNT ( * ), + 4 + + 62 ) + - COUNT ( * ) * + + 53 / 64 + - ( - 79 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT 52 - 99 + - 76 * - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-766
SELECT 52 - 99 + - 76 * - COUNT ( * )
----
29

query II rowsort
SELECT ALL - 0 * - + 9 AS col1, - 8 AS col1
----
0
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-768
SELECT 26 * 32, - 7 DIV ( MAX( DISTINCT 20 ) ) AS col0
----
832
0

skipif mysql # not compatible
query II rowsort label-768
SELECT 26 * 32, - 7 / ( MAX ( DISTINCT 20 ) ) AS col0
----
832
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-769
SELECT 27 DIV - - NULLIF ( - 47, + MAX( 14 ) ) + 88 * 49 AS col1
----
4312

skipif mysql # not compatible
query I rowsort label-769
SELECT 27 / - - NULLIF ( - 47, + MAX ( 14 ) ) + 88 * 49 AS col1
----
4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-770
SELECT 28 DIV - 54 AS col2, + 45 AS col0, + - COUNT( * ) + + MIN( - 25 ) * + 33
----
0
45
-826

skipif mysql # not compatible
query III rowsort label-770
SELECT 28 / - 54 AS col2, + 45 AS col0, + - COUNT ( * ) + + MIN ( - 25 ) * + 33
----
0
45
-826

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ALL - - MAX( ALL + 22 ) col2
----
22

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL - - MAX ( ALL + 22 ) col2
----
22

query I rowsort
SELECT - 52 + 44 * - - 21 AS col1
----
872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-773
SELECT + 61 * NULLIF ( + - COUNT( * ), - - 79 + COALESCE ( - MAX( - 89 ), CAST( NULL AS DECIMAL ) + + 54 * - COALESCE ( + MAX( ALL + 24 ), - CASE + CAST( - 89 AS SIGNED ) WHEN - 50 THEN ( - 67 ) * - 56 WHEN + 48 THEN NULL END ) ) ) + + 81 * 66
----
5285

skipif mysql # not compatible
query I rowsort label-773
SELECT + 61 * NULLIF ( + - COUNT ( * ), - - 79 + COALESCE ( - MAX ( - 89 ), CAST ( NULL AS REAL ) + + 54 * - COALESCE ( + MAX ( ALL + 24 ), - CASE + CAST ( - 89 AS INTEGER ) WHEN - 50 THEN ( - 67 ) * - 56 WHEN + 48 THEN NULL END ) ) ) + + 81 * 66
----
5285

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

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

query I rowsort
SELECT 97 * - + 93 AS col1
----
-9021

onlyif mysql # DIV for integer division: 
query I rowsort label-777
SELECT + COALESCE ( 70, 42 * + 16 + - - 69 - - - 80 * 20, + 69 DIV 63 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-777
SELECT + COALESCE ( 70, 42 * + 16 + - - 69 - - - 80 * 20, + 69 / 63 ) AS col0
----
70

query I rowsort
SELECT - 27 * + + 29 AS col0
----
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT + 8 * - 85 + - COUNT( * ) AS col1
----
-681

skipif mysql # not compatible
query I rowsort label-779
SELECT + 8 * - 85 + - COUNT ( * ) AS col1
----
-681

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-780
SELECT 76 * + CAST( NULL AS DECIMAL ) / 15
----
NULL

skipif mysql # not compatible
query I rowsort label-780
SELECT 76 * + CAST ( NULL AS REAL ) / 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT ALL MIN( - - 7 ) + SUM( + - 70 ) + + + ( + + 18 )
----
-45

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL MIN ( - - 7 ) + SUM ( + - 70 ) + + + ( + + 18 )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-782
SELECT DISTINCT - 10 + 0 + - + 93 DIV - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT - 10 + 0 + - + 93 / - COUNT ( * )
----
83

query I rowsort
SELECT DISTINCT - 99 * + 93
----
-9207

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

query I rowsort
SELECT DISTINCT - 61 + - 52 AS col1
----
-113

query I rowsort
SELECT DISTINCT 69 * + - 54 col0
----
-3726

onlyif mysql # aggregate syntax: 
query II rowsort label-787
SELECT - 69 AS col2, COUNT( ALL - + 90 ) AS col2
----
-69
1

skipif mysql # not compatible
query II rowsort label-787
SELECT - 69 AS col2, COUNT ( ALL - + 90 ) AS col2
----
-69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT 3 * + - 93 - + CASE + 74 WHEN + 84 THEN + + 90 * + 40 * - - CASE - COUNT( * ) WHEN + 50 THEN + 4 END WHEN NULLIF ( + 51, - 97 ) THEN NULL ELSE 78 END AS col2
----
-357

skipif mysql # not compatible
query I rowsort label-788
SELECT 3 * + - 93 - + CASE + 74 WHEN + 84 THEN + + 90 * + 40 * - - CASE - COUNT ( * ) WHEN + 50 THEN + 4 END WHEN NULLIF ( + 51, - 97 ) THEN NULL ELSE 78 END AS col2
----
-357

query I rowsort
SELECT 27 + 74
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-790
SELECT ALL 79 AS col1, 96 * ( - CAST( - COUNT( * ) AS SIGNED ) ) DIV + + 50 + 91 AS col1
----
79
92

skipif mysql # not compatible
query II rowsort label-790
SELECT ALL 79 AS col1, 96 * ( - CAST ( - COUNT ( * ) AS INTEGER ) ) / + + 50 + 91 AS col1
----
79
92

query I rowsort
SELECT ALL 81 - - 99
----
180

query I rowsort
SELECT 11 * + - 14 AS col0
----
-154

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-793
SELECT DISTINCT 27 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT 27 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT COUNT( * ) - + 34
----
-33

skipif mysql # not compatible
query I rowsort label-794
SELECT COUNT ( * ) - + 34
----
-33

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

skipif mysql # not compatible
query I rowsort label-795
SELECT COUNT ( * ) * - - 24
----
24

query II rowsort
SELECT DISTINCT 48 col0, - 19 * + + 99 * ( + - 35 ) AS col2
----
48
65835

onlyif mysql # aggregate syntax: 
query II rowsort label-797
SELECT - 0, - 5 * - ( - + 2 ) + - 65 * - COUNT( * ) AS col2
----
0
55

skipif mysql # not compatible
query II rowsort label-797
SELECT - 0, - 5 * - ( - + 2 ) + - 65 * - COUNT ( * ) AS col2
----
0
55

query I rowsort
SELECT 52 + 30
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-799
SELECT ALL 54 AS col2, 56 DIV - COALESCE ( - 6, 6 DIV - COALESCE ( + - COUNT( * ), + - NULLIF ( 58, 91 * 94 ) + 1, - AVG ( ALL 28 ) ) ) AS col0
----
54
9

skipif mysql # not compatible
query II rowsort label-799
SELECT ALL 54 AS col2, 56 / - COALESCE ( - 6, 6 / - COALESCE ( + - COUNT ( * ), + - NULLIF ( 58, 91 * 94 ) + 1, - AVG ( ALL 28 ) ) ) AS col0
----
54
9

query I rowsort
SELECT DISTINCT 74 * + 0
----
0

query II rowsort
SELECT ALL 65 col0, - 40 AS col2
----
65
-40

query II rowsort
SELECT DISTINCT 28, - 5 AS col2
----
28
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT + NULLIF ( + - ( + SUM( - - 85 ) ), + 79 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-803
SELECT + NULLIF ( + - ( + SUM ( - - 85 ) ), + 79 ) AS col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-804
SELECT + 65 * - 87 * + 56 + + + 72 + ( - 4 ) AS col1, + NULLIF ( - - 90, - 68 ) DIV - ( 79 + + COUNT( * ) ) AS col0
----
-316612
-1

skipif mysql # not compatible
query II rowsort label-804
SELECT + 65 * - 87 * + 56 + + + 72 + ( - 4 ) AS col1, + NULLIF ( - - 90, - 68 ) / - ( 79 + + COUNT ( * ) ) AS col0
----
-316612
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-805
SELECT ALL - 55, + COUNT( * ) + 28 AS col1
----
-55
29

skipif mysql # not compatible
query II rowsort label-805
SELECT ALL - 55, + COUNT ( * ) + 28 AS col1
----
-55
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-806
SELECT + - NULLIF ( 66, - - 52 ) DIV - 89 * 87 + + COUNT( * ) * + + COUNT( * ) * + 86 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-806
SELECT + - NULLIF ( 66, - - 52 ) / - 89 * 87 + + COUNT ( * ) * + + COUNT ( * ) * + 86 AS col0
----
86

query I rowsort
SELECT ALL - 61 * - - 58
----
-3538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-808
SELECT COUNT( * ) - - + CASE - AVG ( ALL 45 ) WHEN - ( COUNT( * ) ) THEN NULL WHEN - AVG ( DISTINCT + - 45 ) THEN NULL WHEN - 96 * + 94 + + SUM( DISTINCT + 51 + 95 ) THEN 88 + CAST( NULL AS SIGNED ) * - COUNT( * ) END * COALESCE ( + 80, + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-808
SELECT COUNT ( * ) - - + CASE - AVG ( ALL 45 ) WHEN - ( COUNT ( * ) ) THEN NULL WHEN - AVG ( DISTINCT + - 45 ) THEN NULL WHEN - 96 * + 94 + + SUM ( DISTINCT + 51 + 95 ) THEN 88 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) END * COALESCE ( + 80, + 15 )
----
NULL

query II rowsort
SELECT ALL - 24 AS col0, - 8
----
-24
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT + + 54 * - 0 + 41 + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-810
SELECT + + 54 * - 0 + 41 + + COUNT ( * )
----
42

query II rowsort
SELECT + 64, 8 + + ( + 94 ) col0
----
64
102

query I rowsort
SELECT ALL + 31 + + + 63
----
94

query I rowsort
SELECT + 32 + + + 11 * - 80 * 94 AS col2
----
-82688

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

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT - 18 * + NULLIF ( 28, + - CASE - - 38 WHEN + - 92 THEN NULL ELSE - + COUNT( * ) END * - 90 + - 53 + 57 ) + COUNT( * )
----
-503

skipif mysql # not compatible
query I rowsort label-815
SELECT - 18 * + NULLIF ( 28, + - CASE - - 38 WHEN + - 92 THEN NULL ELSE - + COUNT ( * ) END * - 90 + - 53 + 57 ) + COUNT ( * )
----
-503

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

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

query I rowsort
SELECT DISTINCT 40 * 82
----
3280

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL COUNT( ALL + 32 ) * + - 39 * COALESCE ( - + 51, 56 ) - ( - 66 ) col1
----
2055

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL COUNT ( ALL + 32 ) * + - 39 * COALESCE ( - + 51, 56 ) - ( - 66 ) col1
----
2055

query I rowsort
SELECT ALL COALESCE ( - 66, - 65 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT - 45 + - - COUNT( 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-820
SELECT - 45 + - - COUNT ( 44 ) AS col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-821
SELECT + COALESCE ( 51, 68 DIV + 9 + - 42 ) + 9
----
60

skipif mysql # not compatible
query I rowsort label-821
SELECT + COALESCE ( 51, 68 / + 9 + - 42 ) + 9
----
60

query I rowsort
SELECT - 21 + 66 + 71 * - 48 AS col2
----
-3363

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT - 97 DIV - 49
----
1

skipif mysql # not compatible
query I rowsort label-823
SELECT - 97 / - 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT + COUNT( * ) * + 69 * - COALESCE ( - ( + 65 ), + ( 1 ) * + 95 ) AS col1
----
4485

skipif mysql # not compatible
query I rowsort label-824
SELECT + COUNT ( * ) * + 69 * - COALESCE ( - ( + 65 ), + ( 1 ) * + 95 ) AS col1
----
4485

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT + 15 + - 83 + + - COUNT( * ) + 36 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-825
SELECT + 15 + - 83 + + - COUNT ( * ) + 36 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT DISTINCT + MAX( ALL + 82 ) + 19 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT + MAX ( ALL + 82 ) + 19 AS col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-827
SELECT ALL 61 * + CASE ( - + SUM( ALL 5 ) ) WHEN - 38 + 59 / + SUM( - + 24 ) THEN NULL WHEN CAST( NULL AS DECIMAL ) * 9 THEN 94 * + 39 ELSE NULL END * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL 61 * + CASE ( - + SUM ( ALL 5 ) ) WHEN - 38 + 59 / + SUM ( - + 24 ) THEN NULL WHEN CAST ( NULL AS REAL ) * 9 THEN 94 * + 39 ELSE NULL END * 57 AS col0
----
NULL

query I rowsort
SELECT ALL ( - 27 ) + 2 AS col2
----
-25

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-830
SELECT ALL ( - 26 ) + + CAST( NULL AS SIGNED ) * 3 * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL ( - 26 ) + + CAST ( NULL AS INTEGER ) * 3 * 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT + 43 - - + COUNT( * ) + + + 27 * + 75 * - 20
----
-40456

skipif mysql # not compatible
query I rowsort label-831
SELECT + 43 - - + COUNT ( * ) + + + 27 * + 75 * - 20
----
-40456

query I rowsort
SELECT DISTINCT 13 * + 75 - + 37
----
938

query I rowsort
SELECT ALL 17 + - ( + 37 ) AS col0
----
-20

query I rowsort
SELECT + 87 + ( 25 ) AS col2
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-835
SELECT + MIN( - NULLIF ( 38, - - 53 * - 3 ) ) + + + CAST( + 99 AS SIGNED ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-835
SELECT + MIN ( - NULLIF ( 38, - - 53 * - 3 ) ) + + + CAST ( + 99 AS INTEGER ) AS col0
----
61

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-837
SELECT - ( - 12 ) / 30 + CAST( NULL AS SIGNED ) - + - 42 * + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-837
SELECT - ( - 12 ) / 30 + CAST ( NULL AS INTEGER ) - + - 42 * + 45 AS col1
----
NULL

query I rowsort
SELECT ALL - 79 * - 59 + 72 + - 41 AS col2
----
4692

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

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT + 25 * 23 DIV + 30 + - 72 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-840
SELECT + 25 * 23 / + 30 + - 72 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT + - MAX( CASE - 93 WHEN 77 THEN 1 ELSE + 31 END )
----
-31

skipif mysql # not compatible
query I rowsort label-841
SELECT + - MAX ( CASE - 93 WHEN 77 THEN 1 ELSE + 31 END )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-842
SELECT DISTINCT 91 * + + CASE - - CASE + CAST( - + 93 AS SIGNED ) WHEN - 13 * + + ( + - ( + ( + 46 ) ) ) * - 70 THEN CASE + CAST( ( 40 ) AS SIGNED ) WHEN 28 THEN NULL ELSE ( 14 ) + MIN( ALL 35 - 34 ) END * + 53 + 20 END WHEN - 28 THEN NULL WHEN 63 * - 98 THEN 17 ELSE NULL END + NULLIF ( - CAST( - COUNT( * ) AS SIGNED ), 69 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT 91 * + + CASE - - CASE + CAST ( - + 93 AS INTEGER ) WHEN - 13 * + + ( + - ( + ( + 46 ) ) ) * - 70 THEN CASE + CAST ( ( 40 ) AS INTEGER ) WHEN 28 THEN NULL ELSE ( 14 ) + MIN ( ALL 35 - 34 ) END * + 53 + 20 END WHEN - 28 THEN NULL WHEN 63 * - 98 THEN 17 ELSE NULL END + NULLIF ( - CAST ( - COUNT ( * ) AS INTEGER ), 69 ) AS col0
----
NULL

query II rowsort
SELECT + + 46 + + 35 AS col0, 80
----
81
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-844
SELECT ALL - 43 * + - 97 * 18 * 25 - CAST( + 71 AS SIGNED ) + + 82 AS col1
----
1876961

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL - 43 * + - 97 * 18 * 25 - CAST ( + 71 AS INTEGER ) + + 82 AS col1
----
1876961

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT DISTINCT + ( - COALESCE ( + COALESCE ( SUM( ALL - 99 ), - + 57 ), - COUNT( * ), + - 22 ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT + ( - COALESCE ( + COALESCE ( SUM ( ALL - 99 ), - + 57 ), - COUNT ( * ), + - 22 ) ) AS col2
----
99

query I rowsort
SELECT - 73 * - 13
----
949

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

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

query II rowsort
SELECT ALL + - ( + 68 ) AS col1, - 92 - + 57 AS col1
----
-68
-149

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-849
SELECT CASE + 4 WHEN - 28 THEN - + 33 * 87 * - 47 * + 64 + + 21 ELSE NULL END * + 50 * + ( + CAST( NULL AS DECIMAL ) ) + + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-849
SELECT CASE + 4 WHEN - 28 THEN - + 33 * 87 * - 47 * + 64 + + 21 ELSE NULL END * + 50 * + ( + CAST ( NULL AS REAL ) ) + + 81 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT - 62 DIV + 71 * + 38 + - + ( - + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-850
SELECT - 62 / + 71 * + 38 + - + ( - + 25 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-851
SELECT ALL - - 70 * + CAST( NULL AS SIGNED ) * + 49 - - COUNT( * ) AS col1, - 86 col2
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-851
SELECT ALL - - 70 * + CAST ( NULL AS INTEGER ) * + 49 - - COUNT ( * ) AS col1, - 86 col2
----
NULL
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT + + MIN( DISTINCT - COALESCE ( - 76, + + 19 + 18, + 67 ) ) * - 2 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-852
SELECT + + MIN ( DISTINCT - COALESCE ( - 76, + + 19 + 18, + 67 ) ) * - 2 AS col1
----
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-853
SELECT DISTINCT + CASE + 65 WHEN - NULLIF ( + MIN( ( + 88 ) ), + + 51 ) THEN + - 57 ELSE NULL END AS col2, + 85 + 93 AS col0
----
NULL
178

skipif mysql # not compatible
query II rowsort label-853
SELECT DISTINCT + CASE + 65 WHEN - NULLIF ( + MIN ( ( + 88 ) ), + + 51 ) THEN + - 57 ELSE NULL END AS col2, + 85 + 93 AS col0
----
NULL
178

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL - COUNT( * ) * - 37 * + - ( 32 ) AS col0
----
-1184

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL - COUNT ( * ) * - 37 * + - ( 32 ) AS col0
----
-1184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-855
SELECT - 13 * + + CASE COALESCE ( + ( - 68 ), + 99 ) WHEN - 0 THEN - 97 END * - - 31 - + CAST( NULL AS SIGNED ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-855
SELECT - 13 * + + CASE COALESCE ( + ( - 68 ), + 99 ) WHEN - 0 THEN - 97 END * - - 31 - + CAST ( NULL AS INTEGER ) + - 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-856
SELECT - COUNT( * ) DIV + COUNT( ALL - COALESCE ( ( + 98 ), + 97 * - - 96 * 46 + - 17 * 81 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-856
SELECT - COUNT ( * ) / + COUNT ( ALL - COALESCE ( ( + 98 ), + 97 * - - 96 * 46 + - 17 * 81 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-857
SELECT ALL + MAX( 17 ) DIV + 84 col1, + COALESCE ( + 9, - + ( - ( + 55 ) ), - COUNT( DISTINCT - - 4 ) ) + MAX( DISTINCT 57 )
----
0
66

skipif mysql # not compatible
query II rowsort label-857
SELECT ALL + MAX ( 17 ) / + 84 col1, + COALESCE ( + 9, - + ( - ( + 55 ) ), - COUNT ( DISTINCT - - 4 ) ) + MAX ( DISTINCT 57 )
----
0
66

query I rowsort
SELECT - 45 * - 66 * - - 28 AS col0
----
83160

query I rowsort
SELECT - 4 - - 17
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT - 21 * + 19 * + 27 * + COUNT( * )
----
-10773

skipif mysql # not compatible
query I rowsort label-860
SELECT - 21 * + 19 * + 27 * + COUNT ( * )
----
-10773

query I rowsort
SELECT - 27 + + + 91
----
64

query I rowsort
SELECT DISTINCT ( + COALESCE ( - 60, - 78 - - + 12, + ( 3 ) ) ) col2
----
-60

query I rowsort
SELECT ALL ( 91 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT + 75 * 51 + + 85 * + COUNT( * ) AS col1
----
3910

skipif mysql # not compatible
query I rowsort label-864
SELECT + 75 * 51 + + 85 * + COUNT ( * ) AS col1
----
3910

query I rowsort
SELECT ALL + 68 + + 1 AS col0
----
69

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

skipif mysql # not compatible
query I rowsort label-866
SELECT - 91 * + COUNT ( * ) * - + 90 AS col0
----
8190

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-867
SELECT DISTINCT + CAST( - 45 AS DECIMAL ) + - CAST( NULL AS SIGNED ) * + + ( 30 ) * - 2 + ( + 62 ) + + - 0 / - + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT + CAST ( - 45 AS REAL ) + - CAST ( NULL AS INTEGER ) * + + ( 30 ) * - 2 + ( + 62 ) + + - 0 / - + 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT DISTINCT 20 + - 23 * ( + CASE - 74 WHEN ( + + 18 ) THEN NULL ELSE - 92 + + COUNT( * ) END ) AS col0
----
2113

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT 20 + - 23 * ( + CASE - 74 WHEN ( + + 18 ) THEN NULL ELSE - 92 + + COUNT ( * ) END ) AS col0
----
2113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-869
SELECT DISTINCT 79 + - COALESCE ( 59, 9 * - 14 + COUNT( * ) * COUNT( * ) * + 3 + - 16 + - CASE 12 WHEN - 46 * 7 THEN - CAST( NULL AS SIGNED ) * + 23 ELSE NULL END + 95 ) * - ( + 69 ) AS col1
----
4150

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT 79 + - COALESCE ( 59, 9 * - 14 + COUNT ( * ) * COUNT ( * ) * + 3 + - 16 + - CASE 12 WHEN - 46 * 7 THEN - CAST ( NULL AS INTEGER ) * + 23 ELSE NULL END + 95 ) * - ( + 69 ) AS col1
----
4150

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

query I rowsort
SELECT ALL 55 + + 32
----
87

query I rowsort
SELECT - 14 + + + 24 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT - COUNT( DISTINCT - - 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-873
SELECT - COUNT ( DISTINCT - - 47 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-874
SELECT + - 86 + 41 + + + 43 DIV - 28 - 92
----
-138

skipif mysql # not compatible
query I rowsort label-874
SELECT + - 86 + 41 + + + 43 / - 28 - 92
----
-138

query I rowsort
SELECT ALL + 5 + 76 AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-876
SELECT + - 67 * COUNT( + 65 ) * ( + - ( 26 ) ) * 46 + - - 31 DIV + COUNT( * ) AS col1
----
80163

skipif mysql # not compatible
query I rowsort label-876
SELECT + - 67 * COUNT ( + 65 ) * ( + - ( 26 ) ) * 46 + - - 31 / + COUNT ( * ) AS col1
----
80163

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

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL + 56 / COUNT ( * )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-878
SELECT + COALESCE ( 8, 4 * + - NULLIF ( + CAST( NULL AS SIGNED ), - 14 ) + + 50 ) DIV - ( - + SUM( 46 ) ) * COUNT( * ) + 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-878
SELECT + COALESCE ( 8, 4 * + - NULLIF ( + CAST ( NULL AS INTEGER ), - 14 ) + + 50 ) / - ( - + SUM ( 46 ) ) * COUNT ( * ) + 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL + - COUNT( 12 ) + - - 50
----
49

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL + - COUNT ( 12 ) + - - 50
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-880
SELECT ALL + + COUNT( * ) DIV ( - 72 ) - + 51
----
-51

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL + + COUNT ( * ) / ( - 72 ) - + 51
----
-51

query I rowsort
SELECT DISTINCT + + COALESCE ( - - 35, + 20 * + 19 + - 41, + 6 + - 16 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT - COUNT( + 44 ) + + MAX( ALL 11 ) + + 72 * + 16 * + 4 AS col2
----
4618

skipif mysql # not compatible
query I rowsort label-882
SELECT - COUNT ( + 44 ) + + MAX ( ALL 11 ) + + 72 * + 16 * + 4 AS col2
----
4618

query II rowsort
SELECT 23, 71 col2
----
23
71

query I rowsort
SELECT ALL 31 * 86 AS col1
----
2666

query I rowsort
SELECT + + 9 * 26 AS col0
----
234

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-887
SELECT - 30 DIV ( + + MIN( + 24 ) ) + - + 23 + ( - - 93 )
----
69

skipif mysql # not compatible
query I rowsort label-887
SELECT - 30 / ( + + MIN ( + 24 ) ) + - + 23 + ( - - 93 )
----
69

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

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

query I rowsort
SELECT CASE - 76 WHEN - + 71 THEN NULLIF ( + + 85, + + 16 ) * + 63 - 25 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-890
SELECT + 37 - ( + - 68 ) + COALESCE ( + CASE - - CASE - 63 WHEN + + 72 THEN NULL ELSE + - 32 END WHEN - ( 30 ) * - 65 - - 90 THEN + 15 + - 8 WHEN + 0 THEN NULL END, 53 ) * ( - 97 * COALESCE ( 91, - NULLIF ( ( + 61 ), - MAX( ALL 61 ) ), 8 * 38 - 34 * - ( ( 72 ) + 12 * - CAST( NULL AS SIGNED ) ) ) ) AS col2
----
-467726

skipif mysql # not compatible
query I rowsort label-890
SELECT + 37 - ( + - 68 ) + COALESCE ( + CASE - - CASE - 63 WHEN + + 72 THEN NULL ELSE + - 32 END WHEN - ( 30 ) * - 65 - - 90 THEN + 15 + - 8 WHEN + 0 THEN NULL END, 53 ) * ( - 97 * COALESCE ( 91, - NULLIF ( ( + 61 ), - MAX ( ALL 61 ) ), 8 * 38 - 34 * - ( ( 72 ) + 12 * - CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
-467726

query II rowsort
SELECT ALL - 10 AS col2, + 50 * - + 49
----
-10
-2450

query I rowsort
SELECT 20 + 53
----
73

query I rowsort
SELECT ALL + 72 * 92 AS col2
----
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT ( + 23 ) * - 90 + - 66 * - COUNT( * ) - - 90
----
-1914

skipif mysql # not compatible
query I rowsort label-894
SELECT ( + 23 ) * - 90 + - 66 * - COUNT ( * ) - - 90
----
-1914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-895
SELECT ALL - 72 col0, CASE + - 78 WHEN 42 THEN NULL WHEN 11 THEN NULL WHEN + 9 THEN NULL WHEN MIN( DISTINCT - + 91 ) / - 96 * + - 68 THEN - + 22 * CAST( - 36 AS SIGNED ) + 67 ELSE NULL END + 67 * 97
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-895
SELECT ALL - 72 col0, CASE + - 78 WHEN 42 THEN NULL WHEN 11 THEN NULL WHEN + 9 THEN NULL WHEN MIN ( DISTINCT - + 91 ) / - 96 * + - 68 THEN - + 22 * CAST ( - 36 AS INTEGER ) + 67 ELSE NULL END + 67 * 97
----
-72
NULL

query I rowsort
SELECT 10 + ( + 21 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT - 46 * + COUNT( * ) + + 69
----
23

skipif mysql # not compatible
query I rowsort label-897
SELECT - 46 * + COUNT ( * ) + + 69
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-898
SELECT ( 22 ) DIV + - MAX( 74 ) AS col2, - 94 + - 77 * 1 AS col2
----
0
-171

skipif mysql # not compatible
query II rowsort label-898
SELECT ( 22 ) / + - MAX ( 74 ) AS col2, - 94 + - 77 * 1 AS col2
----
0
-171

query I rowsort
SELECT 62 * 58
----
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT 65 + - + COUNT( ALL + - 85 ) * - - 5
----
60

skipif mysql # not compatible
query I rowsort label-900
SELECT 65 + - + COUNT ( ALL + - 85 ) * - - 5
----
60

query II rowsort
SELECT + 40, 11 AS col0
----
40
11

query I rowsort
SELECT ALL + 37 + - 65
----
-28

query I rowsort
SELECT 52 * - - 12 AS col1
----
624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-904
SELECT 61 * - 72 DIV - + COALESCE ( + - COUNT( * ), + 89 * - - 46 * - 62, ( - + CASE + - SUM( DISTINCT - 68 ) WHEN - 96 THEN NULL WHEN - NULLIF ( + 61, - COUNT( * ) ) THEN + CAST( 43 AS SIGNED ) + + 61 ELSE - 2 + - 82 END ) )
----
-4392

skipif mysql # not compatible
query I rowsort label-904
SELECT 61 * - 72 / - + COALESCE ( + - COUNT ( * ), + 89 * - - 46 * - 62, ( - + CASE + - SUM ( DISTINCT - 68 ) WHEN - 96 THEN NULL WHEN - NULLIF ( + 61, - COUNT ( * ) ) THEN + CAST ( 43 AS INTEGER ) + + 61 ELSE - 2 + - 82 END ) )
----
-4392

query I rowsort
SELECT 64 + 32 + + - 43 AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-906
SELECT ALL - 10 DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL - 10 / + 27
----
0

query I rowsort
SELECT ALL - 37 + - 52 * + - 77 AS col1
----
3967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-908
SELECT ( + - ( + - CAST( - + 41 AS SIGNED ) ) ) + - + 79 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-908
SELECT ( + - ( + - CAST ( - + 41 AS INTEGER ) ) ) + - + 79 AS col0
----
-120

query I rowsort
SELECT 87 * 36 AS col2
----
3132

query I rowsort
SELECT + 69 + + - 41 + + + 8
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-911
SELECT - - COUNT( DISTINCT 27 ) AS col1, 4 * 78 * 8
----
1
2496

skipif mysql # not compatible
query II rowsort label-911
SELECT - - COUNT ( DISTINCT 27 ) AS col1, 4 * 78 * 8
----
1
2496

onlyif mysql # DIV for integer division: 
query I rowsort label-912
SELECT DISTINCT + 7 + - 85 DIV + + 91 - + + COALESCE ( + 70, - ( - 96 ), - 38, - 2 )
----
-63

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT + 7 + - 85 / + + 91 - + + COALESCE ( + 70, - ( - 96 ), - 38, - 2 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT 27 + + - ( - - 96 ) + COUNT( * ) * + - 15
----
-84

skipif mysql # not compatible
query I rowsort label-913
SELECT 27 + + - ( - - 96 ) + COUNT ( * ) * + - 15
----
-84

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

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT 20 + + 10 + 91 + + 16 + + 25 * + 30 DIV + 30 + + 94 col0
----
256

skipif mysql # not compatible
query I rowsort label-915
SELECT 20 + + 10 + 91 + + 16 + + 25 * + 30 / + 30 + + 94 col0
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT ALL COALESCE ( 67, + + ( - 96 ), ( + COUNT( * ) ) )
----
67

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL COALESCE ( 67, + + ( - 96 ), ( + COUNT ( * ) ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT MIN( DISTINCT 91 ) * + 71 AS col1
----
6461

skipif mysql # not compatible
query I rowsort label-917
SELECT MIN ( DISTINCT 91 ) * + 71 AS col1
----
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT 97 + - + COUNT( - 69 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-918
SELECT 97 + - + COUNT ( - 69 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL + 33 - ( - + COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL + 33 - ( - + COUNT ( * ) )
----
34

query II rowsort
SELECT 19 AS col1, - 40 AS col2
----
19
-40

query I rowsort
SELECT 45 * 72 AS col1
----
3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-922
SELECT CAST( 38 AS SIGNED ) * - 71 * + - 93 + + COUNT( * ) + + + COUNT( * )
----
250916

skipif mysql # not compatible
query I rowsort label-922
SELECT CAST ( 38 AS INTEGER ) * - 71 * + - 93 + + COUNT ( * ) + + + COUNT ( * )
----
250916

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-923
SELECT 78 * + + NULLIF ( + 92, + ( + - 89 ) + - MAX( ALL 90 ) ) + 40 DIV - 5
----
7168

skipif mysql # not compatible
query I rowsort label-923
SELECT 78 * + + NULLIF ( + 92, + ( + - 89 ) + - MAX ( ALL 90 ) ) + 40 / - 5
----
7168

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT - 90 DIV - 82 + - - 87
----
88

skipif mysql # not compatible
query I rowsort label-924
SELECT - 90 / - 82 + - - 87
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-925
SELECT ALL - 66, + 78 + - CAST( NULL AS DECIMAL ) + + - 19 * - 85 * + 27 AS col1
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-925
SELECT ALL - 66, + 78 + - CAST ( NULL AS REAL ) + + - 19 * - 85 * + 27 AS col1
----
-66
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT DISTINCT - 39 DIV 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT - 39 / 87 AS col2
----
0

query I rowsort
SELECT 68 * 4 AS col1
----
272

query II rowsort
SELECT 20 * 33 AS col0, + NULLIF ( 94, + + ( + - 93 ) ) * - 39
----
660
-3666

query I rowsort
SELECT ALL 16 * + 13 AS col2
----
208

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-930
SELECT COUNT( * ) * + - 82, + 25 + + CASE - + 31 WHEN - CASE 24 WHEN 6 THEN 15 * 78 * - 99 + + - 43 END THEN NULL ELSE 75 * + COUNT( * ) END + + 13 DIV 53 AS col0
----
-82
100

skipif mysql # not compatible
query II rowsort label-930
SELECT COUNT ( * ) * + - 82, + 25 + + CASE - + 31 WHEN - CASE 24 WHEN 6 THEN 15 * 78 * - 99 + + - 43 END THEN NULL ELSE 75 * + COUNT ( * ) END + + 13 / 53 AS col0
----
-82
100

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

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

query I rowsort
SELECT DISTINCT 10 + - + 99 + 42 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT DISTINCT + 96 + + + COUNT( * ) * + - 25
----
71

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT + 96 + + + COUNT ( * ) * + - 25
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-934
SELECT ( + ( CAST( + 88 AS SIGNED ) ) ) * 69 * + 15
----
91080

skipif mysql # not compatible
query I rowsort label-934
SELECT ( + ( CAST ( + 88 AS INTEGER ) ) ) * 69 * + 15
----
91080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-935
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + - + 37 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + - + 37 AS col0
----
-36

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

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT - COUNT ( * ) * + 13 col2
----
-13

query I rowsort
SELECT 14 * + 3 - + 32 * + 86
----
-2710

query I rowsort
SELECT 87 + + 23 col0
----
110

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

onlyif mysql # aggregate syntax: 
query II rowsort label-940
SELECT - SUM( - 66 ) AS col2, - 61 * COUNT( * )
----
66
-61

skipif mysql # not compatible
query II rowsort label-940
SELECT - SUM ( - 66 ) AS col2, - 61 * COUNT ( * )
----
66
-61

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

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

query I rowsort
SELECT 99 * + 31
----
3069

query II rowsort
SELECT 70 * + 9, - 56 AS col1
----
630
-56

query I rowsort
SELECT ALL 63 * - 32 AS col1
----
-2016

query I rowsort
SELECT DISTINCT 68 * + + ( - - 91 )
----
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-946
SELECT DISTINCT - + 89 DIV - 26 * CAST( COUNT( * ) AS SIGNED ) DIV - COUNT( * ) * + COUNT( * ) + - 15 * + 62 - - 17
----
-916

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT - + 89 / - 26 * CAST ( COUNT ( * ) AS INTEGER ) / - COUNT ( * ) * + COUNT ( * ) + - 15 * + 62 - - 17
----
-916

query I rowsort
SELECT + 60 + + COALESCE ( 36, 50 + 62 ) * 65
----
2400

query I rowsort
SELECT + 69 * - 14 * + 90 AS col2
----
-86940

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-949
SELECT ALL - - 22 DIV - - CAST( 8 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL - - 22 / - - CAST ( 8 AS INTEGER )
----
2

query II rowsort
SELECT DISTINCT ( - 22 ) col0, + 58 AS col1
----
-22
58

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT ALL - + 34 * 69 * - - COUNT( * )
----
-2346

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL - + 34 * 69 * - - COUNT ( * )
----
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT DISTINCT - + 17 * + - SUM( DISTINCT - + 15 )
----
-255

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT - + 17 * + - SUM ( DISTINCT - + 15 )
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT - - SUM( - 12 ) * 51
----
-612

skipif mysql # not compatible
query I rowsort label-953
SELECT - - SUM ( - 12 ) * 51
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT ALL - NULLIF ( - 79, - 93 + - 53 + - COUNT( * ) * - + NULLIF ( 77, - - 70 ) * + 55 / ( + - 56 ) ) * - 95 + 19 AS col2
----
-7486

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL - NULLIF ( - 79, - 93 + - 53 + - COUNT ( * ) * - + NULLIF ( 77, - - 70 ) * + 55 / ( + - 56 ) ) * - 95 + 19 AS col2
----
-7486

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-955
SELECT COALESCE ( 24, + ( COUNT( * ) ) + - ( - 64 ) DIV + 25 * + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-955
SELECT COALESCE ( 24, + ( COUNT ( * ) ) + - ( - 64 ) / + 25 * + 24 ) AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT - 1 * - 8 DIV + ( + 82 ) + + 80
----
80

skipif mysql # not compatible
query I rowsort label-956
SELECT - 1 * - 8 / + ( + 82 ) + + 80
----
80

query I rowsort
SELECT COALESCE ( + 99, 8 ) col0
----
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-959
SELECT 18 DIV + 2 + - + 30 col1
----
-21

skipif mysql # not compatible
query I rowsort label-959
SELECT 18 / + 2 + - + 30 col1
----
-21

query I rowsort
SELECT + 87 * - - 32 col1
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT DISTINCT 69 * + 90 * + 8 * - COUNT( * ) + - - 7
----
-49673

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT 69 * + 90 * + 8 * - COUNT ( * ) + - - 7
----
-49673

query I rowsort
SELECT ALL NULLIF ( + + 8, - 2 + - 51 ) * 82 + - + 36
----
620

query I rowsort
SELECT ALL 62 * + 86 * - 19
----
-101308

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ALL 81 * COUNT( ALL - + 23 ) + - SUM( + 95 )
----
-14

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL 81 * COUNT ( ALL - + 23 ) + - SUM ( + 95 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT + COUNT( * ) * + CASE - - 83 WHEN 84 THEN - - 50 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-966
SELECT + COUNT ( * ) * + CASE - - 83 WHEN 84 THEN - - 50 END AS col1
----
NULL

query I rowsort
SELECT + 97 - + + 51
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-968
SELECT ALL 3 * 39 DIV 22
----
5

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL 3 * 39 / 22
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT DISTINCT 61 * + + COUNT( * ) * COUNT( * ) * 20
----
1220

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT 61 * + + COUNT ( * ) * COUNT ( * ) * 20
----
1220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-970
SELECT + 18 * + CAST( + 5 AS SIGNED ) + + - 61 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-970
SELECT + 18 * + CAST ( + 5 AS INTEGER ) + + - 61 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT + SUM( ALL + 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-971
SELECT + SUM ( ALL + 51 ) col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT SUM( + 47 ) col1
----
47

skipif mysql # not compatible
query I rowsort label-972
SELECT SUM ( + 47 ) col1
----
47

query II rowsort
SELECT ALL + 41 col2, + 9 AS col1
----
41
9

query I rowsort
SELECT ALL 37 * + 50 - - + 39 + + ( 0 ) * + 44 + - 91
----
1798

query I rowsort
SELECT + 61 + + 82 * - 74 - - 52 AS col1
----
-5955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-976
SELECT ALL - 47 * - + COUNT( * ) * + - SUM( - ( ( + 43 ) ) ), + 76 * 13 - 13 + + + 69 + + CAST( + 39 AS SIGNED ) + 45 * - 42 AS col0
----
2021
-807

skipif mysql # not compatible
query II rowsort label-976
SELECT ALL - 47 * - + COUNT ( * ) * + - SUM ( - ( ( + 43 ) ) ), + 76 * 13 - 13 + + + 69 + + CAST ( + 39 AS INTEGER ) + 45 * - 42 AS col0
----
2021
-807

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

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

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

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL SUM ( - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-979
SELECT + - 88 * + ( COUNT( * ) ) AS col0, + 59
----
-88
59

skipif mysql # not compatible
query II rowsort label-979
SELECT + - 88 * + ( COUNT ( * ) ) AS col0, + 59
----
-88
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-980
SELECT DISTINCT - COALESCE ( - 12, - AVG ( + 18 ) DIV + 64 - - ( - CASE + 57 WHEN - 53 THEN ( + 59 ) + - ( 18 ) + 5 * 43 WHEN COUNT( * ) THEN ( COUNT( * ) ) + + 51 END ), - COUNT( * ) * + 80 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT - COALESCE ( - 12, - AVG ( + 18 ) / + 64 - - ( - CASE + 57 WHEN - 53 THEN ( + 59 ) + - ( 18 ) + 5 * 43 WHEN COUNT ( * ) THEN ( COUNT ( * ) ) + + 51 END ), - COUNT ( * ) * + 80 ) AS col0
----
12

query I rowsort
SELECT + 28 + - - 92 AS col0
----
120

query II rowsort
SELECT - + 82 AS col1, - 92 * 11 AS col1
----
-82
-1012

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-984
SELECT DISTINCT CAST( - 62 AS SIGNED ) + - CAST( + 14 AS SIGNED ) + + ( - COUNT( * ) ) - COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT CAST ( - 62 AS INTEGER ) + - CAST ( + 14 AS INTEGER ) + + ( - COUNT ( * ) ) - COUNT ( * ) AS col0
----
-78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT + + 86 + + - MAX( ALL + - 93 )
----
179

skipif mysql # not compatible
query I rowsort label-986
SELECT + + 86 + + - MAX ( ALL + - 93 )
----
179

query I rowsort
SELECT + 70 * 6
----
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-988
SELECT - COUNT( * ) + - + CASE ( + - 47 ) WHEN - ( - - ( 42 ) ) * - + COUNT( * ) - AVG ( - ( + - 66 ) ) + + + 96 * - ( 78 ) + ( ( ( + CAST( - 86 AS SIGNED ) ) ) ) THEN - 20 ELSE - CASE ( + 45 ) WHEN - COUNT( * ) - - 12 THEN NULL ELSE + ( ( - 75 ) ) + - 73 END * 87 END + - 24
----
-12901

skipif mysql # not compatible
query I rowsort label-988
SELECT - COUNT ( * ) + - + CASE ( + - 47 ) WHEN - ( - - ( 42 ) ) * - + COUNT ( * ) - AVG ( - ( + - 66 ) ) + + + 96 * - ( 78 ) + ( ( ( + CAST ( - 86 AS INTEGER ) ) ) ) THEN - 20 ELSE - CASE ( + 45 ) WHEN - COUNT ( * ) - - 12 THEN NULL ELSE + ( ( - 75 ) ) + - 73 END * 87 END + - 24
----
-12901

query I rowsort
SELECT + ( - 44 ) * + 58 + - NULLIF ( - 76, + 23 + + + 41 )
----
-2476

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT - 53 + - - MIN( - + 94 )
----
-147

skipif mysql # not compatible
query I rowsort label-990
SELECT - 53 + - - MIN ( - + 94 )
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-991
SELECT ALL + CAST( NULL AS SIGNED ) / - - 98 * + CAST( AVG ( ( - - 77 ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL + CAST ( NULL AS INTEGER ) / - - 98 * + CAST ( AVG ( ( - - 77 ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT - CASE - + 86 WHEN - 87 / + 6 - + + 87 THEN - 43 * 79 END + ( + 48 ) + - + MIN( DISTINCT + + 15 ) * - - 84 - 65 * MIN( DISTINCT 2 ) * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT - CASE - + 86 WHEN - 87 / + 6 - + + 87 THEN - 43 * 79 END + ( + 48 ) + - + MIN ( DISTINCT + + 15 ) * - - 84 - 65 * MIN ( DISTINCT 2 ) * + 12
----
NULL

query I rowsort
SELECT - 75 * - 45 AS col1
----
3375

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

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

query I rowsort
SELECT ALL + ( + 30 ) AS col1
----
30

query I rowsort
SELECT ALL - 23 * + - 40
----
920

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT ALL 3 DIV + 41 + + - 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL 3 / + 41 + + - 3 AS col2
----
-3

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

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

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

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

query I rowsort
SELECT - 73 + + + 74 * + + 69 AS col2
----
5033

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1001
SELECT ALL + COALESCE ( + - 94, + 91, 5 * - 48 DIV - MAX( + 73 ) * + - 46 * - 40 )
----
-94

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL + COALESCE ( + - 94, + 91, 5 * - 48 / - MAX ( + 73 ) * + - 46 * - 40 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT - CASE - 12 WHEN - 37 THEN + - 89 + 65 * - SUM( 38 ) WHEN + + 87 THEN - + 77 * - AVG ( + 54 ) - 79 ELSE NULL END / - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT - CASE - 12 WHEN - 37 THEN + - 89 + 65 * - SUM ( 38 ) WHEN + + 87 THEN - + 77 * - AVG ( + 54 ) - 79 ELSE NULL END / - 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1003
SELECT + COUNT( * ) * - 55 + + CASE - CAST( - 47 AS SIGNED ) WHEN + 78 THEN - 93 * + + 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1003
SELECT + COUNT ( * ) * - 55 + + CASE - CAST ( - 47 AS INTEGER ) WHEN + 78 THEN - 93 * + + 85 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1004
SELECT DISTINCT + 39 * + CASE + - 46 WHEN + + CASE 67 WHEN - + ( + NULLIF ( + COUNT( + - 18 ), - 96 * - 90 + - 72 + - 39 ) ) + + 83 + COUNT( 71 ) THEN 90 + MAX( + 33 ) END THEN NULL WHEN 42 + + COUNT( * ) THEN CAST( 35 AS SIGNED ) * 45 ELSE - 63 + 32 END * ( 26 ) AS col1
----
-31434

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT + 39 * + CASE + - 46 WHEN + + CASE 67 WHEN - + ( + NULLIF ( + COUNT ( + - 18 ), - 96 * - 90 + - 72 + - 39 ) ) + + 83 + COUNT ( 71 ) THEN 90 + MAX ( + 33 ) END THEN NULL WHEN 42 + + COUNT ( * ) THEN CAST ( 35 AS INTEGER ) * 45 ELSE - 63 + 32 END * ( 26 ) AS col1
----
-31434

onlyif mysql # DIV for integer division: 
query II rowsort label-1005
SELECT - 85 DIV + 13 AS col0, + 90 * - - 60 col0
----
-6
5400

skipif mysql # not compatible
query II rowsort label-1005
SELECT - 85 / + 13 AS col0, + 90 * - - 60 col0
----
-6
5400

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

skipif mysql # not compatible
query I rowsort label-1006
SELECT - - 6 * - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT - MIN( ALL + 26 ) * 85
----
-2210

skipif mysql # not compatible
query I rowsort label-1007
SELECT - MIN ( ALL + 26 ) * 85
----
-2210

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT - CASE COUNT( * ) WHEN - - 65 * - 74 THEN + 87 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT - CASE COUNT ( * ) WHEN - - 65 * - 74 THEN + 87 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1009
SELECT ( - - ( + CASE - - 91 WHEN - CAST( NULL AS SIGNED ) THEN - - 23 WHEN - - 51 * + + 20 * - 72 THEN SUM( + 85 ) END ) ) + - CASE + COUNT( * ) WHEN 73 THEN 70 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1009
SELECT ( - - ( + CASE - - 91 WHEN - CAST ( NULL AS INTEGER ) THEN - - 23 WHEN - - 51 * + + 20 * - 72 THEN SUM ( + 85 ) END ) ) + - CASE + COUNT ( * ) WHEN 73 THEN 70 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1010
SELECT 5 DIV + - 67 - - COUNT( * ) + - 2 * 40 * - + ( - 64 )
----
-5119

skipif mysql # not compatible
query I rowsort label-1010
SELECT 5 / + - 67 - - COUNT ( * ) + - 2 * 40 * - + ( - 64 )
----
-5119

query I rowsort
SELECT + 21 + 19 AS col2
----
40

query I rowsort
SELECT ALL - + 75 * 99
----
-7425

onlyif mysql # aggregate syntax: 
query II rowsort label-1013
SELECT DISTINCT - + 25 + COUNT( * ), + COALESCE ( - 83, + CASE + 75 WHEN + 17 THEN - 38 WHEN - + COUNT( * ) THEN NULL END ) AS col1
----
-24
-83

skipif mysql # not compatible
query II rowsort label-1013
SELECT DISTINCT - + 25 + COUNT ( * ), + COALESCE ( - 83, + CASE + 75 WHEN + 17 THEN - 38 WHEN - + COUNT ( * ) THEN NULL END ) AS col1
----
-24
-83

query I rowsort
SELECT 74 * + 55
----
4070

query I rowsort
SELECT ALL 71 + + 55 AS col1
----
126

query I rowsort
SELECT DISTINCT 75 + - 51 + 59 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1017
SELECT 53 * + - 6 + + 90 + - + 55 DIV 57 * - + 68
----
-228

skipif mysql # not compatible
query I rowsort label-1017
SELECT 53 * + - 6 + + 90 + - + 55 / 57 * - + 68
----
-228

query I rowsort
SELECT - - ( 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT 36 - + 55 + - COUNT( * ) * 71 * 42 AS col2
----
-3001

skipif mysql # not compatible
query I rowsort label-1019
SELECT 36 - + 55 + - COUNT ( * ) * 71 * 42 AS col2
----
-3001

query I rowsort
SELECT DISTINCT 87 * + 58
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL 57 + + COUNT( * ) + - 6 * 36
----
-158

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL 57 + + COUNT ( * ) + - 6 * 36
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1022
SELECT 19 * CASE - ( + 82 ) WHEN + - 89 + + CAST( NULL AS SIGNED ) THEN NULL ELSE - - 47 + - NULLIF ( - 61, - 83 * + 94 ) + - 72 + - - SUM( - 35 ) END * + + ( 38 ) - - 33 + COUNT( * ) * 20
----
775

skipif mysql # not compatible
query I rowsort label-1022
SELECT 19 * CASE - ( + 82 ) WHEN + - 89 + + CAST ( NULL AS INTEGER ) THEN NULL ELSE - - 47 + - NULLIF ( - 61, - 83 * + 94 ) + - 72 + - - SUM ( - 35 ) END * + + ( 38 ) - - 33 + COUNT ( * ) * 20
----
775

query I rowsort
SELECT 80 - - + 97
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT + CASE + - 10 WHEN - 65 + 97 + 42 * - 0 - NULLIF ( - 1, - - MAX( + 20 ) + + 64 + - 26 ) THEN 97 + - 77 END / - SUM( DISTINCT 81 ) + 27 / 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1024
SELECT + CASE + - 10 WHEN - 65 + 97 + 42 * - 0 - NULLIF ( - 1, - - MAX ( + 20 ) + + 64 + - 26 ) THEN 97 + - 77 END / - SUM ( DISTINCT 81 ) + 27 / 39
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1025
SELECT 10 col0, + 95 DIV 69 col0
----
10
1

skipif mysql # not compatible
query II rowsort label-1025
SELECT 10 col0, + 95 / 69 col0
----
10
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1026
SELECT CAST( + 78 AS SIGNED ) * + + 57 + 5
----
4451

skipif mysql # not compatible
query I rowsort label-1026
SELECT CAST ( + 78 AS INTEGER ) * + + 57 + 5
----
4451

query II rowsort
SELECT ALL - 6 AS col2, 60 AS col1
----
-6
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1028
SELECT ALL - 9 col2, - CASE + COUNT( ALL - 76 ) WHEN + 58 THEN 64 * 52 + + CAST( NULL AS SIGNED ) / - COUNT( * ) END
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-1028
SELECT ALL - 9 col2, - CASE + COUNT ( ALL - 76 ) WHEN + 58 THEN 64 * 52 + + CAST ( NULL AS INTEGER ) / - COUNT ( * ) END
----
-9
NULL

query I rowsort
SELECT 80 + CASE - 4 WHEN - 10 THEN NULL WHEN - + 38 THEN + 0 ELSE + COALESCE ( - 86, - 68 + - - 79 - 16 ) END AS col2
----
-6

query I rowsort
SELECT + 10 * - + 24 + - 91 col0
----
-331

query I rowsort
SELECT 96 * - 47 AS col0
----
-4512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1032
SELECT DISTINCT + COUNT( * ) * + - 29 DIV - MAX( ALL + - 38 ) * + - 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT + COUNT ( * ) * + - 29 / - MAX ( ALL + - 38 ) * + - 6 AS col0
----
0

query I rowsort
SELECT 27 * 78
----
2106

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

skipif mysql # not compatible
query I rowsort label-1034
SELECT COUNT ( ALL 71 ) * + 84 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1035
SELECT + CASE - COUNT( ALL - 26 ) WHEN - 46 * - + COUNT( - - 61 ) + - - 41 + + CAST( - 46 AS SIGNED ) THEN 3 ELSE NULL END + + 66 / - COUNT( * ) + + COUNT( * ) + + CASE WHEN NOT NULL >= 78 THEN - COUNT( * ) WHEN NOT NULL NOT IN ( + 52 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1035
SELECT + CASE - COUNT ( ALL - 26 ) WHEN - 46 * - + COUNT ( - - 61 ) + - - 41 + + CAST ( - 46 AS INTEGER ) THEN 3 ELSE NULL END + + 66 / - COUNT ( * ) + + COUNT ( * ) + + CASE WHEN NOT NULL >= 78 THEN - COUNT ( * ) WHEN NOT NULL NOT IN ( + 52 ) THEN NULL ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 19 * 44
----
836

query I rowsort
SELECT DISTINCT + 72 + - + ( - 96 )
----
168

query I rowsort
SELECT ALL - 14 + - + 28
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT ALL + 56 + - COALESCE ( + 14, + CAST( - 2 AS SIGNED ) ) * - - 2 + + 78 + + + ( - 53 ) * + 67 - + 66 col0
----
-3511

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL + 56 + - COALESCE ( + 14, + CAST ( - 2 AS INTEGER ) ) * - - 2 + + 78 + + + ( - 53 ) * + 67 - + 66 col0
----
-3511

query I rowsort
SELECT ALL + 34 + + + ( - 79 ) AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT DISTINCT + 23 DIV 20
----
1

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT + 23 / 20
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1043
SELECT COUNT( * ) - ( - + ( + 81 ) ) + 82, 4 AS col2
----
164
4

skipif mysql # not compatible
query II rowsort label-1043
SELECT COUNT ( * ) - ( - + ( + 81 ) ) + 82, 4 AS col2
----
164
4

query I rowsort
SELECT + 12 * + 12 col2
----
144

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

skipif mysql # not compatible
query I rowsort label-1045
SELECT - - SUM ( - + 23 )
----
-23

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

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

query I rowsort
SELECT ALL - + 68 * 61 + + + 76 + + - 66
----
-4138

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT MIN( ALL 57 ) + - - COALESCE ( 26, + 67 * 24 ) * + - 72 * + ( - 27 ) * + COUNT( * ) * 25 * + 29 + + + 50 * 84
----
36648657

skipif mysql # not compatible
query I rowsort label-1048
SELECT MIN ( ALL 57 ) + - - COALESCE ( 26, + 67 * 24 ) * + - 72 * + ( - 27 ) * + COUNT ( * ) * 25 * + 29 + + + 50 * 84
----
36648657

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1049
SELECT ALL COUNT( * ) AS col0, - CAST( + 19 AS SIGNED ) * + 68 AS col2
----
1
-1292

skipif mysql # not compatible
query II rowsort label-1049
SELECT ALL COUNT ( * ) AS col0, - CAST ( + 19 AS INTEGER ) * + 68 AS col2
----
1
-1292

query I rowsort
SELECT 65 + - 19
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT ALL 40 - + - 70 * + + COUNT( * ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL 40 - + - 70 * + + COUNT ( * ) AS col0
----
110

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

skipif mysql # not compatible
query II rowsort label-1052
SELECT DISTINCT COUNT ( * ), - COUNT ( * ) AS col1
----
1
-1

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

skipif mysql # not compatible
query II rowsort label-1053
SELECT ALL 31, COUNT ( * ) AS col0
----
31
1

query II rowsort
SELECT 44, + 50 col1
----
44
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1055
SELECT 90 + + COUNT( * ) DIV + 91 + + - 71
----
19

skipif mysql # not compatible
query I rowsort label-1055
SELECT 90 + + COUNT ( * ) / + 91 + + - 71
----
19

query I rowsort
SELECT CASE + - 44 WHEN + - 10 THEN - 66 END * + + ( - 43 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL COUNT ( - + 35 ) * + - ( - 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1058
SELECT ALL - COUNT( * ) AS col1, + 47
----
-1
47

skipif mysql # not compatible
query II rowsort label-1058
SELECT ALL - COUNT ( * ) AS col1, + 47
----
-1
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1059
SELECT DISTINCT + 6 DIV + 83 * - - 98
----
0

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT + 6 / + 83 * - - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT ALL COALESCE ( 19, + COUNT( * ) ) * + COUNT( * ) * + + 27 * SUM( DISTINCT - + 25 ) AS col0
----
-12825

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL COALESCE ( 19, + COUNT ( * ) ) * + COUNT ( * ) * + + 27 * SUM ( DISTINCT - + 25 ) AS col0
----
-12825

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1062
SELECT 96 DIV - + 68 AS col2, - 24 + - 0
----
-1
-24

skipif mysql # not compatible
query II rowsort label-1062
SELECT 96 / - + 68 AS col2, - 24 + - 0
----
-1
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT + 68 * 84 / COUNT( * ) - - CASE - 39 WHEN + 56 * - COUNT( * ) + - 27 + + + 26 / + + 18 + + + 71 / + + 1 + + 71 THEN NULL WHEN - + 86 THEN - 37 + + CASE - 83 WHEN - 0 + + ( + 80 ) THEN + ( + 51 ) WHEN + COUNT( * ) * 50 THEN NULL END + - 85 * + 99 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT + 68 * 84 / COUNT ( * ) - - CASE - 39 WHEN + 56 * - COUNT ( * ) + - 27 + + + 26 / + + 18 + + + 71 / + + 1 + + 71 THEN NULL WHEN - + 86 THEN - 37 + + CASE - 83 WHEN - 0 + + ( + 80 ) THEN + ( + 51 ) WHEN + COUNT ( * ) * 50 THEN NULL END + - 85 * + 99 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT MIN( + + 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1064
SELECT MIN ( + + 74 ) AS col1
----
74

query I rowsort
SELECT + 2 * + 18 * + 15 AS col2
----
540

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1066
SELECT + NULLIF ( ( 82 ), - CAST( NULL AS DECIMAL ) )
----
82

skipif mysql # not compatible
query I rowsort label-1066
SELECT + NULLIF ( ( 82 ), - CAST ( NULL AS REAL ) )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1067
SELECT + - 55 AS col2, + 29 * 66 + ( - COUNT( * ) )
----
-55
1913

skipif mysql # not compatible
query II rowsort label-1067
SELECT + - 55 AS col2, + 29 * 66 + ( - COUNT ( * ) )
----
-55
1913

query I rowsort
SELECT - + 51 * 50 - 35 col0
----
-2585

query II rowsort
SELECT ALL + - 63 * + 26 + 64 - + 58 col0, 62 + + 88
----
-1632
150

query I rowsort
SELECT ( ( - 24 ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT DISTINCT 33 * + - 8 + - MIN( - 29 ) - - 67
----
-168

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT 33 * + - 8 + - MIN ( - 29 ) - - 67
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT DISTINCT - 49 * - COUNT( * ) + NULLIF ( - 34, ( - - 6 ) ) + + ( 89 ) * + 53
----
4732

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT - 49 * - COUNT ( * ) + NULLIF ( - 34, ( - - 6 ) ) + + ( 89 ) * + 53
----
4732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1073
SELECT - + CASE - 58 WHEN - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) / + 37 + + COUNT( * ) THEN NULL WHEN - 5 + - 61 + CAST( NULL AS DECIMAL ) THEN NULL WHEN MIN( + 73 ) THEN - 2 END * 71 * 31 + - MIN( - - 17 ) + COUNT( - 97 ) * - ( - ( + 35 ) + + 91 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1073
SELECT - + CASE - 58 WHEN - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) / + 37 + + COUNT ( * ) THEN NULL WHEN - 5 + - 61 + CAST ( NULL AS REAL ) THEN NULL WHEN MIN ( + 73 ) THEN - 2 END * 71 * 31 + - MIN ( - - 17 ) + COUNT ( - 97 ) * - ( - ( + 35 ) + + 91 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT DISTINCT + COUNT( * ) * 55 - - 67 + + - 43 * 94 + - - 66 + + 79 + - - MIN( ALL - COALESCE ( + 54, 86, 28 ) )
----
-3829

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT + COUNT ( * ) * 55 - - 67 + + - 43 * 94 + - - 66 + + 79 + - - MIN ( ALL - COALESCE ( + 54, 86, 28 ) )
----
-3829

query II rowsort
SELECT DISTINCT + - 35, - 2 - - - ( 26 ) AS col0
----
-35
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1076
SELECT DISTINCT - CASE - - 62 WHEN + + 65 THEN COUNT( * ) + - 94 - - 11 - + 85 END * - 22 + + 50 - 78 * + 86 * - 47 + + CAST( NULL AS SIGNED ) / - + 48 / + COALESCE ( 94, COUNT( * ) / - SUM( ALL + 67 * + 77 ) ) + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT - CASE - - 62 WHEN + + 65 THEN COUNT ( * ) + - 94 - - 11 - + 85 END * - 22 + + 50 - 78 * + 86 * - 47 + + CAST ( NULL AS INTEGER ) / - + 48 / + COALESCE ( 94, COUNT ( * ) / - SUM ( ALL + 67 * + 77 ) ) + + 0
----
NULL

query I rowsort
SELECT - 25 * 53 + - 65
----
-1390

query I rowsort
SELECT ALL + 94 * + 62 * 43
----
250604

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT + COUNT( * ) * - + COUNT( * ) * - 93 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-1079
SELECT + COUNT ( * ) * - + COUNT ( * ) * - 93 AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1080
SELECT 30 * - 55 * + + 24 + - 58 * - 37 + + 38 * - CAST( - + 44 AS SIGNED )
----
-35782

skipif mysql # not compatible
query I rowsort label-1080
SELECT 30 * - 55 * + + 24 + - 58 * - 37 + + 38 * - CAST ( - + 44 AS INTEGER )
----
-35782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1081
SELECT 33 * 44 - - + 34 + - NULLIF ( + 20, + + 69 / + CAST( COUNT( * ) AS SIGNED ) ) + ( - 7 ) + - COUNT( * ) + - - COUNT( - + 2 ) * + 42 * 10
----
1878

skipif mysql # not compatible
query I rowsort label-1081
SELECT 33 * 44 - - + 34 + - NULLIF ( + 20, + + 69 / + CAST ( COUNT ( * ) AS INTEGER ) ) + ( - 7 ) + - COUNT ( * ) + - - COUNT ( - + 2 ) * + 42 * 10
----
1878

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT ALL + MIN( + 82 ) + 74 + - + 13
----
143

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL + MIN ( + 82 ) + 74 + - + 13
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1083
SELECT DISTINCT + 42 - - CAST( - CASE + MAX( DISTINCT + 91 ) WHEN - 83 THEN NULL WHEN - 81 * + - 14 + MIN( ALL + - 29 ) THEN + 79 ELSE CASE - + 25 WHEN - 42 THEN NULL WHEN - COALESCE ( 6, 78 * - CASE - ( + 65 ) WHEN 30 + 87 * - MAX( DISTINCT 65 * - 86 ) THEN + COALESCE ( - AVG ( - 68 ), 33 * 72 - ( 83 ), - ( ( COALESCE ( 18, 39 * AVG ( - 25 * 88 ) ) ) ) + 75, + 29 ) END, 49 ) THEN 2 ELSE + 66 END - 43 DIV - 15 END AS SIGNED ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT + 42 - - CAST ( - CASE + MAX ( DISTINCT + 91 ) WHEN - 83 THEN NULL WHEN - 81 * + - 14 + MIN ( ALL + - 29 ) THEN + 79 ELSE CASE - + 25 WHEN - 42 THEN NULL WHEN - COALESCE ( 6, 78 * - CASE - ( + 65 ) WHEN 30 + 87 * - MAX ( DISTINCT 65 * - 86 ) THEN + COALESCE ( - AVG ( - 68 ), 33 * 72 - ( 83 ), - ( ( COALESCE ( 18, 39 * AVG ( - 25 * 88 ) ) ) ) + 75, + 29 ) END, 49 ) THEN 2 ELSE + 66 END - 43 / - 15 END AS INTEGER ) AS col1
----
-26

query II rowsort
SELECT - + 60 AS col2, 16 * - 3 * + + 16 * - 14 AS col1
----
-60
10752

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1086
SELECT ALL COUNT( - 27 ) AS col2, 31 * - - 53 + + - ( 80 ) * - 62 AS col2
----
1
6603

skipif mysql # not compatible
query II rowsort label-1086
SELECT ALL COUNT ( - 27 ) AS col2, 31 * - - 53 + + - ( 80 ) * - 62 AS col2
----
1
6603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT + 40 - + + 1 + CASE WHEN NULLIF ( - + SUM( DISTINCT - 0 ), + - 85 * + 98 ) > + 41 + + 45 THEN CAST( - - ( 68 ) AS SIGNED ) * + + 11 / 96 WHEN NOT ( 58 + - 82 ) IS NULL THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT + 40 - + + 1 + CASE WHEN NULLIF ( - + SUM ( DISTINCT - 0 ), + - 85 * + 98 ) > + 41 + + 45 THEN CAST ( - - ( 68 ) AS INTEGER ) * + + 11 / 96 WHEN NOT ( 58 + - 82 ) IS NULL THEN NULL END
----
NULL

query I rowsort
SELECT - 4 * 75 AS col1
----
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-1089
SELECT ALL - 91 DIV - + 2
----
45

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL - 91 / - + 2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT - COUNT( DISTINCT - 90 ), 64 + - + 65 AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-1090
SELECT - COUNT ( DISTINCT - 90 ), 64 + - + 65 AS col1
----
-1
-1

query I rowsort
SELECT ALL ( 0 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT - COALESCE ( - 35, - COUNT( + CAST( NULL AS SIGNED ) ) + - 33 ) * + 18 * - 30 AS col1
----
-18900

skipif mysql # not compatible
query I rowsort label-1092
SELECT - COALESCE ( - 35, - COUNT ( + CAST ( NULL AS INTEGER ) ) + - 33 ) * + 18 * - 30 AS col1
----
-18900

query I rowsort
SELECT - 68 * + 34
----
-2312

onlyif mysql # aggregate syntax: 
query II rowsort label-1094
SELECT + 74 * - COUNT( * ) AS col0, ( + 19 )
----
-74
19

skipif mysql # not compatible
query II rowsort label-1094
SELECT + 74 * - COUNT ( * ) AS col0, ( + 19 )
----
-74
19

query I rowsort
SELECT - ( + ( - - 85 ) ) * + 7
----
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT ALL CASE + + COUNT( * ) WHEN ( - - COUNT( ALL + - 37 ) ) THEN 11 WHEN - 1 + COUNT( * ) THEN - AVG ( DISTINCT + 0 ) + - 15 ELSE NULL END AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL CASE + + COUNT ( * ) WHEN ( - - COUNT ( ALL + - 37 ) ) THEN 11 WHEN - 1 + COUNT ( * ) THEN - AVG ( DISTINCT + 0 ) + - 15 ELSE NULL END AS col2
----
11

query I rowsort
SELECT DISTINCT - 74 * - 36
----
2664

query I rowsort
SELECT ALL + 20 * - - 62
----
1240

query II rowsort
SELECT ALL ( + 15 ), 84 - + 65 * - 95 + 14 AS col0
----
15
6273

query I rowsort
SELECT DISTINCT + 2 * - 11 AS col0
----
-22

query I rowsort
SELECT + NULLIF ( + 6, - - 27 )
----
6

query I rowsort
SELECT + 2 * 17 + - 78 - - ( - 29 ) - + - 49
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT + 8 - - 66 + - COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1103
SELECT + 8 - - 66 + - COUNT ( * ) AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1104
SELECT ( + + 77 ) / NULLIF ( - + 4, - - 64 ) * - 36 + + + MAX( ALL - - CAST( NULL AS SIGNED ) ) + SUM( DISTINCT - 19 ), - 64 AS col1
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-1104
SELECT ( + + 77 ) / NULLIF ( - + 4, - - 64 ) * - 36 + + + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) + SUM ( DISTINCT - 19 ), - 64 AS col1
----
NULL
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT + 84 * - + 58 * - COUNT( ALL - 24 )
----
4872

skipif mysql # not compatible
query I rowsort label-1105
SELECT + 84 * - + 58 * - COUNT ( ALL - 24 )
----
4872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1106
SELECT + 2 DIV + CASE + 34 WHEN - + ( - 22 ) THEN - NULLIF ( - - 17, - 85 * + - NULLIF ( + COUNT( * ), - + 46 ) * - 58 + - ( 50 ) + 26 DIV + 60 + 75 + - 1 * + 40 ) ELSE + 90 + + 21 END
----
0

skipif mysql # not compatible
query I rowsort label-1106
SELECT + 2 / + CASE + 34 WHEN - + ( - 22 ) THEN - NULLIF ( - - 17, - 85 * + - NULLIF ( + COUNT ( * ), - + 46 ) * - 58 + - ( 50 ) + 26 / + 60 + 75 + - 1 * + 40 ) ELSE + 90 + + 21 END
----
0

query I rowsort
SELECT DISTINCT 52 * ( - 4 ) AS col1
----
-208

onlyif mysql # DIV for integer division: 
query I rowsort label-1108
SELECT ALL - 89 DIV + + 56 + - - 37 + - + 66 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL - 89 / + + 56 + - - 37 + - + 66 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT - 89 * COUNT( * ) + COUNT( * ) + + 83 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1109
SELECT - 89 * COUNT ( * ) + COUNT ( * ) + + 83 AS col1
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1110
SELECT - - CAST( NULL AS DECIMAL ) * - + 38 - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1110
SELECT - - CAST ( NULL AS REAL ) * - + 38 - - 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL + 37 * + ( + + 59 ) + 9 * - CASE - MIN( + - 85 ) WHEN 97 THEN NULL ELSE + 26 END AS col1
----
1949

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL + 37 * + ( + + 59 ) + 9 * - CASE - MIN ( + - 85 ) WHEN 97 THEN NULL ELSE + 26 END AS col1
----
1949

query I rowsort
SELECT ALL + - 64 col1
----
-64

query I rowsort
SELECT ALL + - NULLIF ( 21, + 54 ) AS col0
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT + COUNT( * ) + + 5
----
6

skipif mysql # not compatible
query I rowsort label-1115
SELECT + COUNT ( * ) + + 5
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1116
SELECT - COALESCE ( - - COUNT( * ), + + 75 DIV - + 64 ) - 94 - 29 * 14 + - 32
----
-533

skipif mysql # not compatible
query I rowsort label-1116
SELECT - COALESCE ( - - COUNT ( * ), + + 75 / - + 64 ) - 94 - 29 * 14 + - 32
----
-533

query I rowsort
SELECT DISTINCT 55 * + 7 - 93 + 68 * - 68 col1
----
-4332

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL - 87 * + NULLIF ( ( - + 83 ), - - ( - 82 ) / 56 - - + COUNT( DISTINCT - 84 ) - 84 ) * - 6 + - 39 + 60 * 63 AS col2
----
-39585

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL - 87 * + NULLIF ( ( - + 83 ), - - ( - 82 ) / 56 - - + COUNT ( DISTINCT - 84 ) - 84 ) * - 6 + - 39 + 60 * 63 AS col2
----
-39585

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT ALL CASE - 61 WHEN - 63 * 79 - - + COUNT( * ) THEN + 2 ELSE + 91 * + + 27 * + - 90 + + 77 - - 62 END AS col0
----
-220991

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL CASE - 61 WHEN - 63 * 79 - - + COUNT ( * ) THEN + 2 ELSE + 91 * + + 27 * + - 90 + + 77 - - 62 END AS col0
----
-220991

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

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

query I rowsort
SELECT - 62 + + 65
----
3

query I rowsort
SELECT ALL 68 * + 65 * 96 col2
----
424320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT DISTINCT CASE - 72 WHEN - + 89 THEN - + 3 + - COUNT( * ) ELSE + - ( - 7 ) END
----
7

skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT CASE - 72 WHEN - + 89 THEN - + 3 + - COUNT ( * ) ELSE + - ( - 7 ) END
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1125
SELECT ALL - 61 + + 99 + 16 + - - 59 - + COUNT( * ) / CASE + 51 WHEN 89 THEN NULL WHEN + 69 + - CASE - 45 WHEN - MAX( DISTINCT + + 33 ) * - ( + 87 ) * + 16 + 78 THEN + ( + CAST( NULL AS SIGNED ) ) WHEN + AVG ( + CAST( 21 AS DECIMAL ) ) THEN NULL END + + 74 * + 46 * 76 THEN + 62 + 54 WHEN 23 * - 34 THEN + 3 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL - 61 + + 99 + 16 + - - 59 - + COUNT ( * ) / CASE + 51 WHEN 89 THEN NULL WHEN + 69 + - CASE - 45 WHEN - MAX ( DISTINCT + + 33 ) * - ( + 87 ) * + 16 + 78 THEN + ( + CAST ( NULL AS INTEGER ) ) WHEN + AVG ( + CAST ( 21 AS REAL ) ) THEN NULL END + + 74 * + 46 * 76 THEN + 62 + 54 WHEN 23 * - 34 THEN + 3 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT MAX( - 7 ) * + 43 col1
----
-301

skipif mysql # not compatible
query I rowsort label-1126
SELECT MAX ( - 7 ) * + 43 col1
----
-301

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

skipif mysql # not compatible
query I rowsort label-1127
SELECT 9 * - - COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT DISTINCT - 43 + 52 + + COUNT( ALL + 6 ) - COUNT( * ) * + 37
----
-27

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT - 43 + 52 + + COUNT ( ALL + 6 ) - COUNT ( * ) * + 37
----
-27

query II rowsort
SELECT ALL 99 AS col1, - 37
----
99
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1130
SELECT 89 DIV + 92 * + - ( + COALESCE ( - + 95, 24 * 22 + + MIN( DISTINCT + - 33 ), + - 24 * - - CASE 75 WHEN + 19 THEN + + 78 WHEN - - 68 DIV + ( 79 ) + + 1 THEN + 27 + ( CAST( + 41 AS SIGNED ) ) END ) ) * 10
----
0

skipif mysql # not compatible
query I rowsort label-1130
SELECT 89 / + 92 * + - ( + COALESCE ( - + 95, 24 * 22 + + MIN ( DISTINCT + - 33 ), + - 24 * - - CASE 75 WHEN + 19 THEN + + 78 WHEN - - 68 / + ( 79 ) + + 1 THEN + 27 + ( CAST ( + 41 AS INTEGER ) ) END ) ) * 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT 24 + - 21 * - - ( + 20 ) + + SUM( - 78 ) * + 23 AS col2
----
-2190

skipif mysql # not compatible
query I rowsort label-1131
SELECT 24 + - 21 * - - ( + 20 ) + + SUM ( - 78 ) * + 23 AS col2
----
-2190

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL + COALESCE ( - 23, + - COUNT( * ) ) + + 28
----
5

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL + COALESCE ( - 23, + - COUNT ( * ) ) + + 28
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-1133
SELECT 12 col2, - 55 DIV 62 AS col1
----
12
0

skipif mysql # not compatible
query II rowsort label-1133
SELECT 12 col2, - 55 / 62 AS col1
----
12
0

query II rowsort
SELECT - 6 AS col1, - 65
----
-6
-65

query I rowsort
SELECT 34 + 29 * - 44 + + 98 AS col1
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT DISTINCT - ( - 57 ) * + - 97 * - COUNT( * )
----
5529

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT - ( - 57 ) * + - 97 * - COUNT ( * )
----
5529

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1137
SELECT + COUNT( * ) * + 73 DIV + 73 AS col2, 42
----
1
42

skipif mysql # not compatible
query II rowsort label-1137
SELECT + COUNT ( * ) * + 73 / + 73 AS col2, 42
----
1
42

query I rowsort
SELECT + 29 * 12 col2
----
348

query II rowsort
SELECT DISTINCT - 77, 68 AS col2
----
-77
68

query I rowsort
SELECT DISTINCT - 27 * 58
----
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT - + COUNT( * ) * - 74 - 73 - + 34 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-1141
SELECT - + COUNT ( * ) * - 74 - 73 - + 34 AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT - 65 * - ( + 36 ) * - 80 + + 77 * - 41 * + + 54 + + 13 + - COUNT( 83 ) * COALESCE ( - 15, + 99 + + - MAX( + 62 ) ) + + 52 DIV + 26 AS col1
----
-357648

skipif mysql # not compatible
query I rowsort label-1142
SELECT - 65 * - ( + 36 ) * - 80 + + 77 * - 41 * + + 54 + + 13 + - COUNT ( 83 ) * COALESCE ( - 15, + 99 + + - MAX ( + 62 ) ) + + 52 / + 26 AS col1
----
-357648

query I rowsort
SELECT ALL + 2 - + 44 col0
----
-42

query II rowsort
SELECT DISTINCT - 46 AS col2, + 80
----
-46
80

query I rowsort
SELECT ALL 71 * - 43
----
-3053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1146
SELECT - - COUNT( * ) * - - 37 - - NULLIF ( - 37, - - 28 + + + CAST( + 76 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1146
SELECT - - COUNT ( * ) * - - 37 - - NULLIF ( - 37, - - 28 + + + CAST ( + 76 AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT DISTINCT - 83 DIV - - 7
----
-11

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT - 83 / - - 7
----
-11

query I rowsort
SELECT 43 * + + 26
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT + CASE + 91 WHEN + - 37 THEN NULL WHEN - 32 THEN + - 20 * 96 + - 42 + + COUNT( * ) ELSE + 24 END
----
24

skipif mysql # not compatible
query I rowsort label-1149
SELECT + CASE + 91 WHEN + - 37 THEN NULL WHEN - 32 THEN + - 20 * 96 + - 42 + + COUNT ( * ) ELSE + 24 END
----
24

query I rowsort
SELECT DISTINCT - ( - - 69 ) col1
----
-69

query I rowsort
SELECT 64 * + 1 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT ALL MAX( + 2 ) + + - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL MAX ( + 2 ) + + - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1153
SELECT 83 + + + 15 + COUNT( * ) + COUNT( DISTINCT - + 81 ) * - - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT 83 + + + 15 + COUNT ( * ) + COUNT ( DISTINCT - + 81 ) * - - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT DISTINCT 86 + - 70
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT CASE - + NULLIF ( - + 42, - 40 ) WHEN - COUNT( * ) THEN NULL WHEN + MIN( DISTINCT 55 ) * + 18 + - 64 THEN + 2 / + 56 END - + 91, - 61 col2
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-1155
SELECT CASE - + NULLIF ( - + 42, - 40 ) WHEN - COUNT ( * ) THEN NULL WHEN + MIN ( DISTINCT 55 ) * + 18 + - 64 THEN + 2 / + 56 END - + 91, - 61 col2
----
NULL
-61

query I rowsort
SELECT 80 * + 51
----
4080

query I rowsort
SELECT 15 * ( - 72 )
----
-1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1158
SELECT ALL 15 * + COALESCE ( 87, - 85, 79 * + 25 DIV 56 + - 67 ) DIV - COUNT( * )
----
-1305

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL 15 * + COALESCE ( 87, - 85, 79 * + 25 / 56 + - 67 ) / - COUNT ( * )
----
-1305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1159
SELECT ALL MAX( ALL + - CAST( - 64 AS SIGNED ) ) * - - 75 AS col0, MIN( - CAST( + 9 AS SIGNED ) )
----
4800
-9

skipif mysql # not compatible
query II rowsort label-1159
SELECT ALL MAX ( ALL + - CAST ( - 64 AS INTEGER ) ) * - - 75 AS col0, MIN ( - CAST ( + 9 AS INTEGER ) )
----
4800
-9

query II rowsort
SELECT DISTINCT 20 + + 83 AS col1, + ( + 7 )
----
103
7

query I rowsort
SELECT ALL 79 * - + 88
----
-6952

query I rowsort
SELECT 14 - - 44 AS col1
----
58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1164
SELECT - COALESCE ( - NULLIF ( 65, - 90 ), COUNT( * ) ) DIV - + 45 - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1164
SELECT - COALESCE ( - NULLIF ( 65, - 90 ), COUNT ( * ) ) / - + 45 - COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT + 22 * + 71 AS col0
----
1562

query I rowsort
SELECT 20 + - 51 * - - 14 AS col2
----
-694

onlyif mysql # aggregate syntax: 
query II rowsort label-1167
SELECT - + 72 * 26 + + COUNT( * ) + - 81 + + - 87 * + ( - 71 ) * - COUNT( * ) * + ( + 71 ) AS col2, COUNT( * ) AS col2
----
-440519
1

skipif mysql # not compatible
query II rowsort label-1167
SELECT - + 72 * 26 + + COUNT ( * ) + - 81 + + - 87 * + ( - 71 ) * - COUNT ( * ) * + ( + 71 ) AS col2, COUNT ( * ) AS col2
----
-440519
1

query I rowsort
SELECT ( + 15 ) - 61 * + 60
----
-3645

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1169
SELECT ALL + + 1 DIV + + ( + - ( + + 84 ) ), 54 - - - CAST( NULL AS SIGNED ) * - 67 col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1169
SELECT ALL + + 1 / + + ( + - ( + + 84 ) ), 54 - - - CAST ( NULL AS INTEGER ) * - 67 col1
----
0
NULL

query I rowsort
SELECT + 89 * - 72 AS col0
----
-6408

onlyif mysql # DIV for integer division: 
query I rowsort label-1171
SELECT 42 DIV + 88 + - 86
----
-86

skipif mysql # not compatible
query I rowsort label-1171
SELECT 42 / + 88 + - 86
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT COUNT( * ) * 94 * + 58 - - 61 * - 22 + - 60 * + 70
----
-90

skipif mysql # not compatible
query I rowsort label-1172
SELECT COUNT ( * ) * 94 * + 58 - - 61 * - 22 + - 60 * + 70
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1173
SELECT DISTINCT - - 89 * - 6 + - - 79 DIV - 91 + - 92 + + 96 AS col2
----
-530

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT - - 89 * - 6 + - - 79 / - 91 + - 92 + + 96 AS col2
----
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT DISTINCT - - COALESCE ( - 1, - 56 * - COALESCE ( - - 89, + - 56 ) + + - NULLIF ( + 53, + 97 + + MAX( - 70 ) ) - - COUNT( DISTINCT + 82 ) ) * + ( + + ( + + COUNT( * ) ) ) - + 47 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT - - COALESCE ( - 1, - 56 * - COALESCE ( - - 89, + - 56 ) + + - NULLIF ( + 53, + 97 + + MAX ( - 70 ) ) - - COUNT ( DISTINCT + 82 ) ) * + ( + + ( + + COUNT ( * ) ) ) - + 47 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT ALL - CASE - COUNT( * ) WHEN + 28 THEN NULL ELSE - COUNT( * ) * + 6 END * + + 74
----
444

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL - CASE - COUNT ( * ) WHEN + 28 THEN NULL ELSE - COUNT ( * ) * + 6 END * + + 74
----
444

query II rowsort
SELECT - 29 + + - 48 AS col1, 69 + 4
----
-77
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT ALL - + ( 32 ) * - 75 * SUM( ALL - 12 ) col0
----
-28800

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL - + ( 32 ) * - 75 * SUM ( ALL - 12 ) col0
----
-28800

query I rowsort
SELECT DISTINCT + + 59 * + - 20 * 17 col0
----
-20060

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

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

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

skipif mysql # not compatible
query I rowsort label-1180
SELECT ( - COUNT ( * ) ) * - 9
----
9

query I rowsort
SELECT DISTINCT - - 44 col2
----
44

query I rowsort
SELECT 64 * - 23 AS col0
----
-1472

query I rowsort
SELECT ALL 81 + 57
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1184
SELECT CASE + + 64 WHEN + COUNT( * ) THEN NULL WHEN + 8 / - CAST( NULL AS DECIMAL ) THEN + - ( 90 ) + ( + - 81 ) - CAST( NULL AS SIGNED ) * - 66 END * + 24 + + - 48 * COUNT( * ) + - AVG ( ALL 88 ) - - 0 * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1184
SELECT CASE + + 64 WHEN + COUNT ( * ) THEN NULL WHEN + 8 / - CAST ( NULL AS REAL ) THEN + - ( 90 ) + ( + - 81 ) - CAST ( NULL AS INTEGER ) * - 66 END * + 24 + + - 48 * COUNT ( * ) + - AVG ( ALL 88 ) - - 0 * 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT ALL + 70 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL + 70 / + 97
----
0

query I rowsort
SELECT ALL + 61 + - 79 * + + 32 + + 1
----
-2466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1187
SELECT ALL - 97 + + + ( COALESCE ( 78, - + 20, - 76, + ( 57 ) * - 40 * + 55 + + 95 + + ( NULLIF ( - 25, CASE - 80 WHEN - + CAST( NULL AS SIGNED ) + 76 THEN - - 11 END * 92 ) ) * 21 ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL - 97 + + + ( COALESCE ( 78, - + 20, - 76, + ( 57 ) * - 40 * + 55 + + 95 + + ( NULLIF ( - 25, CASE - 80 WHEN - + CAST ( NULL AS INTEGER ) + 76 THEN - - 11 END * 92 ) ) * 21 ) ) AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT 61 * - + 77 + + MIN( ALL - CAST( - 64 AS SIGNED ) ) + 28 + + + 37 * - - 1 + + - 34 - - + 93 * + 74 + + + 37 AS col2
----
2317

skipif mysql # not compatible
query I rowsort label-1188
SELECT 61 * - + 77 + + MIN ( ALL - CAST ( - 64 AS INTEGER ) ) + 28 + + + 37 * - - 1 + + - 34 - - + 93 * + 74 + + + 37 AS col2
----
2317

query I rowsort
SELECT - ( 14 ) + - - 41
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT DISTINCT NULLIF ( 99, - - 96 ) + + + 65 * + MAX( ALL + 96 ) + - MIN( 88 ) + COUNT( * ) * + 45 + - 11 col1
----
6285

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT NULLIF ( 99, - - 96 ) + + + 65 * + MAX ( ALL + 96 ) + - MIN ( 88 ) + COUNT ( * ) * + 45 + - 11 col1
----
6285

query II rowsort
SELECT 45, - 73 col1
----
45
-73

query I rowsort
SELECT + 85 + + 82
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-1193
SELECT 51, COUNT( * ) col1
----
51
1

skipif mysql # not compatible
query II rowsort label-1193
SELECT 51, COUNT ( * ) col1
----
51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT - COUNT( DISTINCT - - 6 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1194
SELECT - COUNT ( DISTINCT - - 6 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT + 73 + 45 + ( COUNT( * ) )
----
119

skipif mysql # not compatible
query I rowsort label-1195
SELECT + 73 + 45 + ( COUNT ( * ) )
----
119

query I rowsort
SELECT + 49 + + 68 * + + 60
----
4129

query II rowsort
SELECT ALL 52 AS col1, + 1 AS col1
----
52
1

query I rowsort
SELECT + 26 + 94 + - 37
----
83

query I rowsort
SELECT ALL ( + 63 ) * + 56
----
3528

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT - CASE ( 19 ) WHEN + 72 * 5 THEN - - COUNT( ALL - 75 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT - CASE ( 19 ) WHEN + 72 * 5 THEN - - COUNT ( ALL - 75 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT + + COALESCE ( - CASE + + 78 WHEN 1 * CASE - - 20 WHEN + - 38 THEN NULL ELSE - 78 * + 4 END * - 84 + + MAX( DISTINCT - 48 ) + - 64 + - 58 + COUNT( * ) THEN NULL ELSE - 44 * - - 38 END, ( - 70 ), + ( + 76 ) ) * 47 AS col0
----
78584

skipif mysql # not compatible
query I rowsort label-1201
SELECT + + COALESCE ( - CASE + + 78 WHEN 1 * CASE - - 20 WHEN + - 38 THEN NULL ELSE - 78 * + 4 END * - 84 + + MAX ( DISTINCT - 48 ) + - 64 + - 58 + COUNT ( * ) THEN NULL ELSE - 44 * - - 38 END, ( - 70 ), + ( + 76 ) ) * 47 AS col0
----
78584

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1203
SELECT + - 41 + - 2 * - 35 * - + 66 * - - 43, 82 * + + 48 + + 54 * - CAST( + 22 AS SIGNED ) + - CAST( 25 AS SIGNED ) + + COUNT( * ) + + - 14 * - 85 + 23 DIV - - COUNT( * ) DIV - COUNT( * ) AS col0
----
-198701
3891

skipif mysql # not compatible
query II rowsort label-1203
SELECT + - 41 + - 2 * - 35 * - + 66 * - - 43, 82 * + + 48 + + 54 * - CAST ( + 22 AS INTEGER ) + - CAST ( 25 AS INTEGER ) + + COUNT ( * ) + + - 14 * - 85 + 23 / - - COUNT ( * ) / - COUNT ( * ) AS col0
----
-198701
3891

query I rowsort
SELECT ALL + 77 * + - 59
----
-4543

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1205
SELECT + 86 * + CASE 5 WHEN 80 THEN NULL ELSE - CAST( NULL AS SIGNED ) END + + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1205
SELECT + 86 * + CASE 5 WHEN 80 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END + + 24 AS col2
----
NULL

query II rowsort
SELECT ALL - 14, + 19 AS col2
----
-14
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1207
SELECT - - 57, ( + MIN( ALL - + 97 ) ) * + 8 AS col2
----
57
-776

skipif mysql # not compatible
query II rowsort label-1207
SELECT - - 57, ( + MIN ( ALL - + 97 ) ) * + 8 AS col2
----
57
-776

query I rowsort
SELECT ALL 74 * 1
----
74

query I rowsort
SELECT - COALESCE ( + 2, - + ( - 99 ) ) AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1210
SELECT ALL + + 10 AS col2, + CAST( 47 AS SIGNED )
----
10
47

skipif mysql # not compatible
query II rowsort label-1210
SELECT ALL + + 10 AS col2, + CAST ( 47 AS INTEGER )
----
10
47

query I rowsort
SELECT + + 70 - - 15 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT + - 95 * 65 + - COUNT( DISTINCT + 93 ) col0
----
-6176

skipif mysql # not compatible
query I rowsort label-1212
SELECT + - 95 * 65 + - COUNT ( DISTINCT + 93 ) col0
----
-6176

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT DISTINCT - 51 * - - COUNT( * ) - + 28
----
-79

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT - 51 * - - COUNT ( * ) - + 28
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT 74 * CASE - 60 WHEN + + 46 * + 54 THEN COUNT( * ) END - + - ( 34 ) + + - 85 / - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT 74 * CASE - 60 WHEN + + 46 * + 54 THEN COUNT ( * ) END - + - ( 34 ) + + - 85 / - + 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1215
SELECT DISTINCT + 83 * - 83 AS col2, 67 - + SUM( ALL 95 ) + - + 64 * - + COUNT( * )
----
-6889
36

skipif mysql # not compatible
query II rowsort label-1215
SELECT DISTINCT + 83 * - 83 AS col2, 67 - + SUM ( ALL 95 ) + - + 64 * - + COUNT ( * )
----
-6889
36

query I rowsort
SELECT ALL 87 * - 26 + - 62
----
-2324

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

query I rowsort
SELECT NULLIF ( 31, + 87 )
----
31

query II rowsort
SELECT ALL + 44 AS col0, 75
----
44
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT - 9 + - 97 + + - 4 - + 59 * - - 83 / + + CASE + 64 WHEN - MAX( - 91 ) THEN - 10 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1220
SELECT - 9 + - 97 + + - 4 - + 59 * - - 83 / + + CASE + 64 WHEN - MAX ( - 91 ) THEN - 10 END AS col2
----
NULL

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

query II rowsort
SELECT + 82 AS col0, + 75
----
82
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1223
SELECT + 86 + + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1223
SELECT + 86 + + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + 2 * - 74 + 71
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1225
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + 58 + + COALESCE ( + 23, + 36 - - COUNT( * ) + + + ( 57 ) ) AS col2
----
NULL
81

skipif mysql # not compatible
query II rowsort label-1225
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 58 + + COALESCE ( + 23, + 36 - - COUNT ( * ) + + + ( 57 ) ) AS col2
----
NULL
81

query I rowsort
SELECT DISTINCT - 69 * 89 - 35
----
-6176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT - 32 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT - 32 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 63, - - 2 )
----
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1229
SELECT DISTINCT CAST( + 32 AS SIGNED ) * - ( - 51 ) + + CAST( + 84 AS SIGNED ) + - 39 + - 99 DIV 79, - 11 + + - 58 AS col2
----
1676
-69

skipif mysql # not compatible
query II rowsort label-1229
SELECT DISTINCT CAST ( + 32 AS INTEGER ) * - ( - 51 ) + + CAST ( + 84 AS INTEGER ) + - 39 + - 99 / 79, - 11 + + - 58 AS col2
----
1676
-69

query II rowsort
SELECT ALL 48 AS col1, + 76 * + 90 * + 87 * + - 58
----
48
-34514640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1231
SELECT DISTINCT - ( + - 93 ) - SUM( DISTINCT + 61 ) DIV - - 94 col2
----
93

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT - ( + - 93 ) - SUM ( DISTINCT + 61 ) / - - 94 col2
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-1232
SELECT + 20 DIV 36, + ( + - 84 ) DIV ( + 82 ) - - + 62 AS col2
----
0
61

skipif mysql # not compatible
query II rowsort label-1232
SELECT + 20 / 36, + ( + - 84 ) / ( + 82 ) - - + 62 AS col2
----
0
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1233
SELECT - 90 + - 54 + - 2 DIV - 65
----
-144

skipif mysql # not compatible
query I rowsort label-1233
SELECT - 90 + - 54 + - 2 / - 65
----
-144

query I rowsort
SELECT - 62 * 14 col0
----
-868

onlyif mysql # aggregate syntax: 
query II rowsort label-1235
SELECT ALL + 36, COUNT( * ) * + 4 * + COUNT( * ) - + + 81 * + 58 AS col0
----
36
-4694

skipif mysql # not compatible
query II rowsort label-1235
SELECT ALL + 36, COUNT ( * ) * + 4 * + COUNT ( * ) - + + 81 * + 58 AS col0
----
36
-4694

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT + - 9 - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-1237
SELECT + - 9 - COUNT ( * )
----
-10

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

skipif mysql # not compatible
query II rowsort label-1238
SELECT ALL COUNT ( * ) AS col2, - 29
----
1
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-1239
SELECT DISTINCT - 0 AS col1, - COUNT( * ) * - - 11 AS col1
----
0
-11

skipif mysql # not compatible
query II rowsort label-1239
SELECT DISTINCT - 0 AS col1, - COUNT ( * ) * - - 11 AS col1
----
0
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1240
SELECT ALL + 23 * - NULLIF ( + 55, + 23 ) + 24 + + 36 DIV - 81
----
-1241

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL + 23 * - NULLIF ( + 55, + 23 ) + 24 + + 36 / - 81
----
-1241

query II rowsort
SELECT ALL COALESCE ( ( 80 ), + + 28, + 66 * + - 20 ) AS col1, + 14 AS col2
----
80
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1242
SELECT DISTINCT + ( - - COUNT( * ) ) DIV + 49 * 13
----
0

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT + ( - - COUNT ( * ) ) / + 49 * 13
----
0

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

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

query II rowsort
SELECT - 6 AS col1, - 15 AS col1
----
-6
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1245
SELECT ALL - 91 DIV - CAST( + CAST( 93 AS SIGNED ) AS SIGNED ) + + 18 * COUNT( * ) DIV + 80 + + 50
----
50

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL - 91 / - CAST ( + CAST ( 93 AS INTEGER ) AS INTEGER ) + + 18 * COUNT ( * ) / + 80 + + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT - + ( - + 74 ) * - 22 + + SUM( DISTINCT - 69 )
----
-1697

skipif mysql # not compatible
query I rowsort label-1246
SELECT - + ( - + 74 ) * - 22 + + SUM ( DISTINCT - 69 )
----
-1697

query I rowsort
SELECT + 47 - - 2 * + 13 * - + 52 * 81
----
-109465

query II rowsort
SELECT DISTINCT + 0, - 99 AS col0
----
0
-99

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

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL - COUNT ( * ) / + - COUNT ( ALL - 33 ) + 22
----
23

query II rowsort
SELECT ALL + 8 AS col0, 74
----
8
74

query I rowsort
SELECT + - 16 * + 53 AS col1
----
-848

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1252
SELECT DISTINCT - COALESCE ( + COUNT( * ), + + COUNT( * ) * + 55 - + - 68 - + MAX( ( + + 0 ) ) * - 85 * + 96 * - CAST( - - 88 AS DECIMAL ) * + + 5 ) + + 28 + + ( 45 ) + - MIN( DISTINCT + - 30 ) * - 42 * + MIN( + + CASE - 50 WHEN 98 THEN 62 * + 37 WHEN 28 THEN NULL END ) * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + + COUNT ( * ) * + 55 - + - 68 - + MAX ( ( + + 0 ) ) * - 85 * + 96 * - CAST ( - - 88 AS REAL ) * + + 5 ) + + 28 + + ( 45 ) + - MIN ( DISTINCT + - 30 ) * - 42 * + MIN ( + + CASE - 50 WHEN 98 THEN 62 * + 37 WHEN 28 THEN NULL END ) * - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT 97 * ( - 9 ) * - COUNT( DISTINCT 66 ) + - 92
----
781

skipif mysql # not compatible
query I rowsort label-1253
SELECT 97 * ( - 9 ) * - COUNT ( DISTINCT 66 ) + - 92
----
781

query I rowsort
SELECT 83 * + 52 col0
----
4316

query I rowsort
SELECT 18 + - 94 AS col2
----
-76

query I rowsort
SELECT 8 * 17
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-1257
SELECT ALL 38 DIV + 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL 38 / + 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL - COUNT( ALL 71 ) * - 68 * + 85
----
5780

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL - COUNT ( ALL 71 ) * - 68 * + 85
----
5780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1259
SELECT 35 * + CAST( NULL AS SIGNED ) + - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1259
SELECT 35 * + CAST ( NULL AS INTEGER ) + - 3 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1260
SELECT ALL - CAST( + - 90 AS SIGNED ) AS col2, + 30 + - 1 AS col1
----
90
29

skipif mysql # not compatible
query II rowsort label-1260
SELECT ALL - CAST ( + - 90 AS INTEGER ) AS col2, + 30 + - 1 AS col1
----
90
29

query I rowsort
SELECT ALL NULLIF ( + + 82, - 47 + + 4 ) * - + 80
----
-6560

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1262
SELECT COUNT( - ( 76 ) ) DIV + - 8 + - - COUNT( * ), 81 * + 35 AS col1
----
1
2835

skipif mysql # not compatible
query II rowsort label-1262
SELECT COUNT ( - ( 76 ) ) / + - 8 + - - COUNT ( * ), 81 * + 35 AS col1
----
1
2835

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT 35 * - 45 + - MAX( + 74 )
----
-1649

skipif mysql # not compatible
query I rowsort label-1263
SELECT 35 * - 45 + - MAX ( + 74 )
----
-1649

query I rowsort
SELECT 14 + - 93 * + 21 AS col0
----
-1939

query I rowsort
SELECT + 55 + - 70
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ( 52 ) + + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1266
SELECT ( 52 ) + + COUNT ( * ) AS col0
----
53

query I rowsort
SELECT + 82 + + 35 AS col0
----
117

query II rowsort
SELECT ALL + 94 * NULLIF ( - 32, + 45 ) + 98 + - 2 + - - 49 AS col2, 87 col0
----
-2863
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1269
SELECT ALL - - COALESCE ( 71, + 59 * - - COUNT( * ), 75 ) * + COALESCE ( 0, + COUNT( * ) ) * 87 + 17 + + 83 - 31 + + COUNT( ALL - 10 ) * 19 DIV + - 71 * - + 83 + - + 5
----
64

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL - - COALESCE ( 71, + 59 * - - COUNT ( * ), 75 ) * + COALESCE ( 0, + COUNT ( * ) ) * 87 + 17 + + 83 - 31 + + COUNT ( ALL - 10 ) * 19 / + - 71 * - + 83 + - + 5
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-1270
SELECT ALL - - COUNT( * ) + - 12 + + + 95, 86 AS col0
----
84
86

skipif mysql # not compatible
query II rowsort label-1270
SELECT ALL - - COUNT ( * ) + - 12 + + + 95, 86 AS col0
----
84
86

query I rowsort
SELECT - 32 + 38
----
6

query I rowsort
SELECT ALL + 42 + 5
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT ALL + + 10 * - 40 + + COUNT( * )
----
-399

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL + + 10 * - 40 + + COUNT ( * )
----
-399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1275
SELECT ALL + MIN( + 48 ) + - 29 AS col1, CASE - 51 WHEN + NULLIF ( - - 20, + MAX( DISTINCT - + 0 ) * + - 98 ) * + 94 THEN + MIN( DISTINCT + + 32 ) WHEN + - 64 + + ( CASE + 61 WHEN - 8 THEN NULL WHEN - + MAX( - 47 ) THEN - 41 / 56 - + CAST( CASE 71 WHEN + 49 THEN NULL WHEN 31 * COUNT( * ) THEN 6 ELSE NULL END AS SIGNED ) ELSE NULL END ) + COUNT( * ) / - 40 THEN NULL END + + 40
----
19
NULL

skipif mysql # not compatible
query II rowsort label-1275
SELECT ALL + MIN ( + 48 ) + - 29 AS col1, CASE - 51 WHEN + NULLIF ( - - 20, + MAX ( DISTINCT - + 0 ) * + - 98 ) * + 94 THEN + MIN ( DISTINCT + + 32 ) WHEN + - 64 + + ( CASE + 61 WHEN - 8 THEN NULL WHEN - + MAX ( - 47 ) THEN - 41 / 56 - + CAST ( CASE 71 WHEN + 49 THEN NULL WHEN 31 * COUNT ( * ) THEN 6 ELSE NULL END AS INTEGER ) ELSE NULL END ) + COUNT ( * ) / - 40 THEN NULL END + + 40
----
19
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT MAX( - + CASE 96 WHEN 58 THEN 16 - + ( + + 52 ) WHEN + 23 THEN NULL END ) / + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1277
SELECT MAX ( - + CASE 96 WHEN 58 THEN 16 - + ( + + 52 ) WHEN + 23 THEN NULL END ) / + 53
----
NULL

query I rowsort
SELECT ALL + 7 + + 45 + + 72
----
124

query I rowsort
SELECT 12 * 8 AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1280
SELECT ALL 22 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL 22 / - 86
----
0

query II rowsort
SELECT 53 col1, + 24 * ( - + 2 ) AS col1
----
53
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1282
SELECT - 84 * 74 + - 80 * + COALESCE ( COUNT( * ), - - 91 DIV 7 ) * 27 AS col2, - 26
----
-8376
-26

skipif mysql # not compatible
query II rowsort label-1282
SELECT - 84 * 74 + - 80 * + COALESCE ( COUNT ( * ), - - 91 / 7 ) * 27 AS col2, - 26
----
-8376
-26

query I rowsort
SELECT ALL - 39 * + 60
----
-2340

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

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

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

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

query I rowsort
SELECT ALL 15 * ( - 98 ) AS col1
----
-1470

query II rowsort
SELECT DISTINCT - 95, + 76 - - 73 - + 62 AS col0
----
-95
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT 49 * - 31 + - + 38 * 23 * NULLIF ( + COUNT( * ), + 80 ) AS col0
----
-2393

skipif mysql # not compatible
query I rowsort label-1288
SELECT 49 * - 31 + - + 38 * 23 * NULLIF ( + COUNT ( * ), + 80 ) AS col0
----
-2393

query I rowsort
SELECT 50 + - + 94 - + - 25
----
-19

query II rowsort
SELECT ALL 3 AS col2, + 20 * 54 * + - 36 AS col2
----
3
-38880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1291
SELECT ALL + COUNT( * ) * + + 65 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL + COUNT ( * ) * + + 65 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT NULLIF ( + - 33, - 63 ) DIV + MAX( - 28 ) + + 3 * - - 48 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-1292
SELECT NULLIF ( + - 33, - 63 ) / + MAX ( - 28 ) + + 3 * - - 48 AS col1
----
145

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

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

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

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

query II rowsort
SELECT - 84, - 70 col0
----
-84
-70

query I rowsort
SELECT ALL 40 * + 89
----
3560

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT COUNT( * ) - - - 23
----
-22

skipif mysql # not compatible
query I rowsort label-1297
SELECT COUNT ( * ) - - - 23
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-1298
SELECT DISTINCT 79, + 89 * + NULLIF ( 29, + COUNT( * ) ) * + - 14 AS col0
----
79
-36134

skipif mysql # not compatible
query II rowsort label-1298
SELECT DISTINCT 79, + 89 * + NULLIF ( 29, + COUNT ( * ) ) * + - 14 AS col0
----
79
-36134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1299
SELECT ALL - - 88 + - 2 + - + 86 + - CAST( - 29 AS SIGNED ) + 78 * - 5 * 63
----
-24541

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL - - 88 + - 2 + - + 86 + - CAST ( - 29 AS INTEGER ) + 78 * - 5 * 63
----
-24541

query I rowsort
SELECT 89 + - 12 + + 60 * 58
----
3557

query I rowsort
SELECT ALL + ( + 67 ) + + 13 - - + 54
----
134

query I rowsort
SELECT + 46 + + 47 * - + COALESCE ( - + 18, 33 ) + 32 - + 66 col0
----
858

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT 81 * + - 71 * - COUNT( * ) * + 39 AS col0
----
224289

skipif mysql # not compatible
query I rowsort label-1303
SELECT 81 * + - 71 * - COUNT ( * ) * + 39 AS col0
----
224289

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1304
SELECT DISTINCT COALESCE ( - COALESCE ( + + 57, + 29 ), + - 94 * + MAX( + 10 ), COALESCE ( - + ( - 68 ), + 87 DIV 13 ) + - 40 + + 99, CASE + 78 WHEN - 35 + - 83 + - - 37 DIV + - 23 THEN + 92 END )
----
-57

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT COALESCE ( - COALESCE ( + + 57, + 29 ), + - 94 * + MAX ( + 10 ), COALESCE ( - + ( - 68 ), + 87 / 13 ) + - 40 + + 99, CASE + 78 WHEN - 35 + - 83 + - - 37 / + - 23 THEN + 92 END )
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT ALL + COUNT( * ) + - 78 + - 89
----
-166

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL + COUNT ( * ) + - 78 + - 89
----
-166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1307
SELECT DISTINCT + COUNT( * ) + + COALESCE ( + 35, + 77 DIV ( - 0 ) + + 20 - COUNT( * ) + - - 81 + + 86 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT + COUNT ( * ) + + COALESCE ( + 35, + 77 / ( - 0 ) + + 20 - COUNT ( * ) + - - 81 + + 86 ) AS col0
----
36

query II rowsort
SELECT ALL + 45, 62 * 55 AS col0
----
45
3410

query I rowsort
SELECT - 96 + 29 AS col0
----
-67

query I rowsort
SELECT ALL - - 96 + + + 18
----
114

query I rowsort
SELECT - NULLIF ( + 73, 66 ) + 32
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT - - 31 + - 73 + - COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-1312
SELECT - - 31 + - 73 + - COUNT ( * ) AS col2
----
-43

query II rowsort
SELECT ALL NULLIF ( - 52, - 95 ), - 24 * 37 * - - 3 AS col2
----
-52
-2664

query I rowsort
SELECT ALL + - ( 45 ) * - 98
----
4410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1315
SELECT - + CASE - COALESCE ( - ( 86 ), 26 + - CAST( + + 28 AS SIGNED ) + + - 23 + + + 35 * + - 65 ) WHEN + 14 THEN NULL WHEN - + NULLIF ( + 61, - + 57 ) THEN NULL WHEN 35 * + ( - 44 ) + 54 + - COALESCE ( 51, - 35, - 53 * - COALESCE ( 20, + 68 / - COUNT( * ), + CASE 34 WHEN + 8 + - COUNT( * ) THEN + 40 * 24 + 26 ELSE 4 + 90 END, - 23 ) ) * - COUNT( * ) THEN NULL ELSE 65 END + - 65 * 95 AS col0
----
-6240

skipif mysql # not compatible
query I rowsort label-1315
SELECT - + CASE - COALESCE ( - ( 86 ), 26 + - CAST ( + + 28 AS INTEGER ) + + - 23 + + + 35 * + - 65 ) WHEN + 14 THEN NULL WHEN - + NULLIF ( + 61, - + 57 ) THEN NULL WHEN 35 * + ( - 44 ) + 54 + - COALESCE ( 51, - 35, - 53 * - COALESCE ( 20, + 68 / - COUNT ( * ), + CASE 34 WHEN + 8 + - COUNT ( * ) THEN + 40 * 24 + 26 ELSE 4 + 90 END, - 23 ) ) * - COUNT ( * ) THEN NULL ELSE 65 END + - 65 * 95 AS col0
----
-6240

query I rowsort
SELECT COALESCE ( - 69, - - 19 ) AS col2
----
-69

query I rowsort
SELECT + 69 - ( - - 99 ) * + - ( 77 ) * 1
----
7692

query I rowsort
SELECT CASE + + 86 WHEN - 75 THEN NULL ELSE - 39 * - - 82 END
----
-3198

query I rowsort
SELECT - 80 * - - 96 + - 94
----
-7774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1320
SELECT ALL + CAST( + AVG ( - 80 ) AS SIGNED ) * - + 0 - - + 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL + CAST ( + AVG ( - 80 ) AS INTEGER ) * - + 0 - - + 47 AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1321
SELECT - ( + 66 ) * + ( + 74 ), 57 - COUNT( * ) * + + 75 * - COUNT( * ) * - + 82 - COUNT( * ) + 28 * + - 48 AS col0
----
-4884
-7438

skipif mysql # not compatible
query II rowsort label-1321
SELECT - ( + 66 ) * + ( + 74 ), 57 - COUNT ( * ) * + + 75 * - COUNT ( * ) * - + 82 - COUNT ( * ) + 28 * + - 48 AS col0
----
-4884
-7438

query I rowsort
SELECT ALL - 52 * - 45 col2
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT NULLIF ( - + 99, ( - 36 ) + - - 52 + 27 + - - 10 * + COALESCE ( + - COUNT( * ), + - 84 + - 72 / 2 ) * + ( 52 ) / - + 34 + - 76 * + 87 )
----
-99

skipif mysql # not compatible
query I rowsort label-1323
SELECT NULLIF ( - + 99, ( - 36 ) + - - 52 + 27 + - - 10 * + COALESCE ( + - COUNT ( * ), + - 84 + - 72 / 2 ) * + ( 52 ) / - + 34 + - 76 * + 87 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL - 10 * - 27 - + COUNT( * ) AS col2
----
269

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL - 10 * - 27 - + COUNT ( * ) AS col2
----
269

query II rowsort
SELECT + 27 * 36 AS col1, + 77 AS col2
----
972
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1326
SELECT - COUNT( - - ( + 62 ) ) * + 67 AS col0, + CASE ( - - 75 ) WHEN COALESCE ( + ( - 68 ), - COUNT( - + 89 ) + 89 * 12, 29 * - 80 ) THEN - - 54 * - COUNT( + 21 ) END * + 90 + + - 68 col1
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-1326
SELECT - COUNT ( - - ( + 62 ) ) * + 67 AS col0, + CASE ( - - 75 ) WHEN COALESCE ( + ( - 68 ), - COUNT ( - + 89 ) + 89 * 12, 29 * - 80 ) THEN - - 54 * - COUNT ( + 21 ) END * + 90 + + - 68 col1
----
-67
NULL

query I rowsort
SELECT + 3 * 66 * - 12 AS col0
----
-2376

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1329
SELECT CASE + + CAST( NULL AS SIGNED ) WHEN + CAST( - - 76 AS SIGNED ) + 70 * + + 30 + - 43 - 51 THEN - COUNT( * ) WHEN ( + + 35 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1329
SELECT CASE + + CAST ( NULL AS INTEGER ) WHEN + CAST ( - - 76 AS INTEGER ) + 70 * + + 30 + - 43 - 51 THEN - COUNT ( * ) WHEN ( + + 35 ) THEN NULL END
----
NULL

query I rowsort
SELECT + 55 + + 38 - 55 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT ALL COUNT( DISTINCT - 79 ) * - + 80 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL COUNT ( DISTINCT - 79 ) * - + 80 AS col2
----
-80

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

query I rowsort
SELECT DISTINCT 96 * + - 0 * 9 AS col2
----
0

query I rowsort
SELECT + 37 + 27 + - 6 * + - 25 - - 41 col2
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1335
SELECT DISTINCT + CASE - 26 WHEN 55 THEN + 39 * - 5 + + 99 * - CAST( + - 50 AS SIGNED ) * - 16 ELSE + 87 END AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT + CASE - 26 WHEN 55 THEN + 39 * - 5 + + 99 * - CAST ( + - 50 AS INTEGER ) * - 16 ELSE + 87 END AS col1
----
87

query I rowsort
SELECT - - 36 + - - 99 AS col1
----
135

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1337
SELECT ALL + 67 + + + CASE + 86 WHEN - ( - 4 ) THEN + ( + CAST( + 36 AS SIGNED ) ) + - + 68 + 13 DIV + 78 DIV + + 10 * + - CASE - - 66 WHEN + + 38 THEN + 62 * + - 7 + + - 38 WHEN - 8 THEN 75 - + - 75 WHEN + 77 - - 61 THEN NULL ELSE NULL END ELSE - + 0 END AS col1
----
67

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL + 67 + + + CASE + 86 WHEN - ( - 4 ) THEN + ( + CAST ( + 36 AS INTEGER ) ) + - + 68 + 13 / + 78 / + + 10 * + - CASE - - 66 WHEN + + 38 THEN + 62 * + - 7 + + - 38 WHEN - 8 THEN 75 - + - 75 WHEN + 77 - - 61 THEN NULL ELSE NULL END ELSE - + 0 END AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1338
SELECT - - 78 * + COUNT( * ) * - 28 + CASE - 56 WHEN 94 * - SUM( DISTINCT 10 ) THEN 93 + - 99 - + NULLIF ( 3, + - NULLIF ( 30, 20 - - 29 ) ) * + - COUNT( * ) WHEN + 26 * + SUM( ALL - 95 ) THEN NULL END + + 82 * - - 0 * + + 10 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1338
SELECT - - 78 * + COUNT ( * ) * - 28 + CASE - 56 WHEN 94 * - SUM ( DISTINCT 10 ) THEN 93 + - 99 - + NULLIF ( 3, + - NULLIF ( 30, 20 - - 29 ) ) * + - COUNT ( * ) WHEN + 26 * + SUM ( ALL - 95 ) THEN NULL END + + 82 * - - 0 * + + 10 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + + 56 + - - 94, - 54 AS col2
----
150
-54

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

query I rowsort
SELECT 81 * - 21 + + 47 col2
----
-1654

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT - ( - 68 ) + + + COUNT( * ) * + ( + - 99 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-1343
SELECT - ( - 68 ) + + + COUNT ( * ) * + ( + - 99 ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT + CAST( + 35 AS SIGNED ) + + - 24
----
11

skipif mysql # not compatible
query I rowsort label-1344
SELECT + CAST ( + 35 AS INTEGER ) + + - 24
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT ALL MAX( ALL + 5 ) + - ( 2 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL MAX ( ALL + 5 ) + - ( 2 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1347
SELECT + 67 + - COUNT( * ), COUNT( * ) AS col0
----
66
1

skipif mysql # not compatible
query II rowsort label-1347
SELECT + 67 + - COUNT ( * ), COUNT ( * ) AS col0
----
66
1

query I rowsort
SELECT ALL - 40 + + 0 AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1349
SELECT ALL COALESCE ( + CASE - 29 WHEN - COUNT( * ) DIV ( - - 26 ) + 19 + 83 - 55 DIV - 73 DIV + 88 * - + CAST( NULL AS SIGNED ) THEN NULL WHEN - 13 THEN + 57 DIV - - 50 DIV + 89 DIV - + 82 END, - COUNT( ALL 44 ), - 50 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL COALESCE ( + CASE - 29 WHEN - COUNT ( * ) / ( - - 26 ) + 19 + 83 - 55 / - 73 / + 88 * - + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 13 THEN + 57 / - - 50 / + 89 / - + 82 END, - COUNT ( ALL 44 ), - 50 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT DISTINCT - 23 * - 71 + - COUNT( ALL + 45 ) + 60 * 59 AS col1
----
5172

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT - 23 * - 71 + - COUNT ( ALL + 45 ) + 60 * 59 AS col1
----
5172

query I rowsort
SELECT - ( - + COALESCE ( - + 29, + 81, + 6 ) ) AS col2
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1352
SELECT - - 79 + - 65 * + 50 * + - 0 DIV + 61
----
79

skipif mysql # not compatible
query I rowsort label-1352
SELECT - - 79 + - 65 * + 50 * + - 0 / + 61
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT - COUNT( * ) + - 44 + MIN( 16 )
----
-29

skipif mysql # not compatible
query I rowsort label-1354
SELECT - COUNT ( * ) + - 44 + MIN ( 16 )
----
-29

query I rowsort
SELECT + 69 * + + 47 + 83 AS col0
----
3326

onlyif mysql # aggregate syntax: 
query II rowsort label-1356
SELECT 0, COUNT( * ) * + 4 * 49 * - MAX( - + 50 ) + 12 * 80 AS col0
----
0
10760

skipif mysql # not compatible
query II rowsort label-1356
SELECT 0, COUNT ( * ) * + 4 * 49 * - MAX ( - + 50 ) + 12 * 80 AS col0
----
0
10760

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT ALL MIN( 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL MIN ( 8 ) AS col0
----
8

query II rowsort
SELECT - 76 * + 3 + 11, 23 AS col2
----
-217
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT + CASE 90 WHEN 63 * COALESCE ( + 26, - 57, + COUNT( * ) ) THEN + + 13 END * + ( 24 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT + CASE 90 WHEN 63 * COALESCE ( + 26, - 57, + COUNT ( * ) ) THEN + + 13 END * + ( 24 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1360
SELECT + CASE - - 51 WHEN 37 THEN 32 + - 30 WHEN - - CAST( 13 AS SIGNED ) THEN + COALESCE ( - 95, - 30 ) * + 69 + + 50 - - 83 END * NULLIF ( 39, - CAST( NULL AS SIGNED ) ) - + + 77 - COUNT( - 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT + CASE - - 51 WHEN 37 THEN 32 + - 30 WHEN - - CAST ( 13 AS INTEGER ) THEN + COALESCE ( - 95, - 30 ) * + 69 + + 50 - - 83 END * NULLIF ( 39, - CAST ( NULL AS INTEGER ) ) - + + 77 - COUNT ( - 31 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT - 3 * + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1361
SELECT - 3 * + COUNT ( * ) AS col2
----
-3

query I rowsort
SELECT ALL + 76 * - 86
----
-6536

query I rowsort
SELECT - 15 * + 71
----
-1065

onlyif mysql # DIV for integer division: 
query I rowsort label-1364
SELECT 85 DIV + COALESCE ( - 25, + 63 ) - 51
----
-54

skipif mysql # not compatible
query I rowsort label-1364
SELECT 85 / + COALESCE ( - 25, + 63 ) - 51
----
-54

query I rowsort
SELECT NULLIF ( - 22, - 45 * 55 + 3 + - + 72 ) * 39 + + 12 + 96 col1
----
-750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1366
SELECT - 67 DIV COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1366
SELECT - 67 / COUNT ( * ) AS col1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT ALL - 89 DIV + 11 + - + 51 + 51 + 28
----
20

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - 89 / + 11 + - + 51 + 51 + 28
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT ( - - CASE - 26 WHEN - COUNT( * ) THEN NULL WHEN 84 THEN NULL WHEN + - 2 THEN NULL WHEN 38 * + 69 - - 39 THEN - 11 * - 84 + - COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1368
SELECT ( - - CASE - 26 WHEN - COUNT ( * ) THEN NULL WHEN 84 THEN NULL WHEN + - 2 THEN NULL WHEN 38 * + 69 - - 39 THEN - 11 * - 84 + - COUNT ( * ) ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT DISTINCT + 56 DIV + ( 24 ) + + 8
----
10

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT + 56 / + ( 24 ) + + 8
----
10

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1371
SELECT - 37 DIV + + 48
----
0

skipif mysql # not compatible
query I rowsort label-1371
SELECT - 37 / + + 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT - 96 - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-1372
SELECT - 96 - COUNT ( * ) AS col0
----
-97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1375
SELECT ALL - 82 * + ( + - 26 ) + - 18 - + - CAST( 60 AS SIGNED ) * NULLIF ( + 44, + COUNT( * ) ) AS col0
----
4754

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL - 82 * + ( + - 26 ) + - 18 - + - CAST ( 60 AS INTEGER ) * NULLIF ( + 44, + COUNT ( * ) ) AS col0
----
4754

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

skipif mysql # not compatible
query I rowsort label-1376
SELECT - 1 / - 6
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1377
SELECT ALL + 3 * + 1 + 89 + + + COUNT( * ) + 82 AS col1, - CASE + CASE 52 WHEN - - ( - COUNT( * ) ) * ( - + COUNT( * ) ) * NULLIF ( + MIN( DISTINCT - 69 ), + 52 + - 22 ) THEN NULL ELSE - COUNT( * ) + + ( - COUNT( ALL 14 ) ) END WHEN - - 87 * - 8 THEN - + 39 WHEN - 72 THEN NULL END / + 45 AS col1
----
175
NULL

skipif mysql # not compatible
query II rowsort label-1377
SELECT ALL + 3 * + 1 + 89 + + + COUNT ( * ) + 82 AS col1, - CASE + CASE 52 WHEN - - ( - COUNT ( * ) ) * ( - + COUNT ( * ) ) * NULLIF ( + MIN ( DISTINCT - 69 ), + 52 + - 22 ) THEN NULL ELSE - COUNT ( * ) + + ( - COUNT ( ALL 14 ) ) END WHEN - - 87 * - 8 THEN - + 39 WHEN - 72 THEN NULL END / + 45 AS col1
----
175
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT DISTINCT - ( ( 9 ) ) * + - 54 + COUNT( * ) AS col1
----
487

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT - ( ( 9 ) ) * + - 54 + COUNT ( * ) AS col1
----
487

onlyif mysql # aggregate syntax: 
query II rowsort label-1379
SELECT ALL COALESCE ( + ( + - 84 ), + + 67 * COUNT( * ) ) AS col0, 84 AS col0
----
-84
84

skipif mysql # not compatible
query II rowsort label-1379
SELECT ALL COALESCE ( + ( + - 84 ), + + 67 * COUNT ( * ) ) AS col0, 84 AS col0
----
-84
84

query I rowsort
SELECT DISTINCT 99 - + 4 AS col2
----
95

query I rowsort
SELECT ALL + - 54 * - 74 AS col0
----
3996

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

query I rowsort
SELECT ALL - 94 * + 21
----
-1974

query I rowsort
SELECT 18 * + + 28 col2
----
504

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

skipif mysql # not compatible
query I rowsort label-1385
SELECT ( SUM ( + - 38 ) )
----
-38

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

query I rowsort
SELECT - 44 + - 79
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL 84 - - - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL 84 - - - COUNT ( * ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT MIN( + + 2 ) * 37 + 65 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-1389
SELECT MIN ( + + 2 ) * 37 + 65 AS col1
----
139

query I rowsort
SELECT - 58 + - + 36 * 6 * 7 AS col2
----
-1570

query II rowsort
SELECT DISTINCT 4 AS col2, 20
----
4
20

query I rowsort
SELECT ALL 28 * + + 56
----
1568

query II rowsort
SELECT DISTINCT 62, 11 AS col1
----
62
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT NULLIF ( + + 40, 97 * NULLIF ( - 63, 31 + + - ( - - 40 ) * + COUNT( * ) ) ) + + 91 + - - 55 * - - 65 AS col0
----
3706

skipif mysql # not compatible
query I rowsort label-1394
SELECT NULLIF ( + + 40, 97 * NULLIF ( - 63, 31 + + - ( - - 40 ) * + COUNT ( * ) ) ) + + 91 + - - 55 * - - 65 AS col0
----
3706

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT 27 + - 68 DIV + 20 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1395
SELECT 27 + - 68 / + 20 AS col2
----
24

query I rowsort
SELECT ALL 92 * + - 87
----
-8004

onlyif mysql # DIV for integer division: 
query I rowsort label-1397
SELECT 34 DIV 15 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1397
SELECT 34 / 15 AS col0
----
2

query I rowsort
SELECT 43 - - 32 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL ( + NULLIF ( - - 53, + ( + - 57 ) + + ( + ( - COUNT( * ) ) ) - + 20 ) ) * - 68
----
-3604

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL ( + NULLIF ( - - 53, + ( + - 57 ) + + ( + ( - COUNT ( * ) ) ) - + 20 ) ) * - 68
----
-3604

query II rowsort
SELECT ( + ( + 70 ) ) * - + 84 AS col1, 45
----
-5880
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1401
SELECT 90 / + 39 * 24 + + CAST( NULL AS SIGNED ) AS col0, 54 AS col0
----
NULL
54

skipif mysql # not compatible
query II rowsort label-1401
SELECT 90 / + 39 * 24 + + CAST ( NULL AS INTEGER ) AS col0, 54 AS col0
----
NULL
54

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

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

query II rowsort
SELECT DISTINCT - 66 AS col1, 89
----
-66
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1404
SELECT ALL + 45 + - - 65 DIV 55 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL + 45 + - - 65 / 55 AS col2
----
46

query I rowsort
SELECT ALL - 90 + + 10 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT 43 + - + COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1406
SELECT 43 + - + COUNT ( * ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT DISTINCT CAST( + 27 AS SIGNED ) + + 56 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT CAST ( + 27 AS INTEGER ) + + 56 AS col0
----
83

query I rowsort
SELECT ALL + 18 * + 93 AS col0
----
1674

query I rowsort
SELECT ALL + 45 + 77 AS col2
----
122

query II rowsort
SELECT NULLIF ( - 37, + ( - 59 ) ) + + 37 * - + 45 col2, + 63
----
-1702
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1411
SELECT 42 * + + 10 AS col1, - COUNT( * )
----
420
-1

skipif mysql # not compatible
query II rowsort label-1411
SELECT 42 * + + 10 AS col1, - COUNT ( * )
----
420
-1

query I rowsort
SELECT - 99 + - 93
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1413
SELECT ALL + + MIN( DISTINCT 31 ) + - - 57 + 83 * - - CASE - COUNT( * ) WHEN - - 3 THEN CAST( NULL AS SIGNED ) WHEN - 49 * + 34 THEN + 28 END * + 1 * CASE ( - AVG ( 33 ) ) WHEN - 56 + + 43 * - COUNT( * ) / - 29 + + - SUM( ALL + - 14 ) THEN - ( - - CAST( NULL AS SIGNED ) ) WHEN - COUNT( DISTINCT - + CAST( NULL AS DECIMAL ) ) / + 92 THEN 59 - - ( 74 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL + + MIN ( DISTINCT 31 ) + - - 57 + 83 * - - CASE - COUNT ( * ) WHEN - - 3 THEN CAST ( NULL AS INTEGER ) WHEN - 49 * + 34 THEN + 28 END * + 1 * CASE ( - AVG ( 33 ) ) WHEN - 56 + + 43 * - COUNT ( * ) / - 29 + + - SUM ( ALL + - 14 ) THEN - ( - - CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( DISTINCT - + CAST ( NULL AS REAL ) ) / + 92 THEN 59 - - ( 74 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT + 26 * + - COUNT( * ) AS col2
----
-26

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

query III rowsort
SELECT ALL - + 65 AS col2, 5 col2, 18
----
-65
5
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT + 72 * + 14 + - - MIN( - + 60 ) col1
----
948

skipif mysql # not compatible
query I rowsort label-1416
SELECT + 72 * + 14 + - - MIN ( - + 60 ) col1
----
948

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT DISTINCT - - SUM( DISTINCT + - 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT - - SUM ( DISTINCT + - 44 ) AS col2
----
-44

query I rowsort
SELECT - 49 + + - 11
----
-60

query I rowsort
SELECT DISTINCT + - 26 - - 69 AS col1
----
43

query II rowsort
SELECT - + 2 AS col1, + 92 + + + 23
----
-2
115

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1421
SELECT + COUNT( * ) AS col2, 12 + - - CAST( NULL AS DECIMAL ) - 47 + + - 3 - + - 50 + - + MAX( ALL - 76 ) / 54 + + ( ( + + 75 ) )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1421
SELECT + COUNT ( * ) AS col2, 12 + - - CAST ( NULL AS REAL ) - 47 + + - 3 - + - 50 + - + MAX ( ALL - 76 ) / 54 + + ( ( + + 75 ) )
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1422
SELECT - SUM( 43 ) DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-1422
SELECT - SUM ( 43 ) / - 80
----
0

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

skipif mysql # not compatible
query I rowsort label-1423
SELECT COUNT ( * ) * - 6
----
-6

query I rowsort
SELECT + ( - 81 ) * - 9 * + + ( 66 ) + 52 AS col1
----
48166

onlyif mysql # aggregate syntax: 
query II rowsort label-1425
SELECT ALL COUNT( * ), + 68 * - 79 AS col0
----
1
-5372

skipif mysql # not compatible
query II rowsort label-1425
SELECT ALL COUNT ( * ), + 68 * - 79 AS col0
----
1
-5372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1426
SELECT ( MAX( - 46 ) ) + - + 27 + + 75 DIV + NULLIF ( + COUNT( * ), 4 + - 51 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1426
SELECT ( MAX ( - 46 ) ) + - + 27 + + 75 / + NULLIF ( + COUNT ( * ), 4 + - 51 ) AS col0
----
2

query II rowsort
SELECT ALL - 56, - 40 * + 90 AS col2
----
-56
-3600

query I rowsort
SELECT + 65 + + 35
----
100

query I rowsort
SELECT ALL - 38 * - 73
----
2774

query I rowsort
SELECT 37 * + - 94
----
-3478

query I rowsort
SELECT 8 * - 92 * - + 39
----
28704

onlyif mysql # DIV for integer division: 
query I rowsort label-1432
SELECT 43 + 66 DIV + + 70
----
43

skipif mysql # not compatible
query I rowsort label-1432
SELECT 43 + 66 / + + 70
----
43

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

skipif mysql # not compatible
query I rowsort label-1433
SELECT 14 / - - COUNT ( * ) AS col0
----
14

query I rowsort
SELECT ( - 64 ) + - + 72
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1435
SELECT DISTINCT 21 DIV COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT 21 / COUNT ( * ) AS col0
----
21

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

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

query I rowsort
SELECT ALL 15 + - 56 * + - 94 - + COALESCE ( + + 50, 95 + + 24 ) AS col2
----
5229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1438
SELECT DISTINCT MAX( ALL + 44 ) DIV + MAX( ALL + 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT MAX ( ALL + 44 ) / + MAX ( ALL + 27 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1439
SELECT DISTINCT - COUNT( * ) * 27 + + COUNT( * ) * - 45 + + 61, + CAST( NULL AS SIGNED ) + + NULLIF ( 96, - - 88 ) col1
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-1439
SELECT DISTINCT - COUNT ( * ) * 27 + + COUNT ( * ) * - 45 + + 61, + CAST ( NULL AS INTEGER ) + + NULLIF ( 96, - - 88 ) col1
----
-11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL + 86 * + 95 * - 2 * + - 71 * COUNT( * ) + - 4 * + COALESCE ( COUNT( * ), + + 6, - COUNT( * ) + + 26 )
----
1160136

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL + 86 * + 95 * - 2 * + - 71 * COUNT ( * ) + - 4 * + COALESCE ( COUNT ( * ), + + 6, - COUNT ( * ) + + 26 )
----
1160136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1441
SELECT - 29 * - - 13 * + - 38 * + CASE - + 25 WHEN - + MIN( DISTINCT + 78 ) THEN + 53 ELSE 67 DIV 32 END - - - 83 * + 83 col2
----
21763

skipif mysql # not compatible
query I rowsort label-1441
SELECT - 29 * - - 13 * + - 38 * + CASE - + 25 WHEN - + MIN ( DISTINCT + 78 ) THEN + 53 ELSE 67 / 32 END - - - 83 * + 83 col2
----
21763

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT COUNT( DISTINCT - NULLIF ( 75, + 38 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1442
SELECT COUNT ( DISTINCT - NULLIF ( 75, + 38 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT + MAX( - 68 ) AS col1, + 3 * 59 AS col0
----
-68
177

skipif mysql # not compatible
query II rowsort label-1443
SELECT + MAX ( - 68 ) AS col1, + 3 * 59 AS col0
----
-68
177

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

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

query I rowsort
SELECT 78 * - + 57 AS col1
----
-4446

query I rowsort
SELECT 49 * + + 77 - - 74 - + 27 AS col0
----
3820

query I rowsort
SELECT DISTINCT + + 98 col1
----
98

query I rowsort
SELECT + 90 * + 99
----
8910

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT DISTINCT - COUNT( * ) * 92 * + - ( - + 49 )
----
-4508

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT - COUNT ( * ) * 92 * + - ( - + 49 )
----
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT - + 23 * + 85 + + CASE + COALESCE ( - COUNT( - + 38 ), + COUNT( * ), + 36 ) WHEN + + COUNT( * ) THEN NULLIF ( NULLIF ( 10, + 96 ), - 20 + + NULLIF ( + COALESCE ( + 3, - 98 ), 68 ) * 34 + - + 48 / + 17 ) WHEN - + 45 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1450
SELECT - + 23 * + 85 + + CASE + COALESCE ( - COUNT ( - + 38 ), + COUNT ( * ), + 36 ) WHEN + + COUNT ( * ) THEN NULLIF ( NULLIF ( 10, + 96 ), - 20 + + NULLIF ( + COALESCE ( + 3, - 98 ), 68 ) * 34 + - + 48 / + 17 ) WHEN - + 45 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1451
SELECT - 35 - + COALESCE ( CASE - 4 WHEN + ( 76 ) + AVG ( + + 40 ) THEN - - COUNT( * ) * COUNT( * ) END, + 47 ) + 18 AS col0, 16, - - 86 + + CAST( + 90 AS SIGNED ) AS col2
----
-64
16
176

skipif mysql # not compatible
query III rowsort label-1451
SELECT - 35 - + COALESCE ( CASE - 4 WHEN + ( 76 ) + AVG ( + + 40 ) THEN - - COUNT ( * ) * COUNT ( * ) END, + 47 ) + 18 AS col0, 16, - - 86 + + CAST ( + 90 AS INTEGER ) AS col2
----
-64
16
176

query II rowsort
SELECT DISTINCT 5 * 21 col0, 8 AS col0
----
105
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1453
SELECT DISTINCT - ( 12 ), CAST( NULL AS SIGNED ) AS col0
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-1453
SELECT DISTINCT - ( 12 ), CAST ( NULL AS INTEGER ) AS col0
----
-12
NULL

query I rowsort
SELECT DISTINCT - 9 + - 90
----
-99

query I rowsort
SELECT - - 19 col2
----
19

query I rowsort
SELECT - 98 + - 16
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1457
SELECT ALL + ( + - 0 ) DIV - MAX( ALL + 50 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL + ( + - 0 ) / - MAX ( ALL + 50 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1458
SELECT ALL - MIN( DISTINCT CAST( NULL AS DECIMAL ) ) + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL - MIN ( DISTINCT CAST ( NULL AS REAL ) ) + + 32
----
NULL

query I rowsort
SELECT - 51 + + 21 AS col0
----
-30

query I rowsort
SELECT - 44 + + 75
----
31

query I rowsort
SELECT ALL CASE + 78 WHEN 29 THEN + 97 WHEN AVG ( DISTINCT - 43 ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 89, + - 87 * - 29 + + 12 * + + 11 + + + 97, - 91 + + 78 ) AS col0
----
89

query I rowsort
SELECT - 21 + - 28 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT ALL 32 * MIN( ALL ( 49 ) )
----
1568

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL 32 * MIN ( ALL ( 49 ) )
----
1568

query II rowsort
SELECT ALL 82, 84 AS col0
----
82
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT - CASE - - SUM( DISTINCT - 17 ) WHEN COUNT( * ) THEN NULL WHEN - + 38 THEN 46 ELSE NULL END + + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1466
SELECT - CASE - - SUM ( DISTINCT - 17 ) WHEN COUNT ( * ) THEN NULL WHEN - + 38 THEN 46 ELSE NULL END + + 83 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1467
SELECT ALL + 90 + - - 80 * - - 39 * 25 AS col0, - CASE - 25 WHEN - 49 / - - 41 * - 79 + - ( 55 ) THEN NULL ELSE - 55 * - 97 * + + 46 + 38 + + + NULLIF ( - 90, CAST( NULL AS SIGNED ) ) END
----
78090
-245358

skipif mysql # not compatible
query II rowsort label-1467
SELECT ALL + 90 + - - 80 * - - 39 * 25 AS col0, - CASE - 25 WHEN - 49 / - - 41 * - 79 + - ( 55 ) THEN NULL ELSE - 55 * - 97 * + + 46 + 38 + + + NULLIF ( - 90, CAST ( NULL AS INTEGER ) ) END
----
78090
-245358

query I rowsort
SELECT + 73 + 99
----
172

query I rowsort
SELECT - 85 + + 7 * 52 AS col0
----
279

query I rowsort
SELECT + 91 * + + 89
----
8099

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

query II rowsort
SELECT ALL 96, 66 + 31 AS col0
----
96
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT COUNT( * ) * + + 39 + + 46 * + COUNT( * ) * SUM( ALL - 3 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-1474
SELECT COUNT ( * ) * + + 39 + + 46 * + COUNT ( * ) * SUM ( ALL - 3 ) AS col2
----
-99

query II rowsort
SELECT DISTINCT + 91, + 55 + - 26 col2
----
91
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1476
SELECT ALL 66 DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL 66 / - - 80
----
0

query I rowsort
SELECT DISTINCT 84 * + + 70
----
5880

query I rowsort
SELECT + 8 + 9 + - 49 AS col0
----
-32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT + - 12 DIV 32 * - 67 * + - 20
----
0

skipif mysql # not compatible
query I rowsort label-1480
SELECT + - 12 / 32 * - 67 * + - 20
----
0

query I rowsort
SELECT + - 1 + + 7 AS col1
----
6

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1483
SELECT ALL + 32 * - 56 * - COUNT( * ), + CASE - COUNT( * ) WHEN 38 THEN NULL WHEN - + 93 THEN + 70 ELSE NULL END AS col0
----
1792
NULL

skipif mysql # not compatible
query II rowsort label-1483
SELECT ALL + 32 * - 56 * - COUNT ( * ), + CASE - COUNT ( * ) WHEN 38 THEN NULL WHEN - + 93 THEN + 70 ELSE NULL END AS col0
----
1792
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1484
SELECT + + ( - - COUNT( * ) ) + CASE + - 38 WHEN 89 THEN NULL WHEN + 98 THEN + + 28 * - 6 WHEN MAX( DISTINCT + 68 ) THEN - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT + + ( - - COUNT ( * ) ) + CASE + - 38 WHEN 89 THEN NULL WHEN + 98 THEN + + 28 * - 6 WHEN MAX ( DISTINCT + 68 ) THEN - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT - - 63 + 97
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT DISTINCT 76 * 1 - - 63 + + COUNT( * ) + COUNT( * ) * - - 91 col2
----
231

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT 76 * 1 - - 63 + + COUNT ( * ) + COUNT ( * ) * - - 91 col2
----
231

query II rowsort
SELECT ALL + 6 AS col0, 29
----
6
29

query II rowsort
SELECT DISTINCT + 37 AS col0, - 59
----
37
-59

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

query I rowsort
SELECT + + 86 + - - 27
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1491
SELECT ALL - 74 * - 86 * 8 + + + CAST( NULL AS SIGNED ) + + - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL - 74 * - 86 * 8 + + + CAST ( NULL AS INTEGER ) + + - 65 AS col1
----
NULL

query II rowsort
SELECT + - 44 AS col2, + 91 AS col0
----
-44
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1493
SELECT - - COALESCE ( - 78, + - 35 + 95, + - 22 ) + 67 * + NULLIF ( - CASE + ( - COUNT( + 22 ) ) WHEN - ( + MIN( DISTINCT 52 ) ) - 77 * - 8 THEN - 72 DIV - - 46 WHEN - 64 * 0 * 55 THEN - 84 ELSE - 52 END, - 7 ) * - - NULLIF ( - 28, 41 ) + + - 65 + 74
----
-97621

skipif mysql # not compatible
query I rowsort label-1493
SELECT - - COALESCE ( - 78, + - 35 + 95, + - 22 ) + 67 * + NULLIF ( - CASE + ( - COUNT ( + 22 ) ) WHEN - ( + MIN ( DISTINCT 52 ) ) - 77 * - 8 THEN - 72 / - - 46 WHEN - 64 * 0 * 55 THEN - 84 ELSE - 52 END, - 7 ) * - - NULLIF ( - 28, 41 ) + + - 65 + 74
----
-97621

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

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

query I rowsort
SELECT - + 94 + + 81
----
-13

query II rowsort
SELECT DISTINCT 73 AS col0, 47 AS col1
----
73
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT - 81 + - 67 + CAST( - COALESCE ( CASE - 23 WHEN 23 + CAST( - ( - 13 ) AS SIGNED ) * AVG ( DISTINCT - ( - + 90 ) ) THEN CAST( NULL AS SIGNED ) + ( 62 ) ELSE NULL END, 27 ) AS SIGNED ) + + + ( + + 1 ) * 40 AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-1497
SELECT - 81 + - 67 + CAST ( - COALESCE ( CASE - 23 WHEN 23 + CAST ( - ( - 13 ) AS INTEGER ) * AVG ( DISTINCT - ( - + 90 ) ) THEN CAST ( NULL AS INTEGER ) + ( 62 ) ELSE NULL END, 27 ) AS INTEGER ) + + + ( + + 1 ) * 40 AS col1
----
-135

query I rowsort
SELECT + 51 * + + ( COALESCE ( + 4, 57 ) ) AS col0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT DISTINCT MIN( - 46 ) * - 55 - 33 AS col1
----
2497

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT MIN ( - 46 ) * - 55 - 33 AS col1
----
2497

query I rowsort
SELECT ALL - 24 * 11 * + 70 + - + 32
----
-18512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1501
SELECT DISTINCT 68 + + 34 / + CAST( NULL AS SIGNED ) * + - 1 + CAST( NULL AS SIGNED ) / 64 * NULLIF ( + + 97, ( - + 60 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT 68 + + 34 / + CAST ( NULL AS INTEGER ) * + - 1 + CAST ( NULL AS INTEGER ) / 64 * NULLIF ( + + 97, ( - + 60 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1502
SELECT ALL CAST( - 85 AS SIGNED ), 82 * 46 * 31 AS col2
----
-85
116932

skipif mysql # not compatible
query II rowsort label-1502
SELECT ALL CAST ( - 85 AS INTEGER ), 82 * 46 * 31 AS col2
----
-85
116932

query I rowsort
SELECT DISTINCT + 77 + - 68
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT + 85 DIV + + 50
----
1

skipif mysql # not compatible
query I rowsort label-1504
SELECT + 85 / + + 50
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1506
SELECT - CAST( NULL AS SIGNED ) + 58 + 56 + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT - CAST ( NULL AS INTEGER ) + 58 + 56 + + 48
----
NULL

query I rowsort
SELECT ALL + 59 - - 76 + + + 32
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-1508
SELECT 68 * + CASE - + 38 WHEN + 27 + 68 THEN + ( - + 92 ) WHEN + AVG ( + 1 ) THEN - 43 + - - 54 + + COUNT( * ) * + 86 + 74 * + - COUNT( * ) END * + ( 14 ) + - 88 * NULLIF ( 31, + 20 ) * - 12 + 67 / - - 60 AS col2, - 62
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-1508
SELECT 68 * + CASE - + 38 WHEN + 27 + 68 THEN + ( - + 92 ) WHEN + AVG ( + 1 ) THEN - 43 + - - 54 + + COUNT ( * ) * + 86 + 74 * + - COUNT ( * ) END * + ( 14 ) + - 88 * NULLIF ( 31, + 20 ) * - 12 + 67 / - - 60 AS col2, - 62
----
NULL
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT ALL + 87 * - + ( + + 68 ) * - NULLIF ( - 32, - 32 * - 63 * + ( MAX( - - 14 ) ) )
----
-189312

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL + 87 * - + ( + + 68 ) * - NULLIF ( - 32, - 32 * - 63 * + ( MAX ( - - 14 ) ) )
----
-189312

onlyif mysql # DIV for integer division: 
query I rowsort label-1510
SELECT - 66 DIV 43 * + 75 + + 43 + - 41 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-1510
SELECT - 66 / 43 * + 75 + + 43 + - 41 AS col0
----
-73

query I rowsort
SELECT 62 * + 10 AS col0
----
620

query I rowsort
SELECT 10 + - ( - 95 ) * + 39 AS col2
----
3715

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

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL COUNT ( * ) / 74
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1515
SELECT DISTINCT + - CAST( + 1 AS SIGNED ) + + + 17
----
16

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT + - CAST ( + 1 AS INTEGER ) + + + 17
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1516
SELECT + CAST( + 87 AS SIGNED ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1516
SELECT + CAST ( + 87 AS INTEGER ) AS col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1517
SELECT + NULLIF ( 48, + + 84 + 73 ) DIV 4 - + - 96 col2
----
108

skipif mysql # not compatible
query I rowsort label-1517
SELECT + NULLIF ( 48, + + 84 + 73 ) / 4 - + - 96 col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT - 54 * 73 - - COUNT( * )
----
-3941

skipif mysql # not compatible
query I rowsort label-1518
SELECT - 54 * 73 - - COUNT ( * )
----
-3941

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

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

query I rowsort
SELECT ALL 28 * - + ( - 94 ) AS col0
----
2632

query I rowsort
SELECT 90 * + 24 * + + 64 AS col2
----
138240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1522
SELECT DISTINCT - 27 + + MAX( - 43 ) * + CASE - 31 WHEN + 12 * + + 20 + + 1 + - 71 * - COUNT( DISTINCT + 10 ) + + 40 * MAX( DISTINCT 42 ) * - - 29 + - - MIN( 25 ) - 25 * - MIN( - 49 ) + + 85 THEN - COALESCE ( - 82, - - 75 + - - 84, - 64 * 37 + - + 6 + + NULLIF ( COUNT( * ), - AVG ( DISTINCT - 90 ) ) ) WHEN - 30 THEN + CAST( NULL AS SIGNED ) * 20 END * 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT - 27 + + MAX ( - 43 ) * + CASE - 31 WHEN + 12 * + + 20 + + 1 + - 71 * - COUNT ( DISTINCT + 10 ) + + 40 * MAX ( DISTINCT 42 ) * - - 29 + - - MIN ( 25 ) - 25 * - MIN ( - 49 ) + + 85 THEN - COALESCE ( - 82, - - 75 + - - 84, - 64 * 37 + - + 6 + + NULLIF ( COUNT ( * ), - AVG ( DISTINCT - 90 ) ) ) WHEN - 30 THEN + CAST ( NULL AS INTEGER ) * 20 END * 31 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1523
SELECT ALL 63 + + 9 * - 75 * + NULLIF ( - + CAST( 27 AS SIGNED ), - - 35 + + - 58 ) AS col2
----
18288

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL 63 + + 9 * - 75 * + NULLIF ( - + CAST ( 27 AS INTEGER ), - - 35 + + - 58 ) AS col2
----
18288

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT 24 * + + MAX( + ( + 8 ) )
----
192

skipif mysql # not compatible
query I rowsort label-1524
SELECT 24 * + + MAX ( + ( + 8 ) )
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT - COALESCE ( COUNT( * ), 25, + - 55 * + 30 + + + 75 ) * + 11 * ( - COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT - COALESCE ( COUNT ( * ), 25, + - 55 * + 30 + + + 75 ) * + 11 * ( - COUNT ( * ) )
----
11

query I rowsort
SELECT NULLIF ( - + 72, + 91 ) - 96 - + + 41 + + 27 * + - 33 AS col1
----
-1100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1527
SELECT ALL 27 + 87 DIV - 96 * 4 * + 16 * - - 53 + - MAX( ALL + 81 )
----
-54

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL 27 + 87 / - 96 * 4 * + 16 * - - 53 + - MAX ( ALL + 81 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT DISTINCT - 45 - + 96 * + COUNT( * )
----
-141

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT - 45 - + 96 * + COUNT ( * )
----
-141

query I rowsort
SELECT 33 + 21
----
54

query II rowsort
SELECT - 27 col0, - 24
----
-27
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT ALL 56 * - COUNT( ALL - - 12 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL 56 * - COUNT ( ALL - - 12 ) AS col1
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1532
SELECT ( - 72 ) + - 70 DIV + 71 * + 3 * + COUNT( * ) * - MIN( + 38 ) col0, - 87
----
-72
-87

skipif mysql # not compatible
query II rowsort label-1532
SELECT ( - 72 ) + - 70 / + 71 * + 3 * + COUNT ( * ) * - MIN ( + 38 ) col0, - 87
----
-72
-87

query I rowsort
SELECT 78 - 92 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-1534
SELECT ( 94 ) * + 35, - 60 + 23 + ( + 24 ) + + - 2 * COUNT( * ) + - 45 col1
----
3290
-60

skipif mysql # not compatible
query II rowsort label-1534
SELECT ( 94 ) * + 35, - 60 + 23 + ( + 24 ) + + - 2 * COUNT ( * ) + - 45 col1
----
3290
-60

query II rowsort
SELECT - 36 AS col1, 66 AS col1
----
-36
66

query I rowsort
SELECT ALL - 28 - - ( + + 56 ) * - + 90 + + - 64
----
-5132

query II rowsort
SELECT - 38 col1, 15
----
-38
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1538
SELECT CAST( - + 53 AS SIGNED ) + + 62
----
9

skipif mysql # not compatible
query I rowsort label-1538
SELECT CAST ( - + 53 AS INTEGER ) + + 62
----
9

query I rowsort
SELECT DISTINCT 55 * - - 48 * + 70 * + + 97 AS col0
----
17925600

query I rowsort
SELECT 87 + - 57
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1541
SELECT - 4 AS col0, - 35 DIV + COUNT( * ) AS col1, + - 83 AS col2
----
-4
-35
-83

skipif mysql # not compatible
query III rowsort label-1541
SELECT - 4 AS col0, - 35 / + COUNT ( * ) AS col1, + - 83 AS col2
----
-4
-35
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1542
SELECT 93 DIV - 77
----
-1

skipif mysql # not compatible
query I rowsort label-1542
SELECT 93 / - 77
----
-1

query II rowsort
SELECT ALL 94 AS col0, 86 * + + 7 * - 19 AS col0
----
94
-11438

query I rowsort
SELECT ALL - - 80 + + 61 AS col0
----
141

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

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

query I rowsort
SELECT DISTINCT - - 5 * 13 AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1547
SELECT ALL 53 + + + COUNT( ALL - - 56 ) * - CAST( - - 80 AS SIGNED ) * 28 + - 33 AS col1
----
-2220

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL 53 + + + COUNT ( ALL - - 56 ) * - CAST ( - - 80 AS INTEGER ) * 28 + - 33 AS col1
----
-2220

query I rowsort
SELECT DISTINCT + 82 * + 93 AS col2
----
7626

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT ALL - COUNT( * ) + + 64 * - 18 col0
----
-1153

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL - COUNT ( * ) + + 64 * - 18 col0
----
-1153

onlyif mysql # aggregate syntax: 
query II rowsort label-1550
SELECT DISTINCT + 66 + 68 + + 80 * - + 19 * + COUNT( * ), 4 * - 6 AS col0
----
-1386
-24

skipif mysql # not compatible
query II rowsort label-1550
SELECT DISTINCT + 66 + 68 + + 80 * - + 19 * + COUNT ( * ), 4 * - 6 AS col0
----
-1386
-24

query I rowsort
SELECT - 84 * + 3 + 2
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT DISTINCT + NULLIF ( + ( 55 ), + 88 ) * COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT + NULLIF ( + ( 55 ), + 88 ) * COUNT ( * ) AS col2
----
55

query I rowsort
SELECT ALL - + ( 76 ) + - - 19 * + 64 AS col0
----
1140

query II rowsort
SELECT 8 AS col0, 55 + 12 AS col2
----
8
67

query I rowsort
SELECT DISTINCT + 72 + + 15 * + 56 + + 62
----
974

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT COUNT( * ) + + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-1556
SELECT COUNT ( * ) + + - 76
----
-75

query II rowsort
SELECT 42 AS col0, - 38 AS col0
----
42
-38

query II rowsort
SELECT ALL - 8, - 17 * + 56 AS col2
----
-8
-952

query I rowsort
SELECT ALL + 58 - - 51
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1560
SELECT 53 + + CAST( 50 AS SIGNED ) + - 32
----
71

skipif mysql # not compatible
query I rowsort label-1560
SELECT 53 + + CAST ( 50 AS INTEGER ) + - 32
----
71

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1562
SELECT + 70, - 80 DIV 75 AS col2
----
70
-1

skipif mysql # not compatible
query II rowsort label-1562
SELECT + 70, - 80 / 75 AS col2
----
70
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1563
SELECT 42, COUNT( * ) * + 40 + - COUNT( * ) * - 54 - - 19 + 72 AS col2
----
42
185

skipif mysql # not compatible
query II rowsort label-1563
SELECT 42, COUNT ( * ) * + 40 + - COUNT ( * ) * - 54 - - 19 + 72 AS col2
----
42
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL 73 * + MIN( DISTINCT - - 74 ) * - 46
----
-248492

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL 73 * + MIN ( DISTINCT - - 74 ) * - 46
----
-248492

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

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

query I rowsort
SELECT ALL - 69 * + + 1
----
-69

query I rowsort
SELECT DISTINCT + 14 * + ( 74 )
----
1036

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT - SUM( - - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-1568
SELECT - SUM ( - - 72 )
----
-72

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

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

query I rowsort
SELECT + 60 * 33
----
1980

query I rowsort
SELECT ALL 66 + + ( + 15 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT + - 89 * + 26 * 4 + + 15 * COUNT( * ) * 69 + - 76
----
-8297

skipif mysql # not compatible
query I rowsort label-1572
SELECT + - 89 * + 26 * 4 + + 15 * COUNT ( * ) * 69 + - 76
----
-8297

query I rowsort
SELECT DISTINCT - 78 + 50 * + 19 + + 22
----
894

onlyif mysql # aggregate syntax: 
query II rowsort label-1574
SELECT ALL + COUNT( * ) AS col0, 98 AS col0
----
1
98

skipif mysql # not compatible
query II rowsort label-1574
SELECT ALL + COUNT ( * ) AS col0, 98 AS col0
----
1
98

onlyif mysql # aggregate syntax: 
query II rowsort label-1575
SELECT + CASE - - 97 WHEN + 61 - + 93 THEN + + 69 WHEN 60 + - - 37 THEN + 85 + COUNT( * ) ELSE NULL END col1, - 37 * + 65 + - 63
----
86
-2468

skipif mysql # not compatible
query II rowsort label-1575
SELECT + CASE - - 97 WHEN + 61 - + 93 THEN + + 69 WHEN 60 + - - 37 THEN + 85 + COUNT ( * ) ELSE NULL END col1, - 37 * + 65 + - 63
----
86
-2468

query I rowsort
SELECT ALL - 28 + - + 24
----
-52

query I rowsort
SELECT + 86 + - + 0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1578
SELECT + - 90 * 82 DIV + + ( - NULLIF ( - 49, + 21 + - + 50 ) ) + - COUNT( * ) AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-1578
SELECT + - 90 * 82 / + + ( - NULLIF ( - 49, + 21 + - + 50 ) ) + - COUNT ( * ) AS col0
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT ALL 60 * - 90 * + + CASE CASE - 70 WHEN + + COUNT( * ) THEN NULL WHEN 93 * - COUNT( * ) - - + ( + 30 ) THEN NULL ELSE + 75 * 29 * - 41 + - 91 END WHEN + - 54 / - SUM( + 68 ) THEN + 53 + + 41 END + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL 60 * - 90 * + + CASE CASE - 70 WHEN + + COUNT ( * ) THEN NULL WHEN 93 * - COUNT ( * ) - - + ( + 30 ) THEN NULL ELSE + 75 * 29 * - 41 + - 91 END WHEN + - 54 / - SUM ( + 68 ) THEN + 53 + + 41 END + - 51
----
NULL

query I rowsort
SELECT - 27 * 49 * - + 2 AS col0
----
2646

onlyif mysql # aggregate syntax: 
query II rowsort label-1581
SELECT + + COALESCE ( 97, - + 2 + - 45 ), ( + 40 ) - + SUM( + 12 ) + 61 AS col2
----
97
89

skipif mysql # not compatible
query II rowsort label-1581
SELECT + + COALESCE ( 97, - + 2 + - 45 ), ( + 40 ) - + SUM ( + 12 ) + 61 AS col2
----
97
89

query I rowsort
SELECT - + 7 + 5 - + 74
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1583
SELECT - 2 DIV ( + + SUM( ALL + + CAST( + + 45 AS SIGNED ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1583
SELECT - 2 / ( + + SUM ( ALL + + CAST ( + + 45 AS INTEGER ) ) ) AS col0
----
0

query II rowsort
SELECT DISTINCT + - 90 * - - 80 + + + 78 - + - 67 AS col0, + 62 - 47
----
-7055
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1585
SELECT - 97 / - MIN( DISTINCT + - CASE - 89 WHEN + 37 + + - 78 THEN + + 29 + - - CAST( NULL AS SIGNED ) * - COALESCE ( + 0, - 40 * - + 96 * - 1 ) WHEN + 25 THEN NULL END ) + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1585
SELECT - 97 / - MIN ( DISTINCT + - CASE - 89 WHEN + 37 + + - 78 THEN + + 29 + - - CAST ( NULL AS INTEGER ) * - COALESCE ( + 0, - 40 * - + 96 * - 1 ) WHEN + 25 THEN NULL END ) + 32
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + COUNT ( ALL - - 16 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1587
SELECT DISTINCT - COUNT( * ) * + 11, 55 + ( + 31 ) col1
----
-11
86

skipif mysql # not compatible
query II rowsort label-1587
SELECT DISTINCT - COUNT ( * ) * + 11, 55 + ( + 31 ) col1
----
-11
86

query I rowsort
SELECT + 10 - ( + NULLIF ( + + 37, 80 ) ) col0
----
-27

query II rowsort
SELECT + 68 * - + 31, 68 * - 34 * - 19 AS col2
----
-2108
43928

query I rowsort
SELECT NULLIF ( - 3, - 54 * 25 ) AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1591
SELECT ALL - CAST( NULL AS SIGNED ) * - 49 * - 42 * - COALESCE ( COUNT( ALL + + ( - 72 ) ), + 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL - CAST ( NULL AS INTEGER ) * - 49 * - 42 * - COALESCE ( COUNT ( ALL + + ( - 72 ) ), + 12 ) AS col0
----
NULL

query I rowsort
SELECT - 92 * 71
----
-6532

query I rowsort
SELECT COALESCE ( 97, + 92 + + 89 * + + 32, 73 * 54 )
----
97

query I rowsort
SELECT - 38 * + 85 AS col1
----
-3230

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT - COALESCE ( - ( + + 42 ), + 7, - 83 * + ( MIN( DISTINCT + + ( - - 58 ) ) ) * + 80 ) - 18
----
24

skipif mysql # not compatible
query I rowsort label-1595
SELECT - COALESCE ( - ( + + 42 ), + 7, - 83 * + ( MIN ( DISTINCT + + ( - - 58 ) ) ) * + 80 ) - 18
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT ALL CASE + 88 WHEN + COUNT( * ) THEN - 93 - SUM( ALL 98 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL CASE + 88 WHEN + COUNT ( * ) THEN - 93 - SUM ( ALL 98 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT ALL 2 * + 56 * - SUM( + 41 )
----
-4592

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL 2 * + 56 * - SUM ( + 41 )
----
-4592

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT ALL 20 * 12 DIV - + COALESCE ( - - 61, - + 95 * + AVG ( ( 61 ) ), - 55 )
----
-3

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL 20 * 12 / - + COALESCE ( - - 61, - + 95 * + AVG ( ( 61 ) ), - 55 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT DISTINCT 77 * + + 25 * + - ( - - 59 ) + SUM( DISTINCT 10 ) AS col0
----
-113565

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT 77 * + + 25 * + - ( - - 59 ) + SUM ( DISTINCT 10 ) AS col0
----
-113565

query I rowsort
SELECT - NULLIF ( - 44, - + 53 )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1601
SELECT - 48 + - COUNT( * ) AS col1, 7
----
-49
7

skipif mysql # not compatible
query II rowsort label-1601
SELECT - 48 + - COUNT ( * ) AS col1, 7
----
-49
7

query I rowsort
SELECT ALL 60 * + + 28
----
1680

query I rowsort
SELECT - - 85 + 53 AS col0
----
138

query I rowsort
SELECT ALL + 79 + - 43
----
36

query II rowsort
SELECT ALL 92 + - - 61 - + - 58 * + + ( 57 ), - 4 AS col2
----
3459
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT + 61 + - ( + 66 ) DIV + - 50 + - - NULLIF ( + + 92, - - 74 + + 50 )
----
154

skipif mysql # not compatible
query I rowsort label-1606
SELECT + 61 + - ( + 66 ) / + - 50 + - - NULLIF ( + + 92, - - 74 + + 50 )
----
154

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

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

query I rowsort
SELECT ALL 5 + - 88
----
-83

query I rowsort
SELECT + ( - + 16 ) + - 48
----
-64

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

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

query II rowsort
SELECT ALL + 64 + - 39 AS col1, + 93 * + - 20 * + + 57
----
25
-106020

query I rowsort
SELECT + + 78 + + 60 AS col2
----
138

query I rowsort
SELECT + 91 * - 42
----
-3822

onlyif mysql # DIV for integer division: 
query I rowsort label-1614
SELECT + - 1 + - + 35 DIV + + 92 col2
----
-1

skipif mysql # not compatible
query I rowsort label-1614
SELECT + - 1 + - + 35 / + + 92 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT DISTINCT 79 * + COUNT( * ) + + - 21 * - 77
----
1696

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT 79 * + COUNT ( * ) + + - 21 * - 77
----
1696

query I rowsort
SELECT + 69 * - 54
----
-3726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1617
SELECT + 45 - + CAST( + 89 AS SIGNED ) * CAST( NULL AS SIGNED ) * - - COUNT( * ) / + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1617
SELECT + 45 - + CAST ( + 89 AS INTEGER ) * CAST ( NULL AS INTEGER ) * - - COUNT ( * ) / + 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1618
SELECT + 62 + + - MAX( DISTINCT - 38 ) DIV COUNT( ALL + 41 ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-1618
SELECT + 62 + + - MAX ( DISTINCT - 38 ) / COUNT ( ALL + 41 ) AS col1
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1619
SELECT ALL + 41 DIV - + MIN( DISTINCT - 78 ) * - - 8 + - + 28 DIV - 14 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL + 41 / - + MIN ( DISTINCT - 78 ) * - - 8 + - + 28 / - 14 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ( - + 88 ) + + ( + MIN( - + 14 ) ) - + 45
----
-147

skipif mysql # not compatible
query I rowsort label-1620
SELECT ( - + 88 ) + + ( + MIN ( - + 14 ) ) - + 45
----
-147

onlyif mysql # aggregate syntax: 
query II rowsort label-1621
SELECT 32 * CASE + 61 WHEN - 15 * 67 THEN NULL WHEN COUNT( * ) * + COUNT( * ) + + COUNT( * ) + - 67 + 60 THEN + 91 END + 43 * + 75 AS col2, - ( - - 48 ) + - 19 + 10 + + + 66 * + 48 * - - 20 * - 47
----
NULL
-2977977

skipif mysql # not compatible
query II rowsort label-1621
SELECT 32 * CASE + 61 WHEN - 15 * 67 THEN NULL WHEN COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) + - 67 + 60 THEN + 91 END + 43 * + 75 AS col2, - ( - - 48 ) + - 19 + 10 + + + 66 * + 48 * - - 20 * - 47
----
NULL
-2977977

onlyif mysql # aggregate syntax: 
query II rowsort label-1622
SELECT ALL - 3, - COUNT( * ) - + COUNT( * ) + + 91 * - 48 * ( - + ( - 34 ) ) * + - 53 + 58 * + + 62 AS col2
----
-3
7874730

skipif mysql # not compatible
query II rowsort label-1622
SELECT ALL - 3, - COUNT ( * ) - + COUNT ( * ) + + 91 * - 48 * ( - + ( - 34 ) ) * + - 53 + 58 * + + 62 AS col2
----
-3
7874730

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT 78 + + + SUM( 9 )
----
87

skipif mysql # not compatible
query I rowsort label-1623
SELECT 78 + + + SUM ( 9 )
----
87

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

query I rowsort
SELECT 87 + - + 12
----
75

query I rowsort
SELECT ALL - 69 + - 5 col1
----
-74

query II rowsort
SELECT + 35 AS col2, - 2 AS col2
----
35
-2

query II rowsort
SELECT + 87 AS col2, 16 * + - 67 * + - 87 AS col2
----
87
93264

onlyif mysql # aggregate syntax: 
query II rowsort label-1629
SELECT + 89 col2, + SUM( + + 9 )
----
89
9

skipif mysql # not compatible
query II rowsort label-1629
SELECT + 89 col2, + SUM ( + + 9 )
----
89
9

query II rowsort
SELECT ALL 91, 33 AS col0
----
91
33

query I rowsort
SELECT 77 * - 58 * 30 * - - 90 * + - 60 AS col0
----
723492000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1632
SELECT 70 * CAST( NULL AS SIGNED ) / + COUNT( * ) * + ( - 60 ) + + - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1632
SELECT 70 * CAST ( NULL AS INTEGER ) / + COUNT ( * ) * + ( - 60 ) + + - 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1633
SELECT DISTINCT - COALESCE ( COUNT( * ), + 37 + + - 46, + - CAST( NULL AS SIGNED ) ) + + - 73
----
-74

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT - COALESCE ( COUNT ( * ), + 37 + + - 46, + - CAST ( NULL AS INTEGER ) ) + + - 73
----
-74

query I rowsort
SELECT DISTINCT + 52 + + 95 + - 71
----
76

query I rowsort
SELECT - 46 * 30 AS col2
----
-1380

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT - NULLIF ( COUNT( * ), - + COUNT( * ) + + 39 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1637
SELECT - NULLIF ( COUNT ( * ), - + COUNT ( * ) + + 39 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1638
SELECT NULLIF ( 25, + COUNT( * ) ) - - + COUNT( * ) DIV + - 84 + 94 AS col0, ( 72 )
----
119
72

skipif mysql # not compatible
query II rowsort label-1638
SELECT NULLIF ( 25, + COUNT ( * ) ) - - + COUNT ( * ) / + - 84 + 94 AS col0, ( 72 )
----
119
72

query II rowsort
SELECT 97 AS col0, + 12
----
97
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1640
SELECT 23 DIV 71 * 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1640
SELECT 23 / 71 * 35 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1642
SELECT 3 - + 30 + MAX( + ( - 59 ) ) * - - 93 AS col2, + CAST( + - COUNT( * ) AS SIGNED ) + 49 AS col2
----
-5514
48

skipif mysql # not compatible
query II rowsort label-1642
SELECT 3 - + 30 + MAX ( + ( - 59 ) ) * - - 93 AS col2, + CAST ( + - COUNT ( * ) AS INTEGER ) + 49 AS col2
----
-5514
48

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

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

query II rowsort
SELECT - - 79 AS col0, + 77
----
79
77

query II rowsort
SELECT ALL - - 67, + 90 - 58 + - - 40 col1
----
67
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1646
SELECT ALL - COUNT( * ) AS col1, + NULLIF ( - + 25, + 9 ) AS col1
----
-1
-25

skipif mysql # not compatible
query II rowsort label-1646
SELECT ALL - COUNT ( * ) AS col1, + NULLIF ( - + 25, + 9 ) AS col1
----
-1
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT + - CASE - 21 WHEN + - 16 * + 12 THEN - 68 * - 57 * - + 2 * + COUNT( * ) + + 57 WHEN + + 30 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1647
SELECT + - CASE - 21 WHEN + - 16 * + 12 THEN - 68 * - 57 * - + 2 * + COUNT ( * ) + + 57 WHEN + + 30 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT 43 * - 87 * 81
----
-303021

query I rowsort
SELECT + 39 * - 4 + 33 * - ( 10 )
----
-486

onlyif mysql # DIV for integer division: 
query I rowsort label-1650
SELECT 45 DIV 7 - - + 94 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-1650
SELECT 45 / 7 - - + 94 AS col2
----
100

query I rowsort
SELECT DISTINCT 92 * + 76
----
6992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1652
SELECT DISTINCT 44 * 76 AS col2, 86 * - + SUM( - + 85 ) AS col1, + 14 + + 97 / + - CAST( NULL AS SIGNED ) + + 61 AS col0
----
3344
7310
NULL

skipif mysql # not compatible
query III rowsort label-1652
SELECT DISTINCT 44 * 76 AS col2, 86 * - + SUM ( - + 85 ) AS col1, + 14 + + 97 / + - CAST ( NULL AS INTEGER ) + + 61 AS col0
----
3344
7310
NULL

query I rowsort
SELECT DISTINCT 56 + 3 + + + 30
----
89

query I rowsort
SELECT ( - - 26 ) * - - 31
----
806

query I rowsort
SELECT ALL 91 + - 50 - + 50
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1656
SELECT CASE + 85 WHEN + + 62 * - + 65 * + 42 * - CASE + 74 WHEN - COALESCE ( + 11, - + 35 DIV - 58 - + 78 ) - - - AVG ( ALL - 9 ) * - - 42 + + 76 - + SUM( - 56 ) + + 53 THEN NULL WHEN 94 THEN COUNT( * ) * 80 * 9 DIV + ( + NULLIF ( - 51, + NULLIF ( - 19, 4 + COUNT( * ) ) + 63 + - 22 * 35 * + + ( + 8 ) * + NULLIF ( 87 * - CAST( - COUNT( * ) * 23 AS SIGNED ) + COUNT( * ), 0 ) ) ) + 21 ELSE NULL END * 16 THEN NULL ELSE - CAST( - 32 AS SIGNED ) DIV 68 + 44 END - 39
----
5

skipif mysql # not compatible
query I rowsort label-1656
SELECT CASE + 85 WHEN + + 62 * - + 65 * + 42 * - CASE + 74 WHEN - COALESCE ( + 11, - + 35 / - 58 - + 78 ) - - - AVG ( ALL - 9 ) * - - 42 + + 76 - + SUM ( - 56 ) + + 53 THEN NULL WHEN 94 THEN COUNT ( * ) * 80 * 9 / + ( + NULLIF ( - 51, + NULLIF ( - 19, 4 + COUNT ( * ) ) + 63 + - 22 * 35 * + + ( + 8 ) * + NULLIF ( 87 * - CAST ( - COUNT ( * ) * 23 AS INTEGER ) + COUNT ( * ), 0 ) ) ) + 21 ELSE NULL END * 16 THEN NULL ELSE - CAST ( - 32 AS INTEGER ) / 68 + 44 END - 39
----
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1658
SELECT ( + - 94 ) DIV - 23 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1658
SELECT ( + - 94 ) / - 23 AS col1
----
4

query I rowsort
SELECT ALL - 38 + + 17 * + - 59 + + 81
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT COUNT( * ) * + - 76 - - 37
----
-39

skipif mysql # not compatible
query I rowsort label-1660
SELECT COUNT ( * ) * + - 76 - - 37
----
-39

query I rowsort
SELECT DISTINCT - 66 * + 70
----
-4620

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

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT COUNT ( * ) / + 1 + - - ( - ( + 26 ) ) + + - 20 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-1663
SELECT ALL + 66 * - COUNT( * ), - 69 * + 28 AS col0
----
-66
-1932

skipif mysql # not compatible
query II rowsort label-1663
SELECT ALL + 66 * - COUNT ( * ), - 69 * + 28 AS col0
----
-66
-1932

query I rowsort
SELECT ALL - 97 - 11
----
-108

query I rowsort
SELECT - 10 + - 79 AS col1
----
-89

query I rowsort
SELECT 46 - - 23 AS col2
----
69

query I rowsort
SELECT 48 + 84 AS col1
----
132

query I rowsort
SELECT - ( 28 ) - + ( - 55 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT ALL + ( + COUNT( * ) ) - - - 36 + 24 * - COUNT( * ) * + 59 AS col2
----
-1451

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL + ( + COUNT ( * ) ) - - - 36 + 24 * - COUNT ( * ) * + 59 AS col2
----
-1451

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

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

query I rowsort
SELECT ALL - 45 * - 71 AS col2
----
3195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1672
SELECT 4 * COALESCE ( - COUNT( ALL 78 ), + 22 ) + - CAST( + 66 AS SIGNED ) * 81 * - CAST( - ( - - 66 ) AS SIGNED )
----
-352840

skipif mysql # not compatible
query I rowsort label-1672
SELECT 4 * COALESCE ( - COUNT ( ALL 78 ), + 22 ) + - CAST ( + 66 AS INTEGER ) * 81 * - CAST ( - ( - - 66 ) AS INTEGER )
----
-352840

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT 48 * + 90 * COUNT( * )
----
4320

skipif mysql # not compatible
query I rowsort label-1673
SELECT 48 * + 90 * COUNT ( * )
----
4320

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

skipif mysql # not compatible
query I rowsort label-1674
SELECT CAST ( - - 94 AS INTEGER ) + - COUNT ( * )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT NULLIF ( - 82, + COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-1675
SELECT NULLIF ( - 82, + COUNT ( * ) )
----
-82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1677
SELECT ALL + + 49 * 80 AS col0, - 51 * MIN( - - 55 ) * 49
----
3920
-137445

skipif mysql # not compatible
query II rowsort label-1677
SELECT ALL + + 49 * 80 AS col0, - 51 * MIN ( - - 55 ) * 49
----
3920
-137445

query I rowsort
SELECT - + 23 * ( - 73 ) col2
----
1679

query I rowsort
SELECT + - 18 * + 16 + 88 AS col0
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT + 23 + - COUNT( * ) * - 60
----
83

skipif mysql # not compatible
query I rowsort label-1680
SELECT + 23 + - COUNT ( * ) * - 60
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT ALL SUM( ALL 42 ) * + 13 + - 58 + - - 73 + + + ( + COUNT( * ) ) col1
----
562

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL SUM ( ALL 42 ) * + 13 + - 58 + - - 73 + + + ( + COUNT ( * ) ) col1
----
562

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT DISTINCT + SUM( ALL 6 ) col1
----
6

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT + SUM ( ALL 6 ) col1
----
6

query I rowsort
SELECT ALL - 41 * - + 15 * 45
----
27675

query I rowsort
SELECT COALESCE ( + 14, + - 38, + 94 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT - NULLIF ( + - 58, + ( + 4 ) ) + - MAX( 52 ) + - - ( + - 25 ) * + 59 AS col1
----
-1469

skipif mysql # not compatible
query I rowsort label-1685
SELECT - NULLIF ( + - 58, + ( + 4 ) ) + - MAX ( 52 ) + - - ( + - 25 ) * + 59 AS col1
----
-1469

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT CASE 20 WHEN - 0 * + 87 THEN - MAX( - 5 ) * 94 WHEN 55 * - + 93 THEN + + 79 / - 13 + - 91 - - 92 WHEN - - 29 * COUNT( DISTINCT + 42 ) * - + 26 * 53 + 18 - - 56 THEN NULL WHEN + + COUNT( * ) THEN 5 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT CASE 20 WHEN - 0 * + 87 THEN - MAX ( - 5 ) * 94 WHEN 55 * - + 93 THEN + + 79 / - 13 + - 91 - - 92 WHEN - - 29 * COUNT ( DISTINCT + 42 ) * - + 26 * 53 + 18 - - 56 THEN NULL WHEN + + COUNT ( * ) THEN 5 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 49 + - 52 + + - NULLIF ( + 80, + 42 / + 75 )
----
-181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1688
SELECT 6 DIV + + COUNT( * ) + + CAST( + 45 AS SIGNED ) + + + 22, + 18 - + 35 AS col1
----
73
-17

skipif mysql # not compatible
query II rowsort label-1688
SELECT 6 / + + COUNT ( * ) + + CAST ( + 45 AS INTEGER ) + + + 22, + 18 - + 35 AS col1
----
73
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1689
SELECT ALL - 25 * - - MAX( + CAST( NULL AS SIGNED ) ) / + ( 25 ) + - + ( ( 36 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - 25 * - - MAX ( + CAST ( NULL AS INTEGER ) ) / + ( 25 ) + - + ( ( 36 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT + MAX( ALL 13 ) * + 16 + + 34 - MAX( + - 2 ) + + SUM( DISTINCT + + 95 ) * + 80 AS col1
----
7844

skipif mysql # not compatible
query I rowsort label-1690
SELECT + MAX ( ALL 13 ) * + 16 + + 34 - MAX ( + - 2 ) + + SUM ( DISTINCT + + 95 ) * + 80 AS col1
----
7844

query I rowsort
SELECT + 78 * + 88 col0
----
6864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 60 / COUNT( * ) * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 60 / COUNT ( * ) * + 54
----
NULL

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

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

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

query I rowsort
SELECT + + 40 + + 56 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT - + ( + + 82 ) * COUNT( * ) + + + 38 + + 45
----
1

skipif mysql # not compatible
query I rowsort label-1696
SELECT - + ( + + 82 ) * COUNT ( * ) + + + 38 + + 45
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1697
SELECT DISTINCT COUNT( * ) AS col1, - 93 + CAST( + 33 AS SIGNED ) AS col2
----
1
-60

skipif mysql # not compatible
query II rowsort label-1697
SELECT DISTINCT COUNT ( * ) AS col1, - 93 + CAST ( + 33 AS INTEGER ) AS col2
----
1
-60

query I rowsort
SELECT + + 96 * 52 * + 51 + 0 col2
----
254592

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ALL + AVG ( ALL 36 ) / - CASE - 58 WHEN + 44 * - + 85 + 41 THEN + CASE - 40 WHEN + + 18 THEN 20 WHEN + ( AVG ( DISTINCT + 25 ) ) * + 52 THEN NULL WHEN - CASE - 48 WHEN 1 THEN 46 ELSE + COUNT( * ) - - + 48 / + 9 END THEN + - 3 - 77 * + 3 END WHEN 89 * - 86 THEN - 49 END * - 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL + AVG ( ALL 36 ) / - CASE - 58 WHEN + 44 * - + 85 + 41 THEN + CASE - 40 WHEN + + 18 THEN 20 WHEN + ( AVG ( DISTINCT + 25 ) ) * + 52 THEN NULL WHEN - CASE - 48 WHEN 1 THEN 46 ELSE + COUNT ( * ) - - + 48 / + 9 END THEN + - 3 - 77 * + 3 END WHEN 89 * - 86 THEN - 49 END * - 93 AS col0
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT ALL 27 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL 27 / - 35
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT + 97 DIV 35 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1703
SELECT + 97 / 35 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1704
SELECT + 24 - - 41 - 58 - + 46 + COUNT( * ) * - COUNT( * ) DIV MIN( DISTINCT - 46 )
----
-39

skipif mysql # not compatible
query I rowsort label-1704
SELECT + 24 - - 41 - 58 - + 46 + COUNT ( * ) * - COUNT ( * ) / MIN ( DISTINCT - 46 )
----
-39

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT - 92 - - NULLIF ( + - CAST( NULL AS SIGNED ), + - 59 ) / + ( 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT - 92 - - NULLIF ( + - CAST ( NULL AS INTEGER ), + - 59 ) / + ( 48 )
----
NULL

query I rowsort
SELECT - 9 * - 9
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT DISTINCT - 37 + MAX( - 54 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT - 37 + MAX ( - 54 ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1710
SELECT ALL CASE 92 WHEN - 26 THEN 45 + + COUNT( * ) + COALESCE ( + 61, - 69, - COALESCE ( - 47, + + COUNT( * ) ) * - - CAST( 68 AS SIGNED ) ) * - 26 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL CASE 92 WHEN - 26 THEN 45 + + COUNT ( * ) + COALESCE ( + 61, - 69, - COALESCE ( - 47, + + COUNT ( * ) ) * - - CAST ( 68 AS INTEGER ) ) * - 26 END AS col2
----
NULL

query I rowsort
SELECT + 56 * - 49 AS col2
----
-2744

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

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL - 10 / - COUNT ( * ) AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT - 73 DIV + 52
----
-1

skipif mysql # not compatible
query I rowsort label-1713
SELECT - 73 / + 52
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1714
SELECT + 43 DIV + + 23 + + 34
----
35

skipif mysql # not compatible
query I rowsort label-1714
SELECT + 43 / + + 23 + + 34
----
35

query I rowsort
SELECT DISTINCT - 92 * + ( + 16 ) AS col2
----
-1472

onlyif mysql # DIV for integer division: 
query I rowsort label-1716
SELECT DISTINCT 5 DIV 90 + + + 23 - + 26
----
-3

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT 5 / 90 + + + 23 - + 26
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1717
SELECT DISTINCT + COUNT( * ) AS col1, 33
----
1
33

skipif mysql # not compatible
query II rowsort label-1717
SELECT DISTINCT + COUNT ( * ) AS col1, 33
----
1
33

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1719
SELECT CAST( NULL AS DECIMAL ), 32 AS col2
----
NULL
32

skipif mysql # not compatible
query II rowsort label-1719
SELECT CAST ( NULL AS REAL ), 32 AS col2
----
NULL
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1720
SELECT ALL + NULLIF ( 54, + CAST( - + 50 AS DECIMAL ) )
----
54

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL + NULLIF ( 54, + CAST ( - + 50 AS REAL ) )
----
54

query I rowsort
SELECT DISTINCT - 93 * - 7 * - 22 AS col0
----
-14322

query I rowsort
SELECT - 78 * + 67 AS col2
----
-5226

query I rowsort
SELECT 39 * - + 88 - - 56
----
-3376

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT + CASE + 44 WHEN + 18 THEN NULL WHEN COALESCE ( CASE - + 59 WHEN - COUNT( * ) THEN - 41 WHEN - COUNT( * ) THEN 93 END, + + 66 ) THEN COUNT( * ) ELSE - 88 END
----
-88

skipif mysql # not compatible
query I rowsort label-1724
SELECT + CASE + 44 WHEN + 18 THEN NULL WHEN COALESCE ( CASE - + 59 WHEN - COUNT ( * ) THEN - 41 WHEN - COUNT ( * ) THEN 93 END, + + 66 ) THEN COUNT ( * ) ELSE - 88 END
----
-88

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT ALL + CASE + 47 WHEN + 94 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + 33 + 92 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL + CASE + 47 WHEN + 94 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + 33 + 92 END AS col2
----
NULL

query II rowsort
SELECT 91 AS col2, + 99
----
91
99

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

query I rowsort
SELECT - 1 * - 1
----
1

query II rowsort
SELECT DISTINCT + 60 AS col0, + 40
----
60
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT + COUNT( * ) - - 70
----
71

skipif mysql # not compatible
query I rowsort label-1731
SELECT + COUNT ( * ) - - 70
----
71

query I rowsort
SELECT + + 50 * - 18 AS col1
----
-900

query I rowsort
SELECT + 28 - + 52
----
-24

query II rowsort
SELECT ALL + 11 col2, + 84 AS col2
----
11
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT + 41 + COUNT( * ) * - 71 + + + 73 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1735
SELECT + 41 + COUNT ( * ) * - 71 + + + 73 AS col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1736
SELECT - + COALESCE ( - MAX( - 6 ), - - 87 - + - 68 DIV + 62, - NULLIF ( SUM( + 18 ), + + 80 ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1736
SELECT - + COALESCE ( - MAX ( - 6 ), - - 87 - + - 68 / + 62, - NULLIF ( SUM ( + 18 ), + + 80 ) ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - COUNT( ALL - 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-1737
SELECT - COUNT ( ALL - 34 )
----
-1

query I rowsort
SELECT + 55 * + - 66
----
-3630

query II rowsort
SELECT ALL - 62 * - - 58 AS col0, - 22 * + 89
----
-3596
-1958

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT ( 55 ) - COUNT( * ) AS col2
----
54

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

query I rowsort
SELECT + 21 + 85 AS col2
----
106

query I rowsort
SELECT + 91 - + 38
----
53

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

query I rowsort
SELECT ALL 83 + + 61 AS col0
----
144

query I rowsort
SELECT DISTINCT + 10 + - ( 77 ) * + - 35 * - - 97 AS col0
----
261425

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT 81 + - 34 + - 81 + + 95 * - SUM( 46 ) * - COUNT( * ) - - + 65 * - 33 + - 21 + + + NULLIF ( MAX( + 42 ), - 8 * - 69 - + 40 * + + 11 + 60 + - 3 ) - - + 88 + 13 AS col0
----
2313

skipif mysql # not compatible
query I rowsort label-1746
SELECT 81 + - 34 + - 81 + + 95 * - SUM ( 46 ) * - COUNT ( * ) - - + 65 * - 33 + - 21 + + + NULLIF ( MAX ( + 42 ), - 8 * - 69 - + 40 * + + 11 + 60 + - 3 ) - - + 88 + 13 AS col0
----
2313

query I rowsort
SELECT ALL 74 + - 50 + 6
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-1748
SELECT 71 * 81 AS col0, + COUNT( * ) - 31 - + 16 * - 7 - + - 14 - + ( COUNT( DISTINCT - - 96 ) ) AS col2
----
5751
95

skipif mysql # not compatible
query II rowsort label-1748
SELECT 71 * 81 AS col0, + COUNT ( * ) - 31 - + 16 * - 7 - + - 14 - + ( COUNT ( DISTINCT - - 96 ) ) AS col2
----
5751
95

query I rowsort
SELECT 77 + - 70 * + ( + 80 ) AS col0
----
-5523

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT DISTINCT - COUNT( * ) - - 27 - + - 55
----
81

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT - COUNT ( * ) - - 27 - + - 55
----
81

query I rowsort
SELECT DISTINCT 73 * + 4
----
292

onlyif mysql # aggregate syntax: 
query II rowsort label-1752
SELECT DISTINCT 26 - - 37 AS col2, - MAX( DISTINCT 67 ) AS col0
----
63
-67

skipif mysql # not compatible
query II rowsort label-1752
SELECT DISTINCT 26 - - 37 AS col2, - MAX ( DISTINCT 67 ) AS col0
----
63
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1753
SELECT 12 + + 93 + + 89 + - 85 * + 11 DIV - 1
----
1129

skipif mysql # not compatible
query I rowsort label-1753
SELECT 12 + + 93 + + 89 + - 85 * + 11 / - 1
----
1129

query I rowsort
SELECT 22 * - - 51 AS col2
----
1122

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT - COUNT( * ) * + + 8 - + - 28
----
20

skipif mysql # not compatible
query I rowsort label-1756
SELECT - COUNT ( * ) * + + 8 - + - 28
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1757
SELECT 41 DIV 59 DIV + 88 col2, 20 + COUNT( * ) AS col1
----
0
21

skipif mysql # not compatible
query II rowsort label-1757
SELECT 41 / 59 / + 88 col2, 20 + COUNT ( * ) AS col1
----
0
21

query I rowsort
SELECT ALL + 18 * - 88 + - 97 AS col2
----
-1681

onlyif mysql # DIV for integer division: 
query I rowsort label-1759
SELECT DISTINCT + 7 DIV + + 50 + - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT + 7 / + + 50 + - 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT - - 93 * - + COALESCE ( 59, - 5 + 85 ) + + - COUNT( * ) col1
----
-5488

skipif mysql # not compatible
query I rowsort label-1760
SELECT - - 93 * - + COALESCE ( 59, - 5 + 85 ) + + - COUNT ( * ) col1
----
-5488

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT 23 + ( ( - 18 ) ) + 14 * - + ( - - COUNT( ALL + 76 ) ) + + 19
----
10

skipif mysql # not compatible
query I rowsort label-1761
SELECT 23 + ( ( - 18 ) ) + 14 * - + ( - - COUNT ( ALL + 76 ) ) + + 19
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1762
SELECT + 70 DIV 28 * - - CASE ( - 54 ) WHEN + COUNT( * ) THEN NULL WHEN + 97 THEN NULL ELSE - 33 END AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-1762
SELECT + 70 / 28 * - - CASE ( - 54 ) WHEN + COUNT ( * ) THEN NULL WHEN + 97 THEN NULL ELSE - 33 END AS col0
----
-66

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

skipif mysql # not compatible
query I rowsort label-1763
SELECT + COUNT ( * ) + + + COUNT ( + + 50 ) AS col0
----
2

query I rowsort
SELECT + 53 * - 35 + - - 9 * - 78 AS col1
----
-2557

query II rowsort
SELECT ALL - 33 + + + 85 AS col2, + 91 AS col1
----
52
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT - 19 * + COALESCE ( - MAX( + 40 ), - 79 + 39 ) AS col1
----
760

skipif mysql # not compatible
query I rowsort label-1766
SELECT - 19 * + COALESCE ( - MAX ( + 40 ), - 79 + 39 ) AS col1
----
760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1767
SELECT ALL - SUM( ALL + CAST( 62 AS SIGNED ) ) + COUNT( * ) * + 80 + - COUNT( * ) * + 41 * - 92 AS col0, 54
----
3790
54

skipif mysql # not compatible
query II rowsort label-1767
SELECT ALL - SUM ( ALL + CAST ( 62 AS INTEGER ) ) + COUNT ( * ) * + 80 + - COUNT ( * ) * + 41 * - 92 AS col0, 54
----
3790
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1768
SELECT ALL + 50 * 96 DIV - + ( - ( + 27 ) )
----
177

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + 50 * 96 / - + ( - ( + 27 ) )
----
177

query I rowsort
SELECT ALL 72 + + - 24 * 90 * 81 AS col0
----
-174888

query I rowsort
SELECT + 55 * + 91 + + 33 - + 82 * + - 79
----
11516

query I rowsort
SELECT ALL 92 * - 38
----
-3496

query I rowsort
SELECT 61 - - 35 col2
----
96

query II rowsort
SELECT 73, + 2 * - 95 + - 72 + + 63 * - - 68 * + 72 AS col0
----
73
308186

query I rowsort
SELECT 71 - + 20
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1775
SELECT NULLIF ( - 85, 2 * + 73 ) * - 50 + - 76 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT NULLIF ( - 85, 2 * + 73 ) * - 50 + - 76 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT COALESCE ( MIN( - + 81 ), - + 59 + - - 49 ) + + + 74
----
-7

skipif mysql # not compatible
query I rowsort label-1776
SELECT COALESCE ( MIN ( - + 81 ), - + 59 + - - 49 ) + + + 74
----
-7

query II rowsort
SELECT DISTINCT 67 col2, - 13 AS col0
----
67
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL MAX( DISTINCT + + 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL MAX ( DISTINCT + + 77 ) AS col1
----
77

query II rowsort
SELECT 73 AS col0, 41 + + 6 AS col1
----
73
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1780
SELECT 6 - + ( + COUNT( * ) ) * 86 DIV - 18
----
10

skipif mysql # not compatible
query I rowsort label-1780
SELECT 6 - + ( + COUNT ( * ) ) * 86 / - 18
----
10

query I rowsort
SELECT ( - 31 ) - - 19 * + 76
----
1413

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

skipif mysql # not compatible
query I rowsort label-1782
SELECT CAST ( NULL AS REAL ) * + - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT ALL CASE - - 39 WHEN ( + MAX( 89 ) ) THEN NULL ELSE + 32 END * 10
----
320

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL CASE - - 39 WHEN ( + MAX ( 89 ) ) THEN NULL ELSE + 32 END * 10
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT COUNT( DISTINCT 87 )
----
1

skipif mysql # not compatible
query I rowsort label-1784
SELECT COUNT ( DISTINCT 87 )
----
1

query I rowsort
SELECT 38 + + 17 col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT DISTINCT SUM( ALL + 16 ) * - COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT SUM ( ALL + 16 ) * - COUNT ( * ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL COUNT( * ) * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL COUNT ( * ) * - 9
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT ALL 19 * + COUNT( * ) * - 16 * - NULLIF ( 31, - 11 ) * 72 * + 19
----
12892032

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL 19 * + COUNT ( * ) * - 16 * - NULLIF ( 31, - 11 ) * 72 * + 19
----
12892032

query II rowsort
SELECT 77 col2, 86 AS col2
----
77
86

query II rowsort
SELECT DISTINCT + 61 * + - 64 + - + 95 + - 79 + - 24 * + 13 + - + 57 * + 64, 44 col0
----
-8038
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1792
SELECT 83, 23 + - 25 * + COUNT( * ) + - + 83 + - 76 AS col1
----
83
-161

skipif mysql # not compatible
query II rowsort label-1792
SELECT 83, 23 + - 25 * + COUNT ( * ) + - + 83 + - 76 AS col1
----
83
-161

query II rowsort
SELECT ALL - 89 col2, 3
----
-89
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1794
SELECT DISTINCT - + 50 * + ( + 14 ) + + 43 + MIN( DISTINCT 36 ) * CAST( NULL AS SIGNED ) - 29 + + - 85 + - - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT - + 50 * + ( + 14 ) + + 43 + MIN ( DISTINCT 36 ) * CAST ( NULL AS INTEGER ) - 29 + + - 85 + - - 71 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT - - 17 DIV - 13 - - 11
----
10

skipif mysql # not compatible
query I rowsort label-1795
SELECT - - 17 / - 13 - - 11
----
10

query I rowsort
SELECT ALL + - 85 * - + 30 + - 55 * - 35
----
4475

query I rowsort
SELECT 25 + - + 58
----
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT - + 3 * - COUNT( * ) + - 37
----
-34

skipif mysql # not compatible
query I rowsort label-1799
SELECT - + 3 * - COUNT ( * ) + - 37
----
-34

query I rowsort
SELECT 82 * + 32 - - 84 + - 7 + + 22
----
2723

query I rowsort
SELECT ALL 60 + - 8 AS col2
----
52

query II rowsort
SELECT + 85 AS col0, 19 * + 63
----
85
1197

query I rowsort
SELECT DISTINCT 78 + - - 31 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT ALL - COUNT( ALL + 44 ) * - 26 + 97 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL - COUNT ( ALL + 44 ) * - 26 + 97 AS col1
----
123

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

query I rowsort
SELECT DISTINCT + + 48 * COALESCE ( + + 5, 66 )
----
240

query II rowsort
SELECT DISTINCT - 93 * + ( + + 69 ) AS col0, 80
----
-6417
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT + MAX( + 74 ) * + 81 + 8 + 39 AS col2
----
6041

skipif mysql # not compatible
query I rowsort label-1808
SELECT + MAX ( + 74 ) * + 81 + 8 + 39 AS col2
----
6041

query I rowsort
SELECT - 49 * - 51 col0
----
2499

query I rowsort
SELECT - + 66 + + 79 * 58 + + 61 + 79 AS col0
----
4656

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL - + 35 - + ( - COUNT( 3 ) ) - 42 * - 49 AS col2
----
2024

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - + 35 - + ( - COUNT ( 3 ) ) - 42 * - 49 AS col2
----
2024

query I rowsort
SELECT - 92 + - - 42 AS col1
----
-50

query I rowsort
SELECT - 33 + - 34
----
-67

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1815
SELECT ALL + 24 - + - CASE + - ( - COUNT( DISTINCT + - 81 ) ) WHEN - 31 * + + 4 THEN + COUNT( * ) * - 33 + + - 7 ELSE NULL END AS col2, + 92 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-1815
SELECT ALL + 24 - + - CASE + - ( - COUNT ( DISTINCT + - 81 ) ) WHEN - 31 * + + 4 THEN + COUNT ( * ) * - 33 + + - 7 ELSE NULL END AS col2, + 92 AS col0
----
NULL
92

query I rowsort
SELECT - COALESCE ( + 83, 85, + 93 ) * + 64 + - 9 AS col2
----
-5321

query I rowsort
SELECT DISTINCT ( + 90 ) col1
----
90

query I rowsort
SELECT DISTINCT + 6 - + 16
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT ALL NULLIF ( - 27, - COALESCE ( + ( 40 ), + SUM( 22 ) * - - 69 + + 47 + 96 ) + - 74 - 89 * + 96 )
----
-27

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL NULLIF ( - 27, - COALESCE ( + ( 40 ), + SUM ( 22 ) * - - 69 + + 47 + 96 ) + - 74 - 89 * + 96 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT ALL CASE - 79 WHEN 67 * - 45 THEN - 45 * + - COUNT( * ) * - 67 * 83 WHEN - 73 THEN 64 END * 48 + - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL CASE - 79 WHEN 67 * - 45 THEN - 45 * + - COUNT ( * ) * - 67 * 83 WHEN - 73 THEN 64 END * 48 + - 43 AS col2
----
NULL

query I rowsort
SELECT - 79 + + 93
----
14

query II rowsort
SELECT DISTINCT + 79 * 72 col1, 24 AS col1
----
5688
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT ALL ( MIN( - + 60 ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL ( MIN ( - + 60 ) ) AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1824
SELECT ALL + 61 * + ( + COUNT( * ) ) * - 11 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + 61 * + ( + COUNT ( * ) ) * - 11 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT - 61 + - COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-1825
SELECT - 61 + - COUNT ( * ) AS col1
----
-62

query I rowsort
SELECT - 37 + + 65 + 22
----
50

query I rowsort
SELECT ALL + 62 * + 88
----
5456

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT + 13 DIV + + 48
----
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT + 13 / + + 48
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1830
SELECT ALL + - 6 DIV + 64 + 26
----
26

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL + - 6 / + 64 + 26
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT 35 * + 47 + - 15 DIV + + 82 + 58 * - 24 + - 40 DIV + 15 * + + 71 DIV + - 87 DIV + - 44
----
253

skipif mysql # not compatible
query I rowsort label-1831
SELECT 35 * + 47 + - 15 / + + 82 + 58 * - 24 + - 40 / + 15 * + + 71 / + - 87 / + - 44
----
253

query I rowsort
SELECT + 71 * - 43 + + 76 + 67 AS col1
----
-2910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL + + 7 * 97 + - CAST( NULL AS SIGNED ) * COALESCE ( + - 81, 21 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL + + 7 * 97 + - CAST ( NULL AS INTEGER ) * COALESCE ( + - 81, 21 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1834
SELECT - - COUNT( + + 0 ) DIV + 99 + - - 74 + - COUNT( * ) + - 56 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1834
SELECT - - COUNT ( + + 0 ) / + 99 + - - 74 + - COUNT ( * ) + - 56 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT + 46 * + COUNT( * ) * + ( + 43 ) + - 44 + - 81 + - COALESCE ( + 50, 67 ) + + 25 * - 69 + COUNT( - 17 ) - - 79 + - - 36 + + COUNT( * ) * 35 * 26 + 35
----
1139

skipif mysql # not compatible
query I rowsort label-1835
SELECT + 46 * + COUNT ( * ) * + ( + 43 ) + - 44 + - 81 + - COALESCE ( + 50, 67 ) + + 25 * - 69 + COUNT ( - 17 ) - - 79 + - - 36 + + COUNT ( * ) * 35 * 26 + 35
----
1139

query I rowsort
SELECT + - 86 + - ( - + 32 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1837
SELECT + 58 * + 54 + CASE COUNT( * ) WHEN - 27 * 76 THEN 44 / - + 37 * + 75 * 78 + + 94 + + - CAST( + + MIN( 29 ) AS SIGNED ) / - 60 * - 5 * 6 WHEN - + 47 * 15 THEN NULL END + - CAST( SUM( - + 65 ) AS SIGNED ) * - + CASE - 87 WHEN - - 25 / + 26 THEN - ( + 84 ) ELSE NULL END + + - ( 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT + 58 * + 54 + CASE COUNT ( * ) WHEN - 27 * 76 THEN 44 / - + 37 * + 75 * 78 + + 94 + + - CAST ( + + MIN ( 29 ) AS INTEGER ) / - 60 * - 5 * 6 WHEN - + 47 * 15 THEN NULL END + - CAST ( SUM ( - + 65 ) AS INTEGER ) * - + CASE - 87 WHEN - - 25 / + 26 THEN - ( + 84 ) ELSE NULL END + + - ( 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL COUNT( * ) * 9 / 59 - 88 * - CASE - COUNT( * ) WHEN 71 THEN NULL WHEN - - 63 * 11 THEN - - 3 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL COUNT ( * ) * 9 / 59 - 88 * - CASE - COUNT ( * ) WHEN 71 THEN NULL WHEN - - 63 * 11 THEN - - 3 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT ALL - 84 * + NULLIF ( - CAST( NULL AS SIGNED ), 85 ) * + 64 + + 4 + - ( - + 50 ) + + - 12 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL - 84 * + NULLIF ( - CAST ( NULL AS INTEGER ), 85 ) * + 64 + + 4 + - ( - + 50 ) + + - 12 + COUNT ( * )
----
NULL

query I rowsort
SELECT + 66 * + + 44 + 53 AS col1
----
2957

query I rowsort
SELECT ALL - 56 * + 36 - + + 51 AS col2
----
-2067

query I rowsort
SELECT + 79 * + 79 + + - 51 AS col0
----
6190

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT DISTINCT + COUNT( + + 56 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1843
SELECT DISTINCT + COUNT ( + + 56 ) col2
----
1

query I rowsort
SELECT ALL + - 7 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT - + 79 * + + COUNT( * ) * - 51 AS col0
----
4029

skipif mysql # not compatible
query I rowsort label-1845
SELECT - + 79 * + + COUNT ( * ) * - 51 AS col0
----
4029

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

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

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

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

query I rowsort
SELECT DISTINCT - 47 * - 37 AS col0
----
1739

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

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

query I rowsort
SELECT ALL 68 * + 46 col2
----
3128

query II rowsort
SELECT - 12, 47 AS col0
----
-12
47

query I rowsort
SELECT DISTINCT + 2 * - 72
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL + MAX( 67 ) * 84 - - 61 AS col1
----
5689

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL + MAX ( 67 ) * 84 - - 61 AS col1
----
5689

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1854
SELECT - 73 * CAST( NULL AS SIGNED ) * + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT - 73 * CAST ( NULL AS INTEGER ) * + + 20 AS col1
----
NULL

query I rowsort
SELECT - 32 * - 88
----
2816

query I rowsort
SELECT ALL ( - 2 ) AS col0
----
-2

query I rowsort
SELECT - 44 - 55 * - 50
----
2706

query I rowsort
SELECT - 61 * + - 68
----
4148

query I rowsort
SELECT - 20 - - 55
----
35

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

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

query I rowsort
SELECT - 37 * 69
----
-2553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1862
SELECT ALL COUNT( * ) + + CAST( + MIN( ALL 79 ) AS SIGNED ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL COUNT ( * ) + + CAST ( + MIN ( ALL 79 ) AS INTEGER ) AS col0
----
80

query I rowsort
SELECT ALL - 30 + + 65
----
35

query I rowsort
SELECT ALL - 85 + + + 31 AS col2
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1865
SELECT ALL + CAST( NULL AS DECIMAL ) + - 53 + 79 AS col0, - 48
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-1865
SELECT ALL + CAST ( NULL AS REAL ) + - 53 + 79 AS col0, - 48
----
NULL
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT DISTINCT - COUNT( * ) + - 14 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT - COUNT ( * ) + - 14 AS col1
----
-15

query I rowsort
SELECT - 66 - 36 - - + 97 + - 57 AS col2
----
-62

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

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL - CAST ( 90 AS INTEGER ) + + 92
----
2

query I rowsort
SELECT NULLIF ( + 17, - 10 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT + COUNT( * ) * - + 88 * + ( - - COALESCE ( + 43, + + 20 ) )
----
-3784

skipif mysql # not compatible
query I rowsort label-1871
SELECT + COUNT ( * ) * - + 88 * + ( - - COALESCE ( + 43, + + 20 ) )
----
-3784

query I rowsort
SELECT + COALESCE ( - + 21, 27 - - 68 - 55 ) col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL - + 31 + - + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL - + 31 + - + COUNT ( * )
----
-32

query I rowsort
SELECT DISTINCT + - 69 + 1 * - 33 * 7 AS col1
----
-300

query I rowsort
SELECT DISTINCT - - 6 * + 34
----
204

query I rowsort
SELECT ALL 11 + - ( - - 62 )
----
-51

query I rowsort
SELECT DISTINCT - 96 - - ( - + 34 ) AS col0
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1878
SELECT COUNT( ALL + - 89 ) DIV - 5 * 89 + 87
----
87

skipif mysql # not compatible
query I rowsort label-1878
SELECT COUNT ( ALL + - 89 ) / - 5 * 89 + 87
----
87

query I rowsort
SELECT - 38 + - 11
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL - CASE + + COUNT( - + 93 ) WHEN CASE + 52 WHEN + COUNT( * ) THEN NULL ELSE + 65 - + 33 - COUNT( - 69 ) END THEN - 52 * 64 ELSE - + COALESCE ( + 18, - - ( + - COUNT( * ) ) - - COUNT( * ) ) END - 28 * 28
----
-766

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL - CASE + + COUNT ( - + 93 ) WHEN CASE + 52 WHEN + COUNT ( * ) THEN NULL ELSE + 65 - + 33 - COUNT ( - 69 ) END THEN - 52 * 64 ELSE - + COALESCE ( + 18, - - ( + - COUNT ( * ) ) - - COUNT ( * ) ) END - 28 * 28
----
-766

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1881
SELECT 26 * - CAST( + - 91 AS SIGNED )
----
2366

skipif mysql # not compatible
query I rowsort label-1881
SELECT 26 * - CAST ( + - 91 AS INTEGER )
----
2366

query I rowsort
SELECT 57 + + 11 + - 0 AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1883
SELECT + 31 DIV 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1883
SELECT + 31 / 90 AS col2
----
0

query I rowsort
SELECT DISTINCT - 2 * 19 * + 35 * - 62 AS col1
----
82460

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT + SUM( ALL - 42 ) * COUNT( DISTINCT - 18 ) * + 88 + - 99 - + 93 + + ( + 23 ) * - ( - 2 ) AS col0
----
-3842

skipif mysql # not compatible
query I rowsort label-1885
SELECT + SUM ( ALL - 42 ) * COUNT ( DISTINCT - 18 ) * + 88 + - 99 - + 93 + + ( + 23 ) * - ( - 2 ) AS col0
----
-3842

query I rowsort
SELECT DISTINCT - 0 - - - 93
----
-93

query II rowsort
SELECT ALL - 61 AS col2, 61
----
-61
61

query I rowsort
SELECT 96 - + 52
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1889
SELECT ALL - COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1890
SELECT 89 AS col1, 16 + - - SUM( ALL + 18 )
----
89
34

skipif mysql # not compatible
query II rowsort label-1890
SELECT 89 AS col1, 16 + - - SUM ( ALL + 18 )
----
89
34

query I rowsort
SELECT 97 * + 23 + 61
----
2292

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

query I rowsort
SELECT 22 * + COALESCE ( + 21, + 26 )
----
462

query II rowsort
SELECT ALL 69 AS col2, 96 AS col1
----
69
96

query I rowsort
SELECT 5 + - 53 AS col1
----
-48

query I rowsort
SELECT 41 - - - ( - 49 )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1897
SELECT 12 DIV COUNT( 33 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1897
SELECT 12 / COUNT ( 33 ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1898
SELECT ( 10 ) + 76 + CAST( NULL AS SIGNED ) * - - MIN( + 30 ) * - - ( ( 92 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT ( 10 ) + 76 + CAST ( NULL AS INTEGER ) * - - MIN ( + 30 ) * - - ( ( 92 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT ALL COALESCE ( + 23, + 71 + + 62 + - - 7 * COALESCE ( - 38, - 13 + COUNT( * ) * + COUNT( * ) ) + 47 + + 49 ) + - COUNT( * ) - + + 17 + + MIN( - 75 ) * + - 47
----
3530

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL COALESCE ( + 23, + 71 + + 62 + - - 7 * COALESCE ( - 38, - 13 + COUNT ( * ) * + COUNT ( * ) ) + 47 + + 49 ) + - COUNT ( * ) - + + 17 + + MIN ( - 75 ) * + - 47
----
3530

query I rowsort
SELECT DISTINCT ( - 11 ) + - 44 AS col1
----
-55

query I rowsort
SELECT DISTINCT 13 + + + 70 AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1902
SELECT ALL - MIN( DISTINCT - - CAST( 95 AS SIGNED ) ) + + ( 27 ) + + ( + 69 )
----
1

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL - MIN ( DISTINCT - - CAST ( 95 AS INTEGER ) ) + + ( 27 ) + + ( + 69 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT COUNT( * ) * + 75 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1903
SELECT COUNT ( * ) * + 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT - COALESCE ( - 82, + - MIN( 76 ) * COUNT( * ), + ( + - 42 ) * + 15 )
----
82

skipif mysql # not compatible
query I rowsort label-1904
SELECT - COALESCE ( - 82, + - MIN ( 76 ) * COUNT ( * ), + ( + - 42 ) * + 15 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT - COUNT( * ) + - - SUM( + 9 ) * 4 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1905
SELECT - COUNT ( * ) + - - SUM ( + 9 ) * 4 AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1906
SELECT - 99 * 90 + 26 + COUNT( * ) DIV - 63
----
-8884

skipif mysql # not compatible
query I rowsort label-1906
SELECT - 99 * 90 + 26 + COUNT ( * ) / - 63
----
-8884

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

skipif mysql # not compatible
query I rowsort label-1907
SELECT + COUNT ( * ) * - - 84 AS col2
----
84

onlyif mysql # DIV for integer division: 
query III rowsort label-1908
SELECT 23 + - NULLIF ( + 93, + - 44 + - 69 * + 42 ) AS col1, - 44 AS col2, - 86 DIV - 29 AS col2
----
-70
-44
2

skipif mysql # not compatible
query III rowsort label-1908
SELECT 23 + - NULLIF ( + 93, + - 44 + - 69 * + 42 ) AS col1, - 44 AS col2, - 86 / - 29 AS col2
----
-70
-44
2

query I rowsort
SELECT ALL + 58 - 99
----
-41

query I rowsort
SELECT DISTINCT - 67 * - 67
----
4489

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT + + NULLIF ( MAX( - 5 ), + ( + - 27 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-1911
SELECT + + NULLIF ( MAX ( - 5 ), + ( + - 27 ) )
----
-5

query I rowsort
SELECT ( ( + 47 ) ) + + 63 col2
----
110

query I rowsort
SELECT + 32 * 63
----
2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT 62 * 52 + - 61 + - 56 + + - CAST( - - COUNT( * ) AS SIGNED ) + + 55 AS col1
----
3161

skipif mysql # not compatible
query I rowsort label-1914
SELECT 62 * 52 + - 61 + - 56 + + - CAST ( - - COUNT ( * ) AS INTEGER ) + + 55 AS col1
----
3161

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1915
SELECT DISTINCT - 92 col2, + 1 * - + NULLIF ( + CAST( NULL AS SIGNED ), - 31 / + 69 ) AS col2
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-1915
SELECT DISTINCT - 92 col2, + 1 * - + NULLIF ( + CAST ( NULL AS INTEGER ), - 31 / + 69 ) AS col2
----
-92
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1916
SELECT ALL - 12 * ( - 22 ) + + + CAST( + 84 AS SIGNED ) AS col2
----
348

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL - 12 * ( - 22 ) + + + CAST ( + 84 AS INTEGER ) AS col2
----
348

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT DISTINCT + 90 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT + 90 / + 95 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1918
SELECT - 62 DIV - - 12 + 10 * - + 48 - + COUNT( DISTINCT + 35 )
----
-486

skipif mysql # not compatible
query I rowsort label-1918
SELECT - 62 / - - 12 + 10 * - + 48 - + COUNT ( DISTINCT + 35 )
----
-486

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1919
SELECT ALL + COUNT( * ) DIV + + 55
----
0

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL + COUNT ( * ) / + + 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT COUNT( * ) * + COUNT( * ) * + - CASE - 37 WHEN + AVG ( ALL + + 61 ) THEN NULL WHEN - 72 THEN + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT COUNT ( * ) * + COUNT ( * ) * + - CASE - 37 WHEN + AVG ( ALL + + 61 ) THEN NULL WHEN - 72 THEN + 84 END
----
NULL

query II rowsort
SELECT ALL 8 + - 14 col1, + 20
----
-6
20

query I rowsort
SELECT ALL - 57 * + 49
----
-2793

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT DISTINCT 55 * 29 * + SUM( - - 54 ) * - - COUNT( * ) AS col0
----
86130

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT 55 * 29 * + SUM ( - - 54 ) * - - COUNT ( * ) AS col0
----
86130

query I rowsort
SELECT DISTINCT ( - 55 ) + - NULLIF ( 37, 97 + + 11 + - 96 + 63 * - + 67 ) * - 45
----
1610

query II rowsort
SELECT ALL 72 * 7 AS col0, 14
----
504
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT COUNT( * ) + - 47 * - 3
----
142

skipif mysql # not compatible
query I rowsort label-1927
SELECT COUNT ( * ) + - 47 * - 3
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1928
SELECT + 31 - SUM( - 68 ) + - 4 + + 48 + + COUNT( * ) + 64 DIV - + 54 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-1928
SELECT + 31 - SUM ( - 68 ) + - 4 + + 48 + + COUNT ( * ) + 64 / - + 54 AS col1
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1929
SELECT + COUNT( * ) * 50 * 51 DIV - - 54
----
47

skipif mysql # not compatible
query I rowsort label-1929
SELECT + COUNT ( * ) * 50 * 51 / - - 54
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1930
SELECT + COUNT( * ) + + 79, 84 - + + CAST( + - COUNT( + COALESCE ( 71, - - 90 + + - 10 ) ) AS SIGNED ) col2
----
80
85

skipif mysql # not compatible
query II rowsort label-1930
SELECT + COUNT ( * ) + + 79, 84 - + + CAST ( + - COUNT ( + COALESCE ( 71, - - 90 + + - 10 ) ) AS INTEGER ) col2
----
80
85

query I rowsort
SELECT ALL + + 81 * + 91 + - 4 AS col2
----
7367

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT + 40 * + 46 + + 22 DIV - + 50 AS col2
----
1840

skipif mysql # not compatible
query I rowsort label-1932
SELECT + 40 * + 46 + + 22 / - + 50 AS col2
----
1840

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT ALL - 18 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL - 18 / - 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - + MIN( - + 45 ) col1
----
45

skipif mysql # not compatible
query I rowsort label-1934
SELECT - + MIN ( - + 45 ) col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT + COUNT( * ) - - 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-1935
SELECT + COUNT ( * ) - - 37 AS col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-1936
SELECT - ( 13 ) AS col0, - MIN( ALL - 98 )
----
-13
98

skipif mysql # not compatible
query II rowsort label-1936
SELECT - ( 13 ) AS col0, - MIN ( ALL - 98 )
----
-13
98

onlyif mysql # DIV for integer division: 
query II rowsort label-1937
SELECT + - 13 DIV ( - - 89 ) col2, 63 + - + 4
----
0
59

skipif mysql # not compatible
query II rowsort label-1937
SELECT + - 13 / ( - - 89 ) col2, 63 + - + 4
----
0
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1938
SELECT - 68 DIV + + 63 - 23 col2
----
-24

skipif mysql # not compatible
query I rowsort label-1938
SELECT - 68 / + + 63 - 23 col2
----
-24

query I rowsort
SELECT ALL + 20 * - 19 + + 92
----
-288

query I rowsort
SELECT + + COALESCE ( 74, - 84 )
----
74

query I rowsort
SELECT + + 86 + - 10 + - + 68
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT - 33 * - COALESCE ( + 7, COUNT( * ) )
----
231

skipif mysql # not compatible
query I rowsort label-1942
SELECT - 33 * - COALESCE ( + 7, COUNT ( * ) )
----
231

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1943
SELECT - COALESCE ( COUNT( * ), 14 DIV - - 1 DIV - - 12 + - 8 - 90, - 7 ) + - 97 col1, - 27
----
-98
-27

skipif mysql # not compatible
query II rowsort label-1943
SELECT - COALESCE ( COUNT ( * ), 14 / - - 1 / - - 12 + - 8 - 90, - 7 ) + - 97 col1, - 27
----
-98
-27

query I rowsort
SELECT - 50 - - - 8 AS col0
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-1945
SELECT 34 * 62 + 52 col0, 27 DIV + 9
----
2160
3

skipif mysql # not compatible
query II rowsort label-1945
SELECT 34 * 62 + 52 col0, 27 / + 9
----
2160
3

query I rowsort
SELECT - 73 + COALESCE ( + 37, - + 12 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL + COUNT( * ) * + - ( + - 84 ) * - 73 + - 67 + + 17 AS col0
----
-6182

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL + COUNT ( * ) * + - ( + - 84 ) * - 73 + - 67 + + 17 AS col0
----
-6182

query I rowsort
SELECT DISTINCT - 52 * + 23 + - 66 AS col1
----
-1262

onlyif mysql # DIV for integer division: 
query II rowsort label-1949
SELECT ALL + 19 * 23 + + 45, 62 DIV - + 60 AS col0
----
482
-1

skipif mysql # not compatible
query II rowsort label-1949
SELECT ALL + 19 * 23 + + 45, 62 / - + 60 AS col0
----
482
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT SUM( + 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1950
SELECT SUM ( + 49 ) AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1951
SELECT DISTINCT + 81 DIV + MAX( ALL 66 )
----
1

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT + 81 / + MAX ( ALL 66 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1952
SELECT + NULLIF ( - + CAST( 61 AS SIGNED ), - 36 ) + - ( COUNT( * ) )
----
-62

skipif mysql # not compatible
query I rowsort label-1952
SELECT + NULLIF ( - + CAST ( 61 AS INTEGER ), - 36 ) + - ( COUNT ( * ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL - 19 * COUNT( * ) - - COUNT( * ) + - 24 * 36 * - 6
----
5166

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - 19 * COUNT ( * ) - - COUNT ( * ) + - 24 * 36 * - 6
----
5166

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1954
SELECT - 31 + 98 - + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT - 31 + 98 - + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1955
SELECT + ( - 68 ) * CASE - - MAX( 47 ) WHEN + - MAX( ALL 78 ) + + 66 / + 14 THEN + 50 END + + COUNT( * ) AS col0, 76 + - 64 * - + 27 * + - 63
----
NULL
-108788

skipif mysql # not compatible
query II rowsort label-1955
SELECT + ( - 68 ) * CASE - - MAX ( 47 ) WHEN + - MAX ( ALL 78 ) + + 66 / + 14 THEN + 50 END + + COUNT ( * ) AS col0, 76 + - 64 * - + 27 * + - 63
----
NULL
-108788

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

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

query I rowsort
SELECT - 7 + - 82 AS col1
----
-89

query I rowsort
SELECT ALL 19 * + 57 col1
----
1083

query I rowsort
SELECT ALL 95 - + 35 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT DISTINCT - 30 - - 61 DIV + + 83 col2
----
-30

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT - 30 - - 61 / + + 83 col2
----
-30

query II rowsort
SELECT ALL + 40 AS col2, 41
----
40
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT DISTINCT 17 * - 45 * - 62 + MAX( DISTINCT - - 31 )
----
47461

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT 17 * - 45 * - 62 + MAX ( DISTINCT - - 31 )
----
47461

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1963
SELECT ALL - CAST( NULL AS SIGNED ), - 12 col0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-1963
SELECT ALL - CAST ( NULL AS INTEGER ), - 12 col0
----
NULL
-12

query II rowsort
SELECT - - 86 AS col2, 4 AS col1
----
86
4

query II rowsort
SELECT + 99, - 2 AS col2
----
99
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1966
SELECT - 5 * 43 DIV COUNT( * ) + + 83 * + - 32
----
-2871

skipif mysql # not compatible
query I rowsort label-1966
SELECT - 5 * 43 / COUNT ( * ) + + 83 * + - 32
----
-2871

query II rowsort
SELECT - 88 AS col1, + COALESCE ( - + 30, + 51 + + 29 + + ( + 34 ) )
----
-88
-30

query I rowsort
SELECT + - 26 + - 7 + 23 AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT ALL + 56 DIV + 23
----
2

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL + 56 / + 23
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT + + 51 * + 27 + + 30 + - COUNT( * ) + - 52 AS col0
----
1354

skipif mysql # not compatible
query I rowsort label-1970
SELECT + + 51 * + 27 + + 30 + - COUNT ( * ) + - 52 AS col0
----
1354

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

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

query I rowsort
SELECT DISTINCT + - COALESCE ( - - 66, 86 - + 65, 63, 2 ) AS col0
----
-66

query I rowsort
SELECT + 77 + - 0 * - NULLIF ( + 26, 55 )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1974
SELECT ALL COUNT( * ) DIV - + 68 + - + 36 AS col1, COUNT( ALL - 22 ) AS col0
----
-36
1

skipif mysql # not compatible
query II rowsort label-1974
SELECT ALL COUNT ( * ) / - + 68 + - + 36 AS col1, COUNT ( ALL - 22 ) AS col0
----
-36
1

query I rowsort
SELECT - 65 * 17 * - 24 + 56 * + 14
----
27304

query II rowsort
SELECT DISTINCT - ( + 5 ) * + 86 AS col1, 16 * - + 28 col2
----
-430
-448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1977
SELECT ALL - - 3 DIV - + ( - 62 ) * 17 + COUNT( * ) + - 7 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - - 3 / - + ( - 62 ) * 17 + COUNT ( * ) + - 7 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT + 21 * CASE - COUNT( * ) WHEN 91 THEN NULL WHEN - ( ( + - COUNT( DISTINCT - CASE - 5 WHEN - 80 THEN - 61 - + 94 END ) ) ) * + 35 THEN + - 35 + + 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT + 21 * CASE - COUNT ( * ) WHEN 91 THEN NULL WHEN - ( ( + - COUNT ( DISTINCT - CASE - 5 WHEN - 80 THEN - 61 - + 94 END ) ) ) * + 35 THEN + - 35 + + 3 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT ALL - 41 DIV - 20 + 90
----
92

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL - 41 / - 20 + 90
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT + 15 * + 21 * - COUNT( * ) * - 52 AS col0
----
16380

skipif mysql # not compatible
query I rowsort label-1980
SELECT + 15 * + 21 * - COUNT ( * ) * - 52 AS col0
----
16380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1981
SELECT DISTINCT - COALESCE ( COUNT( * ), COUNT( * ) ) DIV - 82 + + + 57
----
57

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT - COALESCE ( COUNT ( * ), COUNT ( * ) ) / - 82 + + + 57
----
57

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

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

query II rowsort
SELECT 56 * - 32 AS col1, - 25
----
-1792
-25

query I rowsort
SELECT ALL + ( + 96 ) * 29 + + - ( - + 2 ) AS col1
----
2786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1985
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) - + + 96
----
-95

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) - + + 96
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1986
SELECT ALL + 95 * 87 * + + COALESCE ( - COUNT( 85 ), 95 * - - 48 ) AS col0, + 76 * - - ( 13 ) + + 18 + CASE - CAST( NULL AS SIGNED ) WHEN CASE + ( + 42 ) WHEN + + 34 THEN + 4 * ( - 62 ) - + SUM( ALL CAST( + 56 AS SIGNED ) ) END THEN NULL WHEN + 13 THEN - 75 ELSE 19 * + 27 + - 58 DIV - 98 END DIV - 3 * COUNT( * ) + COUNT( * ) AS col0
----
-8265
836

skipif mysql # not compatible
query II rowsort label-1986
SELECT ALL + 95 * 87 * + + COALESCE ( - COUNT ( 85 ), 95 * - - 48 ) AS col0, + 76 * - - ( 13 ) + + 18 + CASE - CAST ( NULL AS INTEGER ) WHEN CASE + ( + 42 ) WHEN + + 34 THEN + 4 * ( - 62 ) - + SUM ( ALL CAST ( + 56 AS INTEGER ) ) END THEN NULL WHEN + 13 THEN - 75 ELSE 19 * + 27 + - 58 / - 98 END / - 3 * COUNT ( * ) + COUNT ( * ) AS col0
----
-8265
836

query I rowsort
SELECT ALL + ( + 7 ) * + 33 AS col1
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1988
SELECT SUM( + 77 ) / + CAST( NULL AS SIGNED ) + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT SUM ( + 77 ) / + CAST ( NULL AS INTEGER ) + + 80
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1989
SELECT - - MIN( 32 ) AS col0, 49 AS col0
----
32
49

skipif mysql # not compatible
query II rowsort label-1989
SELECT - - MIN ( 32 ) AS col0, 49 AS col0
----
32
49

onlyif mysql # DIV for integer division: 
query II rowsort label-1990
SELECT + 59 DIV 48 AS col1, 64 AS col1
----
1
64

skipif mysql # not compatible
query II rowsort label-1990
SELECT + 59 / 48 AS col1, 64 AS col1
----
1
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1991
SELECT ALL - 35 DIV - MIN( + + ( 65 ) ) * + + 14 - 72 + - 53
----
-125

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - 35 / - MIN ( + + ( 65 ) ) * + + 14 - 72 + - 53
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT + 98 * CAST( NULL AS SIGNED ) / + + ( - + 32 ) + + ( - 80 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT + 98 * CAST ( NULL AS INTEGER ) / + + ( - + 32 ) + + ( - 80 ) AS col0
----
NULL

query I rowsort
SELECT 47 + - 76
----
-29

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

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

query I rowsort
SELECT - 81 + - 34 + - 19 * + - 16
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL - ( - 99 ) + COUNT( * ) col2
----
100

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL - ( - 99 ) + COUNT ( * ) col2
----
100

query I rowsort
SELECT ALL + + 42 + - + 57 * - 76 AS col1
----
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL 78 + - ( + COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL 78 + - ( + COUNT ( * ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT DISTINCT + 83 + - MIN( 19 )
----
64

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT + 83 + - MIN ( 19 )
----
64

query I rowsort
SELECT + 14 - 30
----
-16

query II rowsort
SELECT + 32 + 7 * - - 31 - - 16 AS col0, 5
----
265
5

query I rowsort
SELECT + 41 * - - 91 AS col2
----
3731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2003
SELECT ALL CAST( NULL AS SIGNED ) + + 50 * + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL CAST ( NULL AS INTEGER ) + + 50 * + 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2004
SELECT ALL - 80 AS col2, - COUNT( * ) * + 83 DIV + 50 AS col0
----
-80
-1

skipif mysql # not compatible
query II rowsort label-2004
SELECT ALL - 80 AS col2, - COUNT ( * ) * + 83 / + 50 AS col0
----
-80
-1

query II rowsort
SELECT 63 AS col0, 23 AS col2
----
63
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT - 31 DIV 90 - - 91
----
91

skipif mysql # not compatible
query I rowsort label-2006
SELECT - 31 / 90 - - 91
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT 31 - - ( - - SUM( DISTINCT - 46 ) ) - + SUM( DISTINCT - + 60 ) + - + 85 col1
----
-40

skipif mysql # not compatible
query I rowsort label-2008
SELECT 31 - - ( - - SUM ( DISTINCT - 46 ) ) - + SUM ( DISTINCT - + 60 ) + - + 85 col1
----
-40

query II rowsort
SELECT + 17 AS col1, 51 AS col2
----
17
51

query I rowsort
SELECT 56 * + 55
----
3080

query I rowsort
SELECT 66 - + 21
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT 46 DIV + 35 col2
----
1

skipif mysql # not compatible
query I rowsort label-2012
SELECT 46 / + 35 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT DISTINCT COUNT( * ) - + + 83 * 43 AS col0
----
-3568

skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT COUNT ( * ) - + + 83 * 43 AS col0
----
-3568

onlyif mysql # aggregate syntax: 
query II rowsort label-2014
SELECT DISTINCT - NULLIF ( COUNT( * ), CASE - COUNT( * ) WHEN 38 + - 54 THEN 24 + - COUNT( * ) WHEN + 42 THEN - 19 WHEN - 53 THEN + 95 WHEN - + COUNT( * ) / - 95 THEN NULL END / + COUNT( * ) * 13 ), - 90 AS col0
----
-1
-90

skipif mysql # not compatible
query II rowsort label-2014
SELECT DISTINCT - NULLIF ( COUNT ( * ), CASE - COUNT ( * ) WHEN 38 + - 54 THEN 24 + - COUNT ( * ) WHEN + 42 THEN - 19 WHEN - 53 THEN + 95 WHEN - + COUNT ( * ) / - 95 THEN NULL END / + COUNT ( * ) * 13 ), - 90 AS col0
----
-1
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT 75 + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-2016
SELECT 75 + + COUNT ( * )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2017
SELECT CAST( NULL AS SIGNED ) * - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT CAST ( NULL AS INTEGER ) * - - 48
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2018
SELECT 67 * - NULLIF ( - 19, CAST( NULL AS SIGNED ) )
----
1273

skipif mysql # not compatible
query I rowsort label-2018
SELECT 67 * - NULLIF ( - 19, CAST ( NULL AS INTEGER ) )
----
1273

query II rowsort
SELECT DISTINCT + 10 AS col1, + 48 + 69
----
10
117

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

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

query I rowsort
SELECT 46 * + - 8 + - + 79 * - COALESCE ( - NULLIF ( - 75, 58 + - 84 ), + 98 * - 41 )
----
5557

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2022
SELECT - 84 AS col2, + 39 DIV + - SUM( - + 9 )
----
-84
4

skipif mysql # not compatible
query II rowsort label-2022
SELECT - 84 AS col2, + 39 / + - SUM ( - + 9 )
----
-84
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT DISTINCT + MIN( DISTINCT 10 ) + 46 + - 86 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT + MIN ( DISTINCT 10 ) + 46 + - 86 AS col2
----
-30

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

query I rowsort
SELECT ALL + - NULLIF ( - + 26, + 84 + + 62 + - - 83 + + - 51 ) + + 1 col2
----
27

query I rowsort
SELECT ALL + NULLIF ( 37, 21 * + 23 + - 93 * 44 - + 17 ) AS col1
----
37

query I rowsort
SELECT DISTINCT - 96 + 68
----
-28

query II rowsort
SELECT 31 + + 34 + - 8 * - - 32 * 57, 24 * + 12 AS col2
----
-14527
288

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2030
SELECT 78 AS col2, 17 * + 80 + CAST( NULL AS DECIMAL )
----
78
NULL

skipif mysql # not compatible
query II rowsort label-2030
SELECT 78 AS col2, 17 * + 80 + CAST ( NULL AS REAL )
----
78
NULL

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

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

query I rowsort
SELECT ALL + - 15 + 78
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2033
SELECT 95 + + 6 + + CAST( MAX( ALL - + 13 ) AS SIGNED ) + 13 + 59 * COALESCE ( + 2, - NULLIF ( + 5, 45 ) + + 8 + + + 60 DIV 96 * 22 ) col2
----
219

skipif mysql # not compatible
query I rowsort label-2033
SELECT 95 + + 6 + + CAST ( MAX ( ALL - + 13 ) AS INTEGER ) + 13 + 59 * COALESCE ( + 2, - NULLIF ( + 5, 45 ) + + 8 + + + 60 / 96 * 22 ) col2
----
219

query I rowsort
SELECT - 82 - + 52 * 52
----
-2786

query I rowsort
SELECT ALL - + 2 * + 22 * 38 * + - 77
----
128744

query I rowsort
SELECT 41 + + 12 + - 41 AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL - CAST( NULL AS SIGNED ) + - 19 + + + 23 + + 48 * + 88 + + CASE - + COUNT( * ) WHEN + COALESCE ( - + 13, 26 * AVG ( ALL + 48 ) * + 25 + + - 64 + - + 79 ) THEN - MAX( + 35 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - CAST ( NULL AS INTEGER ) + - 19 + + + 23 + + 48 * + 88 + + CASE - + COUNT ( * ) WHEN + COALESCE ( - + 13, 26 * AVG ( ALL + 48 ) * + 25 + + - 64 + - + 79 ) THEN - MAX ( + 35 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2038
SELECT COUNT( * ) + + - 26 AS col1, + ( - + NULLIF ( 44, 81 ) )
----
-25
-44

skipif mysql # not compatible
query II rowsort label-2038
SELECT COUNT ( * ) + + - 26 AS col1, + ( - + NULLIF ( 44, 81 ) )
----
-25
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT DISTINCT MIN( 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT MIN ( 53 ) AS col1
----
53

query I rowsort
SELECT ALL + ( + 38 ) - - 77
----
115

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2042
SELECT DISTINCT - CASE - 31 WHEN + 74 - 71 + + MIN( - 97 ) - + ( - 14 ) * 49 * + 99 - - 62 * CAST( - 89 AS DECIMAL ) + - 64 * + 59 + - 43 THEN + COUNT( * ) END * 24 / - 76 / + + 52 - + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT - CASE - 31 WHEN + 74 - 71 + + MIN ( - 97 ) - + ( - 14 ) * 49 * + 99 - - 62 * CAST ( - 89 AS REAL ) + - 64 * + 59 + - 43 THEN + COUNT ( * ) END * 24 / - 76 / + + 52 - + 46 AS col2
----
NULL

query I rowsort
SELECT - 14 * 22 AS col0
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT NULLIF ( - + COUNT( * ), + 12 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2044
SELECT NULLIF ( - + COUNT ( * ), + 12 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2045
SELECT 4 * ( + 71 ) + + + 44 AS col0, + COALESCE ( - 26, 36 + + CAST( + ( + 63 ) AS SIGNED ) )
----
328
-26

skipif mysql # not compatible
query II rowsort label-2045
SELECT 4 * ( + 71 ) + + + 44 AS col0, + COALESCE ( - 26, 36 + + CAST ( + ( + 63 ) AS INTEGER ) )
----
328
-26

query I rowsort
SELECT CASE - + 41 WHEN + 10 THEN - - 15 * + 58 + 7 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 84 * ( - - 50 ) * - 92 * - NULLIF ( + 32, - 24 ) + + + 59 * + + AVG ( - + 87 ) / CASE 50 WHEN + 94 THEN 94 + - + 12 WHEN + + 86 THEN 26 * - + 84 + + 23 END + + - 95 col0
----
NULL

query I rowsort
SELECT ALL 96 * 70 AS col1
----
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT + SUM( ALL + 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-2049
SELECT + SUM ( ALL + 59 ) AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2050
SELECT ALL 42 DIV - + MIN( - + 97 )
----
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL 42 / - + MIN ( - + 97 )
----
0

query I rowsort
SELECT - 48 * - ( - 18 )
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT MAX( DISTINCT - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-2052
SELECT MAX ( DISTINCT - 88 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2053
SELECT COUNT( * ), 51 + - CAST( + 78 AS SIGNED ) + + 35 + + 5 DIV - - 57 * 82 AS col1
----
1
8

skipif mysql # not compatible
query II rowsort label-2053
SELECT COUNT ( * ), 51 + - CAST ( + 78 AS INTEGER ) + + 35 + + 5 / - - 57 * 82 AS col1
----
1
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2054
SELECT + SUM( - 8 ) DIV - 5
----
1

skipif mysql # not compatible
query I rowsort label-2054
SELECT + SUM ( - 8 ) / - 5
----
1

query I rowsort
SELECT DISTINCT 19 * + 52 + + + 24 + - 4
----
1008

query I rowsort
SELECT + 0 * 58 - + 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT COUNT( ALL - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-2057
SELECT COUNT ( ALL - 25 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2058
SELECT + 80 DIV 72
----
1

skipif mysql # not compatible
query I rowsort label-2058
SELECT + 80 / 72
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT DISTINCT + 83 * + 38 * + + 69 + + ( 7 ) + + + ( - - 23 ) + 28 + 82 + - COUNT( * ) * - 50 AS col2
----
217816

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT + 83 * + 38 * + + 69 + + ( 7 ) + + + ( - - 23 ) + 28 + 82 + - COUNT ( * ) * - 50 AS col2
----
217816

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2060
SELECT DISTINCT + - 28 AS col1, + 20 + + COALESCE ( - 61, + - 59 - + - 51 * + 49 + - - 98 + 73 DIV + 16 * - 84 + - - 60 + 20 + - 62 * - COUNT( * ) )
----
-28
-41

skipif mysql # not compatible
query II rowsort label-2060
SELECT DISTINCT + - 28 AS col1, + 20 + + COALESCE ( - 61, + - 59 - + - 51 * + 49 + - - 98 + 73 / + 16 * - 84 + - - 60 + 20 + - 62 * - COUNT ( * ) )
----
-28
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2061
SELECT - - NULLIF ( 68, + CAST( NULL AS SIGNED ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-2061
SELECT - - NULLIF ( 68, + CAST ( NULL AS INTEGER ) ) AS col1
----
68

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

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - 94 + - COUNT ( * ) * + - COUNT ( * ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL - COUNT( DISTINCT ( - NULLIF ( + 52, 83 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - COUNT ( DISTINCT ( - NULLIF ( + 52, 83 ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT + + 72 + - COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2064
SELECT + + 72 + - COUNT ( * ) AS col0
----
71

query I rowsort
SELECT DISTINCT 99 + + 31 col0
----
130

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2067
SELECT ALL 13 + ( - - 57 ) - + COUNT( * ) + - - 7 + - 65 * 90 * - + COALESCE ( 41, - + 33, + MAX( 40 ) + + COUNT( * ) + + 48 + + 58 + - MIN( + 80 ) + + - ( CAST( NULL AS SIGNED ) ) * 99 ) AS col1
----
239926

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL 13 + ( - - 57 ) - + COUNT ( * ) + - - 7 + - 65 * 90 * - + COALESCE ( 41, - + 33, + MAX ( 40 ) + + COUNT ( * ) + + 48 + + 58 + - MIN ( + 80 ) + + - ( CAST ( NULL AS INTEGER ) ) * 99 ) AS col1
----
239926

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT ALL + 34 + - 16 + + 2 * + 90 * + COUNT( * ) + - 25 + - + COUNT( * ) + 39 * + 5 - + 14 + - 91 - - COUNT( * ) - + 82 * + 40 * + 35 AS col1
----
-114537

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + 34 + - 16 + + 2 * + 90 * + COUNT ( * ) + - 25 + - + COUNT ( * ) + 39 * + 5 - + 14 + - 91 - - COUNT ( * ) - + 82 * + 40 * + 35 AS col1
----
-114537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2069
SELECT - CAST( + - 45 AS SIGNED ), 38 * SUM( DISTINCT + 37 ) AS col0
----
45
1406

skipif mysql # not compatible
query II rowsort label-2069
SELECT - CAST ( + - 45 AS INTEGER ), 38 * SUM ( DISTINCT + 37 ) AS col0
----
45
1406

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT + ( - + MAX( ALL + 14 ) ) * + 16 + - COUNT( * ) AS col0
----
-225

skipif mysql # not compatible
query I rowsort label-2070
SELECT + ( - + MAX ( ALL + 14 ) ) * + 16 + - COUNT ( * ) AS col0
----
-225

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2071
SELECT ALL 36 AS col1, CAST( NULL AS DECIMAL )
----
36
NULL

skipif mysql # not compatible
query II rowsort label-2071
SELECT ALL 36 AS col1, CAST ( NULL AS REAL )
----
36
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT COALESCE ( + 53, COUNT( * ) * + 48 + - 5 + - 46 )
----
53

skipif mysql # not compatible
query I rowsort label-2073
SELECT COALESCE ( + 53, COUNT ( * ) * + 48 + - 5 + - 46 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT ALL NULLIF ( - 60, - SUM( + - 66 ) + - MAX( 1 ) * + 59 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL NULLIF ( - 60, - SUM ( + - 66 ) + - MAX ( 1 ) * + 59 ) AS col2
----
-60

query I rowsort
SELECT DISTINCT - - 99 - 56 * + - 88
----
5027

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2076
SELECT - 51 * CAST( - + 42 AS SIGNED )
----
2142

skipif mysql # not compatible
query I rowsort label-2076
SELECT - 51 * CAST ( - + 42 AS INTEGER )
----
2142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2077
SELECT ALL CASE WHEN 53 IS NOT NULL THEN + NULLIF ( COALESCE ( - 38, + 74 ), - + 14 ) ELSE 38 * + - 13 * + 16 - - + ( - ( + - 15 ) ) - - CASE + + 8 WHEN 53 / + 70 * - COUNT( * ) + - COUNT( * ) THEN + ( ( 96 ) ) * - 67 + 93 + + COALESCE ( + 52, - 45 * + + COUNT( * ) / + 42 + - - MAX( DISTINCT - 16 ) * - COUNT( * ), + MAX( - 62 ) * - + ( 32 ) ) + - 3 * + 87 + 30 ELSE + ( + + 86 ) / + + 85 * + + 42 + + 72 END + - CAST( + - 36 AS SIGNED ) * 14 END AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL CASE WHEN 53 IS NOT NULL THEN + NULLIF ( COALESCE ( - 38, + 74 ), - + 14 ) ELSE 38 * + - 13 * + 16 - - + ( - ( + - 15 ) ) - - CASE + + 8 WHEN 53 / + 70 * - COUNT ( * ) + - COUNT ( * ) THEN + ( ( 96 ) ) * - 67 + 93 + + COALESCE ( + 52, - 45 * + + COUNT ( * ) / + 42 + - - MAX ( DISTINCT - 16 ) * - COUNT ( * ), + MAX ( - 62 ) * - + ( 32 ) ) + - 3 * + 87 + 30 ELSE + ( + + 86 ) / + + 85 * + + 42 + + 72 END + - CAST ( + - 36 AS INTEGER ) * 14 END AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2078
SELECT ALL COALESCE ( + 91, 70 * - CAST( 63 AS SIGNED ) ) AS col2, 88 AS col0
----
91
88

skipif mysql # not compatible
query II rowsort label-2078
SELECT ALL COALESCE ( + 91, 70 * - CAST ( 63 AS INTEGER ) ) AS col2, 88 AS col0
----
91
88

query I rowsort
SELECT - 56 - - 88 AS col1
----
32

query I rowsort
SELECT - 32 - + 41 AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2081
SELECT DISTINCT + 35 DIV + + 42 AS col2, CAST( + COALESCE ( + 26, ( COUNT( * ) ) + 65 ) AS SIGNED ) * 78 + - 45 AS col1
----
0
1983

skipif mysql # not compatible
query II rowsort label-2081
SELECT DISTINCT + 35 / + + 42 AS col2, CAST ( + COALESCE ( + 26, ( COUNT ( * ) ) + 65 ) AS INTEGER ) * 78 + - 45 AS col1
----
0
1983

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2082
SELECT DISTINCT + ( - MAX( DISTINCT - ( + 62 ) ) ) / - + 15 - + COUNT( * ) + + - 60 + + 35 / + CAST( NULL AS DECIMAL ) * + COALESCE ( + 2, + 88, + ( + 26 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT + ( - MAX ( DISTINCT - ( + 62 ) ) ) / - + 15 - + COUNT ( * ) + + - 60 + + 35 / + CAST ( NULL AS REAL ) * + COALESCE ( + 2, + 88, + ( + 26 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT ALL + 9 * + - 44 * COUNT( * )
----
-396

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL + 9 * + - 44 * COUNT ( * )
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT DISTINCT + 36 * - COUNT( * ) * + 95
----
-3420

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT + 36 * - COUNT ( * ) * + 95
----
-3420

query I rowsort
SELECT - 78 - + 0 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT + SUM( ALL + 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2086
SELECT + SUM ( ALL + 31 ) AS col1
----
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2088
SELECT ALL 15 DIV + - 70 + - ( + ( + 82 ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL 15 / + - 70 + - ( + ( + 82 ) ) AS col0
----
-82

query I rowsort
SELECT - 42 + - + 31 AS col1
----
-73

query I rowsort
SELECT + COALESCE ( + 21, + 65 ) AS col0
----
21

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2092
SELECT + ( CAST( NULL AS DECIMAL ) ) * - MIN( ALL + + 16 ) + + + CASE + COUNT( * ) WHEN + 23 THEN + COUNT( * ) WHEN + 1 THEN - 5 END + + 99 - - - 18 * - - 85 + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT + ( CAST ( NULL AS REAL ) ) * - MIN ( ALL + + 16 ) + + + CASE + COUNT ( * ) WHEN + 23 THEN + COUNT ( * ) WHEN + 1 THEN - 5 END + + 99 - - - 18 * - - 85 + + 71
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2093
SELECT DISTINCT + - NULLIF ( - + 79, + 23 + + 25 + + + 67 * + CAST( NULL AS DECIMAL ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT + - NULLIF ( - + 79, + 23 + + 25 + + + 67 * + CAST ( NULL AS REAL ) ) AS col1
----
79

query I rowsort
SELECT + 82 + + 88
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL + 28 * + 87 * - + 25 + COUNT( * ) * - 36 AS col0
----
-60936

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + 28 * + 87 * - + 25 + COUNT ( * ) * - 36 AS col0
----
-60936

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT 26 * - MIN( + 91 ) + - 74 AS col1
----
-2440

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT 26 * - MIN ( + 91 ) + - 74 AS col1
----
-2440

query I rowsort
SELECT ALL 36 * + + 63 + 87 * - 47 AS col0
----
-1821

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT - 44 * - COUNT( DISTINCT + 47 ) + 93
----
137

skipif mysql # not compatible
query I rowsort label-2099
SELECT - 44 * - COUNT ( DISTINCT + 47 ) + 93
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL - 92 * + SUM( 33 ) + 5 + NULLIF ( + 2, + MIN( DISTINCT + + 91 ) ) + ( + 11 )
----
-3018

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL - 92 * + SUM ( 33 ) + 5 + NULLIF ( + 2, + MIN ( DISTINCT + + 91 ) ) + ( + 11 )
----
-3018

query I rowsort
SELECT + 71 * - ( + 24 )
----
-1704

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL - 46 * COUNT( * ) * - 2 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL - 46 * COUNT ( * ) * - 2 AS col1
----
92

query I rowsort
SELECT + + 41 + + + 96
----
137

query I rowsort
SELECT DISTINCT 73 * ( 82 ) AS col0
----
5986

onlyif mysql # DIV for integer division: 
query I rowsort label-2105
SELECT ALL 47 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL 47 / - 81
----
0

query I rowsort
SELECT + 30 + + 19 col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2107
SELECT + 35 DIV + 47 * + 62
----
0

skipif mysql # not compatible
query I rowsort label-2107
SELECT + 35 / + 47 * + 62
----
0

query II rowsort
SELECT DISTINCT ( 30 ) AS col1, 95 + - 65 AS col1
----
30
30

query II rowsort
SELECT - 47 AS col0, 75 * + + 4 AS col0
----
-47
300

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2111
SELECT DISTINCT 51 AS col2, ( + CAST( 1 AS SIGNED ) ) AS col2
----
51
1

skipif mysql # not compatible
query II rowsort label-2111
SELECT DISTINCT 51 AS col2, ( + CAST ( 1 AS INTEGER ) ) AS col2
----
51
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT ALL 3 AS col1, - MIN( DISTINCT - 84 ) + + 60 AS col0
----
3
144

skipif mysql # not compatible
query II rowsort label-2112
SELECT ALL 3 AS col1, - MIN ( DISTINCT - 84 ) + + 60 AS col0
----
3
144

query I rowsort
SELECT 31 + - 62
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT 66 - - + COUNT( - 63 ) + 56 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-2114
SELECT 66 - - + COUNT ( - 63 ) + 56 AS col0
----
123

query I rowsort
SELECT ALL + 49 * - 31 * - 71
----
107849

query I rowsort
SELECT ALL + 40 * + 8 AS col2
----
320

query II rowsort
SELECT ALL 15, 93 AS col2
----
15
93

query I rowsort
SELECT 56 + 21
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-2119
SELECT DISTINCT 17 AS col0, 90 DIV 73 * - - 5
----
17
5

skipif mysql # not compatible
query II rowsort label-2119
SELECT DISTINCT 17 AS col0, 90 / 73 * - - 5
----
17
5

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

query I rowsort
SELECT DISTINCT 2 + ( + 89 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT ALL - 77 + - - SUM( ALL - + 51 )
----
-128

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL - 77 + - - SUM ( ALL - + 51 )
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT + 30 * + 8 + - COUNT( * ) AS col0
----
239

skipif mysql # not compatible
query I rowsort label-2123
SELECT + 30 * + 8 + - COUNT ( * ) AS col0
----
239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2124
SELECT CAST( - 54 AS SIGNED ) * - 95
----
5130

skipif mysql # not compatible
query I rowsort label-2124
SELECT CAST ( - 54 AS INTEGER ) * - 95
----
5130

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

skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT + 5 / COUNT ( * )
----
5

query II rowsort
SELECT + + 44 AS col0, 88 * 32
----
44
2816

query I rowsort
SELECT DISTINCT - 11 * - 48
----
528

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT MAX( 63 ) * - - COALESCE ( - 71, 18 ) col2
----
-4473

skipif mysql # not compatible
query I rowsort label-2129
SELECT MAX ( 63 ) * - - COALESCE ( - 71, 18 ) col2
----
-4473

query I rowsort
SELECT - 3 * + 44 * 92 * + 5
----
-60720

query II rowsort
SELECT ALL + ( + 34 ) - - + 89, 27 AS col0
----
123
27

query II rowsort
SELECT + 53 AS col0, 81
----
53
81

query I rowsort
SELECT 59 * - ( - + 26 ) AS col2
----
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + MIN( DISTINCT - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-2134
SELECT + MIN ( DISTINCT - 66 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT CAST( - - SUM( - 85 ) AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-2135
SELECT CAST ( - - SUM ( - 85 ) AS INTEGER )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT ALL 45 * - CAST( - 47 AS SIGNED ) + 76 + 44
----
2235

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL 45 * - CAST ( - 47 AS INTEGER ) + 76 + 44
----
2235

query I rowsort
SELECT NULLIF ( + + 87, - - 97 * + 46 ) AS col0
----
87

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

skipif mysql # not compatible
query II rowsort label-2138
SELECT - - 16, CAST ( NULL AS INTEGER ) col0
----
16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT DISTINCT - COUNT( 88 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT - COUNT ( 88 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT COUNT( * ) * + COUNT( * ) DIV - 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT COUNT ( * ) * + COUNT ( * ) / - 44 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2141
SELECT COALESCE ( ( 43 ), + + 55 + + 18 + + NULLIF ( - + COUNT( * ), + + 12 * - 78 + + ( - 51 ) ) * CAST( + 92 AS SIGNED ) * 97 ) + - 19 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-2141
SELECT COALESCE ( ( 43 ), + + 55 + + 18 + + NULLIF ( - + COUNT ( * ), + + 12 * - 78 + + ( - 51 ) ) * CAST ( + 92 AS INTEGER ) * 97 ) + - 19 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2142
SELECT ALL - ( + 42 ) * + 62 * 5, 72 * - + CASE 14 WHEN + + MIN( 11 ) THEN NULL WHEN CASE - 25 WHEN + CAST( - COUNT( * ) AS SIGNED ) * CAST( 8 AS SIGNED ) * + CASE + - AVG ( 96 ) WHEN + + 14 THEN + + 3 + - NULLIF ( + 37, + + 22 + - - 60 ) ELSE NULL END * - - 61 + - - 14 + + COUNT( * ) THEN NULL WHEN - + 97 * 63 + 70 THEN 73 * + + 88 * COUNT( * ) ELSE NULL END THEN NULL ELSE + 54 END AS col2
----
-13020
-3888

skipif mysql # not compatible
query II rowsort label-2142
SELECT ALL - ( + 42 ) * + 62 * 5, 72 * - + CASE 14 WHEN + + MIN ( 11 ) THEN NULL WHEN CASE - 25 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) * CAST ( 8 AS INTEGER ) * + CASE + - AVG ( 96 ) WHEN + + 14 THEN + + 3 + - NULLIF ( + 37, + + 22 + - - 60 ) ELSE NULL END * - - 61 + - - 14 + + COUNT ( * ) THEN NULL WHEN - + 97 * 63 + 70 THEN 73 * + + 88 * COUNT ( * ) ELSE NULL END THEN NULL ELSE + 54 END AS col2
----
-13020
-3888

query I rowsort
SELECT 40 * 72 AS col2
----
2880

query I rowsort
SELECT ALL 73 + 69
----
142

query I rowsort
SELECT 66 * - - 3 AS col1
----
198

query I rowsort
SELECT ALL 85 + - 6
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT COUNT( * ) * 40 * + - CASE - - 71 WHEN - COUNT( * ) THEN NULL ELSE 59 + + COUNT( * ) END * COUNT( * ) AS col1
----
-2400

skipif mysql # not compatible
query I rowsort label-2147
SELECT COUNT ( * ) * 40 * + - CASE - - 71 WHEN - COUNT ( * ) THEN NULL ELSE 59 + + COUNT ( * ) END * COUNT ( * ) AS col1
----
-2400

query I rowsort
SELECT ALL 61 + 14 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT COUNT( * ) - - 84 - - 98 AS col1
----
183

skipif mysql # not compatible
query I rowsort label-2149
SELECT COUNT ( * ) - - 84 - - 98 AS col1
----
183

query I rowsort
SELECT 56 - + - 12 AS col1
----
68

query I rowsort
SELECT ALL 13 + 85 AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2152
SELECT ( - - 72 ) + + NULLIF ( NULLIF ( - 18, 66 ), + 97 * - CASE - + CAST( NULL AS SIGNED ) WHEN - 9 THEN - CAST( - - 78 AS SIGNED ) / - 84 * + - 73 / 5 * - 77 * 41 ELSE NULL END / - AVG ( ALL - 73 ) * 75 / 8 - + 24 - COUNT( * ) + 33 / + + COUNT( * ) * + AVG ( 18 ) + + COUNT( * ) / ( + - 61 ) + + 19 * - - 94 + COUNT( * ) + - 15 )
----
54

skipif mysql # not compatible
query I rowsort label-2152
SELECT ( - - 72 ) + + NULLIF ( NULLIF ( - 18, 66 ), + 97 * - CASE - + CAST ( NULL AS INTEGER ) WHEN - 9 THEN - CAST ( - - 78 AS INTEGER ) / - 84 * + - 73 / 5 * - 77 * 41 ELSE NULL END / - AVG ( ALL - 73 ) * 75 / 8 - + 24 - COUNT ( * ) + 33 / + + COUNT ( * ) * + AVG ( 18 ) + + COUNT ( * ) / ( + - 61 ) + + 19 * - - 94 + COUNT ( * ) + - 15 )
----
54

query I rowsort
SELECT 1 * - 99
----
-99

query I rowsort
SELECT ALL 77 * - 25
----
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT ALL COUNT( * ) * + 81 + - 12
----
69

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL COUNT ( * ) * + 81 + - 12
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT - COUNT( * ) + + 94 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-2156
SELECT - COUNT ( * ) + + 94 AS col1
----
93

query I rowsort
SELECT ( - 66 ) * 45 * - 79
----
234630

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2158
SELECT CAST( NULL AS DECIMAL ) * 45 / - CAST( - + 45 AS DECIMAL ) + - 96 * + MIN( - - 19 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2158
SELECT CAST ( NULL AS REAL ) * 45 / - CAST ( - + 45 AS REAL ) + - 96 * + MIN ( - - 19 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT + 40 + CAST( + + AVG ( ALL + 70 ) AS SIGNED ) AS col2
----
110

skipif mysql # not compatible
query I rowsort label-2159
SELECT + 40 + CAST ( + + AVG ( ALL + 70 ) AS INTEGER ) AS col2
----
110

query I rowsort
SELECT + COALESCE ( - 32, - 82 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT + 60 * + 11 * - 80 * + COUNT( * ) + 63 AS col2
----
-52737

skipif mysql # not compatible
query I rowsort label-2161
SELECT + 60 * + 11 * - 80 * + COUNT ( * ) + 63 AS col2
----
-52737

query I rowsort
SELECT DISTINCT - - 93 * + + 25 * + 25
----
58125

query I rowsort
SELECT + ( 91 ) + + 28
----
119

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

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

query I rowsort
SELECT ALL - 64 * - 76 * 90 AS col0
----
437760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT 25 * - + COUNT( * ) + 62 * + + COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2167
SELECT 25 * - + COUNT ( * ) + 62 * + + COUNT ( * ) AS col0
----
37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT + MAX( + - 15 ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-2169
SELECT + MAX ( + - 15 ) col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT - - COUNT( * ) * - - 95 * + + COUNT( * ) col1
----
95

skipif mysql # not compatible
query I rowsort label-2170
SELECT - - COUNT ( * ) * - - 95 * + + COUNT ( * ) col1
----
95

query I rowsort
SELECT - 78 + 66 + + 39
----
27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2173
SELECT ALL - COALESCE ( - NULLIF ( - 90, 54 + - - CASE + CASE 19 WHEN - + 87 THEN - + 6 * - + COUNT( * ) * 80 * + 42 WHEN 45 THEN + 95 - + 87 * + 38 END WHEN + + 43 THEN 6 + - - CASE + CAST( + 49 AS DECIMAL ) WHEN + 57 THEN 49 * + 11 + - 63 + + + 48 WHEN - COUNT( * ) THEN NULL ELSE + COUNT( * ) END WHEN + CAST( + 25 AS SIGNED ) + 7 / - - COUNT( * ) + + 25 - + COUNT( * ) - - 0 * - 10 THEN + 6 WHEN - - 94 * - 18 + 16 + + 25 * - 44 THEN NULL END ), + CASE - 99 WHEN 43 * 21 * - + 24 * - - 97 THEN NULL WHEN + - 34 THEN 16 END + 4 )
----
-90

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL - COALESCE ( - NULLIF ( - 90, 54 + - - CASE + CASE 19 WHEN - + 87 THEN - + 6 * - + COUNT ( * ) * 80 * + 42 WHEN 45 THEN + 95 - + 87 * + 38 END WHEN + + 43 THEN 6 + - - CASE + CAST ( + 49 AS REAL ) WHEN + 57 THEN 49 * + 11 + - 63 + + + 48 WHEN - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END WHEN + CAST ( + 25 AS INTEGER ) + 7 / - - COUNT ( * ) + + 25 - + COUNT ( * ) - - 0 * - 10 THEN + 6 WHEN - - 94 * - 18 + 16 + + 25 * - 44 THEN NULL END ), + CASE - 99 WHEN 43 * 21 * - + 24 * - - 97 THEN NULL WHEN + - 34 THEN 16 END + 4 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2174
SELECT DISTINCT + SUM( ALL 94 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT + SUM ( ALL 94 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2175
SELECT ALL CASE + - COUNT( * ) WHEN 31 DIV + 68 * 41 - + NULLIF ( - ( - 39 ), + - 46 ) THEN NULL ELSE COUNT( ALL - 29 ) - COUNT( * ) + + - 86 DIV - - COUNT( * ) END
----
-86

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL CASE + - COUNT ( * ) WHEN 31 / + 68 * 41 - + NULLIF ( - ( - 39 ), + - 46 ) THEN NULL ELSE COUNT ( ALL - 29 ) - COUNT ( * ) + + - 86 / - - COUNT ( * ) END
----
-86

query I rowsort
SELECT DISTINCT 14 * 64 * + - 65
----
-58240

query I rowsort
SELECT ALL 73 + + - ( + 71 ) + + 91
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2178
SELECT ALL NULLIF ( - 12, + + ( + 93 ) * 37 ) AS col0, COUNT( * ) * + + 59 * + + 52 * SUM( DISTINCT - 40 ) * - - COUNT( * )
----
-12
-122720

skipif mysql # not compatible
query II rowsort label-2178
SELECT ALL NULLIF ( - 12, + + ( + 93 ) * 37 ) AS col0, COUNT ( * ) * + + 59 * + + 52 * SUM ( DISTINCT - 40 ) * - - COUNT ( * )
----
-12
-122720

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT + 55 + + 61 * COUNT( * ) * - + 91 AS col2
----
-5496

skipif mysql # not compatible
query I rowsort label-2179
SELECT + 55 + + 61 * COUNT ( * ) * - + 91 AS col2
----
-5496

query I rowsort
SELECT DISTINCT - 5 * 56 AS col1
----
-280

query I rowsort
SELECT ALL + 50 + - + 45
----
5

query II rowsort
SELECT - 2 * + - 14 * + 66, - 54 AS col2
----
1848
-54

query I rowsort
SELECT ALL 13 * - + 75 AS col2
----
-975

query I rowsort
SELECT DISTINCT 72 + - - 22 + - 26 * - + 57
----
1576

query I rowsort
SELECT DISTINCT - 5 * - + 69
----
345

query I rowsort
SELECT ALL - 87 * 3
----
-261

query I rowsort
SELECT DISTINCT + 33 - - 98 AS col0
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-2188
SELECT DISTINCT 1 DIV + 75 * + + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT 1 / + 75 * + + 41 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2189
SELECT + 42 + - 4 DIV MIN( ALL + 50 + 47 DIV 8 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2189
SELECT + 42 + - 4 / MIN ( ALL + 50 + 47 / 8 ) AS col0
----
42

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

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

query I rowsort
SELECT - 83 * - COALESCE ( 97, 92 ) + + 3 * 18
----
8105

query I rowsort
SELECT + 29 * - 24
----
-696

query I rowsort
SELECT + 35 * 51 AS col0
----
1785

query I rowsort
SELECT + ( ( 62 ) ) col2
----
62

query I rowsort
SELECT DISTINCT 59 * + 73
----
4307

query I rowsort
SELECT ALL 93 * - 91 AS col1
----
-8463

query I rowsort
SELECT + 99 * 30 AS col2
----
2970

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

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

query I rowsort
SELECT DISTINCT 23 * - 39 AS col0
----
-897

query I rowsort
SELECT ALL 58 * + 57
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT COALESCE ( - 64, - 56, + MIN( 48 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-2201
SELECT COALESCE ( - 64, - 56, + MIN ( 48 ) )
----
-64

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

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

query I rowsort
SELECT 90 * 54 - 43 AS col0
----
4817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2204
SELECT NULLIF ( 32, 87 * NULLIF ( COUNT( DISTINCT - 11 ), 25 + CAST( + 8 AS SIGNED ) ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2204
SELECT NULLIF ( 32, 87 * NULLIF ( COUNT ( DISTINCT - 11 ), 25 + CAST ( + 8 AS INTEGER ) ) ) AS col0
----
32

query I rowsort
SELECT + 33 * - 63 AS col0
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT + MAX( 29 ) - + ( 8 )
----
21

skipif mysql # not compatible
query I rowsort label-2206
SELECT + MAX ( 29 ) - + ( 8 )
----
21

query I rowsort
SELECT ALL + NULLIF ( - 83, 17 ) AS col2
----
-83

query I rowsort
SELECT CASE + 4 WHEN 63 + 45 THEN 51 * 72 + - 76 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL - 90 * NULLIF ( 23 * - 55, + COUNT( * ) * - COUNT( * ) ) AS col1
----
113850

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL - 90 * NULLIF ( 23 * - 55, + COUNT ( * ) * - COUNT ( * ) ) AS col1
----
113850

query I rowsort
SELECT NULLIF ( 40, - 8 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT ALL CAST( CAST( - 21 AS SIGNED ) AS SIGNED ) * + 88 + 83 AS col2
----
-1765

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL CAST ( CAST ( - 21 AS INTEGER ) AS INTEGER ) * + 88 + 83 AS col2
----
-1765

query I rowsort
SELECT DISTINCT - 23 * + 27 + 23 AS col1
----
-598

query I rowsort
SELECT ALL 87 * + 36 + + 34
----
3166

onlyif mysql # DIV for integer division: 
query I rowsort label-2214
SELECT - 79 + 77 DIV + 15 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-2214
SELECT - 79 + 77 / + 15 AS col1
----
-74

query I rowsort
SELECT + 68 * - 65 - + 45 AS col0
----
-4465

query I rowsort
SELECT ALL + 91 * + COALESCE ( + 58, - 42 ) AS col2
----
5278

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

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

query I rowsort
SELECT DISTINCT + 73 * + 14
----
1022

query I rowsort
SELECT ALL - 18 * 9 AS col1
----
-162

query I rowsort
SELECT - 43 * - ( 86 )
----
3698

query I rowsort
SELECT DISTINCT - 0 + ( + 3 ) * - 5
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT + 46 + - 42 * + SUM( 66 )
----
-2726

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT + 46 + - 42 * + SUM ( 66 )
----
-2726

query I rowsort
SELECT ALL - 19 * + 95 AS col2
----
-1805

query I rowsort
SELECT DISTINCT - 1 - + 33 col0
----
-34

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

query I rowsort
SELECT ALL 60 * + 72
----
4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2227
SELECT ALL CAST( - ( CASE - 78 WHEN + 79 * + 58 THEN - 90 - COUNT( * ) * - 64 ELSE + COUNT( * ) END ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL CAST ( - ( CASE - 78 WHEN + 79 * + 58 THEN - 90 - COUNT ( * ) * - 64 ELSE + COUNT ( * ) END ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT - COUNT( * ) * 45 col2
----
-45

skipif mysql # not compatible
query I rowsort label-2228
SELECT - COUNT ( * ) * 45 col2
----
-45

query I rowsort
SELECT + 18 * - 69 AS col0
----
-1242

query I rowsort
SELECT ALL - 56 * 39 col0
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT - COUNT( * ) - + 9 * 41 AS col1
----
-370

skipif mysql # not compatible
query I rowsort label-2231
SELECT - COUNT ( * ) - + 9 * 41 AS col1
----
-370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT + 78 / + ( + CAST( NULL AS SIGNED ) * + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT + 78 / + ( + CAST ( NULL AS INTEGER ) * + 99 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2233
SELECT - 22 + + 69 DIV COUNT( * ) col0
----
47

skipif mysql # not compatible
query I rowsort label-2233
SELECT - 22 + + 69 / COUNT ( * ) col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL NULLIF ( 34, MAX( ALL - 14 ) * 0 )
----
34

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL NULLIF ( 34, MAX ( ALL - 14 ) * 0 )
----
34

query I rowsort
SELECT DISTINCT - 86 col0
----
-86

query I rowsort
SELECT DISTINCT + 86 * 43 AS col0
----
3698

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT - + COALESCE ( ( CASE 18 WHEN 87 + 58 THEN + COUNT( * ) * 28 WHEN - COUNT( * ) THEN NULL ELSE NULL END ), - SUM( - 4 ), + 32 + - 52 ) * ( + 1 ) - MIN( ALL 50 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2238
SELECT - + COALESCE ( ( CASE 18 WHEN 87 + 58 THEN + COUNT ( * ) * 28 WHEN - COUNT ( * ) THEN NULL ELSE NULL END ), - SUM ( - 4 ), + 32 + - 52 ) * ( + 1 ) - MIN ( ALL 50 ) AS col1
----
-54

query I rowsort
SELECT 93 * 67 AS col2
----
6231

query I rowsort
SELECT DISTINCT + 61 + 79 * + 69 AS col2
----
5512

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

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL 68 + COUNT ( * ) AS col0
----
69

query I rowsort
SELECT - 38 + + 53 AS col2
----
15

query I rowsort
SELECT - 13 * + 6 + 71
----
-7

query I rowsort
SELECT ALL + 12 * + 79
----
948

query I rowsort
SELECT 62 + NULLIF ( + 44, - 12 )
----
106

query I rowsort
SELECT ALL - 42 + + 99
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT + - SUM( - NULLIF ( + 49, 90 ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2247
SELECT + - SUM ( - NULLIF ( + 49, 90 ) ) AS col2
----
49

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

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

query I rowsort
SELECT DISTINCT 3 * + 16 * 23
----
1104

query I rowsort
SELECT DISTINCT 62 + + + 92 + - 15 AS col2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT COUNT( * ) * + 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2251
SELECT COUNT ( * ) * + 9 AS col2
----
9

query I rowsort
SELECT ALL 97 + 66 AS col0
----
163

query I rowsort
SELECT 65 + + + 45 - + 70 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT CASE 2 WHEN 27 + 66 THEN CAST( - NULLIF ( 58, 21 * - SUM( ALL 8 ) ) AS SIGNED ) WHEN - 10 THEN NULL WHEN + CASE 76 WHEN - COUNT( * ) * 30 + 70 THEN 31 WHEN - 30 THEN COUNT( * ) + + 96 WHEN + 69 * - 64 THEN COALESCE ( + 39, 29, 65 * + ( - CAST( 90 AS SIGNED ) ) ) END THEN + COUNT( * ) + + 47 * SUM( 85 * 98 + 77 ) END / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT CASE 2 WHEN 27 + 66 THEN CAST ( - NULLIF ( 58, 21 * - SUM ( ALL 8 ) ) AS INTEGER ) WHEN - 10 THEN NULL WHEN + CASE 76 WHEN - COUNT ( * ) * 30 + 70 THEN 31 WHEN - 30 THEN COUNT ( * ) + + 96 WHEN + 69 * - 64 THEN COALESCE ( + 39, 29, 65 * + ( - CAST ( 90 AS INTEGER ) ) ) END THEN + COUNT ( * ) + + 47 * SUM ( 85 * 98 + 77 ) END / + COUNT ( * )
----
NULL

query I rowsort
SELECT ( + 99 ) + + 20
----
119

query I rowsort
SELECT ALL 61 - - + 3 + + 35
----
99

query I rowsort
SELECT DISTINCT + 42 * + 21
----
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2258
SELECT 91 + CASE - MIN( ALL 14 ) WHEN 28 THEN + 1 WHEN 66 + CAST( - 59 + - 55 AS SIGNED ) THEN - 79 ELSE NULL END * ( + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT 91 + CASE - MIN ( ALL 14 ) WHEN 28 THEN + 1 WHEN 66 + CAST ( - 59 + - 55 AS INTEGER ) THEN - 79 ELSE NULL END * ( + 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT DISTINCT 96 - + 63 + MAX( 9 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT 96 - + 63 + MAX ( 9 ) AS col1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2260
SELECT ALL 54 DIV - + 8 * COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL 54 / - + 8 * COUNT ( * )
----
-6

query I rowsort
SELECT 0 + - - 98 * - 13
----
-1274

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

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

query I rowsort
SELECT ALL - 88 * 70
----
-6160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2264
SELECT MIN( DISTINCT - CAST( + 19 AS SIGNED ) ) + 48 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2264
SELECT MIN ( DISTINCT - CAST ( + 19 AS INTEGER ) ) + 48 AS col1
----
29

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

skipif mysql # not compatible
query I rowsort label-2265
SELECT 19 * COUNT ( * ) * COUNT ( * )
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2267
SELECT 26 - - COUNT( DISTINCT 73 ) + + CAST( - 50 + + 88 AS SIGNED ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2267
SELECT 26 - - COUNT ( DISTINCT 73 ) + + CAST ( - 50 + + 88 AS INTEGER ) AS col1
----
65

query I rowsort
SELECT 0 + - - 91 AS col1
----
91

query I rowsort
SELECT ALL CASE + 82 WHEN + 43 + - 93 * 92 THEN 56 + - 43 * + 54 ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT - 42 + - ( 95 ) AS col2
----
-137

query I rowsort
SELECT - NULLIF ( 36, + 3 - 64 ) * - 61 AS col2
----
2196

query I rowsort
SELECT - 65 * - 63 + - 4 + 60 * 81 AS col2
----
8951

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2274
SELECT ALL + - 57 + - 48 DIV - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL + - 57 + - 48 / - COUNT ( * )
----
-9

query I rowsort
SELECT + COALESCE ( - ( 24 ), - 58 + - ( + ( 8 ) + 52 ) ) AS col0
----
-24

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

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT + - COUNT ( * ) + - 20 AS col0
----
-21

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

skipif mysql # not compatible
query I rowsort label-2277
SELECT + - COUNT ( DISTINCT - 27 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT DISTINCT - 4 + MAX( ALL + 95 )
----
91

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT - 4 + MAX ( ALL + 95 )
----
91

query I rowsort
SELECT ALL + COALESCE ( + - ( CASE 95 WHEN 58 THEN + 67 WHEN 15 + + 98 THEN - 22 WHEN - 82 * 93 THEN NULL END ), 68 + - ( - 59 ), - 95 ) * + 36
----
4572

query I rowsort
SELECT DISTINCT 84 + 8 col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT + + 15 * + NULLIF ( COUNT( * ), + CAST( + 91 AS SIGNED ) + 67 )
----
15

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + + 15 * + NULLIF ( COUNT ( * ), + CAST ( + 91 AS INTEGER ) + 67 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT ALL 2 + ( 77 ) DIV 77
----
3

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL 2 + ( 77 ) / 77
----
3

query I rowsort
SELECT 8 * + - 67
----
-536

query I rowsort
SELECT ALL - - 42 col1
----
42

query I rowsort
SELECT 10 + + - 59
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT NULLIF ( NULLIF ( - 81, COUNT( * ) ), - 91 + COUNT( * ) ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2286
SELECT NULLIF ( NULLIF ( - 81, COUNT ( * ) ), - 91 + COUNT ( * ) ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT CASE 99 WHEN + - MIN( 48 ) THEN - 9 * ( - 10 ) END * 63 + + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT CASE 99 WHEN + - MIN ( 48 ) THEN - 9 * ( - 10 ) END * 63 + + 57 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + + 8, + + COALESCE ( COALESCE ( + 79, - 16, ( - 37 ) ), 60 ) )
----
-8

query I rowsort
SELECT ALL 21 - - ( 82 )
----
103

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT DISTINCT - NULLIF ( COUNT( * ), + + ( - 25 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT - NULLIF ( COUNT ( * ), + + ( - 25 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2294
SELECT 58, COUNT( * ) * + 17 AS col1
----
58
17

skipif mysql # not compatible
query II rowsort label-2294
SELECT 58, COUNT ( * ) * + 17 AS col1
----
58
17

query I rowsort
SELECT ALL - ( - ( - 4 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT SUM( - 59 ) * - - COUNT( * ) * 72
----
-4248

skipif mysql # not compatible
query I rowsort label-2296
SELECT SUM ( - 59 ) * - - COUNT ( * ) * 72
----
-4248

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL MIN( + 69 ) * - 41 * COUNT( * ) AS col2
----
-2829

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL MIN ( + 69 ) * - 41 * COUNT ( * ) AS col2
----
-2829

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT ( 86 ) - - - 12 * - AVG ( ALL + CAST( NULL AS SIGNED ) * - 95 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT ( 86 ) - - - 12 * - AVG ( ALL + CAST ( NULL AS INTEGER ) * - 95 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT MAX( - ( + 39 ) ) * COALESCE ( COUNT( * ), 24 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2300
SELECT MAX ( - ( + 39 ) ) * COALESCE ( COUNT ( * ), 24 ) AS col2
----
-39

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT 29 DIV + ( + 87 ) * - 67
----
0

skipif mysql # not compatible
query I rowsort label-2302
SELECT 29 / + ( + 87 ) * - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT ( + COUNT( * ) ) * + 67 AS col2
----
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT COALESCE ( - COUNT( * ), 97, + 46 + 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT COALESCE ( - COUNT ( * ), 97, + 46 + 94 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT + COUNT( * ) * - - NULLIF ( 89, - 70 * + 41 + + 67 ) * COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2305
SELECT + COUNT ( * ) * - - NULLIF ( 89, - 70 * + 41 + + 67 ) * COUNT ( * ) AS col1
----
89

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2308
SELECT + 84 DIV 73 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2308
SELECT + 84 / 73 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2309
SELECT - - COUNT( * ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-2309
SELECT - - COUNT ( * ) / 77
----
0

query I rowsort
SELECT ALL + 36 + ( + + 21 ) AS col1
----
57

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2313
SELECT + - 56 + CAST( 30 AS SIGNED ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-2313
SELECT + - 56 + CAST ( 30 AS INTEGER ) col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT + NULLIF ( 27, + CASE + 34 WHEN COUNT( * ) THEN + SUM( DISTINCT 79 ) ELSE NULL END ) * COALESCE ( COUNT( * ), 10 * CASE + 46 WHEN - 74 + + 24 * COUNT( * ) THEN 16 * 90 ELSE NULL END ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT + NULLIF ( 27, + CASE + 34 WHEN COUNT ( * ) THEN + SUM ( DISTINCT 79 ) ELSE NULL END ) * COALESCE ( COUNT ( * ), 10 * CASE + 46 WHEN - 74 + + 24 * COUNT ( * ) THEN 16 * 90 ELSE NULL END ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT + + 81 + + COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2315
SELECT + + 81 + + COUNT ( * ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2316
SELECT ALL CAST( + CAST( 31 AS SIGNED ) AS DECIMAL ) + + ( CASE 58 WHEN 26 THEN 56 WHEN 46 + + 88 * 0 THEN + 18 + - 17 ELSE NULL END + 73 * 70 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL CAST ( + CAST ( 31 AS INTEGER ) AS REAL ) + + ( CASE 58 WHEN 26 THEN 56 WHEN 46 + + 88 * 0 THEN + 18 + - 17 ELSE NULL END + 73 * 70 ) AS col2
----
NULL

query I rowsort
SELECT - 34 + - 67 - + CASE - 77 WHEN + 29 - 38 THEN + 83 * 66 WHEN - 27 THEN 83 * 45 ELSE NULL END - + 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT ALL + 51 * - NULLIF ( - ( 49 ), COUNT( * ) ) * COUNT( + 57 ) + - 80 * - 82
----
9059

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL + 51 * - NULLIF ( - ( 49 ), COUNT ( * ) ) * COUNT ( + 57 ) + - 80 * - 82
----
9059

query I rowsort
SELECT DISTINCT + 84 * - 51 AS col0
----
-4284

query I rowsort
SELECT ALL 42 * - ( + 7 ) + 28 AS col1
----
-266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT - CAST( - - ( 47 ) AS SIGNED ) - 28 * 0
----
-47

skipif mysql # not compatible
query I rowsort label-2321
SELECT - CAST ( - - ( 47 ) AS INTEGER ) - 28 * 0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT + + 29 * - 43 + - + 47 + + COUNT( * ) * + 56
----
-1238

skipif mysql # not compatible
query I rowsort label-2322
SELECT + + 29 * - 43 + - + 47 + + COUNT ( * ) * + 56
----
-1238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2323
SELECT DISTINCT + 1 DIV + ( COUNT( * ) ) - MAX( 52 )
----
-51

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT + 1 / + ( COUNT ( * ) ) - MAX ( 52 )
----
-51

query I rowsort
SELECT COALESCE ( - 47, - + ( - 21 ) ) AS col2
----
-47

query I rowsort
SELECT + 87 * - - ( + + 44 ) + 76 + ( 33 ) * 30
----
4894

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT ALL + 59 * 78 * - SUM( ALL 32 ) * SUM( 86 ) AS col1
----
-12664704

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL + 59 * 78 * - SUM ( ALL 32 ) * SUM ( 86 ) AS col1
----
-12664704

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT DISTINCT + 87 DIV 10 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT + 87 / 10 AS col2
----
8

query I rowsort
SELECT DISTINCT - 41 * + + 81 AS col1
----
-3321

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT - 55 + + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-2329
SELECT - 55 + + - COUNT ( * )
----
-56

query I rowsort
SELECT ALL 24 * + 83 - - 86 + - - 34 - 78
----
2034

query I rowsort
SELECT - 73 * - + 37 AS col0
----
2701

query I rowsort
SELECT ALL - 60 * 17 col0
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT - ( - 40 ) + + ( - COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-2333
SELECT - ( - 40 ) + + ( - COUNT ( * ) )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT - SUM( DISTINCT - CAST( + - 30 AS SIGNED ) ) + + + CASE 50 WHEN - 58 + + 63 THEN NULL WHEN 9 THEN 28 / + 7 END / + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT - SUM ( DISTINCT - CAST ( + - 30 AS INTEGER ) ) + + + CASE 50 WHEN - 58 + + 63 THEN NULL WHEN 9 THEN 28 / + 7 END / + 50
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( 38, + + 6 + - NULLIF ( + 35, 11 * 4 + - 48 ) ) AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2336
SELECT - 37 DIV + - 68 AS col0, COUNT( * ) + + + 84 + CAST( 87 AS SIGNED ) AS col2
----
0
172

skipif mysql # not compatible
query II rowsort label-2336
SELECT - 37 / + - 68 AS col0, COUNT ( * ) + + + 84 + CAST ( 87 AS INTEGER ) AS col2
----
0
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + 43 * + + ( + - COALESCE ( 48, - 75 * 25 + - 74 * + MAX( ALL + 37 ) ) ) AS col0
----
-2064

skipif mysql # not compatible
query I rowsort label-2337
SELECT + 43 * + + ( + - COALESCE ( 48, - 75 * 25 + - 74 * + MAX ( ALL + 37 ) ) ) AS col0
----
-2064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2338
SELECT - 55 * + - 49 * + COUNT( * ) + + 44 DIV 92
----
2695

skipif mysql # not compatible
query I rowsort label-2338
SELECT - 55 * + - 49 * + COUNT ( * ) + + 44 / 92
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT - ( + - 85 ) * + + MAX( + 99 ) AS col0
----
8415

skipif mysql # not compatible
query I rowsort label-2339
SELECT - ( + - 85 ) * + + MAX ( + 99 ) AS col0
----
8415

query I rowsort
SELECT + 19 * + + ( - - 95 )
----
1805

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2343
SELECT + 83 + 78 + + - COUNT ( * ) AS col1
----
160

query I rowsort
SELECT DISTINCT ( - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL - MIN( DISTINCT - 25 ) + - 61 * + 95 * - ( 83 ) + + ( + MIN( DISTINCT 95 ) ) * ( 15 ) AS col0
----
482435

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL - MIN ( DISTINCT - 25 ) + - 61 * + 95 * - ( 83 ) + + ( + MIN ( DISTINCT 95 ) ) * ( 15 ) AS col0
----
482435

query I rowsort
SELECT + 77 + + 3
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT + - 45 + + - 50 * + - 76 * SUM( - COALESCE ( 82, 83 ) )
----
-311645

skipif mysql # not compatible
query I rowsort label-2347
SELECT + - 45 + + - 50 * + - 76 * SUM ( - COALESCE ( 82, 83 ) )
----
-311645

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

skipif mysql # not compatible
query I rowsort label-2348
SELECT + 77 + - - 84 * + 82 * COUNT ( * ) AS col0
----
6965

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT + - CASE COUNT( * ) WHEN + 15 THEN CASE COUNT( * ) WHEN 26 * + COUNT( * ) + + 33 / CASE + 62 WHEN - 0 THEN + 74 + ( + COUNT( * ) ) * MIN( 49 ) END THEN 96 ELSE NULL END * - 49 WHEN 65 THEN - 16 * + 87 + 82 END + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT + - CASE COUNT ( * ) WHEN + 15 THEN CASE COUNT ( * ) WHEN 26 * + COUNT ( * ) + + 33 / CASE + 62 WHEN - 0 THEN + 74 + ( + COUNT ( * ) ) * MIN ( 49 ) END THEN 96 ELSE NULL END * - 49 WHEN 65 THEN - 16 * + 87 + 82 END + 2 AS col0
----
NULL

query I rowsort
SELECT + 60 + 24 * + 68
----
1692

query I rowsort
SELECT ALL 74 + - 96
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2352
SELECT ALL + COUNT( * ) + - 19 + + 55 + + 2 DIV 73 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL + COUNT ( * ) + - 19 + + 55 + + 2 / 73 AS col0
----
37

query I rowsort
SELECT + - 19 * - 51 + 69 AS col2
----
1038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2354
SELECT + - CASE - + MIN( DISTINCT 38 ) WHEN - 44 * - 60 THEN NULL WHEN 52 + 69 THEN - CAST( - 96 AS SIGNED ) ELSE NULL END + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2354
SELECT + - CASE - + MIN ( DISTINCT 38 ) WHEN - 44 * - 60 THEN NULL WHEN 52 + 69 THEN - CAST ( - 96 AS INTEGER ) ELSE NULL END + 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2355
SELECT ALL - 63 - + - 64 DIV 97 * 66 * MIN( ALL 7 )
----
-63

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL - 63 - + - 64 / 97 * 66 * MIN ( ALL 7 )
----
-63

query I rowsort
SELECT + 93 * + + 32 AS col1
----
2976

query I rowsort
SELECT - COALESCE ( - 70, + 32 + - + 60 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2358
SELECT + ( + COUNT( * ) ) * - 76 + - - 67 + + 19 DIV 2
----
0

skipif mysql # not compatible
query I rowsort label-2358
SELECT + ( + COUNT ( * ) ) * - 76 + - - 67 + + 19 / 2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2359
SELECT + 7 * - NULLIF ( - + 11, + CAST( + 13 AS SIGNED ) * - MIN( ALL 68 + 38 ) )
----
77

skipif mysql # not compatible
query I rowsort label-2359
SELECT + 7 * - NULLIF ( - + 11, + CAST ( + 13 AS INTEGER ) * - MIN ( ALL 68 + 38 ) )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT DISTINCT 46 * + COALESCE ( + 92, - CAST( NULL AS SIGNED ) ) + 13
----
4245

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT 46 * + COALESCE ( + 92, - CAST ( NULL AS INTEGER ) ) + 13
----
4245

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT ALL + 73 * MAX( + ( - 19 ) )
----
-1387

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL + 73 * MAX ( + ( - 19 ) )
----
-1387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT CAST( - - 7 AS SIGNED ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2362
SELECT CAST ( - - 7 AS INTEGER ) AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2363
SELECT + CAST( MIN( DISTINCT + 97 ) AS SIGNED ) * + 92 + - CAST( + 18 AS SIGNED ) + ( - 85 )
----
8821

skipif mysql # not compatible
query I rowsort label-2363
SELECT + CAST ( MIN ( DISTINCT + 97 ) AS INTEGER ) * + 92 + - CAST ( + 18 AS INTEGER ) + ( - 85 )
----
8821

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2364
SELECT CAST( NULL AS SIGNED ) AS col1, + 42 col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-2364
SELECT CAST ( NULL AS INTEGER ) AS col1, + 42 col2
----
NULL
42

query I rowsort
SELECT + 61 * - 67 AS col1
----
-4087

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

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

query I rowsort
SELECT - 66 + - 50 col0
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT ALL - 38 DIV - 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL - 38 / - 44 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2369
SELECT DISTINCT - CAST( + 47 AS SIGNED ) + - 17 + ( - COUNT( * ) ) * CAST( NULL AS DECIMAL ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT - CAST ( + 47 AS INTEGER ) + - 17 + ( - COUNT ( * ) ) * CAST ( NULL AS REAL ) * 58
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + 5, + - 12, + 84 ) + + 39
----
44

query I rowsort
SELECT DISTINCT - 11 + 56 AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT 35 DIV - - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2372
SELECT 35 / - - 94 AS col1
----
0

query II rowsort
SELECT - 2 AS col1, + 0
----
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT 45 DIV - + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2374
SELECT 45 / - + 57 AS col1
----
0

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT - 55 AS col2, 88 * + 38 + - - 98 - 28
----
-55
3414

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT COALESCE ( + - 25, 81 * + 58 + + NULLIF ( COUNT( * ), - 4 / - COALESCE ( - COUNT( * ), 73 * 2 ) ) - - MAX( DISTINCT - 42 ) * + 84 ) + - 43
----
-68

skipif mysql # not compatible
query I rowsort label-2381
SELECT COALESCE ( + - 25, 81 * + 58 + + NULLIF ( COUNT ( * ), - 4 / - COALESCE ( - COUNT ( * ), 73 * 2 ) ) - - MAX ( DISTINCT - 42 ) * + 84 ) + - 43
----
-68

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

query I rowsort
SELECT - 61 * + 87 + - 35 AS col2
----
-5342

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

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

query I rowsort
SELECT 85 + - + 67
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT + 27 * - NULLIF ( + - 51, + - COUNT( * ) ) + + COUNT( * ) + 64 * + NULLIF ( COUNT( ( + 37 ) ) - MIN( - 19 ), 22 * - 35 ) AS col1
----
2658

skipif mysql # not compatible
query I rowsort label-2386
SELECT + 27 * - NULLIF ( + - 51, + - COUNT ( * ) ) + + COUNT ( * ) + 64 * + NULLIF ( COUNT ( ( + 37 ) ) - MIN ( - 19 ), 22 * - 35 ) AS col1
----
2658

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2388
SELECT DISTINCT 26 DIV 16
----
1

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT 26 / 16
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2389
SELECT MAX( DISTINCT CAST( NULL AS SIGNED ) ) * - - 35 * - 14 + - 85 - + 35 * + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * - - 35 * - 14 + - 85 - + 35 * + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2390
SELECT 6 * - 88 + + COUNT( * ) DIV + - MIN( DISTINCT 98 ) * ( + 66 ) * COALESCE ( + 55 * 99, MIN( + 75 ) * 89, 81 * - 0 ) - 11 + COALESCE ( - 38, + COUNT( * ) ) col0
----
-577

skipif mysql # not compatible
query I rowsort label-2390
SELECT 6 * - 88 + + COUNT ( * ) / + - MIN ( DISTINCT 98 ) * ( + 66 ) * COALESCE ( + 55 * 99, MIN ( + 75 ) * 89, 81 * - 0 ) - 11 + COALESCE ( - 38, + COUNT ( * ) ) col0
----
-577

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT 90 * - CASE + 23 WHEN 92 * + ( - MIN( - 68 ) ) * 38 THEN + 74 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT 90 * - CASE + 23 WHEN 92 * + ( - MIN ( - 68 ) ) * 38 THEN + 74 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT 0 * - 9 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2393
SELECT 0 * - 9 * - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT - COUNT( * ) * + + 22 + + COUNT( * ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-2394
SELECT - COUNT ( * ) * + + 22 + + COUNT ( * ) col1
----
-21

query II rowsort
SELECT + 71, + 17 * + + 19 AS col2
----
71
323

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

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL COUNT ( ALL 28 ) + CAST ( - + ( + 16 ) AS INTEGER ) / + 79 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - - 75, - 47 ) + - 23 * - - 5 AS col0
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT - CASE - 26 WHEN - 11 * 33 THEN NULL WHEN + 39 THEN NULL WHEN + + 68 * - COUNT( * ) - - COUNT( ALL - 92 ) THEN 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - CASE - 26 WHEN - 11 * 33 THEN NULL WHEN + 39 THEN NULL WHEN + + 68 * - COUNT ( * ) - - COUNT ( ALL - 92 ) THEN 68 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2399
SELECT ALL - ( + 86 ) + - COALESCE ( 64, 96 ) + 63 + 91 * CAST( NULL AS SIGNED ) * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - ( + 86 ) + - COALESCE ( 64, 96 ) + 63 + 91 * CAST ( NULL AS INTEGER ) * 44
----
NULL

query I rowsort
SELECT DISTINCT 83 + + 10
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT DISTINCT - CASE - - 3 WHEN 14 - + COUNT( * ) THEN + - 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT - CASE - - 3 WHEN 14 - + COUNT ( * ) THEN + - 6 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT + MAX( - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-2402
SELECT + MAX ( - 36 )
----
-36

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

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

query I rowsort
SELECT + 59 + ( + + 99 )
----
158

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2407
SELECT 52 * 36 DIV - 35
----
-53

skipif mysql # not compatible
query I rowsort label-2407
SELECT 52 * 36 / - 35
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT DISTINCT + - CAST( NULL AS SIGNED ) - - + 88 * 93 + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) - - + 88 * 93 + 77
----
NULL

query II rowsort
SELECT - 4 AS col1, - 53 * - 89
----
-4
4717

query I rowsort
SELECT 29 + + ( 42 )
----
71

query I rowsort
SELECT 77 * + ( - - 78 ) * 30 * + NULLIF ( 31, 18 ) + 89 * + 73
----
5592077

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL - SUM( 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL - SUM ( 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT ALL + COALESCE ( + 80, + + 90 + - CAST( + 86 AS SIGNED ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + COALESCE ( + 80, + + 90 + - CAST ( + 86 AS INTEGER ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL MAX( ALL 95 )
----
95

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL MAX ( ALL 95 )
----
95

query I rowsort
SELECT 68 * - 49 * + + 25
----
-83300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT CASE + + 96 WHEN + + 53 THEN + - 40 - - + 71 / + 8 WHEN - - 68 * - COUNT( * ) THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT CASE + + 96 WHEN + + 53 THEN + - 40 - - + 71 / + 8 WHEN - - 68 * - COUNT ( * ) THEN COUNT ( * ) END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2419
SELECT 94 * + + NULLIF ( 79, - MAX( + + 2 ) ) AS col0, + CASE - 25 WHEN MIN( ALL + 5 ) / + COALESCE ( + 36, 94, ( 62 ) / - AVG ( COALESCE ( 31, 54 ) ) ) THEN 70 ELSE NULL END / + COUNT( * )
----
7426
NULL

skipif mysql # not compatible
query II rowsort label-2419
SELECT 94 * + + NULLIF ( 79, - MAX ( + + 2 ) ) AS col0, + CASE - 25 WHEN MIN ( ALL + 5 ) / + COALESCE ( + 36, 94, ( 62 ) / - AVG ( COALESCE ( 31, 54 ) ) ) THEN 70 ELSE NULL END / + COUNT ( * )
----
7426
NULL

query I rowsort
SELECT ALL AVG ( - 6 ) * + + 37 + - CASE 26 WHEN 62 THEN - + 54 ELSE NULL END + 2 * 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT CASE CASE COUNT( * ) WHEN + 15 + 3 THEN + 68 WHEN 81 THEN NULL END WHEN 16 THEN COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN - 46 * SUM( 46 ) THEN NULL ELSE + 52 END
----
52

skipif mysql # not compatible
query I rowsort label-2421
SELECT CASE CASE COUNT ( * ) WHEN + 15 + 3 THEN + 68 WHEN 81 THEN NULL END WHEN 16 THEN COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN - 46 * SUM ( 46 ) THEN NULL ELSE + 52 END
----
52

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

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

query I rowsort
SELECT ALL - 68 * + 57 + - 1 col2
----
-3877

query II rowsort
SELECT 66 * - - 64 + 93, - 58 AS col0
----
4317
-58

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

skipif mysql # not compatible
query I rowsort label-2425
SELECT + COUNT ( * ) / + 53
----
0

query I rowsort
SELECT + 24 * + 88
----
2112

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

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

query I rowsort
SELECT ALL ( + - 18 ) * - 52
----
936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2429
SELECT ALL CAST( 99 AS SIGNED ) * - 59 AS col0, COUNT( * ) col0
----
-5841
1

skipif mysql # not compatible
query II rowsort label-2429
SELECT ALL CAST ( 99 AS INTEGER ) * - 59 AS col0, COUNT ( * ) col0
----
-5841
1

query I rowsort
SELECT + 77 - + ( - 63 ) AS col0
----
140

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

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

query I rowsort
SELECT + - 39 + 48 + + + 72 + - 59 * - 80 col1
----
4801

query II rowsort
SELECT ALL + ( - 75 ), + 30 + - - 57 col0
----
-75
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT + 98 * - + COALESCE ( + 35, - 6 * - COUNT( * ) ) * + - NULLIF ( 35, + 16 * 77 ) + COUNT( * ) * - 77 + - 42 col0
----
119931

skipif mysql # not compatible
query I rowsort label-2434
SELECT + 98 * - + COALESCE ( + 35, - 6 * - COUNT ( * ) ) * + - NULLIF ( 35, + 16 * 77 ) + COUNT ( * ) * - 77 + - 42 col0
----
119931

query I rowsort
SELECT - 11 - 42
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2436
SELECT - ( 87 ) col1, 33 * ( + CAST( + 92 AS SIGNED ) ) * + 84 + - ( 42 ) AS col2
----
-87
254982

skipif mysql # not compatible
query II rowsort label-2436
SELECT - ( 87 ) col1, 33 * ( + CAST ( + 92 AS INTEGER ) ) * + 84 + - ( 42 ) AS col2
----
-87
254982

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2438
SELECT - + COUNT( * ) * + 79 + 46 AS col0, + 27
----
-33
27

skipif mysql # not compatible
query II rowsort label-2438
SELECT - + COUNT ( * ) * + 79 + 46 AS col0, + 27
----
-33
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT DISTINCT + NULLIF ( ( 7 ), + COUNT( * ) * - 56 ) AS col1, 87
----
7
87

skipif mysql # not compatible
query II rowsort label-2439
SELECT DISTINCT + NULLIF ( ( 7 ), + COUNT ( * ) * - 56 ) AS col1, 87
----
7
87

query I rowsort
SELECT ALL + - 28 * + - 33 - + 36 col2
----
888

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT - ( - 35 ) * 87 + + COUNT( * ) - - 47 + + 95 * + 97
----
12308

skipif mysql # not compatible
query I rowsort label-2441
SELECT - ( - 35 ) * 87 + + COUNT ( * ) - - 47 + + 95 * + 97
----
12308

query I rowsort
SELECT - 9 - - 75 AS col2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2443
SELECT ALL - - COUNT( * ) + + 39 AS col0, - 18
----
40
-18

skipif mysql # not compatible
query II rowsort label-2443
SELECT ALL - - COUNT ( * ) + + 39 AS col0, - 18
----
40
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2444
SELECT - 27 * 69 * 0 DIV + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT - 27 * 69 * 0 / + - COUNT ( * )
----
0

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

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

query II rowsort
SELECT - 91 + 75 * 56 - + 40 AS col1, 27 AS col1
----
4069
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2447
SELECT ALL - 70 DIV ( ( - 38 ) ), + 33 * MIN( + 58 ) AS col0
----
1
1914

skipif mysql # not compatible
query II rowsort label-2447
SELECT ALL - 70 / ( ( - 38 ) ), + 33 * MIN ( + 58 ) AS col0
----
1
1914

query I rowsort
SELECT DISTINCT - 97 + + + 45 + + 63 * + 80 AS col2
----
4988

query II rowsort
SELECT - 58, 75 AS col0
----
-58
75

query I rowsort
SELECT - 43 + + 11
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT ALL COUNT( * ) DIV - + 85 + - - 80 + - - 64 * + + 97 AS col1
----
6288

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL COUNT ( * ) / - + 85 + - - 80 + - - 64 * + + 97 AS col1
----
6288

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT - 51 * 46 + + COUNT( * ) * 35
----
-2311

skipif mysql # not compatible
query I rowsort label-2452
SELECT - 51 * 46 + + COUNT ( * ) * 35
----
-2311

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL + CASE - 53 WHEN 73 - - 0 + - + 17 THEN - - SUM( DISTINCT 68 ) * + CASE ( + 65 ) WHEN 68 / - 36 THEN - 74 END / 28 + 95 + + ( 4 ) WHEN 16 * - 48 + + 16 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL + CASE - 53 WHEN 73 - - 0 + - + 17 THEN - - SUM ( DISTINCT 68 ) * + CASE ( + 65 ) WHEN 68 / - 36 THEN - 74 END / 28 + 95 + + ( 4 ) WHEN 16 * - 48 + + 16 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT 80 * + 31 + + 76, + 2 AS col2
----
2556
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - 1 + + COUNT( * ) * - - SUM( DISTINCT - - 16 )
----
15

skipif mysql # not compatible
query I rowsort label-2455
SELECT - 1 + + COUNT ( * ) * - - SUM ( DISTINCT - - 16 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2456
SELECT + NULLIF ( - 72, + - COUNT( * ) ) * NULLIF ( - + 14, + 66 ) col1, - 90 * ( COUNT( * ) ) AS col2
----
1008
-90

skipif mysql # not compatible
query II rowsort label-2456
SELECT + NULLIF ( - 72, + - COUNT ( * ) ) * NULLIF ( - + 14, + 66 ) col1, - 90 * ( COUNT ( * ) ) AS col2
----
1008
-90

query II rowsort
SELECT ALL + 99 AS col0, 14 AS col0
----
99
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT + MIN( - - 93 ) * 67
----
6231

skipif mysql # not compatible
query I rowsort label-2458
SELECT + MIN ( - - 93 ) * 67
----
6231

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

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

query I rowsort
SELECT - - 91 * + 44 * - 28 AS col2
----
-112112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2461
SELECT + - 36 DIV + 14 - + MAX( ALL - 43 ) - + 66 * 97 AS col1
----
-6361

skipif mysql # not compatible
query I rowsort label-2461
SELECT + - 36 / + 14 - + MAX ( ALL - 43 ) - + 66 * 97 AS col1
----
-6361

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT ALL 59 * 68 + + 96 - - - 73 + 18 + - - 28 - 25 DIV - - 64 * - 93 AS col0
----
4081

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL 59 * 68 + + 96 - - - 73 + 18 + - - 28 - 25 / - - 64 * - 93 AS col0
----
4081

query I rowsort
SELECT + + ( + 36 ) + + 68
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2466
SELECT - COUNT( * ) AS col2, 2 * - + 32 DIV ( - MAX( + 86 ) )
----
-1
0

skipif mysql # not compatible
query II rowsort label-2466
SELECT - COUNT ( * ) AS col2, 2 * - + 32 / ( - MAX ( + 86 ) )
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT + 67 * - + 0 + - COUNT( * ) + 55 * + 90 AS col0
----
4949

skipif mysql # not compatible
query I rowsort label-2467
SELECT + 67 * - + 0 + - COUNT ( * ) + 55 * + 90 AS col0
----
4949

query II rowsort
SELECT - + 63 AS col0, + 40 AS col1
----
-63
40

query I rowsort
SELECT - - 34 + 47 * ( 60 ) + + - 50 AS col1
----
2804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2470
SELECT ALL NULLIF ( - 77, NULLIF ( + - 95, - - 25 + + - 90 ) * - - COALESCE ( 30, COUNT( * ), CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) + - 34 ) + + 73 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL NULLIF ( - 77, NULLIF ( + - 95, - - 25 + + - 90 ) * - - COALESCE ( 30, COUNT ( * ), CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) + - 34 ) + + 73 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2471
SELECT + CAST( NULL AS SIGNED ) * + MIN( - 43 ) * + 68 + + 12 + - 61 + 82 - - ( - + AVG ( + 64 ) ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT + CAST ( NULL AS INTEGER ) * + MIN ( - 43 ) * + 68 + + 12 + - 61 + 82 - - ( - + AVG ( + 64 ) ) * 37
----
NULL

query I rowsort
SELECT DISTINCT 38 + - 95 + + 32 - 85 - - 8 + 99 + + 38 * 19 * - + ( 88 ) * + 49
----
-3113267

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2473
SELECT ALL + AVG ( + 0 ) * - 30 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + AVG ( + 0 ) * - 30 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL 73 + - NULLIF ( + NULLIF ( - COUNT( * ), - 70 - + - 91 - 62 * - + 31 ), - 25 * + COUNT( * ) ) + + 77
----
151

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL 73 + - NULLIF ( + NULLIF ( - COUNT ( * ), - 70 - + - 91 - 62 * - + 31 ), - 25 * + COUNT ( * ) ) + + 77
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2475
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) * + 47 DIV + 19 AS col2, 84 AS col2
----
-2
84

skipif mysql # not compatible
query II rowsort label-2475
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) * + 47 / + 19 AS col2, 84 AS col2
----
-2
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2476
SELECT ALL + COALESCE ( 6, NULLIF ( - - 66, + 85 * + + CAST( + COUNT( * ) AS DECIMAL ) + - COUNT( * ) + 71 + ( + 20 ) ) * 95 + - 62 ) + - 18
----
-12

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL + COALESCE ( 6, NULLIF ( - - 66, + 85 * + + CAST ( + COUNT ( * ) AS REAL ) + - COUNT ( * ) + 71 + ( + 20 ) ) * 95 + - 62 ) + - 18
----
-12

query I rowsort
SELECT 29 * 56 AS col2
----
1624

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT 99 * + MIN( DISTINCT + - 76 ) AS col2
----
-7524

skipif mysql # not compatible
query I rowsort label-2478
SELECT 99 * + MIN ( DISTINCT + - 76 ) AS col2
----
-7524

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT 12 * - - MAX( - 44 ) * + + NULLIF ( + + 18, - COUNT( * ) ) col2
----
-9504

skipif mysql # not compatible
query I rowsort label-2479
SELECT 12 * - - MAX ( - 44 ) * + + NULLIF ( + + 18, - COUNT ( * ) ) col2
----
-9504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2480
SELECT 12 DIV 48 - + 78 * - COUNT( * ) + + + 25 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-2480
SELECT 12 / 48 - + 78 * - COUNT ( * ) + + + 25 AS col1
----
103

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2482
SELECT ALL - 21 DIV ( + + 43 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL - 21 / ( + + 43 ) AS col0
----
0

query I rowsort
SELECT + 97 + + 91 - + + 24 + + + 33 AS col1
----
197

onlyif mysql # aggregate syntax: 
query II rowsort label-2484
SELECT DISTINCT + + 62 * - COUNT( * ) AS col2, 26 * + - 64
----
-62
-1664

skipif mysql # not compatible
query II rowsort label-2484
SELECT DISTINCT + + 62 * - COUNT ( * ) AS col2, 26 * + - 64
----
-62
-1664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2485
SELECT - CAST( + 71 AS SIGNED ) AS col2, MIN( + - ( - 69 ) )
----
-71
69

skipif mysql # not compatible
query II rowsort label-2485
SELECT - CAST ( + 71 AS INTEGER ) AS col2, MIN ( + - ( - 69 ) )
----
-71
69

query I rowsort
SELECT 37 * 94
----
3478

query I rowsort
SELECT - 89 * - 48
----
4272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2488
SELECT DISTINCT - + 86 * 70 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT - + 86 * 70 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 7 * - + ( - 67 ) + + - 28 + + - 17
----
-514

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT - 46 + - CASE - NULLIF ( 6, 72 + MAX( DISTINCT 1 ) ) WHEN - + 17 THEN - 36 * 21 END * - 19 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2490
SELECT - 46 + - CASE - NULLIF ( 6, 72 + MAX ( DISTINCT 1 ) ) WHEN - + 17 THEN - 36 * 21 END * - 19 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2491
SELECT + SUM( - 4 ) * - COUNT( * ) + + + 69 AS col0, + 55 AS col1
----
73
55

skipif mysql # not compatible
query II rowsort label-2491
SELECT + SUM ( - 4 ) * - COUNT ( * ) + + + 69 AS col0, + 55 AS col1
----
73
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL - - 20 + - 87 * - COUNT( * ) AS col2
----
107

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL - - 20 + - 87 * - COUNT ( * ) AS col2
----
107

query I rowsort
SELECT ALL - 93 + + + COALESCE ( - 87, + - 70 * - 53 * + + 36 + 97 + 9 * + 18, 28 - 71 )
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT + COUNT( * ) * + 43 * + - 96 AS col2
----
-4128

skipif mysql # not compatible
query I rowsort label-2494
SELECT + COUNT ( * ) * + 43 * + - 96 AS col2
----
-4128

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL MAX( + + ( - 59 ) ) + - SUM( ALL - 96 ) + - COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL MAX ( + + ( - 59 ) ) + - SUM ( ALL - 96 ) + - COUNT ( * ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT 62 - - SUM( DISTINCT + 78 ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-2496
SELECT 62 - - SUM ( DISTINCT + 78 ) AS col1
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-2497
SELECT DISTINCT - NULLIF ( - 92, COUNT( - - 18 ) / 68 - 33 ) * 71 AS col1, COUNT( * )
----
6532
1

skipif mysql # not compatible
query II rowsort label-2497
SELECT DISTINCT - NULLIF ( - 92, COUNT ( - - 18 ) / 68 - 33 ) * 71 AS col1, COUNT ( * )
----
6532
1

query I rowsort
SELECT DISTINCT - - 2 + 7
----
9

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

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

query I rowsort
SELECT ALL 62 * - - 36 AS col0
----
2232

query I rowsort
SELECT DISTINCT ( 8 ) + 72 + - 80 col0
----
0

query I rowsort
SELECT DISTINCT + 24 + - 30 col1
----
-6

query I rowsort
SELECT 19 - + 41
----
-22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2504
SELECT DISTINCT 67 * - COUNT( * ) * - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT 67 * - COUNT ( * ) * - - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 93 + - - 71
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2506
SELECT 3 + + 23 + - - COUNT( * ), + COALESCE ( - - 45, + 98 ) DIV - 52 + - + 4 AS col1
----
27
-4

skipif mysql # not compatible
query II rowsort label-2506
SELECT 3 + + 23 + - - COUNT ( * ), + COALESCE ( - - 45, + 98 ) / - 52 + - + 4 AS col1
----
27
-4

query I rowsort
SELECT ALL 19 - 42
----
-23

query I rowsort
SELECT NULLIF ( + + 26, - 38 * + + 90 ) + + 57 AS col2
----
83

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

skipif mysql # not compatible
query I rowsort label-2509
SELECT 57 * + CAST ( NULL AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2510
SELECT ( - 29 ) + + CAST ( - COUNT ( * ) AS INTEGER )
----
-30

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL - 17 * - + 65 * + ( MIN( DISTINCT 19 ) ) AS col0
----
20995

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL - 17 * - + 65 * + ( MIN ( DISTINCT 19 ) ) AS col0
----
20995

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL MIN( 84 ) * - 68 * - 79 * + 21 AS col2
----
9476208

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL MIN ( 84 ) * - 68 * - 79 * + 21 AS col2
----
9476208

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT 24 * - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2516
SELECT 24 * - COUNT ( * ) AS col0
----
-24

query I rowsort
SELECT ALL - + 97 * - 38 AS col2
----
3686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2518
SELECT COALESCE ( - MAX( ALL 70 ), - 50 ) DIV 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2518
SELECT COALESCE ( - MAX ( ALL 70 ), - 50 ) / 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT - 78 + + - COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-2519
SELECT - 78 + + - COUNT ( * ) AS col0
----
-79

query I rowsort
SELECT DISTINCT - + 4 * - - 3 - 81 + - 78
----
-171

query I rowsort
SELECT ALL - NULLIF ( + 85, + AVG ( ALL + + 34 ) )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2522
SELECT 28 DIV + CASE - 11 WHEN COALESCE ( 74, - 24 * - 82 + + 67 * + SUM( + + 54 ) - - 18 * CAST( NULL AS SIGNED ) ) THEN 26 WHEN - 22 THEN 59 WHEN 60 THEN NULL ELSE + COUNT( * ) + 94 * 14 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2522
SELECT 28 / + CASE - 11 WHEN COALESCE ( 74, - 24 * - 82 + + 67 * + SUM ( + + 54 ) - - 18 * CAST ( NULL AS INTEGER ) ) THEN 26 WHEN - 22 THEN 59 WHEN 60 THEN NULL ELSE + COUNT ( * ) + 94 * 14 END AS col1
----
0

query I rowsort
SELECT ALL - 45 + - 95 AS col0
----
-140

query I rowsort
SELECT ALL - - 92 + - 23
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT ALL + CAST( + + 63 AS SIGNED ) + - 5
----
58

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL + CAST ( + + 63 AS INTEGER ) + - 5
----
58

query I rowsort
SELECT DISTINCT - 6 * + - 51 col2
----
306

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT 8 + - - 18 + - 11 DIV 75 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-2527
SELECT 8 + - - 18 + - 11 / 75 AS col0
----
26

query I rowsort
SELECT 51 + + 70 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT COUNT( ALL - 73 ) * + 89
----
89

skipif mysql # not compatible
query I rowsort label-2529
SELECT COUNT ( ALL - 73 ) * + 89
----
89

query I rowsort
SELECT ALL - 62 + + 50
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL - COUNT( * ) * 96 - 2 * + 18 + + NULLIF ( + - 77, - - 85 / + 59 ) - - - 53
----
-262

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL - COUNT ( * ) * 96 - 2 * + 18 + + NULLIF ( + - 77, - - 85 / + 59 ) - - - 53
----
-262

query I rowsort
SELECT - - NULLIF ( + 91, ( COALESCE ( + + 22, - - 78 ) ) + - + ( 73 ) * + + 74 * + 16 + 41 ) + 17 * 46
----
873

query II rowsort
SELECT ALL - 1 + - ( 20 ) AS col0, 36 + + 95
----
-21
131

query II rowsort
SELECT - + 32 + + - 62 + + 11 + - 80 - + 56, + 87 col2
----
-219
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT DISTINCT MIN( ALL - - 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT MIN ( ALL - - 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2536
SELECT ALL COUNT( * ), + 21 AS col1
----
1
21

skipif mysql # not compatible
query II rowsort label-2536
SELECT ALL COUNT ( * ), + 21 AS col1
----
1
21

query I rowsort
SELECT - 61 + - 66 + - 62 AS col1
----
-189

onlyif mysql # aggregate syntax: 
query II rowsort label-2538
SELECT 47 AS col1, + 11 + - - COALESCE ( - 17, - 6, + + COUNT( * ) ) AS col1
----
47
-6

skipif mysql # not compatible
query II rowsort label-2538
SELECT 47 AS col1, + 11 + - - COALESCE ( - 17, - 6, + + COUNT ( * ) ) AS col1
----
47
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT DISTINCT COALESCE ( - - 77, + NULLIF ( + - ( + 18 ), - MAX( 91 ) ) )
----
77

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT COALESCE ( - - 77, + NULLIF ( + - ( + 18 ), - MAX ( 91 ) ) )
----
77

query I rowsort
SELECT + 14 + - 86 * + - NULLIF ( 63, + 40 + + 25 + 18 * - 24 * 4 * - - 47 ) * + 98 AS col0
----
530978

onlyif mysql # DIV for integer division: 
query I rowsort label-2541
SELECT ALL + 48 DIV + - 27
----
-1

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL + 48 / + - 27
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2542
SELECT - 25 DIV 62 * 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2542
SELECT - 25 / 62 * 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT + 90 + SUM( - 66 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2543
SELECT + 90 + SUM ( - 66 ) AS col2
----
24

query I rowsort
SELECT - COALESCE ( + 19, 47 - - 83 * + 55 * - - 92 * + 38 * - 7 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL ( 57 ) * + 10 * - - 39 + - COUNT( * ) * - 55 - + 56 AS col0
----
22229

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL ( 57 ) * + 10 * - - 39 + - COUNT ( * ) * - 55 - + 56 AS col0
----
22229

query II rowsort
SELECT 47 AS col2, 18 col0
----
47
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT ALL 66 * MIN( DISTINCT + + 53 ) col0
----
3498

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL 66 * MIN ( DISTINCT + + 53 ) col0
----
3498

query I rowsort
SELECT + 72 * 88
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT - CASE - 90 WHEN COUNT( * ) + 66 THEN 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT - CASE - 90 WHEN COUNT ( * ) + 66 THEN 19 END AS col0
----
NULL

query I rowsort
SELECT ALL 12 * - - 19 AS col1
----
228

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT - MIN( 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-2552
SELECT - MIN ( 16 ) AS col1
----
-16

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

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

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

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

query I rowsort
SELECT ALL 82 * 97 + 10 + 20 + - - 85 AS col2
----
8069

query II rowsort
SELECT + 34 AS col2, - 36 + - NULLIF ( + 55, 43 )
----
34
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL + - 61 * + 37 + + MAX( DISTINCT 94 ) col2
----
-2163

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + - 61 * + 37 + + MAX ( DISTINCT 94 ) col2
----
-2163

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL 90 * 36 * - COUNT( * ) * ( + - CASE WHEN NOT + 98 NOT BETWEEN NULL AND - 40 * - 91 OR ( - 57 * + 40 ) NOT IN ( - 22 ) THEN 39 ELSE + 57 END ) + 10 * 97 AS col2
----
127330

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL 90 * 36 * - COUNT ( * ) * ( + - CASE WHEN NOT + 98 NOT BETWEEN NULL AND - 40 * - 91 OR ( - 57 * + 40 ) NOT IN ( - 22 ) THEN 39 ELSE + 57 END ) + 10 * 97 AS col2
----
127330

query II rowsort
SELECT + 68 AS col2, - 33 AS col1
----
68
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT COALESCE ( 9, - 82 + 83, - + CAST( NULL AS SIGNED ) * - - 90 - + - 6 )
----
9

skipif mysql # not compatible
query I rowsort label-2561
SELECT COALESCE ( 9, - 82 + 83, - + CAST ( NULL AS INTEGER ) * - - 90 - + - 6 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2562
SELECT ALL 90 * + 10 * + MIN( - - ( + + 55 ) ) + ( - - 77 ) + - CAST( + - COUNT( * ) AS SIGNED ) * + - ( - - 20 ) + - 94
----
49463

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL 90 * + 10 * + MIN ( - - ( + + 55 ) ) + ( - - 77 ) + - CAST ( + - COUNT ( * ) AS INTEGER ) * + - ( - - 20 ) + - 94
----
49463

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT + + CASE + - CASE + + 87 WHEN - 21 THEN - MAX( + ( + 13 ) ) * + 26 / + 60 * - 43 + 98 ELSE NULL END WHEN - NULLIF ( - 35, COUNT( 30 ) * MIN( 59 + 79 ) ) * 48 + - 60 THEN - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT + + CASE + - CASE + + 87 WHEN - 21 THEN - MAX ( + ( + 13 ) ) * + 26 / + 60 * - 43 + 98 ELSE NULL END WHEN - NULLIF ( - 35, COUNT ( 30 ) * MIN ( 59 + 79 ) ) * 48 + - 60 THEN - 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2564
SELECT ALL + + 70, - COUNT( * ) col0
----
70
-1

skipif mysql # not compatible
query II rowsort label-2564
SELECT ALL + + 70, - COUNT ( * ) col0
----
70
-1

query II rowsort
SELECT + - 46, 16 AS col2
----
-46
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL - 30 * + 75 * - COUNT( * ) - - 55 + - - 2 col1
----
2307

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - 30 * + 75 * - COUNT ( * ) - - 55 + - - 2 col1
----
2307

onlyif mysql # aggregate syntax: 
query II rowsort label-2567
SELECT ALL + 5, - 63 - - MAX( ALL + 26 ) AS col2
----
5
-37

skipif mysql # not compatible
query II rowsort label-2567
SELECT ALL + 5, - 63 - - MAX ( ALL + 26 ) AS col2
----
5
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-2568
SELECT - COUNT( DISTINCT + 5 ) * - COUNT( * ) * - - 1, + 66 AS col1
----
1
66

skipif mysql # not compatible
query II rowsort label-2568
SELECT - COUNT ( DISTINCT + 5 ) * - COUNT ( * ) * - - 1, + 66 AS col1
----
1
66

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

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

skipif mysql # not compatible
query I rowsort label-2570
SELECT - 62 / + - 62 * COUNT ( - - 31 ) AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL - ( - 4 ) * CASE MIN( ALL + 35 ) WHEN + 31 THEN NULL WHEN - - 25 + - - ( + 8 ) THEN NULL WHEN + 57 * - COUNT( 54 ) THEN 14 * + 18 - 37 * 63 END - + COUNT( * ) / + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL - ( - 4 ) * CASE MIN ( ALL + 35 ) WHEN + 31 THEN NULL WHEN - - 25 + - - ( + 8 ) THEN NULL WHEN + 57 * - COUNT ( 54 ) THEN 14 * + 18 - 37 * 63 END - + COUNT ( * ) / + 68
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2574
SELECT - 26 - + 92 DIV + 50 AS col1, - 30 col2
----
-27
-30

skipif mysql # not compatible
query II rowsort label-2574
SELECT - 26 - + 92 / + 50 AS col1, - 30 col2
----
-27
-30

query I rowsort
SELECT - 84 * - 81
----
6804

query I rowsort
SELECT ALL COALESCE ( + 37, 16 ) col0
----
37

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

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

query II rowsort
SELECT ALL ( - 41 ) AS col2, - 64
----
-41
-64

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

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

skipif mysql # not compatible
query I rowsort label-2580
SELECT - COUNT ( * ) / - 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT - COALESCE ( + 18, - NULLIF ( - 20, + COUNT( * ) - - - COUNT( - ( + 11 ) ) ), 85, CASE - 40 WHEN + + 40 * 6 THEN COUNT( * ) END ) - 8 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-2581
SELECT - COALESCE ( + 18, - NULLIF ( - 20, + COUNT ( * ) - - - COUNT ( - ( + 11 ) ) ), 85, CASE - 40 WHEN + + 40 * 6 THEN COUNT ( * ) END ) - 8 AS col2
----
-26

query I rowsort
SELECT - 95 + - 47
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT - COALESCE ( 63, 40 * - MIN( 59 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-2583
SELECT - COALESCE ( 63, 40 * - MIN ( 59 ) )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2584
SELECT DISTINCT + 99 DIV + 80 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT + 99 / + 80 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT DISTINCT - 45 + + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT - 45 + + COUNT ( * )
----
-44

query II rowsort
SELECT ALL ( - - 21 ) AS col1, 92
----
21
92

query I rowsort
SELECT ALL + 89 + + ( 43 ) + + 86 * - ( + 95 )
----
-8038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2588
SELECT DISTINCT + ( ( + 9 ) ) DIV - + ( + 58 ) + + COALESCE ( NULLIF ( - 21, - 81 + + + 72 ), 62 - - 58 + - COUNT( * ) DIV 44 ) * - 9
----
189

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT + ( ( + 9 ) ) / - + ( + 58 ) + + COALESCE ( NULLIF ( - 21, - 81 + + + 72 ), 62 - - 58 + - COUNT ( * ) / 44 ) * - 9
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2589
SELECT ALL CASE 76 WHEN 87 THEN COUNT( * ) + 82 * + 39 + + 79 WHEN - + 2 * COUNT( + 90 ) THEN 25 DIV + ( - 8 ) ELSE + 53 * 24 - 92 END + COUNT( * ) AS col2
----
1181

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL CASE 76 WHEN 87 THEN COUNT ( * ) + 82 * + 39 + + 79 WHEN - + 2 * COUNT ( + 90 ) THEN 25 / + ( - 8 ) ELSE + 53 * 24 - 92 END + COUNT ( * ) AS col2
----
1181

query I rowsort
SELECT ALL - ( + 85 ) + 15 AS col1
----
-70

query II rowsort
SELECT - ( - 49 ) AS col2, + 66 * - 80 + ( + ( - 0 ) ) AS col1
----
49
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT - 46 * - NULLIF ( 24, - - CASE COUNT( * ) WHEN + 94 * - 25 + + - 96 THEN NULL WHEN - 31 + + SUM( DISTINCT 70 ) + - COALESCE ( + 60, 42 * COUNT( * ) ) THEN 99 * COUNT( * ) END * 47 ) + - 76 + - 48 AS col1
----
980

skipif mysql # not compatible
query I rowsort label-2592
SELECT - 46 * - NULLIF ( 24, - - CASE COUNT ( * ) WHEN + 94 * - 25 + + - 96 THEN NULL WHEN - 31 + + SUM ( DISTINCT 70 ) + - COALESCE ( + 60, 42 * COUNT ( * ) ) THEN 99 * COUNT ( * ) END * 47 ) + - 76 + - 48 AS col1
----
980

query II rowsort
SELECT - 24 + + 51 AS col2, 42 col2
----
27
42

query I rowsort
SELECT 30 * + COALESCE ( ( 36 ), ( - 87 ) ) * + 48 + - 94 + - - 59
----
51805

query I rowsort
SELECT ALL + + 58 - + - 82 + - + 84 + - 96
----
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT DISTINCT SUM( + - ( 63 ) ) * - - COUNT( * ) col0
----
-63

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT SUM ( + - ( 63 ) ) * - - COUNT ( * ) col0
----
-63

query I rowsort
SELECT DISTINCT + 93 - + - 63
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-2599
SELECT + 74 + 81 AS col2, MAX( + + 98 )
----
155
98

skipif mysql # not compatible
query II rowsort label-2599
SELECT + 74 + 81 AS col2, MAX ( + + 98 )
----
155
98

query II rowsort
SELECT ALL - 67, 31 AS col0
----
-67
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2601
SELECT ( + MAX( ALL - 20 ) ) DIV COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-2601
SELECT ( + MAX ( ALL - 20 ) ) / COUNT ( * )
----
-20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT - 25 * COUNT( * ) + COALESCE ( + - 51, + 57 + + COUNT( * ) + - 25 ) * 83 - - 98
----
-4160

skipif mysql # not compatible
query I rowsort label-2603
SELECT - 25 * COUNT ( * ) + COALESCE ( + - 51, + 57 + + COUNT ( * ) + - 25 ) * 83 - - 98
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT - COUNT( 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT - COUNT ( 69 )
----
-1

query I rowsort
SELECT 38 * + + ( - 27 ) * + ( + 47 ) AS col0
----
-48222

query I rowsort
SELECT ALL 60 + + - 81 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT ALL COALESCE ( - - 23, + 38 ) + + 75 * - 52 + COUNT( * )
----
-3876

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL COALESCE ( - - 23, + 38 ) + + 75 * - 52 + COUNT ( * )
----
-3876

query I rowsort
SELECT DISTINCT 95 + 47 + + 89 AS col0
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2609
SELECT 28 / CASE + 69 WHEN - 37 THEN NULL WHEN + 85 THEN NULL WHEN 16 * MAX( - + ( 96 ) ) + - - 9 / + + CAST( NULL AS SIGNED ) THEN + 83 + + 80 * - 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT 28 / CASE + 69 WHEN - 37 THEN NULL WHEN + 85 THEN NULL WHEN 16 * MAX ( - + ( 96 ) ) + - - 9 / + + CAST ( NULL AS INTEGER ) THEN + 83 + + 80 * - 2 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2610
SELECT ( - 66 ) * + 46 + - 4 - 78 + + + 14, 23 + 2 + + COUNT( * ) * 71 col2
----
-3104
96

skipif mysql # not compatible
query II rowsort label-2610
SELECT ( - 66 ) * + 46 + - 4 - 78 + + + 14, 23 + 2 + + COUNT ( * ) * 71 col2
----
-3104
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL - 59 + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - 59 + COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2613
SELECT - 28 AS col0, COUNT( * ) + - 7
----
-28
-6

skipif mysql # not compatible
query II rowsort label-2613
SELECT - 28 AS col0, COUNT ( * ) + - 7
----
-28
-6

query I rowsort
SELECT ALL 94 + 20
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT ALL - ( - + COALESCE ( + 19, + - 52 * - 21 DIV 87 ) ) + 23 + 96 col1
----
138

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL - ( - + COALESCE ( + 19, + - 52 * - 21 / 87 ) ) + 23 + 96 col1
----
138

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2617
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + 78 - 69 AS col1, + CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2617
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + 78 - 69 AS col1, + CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2618
SELECT ALL CAST( - + CAST( + 59 AS SIGNED ) AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL CAST ( - + CAST ( + 59 AS INTEGER ) AS INTEGER )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT - 55 * + 34 * - SUM( - 76 ) AS col1
----
-142120

skipif mysql # not compatible
query I rowsort label-2619
SELECT - 55 * + 34 * - SUM ( - 76 ) AS col1
----
-142120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2620
SELECT ALL - 74 DIV - NULLIF ( + ( + ( - + 21 ) ), + + 84 * + ( + 36 ) + - - 77 - + COALESCE ( - - 71, + 19 + - MAX( 87 ), 10 ) * + CAST( NULL AS DECIMAL ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL - 74 / - NULLIF ( + ( + ( - + 21 ) ), + + 84 * + ( + 36 ) + - - 77 - + COALESCE ( - - 71, + 19 + - MAX ( 87 ), 10 ) * + CAST ( NULL AS REAL ) ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT DISTINCT - SUM( ALL 91 ) - 46
----
-137

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT - SUM ( ALL 91 ) - 46
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL - NULLIF ( + - 33, - 20 ) * + + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - NULLIF ( + - 33, - 20 ) * + + COUNT ( * ) AS col1
----
33

query I rowsort
SELECT + 22 * 6 AS col0
----
132

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

query II rowsort
SELECT ALL - + 75, + 73 AS col1
----
-75
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2626
SELECT DISTINCT + 23 * - 63 + - 61 + - ( + - COUNT( * ) ) * 5, - 39 AS col1
----
-1505
-39

skipif mysql # not compatible
query II rowsort label-2626
SELECT DISTINCT + 23 * - 63 + - 61 + - ( + - COUNT ( * ) ) * 5, - 39 AS col1
----
-1505
-39

query I rowsort
SELECT ALL - 64 * - 14
----
896

query I rowsort
SELECT + ( 48 ) - + 57 + + + 92 AS col1
----
83

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

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

query I rowsort
SELECT 55 * 78
----
4290

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL + MAX( - 32 ) * 22 * 34 AS col1
----
-23936

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL + MAX ( - 32 ) * 22 * 34 AS col1
----
-23936

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2633
SELECT ALL - CASE - + 41 WHEN - COALESCE ( + AVG ( + + 20 ), - 94 * - 87, - + COUNT( * ) ) + + 48 * + + 2 THEN NULL WHEN + 73 + - 44 + - 90 * + ( + 52 ) THEN 38 / + CAST( - 44 / - MIN( - 20 * 88 ) AS SIGNED ) END + + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - CASE - + 41 WHEN - COALESCE ( + AVG ( + + 20 ), - 94 * - 87, - + COUNT ( * ) ) + + 48 * + + 2 THEN NULL WHEN + 73 + - 44 + - 90 * + ( + 52 ) THEN 38 / + CAST ( - 44 / - MIN ( - 20 * 88 ) AS INTEGER ) END + + 50 AS col0
----
NULL

query I rowsort
SELECT 54 * + 57 AS col1
----
3078

query II rowsort
SELECT DISTINCT 54 * 46, + 93 AS col1
----
2484
93

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

skipif mysql # not compatible
query I rowsort label-2636
SELECT + SUM ( - 65 )
----
-65

query I rowsort
SELECT ALL 89 * + + 75 col0
----
6675

query II rowsort
SELECT 44 - 97 AS col2, - 28
----
-53
-28

query I rowsort
SELECT ALL 83 + 26 - + + 67 AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2640
SELECT ALL ( - 74 ) + 32 * - 69 + 87 * + 39 - - 86 + - 97 * - + 2 AS col0, + COUNT( + 92 )
----
1391
1

skipif mysql # not compatible
query II rowsort label-2640
SELECT ALL ( - 74 ) + 32 * - 69 + 87 * + 39 - - 86 + - 97 * - + 2 AS col0, + COUNT ( + 92 )
----
1391
1

query I rowsort
SELECT ALL 53 * + 70
----
3710

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL 77 + 83 * + + COUNT( * ) + - 64
----
96

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL 77 + 83 * + + COUNT ( * ) + - 64
----
96

query I rowsort
SELECT ALL 47 + + ( - - 3 )
----
50

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

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

query II rowsort
SELECT 41 - - + 31 AS col2, 25 AS col1
----
72
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2646
SELECT DISTINCT - 37 DIV - CAST( + - CASE + - NULLIF ( 78, 54 + 73 ) WHEN + - 65 THEN + COUNT( * ) ELSE NULL END AS SIGNED ), + 19 * 29 DIV - 54 AS col1
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-2646
SELECT DISTINCT - 37 / - CAST ( + - CASE + - NULLIF ( 78, 54 + 73 ) WHEN + - 65 THEN + COUNT ( * ) ELSE NULL END AS INTEGER ), + 19 * 29 / - 54 AS col1
----
NULL
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2647
SELECT DISTINCT NULLIF ( - ( - NULLIF ( - + COALESCE ( + 52, + - MIN( DISTINCT + 43 ) + COUNT( * ) * - 62 DIV - COUNT( * ), 93 ), + 53 * 71 DIV + + 94 DIV + 75 ) ), - 50 )
----
-52

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT NULLIF ( - ( - NULLIF ( - + COALESCE ( + 52, + - MIN ( DISTINCT + 43 ) + COUNT ( * ) * - 62 / - COUNT ( * ), 93 ), + 53 * 71 / + + 94 / + 75 ) ), - 50 )
----
-52

query I rowsort
SELECT ALL - 20 - 89 * - + 45 * ( + 57 ) AS col0
----
228265

query I rowsort
SELECT + CASE + + 67 WHEN 65 THEN 48 END + + ( - 52 )
----
NULL

query I rowsort
SELECT ALL - + 83 * - 82
----
6806

query I rowsort
SELECT + 84 + + 67 AS col0
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2652
SELECT DISTINCT + ( - 83 ) * - + ( COUNT( * ) ) * - CAST( NULL AS SIGNED ) + + 88 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT + ( - 83 ) * - + ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) + + 88 col0
----
NULL

query II rowsort
SELECT ALL + ( + + 88 ) AS col2, 41 AS col2
----
88
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2654
SELECT - - 90 + MIN( - 70 ) DIV NULLIF ( - + 9, + 69 DIV - 54 + - - 82 + + 81 ) * + + 56
----
482

skipif mysql # not compatible
query I rowsort label-2654
SELECT - - 90 + MIN ( - 70 ) / NULLIF ( - + 9, + 69 / - 54 + - - 82 + + 81 ) * + + 56
----
482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2655
SELECT - - 74 * - + ( - 27 ) + + COUNT( - - CAST( 77 AS SIGNED ) ) AS col2
----
1999

skipif mysql # not compatible
query I rowsort label-2655
SELECT - - 74 * - + ( - 27 ) + + COUNT ( - - CAST ( 77 AS INTEGER ) ) AS col2
----
1999

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2657
SELECT - CAST( NULL AS DECIMAL ) + + + 83 + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT - CAST ( NULL AS REAL ) + + + 83 + + 48
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT + - SUM( - 62 ) AS col2, 1
----
62
1

skipif mysql # not compatible
query II rowsort label-2658
SELECT + - SUM ( - 62 ) AS col2, 1
----
62
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2659
SELECT 24 * + MIN( + NULLIF ( + 63, + 71 ) ) + + AVG ( ALL CAST( NULL AS SIGNED ) ) + - MIN( 37 ), + 72 * - CASE + ( + SUM( DISTINCT + 51 ) ) WHEN 93 * + 49 THEN + 44 WHEN 4 * ( - 72 ) + - 69 THEN NULL ELSE NULL END + 37 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2659
SELECT 24 * + MIN ( + NULLIF ( + 63, + 71 ) ) + + AVG ( ALL CAST ( NULL AS INTEGER ) ) + - MIN ( 37 ), + 72 * - CASE + ( + SUM ( DISTINCT + 51 ) ) WHEN 93 * + 49 THEN + 44 WHEN 4 * ( - 72 ) + - 69 THEN NULL ELSE NULL END + 37 AS col1
----
NULL
NULL

query II rowsort
SELECT DISTINCT + NULLIF ( - - 24, - - ( - 90 ) ), 98 AS col1
----
24
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT ALL + 24 * + 52 + + COUNT( * ) + CAST( - 73 AS SIGNED ) AS col2
----
1176

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL + 24 * + 52 + + COUNT ( * ) + CAST ( - 73 AS INTEGER ) AS col2
----
1176

query I rowsort
SELECT ALL + 62 * 98 + + 69 col2
----
6145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2663
SELECT DISTINCT + COUNT( * ) * + 32 * 82 + ( - - 8 ), ( ( - + CAST( NULL AS SIGNED ) ) ) * + + COALESCE ( - COUNT( * ), + + 59 ) AS col0
----
2632
NULL

skipif mysql # not compatible
query II rowsort label-2663
SELECT DISTINCT + COUNT ( * ) * + 32 * 82 + ( - - 8 ), ( ( - + CAST ( NULL AS INTEGER ) ) ) * + + COALESCE ( - COUNT ( * ), + + 59 ) AS col0
----
2632
NULL

query I rowsort
SELECT ALL - 31 * 2 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT - 19 * - CASE 97 WHEN + 76 * - - 95 THEN 71 * + ( - 29 ) + - 32 WHEN + 80 * 86 * ( - - 24 ) * - 32 THEN + + ( - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT - 19 * - CASE 97 WHEN + 76 * - - 95 THEN 71 * + ( - 29 ) + - 32 WHEN + 80 * 86 * ( - - 24 ) * - 32 THEN + + ( - COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT + 25 + - - 80
----
105

query I rowsort
SELECT ALL 59 * 56 + + 86 col2
----
3390

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT - 89 + + 7 * - COUNT( * ) - + + 86 col0
----
-182

skipif mysql # not compatible
query I rowsort label-2668
SELECT - 89 + + 7 * - COUNT ( * ) - + + 86 col0
----
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2669
SELECT - COUNT( * ) - CAST( COALESCE ( + AVG ( - ( + 92 ) ), - - NULLIF ( + 79, - 67 + + AVG ( DISTINCT 95 ) * 56 + - - 72 ), - 69 * SUM( ALL - 40 ) ) AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-2669
SELECT - COUNT ( * ) - CAST ( COALESCE ( + AVG ( - ( + 92 ) ), - - NULLIF ( + 79, - 67 + + AVG ( DISTINCT 95 ) * 56 + - - 72 ), - 69 * SUM ( ALL - 40 ) ) AS INTEGER ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT ALL + ( + 49 ) * - 17 + 71 + + COUNT( * ) + - 88 AS col1
----
-849

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL + ( + 49 ) * - 17 + 71 + + COUNT ( * ) + - 88 AS col1
----
-849

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT DISTINCT 71 * + MIN( - 7 ) - + + 65 AS col2
----
-562

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT 71 * + MIN ( - 7 ) - + + 65 AS col2
----
-562

onlyif mysql # aggregate syntax: 
query II rowsort label-2672
SELECT + 34 * + 69 + + ( 48 ) * - - COUNT( * ), + 33 AS col2
----
2394
33

skipif mysql # not compatible
query II rowsort label-2672
SELECT + 34 * + 69 + + ( 48 ) * - - COUNT ( * ), + 33 AS col2
----
2394
33

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

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

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

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

query I rowsort
SELECT DISTINCT + ( 53 ) * 65 AS col1
----
3445

query I rowsort
SELECT + 59 * + 29 AS col2
----
1711

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT DISTINCT 46 * - MIN( 69 ) AS col0
----
-3174

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT 46 * - MIN ( 69 ) AS col0
----
-3174

onlyif mysql # aggregate syntax: 
query II rowsort label-2679
SELECT 20, COUNT( * ) * + COUNT( * ) + + 19
----
20
20

skipif mysql # not compatible
query II rowsort label-2679
SELECT 20, COUNT ( * ) * + COUNT ( * ) + + 19
----
20
20

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

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

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

query I rowsort
SELECT + 48 - - 88 - + - ( + 52 )
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT + + 17 * - 24 * + COUNT( * ) AS col0
----
-408

skipif mysql # not compatible
query I rowsort label-2683
SELECT + + 17 * - 24 * + COUNT ( * ) AS col0
----
-408

onlyif mysql # DIV for integer division: 
query I rowsort label-2684
SELECT - 31 * + 83 * + 80 + + - 87 + - 29 DIV 48 AS col2
----
-205927

skipif mysql # not compatible
query I rowsort label-2684
SELECT - 31 * + 83 * + 80 + + - 87 + - 29 / 48 AS col2
----
-205927

query I rowsort
SELECT - - 37 + + 88
----
125

query I rowsort
SELECT DISTINCT - 31 + - 45
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2687
SELECT + - CAST( COUNT( ALL 51 ) AS SIGNED ) - - 44 * - 14 * + - 76 AS col2
----
46815

skipif mysql # not compatible
query I rowsort label-2687
SELECT + - CAST ( COUNT ( ALL 51 ) AS INTEGER ) - - 44 * - 14 * + - 76 AS col2
----
46815

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2689
SELECT DISTINCT + + COUNT( * ) DIV - - 28 * - 52 + + 83 - 43 + + 1 + + 28 * 27 + 57
----
854

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT + + COUNT ( * ) / - - 28 * - 52 + + 83 - 43 + + 1 + + 28 * 27 + 57
----
854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2690
SELECT DISTINCT 75 DIV + 50 + MIN( DISTINCT + + 12 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT 75 / + 50 + MIN ( DISTINCT + + 12 ) AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT DISTINCT ( 44 ) DIV - + 33 + 34 * + 34 AS col1
----
1155

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT ( 44 ) / - + 33 + 34 * + 34 AS col1
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT ALL + MAX( ALL - - 84 ) col1
----
84

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL + MAX ( ALL - - 84 ) col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2693
SELECT + CAST( + 8 AS SIGNED ) AS col2, - COUNT( ALL + 68 ) * - - 66 + + + 93 AS col2
----
8
27

skipif mysql # not compatible
query II rowsort label-2693
SELECT + CAST ( + 8 AS INTEGER ) AS col2, - COUNT ( ALL + 68 ) * - - 66 + + + 93 AS col2
----
8
27

query II rowsort
SELECT ALL + 92, - 90 * 60 * 28 * - + 44 AS col2
----
92
6652800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT CAST( 1 AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2695
SELECT CAST ( 1 AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT - COUNT( * ) * 31 * - COUNT( * ) col0
----
31

skipif mysql # not compatible
query I rowsort label-2696
SELECT - COUNT ( * ) * 31 * - COUNT ( * ) col0
----
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2697
SELECT DISTINCT - CAST( + 62 AS SIGNED ) DIV + 83 + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT - CAST ( + 62 AS INTEGER ) / + 83 + - 8
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2698
SELECT CAST( + CASE 75 WHEN + SUM( DISTINCT - 28 ) * + 99 + 97 * - 20 THEN - 4 WHEN - 78 THEN 69 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT CAST ( + CASE 75 WHEN + SUM ( DISTINCT - 28 ) * + 99 + 97 * - 20 THEN - 4 WHEN - 78 THEN 69 END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2699
SELECT CAST( NULL AS SIGNED ), 56 + - 51 - + 26 AS col1
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-2699
SELECT CAST ( NULL AS INTEGER ), 56 + - 51 - + 26 AS col1
----
NULL
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2700
SELECT ALL 87 DIV + SUM( ALL 20 ) + + 30 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL 87 / + SUM ( ALL 20 ) + + 30 AS col1
----
34

query I rowsort
SELECT - 72 * + 55 AS col2
----
-3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2702
SELECT - MAX( 2 ) DIV + 45 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2702
SELECT - MAX ( 2 ) / + 45 * - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - 48 + + 51 * + - 65 AS col0
----
-3363

onlyif mysql # DIV for integer division: 
query II rowsort label-2704
SELECT ALL + 27 AS col0, COALESCE ( + + 85, - 39, + 70 DIV + 89 * + 63 ) + + 0
----
27
85

skipif mysql # not compatible
query II rowsort label-2704
SELECT ALL + 27 AS col0, COALESCE ( + + 85, - 39, + 70 / + 89 * + 63 ) + + 0
----
27
85

query I rowsort
SELECT ALL 93 * 72 - ( 66 )
----
6630

query II rowsort
SELECT ( - NULLIF ( 33, + - 6 ) ), 30 AS col1
----
-33
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL 42 * - - COUNT( * ) * + 97 * - 14 - + 62
----
-57098

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL 42 * - - COUNT ( * ) * + 97 * - 14 - + 62
----
-57098

query I rowsort
SELECT NULLIF ( + 21, - - 51 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT - ( + 4 ) DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2709
SELECT - ( + 4 ) / - 79 AS col0
----
0

query I rowsort
SELECT ALL + 37 * 40
----
1480

query II rowsort
SELECT ALL + ( 25 ) AS col1, + 83 AS col0
----
25
83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT DISTINCT - 51 * - ( - + MIN( 89 ) ) + 3 AS col2
----
-4536

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT - 51 * - ( - + MIN ( 89 ) ) + 3 AS col2
----
-4536

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

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

query II rowsort
SELECT DISTINCT 99 AS col1, 95
----
99
95

query II rowsort
SELECT 16, 79 AS col0
----
16
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL + COALESCE ( COUNT( * ), 22, - 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL + COALESCE ( COUNT ( * ), 22, - 90 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2718
SELECT CASE - - CASE + + 25 WHEN + 97 * ( - + 0 ) + - + 84 * - 13 + - 89 THEN - + CASE - 18 WHEN 5 THEN NULL WHEN 39 + - - 69 THEN + - NULLIF ( + + CASE 46 WHEN 84 * - 49 THEN COALESCE ( + 38, 96 / COALESCE ( + 3, - 32, 74 / - CASE 4 WHEN COUNT( * ) THEN + 9 * - 55 END + + 57 ) ) - + 80 ELSE - 68 END, 66 ) WHEN COUNT( * ) * COUNT( * ) + + 97 THEN NULL WHEN + 40 THEN NULL END WHEN - 60 * 76 THEN NULL ELSE NULL END WHEN NULLIF ( 19, 14 ) * - 19 + 51 THEN + 68 WHEN CAST( NULL AS SIGNED ) * - 74 + + 56 * + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + + 79 * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT CASE - - CASE + + 25 WHEN + 97 * ( - + 0 ) + - + 84 * - 13 + - 89 THEN - + CASE - 18 WHEN 5 THEN NULL WHEN 39 + - - 69 THEN + - NULLIF ( + + CASE 46 WHEN 84 * - 49 THEN COALESCE ( + 38, 96 / COALESCE ( + 3, - 32, 74 / - CASE 4 WHEN COUNT ( * ) THEN + 9 * - 55 END + + 57 ) ) - + 80 ELSE - 68 END, 66 ) WHEN COUNT ( * ) * COUNT ( * ) + + 97 THEN NULL WHEN + 40 THEN NULL END WHEN - 60 * 76 THEN NULL ELSE NULL END WHEN NULLIF ( 19, 14 ) * - 19 + 51 THEN + 68 WHEN CAST ( NULL AS INTEGER ) * - 74 + + 56 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + + 79 * - 55
----
NULL

query I rowsort
SELECT + 2 - - - 45
----
-43

query I rowsort
SELECT + 41 * - 10 - 81 AS col0
----
-491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2721
SELECT ALL CASE - 10 WHEN + COUNT( * ) + - COALESCE ( COUNT( 54 ), + - 71 ) THEN NULL WHEN + 8 THEN 53 END AS col2, COUNT( * ) * + 48 * - 38 * + + 76 * + COUNT( * ) * - CASE + CASE + 76 WHEN - 62 * ( COUNT( * ) ) THEN NULL WHEN - 70 + + 55 THEN 64 ELSE - 87 + COUNT( * ) END WHEN 76 + + NULLIF ( + 46, - 2 ) THEN 63 + + CAST( NULL AS SIGNED ) ELSE NULL END - 28 * 64 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2721
SELECT ALL CASE - 10 WHEN + COUNT ( * ) + - COALESCE ( COUNT ( 54 ), + - 71 ) THEN NULL WHEN + 8 THEN 53 END AS col2, COUNT ( * ) * + 48 * - 38 * + + 76 * + COUNT ( * ) * - CASE + CASE + 76 WHEN - 62 * ( COUNT ( * ) ) THEN NULL WHEN - 70 + + 55 THEN 64 ELSE - 87 + COUNT ( * ) END WHEN 76 + + NULLIF ( + 46, - 2 ) THEN 63 + + CAST ( NULL AS INTEGER ) ELSE NULL END - 28 * 64 AS col1
----
NULL
NULL

query III rowsort
SELECT - 78 AS col0, + 2 AS col0, + 41 * + - 22 + - 46 AS col0
----
-78
2
-948

query I rowsort
SELECT ALL - ( + - 15 ) + + 98 + - 64 col0
----
49

query I rowsort
SELECT + 68 + + - ( + 38 )
----
30

query I rowsort
SELECT ALL COALESCE ( + - 51, 34 ) + + 85
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2726
SELECT CAST( NULL AS SIGNED ) AS col2, 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-2726
SELECT CAST ( NULL AS INTEGER ) AS col2, 5
----
NULL
5

query I rowsort
SELECT DISTINCT - 0 + CASE 5 WHEN 17 * 43 + + 9 THEN NULL ELSE - + 80 END AS col2
----
-80

query II rowsort
SELECT ALL 65 + + 26, 58 AS col2
----
91
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - COUNT( * ) + + + NULLIF ( + 85, - AVG ( + 17 ) ) + - 76 * 49 * - - 94
----
-349972

skipif mysql # not compatible
query I rowsort label-2729
SELECT - COUNT ( * ) + + + NULLIF ( + 85, - AVG ( + 17 ) ) + - 76 * 49 * - - 94
----
-349972

query I rowsort
SELECT ALL 48 + + 93
----
141

query I rowsort
SELECT 18 + + 72 * + 60 col1
----
4338

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT + 58 * - + 24 + + 12 + + COUNT( * ) AS col0
----
-1379

skipif mysql # not compatible
query I rowsort label-2732
SELECT + 58 * - + 24 + + 12 + + COUNT ( * ) AS col0
----
-1379

query I rowsort
SELECT ALL 67 - - 25 * + 74
----
1917

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT 53 + 16 DIV - - 94 + 12 * + 63 * - 76 AS col0
----
-57403

skipif mysql # not compatible
query I rowsort label-2734
SELECT 53 + 16 / - - 94 + 12 * + 63 * - 76 AS col0
----
-57403

query II rowsort
SELECT ALL + 68 * 73, - 87 AS col2
----
4964
-87

query I rowsort
SELECT DISTINCT 89 * + 10 col2
----
890

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT 82 * - 8 * - - COUNT( * ) * COUNT( * ) * COUNT( * )
----
-656

skipif mysql # not compatible
query I rowsort label-2737
SELECT 82 * - 8 * - - COUNT ( * ) * COUNT ( * ) * COUNT ( * )
----
-656

onlyif mysql # aggregate syntax: 
query II rowsort label-2738
SELECT ALL 24 * + + 38 AS col0, - COUNT( * ) AS col2
----
912
-1

skipif mysql # not compatible
query II rowsort label-2738
SELECT ALL 24 * + + 38 AS col0, - COUNT ( * ) AS col2
----
912
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2739
SELECT 98 + + + 35 + + COUNT( * ) + - 73 * COUNT( * ) - + 1 + + - 83 DIV 94 - - 19 * - 69
----
-1251

skipif mysql # not compatible
query I rowsort label-2739
SELECT 98 + + + 35 + + COUNT ( * ) + - 73 * COUNT ( * ) - + 1 + + - 83 / 94 - - 19 * - 69
----
-1251

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT - ( + 83 ) * + 61 + + - CASE + 97 WHEN - + 23 THEN + - 54 ELSE NULL END + + 58 - - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT - ( + 83 ) * + 61 + + - CASE + 97 WHEN - + 23 THEN + - 54 ELSE NULL END + + 58 - - + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT 27 + - 89 + + + 77 AS col1
----
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT ALL + 58 * + NULLIF ( - 11, ( + 53 ) ) * + - 82 / - COUNT( ALL - ( + 61 ) ) / CASE 11 WHEN - + 90 * + CAST( + 22 AS SIGNED ) THEN 57 END / CASE + COUNT( * ) WHEN 89 THEN 50 ELSE ( 89 ) - - 81 END + - 18 / 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL + 58 * + NULLIF ( - 11, ( + 53 ) ) * + - 82 / - COUNT ( ALL - ( + 61 ) ) / CASE 11 WHEN - + 90 * + CAST ( + 22 AS INTEGER ) THEN 57 END / CASE + COUNT ( * ) WHEN 89 THEN 50 ELSE ( 89 ) - - 81 END + - 18 / 39
----
NULL

query I rowsort
SELECT - 50 * + - 2 AS col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT DISTINCT + - 34 DIV - 83 * + - 93
----
0

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + - 34 / - 83 * + - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL - 67 * - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL - 67 * - COUNT ( * )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2747
SELECT + 72 + + ( + COALESCE ( + + 91, CAST( + + 38 AS SIGNED ) * - MAX( 65 ) + - COUNT( * ), CASE WHEN NOT - MIN( DISTINCT 63 ) NOT BETWEEN NULL AND 20 + - CAST( - 2 AS DECIMAL ) THEN + + 63 ELSE NULL END ) ) * + 36 AS col2
----
3348

skipif mysql # not compatible
query I rowsort label-2747
SELECT + 72 + + ( + COALESCE ( + + 91, CAST ( + + 38 AS INTEGER ) * - MAX ( 65 ) + - COUNT ( * ), CASE WHEN NOT - MIN ( DISTINCT 63 ) NOT BETWEEN NULL AND 20 + - CAST ( - 2 AS REAL ) THEN + + 63 ELSE NULL END ) ) * + 36 AS col2
----
3348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT + CAST( - ( - - 36 ) AS SIGNED ) * + 50 + - - 48
----
-1752

skipif mysql # not compatible
query I rowsort label-2748
SELECT + CAST ( - ( - - 36 ) AS INTEGER ) * + 50 + - - 48
----
-1752

query I rowsort
SELECT ALL + ( - 46 ) + 70
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2750
SELECT NULLIF ( + 26, NULLIF ( - + 68, + + 96 - - ( + 73 ) ) ) DIV - 44 + - 26 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2750
SELECT NULLIF ( + 26, NULLIF ( - + 68, + + 96 - - ( + 73 ) ) ) / - 44 + - 26 AS col1
----
-26

query I rowsort
SELECT ( - 92 ) + - + 33
----
-125

query I rowsort
SELECT 75 * - + 49 AS col1
----
-3675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2753
SELECT ALL + CAST( - - COUNT( DISTINCT - 37 ) AS SIGNED ) + + - 29 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL + CAST ( - - COUNT ( DISTINCT - 37 ) AS INTEGER ) + + - 29 AS col0
----
-28

query I rowsort
SELECT NULLIF ( - NULLIF ( + 37, - 67 + - 84 ), 19 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2755
SELECT ALL + 45 + + 57 * - - SUM( + 73 ) * + - COALESCE ( + 89, + 20 DIV + 93 + + COUNT( * ), + COALESCE ( + + 39, 39 DIV 69 ) ) * + 10 - - - ( 10 )
----
-3703255

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + 45 + + 57 * - - SUM ( + 73 ) * + - COALESCE ( + 89, + 20 / + 93 + + COUNT ( * ), + COALESCE ( + + 39, 39 / 69 ) ) * + 10 - - - ( 10 )
----
-3703255

onlyif mysql # aggregate syntax: 
query II rowsort label-2756
SELECT DISTINCT + 23 + + 97 AS col2, - 86 + - - COUNT( * )
----
120
-85

skipif mysql # not compatible
query II rowsort label-2756
SELECT DISTINCT + 23 + + 97 AS col2, - 86 + - - COUNT ( * )
----
120
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT ALL + 90 + - 76 DIV 48
----
89

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL + 90 + - 76 / 48
----
89

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

query I rowsort
SELECT ALL + 72 - + 24
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2760
SELECT 47 - + 59 * COUNT( * ) + SUM( + 43 ) + + ( - CAST( NULL AS SIGNED ) ) + 91 AS col0, 19 + - 45 AS col2
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-2760
SELECT 47 - + 59 * COUNT ( * ) + SUM ( + 43 ) + + ( - CAST ( NULL AS INTEGER ) ) + 91 AS col0, 19 + - 45 AS col2
----
NULL
-26

query II rowsort
SELECT 78, 80 AS col0
----
78
80

query I rowsort
SELECT ALL 43 * - 49
----
-2107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2763
SELECT ALL + CASE + 92 WHEN - + COUNT( * ) THEN + CAST( + MIN( 9 ) AS SIGNED ) DIV 85 - - + COUNT( * ) WHEN - 42 * - 80 DIV - 93 - + ( 43 ) DIV + - 6 THEN - - 14 ELSE 3 END * - - ( 29 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + CASE + 92 WHEN - + COUNT ( * ) THEN + CAST ( + MIN ( 9 ) AS INTEGER ) / 85 - - + COUNT ( * ) WHEN - 42 * - 80 / - 93 - + ( 43 ) / + - 6 THEN - - 14 ELSE 3 END * - - ( 29 ) AS col1
----
87

query I rowsort
SELECT + 35 * + 22 + - 56 + - 14 * - ( + 46 ) AS col2
----
1358

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL 47 * - + 69 - + + ( - - COUNT( DISTINCT - + 54 ) ) - - COUNT( + - 12 ) + + - 82 * 77 AS col1
----
-9557

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL 47 * - + 69 - + + ( - - COUNT ( DISTINCT - + 54 ) ) - - COUNT ( + - 12 ) + + - 82 * 77 AS col1
----
-9557

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT CASE 91 WHEN - 72 THEN + + COUNT( * ) WHEN COUNT( * ) THEN - - 74 + + ( 78 ) * + + 34 WHEN CASE + + 4 WHEN - 74 THEN NULL WHEN - 49 + + - NULLIF ( + - 0, - CASE + 43 WHEN + - 27 * - CASE - CASE 2 WHEN 96 / - COUNT( * ) THEN 45 END - - 10 WHEN - NULLIF ( + 3, - 29 ) * ( + 26 ) - AVG ( 22 ) THEN NULL ELSE + 1 + MAX( + 92 ) END THEN 20 END * + 53 ) THEN - 74 ELSE ( + MAX( ALL - 25 ) ) * - 90 END THEN - 41 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT CASE 91 WHEN - 72 THEN + + COUNT ( * ) WHEN COUNT ( * ) THEN - - 74 + + ( 78 ) * + + 34 WHEN CASE + + 4 WHEN - 74 THEN NULL WHEN - 49 + + - NULLIF ( + - 0, - CASE + 43 WHEN + - 27 * - CASE - CASE 2 WHEN 96 / - COUNT ( * ) THEN 45 END - - 10 WHEN - NULLIF ( + 3, - 29 ) * ( + 26 ) - AVG ( 22 ) THEN NULL ELSE + 1 + MAX ( + 92 ) END THEN 20 END * + 53 ) THEN - 74 ELSE ( + MAX ( ALL - 25 ) ) * - 90 END THEN - 41 END AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 73, - + AVG ( - 1 ) )
----
73

query I rowsort
SELECT ALL 66 * 68 - - 12 AS col0
----
4500

query I rowsort
SELECT 82 * 88
----
7216

query I rowsort
SELECT 53 * + 11 AS col2
----
583

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT + 84 DIV + 29 - + 93
----
-91

skipif mysql # not compatible
query I rowsort label-2771
SELECT + 84 / + 29 - + 93
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT SUM( ALL 69 ) col1
----
69

skipif mysql # not compatible
query I rowsort label-2772
SELECT SUM ( ALL 69 ) col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2773
SELECT + 71 - + 87 + - COALESCE ( MIN( ALL - 51 ), - 61 + + CAST( NULL AS SIGNED ) ) * - - COUNT( * ) + 84 + + + 49 + - 75 * + + CAST( NULL AS DECIMAL ) * 41 * - + 3 * - ( 90 ) / - - 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT + 71 - + 87 + - COALESCE ( MIN ( ALL - 51 ), - 61 + + CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) + 84 + + + 49 + - 75 * + + CAST ( NULL AS REAL ) * 41 * - + 3 * - ( 90 ) / - - 20 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT ALL 77 DIV - 1 col0
----
-77

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL 77 / - 1 col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT + 89 * 59 * + 75 * COUNT( * ) AS col2
----
393825

skipif mysql # not compatible
query I rowsort label-2775
SELECT + 89 * 59 * + 75 * COUNT ( * ) AS col2
----
393825

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT MAX( ALL 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2776
SELECT MAX ( ALL 2 ) AS col0
----
2

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

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

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

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

query I rowsort
SELECT + COALESCE ( + ( - 76 ), 88 * + 57, - 74, + 32 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT 21 * - NULLIF ( - - 67, 58 / + 22 * + + COUNT( * ) ) + 79
----
-1328

skipif mysql # not compatible
query I rowsort label-2780
SELECT 21 * - NULLIF ( - - 67, 58 / + 22 * + + COUNT ( * ) ) + 79
----
-1328

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT + - SUM( DISTINCT - 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-2781
SELECT + - SUM ( DISTINCT - 73 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL CASE + 7 WHEN + + 68 THEN 95 WHEN - + COUNT( * ) THEN COUNT( * ) END + + - 97 + - ( + + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL CASE + 7 WHEN + + 68 THEN 95 WHEN - + COUNT ( * ) THEN COUNT ( * ) END + + - 97 + - ( + + 78 )
----
NULL

query II rowsort
SELECT ALL + 69 col2, 70
----
69
70

query I rowsort
SELECT NULLIF ( + 26, + 59 + - - 97 - 78 + - 42 + + - 9 / + + 2 ) AS col0
----
26

query I rowsort
SELECT + - 55 + + 40 AS col1
----
-15

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( 82, + + 24 - + 78, + 10 * + ( + ( 8 ) ) + + - 87 ) AS col2
----
-82

query I rowsort
SELECT ALL - - ( + - 58 ) + - 74 + - ( + 27 )
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT + + CASE - 51 WHEN 41 + + - CAST( NULLIF ( + 3, - ( - - 83 ) ) AS SIGNED ) THEN - - 4 END + + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT + + CASE - 51 WHEN 41 + + - CAST ( NULLIF ( + 3, - ( - - 83 ) ) AS INTEGER ) THEN - - 4 END + + + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT ALL - 74 + + 93 * - + ( - - MIN( DISTINCT + 90 ) ) * - COUNT( * ) - - + 54 + + MIN( + + 59 )
----
8409

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - 74 + + 93 * - + ( - - MIN ( DISTINCT + 90 ) ) * - COUNT ( * ) - - + 54 + + MIN ( + + 59 )
----
8409

query I rowsort
SELECT - 61 * 22 + + 7 AS col1
----
-1335

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

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

query I rowsort
SELECT ALL - - 81 * - 9
----
-729

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL - 25 + + 77 + - 55 + - - COALESCE ( + - 36, MAX( 14 ) ) * + 82
----
-2955

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL - 25 + + 77 + - 55 + - - COALESCE ( + - 36, MAX ( 14 ) ) * + 82
----
-2955

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2795
SELECT - 86 * COALESCE ( - 61, 12, - COALESCE ( - + 37, COUNT( * ), 34 ) DIV + 63, 68 )
----
5246

skipif mysql # not compatible
query I rowsort label-2795
SELECT - 86 * COALESCE ( - 61, 12, - COALESCE ( - + 37, COUNT ( * ), 34 ) / + 63, 68 )
----
5246

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2797
SELECT - NULLIF ( 68, + 74 ) - + 4 - + 30 - - - COUNT( * ) * 40 * 4 DIV 69 * - MAX( ALL - 88 ) * - 89 * - CAST( + - 56 AS SIGNED ) - - + 92 * - 27 * + 87
----
660974

skipif mysql # not compatible
query I rowsort label-2797
SELECT - NULLIF ( 68, + 74 ) - + 4 - + 30 - - - COUNT ( * ) * 40 * 4 / 69 * - MAX ( ALL - 88 ) * - 89 * - CAST ( + - 56 AS INTEGER ) - - + 92 * - 27 * + 87
----
660974

query II rowsort
SELECT - 13 + + - 32 * + 3 + + 2 * 2 * 72 col0, 79 * + - 29 AS col0
----
179
-2291

onlyif mysql # aggregate syntax: 
query II rowsort label-2799
SELECT ALL - SUM( DISTINCT + COALESCE ( 74, 2, 67 ) ) - - 54 AS col1, + 68
----
-20
68

skipif mysql # not compatible
query II rowsort label-2799
SELECT ALL - SUM ( DISTINCT + COALESCE ( 74, 2, 67 ) ) - - 54 AS col1, + 68
----
-20
68

query I rowsort
SELECT - 3 * + ( 22 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT DISTINCT NULLIF ( - CASE 98 WHEN + 16 THEN + 80 / + MIN( - 9 ) + - + 86 + + 62 - + - NULLIF ( 62, - 14 + - - 27 ) * + + 73 WHEN - - 33 * + 42 * 48 * - - 9 * + 42 + 0 THEN NULL ELSE NULL END, + 81 - 0 * 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT NULLIF ( - CASE 98 WHEN + 16 THEN + 80 / + MIN ( - 9 ) + - + 86 + + 62 - + - NULLIF ( 62, - 14 + - - 27 ) * + + 73 WHEN - - 33 * + 42 * 48 * - - 9 * + 42 + 0 THEN NULL ELSE NULL END, + 81 - 0 * 51 )
----
NULL

query I rowsort
SELECT ALL ( 3 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2803
SELECT DISTINCT + 58 - - 28 AS col2, ( 91 ) + + COUNT( * ) + + 45
----
86
137

skipif mysql # not compatible
query II rowsort label-2803
SELECT DISTINCT + 58 - - 28 AS col2, ( 91 ) + + COUNT ( * ) + + 45
----
86
137

query II rowsort
SELECT DISTINCT + 86 * 63 AS col1, 16
----
5418
16

query I rowsort
SELECT - ( - 84 ) + + 23 AS col2
----
107

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2807
SELECT - CAST( NULL AS SIGNED ) * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT - CAST ( NULL AS INTEGER ) * 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT - COUNT( * ) + SUM( 43 ) + - - 67 * + 78 AS col0
----
5268

skipif mysql # not compatible
query I rowsort label-2808
SELECT - COUNT ( * ) + SUM ( 43 ) + - - 67 * + 78 AS col0
----
5268

query I rowsort
SELECT DISTINCT ( 9 ) AS col1
----
9

query I rowsort
SELECT - 7 * + 43
----
-301

onlyif mysql # aggregate syntax: 
query II rowsort label-2811
SELECT + 13 * - + 64, MAX( DISTINCT + 33 ) AS col1
----
-832
33

skipif mysql # not compatible
query II rowsort label-2811
SELECT + 13 * - + 64, MAX ( DISTINCT + 33 ) AS col1
----
-832
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2812
SELECT - 18 DIV - - CASE CAST( NULL AS DECIMAL ) WHEN + CAST( + + COALESCE ( + 90, - 16 ) AS SIGNED ) + 8 + + COUNT( * ) DIV - MAX( + 30 ) THEN NULL ELSE 4 END + 90 + 95, - 93 AS col0
----
181
-93

skipif mysql # not compatible
query II rowsort label-2812
SELECT - 18 / - - CASE CAST ( NULL AS REAL ) WHEN + CAST ( + + COALESCE ( + 90, - 16 ) AS INTEGER ) + 8 + + COUNT ( * ) / - MAX ( + 30 ) THEN NULL ELSE 4 END + 90 + 95, - 93 AS col0
----
181
-93

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

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL + ( CAST ( - 98 AS INTEGER ) ) AS col1
----
-98

query I rowsort
SELECT DISTINCT - 23 * - ( + 11 ) AS col1
----
253

query II rowsort
SELECT ALL 71 * + 86 AS col2, - 39
----
6106
-39

query I rowsort
SELECT - 77 + 7 + - 41 + - + 5 * - 64 + + 71 col1
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT DISTINCT - 33 * - 19 * NULLIF ( + 97, + - COUNT( + 15 ) )
----
60819

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT - 33 * - 19 * NULLIF ( + 97, + - COUNT ( + 15 ) )
----
60819

query I rowsort
SELECT DISTINCT 88 * - + 80 * - + 81 AS col1
----
570240

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT DISTINCT + 61 * + - NULLIF ( + 23, 72 ) + COUNT( * ) AS col1
----
-1402

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT + 61 * + - NULLIF ( + 23, 72 ) + COUNT ( * ) AS col1
----
-1402

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT + 29 DIV 7 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2820
SELECT + 29 / 7 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL 11 * + 45 + - - 48 * + - 78 * SUM( ALL + 22 )
----
-81873

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL 11 * + 45 + - - 48 * + - 78 * SUM ( ALL + 22 )
----
-81873

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2822
SELECT DISTINCT 30 * 63 DIV - CAST( + 38 AS SIGNED ) + + 27 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT 30 * 63 / - CAST ( + 38 AS INTEGER ) + + 27 AS col2
----
-22

query I rowsort
SELECT + 68 + - 89 + - 32 col0
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-2824
SELECT DISTINCT + 48 DIV + - 68 AS col1, 90
----
0
90

skipif mysql # not compatible
query II rowsort label-2824
SELECT DISTINCT + 48 / + - 68 AS col1, 90
----
0
90

query I rowsort
SELECT + 25 * + 38
----
950

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL - 15 * + 24 + COUNT( * )
----
-359

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL - 15 * + 24 + COUNT ( * )
----
-359

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2827
SELECT + - 9 DIV COUNT( ALL 73 ) + - + 7 col0, - COUNT( * ) * + + 47
----
-16
-47

skipif mysql # not compatible
query II rowsort label-2827
SELECT + - 9 / COUNT ( ALL 73 ) + - + 7 col0, - COUNT ( * ) * + + 47
----
-16
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2828
SELECT ALL + NULLIF ( - + 72, 89 + - + 80 + - 70 ) AS col0, - COUNT( * ) AS col0
----
-72
-1

skipif mysql # not compatible
query II rowsort label-2828
SELECT ALL + NULLIF ( - + 72, 89 + - + 80 + - 70 ) AS col0, - COUNT ( * ) AS col0
----
-72
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT ALL + 74 * 16 + - 45 + + COALESCE ( + 13, + 52 + + - ( 77 ), - 19 + - 31 ) DIV - 96
----
1139

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + 74 * 16 + - 45 + + COALESCE ( + 13, + 52 + + - ( 77 ), - 19 + - 31 ) / - 96
----
1139

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2831
SELECT DISTINCT + ( - AVG ( DISTINCT 43 ) ) * - CAST( NULL AS SIGNED ) * 60 - + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + ( - AVG ( DISTINCT 43 ) ) * - CAST ( NULL AS INTEGER ) * 60 - + 79 AS col0
----
NULL

query I rowsort
SELECT 68 * 96 + 98 * 31 AS col2
----
9566

query I rowsort
SELECT + + 57 * 37 * + - 49
----
-103341

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT - ( - SUM( - 22 ) ) + + + ( - + COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-2834
SELECT - ( - SUM ( - 22 ) ) + + + ( - + COUNT ( * ) )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2835
SELECT + + 8 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2835
SELECT + + 8 / 97 AS col1
----
0

query II rowsort
SELECT ALL + 2 * 15, + 99 AS col2
----
30
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2837
SELECT ALL CASE + 61 WHEN - - ( - + 12 ) THEN NULL WHEN + + 90 THEN - - NULLIF ( + - COUNT( * ), - + 21 ) ELSE NULL END AS col1, + 3 AS col2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2837
SELECT ALL CASE + 61 WHEN - - ( - + 12 ) THEN NULL WHEN + + 90 THEN - - NULLIF ( + - COUNT ( * ), - + 21 ) ELSE NULL END AS col1, + 3 AS col2
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2838
SELECT DISTINCT - 27 DIV - 92 DIV + 1, CASE - 53 WHEN + COUNT( * ) THEN NULL WHEN - 70 THEN NULL WHEN + ( - COUNT( * ) ) + + 82 + + 8 THEN NULL ELSE + COALESCE ( + + 6, + 53 * - 39 * + - 12 * 58 + 69 ) END * - 49 + CAST( NULL AS SIGNED ) + 2 AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2838
SELECT DISTINCT - 27 / - 92 / + 1, CASE - 53 WHEN + COUNT ( * ) THEN NULL WHEN - 70 THEN NULL WHEN + ( - COUNT ( * ) ) + + 82 + + 8 THEN NULL ELSE + COALESCE ( + + 6, + 53 * - 39 * + - 12 * 58 + 69 ) END * - 49 + CAST ( NULL AS INTEGER ) + 2 AS col0
----
0
NULL

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

query I rowsort
SELECT ALL - 9 - - 58 col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT - COUNT( * ) * - + 19 * - 96
----
-1824

skipif mysql # not compatible
query I rowsort label-2841
SELECT - COUNT ( * ) * - + 19 * - 96
----
-1824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2842
SELECT ALL 49 DIV COUNT( * ) * 10
----
490

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL 49 / COUNT ( * ) * 10
----
490

query I rowsort
SELECT DISTINCT - 0 * - + 30
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT DISTINCT 66 DIV NULLIF ( + 94, + + 81 + - 53 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT 66 / NULLIF ( + 94, + + 81 + - 53 ) AS col2
----
0

query I rowsort
SELECT + 90 + + 11 + + 53 * - - 87 AS col2
----
4712

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL + 9 * + + 60 * SUM( ALL 6 ) AS col0
----
3240

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + 9 * + + 60 * SUM ( ALL 6 ) AS col0
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT 98 + - MAX( ALL - 45 )
----
143

skipif mysql # not compatible
query I rowsort label-2847
SELECT 98 + - MAX ( ALL - 45 )
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2848
SELECT 7 * + - MAX( ALL 62 ) * 54 * CAST( - - 61 AS SIGNED ) * + CASE - 40 WHEN + 18 THEN + 97 * - 12 * - 58 WHEN - + 62 + + 70 + - - 50 * + 73 + - + 59 THEN + COUNT( 44 ) ELSE + 26 END AS col1
----
-37169496

skipif mysql # not compatible
query I rowsort label-2848
SELECT 7 * + - MAX ( ALL 62 ) * 54 * CAST ( - - 61 AS INTEGER ) * + CASE - 40 WHEN + 18 THEN + 97 * - 12 * - 58 WHEN - + 62 + + 70 + - - 50 * + 73 + - + 59 THEN + COUNT ( 44 ) ELSE + 26 END AS col1
----
-37169496

query I rowsort
SELECT 81 - - 95
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2850
SELECT ALL 65 * COALESCE ( CAST( - - 87 AS SIGNED ), - - 74 * + 56 * - + 59, - 83 )
----
5655

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL 65 * COALESCE ( CAST ( - - 87 AS INTEGER ), - - 74 * + 56 * - + 59, - 83 )
----
5655

onlyif mysql # DIV for integer division: 
query I rowsort label-2851
SELECT 88 DIV - 27
----
-3

skipif mysql # not compatible
query I rowsort label-2851
SELECT 88 / - 27
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT 91 - + CAST( NULL AS SIGNED ) + + AVG ( ALL - 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT 91 - + CAST ( NULL AS INTEGER ) + + AVG ( ALL - 96 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 37 + 95 AS col0
----
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT ALL + COUNT( * ) + - NULLIF ( - 43, + COUNT( * ) + + + ( + + 16 ) ) * + 90
----
3871

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + COUNT ( * ) + - NULLIF ( - 43, + COUNT ( * ) + + + ( + + 16 ) ) * + 90
----
3871

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

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

query I rowsort
SELECT 87 * + 9 AS col2
----
783

onlyif mysql # aggregate syntax: 
query II rowsort label-2858
SELECT 23 * COUNT( 86 ), - 22 AS col1
----
23
-22

skipif mysql # not compatible
query II rowsort label-2858
SELECT 23 * COUNT ( 86 ), - 22 AS col1
----
23
-22

query I rowsort
SELECT DISTINCT - 68 + - + 36 AS col0
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2860
SELECT DISTINCT - - COALESCE ( 67, + COALESCE ( + ( + - 65 ), - 92 * CAST( + 14 AS SIGNED ) + + 14 + + SUM( DISTINCT - - 20 ), - 46 ) )
----
67

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT - - COALESCE ( 67, + COALESCE ( + ( + - 65 ), - 92 * CAST ( + 14 AS INTEGER ) + + 14 + + SUM ( DISTINCT - - 20 ), - 46 ) )
----
67

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

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

query I rowsort
SELECT ALL - 19 + - 52
----
-71

query I rowsort
SELECT DISTINCT - - 48 + 2 * - + 55
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2864
SELECT ALL - CAST( 53 AS SIGNED ) * COUNT( * ) * + 9 AS col0
----
-477

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL - CAST ( 53 AS INTEGER ) * COUNT ( * ) * + 9 AS col0
----
-477

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2865
SELECT ALL + - 73 - + 95 * + 16, - 15 DIV COUNT( * ) AS col0
----
-1593
-15

skipif mysql # not compatible
query II rowsort label-2865
SELECT ALL + - 73 - + 95 * + 16, - 15 / COUNT ( * ) AS col0
----
-1593
-15

query I rowsort
SELECT DISTINCT + 25 - - 20 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT DISTINCT - MAX( DISTINCT + ( - CASE + COALESCE ( + 52, + + 13 ) WHEN + 3 * - 76 THEN NULL WHEN - + 34 - 26 - + 74 THEN NULL ELSE + - 32 + + 9 * + 1 END ) ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT - MAX ( DISTINCT + ( - CASE + COALESCE ( + 52, + + 13 ) WHEN + 3 * - 76 THEN NULL WHEN - + 34 - 26 - + 74 THEN NULL ELSE + - 32 + + 9 * + 1 END ) ) col2
----
-23

query I rowsort
SELECT - + 6 * - 48 + + + 34 + - - 45 * + + 12 * - + 81 * ( + 34 ) AS col1
----
-1486838

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT ( MAX( DISTINCT + 55 ) ) * + 96 AS col1
----
5280

skipif mysql # not compatible
query I rowsort label-2869
SELECT ( MAX ( DISTINCT + 55 ) ) * + 96 AS col1
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT + COUNT( * ) * - ( - - COALESCE ( - COUNT( * ), 91 ) ) + + + 22 * 96 AS col1
----
2113

skipif mysql # not compatible
query I rowsort label-2870
SELECT + COUNT ( * ) * - ( - - COALESCE ( - COUNT ( * ), 91 ) ) + + + 22 * 96 AS col1
----
2113

query I rowsort
SELECT ( - - 65 ) * - 23 col0
----
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL + 42 / + + CASE 31 WHEN - 81 THEN + MAX( 64 ) END * 89 - - 62 + + - 82 - - - 51 + 7 + - 58 + + - COUNT( * ) * + + 18 / + + COUNT( * ) - SUM( ALL 20 ) + - CASE - 32 WHEN COUNT( * ) * 74 THEN - 89 END + - 5 * 21 * 43 * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + 42 / + + CASE 31 WHEN - 81 THEN + MAX ( 64 ) END * 89 - - 62 + + - 82 - - - 51 + 7 + - 58 + + - COUNT ( * ) * + + 18 / + + COUNT ( * ) - SUM ( ALL 20 ) + - CASE - 32 WHEN COUNT ( * ) * 74 THEN - 89 END + - 5 * 21 * 43 * 93
----
NULL

query I rowsort
SELECT - 35 + + 37
----
2

query I rowsort
SELECT 22 + - 52
----
-30

query II rowsort
SELECT ALL 88 * + - 52 * + + 1 AS col2, NULLIF ( 97, 85 )
----
-4576
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT 76 + SUM( DISTINCT - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-2877
SELECT 76 + SUM ( DISTINCT - 38 )
----
38

query I rowsort
SELECT ALL 8 * - 27
----
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-2879
SELECT MAX( DISTINCT - 40 ) - + NULLIF ( + 1, + - 32 / + 83 ) - + CASE + + 10 WHEN + COUNT( * ) + + 26 + - 3 * - 46 * - 94 / - + 69 THEN 92 END + 53, 11 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-2879
SELECT MAX ( DISTINCT - 40 ) - + NULLIF ( + 1, + - 32 / + 83 ) - + CASE + + 10 WHEN + COUNT ( * ) + + 26 + - 3 * - 46 * - 94 / - + 69 THEN 92 END + 53, 11 AS col0
----
NULL
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2880
SELECT CAST( - - COUNT( * ) AS SIGNED ) + - COUNT( + - 37 ) + - 10 + + + 15 + + + 34 - - SUM( - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2880
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) + - COUNT ( + - 37 ) + - 10 + + + 15 + + + 34 - - SUM ( - CAST ( NULL AS INTEGER ) ) col1
----
NULL

query II rowsort
SELECT - 96 AS col2, 42
----
-96
42

query I rowsort
SELECT COALESCE ( 53, + 86 * - 76 ) + - 19 AS col1
----
34

query I rowsort
SELECT 7 * - 71 AS col2
----
-497

query I rowsort
SELECT DISTINCT 95 + + 92 AS col2
----
187

query I rowsort
SELECT ALL 54 + + - 96 * + - 67 + + + 21 + + 75
----
6582

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT 81 + - COUNT( * ) + + 34
----
114

skipif mysql # not compatible
query I rowsort label-2886
SELECT 81 + - COUNT ( * ) + + 34
----
114

query II rowsort
SELECT ALL 6, NULLIF ( 36, - - NULLIF ( - 11, ( + 81 ) ) ) AS col0
----
6
36

query II rowsort
SELECT DISTINCT 24 + - CASE 38 WHEN - 81 THEN + 41 WHEN - ( - 73 ) + + 56 + - 20 - 74 THEN NULL WHEN - 95 THEN + 52 / - + 44 + 13 * - - 27 END + - 96 AS col1, + COALESCE ( 71, + 65 + - 54 * - 7 )
----
NULL
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2889
SELECT ALL + MAX( - 76 ) DIV - 37 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL + MAX ( - 76 ) / - 37 AS col2
----
2

query I rowsort
SELECT DISTINCT - 24 + - 90 AS col1
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2891
SELECT ALL 18 + - + COUNT( * ), + CASE + 91 WHEN ( - - 24 ) THEN NULL WHEN CAST( + 89 AS SIGNED ) * 60 THEN + + 14 * + 7 END AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-2891
SELECT ALL 18 + - + COUNT ( * ), + CASE + 91 WHEN ( - - 24 ) THEN NULL WHEN CAST ( + 89 AS INTEGER ) * 60 THEN + + 14 * + 7 END AS col2
----
17
NULL

query I rowsort
SELECT DISTINCT + ( 17 ) * - 7 AS col2
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) AS col1
----
0

query II rowsort
SELECT 4 AS col0, 16 * + 51
----
4
816

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2896
SELECT - 25 col1, MIN( ALL 30 ) * 31 AS col0
----
-25
930

skipif mysql # not compatible
query II rowsort label-2896
SELECT - 25 col1, MIN ( ALL 30 ) * 31 AS col0
----
-25
930

query I rowsort
SELECT 26 + - 83 * + 83 AS col2
----
-6863

query II rowsort
SELECT ALL - 61 AS col0, - 9 * 94
----
-61
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT ALL - 46 * - - 72 + + 43 + SUM( 93 )
----
-3176

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - 46 * - - 72 + + 43 + SUM ( 93 )
----
-3176

query II rowsort
SELECT 2, + 28 AS col1
----
2
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT - 42 * - - 56 + + COUNT( * ) col0
----
-2351

skipif mysql # not compatible
query I rowsort label-2901
SELECT - 42 * - - 56 + + COUNT ( * ) col0
----
-2351

query II rowsort
SELECT ALL - 85 AS col0, 65 AS col1
----
-85
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT DISTINCT - - SUM( 31 )
----
31

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT - - SUM ( 31 )
----
31

query I rowsort
SELECT DISTINCT - - 9 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT - 66 + + 4 + + + COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2905
SELECT - 66 + + 4 + + + COUNT ( * ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT 98 * - ( COUNT( * ) ) * + 18
----
-1764

skipif mysql # not compatible
query I rowsort label-2906
SELECT 98 * - ( COUNT ( * ) ) * + 18
----
-1764

query II rowsort
SELECT ALL - - 49 AS col1, 45
----
49
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2908
SELECT + - 44, SUM( CAST( - + 53 AS SIGNED ) ) AS col1
----
-44
-53

skipif mysql # not compatible
query II rowsort label-2908
SELECT + - 44, SUM ( CAST ( - + 53 AS INTEGER ) ) AS col1
----
-44
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2909
SELECT ALL - - 93, CAST( COUNT( * ) AS SIGNED ) AS col2
----
93
1

skipif mysql # not compatible
query II rowsort label-2909
SELECT ALL - - 93, CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
93
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT + COUNT( * ) AS col1, + 87 - + - 74 AS col2
----
1
161

skipif mysql # not compatible
query II rowsort label-2910
SELECT + COUNT ( * ) AS col1, + 87 - + - 74 AS col2
----
1
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT ALL - - CASE 58 WHEN + 19 THEN - + 0 WHEN + - CAST( NULL AS SIGNED ) THEN 69 + + - 20 + - 5 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL - - CASE 58 WHEN + 19 THEN - + 0 WHEN + - CAST ( NULL AS INTEGER ) THEN 69 + + - 20 + - 5 END col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2912
SELECT DISTINCT - - 81 AS col0, 9 DIV + + 6
----
81
1

skipif mysql # not compatible
query II rowsort label-2912
SELECT DISTINCT - - 81 AS col0, 9 / + + 6
----
81
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT - ( - 86 ) DIV + 12 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2913
SELECT - ( - 86 ) / + 12 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL COUNT( 81 ) + + - 70
----
-69

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL COUNT ( 81 ) + + - 70
----
-69

onlyif mysql # aggregate syntax: 
query III rowsort label-2915
SELECT + 49 * - + 15, 15 AS col2, - ( + SUM( 79 ) ) AS col1
----
-735
15
-79

skipif mysql # not compatible
query III rowsort label-2915
SELECT + 49 * - + 15, 15 AS col2, - ( + SUM ( 79 ) ) AS col1
----
-735
15
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2916
SELECT ALL 54 + 5 - - 61 AS col2, - CASE - - COUNT( * ) WHEN - 89 THEN - - 14 * - - 25 + - COALESCE ( + - 61, - 36 * + 62 ) * - CAST( + + 31 AS SIGNED ) + 15 * + MIN( + 72 ) WHEN 90 THEN + 40 END + 4 col2
----
120
NULL

skipif mysql # not compatible
query II rowsort label-2916
SELECT ALL 54 + 5 - - 61 AS col2, - CASE - - COUNT ( * ) WHEN - 89 THEN - - 14 * - - 25 + - COALESCE ( + - 61, - 36 * + 62 ) * - CAST ( + + 31 AS INTEGER ) + 15 * + MIN ( + 72 ) WHEN 90 THEN + 40 END + 4 col2
----
120
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT DISTINCT COALESCE ( + CASE + + MAX( DISTINCT - NULLIF ( 9, - 55 ) ) WHEN + + 96 THEN - COUNT( * ) - - 7 WHEN + 20 * ( 19 ) * + 6 + + COUNT( - 8 ) THEN 70 END, 76 * + + 2 ) + - 66 + - - ( 31 ) + - + NULLIF ( - 69, - AVG ( ALL + 50 ) ) * 92 AS col2
----
6465

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT COALESCE ( + CASE + + MAX ( DISTINCT - NULLIF ( 9, - 55 ) ) WHEN + + 96 THEN - COUNT ( * ) - - 7 WHEN + 20 * ( 19 ) * + 6 + + COUNT ( - 8 ) THEN 70 END, 76 * + + 2 ) + - 66 + - - ( 31 ) + - + NULLIF ( - 69, - AVG ( ALL + 50 ) ) * 92 AS col2
----
6465

onlyif mysql # DIV for integer division: 
query I rowsort label-2918
SELECT ALL - 92 DIV 55
----
-1

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL - 92 / 55
----
-1

query I rowsort
SELECT DISTINCT + 37 + - 18 * 46
----
-791

query I rowsort
SELECT ALL 48 * 85
----
4080

query I rowsort
SELECT + 13 * - 94
----
-1222

onlyif mysql # aggregate syntax: 
query II rowsort label-2922
SELECT ALL + 19 + - + 81 + - 82 AS col2, 7 * MIN( + 8 )
----
-144
56

skipif mysql # not compatible
query II rowsort label-2922
SELECT ALL + 19 + - + 81 + - 82 AS col2, 7 * MIN ( + 8 )
----
-144
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT DISTINCT NULLIF ( + - SUM( DISTINCT + + ( + 46 ) ), - 24 * - 5 * - 45 )
----
-46

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT NULLIF ( + - SUM ( DISTINCT + + ( + 46 ) ), - 24 * - 5 * - 45 )
----
-46

query II rowsort
SELECT - 0 + + - 11, - 86 * - 37 AS col2
----
-11
3182

query I rowsort
SELECT - NULLIF ( - 72, + - ( - ( + - 55 ) ) * 22 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2926
SELECT + 82 * - 4, 50 * + CAST( - SUM( DISTINCT + - 60 ) AS SIGNED ) AS col0
----
-328
3000

skipif mysql # not compatible
query II rowsort label-2926
SELECT + 82 * - 4, 50 * + CAST ( - SUM ( DISTINCT + - 60 ) AS INTEGER ) AS col0
----
-328
3000

query I rowsort
SELECT + 0 + + 60
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2928
SELECT DISTINCT COALESCE ( - - 19, NULLIF ( + 86, 68 ) + 99 ) * 27 + - 45 + ( + 6 ) DIV - - 46 + 5 AS col0
----
473

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT COALESCE ( - - 19, NULLIF ( + 86, 68 ) + 99 ) * 27 + - 45 + ( + 6 ) / - - 46 + 5 AS col0
----
473

query I rowsort
SELECT ALL 65 - - 17 + + 38 AS col0
----
120

query I rowsort
SELECT + 78 - 19
----
59

query I rowsort
SELECT - - 64 col1
----
64

query I rowsort
SELECT + 92 + + - 19
----
73

query I rowsort
SELECT ALL - + 49 * 83 - + - 23
----
-4044

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT + - 47 * + 97 * ( + 76 ) * - COUNT( * ) * - - 29 AS col0
----
10048036

skipif mysql # not compatible
query I rowsort label-2934
SELECT + - 47 * + 97 * ( + 76 ) * - COUNT ( * ) * - - 29 AS col0
----
10048036

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT + + MAX( ALL 65 ) + 49 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-2935
SELECT + + MAX ( ALL 65 ) + 49 AS col0
----
114

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT DISTINCT + 8 * - + COALESCE ( - 66, - 94 * + COUNT( * ) )
----
528

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT + 8 * - + COALESCE ( - 66, - 94 * + COUNT ( * ) )
----
528

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2938
SELECT - - 97 - 6 + - NULLIF ( - + CAST( NULL AS SIGNED ), + ( CAST( - + 30 AS SIGNED ) ) ), + 68 AS col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-2938
SELECT - - 97 - 6 + - NULLIF ( - + CAST ( NULL AS INTEGER ), + ( CAST ( - + 30 AS INTEGER ) ) ), + 68 AS col1
----
NULL
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2939
SELECT ALL COUNT( * ) * - COUNT( * ), + 18 + + 62 + + - 57 col2
----
-1
23

skipif mysql # not compatible
query II rowsort label-2939
SELECT ALL COUNT ( * ) * - COUNT ( * ), + 18 + + 62 + + - 57 col2
----
-1
23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT DISTINCT ( - - 91 ) * - - 22 - + + CAST( + ( + 94 ) AS SIGNED ) * 53
----
-2980

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT ( - - 91 ) * - - 22 - + + CAST ( + ( + 94 ) AS INTEGER ) * 53
----
-2980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2942
SELECT ALL + CASE 35 WHEN + - CAST( NULL AS SIGNED ) + - + 44 THEN - + 49 + - 11 * - 31 WHEN - 85 * - CASE 21 WHEN + + 67 THEN - 56 * COUNT( * ) + 55 - - + COUNT( * ) WHEN + 97 - 62 THEN NULL ELSE NULL END THEN NULL WHEN + - 12 * - COUNT( * ) + 72 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL + CASE 35 WHEN + - CAST ( NULL AS INTEGER ) + - + 44 THEN - + 49 + - 11 * - 31 WHEN - 85 * - CASE 21 WHEN + + 67 THEN - 56 * COUNT ( * ) + 55 - - + COUNT ( * ) WHEN + 97 - 62 THEN NULL ELSE NULL END THEN NULL WHEN + - 12 * - COUNT ( * ) + 72 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2943
SELECT - 53 - - CAST( NULL AS SIGNED ) AS col1, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-2943
SELECT - 53 - - CAST ( NULL AS INTEGER ) AS col1, 21
----
NULL
21

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT - CAST( - 76 AS SIGNED ) + - 61 + 78
----
93

skipif mysql # not compatible
query I rowsort label-2946
SELECT - CAST ( - 76 AS INTEGER ) + - 61 + 78
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2947
SELECT ALL + COUNT( 98 ) * COUNT( ALL + 68 ) AS col0, - 89 + + + 6 - - 76 + + + 65
----
1
58

skipif mysql # not compatible
query II rowsort label-2947
SELECT ALL + COUNT ( 98 ) * COUNT ( ALL + 68 ) AS col0, - 89 + + + 6 - - 76 + + + 65
----
1
58

query I rowsort
SELECT ALL - 18 * 1 + ( + 86 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2949
SELECT ALL 77 * 81 + + 50 - + 35 AS col2, COUNT( * )
----
6252
1

skipif mysql # not compatible
query II rowsort label-2949
SELECT ALL 77 * 81 + + 50 - + 35 AS col2, COUNT ( * )
----
6252
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2950
SELECT - 50 AS col0, - 66 DIV - 95 AS col2
----
-50
0

skipif mysql # not compatible
query II rowsort label-2950
SELECT - 50 AS col0, - 66 / - 95 AS col2
----
-50
0

query I rowsort
SELECT - 13 + - CASE 41 WHEN + 85 * - 53 THEN - 5 WHEN - 35 THEN NULL ELSE NULL END + - - 80 AS col1
----
NULL

query I rowsort
SELECT ALL - 51 + + NULLIF ( + 37, + 53 ) AS col2
----
-14

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

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL - 78 * COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT ALL ( - - 97 ) AS col0
----
97

query I rowsort
SELECT DISTINCT + 6 - + 80
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT - 94 * + COALESCE ( - ( - 43 ), + NULLIF ( + + COUNT( * ), 54 * - ( + 42 ) ) + - 21, - COUNT( * ) ) AS col1
----
-4042

skipif mysql # not compatible
query I rowsort label-2956
SELECT - 94 * + COALESCE ( - ( - 43 ), + NULLIF ( + + COUNT ( * ), 54 * - ( + 42 ) ) + - 21, - COUNT ( * ) ) AS col1
----
-4042

query II rowsort
SELECT 29 AS col1, 80 * + 38
----
29
3040

query I rowsort
SELECT - 47 + - + 49 + COALESCE ( 64, + 26 + + + 1 ) * + 67 AS col2
----
4192

query I rowsort
SELECT ALL 58 * 58 col0
----
3364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2960
SELECT DISTINCT - COUNT( * ) DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT - COUNT ( * ) / 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2961
SELECT - 20 AS col1, COUNT( * ) DIV + 68 AS col1
----
-20
0

skipif mysql # not compatible
query II rowsort label-2961
SELECT - 20 AS col1, COUNT ( * ) / + 68 AS col1
----
-20
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2963
SELECT ALL + 82 * - - ( 76 ) + 44 - + 44 * - - 30 + - COUNT( DISTINCT + 0 ) DIV + COUNT( * ) * NULLIF ( COUNT( * ), - 31 DIV + 29 - - 0 )
----
4955

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL + 82 * - - ( 76 ) + 44 - + 44 * - - 30 + - COUNT ( DISTINCT + 0 ) / + COUNT ( * ) * NULLIF ( COUNT ( * ), - 31 / + 29 - - 0 )
----
4955

query I rowsort
SELECT + 12 * - 52 + + + NULLIF ( - 95, - 21 )
----
-719

query I rowsort
SELECT ALL 82 * + 82 AS col1
----
6724

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT - 51 + - - SUM( DISTINCT - 77 ) * - + 73 AS col2
----
5570

skipif mysql # not compatible
query I rowsort label-2966
SELECT - 51 + - - SUM ( DISTINCT - 77 ) * - + 73 AS col2
----
5570

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT + MIN( - 46 ) * 56 * + - 69
----
177744

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT + MIN ( - 46 ) * 56 * + - 69
----
177744

onlyif mysql # DIV for integer division: 
query I rowsort label-2968
SELECT 52 DIV 29 + - 41 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-2968
SELECT 52 / 29 + - 41 AS col2
----
-40

query I rowsort
SELECT + 78 * 80 col1
----
6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2970
SELECT + + CAST( NULL AS SIGNED ) + COUNT( * ) / - CAST( NULL AS SIGNED ) + + AVG ( + 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT + + CAST ( NULL AS INTEGER ) + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + + AVG ( + 12 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT + - 49 + + 23 * + - COUNT( * ) * - - 34
----
-831

skipif mysql # not compatible
query I rowsort label-2971
SELECT + - 49 + + 23 * + - COUNT ( * ) * - - 34
----
-831

query II rowsort
SELECT ALL + - 71, 98 AS col1
----
-71
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT + 95 * + 8 + - ( - - 37 ) + + COUNT( * )
----
724

skipif mysql # not compatible
query I rowsort label-2974
SELECT + 95 * + 8 + - ( - - 37 ) + + COUNT ( * )
----
724

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2975
SELECT ALL + COALESCE ( + 81, - 47 * - COUNT( * ) ) DIV - NULLIF ( + COUNT( * ), + 2 ) + - ( - 41 ) + + 4 col2
----
-36

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL + COALESCE ( + 81, - 47 * - COUNT ( * ) ) / - NULLIF ( + COUNT ( * ), + 2 ) + - ( - 41 ) + + 4 col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT ALL 98 + + 30 DIV - 28
----
97

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL 98 + + 30 / - 28
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT - 81 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-2977
SELECT - 81 / - 87
----
0

query I rowsort
SELECT 97 + + 55
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2979
SELECT ALL - 3 + - 30 - - SUM( DISTINCT + 7 ) * 46 + - COUNT( * ) DIV - COUNT( * ) AS col2
----
290

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL - 3 + - 30 - - SUM ( DISTINCT + 7 ) * 46 + - COUNT ( * ) / - COUNT ( * ) AS col2
----
290

query I rowsort
SELECT 1 + - 97 * 23
----
-2230

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT ALL - CASE 71 WHEN + 24 * + 36 THEN NULL WHEN - 80 - - + COALESCE ( - ( - 43 ), - 54 ) THEN NULL WHEN - 57 THEN + 37 WHEN - + COALESCE ( + + 95, + 80, - MAX( ALL 30 ) - - MIN( DISTINCT - 14 ) + + - 19 + 42 ) + + 31 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL - CASE 71 WHEN + 24 * + 36 THEN NULL WHEN - 80 - - + COALESCE ( - ( - 43 ), - 54 ) THEN NULL WHEN - 57 THEN + 37 WHEN - + COALESCE ( + + 95, + 80, - MAX ( ALL 30 ) - - MIN ( DISTINCT - 14 ) + + - 19 + 42 ) + + 31 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 43 + + 5
----
48

query I rowsort
SELECT DISTINCT 2 * + 16 AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2984
SELECT 7 * 53 DIV COUNT( * )
----
371

skipif mysql # not compatible
query I rowsort label-2984
SELECT 7 * 53 / COUNT ( * )
----
371

query II rowsort
SELECT 81 * - 32 AS col1, + 34
----
-2592
34

query I rowsort
SELECT 17 * - 21 AS col0
----
-357

query I rowsort
SELECT 6 * - 2 AS col2
----
-12

query I rowsort
SELECT 42 * + 91 AS col0
----
3822

query I rowsort
SELECT ALL - 29 * - 73
----
2117

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT ALL - 57 - - 94 + 30 - - 45 * CASE - 71 WHEN + + 54 THEN NULL ELSE - - NULLIF ( + COUNT( * ), 56 + + 83 + - 54 ) END col1, - 35 * + 8 * 72
----
112
-20160

skipif mysql # not compatible
query II rowsort label-2990
SELECT ALL - 57 - - 94 + 30 - - 45 * CASE - 71 WHEN + + 54 THEN NULL ELSE - - NULLIF ( + COUNT ( * ), 56 + + 83 + - 54 ) END col1, - 35 * + 8 * 72
----
112
-20160

query I rowsort
SELECT ALL - + 64 * + 56 - 15 AS col1
----
-3599

query I rowsort
SELECT - ( - 64 ) + 18
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2993
SELECT 42 + + + 51 + ( + + 51 ) / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT 42 + + + 51 + ( + + 51 ) / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT - + NULLIF ( - COUNT( * ), COALESCE ( - 98, + SUM( - 87 ) * - 89 + - 74 + - 67 ) + - 38 + + - COUNT( * ) + + 69 )
----
1

skipif mysql # not compatible
query I rowsort label-2994
SELECT - + NULLIF ( - COUNT ( * ), COALESCE ( - 98, + SUM ( - 87 ) * - 89 + - 74 + - 67 ) + - 38 + + - COUNT ( * ) + + 69 )
----
1

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

query I rowsort
SELECT ALL - 59 + 79 + 58 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT + COUNT( DISTINCT + - 65 ) + + MAX( + 68 ) * - 82
----
-5575

skipif mysql # not compatible
query I rowsort label-2997
SELECT + COUNT ( DISTINCT + - 65 ) + + MAX ( + 68 ) * - 82
----
-5575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2998
SELECT DISTINCT + 26 + + 54, + CAST( NULL AS SIGNED ) + 34 + 33 + - COALESCE ( SUM( + 73 ), - MIN( ALL + 19 ) * - MIN( ALL 78 ) + + - 51 / + NULLIF ( 45, 40 * + 59 * - 64 ) / - - MAX( DISTINCT + - 55 ) - + 87 ) * + 52 * - ( + + 46 ) AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-2998
SELECT DISTINCT + 26 + + 54, + CAST ( NULL AS INTEGER ) + 34 + 33 + - COALESCE ( SUM ( + 73 ), - MIN ( ALL + 19 ) * - MIN ( ALL 78 ) + + - 51 / + NULLIF ( 45, 40 * + 59 * - 64 ) / - - MAX ( DISTINCT + - 55 ) - + 87 ) * + 52 * - ( + + 46 ) AS col2
----
80
NULL

query I rowsort
SELECT 12 + + - 36 + ( 60 ) * 43 * COALESCE ( - - 4, - 71 + - 49 ) + - 98
----
10198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3000
SELECT ALL + COUNT( * ) DIV - - NULLIF ( + 52, + - SUM( - 28 ) DIV COALESCE ( - 87, - 48 ) ) * 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL + COUNT ( * ) / - - NULLIF ( + 52, + - SUM ( - 28 ) / COALESCE ( - 87, - 48 ) ) * 76 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3001
SELECT 42 DIV - - 43 + - NULLIF ( + 87, + 73 ) * 42
----
-3654

skipif mysql # not compatible
query I rowsort label-3001
SELECT 42 / - - 43 + - NULLIF ( + 87, + 73 ) * 42
----
-3654

query I rowsort
SELECT + 52 * - 96 + - - 54
----
-4938

query I rowsort
SELECT 91 + 23 * 48
----
1195

query I rowsort
SELECT DISTINCT - + 9 + + - 96 * + 66 AS col1
----
-6345

query I rowsort
SELECT ALL + 32 + - + 68
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT 11 * NULLIF ( MAX( DISTINCT - - 61 ), - 24 ) + - COALESCE ( + 99, + COUNT( * ) / + COUNT( * ), - 58 / + - 5 ) - - - NULLIF ( - 54, + 40 * - 81 + MIN( DISTINCT + + 35 ) ) + + + 22 - CAST( NULL AS SIGNED ) * - - 87 * - + 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3006
SELECT 11 * NULLIF ( MAX ( DISTINCT - - 61 ), - 24 ) + - COALESCE ( + 99, + COUNT ( * ) / + COUNT ( * ), - 58 / + - 5 ) - - - NULLIF ( - 54, + 40 * - 81 + MIN ( DISTINCT + + 35 ) ) + + + 22 - CAST ( NULL AS INTEGER ) * - - 87 * - + 59 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL 32 + - 3 + - 79 * - CASE + 73 WHEN + 11 THEN NULL WHEN + - 25 THEN NULL ELSE + COUNT( * ) END + + + 39
----
147

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL 32 + - 3 + - 79 * - CASE + 73 WHEN + 11 THEN NULL WHEN + - 25 THEN NULL ELSE + COUNT ( * ) END + + + 39
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL + 50 + + - 94 + 59 + + - MIN( + 8 ) * - 59 AS col1
----
487

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + 50 + + - 94 + 59 + + - MIN ( + 8 ) * - 59 AS col1
----
487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3010
SELECT DISTINCT CASE - 24 WHEN 33 + SUM( + 22 ) / + - 64 THEN - 72 + 38 WHEN CAST( NULL AS SIGNED ) + + - 58 + + + 24 THEN NULL WHEN - 31 * MIN( - + 7 ) / 37 * NULLIF ( + + COUNT( * ), 18 ) * 93 - 93 THEN NULL ELSE - 90 * - + SUM( - 78 ) + 70 + - COUNT( * ) END + 50 AS col0
----
-6901

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT CASE - 24 WHEN 33 + SUM ( + 22 ) / + - 64 THEN - 72 + 38 WHEN CAST ( NULL AS INTEGER ) + + - 58 + + + 24 THEN NULL WHEN - 31 * MIN ( - + 7 ) / 37 * NULLIF ( + + COUNT ( * ), 18 ) * 93 - 93 THEN NULL ELSE - 90 * - + SUM ( - 78 ) + 70 + - COUNT ( * ) END + 50 AS col0
----
-6901

query I rowsort
SELECT ALL 49 + + - 57 + + 58 + - 10 + 68 AS col1
----
108

query II rowsort
SELECT DISTINCT - 33 col2, + 27 * + + 88
----
-33
2376

query II rowsort
SELECT ALL ( - + 39 ) - + 37 col1, - 27
----
-76
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3014
SELECT 24 * + + 21 * 94 + + ( + 42 ) + - COALESCE ( - + MAX( - - 60 ), + 44 * + - COALESCE ( SUM( - 90 ), - - 69 ) * MIN( DISTINCT + - 23 ) + + - NULLIF ( - 53, - - COUNT( * ) ) * - 64 * + NULLIF ( 55, - 85 ) * - MAX( - CAST( - ( 31 ) AS SIGNED ) ) * 66 + 40, CAST( - 37 AS SIGNED ) DIV - 77 ) * 67
----
51438

skipif mysql # not compatible
query I rowsort label-3014
SELECT 24 * + + 21 * 94 + + ( + 42 ) + - COALESCE ( - + MAX ( - - 60 ), + 44 * + - COALESCE ( SUM ( - 90 ), - - 69 ) * MIN ( DISTINCT + - 23 ) + + - NULLIF ( - 53, - - COUNT ( * ) ) * - 64 * + NULLIF ( 55, - 85 ) * - MAX ( - CAST ( - ( 31 ) AS INTEGER ) ) * 66 + 40, CAST ( - 37 AS INTEGER ) / - 77 ) * 67
----
51438

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL COUNT( * ) * - NULLIF ( + 27, + 24 * - 68 * - + 26 * + 83 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL COUNT ( * ) * - NULLIF ( + 27, + 24 * - 68 * - + 26 * + 83 ) AS col1
----
-27

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

skipif mysql # not compatible
query I rowsort label-3018
SELECT COUNT ( * ) + - - 41 * - 95 AS col0
----
-3894

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT + MAX( DISTINCT 5 ) col0
----
5

skipif mysql # not compatible
query I rowsort label-3019
SELECT + MAX ( DISTINCT 5 ) col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT COUNT( * ) + - 41 + NULLIF ( - + COUNT( * ), + 86 ) * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-3020
SELECT COUNT ( * ) + - 41 + NULLIF ( - + COUNT ( * ), + 86 ) * - COUNT ( * )
----
-39

query I rowsort
SELECT ALL 42 * + 14 AS col1
----
588

query I rowsort
SELECT 16 + - 8 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3023
SELECT ALL 13 AS col0, + 4 - - COUNT( * )
----
13
5

skipif mysql # not compatible
query II rowsort label-3023
SELECT ALL 13 AS col0, + 4 - - COUNT ( * )
----
13
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3024
SELECT - 17 * + CAST( NULL AS SIGNED ) + COALESCE ( 39, + 16, + 81, ( MIN( DISTINCT ( - 61 ) ) ) ) AS col0, 28 * - 56
----
NULL
-1568

skipif mysql # not compatible
query II rowsort label-3024
SELECT - 17 * + CAST ( NULL AS INTEGER ) + COALESCE ( 39, + 16, + 81, ( MIN ( DISTINCT ( - 61 ) ) ) ) AS col0, 28 * - 56
----
NULL
-1568

query I rowsort
SELECT DISTINCT 88 * + 54
----
4752

query I rowsort
SELECT DISTINCT NULLIF ( - 90, - 65 ) * 68 AS col2
----
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT - CASE + 29 WHEN - 47 THEN + 61 WHEN + 72 + 66 + + NULLIF ( - 90, - 49 * + 61 ) + 98 / - - MAX( DISTINCT + 42 ) + 54 + - 26 * - 15 * - + 55 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT - CASE + 29 WHEN - 47 THEN + 61 WHEN + 72 + 66 + + NULLIF ( - 90, - 49 * + 61 ) + 98 / - - MAX ( DISTINCT + 42 ) + 54 + - 26 * - 15 * - + 55 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3028
SELECT ALL - CAST( + ( 11 ) AS SIGNED ) AS col2, - ( - 6 ) AS col0
----
-11
6

skipif mysql # not compatible
query II rowsort label-3028
SELECT ALL - CAST ( + ( 11 ) AS INTEGER ) AS col2, - ( - 6 ) AS col0
----
-11
6

query I rowsort
SELECT + 33 * - - 60 AS col2
----
1980

query I rowsort
SELECT - 3 * + + 84 * + 10 + + 14
----
-2506

query I rowsort
SELECT ALL - + 36 + - + 17 * 67
----
-1175

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

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL - COUNT ( * ) + 63 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL + 63 + + SUM( - ( NULLIF ( + 34, 4 ) ) )
----
29

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL + 63 + + SUM ( - ( NULLIF ( + 34, 4 ) ) )
----
29

query I rowsort
SELECT + + 47 + 91 - - + 84
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT - - MIN( ALL + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3035
SELECT - - MIN ( ALL + 95 ) AS col0
----
95

query I rowsort
SELECT - - 8 * - ( + 92 ) AS col2
----
-736

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT - 86 + MAX( - - 78 )
----
-8

skipif mysql # not compatible
query I rowsort label-3038
SELECT - 86 + MAX ( - - 78 )
----
-8

query I rowsort
SELECT DISTINCT - 19 * - 17 - - 40 * 19 * + 30
----
23123

query II rowsort
SELECT ALL + 65, + 15 * - 2 AS col0
----
65
-30

query I rowsort
SELECT - 90 * + + 93
----
-8370

query I rowsort
SELECT COALESCE ( - 66, - 62 ) AS col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3043
SELECT - 96 DIV 83 + 61 + + SUM( ALL 97 ) * 57
----
5589

skipif mysql # not compatible
query I rowsort label-3043
SELECT - 96 / 83 + 61 + + SUM ( ALL 97 ) * 57
----
5589

onlyif mysql # aggregate syntax: 
query II rowsort label-3044
SELECT + 43 AS col2, 36 + - COUNT( 49 ) AS col2
----
43
35

skipif mysql # not compatible
query II rowsort label-3044
SELECT + 43 AS col2, 36 + - COUNT ( 49 ) AS col2
----
43
35

query I rowsort
SELECT + 84 + - + 53 + - 14
----
17

query I rowsort
SELECT - 8 * 53 + 77
----
-347

query II rowsort
SELECT + 1, - 23 col0
----
1
-23

query II rowsort
SELECT ALL + 97, 41 * - + ( 79 ) AS col0
----
97
-3239

query II rowsort
SELECT DISTINCT + 67, 30 AS col2
----
67
30

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

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

query I rowsort
SELECT - 64 * + - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL MIN( ALL - + 23 ) + NULLIF ( + 47, + + ( + - 58 ) )
----
24

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL MIN ( ALL - + 23 ) + NULLIF ( + 47, + + ( + - 58 ) )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT + 45 - + 5 + - - 31 DIV + + 38 * - + 66 * - 60 * + ( 83 )
----
40

skipif mysql # not compatible
query I rowsort label-3053
SELECT + 45 - + 5 + - - 31 / + + 38 * - + 66 * - 60 * + ( 83 )
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3054
SELECT + + 37 / + - 27 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT + + 37 / + - 27 * CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT ALL + 56 + + - 22 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL + 98 + + MAX( + - 50 ) + - 62
----
-14

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + 98 + + MAX ( + - 50 ) + - 62
----
-14

query II rowsort
SELECT + + 93 + + 0 AS col0, - 23
----
93
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT + + 87 * + - MIN( - + 33 )
----
2871

skipif mysql # not compatible
query I rowsort label-3059
SELECT + + 87 * + - MIN ( - + 33 )
----
2871

onlyif mysql # DIV for integer division: 
query II rowsort label-3060
SELECT + 20 DIV + + 71 * ( 38 ) * - NULLIF ( - 98, - 82 ), 71 AS col2
----
0
71

skipif mysql # not compatible
query II rowsort label-3060
SELECT + 20 / + + 71 * ( 38 ) * - NULLIF ( - 98, - 82 ), 71 AS col2
----
0
71

query I rowsort
SELECT + - 18 + + - 99 + 73 AS col1
----
-44

query II rowsort
SELECT + 69 AS col2, - 6
----
69
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3063
SELECT - 3 + 98 + + 1 DIV + + 86 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3063
SELECT - 3 + 98 + + 1 / + + 86 AS col2
----
95

query I rowsort
SELECT + ( + 61 ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT DISTINCT ( + SUM( + 31 ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT ( + SUM ( + 31 ) ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT - COUNT( * ) * - MIN( 9 ) * + 1 + + 5 col0
----
14

skipif mysql # not compatible
query I rowsort label-3066
SELECT - COUNT ( * ) * - MIN ( 9 ) * + 1 + + 5 col0
----
14

query I rowsort
SELECT DISTINCT + 4 + - ( - 30 )
----
34

query I rowsort
SELECT ALL + NULLIF ( + - 75, - 14 ) AS col1
----
-75

query I rowsort
SELECT ALL - 82 - - 40 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT + 74 + SUM( ALL 20 ) + + - 76 * + + 72 * + COUNT( DISTINCT + 79 )
----
-5378

skipif mysql # not compatible
query I rowsort label-3070
SELECT + 74 + SUM ( ALL 20 ) + + - 76 * + + 72 * + COUNT ( DISTINCT + 79 )
----
-5378

query II rowsort
SELECT ALL 31, 70 AS col2
----
31
70

query I rowsort
SELECT ALL - 80 * + NULLIF ( + 2, ( 23 ) + - 2 - 52 )
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3073
SELECT ALL 61 DIV - 17 - + 20 * - 10 + + 8 * + CASE 26 WHEN 22 THEN + 85 * + COUNT( * ) + + COALESCE ( 51, - + 48 + + 80 ) - + 53 - - 38 - - 4 + + - 85 DIV - ( + CAST( - 39 AS SIGNED ) ) * - - COALESCE ( - - 95, 48, + 43, - SUM( DISTINCT - 86 ) ) * + 56 + - 24 WHEN COALESCE ( + 39, - 64 * 58 ) * - 14 THEN 52 ELSE - COUNT( * ) * - 2 END - 72 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL 61 / - 17 - + 20 * - 10 + + 8 * + CASE 26 WHEN 22 THEN + 85 * + COUNT ( * ) + + COALESCE ( 51, - + 48 + + 80 ) - + 53 - - 38 - - 4 + + - 85 / - ( + CAST ( - 39 AS INTEGER ) ) * - - COALESCE ( - - 95, 48, + 43, - SUM ( DISTINCT - 86 ) ) * + 56 + - 24 WHEN COALESCE ( + 39, - 64 * 58 ) * - 14 THEN 52 ELSE - COUNT ( * ) * - 2 END - 72 AS col0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3074
SELECT CAST( - 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-3074
SELECT CAST ( - 70 AS INTEGER )
----
-70

query I rowsort
SELECT - 67 * + 94 col1
----
-6298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3076
SELECT + CAST( 96 AS SIGNED ) * - COUNT( - 53 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-3076
SELECT + CAST ( 96 AS INTEGER ) * - COUNT ( - 53 ) AS col2
----
-96

query I rowsort
SELECT DISTINCT + ( - + 19 ) col2
----
-19

query I rowsort
SELECT - 72 - 4
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3079
SELECT ALL + MIN( + - 57 ) DIV + ( - - COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + MIN ( + - 57 ) / + ( - - COUNT ( * ) )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3080
SELECT ALL - 70 * + + 83, + MIN( ALL + 59 ) DIV - - 68 * 95 + COUNT( ALL - 39 ) * + + 76 AS col0
----
-5810
76

skipif mysql # not compatible
query II rowsort label-3080
SELECT ALL - 70 * + + 83, + MIN ( ALL + 59 ) / - - 68 * 95 + COUNT ( ALL - 39 ) * + + 76 AS col0
----
-5810
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3081
SELECT - 0 * 73, COALESCE ( + + 94, - + 43 + + COUNT( * ) ) * - 12 + + COUNT( * ) * - - 75 AS col1
----
0
-1053

skipif mysql # not compatible
query II rowsort label-3081
SELECT - 0 * 73, COALESCE ( + + 94, - + 43 + + COUNT ( * ) ) * - 12 + + COUNT ( * ) * - - 75 AS col1
----
0
-1053

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT + SUM( - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT + SUM ( - 59 ) AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT - 41 * - + CASE + NULLIF ( + CASE 52 WHEN + + 7 + 6 / - 51 THEN NULLIF ( - - CAST( 85 AS SIGNED ), - 66 + + + 17 ) + - ( + 79 ) + - CASE - 22 WHEN - + 83 * 3 / - ( + + 67 ) / - COUNT( * ) THEN + 25 * + MAX( - ( + ( - - 5 ) ) ) + - 67 / - 61 + + 94 * 45 WHEN + 88 * - 65 THEN NULL END WHEN COUNT( * ) THEN NULL END, 14 ) WHEN - 8 THEN - 10 / 6 + 33 WHEN CASE + 88 WHEN - COALESCE ( 27, + CAST( + 14 AS SIGNED ) * + 36, + 67 ) THEN - 96 ELSE - 91 * 4 END THEN 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT - 41 * - + CASE + NULLIF ( + CASE 52 WHEN + + 7 + 6 / - 51 THEN NULLIF ( - - CAST ( 85 AS INTEGER ), - 66 + + + 17 ) + - ( + 79 ) + - CASE - 22 WHEN - + 83 * 3 / - ( + + 67 ) / - COUNT ( * ) THEN + 25 * + MAX ( - ( + ( - - 5 ) ) ) + - 67 / - 61 + + 94 * 45 WHEN + 88 * - 65 THEN NULL END WHEN COUNT ( * ) THEN NULL END, 14 ) WHEN - 8 THEN - 10 / 6 + 33 WHEN CASE + 88 WHEN - COALESCE ( 27, + CAST ( + 14 AS INTEGER ) * + 36, + 67 ) THEN - 96 ELSE - 91 * 4 END THEN 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT + NULLIF ( - + COUNT( + 17 ), - + ( 41 ) ) * + 61 * + ( 81 )
----
-4941

skipif mysql # not compatible
query I rowsort label-3084
SELECT + NULLIF ( - + COUNT ( + 17 ), - + ( 41 ) ) * + 61 * + ( 81 )
----
-4941

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL COALESCE ( + COUNT( * ), + + COUNT( * ) * 64, 97 + + - 39 ) * - 88 + - 23 + - 50
----
-161

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL COALESCE ( + COUNT ( * ), + + COUNT ( * ) * 64, 97 + + - 39 ) * - 88 + - 23 + - 50
----
-161

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT - - 82 + 29 + - + 12 DIV - + 74
----
111

skipif mysql # not compatible
query I rowsort label-3087
SELECT - - 82 + 29 + - + 12 / - + 74
----
111

query I rowsort
SELECT DISTINCT + 19 * - 0 * + 70 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3089
SELECT DISTINCT + 76 * + - COUNT( * ) - + 35 + NULLIF ( + - MAX( 84 ), ( + 13 ) ) + 65 * + CASE 65 WHEN + 33 THEN 67 * - 21 + - 22 WHEN CASE - - 28 WHEN 43 * - 59 * + 88 * ( - - 58 ) / - NULLIF ( + CASE + 81 WHEN - 83 * + 3 + - 61 THEN NULL WHEN 54 * NULLIF ( + MIN( ALL CAST( + 56 AS DECIMAL ) ), 17 ) THEN NULL WHEN COALESCE ( MAX( 16 ), 11 ) THEN NULL WHEN - NULLIF ( 1, + 29 ) THEN 25 + CAST( NULL AS SIGNED ) ELSE NULL END, 87 ) + 56 THEN NULL ELSE - 97 + + 81 END THEN CAST( NULL AS SIGNED ) * + 69 WHEN 81 THEN 9 * - 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT + 76 * + - COUNT ( * ) - + 35 + NULLIF ( + - MAX ( 84 ), ( + 13 ) ) + 65 * + CASE 65 WHEN + 33 THEN 67 * - 21 + - 22 WHEN CASE - - 28 WHEN 43 * - 59 * + 88 * ( - - 58 ) / - NULLIF ( + CASE + 81 WHEN - 83 * + 3 + - 61 THEN NULL WHEN 54 * NULLIF ( + MIN ( ALL CAST ( + 56 AS REAL ) ), 17 ) THEN NULL WHEN COALESCE ( MAX ( 16 ), 11 ) THEN NULL WHEN - NULLIF ( 1, + 29 ) THEN 25 + CAST ( NULL AS INTEGER ) ELSE NULL END, 87 ) + 56 THEN NULL ELSE - 97 + + 81 END THEN CAST ( NULL AS INTEGER ) * + 69 WHEN 81 THEN 9 * - 33 ELSE NULL END
----
NULL

query I rowsort
SELECT + 56 + - - NULLIF ( + 52, 57 ) AS col0
----
108

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

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

query II rowsort
SELECT 40 + - - 14 AS col2, + 85 AS col0
----
54
85

query I rowsort
SELECT 87 + - - 1 * 76
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT - + MAX( DISTINCT - 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3094
SELECT - + MAX ( DISTINCT - 4 ) AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3095
SELECT DISTINCT + CAST( - 34 AS SIGNED ) AS col0, + 16
----
-34
16

skipif mysql # not compatible
query II rowsort label-3095
SELECT DISTINCT + CAST ( - 34 AS INTEGER ) AS col0, + 16
----
-34
16

query I rowsort
SELECT 45 - - 51 AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3097
SELECT 89 * - - ( + ( CAST( - 78 AS SIGNED ) ) ) - - ( + 47 ) + + 19 + 62 AS col2
----
-6814

skipif mysql # not compatible
query I rowsort label-3097
SELECT 89 * - - ( + ( CAST ( - 78 AS INTEGER ) ) ) - - ( + 47 ) + + 19 + 62 AS col2
----
-6814

query I rowsort
SELECT 76 + + + 22
----
98

query I rowsort
SELECT + 4 + - 7 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3100
SELECT 20 DIV - + MIN( ALL - + 88 ) AS col1, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-3100
SELECT 20 / - + MIN ( ALL - + 88 ) AS col1, + COUNT ( * )
----
0
1

query II rowsort
SELECT ALL 30 AS col0, + 78 AS col2
----
30
78

query I rowsort
SELECT 91 * + + 7
----
637

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

skipif mysql # not compatible
query I rowsort label-3103
SELECT COUNT ( * ) + + 49 AS col0
----
50

query I rowsort
SELECT ( + 43 ) * + 62 * 89 AS col1
----
237274

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT ALL - SUM( - + 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL - SUM ( - + 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT COUNT( * ) + - ( - 98 ) + + 42 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-3106
SELECT COUNT ( * ) + - ( - 98 ) + + 42 AS col0
----
141

query I rowsort
SELECT - 62 * 75 - + 20
----
-4670

query I rowsort
SELECT ALL + 2 * + 35
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3109
SELECT - 99 * + - 99 * 70 * + - CAST( 75 AS SIGNED ) + + 5 AS col2
----
-51455245

skipif mysql # not compatible
query I rowsort label-3109
SELECT - 99 * + - 99 * 70 * + - CAST ( 75 AS INTEGER ) + + 5 AS col2
----
-51455245

onlyif mysql # aggregate syntax: 
query II rowsort label-3110
SELECT ALL - COUNT( * ) AS col0, + 99
----
-1
99

skipif mysql # not compatible
query II rowsort label-3110
SELECT ALL - COUNT ( * ) AS col0, + 99
----
-1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3111
SELECT DISTINCT - 84 + COUNT( * ) + + ( ( - 33 ) ) DIV + 57 * - 29 + + 34 + - 59 col2
----
-108

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT - 84 + COUNT ( * ) + + ( ( - 33 ) ) / + 57 * - 29 + + 34 + - 59 col2
----
-108

query II rowsort
SELECT 8, - 24 + 72 AS col1
----
8
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3113
SELECT NULLIF ( + 28, + 95 + COUNT( * ) * - 29 ) DIV COUNT( * ) * + 9 + + 65 AS col2
----
317

skipif mysql # not compatible
query I rowsort label-3113
SELECT NULLIF ( + 28, + 95 + COUNT ( * ) * - 29 ) / COUNT ( * ) * + 9 + + 65 AS col2
----
317

query I rowsort
SELECT DISTINCT - 85 + 98 * - 58
----
-5769

query I rowsort
SELECT ALL - 67 + - 17
----
-84

query I rowsort
SELECT 41 * - + 73 AS col2
----
-2993

onlyif mysql # aggregate syntax: 
query II rowsort label-3117
SELECT ALL 64 * + COUNT( * ) * + 82 col1, + 85 - - SUM( ALL - + 59 ) + + ( + + 95 ) + + 66 AS col1
----
5248
187

skipif mysql # not compatible
query II rowsort label-3117
SELECT ALL 64 * + COUNT ( * ) * + 82 col1, + 85 - - SUM ( ALL - + 59 ) + + ( + + 95 ) + + 66 AS col1
----
5248
187

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3119
SELECT 86 DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3119
SELECT 86 / - 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL - COUNT( * ) + 14
----
13

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - COUNT ( * ) + 14
----
13

query I rowsort
SELECT DISTINCT - - 79 * + 54
----
4266

query I rowsort
SELECT DISTINCT - 98 + + 47 AS col1
----
-51

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

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

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

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

query II rowsort
SELECT ALL + - 37 - + 9 + - 99 AS col2, 46 AS col1
----
-145
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3126
SELECT + CAST( NULL AS SIGNED ) - MAX( - - 5 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3127
SELECT DISTINCT - 46 * - + MIN( + 63 ) AS col0, - 37 + + 43 AS col2
----
2898
6

skipif mysql # not compatible
query II rowsort label-3127
SELECT DISTINCT - 46 * - + MIN ( + 63 ) AS col0, - 37 + + 43 AS col2
----
2898
6

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT - SUM( 28 ) * 9
----
-252

skipif mysql # not compatible
query I rowsort label-3130
SELECT - SUM ( 28 ) * 9
----
-252

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT 0 DIV + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3133
SELECT 0 / + 48 AS col0
----
0

query I rowsort
SELECT 36 * - 37 AS col2
----
-1332

query I rowsort
SELECT 19 + + + ( + - 15 )
----
4

query I rowsort
SELECT 26 * - 18 AS col1
----
-468

query I rowsort
SELECT ALL - 98 + ( + 40 ) AS col2
----
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT - 58 * + MIN( DISTINCT 68 ) * - MAX( DISTINCT + 74 ) + + 2
----
291858

skipif mysql # not compatible
query I rowsort label-3139
SELECT - 58 * + MIN ( DISTINCT 68 ) * - MAX ( DISTINCT + 74 ) + + 2
----
291858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3140
SELECT DISTINCT CAST( NULL AS SIGNED ) * + CASE - MIN( + - 89 ) WHEN 17 THEN NULL ELSE + ( + - 30 ) * 13 - CAST( NULL AS DECIMAL ) * 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + CASE - MIN ( + - 89 ) WHEN 17 THEN NULL ELSE + ( + - 30 ) * 13 - CAST ( NULL AS REAL ) * 96 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL + COUNT( * ) * + + 9 + - 70 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + COUNT ( * ) * + + 9 + - 70 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT 25 * + + COUNT( ALL 68 ) * - NULLIF ( 78, - 21 * + 44 ) AS col2
----
-1950

skipif mysql # not compatible
query I rowsort label-3142
SELECT 25 * + + COUNT ( ALL 68 ) * - NULLIF ( 78, - 21 * + 44 ) AS col2
----
-1950

query I rowsort
SELECT 61 * - 88
----
-5368

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

skipif mysql # not compatible
query I rowsort label-3144
SELECT SUM ( ALL - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT + COUNT( * ) * 52 + + 70 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT + COUNT ( * ) * 52 + + 70 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT SUM( ALL + + 67 ) col0
----
67

skipif mysql # not compatible
query I rowsort label-3146
SELECT SUM ( ALL + + 67 ) col0
----
67

query I rowsort
SELECT ALL - 91 * + 51 + - 56
----
-4697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3148
SELECT + CASE - 4 WHEN CAST( NULL AS SIGNED ) THEN + 82 END * + 25 + - - COUNT( * ) + ( + COUNT( * ) ) / ( + + 9 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT + CASE - 4 WHEN CAST ( NULL AS INTEGER ) THEN + 82 END * + 25 + - - COUNT ( * ) + ( + COUNT ( * ) ) / ( + + 9 ) col1
----
NULL

query I rowsort
SELECT + + 74 - 80 + - - 82 AS col1
----
76

query I rowsort
SELECT ALL + 69 * + 64 AS col1
----
4416

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

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

query I rowsort
SELECT ALL - + 85 - 30 AS col0
----
-115

query I rowsort
SELECT + 14 + 93 * - 28
----
-2590

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL + 75 * COALESCE ( - + 81, + NULLIF ( 8, 84 + SUM( DISTINCT + + 70 ) ) * COUNT( * ) * + - 64 + + 32 ) + - 25 - 40 AS col0
----
-6140

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL + 75 * COALESCE ( - + 81, + NULLIF ( 8, 84 + SUM ( DISTINCT + + 70 ) ) * COUNT ( * ) * + - 64 + + 32 ) + - 25 - 40 AS col0
----
-6140

query I rowsort
SELECT - 2 * - - 0 + - + 16
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3156
SELECT - - 48 * + - 57 col0, + COUNT( * ) + + + 15
----
-2736
16

skipif mysql # not compatible
query II rowsort label-3156
SELECT - - 48 * + - 57 col0, + COUNT ( * ) + + + 15
----
-2736
16

query I rowsort
SELECT 89 * - 95 + CASE 1 WHEN - - 36 THEN - + 85 WHEN + 87 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT - - 98 DIV - 83 - 9
----
-10

skipif mysql # not compatible
query I rowsort label-3158
SELECT - - 98 / - 83 - 9
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT - + NULLIF ( - COALESCE ( 87, - - ( - 61 ) ), + - 3 ) + - - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3159
SELECT - + NULLIF ( - COALESCE ( 87, - - ( - 61 ) ), + - 3 ) + - - COUNT ( * ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT NULLIF ( - - MIN( + - 60 ), - + 61 * - 36 )
----
-60

skipif mysql # not compatible
query I rowsort label-3160
SELECT NULLIF ( - - MIN ( + - 60 ), - + 61 * - 36 )
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3161
SELECT DISTINCT - 1 * - + 63 + - CAST( NULL AS DECIMAL ) - + - 7, + 41 AS col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-3161
SELECT DISTINCT - 1 * - + 63 + - CAST ( NULL AS REAL ) - + - 7, + 41 AS col1
----
NULL
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL - COUNT( * ) + ( + 11 ) + 49 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL - COUNT ( * ) + ( + 11 ) + 49 AS col1
----
59

query II rowsort
SELECT - 49 + + 63 + 74 * - 23 * + - 69 AS col0, 4 * 94
----
117452
376

onlyif mysql # aggregate syntax: 
query II rowsort label-3165
SELECT DISTINCT - COUNT( * ) + COUNT( DISTINCT + + 79 ), COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-3165
SELECT DISTINCT - COUNT ( * ) + COUNT ( DISTINCT + + 79 ), COUNT ( * ) AS col1
----
0
1

query I rowsort
SELECT - 84 * 74 AS col2
----
-6216

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL - ( + 6 ) + 18 * NULLIF ( - 28, COALESCE ( + ( + - COUNT( 16 ) ), + 1 ) ) + 39
----
-471

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL - ( + 6 ) + 18 * NULLIF ( - 28, COALESCE ( + ( + - COUNT ( 16 ) ), + 1 ) ) + 39
----
-471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3168
SELECT DISTINCT CASE - 34 WHEN 38 + + 24 THEN NULL WHEN - + CAST( NULL AS SIGNED ) + 68 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT CASE - 34 WHEN 38 + + 24 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) + 68 THEN - COUNT ( * ) END
----
NULL

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

query I rowsort
SELECT - 48 - 71 col2
----
-119

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT 67 DIV NULLIF ( - 80, + COUNT( * ) - - + 73 * 51 * + - 57 ) + - NULLIF ( + - 1, - - 15 ) * 3 + + ( + + 94 )
----
97

skipif mysql # not compatible
query I rowsort label-3172
SELECT 67 / NULLIF ( - 80, + COUNT ( * ) - - + 73 * 51 * + - 57 ) + - NULLIF ( + - 1, - - 15 ) * 3 + + ( + + 94 )
----
97

query I rowsort
SELECT - 18 * 32 * - 10
----
5760

query I rowsort
SELECT ALL 29 * - 67 AS col0
----
-1943

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3175
SELECT ALL - MAX( DISTINCT 92 ) / - + 69 / - + 56 + - CAST( NULL AS DECIMAL ) + - - MAX( DISTINCT + 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL - MAX ( DISTINCT 92 ) / - + 69 / - + 56 + - CAST ( NULL AS REAL ) + - - MAX ( DISTINCT + 83 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3176
SELECT ALL 78 DIV - + MIN( ALL - ( 1 ) ) - - 39 AS col2, + 64 AS col0
----
117
64

skipif mysql # not compatible
query II rowsort label-3176
SELECT ALL 78 / - + MIN ( ALL - ( 1 ) ) - - 39 AS col2, + 64 AS col0
----
117
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT + 96 * + COUNT( * ) + - + COUNT( * ) + - 54
----
41

skipif mysql # not compatible
query I rowsort label-3177
SELECT + 96 * + COUNT ( * ) + - + COUNT ( * ) + - 54
----
41

query I rowsort
SELECT ( - CASE + 43 WHEN + 11 THEN NULL ELSE - 55 END ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT + COUNT( * ) + + 19
----
20

skipif mysql # not compatible
query I rowsort label-3179
SELECT + COUNT ( * ) + + 19
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT - - SUM( DISTINCT 14 ) * ( - + 29 ) AS col2
----
-406

skipif mysql # not compatible
query I rowsort label-3180
SELECT - - SUM ( DISTINCT 14 ) * ( - + 29 ) AS col2
----
-406

query I rowsort
SELECT + 45 + + NULLIF ( + - 59, + 18 ) AS col1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3182
SELECT ALL 15 DIV COALESCE ( - 58, - + 80 DIV - 96 ) + ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL 15 / COALESCE ( - 58, - + 80 / - 96 ) + ( + + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3183
SELECT ALL - - CASE + ( - CAST( + + 66 AS SIGNED ) ) WHEN + + 12 THEN NULL ELSE + - MAX( - ( - + 56 ) ) END * - + COUNT( ALL - 26 ) - - 24 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - - CASE + ( - CAST ( + + 66 AS INTEGER ) ) WHEN + + 12 THEN NULL ELSE + - MAX ( - ( - + 56 ) ) END * - + COUNT ( ALL - 26 ) - - 24 AS col1
----
80

query I rowsort
SELECT + + NULLIF ( + 5, + 52 ) AS col0
----
5

query I rowsort
SELECT ALL - 7 * + 45 AS col2
----
-315

query I rowsort
SELECT ALL - 63 * - NULLIF ( + + COALESCE ( + ( + 50 ), - 98 * - 2, 99 ), - + 8 / - 3 ) * ( + - 82 )
----
-258300

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3188
SELECT ALL - 31, + 65 * + CAST( MIN( + 40 ) AS SIGNED ) + 13 + 97 * + 89 + + 45 + ( - 62 ) - + 80 col1
----
-31
11149

skipif mysql # not compatible
query II rowsort label-3188
SELECT ALL - 31, + 65 * + CAST ( MIN ( + 40 ) AS INTEGER ) + 13 + 97 * + 89 + + 45 + ( - 62 ) - + 80 col1
----
-31
11149

query II rowsort
SELECT NULLIF ( - - 68, - 80 ) col2, - 34 col0
----
68
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL 99 * + 5 + + 62 + + MAX( + + 44 ) * + 48 * + - 67 col0
----
-140947

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL 99 * + 5 + + 62 + + MAX ( + + 44 ) * + 48 * + - 67 col0
----
-140947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3191
SELECT - 82 * + MIN( 12 ) - + CASE WHEN NULL > 1 THEN NULL ELSE - 67 - - - CASE + NULLIF ( 65, - 68 / + - 8 * - + 76 * - 13 * - + ( 31 ) + + + 40 * - 39 ) WHEN + 25 THEN NULL WHEN 82 + CAST( 3 AS SIGNED ) - COUNT( * ) - - 30 + 69 / + - COUNT( * ) * - 84 / - 81 * - - CAST( - 93 AS DECIMAL ) * SUM( DISTINCT 4 ) THEN NULLIF ( 2, 15 ) / COUNT( * ) END + + 94 / - ( - CASE - ( NULLIF ( + 52, + 59 + CAST( NULL AS SIGNED ) / 72 ) ) WHEN 65 + ( CAST( ( + 25 ) AS SIGNED ) + 42 ) THEN NULL ELSE COUNT( * ) END * 14 + 67 * - 27 ) END * 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT - 82 * + MIN ( 12 ) - + CASE WHEN NULL > 1 THEN NULL ELSE - 67 - - - CASE + NULLIF ( 65, - 68 / + - 8 * - + 76 * - 13 * - + ( 31 ) + + + 40 * - 39 ) WHEN + 25 THEN NULL WHEN 82 + CAST ( 3 AS INTEGER ) - COUNT ( * ) - - 30 + 69 / + - COUNT ( * ) * - 84 / - 81 * - - CAST ( - 93 AS REAL ) * SUM ( DISTINCT 4 ) THEN NULLIF ( 2, 15 ) / COUNT ( * ) END + + 94 / - ( - CASE - ( NULLIF ( + 52, + 59 + CAST ( NULL AS INTEGER ) / 72 ) ) WHEN 65 + ( CAST ( ( + 25 ) AS INTEGER ) + 42 ) THEN NULL ELSE COUNT ( * ) END * 14 + 67 * - 27 ) END * 96 AS col2
----
NULL

query I rowsort
SELECT + 41 - + 58 AS col1
----
-17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3194
SELECT ALL + 43 * + + CAST( - - 74 AS SIGNED ) AS col2
----
3182

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL + 43 * + + CAST ( - - 74 AS INTEGER ) AS col2
----
3182

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3196
SELECT ALL SUM( + 92 ), - COUNT( * ) DIV SUM( DISTINCT + + 1 ) DIV - 84 col0
----
92
0

skipif mysql # not compatible
query II rowsort label-3196
SELECT ALL SUM ( + 92 ), - COUNT ( * ) / SUM ( DISTINCT + + 1 ) / - 84 col0
----
92
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT DISTINCT + SUM( ALL 33 ) + + MAX( ALL - 51 )
----
-18

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT + SUM ( ALL 33 ) + + MAX ( ALL - 51 )
----
-18

query I rowsort
SELECT + 48 + + - 28
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT - SUM( DISTINCT - - NULLIF ( 74, ( - 95 ) + - 66 ) ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-3200
SELECT - SUM ( DISTINCT - - NULLIF ( 74, ( - 95 ) + - 66 ) ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3201
SELECT - COUNT( * ) - + CASE - ( + + ( + - 23 ) ) WHEN 45 THEN NULL WHEN + 7 * + + 5 * + - 51 + - CAST( - 73 AS DECIMAL ) + - 95 / - MIN( DISTINCT + ( 74 ) ) THEN NULL ELSE COUNT( * ) END AS col0, 16 * - - 37 col0
----
-2
592

skipif mysql # not compatible
query II rowsort label-3201
SELECT - COUNT ( * ) - + CASE - ( + + ( + - 23 ) ) WHEN 45 THEN NULL WHEN + 7 * + + 5 * + - 51 + - CAST ( - 73 AS REAL ) + - 95 / - MIN ( DISTINCT + ( 74 ) ) THEN NULL ELSE COUNT ( * ) END AS col0, 16 * - - 37 col0
----
-2
592

query I rowsort
SELECT DISTINCT + 26 * + + 4
----
104

query II rowsort
SELECT DISTINCT 6 + - + 38 AS col0, + 23
----
-32
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3204
SELECT 54 + 59 + - 67 + + + 37 + - 86 * 30 * - 48 + - CASE + + 16 WHEN CASE + 45 WHEN + 80 - + 99 THEN 46 + MIN( ALL - - 27 ) WHEN + - 15 THEN + 0 ELSE - - 47 END + + MAX( ALL 8 ) THEN 71 + + CAST( + MAX( DISTINCT 95 ) AS SIGNED ) + 79 + - - 88 + - 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT 54 + 59 + - 67 + + + 37 + - 86 * 30 * - 48 + - CASE + + 16 WHEN CASE + 45 WHEN + 80 - + 99 THEN 46 + MIN ( ALL - - 27 ) WHEN + - 15 THEN + 0 ELSE - - 47 END + + MAX ( ALL 8 ) THEN 71 + + CAST ( + MAX ( DISTINCT 95 ) AS INTEGER ) + 79 + - - 88 + - 8 END
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + 35 - - + 11
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3208
SELECT 32, 13 * - MIN( + + 96 ) AS col1
----
32
-1248

skipif mysql # not compatible
query II rowsort label-3208
SELECT 32, 13 * - MIN ( + + 96 ) AS col1
----
32
-1248

query II rowsort
SELECT ALL - 5 AS col1, 78 AS col0
----
-5
78

query I rowsort
SELECT 44 * - - 56
----
2464

query I rowsort
SELECT 79 * + - 24 AS col2
----
-1896

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3212
SELECT + 17 / + 67 + + COUNT( * ) + 29 - CAST( NULL AS DECIMAL ) * 9, - 9 * - ( + ( 37 ) ) AS col2
----
NULL
333

skipif mysql # not compatible
query II rowsort label-3212
SELECT + 17 / + 67 + + COUNT ( * ) + 29 - CAST ( NULL AS REAL ) * 9, - 9 * - ( + ( 37 ) ) AS col2
----
NULL
333

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

query I rowsort
SELECT - 73 * 30 * + 44
----
-96360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3215
SELECT ALL - CASE - CAST( NULL AS SIGNED ) WHEN + 58 THEN + + COUNT( * ) WHEN + + AVG ( DISTINCT + 82 ) + - + 27 + + 64 THEN 35 * + NULLIF ( 88, - SUM( - - 32 ) ) / - + 98 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL - CASE - CAST ( NULL AS INTEGER ) WHEN + 58 THEN + + COUNT ( * ) WHEN + + AVG ( DISTINCT + 82 ) + - + 27 + + 64 THEN 35 * + NULLIF ( 88, - SUM ( - - 32 ) ) / - + 98 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( + - 62, - 41 / - ( - 80 ) ) AS col0
----
-62

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3218
SELECT ALL - ( - SUM( DISTINCT + 30 ) ) + + 88, ( 86 ) DIV 62 AS col1
----
118
1

skipif mysql # not compatible
query II rowsort label-3218
SELECT ALL - ( - SUM ( DISTINCT + 30 ) ) + + 88, ( 86 ) / 62 AS col1
----
118
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3219
SELECT CASE - + 47 WHEN + 55 THEN + ( + - ( COUNT( * ) ) ) ELSE + 30 END DIV - - ( - 85 ) * + - 39 * + + 85 + + 3 * - 27 - - - 93 - - - 84 - 53 + - - 38 DIV - SUM( + 16 ) + + 7
----
-306

skipif mysql # not compatible
query I rowsort label-3219
SELECT CASE - + 47 WHEN + 55 THEN + ( + - ( COUNT ( * ) ) ) ELSE + 30 END / - - ( - 85 ) * + - 39 * + + 85 + + 3 * - 27 - - - 93 - - - 84 - 53 + - - 38 / - SUM ( + 16 ) + + 7
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT + ( - COUNT( * ) ) * - 73 + COUNT( * ) + 34 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-3220
SELECT + ( - COUNT ( * ) ) * - 73 + COUNT ( * ) + 34 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL - - COALESCE ( + COUNT( ALL 11 ), COUNT( * ) + COUNT( * ) + - 95 + - ( + 26 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL - - COALESCE ( + COUNT ( ALL 11 ), COUNT ( * ) + COUNT ( * ) + - 95 + - ( + 26 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3222
SELECT DISTINCT 33 / 29 + COUNT( * ) + CAST( NULL AS SIGNED ) + - + 0 * + 7 * - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT 33 / 29 + COUNT ( * ) + CAST ( NULL AS INTEGER ) + - + 0 * + 7 * - - 70
----
NULL

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

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

query I rowsort
SELECT - 55 * COALESCE ( - 62, 12 ) + 83 + - - 52 + - + 63 * 73
----
-1054

query I rowsort
SELECT ALL ( 57 ) + - ( + ( - 54 ) )
----
111

onlyif mysql # DIV for integer division: 
query II rowsort label-3226
SELECT COALESCE ( - - 32, - + 17 * + + 18, 24 * + 37 + - 62 ) + + 4 DIV - - 65 * + 16, 51 col0
----
32
51

skipif mysql # not compatible
query II rowsort label-3226
SELECT COALESCE ( - - 32, - + 17 * + + 18, 24 * + 37 + - 62 ) + + 4 / - - 65 * + 16, 51 col0
----
32
51

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

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

query I rowsort
SELECT ( + 50 ) * 4 - - 21 AS col2
----
221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3229
SELECT DISTINCT CAST( - + 9 AS SIGNED ) - - - CASE 42 WHEN 58 / - 19 + 62 + COUNT( * ) THEN NULL WHEN + 30 THEN CAST( NULL AS SIGNED ) END, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3229
SELECT DISTINCT CAST ( - + 9 AS INTEGER ) - - - CASE 42 WHEN 58 / - 19 + 62 + COUNT ( * ) THEN NULL WHEN + 30 THEN CAST ( NULL AS INTEGER ) END, - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3230
SELECT 54 DIV + + ( + NULLIF ( 14, 89 ) )
----
3

skipif mysql # not compatible
query I rowsort label-3230
SELECT 54 / + + ( + NULLIF ( 14, 89 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT 60 + - SUM( ALL 18 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3231
SELECT 60 + - SUM ( ALL 18 ) AS col1
----
42

query II rowsort
SELECT 50 * + + 37, 70 col1
----
1850
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3233
SELECT 86 + - - 89 + + 52 * + 49 * 60, + CAST( NULL AS SIGNED ) * + - COUNT( DISTINCT - - 87 ) AS col0
----
153055
NULL

skipif mysql # not compatible
query II rowsort label-3233
SELECT 86 + - - 89 + + 52 * + 49 * 60, + CAST ( NULL AS INTEGER ) * + - COUNT ( DISTINCT - - 87 ) AS col0
----
153055
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3234
SELECT DISTINCT - 4 / + + NULLIF ( + 55, - + 32 ) * ( + 52 ) * - 24 + - ( - - 25 ) + - - CASE 34 WHEN - - 87 THEN - CAST( NULL AS SIGNED ) * ( 8 ) + + + 31 + ( - 0 ) + + - NULLIF ( - - MIN( DISTINCT + 67 ), - + 96 ) * + ( + 15 ) WHEN 25 THEN NULL WHEN - AVG ( ALL - CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END + 55 - + 42 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT - 4 / + + NULLIF ( + 55, - + 32 ) * ( + 52 ) * - 24 + - ( - - 25 ) + - - CASE 34 WHEN - - 87 THEN - CAST ( NULL AS INTEGER ) * ( 8 ) + + + 31 + ( - 0 ) + + - NULLIF ( - - MIN ( DISTINCT + 67 ), - + 96 ) * + ( + 15 ) WHEN 25 THEN NULL WHEN - AVG ( ALL - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END + 55 - + 42 / - COUNT ( * )
----
NULL

query I rowsort
SELECT 95 + 23 * + + 42 * - 27
----
-25987

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL - - SUM( DISTINCT - + 17 ) * + + 20
----
-340

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - - SUM ( DISTINCT - + 17 ) * + + 20
----
-340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3238
SELECT COUNT( * ) DIV - SUM( - - 30 ) DIV COUNT( * ) + - 35 + - 84
----
-119

skipif mysql # not compatible
query I rowsort label-3238
SELECT COUNT ( * ) / - SUM ( - - 30 ) / COUNT ( * ) + - 35 + - 84
----
-119

query I rowsort
SELECT - COALESCE ( - 99, - 29 ) AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3240
SELECT - 80 + + - 14 * 85 DIV 64 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3240
SELECT - 80 + + - 14 * 85 / 64 AS col2
----
-98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3242
SELECT - 82 DIV 86 + - - 0 + - + COUNT( * ) + + 59 * 43 * - 74 + + COALESCE ( 71, 32 + - CASE - 47 WHEN 2 * - 38 * 33 THEN NULL WHEN AVG ( 56 ) * - 70 + 75 + + - 12 + + 74 - + 81 + + CASE + CASE - 4 WHEN - + CASE 19 WHEN + COALESCE ( + CASE 53 WHEN - 56 THEN - 8 END, + 89 * - 7 ) THEN 38 * + 19 WHEN - ( + CAST( NULL AS SIGNED ) ) + + 69 THEN COUNT( * ) END THEN 22 WHEN - 28 THEN NULL END WHEN - ( 62 ) THEN - 82 * - MIN( - 88 * + 43 ) + - 40 * 19 END + + COUNT( * ) THEN 61 * 27 ELSE NULL END - - 63 )
----
-187668

skipif mysql # not compatible
query I rowsort label-3242
SELECT - 82 / 86 + - - 0 + - + COUNT ( * ) + + 59 * 43 * - 74 + + COALESCE ( 71, 32 + - CASE - 47 WHEN 2 * - 38 * 33 THEN NULL WHEN AVG ( 56 ) * - 70 + 75 + + - 12 + + 74 - + 81 + + CASE + CASE - 4 WHEN - + CASE 19 WHEN + COALESCE ( + CASE 53 WHEN - 56 THEN - 8 END, + 89 * - 7 ) THEN 38 * + 19 WHEN - ( + CAST ( NULL AS INTEGER ) ) + + 69 THEN COUNT ( * ) END THEN 22 WHEN - 28 THEN NULL END WHEN - ( 62 ) THEN - 82 * - MIN ( - 88 * + 43 ) + - 40 * 19 END + + COUNT ( * ) THEN 61 * 27 ELSE NULL END - - 63 )
----
-187668

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT - ( + 88 ) * + 43 - - COUNT( * ) - 30 + + 3 * - - 47
----
-3672

skipif mysql # not compatible
query I rowsort label-3243
SELECT - ( + 88 ) * + 43 - - COUNT ( * ) - 30 + + 3 * - - 47
----
-3672

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT DISTINCT - 14 DIV + + 33
----
0

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT - 14 / + + 33
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3245
SELECT DISTINCT - COUNT( * ) + + 24 + + CAST( NULL AS SIGNED ) + - - 94 * - + COUNT( + 1 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - COUNT ( * ) + + 24 + + CAST ( NULL AS INTEGER ) + - - 94 * - + COUNT ( + 1 ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 20 + + 96 AS col0
----
76

query I rowsort
SELECT 83 - + 36 AS col1
----
47

query I rowsort
SELECT 19 + 57
----
76

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

query I rowsort
SELECT + 92 * 63 + + 71
----
5867

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3252
SELECT ALL 54 DIV ( 21 ) * + CAST( - + 31 AS SIGNED ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL 54 / ( 21 ) * + CAST ( - + 31 AS INTEGER ) AS col2
----
-62

query I rowsort
SELECT DISTINCT COALESCE ( 40, + 21, 49 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT + 95 - + 45 + 72 * + NULLIF ( - 85, + 75 ) * - COUNT( * ) AS col0
----
6170

skipif mysql # not compatible
query I rowsort label-3254
SELECT + 95 - + 45 + 72 * + NULLIF ( - 85, + 75 ) * - COUNT ( * ) AS col0
----
6170

query I rowsort
SELECT - 83 * 73
----
-6059

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT + 89 * - SUM( 75 )
----
-6675

skipif mysql # not compatible
query I rowsort label-3256
SELECT + 89 * - SUM ( 75 )
----
-6675

query I rowsort
SELECT - 59 + + - 33 col2
----
-92

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

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

query I rowsort
SELECT + 41 - + 57 + 84 * 32
----
2672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3260
SELECT ALL 47 * + CASE - + 99 WHEN 27 - - 7 * - 10 + + 96 THEN NULL ELSE COUNT( * ) / - ( CAST( NULL AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL 47 * + CASE - + 99 WHEN 27 - - 7 * - 10 + + 96 THEN NULL ELSE COUNT ( * ) / - ( CAST ( NULL AS INTEGER ) ) END AS col1
----
NULL

query I rowsort
SELECT + 53 * + 20 AS col0
----
1060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3262
SELECT + 58 * - 26 DIV - - ( - ( COUNT( * ) ) )
----
1508

skipif mysql # not compatible
query I rowsort label-3262
SELECT + 58 * - 26 / - - ( - ( COUNT ( * ) ) )
----
1508

query I rowsort
SELECT DISTINCT - 36 * 90
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT - SUM( - - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3264
SELECT - SUM ( - - 0 ) AS col2
----
0

query II rowsort
SELECT DISTINCT 71, 0 AS col2
----
71
0

query I rowsort
SELECT ALL 11 * + 95 AS col1
----
1045

onlyif mysql # DIV for integer division: 
query I rowsort label-3267
SELECT + 91 DIV 19
----
4

skipif mysql # not compatible
query I rowsort label-3267
SELECT + 91 / 19
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3268
SELECT - - 15 * + 21 + - + CAST( + + 36 AS SIGNED ) AS col0
----
279

skipif mysql # not compatible
query I rowsort label-3268
SELECT - - 15 * + 21 + - + CAST ( + + 36 AS INTEGER ) AS col0
----
279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3269
SELECT DISTINCT + COUNT( * ) DIV 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT + COUNT ( * ) / 81 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3270
SELECT ALL - 76 * + + MAX( 13 ), 6 DIV - COUNT( * ) AS col0
----
-988
-6

skipif mysql # not compatible
query II rowsort label-3270
SELECT ALL - 76 * + + MAX ( 13 ), 6 / - COUNT ( * ) AS col0
----
-988
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + - SUM( - + 89 ) + - CASE + MIN( ALL - 55 ) WHEN COUNT( * ) / + 91 + + COUNT( * ) THEN NULL ELSE - COALESCE ( - 74, - COALESCE ( + 23, 21 + + ( - - COUNT( * ) ) + + 29 * COUNT( * ) ) * + COUNT( * ) ) + - + 20 END AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3271
SELECT + - SUM ( - + 89 ) + - CASE + MIN ( ALL - 55 ) WHEN COUNT ( * ) / + 91 + + COUNT ( * ) THEN NULL ELSE - COALESCE ( - 74, - COALESCE ( + 23, 21 + + ( - - COUNT ( * ) ) + + 29 * COUNT ( * ) ) * + COUNT ( * ) ) + - + 20 END AS col1
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-3272
SELECT - - 65 DIV - 33 + + 23 AS col0, + 76
----
22
76

skipif mysql # not compatible
query II rowsort label-3272
SELECT - - 65 / - 33 + + 23 AS col0, + 76
----
22
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3273
SELECT DISTINCT 36 DIV + 47 * - 65 + COALESCE ( - 66, 24 + + ( - 2 ) * - 2 * 82 + - 15, 85 + - 64 + + - COUNT( 38 ) ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT 36 / + 47 * - 65 + COALESCE ( - 66, 24 + + ( - 2 ) * - 2 * 82 + - 15, 85 + - 64 + + - COUNT ( 38 ) ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT DISTINCT + + COUNT( * ) * + + 32 + 91 + + 72 + + + ( - 55 )
----
140

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT + + COUNT ( * ) * + + 32 + 91 + + 72 + + + ( - 55 )
----
140

query II rowsort
SELECT ALL + - 38, + 91 AS col1
----
-38
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3276
SELECT - + MIN( ( + - 52 ) ) * + 91 * 48 / 58 + - - 28 + + COUNT( * ) * - NULLIF ( + + ( - - CAST( NULL AS SIGNED ) ), - 33 + - COUNT( * ) / 34 ) AS col1, + MAX( DISTINCT - - 71 ) AS col0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-3276
SELECT - + MIN ( ( + - 52 ) ) * + 91 * 48 / 58 + - - 28 + + COUNT ( * ) * - NULLIF ( + + ( - - CAST ( NULL AS INTEGER ) ), - 33 + - COUNT ( * ) / 34 ) AS col1, + MAX ( DISTINCT - - 71 ) AS col0
----
NULL
71

query I rowsort
SELECT - 67 * + 38
----
-2546

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT COALESCE ( 61, COUNT( * ) + + MIN( ALL + - 74 ), - + 75 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3278
SELECT COALESCE ( 61, COUNT ( * ) + + MIN ( ALL + - 74 ), - + 75 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3279
SELECT + 88 * 48 + - 40 * 29 AS col2, 80 + - COUNT( * ) AS col0
----
3064
79

skipif mysql # not compatible
query II rowsort label-3279
SELECT + 88 * 48 + - 40 * 29 AS col2, 80 + - COUNT ( * ) AS col0
----
3064
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT DISTINCT + COUNT( * ) * - 47 - - - ( - 33 ) * 62 - - 87 col2
----
2086

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT + COUNT ( * ) * - 47 - - - ( - 33 ) * 62 - - 87 col2
----
2086

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL + MIN( - NULLIF ( 76, 64 + 82 ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL + MIN ( - NULLIF ( 76, 64 + 82 ) ) AS col1
----
-76

query I rowsort
SELECT ALL - 21 * 78 AS col2
----
-1638

query I rowsort
SELECT - 19 + - COALESCE ( + 6, - 91 ) AS col1
----
-25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3285
SELECT DISTINCT - 94 * COUNT( * ) * 59 / - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT - 94 * COUNT ( * ) * 59 / - CAST ( NULL AS INTEGER ) col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3287
SELECT - 83 DIV + ( + MIN( - 55 ) ) col0, - 6 * + - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3287
SELECT - 83 / + ( + MIN ( - 55 ) ) col0, - 6 * + - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3288
SELECT - MIN( ALL + - 87 ) DIV - 53 + + - SUM( - 33 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3288
SELECT - MIN ( ALL + - 87 ) / - 53 + + - SUM ( - 33 ) AS col2
----
32

query I rowsort
SELECT DISTINCT - 4 * + 75
----
-300

query I rowsort
SELECT + NULLIF ( 18, 14 + + 25 ) + + 29
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT - SUM( - 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3291
SELECT - SUM ( - 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL ( MAX( ALL 13 ) )
----
13

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL ( MAX ( ALL 13 ) )
----
13

query II rowsort
SELECT DISTINCT - 32 + + + 93 - + 29 * - + 1 + + COALESCE ( 92, - 23 ) AS col0, + 21 + 90
----
182
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT ALL + 77 + CAST( NULL AS SIGNED ) + CAST( - 76 AS SIGNED ) * - - 83 * - + AVG ( + 79 ) + 70 + - 52 + ( + 63 ) * + 76 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL + 77 + CAST ( NULL AS INTEGER ) + CAST ( - 76 AS INTEGER ) * - - 83 * - + AVG ( + 79 ) + 70 + - 52 + ( + 63 ) * + 76 * 39
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3295
SELECT ( 39 ), 6 * 29 DIV + 43 AS col0
----
39
4

skipif mysql # not compatible
query II rowsort label-3295
SELECT ( 39 ), 6 * 29 / + 43 AS col0
----
39
4

query I rowsort
SELECT ALL - 80 * + 42
----
-3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT - - 74 * + ( NULLIF ( + ( + + 72 ), 43 * + 74 / - - CAST( NULL AS SIGNED ) + ( - - 25 ) - - 19 + - CAST( NULL AS SIGNED ) * - 89 * - 93 / 33 + - NULLIF ( - - 41, + 53 ) ) ) * + 42 * 19 col1
----
4251744

skipif mysql # not compatible
query I rowsort label-3297
SELECT - - 74 * + ( NULLIF ( + ( + + 72 ), 43 * + 74 / - - CAST ( NULL AS INTEGER ) + ( - - 25 ) - - 19 + - CAST ( NULL AS INTEGER ) * - 89 * - 93 / 33 + - NULLIF ( - - 41, + 53 ) ) ) * + 42 * 19 col1
----
4251744

query II rowsort
SELECT + 98 + - 81 AS col2, + 19
----
17
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT - CASE - 40 WHEN + COALESCE ( 48, - + 52 + - - 18 ) + COUNT( * ) THEN NULL ELSE - 19 END AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3299
SELECT - CASE - 40 WHEN + COALESCE ( 48, - + 52 + - - 18 ) + COUNT ( * ) THEN NULL ELSE - 19 END AS col1
----
19

query I rowsort
SELECT DISTINCT + ( 95 ) * 23
----
2185

query I rowsort
SELECT ALL 81 + - 57 - - 58
----
82

query I rowsort
SELECT ALL - - 40 * - - 80 * - 3
----
-9600

query I rowsort
SELECT + ( - 52 ) * - 10 * 70 * + 25 - 5 AS col0
----
909995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT COALESCE ( - 24, - COUNT( * ) DIV - - 57 + - 79 )
----
-24

skipif mysql # not compatible
query I rowsort label-3304
SELECT COALESCE ( - 24, - COUNT ( * ) / - - 57 + - 79 )
----
-24

query I rowsort
SELECT + + 48 * 79
----
3792

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT + - 42 * + 72 + - COUNT( * ) * 58 AS col1
----
-3082

skipif mysql # not compatible
query I rowsort label-3306
SELECT + - 42 * + 72 + - COUNT ( * ) * 58 AS col1
----
-3082

onlyif mysql # DIV for integer division: 
query I rowsort label-3307
SELECT + 35 DIV + 38 + - 51 + + 66 * + 54 AS col1
----
3513

skipif mysql # not compatible
query I rowsort label-3307
SELECT + 35 / + 38 + - 51 + + 66 * + 54 AS col1
----
3513

query I rowsort
SELECT + + 9 * - 14 - + - 78
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3309
SELECT ALL + 4 DIV + 71 + + 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL + 4 / + 71 + + 62 AS col1
----
62

query I rowsort
SELECT - 28 + + 25 * - + 16 * - - 97 * - - 59 col1
----
-2289228

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT + COUNT( - 10 ) * + 3 + - ( + 37 )
----
-34

skipif mysql # not compatible
query I rowsort label-3311
SELECT + COUNT ( - 10 ) * + 3 + - ( + 37 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3312
SELECT ALL NULLIF ( + - 67, CAST( - COALESCE ( - - 38, - 33 DIV - 4 + 7 + 19 ) AS SIGNED ) ) DIV - NULLIF ( 56, 77 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL NULLIF ( + - 67, CAST ( - COALESCE ( - - 38, - 33 / - 4 + 7 + 19 ) AS INTEGER ) ) / - NULLIF ( 56, 77 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT - 35 - - - COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT - 35 - - - COUNT ( * ) AS col2
----
-36

query I rowsort
SELECT ALL - NULLIF ( 9, + - 5 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT DISTINCT ( - 57 ) * - SUM( - - 41 ) * + 28 + COUNT( * ) col2
----
65437

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT ( - 57 ) * - SUM ( - - 41 ) * + 28 + COUNT ( * ) col2
----
65437

query I rowsort
SELECT 60 * 65
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL - SUM( DISTINCT - 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL - SUM ( DISTINCT - 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT SUM( ALL 34 ) * - 91 * - 32
----
99008

skipif mysql # not compatible
query I rowsort label-3318
SELECT SUM ( ALL 34 ) * - 91 * - 32
----
99008

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3319
SELECT DISTINCT 94 + + - COUNT( * ) + + 68 + + COUNT( * ) * - + 9 + + 97 DIV 54 - + + 28 AS col2, - 59
----
125
-59

skipif mysql # not compatible
query II rowsort label-3319
SELECT DISTINCT 94 + + - COUNT ( * ) + + 68 + + COUNT ( * ) * - + 9 + + 97 / 54 - + + 28 AS col2, - 59
----
125
-59

query I rowsort
SELECT 79 - + 67 - + 67 AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3321
SELECT DISTINCT 70 + + 52 + + 6 DIV - + 88 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT 70 + + 52 + + 6 / - + 88 AS col1
----
122

query I rowsort
SELECT DISTINCT - 46 + - + 39
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT ALL + 91 + - - 85 - - COUNT( * ), - ( + 94 ) AS col2
----
177
-94

skipif mysql # not compatible
query II rowsort label-3323
SELECT ALL + 91 + - - 85 - - COUNT ( * ), - ( + 94 ) AS col2
----
177
-94

query I rowsort
SELECT ALL - 28 + + 77 AS col0
----
49

query I rowsort
SELECT DISTINCT + 73 * 60
----
4380

query I rowsort
SELECT DISTINCT - 51 + + - 34 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT 99 - - 77 + + MAX( + NULLIF ( + - 92, - - 42 ) ) * + MIN( + + 87 ) * - 5
----
40196

skipif mysql # not compatible
query I rowsort label-3327
SELECT 99 - - 77 + + MAX ( + NULLIF ( + - 92, - - 42 ) ) * + MIN ( + + 87 ) * - 5
----
40196

query I rowsort
SELECT ALL - + 80 + + + 21 + - 95
----
-154

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3330
SELECT DISTINCT 88 DIV MAX( 32 ) DIV - + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT 88 / MAX ( 32 ) / - + 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL SUM( DISTINCT - + CASE - 52 WHEN + 98 * + 79 * - 30 THEN - 60 ELSE - - 28 * - 28 + + 34 END )
----
750

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL SUM ( DISTINCT - + CASE - 52 WHEN + 98 * + 79 * - 30 THEN - 60 ELSE - - 28 * - 28 + + 34 END )
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT CASE + - 27 WHEN + 15 THEN + + 83 WHEN + 48 + - + COUNT( DISTINCT 67 ) - - 93 * 56 * + 87 + + 0 - + - 24 * - 59 * 72 THEN NULL ELSE + - 3 END col1
----
-3

skipif mysql # not compatible
query I rowsort label-3332
SELECT CASE + - 27 WHEN + 15 THEN + + 83 WHEN + 48 + - + COUNT ( DISTINCT 67 ) - - 93 * 56 * + 87 + + 0 - + - 24 * - 59 * 72 THEN NULL ELSE + - 3 END col1
----
-3

query I rowsort
SELECT - 98 * + - 13 * + 87
----
110838

query II rowsort
SELECT - 42 + + ( + - 62 ) AS col1, 88 AS col2
----
-104
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3335
SELECT - + 68 * + 26 * - COUNT( * ) - - 17 + - CAST( NULL AS SIGNED ) + + CASE WHEN NOT + COUNT( + 63 ) IN ( + + 52 * - 34 * - COUNT( * ) + - COUNT( * ), + 94, + - 9, 20 ) THEN + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3335
SELECT - + 68 * + 26 * - COUNT ( * ) - - 17 + - CAST ( NULL AS INTEGER ) + + CASE WHEN NOT + COUNT ( + 63 ) IN ( + + 52 * - 34 * - COUNT ( * ) + - COUNT ( * ), + 94, + - 9, 20 ) THEN + - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + 65 + + + 77 - + 41 * - 5 AS col0
----
347

query I rowsort
SELECT ALL + 30 * - + 75 AS col2
----
-2250

onlyif mysql # DIV for integer division: 
query I rowsort label-3338
SELECT ALL - - COALESCE ( 57, 27 + - - AVG ( ALL + 44 ) * - + 74 DIV - - 13 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL - - COALESCE ( 57, 27 + - - AVG ( ALL + 44 ) * - + 74 / - - 13 ) col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3339
SELECT ALL - 45, - MIN( + 60 ) AS col1
----
-45
-60

skipif mysql # not compatible
query II rowsort label-3339
SELECT ALL - 45, - MIN ( + 60 ) AS col1
----
-45
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT + CASE - COUNT( * ) WHEN COUNT( * ) THEN - CAST( NULL AS SIGNED ) - - + 91 END / + MAX( 32 ) + - COUNT( * ) + - + COALESCE ( - COUNT( * ), + ( + - COUNT( DISTINCT 3 ) ) + 46 * 82, NULLIF ( + + ( 92 ), 32 ) - - 94 + + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) - - + 91 END / + MAX ( 32 ) + - COUNT ( * ) + - + COALESCE ( - COUNT ( * ), + ( + - COUNT ( DISTINCT 3 ) ) + 46 * 82, NULLIF ( + + ( 92 ), 32 ) - - 94 + + 52 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3341
SELECT DISTINCT - 93 AS col1, - COUNT( * ) - + 48 DIV - + 68 * - 87
----
-93
-1

skipif mysql # not compatible
query II rowsort label-3341
SELECT DISTINCT - 93 AS col1, - COUNT ( * ) - + 48 / - + 68 * - 87
----
-93
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT 64 + - 28 DIV 4 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3342
SELECT 64 + - 28 / 4 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT COUNT( * ) * 45 + + + 95 + CASE + 13 WHEN - 51 THEN NULL ELSE - SUM( DISTINCT - ( 10 ) ) * - 85 * + 27 + + 30 END * - 33 + + - 3 - - 19 + - 36
----
756480

skipif mysql # not compatible
query I rowsort label-3343
SELECT COUNT ( * ) * 45 + + + 95 + CASE + 13 WHEN - 51 THEN NULL ELSE - SUM ( DISTINCT - ( 10 ) ) * - 85 * + 27 + + 30 END * - 33 + + - 3 - - 19 + - 36
----
756480

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3344
SELECT + 92 * + 78 + CAST( 56 AS SIGNED ) AS col1, + 51
----
7232
51

skipif mysql # not compatible
query II rowsort label-3344
SELECT + 92 * + 78 + CAST ( 56 AS INTEGER ) AS col1, + 51
----
7232
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3345
SELECT - COUNT( * ) * + CASE - 69 WHEN 60 THEN + 77 * + - 66 + - 51 WHEN + 56 THEN + 5 WHEN + - 88 / COUNT( * ) + - - 7 + 77 THEN NULL END + - ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT - COUNT ( * ) * + CASE - 69 WHEN 60 THEN + 77 * + - 66 + - 51 WHEN + 56 THEN + 5 WHEN + - 88 / COUNT ( * ) + - - 7 + 77 THEN NULL END + - ( - CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT + 43 AS col1, - ( - 32 ) AS col2
----
43
32

query I rowsort
SELECT 95 * + 0
----
0

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

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL COUNT ( * ) + + 86 AS col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT ALL 36 DIV + 87 * 82
----
0

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL 36 / + 87 * 82
----
0

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

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL 94 + COUNT ( * ) + COUNT ( * ) AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3351
SELECT DISTINCT 53 + ( + CAST( NULL AS SIGNED ) ) + 43 + + + 51 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT 53 + ( + CAST ( NULL AS INTEGER ) ) + 43 + + + 51 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3352
SELECT CASE 36 WHEN + CASE - 37 WHEN - 30 THEN + - 23 WHEN + AVG ( ALL 15 ) THEN + + 44 + 41 END * - 15 - + 64 THEN + + 35 DIV 98 + - - MAX( - 99 ) ELSE + 95 END * COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-3352
SELECT CASE 36 WHEN + CASE - 37 WHEN - 30 THEN + - 23 WHEN + AVG ( ALL 15 ) THEN + + 44 + 41 END * - 15 - + 64 THEN + + 35 / 98 + - - MAX ( - 99 ) ELSE + 95 END * COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL 88 + - + ( + 89 ) + + 30 * - - ( SUM( - 68 ) )
----
-2041

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL 88 + - + ( + 89 ) + + 30 * - - ( SUM ( - 68 ) )
----
-2041

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT DISTINCT 47 * - 43 * + 28 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT 47 * - 43 * + 28 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 82 * - 40
----
-3280

query I rowsort
SELECT 85 + - AVG ( + 10 ) * + CASE - 50 WHEN + 26 + + - 75 THEN + - 93 + + 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3357
SELECT - 2 AS col1, COUNT( - 21 )
----
-2
1

skipif mysql # not compatible
query II rowsort label-3357
SELECT - 2 AS col1, COUNT ( - 21 )
----
-2
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3358
SELECT ALL - SUM( DISTINCT + - 54 ) - - 51 + 27 * + + 43 * + 69 AS col1, 28
----
80214
28

skipif mysql # not compatible
query II rowsort label-3358
SELECT ALL - SUM ( DISTINCT + - 54 ) - - 51 + 27 * + + 43 * + 69 AS col1, 28
----
80214
28

query II rowsort
SELECT 65 AS col2, - 80 AS col2
----
65
-80

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

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + COUNT ( + + 29 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 13
----
NULL

query I rowsort
SELECT ALL + 97 * - COALESCE ( 1, 43 * - 15 ) * + 73
----
-7081

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL + ( + - CASE WHEN NOT ( NOT + + COUNT( * ) BETWEEN + - COALESCE ( 38, + - ( - 0 ) ) / + + COUNT( * ) * + 51 AND ( - 87 + 99 ) ) THEN NULL WHEN NULL IS NULL THEN 23 * + 22 + - 33 / 98 / - 67 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL + ( + - CASE WHEN NOT ( NOT + + COUNT ( * ) BETWEEN + - COALESCE ( 38, + - ( - 0 ) ) / + + COUNT ( * ) * + 51 AND ( - 87 + 99 ) ) THEN NULL WHEN NULL IS NULL THEN 23 * + 22 + - 33 / 98 / - 67 END ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3364
SELECT DISTINCT + + 23 DIV + 25 - - 32 - + ( COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT + + 23 / + 25 - - 32 - + ( COUNT ( * ) )
----
31

query I rowsort
SELECT NULLIF ( - 84, 86 * - 4 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT - 4 * COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3366
SELECT - 4 * COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT ALL + 37 * + 33 * - + 43
----
-52503

query I rowsort
SELECT + 83 + - 89
----
-6

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

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

query I rowsort
SELECT + 96 + 53 * + 3 * + 78 * - 3 * - 84 AS col2
----
3125400

query I rowsort
SELECT ALL + 76 * + 91 AS col0
----
6916

query I rowsort
SELECT ALL + 1 * + 72
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL + + 68 * + + MAX( 86 ) + + ( + 11 ) + + + 36 * + - 30 - + 25 * 57 - - COUNT( * ) AS col2
----
3355

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL + + 68 * + + MAX ( 86 ) + + ( + 11 ) + + + 36 * + - 30 - + 25 * 57 - - COUNT ( * ) AS col2
----
3355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT - ( + CAST( + 99 AS SIGNED ) ) * + - 34 AS col1
----
3366

skipif mysql # not compatible
query I rowsort label-3374
SELECT - ( + CAST ( + 99 AS INTEGER ) ) * + - 34 AS col1
----
3366

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT ALL COUNT( * ) * + MAX( DISTINCT + 25 ) + - 99 * - 72 AS col0
----
7153

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT + 25 ) + - 99 * - 72 AS col0
----
7153

query I rowsort
SELECT NULLIF ( - ( - 31 ), - - 80 ) AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3378
SELECT ALL - COALESCE ( - ( - + 92 ), - 53 DIV + 52 + + 5, + COUNT( ALL - + 93 ) ) * 42 - CAST( 72 AS SIGNED ) * COUNT( * ) * - 54 + - 79 + - 27 + + + COUNT( * ) + + 45 * - - 97 - + + ( MIN( DISTINCT + 70 ) )
----
4214

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL - COALESCE ( - ( - + 92 ), - 53 / + 52 + + 5, + COUNT ( ALL - + 93 ) ) * 42 - CAST ( 72 AS INTEGER ) * COUNT ( * ) * - 54 + - 79 + - 27 + + + COUNT ( * ) + + 45 * - - 97 - + + ( MIN ( DISTINCT + 70 ) )
----
4214

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3379
SELECT ALL 75 * - - 73 + - 6 + + ( - COUNT( * ) ) AS col0, 68 DIV 93 + + 80
----
5468
80

skipif mysql # not compatible
query II rowsort label-3379
SELECT ALL 75 * - - 73 + - 6 + + ( - COUNT ( * ) ) AS col0, 68 / 93 + + 80
----
5468
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT DISTINCT 43 * - + ( 37 ) * + + 66 + + + NULLIF ( - COUNT( * ), + 40 - + CAST( - 80 AS SIGNED ) ) + + MAX( ALL - 37 ) + - + 42
----
-105086

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT 43 * - + ( 37 ) * + + 66 + + + NULLIF ( - COUNT ( * ), + 40 - + CAST ( - 80 AS INTEGER ) ) + + MAX ( ALL - 37 ) + - + 42
----
-105086

query II rowsort
SELECT ALL + 91 * 9 AS col2, - 63 AS col2
----
819
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3382
SELECT ALL + 40 * ( 92 ) + - 43 + - 87 * MAX( - 47 ) * 33 AS col2, + COUNT( * ) * - + 80 AS col1
----
138574
-80

skipif mysql # not compatible
query II rowsort label-3382
SELECT ALL + 40 * ( 92 ) + - 43 + - 87 * MAX ( - 47 ) * 33 AS col2, + COUNT ( * ) * - + 80 AS col1
----
138574
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT MIN( DISTINCT ( + 17 ) ) col1
----
17

skipif mysql # not compatible
query I rowsort label-3383
SELECT MIN ( DISTINCT ( + 17 ) ) col1
----
17

query I rowsort
SELECT ALL 18 * - 95 + - CASE + 63 WHEN + 86 THEN - + 36 WHEN - 62 THEN NULL ELSE NULL END + + - 51
----
NULL

query I rowsort
SELECT DISTINCT - 73 * + 22 * + 49
----
-78694

query I rowsort
SELECT DISTINCT + NULLIF ( 14, - - 99 )
----
14

query I rowsort
SELECT + 76 * - 51 AS col1
----
-3876

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT - COALESCE ( MIN( - 67 ), - + 18 + - 0 * 40, + + 40 * + COUNT( * ) + - 98 ) + - + 89 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-3388
SELECT - COALESCE ( MIN ( - 67 ), - + 18 + - 0 * 40, + + 40 * + COUNT ( * ) + - 98 ) + - + 89 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT SUM( DISTINCT - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-3389
SELECT SUM ( DISTINCT - 51 )
----
-51

query I rowsort
SELECT + 23 + - 45 - - 94 + 5 AS col2
----
77

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3392
SELECT DISTINCT 87 - - 40 DIV - + 82 * ( + 89 ) AS col1, + COALESCE ( - 89, SUM( + 34 ), - COUNT( * ) + + COALESCE ( + + 63, + COUNT( * ), - 81 ) ) AS col1
----
87
-89

skipif mysql # not compatible
query II rowsort label-3392
SELECT DISTINCT 87 - - 40 / - + 82 * ( + 89 ) AS col1, + COALESCE ( - 89, SUM ( + 34 ), - COUNT ( * ) + + COALESCE ( + + 63, + COUNT ( * ), - 81 ) ) AS col1
----
87
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3393
SELECT ALL MAX( - 71 ) DIV + + 85 * - + 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL MAX ( - 71 ) / + + 85 * - + 2 AS col1
----
0

query I rowsort
SELECT + 35 + + 81 * 78 + 52
----
6405

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT - 99 * + COUNT( * ) * - - 77 * - 97 AS col2
----
739431

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT - 99 * + COUNT ( * ) * - - 77 * - 97 AS col2
----
739431

query I rowsort
SELECT + 2 + + ( + + 97 )
----
99

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

skipif mysql # not compatible
query I rowsort label-3397
SELECT - - ( 79 ) * - COUNT ( * )
----
-79

query I rowsort
SELECT - + 22 - - 90 * - 11 * - 81 AS col1
----
80168

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

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

query II rowsort
SELECT ALL - 64 + - 84 AS col2, + 34 * - 65 * - 25
----
-148
55250

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT + - 59 + - - MAX( - 64 ) col2
----
-123

skipif mysql # not compatible
query I rowsort label-3401
SELECT + - 59 + - - MAX ( - 64 ) col2
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT ALL + 31 + + + 92 * + 25 + + - MAX( 75 ) * CAST( NULL AS SIGNED ) * + COUNT( * ) * 68 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL + 31 + + + 92 * + 25 + + - MAX ( 75 ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 68 * - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + COUNT( DISTINCT - 48 ) + 75 * ( + 34 ) col0
----
2551

skipif mysql # not compatible
query I rowsort label-3403
SELECT + COUNT ( DISTINCT - 48 ) + 75 * ( + 34 ) col0
----
2551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3404
SELECT + COUNT( DISTINCT - 80 ) * - 49 - 67 / CAST( NULL AS SIGNED ) - - - 83 + + ( + + 8 ) * AVG ( 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT + COUNT ( DISTINCT - 80 ) * - 49 - 67 / CAST ( NULL AS INTEGER ) - - - 83 + + ( + + 8 ) * AVG ( 66 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3405
SELECT ALL + COALESCE ( - + 79, + - 94 DIV - COUNT( * ) ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL + COALESCE ( - + 79, + - 94 / - COUNT ( * ) ) AS col2
----
-79

query I rowsort
SELECT + 37 + 56
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT COUNT( - 83 ) * + MIN( ALL - 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT COUNT ( - 83 ) * + MIN ( ALL - 48 ) AS col1
----
-48

query I rowsort
SELECT 95 * - 58 * + 94 + - + 38 AS col0
----
-517978

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT ALL + COALESCE ( + - 72, - 76, - COUNT( * ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL + COALESCE ( + - 72, - 76, - COUNT ( * ) ) AS col0
----
-72

query I rowsort
SELECT DISTINCT + ( 99 ) col1
----
99

query II rowsort
SELECT + 50 col1, 83
----
50
83

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

query I rowsort
SELECT - 47 * 40 AS col0
----
-1880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3414
SELECT - 53 + 65 / - + MIN( - - CAST( NULL AS SIGNED ) ) + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT - 53 + 65 / - + MIN ( - - CAST ( NULL AS INTEGER ) ) + 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT - 88 * - 27 * + NULLIF ( CAST( - 48 AS SIGNED ), 53 / - - 45 ) + - 47
----
-114095

skipif mysql # not compatible
query I rowsort label-3415
SELECT - 88 * - 27 * + NULLIF ( CAST ( - 48 AS INTEGER ), 53 / - - 45 ) + - 47
----
-114095

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT 63 * + - 5 - MIN( 54 ) + - + 22
----
-391

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT 63 * + - 5 - MIN ( 54 ) + - + 22
----
-391

query I rowsort
SELECT ALL 28 * 87
----
2436

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ( - NULLIF ( + COUNT( * ), MAX( - 58 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3419
SELECT ( - NULLIF ( + COUNT ( * ), MAX ( - 58 ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - 95 * - SUM( DISTINCT 71 )
----
6745

skipif mysql # not compatible
query I rowsort label-3420
SELECT - 95 * - SUM ( DISTINCT 71 )
----
6745

query I rowsort
SELECT + - 51 + + ( + 14 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT DISTINCT + 87 DIV - 10 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT + 87 / - 10 AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT ALL 61 + - + CAST( + 21 AS SIGNED ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL 61 + - + CAST ( + 21 AS INTEGER ) AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT DISTINCT + 43 DIV + 42 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT + 43 / + 42 AS col1
----
1

query I rowsort
SELECT DISTINCT 10 + + + 77 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3426
SELECT DISTINCT 50 AS col2, - CAST( NULL AS DECIMAL ) - - ( COUNT( * ) ) AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-3426
SELECT DISTINCT 50 AS col2, - CAST ( NULL AS REAL ) - - ( COUNT ( * ) ) AS col0
----
50
NULL

query I rowsort
SELECT ALL + 93 + 28
----
121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3428
SELECT CAST( NULL AS DECIMAL ) * + 75 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT CAST ( NULL AS REAL ) * + 75 * COUNT ( * )
----
NULL

query I rowsort
SELECT + 11 * + 71
----
781

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT 33 + MAX( + 88 ) + COUNT( * ) * + COUNT( * ) * 26 + + 14 + - 78 * COUNT( - + 8 )
----
83

skipif mysql # not compatible
query I rowsort label-3430
SELECT 33 + MAX ( + 88 ) + COUNT ( * ) * + COUNT ( * ) * 26 + + 14 + - 78 * COUNT ( - + 8 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT ALL COUNT( ALL - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL COUNT ( ALL - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3432
SELECT 89 + COALESCE ( + 97, - ( - ( + CASE - - 54 WHEN - 96 THEN + MAX( ALL + 61 ) WHEN + 78 THEN NULL WHEN + COUNT( * ) + + ( 65 ) THEN - + 78 * + 9 * 12 * - 66 + + 17 * - + 26 END ) ) + - COALESCE ( + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), + 56 * - SUM( ALL - - 99 ) * + AVG ( 87 ) DIV - - 77 + - 66 * + 71, - 93, 30 + + - 84 ), - + COUNT( * ) ) - + 68 * + 82
----
-5390

skipif mysql # not compatible
query I rowsort label-3432
SELECT 89 + COALESCE ( + 97, - ( - ( + CASE - - 54 WHEN - 96 THEN + MAX ( ALL + 61 ) WHEN + 78 THEN NULL WHEN + COUNT ( * ) + + ( 65 ) THEN - + 78 * + 9 * 12 * - 66 + + 17 * - + 26 END ) ) + - COALESCE ( + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), + 56 * - SUM ( ALL - - 99 ) * + AVG ( 87 ) / - - 77 + - 66 * + 71, - 93, 30 + + - 84 ), - + COUNT ( * ) ) - + 68 * + 82
----
-5390

query I rowsort
SELECT ALL 19 + 62 AS col1
----
81

query I rowsort
SELECT DISTINCT 78 + + 50 * + + 25 + 90 * - 42
----
-2452

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT DISTINCT - COUNT( * ) + 98 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT - COUNT ( * ) + 98 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL - ( - 93 ) + 27 * COUNT( * ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL - ( - 93 ) + 27 * COUNT ( * ) AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT 95 * 4 * - COALESCE ( - COUNT( * ), + - 98 ) AS col2
----
380

skipif mysql # not compatible
query I rowsort label-3437
SELECT 95 * 4 * - COALESCE ( - COUNT ( * ), + - 98 ) AS col2
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ( - 93 ) - - + 69 - - 83 * + 52 + SUM( 30 ) AS col0
----
4322

skipif mysql # not compatible
query I rowsort label-3438
SELECT ( - 93 ) - - + 69 - - 83 * + 52 + SUM ( 30 ) AS col0
----
4322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3439
SELECT DISTINCT + 82 - + + COUNT( * ) * + - ( 45 ), CAST( NULL AS SIGNED ) * + AVG ( DISTINCT - - 28 ) AS col0
----
127
NULL

skipif mysql # not compatible
query II rowsort label-3439
SELECT DISTINCT + 82 - + + COUNT ( * ) * + - ( 45 ), CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT - - 28 ) AS col0
----
127
NULL

query I rowsort
SELECT ( + + 20 ) * + 12
----
240

query I rowsort
SELECT ALL 5 * + NULLIF ( + 76, 15 )
----
380

onlyif mysql # DIV for integer division: 
query I rowsort label-3442
SELECT DISTINCT 64 - 69 DIV 52 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT 64 - 69 / 52 AS col0
----
63

query I rowsort
SELECT ALL 23 * - 22
----
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT - MIN( + 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT - MIN ( + 92 )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3445
SELECT + COUNT( * ) DIV 62 AS col0, 19
----
0
19

skipif mysql # not compatible
query II rowsort label-3445
SELECT + COUNT ( * ) / 62 AS col0, 19
----
0
19

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

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

query I rowsort
SELECT 22 - + - ( 47 )
----
69

query I rowsort
SELECT ALL - - NULLIF ( 91, + 60 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL MIN( DISTINCT 2 )
----
2

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL MIN ( DISTINCT 2 )
----
2

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

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

query I rowsort
SELECT 48 + - 97
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3452
SELECT ALL - CAST( NULL AS DECIMAL ) * + 65 + - - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL - CAST ( NULL AS REAL ) * + 65 + - - 87 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3453
SELECT + ( + + CASE 73 WHEN CASE 62 WHEN - MAX( ALL + - 21 ) - + 60 THEN - - AVG ( 1 ) * - 58 * - CAST( + + 70 AS SIGNED ) ELSE NULL END THEN + COUNT( * ) ELSE - - 23 END )
----
23

skipif mysql # not compatible
query I rowsort label-3453
SELECT + ( + + CASE 73 WHEN CASE 62 WHEN - MAX ( ALL + - 21 ) - + 60 THEN - - AVG ( 1 ) * - 58 * - CAST ( + + 70 AS INTEGER ) ELSE NULL END THEN + COUNT ( * ) ELSE - - 23 END )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT ALL - 22 + + 5 + - 44 + + - CAST( NULL AS SIGNED ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL - 22 + + 5 + - 44 + + - CAST ( NULL AS INTEGER ) * 61
----
NULL

query I rowsort
SELECT - 82 - 23
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3456
SELECT 58 DIV - + ( + COALESCE ( - CAST( + 41 AS SIGNED ), - 67 * 27, + - 49 + - CASE 68 WHEN 58 * + 72 + - 11 DIV + 59 - - 9 + MIN( + COALESCE ( + 18, + + CASE - 93 WHEN - 60 THEN + 19 + - 55 + 2 ELSE NULL END * CAST( + 78 AS SIGNED ) DIV + - 65 + - NULLIF ( + - 36, ( + 88 ) ) + 79, - 85 * + ( + 63 ) ) ) THEN - 10 + + 50 WHEN + 12 THEN NULL ELSE NULL END ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3456
SELECT 58 / - + ( + COALESCE ( - CAST ( + 41 AS INTEGER ), - 67 * 27, + - 49 + - CASE 68 WHEN 58 * + 72 + - 11 / + 59 - - 9 + MIN ( + COALESCE ( + 18, + + CASE - 93 WHEN - 60 THEN + 19 + - 55 + 2 ELSE NULL END * CAST ( + 78 AS INTEGER ) / + - 65 + - NULLIF ( + - 36, ( + 88 ) ) + 79, - 85 * + ( + 63 ) ) ) THEN - 10 + + 50 WHEN + 12 THEN NULL ELSE NULL END ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 31 + 1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT DISTINCT - COUNT( * ) + - - 65
----
64

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT - COUNT ( * ) + - - 65
----
64

query I rowsort
SELECT ALL 25 + 82 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT MAX( DISTINCT - - 0 ) - 26
----
-26

skipif mysql # not compatible
query I rowsort label-3460
SELECT MAX ( DISTINCT - - 0 ) - 26
----
-26

query I rowsort
SELECT 79 * 43
----
3397

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3462
SELECT DISTINCT 19 * - - COUNT( * ) DIV - COALESCE ( + - COUNT( * ), - ( + 8 ) DIV - - 4 + COUNT( * ) + + - 51 )
----
19

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT 19 * - - COUNT ( * ) / - COALESCE ( + - COUNT ( * ), - ( + 8 ) / - - 4 + COUNT ( * ) + + - 51 )
----
19

query I rowsort
SELECT ALL 89 - + 3
----
86

query II rowsort
SELECT ALL 65 * - ( - - 24 ), - 41 AS col1
----
-1560
-41

query I rowsort
SELECT 69 + - 28 col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT 83 * - - MIN( ALL 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT 83 * - - MIN ( ALL 0 )
----
0

query I rowsort
SELECT DISTINCT 12 * 24 - 67
----
221

query I rowsort
SELECT DISTINCT 64 * - + 9 AS col2
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL + 97 * MAX( DISTINCT + 95 ) AS col1
----
9215

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL + 97 * MAX ( DISTINCT + 95 ) AS col1
----
9215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3470
SELECT 23 + + 12 + + CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) * + 61 DIV + 34 + + 13 + + 1 DIV 72 DIV + - ( - 69 ) * + COUNT( * ) + - 55 * 97 - - 9
----
-5277

skipif mysql # not compatible
query I rowsort label-3470
SELECT 23 + + 12 + + CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * + 61 / + 34 + + 13 + + 1 / 72 / + - ( - 69 ) * + COUNT ( * ) + - 55 * 97 - - 9
----
-5277

query I rowsort
SELECT + NULLIF ( - 44, + 86 )
----
-44

query I rowsort
SELECT ( - 87 ) + - 67
----
-154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT 84 * COUNT( ALL 64 ) + + SUM( + + 47 ) col2
----
131

skipif mysql # not compatible
query I rowsort label-3474
SELECT 84 * COUNT ( ALL 64 ) + + SUM ( + + 47 ) col2
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-3475
SELECT DISTINCT + 87 + - ( - - COUNT( * ) ) AS col2, - 31 * + 47 - 33 + COUNT( * ) AS col0
----
86
-1489

skipif mysql # not compatible
query II rowsort label-3475
SELECT DISTINCT + 87 + - ( - - COUNT ( * ) ) AS col2, - 31 * + 47 - 33 + COUNT ( * ) AS col0
----
86
-1489

onlyif mysql # aggregate syntax: 
query II rowsort label-3476
SELECT 73, 93 * MAX( 23 ) AS col2
----
73
2139

skipif mysql # not compatible
query II rowsort label-3476
SELECT 73, 93 * MAX ( 23 ) AS col2
----
73
2139

query I rowsort
SELECT - + 48 * + + ( 59 ) AS col1
----
-2832

query I rowsort
SELECT ALL 83 + + + 81 AS col2
----
164

query I rowsort
SELECT ALL - 68 + + + 31 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT COALESCE ( - - 39, 91, - 56 * - MIN( ALL + + ( 87 ) ) )
----
39

skipif mysql # not compatible
query I rowsort label-3480
SELECT COALESCE ( - - 39, 91, - 56 * - MIN ( ALL + + ( 87 ) ) )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3481
SELECT + CAST( - - 91 AS SIGNED ) + + 29 - 58 * + - 54, - 0 * - + 54 AS col2
----
3252
0

skipif mysql # not compatible
query II rowsort label-3481
SELECT + CAST ( - - 91 AS INTEGER ) + + 29 - 58 * + - 54, - 0 * - + 54 AS col2
----
3252
0

query II rowsort
SELECT + 71 - 21 + - + CASE + + 98 WHEN + + 72 THEN - 58 END + - + 73 * ( - + 23 ) * 85 AS col1, 73 col2
----
NULL
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3483
SELECT - 40 * + + COUNT( * ) - - CAST( - - 79 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-3483
SELECT - 40 * + + COUNT ( * ) - - CAST ( - - 79 AS INTEGER )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3484
SELECT ALL - 77 DIV + 66 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL - 77 / + 66 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3485
SELECT - + MAX( + + CAST( NULL AS DECIMAL ) ) + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT - + MAX ( + + CAST ( NULL AS REAL ) ) + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL MAX( - - 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL MAX ( - - 91 ) AS col1
----
91

query I rowsort
SELECT ALL + 85 + 54 - 67 AS col2
----
72

query II rowsort
SELECT - NULLIF ( + 25, 88 ), - 7 + + 18 + ( - 50 ) AS col2
----
-25
-39

query I rowsort
SELECT ALL + - 84 - + 3 AS col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT - + 47 * + - 12 * - - CASE + 94 WHEN 35 * - 45 * + + 16 THEN + 92 + + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3490
SELECT - + 47 * + - 12 * - - CASE + 94 WHEN 35 * - 45 * + + 16 THEN + 92 + + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query II rowsort
SELECT - NULLIF ( + + 69, + AVG ( ALL + 71 ) * - 93 ) + + 94 AS col1, - 4 AS col2
----
25
-4

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3493
SELECT ALL 24 col0, - CAST( - 94 AS SIGNED ) * + + 6 + 27 + + - COUNT( * ) * + 23 * + - 56 * - - 81 * - - 64 AS col2
----
24
6677583

skipif mysql # not compatible
query II rowsort label-3493
SELECT ALL 24 col0, - CAST ( - 94 AS INTEGER ) * + + 6 + 27 + + - COUNT ( * ) * + 23 * + - 56 * - - 81 * - - 64 AS col2
----
24
6677583

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT - 84 + - NULLIF ( MAX( - 66 ), + 64 )
----
-18

skipif mysql # not compatible
query I rowsort label-3494
SELECT - 84 + - NULLIF ( MAX ( - 66 ), + 64 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL NULLIF ( 85, + COUNT( * ) )
----
85

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL NULLIF ( 85, + COUNT ( * ) )
----
85

query II rowsort
SELECT - 26 col1, 96 AS col1
----
-26
96

query I rowsort
SELECT DISTINCT NULLIF ( 51, + 65 )
----
51

query I rowsort
SELECT + 54 + - 41 + - + 7
----
6

query II rowsort
SELECT ALL ( 59 ) AS col2, 55
----
59
55

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

skipif mysql # not compatible
query I rowsort label-3500
SELECT - CAST ( NULL AS INTEGER ) * 89 col0
----
NULL

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

query II rowsort
SELECT ALL 92 AS col2, - 40 * - + 63
----
92
2520

onlyif mysql # DIV for integer division: 
query I rowsort label-3503
SELECT - 76 DIV - 13 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3503
SELECT - 76 / - 13 AS col2
----
5

query I rowsort
SELECT DISTINCT ( - ( 37 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL 5 * - + 23 * - COUNT( * ) * - 72 * - 24 AS col0
----
198720

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL 5 * - + 23 * - COUNT ( * ) * - 72 * - 24 AS col0
----
198720

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT + 38 DIV - + 98 - - + 53
----
53

skipif mysql # not compatible
query I rowsort label-3507
SELECT + 38 / - + 98 - - + 53
----
53

query I rowsort
SELECT + 88 * + 25 * - 78
----
-171600

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT + 46 DIV 21 DIV + + 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3509
SELECT + 46 / 21 / + + 3 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT - 58 - SUM( ALL - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-3510
SELECT - 58 - SUM ( ALL - 58 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL 70 * + COUNT( DISTINCT 88 ) * 29
----
2030

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL 70 * + COUNT ( DISTINCT 88 ) * 29
----
2030

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT DISTINCT + + 6 * - - 39 + + + CAST( + ( - 87 ) AS SIGNED )
----
147

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT + + 6 * - - 39 + + + CAST ( + ( - 87 ) AS INTEGER )
----
147

query I rowsort
SELECT ALL - - 39 * COALESCE ( 48, + + 29 + + 64, + + ( NULLIF ( 30, - - 2 ) ) ) + 72
----
1944

onlyif mysql # aggregate syntax: 
query II rowsort label-3516
SELECT ALL + - 31, COUNT( * ) + + + COUNT( * ) AS col0
----
-31
2

skipif mysql # not compatible
query II rowsort label-3516
SELECT ALL + - 31, COUNT ( * ) + + + COUNT ( * ) AS col0
----
-31
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT ALL - 94 * - COUNT( * ) + + 39 * 49 AS col0
----
2005

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL - 94 * - COUNT ( * ) + + 39 * 49 AS col0
----
2005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3518
SELECT - COUNT( * ) DIV + 28 - - 42 + - 55 * + + COUNT( * ) + - 80 - - - 97
----
-190

skipif mysql # not compatible
query I rowsort label-3518
SELECT - COUNT ( * ) / + 28 - - 42 + - 55 * + + COUNT ( * ) + - 80 - - - 97
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT DISTINCT + COUNT( * ) * - MAX( DISTINCT 55 ) + + 14 + - 18 + NULLIF ( 87, 58 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT + COUNT ( * ) * - MAX ( DISTINCT 55 ) + + 14 + - 18 + NULLIF ( 87, 58 ) AS col2
----
28

query I rowsort
SELECT DISTINCT - - 86 * - 8 + + 47 + 9
----
-632

onlyif mysql # DIV for integer division: 
query II rowsort label-3521
SELECT ALL + 72, 79 DIV + 4 AS col1
----
72
19

skipif mysql # not compatible
query II rowsort label-3521
SELECT ALL + 72, 79 / + 4 AS col1
----
72
19

query II rowsort
SELECT DISTINCT + 90 AS col0, 89
----
90
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT COUNT( DISTINCT - ( 77 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3523
SELECT COUNT ( DISTINCT - ( 77 ) )
----
1

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

query I rowsort
SELECT - - 37 - 48 + 73 col1
----
62

query I rowsort
SELECT DISTINCT 94 * - 81 + - 50 + + - 0 + 85
----
-7579

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT ALL 31 * + COUNT( * ) + - 77 - 18 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL 31 * + COUNT ( * ) + - 77 - 18 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT ALL - COUNT( DISTINCT - 27 ) * + 21 - + - 53 + + - 86 + 57
----
3

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL - COUNT ( DISTINCT - 27 ) * + 21 - + - 53 + + - 86 + 57
----
3

query I rowsort
SELECT + - 76 * - 28
----
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT COALESCE ( + + NULLIF ( - COUNT( * ), - 1 ), COUNT( * ) * + COUNT( * ) ) * + COUNT( * ) - + 86 col0
----
-85

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT COALESCE ( + + NULLIF ( - COUNT ( * ), - 1 ), COUNT ( * ) * + COUNT ( * ) ) * + COUNT ( * ) - + 86 col0
----
-85

query II rowsort
SELECT ALL - 67 AS col2, 71 AS col2
----
-67
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3532
SELECT DISTINCT - COALESCE ( - 88, + COUNT( * ) + 55 + + 1 + 80, ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) - MAX( + 43 ) - - 78 + 75 DIV + + 98 ) DIV - 1 + - 23 DIV - ( + 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT - COALESCE ( - 88, + COUNT ( * ) + 55 + + 1 + 80, ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) - MAX ( + 43 ) - - 78 + 75 / + + 98 ) / - 1 + - 23 / - ( + 88 ) AS col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3533
SELECT ALL 23 * + - NULLIF ( + 87, + - 72 + + + 1 / + 53 ) - + + 41 AS col2, CAST( NULL AS SIGNED ) * + 89
----
-2042
NULL

skipif mysql # not compatible
query II rowsort label-3533
SELECT ALL 23 * + - NULLIF ( + 87, + - 72 + + + 1 / + 53 ) - + + 41 AS col2, CAST ( NULL AS INTEGER ) * + 89
----
-2042
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3534
SELECT + 72 + + COALESCE ( + - 25, - CASE 30 WHEN MIN( - 68 ) THEN 82 DIV - ( 5 ) END ) * - - 31
----
-703

skipif mysql # not compatible
query I rowsort label-3534
SELECT + 72 + + COALESCE ( + - 25, - CASE 30 WHEN MIN ( - 68 ) THEN 82 / - ( 5 ) END ) * - - 31
----
-703

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT + NULLIF ( + - 67, 52 ) * - COUNT( * ) + - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-3535
SELECT + NULLIF ( + - 67, 52 ) * - COUNT ( * ) + - COUNT ( * )
----
66

query I rowsort
SELECT - 36 * + 45
----
-1620

query II rowsort
SELECT ALL CASE - COALESCE ( + - 26, - 16 ) WHEN - + 34 THEN - 56 WHEN + 6 THEN NULL WHEN + ( 72 ) THEN + 64 ELSE NULLIF ( - - 23, + 51 + + - 21 * - 32 ) END, + 31 col2
----
23
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3538
SELECT DISTINCT - 87 DIV - 59 AS col1, - CAST( - 47 AS SIGNED )
----
1
47

skipif mysql # not compatible
query II rowsort label-3538
SELECT DISTINCT - 87 / - 59 AS col1, - CAST ( - 47 AS INTEGER )
----
1
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3539
SELECT DISTINCT ( 45 ), COUNT( * ) DIV COALESCE ( - + 54, + 47 ) + - - 53 + 21 AS col0
----
45
74

skipif mysql # not compatible
query II rowsort label-3539
SELECT DISTINCT ( 45 ), COUNT ( * ) / COALESCE ( - + 54, + 47 ) + - - 53 + 21 AS col0
----
45
74

query I rowsort
SELECT ALL ( - 68 ) col1
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-3541
SELECT ALL MAX( - 33 ), - 85 * + 96 AS col1
----
-33
-8160

skipif mysql # not compatible
query II rowsort label-3541
SELECT ALL MAX ( - 33 ), - 85 * + 96 AS col1
----
-33
-8160

query I rowsort
SELECT DISTINCT + 97 * - + 22
----
-2134

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ALL - COALESCE ( 53, + MIN( DISTINCT - 79 ) ) + 92 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL - COALESCE ( 53, + MIN ( DISTINCT - 79 ) ) + 92 AS col2
----
39

query I rowsort
SELECT + 82 + + - 71 * + - 19
----
1431

query I rowsort
SELECT DISTINCT - ( - ( - 40 ) ) * + 66 * - 98 col0
----
258720

query I rowsort
SELECT - 58 + - - ( + 97 )
----
39

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3548
SELECT - 64 - - CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT - 64 - - CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) * - 19
----
NULL

query I rowsort
SELECT - NULLIF ( + - 0, 15 ) AS col0
----
0

query I rowsort
SELECT ALL - 79 + + 50
----
-29

query I rowsort
SELECT - 34 + 11 * - 86 AS col2
----
-980

query II rowsort
SELECT 49 - - 86, 54 AS col1
----
135
54

query I rowsort
SELECT 23 + + + 85 AS col0
----
108

query I rowsort
SELECT 81 * + 91 + - 91
----
7280

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT ALL 3 + 64 + + 56 + 94 DIV + + 74 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL 3 + 64 + + 56 + 94 / + + 74 AS col2
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3556
SELECT - + 75 DIV + COUNT( * ) + MIN( + 36 ) DIV - 67 * + 85
----
-75

skipif mysql # not compatible
query I rowsort label-3556
SELECT - + 75 / + COUNT ( * ) + MIN ( + 36 ) / - 67 * + 85
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3557
SELECT ALL + COUNT( * ) + 31 col1, + 31 col2
----
32
31

skipif mysql # not compatible
query II rowsort label-3557
SELECT ALL + COUNT ( * ) + 31 col1, + 31 col2
----
32
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT ALL 17 * 23 * 60 * - + CAST( NULL AS SIGNED ) * + CAST( - 72 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL 17 * 23 * 60 * - + CAST ( NULL AS INTEGER ) * + CAST ( - 72 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 80 + 85 AS col2
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT + 95 * - CAST( NULL AS SIGNED ) * 65 + - - ( + - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT + 95 * - CAST ( NULL AS INTEGER ) * 65 + - - ( + - 44 )
----
NULL

query I rowsort
SELECT ALL - + 55 * ( - + 25 )
----
1375

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT 33 * + COUNT( 85 ) + + 49 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3562
SELECT 33 * + COUNT ( 85 ) + + 49 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL - 35 * - - SUM( ( + CASE WHEN NOT - 41 IS NOT NULL THEN - 73 ELSE NULL END ) ) / 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL - 35 * - - SUM ( ( + CASE WHEN NOT - 41 IS NOT NULL THEN - 73 ELSE NULL END ) ) / 56 AS col2
----
NULL

query II rowsort
SELECT - 88 * - - 12 + - ( 47 ) * - - ( - ( - 9 ) ) AS col1, - 8 + 10
----
-1479
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT ALL 6 - 75 DIV - - 73 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL 6 - 75 / - - 73 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT 56 * + COUNT( * ) + + - 88 col1
----
-32

skipif mysql # not compatible
query I rowsort label-3566
SELECT 56 * + COUNT ( * ) + + - 88 col1
----
-32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL - SUM( - 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL - SUM ( - 57 ) AS col0
----
57

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

query I rowsort
SELECT ALL + CASE + + 97 WHEN + + 93 THEN - 57 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT 72 - + CASE + 99 WHEN 38 THEN - + 2 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3573
SELECT 8 * NULLIF ( - - 27, - - 3 * + 19 ) * + + AVG ( ALL + ( - - CAST( NULL AS SIGNED ) ) ) AS col0, + 72 AS col1
----
NULL
72

skipif mysql # not compatible
query II rowsort label-3573
SELECT 8 * NULLIF ( - - 27, - - 3 * + 19 ) * + + AVG ( ALL + ( - - CAST ( NULL AS INTEGER ) ) ) AS col0, + 72 AS col1
----
NULL
72

query I rowsort
SELECT ALL 43 * - 91 AS col0
----
-3913

onlyif mysql # aggregate syntax: 
query II rowsort label-3575
SELECT 79 * + MIN( ALL 9 ) AS col0, 0 - - - 85 * + 27
----
711
-2295

skipif mysql # not compatible
query II rowsort label-3575
SELECT 79 * + MIN ( ALL 9 ) AS col0, 0 - - - 85 * + 27
----
711
-2295

query I rowsort
SELECT 14 + + 15
----
29

query I rowsort
SELECT DISTINCT 60 * 32 AS col1
----
1920

query II rowsort
SELECT ALL 79 AS col1, 40
----
79
40

query I rowsort
SELECT ALL 95 * - ( 57 ) AS col0
----
-5415

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT 98 DIV 30 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3580
SELECT 98 / 30 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3581
SELECT ALL 7 * - COUNT( * ) DIV 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL 7 * - COUNT ( * ) / 46 AS col0
----
0

query II rowsort
SELECT DISTINCT 84, 80 AS col2
----
84
80

query II rowsort
SELECT DISTINCT 37 AS col2, 73
----
37
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3584
SELECT ALL 88 AS col1, CASE + 73 WHEN - - 42 THEN - COALESCE ( COUNT( * ), - 63 ) + - 55 ELSE - 19 END col0
----
88
-19

skipif mysql # not compatible
query II rowsort label-3584
SELECT ALL 88 AS col1, CASE + 73 WHEN - - 42 THEN - COALESCE ( COUNT ( * ), - 63 ) + - 55 ELSE - 19 END col0
----
88
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL NULLIF ( + - 45, - COUNT( * ) + - - MAX( ALL 51 ) ) * + + 34
----
-1530

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL NULLIF ( + - 45, - COUNT ( * ) + - - MAX ( ALL 51 ) ) * + + 34
----
-1530

query I rowsort
SELECT ALL 59 * - 41 AS col2
----
-2419

query II rowsort
SELECT 71 AS col2, - 66 * 37
----
71
-2442

query I rowsort
SELECT 33 * + 26 AS col2
----
858

onlyif mysql # DIV for integer division: 
query II rowsort label-3590
SELECT ALL ( 39 ) + + 27, + 54 DIV + - 4 AS col0
----
66
-13

skipif mysql # not compatible
query II rowsort label-3590
SELECT ALL ( 39 ) + + 27, + 54 / + - 4 AS col0
----
66
-13

query I rowsort
SELECT 39 + ( + 13 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3592
SELECT 14 AS col2, - 52 DIV 84 * + 70 + - 85 * - 20 * SUM( 15 )
----
14
25500

skipif mysql # not compatible
query II rowsort label-3592
SELECT 14 AS col2, - 52 / 84 * + 70 + - 85 * - 20 * SUM ( 15 )
----
14
25500

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

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL + COUNT ( * ) + + 96 AS col1
----
97

query I rowsort
SELECT 23 * 7
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT ALL - 75 + + + ( + CAST( 76 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL - 75 + + + ( + CAST ( 76 AS INTEGER ) ) AS col0
----
1

query II rowsort
SELECT DISTINCT 13 AS col1, + 1 * + NULLIF ( - 32, + - 37 ) AS col0
----
13
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL - ( + + 16 ) * - 33 + - - COUNT( * ) - + - 36 * NULLIF ( + 5, + COALESCE ( - 56, 4 ) * - 92 + NULLIF ( 47, - 17 * MAX( ALL 36 ) ) ) * - 58 * + 46
----
-479711

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL - ( + + 16 ) * - 33 + - - COUNT ( * ) - + - 36 * NULLIF ( + 5, + COALESCE ( - 56, 4 ) * - 92 + NULLIF ( 47, - 17 * MAX ( ALL 36 ) ) ) * - 58 * + 46
----
-479711

query I rowsort
SELECT ALL + 30 + - + 23
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT CAST( NULL AS SIGNED ) - - 29 * - - NULLIF ( - 5, + - 7 + 51 ) * + + 22 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT CAST ( NULL AS INTEGER ) - - 29 * - - NULLIF ( - 5, + - 7 + 51 ) * + + 22 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT - SUM( 79 ) * - SUM( ALL 41 ) * + 82 AS col1
----
265598

skipif mysql # not compatible
query I rowsort label-3600
SELECT - SUM ( 79 ) * - SUM ( ALL 41 ) * + 82 AS col1
----
265598

query I rowsort
SELECT DISTINCT - 48 - + 67
----
-115

query I rowsort
SELECT ALL - + 52 - - 96
----
44

query I rowsort
SELECT - 60 * - 91
----
5460

onlyif mysql # DIV for integer division: 
query I rowsort label-3604
SELECT DISTINCT - 98 DIV 27 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT - 98 / 27 AS col0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3605
SELECT ALL CAST( NULL AS DECIMAL ) * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL CAST ( NULL AS REAL ) * - 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL + SUM( + - 33 ) - 94
----
-127

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL + SUM ( + - 33 ) - 94
----
-127

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3607
SELECT CAST( - CASE - 61 WHEN + + 66 THEN 60 WHEN + 52 THEN NULL END AS DECIMAL ) * COUNT( * ) - - ( ( + COUNT( * ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT CAST ( - CASE - 61 WHEN + + 66 THEN 60 WHEN + 52 THEN NULL END AS REAL ) * COUNT ( * ) - - ( ( + COUNT ( * ) ) ) AS col0
----
NULL

query II rowsort
SELECT ALL - 37 AS col1, 90
----
-37
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT + COUNT( DISTINCT + ( + 67 ) ) + MAX( - 30 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3609
SELECT + COUNT ( DISTINCT + ( + 67 ) ) + MAX ( - 30 ) AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3610
SELECT 40 DIV 75 + + - COUNT( * ) + - COUNT( * ) + - 66 + - + 39 * - CAST( + 15 AS SIGNED ) + - 97 * 71 + - 12
----
-6382

skipif mysql # not compatible
query I rowsort label-3610
SELECT 40 / 75 + + - COUNT ( * ) + - COUNT ( * ) + - 66 + - + 39 * - CAST ( + 15 AS INTEGER ) + - 97 * 71 + - 12
----
-6382

query I rowsort
SELECT 17 - - 39 - 87 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL 19 * SUM( - - 19 ) AS col1
----
361

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL 19 * SUM ( - - 19 ) AS col1
----
361

query I rowsort
SELECT 88 * - CASE + ( - 64 ) WHEN + 65 THEN + - CASE + 69 WHEN - 12 THEN NULL WHEN - ( 99 ) THEN + + 67 ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL NULLIF ( + + 28, - + 9 * + + 20 + + COUNT( * ) ) + - 16 - + 83
----
-71

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL NULLIF ( + + 28, - + 9 * + + 20 + + COUNT ( * ) ) + - 16 - + 83
----
-71

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

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

query I rowsort
SELECT 14 * - ( - 35 ) AS col1
----
490

query I rowsort
SELECT ALL - 6 + 80 AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3618
SELECT COUNT( + + 48 ) - - - 5 DIV - 13 AS col0, 76 + - 37
----
1
39

skipif mysql # not compatible
query II rowsort label-3618
SELECT COUNT ( + + 48 ) - - - 5 / - 13 AS col0, 76 + - 37
----
1
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3619
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) + 50 AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT - MIN( - 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3621
SELECT - MIN ( - 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3622
SELECT + 35 + - COUNT( * ), 21 AS col2
----
34
21

skipif mysql # not compatible
query II rowsort label-3622
SELECT + 35 + - COUNT ( * ), 21 AS col2
----
34
21

query I rowsort
SELECT ALL 47 + 97
----
144

query I rowsort
SELECT ALL COALESCE ( + 77, + 43, - 47 ) * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL + 79 + + SUM( ALL + 17 ) - + 76 * + 22 AS col0
----
-1576

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL + 79 + + SUM ( ALL + 17 ) - + 76 * + 22 AS col0
----
-1576

query II rowsort
SELECT + 29 - + 92 AS col2, + 46
----
-63
46

query I rowsort
SELECT DISTINCT 40 * + 94 * + 13
----
48880

query I rowsort
SELECT ALL 99 + - - 99 * - 66 * - 15 * 40 * + - 15 AS col1
----
-58805901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3629
SELECT + 5 - COALESCE ( - AVG ( + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ), - CAST( NULL AS SIGNED ) * + + 86 + 32 * - 43 + - 99 ) + + - 8 + - MIN( ALL + + 38 ) * ( - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT + 5 - COALESCE ( - AVG ( + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ), - CAST ( NULL AS INTEGER ) * + + 86 + 32 * - 43 + - 99 ) + + - 8 + - MIN ( ALL + + 38 ) * ( - 18 )
----
NULL

query I rowsort
SELECT ALL 11 + + 88 + 55
----
154

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT ALL CASE 83 WHEN + 29 * + 29 - AVG ( + 10 ) / COUNT( * ) THEN CASE - 38 WHEN + ( 78 ) + 94 * - 26 + + 91 * + COUNT( * ) THEN + 72 * 50 END WHEN - 39 + - COUNT( * ) + - CASE - + 78 WHEN - CASE 51 WHEN - 21 THEN - MIN( DISTINCT - - 26 ) WHEN - 23 THEN - + COALESCE ( + CASE 99 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - COUNT( DISTINCT - 50 ) * + - 58 / - CAST( - 76 AS SIGNED ) + 14 + 49 + - 59 END, + 74, - 49 * - COUNT( * ) ) ELSE + 19 * 11 END THEN NULL WHEN + COUNT( * ) + + 6 THEN - COUNT( 38 ) WHEN - CAST( NULL AS SIGNED ) - + NULLIF ( - 74, 21 ) THEN NULL END * 5 THEN 34 * CASE - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN - 70 * - ( 8 ) WHEN 94 / 11 THEN NULL ELSE NULL END END - + 64 * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL CASE 83 WHEN + 29 * + 29 - AVG ( + 10 ) / COUNT ( * ) THEN CASE - 38 WHEN + ( 78 ) + 94 * - 26 + + 91 * + COUNT ( * ) THEN + 72 * 50 END WHEN - 39 + - COUNT ( * ) + - CASE - + 78 WHEN - CASE 51 WHEN - 21 THEN - MIN ( DISTINCT - - 26 ) WHEN - 23 THEN - + COALESCE ( + CASE 99 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - COUNT ( DISTINCT - 50 ) * + - 58 / - CAST ( - 76 AS INTEGER ) + 14 + 49 + - 59 END, + 74, - 49 * - COUNT ( * ) ) ELSE + 19 * 11 END THEN NULL WHEN + COUNT ( * ) + + 6 THEN - COUNT ( 38 ) WHEN - CAST ( NULL AS INTEGER ) - + NULLIF ( - 74, 21 ) THEN NULL END * 5 THEN 34 * CASE - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN - 70 * - ( 8 ) WHEN 94 / 11 THEN NULL ELSE NULL END END - + 64 * 78
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3634
SELECT + 94 + ( - ( - - 70 ) ) DIV + COALESCE ( 26, - + 93, 86 DIV + 5 + - 34 * + 96 - + NULLIF ( + 28, + 88 ) - + 88 * + - 6 * 53 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3634
SELECT + 94 + ( - ( - - 70 ) ) / + COALESCE ( 26, - + 93, 86 / + 5 + - 34 * + 96 - + NULLIF ( + 28, + 88 ) - + 88 * + - 6 * 53 ) AS col0
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT + 8 + COUNT( * ) + - - 49 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-3636
SELECT + 8 + COUNT ( * ) + - - 49 AS col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3637
SELECT - CASE + 75 WHEN 11 - + 50 THEN - + ( - ( 94 ) ) ELSE NULL END - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT - CASE + 75 WHEN 11 - + 50 THEN - + ( - ( 94 ) ) ELSE NULL END - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT ALL 0 * 37 + - 29 - + CAST( - 36 AS SIGNED ) + + + 42 * + - 10
----
-413

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL 0 * 37 + - 29 - + CAST ( - 36 AS INTEGER ) + + + 42 * + - 10
----
-413

query I rowsort
SELECT + - 23 * + - 6 + + 8 * - 72
----
-438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3640
SELECT - COUNT( - - 3 ), + CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3640
SELECT - COUNT ( - - 3 ), + CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3642
SELECT 63 * 55 * - CAST( NULL AS SIGNED ) * - MIN( + 21 ) + + + COALESCE ( + 22, + COALESCE ( + - 81, 99 ) + 30 ) * 78 + - + 28 + + 59 AS col2, - 10 * - - 88 AS col2
----
NULL
-880

skipif mysql # not compatible
query II rowsort label-3642
SELECT 63 * 55 * - CAST ( NULL AS INTEGER ) * - MIN ( + 21 ) + + + COALESCE ( + 22, + COALESCE ( + - 81, 99 ) + 30 ) * 78 + - + 28 + + 59 AS col2, - 10 * - - 88 AS col2
----
NULL
-880

onlyif mysql # DIV for integer division: 
query I rowsort label-3643
SELECT + + 37 DIV + + 4 + - 22 + - 17
----
-30

skipif mysql # not compatible
query I rowsort label-3643
SELECT + + 37 / + + 4 + - 22 + - 17
----
-30

query I rowsort
SELECT DISTINCT + 25 * - 6 * + + 49 AS col1
----
-7350

query I rowsort
SELECT - - 14 + + + 91 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - COUNT( - 95 ) * + 71 + - - 16 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-3646
SELECT - COUNT ( - 95 ) * + 71 + - - 16 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT DISTINCT + - CASE + - 17 WHEN - 94 THEN + COUNT( * ) ELSE - COUNT( * ) END * - 87 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT + - CASE + - 17 WHEN - 94 THEN + COUNT ( * ) ELSE - COUNT ( * ) END * - 87 AS col1
----
-87

query I rowsort
SELECT - 51 * - - 82 AS col2
----
-4182

onlyif mysql # DIV for integer division: 
query I rowsort label-3649
SELECT - + 37 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-3649
SELECT - + 37 / - 69
----
0

query I rowsort
SELECT ALL - 72 * + 98 * + 8 + - - 50 + + + 98 * + 20 AS col2
----
-54438

query I rowsort
SELECT NULLIF ( + 99, - + 7 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL - 45 * - + 16 + - MIN( + 63 )
----
657

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - 45 * - + 16 + - MIN ( + 63 )
----
657

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3653
SELECT ALL + COUNT( + + ( - ( 54 ) ) ) * - - ( + CAST( NULL AS SIGNED ) ) / 50 * + 75 + + 67 + + 76 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL + COUNT ( + + ( - ( 54 ) ) ) * - - ( + CAST ( NULL AS INTEGER ) ) / 50 * + 75 + + 67 + + 76 * + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3654
SELECT DISTINCT + 65 DIV + - 98 * 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT + 65 / + - 98 * 88 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT ALL + 68 * + CAST( NULL AS SIGNED ) * - + 57 + + + CAST( + + 18 AS SIGNED ) + + 95 + - 73 + ( + + 71 ) - - 57 * + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL + 68 * + CAST ( NULL AS INTEGER ) * - + 57 + + + CAST ( + + 18 AS INTEGER ) + + 95 + - 73 + ( + + 71 ) - - 57 * + 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT ALL + COUNT( * ) * NULLIF ( + - ( + 95 ), + 81 + - + 73 )
----
-95

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL + COUNT ( * ) * NULLIF ( + - ( + 95 ), + 81 + - + 73 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3657
SELECT DISTINCT - 35 * - 58 + CAST( CASE - ( - 51 ) WHEN ( + 28 ) THEN + COUNT( * ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT - 35 * - 58 + CAST ( CASE - ( - 51 ) WHEN ( + 28 ) THEN + COUNT ( * ) END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT MIN( 80 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-3658
SELECT MIN ( 80 ) col2
----
80

query I rowsort
SELECT + 41 + - 42 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT - COUNT( + 48 ) + + COALESCE ( 44, - 20 ) + + - 92 * - 36
----
3355

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT - COUNT ( + 48 ) + + COALESCE ( 44, - 20 ) + + - 92 * - 36
----
3355

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3661
SELECT ALL CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - 20 ) * + - 96 * + 26 AS col0
----
-49920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3663
SELECT COUNT( * ) AS col0, CAST( NULL AS SIGNED ) / - - 75 + - - ( + 26 ) col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3663
SELECT COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) / - - 75 + - - ( + 26 ) col1
----
1
NULL

query I rowsort
SELECT - 5 + 88
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT DISTINCT + 75 - + - COALESCE ( + - SUM( DISTINCT + 51 ), + 3, + 91, - COUNT( ALL - 75 ) ) col0
----
24

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT + 75 - + - COALESCE ( + - SUM ( DISTINCT + 51 ), + 3, + 91, - COUNT ( ALL - 75 ) ) col0
----
24

query I rowsort
SELECT ALL ( 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + 81 + + ( - - SUM( ALL 2 ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3667
SELECT + 81 + + ( - - SUM ( ALL 2 ) ) AS col0
----
83

query II rowsort
SELECT DISTINCT 93 - - 30 + - 61 AS col1, 24
----
62
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT ALL CAST( CASE 88 WHEN - + COUNT( * ) THEN - - 82 WHEN - + 36 / - 91 * - 91 THEN - 55 WHEN ( + 42 ) THEN NULL ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL CAST ( CASE 88 WHEN - + COUNT ( * ) THEN - - 82 WHEN - + 36 / - 91 * - 91 THEN - 55 WHEN ( + 42 ) THEN NULL ELSE NULL END AS INTEGER )
----
NULL

query II rowsort
SELECT 53 AS col1, + 38 * - 39 col1
----
53
-1482

query I rowsort
SELECT + + COALESCE ( ( + - 16 ), + + 42 + + + 24 ) + - 44 * + - 57 AS col1
----
2492

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT + 66 * + - CASE + COUNT( * ) WHEN - 74 THEN - - 43 WHEN COUNT( * ) THEN 26 ELSE NULL END AS col2
----
-1716

skipif mysql # not compatible
query I rowsort label-3672
SELECT + 66 * + - CASE + COUNT ( * ) WHEN - 74 THEN - - 43 WHEN COUNT ( * ) THEN 26 ELSE NULL END AS col2
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + - 53 + - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3673
SELECT + - 53 + - COUNT ( * ) AS col1
----
-54

query I rowsort
SELECT - - NULLIF ( - + 51, 42 )
----
-51

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

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

query I rowsort
SELECT + - 9 * - 6
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3677
SELECT ALL COALESCE ( - + SUM( ALL + - 83 ), - - 54 * + NULLIF ( + COUNT( * ), - + 65 ) * - 44 + ( - + 26 ) + - 63, - 55 DIV + - COUNT( * ) ) * 78
----
6474

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL COALESCE ( - + SUM ( ALL + - 83 ), - - 54 * + NULLIF ( + COUNT ( * ), - + 65 ) * - 44 + ( - + 26 ) + - 63, - 55 / + - COUNT ( * ) ) * 78
----
6474

query II rowsort
SELECT + 21 AS col2, + 31
----
21
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3679
SELECT DISTINCT - 54 * + CAST( NULL AS SIGNED ) - - COALESCE ( 27, - + 15 * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT - 54 * + CAST ( NULL AS INTEGER ) - - COALESCE ( 27, - + 15 * - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3680
SELECT - MIN( + 53 ) * + CAST( + SUM( DISTINCT + + 57 ) AS SIGNED ) AS col2, 61 AS col2
----
-3021
61

skipif mysql # not compatible
query II rowsort label-3680
SELECT - MIN ( + 53 ) * + CAST ( + SUM ( DISTINCT + + 57 ) AS INTEGER ) AS col2, 61 AS col2
----
-3021
61

query I rowsort
SELECT + 69 * 54 * + - 48
----
-178848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3682
SELECT ALL + 11 DIV - 17 + + ( - + 10 ) + - - COUNT( - - 62 ) - 76
----
-85

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL + 11 / - 17 + + ( - + 10 ) + - - COUNT ( - - 62 ) - 76
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3683
SELECT + - 57 - - 42 * - 71 / + + 7 + - CAST( NULL AS SIGNED ) + + + COALESCE ( - + CAST( + 73 AS SIGNED ), - ( COALESCE ( - 26, - 48 * + + 91 * 51 ) ) - - 63 + + 96 + + COUNT( * ) * - - 13 ) * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT + - 57 - - 42 * - 71 / + + 7 + - CAST ( NULL AS INTEGER ) + + + COALESCE ( - + CAST ( + 73 AS INTEGER ), - ( COALESCE ( - 26, - 48 * + + 91 * 51 ) ) - - 63 + + 96 + + COUNT ( * ) * - - 13 ) * - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + SUM( DISTINCT - 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3684
SELECT + SUM ( DISTINCT - 52 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL + COALESCE ( + COUNT( * ), - COALESCE ( 51, + 54 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + COALESCE ( + COUNT ( * ), - COALESCE ( 51, + 54 ) ) AS col2
----
1

query I rowsort
SELECT + + 40 * + 80 AS col0
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT - - 77 * COUNT( * ) * - + 34 + + 52 AS col2
----
-2566

skipif mysql # not compatible
query I rowsort label-3687
SELECT - - 77 * COUNT ( * ) * - + 34 + + 52 AS col2
----
-2566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3688
SELECT + - 7 * + COUNT( DISTINCT 42 ) * - COUNT( * ) - + CAST( + 54 AS SIGNED ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-3688
SELECT + - 7 * + COUNT ( DISTINCT 42 ) * - COUNT ( * ) - + CAST ( + 54 AS INTEGER ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL - + NULLIF ( + CASE - 85 WHEN - + 40 * - COUNT( * ) * + + COUNT( * ) THEN - + ( - 37 ) + - COUNT( * ) ELSE NULL END, - 94 / - 94 - + + ( + COUNT( * ) ) / + 31 ) / COALESCE ( - - 24, - 7, - - 26 + + 52 ) + - 72 - + 55 + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL - + NULLIF ( + CASE - 85 WHEN - + 40 * - COUNT ( * ) * + + COUNT ( * ) THEN - + ( - 37 ) + - COUNT ( * ) ELSE NULL END, - 94 / - 94 - + + ( + COUNT ( * ) ) / + 31 ) / COALESCE ( - - 24, - 7, - - 26 + + 52 ) + - 72 - + 55 + - 53
----
NULL

query I rowsort
SELECT + 78 - - 84
----
162

query II rowsort
SELECT DISTINCT + 46, 35 col1
----
46
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT - 54 - - - 3 + + - NULLIF ( + ( - 46 ), 24 / 8 + SUM( + 17 ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3692
SELECT - 54 - - - 3 + + - NULLIF ( + ( - 46 ), 24 / 8 + SUM ( + 17 ) ) AS col0
----
-11

query II rowsort
SELECT + 29, + 90 AS col2
----
29
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3694
SELECT + 31, - CAST( NULL AS SIGNED ) * 87 AS col0
----
31
NULL

skipif mysql # not compatible
query II rowsort label-3694
SELECT + 31, - CAST ( NULL AS INTEGER ) * 87 AS col0
----
31
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3695
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) + + 68 - + - MIN( DISTINCT - + 50 ) * - 76 col2, 77 * - 68
----
NULL
-5236

skipif mysql # not compatible
query II rowsort label-3695
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 68 - + - MIN ( DISTINCT - + 50 ) * - 76 col2, 77 * - 68
----
NULL
-5236

query I rowsort
SELECT 42 * 66 AS col1
----
2772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3697
SELECT ALL + 52 * - CAST( - NULLIF ( 16, + 54 * + - 79 + - - 1 ) AS SIGNED ) AS col2
----
832

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL + 52 * - CAST ( - NULLIF ( 16, + 54 * + - 79 + - - 1 ) AS INTEGER ) AS col2
----
832

query I rowsort
SELECT 49 * ( 91 ) col1
----
4459

query I rowsort
SELECT 52 - + + 95
----
-43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT ALL - 79 + - + ( - CASE - 25 WHEN 23 + 30 / - + 80 THEN - CAST( NULL AS SIGNED ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL - 79 + - + ( - CASE - 25 WHEN 23 + 30 / - + 80 THEN - CAST ( NULL AS INTEGER ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3702
SELECT DISTINCT - 61 - COUNT( * ) + + 45 DIV + + 56 AS col1, 29 * + COUNT( * )
----
-62
29

skipif mysql # not compatible
query II rowsort label-3702
SELECT DISTINCT - 61 - COUNT ( * ) + + 45 / + + 56 AS col1, 29 * + COUNT ( * )
----
-62
29

query I rowsort
SELECT 42 + + 89 - - + 21 + + - 6 + + 43 - - 10 - 37 * 88 * 95 * - 65 AS col0
----
20105999

query II rowsort
SELECT ALL 50 col0, 90
----
50
90

query I rowsort
SELECT DISTINCT + 44 - 4 col2
----
40

query I rowsort
SELECT 22 * + - 4
----
-88

query I rowsort
SELECT 58 * + 45 AS col1
----
2610

query I rowsort
SELECT 38 + - 94
----
-56

query II rowsort
SELECT 43 AS col2, - 32 AS col1
----
43
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT + CASE + 74 WHEN - - 0 THEN + + COUNT( * ) + + 15 END + - - NULLIF ( - ( + 46 ), + 75 * - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT + CASE + 74 WHEN - - 0 THEN + + COUNT ( * ) + + 15 END + - - NULLIF ( - ( + 46 ), + 75 * - 42 )
----
NULL

query I rowsort
SELECT ALL + 18 * + 88
----
1584

query I rowsort
SELECT ALL + + 33 * CASE 27 WHEN - 59 * - + 93 THEN NULL WHEN - 8 THEN - + ( + + 91 ) * - + 96 - - + COALESCE ( + NULLIF ( - 50, - 42 * + + 78 * - 80 + - + 66 * 53 - + + 68 + + 39 + + + 14 / + - 90 ), + 18 - - 55 ) END
----
NULL

query I rowsort
SELECT - 12 - - 42 AS col2
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3714
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * + 91, - 62 AS col2
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-3714
SELECT DISTINCT + + CAST ( NULL AS REAL ) * + 91, - 62 AS col2
----
NULL
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3715
SELECT 77 + + 76 + CAST( NULL AS SIGNED ) + - 97 * + + 2 * 73 * - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3715
SELECT 77 + + 76 + CAST ( NULL AS INTEGER ) + - 97 * + + 2 * 73 * - - 84
----
NULL

query I rowsort
SELECT ALL + - 66 * 7
----
-462

query I rowsort
SELECT - 39 + 65
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT + CASE - + COUNT( * ) WHEN 17 THEN 12 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT + CASE - + COUNT ( * ) WHEN 17 THEN 12 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3719
SELECT - 53 + MIN( - - CAST( NULL AS SIGNED ) ) * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT - 53 + MIN ( - - CAST ( NULL AS INTEGER ) ) * + 8
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT COUNT( * ) * + - 73 * - + 64
----
4672

skipif mysql # not compatible
query I rowsort label-3721
SELECT COUNT ( * ) * + - 73 * - + 64
----
4672

query I rowsort
SELECT + 6 + + - 79 * + 86
----
-6788

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT 46 - - - 56 * - + 85 * - - COUNT( * ) col0
----
4806

skipif mysql # not compatible
query I rowsort label-3723
SELECT 46 - - - 56 * - + 85 * - - COUNT ( * ) col0
----
4806

onlyif mysql # aggregate syntax: 
query II rowsort label-3724
SELECT ALL 22 AS col1, MAX( ALL - ( - - 6 ) ) * + 69 + - MIN( - 35 ) - 7 * - - 69
----
22
-862

skipif mysql # not compatible
query II rowsort label-3724
SELECT ALL 22 AS col1, MAX ( ALL - ( - - 6 ) ) * + 69 + - MIN ( - 35 ) - 7 * - - 69
----
22
-862

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT ALL - 17 + 26 * + + COUNT( * ) * 8
----
191

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL - 17 + 26 * + + COUNT ( * ) * 8
----
191

query I rowsort
SELECT + 19 + + 25
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT DISTINCT + COUNT( * ) * - + 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT + COUNT ( * ) * - + 23 AS col0
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-3728
SELECT ALL - 14 DIV 88 AS col1, 33 AS col0
----
0
33

skipif mysql # not compatible
query II rowsort label-3728
SELECT ALL - 14 / 88 AS col1, 33 AS col0
----
0
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT ALL 86 + - 20 + + 88 + + 0 * + 0 * - + COUNT( - 54 ) AS col1
----
154

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL 86 + - 20 + + 88 + + 0 * + 0 * - + COUNT ( - 54 ) AS col1
----
154

query I rowsort
SELECT DISTINCT - 23 + 86
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT 78 * - 41 * COUNT( * ) AS col1
----
-3198

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT 78 * - 41 * COUNT ( * ) AS col1
----
-3198

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT COUNT( * ) + - 55 + + 36 + 28 + - - 6
----
16

skipif mysql # not compatible
query I rowsort label-3732
SELECT COUNT ( * ) + - 55 + + 36 + 28 + - - 6
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT 7 DIV + 18 * - 27
----
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT 7 / + 18 * - 27
----
0

query I rowsort
SELECT COALESCE ( 31, - 65 + + ( 49 ) ) * + 58 AS col1
----
1798

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT ALL COUNT( 31 ) - + + 70 * + + 19 AS col1
----
-1329

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL COUNT ( 31 ) - + + 70 * + + 19 AS col1
----
-1329

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

skipif mysql # not compatible
query I rowsort label-3737
SELECT COUNT ( * ) * + CAST ( + - 41 AS INTEGER ) AS col2
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT ALL 94 DIV 88
----
1

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL 94 / 88
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3739
SELECT CAST( NULL AS DECIMAL ) * 4 * - + 69 AS col2
----
NULL

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

query I rowsort
SELECT ALL + 21 * + - 73 * + + 8 AS col2
----
-12264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3741
SELECT COUNT( * ) + 60 * 34 * + - MAX( + - ( + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT COUNT ( * ) + 60 * 34 * + - MAX ( + - ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3742
SELECT 32 * - 80 AS col0, + 36 + - MAX( DISTINCT 47 ) + - 63
----
-2560
-74

skipif mysql # not compatible
query II rowsort label-3742
SELECT 32 * - 80 AS col0, + 36 + - MAX ( DISTINCT 47 ) + - 63
----
-2560
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT 67 * ( + - 57 ) DIV + 9
----
-424

skipif mysql # not compatible
query I rowsort label-3743
SELECT 67 * ( + - 57 ) / + 9
----
-424

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT COUNT( * ) * - 15 + - - ( - MAX( DISTINCT 9 ) ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-3744
SELECT COUNT ( * ) * - 15 + - - ( - MAX ( DISTINCT 9 ) ) AS col2
----
-24

query I rowsort
SELECT DISTINCT 58 - - 13
----
71

query I rowsort
SELECT 83 + 65 + + - 19 AS col2
----
129

query I rowsort
SELECT ALL 87 * + ( - - 74 ) * + + 1 AS col1
----
6438

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

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

query I rowsort
SELECT 91 * 88 AS col1
----
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT - + CASE 87 WHEN COUNT( * ) THEN 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT - + CASE 87 WHEN COUNT ( * ) THEN 16 END
----
NULL

query II rowsort
SELECT - ( 8 ), - 32 AS col2
----
-8
-32

query I rowsort
SELECT ALL + + 14 + - - ( 90 )
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3753
SELECT DISTINCT - 37 DIV + 15 + - + 79 + - 64 - - 1 * - 19 - + MAX( + ( 61 ) ) + 16 * - 27
----
-657

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT - 37 / + 15 + - + 79 + - 64 - - 1 * - 19 - + MAX ( + ( 61 ) ) + 16 * - 27
----
-657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3754
SELECT + MAX( 86 ) DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-3754
SELECT + MAX ( 86 ) / + 55
----
1

query I rowsort
SELECT 71 * - 47 col1
----
-3337

query II rowsort
SELECT - 60 + + + 0 AS col1, 42 + - + 82 + - 65 col2
----
-60
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3757
SELECT ALL - + 1 * CASE COUNT( * ) WHEN + + 81 THEN 52 + + COUNT( * ) * + + 90 * - 8 * ( + 85 ) ELSE - - 21 END DIV + 18 + + + COUNT( * ) * 71 * 8 + - - 89
----
656

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL - + 1 * CASE COUNT ( * ) WHEN + + 81 THEN 52 + + COUNT ( * ) * + + 90 * - 8 * ( + 85 ) ELSE - - 21 END / + 18 + + + COUNT ( * ) * 71 * 8 + - - 89
----
656

query II rowsort
SELECT - 4 * 7 AS col1, + ( + 86 ) + 88 * - + 37 + - 52
----
-28
-3222

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT 61 + ( - CASE - + NULLIF ( - COUNT( * ), + - 24 ) WHEN - - 14 THEN - ( + - COUNT( * ) ) END ) - - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT 61 + ( - CASE - + NULLIF ( - COUNT ( * ), + - 24 ) WHEN - - 14 THEN - ( + - COUNT ( * ) ) END ) - - + 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3760
SELECT DISTINCT - ( - - 99 ) DIV 32 + + - ( - + ( - ( - + COUNT( * ) ) ) ) * - 62 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT - ( - - 99 ) / 32 + + - ( - + ( - ( - + COUNT ( * ) ) ) ) * - 62 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT + - 88 + + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT + - 88 + + COUNT ( * )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT + CAST( NULL AS SIGNED ) * + 72 * - 5 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT + CAST ( NULL AS INTEGER ) * + 72 * - 5 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT ALL - 85 * 43 * + 2 + 52 * 54 DIV + 96 AS col2
----
-7281

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL - 85 * 43 * + 2 + 52 * 54 / + 96 AS col2
----
-7281

query I rowsort
SELECT - + 14 - - - 50 AS col0
----
-64

query I rowsort
SELECT - 19 + 8
----
-11

query I rowsort
SELECT 97 * - 94 + - 0 - - 35
----
-9083

query I rowsort
SELECT DISTINCT 24 * 98 AS col2
----
2352

query II rowsort
SELECT + 65 - + - 69 * 83, 11 + + - 65 col2
----
5792
-54

query I rowsort
SELECT + 82 * + - 0 * - + ( + - 31 ) AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT COUNT( DISTINCT NULLIF ( 75, + - 54 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3772
SELECT COUNT ( DISTINCT NULLIF ( 75, + - 54 ) ) AS col1
----
1

query I rowsort
SELECT - 29 + + 50 * + - 84 AS col2
----
-4229

query I rowsort
SELECT - 46 * - 67 AS col0
----
3082

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT - 5 + + CASE - COUNT( + - 65 ) WHEN - 16 * + ( - MIN( 25 ) ) * - 62 THEN 13 * - COUNT( * ) * + + 9 * + 90 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3775
SELECT - 5 + + CASE - COUNT ( + - 65 ) WHEN - 16 * + ( - MIN ( 25 ) ) * - 62 THEN 13 * - COUNT ( * ) * + + 9 * + 90 END col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3777
SELECT DISTINCT + 90, COUNT( DISTINCT + 4 ) AS col2
----
90
1

skipif mysql # not compatible
query II rowsort label-3777
SELECT DISTINCT + 90, COUNT ( DISTINCT + 4 ) AS col2
----
90
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT ALL 10 DIV + + 6
----
1

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL 10 / + + 6
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT + COALESCE ( + ( - CAST( - - 50 AS SIGNED ) ), - 21 - - ( + 49 ), - 98 * + COUNT( * ) + 97 - 17, - 44 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-3779
SELECT + COALESCE ( + ( - CAST ( - - 50 AS INTEGER ) ), - 21 - - ( + 49 ), - 98 * + COUNT ( * ) + 97 - 17, - 44 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT - - 16 + + 65 * - + COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT - - 16 + + 65 * - + COUNT ( * ) AS col1
----
-49

query II rowsort
SELECT - 78, 79 AS col2
----
-78
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL 18 * + 11 * - NULLIF ( - SUM( - 50 ), - COUNT( DISTINCT + 32 ) ) AS col2
----
-9900

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL 18 * + 11 * - NULLIF ( - SUM ( - 50 ), - COUNT ( DISTINCT + 32 ) ) AS col2
----
-9900

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT ALL + 59 + + + 78 * + 73 * + 95 * + ( + 58 ) + - COUNT( DISTINCT 25 ) AS col1
----
31373998

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL + 59 + + + 78 * + 73 * + 95 * + ( + 58 ) + - COUNT ( DISTINCT 25 ) AS col1
----
31373998

query II rowsort
SELECT - 96, - 51 AS col2
----
-96
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3785
SELECT DISTINCT - COUNT( * ) * + + 20 * - CAST( NULL AS SIGNED ) * + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT - COUNT ( * ) * + + 20 * - CAST ( NULL AS INTEGER ) * + - 3
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT ALL + 84 + - + 3 - + AVG ( CAST( NULL AS SIGNED ) ) * - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL + 84 + - + 3 - + AVG ( CAST ( NULL AS INTEGER ) ) * - 9 AS col2
----
NULL

query I rowsort
SELECT + - 78 + - ( + 78 ) + 36 + NULLIF ( + 85, 71 * + 92 )
----
-35

query I rowsort
SELECT ALL + 14 * - 37
----
-518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3789
SELECT DISTINCT MIN( + 88 ) + 41 + 53 + + 32 * - + CAST( NULL AS SIGNED ) * + + 86 / 56 AS col0, COUNT( * ) - + 55 * - 2 + - 30 AS col1
----
NULL
81

skipif mysql # not compatible
query II rowsort label-3789
SELECT DISTINCT MIN ( + 88 ) + 41 + 53 + + 32 * - + CAST ( NULL AS INTEGER ) * + + 86 / 56 AS col0, COUNT ( * ) - + 55 * - 2 + - 30 AS col1
----
NULL
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3790
SELECT ALL + ( + 1 ) DIV ( + 89 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + ( + 1 ) / ( + 89 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3791
SELECT ALL NULLIF ( - 65, - 80 ) AS col2, CAST( NULL AS SIGNED ) * + + 71 * - - 47 AS col1
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-3791
SELECT ALL NULLIF ( - 65, - 80 ) AS col2, CAST ( NULL AS INTEGER ) * + + 71 * - - 47 AS col1
----
-65
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3792
SELECT - - 29 + - + CAST( + 18 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3792
SELECT - - 29 + - + CAST ( + 18 AS INTEGER ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT - 60 * ( - - MIN( DISTINCT - 59 ) )
----
3540

skipif mysql # not compatible
query I rowsort label-3793
SELECT - 60 * ( - - MIN ( DISTINCT - 59 ) )
----
3540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3794
SELECT ALL + 32 DIV + MAX( + 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL + 32 / + MAX ( + 31 ) AS col0
----
1

query II rowsort
SELECT - ( - 71 ) - + 70, 39 AS col1
----
1
39

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

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

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

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

query I rowsort
SELECT ALL + 93 - + 70 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT ALL COUNT( * ) * 4 * - 28 * + 19
----
-2128

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL COUNT ( * ) * 4 * - 28 * + 19
----
-2128

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3800
SELECT ALL - CAST( NULL AS DECIMAL ) * - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL - CAST ( NULL AS REAL ) * - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT ALL + COUNT( * ) * - + COALESCE ( + 7, - 38 - - + 95 )
----
-7

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL + COUNT ( * ) * - + COALESCE ( + 7, - 38 - - + 95 )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-3802
SELECT DISTINCT - 48 * - 80 AS col2, 38 * + - MAX( + + 89 ) + + - 25 AS col2
----
3840
-3407

skipif mysql # not compatible
query II rowsort label-3802
SELECT DISTINCT - 48 * - 80 AS col2, 38 * + - MAX ( + + 89 ) + + - 25 AS col2
----
3840
-3407

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

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

query I rowsort
SELECT - 53 * - 39 AS col1
----
2067

query I rowsort
SELECT - 59 * - 7
----
413

query I rowsort
SELECT - NULLIF ( 65, 16 ) + ( + 36 )
----
-29

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

skipif mysql # not compatible
query I rowsort label-3807
SELECT - 62 * + COUNT ( * ) + - + 90 AS col2
----
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-3808
SELECT 30 * 14 + 12 * + 10 AS col1, - COUNT( * ) AS col1
----
540
-1

skipif mysql # not compatible
query II rowsort label-3808
SELECT 30 * 14 + 12 * + 10 AS col1, - COUNT ( * ) AS col1
----
540
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT + COUNT( * ) * - 17 col1
----
-17

skipif mysql # not compatible
query I rowsort label-3809
SELECT + COUNT ( * ) * - 17 col1
----
-17

query I rowsort
SELECT DISTINCT + NULLIF ( - - ( - 16 ), - + 79 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT DISTINCT + MIN( - - 50 ), + 50 AS col0
----
50
50

skipif mysql # not compatible
query II rowsort label-3811
SELECT DISTINCT + MIN ( - - 50 ), + 50 AS col0
----
50
50

query II rowsort
SELECT ALL 69 * + - 91 AS col2, 54 AS col0
----
-6279
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3813
SELECT ( + COALESCE ( 52, + COUNT( * ) DIV + ( - + COUNT( * ) ), + 23 * 46 - + 80 * + 7 ) ) AS col0, - ( 38 ) * + + 19
----
52
-722

skipif mysql # not compatible
query II rowsort label-3813
SELECT ( + COALESCE ( 52, + COUNT ( * ) / + ( - + COUNT ( * ) ), + 23 * 46 - + 80 * + 7 ) ) AS col0, - ( 38 ) * + + 19
----
52
-722

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL COALESCE ( + 22, + 54 + - - 66, + - 27 + + 93 ) * 49 + + COUNT( * )
----
1079

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL COALESCE ( + 22, + 54 + - - 66, + - 27 + + 93 ) * 49 + + COUNT ( * )
----
1079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3815
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) + 65 * 12 AS col1, + 19 AS col1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-3815
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) + 65 * 12 AS col1, + 19 AS col1
----
NULL
19

query I rowsort
SELECT ( - 41 ) * 18 + 94
----
-644

onlyif mysql # aggregate syntax: 
query II rowsort label-3817
SELECT + SUM( + + 1 ), + 86 col1
----
1
86

skipif mysql # not compatible
query II rowsort label-3817
SELECT + SUM ( + + 1 ), + 86 col1
----
1
86

query I rowsort
SELECT - - 48 * - 77 AS col0
----
-3696

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3820
SELECT + ( + + 67 ) * COUNT( 50 ) AS col2, - 74 AS col2
----
67
-74

skipif mysql # not compatible
query II rowsort label-3820
SELECT + ( + + 67 ) * COUNT ( 50 ) AS col2, - 74 AS col2
----
67
-74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT + CASE - + 56 WHEN + + 89 THEN + + 85 + + + 68 - 28 / COUNT( * ) ELSE NULL END * + 78 + + - 68 / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT + CASE - + 56 WHEN + + 89 THEN + + 85 + + + 68 - 28 / COUNT ( * ) ELSE NULL END * + 78 + + - 68 / + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL 39 * MAX( DISTINCT + - 89 ) col1
----
-3471

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL 39 * MAX ( DISTINCT + - 89 ) col1
----
-3471

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3824
SELECT + COUNT( * ) DIV + 44 AS col0, 65 AS col0
----
0
65

skipif mysql # not compatible
query II rowsort label-3824
SELECT + COUNT ( * ) / + 44 AS col0, 65 AS col0
----
0
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL 42 * - 20 * COUNT( + 53 ) - - 76 - + 51
----
-815

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL 42 * - 20 * COUNT ( + 53 ) - - 76 - + 51
----
-815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3826
SELECT ALL CAST( 91 AS SIGNED ) * CASE - 72 WHEN + 98 / SUM( ALL + 80 ) THEN - 47 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL CAST ( 91 AS INTEGER ) * CASE - 72 WHEN + 98 / SUM ( ALL + 80 ) THEN - 47 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT - MIN( DISTINCT - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-3827
SELECT - MIN ( DISTINCT - 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL + 11 - 93 * + COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + 11 - 93 * + COUNT ( * ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL MAX( ALL - 5 ) * - 44
----
220

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL MAX ( ALL - 5 ) * - 44
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3830
SELECT NULLIF ( - + SUM( DISTINCT - 6 ), + - COUNT( * ) + - 48 * CAST( - + 35 AS SIGNED ) ) + + - 75 + - 7 + 42 * - - 3 - - + 80 * 9 AS col1
----
770

skipif mysql # not compatible
query I rowsort label-3830
SELECT NULLIF ( - + SUM ( DISTINCT - 6 ), + - COUNT ( * ) + - 48 * CAST ( - + 35 AS INTEGER ) ) + + - 75 + - 7 + 42 * - - 3 - - + 80 * 9 AS col1
----
770

query II rowsort
SELECT DISTINCT 30 AS col0, + 67 * 70 * - - 5
----
30
23450

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT DISTINCT - SUM( DISTINCT - + 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - SUM ( DISTINCT - + 59 ) AS col0
----
59

query I rowsort
SELECT 32 - - - 19
----
13

query I rowsort
SELECT ALL + 71 + - - 1 AS col0
----
72

query I rowsort
SELECT - 58 * + 72 + + 50
----
-4126

onlyif mysql # aggregate syntax: 
query II rowsort label-3836
SELECT 23 AS col2, + MAX( + - 54 )
----
23
-54

skipif mysql # not compatible
query II rowsort label-3836
SELECT 23 AS col2, + MAX ( + - 54 )
----
23
-54

query I rowsort
SELECT ALL - 99 * + + 34 * 71 * + - 65 AS col0
----
15534090

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT DISTINCT - COUNT( * ), + 52 AS col1
----
-1
52

skipif mysql # not compatible
query II rowsort label-3838
SELECT DISTINCT - COUNT ( * ), + 52 AS col1
----
-1
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3839
SELECT 73 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT 73 / + 86
----
0

query I rowsort
SELECT DISTINCT - 54 + - 51 + 65 * + 87 * - - 82 + - 3 AS col2
----
463602

query I rowsort
SELECT ALL + 99 * 7
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL - 27 + + COUNT( * ) + - 61 * - 88 * + 33 + - COUNT( + 84 )
----
177117

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - 27 + + COUNT ( * ) + - 61 * - 88 * + 33 + - COUNT ( + 84 )
----
177117

query I rowsort
SELECT 66 + + 19
----
85

query I rowsort
SELECT 73 * 24 AS col2
----
1752

onlyif mysql # DIV for integer division: 
query I rowsort label-3845
SELECT 76 + - 47 DIV 90
----
76

skipif mysql # not compatible
query I rowsort label-3845
SELECT 76 + - 47 / 90
----
76

query I rowsort
SELECT ALL - 91 + 94 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT ALL + COALESCE ( 58, COUNT( * ) ) * COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL + COALESCE ( 58, COUNT ( * ) ) * COUNT ( * ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT ALL - COALESCE ( 59, MIN( DISTINCT 39 ) + 68 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL - COALESCE ( 59, MIN ( DISTINCT 39 ) + 68 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT - 10 - + ( - MAX( 39 ) ) * + 90 AS col1
----
3500

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT - 10 - + ( - MAX ( 39 ) ) * + 90 AS col1
----
3500

query I rowsort
SELECT DISTINCT ( 82 ) * 47
----
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT DISTINCT ( 11 ) - COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT ( 11 ) - COUNT ( * ) AS col0
----
10

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

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

query I rowsort
SELECT ALL + 37 * 67 AS col1
----
2479

query I rowsort
SELECT 88 + - 68 * 52 col0
----
-3448

query I rowsort
SELECT 98 + - 1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT COUNT( * ) - - 3 * 5 col0
----
16

skipif mysql # not compatible
query I rowsort label-3856
SELECT COUNT ( * ) - - 3 * 5 col0
----
16

query I rowsort
SELECT ( - 67 ) * 56 AS col0
----
-3752

query I rowsort
SELECT 65 * + NULLIF ( + 16 * + 93, 96 ) + - 31 AS col0
----
96689

query I rowsort
SELECT ALL 31 - 15
----
16

query I rowsort
SELECT DISTINCT - 20 * 51
----
-1020

query I rowsort
SELECT 23 * 65
----
1495

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

skipif mysql # not compatible
query I rowsort label-3862
SELECT 26 * - CAST ( + COUNT ( * ) AS INTEGER ) col2
----
-26

query I rowsort
SELECT 33 + 9 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT COUNT( * ) + 43 * + 16
----
689

skipif mysql # not compatible
query I rowsort label-3864
SELECT COUNT ( * ) + 43 * + 16
----
689

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL SUM( ALL 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL SUM ( ALL 25 ) AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3866
SELECT 16 DIV 5
----
3

skipif mysql # not compatible
query I rowsort label-3866
SELECT 16 / 5
----
3

query I rowsort
SELECT 52 + 36
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT COUNT( * ) + + 25 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3869
SELECT COUNT ( * ) + + 25 AS col0
----
26

query I rowsort
SELECT 42 + - 50 AS col0
----
-8

query I rowsort
SELECT DISTINCT - 58 + 30 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT DISTINCT 54 * 48 + COUNT( * )
----
2593

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT 54 * 48 + COUNT ( * )
----
2593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) * COALESCE ( 25 * 85, 33 * 69 ) + + 18 * + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) * COALESCE ( 25 * 85, 33 * 69 ) + + 18 * + 69 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3874
SELECT ALL 28 * CAST( NULL AS DECIMAL ) + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL 28 * CAST ( NULL AS REAL ) + - 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT + 41 DIV 9 + 34 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3875
SELECT + 41 / 9 + 34 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT MIN( ALL 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3876
SELECT MIN ( ALL 22 ) AS col1
----
22

query I rowsort
SELECT 67 * 46
----
3082

query I rowsort
SELECT 2 * ( 48 )
----
96

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

skipif mysql # not compatible
query I rowsort label-3879
SELECT 95 * COUNT ( * ) + ( 79 ) AS col0
----
174

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3881
SELECT - 88 * 33 + - COUNT( * ) * - ( CAST( - 30 AS SIGNED ) ) AS col0
----
-2934

skipif mysql # not compatible
query I rowsort label-3881
SELECT - 88 * 33 + - COUNT ( * ) * - ( CAST ( - 30 AS INTEGER ) ) AS col0
----
-2934

query I rowsort
SELECT ALL - - 71 col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT - COUNT( ALL + 93 ) * + CASE 96 - CASE - 90 WHEN 32 THEN - 65 ELSE NULL END WHEN 73 THEN - COUNT( ALL 83 ) + 72 * 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT - COUNT ( ALL + 93 ) * + CASE 96 - CASE - 90 WHEN 32 THEN - 65 ELSE NULL END WHEN 73 THEN - COUNT ( ALL 83 ) + 72 * 8 END AS col2
----
NULL

query I rowsort
SELECT ALL - 71 * - 39
----
2769

query I rowsort
SELECT DISTINCT - 60 - - 42 * 86 AS col2
----
3552

query I rowsort
SELECT + 77 + + 31 * 70 AS col0
----
2247

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT + 21 * CAST( - 44 AS SIGNED ) AS col2
----
-924

skipif mysql # not compatible
query I rowsort label-3888
SELECT + 21 * CAST ( - 44 AS INTEGER ) AS col2
----
-924

query I rowsort
SELECT + + 47 * ( - 31 ) AS col0
----
-1457

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT + ( NULLIF ( - MAX( - 92 ), ( - 76 ) * 54 ) )
----
92

skipif mysql # not compatible
query I rowsort label-3890
SELECT + ( NULLIF ( - MAX ( - 92 ), ( - 76 ) * 54 ) )
----
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT - COUNT( * ) + - 84 * 61 col2
----
-5125

skipif mysql # not compatible
query I rowsort label-3892
SELECT - COUNT ( * ) + - 84 * 61 col2
----
-5125

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT DISTINCT CASE + 63 WHEN - SUM( ALL - COALESCE ( + 77, 42 ) ) + - 62 / + 95 THEN - NULLIF ( 91, - 20 + - 26 ) - + 88 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT CASE + 63 WHEN - SUM ( ALL - COALESCE ( + 77, 42 ) ) + - 62 / + 95 THEN - NULLIF ( 91, - 20 + - 26 ) - + 88 ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL + ( 67 ) AS col1
----
67

query I rowsort
SELECT ALL - 20 * 69 AS col2
----
-1380

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT ALL - COALESCE ( + 13, - 52 + COALESCE ( 68 + - 32 * 64, - 65 DIV 7 - 51 ) ) * 89
----
-1157

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - COALESCE ( + 13, - 52 + COALESCE ( 68 + - 32 * 64, - 65 / 7 - 51 ) ) * 89
----
-1157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT DISTINCT - CAST( + 13 AS SIGNED ) * - 86
----
1118

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT - CAST ( + 13 AS INTEGER ) * - 86
----
1118

query I rowsort
SELECT - 18 * - 44 AS col0
----
792

query I rowsort
SELECT ALL - 71 + 24 AS col2
----
-47

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

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

query I rowsort
SELECT DISTINCT + 26 + + 50 + - 4
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT ALL - CAST( 77 AS SIGNED ) + - 66
----
-143

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL - CAST ( 77 AS INTEGER ) + - 66
----
-143

query I rowsort
SELECT DISTINCT 12 + 96 + 33 AS col2
----
141

query I rowsort
SELECT ALL 47 + + - 62 col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3905
SELECT + SUM( DISTINCT + - 91 ) DIV SUM( ALL + 13 * 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-3905
SELECT + SUM ( DISTINCT + - 91 ) / SUM ( ALL + 13 * 5 )
----
-1

query I rowsort
SELECT - 64 * + 31
----
-1984

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3908
SELECT ALL 93 DIV - + COUNT( * ) + 73
----
-20

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL 93 / - + COUNT ( * ) + 73
----
-20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ( + 62 ) * COUNT( ALL 66 ) + MAX( 2 + + 30 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3910
SELECT ( + 62 ) * COUNT ( ALL 66 ) + MAX ( 2 + + 30 ) AS col0
----
94

query I rowsort
SELECT ALL 4 * - 77 col2
----
-308

query I rowsort
SELECT ( 45 ) col2
----
45

query I rowsort
SELECT ALL - 64 * + 14 AS col1
----
-896

query I rowsort
SELECT ALL 30 * - 49 - - 63
----
-1407

query I rowsort
SELECT + + 37 * + 73
----
2701

query I rowsort
SELECT ALL + 31 * 1
----
31

query I rowsort
SELECT + - ( + 50 ) + - 27 AS col1
----
-77

query I rowsort
SELECT ALL + - ( 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT + 88 * + 22 + + COUNT( * ) col0
----
1937

skipif mysql # not compatible
query I rowsort label-3919
SELECT + 88 * + 22 + + COUNT ( * ) col0
----
1937

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT + NULLIF ( - - 38, - COUNT( * ) ) + + 70 * - 78
----
-5422

skipif mysql # not compatible
query I rowsort label-3920
SELECT + NULLIF ( - - 38, - COUNT ( * ) ) + + 70 * - 78
----
-5422

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT - 15 - + + 16 + 12 DIV 20 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3921
SELECT - 15 - + + 16 + 12 / 20 AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3922
SELECT ALL 85 * COALESCE ( + 58, 80 DIV 37 + 19 ) - + SUM( - 58 )
----
4988

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL 85 * COALESCE ( + 58, 80 / 37 + 19 ) - + SUM ( - 58 )
----
4988

query I rowsort
SELECT + 54 * 77
----
4158

query I rowsort
SELECT + + 35 * - - 40 AS col1
----
1400

query I rowsort
SELECT ALL + 24 * - 65 * - 62
----
96720

query I rowsort
SELECT + - 18 - 95
----
-113

query I rowsort
SELECT - + ( + 3 ) * 16
----
-48

query I rowsort
SELECT + - 74 * - - ( 71 ) * 69
----
-362526

query I rowsort
SELECT - 4 * + - 69 AS col2
----
276

query I rowsort
SELECT ALL - + ( - - 19 ) * 93 + 97 * - 20 AS col0
----
-3707

query I rowsort
SELECT + 43 + + 58 * - 74
----
-4249

query I rowsort
SELECT + 30 + 37
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT - COALESCE ( + + 98, 19 - - COUNT( ALL 97 ) ) - 43 * - 25 AS col0
----
977

skipif mysql # not compatible
query I rowsort label-3933
SELECT - COALESCE ( + + 98, 19 - - COUNT ( ALL 97 ) ) - 43 * - 25 AS col0
----
977

query I rowsort
SELECT + 7 + - 80 AS col2
----
-73

query I rowsort
SELECT - 12 * NULLIF ( - 64, 79 * + 78 )
----
768

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL ( - 83 ) + - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL ( - 83 ) + - COUNT ( * )
----
-84

query I rowsort
SELECT DISTINCT 47 + 33 AS col1
----
80

query II rowsort
SELECT - 28 AS col1, + 72
----
-28
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL - 40 + + 31 - + - 36 + 70 * - ( COUNT( * ) * 58 ) AS col0
----
-4033

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL - 40 + + 31 - + - 36 + 70 * - ( COUNT ( * ) * 58 ) AS col0
----
-4033

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

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

query I rowsort
SELECT ALL NULLIF ( - ( - 40 ), 57 )
----
40

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

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

query I rowsort
SELECT - 41 * + 13
----
-533

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT - COUNT( * ) * - - COALESCE ( CASE 26 WHEN + 56 THEN + COALESCE ( COUNT( * ), - 11 ) * + 18 + NULLIF ( NULLIF ( - 60, - 70 * + 10 + - 39 ), - 93 ) * - ( - 49 * 27 ) END, - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-3945
SELECT - COUNT ( * ) * - - COALESCE ( CASE 26 WHEN + 56 THEN + COALESCE ( COUNT ( * ), - 11 ) * + 18 + NULLIF ( NULLIF ( - 60, - 70 * + 10 + - 39 ), - 93 ) * - ( - 49 * 27 ) END, - 54 )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT DISTINCT - 22 - + + 0 * + 80 DIV + 16 col0
----
-22

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT - 22 - + + 0 * + 80 / + 16 col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT + 99 + COALESCE ( + 22, COUNT( * ) - + COUNT( * ), COALESCE ( 11, 61 + COUNT( * ), + NULLIF ( 3, 59 ) * - 24 + + 84, - 73 ) ) col0
----
121

skipif mysql # not compatible
query I rowsort label-3947
SELECT + 99 + COALESCE ( + 22, COUNT ( * ) - + COUNT ( * ), COALESCE ( 11, 61 + COUNT ( * ), + NULLIF ( 3, 59 ) * - 24 + + 84, - 73 ) ) col0
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3948
SELECT - COALESCE ( - 4, - 94 DIV - 75 - COUNT( * ) ) * 98 AS col0
----
392

skipif mysql # not compatible
query I rowsort label-3948
SELECT - COALESCE ( - 4, - 94 / - 75 - COUNT ( * ) ) * 98 AS col0
----
392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3949
SELECT - - 66 DIV - 68 + - ( MAX( - 50 ) ) - ( COUNT( DISTINCT 95 ) ) * ( + CAST( 14 AS SIGNED ) )
----
36

skipif mysql # not compatible
query I rowsort label-3949
SELECT - - 66 / - 68 + - ( MAX ( - 50 ) ) - ( COUNT ( DISTINCT 95 ) ) * ( + CAST ( 14 AS INTEGER ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT DISTINCT + + NULLIF ( - + 44, - - 6 * + COUNT( * ) ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT + + NULLIF ( - + 44, - - 6 * + COUNT ( * ) ) col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT 54 * + + NULLIF ( + - CASE 89 WHEN + 60 THEN NULL WHEN 27 + COUNT( * ) / COUNT( * ) THEN 27 * - 40 END, 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT 54 * + + NULLIF ( + - CASE 89 WHEN + 60 THEN NULL WHEN 27 + COUNT ( * ) / COUNT ( * ) THEN 27 * - 40 END, 22 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT 0 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-3952
SELECT 0 / + 42
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3953
SELECT COUNT( * ) DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-3953
SELECT COUNT ( * ) / - 66
----
0

query I rowsort
SELECT DISTINCT - + 51 col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT ALL - 19 * - 15 + + CAST( NULL AS SIGNED ) / 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL - 19 * - 15 + + CAST ( NULL AS INTEGER ) / 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT 14 * - ( - NULLIF ( 39, 38 - COUNT( * ) / 41 ) ) * + 91 - COUNT( * ) + - CASE - 96 + 87 * COUNT( * ) WHEN + 97 THEN 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT 14 * - ( - NULLIF ( 39, 38 - COUNT ( * ) / 41 ) ) * + 91 - COUNT ( * ) + - CASE - 96 + 87 * COUNT ( * ) WHEN + 97 THEN 77 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3957
SELECT + - CAST( NULL AS SIGNED ), CAST( + 43 AS SIGNED ) AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-3957
SELECT + - CAST ( NULL AS INTEGER ), CAST ( + 43 AS INTEGER ) AS col1
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT DISTINCT - - NULLIF ( 4, + MAX( ALL + NULLIF ( 35, - 88 ) ) )
----
4

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT - - NULLIF ( 4, + MAX ( ALL + NULLIF ( 35, - 88 ) ) )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT 0 + - CASE + 84 WHEN + ( 9 ) THEN + 61 WHEN 46 THEN + 60 + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT 0 + - CASE + 84 WHEN + ( 9 ) THEN + 61 WHEN 46 THEN + 60 + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT + ( + + CASE AVG ( DISTINCT 57 ) WHEN - 91 + 79 * 15 THEN NULL ELSE 84 * COUNT( * ) + 95 END )
----
179

skipif mysql # not compatible
query I rowsort label-3960
SELECT + ( + + CASE AVG ( DISTINCT 57 ) WHEN - 91 + 79 * 15 THEN NULL ELSE 84 * COUNT ( * ) + 95 END )
----
179

query II rowsort
SELECT ALL - 59, - 48 AS col2
----
-59
-48

query II rowsort
SELECT + 50 AS col1, - 83 - + 3
----
50
-86

query I rowsort
SELECT + 24 * 28 + - 30 + - 61 AS col2
----
581

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

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

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

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

query I rowsort
SELECT 77 + - 43 AS col1
----
34

query I rowsort
SELECT DISTINCT 36 * 86 col1
----
3096

query I rowsort
SELECT ALL 35 - - 96 AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ( + - COALESCE ( 55, + - COUNT( * ) ) ) - + 42
----
-97

skipif mysql # not compatible
query I rowsort label-3969
SELECT ( + - COALESCE ( 55, + - COUNT ( * ) ) ) - + 42
----
-97

query I rowsort
SELECT 93 * 88 AS col2
----
8184

query I rowsort
SELECT 2 * 81 AS col1
----
162

query I rowsort
SELECT 2 - - 28 - + 68 AS col2
----
-38

query I rowsort
SELECT - 73 * + 63 AS col0
----
-4599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT CASE + - CAST( 21 AS SIGNED ) WHEN + COALESCE ( 64, - ( + SUM( DISTINCT + 31 ) ), + 22 / + ( CAST( 71 AS SIGNED ) * 23 ) + COUNT( * ) ) THEN 97 - + 56 WHEN 71 THEN - 40 WHEN 29 THEN NULL END * 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT CASE + - CAST ( 21 AS INTEGER ) WHEN + COALESCE ( 64, - ( + SUM ( DISTINCT + 31 ) ), + 22 / + ( CAST ( 71 AS INTEGER ) * 23 ) + COUNT ( * ) ) THEN 97 - + 56 WHEN 71 THEN - 40 WHEN 29 THEN NULL END * 52 AS col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL + - 81 * - COUNT( * ) * - 83
----
-6723

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL + - 81 * - COUNT ( * ) * - 83
----
-6723

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT 46 * - COUNT( * ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-3978
SELECT 46 * - COUNT ( * ) AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3979
SELECT DISTINCT - + AVG ( DISTINCT + 42 ) + - CAST( NULL AS SIGNED ) / + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT - + AVG ( DISTINCT + 42 ) + - CAST ( NULL AS INTEGER ) / + 20 AS col2
----
NULL

query I rowsort
SELECT ALL - - 6 col0
----
6

query I rowsort
SELECT 84 + 30 AS col2
----
114

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3982
SELECT + 73 DIV + 94 * + COALESCE ( + 71, NULLIF ( 69, + 26 ) + - CAST( + 87 + - 37 AS SIGNED ) ) + 51 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3982
SELECT + 73 / + 94 * + COALESCE ( + 71, NULLIF ( 69, + 26 ) + - CAST ( + 87 + - 37 AS INTEGER ) ) + 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL - - COUNT( * ) + SUM( 78 )
----
79

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - - COUNT ( * ) + SUM ( 78 )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3984
SELECT DISTINCT - - 63 DIV NULLIF ( - 85, COUNT( * ) ) DIV + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT - - 63 / NULLIF ( - 85, COUNT ( * ) ) / + 75 AS col1
----
0

query II rowsort
SELECT + 30 + + 11 AS col2, - 36
----
41
-36

query I rowsort
SELECT DISTINCT + 14 + 38 + - 72
----
-20

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

query I rowsort
SELECT ALL 95 + - 23 - ( + + 88 ) + - 17 col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3989
SELECT ALL - 25 col1, COUNT( - 74 ) DIV 34 + + + CASE + 92 WHEN 25 * ( 96 ) THEN 28 + - COUNT( * ) DIV 65 WHEN COUNT( * ) + + 7 THEN ( - 40 ) + - 56 ELSE + 10 * COUNT( * ) END - + ( 49 ) AS col2
----
-25
-39

skipif mysql # not compatible
query II rowsort label-3989
SELECT ALL - 25 col1, COUNT ( - 74 ) / 34 + + + CASE + 92 WHEN 25 * ( 96 ) THEN 28 + - COUNT ( * ) / 65 WHEN COUNT ( * ) + + 7 THEN ( - 40 ) + - 56 ELSE + 10 * COUNT ( * ) END - + ( 49 ) AS col2
----
-25
-39

query I rowsort
SELECT NULLIF ( 19, - 46 * + 95 * + 22 ) * 4 - - NULLIF ( 95, 42 + 14 )
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT MAX( ALL + - 49 ) * 31 + - + 98 AS col2
----
-1617

skipif mysql # not compatible
query I rowsort label-3991
SELECT MAX ( ALL + - 49 ) * 31 + - + 98 AS col2
----
-1617

onlyif mysql # DIV for integer division: 
query II rowsort label-3992
SELECT DISTINCT - 9, - 26 DIV + 76 + - - 77 AS col1
----
-9
77

skipif mysql # not compatible
query II rowsort label-3992
SELECT DISTINCT - 9, - 26 / + 76 + - - 77 AS col1
----
-9
77

query I rowsort
SELECT ALL + 40 - - ( 41 ) * - + 67 AS col2
----
-2707

query I rowsort
SELECT 48 * - 12 AS col1
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT 57 + - - ( + CASE 47 WHEN + - 99 THEN - 69 * - 74 WHEN 91 * 39 THEN COUNT( * ) * COUNT( * ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT 57 + - - ( + CASE 47 WHEN + - 99 THEN - 69 * - 74 WHEN 91 * 39 THEN COUNT ( * ) * COUNT ( * ) ELSE NULL END ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3997
SELECT ALL NULLIF ( 21, + 18 ) AS col0, - 81 + - COALESCE ( 36, 71, + 90 * - ( + COUNT( * ) ) ) * + ( 0 * 43 ) AS col2
----
21
-81

skipif mysql # not compatible
query II rowsort label-3997
SELECT ALL NULLIF ( 21, + 18 ) AS col0, - 81 + - COALESCE ( 36, 71, + 90 * - ( + COUNT ( * ) ) ) * + ( 0 * 43 ) AS col2
----
21
-81

query I rowsort
SELECT DISTINCT NULLIF ( 4, + 46 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3999
SELECT ( + 17 ) / 59 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT ( + 17 ) / 59 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 4 AS col1, + 39 AS col0
----
4
39

query I rowsort
SELECT + 40 + + 63 AS col0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT + 51 DIV + 64 * + 65 * - - 94
----
0

skipif mysql # not compatible
query I rowsort label-4002
SELECT + 51 / + 64 * + 65 * - - 94
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT + 57 DIV 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4003
SELECT + 57 / 53 AS col1
----
1

query I rowsort
SELECT + 16 + + + 41
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT - - 83 + + CASE - CAST( NULL AS SIGNED ) WHEN - + COALESCE ( - + 65, + COUNT( DISTINCT 39 ) + 37, - 89 ) THEN NULL WHEN - 0 + - 17 * 22 THEN 95 END + 23 * ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT - - 83 + + CASE - CAST ( NULL AS INTEGER ) WHEN - + COALESCE ( - + 65, + COUNT ( DISTINCT 39 ) + 37, - 89 ) THEN NULL WHEN - 0 + - 17 * 22 THEN 95 END + 23 * ( COUNT ( * ) )
----
NULL

query II rowsort
SELECT - 61, 34 AS col1
----
-61
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT SUM( 76 )
----
76

skipif mysql # not compatible
query I rowsort label-4007
SELECT SUM ( 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL ( + COUNT( * ) ) + - - 4 + 56 * + 80 AS col0
----
4485

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL ( + COUNT ( * ) ) + - - 4 + 56 * + 80 AS col0
----
4485

query I rowsort
SELECT DISTINCT COALESCE ( + 81, 26 + + - 24 )
----
81

query I rowsort
SELECT ALL 77 + 4 * 60 AS col2
----
317

query I rowsort
SELECT ALL - + 66 + + + 80 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT CASE - - COALESCE ( + - 46, ( 1 ) ) WHEN ( - 35 ) THEN NULL WHEN - 55 THEN + 30 - - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT CASE - - COALESCE ( + - 46, ( 1 ) ) WHEN ( - 35 ) THEN NULL WHEN - 55 THEN + 30 - - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL - + ( + 99 ) * - SUM( DISTINCT - 32 ) + 33 + 7 + 96
----
-3032

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL - + ( + 99 ) * - SUM ( DISTINCT - 32 ) + 33 + 7 + 96
----
-3032

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT - - COUNT( * ) * 83 * 75 AS col0
----
6225

skipif mysql # not compatible
query I rowsort label-4014
SELECT - - COUNT ( * ) * 83 * 75 AS col0
----
6225

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT DISTINCT + 32 * - + 18 * + 93 + - + COUNT( * )
----
-53569

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT + 32 * - + 18 * + 93 + - + COUNT ( * )
----
-53569

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

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

query I rowsort
SELECT - - 98 * - + 93 col2
----
-9114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4018
SELECT + COALESCE ( 22, - 50, 77 + + - COUNT( - 37 ) DIV SUM( ALL - 48 * 88 ) ) + - 27 DIV + 74
----
22

skipif mysql # not compatible
query I rowsort label-4018
SELECT + COALESCE ( 22, - 50, 77 + + - COUNT ( - 37 ) / SUM ( ALL - 48 * 88 ) ) + - 27 / + 74
----
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT + COUNT( * ) * - + 25 + - 9 + MIN( ALL - 12 )
----
-46

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT + COUNT ( * ) * - + 25 + - 9 + MIN ( ALL - 12 )
----
-46

query I rowsort
SELECT DISTINCT + + COALESCE ( - - 68, 86 + + 40 ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4022
SELECT ALL CAST( NULL AS SIGNED ) * + - NULLIF ( + 25, - - 5 * - 36 + CAST( 41 AS SIGNED ) * 46 - 13 * 93 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL CAST ( NULL AS INTEGER ) * + - NULLIF ( + 25, - - 5 * - 36 + CAST ( 41 AS INTEGER ) * 46 - 13 * 93 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL + CASE + AVG ( + 91 ) WHEN + 62 * + 91 - + 57 + 6 * 20 THEN 41 ELSE + 30 * - 9 END * - 28 - COALESCE ( - ( - 84 ), MAX( DISTINCT + 57 ) * + 91 + + 84, + 52 * - 33 + - 92 ) * 50
----
3360

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL + CASE + AVG ( + 91 ) WHEN + 62 * + 91 - + 57 + 6 * 20 THEN 41 ELSE + 30 * - 9 END * - 28 - COALESCE ( - ( - 84 ), MAX ( DISTINCT + 57 ) * + 91 + + 84, + 52 * - 33 + - 92 ) * 50
----
3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4024
SELECT - 54 + + - 4 + 60 + 74 + NULLIF ( 66, COUNT( * ) ) * SUM( 81 DIV 41 ) * - 10 AS col1
----
-584

skipif mysql # not compatible
query I rowsort label-4024
SELECT - 54 + + - 4 + 60 + 74 + NULLIF ( 66, COUNT ( * ) ) * SUM ( 81 / 41 ) * - 10 AS col1
----
-584

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

query I rowsort
SELECT COALESCE ( - 92, - 82 ) AS col0
----
-92

query I rowsort
SELECT + 84 * - 85 * + + 28 + + - 57 AS col2
----
-199977

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT - 0 DIV + 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4028
SELECT - 0 / + 50 AS col0
----
0

query I rowsort
SELECT + 6 * 59
----
354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT ALL - 81 DIV COUNT( DISTINCT 96 ) DIV - - 52 col0
----
-1

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL - 81 / COUNT ( DISTINCT 96 ) / - - 52 col0
----
-1

query I rowsort
SELECT 9 * + 0 + + 69 AS col0
----
69

query I rowsort
SELECT + 82 * + 21 AS col0
----
1722

query I rowsort
SELECT ALL + 9 * - 15
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4034
SELECT ALL NULLIF ( CASE + - COALESCE ( - - 35, CAST( - ( 41 ) AS DECIMAL ) * - NULLIF ( 28, + 77 ) + 64 * + ( 23 * + CASE - 64 * + 85 WHEN + 65 THEN 21 ELSE + 28 END ) ) WHEN COUNT( * ) * MAX( CASE WHEN NOT 51 NOT BETWEEN NULL AND + 14 THEN NULL ELSE 7 / - CAST( + 98 AS SIGNED ) END ) + + COUNT( * ) THEN NULL ELSE 6 END, + COALESCE ( + 10, 95 + COUNT( * ) ) * COUNT( * ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL NULLIF ( CASE + - COALESCE ( - - 35, CAST ( - ( 41 ) AS REAL ) * - NULLIF ( 28, + 77 ) + 64 * + ( 23 * + CASE - 64 * + 85 WHEN + 65 THEN 21 ELSE + 28 END ) ) WHEN COUNT ( * ) * MAX ( CASE WHEN NOT 51 NOT BETWEEN NULL AND + 14 THEN NULL ELSE 7 / - CAST ( + 98 AS INTEGER ) END ) + + COUNT ( * ) THEN NULL ELSE 6 END, + COALESCE ( + 10, 95 + COUNT ( * ) ) * COUNT ( * ) ) AS col1
----
6

query II rowsort
SELECT ALL + 18 * 31 AS col2, 18 col1
----
558
18

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

query I rowsort
SELECT ALL ( - - 91 )
----
91

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

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

query I rowsort
SELECT - 10 * + 6 AS col1
----
-60

query I rowsort
SELECT + 16 * 10 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT - NULLIF ( + 39, MIN( - - 19 ) + - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-4041
SELECT - NULLIF ( + 39, MIN ( - - 19 ) + - 39 )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4042
SELECT DISTINCT 7 AS col0, COUNT( * ) - - 20
----
7
21

skipif mysql # not compatible
query II rowsort label-4042
SELECT DISTINCT 7 AS col0, COUNT ( * ) - - 20
----
7
21

query I rowsort
SELECT - 4 - + - 1 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT + MIN( - 78 ) * - + 6 * + + 61 AS col0
----
28548

skipif mysql # not compatible
query I rowsort label-4044
SELECT + MIN ( - 78 ) * - + 6 * + + 61 AS col0
----
28548

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT DISTINCT - + 97 + - MAX( ALL + 70 ) AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT - + 97 + - MAX ( ALL + 70 ) AS col1
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT ALL + + COUNT( * ) + - 32
----
-31

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + + COUNT ( * ) + - 32
----
-31

query I rowsort
SELECT DISTINCT 40 * + 19 AS col0
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT NULLIF ( 18, - COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-4048
SELECT NULLIF ( 18, - COUNT ( * ) )
----
18

query I rowsort
SELECT ALL - 96 + + 27 - + 77
----
-146

query II rowsort
SELECT - 40 col0, 39
----
-40
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT + + 27 DIV + - 29
----
0

skipif mysql # not compatible
query I rowsort label-4051
SELECT + + 27 / + - 29
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4052
SELECT + 85 + - + CAST( NULL AS SIGNED ) AS col2, 12 + CASE WHEN NOT + 61 BETWEEN 70 AND + 78 THEN - COUNT( * ) + 15 WHEN NOT + 5 + + 42 = + 58 THEN - 46 + + 5 END
----
NULL
26

skipif mysql # not compatible
query II rowsort label-4052
SELECT + 85 + - + CAST ( NULL AS INTEGER ) AS col2, 12 + CASE WHEN NOT + 61 BETWEEN 70 AND + 78 THEN - COUNT ( * ) + 15 WHEN NOT + 5 + + 42 = + 58 THEN - 46 + + 5 END
----
NULL
26

query I rowsort
SELECT + 55 * 21
----
1155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4054
SELECT + 99 + - + 46 - - 62 + + COUNT( * ) - - - 35 DIV - 40 * 5 * - COALESCE ( + 28, 53 * 15, - 99 * 8 ) * COUNT( * ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-4054
SELECT + 99 + - + 46 - - 62 + + COUNT ( * ) - - - 35 / - 40 * 5 * - COALESCE ( + 28, 53 * 15, - 99 * 8 ) * COUNT ( * ) AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT + 63 * - 99 + + + 92 + + 99 + - + MIN( DISTINCT - 78 ) + + CASE 15 WHEN - ( COUNT( - 92 ) ) THEN 77 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT + 63 * - 99 + + + 92 + + 99 + - + MIN ( DISTINCT - 78 ) + + CASE 15 WHEN - ( COUNT ( - 92 ) ) THEN 77 END AS col0
----
NULL

query II rowsort
SELECT ALL + 67 AS col1, 78 col2
----
67
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4057
SELECT + + 75 * + - 11 * 68 * CASE + 64 WHEN 35 + 53 * - 33 THEN NULL WHEN + ( 50 ) THEN + 99 WHEN - 31 * - CAST( NULL AS SIGNED ) THEN 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT + + 75 * + - 11 * 68 * CASE + 64 WHEN 35 + 53 * - 33 THEN NULL WHEN + ( 50 ) THEN + 99 WHEN - 31 * - CAST ( NULL AS INTEGER ) THEN 44 END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4059
SELECT + 59, 89 * - 64 * + + 94 - + - COUNT( * ) AS col1
----
59
-535423

skipif mysql # not compatible
query II rowsort label-4059
SELECT + 59, 89 * - 64 * + + 94 - + - COUNT ( * ) AS col1
----
59
-535423

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4060
SELECT 58 * + - 2 + + 88 AS col1, CAST( NULL AS SIGNED ) + 93 + - 74
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-4060
SELECT 58 * + - 2 + + 88 AS col1, CAST ( NULL AS INTEGER ) + 93 + - 74
----
-28
NULL

query I rowsort
SELECT + 24 * + + 85
----
2040

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

query I rowsort
SELECT + 94 * - + 46
----
-4324

query II rowsort
SELECT ALL - 77 * + - 11, + ( + + 33 ) AS col2
----
847
33

query I rowsort
SELECT DISTINCT 35 * - ( ( 10 ) )
----
-350

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

skipif mysql # not compatible
query I rowsort label-4066
SELECT - COUNT ( * ) / + 15 * ( - + 89 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4067
SELECT ALL - MIN( DISTINCT + 93 ), + 7 * + 70 AS col0
----
-93
490

skipif mysql # not compatible
query II rowsort label-4067
SELECT ALL - MIN ( DISTINCT + 93 ), + 7 * + 70 AS col0
----
-93
490

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT 14 * + 19 * + COUNT( * ) - + 53 AS col1
----
213

skipif mysql # not compatible
query I rowsort label-4068
SELECT 14 * + 19 * + COUNT ( * ) - + 53 AS col1
----
213

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT 21 DIV + 77 * 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT 21 / + 77 * 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT 92 + COUNT( * ) - 78 * COUNT( * ) + + NULLIF ( ( - COUNT( * ) ), - 73 * - 85 )
----
14

skipif mysql # not compatible
query I rowsort label-4070
SELECT 92 + COUNT ( * ) - 78 * COUNT ( * ) + + NULLIF ( ( - COUNT ( * ) ), - 73 * - 85 )
----
14

query II rowsort
SELECT 30 * - + 56 AS col2, + 30 + + 0 * + - 0 * - 5 AS col2
----
-1680
30

query I rowsort
SELECT ALL - ( + - 0 ) + - + 45 col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT DISTINCT - 6 + 30 / - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT - 6 + 30 / - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4075
SELECT DISTINCT + + 32 + - COUNT( * ), 67 * + 83 - - 43 + - - 47 AS col2
----
31
5651

skipif mysql # not compatible
query II rowsort label-4075
SELECT DISTINCT + + 32 + - COUNT ( * ), 67 * + 83 - - 43 + - - 47 AS col2
----
31
5651

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

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

query I rowsort
SELECT ALL - 11 + - 72 AS col2
----
-83

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT - 16 + 39 AS col2, - COUNT( * ) * + 94
----
23
-94

skipif mysql # not compatible
query II rowsort label-4079
SELECT - 16 + 39 AS col2, - COUNT ( * ) * + 94
----
23
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4080
SELECT + 52 + + 1, - 57 / CAST( NULL AS SIGNED ) - + COALESCE ( 79, + 47 ) AS col2
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4080
SELECT + 52 + + 1, - 57 / CAST ( NULL AS INTEGER ) - + COALESCE ( 79, + 47 ) AS col2
----
53
NULL

query I rowsort
SELECT - ( COALESCE ( - + 6, - 68, - 34 ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ALL + NULLIF ( + COUNT( * ), CASE - COUNT( 15 ) WHEN + 94 THEN 22 END * - 76 )
----
1

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL + NULLIF ( + COUNT ( * ), CASE - COUNT ( 15 ) WHEN + 94 THEN 22 END * - 76 )
----
1

query I rowsort
SELECT DISTINCT NULLIF ( - 34, + 85 - - 6 * + 78 ) * - - 45 AS col2
----
-1530

query I rowsort
SELECT 13 * + 73 + 49
----
998

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

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

query I rowsort
SELECT 96 * + 4 col1
----
384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT 81 * - 51 + - 38 * + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT 81 * - 51 + - 38 * + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4088
SELECT + 38 DIV - 96 * + 1 - + + 31
----
-31

skipif mysql # not compatible
query I rowsort label-4088
SELECT + 38 / - 96 * + 1 - + + 31
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT ( + + 20 ) DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4089
SELECT ( + + 20 ) / 93 AS col0
----
0

query I rowsort
SELECT ALL 0 * + + 12 * + + NULLIF ( - 96, + - 83 * 4 ) AS col2
----
0

query I rowsort
SELECT 86 * + 84
----
7224

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

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

query II rowsort
SELECT 83 AS col2, 0 AS col1
----
83
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4095
SELECT CAST( NULL AS DECIMAL ) + + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT CAST ( NULL AS REAL ) + + 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT 76 * CASE - 36 WHEN - + 16 THEN - COUNT( * ) ELSE NULL END * + 45 * 75 * - 87 + CASE - 52 WHEN COALESCE ( COUNT( * ), 10 ) + 66 THEN + 4 / 69 WHEN - 75 / + 84 + 27 THEN - 28 ELSE 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT 76 * CASE - 36 WHEN - + 16 THEN - COUNT ( * ) ELSE NULL END * + 45 * 75 * - 87 + CASE - 52 WHEN COALESCE ( COUNT ( * ), 10 ) + 66 THEN + 4 / 69 WHEN - 75 / + 84 + 27 THEN - 28 ELSE 34 END
----
NULL

query II rowsort
SELECT + 38 AS col1, ( - 85 ) AS col0
----
38
-85

query II rowsort
SELECT DISTINCT - 53 col0, - 18
----
-53
-18

query I rowsort
SELECT - 74 * + 26 + + + 94 AS col0
----
-1830

query I rowsort
SELECT 37 + - 43 AS col2
----
-6

query I rowsort
SELECT ALL - 46 * - - 79 AS col2
----
-3634

query I rowsort
SELECT ALL 87 + + 31 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL MIN( ALL 81 ) + - 74 * + COUNT( * ) * - 80 * + 36 + - - 39 * - + CASE 62 WHEN - 64 THEN NULL WHEN 85 THEN NULL ELSE 32 END AS col0
----
211953

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL MIN ( ALL 81 ) + - 74 * + COUNT ( * ) * - 80 * + 36 + - - 39 * - + CASE 62 WHEN - 64 THEN NULL WHEN 85 THEN NULL ELSE 32 END AS col0
----
211953

query I rowsort
SELECT DISTINCT 22 + + 35
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL MIN( 98 ) * - 56 * 78 * - - 71
----
-30392544

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL MIN ( 98 ) * - 56 * 78 * - - 71
----
-30392544

query I rowsort
SELECT ALL - - 59 + 6 AS col2
----
65

query II rowsort
SELECT 24 col1, - 88
----
24
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL 57 + + 96 + + COUNT( * )
----
154

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL 57 + + 96 + + COUNT ( * )
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-4109
SELECT - 1 DIV + 16 * + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4109
SELECT - 1 / + 16 * + 60 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4110
SELECT + NULLIF ( - + 5, - CAST( NULL AS DECIMAL ) * + CASE + 81 WHEN 0 * - - ( + + 33 ) / 41 THEN NULL WHEN + COUNT( * ) - + 25 THEN - ( 83 ) ELSE NULL END * 80 + + 89 ) * + 57
----
-285

skipif mysql # not compatible
query I rowsort label-4110
SELECT + NULLIF ( - + 5, - CAST ( NULL AS REAL ) * + CASE + 81 WHEN 0 * - - ( + + 33 ) / 41 THEN NULL WHEN + COUNT ( * ) - + 25 THEN - ( 83 ) ELSE NULL END * 80 + + 89 ) * + 57
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT NULLIF ( COUNT( * ), - COUNT( * ) ) * + 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4111
SELECT NULLIF ( COUNT ( * ), - COUNT ( * ) ) * + 56 AS col2
----
56

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4113
SELECT - ( - CAST( 5 AS SIGNED ) )
----
5

skipif mysql # not compatible
query I rowsort label-4113
SELECT - ( - CAST ( 5 AS INTEGER ) )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4114
SELECT NULLIF ( - COUNT( * ), + MAX( 35 ) ) / 67 * + + ( + - CAST( NULL AS SIGNED ) ) * 39 + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT NULLIF ( - COUNT ( * ), + MAX ( 35 ) ) / 67 * + + ( + - CAST ( NULL AS INTEGER ) ) * 39 + 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL + + 54 * - 82 + 70 + MAX( DISTINCT - 49 ) col1
----
-4407

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL + + 54 * - 82 + 70 + MAX ( DISTINCT - 49 ) col1
----
-4407

query I rowsort
SELECT 15 * + - 90 * + - 78 + NULLIF ( - 90, 90 )
----
105210

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT - 90 * 17 + 72 * 84 * + CASE - 45 WHEN + - 32 THEN + 45 WHEN + 66 THEN COALESCE ( - 17, + 30 + - COUNT( * ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT - 90 * 17 + 72 * 84 * + CASE - 45 WHEN + - 32 THEN + 45 WHEN + 66 THEN COALESCE ( - 17, + 30 + - COUNT ( * ) ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - 53 AS col2, 39
----
-53
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT DISTINCT - - ( + 64 ) - + 41 + COALESCE ( + NULLIF ( - - 19, + 47 ), - ( COUNT( * ) ), 47 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT - - ( + 64 ) - + 41 + COALESCE ( + NULLIF ( - - 19, + 47 ), - ( COUNT ( * ) ), 47 ) AS col1
----
42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT ALL - CAST( - NULLIF ( - AVG ( 98 ), 38 * 52 - - - NULLIF ( SUM( 20 ), - 67 ) ) AS SIGNED ) * - 97
----
9506

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL - CAST ( - NULLIF ( - AVG ( 98 ), 38 * 52 - - - NULLIF ( SUM ( 20 ), - 67 ) ) AS INTEGER ) * - 97
----
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - 56 * - 67 * + - 72 + + + COUNT( * ) AS col1
----
-270143

skipif mysql # not compatible
query I rowsort label-4122
SELECT - 56 * - 67 * + - 72 + + + COUNT ( * ) AS col1
----
-270143

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4123
SELECT CASE - NULLIF ( + CAST( NULL AS DECIMAL ), - 8 * + 83 * + 98 * + 21 * + 54 / - + 17 ) WHEN ( - 41 ) * COUNT( * ) THEN NULL WHEN 26 / - COUNT( * ) THEN NULL WHEN 75 THEN COUNT( * ) END * - 56 + 32 * + 31 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT CASE - NULLIF ( + CAST ( NULL AS REAL ), - 8 * + 83 * + 98 * + 21 * + 54 / - + 17 ) WHEN ( - 41 ) * COUNT ( * ) THEN NULL WHEN 26 / - COUNT ( * ) THEN NULL WHEN 75 THEN COUNT ( * ) END * - 56 + 32 * + 31 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT DISTINCT - NULLIF ( - + COALESCE ( - - 5, + 38 * 81 ), - COUNT( * ) * 29 )
----
5

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT - NULLIF ( - + COALESCE ( - - 5, + 38 * 81 ), - COUNT ( * ) * 29 )
----
5

query I rowsort
SELECT ALL 15 * + + 76 + 87 * - + 96 * + 67 + - + 95 AS col0
----
-558539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4126
SELECT SUM( + + 10 ) DIV - 16
----
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT SUM ( + + 10 ) / - 16
----
0

query I rowsort
SELECT ALL - ( + 98 ) * 57 + - 47 AS col1
----
-5633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT - CAST( 75 AS SIGNED ) * 13
----
-975

skipif mysql # not compatible
query I rowsort label-4128
SELECT - CAST ( 75 AS INTEGER ) * 13
----
-975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT - 95 / + CAST( NULL AS SIGNED ) * - + 51 + + 13 * - ( + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT - 95 / + CAST ( NULL AS INTEGER ) * - + 51 + + 13 * - ( + 33 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4130
SELECT + COUNT ( * ) * - 82 / + 59 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT MIN( + 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4131
SELECT MIN ( + 8 ) AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT ALL CAST( NULL AS SIGNED ) * 83 * - 70 + + 67 * 39 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL CAST ( NULL AS INTEGER ) * 83 * - 70 + + 67 * 39 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4133
SELECT ALL + MAX( ALL + 42 ) * + - 42 * + + 65 + + 6 + + NULLIF ( 46, + + 16 ) * 47 * CASE 25 WHEN 38 - 20 THEN + 52 - CASE - 87 WHEN + 91 * - 99 THEN 66 END * MAX( 94 * + 14 ) WHEN 1 + - 52 / + 84 THEN 36 WHEN - 75 + - COUNT( * ) * + CAST( NULL AS DECIMAL ) THEN + 1 END + + 40 / 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + MAX ( ALL + 42 ) * + - 42 * + + 65 + + 6 + + NULLIF ( 46, + + 16 ) * 47 * CASE 25 WHEN 38 - 20 THEN + 52 - CASE - 87 WHEN + 91 * - 99 THEN 66 END * MAX ( 94 * + 14 ) WHEN 1 + - 52 / + 84 THEN 36 WHEN - 75 + - COUNT ( * ) * + CAST ( NULL AS REAL ) THEN + 1 END + + 40 / 38 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT ALL + - NULLIF ( + + 62, + NULLIF ( - - 83, + ( + - CAST( NULL AS SIGNED ) ) + + + NULLIF ( - + 63, - 39 + MIN( ALL - 66 ) ) * + 7 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL + - NULLIF ( + + 62, + NULLIF ( - - 83, + ( + - CAST ( NULL AS INTEGER ) ) + + + NULLIF ( - + 63, - 39 + MIN ( ALL - 66 ) ) * + 7 ) )
----
-62

query I rowsort
SELECT + + ( 1 ) + 56 AS col0
----
57

query I rowsort
SELECT ALL + 84 - + 61
----
23

query I rowsort
SELECT + - 78 + 22
----
-56

query II rowsort
SELECT + + 3 + + 24, 9 * + 4 AS col2
----
27
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4139
SELECT - COUNT( * ) * - - CAST( + NULLIF ( 43, - - 42 ) AS SIGNED ) + - 94 AS col0
----
-137

skipif mysql # not compatible
query I rowsort label-4139
SELECT - COUNT ( * ) * - - CAST ( + NULLIF ( 43, - - 42 ) AS INTEGER ) + - 94 AS col0
----
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-4140
SELECT - + ( - 17 ) col2, NULLIF ( - - MIN( - 3 ), 32 ) * + NULLIF ( - + 54, ( 7 ) - ( ( - 80 ) ) ) + 1 AS col0
----
17
163

skipif mysql # not compatible
query II rowsort label-4140
SELECT - + ( - 17 ) col2, NULLIF ( - - MIN ( - 3 ), 32 ) * + NULLIF ( - + 54, ( 7 ) - ( ( - 80 ) ) ) + 1 AS col0
----
17
163

query I rowsort
SELECT 29 * - 40 + + 79 col1
----
-1081

query I rowsort
SELECT - 21 - + + 47 - - + 3 AS col2
----
-65

query I rowsort
SELECT + ( - 79 ) + - 44 - - + 79 + + + 9 + - 17 * - - 92
----
-1599

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT ALL COUNT( * ) * + 69 col2
----
69

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL COUNT ( * ) * + 69 col2
----
69

query I rowsort
SELECT DISTINCT - 15 * - - 36 * - - NULLIF ( - 11, - - 61 / 99 ) * - 70 + 60 + + 35 * + 37
----
-414445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT ALL 62 * + 20 * - 47 * - + COALESCE ( 78, ( + 54 ), CAST( NULL AS SIGNED ) * 47 )
----
4545840

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL 62 * + 20 * - 47 * - + COALESCE ( 78, ( + 54 ), CAST ( NULL AS INTEGER ) * 47 )
----
4545840

query I rowsort
SELECT - + 88 + - + 77
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT + - 77 DIV 60 * 84 * - 27 AS col0
----
2268

skipif mysql # not compatible
query I rowsort label-4148
SELECT + - 77 / 60 * 84 * - 27 AS col0
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT - + 38 + - - 25 + - COUNT( * ) * 14
----
-27

skipif mysql # not compatible
query I rowsort label-4149
SELECT - + 38 + - - 25 + - COUNT ( * ) * 14
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4150
SELECT ALL + COALESCE ( - - 93, + 54 + - COUNT( * ) - + COUNT( * ) * 21 + - + CASE - COUNT( * ) WHEN 67 THEN - 83 + COUNT( * ) * 10 END ) DIV + 7 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL + COALESCE ( - - 93, + 54 + - COUNT ( * ) - + COUNT ( * ) * 21 + - + CASE - COUNT ( * ) WHEN 67 THEN - 83 + COUNT ( * ) * 10 END ) / + 7 AS col1
----
13

query II rowsort
SELECT + 76 + 75 AS col0, 28 - + 97 * - 76 * + - 25 * + ( 41 )
----
151
-7556272

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

query II rowsort
SELECT - 90 + + 63, 86 col1
----
-27
86

query I rowsort
SELECT ALL 60 + 42 AS col1
----
102

query I rowsort
SELECT DISTINCT - 36 + - 80
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT DISTINCT + MAX( DISTINCT + 11 ) * 31 * + 37 * + 24 AS col0
----
302808

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT + MAX ( DISTINCT + 11 ) * 31 * + 37 * + 24 AS col0
----
302808

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT - CAST( NULL AS SIGNED ) + 18 - - + CASE - + 88 WHEN 49 THEN + 32 WHEN 64 THEN NULL WHEN - - 28 / - 48 * 40 * + 65 + ( + 95 ) * 89 THEN NULL ELSE + 6 + 84 END - 88 * COALESCE ( 50 + 0 * + 34, COUNT( * ) + + 44, + 91 / 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT - CAST ( NULL AS INTEGER ) + 18 - - + CASE - + 88 WHEN 49 THEN + 32 WHEN 64 THEN NULL WHEN - - 28 / - 48 * 40 * + 65 + ( + 95 ) * 89 THEN NULL ELSE + 6 + 84 END - 88 * COALESCE ( 50 + 0 * + 34, COUNT ( * ) + + 44, + 91 / 63 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4159
SELECT CAST( + - 46 AS SIGNED ) * + + 5 - - + 47 AS col1
----
-183

skipif mysql # not compatible
query I rowsort label-4159
SELECT CAST ( + - 46 AS INTEGER ) * + + 5 - - + 47 AS col1
----
-183

query II rowsort
SELECT + 11 + - 30 + + 96 AS col0, + 62
----
77
62

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4162
SELECT ALL COALESCE ( + 5, + NULLIF ( - MAX( - 74 ), 18 ) DIV - 59 + + COUNT( * ) + - 72 - - 89 + 1 * 97 DIV 65 DIV 99 ) * + 46 + - 10 AS col2
----
220

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL COALESCE ( + 5, + NULLIF ( - MAX ( - 74 ), 18 ) / - 59 + + COUNT ( * ) + - 72 - - 89 + 1 * 97 / 65 / 99 ) * + 46 + - 10 AS col2
----
220

query I rowsort
SELECT ALL 10 * - 88 + - + 71 * + 10
----
-1590

query I rowsort
SELECT DISTINCT + ( 39 ) AS col0
----
39

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

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + COUNT ( * ) * 75 * - 0 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT + COUNT( DISTINCT 80 )
----
1

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT + COUNT ( DISTINCT 80 )
----
1

query II rowsort
SELECT - 47 * + 94 - 2 AS col2, + 21
----
-4420
21

query I rowsort
SELECT DISTINCT - ( - 89 ) * - 27 * - + 6 AS col1
----
14418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT ALL - CAST( NULL AS SIGNED ) * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - CAST ( NULL AS INTEGER ) * - 89
----
NULL

query I rowsort
SELECT - 98 * + 80 AS col1
----
-7840

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4171
SELECT + + CAST( NULL AS DECIMAL ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT + + CAST ( NULL AS REAL ) * - + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 61 * 76 AS col2
----
4636

onlyif mysql # DIV for integer division: 
query II rowsort label-4173
SELECT + 49 * - 5 * - 29, 21 DIV CASE - - 4 WHEN 58 THEN + ( - 16 ) WHEN - 28 + + 53 THEN + COALESCE ( 85, - 37 DIV ( 34 DIV + NULLIF ( COALESCE ( 71, - 12 + 99 ), - NULLIF ( 80, ( 97 ) - + 95 * 24 ) ) ) + - 57 * 48, 69 ) ELSE 63 END + 57 * 14 AS col1
----
7105
798

skipif mysql # not compatible
query II rowsort label-4173
SELECT + 49 * - 5 * - 29, 21 / CASE - - 4 WHEN 58 THEN + ( - 16 ) WHEN - 28 + + 53 THEN + COALESCE ( 85, - 37 / ( 34 / + NULLIF ( COALESCE ( 71, - 12 + 99 ), - NULLIF ( 80, ( 97 ) - + 95 * 24 ) ) ) + - 57 * 48, 69 ) ELSE 63 END + 57 * 14 AS col1
----
7105
798

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT ALL - 77 * + COUNT( * ) * - ( - 8 ) * - - COUNT( - 52 ) * + + 64
----
-39424

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL - 77 * + COUNT ( * ) * - ( - 8 ) * - - COUNT ( - 52 ) * + + 64
----
-39424

query I rowsort
SELECT - + 48 * 66
----
-3168

query II rowsort
SELECT + 8 * + 63 - + + 72 AS col1, 59
----
432
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT + 65 - + MAX( ALL - + 17 ) + 26 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-4177
SELECT + 65 - + MAX ( ALL - + 17 ) + 26 AS col2
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4178
SELECT + + COUNT( DISTINCT 72 ) DIV + COALESCE ( + 34, MIN( ALL + - 45 ) * 46 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4178
SELECT + + COUNT ( DISTINCT 72 ) / + COALESCE ( + 34, MIN ( ALL + - 45 ) * 46 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT + CASE + CASE - COUNT( + 84 ) WHEN + 81 * + COUNT( * ) THEN NULL WHEN + COUNT( * ) - - 87 THEN NULL ELSE - 10 + - - 57 * - 95 END WHEN - 37 THEN NULL WHEN COALESCE ( CAST( NULL AS SIGNED ), CASE 85 WHEN - 0 THEN NULL WHEN COALESCE ( 63, 15 ) + 17 THEN - COALESCE ( + COUNT( * ), - 52 / - 53, - 48 + + 93 ) END, 25 ) - 55 THEN + 71 WHEN 20 THEN 63 ELSE NULL END + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT + CASE + CASE - COUNT ( + 84 ) WHEN + 81 * + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) - - 87 THEN NULL ELSE - 10 + - - 57 * - 95 END WHEN - 37 THEN NULL WHEN COALESCE ( CAST ( NULL AS INTEGER ), CASE 85 WHEN - 0 THEN NULL WHEN COALESCE ( 63, 15 ) + 17 THEN - COALESCE ( + COUNT ( * ), - 52 / - 53, - 48 + + 93 ) END, 25 ) - 55 THEN + 71 WHEN 20 THEN 63 ELSE NULL END + 16 AS col2
----
NULL

query I rowsort
SELECT ALL 48 + + + 51 col2
----
99

query I rowsort
SELECT DISTINCT 53 * 40
----
2120

query I rowsort
SELECT ALL - 32 + - - 37 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL 54 * + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL 54 * + COUNT ( * )
----
54

query I rowsort
SELECT DISTINCT 71 + 98
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL 6 + + - 88 + + MIN( - 26 ) + + - 2
----
-110

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL 6 + + - 88 + + MIN ( - 26 ) + + - 2
----
-110

query I rowsort
SELECT 85 * + 34 AS col1
----
2890

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4187
SELECT ( + CAST( NULL AS DECIMAL ) ) + - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT ( + CAST ( NULL AS REAL ) ) + - 70 AS col0
----
NULL

query II rowsort
SELECT - 75, 24 AS col0
----
-75
24

query II rowsort
SELECT ALL 76 AS col1, + 26 AS col2
----
76
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4190
SELECT 90 AS col0, CAST( NULL AS SIGNED ) AS col2
----
90
NULL

skipif mysql # not compatible
query II rowsort label-4190
SELECT 90 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT 69 * + 79 + + + COUNT( * ) + ( - 42 ) - + - MAX( + 87 ) col2
----
5497

skipif mysql # not compatible
query I rowsort label-4191
SELECT 69 * + 79 + + + COUNT ( * ) + ( - 42 ) - + - MAX ( + 87 ) col2
----
5497

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4192
SELECT DISTINCT - CAST( 63 AS SIGNED ) - - 81 DIV 99 * - 37 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT - CAST ( 63 AS INTEGER ) - - 81 / 99 * - 37 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL - SUM( DISTINCT + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - SUM ( DISTINCT + 87 )
----
-87

query I rowsort
SELECT ALL - 70 - + 82
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT - CASE - + 97 WHEN - 58 - + 20 / - + 4 + - - COUNT( * ) THEN + 66 WHEN + 53 * 92 + + 85 THEN ( + 69 ) + - 95 WHEN - 9 + - 82 THEN NULL WHEN COUNT( + 4 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT - CASE - + 97 WHEN - 58 - + 20 / - + 4 + - - COUNT ( * ) THEN + 66 WHEN + 53 * 92 + + 85 THEN ( + 69 ) + - 95 WHEN - 9 + - 82 THEN NULL WHEN COUNT ( + 4 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT DISTINCT - AVG ( ALL + - 44 ) - 96 + 65 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - AVG ( ALL + - 44 ) - 96 + 65 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 52, + 12 * + - 17 col1
----
52
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT - 43 * - + COUNT( COALESCE ( 74, 89 + + + 72 * + 1 * 40 ) ) + + 5 + - 6 * 97 * ( + 69 * + 94 )
----
-3774804

skipif mysql # not compatible
query I rowsort label-4198
SELECT - 43 * - + COUNT ( COALESCE ( 74, 89 + + + 72 * + 1 * 40 ) ) + + 5 + - 6 * 97 * ( + 69 * + 94 )
----
-3774804

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT DISTINCT - CASE - COUNT( * ) WHEN ( + - AVG ( + 78 ) ) THEN - - MAX( ALL 65 ) WHEN 43 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT - CASE - COUNT ( * ) WHEN ( + - AVG ( + 78 ) ) THEN - - MAX ( ALL 65 ) WHEN 43 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4200
SELECT ALL - MIN( - 63 ) * - 97 + - + 17, + 69 + - 49 col0
----
-6128
20

skipif mysql # not compatible
query II rowsort label-4200
SELECT ALL - MIN ( - 63 ) * - 97 + - + 17, + 69 + - 49 col0
----
-6128
20

query I rowsort
SELECT + 33 + + 40
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4202
SELECT ALL - CAST( NULL AS SIGNED ), SUM( + - 72 ) + 1 AS col2
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-4202
SELECT ALL - CAST ( NULL AS INTEGER ), SUM ( + - 72 ) + 1 AS col2
----
NULL
-71

query II rowsort
SELECT 82 * 95 * - - 21 * - + 6 AS col1, - 16 AS col2
----
-981540
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT COALESCE ( + COUNT( * ), 57, 7 ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4204
SELECT COALESCE ( + COUNT ( * ), 57, 7 ) - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT + CASE - 18 WHEN - 86 * 73 THEN NULL WHEN + NULLIF ( - + 40, + - 38 / - 19 + + CASE 95 WHEN ( 21 ) THEN + 10 * + 4 WHEN + 30 + 51 * - 9 THEN 46 END - - 60 * + MIN( - 0 ) ) THEN - 30 + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT + CASE - 18 WHEN - 86 * 73 THEN NULL WHEN + NULLIF ( - + 40, + - 38 / - 19 + + CASE 95 WHEN ( 21 ) THEN + 10 * + 4 WHEN + 30 + 51 * - 9 THEN 46 END - - 60 * + MIN ( - 0 ) ) THEN - 30 + 98 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT NULLIF ( 30, - - 79 * 96 * + 36 + - + CAST( NULL AS SIGNED ) )
----
30

skipif mysql # not compatible
query I rowsort label-4206
SELECT NULLIF ( 30, - - 79 * 96 * + 36 + - + CAST ( NULL AS INTEGER ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT - 83 + + COUNT( * ) * - 32 AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-4207
SELECT - 83 + + COUNT ( * ) * - 32 AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT 92 + + - NULLIF ( + COUNT( * ), + 16 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4208
SELECT 92 + + - NULLIF ( + COUNT ( * ), + 16 ) AS col1
----
91

query I rowsort
SELECT DISTINCT - NULLIF ( + - 33, + 99 ) * - ( - 60 ) AS col2
----
1980

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4210
SELECT ALL + 74 * + - 37 + - + 26 * 1, CAST( NULL AS DECIMAL ) AS col1
----
-2764
NULL

skipif mysql # not compatible
query II rowsort label-4210
SELECT ALL + 74 * + - 37 + - + 26 * 1, CAST ( NULL AS REAL ) AS col1
----
-2764
NULL

query I rowsort
SELECT ALL 80 + - 93 col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4212
SELECT - ( COUNT( * ) ) + - ( - CAST( + 34 AS SIGNED ) )
----
33

skipif mysql # not compatible
query I rowsort label-4212
SELECT - ( COUNT ( * ) ) + - ( - CAST ( + 34 AS INTEGER ) )
----
33

query I rowsort
SELECT ALL - - 76 + - + 60 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4214
SELECT ALL + 25 + + 16 * - 66 * + 22 * ( + 51 ) * COUNT( * ) * CAST( + 99 AS SIGNED )
----
-117298343

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL + 25 + + 16 * - 66 * + 22 * ( + 51 ) * COUNT ( * ) * CAST ( + 99 AS INTEGER )
----
-117298343

query II rowsort
SELECT + 62 AS col2, 72 + 4 + - 6 AS col2
----
62
70

query I rowsort
SELECT ALL + - 63 * 0 * - + NULLIF ( 95, 12 ) * + - 74 + 76 AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4217
SELECT ALL + - 1 + CAST( + 81 AS SIGNED ) DIV - 78
----
-2

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL + - 1 + CAST ( + 81 AS INTEGER ) / - 78
----
-2

query I rowsort
SELECT ALL ( + 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT DISTINCT CASE - COUNT( * ) WHEN + - 77 THEN + 37 WHEN + + 17 * + NULLIF ( + ( - 30 ), ( + COUNT( * ) ) ) THEN + - 90 END + + 7 * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT CASE - COUNT ( * ) WHEN + - 77 THEN + 37 WHEN + + 17 * + NULLIF ( + ( - 30 ), ( + COUNT ( * ) ) ) THEN + - 90 END + + 7 * 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL COUNT( * ) + 65 + - 54 - - 11
----
23

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL COUNT ( * ) + 65 + - 54 - - 11
----
23

query I rowsort
SELECT 24 + - 79 * + + 32 AS col0
----
-2504

query I rowsort
SELECT 95 * - 58 col0
----
-5510

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4223
SELECT 1 + - + CAST( NULL AS DECIMAL ) + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT 1 + - + CAST ( NULL AS REAL ) + 15 AS col1
----
NULL

query I rowsort
SELECT ALL 52 - 15 AS col0
----
37

query I rowsort
SELECT 20 * + 28 AS col0
----
560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4226
SELECT ALL 64 * 17 col2, - 77 * CAST( NULL AS SIGNED ) - + 3 - 90 + - 7
----
1088
NULL

skipif mysql # not compatible
query II rowsort label-4226
SELECT ALL 64 * 17 col2, - 77 * CAST ( NULL AS INTEGER ) - + 3 - 90 + - 7
----
1088
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT DISTINCT 99 * + SUM( + - 94 ) * + 27 * - 31, - 60 AS col2
----
7789122
-60

skipif mysql # not compatible
query II rowsort label-4227
SELECT DISTINCT 99 * + SUM ( + - 94 ) * + 27 * - 31, - 60 AS col2
----
7789122
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4228
SELECT COUNT( * ) DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-4228
SELECT COUNT ( * ) / 46
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4229
SELECT ALL COUNT( * ) * - COUNT( * ) DIV + ( - 11 )
----
0

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL COUNT ( * ) * - COUNT ( * ) / + ( - 11 )
----
0

query I rowsort
SELECT 10 * + 8
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT 29 * CAST( NULL AS SIGNED ) + + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT 29 * CAST ( NULL AS INTEGER ) + + 65 AS col2
----
NULL

query I rowsort
SELECT ALL + 81 * 53 - 38
----
4255

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT COUNT( - + NULLIF ( + 93, - 87 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4233
SELECT COUNT ( - + NULLIF ( + 93, - 87 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT COUNT( + + 79 )
----
1

skipif mysql # not compatible
query I rowsort label-4234
SELECT COUNT ( + + 79 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4235
SELECT - COUNT( * ) * 46 - 70 AS col0, - 37 - 78 + + 79 + + MAX( + + 50 ) + - + COUNT( * )
----
-116
13

skipif mysql # not compatible
query II rowsort label-4235
SELECT - COUNT ( * ) * 46 - 70 AS col0, - 37 - 78 + + 79 + + MAX ( + + 50 ) + - + COUNT ( * )
----
-116
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT ALL 86 DIV + 76
----
1

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL 86 / + 76
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4237
SELECT ALL - - CASE + 64 WHEN 29 THEN + 63 DIV - AVG ( - + 39 ) * + 99 + + 30 ELSE + MIN( - 13 ) END
----
-13

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL - - CASE + 64 WHEN 29 THEN + 63 / - AVG ( - + 39 ) * + 99 + + 30 ELSE + MIN ( - 13 ) END
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT - 40 + - - 66 + COALESCE ( - COUNT( * ), + + MIN( + - 94 ) * - 32 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4238
SELECT - 40 + - - 66 + COALESCE ( - COUNT ( * ), + + MIN ( + - 94 ) * - 32 ) AS col1
----
25

query I rowsort
SELECT ALL - + ( + - 15 ) + 6
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT 28 + 56 + - + 12 * 35 DIV MIN( 56 )
----
77

skipif mysql # not compatible
query I rowsort label-4240
SELECT 28 + 56 + - + 12 * 35 / MIN ( 56 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL - + 41 + COUNT( * ) + 1 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL - + 41 + COUNT ( * ) + 1 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ( COUNT( * ) ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4242
SELECT ( COUNT ( * ) ) * - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4243
SELECT ALL + 45 + - 12 * - - MIN( + + 42 ) + 45, + 7 + - + 22 AS col0
----
-414
-15

skipif mysql # not compatible
query II rowsort label-4243
SELECT ALL + 45 + - 12 * - - MIN ( + + 42 ) + 45, + 7 + - + 22 AS col0
----
-414
-15

query I rowsort
SELECT DISTINCT - 87 + + - 70 * 27 + - - 20 + - 16
----
-1973

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT + 76 * - 84 * - - NULLIF ( 42, - 41 + + + 20 + + + COUNT( * ) * + - 23 ) + - + 18
----
-268146

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT + 76 * - 84 * - - NULLIF ( 42, - 41 + + + 20 + + + COUNT ( * ) * + - 23 ) + - + 18
----
-268146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT ALL - CAST( + - 36 AS SIGNED ) + - 57
----
-21

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL - CAST ( + - 36 AS INTEGER ) + - 57
----
-21

query I rowsort
SELECT DISTINCT - - 99 + + + 53 - - ( 81 ) * 4 + + + 65 col1
----
541

query I rowsort
SELECT - 14 + - 31 AS col1
----
-45

query I rowsort
SELECT - 83 * + + 71
----
-5893

query II rowsort
SELECT DISTINCT COALESCE ( - 95, + 46 ), + 11 AS col0
----
-95
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4251
SELECT - ( - + 51 ) - - 91 + - NULLIF ( 47, 64 + + 50 * + 22 ) * + NULLIF ( + COUNT( * ), - 31 ) / - 79 * + CAST( NULL AS SIGNED ) + + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT - ( - + 51 ) - - 91 + - NULLIF ( 47, 64 + + 50 * + 22 ) * + NULLIF ( + COUNT ( * ), - 31 ) / - 79 * + CAST ( NULL AS INTEGER ) + + 73 AS col1
----
NULL

query I rowsort
SELECT + 94 * 70
----
6580

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL - COUNT( * ) * + - COUNT( * ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) * + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 65 + - - 33 + + + 78
----
46

query I rowsort
SELECT DISTINCT + 15 * - - 95 col2
----
1425

onlyif mysql # aggregate syntax: 
query II rowsort label-4256
SELECT ALL COUNT( * ), - 46 AS col2
----
1
-46

skipif mysql # not compatible
query II rowsort label-4256
SELECT ALL COUNT ( * ), - 46 AS col2
----
1
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL ( 35 ) - 18 * + COUNT( * ) * 61 - 43 * + + 95 + - 31 - - COUNT( * ) AS col0
----
-5178

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL ( 35 ) - 18 * + COUNT ( * ) * 61 - 43 * + + 95 + - 31 - - COUNT ( * ) AS col0
----
-5178

query I rowsort
SELECT - 59 * + 70
----
-4130

onlyif mysql # aggregate syntax: 
query II rowsort label-4259
SELECT ALL + MAX( DISTINCT + 17 ) * + 25 AS col2, 63 * - - 96
----
425
6048

skipif mysql # not compatible
query II rowsort label-4259
SELECT ALL + MAX ( DISTINCT + 17 ) * + 25 AS col2, 63 * - - 96
----
425
6048

query I rowsort
SELECT ALL - 42 * - 60
----
2520

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT DISTINCT + CASE - 85 WHEN + ( - + 58 ) THEN + 78 + 61 ELSE NULL END - - + SUM( - 48 ) AS col1, - 93 * 43 AS col1
----
NULL
-3999

skipif mysql # not compatible
query II rowsort label-4261
SELECT DISTINCT + CASE - 85 WHEN + ( - + 58 ) THEN + 78 + 61 ELSE NULL END - - + SUM ( - 48 ) AS col1, - 93 * 43 AS col1
----
NULL
-3999

query I rowsort
SELECT - 5 + + - 84 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT + COUNT( * ) - - + 45
----
46

skipif mysql # not compatible
query I rowsort label-4263
SELECT + COUNT ( * ) - - + 45
----
46

query I rowsort
SELECT DISTINCT ( + 54 ) AS col0
----
54

query I rowsort
SELECT - 99 * + + 51 AS col1
----
-5049

query I rowsort
SELECT + 5 * 81 * - + 19 * - 3
----
23085

query II rowsort
SELECT ALL 92 AS col1, 63
----
92
63

query I rowsort
SELECT - 75 + + 87 + + 89 AS col1
----
101

query I rowsort
SELECT DISTINCT 45 * + 56 AS col0
----
2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT 43 * - - 61 + - 9 + 58 + + CAST( NULL AS SIGNED ) * - 67 * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT 43 * - - 61 + - 9 + 58 + + CAST ( NULL AS INTEGER ) * - 67 * - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL + CASE + 28 WHEN + COUNT( * ) + + + 77 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL + CASE + 28 WHEN + COUNT ( * ) + + + 77 THEN NULL ELSE + COUNT ( * ) END
----
1

query I rowsort
SELECT ALL 63 * + - 82 AS col1
----
-5166

query I rowsort
SELECT + 69 * + 26
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL + 94 * + 35 + + 88 + + + COUNT( * ) + + 8 * - + 66
----
2851

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL + 94 * + 35 + + 88 + + + COUNT ( * ) + + 8 * - + 66
----
2851

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT + COALESCE ( 48, - + 42 * - ( 88 ) DIV + 35 + - 43 - + - 68 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4275
SELECT + COALESCE ( 48, - + 42 * - ( 88 ) / + 35 + - 43 - + - 68 ) AS col2
----
48

query II rowsort
SELECT ALL + 90 AS col1, 75 AS col2
----
90
75

query I rowsort
SELECT ALL + 55 * + 74 * 38 + - 98 + 54 * - - 15
----
155372

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT + - COUNT( * ) * + - 83 * + COUNT( * ) * - 69 * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-4278
SELECT + - COUNT ( * ) * + - 83 * + COUNT ( * ) * - 69 * - + 0
----
0

query I rowsort
SELECT ALL 76 * - 15 + + 68 AS col2
----
-1072

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT + COUNT( ALL 37 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4280
SELECT + COUNT ( ALL 37 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT - 80 * + 83 + 22 / - CAST( NULL AS SIGNED ) - + - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT - 80 * + 83 + 22 / - CAST ( NULL AS INTEGER ) - + - 78 AS col2
----
NULL

query II rowsort
SELECT + - 45 AS col1, 1 AS col0
----
-45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT + COUNT( - - 12 )
----
1

skipif mysql # not compatible
query I rowsort label-4283
SELECT + COUNT ( - - 12 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT + - COALESCE ( + MAX( - 23 ), 53 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4284
SELECT + - COALESCE ( + MAX ( - 23 ), 53 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT + 18 + + CASE 57 WHEN 20 + 58 THEN NULL WHEN SUM( 50 ) / 30 + - 53 + - MAX( + 90 ) * + - ( + 69 ) THEN 3 * 29 + 34 / - 47 END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT + 18 + + CASE 57 WHEN 20 + 58 THEN NULL WHEN SUM ( 50 ) / 30 + - 53 + - MAX ( + 90 ) * + - ( + 69 ) THEN 3 * 29 + 34 / - 47 END - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4286
SELECT ALL + 99 DIV + MIN( 1 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL + 99 / + MIN ( 1 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT + 31 + + COUNT( * ) + - MAX( - - 6 ) + - 89 * + ( - - 14 ) + - - 86 * + NULLIF ( + - 57, - + COUNT( * ) )
----
-6122

skipif mysql # not compatible
query I rowsort label-4287
SELECT + 31 + + COUNT ( * ) + - MAX ( - - 6 ) + - 89 * + ( - - 14 ) + - - 86 * + NULLIF ( + - 57, - + COUNT ( * ) )
----
-6122

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4288
SELECT + CAST( NULL AS DECIMAL ) * - ( - 59 ) + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT + CAST ( NULL AS REAL ) * - ( - 59 ) + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT DISTINCT - SUM( DISTINCT 3 ) * - + 89 + - 62 AS col1
----
205

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT - SUM ( DISTINCT 3 ) * - + 89 + - 62 AS col1
----
205

onlyif mysql # aggregate syntax: 
query II rowsort label-4290
SELECT ALL + + COUNT( * ) AS col0, 13 AS col2
----
1
13

skipif mysql # not compatible
query II rowsort label-4290
SELECT ALL + + COUNT ( * ) AS col0, 13 AS col2
----
1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT - MIN( ALL + 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4291
SELECT - MIN ( ALL + 44 ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4292
SELECT - + 68 * + COUNT( * ) * + 44 + - 68 * + CAST( NULLIF ( 96, + 1 ) AS SIGNED )
----
-9520

skipif mysql # not compatible
query I rowsort label-4292
SELECT - + 68 * + COUNT ( * ) * + 44 + - 68 * + CAST ( NULLIF ( 96, + 1 ) AS INTEGER )
----
-9520

query I rowsort
SELECT ALL 9 * + 54 * + 49 - 83
----
23731

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT - CASE + ( - 55 ) WHEN ( + 66 ) / + 32 + - COUNT( * ) THEN NULL WHEN - 90 * - MAX( DISTINCT + + 81 ) * 78 + + - 68 + + 59 THEN NULL WHEN 56 THEN ( 28 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4294
SELECT - CASE + ( - 55 ) WHEN ( + 66 ) / + 32 + - COUNT ( * ) THEN NULL WHEN - 90 * - MAX ( DISTINCT + + 81 ) * 78 + + - 68 + + 59 THEN NULL WHEN 56 THEN ( 28 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4295
SELECT DISTINCT + - 46, + 84 * + - MAX( - 30 ) DIV + COUNT( ALL - 83 ) + 30 + - 4 * 58 DIV COUNT( ALL + + 92 ) * + 30 AS col1
----
-46
-4410

skipif mysql # not compatible
query II rowsort label-4295
SELECT DISTINCT + - 46, + 84 * + - MAX ( - 30 ) / + COUNT ( ALL - 83 ) + 30 + - 4 * 58 / COUNT ( ALL + + 92 ) * + 30 AS col1
----
-46
-4410

query I rowsort
SELECT + - 42 + 4
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT + 25 * + 36 * 75 * + + 82 + - 42 DIV + 4 AS col2
----
5534990

skipif mysql # not compatible
query I rowsort label-4297
SELECT + 25 * + 36 * 75 * + + 82 + - 42 / + 4 AS col2
----
5534990

query I rowsort
SELECT - 4 - + - 65
----
61

query I rowsort
SELECT - 65 + 50
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4300
SELECT DISTINCT MAX( DISTINCT - 42 ) * - - ( + 89 ) AS col1, 45 AS col1
----
-3738
45

skipif mysql # not compatible
query II rowsort label-4300
SELECT DISTINCT MAX ( DISTINCT - 42 ) * - - ( + 89 ) AS col1, 45 AS col1
----
-3738
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4301
SELECT DISTINCT ( - CAST( + 70 AS SIGNED ) ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT ( - CAST ( + 70 AS INTEGER ) ) AS col1
----
-70

query I rowsort
SELECT ALL CASE + 47 WHEN - 92 / + 62 + + 52 THEN + + 24 + + 94 * - 36 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT DISTINCT COALESCE ( 4, 66 * - - 22 * + COUNT( * ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT COALESCE ( 4, 66 * - - 22 * + COUNT ( * ) ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4304
SELECT ALL CASE NULLIF ( + 75, + 0 - - - 40 + + 91 + + 72 + + 73 * - COUNT( * ) * CAST( - COUNT( * ) AS SIGNED ) / 9 * + 90 * + CAST( COUNT( * ) AS SIGNED ) ) WHEN 44 THEN + ( 45 ) + + CAST( NULL AS SIGNED ) * 23 WHEN - ( - COUNT( 49 ) ) THEN - 28 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL CASE NULLIF ( + 75, + 0 - - - 40 + + 91 + + 72 + + 73 * - COUNT ( * ) * CAST ( - COUNT ( * ) AS INTEGER ) / 9 * + 90 * + CAST ( COUNT ( * ) AS INTEGER ) ) WHEN 44 THEN + ( 45 ) + + CAST ( NULL AS INTEGER ) * 23 WHEN - ( - COUNT ( 49 ) ) THEN - 28 ELSE NULL END col1
----
NULL

query I rowsort
SELECT - 11 + + - 66 * + 15
----
-1001

onlyif mysql # aggregate syntax: 
query II rowsort label-4306
SELECT ALL ( + 6 ) AS col0, + 74 * - MIN( DISTINCT - + 42 ) * + + ( - - 16 ) AS col2
----
6
49728

skipif mysql # not compatible
query II rowsort label-4306
SELECT ALL ( + 6 ) AS col0, + 74 * - MIN ( DISTINCT - + 42 ) * + + ( - - 16 ) AS col2
----
6
49728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4307
SELECT DISTINCT + ( + + 13 ) DIV + ( 65 ) * + + ( - MIN( 19 ) ) + + 12 + + 28
----
40

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT + ( + + 13 ) / + ( 65 ) * + + ( - MIN ( 19 ) ) + + 12 + + 28
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT - NULLIF ( + 58, - 79 * + 65 ) DIV - ( 59 ) * 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4308
SELECT - NULLIF ( + 58, - 79 * + 65 ) / - ( 59 ) * 59 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4309
SELECT DISTINCT + 57 * + 92 AS col2, COUNT( * ) DIV ( - 21 ) * + + ( + 63 ) + 56
----
5244
56

skipif mysql # not compatible
query II rowsort label-4309
SELECT DISTINCT + 57 * + 92 AS col2, COUNT ( * ) / ( - 21 ) * + + ( + 63 ) + 56
----
5244
56

query I rowsort
SELECT DISTINCT ( NULLIF ( - 72, 80 - 37 ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL - COUNT( * ) + 17 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL - COUNT ( * ) + 17 AS col0
----
16

query I rowsort
SELECT ALL 57 + 34 * - 65 AS col0
----
-2153

query I rowsort
SELECT DISTINCT + ( 36 ) + 42 * - 64
----
-2652

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT - 33 DIV 5
----
-6

skipif mysql # not compatible
query I rowsort label-4314
SELECT - 33 / 5
----
-6

query I rowsort
SELECT + + 33 + - + 41 + + - 89 AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4316
SELECT + 57 DIV 6 + + + 82 * + SUM( ALL - 87 )
----
-7125

skipif mysql # not compatible
query I rowsort label-4316
SELECT + 57 / 6 + + + 82 * + SUM ( ALL - 87 )
----
-7125

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT ALL - 79 DIV + 56 + 55
----
54

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - 79 / + 56 + 55
----
54

query I rowsort
SELECT + ( - + 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT + MIN( - 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4319
SELECT + MIN ( - 29 ) AS col2
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4320
SELECT ALL 61 / + 91 + + CAST( NULL AS DECIMAL ) + - + 12 + + CAST( + 19 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL 61 / + 91 + + CAST ( NULL AS REAL ) + - + 12 + + CAST ( + 19 AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT + + 79 DIV 62 + + 59 + 8 + 52 - + - 26
----
146

skipif mysql # not compatible
query I rowsort label-4321
SELECT + + 79 / 62 + + 59 + 8 + 52 - + - 26
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-4322
SELECT - COUNT( * ) * + 84 * - ( 52 ), 2 AS col1
----
4368
2

skipif mysql # not compatible
query II rowsort label-4322
SELECT - COUNT ( * ) * + 84 * - ( 52 ), 2 AS col1
----
4368
2

query I rowsort
SELECT DISTINCT - + ( - 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT DISTINCT - + COUNT( + 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT - + COUNT ( + 68 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL + COALESCE ( + + ( COUNT( ( 11 ) ) ), - COUNT( * ), 76 ) * 19
----
19

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL + COALESCE ( + + ( COUNT ( ( 11 ) ) ), - COUNT ( * ), 76 ) * 19
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4326
SELECT ALL + 26 * + 2 col2, COUNT( * ) * 86
----
52
86

skipif mysql # not compatible
query II rowsort label-4326
SELECT ALL + 26 * + 2 col2, COUNT ( * ) * 86
----
52
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL + 93 * CASE WHEN ( + ( ( + + 4 ) ) ) IS NOT NULL THEN COUNT( * ) - - 90 + - 89 WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 75 + 59 + - - 60 END AS col1
----
186

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL + 93 * CASE WHEN ( + ( ( + + 4 ) ) ) IS NOT NULL THEN COUNT ( * ) - - 90 + - 89 WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 75 + 59 + - - 60 END AS col1
----
186

query I rowsort
SELECT + ( + + 65 ) AS col1
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT - 5 DIV + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4329
SELECT - 5 / + 30 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT 36 * + MIN( - 7 ) AS col0
----
-252

skipif mysql # not compatible
query I rowsort label-4330
SELECT 36 * + MIN ( - 7 ) AS col0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT ( + COALESCE ( + MIN( 52 ), NULLIF ( + 77, - 70 * + 91 + - 97 ) * - + 29 + + NULLIF ( 60, - - 65 ) + - - 97 + COUNT( * ) * - 85 ) ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4331
SELECT ( + COALESCE ( + MIN ( 52 ), NULLIF ( + 77, - 70 * + 91 + - 97 ) * - + 29 + + NULLIF ( 60, - - 65 ) + - - 97 + COUNT ( * ) * - 85 ) ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4332
SELECT DISTINCT + 44 - + 21, 71 + - 59 * + SUM( - 40 ) + - 57 + + 27 * - 75 AS col1
----
23
349

skipif mysql # not compatible
query II rowsort label-4332
SELECT DISTINCT + 44 - + 21, 71 + - 59 * + SUM ( - 40 ) + - 57 + + 27 * - 75 AS col1
----
23
349

query I rowsort
SELECT 98 * - 95 * + 73 AS col1
----
-679630

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4334
SELECT ALL - COALESCE ( - - 3, NULLIF ( - CAST( - COALESCE ( + 0, + 28 + 85 * - 20 ) AS SIGNED ), - - ( 97 ) + + CAST( NULL AS DECIMAL ) ) * + 89 DIV - - ( + 83 ) + 50 ) - 30
----
-33

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL - COALESCE ( - - 3, NULLIF ( - CAST ( - COALESCE ( + 0, + 28 + 85 * - 20 ) AS INTEGER ), - - ( 97 ) + + CAST ( NULL AS REAL ) ) * + 89 / - - ( + 83 ) + 50 ) - 30
----
-33

query I rowsort
SELECT 11 * - 95
----
-1045

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4336
SELECT DISTINCT 6 DIV - MIN( DISTINCT + 68 ) col1, MAX( ALL + - 78 ) AS col1
----
0
-78

skipif mysql # not compatible
query II rowsort label-4336
SELECT DISTINCT 6 / - MIN ( DISTINCT + 68 ) col1, MAX ( ALL + - 78 ) AS col1
----
0
-78

query I rowsort
SELECT 24 * + 29
----
696

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL - COUNT( * ) * - 71 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - COUNT ( * ) * - 71 AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT ALL 41 / + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL 41 / + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - 71 * - COUNT( * ) + + MIN( ALL 62 ) AS col0
----
133

skipif mysql # not compatible
query I rowsort label-4340
SELECT - 71 * - COUNT ( * ) + + MIN ( ALL 62 ) AS col0
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4341
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + 81 + COUNT( * ) ) * - 12 + + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + 81 + COUNT ( * ) ) * - 12 + + - 26
----
NULL

query I rowsort
SELECT 14 + - 42 col1
----
-28

query I rowsort
SELECT 6 * CASE - - 84 WHEN - + ( + + 41 ) + - 93 THEN - - 29 WHEN - ( - - 41 ) THEN NULL ELSE + 45 * 80 END - + 13 AS col2
----
21587

query I rowsort
SELECT 59 * - 0
----
0

query I rowsort
SELECT ALL + ( - ( - 33 ) ) + 84
----
117

query I rowsort
SELECT ( + 44 ) + - 81
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4347
SELECT CAST( NULL AS SIGNED ) * - - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT CAST ( NULL AS INTEGER ) * - - 16
----
NULL

query I rowsort
SELECT DISTINCT ( 88 ) + 35 - - 94 AS col1
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT DISTINCT - 98 + - COUNT( * ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT - 98 + - COUNT ( * ) AS col1
----
-99

query I rowsort
SELECT ALL + 35 + 45 * - 69 * + 8 AS col2
----
-24805

query I rowsort
SELECT ALL - 80 + - + 1 * + 24
----
-104

query I rowsort
SELECT 65 - + - ( 98 )
----
163

query I rowsort
SELECT DISTINCT + 53 + + + 67
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4354
SELECT 74 - + 25 DIV - COALESCE ( - COUNT( * ), 64 + - + 79 * + 5 )
----
49

skipif mysql # not compatible
query I rowsort label-4354
SELECT 74 - + 25 / - COALESCE ( - COUNT ( * ), 64 + - + 79 * + 5 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL - 35 + - 57 - - 24 - - + 79 + + COUNT( * ) * + + 72 + + 94
----
177

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL - 35 + - 57 - - 24 - - + 79 + + COUNT ( * ) * + + 72 + + 94
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4356
SELECT DISTINCT - + 59 + - MAX( ALL + ( - 51 ) ) * - 45 + + - 30 DIV - + 23 * COUNT( * )
----
-2353

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT - + 59 + - MAX ( ALL + ( - 51 ) ) * - 45 + + - 30 / - + 23 * COUNT ( * )
----
-2353

query I rowsort
SELECT - 77 + + 64 AS col2
----
-13

query I rowsort
SELECT ALL - - 34 * 87
----
2958

onlyif mysql # aggregate syntax: 
query II rowsort label-4359
SELECT + COUNT( * ) AS col0, 13
----
1
13

skipif mysql # not compatible
query II rowsort label-4359
SELECT + COUNT ( * ) AS col0, 13
----
1
13

query I rowsort
SELECT DISTINCT - - COALESCE ( 72, + 24 * - 2 * - 24 - 60 + - - 41, 77, + - 83 - 73 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL + + 21 - - - 9 + - + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL + + 21 - - - 9 + - + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT DISTINCT + + 5 * - COUNT( * ) DIV - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT + + 5 * - COUNT ( * ) / - 52 AS col1
----
0

query I rowsort
SELECT DISTINCT - 55 - - + 20
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4364
SELECT 85 + + CAST( 78 AS SIGNED ) - + COUNT( * ) + - MAX( + 77 ) * 72 DIV - COUNT( * ) AS col0, 93 AS col0
----
5706
93

skipif mysql # not compatible
query II rowsort label-4364
SELECT 85 + + CAST ( 78 AS INTEGER ) - + COUNT ( * ) + - MAX ( + 77 ) * 72 / - COUNT ( * ) AS col0, 93 AS col0
----
5706
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4365
SELECT + - 31 AS col0, + 52 + CASE + 13 WHEN + - 68 / 71 * + COUNT( * ) THEN - 83 + 49 END
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-4365
SELECT + - 31 AS col0, + 52 + CASE + 13 WHEN + - 68 / 71 * + COUNT ( * ) THEN - 83 + 49 END
----
-31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + 33 * + NULLIF ( - 42, COALESCE ( 53, - COUNT( * ), + 23 + - - 20 / 9 + 51 ) ) + - + 11 * + 2 + 80 AS col2
----
-1328

skipif mysql # not compatible
query I rowsort label-4366
SELECT + 33 * + NULLIF ( - 42, COALESCE ( 53, - COUNT ( * ), + 23 + - - 20 / 9 + 51 ) ) + - + 11 * + 2 + 80 AS col2
----
-1328

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT - ( + - 15 ) * + NULLIF ( COUNT( * ), - - 23 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4367
SELECT - ( + - 15 ) * + NULLIF ( COUNT ( * ), - - 23 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL - + ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - + ( + - COUNT ( * ) )
----
1

query I rowsort
SELECT 0 + - 25
----
-25

query I rowsort
SELECT ALL - ( - - 4 ) * + 56
----
-224

query I rowsort
SELECT - 5 * + 59 + 81 + 9 AS col2
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL - 83 * - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL - 83 * - COUNT ( * )
----
83

query I rowsort
SELECT 4 * - ( - 21 ) AS col2
----
84

query I rowsort
SELECT 11 * - 77 + - 49
----
-896

query II rowsort
SELECT + 67, 50 * ( - 23 ) AS col1
----
67
-1150

query I rowsort
SELECT 59 + 12 + - 81 * + 93 - - - 12
----
-7474

query I rowsort
SELECT 30 * - 1 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT ALL COUNT( * ) + 13 - - 68 + - 99 * + MIN( ALL + + 91 ) * - 65
----
585667

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL COUNT ( * ) + 13 - - 68 + - 99 * + MIN ( ALL + + 91 ) * - 65
----
585667

query I rowsort
SELECT ALL 40 + + 29 - + 25
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4380
SELECT ALL MAX( + + ( - 53 ) ) DIV - SUM( - CAST( + 68 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL MAX ( + + ( - 53 ) ) / - SUM ( - CAST ( + 68 AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT ALL + 48 + + 96 + 82 * - 49 AS col2
----
-3874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT CAST( - + 32 AS SIGNED ) + 98 * - 11 AS col0
----
-1110

skipif mysql # not compatible
query I rowsort label-4382
SELECT CAST ( - + 32 AS INTEGER ) + 98 * - 11 AS col0
----
-1110

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT DISTINCT 87 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT 87 / 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4384
SELECT 39 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-4384
SELECT 39 / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT COUNT( ( - - 61 ) ) + - 79
----
-78

skipif mysql # not compatible
query I rowsort label-4385
SELECT COUNT ( ( - - 61 ) ) + - 79
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT COUNT( * ) * 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4386
SELECT COUNT ( * ) * 85 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT 84 + - - COALESCE ( + - 88, + COUNT( * ) ) * 50 + + - 87 AS col1
----
-4403

skipif mysql # not compatible
query I rowsort label-4387
SELECT 84 + - - COALESCE ( + - 88, + COUNT ( * ) ) * 50 + + - 87 AS col1
----
-4403

query I rowsort
SELECT ALL 80 + - + 15 + - + 18 AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4389
SELECT - COUNT( * ) AS col1, 17 DIV 35 - - - 81 DIV + COUNT( * )
----
-1
-81

skipif mysql # not compatible
query II rowsort label-4389
SELECT - COUNT ( * ) AS col1, 17 / 35 - - - 81 / + COUNT ( * )
----
-1
-81

query II rowsort
SELECT 7, 83 - + 2 AS col2
----
7
81

query II rowsort
SELECT 61 + - ( + 92 ) + - 48 + - + ( + 27 ), + 83 + 33 AS col1
----
-106
116

query I rowsort
SELECT DISTINCT 97 + + 41
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-4393
SELECT + + 56 + - + 7 DIV - - 11 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4393
SELECT + + 56 + - + 7 / - - 11 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4394
SELECT + + MAX( DISTINCT - ( - 17 ) ) * + ( - + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT + + MAX ( DISTINCT - ( - 17 ) ) * + ( - + CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT ALL + 12 - 34 AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4396
SELECT - COALESCE ( + 57, COUNT( * ) ) + + - CASE + COUNT( * ) WHEN - 59 THEN NULL WHEN - + 77 * 92 THEN - + 35 ELSE COALESCE ( 9, - - CAST( NULL AS SIGNED ) + - + 79 ) END + + 14 AS col0, 67 AS col1
----
-52
67

skipif mysql # not compatible
query II rowsort label-4396
SELECT - COALESCE ( + 57, COUNT ( * ) ) + + - CASE + COUNT ( * ) WHEN - 59 THEN NULL WHEN - + 77 * 92 THEN - + 35 ELSE COALESCE ( 9, - - CAST ( NULL AS INTEGER ) + - + 79 ) END + + 14 AS col0, 67 AS col1
----
-52
67

query I rowsort
SELECT - 11 * ( 33 ) col2
----
-363

onlyif mysql # aggregate syntax: 
query II rowsort label-4398
SELECT DISTINCT + COUNT( * ) AS col2, - 82 * 64 * + 37 AS col1
----
1
-194176

skipif mysql # not compatible
query II rowsort label-4398
SELECT DISTINCT + COUNT ( * ) AS col2, - 82 * 64 * + 37 AS col1
----
1
-194176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4399
SELECT - 10 DIV + 40 + + + MAX( + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-4399
SELECT - 10 / + 40 + + + MAX ( + 95 ) AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4400
SELECT ALL - 77 DIV COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL - 77 / COUNT ( * )
----
-77

query I rowsort
SELECT + 78 * - 20 AS col2
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT - - CASE - 47 WHEN - 36 THEN - + COUNT( * ) + + ( - + 97 ) + - 29 / 5 + - - NULLIF ( - 83, + 54 + 43 + - ( + ( - COALESCE ( + - 49, 87 ) ) ) ) * + MIN( ALL + 56 ) WHEN - 49 THEN NULL ELSE NULL END * 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT - - CASE - 47 WHEN - 36 THEN - + COUNT ( * ) + + ( - + 97 ) + - 29 / 5 + - - NULLIF ( - 83, + 54 + 43 + - ( + ( - COALESCE ( + - 49, 87 ) ) ) ) * + MIN ( ALL + 56 ) WHEN - 49 THEN NULL ELSE NULL END * 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT + SUM( DISTINCT - 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4403
SELECT + SUM ( DISTINCT - 52 ) AS col2
----
-52

query I rowsort
SELECT DISTINCT - + 89 * + - 25
----
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL - ( + 70 ) * - MIN( + 93 ) + - 42
----
6468

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL - ( + 70 ) * - MIN ( + 93 ) + - 42
----
6468

query I rowsort
SELECT DISTINCT + ( + - 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT + COALESCE ( COUNT( DISTINCT 89 ), - COUNT( * ) + - 4, + SUM( DISTINCT + 10 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT + COALESCE ( COUNT ( DISTINCT 89 ), - COUNT ( * ) + - 4, + SUM ( DISTINCT + 10 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4408
SELECT - 6 DIV 37 * + NULLIF ( - MAX( DISTINCT - - 18 ), 15 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4408
SELECT - 6 / 37 * + NULLIF ( - MAX ( DISTINCT - - 18 ), 15 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT - 12 * - SUM( - 95 )
----
-1140

skipif mysql # not compatible
query I rowsort label-4409
SELECT - 12 * - SUM ( - 95 )
----
-1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT - 88 * - MIN( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT - 88 * - MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 0 - - 68 AS col0
----
68

query II rowsort
SELECT ALL + ( + + 67 ) AS col1, 24 AS col0
----
67
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4413
SELECT ALL 69 * + + NULLIF ( + ( + - COUNT( * ) ), MIN( DISTINCT - 99 ) + + + 96 * - 1 + - NULLIF ( + - CAST( NULL AS SIGNED ), + 48 ) ) * + - 60 + - 61 + COUNT( * ) * - + 68 AS col0
----
4011

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL 69 * + + NULLIF ( + ( + - COUNT ( * ) ), MIN ( DISTINCT - 99 ) + + + 96 * - 1 + - NULLIF ( + - CAST ( NULL AS INTEGER ), + 48 ) ) * + - 60 + - 61 + COUNT ( * ) * - + 68 AS col0
----
4011

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL COUNT( * ) * 28 + + + 45 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL COUNT ( * ) * 28 + + + 45 AS col0
----
73

query II rowsort
SELECT ALL - 53 * + 84 AS col0, 77 AS col2
----
-4452
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT + 22 * - + COALESCE ( - 15, + + COUNT( * ) )
----
330

skipif mysql # not compatible
query I rowsort label-4416
SELECT + 22 * - + COALESCE ( - 15, + + COUNT ( * ) )
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT COUNT( DISTINCT + 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4417
SELECT COUNT ( DISTINCT + 45 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT - 86 + - 31 + - + 50 * - COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4418
SELECT - 86 + - 31 + - + 50 * - COUNT ( * ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + MIN( ALL + + 62 ) * - 65
----
-4030

skipif mysql # not compatible
query I rowsort label-4419
SELECT + MIN ( ALL + + 62 ) * - 65
----
-4030

query I rowsort
SELECT - 63 + + + 23
----
-40

query I rowsort
SELECT ALL + 21 - + 57 + + 23 * - + 98 * + 20
----
-45116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4422
SELECT DISTINCT 8 DIV - - 49 * - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT 8 / - - 49 * - COUNT ( * ) col2
----
0

query I rowsort
SELECT ALL 12 - + - 84
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4424
SELECT DISTINCT - 83 * 94 / 95 * + COALESCE ( + CASE + - 52 WHEN 28 THEN - 36 END, - 52, 17 + - - 8 * + + COUNT( * ) + 77 ) + + - CAST( NULL AS SIGNED ) + + - 69 AS col0, 61 - - COUNT( * )
----
NULL
62

skipif mysql # not compatible
query II rowsort label-4424
SELECT DISTINCT - 83 * 94 / 95 * + COALESCE ( + CASE + - 52 WHEN 28 THEN - 36 END, - 52, 17 + - - 8 * + + COUNT ( * ) + 77 ) + + - CAST ( NULL AS INTEGER ) + + - 69 AS col0, 61 - - COUNT ( * )
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT DISTINCT 56 / - 67 * - CASE - AVG ( 97 ) WHEN 40 THEN 31 - - CASE - 7 WHEN - + COUNT( ALL 85 ) THEN + 58 * + + CASE - ( + + 16 ) WHEN + - ( - 41 ) THEN - ( 97 ) / - 92 END + 33 END + 58 / 67 WHEN 90 * - MAX( 92 ) + + 54 THEN COUNT( * ) - - 43 * 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT 56 / - 67 * - CASE - AVG ( 97 ) WHEN 40 THEN 31 - - CASE - 7 WHEN - + COUNT ( ALL 85 ) THEN + 58 * + + CASE - ( + + 16 ) WHEN + - ( - 41 ) THEN - ( 97 ) / - 92 END + 33 END + 58 / 67 WHEN 90 * - MAX ( 92 ) + + 54 THEN COUNT ( * ) - - 43 * 24 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4426
SELECT + 96 + 48 * - COALESCE ( - + CAST( - COUNT( * ) AS SIGNED ), + - 20 ) + - SUM( DISTINCT + 23 ) * + - 98 * 8 AS col1
----
18080

skipif mysql # not compatible
query I rowsort label-4426
SELECT + 96 + 48 * - COALESCE ( - + CAST ( - COUNT ( * ) AS INTEGER ), + - 20 ) + - SUM ( DISTINCT + 23 ) * + - 98 * 8 AS col1
----
18080

query I rowsort
SELECT - + 50 * - + 43 * + + 12
----
25800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT + + 44 * + 18 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT + + 44 * + 18 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 39 * + + 77 AS col0
----
-3003

onlyif mysql # DIV for integer division: 
query I rowsort label-4430
SELECT ALL 79 - - 31 + + 9 DIV + + 36 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL 79 - - 31 + + 9 / + + 36 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT + - SUM( + 35 ) * - - 33 AS col2
----
-1155

skipif mysql # not compatible
query I rowsort label-4431
SELECT + - SUM ( + 35 ) * - - 33 AS col2
----
-1155

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL + COUNT( - 87 )
----
1

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL + COUNT ( - 87 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4433
SELECT DISTINCT CAST( 71 AS SIGNED ) * + MAX( 9 ) + - + 81
----
558

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT CAST ( 71 AS INTEGER ) * + MAX ( 9 ) + - + 81
----
558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4434
SELECT + ( - 29 ) * + CASE - ( 43 ) WHEN + COUNT( * ) THEN + 7 * ( CASE - COUNT( * ) WHEN 41 THEN NULL WHEN 47 * + 66 * + 57 + + 73 THEN + CASE - CAST( - ( COUNT( * ) ) AS SIGNED ) WHEN + CASE 32 WHEN 1 THEN 8 WHEN 48 * 21 THEN NULL END / - 7 THEN NULL ELSE + ( - ( 47 ) ) END + - 54 ELSE 56 * - 45 END ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT + ( - 29 ) * + CASE - ( 43 ) WHEN + COUNT ( * ) THEN + 7 * ( CASE - COUNT ( * ) WHEN 41 THEN NULL WHEN 47 * + 66 * + 57 + + 73 THEN + CASE - CAST ( - ( COUNT ( * ) ) AS INTEGER ) WHEN + CASE 32 WHEN 1 THEN 8 WHEN 48 * 21 THEN NULL END / - 7 THEN NULL ELSE + ( - ( 47 ) ) END + - 54 ELSE 56 * - 45 END ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4435
SELECT DISTINCT + MAX( DISTINCT - 87 ), - 87
----
-87
-87

skipif mysql # not compatible
query II rowsort label-4435
SELECT DISTINCT + MAX ( DISTINCT - 87 ), - 87
----
-87
-87

query I rowsort
SELECT - - 36 * + NULLIF ( + ( - 95 ), - 40 * + 49 * 74 ) - - ( - + COALESCE ( + 29, + 82, - COALESCE ( NULLIF ( + - 23, ( + + 88 ) - 70 ), - 62 + - 3, - 82 ) * - ( - ( 59 ) + - 2 ) ) ) AS col2
----
-3449

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT + COALESCE ( COUNT( * ), 26 )
----
1

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT + COALESCE ( COUNT ( * ), 26 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4438
SELECT DISTINCT + ( COUNT( * ) ), + CAST( - + 70 AS SIGNED ) AS col0
----
1
-70

skipif mysql # not compatible
query II rowsort label-4438
SELECT DISTINCT + ( COUNT ( * ) ), + CAST ( - + 70 AS INTEGER ) AS col0
----
1
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4439
SELECT DISTINCT + + 21 / + 38 * + - 71 * + + 12 * - COUNT( * ) + 44 * - + 26 + ( - 40 ) - - COUNT( * ) + CAST( NULL AS SIGNED ) + 58 * 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT + + 21 / + 38 * + - 71 * + + 12 * - COUNT ( * ) + 44 * - + 26 + ( - 40 ) - - COUNT ( * ) + CAST ( NULL AS INTEGER ) + 58 * 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT NULLIF ( + COUNT( - 73 ), - + 6 * + COALESCE ( + COUNT( * ), - ( + COUNT( * ) ) * + + SUM( - 60 ), - - 81 + 90 * - + ( - 63 ) + - 83 ) + - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-4440
SELECT NULLIF ( + COUNT ( - 73 ), - + 6 * + COALESCE ( + COUNT ( * ), - ( + COUNT ( * ) ) * + + SUM ( - 60 ), - - 81 + 90 * - + ( - 63 ) + - 83 ) + - 60 )
----
1

query I rowsort
SELECT 73 * + ( - + 97 ) + 20 + + - 5 * + + 15 - - 96 + + 89 + - 54
----
-7005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4442
SELECT + + SUM( - - ( 81 ) ) + + - 44 - - 67 DIV NULLIF ( - - 63, + + COUNT( * ) ) * + COUNT( * ) * 34 + 41
----
112

skipif mysql # not compatible
query I rowsort label-4442
SELECT + + SUM ( - - ( 81 ) ) + + - 44 - - 67 / NULLIF ( - - 63, + + COUNT ( * ) ) * + COUNT ( * ) * 34 + 41
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT - 89 * + + COUNT( * ) * + + SUM( + 3 )
----
-267

skipif mysql # not compatible
query I rowsort label-4443
SELECT - 89 * + + COUNT ( * ) * + + SUM ( + 3 )
----
-267

query I rowsort
SELECT DISTINCT + 38 * + 63 col1
----
2394

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4445
SELECT ALL + CAST( - - 96 AS SIGNED ) DIV + 93 + + ( - 16 ) * 44 * + 61 AS col1
----
-42943

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL + CAST ( - - 96 AS INTEGER ) / + 93 + + ( - 16 ) * 44 * + 61 AS col1
----
-42943

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT 47 DIV + 88 + + 46 + + - 36 col0
----
10

skipif mysql # not compatible
query I rowsort label-4446
SELECT 47 / + 88 + + 46 + + - 36 col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL + 20 * - COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL + 20 * - COUNT ( * ) AS col1
----
-20

query I rowsort
SELECT - 53 + - 76
----
-129

query I rowsort
SELECT DISTINCT ( - + 47 ) * + 3
----
-141

query I rowsort
SELECT - 46 + 49
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4451
SELECT DISTINCT + 26 AS col1, COUNT( * ) - - + 76 AS col0
----
26
77

skipif mysql # not compatible
query II rowsort label-4451
SELECT DISTINCT + 26 AS col1, COUNT ( * ) - - + 76 AS col0
----
26
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT + COUNT( * ) * + + CAST( + 69 AS SIGNED ) * 53 + - 56 col2
----
3601

skipif mysql # not compatible
query I rowsort label-4452
SELECT + COUNT ( * ) * + + CAST ( + 69 AS INTEGER ) * 53 + - 56 col2
----
3601

onlyif mysql # aggregate syntax: 
query II rowsort label-4453
SELECT ALL 77 * 49 - - 53 AS col0, MIN( 24 ) - + 74 * - 49 + - + 8 + - 69 * - 90 - 25 * + 39 + - + 8
----
3826
8869

skipif mysql # not compatible
query II rowsort label-4453
SELECT ALL 77 * 49 - - 53 AS col0, MIN ( 24 ) - + 74 * - 49 + - + 8 + - 69 * - 90 - 25 * + 39 + - + 8
----
3826
8869

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT NULLIF ( + COUNT( * ), - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-4454
SELECT NULLIF ( + COUNT ( * ), - 11 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4455
SELECT + COUNT( * ) AS col0, MAX( DISTINCT - 89 )
----
1
-89

skipif mysql # not compatible
query II rowsort label-4455
SELECT + COUNT ( * ) AS col0, MAX ( DISTINCT - 89 )
----
1
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT - CASE + + 85 WHEN - + 17 THEN NULL ELSE + 0 + + 76 END DIV 69 col2
----
-1

skipif mysql # not compatible
query I rowsort label-4456
SELECT - CASE + + 85 WHEN - + 17 THEN NULL ELSE + 0 + + 76 END / 69 col2
----
-1

query I rowsort
SELECT 64 * + 99 AS col2
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ALL - 49 - - COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL - 49 - - COUNT ( * ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4459
SELECT - 46 col1, - COUNT( * ) * + + 22 AS col0
----
-46
-22

skipif mysql # not compatible
query II rowsort label-4459
SELECT - 46 col1, - COUNT ( * ) * + + 22 AS col0
----
-46
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4460
SELECT 32, CASE + 38 WHEN + 9 THEN + COUNT( ALL 72 ) * - CAST( - - 13 AS SIGNED ) * - 52 WHEN 44 THEN + 64 WHEN - 50 / + - COUNT( * ) THEN NULL END AS col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-4460
SELECT 32, CASE + 38 WHEN + 9 THEN + COUNT ( ALL 72 ) * - CAST ( - - 13 AS INTEGER ) * - 52 WHEN 44 THEN + 64 WHEN - 50 / + - COUNT ( * ) THEN NULL END AS col0
----
32
NULL

query II rowsort
SELECT ALL 2, 55 AS col1
----
2
55

query I rowsort
SELECT ALL 97 * - 79
----
-7663

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL + 54 * COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL + 54 * COUNT ( * )
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4464
SELECT 63 AS col0, + COUNT( * ) + + 0 - + 31 + 71 * + 93 + - CAST( NULL AS DECIMAL ) + - + 66
----
63
NULL

skipif mysql # not compatible
query II rowsort label-4464
SELECT 63 AS col0, + COUNT ( * ) + + 0 - + 31 + 71 * + 93 + - CAST ( NULL AS REAL ) + - + 66
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT ALL + + 48 * - 48 + CASE - - 29 WHEN - + ( - 4 ) THEN 21 + - - 84 - - - 47 WHEN + - 93 THEN - - 88 * - ( - CASE SUM( ALL 12 ) WHEN 51 THEN 86 * + 13 * 30 + 59 WHEN + 69 THEN NULL ELSE NULL END ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + + 48 * - 48 + CASE - - 29 WHEN - + ( - 4 ) THEN 21 + - - 84 - - - 47 WHEN + - 93 THEN - - 88 * - ( - CASE SUM ( ALL 12 ) WHEN 51 THEN 86 * + 13 * 30 + 59 WHEN + 69 THEN NULL ELSE NULL END ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + COUNT( * ) * COALESCE ( 82, + COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-4466
SELECT + COUNT ( * ) * COALESCE ( 82, + COUNT ( * ) )
----
82

query I rowsort
SELECT 80 * + 99 * - 9 AS col2
----
-71280

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT + COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT + COUNT ( * ) - + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4469
SELECT COUNT( * ) AS col0, CAST( - + COUNT( * ) AS SIGNED )
----
1
-1

skipif mysql # not compatible
query II rowsort label-4469
SELECT COUNT ( * ) AS col0, CAST ( - + COUNT ( * ) AS INTEGER )
----
1
-1

query I rowsort
SELECT - 55 + - - 80 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT DISTINCT - MAX( 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT - MAX ( 91 )
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4472
SELECT ALL + 49 * + + COALESCE ( - 13, - 71, - CASE 84 WHEN - - COUNT( * ) DIV + + 47 THEN 92 WHEN 2 + + 72 * COUNT( * ) THEN NULL END ) + + 95 DIV 88 AS col1
----
-636

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL + 49 * + + COALESCE ( - 13, - 71, - CASE 84 WHEN - - COUNT ( * ) / + + 47 THEN 92 WHEN 2 + + 72 * COUNT ( * ) THEN NULL END ) + + 95 / 88 AS col1
----
-636

query I rowsort
SELECT 60 * - 12
----
-720

query I rowsort
SELECT DISTINCT + ( - - 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL - - COUNT( * ) + 49 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - - COUNT ( * ) + 49 AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL 26 DIV + - 51
----
0

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL 26 / + - 51
----
0

query I rowsort
SELECT DISTINCT 70 + - 23 AS col0
----
47

query I rowsort
SELECT + 49 * 41
----
2009

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT 29 + + 76 + + - 56 + - 35 + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-4479
SELECT 29 + + 76 + + - 56 + - 35 + - COUNT ( * )
----
13

query II rowsort
SELECT ALL 88 + 33 * 90 AS col0, 34
----
3058
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4481
SELECT ALL - CAST( NULL AS DECIMAL ) * + 9 * 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL - CAST ( NULL AS REAL ) * + 9 * 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT COUNT( * ) * - 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-4482
SELECT COUNT ( * ) * - 69 AS col2
----
-69

query I rowsort
SELECT DISTINCT 6 + - 29
----
-23

query I rowsort
SELECT ALL 65 + 95 * 51 AS col1
----
4910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT ALL COALESCE ( + 56, + CAST( NULL AS SIGNED ) ) * + 84 + - COUNT( * )
----
4703

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL COALESCE ( + 56, + CAST ( NULL AS INTEGER ) ) * + 84 + - COUNT ( * )
----
4703

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT ( 33 ) * - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-4486
SELECT ( 33 ) * - COUNT ( * )
----
-33

query I rowsort
SELECT DISTINCT ( + 25 ) + 87
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4488
SELECT ALL 29 - + 24 + - 20 + - - COUNT( * ) + - NULLIF ( + + 27, 77 * + - 98 DIV - 27 ) * + COUNT( * ) DIV 42 + - 60
----
-74

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL 29 - + 24 + - 20 + - - COUNT ( * ) + - NULLIF ( + + 27, 77 * + - 98 / - 27 ) * + COUNT ( * ) / 42 + - 60
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL 5 - + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL 5 - + COUNT ( * )
----
4

query I rowsort
SELECT 55 - - 55 AS col0
----
110

query I rowsort
SELECT 93 * - - 15 AS col2
----
1395

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL 69 - COUNT( * ) + 98 - 71 + + COUNT( * ) + NULLIF ( + + 20, + 90 * + + ( - 79 ) + + - 81 - - 1 * - COUNT( ALL 74 ) )
----
116

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL 69 - COUNT ( * ) + 98 - 71 + + COUNT ( * ) + NULLIF ( + + 20, + 90 * + + ( - 79 ) + + - 81 - - 1 * - COUNT ( ALL 74 ) )
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4493
SELECT DISTINCT + COUNT( + 11 ) * + COUNT( * ) DIV + SUM( - 84 ) + + 72 + - 37
----
35

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT + COUNT ( + 11 ) * + COUNT ( * ) / + SUM ( - 84 ) + + 72 + - 37
----
35

query I rowsort
SELECT DISTINCT + 63 * 90 AS col0
----
5670

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT 83 * 58 DIV + 9
----
534

skipif mysql # not compatible
query I rowsort label-4495
SELECT 83 * 58 / + 9
----
534

query I rowsort
SELECT ALL 21 * + 25
----
525

onlyif mysql # DIV for integer division: 
query I rowsort label-4497
SELECT 90 DIV + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4497
SELECT 90 / + 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT CASE COUNT( + 36 ) WHEN 73 + + - 88 THEN NULL WHEN + + ( 50 ) THEN + + SUM( DISTINCT 80 ) ELSE NULL END + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT CASE COUNT ( + 36 ) WHEN 73 + + - 88 THEN NULL WHEN + + ( 50 ) THEN + + SUM ( DISTINCT 80 ) ELSE NULL END + 17 AS col0
----
NULL

query I rowsort
SELECT + CASE + - 35 WHEN + - 13 THEN NULL ELSE - - 17 END - + - 50
----
67

query I rowsort
SELECT 50 * + 75 + - + 31 + - - 36 AS col1
----
3755

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4501
SELECT 5 / + 62 / - CAST( + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT 5 / + 62 / - CAST ( + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4502
SELECT - MAX( ALL + 45 ) DIV 7 + + ( + MIN( ALL - 67 ) ) * - 96 AS col2
----
6426

skipif mysql # not compatible
query I rowsort label-4502
SELECT - MAX ( ALL + 45 ) / 7 + + ( + MIN ( ALL - 67 ) ) * - 96 AS col2
----
6426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT - - CAST( + + 75 AS SIGNED ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4503
SELECT - - CAST ( + + 75 AS INTEGER ) AS col0
----
75

query I rowsort
SELECT ALL + 87 + + 84 AS col1
----
171

query I rowsort
SELECT ALL 20 + - 16
----
4

query II rowsort
SELECT 23 * - 25 AS col2, + 22 AS col1
----
-575
22

query I rowsort
SELECT + 94 + - + 39
----
55

query I rowsort
SELECT - ( - 67 ) * + NULLIF ( 82, 38 ) AS col0
----
5494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT CAST( NULL AS SIGNED ) + 91 + 80 * - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT CAST ( NULL AS INTEGER ) + 91 + 80 * - - 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4510
SELECT ALL - + NULLIF ( 89, - MIN( ALL 87 ) ) + 20 + - COUNT( * ) * - ( 99 ) + 33 AS col1, 85 AS col1
----
63
85

skipif mysql # not compatible
query II rowsort label-4510
SELECT ALL - + NULLIF ( 89, - MIN ( ALL 87 ) ) + 20 + - COUNT ( * ) * - ( 99 ) + 33 AS col1, 85 AS col1
----
63
85

query I rowsort
SELECT 31 - NULLIF ( - 1, - 18 ) - + 57 AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4512
SELECT - 60 * - ( CASE - - COALESCE ( - CAST( NULL AS SIGNED ), - COUNT( * ) ) WHEN - + 44 THEN + - COALESCE ( - - ( + 51 ), + - 47 * - 29 + - COUNT( * ), 62 ) ELSE - - ( 82 ) END ) * - 48 * + 79
----
-18656640

skipif mysql # not compatible
query I rowsort label-4512
SELECT - 60 * - ( CASE - - COALESCE ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) WHEN - + 44 THEN + - COALESCE ( - - ( + 51 ), + - 47 * - 29 + - COUNT ( * ), 62 ) ELSE - - ( 82 ) END ) * - 48 * + 79
----
-18656640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4513
SELECT + ( + - 76 ) DIV ( - - 58 ) * - NULLIF ( + 19, - MAX( DISTINCT 99 ) ) * 5 * + COUNT( * ) + + MIN( ALL ( - COALESCE ( - - 50, + - 70 + - 69 - - - 95 + + - 8 - - 52, + 76 ) ) ) + - 93 * - COUNT( ALL 85 + 91 ) * 71
----
6648

skipif mysql # not compatible
query I rowsort label-4513
SELECT + ( + - 76 ) / ( - - 58 ) * - NULLIF ( + 19, - MAX ( DISTINCT 99 ) ) * 5 * + COUNT ( * ) + + MIN ( ALL ( - COALESCE ( - - 50, + - 70 + - 69 - - - 95 + + - 8 - - 52, + 76 ) ) ) + - 93 * - COUNT ( ALL 85 + 91 ) * 71
----
6648

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT DISTINCT - 55 + - - CASE 93 WHEN - 51 - - 29 THEN + 13 WHEN - - 90 * 41 + + 98 * + + COUNT( * ) - - COUNT( * ) - + 6 * + 13 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT - 55 + - - CASE 93 WHEN - 51 - - 29 THEN + 13 WHEN - - 90 * 41 + + 98 * + + COUNT ( * ) - - COUNT ( * ) - + 6 * + 13 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 44 * + 74 col1
----
-3256

query I rowsort
SELECT ALL 65 + 59 * - 57 - - 23
----
-3275

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT ALL 24 DIV + - 9
----
-2

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL 24 / + - 9
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT + COUNT( * ) * + 64 * + COUNT( * ) - + - MIN( DISTINCT - + 21 ) * + - MAX( DISTINCT + + 40 ) AS col1
----
904

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + COUNT ( * ) * + 64 * + COUNT ( * ) - + - MIN ( DISTINCT - + 21 ) * + - MAX ( DISTINCT + + 40 ) AS col1
----
904

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT 29 + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4519
SELECT 29 + COUNT ( * ) AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4520
SELECT ALL 25 * + + COUNT( * ) - + 98 * - CAST( + - 37 AS SIGNED ) AS col1, 9 AS col1
----
-3601
9

skipif mysql # not compatible
query II rowsort label-4520
SELECT ALL 25 * + + COUNT ( * ) - + 98 * - CAST ( + - 37 AS INTEGER ) AS col1, 9 AS col1
----
-3601
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT 39 * + + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-4521
SELECT 39 * + + COUNT ( * ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT MAX( DISTINCT - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4522
SELECT MAX ( DISTINCT - 38 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT 45 + 42 + - - 39 + NULLIF ( - 68, - COUNT( * ) * - + 7 ) + 49 * 31 * 35 AS col0
----
53223

skipif mysql # not compatible
query I rowsort label-4523
SELECT 45 + 42 + - - 39 + NULLIF ( - 68, - COUNT ( * ) * - + 7 ) + 49 * 31 * 35 AS col0
----
53223

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT SUM( DISTINCT + - 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4524
SELECT SUM ( DISTINCT + - 47 ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4525
SELECT + CAST( - 57 AS SIGNED ) * + + COUNT( ALL + 82 ) DIV - + COUNT( * ) - 73 - 32 * ( - - 97 ) + + 66
----
-3054

skipif mysql # not compatible
query I rowsort label-4525
SELECT + CAST ( - 57 AS INTEGER ) * + + COUNT ( ALL + 82 ) / - + COUNT ( * ) - 73 - 32 * ( - - 97 ) + + 66
----
-3054

query I rowsort
SELECT + ( + + 75 ) * + 45
----
3375

query I rowsort
SELECT + 52 * - + ( - 38 ) AS col1
----
1976

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL 58 * - - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL 58 * - - COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4529
SELECT + ( 89 ) + - COUNT( * ), + 69 AS col0
----
88
69

skipif mysql # not compatible
query II rowsort label-4529
SELECT + ( 89 ) + - COUNT ( * ), + 69 AS col0
----
88
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT + SUM( ALL + - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT + SUM ( ALL + - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT COUNT( ALL + 23 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4531
SELECT COUNT ( ALL + 23 ) col2
----
1

query I rowsort
SELECT + ( - 75 ) * + 41
----
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT MIN( DISTINCT + - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-4533
SELECT MIN ( DISTINCT + - 66 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT + 86 + + + CAST( NULL AS SIGNED ) + - 38 * + - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT + 86 + + + CAST ( NULL AS INTEGER ) + - 38 * + - 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4535
SELECT ALL COUNT( * ) + 20 DIV - + 37 + + - 95 * - - 49
----
-4654

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL COUNT ( * ) + 20 / - + 37 + + - 95 * - - 49
----
-4654

query II rowsort
SELECT + - 20, - 77 col2
----
-20
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ( + - MAX( - + 91 ) )
----
91

skipif mysql # not compatible
query I rowsort label-4537
SELECT ( + - MAX ( - + 91 ) )
----
91

query I rowsort
SELECT ALL 59 + - 75
----
-16

query I rowsort
SELECT DISTINCT 63 + - 3 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - + MAX( DISTINCT - 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4540
SELECT - + MAX ( DISTINCT - 94 ) AS col2
----
94

query I rowsort
SELECT ALL - + 80 + 4 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT COUNT( + + ( 91 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4542
SELECT COUNT ( + + ( 91 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 10 + 68 AS col0
----
58

query I rowsort
SELECT DISTINCT 30 + + - 66 * - + 41
----
2736

query I rowsort
SELECT + + 77 * - 17 - + 46
----
-1355

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT - SUM( ALL - 71 ) * + 78 - + 56
----
5482

skipif mysql # not compatible
query I rowsort label-4546
SELECT - SUM ( ALL - 71 ) * + 78 - + 56
----
5482

onlyif mysql # aggregate syntax: 
query II rowsort label-4547
SELECT ALL 48 * + COUNT( * ) + + 68 AS col1, 68
----
116
68

skipif mysql # not compatible
query II rowsort label-4547
SELECT ALL 48 * + COUNT ( * ) + + 68 AS col1, 68
----
116
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT DISTINCT - NULLIF ( - 30, 91 ) * 43 * + - 41 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT - NULLIF ( - 30, 91 ) * 43 * + - 41 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT - + COUNT( * ), 1 col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-4549
SELECT - + COUNT ( * ), 1 col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT ALL - NULLIF ( + - 50, ( + 26 ) / 21 ) + COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL - NULLIF ( + - 50, ( + 26 ) / 21 ) + COUNT ( * ) AS col2
----
51

query I rowsort
SELECT + 44 - 62 AS col1
----
-18

query I rowsort
SELECT - - 6 * - 91 AS col0
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT - - 95 + SUM( ALL - 9 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4553
SELECT - - 95 + SUM ( ALL - 9 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT - + COUNT( * ) * 81 + ( - + ( - 14 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-4554
SELECT - + COUNT ( * ) * 81 + ( - + ( - 14 ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT DISTINCT - - 50 * + COUNT( * ) + - + ( - 8 ) + 65 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT - - 50 * + COUNT ( * ) + - + ( - 8 ) + 65 AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT COUNT( DISTINCT + 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT COUNT ( DISTINCT + 26 ) AS col0
----
1

query I rowsort
SELECT - ( + ( - - 48 ) ) AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4558
SELECT - COUNT( 71 ) - - 55 + + 47 DIV + 94 * 41, 50 + - 27 * - 1 AS col1
----
54
77

skipif mysql # not compatible
query II rowsort label-4558
SELECT - COUNT ( 71 ) - - 55 + + 47 / + 94 * 41, 50 + - 27 * - 1 AS col1
----
54
77

query II rowsort
SELECT DISTINCT - 7 * + 26 AS col1, - 58
----
-182
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT - 70 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT - 70 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 76 * 88 col2
----
-6688

query I rowsort
SELECT ALL - 89 * - + 97
----
8633

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4563
SELECT CAST( NULL AS SIGNED ) AS col1, - ( + 17 ) col0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-4563
SELECT CAST ( NULL AS INTEGER ) AS col1, - ( + 17 ) col0
----
NULL
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4564
SELECT CAST( + + COUNT( + 74 ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4564
SELECT CAST ( + + COUNT ( + 74 ) AS INTEGER ) col1
----
1

query II rowsort
SELECT ALL + 38, - 92 AS col2
----
38
-92

query I rowsort
SELECT ALL - 90 * 79
----
-7110

onlyif mysql # DIV for integer division: 
query I rowsort label-4567
SELECT - 57 DIV 35
----
-1

skipif mysql # not compatible
query I rowsort label-4567
SELECT - 57 / 35
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4568
SELECT DISTINCT 69 DIV 14
----
4

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT 69 / 14
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4569
SELECT ( 57 ), COALESCE ( + + 11, + 87 ) * + - NULLIF ( - 59, + CAST( NULL AS DECIMAL ) ) + - 20 AS col0
----
57
629

skipif mysql # not compatible
query II rowsort label-4569
SELECT ( 57 ), COALESCE ( + + 11, + 87 ) * + - NULLIF ( - 59, + CAST ( NULL AS REAL ) ) + - 20 AS col0
----
57
629

query I rowsort
SELECT + CASE + 55 WHEN 28 THEN + - 36 * - - 73 + 63 * + 47 / 97 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT - AVG ( + 58 ) / 93 + - CAST( NULL AS SIGNED ) * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT - AVG ( + 58 ) / 93 + - CAST ( NULL AS INTEGER ) * 72
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT + 62 DIV + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-4572
SELECT + 62 / + COUNT ( * )
----
62

query I rowsort
SELECT ALL + 0 * ( + 66 ) + - 22 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT + - NULLIF ( + - 99, - 52 * + COUNT( + - ( - 44 ) ) + + - 66 + - 69 + + + AVG ( DISTINCT + 81 ) * + - NULLIF ( + + MIN( - 85 ), + - 7 / + - COUNT( * ) * - 47 ) + + 85 + - 75 * 18 )
----
99

skipif mysql # not compatible
query I rowsort label-4574
SELECT + - NULLIF ( + - 99, - 52 * + COUNT ( + - ( - 44 ) ) + + - 66 + - 69 + + + AVG ( DISTINCT + 81 ) * + - NULLIF ( + + MIN ( - 85 ), + - 7 / + - COUNT ( * ) * - 47 ) + + 85 + - 75 * 18 )
----
99

query I rowsort
SELECT + ( - - ( - 43 ) )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4576
SELECT ALL ( + 68 ) * - 10 * 46 DIV COUNT( * ) + - - 83 + + ( COUNT( - 38 ) ) * - ( + 18 ) * - + 2 * - 6 + + 16 DIV + - 16 + + - 36 AS col0
----
-31450

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL ( + 68 ) * - 10 * 46 / COUNT ( * ) + - - 83 + + ( COUNT ( - 38 ) ) * - ( + 18 ) * - + 2 * - 6 + + 16 / + - 16 + + - 36 AS col0
----
-31450

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT DISTINCT + SUM( DISTINCT + 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT + SUM ( DISTINCT + 2 ) AS col1
----
2

query II rowsort
SELECT 94 AS col2, - 12 + - + 85 AS col0
----
94
-97

query I rowsort
SELECT ALL - + 99 * - 0 + + + 15 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT ALL 18 * - CAST( NULL AS SIGNED ) * + - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL 18 * - CAST ( NULL AS INTEGER ) * + - 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT + 62 - + + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4581
SELECT + 62 - + + COUNT ( * ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT - COUNT( - - 31 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4582
SELECT - COUNT ( - - 31 ) AS col2
----
-1

query I rowsort
SELECT + 6 + - 96 AS col1
----
-90

query I rowsort
SELECT + - 15 * + + 99 * 35 * ( + 17 )
----
-883575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4585
SELECT - + 81 AS col2, 38 - - + NULLIF ( CASE WHEN NOT 44 <> NULL THEN - NULLIF ( - CAST( + - 1 AS SIGNED ), 96 - 73 ) ELSE NULL END, + 38 ) AS col2, - - 38 * - - SUM( ALL 80 ) AS col2
----
-81
NULL
3040

skipif mysql # not compatible
query III rowsort label-4585
SELECT - + 81 AS col2, 38 - - + NULLIF ( CASE WHEN NOT 44 <> NULL THEN - NULLIF ( - CAST ( + - 1 AS INTEGER ), 96 - 73 ) ELSE NULL END, + 38 ) AS col2, - - 38 * - - SUM ( ALL 80 ) AS col2
----
-81
NULL
3040

onlyif mysql # aggregate syntax: 
query II rowsort label-4586
SELECT ALL - COUNT( * ) AS col1, 93
----
-1
93

skipif mysql # not compatible
query II rowsort label-4586
SELECT ALL - COUNT ( * ) AS col1, 93
----
-1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL + - 81 * - COUNT( + 95 ) + + 74
----
155

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + - 81 * - COUNT ( + 95 ) + + 74
----
155

query I rowsort
SELECT + + 40 + - + 86 AS col0
----
-46

query I rowsort
SELECT - + ( + + 94 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT + - 66 + - COUNT( * ) + - ( - 51 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4590
SELECT + - 66 + - COUNT ( * ) + - ( - 51 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL 82 * + - COUNT( DISTINCT - 29 )
----
-82

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL 82 * + - COUNT ( DISTINCT - 29 )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-4592
SELECT COUNT( * ) AS col1, - 38 * - COUNT( DISTINCT - 34 )
----
1
38

skipif mysql # not compatible
query II rowsort label-4592
SELECT COUNT ( * ) AS col1, - 38 * - COUNT ( DISTINCT - 34 )
----
1
38

query I rowsort
SELECT ALL + 85 - - - ( - 9 ) * + 20 AS col0
----
265

query II rowsort
SELECT - 3, 1 AS col2
----
-3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL - 5 - + + COUNT( * ) - + ( + 91 ) + + 97 + - 28
----
-28

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - 5 - + + COUNT ( * ) - + ( + 91 ) + + 97 + - 28
----
-28

query I rowsort
SELECT + + 88 * - - 88 * + 15
----
116160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4597
SELECT COALESCE ( CAST( + 50 AS SIGNED ), + + 27 ) DIV + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4597
SELECT COALESCE ( CAST ( + 50 AS INTEGER ), + + 27 ) / + COUNT ( * )
----
50

query I rowsort
SELECT 84 * + NULLIF ( 77, 48 )
----
6468

query I rowsort
SELECT 58 * + 22 AS col1
----
1276

query I rowsort
SELECT ALL 52 * + 51 AS col1
----
2652

query II rowsort
SELECT 64 + + 42 * - + COALESCE ( 69, - 8 ) AS col2, + 1
----
-2834
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT 83 * + COUNT( DISTINCT 24 )
----
83

skipif mysql # not compatible
query I rowsort label-4602
SELECT 83 * + COUNT ( DISTINCT 24 )
----
83

query II rowsort
SELECT ALL - 58 * - 42 AS col0, 56
----
2436
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4604
SELECT ALL - COALESCE ( - 67, + CAST( - 58 AS SIGNED ) * - ( + 83 ), + ( 23 ), - + 38 )
----
67

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL - COALESCE ( - 67, + CAST ( - 58 AS INTEGER ) * - ( + 83 ), + ( 23 ), - + 38 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT + 66 DIV + 12 - + 44 col1
----
-39

skipif mysql # not compatible
query I rowsort label-4605
SELECT + 66 / + 12 - + 44 col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4606
SELECT COUNT( + NULLIF ( - 3, + 41 / CAST( + 63 AS DECIMAL ) * 84 + 33 ) ) * ( + - ( 97 ) ) * - + 27 * 49 - COUNT( * ) + - 76 AS col0
----
128254

skipif mysql # not compatible
query I rowsort label-4606
SELECT COUNT ( + NULLIF ( - 3, + 41 / CAST ( + 63 AS REAL ) * 84 + 33 ) ) * ( + - ( 97 ) ) * - + 27 * 49 - COUNT ( * ) + - 76 AS col0
----
128254

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT 9 * + CASE - + COUNT( * ) WHEN + 36 THEN - 66 WHEN - 40 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT 9 * + CASE - + COUNT ( * ) WHEN + 36 THEN - 66 WHEN - 40 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT ALL - COUNT( + 83 ) + + + 36
----
35

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL - COUNT ( + 83 ) + + + 36
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4609
SELECT CAST( NULL AS SIGNED ) * 66 + NULLIF ( + + 83, + 25 ) AS col1, 98 AS col2
----
NULL
98

skipif mysql # not compatible
query II rowsort label-4609
SELECT CAST ( NULL AS INTEGER ) * 66 + NULLIF ( + + 83, + 25 ) AS col1, 98 AS col2
----
NULL
98

query I rowsort
SELECT + COALESCE ( 48, - 13 * - 21, + 12, + - 37 ) * - 22 * + NULLIF ( 49, - 38 ) + + + 0
----
-51744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4611
SELECT COALESCE ( 34, + 52, + 47 * + COUNT( * ) + + 16 - - 2 DIV - 17 * + 0 * + 82 * + - 41 ) - ( + 56 ) + 95
----
73

skipif mysql # not compatible
query I rowsort label-4611
SELECT COALESCE ( 34, + 52, + 47 * + COUNT ( * ) + + 16 - - 2 / - 17 * + 0 * + 82 * + - 41 ) - ( + 56 ) + 95
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4612
SELECT 49 + 70 AS col0, + MAX( 7 ) + - 19 AS col2
----
119
-12

skipif mysql # not compatible
query II rowsort label-4612
SELECT 49 + 70 AS col0, + MAX ( 7 ) + - 19 AS col2
----
119
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - 5 * 45 + - SUM( - 93 )
----
-132

skipif mysql # not compatible
query I rowsort label-4613
SELECT - 5 * 45 + - SUM ( - 93 )
----
-132

query I rowsort
SELECT ALL - - ( + 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT COUNT( * ) * 90 + - 66 col0
----
24

skipif mysql # not compatible
query I rowsort label-4615
SELECT COUNT ( * ) * 90 + - 66 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT COUNT( * ) + + 49 * + 47 * + 5 AS col0
----
11516

skipif mysql # not compatible
query I rowsort label-4616
SELECT COUNT ( * ) + + 49 * + 47 * + 5 AS col0
----
11516

query I rowsort
SELECT ALL + + 21 - - 17 AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4618
SELECT 49 * - + 71 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT 49 * - + 71 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT + 74 + + + NULLIF ( 32, + 6 + ( + SUM( ALL 34 ) ) ) * - 12 * + COUNT( * )
----
-310

skipif mysql # not compatible
query I rowsort label-4619
SELECT + 74 + + + NULLIF ( 32, + 6 + ( + SUM ( ALL 34 ) ) ) * - 12 * + COUNT ( * )
----
-310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4620
SELECT ALL 52 * - COUNT( * ) * + - CAST( NULL AS SIGNED ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL 52 * - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT DISTINCT 70 * - COALESCE ( + COUNT( * ), - - 47 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT 70 * - COALESCE ( + COUNT ( * ), - - 47 ) AS col1
----
-70

query I rowsort
SELECT ALL - 14 * 19 * 77 AS col1
----
-20482

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - NULLIF ( + CASE + 92 WHEN COUNT( * ) + + + COALESCE ( 81, + 69 + - - 36 + 9 * - 53 * 41 ) + + - 60 THEN + - 76 * - - 77 + + 76 END, + - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT - NULLIF ( + CASE + 92 WHEN COUNT ( * ) + + + COALESCE ( 81, + 69 + - - 36 + 9 * - 53 * 41 ) + + - 60 THEN + - 76 * - - 77 + + 76 END, + - 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT - - SUM( DISTINCT - - ( 44 ) )
----
44

skipif mysql # not compatible
query I rowsort label-4624
SELECT - - SUM ( DISTINCT - - ( 44 ) )
----
44

query I rowsort
SELECT 98 + 31
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4626
SELECT 55 + 3 DIV - 94 + - - 79 + - - COUNT( * ) - - 50 + 48 * + 59 * - 9 AS col2
----
-25303

skipif mysql # not compatible
query I rowsort label-4626
SELECT 55 + 3 / - 94 + - - 79 + - - COUNT ( * ) - - 50 + 48 * + 59 * - 9 AS col2
----
-25303

query II rowsort
SELECT ALL 62, 32 AS col1
----
62
32

query I rowsort
SELECT DISTINCT 93 * 58
----
5394

query I rowsort
SELECT ALL + 26 + - 76
----
-50

query II rowsort
SELECT ALL 24 col1, 1 AS col0
----
24
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT 58 + + + COUNT( * ) + - 22 - - - 61 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT 58 + + + COUNT ( * ) + - 22 - - - 61 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT MAX( DISTINCT + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-4632
SELECT MAX ( DISTINCT + 81 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4633
SELECT 91 / 88 + - 12 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT 91 / 88 + - 12 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4634
SELECT ALL 49 * - + ( + 60 ) + + NULLIF ( 50, + 78 ) DIV 64 AS col1
----
-2940

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL 49 * - + ( + 60 ) + + NULLIF ( 50, + 78 ) / 64 AS col1
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL - COUNT( * ) + 27 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL - COUNT ( * ) + 27 AS col0
----
26

query I rowsort
SELECT DISTINCT - + ( + + 98 ) AS col2
----
-98

query I rowsort
SELECT ALL - + 74 + + 53 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT + - SUM( DISTINCT 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-4638
SELECT + - SUM ( DISTINCT 65 )
----
-65

query I rowsort
SELECT + 31 * + NULLIF ( + + 36, + + 14 + 61 )
----
1116

query I rowsort
SELECT ALL - 79 - - 40
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-4641
SELECT - 97 - - 38 DIV - 25, - 39 * - ( + + 17 ) + - ( - 10 ) col2
----
-98
673

skipif mysql # not compatible
query II rowsort label-4641
SELECT - 97 - - 38 / - 25, - 39 * - ( + + 17 ) + - ( - 10 ) col2
----
-98
673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4642
SELECT DISTINCT - CAST( 12 AS SIGNED ) * COUNT( ALL + - 0 )
----
-12

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT - CAST ( 12 AS INTEGER ) * COUNT ( ALL + - 0 )
----
-12

query I rowsort
SELECT ALL 80 - - 72 AS col2
----
152

query I rowsort
SELECT ALL + 38 - - 30
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT 43 * COUNT( * ) * - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4645
SELECT 43 * COUNT ( * ) * - COUNT ( * ) AS col0
----
-43

query I rowsort
SELECT + ( + - 11 ) - - 8 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4647
SELECT - + 96 * - - 3 + - 73 - - - ( 80 ) * 75 col1, COUNT( * ) * - CAST( - 58 AS SIGNED )
----
-6361
58

skipif mysql # not compatible
query II rowsort label-4647
SELECT - + 96 * - - 3 + - 73 - - - ( 80 ) * 75 col1, COUNT ( * ) * - CAST ( - 58 AS INTEGER )
----
-6361
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4648
SELECT 23 DIV - 3 - + CAST( - 16 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4648
SELECT 23 / - 3 - + CAST ( - 16 AS INTEGER ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT - SUM( DISTINCT 17 ) * - 76 + - - 45
----
1337

skipif mysql # not compatible
query I rowsort label-4649
SELECT - SUM ( DISTINCT 17 ) * - 76 + - - 45
----
1337

query I rowsort
SELECT - - ( - - 98 )
----
98

query I rowsort
SELECT - 47 + 2 AS col0
----
-45

query II rowsort
SELECT - 65 * + - 92 AS col1, 51 + - 79 col0
----
5980
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-4653
SELECT - NULLIF ( 45, - 95 ) * COUNT( * ), 3 + + 74 AS col2
----
-45
77

skipif mysql # not compatible
query II rowsort label-4653
SELECT - NULLIF ( 45, - 95 ) * COUNT ( * ), 3 + + 74 AS col2
----
-45
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL MIN( ALL + 60 ) + 45 * + 84 * + - 34 * + 37 AS col1
----
-4755180

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL MIN ( ALL + 60 ) + 45 * + 84 * + - 34 * + 37 AS col1
----
-4755180

query I rowsort
SELECT - NULLIF ( 47, 34 ) + + 38
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4656
SELECT + CAST( NULL AS SIGNED ) * - 18 AS col2, 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-4656
SELECT + CAST ( NULL AS INTEGER ) * - 18 AS col2, 23
----
NULL
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT - 99 - CAST( - 4 AS SIGNED ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4657
SELECT - 99 - CAST ( - 4 AS INTEGER ) AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT - CASE 77 WHEN + + 4 * - CAST( NULL AS SIGNED ) THEN - 56 - + 31 * + - 74 WHEN - 70 + - - 94 THEN NULL WHEN 94 THEN - 8 / + NULLIF ( - 37, 84 - + 27 * + 63 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT - CASE 77 WHEN + + 4 * - CAST ( NULL AS INTEGER ) THEN - 56 - + 31 * + - 74 WHEN - 70 + - - 94 THEN NULL WHEN 94 THEN - 8 / + NULLIF ( - 37, 84 - + 27 * + 63 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT + CAST( - 67 AS SIGNED ) + + 14 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4659
SELECT + CAST ( - 67 AS INTEGER ) + + 14 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT + MAX( ALL - 21 ) + - 23 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4660
SELECT + MAX ( ALL - 21 ) + - 23 AS col2
----
-44

query I rowsort
SELECT ALL - 96 + - + ( + 76 )
----
-172

query I rowsort
SELECT ALL ( + ( 40 ) ) col0
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4663
SELECT ALL CAST( NULL AS DECIMAL ) + 18 AS col1, CASE + 69 WHEN + 3 / + 87 * 37 THEN - 61 END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4663
SELECT ALL CAST ( NULL AS REAL ) + 18 AS col1, CASE + 69 WHEN + 3 / + 87 * 37 THEN - 61 END AS col1
----
NULL
NULL

query I rowsort
SELECT + 45 - 30
----
15

query I rowsort
SELECT 96 * 13 - + - 9 col1
----
1257

query I rowsort
SELECT + 45 + 54 * + - 14
----
-711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4667
SELECT 88 DIV 51 + - 29 + - COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4667
SELECT 88 / 51 + - 29 + - COUNT ( * ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT - 34 * - MAX( ALL 68 ) + + 51
----
2363

skipif mysql # not compatible
query I rowsort label-4668
SELECT - 34 * - MAX ( ALL 68 ) + + 51
----
2363

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT + 72 * COUNT( * ) + + 96 + + COUNT( * ) * SUM( 57 ) DIV 86 + COUNT( - + 21 ) col1
----
169

skipif mysql # not compatible
query I rowsort label-4669
SELECT + 72 * COUNT ( * ) + + 96 + + COUNT ( * ) * SUM ( 57 ) / 86 + COUNT ( - + 21 ) col1
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT - 42 * - COALESCE ( 45, + COUNT( * ) * 51 - - COUNT( * ) )
----
1890

skipif mysql # not compatible
query I rowsort label-4670
SELECT - 42 * - COALESCE ( 45, + COUNT ( * ) * 51 - - COUNT ( * ) )
----
1890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4671
SELECT CAST( NULL AS SIGNED ) / 65 * - + CAST( - 62 AS SIGNED ) + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT CAST ( NULL AS INTEGER ) / 65 * - + CAST ( - 62 AS INTEGER ) + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL + MAX( DISTINCT - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + MAX ( DISTINCT - 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL + COALESCE ( 70, + 89 + - 22 ) * - ( NULLIF ( - 47, - COUNT( * ) - - - 25 ) ) * + + COUNT( * ) AS col1
----
3290

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + COALESCE ( 70, + 89 + - 22 ) * - ( NULLIF ( - 47, - COUNT ( * ) - - - 25 ) ) * + + COUNT ( * ) AS col1
----
3290

query I rowsort
SELECT DISTINCT + - 69 col1
----
-69

query I rowsort
SELECT DISTINCT + + ( - 17 ) AS col2
----
-17

query I rowsort
SELECT + - ( - ( 27 ) )
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4677
SELECT + - CASE - - 82 WHEN + + 29 + + AVG ( DISTINCT 95 ) THEN + 27 * + 2 + 61 END * - + CASE 22 WHEN COUNT( * ) * + + 63 * MIN( - 13 ) THEN COUNT( * ) * COALESCE ( + + 26, + 5 * + - ( - + 35 ), - + 2 ) + ( + + 10 ) + - MAX( ALL - 87 ) - - 87 * 37 WHEN + 6 THEN 99 * - 35 ELSE 89 END + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT + - CASE - - 82 WHEN + + 29 + + AVG ( DISTINCT 95 ) THEN + 27 * + 2 + 61 END * - + CASE 22 WHEN COUNT ( * ) * + + 63 * MIN ( - 13 ) THEN COUNT ( * ) * COALESCE ( + + 26, + 5 * + - ( - + 35 ), - + 2 ) + ( + + 10 ) + - MAX ( ALL - 87 ) - - 87 * 37 WHEN + 6 THEN 99 * - 35 ELSE 89 END + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + 70 * - 12 - 95
----
-935

query I rowsort
SELECT - 71 * - 37 + - - 69 + - 24 * + - 98
----
5048

query I rowsort
SELECT + 88 * 55
----
4840

query I rowsort
SELECT - 58 + - 24 + 73
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT - + COALESCE ( 59, + + 42 * + - 67 ) * + COUNT( * ) * MAX( DISTINCT 13 ) * + - 52 * 9
----
358956

skipif mysql # not compatible
query I rowsort label-4682
SELECT - + COALESCE ( 59, + + 42 * + - 67 ) * + COUNT ( * ) * MAX ( DISTINCT 13 ) * + - 52 * 9
----
358956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4683
SELECT ALL + - 50 * COUNT( * ) DIV + 84 + + 84 AS col1, ( + - ( + COUNT( * ) ) ) AS col1, - - CAST( - 64 AS SIGNED ) AS col2
----
84
-1
-64

skipif mysql # not compatible
query III rowsort label-4683
SELECT ALL + - 50 * COUNT ( * ) / + 84 + + 84 AS col1, ( + - ( + COUNT ( * ) ) ) AS col1, - - CAST ( - 64 AS INTEGER ) AS col2
----
84
-1
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-4684
SELECT + COUNT( + + 3 ) AS col1, - 85 * - - 8 * - MAX( ALL + 63 )
----
1
42840

skipif mysql # not compatible
query II rowsort label-4684
SELECT + COUNT ( + + 3 ) AS col1, - 85 * - - 8 * - MAX ( ALL + 63 )
----
1
42840

query II rowsort
SELECT 35 * + - 52 * - - 50 + 99 AS col2, 56 AS col2
----
-90901
56

query I rowsort
SELECT - 24 * + COALESCE ( + 49, 93 ) AS col0
----
-1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4687
SELECT ALL 92 * - 57 DIV COUNT( * ) + - + 66 + - CAST( + + 91 AS SIGNED ) DIV - 49
----
-5309

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL 92 * - 57 / COUNT ( * ) + - + 66 + - CAST ( + + 91 AS INTEGER ) / - 49
----
-5309

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4688
SELECT COALESCE ( - 78, - 93 * 33 - - - 65 + - ( + - COALESCE ( - + 87, + + 70 + + SUM( 1 ) ) ) * + 54 DIV - 33 * - 73 ) * 52 DIV + 68 - - 32 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-4688
SELECT COALESCE ( - 78, - 93 * 33 - - - 65 + - ( + - COALESCE ( - + 87, + + 70 + + SUM ( 1 ) ) ) * + 54 / - 33 * - 73 ) * 52 / + 68 - - 32 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT - 27 + - 14 + - COUNT( * ) + - + 44 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT - 27 + - 14 + - COUNT ( * ) + - + 44 AS col2
----
-86

query I rowsort
SELECT - 87 + - 73
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - 58 * - - MAX( 75 )
----
-4350

skipif mysql # not compatible
query I rowsort label-4691
SELECT - 58 * - - MAX ( 75 )
----
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT ALL - COUNT( * ) * - 29
----
29

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL - COUNT ( * ) * - 29
----
29

query I rowsort
SELECT - 75 + + 83 * + - ( - - 10 ) AS col0
----
-905

query I rowsort
SELECT DISTINCT - 27 + - 16 * - 92
----
1445

onlyif mysql # aggregate syntax: 
query II rowsort label-4695
SELECT DISTINCT - 82 + 5 * - 45 AS col0, COUNT( * ) col1
----
-307
1

skipif mysql # not compatible
query II rowsort label-4695
SELECT DISTINCT - 82 + 5 * - 45 AS col0, COUNT ( * ) col1
----
-307
1

query I rowsort
SELECT DISTINCT + NULLIF ( 29, + 19 ) + + + 81
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT DISTINCT ( COUNT( 93 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT ( COUNT ( 93 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * 87 + 19 + - 92 + + - 59 * - NULLIF ( - 15, + + 6 )
----
-871

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * 87 + 19 + - 92 + + - 59 * - NULLIF ( - 15, + + 6 )
----
-871

onlyif mysql # aggregate syntax: 
query II rowsort label-4699
SELECT DISTINCT 40 AS col1, - NULLIF ( - 67, CASE + ( - - 79 ) WHEN + 68 THEN NULL ELSE 18 - + 31 * MAX( + 43 ) END ) + - - 66 + + + COUNT( * ) - + 68 * ( 88 ) AS col2
----
40
-5850

skipif mysql # not compatible
query II rowsort label-4699
SELECT DISTINCT 40 AS col1, - NULLIF ( - 67, CASE + ( - - 79 ) WHEN + 68 THEN NULL ELSE 18 - + 31 * MAX ( + 43 ) END ) + - - 66 + + + COUNT ( * ) - + 68 * ( 88 ) AS col2
----
40
-5850

query I rowsort
SELECT - 21 + + 86
----
65

query I rowsort
SELECT ALL - 65 - 21 * + 82 AS col0
----
-1787

query I rowsort
SELECT DISTINCT + - ( + + 37 ) AS col2
----
-37

query I rowsort
SELECT ALL + ( + + 83 )
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-4704
SELECT + COUNT( * ), 99 col2
----
1
99

skipif mysql # not compatible
query II rowsort label-4704
SELECT + COUNT ( * ), 99 col2
----
1
99

query I rowsort
SELECT DISTINCT + - ( 6 )
----
-6

query I rowsort
SELECT DISTINCT - 38 * + 34 + 1 col0
----
-1291

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT ALL 76 DIV 69
----
1

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL 76 / 69
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4708
SELECT + 27 * - + 5 + + COALESCE ( - 58, - 72 + - 7 + 79 * + + NULLIF ( + + 37, ( + NULLIF ( COUNT( * ), + + 99 * + CAST( 28 AS SIGNED ) + - 22 ) ) ) ) + + - 89 * + COUNT( * ) AS col0, + 96 AS col2
----
-282
96

skipif mysql # not compatible
query II rowsort label-4708
SELECT + 27 * - + 5 + + COALESCE ( - 58, - 72 + - 7 + 79 * + + NULLIF ( + + 37, ( + NULLIF ( COUNT ( * ), + + 99 * + CAST ( 28 AS INTEGER ) + - 22 ) ) ) ) + + - 89 * + COUNT ( * ) AS col0, + 96 AS col2
----
-282
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4709
SELECT - 39 DIV - + 55 * 64 + NULLIF ( 94, 86 ) + - + 81
----
13

skipif mysql # not compatible
query I rowsort label-4709
SELECT - 39 / - + 55 * 64 + NULLIF ( 94, 86 ) + - + 81
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT + + SUM( + + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4710
SELECT + + SUM ( + + 16 )
----
16

query I rowsort
SELECT 75 * + - 58 + 87 + - 85
----
-4348

query I rowsort
SELECT + 42 * - 51
----
-2142

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4713
SELECT 6 - - ( + - 63 ) - - CASE 38 WHEN - + 74 THEN - + 24 ELSE NULL END * - 49 + - CAST( COUNT( * ) AS DECIMAL ), 16 * + - 95 AS col0
----
NULL
-1520

skipif mysql # not compatible
query II rowsort label-4713
SELECT 6 - - ( + - 63 ) - - CASE 38 WHEN - + 74 THEN - + 24 ELSE NULL END * - 49 + - CAST ( COUNT ( * ) AS REAL ), 16 * + - 95 AS col0
----
NULL
-1520

query I rowsort
SELECT ALL - 86 + 10
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-4715
SELECT 83 * CASE - 67 WHEN 72 THEN ( - COUNT( * ) ) ELSE + COALESCE ( - + 36, + 43 ) * - - NULLIF ( ( + NULLIF ( - - 67, - MAX( ALL - 85 ) + + 96 ) ), - + ( + 41 ) + - 48 ) + - 62 END AS col0, 70 AS col2
----
-205342
70

skipif mysql # not compatible
query II rowsort label-4715
SELECT 83 * CASE - 67 WHEN 72 THEN ( - COUNT ( * ) ) ELSE + COALESCE ( - + 36, + 43 ) * - - NULLIF ( ( + NULLIF ( - - 67, - MAX ( ALL - 85 ) + + 96 ) ), - + ( + 41 ) + - 48 ) + - 62 END AS col0, 70 AS col2
----
-205342
70

query I rowsort
SELECT 6 * + - 78 + - 61
----
-529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT ALL 48 DIV - + COUNT( * ) - - + 64 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL 48 / - + COUNT ( * ) - - + 64 AS col1
----
16

query I rowsort
SELECT ALL - 40 + - 85
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-4719
SELECT ALL - 31 + + 68 AS col2, - COUNT( 27 )
----
37
-1

skipif mysql # not compatible
query II rowsort label-4719
SELECT ALL - 31 + + 68 AS col2, - COUNT ( 27 )
----
37
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT COUNT( ALL + + 29 ) + + 53
----
54

skipif mysql # not compatible
query I rowsort label-4720
SELECT COUNT ( ALL + + 29 ) + + 53
----
54

query II rowsort
SELECT 67 AS col2, 9 * 15 col0
----
67
135

query II rowsort
SELECT 2 AS col0, 3 AS col1
----
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT 3 - + + COUNT( ALL - 7 ) + - - 41 * 8 AS col0
----
330

skipif mysql # not compatible
query I rowsort label-4723
SELECT 3 - + + COUNT ( ALL - 7 ) + - - 41 * 8 AS col0
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL 76 + - + COUNT( DISTINCT + 41 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL 76 + - + COUNT ( DISTINCT + 41 ) AS col1
----
75

query II rowsort
SELECT 83 AS col1, ( ( ( ( + + 45 ) ) ) ) + - 1
----
83
44

query II rowsort
SELECT ALL 68 AS col0, 52 * 23 AS col1
----
68
1196

onlyif mysql # aggregate syntax: 
query II rowsort label-4727
SELECT - 69 AS col0, - COUNT( * ) col1
----
-69
-1

skipif mysql # not compatible
query II rowsort label-4727
SELECT - 69 AS col0, - COUNT ( * ) col1
----
-69
-1

query I rowsort
SELECT DISTINCT 81 + 35 - + 13
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT ALL 40 * 75 DIV - - 23
----
130

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL 40 * 75 / - - 23
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4730
SELECT CAST( NULL AS SIGNED ) + COUNT( 88 ) + + 2 * + - 54 - + NULLIF ( 38, - - 64 - - 43 / + - COUNT( * ) ) * + - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4730
SELECT CAST ( NULL AS INTEGER ) + COUNT ( 88 ) + + 2 * + - 54 - + NULLIF ( 38, - - 64 - - 43 / + - COUNT ( * ) ) * + - 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4731
SELECT ALL 77 AS col0, - 69 + - 36 + 49 + 65 + + + COUNT( * ) + - COUNT( * ) + COUNT( * ) * + + 98 * + 7 + - 85 * - 11 AS col2, 39
----
77
1630
39

skipif mysql # not compatible
query III rowsort label-4731
SELECT ALL 77 AS col0, - 69 + - 36 + 49 + 65 + + + COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) * + + 98 * + 7 + - 85 * - 11 AS col2, 39
----
77
1630
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4732
SELECT ALL - CAST( - CASE + - 37 WHEN + 74 THEN - 85 WHEN + 27 THEN NULL END AS DECIMAL ) - + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL - CAST ( - CASE + - 37 WHEN + 74 THEN - 85 WHEN + 27 THEN NULL END AS REAL ) - + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 18 * - ( 41 )
----
-738

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4734
SELECT ALL 35 AS col1, 16 * 13 + + + CAST( NULL AS SIGNED )
----
35
NULL

skipif mysql # not compatible
query II rowsort label-4734
SELECT ALL 35 AS col1, 16 * 13 + + + CAST ( NULL AS INTEGER )
----
35
NULL

query II rowsort
SELECT - 86 AS col0, - 40 AS col2
----
-86
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4736
SELECT 21 AS col2, + 9 * - MAX( + - 89 ) + - 12 + - 53
----
21
736

skipif mysql # not compatible
query II rowsort label-4736
SELECT 21 AS col2, + 9 * - MAX ( + - 89 ) + - 12 + - 53
----
21
736

query I rowsort
SELECT 37 + + 76 AS col1
----
113

query I rowsort
SELECT 14 + - 51 - 92 AS col0
----
-129

query I rowsort
SELECT - 50 + 6 * 32 + - 80 * 38
----
-2898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT 72 + + CAST( + + 32 AS SIGNED ) col1
----
104

skipif mysql # not compatible
query I rowsort label-4740
SELECT 72 + + CAST ( + + 32 AS INTEGER ) col1
----
104

query I rowsort
SELECT ALL - 42 * - 42 col2
----
1764

query I rowsort
SELECT COALESCE ( + 56, - - 29 ) - 5 + - 43 * + 49 AS col1
----
-2056

onlyif mysql # DIV for integer division: 
query I rowsort label-4743
SELECT - ( + 78 ) DIV - ( + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-4743
SELECT - ( + 78 ) / - ( + 56 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4744
SELECT ALL - COUNT( * ) AS col0, + 92
----
-1
92

skipif mysql # not compatible
query II rowsort label-4744
SELECT ALL - COUNT ( * ) AS col0, + 92
----
-1
92

query I rowsort
SELECT ( - - 90 ) + 45
----
135

query II rowsort
SELECT + + 44 AS col0, + 9 * - 54 AS col2
----
44
-486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT 88 + + CAST( NULL AS SIGNED ) + + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT 88 + + CAST ( NULL AS INTEGER ) + + 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4748
SELECT + 67, + COUNT( * ) AS col0
----
67
1

skipif mysql # not compatible
query II rowsort label-4748
SELECT + 67, + COUNT ( * ) AS col0
----
67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT + COUNT( * ) * SUM( DISTINCT + + 48 ) col2
----
48

skipif mysql # not compatible
query I rowsort label-4749
SELECT + COUNT ( * ) * SUM ( DISTINCT + + 48 ) col2
----
48

query I rowsort
SELECT ALL + 15 + + 73 AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4751
SELECT 10 DIV - 30 * + - 13 + 81
----
81

skipif mysql # not compatible
query I rowsort label-4751
SELECT 10 / - 30 * + - 13 + 81
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4752
SELECT DISTINCT - MIN( 74 ), 63 + - COUNT( * ) + + - COUNT( * ) AS col2
----
-74
61

skipif mysql # not compatible
query II rowsort label-4752
SELECT DISTINCT - MIN ( 74 ), 63 + - COUNT ( * ) + + - COUNT ( * ) AS col2
----
-74
61

query I rowsort
SELECT DISTINCT ( 86 ) * 82 AS col2
----
7052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4754
SELECT ALL - CASE - 98 WHEN + 55 THEN - 23 * 47 * - 99 WHEN CAST( NULL AS SIGNED ) * - COUNT( * ) * 26 * 11 THEN NULL WHEN - 46 THEN NULL ELSE NULLIF ( 92, MAX( + + 87 ) * + 45 * + 19 + - 77 * + + 62 ) END + - - 37 * - 53 * - + 87 - + CASE - + 59 WHEN 41 + + 85 THEN - 47 + 33 END * ( + COUNT( DISTINCT 60 ) - - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL - CASE - 98 WHEN + 55 THEN - 23 * 47 * - 99 WHEN CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 26 * 11 THEN NULL WHEN - 46 THEN NULL ELSE NULLIF ( 92, MAX ( + + 87 ) * + 45 * + 19 + - 77 * + + 62 ) END + - - 37 * - 53 * - + 87 - + CASE - + 59 WHEN 41 + + 85 THEN - 47 + 33 END * ( + COUNT ( DISTINCT 60 ) - - 61 )
----
NULL

query I rowsort
SELECT - NULLIF ( - + 97, + - 36 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT + 66 * + 25 + 11 * COUNT( * ) col0
----
1661

skipif mysql # not compatible
query I rowsort label-4756
SELECT + 66 * + 25 + 11 * COUNT ( * ) col0
----
1661

query I rowsort
SELECT 74 * + - 28 col1
----
-2072

query I rowsort
SELECT DISTINCT 94 * + 63
----
5922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4759
SELECT MAX( - CAST( 67 AS SIGNED ) ) DIV 23 + + 11, 88 * + COUNT( * ) - - COUNT( * ) + - 91 AS col0
----
9
-2

skipif mysql # not compatible
query II rowsort label-4759
SELECT MAX ( - CAST ( 67 AS INTEGER ) ) / 23 + + 11, 88 * + COUNT ( * ) - - COUNT ( * ) + - 91 AS col0
----
9
-2

query I rowsort
SELECT ALL + 9 * COALESCE ( 27, + 99 ) AS col0
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4761
SELECT DISTINCT CASE - - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) * - 31 + 74 THEN NULL WHEN - NULLIF ( + AVG ( - 95 ), + 62 ) THEN - 22 WHEN - 27 THEN 60 ELSE NULL END / 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT CASE - - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) * - 31 + 74 THEN NULL WHEN - NULLIF ( + AVG ( - 95 ), + 62 ) THEN - 22 WHEN - 27 THEN 60 ELSE NULL END / 62
----
NULL

query I rowsort
SELECT 92 - - 71 - - 76 * + - 26 * - 61 * 45
----
5424283

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT 28 * - MIN( - 63 ) * + - COUNT( * )
----
-1764

skipif mysql # not compatible
query I rowsort label-4763
SELECT 28 * - MIN ( - 63 ) * + - COUNT ( * )
----
-1764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4764
SELECT - MAX( DISTINCT - ( - 26 ) ) AS col1, + CAST( NULL AS SIGNED ) - COUNT( ALL - + 49 ) col0
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-4764
SELECT - MAX ( DISTINCT - ( - 26 ) ) AS col1, + CAST ( NULL AS INTEGER ) - COUNT ( ALL - + 49 ) col0
----
-26
NULL

query I rowsort
SELECT 53 * - 28 AS col2
----
-1484

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT DISTINCT - 93 * + 69 + + 93 + + 66 * + 84 + + SUM( + 46 ) col1
----
-734

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT - 93 * + 69 + + 93 + + 66 * + 84 + + SUM ( + 46 ) col1
----
-734

query I rowsort
SELECT 87 * + + 10 AS col0
----
870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT COUNT( * ) + - - COUNT( * ) + - COALESCE ( - ( + + ( CAST( NULL AS SIGNED ) ) ), + 43 + + 67 ) * + - 18
----
1982

skipif mysql # not compatible
query I rowsort label-4768
SELECT COUNT ( * ) + - - COUNT ( * ) + - COALESCE ( - ( + + ( CAST ( NULL AS INTEGER ) ) ), + 43 + + 67 ) * + - 18
----
1982

query II rowsort
SELECT - ( + 63 ) AS col1, - 77
----
-63
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT CAST( 31 AS SIGNED ) + + - 30 * - 20
----
631

skipif mysql # not compatible
query I rowsort label-4770
SELECT CAST ( 31 AS INTEGER ) + + - 30 * - 20
----
631

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT - 97 * + + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-4771
SELECT - 97 * + + COUNT ( * )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT DISTINCT + + ( - - ( - NULLIF ( + COALESCE ( MAX( + 75 ), - + CAST( NULL AS SIGNED ) ), ( 28 ) ) ) ) + + 57 col0
----
-18

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT + + ( - - ( - NULLIF ( + COALESCE ( MAX ( + 75 ), - + CAST ( NULL AS INTEGER ) ), ( 28 ) ) ) ) + + 57 col0
----
-18

query II rowsort
SELECT ALL - 19 + + 1, 29 AS col0
----
-18
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4774
SELECT - CASE - 49 WHEN + CAST( NULL AS SIGNED ) * + 43 * - ( + + COUNT( * ) ) + + 33 THEN + 98 - - 71 + ( - 43 ) DIV - 35 + - COUNT( DISTINCT - + 42 ) ELSE 35 - - 78 END * - + COUNT( * ) * + 23 AS col2
----
2599

skipif mysql # not compatible
query I rowsort label-4774
SELECT - CASE - 49 WHEN + CAST ( NULL AS INTEGER ) * + 43 * - ( + + COUNT ( * ) ) + + 33 THEN + 98 - - 71 + ( - 43 ) / - 35 + - COUNT ( DISTINCT - + 42 ) ELSE 35 - - 78 END * - + COUNT ( * ) * + 23 AS col2
----
2599

query I rowsort
SELECT ALL + + 43 * - - 14 * - - 63
----
37926

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4776
SELECT 3 * + + 84 + + 81 + - 66 DIV - CASE - 24 WHEN + 89 - + - 56 - + 19 + + 22 * + + CAST( + 29 AS DECIMAL ) THEN NULL WHEN 50 * - - ( + - 50 ) + - 69 THEN 25 + 25 DIV + 6 * - 77 * - + 12 ELSE + + ( 54 ) END AS col1
----
334

skipif mysql # not compatible
query I rowsort label-4776
SELECT 3 * + + 84 + + 81 + - 66 / - CASE - 24 WHEN + 89 - + - 56 - + 19 + + 22 * + + CAST ( + 29 AS REAL ) THEN NULL WHEN 50 * - - ( + - 50 ) + - 69 THEN 25 + 25 / + 6 * - 77 * - + 12 ELSE + + ( 54 ) END AS col1
----
334

query I rowsort
SELECT - - 98 * + 58 col2
----
5684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4778
SELECT + + 49 DIV 71 * - + ( ( + 11 ) ) + COUNT( * ) + - + ( + 38 )
----
-37

skipif mysql # not compatible
query I rowsort label-4778
SELECT + + 49 / 71 * - + ( ( + 11 ) ) + COUNT ( * ) + - + ( + 38 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT + 64 * CAST( - + 58 AS SIGNED ) * 32
----
-118784

skipif mysql # not compatible
query I rowsort label-4779
SELECT + 64 * CAST ( - + 58 AS INTEGER ) * 32
----
-118784

query I rowsort
SELECT - 35 + 93 - + + 89 + + 64 * + 41
----
2593

onlyif mysql # aggregate syntax: 
query II rowsort label-4781
SELECT COUNT( * ), + 16 AS col2
----
1
16

skipif mysql # not compatible
query II rowsort label-4781
SELECT COUNT ( * ), + 16 AS col2
----
1
16

query III rowsort
SELECT DISTINCT + 34 col1, ( + - ( - - 41 ) ) * 87 * 10, - + 43 + 7 AS col2
----
34
-35670
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - 28 * + ( - - COALESCE ( - COUNT( - 74 ), + + 5 ) )
----
28

skipif mysql # not compatible
query I rowsort label-4783
SELECT - 28 * + ( - - COALESCE ( - COUNT ( - 74 ), + + 5 ) )
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4784
SELECT DISTINCT + COUNT( * ) * 43 - + - CAST( NULL AS DECIMAL ) / - - 44 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT + COUNT ( * ) * 43 - + - CAST ( NULL AS REAL ) / - - 44 * - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT - ( - 72 ) + 76 AS col1, 41 * 52
----
148
2132

query I rowsort
SELECT + 81 - + 45
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4787
SELECT - CAST( 45 AS SIGNED ) * + - ( + 2 ) * + - 45
----
-4050

skipif mysql # not compatible
query I rowsort label-4787
SELECT - CAST ( 45 AS INTEGER ) * + - ( + 2 ) * + - 45
----
-4050

query I rowsort
SELECT + 98 * - 47 * + - 99
----
455994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4789
SELECT + 57 - - + COUNT( * ) * + COUNT( * ) + - ( + 21 ) * + 82 + + CAST( + - 46 AS SIGNED ) + + - 26 * + 53 * 77 AS col0
----
-107816

skipif mysql # not compatible
query I rowsort label-4789
SELECT + 57 - - + COUNT ( * ) * + COUNT ( * ) + - ( + 21 ) * + 82 + + CAST ( + - 46 AS INTEGER ) + + - 26 * + 53 * 77 AS col0
----
-107816

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT MAX( - 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4790
SELECT MAX ( - 29 ) AS col1
----
-29

query II rowsort
SELECT ALL 33 AS col1, - 76 AS col2
----
33
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL ( COUNT( * ) ) * COALESCE ( 54, - + 69 )
----
54

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL ( COUNT ( * ) ) * COALESCE ( 54, - + 69 )
----
54

query I rowsort
SELECT DISTINCT ( + - 23 ) AS col1
----
-23

query I rowsort
SELECT + 21 + + + 45
----
66

query II rowsort
SELECT ALL 42 AS col1, 73
----
42
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4796
SELECT ALL - COUNT( * ) + - 77 + - 3 + + 93 * - - 64 * - - 5, ( - - NULLIF ( - - 25, - - 90 + - + 41 ) ) AS col2
----
29679
25

skipif mysql # not compatible
query II rowsort label-4796
SELECT ALL - COUNT ( * ) + - 77 + - 3 + + 93 * - - 64 * - - 5, ( - - NULLIF ( - - 25, - - 90 + - + 41 ) ) AS col2
----
29679
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4797
SELECT ALL COUNT( ALL - CAST( NULL AS SIGNED ) ) + CASE + MIN( ALL - - 92 ) WHEN - + 65 / - 8 + + 19 + 83 * - 99 + - SUM( + COALESCE ( - + 68, 54 ) ) + - MIN( ALL - 40 ) / 12 THEN NULL WHEN 84 / - CASE + + 53 WHEN - 98 * + CASE + 15 WHEN + 54 THEN ( - 51 ) WHEN - + 71 THEN + 43 + - COUNT( * ) WHEN - 3 THEN - 47 END - 52 * 13 THEN 10 END THEN NULL ELSE + 90 * MIN( DISTINCT + 30 ) END AS col2
----
2700

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + CASE + MIN ( ALL - - 92 ) WHEN - + 65 / - 8 + + 19 + 83 * - 99 + - SUM ( + COALESCE ( - + 68, 54 ) ) + - MIN ( ALL - 40 ) / 12 THEN NULL WHEN 84 / - CASE + + 53 WHEN - 98 * + CASE + 15 WHEN + 54 THEN ( - 51 ) WHEN - + 71 THEN + 43 + - COUNT ( * ) WHEN - 3 THEN - 47 END - 52 * 13 THEN 10 END THEN NULL ELSE + 90 * MIN ( DISTINCT + 30 ) END AS col2
----
2700

query I rowsort
SELECT + 95 * - 43 AS col0
----
-4085

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL MIN( - 81 ) + + COALESCE ( + 68, + + MIN( ALL + 66 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL MIN ( - 81 ) + + COALESCE ( + 68, + + MIN ( ALL + 66 ) )
----
-13

query I rowsort
SELECT + + 43 + - - 46
----
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4801
SELECT DISTINCT 13 + + 79 + + - CAST( + 49 AS SIGNED ) + - 51 + + - 98 DIV - 33
----
-6

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT 13 + + 79 + + - CAST ( + 49 AS INTEGER ) + - 51 + + - 98 / - 33
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4802
SELECT DISTINCT + COUNT( * ) AS col0, + 57 DIV - 79 * ( 44 )
----
1
0

skipif mysql # not compatible
query II rowsort label-4802
SELECT DISTINCT + COUNT ( * ) AS col0, + 57 / - 79 * ( 44 )
----
1
0

query I rowsort
SELECT + + 93 + - 5
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT + - COUNT( * ) + - NULLIF ( + - 44, + 88 ) col1
----
43

skipif mysql # not compatible
query I rowsort label-4804
SELECT + - COUNT ( * ) + - NULLIF ( + - 44, + 88 ) col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4805
SELECT + 32 DIV NULLIF ( - 54, + ( - 16 ) * 57 ) + + 48
----
48

skipif mysql # not compatible
query I rowsort label-4805
SELECT + 32 / NULLIF ( - 54, + ( - 16 ) * 57 ) + + 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT - COUNT( * ) + - 87 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4806
SELECT - COUNT ( * ) + - 87 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT - 57 * + 69 + + + ( + COUNT( * ) )
----
-3932

skipif mysql # not compatible
query I rowsort label-4807
SELECT - 57 * + 69 + + + ( + COUNT ( * ) )
----
-3932

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT + NULLIF ( COUNT( * ), COUNT( * ) ) * - - 97 + - - ( ( - + COUNT( * ) ) ) + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT + NULLIF ( COUNT ( * ), COUNT ( * ) ) * - - 97 + - - ( ( - + COUNT ( * ) ) ) + - 37
----
NULL

query I rowsort
SELECT ALL - 55 * - - 41 AS col0
----
-2255

query I rowsort
SELECT - 11 + - 61 - - 22 AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4811
SELECT ALL 17 DIV + - 31, COUNT( * ) - + + NULLIF ( + + 43, + + CASE - ( + COUNT( * ) ) WHEN - 47 THEN + + 55 ELSE - - 87 + + - COUNT( * ) END ) + - 67 + - - 46 * - - 23 + - + COUNT( * ) + + + 61 * - COUNT( * ) + + 93 + + 0 DIV + 59 * + 37 + - - 71 col2
----
0
1051

skipif mysql # not compatible
query II rowsort label-4811
SELECT ALL 17 / + - 31, COUNT ( * ) - + + NULLIF ( + + 43, + + CASE - ( + COUNT ( * ) ) WHEN - 47 THEN + + 55 ELSE - - 87 + + - COUNT ( * ) END ) + - 67 + - - 46 * - - 23 + - + COUNT ( * ) + + + 61 * - COUNT ( * ) + + 93 + + 0 / + 59 * + 37 + - - 71 col2
----
0
1051

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT - 29 DIV 2 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4812
SELECT - 29 / 2 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT DISTINCT - COUNT( * ) * - 36 * - 61
----
-2196

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT - COUNT ( * ) * - 36 * - 61
----
-2196

query II rowsort
SELECT - 5 * 3, - 15 - + 13 * ( 25 ) col2
----
-15
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT + 38 * COUNT( * ) + 81 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-4815
SELECT + 38 * COUNT ( * ) + 81 AS col0
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-4816
SELECT + 93 DIV 82
----
1

skipif mysql # not compatible
query I rowsort label-4816
SELECT + 93 / 82
----
1

query I rowsort
SELECT - 57 + 47
----
-10

query I rowsort
SELECT - 69 * + 2 * + - 38
----
5244

query I rowsort
SELECT - 34 + - 53
----
-87

query I rowsort
SELECT DISTINCT + ( - + 85 ) AS col0
----
-85

query I rowsort
SELECT DISTINCT + 92 * 18
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT DISTINCT + 27 * + 78 + COUNT( * )
----
2107

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT + 27 * + 78 + COUNT ( * )
----
2107

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4823
SELECT ALL + CAST( - 31 AS SIGNED ), + 98 col1
----
-31
98

skipif mysql # not compatible
query II rowsort label-4823
SELECT ALL + CAST ( - 31 AS INTEGER ), + 98 col1
----
-31
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT ALL - 78 * 9 + + ( CAST( + + 43 AS SIGNED ) ) * + - ( - + 84 )
----
2910

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL - 78 * 9 + + ( CAST ( + + 43 AS INTEGER ) ) * + - ( - + 84 )
----
2910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4825
SELECT ALL CAST( 14 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL CAST ( 14 AS INTEGER ) AS col2
----
14

query I rowsort
SELECT - 52 + 12
----
-40

query I rowsort
SELECT DISTINCT - 10 + - - 15 col0
----
5

query II rowsort
SELECT ALL + + 64 + 63 AS col2, 8
----
127
8

query I rowsort
SELECT COALESCE ( 98, - + 75 )
----
98

query I rowsort
SELECT + 19 * + 11
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT SUM( DISTINCT - 72 ) * + + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT SUM ( DISTINCT - 72 ) * + + COUNT ( * )
----
-72

query II rowsort
SELECT ALL + + 72 + + 68 AS col2, - 9
----
140
-9

query I rowsort
SELECT ALL - 17 + + - 55 AS col2
----
-72

query I rowsort
SELECT ALL + - 22 + + 19 - 14 AS col1
----
-17

query I rowsort
SELECT - 68 * 60 - - + 0 AS col2
----
-4080

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT 65 * + MIN( DISTINCT 48 ) AS col2
----
3120

skipif mysql # not compatible
query I rowsort label-4836
SELECT 65 * + MIN ( DISTINCT 48 ) AS col2
----
3120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4837
SELECT 96 DIV + - COUNT( * ) - - 18
----
-78

skipif mysql # not compatible
query I rowsort label-4837
SELECT 96 / + - COUNT ( * ) - - 18
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL - CASE 68 WHEN + + COUNT( DISTINCT 67 ) * + 43 THEN - - 24 END - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL - CASE 68 WHEN + + COUNT ( DISTINCT 67 ) * + 43 THEN - - 24 END - + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT - CASE - 97 WHEN + CASE + 35 WHEN + COUNT( * ) / 27 * + - 68 THEN - 73 * + 50 WHEN + 3 THEN NULL ELSE NULL END * - 76 THEN 4 WHEN 53 * - - 15 THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4839
SELECT - CASE - 97 WHEN + CASE + 35 WHEN + COUNT ( * ) / 27 * + - 68 THEN - 73 * + 50 WHEN + 3 THEN NULL ELSE NULL END * - 76 THEN 4 WHEN 53 * - - 15 THEN COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT - NULLIF ( - COUNT( * ), - - 94 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4840
SELECT - NULLIF ( - COUNT ( * ), - - 94 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 64 * + + 57 AS col2
----
3648

query I rowsort
SELECT DISTINCT 76 * + - 48 * + 32 AS col0
----
-116736

query I rowsort
SELECT 12 * - - 79 col2
----
948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4844
SELECT 23 DIV 21 + + ( + MIN( + 58 ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4844
SELECT 23 / 21 + + ( + MIN ( + 58 ) ) AS col0
----
59

query I rowsort
SELECT 37 * + 28 AS col0
----
1036

onlyif mysql # aggregate syntax: 
query III rowsort label-4846
SELECT ALL - 73 AS col2, + 9 * + 18, COUNT( * ) AS col2
----
-73
162
1

skipif mysql # not compatible
query III rowsort label-4846
SELECT ALL - 73 AS col2, + 9 * + 18, COUNT ( * ) AS col2
----
-73
162
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4847
SELECT 44 DIV + - CAST( 8 AS SIGNED ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4847
SELECT 44 / + - CAST ( 8 AS INTEGER ) AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4848
SELECT ( + CASE WHEN NOT CAST( COUNT( * ) AS DECIMAL ) IS NOT NULL THEN - - 96 * MIN( NULLIF ( + 40, + 4 ) ) END ) + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT ( + CASE WHEN NOT CAST ( COUNT ( * ) AS REAL ) IS NOT NULL THEN - - 96 * MIN ( NULLIF ( + 40, + 4 ) ) END ) + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL - MIN( ALL 46 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL - MIN ( ALL 46 ) AS col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4850
SELECT COUNT( * ) DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4850
SELECT COUNT ( * ) / 53 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4851
SELECT - 96 * COUNT( * ) * + COALESCE ( 80, COALESCE ( 37, - ( - 90 ) ) ) * - 22 + - - COUNT( - 56 ) DIV 11
----
168960

skipif mysql # not compatible
query I rowsort label-4851
SELECT - 96 * COUNT ( * ) * + COALESCE ( 80, COALESCE ( 37, - ( - 90 ) ) ) * - 22 + - - COUNT ( - 56 ) / 11
----
168960

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL ( + + 66 ) + 96 * - COUNT( * ) * - - 17 + - + 35 AS col2
----
-1601

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL ( + + 66 ) + 96 * - COUNT ( * ) * - - 17 + - + 35 AS col2
----
-1601

onlyif mysql # DIV for integer division: 
query I rowsort label-4853
SELECT DISTINCT 62 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT 62 / 32
----
1

query I rowsort
SELECT ALL - 88 + + 67 + + 47 - 28
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4855
SELECT COUNT( * ) DIV + 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4855
SELECT COUNT ( * ) / + 56 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT 62 - - 79 * + + COUNT( * ) - - + 34 col2
----
175

skipif mysql # not compatible
query I rowsort label-4856
SELECT 62 - - 79 * + + COUNT ( * ) - - + 34 col2
----
175

query I rowsort
SELECT 68 * + - 48
----
-3264

query I rowsort
SELECT DISTINCT + 81 + - 97
----
-16

query I rowsort
SELECT ALL - 23 + 66 * 49
----
3211

query I rowsort
SELECT DISTINCT 86 + - 94 + 49
----
41

query I rowsort
SELECT ALL + 40 - 24 col2
----
16

query II rowsort
SELECT DISTINCT NULLIF ( - 6, 72 ) AS col0, - 57 AS col0
----
-6
-57

query I rowsort
SELECT ALL + CASE 22 WHEN 99 * + + 48 THEN + 51 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4864
SELECT 21 + - 0 DIV - ( - + 20 )
----
21

skipif mysql # not compatible
query I rowsort label-4864
SELECT 21 + - 0 / - ( - + 20 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4865
SELECT + COUNT( * ) + - CAST( 54 AS SIGNED ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4865
SELECT + COUNT ( * ) + - CAST ( 54 AS INTEGER ) AS col1
----
-53

query II rowsort
SELECT 87, 91 AS col1
----
87
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4867
SELECT ALL MIN( DISTINCT + - 37 ) * - 72 + + COALESCE ( + MIN( DISTINCT - 35 ), + COUNT( * ) * - - 67 * + MAX( ALL - CAST( NULL AS SIGNED ) ) * + + MIN( + 8 ) * - CAST( - 60 AS SIGNED ) ) AS col2
----
2629

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL MIN ( DISTINCT + - 37 ) * - 72 + + COALESCE ( + MIN ( DISTINCT - 35 ), + COUNT ( * ) * - - 67 * + MAX ( ALL - CAST ( NULL AS INTEGER ) ) * + + MIN ( + 8 ) * - CAST ( - 60 AS INTEGER ) ) AS col2
----
2629

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT 90 + - MIN( ALL - 61 ) + - COALESCE ( + 82, 42 ) col1
----
69

skipif mysql # not compatible
query I rowsort label-4868
SELECT 90 + - MIN ( ALL - 61 ) + - COALESCE ( + 82, 42 ) col1
----
69

query I rowsort
SELECT ALL - - 65 * 60 AS col2
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL MAX( DISTINCT 28 )
----
28

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL MAX ( DISTINCT 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4871
SELECT NULLIF ( + 48, - COUNT( * ) ) * - 23 * + - 37 * 63 + - 77 + + 68 / - MAX( + 31 ) * + + 4 + - 29 + 5 - + 52 * - - 50 / + 81 * 69 * - CAST( NULL AS SIGNED ) * + + 18 + + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT NULLIF ( + 48, - COUNT ( * ) ) * - 23 * + - 37 * 63 + - 77 + + 68 / - MAX ( + 31 ) * + + 4 + - 29 + 5 - + 52 * - - 50 / + 81 * 69 * - CAST ( NULL AS INTEGER ) * + + 18 + + - 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4872
SELECT 21 * - 82 AS col0, COALESCE ( - 34, - 95 + - 90 + + 31 * + 25 * + MAX( DISTINCT + 77 ) + + - 83, - 7 ) * - ( - MIN( + - 49 ) )
----
-1722
1666

skipif mysql # not compatible
query II rowsort label-4872
SELECT 21 * - 82 AS col0, COALESCE ( - 34, - 95 + - 90 + + 31 * + 25 * + MAX ( DISTINCT + 77 ) + + - 83, - 7 ) * - ( - MIN ( + - 49 ) )
----
-1722
1666

query II rowsort
SELECT ALL - 57 AS col1, + 2
----
-57
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4874
SELECT 2 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-4874
SELECT 2 / + 62
----
0

query I rowsort
SELECT 11 * + 63
----
693

query I rowsort
SELECT 92 * + + 59 + + + 70 * - 0 AS col0
----
5428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT ALL 57 * NULLIF ( + 70, + 65 * - 27 + - CAST( NULL AS SIGNED ) ) AS col1
----
3990

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL 57 * NULLIF ( + 70, + 65 * - 27 + - CAST ( NULL AS INTEGER ) ) AS col1
----
3990

query I rowsort
SELECT ALL - 34 * 12 + - 93 * + 28 col1
----
-3012

query I rowsort
SELECT ALL - 56 * ( + 0 ) + - 33
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4880
SELECT + MAX( + 51 ), 85 AS col1
----
51
85

skipif mysql # not compatible
query II rowsort label-4880
SELECT + MAX ( + 51 ), 85 AS col1
----
51
85

query I rowsort
SELECT 37 * + - 14
----
-518

query I rowsort
SELECT ALL 48 * 4 + 9 AS col2
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT MAX( + ( - 27 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-4883
SELECT MAX ( + ( - 27 ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL 22 * + SUM( DISTINCT 54 )
----
1188

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL 22 * + SUM ( DISTINCT 54 )
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT + MIN( ALL ( - 31 ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4885
SELECT + MIN ( ALL ( - 31 ) ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL MAX( - 46 ) * + + 19 * - 52 AS col0
----
45448

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL MAX ( - 46 ) * + + 19 * - 52 AS col0
----
45448

query I rowsort
SELECT + 62 * + 56 col0
----
3472

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT MAX( - + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4888
SELECT MAX ( - + 35 )
----
-35

query I rowsort
SELECT - ( 17 ) + + 51 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT COUNT( - - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-4890
SELECT COUNT ( - - 18 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT DISTINCT - COUNT( * ) - + 52
----
-53

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT - COUNT ( * ) - + 52
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4892
SELECT ALL 31 DIV - - 65
----
0

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL 31 / - - 65
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4893
SELECT + COALESCE ( + 3, - CASE - 99 WHEN - 33 THEN - 51 ELSE NULL END * 63 * + - 64 - 75, - 22 - - + CASE + COUNT( * ) WHEN + + SUM( 82 ) * 76 THEN NULL WHEN + 11 + NULLIF ( - SUM( ALL + - 16 ), - 10 DIV 78 + 61 + 18 * COUNT( ALL + 32 ) ) DIV + 82 + + 7 THEN + + 63 + 51 ELSE NULL END + 79 + + 35 DIV + 68 ) + 79 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4893
SELECT + COALESCE ( + 3, - CASE - 99 WHEN - 33 THEN - 51 ELSE NULL END * 63 * + - 64 - 75, - 22 - - + CASE + COUNT ( * ) WHEN + + SUM ( 82 ) * 76 THEN NULL WHEN + 11 + NULLIF ( - SUM ( ALL + - 16 ), - 10 / 78 + 61 + 18 * COUNT ( ALL + 32 ) ) / + 82 + + 7 THEN + + 63 + 51 ELSE NULL END + 79 + + 35 / + 68 ) + 79 AS col1
----
82

query I rowsort
SELECT + NULLIF ( - + 39, - 63 + 10 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT DISTINCT - + MIN( - + 70 ) - - 12 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT - + MIN ( - + 70 ) - - 12 AS col1
----
82

query I rowsort
SELECT ALL + - 34 * 57 * - ( 1 ) * - 52 AS col1
----
-100776

onlyif mysql # DIV for integer division: 
query I rowsort label-4897
SELECT + + 6 * 72 DIV - COALESCE ( - 54, - 6 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4897
SELECT + + 6 * 72 / - COALESCE ( - 54, - 6 ) AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT ALL + 0 DIV - 84 col2
----
0

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL + 0 / - 84 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT - + 56 DIV - - 60 + 15
----
15

skipif mysql # not compatible
query I rowsort label-4899
SELECT - + 56 / - - 60 + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT + - COUNT( * ) * - 75
----
75

skipif mysql # not compatible
query I rowsort label-4900
SELECT + - COUNT ( * ) * - 75
----
75

query II rowsort
SELECT 14 AS col1, - NULLIF ( 16, + 78 / - - 17 - - + 33 + - - 77 ) * + + 9 AS col0
----
14
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT DISTINCT - NULLIF ( + 93, MIN( 8 ) ) * - 57
----
5301

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT - NULLIF ( + 93, MIN ( 8 ) ) * - 57
----
5301

query II rowsort
SELECT DISTINCT + 30 AS col2, 27 * 67 AS col0
----
30
1809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT ALL 5 * CAST( NULL AS SIGNED ) + - 93 * + - 22 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL 5 * CAST ( NULL AS INTEGER ) + - 93 * + - 22 * 52
----
NULL

query I rowsort
SELECT - + 4 * - 3
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL - MAX( + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL - MAX ( + 30 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT DISTINCT - ( 85 ) + - 5 * + CAST( + - 61 AS SIGNED ) AS col0
----
220

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT - ( 85 ) + - 5 * + CAST ( + - 61 AS INTEGER ) AS col0
----
220

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4908
SELECT DISTINCT + 6 DIV - 30 + 90 AS col2, COUNT( * ) col1
----
90
1

skipif mysql # not compatible
query II rowsort label-4908
SELECT DISTINCT + 6 / - 30 + 90 AS col2, COUNT ( * ) col1
----
90
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT DISTINCT + ( + SUM( ALL 23 ) ) * - 14 * 19 * 87 * + - 13
----
6919458

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT + ( + SUM ( ALL 23 ) ) * - 14 * 19 * 87 * + - 13
----
6919458

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4910
SELECT ALL + ( + + 13 ) AS col2, CAST( NULL AS DECIMAL ) AS col0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-4910
SELECT ALL + ( + + 13 ) AS col2, CAST ( NULL AS REAL ) AS col0
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT 25 * - - 22 + - 0 + - 24 * + - COUNT( * )
----
574

skipif mysql # not compatible
query I rowsort label-4911
SELECT 25 * - - 22 + - 0 + - 24 * + - COUNT ( * )
----
574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4912
SELECT + 92 - - 49 DIV 8 * ( 6 ) - - NULLIF ( - COALESCE ( 34, 52 ), - - 63 * + CAST( NULL AS SIGNED ) + COUNT( * ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4912
SELECT + 92 - - 49 / 8 * ( 6 ) - - NULLIF ( - COALESCE ( 34, 52 ), - - 63 * + CAST ( NULL AS INTEGER ) + COUNT ( * ) ) AS col2
----
94

query II rowsort
SELECT ( 33 ) AS col2, 10
----
33
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4914
SELECT - SUM( ALL + + 0 ) * - 55 * + + 48 + - - 75 + - + 84 * - 27 - 39 + 58 DIV - 18
----
2301

skipif mysql # not compatible
query I rowsort label-4914
SELECT - SUM ( ALL + + 0 ) * - 55 * + + 48 + - - 75 + - + 84 * - 27 - 39 + 58 / - 18
----
2301

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4915
SELECT ALL + CAST( + - 36 AS SIGNED ) DIV + 32
----
-1

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL + CAST ( + - 36 AS INTEGER ) / + 32
----
-1

query I rowsort
SELECT - 80 * - - 55 AS col2
----
-4400

query I rowsort
SELECT ( + 85 ) col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4918
SELECT DISTINCT 9 DIV + 75, COUNT( + 52 ) + - + COALESCE ( - - COUNT( * ), + 97 * - 74, + COUNT( * ) )
----
0
0

skipif mysql # not compatible
query II rowsort label-4918
SELECT DISTINCT 9 / + 75, COUNT ( + 52 ) + - + COALESCE ( - - COUNT ( * ), + 97 * - 74, + COUNT ( * ) )
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT + COUNT( * ) * - 47 - + 92 + 92
----
-47

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT + COUNT ( * ) * - 47 - + 92 + 92
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4920
SELECT ALL + CAST( NULLIF ( 2, + + MIN( DISTINCT 66 ) ) AS SIGNED ), + 69 * + - 17 + COUNT( * ) AS col1
----
2
-1172

skipif mysql # not compatible
query II rowsort label-4920
SELECT ALL + CAST ( NULLIF ( 2, + + MIN ( DISTINCT 66 ) ) AS INTEGER ), + 69 * + - 17 + COUNT ( * ) AS col1
----
2
-1172

onlyif mysql # aggregate syntax: 
query II rowsort label-4921
SELECT ( - COUNT( * ) ) AS col2, 58 AS col2
----
-1
58

skipif mysql # not compatible
query II rowsort label-4921
SELECT ( - COUNT ( * ) ) AS col2, 58 AS col2
----
-1
58

query I rowsort
SELECT - 98 * - 69 + - + 36
----
6726

query I rowsort
SELECT ALL - - 95 * 28 - - 39
----
2699

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT DISTINCT COALESCE ( 34, - - 39 + + - MIN( ALL + 1 ) ) * + 35 AS col0
----
1190

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT COALESCE ( 34, - - 39 + + - MIN ( ALL + 1 ) ) * + 35 AS col0
----
1190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4925
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * + + ( - - ( 76 ) )
----
76

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * + + ( - - ( 76 ) )
----
76

query I rowsort
SELECT - + 66 + + 98 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT + + 60 * - 55 + - + 52 + - 28 + + + NULLIF ( + ( COUNT( * ) ), + - MIN( ALL + 68 ) ) AS col1
----
-3379

skipif mysql # not compatible
query I rowsort label-4927
SELECT + + 60 * - 55 + - + 52 + - 28 + + + NULLIF ( + ( COUNT ( * ) ), + - MIN ( ALL + 68 ) ) AS col1
----
-3379

query I rowsort
SELECT + + 4 col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT - + 86 * + + MAX( DISTINCT - 59 ) + - 60
----
5014

skipif mysql # not compatible
query I rowsort label-4929
SELECT - + 86 * + + MAX ( DISTINCT - 59 ) + - 60
----
5014

query I rowsort
SELECT + 92 * - - 82 + + 25 + - - ( + 71 )
----
7640

query I rowsort
SELECT + 62 * + 53 AS col2
----
3286

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT DISTINCT + COALESCE ( + 81, 52 * + - COUNT( + 30 ) * 80 )
----
81

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT + COALESCE ( + 81, 52 * + - COUNT ( + 30 ) * 80 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - MAX( - + 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4933
SELECT - MAX ( - + 90 ) AS col1
----
90

query I rowsort
SELECT + 19 + + 90 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT ALL 98 * - 97 * ( - 49 ) + - ( + + COUNT( * ) )
----
465793

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL 98 * - 97 * ( - 49 ) + - ( + + COUNT ( * ) )
----
465793

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT + - 58 * COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4936
SELECT + - 58 * COUNT ( * ) AS col2
----
-58

query I rowsort
SELECT ALL - 53 + 84 + - 26
----
5

query II rowsort
SELECT + 81 + - 98 col0, + 13 + 87 - 41
----
-17
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT + 51 - + COUNT( * ) * - 0 * + COUNT( + 38 ) - NULLIF ( - 20, + 54 + - + COALESCE ( 63, + + 35 * - 49 ) - - ( - 41 ) - + AVG ( 93 ) ) + + 32 + + 11 * - CASE + - 72 WHEN + + 54 THEN - 76 * CAST( + 47 AS SIGNED ) - - + 65 + 10 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT + 51 - + COUNT ( * ) * - 0 * + COUNT ( + 38 ) - NULLIF ( - 20, + 54 + - + COALESCE ( 63, + + 35 * - 49 ) - - ( - 41 ) - + AVG ( 93 ) ) + + 32 + + 11 * - CASE + - 72 WHEN + + 54 THEN - 76 * CAST ( + 47 AS INTEGER ) - - + 65 + 10 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT - CAST( AVG ( DISTINCT - 94 ) AS SIGNED ) * 90 * NULLIF ( 74, - 29 * 83 - + 9 )
----
626040

skipif mysql # not compatible
query I rowsort label-4940
SELECT - CAST ( AVG ( DISTINCT - 94 ) AS INTEGER ) * 90 * NULLIF ( 74, - 29 * 83 - + 9 )
----
626040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4941
SELECT ALL COUNT( * ) + + 10 + + + CASE - 7 WHEN - + ( - - 57 ) THEN NULL ELSE + ( - + 21 ) + + 96 * - 53 * - ( - 96 ) END * - COALESCE ( SUM( ALL 49 ), - 2, + - ( - AVG ( DISTINCT + 16 ) ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL COUNT ( * ) + + 10 + + + CASE - 7 WHEN - + ( - - 57 ) THEN NULL ELSE + ( - + 21 ) + + 96 * - 53 * - ( - 96 ) END * - COALESCE ( SUM ( ALL 49 ), - 2, + - ( - AVG ( DISTINCT + 16 ) ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 53 * - 57 AS col0
----
-3021

query I rowsort
SELECT + 70 + - + 15 col0
----
55

query I rowsort
SELECT ALL 52 + 84 AS col2
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-4945
SELECT - 23 + - 13 DIV - 16 * + + 44 - - 53
----
30

skipif mysql # not compatible
query I rowsort label-4945
SELECT - 23 + - 13 / - 16 * + + 44 - - 53
----
30

query I rowsort
SELECT ALL ( - - 86 ) AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT ALL 5 + COUNT( DISTINCT - 18 ) DIV - + 50 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL 5 + COUNT ( DISTINCT - 18 ) / - + 50 AS col1
----
5

query II rowsort
SELECT ALL 68 AS col2, + 34 + + COALESCE ( + 8, 53 )
----
68
42

query II rowsort
SELECT ( - 35 ) * + 62 AS col2, + 22 AS col2
----
-2170
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4950
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - 33 AS col0, + 84 AS col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-4950
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - 33 AS col0, + 84 AS col2
----
NULL
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4951
SELECT DISTINCT + 2 DIV + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT + 2 / + COUNT ( * )
----
2

query I rowsort
SELECT 43 * + 27
----
1161

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT SUM( 98 ) * + 79
----
7742

skipif mysql # not compatible
query I rowsort label-4953
SELECT SUM ( 98 ) * + 79
----
7742

query I rowsort
SELECT DISTINCT + 84 * - 91
----
-7644

query II rowsort
SELECT DISTINCT - 0 AS col1, + 93
----
0
93

query I rowsort
SELECT DISTINCT + 85 * 97
----
8245

onlyif mysql # aggregate syntax: 
query II rowsort label-4957
SELECT ALL - ( - ( - 27 ) ) AS col2, - COUNT( * ) * + 62 + + MIN( - 8 )
----
-27
-70

skipif mysql # not compatible
query II rowsort label-4957
SELECT ALL - ( - ( - 27 ) ) AS col2, - COUNT ( * ) * + 62 + + MIN ( - 8 )
----
-27
-70

query II rowsort
SELECT - 98 col1, - ( 19 ) - + - 84 AS col1
----
-98
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4959
SELECT ALL - - CASE 56 WHEN COUNT( * ) * + 59 * + 66 * AVG ( + 1 ) + - + 0 THEN NULL ELSE + 60 DIV - 79 END
----
0

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL - - CASE 56 WHEN COUNT ( * ) * + 59 * + 66 * AVG ( + 1 ) + - + 0 THEN NULL ELSE + 60 / - 79 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4960
SELECT + 63 * CAST( + + 70 AS SIGNED ) * 13, 16 AS col2
----
57330
16

skipif mysql # not compatible
query II rowsort label-4960
SELECT + 63 * CAST ( + + 70 AS INTEGER ) * 13, 16 AS col2
----
57330
16

query II rowsort
SELECT + - 16, 62 AS col1
----
-16
62

query I rowsort
SELECT - 37 * NULLIF ( + - 67, + 27 )
----
2479

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT - CASE - - 82 WHEN 64 THEN - 93 WHEN + COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT - CASE - - 82 WHEN 64 THEN - 93 WHEN + COUNT ( * ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4964
SELECT + NULLIF ( + - COUNT( * ), - - CAST( NULL AS SIGNED ) ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-4964
SELECT + NULLIF ( + - COUNT ( * ), - - CAST ( NULL AS INTEGER ) ) / - 61
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4965
SELECT ALL + 17 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL + 17 / - 96
----
0

query I rowsort
SELECT ALL - + 20 col2
----
-20

query I rowsort
SELECT + CASE + 76 WHEN - 13 * + - 13 - ( + 7 ) THEN + 16 END
----
NULL

query I rowsort
SELECT ALL - ( + + 45 ) + 71
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4969
SELECT ALL + 99 + - + 64 * + + 41 / + 19 * - - CAST( NULL AS SIGNED ) + COUNT( ALL + 97 ) + + CAST( + COALESCE ( NULLIF ( - 89, - 93 ), 60, AVG ( 82 ) ) AS SIGNED ) / 92 + 57 + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL + 99 + - + 64 * + + 41 / + 19 * - - CAST ( NULL AS INTEGER ) + COUNT ( ALL + 97 ) + + CAST ( + COALESCE ( NULLIF ( - 89, - 93 ), 60, AVG ( 82 ) ) AS INTEGER ) / 92 + 57 + + 29
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4970
SELECT SUM( DISTINCT 14 ) * - - 86 AS col2, 37 col0
----
1204
37

skipif mysql # not compatible
query II rowsort label-4970
SELECT SUM ( DISTINCT 14 ) * - - 86 AS col2, 37 col0
----
1204
37

query I rowsort
SELECT + 35 + - - 91 * ( + 5 )
----
490

query I rowsort
SELECT DISTINCT - 66 + - 83 * + 0 + + - 90
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-4973
SELECT 65 + 1 * - + 86 + - 1 AS col1, 80 + SUM( + 5 )
----
-22
85

skipif mysql # not compatible
query II rowsort label-4973
SELECT 65 + 1 * - + 86 + - 1 AS col1, 80 + SUM ( + 5 )
----
-22
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4974
SELECT ALL 23 * 56 + - + 63, COUNT( * ) * COUNT( * ) AS col0
----
1225
1

skipif mysql # not compatible
query II rowsort label-4974
SELECT ALL 23 * 56 + - + 63, COUNT ( * ) * COUNT ( * ) AS col0
----
1225
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT COALESCE ( + CAST( NULL AS SIGNED ), + 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4975
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), + 86 ) AS col1
----
86

query I rowsort
SELECT + 62 + - 83 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT + 1 * + 53 * + 23 * - + CASE - ( + NULLIF ( - 76, - 88 ) ) WHEN COUNT( * ) * + 86 THEN + ( + 88 ) WHEN + + 38 * - ( - - 75 ) THEN + 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4977
SELECT + 1 * + 53 * + 23 * - + CASE - ( + NULLIF ( - 76, - 88 ) ) WHEN COUNT ( * ) * + 86 THEN + ( + 88 ) WHEN + + 38 * - ( - - 75 ) THEN + 29 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4978
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 73
----
NULL

query I rowsort
SELECT ( - 45 ) * - - 10
----
-450

query I rowsort
SELECT ALL 35 + + 20 + - + 95
----
-40

query I rowsort
SELECT DISTINCT 64 + + 25 AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4982
SELECT 53 DIV - + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4982
SELECT 53 / - + 55 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT ALL 99 DIV + + 20
----
4

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL 99 / + + 20
----
4

query I rowsort
SELECT ALL 34 * - 28
----
-952

query I rowsort
SELECT 36 * 65 AS col0
----
2340

query I rowsort
SELECT 43 - + - 34
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT 78 * + COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4987
SELECT 78 * + COUNT ( * ) AS col2
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT ( - 5 ) - + COUNT( 10 ) DIV - 82 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4988
SELECT ( - 5 ) - + COUNT ( 10 ) / - 82 AS col2
----
-5

query I rowsort
SELECT ALL ( - ( + - ( - 64 ) ) ) * - 65 AS col1
----
4160

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL - ( - CASE - COUNT( * ) WHEN 92 / + 4 THEN - 59 WHEN 78 + + ( + COUNT( * ) ) * - 90 + + 2 THEN - 11 + - + 84 * 21 WHEN - 66 + - 91 + ( - ( 43 ) ) * MAX( + 61 ) * - + CASE 6 WHEN 14 THEN ( - + 47 ) + + 56 END - + 32 THEN COUNT( * ) + 53 + + 57 ELSE - - 40 END )
----
40

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL - ( - CASE - COUNT ( * ) WHEN 92 / + 4 THEN - 59 WHEN 78 + + ( + COUNT ( * ) ) * - 90 + + 2 THEN - 11 + - + 84 * 21 WHEN - 66 + - 91 + ( - ( 43 ) ) * MAX ( + 61 ) * - + CASE 6 WHEN 14 THEN ( - + 47 ) + + 56 END - + 32 THEN COUNT ( * ) + 53 + + 57 ELSE - - 40 END )
----
40

query I rowsort
SELECT 78 * 12 * + - 73
----
-68328

query I rowsort
SELECT + 39 / CASE + + 18 WHEN COALESCE ( + 84, - + 93 ) / - 47 + - + 65 THEN + 68 END + + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT + CASE - 38 WHEN + - 97 + - SUM( ALL + - 99 ) + + 31 THEN NULL WHEN + + 17 + ( COUNT( * ) ) THEN + 90 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT + CASE - 38 WHEN + - 97 + - SUM ( ALL + - 99 ) + + 31 THEN NULL WHEN + + 17 + ( COUNT ( * ) ) THEN + 90 END AS col1
----
NULL

query I rowsort
SELECT ( - 44 ) * - - 66 AS col0
----
-2904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT + CAST( NULL AS SIGNED ) * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT + CAST ( NULL AS INTEGER ) * + 98
----
NULL

query I rowsort
SELECT ALL - + 47 + - + 57
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4997
SELECT + 74 + - NULLIF ( + COUNT( * ), MAX( ALL 24 ) * - COUNT( * ) ) + - 53 DIV 72 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4997
SELECT + 74 + - NULLIF ( + COUNT ( * ), MAX ( ALL 24 ) * - COUNT ( * ) ) + - 53 / 72 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4998
SELECT ALL ( - 38 ) / 2 + - CAST( NULL AS SIGNED ) * - 71, + 1 col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4998
SELECT ALL ( - 38 ) / 2 + - CAST ( NULL AS INTEGER ) * - 71, + 1 col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT - 83 * - COUNT( * ) + 7 + 93 + - - 0 col2
----
183

skipif mysql # not compatible
query I rowsort label-4999
SELECT - 83 * - COUNT ( * ) + 7 + 93 + - - 0 col2
----
183

query I rowsort
SELECT DISTINCT - 61 + - - 63
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5001
SELECT ALL - + 56 + 68 DIV + COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL - + 56 + 68 / + COUNT ( * ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5002
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL - + MAX( 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL - + MAX ( 43 ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT DISTINCT - + CAST( CAST( + 29 AS SIGNED ) AS SIGNED ) + - 2 + + - 81 + + 71
----
-41

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT - + CAST ( CAST ( + 29 AS INTEGER ) AS INTEGER ) + - 2 + + - 81 + + 71
----
-41

query I rowsort
SELECT ALL - - 30 + 81
----
111

query I rowsort
SELECT ALL ( - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT - ( - 7 ) * - 6 * + COUNT( * ) + 53
----
11

skipif mysql # not compatible
query I rowsort label-5007
SELECT - ( - 7 ) * - 6 * + COUNT ( * ) + 53
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT COUNT( * ) * 8 AS col2, - 79 * 53 + + ( - ( + + COUNT( * ) ) ) - ( + + 25 ) + - 2 * + 10 * - 19 + + 71 * - + 1 * + + ( + - 76 ) * + + 3 AS col2
----
8
12355

skipif mysql # not compatible
query II rowsort label-5008
SELECT COUNT ( * ) * 8 AS col2, - 79 * 53 + + ( - ( + + COUNT ( * ) ) ) - ( + + 25 ) + - 2 * + 10 * - 19 + + 71 * - + 1 * + + ( + - 76 ) * + + 3 AS col2
----
8
12355

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT SUM( ALL + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT SUM ( ALL + 60 )
----
60

query I rowsort
SELECT ALL - 92 + - 38 - - 64 AS col0
----
-66

query I rowsort
SELECT ALL 94 * 75 * - 34 * - + 74 AS col1
----
17737800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT DISTINCT - 20 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT - 20 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT + 69 - - - CASE - - 94 WHEN - + COALESCE ( + 54, + - CASE + 21 WHEN + + 40 THEN NULL WHEN - - 63 * - - COALESCE ( 39, - 36 ) THEN - 42 ELSE + - 87 END * + + CASE 67 WHEN + MAX( ALL NULLIF ( - 12, - 63 ) ) THEN NULL ELSE + 83 / + 97 * + 18 END ) * - 42 + - - NULLIF ( 67, - 61 + + CASE - + 27 WHEN + - 25 THEN NULL WHEN ( + 61 ) THEN + 87 / + - 1 - 62 / - COUNT( * ) ELSE NULL END ) THEN 26 * 7 ELSE COUNT( * ) END
----
68

skipif mysql # not compatible
query I rowsort label-5013
SELECT + 69 - - - CASE - - 94 WHEN - + COALESCE ( + 54, + - CASE + 21 WHEN + + 40 THEN NULL WHEN - - 63 * - - COALESCE ( 39, - 36 ) THEN - 42 ELSE + - 87 END * + + CASE 67 WHEN + MAX ( ALL NULLIF ( - 12, - 63 ) ) THEN NULL ELSE + 83 / + 97 * + 18 END ) * - 42 + - - NULLIF ( 67, - 61 + + CASE - + 27 WHEN + - 25 THEN NULL WHEN ( + 61 ) THEN + 87 / + - 1 - 62 / - COUNT ( * ) ELSE NULL END ) THEN 26 * 7 ELSE COUNT ( * ) END
----
68

query II rowsort
SELECT DISTINCT 16, 86 AS col2
----
16
86

query I rowsort
SELECT + 16 * 6 AS col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5016
SELECT ALL - 2 * + COUNT( * ) DIV + COALESCE ( + 48, + - 95 * + 71, COALESCE ( + 93, 33 * + - COUNT( * ) + SUM( - - 8 ) + - + 26, - - ( + 37 ) + 96 ) + + 47 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - 2 * + COUNT ( * ) / + COALESCE ( + 48, + - 95 * + 71, COALESCE ( + 93, 33 * + - COUNT ( * ) + SUM ( - - 8 ) + - + 26, - - ( + 37 ) + 96 ) + + 47 ) AS col0
----
0

query I rowsort
SELECT DISTINCT COALESCE ( - 48, - + 91 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5018
SELECT ALL 80 DIV + 94 * - + 28
----
0

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL 80 / + 94 * - + 28
----
0

query I rowsort
SELECT + 86 + - + ( + + 47 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT DISTINCT 9 DIV + + 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT 9 / + + 87 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5021
SELECT + CAST( COUNT( * ) AS SIGNED ) + 88 * + 56 AS col2
----
4929

skipif mysql # not compatible
query I rowsort label-5021
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + 88 * + 56 AS col2
----
4929

onlyif mysql # aggregate syntax: 
query II rowsort label-5022
SELECT + 50 * - COALESCE ( - + 44, - 49, + 23 * - 23 ) AS col2, + COUNT( * ) + - + 26 - - - 36 * + COUNT( * ) AS col1
----
2200
-61

skipif mysql # not compatible
query II rowsort label-5022
SELECT + 50 * - COALESCE ( - + 44, - 49, + 23 * - 23 ) AS col2, + COUNT ( * ) + - + 26 - - - 36 * + COUNT ( * ) AS col1
----
2200
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-5023
SELECT + 1 DIV + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5023
SELECT + 1 / + 63 AS col2
----
0

query I rowsort
SELECT DISTINCT + 34 * 37 AS col0
----
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL 16 * + COUNT( * ) + - 40
----
-24

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL 16 * + COUNT ( * ) + - 40
----
-24

query I rowsort
SELECT + 58 * - 10
----
-580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5027
SELECT + MAX( DISTINCT + COALESCE ( - 11, + + CAST( NULL AS SIGNED ) ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5027
SELECT + MAX ( DISTINCT + COALESCE ( - 11, + + CAST ( NULL AS INTEGER ) ) ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5028
SELECT DISTINCT - ( - + 11 ) * - 86 + - 65 + + 97 + - 9 - + 18 DIV - 87 + 56 + - 91 + - CASE + 81 WHEN + 38 DIV + 87 + 57 + - ( - + 52 ) DIV - 18 THEN CASE - 33 WHEN + ( 75 ) THEN 41 ELSE - + 75 END * COALESCE ( 80, - 36 ) + - + 40 WHEN - 34 THEN NULL ELSE - + 15 + + 5 END * - ( 85 ) * 12 * + COALESCE ( COUNT( * ), COUNT( * ) ) * + 98 AS col1
----
-1000558

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT - ( - + 11 ) * - 86 + - 65 + + 97 + - 9 - + 18 / - 87 + 56 + - 91 + - CASE + 81 WHEN + 38 / + 87 + 57 + - ( - + 52 ) / - 18 THEN CASE - 33 WHEN + ( 75 ) THEN 41 ELSE - + 75 END * COALESCE ( 80, - 36 ) + - + 40 WHEN - 34 THEN NULL ELSE - + 15 + + 5 END * - ( 85 ) * 12 * + COALESCE ( COUNT ( * ), COUNT ( * ) ) * + 98 AS col1
----
-1000558

onlyif mysql # aggregate syntax: 
query II rowsort label-5029
SELECT 61, + MIN( DISTINCT + 22 ) AS col0
----
61
22

skipif mysql # not compatible
query II rowsort label-5029
SELECT 61, + MIN ( DISTINCT + 22 ) AS col0
----
61
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5030
SELECT ALL COUNT( * ) * CAST( + 42 AS SIGNED ) + + - 72 * - COUNT( * ) * 44
----
3210

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL COUNT ( * ) * CAST ( + 42 AS INTEGER ) + + - 72 * - COUNT ( * ) * 44
----
3210

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT + - COUNT( DISTINCT - + 94 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT + - COUNT ( DISTINCT - + 94 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5032
SELECT + CASE - ( + NULLIF ( ( - COUNT( * ) ), - COUNT( * ) - - ( 7 ) ) ) WHEN - CAST( - 44 AS SIGNED ) + - 92 THEN NULL WHEN + + 79 THEN + 10 * - 50 / + 79 * ( - 57 ) - - + 35 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT + CASE - ( + NULLIF ( ( - COUNT ( * ) ), - COUNT ( * ) - - ( 7 ) ) ) WHEN - CAST ( - 44 AS INTEGER ) + - 92 THEN NULL WHEN + + 79 THEN + 10 * - 50 / + 79 * ( - 57 ) - - + 35 END AS col0
----
NULL

query I rowsort
SELECT + - 77 * + 24 * 64 AS col1
----
-118272

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT + + MIN( DISTINCT + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-5034
SELECT + + MIN ( DISTINCT + 44 )
----
44

query I rowsort
SELECT DISTINCT + - ( + 72 ) * - 68 + + - 91 AS col2
----
4805

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL - 36 * - - COUNT( * ) + - 37
----
-73

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL - 36 * - - COUNT ( * ) + - 37
----
-73

query I rowsort
SELECT - + 72 * - - 19 - + 35
----
-1403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5038
SELECT - 2 DIV - 6 * + + 79 * - - 79 + + - 36 + - + COUNT( * ) - SUM( ALL - + 95 ) * COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5038
SELECT - 2 / - 6 * + + 79 * - - 79 + + - 36 + - + COUNT ( * ) - SUM ( ALL - + 95 ) * COUNT ( * ) AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5039
SELECT DISTINCT + CAST( NULL AS SIGNED ), - 14 * + - 33 AS col2
----
NULL
462

skipif mysql # not compatible
query II rowsort label-5039
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - 14 * + - 33 AS col2
----
NULL
462

onlyif mysql # aggregate syntax: 
query II rowsort label-5040
SELECT ALL + COUNT( * ), 81 col1
----
1
81

skipif mysql # not compatible
query II rowsort label-5040
SELECT ALL + COUNT ( * ), 81 col1
----
1
81

query I rowsort
SELECT DISTINCT - 88 * + 16 AS col0
----
-1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5042
SELECT - CAST( NULL AS SIGNED ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5042
SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * )
----
NULL
1

query I rowsort
SELECT - 93 + + 34 col1
----
-59

query I rowsort
SELECT - 64 * - 86 * 43
----
236672

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT - COUNT( - 92 ) + + 94
----
93

skipif mysql # not compatible
query I rowsort label-5045
SELECT - COUNT ( - 92 ) + + 94
----
93

query I rowsort
SELECT - 46 + - 39
----
-85

query I rowsort
SELECT ALL ( + ( - - 49 ) )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5048
SELECT - COUNT( * ) DIV 29 col1
----
0

skipif mysql # not compatible
query I rowsort label-5048
SELECT - COUNT ( * ) / 29 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5049
SELECT DISTINCT COALESCE ( + 46, - + 30 DIV + 79 * - 15 * + 33 )
----
46

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT COALESCE ( + 46, - + 30 / + 79 * - 15 * + 33 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5050
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 15
----
NULL
15

skipif mysql # not compatible
query II rowsort label-5050
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 15
----
NULL
15

query I rowsort
SELECT DISTINCT 39 * - + 23
----
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT - SUM( - + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-5052
SELECT - SUM ( - + 12 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5053
SELECT - 62 * + CASE 66 WHEN + MAX( ALL 93 ) THEN - - CAST( 79 AS SIGNED ) WHEN COUNT( * ) * + - NULLIF ( MAX( + 23 ), - 22 * - ( + 80 ) - + 57 * 67 * + + MIN( 31 ) + + 59 + + 44 + - - 73 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT - 62 * + CASE 66 WHEN + MAX ( ALL 93 ) THEN - - CAST ( 79 AS INTEGER ) WHEN COUNT ( * ) * + - NULLIF ( MAX ( + 23 ), - 22 * - ( + 80 ) - + 57 * 67 * + + MIN ( 31 ) + + 59 + + 44 + - - 73 ) THEN NULL END
----
NULL

query I rowsort
SELECT - 74 + 3 AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5055
SELECT ALL CAST( - 74 AS SIGNED ), - 74 + 78 col1
----
-74
4

skipif mysql # not compatible
query II rowsort label-5055
SELECT ALL CAST ( - 74 AS INTEGER ), - 74 + 78 col1
----
-74
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT - COUNT( * ) * 80
----
-80

skipif mysql # not compatible
query I rowsort label-5056
SELECT - COUNT ( * ) * 80
----
-80

query I rowsort
SELECT + 32 * - + COALESCE ( - 36, 99, 80 ) col0
----
1152

query I rowsort
SELECT ALL 38 + 49 + + + 55 + + ( 57 ) AS col0
----
199

query I rowsort
SELECT ALL - + 39 * - - 98 * 90 - + 1 * - 75 AS col1
----
-343905

query II rowsort
SELECT ALL + + 76 + - 70 * 81 + - + 6 + + 19 * + + 90 AS col0, - 30 AS col1
----
-3890
-30

query I rowsort
SELECT DISTINCT - + 14 + + 29
----
15

query II rowsort
SELECT 57 AS col2, 38 AS col1
----
57
38

onlyif mysql # DIV for integer division: 
query II rowsort label-5063
SELECT ALL + - ( - 46 ) DIV + 36 + + 24 AS col0, + 39 * - 38 AS col0
----
25
-1482

skipif mysql # not compatible
query II rowsort label-5063
SELECT ALL + - ( - 46 ) / + 36 + + 24 AS col0, + 39 * - 38 AS col0
----
25
-1482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5064
SELECT + - 11 * + COUNT( DISTINCT 23 ) + - 82 + - - ( MAX( ALL 12 ) ) + + + CAST( NULL AS SIGNED ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT + - 11 * + COUNT ( DISTINCT 23 ) + - 82 + - - ( MAX ( ALL 12 ) ) + + + CAST ( NULL AS INTEGER ) + 9
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5065
SELECT 31 DIV - 72 + + 93
----
93

skipif mysql # not compatible
query I rowsort label-5065
SELECT 31 / - 72 + + 93
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5066
SELECT COUNT( * ) AS col0, + 96 * - - 67
----
1
6432

skipif mysql # not compatible
query II rowsort label-5066
SELECT COUNT ( * ) AS col0, + 96 * - - 67
----
1
6432

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT + 19 DIV + - 82
----
0

skipif mysql # not compatible
query I rowsort label-5067
SELECT + 19 / + - 82
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT ALL - - CAST( NULL AS SIGNED ) / - + 3 - - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - - CAST ( NULL AS INTEGER ) / - + 3 - - 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5069
SELECT DISTINCT + 96 / - ( - CAST( NULL AS SIGNED ) ) + - 96 - + - 51 + - - CAST( + + COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT + 96 / - ( - CAST ( NULL AS INTEGER ) ) + - 96 - + - 51 + - - CAST ( + + COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5070
SELECT ALL + CASE COUNT( * ) WHEN 21 + + 80 THEN + 99 WHEN - 18 - + + 76 THEN - SUM( DISTINCT - CAST( 94 AS SIGNED ) ) + + - 40 + - - 29 END AS col1, + 82
----
NULL
82

skipif mysql # not compatible
query II rowsort label-5070
SELECT ALL + CASE COUNT ( * ) WHEN 21 + + 80 THEN + 99 WHEN - 18 - + + 76 THEN - SUM ( DISTINCT - CAST ( 94 AS INTEGER ) ) + + - 40 + - - 29 END AS col1, + 82
----
NULL
82

query II rowsort
SELECT 81 col1, - 70
----
81
-70

query I rowsort
SELECT DISTINCT + 43 * + + 9 AS col1
----
387

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL - COUNT( DISTINCT 88 ) - + 12
----
-13

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL - COUNT ( DISTINCT 88 ) - + 12
----
-13

query I rowsort
SELECT DISTINCT 60 * 42 AS col1
----
2520

onlyif mysql # aggregate syntax: 
query II rowsort label-5075
SELECT DISTINCT - 30, - COUNT( * ) AS col1
----
-30
-1

skipif mysql # not compatible
query II rowsort label-5075
SELECT DISTINCT - 30, - COUNT ( * ) AS col1
----
-30
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT ALL - - 0 - 73 DIV COALESCE ( + - 48, + 18 ) + + - 45 * - + 82 * 44 AS col1
----
162361

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL - - 0 - 73 / COALESCE ( + - 48, + 18 ) + + - 45 * - + 82 * 44 AS col1
----
162361

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT CAST( + + 65 AS SIGNED ) * + 11 AS col0
----
715

skipif mysql # not compatible
query I rowsort label-5077
SELECT CAST ( + + 65 AS INTEGER ) * + 11 AS col0
----
715

onlyif mysql # aggregate syntax: 
query II rowsort label-5078
SELECT ALL - 32 col2, + MIN( + - 83 ) * COUNT( * )
----
-32
-83

skipif mysql # not compatible
query II rowsort label-5078
SELECT ALL - 32 col2, + MIN ( + - 83 ) * COUNT ( * )
----
-32
-83

query I rowsort
SELECT 66 + + 17 + - 96 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT COUNT( * ) * - 50
----
-50

skipif mysql # not compatible
query I rowsort label-5080
SELECT COUNT ( * ) * - 50
----
-50

query I rowsort
SELECT DISTINCT + 57 * + ( 73 ) col0
----
4161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5082
SELECT 66 * + CAST( 41 AS SIGNED ) * + + COUNT( * ) + - + 52 + - 57 * 49
----
-139

skipif mysql # not compatible
query I rowsort label-5082
SELECT 66 * + CAST ( 41 AS INTEGER ) * + + COUNT ( * ) + - + 52 + - 57 * 49
----
-139

query I rowsort
SELECT ALL + 39 * - - 47
----
1833

query I rowsort
SELECT 62 * 41 * - 79
----
-200818

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT 78 - - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-5085
SELECT 78 - - COUNT ( * )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5086
SELECT 81 DIV + 22
----
3

skipif mysql # not compatible
query I rowsort label-5086
SELECT 81 / + 22
----
3

query I rowsort
SELECT ALL + 39 + 54 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ( + + 94 ) + COUNT( * ) - - + COUNT( 88 ) * - - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-5088
SELECT ( + + 94 ) + COUNT ( * ) - - + COUNT ( 88 ) * - - COUNT ( * )
----
96

query I rowsort
SELECT 87 - + 2 * + 64 - - - 58 + 53 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT MIN( 52 ) + - 20
----
32

skipif mysql # not compatible
query I rowsort label-5090
SELECT MIN ( 52 ) + - 20
----
32

query I rowsort
SELECT 97 + 55
----
152

query II rowsort
SELECT ALL - 67 + - 38, 11 col0
----
-105
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5093
SELECT COUNT( * ) DIV + 91 col1
----
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT COUNT ( * ) / + 91 col1
----
0

query I rowsort
SELECT 77 + + ( 25 )
----
102

onlyif mysql # DIV for integer division: 
query II rowsort label-5095
SELECT ALL - 40 + + 87, - 94 DIV 13 AS col2
----
47
-7

skipif mysql # not compatible
query II rowsort label-5095
SELECT ALL - 40 + + 87, - 94 / 13 AS col2
----
47
-7

query I rowsort
SELECT ALL - 68 + - 90 * + 81
----
-7358

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT ALL + - 41 * COUNT( * ) * - 11 * + 98
----
44198

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL + - 41 * COUNT ( * ) * - 11 * + 98
----
44198

query II rowsort
SELECT ALL + 90 + + - 50 + + 25 AS col1, 84
----
65
84

query I rowsort
SELECT + 54 + + - 72 col1
----
-18

query I rowsort
SELECT ALL 93 + + 19 col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT + 82 + COUNT( * ) / CASE ( + COUNT( * ) ) WHEN ( + 71 ) THEN - COUNT( * ) * + + 54 * - + 59 - + - 54 * + 84 * + 29 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + 82 + COUNT ( * ) / CASE ( + COUNT ( * ) ) WHEN ( + 71 ) THEN - COUNT ( * ) * + + 54 * - + 59 - + - 54 * + 84 * + 29 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT DISTINCT + ( + 78 ), COUNT( * ) AS col2
----
78
1

skipif mysql # not compatible
query II rowsort label-5102
SELECT DISTINCT + ( + 78 ), COUNT ( * ) AS col2
----
78
1

query II rowsort
SELECT + 29 * 9 AS col2, - 54
----
261
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT 80 * + SUM( ALL - 14 ) * NULLIF ( - 48, 47 ) + - + 27 - + 65 AS col2
----
53668

skipif mysql # not compatible
query I rowsort label-5104
SELECT 80 * + SUM ( ALL - 14 ) * NULLIF ( - 48, 47 ) + - + 27 - + 65 AS col2
----
53668

query I rowsort
SELECT ALL - ( 92 ) AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT ALL - + CAST( - 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL - + CAST ( - 7 AS INTEGER )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT 34 * + 12 + + + COUNT( * ) + - 54 AS col2
----
355

skipif mysql # not compatible
query I rowsort label-5107
SELECT 34 * + 12 + + + COUNT ( * ) + - 54 AS col2
----
355

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL + 88 * MIN( ALL - 95 ) AS col1
----
-8360

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + 88 * MIN ( ALL - 95 ) AS col1
----
-8360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5109
SELECT - + 92 DIV + ( - MIN( 39 ) ) + + 58 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5109
SELECT - + 92 / + ( - MIN ( 39 ) ) + + 58 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT ( + + COUNT( DISTINCT + 38 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5110
SELECT ( + + COUNT ( DISTINCT + 38 ) ) AS col1
----
1

query I rowsort
SELECT - 61 * + 40 - + 54 AS col1
----
-2494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT 57 * - 60 + - + CAST( - 5 AS SIGNED )
----
-3415

skipif mysql # not compatible
query I rowsort label-5112
SELECT 57 * - 60 + - + CAST ( - 5 AS INTEGER )
----
-3415

query II rowsort
SELECT COALESCE ( + - 44, - 78 ) * + + 13 + + - ( + 77 ) AS col2, - 36 AS col0
----
-649
-36

query II rowsort
SELECT DISTINCT - 98 col0, + 56
----
-98
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5115
SELECT NULLIF ( + 79, 71 * + 25 * + COUNT( * ) + + - CAST( - 88 AS DECIMAL ) + + + COALESCE ( + - 6, - 27 ) ) DIV 5 + + - COUNT( * ) + + 9
----
23

skipif mysql # not compatible
query I rowsort label-5115
SELECT NULLIF ( + 79, 71 * + 25 * + COUNT ( * ) + + - CAST ( - 88 AS REAL ) + + + COALESCE ( + - 6, - 27 ) ) / 5 + + - COUNT ( * ) + + 9
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5116
SELECT CAST( - COUNT( * ) AS SIGNED ) * - 7 + - 86 AS col1, - 97 AS col0
----
-79
-97

skipif mysql # not compatible
query II rowsort label-5116
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - 7 + - 86 AS col1, - 97 AS col0
----
-79
-97

query I rowsort
SELECT ALL 28 * + - 38 col2
----
-1064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5118
SELECT ALL 99 * + CAST( - + CASE - 52 WHEN - 46 * 81 + 72 * - 89 THEN - COUNT( * ) END AS SIGNED ) * - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL 99 * + CAST ( - + CASE - 52 WHEN - 46 * 81 + 72 * - 89 THEN - COUNT ( * ) END AS INTEGER ) * - 46 AS col0
----
NULL

query I rowsort
SELECT ALL 75 * + + ( + 34 )
----
2550

query I rowsort
SELECT ALL 93 + - ( 19 )
----
74

query II rowsort
SELECT 87, COALESCE ( + 67, - 91 + 90 + + 32 * - 0, + 86 ) * - 41 + - 55 + + 18 col2
----
87
-2784

query I rowsort
SELECT ALL 69 + + 28 - 96
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT DISTINCT 27 + + NULLIF ( + 16, COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT 27 + + NULLIF ( + 16, COUNT ( * ) )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT DISTINCT 86 + - 1 DIV COALESCE ( + 1, + 5 )
----
85

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT 86 + - 1 / COALESCE ( + 1, + 5 )
----
85

query I rowsort
SELECT CASE - - 98 WHEN + 90 THEN - 21 ELSE NULL END * + - 4 / + + 10 * + 31
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5126
SELECT 97 + COUNT( * ) * - 74 * + COALESCE ( - 54, + NULLIF ( - COUNT( * ), + ( 22 ) ) + + - 98 + 97, - + 26 * - 38 + - SUM( ALL - 47 ) * - COUNT( DISTINCT 79 ) DIV 36 - 49 + + - COUNT( * ) )
----
4093

skipif mysql # not compatible
query I rowsort label-5126
SELECT 97 + COUNT ( * ) * - 74 * + COALESCE ( - 54, + NULLIF ( - COUNT ( * ), + ( 22 ) ) + + - 98 + 97, - + 26 * - 38 + - SUM ( ALL - 47 ) * - COUNT ( DISTINCT 79 ) / 36 - 49 + + - COUNT ( * ) )
----
4093

query I rowsort
SELECT ALL 62 + + 11
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5128
SELECT 79, + COUNT( * ) DIV 97 AS col1
----
79
0

skipif mysql # not compatible
query II rowsort label-5128
SELECT 79, + COUNT ( * ) / 97 AS col1
----
79
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT - COUNT( 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-5129
SELECT - COUNT ( 32 )
----
-1

query I rowsort
SELECT ALL 26 + 73 + + 2
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5131
SELECT ALL - 36 + - NULLIF ( + 25, + CAST( NULL AS SIGNED ) + - - 97 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - 36 + - NULLIF ( + 25, + CAST ( NULL AS INTEGER ) + - - 97 ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT DISTINCT MAX( - 25 ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT MAX ( - 25 ) col1
----
-25

query I rowsort
SELECT ALL 8 + - + 12 * - 97
----
1172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5134
SELECT - 78 - NULLIF ( - 58, - + 5 * + MAX( DISTINCT - + 29 ) + + 98 + + 74 * + + ( - + COUNT( * ) ) * - 45 * 40 + 19 / CAST( NULL AS SIGNED ) * + SUM( 53 ) + - - COUNT( * ) + - - 23 / - 35 * + 46 ) * - - 79 AS col1
----
4504

skipif mysql # not compatible
query I rowsort label-5134
SELECT - 78 - NULLIF ( - 58, - + 5 * + MAX ( DISTINCT - + 29 ) + + 98 + + 74 * + + ( - + COUNT ( * ) ) * - 45 * 40 + 19 / CAST ( NULL AS INTEGER ) * + SUM ( 53 ) + - - COUNT ( * ) + - - 23 / - 35 * + 46 ) * - - 79 AS col1
----
4504

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5135
SELECT 31 * NULLIF ( + 47, + + 14 - 84 - + CAST( NULL AS DECIMAL ) ) * 11
----
16027

skipif mysql # not compatible
query I rowsort label-5135
SELECT 31 * NULLIF ( + 47, + + 14 - 84 - + CAST ( NULL AS REAL ) ) * 11
----
16027

onlyif mysql # aggregate syntax: 
query II rowsort label-5136
SELECT - 24 AS col0, 18 * COUNT( * ) AS col2
----
-24
18

skipif mysql # not compatible
query II rowsort label-5136
SELECT - 24 AS col0, 18 * COUNT ( * ) AS col2
----
-24
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5137
SELECT ALL - COUNT( DISTINCT 37 ) - ( - 25 ) DIV - ( 61 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL - COUNT ( DISTINCT 37 ) - ( - 25 ) / - ( 61 ) AS col1
----
-1

query I rowsort
SELECT NULLIF ( 24, 69 / 13 + + 30 ) * ( - 97 )
----
-2328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5139
SELECT - SUM( ALL + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT - SUM ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 92 - - - 75 + + - 62 AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5141
SELECT ALL - COUNT( * ) DIV + COUNT( + 71 ) + + 86
----
85

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL - COUNT ( * ) / + COUNT ( + 71 ) + + 86
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT ALL COUNT( * ) - - 24 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL COUNT ( * ) - - 24 AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5143
SELECT - 54 + MAX( - CAST( - 72 AS SIGNED ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5143
SELECT - 54 + MAX ( - CAST ( - 72 AS INTEGER ) ) AS col2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT DISTINCT - 84 DIV - + 35
----
2

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT - 84 / - + 35
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5145
SELECT - 33 * - 57 + NULLIF ( - 22, + ( + CAST( - ( - + 52 ) AS DECIMAL ) ) ) + + 36 * - 94
----
-1525

skipif mysql # not compatible
query I rowsort label-5145
SELECT - 33 * - 57 + NULLIF ( - 22, + ( + CAST ( - ( - + 52 ) AS REAL ) ) ) + + 36 * - 94
----
-1525

query I rowsort
SELECT ALL + - COALESCE ( - + 7, + 79 + + 92 ) * + 8 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5147
SELECT - + 65 * CAST( NULL AS SIGNED ) * + 53 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT - + 65 * CAST ( NULL AS INTEGER ) * + 53 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5148
SELECT DISTINCT + ( 41 ) * COUNT( * ) AS col2, COUNT( * ) * + 30
----
41
30

skipif mysql # not compatible
query II rowsort label-5148
SELECT DISTINCT + ( 41 ) * COUNT ( * ) AS col2, COUNT ( * ) * + 30
----
41
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT + SUM( 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5149
SELECT + SUM ( 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT COALESCE ( + + COUNT( * ), + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-5150
SELECT COALESCE ( + + COUNT ( * ), + 96 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - NULLIF ( 47, - + COUNT( * ) / - + 36 * + + 26 * + ( 4 ) ) * + - CASE - COALESCE ( + - COUNT( * ), + 61 + + COUNT( * ) ) WHEN 0 - 28 THEN - 65 WHEN - 86 + 47 THEN + 91 + + 72 * + 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT - NULLIF ( 47, - + COUNT ( * ) / - + 36 * + + 26 * + ( 4 ) ) * + - CASE - COALESCE ( + - COUNT ( * ), + 61 + + COUNT ( * ) ) WHEN 0 - 28 THEN - 65 WHEN - 86 + 47 THEN + 91 + + 72 * + 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5152
SELECT DISTINCT - CASE - COUNT( * ) WHEN + 54 THEN - 75 ELSE + 5 + + MIN( + 57 ) + COUNT( * ) + - 52 END * + 17 * ( - 37 ), - 86 * 58 col1
----
6919
-4988

skipif mysql # not compatible
query II rowsort label-5152
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + 54 THEN - 75 ELSE + 5 + + MIN ( + 57 ) + COUNT ( * ) + - 52 END * + 17 * ( - 37 ), - 86 * 58 col1
----
6919
-4988

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT DISTINCT + NULLIF ( + 3, - - COUNT( * ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT + NULLIF ( + 3, - - COUNT ( * ) ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT + COUNT( ALL - ( + 84 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5154
SELECT + COUNT ( ALL - ( + 84 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT - MAX( DISTINCT 51 ) + - - 90
----
39

skipif mysql # not compatible
query I rowsort label-5155
SELECT - MAX ( DISTINCT 51 ) + - - 90
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-5156
SELECT ALL 45 DIV 58 AS col2, + 23 + + 72
----
0
95

skipif mysql # not compatible
query II rowsort label-5156
SELECT ALL 45 / 58 AS col2, + 23 + + 72
----
0
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5157
SELECT + 57 DIV - 12 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5157
SELECT + 57 / - 12 AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT DISTINCT 80 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT 80 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 8 * + 66 + 57 + - 80 AS col1, 5 AS col0
----
505
5

query I rowsort
SELECT + 21 * - 67 + + + 52
----
-1355

onlyif mysql # aggregate syntax: 
query II rowsort label-5161
SELECT DISTINCT COUNT( * ) * 65 + + 56 + 27 * - 18, 60 + NULLIF ( 24, + + 89 * + - 95 ) AS col2
----
-365
84

skipif mysql # not compatible
query II rowsort label-5161
SELECT DISTINCT COUNT ( * ) * 65 + + 56 + 27 * - 18, 60 + NULLIF ( 24, + + 89 * + - 95 ) AS col2
----
-365
84

query I rowsort
SELECT ALL 15 * - 87 AS col1
----
-1305

query I rowsort
SELECT + 21 + + 19 AS col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5164
SELECT ALL - 4 + 20, - CASE + 21 WHEN - 79 + - 9 THEN - 74 END * NULLIF ( - - 96, ( - + 40 ) + - COUNT( * ) ) * + 53 + + 21 * + COALESCE ( + + 6, - + 79 ) + + + 98 + + 3 + ( + + 74 ) * COUNT( * ) - - 59 / + 47 AS col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-5164
SELECT ALL - 4 + 20, - CASE + 21 WHEN - 79 + - 9 THEN - 74 END * NULLIF ( - - 96, ( - + 40 ) + - COUNT ( * ) ) * + 53 + + 21 * + COALESCE ( + + 6, - + 79 ) + + + 98 + + 3 + ( + + 74 ) * COUNT ( * ) - - 59 / + 47 AS col2
----
16
NULL

query II rowsort
SELECT ALL ( - 70 ), - 36 AS col1
----
-70
-36

query I rowsort
SELECT DISTINCT - 95 * - + 21
----
1995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5167
SELECT DISTINCT COUNT( * ) * 26 DIV + + 55 * + + 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT COUNT ( * ) * 26 / + + 55 * + + 45 AS col2
----
0

query I rowsort
SELECT ( - 35 ) * + + 46 * - 31 + - 85
----
49825

query I rowsort
SELECT + 91 - - + 7 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT ( - + NULLIF ( 45, + COUNT( * ) / + 94 * + 28 ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT ( - + NULLIF ( 45, + COUNT ( * ) / + 94 * + 28 ) ) AS col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5171
SELECT + 39 + + 10 + - ( 95 ) DIV + 55 + + 17 + - 26 + 90 * - MAX( DISTINCT + 34 )
----
-3021

skipif mysql # not compatible
query I rowsort label-5171
SELECT + 39 + + 10 + - ( 95 ) / + 55 + + 17 + - 26 + 90 * - MAX ( DISTINCT + 34 )
----
-3021

query I rowsort
SELECT + + 61 * + + 36 * - COALESCE ( + + 12, COALESCE ( 93, + + 29 ) ) * - - 60 AS col1
----
-1581120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5173
SELECT DISTINCT - 55 * - + CAST( NULL AS SIGNED ) / + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT - 55 * - + CAST ( NULL AS INTEGER ) / + 46
----
NULL

query I rowsort
SELECT - + 51 col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT - - SUM( DISTINCT - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5175
SELECT - - SUM ( DISTINCT - 38 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT - + COUNT( * ) + COUNT( * ) * + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5176
SELECT - + COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5177
SELECT + 14 DIV + 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5177
SELECT + 14 / + 58 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5178
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), 6 ) DIV - ( 74 ) + + 5 DIV + 2
----
2

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), 6 ) / - ( 74 ) + + 5 / + 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT DISTINCT CASE MIN( + 70 ) WHEN + 86 + 5 + + 73 THEN NULL WHEN 89 THEN - ( + 23 ) ELSE NULL END / MIN( - 88 ) + 48 + - 58 - 37 + 92 + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT CASE MIN ( + 70 ) WHEN + 86 + 5 + + 73 THEN NULL WHEN 89 THEN - ( + 23 ) ELSE NULL END / MIN ( - 88 ) + 48 + - 58 - 37 + 92 + + 71
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5180
SELECT DISTINCT - NULLIF ( - 20, - COALESCE ( + COUNT( * ), - 86 * - + 15 - - - 92 + + - 79 + - ( ( 73 ) ) * + - 41 ) ) DIV - ( + 38 ) + 48
----
48

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT - NULLIF ( - 20, - COALESCE ( + COUNT ( * ), - 86 * - + 15 - - - 92 + + - 79 + - ( ( 73 ) ) * + - 41 ) ) / - ( + 38 ) + 48
----
48

query I rowsort
SELECT DISTINCT - 25 * 14 AS col0
----
-350

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT ALL 49 DIV - 60 + 54 * 63 * - + 10 AS col1
----
-34020

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL 49 / - 60 + 54 * 63 * - + 10 AS col1
----
-34020

query I rowsort
SELECT + 75 * + 19 AS col2
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT + COUNT( * ) - 24 * + + 67
----
-1607

skipif mysql # not compatible
query I rowsort label-5184
SELECT + COUNT ( * ) - 24 * + + 67
----
-1607

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT + COUNT( - ( + - 64 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5185
SELECT + COUNT ( - ( + - 64 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 26 * + - 90 * + + COALESCE ( + - 74, 25 ) AS col2
----
-173160

query I rowsort
SELECT - 16 * + 91 AS col1
----
-1456

query I rowsort
SELECT DISTINCT + COALESCE ( + 36, - - 85 * 72 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5189
SELECT CAST( - 51 AS SIGNED ) * + + COUNT( + 44 ) * + COUNT( * ) + + + 61 + - COUNT( * ) - + 94 + + - 35 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-5189
SELECT CAST ( - 51 AS INTEGER ) * + + COUNT ( + 44 ) * + COUNT ( * ) + + + 61 + - COUNT ( * ) - + 94 + + - 35 AS col0
----
-120

query I rowsort
SELECT DISTINCT + NULLIF ( 18, CASE - 45 WHEN - - 72 THEN NULL ELSE - + 6 END ) AS col1
----
18

query I rowsort
SELECT ALL - 9 * + - 75 AS col2
----
675

query I rowsort
SELECT ALL + ( + 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5193
SELECT COALESCE ( COUNT( * ), - COUNT( * ) DIV 27 - 63, + + MAX( - ( 36 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5193
SELECT COALESCE ( COUNT ( * ), - COUNT ( * ) / 27 - 63, + + MAX ( - ( 36 ) ) )
----
1

query I rowsort
SELECT - 91 + 71
----
-20

query I rowsort
SELECT DISTINCT + ( - 32 )
----
-32

query II rowsort
SELECT - 38 AS col2, ( - - 99 ) col1
----
-38
99

query I rowsort
SELECT + 67 + - 81
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5198
SELECT - + COUNT( * ) AS col0, + 48 + 47 col1
----
-1
95

skipif mysql # not compatible
query II rowsort label-5198
SELECT - + COUNT ( * ) AS col0, + 48 + 47 col1
----
-1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT + 56 * - + COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5199
SELECT + 56 * - + COUNT ( * ) AS col1
----
-56

query I rowsort
SELECT ALL 26 * - + 76
----
-1976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5201
SELECT ALL + 70 * + COUNT( * ) + + CASE WHEN + COUNT( * ) IS NOT NULL THEN 78 + - 91 WHEN NOT - 49 IS NOT NULL THEN NULL END + + CASE 76 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN MAX( - 67 ) THEN + + 3 END * - - 75 * + + ( + MIN( 88 ) ) * + MAX( ALL + + 10 ) * - + ( - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL + 70 * + COUNT ( * ) + + CASE WHEN + COUNT ( * ) IS NOT NULL THEN 78 + - 91 WHEN NOT - 49 IS NOT NULL THEN NULL END + + CASE 76 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN MAX ( - 67 ) THEN + + 3 END * - - 75 * + + ( + MIN ( 88 ) ) * + MAX ( ALL + + 10 ) * - + ( - 44 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT ALL + 1 * + CAST( NULL AS SIGNED ) * 82 * - 1 * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL + 1 * + CAST ( NULL AS INTEGER ) * 82 * - 1 * - 74
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5203
SELECT 65 AS col0, MAX( + + 2 )
----
65
2

skipif mysql # not compatible
query II rowsort label-5203
SELECT 65 AS col0, MAX ( + + 2 )
----
65
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT CAST( NULL AS SIGNED ) + - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT CAST ( NULL AS INTEGER ) + - - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + MIN( DISTINCT 21 ) + + 22
----
43

skipif mysql # not compatible
query I rowsort label-5205
SELECT + MIN ( DISTINCT 21 ) + + 22
----
43

query I rowsort
SELECT ALL CASE 7 WHEN + 95 THEN - - ( + 69 ) WHEN + 86 * + 37 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 43 + 35
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5208
SELECT ALL COUNT( ALL - + 16 ) + 99 * - 6 + 39 DIV - 87 AS col1, COUNT( 67 ) AS col2
----
-593
1

skipif mysql # not compatible
query II rowsort label-5208
SELECT ALL COUNT ( ALL - + 16 ) + 99 * - 6 + 39 / - 87 AS col1, COUNT ( 67 ) AS col2
----
-593
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) - - - 17 * - 82 + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) - - - 17 * - 82 + - 55
----
NULL

query I rowsort
SELECT ALL 0 + + 61 col0
----
61

query I rowsort
SELECT + 39 - - - 9
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5212
SELECT ALL + 94 * NULLIF ( CAST( - COUNT( * ) AS SIGNED ), - - CASE - 10 WHEN - + 50 / + - 59 + + - COUNT( * ) - + 70 / - 50 / 10 THEN - CAST( NULL AS SIGNED ) * ( - 60 ) - - - 26 WHEN MAX( 15 ) + - 4 THEN NULL ELSE NULL END + + COUNT( * ) * - 48 ) / AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) * 37 + - - ( CAST( - - 22 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL + 94 * NULLIF ( CAST ( - COUNT ( * ) AS INTEGER ), - - CASE - 10 WHEN - + 50 / + - 59 + + - COUNT ( * ) - + 70 / - 50 / 10 THEN - CAST ( NULL AS INTEGER ) * ( - 60 ) - - - 26 WHEN MAX ( 15 ) + - 4 THEN NULL ELSE NULL END + + COUNT ( * ) * - 48 ) / AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * 37 + - - ( CAST ( - - 22 AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 18 + + 71
----
89

query I rowsort
SELECT ALL 76 + 78 * - 47
----
-3590

query I rowsort
SELECT DISTINCT - 94 * - + 79 * - CASE - + 58 WHEN - 13 + - ( 50 ) THEN 30 * 34 ELSE NULL END / + - 57 AS col0
----
NULL

query II rowsort
SELECT ALL 52 + - 63 AS col0, 14 * 32
----
-11
448

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5217
SELECT 85 * + + 52 * + 26 + 52 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT 85 * + + 52 * + 26 + 52 / - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL 70 * 2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT 91 - - 39 + - 33 * 60 * - - 22 + + NULLIF ( - 8, - 48 * 60 * - - 53 / - COUNT( * ) + - 41 * 73 * - + 77 + + + ( 50 ) + + 53 ) * 41
----
-43758

skipif mysql # not compatible
query I rowsort label-5219
SELECT 91 - - 39 + - 33 * 60 * - - 22 + + NULLIF ( - 8, - 48 * 60 * - - 53 / - COUNT ( * ) + - 41 * 73 * - + 77 + + + ( 50 ) + + 53 ) * 41
----
-43758

query II rowsort
SELECT + 4 AS col0, + 4 + + + 88 AS col1
----
4
92

query I rowsort
SELECT DISTINCT 63 + + - 93
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5222
SELECT CASE + 81 WHEN - + ( - + 89 ) THEN - - COUNT( * ) WHEN + 7 THEN - ( - 10 ) ELSE - CAST( - 54 AS SIGNED ) * 55 * - + COUNT( 67 ) END * 90 - - + 12 col1
----
-267288

skipif mysql # not compatible
query I rowsort label-5222
SELECT CASE + 81 WHEN - + ( - + 89 ) THEN - - COUNT ( * ) WHEN + 7 THEN - ( - 10 ) ELSE - CAST ( - 54 AS INTEGER ) * 55 * - + COUNT ( 67 ) END * 90 - - + 12 col1
----
-267288

query I rowsort
SELECT ALL - NULLIF ( + 84, - 83 ) - + NULLIF ( - - 8, - 27 ) + - - 75 AS col1
----
-17

query I rowsort
SELECT 81 + - 11
----
70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5225
SELECT ALL - 16, 29 DIV + + CAST( + 49 AS SIGNED ) AS col2
----
-16
0

skipif mysql # not compatible
query II rowsort label-5225
SELECT ALL - 16, 29 / + + CAST ( + 49 AS INTEGER ) AS col2
----
-16
0

query I rowsort
SELECT ALL 62 - + 29
----
33

query II rowsort
SELECT + 25, + 30 col0
----
25
30

query II rowsort
SELECT ( 47 ) * + + 17 + 9, 88 * - - 59 * + 61 AS col0
----
808
316712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT ( + 65 ) / + CAST( NULL AS SIGNED ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT ( + 65 ) / + CAST ( NULL AS INTEGER ) * 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5230
SELECT CAST( - COUNT( * ) AS SIGNED ) + + - CASE + 12 WHEN - + 62 THEN NULL WHEN - - 43 + 19 / - 15 + 35 * 95 THEN NULL WHEN - - COUNT( DISTINCT - 39 ) + COUNT( * ) THEN 79 - + - 18 - CAST( 64 AS SIGNED ) + + - COUNT( * ) / + 30 WHEN + 68 + - + 58 THEN - 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + - CASE + 12 WHEN - + 62 THEN NULL WHEN - - 43 + 19 / - 15 + 35 * 95 THEN NULL WHEN - - COUNT ( DISTINCT - 39 ) + COUNT ( * ) THEN 79 - + - 18 - CAST ( 64 AS INTEGER ) + + - COUNT ( * ) / + 30 WHEN + 68 + - + 58 THEN - 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT MAX( DISTINCT - 79 ) * + ( + 43 ) + COALESCE ( 53, 64 * - CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE ( + COUNT( DISTINCT - 89 ) ) END * 50, + - 3, 6 * 35 * - COALESCE ( + 26, + 17 * - 84 ) ) AS col1
----
-3344

skipif mysql # not compatible
query I rowsort label-5231
SELECT MAX ( DISTINCT - 79 ) * + ( + 43 ) + COALESCE ( 53, 64 * - CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE ( + COUNT ( DISTINCT - 89 ) ) END * 50, + - 3, 6 * 35 * - COALESCE ( + 26, + 17 * - 84 ) ) AS col1
----
-3344

query I rowsort
SELECT ALL - 21 * 45
----
-945

query II rowsort
SELECT DISTINCT - 37 AS col0, 47
----
-37
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5234
SELECT DISTINCT 49 AS col2, 51 + 81 DIV + CAST( 96 AS SIGNED ) * - 3 * + 16 * - 28 * + + 73
----
49
51

skipif mysql # not compatible
query II rowsort label-5234
SELECT DISTINCT 49 AS col2, 51 + 81 / + CAST ( 96 AS INTEGER ) * - 3 * + 16 * - 28 * + + 73
----
49
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT + COUNT( * ) + 57
----
58

skipif mysql # not compatible
query I rowsort label-5235
SELECT + COUNT ( * ) + 57
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5236
SELECT DISTINCT COUNT( * ), COUNT( * ) * COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5236
SELECT DISTINCT COUNT ( * ), COUNT ( * ) * COUNT ( * )
----
1
1

query I rowsort
SELECT + 21 * - 46
----
-966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT - 74 + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT - 74 + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 78 + 48 + 53 AS col2
----
179

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT ALL + 6 DIV - 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL + 6 / - 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT - 57 + + 50 - + 17 * + - 71 + - COUNT( * ) + ( + 5 ) * - 0
----
1199

skipif mysql # not compatible
query I rowsort label-5241
SELECT - 57 + + 50 - + 17 * + - 71 + - COUNT ( * ) + ( + 5 ) * - 0
----
1199

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT COUNT( 31 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5242
SELECT COUNT ( 31 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5243
SELECT ALL - 14 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL - 14 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 57 + 85
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL MIN( - + 96 ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL MIN ( - + 96 ) col1
----
-96

query II rowsort
SELECT ALL - 6 AS col2, + 71 AS col0
----
-6
71

query I rowsort
SELECT + 37 + - COALESCE ( - - 33, - 42 + - 3 )
----
4

query I rowsort
SELECT ALL - 54 + - - 36
----
-18

query I rowsort
SELECT DISTINCT + - 68 * 8 AS col0
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ( MAX( + - 37 ) ) + - 44 * - ( 14 )
----
579

skipif mysql # not compatible
query I rowsort label-5250
SELECT ( MAX ( + - 37 ) ) + - 44 * - ( 14 )
----
579

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT SUM( + 11 ) + + + ( 56 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5251
SELECT SUM ( + 11 ) + + + ( 56 ) AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5252
SELECT MIN( ALL ( 44 ) ) + + - 8 + 29 * + 91 DIV - 91 AS col0, COUNT( * ) AS col1
----
7
1

skipif mysql # not compatible
query II rowsort label-5252
SELECT MIN ( ALL ( 44 ) ) + + - 8 + 29 * + 91 / - 91 AS col0, COUNT ( * ) AS col1
----
7
1

query I rowsort
SELECT 0 + - 56 AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT + 9 * CAST( - - CAST( - + 1 AS SIGNED ) AS SIGNED ) + + + 77 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5254
SELECT + 9 * CAST ( - - CAST ( - + 1 AS INTEGER ) AS INTEGER ) + + + 77 AS col2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5255
SELECT DISTINCT - ( + 28 ) AS col1, COUNT( * ) * + + COALESCE ( - 58, + - COUNT( * ) )
----
-28
-58

skipif mysql # not compatible
query II rowsort label-5255
SELECT DISTINCT - ( + 28 ) AS col1, COUNT ( * ) * + + COALESCE ( - 58, + - COUNT ( * ) )
----
-28
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT SUM( + - 36 ), + 44 col0
----
-36
44

skipif mysql # not compatible
query II rowsort label-5256
SELECT SUM ( + - 36 ), + 44 col0
----
-36
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT DISTINCT COUNT( * ) * - - 72
----
72

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT COUNT ( * ) * - - 72
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT - MIN( ALL 14 ) * + + 8 * 31 - 75 + - 24 AS col1
----
-3571

skipif mysql # not compatible
query I rowsort label-5258
SELECT - MIN ( ALL 14 ) * + + 8 * 31 - 75 + - 24 AS col1
----
-3571

onlyif mysql # aggregate syntax: 
query II rowsort label-5259
SELECT ALL - MIN( 29 ) AS col0, 84 AS col0
----
-29
84

skipif mysql # not compatible
query II rowsort label-5259
SELECT ALL - MIN ( 29 ) AS col0, 84 AS col0
----
-29
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT MAX( - + 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5260
SELECT MAX ( - + 30 ) AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5261
SELECT ALL + - 62 DIV - + COUNT( DISTINCT - + 92 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL + - 62 / - + COUNT ( DISTINCT - + 92 ) col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5262
SELECT + + CAST( - + 34 AS SIGNED ) - 84 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-5262
SELECT + + CAST ( - + 34 AS INTEGER ) - 84 AS col2
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-5263
SELECT ALL + COALESCE ( + 94, + + 50 ) DIV + 47 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL + COALESCE ( + 94, + + 50 ) / + 47 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5264
SELECT DISTINCT + + CAST( - 10 AS SIGNED ), ( - CAST( NULL AS SIGNED ) ) AS col1
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-5264
SELECT DISTINCT + + CAST ( - 10 AS INTEGER ), ( - CAST ( NULL AS INTEGER ) ) AS col1
----
-10
NULL

query I rowsort
SELECT - - 73 + 0
----
73

query I rowsort
SELECT + + 4 * + - ( + 40 )
----
-160

query I rowsort
SELECT DISTINCT + 76 + - - 22
----
98

query II rowsort
SELECT ALL - 18 + - 8 AS col1, + 53 * - + 58
----
-26
-3074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5269
SELECT ALL + 49 + - + 94 - 36 DIV COUNT( * ) - - - 70 * - ( - CASE 59 WHEN + 82 THEN NULL WHEN - 55 DIV - 79 THEN NULL WHEN - 75 THEN COUNT( * ) ELSE 11 END )
----
-851

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + 49 + - + 94 - 36 / COUNT ( * ) - - - 70 * - ( - CASE 59 WHEN + 82 THEN NULL WHEN - 55 / - 79 THEN NULL WHEN - 75 THEN COUNT ( * ) ELSE 11 END )
----
-851

onlyif mysql # DIV for integer division: 
query I rowsort label-5270
SELECT ALL - 69 + - 28 + 4 + - 30 + + + 39 DIV - - 56
----
-123

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL - 69 + - 28 + 4 + - 30 + + + 39 / - - 56
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT - 87 + + 44 + - 86 - - - MAX( 77 ) + - 54 + + + NULLIF ( + 21, - 64 + + 18 ) + + - 97 + + 29 + - 34 + - 21 * 18 col0
----
-719

skipif mysql # not compatible
query I rowsort label-5271
SELECT - 87 + + 44 + - 86 - - - MAX ( 77 ) + - 54 + + + NULLIF ( + 21, - 64 + + 18 ) + + - 97 + + 29 + - 34 + - 21 * 18 col0
----
-719

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5272
SELECT - CAST( NULL AS SIGNED ) * + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5272
SELECT - CAST ( NULL AS INTEGER ) * + 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT - 11 + - ( MAX( - 79 ) ) * + 58
----
4571

skipif mysql # not compatible
query I rowsort label-5273
SELECT - 11 + - ( MAX ( - 79 ) ) * + 58
----
4571

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5274
SELECT ALL - 21 - + 1 DIV - SUM( + 61 )
----
-21

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL - 21 - + 1 / - SUM ( + 61 )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-5275
SELECT - 46 AS col2, + 57 + MIN( ALL - + 45 ) * 22
----
-46
-933

skipif mysql # not compatible
query II rowsort label-5275
SELECT - 46 AS col2, + 57 + MIN ( ALL - + 45 ) * 22
----
-46
-933

query I rowsort
SELECT - 5 - 91
----
-96

query I rowsort
SELECT ALL - 49 * - 52
----
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT ALL COUNT( DISTINCT - + 21 ) * - + COALESCE ( - COUNT( * ), - 19 )
----
1

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL COUNT ( DISTINCT - + 21 ) * - + COALESCE ( - COUNT ( * ), - 19 )
----
1

query I rowsort
SELECT ALL + 22 - 82 AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5280
SELECT - 57 + MAX( ALL + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT - 57 + MAX ( ALL + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT + 42 * 7 + + 52 DIV 55
----
294

skipif mysql # not compatible
query I rowsort label-5281
SELECT + 42 * 7 + + 52 / 55
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT 95 / 16 + - 50 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT 95 / 16 + - 50 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 67 * 8 + + + 53
----
-483

query II rowsort
SELECT ALL + 70, ( ( - 0 ) ) + 27 AS col0
----
70
27

query I rowsort
SELECT - 15 * - 22 AS col1
----
330

query I rowsort
SELECT + 91 + + - 88 * + - 41
----
3699

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT + COUNT( * ) * 37 * - 4 + + 73 + + 3
----
-72

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT + COUNT ( * ) * 37 * - 4 + + 73 + + 3
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT - ( - + COUNT( * ) ) * + 8 + + 80 * + COUNT( * ) col2
----
88

skipif mysql # not compatible
query I rowsort label-5288
SELECT - ( - + COUNT ( * ) ) * + 8 + + 80 * + COUNT ( * ) col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT ALL - 17 * 78 * 16 + - MIN( ALL + - ( + 40 ) ) + - 85 + - 15
----
-21276

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL - 17 * 78 * 16 + - MIN ( ALL + - ( + 40 ) ) + - 85 + - 15
----
-21276

query I rowsort
SELECT - + 8 + + 26 + + 56 - - 43 AS col2
----
117

query I rowsort
SELECT + - ( + 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT - COUNT( - - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-5292
SELECT - COUNT ( - - 66 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5293
SELECT ALL - 39 * NULLIF ( + 12, 74 * - - 68 * + 61 ) AS col1, CAST( NULL AS SIGNED )
----
-468
NULL

skipif mysql # not compatible
query II rowsort label-5293
SELECT ALL - 39 * NULLIF ( + 12, 74 * - - 68 * + 61 ) AS col1, CAST ( NULL AS INTEGER )
----
-468
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5294
SELECT + - COUNT( * ) + - 90 + + 76 DIV + - 88
----
-91

skipif mysql # not compatible
query I rowsort label-5294
SELECT + - COUNT ( * ) + - 90 + + 76 / + - 88
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT + CASE - 21 WHEN - 8 THEN + 13 + + 69 END + - CASE + + 32 WHEN + + 28 / - + 91 THEN + COUNT( * ) * - 53 * + 74 + - 7 * - 15 ELSE 68 * - + MIN( 75 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT + CASE - 21 WHEN - 8 THEN + 13 + + 69 END + - CASE + + 32 WHEN + + 28 / - + 91 THEN + COUNT ( * ) * - 53 * + 74 + - 7 * - 15 ELSE 68 * - + MIN ( 75 ) END AS col2
----
NULL

query I rowsort
SELECT ALL 39 * + 10
----
390

query I rowsort
SELECT DISTINCT + 95 * + 97 + + 91 + - 37
----
9269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5298
SELECT DISTINCT + CASE 82 WHEN - 43 THEN SUM( ALL + 37 ) WHEN + MAX( 31 ) THEN + 82 ELSE + 87 END DIV COALESCE ( 12, - CASE + 78 WHEN - COALESCE ( 69, COUNT( * ) ) THEN - SUM( + 47 ) END ) + + - 43
----
-36

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT + CASE 82 WHEN - 43 THEN SUM ( ALL + 37 ) WHEN + MAX ( 31 ) THEN + 82 ELSE + 87 END / COALESCE ( 12, - CASE + 78 WHEN - COALESCE ( 69, COUNT ( * ) ) THEN - SUM ( + 47 ) END ) + + - 43
----
-36

query I rowsort
SELECT + - 32 * + 7 AS col2
----
-224

query I rowsort
SELECT - - 68 * + - 84
----
-5712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5301
SELECT ALL + 62 DIV - ( + + 84 ), 37 + - CAST( SUM( - 91 ) AS SIGNED ) * + + 98 AS col2
----
0
8955

skipif mysql # not compatible
query II rowsort label-5301
SELECT ALL + 62 / - ( + + 84 ), 37 + - CAST ( SUM ( - 91 ) AS INTEGER ) * + + 98 AS col2
----
0
8955

onlyif mysql # aggregate syntax: 
query II rowsort label-5302
SELECT - 69 AS col2, + COUNT( * ) AS col2
----
-69
1

skipif mysql # not compatible
query II rowsort label-5302
SELECT - 69 AS col2, + COUNT ( * ) AS col2
----
-69
1

query I rowsort
SELECT - + 51 + - 2 AS col1
----
-53

query II rowsort
SELECT - NULLIF ( + 58, - - 42 ) AS col1, 99 * + 93 * - 43 AS col2
----
-58
-395901

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT - - SUM( - + 96 ) + + 84 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5305
SELECT - - SUM ( - + 96 ) + + 84 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL + 71 - + CASE - + ( + + 66 ) WHEN 72 THEN NULL ELSE - - COUNT( * ) END + + 81 + + + 30 + - 62 * - 21
----
1483

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL + 71 - + CASE - + ( + + 66 ) WHEN 72 THEN NULL ELSE - - COUNT ( * ) END + + 81 + + + 30 + - 62 * - 21
----
1483

query I rowsort
SELECT ALL ( ( + + 62 ) ) AS col0
----
62

query I rowsort
SELECT ALL 87 * - - 97 AS col1
----
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT DISTINCT MAX( - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT MAX ( - 61 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5310
SELECT - CAST( + - COUNT( * ) AS SIGNED ), 13 - + + COUNT( * ) + 25 - - - 90 AS col1
----
1
-53

skipif mysql # not compatible
query II rowsort label-5310
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ), 13 - + + COUNT ( * ) + 25 - - - 90 AS col1
----
1
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL CASE - 71 WHEN - 93 THEN + 40 + + 33 + - + 10 + COUNT( * ) * - 72 + + - 11 + - + 39 / + 52 + 12 * 91 / NULLIF ( - 42, + 60 * + - 82 + + 44 + + 93 ) * - 50 + - 22 * + 92 * - + 36 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL CASE - 71 WHEN - 93 THEN + 40 + + 33 + - + 10 + COUNT ( * ) * - 72 + + - 11 + - + 39 / + 52 + 12 * 91 / NULLIF ( - 42, + 60 * + - 82 + + 44 + + 93 ) * - 50 + - 22 * + 92 * - + 36 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5312
SELECT ALL NULLIF ( ( + CAST( - - NULLIF ( - 20, 61 + + 4 * - 90 ) AS SIGNED ) ), - + COUNT( * ) * + + 91 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL NULLIF ( ( + CAST ( - - NULLIF ( - 20, 61 + + 4 * - 90 ) AS INTEGER ) ), - + COUNT ( * ) * + + 91 ) AS col1
----
-20

query I rowsort
SELECT - 27 + - 44 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT - 3 + - + COUNT( * ) * + ( + 61 )
----
-64

skipif mysql # not compatible
query I rowsort label-5314
SELECT - 3 + - + COUNT ( * ) * + ( + 61 )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5315
SELECT ALL - 27 DIV 97 * - 81
----
0

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL - 27 / 97 * - 81
----
0

query I rowsort
SELECT DISTINCT - ( - 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT ALL - 19 + 49 + + COUNT( * ) + + MIN( 99 ) * + + 28
----
2803

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL - 19 + 49 + + COUNT ( * ) + + MIN ( 99 ) * + + 28
----
2803

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT ALL - CAST( - COALESCE ( - MAX( ALL 89 ), 41 * 95 + - - 47 ) AS SIGNED ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL - CAST ( - COALESCE ( - MAX ( ALL 89 ), 41 * 95 + - - 47 ) AS INTEGER ) AS col2
----
-89

query I rowsort
SELECT 25 * + 16
----
400

query I rowsort
SELECT ALL + 43 + + - 39 AS col1
----
4

query I rowsort
SELECT 94 * - 70 * + + 76 AS col1
----
-500080

query I rowsort
SELECT + 17 - 85 + 10 AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5323
SELECT + CASE + + 92 WHEN + - 76 + 60 * - - CAST( NULL AS SIGNED ) THEN + CASE + + 12 WHEN 4 / + - 99 * - + 87 THEN - MAX( - 79 ) END WHEN + 94 THEN - - 56 + - 74 ELSE NULL END * 15 * 14 + + 16 + 68 / - 56 * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT + CASE + + 92 WHEN + - 76 + 60 * - - CAST ( NULL AS INTEGER ) THEN + CASE + + 12 WHEN 4 / + - 99 * - + 87 THEN - MAX ( - 79 ) END WHEN + 94 THEN - - 56 + - 74 ELSE NULL END * 15 * 14 + + 16 + 68 / - 56 * 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT - - MAX( - 47 ) + + 74 + + 17 + + COUNT( * ) col2
----
45

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT - - MAX ( - 47 ) + + 74 + + 17 + + COUNT ( * ) col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT + 99 * + COUNT( * ) + - + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-5325
SELECT + 99 * + COUNT ( * ) + - + COUNT ( * )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5326
SELECT DISTINCT - + 49 + + 18 + COUNT( * ) - 37 + + 38 DIV ( - + ( - 84 ) ) * 33 * COUNT( - 3 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT - + 49 + + 18 + COUNT ( * ) - 37 + + 38 / ( - + ( - 84 ) ) * 33 * COUNT ( - 3 ) AS col2
----
-67

query I rowsort
SELECT DISTINCT + 91 + + 97
----
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT DISTINCT COALESCE ( 88, ( + 85 ) * + + CASE + + 42 WHEN 80 * 11 THEN NULL ELSE - 59 * 38 END, ( - 57 ) ) + + 41 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT COALESCE ( 88, ( + 85 ) * + + CASE + + 42 WHEN 80 * 11 THEN NULL ELSE - 59 * 38 END, ( - 57 ) ) + + 41 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 10 + + 76 * 83 AS col0
----
6318

query I rowsort
SELECT ALL - 36 - 24 AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5331
SELECT + 33 * - 85 * CASE 75 WHEN - 83 THEN - COUNT( * ) * + CAST( NULL AS SIGNED ) * 95 * + - 25 + + 27 ELSE NULL END / + - 24 + - AVG ( CAST( NULL AS SIGNED ) ) + + 46 + 25 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT + 33 * - 85 * CASE 75 WHEN - 83 THEN - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 95 * + - 25 + + 27 ELSE NULL END / + - 24 + - AVG ( CAST ( NULL AS INTEGER ) ) + + 46 + 25 * + 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5332
SELECT + + CAST( + 10 AS SIGNED ) AS col1, + ( COUNT( * ) ) AS col1
----
10
1

skipif mysql # not compatible
query II rowsort label-5332
SELECT + + CAST ( + 10 AS INTEGER ) AS col1, + ( COUNT ( * ) ) AS col1
----
10
1

query I rowsort
SELECT 32 * + 7 AS col0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT + NULLIF ( + 81, + 50 + COUNT( * ) - 77 * - 30 + + + MAX( 56 ) * - + 89 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5334
SELECT + NULLIF ( + 81, + 50 + COUNT ( * ) - 77 * - 30 + + + MAX ( 56 ) * - + 89 ) AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5335
SELECT DISTINCT - 33 * - - 51 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT - 33 * - - 51 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 17 * + 30 AS col1
----
510

query I rowsort
SELECT 81 * - + 27 col2
----
-2187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5338
SELECT 12 - - 7 - - CAST( NULL AS SIGNED ) * + 58 / + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT 12 - - 7 - - CAST ( NULL AS INTEGER ) * + 58 / + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT DISTINCT - + AVG ( + 34 ) * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT - + AVG ( + 34 ) * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 11 - - + 36 AS col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5341
SELECT ALL 93 DIV COUNT( * ) * + 8 * + 69 AS col1
----
51336

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL 93 / COUNT ( * ) * + 8 * + 69 AS col1
----
51336

query I rowsort
SELECT NULLIF ( + + 68, + 53 + - + 41 - + 15 ) * + - 35 + + + 65
----
-2315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5343
SELECT ALL 40 DIV + COUNT( * ) col1
----
40

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL 40 / + COUNT ( * ) col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5344
SELECT SUM( ALL 13 ) DIV + ( 37 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5344
SELECT SUM ( ALL 13 ) / + ( 37 ) AS col2
----
0

query I rowsort
SELECT 32 * + 24
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT - NULLIF ( - MIN( - COALESCE ( - 44, + COALESCE ( + ( - 45 ), + - 57 ) + + - 75 * - 48 ) ), - 20 + - ( 5 ) / + COUNT( * ) ) * + 25
----
1100

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT - NULLIF ( - MIN ( - COALESCE ( - 44, + COALESCE ( + ( - 45 ), + - 57 ) + + - 75 * - 48 ) ), - 20 + - ( 5 ) / + COUNT ( * ) ) * + 25
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT ALL - ( MAX( - ( + - 53 ) ) ) + - 55 AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL - ( MAX ( - ( + - 53 ) ) ) + - 55 AS col2
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5348
SELECT 15 + - - 17 DIV + 24, + 8 * + 74 + + - 93 DIV + ( - + CASE - 75 WHEN COUNT( * ) THEN NULL WHEN - - 57 + 46 THEN - + 60 WHEN + - 4 THEN - + 21 ELSE NULL END ) + + CAST( NULL AS SIGNED ) AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-5348
SELECT 15 + - - 17 / + 24, + 8 * + 74 + + - 93 / + ( - + CASE - 75 WHEN COUNT ( * ) THEN NULL WHEN - - 57 + 46 THEN - + 60 WHEN + - 4 THEN - + 21 ELSE NULL END ) + + CAST ( NULL AS INTEGER ) AS col0
----
15
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5349
SELECT CAST( NULL AS SIGNED ) + + - 93 + 55 + + - ( - - 52 ) / + 66 * 76 / - 54 * + + MAX( ALL - CAST( - 25 AS DECIMAL ) ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT CAST ( NULL AS INTEGER ) + + - 93 + 55 + + - ( - - 52 ) / + 66 * 76 / - 54 * + + MAX ( ALL - CAST ( - 25 AS REAL ) ) * 17
----
NULL

query III rowsort
SELECT ALL 76 AS col2, 94 + + - 44, - 54 AS col0
----
76
50
-54

query II rowsort
SELECT 11 * + 55 * + + 1, + 5 AS col2
----
605
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT COUNT( 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5352
SELECT COUNT ( 55 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5353
SELECT 33 DIV + 35 + 97 + 17 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-5353
SELECT 33 / + 35 + 97 + 17 AS col1
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-5354
SELECT + 74 AS col2, - 52 * + COUNT( 29 )
----
74
-52

skipif mysql # not compatible
query II rowsort label-5354
SELECT + 74 AS col2, - 52 * + COUNT ( 29 )
----
74
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5355
SELECT DISTINCT - CASE + ( 55 ) WHEN + 12 THEN NULL WHEN + 30 * + + COUNT( * ) THEN NULL ELSE 40 END DIV + + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT - CASE + ( 55 ) WHEN + 12 THEN NULL WHEN + 30 * + + COUNT ( * ) THEN NULL ELSE 40 END / + + 72 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5356
SELECT + CAST( - 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-5356
SELECT + CAST ( - 74 AS INTEGER )
----
-74

query I rowsort
SELECT DISTINCT + 20 - 9
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5358
SELECT ALL + + 84 DIV 12
----
7

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + + 84 / 12
----
7

query I rowsort
SELECT ( - 17 ) * + + 31 + + + 12 * + 40 col0
----
-47

query I rowsort
SELECT ALL - 81 * + - 25 + 84 + + 53 AS col2
----
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + + COALESCE ( - + COUNT( * ), - 61 * - - 27 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5361
SELECT + + COALESCE ( - + COUNT ( * ), - 61 * - - 27 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT - 63 * - - 1 + - - 24 * - - 73 * - ( + ( - COUNT( * ) ) )
----
1689

skipif mysql # not compatible
query I rowsort label-5362
SELECT - 63 * - - 1 + - - 24 * - - 73 * - ( + ( - COUNT ( * ) ) )
----
1689

query II rowsort
SELECT - 87 * - ( + ( 4 ) ) * - 25 - + 17 AS col0, + 51 AS col1
----
-8717
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT 57 + + MIN( + 92 )
----
149

skipif mysql # not compatible
query I rowsort label-5364
SELECT 57 + + MIN ( + 92 )
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT + CAST( + 56 AS SIGNED ) * - 51 + - 48 - - + 2 + + NULLIF ( - + 47, + + 90 ) * + 95 * + 66 / + 81 * - 81 / - CAST( NULL AS SIGNED ) - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT + CAST ( + 56 AS INTEGER ) * - 51 + - 48 - - + 2 + + NULLIF ( - + 47, + + 90 ) * + 95 * + 66 / + 81 * - 81 / - CAST ( NULL AS INTEGER ) - - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT - 54 * + COUNT( * ) * + 39 AS col1
----
-2106

skipif mysql # not compatible
query I rowsort label-5366
SELECT - 54 * + COUNT ( * ) * + 39 AS col1
----
-2106

query I rowsort
SELECT DISTINCT - - 29 * + - 13 AS col1
----
-377

query II rowsort
SELECT ALL 88 col0, 57 + 33 + 88 + - - 39
----
88
217

query I rowsort
SELECT ALL 52 * 21
----
1092

onlyif mysql # aggregate syntax: 
query II rowsort label-5370
SELECT ALL COUNT( * ), + 38 + + 67 AS col0
----
1
105

skipif mysql # not compatible
query II rowsort label-5370
SELECT ALL COUNT ( * ), + 38 + + 67 AS col0
----
1
105

query I rowsort
SELECT DISTINCT - COALESCE ( - + 9, + + ( - 72 ) ) * 50 AS col0
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT 90 * SUM( ( - + ( - + 14 ) ) ) * - COUNT( * ) AS col0
----
-1260

skipif mysql # not compatible
query I rowsort label-5372
SELECT 90 * SUM ( ( - + ( - + 14 ) ) ) * - COUNT ( * ) AS col0
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT COUNT( * ) + ( - - 90 )
----
91

skipif mysql # not compatible
query I rowsort label-5373
SELECT COUNT ( * ) + ( - - 90 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL COUNT( * ) * 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL COUNT ( * ) * 69 AS col2
----
69

query II rowsort
SELECT 44 AS col2, - 85 * - 10
----
44
850

query II rowsort
SELECT - 5 AS col1, 79 * + 65
----
-5
5135

query I rowsort
SELECT DISTINCT + 46 + 53 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5378
SELECT ALL + COALESCE ( - CAST( + + COUNT( * ) AS SIGNED ), - - COALESCE ( COUNT( * ), + 74 ), 10 ) * - - SUM( + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + COALESCE ( - CAST ( + + COUNT ( * ) AS INTEGER ), - - COALESCE ( COUNT ( * ), + 74 ), 10 ) * - - SUM ( + 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT DISTINCT COALESCE ( - - COUNT( * ), + 29 )
----
1

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT COALESCE ( - - COUNT ( * ), + 29 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5380
SELECT 74, 10 + - COUNT( * ) AS col1
----
74
9

skipif mysql # not compatible
query II rowsort label-5380
SELECT 74, 10 + - COUNT ( * ) AS col1
----
74
9

query II rowsort
SELECT DISTINCT 21 col1, 33
----
21
33

query II rowsort
SELECT - 56 * - 3 AS col1, + 31 + COALESCE ( - - 79, 90, + 92 * + 1 )
----
168
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5383
SELECT + MAX( - - CAST( NULL AS SIGNED ) ) * - 72 - + MAX( ALL - + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT + MAX ( - - CAST ( NULL AS INTEGER ) ) * - 72 - + MAX ( ALL - + 64 )
----
NULL

query I rowsort
SELECT DISTINCT ( 66 ) + 94 * + ( - 10 ) AS col1
----
-874

onlyif mysql # DIV for integer division: 
query I rowsort label-5385
SELECT + 8 DIV 26 DIV - - ( + 26 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5385
SELECT + 8 / 26 / - - ( + 26 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT + NULLIF ( + ( + + COUNT( * ) ), - - ( 28 ) * + + 77 + + 51 ) + 54 + - 76 * + - ( - COUNT( * ) ) * - + 63 AS col0
----
4843

skipif mysql # not compatible
query I rowsort label-5386
SELECT + NULLIF ( + ( + + COUNT ( * ) ), - - ( 28 ) * + + 77 + + 51 ) + 54 + - 76 * + - ( - COUNT ( * ) ) * - + 63 AS col0
----
4843

query I rowsort
SELECT + 26 * 10
----
260

onlyif mysql # DIV for integer division: 
query II rowsort label-5388
SELECT - 87 AS col2, + 6 DIV + - 91
----
-87
0

skipif mysql # not compatible
query II rowsort label-5388
SELECT - 87 AS col2, + 6 / + - 91
----
-87
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT DISTINCT + 35 * - ( - 15 ) * - + 44 + 16 + - 17 + - 30 DIV - 33 * - + 78 * + 81 * - 55
----
-23101

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT + 35 * - ( - 15 ) * - + 44 + 16 + - 17 + - 30 / - 33 * - + 78 * + 81 * - 55
----
-23101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5390
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) - + 19
----
-18

skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) - + 19
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-5391
SELECT + - 16, + ( + COUNT( * ) ) AS col2
----
-16
1

skipif mysql # not compatible
query II rowsort label-5391
SELECT + - 16, + ( + COUNT ( * ) ) AS col2
----
-16
1

query I rowsort
SELECT DISTINCT + 32 * - + 99
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + SUM( - + 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-5393
SELECT + SUM ( - + 74 ) AS col1
----
-74

query II rowsort
SELECT + 14 AS col1, 59
----
14
59

query I rowsort
SELECT NULLIF ( + 35, 59 )
----
35

query I rowsort
SELECT + 61 * + ( 13 ) - 94 AS col2
----
699

query I rowsort
SELECT + + NULLIF ( + 76, + 63 )
----
76

query I rowsort
SELECT - + NULLIF ( - + 75, 21 - ( 8 ) ) + + + 71 col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT + - 44 * - COUNT( * ) * - + 74 col2
----
-3256

skipif mysql # not compatible
query I rowsort label-5399
SELECT + - 44 * - COUNT ( * ) * - + 74 col2
----
-3256

onlyif mysql # aggregate syntax: 
query II rowsort label-5400
SELECT - 65, SUM( + 0 ) AS col1
----
-65
0

skipif mysql # not compatible
query II rowsort label-5400
SELECT - 65, SUM ( + 0 ) AS col1
----
-65
0

query I rowsort
SELECT - CASE + 3 WHEN 74 * + 76 + 89 + 42 THEN NULL ELSE - 30 + + 38 + 7 END AS col0
----
-15

query I rowsort
SELECT + 52 * 71 + 46
----
3738

onlyif mysql # aggregate syntax: 
query II rowsort label-5403
SELECT - 21, COUNT( * ) * + MAX( ALL + ( + - 87 ) ) AS col1
----
-21
-87

skipif mysql # not compatible
query II rowsort label-5403
SELECT - 21, COUNT ( * ) * + MAX ( ALL + ( + - 87 ) ) AS col1
----
-21
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT - - SUM( DISTINCT - + 33 ) DIV - - COUNT( * ) col0
----
-33

skipif mysql # not compatible
query I rowsort label-5404
SELECT - - SUM ( DISTINCT - + 33 ) / - - COUNT ( * ) col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5405
SELECT DISTINCT + + CASE 7 WHEN + CAST( NULL AS SIGNED ) * - 92 THEN NULL WHEN + + COUNT( * ) THEN + 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + + CASE 7 WHEN + CAST ( NULL AS INTEGER ) * - 92 THEN NULL WHEN + + COUNT ( * ) THEN + 29 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT - 85 * + 11 + + 13 - - 31 + - NULLIF ( 17, + + 46 * + + 60 + + + 78 * COUNT( * ) ) - SUM( DISTINCT 10 ) * - - COUNT( * ) * + - ( + 31 )
----
-598

skipif mysql # not compatible
query I rowsort label-5406
SELECT - 85 * + 11 + + 13 - - 31 + - NULLIF ( 17, + + 46 * + + 60 + + + 78 * COUNT ( * ) ) - SUM ( DISTINCT 10 ) * - - COUNT ( * ) * + - ( + 31 )
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT - ( - - 70 ) * COUNT( * ) + - ( - 79 ) + - 18 * + - COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-5407
SELECT - ( - - 70 ) * COUNT ( * ) + - ( - 79 ) + - 18 * + - COUNT ( * ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT + ( 59 ) - COUNT( * ) col2
----
58

skipif mysql # not compatible
query I rowsort label-5408
SELECT + ( 59 ) - COUNT ( * ) col2
----
58

query I rowsort
SELECT ALL + ( 51 ) AS col1
----
51

query I rowsort
SELECT - 28 * + 97 AS col1
----
-2716

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT - 16 - - 73 + ( + MAX( DISTINCT + 82 ) ) AS col2
----
139

skipif mysql # not compatible
query I rowsort label-5411
SELECT - 16 - - 73 + ( + MAX ( DISTINCT + 82 ) ) AS col2
----
139

query I rowsort
SELECT ALL + 59 * - 41 * - 5
----
12095

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT + COUNT( * ) + - + 95
----
-94

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT + COUNT ( * ) + - + 95
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL CASE 44 WHEN - - 44 + + 90 * - COUNT( * ) THEN - + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL CASE 44 WHEN - - 44 + + 90 * - COUNT ( * ) THEN - + 12 END
----
NULL

query I rowsort
SELECT DISTINCT - 87 + - + 54 * - 51 + - 95 AS col0
----
2572

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL - MAX( - - 93 ) + - 98 - + 59 * - 74 AS col2
----
4175

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL - MAX ( - - 93 ) + - 98 - + 59 * - 74 AS col2
----
4175

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT - 56 + + + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-5417
SELECT - 56 + + + COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT - 9 + + COALESCE ( + + 16, 70, - COUNT( ALL - + NULLIF ( + ( 90 ), - 5 ) ) ) - - + 96
----
103

skipif mysql # not compatible
query I rowsort label-5418
SELECT - 9 + + COALESCE ( + + 16, 70, - COUNT ( ALL - + NULLIF ( + ( 90 ), - 5 ) ) ) - - + 96
----
103

query I rowsort
SELECT ALL 97 - 71 * 45 * + + 23 + - - 96 * - 13 AS col0
----
-74636

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT - COUNT( * ) * 34 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5420
SELECT - COUNT ( * ) * 34 AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5421
SELECT ALL - ( + 21 ) AS col0, MIN( DISTINCT + - ( - CAST( + 14 AS SIGNED ) ) ) AS col0
----
-21
14

skipif mysql # not compatible
query II rowsort label-5421
SELECT ALL - ( + 21 ) AS col0, MIN ( DISTINCT + - ( - CAST ( + 14 AS INTEGER ) ) ) AS col0
----
-21
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT + CAST( NULL AS SIGNED ) + + - ( - 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT + CAST ( NULL AS INTEGER ) + + - ( - 8 ) AS col1
----
NULL

query I rowsort
SELECT + 33 + - + 85 col1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5424
SELECT ALL 73 DIV 23
----
3

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL 73 / 23
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT - 86 * - + CAST( - 27 AS SIGNED )
----
-2322

skipif mysql # not compatible
query I rowsort label-5425
SELECT - 86 * - + CAST ( - 27 AS INTEGER )
----
-2322

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT MIN( DISTINCT + ( 41 ) )
----
41

skipif mysql # not compatible
query I rowsort label-5426
SELECT MIN ( DISTINCT + ( 41 ) )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5427
SELECT - 34 * - NULLIF ( - - 43, + 35 * - + ( - 76 ) ) + 99, - COUNT( * ) * + COUNT( ALL + 91 ) * COUNT( * ) AS col1
----
1561
-1

skipif mysql # not compatible
query II rowsort label-5427
SELECT - 34 * - NULLIF ( - - 43, + 35 * - + ( - 76 ) ) + 99, - COUNT ( * ) * + COUNT ( ALL + 91 ) * COUNT ( * ) AS col1
----
1561
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5428
SELECT + - ( + MIN( + + 29 ) ) * - COALESCE ( + 99, + 63 * + 59 + + 55 + + 74 + - 57 + - + 58, 63 DIV - 84 )
----
2871

skipif mysql # not compatible
query I rowsort label-5428
SELECT + - ( + MIN ( + + 29 ) ) * - COALESCE ( + 99, + 63 * + 59 + + 55 + + 74 + - 57 + - + 58, 63 / - 84 )
----
2871

query I rowsort
SELECT + - 99 * - 89 + - 65
----
8746

query I rowsort
SELECT ALL + ( + 11 ) * 18 * + + 71 + - + 11 + + 44 * + 57 AS col0
----
16555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5431
SELECT DISTINCT - MIN( DISTINCT + + 37 ) * + 64 DIV + - 63 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT - MIN ( DISTINCT + + 37 ) * + 64 / + - 63 AS col2
----
37

query I rowsort
SELECT ALL CASE - + 47 WHEN 7 THEN 90 WHEN - 21 THEN NULL END * 50 col0
----
NULL

query I rowsort
SELECT + 58 * 81 * + - 42
----
-197316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5434
SELECT ALL - 5 DIV + 30 + + - 74 AS col0, + 16 + 51 + COALESCE ( ( - + 14 ), - 9 * - ( + 95 ) - + 60 * + - 11 * - COALESCE ( - + 27, - 67 * + 64 - 77 + 51 + - 47 - - COALESCE ( + 11, + 18 DIV - NULLIF ( + 59, - + ( + 67 ) + + 61 - + CAST( NULL AS SIGNED ) ), - 97 ) * - + 34 ) * COUNT( * ) + + ( COUNT( * ) ) ) AS col0
----
-74
53

skipif mysql # not compatible
query II rowsort label-5434
SELECT ALL - 5 / + 30 + + - 74 AS col0, + 16 + 51 + COALESCE ( ( - + 14 ), - 9 * - ( + 95 ) - + 60 * + - 11 * - COALESCE ( - + 27, - 67 * + 64 - 77 + 51 + - 47 - - COALESCE ( + 11, + 18 / - NULLIF ( + 59, - + ( + 67 ) + + 61 - + CAST ( NULL AS INTEGER ) ), - 97 ) * - + 34 ) * COUNT ( * ) + + ( COUNT ( * ) ) ) AS col0
----
-74
53

query I rowsort
SELECT + - 72 + 33 AS col2
----
-39

query II rowsort
SELECT ( + - ( - 36 ) ) AS col2, 75 AS col0
----
36
75

query I rowsort
SELECT ALL + 0 + + 83
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5438
SELECT - 28 * 20 + + 18 AS col2, - COUNT( * ) col0
----
-542
-1

skipif mysql # not compatible
query II rowsort label-5438
SELECT - 28 * 20 + + 18 AS col2, - COUNT ( * ) col0
----
-542
-1

query II rowsort
SELECT - 34 * + 61 + 44, 81 * + 5 AS col1
----
-2030
405

query I rowsort
SELECT 25 + - 91
----
-66

query I rowsort
SELECT ALL 75 + + 14 AS col1
----
89

query I rowsort
SELECT 34 + - + 90 + 33 * + 3
----
43

query I rowsort
SELECT DISTINCT - 83 + 18
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5444
SELECT 15 / - NULLIF ( + CAST( COUNT( * ) AS SIGNED ), 75 * - + CAST( NULL AS SIGNED ) ) * - - CASE 37 WHEN - 54 THEN NULL ELSE + + ( 68 ) END + 2 + - CASE + - 67 WHEN 69 THEN 94 ELSE NULL END * COUNT( * ) / - + MAX( DISTINCT 73 ) * COUNT( * ) + - 40 * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT 15 / - NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), 75 * - + CAST ( NULL AS INTEGER ) ) * - - CASE 37 WHEN - 54 THEN NULL ELSE + + ( 68 ) END + 2 + - CASE + - 67 WHEN 69 THEN 94 ELSE NULL END * COUNT ( * ) / - + MAX ( DISTINCT 73 ) * COUNT ( * ) + - 40 * 4
----
NULL

query I rowsort
SELECT 50 + + 51
----
101

query I rowsort
SELECT 21 * - - 67
----
1407

query I rowsort
SELECT 60 + - 36 AS col0
----
24

query II rowsort
SELECT ALL 26, + 26
----
26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT 40 DIV - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5449
SELECT 40 / - 57 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT DISTINCT - 20 - 34 * 13 * MIN( ALL - 95 )
----
41970

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT - 20 - 34 * 13 * MIN ( ALL - 95 )
----
41970

query II rowsort
SELECT ALL 84, - 80 AS col0
----
84
-80

query II rowsort
SELECT - 85 AS col2, + 84
----
-85
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT + COUNT( - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-5453
SELECT + COUNT ( - 25 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT COALESCE ( + - ( NULLIF ( + ( - 11 ), 97 / + - 23 ) ), - CAST( - 91 AS SIGNED ) + + + 5 ) - + 1 + - 97 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-5454
SELECT COALESCE ( + - ( NULLIF ( + ( - 11 ), 97 / + - 23 ) ), - CAST ( - 91 AS INTEGER ) + + + 5 ) - + 1 + - 97 AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5455
SELECT ( - 96 ) * + + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT ( - 96 ) * + + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5456
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, + 49 * 27 * + 8 * COUNT( * ) * + + 20 AS col2
----
NULL
211680

skipif mysql # not compatible
query II rowsort label-5456
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + 49 * 27 * + 8 * COUNT ( * ) * + + 20 AS col2
----
NULL
211680

query I rowsort
SELECT 63 + NULLIF ( - + 55, + 75 ) * + 71 AS col2
----
-3842

query II rowsort
SELECT 76, 13 AS col2
----
76
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5459
SELECT DISTINCT - + 15 * - ( - + 43 ) * + NULLIF ( + 19, ( - - 86 ) ) * + NULLIF ( - COUNT( * ), + 25 ) + + NULLIF ( + + 33, - - 58 ), COALESCE ( - 84, + - 60 ) col2
----
12288
-84

skipif mysql # not compatible
query II rowsort label-5459
SELECT DISTINCT - + 15 * - ( - + 43 ) * + NULLIF ( + 19, ( - - 86 ) ) * + NULLIF ( - COUNT ( * ), + 25 ) + + NULLIF ( + + 33, - - 58 ), COALESCE ( - 84, + - 60 ) col2
----
12288
-84

query II rowsort
SELECT - - 1, - 30 AS col2
----
1
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 66 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT 17 / 13 + - CAST( NULL AS SIGNED ) - + NULLIF ( + 77, - - 25 - - ( - 75 ) ) * 41 / 96 * + 28 * CAST( - 29 AS SIGNED ) + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT 17 / 13 + - CAST ( NULL AS INTEGER ) - + NULLIF ( + 77, - - 25 - - ( - 75 ) ) * 41 / 96 * + 28 * CAST ( - 29 AS INTEGER ) + - 26
----
NULL

query I rowsort
SELECT ALL 62 + - 21 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT COUNT( * ) * + + 71
----
71

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT COUNT ( * ) * + + 71
----
71

query I rowsort
SELECT DISTINCT 40 + + 14 col1
----
54

query I rowsort
SELECT 5 - 70 * - + 93 AS col1
----
6515

query I rowsort
SELECT 41 * - 56 * - - 12 * + 89
----
-2452128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5468
SELECT DISTINCT 69 * - + ( + - CAST( + 96 AS SIGNED ) ) * - - CAST( NULL AS SIGNED ) * - MIN( ALL - + 38 ) * - 44 + + MAX( + 35 ) * 19 * CAST( 31 AS SIGNED ) * + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT 69 * - + ( + - CAST ( + 96 AS INTEGER ) ) * - - CAST ( NULL AS INTEGER ) * - MIN ( ALL - + 38 ) * - 44 + + MAX ( + 35 ) * 19 * CAST ( 31 AS INTEGER ) * + + 65
----
NULL

query II rowsort
SELECT 31 * - 78, 17 * + - 1 - 90 - - 55 - - 81 * - 77 AS col2
----
-2418
-6289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5470
SELECT ( + + 70 ) - + ( - ( + 95 ) ) * - 18 * + SUM( DISTINCT - CAST( + + 37 AS SIGNED ) ) - + 80 + + 99
----
63359

skipif mysql # not compatible
query I rowsort label-5470
SELECT ( + + 70 ) - + ( - ( + 95 ) ) * - 18 * + SUM ( DISTINCT - CAST ( + + 37 AS INTEGER ) ) - + 80 + + 99
----
63359

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT 50 - + + MAX( + 54 )
----
-4

skipif mysql # not compatible
query I rowsort label-5471
SELECT 50 - + + MAX ( + 54 )
----
-4

query I rowsort
SELECT ALL - 34 * - COALESCE ( - 94, - + 50 ) AS col1
----
-3196

query I rowsort
SELECT DISTINCT - 25 * + 8 AS col1
----
-200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5474
SELECT DISTINCT COUNT( * ) DIV - 86 * - + 1 * + 2 col0
----
0

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT COUNT ( * ) / - 86 * - + 1 * + 2 col0
----
0

query II rowsort
SELECT 69 * 41 AS col2, 77 + + 3 AS col2
----
2829
80

query I rowsort
SELECT 1 + - ( + 66 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT 91 - SUM( ALL - 6 )
----
97

skipif mysql # not compatible
query I rowsort label-5477
SELECT 91 - SUM ( ALL - 6 )
----
97

query II rowsort
SELECT 78 * - - 99, 42 AS col2
----
7722
42

query I rowsort
SELECT 37 * + 58 * - + 53
----
-113738

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT DISTINCT 79 + 56 + 9 + COUNT( + + 97 ) + + CASE + 47 WHEN - 50 THEN 21 WHEN + ( 7 ) THEN + - 28 ELSE NULL END * - 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT 79 + 56 + 9 + COUNT ( + + 97 ) + + CASE + 47 WHEN - 50 THEN 21 WHEN + ( 7 ) THEN + - 28 ELSE NULL END * - 62 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5481
SELECT + MIN( + 14 ), 64 DIV + - ( - 40 ) AS col1
----
14
1

skipif mysql # not compatible
query II rowsort label-5481
SELECT + MIN ( + 14 ), 64 / + - ( - 40 ) AS col1
----
14
1

query I rowsort
SELECT + 31 + + 96 AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5483
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 59 + - + 52 * + CAST( + COUNT( * ) AS DECIMAL ) + + - 96 + - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 59 + - + 52 * + CAST ( + COUNT ( * ) AS REAL ) + + - 96 + - - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 98 * + - 76
----
7448

query I rowsort
SELECT 85 + - 60 * - + 32
----
2005

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT + SUM( + ( + 1 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5486
SELECT + SUM ( + ( + 1 ) ) AS col2
----
1

query I rowsort
SELECT + + 50 * + ( 30 ) * - - NULLIF ( - 99, 60 ) col1
----
-148500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5488
SELECT ALL - 4 * - + 34 + 76 + + 13 DIV + 77 * - MIN( - ( 86 ) ) + SUM( DISTINCT + 8 ) * 39 AS col0
----
524

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL - 4 * - + 34 + 76 + + 13 / + 77 * - MIN ( - ( 86 ) ) + SUM ( DISTINCT + 8 ) * 39 AS col0
----
524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5489
SELECT - 49 * 28 * 25 + - 38 * - 48 + - 81 + COUNT( * ) - - 55 * - 31 * - 16 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT - 49 * 28 * 25 + - 38 * - 48 + - 81 + COUNT ( * ) - - 55 * - 31 * - 16 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT - 93 + + + 4 + + COUNT( * ) + - - 84 + + + 82
----
78

skipif mysql # not compatible
query I rowsort label-5490
SELECT - 93 + + + 4 + + COUNT ( * ) + - - 84 + + + 82
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT ALL + 7 * 31 * + COUNT( * ) - + + 4 + + 72 + + 39 * - 35 col0
----
-1080

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL + 7 * 31 * + COUNT ( * ) - + + 4 + + 72 + + 39 * - 35 col0
----
-1080

query I rowsort
SELECT - NULLIF ( + 44, + + ( - + 19 ) ) * + + 42 AS col1
----
-1848

onlyif mysql # DIV for integer division: 
query I rowsort label-5493
SELECT 37 DIV - 17 + - 34 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5493
SELECT 37 / - 17 + - 34 AS col1
----
-36

query I rowsort
SELECT 1 * - 47 - - 65 + - + 48 * + 50 AS col0
----
-2382

query I rowsort
SELECT - 33 + - 26 AS col0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5496
SELECT + COUNT( 34 ) DIV 79 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5496
SELECT + COUNT ( 34 ) / 79 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5497
SELECT - 38 * ( + - 4 ) DIV MAX( 57 ) + 65 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5497
SELECT - 38 * ( + - 4 ) / MAX ( 57 ) + 65 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT MIN( ALL + - 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5498
SELECT MIN ( ALL + - 21 ) AS col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT - 27 DIV 77 * - 69 * - 12
----
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT - 27 / 77 * - 69 * - 12
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5500
SELECT + COUNT( ALL 72 ) DIV COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5500
SELECT + COUNT ( ALL 72 ) / COUNT ( * ) col1
----
1

query I rowsort
SELECT ALL 74 * 14 AS col1
----
1036

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT + SUM( DISTINCT + 81 ) + + 52 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-5502
SELECT + SUM ( DISTINCT + 81 ) + + 52 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL + ( - ( COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + ( - ( COUNT ( * ) ) ) AS col1
----
-1

query I rowsort
SELECT + 56 + - 37 AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5505
SELECT ALL 67 * CAST( - 79 AS SIGNED ) AS col0
----
-5293

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL 67 * CAST ( - 79 AS INTEGER ) AS col0
----
-5293

query I rowsort
SELECT DISTINCT 79 * - + 53
----
-4187

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT + ( 29 ) + - + COUNT( * ) + COUNT( DISTINCT + ( + + 23 ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5507
SELECT + ( 29 ) + - + COUNT ( * ) + COUNT ( DISTINCT + ( + + 23 ) ) AS col1
----
29

query I rowsort
SELECT + 8 * - 46
----
-368

query I rowsort
SELECT ALL 14 * 34 * + 43 AS col2
----
20468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5510
SELECT + CAST( NULL AS SIGNED ) + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT + CAST ( NULL AS INTEGER ) + 1 AS col2
----
NULL

query I rowsort
SELECT ALL 78 + 22
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-5512
SELECT - COALESCE ( - 54, 56 DIV - 64 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5512
SELECT - COALESCE ( - 54, 56 / - 64 ) AS col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT ALL 1 DIV 26
----
0

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL 1 / 26
----
0

query I rowsort
SELECT DISTINCT 13 + 89 AS col1
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-5515
SELECT ALL 72 + - 45 DIV - 94 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL 72 + - 45 / - 94 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT + NULLIF ( COUNT( ALL 7 ), - 16 ) * + 19
----
19

skipif mysql # not compatible
query I rowsort label-5516
SELECT + NULLIF ( COUNT ( ALL 7 ), - 16 ) * + 19
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5517
SELECT - CASE - 34 WHEN MIN( DISTINCT 82 ) - + ( 99 ) THEN NULL WHEN 64 * 42 + 40 THEN + 27 DIV 78 ELSE 96 END
----
-96

skipif mysql # not compatible
query I rowsort label-5517
SELECT - CASE - 34 WHEN MIN ( DISTINCT 82 ) - + ( 99 ) THEN NULL WHEN 64 * 42 + 40 THEN + 27 / 78 ELSE 96 END
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT ALL 65 DIV 5 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL 65 / 5 AS col1
----
13

query I rowsort
SELECT - ( + COALESCE ( 39, 10 ) )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-5520
SELECT + NULLIF ( 41, 48 * 42 + 42 ) DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-5520
SELECT + NULLIF ( 41, 48 * 42 + 42 ) / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT - 12 * MIN( ALL + NULLIF ( 1, - 93 ) * + 1 )
----
-12

skipif mysql # not compatible
query I rowsort label-5521
SELECT - 12 * MIN ( ALL + NULLIF ( 1, - 93 ) * + 1 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL - ( 16 ) + 19 * + MAX( DISTINCT - 77 ) col1
----
-1479

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL - ( 16 ) + 19 * + MAX ( DISTINCT - 77 ) col1
----
-1479

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT DISTINCT COUNT( DISTINCT 67 ) * 58
----
58

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT COUNT ( DISTINCT 67 ) * 58
----
58

query I rowsort
SELECT - 76 * 33
----
-2508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5525
SELECT ALL + ( 85 ) DIV - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL + ( 85 ) / - COUNT ( * )
----
-85

query I rowsort
SELECT - 16 * + 22 + - 3 * 28
----
-436

onlyif mysql # DIV for integer division: 
query I rowsort label-5527
SELECT DISTINCT + 63 DIV 13 - 70 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT + 63 / 13 - 70 AS col0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5528
SELECT DISTINCT + COUNT( * ) DIV + 56 - COUNT( * ) * - 27
----
27

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT + COUNT ( * ) / + 56 - COUNT ( * ) * - 27
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5529
SELECT + CAST( ( + NULLIF ( - 77, + 9 * 95 ) ) AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-5529
SELECT + CAST ( ( + NULLIF ( - 77, + 9 * 95 ) ) AS INTEGER )
----
-77

query I rowsort
SELECT ALL + CASE 29 WHEN 47 / 15 THEN NULL ELSE 2 * + 30 END
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5531
SELECT CAST( - NULLIF ( 77, - AVG ( 38 ) / MAX( 10 ) ) AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-5531
SELECT CAST ( - NULLIF ( 77, - AVG ( 38 ) / MAX ( 10 ) ) AS INTEGER )
----
-77

query I rowsort
SELECT - 22 * 2 col1
----
-44

query I rowsort
SELECT 5 * - 77 + 29
----
-356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5534
SELECT 42 * + CAST( NULL AS SIGNED ) + CAST( - 21 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT 42 * + CAST ( NULL AS INTEGER ) + CAST ( - 21 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT ALL + CAST( + 33 AS SIGNED ) * + 81 AS col1
----
2673

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL + CAST ( + 33 AS INTEGER ) * + 81 AS col1
----
2673

query I rowsort
SELECT - 86 * 82
----
-7052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5537
SELECT ALL + COUNT( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL + COUNT ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT - SUM( 24 ) * 4
----
-96

skipif mysql # not compatible
query I rowsort label-5538
SELECT - SUM ( 24 ) * 4
----
-96

query I rowsort
SELECT - 68 - + 50
----
-118

query I rowsort
SELECT DISTINCT + COALESCE ( 84, + 53, 51 * 52 ) AS col1
----
84

query I rowsort
SELECT - 44 - 81 AS col1
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT CASE + MAX( DISTINCT + ( - 4 ) ) WHEN + ( + 39 ) THEN NULL WHEN - COUNT( * ) + 44 THEN NULL ELSE 74 END col1
----
74

skipif mysql # not compatible
query I rowsort label-5542
SELECT CASE + MAX ( DISTINCT + ( - 4 ) ) WHEN + ( + 39 ) THEN NULL WHEN - COUNT ( * ) + 44 THEN NULL ELSE 74 END col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT - COUNT( * ) * + ( + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-5543
SELECT - COUNT ( * ) * + ( + 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + ( 54 ) * - COUNT( - 97 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-5544
SELECT + ( 54 ) * - COUNT ( - 97 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT NULLIF ( 87, - COUNT( * ) * 21 )
----
87

skipif mysql # not compatible
query I rowsort label-5545
SELECT NULLIF ( 87, - COUNT ( * ) * 21 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT COUNT( * ) * 50 + 58 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT COUNT ( * ) * 50 + 58 AS col2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5547
SELECT ALL 95 * + 5 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL 95 * + 5 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT + SUM( ALL 83 ) - 56 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-5548
SELECT + SUM ( ALL 83 ) - 56 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT - COUNT( * ) + 9 * 36 AS col0
----
323

skipif mysql # not compatible
query I rowsort label-5549
SELECT - COUNT ( * ) + 9 * 36 AS col0
----
323

query I rowsort
SELECT ALL ( 23 ) + 74 * - 20
----
-1457

onlyif mysql # DIV for integer division: 
query I rowsort label-5551
SELECT - + 5 + 95 DIV 66
----
-4

skipif mysql # not compatible
query I rowsort label-5551
SELECT - + 5 + 95 / 66
----
-4

query I rowsort
SELECT 79 + NULLIF ( 86, - 54 )
----
165

query I rowsort
SELECT + 80 + + 17
----
97

query I rowsort
SELECT 69 - 91
----
-22

query I rowsort
SELECT 56 * - 28
----
-1568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5556
SELECT DISTINCT + 17 - 86 * SUM( DISTINCT - 18 * CASE 96 WHEN 38 THEN 40 - CAST( NULL AS SIGNED ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT + 17 - 86 * SUM ( DISTINCT - 18 * CASE 96 WHEN 38 THEN 40 - CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ( - SUM( ALL - 71 ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5557
SELECT ( - SUM ( ALL - 71 ) ) AS col1
----
71

query I rowsort
SELECT 48 + 33 AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5559
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT - COUNT( ALL + 26 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5560
SELECT - COUNT ( ALL + 26 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5561
SELECT 44 DIV 43 * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5561
SELECT 44 / 43 * COUNT ( * )
----
1

query I rowsort
SELECT ( + + 50 ) + 64 * 41
----
2674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5563
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 33
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5564
SELECT 74 DIV 88 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5564
SELECT 74 / 88 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT 75 * - - 44 + + COUNT( * ) AS col2
----
3301

skipif mysql # not compatible
query I rowsort label-5565
SELECT 75 * - - 44 + + COUNT ( * ) AS col2
----
3301

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT 69 * - COUNT( DISTINCT + 93 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-5566
SELECT 69 * - COUNT ( DISTINCT + 93 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL + 48 + COUNT( * ) * 20 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL + 48 + COUNT ( * ) * 20 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5568
SELECT ( 97 ) + CAST( NULL AS SIGNED ) / 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT ( 97 ) + CAST ( NULL AS INTEGER ) / 83
----
NULL

query I rowsort
SELECT 49 + - - 49 AS col0
----
98

query I rowsort
SELECT 12 * + 75 - + 40 AS col0
----
860

query I rowsort
SELECT ALL - 75 + 50 col2
----
-25

query I rowsort
SELECT ALL + 21 * + - 67 * 33 AS col0
----
-46431

query I rowsort
SELECT 59 * + - 2 * 3 col1
----
-354

onlyif mysql # DIV for integer division: 
query I rowsort label-5574
SELECT DISTINCT 61 + + 25 - 20 DIV ( 64 + + 80 )
----
86

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT 61 + + 25 - 20 / ( 64 + + 80 )
----
86

query I rowsort
SELECT DISTINCT + 3 * - + ( 4 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL - COUNT( * ) + + 38 + ( - 12 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL - COUNT ( * ) + + 38 + ( - 12 ) AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5577
SELECT 22 + - NULLIF ( 78, + 28 ) + 1 * ( - 47 - 82 ) DIV - 96
----
-55

skipif mysql # not compatible
query I rowsort label-5577
SELECT 22 + - NULLIF ( 78, + 28 ) + 1 * ( - 47 - 82 ) / - 96
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT + + COUNT( * ) * 67 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT + + COUNT ( * ) * 67 AS col0
----
67

query I rowsort
SELECT - - ( + + ( - 98 ) ) AS col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5580
SELECT ALL COALESCE ( COUNT( * ), + 37 + NULLIF ( 97, 48 ) DIV - 24, 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL COALESCE ( COUNT ( * ), + 37 + NULLIF ( 97, 48 ) / - 24, 93 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT - CAST( + 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-5581
SELECT - CAST ( + 6 AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT - - SUM( ALL + 59 ) * 75 + MAX( DISTINCT 75 ) AS col0
----
4500

skipif mysql # not compatible
query I rowsort label-5582
SELECT - - SUM ( ALL + 59 ) * 75 + MAX ( DISTINCT 75 ) AS col0
----
4500

query I rowsort
SELECT DISTINCT - CASE WHEN 91 IS NOT NULL THEN NULL WHEN ( NULL ) IS NOT NULL THEN - 43 * 30 WHEN NOT NULL IN ( - 10 ) THEN - 93 END / - ( - 55 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5584
SELECT - - SUM( DISTINCT + CAST( 9 AS SIGNED ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5584
SELECT - - SUM ( DISTINCT + CAST ( 9 AS INTEGER ) ) AS col1
----
9

query I rowsort
SELECT DISTINCT + + 9 - - 16 + 51
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5586
SELECT DISTINCT - 57 DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT - 57 / 96 AS col2
----
0

query I rowsort
SELECT ALL - 7 * - - 10
----
-70

query I rowsort
SELECT + 53 * + 44
----
2332

query I rowsort
SELECT + 67 - + + 99 * - ( 43 + + 42 ) AS col0
----
8482

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT - NULLIF ( 80, 2 - + MIN( ALL + 72 + 98 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-5590
SELECT - NULLIF ( 80, 2 - + MIN ( ALL + 72 + 98 ) )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5591
SELECT COUNT( * ) - + + ( ( - 52 ) ) + 78 DIV - 45 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5591
SELECT COUNT ( * ) - + + ( ( - 52 ) ) + 78 / - 45 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT COUNT( * ) * - 58 * + 67
----
-3886

skipif mysql # not compatible
query I rowsort label-5592
SELECT COUNT ( * ) * - 58 * + 67
----
-3886

query I rowsort
SELECT DISTINCT + 69 * - + 89
----
-6141

query II rowsort
SELECT ALL 44, - 77 * - ( - 28 ) AS col1
----
44
-2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5595
SELECT 40 + + NULLIF ( - - 11, SUM( DISTINCT + 38 ) / - NULLIF ( - CAST( + 77 AS SIGNED ) * + 26, ( 5 ) / 39 - 46 ) + 77 * 58 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5595
SELECT 40 + + NULLIF ( - - 11, SUM ( DISTINCT + 38 ) / - NULLIF ( - CAST ( + 77 AS INTEGER ) * + 26, ( 5 ) / 39 - 46 ) + 77 * 58 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5596
SELECT DISTINCT COUNT( * ) AS col2, - 35 + + - 45
----
1
-80

skipif mysql # not compatible
query II rowsort label-5596
SELECT DISTINCT COUNT ( * ) AS col2, - 35 + + - 45
----
1
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT ALL SUM( DISTINCT + - 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL SUM ( DISTINCT + - 63 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT SUM( + - 32 ) * 53 + - 76 AS col1
----
-1772

skipif mysql # not compatible
query I rowsort label-5598
SELECT SUM ( + - 32 ) * 53 + - 76 AS col1
----
-1772

query II rowsort
SELECT ALL - 24 AS col1, - 34 - - - 31
----
-24
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-5600
SELECT ALL + ( + 0 ) * + 63 DIV + 74 + 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + ( + 0 ) * + 63 / + 74 + 30 AS col1
----
30

query I rowsort
SELECT 40 * - 50 * - 56 AS col2
----
112000

query I rowsort
SELECT DISTINCT 56 * ( - 7 ) AS col1
----
-392

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5603
SELECT + 25 * + COALESCE ( 28, 11 ) * - COALESCE ( + CAST( NULL AS SIGNED ), 73 ) + + 38 DIV + 47
----
-51100

skipif mysql # not compatible
query I rowsort label-5603
SELECT + 25 * + COALESCE ( 28, 11 ) * - COALESCE ( + CAST ( NULL AS INTEGER ), 73 ) + + 38 / + 47
----
-51100

query I rowsort
SELECT ALL 91 * - + 47 * + 75 AS col2
----
-320775

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT MAX( DISTINCT - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-5605
SELECT MAX ( DISTINCT - 50 ) AS col2
----
-50

query I rowsort
SELECT DISTINCT + 73 * + 61 + 62 + - 37 * 55 AS col0
----
2480

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT DISTINCT 20 * - COUNT( * ) * - 63 * ( - 34 ) AS col1
----
-42840

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT 20 * - COUNT ( * ) * - 63 * ( - 34 ) AS col1
----
-42840

query I rowsort
SELECT ALL 55 * - 95
----
-5225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5609
SELECT SUM( 69 ) DIV 20 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-5609
SELECT SUM ( 69 ) / 20 / 95
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5610
SELECT ALL - CAST( NULL AS DECIMAL ) / - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL - CAST ( NULL AS REAL ) / - 22
----
NULL

query II rowsort
SELECT DISTINCT - - 34, - 70 * + 12 AS col0
----
34
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL - COUNT( * ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT + 8 - - + 28 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT + 21 - - CASE COUNT( * ) WHEN 34 THEN - 4 + 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT + 21 - - CASE COUNT ( * ) WHEN 34 THEN - 4 + 63 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT + COUNT( * ) * - COUNT( * ) * + + 54 - + 91 + + 74 col1
----
-71

skipif mysql # not compatible
query I rowsort label-5615
SELECT + COUNT ( * ) * - COUNT ( * ) * + + 54 - + 91 + + 74 col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT - COUNT( * ) * - - ( 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5616
SELECT - COUNT ( * ) * - - ( 8 ) AS col1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5617
SELECT + COUNT( * ) * - 27 DIV - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5617
SELECT + COUNT ( * ) * - 27 / - 63 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT DISTINCT - COUNT( DISTINCT 11 ) * - 47
----
47

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT - COUNT ( DISTINCT 11 ) * - 47
----
47

query I rowsort
SELECT DISTINCT - 50 - 30 * 93 AS col1
----
-2840

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT - 62 * + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-5620
SELECT - 62 * + COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT ALL - + 36 * - COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL - + 36 * - COUNT ( * ) AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5622
SELECT - + 22 - + - CASE - + 72 WHEN 33 THEN + CAST( NULL AS SIGNED ) * - 67 WHEN COALESCE ( - NULLIF ( 46, + COUNT( * ) ), - 55 * - MIN( 22 ) + - 37 * 55 ) / 84 + + 37 THEN NULL END + + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT - + 22 - + - CASE - + 72 WHEN 33 THEN + CAST ( NULL AS INTEGER ) * - 67 WHEN COALESCE ( - NULLIF ( 46, + COUNT ( * ) ), - 55 * - MIN ( 22 ) + - 37 * 55 ) / 84 + + 37 THEN NULL END + + 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL + COUNT( * ) * + 81 * + COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL + COUNT ( * ) * + 81 * + COUNT ( * ) AS col2
----
81

query II rowsort
SELECT ALL 14 AS col1, 42
----
14
42

query I rowsort
SELECT DISTINCT - 0 * + 52 * 9 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5626
SELECT ALL + CASE COUNT( * ) WHEN - + 77 - 21 THEN NULL WHEN NULLIF ( 10, + CAST( NULL AS SIGNED ) ) / - 75 - COUNT( * ) THEN 75 + + ( 93 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL + CASE COUNT ( * ) WHEN - + 77 - 21 THEN NULL WHEN NULLIF ( 10, + CAST ( NULL AS INTEGER ) ) / - 75 - COUNT ( * ) THEN 75 + + ( 93 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5627
SELECT - - 16 AS col0, - 16 - + COUNT( * ) AS col2
----
16
-17

skipif mysql # not compatible
query II rowsort label-5627
SELECT - - 16 AS col0, - 16 - + COUNT ( * ) AS col2
----
16
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT ALL - + NULLIF ( + SUM( DISTINCT - 50 ), 57 ) * + 82
----
4100

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL - + NULLIF ( + SUM ( DISTINCT - 50 ), 57 ) * + 82
----
4100

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT - 7 * - + NULLIF ( + 27, + 48 * - 69 + COUNT( * ) * CASE + CASE 35 WHEN 10 THEN + CASE - NULLIF ( - COUNT( DISTINCT 12 ), + ( ( + COUNT( * ) ) ) - 71 * - COUNT( * ) ) WHEN 20 * - 85 THEN NULL ELSE + MAX( ALL 31 ) END END WHEN 85 * + COALESCE ( + MIN( ALL - 83 ) / - 60, - 52 ) THEN - 93 * + 32 END ) AS col0
----
189

skipif mysql # not compatible
query I rowsort label-5629
SELECT - 7 * - + NULLIF ( + 27, + 48 * - 69 + COUNT ( * ) * CASE + CASE 35 WHEN 10 THEN + CASE - NULLIF ( - COUNT ( DISTINCT 12 ), + ( ( + COUNT ( * ) ) ) - 71 * - COUNT ( * ) ) WHEN 20 * - 85 THEN NULL ELSE + MAX ( ALL 31 ) END END WHEN 85 * + COALESCE ( + MIN ( ALL - 83 ) / - 60, - 52 ) THEN - 93 * + 32 END ) AS col0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT - COUNT( + 95 ) + 86
----
85

skipif mysql # not compatible
query I rowsort label-5630
SELECT - COUNT ( + 95 ) + 86
----
85

query II rowsort
SELECT 16 AS col2, - 57
----
16
-57

query I rowsort
SELECT - 64 + 70 AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5633
SELECT - 34 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT - 34 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5634
SELECT - 73 DIV - - 57
----
-1

skipif mysql # not compatible
query I rowsort label-5634
SELECT - 73 / - - 57
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5635
SELECT DISTINCT - 10 DIV + - 91
----
0

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - 10 / + - 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL SUM( DISTINCT 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL SUM ( DISTINCT 95 ) AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5637
SELECT ALL - 92 + - - 89 + NULLIF ( + + CASE + 72 WHEN + 16 * + 60 THEN + NULLIF ( + 19, CAST( - 88 AS SIGNED ) + NULLIF ( + COUNT( ALL - 50 ), + 95 / + 2 ) ) WHEN 70 + - ( 66 + + 5 ) * - COUNT( * ) THEN NULL END, 69 * + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL - 92 + - - 89 + NULLIF ( + + CASE + 72 WHEN + 16 * + 60 THEN + NULLIF ( + 19, CAST ( - 88 AS INTEGER ) + NULLIF ( + COUNT ( ALL - 50 ), + 95 / + 2 ) ) WHEN 70 + - ( 66 + + 5 ) * - COUNT ( * ) THEN NULL END, 69 * + 43 )
----
NULL

query I rowsort
SELECT - 63 + 69 * 73
----
4974

onlyif mysql # DIV for integer division: 
query I rowsort label-5639
SELECT ALL - COALESCE ( COALESCE ( + 27, + 8 + + 91 ), - 22 ) DIV 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL - COALESCE ( COALESCE ( + 27, + 8 + + 91 ), - 22 ) / 45 AS col0
----
0

query I rowsort
SELECT DISTINCT + 65 + + 5 - - 86 AS col1
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5641
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 43
----
NULL

query I rowsort
SELECT - ( + 79 ) * + + 22
----
-1738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5643
SELECT ALL + ( NULLIF ( + + 57, - - 50 + - CASE - 28 WHEN - 65 THEN NULL ELSE + 74 - MAX( ALL - 13 ) END ) ) + CAST( 30 + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL + ( NULLIF ( + + 57, - - 50 + - CASE - 28 WHEN - 65 THEN NULL ELSE + 74 - MAX ( ALL - 13 ) END ) ) + CAST ( 30 + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5644
SELECT ALL + 93 + + CAST( NULL AS SIGNED ) * - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL + 93 + + CAST ( NULL AS INTEGER ) * - 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT - SUM( + 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-5645
SELECT - SUM ( + 79 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - 45 + - 87 + CASE + COUNT( * ) WHEN 15 + 55 * - 9 THEN - 20 * 5 WHEN + 40 + ( COUNT( * ) + 94 * 42 ) THEN + 47 * COUNT( * ) ELSE 40 * + 38 + 7 END
----
1395

skipif mysql # not compatible
query I rowsort label-5646
SELECT - 45 + - 87 + CASE + COUNT ( * ) WHEN 15 + 55 * - 9 THEN - 20 * 5 WHEN + 40 + ( COUNT ( * ) + 94 * 42 ) THEN + 47 * COUNT ( * ) ELSE 40 * + 38 + 7 END
----
1395

query II rowsort
SELECT DISTINCT + 75 + - 45, - 94 + + 86 * - 68 AS col2
----
30
-5942

query I rowsort
SELECT ALL - 20 * - 95 AS col2
----
1900

query I rowsort
SELECT + 27 * - ( 46 ) col0
----
-1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5650
SELECT + CAST( NULL AS SIGNED ) * - + 99 * - 36 + - + 9 / + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT + CAST ( NULL AS INTEGER ) * - + 99 * - 36 + - + 9 / + 73 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT + MIN( ALL - - ( - + 85 ) ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-5651
SELECT + MIN ( ALL - - ( - + 85 ) ) col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5652
SELECT ALL 71 * 71 + - COALESCE ( + 59, + COUNT( * ) DIV - 30, - COUNT( ( + 23 ) ) + - 53 ) AS col1
----
4982

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL 71 * 71 + - COALESCE ( + 59, + COUNT ( * ) / - 30, - COUNT ( ( + 23 ) ) + - 53 ) AS col1
----
4982

query I rowsort
SELECT DISTINCT + NULLIF ( - 54, + + 75 * - 75 / + 48 ) AS col1
----
-54

query II rowsort
SELECT ALL - 21 * + + 61, + 15 AS col1
----
-1281
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5655
SELECT ( + 18 ) DIV - COUNT( * ) + 80
----
62

skipif mysql # not compatible
query I rowsort label-5655
SELECT ( + 18 ) / - COUNT ( * ) + 80
----
62

query I rowsort
SELECT ALL + ( - - 51 ) AS col0
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5657
SELECT + ( 4 ) + - CAST( NULL AS DECIMAL ) + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT + ( 4 ) + - CAST ( NULL AS REAL ) + + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT COUNT( * ) * 67 * + + 60 * + COUNT( * ) + + 5 * 74
----
4390

skipif mysql # not compatible
query I rowsort label-5658
SELECT COUNT ( * ) * 67 * + + 60 * + COUNT ( * ) + + 5 * 74
----
4390

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT COUNT( * ) * 68 * - ( 21 ) + + 79 * ( + 60 )
----
3312

skipif mysql # not compatible
query I rowsort label-5659
SELECT COUNT ( * ) * 68 * - ( 21 ) + + 79 * ( + 60 )
----
3312

onlyif mysql # DIV for integer division: 
query I rowsort label-5660
SELECT - 6 + - - 30 DIV 45
----
-6

skipif mysql # not compatible
query I rowsort label-5660
SELECT - 6 + - - 30 / 45
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5661
SELECT - + ( 56 ) * - + 57 - - + 21 DIV COUNT( * )
----
3213

skipif mysql # not compatible
query I rowsort label-5661
SELECT - + ( 56 ) * - + 57 - - + 21 / COUNT ( * )
----
3213

query I rowsort
SELECT DISTINCT + NULLIF ( - + 68, 32 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL COUNT( * ) * - 91 * ( 77 ) - - 19
----
-6988

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL COUNT ( * ) * - 91 * ( 77 ) - - 19
----
-6988

query I rowsort
SELECT + - 12 + + 86 * - 10
----
-872

query I rowsort
SELECT DISTINCT 67 * - + 60 * 89
----
-357780

query I rowsort
SELECT ALL + 32 * + 71 AS col1
----
2272

query I rowsort
SELECT - - 40 * + 52 + - 78
----
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL - 62 * + COALESCE ( - COUNT( * ), CASE - 88 WHEN + NULLIF ( 65, + 19 / + COUNT( DISTINCT 97 * 37 ) ) THEN 83 ELSE NULL END + - 9 )
----
62

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - 62 * + COALESCE ( - COUNT ( * ), CASE - 88 WHEN + NULLIF ( 65, + 19 / + COUNT ( DISTINCT 97 * 37 ) ) THEN 83 ELSE NULL END + - 9 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT - MAX( DISTINCT - - 29 ) * 18 + + SUM( + NULLIF ( 50, - 93 ) ) AS col2
----
-472

skipif mysql # not compatible
query I rowsort label-5669
SELECT - MAX ( DISTINCT - - 29 ) * 18 + + SUM ( + NULLIF ( 50, - 93 ) ) AS col2
----
-472

query I rowsort
SELECT ALL + 87 * 50
----
4350

query I rowsort
SELECT ALL 38 * + 95 + - - NULLIF ( - + 14, 12 - + 5 )
----
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT + 78 * + - COUNT( * ) + 5
----
-73

skipif mysql # not compatible
query I rowsort label-5672
SELECT + 78 * + - COUNT ( * ) + 5
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT + 82 + COUNT( * ) col0
----
83

skipif mysql # not compatible
query I rowsort label-5673
SELECT + 82 + COUNT ( * ) col0
----
83

query I rowsort
SELECT - CASE + 19 WHEN - 94 / - 77 + - 95 THEN COALESCE ( - 83, - 97 * 49 - + 13 ) ELSE NULL END * + 66
----
NULL

query I rowsort
SELECT - 5 + 49 + 17 * - 75 * 96 AS col0
----
-122356

query I rowsort
SELECT COALESCE ( - + 62, - 6 * ( ( + 85 ) ) + 98 )
----
-62

query I rowsort
SELECT + 12 * + 70 + 0 + - ( - 2 ) * 33 col0
----
906

query I rowsort
SELECT + 62 * - 49 * + + 60 - 52
----
-182332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5679
SELECT - + SUM( ALL - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT - + SUM ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5680
SELECT ALL + ( - COUNT( * ) ) AS col2, MAX( 25 )
----
-1
25

skipif mysql # not compatible
query II rowsort label-5680
SELECT ALL + ( - COUNT ( * ) ) AS col2, MAX ( 25 )
----
-1
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5681
SELECT ALL + 86 + + + 27 + + 99 DIV 25 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + 86 + + + 27 + + 99 / 25 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT DISTINCT - 6 * - CASE ( + 76 ) WHEN + 68 THEN NULL WHEN 1 THEN NULL ELSE + COUNT( * ) END AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT - 6 * - CASE ( + 76 ) WHEN + 68 THEN NULL WHEN 1 THEN NULL ELSE + COUNT ( * ) END AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL ( - MIN( ALL - - 30 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL ( - MIN ( ALL - - 30 ) ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5684
SELECT DISTINCT CAST( + 63 AS SIGNED ) + - 83
----
-20

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT CAST ( + 63 AS INTEGER ) + - 83
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5685
SELECT ALL COUNT( * ) + + COUNT( 97 ) + COUNT( * ) DIV - ( - 86 )
----
2

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL COUNT ( * ) + + COUNT ( 97 ) + COUNT ( * ) / - ( - 86 )
----
2

query I rowsort
SELECT ALL + 61 + 3
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5687
SELECT + COUNT( * ) - - 72 + - + 35, 32 + - + 70 AS col0
----
38
-38

skipif mysql # not compatible
query II rowsort label-5687
SELECT + COUNT ( * ) - - 72 + - + 35, 32 + - + 70 AS col0
----
38
-38

query I rowsort
SELECT + 4 - - 56 AS col0
----
60

query I rowsort
SELECT DISTINCT - 34 + 8 AS col1
----
-26

query I rowsort
SELECT - 80 - + 92 * + 90 AS col0
----
-8360

query II rowsort
SELECT 10, 10 * + 85 AS col0
----
10
850

query II rowsort
SELECT ALL + 62 + - - 28 * + 74, 9 AS col1
----
2134
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT DISTINCT NULLIF ( - 36, + + 89 - 44 * + - SUM( 57 ) * - 47 )
----
-36

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT NULLIF ( - 36, + + 89 - 44 * + - SUM ( 57 ) * - 47 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT - CASE - + CASE 56 WHEN 43 * - NULLIF ( - SUM( DISTINCT 8 ), + 52 + - 26 ) THEN NULL ELSE 45 + - 68 END WHEN 1 THEN + 64 * + 54 END / 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT - CASE - + CASE 56 WHEN 43 * - NULLIF ( - SUM ( DISTINCT 8 ), + 52 + - 26 ) THEN NULL ELSE 45 + - 68 END WHEN 1 THEN + 64 * + 54 END / 55
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5695
SELECT + + 66 AS col2, - ( 15 ) DIV 45 + 46
----
66
46

skipif mysql # not compatible
query II rowsort label-5695
SELECT + + 66 AS col2, - ( 15 ) / 45 + 46
----
66
46

query I rowsort
SELECT + ( + - 9 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5697
SELECT - + 8 * - 22 * + NULLIF ( + + 58, + 37 * COUNT( * ) ) + 69 DIV 23
----
10211

skipif mysql # not compatible
query I rowsort label-5697
SELECT - + 8 * - 22 * + NULLIF ( + + 58, + 37 * COUNT ( * ) ) + 69 / 23
----
10211

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL - + SUM( 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL - + SUM ( 67 )
----
-67

query I rowsort
SELECT DISTINCT - - 2 * + 20
----
40

query II rowsort
SELECT DISTINCT - - 79 AS col2, 61 AS col1
----
79
61

query I rowsort
SELECT + 6 - - + 44 + - + 67 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT + 32 AS col1, - MAX( ALL + 13 ) - - 3 - + 85 AS col1
----
32
-95

skipif mysql # not compatible
query II rowsort label-5702
SELECT + 32 AS col1, - MAX ( ALL + 13 ) - - 3 - + 85 AS col1
----
32
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-5703
SELECT - 69 * - 80 + + 94 AS col1, ( - COUNT( * ) ) * + COUNT( - NULLIF ( 67, 77 * 61 ) ) + 63 * - 82
----
5614
-5167

skipif mysql # not compatible
query II rowsort label-5703
SELECT - 69 * - 80 + + 94 AS col1, ( - COUNT ( * ) ) * + COUNT ( - NULLIF ( 67, 77 * 61 ) ) + 63 * - 82
----
5614
-5167

query II rowsort
SELECT 71 AS col1, + 43 + 90 AS col1
----
71
133

query I rowsort
SELECT ALL - + 63 col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT 70 * - COUNT( * ) * + + NULLIF ( + NULLIF ( CAST( NULL AS SIGNED ), ( - 74 ) * 34 ), + 82 ) + - 38 * 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT 70 * - COUNT ( * ) * + + NULLIF ( + NULLIF ( CAST ( NULL AS INTEGER ), ( - 74 ) * 34 ), + 82 ) + - 38 * 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT ALL + ( - COALESCE ( - COALESCE ( 69, 25 * 35 ), NULLIF ( 92, + 88 ) + SUM( DISTINCT - 82 ) ) ) + - 2 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL + ( - COALESCE ( - COALESCE ( 69, 25 * 35 ), NULLIF ( 92, + 88 ) + SUM ( DISTINCT - 82 ) ) ) + - 2 AS col1
----
67

query I rowsort
SELECT NULLIF ( - 10, 37 * - 92 - 42 )
----
-10

query I rowsort
SELECT ALL + 73 * + - ( + 76 ) + - 70 + + 68 * - 93 * - 69 AS col0
----
430738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5710
SELECT ALL - 15 + ( + + 99 ) - - - 35 + + 52 DIV 20 * - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL - 15 + ( + + 99 ) - - - 35 + + 52 / 20 * - COUNT ( * )
----
47

query I rowsort
SELECT ALL ( + CASE - - 80 WHEN + 98 THEN - 22 * 4 WHEN - 42 THEN NULL END ) + 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5712
SELECT ALL CAST( NULL AS SIGNED ) + - 10 - - 15 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL CAST ( NULL AS INTEGER ) + - 10 - - 15 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5713
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) * 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) * 40 col0
----
NULL

query I rowsort
SELECT 34 + + 31
----
65

query I rowsort
SELECT ( - - 89 ) + - 4
----
85

query I rowsort
SELECT 79 - - - 60
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5717
SELECT 72 AS col0, - MIN( 34 ) + + COUNT( * ) + COUNT( * )
----
72
-32

skipif mysql # not compatible
query II rowsort label-5717
SELECT 72 AS col0, - MIN ( 34 ) + + COUNT ( * ) + COUNT ( * )
----
72
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5718
SELECT COUNT( DISTINCT CASE - 41 WHEN + 55 THEN - CAST( + 38 AS SIGNED ) + 62 WHEN - 6 THEN NULL ELSE NULL END ) + + 12
----
12

skipif mysql # not compatible
query I rowsort label-5718
SELECT COUNT ( DISTINCT CASE - 41 WHEN + 55 THEN - CAST ( + 38 AS INTEGER ) + 62 WHEN - 6 THEN NULL ELSE NULL END ) + + 12
----
12

query II rowsort
SELECT 88 - + 31, 52 AS col1
----
57
52

query II rowsort
SELECT 88, 60 AS col2
----
88
60

query I rowsort
SELECT DISTINCT 97 - ( + 10 ) + - ( - - 91 ) - - 64 + - 45
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT ALL + MAX( - ( 92 ) ) * - 59 AS col1
----
5428

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL + MAX ( - ( 92 ) ) * - 59 AS col1
----
5428

query I rowsort
SELECT 88 + 67
----
155

query I rowsort
SELECT ALL 32 - + + 8 + 78
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-5725
SELECT - 16 AS col1, MAX( DISTINCT - 78 ) AS col1
----
-16
-78

skipif mysql # not compatible
query II rowsort label-5725
SELECT - 16 AS col1, MAX ( DISTINCT - 78 ) AS col1
----
-16
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5726
SELECT 65 + - CAST( NULL AS SIGNED ) * - COUNT( + ( 54 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT 65 + - CAST ( NULL AS INTEGER ) * - COUNT ( + ( 54 ) )
----
NULL

query I rowsort
SELECT ( 25 ) * - 46 col1
----
-1150

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT 4 * MAX( 50 ) * 19 * - + 48 AS col1
----
-182400

skipif mysql # not compatible
query I rowsort label-5728
SELECT 4 * MAX ( 50 ) * 19 * - + 48 AS col1
----
-182400

query I rowsort
SELECT ALL + 58 * + + 26
----
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ( + 3 ) + - MIN( DISTINCT + + 70 ) * + 28 AS col0
----
-1957

skipif mysql # not compatible
query I rowsort label-5730
SELECT ( + 3 ) + - MIN ( DISTINCT + + 70 ) * + 28 AS col0
----
-1957

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5731
SELECT - 74, - 9 * + + COUNT( * ) DIV COUNT( - ( + - ( 37 ) ) ) AS col2
----
-74
-9

skipif mysql # not compatible
query II rowsort label-5731
SELECT - 74, - 9 * + + COUNT ( * ) / COUNT ( - ( + - ( 37 ) ) ) AS col2
----
-74
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT 58 * - 68 + + 70 + COUNT( * ) + - 89 + - COUNT( * ) + 59 * + COUNT( * )
----
-3904

skipif mysql # not compatible
query I rowsort label-5732
SELECT 58 * - 68 + + 70 + COUNT ( * ) + - 89 + - COUNT ( * ) + 59 * + COUNT ( * )
----
-3904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5733
SELECT - CASE + COUNT( * ) WHEN 49 THEN NULL ELSE + 91 END * + - 68 / 74 + - CAST( NULL AS SIGNED ) / 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT - CASE + COUNT ( * ) WHEN 49 THEN NULL ELSE + 91 END * + - 68 / 74 + - CAST ( NULL AS INTEGER ) / 63
----
NULL

query II rowsort
SELECT ALL - - 71 AS col1, 40
----
71
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5735
SELECT - - CAST( NULL AS SIGNED ) * 65 * - + 93 + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT - - CAST ( NULL AS INTEGER ) * 65 * - + 93 + + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT - COUNT( DISTINCT + + 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT - COUNT ( DISTINCT + + 16 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5737
SELECT ALL + - 29 * + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL + - 29 * + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT - 37 + + 80
----
43

query II rowsort
SELECT ALL - - 11 AS col2, 26 * + 87
----
11
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT COUNT( DISTINCT + 72 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5740
SELECT COUNT ( DISTINCT + 72 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT 83 DIV + - 13
----
-6

skipif mysql # not compatible
query I rowsort label-5741
SELECT 83 / + - 13
----
-6

query I rowsort
SELECT ALL - 80 + 30
----
-50

query I rowsort
SELECT + 4 + - + 61
----
-57

query I rowsort
SELECT 69 * 68 + - 9 col2
----
4683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5745
SELECT ( + CAST( - + 79 AS SIGNED ) ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-5745
SELECT ( + CAST ( - + 79 AS INTEGER ) ) AS col2
----
-79

query I rowsort
SELECT + 17 * - - 44 AS col0
----
748

query I rowsort
SELECT ALL - 19 + 66
----
47

query I rowsort
SELECT + 29 * 47 * + 4 - + 49 + 9 AS col0
----
5412

onlyif mysql # aggregate syntax: 
query II rowsort label-5749
SELECT COUNT( * ) AS col1, + COUNT( + 72 ) * - + 13 - - + ( + - 88 )
----
1
-101

skipif mysql # not compatible
query II rowsort label-5749
SELECT COUNT ( * ) AS col1, + COUNT ( + 72 ) * - + 13 - - + ( + - 88 )
----
1
-101

query II rowsort
SELECT ALL + + 58 + 37 AS col2, + ( - + 47 ) + - 81 AS col0
----
95
-128

query I rowsort
SELECT ALL + 28 * 70
----
1960

query I rowsort
SELECT ALL 97 + 0 * + 7 AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5753
SELECT - CASE - ( + CAST( NULL AS SIGNED ) ) WHEN - - 19 * - + ( - - 17 ) THEN + 27 * + ( NULLIF ( + MIN( ALL 24 ), 70 + + 56 ) ) + 31 WHEN + 59 THEN NULL ELSE NULL END + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT - CASE - ( + CAST ( NULL AS INTEGER ) ) WHEN - - 19 * - + ( - - 17 ) THEN + 27 * + ( NULLIF ( + MIN ( ALL 24 ), 70 + + 56 ) ) + 31 WHEN + 59 THEN NULL ELSE NULL END + - 12 AS col2
----
NULL

query I rowsort
SELECT ALL - - 45 + - 92 + + 89 + - - 1 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT + - ( - - COALESCE ( + CASE COUNT( * ) WHEN - 11 * + 37 * 55 THEN ( - 95 ) END, - 96 ) )
----
96

skipif mysql # not compatible
query I rowsort label-5755
SELECT + - ( - - COALESCE ( + CASE COUNT ( * ) WHEN - 11 * + 37 * 55 THEN ( - 95 ) END, - 96 ) )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT + CAST( + + 25 AS SIGNED ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5756
SELECT + CAST ( + + 25 AS INTEGER ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT 34 * SUM( + 70 )
----
2380

skipif mysql # not compatible
query I rowsort label-5757
SELECT 34 * SUM ( + 70 )
----
2380

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5758
SELECT CASE 72 WHEN - + 0 * - 35 * + 35 THEN + CASE + 8 WHEN 73 * - 74 THEN - 94 * 94 + 26 / + 68 WHEN - 19 * + 47 THEN NULL END WHEN CAST( NULL AS DECIMAL ) THEN 14 / COUNT( * ) END * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT CASE 72 WHEN - + 0 * - 35 * + 35 THEN + CASE + 8 WHEN 73 * - 74 THEN - 94 * 94 + 26 / + 68 WHEN - 19 * + 47 THEN NULL END WHEN CAST ( NULL AS REAL ) THEN 14 / COUNT ( * ) END * + 88
----
NULL

query I rowsort
SELECT DISTINCT 34 - + 69 - + - 90 AS col1
----
55

query I rowsort
SELECT ALL 92 - + + 2 AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT ALL + 89 DIV 2
----
44

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL + 89 / 2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5762
SELECT DISTINCT COUNT( * ) * - CAST( + 84 AS SIGNED ) AS col2, - 87 + + 88 AS col2
----
-84
1

skipif mysql # not compatible
query II rowsort label-5762
SELECT DISTINCT COUNT ( * ) * - CAST ( + 84 AS INTEGER ) AS col2, - 87 + + 88 AS col2
----
-84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT DISTINCT + 16 - + COUNT( * ) * + - 24 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT + 16 - + COUNT ( * ) * + - 24 AS col0
----
40

query I rowsort
SELECT ALL 56 * + - 82
----
-4592

query I rowsort
SELECT 85 + + 95 * + NULLIF ( + + 17, + 24 )
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL 33 - + + COUNT( * ) * + NULLIF ( - COUNT( * ), + 10 * + 13 / - 95 + COUNT( * ) * 19 )
----
34

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL 33 - + + COUNT ( * ) * + NULLIF ( - COUNT ( * ), + 10 * + 13 / - 95 + COUNT ( * ) * 19 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5767
SELECT + 15 - ( + 7 ) - + + COUNT( * ) * + SUM( - 73 ) DIV + + 89 + ( - 72 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-5767
SELECT + 15 - ( + 7 ) - + + COUNT ( * ) * + SUM ( - 73 ) / + + 89 + ( - 72 ) AS col1
----
-64

query I rowsort
SELECT + 32 * - + 66 * - 10
----
21120

query I rowsort
SELECT + 97 * + + 98 AS col1
----
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT - COUNT( + 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-5770
SELECT - COUNT ( + 77 )
----
-1

query I rowsort
SELECT + 13 - + 60 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT DISTINCT + - MIN( ALL + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT + - MIN ( ALL + 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL - 91 * + - SUM( ALL + ( - 7 ) ) * COUNT( * ) + + 55
----
-582

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL - 91 * + - SUM ( ALL + ( - 7 ) ) * COUNT ( * ) + + 55
----
-582

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT DISTINCT + 55 * + + 8 * - SUM( 12 ) + - 85 AS col1
----
-5365

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT + 55 * + + 8 * - SUM ( 12 ) + - 85 AS col1
----
-5365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5775
SELECT + COUNT( * ) DIV 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5775
SELECT + COUNT ( * ) / 83 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5776
SELECT - 71 * - COALESCE ( + SUM( - + 37 ), 63 + + 63 - 28 + 92 * CAST( - 26 AS SIGNED ), NULLIF ( 58, 65 ) ) + - COUNT( * ) * - 2 AS col0
----
-2625

skipif mysql # not compatible
query I rowsort label-5776
SELECT - 71 * - COALESCE ( + SUM ( - + 37 ), 63 + + 63 - 28 + 92 * CAST ( - 26 AS INTEGER ), NULLIF ( 58, 65 ) ) + - COUNT ( * ) * - 2 AS col0
----
-2625

query I rowsort
SELECT ALL - 12 * - 27 - + + 5 + - 80 AS col2
----
239

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT DISTINCT + COALESCE ( 9, - 88, - 20 ) * COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT + COALESCE ( 9, - 88, - 20 ) * COUNT ( * )
----
9

query I rowsort
SELECT ALL + - 38 * - 36 + + 46 + + 71
----
1485

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5780
SELECT ALL + 98 * 96 * - 45 + - ( + 9 ) + - ( CAST( NULL AS DECIMAL ) ) - + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL + 98 * 96 * - 45 + - ( + 9 ) + - ( CAST ( NULL AS REAL ) ) - + 27 AS col0
----
NULL

query I rowsort
SELECT - + 62 * + CASE + ( - - 41 ) WHEN + 6 - 61 + + 48 + 49 THEN NULL ELSE - 10 + + ( + 22 + 6 ) END * + 71
----
-79236

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT - - 87 * COUNT( * ) * - - 62
----
5394

skipif mysql # not compatible
query I rowsort label-5782
SELECT - - 87 * COUNT ( * ) * - - 62
----
5394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5783
SELECT + CAST( NULL AS SIGNED ) + - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT + CAST ( NULL AS INTEGER ) + - 30 AS col2
----
NULL

query I rowsort
SELECT - 74 * - - 69 + - 18 col1
----
-5124

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT - ( - 29 ) * - 40 + - COUNT( DISTINCT - 35 ) + - + SUM( ALL + - 70 ) * 62
----
3179

skipif mysql # not compatible
query I rowsort label-5785
SELECT - ( - 29 ) * - 40 + - COUNT ( DISTINCT - 35 ) + - + SUM ( ALL + - 70 ) * 62
----
3179

onlyif mysql # aggregate syntax: 
query II rowsort label-5786
SELECT + 83 AS col1, + COUNT( * ) AS col1
----
83
1

skipif mysql # not compatible
query II rowsort label-5786
SELECT + 83 AS col1, + COUNT ( * ) AS col1
----
83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT NULLIF ( - - COUNT( * ), 48 + + 93 + 63 * + + 80 ) * - COALESCE ( - COALESCE ( + 63, - 53, 94 + 84 ), + COUNT( DISTINCT + 31 ) * 10 ) * - ( 6 ) + 22
----
-356

skipif mysql # not compatible
query I rowsort label-5787
SELECT NULLIF ( - - COUNT ( * ), 48 + + 93 + 63 * + + 80 ) * - COALESCE ( - COALESCE ( + 63, - 53, 94 + 84 ), + COUNT ( DISTINCT + 31 ) * 10 ) * - ( 6 ) + 22
----
-356

query I rowsort
SELECT ALL 43 * + 19 - - + 36
----
853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5789
SELECT ALL + ( - + 73 ) * + COUNT( * ) * - 45 - + ( - - 88 ) DIV - 55 + CAST( + 19 AS SIGNED ) AS col0
----
3305

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL + ( - + 73 ) * + COUNT ( * ) * - 45 - + ( - - 88 ) / - 55 + CAST ( + 19 AS INTEGER ) AS col0
----
3305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5790
SELECT DISTINCT 5 * + - 77 / - - 26 - NULLIF ( + CAST( NULL AS SIGNED ), - - COALESCE ( + 87, + 51 + - COUNT( * ), 3 * - 96 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT 5 * + - 77 / - - 26 - NULLIF ( + CAST ( NULL AS INTEGER ), - - COALESCE ( + 87, + 51 + - COUNT ( * ), 3 * - 96 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 85 * + 78 AS col1
----
6630

query I rowsort
SELECT ALL NULLIF ( + 82, - 26 ) AS col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5793
SELECT DISTINCT + 76 * - CAST( - 1 AS SIGNED ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT + 76 * - CAST ( - 1 AS INTEGER ) AS col1
----
76

query I rowsort
SELECT - 27 + - - 51
----
24

query I rowsort
SELECT - 39 * 49 col2
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL ( - CASE 97 WHEN - 78 - 58 / - - 87 THEN CASE + COUNT( * ) WHEN 18 THEN - 70 ELSE NULL END ELSE NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL ( - CASE 97 WHEN - 78 - 58 / - - 87 THEN CASE + COUNT ( * ) WHEN 18 THEN - 70 ELSE NULL END ELSE NULL END ) col0
----
NULL

query II rowsort
SELECT 26 AS col1, + 0
----
26
0

query I rowsort
SELECT - 91 + - + COALESCE ( - 94, - + 75 )
----
3

query I rowsort
SELECT + 97 - 89 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5800
SELECT ALL - 31 DIV 84 * 49 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL - 31 / 84 * 49 * COUNT ( * )
----
0

query I rowsort
SELECT - 9 * - 69
----
621

query I rowsort
SELECT + 14 * + 37 col2
----
518

query II rowsort
SELECT ALL 69 col1, 95 AS col1
----
69
95

query I rowsort
SELECT DISTINCT 38 * 64
----
2432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5805
SELECT ALL - 40 DIV 88 * NULLIF ( - 12, - COALESCE ( - 8, 9 * + COUNT( * ) * - 14 + - 23 ) + + 39 * + 59 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL - 40 / 88 * NULLIF ( - 12, - COALESCE ( - 8, 9 * + COUNT ( * ) * - 14 + - 23 ) + + 39 * + 59 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT - ( - ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5806
SELECT - ( - ( COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5807
SELECT + NULLIF ( + NULLIF ( + MAX( DISTINCT 66 ), + CASE + 89 WHEN 1 THEN + 70 ELSE NULL END + 2 ), 2 ) DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5807
SELECT + NULLIF ( + NULLIF ( + MAX ( DISTINCT 66 ), + CASE + 89 WHEN 1 THEN + 70 ELSE NULL END + 2 ), 2 ) / 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT ALL 89 + 66 + - - 15 * + MAX( + + 6 ) * + - 98 + - - 58 AS col1
----
-8607

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL 89 + 66 + - - 15 * + MAX ( + + 6 ) * + - 98 + - - 58 AS col1
----
-8607

query II rowsort
SELECT 3, 57 AS col1
----
3
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT + 72 + + - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5810
SELECT + 72 + + - COUNT ( * ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT - MIN( + + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5811
SELECT - MIN ( + + 0 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5812
SELECT DISTINCT + 21 + 97 + COUNT( * ) AS col0, + 37 * - COUNT( * )
----
119
-37

skipif mysql # not compatible
query II rowsort label-5812
SELECT DISTINCT + 21 + 97 + COUNT ( * ) AS col0, + 37 * - COUNT ( * )
----
119
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5813
SELECT ALL 16 DIV + CAST( 21 AS SIGNED ) * COUNT( 78 )
----
0

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL 16 / + CAST ( 21 AS INTEGER ) * COUNT ( 78 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5814
SELECT ALL + 56, - COALESCE ( 57, ( + 67 ) ) * COUNT( * ) - + 80 * - - 57 + 67 * 54 AS col1
----
56
-999

skipif mysql # not compatible
query II rowsort label-5814
SELECT ALL + 56, - COALESCE ( 57, ( + 67 ) ) * COUNT ( * ) - + 80 * - - 57 + 67 * 54 AS col1
----
56
-999

onlyif mysql # DIV for integer division: 
query I rowsort label-5815
SELECT DISTINCT - - 95 DIV 34 + + 88 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT - - 95 / 34 + + 88 AS col0
----
90

query II rowsort
SELECT 59 AS col0, + 42
----
59
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5817
SELECT ALL + + 30 DIV 76 + COUNT( * ) + COALESCE ( + 59, - 4 DIV + + COUNT( * ) ) * + - 49 * + 64 + 79 AS col2
----
-184944

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL + + 30 / 76 + COUNT ( * ) + COALESCE ( + 59, - 4 / + + COUNT ( * ) ) * + - 49 * + 64 + 79 AS col2
----
-184944

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + 35 + - + COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5818
SELECT + 35 + - + COUNT ( * ) AS col0
----
34

query I rowsort
SELECT + 75 * - 41 + CASE - 28 WHEN + 5 + 17 + + + 15 THEN - 51 WHEN + 31 THEN NULL ELSE NULLIF ( 83, - ( 63 ) + ( ( + 20 ) ) ) * 80 END + 86
----
3651

onlyif mysql # DIV for integer division: 
query II rowsort label-5820
SELECT DISTINCT 15 DIV + + 90 * + 84 - + 60 AS col2, 86 AS col0
----
-60
86

skipif mysql # not compatible
query II rowsort label-5820
SELECT DISTINCT 15 / + + 90 * + 84 - + 60 AS col2, 86 AS col0
----
-60
86

onlyif mysql # DIV for integer division: 
query II rowsort label-5821
SELECT 39 AS col1, NULLIF ( + + 63, 42 ) DIV - 83 * 85 + + + 79 + 29 AS col2
----
39
108

skipif mysql # not compatible
query II rowsort label-5821
SELECT 39 AS col1, NULLIF ( + + 63, 42 ) / - 83 * 85 + + + 79 + 29 AS col2
----
39
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT SUM( ALL 68 ) * 84 * + 87 + - 49 AS col0
----
496895

skipif mysql # not compatible
query I rowsort label-5822
SELECT SUM ( ALL 68 ) * 84 * + 87 + - 49 AS col0
----
496895

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL - COUNT( * ) * - - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL - COUNT ( * ) * - - 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ( + + ( SUM( + - 31 ) ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5824
SELECT ( + + ( SUM ( + - 31 ) ) ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5825
SELECT + 57 * 24 AS col2, + COUNT( * )
----
1368
1

skipif mysql # not compatible
query II rowsort label-5825
SELECT + 57 * 24 AS col2, + COUNT ( * )
----
1368
1

query I rowsort
SELECT ALL + ( 26 ) col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5827
SELECT - CAST( 16 AS SIGNED ) + - 31 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-5827
SELECT - CAST ( 16 AS INTEGER ) + - 31 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL COALESCE ( + COUNT( * ), SUM( ALL - 88 ) ) * - 37 - 10 * NULLIF ( 71, + 39 ) - 23
----
-770

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL COALESCE ( + COUNT ( * ), SUM ( ALL - 88 ) ) * - 37 - 10 * NULLIF ( 71, + 39 ) - 23
----
-770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5829
SELECT 88 + NULLIF ( - 74, + 47 / 65 / - - COUNT( * ) + COUNT( * ) + - + 24 / + ( 43 ) * + 68 - 58 * ( + CAST( NULL AS SIGNED ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-5829
SELECT 88 + NULLIF ( - 74, + 47 / 65 / - - COUNT ( * ) + COUNT ( * ) + - + 24 / + ( 43 ) * + 68 - 58 * ( + CAST ( NULL AS INTEGER ) ) )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5830
SELECT DISTINCT - 26 DIV + COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT - 26 / + COUNT ( * ) AS col1
----
-26

query II rowsort
SELECT DISTINCT + 17 * - 29 AS col0, NULLIF ( 61, - 17 )
----
-493
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5832
SELECT 84 DIV ( - 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-5832
SELECT 84 / ( - 45 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5833
SELECT DISTINCT - 54 * - 45, SUM( DISTINCT - ( + 96 ) ) AS col1
----
2430
-96

skipif mysql # not compatible
query II rowsort label-5833
SELECT DISTINCT - 54 * - 45, SUM ( DISTINCT - ( + 96 ) ) AS col1
----
2430
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT ALL - 9 + + COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL - 9 + + COUNT ( * ) AS col1
----
-8

query I rowsort
SELECT ALL - 36 * 26
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT DISTINCT + 82 + + - 54 * - 40 * COUNT( * ) + - CASE - ( SUM( ALL 14 ) ) WHEN 10 / + 28 + + 60 * - ( - 76 * - 48 ) THEN 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT + 82 + + - 54 * - 40 * COUNT ( * ) + - CASE - ( SUM ( ALL 14 ) ) WHEN 10 / + 28 + + 60 * - ( - 76 * - 48 ) THEN 54 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + ( 12 ) + - 49
----
-37

query I rowsort
SELECT ALL - - ( - ( - 50 ) ) + + 76 col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT - COUNT( * ) - - + COUNT( ALL + - 46 )
----
0

skipif mysql # not compatible
query I rowsort label-5839
SELECT - COUNT ( * ) - - + COUNT ( ALL + - 46 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5840
SELECT + CAST( 7 AS SIGNED ) * - 34 * + 90, 38 - - 12 * + - 66 col1
----
-21420
-754

skipif mysql # not compatible
query II rowsort label-5840
SELECT + CAST ( 7 AS INTEGER ) * - 34 * + 90, 38 - - 12 * + - 66 col1
----
-21420
-754

query I rowsort
SELECT 20 + + 21 + - - 66
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT - ( + + 98 ) + + 7 + 90 * NULLIF ( - + 73, - + 38 + 48 * - 46 * + NULLIF ( 29, COUNT( * ) ) + + 62 ) AS col1
----
-6661

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT - ( + + 98 ) + + 7 + 90 * NULLIF ( - + 73, - + 38 + 48 * - 46 * + NULLIF ( 29, COUNT ( * ) ) + + 62 ) AS col1
----
-6661

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT DISTINCT - + 68 * COUNT( * ) * - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT - + 68 * COUNT ( * ) * - COUNT ( * )
----
68

query I rowsort
SELECT ALL - + 51 + - + ( + 20 ) + 63 - - + 29 + - 12
----
9

query II rowsort
SELECT ALL 23 + + 56 col0, - 71 col2
----
79
-71

query I rowsort
SELECT 99 * + + 62 AS col0
----
6138

onlyif mysql # DIV for integer division: 
query I rowsort label-5847
SELECT DISTINCT - 90 DIV + 4 + 66 col2
----
44

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT - 90 / + 4 + 66 col2
----
44

query I rowsort
SELECT ALL - ( + 40 ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5849
SELECT DISTINCT + 68 - 87 + - CAST( NULL AS SIGNED ) * + MIN( 17 ) + 86 * + - 17 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT + 68 - 87 + - CAST ( NULL AS INTEGER ) * + MIN ( 17 ) + 86 * + - 17 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5850
SELECT ALL + 57 * - + 63 - COUNT( 6 ), + 12 AS col2
----
-3592
12

skipif mysql # not compatible
query II rowsort label-5850
SELECT ALL + 57 * - + 63 - COUNT ( 6 ), + 12 AS col2
----
-3592
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL + COUNT( * ) - + - ( 86 ) + 7 + + + 31 * - - 33
----
1117

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL + COUNT ( * ) - + - ( 86 ) + 7 + + + 31 * - - 33
----
1117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5852
SELECT ALL CAST( NULL AS SIGNED ) * + + 38 + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL CAST ( NULL AS INTEGER ) * + + 38 + 22 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 7 - - 37 - + + 47 AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT 40 DIV - + 45 * 28 + - 55 + ( - 79 ) * 58 col1
----
-4637

skipif mysql # not compatible
query I rowsort label-5854
SELECT 40 / - + 45 * 28 + - 55 + ( - 79 ) * 58 col1
----
-4637

query I rowsort
SELECT - 47 * + + ( - 7 ) AS col2
----
329

query I rowsort
SELECT ALL + 74 - 86 + - 56 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-5857
SELECT ALL - + ( - 49 ) AS col2, 35 * + COUNT( * )
----
49
35

skipif mysql # not compatible
query II rowsort label-5857
SELECT ALL - + ( - 49 ) AS col2, 35 * + COUNT ( * )
----
49
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5858
SELECT DISTINCT 34 DIV - - 10 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT 34 / - - 10 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5859
SELECT DISTINCT + COALESCE ( - 98, + + 12 - - 64 + - - 44 * + 45 ) - + 46 + - COUNT( * ) * - 33 + 45 DIV 66
----
-111

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT + COALESCE ( - 98, + + 12 - - 64 + - - 44 * + 45 ) - + 46 + - COUNT ( * ) * - 33 + 45 / 66
----
-111

query I rowsort
SELECT DISTINCT - + 87 col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5861
SELECT 72 * CASE 19 WHEN - ( - COUNT( * ) ) THEN 24 - - - CAST( NULL AS SIGNED ) WHEN + 73 - + 53 - + - CAST( NULL AS DECIMAL ) THEN NULL WHEN - 18 * + 77 THEN - 77 * - 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT 72 * CASE 19 WHEN - ( - COUNT ( * ) ) THEN 24 - - - CAST ( NULL AS INTEGER ) WHEN + 73 - + 53 - + - CAST ( NULL AS REAL ) THEN NULL WHEN - 18 * + 77 THEN - 77 * - 34 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5862
SELECT DISTINCT - COUNT( * ), + 40 + + COUNT( * ) * - - 93 AS col0
----
-1
133

skipif mysql # not compatible
query II rowsort label-5862
SELECT DISTINCT - COUNT ( * ), + 40 + + COUNT ( * ) * - - 93 AS col0
----
-1
133

query I rowsort
SELECT ALL 10 * + 52
----
520

query I rowsort
SELECT 68 + + + 36 AS col0
----
104

query II rowsort
SELECT ALL - 49, + 33 * 84 + - 52 AS col1
----
-49
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT DISTINCT + ( - 89 ) + 9 + - - COUNT( * ) col2
----
-79

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT + ( - 89 ) + 9 + - - COUNT ( * ) col2
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5867
SELECT 3 + - 81 + 17 - + 92 DIV + + 95 + + 82
----
21

skipif mysql # not compatible
query I rowsort label-5867
SELECT 3 + - 81 + 17 - + 92 / + + 95 + + 82
----
21

query I rowsort
SELECT DISTINCT 26 + - - 33
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT 19 DIV - 75 * - - 14
----
0

skipif mysql # not compatible
query I rowsort label-5869
SELECT 19 / - 75 * - - 14
----
0

query II rowsort
SELECT ( 54 ) + 44 AS col2, 39 + - ( - 42 ) - + - 35 - + 67 + - + 82
----
98
-33

query I rowsort
SELECT 38 * 86
----
3268

onlyif mysql # aggregate syntax: 
query II rowsort label-5872
SELECT 95 AS col2, - COALESCE ( MAX( DISTINCT 82 ), 81 * + - 41 + 27, + + 30 ) AS col1
----
95
-82

skipif mysql # not compatible
query II rowsort label-5872
SELECT 95 AS col2, - COALESCE ( MAX ( DISTINCT 82 ), 81 * + - 41 + 27, + + 30 ) AS col1
----
95
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5873
SELECT + COUNT( * ) + 33 + - - SUM( DISTINCT - 63 ) - + COUNT( * ) + + - 96 + - - COUNT( 3 ) DIV + 41 * 42 - + ( - 93 ) * + 0 AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-5873
SELECT + COUNT ( * ) + 33 + - - SUM ( DISTINCT - 63 ) - + COUNT ( * ) + + - 96 + - - COUNT ( 3 ) / + 41 * 42 - + ( - 93 ) * + 0 AS col1
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5874
SELECT ( 69 ) - + - CAST( - 55 AS SIGNED ) + - 32, 35 col1
----
-18
35

skipif mysql # not compatible
query II rowsort label-5874
SELECT ( 69 ) - + - CAST ( - 55 AS INTEGER ) + - 32, 35 col1
----
-18
35

query I rowsort
SELECT ALL - - 91 * 80 AS col1
----
7280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5876
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 36
----
NULL

query I rowsort
SELECT ALL - - 16 - 60 AS col2
----
-44

query I rowsort
SELECT 83 * + - 21 AS col2
----
-1743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5879
SELECT ALL 51 * + SUM( CAST( 8 AS SIGNED ) ) * 2, 68 AS col2
----
816
68

skipif mysql # not compatible
query II rowsort label-5879
SELECT ALL 51 * + SUM ( CAST ( 8 AS INTEGER ) ) * 2, 68 AS col2
----
816
68

query I rowsort
SELECT - 95 + 51 AS col1
----
-44

query I rowsort
SELECT ALL + 11 - + ( + + 93 ) + + 48
----
-34

query I rowsort
SELECT 63 * 4
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT + MIN( - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-5883
SELECT + MIN ( - 46 )
----
-46

query II rowsort
SELECT ALL 97 AS col0, ( 22 ) AS col1
----
97
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5885
SELECT + 70 + + MAX( ALL CAST( + 80 AS SIGNED ) ) AS col1
----
150

skipif mysql # not compatible
query I rowsort label-5885
SELECT + 70 + + MAX ( ALL CAST ( + 80 AS INTEGER ) ) AS col1
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5886
SELECT + COUNT( * ) * - - CAST( NULL AS SIGNED ) + - NULLIF ( + + 54, 67 ) AS col0, 97 col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-5886
SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + - NULLIF ( + + 54, 67 ) AS col0, 97 col0
----
NULL
97

query II rowsort
SELECT 86 + - 28 * + 77, - ( + + 38 ) AS col2
----
-2070
-38

query I rowsort
SELECT ALL + + 98 * 77 * 68 + - 26 AS col0
----
513102

onlyif mysql # aggregate syntax: 
query II rowsort label-5889
SELECT ALL - - 37 AS col1, MAX( + 54 ) AS col1
----
37
54

skipif mysql # not compatible
query II rowsort label-5889
SELECT ALL - - 37 AS col1, MAX ( + 54 ) AS col1
----
37
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT ALL + - ( ( - - 8 ) ) DIV + 83 + - 8 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL + - ( ( - - 8 ) ) / + 83 + - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT DISTINCT - + MAX( ALL + 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT - + MAX ( ALL + 69 ) AS col1
----
-69

query I rowsort
SELECT DISTINCT + 26 * - 11 * 17 AS col1
----
-4862

query II rowsort
SELECT + 34 AS col2, + 81
----
34
81

query I rowsort
SELECT - ( - 0 ) * - 97 col0
----
0

query I rowsort
SELECT + 80 * + - 70 AS col0
----
-5600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5896
SELECT 72 DIV 70 + - + 66 * COUNT( * ), - COUNT( * ) AS col2
----
-65
-1

skipif mysql # not compatible
query II rowsort label-5896
SELECT 72 / 70 + - + 66 * COUNT ( * ), - COUNT ( * ) AS col2
----
-65
-1

query I rowsort
SELECT ALL 11 * 45 + 48 + + 33
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5898
SELECT ALL + 29 AS col1, 21 + + CAST( NULL AS SIGNED ) * + + 5 AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-5898
SELECT ALL + 29 AS col1, 21 + + CAST ( NULL AS INTEGER ) * + + 5 AS col1
----
29
NULL

query I rowsort
SELECT ALL + 89 * + 47 * 80 * - 74 + 59
----
-24763301

query II rowsort
SELECT ALL + 74 AS col0, + 91 AS col1
----
74
91

query I rowsort
SELECT DISTINCT 92 * - 0 + + + COALESCE ( 59, 50, + 46 ) + 96 * + 42
----
4091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5902
SELECT ALL - 12 * - NULLIF ( - 75, - + COALESCE ( 35, + NULLIF ( 91, + 41 * + + 53 + - COUNT( * ) ) + + 38 + MIN( - 70 + - ( + 81 ) ), NULLIF ( 81, + COUNT( * ) ) * - ( + ( - ( COALESCE ( + CAST( NULL AS SIGNED ), 58 ) ) ) ) ) ) * - 25 + 6 AS col2
----
22506

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL - 12 * - NULLIF ( - 75, - + COALESCE ( 35, + NULLIF ( 91, + 41 * + + 53 + - COUNT ( * ) ) + + 38 + MIN ( - 70 + - ( + 81 ) ), NULLIF ( 81, + COUNT ( * ) ) * - ( + ( - ( COALESCE ( + CAST ( NULL AS INTEGER ), 58 ) ) ) ) ) ) * - 25 + 6 AS col2
----
22506

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT + NULLIF ( - COUNT( * ), - 52 * 82 + - 19 / - - 17 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5903
SELECT + NULLIF ( - COUNT ( * ), - 52 * 82 + - 19 / - - 17 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT DISTINCT CASE 97 WHEN - 67 THEN NULL WHEN - CASE + 42 WHEN + CASE - + 24 WHEN - - 52 THEN - + 36 + + + 80 * + 80 ELSE 58 END + - 60 THEN + 86 + 55 END THEN 49 ELSE NULL END + COUNT( * ) * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT CASE 97 WHEN - 67 THEN NULL WHEN - CASE + 42 WHEN + CASE - + 24 WHEN - - 52 THEN - + 36 + + + 80 * + 80 ELSE 58 END + - 60 THEN + 86 + 55 END THEN 49 ELSE NULL END + COUNT ( * ) * - 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5905
SELECT ALL 22 AS col0, 91 * COUNT( * ) AS col2
----
22
91

skipif mysql # not compatible
query II rowsort label-5905
SELECT ALL 22 AS col0, 91 * COUNT ( * ) AS col2
----
22
91

query I rowsort
SELECT ALL ( + - 13 ) * - + 47
----
611

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT + 78 * + ( COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-5907
SELECT + 78 * + ( COUNT ( * ) )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT - + CAST( + - 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-5908
SELECT - + CAST ( + - 76 AS INTEGER )
----
76

query I rowsort
SELECT ALL 13 - 31 * 62
----
-1909

query I rowsort
SELECT ALL ( + ( + + 94 ) ) - + 45 col2
----
49

query I rowsort
SELECT ALL 96 - + 54 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT + COUNT( DISTINCT 51 ) * 86 + + SUM( 26 )
----
112

skipif mysql # not compatible
query I rowsort label-5912
SELECT + COUNT ( DISTINCT 51 ) * 86 + + SUM ( 26 )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT ALL + MAX( DISTINCT + 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL + MAX ( DISTINCT + 35 ) AS col2
----
35

query I rowsort
SELECT ALL - NULLIF ( 37, - 27 ) col0
----
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-5915
SELECT + + ( 45 ) + 96 * + 61 + - - 95 * 30, ( + + 9 ) DIV + + 82 AS col2
----
8751
0

skipif mysql # not compatible
query II rowsort label-5915
SELECT + + ( 45 ) + 96 * + 61 + - - 95 * 30, ( + + 9 ) / + + 82 AS col2
----
8751
0

query II rowsort
SELECT DISTINCT + 26, 79 AS col1
----
26
79

query I rowsort
SELECT ALL COALESCE ( - ( 96 ), + 23, - - NULLIF ( 97, + - 22 ) + + + 75 )
----
-96

query I rowsort
SELECT + - 4 + + 29
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5919
SELECT ALL 53 col1, + COUNT( * )
----
53
1

skipif mysql # not compatible
query II rowsort label-5919
SELECT ALL 53 col1, + COUNT ( * )
----
53
1

query I rowsort
SELECT - + 29 * - 9 AS col0
----
261

query II rowsort
SELECT - 14 AS col1, - 2 AS col1
----
-14
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5922
SELECT - - COUNT( * ), 21 * - CASE - 98 WHEN + - 12 * + SUM( 5 ) + 46 + - 73 THEN 12 WHEN + - 52 THEN 55 * + 42 ELSE NULL END * 68 - 67 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5922
SELECT - - COUNT ( * ), 21 * - CASE - 98 WHEN + - 12 * + SUM ( 5 ) + 46 + - 73 THEN 12 WHEN + - 52 THEN 55 * + 42 ELSE NULL END * 68 - 67 AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5923
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - CASE - 24 WHEN - 84 * - 34 + - + 79 THEN COUNT( * ) * - 96 + + 9 + + NULLIF ( 31, - 33 / 31 ) + 10 WHEN + 53 THEN - 11 * + 27 ELSE + 91 END / + COUNT( 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - CASE - 24 WHEN - 84 * - 34 + - + 79 THEN COUNT ( * ) * - 96 + + 9 + + NULLIF ( 31, - 33 / 31 ) + 10 WHEN + 53 THEN - 11 * + 27 ELSE + 91 END / + COUNT ( 92 )
----
NULL

query I rowsort
SELECT + + 85 + 40 AS col1
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5925
SELECT - ( + - COALESCE ( - 94, COUNT( ALL - - 79 ) ) ) DIV + + 25
----
-3

skipif mysql # not compatible
query I rowsort label-5925
SELECT - ( + - COALESCE ( - 94, COUNT ( ALL - - 79 ) ) ) / + + 25
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL - 58 * + CASE + - ( + 24 ) WHEN - - ( - MAX( + + 63 ) ) THEN NULLIF ( + 98, - 4 ) + - 37 / 3 ELSE NULL END + MAX( DISTINCT 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL - 58 * + CASE + - ( + 24 ) WHEN - - ( - MAX ( + + 63 ) ) THEN NULLIF ( + 98, - 4 ) + - 37 / 3 ELSE NULL END + MAX ( DISTINCT 47 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5927
SELECT ALL + + 96 * CAST( NULL AS SIGNED ) / 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL + + 96 * CAST ( NULL AS INTEGER ) / 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5928
SELECT ALL + COUNT( * ) col0, - 72
----
1
-72

skipif mysql # not compatible
query II rowsort label-5928
SELECT ALL + COUNT ( * ) col0, - 72
----
1
-72

query I rowsort
SELECT ALL NULLIF ( + 0, + 54 + - 16 * 70 - + NULLIF ( - NULLIF ( + 96, - 3 - + 51 ), + + 2 / 12 ) ) AS col0
----
0

query I rowsort
SELECT ALL - COALESCE ( 17, - 33 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT + + COUNT( * ) * - - 87 + - 45 + MIN( DISTINCT - - 6 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5931
SELECT + + COUNT ( * ) * - - 87 + - 45 + MIN ( DISTINCT - - 6 ) AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT DISTINCT + COALESCE ( NULLIF ( + 19, NULLIF ( + CAST( NULL AS SIGNED ), + 99 * 49 + 13 ) * - 50 + + 53 ), - 94, - 47 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT + COALESCE ( NULLIF ( + 19, NULLIF ( + CAST ( NULL AS INTEGER ), + 99 * 49 + 13 ) * - 50 + + 53 ), - 94, - 47 ) AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5933
SELECT ALL 8 DIV 90 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL 8 / 90 + + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5934
SELECT - ( + CAST( NULL AS DECIMAL ) ) * 70 * + 85 - - CAST( CASE 0 WHEN - 52 THEN + 15 * 22 WHEN + 32 + + 0 THEN NULL END AS SIGNED ) / + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT - ( + CAST ( NULL AS REAL ) ) * 70 * + 85 - - CAST ( CASE 0 WHEN - 52 THEN + 15 * 22 WHEN + 32 + + 0 THEN NULL END AS INTEGER ) / + 32
----
NULL

query I rowsort
SELECT - 98 * + 48 AS col1
----
-4704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5936
SELECT - 62 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5936
SELECT - 62 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 95 * 53 + + ( - - 73 )
----
-4962

query I rowsort
SELECT ALL 88 * 96 + + + 16
----
8464

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT - 9 + + 6 * COUNT( * ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-5939
SELECT - 9 + + 6 * COUNT ( * ) col0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5940
SELECT - 15 DIV - 98 AS col0, 80
----
0
80

skipif mysql # not compatible
query II rowsort label-5940
SELECT - 15 / - 98 AS col0, 80
----
0
80

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5941
SELECT ALL - CAST( + 32 AS SIGNED ) * 65 * - 1 + 47 AS col0, 29 + + + CAST( NULL AS DECIMAL ) + - 73 + - + ( + 3 ) AS col2, 52
----
2127
NULL
52

skipif mysql # not compatible
query III rowsort label-5941
SELECT ALL - CAST ( + 32 AS INTEGER ) * 65 * - 1 + 47 AS col0, 29 + + + CAST ( NULL AS REAL ) + - 73 + - + ( + 3 ) AS col2, 52
----
2127
NULL
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5942
SELECT - 2 + SUM( ALL + + 67 ) AS col2, + 0 DIV + SUM( ALL 51 )
----
65
0

skipif mysql # not compatible
query II rowsort label-5942
SELECT - 2 + SUM ( ALL + + 67 ) AS col2, + 0 / + SUM ( ALL 51 )
----
65
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT 14 * 41 + 52 + - 76 + 41 + 53 + 54 DIV + - 68 AS col1
----
644

skipif mysql # not compatible
query I rowsort label-5943
SELECT 14 * 41 + 52 + - 76 + 41 + 53 + 54 / + - 68 AS col1
----
644

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT - 96 * - COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5944
SELECT - 96 * - COUNT ( * ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT - 55 + CASE - 19 WHEN CASE WHEN NOT 50 = 4 + MIN( 60 ) + COALESCE ( + + 55, - 67 ) / + 21 * 5 THEN 54 * - 34 + - COALESCE ( + ( 69 ) + + 58, 79 * + 90 - 25, 5, - COUNT( * ) ) * 47 WHEN + 22 + - 62 * 20 = 19 + + 47 THEN AVG ( DISTINCT - 27 ) + - COUNT( * ) * - 48 WHEN ( 40 ) IS NOT NULL THEN NULL END + 87 THEN 81 + - 70 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5945
SELECT - 55 + CASE - 19 WHEN CASE WHEN NOT 50 = 4 + MIN ( 60 ) + COALESCE ( + + 55, - 67 ) / + 21 * 5 THEN 54 * - 34 + - COALESCE ( + ( 69 ) + + 58, 79 * + 90 - 25, 5, - COUNT ( * ) ) * 47 WHEN + 22 + - 62 * 20 = 19 + + 47 THEN AVG ( DISTINCT - 27 ) + - COUNT ( * ) * - 48 WHEN ( 40 ) IS NOT NULL THEN NULL END + 87 THEN 81 + - 70 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5946
SELECT ALL + ( - ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL + ( - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + - 24 + + + ( + + 69 ) AS col2
----
45

query I rowsort
SELECT DISTINCT COALESCE ( ( - 71 ), + 42 + - 14 + + 20 * + - 44, - + 37 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL - 77 * - 2 * 57 + + COUNT( * ) - - + 80 AS col2
----
8859

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - 77 * - 2 * 57 + + COUNT ( * ) - - + 80 AS col2
----
8859

query I rowsort
SELECT - 25 + 59 col1
----
34

query I rowsort
SELECT ALL 69 * - - 10 AS col0
----
690

query I rowsort
SELECT + 39 * - - 90 * + 94 col2
----
329940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5953
SELECT + - NULLIF ( 45, - - 12 DIV + NULLIF ( - ( 37 ), + 64 * 5 - + 29 - + - 76 DIV - 43 DIV - CAST( NULL AS SIGNED ) + COUNT( * ) * 46 + 85 * 94 ) + + COUNT( * ) * 14 ) DIV NULLIF ( ( ( 37 ) ), + COUNT( * ) + COUNT( * ) DIV - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-5953
SELECT + - NULLIF ( 45, - - 12 / + NULLIF ( - ( 37 ), + 64 * 5 - + 29 - + - 76 / - 43 / - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 46 + 85 * 94 ) + + COUNT ( * ) * 14 ) / NULLIF ( ( ( 37 ) ), + COUNT ( * ) + COUNT ( * ) / - 72 )
----
-1

query I rowsort
SELECT ALL - 17 * 98 * - 12 AS col2
----
19992

query I rowsort
SELECT + + 6 - - ( 4 ) AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5956
SELECT + 32 DIV + + 29 - + - 69 + + 58 * - 26
----
-1438

skipif mysql # not compatible
query I rowsort label-5956
SELECT + 32 / + + 29 - + - 69 + + 58 * - 26
----
-1438

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5957
SELECT 92 * CAST( + 89 AS SIGNED ) col0, 1 * + CAST( + 71 AS SIGNED )
----
8188
71

skipif mysql # not compatible
query II rowsort label-5957
SELECT 92 * CAST ( + 89 AS INTEGER ) col0, 1 * + CAST ( + 71 AS INTEGER )
----
8188
71

query I rowsort
SELECT - ( - 38 ) + - 0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5959
SELECT DISTINCT - NULLIF ( 46, + 37 ) DIV - - 14
----
-3

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT - NULLIF ( 46, + 37 ) / - - 14
----
-3

query I rowsort
SELECT ALL 85 + + - 87 * - 91 AS col2
----
8002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT 25 + + CAST( NULL AS SIGNED ) * + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT 25 + + CAST ( NULL AS INTEGER ) * + 94 AS col0
----
NULL

query I rowsort
SELECT + 25 - + 71 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL 87 * - + ( NULLIF ( - 90, + MAX( ALL + - 59 ) ) ) AS col2
----
7830

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL 87 * - + ( NULLIF ( - 90, + MAX ( ALL + - 59 ) ) ) AS col2
----
7830

query I rowsort
SELECT 78 + + - 68 + - 25 * + 97 + + 77
----
-2338

query I rowsort
SELECT 13 - + 41 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5966
SELECT DISTINCT 16 DIV + 99 * + 93, ( CAST( 23 AS SIGNED ) ) AS col2
----
0
23

skipif mysql # not compatible
query II rowsort label-5966
SELECT DISTINCT 16 / + 99 * + 93, ( CAST ( 23 AS INTEGER ) ) AS col2
----
0
23

query I rowsort
SELECT ALL + COALESCE ( - - 33, + 3, - COALESCE ( - - 9, + 63 ), - 31 ) + + 54 AS col1
----
87

query II rowsort
SELECT + ( + 35 ) * - CASE WHEN NOT ( ( ( NULL ) > NULL ) ) THEN - 11 ELSE - 21 END + - - 84 AS col1, - 12
----
819
-12

query II rowsort
SELECT DISTINCT - 29 AS col2, + 64 AS col2
----
-29
64

query I rowsort
SELECT DISTINCT + ( - - CASE + 82 WHEN + 78 THEN - 76 WHEN + 55 THEN NULL ELSE NULL END ) * 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT DISTINCT COUNT( * ) + + 54
----
55

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT COUNT ( * ) + + 54
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT DISTINCT - SUM( 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT - SUM ( 64 ) AS col0
----
-64

query I rowsort
SELECT DISTINCT 86 + + - 16 AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5974
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 90
----
NULL

query I rowsort
SELECT - 9 * - 88 * + - 26 * 36 + 0 + 34 * - 84 * 9 * + 95
----
-3183192

query II rowsort
SELECT 86, 61 + - 8 AS col2
----
86
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5977
SELECT COUNT( * ) * + COUNT( * ) + - - NULLIF ( CAST( NULL AS SIGNED ), - - 83 * - 1 + + - 52 ) * - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT COUNT ( * ) * + COUNT ( * ) + - - NULLIF ( CAST ( NULL AS INTEGER ), - - 83 * - 1 + + - 52 ) * - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5978
SELECT 9 * + - NULLIF ( - + 71, + + COALESCE ( ( - 19 ), + + MAX( - ( 14 ) ) / - + 49, + SUM( ALL + - 8 ) + - 26 ) / 48 + - 97 ) * + ( + 0 * ( + CAST( NULL AS SIGNED ) ) ) + - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5978
SELECT 9 * + - NULLIF ( - + 71, + + COALESCE ( ( - 19 ), + + MAX ( - ( 14 ) ) / - + 49, + SUM ( ALL + - 8 ) + - 26 ) / 48 + - 97 ) * + ( + 0 * ( + CAST ( NULL AS INTEGER ) ) ) + - 46 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5979
SELECT - MIN( - ( - + 72 ) ) DIV NULLIF ( + 26, 41 + - NULLIF ( + + ( 55 ), + 82 * CAST( NULL AS DECIMAL ) - + ( - 27 ) + + 21 * - 16 ) * - 7 ) + + 38
----
36

skipif mysql # not compatible
query I rowsort label-5979
SELECT - MIN ( - ( - + 72 ) ) / NULLIF ( + 26, 41 + - NULLIF ( + + ( 55 ), + 82 * CAST ( NULL AS REAL ) - + ( - 27 ) + + 21 * - 16 ) * - 7 ) + + 38
----
36

query II rowsort
SELECT 5 AS col2, 75
----
5
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5981
SELECT DISTINCT - 54, COUNT( * ) * COUNT( * ) * + - 59 - 69 AS col1
----
-54
-128

skipif mysql # not compatible
query II rowsort label-5981
SELECT DISTINCT - 54, COUNT ( * ) * COUNT ( * ) * + - 59 - 69 AS col1
----
-54
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT 28 * - CAST( 2 AS SIGNED ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5982
SELECT 28 * - CAST ( 2 AS INTEGER ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5983
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COALESCE ( - 24, 36 ) * - + CAST( + - COUNT( * ) AS SIGNED ) - - 37 - + 9 * - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COALESCE ( - 24, 36 ) * - + CAST ( + - COUNT ( * ) AS INTEGER ) - - 37 - + 9 * - - 44
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5984
SELECT ALL - CAST( - + 26 AS SIGNED ) * + 70 AS col0
----
1820

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL - CAST ( - + 26 AS INTEGER ) * + 70 AS col0
----
1820

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5985
SELECT 22 * + COALESCE ( + - NULLIF ( + 46, - - 81 + + CAST( NULL AS SIGNED ) + - 24 * + CAST( - 82 AS SIGNED ) ), 2 DIV + NULLIF ( + 85, - + 19 + + 69 * 66 ), CAST( NULL AS SIGNED ) ) * + 85 + - 82
----
-86102

skipif mysql # not compatible
query I rowsort label-5985
SELECT 22 * + COALESCE ( + - NULLIF ( + 46, - - 81 + + CAST ( NULL AS INTEGER ) + - 24 * + CAST ( - 82 AS INTEGER ) ), 2 / + NULLIF ( + 85, - + 19 + + 69 * 66 ), CAST ( NULL AS INTEGER ) ) * + 85 + - 82
----
-86102

query II rowsort
SELECT - 70 AS col0, 99 * + - 46 AS col2
----
-70
-4554

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL - COUNT( * ) * - NULLIF ( + 60, + 35 - - + 8 + - 6 - + - 85 * - MIN( - - 30 ) * + + COUNT( * ) + 67 / - 17 + + 26 * ( - 77 ) ) col1
----
60

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - COUNT ( * ) * - NULLIF ( + 60, + 35 - - + 8 + - 6 - + - 85 * - MIN ( - - 30 ) * + + COUNT ( * ) + 67 / - 17 + + 26 * ( - 77 ) ) col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT + COUNT( * ) * + 83 - - 28 col2
----
111

skipif mysql # not compatible
query I rowsort label-5988
SELECT + COUNT ( * ) * + 83 - - 28 col2
----
111

onlyif mysql # DIV for integer division: 
query II rowsort label-5989
SELECT DISTINCT 99, + 92 DIV - 58 AS col0
----
99
-1

skipif mysql # not compatible
query II rowsort label-5989
SELECT DISTINCT 99, + 92 / - 58 AS col0
----
99
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5990
SELECT DISTINCT - 80 * + 5 * - + 75 * + - NULLIF ( - - CAST( 8 AS SIGNED ), 51 ) + + + COUNT( * ) DIV 31 col0
----
-240000

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT - 80 * + 5 * - + 75 * + - NULLIF ( - - CAST ( 8 AS INTEGER ), 51 ) + + + COUNT ( * ) / 31 col0
----
-240000

query I rowsort
SELECT ALL + 21 * - - 50 col2
----
1050

query I rowsort
SELECT + 64 - - - 29 - + 61 AS col1
----
-26

query I rowsort
SELECT - 73 + + + 4 * 26 AS col1
----
31

query I rowsort
SELECT DISTINCT - + 87 + - + CASE - 4 WHEN - 60 + 45 THEN NULL ELSE - 24 END
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT + 50 + ( 84 ) + - COUNT( * ) * CASE CASE - 25 WHEN - 70 * - + MAX( DISTINCT 82 ) THEN - 16 / + ( 35 ) ELSE NULL END WHEN + 50 + COUNT( * ) * + 18 THEN NULL ELSE ( - 68 ) + - 89 * 30 END + SUM( - 97 ) * + 46 AS col0
----
-1590

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT + 50 + ( 84 ) + - COUNT ( * ) * CASE CASE - 25 WHEN - 70 * - + MAX ( DISTINCT 82 ) THEN - 16 / + ( 35 ) ELSE NULL END WHEN + 50 + COUNT ( * ) * + 18 THEN NULL ELSE ( - 68 ) + - 89 * 30 END + SUM ( - 97 ) * + 46 AS col0
----
-1590

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT DISTINCT - 89 AS col1, SUM( ALL + + ( - 64 ) ) AS col0
----
-89
-64

skipif mysql # not compatible
query II rowsort label-5996
SELECT DISTINCT - 89 AS col1, SUM ( ALL + + ( - 64 ) ) AS col0
----
-89
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5997
SELECT DISTINCT + COALESCE ( + COUNT( * ), - 51 + - ( + + 57 ) * - 47 + + 44 DIV - - COALESCE ( 81, 82 ), - 98 * + ( 68 ) * 89 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + COALESCE ( + COUNT ( * ), - 51 + - ( + + 57 ) * - 47 + + 44 / - - COALESCE ( 81, 82 ), - 98 * + ( 68 ) * 89 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ALL + COUNT( * ) + + COUNT( * ) + + - 25 * 97 AS col1
----
-2423

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + + - 25 * 97 AS col1
----
-2423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5999
SELECT + CAST( NULL AS SIGNED ) * + + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT + CAST ( NULL AS INTEGER ) * + + 41 AS col2
----
NULL

query II rowsort
SELECT - - 40 AS col1, 79
----
40
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6001
SELECT + COUNT( * ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6001
SELECT + COUNT ( * ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT ALL MAX( ALL 21 )
----
21

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL MAX ( ALL 21 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-6003
SELECT ALL ( - 1 ) + - ( 73 ) col1, - COUNT( * ) AS col1
----
-74
-1

skipif mysql # not compatible
query II rowsort label-6003
SELECT ALL ( - 1 ) + - ( 73 ) col1, - COUNT ( * ) AS col1
----
-74
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT DISTINCT MIN( + 9 ) + + 83 * - - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT MIN ( + 9 ) + + 83 * - - COUNT ( * ) AS col1
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6005
SELECT COUNT( * ) DIV 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6005
SELECT COUNT ( * ) / 56 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6006
SELECT 96 * - + CAST( + 80 AS SIGNED ) * + + 76 AS col0, CAST( NULL AS SIGNED ) + - ( + - 89 )
----
-583680
NULL

skipif mysql # not compatible
query II rowsort label-6006
SELECT 96 * - + CAST ( + 80 AS INTEGER ) * + + 76 AS col0, CAST ( NULL AS INTEGER ) + - ( + - 89 )
----
-583680
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - + 67, - 77 ) * 66 * 16
----
-70752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6008
SELECT COALESCE ( + - 68, - - 22 * + MAX( DISTINCT + ( + 63 ) ) * + COALESCE ( - COUNT( * ), COUNT( * ), - + 36 ) + + 20 * - ( + CAST( NULL AS SIGNED ) ) ) * ( 60 ) - 53 AS col1
----
-4133

skipif mysql # not compatible
query I rowsort label-6008
SELECT COALESCE ( + - 68, - - 22 * + MAX ( DISTINCT + ( + 63 ) ) * + COALESCE ( - COUNT ( * ), COUNT ( * ), - + 36 ) + + 20 * - ( + CAST ( NULL AS INTEGER ) ) ) * ( 60 ) - 53 AS col1
----
-4133

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT ALL - 51 * COUNT( * ) * + 41
----
-2091

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL - 51 * COUNT ( * ) * + 41
----
-2091

query I rowsort
SELECT 38 - 8
----
30

query II rowsort
SELECT 21 * - ( + ( + 77 ) ), - 83 AS col2
----
-1617
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6012
SELECT - + COUNT( ALL + 92 ) * 34 + COALESCE ( + + COUNT( ALL 23 ), MIN( ALL CAST( NULL AS SIGNED ) ) )
----
-33

skipif mysql # not compatible
query I rowsort label-6012
SELECT - + COUNT ( ALL + 92 ) * 34 + COALESCE ( + + COUNT ( ALL 23 ), MIN ( ALL CAST ( NULL AS INTEGER ) ) )
----
-33

query I rowsort
SELECT ALL - ( + 8 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT - COALESCE ( ( + MIN( + - 33 ) ), 61 * - 69, COUNT( * ) ) * + - 58 * + 3
----
-5742

skipif mysql # not compatible
query I rowsort label-6014
SELECT - COALESCE ( ( + MIN ( + - 33 ) ), 61 * - 69, COUNT ( * ) ) * + - 58 * + 3
----
-5742

query I rowsort
SELECT ALL 91 + - + 22 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT - MAX( DISTINCT - 89 ) + - 31 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6016
SELECT - MAX ( DISTINCT - 89 ) + - 31 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL - 26 + 42 - - + MIN( + 21 ) + + 65 + + 64 * - 4 * + 75 col0
----
-19098

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - 26 + 42 - - + MIN ( + 21 ) + + 65 + + 64 * - 4 * + 75 col0
----
-19098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6018
SELECT DISTINCT + + 22 * + 61 * + 35 + - 78 + + CASE + 97 WHEN + CAST( + - 57 AS SIGNED ) * - 99 - - NULLIF ( - ( + + 96 ), ( + - 91 ) ) + SUM( 73 ) THEN ( COUNT( * ) ) WHEN 70 * AVG ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE - MIN( 60 ) + 44 END - COUNT( ALL + 68 ) * 99 AS col2
----
46777

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT + + 22 * + 61 * + 35 + - 78 + + CASE + 97 WHEN + CAST ( + - 57 AS INTEGER ) * - 99 - - NULLIF ( - ( + + 96 ), ( + - 91 ) ) + SUM ( 73 ) THEN ( COUNT ( * ) ) WHEN 70 * AVG ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - MIN ( 60 ) + 44 END - COUNT ( ALL + 68 ) * 99 AS col2
----
46777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6019
SELECT ALL - + 60 + - CAST( + ( - 29 ) AS SIGNED ) - 10 + + SUM( + 21 ) * - ( - 4 ) DIV - + 91 col0
----
-41

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL - + 60 + - CAST ( + ( - 29 ) AS INTEGER ) - 10 + + SUM ( + 21 ) * - ( - 4 ) / - + 91 col0
----
-41

query I rowsort
SELECT - - 29 + ( + 60 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT - + MAX( ALL - 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6021
SELECT - + MAX ( ALL - 91 ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6022
SELECT CASE - + COUNT( * ) WHEN - - 78 + + COUNT( * ) * + - 8 * + + 60 * CAST( - CASE + 43 WHEN 80 + - 84 THEN - 6 * - ( - - 22 ) * + COUNT( * ) ELSE + 39 END AS SIGNED ) + - CAST( - ( 53 ) + 86 AS SIGNED ) * - 52 THEN + 61 + + 58 * 95 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT CASE - + COUNT ( * ) WHEN - - 78 + + COUNT ( * ) * + - 8 * + + 60 * CAST ( - CASE + 43 WHEN 80 + - 84 THEN - 6 * - ( - - 22 ) * + COUNT ( * ) ELSE + 39 END AS INTEGER ) + - CAST ( - ( 53 ) + 86 AS INTEGER ) * - 52 THEN + 61 + + 58 * 95 ELSE NULL END
----
NULL

query I rowsort
SELECT - 7 * 15 AS col1
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6024
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + 37 * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + 37 * - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - ( - + 8 ) ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6026
SELECT DISTINCT + ( - - MIN( DISTINCT - 71 ) ) DIV - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT + ( - - MIN ( DISTINCT - 71 ) ) / - COUNT ( * )
----
71

query I rowsort
SELECT - 63 - 52
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-6028
SELECT ALL + 54 DIV 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + 54 / 95 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT - COUNT( * ) + + 52 * - COUNT( * ) * ( - 68 ) - + 1 AS col0
----
3534

skipif mysql # not compatible
query I rowsort label-6029
SELECT - COUNT ( * ) + + 52 * - COUNT ( * ) * ( - 68 ) - + 1 AS col0
----
3534

query I rowsort
SELECT ALL ( - - 84 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT + COUNT( * ) - 98 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-6031
SELECT + COUNT ( * ) - 98 AS col2
----
-97

query I rowsort
SELECT + 68 * + ( + 25 )
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT - 80 + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-6033
SELECT - 80 + + COUNT ( * )
----
-79

query I rowsort
SELECT + 85 - - - 81 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL CASE - COUNT( * ) WHEN - 46 THEN - + NULLIF ( 18, 14 ) END - + 85 * - + 41 * - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL CASE - COUNT ( * ) WHEN - 46 THEN - + NULLIF ( 18, 14 ) END - + 85 * - + 41 * - - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT DISTINCT + 64 * - + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT + 64 * - + COUNT ( * )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6037
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) DIV 16 + - + COUNT( * ) + - - 31 + + - 60 * + ( 30 ) * COUNT( * ) + 2
----
-1768

skipif mysql # not compatible
query I rowsort label-6037
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) / 16 + - + COUNT ( * ) + - - 31 + + - 60 * + ( 30 ) * COUNT ( * ) + 2
----
-1768

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL + COUNT( * ) * + 44
----
44

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL + COUNT ( * ) * + 44
----
44

query I rowsort
SELECT ( + - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT - 96 * + 32 * + COUNT( * ) * + + 49 AS col2
----
-150528

skipif mysql # not compatible
query I rowsort label-6040
SELECT - 96 * + 32 * + COUNT ( * ) * + + 49 AS col2
----
-150528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6041
SELECT + 62 * - CAST( NULL AS SIGNED ) + - 42 + + - 13 + + 48 * + 24 * + COALESCE ( - - ( - COUNT( * ) ), - 48, 28, + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT + 62 * - CAST ( NULL AS INTEGER ) + - 42 + + - 13 + + 48 * + 24 * + COALESCE ( - - ( - COUNT ( * ) ), - 48, 28, + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT + MAX( - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-6042
SELECT + MAX ( - 76 )
----
-76

query I rowsort
SELECT ( 96 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT + ( - ( MIN( DISTINCT + 45 ) ) )
----
-45

skipif mysql # not compatible
query I rowsort label-6044
SELECT + ( - ( MIN ( DISTINCT + 45 ) ) )
----
-45

query I rowsort
SELECT ALL 35 * - CASE - ( - 2 ) WHEN + 81 THEN 93 WHEN - 47 THEN - - 96 END * + + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT + 10 * COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-6046
SELECT + 10 * COUNT ( * )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6047
SELECT DISTINCT - + COUNT( * ) * - 48 + + - CAST( NULL AS SIGNED ) * + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT - + COUNT ( * ) * - 48 + + - CAST ( NULL AS INTEGER ) * + 31 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 42 * + - 27 + 25 + 5
----
-1104

query I rowsort
SELECT ALL + 6 * + 55 + - 4 AS col2
----
326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT ALL + 30 * + CAST( 25 AS SIGNED ) - 73
----
677

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + 30 * + CAST ( 25 AS INTEGER ) - 73
----
677

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT + + MIN( + 30 ) * COALESCE ( COALESCE ( + - 8, + ( - - 36 ) ), - CASE 72 WHEN 59 + + + 46 + - 34 - NULLIF ( - + 9, + 57 ) THEN NULL WHEN 27 THEN NULL WHEN + 0 + + 71 THEN NULL ELSE - 65 * 19 + + 11 END + - 24 )
----
-240

skipif mysql # not compatible
query I rowsort label-6051
SELECT + + MIN ( + 30 ) * COALESCE ( COALESCE ( + - 8, + ( - - 36 ) ), - CASE 72 WHEN 59 + + + 46 + - 34 - NULLIF ( - + 9, + 57 ) THEN NULL WHEN 27 THEN NULL WHEN + 0 + + 71 THEN NULL ELSE - 65 * 19 + + 11 END + - 24 )
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6052
SELECT - ( CASE + 43 WHEN + CASE + 81 WHEN + MAX( ALL - - 82 ) + - + 5 THEN - - 55 WHEN - - 20 - - 71 THEN NULL ELSE NULL END THEN + COUNT( 56 ) - - CAST( NULL AS SIGNED ) * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 65 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT - ( CASE + 43 WHEN + CASE + 81 WHEN + MAX ( ALL - - 82 ) + - + 5 THEN - - 55 WHEN - - 20 - - 71 THEN NULL ELSE NULL END THEN + COUNT ( 56 ) - - CAST ( NULL AS INTEGER ) * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 65 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT - COALESCE ( + COUNT( * ), - + MIN( + 19 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6053
SELECT - COALESCE ( + COUNT ( * ), - + MIN ( + 19 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT - CAST( + - 88 AS SIGNED ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6054
SELECT - CAST ( + - 88 AS INTEGER ) AS col0
----
88

query I rowsort
SELECT ALL 70 * + - 88 + + ( 66 ) * - 11 AS col1
----
-6886

query I rowsort
SELECT + - 0 - + 45 AS col2
----
-45

query I rowsort
SELECT + - 90 col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT - 91 + - - COUNT( - + 6 )
----
-90

skipif mysql # not compatible
query I rowsort label-6058
SELECT - 91 + - - COUNT ( - + 6 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT + MAX( + - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-6059
SELECT + MAX ( + - 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ALL - COUNT( * ) * + COUNT( * ) - + 26 * 12 * - ( - 5 ) * + + 35 AS col0
----
-54601

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL - COUNT ( * ) * + COUNT ( * ) - + 26 * 12 * - ( - 5 ) * + + 35 AS col0
----
-54601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6061
SELECT DISTINCT - AVG ( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT - AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + + 45 * 61
----
2745

query I rowsort
SELECT - + 17 + 94
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT - 16 * + 18 * CASE + + 89 WHEN + NULLIF ( - 42, - MIN( + COALESCE ( - - 88, 11 - - 42 + 37 + + 49 * + 62 * 1 ) ) ) + - 37 THEN + COALESCE ( 50, + COUNT( * ), - 70 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT - 16 * + 18 * CASE + + 89 WHEN + NULLIF ( - 42, - MIN ( + COALESCE ( - - 88, 11 - - 42 + 37 + + 49 * + 62 * 1 ) ) ) + - 37 THEN + COALESCE ( 50, + COUNT ( * ), - 70 ) ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL + 50 * + 73 * - - ( + 54 ) * - - 38
----
7489800

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6066
SELECT - CAST( NULL AS DECIMAL ) AS col2, 62 * 56
----
NULL
3472

skipif mysql # not compatible
query II rowsort label-6066
SELECT - CAST ( NULL AS REAL ) AS col2, 62 * 56
----
NULL
3472

onlyif mysql # DIV for integer division: 
query II rowsort label-6067
SELECT 29, 70 DIV - - 34 AS col2
----
29
2

skipif mysql # not compatible
query II rowsort label-6067
SELECT 29, 70 / - - 34 AS col2
----
29
2

query I rowsort
SELECT - 9 + + - ( + 31 )
----
-40

query I rowsort
SELECT DISTINCT ( - + 31 )
----
-31

query I rowsort
SELECT ALL ( - + 22 )
----
-22

query II rowsort
SELECT - 80 * - - NULLIF ( 83, + 63 ) AS col0, - 76
----
-6640
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6072
SELECT ALL CASE + - CAST( - 21 AS SIGNED ) WHEN - 49 * + 95 * 59 + 8 THEN - 37 - + - 33 END * + 7 * - CAST( NULL AS SIGNED ) / - NULLIF ( + CASE + 89 WHEN 4 * 76 - + COUNT( * ) * - 6 THEN 97 * + AVG ( ALL 36 ) + 50 * - 74 END, 83 * + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL CASE + - CAST ( - 21 AS INTEGER ) WHEN - 49 * + 95 * 59 + 8 THEN - 37 - + - 33 END * + 7 * - CAST ( NULL AS INTEGER ) / - NULLIF ( + CASE + 89 WHEN 4 * 76 - + COUNT ( * ) * - 6 THEN 97 * + AVG ( ALL 36 ) + 50 * - 74 END, 83 * + 33 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6073
SELECT DISTINCT CAST( + + 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT CAST ( + + 52 AS INTEGER )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6074
SELECT ALL - 87 DIV - + 98 * + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL - 87 / - + 98 * + 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT - MIN( - - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-6075
SELECT - MIN ( - - 11 )
----
-11

query I rowsort
SELECT ALL ( + - 68 )
----
-68

query I rowsort
SELECT - 38 - 50 AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6078
SELECT DISTINCT CAST( 85 AS SIGNED ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT CAST ( 85 AS INTEGER ) AS col1
----
85

query I rowsort
SELECT ALL - 88 + 67 - + 57
----
-78

query I rowsort
SELECT 51 * 37 * + 25 - - ( + 79 )
----
47254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6081
SELECT + COALESCE ( + 16, + - 95 DIV 48, + 32 * - COUNT( * ) DIV - 54 + 0 DIV 37 - + - 57 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6081
SELECT + COALESCE ( + 16, + - 95 / 48, + 32 * - COUNT ( * ) / - 54 + 0 / 37 - + - 57 ) AS col1
----
16

query I rowsort
SELECT ALL + 15 * + 80 AS col0
----
1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6083
SELECT ALL COUNT( * ) DIV - COUNT( * ) + + COUNT( + + 42 ) * + SUM( ALL 89 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL COUNT ( * ) / - COUNT ( * ) + + COUNT ( + + 42 ) * + SUM ( ALL 89 ) AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT ALL + - 27 DIV - 6 + + + 34 + 39
----
77

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL + - 27 / - 6 + + + 34 + 39
----
77

query I rowsort
SELECT + - ( - ( + + 12 ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT - 94 * - - COUNT( ALL + 16 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-6086
SELECT - 94 * - - COUNT ( ALL + 16 ) AS col2
----
-94

query I rowsort
SELECT ALL + 70 + + 89
----
159

query II rowsort
SELECT ALL - 77 AS col2, 46 + - 79 + + + NULLIF ( + - 24, 19 )
----
-77
-57

query I rowsort
SELECT DISTINCT - ( + + 94 ) + + 52
----
-42

query I rowsort
SELECT - 69 * + 89 + - 35 AS col2
----
-6176

onlyif mysql # aggregate syntax: 
query II rowsort label-6091
SELECT DISTINCT - - 9 AS col1, - COUNT( - 2 )
----
9
-1

skipif mysql # not compatible
query II rowsort label-6091
SELECT DISTINCT - - 9 AS col1, - COUNT ( - 2 )
----
9
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6092
SELECT - 83 + + + 48 + + 65 DIV 23 + + 94 * + 69 * - NULLIF ( - 38, - - ( MAX( + + 66 ) ) ) + - - COUNT( * ) AS col2
----
246436

skipif mysql # not compatible
query I rowsort label-6092
SELECT - 83 + + + 48 + + 65 / 23 + + 94 * + 69 * - NULLIF ( - 38, - - ( MAX ( + + 66 ) ) ) + - - COUNT ( * ) AS col2
----
246436

onlyif mysql # DIV for integer division: 
query I rowsort label-6093
SELECT ALL 36 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL 36 / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT + - 51 * + ( + 5 ) + - CASE + 66 WHEN + - 80 * + MAX( DISTINCT + 93 ) THEN - COUNT( * ) WHEN - - 69 THEN - 80 + 74 WHEN + - 22 * - AVG ( ALL - 18 ) + 3 * NULLIF ( 85 * - 95 - 13, 69 + + 84 * + 96 ) THEN NULL END + 26 / + COUNT( * ) + - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT + - 51 * + ( + 5 ) + - CASE + 66 WHEN + - 80 * + MAX ( DISTINCT + 93 ) THEN - COUNT ( * ) WHEN - - 69 THEN - 80 + 74 WHEN + - 22 * - AVG ( ALL - 18 ) + 3 * NULLIF ( 85 * - 95 - 13, 69 + + 84 * + 96 ) THEN NULL END + 26 / + COUNT ( * ) + - 49 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT DISTINCT - + ( + NULLIF ( 94, + CAST( NULL AS SIGNED ) ) ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT - + ( + NULLIF ( 94, + CAST ( NULL AS INTEGER ) ) ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT ALL - MIN( + - 74 ) * 99 * - + 88
----
-644688

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL - MIN ( + - 74 ) * 99 * - + 88
----
-644688

query I rowsort
SELECT DISTINCT ( - + 46 ) * + 26
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL CASE + COUNT( * ) WHEN 2 * - COUNT( * ) + - 18 THEN 98 WHEN - COUNT( * ) * AVG ( - 72 ) THEN NULL WHEN + 49 THEN NULL END * - + 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL CASE + COUNT ( * ) WHEN 2 * - COUNT ( * ) + - 18 THEN 98 WHEN - COUNT ( * ) * AVG ( - 72 ) THEN NULL WHEN + 49 THEN NULL END * - + 10 col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6099
SELECT CAST( NULL AS DECIMAL ) * 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6099
SELECT CAST ( NULL AS REAL ) * 94 AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( + ( 84 ), + + 82 ) * - + 35
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT COALESCE ( - ( + 76 ), - 54 ) + + - 61 + + 1 * + COUNT( ALL + - 91 )
----
-136

skipif mysql # not compatible
query I rowsort label-6101
SELECT COALESCE ( - ( + 76 ), - 54 ) + + - 61 + + 1 * + COUNT ( ALL + - 91 )
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6102
SELECT ALL - 92 * - CAST( + 52 AS SIGNED ) AS col1
----
4784

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL - 92 * - CAST ( + 52 AS INTEGER ) AS col1
----
4784

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT 47 + COALESCE ( - COUNT( - 28 ), 88 + + + 22 - + 52, + 95 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6103
SELECT 47 + COALESCE ( - COUNT ( - 28 ), 88 + + + 22 - + 52, + 95 ) AS col0
----
46

query I rowsort
SELECT ALL 32 + + 65 + - 58
----
39

query I rowsort
SELECT 37 + + - 9 * - 92 * - COALESCE ( - 80, - - NULLIF ( 60, + 1 ) ) * 3
----
198757

query II rowsort
SELECT 73 - + - 93 AS col1, + 74
----
166
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT 47 + - ( + + 8 ) + + 67 * + 22 * + + COUNT( * ) * - + 5 * 78 + 90
----
-574731

skipif mysql # not compatible
query I rowsort label-6107
SELECT 47 + - ( + + 8 ) + + 67 * + 22 * + + COUNT ( * ) * - + 5 * 78 + 90
----
-574731

onlyif mysql # aggregate syntax: 
query II rowsort label-6108
SELECT DISTINCT + 11 + - 4 AS col2, AVG ( DISTINCT + 27 ) * - + 66 * + 4 + 36 - CASE - MAX( 23 ) WHEN - ( + + 23 ) THEN - ( + 58 ) + - CASE - 75 WHEN - - 36 * - 92 THEN 15 + + 32 END END - 44 - - 13 AS col0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-6108
SELECT DISTINCT + 11 + - 4 AS col2, AVG ( DISTINCT + 27 ) * - + 66 * + 4 + 36 - CASE - MAX ( 23 ) WHEN - ( + + 23 ) THEN - ( + 58 ) + - CASE - 75 WHEN - - 36 * - 92 THEN 15 + + 32 END END - 44 - - 13 AS col0
----
7
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6109
SELECT ALL - 57 + + + 28 DIV 45
----
-57

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL - 57 + + + 28 / 45
----
-57

query I rowsort
SELECT - NULLIF ( + 17, 94 ) AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-6111
SELECT + - ( - 70 ) DIV + - ( - 82 ) + + 37 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6111
SELECT + - ( - 70 ) / + - ( - 82 ) + + 37 AS col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6112
SELECT + SUM( + 45 ) col1, 48 AS col2
----
45
48

skipif mysql # not compatible
query II rowsort label-6112
SELECT + SUM ( + 45 ) col1, 48 AS col2
----
45
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6113
SELECT - 14 + 18 AS col1, - COUNT( * ) + - + 52 * - ( - - 19 ) AS col0
----
4
987

skipif mysql # not compatible
query II rowsort label-6113
SELECT - 14 + 18 AS col1, - COUNT ( * ) + - + 52 * - ( - - 19 ) AS col0
----
4
987

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT + - COUNT( * ) * - 0 * + 89 * 41 * + MAX( 27 ) * - 11 * MAX( DISTINCT 43 ) + + - ( - 85 ) + - 11 * COUNT( * ) * + 54
----
-509

skipif mysql # not compatible
query I rowsort label-6114
SELECT + - COUNT ( * ) * - 0 * + 89 * 41 * + MAX ( 27 ) * - 11 * MAX ( DISTINCT 43 ) + + - ( - 85 ) + - 11 * COUNT ( * ) * + 54
----
-509

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT ALL + + SUM( + 23 ) + 37 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL + + SUM ( + 23 ) + 37 AS col1
----
60

query I rowsort
SELECT 53 * - 66 + 55 * 14 AS col0
----
-2728

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT ALL + + 3 * - + ( - MAX( DISTINCT + + 95 ) ) * + COUNT( * ) + NULLIF ( - 31, 66 * + 27 * + + 20 ) * - + 44
----
1649

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + + 3 * - + ( - MAX ( DISTINCT + + 95 ) ) * + COUNT ( * ) + NULLIF ( - 31, 66 * + 27 * + + 20 ) * - + 44
----
1649

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT ALL - + CASE 74 WHEN + 5 THEN - 9 / + 76 * - 92 / 58 + - 36 + COUNT( * ) END - - 83 * 48 * + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL - + CASE 74 WHEN + 5 THEN - 9 / + 76 * - 92 / 58 + - 36 + COUNT ( * ) END - - 83 * 48 * + 93 AS col1
----
NULL

query III rowsort
SELECT 61 * - 5 + 53 AS col2, 54 + 25 AS col0, - 37
----
-252
79
-37

query I rowsort
SELECT DISTINCT 43 * + + ( + 13 )
----
559

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT ALL - COUNT( DISTINCT + 32 ) - - 1
----
0

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL - COUNT ( DISTINCT + 32 ) - - 1
----
0

query I rowsort
SELECT + CASE - 51 WHEN + + 53 - - + 4 THEN NULL ELSE - 59 END AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT ALL - + 11 * - 89 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL - + 11 * - 89 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6124
SELECT - 30 DIV - 92 * - 23
----
0

skipif mysql # not compatible
query I rowsort label-6124
SELECT - 30 / - 92 * - 23
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6125
SELECT COUNT( * ) * - - COUNT( * ) + + + 75 + + 14 DIV + 1 AS col1, - 51 * + 82 AS col1
----
90
-4182

skipif mysql # not compatible
query II rowsort label-6125
SELECT COUNT ( * ) * - - COUNT ( * ) + + + 75 + + 14 / + 1 AS col1, - 51 * + 82 AS col1
----
90
-4182

query I rowsort
SELECT DISTINCT - - 61 * - ( + + 32 )
----
-1952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6127
SELECT + MIN( ALL 44 ) DIV + 29 - 98
----
-97

skipif mysql # not compatible
query I rowsort label-6127
SELECT + MIN ( ALL 44 ) / + 29 - 98
----
-97

query I rowsort
SELECT 3 * - 39 * - 72 * 4 AS col2
----
33696

query I rowsort
SELECT 16 * 67 AS col2
----
1072

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT DISTINCT MIN( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT MIN ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT ALL COUNT( - + 28 ) * 96
----
96

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL COUNT ( - + 28 ) * 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL COUNT( * ) + - ( 5 ) * + + 52 * - 63
----
16381

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL COUNT ( * ) + - ( 5 ) * + + 52 * - 63
----
16381

query I rowsort
SELECT 57 * + 3
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6134
SELECT DISTINCT 26 * + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT 26 * + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6135
SELECT ( - COUNT( * ) ) + + 13 * - COUNT( * ) DIV SUM( + 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-6135
SELECT ( - COUNT ( * ) ) + + 13 * - COUNT ( * ) / SUM ( + 97 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6136
SELECT ALL 11, 2 + - - 7 + MIN( - 7 ) col2
----
11
2

skipif mysql # not compatible
query II rowsort label-6136
SELECT ALL 11, 2 + - - 7 + MIN ( - 7 ) col2
----
11
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT ALL 78 + + SUM( 31 ) - CASE - 0 WHEN - - 4 * - 75 * 13 * + 13 + + - 95 + - + 96 * + 29 + - + 30 * + - 50 * - 69 * - + 48 * + - 40 + + NULLIF ( 31, - 87 * + 24 ) THEN + ( - 72 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL 78 + + SUM ( 31 ) - CASE - 0 WHEN - - 4 * - 75 * 13 * + 13 + + - 95 + - + 96 * + 29 + - + 30 * + - 50 * - 69 * - + 48 * + - 40 + + NULLIF ( 31, - 87 * + 24 ) THEN + ( - 72 ) END AS col1
----
NULL

query I rowsort
SELECT ALL 55 + + 1 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT DISTINCT - 70 + 22 * - MAX( DISTINCT 76 ) + + COALESCE ( 54, 55, + - 4 )
----
-1688

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT - 70 + 22 * - MAX ( DISTINCT 76 ) + + COALESCE ( 54, 55, + - 4 )
----
-1688

query I rowsort
SELECT - COALESCE ( - + 99, + 6 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT DISTINCT 84 + - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT 84 + - COUNT ( * ) AS col1
----
83

query II rowsort
SELECT - 57 AS col1, 55 AS col1
----
-57
55

query I rowsort
SELECT ALL 68 - 38 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT - - MIN( DISTINCT - 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-6144
SELECT - - MIN ( DISTINCT - 29 ) AS col2
----
-29

query I rowsort
SELECT + - 62 - + 42 AS col2
----
-104

query I rowsort
SELECT - - 57 * - 77
----
-4389

query I rowsort
SELECT ALL - 18 * - + 22 AS col1
----
396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6148
SELECT + - CAST( NULL AS SIGNED ) + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT + - CAST ( NULL AS INTEGER ) + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT ALL + 29 * + CASE - 84 WHEN + - 20 * + + 91 * + 94 THEN NULL WHEN - + 46 + 85 THEN 31 ELSE NULL END - + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL + 29 * + CASE - 84 WHEN + - 20 * + + 91 * + 94 THEN NULL WHEN - + 46 + 85 THEN 31 ELSE NULL END - + - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT - 1 - - NULLIF ( + + COUNT( ALL + 83 ), - CASE + 85 WHEN - - COUNT( * ) THEN - + 28 WHEN + 13 - + + COUNT( * ) THEN - 68 + + 32 END + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6150
SELECT - 1 - - NULLIF ( + + COUNT ( ALL + 83 ), - CASE + 85 WHEN - - COUNT ( * ) THEN - + 28 WHEN + 13 - + + COUNT ( * ) THEN - 68 + + 32 END + COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT DISTINCT + + COUNT( + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT + + COUNT ( + 91 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6152
SELECT + 58 + + 10 * - CAST( NULL AS SIGNED ), + 54 AS col0
----
NULL
54

skipif mysql # not compatible
query II rowsort label-6152
SELECT + 58 + + 10 * - CAST ( NULL AS INTEGER ), + 54 AS col0
----
NULL
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT - - MIN( DISTINCT - 55 ) * 98 * + ( 86 ) AS col0
----
-463540

skipif mysql # not compatible
query I rowsort label-6153
SELECT - - MIN ( DISTINCT - 55 ) * 98 * + ( 86 ) AS col0
----
-463540

query II rowsort
SELECT 42 AS col2, + 30 + 34 * - - 64 - + ( - + 26 )
----
42
2232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6155
SELECT - + 86 + + CASE 9 WHEN - - CAST( - 22 AS SIGNED ) * 55 THEN + - 35 * - 14 - 93 * 95 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6155
SELECT - + 86 + + CASE 9 WHEN - - CAST ( - 22 AS INTEGER ) * 55 THEN + - 35 * - 14 - 93 * 95 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - - ( - 17 ) - + 67 - + NULLIF ( + 12, - NULLIF ( + 2, + 57 ) ) * - 98
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT - COALESCE ( 1, + 68 + + COUNT( * ) ) * - + 36 col2
----
36

skipif mysql # not compatible
query I rowsort label-6157
SELECT - COALESCE ( 1, + 68 + + COUNT ( * ) ) * - + 36 col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6158
SELECT - 39 + + + 66 AS col0, 98 * + - COUNT( * ) col1
----
27
-98

skipif mysql # not compatible
query II rowsort label-6158
SELECT - 39 + + + 66 AS col0, 98 * + - COUNT ( * ) col1
----
27
-98

query I rowsort
SELECT ALL + ( - ( - + 97 ) )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6160
SELECT DISTINCT + CAST( + + CASE - 8 WHEN - 18 THEN NULL ELSE - 44 END AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT + CAST ( + + CASE - 8 WHEN - 18 THEN NULL ELSE - 44 END AS INTEGER )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL COUNT( * ) * + 39 + + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL COUNT ( * ) * + 39 + + + COUNT ( * )
----
40

query I rowsort
SELECT - 51 * + + 75
----
-3825

query I rowsort
SELECT DISTINCT + 16 * 40 + - 78
----
562

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL + 83 * - 27 * - COUNT( * ) * - 63 * - - SUM( + - 62 ) + + - 64 AS col1
----
8753282

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL + 83 * - 27 * - COUNT ( * ) * - 63 * - - SUM ( + - 62 ) + + - 64 AS col1
----
8753282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6165
SELECT DISTINCT ( ( - - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT ( ( - - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL ( + CASE + 82 WHEN - + 1 * + 74 THEN + 91 * 89 ELSE NULL END )
----
NULL

query I rowsort
SELECT - 91 + - CASE + 97 WHEN - + 94 THEN - + 43 * + 8 - - - 48 * + 83 WHEN - 49 + + 46 THEN - + 66 ELSE + 26 END
----
-117

query I rowsort
SELECT - COALESCE ( + 49, - - ( - 30 ), + 45 )
----
-49

query I rowsort
SELECT - 67 + 77 AS col1
----
10

query I rowsort
SELECT ALL 79 + + + 48
----
127

query I rowsort
SELECT DISTINCT ( - - CASE 75 WHEN - + 48 THEN NULL ELSE 34 END ) AS col2
----
34

query I rowsort
SELECT ALL ( + - 62 ) col2
----
-62

query I rowsort
SELECT + NULLIF ( + 33, + 43 + - 3 / CASE 63 WHEN + + 7 * 33 THEN + - 79 WHEN - 68 + 57 + - - 59 THEN NULL END ) * + 30 AS col2
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT + COALESCE ( - + 42, + 55 * - 54 - 87 + + - COUNT( * ) - - 10 ) + + 25 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6174
SELECT + COALESCE ( - + 42, + 55 * - 54 - 87 + + - COUNT ( * ) - - 10 ) + + 25 AS col2
----
-17

query I rowsort
SELECT ALL + 57 - 49 + 13 * 44 AS col1
----
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6176
SELECT + + CAST( NULL AS SIGNED ) * + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6176
SELECT + + CAST ( NULL AS INTEGER ) * + 62 AS col0
----
NULL

query I rowsort
SELECT - + 91 + - + COALESCE ( 37, - 92 ) + - 86 * - + 46 AS col1
----
3828

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6178
SELECT + 5 - + CASE - 93 WHEN + + 32 THEN + - NULLIF ( + - 63, - SUM( 73 ) / - + 95 + - 56 * 21 ) END + + - CAST( - 16 AS DECIMAL ) + - 87 * - 37 / - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT + 5 - + CASE - 93 WHEN + + 32 THEN + - NULLIF ( + - 63, - SUM ( 73 ) / - + 95 + - 56 * 21 ) END + + - CAST ( - 16 AS REAL ) + - 87 * - 37 / - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6179
SELECT ALL - ( + 28 ) * + 1 * + 52 + 21 * + 81 + + NULLIF ( 47, + 4 * - 85 / + 63 + 89 * 48 ) + - + COUNT( * ) * - NULLIF ( - 95, + + 35 ) AS col0, + 85 AS col1
----
197
85

skipif mysql # not compatible
query II rowsort label-6179
SELECT ALL - ( + 28 ) * + 1 * + 52 + 21 * + 81 + + NULLIF ( 47, + 4 * - 85 / + 63 + 89 * 48 ) + - + COUNT ( * ) * - NULLIF ( - 95, + + 35 ) AS col0, + 85 AS col1
----
197
85

query I rowsort
SELECT + 49 + + 59 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + COUNT( * ) - - 80 + 74 AS col2
----
155

skipif mysql # not compatible
query I rowsort label-6181
SELECT + COUNT ( * ) - - 80 + 74 AS col2
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-6182
SELECT DISTINCT MAX( DISTINCT + 59 ) AS col1, 97 col0
----
59
97

skipif mysql # not compatible
query II rowsort label-6182
SELECT DISTINCT MAX ( DISTINCT + 59 ) AS col1, 97 col0
----
59
97

query I rowsort
SELECT + 76 * - 25 + + 96 * - 93 - 98
----
-10926

query I rowsort
SELECT DISTINCT + ( 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT - COALESCE ( + SUM( 32 ), + - 97 - - + 83, + 62 - 21 * + - COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-6185
SELECT - COALESCE ( + SUM ( 32 ), + - 97 - - + 83, + 62 - 21 * + - COUNT ( * ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT + + COUNT( * ) * 35
----
35

skipif mysql # not compatible
query I rowsort label-6186
SELECT + + COUNT ( * ) * 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT - 27 * - 45 + - 27 - + - COUNT( * ) * - 16
----
1172

skipif mysql # not compatible
query I rowsort label-6187
SELECT - 27 * - 45 + - 27 - + - COUNT ( * ) * - 16
----
1172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6188
SELECT + CAST( + 93 AS SIGNED ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6188
SELECT + CAST ( + 93 AS INTEGER ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT + 21 * - ( - COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-6189
SELECT + 21 * - ( - COUNT ( * ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT DISTINCT 91 * + 85 + - MIN( DISTINCT - 45 )
----
7780

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT 91 * + 85 + - MIN ( DISTINCT - 45 )
----
7780

query I rowsort
SELECT + 79 * 87 AS col0
----
6873

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT + 88 DIV 35 * + 49
----
98

skipif mysql # not compatible
query I rowsort label-6192
SELECT + 88 / 35 * + 49
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6193
SELECT DISTINCT + 81 DIV - 91 + - + 97 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT + 81 / - 91 + - + 97 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT COALESCE ( + - 47, COALESCE ( + COUNT( ALL + 58 ), + - 51, + 52 * 38 * + - CASE 9 WHEN 42 - 54 THEN - 52 END, - ( - - ( 6 ) ) * + 68 * 37 * + + COALESCE ( + 52, - 5 ) + + 97 ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6194
SELECT COALESCE ( + - 47, COALESCE ( + COUNT ( ALL + 58 ), + - 51, + 52 * 38 * + - CASE 9 WHEN 42 - 54 THEN - 52 END, - ( - - ( 6 ) ) * + 68 * 37 * + + COALESCE ( + 52, - 5 ) + + 97 ) ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT ALL + + MIN( - + 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL + + MIN ( - + 34 ) AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6196
SELECT ALL - 5 DIV + 65 + SUM( DISTINCT - + 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL - 5 / + 65 + SUM ( DISTINCT - + 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT ALL 75 * - - 9 + + + MIN( - 83 )
----
592

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL 75 * - - 9 + + + MIN ( - 83 )
----
592

query I rowsort
SELECT ( - + 94 ) col1
----
-94

query I rowsort
SELECT + 97 * 59
----
5723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6200
SELECT ALL - 73 * COUNT( * ) + CAST( - - ( - - 43 ) AS SIGNED ) DIV - + 36
----
-74

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL - 73 * COUNT ( * ) + CAST ( - - ( - - 43 ) AS INTEGER ) / - + 36
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT + SUM( DISTINCT + + 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6201
SELECT + SUM ( DISTINCT + + 86 ) AS col0
----
86

query I rowsort
SELECT COALESCE ( 53, - COALESCE ( - + 26, + CASE + 83 WHEN 97 * + 32 - - 5 THEN - 89 * + 65 + - 17 END ) + - 18, - - 68 )
----
53

query I rowsort
SELECT DISTINCT - 24 + 54
----
30

query I rowsort
SELECT ALL + 70 * 5 * 80
----
28000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6205
SELECT DISTINCT - 43 - - NULLIF ( ( 87 ), - 90 - + - CAST( 48 AS SIGNED ) + 15 * 97 / + COUNT( * ) ) AS col0, MAX( 50 ) * - 12 + - 60
----
44
-660

skipif mysql # not compatible
query II rowsort label-6205
SELECT DISTINCT - 43 - - NULLIF ( ( 87 ), - 90 - + - CAST ( 48 AS INTEGER ) + 15 * 97 / + COUNT ( * ) ) AS col0, MAX ( 50 ) * - 12 + - 60
----
44
-660

query I rowsort
SELECT DISTINCT + 52 * + 70 * - 94 * 77 col2
----
-26346320

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT DISTINCT + COUNT( * ) - ( - 48 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT + COUNT ( * ) - ( - 48 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT 76 - - 14 + SUM( ALL + 15 ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-6208
SELECT 76 - - 14 + SUM ( ALL + 15 ) AS col2
----
105

query I rowsort
SELECT ALL + 70 * - - 11 AS col1
----
770

query II rowsort
SELECT 46, + 98 AS col2
----
46
98

query II rowsort
SELECT ALL 21, 28 AS col2
----
21
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6212
SELECT CASE MIN( DISTINCT 59 ) WHEN - 29 THEN NULL WHEN - MAX( 3 ) / - + 13 + 93 THEN NULLIF ( - ( CAST( NULL AS SIGNED ) ), - - ( - 8 ) * - CAST( NULL AS SIGNED ) * COALESCE ( + 23, 33, - + 60 ) * - - ( - 16 ) - 55 / 64 ) ELSE 49 END * + 53 AS col0
----
2597

skipif mysql # not compatible
query I rowsort label-6212
SELECT CASE MIN ( DISTINCT 59 ) WHEN - 29 THEN NULL WHEN - MAX ( 3 ) / - + 13 + 93 THEN NULLIF ( - ( CAST ( NULL AS INTEGER ) ), - - ( - 8 ) * - CAST ( NULL AS INTEGER ) * COALESCE ( + 23, 33, - + 60 ) * - - ( - 16 ) - 55 / 64 ) ELSE 49 END * + 53 AS col0
----
2597

query I rowsort
SELECT DISTINCT ( - 37 ) AS col2
----
-37

query I rowsort
SELECT DISTINCT + NULLIF ( - 4, + 92 * + 17 / + + 71 + + + 94 ) - - 55
----
51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6215
SELECT - CAST( + 83 AS DECIMAL ) * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT - CAST ( + 83 AS REAL ) * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - - 59, 10 ) AS col0
----
-59

query I rowsort
SELECT ALL + 10 * - - 76 * 8
----
6080

onlyif mysql # aggregate syntax: 
query II rowsort label-6218
SELECT DISTINCT 18 * - - 85 - + - 29, - COUNT( * ) AS col1
----
1559
-1

skipif mysql # not compatible
query II rowsort label-6218
SELECT DISTINCT 18 * - - 85 - + - 29, - COUNT ( * ) AS col1
----
1559
-1

query I rowsort
SELECT 46 * + 98 + - 35 col0
----
4473

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT + 27 DIV + ( - 83 ) - 47
----
-47

skipif mysql # not compatible
query I rowsort label-6220
SELECT + 27 / + ( - 83 ) - 47
----
-47

query I rowsort
SELECT 5 * - ( + 48 ) + + 63 AS col0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT + COUNT( * ) * - - 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6222
SELECT + COUNT ( * ) * - - 1 AS col1
----
1

query I rowsort
SELECT 38 + - 59
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6224
SELECT CASE + 38 WHEN - COUNT( * ) + - CAST( NULL AS SIGNED ) * 91 * + + 73 * - - 53 THEN CASE + + 17 WHEN 18 THEN - - COALESCE ( - 77, - 79 ) + 89 END / 47 + - 13 WHEN - SUM( ALL + 84 ) * + 86 * + 52 + + 23 THEN NULL END / + 74 + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6224
SELECT CASE + 38 WHEN - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 91 * + + 73 * - - 53 THEN CASE + + 17 WHEN 18 THEN - - COALESCE ( - 77, - 79 ) + 89 END / 47 + - 13 WHEN - SUM ( ALL + 84 ) * + 86 * + 52 + + 23 THEN NULL END / + 74 + 68 AS col2
----
NULL

query I rowsort
SELECT ALL - + COALESCE ( + ( 41 ), + 83 )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6226
SELECT DISTINCT - + 62 + + ( - 80 ) DIV - + 87 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT - + 62 + + ( - 80 ) / - + 87 AS col0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6227
SELECT ALL - 83 + + + MIN( - + 56 ) DIV 60 + + ( 24 )
----
-59

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL - 83 + + + MIN ( - + 56 ) / 60 + + ( 24 )
----
-59

query I rowsort
SELECT + + 61 col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT DISTINCT 64 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT 64 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 94, - 38 col2
----
-94
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-6231
SELECT ALL 4 + - ( + 39 ) * - 9 + - 74 DIV - - 23
----
352

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL 4 + - ( + 39 ) * - 9 + - 74 / - - 23
----
352

query I rowsort
SELECT ALL ( - + 6 ) + + + 91
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6233
SELECT ALL CAST( - 71 AS SIGNED ) + - ( CASE - COALESCE ( 69, - CAST( + + ( - 44 ) AS SIGNED ) ) WHEN - 63 THEN - 14 + 43 * 56 WHEN + + 9 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL CAST ( - 71 AS INTEGER ) + - ( CASE - COALESCE ( 69, - CAST ( + + ( - 44 ) AS INTEGER ) ) WHEN - 63 THEN - 14 + 43 * 56 WHEN + + 9 THEN NULL END ) AS col2
----
NULL

query II rowsort
SELECT - 20 * - - 97 + - 1 * + + 0 AS col1, 19
----
-1940
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6235
SELECT DISTINCT CAST( NULL AS SIGNED ) / - ( - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - ( - 71 )
----
NULL

query I rowsort
SELECT ALL + 38 - 35 * - 84 - - - 6 AS col2
----
2972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6237
SELECT CAST( 28 AS SIGNED ) * - COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6237
SELECT CAST ( 28 AS INTEGER ) * - COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT DISTINCT 67 - - COALESCE ( - 66, - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT 67 - - COALESCE ( - 66, - COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6239
SELECT 76 + - 77 / + + CAST( NULL AS SIGNED ) + + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6239
SELECT 76 + - 77 / + + CAST ( NULL AS INTEGER ) + + 53 AS col2
----
NULL

query I rowsort
SELECT 47 * - 33 AS col2
----
-1551

query I rowsort
SELECT + 88 * ( + ( 86 ) ) * + - 40 * - + 69 * + + 54 + + - 0 * + - 78 AS col2
----
1127934720

query II rowsort
SELECT ALL 64, - 68 AS col2
----
64
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT 66 DIV + - 61
----
-1

skipif mysql # not compatible
query I rowsort label-6243
SELECT 66 / + - 61
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6244
SELECT 1 DIV - 74 * 61 * + 59 col2
----
0

skipif mysql # not compatible
query I rowsort label-6244
SELECT 1 / - 74 * 61 * + 59 col2
----
0

query I rowsort
SELECT 72 + - - 21 * + 53
----
1185

query II rowsort
SELECT DISTINCT 93, - 70 AS col0
----
93
-70

query II rowsort
SELECT ALL + 48, 20 * - 49 AS col0
----
48
-980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6248
SELECT ALL NULLIF ( - 91, + ( 88 ) / - CAST( NULL AS SIGNED ) * + COUNT( * ) + + MAX( - + 15 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL NULLIF ( - 91, + ( 88 ) / - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + MAX ( - + 15 ) ) AS col1
----
-91

query I rowsort
SELECT DISTINCT + - ( - 87 ) * ( - 80 ) + ( 54 )
----
-6906

query I rowsort
SELECT ALL ( + - 78 )
----
-78

query I rowsort
SELECT 81 + 50 AS col0
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-6252
SELECT ALL 21 AS col1, - COUNT( * ) + + 92 + + + 32
----
21
123

skipif mysql # not compatible
query II rowsort label-6252
SELECT ALL 21 AS col1, - COUNT ( * ) + + 92 + + + 32
----
21
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT - 67 + + 11 + - 83 + + 2 * + COUNT( * ) * 81 * 10 AS col1
----
1481

skipif mysql # not compatible
query I rowsort label-6253
SELECT - 67 + + 11 + - 83 + + 2 * + COUNT ( * ) * 81 * 10 AS col1
----
1481

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL + CASE 39 WHEN - + COUNT( * ) THEN + 4 / 14 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL + CASE 39 WHEN - + COUNT ( * ) THEN + 4 / 14 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 73 + + 48 * - 5
----
-167

query I rowsort
SELECT 61 + + ( + 88 ) + - + 19 AS col1
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-6257
SELECT + 22 AS col2, + ( - MAX( ALL 76 ) ) * - 34 * - + 31 + - - 29
----
22
-80075

skipif mysql # not compatible
query II rowsort label-6257
SELECT + 22 AS col2, + ( - MAX ( ALL 76 ) ) * - 34 * - + 31 + - - 29
----
22
-80075

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL + MIN( + 25 ) + + 76 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + MIN ( + 25 ) + + 76 AS col1
----
101

query I rowsort
SELECT - 34 + + 68 AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6260
SELECT COUNT( * ) AS col0, + COUNT( * ) * + NULLIF ( + - 52, 63 ) * 23
----
1
-1196

skipif mysql # not compatible
query II rowsort label-6260
SELECT COUNT ( * ) AS col0, + COUNT ( * ) * + NULLIF ( + - 52, 63 ) * 23
----
1
-1196

query I rowsort
SELECT DISTINCT + - 23 + - 21
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6262
SELECT ALL - - 60 + - CAST( NULL AS SIGNED ) * - 79 * + COUNT( + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL - - 60 + - CAST ( NULL AS INTEGER ) * - 79 * + COUNT ( + 57 )
----
NULL

query I rowsort
SELECT - NULLIF ( + 62, 62 + 62 + 99 )
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-6264
SELECT ALL - 38 + - COALESCE ( 52, COUNT( * ) ) AS col2, 14 * 83 * 14 AS col1
----
-90
16268

skipif mysql # not compatible
query II rowsort label-6264
SELECT ALL - 38 + - COALESCE ( 52, COUNT ( * ) ) AS col2, 14 * 83 * 14 AS col1
----
-90
16268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6265
SELECT - MAX( DISTINCT - 14 ) + - CAST( - 61 AS SIGNED ) + 65 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-6265
SELECT - MAX ( DISTINCT - 14 ) + - CAST ( - 61 AS INTEGER ) + 65 AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT 22 + - SUM( + 82 ) * + 94
----
-7686

skipif mysql # not compatible
query I rowsort label-6266
SELECT 22 + - SUM ( + 82 ) * + 94
----
-7686

query II rowsort
SELECT 9 * - 5 AS col2, 61 + 43
----
-45
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6268
SELECT + COUNT( * ) * 64 DIV + 66 + ( - - MAX( DISTINCT + + 86 ) ) * + MAX( + + 99 ) + + - 64 * - 70 * - 23
----
-94526

skipif mysql # not compatible
query I rowsort label-6268
SELECT + COUNT ( * ) * 64 / + 66 + ( - - MAX ( DISTINCT + + 86 ) ) * + MAX ( + + 99 ) + + - 64 * - 70 * - 23
----
-94526

query I rowsort
SELECT ALL + 1 * + 99 + 76
----
175

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT 31 DIV - + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6270
SELECT 31 / - + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT DISTINCT + ( + ( + COUNT( * ) ) ) * - 63 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT + ( + ( + COUNT ( * ) ) ) * - 63 AS col1
----
-63

query I rowsort
SELECT DISTINCT + 91 * + + 15 - 43 AS col0
----
1322

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT + COUNT( * ) * - 66 + + - 25
----
-91

skipif mysql # not compatible
query I rowsort label-6273
SELECT + COUNT ( * ) * - 66 + + - 25
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6274
SELECT MIN( DISTINCT - 5 ) col1, + ( CASE - 7 WHEN 24 * 73 + ( + 15 ) * 60 * - MAX( ALL - + CASE + + NULLIF ( - + 54, + 15 ) WHEN - 63 THEN 48 ELSE NULL END ) - - ( - 7 ) * 30 THEN - 48 ELSE NULL END ) / + 80 / + 83 + - SUM( DISTINCT - 56 ) AS col2
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-6274
SELECT MIN ( DISTINCT - 5 ) col1, + ( CASE - 7 WHEN 24 * 73 + ( + 15 ) * 60 * - MAX ( ALL - + CASE + + NULLIF ( - + 54, + 15 ) WHEN - 63 THEN 48 ELSE NULL END ) - - ( - 7 ) * 30 THEN - 48 ELSE NULL END ) / + 80 / + 83 + - SUM ( DISTINCT - 56 ) AS col2
----
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT + NULLIF ( + 74, - - AVG ( DISTINCT + 1 ) + 78 / - 39 + + - ( + 77 ) ) + + 83 + - 27 * MAX( + 9 ) * + 89
----
-21470

skipif mysql # not compatible
query I rowsort label-6275
SELECT + NULLIF ( + 74, - - AVG ( DISTINCT + 1 ) + 78 / - 39 + + - ( + 77 ) ) + + 83 + - 27 * MAX ( + 9 ) * + 89
----
-21470

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT + 84 * 49 * - COUNT( + 35 ) AS col2
----
-4116

skipif mysql # not compatible
query I rowsort label-6276
SELECT + 84 * 49 * - COUNT ( + 35 ) AS col2
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT + 90 * + 71 * + ( COUNT( * ) )
----
6390

skipif mysql # not compatible
query I rowsort label-6277
SELECT + 90 * + 71 * + ( COUNT ( * ) )
----
6390

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT + MIN( 6 ) - + 60
----
-54

skipif mysql # not compatible
query I rowsort label-6278
SELECT + MIN ( 6 ) - + 60
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT + SUM( ALL - + ( + 5 ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6279
SELECT + SUM ( ALL - + ( + 5 ) ) AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6280
SELECT + 84 + + - 50 + 64 DIV 70
----
34

skipif mysql # not compatible
query I rowsort label-6280
SELECT + 84 + + - 50 + 64 / 70
----
34

query I rowsort
SELECT ALL 48 * 37 col0
----
1776

query II rowsort
SELECT + 54 * + - 10 AS col1, - 86 * - 88 AS col1
----
-540
7568

query I rowsort
SELECT ALL 60 * ( + - ( - 62 ) )
----
3720

query I rowsort
SELECT ALL 12 * - + 64 AS col0
----
-768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6285
SELECT + CAST( + + COUNT( DISTINCT ( + ( 74 ) ) ) AS SIGNED ) * + + 28 + + 80 * + 46 col2
----
3708

skipif mysql # not compatible
query I rowsort label-6285
SELECT + CAST ( + + COUNT ( DISTINCT ( + ( 74 ) ) ) AS INTEGER ) * + + 28 + + 80 * + 46 col2
----
3708

query II rowsort
SELECT + 56 - - 95, + 22 * + + ( + - 75 ) AS col1
----
151
-1650

query I rowsort
SELECT + 96 * - 28 AS col0
----
-2688

onlyif mysql # DIV for integer division: 
query I rowsort label-6288
SELECT - + ( - 22 ) DIV - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6288
SELECT - + ( - 22 ) / - 46 AS col0
----
0

query I rowsort
SELECT + - 2 * + 41
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT - - 97 * + + COALESCE ( + 30, - COUNT( * ), - 55 ) + - - 15 AS col1
----
2925

skipif mysql # not compatible
query I rowsort label-6290
SELECT - - 97 * + + COALESCE ( + 30, - COUNT ( * ), - 55 ) + - - 15 AS col1
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT + + 28 * COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-6291
SELECT + + 28 * COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query III rowsort label-6292
SELECT DISTINCT - 89 + 72 - - + 7 col0, MIN( DISTINCT 80 ), + 52 + 54 AS col1
----
-10
80
106

skipif mysql # not compatible
query III rowsort label-6292
SELECT DISTINCT - 89 + 72 - - + 7 col0, MIN ( DISTINCT 80 ), + 52 + 54 AS col1
----
-10
80
106

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT ALL - - ( 81 ) + - COUNT( * ) AS col2, - 24 col0
----
80
-24

skipif mysql # not compatible
query II rowsort label-6293
SELECT ALL - - ( 81 ) + - COUNT ( * ) AS col2, - 24 col0
----
80
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6294
SELECT - CASE + 94 WHEN - - ( - - COALESCE ( 81, 15 * + - 51 * + + 15 + 44 + - AVG ( - 32 ), + NULLIF ( - - COUNT( * ), - - 84 * COUNT( * ) ) ) ) * + 87 + CAST( - - COALESCE ( + 54, + + 63 * + 45 * 48 / + 44 - 78 ) AS SIGNED ) THEN CAST( - 26 AS SIGNED ) WHEN NULLIF ( 76, + 22 ) THEN - 78 END * - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT - CASE + 94 WHEN - - ( - - COALESCE ( 81, 15 * + - 51 * + + 15 + 44 + - AVG ( - 32 ), + NULLIF ( - - COUNT ( * ), - - 84 * COUNT ( * ) ) ) ) * + 87 + CAST ( - - COALESCE ( + 54, + + 63 * + 45 * 48 / + 44 - 78 ) AS INTEGER ) THEN CAST ( - 26 AS INTEGER ) WHEN NULLIF ( 76, + 22 ) THEN - 78 END * - 26 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6295
SELECT + - 1 + - 84 + + ( + - CASE - - 68 WHEN 35 * + 32 + + CAST( NULLIF ( + 67, + 16 ) AS SIGNED ) THEN COUNT( * ) / 59 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT + - 1 + - 84 + + ( + - CASE - - 68 WHEN 35 * + 32 + + CAST ( NULLIF ( + 67, + 16 ) AS INTEGER ) THEN COUNT ( * ) / 59 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT - - 95 * - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-6296
SELECT - - 95 * - COUNT ( * )
----
-95

query II rowsort
SELECT 38 col1, 85
----
38
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6298
SELECT ALL + COALESCE ( 31, - + 93 ), + 42 * - + MIN( ALL 9 ) * - COUNT( DISTINCT + CAST( - + 65 AS SIGNED ) ) * + 70 * + 53 AS col1
----
31
1402380

skipif mysql # not compatible
query II rowsort label-6298
SELECT ALL + COALESCE ( 31, - + 93 ), + 42 * - + MIN ( ALL 9 ) * - COUNT ( DISTINCT + CAST ( - + 65 AS INTEGER ) ) * + 70 * + 53 AS col1
----
31
1402380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6299
SELECT - COUNT( * ) + + - 89 + - CASE + 79 WHEN + + 28 THEN NULL ELSE 42 * + 85 END * + - CAST( + + NULLIF ( - 72, + 5 ) AS SIGNED ) + COUNT( * ) AS col1
----
-257129

skipif mysql # not compatible
query I rowsort label-6299
SELECT - COUNT ( * ) + + - 89 + - CASE + 79 WHEN + + 28 THEN NULL ELSE 42 * + 85 END * + - CAST ( + + NULLIF ( - 72, + 5 ) AS INTEGER ) + COUNT ( * ) AS col1
----
-257129

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT ALL + CASE - 60 WHEN + - 67 THEN NULL WHEN - 39 * + - 30 THEN - + ( + 25 ) * NULLIF ( - - 71, 31 - + 58 - + COUNT( * ) * - COUNT( * ) ) * - 8 + + 23 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL + CASE - 60 WHEN + - 67 THEN NULL WHEN - 39 * + - 30 THEN - + ( + 25 ) * NULLIF ( - - 71, 31 - + 58 - + COUNT ( * ) * - COUNT ( * ) ) * - 8 + + 23 END col2
----
NULL

query I rowsort
SELECT ALL - 11 * - 79 AS col1
----
869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6302
SELECT - 21 - - 35 - - + NULLIF ( CAST( - + 47 AS SIGNED ), + 92 * + - COALESCE ( - 71, 41 ) - + - 0 ) * - 27 + - 6 * MIN( ALL - 75 ) * - - CASE + - MAX( ALL - ( - 89 ) ) WHEN + 23 THEN NULL ELSE CAST( NULL AS SIGNED ) - - 94 END - + - 70 * - - ( - 75 ) * + 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT - 21 - - 35 - - + NULLIF ( CAST ( - + 47 AS INTEGER ), + 92 * + - COALESCE ( - 71, 41 ) - + - 0 ) * - 27 + - 6 * MIN ( ALL - 75 ) * - - CASE + - MAX ( ALL - ( - 89 ) ) WHEN + 23 THEN NULL ELSE CAST ( NULL AS INTEGER ) - - 94 END - + - 70 * - - ( - 75 ) * + 15 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6303
SELECT ALL - 38 DIV - 91 * + 57 * - 25 * - - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL - 38 / - 91 * + 57 * - 25 * - - 51 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6304
SELECT + 36 * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT + 36 * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT - 85 DIV + + 39 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6305
SELECT - 85 / + + 39 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT COUNT( * ) * - 76 * - - COALESCE ( - 30, 0, - NULLIF ( + SUM( ALL + 73 ), + 46 ) ) + - 40 + - 78 * + 58 * - 2
----
11288

skipif mysql # not compatible
query I rowsort label-6306
SELECT COUNT ( * ) * - 76 * - - COALESCE ( - 30, 0, - NULLIF ( + SUM ( ALL + 73 ), + 46 ) ) + - 40 + - 78 * + 58 * - 2
----
11288

onlyif mysql # aggregate syntax: 
query II rowsort label-6307
SELECT + 79 * - COUNT( * ) * + 49 + + - 89 AS col1, 22 AS col1
----
-3960
22

skipif mysql # not compatible
query II rowsort label-6307
SELECT + 79 * - COUNT ( * ) * + 49 + + - 89 AS col1, 22 AS col1
----
-3960
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6308
SELECT + COUNT( ALL + CAST( + 75 AS SIGNED ) ), 51 * + COALESCE ( - + 58, 26 * + 55 ) AS col0
----
1
-2958

skipif mysql # not compatible
query II rowsort label-6308
SELECT + COUNT ( ALL + CAST ( + 75 AS INTEGER ) ), 51 * + COALESCE ( - + 58, 26 * + 55 ) AS col0
----
1
-2958

query I rowsort
SELECT ALL - 99 * + - 92 + + 90 AS col0
----
9198

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT DISTINCT - 65 * - 47 * + ( - COUNT( * ) ) + 40 + + 22 AS col2
----
-2993

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT - 65 * - 47 * + ( - COUNT ( * ) ) + 40 + + 22 AS col2
----
-2993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6311
SELECT + 94 * + - 45 + - 9 + - 98 * CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
-4337

skipif mysql # not compatible
query I rowsort label-6311
SELECT + 94 * + - 45 + - 9 + - 98 * CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
-4337

query I rowsort
SELECT + + CASE 3 WHEN + 57 * - - 55 * 20 + + 18 THEN - + 48 + + 51 * 35 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 22 * + 73 + + - 54 + - 40 * - 52 * - 86 * + 22 AS col2
----
-3937020

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT ALL + CASE 61 WHEN 26 THEN - - 53 ELSE + COUNT( * ) END * 1 + - 17
----
-16

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL + CASE 61 WHEN 26 THEN - - 53 ELSE + COUNT ( * ) END * 1 + - 17
----
-16

query II rowsort
SELECT + 33, + 83 AS col1
----
33
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT - + SUM( - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-6316
SELECT - + SUM ( - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT - COUNT( * ) + + 54 - - + 99 * - - ( - - 80 ) AS col0
----
7973

skipif mysql # not compatible
query I rowsort label-6317
SELECT - COUNT ( * ) + + 54 - - + 99 * - - ( - - 80 ) AS col0
----
7973

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT - MIN( - + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-6318
SELECT - MIN ( - + 3 )
----
3

query II rowsort
SELECT 85 AS col2, - 15 * 26
----
85
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT ALL - 62 * - + COALESCE ( - 87, + 44 + 40 + - COUNT( * ) ) col2
----
-5394

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL - 62 * - + COALESCE ( - 87, + 44 + 40 + - COUNT ( * ) ) col2
----
-5394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6321
SELECT + 16 + + 41 * COUNT( * ) + - CAST( - ( 35 ) AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-6321
SELECT + 16 + + 41 * COUNT ( * ) + - CAST ( - ( 35 ) AS INTEGER )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6322
SELECT + 29 + + 97 - - + 36 * COUNT( * ) DIV 54 - - NULLIF ( - - 66, - - 54 )
----
192

skipif mysql # not compatible
query I rowsort label-6322
SELECT + 29 + + 97 - - + 36 * COUNT ( * ) / 54 - - NULLIF ( - - 66, - - 54 )
----
192

onlyif mysql # aggregate syntax: 
query II rowsort label-6323
SELECT DISTINCT - 11, MAX( + ( + 77 ) ) + + - 60 AS col2
----
-11
17

skipif mysql # not compatible
query II rowsort label-6323
SELECT DISTINCT - 11, MAX ( + ( + 77 ) ) + + - 60 AS col2
----
-11
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT ALL - MAX( - 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL - MAX ( - 22 ) AS col1
----
22

query I rowsort
SELECT + + 41 + + - 13
----
28

query I rowsort
SELECT - + 91 * - 83 AS col1
----
7553

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT ALL - 42 * ( + 84 ) DIV - + 77 + 84 * - 14 * - 78
----
91773

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL - 42 * ( + 84 ) / - + 77 + 84 * - 14 * - 78
----
91773

query I rowsort
SELECT 57 * - 14 * - 36 AS col0
----
28728

query I rowsort
SELECT ALL 86 * - 19
----
-1634

onlyif mysql # DIV for integer division: 
query I rowsort label-6330
SELECT 76 + + + 53 DIV + 1 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-6330
SELECT 76 + + + 53 / + 1 AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT COUNT( * ) * 89 * 6 AS col2
----
534

skipif mysql # not compatible
query I rowsort label-6331
SELECT COUNT ( * ) * 89 * 6 AS col2
----
534

query I rowsort
SELECT DISTINCT - 25 * - 95
----
2375

query I rowsort
SELECT 95 * + - 61 AS col2
----
-5795

query I rowsort
SELECT 72 * + ( - 90 ) * - 59 * - 4 AS col1
----
-1529280

query I rowsort
SELECT DISTINCT 85 + + 31 AS col0
----
116

query I rowsort
SELECT 85 * - NULLIF ( - 60, - 95 ) AS col1
----
5100

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT ALL + 80 DIV ( - 14 )
----
-5

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL + 80 / ( - 14 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6338
SELECT ALL - 8 + ( + 24 ) DIV COUNT( * ) * + + 83
----
1984

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL - 8 + ( + 24 ) / COUNT ( * ) * + + 83
----
1984

query I rowsort
SELECT 72 * - 51 + + 69 AS col1
----
-3603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6340
SELECT + + CASE + - 80 WHEN 6 * 56 - - + 7 + COUNT( * ) THEN NULL WHEN + 47 + - + 54 THEN + MAX( ALL - - 32 ) * - COUNT( * ) * - - AVG ( DISTINCT - + 81 ) ELSE 1 DIV - - 8 + - 88 END AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-6340
SELECT + + CASE + - 80 WHEN 6 * 56 - - + 7 + COUNT ( * ) THEN NULL WHEN + 47 + - + 54 THEN + MAX ( ALL - - 32 ) * - COUNT ( * ) * - - AVG ( DISTINCT - + 81 ) ELSE 1 / - - 8 + - 88 END AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT + + CAST( + 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-6341
SELECT + + CAST ( + 55 AS INTEGER )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT COUNT( * ) - + - 1
----
2

skipif mysql # not compatible
query I rowsort label-6342
SELECT COUNT ( * ) - + - 1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT - COUNT( ALL + 46 ) * - 86 col2
----
86

skipif mysql # not compatible
query I rowsort label-6343
SELECT - COUNT ( ALL + 46 ) * - 86 col2
----
86

query I rowsort
SELECT DISTINCT - - 83 + - + 38
----
45

query I rowsort
SELECT ALL - 22 + + 70
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6346
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - 87 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6347
SELECT 97 * CASE + - CAST( NULL AS DECIMAL ) WHEN + + 75 THEN NULL WHEN - - MAX( DISTINCT + 81 ) THEN NULL ELSE + 49 * 26 END + + 75
----
123653

skipif mysql # not compatible
query I rowsort label-6347
SELECT 97 * CASE + - CAST ( NULL AS REAL ) WHEN + + 75 THEN NULL WHEN - - MAX ( DISTINCT + 81 ) THEN NULL ELSE + 49 * 26 END + + 75
----
123653

query I rowsort
SELECT ALL + + 41 - 0 * + 49 AS col1
----
41

query I rowsort
SELECT ( + + ( 6 ) )
----
6

query II rowsort
SELECT - 3 - + 12 AS col0, 41
----
-15
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6351
SELECT CASE 44 WHEN 6 THEN + 91 WHEN - CAST( 55 AS SIGNED ) + - COALESCE ( - 37, - - ( - 47 ) * MAX( DISTINCT - 84 ), - 35 * + AVG ( + 42 ) - + 43 + - + COUNT( * ) ) THEN NULL END * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT CASE 44 WHEN 6 THEN + 91 WHEN - CAST ( 55 AS INTEGER ) + - COALESCE ( - 37, - - ( - 47 ) * MAX ( DISTINCT - 84 ), - 35 * + AVG ( + 42 ) - + 43 + - + COUNT ( * ) ) THEN NULL END * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT - CASE + 54 WHEN - AVG ( ALL 46 ) * + 35 THEN NULL WHEN 99 * - 65 THEN NULL ELSE + - NULLIF ( CASE + 83 WHEN - ( + + COUNT( * ) ) THEN 43 - - - 27 WHEN + + 63 THEN NULL END, - - ( 87 ) * - 76 ) END * - 72 / + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6352
SELECT - CASE + 54 WHEN - AVG ( ALL 46 ) * + 35 THEN NULL WHEN 99 * - 65 THEN NULL ELSE + - NULLIF ( CASE + 83 WHEN - ( + + COUNT ( * ) ) THEN 43 - - - 27 WHEN + + 63 THEN NULL END, - - ( 87 ) * - 76 ) END * - 72 / + - 24
----
NULL

query I rowsort
SELECT DISTINCT - 57 * 20 * + 47
----
-53580

onlyif mysql # DIV for integer division: 
query I rowsort label-6354
SELECT DISTINCT + - 99 DIV + + 63 + - + ( 9 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT + - 99 / + + 63 + - + ( 9 ) AS col1
----
-10

query I rowsort
SELECT - 43 * 13 + 2 + + 11
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT 50 + + COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6356
SELECT 50 + + COUNT ( * ) AS col1
----
51

query I rowsort
SELECT 56 + 79 + - 66 AS col1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6358
SELECT - COUNT( * ) col1, 68 * + 8 * - 0 + + 49 - - 66 + + 74 * - COUNT( * )
----
-1
41

skipif mysql # not compatible
query II rowsort label-6358
SELECT - COUNT ( * ) col1, 68 * + 8 * - 0 + + 49 - - 66 + + 74 * - COUNT ( * )
----
-1
41

query I rowsort
SELECT 1 - + 35
----
-34

query I rowsort
SELECT ALL 22 * - 83 + - 7
----
-1833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6361
SELECT MAX( ALL + + 24 ) DIV - 30 + - 94 + 76 + + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-6361
SELECT MAX ( ALL + + 24 ) / - 30 + - 94 + 76 + + - COUNT ( * )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT DISTINCT 2 DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT 2 / - 47
----
0

query I rowsort
SELECT 85 + ( - 51 ) + + - 71 AS col1
----
-37

query I rowsort
SELECT ALL - 48 + 48 * + 57 + 11 AS col1
----
2699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6365
SELECT ALL 96 + + CAST( - COUNT( * ) AS SIGNED ) + - NULLIF ( - + 61, NULLIF ( + 48, + + COUNT( * ) * + 39 ) * + + 37 * + - 26 + 85 + - + 20 ) * 94
----
5829

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL 96 + + CAST ( - COUNT ( * ) AS INTEGER ) + - NULLIF ( - + 61, NULLIF ( + 48, + + COUNT ( * ) * + 39 ) * + + 37 * + - 26 + 85 + - + 20 ) * 94
----
5829

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT - 84 * + CASE 51 WHEN + COUNT( ALL + 32 ) THEN 68 ELSE + - 9 - + 32 END + - 64 AS col0
----
3380

skipif mysql # not compatible
query I rowsort label-6366
SELECT - 84 * + CASE 51 WHEN + COUNT ( ALL + 32 ) THEN 68 ELSE + - 9 - + 32 END + - 64 AS col0
----
3380

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL 90 + + - 2 - + + NULLIF ( + 24, - COUNT( - 54 ) + - 75 ) + - ( + 57 )
----
7

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL 90 + + - 2 - + + NULLIF ( + 24, - COUNT ( - 54 ) + - 75 ) + - ( + 57 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT SUM( DISTINCT + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-6368
SELECT SUM ( DISTINCT + 3 )
----
3

query I rowsort
SELECT ALL + - 93 * 48 + - 1
----
-4465

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT ALL - MAX( DISTINCT - 83 ) - + + 68 - + 98 + - 13 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL - MAX ( DISTINCT - 83 ) - + + 68 - + 98 + - 13 AS col2
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6371
SELECT DISTINCT + COALESCE ( 31, - + 28 ) DIV + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT + COALESCE ( 31, - + 28 ) / + + COUNT ( * )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6372
SELECT ALL + 68 DIV 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL + 68 / 61 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6373
SELECT - CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) * 31 + - ( - + 97 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) * 31 + - ( - + 97 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6374
SELECT - 91 DIV CAST( - CAST( 8 AS SIGNED ) AS SIGNED ) + + CAST( + SUM( - 66 ) AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-6374
SELECT - 91 / CAST ( - CAST ( 8 AS INTEGER ) AS INTEGER ) + + CAST ( + SUM ( - 66 ) AS INTEGER )
----
-55

query I rowsort
SELECT - 61 * - 7 AS col1
----
427

query I rowsort
SELECT ALL - 19 * 25
----
-475

query I rowsort
SELECT - - 13 + + 28 AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6378
SELECT 8 * + 85 + CASE 22 WHEN + COUNT( * ) THEN + + COUNT( * ) ELSE NULL END * + + 38 - 2 AS col0, SUM( DISTINCT - - 63 ) col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-6378
SELECT 8 * + 85 + CASE 22 WHEN + COUNT ( * ) THEN + + COUNT ( * ) ELSE NULL END * + + 38 - 2 AS col0, SUM ( DISTINCT - - 63 ) col0
----
NULL
63

query I rowsort
SELECT - + 39 + + 35 AS col1
----
-4

query I rowsort
SELECT ALL - 58 * 80 + + 16 * + + 22 AS col0
----
-4288

query I rowsort
SELECT ALL + + 46 * 5 + - 86 AS col1
----
144

query I rowsort
SELECT - 50 + 72
----
22

query I rowsort
SELECT - 98 + + - ( - - 54 ) + - - ( - 80 ) AS col2
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL NULLIF ( + 93, - COUNT( * ) * - COUNT( * ) )
----
93

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL NULLIF ( + 93, - COUNT ( * ) * - COUNT ( * ) )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6385
SELECT + ( - + 11 ) + NULLIF ( + + CASE 65 WHEN CASE - - 31 WHEN 11 / + 26 * - - ( - 19 ) * + 29 * ( 47 ) THEN - + AVG ( ALL + CAST( NULL AS SIGNED ) ) WHEN - 3 THEN + - 59 - + + 20 ELSE - + COUNT( - 15 ) + - 48 + - - 38 / 5 END * - 22 + - COUNT( 71 ) + 1 + + 47 THEN NULL ELSE - COUNT( * ) + - 70 END, + 89 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-6385
SELECT + ( - + 11 ) + NULLIF ( + + CASE 65 WHEN CASE - - 31 WHEN 11 / + 26 * - - ( - 19 ) * + 29 * ( 47 ) THEN - + AVG ( ALL + CAST ( NULL AS INTEGER ) ) WHEN - 3 THEN + - 59 - + + 20 ELSE - + COUNT ( - 15 ) + - 48 + - - 38 / 5 END * - 22 + - COUNT ( 71 ) + 1 + + 47 THEN NULL ELSE - COUNT ( * ) + - 70 END, + 89 ) AS col1
----
-82

query I rowsort
SELECT ALL 56 + - + 6
----
50

query I rowsort
SELECT + 68 + 28 * - + 76
----
-2060

query II rowsort
SELECT 48 AS col1, + 70 AS col0
----
48
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6389
SELECT DISTINCT + 7 DIV 27, COUNT( * ) + - CASE - 77 WHEN + - 31 * - + COUNT( * ) THEN + COALESCE ( 31, - 41 + + 54, - 53 ) END + - + 92 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6389
SELECT DISTINCT + 7 / 27, COUNT ( * ) + - CASE - 77 WHEN + - 31 * - + COUNT ( * ) THEN + COALESCE ( 31, - 41 + + 54, - 53 ) END + - + 92 AS col2
----
0
NULL

query I rowsort
SELECT ALL - 53 + 40 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-6391
SELECT - COUNT( * ) AS col0, - MAX( ALL + 85 )
----
-1
-85

skipif mysql # not compatible
query II rowsort label-6391
SELECT - COUNT ( * ) AS col0, - MAX ( ALL + 85 )
----
-1
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-6392
SELECT DISTINCT 49 AS col0, ( 27 ) DIV + 29
----
49
0

skipif mysql # not compatible
query II rowsort label-6392
SELECT DISTINCT 49 AS col0, ( 27 ) / + 29
----
49
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT DISTINCT + 35 + - 23 * - 49 * + + SUM( 71 )
----
80052

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT + 35 + - 23 * - 49 * + + SUM ( 71 )
----
80052

query I rowsort
SELECT ALL 30 * 57 + - 21
----
1689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6395
SELECT + 58 col1, - 21 * - COUNT( * ) * + CAST( NULL AS SIGNED ) + + - 14
----
58
NULL

skipif mysql # not compatible
query II rowsort label-6395
SELECT + 58 col1, - 21 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + - 14
----
58
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6396
SELECT + 60 DIV - + 12 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6396
SELECT + 60 / - + 12 AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6397
SELECT ( - 34 ) DIV - 66 + - 20 * - 33 - - COUNT( * ) * + 8
----
668

skipif mysql # not compatible
query I rowsort label-6397
SELECT ( - 34 ) / - 66 + - 20 * - 33 - - COUNT ( * ) * + 8
----
668

query I rowsort
SELECT + 78 * + - ( 91 )
----
-7098

query I rowsort
SELECT + 48 * + 52 * + 5
----
12480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6400
SELECT + ( - + CASE + + 0 WHEN MIN( 99 ) THEN - - ( + + 76 ) WHEN - 35 * - CAST( - 69 AS SIGNED ) * - 2 * - + 67 * ( - 75 ) - + 84 THEN NULL ELSE + 55 DIV + + 79 END )
----
0

skipif mysql # not compatible
query I rowsort label-6400
SELECT + ( - + CASE + + 0 WHEN MIN ( 99 ) THEN - - ( + + 76 ) WHEN - 35 * - CAST ( - 69 AS INTEGER ) * - 2 * - + 67 * ( - 75 ) - + 84 THEN NULL ELSE + 55 / + + 79 END )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT COUNT( DISTINCT - 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6401
SELECT COUNT ( DISTINCT - 14 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6402
SELECT DISTINCT + 73 * 97 - - COUNT( ALL + 55 ) AS col1, 9 * - - SUM( + 32 ) * - + CAST( NULL AS SIGNED ) AS col0
----
7082
NULL

skipif mysql # not compatible
query II rowsort label-6402
SELECT DISTINCT + 73 * 97 - - COUNT ( ALL + 55 ) AS col1, 9 * - - SUM ( + 32 ) * - + CAST ( NULL AS INTEGER ) AS col0
----
7082
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT ALL - 75 DIV - 95 + - - 35 + 3 DIV - ( + NULLIF ( 30, + 23 ) )
----
35

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL - 75 / - 95 + - - 35 + 3 / - ( + NULLIF ( 30, + 23 ) )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6404
SELECT + - SUM( DISTINCT + - 48 ) * + - 16 * + + 13 + - - 42 DIV 90 + - 5 * - 11
----
-9929

skipif mysql # not compatible
query I rowsort label-6404
SELECT + - SUM ( DISTINCT + - 48 ) * + - 16 * + + 13 + - - 42 / 90 + - 5 * - 11
----
-9929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6405
SELECT ALL SUM( ALL + + 52 ) DIV 54 * - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL SUM ( ALL + + 52 ) / 54 * - 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6406
SELECT 35 AS col0, + COUNT( DISTINCT 73 ) AS col2
----
35
1

skipif mysql # not compatible
query II rowsort label-6406
SELECT 35 AS col0, + COUNT ( DISTINCT 73 ) AS col2
----
35
1

query I rowsort
SELECT + 70 * - 30 + - 40 AS col2
----
-2140

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT + 62 * MAX( DISTINCT + + 40 ) + 85
----
2565

skipif mysql # not compatible
query I rowsort label-6408
SELECT + 62 * MAX ( DISTINCT + + 40 ) + 85
----
2565

query I rowsort
SELECT + NULLIF ( + 92, + 66 )
----
92

query I rowsort
SELECT ALL - 79 * - 57 AS col2
----
4503

query II rowsort
SELECT DISTINCT + 19 AS col1, 59 col2
----
19
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6412
SELECT - COUNT( * ) DIV + 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6412
SELECT - COUNT ( * ) / + 22 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6413
SELECT ALL - + 98 DIV 34 col2
----
-2

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL - + 98 / 34 col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6414
SELECT ALL - 93 DIV 58 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL - 93 / 58 AS col1
----
-1

query I rowsort
SELECT + 68 / - 83 * + CASE 2 WHEN + 29 THEN - 46 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT - 74 / - CASE + - 62 WHEN + CAST( 96 AS SIGNED ) * 91 * + 19 / + + 76 + 54 - - + NULLIF ( - 0, + + 64 ) THEN NULL WHEN 21 THEN - 22 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT - 74 / - CASE + - 62 WHEN + CAST ( 96 AS INTEGER ) * 91 * + 19 / + + 76 + 54 - - + NULLIF ( - 0, + + 64 ) THEN NULL WHEN 21 THEN - 22 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL + 21 + - + 70
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6418
SELECT ALL 27 DIV + COUNT( * ), 57 - CASE COUNT( * ) WHEN + ( - NULLIF ( + - 83, 6 ) ) THEN 71 * COUNT( * ) + - - CAST( - 21 AS SIGNED ) DIV + 40 ELSE COUNT( * ) + COUNT( * ) END + + 20 AS col2
----
27
75

skipif mysql # not compatible
query II rowsort label-6418
SELECT ALL 27 / + COUNT ( * ), 57 - CASE COUNT ( * ) WHEN + ( - NULLIF ( + - 83, 6 ) ) THEN 71 * COUNT ( * ) + - - CAST ( - 21 AS INTEGER ) / + 40 ELSE COUNT ( * ) + COUNT ( * ) END + + 20 AS col2
----
27
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT DISTINCT 85 + - MAX( ALL - 50 ) + + - 24
----
111

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT 85 + - MAX ( ALL - 50 ) + + - 24
----
111

query II rowsort
SELECT ALL - 48 + + - 3 AS col0, + 16 AS col2
----
-51
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6421
SELECT ALL CAST( + - 90 AS SIGNED ) AS col2, 72 * + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
-90
0

skipif mysql # not compatible
query II rowsort label-6421
SELECT ALL CAST ( + - 90 AS INTEGER ) AS col2, 72 * + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
-90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT ALL + 21 + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL + 21 + - COUNT ( * )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6423
SELECT DISTINCT CAST( 45 AS SIGNED ), 96 * - 37 * + 44 * + - 12 AS col1
----
45
1875456

skipif mysql # not compatible
query II rowsort label-6423
SELECT DISTINCT CAST ( 45 AS INTEGER ), 96 * - 37 * + 44 * + - 12 AS col1
----
45
1875456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6424
SELECT ALL - 21 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL - 21 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( - 97 ) col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6426
SELECT - CAST( - COUNT( * ) AS SIGNED ) + + 86 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6426
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + + 86 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT - 84 * 17 * 78 * - NULLIF ( 85, + - COUNT( * ) + - ( - + 57 ) * + 50 ) AS col0
----
9467640

skipif mysql # not compatible
query I rowsort label-6427
SELECT - 84 * 17 * 78 * - NULLIF ( 85, + - COUNT ( * ) + - ( - + 57 ) * + 50 ) AS col0
----
9467640

query I rowsort
SELECT - 48 + 48 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT - 25 + - - 89 + - 84 * + - COUNT( * ) * + 18
----
1576

skipif mysql # not compatible
query I rowsort label-6429
SELECT - 25 + - - 89 + - 84 * + - COUNT ( * ) * + 18
----
1576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6430
SELECT ALL - COUNT( * ) DIV - - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL - COUNT ( * ) / - - 57 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6431
SELECT DISTINCT + CAST( + CASE - + 88 WHEN 0 + - 20 THEN NULL ELSE - - 88 END AS SIGNED ) DIV - CASE 25 WHEN - - COALESCE ( - 94, - 47, + - 26 ) THEN NULL ELSE + 79 END - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT + CAST ( + CASE - + 88 WHEN 0 + - 20 THEN NULL ELSE - - 88 END AS INTEGER ) / - CASE 25 WHEN - - COALESCE ( - 94, - 47, + - 26 ) THEN NULL ELSE + 79 END - - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6432
SELECT - CASE COUNT( * ) WHEN - ( - 72 ) * ( + 35 ) THEN NULL WHEN + COUNT( * ) * + MAX( DISTINCT CAST( NULL AS SIGNED ) ) THEN + COALESCE ( + 46, ( - COUNT( * ) ) ) END * + - COUNT( * ) * - - COUNT( * ) + 41 + CAST( NULL AS DECIMAL ) + - 6 * + COUNT( * ) / + - 89 * + CAST( NULL AS SIGNED ) / - - COUNT( * ) + + COUNT( * ) + - 82 + - COUNT( * ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT - CASE COUNT ( * ) WHEN - ( - 72 ) * ( + 35 ) THEN NULL WHEN + COUNT ( * ) * + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN + COALESCE ( + 46, ( - COUNT ( * ) ) ) END * + - COUNT ( * ) * - - COUNT ( * ) + 41 + CAST ( NULL AS REAL ) + - 6 * + COUNT ( * ) / + - 89 * + CAST ( NULL AS INTEGER ) / - - COUNT ( * ) + + COUNT ( * ) + - 82 + - COUNT ( * ) * 89
----
NULL

query II rowsort
SELECT ( + 71 ), 66 AS col1
----
71
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6434
SELECT 74 / - 6 * - 83 + + - ( + + 27 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT 74 / - 6 * - 83 + + - ( + + 27 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6435
SELECT - + 63 DIV + - MAX( - + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-6435
SELECT - + 63 / + - MAX ( - + 75 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6436
SELECT ALL - + NULLIF ( + + 85, - CAST( NULL AS DECIMAL ) + + ( + NULLIF ( ( - 31 ), - + 30 ) ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL - + NULLIF ( + + 85, - CAST ( NULL AS REAL ) + + ( + NULLIF ( ( - 31 ), - + 30 ) ) ) AS col1
----
-85

query II rowsort
SELECT ALL - ( - - 93 ), - 68 * 43 AS col0
----
-93
-2924

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT - 96 * + ( - - NULLIF ( + + 87, + COUNT( * ) ) ) + - 50
----
-8402

skipif mysql # not compatible
query I rowsort label-6438
SELECT - 96 * + ( - - NULLIF ( + + 87, + COUNT ( * ) ) ) + - 50
----
-8402

query I rowsort
SELECT DISTINCT - ( - 38 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT ALL - 36 + 23 - - CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL - 36 + 23 - - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 82 - - 55
----
137

query I rowsort
SELECT ALL - 76 + + 57 AS col1
----
-19

query I rowsort
SELECT 66 + + 76
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT 16 * + 56 * - - CAST( NULL AS SIGNED ) / - 5 - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT 16 * + 56 * - - CAST ( NULL AS INTEGER ) / - 5 - 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6445
SELECT DISTINCT 86 * + CAST( NULL AS SIGNED ) * + - 71, 57 AS col2
----
NULL
57

skipif mysql # not compatible
query II rowsort label-6445
SELECT DISTINCT 86 * + CAST ( NULL AS INTEGER ) * + - 71, 57 AS col2
----
NULL
57

onlyif mysql # aggregate syntax: 
query II rowsort label-6446
SELECT ALL 30 AS col0, COUNT( * )
----
30
1

skipif mysql # not compatible
query II rowsort label-6446
SELECT ALL 30 AS col0, COUNT ( * )
----
30
1

query I rowsort
SELECT DISTINCT 79 + - ( - 9 )
----
88

query I rowsort
SELECT ALL + 90 + + + 53 + 37 * - 70
----
-2447

query II rowsort
SELECT 84 AS col1, + 1
----
84
1

query I rowsort
SELECT 20 + + 50 + - 63 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT DISTINCT - 72 - - + COUNT( * ) + - 62 * + - 51
----
3091

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT - 72 - - + COUNT ( * ) + - 62 * + - 51
----
3091

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT DISTINCT 72 DIV + 40 col0
----
1

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT 72 / + 40 col0
----
1

query I rowsort
SELECT 19 * 78 * 22
----
32604

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT ALL - - COUNT( * ) * 40
----
40

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL - - COUNT ( * ) * 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT ( - 48 ) * + SUM( - 91 ) col0
----
4368

skipif mysql # not compatible
query I rowsort label-6455
SELECT ( - 48 ) * + SUM ( - 91 ) col0
----
4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6456
SELECT + 23 / COALESCE ( - - 28, + 84, - CASE + 19 WHEN + 17 THEN - 4 WHEN + - 42 THEN NULL END * 12 * CAST( - + 14 AS SIGNED ) + + 30 * + 13 + - 13 * 36 ) - 27 + - 6 * 53 + + MIN( - 30 ) * + CASE - ( 13 ) WHEN ( 5 ) THEN - 40 WHEN + 53 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT + 23 / COALESCE ( - - 28, + 84, - CASE + 19 WHEN + 17 THEN - 4 WHEN + - 42 THEN NULL END * 12 * CAST ( - + 14 AS INTEGER ) + + 30 * + 13 + - 13 * 36 ) - 27 + - 6 * 53 + + MIN ( - 30 ) * + CASE - ( 13 ) WHEN ( 5 ) THEN - 40 WHEN + 53 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6457
SELECT - CAST( NULL AS SIGNED ) * + + 80 + + + 11 * + 10 + + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT - CAST ( NULL AS INTEGER ) * + + 80 + + + 11 * + 10 + + 1 AS col2
----
NULL

query II rowsort
SELECT 7, + 11 AS col1
----
7
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL - - MAX( - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL - - MAX ( - 27 )
----
-27

query II rowsort
SELECT ALL + + 2 + - - 94 * + - 1 AS col2, + 9
----
-92
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6461
SELECT + 80 DIV - 1 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6461
SELECT + 80 / - 1 AS col0
----
-80

query I rowsort
SELECT ALL - 40 + - 58
----
-98

query II rowsort
SELECT + 10 * - - 21 + - 44, - 53 * - 53 AS col2
----
166
2809

query I rowsort
SELECT 66 - 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL + 96 * + COUNT( * ) + - - 46 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL + 96 * + COUNT ( * ) + - - 46 AS col0
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6466
SELECT + + CAST( + - 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-6466
SELECT + + CAST ( + - 66 AS INTEGER )
----
-66

query I rowsort
SELECT ALL 0 + - 88 AS col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6468
SELECT 76 DIV - - 23
----
3

skipif mysql # not compatible
query I rowsort label-6468
SELECT 76 / - - 23
----
3

query I rowsort
SELECT DISTINCT - ( + + 8 ) col2
----
-8

query I rowsort
SELECT ALL + 66 + + ( - 29 ) + 69
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL NULLIF ( 24, + CASE - - 77 WHEN + AVG ( ALL - 85 ) * COUNT( * ) + 0 THEN - 2 END - - 5 + + COUNT( * ) + 34 / 78 + - ( 20 ) + - 84 / - - 87 * + 80 / + 60 ) + - COUNT( * ) + - 52 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL NULLIF ( 24, + CASE - - 77 WHEN + AVG ( ALL - 85 ) * COUNT ( * ) + 0 THEN - 2 END - - 5 + + COUNT ( * ) + 34 / 78 + - ( 20 ) + - 84 / - - 87 * + 80 / + 60 ) + - COUNT ( * ) + - 52 AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6472
SELECT CASE + 94 WHEN ( - COUNT( + 25 ) ) THEN NULL WHEN - - 56 * 57 THEN NULL ELSE + + 71 * 95 - - 48 + 74 END / 41 - - 17 + - ( + CASE ( 14 ) WHEN + + 91 THEN + 18 WHEN - - CAST( NULL AS SIGNED ) + - 29 THEN - 63 + + 55 + - - 79 + + - 52 * - 41 ELSE - 42 + CASE - - 53 WHEN 10 THEN - ( - 79 ) * - 9 ELSE NULL END END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT CASE + 94 WHEN ( - COUNT ( + 25 ) ) THEN NULL WHEN - - 56 * 57 THEN NULL ELSE + + 71 * 95 - - 48 + 74 END / 41 - - 17 + - ( + CASE ( 14 ) WHEN + + 91 THEN + 18 WHEN - - CAST ( NULL AS INTEGER ) + - 29 THEN - 63 + + 55 + - - 79 + + - 52 * - 41 ELSE - 42 + CASE - - 53 WHEN 10 THEN - ( - 79 ) * - 9 ELSE NULL END END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6473
SELECT 1 * COUNT( * ) AS col0, + 22 DIV - - 30
----
1
0

skipif mysql # not compatible
query II rowsort label-6473
SELECT 1 * COUNT ( * ) AS col0, + 22 / - - 30
----
1
0

query I rowsort
SELECT ALL 67 * - + ( - 79 )
----
5293

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT 91 - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-6475
SELECT 91 - - COUNT ( * )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6476
SELECT COUNT( * ) * + 73 * - CAST( - 64 AS SIGNED )
----
4672

skipif mysql # not compatible
query I rowsort label-6476
SELECT COUNT ( * ) * + 73 * - CAST ( - 64 AS INTEGER )
----
4672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6477
SELECT ( NULLIF ( - + 2, - NULLIF ( + + 27, 55 ) * - CAST( NULL AS SIGNED ) * - COUNT( * ) ) ) - + COUNT( * ) * 33 * 93
----
-3071

skipif mysql # not compatible
query I rowsort label-6477
SELECT ( NULLIF ( - + 2, - NULLIF ( + + 27, 55 ) * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) ) - + COUNT ( * ) * 33 * 93
----
-3071

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT NULLIF ( + COUNT( * ), - 16 + - + 39 ) * + + 19 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6478
SELECT NULLIF ( + COUNT ( * ), - 16 + - + 39 ) * + + 19 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT 9 + - + MAX( DISTINCT - + 9 )
----
18

skipif mysql # not compatible
query I rowsort label-6479
SELECT 9 + - + MAX ( DISTINCT - + 9 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT - 89 * - + MAX( 27 ) + 21
----
2424

skipif mysql # not compatible
query I rowsort label-6480
SELECT - 89 * - + MAX ( 27 ) + 21
----
2424

onlyif mysql # DIV for integer division: 
query I rowsort label-6481
SELECT ALL 59 DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL 59 / + 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT + 28 + 95 * - 56 + - + COUNT( * )
----
-5293

skipif mysql # not compatible
query I rowsort label-6482
SELECT + 28 + 95 * - 56 + - + COUNT ( * )
----
-5293

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT + COALESCE ( + COUNT( * ), - 11, + ( COUNT( DISTINCT - - 77 ) ) ) + 60 col2
----
61

skipif mysql # not compatible
query I rowsort label-6483
SELECT + COALESCE ( + COUNT ( * ), - 11, + ( COUNT ( DISTINCT - - 77 ) ) ) + 60 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT ALL 4 * COUNT( * ) + 50 + 72
----
126

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL 4 * COUNT ( * ) + 50 + 72
----
126

query I rowsort
SELECT - COALESCE ( 85, 75 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL - 0 * - 83 * - + CASE + 24 WHEN + COUNT( * ) THEN - + 28 * - 76 ELSE NULL END - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - 0 * - 83 * - + CASE + 24 WHEN + COUNT ( * ) THEN - + 28 * - 76 ELSE NULL END - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT + COUNT( * ) * + COUNT( * ) + - 83
----
-82

skipif mysql # not compatible
query I rowsort label-6487
SELECT + COUNT ( * ) * + COUNT ( * ) + - 83
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT - - COUNT( ALL - ( + + 62 ) ) + - 9
----
-8

skipif mysql # not compatible
query I rowsort label-6488
SELECT - - COUNT ( ALL - ( + + 62 ) ) + - 9
----
-8

query I rowsort
SELECT ALL + 57 * - 85 - - 72
----
-4773

query I rowsort
SELECT - ( - 48 ) * 48 AS col1
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL + COUNT( ALL 65 ) * COUNT( ALL - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL + COUNT ( ALL 65 ) * COUNT ( ALL - 40 )
----
1

query I rowsort
SELECT - 9 + - 5
----
-14

query I rowsort
SELECT ALL + 35 * 54
----
1890

query I rowsort
SELECT + 62 * - 89 AS col1
----
-5518

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT - 49 + - NULLIF ( - 46, COUNT( - 96 ) ) - + 78
----
-81

skipif mysql # not compatible
query I rowsort label-6495
SELECT - 49 + - NULLIF ( - 46, COUNT ( - 96 ) ) - + 78
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6496
SELECT - 26 + 48 * - 91 AS col2, + CAST( ( + 33 ) AS SIGNED ) AS col1
----
-4394
33

skipif mysql # not compatible
query II rowsort label-6496
SELECT - 26 + 48 * - 91 AS col2, + CAST ( ( + 33 ) AS INTEGER ) AS col1
----
-4394
33

query I rowsort
SELECT DISTINCT ( - 68 )
----
-68

query I rowsort
SELECT ALL ( + 71 ) col1
----
71

query I rowsort
SELECT - 90 * - 73
----
6570

query I rowsort
SELECT + 95 + - - 80
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6501
SELECT - 66 * + CAST( - 72 AS SIGNED )
----
4752

skipif mysql # not compatible
query I rowsort label-6501
SELECT - 66 * + CAST ( - 72 AS INTEGER )
----
4752

query I rowsort
SELECT - + ( + 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT DISTINCT CASE 67 WHEN 30 - - MAX( DISTINCT + - 28 ) THEN + + 16 END + - 83 * + 70 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6503
SELECT DISTINCT CASE 67 WHEN 30 - - MAX ( DISTINCT + - 28 ) THEN + + 16 END + - 83 * + 70 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT DISTINCT 14 * + NULLIF ( + - 4, - AVG ( - 86 ) + - 39 - - + 72 - - + COUNT( * ) ) * 58 AS col1
----
-3248

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT 14 * + NULLIF ( + - 4, - AVG ( - 86 ) + - 39 - - + 72 - - + COUNT ( * ) ) * 58 AS col1
----
-3248

query I rowsort
SELECT ALL + 40 + + 60 - 67 * - 25 * - 19 * 45 AS col0
----
-1432025

query I rowsort
SELECT + ( - ( + 42 ) ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6507
SELECT + - COUNT( * ), - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6507
SELECT + - COUNT ( * ), - COUNT ( * )
----
-1
-1

query I rowsort
SELECT + + ( - - 64 ) col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6509
SELECT DISTINCT - MIN( - - 23 ) DIV - 17 + 90 + + 60 DIV 12 * COALESCE ( + 49, + 43 * + - 17 + + + 84 ) AS col1
----
336

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT - MIN ( - - 23 ) / - 17 + 90 + + 60 / 12 * COALESCE ( + 49, + 43 * + - 17 + + + 84 ) AS col1
----
336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6510
SELECT ALL - 26 DIV - 16 + - 78 - - 27 - - MIN( ALL - NULLIF ( 9, 0 * + - 77 ) ) * COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL - 26 / - 16 + - 78 - - 27 - - MIN ( ALL - NULLIF ( 9, 0 * + - 77 ) ) * COUNT ( * ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT - 92 * + 74 + + COUNT( * ) AS col2
----
-6807

skipif mysql # not compatible
query I rowsort label-6511
SELECT - 92 * + 74 + + COUNT ( * ) AS col2
----
-6807

query I rowsort
SELECT DISTINCT 57 * + - 62 * - 59
----
208506

onlyif mysql # aggregate syntax: 
query II rowsort label-6513
SELECT + 74, + COUNT( * ) * - - 50 col2
----
74
50

skipif mysql # not compatible
query II rowsort label-6513
SELECT + 74, + COUNT ( * ) * - - 50 col2
----
74
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL 35 * 4 - - + COUNT( * )
----
141

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL 35 * 4 - - + COUNT ( * )
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6515
SELECT + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6515
SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6516
SELECT - CAST( NULL AS SIGNED ) * + 65 AS col2, 76 AS col2
----
NULL
76

skipif mysql # not compatible
query II rowsort label-6516
SELECT - CAST ( NULL AS INTEGER ) * + 65 AS col2, 76 AS col2
----
NULL
76

query I rowsort
SELECT - 38 * + 71
----
-2698

onlyif mysql # aggregate syntax: 
query II rowsort label-6518
SELECT ALL + COUNT( * ) AS col1, + 85
----
1
85

skipif mysql # not compatible
query II rowsort label-6518
SELECT ALL + COUNT ( * ) AS col1, + 85
----
1
85

query I rowsort
SELECT NULLIF ( + 12, + ( + 37 ) ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6520
SELECT DISTINCT + 52, 65 * - COALESCE ( + 0, COUNT( * ) + - - COALESCE ( CAST( NULL AS SIGNED ), - 60, 39 * + + COUNT( * ) + - 96 - + CASE + - 3 WHEN - - 22 THEN - + 67 WHEN 1 - + 6 THEN NULL WHEN + 90 THEN + COUNT( * ) DIV + 74 END ), 15 ) * MIN( - 5 ) + - COUNT( * ) AS col2
----
52
-1

skipif mysql # not compatible
query II rowsort label-6520
SELECT DISTINCT + 52, 65 * - COALESCE ( + 0, COUNT ( * ) + - - COALESCE ( CAST ( NULL AS INTEGER ), - 60, 39 * + + COUNT ( * ) + - 96 - + CASE + - 3 WHEN - - 22 THEN - + 67 WHEN 1 - + 6 THEN NULL WHEN + 90 THEN + COUNT ( * ) / + 74 END ), 15 ) * MIN ( - 5 ) + - COUNT ( * ) AS col2
----
52
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT ALL + CASE - 47 WHEN + 93 / - 44 THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL + CASE - 47 WHEN + 93 / - 44 THEN COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL ( ( 81 ) )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6523
SELECT - 72 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT - 72 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT 16 - COUNT( - + 79 ) - 10 * - COUNT( * ) + + - 88 + - + 25 * - 76 * + COUNT( * ) + 53 AS col2
----
1890

skipif mysql # not compatible
query I rowsort label-6524
SELECT 16 - COUNT ( - + 79 ) - 10 * - COUNT ( * ) + + - 88 + - + 25 * - 76 * + COUNT ( * ) + 53 AS col2
----
1890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6525
SELECT DISTINCT - CAST( + - 73 AS SIGNED ) * - 18
----
-1314

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT - CAST ( + - 73 AS INTEGER ) * - 18
----
-1314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6526
SELECT 25 - + + 29 * - - COUNT( * ) + - CAST( + 81 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-6526
SELECT 25 - + + 29 * - - COUNT ( * ) + - CAST ( + 81 AS INTEGER )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-6527
SELECT 57 AS col1, MAX( ALL + - 76 ) - 37 AS col0
----
57
-113

skipif mysql # not compatible
query II rowsort label-6527
SELECT 57 AS col1, MAX ( ALL + - 76 ) - 37 AS col0
----
57
-113

query II rowsort
SELECT DISTINCT 64 AS col0, 62 + - 97 * + 68 AS col2
----
64
-6534

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ALL - SUM( DISTINCT - + 68 ) + + 20 * + 28 * 71
----
39828

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL - SUM ( DISTINCT - + 68 ) + + 20 * + 28 * 71
----
39828

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL - COUNT( * ) + - - 98 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL - COUNT ( * ) + - - 98 AS col0
----
97

query I rowsort
SELECT DISTINCT - 2 + - 50 - - 98 + 66 * + 72
----
4798

query II rowsort
SELECT ALL 63 + + 21 AS col2, 90 AS col1
----
84
90

query II rowsort
SELECT - 73 AS col0, - 0 AS col2
----
-73
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6534
SELECT + 89 AS col1, + 84 + - + COALESCE ( + + 92, + + 35 DIV - - 18 ) + 48 * - - ( + 3 ) AS col1, - - 52 * + + 92 + - COUNT( * ) AS col2
----
89
136
4783

skipif mysql # not compatible
query III rowsort label-6534
SELECT + 89 AS col1, + 84 + - + COALESCE ( + + 92, + + 35 / - - 18 ) + 48 * - - ( + 3 ) AS col1, - - 52 * + + 92 + - COUNT ( * ) AS col2
----
89
136
4783

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT - 47 - - + COUNT( ALL + 23 )
----
-46

skipif mysql # not compatible
query I rowsort label-6535
SELECT - 47 - - + COUNT ( ALL + 23 )
----
-46

query I rowsort
SELECT DISTINCT - 53 * - 91 AS col1
----
4823

query I rowsort
SELECT ALL + - 20 + - 84
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT - + ( + COUNT( 7 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6538
SELECT - + ( + COUNT ( 7 ) )
----
-1

query I rowsort
SELECT 75 + - 65 AS col2
----
10

query II rowsort
SELECT ALL - 9 + 39, 16 AS col2
----
30
16

onlyif mysql # aggregate syntax: 
query II rowsort label-6541
SELECT DISTINCT 51 AS col2, COUNT( * ) col1
----
51
1

skipif mysql # not compatible
query II rowsort label-6541
SELECT DISTINCT 51 AS col2, COUNT ( * ) col1
----
51
1

query II rowsort
SELECT DISTINCT - 92 AS col0, + NULLIF ( 84, - 30 + - 81 / 74 * - 96 + - 51 * - 7 ) AS col0
----
-92
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6543
SELECT CAST( - 66 AS SIGNED ) + + + 46
----
-20

skipif mysql # not compatible
query I rowsort label-6543
SELECT CAST ( - 66 AS INTEGER ) + + + 46
----
-20

query II rowsort
SELECT ALL 35 AS col1, - 10 AS col2
----
35
-10

query I rowsort
SELECT + COALESCE ( + 91, + 79 ) + - 13
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT ALL - - 41 - + COUNT( - 98 ) col0
----
40

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL - - 41 - + COUNT ( - 98 ) col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT - 63 * - - COALESCE ( + 28, + 71 + COUNT( * ) + + 45, + - COUNT( * ) ) * + - 82 + 66
----
144714

skipif mysql # not compatible
query I rowsort label-6547
SELECT - 63 * - - COALESCE ( + 28, + 71 + COUNT ( * ) + + 45, + - COUNT ( * ) ) * + - 82 + 66
----
144714

query I rowsort
SELECT ALL 32 * - 73 * 12 - ( + 23 ) AS col0
----
-28055

query II rowsort
SELECT ALL - 33, 39 AS col0
----
-33
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6550
SELECT + 80, + COUNT( * ) AS col1
----
80
1

skipif mysql # not compatible
query II rowsort label-6550
SELECT + 80, + COUNT ( * ) AS col1
----
80
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6551
SELECT 75, 65 + - - 33 - - 76 * - - COUNT( * ) AS col2
----
75
174

skipif mysql # not compatible
query II rowsort label-6551
SELECT 75, 65 + - - 33 - - 76 * - - COUNT ( * ) AS col2
----
75
174

onlyif mysql # DIV for integer division: 
query I rowsort label-6552
SELECT - 50 DIV - - 22 + - 99 - + 45 col1
----
-146

skipif mysql # not compatible
query I rowsort label-6552
SELECT - 50 / - - 22 + - 99 - + 45 col1
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT CASE 19 WHEN 89 + 61 THEN - - 1 WHEN COUNT( * ) THEN NULL ELSE NULL END + 41 + + 60 - - COALESCE ( - + 31, COALESCE ( - 82, - CASE + 1 WHEN COUNT( * ) THEN + 17 + - MAX( - - 56 ) WHEN - ( + NULLIF ( + MIN( ALL - + 76 ), ( 12 ) ) ) + 40 * + 38 THEN NULL WHEN - 57 THEN NULL WHEN 74 THEN 31 END + - + CASE - COUNT( * ) WHEN - 5 THEN NULLIF ( 59, 91 ) / + 73 WHEN + 44 THEN NULL END, - 6 / - 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT CASE 19 WHEN 89 + 61 THEN - - 1 WHEN COUNT ( * ) THEN NULL ELSE NULL END + 41 + + 60 - - COALESCE ( - + 31, COALESCE ( - 82, - CASE + 1 WHEN COUNT ( * ) THEN + 17 + - MAX ( - - 56 ) WHEN - ( + NULLIF ( + MIN ( ALL - + 76 ), ( 12 ) ) ) + 40 * + 38 THEN NULL WHEN - 57 THEN NULL WHEN 74 THEN 31 END + - + CASE - COUNT ( * ) WHEN - 5 THEN NULLIF ( 59, 91 ) / + 73 WHEN + 44 THEN NULL END, - 6 / - 89 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6554
SELECT 30 DIV - COUNT( * ) * + - COUNT( + 46 )
----
30

skipif mysql # not compatible
query I rowsort label-6554
SELECT 30 / - COUNT ( * ) * + - COUNT ( + 46 )
----
30

query I rowsort
SELECT 1 + 69 - - 93 + + 46 + - + 45 * - 49 AS col0
----
2414

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6556
SELECT DISTINCT 73 DIV 94 AS col1, + COALESCE ( - + 22, CAST( 27 AS SIGNED ) )
----
0
-22

skipif mysql # not compatible
query II rowsort label-6556
SELECT DISTINCT 73 / 94 AS col1, + COALESCE ( - + 22, CAST ( 27 AS INTEGER ) )
----
0
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT ALL + COUNT( * ) * 23
----
23

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL + COUNT ( * ) * 23
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6558
SELECT ALL - CAST( + + MAX( - - COALESCE ( - ( + - 48 ), - 43 DIV 92 ) ) AS SIGNED ) * + - COUNT( * ) DIV + + 87
----
0

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - CAST ( + + MAX ( - - COALESCE ( - ( + - 48 ), - 43 / 92 ) ) AS INTEGER ) * + - COUNT ( * ) / + + 87
----
0

query I rowsort
SELECT ALL 8 * + 59
----
472

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT 27 * - 61 - - - CASE + + COUNT( * ) WHEN 58 * + CASE + + COUNT( * ) WHEN - - SUM( DISTINCT + 75 ) + 75 THEN + + 93 WHEN - - AVG ( + - 34 ) THEN - - 76 * 5 * - 43 END * + - CASE + 22 WHEN - + 57 * CASE 15 WHEN + MIN( - 48 ) * + 82 THEN MAX( ALL + COALESCE ( + 43, - 54 ) ) WHEN - 73 THEN NULL WHEN + 79 + - - 30 * + 89 * + COUNT( * ) THEN NULL ELSE NULL END THEN + COUNT( * ) * 60 ELSE NULL END THEN NULL WHEN ( 14 ) THEN 35 + 22 * + 22 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6560
SELECT 27 * - 61 - - - CASE + + COUNT ( * ) WHEN 58 * + CASE + + COUNT ( * ) WHEN - - SUM ( DISTINCT + 75 ) + 75 THEN + + 93 WHEN - - AVG ( + - 34 ) THEN - - 76 * 5 * - 43 END * + - CASE + 22 WHEN - + 57 * CASE 15 WHEN + MIN ( - 48 ) * + 82 THEN MAX ( ALL + COALESCE ( + 43, - 54 ) ) WHEN - 73 THEN NULL WHEN + 79 + - - 30 * + 89 * + COUNT ( * ) THEN NULL ELSE NULL END THEN + COUNT ( * ) * 60 ELSE NULL END THEN NULL WHEN ( 14 ) THEN 35 + 22 * + 22 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT ALL ( + - COUNT( * ) ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL ( + - COUNT ( * ) ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6562
SELECT COUNT( * ) DIV - ( + - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-6562
SELECT COUNT ( * ) / - ( + - 26 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6563
SELECT 45 + - 31 col2, - CASE - - COUNT( * ) WHEN 79 THEN + + 2 * CASE - ( - 68 ) WHEN + SUM( - 20 ) * - + 88 / ( + AVG ( 63 ) ) + - 78 + - NULLIF ( + CAST( COUNT( * ) AS SIGNED ), 50 ) + 98 THEN NULL ELSE COALESCE ( 75, COUNT( * ) ) END END AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-6563
SELECT 45 + - 31 col2, - CASE - - COUNT ( * ) WHEN 79 THEN + + 2 * CASE - ( - 68 ) WHEN + SUM ( - 20 ) * - + 88 / ( + AVG ( 63 ) ) + - 78 + - NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), 50 ) + 98 THEN NULL ELSE COALESCE ( 75, COUNT ( * ) ) END END AS col1
----
14
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT - 5 * COUNT( - 30 ) + + 7 + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6564
SELECT - 5 * COUNT ( - 30 ) + + 7 + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6565
SELECT ALL - COALESCE ( + + 41, + COUNT( * ) + + 1 DIV 4 + + 31 ) + 3 * COUNT( * ) + - 44 + 0
----
-82

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL - COALESCE ( + + 41, + COUNT ( * ) + + 1 / 4 + + 31 ) + 3 * COUNT ( * ) + - 44 + 0
----
-82

query I rowsort
SELECT 25 + - 79 * - 16
----
1289

onlyif mysql # aggregate syntax: 
query II rowsort label-6567
SELECT COUNT( * ) * + 6 - 32, + 58 * + 85 + 70 AS col1
----
-26
5000

skipif mysql # not compatible
query II rowsort label-6567
SELECT COUNT ( * ) * + 6 - 32, + 58 * + 85 + 70 AS col1
----
-26
5000

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL + COUNT( * ) + 87 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL + COUNT ( * ) + 87 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT ( + CASE - - ( 42 ) WHEN + - 11 * 91 THEN - - 35 * COUNT( * ) + - + 14 ELSE - 0 END ) + - - 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6569
SELECT ( + CASE - - ( 42 ) WHEN + - 11 * 91 THEN - - 35 * COUNT ( * ) + - + 14 ELSE - 0 END ) + - - 75 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6570
SELECT ALL COALESCE ( - 5, 14 - + 90 ) + + - ( + SUM( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL COALESCE ( - 5, 14 - + 90 ) + + - ( + SUM ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT 44 * CAST( 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6571
SELECT 44 * CAST ( 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL - 73 + 20 * 40 + + COUNT( * )
----
728

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL - 73 + 20 * 40 + + COUNT ( * )
----
728

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6573
SELECT COALESCE ( - - 8, 3, + COUNT( * ) * + COALESCE ( - COUNT( * ), 55, - COUNT( * ), - COUNT( * ) + - 19 ) ) * CAST( NULL AS DECIMAL ) * + - COUNT( * ) AS col1, + 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-6573
SELECT COALESCE ( - - 8, 3, + COUNT ( * ) * + COALESCE ( - COUNT ( * ), 55, - COUNT ( * ), - COUNT ( * ) + - 19 ) ) * CAST ( NULL AS REAL ) * + - COUNT ( * ) AS col1, + 78
----
NULL
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT - + COALESCE ( + COUNT( * ), 73 + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6574
SELECT - + COALESCE ( + COUNT ( * ), 73 + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT ( + + 89 ) + - 68 AS col0
----
21

query II rowsort
SELECT DISTINCT - 79 * + 8, + 41 - - 91 col1
----
-632
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6577
SELECT - MIN( ALL - - 57 ) * 51 * 26 DIV + 61
----
-1239

skipif mysql # not compatible
query I rowsort label-6577
SELECT - MIN ( ALL - - 57 ) * 51 * 26 / + 61
----
-1239

query I rowsort
SELECT DISTINCT - 19 * 37 + + 60
----
-643

query I rowsort
SELECT DISTINCT ( 20 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + COUNT( * ) * + + 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6580
SELECT + COUNT ( * ) * + + 72 AS col2
----
72

query I rowsort
SELECT 89 * - - 93 AS col2
----
8277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6582
SELECT - + CASE + + 90 WHEN - 82 THEN NULL WHEN + - COUNT( * ) THEN + + NULLIF ( - 86, + + NULLIF ( - 86, + 19 * - 45 * - 98 / + NULLIF ( 34, - 80 ) ) ) WHEN + + CAST( - - COUNT( * ) AS SIGNED ) / - - 64 + - + COALESCE ( - CAST( - ( + 31 ) AS SIGNED ), - + MAX( + 70 ) ) THEN + 34 + + CAST( NULL AS SIGNED ) * - 19 + + 46 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT - + CASE + + 90 WHEN - 82 THEN NULL WHEN + - COUNT ( * ) THEN + + NULLIF ( - 86, + + NULLIF ( - 86, + 19 * - 45 * - 98 / + NULLIF ( 34, - 80 ) ) ) WHEN + + CAST ( - - COUNT ( * ) AS INTEGER ) / - - 64 + - + COALESCE ( - CAST ( - ( + 31 ) AS INTEGER ), - + MAX ( + 70 ) ) THEN + 34 + + CAST ( NULL AS INTEGER ) * - 19 + + 46 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6583
SELECT ALL + + 13 DIV + 73 * + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + + 13 / + 73 * + 85 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6584
SELECT + 13 DIV 91 * - + 40 AS col2, MAX( 10 ) - + + CAST( NULL AS SIGNED ) * + COUNT( * )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6584
SELECT + 13 / 91 * - + 40 AS col2, MAX ( 10 ) - + + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
0
NULL

query I rowsort
SELECT 66 + - + 82 col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6586
SELECT 69 * 95 * + ( CAST( - 33 AS SIGNED ) ) * 50 + - - 94 * COUNT( * ) AS col1, 95 * - + 58 AS col0
----
-10815656
-5510

skipif mysql # not compatible
query II rowsort label-6586
SELECT 69 * 95 * + ( CAST ( - 33 AS INTEGER ) ) * 50 + - - 94 * COUNT ( * ) AS col1, 95 * - + 58 AS col0
----
-10815656
-5510

query I rowsort
SELECT ALL 68 * ( + 66 ) * + + 25 AS col0
----
112200

query II rowsort
SELECT ALL - 59, + 59 + - 91 AS col1
----
-59
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-6589
SELECT + MAX( - - ( - 93 ) ) AS col0, 58
----
-93
58

skipif mysql # not compatible
query II rowsort label-6589
SELECT + MAX ( - - ( - 93 ) ) AS col0, 58
----
-93
58

query I rowsort
SELECT DISTINCT 3 * 4 AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6591
SELECT ALL - 40 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL - 40 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 10 * CASE 25 WHEN + 69 + 50 THEN + 22 WHEN + 38 * - 32 THEN NULL END / 85
----
NULL

query I rowsort
SELECT ALL 64 * 6 + - 42
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT + MAX( + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-6594
SELECT + MAX ( + 97 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT ALL - CAST( CAST( - + 31 AS SIGNED ) AS SIGNED ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL - CAST ( CAST ( - + 31 AS INTEGER ) AS INTEGER ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT + 71 * + COUNT( * ) * 64 + - 18 * - - COUNT( * ) AS col2
----
4526

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT + 71 * + COUNT ( * ) * 64 + - 18 * - - COUNT ( * ) AS col2
----
4526

query I rowsort
SELECT 0 * + 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT MIN( ALL - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-6598
SELECT MIN ( ALL - 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL + 39 * + - COUNT( * ) + + ( + COUNT( * ) ) + - - 3 col1
----
-35

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL + 39 * + - COUNT ( * ) + + ( + COUNT ( * ) ) + - - 3 col1
----
-35

query I rowsort
SELECT + 60 * - 38 * - 45 * - 74 col2
----
-7592400

query I rowsort
SELECT + 19 + - 89
----
-70

query I rowsort
SELECT DISTINCT 90 + + 41
----
131

query I rowsort
SELECT ALL 7 * 24 AS col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT + COUNT( * ) * + ( - - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-6604
SELECT + COUNT ( * ) * + ( - - 38 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6605
SELECT + COALESCE ( 66, + CAST( NULL AS SIGNED ) ) AS col2, + 60 * + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED )
----
66
NULL

skipif mysql # not compatible
query II rowsort label-6605
SELECT + COALESCE ( 66, + CAST ( NULL AS INTEGER ) ) AS col2, + 60 * + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
66
NULL

query II rowsort
SELECT ALL + 89 AS col0, 89 * 53 * 68 * - + 91
----
89
-29188796

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT DISTINCT ( + 35 ) + 90 + + - 7 * SUM( ALL 45 )
----
-190

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT ( + 35 ) + 90 + + - 7 * SUM ( ALL 45 )
----
-190

query I rowsort
SELECT + + 64 * - COALESCE ( - 72, + 71 )
----
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT + + MIN( 9 ) + + - MIN( - 72 ) + 11 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6609
SELECT + + MIN ( 9 ) + + - MIN ( - 72 ) + 11 AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT + 29 DIV - 21 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6610
SELECT + 29 / - 21 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6611
SELECT + 68 * 54 * ( + 53 ) DIV 17
----
11448

skipif mysql # not compatible
query I rowsort label-6611
SELECT + 68 * 54 * ( + 53 ) / 17
----
11448

query II rowsort
SELECT + 35 AS col1, - 63
----
35
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6613
SELECT + 82 - COUNT( * ) + - 54 AS col1, CAST( - - 43 AS SIGNED ) * + 0 * - 98
----
27
0

skipif mysql # not compatible
query II rowsort label-6613
SELECT + 82 - COUNT ( * ) + - 54 AS col1, CAST ( - - 43 AS INTEGER ) * + 0 * - 98
----
27
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT - + MIN( ALL + 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6614
SELECT - + MIN ( ALL + 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT DISTINCT + NULLIF ( + COUNT( * ), - 69 * + - 85 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT + NULLIF ( + COUNT ( * ), - 69 * + - 85 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6616
SELECT + 19, 12 * 39 DIV - 77 AS col1
----
19
-6

skipif mysql # not compatible
query II rowsort label-6616
SELECT + 19, 12 * 39 / - 77 AS col1
----
19
-6

query I rowsort
SELECT ALL 69 * 38 * - 67
----
-175674

onlyif mysql # aggregate syntax: 
query II rowsort label-6618
SELECT DISTINCT - 94 AS col0, + COUNT( 50 ) AS col0
----
-94
1

skipif mysql # not compatible
query II rowsort label-6618
SELECT DISTINCT - 94 AS col0, + COUNT ( 50 ) AS col0
----
-94
1

query I rowsort
SELECT DISTINCT ( - + 90 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6620
SELECT DISTINCT - CASE + COUNT( * ) WHEN + 77 THEN + 14 ELSE NULL END * + 39 + MAX( ALL 79 ) + + + 6 * + 87 * COUNT( * ) * - 94 * + CAST( NULL AS SIGNED ) * - 98 - 22 + + 27 / - COUNT( * ) * + + CASE + COUNT( * ) WHEN + 2 THEN + 50 * COUNT( * ) + - COALESCE ( + 95, - - 47 ) ELSE NULL END * - 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT - CASE + COUNT ( * ) WHEN + 77 THEN + 14 ELSE NULL END * + 39 + MAX ( ALL 79 ) + + + 6 * + 87 * COUNT ( * ) * - 94 * + CAST ( NULL AS INTEGER ) * - 98 - 22 + + 27 / - COUNT ( * ) * + + CASE + COUNT ( * ) WHEN + 2 THEN + 50 * COUNT ( * ) + - COALESCE ( + 95, - - 47 ) ELSE NULL END * - 83 col0
----
NULL

query I rowsort
SELECT ALL - CASE 93 WHEN + + ( + 40 ) THEN NULL WHEN 53 THEN NULL ELSE 96 END
----
-96

query I rowsort
SELECT + 84 * 27 AS col1
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT - - 71 - MIN( DISTINCT - + 26 ) + + 91
----
188

skipif mysql # not compatible
query I rowsort label-6623
SELECT - - 71 - MIN ( DISTINCT - + 26 ) + + 91
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT DISTINCT + + 11 * - MAX( 46 ) + + 81 + 60
----
-365

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT + + 11 * - MAX ( 46 ) + + 81 + 60
----
-365

onlyif mysql # DIV for integer division: 
query I rowsort label-6625
SELECT - 81 DIV + 44 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6625
SELECT - 81 / + 44 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6626
SELECT ALL + 74 * + + 77 DIV + 1 + 20
----
5718

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL + 74 * + + 77 / + 1 + 20
----
5718

query I rowsort
SELECT - NULLIF ( - + 84, + 54 + - 72 + - 5 ) + 82 AS col0
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-6628
SELECT - 27 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-6628
SELECT - 27 / 84
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6629
SELECT ALL SUM( - 64 ) DIV - + COUNT( * ) + + 38 + - 8 + + CAST( COUNT( NULLIF ( - 30, - 17 ) ) AS SIGNED ) + - 1 - - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL SUM ( - 64 ) / - + COUNT ( * ) + + 38 + - 8 + + CAST ( COUNT ( NULLIF ( - 30, - 17 ) ) AS INTEGER ) + - 1 - - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT ( + COUNT( ALL + - 42 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6630
SELECT ( + COUNT ( ALL + - 42 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6631
SELECT - COUNT( * ) * - - 47 DIV 91 + + SUM( DISTINCT + + 6 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-6631
SELECT - COUNT ( * ) * - - 47 / 91 + + SUM ( DISTINCT + + 6 ) col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT 45 * - + 85 + + 86 + + COUNT( DISTINCT - 32 ) AS col1
----
-3738

skipif mysql # not compatible
query I rowsort label-6632
SELECT 45 * - + 85 + + 86 + + COUNT ( DISTINCT - 32 ) AS col1
----
-3738

onlyif mysql # DIV for integer division: 
query I rowsort label-6633
SELECT DISTINCT + 55 DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT + 55 / - 47
----
-1

query I rowsort
SELECT - 43 * 66 AS col0
----
-2838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6635
SELECT DISTINCT - 2 * + ( - - 44 ) * + CAST( NULL AS SIGNED ) + - 95 / + 65 - 31 + - - 11 * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT - 2 * + ( - - 44 ) * + CAST ( NULL AS INTEGER ) + - 95 / + 65 - 31 + - - 11 * 70
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6636
SELECT + 83 + 88 AS col1, 28 DIV 70 AS col1
----
171
0

skipif mysql # not compatible
query II rowsort label-6636
SELECT + 83 + 88 AS col1, 28 / 70 AS col1
----
171
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT + - 41 + + CAST( - - 20 AS SIGNED ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-6637
SELECT + - 41 + + CAST ( - - 20 AS INTEGER ) col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT DISTINCT + 2 DIV + - ( - 69 )
----
0

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT + 2 / + - ( - 69 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT + 30 * + 31 + + MAX( DISTINCT 98 ) + - 44 AS col1
----
984

skipif mysql # not compatible
query I rowsort label-6639
SELECT + 30 * + 31 + + MAX ( DISTINCT 98 ) + - 44 AS col1
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL SUM( 12 ) * + ( COUNT( * ) ) + - 46
----
-34

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL SUM ( 12 ) * + ( COUNT ( * ) ) + - 46
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6641
SELECT + CAST( NULL AS SIGNED ) + - + CASE + 13 WHEN - 28 + + - NULLIF ( - 11, + 8 ) THEN - NULLIF ( 39, - 84 ) * 29 WHEN CASE + 96 WHEN + 97 * - CASE + 33 WHEN 79 / - 17 + + - ( - + 47 ) THEN + 20 + - - 74 WHEN + + 85 THEN 61 + - CASE + COUNT( DISTINCT + - ( 36 ) ) WHEN - 21 THEN + - COUNT( * ) + + + 38 + + + 1 + + COUNT( * ) * + + NULLIF ( 69, 2 * - 34 - - 50 ) * + 35 ELSE + 88 - 93 END + + 51 ELSE 42 END - 58 THEN - 25 - + COUNT( * ) WHEN - 66 * - 59 THEN + 37 ELSE - 20 END THEN NULL END + - 23 * - COUNT( * ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT + CAST ( NULL AS INTEGER ) + - + CASE + 13 WHEN - 28 + + - NULLIF ( - 11, + 8 ) THEN - NULLIF ( 39, - 84 ) * 29 WHEN CASE + 96 WHEN + 97 * - CASE + 33 WHEN 79 / - 17 + + - ( - + 47 ) THEN + 20 + - - 74 WHEN + + 85 THEN 61 + - CASE + COUNT ( DISTINCT + - ( 36 ) ) WHEN - 21 THEN + - COUNT ( * ) + + + 38 + + + 1 + + COUNT ( * ) * + + NULLIF ( 69, 2 * - 34 - - 50 ) * + 35 ELSE + 88 - 93 END + + 51 ELSE 42 END - 58 THEN - 25 - + COUNT ( * ) WHEN - 66 * - 59 THEN + 37 ELSE - 20 END THEN NULL END + - 23 * - COUNT ( * ) * 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6642
SELECT + MAX( ALL - 77 ) DIV - - 75 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6642
SELECT + MAX ( ALL - 77 ) / - - 75 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6643
SELECT + 56 + + - CAST( 34 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-6643
SELECT + 56 + + - CAST ( 34 AS INTEGER )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6644
SELECT ALL - 45 + 48 AS col2, 1 + + 80 DIV 92 * + + ( 96 ) * 54 * - 75 * + - 61 + MIN( ALL + - 60 ), 21 AS col2
----
3
-59
21

skipif mysql # not compatible
query III rowsort label-6644
SELECT ALL - 45 + 48 AS col2, 1 + + 80 / 92 * + + ( 96 ) * 54 * - 75 * + - 61 + MIN ( ALL + - 60 ), 21 AS col2
----
3
-59
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT ALL - CAST( NULL AS SIGNED ) * - 79 * - ( 0 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL - CAST ( NULL AS INTEGER ) * - 79 * - ( 0 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT DISTINCT 88 + COUNT( * ) - + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT 88 + COUNT ( * ) - + COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL COUNT( DISTINCT - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL COUNT ( DISTINCT - 75 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT DISTINCT - COUNT( * ) + + 89
----
88

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT - COUNT ( * ) + + 89
----
88

query I rowsort
SELECT DISTINCT 50 + + 96 * - 71 * - ( 50 ) AS col0
----
340850

query II rowsort
SELECT - 23, 16 * + 48 AS col2
----
-23
768

query I rowsort
SELECT 39 * - 12 * + 57
----
-26676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6652
SELECT 45 + + 74 - - - 93 - - 96 * + + 34 - CAST( NULL AS SIGNED ) * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT 45 + + 74 - - - 93 - - 96 * + + 34 - CAST ( NULL AS INTEGER ) * + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL - COUNT( * ) + + 24 + - 22 * - - 15 AS col0
----
-307

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL - COUNT ( * ) + + 24 + - 22 * - - 15 AS col0
----
-307

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT ALL + 50 + + - 34 * + ( + NULLIF ( - 76, - 43 * + - MAX( + 27 ) + + + 47 ) ) * - 2 AS col1
----
-5118

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL + 50 + + - 34 * + ( + NULLIF ( - 76, - 43 * + - MAX ( + 27 ) + + + 47 ) ) * - 2 AS col1
----
-5118

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT 29 - + ( + COUNT( * ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6655
SELECT 29 - + ( + COUNT ( * ) ) AS col1
----
28

query I rowsort
SELECT ALL ( ( + - 99 ) ) * - 0 AS col1
----
0

query I rowsort
SELECT ALL - ( - 83 ) AS col0
----
83

query I rowsort
SELECT ALL ( ( - - 27 ) ) + + + 83 + + + 11 AS col1
----
121

query I rowsort
SELECT ALL - 69 - 50
----
-119

query II rowsort
SELECT DISTINCT - 86, 51 AS col1
----
-86
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6661
SELECT ALL - 6 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL - 6 / - 63
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6662
SELECT 60 DIV + COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6662
SELECT 60 / + COUNT ( * ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6663
SELECT DISTINCT - 33 - - 18 * + 54, + COALESCE ( + - ( + COUNT( * ) ), SUM( 5 ), 17, + 2 ) + - 96 - 92 * + 78 AS col0
----
939
-7273

skipif mysql # not compatible
query II rowsort label-6663
SELECT DISTINCT - 33 - - 18 * + 54, + COALESCE ( + - ( + COUNT ( * ) ), SUM ( 5 ), 17, + 2 ) + - 96 - 92 * + 78 AS col0
----
939
-7273

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT ALL - SUM( ALL + 42 ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL - SUM ( ALL + 42 ) col0
----
-42

query I rowsort
SELECT 73 - 95 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT 80 * - COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6666
SELECT 80 * - COUNT ( * ) AS col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6667
SELECT ALL - 6 DIV + - ( + - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL - 6 / + - ( + - 64 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6668
SELECT CASE - - 43 WHEN 14 THEN - 41 * 36 + 37 - + 5 + - 7 WHEN - + 55 THEN NULL END * NULLIF ( - COALESCE ( - + 60, ( - ( + 45 ) ) + + - 85 + 19 * - - 86 ), + CAST( + COUNT( * ) AS SIGNED ) * ( 4 ) + - 25 / + - 52 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6668
SELECT CASE - - 43 WHEN 14 THEN - 41 * 36 + 37 - + 5 + - 7 WHEN - + 55 THEN NULL END * NULLIF ( - COALESCE ( - + 60, ( - ( + 45 ) ) + + - 85 + 19 * - - 86 ), + CAST ( + COUNT ( * ) AS INTEGER ) * ( 4 ) + - 25 / + - 52 ) AS col0
----
NULL

query III rowsort
SELECT DISTINCT - - 98 AS col1, + 49 * + - 1 AS col2, 28 + 31 AS col0
----
98
-49
59

query I rowsort
SELECT + 68 + - 75 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT ALL - MAX( ALL + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL - MAX ( ALL + 2 )
----
-2

query I rowsort
SELECT ALL - + 7 col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT + SUM( DISTINCT 46 )
----
46

skipif mysql # not compatible
query I rowsort label-6673
SELECT + SUM ( DISTINCT 46 )
----
46

query II rowsort
SELECT ALL - 16, 15 AS col1
----
-16
15

query I rowsort
SELECT - 91 * - - 37 * - 78 * 45
----
11818170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6676
SELECT ALL + COUNT( + 13 ) * - - MAX( + 2 ) + + CAST( NULL AS SIGNED ) AS col1, 31 DIV + ( + + 81 ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6676
SELECT ALL + COUNT ( + 13 ) * - - MAX ( + 2 ) + + CAST ( NULL AS INTEGER ) AS col1, 31 / + ( + + 81 ) AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL - MIN( + 72 ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - MIN ( + 72 ) col0
----
-72

query I rowsort
SELECT ALL - + 83 col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6679
SELECT ALL + NULLIF ( - 80, - + 15 * - - 38 + - CAST( NULL AS SIGNED ) * + 50 + ( - 12 ) ) * - - 25 AS col1
----
-2000

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL + NULLIF ( - 80, - + 15 * - - 38 + - CAST ( NULL AS INTEGER ) * + 50 + ( - 12 ) ) * - - 25 AS col1
----
-2000

onlyif mysql # aggregate syntax: 
query II rowsort label-6680
SELECT - MAX( - 64 ) + - 74, + 40 col2
----
-10
40

skipif mysql # not compatible
query II rowsort label-6680
SELECT - MAX ( - 64 ) + - 74, + 40 col2
----
-10
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT + CASE - 96 WHEN - MIN( DISTINCT - + 59 ) + 35 / - + 46 THEN - 45 / - 15 + - CASE - 4 WHEN 61 THEN - + 47 * + + 70 - - + 42 / - COUNT( * ) + 35 END WHEN - 1 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6681
SELECT + CASE - 96 WHEN - MIN ( DISTINCT - + 59 ) + 35 / - + 46 THEN - 45 / - 15 + - CASE - 4 WHEN 61 THEN - + 47 * + + 70 - - + 42 / - COUNT ( * ) + 35 END WHEN - 1 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 49 + - - 39 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT 74 - + - COUNT( * ) * - + 80
----
-6

skipif mysql # not compatible
query I rowsort label-6683
SELECT 74 - + - COUNT ( * ) * - + 80
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT COUNT( * ) * + + 98 * 20 * - 92 AS col2
----
-180320

skipif mysql # not compatible
query I rowsort label-6684
SELECT COUNT ( * ) * + + 98 * 20 * - 92 AS col2
----
-180320

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT ( + - COUNT( * ) ) + - - 9 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6685
SELECT ( + - COUNT ( * ) ) + - - 9 AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6686
SELECT ALL 33 DIV + + 84
----
0

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL 33 / + + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL - 99 + - CASE - 28 WHEN COUNT( * ) THEN + NULLIF ( - 38, 21 ) ELSE 31 * + 79 END col2
----
-2548

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL - 99 + - CASE - 28 WHEN COUNT ( * ) THEN + NULLIF ( - 38, 21 ) ELSE 31 * + 79 END col2
----
-2548

query I rowsort
SELECT + 7 + + + 54
----
61

query I rowsort
SELECT ALL + 88 + + - 30 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT + COUNT( * ) * + 58
----
58

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT + COUNT ( * ) * + 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT ALL - + 27 + + 5 - COUNT( * ) + - 39 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL - + 27 + + 5 - COUNT ( * ) + - 39 AS col0
----
-62

query I rowsort
SELECT ALL 60 + - + 74
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6693
SELECT 94 + COUNT( * ) * - CAST( 86 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-6693
SELECT 94 + COUNT ( * ) * - CAST ( 86 AS INTEGER )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT COALESCE ( SUM( DISTINCT + 53 ), - + 97 * - 91 * 25 ) - + 44 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6694
SELECT COALESCE ( SUM ( DISTINCT + 53 ), - + 97 * - 91 * 25 ) - + 44 AS col0
----
9

query I rowsort
SELECT 3 + 46 col0
----
49

query I rowsort
SELECT 39 + 91 * - 19
----
-1690

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT ( + COUNT( * ) ) + + + COALESCE ( 2, + 55 ) * + - 13 * + 26
----
-675

skipif mysql # not compatible
query I rowsort label-6697
SELECT ( + COUNT ( * ) ) + + + COALESCE ( 2, + 55 ) * + - 13 * + 26
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL ( - COUNT( * ) ) + + SUM( DISTINCT 56 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL ( - COUNT ( * ) ) + + SUM ( DISTINCT 56 ) AS col2
----
55

query I rowsort
SELECT NULLIF ( - 74, + 71 ) + - 49
----
-123

query I rowsort
SELECT 29 + - - 97
----
126

query I rowsort
SELECT DISTINCT ( - - 2 ) * - 11 * - + 72 + - 4 - 37 AS col2
----
1543

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT ( - - 64 ) + + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6702
SELECT ( - - 64 ) + + COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT ALL ( 61 ) - + 83 * 33 + - SUM( DISTINCT ( + - 73 ) ) * 85 * + + 5 AS col1
----
28347

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL ( 61 ) - + 83 * 33 + - SUM ( DISTINCT ( + - 73 ) ) * 85 * + + 5 AS col1
----
28347

query I rowsort
SELECT DISTINCT - NULLIF ( - - 80, - 67 ) AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6705
SELECT ALL - 83 - + + 73 AS col2, - ( - + CAST( NULL AS SIGNED ) )
----
-156
NULL

skipif mysql # not compatible
query II rowsort label-6705
SELECT ALL - 83 - + + 73 AS col2, - ( - + CAST ( NULL AS INTEGER ) )
----
-156
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL - SUM( + ( - 33 ) )
----
33

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL - SUM ( + ( - 33 ) )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6707
SELECT 10 * - + 58 + - MAX( + + 43 ) + - SUM( ALL - - 31 ) + + + NULLIF ( + + CAST( NULL AS SIGNED ), 97 * 5 * + - 81 ) * - COUNT( * ) * 76 * - 38 + + 81 * ( + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT 10 * - + 58 + - MAX ( + + 43 ) + - SUM ( ALL - - 31 ) + + + NULLIF ( + + CAST ( NULL AS INTEGER ), 97 * 5 * + - 81 ) * - COUNT ( * ) * 76 * - 38 + + 81 * ( + + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6708
SELECT MIN( 28 ) AS col1, + 54 + + + 73 AS col1
----
28
127

skipif mysql # not compatible
query II rowsort label-6708
SELECT MIN ( 28 ) AS col1, + 54 + + + 73 AS col1
----
28
127

query I rowsort
SELECT 54 * ( + 34 ) AS col2
----
1836

query I rowsort
SELECT 89 * CASE 18 WHEN - 61 THEN - - 28 END
----
NULL

query I rowsort
SELECT 60 + - 86 * - + 8 - ( + + 86 ) AS col1
----
662

query II rowsort
SELECT DISTINCT - + 96, 78 + - 69 AS col0
----
-96
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT ALL 36 * SUM( DISTINCT - + 46 ) + + - 8 col2
----
-1664

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL 36 * SUM ( DISTINCT - + 46 ) + + - 8 col2
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT + 63 * - COUNT( * ) + 95 * 76 * + + 24 - 13 + + 41 * - 37 + + 51
----
171738

skipif mysql # not compatible
query I rowsort label-6714
SELECT + 63 * - COUNT ( * ) + 95 * 76 * + + 24 - 13 + + 41 * - 37 + + 51
----
171738

query II rowsort
SELECT DISTINCT - - 49 col1, 96 * - 39 * + - 28 * + 6
----
49
628992

query II rowsort
SELECT ALL - 89, - 20 AS col0
----
-89
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT + MAX( DISTINCT - + 38 ) + + 4
----
-34

skipif mysql # not compatible
query I rowsort label-6717
SELECT + MAX ( DISTINCT - + 38 ) + + 4
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6718
SELECT + - 97 AS col1, - 17 + + COUNT( * ) DIV + - 80 AS col0
----
-97
-17

skipif mysql # not compatible
query II rowsort label-6718
SELECT + - 97 AS col1, - 17 + + COUNT ( * ) / + - 80 AS col0
----
-97
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6719
SELECT + 55 * + AVG ( - + 60 ) * - AVG ( 85 ) * + - ( CAST( NULL AS SIGNED ) ) + 75 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT + 55 * + AVG ( - + 60 ) * - AVG ( 85 ) * + - ( CAST ( NULL AS INTEGER ) ) + 75 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6720
SELECT ALL + + CAST( 96 AS SIGNED ) + + SUM( + + 44 ) - - - 90 * + ( + 30 ) * 41 AS col1
----
-110560

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL + + CAST ( 96 AS INTEGER ) + + SUM ( + + 44 ) - - - 90 * + ( + 30 ) * 41 AS col1
----
-110560

query I rowsort
SELECT DISTINCT - 50 + + 64 + + - 38 AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-6722
SELECT ALL + + 91 + 31 DIV - 20 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + + 91 + 31 / - 20 AS col0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-6723
SELECT ALL + COUNT( * ) + - 71 - + COUNT( - + 22 ) + - - 58 + - 68, 72 + + + COUNT( * ) AS col1
----
-81
73

skipif mysql # not compatible
query II rowsort label-6723
SELECT ALL + COUNT ( * ) + - 71 - + COUNT ( - + 22 ) + - - 58 + - 68, 72 + + + COUNT ( * ) AS col1
----
-81
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT ALL - + ( 42 ) * + COUNT( * ) + + - 43
----
-85

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL - + ( 42 ) * + COUNT ( * ) + + - 43
----
-85

query I rowsort
SELECT - - 62 * + - 21
----
-1302

query I rowsort
SELECT - - 57 + 46 * - 10 AS col2
----
-403

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT MIN( 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6727
SELECT MIN ( 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT - + SUM( ALL + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-6728
SELECT - + SUM ( ALL + 27 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6729
SELECT + 56 + - CAST( NULL AS DECIMAL ) - + 20 * - ( + + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT + 56 + - CAST ( NULL AS REAL ) - + 20 * - ( + + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6730
SELECT ALL + COALESCE ( - 74, - + 68 + - 87 + - 97 ) + + + COUNT( * ) + - + 22 DIV - COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + COALESCE ( - 74, - + 68 + - 87 + - 97 ) + + + COUNT ( * ) + - + 22 / - COUNT ( * ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL - COUNT( + 41 ) - + + CASE - 41 WHEN + COALESCE ( 92, - + 21, 88 ) * + 31 * COUNT( * ) + - + COALESCE ( + 90, - - 30 + 89 - + - 34 * - + 91 ) THEN NULL WHEN + + 99 / - 87 THEN 3 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL - COUNT ( + 41 ) - + + CASE - 41 WHEN + COALESCE ( 92, - + 21, 88 ) * + 31 * COUNT ( * ) + - + COALESCE ( + 90, - - 30 + 89 - + - 34 * - + 91 ) THEN NULL WHEN + + 99 / - 87 THEN 3 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT - 44 * 38 * COUNT( * )
----
-1672

skipif mysql # not compatible
query I rowsort label-6732
SELECT - 44 * 38 * COUNT ( * )
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT - MIN( + 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6733
SELECT - MIN ( + 50 ) AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6734
SELECT ALL - 51 - + 24, SUM( CAST( - 85 AS SIGNED ) ) AS col2
----
-75
-85

skipif mysql # not compatible
query II rowsort label-6734
SELECT ALL - 51 - + 24, SUM ( CAST ( - 85 AS INTEGER ) ) AS col2
----
-75
-85

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6735
SELECT DISTINCT CASE - 15 WHEN - 17 + - ( CAST( NULL AS DECIMAL ) ) THEN - CASE 37 WHEN + - 56 THEN NULL WHEN 94 + ( - ( + 31 ) ) THEN NULL ELSE + + CAST( NULL AS SIGNED ) END * 0 * - - 23 * + - 93 WHEN - 21 * - + NULLIF ( - + 15, - 30 / + - 40 + + 9 ) + 54 * - + 79 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT CASE - 15 WHEN - 17 + - ( CAST ( NULL AS REAL ) ) THEN - CASE 37 WHEN + - 56 THEN NULL WHEN 94 + ( - ( + 31 ) ) THEN NULL ELSE + + CAST ( NULL AS INTEGER ) END * 0 * - - 23 * + - 93 WHEN - 21 * - + NULLIF ( - + 15, - 30 / + - 40 + + 9 ) + 54 * - + 79 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT - MIN( ALL 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6736
SELECT - MIN ( ALL 7 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL - NULLIF ( + 57, + COUNT( * ) * 81 - + 29 - 36 ) * 14 * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL - NULLIF ( + 57, + COUNT ( * ) * 81 - + 29 - 36 ) * 14 * - + 0
----
0

query I rowsort
SELECT - 61 + + 90 * - - 99
----
8849

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT + MIN( + 82 ) + - 35 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6739
SELECT + MIN ( + 82 ) + - 35 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT - MIN( ALL 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-6740
SELECT - MIN ( ALL 8 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6741
SELECT + NULLIF ( - 22, COUNT( ALL + 94 ) ) DIV 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6741
SELECT + NULLIF ( - 22, COUNT ( ALL + 94 ) ) / 58 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6742
SELECT + COUNT( * ) * 54 col1, - 75
----
54
-75

skipif mysql # not compatible
query II rowsort label-6742
SELECT + COUNT ( * ) * 54 col1, - 75
----
54
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6743
SELECT ALL - - 34 * NULLIF ( - 70, - 50 * + MAX( + ( ( - 65 ) ) ) + + - 23 ) + + 91 DIV ( - 56 ) - - 58
----
-2323

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL - - 34 * NULLIF ( - 70, - 50 * + MAX ( + ( ( - 65 ) ) ) + + - 23 ) + + 91 / ( - 56 ) - - 58
----
-2323

query II rowsort
SELECT + + COALESCE ( 85, + - COALESCE ( - 89, 4, - 54 ) - - 12 ) col0, - 10
----
85
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6745
SELECT + - 68 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT + - 68 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6746
SELECT ALL COALESCE ( - - 47, COALESCE ( - - NULLIF ( - 43, COUNT( * ) + - 91 + + + 70 * 52 * 87 * - - 6 ), ( - 10 ) * + 77 * - 84 * + COUNT( * ) ) ) * - - SUM( ALL + + 95 ) + - 11 DIV + + COUNT( * ) col0, 37
----
4454
37

skipif mysql # not compatible
query II rowsort label-6746
SELECT ALL COALESCE ( - - 47, COALESCE ( - - NULLIF ( - 43, COUNT ( * ) + - 91 + + + 70 * 52 * 87 * - - 6 ), ( - 10 ) * + 77 * - 84 * + COUNT ( * ) ) ) * - - SUM ( ALL + + 95 ) + - 11 / + + COUNT ( * ) col0, 37
----
4454
37

query I rowsort
SELECT + 48 * - 49
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT ALL - - 17 * - 82 * + NULLIF ( 43, NULLIF ( CASE + + COUNT( * ) WHEN 59 + + 39 * - ( + - 23 ) THEN NULL ELSE + + 40 * - + MIN( + - 74 ) / - - 92 * 36 / - ( - + CASE + 50 WHEN + COUNT( * ) THEN NULL ELSE ( + 64 ) END ) + - - ( - 8 ) + COUNT( * ) - + 13 END, - 3 ) ) + + - 96 * - + 98 + - 72 AS col0
----
-50606

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL - - 17 * - 82 * + NULLIF ( 43, NULLIF ( CASE + + COUNT ( * ) WHEN 59 + + 39 * - ( + - 23 ) THEN NULL ELSE + + 40 * - + MIN ( + - 74 ) / - - 92 * 36 / - ( - + CASE + 50 WHEN + COUNT ( * ) THEN NULL ELSE ( + 64 ) END ) + - - ( - 8 ) + COUNT ( * ) - + 13 END, - 3 ) ) + + - 96 * - + 98 + - 72 AS col0
----
-50606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6749
SELECT + MIN( ALL - CAST( 15 AS SIGNED ) )
----
-15

skipif mysql # not compatible
query I rowsort label-6749
SELECT + MIN ( ALL - CAST ( 15 AS INTEGER ) )
----
-15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6750
SELECT + - 52 / CAST( NULL AS SIGNED ), CAST( NULL AS DECIMAL ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6750
SELECT + - 52 / CAST ( NULL AS INTEGER ), CAST ( NULL AS REAL ) AS col2
----
NULL
NULL

query I rowsort
SELECT ALL + 53 * + - 89 - 45 + + 75
----
-4687

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6752
SELECT - 11 / - - 6 - - 36 - + 22 + + 2 - COUNT( * ) * ( - SUM( 42 ) ) * + 50 + MAX( + 68 ) * 16 * 14 + - 16 + MAX( - - NULLIF ( + 58, + 4 ) ) * 78 / CAST( - ( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT - 11 / - - 6 - - 36 - + 22 + + 2 - COUNT ( * ) * ( - SUM ( 42 ) ) * + 50 + MAX ( + 68 ) * 16 * 14 + - 16 + MAX ( - - NULLIF ( + 58, + 4 ) ) * 78 / CAST ( - ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + - 67 * 69 - + 40 AS col2
----
-4663

onlyif mysql # DIV for integer division: 
query II rowsort label-6754
SELECT DISTINCT + - CASE - 93 WHEN + + 46 THEN - 74 ELSE + - 78 + + 92 END DIV - 75 AS col2, 0
----
0
0

skipif mysql # not compatible
query II rowsort label-6754
SELECT DISTINCT + - CASE - 93 WHEN + + 46 THEN - 74 ELSE + - 78 + + 92 END / - 75 AS col2, 0
----
0
0

query I rowsort
SELECT - 44 + - - 78 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT DISTINCT + COALESCE ( 14, - 48 ) * - CAST( + 57 AS SIGNED )
----
-798

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT + COALESCE ( 14, - 48 ) * - CAST ( + 57 AS INTEGER )
----
-798

query II rowsort
SELECT - 21 + 53 + - 0 AS col1, - NULLIF ( + NULLIF ( 30, - 49 * 68 - + - 92 ), 58 ) * 40 AS col2
----
32
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6758
SELECT ALL 27 - - 66 + - - CASE + COUNT( ALL - 96 ) WHEN 21 THEN - + MIN( - 21 ) ELSE NULL END * + - 56 / ( CAST( COUNT( * ) AS SIGNED ) ) * CASE - - 16 WHEN + 35 * - + AVG ( ALL + 27 ) + - COALESCE ( - ( 67 ), - 75 + - - COALESCE ( ( - 73 ), - 45, + - 86 ) * - 76 * + 79 ) + + MIN( + + 66 ) * + + 66 * - COUNT( * ) THEN NULL ELSE + - COUNT( * ) / + 68 END + + - NULLIF ( + 21, - NULLIF ( - 54, - AVG ( DISTINCT 8 ) + - COUNT( * ) * 1 ) * + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL 27 - - 66 + - - CASE + COUNT ( ALL - 96 ) WHEN 21 THEN - + MIN ( - 21 ) ELSE NULL END * + - 56 / ( CAST ( COUNT ( * ) AS INTEGER ) ) * CASE - - 16 WHEN + 35 * - + AVG ( ALL + 27 ) + - COALESCE ( - ( 67 ), - 75 + - - COALESCE ( ( - 73 ), - 45, + - 86 ) * - 76 * + 79 ) + + MIN ( + + 66 ) * + + 66 * - COUNT ( * ) THEN NULL ELSE + - COUNT ( * ) / + 68 END + + - NULLIF ( + 21, - NULLIF ( - 54, - AVG ( DISTINCT 8 ) + - COUNT ( * ) * 1 ) * + 66 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT ALL + 91 * - MIN( DISTINCT + 64 )
----
-5824

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL + 91 * - MIN ( DISTINCT + 64 )
----
-5824

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT - MIN( DISTINCT - 46 ) + - 31 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6760
SELECT - MIN ( DISTINCT - 46 ) + - 31 AS col2
----
15

query I rowsort
SELECT - 91 * + + 75
----
-6825

query I rowsort
SELECT - 61 + - ( 48 ) * 12 AS col1
----
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT - CASE - - COUNT( * ) WHEN + 27 * + ( - + 92 ) + 68 THEN NULL WHEN 32 THEN NULL ELSE + 1 END + + 36
----
35

skipif mysql # not compatible
query I rowsort label-6763
SELECT - CASE - - COUNT ( * ) WHEN + 27 * + ( - + 92 ) + 68 THEN NULL WHEN 32 THEN NULL ELSE + 1 END + + 36
----
35

query I rowsort
SELECT - 55 * - - 5
----
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + MIN( + 0 ) * + COALESCE ( - 60, - 61 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6765
SELECT + MIN ( + 0 ) * + COALESCE ( - 60, - 61 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6766
SELECT + CAST( NULL AS SIGNED ) + + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT + CAST ( NULL AS INTEGER ) + + 92 AS col1
----
NULL

query II rowsort
SELECT 31 AS col0, - 72 * - - 32 AS col0
----
31
-2304

query I rowsort
SELECT DISTINCT ( + - 74 )
----
-74

query I rowsort
SELECT ALL ( - 21 ) AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6770
SELECT - COUNT( * ) * + SUM( + 17 ), 28 - + - MIN( ALL - 70 ) col0, - 50 * + - 36 - CAST( NULL AS SIGNED ) AS col2
----
-17
-42
NULL

skipif mysql # not compatible
query III rowsort label-6770
SELECT - COUNT ( * ) * + SUM ( + 17 ), 28 - + - MIN ( ALL - 70 ) col0, - 50 * + - 36 - CAST ( NULL AS INTEGER ) AS col2
----
-17
-42
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6771
SELECT - 83 + + ( - 34 ) * - CAST( NULL AS SIGNED ) / + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT - 83 + + ( - 34 ) * - CAST ( NULL AS INTEGER ) / + + 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT DISTINCT CAST( - 31 AS SIGNED ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT CAST ( - 31 AS INTEGER ) AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6773
SELECT ALL + 2 / + COUNT( * ) + - CAST( NULL AS SIGNED ) + + + ( + CAST( NULL AS SIGNED ) ) * COUNT( * ) * 21 + 88 * + 20 + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL + 2 / + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + + ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * 21 + 88 * + 20 + 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6774
SELECT + + CAST( NULL AS SIGNED ) * - 61 * + + 68 + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT + + CAST ( NULL AS INTEGER ) * - 61 * + + 68 + + 93
----
NULL

query I rowsort
SELECT + 66 * + 79
----
5214

query I rowsort
SELECT - 10 * + 43 AS col0
----
-430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6777
SELECT ALL - 99 DIV 32 * 67 * 71 + - 50 + + COUNT( * ) + + 3 AS col2
----
-14317

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL - 99 / 32 * 67 * 71 + - 50 + + COUNT ( * ) + + 3 AS col2
----
-14317

query I rowsort
SELECT DISTINCT + 94 * - 97 AS col2
----
-9118

onlyif mysql # DIV for integer division: 
query II rowsort label-6779
SELECT + - 35 DIV 91 + + + 33, + 54 * 40 + 83 + 64 AS col0
----
33
2307

skipif mysql # not compatible
query II rowsort label-6779
SELECT + - 35 / 91 + + + 33, + 54 * 40 + 83 + 64 AS col0
----
33
2307

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT ALL + + SUM( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL + + SUM ( - 55 )
----
-55

query I rowsort
SELECT + - 56 + + 50
----
-6

query I rowsort
SELECT ALL + + 20 * 22 AS col0
----
440

onlyif mysql # DIV for integer division: 
query I rowsort label-6783
SELECT ALL - + 8 DIV + 17 + - ( NULLIF ( - + 95, + 10 + 12 ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL - + 8 / + 17 + - ( NULLIF ( - + 95, + 10 + 12 ) ) AS col2
----
95

query I rowsort
SELECT DISTINCT - 68 + - + 45
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT - COUNT( * ) + 9 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6785
SELECT - COUNT ( * ) + 9 AS col1
----
8

query I rowsort
SELECT 29 * - 57 AS col1
----
-1653

query I rowsort
SELECT DISTINCT - 18 * + - 99 AS col1
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT + SUM( DISTINCT - + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-6788
SELECT + SUM ( DISTINCT - + 35 )
----
-35

query I rowsort
SELECT DISTINCT - + NULLIF ( + - 2, + 22 / 7 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT ALL + 85 * - 16 + - SUM( ALL - - 1 ) * + + 80 col1
----
-1440

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL + 85 * - 16 + - SUM ( ALL - - 1 ) * + + 80 col1
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ALL COUNT( * ) - - 2 * + - 62 * 53 AS col1
----
-6571

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL COUNT ( * ) - - 2 * + - 62 * 53 AS col1
----
-6571

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT ALL - 51 - - COUNT( * ) AS col1, 78 AS col0
----
-50
78

skipif mysql # not compatible
query II rowsort label-6792
SELECT ALL - 51 - - COUNT ( * ) AS col1, 78 AS col0
----
-50
78

query I rowsort
SELECT ( + 65 ) * - + CASE 0 WHEN + + 74 THEN + 1 END + - 4 * + + 80
----
NULL

query I rowsort
SELECT ALL ( - 21 ) * + 19 AS col0
----
-399

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT 54 DIV + 51
----
1

skipif mysql # not compatible
query I rowsort label-6795
SELECT 54 / + 51
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6796
SELECT ( + 36 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT ( + 36 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT 73 * MIN( 25 )
----
1825

skipif mysql # not compatible
query I rowsort label-6797
SELECT 73 * MIN ( 25 )
----
1825

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT 80 DIV - 20
----
-4

skipif mysql # not compatible
query I rowsort label-6798
SELECT 80 / - 20
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT DISTINCT + 79 DIV + - NULLIF ( + - 6, + + 98 )
----
13

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT + 79 / + - NULLIF ( + - 6, + + 98 )
----
13

query I rowsort
SELECT ALL + 61 + - - 34
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT 70 DIV 54 * - + 23 * - - 88 * - + 22 AS col1
----
44528

skipif mysql # not compatible
query I rowsort label-6801
SELECT 70 / 54 * - + 23 * - - 88 * - + 22 AS col1
----
44528

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL + 16 + - CASE 89 WHEN + - 26 * MAX( - 79 ) - 72 THEN - 7 WHEN - 58 * - 67 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL + 16 + - CASE 89 WHEN + - 26 * MAX ( - 79 ) - 72 THEN - 7 WHEN - 58 * - 67 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6803
SELECT ALL - 61 + - 66 - COUNT( * ) DIV - - 25 * COUNT( * ) DIV - + 10
----
-127

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - 61 + - 66 - COUNT ( * ) / - - 25 * COUNT ( * ) / - + 10
----
-127

query I rowsort
SELECT DISTINCT + 98 + - + 27 + + ( + 89 ) + + 73 * + 61 * + 63 * - 2
----
-560918

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL + 89 * - COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL + 89 * - COUNT ( * ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ALL - SUM( - 54 ) + 28 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL - SUM ( - 54 ) + 28 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT MAX( - 85 ) * - + 51 AS col0
----
4335

skipif mysql # not compatible
query I rowsort label-6807
SELECT MAX ( - 85 ) * - + 51 AS col0
----
4335

query I rowsort
SELECT + 35 - 85
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6809
SELECT ALL - - 55 - - 42 + - 99 DIV 19 - + 33 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL - - 55 - - 42 + - 99 / 19 - + 33 AS col0
----
59

query I rowsort
SELECT ALL + 80 * + 67 + - - 24
----
5384

query I rowsort
SELECT - 24 * + 60 AS col0
----
-1440

query I rowsort
SELECT + + 10 col2
----
10

query I rowsort
SELECT ALL + 89 * - - 8 * + 58 * + 91 AS col2
----
3757936

query II rowsort
SELECT ALL - - ( 22 ), - 66 AS col0
----
22
-66

query I rowsort
SELECT 54 - + ( + 82 ) AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6816
SELECT - ( - COUNT( * ) ) * 24 + 60 DIV + 44 + 34
----
59

skipif mysql # not compatible
query I rowsort label-6816
SELECT - ( - COUNT ( * ) ) * 24 + 60 / + 44 + 34
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT COUNT( * ) * + + 18
----
18

skipif mysql # not compatible
query I rowsort label-6817
SELECT COUNT ( * ) * + + 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT 38 + - 0 + + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6818
SELECT 38 + - 0 + + COUNT ( * ) AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6819
SELECT CAST( - 8 AS SIGNED ) * - + 13 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-6819
SELECT CAST ( - 8 AS INTEGER ) * - + 13 AS col0
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6820
SELECT ALL 26 + - CAST( NULL AS SIGNED ) / + 32 - 87 + + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL 26 + - CAST ( NULL AS INTEGER ) / + 32 - 87 + + 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT CASE + CASE - 83 WHEN + NULLIF ( + 53, + SUM( - 93 ) ) THEN - ( + 68 ) WHEN 43 * + 47 THEN NULL ELSE - 48 END WHEN + 3 THEN - - 25 WHEN 47 THEN + COUNT( * ) END + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6821
SELECT CASE + CASE - 83 WHEN + NULLIF ( + 53, + SUM ( - 93 ) ) THEN - ( + 68 ) WHEN 43 * + 47 THEN NULL ELSE - 48 END WHEN + 3 THEN - - 25 WHEN 47 THEN + COUNT ( * ) END + + 23
----
NULL

query I rowsort
SELECT ALL 2 + + 26 AS col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT 63 + - 32 - ( + - COUNT( ALL + 90 ) ), 98 AS col2
----
32
98

skipif mysql # not compatible
query II rowsort label-6823
SELECT 63 + - 32 - ( + - COUNT ( ALL + 90 ) ), 98 AS col2
----
32
98

query I rowsort
SELECT DISTINCT 72 * - 98 col0
----
-7056

query I rowsort
SELECT DISTINCT 31 + + 29 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT SUM( ALL + 16 ) + - - 20 col1
----
36

skipif mysql # not compatible
query I rowsort label-6826
SELECT SUM ( ALL + 16 ) + - - 20 col1
----
36

query I rowsort
SELECT ALL 66 + 57
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT DISTINCT 25 + - + 76 DIV - 23
----
28

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT 25 + - + 76 / - 23
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6829
SELECT - 52 col2, - COALESCE ( 34, CAST( NULL AS SIGNED ), - 26 * + - 4 - - COUNT( * ) + + 13 )
----
-52
-34

skipif mysql # not compatible
query II rowsort label-6829
SELECT - 52 col2, - COALESCE ( 34, CAST ( NULL AS INTEGER ), - 26 * + - 4 - - COUNT ( * ) + + 13 )
----
-52
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT 63 * + COUNT( * ) col2
----
63

skipif mysql # not compatible
query I rowsort label-6830
SELECT 63 * + COUNT ( * ) col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6831
SELECT CASE + - 51 WHEN + + 66 DIV 80 + + + 54 DIV + 84 THEN NULL WHEN - + COUNT( * ) + + 69 THEN NULL ELSE COUNT( * ) DIV + 85 END * - - 99 AS col1, 93
----
0
93

skipif mysql # not compatible
query II rowsort label-6831
SELECT CASE + - 51 WHEN + + 66 / 80 + + + 54 / + 84 THEN NULL WHEN - + COUNT ( * ) + + 69 THEN NULL ELSE COUNT ( * ) / + 85 END * - - 99 AS col1, 93
----
0
93

query I rowsort
SELECT 8 + + 88
----
96

query II rowsort
SELECT 80 AS col1, - 78 AS col1
----
80
-78

query I rowsort
SELECT + 66 + + 19
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL - COUNT( * ) + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT + 5 + - ( - 20 ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6837
SELECT ( + CASE 23 WHEN - 9 THEN - NULLIF ( + 12, - 30 ) WHEN + - 40 THEN - + COALESCE ( 7, - 67 * + - CASE 22 WHEN + MAX( ALL + 24 ) * - - 62 THEN NULL ELSE - 69 / - + 63 * ( + 6 ) * MAX( ALL - ( - CAST( NULL AS SIGNED ) ) ) + - 94 END ) + + 87 * + ( + 97 ) * 81 ELSE NULL END ) + - 22 * ( - ( - 17 ) ) + AVG ( ALL - + 8 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT ( + CASE 23 WHEN - 9 THEN - NULLIF ( + 12, - 30 ) WHEN + - 40 THEN - + COALESCE ( 7, - 67 * + - CASE 22 WHEN + MAX ( ALL + 24 ) * - - 62 THEN NULL ELSE - 69 / - + 63 * ( + 6 ) * MAX ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) + - 94 END ) + + 87 * + ( + 97 ) * 81 ELSE NULL END ) + - 22 * ( - ( - 17 ) ) + AVG ( ALL - + 8 ) col0
----
NULL

query I rowsort
SELECT DISTINCT + - 82 * + 52
----
-4264

query I rowsort
SELECT DISTINCT + 69 * + 82 * 8 * 92 - - 98 - + - COALESCE ( - 59, 29 + - 33, - 68 ) AS col2
----
4164327

query I rowsort
SELECT ALL + + ( + 23 ) AS col1
----
23

query I rowsort
SELECT + + ( - + 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT - - 29 * + + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6842
SELECT - - 29 * + + COUNT ( * ) AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6843
SELECT - - 24 * - CAST( - 30 AS SIGNED )
----
720

skipif mysql # not compatible
query I rowsort label-6843
SELECT - - 24 * - CAST ( - 30 AS INTEGER )
----
720

query I rowsort
SELECT - 31 + - 82
----
-113

query I rowsort
SELECT ALL + - ( + 13 ) AS col2
----
-13

query I rowsort
SELECT - 44 + - 29 + - 38 + - 89
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL + - SUM( ALL 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL + - SUM ( ALL 85 )
----
-85

query II rowsort
SELECT ALL + 7, + 98 AS col1
----
7
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6849
SELECT DISTINCT - 35 * + 33 - - + 36 * - NULLIF ( + 71, + COUNT( * ) ), + 80 col2
----
-3711
80

skipif mysql # not compatible
query II rowsort label-6849
SELECT DISTINCT - 35 * + 33 - - + 36 * - NULLIF ( + 71, + COUNT ( * ) ), + 80 col2
----
-3711
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6850
SELECT + CAST( + 85 AS SIGNED ) * 55 + + 7 + - 55 col2
----
4627

skipif mysql # not compatible
query I rowsort label-6850
SELECT + CAST ( + 85 AS INTEGER ) * 55 + + 7 + - 55 col2
----
4627

query I rowsort
SELECT - 62 * + + 1 AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6852
SELECT - 68 + - COUNT( * ) - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT - 68 + - COUNT ( * ) - - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( + 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6854
SELECT + COALESCE ( + 20, - + 8 + COUNT( * ) * - - 48 ) + - + 59 AS col1, + 77 * + - 57
----
-39
-4389

skipif mysql # not compatible
query II rowsort label-6854
SELECT + COALESCE ( + 20, - + 8 + COUNT ( * ) * - - 48 ) + - + 59 AS col1, + 77 * + - 57
----
-39
-4389

onlyif mysql # DIV for integer division: 
query I rowsort label-6855
SELECT - 14 DIV 71 * - 12 * + 99 * + 24 col1
----
0

skipif mysql # not compatible
query I rowsort label-6855
SELECT - 14 / 71 * - 12 * + 99 * + 24 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL 6 * COUNT( * ) + 41 * 82 AS col1
----
3368

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL 6 * COUNT ( * ) + 41 * 82 AS col1
----
3368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6857
SELECT ALL - MAX( + CAST( NULL AS SIGNED ) ) * + + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL - MAX ( + CAST ( NULL AS INTEGER ) ) * + + 56 AS col1
----
NULL

query I rowsort
SELECT ALL + ( - + 25 ) AS col1
----
-25

query I rowsort
SELECT DISTINCT 80 * - 80 + - 72
----
-6472

query I rowsort
SELECT ALL - 61 + + 97 + + 82 + + 65
----
183

query I rowsort
SELECT ALL CASE - ( - - 14 ) WHEN + - 97 + + 40 THEN + 71 END + - - 16 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6862
SELECT ALL ( COUNT( * ) ), + 70 DIV 50
----
1
1

skipif mysql # not compatible
query II rowsort label-6862
SELECT ALL ( COUNT ( * ) ), + 70 / 50
----
1
1

query II rowsort
SELECT - 47 AS col2, 39 * + 98
----
-47
3822

query II rowsort
SELECT 71, + 93 AS col2
----
71
93

query I rowsort
SELECT DISTINCT 77 + 13 AS col2
----
90

query I rowsort
SELECT ALL 54 * - - 98
----
5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6867
SELECT + - COUNT( * ) + + COUNT( * ) + 24 * CAST( - COUNT( * ) AS SIGNED ) + - COUNT( DISTINCT 55 ), + 85 AS col0
----
-25
85

skipif mysql # not compatible
query II rowsort label-6867
SELECT + - COUNT ( * ) + + COUNT ( * ) + 24 * CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( DISTINCT 55 ), + 85 AS col0
----
-25
85

query I rowsort
SELECT + 3 * - 83 AS col1
----
-249

query I rowsort
SELECT ALL 43 * + 19
----
817

onlyif mysql # aggregate syntax: 
query II rowsort label-6870
SELECT 60 AS col2, + 50 + - MIN( - 83 )
----
60
133

skipif mysql # not compatible
query II rowsort label-6870
SELECT 60 AS col2, + 50 + - MIN ( - 83 )
----
60
133

query I rowsort
SELECT ALL + 63 * - 96 * + ( - + 22 ) + + 16 AS col0
----
133072

onlyif mysql # aggregate syntax: 
query II rowsort label-6872
SELECT - - 24, SUM( - + 34 ) + - - 79 AS col2
----
24
45

skipif mysql # not compatible
query II rowsort label-6872
SELECT - - 24, SUM ( - + 34 ) + - - 79 AS col2
----
24
45

query I rowsort
SELECT ALL NULLIF ( + 83, + + 58 )
----
83

query I rowsort
SELECT ALL - - 18 - + 46
----
-28

query I rowsort
SELECT + + 19 * 27 * + + 72
----
36936

query I rowsort
SELECT ALL + 13 * - 29 - - - 23 AS col1
----
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6877
SELECT + COALESCE ( + - 58, - 76 + + 16 + SUM( ALL 55 ) + + + 23 * - 93 * + 58 + + 47 * - - 72 + + + CASE + - ( - 20 ) WHEN 93 * - 27 * 24 * 23 THEN - COUNT( * ) - 87 DIV + 19 ELSE + - 11 END ) DIV + - CASE - - CAST( NULL AS SIGNED ) WHEN COUNT( * ) + - - ( + 56 ) + - NULLIF ( + 74, - 74 ) THEN NULL WHEN + 84 + - - 87 * 7 THEN NULL ELSE - 61 END * - + COALESCE ( - + 52, COUNT( * ) ) + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6877
SELECT + COALESCE ( + - 58, - 76 + + 16 + SUM ( ALL 55 ) + + + 23 * - 93 * + 58 + + 47 * - - 72 + + + CASE + - ( - 20 ) WHEN 93 * - 27 * 24 * 23 THEN - COUNT ( * ) - 87 / + 19 ELSE + - 11 END ) / + - CASE - - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + - - ( + 56 ) + - NULLIF ( + 74, - 74 ) THEN NULL WHEN + 84 + - - 87 * 7 THEN NULL ELSE - 61 END * - + COALESCE ( - + 52, COUNT ( * ) ) + 54 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT + COUNT( * ) + ( - + COUNT( ALL 85 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6878
SELECT + COUNT ( * ) + ( - + COUNT ( ALL 85 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT + COUNT( * ) + + ( 93 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6879
SELECT + COUNT ( * ) + + ( 93 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL - 98 * - NULLIF ( - + 38, - 89 ) + - - 85 + - 46 * - 85 * - COUNT( * )
----
-7549

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL - 98 * - NULLIF ( - + 38, - 89 ) + - - 85 + - 46 * - 85 * - COUNT ( * )
----
-7549

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - + 17 * COUNT( * ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-6881
SELECT - + 17 * COUNT ( * ) col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT ALL 13 DIV - 35 + - - 70
----
70

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL 13 / - 35 + - - 70
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6883
SELECT + - 48 + 52 + - COALESCE ( + COUNT( ALL + - 59 ), - - CASE - 85 WHEN - - COUNT( * ) THEN NULL ELSE - 53 + - 54 DIV + + SUM( 73 ) * + + 5 END ) * - 23, 16 * - 61 col0
----
27
-976

skipif mysql # not compatible
query II rowsort label-6883
SELECT + - 48 + 52 + - COALESCE ( + COUNT ( ALL + - 59 ), - - CASE - 85 WHEN - - COUNT ( * ) THEN NULL ELSE - 53 + - 54 / + + SUM ( 73 ) * + + 5 END ) * - 23, 16 * - 61 col0
----
27
-976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6884
SELECT - 27 - - 90 + + CAST( NULL AS SIGNED ), COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6884
SELECT - 27 - - 90 + + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT - 44 * 7 * + 59
----
-18172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6886
SELECT + 56 - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6886
SELECT + 56 - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
55

query I rowsort
SELECT ( 48 ) col0
----
48

query II rowsort
SELECT ALL 33 * - 79 + - 48 AS col2, - 28
----
-2655
-28

query II rowsort
SELECT ALL 97 * 23 AS col1, - 55 col0
----
2231
-55

query I rowsort
SELECT ALL + ( 84 ) col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6891
SELECT DISTINCT 14 * - 35 + CAST( NULL AS DECIMAL ) + 78 * + + 16 * + MAX( ALL + 24 ) * NULLIF ( - - 42, 86 + + + 70 * + - 72 ) - 14 - - + ( - + 23 ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT 14 * - 35 + CAST ( NULL AS REAL ) + 78 * + + 16 * + MAX ( ALL + 24 ) * NULLIF ( - - 42, 86 + + + 70 * + - 72 ) - 14 - - + ( - + 23 ) * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6892
SELECT DISTINCT + CAST( ( - + COUNT( * ) ) AS SIGNED ) AS col1, - COUNT( * ) * + 5
----
-1
-5

skipif mysql # not compatible
query II rowsort label-6892
SELECT DISTINCT + CAST ( ( - + COUNT ( * ) ) AS INTEGER ) AS col1, - COUNT ( * ) * + 5
----
-1
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT + COUNT( ALL + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-6893
SELECT + COUNT ( ALL + 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT - COUNT( * ) + + COUNT( * ) + 23
----
23

skipif mysql # not compatible
query I rowsort label-6894
SELECT - COUNT ( * ) + + COUNT ( * ) + 23
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-6895
SELECT NULLIF ( - COUNT( * ), + 4 ), 55 * + COUNT( * ) AS col1
----
-1
55

skipif mysql # not compatible
query II rowsort label-6895
SELECT NULLIF ( - COUNT ( * ), + 4 ), 55 * + COUNT ( * ) AS col1
----
-1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT - COUNT( * ) * - - 62 * - ( + 38 ) AS col0
----
2356

skipif mysql # not compatible
query I rowsort label-6896
SELECT - COUNT ( * ) * - - 62 * - ( + 38 ) AS col0
----
2356

query I rowsort
SELECT + 48 * + 7 AS col0
----
336

query II rowsort
SELECT DISTINCT + 40 * + 39, 63 * + + 9 col1
----
1560
567

query I rowsort
SELECT - - 39 + - - 83 + + 46 * - - 89 AS col2
----
4216

query II rowsort
SELECT ALL - 34 * - 68, 32 AS col0
----
2312
32

query I rowsort
SELECT 39 + + 7 AS col2
----
46

query I rowsort
SELECT - ( - - 31 ) + + 61
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT - ( - 84 ) * + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-6903
SELECT - ( - 84 ) * + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6904
SELECT 31 + ( - 56 ) * 64 DIV + MAX( + + 92 ) + + 16 * 22
----
345

skipif mysql # not compatible
query I rowsort label-6904
SELECT 31 + ( - 56 ) * 64 / + MAX ( + + 92 ) + + 16 * 22
----
345

query II rowsort
SELECT ALL 34 * 11 col2, 33 - - 44
----
374
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT - SUM( - - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-6906
SELECT - SUM ( - - 43 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6907
SELECT + 13 * + ( - - 62 ) + - CAST( NULL AS SIGNED ) * - + 86 * - 96 * - CASE + - ( + 52 ) WHEN + - 40 - - 94 THEN + + 79 + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT + 13 * + ( - - 62 ) + - CAST ( NULL AS INTEGER ) * - + 86 * - 96 * - CASE + - ( + 52 ) WHEN + - 40 - - 94 THEN + + 79 + + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - CASE + + 68 WHEN - 54 + + AVG ( DISTINCT - 53 ) THEN + 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT ALL - 57 * - COUNT( * ) - + 76 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL - 57 * - COUNT ( * ) - + 76 AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6910
SELECT 88 DIV 37 + + MIN( - 77 )
----
-75

skipif mysql # not compatible
query I rowsort label-6910
SELECT 88 / 37 + + MIN ( - 77 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ALL MAX( DISTINCT + 17 ) + - + 7 - + + 89 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL MAX ( DISTINCT + 17 ) + - + 7 - + + 89 AS col2
----
-79

query I rowsort
SELECT - 62 + - 68 * + 21 + + 75
----
-1415

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6913
SELECT - 76 DIV + 21 + CAST( + + 23 AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6913
SELECT - 76 / + 21 + CAST ( + + 23 AS INTEGER ) AS col0
----
20

query I rowsort
SELECT ALL + 75 + 6 AS col1
----
81

query I rowsort
SELECT 54 + - - 83
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6916
SELECT ALL 3 DIV MAX( DISTINCT + 73 ) * + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL 3 / MAX ( DISTINCT + 73 ) * + 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT ALL ( 84 ) + - 19 + - COALESCE ( - 89, + COUNT( 91 ), + CASE COUNT( DISTINCT + 71 ) WHEN + 20 THEN + 83 + + 2 ELSE NULL END )
----
154

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL ( 84 ) + - 19 + - COALESCE ( - 89, + COUNT ( 91 ), + CASE COUNT ( DISTINCT + 71 ) WHEN + 20 THEN + 83 + + 2 ELSE NULL END )
----
154

query II rowsort
SELECT ALL - 38 col0, - 73 AS col0
----
-38
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL - CASE + 54 WHEN - - COUNT( * ) - + + COUNT( * ) THEN + 58 END + + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL - CASE + 54 WHEN - - COUNT ( * ) - + + COUNT ( * ) THEN + 58 END + + - 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6920
SELECT 96 col2, + COUNT( * )
----
96
1

skipif mysql # not compatible
query II rowsort label-6920
SELECT 96 col2, + COUNT ( * )
----
96
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6921
SELECT + NULLIF ( + + 44, + COUNT( * ) ) * - 46 * + CAST( - 88 AS SIGNED ) + 27
----
178139

skipif mysql # not compatible
query I rowsort label-6921
SELECT + NULLIF ( + + 44, + COUNT ( * ) ) * - 46 * + CAST ( - 88 AS INTEGER ) + 27
----
178139

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL + 98 - - 61 - - 18 + + COUNT( * )
----
178

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL + 98 - - 61 - - 18 + + COUNT ( * )
----
178

query II rowsort
SELECT + 92 AS col1, 51 AS col1
----
92
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT 71 * MIN( 64 ) + - ( - 15 ) + - + MAX( DISTINCT - 50 ) * - COUNT( - 2 ) col0
----
4509

skipif mysql # not compatible
query I rowsort label-6924
SELECT 71 * MIN ( 64 ) + - ( - 15 ) + - + MAX ( DISTINCT - 50 ) * - COUNT ( - 2 ) col0
----
4509

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT ALL - MAX( 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL - MAX ( 99 )
----
-99

query II rowsort
SELECT DISTINCT 42 * - 3 * + 78 col2, + 34 + COALESCE ( - - 43, + 12 * 49, + 27 )
----
-9828
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT ALL 1 - - 96 DIV + - 79
----
0

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL 1 - - 96 / + - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT ALL - SUM( + - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL - SUM ( + - 75 )
----
75

query I rowsort
SELECT 14 * + 65 * 40 AS col1
----
36400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6930
SELECT + 64 AS col1, - CAST( NULL AS SIGNED )
----
64
NULL

skipif mysql # not compatible
query II rowsort label-6930
SELECT + 64 AS col1, - CAST ( NULL AS INTEGER )
----
64
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6931
SELECT + 61 / - + 61 / CASE 26 WHEN - 43 THEN + ( - CASE - 86 WHEN ( - CAST( NULL AS SIGNED ) ) * + - 22 THEN 72 WHEN - 29 - - + 63 * - NULLIF ( - AVG ( ALL - + 36 ), - 77 ) THEN NULL WHEN 49 * 89 + 43 + + + 40 THEN + 45 END ) * CASE + - 91 WHEN - SUM( DISTINCT + 19 ) + COUNT( * ) THEN + 80 WHEN 98 THEN NULL ELSE NULL END + + - 73 - - NULLIF ( + ( - 21 ), + 86 / - COUNT( * ) / + + 42 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6931
SELECT + 61 / - + 61 / CASE 26 WHEN - 43 THEN + ( - CASE - 86 WHEN ( - CAST ( NULL AS INTEGER ) ) * + - 22 THEN 72 WHEN - 29 - - + 63 * - NULLIF ( - AVG ( ALL - + 36 ), - 77 ) THEN NULL WHEN 49 * 89 + 43 + + + 40 THEN + 45 END ) * CASE + - 91 WHEN - SUM ( DISTINCT + 19 ) + COUNT ( * ) THEN + 80 WHEN 98 THEN NULL ELSE NULL END + + - 73 - - NULLIF ( + ( - 21 ), + 86 / - COUNT ( * ) / + + 42 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6932
SELECT DISTINCT + 64 * - CAST( + SUM( + + 89 ) AS SIGNED )
----
-5696

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT + 64 * - CAST ( + SUM ( + + 89 ) AS INTEGER )
----
-5696

onlyif mysql # aggregate syntax: 
query II rowsort label-6933
SELECT 46 * 12 + + MIN( - + 33 ) AS col0, 83
----
519
83

skipif mysql # not compatible
query II rowsort label-6933
SELECT 46 * 12 + + MIN ( - + 33 ) AS col0, 83
----
519
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6934
SELECT 64 * - 85 / - CAST( NULL AS DECIMAL ) * - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT 64 * - 85 / - CAST ( NULL AS REAL ) * - 37 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6935
SELECT ALL 54 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL 54 / + 50
----
1

query II rowsort
SELECT - - 56, + 58 col0
----
56
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6937
SELECT 44 DIV + - 5
----
-8

skipif mysql # not compatible
query I rowsort label-6937
SELECT 44 / + - 5
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6938
SELECT - COALESCE ( + 81, - + 22, - 91 - 20 * - CASE - - 12 WHEN 8 THEN + + 46 ELSE NULL END * + COUNT( * ) * - + 10 * 71 - - - 33 ) AS col2, CAST( + - 70 AS SIGNED ) + ( - CAST( - ( ( + ( - 19 ) ) ) AS SIGNED ) ) col2
----
-81
-89

skipif mysql # not compatible
query II rowsort label-6938
SELECT - COALESCE ( + 81, - + 22, - 91 - 20 * - CASE - - 12 WHEN 8 THEN + + 46 ELSE NULL END * + COUNT ( * ) * - + 10 * 71 - - - 33 ) AS col2, CAST ( + - 70 AS INTEGER ) + ( - CAST ( - ( ( + ( - 19 ) ) ) AS INTEGER ) ) col2
----
-81
-89

query I rowsort
SELECT ALL - 46 + + 34 AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6940
SELECT DISTINCT - - ( + 5 ) + + 78 - + 72 + - NULLIF ( ( + 28 ), - - 32 * 35 - 65 ) DIV - - 13 col0
----
9

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT - - ( + 5 ) + + 78 - + 72 + - NULLIF ( ( + 28 ), - - 32 * 35 - 65 ) / - - 13 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT SUM( DISTINCT + + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6941
SELECT SUM ( DISTINCT + + 93 ) AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6942
SELECT ALL COUNT( * ) * + CAST( 61 AS SIGNED ) * 92 DIV - + ( 32 ) + + CAST( 29 AS SIGNED ) + + - 8 AS col2, + COALESCE ( - 57, 59 * + ( - 89 ) )
----
-154
-57

skipif mysql # not compatible
query II rowsort label-6942
SELECT ALL COUNT ( * ) * + CAST ( 61 AS INTEGER ) * 92 / - + ( 32 ) + + CAST ( 29 AS INTEGER ) + + - 8 AS col2, + COALESCE ( - 57, 59 * + ( - 89 ) )
----
-154
-57

query I rowsort
SELECT DISTINCT + 57 * - - 93
----
5301

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT MAX( DISTINCT + 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6944
SELECT MAX ( DISTINCT + 9 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT MAX( ALL 36 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-6945
SELECT MAX ( ALL 36 ) col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6946
SELECT CAST( NULL AS SIGNED ) * - - 20 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT CAST ( NULL AS INTEGER ) * - - 20 * - + COUNT ( * )
----
NULL

query I rowsort
SELECT + 99 * 64 * + 28 * + 32 - 93 AS col1
----
5676963

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6948
SELECT DISTINCT COALESCE ( + - 0, + 28 * - + 57 - COALESCE ( - + 23, 37 + - AVG ( ALL - - 9 ) ) + + 62 ) DIV + NULLIF ( + COUNT( * ), - - 59 * - - 10 ) - - + 14
----
14

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT COALESCE ( + - 0, + 28 * - + 57 - COALESCE ( - + 23, 37 + - AVG ( ALL - - 9 ) ) + + 62 ) / + NULLIF ( + COUNT ( * ), - - 59 * - - 10 ) - - + 14
----
14

query I rowsort
SELECT + 71 * - 7 AS col2
----
-497

query I rowsort
SELECT ALL - ( + 94 ) * + + 92 * - 2
----
17296

onlyif mysql # DIV for integer division: 
query I rowsort label-6951
SELECT + 89 DIV + ( + 40 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6951
SELECT + 89 / + ( + 40 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT + 42 * COUNT( * ) + + 47
----
89

skipif mysql # not compatible
query I rowsort label-6952
SELECT + 42 * COUNT ( * ) + + 47
----
89

query I rowsort
SELECT + NULLIF ( 11, 30 ) + + 11 + + + 6 AS col2
----
28

query I rowsort
SELECT - 3 * + + 82 - + 52 AS col2
----
-298

query I rowsort
SELECT ALL + + ( + - 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT - ( 59 ) * + COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-6956
SELECT - ( 59 ) * + COUNT ( * ) AS col2
----
-59

query I rowsort
SELECT ALL + 82 + - 94 AS col1
----
-12

query I rowsort
SELECT + - 71 + + + 10
----
-61

query I rowsort
SELECT ALL + 1 + + 58 col2
----
59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6960
SELECT - CAST( NULL AS SIGNED ) * - CAST( - 57 AS DECIMAL ) - CAST( - 50 AS SIGNED ) + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( - 57 AS REAL ) - CAST ( - 50 AS INTEGER ) + - 98
----
NULL

query II rowsort
SELECT ALL ( + 5 ) + 11 * - 77 AS col1, - 15 * + 34
----
-842
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT - 99 + 21 + - 11 * - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-6962
SELECT - 99 + 21 + - 11 * - COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT ALL - COUNT( * ) + 86
----
85

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL - COUNT ( * ) + 86
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6964
SELECT ALL - SUM( ALL 78 ) AS col0, - COUNT( * ) * + - 82 * - 88
----
-78
-7216

skipif mysql # not compatible
query II rowsort label-6964
SELECT ALL - SUM ( ALL 78 ) AS col0, - COUNT ( * ) * + - 82 * - 88
----
-78
-7216

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT - - 13 * + 70 - - + COUNT( * )
----
911

skipif mysql # not compatible
query I rowsort label-6965
SELECT - - 13 * + 70 - - + COUNT ( * )
----
911

query I rowsort
SELECT DISTINCT + 8 + - - 29
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT - + MIN( - 21 ) + + + 31 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6967
SELECT - + MIN ( - 21 ) + + + 31 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6968
SELECT ALL - 58 * 59 * ( - - CASE WHEN 12 IS NULL THEN + COUNT( DISTINCT + CAST( - + 88 AS SIGNED ) ) END ) * - 70 * - COUNT( ALL 35 ) * + 68 + + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL - 58 * 59 * ( - - CASE WHEN 12 IS NULL THEN + COUNT ( DISTINCT + CAST ( - + 88 AS INTEGER ) ) END ) * - 70 * - COUNT ( ALL 35 ) * + 68 + + - 71
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6969
SELECT - 15 DIV MIN( DISTINCT + 84 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6969
SELECT - 15 / MIN ( DISTINCT + 84 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6970
SELECT ALL - CAST( NULL AS SIGNED ) + + 38 / - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL - CAST ( NULL AS INTEGER ) + + 38 / - 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6971
SELECT DISTINCT 14 DIV - 96 * - COUNT( * ) AS col1, - MIN( DISTINCT - + 59 ) AS col1
----
0
59

skipif mysql # not compatible
query II rowsort label-6971
SELECT DISTINCT 14 / - 96 * - COUNT ( * ) AS col1, - MIN ( DISTINCT - + 59 ) AS col1
----
0
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT - MAX( ALL + 29 ) + + - 62 + + 94 * - CASE 95 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + MIN( DISTINCT - 12 ) + + 35 END + - - 78
----
-2175

skipif mysql # not compatible
query I rowsort label-6972
SELECT - MAX ( ALL + 29 ) + + - 62 + + 94 * - CASE 95 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + MIN ( DISTINCT - 12 ) + + 35 END + - - 78
----
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT - ( COUNT( 6 ) ) - + - 3 + + MAX( - ( - 46 ) )
----
48

skipif mysql # not compatible
query I rowsort label-6973
SELECT - ( COUNT ( 6 ) ) - + - 3 + + MAX ( - ( - 46 ) )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT - 38 DIV 64 * + 63 * + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT - 38 / 64 * + 63 * + 78 AS col0
----
0

query I rowsort
SELECT - 49 * + + 96 * - 19
----
89376

query I rowsort
SELECT - 55 + + 0 AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6977
SELECT + COALESCE ( - ( + COUNT( * ) ), + 82 ) DIV - - 30 - 25 + 47 + + - 14 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6977
SELECT + COALESCE ( - ( + COUNT ( * ) ), + 82 ) / - - 30 - 25 + 47 + + - 14 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6978
SELECT ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6978
SELECT ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( + 78, + + 56 - - 79 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT - COUNT( * ) + 85
----
84

skipif mysql # not compatible
query I rowsort label-6980
SELECT - COUNT ( * ) + 85
----
84

query I rowsort
SELECT ALL ( + 35 ) * + 44
----
1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT 99 * - CAST( NULL AS SIGNED ) + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT 99 * - CAST ( NULL AS INTEGER ) + 47 AS col1
----
NULL

query I rowsort
SELECT + 48 * + 90
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT ALL + COUNT( * ) * + 71 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL + COUNT ( * ) * + 71 AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6985
SELECT 36 / + CAST( NULL AS SIGNED ) + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6985
SELECT 36 / + CAST ( NULL AS INTEGER ) + + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT + COUNT( + 90 )
----
1

skipif mysql # not compatible
query I rowsort label-6986
SELECT + COUNT ( + 90 )
----
1

query I rowsort
SELECT + 42 + + 40 * NULLIF ( - ( + 63 ), + 42 )
----
-2478

query I rowsort
SELECT - 12 * + 32 AS col2
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT 9 * + 83 * + 67 + - COUNT( * ) + - + 12 + + 83 col1
----
50119

skipif mysql # not compatible
query I rowsort label-6989
SELECT 9 * + 83 * + 67 + - COUNT ( * ) + - + 12 + + 83 col1
----
50119

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6990
SELECT ALL - - SUM( 93 ) * + 25 - - - CAST( NULL AS DECIMAL ) + - - 96 + + CAST( 45 AS DECIMAL ) * 21 + - AVG ( + - 86 ) + + - 14 * MIN( + + ( 21 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL - - SUM ( 93 ) * + 25 - - - CAST ( NULL AS REAL ) + - - 96 + + CAST ( 45 AS REAL ) * 21 + - AVG ( + - 86 ) + + - 14 * MIN ( + + ( 21 ) ) AS col1
----
NULL

query II rowsort
SELECT 25 AS col0, ( + 0 ) AS col2
----
25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT ALL - + 65 * + 6 + + COUNT( * )
----
-389

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL - + 65 * + 6 + + COUNT ( * )
----
-389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6993
SELECT + - COUNT( DISTINCT + + 9 ) - - CAST( + + 17 AS SIGNED ) + - - 77
----
93

skipif mysql # not compatible
query I rowsort label-6993
SELECT + - COUNT ( DISTINCT + + 9 ) - - CAST ( + + 17 AS INTEGER ) + - - 77
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6994
SELECT 5 AS col1, - 33 + + COUNT( * ) col1
----
5
-32

skipif mysql # not compatible
query II rowsort label-6994
SELECT 5 AS col1, - 33 + + COUNT ( * ) col1
----
5
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT + + 84 * + - CAST( + 1 AS SIGNED ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-6995
SELECT + + 84 * + - CAST ( + 1 AS INTEGER ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT ALL ( + 76 ) * 58 + + + COUNT( ALL + + ( - - 71 ) ) + - COUNT( * ) + 23 + + 79 col1
----
4510

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL ( + 76 ) * 58 + + + COUNT ( ALL + + ( - - 71 ) ) + - COUNT ( * ) + 23 + + 79 col1
----
4510

query II rowsort
SELECT - 68, - 24 AS col1
----
-68
-24

query I rowsort
SELECT + 86 - - + 66
----
152

query II rowsort
SELECT - 52 AS col2, + 67
----
-52
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7000
SELECT DISTINCT - + SUM( ALL - + 35 ) - - COALESCE ( - + MIN( - CAST( 96 AS SIGNED ) ), + - 42 - - 94 * - + 59 * + - 17 * + + 66 * ( - + 18 ) ) col1
----
131

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT - + SUM ( ALL - + 35 ) - - COALESCE ( - + MIN ( - CAST ( 96 AS INTEGER ) ), + - 42 - - 94 * - + 59 * + - 17 * + + 66 * ( - + 18 ) ) col1
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7001
SELECT ALL + CASE - - COUNT( * ) WHEN CASE - COALESCE ( 64, + 81 + + CASE - - 25 WHEN + - 56 + NULLIF ( + ( + 69 ), - COUNT( * ) ) THEN NULL WHEN - 46 + + 41 THEN NULL WHEN MAX( + 45 ) + - + 99 THEN 82 ELSE NULL END * 12 ) WHEN - CAST( + COUNT( * ) AS DECIMAL ) THEN NULL WHEN - ( 33 ) + - 23 * 87 THEN NULL ELSE + + 67 - 32 END / + NULLIF ( + - CAST( - 37 AS DECIMAL ), - 0 - + 89 ) + ( + 45 ) THEN NULL ELSE + 93 + - - ( + 75 ) / + CASE - 25 WHEN - MIN( + + 67 ) THEN + ( ( + + 43 ) ) WHEN + CAST( AVG ( + 70 ) AS SIGNED ) + NULLIF ( CASE + 22 WHEN + COUNT( 23 ) + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN - 10 END, 49 ) THEN NULL WHEN 85 * 85 THEN NULL END * - 18 - + 95 * - 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL + CASE - - COUNT ( * ) WHEN CASE - COALESCE ( 64, + 81 + + CASE - - 25 WHEN + - 56 + NULLIF ( + ( + 69 ), - COUNT ( * ) ) THEN NULL WHEN - 46 + + 41 THEN NULL WHEN MAX ( + 45 ) + - + 99 THEN 82 ELSE NULL END * 12 ) WHEN - CAST ( + COUNT ( * ) AS REAL ) THEN NULL WHEN - ( 33 ) + - 23 * 87 THEN NULL ELSE + + 67 - 32 END / + NULLIF ( + - CAST ( - 37 AS REAL ), - 0 - + 89 ) + ( + 45 ) THEN NULL ELSE + 93 + - - ( + 75 ) / + CASE - 25 WHEN - MIN ( + + 67 ) THEN + ( ( + + 43 ) ) WHEN + CAST ( AVG ( + 70 ) AS INTEGER ) + NULLIF ( CASE + 22 WHEN + COUNT ( 23 ) + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN - 10 END, 49 ) THEN NULL WHEN 85 * 85 THEN NULL END * - 18 - + 95 * - 65 END
----
NULL

query II rowsort
SELECT ALL - 86 AS col0, 23
----
-86
23

query I rowsort
SELECT ALL - 63 - + 93 AS col2
----
-156

query I rowsort
SELECT - 62 * + ( + ( + 44 ) )
----
-2728

query I rowsort
SELECT - ( + - 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7006
SELECT + COUNT( * ) + + 18 + - 75 - - 15 + - 28 DIV + 13, + CAST( NULL AS SIGNED ) DIV - + 35 AS col2
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-7006
SELECT + COUNT ( * ) + + 18 + - 75 - - 15 + - 28 / + 13, + CAST ( NULL AS INTEGER ) / - + 35 AS col2
----
-43
NULL

query I rowsort
SELECT - 14 - 12 * - 20 * - 43 * 30 AS col0
----
-309614

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT - 32 * - NULLIF ( - 98, NULLIF ( - + 10, + COUNT( + - 14 ) ) )
----
-3136

skipif mysql # not compatible
query I rowsort label-7008
SELECT - 32 * - NULLIF ( - 98, NULLIF ( - + 10, + COUNT ( + - 14 ) ) )
----
-3136

query II rowsort
SELECT - 77 AS col1, + 0 + + 58
----
-77
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT ALL MAX( 9 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL MAX ( 9 ) col0
----
9

query I rowsort
SELECT ALL 84 * 66
----
5544

query I rowsort
SELECT 98 * - 45 AS col2
----
-4410

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7013
SELECT ALL - CAST( + 80 AS SIGNED ) AS col2, + 78
----
-80
78

skipif mysql # not compatible
query II rowsort label-7013
SELECT ALL - CAST ( + 80 AS INTEGER ) AS col2, + 78
----
-80
78

query II rowsort
SELECT 20 AS col2, - 4
----
20
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT ALL + COUNT( * ) * + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL + COUNT ( * ) * + - 15
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7016
SELECT 17 DIV + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7016
SELECT 17 / + 47 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7017
SELECT COALESCE ( 43, 60 ) / + - 36 / - 15 + - CAST( NULL AS SIGNED ) * - COALESCE ( + - 14, COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT COALESCE ( 43, 60 ) / + - 36 / - 15 + - CAST ( NULL AS INTEGER ) * - COALESCE ( + - 14, COUNT ( * ) ) AS col2
----
NULL

query II rowsort
SELECT 23 * - - 71, + 75 * + + 78 col0
----
1633
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL - SUM( ALL + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL - SUM ( ALL + 88 )
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-7020
SELECT 55 AS col2, - 20 DIV + 16
----
55
-1

skipif mysql # not compatible
query II rowsort label-7020
SELECT 55 AS col2, - 20 / + 16
----
55
-1

query I rowsort
SELECT ALL - 77 + + 83
----
6

query I rowsort
SELECT ALL - 24 + + - 71 col0
----
-95

query I rowsort
SELECT ALL - - COALESCE ( + - 98, + 93 ) col0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-7024
SELECT + ( 83 ) + ( COUNT( * ) ), 20 AS col1
----
84
20

skipif mysql # not compatible
query II rowsort label-7024
SELECT + ( 83 ) + ( COUNT ( * ) ), 20 AS col1
----
84
20

query I rowsort
SELECT + ( + + 54 ) AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7026
SELECT ALL - MIN( DISTINCT 70 ) + CASE WHEN NOT ( NULL ) NOT IN ( + + 39, 46, - CAST( 0 AS SIGNED ) + + + 35, + 49 * - 22 + - - 86 + - COUNT( ALL - - ( 12 ) ) + CAST( - + 95 AS SIGNED ), + COUNT( * ) / 80, - + 69 ) THEN + 28 ELSE + - 55 - + 79 END AS col1
----
-204

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL - MIN ( DISTINCT 70 ) + CASE WHEN NOT ( NULL ) NOT IN ( + + 39, 46, - CAST ( 0 AS INTEGER ) + + + 35, + 49 * - 22 + - - 86 + - COUNT ( ALL - - ( 12 ) ) + CAST ( - + 95 AS INTEGER ), + COUNT ( * ) / 80, - + 69 ) THEN + 28 ELSE + - 55 - + 79 END AS col1
----
-204

onlyif mysql # aggregate syntax: 
query II rowsort label-7027
SELECT DISTINCT - + 12, COUNT( * ) * + 18 + - 72 * + + 1 + + COUNT( * ) col2
----
-12
-53

skipif mysql # not compatible
query II rowsort label-7027
SELECT DISTINCT - + 12, COUNT ( * ) * + 18 + - 72 * + + 1 + + COUNT ( * ) col2
----
-12
-53

query II rowsort
SELECT ALL - 52 AS col2, 45
----
-52
45

query I rowsort
SELECT 11 + + 17 + COALESCE ( + + 63, 81 ) AS col0
----
91

query I rowsort
SELECT + 56 * 81 - 87
----
4449

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT COUNT( * ) * - 28 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7031
SELECT COUNT ( * ) * - 28 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT DISTINCT - ( + COALESCE ( + - COUNT( * ), - ( - 35 ) * - ( - 30 ) - + 70 - + 75 + - - 25 * - 95 * + - 48 * 61 + + 34, - 30 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7032
SELECT DISTINCT - ( + COALESCE ( + - COUNT ( * ), - ( - 35 ) * - ( - 30 ) - + 70 - + 75 + - - 25 * - 95 * + - 48 * 61 + + 34, - 30 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT 88 + - 94 + 22 + - - 55 * - - COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7033
SELECT 88 + - 94 + 22 + - - 55 * - - COUNT ( * ) AS col0
----
71

query II rowsort
SELECT 80 + - 91 - 83 * - 74 * - 27 + + 80 col1, + 51
----
-165765
51

query I rowsort
SELECT - - COALESCE ( + + 82, + 19 )
----
82

query I rowsort
SELECT + 97 + + - 55 + + 48 col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7037
SELECT 57 DIV 62 * - + 88 + + - 78 * - ( + + COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-7037
SELECT 57 / 62 * - + 88 + + - 78 * - ( + + COUNT ( * ) )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7038
SELECT - 46 + - COUNT( * ) * - 53 DIV COUNT( * ) col2
----
7

skipif mysql # not compatible
query I rowsort label-7038
SELECT - 46 + - COUNT ( * ) * - 53 / COUNT ( * ) col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT DISTINCT + 64 * - 98 * + + MIN( ALL - + 73 ) - + 36 + + 97
----
457917

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT + 64 * - 98 * + + MIN ( ALL - + 73 ) - + 36 + + 97
----
457917

query I rowsort
SELECT DISTINCT 79 * - 63 AS col2
----
-4977

query I rowsort
SELECT 89 + - 66
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT DISTINCT 43 * - 14 * 49 * 80 * + COUNT( - 21 )
----
-2359840

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT 43 * - 14 * 49 * 80 * + COUNT ( - 21 )
----
-2359840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7043
SELECT 8 * - + ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7043
SELECT 8 * - + ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ( ( - + 65 ) ) + 43 col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT MAX( + - 36 ) * - 50
----
1800

skipif mysql # not compatible
query I rowsort label-7045
SELECT MAX ( + - 36 ) * - 50
----
1800

query I rowsort
SELECT 8 * - 97 + + 24 AS col2
----
-752

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7047
SELECT ALL + 9 + 77 AS col1, - COALESCE ( - MAX( ALL 19 ), + + MIN( 1 ), - ( + NULLIF ( + COUNT( * ), - 75 ) ) DIV 41 DIV 91 ) * 95
----
86
1805

skipif mysql # not compatible
query II rowsort label-7047
SELECT ALL + 9 + 77 AS col1, - COALESCE ( - MAX ( ALL 19 ), + + MIN ( 1 ), - ( + NULLIF ( + COUNT ( * ), - 75 ) ) / 41 / 91 ) * 95
----
86
1805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7048
SELECT - 73 DIV - MAX( DISTINCT + CAST( + 75 AS SIGNED ) ) + + 10 col0
----
10

skipif mysql # not compatible
query I rowsort label-7048
SELECT - 73 / - MAX ( DISTINCT + CAST ( + 75 AS INTEGER ) ) + + 10 col0
----
10

query I rowsort
SELECT NULLIF ( + 72, + - 20 ) + - 44
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT DISTINCT + 36 * + MAX( - 76 )
----
-2736

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT + 36 * + MAX ( - 76 )
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT DISTINCT COUNT( * ) * - + NULLIF ( 57, + 60 * + + 34 * + + 22 )
----
-57

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT COUNT ( * ) * - + NULLIF ( 57, + 60 * + + 34 * + + 22 )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7052
SELECT DISTINCT - 45 + 34 * + 26 * + - 20 * 90 DIV - 5 AS col0
----
318195

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT - 45 + 34 * + 26 * + - 20 * 90 / - 5 AS col0
----
318195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7053
SELECT 33 * MIN( DISTINCT + 98 ) col0, + COALESCE ( + 66, + - 16 + - 40 - - + 58 * + COALESCE ( - - 26, + CAST( NULL AS SIGNED ) ) - - 21 )
----
3234
66

skipif mysql # not compatible
query II rowsort label-7053
SELECT 33 * MIN ( DISTINCT + 98 ) col0, + COALESCE ( + 66, + - 16 + - 40 - - + 58 * + COALESCE ( - - 26, + CAST ( NULL AS INTEGER ) ) - - 21 )
----
3234
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT 77 + + COALESCE ( 13, - 18 ) - - + MIN( DISTINCT - - 38 )
----
128

skipif mysql # not compatible
query I rowsort label-7054
SELECT 77 + + COALESCE ( 13, - 18 ) - - + MIN ( DISTINCT - - 38 )
----
128

query I rowsort
SELECT 23 + - + 62 * - 23 AS col2
----
1449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7056
SELECT + 27 * CAST( NULL AS SIGNED ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7056
SELECT + 27 * CAST ( NULL AS INTEGER ) - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7057
SELECT ALL - - NULLIF ( - 72, + 46 * - 84 - CAST( - 30 AS DECIMAL ) ) - + - 0 DIV - 45 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL - - NULLIF ( - 72, + 46 * - 84 - CAST ( - 30 AS REAL ) ) - + - 0 / - 45 AS col2
----
-72

query I rowsort
SELECT ( + - 65 ) * + 70 AS col0
----
-4550

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT DISTINCT 16 * + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT 16 * + COUNT ( * )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT DISTINCT - + MIN( ALL + 11 ) - SUM( DISTINCT - 10 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT - + MIN ( ALL + 11 ) - SUM ( DISTINCT - 10 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7061
SELECT - 34 - 91 AS col1, - 31 + + + 60 + + COALESCE ( ( 81 ), - 98, + - 97 DIV - + 31 * - 4 - COALESCE ( + - SUM( ALL + + 96 ), + 40 ) ) * 80 * - 65 * - COUNT( ALL - 72 ) - - 23, 73 + COALESCE ( - SUM( 84 ), - + NULLIF ( - - 90, + SUM( ALL 84 ) - - 52 * + 12 ), - - 52 ) + 70 * + + COUNT( * ) AS col1
----
-125
421252
59

skipif mysql # not compatible
query III rowsort label-7061
SELECT - 34 - 91 AS col1, - 31 + + + 60 + + COALESCE ( ( 81 ), - 98, + - 97 / - + 31 * - 4 - COALESCE ( + - SUM ( ALL + + 96 ), + 40 ) ) * 80 * - 65 * - COUNT ( ALL - 72 ) - - 23, 73 + COALESCE ( - SUM ( 84 ), - + NULLIF ( - - 90, + SUM ( ALL 84 ) - - 52 * + 12 ), - - 52 ) + 70 * + + COUNT ( * ) AS col1
----
-125
421252
59

query I rowsort
SELECT + 43 * - 97 AS col1
----
-4171

query II rowsort
SELECT ALL 60, 75 * 65 AS col2
----
60
4875

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7064
SELECT ALL + 12 * - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL + 12 * - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT 89 * COALESCE ( - - 60, + 66, - 92, - 74 ) * - - COUNT( * ) AS col0
----
5340

skipif mysql # not compatible
query I rowsort label-7065
SELECT 89 * COALESCE ( - - 60, + 66, - 92, - 74 ) * - - COUNT ( * ) AS col0
----
5340

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT DISTINCT MAX( - ( - 56 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT MAX ( - ( - 56 ) ) AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7067
SELECT + 73 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-7067
SELECT + 73 / 91
----
0

query I rowsort
SELECT ALL ( + 69 ) + 59
----
128

query I rowsort
SELECT + 66 + + - 26 AS col2
----
40

query I rowsort
SELECT + 25 - + - 17
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7071
SELECT - CAST( NULL AS SIGNED ) / + + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT - CAST ( NULL AS INTEGER ) / + + 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7072
SELECT + 1 - SUM( DISTINCT 82 ) AS col2, 27
----
-81
27

skipif mysql # not compatible
query II rowsort label-7072
SELECT + 1 - SUM ( DISTINCT 82 ) AS col2, 27
----
-81
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT + 19 * + COUNT( * ) col2
----
19

skipif mysql # not compatible
query I rowsort label-7073
SELECT + 19 * + COUNT ( * ) col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7074
SELECT ALL COUNT( * ) + 36 DIV - 19 AS col1, NULLIF ( - 96, SUM( + - 48 ) DIV COUNT( * ) ) + + - 50
----
0
-146

skipif mysql # not compatible
query II rowsort label-7074
SELECT ALL COUNT ( * ) + 36 / - 19 AS col1, NULLIF ( - 96, SUM ( + - 48 ) / COUNT ( * ) ) + + - 50
----
0
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7075
SELECT ALL CAST( - 29 AS SIGNED ) + - + 42, - COUNT( * ) AS col1
----
-71
-1

skipif mysql # not compatible
query II rowsort label-7075
SELECT ALL CAST ( - 29 AS INTEGER ) + - + 42, - COUNT ( * ) AS col1
----
-71
-1

query I rowsort
SELECT + 65 + + 84 AS col1
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7077
SELECT ALL + 97 AS col2, CAST( 98 AS SIGNED ) DIV 75 + 10 DIV - - ( 29 ) * - 5 * - 32 * - 5 * + COUNT( * ) + + - 61
----
97
-60

skipif mysql # not compatible
query II rowsort label-7077
SELECT ALL + 97 AS col2, CAST ( 98 AS INTEGER ) / 75 + 10 / - - ( 29 ) * - 5 * - 32 * - 5 * + COUNT ( * ) + + - 61
----
97
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL + 90 * + COUNT( * ) + + 25 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL + 90 * + COUNT ( * ) + + 25 AS col0
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT ( - MAX( + 87 ) ), - COUNT( * ) + + 67 AS col2
----
-87
66

skipif mysql # not compatible
query II rowsort label-7079
SELECT ( - MAX ( + 87 ) ), - COUNT ( * ) + + 67 AS col2
----
-87
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT SUM( ALL - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-7080
SELECT SUM ( ALL - 62 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7081
SELECT DISTINCT + NULLIF ( CAST( NULL AS SIGNED ), + - 95 * 71 / COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT + NULLIF ( CAST ( NULL AS INTEGER ), + - 95 * 71 / COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7082
SELECT - CASE + + 74 WHEN + + 27 / - 15 THEN + 55 WHEN + + 11 + - - 44 * - - 29 THEN NULL END / + CASE + - 63 WHEN 27 THEN - + 6 * 85 ELSE NULL END * COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7082
SELECT - CASE + + 74 WHEN + + 27 / - 15 THEN + 55 WHEN + + 11 + - - 44 * - - 29 THEN NULL END / + CASE + - 63 WHEN 27 THEN - + 6 * 85 ELSE NULL END * COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7083
SELECT + - 46 * - CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2, + 46
----
NULL
46

skipif mysql # not compatible
query II rowsort label-7083
SELECT + - 46 * - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2, + 46
----
NULL
46

query II rowsort
SELECT - 29 col0, - COALESCE ( 40, - 56 )
----
-29
-40

query II rowsort
SELECT ALL + - 33 AS col1, 96 AS col1
----
-33
96

query I rowsort
SELECT + - 2 * + - 74 AS col1
----
148

query II rowsort
SELECT ALL + 69 col1, 28
----
69
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 70 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7089
SELECT ALL + 58 AS col2, + CAST( - MIN( ALL + 8 ) AS SIGNED ) AS col2
----
58
-8

skipif mysql # not compatible
query II rowsort label-7089
SELECT ALL + 58 AS col2, + CAST ( - MIN ( ALL + 8 ) AS INTEGER ) AS col2
----
58
-8

query I rowsort
SELECT ALL + ( 58 ) * - - 3
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL COUNT( * ) * - 90 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL COUNT ( * ) * - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT - - ( 77 ) * NULLIF ( + - COUNT( * ), + + 79 )
----
-77

skipif mysql # not compatible
query I rowsort label-7092
SELECT - - ( 77 ) * NULLIF ( + - COUNT ( * ), + + 79 )
----
-77

query I rowsort
SELECT ALL - 39 * + 10 * + 22 AS col2
----
-8580

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT + ( SUM( + 53 ) ) * + - 35 * - 27 + + - 59 - COUNT( * ) + - COUNT( * ) * + 53 * - + 83
----
54424

skipif mysql # not compatible
query I rowsort label-7094
SELECT + ( SUM ( + 53 ) ) * + - 35 * - 27 + + - 59 - COUNT ( * ) + - COUNT ( * ) * + 53 * - + 83
----
54424

query I rowsort
SELECT + - 1 + + 38 + + 83
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7096
SELECT - CAST( NULL AS SIGNED ) col1, COUNT( * ) * + CASE - 35 WHEN COUNT( * ) THEN NULL ELSE + 37 END AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-7096
SELECT - CAST ( NULL AS INTEGER ) col1, COUNT ( * ) * + CASE - 35 WHEN COUNT ( * ) THEN NULL ELSE + 37 END AS col2
----
NULL
37

query I rowsort
SELECT - 11 * + + 79 AS col0
----
-869

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT - + 20 + + + ( + COUNT( * ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7098
SELECT - + 20 + + + ( + COUNT ( * ) ) AS col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7099
SELECT ALL - + 13 DIV COALESCE ( 56, 28 * + + ( - 3 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL - + 13 / COALESCE ( 56, 28 * + + ( - 3 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT DISTINCT 48 * + 82 * - 73 * - - 20 + - SUM( + COALESCE ( + - 23, + 97 * - 16 * + 77 ) )
----
-5746537

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT 48 * + 82 * - 73 * - - 20 + - SUM ( + COALESCE ( + - 23, + 97 * - 16 * + 77 ) )
----
-5746537

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT - ( - COUNT( * ) ) * - 35 - - - COUNT( + 16 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-7101
SELECT - ( - COUNT ( * ) ) * - 35 - - - COUNT ( + 16 ) AS col1
----
-36

query I rowsort
SELECT DISTINCT + 8 + 27 + - 69 * - 76
----
5279

query II rowsort
SELECT ALL - 53 + + + 29 AS col1, + 53 AS col2
----
-24
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7104
SELECT DISTINCT - ( - 49 ) + + NULLIF ( + + COUNT( * ), - CAST( NULL AS SIGNED ) / 58 - + COUNT( * ) ) + + - 59 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT - ( - 49 ) + + NULLIF ( + + COUNT ( * ), - CAST ( NULL AS INTEGER ) / 58 - + COUNT ( * ) ) + + - 59 AS col0
----
-9

query I rowsort
SELECT DISTINCT - COALESCE ( + + 98, + 12 + + 10 - - 49 ) + + ( 99 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ALL + SUM( ALL - - 36 ) * - 71 AS col1
----
-2556

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL + SUM ( ALL - - 36 ) * - 71 AS col1
----
-2556

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT - ( COALESCE ( + 48, MAX( 23 ), 32 ) ) + - - ( 3 )
----
-45

skipif mysql # not compatible
query I rowsort label-7107
SELECT - ( COALESCE ( + 48, MAX ( 23 ), 32 ) ) + - - ( 3 )
----
-45

query I rowsort
SELECT - 25 + - 28 col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7109
SELECT DISTINCT + ( 8 ) * COUNT( * ) / - - 38 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT + ( 8 ) * COUNT ( * ) / - - 38 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT DISTINCT - COUNT( * ) + 95 - - 23 + 61 * 42 col1
----
2679

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT - COUNT ( * ) + 95 - - 23 + 61 * 42 col1
----
2679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7111
SELECT DISTINCT CAST( - + ( - - 58 ) AS SIGNED ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT CAST ( - + ( - - 58 ) AS INTEGER ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT - COUNT( + - 86 ) + 63
----
62

skipif mysql # not compatible
query I rowsort label-7112
SELECT - COUNT ( + - 86 ) + 63
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL + ( ( - 0 ) ) + - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL + ( ( - 0 ) ) + - - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7114
SELECT ALL - MAX( DISTINCT - 0 ) + - NULLIF ( - MAX( 39 ), + + COUNT( * ) * CAST( NULL AS SIGNED ) * - 42 * + 40 )
----
39

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL - MAX ( DISTINCT - 0 ) + - NULLIF ( - MAX ( 39 ), + + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 42 * + 40 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7115
SELECT + 77 + - COALESCE ( 80, + COALESCE ( + 18, - + 62 ), + CAST( NULL AS SIGNED ) * + COUNT( * ) + - + 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-7115
SELECT + 77 + - COALESCE ( 80, + COALESCE ( + 18, - + 62 ), + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - + 3 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7116
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col0, 64 DIV + 26 - + 12 + 70 + + + 86 + - + 86
----
1
60

skipif mysql # not compatible
query II rowsort label-7116
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col0, 64 / + 26 - + 12 + 70 + + + 86 + - + 86
----
1
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7117
SELECT - CASE + 49 WHEN - 52 + + + COUNT( * ) THEN NULL ELSE - 68 - - + 13 * NULLIF ( - + 84, - 21 ) DIV - 81 + - - 54 + + - 38 DIV + 26 END AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7117
SELECT - CASE + 49 WHEN - 52 + + + COUNT ( * ) THEN NULL ELSE - 68 - - + 13 * NULLIF ( - + 84, - 21 ) / - 81 + - - 54 + + - 38 / + 26 END AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7118
SELECT - + 31 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7118
SELECT - + 31 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7119
SELECT - 49 DIV - 95 + + 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7119
SELECT - 49 / - 95 + + 79 AS col2
----
79

query I rowsort
SELECT + 23 + - 47
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL + + COUNT( * ) * - 32 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL + + COUNT ( * ) * - 32 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT + - MAX( DISTINCT + - 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7122
SELECT + - MAX ( DISTINCT + - 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7123
SELECT DISTINCT 11 * COUNT( * ) * + - COUNT( * ) + + 10 DIV + 29 * + 12 col2
----
-11

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT 11 * COUNT ( * ) * + - COUNT ( * ) + + 10 / + 29 * + 12 col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT + 50 * + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-7124
SELECT + 50 * + - COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-7125
SELECT + + COUNT( - 52 ) * - 18 + + 88 col0, COUNT( * ) AS col1
----
70
1

skipif mysql # not compatible
query II rowsort label-7125
SELECT + + COUNT ( - 52 ) * - 18 + + 88 col0, COUNT ( * ) AS col1
----
70
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7126
SELECT + - 99 + - 93 AS col0, 88 * 9 * - 67 + + - 41 DIV - ( ( - COUNT( * ) ) ) AS col0
----
-192
-53105

skipif mysql # not compatible
query II rowsort label-7126
SELECT + - 99 + - 93 AS col0, 88 * 9 * - 67 + + - 41 / - ( ( - COUNT ( * ) ) ) AS col0
----
-192
-53105

query I rowsort
SELECT + + COALESCE ( - + 95, + 94 ) + + 36 AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT - 95 DIV + 59 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7128
SELECT - 95 / + 59 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7129
SELECT 49 * - CAST( - + 1 AS SIGNED ) + + 14 AS col2, + CASE - COUNT( * ) WHEN - + ( - - COUNT( * ) ) THEN 65 END
----
63
65

skipif mysql # not compatible
query II rowsort label-7129
SELECT 49 * - CAST ( - + 1 AS INTEGER ) + + 14 AS col2, + CASE - COUNT ( * ) WHEN - + ( - - COUNT ( * ) ) THEN 65 END
----
63
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT DISTINCT + 16 + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT + 16 + COUNT ( * )
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-7131
SELECT ALL 22 DIV + + 31 col2, - 15 + 5 col2
----
0
-10

skipif mysql # not compatible
query II rowsort label-7131
SELECT ALL 22 / + + 31 col2, - 15 + 5 col2
----
0
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7132
SELECT 65 DIV - 75 AS col2, + NULLIF ( + - 41, - 86 - + + 63 + - CASE 85 WHEN + 1 * + 28 THEN - 3 + - + 5 + ( - 53 ) * 13 WHEN + - 4 THEN NULL ELSE - COUNT( * ) END * + 72 ) + + - 65 - + + 5 * - 94 * + NULLIF ( 31, + 43 ) * - 42
----
0
-612046

skipif mysql # not compatible
query II rowsort label-7132
SELECT 65 / - 75 AS col2, + NULLIF ( + - 41, - 86 - + + 63 + - CASE 85 WHEN + 1 * + 28 THEN - 3 + - + 5 + ( - 53 ) * 13 WHEN + - 4 THEN NULL ELSE - COUNT ( * ) END * + 72 ) + + - 65 - + + 5 * - 94 * + NULLIF ( 31, + 43 ) * - 42
----
0
-612046

query I rowsort
SELECT DISTINCT - 39 + + 97 * 77
----
7430

query I rowsort
SELECT DISTINCT 20 * - 45
----
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT 11 DIV - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT 11 / - 70 AS col2
----
0

query I rowsort
SELECT 82 - - - 78
----
4

query I rowsort
SELECT ALL 55 * + 50
----
2750

query II rowsort
SELECT 75, - 53 AS col1
----
75
-53

query II rowsort
SELECT 13 AS col0, + 55
----
13
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT - 25 * 68 + - COUNT( * ) AS col1
----
-1701

skipif mysql # not compatible
query I rowsort label-7140
SELECT - 25 * 68 + - COUNT ( * ) AS col1
----
-1701

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT DISTINCT + MAX( + - 87 ) + - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT + MAX ( + - 87 ) + - COUNT ( * )
----
-88

query I rowsort
SELECT ALL - 22 + + + 40 + 80
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7143
SELECT 7 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT 7 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT - 24 * 16 * COALESCE ( + COUNT( * ), + 6 ) - - 28 AS col0
----
-356

skipif mysql # not compatible
query I rowsort label-7144
SELECT - 24 * 16 * COALESCE ( + COUNT ( * ), + 6 ) - - 28 AS col0
----
-356

query II rowsort
SELECT ALL 36 AS col1, NULLIF ( + + 34, 1 )
----
36
34

query I rowsort
SELECT DISTINCT + 32 * 68
----
2176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7147
SELECT NULLIF ( ( - 11 ), + ( + 55 ) ) + + CAST( 15 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-7147
SELECT NULLIF ( ( - 11 ), + ( + 55 ) ) + + CAST ( 15 AS INTEGER )
----
4

query I rowsort
SELECT DISTINCT + 32 * - 80
----
-2560

query I rowsort
SELECT 61 - - + 49 AS col1
----
110

query I rowsort
SELECT ALL - 14 * + 60 AS col2
----
-840

query I rowsort
SELECT 51 * + 78 AS col1
----
3978

onlyif mysql # DIV for integer division: 
query I rowsort label-7152
SELECT DISTINCT 23 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT 23 / - 56
----
0

query I rowsort
SELECT DISTINCT - ( 84 ) col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7154
SELECT 52 DIV - ( + 52 ) + - ( - 58 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-7154
SELECT 52 / - ( + 52 ) + - ( - 58 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT MAX( DISTINCT - 14 ) * + 30 col0
----
-420

skipif mysql # not compatible
query I rowsort label-7155
SELECT MAX ( DISTINCT - 14 ) * + 30 col0
----
-420

query I rowsort
SELECT 57 + 87
----
144

query I rowsort
SELECT 66 + 1 AS col0
----
67

query I rowsort
SELECT 2 * 32
----
64

query I rowsort
SELECT ALL 22 + 48
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT COUNT( ALL 47 ) * 99
----
99

skipif mysql # not compatible
query I rowsort label-7160
SELECT COUNT ( ALL 47 ) * 99
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7161
SELECT DISTINCT - 71 + COUNT( * ) / CASE - 1 * - COALESCE ( + 21, 17 ) + 14 WHEN + ( + 76 ) THEN 47 WHEN 78 * - CAST( - 74 * + 13 AS SIGNED ) + - 86 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT - 71 + COUNT ( * ) / CASE - 1 * - COALESCE ( + 21, 17 ) + 14 WHEN + ( + 76 ) THEN 47 WHEN 78 * - CAST ( - 74 * + 13 AS INTEGER ) + - 86 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT DISTINCT COALESCE ( COUNT( - 89 ), SUM( DISTINCT 72 ) ) * 71
----
71

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT COALESCE ( COUNT ( - 89 ), SUM ( DISTINCT 72 ) ) * 71
----
71

query I rowsort
SELECT 1 + - 18 AS col1
----
-17

query I rowsort
SELECT ALL 68 + - 70 * + 69 AS col2
----
-4762

query I rowsort
SELECT ALL 79 * - 29 AS col1
----
-2291

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT + SUM( ALL + 38 ) * MAX( ALL 69 * 64 ) + - SUM( - 51 )
----
167859

skipif mysql # not compatible
query I rowsort label-7166
SELECT + SUM ( ALL + 38 ) * MAX ( ALL 69 * 64 ) + - SUM ( - 51 )
----
167859

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT COALESCE ( 60, COUNT( * ) ) - - 48 * + COUNT( - 51 + 16 ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-7167
SELECT COALESCE ( 60, COUNT ( * ) ) - - 48 * + COUNT ( - 51 + 16 ) AS col1
----
108

query I rowsort
SELECT 91 + 17 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT 90 * MIN( DISTINCT 6 ) - - 63 * + NULLIF ( 36 * + 47 + 7, - 34 ) AS col2
----
107577

skipif mysql # not compatible
query I rowsort label-7169
SELECT 90 * MIN ( DISTINCT 6 ) - - 63 * + NULLIF ( 36 * + 47 + 7, - 34 ) AS col2
----
107577

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT - 21 * - 62 + + 2 * + MIN( - 31 )
----
1240

skipif mysql # not compatible
query I rowsort label-7170
SELECT - 21 * - 62 + + 2 * + MIN ( - 31 )
----
1240

query I rowsort
SELECT ALL COALESCE ( - 84, - 58 ) + - 34 AS col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT + MIN( - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-7172
SELECT + MIN ( - 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT DISTINCT COUNT( * ) - + 12
----
-11

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT COUNT ( * ) - + 12
----
-11

query I rowsort
SELECT ALL 2 * ( 41 )
----
82

query I rowsort
SELECT - 58 * ( + 23 ) + + 70
----
-1264

onlyif mysql # DIV for integer division: 
query I rowsort label-7176
SELECT DISTINCT 31 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT 31 / 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT 36 + + COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7177
SELECT 36 + + COUNT ( * ) AS col0
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7178
SELECT ALL AVG ( - CAST( NULL AS DECIMAL ) ) * - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL AVG ( - CAST ( NULL AS REAL ) ) * - 77 AS col2
----
NULL

query I rowsort
SELECT 13 + - 37 * + 33
----
-1208

query I rowsort
SELECT ( 53 ) + - 83 AS col2
----
-30

query I rowsort
SELECT 61 + ( + 50 + 48 ) AS col2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT COUNT( * ) * 20 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7182
SELECT COUNT ( * ) * 20 AS col1
----
20

query I rowsort
SELECT 68 * 31 AS col1
----
2108

query I rowsort
SELECT 71 + 95 * 15
----
1496

query I rowsort
SELECT 48 + - 73 AS col1
----
-25

query I rowsort
SELECT DISTINCT 23 * 74
----
1702

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT ALL + 4 DIV + 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + 4 / + 21 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT - + COUNT( 9 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7188
SELECT - + COUNT ( 9 ) AS col0
----
-1

query I rowsort
SELECT + 5 + NULLIF ( + 0 + 59, 42 ) AS col2
----
64

query I rowsort
SELECT ALL - 12 * - 96
----
1152

query I rowsort
SELECT - 28 + - 66
----
-94

query I rowsort
SELECT 46 + - 97
----
-51

query I rowsort
SELECT ALL - 52 * + 27
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT + MIN( DISTINCT - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-7194
SELECT + MIN ( DISTINCT - 36 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7195
SELECT - + CAST( NULL AS SIGNED ) * + CASE + 80 * - 11 WHEN - 12 THEN - ( 87 ) * - 42 END + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7195
SELECT - + CAST ( NULL AS INTEGER ) * + CASE + 80 * - 11 WHEN - 12 THEN - ( 87 ) * - 42 END + 24 AS col0
----
NULL

query I rowsort
SELECT + ( 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT DISTINCT - COUNT( * ) * + 39 + - ( 71 )
----
-110

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT - COUNT ( * ) * + 39 + - ( 71 )
----
-110

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7198
SELECT ALL + CASE - 46 WHEN CASE + AVG ( ( 44 ) ) WHEN CAST( NULL AS DECIMAL ) * 79 THEN 65 WHEN + 69 * - 39 THEN NULL ELSE NULL END * 7 - - CAST( NULL AS SIGNED ) THEN NULL ELSE 72 + - 40 END * + ( - 50 )
----
-1600

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL + CASE - 46 WHEN CASE + AVG ( ( 44 ) ) WHEN CAST ( NULL AS REAL ) * 79 THEN 65 WHEN + 69 * - 39 THEN NULL ELSE NULL END * 7 - - CAST ( NULL AS INTEGER ) THEN NULL ELSE 72 + - 40 END * + ( - 50 )
----
-1600

query I rowsort
SELECT ALL + - 24 * + 93 + - 5
----
-2237

query I rowsort
SELECT + COALESCE ( 66, - 40 + - 26 ) AS col2
----
66

query I rowsort
SELECT ALL 89 * 43 + 24 AS col0
----
3851

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT - MAX( 51 ) * + 97 AS col2
----
-4947

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - MAX ( 51 ) * + 97 AS col2
----
-4947

onlyif mysql # DIV for integer division: 
query I rowsort label-7203
SELECT - + 47 DIV 33 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7203
SELECT - + 47 / 33 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7204
SELECT ALL + - CAST( - 24 AS DECIMAL ) * CASE WHEN NOT + COUNT( * ) IS NOT NULL THEN + 90 ELSE NULL END + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL + - CAST ( - 24 AS REAL ) * CASE WHEN NOT + COUNT ( * ) IS NOT NULL THEN + 90 ELSE NULL END + 66 AS col0
----
NULL

query I rowsort
SELECT ALL 14 * 13 + + 69 * 66
----
4736

query I rowsort
SELECT DISTINCT + 98 * 34 + + 65 AS col0
----
3397

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7207
SELECT - COALESCE ( 52, 26, COUNT( * ) * - 97 ) DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-7207
SELECT - COALESCE ( 52, 26, COUNT ( * ) * - 97 ) / - 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7208
SELECT ALL - 7 * - MIN( + 71 ) * COALESCE ( 24 * - 97 + + 12 DIV + 91, - 65 * + 84, 77, - 61 ) + + CAST( - 92 AS SIGNED ) * - 41
----
-1153244

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL - 7 * - MIN ( + 71 ) * COALESCE ( 24 * - 97 + + 12 / + 91, - 65 * + 84, 77, - 61 ) + + CAST ( - 92 AS INTEGER ) * - 41
----
-1153244

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT - ( - COUNT( * ) ) * 99
----
99

skipif mysql # not compatible
query I rowsort label-7209
SELECT - ( - COUNT ( * ) ) * 99
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7210
SELECT ALL + COUNT( * ) DIV + + 42
----
0

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL + COUNT ( * ) / + + 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT COUNT( * ) * - 77 * + 43 - 57
----
-3368

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT COUNT ( * ) * - 77 * + 43 - 57
----
-3368

onlyif mysql # DIV for integer division: 
query I rowsort label-7212
SELECT ALL + COALESCE ( ( + ( 2 ) ), - 27 * + 74 + 74 DIV 91 ) DIV 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL + COALESCE ( ( + ( 2 ) ), - 27 * + 74 + 74 / 91 ) / 44 AS col1
----
0

query I rowsort
SELECT ALL 61 * - 22
----
-1342

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT MAX( - + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-7214
SELECT MAX ( - + 9 )
----
-9

query I rowsort
SELECT ALL 54 - - 49
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7216
SELECT ALL + CAST( + 57 AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL + CAST ( + 57 AS INTEGER ) AS col0
----
57

query I rowsort
SELECT ALL - 32 * + 28 * 10 AS col1
----
-8960

query I rowsort
SELECT - 31 - - 2 AS col0
----
-29

query I rowsort
SELECT - 7 + 91 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT COUNT( ALL 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7220
SELECT COUNT ( ALL 52 ) AS col0
----
1

query I rowsort
SELECT + ( 7 ) + 94
----
101

query I rowsort
SELECT - COALESCE ( 99, - 26 )
----
-99

query I rowsort
SELECT + 0 * + 42 AS col1
----
0

query I rowsort
SELECT DISTINCT ( - 60 ) AS col0
----
-60

query I rowsort
SELECT DISTINCT ( - - 65 ) AS col1
----
65

query I rowsort
SELECT ALL ( + 61 ) AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT - COALESCE ( - CASE 78 WHEN - 28 THEN - 23 WHEN - 21 THEN + 62 ELSE NULL END, - CAST( + COUNT( * ) AS SIGNED ) * 97, CAST( 85 AS SIGNED ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7227
SELECT - COALESCE ( - CASE 78 WHEN - 28 THEN - 23 WHEN - 21 THEN + 62 ELSE NULL END, - CAST ( + COUNT ( * ) AS INTEGER ) * 97, CAST ( 85 AS INTEGER ) ) AS col0
----
97

query I rowsort
SELECT ALL 59 + 57
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT ALL 73 + - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL 73 + - COUNT ( * ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT + 47 + 69 - + COUNT( * ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-7230
SELECT + 47 + 69 - + COUNT ( * ) AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT - COUNT( - 35 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7231
SELECT - COUNT ( - 35 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7232
SELECT + + MIN( - 64 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT + + MIN ( - 64 ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT + + 86 * 56 + + ( CAST( NULL AS SIGNED ) ) / - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7233
SELECT + + 86 * 56 + + ( CAST ( NULL AS INTEGER ) ) / - 35 AS col1
----
NULL

query I rowsort
SELECT - + ( - - 36 )
----
-36

query I rowsort
SELECT ALL - 31 + + 66 AS col0
----
35

query I rowsort
SELECT + 92 * 15
----
1380

query I rowsort
SELECT ALL 62 + 24 col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT ALL + SUM( DISTINCT 78 )
----
78

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL + SUM ( DISTINCT 78 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7239
SELECT + 5 * + - CAST( - 91 AS SIGNED )
----
455

skipif mysql # not compatible
query I rowsort label-7239
SELECT + 5 * + - CAST ( - 91 AS INTEGER )
----
455

query I rowsort
SELECT ALL - - 41 + 69 + - 66
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7241
SELECT ALL ( COUNT( * ) ) DIV - 88 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL ( COUNT ( * ) ) / - 88 + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT MIN( 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7242
SELECT MIN ( 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7243
SELECT - ( - - MAX( 18 ) ) DIV - ( 19 ) + + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7243
SELECT - ( - - MAX ( 18 ) ) / - ( 19 ) + + 13 AS col1
----
13

query I rowsort
SELECT + - COALESCE ( - ( ( 43 ) ), 0 ) + 66
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT ALL - 1 DIV + + 23 * 27 - 39 * - 78
----
3042

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL - 1 / + + 23 * 27 - 39 * - 78
----
3042

query I rowsort
SELECT - 20 * - + 25 col1
----
500

query I rowsort
SELECT DISTINCT + 17 * 95 col2
----
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT DISTINCT COUNT( * ) * 43
----
43

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT COUNT ( * ) * 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT ALL MAX( ALL 25 ) * + ( - 90 ) * 99 + 70 AS col0
----
-222680

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL MAX ( ALL 25 ) * + ( - 90 ) * 99 + 70 AS col0
----
-222680

query I rowsort
SELECT - 49 * + 4 + - 91 AS col1
----
-287

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT - COUNT( * ) - + + 13 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7251
SELECT - COUNT ( * ) - + + 13 AS col0
----
-14

query I rowsort
SELECT ALL + ( 6 ) AS col2
----
6

query I rowsort
SELECT - 48 * + - 86
----
4128

query I rowsort
SELECT - 7 + + - COALESCE ( - 77, 20, - COALESCE ( 55, - 22 ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT 64 * - COALESCE ( + 45, 27 + 78 ) + - COUNT( * ) AS col2
----
-2881

skipif mysql # not compatible
query I rowsort label-7255
SELECT 64 * - COALESCE ( + 45, 27 + 78 ) + - COUNT ( * ) AS col2
----
-2881

query I rowsort
SELECT COALESCE ( 11, - + 21 * 84 + + 29 )
----
11

query I rowsort
SELECT ALL + 55 * + 16
----
880

query I rowsort
SELECT ALL - 1 * - + 63 AS col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT - 77 + 59 + + 54 DIV 77 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-7259
SELECT - 77 + 59 + + 54 / 77 AS col0
----
-18

query I rowsort
SELECT ALL ( 72 ) AS col0
----
72

query I rowsort
SELECT + 11 * - 16 + - 48 AS col1
----
-224

query II rowsort
SELECT ALL 28 AS col0, 80 AS col2
----
28
80

query I rowsort
SELECT - - 21 + + 74 AS col2
----
95

query I rowsort
SELECT + + 57 + + - 75 + - 24 + - 10 * - 76 * 23 AS col2
----
17438

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7265
SELECT - 89 AS col0, + 69 + - 11 + ( - CAST( - 78 AS SIGNED ) + 63 * 86 )
----
-89
5554

skipif mysql # not compatible
query II rowsort label-7265
SELECT - 89 AS col0, + 69 + - 11 + ( - CAST ( - 78 AS INTEGER ) + 63 * 86 )
----
-89
5554

query I rowsort
SELECT + 23 * 48 * - - 8
----
8832

query I rowsort
SELECT ALL 6 + + 41
----
47

query I rowsort
SELECT DISTINCT - - 98 + - 95 AS col2
----
3

query II rowsort
SELECT ALL + 22 AS col0, - 10 + + - 3
----
22
-13

query I rowsort
SELECT DISTINCT - 69 + + 78 AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7271
SELECT DISTINCT + ( - 89 ) DIV + COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT + ( - 89 ) / + COUNT ( * ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT ALL + CAST( NULL AS SIGNED ) + + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL + CAST ( NULL AS INTEGER ) + + 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT DISTINCT 77 + + COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT 77 + + COUNT ( * ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT 57 * MAX( DISTINCT + 46 )
----
2622

skipif mysql # not compatible
query I rowsort label-7274
SELECT 57 * MAX ( DISTINCT + 46 )
----
2622

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7275
SELECT ALL - 37, 28 DIV + COALESCE ( + 10, 63 ) + + 83 DIV COALESCE ( + 86, - 89 - - 11, ( 27 ) * COUNT( * ) ) AS col0
----
-37
2

skipif mysql # not compatible
query II rowsort label-7275
SELECT ALL - 37, 28 / + COALESCE ( + 10, 63 ) + + 83 / COALESCE ( + 86, - 89 - - 11, ( 27 ) * COUNT ( * ) ) AS col0
----
-37
2

query I rowsort
SELECT DISTINCT CASE - - ( - + 45 ) WHEN ( 84 ) - + 56 THEN ( 84 ) + - 0 ELSE NULL END * 19
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7277
SELECT DISTINCT 44 - - 17 DIV + 88 * - 74 DIV + ( COUNT( * ) ) - + 63
----
-19

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT 44 - - 17 / + 88 * - 74 / + ( COUNT ( * ) ) - + 63
----
-19

query I rowsort
SELECT 68 * - 49 col1
----
-3332

query II rowsort
SELECT DISTINCT + 87 * 30, - 21 AS col1
----
2610
-21

query I rowsort
SELECT ALL + 69 + - 62
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7281
SELECT ALL CAST( + + 72 AS SIGNED ) * - 57
----
-4104

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL CAST ( + + 72 AS INTEGER ) * - 57
----
-4104

query I rowsort
SELECT 58 + - 6 + + 21
----
73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7283
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + COALESCE ( + CAST( 56 AS SIGNED ), - 35 * + 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT CAST ( NULL AS REAL ) + + COALESCE ( + CAST ( 56 AS INTEGER ), - 35 * + 28 ) AS col2
----
NULL

query I rowsort
SELECT 70 * - 2 * + ( 98 )
----
-13720

onlyif mysql # DIV for integer division: 
query II rowsort label-7285
SELECT 48 DIV - 10, 78 + + 62 * 63 AS col2
----
-4
3984

skipif mysql # not compatible
query II rowsort label-7285
SELECT 48 / - 10, 78 + + 62 * 63 AS col2
----
-4
3984

query I rowsort
SELECT 24 + - 23 AS col2
----
1

query II rowsort
SELECT + 98 * + - 52 AS col2, 88
----
-5096
88

query I rowsort
SELECT - COALESCE ( + - 43, + ( + 66 ) - + 92 * + 76 ) + 3 AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7289
SELECT DISTINCT MAX( 34 ), - COALESCE ( + - ( - COUNT( * ) ), 40 ) - + 18 AS col0
----
34
-19

skipif mysql # not compatible
query II rowsort label-7289
SELECT DISTINCT MAX ( 34 ), - COALESCE ( + - ( - COUNT ( * ) ), 40 ) - + 18 AS col0
----
34
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7290
SELECT 31 * + + COALESCE ( - 88, 66 ) * CAST( NULL AS SIGNED ) + + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT 31 * + + COALESCE ( - 88, 66 ) * CAST ( NULL AS INTEGER ) + + 71 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7291
SELECT ALL - + 95 DIV - 74 col1, NULLIF ( + - 66, ( + 30 ) ) AS col1
----
1
-66

skipif mysql # not compatible
query II rowsort label-7291
SELECT ALL - + 95 / - 74 col1, NULLIF ( + - 66, ( + 30 ) ) AS col1
----
1
-66

query I rowsort
SELECT ALL - - 70 + - - NULLIF ( - + 56, - 41 * COALESCE ( 23, - 8 ) ) * - 76
----
4326

query I rowsort
SELECT ALL - 40 * + - 42
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT CASE + 87 WHEN + 18 THEN 35 + - COUNT( * ) WHEN - CASE 49 WHEN - 10 THEN NULL ELSE ( COALESCE ( - 79, 24 ) ) / 27 END * 50 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT CASE + 87 WHEN + 18 THEN 35 + - COUNT ( * ) WHEN - CASE 49 WHEN - 10 THEN NULL ELSE ( COALESCE ( - 79, 24 ) ) / 27 END * 50 THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT ALL + COUNT( * ) * + + 95 * 58 AS col0
----
5510

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL + COUNT ( * ) * + + 95 * 58 AS col0
----
5510

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT - SUM( + 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-7296
SELECT - SUM ( + 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT + 15 * - ( - COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-7297
SELECT + 15 * - ( - COUNT ( * ) )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT DISTINCT + COUNT( - 76 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT + COUNT ( - 76 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT CAST( - + 12 AS SIGNED ) - + 60
----
-72

skipif mysql # not compatible
query I rowsort label-7299
SELECT CAST ( - + 12 AS INTEGER ) - + 60
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT - + COALESCE ( + - 20, + MIN( ALL - - 15 ) )
----
20

skipif mysql # not compatible
query I rowsort label-7300
SELECT - + COALESCE ( + - 20, + MIN ( ALL - - 15 ) )
----
20

query I rowsort
SELECT DISTINCT - 97 * - + 52
----
5044

onlyif mysql # aggregate syntax: 
query II rowsort label-7302
SELECT ALL SUM( DISTINCT ( + 48 ) ), 9 AS col0
----
48
9

skipif mysql # not compatible
query II rowsort label-7302
SELECT ALL SUM ( DISTINCT ( + 48 ) ), 9 AS col0
----
48
9

query I rowsort
SELECT 36 * 6
----
216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7304
SELECT ALL - COUNT( * ) DIV + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL - COUNT ( * ) / + 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT DISTINCT 67 * - + COUNT( * ) * - 54 * 59
----
213462

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT 67 * - + COUNT ( * ) * - 54 * 59
----
213462

onlyif mysql # DIV for integer division: 
query I rowsort label-7306
SELECT - 4 DIV + COALESCE ( - 7, + 43 ) + + 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7306
SELECT - 4 / + COALESCE ( - 7, + 43 ) + + 95 AS col2
----
95

query I rowsort
SELECT + 16 * + 11 - - 59
----
235

query I rowsort
SELECT ALL 2 * + 3
----
6

query I rowsort
SELECT 26 + 71 AS col0
----
97

query I rowsort
SELECT 61 * + 5
----
305

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT MAX( + + 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7311
SELECT MAX ( + + 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7312
SELECT - ( 13 ) * + 96 + - COUNT( * ) DIV 56 AS col2
----
-1248

skipif mysql # not compatible
query I rowsort label-7312
SELECT - ( 13 ) * + 96 + - COUNT ( * ) / 56 AS col2
----
-1248

query I rowsort
SELECT ALL 41 * - - 51 + + 86
----
2177

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT ALL 89 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL 89 / 63
----
1

query I rowsort
SELECT ALL + 5 * + 22 + 41 * 89 AS col1
----
3759

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + SUM( ALL 87 )
----
87

skipif mysql # not compatible
query I rowsort label-7316
SELECT + SUM ( ALL 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT MAX( DISTINCT + 68 ) + 44
----
112

skipif mysql # not compatible
query I rowsort label-7317
SELECT MAX ( DISTINCT + 68 ) + 44
----
112

query I rowsort
SELECT ALL 36 + + + 96
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT MIN( ALL - - ( - + ( - 39 ) ) )
----
39

skipif mysql # not compatible
query I rowsort label-7319
SELECT MIN ( ALL - - ( - + ( - 39 ) ) )
----
39

query II rowsort
SELECT ( - 32 ) * 25, - 61 AS col0
----
-800
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7321
SELECT 86 + CASE 78 WHEN - COALESCE ( + - 48, 82 ) THEN NULL WHEN 59 + 79 THEN 11 * 40 ELSE - CAST( NULL AS SIGNED ) * + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT 86 + CASE 78 WHEN - COALESCE ( + - 48, 82 ) THEN NULL WHEN 59 + 79 THEN 11 * 40 ELSE - CAST ( NULL AS INTEGER ) * + 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT + MIN( - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-7322
SELECT + MIN ( - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT MIN( DISTINCT 82 )
----
82

skipif mysql # not compatible
query I rowsort label-7323
SELECT MIN ( DISTINCT 82 )
----
82

query I rowsort
SELECT DISTINCT - 94 + - 75 + + - 42
----
-211

query I rowsort
SELECT ALL - 35 + + 63 + - 6
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-7326
SELECT + + 30 * + + 15 * + 59 AS col1, 29 + - COUNT( * )
----
26550
28

skipif mysql # not compatible
query II rowsort label-7326
SELECT + + 30 * + + 15 * + 59 AS col1, 29 + - COUNT ( * )
----
26550
28

query I rowsort
SELECT ALL + 24 * 72
----
1728

onlyif mysql # DIV for integer division: 
query I rowsort label-7328
SELECT + 64 * - - 18 + + 85 - - ( + + 66 ) DIV 83 + + 37 AS col0
----
1274

skipif mysql # not compatible
query I rowsort label-7328
SELECT + 64 * - - 18 + + 85 - - ( + + 66 ) / 83 + + 37 AS col0
----
1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN CAST( NULL AS SIGNED ) / + - ( - COALESCE ( 53, 33 / - AVG ( 29 ) + 74 ) ) THEN COUNT( * ) WHEN - 23 + + 94 * 51 THEN NULL END * + 18 + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) / + - ( - COALESCE ( 53, 33 / - AVG ( 29 ) + 74 ) ) THEN COUNT ( * ) WHEN - 23 + + 94 * 51 THEN NULL END * + 18 + 18
----
NULL

query I rowsort
SELECT ALL + 75 - + 74 * + 35 * 1
----
-2515

query I rowsort
SELECT + 25 + - - 72 - + 13 * 49 AS col2
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL - CASE COUNT( * ) WHEN + + 92 THEN - 17 WHEN - COUNT( * ) THEN NULL WHEN 12 - 59 THEN 22 ELSE NULL END / + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL - CASE COUNT ( * ) WHEN + + 92 THEN - 17 WHEN - COUNT ( * ) THEN NULL WHEN 12 - 59 THEN 22 ELSE NULL END / + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT - + COUNT( * ) + - 8 * + 7 - 94
----
-151

skipif mysql # not compatible
query I rowsort label-7333
SELECT - + COUNT ( * ) + - 8 * + 7 - 94
----
-151

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT ALL - 48 DIV + - 86 + + 22 DIV + ( - 42 )
----
0

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL - 48 / + - 86 + + 22 / + ( - 42 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT - - ( + 72 ) + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7335
SELECT - - ( + 72 ) + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 42 * - 88 AS col0
----
3696

query I rowsort
SELECT ALL + + 80 * 49
----
3920

query I rowsort
SELECT ALL - 98 * 13 + 41 AS col1
----
-1233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7339
SELECT - COUNT( * ) + + CASE + 60 WHEN + - ( - - 25 ) THEN COUNT( * ) * - 19 + 36 WHEN 80 THEN 44 - 30 ELSE 82 END DIV 98
----
-1

skipif mysql # not compatible
query I rowsort label-7339
SELECT - COUNT ( * ) + + CASE + 60 WHEN + - ( - - 25 ) THEN COUNT ( * ) * - 19 + 36 WHEN 80 THEN 44 - 30 ELSE 82 END / 98
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT DISTINCT - 14 * + + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT - 14 * + + COUNT ( * )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7341
SELECT ALL CASE COUNT( * ) WHEN + 14 THEN - AVG ( ALL - - CAST( NULL AS SIGNED ) ) * + COUNT( * ) ELSE 24 END
----
24

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL CASE COUNT ( * ) WHEN + 14 THEN - AVG ( ALL - - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) ELSE 24 END
----
24

query I rowsort
SELECT DISTINCT - ( - 70 ) + - - 66
----
136

query I rowsort
SELECT ALL ( + 67 )
----
67

query II rowsort
SELECT - 65, - 32 - + 56 - + 62 + 55 AS col1
----
-65
-95

query I rowsort
SELECT - 84 * - 53
----
4452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7346
SELECT ( - 62 ) * + - 67 + + COUNT( - + 63 ) * + CAST( - 8 AS SIGNED ) + - 11
----
4135

skipif mysql # not compatible
query I rowsort label-7346
SELECT ( - 62 ) * + - 67 + + COUNT ( - + 63 ) * + CAST ( - 8 AS INTEGER ) + - 11
----
4135

query I rowsort
SELECT DISTINCT + ( + ( 26 ) )
----
26

query I rowsort
SELECT ( + 23 ) col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7349
SELECT ALL + 77 * 71 + + 33 + - CAST( NULLIF ( + ( - 49 ), 84 ) AS SIGNED ) + 73 * 10 DIV COUNT( * )
----
6279

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL + 77 * 71 + + 33 + - CAST ( NULLIF ( + ( - 49 ), 84 ) AS INTEGER ) + 73 * 10 / COUNT ( * )
----
6279

query I rowsort
SELECT DISTINCT - 94 * - 20 + - + 2 * 19 AS col1
----
1842

query I rowsort
SELECT ALL 81 * - ( 62 ) + + 17
----
-5005

query I rowsort
SELECT - 54 * - 63 AS col0
----
3402

query I rowsort
SELECT DISTINCT + ( + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT DISTINCT 55 * 29 * - 77 + 11 + COUNT( * ) col2
----
-122803

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT 55 * 29 * - 77 + 11 + COUNT ( * ) col2
----
-122803

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT - COUNT( * ) - COUNT( * ) + 76 - 50
----
24

skipif mysql # not compatible
query I rowsort label-7355
SELECT - COUNT ( * ) - COUNT ( * ) + 76 - 50
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7356
SELECT ALL + CAST( NULL AS DECIMAL ), 3 - - COALESCE ( + 15, + 96 ) AS col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-7356
SELECT ALL + CAST ( NULL AS REAL ), 3 - - COALESCE ( + 15, + 96 ) AS col1
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ALL 18 * + COUNT( * ) + 6 - - + 9 * ( + 62 ) AS col1
----
582

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL 18 * + COUNT ( * ) + 6 - - + 9 * ( + 62 ) AS col1
----
582

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT + COUNT( * ) * - MIN( + COALESCE ( - NULLIF ( + ( + 4 ), + 60 * - 0 ), 88 ) )
----
4

skipif mysql # not compatible
query I rowsort label-7358
SELECT + COUNT ( * ) * - MIN ( + COALESCE ( - NULLIF ( + ( + 4 ), + 60 * - 0 ), 88 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT + SUM( ALL + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-7359
SELECT + SUM ( ALL + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL 61 * + COUNT( DISTINCT + 38 ) + - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL 61 * + COUNT ( DISTINCT + 38 ) + - COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT + SUM( NULLIF ( - + 58, - 65 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-7361
SELECT + SUM ( NULLIF ( - + 58, - 65 ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT CASE - 38 WHEN + 75 THEN - + 9 * 19 * - COUNT( * ) ELSE 29 END AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7362
SELECT CASE - 38 WHEN + 75 THEN - + 9 * 19 * - COUNT ( * ) ELSE 29 END AS col1
----
29

query I rowsort
SELECT ALL 67 * + - 66 - 80
----
-4502

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT + SUM( ALL - + ( 67 ) ) * + - 37 AS col2
----
2479

skipif mysql # not compatible
query I rowsort label-7364
SELECT + SUM ( ALL - + ( 67 ) ) * + - 37 AS col2
----
2479

query I rowsort
SELECT ALL + 34 * - - 38 AS col0
----
1292

onlyif mysql # aggregate syntax: 
query II rowsort label-7366
SELECT + 91, 67 * - + ( + COUNT( * ) ) * + - 94 AS col1
----
91
6298

skipif mysql # not compatible
query II rowsort label-7366
SELECT + 91, 67 * - + ( + COUNT ( * ) ) * + - 94 AS col1
----
91
6298

query I rowsort
SELECT ALL - 42 * + 53 * + - 44 + ( + 84 ) - 62
----
97966

query I rowsort
SELECT + NULLIF ( + 47, 31 * + 48 ) + 49 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT + 69 * COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7369
SELECT + 69 * COUNT ( * ) AS col2
----
69

query II rowsort
SELECT + ( + 50 ) AS col2, 53 - + 61
----
50
-8

query I rowsort
SELECT + 13 + - + 29 + 96
----
80

query I rowsort
SELECT + 83 - ( - 63 )
----
146

query I rowsort
SELECT DISTINCT - 12 col0
----
-12

query II rowsort
SELECT DISTINCT ( + - 14 ), 85 AS col1
----
-14
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT ALL - MIN( + + 95 ) * 26
----
-2470

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL - MIN ( + + 95 ) * 26
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT + - MAX( ALL - - 1 ) * 71
----
-71

skipif mysql # not compatible
query I rowsort label-7376
SELECT + - MAX ( ALL - - 1 ) * 71
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL - COUNT( DISTINCT + 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL - COUNT ( DISTINCT + 6 )
----
-1

query I rowsort
SELECT - - NULLIF ( + - 54, - ( + 44 ) - + - 39 ) AS col1
----
-54

query I rowsort
SELECT DISTINCT + 19 * + 24
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT + - COALESCE ( - + 0, + MAX( 69 ), - + 69 ) + + - 59
----
-59

skipif mysql # not compatible
query I rowsort label-7380
SELECT + - COALESCE ( - + 0, + MAX ( 69 ), - + 69 ) + + - 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL COUNT( * ) * - 20 + + - 68 col1
----
-88

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL COUNT ( * ) * - 20 + + - 68 col1
----
-88

query I rowsort
SELECT + - 5 - - - 29 + + 61 * 89
----
5395

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7383
SELECT - 49, - 90 - 64 - + + CAST( - - 51 AS SIGNED ) - - 25 * 38 * 78 AS col0
----
-49
73895

skipif mysql # not compatible
query II rowsort label-7383
SELECT - 49, - 90 - 64 - + + CAST ( - - 51 AS INTEGER ) - - 25 * 38 * 78 AS col0
----
-49
73895

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT + + COUNT( * ) * - ( - MIN( - 25 ) ) + + + 51 * - ( 83 ) AS col1
----
-4258

skipif mysql # not compatible
query I rowsort label-7384
SELECT + + COUNT ( * ) * - ( - MIN ( - 25 ) ) + + + 51 * - ( 83 ) AS col1
----
-4258

query I rowsort
SELECT - 38 * 49 AS col2
----
-1862

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT DISTINCT + ( 78 ) + - COALESCE ( - - 73, COALESCE ( - 30, + 85, + COUNT( * ) * 78 ) - + 66, - 51 )
----
5

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT + ( 78 ) + - COALESCE ( - - 73, COALESCE ( - 30, + 85, + COUNT ( * ) * 78 ) - + 66, - 51 )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT ALL + 46 DIV + + 52 * - - 44
----
0

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL + 46 / + + 52 * - - 44
----
0

query I rowsort
SELECT - 2 - - 23
----
21

query II rowsort
SELECT DISTINCT + 28 * 69 AS col2, + 58
----
1932
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT ALL - 73 + CASE + COUNT( * ) WHEN + 88 THEN + 1 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL - 73 + CASE + COUNT ( * ) WHEN + 88 THEN + 1 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 78 - + 9 - - 19 + 67 + 46 * 75 col1
----
3449

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT DISTINCT NULLIF ( + MIN( - - 98 ), + 56 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT NULLIF ( + MIN ( - - 98 ), + 56 ) AS col2
----
98

query I rowsort
SELECT DISTINCT + 28 * + 9
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT 38 * + - 81 + 45 DIV 28 AS col0
----
-3077

skipif mysql # not compatible
query I rowsort label-7394
SELECT 38 * + - 81 + 45 / 28 AS col0
----
-3077

query II rowsort
SELECT DISTINCT - 65 * - 94 AS col1, 51
----
6110
51

query I rowsort
SELECT ALL + NULLIF ( + 77, - - 95 )
----
77

query I rowsort
SELECT + 70 * - 34 - - 11 + + 67
----
-2302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7398
SELECT ALL - 38 - - CASE + ( + - 37 ) WHEN 74 * + + ( - - 17 ) + 34 THEN NULLIF ( 38, + CAST( - COUNT( * ) AS SIGNED ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL - 38 - - CASE + ( + - 37 ) WHEN 74 * + + ( - - 17 ) + 34 THEN NULLIF ( 38, + CAST ( - COUNT ( * ) AS INTEGER ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7399
SELECT + MAX( DISTINCT - + 0 ) * - - COUNT( * ) * - CASE - 6 WHEN COUNT( * ) * + - CAST( CAST( - 74 AS SIGNED ) AS SIGNED ) + 42 * - 30 + 34 / - 13 THEN - CASE 71 WHEN SUM( + 58 ) THEN 79 * - 90 WHEN ( + 4 ) THEN 23 - + 49 WHEN - 4 THEN NULL END * CAST( NULL AS SIGNED ) END + 15 + ( + 71 + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT + MAX ( DISTINCT - + 0 ) * - - COUNT ( * ) * - CASE - 6 WHEN COUNT ( * ) * + - CAST ( CAST ( - 74 AS INTEGER ) AS INTEGER ) + 42 * - 30 + 34 / - 13 THEN - CASE 71 WHEN SUM ( + 58 ) THEN 79 * - 90 WHEN ( + 4 ) THEN 23 - + 49 WHEN - 4 THEN NULL END * CAST ( NULL AS INTEGER ) END + 15 + ( + 71 + 77 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7400
SELECT ALL - COALESCE ( + ( - CASE + 93 WHEN 3 THEN + - 72 WHEN - + 26 * - 61 THEN NULL ELSE 18 DIV 26 END ), + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL - COALESCE ( + ( - CASE + 93 WHEN 3 THEN + - 72 WHEN - + 26 * - 61 THEN NULL ELSE 18 / 26 END ), + 77 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT + COUNT( * ) * - - COUNT( * ) * - 62 + 2 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7401
SELECT + COUNT ( * ) * - - COUNT ( * ) * - 62 + 2 AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7402
SELECT 99 + - COUNT( * ) AS col1, + 49 DIV + 70
----
98
0

skipif mysql # not compatible
query II rowsort label-7402
SELECT 99 + - COUNT ( * ) AS col1, + 49 / + 70
----
98
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT ALL - - 89 - + 63 * COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL - - 89 - + 63 * COUNT ( * )
----
26

query I rowsort
SELECT + - NULLIF ( 66, - 54 ) AS col2
----
-66

query I rowsort
SELECT 45 + - 6 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7406
SELECT MIN( 93 ) * + 13 - - 39 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT MIN ( 93 ) * + 13 - - 39 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 76 * - 0 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7408
SELECT DISTINCT + + 51 * CAST( NULL AS SIGNED ) col0, - 7 AS col0
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-7408
SELECT DISTINCT + + 51 * CAST ( NULL AS INTEGER ) col0, - 7 AS col0
----
NULL
-7

query I rowsort
SELECT - + 52 * - + 27 + 43 AS col0
----
1447

query I rowsort
SELECT ALL + 92 * 65 + 21
----
6001

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7411
SELECT ( - 41 ) DIV - SUM( - 63 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7411
SELECT ( - 41 ) / - SUM ( - 63 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT 98 * + COUNT( * ) - + + COUNT( * ) * - 35 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-7412
SELECT 98 * + COUNT ( * ) - + + COUNT ( * ) * - 35 AS col0
----
133

query I rowsort
SELECT DISTINCT + 48 * 48
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT DISTINCT - + 71 * - CASE COUNT( * ) WHEN - ( + ( - 50 ) ) - + 7 THEN 6 ELSE - 69 + - COALESCE ( CASE 99 WHEN - MIN( 9 ) + COUNT( * ) THEN - 57 WHEN + 45 * + 77 THEN - 33 + 92 ELSE NULL END + - 76, 6 ) END * 91
----
-484575

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT - + 71 * - CASE COUNT ( * ) WHEN - ( + ( - 50 ) ) - + 7 THEN 6 ELSE - 69 + - COALESCE ( CASE 99 WHEN - MIN ( 9 ) + COUNT ( * ) THEN - 57 WHEN + 45 * + 77 THEN - 33 + 92 ELSE NULL END + - 76, 6 ) END * 91
----
-484575

query I rowsort
SELECT 78 * - 61 + 73
----
-4685

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7416
SELECT NULLIF ( - + 34, - 92 ) - + - CAST( - 78 AS SIGNED ) col2
----
-112

skipif mysql # not compatible
query I rowsort label-7416
SELECT NULLIF ( - + 34, - 92 ) - + - CAST ( - 78 AS INTEGER ) col2
----
-112

query I rowsort
SELECT ALL - 65 + - 94
----
-159

query I rowsort
SELECT 57 + 41 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT + 92 - + 41 * 17 * CAST( NULL AS SIGNED ) / - ( 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT + 92 - + 41 * 17 * CAST ( NULL AS INTEGER ) / - ( 63 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT DISTINCT 62 + - NULLIF ( - - 38, 44 ) * + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT 62 + - NULLIF ( - - 38, 44 ) * + COUNT ( * ) AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT CAST( NULL AS SIGNED ) * - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7421
SELECT CAST ( NULL AS INTEGER ) * - 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT 47 * - SUM( 72 ) * - - 83 AS col1
----
-280872

skipif mysql # not compatible
query I rowsort label-7422
SELECT 47 * - SUM ( 72 ) * - - 83 AS col1
----
-280872

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT ALL 76 + + 53 - + - 53 DIV + 85 AS col0
----
129

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL 76 + + 53 - + - 53 / + 85 AS col0
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7424
SELECT DISTINCT COUNT( * ) + - COALESCE ( + 96, 56, + SUM( + - 77 ) * + - COUNT( * ), ( - 13 ) ) DIV - 74
----
2

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT COUNT ( * ) + - COALESCE ( + 96, 56, + SUM ( + - 77 ) * + - COUNT ( * ), ( - 13 ) ) / - 74
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT ALL CASE - + MAX( DISTINCT + 72 ) WHEN 79 THEN + 33 WHEN 88 THEN - 34 WHEN - 89 + 19 / - 98 THEN + 47 END + 61 * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL CASE - + MAX ( DISTINCT + 72 ) WHEN 79 THEN + 33 WHEN 88 THEN - 34 WHEN - 89 + 19 / - 98 THEN + 47 END + 61 * + 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7426
SELECT ALL 13 AS col0, ( SUM( ALL + 54 ) ) * - 16 - - 55 * - - 22
----
13
346

skipif mysql # not compatible
query II rowsort label-7426
SELECT ALL 13 AS col0, ( SUM ( ALL + 54 ) ) * - 16 - - 55 * - - 22
----
13
346

query I rowsort
SELECT 61 + - 52 + + - 37 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT ALL - 69 + 76 * - + COUNT( * ) + + - 65 * - 37 * + 84 AS col0
----
201875

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL - 69 + 76 * - + COUNT ( * ) + + - 65 * - 37 * + 84 AS col0
----
201875

query I rowsort
SELECT NULLIF ( - - 27, 42 ) * ( - ( + 27 ) ) * 14 AS col2
----
-10206

query I rowsort
SELECT 77 + 85 * - 94 + + 54 AS col2
----
-7859

query I rowsort
SELECT DISTINCT 72 - - + ( + 96 )
----
168

onlyif mysql # DIV for integer division: 
query II rowsort label-7432
SELECT - 81 col2, 81 DIV - 17 + - 76 - COALESCE ( 21, ( + 39 ), 74 )
----
-81
-101

skipif mysql # not compatible
query II rowsort label-7432
SELECT - 81 col2, 81 / - 17 + - 76 - COALESCE ( 21, ( + 39 ), 74 )
----
-81
-101

query I rowsort
SELECT 96 + 34
----
130

query II rowsort
SELECT ALL + 6 - - NULLIF ( 69, + - 75 ) AS col2, 4
----
75
4

query II rowsort
SELECT ALL - 5 AS col2, 10 AS col2
----
-5
10

query I rowsort
SELECT DISTINCT 36 - + 93
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL + MAX( DISTINCT 8 ) * - + ( + - 9 ) * 16 + + + 72 + - 51 - 81 * + 96 AS col2
----
-6603

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL + MAX ( DISTINCT 8 ) * - + ( + - 9 ) * 16 + + + 72 + - 51 - 81 * + 96 AS col2
----
-6603

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL - COUNT( * ) - + 26 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL - COUNT ( * ) - + 26 AS col2
----
-27

query I rowsort
SELECT DISTINCT - ( + - COALESCE ( + 21, + 96 - + + 42, + ( 45 ) ) )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7440
SELECT CAST( NULL AS DECIMAL ) - - + 18 * + - COUNT( DISTINCT COALESCE ( + 52, CAST( NULL AS SIGNED ) / - 46 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT CAST ( NULL AS REAL ) - - + 18 * + - COUNT ( DISTINCT COALESCE ( + 52, CAST ( NULL AS INTEGER ) / - 46 ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7441
SELECT 44 DIV 49 + 41 * - 3
----
-123

skipif mysql # not compatible
query I rowsort label-7441
SELECT 44 / 49 + 41 * - 3
----
-123

query I rowsort
SELECT - ( + - 98 ) AS col2
----
98

query II rowsort
SELECT - ( - 83 ) * - - 4, + 59 col2
----
332
59

query I rowsort
SELECT DISTINCT - + ( + 3 )
----
-3

query I rowsort
SELECT ALL - + CASE + NULLIF ( - 59, 95 ) WHEN + 34 THEN + 5 + 89 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7446
SELECT ALL - 59, - COUNT( * ) col0
----
-59
-1

skipif mysql # not compatible
query II rowsort label-7446
SELECT ALL - 59, - COUNT ( * ) col0
----
-59
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT MIN( DISTINCT + 24 ) * + 67 * - - 4 AS col0
----
6432

skipif mysql # not compatible
query I rowsort label-7447
SELECT MIN ( DISTINCT + 24 ) * + 67 * - - 4 AS col0
----
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT ALL + SUM( 91 ) * - - 2 + 41 col0
----
223

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL + SUM ( 91 ) * - - 2 + 41 col0
----
223

onlyif mysql # aggregate syntax: 
query II rowsort label-7449
SELECT 82, + MIN( - + 14 ) * - + 58 AS col1
----
82
812

skipif mysql # not compatible
query II rowsort label-7449
SELECT 82, + MIN ( - + 14 ) * - + 58 AS col1
----
82
812

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL + 69 + + COALESCE ( + 18, - + COUNT( * ) )
----
87

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL + 69 + + COALESCE ( + 18, - + COUNT ( * ) )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT ALL - 11 + - 87 DIV 49 + - 75 - 34 col0
----
-121

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL - 11 + - 87 / 49 + - 75 - 34 col0
----
-121

query I rowsort
SELECT + CASE + 66 WHEN + 83 THEN 49 END + - 96 * + 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7453
SELECT 13 AS col2, + MIN( ALL 45 ) AS col2
----
13
45

skipif mysql # not compatible
query II rowsort label-7453
SELECT 13 AS col2, + MIN ( ALL 45 ) AS col2
----
13
45

onlyif mysql # aggregate syntax: 
query II rowsort label-7454
SELECT 41 + - ( - - COUNT( * ) ), COUNT( * ) + + + 98 AS col0
----
40
99

skipif mysql # not compatible
query II rowsort label-7454
SELECT 41 + - ( - - COUNT ( * ) ), COUNT ( * ) + + + 98 AS col0
----
40
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7455
SELECT + 81 - - - CASE - 96 WHEN - + COUNT( * ) * + 81 - 59 * + 62 + NULLIF ( AVG ( 69 ), 81 - ( 18 ) ) + + CAST( MAX( 95 ) AS SIGNED ) * + 12 THEN - ( 46 ) + - 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT + 81 - - - CASE - 96 WHEN - + COUNT ( * ) * + 81 - 59 * + 62 + NULLIF ( AVG ( 69 ), 81 - ( 18 ) ) + + CAST ( MAX ( 95 ) AS INTEGER ) * + 12 THEN - ( 46 ) + - 60 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7456
SELECT ALL + 20 * - 35 DIV 35 col2, COUNT( * ) AS col2
----
-20
1

skipif mysql # not compatible
query II rowsort label-7456
SELECT ALL + 20 * - 35 / 35 col2, COUNT ( * ) AS col2
----
-20
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT + 64 * 10 * COUNT( * ) + + 50 + - 35
----
655

skipif mysql # not compatible
query I rowsort label-7457
SELECT + 64 * 10 * COUNT ( * ) + + 50 + - 35
----
655

query II rowsort
SELECT + 61, - 36 AS col1
----
61
-36

query I rowsort
SELECT ALL - 28 + - + 49 AS col2
----
-77

query I rowsort
SELECT DISTINCT + 1 + - - 89
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7461
SELECT ALL - CAST( NULL AS DECIMAL ) + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL - CAST ( NULL AS REAL ) + 49 AS col0
----
NULL

query I rowsort
SELECT ALL 67 + + 35
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT ALL 25 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL 25 / + 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT 41 - - 12 - COUNT( - + 53 ) / + + 12 + 30 + + + 54 / + CASE 1 WHEN - 98 THEN 56 / 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT 41 - - 12 - COUNT ( - + 53 ) / + + 12 + 30 + + + 54 / + CASE 1 WHEN - 98 THEN 56 / 64 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT 77 DIV + ( 97 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7465
SELECT 77 / + ( 97 ) AS col2
----
0

query I rowsort
SELECT ALL 31 - - NULLIF ( 12, + 17 )
----
43

query II rowsort
SELECT - COALESCE ( 22, ( 72 ) ) col2, - 7 AS col1
----
-22
-7

query I rowsort
SELECT + 59 * + ( + + 44 )
----
2596

onlyif mysql # DIV for integer division: 
query I rowsort label-7469
SELECT 12 DIV 97 + + + 37
----
37

skipif mysql # not compatible
query I rowsort label-7469
SELECT 12 / 97 + + + 37
----
37

query I rowsort
SELECT + 35 - - + 25 col2
----
60

query I rowsort
SELECT + 94 * 31 AS col0
----
2914

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7472
SELECT + 66 + 27 AS col1, - CAST( NULL AS SIGNED ) / 11 * + 16 col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-7472
SELECT + 66 + 27 AS col1, - CAST ( NULL AS INTEGER ) / 11 * + 16 col0
----
93
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7473
SELECT + 75 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-7473
SELECT + 75 / + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT + SUM( 17 ) + + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7474
SELECT + SUM ( 17 ) + + COUNT ( * )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT + 93 DIV + + 89
----
1

skipif mysql # not compatible
query I rowsort label-7476
SELECT + 93 / + + 89
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7477
SELECT ALL + 79 * - COALESCE ( - - 29, + 38, - 74 + - COUNT( * ) + CASE - 20 WHEN + 61 + - ( 11 ) THEN - 66 WHEN + ( - ( ( - COALESCE ( - 98, COUNT( * ) ) ) ) ) THEN NULL WHEN - AVG ( + 89 ) THEN NULL END ) + 13 * COUNT( * ) + 89 DIV COALESCE ( - 27 + - 49 DIV - 76, - 89 ) AS col1
----
-2281

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL + 79 * - COALESCE ( - - 29, + 38, - 74 + - COUNT ( * ) + CASE - 20 WHEN + 61 + - ( 11 ) THEN - 66 WHEN + ( - ( ( - COALESCE ( - 98, COUNT ( * ) ) ) ) ) THEN NULL WHEN - AVG ( + 89 ) THEN NULL END ) + 13 * COUNT ( * ) + 89 / COALESCE ( - 27 + - 49 / - 76, - 89 ) AS col1
----
-2281

query I rowsort
SELECT 70 * + 76 + - 97
----
5223

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT ALL + + SUM( + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL + + SUM ( + 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL - 72 * - COUNT( * ) * + + 42 + + 98 AS col2
----
3122

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL - 72 * - COUNT ( * ) * + + 42 + + 98 AS col2
----
3122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7481
SELECT - - COUNT( * ) * - - 67 * - 60 + - - COUNT( ALL + 22 ) + - CAST( + + COALESCE ( 71, ( + 3 ) + - 40, 29 * - CAST( NULL AS SIGNED ) ) AS SIGNED ) - + MAX( 68 ) * + 50
----
-7490

skipif mysql # not compatible
query I rowsort label-7481
SELECT - - COUNT ( * ) * - - 67 * - 60 + - - COUNT ( ALL + 22 ) + - CAST ( + + COALESCE ( 71, ( + 3 ) + - 40, 29 * - CAST ( NULL AS INTEGER ) ) AS INTEGER ) - + MAX ( 68 ) * + 50
----
-7490

onlyif mysql # DIV for integer division: 
query I rowsort label-7482
SELECT DISTINCT 90 DIV ( 39 )
----
2

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT 90 / ( 39 )
----
2

query I rowsort
SELECT DISTINCT + + 37 * - - 72 + 31 AS col1
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL - - 33 * + + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL - - 33 * + + COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL + 78 * - COALESCE ( + 89, 56 * - 13 * - 27, + MAX( DISTINCT - 22 ), - + 64 ) * 32 + COUNT( * )
----
-222143

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL + 78 * - COALESCE ( + 89, 56 * - 13 * - 27, + MAX ( DISTINCT - 22 ), - + 64 ) * 32 + COUNT ( * )
----
-222143

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL - 43 * + 92 + + + COUNT( * )
----
-3955

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL - 43 * + 92 + + + COUNT ( * )
----
-3955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7487
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 12 + - 84 * - 34 + - 31 - - COUNT( * ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 12 + - 84 * - 34 + - 31 - - COUNT ( * ) * 37
----
NULL

query I rowsort
SELECT - + 14 * 76 + - 43
----
-1107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7489
SELECT + MAX( ALL + ( 95 ) ) * + 45 + + + 33 DIV - SUM( + NULLIF ( 45, + 69 + 32 * 96 ) ) + COUNT( * ) + NULLIF ( 95, + CAST( - 15 AS SIGNED ) + - 56 ) AS col1
----
4371

skipif mysql # not compatible
query I rowsort label-7489
SELECT + MAX ( ALL + ( 95 ) ) * + 45 + + + 33 / - SUM ( + NULLIF ( 45, + 69 + 32 * 96 ) ) + COUNT ( * ) + NULLIF ( 95, + CAST ( - 15 AS INTEGER ) + - 56 ) AS col1
----
4371

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT + MIN( 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7490
SELECT + MIN ( 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7491
SELECT + ( - 31 ) * - COUNT( * ) + - 82, COUNT( * ) * - 65 col0
----
-51
-65

skipif mysql # not compatible
query II rowsort label-7491
SELECT + ( - 31 ) * - COUNT ( * ) + - 82, COUNT ( * ) * - 65 col0
----
-51
-65

query I rowsort
SELECT DISTINCT + - 53
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7493
SELECT ALL + CASE COUNT( * ) WHEN - 1 + ( CASE + 27 WHEN 45 - - 84 * + 52 THEN NULL ELSE - 46 / CAST( 24 AS SIGNED ) - + 8 END ) + - 94 THEN + 97 / 10 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL + CASE COUNT ( * ) WHEN - 1 + ( CASE + 27 WHEN 45 - - 84 * + 52 THEN NULL ELSE - 46 / CAST ( 24 AS INTEGER ) - + 8 END ) + - 94 THEN + 97 / 10 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7494
SELECT ALL + ( + 52 ) * - 15 - - ( + 79 ) + 5 + CAST( - MAX( ALL - + 31 ) AS SIGNED )
----
-665

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL + ( + 52 ) * - 15 - - ( + 79 ) + 5 + CAST ( - MAX ( ALL - + 31 ) AS INTEGER )
----
-665

query I rowsort
SELECT + + NULLIF ( + 82, 84 * + 9 / - + 20 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT - - 77 + + - COUNT( ALL + 55 ) + - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7496
SELECT - - 77 + + - COUNT ( ALL + 55 ) + - 76 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT - - COUNT( * ) * + + 7
----
7

skipif mysql # not compatible
query I rowsort label-7497
SELECT - - COUNT ( * ) * + + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT COUNT( + - ( 1 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT COUNT ( + - ( 1 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL COALESCE ( COUNT( * ), + 22 + + - 1 - 81 * ( - - COUNT( * ) ) - - 77 + + 6, 25 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL COALESCE ( COUNT ( * ), + 22 + + - 1 - 81 * ( - - COUNT ( * ) ) - - 77 + + 6, 25 ) col1
----
1

query I rowsort
SELECT - 43 + + 90 AS col0
----
47

query I rowsort
SELECT - 2 - + 41 AS col0
----
-43

query I rowsort
SELECT - 25 + ( + 83 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT ALL ( COALESCE ( - + 0, + + 9 * COALESCE ( - COUNT( * ), + COUNT( * ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL ( COALESCE ( - + 0, + + 9 * COALESCE ( - COUNT ( * ), + COUNT ( * ) ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT - 72 * + - MAX( DISTINCT 65 ) * + 75 AS col2
----
351000

skipif mysql # not compatible
query I rowsort label-7504
SELECT - 72 * + - MAX ( DISTINCT 65 ) * + 75 AS col2
----
351000

onlyif mysql # aggregate syntax: 
query II rowsort label-7505
SELECT ALL - SUM( + - 39 ) * + ( - 12 ) - 81, COUNT( * ) AS col1
----
-549
1

skipif mysql # not compatible
query II rowsort label-7505
SELECT ALL - SUM ( + - 39 ) * + ( - 12 ) - 81, COUNT ( * ) AS col1
----
-549
1

query I rowsort
SELECT DISTINCT - 7 * 97 AS col0
----
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL CASE - 54 WHEN COUNT( * ) THEN NULL WHEN + + NULLIF ( + 9, 47 ) * - CASE - COUNT( - 4 ) WHEN + 4 * - 11 THEN - 24 ELSE + 96 END THEN 43 WHEN - 4 + 76 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL CASE - 54 WHEN COUNT ( * ) THEN NULL WHEN + + NULLIF ( + 9, 47 ) * - CASE - COUNT ( - 4 ) WHEN + 4 * - 11 THEN - 24 ELSE + 96 END THEN 43 WHEN - 4 + 76 THEN NULL END
----
NULL

query I rowsort
SELECT - ( - 64 ) + + 12 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ALL - 89 * - COUNT( * ) * - + 47 AS col2
----
-4183

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - 89 * - COUNT ( * ) * - + 47 AS col2
----
-4183

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT - COUNT( * ) + + 54
----
53

skipif mysql # not compatible
query I rowsort label-7510
SELECT - COUNT ( * ) + + 54
----
53

query I rowsort
SELECT ALL ( 51 ) AS col2
----
51

query I rowsort
SELECT - ( + 59 ) * CASE + + 94 WHEN + 80 / 34 * + 80 / + 20 * - 47 * - CASE - 68 WHEN - 43 - 34 THEN - 34 END THEN + 26 * 3 WHEN + 43 + + AVG ( ALL + 96 ) THEN - 61 END + - NULLIF ( + 35, 86 )
----
NULL

query I rowsort
SELECT - CASE + 56 WHEN + 52 THEN + 8 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7514
SELECT ALL CAST( + 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL CAST ( + 67 AS INTEGER )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7515
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-7515
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + 78
----
NULL
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7516
SELECT + 94 DIV - COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-7516
SELECT + 94 / - COUNT ( * ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + 11 + + 48 + COUNT( * ) + - COUNT( - - 84 ) * + 25 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7517
SELECT + 11 + + 48 + COUNT ( * ) + - COUNT ( - - 84 ) * + 25 AS col0
----
35

query II rowsort
SELECT ALL 99 col0, 28
----
99
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT - 82 * - COUNT( * ) * + - 29
----
-2378

skipif mysql # not compatible
query I rowsort label-7519
SELECT - 82 * - COUNT ( * ) * + - 29
----
-2378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7520
SELECT + - 85 + - - 15 DIV - ( + 95 ) * 9 * + 7 + - - COUNT( * ) - COALESCE ( + + 96, COUNT( * ) DIV + COUNT( * ) ) AS col2
----
-180

skipif mysql # not compatible
query I rowsort label-7520
SELECT + - 85 + - - 15 / - ( + 95 ) * 9 * + 7 + - - COUNT ( * ) - COALESCE ( + + 96, COUNT ( * ) / + COUNT ( * ) ) AS col2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT - - SUM( DISTINCT - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-7521
SELECT - - SUM ( DISTINCT - 78 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7522
SELECT ( + CAST( - + NULLIF ( - MIN( ALL - 24 ), - 97 + - 0 / 15 * + - 99 * + - COUNT( * ) ) AS SIGNED ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-7522
SELECT ( + CAST ( - + NULLIF ( - MIN ( ALL - 24 ), - 97 + - 0 / 15 * + - 99 * + - COUNT ( * ) ) AS INTEGER ) ) AS col0
----
-24

query II rowsort
SELECT ALL + 50 col0, 68
----
50
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7524
SELECT ALL + 75 DIV - COALESCE ( - 7, 19 * - 11 + 84, + 38 * - - COUNT( * ) ) + 88 + 19 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL + 75 / - COALESCE ( - 7, 19 * - 11 + 84, + 38 * - - COUNT ( * ) ) + 88 + 19 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT + - 24 * + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-7525
SELECT + - 24 * + COUNT ( * )
----
-24

query II rowsort
SELECT 31 AS col0, 27
----
31
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7527
SELECT DISTINCT + - 59 DIV - + 8 + + - 91
----
-84

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT + - 59 / - + 8 + + - 91
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7528
SELECT ALL - - 93 DIV - + 96 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL - - 93 / - + 96 + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL + 53 * - 97 + - 64 AS col2
----
-5205

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT - + COUNT( ALL + 47 ) + - ( - 59 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7530
SELECT - + COUNT ( ALL + 47 ) + - ( - 59 ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7531
SELECT DISTINCT - NULLIF ( + 2, 18 * - + 83 + ( - CAST( + - 70 AS SIGNED ) ) - + 65 * - 27 + 70 DIV 32 ) DIV 44 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT - NULLIF ( + 2, 18 * - + 83 + ( - CAST ( + - 70 AS INTEGER ) ) - + 65 * - 27 + 70 / 32 ) / 44 + - COUNT ( * ) AS col0
----
-1

query II rowsort
SELECT + + 97 * 77 * + 15 AS col1, 23
----
112035
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7533
SELECT ALL 42 / + - AVG ( + 95 ) * + + ( - CASE + 69 WHEN + + 54 + - + 84 / + + ( COALESCE ( COUNT( * ), 67 + COALESCE ( - 44 + + CAST( NULL AS SIGNED ), - 94 * COALESCE ( 58, + 62 * 18 ), COUNT( * ) + + 55 ), 50 ) ) * 61 THEN - ( + COALESCE ( + 72, - COUNT( * ) * 47 ) ) * - 98 WHEN 91 THEN NULL WHEN + 16 THEN - 31 ELSE + CASE 41 WHEN 75 THEN NULL WHEN COALESCE ( CAST( - 95 AS SIGNED ), 16 ) - COUNT( 68 + 2 ) THEN + 63 END END ) - COALESCE ( 13, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL 42 / + - AVG ( + 95 ) * + + ( - CASE + 69 WHEN + + 54 + - + 84 / + + ( COALESCE ( COUNT ( * ), 67 + COALESCE ( - 44 + + CAST ( NULL AS INTEGER ), - 94 * COALESCE ( 58, + 62 * 18 ), COUNT ( * ) + + 55 ), 50 ) ) * 61 THEN - ( + COALESCE ( + 72, - COUNT ( * ) * 47 ) ) * - 98 WHEN 91 THEN NULL WHEN + 16 THEN - 31 ELSE + CASE 41 WHEN 75 THEN NULL WHEN COALESCE ( CAST ( - 95 AS INTEGER ), 16 ) - COUNT ( 68 + 2 ) THEN + 63 END END ) - COALESCE ( 13, + COUNT ( * ) )
----
NULL

query I rowsort
SELECT + - 23 - - + 98 + - - 71 col2
----
146

query I rowsort
SELECT ALL - 37 * ( + 13 )
----
-481

query I rowsort
SELECT ALL 96 * - 28 AS col2
----
-2688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7537
SELECT COUNT( * ) + 96 AS col2, ( 74 ) + + COALESCE ( - 13, 64 * - 30, + 17 + + + 27 + + COALESCE ( + 69, COALESCE ( + 99, - 35 * 18 + 23, 3 + - NULLIF ( 9, 33 + 6 ) * - 95 ), 17 * 5 - 91, + 43 ) / 90 ) / NULLIF ( + CAST( NULL AS SIGNED ) * - 29 + + 10 * 14, 48 * COUNT( * ) + + CAST( 78 - 26 AS SIGNED ) * 86 ) AS col2
----
97
NULL

skipif mysql # not compatible
query II rowsort label-7537
SELECT COUNT ( * ) + 96 AS col2, ( 74 ) + + COALESCE ( - 13, 64 * - 30, + 17 + + + 27 + + COALESCE ( + 69, COALESCE ( + 99, - 35 * 18 + 23, 3 + - NULLIF ( 9, 33 + 6 ) * - 95 ), 17 * 5 - 91, + 43 ) / 90 ) / NULLIF ( + CAST ( NULL AS INTEGER ) * - 29 + + 10 * 14, 48 * COUNT ( * ) + + CAST ( 78 - 26 AS INTEGER ) * 86 ) AS col2
----
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7538
SELECT 80 DIV + 25 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7538
SELECT 80 / + 25 AS col2
----
3

query I rowsort
SELECT ALL 14 * + 31 AS col1
----
434

query I rowsort
SELECT ALL - 20 * + - 97
----
1940

query II rowsort
SELECT 89, 2 col0
----
89
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL - 11 * - COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL - 11 * - COUNT ( * ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7543
SELECT ALL 68, COUNT( * ) AS col0
----
68
1

skipif mysql # not compatible
query II rowsort label-7543
SELECT ALL 68, COUNT ( * ) AS col0
----
68
1

query II rowsort
SELECT - 69 AS col0, 62
----
-69
62

query I rowsort
SELECT 80 * 8
----
640

query II rowsort
SELECT ALL 54 * 95 AS col2, + 72
----
5130
72

query I rowsort
SELECT 89 + + 22 AS col1
----
111

query II rowsort
SELECT 18 AS col2, 95 AS col0
----
18
95

query II rowsort
SELECT DISTINCT 36, - 39 + - - 86 * + + 24 AS col2
----
36
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT 86 + - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7550
SELECT 86 + - COUNT ( * ) AS col0
----
85

query II rowsort
SELECT ALL - CASE + + 16 WHEN 75 THEN ( + - 51 ) + - 19 END * - 30 AS col1, 96
----
NULL
96

query I rowsort
SELECT 95 * - + 16 * 88
----
-133760

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT ALL - ( - COUNT( * ) ) + 52 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL - ( - COUNT ( * ) ) + 52 AS col0
----
53

query I rowsort
SELECT 1 - 64
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-7555
SELECT DISTINCT - 76 DIV 32
----
-2

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT - 76 / 32
----
-2

query I rowsort
SELECT ALL - 34 + + - 70 * + - 43 - NULLIF ( - CASE + 6 WHEN 23 THEN + + 52 WHEN - 99 THEN + 25 - + + 60 * - 42 END, 67 ) AS col0
----
NULL

query I rowsort
SELECT 75 - + 58 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL + - MAX( + 69 ) * + COUNT( * ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL + - MAX ( + 69 ) * + COUNT ( * ) col0
----
-69

query I rowsort
SELECT DISTINCT + 26 + - + ( - - 90 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT MAX( DISTINCT - 64 ) + COUNT( * ) + 32 col1
----
-31

skipif mysql # not compatible
query I rowsort label-7560
SELECT MAX ( DISTINCT - 64 ) + COUNT ( * ) + 32 col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT - 58 * ( MIN( - 93 ) ) - + - 62 - - ( 71 ) + + 36 * 21 - - 34 * - + 38
----
4991

skipif mysql # not compatible
query I rowsort label-7561
SELECT - 58 * ( MIN ( - 93 ) ) - + - 62 - - ( 71 ) + + 36 * 21 - - 34 * - + 38
----
4991

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT ALL - COUNT( DISTINCT - 7 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL - COUNT ( DISTINCT - 7 ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7563
SELECT + 70 * + 46 * + 93 DIV - + MAX( DISTINCT 1 ) - 51 - - 10, ( - COALESCE ( COUNT( ALL + 32 ), ( CAST( 97 AS SIGNED ) ), - 50 ) ) * 9 AS col2
----
-299501
-9

skipif mysql # not compatible
query II rowsort label-7563
SELECT + 70 * + 46 * + 93 / - + MAX ( DISTINCT 1 ) - 51 - - 10, ( - COALESCE ( COUNT ( ALL + 32 ), ( CAST ( 97 AS INTEGER ) ), - 50 ) ) * 9 AS col2
----
-299501
-9

query II rowsort
SELECT + 1 AS col1, 25
----
1
25

query I rowsort
SELECT ALL - 32 - - 98 * - 28 * - - 3 AS col1
----
-8264

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT COALESCE ( - 1, - - 3, 18 * - + NULLIF ( + + 57, - NULLIF ( - 40, - COUNT( * ) * - - MIN( DISTINCT + 25 ) + + 75 ) ) * - 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-7566
SELECT COALESCE ( - 1, - - 3, 18 * - + NULLIF ( + + 57, - NULLIF ( - 40, - COUNT ( * ) * - - MIN ( DISTINCT + 25 ) + + 75 ) ) * - 5 )
----
-1

query II rowsort
SELECT ALL - 68 AS col1, + 40
----
-68
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7568
SELECT 52 * + CAST( NULL AS DECIMAL ) * - + 31 + - 73 * + ( - 56 ) + - 51 + 79 * - ( SUM( 45 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT 52 * + CAST ( NULL AS REAL ) * - + 31 + - 73 * + ( - 56 ) + - 51 + 79 * - ( SUM ( 45 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 40 * + 64 + 39 col1
----
2599

onlyif mysql # aggregate syntax: 
query II rowsort label-7570
SELECT DISTINCT - COUNT( * ) AS col1, 21
----
-1
21

skipif mysql # not compatible
query II rowsort label-7570
SELECT DISTINCT - COUNT ( * ) AS col1, 21
----
-1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT + - NULLIF ( - 93, + 81 + + 10 + + - 71 + + 38 + - - 4 + - - COUNT( * ) / + 73 * - COUNT( * ) * + 56 * MAX( - 35 ) - - 65 / - 59 * 89 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7571
SELECT + - NULLIF ( - 93, + 81 + + 10 + + - 71 + + 38 + - - 4 + - - COUNT ( * ) / + 73 * - COUNT ( * ) * + 56 * MAX ( - 35 ) - - 65 / - 59 * 89 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT ALL 97 * + + ( + COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL 97 * + + ( + COUNT ( * ) )
----
97

query II rowsort
SELECT + 75 AS col2, 78 + 28
----
75
106

query I rowsort
SELECT - ( - - 98 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT COUNT( ALL - - 18 ) * + 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7575
SELECT COUNT ( ALL - - 18 ) * + 34 AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7576
SELECT ALL MIN( 73 ) DIV - - 45 + + - 68 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL MIN ( 73 ) / - - 45 + + - 68 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-7577
SELECT ALL 48 + + + 20 AS col1, MAX( DISTINCT - + 45 ) AS col0
----
68
-45

skipif mysql # not compatible
query II rowsort label-7577
SELECT ALL 48 + + + 20 AS col1, MAX ( DISTINCT - + 45 ) AS col0
----
68
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT ALL 7 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL 7 / - 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7579
SELECT - MAX( + CAST( + - 44 AS SIGNED ) ) * - 22 - - - 68 + + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT - MAX ( + CAST ( + - 44 AS INTEGER ) ) * - 22 - - - 68 + + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 86 * 46 AS col1
----
3956

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7581
SELECT CAST( 4 AS SIGNED ) DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-7581
SELECT CAST ( 4 AS INTEGER ) / + 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT 31 + - 65 * - - COUNT( * ) * 28 AS col0
----
-1789

skipif mysql # not compatible
query I rowsort label-7582
SELECT 31 + - 65 * - - COUNT ( * ) * 28 AS col0
----
-1789

query I rowsort
SELECT ALL + ( - 55 ) + + 90 - 88 AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT ALL 65 * - NULLIF ( + 81, 83 - - - CAST( + 47 AS SIGNED ) ) AS col0
----
-5265

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL 65 * - NULLIF ( + 81, 83 - - - CAST ( + 47 AS INTEGER ) ) AS col0
----
-5265

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT - NULLIF ( + 36, 23 - + - 7 * COUNT( * ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7585
SELECT - NULLIF ( + 36, 23 - + - 7 * COUNT ( * ) ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL - COUNT( * ) + 59 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - COUNT ( * ) + 59 AS col2
----
58

query II rowsort
SELECT 24 * - 70 AS col1, + 45
----
-1680
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7588
SELECT ALL + ( + 95 ) DIV - 53 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL + ( + 95 ) / - 53 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7589
SELECT - - CAST( 65 AS SIGNED ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7589
SELECT - - CAST ( 65 AS INTEGER ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT ALL - - 35 - MAX( 50 )
----
-15

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL - - 35 - MAX ( 50 )
----
-15

query I rowsort
SELECT - 76 * + - 91 AS col0
----
6916

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7592
SELECT - 85 DIV - - MAX( 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-7592
SELECT - 85 / - - MAX ( 46 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7593
SELECT DISTINCT + 59 * - ( + 74 ) * + CAST( NULL AS SIGNED ) + + NULLIF ( 12, - CAST( NULL AS SIGNED ) ) AS col0, 45 - 52 AS col2
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-7593
SELECT DISTINCT + 59 * - ( + 74 ) * + CAST ( NULL AS INTEGER ) + + NULLIF ( 12, - CAST ( NULL AS INTEGER ) ) AS col0, 45 - 52 AS col2
----
NULL
-7

query I rowsort
SELECT ALL - - 90 * + + 45 - - 60
----
4110

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7595
SELECT CAST( - 24 AS SIGNED ) DIV ( - - 3 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7595
SELECT CAST ( - 24 AS INTEGER ) / ( - - 3 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT - - COUNT( * ) - - 65 * - + MIN( - 7 ) * 47
----
21386

skipif mysql # not compatible
query I rowsort label-7596
SELECT - - COUNT ( * ) - - 65 * - + MIN ( - 7 ) * 47
----
21386

query I rowsort
SELECT - - 40 * - 6
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT ALL + + 80 DIV 36 * - 44 - 38
----
-126

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL + + 80 / 36 * - 44 - 38
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT - ( + 44 ) DIV - + 11 + - + 35 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7599
SELECT - ( + 44 ) / - + 11 + - + 35 AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7600
SELECT DISTINCT - 47 DIV - 7
----
6

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT - 47 / - 7
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7601
SELECT + 53 AS col1, NULLIF ( CASE 76 WHEN + 6 + - + 40 * + ( + 92 ) THEN 1 * + 23 * - 45 / 75 END, - + 65 + + COALESCE ( + MAX( - 62 ) + + 79, 44 ) ) AS col2
----
53
NULL

skipif mysql # not compatible
query II rowsort label-7601
SELECT + 53 AS col1, NULLIF ( CASE 76 WHEN + 6 + - + 40 * + ( + 92 ) THEN 1 * + 23 * - 45 / 75 END, - + 65 + + COALESCE ( + MAX ( - 62 ) + + 79, 44 ) ) AS col2
----
53
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT - 49 - - 64 * - COALESCE ( + 16, - + 71, + CAST( NULL AS SIGNED ) ) * - 91 AS col1
----
93135

skipif mysql # not compatible
query I rowsort label-7602
SELECT - 49 - - 64 * - COALESCE ( + 16, - + 71, + CAST ( NULL AS INTEGER ) ) * - 91 AS col1
----
93135

query I rowsort
SELECT ALL + NULLIF ( 48, - + 46 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT + ( + 97 ) * + MAX( ALL - - 59 ) + + COALESCE ( 70, - - 92, - - 51 )
----
5793

skipif mysql # not compatible
query I rowsort label-7604
SELECT + ( + 97 ) * + MAX ( ALL - - 59 ) + + COALESCE ( 70, - - 92, - - 51 )
----
5793

query I rowsort
SELECT DISTINCT + 75 * ( 31 ) AS col2
----
2325

query II rowsort
SELECT - ( + 92 ) + + 4 col2, 59 AS col2
----
-88
59

query I rowsort
SELECT + CASE + + 35 WHEN - 43 - - 46 THEN NULL ELSE 3 END AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT ALL COUNT( * ) * - - 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL COUNT ( * ) * - - 93 AS col1
----
93

query I rowsort
SELECT - ( 94 ) * + 91 * 64 col1
----
-547456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT - 33 * CAST( 85 AS SIGNED ) + - - 46
----
-2759

skipif mysql # not compatible
query I rowsort label-7610
SELECT - 33 * CAST ( 85 AS INTEGER ) + - - 46
----
-2759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7611
SELECT DISTINCT NULLIF ( + 51, + - NULLIF ( + 26, - - 0 ) ) + - 30 - - 34 + + + 85 * 83 + + 50 * 50 DIV 76 + 44 + + 28 * + COUNT( * )
----
7214

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT NULLIF ( + 51, + - NULLIF ( + 26, - - 0 ) ) + - 30 - - 34 + + + 85 * 83 + + 50 * 50 / 76 + 44 + + 28 * + COUNT ( * )
----
7214

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT MAX( DISTINCT + 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7612
SELECT MAX ( DISTINCT + 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT MAX( + 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7613
SELECT MAX ( + 50 ) AS col0
----
50

query I rowsort
SELECT DISTINCT - 3 + 25 col2
----
22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7615
SELECT DISTINCT CAST( + - 99 AS SIGNED ) DIV + 22 + 2 - 71 - + 83
----
-156

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT CAST ( + - 99 AS INTEGER ) / + 22 + 2 - 71 - + 83
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-7616
SELECT 81 AS col1, + COUNT( * ) + - 42 + + - 45 * + 86
----
81
-3911

skipif mysql # not compatible
query II rowsort label-7616
SELECT 81 AS col1, + COUNT ( * ) + - 42 + + - 45 * + 86
----
81
-3911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7617
SELECT + 19 + - CASE + COUNT( * ) WHEN + - COUNT( * ) THEN NULL WHEN + 4 THEN NULL ELSE - 36 * CAST( NULL AS SIGNED ) END * + ( - - 3 ) * - - ( CASE + 92 WHEN + CASE 21 WHEN - 95 * 48 + + 88 THEN - 97 END - + 8 THEN 89 END ) + - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7617
SELECT + 19 + - CASE + COUNT ( * ) WHEN + - COUNT ( * ) THEN NULL WHEN + 4 THEN NULL ELSE - 36 * CAST ( NULL AS INTEGER ) END * + ( - - 3 ) * - - ( CASE + 92 WHEN + CASE 21 WHEN - 95 * 48 + + 88 THEN - 97 END - + 8 THEN 89 END ) + - 64 AS col1
----
NULL

query II rowsort
SELECT 25, 89 AS col2
----
25
89

query I rowsort
SELECT ALL 63 * - + 92 AS col0
----
-5796

onlyif mysql # aggregate syntax: 
query II rowsort label-7620
SELECT - - COUNT( * ), + 50 AS col2
----
1
50

skipif mysql # not compatible
query II rowsort label-7620
SELECT - - COUNT ( * ), + 50 AS col2
----
1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ALL 72 - 7 + + 77 * - + MIN( DISTINCT - ( + NULLIF ( - - 34, - 12 * - + 78 ) ) ) AS col2
----
2683

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL 72 - 7 + + 77 * - + MIN ( DISTINCT - ( + NULLIF ( - - 34, - 12 * - + 78 ) ) ) AS col2
----
2683

query II rowsort
SELECT + 41 AS col0, 48 AS col2
----
41
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7623
SELECT ALL + 90 * - COUNT( 34 ), SUM( DISTINCT - + 80 ) AS col1
----
-90
-80

skipif mysql # not compatible
query II rowsort label-7623
SELECT ALL + 90 * - COUNT ( 34 ), SUM ( DISTINCT - + 80 ) AS col1
----
-90
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7624
SELECT + + COUNT( ALL + - 91 ) - + 16 DIV 96 col0
----
1

skipif mysql # not compatible
query I rowsort label-7624
SELECT + + COUNT ( ALL + - 91 ) - + 16 / 96 col0
----
1

query I rowsort
SELECT DISTINCT 34 * + + 98 + 15 AS col2
----
3347

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT + + NULLIF ( - 75, + NULLIF ( COUNT( ALL 33 ), 34 ) ) + 86
----
11

skipif mysql # not compatible
query I rowsort label-7626
SELECT + + NULLIF ( - 75, + NULLIF ( COUNT ( ALL 33 ), 34 ) ) + 86
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL + NULLIF ( COUNT( * ), + ( + - 51 ) ) * + 28 * 9
----
252

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL + NULLIF ( COUNT ( * ), + ( + - 51 ) ) * + 28 * 9
----
252

query I rowsort
SELECT - - 60 + - 89
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT + COUNT( * ) + 88
----
89

skipif mysql # not compatible
query I rowsort label-7629
SELECT + COUNT ( * ) + 88
----
89

query I rowsort
SELECT - + 86 * - 11
----
946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7631
SELECT ALL + CAST( - NULLIF ( - + 68, - - 21 * + 15 ) AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL + CAST ( - NULLIF ( - + 68, - - 21 * + 15 ) AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT + 76 * MAX( 27 )
----
2052

skipif mysql # not compatible
query I rowsort label-7632
SELECT + 76 * MAX ( 27 )
----
2052

query II rowsort
SELECT + 21 AS col0, - 96 * 2
----
21
-192

onlyif mysql # aggregate syntax: 
query II rowsort label-7634
SELECT ALL + COUNT( + NULLIF ( 53, - 49 ) ) * + - 81, 16 + + - 28 * 18 AS col1
----
-81
-488

skipif mysql # not compatible
query II rowsort label-7634
SELECT ALL + COUNT ( + NULLIF ( 53, - 49 ) ) * + - 81, 16 + + - 28 * 18 AS col1
----
-81
-488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7635
SELECT DISTINCT CAST( NULL AS SIGNED ) / + ( + 38 ) + ( - 27 ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( + 38 ) + ( - 27 ) * 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7636
SELECT ALL - 10 * + 23 * NULLIF ( + 51, + 14 / - ( 75 ) ) * - + 70 + + 1 + + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) * + 88 + + - COUNT( * ) AS col1
----
821102
NULL

skipif mysql # not compatible
query II rowsort label-7636
SELECT ALL - 10 * + 23 * NULLIF ( + 51, + 14 / - ( 75 ) ) * - + 70 + + 1 + + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) * + 88 + + - COUNT ( * ) AS col1
----
821102
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7637
SELECT ALL - 61 * - + 65 AS col0, - ( + CASE + 10 WHEN 21 THEN + COUNT( * ) - - 18 END ) col1
----
3965
NULL

skipif mysql # not compatible
query II rowsort label-7637
SELECT ALL - 61 * - + 65 AS col0, - ( + CASE + 10 WHEN 21 THEN + COUNT ( * ) - - 18 END ) col1
----
3965
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7638
SELECT - 43 DIV - COUNT( DISTINCT + 46 )
----
43

skipif mysql # not compatible
query I rowsort label-7638
SELECT - 43 / - COUNT ( DISTINCT + 46 )
----
43

query I rowsort
SELECT - ( + 41 ) + - + 88 - - + 94 + - 61 AS col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT + CAST( + - 90 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-7640
SELECT + CAST ( + - 90 AS INTEGER )
----
-90

query II rowsort
SELECT ( 55 ) AS col0, - 96 AS col2
----
55
-96

query I rowsort
SELECT ALL + NULLIF ( - 97, - 22 + - AVG ( 21 ) + + 27 )
----
-97

query I rowsort
SELECT - COALESCE ( NULLIF ( 38, - 18 ), - 36 * - + 18, - 88 * + - 0 ) + + 74
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7644
SELECT 89 * 72 DIV - 17 + + COUNT( * ) + + - 50 * - - COALESCE ( + ( - - 2 ), + + MAX( ( - 40 ) ) + - + 95 ) + - + 59
----
-534

skipif mysql # not compatible
query I rowsort label-7644
SELECT 89 * 72 / - 17 + + COUNT ( * ) + + - 50 * - - COALESCE ( + ( - - 2 ), + + MAX ( ( - 40 ) ) + - + 95 ) + - + 59
----
-534

query I rowsort
SELECT DISTINCT - 0 * 73 + - 87 * - + 93 AS col0
----
8091

query I rowsort
SELECT - 59 * + - 84 AS col1
----
4956

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT ALL + SUM( DISTINCT 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL + SUM ( DISTINCT 3 ) AS col0
----
3

query I rowsort
SELECT - 77 + ( - + 93 ) * - 47
----
4294

query I rowsort
SELECT - 53 + - - 64 AS col1
----
11

query I rowsort
SELECT DISTINCT + 85 * - 86 - - + 92 AS col0
----
-7218

query I rowsort
SELECT - 41 + 60 + - 96 AS col0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7652
SELECT - 0 * - 36 DIV + - ( + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-7652
SELECT - 0 * - 36 / + - ( + 93 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT COUNT( + 96 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7653
SELECT COUNT ( + 96 ) AS col0
----
1

query I rowsort
SELECT ALL + 27 * + ( 50 ) AS col2
----
1350

query I rowsort
SELECT DISTINCT 52 * - + 5 * - 50
----
13000

onlyif mysql # aggregate syntax: 
query II rowsort label-7656
SELECT ALL - SUM( + 34 ) AS col0, 13 * + - 62
----
-34
-806

skipif mysql # not compatible
query II rowsort label-7656
SELECT ALL - SUM ( + 34 ) AS col0, 13 * + - 62
----
-34
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT - + COUNT( * ) * - - 47 * + + COUNT( * ) + + + 66
----
19

skipif mysql # not compatible
query I rowsort label-7657
SELECT - + COUNT ( * ) * - - 47 * + + COUNT ( * ) + + + 66
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7658
SELECT ALL - - 64 * - CASE - CASE - 55 WHEN - COALESCE ( + + 64, 36 + + - ( - - 52 ) ) * + COUNT( * ) - - 95 + - + 65 THEN NULL WHEN - 68 THEN NULL ELSE + - 31 / 63 END WHEN - 80 THEN + 78 / CAST( COUNT( * ) AS SIGNED ) END * - ( + 16 * 92 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - - 64 * - CASE - CASE - 55 WHEN - COALESCE ( + + 64, 36 + + - ( - - 52 ) ) * + COUNT ( * ) - - 95 + - + 65 THEN NULL WHEN - 68 THEN NULL ELSE + - 31 / 63 END WHEN - 80 THEN + 78 / CAST ( COUNT ( * ) AS INTEGER ) END * - ( + 16 * 92 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT ALL - COALESCE ( 70, 94 + - 35 + + 39 + + CAST( NULL AS SIGNED ), 33 )
----
-70

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL - COALESCE ( 70, 94 + - 35 + + 39 + + CAST ( NULL AS INTEGER ), 33 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT + + COUNT( * ) + - 11 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-7660
SELECT + + COUNT ( * ) + - 11 AS col2
----
-10

query I rowsort
SELECT ALL 6 * + - 99 AS col0
----
-594

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7662
SELECT 14 * - - 39 * - 94 - + 0 AS col0, + 55 + - CAST( NULL AS SIGNED ) col0
----
-51324
NULL

skipif mysql # not compatible
query II rowsort label-7662
SELECT 14 * - - 39 * - 94 - + 0 AS col0, + 55 + - CAST ( NULL AS INTEGER ) col0
----
-51324
NULL

query I rowsort
SELECT ALL 63 * 31 + 26
----
1979

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT 2 * MAX( DISTINCT - 77 )
----
-154

skipif mysql # not compatible
query I rowsort label-7664
SELECT 2 * MAX ( DISTINCT - 77 )
----
-154

query II rowsort
SELECT DISTINCT 81 + + 43, - 42 * + NULLIF ( 24, 99 ) AS col1
----
124
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ALL - COUNT( * ) * + - 70 col0
----
70

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL - COUNT ( * ) * + - 70 col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7667
SELECT 94 DIV + 46 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7667
SELECT 94 / + 46 AS col1
----
2

query I rowsort
SELECT ALL + 49 + + 56 + + 10 col1
----
115

query I rowsort
SELECT - + ( - 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT DISTINCT 9 + + - COUNT( * ) + - 39 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT 9 + + - COUNT ( * ) + - 39 AS col2
----
-31

query I rowsort
SELECT ALL - 68 + - 12 + - 25 AS col2
----
-105

query I rowsort
SELECT ALL 52 * + 9
----
468

query I rowsort
SELECT ALL - 2 + - - 40 * - 21 * 35 AS col0
----
-29402

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT DISTINCT - COALESCE ( - 46, COUNT( * ) ) + - - 10 col0
----
56

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT - COALESCE ( - 46, COUNT ( * ) ) + - - 10 col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT ALL - MAX( ALL + - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL - MAX ( ALL + - 54 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT DISTINCT 49 + - 37 - - 90 + - 9 * + - CASE + + 24 WHEN + 72 THEN NULL WHEN - CAST( NULL AS SIGNED ) * + 37 + 89 THEN + MAX( ALL 85 ) ELSE + 66 * 88 * CAST( - COUNT( * ) AS SIGNED ) END + + 49 * - 4
----
-52366

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT 49 + - 37 - - 90 + - 9 * + - CASE + + 24 WHEN + 72 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * + 37 + 89 THEN + MAX ( ALL 85 ) ELSE + 66 * 88 * CAST ( - COUNT ( * ) AS INTEGER ) END + + 49 * - 4
----
-52366

query I rowsort
SELECT ALL 84 + + - ( + 32 ) AS col0
----
52

query I rowsort
SELECT 24 * + + 26 * + 16 AS col0
----
9984

onlyif mysql # aggregate syntax: 
query III rowsort label-7679
SELECT + 18 col2, - 76 * 12 AS col2, - + 7 * - CASE + 46 WHEN 33 THEN 34 ELSE - - 50 * - + 36 END + - COALESCE ( + - MAX( - 75 ), MAX( 31 ) ) * + 16
----
18
-912
-13800

skipif mysql # not compatible
query III rowsort label-7679
SELECT + 18 col2, - 76 * 12 AS col2, - + 7 * - CASE + 46 WHEN 33 THEN 34 ELSE - - 50 * - + 36 END + - COALESCE ( + - MAX ( - 75 ), MAX ( 31 ) ) * + 16
----
18
-912
-13800

query I rowsort
SELECT DISTINCT - 12 * + 40
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT ALL - CASE + + COUNT( * ) WHEN + 15 THEN NULL WHEN 0 THEN - - COUNT( * ) + 2 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL - CASE + + COUNT ( * ) WHEN + 15 THEN NULL WHEN 0 THEN - - COUNT ( * ) + 2 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL - 3 - - COUNT( ALL + 5 ) * 61
----
58

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - 3 - - COUNT ( ALL + 5 ) * 61
----
58

query I rowsort
SELECT ALL 42 * - 51 AS col2
----
-2142

query I rowsort
SELECT DISTINCT - ( + 58 ) AS col1
----
-58

query I rowsort
SELECT ALL - ( + 41 ) col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL - CASE + 13 WHEN + 37 + + ( 95 ) + - + 67 THEN - + ( + SUM( - 93 ) ) WHEN 41 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL - CASE + 13 WHEN + 37 + + ( 95 ) + - + 67 THEN - + ( + SUM ( - 93 ) ) WHEN 41 THEN NULL END
----
NULL

query I rowsort
SELECT 40 * 75
----
3000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7688
SELECT 14 + 91 + + CAST( NULL AS SIGNED ) / - COUNT( * ) / 19 * - NULLIF ( - ( - 30 ), - 13 ) * - - 13 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT 14 + 91 + + CAST ( NULL AS INTEGER ) / - COUNT ( * ) / 19 * - NULLIF ( - ( - 30 ), - 13 ) * - - 13 * + 87
----
NULL

query II rowsort
SELECT + 93, - 92 AS col1
----
93
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7690
SELECT ALL - 65 DIV CAST( COALESCE ( - SUM( ALL + + 69 ), + + 65 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - 65 / CAST ( COALESCE ( - SUM ( ALL + + 69 ), + + 65 ) AS INTEGER ) AS col2
----
0

query I rowsort
SELECT + 28 * - - ( - + 36 ) AS col0
----
-1008

query II rowsort
SELECT ALL + 1 AS col0, + 14 AS col0
----
1
14

query I rowsort
SELECT DISTINCT + 16 * + 23 * + 41 col2
----
15088

query I rowsort
SELECT 37 * - + 0 * + 10 AS col1
----
0

query I rowsort
SELECT ALL - 13 * 85 + - 61 AS col1
----
-1166

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT - NULLIF ( + - MAX( ALL 28 ), 78 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7696
SELECT - NULLIF ( + - MAX ( ALL 28 ), 78 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT COUNT( * ) + - 84 + + 99
----
16

skipif mysql # not compatible
query I rowsort label-7697
SELECT COUNT ( * ) + - 84 + + 99
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT + COUNT( * ) * - - 41 * - 99
----
-4059

skipif mysql # not compatible
query I rowsort label-7698
SELECT + COUNT ( * ) * - - 41 * - 99
----
-4059

query I rowsort
SELECT ALL + ( - 98 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-7700
SELECT + ( - 56 ) + 62, MAX( 13 ) AS col1
----
6
13

skipif mysql # not compatible
query II rowsort label-7700
SELECT + ( - 56 ) + 62, MAX ( 13 ) AS col1
----
6
13

query I rowsort
SELECT ALL + 78 + ( 74 ) + - 69 * 37 AS col2
----
-2401

query I rowsort
SELECT DISTINCT - 19 + + 83
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL ( COUNT( * ) ) + - NULLIF ( COALESCE ( + COUNT( * ), - 28 ), + 51 )
----
0

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL ( COUNT ( * ) ) + - NULLIF ( COALESCE ( + COUNT ( * ), - 28 ), + 51 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL - + COUNT( * ) + - 76
----
-77

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL - + COUNT ( * ) + - 76
----
-77

query I rowsort
SELECT DISTINCT - 64 + - 53
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT ALL SUM( 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL SUM ( 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL 8 + + ( - COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL 8 + + ( - COUNT ( * ) )
----
7

query I rowsort
SELECT 70 + - 19
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT COUNT( * ) * 51 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-7709
SELECT COUNT ( * ) * 51 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7710
SELECT CAST( NULL AS SIGNED ) / - 2 + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7710
SELECT CAST ( NULL AS INTEGER ) / - 2 + + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT 98 * + 63 * - 94 - + COUNT( * ) * 10
----
-580366

skipif mysql # not compatible
query I rowsort label-7711
SELECT 98 * + 63 * - 94 - + COUNT ( * ) * 10
----
-580366

onlyif mysql # DIV for integer division: 
query II rowsort label-7712
SELECT ALL - 50, 38 DIV 76 * - + 28 + 9 col0
----
-50
9

skipif mysql # not compatible
query II rowsort label-7712
SELECT ALL - 50, 38 / 76 * - + 28 + 9 col0
----
-50
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7713
SELECT + 7 AS col0, - COUNT( * ) * + COUNT( * ) * + 36
----
7
-36

skipif mysql # not compatible
query II rowsort label-7713
SELECT + 7 AS col0, - COUNT ( * ) * + COUNT ( * ) * + 36
----
7
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7714
SELECT - 83 DIV 37 * - + 41 + + 25 AS col1, - COUNT( * ) AS col0
----
107
-1

skipif mysql # not compatible
query II rowsort label-7714
SELECT - 83 / 37 * - + 41 + + 25 AS col1, - COUNT ( * ) AS col0
----
107
-1

query I rowsort
SELECT DISTINCT 58 * - 32 - 88 AS col1
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL COUNT( * ) * - + 80
----
-80

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL COUNT ( * ) * - + 80
----
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-7717
SELECT ALL - 95, + 26 DIV 5 col1
----
-95
5

skipif mysql # not compatible
query II rowsort label-7717
SELECT ALL - 95, + 26 / 5 col1
----
-95
5

query II rowsort
SELECT ALL - 69 AS col1, 90 AS col0
----
-69
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7719
SELECT COUNT( - 12 ), ( - 72 ) - 74 AS col2
----
1
-146

skipif mysql # not compatible
query II rowsort label-7719
SELECT COUNT ( - 12 ), ( - 72 ) - 74 AS col2
----
1
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7720
SELECT - 95 * - 43 + + 55 * SUM( 85 ) * + MAX( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT - 95 * - 43 + + 55 * SUM ( 85 ) * + MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 49 * - + 76 AS col2
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT ALL - CASE 10 WHEN 27 THEN - + COUNT( - 17 ) * - MIN( DISTINCT - 88 ) - + + COUNT( * ) WHEN - 43 + + - MIN( - 43 ) + - 48 THEN + + 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL - CASE 10 WHEN 27 THEN - + COUNT ( - 17 ) * - MIN ( DISTINCT - 88 ) - + + COUNT ( * ) WHEN - 43 + + - MIN ( - 43 ) + - 48 THEN + + 17 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT COUNT( + 80 )
----
1

skipif mysql # not compatible
query I rowsort label-7723
SELECT COUNT ( + 80 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT ALL - COALESCE ( + 65, - CAST( NULL AS SIGNED ), + COALESCE ( + 42, - 37 ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL - COALESCE ( + 65, - CAST ( NULL AS INTEGER ), + COALESCE ( + 42, - 37 ) ) AS col0
----
-65

onlyif mysql # DIV for integer division: 
query III rowsort label-7725
SELECT DISTINCT - + 78 AS col2, + ( - - 61 ) DIV 80 AS col1, ( 39 )
----
-78
0
39

skipif mysql # not compatible
query III rowsort label-7725
SELECT DISTINCT - + 78 AS col2, + ( - - 61 ) / 80 AS col1, ( 39 )
----
-78
0
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT COUNT( * ) + - - SUM( + 79 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-7726
SELECT COUNT ( * ) + - - SUM ( + 79 ) AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT DISTINCT + 86 * + NULLIF ( - + CASE + 8 WHEN + CAST( NULL AS SIGNED ) THEN - 98 END, 20 / + - 63 ) * - 88 + - 88 + - - 73 - + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT + 86 * + NULLIF ( - + CASE + 8 WHEN + CAST ( NULL AS INTEGER ) THEN - 98 END, 20 / + - 63 ) * - 88 + - 88 + - - 73 - + - 16
----
NULL

query I rowsort
SELECT DISTINCT 0 * - 10 + 86
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7729
SELECT DISTINCT + + 75, CAST( NULL AS DECIMAL ) / COUNT( * ) + + - 25 / + + 67 col1
----
75
NULL

skipif mysql # not compatible
query II rowsort label-7729
SELECT DISTINCT + + 75, CAST ( NULL AS REAL ) / COUNT ( * ) + + - 25 / + + 67 col1
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT + + CASE + 3 WHEN + 60 - 10 + + 68 - - 6 / + 44 THEN NULL WHEN - - COUNT( ( 28 ) ) THEN - SUM( DISTINCT + 35 ) * + 82 ELSE NULL END / 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT + + CASE + 3 WHEN + 60 - 10 + + 68 - - 6 / + 44 THEN NULL WHEN - - COUNT ( ( 28 ) ) THEN - SUM ( DISTINCT + 35 ) * + 82 ELSE NULL END / 55
----
NULL

query I rowsort
SELECT + 5 * + 35 + - + 86
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL + 42 + 13 * - 58 * 91 * - COUNT( * ) AS col2
----
68656

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL + 42 + 13 * - 58 * 91 * - COUNT ( * ) AS col2
----
68656

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7733
SELECT + - CAST( NULL AS DECIMAL ) * + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7733
SELECT + - CAST ( NULL AS REAL ) * + + 21
----
NULL

query II rowsort
SELECT + 32 AS col0, + 0 + - 34 * 6 AS col2
----
32
-204

query I rowsort
SELECT - + ( - + 79 ) AS col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT + - 87 DIV 71 + + 80
----
79

skipif mysql # not compatible
query I rowsort label-7736
SELECT + - 87 / 71 + + 80
----
79

query I rowsort
SELECT - 85 + 52 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL + MIN( - + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + MIN ( - + 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT DISTINCT + - COUNT( 78 ) + NULLIF ( - - 62, - 48 * + + COUNT( + + 64 ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT + - COUNT ( 78 ) + NULLIF ( - - 62, - 48 * + + COUNT ( + + 64 ) ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL - - 8 + COUNT( * ) + + + 77 * - + 98 AS col1
----
-7537

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL - - 8 + COUNT ( * ) + + + 77 * - + 98 AS col1
----
-7537

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT - - MAX( ALL - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-7741
SELECT - - MAX ( ALL - 69 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7742
SELECT ALL + NULLIF ( + + 46, COALESCE ( - - 41, COUNT( * ) * - 3 / + CAST( NULL AS SIGNED ) * COUNT( * ) + - 57 + - + 22 * - COALESCE ( - 35, 10 * - 63 * + 16 + 26, 67 * + 9 ) ) + 97 ) + 66 * 12
----
838

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL + NULLIF ( + + 46, COALESCE ( - - 41, COUNT ( * ) * - 3 / + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 57 + - + 22 * - COALESCE ( - 35, 10 * - 63 * + 16 + 26, 67 * + 9 ) ) + 97 ) + 66 * 12
----
838

query I rowsort
SELECT DISTINCT + + 96 * - 61
----
-5856

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT DISTINCT + + MIN( DISTINCT - + 81 ) + 11
----
-70

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT + + MIN ( DISTINCT - + 81 ) + 11
----
-70

query I rowsort
SELECT ALL - 35 + 44
----
9

query II rowsort
SELECT - ( - + 29 ) AS col1, 3 AS col2
----
29
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7747
SELECT - MAX( DISTINCT CAST( + 90 AS SIGNED ) ) col2
----
-90

skipif mysql # not compatible
query I rowsort label-7747
SELECT - MAX ( DISTINCT CAST ( + 90 AS INTEGER ) ) col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT ( + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT ( + CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7749
SELECT + 96 + - 79, ( - 71 ) - + 10 DIV + 42 AS col1
----
17
-71

skipif mysql # not compatible
query II rowsort label-7749
SELECT + 96 + - 79, ( - 71 ) - + 10 / + 42 AS col1
----
17
-71

query I rowsort
SELECT + 72 + - 32
----
40

query I rowsort
SELECT - 60 * - ( - - 32 )
----
1920

query I rowsort
SELECT ALL + 30 * + 85 AS col2
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT ( NULLIF ( COUNT( * ), + 30 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7753
SELECT ( NULLIF ( COUNT ( * ), + 30 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7754
SELECT + MAX( + - 80 ) AS col2, COUNT( * ) + + - 36
----
-80
-35

skipif mysql # not compatible
query II rowsort label-7754
SELECT + MAX ( + - 80 ) AS col2, COUNT ( * ) + + - 36
----
-80
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT - 0 - + 45 + CASE - - 52 WHEN MIN( DISTINCT + + 11 ) * + - 72 THEN NULL WHEN - CASE - + COALESCE ( COUNT( * ), + COUNT( * ) ) WHEN - - 48 THEN NULL WHEN COUNT( * ) THEN + 58 - + + 15 ELSE 72 END THEN 18 * + COUNT( 3 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT - 0 - + 45 + CASE - - 52 WHEN MIN ( DISTINCT + + 11 ) * + - 72 THEN NULL WHEN - CASE - + COALESCE ( COUNT ( * ), + COUNT ( * ) ) WHEN - - 48 THEN NULL WHEN COUNT ( * ) THEN + 58 - + + 15 ELSE 72 END THEN 18 * + COUNT ( 3 ) END AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - 69, 56 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT - SUM( + - 92 ) * - 35 + + MIN( DISTINCT + 34 )
----
-3186

skipif mysql # not compatible
query I rowsort label-7757
SELECT - SUM ( + - 92 ) * - 35 + + MIN ( DISTINCT + 34 )
----
-3186

query I rowsort
SELECT ALL ( 39 ) * + + 83 * + - 71 AS col1
----
-229827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7759
SELECT - 94 * COUNT( * ) * - - CASE - NULLIF ( + + 44, + NULLIF ( + - CAST( NULL AS SIGNED ), + - 42 * - COUNT( * ) ) ) WHEN - ( - COUNT( * ) ) + - 77 + - 72 * - CAST( NULL AS DECIMAL ) THEN NULL WHEN + 83 THEN 97 * - 94 ELSE NULL END / + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT - 94 * COUNT ( * ) * - - CASE - NULLIF ( + + 44, + NULLIF ( + - CAST ( NULL AS INTEGER ), + - 42 * - COUNT ( * ) ) ) WHEN - ( - COUNT ( * ) ) + - 77 + - 72 * - CAST ( NULL AS REAL ) THEN NULL WHEN + 83 THEN 97 * - 94 ELSE NULL END / + 60 AS col1
----
NULL

query I rowsort
SELECT + 41 / - CASE + - 46 WHEN - 3 THEN + 48 ELSE NULL END + + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ( + MIN( DISTINCT 40 ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7761
SELECT ( + MIN ( DISTINCT 40 ) ) AS col0
----
40

query I rowsort
SELECT ALL 82 * + 28 col2
----
2296

onlyif mysql # aggregate syntax: 
query II rowsort label-7763
SELECT DISTINCT + COUNT( - 83 ), - NULLIF ( - COALESCE ( + + 43, + + 66, 15 * 9 * - 63 + + 7 + - 93 + + SUM( - COALESCE ( - 18, + - 6 ) ) * + - 48 ), 41 / 67 - 8 ) AS col0
----
1
43

skipif mysql # not compatible
query II rowsort label-7763
SELECT DISTINCT + COUNT ( - 83 ), - NULLIF ( - COALESCE ( + + 43, + + 66, 15 * 9 * - 63 + + 7 + - 93 + + SUM ( - COALESCE ( - 18, + - 6 ) ) * + - 48 ), 41 / 67 - 8 ) AS col0
----
1
43

query I rowsort
SELECT + 23 - + 56
----
-33

query I rowsort
SELECT ALL + + ( + 36 )
----
36

query I rowsort
SELECT + + 52 * + - 44 * 40 * - 88 AS col1
----
8053760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7767
SELECT ALL - - COUNT( * ) * - + 23 + COALESCE ( - 1, CASE - 92 WHEN + CASE + SUM( ALL - 76 ) WHEN - COALESCE ( - + 49, + 79 * + AVG ( 78 ) + 13 + + 10 ) + + + COUNT( * ) + COALESCE ( - 18, COUNT( * ) ) THEN - 71 END THEN 28 DIV COUNT( * ) + + 62 DIV - 14 END, - 84 - - ( 43 ) ) + 64
----
40

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL - - COUNT ( * ) * - + 23 + COALESCE ( - 1, CASE - 92 WHEN + CASE + SUM ( ALL - 76 ) WHEN - COALESCE ( - + 49, + 79 * + AVG ( 78 ) + 13 + + 10 ) + + + COUNT ( * ) + COALESCE ( - 18, COUNT ( * ) ) THEN - 71 END THEN 28 / COUNT ( * ) + + 62 / - 14 END, - 84 - - ( 43 ) ) + 64
----
40

query I rowsort
SELECT - ( + ( - 30 ) ) AS col2
----
30

query II rowsort
SELECT ALL 94 * - 83 + - 72 AS col2, + 75 + - 38
----
-7874
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT SUM( DISTINCT COALESCE ( + 80, + + 87, - 10 * - ( + 53 ) * - 92 * + 1 * 45 * + 81 + - 54 + - 34 ) )
----
80

skipif mysql # not compatible
query I rowsort label-7770
SELECT SUM ( DISTINCT COALESCE ( + 80, + + 87, - 10 * - ( + 53 ) * - 92 * + 1 * 45 * + 81 + - 54 + - 34 ) )
----
80

query I rowsort
SELECT + 86 * + + 34
----
2924

query I rowsort
SELECT DISTINCT 19 * + 76 + + 36 + 35
----
1515

query II rowsort
SELECT - 74 - 37, - 91 AS col2
----
-111
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7774
SELECT - - CAST( + - 12 AS SIGNED ), + 20 AS col2
----
-12
20

skipif mysql # not compatible
query II rowsort label-7774
SELECT - - CAST ( + - 12 AS INTEGER ), + 20 AS col2
----
-12
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7775
SELECT + - 75 DIV - - 7 + 25 - + COUNT( * ) * 27 + + 21 DIV - 22 * 14 * + MAX( DISTINCT + + NULLIF ( + - 47, 23 DIV - 96 + 8 ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7775
SELECT + - 75 / - - 7 + 25 - + COUNT ( * ) * 27 + + 21 / - 22 * 14 * + MAX ( DISTINCT + + NULLIF ( + - 47, 23 / - 96 + 8 ) ) AS col1
----
-12

query I rowsort
SELECT ALL + 70 + + - 69 * + 40
----
-2690

query I rowsort
SELECT - - ( + 93 ) AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7778
SELECT + 2 + + COUNT( * ) DIV 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7778
SELECT + 2 + + COUNT ( * ) / 28 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT - COUNT( ALL 38 ) - + 91 + - 69 * + 94 * - 0
----
-92

skipif mysql # not compatible
query I rowsort label-7779
SELECT - COUNT ( ALL 38 ) - + 91 + - 69 * + 94 * - 0
----
-92

query II rowsort
SELECT + 15 + - + 70 col0, 41
----
-55
41

query I rowsort
SELECT - 43 + + 87 AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7782
SELECT ALL - MIN( DISTINCT + CAST( + 56 AS SIGNED ) ) DIV + COALESCE ( - 23, + - 80 * - - CASE + 43 WHEN - ( + AVG ( ALL 1 ) ) THEN NULL WHEN + 87 * 24 + + 87 + + COUNT( * ) + + + 89 * - - 30 + - CAST( - 78 AS SIGNED ) - + 60 THEN - CASE - 22 WHEN - 21 THEN 63 WHEN - 93 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN 30 + + 35 * 78 THEN NULL END - MAX( ALL 94 ) WHEN 76 THEN NULL END DIV COALESCE ( 52, - COUNT( * ) * + 94 ), + 46 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL - MIN ( DISTINCT + CAST ( + 56 AS INTEGER ) ) / + COALESCE ( - 23, + - 80 * - - CASE + 43 WHEN - ( + AVG ( ALL 1 ) ) THEN NULL WHEN + 87 * 24 + + 87 + + COUNT ( * ) + + + 89 * - - 30 + - CAST ( - 78 AS INTEGER ) - + 60 THEN - CASE - 22 WHEN - 21 THEN 63 WHEN - 93 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN 30 + + 35 * 78 THEN NULL END - MAX ( ALL 94 ) WHEN 76 THEN NULL END / COALESCE ( 52, - COUNT ( * ) * + 94 ), + 46 ) AS col0
----
2

query I rowsort
SELECT - 61 + 46 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL MIN( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL MIN ( - 32 )
----
-32

query I rowsort
SELECT - 37 + + 34 * + 41 * 13 AS col1
----
18085

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT ALL CAST( - + 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL CAST ( - + 83 AS INTEGER )
----
-83

query I rowsort
SELECT ALL - 44 * + 86 AS col1
----
-3784

query I rowsort
SELECT - 13 + - 94
----
-107

onlyif mysql # aggregate syntax: 
query II rowsort label-7789
SELECT ALL COALESCE ( - ( - 41 ), - 75 + MAX( - 22 ) ) AS col2, MAX( DISTINCT 1 )
----
41
1

skipif mysql # not compatible
query II rowsort label-7789
SELECT ALL COALESCE ( - ( - 41 ), - 75 + MAX ( - 22 ) ) AS col2, MAX ( DISTINCT 1 )
----
41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT - 89 + - MAX( ALL + ( + - CASE 52 WHEN - + 88 + - + 32 THEN - 77 WHEN 11 THEN 4 ELSE - + 0 + 67 END ) ) * - 1 col2
----
-156

skipif mysql # not compatible
query I rowsort label-7790
SELECT - 89 + - MAX ( ALL + ( + - CASE 52 WHEN - + 88 + - + 32 THEN - 77 WHEN 11 THEN 4 ELSE - + 0 + 67 END ) ) * - 1 col2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - 1 + + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7791
SELECT - 1 + + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7792
SELECT ALL + 99 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL + 99 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 77 + - 63 + - - 93 * + NULLIF ( + ( + 28 ), + 36 * + 94 )
----
2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7794
SELECT + 37 DIV + - COUNT( * ) + + 24
----
-13

skipif mysql # not compatible
query I rowsort label-7794
SELECT + 37 / + - COUNT ( * ) + + 24
----
-13

query I rowsort
SELECT - 71 * + 54 * + ( + 29 )
----
-111186

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT DISTINCT + MAX( ALL 11 ) + + MIN( DISTINCT + + ( 20 ) ) * + - 34 * 98 AS col0
----
-66629

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT + MAX ( ALL 11 ) + + MIN ( DISTINCT + + ( 20 ) ) * + - 34 * 98 AS col0
----
-66629

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7797
SELECT ALL - 10 + 0 DIV - - 41, COUNT( * ) + - + COUNT( * ) AS col2
----
-10
0

skipif mysql # not compatible
query II rowsort label-7797
SELECT ALL - 10 + 0 / - - 41, COUNT ( * ) + - + COUNT ( * ) AS col2
----
-10
0

query II rowsort
SELECT DISTINCT - + 96 col2, + 41
----
-96
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT + 21 * - - 81 + + 50 - + 19 * - COUNT( * ) * + - 25 * - 40 - + 56 * - 46 AS col2
----
23327

skipif mysql # not compatible
query I rowsort label-7799
SELECT + 21 * - - 81 + + 50 - + 19 * - COUNT ( * ) * + - 25 * - 40 - + 56 * - 46 AS col2
----
23327

query I rowsort
SELECT + 40 * 82
----
3280

query I rowsort
SELECT ALL - 34 + + 1 AS col2
----
-33

query I rowsort
SELECT DISTINCT - - ( - 81 )
----
-81

query I rowsort
SELECT + 6 + + - ( 51 )
----
-45

query I rowsort
SELECT CASE - 4 WHEN - 60 THEN - 49 ELSE NULL END * - - 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7805
SELECT + 23 col0, + ( - 35 ) + - COUNT( * ) AS col2
----
23
-36

skipif mysql # not compatible
query II rowsort label-7805
SELECT + 23 col0, + ( - 35 ) + - COUNT ( * ) AS col2
----
23
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT COUNT( * ) * - 73 * + - 17
----
1241

skipif mysql # not compatible
query I rowsort label-7806
SELECT COUNT ( * ) * - 73 * + - 17
----
1241

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT 30 * + 76 + - 37 DIV - + 79 AS col0
----
2280

skipif mysql # not compatible
query I rowsort label-7807
SELECT 30 * + 76 + - 37 / - + 79 AS col0
----
2280

query I rowsort
SELECT ALL + 58 - 32
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7809
SELECT + 22 * - - 82 * - 51 * + MIN( 12 ) * - + 39 AS col1, 0
----
43057872
0

skipif mysql # not compatible
query II rowsort label-7809
SELECT + 22 * - - 82 * - 51 * + MIN ( 12 ) * - + 39 AS col1, 0
----
43057872
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT DISTINCT CAST( NULL AS SIGNED ) - + + 42 * + ( - + ( 46 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + + 42 * + ( - + ( 46 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT CAST( NULL AS SIGNED ) * + ( - 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT CAST ( NULL AS INTEGER ) * + ( - 67 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL - MAX( 52 ) * COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL - MAX ( 52 ) * COUNT ( * ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT DISTINCT - ( - 91 ) * - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT - ( - 91 ) * - COUNT ( * )
----
-91

query I rowsort
SELECT 33 * - + 5 AS col0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7815
SELECT ALL 13 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL 13 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 23 * - + 47
----
-1081

query II rowsort
SELECT 59 * + + 15 AS col0, 78
----
885
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT DISTINCT NULLIF ( ( 12 ), + MIN( + 25 ) ) * - - ( + - 32 )
----
-384

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT NULLIF ( ( 12 ), + MIN ( + 25 ) ) * - - ( + - 32 )
----
-384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT CAST( NULL AS SIGNED ) - + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT CAST ( NULL AS INTEGER ) - + + 13
----
NULL

query I rowsort
SELECT ALL 12 + 29 * - 89
----
-2569

query I rowsort
SELECT DISTINCT ( 21 ) + - 93 AS col0
----
-72

query I rowsort
SELECT ALL - 5 * - ( + 80 )
----
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7823
SELECT 55 DIV - SUM( DISTINCT + + 62 )
----
0

skipif mysql # not compatible
query I rowsort label-7823
SELECT 55 / - SUM ( DISTINCT + + 62 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7824
SELECT COUNT( * ) + - 22 DIV - 52
----
1

skipif mysql # not compatible
query I rowsort label-7824
SELECT COUNT ( * ) + - 22 / - 52
----
1

query I rowsort
SELECT - + 79 * - - 50 + + 53
----
-3897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7826
SELECT + COUNT( * ) + - CASE - 8 WHEN - + 86 THEN + ( COUNT( * ) ) WHEN + COUNT( * ) * + 31 + NULLIF ( - - COUNT( * ), + CAST( - + 23 AS SIGNED ) + + 3 * - - 29 ) + 6 + + 61 THEN NULL ELSE 60 END * NULLIF ( + - 36, 79 * 35 ) - - COUNT( * )
----
2162

skipif mysql # not compatible
query I rowsort label-7826
SELECT + COUNT ( * ) + - CASE - 8 WHEN - + 86 THEN + ( COUNT ( * ) ) WHEN + COUNT ( * ) * + 31 + NULLIF ( - - COUNT ( * ), + CAST ( - + 23 AS INTEGER ) + + 3 * - - 29 ) + 6 + + 61 THEN NULL ELSE 60 END * NULLIF ( + - 36, 79 * 35 ) - - COUNT ( * )
----
2162

onlyif mysql # aggregate syntax: 
query II rowsort label-7827
SELECT DISTINCT - + 77 + + 91 AS col0, COUNT( - ( + - 23 ) ) col0
----
14
1

skipif mysql # not compatible
query II rowsort label-7827
SELECT DISTINCT - + 77 + + 91 AS col0, COUNT ( - ( + - 23 ) ) col0
----
14
1

query I rowsort
SELECT DISTINCT 47 * + + 50 - + ( - 58 ) + 4 + - 51 AS col2
----
2361

query I rowsort
SELECT + ( + 48 ) * + 23 AS col1
----
1104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT DISTINCT - COALESCE ( + + 25, - 95, - COALESCE ( + + ( 43 ), - 62 + CAST( NULL AS SIGNED ), 14 ) ) - 96 + - 50 AS col1
----
-171

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT - COALESCE ( + + 25, - 95, - COALESCE ( + + ( 43 ), - 62 + CAST ( NULL AS INTEGER ), 14 ) ) - 96 + - 50 AS col1
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL - - ( - 59 ) - - NULLIF ( COUNT( - - 94 ), + MAX( DISTINCT - ( + 86 ) ) )
----
-58

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - - ( - 59 ) - - NULLIF ( COUNT ( - - 94 ), + MAX ( DISTINCT - ( + 86 ) ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT + COALESCE ( + - 95, - + COUNT( DISTINCT + - 99 ), - COUNT( * ) ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-7832
SELECT + COALESCE ( + - 95, - + COUNT ( DISTINCT + - 99 ), - COUNT ( * ) ) AS col1
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-7833
SELECT 8 + + 83 + - 63 - + 69 DIV + 98 + 33
----
61

skipif mysql # not compatible
query I rowsort label-7833
SELECT 8 + + 83 + - 63 - + 69 / + 98 + 33
----
61

query I rowsort
SELECT 85 * + 25 * - - 75 AS col2
----
159375

query II rowsort
SELECT + ( + 80 ) AS col2, - 27 + + 59 + - 76
----
80
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT - 20 - + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-7836
SELECT - 20 - + - COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT DISTINCT MIN( ALL + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT MIN ( ALL + 9 ) AS col0
----
9

query I rowsort
SELECT ALL - 71 * 43
----
-3053

query I rowsort
SELECT 4 + + - 53
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT COUNT( * ) - + 72 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-7840
SELECT COUNT ( * ) - + 72 AS col1
----
-71

query I rowsort
SELECT 43 * - + ( - - 58 ) * - 44
----
109736

query I rowsort
SELECT 14 + 5 * - 85
----
-411

query I rowsort
SELECT 20 * - - 25
----
500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7844
SELECT ALL - 82 + 63 + - 19 * - - 83 * 98 + + - 18 + MAX( DISTINCT CASE - 10 WHEN + - 23 - - 99 THEN + CAST( + 25 AS SIGNED ) + 90 + - 88 * + 95 WHEN 46 / - 13 * - - 11 THEN NULL END ) / - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL - 82 + 63 + - 19 * - - 83 * 98 + + - 18 + MAX ( DISTINCT CASE - 10 WHEN + - 23 - - 99 THEN + CAST ( + 25 AS INTEGER ) + 90 + - 88 * + 95 WHEN 46 / - 13 * - - 11 THEN NULL END ) / - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT 39 + COUNT( * ) + 60 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-7845
SELECT 39 + COUNT ( * ) + 60 AS col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7846
SELECT ALL 18 + - COUNT( * ) + + - 47 + 62 DIV + 27 * - + CAST( - COUNT( * ) AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL 18 + - COUNT ( * ) + + - 47 + 62 / + 27 * - + CAST ( - COUNT ( * ) AS INTEGER )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT + COUNT( * ) + - 65
----
-64

skipif mysql # not compatible
query I rowsort label-7847
SELECT + COUNT ( * ) + - 65
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7848
SELECT ALL ( 76 ) + - 7 AS col1, + COUNT( * ) - 60
----
69
-59

skipif mysql # not compatible
query II rowsort label-7848
SELECT ALL ( 76 ) + - 7 AS col1, + COUNT ( * ) - 60
----
69
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT - MIN( + 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7849
SELECT - MIN ( + 72 ) AS col0
----
-72

query I rowsort
SELECT ALL 23 * - 9 AS col2
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT - MAX( ALL - - 74 ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-7851
SELECT - MAX ( ALL - - 74 ) col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT - MIN( - + NULLIF ( - 58, + 30 * ( + ( - + 37 ) ) ) )
----
-58

skipif mysql # not compatible
query I rowsort label-7852
SELECT - MIN ( - + NULLIF ( - 58, + 30 * ( + ( - + 37 ) ) ) )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT + 64 * + - CAST( + AVG ( ALL - 64 ) AS SIGNED ) AS col1
----
4096

skipif mysql # not compatible
query I rowsort label-7853
SELECT + 64 * + - CAST ( + AVG ( ALL - 64 ) AS INTEGER ) AS col1
----
4096

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT - MIN( ALL - 42 ) + - 81 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7854
SELECT - MIN ( ALL - 42 ) + - 81 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL + 3 * - 89 * + COALESCE ( + - 6, + AVG ( ALL 30 ) ) + - CASE 40 WHEN - 99 THEN - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL + 3 * - 89 * + COALESCE ( + - 6, + AVG ( ALL 30 ) ) + - CASE 40 WHEN - 99 THEN - COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + ( 41 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7857
SELECT ALL + - 62 DIV 7
----
-8

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + - 62 / 7
----
-8

query II rowsort
SELECT ALL + 54, + 18 AS col1
----
54
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT + NULLIF ( - 86, + 26 * COUNT( * ) )
----
-86

skipif mysql # not compatible
query I rowsort label-7859
SELECT + NULLIF ( - 86, + 26 * COUNT ( * ) )
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT + + 93 DIV - - 12 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7860
SELECT + + 93 / - - 12 AS col1
----
7

query I rowsort
SELECT - + 88 * + 97 AS col1
----
-8536

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT ALL + 82 DIV + + 82
----
1

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL + 82 / + + 82
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7863
SELECT + + SUM( + 46 ) + + 21 AS col2, - CAST( 88 AS SIGNED )
----
67
-88

skipif mysql # not compatible
query II rowsort label-7863
SELECT + + SUM ( + 46 ) + + 21 AS col2, - CAST ( 88 AS INTEGER )
----
67
-88

query I rowsort
SELECT DISTINCT - + 57 * + 93 - + 49 * - 65 AS col1
----
-2116

query I rowsort
SELECT - 95 * + + 97
----
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT DISTINCT + + COUNT( - 64 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT + + COUNT ( - 64 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT - - 61 + + + SUM( DISTINCT - - 51 )
----
112

skipif mysql # not compatible
query I rowsort label-7867
SELECT - - 61 + + + SUM ( DISTINCT - - 51 )
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7868
SELECT - 99 * 69 + 63 + + NULLIF ( COUNT( * ), + - 8 ) * - 4 * + + CAST( - - 90 AS SIGNED ) - NULLIF ( + + 49, + 13 + + 55 ) + - 40 + + 39 + - - 45 + - + NULLIF ( + - 56, 39 ) + - CAST( + 88 AS SIGNED ) + + ( - COUNT( * ) )
----
-7166

skipif mysql # not compatible
query I rowsort label-7868
SELECT - 99 * 69 + 63 + + NULLIF ( COUNT ( * ), + - 8 ) * - 4 * + + CAST ( - - 90 AS INTEGER ) - NULLIF ( + + 49, + 13 + + 55 ) + - 40 + + 39 + - - 45 + - + NULLIF ( + - 56, 39 ) + - CAST ( + 88 AS INTEGER ) + + ( - COUNT ( * ) )
----
-7166

onlyif mysql # aggregate syntax: 
query II rowsort label-7869
SELECT DISTINCT + MAX( ALL 61 ) col2, + 52
----
61
52

skipif mysql # not compatible
query II rowsort label-7869
SELECT DISTINCT + MAX ( ALL 61 ) col2, + 52
----
61
52

query I rowsort
SELECT ALL + 32 * - 37 + - 45 AS col2
----
-1229

onlyif mysql # aggregate syntax: 
query II rowsort label-7871
SELECT COUNT( * ) AS col2, + 87
----
1
87

skipif mysql # not compatible
query II rowsort label-7871
SELECT COUNT ( * ) AS col2, + 87
----
1
87

query I rowsort
SELECT - 78 * 67
----
-5226

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT + 84 + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-7873
SELECT + 84 + COUNT ( * )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7874
SELECT ALL + CAST( NULL AS SIGNED ) / - CAST( - 11 AS SIGNED ) * + + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL + CAST ( NULL AS INTEGER ) / - CAST ( - 11 AS INTEGER ) * + + 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT ALL - COUNT( * ) + + - 20
----
-21

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL - COUNT ( * ) + + - 20
----
-21

query II rowsort
SELECT - 11, 93 AS col2
----
-11
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT DISTINCT 83 + - + 20 * + + 60 + + 48 / + 80 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT 83 + - + 20 * + + 60 + + 48 / + 80 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 18 + - 64 - - + 77
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 31
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7880
SELECT + COALESCE ( 30, + 18, - + 5 ) DIV - - COUNT( * ) * COUNT( * ), 2 * ( + 90 ) * + 88 + - 29 AS col1
----
30
15811

skipif mysql # not compatible
query II rowsort label-7880
SELECT + COALESCE ( 30, + 18, - + 5 ) / - - COUNT ( * ) * COUNT ( * ), 2 * ( + 90 ) * + 88 + - 29 AS col1
----
30
15811

onlyif mysql # DIV for integer division: 
query I rowsort label-7881
SELECT - 12 - - 98 DIV - 1
----
-110

skipif mysql # not compatible
query I rowsort label-7881
SELECT - 12 - - 98 / - 1
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7882
SELECT DISTINCT CAST( - + 46 AS SIGNED ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT CAST ( - + 46 AS INTEGER ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7883
SELECT ALL - 51 + + COUNT( * ) DIV - - CAST( 32 AS SIGNED ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL - 51 + + COUNT ( * ) / - - CAST ( 32 AS INTEGER ) AS col2
----
-51

query I rowsort
SELECT - 88 * 18 col1
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT - MIN( DISTINCT 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7885
SELECT - MIN ( DISTINCT 32 ) AS col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7886
SELECT 46 AS col1, 87 DIV - - 98 * COUNT( * ) col0
----
46
0

skipif mysql # not compatible
query II rowsort label-7886
SELECT 46 AS col1, 87 / - - 98 * COUNT ( * ) col0
----
46
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7887
SELECT + 58 * - CAST( - + 25 AS SIGNED )
----
1450

skipif mysql # not compatible
query I rowsort label-7887
SELECT + 58 * - CAST ( - + 25 AS INTEGER )
----
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT DISTINCT - COUNT( - 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT - COUNT ( - 74 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7889
SELECT DISTINCT - - 93 - - AVG ( ALL - + CASE - 36 WHEN 65 THEN NULL WHEN + 84 * - CAST( NULL AS DECIMAL ) + 82 - - 16 THEN + 33 + - 16 END ) + - - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT - - 93 - - AVG ( ALL - + CASE - 36 WHEN 65 THEN NULL WHEN + 84 * - CAST ( NULL AS REAL ) + 82 - - 16 THEN + 33 + - 16 END ) + - - 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT ALL 7 * + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL 7 * + COUNT ( * ) AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7891
SELECT ALL 43 / + AVG ( + 89 ) / COALESCE ( NULLIF ( - + COUNT( * ), + 0 ), + - 12 * + 86 ) / + - 22 + - CAST( NULL AS SIGNED ) - + - 71 AS col1, - ( - 95 ) AS col1, + 46 - - 50 - + + 34 AS col0
----
NULL
95
62

skipif mysql # not compatible
query III rowsort label-7891
SELECT ALL 43 / + AVG ( + 89 ) / COALESCE ( NULLIF ( - + COUNT ( * ), + 0 ), + - 12 * + 86 ) / + - 22 + - CAST ( NULL AS INTEGER ) - + - 71 AS col1, - ( - 95 ) AS col1, + 46 - - 50 - + + 34 AS col0
----
NULL
95
62

onlyif mysql # DIV for integer division: 
query II rowsort label-7892
SELECT DISTINCT + - 51, 24 DIV - 50 AS col0
----
-51
0

skipif mysql # not compatible
query II rowsort label-7892
SELECT DISTINCT + - 51, 24 / - 50 AS col0
----
-51
0

query I rowsort
SELECT + + COALESCE ( 75, + 95 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7894
SELECT + CAST( NULL AS SIGNED ), + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7894
SELECT + CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL - 53 * - 79 + - 62 * CASE + + MIN( DISTINCT + 22 ) WHEN 82 THEN NULL ELSE 54 END AS col2
----
839

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - 53 * - 79 + - 62 * CASE + + MIN ( DISTINCT + 22 ) WHEN 82 THEN NULL ELSE 54 END AS col2
----
839

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT + + 48 + - COUNT( - - 64 ) + - - 27 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-7896
SELECT + + 48 + - COUNT ( - - 64 ) + - - 27 AS col2
----
74

query I rowsort
SELECT + 27 - + + 11 * - + 37 * - 75 col0
----
-30498

onlyif mysql # aggregate syntax: 
query II rowsort label-7898
SELECT ALL + 79 AS col0, + 83 * - - COUNT( * ) * - 60 + - 48 * 1
----
79
-5028

skipif mysql # not compatible
query II rowsort label-7898
SELECT ALL + 79 AS col0, + 83 * - - COUNT ( * ) * - 60 + - 48 * 1
----
79
-5028

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7899
SELECT ALL ( + 61 ) * - COALESCE ( + CAST( - 28 AS SIGNED ), + 98 ) * - - CAST( NULL AS SIGNED ) * + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL ( + 61 ) * - COALESCE ( + CAST ( - 28 AS INTEGER ), + 98 ) * - - CAST ( NULL AS INTEGER ) * + 24 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + + 58 AS col2, 0 col1
----
58
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7901
SELECT + + 32 + - + ( + - 32 ) + + - CAST( - 51 AS SIGNED ) * - ( - + CAST( NULL AS SIGNED ) ) AS col1, 99 * NULLIF ( + 49, - 57 ) + 46 AS col1
----
NULL
4897

skipif mysql # not compatible
query II rowsort label-7901
SELECT + + 32 + - + ( + - 32 ) + + - CAST ( - 51 AS INTEGER ) * - ( - + CAST ( NULL AS INTEGER ) ) AS col1, 99 * NULLIF ( + 49, - 57 ) + 46 AS col1
----
NULL
4897

onlyif mysql # DIV for integer division: 
query I rowsort label-7902
SELECT + - 16 DIV + - 70
----
0

skipif mysql # not compatible
query I rowsort label-7902
SELECT + - 16 / + - 70
----
0

query I rowsort
SELECT - + 41 * + - 63 * - 21 AS col1
----
-54243

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7904
SELECT ALL + - 0 * - 53 * COUNT( * ) + + 65 * COALESCE ( - 94, + 62, - 60 ) + 53 DIV - 31 + 76, 13 + 83 col1
----
-6035
96

skipif mysql # not compatible
query II rowsort label-7904
SELECT ALL + - 0 * - 53 * COUNT ( * ) + + 65 * COALESCE ( - 94, + 62, - 60 ) + 53 / - 31 + 76, 13 + 83 col1
----
-6035
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7905
SELECT + 61 + + 20 DIV 54 + - 33
----
28

skipif mysql # not compatible
query I rowsort label-7905
SELECT + 61 + + 20 / 54 + - 33
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7906
SELECT ALL + 72 * - 58 + + 9 + - 47 DIV 4 * + 42 AS col2
----
-4629

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL + 72 * - 58 + + 9 + - 47 / 4 * + 42 AS col2
----
-4629

query I rowsort
SELECT DISTINCT - 28 * + - 65 + - 32
----
1788

query II rowsort
SELECT DISTINCT + 36 * + - 67, + COALESCE ( - - ( + ( 36 ) ), COALESCE ( 43, + 38, + 15 ) ) * - - 5 * + 59 * - + 17 AS col2
----
-2412
-180540

query I rowsort
SELECT 49 * 53 col2
----
2597

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7910
SELECT 74 - + + COUNT( * ) + - MIN( DISTINCT - + 46 ) + - 13 * - 57 + + 12 + + 86 DIV 35 + - COUNT( * )
----
873

skipif mysql # not compatible
query I rowsort label-7910
SELECT 74 - + + COUNT ( * ) + - MIN ( DISTINCT - + 46 ) + - 13 * - 57 + + 12 + + 86 / 35 + - COUNT ( * )
----
873

query II rowsort
SELECT 48 + 39 AS col2, 16 AS col0
----
87
16

query I rowsort
SELECT 84 - 99 + 72 * 67 AS col1
----
4809

query II rowsort
SELECT 58 + 43 col1, 81 col2
----
101
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT DISTINCT + 1 - - CASE + - ( - - COUNT( * ) ) WHEN 86 THEN - + 88 WHEN - 12 THEN NULL WHEN 3 + - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT + 1 - - CASE + - ( - - COUNT ( * ) ) WHEN 86 THEN - + 88 WHEN - 12 THEN NULL WHEN 3 + - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7915
SELECT CAST( NULL AS SIGNED ) + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT CAST ( NULL AS INTEGER ) + 30
----
NULL

query I rowsort
SELECT 66 * - - 85 + + 92
----
5702

query I rowsort
SELECT DISTINCT - 16 * + 72 * 7 * 22 * 17 AS col2
----
-3015936

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ALL - + COUNT( - 78 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL - + COUNT ( - 78 ) AS col0
----
-1

query I rowsort
SELECT ( - 48 ) * 75 * - 29
----
104400

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ALL + 80 * + - 92 * - 40 * + SUM( 82 ) + + 32 + - 50 * - + 74
----
24144532

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL + 80 * + - 92 * - 40 * + SUM ( 82 ) + + 32 + - 50 * - + 74
----
24144532

query I rowsort
SELECT ALL - ( 55 ) AS col1
----
-55

query I rowsort
SELECT ALL + 42 * 83 + + + 35 AS col1
----
3521

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7923
SELECT DISTINCT + ( + COUNT( * ) ) DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT + ( + COUNT ( * ) ) / + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL 70 + - + 89 - + - COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL 70 + - + 89 - + - COUNT ( * ) AS col0
----
-18

query II rowsort
SELECT 94 + - 66 AS col1, + 90 * - + 94 AS col1
----
28
-8460

query I rowsort
SELECT 84 * - 65 * - + ( - 46 ) + + 88 * 81 + + 41 AS col0
----
-243991

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT 83 + COALESCE ( + 57, + - 43 DIV - 26 ) AS col0
----
140

skipif mysql # not compatible
query I rowsort label-7927
SELECT 83 + COALESCE ( + 57, + - 43 / - 26 ) AS col0
----
140

onlyif mysql # DIV for integer division: 
query III rowsort label-7928
SELECT + 96, + COALESCE ( - 3, - + 54 + + ( + - NULLIF ( + 84, + 5 ) ) ) - - 55 AS col1, - 69 DIV - - NULLIF ( 89, - 79 ) + + - 30 col0
----
96
52
-30

skipif mysql # not compatible
query III rowsort label-7928
SELECT + 96, + COALESCE ( - 3, - + 54 + + ( + - NULLIF ( + 84, + 5 ) ) ) - - 55 AS col1, - 69 / - - NULLIF ( 89, - 79 ) + + - 30 col0
----
96
52
-30

query I rowsort
SELECT DISTINCT 78 * + 69 * - 68 AS col1
----
-365976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7930
SELECT ALL 43 + 71 * + COUNT( * ) DIV COUNT( 15 )
----
114

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL 43 + 71 * + COUNT ( * ) / COUNT ( 15 )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT COUNT( * ) + 68 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7931
SELECT COUNT ( * ) + 68 AS col1
----
69

query I rowsort
SELECT DISTINCT - 77 / NULLIF ( CASE - 48 WHEN 82 THEN + - 46 END, - 92 + - 12 + - 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7933
SELECT 1, + 55 * - MIN( + 20 ) AS col0
----
1
-1100

skipif mysql # not compatible
query II rowsort label-7933
SELECT 1, + 55 * - MIN ( + 20 ) AS col0
----
1
-1100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7934
SELECT ( - - COUNT( * ) ) * - 62 + 85 + - CASE - 0 WHEN CAST( 79 AS SIGNED ) * - 81 * + - 14 - 58 * + COALESCE ( + 58, 80 - + 5 ) THEN - 79 + 33 WHEN - CASE SUM( + NULLIF ( + + 80, + + 35 ) ) WHEN + - ( - ( 67 ) ) / + 31 THEN 39 / 72 END * + 78 THEN NULL ELSE NULL END + 62 + + COUNT( - 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT ( - - COUNT ( * ) ) * - 62 + 85 + - CASE - 0 WHEN CAST ( 79 AS INTEGER ) * - 81 * + - 14 - 58 * + COALESCE ( + 58, 80 - + 5 ) THEN - 79 + 33 WHEN - CASE SUM ( + NULLIF ( + + 80, + + 35 ) ) WHEN + - ( - ( 67 ) ) / + 31 THEN 39 / 72 END * + 78 THEN NULL ELSE NULL END + 62 + + COUNT ( - 55 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 0 * + 49
----
0

query I rowsort
SELECT 84 + + + 57 * 70 col2
----
4074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT DISTINCT + 6 * 35 * + - CAST( 17 AS SIGNED ) * + 82 col1
----
-292740

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT + 6 * 35 * + - CAST ( 17 AS INTEGER ) * + 82 col1
----
-292740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT DISTINCT CAST( NULL AS SIGNED ) - + - 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + - 22 col0
----
NULL

query II rowsort
SELECT ALL 41 AS col1, + 32 AS col1
----
41
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT - 89 * + MAX( + + 69 ) * - - 66
----
-405306

skipif mysql # not compatible
query I rowsort label-7940
SELECT - 89 * + MAX ( + + 69 ) * - - 66
----
-405306

query I rowsort
SELECT - - 50 col1
----
50

query I rowsort
SELECT - 98 - + 44 * - + 69 + - 81 AS col1
----
2857

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7943
SELECT - + COALESCE ( + + 83, + + CAST( + 68 AS SIGNED ) ), + 89 AS col2
----
-83
89

skipif mysql # not compatible
query II rowsort label-7943
SELECT - + COALESCE ( + + 83, + + CAST ( + 68 AS INTEGER ) ), + 89 AS col2
----
-83
89

query I rowsort
SELECT ALL - ( - ( - 40 ) )
----
-40

query I rowsort
SELECT 29 * - 14 AS col0
----
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT - SUM( + 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-7946
SELECT - SUM ( + 55 ) AS col0
----
-55

query I rowsort
SELECT - NULLIF ( + - 30, 66 / + 44 ) AS col0
----
30

query I rowsort
SELECT ALL - 71 + - - 9
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7949
SELECT - SUM( ALL CAST( NULL AS SIGNED ) ) - + - 81 + 52 * 84 * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT - SUM ( ALL CAST ( NULL AS INTEGER ) ) - + - 81 + 52 * 84 * 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL - + 84 / + + 86 * + CASE + SUM( 56 ) WHEN - 2 THEN + 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL - + 84 / + + 86 * + CASE + SUM ( 56 ) WHEN - 2 THEN + 45 ELSE NULL END
----
NULL

query II rowsort
SELECT 8, + 2 + 79 - 4 + + 35 AS col2
----
8
112

query I rowsort
SELECT 29 * + - 41 + 40
----
-1149

onlyif mysql # aggregate syntax: 
query II rowsort label-7953
SELECT ALL - + 44 * + 85 * - 50 + - + COUNT( DISTINCT + ( + - 16 ) ), 73 AS col2
----
186999
73

skipif mysql # not compatible
query II rowsort label-7953
SELECT ALL - + 44 * + 85 * - 50 + - + COUNT ( DISTINCT + ( + - 16 ) ), 73 AS col2
----
186999
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7954
SELECT + 37 DIV + + 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7954
SELECT + 37 / + + 58 AS col2
----
0

query I rowsort
SELECT COALESCE ( - + 10, 90 + - 13 ) * 94 AS col2
----
-940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7956
SELECT ( - + CAST( - + 91 AS SIGNED ) ) - COALESCE ( - ( ( + ( - + ( 58 ) ) ) ), - 87 * + NULLIF ( + 60, + COUNT( * ) ) * - COUNT( * ) + + - 26 DIV + 41, 51 * - 90 + + + 20 ) + - 49 + + 65 + 3 * + 85 AS col0
----
304

skipif mysql # not compatible
query I rowsort label-7956
SELECT ( - + CAST ( - + 91 AS INTEGER ) ) - COALESCE ( - ( ( + ( - + ( 58 ) ) ) ), - 87 * + NULLIF ( + 60, + COUNT ( * ) ) * - COUNT ( * ) + + - 26 / + 41, 51 * - 90 + + + 20 ) + - 49 + + 65 + 3 * + 85 AS col0
----
304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7957
SELECT ALL + CAST( 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL + CAST ( 74 AS INTEGER )
----
74

query II rowsort
SELECT DISTINCT 60 * 83 AS col0, 12 + + + 33
----
4980
45

query I rowsort
SELECT ALL - 18 * - + 29
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT + SUM( DISTINCT - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-7960
SELECT + SUM ( DISTINCT - 28 )
----
-28

query I rowsort
SELECT - 75 * + + NULLIF ( ( - - 9 ), 40 * ( - + 66 ) ) + - 61
----
-736

query II rowsort
SELECT + 53 * 9 AS col2, - 42
----
477
-42

query I rowsort
SELECT ALL 59 * + ( + 62 )
----
3658

query I rowsort
SELECT + COALESCE ( - - 43, - 3 - + 50, 45, - 57 - + 60 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7965
SELECT + MIN( - + 47 ) AS col1, 14
----
-47
14

skipif mysql # not compatible
query II rowsort label-7965
SELECT + MIN ( - + 47 ) AS col1, 14
----
-47
14

query I rowsort
SELECT DISTINCT - 1 * + + 61 * + - 85 AS col2
----
5185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT + 18 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT + 18 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT ALL 93 DIV + 81
----
1

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL 93 / + 81
----
1

query I rowsort
SELECT + 99 + - 48
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7970
SELECT + COUNT( * ) DIV + 16 AS col2, - 48 - 15 + - 60 + 37 * - 32 * + + 93
----
0
-110235

skipif mysql # not compatible
query II rowsort label-7970
SELECT + COUNT ( * ) / + 16 AS col2, - 48 - 15 + - 60 + 37 * - 32 * + + 93
----
0
-110235

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT + - NULLIF ( - + 52, - 70 * + 56 * + - 9 - 74 ) + COUNT( * ) + 73 AS col1
----
126

skipif mysql # not compatible
query I rowsort label-7971
SELECT + - NULLIF ( - + 52, - 70 * + 56 * + - 9 - 74 ) + COUNT ( * ) + 73 AS col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT + - ( - ( + MAX( ALL + ( + 83 ) ) ) ) - 20
----
63

skipif mysql # not compatible
query I rowsort label-7972
SELECT + - ( - ( + MAX ( ALL + ( + 83 ) ) ) ) - 20
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL + NULLIF ( - COUNT( * ), - 43 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL + NULLIF ( - COUNT ( * ), - 43 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL + 66 * - + COUNT( * ) + COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL + 66 * - + COUNT ( * ) + COUNT ( * ) AS col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT + + 60 + 13 + + + 32 DIV - 49 * 46 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7975
SELECT + + 60 + 13 + + + 32 / - 49 * 46 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT - + MIN( - 6 ) - + 26
----
-20

skipif mysql # not compatible
query I rowsort label-7976
SELECT - + MIN ( - 6 ) - + 26
----
-20

query II rowsort
SELECT + - 86 + - 91 * + ( 15 ) AS col0, - 96
----
-1451
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7978
SELECT ALL - 75 + COALESCE ( + 28, - COUNT( * ) * + 5 DIV - AVG ( ALL 97 ) * + 40 + + 82 * + + 96 ) + - - 27 + - - 3 DIV + 40
----
-20

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL - 75 + COALESCE ( + 28, - COUNT ( * ) * + 5 / - AVG ( ALL 97 ) * + 40 + + 82 * + + 96 ) + - - 27 + - - 3 / + 40
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7979
SELECT + 46 + + 64 + + 29 - - CAST( NULL AS SIGNED ) + 22 * + NULLIF ( + 95, + 89 + 14 ) AS col1, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7979
SELECT + 46 + + 64 + + 29 - - CAST ( NULL AS INTEGER ) + 22 * + NULLIF ( + 95, + 89 + 14 ) AS col1, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL NULLIF ( - 60, + 81 + 33 ) AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7981
SELECT DISTINCT + 72 + - + CAST( NULL AS SIGNED ) + - + COALESCE ( - NULLIF ( - 87, - - 42 ), + + 36 * - SUM( ALL - + ( + + 34 ) ) + 1 * 46 ) + - + 68 * COUNT( * ) + - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + 72 + - + CAST ( NULL AS INTEGER ) + - + COALESCE ( - NULLIF ( - 87, - - 42 ), + + 36 * - SUM ( ALL - + ( + + 34 ) ) + 1 * 46 ) + - + 68 * COUNT ( * ) + - - 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7982
SELECT ALL 29 + 93 + - + CAST( NULL AS SIGNED ) + 10 * + COUNT( * ) * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL 29 + 93 + - + CAST ( NULL AS INTEGER ) + 10 * + COUNT ( * ) * - 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7983
SELECT - ( + 76 ), 1 * + NULLIF ( 64, 2 * + - COALESCE ( 89, 12 * + NULLIF ( - 88, - CASE 61 WHEN 99 THEN + - 29 WHEN + 39 * - 46 THEN 72 - + COUNT( * ) + - - 85 ELSE NULL END * 45 + 63 * + - 86 * - 15 ) * 66 ) ) AS col2
----
-76
64

skipif mysql # not compatible
query II rowsort label-7983
SELECT - ( + 76 ), 1 * + NULLIF ( 64, 2 * + - COALESCE ( 89, 12 * + NULLIF ( - 88, - CASE 61 WHEN 99 THEN + - 29 WHEN + 39 * - 46 THEN 72 - + COUNT ( * ) + - - 85 ELSE NULL END * 45 + 63 * + - 86 * - 15 ) * 66 ) ) AS col2
----
-76
64

query I rowsort
SELECT - 73 + - 17 * + 84 AS col1
----
-1501

query I rowsort
SELECT ALL - 39 + 89 AS col2
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-7986
SELECT DISTINCT NULLIF ( + 99, + 99 * 14 ), + 30 DIV + - 13 col2
----
99
-2

skipif mysql # not compatible
query II rowsort label-7986
SELECT DISTINCT NULLIF ( + 99, + 99 * 14 ), + 30 / + - 13 col2
----
99
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7987
SELECT - - 79 + 27 + + - 77 + + - 61 - COUNT( + - NULLIF ( 96, - + 98 * - - 80 * 19 * + 28 ) ) + 15 * - + COUNT( * ) DIV 71 + - - 4 DIV + - 75 DIV - SUM( 2 ) col1
----
-33

skipif mysql # not compatible
query I rowsort label-7987
SELECT - - 79 + 27 + + - 77 + + - 61 - COUNT ( + - NULLIF ( 96, - + 98 * - - 80 * 19 * + 28 ) ) + 15 * - + COUNT ( * ) / 71 + - - 4 / + - 75 / - SUM ( 2 ) col1
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-7988
SELECT ALL - + 71 DIV - + 16 + - + COALESCE ( + 53, + 12 * - 37 )
----
-49

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL - + 71 / - + 16 + - + COALESCE ( + 53, + 12 * - 37 )
----
-49

query I rowsort
SELECT - 62 * + - ( + 45 ) + + ( + 55 ) AS col1
----
2845

query I rowsort
SELECT DISTINCT - 77 * + - 28 AS col1
----
2156

query I rowsort
SELECT ALL + 23 * + 95 col1
----
2185

query I rowsort
SELECT - 65 * - 79 + + 70
----
5205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7993
SELECT ALL - CAST( + - 27 AS SIGNED ) * ( NULLIF ( - + 46, + CAST( - + COUNT( * ) AS DECIMAL ) * 74 ) )
----
-1242

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL - CAST ( + - 27 AS INTEGER ) * ( NULLIF ( - + 46, + CAST ( - + COUNT ( * ) AS REAL ) * 74 ) )
----
-1242

query I rowsort
SELECT + 96 * + - 81
----
-7776

query I rowsort
SELECT - 13 + + 29 * + + 87 AS col0
----
2510

query II rowsort
SELECT + 3, + 15 + + - 94 - - 81 * + 96 AS col2
----
3
7697

onlyif mysql # aggregate syntax: 
query II rowsort label-7997
SELECT ( - - COUNT( - 9 ) ) col1, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7997
SELECT ( - - COUNT ( - 9 ) ) col1, COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT - 95 - COUNT( ALL + + 6 )
----
-96

skipif mysql # not compatible
query I rowsort label-7998
SELECT - 95 - COUNT ( ALL + + 6 )
----
-96

query I rowsort
SELECT ALL + COALESCE ( + 37, + NULLIF ( + + 53, + 28 ) )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT + CASE + + 14 WHEN + SUM( - 75 ) + + + 70 THEN - 90 * + + 92 + - + 47 END + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT + CASE + + 14 WHEN + SUM ( - 75 ) + + + 70 THEN - 90 * + + 92 + - + 47 END + - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT DISTINCT + COUNT( DISTINCT 74 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT + COUNT ( DISTINCT 74 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT MIN( ALL - 20 ) * + + 37 + 84
----
-656

skipif mysql # not compatible
query I rowsort label-8002
SELECT MIN ( ALL - 20 ) * + + 37 + 84
----
-656

query II rowsort
SELECT DISTINCT + 0 AS col2, + 54 AS col1
----
0
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT ALL + NULLIF ( MAX( 94 ), - + 37 )
----
94

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL + NULLIF ( MAX ( 94 ), - + 37 )
----
94

query I rowsort
SELECT - 94 * 13 col0
----
-1222

query I rowsort
SELECT ALL 6 * + 21 AS col2
----
126

query I rowsort
SELECT COALESCE ( - 99, - - 95 * 94 * - 28 ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT COALESCE ( + 82, + 75 + + SUM( - 92 ) * COALESCE ( - 97, + COUNT( - 52 ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-8008
SELECT COALESCE ( + 82, + 75 + + SUM ( - 92 ) * COALESCE ( - 97, + COUNT ( - 52 ) ) )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8009
SELECT + CASE + 95 WHEN - 32 THEN NULL WHEN 62 * - 65 * - ( + 60 ) * - 65 - NULLIF ( - 35, CAST( NULL AS SIGNED ) ) THEN NULL WHEN 68 / + 80 + - + 17 * + 28 / + - 10 * - 88 * - ( NULLIF ( + 95, + 84 ) ) * 70 + - MAX( DISTINCT - + 14 ) THEN 94 + 80 * - COALESCE ( + ( COALESCE ( 41, COUNT( * ) * + 20 + + 63, - 34 * - 65 - 24 * - COUNT( * ) ) ), 22 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT + CASE + 95 WHEN - 32 THEN NULL WHEN 62 * - 65 * - ( + 60 ) * - 65 - NULLIF ( - 35, CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 68 / + 80 + - + 17 * + 28 / + - 10 * - 88 * - ( NULLIF ( + 95, + 84 ) ) * 70 + - MAX ( DISTINCT - + 14 ) THEN 94 + 80 * - COALESCE ( + ( COALESCE ( 41, COUNT ( * ) * + 20 + + 63, - 34 * - 65 - 24 * - COUNT ( * ) ) ), 22 ) END AS col2
----
NULL

query I rowsort
SELECT - 76 * - 31
----
2356

query I rowsort
SELECT + 81 + + + 17 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT COUNT( - 81 )
----
1

skipif mysql # not compatible
query I rowsort label-8012
SELECT COUNT ( - 81 )
----
1

query I rowsort
SELECT DISTINCT - 46 * - 26 * 72 * - 87 * + 86 + + - 88 + + + ( + - 16 )
----
-644290088

query I rowsort
SELECT DISTINCT - - 42 * - 66 AS col0
----
-2772

query I rowsort
SELECT ALL - 2 * 75 + - 79 + + 56
----
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8016
SELECT ALL COUNT( * ) * + - 50 + - + 71 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL COUNT ( * ) * + - 50 + - + 71 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8017
SELECT DISTINCT + - CAST( - COUNT( * ) AS SIGNED ) + + + 69 col2
----
70

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT + - CAST ( - COUNT ( * ) AS INTEGER ) + + + 69 col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8018
SELECT ALL - ( + 38 ) + - NULLIF ( + 23, + - COUNT( * ) ) / + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL - ( + 38 ) + - NULLIF ( + 23, + - COUNT ( * ) ) / + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 43 + 41
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8020
SELECT + 56, COUNT( * ) + + 33 - 32 AS col0
----
56
2

skipif mysql # not compatible
query II rowsort label-8020
SELECT + 56, COUNT ( * ) + + 33 - 32 AS col0
----
56
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8021
SELECT + + CASE ( + MIN( ALL - + 56 ) ) WHEN - - AVG ( + + 0 ) * - 71 - - 26 THEN - + 48 END * - 82 * CASE + - COUNT( * ) WHEN + COUNT( * ) THEN - 40 WHEN 1 THEN NULL WHEN 26 THEN - CAST( + 94 AS SIGNED ) END * COUNT( - 0 ) / - 92 - + + 64 + 99 * MAX( ALL - 69 ) - + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT + + CASE ( + MIN ( ALL - + 56 ) ) WHEN - - AVG ( + + 0 ) * - 71 - - 26 THEN - + 48 END * - 82 * CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN - 40 WHEN 1 THEN NULL WHEN 26 THEN - CAST ( + 94 AS INTEGER ) END * COUNT ( - 0 ) / - 92 - + + 64 + 99 * MAX ( ALL - 69 ) - + 56 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8022
SELECT - + ( + CASE + + 11 WHEN NULLIF ( + 13, - - 29 - - CAST( NULL AS SIGNED ) ) * + 78 - COUNT( * ) THEN - 75 / 25 END ) - + MAX( + ( 90 ) ) / - 82 col1, 6 + 39 + - - 63
----
NULL
108

skipif mysql # not compatible
query II rowsort label-8022
SELECT - + ( + CASE + + 11 WHEN NULLIF ( + 13, - - 29 - - CAST ( NULL AS INTEGER ) ) * + 78 - COUNT ( * ) THEN - 75 / 25 END ) - + MAX ( + ( 90 ) ) / - 82 col1, 6 + 39 + - - 63
----
NULL
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8023
SELECT COALESCE ( + 68, - CASE + 98 WHEN - COUNT( * ) * 49 + - 21 THEN + - 25 - + 13 ELSE CASE - 6 WHEN - 80 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN 61 + + 19 * + 61 - 95 END + + COALESCE ( + 62, 19, 23 - - - MAX( 31 ) ) END ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8023
SELECT COALESCE ( + 68, - CASE + 98 WHEN - COUNT ( * ) * 49 + - 21 THEN + - 25 - + 13 ELSE CASE - 6 WHEN - 80 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN 61 + + 19 * + 61 - 95 END + + COALESCE ( + 62, 19, 23 - - - MAX ( 31 ) ) END ) AS col1
----
68

query I rowsort
SELECT + NULLIF ( + 0, - 73 ) * 3 AS col2
----
0

query I rowsort
SELECT ALL 93 + 43 AS col2
----
136

query I rowsort
SELECT ALL ( 24 ) - + - 51 col1
----
75

query I rowsort
SELECT DISTINCT 81 * + + 46 AS col1
----
3726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8028
SELECT COALESCE ( CAST( NULL AS SIGNED ), + ( - CAST( NULL AS SIGNED ) ) ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8028
SELECT COALESCE ( CAST ( NULL AS INTEGER ), + ( - CAST ( NULL AS INTEGER ) ) ) - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT ALL CAST( - COALESCE ( + 48, + - 19 * - 96 / + 68 - + 84 * + 95 * - - 48 - - 98 + + + AVG ( 96 ) * - 9, - + 26 + 0, - - 26 * 38 ) AS SIGNED ) - + 78
----
-126

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL CAST ( - COALESCE ( + 48, + - 19 * - 96 / + 68 - + 84 * + 95 * - - 48 - - 98 + + + AVG ( 96 ) * - 9, - + 26 + 0, - - 26 * 38 ) AS INTEGER ) - + 78
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT COUNT( * ) * + + COALESCE ( + 7, + 15 )
----
7

skipif mysql # not compatible
query I rowsort label-8030
SELECT COUNT ( * ) * + + COALESCE ( + 7, + 15 )
----
7

query I rowsort
SELECT 68 * - - 14 AS col2
----
952

query II rowsort
SELECT ALL - 4 AS col2, - 40
----
-4
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8033
SELECT ( - 4 ) / + + COUNT( * ) * COUNT( * ) + - ( - 41 ) * 30 / MIN( - + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8033
SELECT ( - 4 ) / + + COUNT ( * ) * COUNT ( * ) + - ( - 41 ) * 30 / MIN ( - + CAST ( NULL AS INTEGER ) ) col2
----
NULL

query II rowsort
SELECT ALL - 94, 94 col1
----
-94
94

query I rowsort
SELECT DISTINCT + 47 * 94 AS col2
----
4418

onlyif mysql # aggregate syntax: 
query II rowsort label-8036
SELECT 84 * + 4 AS col1, - MIN( + - 26 ) AS col0
----
336
26

skipif mysql # not compatible
query II rowsort label-8036
SELECT 84 * + 4 AS col1, - MIN ( + - 26 ) AS col0
----
336
26

query I rowsort
SELECT ALL + 56 * - 10 * - 55 col1
----
30800

query II rowsort
SELECT ALL - 22 AS col1, - 0 col0
----
-22
0

query I rowsort
SELECT 58 * + + 3
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8040
SELECT 56 * - 46 * - + 98 - - CAST( - - 64 AS SIGNED ) + + - 93 + + 35 AS col2
----
252454

skipif mysql # not compatible
query I rowsort label-8040
SELECT 56 * - 46 * - + 98 - - CAST ( - - 64 AS INTEGER ) + + - 93 + + 35 AS col2
----
252454

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT DISTINCT - 84 * - CASE + 54 WHEN + + 52 THEN NULL WHEN 9 * - 32 + COUNT( ALL + - 32 ) THEN + 33 + 0 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT - 84 * - CASE + 54 WHEN + + 52 THEN NULL WHEN 9 * - 32 + COUNT ( ALL + - 32 ) THEN + 33 + 0 ELSE NULL END * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 29 + - 72 - - - 79 AS col2
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-8043
SELECT + ( + 97 ) * 24 + + + 84 AS col0, COUNT( * ) AS col0
----
2412
1

skipif mysql # not compatible
query II rowsort label-8043
SELECT + ( + 97 ) * 24 + + + 84 AS col0, COUNT ( * ) AS col0
----
2412
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL - MIN( - 28 ) + + 80 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - MIN ( - 28 ) + + 80 AS col2
----
108

query I rowsort
SELECT DISTINCT - 84 * - - 85 * - 14 AS col0
----
99960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8046
SELECT ALL + - 77 + - + CAST( - 88 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL + - 77 + - + CAST ( - 88 AS INTEGER ) AS col1
----
11

query I rowsort
SELECT + 1 - + 26 AS col2
----
-25

query I rowsort
SELECT ALL - 47 + + 94 - - 36 AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8049
SELECT ( - - 83 ) + COUNT( * ) * 28 - COUNT( - 85 ) + + 27 DIV 68 col0
----
110

skipif mysql # not compatible
query I rowsort label-8049
SELECT ( - - 83 ) + COUNT ( * ) * 28 - COUNT ( - 85 ) + + 27 / 68 col0
----
110

query II rowsort
SELECT - - 7 AS col0, + 35
----
7
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8051
SELECT - 81 + + 73 - + COUNT( * ) + + 29 + + + MAX( 71 ) DIV + + COUNT( - ( 38 ) )
----
91

skipif mysql # not compatible
query I rowsort label-8051
SELECT - 81 + + 73 - + COUNT ( * ) + + 29 + + + MAX ( 71 ) / + + COUNT ( - ( 38 ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL + - 64 * COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL + - 64 * COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT - 8 + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-8053
SELECT - 8 + COUNT ( * )
----
-7

query I rowsort
SELECT ALL + 31 - ( + 61 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT MAX( - - 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8055
SELECT MAX ( - - 80 ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-8056
SELECT ALL 52 AS col2, 88 AS col0, + + CAST( NULL AS DECIMAL ) * 97 + + SUM( DISTINCT 5 ) AS col0
----
52
88
NULL

skipif mysql # not compatible
query III rowsort label-8056
SELECT ALL 52 AS col2, 88 AS col0, + + CAST ( NULL AS REAL ) * 97 + + SUM ( DISTINCT 5 ) AS col0
----
52
88
NULL

query I rowsort
SELECT ( + 21 ) + ( + 33 ) + + - 75
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8058
SELECT 83 * + - 85 - 80 + 54 * - ( 37 ) / CAST( NULL AS SIGNED ) - 58 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT 83 * + - 85 - 80 + 54 * - ( 37 ) / CAST ( NULL AS INTEGER ) - 58 / + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8059
SELECT + AVG ( - 25 ) + - + CAST( NULL AS SIGNED ) + - 96 + - 82 + - 49 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT + AVG ( - 25 ) + - + CAST ( NULL AS INTEGER ) + - 96 + - 82 + - 49 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8060
SELECT ALL - 96 - + + CAST( - 28 AS SIGNED ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL - 96 - + + CAST ( - 28 AS INTEGER ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT DISTINCT CASE - 87 WHEN + 16 * - 27 / - 70 + + COALESCE ( - + SUM( - 28 ), + + 91 + - + 10 ) THEN + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT CASE - 87 WHEN + 16 * - 27 / - 70 + + COALESCE ( - + SUM ( - 28 ), + + 91 + - + 10 ) THEN + 64 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8062
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) - 23 * ( - + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) - 23 * ( - + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8063
SELECT ALL 84 DIV - - COUNT( * ) col0
----
84

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL 84 / - - COUNT ( * ) col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8064
SELECT MIN( 80 ) * - 95, 21 AS col1
----
-7600
21

skipif mysql # not compatible
query II rowsort label-8064
SELECT MIN ( 80 ) * - 95, 21 AS col1
----
-7600
21

query I rowsort
SELECT 49 + - 7 * - + 37 AS col1
----
308

query I rowsort
SELECT ( - 98 ) * - + 20 AS col1
----
1960

query II rowsort
SELECT ALL 36 * - ( + 30 ) AS col0, 86
----
-1080
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT 58 DIV 39 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8068
SELECT 58 / 39 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT MIN( ALL - CASE - 81 WHEN + 5 THEN 70 WHEN + 55 * + ( - - 12 ) + + 68 THEN NULL ELSE - 50 END ) col2
----
50

skipif mysql # not compatible
query I rowsort label-8069
SELECT MIN ( ALL - CASE - 81 WHEN + 5 THEN 70 WHEN + 55 * + ( - - 12 ) + + 68 THEN NULL ELSE - 50 END ) col2
----
50

query I rowsort
SELECT DISTINCT 42 * - - 13 AS col1
----
546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8071
SELECT 61 * COUNT( * ) DIV SUM( ALL + - ( - COALESCE ( - - 54, 9 DIV + COALESCE ( + 11, - - 37 ) ) ) ) + + - 71 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8071
SELECT 61 * COUNT ( * ) / SUM ( ALL + - ( - COALESCE ( - - 54, 9 / + COALESCE ( + 11, - - 37 ) ) ) ) + + - 71 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8072
SELECT SUM( DISTINCT + 47 ) AS col0, COUNT( DISTINCT + - 50 ) AS col0
----
47
1

skipif mysql # not compatible
query II rowsort label-8072
SELECT SUM ( DISTINCT + 47 ) AS col0, COUNT ( DISTINCT + - 50 ) AS col0
----
47
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8073
SELECT ALL 77 * - COUNT( * ) AS col0, CAST( NULL AS DECIMAL ) AS col1
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-8073
SELECT ALL 77 * - COUNT ( * ) AS col0, CAST ( NULL AS REAL ) AS col1
----
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT SUM( DISTINCT 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8074
SELECT SUM ( DISTINCT 52 ) AS col1
----
52

query I rowsort
SELECT ( 55 ) * + 48 col0
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT ALL 94 + NULLIF ( - 25, COUNT( * ) * 52 ) + + 96 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL 94 + NULLIF ( - 25, COUNT ( * ) * 52 ) + + 96 AS col2
----
165

query I rowsort
SELECT 9 + - + 9
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8078
SELECT ( CAST( 56 AS SIGNED ) ) * + - ( - 44 ) + - 39
----
2425

skipif mysql # not compatible
query I rowsort label-8078
SELECT ( CAST ( 56 AS INTEGER ) ) * + - ( - 44 ) + - 39
----
2425

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT ALL + COUNT( * ) + CASE - 78 WHEN + 20 THEN NULL WHEN + 90 THEN - ( - 13 ) ELSE NULL END * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL + COUNT ( * ) + CASE - 78 WHEN + 20 THEN NULL WHEN + 90 THEN - ( - 13 ) ELSE NULL END * 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT MAX( ALL - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-8080
SELECT MAX ( ALL - 86 )
----
-86

query I rowsort
SELECT DISTINCT 93 + 94 AS col0
----
187

onlyif mysql # DIV for integer division: 
query I rowsort label-8082
SELECT ALL + + 42 + - - 85 DIV 39
----
44

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL + + 42 + - - 85 / 39
----
44

query I rowsort
SELECT - 99 + - 44
----
-143

query I rowsort
SELECT ALL ( + 31 ) + + + 40 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT 7 * ( 29 ) + - 38 * + COUNT( * ) * + + 3
----
89

skipif mysql # not compatible
query I rowsort label-8085
SELECT 7 * ( 29 ) + - 38 * + COUNT ( * ) * + + 3
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8086
SELECT DISTINCT + 43 * - - 80 * - 61, + MIN( DISTINCT + 61 ) - + - 72 AS col1
----
-209840
133

skipif mysql # not compatible
query II rowsort label-8086
SELECT DISTINCT + 43 * - - 80 * - 61, + MIN ( DISTINCT + 61 ) - + - 72 AS col1
----
-209840
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT - + COUNT( - 78 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT - + COUNT ( - 78 ) AS col2
----
-1

query I rowsort
SELECT ALL - + 50 + - 46 * 54
----
-2534

query II rowsort
SELECT 50 * 22, 99 * 24 * + 76 AS col1
----
1100
180576

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT + 79 * 16 + - 69 + 68 - + 63 * + + 33 * 0 * - + 80 DIV - - 82 AS col1
----
1263

skipif mysql # not compatible
query I rowsort label-8090
SELECT + 79 * 16 + - 69 + 68 - + 63 * + + 33 * 0 * - + 80 / - - 82 AS col1
----
1263

query I rowsort
SELECT + ( 23 ) + 52 + - 8 - - COALESCE ( 75, + 94, - 92, - 76 ) - - 32 col2
----
174

query I rowsort
SELECT ALL - 60 - - 60 * - - 40 * 79 + + + 48
----
189588

query I rowsort
SELECT - - 55 * + 84 AS col1
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT DISTINCT - ( - + MIN( ALL 87 ) )
----
87

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT - ( - + MIN ( ALL 87 ) )
----
87

query I rowsort
SELECT - 81 * 84 + - + 84 AS col0
----
-6888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8096
SELECT - - COALESCE ( 16, - + NULLIF ( 65, + 39 * - + CASE - 28 WHEN 27 DIV - 76 - + AVG ( - 37 ) + - 8 - + COUNT( * ) * + 16 * - 15 THEN NULL WHEN + 58 + - MAX( + 49 ) + 37 THEN + 92 ELSE SUM( ALL 55 ) + + 11 END * - 92 ) DIV - COUNT( 54 ) DIV + - 15 + + 76 + CAST( + 22 AS SIGNED ) * 86 ) * - 79 AS col2
----
-1264

skipif mysql # not compatible
query I rowsort label-8096
SELECT - - COALESCE ( 16, - + NULLIF ( 65, + 39 * - + CASE - 28 WHEN 27 / - 76 - + AVG ( - 37 ) + - 8 - + COUNT ( * ) * + 16 * - 15 THEN NULL WHEN + 58 + - MAX ( + 49 ) + 37 THEN + 92 ELSE SUM ( ALL 55 ) + + 11 END * - 92 ) / - COUNT ( 54 ) / + - 15 + + 76 + CAST ( + 22 AS INTEGER ) * 86 ) * - 79 AS col2
----
-1264

onlyif mysql # DIV for integer division: 
query II rowsort label-8097
SELECT - 95 - ( 99 ) + + 23 * 9, 85 DIV 56 * + 31 + - - 66 AS col2
----
13
97

skipif mysql # not compatible
query II rowsort label-8097
SELECT - 95 - ( 99 ) + + 23 * 9, 85 / 56 * + 31 + - - 66 AS col2
----
13
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL + - MAX( - 23 ) * COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL + - MAX ( - 23 ) * COUNT ( * ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ALL + 64 * - COUNT( * ) * - 20 AS col2
----
1280

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL + 64 * - COUNT ( * ) * - 20 AS col2
----
1280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT DISTINCT + ( 46 ) / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT + ( 46 ) / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT ALL ( + - ( SUM( DISTINCT - 68 ) ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL ( + - ( SUM ( DISTINCT - 68 ) ) ) AS col0
----
68

query I rowsort
SELECT DISTINCT 95 * 63 * - 17
----
-101745

query I rowsort
SELECT ALL + 74 * - - 50 col1
----
3700

query I rowsort
SELECT DISTINCT NULLIF ( - 79, + + AVG ( ALL - - 48 ) )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8105
SELECT ALL 89 + - 77 DIV - COUNT( * )
----
166

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL 89 + - 77 / - COUNT ( * )
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-8106
SELECT + MAX( + ( - 1 ) ) - - - 40 AS col1, - 4 + - 88 + CASE + COUNT( DISTINCT + 49 ) WHEN 52 THEN COUNT( * ) WHEN + - AVG ( ALL 63 ) * + 80 / - 71 * - + 89 * + 86 THEN NULL END * + 75 * - 84 + - COUNT( * ) AS col2
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-8106
SELECT + MAX ( + ( - 1 ) ) - - - 40 AS col1, - 4 + - 88 + CASE + COUNT ( DISTINCT + 49 ) WHEN 52 THEN COUNT ( * ) WHEN + - AVG ( ALL 63 ) * + 80 / - 71 * - + 89 * + 86 THEN NULL END * + 75 * - 84 + - COUNT ( * ) AS col2
----
-41
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8107
SELECT ALL CASE - 14 WHEN 75 * ( 17 ) THEN COUNT( * ) WHEN + 8 * + + 45 * - 0 + - - 4 THEN NULL ELSE + - MIN( 7 ) * + - COALESCE ( - 76, + 24 ) + 91 END, - 53 AS col1
----
-441
-53

skipif mysql # not compatible
query II rowsort label-8107
SELECT ALL CASE - 14 WHEN 75 * ( 17 ) THEN COUNT ( * ) WHEN + 8 * + + 45 * - 0 + - - 4 THEN NULL ELSE + - MIN ( 7 ) * + - COALESCE ( - 76, + 24 ) + 91 END, - 53 AS col1
----
-441
-53

query I rowsort
SELECT DISTINCT NULLIF ( + 12, 64 - + 58 * 40 * + - 12 )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT + 89 DIV + + 44 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8109
SELECT + 89 / + + 44 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL 64 * - ( COUNT( 26 ) ) + + + 27
----
-37

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL 64 * - ( COUNT ( 26 ) ) + + + 27
----
-37

query I rowsort
SELECT - 0 * + + 4 col2
----
0

query I rowsort
SELECT + CASE + 15 WHEN - - 63 THEN + 31 WHEN + 96 - 84 THEN + - 70 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8113
SELECT - CAST( COALESCE ( - MIN( DISTINCT - 58 ), - 65 * - 9 ) AS SIGNED ) * - - 76 - 11 * + - CASE 20 WHEN + COUNT( * ) THEN - 54 ELSE NULL END + + + 61 + + + COUNT( * ) + SUM( ALL 94 ) + + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8113
SELECT - CAST ( COALESCE ( - MIN ( DISTINCT - 58 ), - 65 * - 9 ) AS INTEGER ) * - - 76 - 11 * + - CASE 20 WHEN + COUNT ( * ) THEN - 54 ELSE NULL END + + + 61 + + + COUNT ( * ) + SUM ( ALL 94 ) + + 99 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT ALL 47 DIV - 2
----
-23

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL 47 / - 2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8115
SELECT ALL 1 * 83 * + SUM( + 1 ) + - 78 + + - 19 * 98 * - 89 * - - 50, - 48 col0
----
8285905
-48

skipif mysql # not compatible
query II rowsort label-8115
SELECT ALL 1 * 83 * + SUM ( + 1 ) + - 78 + + - 19 * 98 * - 89 * - - 50, - 48 col0
----
8285905
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8116
SELECT + COUNT( - ( CAST( - 50 AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8116
SELECT + COUNT ( - ( CAST ( - 50 AS INTEGER ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8117
SELECT ALL + CAST( NULL AS SIGNED ), + 26 - 72 AS col0
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-8117
SELECT ALL + CAST ( NULL AS INTEGER ), + 26 - 72 AS col0
----
NULL
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8118
SELECT DISTINCT + CAST( NULL AS SIGNED ), CASE - + COALESCE ( + ( 66 ), 40 + - - 97 / - - CASE + 41 WHEN - - COALESCE ( - COUNT( * ), - + 84 ) THEN - 79 ELSE NULL END * + 8 * - 59 - 51, - CASE + + COUNT( * ) WHEN - + 96 + - 85 + - 43 * - COUNT( * ) + - 55 THEN NULL WHEN 17 - + ( + + ( + 43 ) ) THEN - 20 END ) WHEN 1 * - MIN( ALL - 45 ) THEN - CAST( - MAX( ALL + 37 ) AS SIGNED ) * + 62 + 36 END * - 72 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8118
SELECT DISTINCT + CAST ( NULL AS INTEGER ), CASE - + COALESCE ( + ( 66 ), 40 + - - 97 / - - CASE + 41 WHEN - - COALESCE ( - COUNT ( * ), - + 84 ) THEN - 79 ELSE NULL END * + 8 * - 59 - 51, - CASE + + COUNT ( * ) WHEN - + 96 + - 85 + - 43 * - COUNT ( * ) + - 55 THEN NULL WHEN 17 - + ( + + ( + 43 ) ) THEN - 20 END ) WHEN 1 * - MIN ( ALL - 45 ) THEN - CAST ( - MAX ( ALL + 37 ) AS INTEGER ) * + 62 + 36 END * - 72 AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8119
SELECT + NULLIF ( - MIN( + - 86 ), - NULLIF ( - COUNT( * ), + + 71 ) - + - COUNT( ALL - CAST( + 9 AS SIGNED ) ) - - 75 / - 30 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8119
SELECT + NULLIF ( - MIN ( + - 86 ), - NULLIF ( - COUNT ( * ), + + 71 ) - + - COUNT ( ALL - CAST ( + 9 AS INTEGER ) ) - - 75 / - 30 ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8120
SELECT ALL 51 * CASE + + 40 WHEN + CAST( - - ( + 38 ) AS SIGNED ) THEN + 60 * COUNT( * ) + - 31 END + + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL 51 * CASE + + 40 WHEN + CAST ( - - ( + 38 ) AS INTEGER ) THEN + 60 * COUNT ( * ) + - 31 END + + - 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL MAX( - 92 ) * - 84 AS col2
----
7728

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL MAX ( - 92 ) * - 84 AS col2
----
7728

query I rowsort
SELECT DISTINCT - 14 * - + 2
----
28

query I rowsort
SELECT + 2 * - 39 * - - 74 + - 20 AS col2
----
-5792

query I rowsort
SELECT + - 75 + - 0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT - - 70 * 82 + COUNT( * )
----
5741

skipif mysql # not compatible
query I rowsort label-8125
SELECT - - 70 * 82 + COUNT ( * )
----
5741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8126
SELECT DISTINCT COALESCE ( 17, 22 + CAST( COUNT( * ) AS SIGNED ), + 97 ) * - + CASE + - COALESCE ( + + 76, - - 85 ) WHEN - + 48 * 92 + - 21 / - 14 + 78 * - 69 THEN NULL ELSE - 20 + SUM( - 98 ) END
----
2006

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT COALESCE ( 17, 22 + CAST ( COUNT ( * ) AS INTEGER ), + 97 ) * - + CASE + - COALESCE ( + + 76, - - 85 ) WHEN - + 48 * 92 + - 21 / - 14 + 78 * - 69 THEN NULL ELSE - 20 + SUM ( - 98 ) END
----
2006

query II rowsort
SELECT ALL + - 46 AS col2, - 13 AS col0
----
-46
-13

query I rowsort
SELECT + - 26 * 3 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT + 99 - + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8129
SELECT + 99 - + COUNT ( * ) AS col1
----
98

query I rowsort
SELECT - - 46 * - 16 - - 15 + + 56 - 96 AS col2
----
-761

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT ALL - - 41 * + COUNT( * ) - + 37 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL - - 41 * + COUNT ( * ) - + 37 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8132
SELECT ALL 87 DIV + + 82 + + ( + 87 ) DIV - COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL 87 / + + 82 + + ( + 87 ) / - COUNT ( * ) AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8133
SELECT + SUM( CAST( ( 52 ) AS SIGNED ) ) * - 75
----
-3900

skipif mysql # not compatible
query I rowsort label-8133
SELECT + SUM ( CAST ( ( 52 ) AS INTEGER ) ) * - 75
----
-3900

query I rowsort
SELECT - 26 + - 83 col1
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT SUM( - + 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8135
SELECT SUM ( - + 63 ) AS col2
----
-63

query I rowsort
SELECT DISTINCT + 38 * 96
----
3648

query II rowsort
SELECT ALL - 26, 50 AS col1
----
-26
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8138
SELECT + - CASE 50 WHEN - + CAST( NULL AS SIGNED ) THEN NULL WHEN - NULLIF ( 92, COALESCE ( 10, + 40 * - 89 + + 65, - COALESCE ( - 89, + 83 / + - 85, + - 77 + - + NULLIF ( - COUNT( * ), 3 ) ) * + 3 * - COUNT( * ) * - 31 ) ) THEN - COUNT( * ) * 11 + 15 WHEN - SUM( ALL + 50 ) THEN - 22 + 97 * - ( + 33 + 68 ) END + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT + - CASE 50 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL WHEN - NULLIF ( 92, COALESCE ( 10, + 40 * - 89 + + 65, - COALESCE ( - 89, + 83 / + - 85, + - 77 + - + NULLIF ( - COUNT ( * ), 3 ) ) * + 3 * - COUNT ( * ) * - 31 ) ) THEN - COUNT ( * ) * 11 + 15 WHEN - SUM ( ALL + 50 ) THEN - 22 + 97 * - ( + 33 + 68 ) END + 95 AS col2
----
NULL

query II rowsort
SELECT + 26, + 10 * - 86 AS col1
----
26
-860

query I rowsort
SELECT + + 99 + 18
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8141
SELECT + COALESCE ( + 40, + 64, MAX( DISTINCT + 26 ) ) DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8141
SELECT + COALESCE ( + 40, + 64, MAX ( DISTINCT + 26 ) ) / 57 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT DISTINCT 71 * - + 58 * + COUNT( * ) - + + 24 AS col2
----
-4142

skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT 71 * - + 58 * + COUNT ( * ) - + + 24 AS col2
----
-4142

query I rowsort
SELECT ALL - 19 * - + 85 AS col2
----
1615

query I rowsort
SELECT DISTINCT + 60 + - 98 * - 95 AS col2
----
9370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8145
SELECT ALL + COUNT( * ) + 35 + COALESCE ( + 92, - CASE - 99 WHEN + 43 THEN NULL WHEN + - 69 THEN - 75 ELSE + 21 * + + 69 END, - + 75 + + ( + 28 ) * + 59 ) + - 2 DIV 51 col0
----
128

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL + COUNT ( * ) + 35 + COALESCE ( + 92, - CASE - 99 WHEN + 43 THEN NULL WHEN + - 69 THEN - 75 ELSE + 21 * + + 69 END, - + 75 + + ( + 28 ) * + 59 ) + - 2 / 51 col0
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8146
SELECT - CAST( + COUNT( * ) AS SIGNED ) + - - 25 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8146
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + - - 25 AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8147
SELECT DISTINCT - 60 + - 99 DIV + 40 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT - 60 + - 99 / + 40 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL + 97 + - NULLIF ( - - 86, 19 ) + - - COUNT( * ) * + 21
----
32

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL + 97 + - NULLIF ( - - 86, 19 ) + - - COUNT ( * ) * + 21
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8149
SELECT ALL - 43 + - 71 + SUM( - 19 ) * SUM( + 94 ) * - 43 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL - 43 + - 71 + SUM ( - 19 ) * SUM ( + 94 ) * - 43 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT ( - MIN( ALL + - 97 ) )
----
97

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT ( - MIN ( ALL + - 97 ) )
----
97

query I rowsort
SELECT - 77 + 80
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT DISTINCT - COUNT( * ) + + - 50
----
-51

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT - COUNT ( * ) + + - 50
----
-51

query I rowsort
SELECT ALL + 98 + - ( + + 10 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8154
SELECT ALL - 43 + - 11 DIV - + 24 * 77
----
-43

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL - 43 + - 11 / - + 24 * 77
----
-43

query I rowsort
SELECT DISTINCT + ( + - ( - 14 ) ) AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8156
SELECT DISTINCT 72 DIV + 22 + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT 72 / + 22 + COUNT ( * ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT ALL + NULLIF ( + + 41, COALESCE ( + 64, - + 91, COALESCE ( + MAX( DISTINCT - 31 ), 57 + + + SUM( - 51 ) ) ) * 88 * - 70 + - - 48 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL + NULLIF ( + + 41, COALESCE ( + 64, - + 91, COALESCE ( + MAX ( DISTINCT - 31 ), 57 + + + SUM ( - 51 ) ) ) * 88 * - 70 + - - 48 ) AS col1
----
41

query I rowsort
SELECT - 66 * + 74 + + + 6
----
-4878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8159
SELECT + 75 + + + CASE + CAST( NULL AS SIGNED ) WHEN 58 - + COUNT( * ) THEN 59 WHEN - 7 * - 65 * + 21 * - 43 + - + 3 + - COUNT( * ) DIV - + 99 + + 9 THEN + 2 DIV 96 ELSE + - 66 END * + ( - 48 ) * 26 AS col0
----
82443

skipif mysql # not compatible
query I rowsort label-8159
SELECT + 75 + + + CASE + CAST ( NULL AS INTEGER ) WHEN 58 - + COUNT ( * ) THEN 59 WHEN - 7 * - 65 * + 21 * - 43 + - + 3 + - COUNT ( * ) / - + 99 + + 9 THEN + 2 / 96 ELSE + - 66 END * + ( - 48 ) * 26 AS col0
----
82443

query I rowsort
SELECT - 34 + 22 + - 32 + 34 * - - 94 + - 53 col1
----
3099

query II rowsort
SELECT - - 21 * + - 77 AS col1, 99
----
-1617
99

query II rowsort
SELECT + - 15 * + 41 AS col0, + 80 * - 36 * - 94
----
-615
270720

query I rowsort
SELECT DISTINCT - 77 * 57 + 3 AS col1
----
-4386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8164
SELECT DISTINCT + COUNT( * ) DIV - MIN( DISTINCT - 21 ) + + + 80
----
80

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT + COUNT ( * ) / - MIN ( DISTINCT - 21 ) + + + 80
----
80

query I rowsort
SELECT DISTINCT + 53 * + 38 * - - 44 * - 14 col1
----
-1240624

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT 28 + + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-8166
SELECT 28 + + + COUNT ( * )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8167
SELECT COALESCE ( 8, - CAST( + COUNT( * ) AS SIGNED ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8167
SELECT COALESCE ( 8, - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT DISTINCT + + 73 + MIN( ALL + 74 ) AS col1
----
147

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT + + 73 + MIN ( ALL + 74 ) AS col1
----
147

query I rowsort
SELECT DISTINCT - 26 + + 50 * 50
----
2474

query I rowsort
SELECT ALL 43 + - 88 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT ALL 84 + + - ( - NULLIF ( + + COUNT( * ), NULLIF ( + 22, 46 ) ) ) - + 99 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL 84 + + - ( - NULLIF ( + + COUNT ( * ), NULLIF ( + 22, 46 ) ) ) - + 99 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8172
SELECT DISTINCT 94, + SUM( - CAST( NULL AS SIGNED ) ) AS col2
----
94
NULL

skipif mysql # not compatible
query II rowsort label-8172
SELECT DISTINCT 94, + SUM ( - CAST ( NULL AS INTEGER ) ) AS col2
----
94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ( + 35 ) + ( COUNT( * ) ) + + 51 * 50 * + 73 AS col1
----
186186

skipif mysql # not compatible
query I rowsort label-8173
SELECT ( + 35 ) + ( COUNT ( * ) ) + + 51 * 50 * + 73 AS col1
----
186186

query II rowsort
SELECT - 96 AS col2, ( + - 73 )
----
-96
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT ALL 78 + AVG ( DISTINCT + 79 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL 78 + AVG ( DISTINCT + 79 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 98 AS col2, + 76 AS col0
----
-98
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8177
SELECT 96 DIV - 29 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8177
SELECT 96 / - 29 AS col2
----
-3

query I rowsort
SELECT ALL 54 + - 15
----
39

query I rowsort
SELECT ALL 71 * 86 AS col0
----
6106

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT DISTINCT 77 * + - SUM( ALL + 43 ) AS col1
----
-3311

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT 77 * + - SUM ( ALL + 43 ) AS col1
----
-3311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT ALL + 66 DIV + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL + 66 / + COUNT ( * )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8182
SELECT ALL - 12 - + - 75 + + COUNT( * ), - COUNT( * ) AS col2
----
64
-1

skipif mysql # not compatible
query II rowsort label-8182
SELECT ALL - 12 - + - 75 + + COUNT ( * ), - COUNT ( * ) AS col2
----
64
-1

query I rowsort
SELECT DISTINCT - 94 - + 52 + 2 col2
----
-144

query II rowsort
SELECT 18 AS col0, 56 col0
----
18
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8185
SELECT 21 - - CAST( NULL AS SIGNED ) + + 53 * - 51 * ( + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT 21 - - CAST ( NULL AS INTEGER ) + + 53 * - 51 * ( + 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL - COUNT( * ) - - 9 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - COUNT ( * ) - - 9 AS col1
----
8

query I rowsort
SELECT 92 * + 59 AS col2
----
5428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8188
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) / 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) / 70 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8189
SELECT 75 * + CAST( NULL AS SIGNED ) + 92 * + 85 + - 5, 31 AS col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-8189
SELECT 75 * + CAST ( NULL AS INTEGER ) + 92 * + 85 + - 5, 31 AS col1
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT 17 * + 13 + + COUNT( * ) * COUNT( * )
----
222

skipif mysql # not compatible
query I rowsort label-8190
SELECT 17 * + 13 + + COUNT ( * ) * COUNT ( * )
----
222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8191
SELECT DISTINCT - CAST( - COALESCE ( + 81, 66 ) AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT - CAST ( - COALESCE ( + 81, 66 ) AS INTEGER )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8192
SELECT DISTINCT - ( + COALESCE ( - 60, - 81 + + + 82 + - 54 + - 73 - + + COUNT( * ) DIV - 63 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT - ( + COALESCE ( - 60, - 81 + + + 82 + - 54 + - 73 - + + COUNT ( * ) / - 63 ) ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT ALL + - 63 * - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL + - 63 * - COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT - MIN( 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT - MIN ( 92 ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT 23 * + 70 + MAX( 30 ) AS col2
----
1640

skipif mysql # not compatible
query I rowsort label-8195
SELECT 23 * + 70 + MAX ( 30 ) AS col2
----
1640

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + SUM( ALL + 36 ) col1
----
36

skipif mysql # not compatible
query I rowsort label-8196
SELECT + SUM ( ALL + 36 ) col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8197
SELECT ALL - 17 AS col2, - COUNT( * ) + - 81 + + 79 + + 80 AS col2
----
-17
77

skipif mysql # not compatible
query II rowsort label-8197
SELECT ALL - 17 AS col2, - COUNT ( * ) + - 81 + + 79 + + 80 AS col2
----
-17
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT + 42 * 57 + - NULLIF ( 37, - + 15 ) + - 50 * + COUNT( * ) AS col0
----
2307

skipif mysql # not compatible
query I rowsort label-8198
SELECT + 42 * 57 + - NULLIF ( 37, - + 15 ) + - 50 * + COUNT ( * ) AS col0
----
2307

query I rowsort
SELECT - 8 * 13 AS col2
----
-104

query I rowsort
SELECT - 55 * 38 + + 91
----
-1999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8201
SELECT 65 * + AVG ( ALL + CAST( NULL AS SIGNED ) ) + - + COUNT( * ) * MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT 65 * + AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) * MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 53 + - + 74 + + + 78 * 76
----
5907

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT + - MAX( DISTINCT 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-8203
SELECT + - MAX ( DISTINCT 86 ) AS col2
----
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-8204
SELECT ALL 5 DIV + + ( + 8 ) + - + 24 + 36 * + + 32 AS col2, 62 DIV + + 44 AS col2
----
1128
1

skipif mysql # not compatible
query II rowsort label-8204
SELECT ALL 5 / + + ( + 8 ) + - + 24 + 36 * + + 32 AS col2, 62 / + + 44 AS col2
----
1128
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL + 77 + - - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL + 77 + - - COUNT ( * )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT ALL - 71 + - 10 * + - CAST( + 89 AS SIGNED ) + 74
----
893

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL - 71 + - 10 * + - CAST ( + 89 AS INTEGER ) + 74
----
893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8207
SELECT DISTINCT + + COUNT( * ) DIV - - 26 col0
----
0

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT + + COUNT ( * ) / - - 26 col0
----
0

query II rowsort
SELECT ALL - 97 + 32 * - 92 AS col0, COALESCE ( 9, 57 ) AS col1
----
-3041
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT DISTINCT - + COALESCE ( - COUNT( * ), - 47 ) + + 68 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT - + COALESCE ( - COUNT ( * ), - 47 ) + + 68 AS col1
----
69

query II rowsort
SELECT 15 AS col0, 96
----
15
96

query I rowsort
SELECT ALL 78 + 55 AS col2
----
133

query I rowsort
SELECT 58 + + 85 col0
----
143

query II rowsort
SELECT 71, 67 + + 21 col1
----
71
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8214
SELECT CASE + - ( 91 ) WHEN - 25 THEN + 90 + - + COUNT( * ) / CAST( NULL AS SIGNED ) WHEN 80 THEN + AVG ( + 20 ) - + NULLIF ( - - ( 83 ), - COALESCE ( + CAST( NULL AS SIGNED ), 39 ) ) * + + 94 * - 64 WHEN - + 82 THEN 65 + + + 72 * + 65 ELSE NULL END + - COALESCE ( 25, - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT CASE + - ( 91 ) WHEN - 25 THEN + 90 + - + COUNT ( * ) / CAST ( NULL AS INTEGER ) WHEN 80 THEN + AVG ( + 20 ) - + NULLIF ( - - ( 83 ), - COALESCE ( + CAST ( NULL AS INTEGER ), 39 ) ) * + + 94 * - 64 WHEN - + 82 THEN 65 + + + 72 * + 65 ELSE NULL END + - COALESCE ( 25, - 7 )
----
NULL

query II rowsort
SELECT 79 AS col0, 8 + - - 98
----
79
106

query II rowsort
SELECT ALL 98, - 20 AS col0
----
98
-20

query I rowsort
SELECT 77 + 3 AS col0
----
80

query I rowsort
SELECT NULLIF ( + + 76, AVG ( - + 9 ) / + 29 ) - 10 + - 90 + + 7 * + 91 AS col2
----
613

query II rowsort
SELECT DISTINCT 56 col2, 92 + 11
----
56
103

query I rowsort
SELECT ALL 24 - 27 + + 92 AS col1
----
89

query II rowsort
SELECT ALL 9, + 61 + - 90 AS col0
----
9
-29

query II rowsort
SELECT DISTINCT 66, - 94 * - - 44 AS col1
----
66
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT CASE - ( - - 59 ) WHEN - 23 * + 47 * + 12 THEN + + 89 WHEN - 18 THEN + + MAX( ALL 36 ) ELSE 25 END * + + ( + 96 )
----
2400

skipif mysql # not compatible
query I rowsort label-8223
SELECT CASE - ( - - 59 ) WHEN - 23 * + 47 * + 12 THEN + + 89 WHEN - 18 THEN + + MAX ( ALL 36 ) ELSE 25 END * + + ( + 96 )
----
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8224
SELECT CAST( NULL AS SIGNED ) * + 77 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT CAST ( NULL AS INTEGER ) * + 77 col0
----
NULL

query I rowsort
SELECT CASE + 1 WHEN + 59 THEN + - 20 END + 55 + + - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT 2 * MAX( + COALESCE ( - - 0, + 40, - 96 * + + 66 * + 94, - 67 ) ) * 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8226
SELECT 2 * MAX ( + COALESCE ( - - 0, + 40, - 96 * + + 66 * + 94, - 67 ) ) * 89 AS col0
----
0

query II rowsort
SELECT ALL 30 AS col1, 53 * 76 AS col0
----
30
4028

query I rowsort
SELECT 8 + + 91 * - + 42 col2
----
-3814

query II rowsort
SELECT 8, 39 + 62 AS col0
----
8
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8230
SELECT ALL COUNT( * ) * - - NULLIF ( - COUNT( * ), 72 ) DIV - ( - + 96 ) * 83 + + + 78
----
78

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL COUNT ( * ) * - - NULLIF ( - COUNT ( * ), 72 ) / - ( - + 96 ) * 83 + + + 78
----
78

query II rowsort
SELECT ALL 87 AS col2, 23 * 17 + - 88 - 81 * + 89
----
87
-6906

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT + 52 + + 4 DIV - 95
----
52

skipif mysql # not compatible
query I rowsort label-8232
SELECT + 52 + + 4 / - 95
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-8233
SELECT + + 65 AS col1, - COUNT( * ) AS col0
----
65
-1

skipif mysql # not compatible
query II rowsort label-8233
SELECT + + 65 AS col1, - COUNT ( * ) AS col0
----
65
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8234
SELECT - + 83 * 91 + CAST( NULL AS SIGNED ) + - 2 - - 69 - + 14 * 26 * + 44 * - CASE - + ( + MAX( ALL ( + 46 ) ) ) WHEN - 23 + + - 18 + - 6 + + SUM( DISTINCT - 43 ) + - 83 * + 58 THEN NULL ELSE + - 48 * - COUNT( * ) + - 8 END + + 70 + ( - SUM( ALL - 94 ) ) + - + 64 * COUNT( * ) + AVG ( DISTINCT 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT - + 83 * 91 + CAST ( NULL AS INTEGER ) + - 2 - - 69 - + 14 * 26 * + 44 * - CASE - + ( + MAX ( ALL ( + 46 ) ) ) WHEN - 23 + + - 18 + - 6 + + SUM ( DISTINCT - 43 ) + - 83 * + 58 THEN NULL ELSE + - 48 * - COUNT ( * ) + - 8 END + + 70 + ( - SUM ( ALL - 94 ) ) + - + 64 * COUNT ( * ) + AVG ( DISTINCT 19 )
----
NULL

query I rowsort
SELECT + - ( + - 53 )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-8236
SELECT ALL + 19 * COUNT( 75 ) + + 56 + + 97 * - 38 + 98 AS col2, + 80 * 82
----
-3513
6560

skipif mysql # not compatible
query II rowsort label-8236
SELECT ALL + 19 * COUNT ( 75 ) + + 56 + + 97 * - 38 + 98 AS col2, + 80 * 82
----
-3513
6560

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT MAX( - 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-8237
SELECT MAX ( - 94 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT - 7 / + COUNT( * ) + NULLIF ( + 34, - ( - COUNT( + 16 ) ) * - 52 * - - 49 ) / - CASE + 1 WHEN SUM( DISTINCT - 54 ) + + 8 THEN NULL WHEN - 89 THEN - 21 ELSE NULL END + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT - 7 / + COUNT ( * ) + NULLIF ( + 34, - ( - COUNT ( + 16 ) ) * - 52 * - - 49 ) / - CASE + 1 WHEN SUM ( DISTINCT - 54 ) + + 8 THEN NULL WHEN - 89 THEN - 21 ELSE NULL END + 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL + COUNT( * ) * - COUNT( * ) * + MIN( ALL - 81 ) + 7
----
88

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * + MIN ( ALL - 81 ) + 7
----
88

query I rowsort
SELECT + - 86 * - 10
----
860

query I rowsort
SELECT - - 81 + + 83 col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT + SUM( ALL 62 )
----
62

skipif mysql # not compatible
query I rowsort label-8242
SELECT + SUM ( ALL 62 )
----
62

query II rowsort
SELECT + 17 col0, + 38 AS col0
----
17
38

query I rowsort
SELECT - ( + ( + - 26 ) )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8245
SELECT - MAX( + - 64 ) * - CAST( - COUNT( * ) AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-8245
SELECT - MAX ( + - 64 ) * - CAST ( - COUNT ( * ) AS INTEGER )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT ALL 48 * 59 + + + COUNT( * ) * 74 + 41 AS col0
----
2947

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL 48 * 59 + + + COUNT ( * ) * 74 + 41 AS col0
----
2947

query II rowsort
SELECT + 17 AS col1, 54 col2
----
17
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8248
SELECT - 8 DIV + - 23 + 11
----
11

skipif mysql # not compatible
query I rowsort label-8248
SELECT - 8 / + - 23 + 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT ALL + SUM( 17 ) * - + 74 + 85 + + - 22 * + 69 AS col1
----
-2691

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL + SUM ( 17 ) * - + 74 + 85 + + - 22 * + 69 AS col1
----
-2691

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT - - 54 * - COUNT( * ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-8250
SELECT - - 54 * - COUNT ( * ) col0
----
-54

query II rowsort
SELECT DISTINCT + ( 70 ) col1, + 20 * 30 * - 3 * - 10 + - 63 + - + 12 * + 75 * - 77 * 6
----
70
433737

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT DISTINCT 17 * + - 25 - - COUNT( * )
----
-424

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT 17 * + - 25 - - COUNT ( * )
----
-424

onlyif mysql # aggregate syntax: 
query II rowsort label-8253
SELECT ALL COUNT( * ) - - 28 AS col2, 37
----
29
37

skipif mysql # not compatible
query II rowsort label-8253
SELECT ALL COUNT ( * ) - - 28 AS col2, 37
----
29
37

query I rowsort
SELECT DISTINCT 83 * + + 86 AS col1
----
7138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8255
SELECT ALL - COUNT( 95 ) DIV 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL - COUNT ( 95 ) / 12 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8256
SELECT - 6 DIV 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8256
SELECT - 6 / 24 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL + COUNT( * ) - 38 + 58 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL + COUNT ( * ) - 38 + 58 AS col2
----
21

query I rowsort
SELECT - NULLIF ( + ( 2 ), + 61 ) col0
----
-2

query I rowsort
SELECT DISTINCT + 94 * 68
----
6392

query I rowsort
SELECT + 52 * 94
----
4888

query I rowsort
SELECT - 64 * + 40
----
-2560

onlyif mysql # DIV for integer division: 
query I rowsort label-8262
SELECT - 23 + 46 * 85 DIV - 99 + 36 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8262
SELECT - 23 + 46 * 85 / - 99 + 36 AS col1
----
-26

query II rowsort
SELECT DISTINCT ( - 96 ) AS col2, 6 AS col2
----
-96
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT ALL CAST( - 65 AS SIGNED ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL CAST ( - 65 AS INTEGER ) AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8265
SELECT COALESCE ( + 56, COUNT( ALL + 21 ), - - 13 * + - 47 * + COALESCE ( + CAST( NULL AS SIGNED ), 94 ) DIV - 32 * + COALESCE ( - 71, - + CAST( NULL AS SIGNED ) DIV COUNT( * ) + + COUNT( * ) + + COUNT( * ) ) DIV - - 72 + - - 82 + 9 + + - 79 * - ( + + CASE 96 WHEN + + 47 + - 14 THEN NULL WHEN - NULLIF ( + NULLIF ( 98, - + COUNT( * ) ), - MIN( ALL 59 ) DIV + 87 * - CASE + 25 * ( + 43 ) WHEN - ( 84 ) THEN NULL WHEN - 28 - COUNT( * ) THEN - CASE - 64 WHEN + 67 + 70 THEN NULL WHEN - 1 + - COUNT( * ) THEN + NULLIF ( COUNT( * ), 11 DIV 20 ) * 26 END + - 30 ELSE NULL END ) + + 36 * + COALESCE ( 29, + ( 97 ), 94 ) THEN + COALESCE ( + 8, + 0 * 36 + 79 ) DIV 69 + COUNT( * ) END ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8265
SELECT COALESCE ( + 56, COUNT ( ALL + 21 ), - - 13 * + - 47 * + COALESCE ( + CAST ( NULL AS INTEGER ), 94 ) / - 32 * + COALESCE ( - 71, - + CAST ( NULL AS INTEGER ) / COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) ) / - - 72 + - - 82 + 9 + + - 79 * - ( + + CASE 96 WHEN + + 47 + - 14 THEN NULL WHEN - NULLIF ( + NULLIF ( 98, - + COUNT ( * ) ), - MIN ( ALL 59 ) / + 87 * - CASE + 25 * ( + 43 ) WHEN - ( 84 ) THEN NULL WHEN - 28 - COUNT ( * ) THEN - CASE - 64 WHEN + 67 + 70 THEN NULL WHEN - 1 + - COUNT ( * ) THEN + NULLIF ( COUNT ( * ), 11 / 20 ) * 26 END + - 30 ELSE NULL END ) + + 36 * + COALESCE ( 29, + ( 97 ), 94 ) THEN + COALESCE ( + 8, + 0 * 36 + 79 ) / 69 + COUNT ( * ) END ) ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT DISTINCT - 4 + - - COUNT( * ) + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT - 4 + - - COUNT ( * ) + COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT + 54 - + + ( - + 23 ) AS col2
----
77

query I rowsort
SELECT ALL ( - 75 ) + - 3
----
-78

query I rowsort
SELECT DISTINCT 42 * - + 98 AS col2
----
-4116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8270
SELECT + + 32 + + ( - 1 ) + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8270
SELECT + + 32 + + ( - 1 ) + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 21 * + 72 AS col1
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - 99 * SUM( + + 72 )
----
-7128

skipif mysql # not compatible
query I rowsort label-8272
SELECT - 99 * SUM ( + + 72 )
----
-7128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8273
SELECT DISTINCT + 78 DIV + 74 + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT + 78 / + 74 + + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT DISTINCT 8 * + 99 + MAX( + 56 )
----
848

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT 8 * + 99 + MAX ( + 56 )
----
848

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8275
SELECT DISTINCT - 38 DIV + 58 * + COUNT( * ) * ( 69 ) AS col0, ( 39 ) * - - 4 * 31 AS col1
----
0
4836

skipif mysql # not compatible
query II rowsort label-8275
SELECT DISTINCT - 38 / + 58 * + COUNT ( * ) * ( 69 ) AS col0, ( 39 ) * - - 4 * 31 AS col1
----
0
4836

query I rowsort
SELECT DISTINCT + + ( + - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT COUNT( DISTINCT + 79 ) * + 82 + + 35 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-8277
SELECT COUNT ( DISTINCT + 79 ) * + 82 + + 35 AS col0
----
117

query I rowsort
SELECT ALL + ( + 20 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8279
SELECT + 8 * + + CASE - + 76 WHEN + 24 THEN - - 42 * - 87 - - + NULLIF ( + 52, + 93 * - + 13 * 39 ) + - 76 WHEN + 99 THEN NULL WHEN COUNT( * ) THEN NULL END + + 59 AS col2, 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-8279
SELECT + 8 * + + CASE - + 76 WHEN + 24 THEN - - 42 * - 87 - - + NULLIF ( + 52, + 93 * - + 13 * 39 ) + - 76 WHEN + 99 THEN NULL WHEN COUNT ( * ) THEN NULL END + + 59 AS col2, 68
----
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT + COALESCE ( + 41, + - MIN( 33 ) )
----
41

skipif mysql # not compatible
query I rowsort label-8280
SELECT + COALESCE ( + 41, + - MIN ( 33 ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT + COUNT( * ) + - NULLIF ( 45, + 78 ) + ( + 3 ) + - - 89 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8281
SELECT + COUNT ( * ) + - NULLIF ( 45, + 78 ) + ( + 3 ) + - - 89 AS col0
----
48

query I rowsort
SELECT ( + 26 ) AS col2
----
26

query I rowsort
SELECT ALL - 19 * + 55 - - 35
----
-1010

query I rowsort
SELECT ALL 36 * 34
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT DISTINCT + 70 * + 38 * + COUNT( * ) * + 42
----
111720

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT + 70 * + 38 * + COUNT ( * ) * + 42
----
111720

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT DISTINCT COUNT( DISTINCT 57 ) * - 68 - - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT COUNT ( DISTINCT 57 ) * - 68 - - COUNT ( * ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL + CASE - COALESCE ( - - MIN( - 66 ), + - 52 * - + 60 ) WHEN - 19 * + - 71 / - 63 - 81 + 63 THEN NULL WHEN 12 + MAX( 32 ) + + - COUNT( * ) THEN - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL + CASE - COALESCE ( - - MIN ( - 66 ), + - 52 * - + 60 ) WHEN - 19 * + - 71 / - 63 - 81 + 63 THEN NULL WHEN 12 + MAX ( 32 ) + + - COUNT ( * ) THEN - 43 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT 16 * COUNT( - + 76 ) + COUNT( * ) * - 71 col1
----
-55

skipif mysql # not compatible
query I rowsort label-8288
SELECT 16 * COUNT ( - + 76 ) + COUNT ( * ) * - 71 col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT ALL - MIN( + ( - + 36 ) ) * + 34 * + COALESCE ( - 34, + 49 )
----
-41616

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL - MIN ( + ( - + 36 ) ) * + 34 * + COALESCE ( - 34, + 49 )
----
-41616

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT COALESCE ( CASE - 6 WHEN + MAX( ALL - 60 ) THEN NULL WHEN + 47 THEN - 2 + + + 80 * + - 8 ELSE + 51 END, - 62 )
----
51

skipif mysql # not compatible
query I rowsort label-8290
SELECT COALESCE ( CASE - 6 WHEN + MAX ( ALL - 60 ) THEN NULL WHEN + 47 THEN - 2 + + + 80 * + - 8 ELSE + 51 END, - 62 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8291
SELECT - 35 + + 91 * + ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8291
SELECT - 35 + + 91 * + ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT 8 * - + 44 * 16 * - ( + COUNT( * ) ) AS col1
----
5632

skipif mysql # not compatible
query I rowsort label-8292
SELECT 8 * - + 44 * 16 * - ( + COUNT ( * ) ) AS col1
----
5632

onlyif mysql # DIV for integer division: 
query I rowsort label-8293
SELECT DISTINCT - ( - 29 ) DIV 91 * - + 20 + - 78
----
-78

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT - ( - 29 ) / 91 * - + 20 + - 78
----
-78

query I rowsort
SELECT 21 * + + 24 AS col1
----
504

query I rowsort
SELECT ALL - 17 * 59
----
-1003

query I rowsort
SELECT ALL - 8 + + 89 col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT COUNT( * ) * 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-8297
SELECT COUNT ( * ) * 75 AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT DISTINCT + 72 + - CAST( NULL AS SIGNED ) / 69 + + - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT + 72 + - CAST ( NULL AS INTEGER ) / 69 + + - 18 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT ALL - + 57 * + COALESCE ( - + 96, + - 65 DIV + - 15 + - 18 ) * 80
----
437760

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL - + 57 * + COALESCE ( - + 96, + - 65 / + - 15 + - 18 ) * 80
----
437760

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - MIN( ALL - 45 ) + 59 + + MIN( - 38 )
----
66

skipif mysql # not compatible
query I rowsort label-8300
SELECT - MIN ( ALL - 45 ) + 59 + + MIN ( - 38 )
----
66

query I rowsort
SELECT + ( + + 74 )
----
74

query I rowsort
SELECT ALL + + 44 + + 26
----
70

query I rowsort
SELECT - NULLIF ( + 96, + - 10 ) AS col0
----
-96

query II rowsort
SELECT - 22 AS col1, 5 AS col1
----
-22
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT + COALESCE ( 59, - 81 ) * + COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8305
SELECT + COALESCE ( 59, - 81 ) * + COUNT ( * ) AS col1
----
59

query I rowsort
SELECT DISTINCT - ( + 23 ) AS col0
----
-23

query I rowsort
SELECT ALL 71 + + - 51 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8308
SELECT DISTINCT - COALESCE ( 49, + SUM( + CAST( NULL AS SIGNED ) ) ) AS col0, + 0
----
-49
0

skipif mysql # not compatible
query II rowsort label-8308
SELECT DISTINCT - COALESCE ( 49, + SUM ( + CAST ( NULL AS INTEGER ) ) ) AS col0, + 0
----
-49
0

query I rowsort
SELECT DISTINCT - - 2 + + + 78 AS col1
----
80

query I rowsort
SELECT 4 * - - 97 + - 31
----
357

query II rowsort
SELECT ALL - 98 - + 30 * - 15 AS col1, + 15
----
352
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT ALL - + NULLIF ( - + 68, + + 63 + 98 / - - MIN( DISTINCT - 98 ) )
----
68

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL - + NULLIF ( - + 68, + + 63 + 98 / - - MIN ( DISTINCT - 98 ) )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8313
SELECT + + 38 DIV CAST( - 25 AS SIGNED ) - + + 75 + + - COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-8313
SELECT + + 38 / CAST ( - 25 AS INTEGER ) - + + 75 + + - COUNT ( * ) AS col0
----
-77

query I rowsort
SELECT + 21 * + 27 AS col2
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT ALL - COUNT( * ) * + + 47 col1
----
-47

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL - COUNT ( * ) * + + 47 col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8316
SELECT MAX( - - 52 ) DIV + + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8316
SELECT MAX ( - - 52 ) / + + 71 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8317
SELECT ALL - ( 5 ) DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - ( 5 ) / - 35
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8318
SELECT COUNT( - + 88 ) / - 42 + + CAST( NULL AS SIGNED ) - + - ( + CASE COUNT( * ) WHEN - + MIN( ALL 37 ) THEN - CAST( - 44 AS SIGNED ) + CASE + 17 WHEN - 88 THEN - 35 WHEN + 43 THEN NULL WHEN + 44 THEN NULL WHEN 89 THEN - 29 * - + 23 ELSE NULL END END ) * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8318
SELECT COUNT ( - + 88 ) / - 42 + + CAST ( NULL AS INTEGER ) - + - ( + CASE COUNT ( * ) WHEN - + MIN ( ALL 37 ) THEN - CAST ( - 44 AS INTEGER ) + CASE + 17 WHEN - 88 THEN - 35 WHEN + 43 THEN NULL WHEN + 44 THEN NULL WHEN 89 THEN - 29 * - + 23 ELSE NULL END END ) * + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT 92 - - - SUM( + 55 ) + - COUNT( * ) + 25 * + 36 * - 51 + - 20 + + 41 * - 19 col1
----
-46663

skipif mysql # not compatible
query I rowsort label-8319
SELECT 92 - - - SUM ( + 55 ) + - COUNT ( * ) + 25 * + 36 * - 51 + - 20 + + 41 * - 19 col1
----
-46663

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT 28 * - COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8320
SELECT 28 * - COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT DISTINCT - SUM( - 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT - SUM ( - 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT ALL - COUNT( * ) * + 49 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL - COUNT ( * ) * + 49 AS col2
----
-49

query I rowsort
SELECT DISTINCT - ( 53 ) * + 85 AS col1
----
-4505

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT ALL - 22 + 26 * + COUNT( DISTINCT - 63 ) + + - COALESCE ( - 80, - 82 * + ( - 87 ) + 26 + - - 60 )
----
84

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL - 22 + 26 * + COUNT ( DISTINCT - 63 ) + + - COALESCE ( - 80, - 82 * + ( - 87 ) + 26 + - - 60 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8325
SELECT ALL 99 * 10 AS col2, + 20 + ( + CAST( NULL AS SIGNED ) ) AS col1
----
990
NULL

skipif mysql # not compatible
query II rowsort label-8325
SELECT ALL 99 * 10 AS col2, + 20 + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
990
NULL

query I rowsort
SELECT ALL ( - + 71 ) + - 17 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT DISTINCT - COUNT( * ) * + + 22 * - - 32 AS col2
----
-704

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT - COUNT ( * ) * + + 22 * - - 32 AS col2
----
-704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8328
SELECT DISTINCT + CAST( + 94 AS SIGNED ) + + - 77 * + ( + + 19 ) * + MIN( - 81 )
----
118597

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT + CAST ( + 94 AS INTEGER ) + + - 77 * + ( + + 19 ) * + MIN ( - 81 )
----
118597

query I rowsort
SELECT NULLIF ( 91, - 92 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL + + 42 + - 67 + + COUNT( * ) + - - 77 * + 97 AS col2
----
7445

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL + + 42 + - 67 + + COUNT ( * ) + - - 77 * + 97 AS col2
----
7445

onlyif mysql # aggregate syntax: 
query II rowsort label-8331
SELECT - 3 + 77 AS col2, - 37 * + COUNT( * ) AS col2
----
74
-37

skipif mysql # not compatible
query II rowsort label-8331
SELECT - 3 + 77 AS col2, - 37 * + COUNT ( * ) AS col2
----
74
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT - NULLIF ( - COUNT( * ), + 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8332
SELECT - NULLIF ( - COUNT ( * ), + 90 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8333
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) / + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT MAX( - 86 ) - - ( - ( + 81 ) ) AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-8334
SELECT MAX ( - 86 ) - - ( - ( + 81 ) ) AS col1
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT DISTINCT + 11 * + - MIN( DISTINCT 21 ) + + + 40 + - 15
----
-206

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT + 11 * + - MIN ( DISTINCT 21 ) + + + 40 + - 15
----
-206

query I rowsort
SELECT - 1 - - 84
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8337
SELECT 14 * - 25 + + 15 / + COUNT( * ) + + CASE - + 14 WHEN 91 THEN NULL WHEN + 57 + + 85 THEN - + 68 + - COUNT( * ) + - 71 / + - CAST( + 31 AS SIGNED ) WHEN - 57 * 98 / CAST( 48 AS SIGNED ) * + 90 + + 57 + CAST( 0 AS SIGNED ) + + 6 * - 52 + 16 / + 73 * - AVG ( 11 ) - - 82 - - 13 * + - 43 THEN - 14 ELSE NULL END * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT 14 * - 25 + + 15 / + COUNT ( * ) + + CASE - + 14 WHEN 91 THEN NULL WHEN + 57 + + 85 THEN - + 68 + - COUNT ( * ) + - 71 / + - CAST ( + 31 AS INTEGER ) WHEN - 57 * 98 / CAST ( 48 AS INTEGER ) * + 90 + + 57 + CAST ( 0 AS INTEGER ) + + 6 * - 52 + 16 / + 73 * - AVG ( 11 ) - - 82 - - 13 * + - 43 THEN - 14 ELSE NULL END * - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT COUNT( * ) * - + 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8338
SELECT COUNT ( * ) * - + 60 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT COUNT( + - 43 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8339
SELECT COUNT ( + - 43 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8340
SELECT COUNT( + - CAST( + 20 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8340
SELECT COUNT ( + - CAST ( + 20 AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT 86 * - + 67
----
-5762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8342
SELECT ( - + 79 ) * - 89 * + NULLIF ( - + COALESCE ( - 39, - 44 + - - 2 ), - 51 * 43 ) + + + COUNT( * ) * - 93 DIV - 21 + - - 14 + - - 97 + + 22 + - 96
----
274250

skipif mysql # not compatible
query I rowsort label-8342
SELECT ( - + 79 ) * - 89 * + NULLIF ( - + COALESCE ( - 39, - 44 + - - 2 ), - 51 * 43 ) + + + COUNT ( * ) * - 93 / - 21 + - - 14 + - - 97 + + 22 + - 96
----
274250

query I rowsort
SELECT DISTINCT 85 * 14 + + - 23 AS col2
----
1167

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT SUM( - - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-8344
SELECT SUM ( - - 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT 26 * - ( + ( + ( + COUNT( * ) ) ) ) + COUNT( * ) * - COALESCE ( - 29, + + 95 + - + 58 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-8345
SELECT 26 * - ( + ( + ( + COUNT ( * ) ) ) ) + COUNT ( * ) * - COALESCE ( - 29, + + 95 + - + 58 ) col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT + MAX( DISTINCT - - 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8346
SELECT + MAX ( DISTINCT - - 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8347
SELECT ALL 58 * + + COUNT( * ) * 27, COUNT( - - 43 ) col0
----
1566
1

skipif mysql # not compatible
query II rowsort label-8347
SELECT ALL 58 * + + COUNT ( * ) * 27, COUNT ( - - 43 ) col0
----
1566
1

query I rowsort
SELECT + 58 * - 14 * + 37 AS col1
----
-30044

query I rowsort
SELECT ALL 28 + - 66 AS col1
----
-38

query I rowsort
SELECT + 34 * - - 55 AS col2
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT - + COUNT( + + 63 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8351
SELECT - + COUNT ( + + 63 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT ALL COUNT( 53 )
----
1

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL COUNT ( 53 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8353
SELECT ALL - 64 - + CASE + 74 WHEN + MIN( DISTINCT - 50 ) * 8 + CAST( + + SUM( ALL - 16 ) AS SIGNED ) * + 67 * - 90 * + 99 THEN + + 48 * 29 ELSE 92 END col2, - 74 + + 13 DIV + ( + + 2 ) AS col1
----
-156
-68

skipif mysql # not compatible
query II rowsort label-8353
SELECT ALL - 64 - + CASE + 74 WHEN + MIN ( DISTINCT - 50 ) * 8 + CAST ( + + SUM ( ALL - 16 ) AS INTEGER ) * + 67 * - 90 * + 99 THEN + + 48 * 29 ELSE 92 END col2, - 74 + + 13 / + ( + + 2 ) AS col1
----
-156
-68

query I rowsort
SELECT DISTINCT 75 - + + ( - 11 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT ALL - + 77 * + COUNT( * ) * - - 83 * 36 + - COUNT( ALL - 60 ) * + COUNT( * )
----
-230077

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL - + 77 * + COUNT ( * ) * - - 83 * 36 + - COUNT ( ALL - 60 ) * + COUNT ( * )
----
-230077

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL + + COALESCE ( + 42, 65 - + 5 + + 57 - + COUNT( * ), + 48, 44 * 42 ) - + 40
----
2

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + + COALESCE ( + 42, 65 - + 5 + + 57 - + COUNT ( * ), + 48, 44 * 42 ) - + 40
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8357
SELECT - - COUNT( * ), + 73 + + - 13 AS col0
----
1
60

skipif mysql # not compatible
query II rowsort label-8357
SELECT - - COUNT ( * ), + 73 + + - 13 AS col0
----
1
60

query I rowsort
SELECT ALL 15 * + 35 + + 2
----
527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8359
SELECT - 73 DIV COUNT( * ) * - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-8359
SELECT - 73 / COUNT ( * ) * - COUNT ( * )
----
73

query I rowsort
SELECT + - 26 + - 87
----
-113

query I rowsort
SELECT ALL - 21 * - 32 AS col2
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8362
SELECT ALL ( + CASE COUNT( * ) WHEN - 60 * 59 * - 23 - CASE + + 75 WHEN - 73 * + + 92 * - 87 * + ( 25 ) + + 82 THEN - 52 * - 52 WHEN - 23 + + + 57 / + + 6 THEN NULL WHEN COUNT( * ) - CASE + + CAST( 25 AS SIGNED ) WHEN 19 THEN NULL WHEN - + 34 THEN NULL ELSE - CAST( - - 60 AS SIGNED ) END + + 17 / - + ( 75 ) THEN - - CAST( - 68 AS DECIMAL ) END + - 24 * + 40 THEN + MAX( ALL 29 ) + - CASE + COUNT( * ) WHEN + 22 * COUNT( * ) + + MAX( 12 - - 40 ) THEN ( + 3 ) WHEN + 86 THEN NULL ELSE NULL END * 55 WHEN - 84 - COUNT( * ) THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL ( + CASE COUNT ( * ) WHEN - 60 * 59 * - 23 - CASE + + 75 WHEN - 73 * + + 92 * - 87 * + ( 25 ) + + 82 THEN - 52 * - 52 WHEN - 23 + + + 57 / + + 6 THEN NULL WHEN COUNT ( * ) - CASE + + CAST ( 25 AS INTEGER ) WHEN 19 THEN NULL WHEN - + 34 THEN NULL ELSE - CAST ( - - 60 AS INTEGER ) END + + 17 / - + ( 75 ) THEN - - CAST ( - 68 AS REAL ) END + - 24 * + 40 THEN + MAX ( ALL 29 ) + - CASE + COUNT ( * ) WHEN + 22 * COUNT ( * ) + + MAX ( 12 - - 40 ) THEN ( + 3 ) WHEN + 86 THEN NULL ELSE NULL END * 55 WHEN - 84 - COUNT ( * ) THEN NULL ELSE NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT - CASE - + 60 WHEN - 28 THEN NULL WHEN + 32 + + + 99 + - 2 THEN + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT - CASE - + 60 WHEN - 28 THEN NULL WHEN + 32 + + + 99 + - 2 THEN + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + CASE + + 20 WHEN + 82 + + NULLIF ( 87, 42 ) THEN NULL ELSE - + 94 END col2
----
-94

query I rowsort
SELECT - 48 + + 5 AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8366
SELECT DISTINCT + + 68 DIV + - ( + + 58 ) - - 9 + + 81 * + - 36 * - 15 - 69 - SUM( + + 39 ) + - 77 + + COUNT( * ) + + + 45 * - + 1 AS col0
----
43519

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT + + 68 / + - ( + + 58 ) - - 9 + + 81 * + - 36 * - 15 - 69 - SUM ( + + 39 ) + - 77 + + COUNT ( * ) + + + 45 * - + 1 AS col0
----
43519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8367
SELECT - COUNT( * ) DIV 39 + 89 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-8367
SELECT - COUNT ( * ) / 39 + 89 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8368
SELECT ALL + 60 / CASE 31 WHEN + 10 THEN NULL WHEN + COUNT( * ) * - 59 * - 77 - + 65 * 91 + 28 + - 53 THEN NULL ELSE - 1 * - 25 + 93 + + CAST( NULL AS SIGNED ) / - 84 END + + CAST( - CAST( - 15 AS SIGNED ) AS SIGNED ) + 81 * + + COUNT( * ) * - 54 * - 56 + - - 71 * + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL + 60 / CASE 31 WHEN + 10 THEN NULL WHEN + COUNT ( * ) * - 59 * - 77 - + 65 * 91 + 28 + - 53 THEN NULL ELSE - 1 * - 25 + 93 + + CAST ( NULL AS INTEGER ) / - 84 END + + CAST ( - CAST ( - 15 AS INTEGER ) AS INTEGER ) + 81 * + + COUNT ( * ) * - 54 * - 56 + - - 71 * + - 15
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8369
SELECT - CAST( + 48 AS SIGNED ) * - 98 - - 30
----
4734

skipif mysql # not compatible
query I rowsort label-8369
SELECT - CAST ( + 48 AS INTEGER ) * - 98 - - 30
----
4734

query I rowsort
SELECT - 36 * - 17
----
612

query I rowsort
SELECT + 54 + - NULLIF ( - - 6, - 85 ) * - 71 + - 74
----
406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8372
SELECT DISTINCT - COALESCE ( + + 17, - 34, - + 97 + 71, MIN( ALL + 35 ) * - COUNT( * ) DIV 43 ) * + 86 AS col1
----
-1462

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT - COALESCE ( + + 17, - 34, - + 97 + 71, MIN ( ALL + 35 ) * - COUNT ( * ) / 43 ) * + 86 AS col1
----
-1462

query I rowsort
SELECT ALL - CASE 92 WHEN NULLIF ( + - 33, + 64 ) * + 79 + - 33 THEN - 76 * - 1 ELSE NULL END * 46 + - 51 + - - ( + + 93 )
----
NULL

query I rowsort
SELECT ALL 81 * - - 62 + + - 54 AS col1
----
4968

query I rowsort
SELECT ALL - 44 * + 98 + + + 23 col0
----
-4289

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT + MAX( - + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-8376
SELECT + MAX ( - + 99 )
----
-99

query I rowsort
SELECT ALL + 49 * 29 AS col0
----
1421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8378
SELECT NULLIF ( + 33, - CAST( NULL AS SIGNED ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8378
SELECT NULLIF ( + 33, - CAST ( NULL AS INTEGER ) ) AS col1
----
33

query II rowsort
SELECT + 66, 85 AS col2
----
66
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT CASE - ( COALESCE ( - 86, - COUNT( * ) / COUNT( * ) ) ) WHEN 79 * + COUNT( * ) THEN + + 52 WHEN - COUNT( * ) THEN NULL ELSE - + 17 + + CASE + 43 WHEN 59 THEN - 0 ELSE NULL END END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT CASE - ( COALESCE ( - 86, - COUNT ( * ) / COUNT ( * ) ) ) WHEN 79 * + COUNT ( * ) THEN + + 52 WHEN - COUNT ( * ) THEN NULL ELSE - + 17 + + CASE + 43 WHEN 59 THEN - 0 ELSE NULL END END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT ALL + 17 * - 43 + + + 62 + 48 * + 93 * + - ( + + CASE + 3 WHEN - - CASE + MIN( + - 31 ) WHEN 69 + - + COUNT( * ) THEN + 30 WHEN + - 73 THEN + 71 - - 23 + + - 75 WHEN 70 / - - 26 + + 6 + + - 25 + + 50 * COUNT( * ) THEN NULL ELSE + - 27 END THEN NULL ELSE + 11 END ) - + 22 * + + 53
----
-50939

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL + 17 * - 43 + + + 62 + 48 * + 93 * + - ( + + CASE + 3 WHEN - - CASE + MIN ( + - 31 ) WHEN 69 + - + COUNT ( * ) THEN + 30 WHEN + - 73 THEN + 71 - - 23 + + - 75 WHEN 70 / - - 26 + + 6 + + - 25 + + 50 * COUNT ( * ) THEN NULL ELSE + - 27 END THEN NULL ELSE + 11 END ) - + 22 * + + 53
----
-50939

query I rowsort
SELECT - 58 - 4 + + 55
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT - COUNT( * ) * + - 46 col0
----
46

skipif mysql # not compatible
query I rowsort label-8383
SELECT - COUNT ( * ) * + - 46 col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT ALL 46 * + 70 * CAST( + 22 AS SIGNED )
----
70840

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL 46 * + 70 * CAST ( + 22 AS INTEGER )
----
70840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8385
SELECT DISTINCT + NULLIF ( CAST( + COUNT( * ) AS SIGNED ), 16 * - - COUNT( - 50 ) ) DIV + SUM( DISTINCT + - 28 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT + NULLIF ( CAST ( + COUNT ( * ) AS INTEGER ), 16 * - - COUNT ( - 50 ) ) / + SUM ( DISTINCT + - 28 ) AS col0
----
0

query II rowsort
SELECT - 63, 47 AS col1
----
-63
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT + 94 * + - COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8387
SELECT + 94 * + - COUNT ( * ) AS col0
----
-94

query I rowsort
SELECT + 7 - - 47
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT - 87 * + COUNT( * ) * COUNT( + 71 ) + - 31 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-8389
SELECT - 87 * + COUNT ( * ) * COUNT ( + 71 ) + - 31 AS col2
----
-118

query I rowsort
SELECT + + 41 * + 56 AS col2
----
2296

query I rowsort
SELECT + NULLIF ( - 76, - 74 ) AS col2
----
-76

query I rowsort
SELECT + - 72 + - 50
----
-122

query II rowsort
SELECT ALL 81, + 5 AS col0
----
81
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT ALL CAST( - 13 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL CAST ( - 13 AS INTEGER )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT + 10 * + COUNT( * ) * - 29 AS col2
----
-290

skipif mysql # not compatible
query I rowsort label-8395
SELECT + 10 * + COUNT ( * ) * - 29 AS col2
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ALL COUNT( * ) * + 76
----
76

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL COUNT ( * ) * + 76
----
76

query II rowsort
SELECT ALL - 95 AS col2, 62 * + COALESCE ( - - 69, - - 71 + 8 )
----
-95
4278

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL + COUNT( * ) * ( + 3 ) * COUNT( * ) - 72
----
-69

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL + COUNT ( * ) * ( + 3 ) * COUNT ( * ) - 72
----
-69

query I rowsort
SELECT + 37 + 40 + + NULLIF ( 66, + - 17 )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT + MAX( ALL - + 55 ) * - - 38
----
-2090

skipif mysql # not compatible
query I rowsort label-8400
SELECT + MAX ( ALL - + 55 ) * - - 38
----
-2090

query I rowsort
SELECT - + COALESCE ( - 59, - 34 )
----
59

query II rowsort
SELECT 59, ( + - 18 ) AS col2
----
59
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8403
SELECT CAST( NULL AS SIGNED ) * + SUM( ALL - CAST( - 50 AS SIGNED ) ) * - SUM( - 23 ) + 41 + - 80 * CASE + 54 WHEN + 23 - 89 THEN NULL WHEN - + 73 THEN NULL ELSE + + 57 END + + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8403
SELECT CAST ( NULL AS INTEGER ) * + SUM ( ALL - CAST ( - 50 AS INTEGER ) ) * - SUM ( - 23 ) + 41 + - 80 * CASE + 54 WHEN + 23 - 89 THEN NULL WHEN - + 73 THEN NULL ELSE + + 57 END + + 38 AS col1
----
NULL

query I rowsort
SELECT 38 * + - 55 * + 71 * + 20 col1
----
-2967800

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT - CASE - 0 WHEN - MIN( - ( + 34 ) ) + - 10 * + + COUNT( * ) THEN + 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT - CASE - 0 WHEN - MIN ( - ( + 34 ) ) + - 10 * + + COUNT ( * ) THEN + 90 ELSE NULL END
----
NULL

query II rowsort
SELECT 53 * - 22 * + 32 - 43 * - - 32 * - 63 + 27, 48 + - 49 col2
----
49403
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8407
SELECT 63 * 80 + CAST( - COUNT( - + ( + 77 ) ) AS SIGNED ) * + - 78
----
5118

skipif mysql # not compatible
query I rowsort label-8407
SELECT 63 * 80 + CAST ( - COUNT ( - + ( + 77 ) ) AS INTEGER ) * + - 78
----
5118

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT 47 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-8408
SELECT 47 / - 91
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8409
SELECT 17 * + 69 AS col2, MAX( + 22 ) AS col2
----
1173
22

skipif mysql # not compatible
query II rowsort label-8409
SELECT 17 * + 69 AS col2, MAX ( + 22 ) AS col2
----
1173
22

query I rowsort
SELECT DISTINCT + ( 41 ) * - 42 AS col2
----
-1722

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8411
SELECT ALL + 0 * + 91, + ( CAST( NULL AS SIGNED ) ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8411
SELECT ALL + 0 * + 91, + ( CAST ( NULL AS INTEGER ) ) AS col0
----
0
NULL

query I rowsort
SELECT 46 + + + 24
----
70

query II rowsort
SELECT ALL + 27 - - + 37, - 77 AS col2
----
64
-77

query II rowsort
SELECT 52 * + 39 AS col0, 16
----
2028
16

query I rowsort
SELECT 62 + 0 col1
----
62

query I rowsort
SELECT + 31 * 54 AS col1
----
1674

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8417
SELECT ALL - CASE + NULLIF ( 92, 46 + - 35 ) WHEN - 15 * + + 24 * + 15 * - - 56 THEN 52 * - 30 + - 29 - + - COUNT( * ) + + COUNT( * ) - - 82 ELSE + COALESCE ( - 82, 64, + + NULLIF ( COUNT( * ), 19 + + NULLIF ( COALESCE ( + - 67, - 4 + - 74 + 91 ), - 78 ) ) * 60 DIV 16 * - 88 * + CASE - 83 WHEN + + ( - 41 ) + - ( + 56 ) * - 94 THEN - 81 END + - 31 ) + + 1 END col0
----
81

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL - CASE + NULLIF ( 92, 46 + - 35 ) WHEN - 15 * + + 24 * + 15 * - - 56 THEN 52 * - 30 + - 29 - + - COUNT ( * ) + + COUNT ( * ) - - 82 ELSE + COALESCE ( - 82, 64, + + NULLIF ( COUNT ( * ), 19 + + NULLIF ( COALESCE ( + - 67, - 4 + - 74 + 91 ), - 78 ) ) * 60 / 16 * - 88 * + CASE - 83 WHEN + + ( - 41 ) + - ( + 56 ) * - 94 THEN - 81 END + - 31 ) + + 1 END col0
----
81

query I rowsort
SELECT + ( - 35 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT + NULLIF ( + 99, ( - + COUNT( * ) ) + - - COUNT( * ) - + ( 16 ) + - + 50 - + - 27 ) col1
----
99

skipif mysql # not compatible
query I rowsort label-8419
SELECT + NULLIF ( + 99, ( - + COUNT ( * ) ) + - - COUNT ( * ) - + ( 16 ) + - + 50 - + - 27 ) col1
----
99

query I rowsort
SELECT 63 + + - 47 AS col1
----
16

query I rowsort
SELECT ALL NULLIF ( + - 25, + + 44 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT + COALESCE ( COUNT( * ), 22, - 69 ) * + + 84 * + 81
----
6804

skipif mysql # not compatible
query I rowsort label-8422
SELECT + COALESCE ( COUNT ( * ), 22, - 69 ) * + + 84 * + 81
----
6804

onlyif mysql # DIV for integer division: 
query I rowsort label-8423
SELECT ALL - - ( + 6 ) DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL - - ( + 6 ) / - 77
----
0

query I rowsort
SELECT DISTINCT - 32 * - ( + 28 ) AS col2
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT COUNT( * ) * - ( 2 ) * + ( + 15 ) + 78
----
48

skipif mysql # not compatible
query I rowsort label-8425
SELECT COUNT ( * ) * - ( 2 ) * + ( + 15 ) + 78
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT ALL - + 51 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL - + 51 / - 68
----
0

query II rowsort
SELECT ALL + 99 + + 76 AS col1, - 89 AS col1
----
175
-89

query I rowsort
SELECT DISTINCT - + ( 64 ) + - NULLIF ( - 42, 27 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT - + MAX( DISTINCT + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-8429
SELECT - + MAX ( DISTINCT + 45 )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8430
SELECT + CASE + 12 WHEN 66 DIV - 51 THEN + 87 ELSE - 1 END DIV - ( + - COALESCE ( + 17, - NULLIF ( + ( + - 36 ), - + 25 ) + + 13 + + - 85 * - 61 * - 47 * - 36 * + SUM( ALL - 88 ) * + 95, + - COUNT( * ) * CAST( - + 14 AS SIGNED ) + + + 18 + 84 + + - COUNT( * ), - 94 ) ) * - + 13 + - + 70
----
-70

skipif mysql # not compatible
query I rowsort label-8430
SELECT + CASE + 12 WHEN 66 / - 51 THEN + 87 ELSE - 1 END / - ( + - COALESCE ( + 17, - NULLIF ( + ( + - 36 ), - + 25 ) + + 13 + + - 85 * - 61 * - 47 * - 36 * + SUM ( ALL - 88 ) * + 95, + - COUNT ( * ) * CAST ( - + 14 AS INTEGER ) + + + 18 + 84 + + - COUNT ( * ), - 94 ) ) * - + 13 + - + 70
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8431
SELECT ALL - 38 + - 15 + + + 92 DIV + + 69 + - ( - SUM( + + ( + - 27 ) ) ) + + - COALESCE ( - + 97, + 91 * + COUNT( * ) * 37 * 74 * + CAST( - 23 AS SIGNED ) - + - 37 * + MAX( - - 76 ) + 84 * - 4 - + + 28, + + 33 ) DIV - - 83 col1
----
-78

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL - 38 + - 15 + + + 92 / + + 69 + - ( - SUM ( + + ( + - 27 ) ) ) + + - COALESCE ( - + 97, + 91 * + COUNT ( * ) * 37 * 74 * + CAST ( - 23 AS INTEGER ) - + - 37 * + MAX ( - - 76 ) + 84 * - 4 - + + 28, + + 33 ) / - - 83 col1
----
-78

query I rowsort
SELECT + 44 * - ( + 51 ) + - 63 col1
----
-2307

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT 30 + - 66 * + + NULLIF ( + COALESCE ( - COUNT( + 36 ), + 90, NULLIF ( - - 91, - 86 + 11 * ( ( 31 ) ) ) ), 80 ), COUNT( * ) * + COUNT( * ) AS col2
----
96
1

skipif mysql # not compatible
query II rowsort label-8433
SELECT 30 + - 66 * + + NULLIF ( + COALESCE ( - COUNT ( + 36 ), + 90, NULLIF ( - - 91, - 86 + 11 * ( ( 31 ) ) ) ), 80 ), COUNT ( * ) * + COUNT ( * ) AS col2
----
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT + 87 * + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-8434
SELECT + 87 * + COUNT ( * )
----
87

query I rowsort
SELECT ALL 27 + - 57 * 31
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT COUNT( * ) - 76 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-8436
SELECT COUNT ( * ) - 76 AS col1
----
-75

query II rowsort
SELECT ALL 87 AS col0, 64 col0
----
87
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8438
SELECT DISTINCT SUM( DISTINCT - + 7 ) + - 52 DIV - + 98 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT SUM ( DISTINCT - + 7 ) + - 52 / - + 98 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT COUNT( * ) + + - 64 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8439
SELECT COUNT ( * ) + + - 64 AS col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8440
SELECT DISTINCT 47 AS col2, COUNT( * ) * + + 64 DIV 84
----
47
0

skipif mysql # not compatible
query II rowsort label-8440
SELECT DISTINCT 47 AS col2, COUNT ( * ) * + + 64 / 84
----
47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT COUNT( * ) + + MAX( + 94 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT COUNT ( * ) + + MAX ( + 94 ) AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8442
SELECT ALL 35 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL 35 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT DISTINCT 70 * - - 53 * - + COALESCE ( - - 23, COUNT( * ) )
----
-85330

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT 70 * - - 53 * - + COALESCE ( - - 23, COUNT ( * ) )
----
-85330

query II rowsort
SELECT + 65, ( - - ( 56 ) ) AS col2
----
65
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8445
SELECT 72 + + SUM( ALL - 49 ) AS col2, 15 * + 36 * - ( 62 ) * - - 90 - - + 15
----
23
-3013185

skipif mysql # not compatible
query II rowsort label-8445
SELECT 72 + + SUM ( ALL - 49 ) AS col2, 15 * + 36 * - ( 62 ) * - - 90 - - + 15
----
23
-3013185

onlyif mysql # aggregate syntax: 
query II rowsort label-8446
SELECT DISTINCT - COUNT( * ) AS col1, - 7
----
-1
-7

skipif mysql # not compatible
query II rowsort label-8446
SELECT DISTINCT - COUNT ( * ) AS col1, - 7
----
-1
-7

query I rowsort
SELECT ALL - 59 - - 2
----
-57

query I rowsort
SELECT 52 * + NULLIF ( - - 8, 5 + 51 ) * + 15 AS col2
----
6240

query II rowsort
SELECT DISTINCT - 88, - 24 AS col1
----
-88
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT SUM( ALL + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-8450
SELECT SUM ( ALL + 98 )
----
98

query I rowsort
SELECT 65 * - - 80 AS col2
----
5200

query II rowsort
SELECT 7, + 12 * + 93 AS col2
----
7
1116

onlyif mysql # DIV for integer division: 
query I rowsort label-8453
SELECT 42 DIV - + 17
----
-2

skipif mysql # not compatible
query I rowsort label-8453
SELECT 42 / - + 17
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8454
SELECT ALL - + 59 col1, + 98 + - + MIN( DISTINCT - 95 ) + - 31 AS col0
----
-59
162

skipif mysql # not compatible
query II rowsort label-8454
SELECT ALL - + 59 col1, + 98 + - + MIN ( DISTINCT - 95 ) + - 31 AS col0
----
-59
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8455
SELECT - COUNT( * ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT - COUNT ( * ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT 17 * + MAX( ALL 10 ) * + COUNT( * ) + + 32
----
202

skipif mysql # not compatible
query I rowsort label-8456
SELECT 17 * + MAX ( ALL 10 ) * + COUNT ( * ) + + 32
----
202

query I rowsort
SELECT + 3 * + 83 * + - 76 AS col0
----
-18924

query I rowsort
SELECT - 42 - - 53
----
11

query I rowsort
SELECT ALL - 94 * - 68
----
6392

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT 65 - + ( COALESCE ( + 49, 52 * MIN( - 64 ) + - 36, 49 * - + 66 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8460
SELECT 65 - + ( COALESCE ( + 49, 52 * MIN ( - 64 ) + - 36, 49 * - + 66 ) ) AS col0
----
16

query I rowsort
SELECT DISTINCT - 3 + + - 86 + + 8 + + 61 + + 47 * + - 76 * - 21 * + + 37
----
2775424

query I rowsort
SELECT ALL - 53 + + 16
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT DISTINCT - COALESCE ( 24, - - COUNT( * ) * + - 36, - ( - 44 ) + - ( - 18 ) ) + 52 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT - COALESCE ( 24, - - COUNT ( * ) * + - 36, - ( - 44 ) + - ( - 18 ) ) + 52 AS col1
----
28

query II rowsort
SELECT - + NULLIF ( + 68, 65 ), + 68 + + - 46 AS col1
----
-68
22

query II rowsort
SELECT 8 AS col2, 80
----
8
80

query II rowsort
SELECT + ( 15 ) * - 65, - 71 * + + 58 AS col0
----
-975
-4118

query I rowsort
SELECT ALL - - 23 + - 72
----
-49

query II rowsort
SELECT - + 68 AS col2, - 69 * + 99 AS col1
----
-68
-6831

query I rowsort
SELECT DISTINCT - - 48 + ( + + COALESCE ( + 78, - 72 ) ) col2
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8470
SELECT - 85 + + 54 + - CAST( - 43 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-8470
SELECT - 85 + + 54 + - CAST ( - 43 AS INTEGER )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8471
SELECT DISTINCT - 17 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT - 17 / + 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL MIN( - - 15 ) col2
----
15

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL MIN ( - - 15 ) col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT - 77 * - ( + - COUNT( ALL + + 76 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8473
SELECT - 77 * - ( + - COUNT ( ALL + + 76 ) )
----
-77

query I rowsort
SELECT DISTINCT - 90 - - - 64
----
-154

query I rowsort
SELECT - 41 * - 23 * - 51 AS col0
----
-48093

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT + COUNT( * ) * 37
----
37

skipif mysql # not compatible
query I rowsort label-8476
SELECT + COUNT ( * ) * 37
----
37

query I rowsort
SELECT - 59 - + 25 AS col2
----
-84

query II rowsort
SELECT - 18 * - + 27 col1, 89 AS col2
----
486
89

query I rowsort
SELECT - COALESCE ( - + 72, + 52 )
----
72

query I rowsort
SELECT - 35 + - 78 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT ALL - COUNT( * ) * + 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL - COUNT ( * ) * + 47 AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8482
SELECT COALESCE ( + - MIN( - 60 ), - + 92 * ( 66 ), + - COALESCE ( + 98, - COUNT( * ), + 51 + + + MIN( + 35 ) * - 31 ) DIV + 93 DIV 72 + - CAST( 86 AS SIGNED ) * - + 51 - + - 13, - + 48 * - 72 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-8482
SELECT COALESCE ( + - MIN ( - 60 ), - + 92 * ( 66 ), + - COALESCE ( + 98, - COUNT ( * ), + 51 + + + MIN ( + 35 ) * - 31 ) / + 93 / 72 + - CAST ( 86 AS INTEGER ) * - + 51 - + - 13, - + 48 * - 72 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT + COUNT( 49 ) * + 73
----
73

skipif mysql # not compatible
query I rowsort label-8483
SELECT + COUNT ( 49 ) * + 73
----
73

query I rowsort
SELECT ALL - 54 * + - 22 * - 19 + - 93 AS col1
----
-22665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8485
SELECT + - COUNT( * ) DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-8485
SELECT + - COUNT ( * ) / - 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8486
SELECT DISTINCT + COUNT( - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT + - 10 DIV - + 36 col0
----
0

skipif mysql # not compatible
query I rowsort label-8487
SELECT + - 10 / - + 36 col0
----
0

query I rowsort
SELECT ALL - 84 * + + 0 + - 80 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8489
SELECT ALL + 19 * + - 1 * + ( + COUNT( * ) ) + + 77 + CAST( - - COUNT( ALL - 59 ) AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + 19 * + - 1 * + ( + COUNT ( * ) ) + + 77 + CAST ( - - COUNT ( ALL - 59 ) AS INTEGER )
----
59

query I rowsort
SELECT - 80 * - 73 + - 81
----
5759

query I rowsort
SELECT + 42 * - 16
----
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT ALL + 22 * - - CAST( NULL AS SIGNED ) - + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL + 22 * - - CAST ( NULL AS INTEGER ) - + 76 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8493
SELECT ALL + COUNT( ALL - 74 ) + + 40 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL + COUNT ( ALL - 74 ) + + 40 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL + SUM( DISTINCT 0 ) * - - 14
----
0

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + SUM ( DISTINCT 0 ) * - - 14
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8495
SELECT DISTINCT + 58 - 22 - CASE - 62 WHEN + + NULLIF ( 18, - MAX( - CAST( NULL AS SIGNED ) ) + - 83 - + 95 * NULLIF ( ( + 86 ), AVG ( DISTINCT - 76 ) * + + 72 + - + 95 * - NULLIF ( - ( - 42 ), + 69 / 75 ) + 5 + 51 + - COALESCE ( + 21, 24 ) ) + 62 ) * - NULLIF ( - 63, + MIN( - - 63 ) + + + 63 ) * - AVG ( 72 ) + - 28 THEN - - 78 * 90 + + AVG ( DISTINCT 96 ) * - 57 WHEN - 20 THEN + 61 END * + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT + 58 - 22 - CASE - 62 WHEN + + NULLIF ( 18, - MAX ( - CAST ( NULL AS INTEGER ) ) + - 83 - + 95 * NULLIF ( ( + 86 ), AVG ( DISTINCT - 76 ) * + + 72 + - + 95 * - NULLIF ( - ( - 42 ), + 69 / 75 ) + 5 + 51 + - COALESCE ( + 21, 24 ) ) + 62 ) * - NULLIF ( - 63, + MIN ( - - 63 ) + + + 63 ) * - AVG ( 72 ) + - 28 THEN - - 78 * 90 + + AVG ( DISTINCT 96 ) * - 57 WHEN - 20 THEN + 61 END * + 42 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8496
SELECT ALL COALESCE ( - COUNT( * ), + CAST( + MIN( ALL - - 55 ) AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL COALESCE ( - COUNT ( * ), + CAST ( + MIN ( ALL - - 55 ) AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT - 71 + - + ( ( 29 ) )
----
-100

query I rowsort
SELECT DISTINCT ( 97 ) AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8499
SELECT - 18 * 17 DIV + + COUNT( * )
----
-306

skipif mysql # not compatible
query I rowsort label-8499
SELECT - 18 * 17 / + + COUNT ( * )
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT - COUNT( * ) * - 91
----
91

skipif mysql # not compatible
query I rowsort label-8500
SELECT - COUNT ( * ) * - 91
----
91

query I rowsort
SELECT - 35 + 7 AS col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8502
SELECT DISTINCT + 59 - - + ( + 36 ) + + - 40 * 4 DIV + 72 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT + 59 - - + ( + 36 ) + + - 40 * 4 / + 72 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT ALL + 41 * + + MAX( + + 53 ) AS col1
----
2173

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + 41 * + + MAX ( + + 53 ) AS col1
----
2173

query I rowsort
SELECT DISTINCT ( 3 )
----
3

query II rowsort
SELECT ALL 18, - 39 AS col1
----
18
-39

query I rowsort
SELECT ALL + 42 * 8 col2
----
336

query I rowsort
SELECT - 28 * - 79 AS col2
----
2212

onlyif mysql # DIV for integer division: 
query I rowsort label-8508
SELECT ALL 51 DIV - 45 + 55 col1
----
54

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL 51 / - 45 + 55 col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT + 10 DIV 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8509
SELECT + 10 / 13 AS col1
----
0

query I rowsort
SELECT - + 89 * 6 * - + 28 AS col2
----
14952

onlyif mysql # DIV for integer division: 
query I rowsort label-8511
SELECT ALL - - 71 DIV 8 + + - 7 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL - - 71 / 8 + + - 7 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8512
SELECT DISTINCT - ( - + 30 ) DIV + CASE + 76 WHEN - + 14 - + 5 * + MIN( DISTINCT + + 6 ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE - + ( 33 ) END + + 18 DIV - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT - ( - + 30 ) / + CASE + 76 WHEN - + 14 - + 5 * + MIN ( DISTINCT + + 6 ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE - + ( 33 ) END + + 18 / - COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8513
SELECT ALL + 65 DIV - 64 + 68 + - SUM( + + 26 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL + 65 / - 64 + 68 + - SUM ( + + 26 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT + MIN( + 18 ) * + - 59 + SUM( + 36 ) AS col1
----
-1026

skipif mysql # not compatible
query I rowsort label-8514
SELECT + MIN ( + 18 ) * + - 59 + SUM ( + 36 ) AS col1
----
-1026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8515
SELECT ALL 31 DIV + - COUNT( * ) + + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL 31 / + - COUNT ( * ) + + COUNT ( * )
----
-30

query II rowsort
SELECT + 95, - 91 AS col1
----
95
-91

query I rowsort
SELECT ALL + 93 + + NULLIF ( 90, ( 47 ) / - 90 )
----
183

query I rowsort
SELECT ( - 61 ) * 78 AS col0
----
-4758

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL - COUNT( - 22 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL - COUNT ( - 22 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 99 - - 16 AS col2
----
-83

query I rowsort
SELECT 66 - + 30
----
36

query I rowsort
SELECT 50 - + 62
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8523
SELECT - 38, - 50 * COUNT( * ) AS col2
----
-38
-50

skipif mysql # not compatible
query II rowsort label-8523
SELECT - 38, - 50 * COUNT ( * ) AS col2
----
-38
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-8524
SELECT - 39 AS col2, SUM( ALL + - 79 ) + - 73 + - 56 * + + 51 AS col1
----
-39
-3008

skipif mysql # not compatible
query II rowsort label-8524
SELECT - 39 AS col2, SUM ( ALL + - 79 ) + - 73 + - 56 * + + 51 AS col1
----
-39
-3008

query II rowsort
SELECT ALL 40 col2, - ( + 9 ) AS col1
----
40
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT CAST( NULL AS SIGNED ) + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT CAST ( NULL AS INTEGER ) + - 14
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT 66 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8527
SELECT 66 / 92 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8528
SELECT CAST( NULL AS SIGNED ) * + CAST( 22 AS SIGNED ) * + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT CAST ( NULL AS INTEGER ) * + CAST ( 22 AS INTEGER ) * + 27 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8529
SELECT ALL - 73 * + MAX( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL - 73 * + MAX ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8530
SELECT - 5 col0, CAST( NULL AS SIGNED ) * - + ( + COUNT( ALL + - 39 ) ) * - 31 * + 28 * - CAST( NULL AS SIGNED ) / - 89 + - 13 + + - 6 + 2 AS col2
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-8530
SELECT - 5 col0, CAST ( NULL AS INTEGER ) * - + ( + COUNT ( ALL + - 39 ) ) * - 31 * + 28 * - CAST ( NULL AS INTEGER ) / - 89 + - 13 + + - 6 + 2 AS col2
----
-5
NULL

query II rowsort
SELECT ALL 61, - 12 * - + 15 * - 15 * + 4 AS col0
----
61
-10800

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT 75 + - MAX( + 98 ) + 33 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8532
SELECT 75 + - MAX ( + 98 ) + 33 AS col0
----
10

query II rowsort
SELECT - 16, + 72 + 39 AS col1
----
-16
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT 52 - + - COUNT( * ) + + - 20 + 43 * 26 AS col0
----
1151

skipif mysql # not compatible
query I rowsort label-8534
SELECT 52 - + - COUNT ( * ) + + - 20 + 43 * 26 AS col0
----
1151

query II rowsort
SELECT 91 * - ( - + ( + + 50 ) ) col0, 16
----
4550
16

query I rowsort
SELECT 71 + - 60
----
11

query I rowsort
SELECT ALL - 65 + - - 14 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT ALL + COUNT( * ) * + - 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL + COUNT ( * ) * + - 53 AS col0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8539
SELECT - 22 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-8539
SELECT - 22 / 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL + + COUNT( + + 50 ) + - ( + MAX( DISTINCT - - 49 ) ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL + + COUNT ( + + 50 ) + - ( + MAX ( DISTINCT - - 49 ) ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT ALL - COUNT( - 57 ) + - + 63 + + 27 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL - COUNT ( - 57 ) + - + 63 + + 27 AS col2
----
-37

query I rowsort
SELECT + 88 * + + 5 - + 72 col0
----
368

query I rowsort
SELECT + 97 * + + ( 50 )
----
4850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8544
SELECT COUNT( + + ( - CAST( + - 49 AS SIGNED ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8544
SELECT COUNT ( + + ( - CAST ( + - 49 AS INTEGER ) ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8545
SELECT ALL - COUNT( * ) + + CAST( + 15 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - COUNT ( * ) + + CAST ( + 15 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT 63 * - - COUNT( DISTINCT + ( + 37 ) ) * 84 * - 24 AS col2
----
-127008

skipif mysql # not compatible
query I rowsort label-8546
SELECT 63 * - - COUNT ( DISTINCT + ( + 37 ) ) * 84 * - 24 AS col2
----
-127008

onlyif mysql # aggregate syntax: 
query II rowsort label-8547
SELECT + NULLIF ( - 82, 89 ) + COUNT( * ) AS col0, 21
----
-81
21

skipif mysql # not compatible
query II rowsort label-8547
SELECT + NULLIF ( - 82, 89 ) + COUNT ( * ) AS col0, 21
----
-81
21

query II rowsort
SELECT 33, 98 AS col1
----
33
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT 12 + - MAX( ( 65 ) ) * 12 AS col1
----
-768

skipif mysql # not compatible
query I rowsort label-8549
SELECT 12 + - MAX ( ( 65 ) ) * 12 AS col1
----
-768

query II rowsort
SELECT ALL - - 21 AS col1, 51 AS col2
----
21
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8551
SELECT DISTINCT - + 95 AS col2, ( CASE COUNT( * ) WHEN + COALESCE ( + CAST( + ( - ( + + SUM( - + 61 ) ) ) AS SIGNED ), 3, - 8 - + COUNT( * ) ) THEN - COUNT( * ) * - - 93 WHEN - - COUNT( * ) + 93 THEN NULL ELSE + - COUNT( DISTINCT - + 2 ) * + - 97 * + 82 END ) + + SUM( - 77 ) AS col2
----
-95
7877

skipif mysql # not compatible
query II rowsort label-8551
SELECT DISTINCT - + 95 AS col2, ( CASE COUNT ( * ) WHEN + COALESCE ( + CAST ( + ( - ( + + SUM ( - + 61 ) ) ) AS INTEGER ), 3, - 8 - + COUNT ( * ) ) THEN - COUNT ( * ) * - - 93 WHEN - - COUNT ( * ) + 93 THEN NULL ELSE + - COUNT ( DISTINCT - + 2 ) * + - 97 * + 82 END ) + + SUM ( - 77 ) AS col2
----
-95
7877

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT DISTINCT - NULLIF ( + - COALESCE ( + - 47, - + 35 ), - COUNT( * ) ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT - NULLIF ( + - COALESCE ( + - 47, - + 35 ), - COUNT ( * ) ) AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8553
SELECT ALL - - COALESCE ( + 20, + MAX( + 16 ) * COALESCE ( - 11, + + SUM( - 19 ), + COUNT( * ) ) + + - NULLIF ( - CAST( + + COUNT( * ) AS SIGNED ), + - 20 * + 88 + MIN( - 5 ) + - + SUM( + 63 ) ) + 84 + + CAST( - + 0 AS SIGNED ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - - COALESCE ( + 20, + MAX ( + 16 ) * COALESCE ( - 11, + + SUM ( - 19 ), + COUNT ( * ) ) + + - NULLIF ( - CAST ( + + COUNT ( * ) AS INTEGER ), + - 20 * + 88 + MIN ( - 5 ) + - + SUM ( + 63 ) ) + 84 + + CAST ( - + 0 AS INTEGER ) ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8554
SELECT - 33 * 35 * 45 + + ( + COUNT( ALL + 77 ) ) + - CASE + 36 WHEN 64 * + CAST( + 28 AS DECIMAL ) * - + 98 THEN + 16 WHEN 81 * - - 92 - + + 54 THEN + - CAST( - 89 AS SIGNED ) ELSE COALESCE ( + + CASE + + 21 WHEN - + ( - - 34 ) DIV + - COALESCE ( - CASE + - 55 WHEN - + 30 DIV - - 68 + - COUNT( * ) THEN NULL WHEN CAST( NULL AS SIGNED ) * - 21 + - 17 THEN NULL ELSE - - 71 DIV - 12 + + ( + COUNT( * ) ) + + 7 END, + - COUNT( * ) * COALESCE ( + 13, + 97 ) + 83 + 6 * - 2 ) + ( 40 ) THEN + 33 + + NULLIF ( + ( + 57 ) + - COUNT( * ) * - 22, - 43 * + COUNT( * ) ) END, 10 + 46 DIV + COUNT( * ) ) END
----
-52030

skipif mysql # not compatible
query I rowsort label-8554
SELECT - 33 * 35 * 45 + + ( + COUNT ( ALL + 77 ) ) + - CASE + 36 WHEN 64 * + CAST ( + 28 AS REAL ) * - + 98 THEN + 16 WHEN 81 * - - 92 - + + 54 THEN + - CAST ( - 89 AS INTEGER ) ELSE COALESCE ( + + CASE + + 21 WHEN - + ( - - 34 ) / + - COALESCE ( - CASE + - 55 WHEN - + 30 / - - 68 + - COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 21 + - 17 THEN NULL ELSE - - 71 / - 12 + + ( + COUNT ( * ) ) + + 7 END, + - COUNT ( * ) * COALESCE ( + 13, + 97 ) + 83 + 6 * - 2 ) + ( 40 ) THEN + 33 + + NULLIF ( + ( + 57 ) + - COUNT ( * ) * - 22, - 43 * + COUNT ( * ) ) END, 10 + 46 / + COUNT ( * ) ) END
----
-52030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT 81 + NULLIF ( - 28, - - COUNT( * ) * + 55 * + CASE 86 WHEN NULLIF ( + MAX( COALESCE ( + - 42, 50 * - 74 ) ), - - 47 / + 5 * + 60 * COUNT( * ) ) * - 11 THEN + 48 WHEN + 83 + + CAST( 35 AS SIGNED ) + - 92 THEN NULL END * - - 97 + 86 )
----
53

skipif mysql # not compatible
query I rowsort label-8555
SELECT 81 + NULLIF ( - 28, - - COUNT ( * ) * + 55 * + CASE 86 WHEN NULLIF ( + MAX ( COALESCE ( + - 42, 50 * - 74 ) ), - - 47 / + 5 * + 60 * COUNT ( * ) ) * - 11 THEN + 48 WHEN + 83 + + CAST ( 35 AS INTEGER ) + - 92 THEN NULL END * - - 97 + 86 )
----
53

query I rowsort
SELECT 37 + 83 col1
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-8557
SELECT ALL 0 + 32 * 19 * NULLIF ( - 24, + - 6 ) DIV 83 * + 60 AS col2
----
-10500

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL 0 + 32 * 19 * NULLIF ( - 24, + - 6 ) / 83 * + 60 AS col2
----
-10500

query I rowsort
SELECT 36 * - - ( - - 83 ) AS col2
----
2988

query I rowsort
SELECT 72 + + 67 * - + 22 AS col0
----
-1402

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT - SUM( ( + + 81 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-8560
SELECT - SUM ( ( + + 81 ) )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8561
SELECT CASE - NULLIF ( + 77, + 6 ) WHEN + 34 THEN - 63 * + 25 END + + 84 col1, MAX( ALL - 55 )
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-8561
SELECT CASE - NULLIF ( + 77, + 6 ) WHEN + 34 THEN - 63 * + 25 END + + 84 col1, MAX ( ALL - 55 )
----
NULL
-55

query I rowsort
SELECT 62 + 39 AS col1
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8563
SELECT CASE + 68 WHEN 34 THEN NULL WHEN - MAX( + + 67 ) * - 90 THEN NULL ELSE + 74 * COUNT( * ) END - + MAX( - 49 ) DIV - MIN( 95 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8563
SELECT CASE + 68 WHEN 34 THEN NULL WHEN - MAX ( + + 67 ) * - 90 THEN NULL ELSE + 74 * COUNT ( * ) END - + MAX ( - 49 ) / - MIN ( 95 ) AS col2
----
74

query I rowsort
SELECT DISTINCT + 24 + - - 45 AS col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8565
SELECT DISTINCT 63 + - - 40 AS col2, CAST( + 24 AS SIGNED ) * 14 AS col0
----
103
336

skipif mysql # not compatible
query II rowsort label-8565
SELECT DISTINCT 63 + - - 40 AS col2, CAST ( + 24 AS INTEGER ) * 14 AS col0
----
103
336

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT - - SUM( + + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-8566
SELECT - - SUM ( + + 17 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8567
SELECT - + 6 + + COUNT( * ) + + + SUM( - ( - 7 ) ) AS col0, - ( 37 )
----
2
-37

skipif mysql # not compatible
query II rowsort label-8567
SELECT - + 6 + + COUNT ( * ) + + + SUM ( - ( - 7 ) ) AS col0, - ( 37 )
----
2
-37

query II rowsort
SELECT - ( - 77 ) AS col0, 11 + 44
----
77
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8569
SELECT - + 92 DIV + MAX( DISTINCT - 42 ) + + - ( - 56 ) + 18 + 73 + ( 83 ) - - ( 14 ) * 4 + - 76 AS col0
----
212

skipif mysql # not compatible
query I rowsort label-8569
SELECT - + 92 / + MAX ( DISTINCT - 42 ) + + - ( - 56 ) + 18 + 73 + ( 83 ) - - ( 14 ) * 4 + - 76 AS col0
----
212

query I rowsort
SELECT + 95 * 23 + + + 36
----
2221

query I rowsort
SELECT DISTINCT + 92 * 57 - + 11
----
5233

query I rowsort
SELECT - + 54 * + 71 AS col2
----
-3834

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT DISTINCT - + COUNT( * ) * - 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT - + COUNT ( * ) * - 22 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8574
SELECT - + COUNT( * ) DIV + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8574
SELECT - + COUNT ( * ) / + + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - - 72 * 20 + + ( + + 63 ) + - + ( - 57 ) * + 86 * - 44
----
-214185

query I rowsort
SELECT - - 27 * - + 37 + + 89 * 7
----
-376

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8577
SELECT - + 60 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT - + 60 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT + ( + CASE 83 WHEN + - 15 THEN NULL ELSE - - 84 * 72 - + - COUNT( * ) END )
----
6049

skipif mysql # not compatible
query I rowsort label-8578
SELECT + ( + CASE 83 WHEN + - 15 THEN NULL ELSE - - 84 * 72 - + - COUNT ( * ) END )
----
6049

query I rowsort
SELECT ALL - + 97 * - 41 + 9
----
3986

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT DISTINCT + COUNT( * ) * + 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT + COUNT ( * ) * + 9 AS col1
----
9

query I rowsort
SELECT DISTINCT 84 * 21 * 77 * - 94 + 92 * 22 AS col2
----
-12765808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT ALL 59 + 87 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL 59 + 87 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( - - 98, + 74 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT 19 * + - 99 + COUNT( * ) AS col0
----
-1880

skipif mysql # not compatible
query I rowsort label-8584
SELECT 19 * + - 99 + COUNT ( * ) AS col0
----
-1880

query I rowsort
SELECT + 41 - - 38 * - - 92
----
3537

query I rowsort
SELECT ALL - 37 + + 67
----
30

query I rowsort
SELECT ALL + 83 + + 58
----
141

query II rowsort
SELECT - 60 AS col1, 66 + 18
----
-60
84

query I rowsort
SELECT - 5 + + - 63 + 37 * - 26
----
-1030

query I rowsort
SELECT - NULLIF ( + 32, - 24 + 53 * 89 ) AS col1
----
-32

query I rowsort
SELECT ALL 17 * - ( 4 )
----
-68

query I rowsort
SELECT - 23 * + - 77 * - + 82
----
-145222

query I rowsort
SELECT ALL - 38 + - + 5
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT - COUNT( ALL + 27 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8594
SELECT - COUNT ( ALL + 27 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL COUNT( * ) + 86 col1
----
87

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL COUNT ( * ) + 86 col1
----
87

query I rowsort
SELECT + 92 * 29
----
2668

query II rowsort
SELECT 72 AS col2, ( 61 ) AS col1
----
72
61

query II rowsort
SELECT NULLIF ( 14, + 80 * - 66 ), + 60 AS col1
----
14
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT - 51 AS col1, COUNT( * ) * + + 52
----
-51
52

skipif mysql # not compatible
query II rowsort label-8599
SELECT - 51 AS col1, COUNT ( * ) * + + 52
----
-51
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8600
SELECT ALL COALESCE ( - 28, - + 74, + AVG ( + + CAST( + 37 AS SIGNED ) ) ) DIV 22
----
-1

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL COALESCE ( - 28, - + 74, + AVG ( + + CAST ( + 37 AS INTEGER ) ) ) / 22
----
-1

query I rowsort
SELECT + 79 + - 67
----
12

query I rowsort
SELECT + 93 + - 49
----
44

query I rowsort
SELECT + - 69 * - 23
----
1587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8604
SELECT ALL NULLIF ( NULLIF ( - MAX( - 42 ), + + CAST( - 45 AS SIGNED ) * + - 75 + - ( + - 62 ) ), SUM( DISTINCT + 49 ) * - - ( + NULLIF ( 84, - + 36 ) ) * 46 * - - 26 + 84 - + + 74 + + 86 + + 48 ) * - - 90 * - 3
----
-11340

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL NULLIF ( NULLIF ( - MAX ( - 42 ), + + CAST ( - 45 AS INTEGER ) * + - 75 + - ( + - 62 ) ), SUM ( DISTINCT + 49 ) * - - ( + NULLIF ( 84, - + 36 ) ) * 46 * - - 26 + 84 - + + 74 + + 86 + + 48 ) * - - 90 * - 3
----
-11340

query I rowsort
SELECT + + 0 + - 14 AS col2
----
-14

query I rowsort
SELECT ALL - - 37 * + - 34 AS col0
----
-1258

onlyif mysql # DIV for integer division: 
query II rowsort label-8607
SELECT 93 AS col1, - 48 DIV + - 25
----
93
1

skipif mysql # not compatible
query II rowsort label-8607
SELECT 93 AS col1, - 48 / + - 25
----
93
1

query I rowsort
SELECT - 70 + - - 69 * 56
----
3794

onlyif mysql # aggregate syntax: 
query II rowsort label-8609
SELECT - 49 * + 88 + - - COUNT( * ), 1 * + - 26 AS col0
----
-4311
-26

skipif mysql # not compatible
query II rowsort label-8609
SELECT - 49 * + 88 + - - COUNT ( * ), 1 * + - 26 AS col0
----
-4311
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-8610
SELECT - 54, - COUNT( ALL + 84 ) AS col2
----
-54
-1

skipif mysql # not compatible
query II rowsort label-8610
SELECT - 54, - COUNT ( ALL + 84 ) AS col2
----
-54
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8611
SELECT + 61 DIV + - 30 + + 11 + + 64 + + - COUNT( * ) + + 92
----
164

skipif mysql # not compatible
query I rowsort label-8611
SELECT + 61 / + - 30 + + 11 + + 64 + + - COUNT ( * ) + + 92
----
164

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8612
SELECT ALL + 36 * + + COALESCE ( + ( + 93 ), - 56 * + COUNT( * ) ) + + CAST( NULL AS DECIMAL ) + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL + 36 * + + COALESCE ( + ( + 93 ), - 56 * + COUNT ( * ) ) + + CAST ( NULL AS REAL ) + - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT + COUNT( * ) + + 53
----
54

skipif mysql # not compatible
query I rowsort label-8613
SELECT + COUNT ( * ) + + 53
----
54

query I rowsort
SELECT ALL - 14 * - - 97 AS col1
----
-1358

onlyif mysql # aggregate syntax: 
query II rowsort label-8615
SELECT ( - 39 ) AS col0, COUNT( ALL + COALESCE ( - 29, 25 ) )
----
-39
1

skipif mysql # not compatible
query II rowsort label-8615
SELECT ( - 39 ) AS col0, COUNT ( ALL + COALESCE ( - 29, 25 ) )
----
-39
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8616
SELECT + CAST( CAST( 27 AS DECIMAL ) AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8616
SELECT + CAST ( CAST ( 27 AS REAL ) AS INTEGER ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT - COUNT( * ) + - 96 + - - 26 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8617
SELECT - COUNT ( * ) + - 96 + - - 26 AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT - CAST( NULL AS SIGNED ) + - + 39 - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT - CAST ( NULL AS INTEGER ) + - + 39 - + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL 23 * + 55 + - COUNT( * ) AS col2
----
1264

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL 23 * + 55 + - COUNT ( * ) AS col2
----
1264

query I rowsort
SELECT DISTINCT + 96 * - + 6
----
-576

onlyif mysql # aggregate syntax: 
query II rowsort label-8621
SELECT - COUNT( * ) * - + 41, - 34 + + 28 AS col1
----
41
-6

skipif mysql # not compatible
query II rowsort label-8621
SELECT - COUNT ( * ) * - + 41, - 34 + + 28 AS col1
----
41
-6

query I rowsort
SELECT + 79 * + 38 * 73 + 79 * - 63 + + 63
----
214232

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT ALL 91 * - + 1 + + 10 * - 65 * + COUNT( * ) + 63
----
-678

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL 91 * - + 1 + + 10 * - 65 * + COUNT ( * ) + 63
----
-678

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL - 56 * + 68 * + 10 + 46 + - 77 * + ( - - COUNT( * ) ) - - 33 AS col2
----
-38078

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL - 56 * + 68 * + 10 + 46 + - 77 * + ( - - COUNT ( * ) ) - - 33 AS col2
----
-38078

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL + MAX( - 69 ) * - 70 - + 62 + - + 34 + 11
----
4745

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL + MAX ( - 69 ) * - 70 - + 62 + - + 34 + 11
----
4745

query I rowsort
SELECT - ( + 58 ) * + 85 AS col0
----
-4930

query I rowsort
SELECT ALL ( - + 50 ) AS col2
----
-50

query I rowsort
SELECT - ( - - 69 ) + + 9 * 3 + - 42
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8629
SELECT 0 * + - COALESCE ( - - 46, COUNT( * ) - + 87, - 75 DIV 72 DIV + - CASE 78 WHEN + 89 THEN + + ( + 56 ) END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8629
SELECT 0 * + - COALESCE ( - - 46, COUNT ( * ) - + 87, - 75 / 72 / + - CASE 78 WHEN + 89 THEN + + ( + 56 ) END ) AS col2
----
0

query II rowsort
SELECT 6 + + 77 AS col1, + 98
----
83
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8631
SELECT ALL - COUNT( * ) - + - 96 * + 74 * 4, COUNT( * ) - - - COUNT( * ) AS col0
----
28415
0

skipif mysql # not compatible
query II rowsort label-8631
SELECT ALL - COUNT ( * ) - + - 96 * + 74 * 4, COUNT ( * ) - - - COUNT ( * ) AS col0
----
28415
0

query I rowsort
SELECT ALL - NULLIF ( + - 30, + 44 ) - + 35
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT - MAX( ALL - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-8633
SELECT - MAX ( ALL - 83 )
----
83

query I rowsort
SELECT - ( - 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT 49 + + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-8635
SELECT 49 + + COUNT ( * )
----
50

query I rowsort
SELECT 95 + 55
----
150

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8637
SELECT + 31 DIV 99 AS col2, + 86 + 10 * + 42 + + CAST( + 53 AS SIGNED ) AS col1
----
0
559

skipif mysql # not compatible
query II rowsort label-8637
SELECT + 31 / 99 AS col2, + 86 + 10 * + 42 + + CAST ( + 53 AS INTEGER ) AS col1
----
0
559

onlyif mysql # aggregate syntax: 
query II rowsort label-8638
SELECT 97 * + COUNT( * ), 89 col2
----
97
89

skipif mysql # not compatible
query II rowsort label-8638
SELECT 97 * + COUNT ( * ), 89 col2
----
97
89

query I rowsort
SELECT - 40 + - - ( 17 ) AS col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8640
SELECT - 98 DIV + ( - + 1 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-8640
SELECT - 98 / + ( - + 1 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT + 7 * + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-8641
SELECT + 7 * + COUNT ( * )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT + - CAST( CAST( + ( - 71 ) AS SIGNED ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-8642
SELECT + - CAST ( CAST ( + ( - 71 ) AS INTEGER ) AS INTEGER )
----
71

query I rowsort
SELECT ALL - 47 + + - 53 + - - 79
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8644
SELECT DISTINCT - 89 / - - 46 / + CASE - COUNT( ALL + 20 ) WHEN - - AVG ( - - 75 ) THEN 52 + + 61 * - 60 * + 40 * 27 END col2, - 23 * 70 * - 16
----
NULL
25760

skipif mysql # not compatible
query II rowsort label-8644
SELECT DISTINCT - 89 / - - 46 / + CASE - COUNT ( ALL + 20 ) WHEN - - AVG ( - - 75 ) THEN 52 + + 61 * - 60 * + 40 * 27 END col2, - 23 * 70 * - 16
----
NULL
25760

onlyif mysql # DIV for integer division: 
query I rowsort label-8645
SELECT + 34 DIV - - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8645
SELECT + 34 / - - 75 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8646
SELECT ALL 73 + 91 + 41 + - 83 + - 25 DIV 31 * + 30 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL 73 + 91 + 41 + - 83 + - 25 / 31 * + 30 AS col0
----
122

query I rowsort
SELECT DISTINCT + 8 * + - 41 * - 37 * - 2 AS col0
----
-24272

query II rowsort
SELECT ALL 47 + 11 * - - 36 * - 59 + + - 8, 96 AS col0
----
-23325
96

query I rowsort
SELECT 84 * - 58
----
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT MAX( DISTINCT 62 ) - 36 * 5
----
-118

skipif mysql # not compatible
query I rowsort label-8650
SELECT MAX ( DISTINCT 62 ) - 36 * 5
----
-118

query II rowsort
SELECT ALL - 0, 12 AS col2
----
0
12

query I rowsort
SELECT ALL 88 + - 64 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT ALL - COUNT( * ) - - CAST( NULL AS SIGNED ) + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL - COUNT ( * ) - - CAST ( NULL AS INTEGER ) + 31
----
NULL

query I rowsort
SELECT DISTINCT + 65 * - 57 col1
----
-3705

onlyif mysql # DIV for integer division: 
query I rowsort label-8655
SELECT DISTINCT 40 DIV - - 17 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT 40 / - - 17 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT 0 - ( COUNT( - - 17 ) ) - - 51 * 33 - - SUM( ALL + - 42 ) + + 84 * + 55
----
6260

skipif mysql # not compatible
query I rowsort label-8656
SELECT 0 - ( COUNT ( - - 17 ) ) - - 51 * 33 - - SUM ( ALL + - 42 ) + + 84 * + 55
----
6260

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT DISTINCT + SUM( + ( - 16 ) ) * + - 33
----
528

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT + SUM ( + ( - 16 ) ) * + - 33
----
528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8658
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / COUNT( * ) * 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / COUNT ( * ) * 65 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8659
SELECT + 66 + COUNT( * ) * - 26, COUNT( * ) * + ( + - ( - ( - MIN( DISTINCT + 77 ) ) ) ) AS col1
----
40
-77

skipif mysql # not compatible
query II rowsort label-8659
SELECT + 66 + COUNT ( * ) * - 26, COUNT ( * ) * + ( + - ( - ( - MIN ( DISTINCT + 77 ) ) ) ) AS col1
----
40
-77

query I rowsort
SELECT DISTINCT - 36 * 40 AS col2
----
-1440

query I rowsort
SELECT 33 * 31 * 54 AS col1
----
55242

query I rowsort
SELECT + 38 * 90 col2
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT + - 53 * + - 9 * + MIN( DISTINCT + 47 )
----
22419

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT + - 53 * + - 9 * + MIN ( DISTINCT + 47 )
----
22419

query I rowsort
SELECT ALL - - 90 + + 7 AS col1
----
97

query I rowsort
SELECT ALL - 51 + + 81 - + 77 * + 76 AS col1
----
-5822

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8666
SELECT - 5 + - - 52 DIV CAST( + 81 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-8666
SELECT - 5 + - - 52 / CAST ( + 81 AS INTEGER )
----
-5

query I rowsort
SELECT DISTINCT + 60 * - 33 + + + 55
----
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT 90 * + + CASE - 92 WHEN 64 + 82 / + + 57 THEN + + MAX( - 7 ) WHEN + 41 THEN MAX( + 67 ) + - ( 93 ) * - COUNT( * ) + + + 92 * + COALESCE ( NULLIF ( + NULLIF ( + 86, 8 * ( - + MAX( ALL - + 33 ) ) - - ( 0 ) + 47 + + - 13 * - - 44 + 41 - - - 89 ), - 83 ), - - ( + 99 ) * - 16 ) ELSE - ( + + 2 ) END + - 55 + - 95 + - 98
----
-428

skipif mysql # not compatible
query I rowsort label-8668
SELECT 90 * + + CASE - 92 WHEN 64 + 82 / + + 57 THEN + + MAX ( - 7 ) WHEN + 41 THEN MAX ( + 67 ) + - ( 93 ) * - COUNT ( * ) + + + 92 * + COALESCE ( NULLIF ( + NULLIF ( + 86, 8 * ( - + MAX ( ALL - + 33 ) ) - - ( 0 ) + 47 + + - 13 * - - 44 + 41 - - - 89 ), - 83 ), - - ( + 99 ) * - 16 ) ELSE - ( + + 2 ) END + - 55 + - 95 + - 98
----
-428

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT DISTINCT - MAX( ALL 83 ) * - CASE + 44 WHEN + + 16 * 82 THEN - 18 END * - + 18 + + + ( 42 ) + - COUNT( * ) + + - 34 * + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT - MAX ( ALL 83 ) * - CASE + 44 WHEN + + 16 * 82 THEN - 18 END * - + 18 + + + ( 42 ) + - COUNT ( * ) + + - 34 * + + 96
----
NULL

query I rowsort
SELECT 75 + - 14 * - 64
----
971

query I rowsort
SELECT ALL 72 * - + 75 + 86 AS col0
----
-5314

onlyif mysql # aggregate syntax: 
query II rowsort label-8672
SELECT COUNT( * ), - 91 * + - 25 + - COUNT( * ) * + 67 AS col1
----
1
2208

skipif mysql # not compatible
query II rowsort label-8672
SELECT COUNT ( * ), - 91 * + - 25 + - COUNT ( * ) * + 67 AS col1
----
1
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8673
SELECT + COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8673
SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

query I rowsort
SELECT + 90 * + 61 + + 89
----
5579

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT ( + MIN( DISTINCT 57 ) ) * 71 + + 47 + - 66 * - - COALESCE ( ( 72 ), + 98 ) AS col0
----
-658

skipif mysql # not compatible
query I rowsort label-8675
SELECT ( + MIN ( DISTINCT 57 ) ) * 71 + + 47 + - 66 * - - COALESCE ( ( 72 ), + 98 ) AS col0
----
-658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT ALL 41 DIV - - SUM( - ( COALESCE ( + + 41, + 72 DIV - + 84 DIV 70 * - 65 DIV 40 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL 41 / - - SUM ( - ( COALESCE ( + + 41, + 72 / - + 84 / 70 * - 65 / 40 ) ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8677
SELECT 87 DIV + COUNT( * ) + + 72
----
159

skipif mysql # not compatible
query I rowsort label-8677
SELECT 87 / + COUNT ( * ) + + 72
----
159

query I rowsort
SELECT ( + 59 ) + 85 AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT MIN( DISTINCT - 76 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8679
SELECT MIN ( DISTINCT - 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT ALL SUM( ALL 52 ) * - 75
----
-3900

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL SUM ( ALL 52 ) * - 75
----
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT DISTINCT 99 - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT 99 - COUNT ( * )
----
98

query I rowsort
SELECT + 64 * 9
----
576

query II rowsort
SELECT + NULLIF ( - + 13, + 62 * - - 48 + + 17 * - 65 ), 30 AS col0
----
-13
30

query I rowsort
SELECT + 28 + + - ( - 38 ) + - 43 * 61 * 22 + - 7
----
-57647

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL COUNT( * ) - + - 59 * - 53 * + 25 + + + 51 - - - SUM( + + 77 ) AS col1
----
-78200

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL COUNT ( * ) - + - 59 * - 53 * + 25 + + + 51 - - - SUM ( + + 77 ) AS col1
----
-78200

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT + CASE 66 WHEN + - 54 - + + 3 + + 62 THEN NULL ELSE - COUNT( - + 20 ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8686
SELECT + CASE 66 WHEN + - 54 - + + 3 + + 62 THEN NULL ELSE - COUNT ( - + 20 ) END AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT + 5 + + MAX( + 32 ) * 76
----
2437

skipif mysql # not compatible
query I rowsort label-8687
SELECT + 5 + + MAX ( + 32 ) * 76
----
2437

query I rowsort
SELECT + 34 + + 81
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-8689
SELECT - COUNT( ALL 42 ) AS col1, 48 AS col1
----
-1
48

skipif mysql # not compatible
query II rowsort label-8689
SELECT - COUNT ( ALL 42 ) AS col1, 48 AS col1
----
-1
48

query I rowsort
SELECT ALL 98 * - 82
----
-8036

query I rowsort
SELECT - 32 * - - 20 + + 72 * NULLIF ( - + 72, + + 47 * - + 12 - 56 * + 61 ) col2
----
-5824

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT DISTINCT ( - CASE NULLIF ( - 47, - + 47 ) WHEN + 2 + + 61 * + ( + 64 ) + ( 23 ) THEN 5 WHEN - - COUNT( * ) * - + 69 * - 92 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT ( - CASE NULLIF ( - 47, - + 47 ) WHEN + 2 + + 61 * + ( + 64 ) + ( 23 ) THEN 5 WHEN - - COUNT ( * ) * - + 69 * - 92 THEN NULL END ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8693
SELECT + 86 DIV 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8693
SELECT + 86 / 55 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT - + COUNT( * ) + 58
----
57

skipif mysql # not compatible
query I rowsort label-8694
SELECT - + COUNT ( * ) + 58
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8695
SELECT DISTINCT + NULLIF ( + COUNT( * ), - - 43 + 57 * + 9 * - 6 ) DIV - 59 * + + 25
----
0

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT + NULLIF ( + COUNT ( * ), - - 43 + 57 * + 9 * - 6 ) / - 59 * + + 25
----
0

query I rowsort
SELECT - - 46 + - + 51
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT + COUNT( + ( + 6 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT + COUNT ( + ( + 6 ) ) AS col1
----
1

query I rowsort
SELECT + 62 * - - 27 * + 81 AS col1
----
135594

query I rowsort
SELECT DISTINCT - - 88 + 21 * + + 65 * 22
----
30118

query I rowsort
SELECT DISTINCT - 63 + - - 74 AS col0
----
11

query I rowsort
SELECT ALL - 0 + - 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT + MIN( - 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8702
SELECT + MIN ( - 52 ) AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8703
SELECT DISTINCT 77 + COALESCE ( CAST( ( COUNT( * ) ) AS SIGNED ), - + 95 * 95 - - 60 + - 65 - + 29 DIV + 96 ) DIV + 68 * + COUNT( * ) * - + 76 col2
----
77

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT 77 + COALESCE ( CAST ( ( COUNT ( * ) ) AS INTEGER ), - + 95 * 95 - - 60 + - 65 - + 29 / + 96 ) / + 68 * + COUNT ( * ) * - + 76 col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8704
SELECT ALL - + COUNT( * ) + + - ( 85 ) DIV 69 DIV 58 * - 3 * - - 71 col0
----
-1

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL - + COUNT ( * ) + + - ( 85 ) / 69 / 58 * - 3 * - - 71 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT - + SUM( + - 37 ) * + - 68 AS col2
----
-2516

skipif mysql # not compatible
query I rowsort label-8705
SELECT - + SUM ( + - 37 ) * + - 68 AS col2
----
-2516

query II rowsort
SELECT DISTINCT + + 13, 22 AS col0
----
13
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8707
SELECT ALL + 92 * + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL + 92 * + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT - COALESCE ( + COUNT( * ), + 71 + + 10 - - NULLIF ( - + NULLIF ( SUM( DISTINCT 59 ), + 74 ), - + 57 ), - - 37 ) * 17 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-8708
SELECT - COALESCE ( + COUNT ( * ), + 71 + + 10 - - NULLIF ( - + NULLIF ( SUM ( DISTINCT 59 ), + 74 ), - + 57 ), - - 37 ) * 17 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT DISTINCT + NULLIF ( - MIN( + 79 ), + 94 )
----
-79

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT + NULLIF ( - MIN ( + 79 ), + 94 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT ALL 55 * + + 6 * + + 93 - + COUNT( * )
----
30689

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL 55 * + + 6 * + + 93 - + COUNT ( * )
----
30689

query I rowsort
SELECT ( ( + + 78 ) ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT ALL + COALESCE ( + - 82, 51, - 95 * 94 * + - ( + + 44 ) - - + 1 + - - 8 * + + CASE + AVG ( ALL 61 ) WHEN - 2 / - + ( + COUNT( * ) ) / - COUNT( * ) + + 32 THEN + COUNT( * ) WHEN + + 37 + + 94 THEN COUNT( * ) WHEN - - ( 30 ) - + 8 + - + 50 / + 55 THEN NULL END + + 85 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL + COALESCE ( + - 82, 51, - 95 * 94 * + - ( + + 44 ) - - + 1 + - - 8 * + + CASE + AVG ( ALL 61 ) WHEN - 2 / - + ( + COUNT ( * ) ) / - COUNT ( * ) + + 32 THEN + COUNT ( * ) WHEN + + 37 + + 94 THEN COUNT ( * ) WHEN - - ( 30 ) - + 8 + - + 50 / + 55 THEN NULL END + + 85 ) AS col0
----
-82

query II rowsort
SELECT - 23 + + 28 AS col0, ( - - 23 ) AS col0
----
5
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + NULLIF ( + 51, - 41 * + 77 + - COUNT( * ) ) col1
----
51

skipif mysql # not compatible
query I rowsort label-8714
SELECT + NULLIF ( + 51, - 41 * + 77 + - COUNT ( * ) ) col1
----
51

query I rowsort
SELECT - 40 * + 85
----
-3400

query I rowsort
SELECT - ( + 60 ) - - + 54 * + + 46 * - 72
----
-178908

query I rowsort
SELECT - 93 + - ( 61 )
----
-154

query I rowsort
SELECT - 28 * - ( - 94 ) + + + 30 AS col1
----
-2602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8719
SELECT + 86 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT + 86 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8720
SELECT ALL - 30 DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL - 30 / 68 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL + CASE - + ( + COUNT( * ) ) WHEN - + 83 * + + COUNT( * ) THEN + COUNT( + + 71 ) + - COUNT( * ) + + MIN( ALL + NULLIF ( - 31, 32 ) ) * - - COUNT( * ) WHEN - ( + + ( - 62 ) ) * - 6 THEN NULL WHEN + - COUNT( * ) * + 97 + COUNT( * ) THEN NULL END * - 63 + - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL + CASE - + ( + COUNT ( * ) ) WHEN - + 83 * + + COUNT ( * ) THEN + COUNT ( + + 71 ) + - COUNT ( * ) + + MIN ( ALL + NULLIF ( - 31, 32 ) ) * - - COUNT ( * ) WHEN - ( + + ( - 62 ) ) * - 6 THEN NULL WHEN + - COUNT ( * ) * + 97 + COUNT ( * ) THEN NULL END * - 63 + - 85 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8722
SELECT - 24 * - 91 + + 68 * CASE - - 61 WHEN - ( SUM( DISTINCT - 22 ) ) * + 47 * - + 13 / 94 THEN - - ( - CAST( NULL AS SIGNED ) ) * + + 64 WHEN + + 66 + - 28 THEN + - 78 + + 30 + + CASE + CAST( + 53 AS DECIMAL ) WHEN 30 THEN - 39 * + + 72 WHEN ( - - 65 ) THEN NULL END * + 29 * 72 - 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT - 24 * - 91 + + 68 * CASE - - 61 WHEN - ( SUM ( DISTINCT - 22 ) ) * + 47 * - + 13 / 94 THEN - - ( - CAST ( NULL AS INTEGER ) ) * + + 64 WHEN + + 66 + - 28 THEN + - 78 + + 30 + + CASE + CAST ( + 53 AS REAL ) WHEN 30 THEN - 39 * + + 72 WHEN ( - - 65 ) THEN NULL END * + 29 * 72 - 81 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 53 * + 85
----
-4505

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT + 64 + + 30 + - 16 - - - COUNT( * ) * + 18 * - 31 AS col0
----
636

skipif mysql # not compatible
query I rowsort label-8724
SELECT + 64 + + 30 + - 16 - - - COUNT ( * ) * + 18 * - 31 AS col0
----
636

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8725
SELECT DISTINCT 38 * + 5, MAX( + + 85 ) DIV + 30 + - 60 * - + 6 - - 63 col1
----
190
425

skipif mysql # not compatible
query II rowsort label-8725
SELECT DISTINCT 38 * + 5, MAX ( + + 85 ) / + 30 + - 60 * - + 6 - - 63 col1
----
190
425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8726
SELECT ALL + 34 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + 34 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8727
SELECT - ( + 59 ) AS col0, - COUNT( * ) AS col2
----
-59
-1

skipif mysql # not compatible
query II rowsort label-8727
SELECT - ( + 59 ) AS col0, - COUNT ( * ) AS col2
----
-59
-1

query I rowsort
SELECT + + 79 + - 36 + - + 82
----
-39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8729
SELECT ALL - NULLIF ( - 33, CAST( + + 38 AS SIGNED ) ) DIV - NULLIF ( - 10, 70 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL - NULLIF ( - 33, CAST ( + + 38 AS INTEGER ) ) / - NULLIF ( - 10, 70 ) AS col1
----
3

query I rowsort
SELECT DISTINCT + 77 * - - 37 AS col1
----
2849

query II rowsort
SELECT + 76 + 36, 43 col2
----
112
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8732
SELECT + MIN( ALL 68 ) * + ( + + 79 ) + - CAST( - - ( - NULLIF ( - - NULLIF ( MIN( 26 ), - - 17 ), + + 21 ) ) AS SIGNED ) / + CASE - NULLIF ( - 56, + - 12 * - 20 * - + 70 ) WHEN SUM( + CAST( NULL AS SIGNED ) ) THEN 78 + + CAST( 79 AS SIGNED ) + - - ( - 0 ) * + - 19 WHEN - + AVG ( ALL + - 81 ) + - - 57 THEN - + 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT + MIN ( ALL 68 ) * + ( + + 79 ) + - CAST ( - - ( - NULLIF ( - - NULLIF ( MIN ( 26 ), - - 17 ), + + 21 ) ) AS INTEGER ) / + CASE - NULLIF ( - 56, + - 12 * - 20 * - + 70 ) WHEN SUM ( + CAST ( NULL AS INTEGER ) ) THEN 78 + + CAST ( 79 AS INTEGER ) + - - ( - 0 ) * + - 19 WHEN - + AVG ( ALL + - 81 ) + - - 57 THEN - + 62 END AS col1
----
NULL

query I rowsort
SELECT - 50 * 47 AS col2
----
-2350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8734
SELECT + 7 + - 96 + 45 AS col1, - CAST( - 42 AS SIGNED ) * - + CAST( NULL AS SIGNED ) * + 34 col0
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-8734
SELECT + 7 + - 96 + 45 AS col1, - CAST ( - 42 AS INTEGER ) * - + CAST ( NULL AS INTEGER ) * + 34 col0
----
-44
NULL

query I rowsort
SELECT DISTINCT 30 * - 81
----
-2430

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8736
SELECT ALL 89 * - CAST( 53 AS SIGNED ) AS col0, 33 * - - 45 AS col1
----
-4717
1485

skipif mysql # not compatible
query II rowsort label-8736
SELECT ALL 89 * - CAST ( 53 AS INTEGER ) AS col0, 33 * - - 45 AS col1
----
-4717
1485

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8737
SELECT CASE ( - CAST( NULL AS SIGNED ) ) WHEN - 86 THEN 72 + + - 28 END * - 52 / + 93 + - 19 AS col0, + 70 AS col2
----
NULL
70

skipif mysql # not compatible
query II rowsort label-8737
SELECT CASE ( - CAST ( NULL AS INTEGER ) ) WHEN - 86 THEN 72 + + - 28 END * - 52 / + 93 + - 19 AS col0, + 70 AS col2
----
NULL
70

query II rowsort
SELECT ALL - 20 AS col2, 82 - + 34 + + - 25
----
-20
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8739
SELECT ALL - 26 AS col0, NULLIF ( + + 74, - 93 ) + ( + + COUNT( * ) )
----
-26
75

skipif mysql # not compatible
query II rowsort label-8739
SELECT ALL - 26 AS col0, NULLIF ( + + 74, - 93 ) + ( + + COUNT ( * ) )
----
-26
75

query II rowsort
SELECT 83 AS col1, - NULLIF ( + 46, - 83 )
----
83
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8741
SELECT - 6 DIV + - COUNT( * ) + + 62 col1, + 54
----
68
54

skipif mysql # not compatible
query II rowsort label-8741
SELECT - 6 / + - COUNT ( * ) + + 62 col1, + 54
----
68
54

query I rowsort
SELECT 9 + - 33
----
-24

query II rowsort
SELECT + 7 AS col1, - 70 * 30
----
7
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT 25 * - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-8744
SELECT 25 * - COUNT ( * )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT DISTINCT - COUNT( * ) * 5
----
-5

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT - COUNT ( * ) * 5
----
-5

query I rowsort
SELECT ALL - CASE + - 23 WHEN + 86 + - + 54 THEN - 66 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8747
SELECT DISTINCT + 16 + - 77 DIV + 63, MAX( ALL - 49 ) AS col2
----
15
-49

skipif mysql # not compatible
query II rowsort label-8747
SELECT DISTINCT + 16 + - 77 / + 63, MAX ( ALL - 49 ) AS col2
----
15
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT ALL - SUM( ALL 78 ) * + + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - SUM ( ALL 78 ) * + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
78

query I rowsort
SELECT DISTINCT - ( + 52 ) AS col1
----
-52

query I rowsort
SELECT DISTINCT - 44 * 47 col0
----
-2068

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT 99 * - ( - SUM( 28 ) )
----
2772

skipif mysql # not compatible
query I rowsort label-8751
SELECT 99 * - ( - SUM ( 28 ) )
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT ( + 10 ) * + 40 + + MIN( ALL - 33 )
----
367

skipif mysql # not compatible
query I rowsort label-8752
SELECT ( + 10 ) * + 40 + + MIN ( ALL - 33 )
----
367

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT - 82 + + - 74 * + 84 * + - 41 * - COUNT( * )
----
-254938

skipif mysql # not compatible
query I rowsort label-8753
SELECT - 82 + + - 74 * + 84 * + - 41 * - COUNT ( * )
----
-254938

query II rowsort
SELECT 36 AS col1, 25 AS col0
----
36
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8755
SELECT - COALESCE ( + CAST( + + COUNT( * ) AS SIGNED ), + + CASE + + 16 WHEN + 6 * + 51 - - COUNT( * ) - 74 - + - ( + 9 ) - 24 * + 75 THEN NULL ELSE + + 83 DIV ( COALESCE ( - + 39, - 88, - + NULLIF ( + - 96, - 46 ) * - 60 ) ) * + - ( 39 ) END, COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8755
SELECT - COALESCE ( + CAST ( + + COUNT ( * ) AS INTEGER ), + + CASE + + 16 WHEN + 6 * + 51 - - COUNT ( * ) - 74 - + - ( + 9 ) - 24 * + 75 THEN NULL ELSE + + 83 / ( COALESCE ( - + 39, - 88, - + NULLIF ( + - 96, - 46 ) * - 60 ) ) * + - ( 39 ) END, COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8756
SELECT ALL + 24 + SUM( 72 ) + - 84 * + 73 * - 82 + - - 58 * - 56 + - + ( + 75 ) + + CAST( + - 97 AS SIGNED ) * - 40 * - COUNT( DISTINCT 45 ) - + 14 * - - COUNT( * ) + + 78 AS col2, - 66 * 28
----
495781
-1848

skipif mysql # not compatible
query II rowsort label-8756
SELECT ALL + 24 + SUM ( 72 ) + - 84 * + 73 * - 82 + - - 58 * - 56 + - + ( + 75 ) + + CAST ( + - 97 AS INTEGER ) * - 40 * - COUNT ( DISTINCT 45 ) - + 14 * - - COUNT ( * ) + + 78 AS col2, - 66 * 28
----
495781
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT - 35 * + COUNT( * ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-8757
SELECT - 35 * + COUNT ( * ) AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8758
SELECT DISTINCT CAST( - 81 AS SIGNED ) + - 69 AS col0, COUNT( * ) col1
----
-150
1

skipif mysql # not compatible
query II rowsort label-8758
SELECT DISTINCT CAST ( - 81 AS INTEGER ) + - 69 AS col0, COUNT ( * ) col1
----
-150
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8759
SELECT ALL - 97 col1, SUM( + 91 )
----
-97
91

skipif mysql # not compatible
query II rowsort label-8759
SELECT ALL - 97 col1, SUM ( + 91 )
----
-97
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8760
SELECT ALL + 63 + + CASE WHEN - 64 IS NULL THEN 66 WHEN NOT NULL NOT BETWEEN 78 AND + 51 * + 93 THEN - 68 * - 80 WHEN ( + + 89 / + 39 IS NOT NULL ) THEN + CAST( NULL AS SIGNED ) * + - 22 / + 72 * - + 74 + + - 14 ELSE - 93 * 71 END + - CASE + 84 WHEN SUM( - 12 ) * - - 64 THEN - 25 ELSE + 51 END + + CASE - COUNT( * ) WHEN - 62 * - + 88 THEN NULL WHEN + 55 THEN + CAST( NULL AS SIGNED ) ELSE NULL END / 79 * - 13 * ( 66 ) / 21 + - NULLIF ( + - 51, + + COUNT( * ) + - - COUNT( * ) + + - 48 * - 74 / - + CAST( NULL AS SIGNED ) + + 17 ) + 30 / 18 * 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL + 63 + + CASE WHEN - 64 IS NULL THEN 66 WHEN NOT NULL NOT BETWEEN 78 AND + 51 * + 93 THEN - 68 * - 80 WHEN ( + + 89 / + 39 IS NOT NULL ) THEN + CAST ( NULL AS INTEGER ) * + - 22 / + 72 * - + 74 + + - 14 ELSE - 93 * 71 END + - CASE + 84 WHEN SUM ( - 12 ) * - - 64 THEN - 25 ELSE + 51 END + + CASE - COUNT ( * ) WHEN - 62 * - + 88 THEN NULL WHEN + 55 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END / 79 * - 13 * ( 66 ) / 21 + - NULLIF ( + - 51, + + COUNT ( * ) + - - COUNT ( * ) + + - 48 * - 74 / - + CAST ( NULL AS INTEGER ) + + 17 ) + 30 / 18 * 10 AS col1
----
NULL

query I rowsort
SELECT ALL - - 4 + + 52
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL ( + + 8 ) + + + 44 * - NULLIF ( - 8, - 73 / - COALESCE ( - - SUM( - + 48 ), + - 41 ) * - 97 * + + COALESCE ( 64, - + 72 * - + 86 + + 15 + 93 ) )
----
360

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL ( + + 8 ) + + + 44 * - NULLIF ( - 8, - 73 / - COALESCE ( - - SUM ( - + 48 ), + - 41 ) * - 97 * + + COALESCE ( 64, - + 72 * - + 86 + + 15 + 93 ) )
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT 79 * - 1 * - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-8763
SELECT 79 * - 1 * - COUNT ( * )
----
79

query I rowsort
SELECT ALL 68 * 36
----
2448

query II rowsort
SELECT 29 AS col1, 42 AS col0
----
29
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8766
SELECT - 7 + MAX( DISTINCT 1 ) AS col2, 0 AS col2
----
-6
0

skipif mysql # not compatible
query II rowsort label-8766
SELECT - 7 + MAX ( DISTINCT 1 ) AS col2, 0 AS col2
----
-6
0

query I rowsort
SELECT 56 + + 69
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT ALL + 48 * + 62 * + + ( SUM( + - ( + + 67 ) ) )
----
-199392

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL + 48 * + 62 * + + ( SUM ( + - ( + + 67 ) ) )
----
-199392

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT + MIN( DISTINCT + + 9 ) * + SUM( - 25 ) + 59 AS col2
----
-166

skipif mysql # not compatible
query I rowsort label-8769
SELECT + MIN ( DISTINCT + + 9 ) * + SUM ( - 25 ) + 59 AS col2
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT - - SUM( ALL + ( - 68 ) ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-8770
SELECT - - SUM ( ALL + ( - 68 ) ) col1
----
-68

query I rowsort
SELECT DISTINCT 48 - - 24 + - - 6
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT 71 * - CAST( + + 73 AS SIGNED )
----
-5183

skipif mysql # not compatible
query I rowsort label-8772
SELECT 71 * - CAST ( + + 73 AS INTEGER )
----
-5183

query I rowsort
SELECT 19 * + 1
----
19

query I rowsort
SELECT DISTINCT 40 + - 90 AS col2
----
-50

query I rowsort
SELECT ALL - NULLIF ( - 23, - + 15 ) + + 87 AS col1
----
110

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8776
SELECT 96 * - - CAST( NULL AS DECIMAL ) / - MAX( + + 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT 96 * - - CAST ( NULL AS REAL ) / - MAX ( + + 95 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT + 20 * - + ( + - COALESCE ( 20, - MAX( ALL - + 87 ) - 75 ) ) + 27 * - 88 + + - 99
----
-2075

skipif mysql # not compatible
query I rowsort label-8777
SELECT + 20 * - + ( + - COALESCE ( 20, - MAX ( ALL - + 87 ) - 75 ) ) + 27 * - 88 + + - 99
----
-2075

query I rowsort
SELECT DISTINCT + CASE - 67 WHEN + + 70 * 81 - 30 * 74 + + 23 THEN + 72 ELSE NULL END + + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT + ( NULLIF ( + 2, - + MIN( DISTINCT + + 17 ) + + 97 ) )
----
2

skipif mysql # not compatible
query I rowsort label-8779
SELECT + ( NULLIF ( + 2, - + MIN ( DISTINCT + + 17 ) + + 97 ) )
----
2

query I rowsort
SELECT DISTINCT 98 + ( + 88 ) - + + 61 AS col2
----
125

query I rowsort
SELECT ALL - + 44 * - ( - - 93 ) * - 44
----
-180048

query I rowsort
SELECT ( + ( - 60 ) )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT ALL - 34 + + 77 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL - 34 + + 77 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 2 * - + 41
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL + - 52 * + 90 * CASE - COUNT( * ) WHEN - COUNT( * ) + 41 THEN NULL WHEN - MIN( DISTINCT - 10 ) THEN + 88 ELSE - 30 + + 63 + - 49 END * COUNT( * ) AS col2
----
74880

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + - 52 * + 90 * CASE - COUNT ( * ) WHEN - COUNT ( * ) + 41 THEN NULL WHEN - MIN ( DISTINCT - 10 ) THEN + 88 ELSE - 30 + + 63 + - 49 END * COUNT ( * ) AS col2
----
74880

onlyif mysql # aggregate syntax: 
query II rowsort label-8786
SELECT 79 * + 64 + + + MIN( ALL + 45 ), 24 * - + ( 83 ) AS col1
----
5101
-1992

skipif mysql # not compatible
query II rowsort label-8786
SELECT 79 * + 64 + + + MIN ( ALL + 45 ), 24 * - + ( 83 ) AS col1
----
5101
-1992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8787
SELECT - 82 + 62 * + - CASE 17 WHEN - 60 THEN NULL WHEN - 63 * 38 + + 33 * + 4 THEN + + 63 WHEN - 69 * + 49 + 55 THEN NULL END * - 23 * - 49 + - CASE - COUNT( * ) WHEN 76 + - CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) / - 24 + 81 THEN 39 * + ( + - 19 ) * - 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT - 82 + 62 * + - CASE 17 WHEN - 60 THEN NULL WHEN - 63 * 38 + + 33 * + 4 THEN + + 63 WHEN - 69 * + 49 + 55 THEN NULL END * - 23 * - 49 + - CASE - COUNT ( * ) WHEN 76 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) / - 24 + 81 THEN 39 * + ( + - 19 ) * - 3 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8788
SELECT - CASE + ( - CAST( - + 39 AS SIGNED ) ) WHEN + - 26 THEN NULL WHEN + - 41 THEN + 70 + + + 99 + + + COALESCE ( - + 76, COUNT( * ), + 98 ) ELSE NULL END, - 80 AS col2
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-8788
SELECT - CASE + ( - CAST ( - + 39 AS INTEGER ) ) WHEN + - 26 THEN NULL WHEN + - 41 THEN + 70 + + + 99 + + + COALESCE ( - + 76, COUNT ( * ), + 98 ) ELSE NULL END, - 80 AS col2
----
NULL
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT - SUM( DISTINCT - ( + 73 ) )
----
73

skipif mysql # not compatible
query I rowsort label-8789
SELECT - SUM ( DISTINCT - ( + 73 ) )
----
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8790
SELECT + 5 * + MAX( ALL CAST( NULL AS DECIMAL ) ) + 91 / + ( - + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT + 5 * + MAX ( ALL CAST ( NULL AS REAL ) ) + 91 / + ( - + 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT 12 - + NULLIF ( 54, - + COUNT( * ) * 50 )
----
-42

skipif mysql # not compatible
query I rowsort label-8791
SELECT 12 - + NULLIF ( 54, - + COUNT ( * ) * 50 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT + MAX( - - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT + MAX ( - - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT NULLIF ( - - 18, + - 54 * + COUNT( * ) - - - ( - 95 ) * + - COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT NULLIF ( - - 18, + - 54 * + COUNT ( * ) - - - ( - 95 ) * + - COUNT ( * ) )
----
18

query I rowsort
SELECT - 24 + - 37 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT - COUNT( * ) + COUNT( * ) + + ( - + COUNT( * ) ) + - 38 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8795
SELECT - COUNT ( * ) + COUNT ( * ) + + ( - + COUNT ( * ) ) + - 38 AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT - CAST( NULL AS SIGNED ) / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT - CAST ( NULL AS INTEGER ) / + 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8797
SELECT + 6 DIV 24 col2
----
0

skipif mysql # not compatible
query I rowsort label-8797
SELECT + 6 / 24 col2
----
0

query I rowsort
SELECT ALL - 70 * - 85
----
5950

query I rowsort
SELECT + 70 + + 96 AS col0
----
166

query I rowsort
SELECT DISTINCT ( 55 )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8801
SELECT DISTINCT + 51 col1, - 17 + + MAX( ALL + ( + + 94 ) ) + + + 33
----
51
110

skipif mysql # not compatible
query II rowsort label-8801
SELECT DISTINCT + 51 col1, - 17 + + MAX ( ALL + ( + + 94 ) ) + + + 33
----
51
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8802
SELECT ALL + MAX( DISTINCT + 54 ) * - 40 * COUNT( * ) + - + 83 * - 41 + - 5 * + + 3 + + 81 DIV 24, 76 AS col0
----
1231
76

skipif mysql # not compatible
query II rowsort label-8802
SELECT ALL + MAX ( DISTINCT + 54 ) * - 40 * COUNT ( * ) + - + 83 * - 41 + - 5 * + + 3 + + 81 / 24, 76 AS col0
----
1231
76

query I rowsort
SELECT ALL - 5 * - 76 + + - 27
----
353

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8804
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) * + 0 + + + 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) * + 0 + + + 35 AS col1
----
35

query I rowsort
SELECT + NULLIF ( - 14, 62 * ( + - 54 ) / - 63 + + - 59 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT NULLIF ( 0, COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-8806
SELECT NULLIF ( 0, COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8807
SELECT DISTINCT - 95 * + CAST( COUNT( * ) AS SIGNED ) + 67 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT - 95 * + CAST ( COUNT ( * ) AS INTEGER ) + 67 AS col0
----
-28

query I rowsort
SELECT ALL + 12 * + 15 + 99 AS col1
----
279

query I rowsort
SELECT + CASE 23 WHEN + 55 THEN - 91 WHEN - 68 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 62 * 25 - - 59 AS col2
----
1609

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8811
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT CAST ( NULL AS REAL ) * + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT ALL MAX( DISTINCT 16 ) * - 67
----
-1072

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL MAX ( DISTINCT 16 ) * - 67
----
-1072

query I rowsort
SELECT ALL 40 * 83 - 68
----
3252

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL + MIN( DISTINCT 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL + MIN ( DISTINCT 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT + CASE - 33 WHEN 93 THEN NULL ELSE COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8815
SELECT + CASE - 33 WHEN 93 THEN NULL ELSE COUNT ( * ) END AS col2
----
1

query I rowsort
SELECT - ( + 93 ) + + 90
----
-3

query I rowsort
SELECT CASE 64 WHEN 50 / - 47 THEN NULL WHEN - 80 THEN - ( ( - 23 ) ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8818
SELECT + 14 / CASE 0 * ( 5 ) WHEN - 29 / 96 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN COUNT( * ) * + 5 WHEN 8 THEN + 1 + - 71 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT + 14 / CASE 0 * ( 5 ) WHEN - 29 / 96 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * + 5 WHEN 8 THEN + 1 + - 71 END AS col0
----
NULL

query I rowsort
SELECT + 31 + + 4 AS col2
----
35

query I rowsort
SELECT + 33 * 26 + - 4 AS col1
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT DISTINCT + 46 * + SUM( ALL 79 ) AS col0
----
3634

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT + 46 * + SUM ( ALL 79 ) AS col0
----
3634

query I rowsort
SELECT ALL NULLIF ( - 53, 14 )
----
-53

query I rowsort
SELECT - ( + 76 ) * - 89 AS col0
----
6764

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL 66 * + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL 66 * + COUNT ( * ) AS col1
----
66

query I rowsort
SELECT - ( + 44 ) + 30
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8826
SELECT ALL NULLIF ( + CASE + CAST( 96 AS DECIMAL ) WHEN - 92 * - 83 THEN NULL ELSE 29 END, 54 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL NULLIF ( + CASE + CAST ( 96 AS REAL ) WHEN - 92 * - 83 THEN NULL ELSE 29 END, 54 ) AS col0
----
29

query I rowsort
SELECT DISTINCT + 47 + 82 AS col1
----
129

query I rowsort
SELECT ALL NULLIF ( + 34, 69 + - 81 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT + ( 34 ) * + COUNT( * ) col1
----
34

skipif mysql # not compatible
query I rowsort label-8829
SELECT + ( 34 ) * + COUNT ( * ) col1
----
34

query I rowsort
SELECT - 30 + 77 * 40 col2
----
3050

query I rowsort
SELECT ALL + 29 + + 20
----
49

query I rowsort
SELECT ALL ( 46 ) col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL + ( + 39 ) + - ( + COUNT( * ) + - 1 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + ( + 39 ) + - ( + COUNT ( * ) + - 1 ) AS col1
----
39

query I rowsort
SELECT - 94 * - 72
----
6768

query I rowsort
SELECT ALL + 30 + - 91
----
-61

query I rowsort
SELECT ALL NULLIF ( ( 41 ), - 53 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT + 84 + 72 * SUM( DISTINCT - 11 )
----
-708

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT + 84 + 72 * SUM ( DISTINCT - 11 )
----
-708

query I rowsort
SELECT ALL - ( - 45 ) + + 11
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ALL - COUNT( * ) + + ( + 9 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL - COUNT ( * ) + + ( + 9 ) AS col0
----
8

query I rowsort
SELECT - 64 * 44
----
-2816

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT - MAX( 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-8841
SELECT - MAX ( 29 )
----
-29

query I rowsort
SELECT - ( - 8 ) * + 79 AS col1
----
632

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL + COUNT( * ) + 52 col0
----
53

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL + COUNT ( * ) + 52 col0
----
53

query I rowsort
SELECT ALL - 67 + - 90 col1
----
-157

query I rowsort
SELECT - 28 * 24 AS col0
----
-672

query I rowsort
SELECT + 34 * - NULLIF ( - 14, - 25 + 52 )
----
476

query I rowsort
SELECT - 4 - ( 72 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT + 22 * + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT + 22 * + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8849
SELECT ALL + MIN( DISTINCT + 76 ) DIV + COUNT( * ) - + 8
----
68

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL + MIN ( DISTINCT + 76 ) / + COUNT ( * ) - + 8
----
68

query I rowsort
SELECT DISTINCT + + 10 * 22
----
220

query I rowsort
SELECT + + 7 - CASE + 57 WHEN 22 THEN - 80 + 26 WHEN ( - 49 ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8852
SELECT - COUNT( * ) * + 23 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT - COUNT ( * ) * + 23 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT + + COUNT( * ) * COUNT( * ) - + 21 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8853
SELECT + + COUNT ( * ) * COUNT ( * ) - + 21 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT + 60 * COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8854
SELECT + 60 * COUNT ( * ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT + COUNT( * ) + - 30 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-8855
SELECT + COUNT ( * ) + - 30 AS col2
----
-29

query I rowsort
SELECT + + 55 * - 64
----
-3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8857
SELECT DISTINCT - COUNT( * ) * + CAST( + 99 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT - COUNT ( * ) * + CAST ( + 99 AS INTEGER )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT COUNT( * ) * COUNT( ALL + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT COUNT ( * ) * COUNT ( ALL + 17 )
----
1

query I rowsort
SELECT DISTINCT - + 79 AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8860
SELECT ALL - COALESCE ( 22, CAST( + 3 AS SIGNED ) DIV 46 )
----
-22

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL - COALESCE ( 22, CAST ( + 3 AS INTEGER ) / 46 )
----
-22

query I rowsort
SELECT ALL - 0 * + 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT DISTINCT + MIN( 33 ) + 65 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT + MIN ( 33 ) + 65 AS col1
----
98

query I rowsort
SELECT DISTINCT 46 + + 91
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-8864
SELECT - 20 DIV 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8864
SELECT - 20 / 79 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8865
SELECT 10 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-8865
SELECT 10 / - 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT DISTINCT 53 DIV + + 15
----
3

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT 53 / + + 15
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL NULLIF ( + 0, + MAX( DISTINCT 75 ) ) + - 80 * - COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL NULLIF ( + 0, + MAX ( DISTINCT 75 ) ) + - 80 * - COUNT ( * ) AS col2
----
80

query I rowsort
SELECT + 53 * - NULLIF ( ( 39 ), - 45 ) * 8 - 29 * 96 AS col2
----
-19320

query I rowsort
SELECT ALL + ( - 47 ) + - 98 AS col1
----
-145

query I rowsort
SELECT 99 + 31
----
130

query I rowsort
SELECT 35 - 99 AS col1
----
-64

query I rowsort
SELECT 5 * + 98
----
490

query I rowsort
SELECT ( + 22 ) + + 76 * - 78
----
-5906

query I rowsort
SELECT 24 + + - 15 AS col1
----
9

query I rowsort
SELECT ALL 10 - 57 * + 25 AS col1
----
-1415

query I rowsort
SELECT 34 + + ( + 27 ) * 68
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT 44 + + - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-8877
SELECT 44 + + - COUNT ( * )
----
43

query I rowsort
SELECT 50 * - 70 AS col0
----
-3500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8879
SELECT - COALESCE ( COUNT( + 70 ), - CAST( NULL AS SIGNED ) ) + - 53 col1
----
-54

skipif mysql # not compatible
query I rowsort label-8879
SELECT - COALESCE ( COUNT ( + 70 ), - CAST ( NULL AS INTEGER ) ) + - 53 col1
----
-54

query I rowsort
SELECT ALL - 56 - - 22 AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT 41 DIV + + 88 * + 72
----
0

skipif mysql # not compatible
query I rowsort label-8881
SELECT 41 / + + 88 * + 72
----
0

query I rowsort
SELECT + 44 * 16 AS col1
----
704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8883
SELECT 0 + + - 35 * + CAST( - 65 AS SIGNED ) AS col0
----
2275

skipif mysql # not compatible
query I rowsort label-8883
SELECT 0 + + - 35 * + CAST ( - 65 AS INTEGER ) AS col0
----
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT 10 * COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-8884
SELECT 10 * COUNT ( * )
----
10

query I rowsort
SELECT ALL - NULLIF ( + - 13, 85 ) + - 96
----
-83

query I rowsort
SELECT ALL - - 90 + + + 90
----
180

query I rowsort
SELECT 89 * - + 56 AS col1
----
-4984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT 43 * 48 * + 92 - 37 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT 43 * 48 * + 92 - 37 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 37 + + - 56
----
-93

query I rowsort
SELECT ALL - - ( - 19 )
----
-19

query I rowsort
SELECT DISTINCT + 21 + 51 AS col0
----
72

query I rowsort
SELECT 94 * - + 85 AS col2
----
-7990

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL + SUM( + - 43 ) + 65 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL + SUM ( + - 43 ) + 65 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT 90 + + NULLIF ( - - COUNT( * ), - 25 * - 18 + 23 )
----
91

skipif mysql # not compatible
query I rowsort label-8894
SELECT 90 + + NULLIF ( - - COUNT ( * ), - 25 * - 18 + 23 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8895
SELECT DISTINCT - 29 + - NULLIF ( - - 0, - 24 ) + - COUNT( * ) DIV 15
----
-29

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT - 29 + - NULLIF ( - - 0, - 24 ) + - COUNT ( * ) / 15
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8896
SELECT - 86 * COALESCE ( - 31, - 92 ) + COUNT( * ) DIV 99
----
2666

skipif mysql # not compatible
query I rowsort label-8896
SELECT - 86 * COALESCE ( - 31, - 92 ) + COUNT ( * ) / 99
----
2666

query I rowsort
SELECT DISTINCT ( + + 95 ) + - 17 * 78 AS col2
----
-1231

query I rowsort
SELECT ALL 77 + - - 18 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT COUNT( * ) * 75 * - - 43 AS col0
----
3225

skipif mysql # not compatible
query I rowsort label-8899
SELECT COUNT ( * ) * 75 * - - 43 AS col0
----
3225

query II rowsort
SELECT - 45 AS col0, 95
----
-45
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL COUNT( * ) - + - NULLIF ( - 34, CASE + 67 WHEN 75 THEN NULL ELSE - 23 - + 22 * 35 END + - 93 ) + - 15 * 9 AS col0
----
-168

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL COUNT ( * ) - + - NULLIF ( - 34, CASE + 67 WHEN 75 THEN NULL ELSE - 23 - + 22 * 35 END + - 93 ) + - 15 * 9 AS col0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT 44 + SUM( ALL - 90 ) + + 58 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8902
SELECT 44 + SUM ( ALL - 90 ) + + 58 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8903
SELECT COUNT( * ) * - + 16 * - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT COUNT ( * ) * - + 16 * - - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 54 * + 44 AS col1
----
2376

query I rowsort
SELECT DISTINCT 58 - + ( + - NULLIF ( 48, + 89 * - ( - 61 * 8 ) ) ) - 4 AS col0
----
102

query I rowsort
SELECT ALL - 67 - 71 col2
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8907
SELECT - MIN( DISTINCT - + CAST( - CAST( - 14 AS SIGNED ) AS SIGNED ) )
----
14

skipif mysql # not compatible
query I rowsort label-8907
SELECT - MIN ( DISTINCT - + CAST ( - CAST ( - 14 AS INTEGER ) AS INTEGER ) )
----
14

query I rowsort
SELECT 53 * + 26
----
1378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT ALL 39 * - CAST( + + 50 AS SIGNED ) * 68 col1
----
-132600

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL 39 * - CAST ( + + 50 AS INTEGER ) * 68 col1
----
-132600

query I rowsort
SELECT 24 - 66
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT COUNT( * ) * - + 11
----
-11

skipif mysql # not compatible
query I rowsort label-8911
SELECT COUNT ( * ) * - + 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT 56 - ( - 59 ) - + MAX( + 5 ) AS col1
----
110

skipif mysql # not compatible
query I rowsort label-8912
SELECT 56 - ( - 59 ) - + MAX ( + 5 ) AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT + COUNT( * ) * - 90 * + 90
----
-8100

skipif mysql # not compatible
query I rowsort label-8913
SELECT + COUNT ( * ) * - 90 * + 90
----
-8100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8914
SELECT DISTINCT - NULLIF ( + COUNT( - 37 ), 92 DIV + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT - NULLIF ( + COUNT ( - 37 ), 92 / + 53 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8915
SELECT ALL - 44 DIV + 46 + + - SUM( ALL 90 ) * 97 AS col0
----
-8730

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL - 44 / + 46 + + - SUM ( ALL 90 ) * 97 AS col0
----
-8730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT - NULLIF ( + ( + 7 ), + 50 - - CASE + CASE WHEN - 59 <= NULL THEN 47 * 48 ELSE NULL END WHEN + 82 THEN - 50 END ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT - NULLIF ( + ( + 7 ), + 50 - - CASE + CASE WHEN - 59 <= NULL THEN 47 * 48 ELSE NULL END WHEN + 82 THEN - 50 END ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 1 * - 11 + 88 + 16 * - 29 col0
----
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT DISTINCT + COALESCE ( - SUM( + 80 ), 57, MAX( DISTINCT 86 ) * 5, 35, + COUNT( * ) + 8 ) * 53
----
-4240

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT + COALESCE ( - SUM ( + 80 ), 57, MAX ( DISTINCT 86 ) * 5, 35, + COUNT ( * ) + 8 ) * 53
----
-4240

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT + ( + - 9 ) * + 88 + - COUNT( * ) col0
----
-793

skipif mysql # not compatible
query I rowsort label-8919
SELECT + ( + - 9 ) * + 88 + - COUNT ( * ) col0
----
-793

onlyif mysql # DIV for integer division: 
query I rowsort label-8920
SELECT ALL + - 26 DIV - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL + - 26 / - 76 AS col1
----
0

query I rowsort
SELECT ALL - 58 * - 50 + - 20 AS col0
----
2880

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8922
SELECT - + 28 * CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT - + 28 * CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT - 11 DIV + 81 * - 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8923
SELECT - 11 / + 81 * - 33 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT 9 * 41 + + 3 + COUNT( * ) * + 66 AS col1
----
438

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT 9 * 41 + + 3 + COUNT ( * ) * + 66 AS col1
----
438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT DISTINCT + + CAST( ( + 60 ) AS SIGNED ) * + 68
----
4080

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT + + CAST ( ( + 60 ) AS INTEGER ) * + 68
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT - 82 * - 10 * NULLIF ( - 43, ( COUNT( * ) ) * 22 ) + - 87
----
-35347

skipif mysql # not compatible
query I rowsort label-8926
SELECT - 82 * - 10 * NULLIF ( - 43, ( COUNT ( * ) ) * 22 ) + - 87
----
-35347

query I rowsort
SELECT DISTINCT - 25 * - + 57 AS col0
----
1425

query I rowsort
SELECT ALL + ( - 82 )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8929
SELECT ALL 1 * 74 DIV - 90 + COALESCE ( + 53, + ( ( 40 ) ) ) + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL 1 * 74 / - 90 + COALESCE ( + 53, + ( ( 40 ) ) ) + COUNT ( * )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT ALL + CAST( 31 AS SIGNED ) col0
----
31

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL + CAST ( 31 AS INTEGER ) col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT + 0 + - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8931
SELECT + 0 + - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT DISTINCT ( + 16 ) AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8933
SELECT - CASE WHEN + 58 IS NOT NULL THEN + 60 * - NULLIF ( + 39 DIV 49, + 36 ) ELSE NULL END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8933
SELECT - CASE WHEN + 58 IS NOT NULL THEN + 60 * - NULLIF ( + 39 / 49, + 36 ) ELSE NULL END AS col2
----
0

query II rowsort
SELECT ALL - 35 - 21 AS col2, - 34 AS col1
----
-56
-34

query II rowsort
SELECT + 81 + - 73 AS col0, - 36
----
8
-36

query II rowsort
SELECT ALL 93 - 28 AS col0, 66 - + 34 + + 41
----
65
73

query I rowsort
SELECT DISTINCT + 63 * + 88 AS col1
----
5544

query I rowsort
SELECT ALL ( - ( - 70 ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT + 54 * SUM( ALL - 2 )
----
-108

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT + 54 * SUM ( ALL - 2 )
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-8940
SELECT + COUNT( * ) * - - 39 AS col1, 94 AS col2
----
39
94

skipif mysql # not compatible
query II rowsort label-8940
SELECT + COUNT ( * ) * - - 39 AS col1, 94 AS col2
----
39
94

query I rowsort
SELECT - 45 + 99 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT + SUM( DISTINCT + 27 ) - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8942
SELECT + SUM ( DISTINCT + 27 ) - COUNT ( * ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8943
SELECT + - CASE - 48 WHEN 10 * - 19 * 44 THEN + 41 WHEN - 77 * 47 THEN NULL ELSE 20 END DIV CAST( + COUNT( * ) * 21 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8943
SELECT + - CASE - 48 WHEN 10 * - 19 * 44 THEN + 41 WHEN - 77 * 47 THEN NULL ELSE 20 END / CAST ( + COUNT ( * ) * 21 AS INTEGER )
----
0

query I rowsort
SELECT + + 33 + + 16 + 49
----
98

query II rowsort
SELECT + - 70 * - + 53, 61 AS col0
----
3710
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8946
SELECT ALL - 64 + 83 DIV + 84 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL - 64 + 83 / + 84 AS col0
----
-64

query I rowsort
SELECT + 97 + 29 AS col0
----
126

query I rowsort
SELECT ALL 67 + + + COALESCE ( + 74, - + 37 * 92 + 79, + 60 ) AS col1
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8949
SELECT DISTINCT + COUNT( * ) DIV 84 + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT + COUNT ( * ) / 84 + - - COUNT ( * )
----
1

query I rowsort
SELECT + + 48 * 55 * 78 - - + 31 + 15 AS col0
----
205966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8951
SELECT - + COUNT( * ) + + COUNT( * ) + 8 * - CAST( + CAST( - 13 AS SIGNED ) AS SIGNED ) * COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-8951
SELECT - + COUNT ( * ) + + COUNT ( * ) + 8 * - CAST ( + CAST ( - 13 AS INTEGER ) AS INTEGER ) * COUNT ( * )
----
104

query I rowsort
SELECT - ( + 79 ) col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8953
SELECT DISTINCT - 3 DIV - CAST( - 56 AS SIGNED ) + 30 - 7 + - 85 * 67 AS col2
----
-5672

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT - 3 / - CAST ( - 56 AS INTEGER ) + 30 - 7 + - 85 * 67 AS col2
----
-5672

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT ALL - 68 DIV - + 58 + 20 - 31 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL - 68 / - + 58 + 20 - 31 AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8955
SELECT ALL + 60 DIV + - 94 + + ( + + 70 ) + 48 col0
----
118

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + 60 / + - 94 + + ( + + 70 ) + 48 col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT + ( + MAX( + - 85 ) ) * + - MAX( 74 ) + - CASE 79 WHEN MIN( 73 ) / NULLIF ( + 7 + 16, 66 ) THEN NULL ELSE 47 + NULLIF ( 92, - COALESCE ( - 22, 77 * - ( 46 ) ) ) END
----
6151

skipif mysql # not compatible
query I rowsort label-8956
SELECT + ( + MAX ( + - 85 ) ) * + - MAX ( 74 ) + - CASE 79 WHEN MIN ( 73 ) / NULLIF ( + 7 + 16, 66 ) THEN NULL ELSE 47 + NULLIF ( 92, - COALESCE ( - 22, 77 * - ( 46 ) ) ) END
----
6151

query I rowsort
SELECT ALL 69 * - + 25
----
-1725

query I rowsort
SELECT ALL + - 39 col0
----
-39

query I rowsort
SELECT COALESCE ( 82, 43 ) AS col1
----
82

query I rowsort
SELECT DISTINCT + ( + 75 ) AS col2
----
75

query I rowsort
SELECT - 48 * 19
----
-912

query I rowsort
SELECT ( + + 17 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT 39 * - COUNT( * ) + + 97 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8963
SELECT 39 * - COUNT ( * ) + + 97 AS col0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8964
SELECT - COUNT( * ) DIV + 68 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8964
SELECT - COUNT ( * ) / + 68 * - COUNT ( * )
----
0

query I rowsort
SELECT - 12 * - 71 AS col2
----
852

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT - COUNT( * ) * - - 91 * - 23
----
2093

skipif mysql # not compatible
query I rowsort label-8966
SELECT - COUNT ( * ) * - - 91 * - 23
----
2093

query II rowsort
SELECT ALL + 40 * ( 51 ) AS col0, + 68 AS col0
----
2040
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8968
SELECT ALL + CAST( 97 AS SIGNED ) * - 75 + - 28 + + + 17 + + 53 * - 2 - + CASE + 59 WHEN COUNT( * ) THEN NULL WHEN - 54 THEN ( COALESCE ( + 45, - 28 ) ) * 98 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + CAST ( 97 AS INTEGER ) * - 75 + - 28 + + + 17 + + 53 * - 2 - + CASE + 59 WHEN COUNT ( * ) THEN NULL WHEN - 54 THEN ( COALESCE ( + 45, - 28 ) ) * 98 END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + 66, + 64 * - + 60 + + ( 56 ) ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL - ( - - 41 ) * + CASE + COUNT( * ) WHEN + 83 THEN - 68 WHEN + NULLIF ( 13, CASE 81 WHEN + 88 * 16 THEN NULL WHEN ( - AVG ( ALL - ( 46 ) ) ) THEN NULL WHEN + COUNT( * ) THEN NULL ELSE 24 END * 49 ) / COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL - ( - - 41 ) * + CASE + COUNT ( * ) WHEN + 83 THEN - 68 WHEN + NULLIF ( 13, CASE 81 WHEN + 88 * 16 THEN NULL WHEN ( - AVG ( ALL - ( 46 ) ) ) THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE 24 END * 49 ) / COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( - 62 ) * + 73 * + + ( - - 42 ) col0
----
-190092

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT - 22 * - COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8972
SELECT - 22 * - COUNT ( * ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8973
SELECT + COALESCE ( 9, + CAST( - 34 AS SIGNED ) * - 27 + MAX( ALL 29 ) ) + 72 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8973
SELECT + COALESCE ( 9, + CAST ( - 34 AS INTEGER ) * - 27 + MAX ( ALL 29 ) ) + 72 AS col0
----
81

query I rowsort
SELECT ALL - 77 + 0 + - 41
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-8975
SELECT + COUNT( * ) * + 88 + 86, - 56 AS col2
----
174
-56

skipif mysql # not compatible
query II rowsort label-8975
SELECT + COUNT ( * ) * + 88 + 86, - 56 AS col2
----
174
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8976
SELECT - COUNT( - 97 ) * - + 83, 36 DIV 15 + - NULLIF ( 30, 48 * COALESCE ( + ( + COUNT( 99 ) ), 17, 60 ) ) * 80 AS col2
----
83
-2398

skipif mysql # not compatible
query II rowsort label-8976
SELECT - COUNT ( - 97 ) * - + 83, 36 / 15 + - NULLIF ( 30, 48 * COALESCE ( + ( + COUNT ( 99 ) ), 17, 60 ) ) * 80 AS col2
----
83
-2398

query I rowsort
SELECT ALL - 77 * 28 + - + NULLIF ( + 65, 85 / + 47 ) + 76
----
-2145

query I rowsort
SELECT ALL 98 + - 56
----
42

query I rowsort
SELECT ALL - 8 + - 58
----
-66

query I rowsort
SELECT - - COALESCE ( ( + + 47 ), + 2 )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT - 81 DIV - 24 + - 3
----
0

skipif mysql # not compatible
query I rowsort label-8981
SELECT - 81 / - 24 + - 3
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8982
SELECT ALL + COUNT( * ) + COALESCE ( + CAST( NULL AS SIGNED ), ( - NULLIF ( + 88, + 52 ) ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL + COUNT ( * ) + COALESCE ( + CAST ( NULL AS INTEGER ), ( - NULLIF ( + 88, + 52 ) ) ) AS col0
----
-87

query I rowsort
SELECT ALL + 16 * 48
----
768

query I rowsort
SELECT - ( + 61 ) AS col2
----
-61

query I rowsort
SELECT ALL ( - 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8986
SELECT + 48 DIV + + COALESCE ( - - COUNT( * ), - + 95 + + 65 * + ( + AVG ( ALL + 89 ) * COUNT( * ) ), 12 )
----
48

skipif mysql # not compatible
query I rowsort label-8986
SELECT + 48 / + + COALESCE ( - - COUNT ( * ), - + 95 + + 65 * + ( + AVG ( ALL + 89 ) * COUNT ( * ) ), 12 )
----
48

query I rowsort
SELECT 41 * + 27 * 17 col0
----
18819

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT DISTINCT MAX( DISTINCT + 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT MAX ( DISTINCT + 5 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL COUNT( * ) + + 85 * 9 * - - 65 * 51
----
2535976

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL COUNT ( * ) + + 85 * 9 * - - 65 * 51
----
2535976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT - CAST( 93 AS SIGNED ) - + + 67 * + 0
----
-93

skipif mysql # not compatible
query I rowsort label-8990
SELECT - CAST ( 93 AS INTEGER ) - + + 67 * + 0
----
-93

query II rowsort
SELECT ALL - - 45, - 64 AS col1
----
45
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-8992
SELECT ALL + 0 DIV - 32 * - - 79 AS col2, 42 AS col2
----
0
42

skipif mysql # not compatible
query II rowsort label-8992
SELECT ALL + 0 / - 32 * - - 79 AS col2, 42 AS col2
----
0
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8993
SELECT ALL - - COUNT( * ), - CASE 39 WHEN + - COALESCE ( + - CAST( NULL AS DECIMAL ), + MIN( DISTINCT 96 ) * - 3 + - CAST( NULL AS SIGNED ) ) * 50 THEN NULL WHEN 64 THEN + 36 ELSE NULL END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8993
SELECT ALL - - COUNT ( * ), - CASE 39 WHEN + - COALESCE ( + - CAST ( NULL AS REAL ), + MIN ( DISTINCT 96 ) * - 3 + - CAST ( NULL AS INTEGER ) ) * 50 THEN NULL WHEN 64 THEN + 36 ELSE NULL END AS col1
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8994
SELECT - + COUNT( * ) DIV - + 67 + 38 col1, + 41 * + - 55 AS col1
----
38
-2255

skipif mysql # not compatible
query II rowsort label-8994
SELECT - + COUNT ( * ) / - + 67 + 38 col1, + 41 * + - 55 AS col1
----
38
-2255

query I rowsort
SELECT DISTINCT + NULLIF ( - 62, - 24 ) * + 89 + 34 - + 11 AS col2
----
-5495

query I rowsort
SELECT ALL + 51 - - - 70 AS col0
----
-19

query I rowsort
SELECT + ( - - 2 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8998
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, + 6 * + + 79 AS col2, 99
----
NULL
474
99

skipif mysql # not compatible
query III rowsort label-8998
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + 6 * + + 79 AS col2, 99
----
NULL
474
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8999
SELECT + + CAST( NULL AS SIGNED ) * + 63 / 68 + + COUNT( * ) + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT + + CAST ( NULL AS INTEGER ) * + 63 / 68 + + COUNT ( * ) + - 70
----
NULL

query I rowsort
SELECT ( 18 ) - - 10 AS col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9001
SELECT ALL COALESCE ( + - 67, + 31 * - 9, + 74 DIV - + 24 + - 88 * 0 - - SUM( DISTINCT + ( + 27 ) ) ) * 6
----
-402

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL COALESCE ( + - 67, + 31 * - 9, + 74 / - + 24 + - 88 * 0 - - SUM ( DISTINCT + ( + 27 ) ) ) * 6
----
-402

query II rowsort
SELECT + 76 AS col0, 68
----
76
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9003
SELECT 89 DIV + 98 + + 70 + - - 35
----
105

skipif mysql # not compatible
query I rowsort label-9003
SELECT 89 / + 98 + + 70 + - - 35
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9004
SELECT 53 * + 28 - + CASE - - 40 WHEN - CAST( + COUNT( DISTINCT - 47 ) AS SIGNED ) * 54 + + 74 / NULLIF ( - 76 + - 36 * 78, ( + 87 ) ) THEN 21 END * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT 53 * + 28 - + CASE - - 40 WHEN - CAST ( + COUNT ( DISTINCT - 47 ) AS INTEGER ) * 54 + + 74 / NULLIF ( - 76 + - 36 * 78, ( + 87 ) ) THEN 21 END * 95
----
NULL

query I rowsort
SELECT ALL ( - 63 ) * - 61
----
3843

query I rowsort
SELECT ( - + 88 ) * 62
----
-5456

query I rowsort
SELECT 54 * + ( - 90 ) AS col2
----
-4860

query II rowsort
SELECT DISTINCT - 57 AS col2, - CASE - - 55 WHEN - 14 THEN + + 87 END
----
-57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT COUNT( * ) + MIN( + 29 ) * + 57 + - 65 AS col2
----
1589

skipif mysql # not compatible
query I rowsort label-9009
SELECT COUNT ( * ) + MIN ( + 29 ) * + 57 + - 65 AS col2
----
1589

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT ALL + 8 DIV - ( 88 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL + 8 / - ( 88 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9011
SELECT ALL - COUNT( * ), + 84 + - + COUNT( * ) col2
----
-1
83

skipif mysql # not compatible
query II rowsort label-9011
SELECT ALL - COUNT ( * ), + 84 + - + COUNT ( * ) col2
----
-1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT COUNT( * ) + - 80 col1
----
-79

skipif mysql # not compatible
query I rowsort label-9012
SELECT COUNT ( * ) + - 80 col1
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT ALL - 18 DIV + + 37
----
0

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL - 18 / + + 37
----
0

query I rowsort
SELECT 34 * 11 AS col1
----
374

query I rowsort
SELECT 69 * + CASE WHEN NOT 17 NOT IN ( - 7 ) THEN - 37 * 52 + + 84 * 98 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9016
SELECT ALL + 46 + + - 66 + - 97 * 77 - - MIN( - + CAST( NULL AS DECIMAL ) ) * ( - 36 + 14 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL + 46 + + - 66 + - 97 * 77 - - MIN ( - + CAST ( NULL AS REAL ) ) * ( - 36 + 14 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ( - COUNT( * ) ) - - 20 + - 85 * - 80 * - 62 + + 54
----
-421527

skipif mysql # not compatible
query I rowsort label-9017
SELECT ( - COUNT ( * ) ) - - 20 + - 85 * - 80 * - 62 + + 54
----
-421527

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT ALL 80 DIV 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL 80 / 65 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT ( + ( + - 80 ) ) + - + MIN( DISTINCT + 47 ) AS col2
----
-127

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT ( + ( + - 80 ) ) + - + MIN ( DISTINCT + 47 ) AS col2
----
-127

query I rowsort
SELECT DISTINCT - 89 + + 11 + - 98
----
-176

query II rowsort
SELECT DISTINCT - 78 * 69 AS col0, 34
----
-5382
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL - + 11 + + - 6 + - COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL - + 11 + + - 6 + - COUNT ( * ) AS col0
----
-18

query I rowsort
SELECT 30 - ( + 23 ) * - 22 col0
----
536

query I rowsort
SELECT - 19 + - - 62
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9025
SELECT 77 - - CAST( NULL AS SIGNED ) / + 55 * - 66 * COUNT( DISTINCT - 83 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT 77 - - CAST ( NULL AS INTEGER ) / + 55 * - 66 * COUNT ( DISTINCT - 83 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL - + ( - - COUNT( * ) ) + - ( - 82 )
----
81

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL - + ( - - COUNT ( * ) ) + - ( - 82 )
----
81

query I rowsort
SELECT 69 + 8
----
77

query I rowsort
SELECT ALL + 21 - 47 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT COUNT( * ) * MAX( - 41 ) * - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9029
SELECT COUNT ( * ) * MAX ( - 41 ) * - COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT DISTINCT + - 6 * + COALESCE ( - COUNT( * ), - 95 - - 21 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT + - 6 * + COALESCE ( - COUNT ( * ), - 95 - - 21 ) AS col0
----
6

query II rowsort
SELECT DISTINCT 96, 15 AS col2
----
96
15

query II rowsort
SELECT ALL - 71 * - + 12, 41 * - 23 AS col1
----
852
-943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9033
SELECT ALL - + COUNT( * ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL - + COUNT ( * ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT 79 * - COUNT( * ) * - + 80 * - 34
----
-214880

skipif mysql # not compatible
query I rowsort label-9034
SELECT 79 * - COUNT ( * ) * - + 80 * - 34
----
-214880

query I rowsort
SELECT + 95 + + CASE - + 19 WHEN + + 87 THEN 66 + - + 22 END * 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL - MIN( DISTINCT 42 ) - + 95 col1
----
-137

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL - MIN ( DISTINCT 42 ) - + 95 col1
----
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-9037
SELECT ALL - 69 AS col1, COUNT( * ) * - 85 AS col1
----
-69
-85

skipif mysql # not compatible
query II rowsort label-9037
SELECT ALL - 69 AS col1, COUNT ( * ) * - 85 AS col1
----
-69
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL - + 64 * + 76 + + MAX( ALL + - 33 ) * + ( - 14 ) * + 55
----
20546

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL - + 64 * + 76 + + MAX ( ALL + - 33 ) * + ( - 14 ) * + 55
----
20546

query I rowsort
SELECT 58 * + - 66 AS col0
----
-3828

query I rowsort
SELECT + 27 * - 84 AS col0
----
-2268

query I rowsort
SELECT 17 + + 49 + - 52 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT SUM( - 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9042
SELECT SUM ( - 10 ) AS col0
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-9043
SELECT ALL 0 DIV 25 AS col1, 84 - ( + + 39 )
----
0
45

skipif mysql # not compatible
query II rowsort label-9043
SELECT ALL 0 / 25 AS col1, 84 - ( + + 39 )
----
0
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT 76 * - 54 + COUNT( * ) AS col1
----
-4103

skipif mysql # not compatible
query I rowsort label-9044
SELECT 76 * - 54 + COUNT ( * ) AS col1
----
-4103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT ALL - CAST( - + 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL - CAST ( - + 87 AS INTEGER )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9046
SELECT ALL - COUNT( * ) DIV - 42 * - - CAST( - ( + + 98 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL - COUNT ( * ) / - 42 * - - CAST ( - ( + + 98 ) AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT 44 DIV - + 41
----
-1

skipif mysql # not compatible
query I rowsort label-9047
SELECT 44 / - + 41
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL COALESCE ( + - MIN( ALL + 62 ), - 46 ) * 70 + - 15 * 94 * CASE + 7 WHEN + 72 THEN + 87 / CASE - COUNT( * ) WHEN + 31 THEN ( - 39 ) END END + - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL COALESCE ( + - MIN ( ALL + 62 ), - 46 ) * 70 + - 15 * 94 * CASE + 7 WHEN + 72 THEN + 87 / CASE - COUNT ( * ) WHEN + 31 THEN ( - 39 ) END END + - 43 AS col2
----
NULL

query I rowsort
SELECT ALL 29 * 80 * + 18 AS col2
----
41760

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT MIN( - - 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9050
SELECT MIN ( - - 52 ) AS col2
----
52

query I rowsort
SELECT ALL 93 * 8
----
744

query II rowsort
SELECT 50 + - + 94 AS col1, 55 AS col1
----
-44
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9053
SELECT + MIN( ALL - - 74 ) AS col0, 99 * - 51 AS col1
----
74
-5049

skipif mysql # not compatible
query II rowsort label-9053
SELECT + MIN ( ALL - - 74 ) AS col0, 99 * - 51 AS col1
----
74
-5049

onlyif mysql # aggregate syntax: 
query II rowsort label-9054
SELECT ALL 86 + + - 54 * + MAX( ALL 78 ) * 8 AS col2, + 58 + - 63 + + 61
----
-33610
56

skipif mysql # not compatible
query II rowsort label-9054
SELECT ALL 86 + + - 54 * + MAX ( ALL 78 ) * 8 AS col2, + 58 + - 63 + + 61
----
-33610
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT + 68 DIV + + ( 99 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9055
SELECT + 68 / + + ( 99 ) AS col1
----
0

query I rowsort
SELECT ALL 74 + + + 2 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT + COUNT( DISTINCT + - 12 ) + 39
----
40

skipif mysql # not compatible
query I rowsort label-9057
SELECT + COUNT ( DISTINCT + - 12 ) + 39
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-9058
SELECT + 3 DIV 28 AS col2, - 88 * - - 7 * + + 9 AS col1
----
0
-5544

skipif mysql # not compatible
query II rowsort label-9058
SELECT + 3 / 28 AS col2, - 88 * - - 7 * + + 9 AS col1
----
0
-5544

onlyif mysql # DIV for integer division: 
query I rowsort label-9059
SELECT DISTINCT - 83 DIV - ( + - ( 68 ) ) + + 87 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT - 83 / - ( + - ( 68 ) ) + + 87 AS col1
----
86

query I rowsort
SELECT - ( - + 74 ) AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9061
SELECT CAST( - - MAX( DISTINCT - + 47 ) AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-9061
SELECT CAST ( - - MAX ( DISTINCT - + 47 ) AS INTEGER )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT + - 45 DIV - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9062
SELECT + - 45 / - 90 AS col1
----
0

query I rowsort
SELECT - - 39 * + COALESCE ( - + 28, + 45 ) AS col1
----
-1092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9064
SELECT DISTINCT - 33 * - ( - 14 ) * - - 83 + - ( - 32 ) + - 72 - COUNT( * ) DIV 88 AS col0
----
-38386

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT - 33 * - ( - 14 ) * - - 83 + - ( - 32 ) + - 72 - COUNT ( * ) / 88 AS col0
----
-38386

onlyif mysql # DIV for integer division: 
query II rowsort label-9065
SELECT ALL + 84 - + - 36 AS col1, - 57 DIV - - 35 AS col0
----
120
-1

skipif mysql # not compatible
query II rowsort label-9065
SELECT ALL + 84 - + - 36 AS col1, - 57 / - - 35 AS col0
----
120
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9066
SELECT - 75 DIV + SUM( - 92 ) + + 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9066
SELECT - 75 / + SUM ( - 92 ) + + 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT COALESCE ( - SUM( + + 98 ), - CASE + + MIN( - 16 ) WHEN 37 THEN - 31 + 44 ELSE NULL END * + 35 - + 35 ) * + 46
----
-4508

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT COALESCE ( - SUM ( + + 98 ), - CASE + + MIN ( - 16 ) WHEN 37 THEN - 31 + 44 ELSE NULL END * + 35 - + 35 ) * + 46
----
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT + COUNT( * ) + - MAX( 26 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-9068
SELECT + COUNT ( * ) + - MAX ( 26 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT - COUNT( * ) + - - 26 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9069
SELECT - COUNT ( * ) + - - 26 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT - COUNT( - 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-9070
SELECT - COUNT ( - 59 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9071
SELECT - - 37 * + + 65 * - - 17 + COUNT( * ) * - 80 + 82 + - 4 + - MIN( DISTINCT 99 - 87 DIV + 1 ) AS col2
----
40871

skipif mysql # not compatible
query I rowsort label-9071
SELECT - - 37 * + + 65 * - - 17 + COUNT ( * ) * - 80 + 82 + - 4 + - MIN ( DISTINCT 99 - 87 / + 1 ) AS col2
----
40871

query I rowsort
SELECT - + 68 - - - 9
----
-77

query I rowsort
SELECT ALL - COALESCE ( + 85, + 29 ) * 3 AS col1
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT - 90 DIV - - 45 + + + 22
----
20

skipif mysql # not compatible
query I rowsort label-9074
SELECT - 90 / - - 45 + + + 22
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9075
SELECT ALL + 8 AS col2, + 30 + - COUNT( * ) + + 80 + - - 67 + - 34 + - 69 + CASE ( 34 ) WHEN + 1 + - COUNT( * ) THEN NULL WHEN + COUNT( * ) THEN + 20 * 82 END - 91 / 12
----
8
NULL

skipif mysql # not compatible
query II rowsort label-9075
SELECT ALL + 8 AS col2, + 30 + - COUNT ( * ) + + 80 + - - 67 + - 34 + - 69 + CASE ( 34 ) WHEN + 1 + - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) THEN + 20 * 82 END - 91 / 12
----
8
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9076
SELECT ALL + COUNT( * ) * + - COUNT( * ) + - 36 AS col2, 85 * + 34 AS col0
----
-37
2890

skipif mysql # not compatible
query II rowsort label-9076
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) + - 36 AS col2, 85 * + 34 AS col0
----
-37
2890

query I rowsort
SELECT - 46 * + 59 AS col0
----
-2714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT - 27 * + - 28 * + 74 + CASE - 23 WHEN + + CAST( NULL AS SIGNED ) * 11 + + 7 THEN 72 ELSE NULL END + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9078
SELECT - 27 * + - 28 * + 74 + CASE - 23 WHEN + + CAST ( NULL AS INTEGER ) * 11 + + 7 THEN 72 ELSE NULL END + 24
----
NULL

query II rowsort
SELECT DISTINCT 90 * + 44 + 42, + 87 AS col1
----
4002
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT + CASE - - AVG ( DISTINCT + 73 ) WHEN - 32 * + 36 * - NULLIF ( 46, 38 / 39 - + 36 ) * + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE 39 + - 75 END AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9080
SELECT + CASE - - AVG ( DISTINCT + 73 ) WHEN - 32 * + 36 * - NULLIF ( 46, 38 / 39 - + 36 ) * + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 39 + - 75 END AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT NULLIF ( 48, COUNT( * ) + - 79 + + 88 )
----
48

skipif mysql # not compatible
query I rowsort label-9081
SELECT NULLIF ( 48, COUNT ( * ) + - 79 + + 88 )
----
48

query I rowsort
SELECT - 92 * - 72
----
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT DISTINCT + 67 * + + 62 * + 13 + - - COUNT( * )
----
54003

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT + 67 * + + 62 * + 13 + - - COUNT ( * )
----
54003

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT CASE + 18 WHEN - 69 THEN - COUNT( * ) + - 0 WHEN + 88 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT CASE + 18 WHEN - 69 THEN - COUNT ( * ) + - 0 WHEN + 88 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT DISTINCT COUNT( * ) * + 3 + - 16 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT COUNT ( * ) * + 3 + - 16 AS col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9086
SELECT DISTINCT + 73 DIV + - 5
----
-14

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT + 73 / + - 5
----
-14

query I rowsort
SELECT + ( 62 ) col2
----
62

query I rowsort
SELECT + 10 + 1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9089
SELECT - + 62, NULLIF ( + 48, CASE + 86 WHEN - - CAST( NULL AS SIGNED ) THEN + - COALESCE ( 23, + 79 * + 86, 89 * 33 ) ELSE 81 * - 66 END ) AS col1
----
-62
48

skipif mysql # not compatible
query II rowsort label-9089
SELECT - + 62, NULLIF ( + 48, CASE + 86 WHEN - - CAST ( NULL AS INTEGER ) THEN + - COALESCE ( 23, + 79 * + 86, 89 * 33 ) ELSE 81 * - 66 END ) AS col1
----
-62
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9090
SELECT - + COUNT( * ) col0, 18 AS col1
----
-1
18

skipif mysql # not compatible
query II rowsort label-9090
SELECT - + COUNT ( * ) col0, 18 AS col1
----
-1
18

query I rowsort
SELECT + + 15 * + 50 * + 79
----
59250

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT + 37 + - MIN( - + 14 ) + + 46 * - 57 AS col0
----
-2571

skipif mysql # not compatible
query I rowsort label-9092
SELECT + 37 + - MIN ( - + 14 ) + + 46 * - 57 AS col0
----
-2571

query II rowsort
SELECT ALL 41 AS col2, + 45 AS col1
----
41
45

query I rowsort
SELECT + CASE + 18 WHEN + 4 * - - 87 + 23 - - 32 / + CASE + - 49 WHEN - 6 + + 12 THEN 93 + - 76 END * - 23 THEN + 91 + - NULLIF ( - 72, - 22 ) END + + 65 * COALESCE ( ( + 70 ), 70 / - AVG ( 42 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT COUNT( 98 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9095
SELECT COUNT ( 98 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9096
SELECT + - COALESCE ( COUNT( * ), - 64 + - 79 + COALESCE ( - 41, + 55 * - CAST( NULL AS SIGNED ) ), + 41 * 18 - 75, NULLIF ( - 64, + COUNT( * ) + + 83 ) ) - + 72 * + 67
----
-4825

skipif mysql # not compatible
query I rowsort label-9096
SELECT + - COALESCE ( COUNT ( * ), - 64 + - 79 + COALESCE ( - 41, + 55 * - CAST ( NULL AS INTEGER ) ), + 41 * 18 - 75, NULLIF ( - 64, + COUNT ( * ) + + 83 ) ) - + 72 * + 67
----
-4825

query II rowsort
SELECT 31 col2, 40
----
31
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT ALL MAX( - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL MAX ( - 48 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT + + 63 + - 40 * - 34 * - CAST( - 62 AS SIGNED ) AS col2
----
84383

skipif mysql # not compatible
query I rowsort label-9099
SELECT + + 63 + - 40 * - 34 * - CAST ( - 62 AS INTEGER ) AS col2
----
84383

onlyif mysql # aggregate syntax: 
query II rowsort label-9100
SELECT + + 58 + + 32 * - COUNT( * ) col1, 55 - - 87 AS col2
----
26
142

skipif mysql # not compatible
query II rowsort label-9100
SELECT + + 58 + + 32 * - COUNT ( * ) col1, 55 - - 87 AS col2
----
26
142

query I rowsort
SELECT ALL ( - 73 ) AS col2
----
-73

query I rowsort
SELECT - COALESCE ( + 61, - 75 )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9103
SELECT - - 83 + + 96 + MIN( - 64 ) - 10 * - 47 DIV 74 DIV - 65 DIV 62
----
115

skipif mysql # not compatible
query I rowsort label-9103
SELECT - - 83 + + 96 + MIN ( - 64 ) - 10 * - 47 / 74 / - 65 / 62
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9104
SELECT ALL + ( COUNT( * ) ) DIV - - ( - ( - 95 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + ( COUNT ( * ) ) / - - ( - ( - 95 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9105
SELECT 0 AS col2, 79 + + ( + COUNT( * ) )
----
0
80

skipif mysql # not compatible
query II rowsort label-9105
SELECT 0 AS col2, 79 + + ( + COUNT ( * ) )
----
0
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9106
SELECT - ( + - CASE CAST( NULL AS SIGNED ) WHEN - 44 * + ( 36 ) THEN 15 ELSE NULL END ) / + 7 + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT - ( + - CASE CAST ( NULL AS INTEGER ) WHEN - 44 * + ( 36 ) THEN 15 ELSE NULL END ) / + 7 + - 70
----
NULL

query II rowsort
SELECT ALL 43 col1, + 27
----
43
27

query I rowsort
SELECT ALL + + 97 + + 14
----
111

query I rowsort
SELECT ALL ( + 30 ) * + 50 + 44 AS col1
----
1544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9110
SELECT + 83 / + 87 * + ( - + 85 ) * - ( + - 25 ) + - CASE - + 41 WHEN - 3 THEN - SUM( ALL - ( - 36 ) ) * + 49 + CAST( 12 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT + 83 / + 87 * + ( - + 85 ) * - ( + - 25 ) + - CASE - + 41 WHEN - 3 THEN - SUM ( ALL - ( - 36 ) ) * + 49 + CAST ( 12 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT - 41 + - 81 + CASE + 74 WHEN + 88 THEN - 77 WHEN + + NULLIF ( + 16, + COUNT( * ) - 35 ) * - COUNT( * ) + - 76 THEN NULL END * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9111
SELECT - 41 + - 81 + CASE + 74 WHEN + 88 THEN - 77 WHEN + + NULLIF ( + 16, + COUNT ( * ) - 35 ) * - COUNT ( * ) + - 76 THEN NULL END * - 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT DISTINCT CAST( - ( 50 ) AS SIGNED ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT CAST ( - ( 50 ) AS INTEGER ) AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9113
SELECT - COUNT( * ) DIV - COUNT( * ), + 54 + - 78 - - COUNT( * ) + CASE 52 WHEN + - COALESCE ( + - 24, - 39 * 60 + AVG ( 13 + 59 ) * CAST( NULL AS SIGNED ) ) THEN 10 WHEN + CASE 90 WHEN 68 * + ( 35 ) - - 68 THEN + 57 END THEN - MAX( ( + 26 ) ) * + 71 END * COALESCE ( 53 * - 88 + 21, CASE + COUNT( * ) WHEN - 48 * - COUNT( + 15 * - 51 ) THEN 25 DIV + MAX( + 40 ) ELSE NULL END, + 65 + - MIN( DISTINCT + 50 + + 84 * 48 ), - CASE + 87 WHEN 89 * 5 THEN NULL WHEN 2 + CAST( + 42 + + ( + NULLIF ( COUNT( * ), 77 + 96 ) ) * COUNT( ALL 40 * 66 ) AS SIGNED ) THEN + 43 ELSE CASE - COUNT( * ) WHEN + 91 * 70 THEN NULL WHEN 8 THEN NULL WHEN ( - 62 ) * - 35 THEN ( - CAST( NULL AS SIGNED ) ) + 58 END * - 58 END ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9113
SELECT - COUNT ( * ) / - COUNT ( * ), + 54 + - 78 - - COUNT ( * ) + CASE 52 WHEN + - COALESCE ( + - 24, - 39 * 60 + AVG ( 13 + 59 ) * CAST ( NULL AS INTEGER ) ) THEN 10 WHEN + CASE 90 WHEN 68 * + ( 35 ) - - 68 THEN + 57 END THEN - MAX ( ( + 26 ) ) * + 71 END * COALESCE ( 53 * - 88 + 21, CASE + COUNT ( * ) WHEN - 48 * - COUNT ( + 15 * - 51 ) THEN 25 / + MAX ( + 40 ) ELSE NULL END, + 65 + - MIN ( DISTINCT + 50 + + 84 * 48 ), - CASE + 87 WHEN 89 * 5 THEN NULL WHEN 2 + CAST ( + 42 + + ( + NULLIF ( COUNT ( * ), 77 + 96 ) ) * COUNT ( ALL 40 * 66 ) AS INTEGER ) THEN + 43 ELSE CASE - COUNT ( * ) WHEN + 91 * 70 THEN NULL WHEN 8 THEN NULL WHEN ( - 62 ) * - 35 THEN ( - CAST ( NULL AS INTEGER ) ) + 58 END * - 58 END ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT + 47 + CASE + 58 WHEN - COUNT( * ) THEN - SUM( + + NULLIF ( + - 75, 93 / - 91 + - 74 ) ) * 56 WHEN + ( - COUNT( DISTINCT + 91 ) ) THEN - 94 END * + 61 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT + 47 + CASE + 58 WHEN - COUNT ( * ) THEN - SUM ( + + NULLIF ( + - 75, 93 / - 91 + - 74 ) ) * 56 WHEN + ( - COUNT ( DISTINCT + 91 ) ) THEN - 94 END * + 61 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT + 5 * + - 80 * COUNT( * )
----
-400

skipif mysql # not compatible
query I rowsort label-9115
SELECT + 5 * + - 80 * COUNT ( * )
----
-400

query I rowsort
SELECT - 29 * - + 66
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT - ( ( - ( + 56 ) ) ) + - + COUNT( * ) * + MIN( + 12 )
----
44

skipif mysql # not compatible
query I rowsort label-9117
SELECT - ( ( - ( + 56 ) ) ) + - + COUNT ( * ) * + MIN ( + 12 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9118
SELECT ALL 23 DIV - ( 48 ) + - ( 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL 23 / - ( 48 ) + - ( 77 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9119
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( + 42 ) + - 24 AS col2, 40 * - 45
----
NULL
-1800

skipif mysql # not compatible
query II rowsort label-9119
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( + 42 ) + - 24 AS col2, 40 * - 45
----
NULL
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT DISTINCT + 78 + + COUNT( * ) col2
----
79

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT + 78 + + COUNT ( * ) col2
----
79

query I rowsort
SELECT CASE - 38 WHEN + 89 THEN 54 * + 88 END / - + 1 + - 38 * + 26 * + 6
----
NULL

query II rowsort
SELECT 72 * 56 * + - 31 * + + 13 AS col1, + 51 AS col1
----
-1624896
51

query I rowsort
SELECT ALL + 87 * - - 58
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT DISTINCT - 33 - + NULLIF ( 37, - ( - ( - SUM( + 29 ) ) ) * - ( + 90 ) ) + 4
----
-66

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT - 33 - + NULLIF ( 37, - ( - ( - SUM ( + 29 ) ) ) * - ( + 90 ) ) + 4
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9125
SELECT 96 DIV 10 * + - 57 * - 64 - 4
----
32828

skipif mysql # not compatible
query I rowsort label-9125
SELECT 96 / 10 * + - 57 * - 64 - 4
----
32828

query II rowsort
SELECT DISTINCT + 69 * - 78 AS col0, 87 AS col1
----
-5382
87

query I rowsort
SELECT DISTINCT - 15 - - 62 AS col2
----
47

query I rowsort
SELECT ALL + 60 * - - 63 col2
----
3780

query II rowsort
SELECT 68 * + 94, + 22 AS col1
----
6392
22

query I rowsort
SELECT - 3 * + 64 + + 21
----
-171

query I rowsort
SELECT ALL - + ( + 66 ) AS col0
----
-66

query I rowsort
SELECT + ( + ( 74 ) )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9133
SELECT 75 + - 35 + + + 99 * + 46 AS col0, - COUNT( * )
----
4594
-1

skipif mysql # not compatible
query II rowsort label-9133
SELECT 75 + - 35 + + + 99 * + 46 AS col0, - COUNT ( * )
----
4594
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9134
SELECT DISTINCT - 97 - 7 DIV 85 + 7 * + 67 * - 73 AS col1
----
-34334

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT - 97 - 7 / 85 + 7 * + 67 * - 73 AS col1
----
-34334

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9135
SELECT DISTINCT + ( ( + CASE - - 37 WHEN ( - + COUNT( * ) ) THEN + + CAST( NULL AS DECIMAL ) * + 59 - 61 + - SUM( 54 ) * 81 WHEN + ( - 80 ) + + COUNT( * ) THEN NULL END ) ) / + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT + ( ( + CASE - - 37 WHEN ( - + COUNT ( * ) ) THEN + + CAST ( NULL AS REAL ) * + 59 - 61 + - SUM ( 54 ) * 81 WHEN + ( - 80 ) + + COUNT ( * ) THEN NULL END ) ) / + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL COUNT( 36 ) * - 71 * + 75 + - 13 AS col0
----
-5338

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL COUNT ( 36 ) * - 71 * + 75 + - 13 AS col0
----
-5338

onlyif mysql # aggregate syntax: 
query II rowsort label-9137
SELECT + 48 * - + 14 AS col0, COUNT( * ) * + 14
----
-672
14

skipif mysql # not compatible
query II rowsort label-9137
SELECT + 48 * - + 14 AS col0, COUNT ( * ) * + 14
----
-672
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9138
SELECT ALL + - 33 DIV + 68 + - NULLIF ( - 56, + + COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL + - 33 / + 68 + - NULLIF ( - 56, + + COUNT ( * ) )
----
56

query I rowsort
SELECT + 57 + + 40
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-9140
SELECT + 62 * 77 col2, - 23 DIV + 46 * + 52 col1
----
4774
0

skipif mysql # not compatible
query II rowsort label-9140
SELECT + 62 * 77 col2, - 23 / + 46 * + 52 col1
----
4774
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT + COUNT( + + 19 ) + - - 81
----
82

skipif mysql # not compatible
query I rowsort label-9141
SELECT + COUNT ( + + 19 ) + - - 81
----
82

query I rowsort
SELECT ALL + ( + - 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT + 28 * COUNT( * ) + - 47
----
-19

skipif mysql # not compatible
query I rowsort label-9143
SELECT + 28 * COUNT ( * ) + - 47
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL 81 + - + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL 81 + - + COUNT ( * )
----
80

query II rowsort
SELECT DISTINCT - ( - + 43 ) + 72 + 10 AS col0, 60 AS col0
----
125
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT ALL + COUNT( - + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL + COUNT ( - + 72 )
----
1

query I rowsort
SELECT DISTINCT + 30 + - - 87 + - 62 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT ALL + 66 + - + 33 - - + 45 * - 43 * + 66 + + SUM( + - 74 ) AS col2
----
-127751

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL + 66 + - + 33 - - + 45 * - 43 * + 66 + + SUM ( + - 74 ) AS col2
----
-127751

query I rowsort
SELECT DISTINCT 71 + 56
----
127

query I rowsort
SELECT 18 + + + 95 AS col0
----
113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9151
SELECT NULLIF ( 7, + + AVG ( NULLIF ( CAST( NULL AS DECIMAL ), + 93 ) ) + - 91 ) + - 88 + 15 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9151
SELECT NULLIF ( 7, + + AVG ( NULLIF ( CAST ( NULL AS REAL ), + 93 ) ) + - 91 ) + - 88 + 15 AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT CAST( + 31 AS SIGNED ) * - 95
----
-2945

skipif mysql # not compatible
query I rowsort label-9152
SELECT CAST ( + 31 AS INTEGER ) * - 95
----
-2945

query I rowsort
SELECT 37 + + + 0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT CAST( + + 10 AS SIGNED ) - - 69 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9154
SELECT CAST ( + + 10 AS INTEGER ) - - 69 AS col0
----
79

query I rowsort
SELECT ALL - 91 * - - 9 * + 64
----
-52416

query I rowsort
SELECT ALL 10 * 59
----
590

query I rowsort
SELECT 88 * 86
----
7568

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT - 99 * - 18 - - 68 + - COUNT( * ) * - + 87 AS col2
----
1937

skipif mysql # not compatible
query I rowsort label-9158
SELECT - 99 * - 18 - - 68 + - COUNT ( * ) * - + 87 AS col2
----
1937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9159
SELECT ( ( + 74 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT ( ( + 74 ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - + ( + + 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9161
SELECT + COUNT( * ) AS col2, NULLIF ( 13, + - 61 )
----
1
13

skipif mysql # not compatible
query II rowsort label-9161
SELECT + COUNT ( * ) AS col2, NULLIF ( 13, + - 61 )
----
1
13

query I rowsort
SELECT ALL + + CASE 96 WHEN 2 THEN + 69 / 29 WHEN - 61 THEN + CASE 49 WHEN + 90 THEN - 5 END END * + 11 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT + 19 * + 38 + - 20 DIV - 64 AS col1
----
722

skipif mysql # not compatible
query I rowsort label-9163
SELECT + 19 * + 38 + - 20 / - 64 AS col1
----
722

query I rowsort
SELECT ALL - + ( + - 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9165
SELECT + 26 AS col0, COALESCE ( + 45, + - COUNT( + - 5 ), 77 DIV - + SUM( + 45 ) ) + - - ( 15 )
----
26
60

skipif mysql # not compatible
query II rowsort label-9165
SELECT + 26 AS col0, COALESCE ( + 45, + - COUNT ( + - 5 ), 77 / - + SUM ( + 45 ) ) + - - ( 15 )
----
26
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9166
SELECT - 72 + - 59 + + COUNT( * ) DIV COUNT( * ) DIV 47 DIV 78
----
-131

skipif mysql # not compatible
query I rowsort label-9166
SELECT - 72 + - 59 + + COUNT ( * ) / COUNT ( * ) / 47 / 78
----
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT + 46 DIV 34 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9167
SELECT + 46 / 34 AS col0
----
1

query I rowsort
SELECT - 85 + + 73
----
-12

query I rowsort
SELECT - 55 * 73 - + 59 * + 93
----
-9502

query I rowsort
SELECT ALL + 11 * - - 43
----
473

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT NULLIF ( ( + NULLIF ( 10, + 32 + - 71 * - 63 ) ), - 3 * - - 51 + 37 / + 11 ) * COUNT( * ) + + 61
----
71

skipif mysql # not compatible
query I rowsort label-9171
SELECT NULLIF ( ( + NULLIF ( 10, + 32 + - 71 * - 63 ) ), - 3 * - - 51 + 37 / + 11 ) * COUNT ( * ) + + 61
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9172
SELECT CASE - 10 WHEN - CAST( NULL AS SIGNED ) THEN 25 END + COUNT( - + 57 ) * + + 5 * - COUNT( * ) + - - CASE + - 78 WHEN COALESCE ( MIN( - ( + 16 ) ), + 50 * + 51 + 42, - 68 * CAST( - 50 AS SIGNED ) + CAST( + COALESCE ( 10, 15 ) + + 75 AS SIGNED ) ) THEN NULL WHEN SUM( ALL - 69 ) * + 74 THEN NULL ELSE 56 * + 89 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT CASE - 10 WHEN - CAST ( NULL AS INTEGER ) THEN 25 END + COUNT ( - + 57 ) * + + 5 * - COUNT ( * ) + - - CASE + - 78 WHEN COALESCE ( MIN ( - ( + 16 ) ), + 50 * + 51 + 42, - 68 * CAST ( - 50 AS INTEGER ) + CAST ( + COALESCE ( 10, 15 ) + + 75 AS INTEGER ) ) THEN NULL WHEN SUM ( ALL - 69 ) * + 74 THEN NULL ELSE 56 * + 89 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9173
SELECT 38 DIV + - 18
----
-2

skipif mysql # not compatible
query I rowsort label-9173
SELECT 38 / + - 18
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL - AVG ( - 39 ) + - - 18 * + MAX( 59 ) * CASE - 14 WHEN - 86 THEN 24 / + 79 + - 47 / + MIN( + ( + 37 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL - AVG ( - 39 ) + - - 18 * + MAX ( 59 ) * CASE - 14 WHEN - 86 THEN 24 / + 79 + - 47 / + MIN ( + ( + 37 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT 56 * + + CASE - 1 WHEN + COUNT( * ) * - 93 * + 91 * 97 - 58 THEN NULL ELSE 66 END + 22 col2
----
3718

skipif mysql # not compatible
query I rowsort label-9175
SELECT 56 * + + CASE - 1 WHEN + COUNT ( * ) * - 93 * + 91 * 97 - 58 THEN NULL ELSE 66 END + 22 col2
----
3718

onlyif mysql # DIV for integer division: 
query I rowsort label-9176
SELECT ALL - ( - + 67 ) DIV + + 84
----
0

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL - ( - + 67 ) / + + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT 17 + COUNT( * ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9177
SELECT 17 + COUNT ( * ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL - 0 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - 0 + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9179
SELECT 10 AS col2, CAST( NULL AS SIGNED ) + - 54 AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-9179
SELECT 10 AS col2, CAST ( NULL AS INTEGER ) + - 54 AS col1
----
10
NULL

query I rowsort
SELECT - 1 + 92
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9181
SELECT 28 DIV 95 * + 53
----
0

skipif mysql # not compatible
query I rowsort label-9181
SELECT 28 / 95 * + 53
----
0

query I rowsort
SELECT 63 + 63 AS col2
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT ALL - 59 + + NULLIF ( 25, + CAST( NULL AS SIGNED ) / + 16 )
----
-34

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL - 59 + + NULLIF ( 25, + CAST ( NULL AS INTEGER ) / + 16 )
----
-34

query II rowsort
SELECT 75 AS col0, 76 * - 96
----
75
-7296

query I rowsort
SELECT - 76 + + + 41 * + 79 AS col1
----
3163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9186
SELECT ALL COALESCE ( - 82, 47 DIV COUNT( ALL 38 ) + COUNT( * ) + + - 10 * - - 36 * + 5 DIV - COUNT( + 4 ) * 46 + 12 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL COALESCE ( - 82, 47 / COUNT ( ALL 38 ) + COUNT ( * ) + + - 10 * - - 36 * + 5 / - COUNT ( + 4 ) * 46 + 12 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9187
SELECT DISTINCT + COUNT( * ) * - 12, - 66 AS col0
----
-12
-66

skipif mysql # not compatible
query II rowsort label-9187
SELECT DISTINCT + COUNT ( * ) * - 12, - 66 AS col0
----
-12
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT + CASE 1 WHEN + 31 * + - COUNT( * ) THEN 88 END + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT + CASE 1 WHEN + 31 * + - COUNT ( * ) THEN 88 END + + 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9189
SELECT DISTINCT + 87 * CAST( NULL AS SIGNED ) * - + 64 * COALESCE ( MAX( ALL + 22 ), + 68, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT + 87 * CAST ( NULL AS INTEGER ) * - + 64 * COALESCE ( MAX ( ALL + 22 ), + 68, + COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL 34 - + ( + 32 ) AS col0
----
2

query II rowsort
SELECT - 16 / CASE + 1 WHEN 5 + 62 THEN + - 39 END AS col1, 91 col2
----
NULL
91

query I rowsort
SELECT + 22 * - 19
----
-418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9193
SELECT + COUNT( * ) DIV 20 * - - 69 + - COUNT( - 36 ) + - - 15 + + ( - 83 ) * 63 col0
----
-5215

skipif mysql # not compatible
query I rowsort label-9193
SELECT + COUNT ( * ) / 20 * - - 69 + - COUNT ( - 36 ) + - - 15 + + ( - 83 ) * 63 col0
----
-5215

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT + CASE 44 WHEN - 80 + 46 THEN NULL WHEN - MIN( ALL - - 77 ) THEN + - 71 ELSE 54 END col2
----
54

skipif mysql # not compatible
query I rowsort label-9194
SELECT + CASE 44 WHEN - 80 + 46 THEN NULL WHEN - MIN ( ALL - - 77 ) THEN + - 71 ELSE 54 END col2
----
54

query II rowsort
SELECT + 92 * + 29 AS col0, + 42 AS col0
----
2668
42

query I rowsort
SELECT ALL 98 * - 96
----
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9197
SELECT + CASE WHEN ( NULL ) IS NULL THEN - + CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT + CASE WHEN ( NULL ) IS NULL THEN - + CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9198
SELECT ALL + 23 col1, + MAX( ( 70 ) )
----
23
70

skipif mysql # not compatible
query II rowsort label-9198
SELECT ALL + 23 col1, + MAX ( ( 70 ) )
----
23
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT DISTINCT 27 DIV 74 * + 26 * 29
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT 27 / 74 * + 26 * 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL - 17 * + - SUM( + + 49 ) AS col2
----
833

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL - 17 * + - SUM ( + + 49 ) AS col2
----
833

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + COUNT( * ) + COALESCE ( + - 36, - 75 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9201
SELECT + COUNT ( * ) + COALESCE ( + - 36, - 75 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL + + MIN( ALL - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL + + MIN ( ALL - 35 )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9203
SELECT + 60 - 86 * + 66 + - 30 + - - 19 * - COUNT( * ), - CAST( NULL AS SIGNED ) AS col2
----
-5665
NULL

skipif mysql # not compatible
query II rowsort label-9203
SELECT + 60 - 86 * + 66 + - 30 + - - 19 * - COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col2
----
-5665
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9204
SELECT + MIN( DISTINCT 10 ) DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-9204
SELECT + MIN ( DISTINCT 10 ) / + 44
----
0

query I rowsort
SELECT - + 96 + + 27 AS col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9206
SELECT DISTINCT - 23 * MIN( + 99 ) / - NULLIF ( - - 82, - 89 / + + 24 - + - 94 ) * - 90 + - - COUNT( - 59 ) + + 52 * CAST( NULL AS SIGNED ) + 25 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT - 23 * MIN ( + 99 ) / - NULLIF ( - - 82, - 89 / + + 24 - + - 94 ) * - 90 + - - COUNT ( - 59 ) + + 52 * CAST ( NULL AS INTEGER ) + 25 * 52
----
NULL

query II rowsort
SELECT DISTINCT + - 45 AS col1, ( + + 75 ) * + 94
----
-45
7050

query I rowsort
SELECT ALL - 30 * + - ( + 67 ) * + 95 * 47 + + 72 * + NULLIF ( - + 81, + 72 * + - 8 + 53 ) + 60
----
8968878

query I rowsort
SELECT DISTINCT - 94 * - 58 * + 91 + - + 11
----
496121

query II rowsort
SELECT + 85 * + ( - 98 ) + + - 53 AS col1, 67 col0
----
-8383
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9211
SELECT - CASE + 89 WHEN - - 56 + ( + 3 ) THEN - + 18 WHEN CAST( NULL AS DECIMAL ) * - + 12 + - - 55 + 17 + 45 * + 66 THEN NULL ELSE - CAST( NULL AS SIGNED ) - + CAST( CASE - 38 WHEN COUNT( * ) + - 30 * + 23 THEN - 0 ELSE NULL END AS SIGNED ) * - 15 END * 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT - CASE + 89 WHEN - - 56 + ( + 3 ) THEN - + 18 WHEN CAST ( NULL AS REAL ) * - + 12 + - - 55 + 17 + 45 * + 66 THEN NULL ELSE - CAST ( NULL AS INTEGER ) - + CAST ( CASE - 38 WHEN COUNT ( * ) + - 30 * + 23 THEN - 0 ELSE NULL END AS INTEGER ) * - 15 END * 66 AS col2
----
NULL

query II rowsort
SELECT ALL - - 61 * - 16 AS col2, 47
----
-976
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9213
SELECT - COUNT( * ) col2, + 82 + + + 92 * - 5 AS col1
----
-1
-378

skipif mysql # not compatible
query II rowsort label-9213
SELECT - COUNT ( * ) col2, + 82 + + + 92 * - 5 AS col1
----
-1
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT - ( - - CASE 87 WHEN + - NULLIF ( + 57, - MIN( ALL + 41 ) - - + 31 + - - 82 - 33 ) THEN + 85 + 89 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT - ( - - CASE 87 WHEN + - NULLIF ( + 57, - MIN ( ALL + 41 ) - - + 31 + - - 82 - 33 ) THEN + 85 + 89 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL - 63 - + 71 * - 28 AS col2
----
1925

query I rowsort
SELECT DISTINCT - 45 - + 33 col2
----
-78

query II rowsort
SELECT ALL ( + - 25 ) AS col0, - 4
----
-25
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9218
SELECT ALL - 28 DIV + 23
----
-1

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL - 28 / + 23
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9219
SELECT - 70 * - + CAST( - 40 AS SIGNED ) AS col2
----
-2800

skipif mysql # not compatible
query I rowsort label-9219
SELECT - 70 * - + CAST ( - 40 AS INTEGER ) AS col2
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT DISTINCT ( - NULLIF ( - 38, - - 66 - 72 + 30 * MAX( - - 31 ) / - 28 * - ( + - 30 ) ) )
----
38

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT ( - NULLIF ( - 38, - - 66 - 72 + 30 * MAX ( - - 31 ) / - 28 * - ( + - 30 ) ) )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT - COUNT( * ) * - COUNT( * ) * - 63 * ( - ( + 61 ) ) * + + 19 * + 33
----
2409561

skipif mysql # not compatible
query I rowsort label-9221
SELECT - COUNT ( * ) * - COUNT ( * ) * - 63 * ( - ( + 61 ) ) * + + 19 * + 33
----
2409561

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9222
SELECT - COUNT( * ) DIV - + 9 * + + 70 * 38 DIV 27 AS col1, - 17 * + + 21
----
0
-357

skipif mysql # not compatible
query II rowsort label-9222
SELECT - COUNT ( * ) / - + 9 * + + 70 * 38 / 27 AS col1, - 17 * + + 21
----
0
-357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9223
SELECT ALL - 28 DIV - + 93 * + + 22 * - COUNT( * ) * COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - 28 / - + 93 * + + 22 * - COUNT ( * ) * COUNT ( * ) col2
----
0

query I rowsort
SELECT - 34 * + + 84
----
-2856

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9225
SELECT - 10 * + 73 * + 4, + CAST( NULL AS SIGNED ) col1
----
-2920
NULL

skipif mysql # not compatible
query II rowsort label-9225
SELECT - 10 * + 73 * + 4, + CAST ( NULL AS INTEGER ) col1
----
-2920
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT - SUM( + 33 ) + + + 18
----
-15

skipif mysql # not compatible
query I rowsort label-9226
SELECT - SUM ( + 33 ) + + + 18
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT ALL CAST( + - 13 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL CAST ( + - 13 AS INTEGER )
----
-13

query I rowsort
SELECT - ( + - 41 ) col2
----
41

query I rowsort
SELECT ALL 57 * + 77 * + 72 AS col2
----
316008

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9230
SELECT ALL 74 * 43 AS col2, COALESCE ( 60, - CASE + 24 WHEN - 41 + - 1 + NULLIF ( CAST( + - 28 AS SIGNED ), - + 44 ) THEN NULL WHEN + 49 THEN - 44 ELSE NULL END, 64 )
----
3182
60

skipif mysql # not compatible
query II rowsort label-9230
SELECT ALL 74 * 43 AS col2, COALESCE ( 60, - CASE + 24 WHEN - 41 + - 1 + NULLIF ( CAST ( + - 28 AS INTEGER ), - + 44 ) THEN NULL WHEN + 49 THEN - 44 ELSE NULL END, 64 )
----
3182
60

query I rowsort
SELECT - 80 * - + 30 AS col0
----
2400

query I rowsort
SELECT DISTINCT - 56 * - 60 col0
----
3360

query I rowsort
SELECT + CASE 30 WHEN - - 68 + - 8 * + - 77 * + 31 THEN NULL WHEN + 15 + - 14 THEN - 73 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9234
SELECT + 15 + + 17 DIV + 78 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9234
SELECT + 15 + + 17 / + 78 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL - 77 * 22 * + NULLIF ( + 80, - ( + - 72 ) ) + 91 * + COUNT( - - COALESCE ( - 7, + + 73 ) )
----
-135429

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL - 77 * 22 * + NULLIF ( + 80, - ( + - 72 ) ) + 91 * + COUNT ( - - COALESCE ( - 7, + + 73 ) )
----
-135429

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9236
SELECT DISTINCT + - MAX( + 36 ) DIV - 41 + + + 61 + 61 + + + MIN( + 73 ) AS col1
----
195

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT + - MAX ( + 36 ) / - 41 + + + 61 + 61 + + + MIN ( + 73 ) AS col1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT 16 * 56 * - 94 - - 8 + ( - + ( + MAX( DISTINCT + 97 ) ) ) AS col2
----
-84313

skipif mysql # not compatible
query I rowsort label-9237
SELECT 16 * 56 * - 94 - - 8 + ( - + ( + MAX ( DISTINCT + 97 ) ) ) AS col2
----
-84313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9238
SELECT + + 0 * + 55 * + 57 * + 76 / + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9238
SELECT + + 0 * + 55 * + 57 * + 76 / + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL - 12 / - - 69 - + - ( - 12 ) + + 24 + + COUNT( * ) * - - 51 * - COUNT( * ) + NULLIF ( - - 92, - 11 ) + CASE - 63 WHEN - SUM( + 16 ) THEN - 9 ELSE 41 * CASE COUNT( * ) WHEN COALESCE ( 99, 80 ) + 60 * - NULLIF ( - 4, + 23 * + 51 ) THEN 23 * + 4 + + COUNT( * ) ELSE NULL END END - 7 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - 12 / - - 69 - + - ( - 12 ) + + 24 + + COUNT ( * ) * - - 51 * - COUNT ( * ) + NULLIF ( - - 92, - 11 ) + CASE - 63 WHEN - SUM ( + 16 ) THEN - 9 ELSE 41 * CASE COUNT ( * ) WHEN COALESCE ( 99, 80 ) + 60 * - NULLIF ( - 4, + 23 * + 51 ) THEN 23 * + 4 + + COUNT ( * ) ELSE NULL END END - 7 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9240
SELECT + + CAST( - 57 AS SIGNED ) + - 6 + + 92 * - 74 * NULLIF ( - + 8, - 88 * - 93 * 59 ) / - - CASE WHEN NOT + 45 IS NOT NULL THEN 12 * + ( + CAST( - 62 AS SIGNED ) * 28 ) END + 72 * + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT + + CAST ( - 57 AS INTEGER ) + - 6 + + 92 * - 74 * NULLIF ( - + 8, - 88 * - 93 * 59 ) / - - CASE WHEN NOT + 45 IS NOT NULL THEN 12 * + ( + CAST ( - 62 AS INTEGER ) * 28 ) END + 72 * + 46 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9241
SELECT + 3 DIV + CASE - CAST( - 21 AS SIGNED ) WHEN + 2 THEN AVG ( 4 ) ELSE - - 53 * - + 36 END
----
0

skipif mysql # not compatible
query I rowsort label-9241
SELECT + 3 / + CASE - CAST ( - 21 AS INTEGER ) WHEN + 2 THEN AVG ( 4 ) ELSE - - 53 * - + 36 END
----
0

query I rowsort
SELECT + - ( + 62 ) + - - 19 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT + COUNT( * ) * + 67 - - CASE 67 WHEN 70 * - 27 * - + ( + 58 ) - ( - NULLIF ( - - 18, - 88 ) ) - 6 THEN NULL ELSE + 82 END col0
----
149

skipif mysql # not compatible
query I rowsort label-9243
SELECT + COUNT ( * ) * + 67 - - CASE 67 WHEN 70 * - 27 * - + ( + 58 ) - ( - NULLIF ( - - 18, - 88 ) ) - 6 THEN NULL ELSE + 82 END col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL + 9 * + + COUNT( ALL + 41 ) * 55 + - - 2 + + - 95 * + 68 * ( - ( + 7 ) ) AS col2
----
45717

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL + 9 * + + COUNT ( ALL + 41 ) * 55 + - - 2 + + - 95 * + 68 * ( - ( + 7 ) ) AS col2
----
45717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9245
SELECT - + MIN( 56 ) * + 30 DIV 6 col1
----
-280

skipif mysql # not compatible
query I rowsort label-9245
SELECT - + MIN ( 56 ) * + 30 / 6 col1
----
-280

query I rowsort
SELECT 80 * - 35 + + + 13
----
-2787

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT + NULLIF ( + 0, + + NULLIF ( - 93, 87 + - + 62 + + ( - + 67 ) ) * 25 * 65 * - + COUNT( ALL - 36 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9247
SELECT + NULLIF ( + 0, + + NULLIF ( - 93, 87 + - + 62 + + ( - + 67 ) ) * 25 * 65 * - + COUNT ( ALL - 36 ) )
----
0

query I rowsort
SELECT ALL - 18 - - 73 * - - 85
----
6187

query I rowsort
SELECT - 6 + - 2 AS col2
----
-8

query II rowsort
SELECT DISTINCT 24, 28 AS col1
----
24
28

query I rowsort
SELECT 72 + - 39 AS col2
----
33

query I rowsort
SELECT 78 * + 4 AS col2
----
312

query II rowsort
SELECT - 85 AS col0, + 32 - - 29
----
-85
61

query II rowsort
SELECT 81 AS col2, 12
----
81
12

query I rowsort
SELECT 88 + + 14
----
102

query I rowsort
SELECT ALL - 42 * - 39 AS col1
----
1638

query II rowsort
SELECT 89, + 69 col2
----
89
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9258
SELECT 97 + + + COUNT( - ( 59 ) ) DIV - + 64 * 59 * + + 91
----
97

skipif mysql # not compatible
query I rowsort label-9258
SELECT 97 + + + COUNT ( - ( 59 ) ) / - + 64 * 59 * + + 91
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT COUNT( * ) + + 84
----
85

skipif mysql # not compatible
query I rowsort label-9259
SELECT COUNT ( * ) + + 84
----
85

query I rowsort
SELECT ALL 51 * + 87 col0
----
4437

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT 94 * + 20 * - + MAX( ALL + 65 )
----
-122200

skipif mysql # not compatible
query I rowsort label-9261
SELECT 94 * + 20 * - + MAX ( ALL + 65 )
----
-122200

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT DISTINCT + 24 + CASE AVG ( - 87 ) WHEN MAX( ALL - 19 ) THEN NULL WHEN 89 THEN - 41 * + 42 / 12 + - 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT + 24 + CASE AVG ( - 87 ) WHEN MAX ( ALL - 19 ) THEN NULL WHEN 89 THEN - 41 * + 42 / 12 + - 41 ELSE NULL END
----
NULL

query I rowsort
SELECT 3 * + + 28
----
84

query I rowsort
SELECT 7 * - 89
----
-623

onlyif mysql # aggregate syntax: 
query II rowsort label-9265
SELECT 32 AS col1, + 79 - + COUNT( * ) + 64 * - 82 * - 18
----
32
94542

skipif mysql # not compatible
query II rowsort label-9265
SELECT 32 AS col1, + 79 - + COUNT ( * ) + 64 * - 82 * - 18
----
32
94542

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT 84 + - - SUM( ALL - 46 )
----
38

skipif mysql # not compatible
query I rowsort label-9266
SELECT 84 + - - SUM ( ALL - 46 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9267
SELECT - 33 AS col0, - 41 * - CAST( + COUNT( * ) AS SIGNED ) * + - COALESCE ( + 55, + 10 * - 87 + 25 + CAST( NULL AS SIGNED ) DIV - 42, + 59 ) * + 75 col1
----
-33
-169125

skipif mysql # not compatible
query II rowsort label-9267
SELECT - 33 AS col0, - 41 * - CAST ( + COUNT ( * ) AS INTEGER ) * + - COALESCE ( + 55, + 10 * - 87 + 25 + CAST ( NULL AS INTEGER ) / - 42, + 59 ) * + 75 col1
----
-33
-169125

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT - COUNT( * ) * - 46
----
46

skipif mysql # not compatible
query I rowsort label-9268
SELECT - COUNT ( * ) * - 46
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9269
SELECT - 21 DIV + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-9269
SELECT - 21 / + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT - + NULLIF ( - COUNT( + - 3 ), + + MIN( 49 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT - + NULLIF ( - COUNT ( + - 3 ), + + MIN ( 49 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9271
SELECT DISTINCT + + COUNT( * ) + - 76 + - 89 * 41 + - ( + 49 ) AS col1, + COUNT( * ) + - ( + COUNT( * ) ) + - CAST( NULL AS SIGNED ) * ( - + COUNT( * ) ) * COUNT( * ) - + COUNT( * ) * - 66 AS col1
----
-3773
NULL

skipif mysql # not compatible
query II rowsort label-9271
SELECT DISTINCT + + COUNT ( * ) + - 76 + - 89 * 41 + - ( + 49 ) AS col1, + COUNT ( * ) + - ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) * ( - + COUNT ( * ) ) * COUNT ( * ) - + COUNT ( * ) * - 66 AS col1
----
-3773
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9272
SELECT + 17, + 29 DIV - 37 AS col2
----
17
0

skipif mysql # not compatible
query II rowsort label-9272
SELECT + 17, + 29 / - 37 AS col2
----
17
0

query I rowsort
SELECT ALL - - 19 + - + 67
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9274
SELECT ALL - 82 + - 34 * - CAST( 62 AS SIGNED ) - 92 + 35
----
1969

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL - 82 + - 34 * - CAST ( 62 AS INTEGER ) - 92 + 35
----
1969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9275
SELECT + 24 + 99 - + - CAST( + COUNT( * ) AS SIGNED ) * - CAST( + 92 AS SIGNED ) AS col1, + 83
----
31
83

skipif mysql # not compatible
query II rowsort label-9275
SELECT + 24 + 99 - + - CAST ( + COUNT ( * ) AS INTEGER ) * - CAST ( + 92 AS INTEGER ) AS col1, + 83
----
31
83

query I rowsort
SELECT 15 * - CASE WHEN NULL IS NULL THEN NULL ELSE 98 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9277
SELECT ( CAST( 82 AS SIGNED ) )
----
82

skipif mysql # not compatible
query I rowsort label-9277
SELECT ( CAST ( 82 AS INTEGER ) )
----
82

query I rowsort
SELECT + 14 * + 67 + - 97 col0
----
841

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT - CASE + NULLIF ( + + 49, - 76 ) WHEN - 38 + - - 60 THEN + 95 + + + CASE + ( - 33 ) WHEN + - NULLIF ( + 11, - - NULLIF ( - 89, - 36 ) * + 84 + - 15 ) THEN + 11 / 1 ELSE + 82 * MIN( ALL 39 ) + 56 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT - CASE + NULLIF ( + + 49, - 76 ) WHEN - 38 + - - 60 THEN + 95 + + + CASE + ( - 33 ) WHEN + - NULLIF ( + 11, - - NULLIF ( - 89, - 36 ) * + 84 + - 15 ) THEN + 11 / 1 ELSE + 82 * MIN ( ALL 39 ) + 56 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT DISTINCT + 56 * - + MIN( 78 )
----
-4368

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT + 56 * - + MIN ( 78 )
----
-4368

query I rowsort
SELECT DISTINCT 6 * COALESCE ( + 18, + - 0 )
----
108

query I rowsort
SELECT DISTINCT 53 * - 18
----
-954

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9283
SELECT CAST( + + 63 AS SIGNED ) DIV + - 85 * + 37, + 4 AS col1
----
0
4

skipif mysql # not compatible
query II rowsort label-9283
SELECT CAST ( + + 63 AS INTEGER ) / + - 85 * + 37, + 4 AS col1
----
0
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9284
SELECT CAST( + + 18 AS SIGNED ) * + 64
----
1152

skipif mysql # not compatible
query I rowsort label-9284
SELECT CAST ( + + 18 AS INTEGER ) * + 64
----
1152

query I rowsort
SELECT 72 * - + 94
----
-6768

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT COUNT( 37 ) - - 87
----
88

skipif mysql # not compatible
query I rowsort label-9286
SELECT COUNT ( 37 ) - - 87
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT ALL 52 + - SUM( DISTINCT - 19 )
----
71

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL 52 + - SUM ( DISTINCT - 19 )
----
71

query I rowsort
SELECT DISTINCT 10 + - - 10 * + + ( 50 )
----
510

query I rowsort
SELECT ALL + 11 + 35 AS col2
----
46

query I rowsort
SELECT CASE - + 23 WHEN + 91 THEN NULL WHEN 69 THEN + - 35 + - + 94 * + + 15 * + 72 ELSE NULL END * 16 AS col0
----
NULL

query I rowsort
SELECT ALL 45 + - 36
----
9

query I rowsort
SELECT DISTINCT + CASE - - 21 WHEN + + 61 THEN - - ( + + 92 ) WHEN + + 73 THEN NULL END + + 15 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT 22 - - SUM( 23 ) - 63
----
-18

skipif mysql # not compatible
query I rowsort label-9293
SELECT 22 - - SUM ( 23 ) - 63
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9294
SELECT - COUNT( 14 ) AS col1, COUNT( * ) col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-9294
SELECT - COUNT ( 14 ) AS col1, COUNT ( * ) col0
----
-1
1

query I rowsort
SELECT 96 + - + 95
----
1

query I rowsort
SELECT 82 * 37 AS col0
----
3034

query I rowsort
SELECT 69 * 79 * + 92 + - - 90 * + 66 * 38
----
727212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9298
SELECT DISTINCT + 67 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT + 67 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( 32 ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT CASE + 81 WHEN + ( + CASE + - 14 WHEN ( + 72 ) * + 36 + - + 54 + - - 23 THEN 81 + + 63 + - + NULLIF ( + - COUNT( * ), + 30 ) * + 31 WHEN + 21 THEN COUNT( * ) END ) THEN - 82 * 85 + 31 ELSE SUM( DISTINCT + 43 ) END
----
43

skipif mysql # not compatible
query I rowsort label-9300
SELECT CASE + 81 WHEN + ( + CASE + - 14 WHEN ( + 72 ) * + 36 + - + 54 + - - 23 THEN 81 + + 63 + - + NULLIF ( + - COUNT ( * ), + 30 ) * + 31 WHEN + 21 THEN COUNT ( * ) END ) THEN - 82 * 85 + 31 ELSE SUM ( DISTINCT + 43 ) END
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9301
SELECT ALL - 39 * - 3 + + COUNT( * ) DIV COUNT( * ) + 80 - - MAX( - 25 ) + 83
----
256

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL - 39 * - 3 + + COUNT ( * ) / COUNT ( * ) + 80 - - MAX ( - 25 ) + 83
----
256

query I rowsort
SELECT + - 17 col2
----
-17

query I rowsort
SELECT COALESCE ( 0, + ( + 96 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9304
SELECT - - CAST( + + 57 AS SIGNED ) - + 12 * - 10 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-9304
SELECT - - CAST ( + + 57 AS INTEGER ) - + 12 * - 10 AS col1
----
177

query I rowsort
SELECT - 92 + - + ( - - COALESCE ( 16, + 61 ) ) AS col2
----
-108

query I rowsort
SELECT ALL + + 91 * + 53
----
4823

query I rowsort
SELECT DISTINCT + 99 * 78 * - 16
----
-123552

query I rowsort
SELECT - 47 - 9 AS col2
----
-56

query I rowsort
SELECT + ( 18 ) * - + 83 AS col0
----
-1494

onlyif mysql # aggregate syntax: 
query II rowsort label-9310
SELECT ALL + 41 * + - 93 * + 38 AS col0, - 95 + + 48 * + CASE + NULLIF ( 95, + + 81 ) WHEN + 89 / - 90 / - ( 9 ) + + 6 THEN NULL WHEN 61 * COUNT( 51 ) THEN + 87 ELSE 94 * 30 END
----
-144894
135265

skipif mysql # not compatible
query II rowsort label-9310
SELECT ALL + 41 * + - 93 * + 38 AS col0, - 95 + + 48 * + CASE + NULLIF ( 95, + + 81 ) WHEN + 89 / - 90 / - ( 9 ) + + 6 THEN NULL WHEN 61 * COUNT ( 51 ) THEN + 87 ELSE 94 * 30 END
----
-144894
135265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9311
SELECT - COUNT( * ) + - - 48 + - - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * - + 98, - SUM( ALL 51 ) + + 0 + - + CAST( NULL AS SIGNED ) * - + 48
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9311
SELECT - COUNT ( * ) + - - 48 + - - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - + 98, - SUM ( ALL 51 ) + + 0 + - + CAST ( NULL AS INTEGER ) * - + 48
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT MAX( DISTINCT - + 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9312
SELECT MAX ( DISTINCT - + 8 ) AS col1
----
-8

query I rowsort
SELECT - 94 + + 77 + - - 33
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT MAX( DISTINCT + + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-9314
SELECT MAX ( DISTINCT + + 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT - ( - COUNT( * ) ) * 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9315
SELECT - ( - COUNT ( * ) ) * 10 AS col0
----
10

query II rowsort
SELECT + 76 * 65 * 95, - 94 AS col0
----
469300
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT + ( + - 93 ) * - ( + 94 ) + + + 74 + 89 - MIN( DISTINCT - ( - CASE + 63 WHEN + + 62 THEN - + 29 / + 23 WHEN + 97 THEN NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT + ( + - 93 ) * - ( + 94 ) + + + 74 + 89 - MIN ( DISTINCT - ( - CASE + 63 WHEN + + 62 THEN - + 29 / + 23 WHEN + 97 THEN NULL END ) )
----
NULL

query I rowsort
SELECT ALL 58 + - 86 AS col2
----
-28

query I rowsort
SELECT ALL NULLIF ( - 95, + 10 )
----
-95

query I rowsort
SELECT DISTINCT + 97 + + 64
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT - NULLIF ( + - MIN( - 71 ), + - 15 )
----
-71

skipif mysql # not compatible
query I rowsort label-9321
SELECT - NULLIF ( + - MIN ( - 71 ), + - 15 )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-9322
SELECT ALL 98 + + 74 DIV 30 * - 64
----
-30

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL 98 + + 74 / 30 * - 64
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9323
SELECT - 4 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-9323
SELECT - 4 / - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT + 86 + - MAX( ALL + - 10 )
----
96

skipif mysql # not compatible
query I rowsort label-9324
SELECT + 86 + - MAX ( ALL + - 10 )
----
96

query I rowsort
SELECT + 62 + + 50
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT + + 18 * + 7 + - - COUNT( * ) AS col2
----
127

skipif mysql # not compatible
query I rowsort label-9326
SELECT + + 18 * + 7 + - - COUNT ( * ) AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT ALL - COUNT( * ) + + 56 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL - COUNT ( * ) + + 56 AS col0
----
55

query I rowsort
SELECT DISTINCT 95 - - - 98
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9329
SELECT + CAST( NULL AS SIGNED ) + + 97 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT + CAST ( NULL AS INTEGER ) + + 97 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT + + NULLIF ( ( - 93 ), 23 ) * MIN( ALL ( - - 93 ) ) * - 59
----
510291

skipif mysql # not compatible
query I rowsort label-9330
SELECT + + NULLIF ( ( - 93 ), 23 ) * MIN ( ALL ( - - 93 ) ) * - 59
----
510291

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT - + 11 * COUNT( * ) * + - 87
----
957

skipif mysql # not compatible
query I rowsort label-9331
SELECT - + 11 * COUNT ( * ) * + - 87
----
957

query I rowsort
SELECT ALL + 61 * + 99
----
6039

onlyif mysql # DIV for integer division: 
query II rowsort label-9333
SELECT 50 DIV 77 + + 1 * ( - - 58 ), - 97 AS col1
----
58
-97

skipif mysql # not compatible
query II rowsort label-9333
SELECT 50 / 77 + + 1 * ( - - 58 ), - 97 AS col1
----
58
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9334
SELECT - 13 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-9334
SELECT - 13 / - 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT + 18 * - - 3 * + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-9335
SELECT + 18 * - - 3 * + COUNT ( * )
----
54

query II rowsort
SELECT - 24 + - - 64 AS col2, 81 AS col1
----
40
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9337
SELECT + 57 * + 83 + + - 40 - - - NULLIF ( 56, 76 ) DIV 40 AS col0
----
4690

skipif mysql # not compatible
query I rowsort label-9337
SELECT + 57 * + 83 + + - 40 - - - NULLIF ( 56, 76 ) / 40 AS col0
----
4690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9338
SELECT - 70 DIV NULLIF ( + COUNT( * ), + 76 DIV - 69 ) * + COUNT( - 99 ) + - - 85
----
15

skipif mysql # not compatible
query I rowsort label-9338
SELECT - 70 / NULLIF ( + COUNT ( * ), + 76 / - 69 ) * + COUNT ( - 99 ) + - - 85
----
15

query I rowsort
SELECT 10 * + 56 + ( 84 ) + + NULLIF ( + 99, 51 )
----
743

query II rowsort
SELECT - 88 * 54 AS col1, 48 AS col1
----
-4752
48

query II rowsort
SELECT + 82 AS col1, 18 - 91 AS col2
----
82
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT - COUNT( * ) * ( - - 58 ) + + 4
----
-54

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT - COUNT ( * ) * ( - - 58 ) + + 4
----
-54

query II rowsort
SELECT ALL + 26, 39 + 12 AS col1
----
26
51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9344
SELECT ALL + 0 * + - 37 + - ( 45 ) AS col0, CAST( NULL AS DECIMAL ) AS col2
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-9344
SELECT ALL + 0 * + - 37 + - ( 45 ) AS col0, CAST ( NULL AS REAL ) AS col2
----
-45
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT - CAST( NULL AS SIGNED ) - + + 46 - - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT - CAST ( NULL AS INTEGER ) - + + 46 - - + 91
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9346
SELECT COALESCE ( - + COUNT( * ), + - 60 * CASE - + ( + 45 ) WHEN ( + + 2 ) THEN + 2 ELSE + 10 DIV - COUNT( * ) END + + 28, MIN( ALL - 1 ), - + 10 * + + NULLIF ( + COUNT( * ), 18 ) * 45 - + 11 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9346
SELECT COALESCE ( - + COUNT ( * ), + - 60 * CASE - + ( + 45 ) WHEN ( + + 2 ) THEN + 2 ELSE + 10 / - COUNT ( * ) END + + 28, MIN ( ALL - 1 ), - + 10 * + + NULLIF ( + COUNT ( * ), 18 ) * 45 - + 11 ) AS col1
----
-1

query I rowsort
SELECT NULLIF ( - + 8, + 16 )
----
-8

query I rowsort
SELECT + 86 * 32 * - 61 AS col0
----
-167872

query I rowsort
SELECT - 98 * 5
----
-490

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT ALL 44 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL 44 / - 50
----
0

query I rowsort
SELECT - 50 - + 7 AS col1
----
-57

query I rowsort
SELECT - COALESCE ( - 96, - 93 )
----
96

query II rowsort
SELECT - 68, 1 AS col1
----
-68
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL - MAX( DISTINCT + 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL - MAX ( DISTINCT + 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ALL - + 12 * - COUNT( * ) * 78 - 28 col1
----
908

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL - + 12 * - COUNT ( * ) * 78 - 28 col1
----
908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT - 98 + + + CAST( NULL AS SIGNED ) + + 23 * - CAST( - - 65 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT - 98 + + + CAST ( NULL AS INTEGER ) + + 23 * - CAST ( - - 65 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 67 * 2 AS col0
----
134

query I rowsort
SELECT - - 95 * + 45 + + 90
----
4365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9359
SELECT COUNT( * ) - + CASE + ( - + CAST( NULL AS SIGNED ) ) WHEN - MAX( ALL 54 ) THEN + 5 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT COUNT ( * ) - + CASE + ( - + CAST ( NULL AS INTEGER ) ) WHEN - MAX ( ALL 54 ) THEN + 5 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT ALL + COUNT( * ) * + 95 * SUM( DISTINCT + - 11 ) AS col0
----
-1045

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL + COUNT ( * ) * + 95 * SUM ( DISTINCT + - 11 ) AS col0
----
-1045

query I rowsort
SELECT 52 + - - 90
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-9362
SELECT - - 67 AS col2, SUM( 16 ) AS col0
----
67
16

skipif mysql # not compatible
query II rowsort label-9362
SELECT - - 67 AS col2, SUM ( 16 ) AS col0
----
67
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9363
SELECT + 34 DIV + 88 * + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9363
SELECT + 34 / + 88 * + 89 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT CASE - 1 WHEN MIN( - 46 ) THEN + 71 ELSE NULL END * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT CASE - 1 WHEN MIN ( - 46 ) THEN + 71 ELSE NULL END * - 24
----
NULL

query I rowsort
SELECT DISTINCT - - 70 * - + 86
----
-6020

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT + 61 + + + SUM( ALL + - 55 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9366
SELECT + 61 + + + SUM ( ALL + - 55 ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT + 41 DIV + 59 DIV 3 * 98 + + - 53 col0
----
-53

skipif mysql # not compatible
query I rowsort label-9367
SELECT + 41 / + 59 / 3 * 98 + + - 53 col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT - 83 * COALESCE ( + COUNT( * ), - + 4 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-9368
SELECT - 83 * COALESCE ( + COUNT ( * ), - + 4 ) AS col1
----
-83

query I rowsort
SELECT ALL 53 + 58 AS col2
----
111

query I rowsort
SELECT ALL - NULLIF ( + - 39, 32 ) * + 46 * - 64
----
-114816

query I rowsort
SELECT 98 * 0 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9372
SELECT ALL MIN( 87 ) + 0 DIV 33 col0
----
87

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL MIN ( 87 ) + 0 / 33 col0
----
87

query I rowsort
SELECT + 16 * + 39 - - 67 AS col1
----
691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9374
SELECT 88 + COALESCE ( 47, - 99, - CAST( - COUNT( * ) AS SIGNED ) + - + COUNT( * ) ) AS col2, COUNT( * ) AS col0
----
135
1

skipif mysql # not compatible
query II rowsort label-9374
SELECT 88 + COALESCE ( 47, - 99, - CAST ( - COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) ) AS col2, COUNT ( * ) AS col0
----
135
1

query I rowsort
SELECT DISTINCT 87 * + 94 * - 45
----
-368010

query I rowsort
SELECT DISTINCT - ( - - 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9377
SELECT 43 * - COALESCE ( + COUNT( * ), + COUNT( * ) ) + - ( - 65 ) + - + 25 - + + 61 + + 9 * 59 * + ( + 97 ) AS col2, - 42
----
51443
-42

skipif mysql # not compatible
query II rowsort label-9377
SELECT 43 * - COALESCE ( + COUNT ( * ), + COUNT ( * ) ) + - ( - 65 ) + - + 25 - + + 61 + + 9 * 59 * + ( + 97 ) AS col2, - 42
----
51443
-42

query I rowsort
SELECT 6 * - - 99 - 38 AS col1
----
556

query I rowsort
SELECT - 77 * + 51 - + ( + 19 ) AS col1
----
-3946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9380
SELECT CAST( NULL AS SIGNED ) * + + 74 + COUNT( * ) * 30 * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT CAST ( NULL AS INTEGER ) * + + 74 + COUNT ( * ) * 30 * + 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9381
SELECT 32 + + 54 DIV + SUM( - - NULLIF ( + 9, + 91 ) )
----
38

skipif mysql # not compatible
query I rowsort label-9381
SELECT 32 + + 54 / + SUM ( - - NULLIF ( + 9, + 91 ) )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9382
SELECT COALESCE ( - COUNT( * ), COUNT( * ) ) * + + COUNT( * ) DIV + MIN( - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-9382
SELECT COALESCE ( - COUNT ( * ), COUNT ( * ) ) * + + COUNT ( * ) / + MIN ( - 76 )
----
0

query I rowsort
SELECT DISTINCT + 34 * 24
----
816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT DISTINCT 21 - - 45 * + 95 + - COALESCE ( - + 19, - 42 + + - CAST( NULL AS SIGNED ) ) + ( - 89 ) col1
----
4226

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT 21 - - 45 * + 95 + - COALESCE ( - + 19, - 42 + + - CAST ( NULL AS INTEGER ) ) + ( - 89 ) col1
----
4226

query I rowsort
SELECT 32 + 62 + - 77 + - ( - - 79 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT - 43 + + COUNT( * ) * + 48 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9386
SELECT - 43 + + COUNT ( * ) * + 48 AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9387
SELECT - MIN( ALL + 36 ) AS col0, + 50
----
-36
50

skipif mysql # not compatible
query II rowsort label-9387
SELECT - MIN ( ALL + 36 ) AS col0, + 50
----
-36
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9388
SELECT + 65 + + 92 - - 83 + - + 10 * + + 99 * 72 DIV - + 36 AS col2, + 51 DIV - 98 * + + COUNT( * ) * + - 88 col0
----
2220
0

skipif mysql # not compatible
query II rowsort label-9388
SELECT + 65 + + 92 - - 83 + - + 10 * + + 99 * 72 / - + 36 AS col2, + 51 / - 98 * + + COUNT ( * ) * + - 88 col0
----
2220
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9389
SELECT 77 * SUM( 41 ) AS col0, - ( 95 )
----
3157
-95

skipif mysql # not compatible
query II rowsort label-9389
SELECT 77 * SUM ( 41 ) AS col0, - ( 95 )
----
3157
-95

query I rowsort
SELECT ( + 79 ) + - 27 AS col0
----
52

query I rowsort
SELECT CASE - - AVG ( DISTINCT + 62 ) WHEN - 63 THEN 63 * - 15 ELSE NULL END / + 41 - 6 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT 95 - + + 88 + + + CASE - - COUNT( * ) WHEN + 45 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 63 THEN - 15 + - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT 95 - + + 88 + + + CASE - - COUNT ( * ) WHEN + 45 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 63 THEN - 15 + - 37 END
----
NULL

query I rowsort
SELECT - NULLIF ( + 97, + + 59 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT MAX( - + 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9394
SELECT MAX ( - + 27 ) AS col2
----
-27

query I rowsort
SELECT ALL 31 * - - 42 * - 96 + + + 37
----
-124955

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT MIN( + ( + 86 ) ) * - - 26 * 89 AS col2
----
199004

skipif mysql # not compatible
query I rowsort label-9396
SELECT MIN ( + ( + 86 ) ) * - - 26 * 89 AS col2
----
199004

query I rowsort
SELECT ALL + 83 * 80
----
6640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9398
SELECT + 49 * 82 + + COALESCE ( - CAST( 37 AS SIGNED ), 69, + 74 + - 52 DIV - 86 * MIN( 59 ) ) - + 92 * - - 38 AS col0
----
485

skipif mysql # not compatible
query I rowsort label-9398
SELECT + 49 * 82 + + COALESCE ( - CAST ( 37 AS INTEGER ), 69, + 74 + - 52 / - 86 * MIN ( 59 ) ) - + 92 * - - 38 AS col0
----
485

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT 91 - COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9399
SELECT 91 - COUNT ( * ) AS col0
----
90

query II rowsort
SELECT ALL - 62, 47 AS col1
----
-62
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9401
SELECT COUNT( * ) DIV + 67 + - 69 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9401
SELECT COUNT ( * ) / + 67 + - 69 AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9402
SELECT ALL 68 * + CAST( NULL AS SIGNED ) + - 88 * CAST( - 8 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL 68 * + CAST ( NULL AS INTEGER ) + - 88 * CAST ( - 8 AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9403
SELECT COUNT( + - NULLIF ( + - 24, + ( 90 ) + + ( ( + CAST( NULL AS DECIMAL ) ) ) - + 47 * - - 28 * - 55 + ( 34 ) + - CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9403
SELECT COUNT ( + - NULLIF ( + - 24, + ( 90 ) + + ( ( + CAST ( NULL AS REAL ) ) ) - + 47 * - - 28 * - 55 + ( 34 ) + - CAST ( NULL AS INTEGER ) ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9404
SELECT COUNT( * ) AS col0, 44 + 6 + ( - + 79 ) AS col0
----
1
-29

skipif mysql # not compatible
query II rowsort label-9404
SELECT COUNT ( * ) AS col0, 44 + 6 + ( - + 79 ) AS col0
----
1
-29

query I rowsort
SELECT ( - 69 ) + 83
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT COUNT( * ) + - 28 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9406
SELECT COUNT ( * ) + - 28 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT COUNT( DISTINCT - 9 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9407
SELECT COUNT ( DISTINCT - 9 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT - COUNT( * ) * - - 18 + + + 65 + - 87
----
-40

skipif mysql # not compatible
query I rowsort label-9408
SELECT - COUNT ( * ) * - - 18 + + + 65 + - 87
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT 42 + - ( + 6 ) * + ( 99 ) * - COUNT( - + 56 ) - NULLIF ( 79, - ( 58 ) + + 89 )
----
557

skipif mysql # not compatible
query I rowsort label-9409
SELECT 42 + - ( + 6 ) * + ( 99 ) * - COUNT ( - + 56 ) - NULLIF ( 79, - ( 58 ) + + 89 )
----
557

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL MIN( + 35 ) * + - 83 AS col0
----
-2905

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL MIN ( + 35 ) * + - 83 AS col0
----
-2905

query I rowsort
SELECT ALL 80 * + - 88 col1
----
-7040

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL COUNT( * ) * 59 * - + 34 col1
----
-2006

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL COUNT ( * ) * 59 * - + 34 col1
----
-2006

onlyif mysql # aggregate syntax: 
query II rowsort label-9413
SELECT ( - - SUM( ALL - 68 ) ) * 24 AS col0, 39 AS col2
----
-1632
39

skipif mysql # not compatible
query II rowsort label-9413
SELECT ( - - SUM ( ALL - 68 ) ) * 24 AS col0, 39 AS col2
----
-1632
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT + 89 DIV - - 3 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-9414
SELECT + 89 / - - 3 AS col1
----
29

query II rowsort
SELECT 97, 95 AS col0
----
97
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9416
SELECT - 72 * - 43 * + CASE COUNT( * ) WHEN + + 31 THEN ( COUNT( * ) ) / - 1 * - 94 END, - 21 AS col1
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-9416
SELECT - 72 * - 43 * + CASE COUNT ( * ) WHEN + + 31 THEN ( COUNT ( * ) ) / - 1 * - 94 END, - 21 AS col1
----
NULL
-21

query I rowsort
SELECT + 16 - - 41
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9418
SELECT ALL - + COUNT( * ) * + 98 * + CAST( 19 AS SIGNED ) + + COUNT( * )
----
-1861

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - + COUNT ( * ) * + 98 * + CAST ( 19 AS INTEGER ) + + COUNT ( * )
----
-1861

query I rowsort
SELECT - + 37 * + 11 + + 84
----
-323

onlyif mysql # aggregate syntax: 
query II rowsort label-9420
SELECT - 38 AS col1, 67 - - + 87 + + - COUNT( * ) AS col2
----
-38
153

skipif mysql # not compatible
query II rowsort label-9420
SELECT - 38 AS col1, 67 - - + 87 + + - COUNT ( * ) AS col2
----
-38
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL - + COUNT( * ) * - 31 * - 80 * - 99 AS col1
----
245520

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL - + COUNT ( * ) * - 31 * - 80 * - 99 AS col1
----
245520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9422
SELECT + 5 * - CASE + 69 WHEN ( CASE - + COUNT( * ) WHEN - + 73 THEN CASE 2 WHEN + + COUNT( * ) THEN NULL WHEN 46 + COUNT( * ) + + - 65 THEN + - COALESCE ( - 20, 10 * 94 * + 63 DIV COUNT( * ) ) + + 44 * - 37 END + CASE 92 WHEN 1 THEN - 79 + 56 WHEN + MIN( - CAST( NULL AS SIGNED ) ) - - 86 THEN ( CASE SUM( DISTINCT 68 ) WHEN 84 THEN NULL ELSE CAST( NULL AS SIGNED ) * 67 END ) END END ) THEN - 40 DIV COUNT( 12 ) ELSE 95 + 73 END
----
-840

skipif mysql # not compatible
query I rowsort label-9422
SELECT + 5 * - CASE + 69 WHEN ( CASE - + COUNT ( * ) WHEN - + 73 THEN CASE 2 WHEN + + COUNT ( * ) THEN NULL WHEN 46 + COUNT ( * ) + + - 65 THEN + - COALESCE ( - 20, 10 * 94 * + 63 / COUNT ( * ) ) + + 44 * - 37 END + CASE 92 WHEN 1 THEN - 79 + 56 WHEN + MIN ( - CAST ( NULL AS INTEGER ) ) - - 86 THEN ( CASE SUM ( DISTINCT 68 ) WHEN 84 THEN NULL ELSE CAST ( NULL AS INTEGER ) * 67 END ) END END ) THEN - 40 / COUNT ( 12 ) ELSE 95 + 73 END
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT - - 18 + + - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-9423
SELECT - - 18 + + - COUNT ( * )
----
17

query I rowsort
SELECT - 79 - + - 30
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT DISTINCT CAST( - + 80 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT CAST ( - + 80 AS INTEGER )
----
-80

query I rowsort
SELECT - + 44 + + - 89 AS col2
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT - MAX( + + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-9427
SELECT - MAX ( + + 17 )
----
-17

query I rowsort
SELECT DISTINCT - 42 + 98 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL COALESCE ( - 30, + 0 + + 2, CASE + 51 WHEN 0 * + - 83 THEN - 31 END * + - 40 ) * COUNT( * ) * - ( + ( - ( - 69 ) ) ) * 50 - 14 * NULLIF ( 86, SUM( 40 ) ) * 0
----
103500

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL COALESCE ( - 30, + 0 + + 2, CASE + 51 WHEN 0 * + - 83 THEN - 31 END * + - 40 ) * COUNT ( * ) * - ( + ( - ( - 69 ) ) ) * 50 - 14 * NULLIF ( 86, SUM ( 40 ) ) * 0
----
103500

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL 64 * + - 2 * - + 61 + - 82 * + - 83 + + + COUNT( * )
----
14615

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL 64 * + - 2 * - + 61 + - 82 * + - 83 + + + COUNT ( * )
----
14615

onlyif mysql # aggregate syntax: 
query II rowsort label-9431
SELECT - 29 + 3, - COUNT( * ) AS col1
----
-26
-1

skipif mysql # not compatible
query II rowsort label-9431
SELECT - 29 + 3, - COUNT ( * ) AS col1
----
-26
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9432
SELECT - ( CASE COALESCE ( 32, - + 18 ) WHEN - 10 THEN 90 * 25 * - - 37 + - 27 WHEN 89 THEN - COUNT( * ) + + NULLIF ( + 84, - COUNT( * ) - COALESCE ( + 44, - 48 - - COUNT( * ), - 67 ) ) * CAST( + 82 + - ( 85 ) * - NULLIF ( 33 * - CAST( NULL AS SIGNED ), 8 ) AS DECIMAL ) ELSE NULL END ) * CAST( - 95 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT - ( CASE COALESCE ( 32, - + 18 ) WHEN - 10 THEN 90 * 25 * - - 37 + - 27 WHEN 89 THEN - COUNT ( * ) + + NULLIF ( + 84, - COUNT ( * ) - COALESCE ( + 44, - 48 - - COUNT ( * ), - 67 ) ) * CAST ( + 82 + - ( 85 ) * - NULLIF ( 33 * - CAST ( NULL AS INTEGER ), 8 ) AS REAL ) ELSE NULL END ) * CAST ( - 95 AS INTEGER )
----
NULL

query I rowsort
SELECT + 93 * + - 28 AS col0
----
-2604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9434
SELECT ALL + CASE 49 WHEN 17 THEN 59 * ( - MAX( ALL - 95 ) ) * + - ( + - MIN( 30 ) ) - - + 9 + + - 75 + - CAST( + - NULLIF ( - 61, - CASE + 91 WHEN + 8 THEN NULL ELSE 98 END ) AS SIGNED ) + 93 * + ( 57 * 72 ) / 3 + + 98 * 56 WHEN - 26 / 29 + 79 THEN NULL END * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL + CASE 49 WHEN 17 THEN 59 * ( - MAX ( ALL - 95 ) ) * + - ( + - MIN ( 30 ) ) - - + 9 + + - 75 + - CAST ( + - NULLIF ( - 61, - CASE + 91 WHEN + 8 THEN NULL ELSE 98 END ) AS INTEGER ) + 93 * + ( 57 * 72 ) / 3 + + 98 * 56 WHEN - 26 / 29 + 79 THEN NULL END * - 94
----
NULL

query II rowsort
SELECT ( - 13 ), + 99 AS col1
----
-13
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT + 34 * - COUNT( * ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT + 34 * - COUNT ( * ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL 93 * + - ( COUNT( * ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL 93 * + - ( COUNT ( * ) ) AS col0
----
-93

query I rowsort
SELECT - 57 * - - 59 AS col0
----
-3363

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9439
SELECT - ( - - 55 ) DIV - COUNT( * ) - - 9 - - + 79 * + 38 * 30 * 49 AS col2
----
4413004

skipif mysql # not compatible
query I rowsort label-9439
SELECT - ( - - 55 ) / - COUNT ( * ) - - 9 - - + 79 * + 38 * 30 * 49 AS col2
----
4413004

query I rowsort
SELECT - 34 * - 51
----
1734

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ALL - 89 * - 31 * - COUNT( * ) AS col2
----
-2759

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL - 89 * - 31 * - COUNT ( * ) AS col2
----
-2759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9442
SELECT DISTINCT + CAST( NULLIF ( 42, + 66 ) AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT + CAST ( NULLIF ( 42, + 66 ) AS INTEGER )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9443
SELECT ALL - COUNT( ALL - 96 ) * COUNT( * ) + + 20 + 32 - - COUNT( * ) / 91 * + 2 * + SUM( ALL - CAST( NULL AS DECIMAL ) ) / CAST( - + 21 AS SIGNED ) * - 87 - + - 64 * - COALESCE ( - - 85, - - 19, SUM( 19 ) ) / - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL - COUNT ( ALL - 96 ) * COUNT ( * ) + + 20 + 32 - - COUNT ( * ) / 91 * + 2 * + SUM ( ALL - CAST ( NULL AS REAL ) ) / CAST ( - + 21 AS INTEGER ) * - 87 - + - 64 * - COALESCE ( - - 85, - - 19, SUM ( 19 ) ) / - 67
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9444
SELECT ALL 21 DIV + + CAST( + 7 AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL 21 / + + CAST ( + 7 AS INTEGER ) AS col1
----
3

query I rowsort
SELECT + 3 * + 61
----
183

query I rowsort
SELECT - 15 + - - 61 + + - 34 + 34 * - + 81 * 7
----
-19266

query I rowsort
SELECT NULLIF ( - 40, + 42 - + + 1 ) * + + 81 - 99 AS col1
----
-3339

query I rowsort
SELECT + ( + 60 ) + CASE + AVG ( ALL - 88 ) WHEN + 46 THEN COALESCE ( - - 80, - + 70 - 88 ) * - 83 + + 27 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT ALL 17 * - COUNT( * ) - - 82 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL 17 * - COUNT ( * ) - - 82 AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9450
SELECT ALL + + 48 * + - 22 + + 82 DIV - SUM( ALL + + 4 ) AS col2
----
-1076

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL + + 48 * + - 22 + + 82 / - SUM ( ALL + + 4 ) AS col2
----
-1076

onlyif mysql # DIV for integer division: 
query I rowsort label-9451
SELECT - 97 * 55 + - 31 * - ( 71 ) * 45 * - 12 * - 24 + - 93 DIV 17 AS col0
----
28519620

skipif mysql # not compatible
query I rowsort label-9451
SELECT - 97 * 55 + - 31 * - ( 71 ) * 45 * - 12 * - 24 + - 93 / 17 AS col0
----
28519620

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ALL + 53 * - NULLIF ( - 60, + COUNT( * ) ) + + NULLIF ( + 38, - 90 ) * 21 + 1
----
3979

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL + 53 * - NULLIF ( - 60, + COUNT ( * ) ) + + NULLIF ( + 38, - 90 ) * 21 + 1
----
3979

query I rowsort
SELECT + + 8 + 41 AS col0
----
49

query I rowsort
SELECT ALL 13 * 45 + - 29 AS col2
----
556

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT DISTINCT + 44 * - - COUNT( * ) + - 63 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT + 44 * - - COUNT ( * ) + - 63 AS col2
----
-19

query I rowsort
SELECT - 63 + 64 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9457
SELECT + NULLIF ( - 53, + 82 * - COUNT( * ) * - - 21 + + 92 - CAST( + - 73 AS SIGNED ) + 40 ), - 94 AS col1
----
-53
-94

skipif mysql # not compatible
query II rowsort label-9457
SELECT + NULLIF ( - 53, + 82 * - COUNT ( * ) * - - 21 + + 92 - CAST ( + - 73 AS INTEGER ) + 40 ), - 94 AS col1
----
-53
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9458
SELECT + 7 DIV - - 14 * + 31
----
0

skipif mysql # not compatible
query I rowsort label-9458
SELECT + 7 / - - 14 * + 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT - SUM( + 91 ) + - 71
----
-162

skipif mysql # not compatible
query I rowsort label-9459
SELECT - SUM ( + 91 ) + - 71
----
-162

query I rowsort
SELECT ALL 47 + 27 - + 30 + - 39 AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9461
SELECT ALL + ( - - COUNT( * ) ) AS col1, - 28 * + + COUNT( * ) AS col1
----
1
-28

skipif mysql # not compatible
query II rowsort label-9461
SELECT ALL + ( - - COUNT ( * ) ) AS col1, - 28 * + + COUNT ( * ) AS col1
----
1
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ALL 90 + 77 * - COUNT( * ) + + COUNT( - - ( - 44 ) )
----
14

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL 90 + 77 * - COUNT ( * ) + + COUNT ( - - ( - 44 ) )
----
14

query I rowsort
SELECT DISTINCT COALESCE ( 14, 14 ) + - CASE - 28 WHEN + 40 THEN + 46 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9464
SELECT ALL + 1 DIV + ( + 59 ) * - MAX( ALL - 51 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + 1 / + ( + 59 ) * - MAX ( ALL - 51 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT DISTINCT - COUNT( * ) - + 61 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT - COUNT ( * ) - + 61 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-9466
SELECT + ( 2 ) - + 25 AS col2, - COUNT( * ) AS col0
----
-23
-1

skipif mysql # not compatible
query II rowsort label-9466
SELECT + ( 2 ) - + 25 AS col2, - COUNT ( * ) AS col0
----
-23
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9467
SELECT ALL + NULLIF ( - 94, - NULLIF ( + 50, 61 ) ) DIV - NULLIF ( + 84, + 71 * 37 DIV - + AVG ( ALL - 38 ) ) - - 4
----
5

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + NULLIF ( - 94, - NULLIF ( + 50, 61 ) ) / - NULLIF ( + 84, + 71 * 37 / - + AVG ( ALL - 38 ) ) - - 4
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT DISTINCT COUNT( * ) * - + CASE - + 46 WHEN + 23 THEN COUNT( * ) WHEN - CASE - + 86 WHEN - + ( - COUNT( * ) ) * + 60 - + COALESCE ( + 41, - MIN( - + 53 ) ) THEN COUNT( * ) ELSE - 78 * + SUM( DISTINCT - ( + 97 ) ) + + 93 + 79 END THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT COUNT ( * ) * - + CASE - + 46 WHEN + 23 THEN COUNT ( * ) WHEN - CASE - + 86 WHEN - + ( - COUNT ( * ) ) * + 60 - + COALESCE ( + 41, - MIN ( - + 53 ) ) THEN COUNT ( * ) ELSE - 78 * + SUM ( DISTINCT - ( + 97 ) ) + + 93 + 79 END THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - 34 * + + 34
----
-1156

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT - NULLIF ( - + ( + 49 ), - 76 + + COUNT( * ) ) * - 36 + COUNT( * ) + + + 2 + - - 42
----
-1719

skipif mysql # not compatible
query I rowsort label-9470
SELECT - NULLIF ( - + ( + 49 ), - 76 + + COUNT ( * ) ) * - 36 + COUNT ( * ) + + + 2 + - - 42
----
-1719

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL + NULLIF ( + 10, - SUM( - 57 ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + NULLIF ( + 10, - SUM ( - 57 ) ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT DISTINCT + MIN( DISTINCT CASE - - 58 WHEN + - 49 THEN + 9 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT + MIN ( DISTINCT CASE - - 58 WHEN + - 49 THEN + 9 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT 48 + - + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-9473
SELECT 48 + - + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT DISTINCT - COUNT( * ) + 27 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT - COUNT ( * ) + 27 AS col1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT 31 DIV + ( + 48 ) * + + 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9475
SELECT 31 / + ( + 48 ) * + + 66 AS col0
----
0

query I rowsort
SELECT ALL + 31 * + 81 AS col0
----
2511

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT COUNT( - + 66 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9477
SELECT COUNT ( - + 66 ) AS col1
----
1

query II rowsort
SELECT DISTINCT - 40 + ( 97 ), - 55 + 33 * ( 44 ) AS col1
----
57
1397

query I rowsort
SELECT ALL + 18 + - + 69
----
-51

query I rowsort
SELECT 21 * - - 94 + - 1
----
1973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9481
SELECT ALL - + 61 + + CAST( 61 AS SIGNED ) * - COUNT( - 99 )
----
-122

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL - + 61 + + CAST ( 61 AS INTEGER ) * - COUNT ( - 99 )
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT ALL 51 + - ( + - COUNT( * ) ), COUNT( * ) * ( - - COUNT( * ) ) * - 76 * COUNT( * ) - - 41 + 68 * - - 93 AS col2
----
52
6289

skipif mysql # not compatible
query II rowsort label-9482
SELECT ALL 51 + - ( + - COUNT ( * ) ), COUNT ( * ) * ( - - COUNT ( * ) ) * - 76 * COUNT ( * ) - - 41 + 68 * - - 93 AS col2
----
52
6289

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT COUNT( * ) - + 35 * - 42 + - + 89
----
1382

skipif mysql # not compatible
query I rowsort label-9483
SELECT COUNT ( * ) - + 35 * - 42 + - + 89
----
1382

query I rowsort
SELECT - NULLIF ( + 76, 2 )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-9485
SELECT ALL + 3, - MAX( + - ( 22 ) ) + + + COUNT( * ) AS col2
----
3
23

skipif mysql # not compatible
query II rowsort label-9485
SELECT ALL + 3, - MAX ( + - ( 22 ) ) + + + COUNT ( * ) AS col2
----
3
23

query I rowsort
SELECT - + ( - 12 ) AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9487
SELECT ALL - 91 + + COUNT( * ) DIV - 33 * - + SUM( - 49 )
----
-91

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL - 91 + + COUNT ( * ) / - 33 * - + SUM ( - 49 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT 35 * 58 * + - COUNT( * ) * 73 AS col0
----
-148190

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT 35 * 58 * + - COUNT ( * ) * 73 AS col0
----
-148190

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT DISTINCT - + NULLIF ( + + ( 41 ), - COALESCE ( AVG ( DISTINCT + 77 ), + 2 * - - 33 / - COUNT( * ) ) ) - + CASE - - 46 WHEN 38 THEN NULL WHEN + 87 THEN 50 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT - + NULLIF ( + + ( 41 ), - COALESCE ( AVG ( DISTINCT + 77 ), + 2 * - - 33 / - COUNT ( * ) ) ) - + CASE - - 46 WHEN 38 THEN NULL WHEN + 87 THEN 50 END AS col0
----
NULL

query II rowsort
SELECT ALL 97 - + ( - + 62 ) AS col2, + 35 AS col2
----
159
35

query I rowsort
SELECT DISTINCT + 72 * 9 AS col0
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT - COALESCE ( - 2, + 1 ) + MAX( DISTINCT - + 9 )
----
-7

skipif mysql # not compatible
query I rowsort label-9492
SELECT - COALESCE ( - 2, + 1 ) + MAX ( DISTINCT - + 9 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9493
SELECT - 50 * - 52 + - COALESCE ( + 73, - 2 + 7 + 16, - MIN( + 99 ) DIV + CAST( NULL AS SIGNED ) )
----
2527

skipif mysql # not compatible
query I rowsort label-9493
SELECT - 50 * - 52 + - COALESCE ( + 73, - 2 + 7 + 16, - MIN ( + 99 ) / + CAST ( NULL AS INTEGER ) )
----
2527

query I rowsort
SELECT ALL - 39 * + 52
----
-2028

onlyif mysql # aggregate syntax: 
query II rowsort label-9495
SELECT 90 AS col0, - COUNT( 35 )
----
90
-1

skipif mysql # not compatible
query II rowsort label-9495
SELECT 90 AS col0, - COUNT ( 35 )
----
90
-1

query I rowsort
SELECT 90 + + 65 * 95
----
6265

query I rowsort
SELECT 26 - + + 56 * + + 42
----
-2326

query I rowsort
SELECT 97 * + + 0 AS col0
----
0

query I rowsort
SELECT 32 * + + 68 AS col0
----
2176

onlyif mysql # aggregate syntax: 
query II rowsort label-9500
SELECT ALL 76 AS col2, COUNT( * ) col2
----
76
1

skipif mysql # not compatible
query II rowsort label-9500
SELECT ALL 76 AS col2, COUNT ( * ) col2
----
76
1

query II rowsort
SELECT 76 AS col0, 23 AS col2
----
76
23

query I rowsort
SELECT ALL - AVG ( DISTINCT 62 ) * + CASE - 57 WHEN - 37 THEN + + 8 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT COUNT( * ) * + 15 * 0
----
0

skipif mysql # not compatible
query I rowsort label-9503
SELECT COUNT ( * ) * + 15 * 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9504
SELECT DISTINCT 57 DIV ( COUNT( * ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT 57 / ( COUNT ( * ) ) AS col2
----
57

query I rowsort
SELECT DISTINCT + 17 * - 60 AS col1
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT - MIN( + + ( + + 35 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT - MIN ( + + ( + + 35 ) )
----
-35

query II rowsort
SELECT ALL - 77, 27 AS col2
----
-77
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT COUNT( * ) + + - 28 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9508
SELECT COUNT ( * ) + + - 28 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-9509
SELECT + 97, - MIN( - - 63 ) * - + 32 AS col1
----
97
2016

skipif mysql # not compatible
query II rowsort label-9509
SELECT + 97, - MIN ( - - 63 ) * - + 32 AS col1
----
97
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT 90 * - - 80 + - COUNT( DISTINCT - 62 ) AS col0
----
7199

skipif mysql # not compatible
query I rowsort label-9510
SELECT 90 * - - 80 + - COUNT ( DISTINCT - 62 ) AS col0
----
7199

onlyif mysql # aggregate syntax: 
query II rowsort label-9511
SELECT 19, COUNT( * ) col1
----
19
1

skipif mysql # not compatible
query II rowsort label-9511
SELECT 19, COUNT ( * ) col1
----
19
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9512
SELECT ALL - 17 * + + CAST( - + 68 AS SIGNED ) AS col0
----
1156

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL - 17 * + + CAST ( - + 68 AS INTEGER ) AS col0
----
1156

query II rowsort
SELECT 27 col2, 61
----
27
61

onlyif mysql # aggregate syntax: 
query II rowsort label-9514
SELECT DISTINCT - COUNT( * ) AS col1, 33 + - + 9 AS col1
----
-1
24

skipif mysql # not compatible
query II rowsort label-9514
SELECT DISTINCT - COUNT ( * ) AS col1, 33 + - + 9 AS col1
----
-1
24

query I rowsort
SELECT ALL 68 + + - 19
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL + 47 + - + MIN( + + 14 ) col2
----
33

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL + 47 + - + MIN ( + + 14 ) col2
----
33

query I rowsort
SELECT - 82 + + 4 + - 12 + 96 AS col0
----
6

query I rowsort
SELECT ALL 52 + - 14
----
38

query II rowsort
SELECT ALL - 49 AS col0, - 25 - - 60 AS col0
----
-49
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT - CASE + 80 WHEN - COALESCE ( - 15, - - CASE - - 41 WHEN 42 + - 53 THEN NULL ELSE 81 END * + ( - 4 ), 82 + COUNT( * ) ) - + 72 + + + COUNT( * ) + + 44 / + 53 THEN - - 66 ELSE + 97 END AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT - CASE + 80 WHEN - COALESCE ( - 15, - - CASE - - 41 WHEN 42 + - 53 THEN NULL ELSE 81 END * + ( - 4 ), 82 + COUNT ( * ) ) - + 72 + + + COUNT ( * ) + + 44 / + 53 THEN - - 66 ELSE + 97 END AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9521
SELECT ALL + 86 + - - CASE + 91 WHEN - 22 * + COUNT( * ) * - - 59 + 80 + COUNT( * ) THEN - + 80 ELSE + CAST( NULL AS SIGNED ) + - ( + 9 ) + + 53 END + COUNT( 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + 86 + - - CASE + 91 WHEN - 22 * + COUNT ( * ) * - - 59 + 80 + COUNT ( * ) THEN - + 80 ELSE + CAST ( NULL AS INTEGER ) + - ( + 9 ) + + 53 END + COUNT ( 42 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT + COUNT( * ) + + 64 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9522
SELECT + COUNT ( * ) + + 64 AS col2
----
65

query I rowsort
SELECT + 32 + 33 + - 25
----
40

query I rowsort
SELECT ALL - 95 + - 90 AS col2
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT + + SUM( + + ( + NULLIF ( - ( - NULLIF ( CAST( NULL AS SIGNED ), 48 ) ), + 16 + - 38 * 62 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT + + SUM ( + + ( + NULLIF ( - ( - NULLIF ( CAST ( NULL AS INTEGER ), 48 ) ), + 16 + - 38 * 62 ) ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 83 * 32 + 73
----
-2583

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9527
SELECT CAST( NULL AS DECIMAL ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT CAST ( NULL AS REAL ) * - 79
----
NULL

query II rowsort
SELECT ALL 68, 17 AS col2
----
68
17

query II rowsort
SELECT DISTINCT - 44 AS col2, + 62
----
-44
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT DISTINCT ( COUNT( DISTINCT 55 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT ( COUNT ( DISTINCT 55 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9531
SELECT + COUNT( * ) DIV + - 43 - - 90
----
90

skipif mysql # not compatible
query I rowsort label-9531
SELECT + COUNT ( * ) / + - 43 - - 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT - - MAX( - - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9532
SELECT - - MAX ( - - 43 )
----
43

query I rowsort
SELECT ALL + NULLIF ( 49, - + 80 ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9534
SELECT + 48 * + - ( + 94 ) - MAX( - 88 ) * + ( 52 ) * COUNT( * ) - + - 31 * + 59 * - CAST( NULL AS SIGNED ) + 82 * 39 * - - 33 * + 32 + + + 38 + - CAST( ( - COUNT( - 80 ) ) AS SIGNED ) * + 48 * 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT + 48 * + - ( + 94 ) - MAX ( - 88 ) * + ( 52 ) * COUNT ( * ) - + - 31 * + 59 * - CAST ( NULL AS INTEGER ) + 82 * 39 * - - 33 * + 32 + + + 38 + - CAST ( ( - COUNT ( - 80 ) ) AS INTEGER ) * + 48 * 43 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - 96, - 51, + 92 ) + + ( 90 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT - MAX( ALL ( 82 ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9536
SELECT - MAX ( ALL ( 82 ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT 35 + - + SUM( DISTINCT - ( + + 14 ) )
----
49

skipif mysql # not compatible
query I rowsort label-9537
SELECT 35 + - + SUM ( DISTINCT - ( + + 14 ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT ALL 70 * 90 * - - COUNT( * ) * - 66
----
-415800

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL 70 * 90 * - - COUNT ( * ) * - 66
----
-415800

query I rowsort
SELECT COALESCE ( 56, + 99 + - - 79, 8 ) + + ( + 41 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT ALL - 30 * + COUNT( * ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL - 30 * + COUNT ( * ) col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT DISTINCT CASE 53 WHEN - 6 THEN + 44 + - + 99 WHEN + COUNT( * ) - 54 THEN NULL WHEN + 93 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT CASE 53 WHEN - 6 THEN + 44 + - + 99 WHEN + COUNT ( * ) - 54 THEN NULL WHEN + 93 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 34 + + 77 AS col2
----
111

query I rowsort
SELECT - 75 - 6 * + 30 - + 69
----
-324

query I rowsort
SELECT - COALESCE ( - + 0, 2 * + + 21 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9545
SELECT + 92 DIV - - 21 col1, - MIN( - 18 )
----
4
18

skipif mysql # not compatible
query II rowsort label-9545
SELECT + 92 / - - 21 col1, - MIN ( - 18 )
----
4
18

query I rowsort
SELECT + 98 + - 84 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT DISTINCT COUNT( * ) + + 33 + ( - + 90 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT COUNT ( * ) + + 33 + ( - + 90 ) AS col2
----
-56

query I rowsort
SELECT + ( 25 ) + - + ( 53 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT + MIN( - - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-9549
SELECT + MIN ( - - 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9550
SELECT - 50 * CAST( NULL AS SIGNED ) * - 54 + - 36 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT - 50 * CAST ( NULL AS INTEGER ) * - 54 + - 36 col2
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 51, - 8 - CASE 30 WHEN + + 73 THEN NULL ELSE + 52 * - + 3 END * - 42 ) * - 68 + - 68 AS col0
----
-3536

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT + 38 * + - MAX( + 46 ) * 60 AS col1
----
-104880

skipif mysql # not compatible
query I rowsort label-9552
SELECT + 38 * + - MAX ( + 46 ) * 60 AS col1
----
-104880

query I rowsort
SELECT - ( + 46 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL CASE WHEN NOT NULL NOT BETWEEN NULL AND - 87 THEN NULL WHEN 85 IS NULL THEN NULL ELSE 26 END * + - 50 * + + MAX( ALL 40 ) + 70 AS col2
----
-51930

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL CASE WHEN NOT NULL NOT BETWEEN NULL AND - 87 THEN NULL WHEN 85 IS NULL THEN NULL ELSE 26 END * + - 50 * + + MAX ( ALL 40 ) + 70 AS col2
----
-51930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9555
SELECT ALL + + CAST( - 97 AS SIGNED ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL + + CAST ( - 97 AS INTEGER ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT + - 10 * - COUNT( * ) - - + 4
----
14

skipif mysql # not compatible
query I rowsort label-9556
SELECT + - 10 * - COUNT ( * ) - - + 4
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT DISTINCT 72 * + + 72 * + COUNT( * ) * - CAST( NULL AS SIGNED ) + + - COALESCE ( + 1, + 45, - 20 * + 82 ) - 21 * - 86 * - COALESCE ( SUM( 69 ), 16 + 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT 72 * + + 72 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + - COALESCE ( + 1, + 45, - 20 * + 82 ) - 21 * - 86 * - COALESCE ( SUM ( 69 ), 16 + 3 )
----
NULL

query I rowsort
SELECT ALL + 90 * - + 24 - + + 82
----
-2242

query I rowsort
SELECT ALL - + ( + + 97 ) * - 68
----
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT DISTINCT - NULLIF ( - + 17, + SUM( ALL - 9 ) ) * + - COUNT( * ) + + 81 + + 97 - - 57 * - + COUNT( * ) * + + 78 * + + 25 - + + 91
----
-111080

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT - NULLIF ( - + 17, + SUM ( ALL - 9 ) ) * + - COUNT ( * ) + + 81 + + 97 - - 57 * - + COUNT ( * ) * + + 78 * + + 25 - + + 91
----
-111080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9561
SELECT ALL + ( + CAST( 11 AS SIGNED ) )
----
11

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL + ( + CAST ( 11 AS INTEGER ) )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9562
SELECT ALL - - COUNT( * ) DIV - 42 * - 15 + - 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - - COUNT ( * ) / - 42 * - 15 + - 94 AS col2
----
-94

query I rowsort
SELECT DISTINCT + - 75 col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9564
SELECT + - NULLIF ( ( + COUNT( * ) ), + - 96 + 32 * + CAST( 18 AS SIGNED ) * AVG ( DISTINCT - 29 ) ) - + + 18 * + COUNT( * ) * + - CAST( 71 AS SIGNED ) * 52 + + - 24 DIV - 31 + - 18 AS col0, 93
----
66437
93

skipif mysql # not compatible
query II rowsort label-9564
SELECT + - NULLIF ( ( + COUNT ( * ) ), + - 96 + 32 * + CAST ( 18 AS INTEGER ) * AVG ( DISTINCT - 29 ) ) - + + 18 * + COUNT ( * ) * + - CAST ( 71 AS INTEGER ) * 52 + + - 24 / - 31 + - 18 AS col0, 93
----
66437
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT - - 44 * + 46 * + MIN( - 68 ) + - ( - + CASE - 41 WHEN + 24 THEN 19 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT - - 44 * + 46 * + MIN ( - 68 ) + - ( - + CASE - 41 WHEN + 24 THEN 19 END ) AS col2
----
NULL

query II rowsort
SELECT + + 33 + - 27 AS col0, + 45 * - - 45 * 12 AS col0
----
6
24300

query II rowsort
SELECT ( + 86 ), - 71 col2
----
86
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-9568
SELECT ALL + - 14 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL + - 14 / - 90
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9569
SELECT - 90 * + + 18 AS col1, CASE + 76 WHEN 85 THEN - 42 END / - + 41 + COUNT( * ) + 68 * + 82
----
-1620
NULL

skipif mysql # not compatible
query II rowsort label-9569
SELECT - 90 * + + 18 AS col1, CASE + 76 WHEN 85 THEN - 42 END / - + 41 + COUNT ( * ) + 68 * + 82
----
-1620
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9570
SELECT COUNT( * ) AS col1, + COUNT( * ) DIV 52
----
1
0

skipif mysql # not compatible
query II rowsort label-9570
SELECT COUNT ( * ) AS col1, + COUNT ( * ) / 52
----
1
0

query I rowsort
SELECT - 11 - - ( + 66 ) AS col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9572
SELECT ALL CAST( NULL AS SIGNED ) / + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL CAST ( NULL AS INTEGER ) / + 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT - 28 DIV 68 col2
----
0

skipif mysql # not compatible
query I rowsort label-9573
SELECT - 28 / 68 col2
----
0

query I rowsort
SELECT ALL + 89 + - 43 col1
----
46

query I rowsort
SELECT ALL - ( 84 ) + + 34
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9576
SELECT - 99 + - COUNT( * ) DIV 67 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9576
SELECT - 99 + - COUNT ( * ) / 67 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT - 16 * - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-9577
SELECT - 16 * - COUNT ( * )
----
16

query I rowsort
SELECT - 75 + + 84 AS col2
----
9

query I rowsort
SELECT + 57 - - 53 + 23 AS col2
----
133

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9580
SELECT + ( - CAST( NULL AS DECIMAL ) ) - 16 - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT + ( - CAST ( NULL AS REAL ) ) - 16 - - 97
----
NULL

query I rowsort
SELECT ALL 15 + + + 16 col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT - 21 + MAX( + 55 ) + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9582
SELECT - 21 + MAX ( + 55 ) + - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL ( MIN( + 76 ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL ( MIN ( + 76 ) ) AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9584
SELECT DISTINCT + ( - 43 ) * 31 / - - CASE - 15 WHEN 99 * - 78 - + CAST( NULL AS SIGNED ) THEN - + COUNT( * ) * 68 - - NULLIF ( - 35, - 27 + 86 * 56 ) / + - 9 WHEN + ( + - 38 ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT + ( - 43 ) * 31 / - - CASE - 15 WHEN 99 * - 78 - + CAST ( NULL AS INTEGER ) THEN - + COUNT ( * ) * 68 - - NULLIF ( - 35, - 27 + 86 * 56 ) / + - 9 WHEN + ( + - 38 ) THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 26 + + 99 AS col1
----
73

query I rowsort
SELECT - 85 * + 67 AS col2
----
-5695

query I rowsort
SELECT 64 * + 0 + 91 - + 83 * - 60 col2
----
5071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9588
SELECT + 18 AS col1, COUNT( * ) * + - NULLIF ( CAST( NULL AS SIGNED ), - 18 )
----
18
NULL

skipif mysql # not compatible
query II rowsort label-9588
SELECT + 18 AS col1, COUNT ( * ) * + - NULLIF ( CAST ( NULL AS INTEGER ), - 18 )
----
18
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9589
SELECT COUNT( * ) AS col2, - 65 + + 53 + - - 48 * COUNT( * )
----
1
36

skipif mysql # not compatible
query II rowsort label-9589
SELECT COUNT ( * ) AS col2, - 65 + + 53 + - - 48 * COUNT ( * )
----
1
36

query II rowsort
SELECT DISTINCT + + 23 AS col1, 8 * - 90 AS col1
----
23
-720

query I rowsort
SELECT ALL 20 * + 92 AS col1
----
1840

query I rowsort
SELECT ALL - 54 * 20 AS col2
----
-1080

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9593
SELECT ( 6 ) * - 49 * + CASE + 3 WHEN + - 22 * 0 - + - MIN( ALL + - 32 ) THEN NULL WHEN + - COUNT( * ) + + - MIN( DISTINCT CAST( NULL AS DECIMAL ) ) * + 34 * 93 - - 14 THEN NULL ELSE 31 + + 81 END + - 91 AS col2
----
-33019

skipif mysql # not compatible
query I rowsort label-9593
SELECT ( 6 ) * - 49 * + CASE + 3 WHEN + - 22 * 0 - + - MIN ( ALL + - 32 ) THEN NULL WHEN + - COUNT ( * ) + + - MIN ( DISTINCT CAST ( NULL AS REAL ) ) * + 34 * 93 - - 14 THEN NULL ELSE 31 + + 81 END + - 91 AS col2
----
-33019

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9594
SELECT + CAST( NULL AS SIGNED ) * - + 94 - 3, - 79 + - 72 AS col0
----
NULL
-151

skipif mysql # not compatible
query II rowsort label-9594
SELECT + CAST ( NULL AS INTEGER ) * - + 94 - 3, - 79 + - 72 AS col0
----
NULL
-151

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9595
SELECT + + 74 / - CAST( NULL AS DECIMAL ) / + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT + + 74 / - CAST ( NULL AS REAL ) / + 80
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT - 83 * - 53 * + + CAST( NULL AS SIGNED ) - 49 - - 22 - - 83 * + ( + 15 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT - 83 * - 53 * + + CAST ( NULL AS INTEGER ) - 49 - - 22 - - 83 * + ( + 15 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL 91 * - - 11 + + 44 * 50 * - COUNT( * ) * - 45 AS col0
----
100001

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL 91 * - - 11 + + 44 * 50 * - COUNT ( * ) * - 45 AS col0
----
100001

query II rowsort
SELECT + 64, - 38 AS col2
----
64
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT + + CASE + 49 WHEN 10 THEN + CASE - 67 WHEN COUNT( * ) THEN NULL WHEN 97 THEN NULL ELSE - COUNT( * ) * + 13 END * + 62 + + 19 WHEN - COUNT( * ) * + 86 + - COUNT( * ) THEN - 78 END * - 44 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT + + CASE + 49 WHEN 10 THEN + CASE - 67 WHEN COUNT ( * ) THEN NULL WHEN 97 THEN NULL ELSE - COUNT ( * ) * + 13 END * + 62 + + 19 WHEN - COUNT ( * ) * + 86 + - COUNT ( * ) THEN - 78 END * - 44 * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 48 * 76 AS col2
----
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT ALL + + COUNT( DISTINCT + - 67 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL + + COUNT ( DISTINCT + - 67 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 43 * - 33 + + 31 AS col0
----
-1388

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL ( - COUNT( - 0 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL ( - COUNT ( - 0 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT 35 + - + 18 * COUNT( * ) * + 48 col0
----
-829

skipif mysql # not compatible
query I rowsort label-9604
SELECT 35 + - + 18 * COUNT ( * ) * + 48 col0
----
-829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9605
SELECT CAST( NULL AS SIGNED ) * 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT CAST ( NULL AS INTEGER ) * 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT 60 + MAX( - 97 )
----
-37

skipif mysql # not compatible
query I rowsort label-9606
SELECT 60 + MAX ( - 97 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT DISTINCT + 58 + + 17 / COUNT( * ) * + CASE + - ( + 97 ) WHEN SUM( ALL + - 96 ) * COUNT( * ) THEN + 29 END + + + 18 * + - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT + 58 + + 17 / COUNT ( * ) * + CASE + - ( + 97 ) WHEN SUM ( ALL + - 96 ) * COUNT ( * ) THEN + 29 END + + + 18 * + - 59 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( + 57 ) + + - 11 AS col1
----
46

query I rowsort
SELECT ALL + 40 + - 79 AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9610
SELECT 50 * 3 * - + NULLIF ( - + 75, - CAST( - 24 AS SIGNED ) + 47 ) AS col0, 72
----
11250
72

skipif mysql # not compatible
query II rowsort label-9610
SELECT 50 * 3 * - + NULLIF ( - + 75, - CAST ( - 24 AS INTEGER ) + 47 ) AS col0, 72
----
11250
72

query II rowsort
SELECT ALL + 68 * + CASE + + 47 WHEN + 74 / - AVG ( ALL + 99 ) THEN + + 14 + - - 79 ELSE - - 52 END, - 41 col2
----
3536
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9612
SELECT 57 + - 23 * - + ( + 93 ) * CAST( NULL AS DECIMAL ) AS col0, 50 + - 65
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-9612
SELECT 57 + - 23 * - + ( + 93 ) * CAST ( NULL AS REAL ) AS col0, 50 + - 65
----
NULL
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT DISTINCT + MAX( - 3 ) + + 45 * 86 col2
----
3867

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT + MAX ( - 3 ) + + 45 * 86 col2
----
3867

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9614
SELECT DISTINCT - 13 DIV - MIN( - 87 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT - 13 / - MIN ( - 87 ) col2
----
0

query I rowsort
SELECT 50 - + 74
----
-24

query I rowsort
SELECT + ( 59 ) AS col1
----
59

query I rowsort
SELECT ALL - + NULLIF ( 44, ( + 62 ) * AVG ( COALESCE ( ( - 27 ), + 15, + - 4 * + 37 ) ) + - 78 / - - 75 * - 55 ) AS col2
----
-44

query I rowsort
SELECT DISTINCT - + 86 AS col1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9619
SELECT DISTINCT 90 * 98 DIV - 33
----
-267

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT 90 * 98 / - 33
----
-267

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9620
SELECT ALL CAST( NULL AS DECIMAL ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL CAST ( NULL AS REAL ) * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT + 55 * - 3 + + COUNT( * )
----
-164

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT + 55 * - 3 + + COUNT ( * )
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT + 1 + + + 94 * NULLIF ( COALESCE ( - CAST( NULL AS SIGNED ), - 21 ), - 53 * 56 )
----
-1973

skipif mysql # not compatible
query I rowsort label-9622
SELECT + 1 + + + 94 * NULLIF ( COALESCE ( - CAST ( NULL AS INTEGER ), - 21 ), - 53 * 56 )
----
-1973

query I rowsort
SELECT ALL - + CASE + + 36 WHEN + 25 THEN NULL WHEN - - 22 / + 38 THEN - - 94 * 74 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT + 45 * COALESCE ( 36, + COUNT( * ) * + 14 + + 36 - + 53 * - - 7 + - - 2 * - 79 * ( + - NULLIF ( + 0, + 31 ) ) ) + 89 + + ( - 53 ) * + + 30 + + COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-9624
SELECT + 45 * COALESCE ( 36, + COUNT ( * ) * + 14 + + 36 - + 53 * - - 7 + - - 2 * - 79 * ( + - NULLIF ( + 0, + 31 ) ) ) + 89 + + ( - 53 ) * + + 30 + + COUNT ( * )
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9625
SELECT DISTINCT 93 + - + NULLIF ( + 13, + COUNT( * ) + + + ( + COUNT( * ) ) + + 35 * - + COUNT( * ) * - - 44 * + 46 ) + + 73 DIV - 53 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT 93 + - + NULLIF ( + 13, + COUNT ( * ) + + + ( + COUNT ( * ) ) + + 35 * - + COUNT ( * ) * - - 44 * + 46 ) + + 73 / - 53 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT ALL + COALESCE ( 64, - + 7 ) + COUNT( * ) + + ( + SUM( ALL - 79 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL + COALESCE ( 64, - + 7 ) + COUNT ( * ) + + ( + SUM ( ALL - 79 ) )
----
-14

query I rowsort
SELECT ( + + 11 ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9628
SELECT 39 * + + ( - 50 ) + + CAST( COUNT( * ) AS SIGNED ) / + 6 - - ( + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9628
SELECT 39 * + + ( - 50 ) + + CAST ( COUNT ( * ) AS INTEGER ) / + 6 - - ( + CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 20 * 5
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-9630
SELECT DISTINCT + 29 + + COUNT( * ) AS col2, 15
----
30
15

skipif mysql # not compatible
query II rowsort label-9630
SELECT DISTINCT + 29 + + COUNT ( * ) AS col2, 15
----
30
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9631
SELECT ALL 64 + - 2 - - - 22 * - 76 * + 28 DIV - 1 - + 65
----
-46819

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL 64 + - 2 - - - 22 * - 76 * + 28 / - 1 - + 65
----
-46819

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL 82 * COUNT( * ) * - 34
----
-2788

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL 82 * COUNT ( * ) * - 34
----
-2788

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9633
SELECT 35 DIV - ( + - 62 ), COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-9633
SELECT 35 / - ( + - 62 ), COUNT ( * ) AS col0
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9634
SELECT ALL 94 + + - 73 - - + ( - - 71 ) + + 55 + 37 DIV + COUNT( * ) AS col0
----
184

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL 94 + + - 73 - - + ( - - 71 ) + + 55 + 37 / + COUNT ( * ) AS col0
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9635
SELECT 6 + 24 + + NULLIF ( - + 50, + 37 ) + - - COUNT( * ) DIV + + 31 * + 21 AS col0, + 43 - + 79 AS col0
----
-20
-36

skipif mysql # not compatible
query II rowsort label-9635
SELECT 6 + 24 + + NULLIF ( - + 50, + 37 ) + - - COUNT ( * ) / + + 31 * + 21 AS col0, + 43 - + 79 AS col0
----
-20
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9636
SELECT ALL 11 * + CAST( NULL AS SIGNED ) / + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL 11 * + CAST ( NULL AS INTEGER ) / + 82
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9637
SELECT + 74, + 55 DIV + + COUNT( * ) - ( - COALESCE ( - - 73, + - 95 * - 15 + - 61, - ( + 88 ) + 17 + SUM( DISTINCT + ( + 37 ) ) ) ) + COUNT( * ) AS col0
----
74
129

skipif mysql # not compatible
query II rowsort label-9637
SELECT + 74, + 55 / + + COUNT ( * ) - ( - COALESCE ( - - 73, + - 95 * - 15 + - 61, - ( + 88 ) + 17 + SUM ( DISTINCT + ( + 37 ) ) ) ) + COUNT ( * ) AS col0
----
74
129

query I rowsort
SELECT 25 + + 87
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-9639
SELECT 77 AS col1, + 3 * - 16 + - COUNT( * ) + COUNT( * )
----
77
-48

skipif mysql # not compatible
query II rowsort label-9639
SELECT 77 AS col1, + 3 * - 16 + - COUNT ( * ) + COUNT ( * )
----
77
-48

query I rowsort
SELECT ALL ( - + 12 ) * - 29 AS col2
----
348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9641
SELECT MAX( ALL + CAST( NULL AS SIGNED ) ) - + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT MAX ( ALL + CAST ( NULL AS INTEGER ) ) - + 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9642
SELECT DISTINCT CAST( - 22 AS SIGNED ) * + 89 + - - COUNT( * ) AS col1
----
-1957

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT CAST ( - 22 AS INTEGER ) * + 89 + - - COUNT ( * ) AS col1
----
-1957

query I rowsort
SELECT ALL 80 - + 55
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT COUNT( * ) + - CASE + ( + ( + - 30 ) ) WHEN CASE - - 72 WHEN + 66 / 54 * + COUNT( * ) / - - 8 * - 16 THEN - 9 END * 45 / - 72 THEN NULL WHEN 17 / 61 + - + 20 * 86 - - 87 THEN - 88 WHEN - 97 THEN - 20 * - 46 END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT COUNT ( * ) + - CASE + ( + ( + - 30 ) ) WHEN CASE - - 72 WHEN + 66 / 54 * + COUNT ( * ) / - - 8 * - 16 THEN - 9 END * 45 / - 72 THEN NULL WHEN 17 / 61 + - + 20 * 86 - - 87 THEN - 88 WHEN - 97 THEN - 20 * - 46 END * 85
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9645
SELECT 77 AS col1, + 2 - MAX( + 4 )
----
77
-2

skipif mysql # not compatible
query II rowsort label-9645
SELECT 77 AS col1, + 2 - MAX ( + 4 )
----
77
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9646
SELECT 50 + - 49 + COUNT( * ) + - COALESCE ( + 58, - - 69 + + + 28 ) DIV 88 * + MAX( + + 39 ) * + ( + 14 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9646
SELECT 50 + - 49 + COUNT ( * ) + - COALESCE ( + 58, - - 69 + + + 28 ) / 88 * + MAX ( + + 39 ) * + ( + 14 ) AS col1
----
2

query I rowsort
SELECT 85 * + 67 AS col0
----
5695

onlyif mysql # DIV for integer division: 
query I rowsort label-9648
SELECT ALL - 37 DIV - + 9 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL - 37 / - + 9 AS col1
----
4

query I rowsort
SELECT DISTINCT - 28 * - 14
----
392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9650
SELECT + 26 DIV - CASE 14 WHEN + 20 THEN NULL WHEN 49 - 50 THEN - 97 WHEN + MAX( DISTINCT + 60 ) * + CAST( NULL AS SIGNED ) THEN 95 ELSE - ( + - ( 89 ) ) + 11 - - 53 END
----
0

skipif mysql # not compatible
query I rowsort label-9650
SELECT + 26 / - CASE 14 WHEN + 20 THEN NULL WHEN 49 - 50 THEN - 97 WHEN + MAX ( DISTINCT + 60 ) * + CAST ( NULL AS INTEGER ) THEN 95 ELSE - ( + - ( 89 ) ) + 11 - - 53 END
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9651
SELECT ALL 96 DIV - SUM( 32 )
----
-3

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL 96 / - SUM ( 32 )
----
-3

query I rowsort
SELECT ALL + 76 * + 40 AS col0
----
3040

query I rowsort
SELECT ALL - 18 * 63
----
-1134

query I rowsort
SELECT 5 * - - 0 AS col1
----
0

query I rowsort
SELECT - 76 * + 82 AS col1
----
-6232

query I rowsort
SELECT 38 + - 31
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT + + COUNT( + + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-9657
SELECT + + COUNT ( + + 58 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9658
SELECT ALL - - COUNT( * ) DIV - + 79
----
0

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL - - COUNT ( * ) / - + 79
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9659
SELECT + 24 * 36 - + 83 + COUNT( DISTINCT - - 50 ) AS col0, 38 * - + 1 - NULLIF ( - - 22, + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col0
----
782
-60

skipif mysql # not compatible
query II rowsort label-9659
SELECT + 24 * 36 - + 83 + COUNT ( DISTINCT - - 50 ) AS col0, 38 * - + 1 - NULLIF ( - - 22, + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) AS col0
----
782
-60

query I rowsort
SELECT + 42 * - + ( 28 )
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT ALL + + 77 * + 50 + - - 25 + + COUNT( ALL - - 58 ) - - 80
----
3956

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL + + 77 * + 50 + - - 25 + + COUNT ( ALL - - 58 ) - - 80
----
3956

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT - + 33 * + 41 - + 62 * 87 DIV + 93 + - 32 AS col0
----
-1443

skipif mysql # not compatible
query I rowsort label-9662
SELECT - + 33 * + 41 - + 62 * 87 / + 93 + - 32 AS col0
----
-1443

query I rowsort
SELECT DISTINCT 78 * + 86 + + 31 * + + 64
----
8692

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL - 76 * - - 27 + + - CASE 46 WHEN NULLIF ( + ( + 56 ), + + CASE + 20 WHEN - - 99 * SUM( DISTINCT - 92 ) THEN NULL WHEN + 56 * - 59 * + 72 * 60 THEN - 43 ELSE NULL END ) / + 1 - + 72 * - + 60 + - 92 + 5 THEN COUNT( * ) ELSE 25 * + 38 END * 33
----
-33402

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL - 76 * - - 27 + + - CASE 46 WHEN NULLIF ( + ( + 56 ), + + CASE + 20 WHEN - - 99 * SUM ( DISTINCT - 92 ) THEN NULL WHEN + 56 * - 59 * + 72 * 60 THEN - 43 ELSE NULL END ) / + 1 - + 72 * - + 60 + - 92 + 5 THEN COUNT ( * ) ELSE 25 * + 38 END * 33
----
-33402

onlyif mysql # aggregate syntax: 
query II rowsort label-9665
SELECT DISTINCT + 13 AS col0, 37 + NULLIF ( - 79, + COUNT( * ) ) + - 45 * + COUNT( * ) * + MIN( 68 ) + - 4 * 10 - - + 95 * + 61 * - + 58 * CASE - + 6 WHEN 14 THEN NULL ELSE + 18 - + - COALESCE ( + - ( + 26 ), - COUNT( * ) * + - COUNT( * ) ) END + - 94 + + - COALESCE ( - 93, + ( 23 ) ) * 26 * 33 * - 47
----
13
-1064674

skipif mysql # not compatible
query II rowsort label-9665
SELECT DISTINCT + 13 AS col0, 37 + NULLIF ( - 79, + COUNT ( * ) ) + - 45 * + COUNT ( * ) * + MIN ( 68 ) + - 4 * 10 - - + 95 * + 61 * - + 58 * CASE - + 6 WHEN 14 THEN NULL ELSE + 18 - + - COALESCE ( + - ( + 26 ), - COUNT ( * ) * + - COUNT ( * ) ) END + - 94 + + - COALESCE ( - 93, + ( 23 ) ) * 26 * 33 * - 47
----
13
-1064674

query I rowsort
SELECT - 49 * - 94 + 90
----
4696

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT DISTINCT + CASE 59 WHEN + COUNT( * ) THEN + 5 + + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT + CASE 59 WHEN + COUNT ( * ) THEN + 5 + + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL - CASE + - ( - 48 ) WHEN - COUNT( * ) THEN - MIN( DISTINCT + 45 ) ELSE + + 33 END * - 14 * + 84 AS col0
----
38808

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL - CASE + - ( - 48 ) WHEN - COUNT ( * ) THEN - MIN ( DISTINCT + 45 ) ELSE + + 33 END * - 14 * + 84 AS col0
----
38808

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT COUNT( * ) * + 23 + - - 82
----
105

skipif mysql # not compatible
query I rowsort label-9669
SELECT COUNT ( * ) * + 23 + - - 82
----
105

query I rowsort
SELECT ALL + ( + 75 ) AS col1
----
75

query I rowsort
SELECT ALL 40 - - 99
----
139

query I rowsort
SELECT DISTINCT - ( - 98 ) - + 72 AS col0
----
26

query I rowsort
SELECT ALL - 40 - + 3 AS col0
----
-43

query I rowsort
SELECT + 16 * + 66
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT - SUM( ALL + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-9675
SELECT - SUM ( ALL + 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT - MIN( DISTINCT - 70 ) * ( COUNT( * ) ) + + COALESCE ( 44, - 0 ) + - - 53 col1
----
167

skipif mysql # not compatible
query I rowsort label-9676
SELECT - MIN ( DISTINCT - 70 ) * ( COUNT ( * ) ) + + COALESCE ( 44, - 0 ) + - - 53 col1
----
167

query II rowsort
SELECT ALL 94, + 59 AS col1
----
94
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT + 80 * - - 96 * - + ( - + COUNT( * ) )
----
7680

skipif mysql # not compatible
query I rowsort label-9678
SELECT + 80 * - - 96 * - + ( - + COUNT ( * ) )
----
7680

query I rowsort
SELECT + 56 * + NULLIF ( 16, 91 )
----
896

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9680
SELECT ALL 61, + 65 * CAST( NULL AS DECIMAL ) AS col1
----
61
NULL

skipif mysql # not compatible
query II rowsort label-9680
SELECT ALL 61, + 65 * CAST ( NULL AS REAL ) AS col1
----
61
NULL

query I rowsort
SELECT + - 85 + + 31
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT - + COUNT( DISTINCT - + 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-9682
SELECT - + COUNT ( DISTINCT - + 79 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT - - COALESCE ( + + ( - 45 ), COUNT( * ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9683
SELECT - - COALESCE ( + + ( - 45 ), COUNT ( * ) ) AS col0
----
-45

query II rowsort
SELECT + 0 * + + 22 col2, - 61
----
0
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT DISTINCT - 22 + - - 60 + COUNT( * ) + + + 35 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT - 22 + - - 60 + COUNT ( * ) + + + 35 AS col1
----
74

query I rowsort
SELECT ALL 52 + + 92 * - 9
----
-776

query I rowsort
SELECT ALL - + 5 * + 55 * + 82 AS col2
----
-22550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9688
SELECT 13 AS col0, NULLIF ( + COUNT( 78 ), + + CAST( NULL AS SIGNED ) * - - COUNT( * ) + + + AVG ( ALL + 71 ) / - 1 ) - 16
----
13
-15

skipif mysql # not compatible
query II rowsort label-9688
SELECT 13 AS col0, NULLIF ( + COUNT ( 78 ), + + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + + + AVG ( ALL + 71 ) / - 1 ) - 16
----
13
-15

query I rowsort
SELECT DISTINCT - 73 * + 62 * 17 col2
----
-76942

onlyif mysql # DIV for integer division: 
query I rowsort label-9690
SELECT ALL - - 1 DIV 97 + + 32
----
32

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL - - 1 / 97 + + 32
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9691
SELECT - - 34 DIV + 61 - - 97
----
97

skipif mysql # not compatible
query I rowsort label-9691
SELECT - - 34 / + 61 - - 97
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT DISTINCT ( + CAST( - + 98 AS SIGNED ) ) * + 37 * + 22
----
-79772

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT ( + CAST ( - + 98 AS INTEGER ) ) * + 37 * + 22
----
-79772

query II rowsort
SELECT 93 AS col1, + 31 * + - 16 + - 55 * - COALESCE ( + 29, 23, + 25, 55 - - + 81 ) * - 72 AS col2
----
93
-115336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9694
SELECT 6, + CAST( NULL AS SIGNED ) + - MIN( DISTINCT - + CAST( + 91 AS SIGNED ) ) AS col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-9694
SELECT 6, + CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT - + CAST ( + 91 AS INTEGER ) ) AS col0
----
6
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9695
SELECT + + 15 AS col1, 71 DIV 71 AS col1
----
15
1

skipif mysql # not compatible
query II rowsort label-9695
SELECT + + 15 AS col1, 71 / 71 AS col1
----
15
1

query II rowsort
SELECT ALL + 58 AS col2, 54 + 73 AS col0
----
58
127

onlyif mysql # DIV for integer division: 
query I rowsort label-9697
SELECT + 29 DIV - - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9697
SELECT + 29 / - - 50 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9698
SELECT DISTINCT + 26 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT + 26 / + - 98
----
0

query I rowsort
SELECT ALL + 12 * + 22 - - - 40 col2
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT DISTINCT + CASE 83 WHEN + + 9 THEN NULL WHEN 13 THEN + 15 * + + 68 WHEN MAX( - + 90 ) * - - 22 + + 35 THEN + - ( 32 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT + CASE 83 WHEN + + 9 THEN NULL WHEN 13 THEN + 15 * + + 68 WHEN MAX ( - + 90 ) * - - 22 + + 35 THEN + - ( 32 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL + MAX( 19 )
----
19

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + MAX ( 19 )
----
19

query II rowsort
SELECT DISTINCT + ( 4 ) AS col1, - 52 AS col1
----
4
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9703
SELECT ALL - NULLIF ( - 45, + MAX( 2 ) * 19 + + 75 DIV 6 - + ( 41 ) DIV - - 32 * - 87 + 60 ) * COUNT( * ) + 91 + + 85 - + 36 + + - COALESCE ( + 67, - 33 - + + COUNT( * ) + + + 80 * + COUNT( * ) * 54 + + 33 ) DIV - 92 AS col2
----
185

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - NULLIF ( - 45, + MAX ( 2 ) * 19 + + 75 / 6 - + ( 41 ) / - - 32 * - 87 + 60 ) * COUNT ( * ) + 91 + + 85 - + 36 + + - COALESCE ( + 67, - 33 - + + COUNT ( * ) + + + 80 * + COUNT ( * ) * 54 + + 33 ) / - 92 AS col2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT DISTINCT 51 * SUM( DISTINCT + 64 ) AS col2
----
3264

skipif mysql # not compatible
query I rowsort label-9704
SELECT DISTINCT 51 * SUM ( DISTINCT + 64 ) AS col2
----
3264

query I rowsort
SELECT DISTINCT - ( + + 82 ) * + 97
----
-7954

query II rowsort
SELECT DISTINCT + ( + 50 ), - 30 AS col1
----
50
-30

query I rowsort
SELECT - 86 + 59 AS col1
----
-27

query I rowsort
SELECT - 92 * - 49 AS col1
----
4508

query I rowsort
SELECT ALL - 36 * 62 * + 59 * - 99 AS col0
----
13037112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9710
SELECT + COUNT( DISTINCT - 57 ) * - 13 DIV + NULLIF ( 90, - - COUNT( - 18 ) ) * + - ( - 82 ) * - + 70 + - ( - COUNT( * ) ) * - 92 - 39 + - 62 * + - 32 AS col2
----
1853

skipif mysql # not compatible
query I rowsort label-9710
SELECT + COUNT ( DISTINCT - 57 ) * - 13 / + NULLIF ( 90, - - COUNT ( - 18 ) ) * + - ( - 82 ) * - + 70 + - ( - COUNT ( * ) ) * - 92 - 39 + - 62 * + - 32 AS col2
----
1853

query I rowsort
SELECT - 39 + - 66 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - 37 * + + COUNT( - - 93 )
----
-37

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - 37 * + + COUNT ( - - 93 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9713
SELECT ALL 3 DIV - + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL 3 / - + 61 AS col0
----
0

query I rowsort
SELECT - NULLIF ( + 7, - 74 ) + 54 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9715
SELECT + - 81 + - CAST( NULL AS DECIMAL ) AS col1, - COALESCE ( ( + 57 ), 8 * + COUNT( * ) )
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-9715
SELECT + - 81 + - CAST ( NULL AS REAL ) AS col1, - COALESCE ( ( + 57 ), 8 * + COUNT ( * ) )
----
NULL
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT DISTINCT + + 91 DIV 10
----
9

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT + + 91 / 10
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9717
SELECT ALL - + 28 + 55 * + 42 + - 54 DIV 66
----
2282

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL - + 28 + 55 * + 42 + - 54 / 66
----
2282

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT - - MIN( DISTINCT 20 ) + 2 - + + 66
----
-44

skipif mysql # not compatible
query I rowsort label-9718
SELECT - - MIN ( DISTINCT 20 ) + 2 - + + 66
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9719
SELECT - SUM( - 57 ) DIV 24 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9719
SELECT - SUM ( - 57 ) / 24 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9720
SELECT - + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) * - MIN( + - 9 ) + - - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9720
SELECT - + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) * - MIN ( + - 9 ) + - - 93 AS col2
----
NULL

query II rowsort
SELECT - 97 * - 63 AS col0, - 14 col0
----
6111
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9722
SELECT + ( - COUNT( * ) ) * + 23 DIV + 3 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9722
SELECT + ( - COUNT ( * ) ) * + 23 / + 3 AS col2
----
-7

query I rowsort
SELECT DISTINCT - 93 + - 58 + - - 6
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-9724
SELECT DISTINCT - 77 * + 90 * 23 * 74 * 36 AS col2, + NULLIF ( + 38, 46 ) * + - COUNT( * ) AS col1
----
-424614960
-38

skipif mysql # not compatible
query II rowsort label-9724
SELECT DISTINCT - 77 * + 90 * 23 * 74 * 36 AS col2, + NULLIF ( + 38, 46 ) * + - COUNT ( * ) AS col1
----
-424614960
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9725
SELECT + - 38 * COUNT( - 18 ) * 14 - + NULLIF ( - COALESCE ( 62, + - 59, - + 37 ), - - ( - 38 ) ) * - 59 col1, - 21 AS col0
----
-4190
-21

skipif mysql # not compatible
query II rowsort label-9725
SELECT + - 38 * COUNT ( - 18 ) * 14 - + NULLIF ( - COALESCE ( 62, + - 59, - + 37 ), - - ( - 38 ) ) * - 59 col1, - 21 AS col0
----
-4190
-21

query I rowsort
SELECT ALL - 33 + - ( - 57 ) AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9727
SELECT DISTINCT CASE - 52 WHEN - 0 THEN - 65 ELSE - ( + 30 ) * CAST( NULL AS SIGNED ) * + 10 + + COUNT( * ) * + 44 * + 66 + + CAST( - 57 AS SIGNED ) + + 65 END + + SUM( ALL - - 74 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT CASE - 52 WHEN - 0 THEN - 65 ELSE - ( + 30 ) * CAST ( NULL AS INTEGER ) * + 10 + + COUNT ( * ) * + 44 * + 66 + + CAST ( - 57 AS INTEGER ) + + 65 END + + SUM ( ALL - - 74 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9728
SELECT 24 + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9728
SELECT 24 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 68 - + 72 * + + ( - 30 ) AS col0
----
2228

query I rowsort
SELECT + - 14 col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9731
SELECT ALL - MIN( DISTINCT 54 ) - - 59 - - 27 * - - 28 + - 80 - + + 78 + 89, + COUNT( * ) * + 50 AS col2
----
692
50

skipif mysql # not compatible
query II rowsort label-9731
SELECT ALL - MIN ( DISTINCT 54 ) - - 59 - - 27 * - - 28 + - 80 - + + 78 + 89, + COUNT ( * ) * + 50 AS col2
----
692
50

query I rowsort
SELECT - 77 * + 99 + 84
----
-7539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9733
SELECT + SUM( ALL - + 88 ) AS col0, ( CAST( NULL AS SIGNED ) )
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-9733
SELECT + SUM ( ALL - + 88 ) AS col0, ( CAST ( NULL AS INTEGER ) )
----
-88
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9734
SELECT ALL + 17 - CAST( - 56 AS SIGNED ) + - ( COUNT( + 95 ) ) - - 63 * + 33 * - 15 * CAST( NULL AS SIGNED ) * - COUNT( + - 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL + 17 - CAST ( - 56 AS INTEGER ) + - ( COUNT ( + 95 ) ) - - 63 * + 33 * - 15 * CAST ( NULL AS INTEGER ) * - COUNT ( + - 3 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT 82 * COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT 82 * COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT DISTINCT CASE - + 27 WHEN COUNT( * ) THEN + + 40 END / - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT CASE - + 27 WHEN COUNT ( * ) THEN + + 40 END / - 90 AS col2
----
NULL

query I rowsort
SELECT ( - 12 ) * 56 col0
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT ALL + 13 * + + 86 * - - MAX( + COALESCE ( - + 28, + 59 + ( + 69 ) + - CAST( NULL AS SIGNED ) ) ) AS col1
----
-31304

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL + 13 * + + 86 * - - MAX ( + COALESCE ( - + 28, + 59 + ( + 69 ) + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
-31304

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT ( - 95 ) + - MIN( DISTINCT + 6 ) AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-9739
SELECT ( - 95 ) + - MIN ( DISTINCT + 6 ) AS col1
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9740
SELECT ALL ( - COUNT( * ) ) - - - NULLIF ( MIN( - - 84 ), COUNT( ALL + + 22 ) + 70 ) DIV 75 DIV - + 44
----
-1

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL ( - COUNT ( * ) ) - - - NULLIF ( MIN ( - - 84 ), COUNT ( ALL + + 22 ) + 70 ) / 75 / - + 44
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9741
SELECT ALL - 89 col0, 32 - - - CAST( NULL AS SIGNED )
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-9741
SELECT ALL - 89 col0, 32 - - - CAST ( NULL AS INTEGER )
----
-89
NULL

query II rowsort
SELECT ( + CASE + 87 WHEN + - ( + 52 ) THEN + 0 + - + 46 END ) * 4 + + 52, - 80 AS col0
----
NULL
-80

query I rowsort
SELECT ALL - 40 - - 88 + 89 + + 10
----
147

query I rowsort
SELECT ( - + NULLIF ( + 65, + - 54 ) ) * + 43 AS col2
----
-2795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9745
SELECT + COUNT( 25 ) * 27 + - 58 * + 80 + + CAST( NULL AS SIGNED ) + - CASE + + 38 WHEN + 31 + + 40 THEN 53 ELSE NULL END * 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9745
SELECT + COUNT ( 25 ) * 27 + - 58 * + 80 + + CAST ( NULL AS INTEGER ) + - CASE + + 38 WHEN + 31 + + 40 THEN 53 ELSE NULL END * 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9746
SELECT ALL - COUNT( * ) AS col2, - SUM( ALL + 4 ) AS col1
----
-1
-4

skipif mysql # not compatible
query II rowsort label-9746
SELECT ALL - COUNT ( * ) AS col2, - SUM ( ALL + 4 ) AS col1
----
-1
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9747
SELECT + 79, - SUM( DISTINCT + 74 ) col1
----
79
-74

skipif mysql # not compatible
query II rowsort label-9747
SELECT + 79, - SUM ( DISTINCT + 74 ) col1
----
79
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9748
SELECT 76 DIV - 80 * - + 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9748
SELECT 76 / - 80 * - + 9 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9749
SELECT ALL - 21 AS col2, + 59 DIV + - 22
----
-21
-2

skipif mysql # not compatible
query II rowsort label-9749
SELECT ALL - 21 AS col2, + 59 / + - 22
----
-21
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT COUNT( + 57 ) * - 45 * + ( - COALESCE ( + + 37, 29 ) ) + - 77 * - 27 AS col2
----
3744

skipif mysql # not compatible
query I rowsort label-9750
SELECT COUNT ( + 57 ) * - 45 * + ( - COALESCE ( + + 37, 29 ) ) + - 77 * - 27 AS col2
----
3744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9751
SELECT CAST( + 99 AS SIGNED ) * - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-9751
SELECT CAST ( + 99 AS INTEGER ) * - COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT 95 + COUNT( * ) col0
----
96

skipif mysql # not compatible
query I rowsort label-9752
SELECT 95 + COUNT ( * ) col0
----
96

query I rowsort
SELECT 69 * + 49 AS col2
----
3381

query II rowsort
SELECT + 46 AS col2, - 58 + - + ( + 93 ) AS col0
----
46
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-9755
SELECT DISTINCT - COUNT( * ) AS col1, 1
----
-1
1

skipif mysql # not compatible
query II rowsort label-9755
SELECT DISTINCT - COUNT ( * ) AS col1, 1
----
-1
1

query I rowsort
SELECT 95 * + 18 AS col0
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL + 6 + + COUNT( * ) - - + 45 - + 26 * + COUNT( * ) + - 5
----
21

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL + 6 + + COUNT ( * ) - - + 45 - + 26 * + COUNT ( * ) + - 5
----
21

query I rowsort
SELECT - 92 * + 31 + 73 + + 53 AS col2
----
-2726

query I rowsort
SELECT - 73 * - 39 AS col0
----
2847

onlyif mysql # DIV for integer division: 
query II rowsort label-9760
SELECT + 44 AS col0, 26 DIV 36 AS col2
----
44
0

skipif mysql # not compatible
query II rowsort label-9760
SELECT + 44 AS col0, 26 / 36 AS col2
----
44
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9761
SELECT COUNT( * ) * - 14 - - 39 DIV + 42
----
-14

skipif mysql # not compatible
query I rowsort label-9761
SELECT COUNT ( * ) * - 14 - - 39 / + 42
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9762
SELECT ALL COUNT( * ) AS col0, 95 DIV - + 32 AS col1
----
1
-2

skipif mysql # not compatible
query II rowsort label-9762
SELECT ALL COUNT ( * ) AS col0, 95 / - + 32 AS col1
----
1
-2

query I rowsort
SELECT ALL - 48 + 66 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT - 37 + + MIN( 54 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT - 37 + + MIN ( 54 ) AS col0
----
17

query I rowsort
SELECT 13 + 14
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT 59 + + NULLIF ( - SUM( ALL + 31 ), - - MAX( - ( 47 ) ) )
----
28

skipif mysql # not compatible
query I rowsort label-9766
SELECT 59 + + NULLIF ( - SUM ( ALL + 31 ), - - MAX ( - ( 47 ) ) )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT 71 - COUNT( - 13 )
----
70

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT 71 - COUNT ( - 13 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT 62 * - + COUNT( * ) * + 91 AS col1
----
-5642

skipif mysql # not compatible
query I rowsort label-9768
SELECT 62 * - + COUNT ( * ) * + 91 AS col1
----
-5642

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT ALL + - 21 DIV - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL + - 21 / - 84 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9770
SELECT 93 DIV - - COALESCE ( NULLIF ( - 15, + COUNT( * ) ), 48 )
----
-6

skipif mysql # not compatible
query I rowsort label-9770
SELECT 93 / - - COALESCE ( NULLIF ( - 15, + COUNT ( * ) ), 48 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9771
SELECT - 89 - + CAST( + 58 AS SIGNED ) + - 15 col1
----
-162

skipif mysql # not compatible
query I rowsort label-9771
SELECT - 89 - + CAST ( + 58 AS INTEGER ) + - 15 col1
----
-162

query I rowsort
SELECT DISTINCT 32 * + + 97 AS col2
----
3104

query I rowsort
SELECT DISTINCT + 21 - - 70
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT 29 + 0 + + 84 * - NULLIF ( + + 60, - 0 * - 72 / - ( - NULLIF ( 94, - 34 / + 53 * - 55 * 93 + 22 ) ) * - - 63 * + CASE + 47 WHEN 59 THEN CASE - + 86 WHEN + + 46 THEN 73 * + 9 + + 82 + 60 END WHEN + + 55 - 93 * 10 THEN 0 / 62 + + 26 END - - SUM( 18 ) ) AS col2
----
-5011

skipif mysql # not compatible
query I rowsort label-9774
SELECT 29 + 0 + + 84 * - NULLIF ( + + 60, - 0 * - 72 / - ( - NULLIF ( 94, - 34 / + 53 * - 55 * 93 + 22 ) ) * - - 63 * + CASE + 47 WHEN 59 THEN CASE - + 86 WHEN + + 46 THEN 73 * + 9 + + 82 + 60 END WHEN + + 55 - 93 * 10 THEN 0 / 62 + + 26 END - - SUM ( 18 ) ) AS col2
----
-5011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9775
SELECT ALL - CASE - ( + 62 ) WHEN + 8 * + COUNT( * ) + 83 THEN + COALESCE ( - CASE - - 46 WHEN + 37 * - 54 * NULLIF ( - - CAST( NULL AS SIGNED ), + + 84 * - - 82 ) * + COALESCE ( 91, 71 * + 73, 20 ) * - - 90 * - - 42 * - 91 THEN 59 DIV + + 80 + 69 + + 20 * + MIN( - 43 ) * - NULLIF ( - MIN( DISTINCT 55 ) DIV SUM( DISTINCT 67 ) + - 22 * + 71, 14 * 57 ) WHEN + COUNT( * ) * - ( 93 ) THEN NULL END, + 89 - 58 ) * + 57 ELSE 75 * 1 END * 61
----
-4575

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL - CASE - ( + 62 ) WHEN + 8 * + COUNT ( * ) + 83 THEN + COALESCE ( - CASE - - 46 WHEN + 37 * - 54 * NULLIF ( - - CAST ( NULL AS INTEGER ), + + 84 * - - 82 ) * + COALESCE ( 91, 71 * + 73, 20 ) * - - 90 * - - 42 * - 91 THEN 59 / + + 80 + 69 + + 20 * + MIN ( - 43 ) * - NULLIF ( - MIN ( DISTINCT 55 ) / SUM ( DISTINCT 67 ) + - 22 * + 71, 14 * 57 ) WHEN + COUNT ( * ) * - ( 93 ) THEN NULL END, + 89 - 58 ) * + 57 ELSE 75 * 1 END * 61
----
-4575

query I rowsort
SELECT ALL ( - + 26 ) AS col1
----
-26

query I rowsort
SELECT DISTINCT + - 16 * + 57 AS col1
----
-912

query I rowsort
SELECT ALL ( - 79 ) * ( 89 ) + 2
----
-7029

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT COUNT( * ) - 34 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-9779
SELECT COUNT ( * ) - 34 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT MAX( DISTINCT + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-9780
SELECT MAX ( DISTINCT + 65 )
----
65

query I rowsort
SELECT ( - 82 ) * - 78
----
6396

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT SUM( DISTINCT - 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9782
SELECT SUM ( DISTINCT - 2 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9783
SELECT MAX( DISTINCT - + 29 ), + 25 AS col0
----
-29
25

skipif mysql # not compatible
query II rowsort label-9783
SELECT MAX ( DISTINCT - + 29 ), + 25 AS col0
----
-29
25

query I rowsort
SELECT ALL 21 + 26
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT ALL 39 DIV - 19
----
-2

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL 39 / - 19
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT DISTINCT + SUM( DISTINCT - - 92 ) + 62 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT + SUM ( DISTINCT - - 92 ) + 62 AS col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ALL 9 * + ( ( - ( COUNT( * ) ) ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL 9 * + ( ( - ( COUNT ( * ) ) ) ) AS col0
----
-9

query I rowsort
SELECT ALL 68 + 72 AS col2
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9789
SELECT COUNT( * ) * + SUM( DISTINCT - - 49 ) DIV - 56 + COUNT( * ) * 6 * - COUNT( * ) + + 20 DIV + 60 + - NULLIF ( 74, - MIN( + 61 ) ) col0
----
-80

skipif mysql # not compatible
query I rowsort label-9789
SELECT COUNT ( * ) * + SUM ( DISTINCT - - 49 ) / - 56 + COUNT ( * ) * 6 * - COUNT ( * ) + + 20 / + 60 + - NULLIF ( 74, - MIN ( + 61 ) ) col0
----
-80

query I rowsort
SELECT - 36 + 31 + - 78 + + 23 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT 18 * + CASE - 18 WHEN + 81 * 38 * 61 + + 65 * - COUNT( * ) * + COUNT( * ) * 73 + COUNT( * ) * + 26 THEN NULL WHEN + + 74 THEN NULLIF ( - 49, + COUNT( * ) ) END - ( + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT 18 * + CASE - 18 WHEN + 81 * 38 * 61 + + 65 * - COUNT ( * ) * + COUNT ( * ) * 73 + COUNT ( * ) * + 26 THEN NULL WHEN + + 74 THEN NULLIF ( - 49, + COUNT ( * ) ) END - ( + 89 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9792
SELECT DISTINCT - + 23 DIV 21 col0
----
-1

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT - + 23 / 21 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9793
SELECT ALL + COUNT( * ) + - 90 - - 65 DIV - 46, - COUNT( - + NULLIF ( - 30, 15 ) ) - - 89 + + 89 + + COUNT( ALL + - 33 ) * ( - 97 ) + 13 + - + 5 - - ( CAST( NULL AS SIGNED ) ) AS col1
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-9793
SELECT ALL + COUNT ( * ) + - 90 - - 65 / - 46, - COUNT ( - + NULLIF ( - 30, 15 ) ) - - 89 + + 89 + + COUNT ( ALL + - 33 ) * ( - 97 ) + 13 + - + 5 - - ( CAST ( NULL AS INTEGER ) ) AS col1
----
-90
NULL

query I rowsort
SELECT ALL - - 98 + - 21 AS col1
----
77

query I rowsort
SELECT - 93 + + + 86
----
-7

query I rowsort
SELECT ALL + 44 + NULLIF ( 35, - 89 ) AS col2
----
79

query I rowsort
SELECT ( + - NULLIF ( - 27, 35 + + + 13 ) ) AS col1
----
27

query I rowsort
SELECT - + 72 * ( - 40 ) + - 28 AS col0
----
2852

query I rowsort
SELECT - - 3 + + - 93
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT - - 11 * ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT - - 11 * ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9801
SELECT - 18 - - - 27 DIV 29
----
-18

skipif mysql # not compatible
query I rowsort label-9801
SELECT - 18 - - - 27 / 29
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT DISTINCT - + CAST( 20 AS SIGNED ) - CAST( - 54 AS SIGNED ) + + 95 + + ( - + 61 ) + 33 * 49 * 49 + + - 37
----
79264

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT - + CAST ( 20 AS INTEGER ) - CAST ( - 54 AS INTEGER ) + + 95 + + ( - + 61 ) + 33 * 49 * 49 + + - 37
----
79264

onlyif mysql # aggregate syntax: 
query II rowsort label-9803
SELECT - 36 + - 79 + COUNT( * ) * - NULLIF ( MIN( ALL ( 93 ) ), - COUNT( ALL 99 ) ) AS col1, - 49 AS col1
----
-208
-49

skipif mysql # not compatible
query II rowsort label-9803
SELECT - 36 + - 79 + COUNT ( * ) * - NULLIF ( MIN ( ALL ( 93 ) ), - COUNT ( ALL 99 ) ) AS col1, - 49 AS col1
----
-208
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9804
SELECT ALL 75 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL 75 / - 95
----
0

query I rowsort
SELECT - 99 * 12 AS col2
----
-1188

query II rowsort
SELECT ALL COALESCE ( 58, 80, + 54 * - 2 ) AS col2, - 4 AS col0
----
58
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT CASE + 69 WHEN 3 THEN - 11 + + 28 WHEN - COUNT( * ) THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT CASE + 69 WHEN 3 THEN - 11 + + 28 WHEN - COUNT ( * ) THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT + 69 - - 79 + + 78
----
226

onlyif mysql # DIV for integer division: 
query I rowsort label-9809
SELECT DISTINCT - 96 DIV - 26
----
3

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT - 96 / - 26
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9810
SELECT - 16 DIV 86 * - ( 37 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9810
SELECT - 16 / 86 * - ( 37 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL 17 * + + 39 + - 34 + + COUNT( * ) * - 4 + + + 67
----
692

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL 17 * + + 39 + - 34 + + COUNT ( * ) * - 4 + + + 67
----
692

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL 11 * + 80 + - - NULLIF ( + - CASE 17 WHEN - 91 THEN NULL WHEN + - 10 * - + COALESCE ( - COUNT( * ), + - NULLIF ( + 84, + AVG ( - 79 ) ) * - 23 ) + - 65 THEN + 51 + 43 * + 75 ELSE NULL END, - - ( + 28 ) ) + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL 11 * + 80 + - - NULLIF ( + - CASE 17 WHEN - 91 THEN NULL WHEN + - 10 * - + COALESCE ( - COUNT ( * ), + - NULLIF ( + 84, + AVG ( - 79 ) ) * - 23 ) + - 65 THEN + 51 + 43 * + 75 ELSE NULL END, - - ( + 28 ) ) + - 80
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT + CAST( NULL AS SIGNED ) + + 81 * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT + CAST ( NULL AS INTEGER ) + + 81 * - 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9814
SELECT ALL CASE CAST( - MAX( ALL - - 61 ) AS SIGNED ) WHEN + + 62 + COUNT( * ) + - COUNT( * ) * - + CAST( NULL AS DECIMAL ) + - 86 THEN NULL WHEN + 41 * COUNT( * ) * + 18 / - 58 * 65 * - + 65 THEN + + 97 END * + MAX( ALL ( 44 ) ) - - COUNT( * ) + 98 * 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL CASE CAST ( - MAX ( ALL - - 61 ) AS INTEGER ) WHEN + + 62 + COUNT ( * ) + - COUNT ( * ) * - + CAST ( NULL AS REAL ) + - 86 THEN NULL WHEN + 41 * COUNT ( * ) * + 18 / - 58 * 65 * - + 65 THEN + + 97 END * + MAX ( ALL ( 44 ) ) - - COUNT ( * ) + 98 * 38 AS col1
----
NULL

query I rowsort
SELECT CASE + 41 WHEN + - 94 * - 13 - - + 90 THEN 57 ELSE NULL END
----
NULL

query I rowsort
SELECT - 48 * + - 24 + - 12
----
1140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9817
SELECT - CAST( - - 0 AS SIGNED ) * - 21 AS col2, + 24 AS col2
----
0
24

skipif mysql # not compatible
query II rowsort label-9817
SELECT - CAST ( - - 0 AS INTEGER ) * - 21 AS col2, + 24 AS col2
----
0
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9818
SELECT + CASE - - 29 WHEN + 85 * 8 + - CAST( + + 96 AS SIGNED ) THEN NULL ELSE - CASE + 95 WHEN - 44 * - + 45 / NULLIF ( - - 28, + ( - 54 ) ) * + + CAST( NULL AS SIGNED ) + + 50 + + CASE - 75 WHEN - + ( - 15 ) * + - 61 THEN + - ( - 40 ) * - - 9 WHEN COUNT( - 98 ) * + - 22 + + COUNT( * ) THEN NULL WHEN - - ( + - 64 ) THEN NULL ELSE NULL END THEN - 89 + + ( + 93 ) ELSE + 85 END + 17 END
----
-68

skipif mysql # not compatible
query I rowsort label-9818
SELECT + CASE - - 29 WHEN + 85 * 8 + - CAST ( + + 96 AS INTEGER ) THEN NULL ELSE - CASE + 95 WHEN - 44 * - + 45 / NULLIF ( - - 28, + ( - 54 ) ) * + + CAST ( NULL AS INTEGER ) + + 50 + + CASE - 75 WHEN - + ( - 15 ) * + - 61 THEN + - ( - 40 ) * - - 9 WHEN COUNT ( - 98 ) * + - 22 + + COUNT ( * ) THEN NULL WHEN - - ( + - 64 ) THEN NULL ELSE NULL END THEN - 89 + + ( + 93 ) ELSE + 85 END + 17 END
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9819
SELECT ALL + 55 AS col1, COUNT( * )
----
55
1

skipif mysql # not compatible
query II rowsort label-9819
SELECT ALL + 55 AS col1, COUNT ( * )
----
55
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9820
SELECT DISTINCT 92 * 36 + ( - + 22 ) + - 28 + + 20 * - 76 + - 55 + - 82 * 61 DIV ( - 1 ) DIV + - 38 - 3 + + ( - 61 ) DIV + 9 + + - COUNT( DISTINCT 20 ) * + MAX( + 94 )
----
1453

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT 92 * 36 + ( - + 22 ) + - 28 + + 20 * - 76 + - 55 + - 82 * 61 / ( - 1 ) / + - 38 - 3 + + ( - 61 ) / + 9 + + - COUNT ( DISTINCT 20 ) * + MAX ( + 94 )
----
1453

query I rowsort
SELECT DISTINCT + 89 * - + 92 AS col0
----
-8188

onlyif mysql # DIV for integer division: 
query I rowsort label-9822
SELECT + 91 DIV + - 9
----
-10

skipif mysql # not compatible
query I rowsort label-9822
SELECT + 91 / + - 9
----
-10

query I rowsort
SELECT ALL - 56 * 40 AS col1
----
-2240

query I rowsort
SELECT DISTINCT + 45 * + 55 + 68 AS col1
----
2543

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL + + COUNT( * ) * - 37 - + 25 + - + 80 AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL + + COUNT ( * ) * - 37 - + 25 + - + 80 AS col2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL - 12 * - COUNT( ALL + ( - + 57 ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL - 12 * - COUNT ( ALL + ( - + 57 ) ) AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9827
SELECT - - 1 DIV - + 52
----
0

skipif mysql # not compatible
query I rowsort label-9827
SELECT - - 1 / - + 52
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9828
SELECT 78 col0, - COUNT( * )
----
78
-1

skipif mysql # not compatible
query II rowsort label-9828
SELECT 78 col0, - COUNT ( * )
----
78
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9829
SELECT - + 26 * - 17 * - CASE + + CAST( NULL AS SIGNED ) WHEN + ( + - AVG ( 66 ) ) THEN NULL ELSE 63 * - 39 + - + 89 END AS col0, CAST( NULL AS SIGNED ) AS col1
----
1125332
NULL

skipif mysql # not compatible
query II rowsort label-9829
SELECT - + 26 * - 17 * - CASE + + CAST ( NULL AS INTEGER ) WHEN + ( + - AVG ( 66 ) ) THEN NULL ELSE 63 * - 39 + - + 89 END AS col0, CAST ( NULL AS INTEGER ) AS col1
----
1125332
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9830
SELECT DISTINCT + ( + CASE + COUNT( * ) WHEN - 36 + 66 / - + 62 * + + 85 + - + 39 * NULLIF ( + + CAST( NULL AS DECIMAL ), 14 * - + 53 * + 65 ) THEN NULL ELSE COUNT( * ) END ) * 60
----
60

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT + ( + CASE + COUNT ( * ) WHEN - 36 + 66 / - + 62 * + + 85 + - + 39 * NULLIF ( + + CAST ( NULL AS REAL ), 14 * - + 53 * + 65 ) THEN NULL ELSE COUNT ( * ) END ) * 60
----
60

query II rowsort
SELECT + 64 AS col2, - 5 * + 87 * + + 55 AS col2
----
64
-23925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT ALL + COALESCE ( - 98, - + COALESCE ( + CASE - + CAST( 88 AS SIGNED ) WHEN + ( - 50 ) THEN + - 13 END, - 45, + - 33 ), + 57, 36 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL + COALESCE ( - 98, - + COALESCE ( + CASE - + CAST ( 88 AS INTEGER ) WHEN + ( - 50 ) THEN + - 13 END, - 45, + - 33 ), + 57, 36 ) AS col0
----
-98

query I rowsort
SELECT - + 74 + 30 + - - 97
----
53

query I rowsort
SELECT - - 0 * - 28 * + ( - 13 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9835
SELECT - CAST( NULL AS SIGNED ) AS col0, + MIN( + + ( - 49 ) ) AS col2
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-9835
SELECT - CAST ( NULL AS INTEGER ) AS col0, + MIN ( + + ( - 49 ) ) AS col2
----
NULL
-49

query I rowsort
SELECT - 93 + + + 82 + + 96 * 13
----
1237

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9837
SELECT DISTINCT - 9 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT - 9 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ALL CASE - ( - COUNT( - NULLIF ( - - 20, 41 ) ) ) WHEN 28 THEN + 26 + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL CASE - ( - COUNT ( - NULLIF ( - - 20, 41 ) ) ) WHEN 28 THEN + 26 + 95 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT - CAST( + - 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-9839
SELECT - CAST ( + - 12 AS INTEGER )
----
12

query I rowsort
SELECT ALL - 91 * - 61 AS col0
----
5551

query I rowsort
SELECT - 40 * - + 92 AS col0
----
3680

query I rowsort
SELECT - 46 + + 78 AS col1
----
32

query II rowsort
SELECT ALL - 82 + 82 + 47 * + 90 * 41 + + - 89 * + - 89 + - 49 * + 24 AS col1, ( + 77 ) AS col2
----
180175
77

query II rowsort
SELECT 9, - 82 AS col2
----
9
-82

query II rowsort
SELECT 17 AS col2, 65 + 23 - + 3 * + 6 AS col0
----
17
70

query I rowsort
SELECT ALL - 91 * 78 AS col0
----
-7098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9847
SELECT ALL - 46 DIV - 60 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - 46 / - 60 * COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9848
SELECT ALL 82 DIV - + 74 + - 51
----
-52

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL 82 / - + 74 + - 51
----
-52

query I rowsort
SELECT - ( + - 67 ) - - - 58
----
9

query I rowsort
SELECT - 80 * - - 13 AS col2
----
-1040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9851
SELECT ALL - COUNT( * ) DIV + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL - COUNT ( * ) / + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9852
SELECT - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL + 29 * + 97 * - COUNT( * ) AS col2
----
-2813

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + 29 * + 97 * - COUNT ( * ) AS col2
----
-2813

query II rowsort
SELECT DISTINCT + 62 col1, 23
----
62
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT ALL - 51 / + - CAST( NULL AS SIGNED ) - + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL - 51 / + - CAST ( NULL AS INTEGER ) - + - 27
----
NULL

query I rowsort
SELECT - 44 * + + 44 AS col2
----
-1936

query I rowsort
SELECT DISTINCT - + 77 * 13 * 20 + + + 66 AS col2
----
-19954

query II rowsort
SELECT DISTINCT - 9 col1, 77
----
-9
77

query I rowsort
SELECT ALL - 16 * - 10
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT - 98 * + SUM( - 28 )
----
2744

skipif mysql # not compatible
query I rowsort label-9860
SELECT - 98 * + SUM ( - 28 )
----
2744

query I rowsort
SELECT - 31 * - 2 + 8 * + 10 AS col1
----
142

query I rowsort
SELECT DISTINCT - ( + 79 ) AS col1
----
-79

query I rowsort
SELECT ALL COALESCE ( - - 15, - 81 )
----
15

query II rowsort
SELECT + ( 78 ) + - 71 * - 5 col2, 14
----
433
14

query I rowsort
SELECT ALL + 84 * + 6 col2
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9866
SELECT 14 * + COUNT( * ) * - NULLIF ( 38, - + 3 / - CAST( + COUNT( * ) AS SIGNED ) * - + 75 + 86 ) col2
----
-532

skipif mysql # not compatible
query I rowsort label-9866
SELECT 14 * + COUNT ( * ) * - NULLIF ( 38, - + 3 / - CAST ( + COUNT ( * ) AS INTEGER ) * - + 75 + 86 ) col2
----
-532

onlyif mysql # DIV for integer division: 
query I rowsort label-9867
SELECT DISTINCT 70 DIV - - 64
----
1

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT 70 / - - 64
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT - CAST( - - 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-9868
SELECT - CAST ( - - 56 AS INTEGER )
----
-56

query II rowsort
SELECT DISTINCT 98, + 83 col1
----
98
83

query II rowsort
SELECT + 54 AS col1, - 54
----
54
-54

query I rowsort
SELECT DISTINCT 17 + - 99 - + 28 * 80 AS col2
----
-2322

onlyif mysql # aggregate syntax: 
query II rowsort label-9872
SELECT 89 + - 22 AS col0, + MIN( DISTINCT 16 ) col0
----
67
16

skipif mysql # not compatible
query II rowsort label-9872
SELECT 89 + - 22 AS col0, + MIN ( DISTINCT 16 ) col0
----
67
16

query I rowsort
SELECT DISTINCT 93 + 47
----
140

query I rowsort
SELECT 76 - - 57
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL 16 + + + COUNT( ALL + 68 ) - 48 - + + 38
----
-69

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL 16 + + + COUNT ( ALL + 68 ) - 48 - + + 38
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL 92 + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL 92 + + COUNT ( * )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9877
SELECT 66 + - MAX( ALL - 39 ) * SUM( 87 ) * CAST( COUNT( * ) AS SIGNED ) AS col2
----
3459

skipif mysql # not compatible
query I rowsort label-9877
SELECT 66 + - MAX ( ALL - 39 ) * SUM ( 87 ) * CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
3459

query I rowsort
SELECT ( + ( - 22 ) ) + 59
----
37

query I rowsort
SELECT 11 - - 34 * 45 AS col1
----
1541

query I rowsort
SELECT ALL - 60 * + 28
----
-1680

onlyif mysql # DIV for integer division: 
query I rowsort label-9881
SELECT 20 - + 81 + - 64 DIV 5 * - + 37 AS col0
----
383

skipif mysql # not compatible
query I rowsort label-9881
SELECT 20 - + 81 + - 64 / 5 * - + 37 AS col0
----
383

query II rowsort
SELECT 4 * 90 AS col1, 89 AS col0
----
360
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT - 83 / + - 79 + - - 31 - - CAST( NULL AS SIGNED ) + 12 * - 74 * + 3 + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT - 83 / + - 79 + - - 31 - - CAST ( NULL AS INTEGER ) + 12 * - 74 * + 3 + 11 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 43 * 17
----
731

query I rowsort
SELECT ALL - 89 - 6
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9886
SELECT ALL + - 4 DIV + 74 + - 57
----
-57

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL + - 4 / + 74 + - 57
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9887
SELECT - COUNT( * ) DIV - 55 - - + 74 + - + 74 + + 23 AS col0, 3 AS col1
----
23
3

skipif mysql # not compatible
query II rowsort label-9887
SELECT - COUNT ( * ) / - 55 - - + 74 + - + 74 + + 23 AS col0, 3 AS col1
----
23
3

query II rowsort
SELECT - 82 * + 2 AS col0, - 48 * - 39 * 88 col2
----
-164
164736

query I rowsort
SELECT ALL - + CASE 1 WHEN + 22 + + + ( + 52 ) + + 11 + + 50 * - 21 THEN - 50 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9890
SELECT ALL + + ( - + 26 ) DIV - NULLIF ( - + 25, - - ( ( MIN( 67 ) ) ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL + + ( - + 26 ) / - NULLIF ( - + 25, - - ( ( MIN ( 67 ) ) ) ) col1
----
-1

query I rowsort
SELECT - 39 * - + 91
----
3549

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9892
SELECT + 48 DIV + + 78 AS col2, 63 * - 94 * CAST( NULL AS SIGNED ) * - 74 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9892
SELECT + 48 / + + 78 AS col2, 63 * - 94 * CAST ( NULL AS INTEGER ) * - 74 AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT + SUM( DISTINCT + 31 ) * CASE + + 92 WHEN 0 / + 67 / - 22 THEN COUNT( * ) + + + 94 / 85 * - - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT + SUM ( DISTINCT + 31 ) * CASE + + 92 WHEN 0 / + 67 / - 22 THEN COUNT ( * ) + + + 94 / 85 * - - 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9894
SELECT + ( - + COUNT( * ) ) AS col1, + COUNT( * ) * 89 AS col1
----
-1
89

skipif mysql # not compatible
query II rowsort label-9894
SELECT + ( - + COUNT ( * ) ) AS col1, + COUNT ( * ) * 89 AS col1
----
-1
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9895
SELECT ALL + 35 * - 82 col1, - MAX( + CAST( + 12 AS SIGNED ) ) AS col1
----
-2870
-12

skipif mysql # not compatible
query II rowsort label-9895
SELECT ALL + 35 * - 82 col1, - MAX ( + CAST ( + 12 AS INTEGER ) ) AS col1
----
-2870
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9896
SELECT DISTINCT 10 * - CASE - + 13 WHEN + ( - - 57 ) THEN - COUNT( * ) + + 60 WHEN - COALESCE ( COUNT( * ), MIN( + 63 ) + 98 ) * + - COALESCE ( 76, ( + 73 ) + - + 38, + CAST( NULL AS SIGNED ) * 8 - - - 93 + - 65 + 84 ) - 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT 10 * - CASE - + 13 WHEN + ( - - 57 ) THEN - COUNT ( * ) + + 60 WHEN - COALESCE ( COUNT ( * ), MIN ( + 63 ) + 98 ) * + - COALESCE ( 76, ( + 73 ) + - + 38, + CAST ( NULL AS INTEGER ) * 8 - - - 93 + - 65 + 84 ) - 66 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + - 70 + + 33 * - 55 + ( - 97 ) * + 5
----
-2370

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL - - 7 * - COUNT( * ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - - 7 * - COUNT ( * ) col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9899
SELECT - 98 * - NULLIF ( - ( - CASE 5 WHEN + 73 - - COUNT( * ) THEN NULL WHEN CAST( 21 AS SIGNED ) + + - NULLIF ( - 10, - 37 ) + + 21 THEN NULL ELSE + 83 * + - COUNT( * ) + 48 + 63 + + + 67 END ), - COUNT( * ) )
----
9310

skipif mysql # not compatible
query I rowsort label-9899
SELECT - 98 * - NULLIF ( - ( - CASE 5 WHEN + 73 - - COUNT ( * ) THEN NULL WHEN CAST ( 21 AS INTEGER ) + + - NULLIF ( - 10, - 37 ) + + 21 THEN NULL ELSE + 83 * + - COUNT ( * ) + 48 + 63 + + + 67 END ), - COUNT ( * ) )
----
9310

query I rowsort
SELECT ALL + ( + + 8 ) + - + 81
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9901
SELECT DISTINCT - - 57 * - 27 * - 92 + - CASE + + 4 WHEN + - 90 THEN + 40 END, - COUNT( + - 81 ) * - - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + + 88 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9901
SELECT DISTINCT - - 57 * - 27 * - 92 + - CASE + + 4 WHEN + - 90 THEN + 40 END, - COUNT ( + - 81 ) * - - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 88 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL + - CASE NULLIF ( - + ( - 24 ), - 60 ) WHEN + COUNT( * ) THEN + + 33 * + 7 + + 24 ELSE 61 * + 71 END + - 71 * + 40
----
-7171

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL + - CASE NULLIF ( - + ( - 24 ), - 60 ) WHEN + COUNT ( * ) THEN + + 33 * + 7 + + 24 ELSE 61 * + 71 END + - 71 * + 40
----
-7171

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9903
SELECT - CAST( - - CASE - 79 WHEN - + 17 / + 73 THEN NULL WHEN - - CASE + 95 WHEN + - 65 + + 34 THEN NULL WHEN + 50 THEN NULL ELSE + + 85 * + 90 END + + ( 86 ) THEN 9 END AS DECIMAL ) - - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT - CAST ( - - CASE - 79 WHEN - + 17 / + 73 THEN NULL WHEN - - CASE + 95 WHEN + - 65 + + 34 THEN NULL WHEN + 50 THEN NULL ELSE + + 85 * + 90 END + + ( 86 ) THEN 9 END AS REAL ) - - 57
----
NULL

query I rowsort
SELECT + 64 * + 14 + - - 32 + - - 31 * - - 34
----
1982

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT MAX( DISTINCT + 40 ) + COUNT( * ) col2
----
41

skipif mysql # not compatible
query I rowsort label-9905
SELECT MAX ( DISTINCT + 40 ) + COUNT ( * ) col2
----
41

query I rowsort
SELECT - ( + + 23 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL 11 + - 23 * + NULLIF ( + 0, SUM( - - 36 ) ) - + CASE - 71 WHEN - 49 - + + 83 + - - 73 + 55 THEN + 23 + + - COUNT( * ) ELSE NULL END * + - COUNT( * ) * - NULLIF ( - ( - ( - 95 ) ), + 37 ) * + 73 + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL 11 + - 23 * + NULLIF ( + 0, SUM ( - - 36 ) ) - + CASE - 71 WHEN - 49 - + + 83 + - - 73 + 55 THEN + 23 + + - COUNT ( * ) ELSE NULL END * + - COUNT ( * ) * - NULLIF ( - ( - ( - 95 ) ), + 37 ) * + 73 + 25
----
NULL

query I rowsort
SELECT ALL AVG ( - CASE + + 47 WHEN - 21 THEN + 98 WHEN - 36 THEN NULL ELSE NULL END ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 37 + + - 22 + - 7 * - 51 AS col1
----
298

onlyif mysql # aggregate syntax: 
query II rowsort label-9910
SELECT - 15 col2, - MAX( 88 ) * + 34
----
-15
-2992

skipif mysql # not compatible
query II rowsort label-9910
SELECT - 15 col2, - MAX ( 88 ) * + 34
----
-15
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT DISTINCT MAX( ALL - 85 ) + + 4 + - COUNT( * ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT MAX ( ALL - 85 ) + + 4 + - COUNT ( * ) AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9912
SELECT CASE COUNT( * ) WHEN 39 THEN 11 ELSE 60 + 67 END - - 61 * - COUNT( * ) - + 91 * - 34 - + NULLIF ( + CAST( - + CASE - - ( COUNT( * ) ) WHEN - ( + 11 ) THEN - 20 * - + 5 + ( - - 50 ) ELSE CAST( + 31 AS SIGNED ) + COUNT( * ) END AS SIGNED ), 16 ) AS col0
----
3192

skipif mysql # not compatible
query I rowsort label-9912
SELECT CASE COUNT ( * ) WHEN 39 THEN 11 ELSE 60 + 67 END - - 61 * - COUNT ( * ) - + 91 * - 34 - + NULLIF ( + CAST ( - + CASE - - ( COUNT ( * ) ) WHEN - ( + 11 ) THEN - 20 * - + 5 + ( - - 50 ) ELSE CAST ( + 31 AS INTEGER ) + COUNT ( * ) END AS INTEGER ), 16 ) AS col0
----
3192

query I rowsort
SELECT ALL 75 * + - 18 * + 29 AS col1
----
-39150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9914
SELECT DISTINCT COUNT( * ) * CASE 79 WHEN + 13 * - 89 * - 66 * + 71 THEN - 74 WHEN 42 * + - ( 58 ) * - 54 + 92 * CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT COUNT ( * ) * CASE 79 WHEN + 13 * - 89 * - 66 * + 71 THEN - 74 WHEN 42 * + - ( 58 ) * - 54 + 92 * CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

query II rowsort
SELECT ALL 28, 34 AS col2
----
28
34

query I rowsort
SELECT 11 + + 94 col0
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9917
SELECT CAST( NULL AS SIGNED ) * 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT CAST ( NULL AS INTEGER ) * 81 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 34 AS col0, 19 + - 38 col2
----
34
-19

query I rowsort
SELECT + 44 * 81
----
3564

query I rowsort
SELECT + 3 * + - 19 AS col1
----
-57

query I rowsort
SELECT + 85 - COALESCE ( - - 47, 29 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT DISTINCT + + COUNT( * ) * + MIN( DISTINCT - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT + + COUNT ( * ) * + MIN ( DISTINCT - 27 )
----
-27

query I rowsort
SELECT ALL + + ( 77 )
----
77

query I rowsort
SELECT ALL + 33 * + + 8 AS col0
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT DISTINCT + 13 * + + 43 + - + 52 * + 15 + + - 77 + + - 6 * + NULLIF ( + 49, + 4 + - AVG ( - 87 ) - - + 11 ) / + 41 - CAST( NULL AS SIGNED ) * - 59 - + - ( - 22 ) * + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT + 13 * + + 43 + - + 52 * + 15 + + - 77 + + - 6 * + NULLIF ( + 49, + 4 + - AVG ( - 87 ) - - + 11 ) / + 41 - CAST ( NULL AS INTEGER ) * - 59 - + - ( - 22 ) * + 8 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( + 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9927
SELECT + 26 + 74 DIV + + COUNT( * ) AS col1, 10
----
100
10

skipif mysql # not compatible
query II rowsort label-9927
SELECT + 26 + 74 / + + COUNT ( * ) AS col1, 10
----
100
10

query II rowsort
SELECT ALL + 87 AS col2, + 32 AS col1
----
87
32

query I rowsort
SELECT ALL 92 * - 51 * 31 + - 92 + + 80 AS col0
----
-145464

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9930
SELECT - 84 * - 94 + + COUNT( * ) + + 85 * + + CAST( 77 AS DECIMAL ) * 20 / - 64
----
5851

skipif mysql # not compatible
query I rowsort label-9930
SELECT - 84 * - 94 + + COUNT ( * ) + + 85 * + + CAST ( 77 AS REAL ) * 20 / - 64
----
5851

query I rowsort
SELECT - + 12 * - 59 AS col0
----
708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT + - CAST( 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-9932
SELECT + - CAST ( 51 AS INTEGER )
----
-51

query I rowsort
SELECT - - 37 - + 43 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9934
SELECT ALL + + 92, COUNT( * ) AS col1
----
92
1

skipif mysql # not compatible
query II rowsort label-9934
SELECT ALL + + 92, COUNT ( * ) AS col1
----
92
1

query I rowsort
SELECT ALL 92 * + + 7 + - 65 AS col2
----
579

query I rowsort
SELECT DISTINCT - 50 + 41
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT ALL + 60 * + CASE WHEN NOT + CAST( NULL AS SIGNED ) NOT IN ( 60, 28 + 24 + - 56 ) AND 23 * - 48 NOT IN ( + + 96, 72 + ( + 48 ), COUNT( * ), + 95 / + + ( - ( - 37 ) ) * - 42 + + + 90 + + COUNT( * ) + + - 0 * + CASE + 43 WHEN - ( - 57 ) + - + CASE + 81 WHEN - 36 * + + 89 * - 54 + 82 + ( 35 ) * + 49 THEN 18 WHEN 73 THEN NULL ELSE 3 END * 52 THEN 61 WHEN + MIN( + 5 ) THEN NULL ELSE NULL END + 38 * + 19 / 43 ) THEN CAST( NULL AS SIGNED ) * 28 WHEN COUNT( * ) IS NULL THEN NULL ELSE 26 END AS col2
----
1560

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL + 60 * + CASE WHEN NOT + CAST ( NULL AS INTEGER ) NOT IN ( 60, 28 + 24 + - 56 ) AND 23 * - 48 NOT IN ( + + 96, 72 + ( + 48 ), COUNT ( * ), + 95 / + + ( - ( - 37 ) ) * - 42 + + + 90 + + COUNT ( * ) + + - 0 * + CASE + 43 WHEN - ( - 57 ) + - + CASE + 81 WHEN - 36 * + + 89 * - 54 + 82 + ( 35 ) * + 49 THEN 18 WHEN 73 THEN NULL ELSE 3 END * 52 THEN 61 WHEN + MIN ( + 5 ) THEN NULL ELSE NULL END + 38 * + 19 / 43 ) THEN CAST ( NULL AS INTEGER ) * 28 WHEN COUNT ( * ) IS NULL THEN NULL ELSE 26 END AS col2
----
1560

query I rowsort
SELECT - 70 + + - 21
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9939
SELECT ALL NULLIF ( + COUNT( * ), CAST( + - 40 AS SIGNED ) + 31 )
----
1

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL NULLIF ( + COUNT ( * ), CAST ( + - 40 AS INTEGER ) + 31 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9940
SELECT DISTINCT + 78 * - 44 AS col0, - COUNT( * ) AS col0
----
-3432
-1

skipif mysql # not compatible
query II rowsort label-9940
SELECT DISTINCT + 78 * - 44 AS col0, - COUNT ( * ) AS col0
----
-3432
-1

query I rowsort
SELECT - CASE + ( - 45 ) WHEN - + 1 THEN + + 99 END * 26 AS col2
----
NULL

query I rowsort
SELECT - CASE 65 WHEN + 53 * + - 30 + + 4 THEN + - 92 * 65 ELSE NULL END + 9 AS col1
----
NULL

query I rowsort
SELECT + 81 * + - 84
----
-6804

query I rowsort
SELECT DISTINCT NULLIF ( - + 98, + + 51 ) AS col1
----
-98

query I rowsort
SELECT - 45 - 15
----
-60

query I rowsort
SELECT DISTINCT ( - + 76 ) AS col1
----
-76

query I rowsort
SELECT ALL ( - + 68 ) AS col2
----
-68

query I rowsort
SELECT + 97 + 85
----
182

query I rowsort
SELECT - 85 + 78 + - NULLIF ( + + 15, + 33 + - + 44 ) AS col2
----
-22

query I rowsort
SELECT + 50 * 8
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL 55 * + COUNT( + 85 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL 55 * + COUNT ( + 85 ) AS col1
----
55

query I rowsort
SELECT + 67 - + - 13
----
80

query I rowsort
SELECT + - 43 - - 55
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9954
SELECT - 12 * + - COUNT( * ) * - CAST( NULL AS SIGNED ) + + 83 + + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT - 12 * + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 83 + + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ( + COALESCE ( + 9, + COUNT( ALL 2 ), 68 * + - 35 * - 18 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9955
SELECT ( + COALESCE ( + 9, + COUNT ( ALL 2 ), 68 * + - 35 * - 18 ) ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9956
SELECT ALL ( + 42 ) DIV 24 * - 29 + - - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL ( + 42 ) / 24 * - 29 + - - COUNT ( * )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9957
SELECT ALL + 30 DIV - 67 * + + 28 + + 7 * + NULLIF ( - 31, - - CAST( NULL AS SIGNED ) ), 24 * MAX( ALL - 69 ) AS col2
----
-217
-1656

skipif mysql # not compatible
query II rowsort label-9957
SELECT ALL + 30 / - 67 * + + 28 + + 7 * + NULLIF ( - 31, - - CAST ( NULL AS INTEGER ) ), 24 * MAX ( ALL - 69 ) AS col2
----
-217
-1656

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9958
SELECT + AVG ( - 70 ) + - 95 + + + 83 + + - 16 * + MAX( DISTINCT + - 55 ) + + - 96 + + + COUNT( * ) * 26 * COUNT( * ) * - COUNT( * ) / 80 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT + AVG ( - 70 ) + - 95 + + + 83 + + - 16 * + MAX ( DISTINCT + - 55 ) + + - 96 + + + COUNT ( * ) * 26 * COUNT ( * ) * - COUNT ( * ) / 80 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT DISTINCT - 45 DIV + 16 + - + 18 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT - 45 / + 16 + - + 18 AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9960
SELECT + + CASE - 92 WHEN - AVG ( - 13 ) THEN NULL WHEN 50 * + + ( CAST( NULL AS SIGNED ) ) * 8 THEN NULL WHEN 48 THEN - 92 * + 91 + - COUNT( - - 28 ) - - - 51 + + 72 * - + SUM( DISTINCT NULLIF ( - 11, + + CAST( NULL AS SIGNED ) ) ) / + - COUNT( - 45 ) * 34 * 27 * + + 12 * 52 / 61 / + ( 3 ) * - + 55 + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT + + CASE - 92 WHEN - AVG ( - 13 ) THEN NULL WHEN 50 * + + ( CAST ( NULL AS INTEGER ) ) * 8 THEN NULL WHEN 48 THEN - 92 * + 91 + - COUNT ( - - 28 ) - - - 51 + + 72 * - + SUM ( DISTINCT NULLIF ( - 11, + + CAST ( NULL AS INTEGER ) ) ) / + - COUNT ( - 45 ) * 34 * 27 * + + 12 * 52 / 61 / + ( 3 ) * - + 55 + 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9961
SELECT + - ( COUNT( * ) ) AS col0, + 92
----
-1
92

skipif mysql # not compatible
query II rowsort label-9961
SELECT + - ( COUNT ( * ) ) AS col0, + 92
----
-1
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9962
SELECT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT + 33 + - 84 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT - + 66 + + + 18 * - MAX( + 62 ) + + COUNT( * ) AS col2
----
-1181

skipif mysql # not compatible
query I rowsort label-9964
SELECT - + 66 + + + 18 * - MAX ( + 62 ) + + COUNT ( * ) AS col2
----
-1181

onlyif mysql # aggregate syntax: 
query II rowsort label-9965
SELECT ALL SUM( 30 ) * - 76 + + 1 AS col0, 31
----
-2279
31

skipif mysql # not compatible
query II rowsort label-9965
SELECT ALL SUM ( 30 ) * - 76 + + 1 AS col0, 31
----
-2279
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT DISTINCT + - 90 * + ( - COALESCE ( CAST( + ( 98 ) AS SIGNED ), - + 48 + 81 ) ) * 13 col2
----
114660

skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT + - 90 * + ( - COALESCE ( CAST ( + ( 98 ) AS INTEGER ), - + 48 + 81 ) ) * 13 col2
----
114660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9967
SELECT + CAST( - 37 AS SIGNED ) * + 11
----
-407

skipif mysql # not compatible
query I rowsort label-9967
SELECT + CAST ( - 37 AS INTEGER ) * + 11
----
-407

query I rowsort
SELECT COALESCE ( 47, + 46 ) AS col0
----
47

query I rowsort
SELECT + 58 * 89 AS col2
----
5162

query I rowsort
SELECT - 64 * + + 84
----
-5376

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT + NULLIF ( - + 50, - 97 ) - - - COALESCE ( 15, - COALESCE ( + 82, - 35 ) ) DIV 2
----
-57

skipif mysql # not compatible
query I rowsort label-9971
SELECT + NULLIF ( - + 50, - 97 ) - - - COALESCE ( 15, - COALESCE ( + 82, - 35 ) ) / 2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT SUM( DISTINCT + - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-9972
SELECT SUM ( DISTINCT + - 37 )
----
-37

query I rowsort
SELECT - 57 + - 55
----
-112

query I rowsort
SELECT ALL - 1 * + 85
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-9975
SELECT DISTINCT 78, COUNT( * ) col2
----
78
1

skipif mysql # not compatible
query II rowsort label-9975
SELECT DISTINCT 78, COUNT ( * ) col2
----
78
1

query I rowsort
SELECT 4 * - 60 AS col2
----
-240

onlyif mysql # aggregate syntax: 
query II rowsort label-9977
SELECT ALL + 29 * - COUNT( * ) * + - 19, COUNT( + 71 ) + 12 AS col2
----
551
13

skipif mysql # not compatible
query II rowsort label-9977
SELECT ALL + 29 * - COUNT ( * ) * + - 19, COUNT ( + 71 ) + 12 AS col2
----
551
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT 13 - + 62 + + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-9978
SELECT 13 - + 62 + + COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL - COUNT( * ) * + 15
----
-15

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL - COUNT ( * ) * + 15
----
-15

query I rowsort
SELECT 20 + + 76
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT DISTINCT + 12 + - + COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT + 12 + - + COUNT ( * ) AS col0
----
11

query I rowsort
SELECT 19 * + 10
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT 55 + - 52 + - 96 + - + 52 * MIN( + 4 ) AS col2
----
-301

skipif mysql # not compatible
query I rowsort label-9983
SELECT 55 + - 52 + - 96 + - + 52 * MIN ( + 4 ) AS col2
----
-301

query I rowsort
SELECT DISTINCT - 50 + + 17 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT DISTINCT - COUNT( * ) + + 31
----
30

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT - COUNT ( * ) + + 31
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9986
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) + + 65 - + 11 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) + + 65 - + 11 AS col1
----
54

query I rowsort
SELECT + - COALESCE ( + 67, + - 82 * 20 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT COUNT( DISTINCT - - 9 ) * - 58 - + - 26
----
-32

skipif mysql # not compatible
query I rowsort label-9988
SELECT COUNT ( DISTINCT - - 9 ) * - 58 - + - 26
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT - - 90 * + 49 + + CAST( + + COUNT( * ) AS SIGNED )
----
4411

skipif mysql # not compatible
query I rowsort label-9989
SELECT - - 90 * + 49 + + CAST ( + + COUNT ( * ) AS INTEGER )
----
4411

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9990
SELECT + 78, - 36 * - - COUNT( * ) * 52 DIV + - 4 col2
----
78
468

skipif mysql # not compatible
query II rowsort label-9990
SELECT + 78, - 36 * - - COUNT ( * ) * 52 / + - 4 col2
----
78
468

query I rowsort
SELECT ALL - - ( + 44 ) AS col2
----
44

onlyif mysql # DIV for integer division: 
query II rowsort label-9992
SELECT - 91 DIV - 32 * + 1 AS col0, - 64
----
2
-64

skipif mysql # not compatible
query II rowsort label-9992
SELECT - 91 / - 32 * + 1 AS col0, - 64
----
2
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT + COUNT( * ) * + + 26 * 39
----
1014

skipif mysql # not compatible
query I rowsort label-9993
SELECT + COUNT ( * ) * + + 26 * 39
----
1014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT DISTINCT - COALESCE ( MAX( DISTINCT - CAST( - 95 AS SIGNED ) ), - COUNT( * ) + + - SUM( + 87 ), 80, - 36 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT - COALESCE ( MAX ( DISTINCT - CAST ( - 95 AS INTEGER ) ), - COUNT ( * ) + + - SUM ( + 87 ), 80, - 36 ) AS col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9995
SELECT DISTINCT - - 59 - + + 39 DIV - 28
----
60

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT - - 59 - + + 39 / - 28
----
60

query I rowsort
SELECT ALL - + 83 col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT ALL - 40 DIV - 13 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - 40 / - 13 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL - - MAX( DISTINCT 67 )
----
67

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL - - MAX ( DISTINCT 67 )
----
67

query II rowsort
SELECT ALL - 34 AS col1, 31
----
-34
31

