sqllogictest
Artifact Content
Not logged in

Artifact f8f820b83c74d6311c3784eedd8dc664b3f29e50:


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