sqllogictest
Artifact Content
Not logged in

Artifact 91c08a531678b8469c6873a5262cd3e0de69c312:


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: SIGNED type: 
query II rowsort label-0
SELECT - 11 * CAST( + 17 AS SIGNED ) AS col1, + 16
----
-187
16

skipif mysql # not compatible
query II rowsort label-0
SELECT - 11 * CAST ( + 17 AS INTEGER ) AS col1, + 16
----
-187
16

query I rowsort
SELECT - 70 - - + 48 - - ( + 46 ) * + ( + 84 ) + 63 AS col2
----
3905

query I rowsort
SELECT DISTINCT + 83 + - + 27 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT ALL - ( + - 10 ) + COUNT( 61 )
----
11

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - ( + - 10 ) + COUNT ( 61 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4
SELECT ALL - CASE + ( 45 ) WHEN - 66 * - 34 * - CAST( + 45 AS SIGNED ) - NULLIF ( + NULLIF ( 68, ( - 63 ) + 9 * + 36 ) + 87, + SUM( ALL - 98 ) ) THEN - 83 + + NULLIF ( + 48, 20 ) END + MIN( + 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL - CASE + ( 45 ) WHEN - 66 * - 34 * - CAST ( + 45 AS INTEGER ) - NULLIF ( + NULLIF ( 68, ( - 63 ) + 9 * + 36 ) + 87, + SUM ( ALL - 98 ) ) THEN - 83 + + NULLIF ( + 48, 20 ) END + MIN ( + 46 )
----
NULL

query II rowsort
SELECT 0 AS col2, 27 AS col2
----
0
27

query II rowsort
SELECT DISTINCT + ( 7 ) + + 89 col1, - 19 + 46 AS col0
----
96
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT ALL - 38 * + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL - 38 * + COUNT ( * ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT DISTINCT + 84 + + + MAX( + 70 ) + 56 - - 70 * 7 * + 30
----
14910

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT + 84 + + + MAX ( + 70 ) + 56 - - 70 * 7 * + 30
----
14910

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT DISTINCT + ( - 33 ) + - ( + 76 ) - 69 + COUNT( * ) AS col0
----
-177

skipif mysql # not compatible
query I rowsort label-9
SELECT DISTINCT + ( - 33 ) + - ( + 76 ) - 69 + COUNT ( * ) AS col0
----
-177

query I rowsort
SELECT ALL + 66 + 8 AS col0
----
74

query I rowsort
SELECT DISTINCT - 11 + + 73
----
62

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

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL - CAST ( NULL AS INTEGER ) * 60 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-13
SELECT - 92 + + CAST( 85 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-13
SELECT - 92 + + CAST ( 85 AS INTEGER )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-14
SELECT - - 73 DIV - 29
----
-2

skipif mysql # not compatible
query I rowsort label-14
SELECT - - 73 / - 29
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT - 43 + MIN( - - NULLIF ( - 43, 74 * - 28 ) ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-15
SELECT - 43 + MIN ( - - NULLIF ( - 43, 74 * - 28 ) ) AS col0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-16
SELECT ALL + + CAST( NULL AS SIGNED ) - + 14 + + - 74, 2 + + 56 * - 45 AS col2
----
NULL
-2518

skipif mysql # not compatible
query II rowsort label-16
SELECT ALL + + CAST ( NULL AS INTEGER ) - + 14 + + - 74, 2 + + 56 * - 45 AS col2
----
NULL
-2518

query I rowsort
SELECT - + 87 - + ( + 52 )
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT - + COUNT( * ) * - + 37 * + 68 AS col0
----
2516

skipif mysql # not compatible
query I rowsort label-18
SELECT - + COUNT ( * ) * - + 37 * + 68 AS col0
----
2516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-19
SELECT ALL - COUNT( * ) DIV - COALESCE ( + 52, - 14 )
----
0

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL - COUNT ( * ) / - COALESCE ( + 52, - 14 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT - - NULLIF ( + - COUNT( ALL - 91 ), - + 52 * + 27 + COUNT( * ) ) + + 73 col1
----
72

skipif mysql # not compatible
query I rowsort label-20
SELECT - - NULLIF ( + - COUNT ( ALL - 91 ), - + 52 * + 27 + COUNT ( * ) ) + + 73 col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-21
SELECT + 35 DIV 77 * + - 28 * + 24
----
0

skipif mysql # not compatible
query I rowsort label-21
SELECT + 35 / 77 * + - 28 * + 24
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-22
SELECT ALL - + 8 DIV 6
----
-1

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL - + 8 / 6
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-23
SELECT + + 62 AS col1, ( - - MAX( - 43 ) ) AS col2
----
62
-43

skipif mysql # not compatible
query II rowsort label-23
SELECT + + 62 AS col1, ( - - MAX ( - 43 ) ) AS col2
----
62
-43

query I rowsort
SELECT - 93 + - 35 - 91 AS col2
----
-219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-25
SELECT DISTINCT ( - 76 ) DIV + 40 - - - COUNT( * ) + + 43 * - NULLIF ( - CAST( ( - 21 ) AS SIGNED ) * SUM( 44 * 6 ), - 18 + - 41 ) * - 38 AS col0
----
9058894

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT ( - 76 ) / + 40 - - - COUNT ( * ) + + 43 * - NULLIF ( - CAST ( ( - 21 ) AS INTEGER ) * SUM ( 44 * 6 ), - 18 + - 41 ) * - 38 AS col0
----
9058894

query I rowsort
SELECT + 15 - - 82
----
97

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

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

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

query I rowsort
SELECT DISTINCT + - 7 AS col0
----
-7

query I rowsort
SELECT ALL - 16 * + + 29 + - NULLIF ( 60, + - 84 ) AS col1
----
-524

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT + NULLIF ( 29, + + 19 * + COUNT( DISTINCT 47 ) ) col0
----
29

skipif mysql # not compatible
query I rowsort label-31
SELECT + NULLIF ( 29, + + 19 * + COUNT ( DISTINCT 47 ) ) col0
----
29

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

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

query I rowsort
SELECT + + COALESCE ( 8, + 55 ) + + 46
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT ALL + NULLIF ( + 79, + 45 * - - CASE + + 0 WHEN + COUNT( ALL - 39 ) / 99 THEN COUNT( * ) WHEN 57 THEN NULL END )
----
79

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL + NULLIF ( + 79, + 45 * - - CASE + + 0 WHEN + COUNT ( ALL - 39 ) / 99 THEN COUNT ( * ) WHEN 57 THEN NULL END )
----
79

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

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

query I rowsort
SELECT + 42 * 18 AS col2
----
756

query I rowsort
SELECT ALL 13 * - 90 + + - 83 AS col1
----
-1253

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT ALL + 58 * SUM( ALL - + 98 ) * - - 13 + CASE WHEN + MIN( DISTINCT 10 ) IS NOT NULL THEN + 24 * + ( - 46 ) + 52 ELSE NULL END + + COUNT( ALL + 64 ) AS col2
----
-74943

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL + 58 * SUM ( ALL - + 98 ) * - - 13 + CASE WHEN + MIN ( DISTINCT 10 ) IS NOT NULL THEN + 24 * + ( - 46 ) + 52 ELSE NULL END + + COUNT ( ALL + 64 ) AS col2
----
-74943

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT ALL 0 DIV + + 96
----
0

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL 0 / + + 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-40
SELECT 33 * + - MAX( DISTINCT + 96 ) * + - CAST( + + 51 AS SIGNED ) + + + 92 + - 64 * 16 + + CAST( 38 AS SIGNED ) AS col0
----
160674

skipif mysql # not compatible
query I rowsort label-40
SELECT 33 * + - MAX ( DISTINCT + 96 ) * + - CAST ( + + 51 AS INTEGER ) + + + 92 + - 64 * 16 + + CAST ( 38 AS INTEGER ) AS col0
----
160674

query I rowsort
SELECT + 12 * + + 29 * + - 47 * - 61 col2
----
997716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-42
SELECT ALL + 65 * - + COUNT( * ) * + 16 + + 25 - 41 * - - CAST( NULL AS SIGNED ) * CASE + 64 WHEN - 21 * 28 THEN CAST( - 49 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL + 65 * - + COUNT ( * ) * + 16 + + 25 - 41 * - - CAST ( NULL AS INTEGER ) * CASE + 64 WHEN - 21 * 28 THEN CAST ( - 49 AS INTEGER ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 76 + 87 AS col1
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT DISTINCT COUNT( ALL - 69 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT COUNT ( ALL - 69 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-45
SELECT ALL COUNT( * ) AS col0, 63 + - 53 DIV 98 AS col2
----
1
63

skipif mysql # not compatible
query II rowsort label-45
SELECT ALL COUNT ( * ) AS col0, 63 + - 53 / 98 AS col2
----
1
63

query I rowsort
SELECT + 52 + - - 74
----
126

query I rowsort
SELECT + 28 + + 57
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-48
SELECT ALL MIN( - 15 ) * 14 + 99, + COUNT( + - 42 ) DIV 55 - - MAX( ALL 5 ) AS col0
----
-111
5

skipif mysql # not compatible
query II rowsort label-48
SELECT ALL MIN ( - 15 ) * 14 + 99, + COUNT ( + - 42 ) / 55 - - MAX ( ALL 5 ) AS col0
----
-111
5

onlyif mysql # DIV for integer division: 
query II rowsort label-49
SELECT + 22 + + 9 DIV - ( + + 53 ) AS col2, - 2
----
22
-2

skipif mysql # not compatible
query II rowsort label-49
SELECT + 22 + + 9 / - ( + + 53 ) AS col2, - 2
----
22
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-50
SELECT ALL COUNT( ALL - - 9 ), - ( + 26 ) + 3 AS col1
----
1
-23

skipif mysql # not compatible
query II rowsort label-50
SELECT ALL COUNT ( ALL - - 9 ), - ( + 26 ) + 3 AS col1
----
1
-23

query II rowsort
SELECT - ( - + NULLIF ( + - 49, - 60 ) ) AS col0, 45 AS col1
----
-49
45

query I rowsort
SELECT 67 + 16 * - - 27
----
499

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

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

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

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

query II rowsort
SELECT - 34, 20 AS col0
----
-34
20

query II rowsort
SELECT - 84, 0 AS col2
----
-84
0

query I rowsort
SELECT DISTINCT 51 * 68 AS col1
----
3468

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT DISTINCT NULLIF ( - 95, + SUM( DISTINCT + + 56 ) + - 41 * - 30 / 73 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT NULLIF ( - 95, + SUM ( DISTINCT + + 56 ) + - 41 * - 30 / 73 ) AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-59
SELECT ALL CASE - NULLIF ( + + 74, 16 * CAST( NULL AS SIGNED ) * - - COUNT( * ) ) WHEN + 16 * 62 + + 31 THEN - 77 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL CASE - NULLIF ( + + 74, 16 * CAST ( NULL AS INTEGER ) * - - COUNT ( * ) ) WHEN + 16 * 62 + + 31 THEN - 77 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-60
SELECT COALESCE ( - 33, - CAST( NULL AS SIGNED ) DIV - - 95 ) + 57
----
24

skipif mysql # not compatible
query I rowsort label-60
SELECT COALESCE ( - 33, - CAST ( NULL AS INTEGER ) / - - 95 ) + 57
----
24

query II rowsort
SELECT + 41 AS col2, + 8 + 81 - 94 col0
----
41
-5

query I rowsort
SELECT ( + 50 ) * + 47
----
2350

onlyif mysql # aggregate syntax: 
query II rowsort label-63
SELECT + COUNT( * ) AS col1, - 92 - + - 47 AS col1
----
1
-45

skipif mysql # not compatible
query II rowsort label-63
SELECT + COUNT ( * ) AS col1, - 92 - + - 47 AS col1
----
1
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT ALL + + 39 + 79 DIV + 34 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + + 39 + 79 / + 34 AS col1
----
41

query I rowsort
SELECT 95 * + - ( + + ( - ( + ( 56 ) ) ) )
----
5320

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-66
SELECT DISTINCT - - COUNT( * ), 43 + CAST( NULL AS DECIMAL ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-66
SELECT DISTINCT - - COUNT ( * ), 43 + CAST ( NULL AS REAL ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT DISTINCT + 62 + + 52 + - 10 + + + 91 * 74 - - ( - 72 ) * - NULLIF ( + 84 * - 7, - MIN( 96 ) )
----
-35498

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT + 62 + + 52 + - 10 + + + 91 * 74 - - ( - 72 ) * - NULLIF ( + 84 * - 7, - MIN ( 96 ) )
----
-35498

query I rowsort
SELECT ALL + 4 + + + 57 + + ( + + 74 ) AS col1
----
135

query I rowsort
SELECT ALL ( - 48 ) + - 0 AS col2
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ( + - 48 ) * SUM( - + 60 ) + ( + + 48 )
----
2928

skipif mysql # not compatible
query I rowsort label-71
SELECT ( + - 48 ) * SUM ( - + 60 ) + ( + + 48 )
----
2928

query I rowsort
SELECT 33 + 49
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT ALL + COUNT( * ) + - - 86 * - 54 * NULLIF ( 47, - - ( 91 ) + 55 )
----
-218267

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL + COUNT ( * ) + - - 86 * - 54 * NULLIF ( 47, - - ( 91 ) + 55 )
----
-218267

query I rowsort
SELECT DISTINCT - 56 * + 52
----
-2912

query I rowsort
SELECT 17 - ( + - 74 ) + + 41 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL - SUM( + - 46 ) + - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - SUM ( + - 46 ) + - - COUNT ( * )
----
47

query I rowsort
SELECT ALL 99 * NULLIF ( + 37, - - 61 ) AS col1
----
3663

onlyif mysql # aggregate syntax: 
query II rowsort label-78
SELECT COUNT( * ) * 33 AS col0, 46 + - 64 - - - 62
----
33
-80

skipif mysql # not compatible
query II rowsort label-78
SELECT COUNT ( * ) * 33 AS col0, 46 + - 64 - - - 62
----
33
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-79
SELECT COUNT( * ) DIV COUNT( * ) * 9 * - 37
----
-333

skipif mysql # not compatible
query I rowsort label-79
SELECT COUNT ( * ) / COUNT ( * ) * 9 * - 37
----
-333

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-80
SELECT DISTINCT NULLIF ( - COUNT( * ), + 2 + - 50 * - + CASE - 63 WHEN 89 DIV 55 + + 67 THEN 60 + 76 WHEN + 31 DIV CAST( NULL AS DECIMAL ) THEN 91 * 16 ELSE COALESCE ( 60, 87, 50, NULLIF ( 11, + 73 ) * + 81 ) END ) DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT NULLIF ( - COUNT ( * ), + 2 + - 50 * - + CASE - 63 WHEN 89 / 55 + + 67 THEN 60 + 76 WHEN + 31 / CAST ( NULL AS REAL ) THEN 91 * 16 ELSE COALESCE ( 60, 87, 50, NULLIF ( 11, + 73 ) * + 81 ) END ) / - COUNT ( * )
----
1

query II rowsort
SELECT ALL 4 - + 67, 62 * + 58 AS col1
----
-63
3596

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

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

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

skipif mysql # not compatible
query I rowsort label-83
SELECT COUNT ( * ) / + 42
----
0

query I rowsort
SELECT DISTINCT 98 * + 78
----
7644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-85
SELECT CASE 66 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + - ( - 10 ) END * - 44 AS col1
----
-440

skipif mysql # not compatible
query I rowsort label-85
SELECT CASE 66 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + - ( - 10 ) END * - 44 AS col1
----
-440

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

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

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

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

query I rowsort
SELECT 40 + 32 * 90
----
2920

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT COUNT( * ) + - + 77 * + 32 AS col2
----
-2463

skipif mysql # not compatible
query I rowsort label-89
SELECT COUNT ( * ) + - + 77 * + 32 AS col2
----
-2463

query I rowsort
SELECT ALL + 83 * + - 94 * + ( - + 11 ) AS col1
----
85822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-91
SELECT COALESCE ( + 71, 44 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-91
SELECT COALESCE ( + 71, 44 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL - SUM( ALL + 2 ) * + 90 * - 0 + - 81
----
-81

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL - SUM ( ALL + 2 ) * + 90 * - 0 + - 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT ALL MAX( DISTINCT + 8 ) * - 32 AS col0
----
-256

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL MAX ( DISTINCT + 8 ) * - 32 AS col0
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT ALL + 16 * + COUNT( * ) + - 77 * + 99 * - + 42 + + ( + 54 )
----
320236

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL + 16 * + COUNT ( * ) + - 77 * + 99 * - + 42 + + ( + 54 )
----
320236

query I rowsort
SELECT ( + - 65 ) * + 65 AS col1
----
-4225

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT - NULLIF ( - COUNT( * ), - AVG ( DISTINCT - + 14 ) + - + 69 ) * 91 + - NULLIF ( + + 60, 79 )
----
31

skipif mysql # not compatible
query I rowsort label-96
SELECT - NULLIF ( - COUNT ( * ), - AVG ( DISTINCT - + 14 ) + - + 69 ) * 91 + - NULLIF ( + + 60, 79 )
----
31

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

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

query II rowsort
SELECT + 79, 31 * + - NULLIF ( 99, + + 92 ) * + CASE WHEN NULL IS NULL THEN 2 ELSE NULL END AS col0
----
79
-6138

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT - 42 * - COUNT( * ) + 15 - + + 73 * + COUNT( * ) + 84 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-99
SELECT - 42 * - COUNT ( * ) + 15 - + + 73 * + COUNT ( * ) + 84 AS col2
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT 15 * 71 + - SUM( DISTINCT 12 )
----
1053

skipif mysql # not compatible
query I rowsort label-101
SELECT 15 * 71 + - SUM ( DISTINCT 12 )
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL - 79 - MIN( - NULLIF ( ( + - 26 ), - 19 ) ) AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL - 79 - MIN ( - NULLIF ( ( + - 26 ), - 19 ) ) AS col0
----
-105

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

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

query I rowsort
SELECT ALL + 79 - - 44 * 32 AS col2
----
1487

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT DISTINCT - SUM( DISTINCT - - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT - SUM ( DISTINCT - - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT COUNT( * ) * 84 + + 76
----
160

skipif mysql # not compatible
query I rowsort label-106
SELECT COUNT ( * ) * 84 + + 76
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL CASE + 83 WHEN - + 26 * - + 28 / - SUM( ALL 63 ) THEN NULL WHEN - - 25 THEN NULL ELSE + ( + 42 ) END
----
42

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL CASE + 83 WHEN - + 26 * - + 28 / - SUM ( ALL 63 ) THEN NULL WHEN - - 25 THEN NULL ELSE + ( + 42 ) END
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - SUM( DISTINCT - 16 ) + + 19
----
35

skipif mysql # not compatible
query I rowsort label-108
SELECT - SUM ( DISTINCT - 16 ) + + 19
----
35

query I rowsort
SELECT - 39 + + 28 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT - + MAX( DISTINCT + 2 ) * 14
----
-28

skipif mysql # not compatible
query I rowsort label-110
SELECT - + MAX ( DISTINCT + 2 ) * 14
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-111
SELECT ALL - 86 AS col0, CAST( NULL AS SIGNED )
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-111
SELECT ALL - 86 AS col0, CAST ( NULL AS INTEGER )
----
-86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT - 12 * - + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-112
SELECT - 12 * - + COUNT ( * ) AS col2
----
12

query I rowsort
SELECT + 81 + - + 12
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-114
SELECT ALL 51 DIV - - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL 51 / - - 60 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-115
SELECT + AVG ( 9 ) + - CASE + CASE - - ( - - 73 ) WHEN 92 THEN + 26 ELSE - CASE + COUNT( * ) WHEN 47 THEN NULL ELSE ( - 29 ) END * 37 END WHEN - 16 THEN 95 ELSE + 69 * + MAX( ( CAST( NULL AS SIGNED ) ) ) - + ( 6 ) * + 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT + AVG ( 9 ) + - CASE + CASE - - ( - - 73 ) WHEN 92 THEN + 26 ELSE - CASE + COUNT ( * ) WHEN 47 THEN NULL ELSE ( - 29 ) END * 37 END WHEN - 16 THEN 95 ELSE + 69 * + MAX ( ( CAST ( NULL AS INTEGER ) ) ) - + ( 6 ) * + 38 END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-117
SELECT ALL - COUNT( * ) + + CAST( + NULLIF ( + + 3, 88 ) AS DECIMAL ) * 6 * - 73 - + CAST( NULL AS SIGNED ) - + 47 * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL - COUNT ( * ) + + CAST ( + NULLIF ( + + 3, 88 ) AS REAL ) * 6 * - 73 - + CAST ( NULL AS INTEGER ) - + 47 * + 63
----
NULL

query I rowsort
SELECT ALL - - 30 + - - 25 - - 15 + + 82
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-119
SELECT DISTINCT 96 + 39 + + 34 DIV - 40 * - 54 * + 39 - - ( 27 ) + - 78 DIV - 47
----
163

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT 96 + 39 + + 34 / - 40 * - 54 * + 39 - - ( 27 ) + - 78 / - 47
----
163

query I rowsort
SELECT ALL 1 + 89 AS col0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-121
SELECT - 37 AS col0, 85 + - 73 + - 32 * 26 + + + 75 * - + COUNT( * )
----
-37
-895

skipif mysql # not compatible
query II rowsort label-121
SELECT - 37 AS col0, 85 + - 73 + - 32 * 26 + + + 75 * - + COUNT ( * )
----
-37
-895

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT ALL COALESCE ( ( NULLIF ( - 9, - 14 ) ), - COALESCE ( + 29, 1 * + COUNT( * ) ) ) + 15 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL COALESCE ( ( NULLIF ( - 9, - 14 ) ), - COALESCE ( + 29, 1 * + COUNT ( * ) ) ) + 15 AS col1
----
6

query II rowsort
SELECT + 84 * - 26 + - + 43 AS col1, 31 * - + 63
----
-2227
-1953

onlyif mysql # DIV for integer division: 
query I rowsort label-124
SELECT DISTINCT 23 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT 23 / 76
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-125
SELECT DISTINCT - NULLIF ( - CASE + - COUNT( + - 84 ) WHEN + + COUNT( * ) THEN 63 + - 90 WHEN - + CASE + 96 WHEN 15 + 51 THEN 59 WHEN NULLIF ( 74, 10 * 33 + - 89 * + COALESCE ( 82 * - 0, 13 * 63, + 62 ) ) + 4 THEN - 64 END + ( - 93 + 36 * + CASE + CASE - 16 WHEN 28 THEN NULL WHEN + COUNT( * ) THEN 76 END - AVG ( DISTINCT 82 + - 72 ) WHEN 62 THEN NULL WHEN 59 * 69 THEN 63 WHEN - NULLIF ( - 7, - CASE + 42 WHEN CASE 93 WHEN COALESCE ( - CAST( NULL AS DECIMAL ), + 91 * CASE 66 * + 63 WHEN 13 THEN - 95 + 26 WHEN + COALESCE ( + 72, 63 / - 46 ) THEN - 76 END, MIN( 89 ) ) + - 10 THEN - ( - 56 ) * 69 END + - COUNT( * ) THEN 58 * 68 END ) * ( 84 * - 24 ) THEN - 32 END ) THEN NULL END, 62 ) + - ( - ( 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT - NULLIF ( - CASE + - COUNT ( + - 84 ) WHEN + + COUNT ( * ) THEN 63 + - 90 WHEN - + CASE + 96 WHEN 15 + 51 THEN 59 WHEN NULLIF ( 74, 10 * 33 + - 89 * + COALESCE ( 82 * - 0, 13 * 63, + 62 ) ) + 4 THEN - 64 END + ( - 93 + 36 * + CASE + CASE - 16 WHEN 28 THEN NULL WHEN + COUNT ( * ) THEN 76 END - AVG ( DISTINCT 82 + - 72 ) WHEN 62 THEN NULL WHEN 59 * 69 THEN 63 WHEN - NULLIF ( - 7, - CASE + 42 WHEN CASE 93 WHEN COALESCE ( - CAST ( NULL AS REAL ), + 91 * CASE 66 * + 63 WHEN 13 THEN - 95 + 26 WHEN + COALESCE ( + 72, 63 / - 46 ) THEN - 76 END, MIN ( 89 ) ) + - 10 THEN - ( - 56 ) * 69 END + - COUNT ( * ) THEN 58 * 68 END ) * ( 84 * - 24 ) THEN - 32 END ) THEN NULL END, 62 ) + - ( - ( 85 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT + 11 DIV 47 col1
----
0

skipif mysql # not compatible
query I rowsort label-126
SELECT + 11 / 47 col1
----
0

query I rowsort
SELECT + CASE + 36 WHEN + 72 + + 18 THEN + 23 + - 86 * + 7 / - + 89 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-128
SELECT - 63 DIV - - COUNT( * ) - + + CASE 72 WHEN MAX( ALL - + 2 ) * - COUNT( ALL 74 ) * 39 * + 24 + 11 THEN NULL ELSE NULLIF ( + MIN( DISTINCT 0 ), + COUNT( DISTINCT + 35 ) ) END * ( + 11 )
----
-63

skipif mysql # not compatible
query I rowsort label-128
SELECT - 63 / - - COUNT ( * ) - + + CASE 72 WHEN MAX ( ALL - + 2 ) * - COUNT ( ALL 74 ) * 39 * + 24 + 11 THEN NULL ELSE NULLIF ( + MIN ( DISTINCT 0 ), + COUNT ( DISTINCT + 35 ) ) END * ( + 11 )
----
-63

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

onlyif mysql # aggregate syntax: 
query II rowsort label-130
SELECT ALL + SUM( - 56 ), COUNT( * ) * ( + + 6 ) AS col1
----
-56
6

skipif mysql # not compatible
query II rowsort label-130
SELECT ALL + SUM ( - 56 ), COUNT ( * ) * ( + + 6 ) AS col1
----
-56
6

query I rowsort
SELECT DISTINCT + 66 * - - 38 - - 55
----
2563

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL + 11 * + SUM( ALL + 29 ) AS col2
----
319

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL + 11 * + SUM ( ALL + 29 ) AS col2
----
319

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

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL NULLIF ( + + CASE + 64 WHEN 23 THEN NULL ELSE 59 END, - 23 * + SUM( DISTINCT - - 13 ) + - + 43 * 20 ) * - 77 - 62
----
-4605

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL NULLIF ( + + CASE + 64 WHEN 23 THEN NULL ELSE 59 END, - 23 * + SUM ( DISTINCT - - 13 ) + - + 43 * 20 ) * - 77 - 62
----
-4605

query I rowsort
SELECT + 76 + - + NULLIF ( + 64, - 15 ) col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT + 93 * - CASE - - 2 WHEN 57 THEN - COALESCE ( - COUNT( * ), - 61 + - MIN( - 69 ) + 3 ) WHEN 35 * + 73 - 52 THEN + CASE + 95 WHEN - 63 THEN 11 + - CASE 96 WHEN + ( - 88 ) THEN MAX( DISTINCT 32 ) END WHEN COUNT( * ) THEN - 85 / + CASE + 52 WHEN CASE - 98 WHEN COUNT( * ) + - 59 * + 62 THEN + 24 / 5 ELSE NULL END / MIN( + 54 ) THEN + COUNT( * ) ELSE - ( COUNT( * ) ) END + - 88 END END * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT + 93 * - CASE - - 2 WHEN 57 THEN - COALESCE ( - COUNT ( * ), - 61 + - MIN ( - 69 ) + 3 ) WHEN 35 * + 73 - 52 THEN + CASE + 95 WHEN - 63 THEN 11 + - CASE 96 WHEN + ( - 88 ) THEN MAX ( DISTINCT 32 ) END WHEN COUNT ( * ) THEN - 85 / + CASE + 52 WHEN CASE - 98 WHEN COUNT ( * ) + - 59 * + 62 THEN + 24 / 5 ELSE NULL END / MIN ( + 54 ) THEN + COUNT ( * ) ELSE - ( COUNT ( * ) ) END + - 88 END END * 14
----
NULL

query I rowsort
SELECT ( + + 94 ) * - 11 + + 15 + + 93 + 76
----
-850

query I rowsort
SELECT COALESCE ( - + 29, + ( - 55 ) )
----
-29

query I rowsort
SELECT ALL + 56 * 53 * - + NULLIF ( - 60, - 70 + + 52 / 59 * 41 ) - + 31 AS col2
----
178049

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT COALESCE ( NULLIF ( - 53, SUM( ALL 69 ) + NULLIF ( - 69, + 5 * + 55 - + 34 + 21 ) + 31 ), 43 * + 32 )
----
-53

skipif mysql # not compatible
query I rowsort label-140
SELECT COALESCE ( NULLIF ( - 53, SUM ( ALL 69 ) + NULLIF ( - 69, + 5 * + 55 - + 34 + 21 ) + 31 ), 43 * + 32 )
----
-53

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

skipif mysql # not compatible
query I rowsort label-141
SELECT + 46 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 63 * 88
----
5544

onlyif mysql # aggregate syntax: 
query II rowsort label-143
SELECT - COUNT( * ) + 34 * + + ( + 22 ) AS col2, + COUNT( * )
----
747
1

skipif mysql # not compatible
query II rowsort label-143
SELECT - COUNT ( * ) + 34 * + + ( + 22 ) AS col2, + COUNT ( * )
----
747
1

query I rowsort
SELECT - 98 + - 82
----
-180

onlyif mysql # DIV for integer division: 
query II rowsort label-145
SELECT - 15 DIV + 12 col0, - 98
----
-1
-98

skipif mysql # not compatible
query II rowsort label-145
SELECT - 15 / + 12 col0, - 98
----
-1
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-146
SELECT DISTINCT - CASE + + 84 WHEN 71 * + 69 * 85 THEN NULL ELSE MAX( ALL - - 19 ) END * + - 15 + - ( 42 ) + ( + ( - 16 ) + - 61 ) DIV + 49 DIV COUNT( * )
----
242

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT - CASE + + 84 WHEN 71 * + 69 * 85 THEN NULL ELSE MAX ( ALL - - 19 ) END * + - 15 + - ( 42 ) + ( + ( - 16 ) + - 61 ) / + 49 / COUNT ( * )
----
242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-147
SELECT ALL + CAST( SUM( ALL - 11 ) AS SIGNED ) * + CASE MAX( ALL - 13 ) WHEN 75 THEN NULL ELSE 89 + + COUNT( * ) - SUM( 36 + - 95 ) DIV + 30 END + 50 + - 42 * 42 AS col0
----
-2715

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL + CAST ( SUM ( ALL - 11 ) AS INTEGER ) * + CASE MAX ( ALL - 13 ) WHEN 75 THEN NULL ELSE 89 + + COUNT ( * ) - SUM ( 36 + - 95 ) / + 30 END + 50 + - 42 * 42 AS col0
----
-2715

query I rowsort
SELECT + 87 + - 65
----
22

query I rowsort
SELECT - + COALESCE ( 38, - 52 + + + 22 ) * - + 73
----
2774

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

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL + 49 * COUNT ( * ) / - 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT DISTINCT - 91 + + CASE + 26 WHEN + + 32 THEN NULL ELSE - 12 + + 66 END * MAX( DISTINCT + + 52 ) AS col0
----
2717

skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT - 91 + + CASE + 26 WHEN + + 32 THEN NULL ELSE - 12 + + 66 END * MAX ( DISTINCT + + 52 ) AS col0
----
2717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-152
SELECT - CASE + - 39 WHEN 42 * + 13 THEN NULL WHEN ( + MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) ) / - - 85 * + 36 + - COUNT( * ) THEN + 19 / 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-152
SELECT - CASE + - 39 WHEN 42 * + 13 THEN NULL WHEN ( + MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) ) / - - 85 * + 36 + - COUNT ( * ) THEN + 19 / 89 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 99 + + 52 AS col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT - 46 * - 17 * - - 89 + MAX( ALL + 1 )
----
69599

skipif mysql # not compatible
query I rowsort label-155
SELECT - 46 * - 17 * - - 89 + MAX ( ALL + 1 )
----
69599

query I rowsort
SELECT ALL + 97 + 91
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT - COUNT( ALL - 62 ) - + ( + 89 ) + + + ( - SUM( DISTINCT - 88 ) ) * SUM( + 99 ) col0
----
8622

skipif mysql # not compatible
query I rowsort label-157
SELECT - COUNT ( ALL - 62 ) - + ( + 89 ) + + + ( - SUM ( DISTINCT - 88 ) ) * SUM ( + 99 ) col0
----
8622

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT ALL ( 6 ) + - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL ( 6 ) + - COUNT ( * )
----
5

query I rowsort
SELECT + + 11 * - 70
----
-770

query I rowsort
SELECT - CASE + 18 WHEN NULLIF ( - 50, - CASE - 53 WHEN + - 14 THEN - - 46 ELSE - 47 END * 71 ) THEN + 13 ELSE NULL END col1
----
NULL

query I rowsort
SELECT - - 50 + - + 21 + + + 4 AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-162
SELECT + 18 * 18 DIV - COUNT( * ) AS col1
----
-324

skipif mysql # not compatible
query I rowsort label-162
SELECT + 18 * 18 / - COUNT ( * ) AS col1
----
-324

query I rowsort
SELECT ALL + 79 - - + 98
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-164
SELECT DISTINCT - 24 * + - ( + + COUNT( - CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT - 24 * + - ( + + COUNT ( - CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-165
SELECT + 29 * - NULLIF ( + 80, + CAST( + NULLIF ( + - 4, - + COUNT( * ) ) AS SIGNED ) * - 44 * - ( COALESCE ( 0, + 36 * 1 ) ) ) AS col1
----
-2320

skipif mysql # not compatible
query I rowsort label-165
SELECT + 29 * - NULLIF ( + 80, + CAST ( + NULLIF ( + - 4, - + COUNT ( * ) ) AS INTEGER ) * - 44 * - ( COALESCE ( 0, + 36 * 1 ) ) ) AS col1
----
-2320

query I rowsort
SELECT ALL + ( 18 ) * + 38 * - 59
----
-40356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-167
SELECT + COUNT( * ) * - NULLIF ( + - CASE - 47 WHEN - CAST( NULL AS SIGNED ) THEN CAST( NULL AS SIGNED ) ELSE + 35 END, - NULLIF ( + - 47, - COUNT( * ) * - 95 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-167
SELECT + COUNT ( * ) * - NULLIF ( + - CASE - 47 WHEN - CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) ELSE + 35 END, - NULLIF ( + - 47, - COUNT ( * ) * - 95 ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT COALESCE ( + 64, + + ( 69 ) - - + 77 + 4 * + 2, ( 42 ) + 42 + - COUNT( * ) ) * 52 + COUNT( * )
----
3329

skipif mysql # not compatible
query I rowsort label-168
SELECT COALESCE ( + 64, + + ( 69 ) - - + 77 + 4 * + 2, ( 42 ) + 42 + - COUNT ( * ) ) * 52 + COUNT ( * )
----
3329

query II rowsort
SELECT ALL + 87 col1, - 27
----
87
-27

query I rowsort
SELECT 23 * - 41 AS col2
----
-943

query II rowsort
SELECT 62 AS col0, - 18 + - 98
----
62
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT DISTINCT - 62 * - 86 * - COUNT( * )
----
-5332

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT - 62 * - 86 * - COUNT ( * )
----
-5332

query I rowsort
SELECT ALL 80 + - 99 - - 0 * - 80 - + - 12 AS col1
----
-7

query I rowsort
SELECT ALL - 44 + 97 * + 73
----
7037

query I rowsort
SELECT 83 - + + 22 + + 80 + + ( 29 )
----
170

query I rowsort
SELECT DISTINCT - 11 + + 69 + + + 35
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-177
SELECT + CASE - 59 WHEN ( + 94 ) * - - 9 THEN - COALESCE ( + + COALESCE ( + 89, - CAST( - CAST( - SUM( ALL + 78 ) AS SIGNED ) AS SIGNED ), 42 / - 88 + 83, - 52 + 16 ), 91, COUNT( * ) + - 7 ) END * MAX( DISTINCT + 32 + 15 ) + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-177
SELECT + CASE - 59 WHEN ( + 94 ) * - - 9 THEN - COALESCE ( + + COALESCE ( + 89, - CAST ( - CAST ( - SUM ( ALL + 78 ) AS INTEGER ) AS INTEGER ), 42 / - 88 + 83, - 52 + 16 ), 91, COUNT ( * ) + - 7 ) END * MAX ( DISTINCT + 32 + 15 ) + 80
----
NULL

query II rowsort
SELECT - COALESCE ( - 32, - - 80 ), + 71 AS col1
----
32
71

query I rowsort
SELECT 23 + - + 76
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT + COUNT( * ) * - 19 * 71 - - 42 AS col2
----
-1307

skipif mysql # not compatible
query I rowsort label-180
SELECT + COUNT ( * ) * - 19 * 71 - - 42 AS col2
----
-1307

query I rowsort
SELECT - 30 + 13 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-182
SELECT ALL + 72 AS col2, CASE + 41 WHEN + - 90 THEN COUNT( * ) WHEN - 0 THEN + 29 ELSE NULL END * + 38 * + 19 + - + ( CAST( + NULLIF ( + 87, COUNT( ALL - 11 ) * - 59 + 21 / + 46 ) AS SIGNED ) )
----
72
NULL

skipif mysql # not compatible
query II rowsort label-182
SELECT ALL + 72 AS col2, CASE + 41 WHEN + - 90 THEN COUNT ( * ) WHEN - 0 THEN + 29 ELSE NULL END * + 38 * + 19 + - + ( CAST ( + NULLIF ( + 87, COUNT ( ALL - 11 ) * - 59 + 21 / + 46 ) AS INTEGER ) )
----
72
NULL

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

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

query I rowsort
SELECT DISTINCT ( - 1 ) + + 61
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-185
SELECT - 57 * + + MAX( - 69 ) AS col1, - 11 + - 52 + 53
----
3933
-10

skipif mysql # not compatible
query II rowsort label-185
SELECT - 57 * + + MAX ( - 69 ) AS col1, - 11 + - 52 + 53
----
3933
-10

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

skipif mysql # not compatible
query I rowsort label-186
SELECT + NULLIF ( + COUNT ( * ), + 69 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT SUM( + - 1 ) + + + 10
----
9

skipif mysql # not compatible
query I rowsort label-187
SELECT SUM ( + - 1 ) + + + 10
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL + CASE + 0 WHEN + 42 THEN NULL WHEN - 95 / - 59 + + + AVG ( + 6 ) + + - 90 + - + MIN( + - 57 ) - - 48 / 47 THEN - 85 * 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL + CASE + 0 WHEN + 42 THEN NULL WHEN - 95 / - 59 + + + AVG ( + 6 ) + + - 90 + - + MIN ( + - 57 ) - - 48 / 47 THEN - 85 * 50 END
----
NULL

query I rowsort
SELECT - - ( 76 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-190
SELECT 25 * 31 * 41 + - 1 + 40 DIV ( COUNT( DISTINCT + 66 ) ) - 28 * 49 AS col1
----
30442

skipif mysql # not compatible
query I rowsort label-190
SELECT 25 * 31 * 41 + - 1 + 40 / ( COUNT ( DISTINCT + 66 ) ) - 28 * 49 AS col1
----
30442

query II rowsort
SELECT - - 71, 7 * 72 + 84 AS col2
----
71
588

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT - NULLIF ( + 3, + + SUM( ALL - 24 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-192
SELECT - NULLIF ( + 3, + + SUM ( ALL - 24 ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT DISTINCT - COUNT( * ) * + + 29 * - 66 AS col2
----
1914

skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT - COUNT ( * ) * + + 29 * - 66 AS col2
----
1914

query II rowsort
SELECT - 27, - 22 AS col0
----
-27
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-195
SELECT DISTINCT 79 AS col0, COUNT( * ) + - 62
----
79
-61

skipif mysql # not compatible
query II rowsort label-195
SELECT DISTINCT 79 AS col0, COUNT ( * ) + - 62
----
79
-61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-196
SELECT 40 AS col2, ( + - COALESCE ( - - 0, 66 + + - ( + 91 ) - - 49 DIV + - CAST( - 99 AS SIGNED ), 43 + CASE + 10 WHEN 60 THEN 34 + - 99 END ) ) AS col0
----
40
0

skipif mysql # not compatible
query II rowsort label-196
SELECT 40 AS col2, ( + - COALESCE ( - - 0, 66 + + - ( + 91 ) - - 49 / + - CAST ( - 99 AS INTEGER ), 43 + CASE + 10 WHEN 60 THEN 34 + - 99 END ) ) AS col0
----
40
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-197
SELECT 10 AS col0, + 61 * 19 * - + CAST( - + ( - - ( - ( - + 11 ) ) ) AS SIGNED ) * - 59 + - - MIN( ALL ( 77 ) ) * 27
----
10
-750112

skipif mysql # not compatible
query II rowsort label-197
SELECT 10 AS col0, + 61 * 19 * - + CAST ( - + ( - - ( - ( - + 11 ) ) ) AS INTEGER ) * - 59 + - - MIN ( ALL ( 77 ) ) * 27
----
10
-750112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-198
SELECT 26 * + + 28 * 21 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-198
SELECT 26 * + + 28 * 21 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT 32 DIV - + ( - - 63 )
----
0

skipif mysql # not compatible
query I rowsort label-200
SELECT 32 / - + ( - - 63 )
----
0

query I rowsort
SELECT 68 * - + 22 AS col0
----
-1496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-202
SELECT DISTINCT - 75 * CAST( NULL AS SIGNED ) * + + 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT - 75 * CAST ( NULL AS INTEGER ) * + + 53 col2
----
NULL

query I rowsort
SELECT ALL 34 * 45 AS col2
----
1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-204
SELECT 58 DIV - 35 AS col1, COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-204
SELECT 58 / - 35 AS col1, COUNT ( * ) AS col1
----
-1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-205
SELECT DISTINCT 28 + COUNT( * ) DIV + + 32 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT 28 + COUNT ( * ) / + + 32 AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT 48 DIV + 15
----
3

skipif mysql # not compatible
query I rowsort label-206
SELECT 48 / + 15
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-207
SELECT 86 - + - SUM( ALL - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT 86 - + - SUM ( ALL - CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT 40, 95 + + - 82 + 3 AS col0
----
40
16

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

skipif mysql # not compatible
query I rowsort label-209
SELECT CAST ( NULL AS INTEGER ) / 96 + - 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-210
SELECT CASE 6 WHEN + 43 + - 14 - + + COUNT( ALL 3 ) THEN - COUNT( ALL 47 ) WHEN 40 THEN + + 18 * - 12 / 57 - CASE + 44 WHEN + 49 THEN + CASE COUNT( * ) WHEN 57 + + 22 THEN NULL ELSE - CAST( + COUNT( * ) AS DECIMAL ) - 49 * + AVG ( DISTINCT + 57 * - 47 ) END + + 31 END ELSE NULL END * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-210
SELECT CASE 6 WHEN + 43 + - 14 - + + COUNT ( ALL 3 ) THEN - COUNT ( ALL 47 ) WHEN 40 THEN + + 18 * - 12 / 57 - CASE + 44 WHEN + 49 THEN + CASE COUNT ( * ) WHEN 57 + + 22 THEN NULL ELSE - CAST ( + COUNT ( * ) AS REAL ) - 49 * + AVG ( DISTINCT + 57 * - 47 ) END + + 31 END ELSE NULL END * - 2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-211
SELECT COUNT ( * ), 61 AS col2
----
1
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-212
SELECT ALL 17 + - MAX( DISTINCT + 26 ) + SUM( ALL + - 66 ) * - ( - - CAST( COUNT( + 3 ) AS SIGNED ) ) * 87 + 35 DIV 49
----
5733

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL 17 + - MAX ( DISTINCT + 26 ) + SUM ( ALL + - 66 ) * - ( - - CAST ( COUNT ( + 3 ) AS INTEGER ) ) * 87 + 35 / 49
----
5733

query I rowsort
SELECT ALL 22 + - 71
----
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-214
SELECT 91 * 80 DIV NULLIF ( + 12, - + NULLIF ( + 88, - 84 * - 34 + + 82 ) * - NULLIF ( + 32, + CAST( 59 AS SIGNED ) * - 32 ) + 93 ) DIV 52 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-214
SELECT 91 * 80 / NULLIF ( + 12, - + NULLIF ( + 88, - 84 * - 34 + + 82 ) * - NULLIF ( + 32, + CAST ( 59 AS INTEGER ) * - 32 ) + 93 ) / 52 AS col2
----
11

query I rowsort
SELECT - 5 + 18
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT ALL + ( + - COUNT( * ) ) + - + 21 * + COALESCE ( + + COUNT( * ), + 41 * + + 64, + - COALESCE ( - 17, - ( 30 ), + 1 * 61 + 81 ) ) * - 63 - ( 79 )
----
1243

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL + ( + - COUNT ( * ) ) + - + 21 * + COALESCE ( + + COUNT ( * ), + 41 * + + 64, + - COALESCE ( - 17, - ( 30 ), + 1 * 61 + 81 ) ) * - 63 - ( 79 )
----
1243

query II rowsort
SELECT DISTINCT - - 63, 11 + - 1 AS col2
----
63
10

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT DISTINCT COUNT( * ) * 1 * 97 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT COUNT ( * ) * 1 * 97 AS col0
----
97

query I rowsort
SELECT ALL - 6 * + + 26
----
-156

query I rowsort
SELECT NULLIF ( - 45, + 29 + - 23 ) AS col2
----
-45

query I rowsort
SELECT 40 - + 72
----
-32

query I rowsort
SELECT - 21 * + 11 col0
----
-231

query I rowsort
SELECT 99 * - - 62 + 15 AS col2
----
6153

query II rowsort
SELECT ALL 18 AS col2, 93 + - ( - - 18 )
----
18
75

query I rowsort
SELECT CASE + 62 WHEN - 32 + + 27 THEN NULL WHEN - - 74 THEN + 21 ELSE NULL END * - 19
----
NULL

query I rowsort
SELECT ALL + 52 * - 45 * + 45 * - 43
----
4527900

query I rowsort
SELECT 42 - + 85
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT ALL ( - 7 ) DIV 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL ( - 7 ) / 67 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-229
SELECT + 77 + - 52 - 71 * CAST( + + CASE - 68 WHEN + 55 THEN + 19 + 49 * - + 20 END AS SIGNED ) - + 32 / + 4 + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-229
SELECT + 77 + - 52 - 71 * CAST ( + + CASE - 68 WHEN + 55 THEN + 19 + 49 * - + 20 END AS INTEGER ) - + 32 / + 4 + 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT - 82 - + + COUNT( + - 10 ) - - - 83 AS col0
----
-166

skipif mysql # not compatible
query I rowsort label-230
SELECT - 82 - + + COUNT ( + - 10 ) - - - 83 AS col0
----
-166

query I rowsort
SELECT - 46 + - - 51
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT ALL - 62 + - - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL - 62 + - - COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT - MAX( DISTINCT - 95 ) + 87, 85 AS col0
----
182
85

skipif mysql # not compatible
query II rowsort label-233
SELECT - MAX ( DISTINCT - 95 ) + 87, 85 AS col0
----
182
85

query I rowsort
SELECT ALL - ( + + 52 ) * 24 + 80 AS col0
----
-1168

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT CASE - 1 WHEN + 24 THEN + + 33 WHEN + + 97 THEN + NULLIF ( - COUNT( * ), NULLIF ( 47, - 66 * - 45 + 51 * 13 ) ) END * 67 + MAX( 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT CASE - 1 WHEN + 24 THEN + + 33 WHEN + + 97 THEN + NULLIF ( - COUNT ( * ), NULLIF ( 47, - 66 * - 45 + 51 * 13 ) ) END * 67 + MAX ( 31 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-236
SELECT ALL CAST( + 88 AS SIGNED ) * + - 74 + + CAST( NULL AS DECIMAL ) * + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL CAST ( + 88 AS INTEGER ) * + - 74 + + CAST ( NULL AS REAL ) * + - 37
----
NULL

query I rowsort
SELECT NULLIF ( + 57, - 77 * + 90 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT - MAX( ALL + ( + 4 ) ) * - 57 AS col2
----
228

skipif mysql # not compatible
query I rowsort label-238
SELECT - MAX ( ALL + ( + 4 ) ) * - 57 AS col2
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT + ( - 9 ) * + + 67 + 73 * COUNT( * ) + 33
----
-497

skipif mysql # not compatible
query I rowsort label-239
SELECT + ( - 9 ) * + + 67 + 73 * COUNT ( * ) + 33
----
-497

query I rowsort
SELECT COALESCE ( - - 97, - - 33 ) col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-241
SELECT DISTINCT SUM( 6 ) * - 51 * + + 48 * - + 90 + - - 37 DIV + 32 AS col1
----
1321921

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT SUM ( 6 ) * - 51 * + + 48 * - + 90 + - - 37 / + 32 AS col1
----
1321921

query I rowsort
SELECT NULLIF ( + + 32, - 1 / 71 ) AS col2
----
32

query I rowsort
SELECT ALL 30 * + 3 + + 75
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT - COALESCE ( 56, + MIN( DISTINCT - 97 ) + - 98 ) * COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-244
SELECT - COALESCE ( 56, + MIN ( DISTINCT - 97 ) + - 98 ) * COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-245
SELECT - + COALESCE ( + 6, - 30 - - - 46 + + + 80 DIV - 48 ) + - SUM( ALL + - 92 )
----
86

skipif mysql # not compatible
query I rowsort label-245
SELECT - + COALESCE ( + 6, - 30 - - - 46 + + + 80 / - 48 ) + - SUM ( ALL + - 92 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-246
SELECT DISTINCT 71 * + 17 + + + 7 + ( ( + + 36 ) ) * - + 12 + CASE + ( + 68 ) WHEN - SUM( ALL - + 91 ) THEN - 10 WHEN - COUNT( ALL 37 ) * - 11 THEN - 83 * CAST( + 41 * + 29 AS SIGNED ) + MAX( ALL 48 ) * 36 END + 61 * - 17 * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT 71 * + 17 + + + 7 + ( ( + + 36 ) ) * - + 12 + CASE + ( + 68 ) WHEN - SUM ( ALL - + 91 ) THEN - 10 WHEN - COUNT ( ALL 37 ) * - 11 THEN - 83 * CAST ( + 41 * + 29 AS INTEGER ) + MAX ( ALL 48 ) * 36 END + 61 * - 17 * + 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT - - 6 DIV 56 + - 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-247
SELECT - - 6 / 56 + - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-248
SELECT ALL + 25 * SUM( + 90 ) + - 24 + + - 93 * + 5 - - 94 AS col2, 43 + - - 28 * - MAX( DISTINCT + 24 ) + ( - COUNT( * ) )
----
1855
-630

skipif mysql # not compatible
query II rowsort label-248
SELECT ALL + 25 * SUM ( + 90 ) + - 24 + + - 93 * + 5 - - 94 AS col2, 43 + - - 28 * - MAX ( DISTINCT + 24 ) + ( - COUNT ( * ) )
----
1855
-630

onlyif mysql # aggregate syntax: 
query II rowsort label-249
SELECT - + 90 * SUM( - 76 ) AS col2, + 81 AS col1
----
6840
81

skipif mysql # not compatible
query II rowsort label-249
SELECT - + 90 * SUM ( - 76 ) AS col2, + 81 AS col1
----
6840
81

query I rowsort
SELECT ALL + - 51 col2
----
-51

query I rowsort
SELECT ALL + - 23 * 23 + + ( 66 ) * 35 - 80 - 64 + 15 * CASE - + 27 WHEN - 14 THEN 19 * + 16 ELSE + 43 END * 86 AS col2
----
57107

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-252
SELECT + 35 + ( - 42 ) + - + 0 + - CAST( - 92 AS SIGNED ) + + + 72 DIV 43 DIV 80 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-252
SELECT + 35 + ( - 42 ) + - + 0 + - CAST ( - 92 AS INTEGER ) + + + 72 / 43 / 80 AS col1
----
85

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

skipif mysql # not compatible
query I rowsort label-253
SELECT + COUNT ( * ) / - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT - 78 * MIN( + 38 ) * - COUNT( * ) * - 30
----
-88920

skipif mysql # not compatible
query I rowsort label-254
SELECT - 78 * MIN ( + 38 ) * - COUNT ( * ) * - 30
----
-88920

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT - 5 DIV - - 28 + + - COALESCE ( - 33, - 56 * - + CASE - 64 WHEN + 7 THEN + + 5 * + 43 + + + 27 + + 39 * - 13 END ) + 53 * 67 * + 61
----
216644

skipif mysql # not compatible
query I rowsort label-255
SELECT - 5 / - - 28 + + - COALESCE ( - 33, - 56 * - + CASE - 64 WHEN + 7 THEN + + 5 * + 43 + + + 27 + + 39 * - 13 END ) + 53 * 67 * + 61
----
216644

query II rowsort
SELECT ALL ( + ( - 69 ) ) col1, - 99 + + 58 AS col1
----
-69
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-257
SELECT + + 88 + + - 59, - 67 DIV - - 93 AS col0
----
29
0

skipif mysql # not compatible
query II rowsort label-257
SELECT + + 88 + + - 59, - 67 / - - 93 AS col0
----
29
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-258
SELECT + CASE - + ( - CAST( NULL AS DECIMAL ) ) WHEN + ( 61 ) / + 36 / - + ( + MIN( DISTINCT + 39 ) ) THEN - 82 * - 82 + 46 * 4 ELSE NULL END + + 6 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-258
SELECT + CASE - + ( - CAST ( NULL AS REAL ) ) WHEN + ( 61 ) / + 36 / - + ( + MIN ( DISTINCT + 39 ) ) THEN - 82 * - 82 + 46 * 4 ELSE NULL END + + 6 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT + + NULLIF ( - 5, - COUNT( * ) ) * - + 89
----
445

skipif mysql # not compatible
query I rowsort label-259
SELECT + + NULLIF ( - 5, - COUNT ( * ) ) * - + 89
----
445

query I rowsort
SELECT - 77 * - 6
----
462

query I rowsort
SELECT - NULLIF ( 57, - ( - - 83 ) ) AS col0
----
-57

query I rowsort
SELECT - NULLIF ( 40, + AVG ( - - 40 ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-263
SELECT + COUNT ( * ) / + 13
----
0

query I rowsort
SELECT ALL + 30 + + - 64
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT DISTINCT + 3 * - - CASE + COUNT( * ) WHEN - 29 THEN + COUNT( * ) * + + 38 * + 35 END * + - 84 * + COUNT( * ) / - MAX( + 4 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT + 3 * - - CASE + COUNT ( * ) WHEN - 29 THEN + COUNT ( * ) * + + 38 * + 35 END * + - 84 * + COUNT ( * ) / - MAX ( + 4 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-266
SELECT ALL 57 DIV + 98 col0
----
0

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL 57 / + 98 col0
----
0

query I rowsort
SELECT - 69 * - - 96 * + - 31 AS col0
----
205344

onlyif mysql # aggregate syntax: 
query II rowsort label-268
SELECT 78, COUNT( - 57 ) AS col0
----
78
1

skipif mysql # not compatible
query II rowsort label-268
SELECT 78, COUNT ( - 57 ) AS col0
----
78
1

query I rowsort
SELECT - ( ( + 60 ) ) col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-270
SELECT + CAST( - + CASE + 90 WHEN - 21 * - 99 THEN - 52 * + COUNT( * ) + - + 31 WHEN + 21 THEN + - 68 * 34 WHEN - 69 * - 21 THEN NULL ELSE CAST( + 43 AS SIGNED ) END AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-270
SELECT + CAST ( - + CASE + 90 WHEN - 21 * - 99 THEN - 52 * + COUNT ( * ) + - + 31 WHEN + 21 THEN + - 68 * 34 WHEN - 69 * - 21 THEN NULL ELSE CAST ( + 43 AS INTEGER ) END AS INTEGER )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-271
SELECT DISTINCT 19 DIV 73 - 80
----
-80

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT 19 / 73 - 80
----
-80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-273
SELECT ALL + NULLIF ( - - COUNT( * ), + 68 DIV - AVG ( ALL + - 93 ) ) DIV + 67 - CAST( + COUNT( * ) AS SIGNED ) + 13 + + + 91 * COUNT( * ) * 5 + + 30 - - 48
----
545

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL + NULLIF ( - - COUNT ( * ), + 68 / - AVG ( ALL + - 93 ) ) / + 67 - CAST ( + COUNT ( * ) AS INTEGER ) + 13 + + + 91 * COUNT ( * ) * 5 + + 30 - - 48
----
545

query I rowsort
SELECT + COALESCE ( 44, + + 83 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-275
SELECT - 23 - + 83 * 48 DIV 54 * + + SUM( - 82 ) AS col2, 45 AS col2
----
5963
45

skipif mysql # not compatible
query II rowsort label-275
SELECT - 23 - + 83 * 48 / 54 * + + SUM ( - 82 ) AS col2, 45 AS col2
----
5963
45

query II rowsort
SELECT + 56, - 82 AS col2
----
56
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT + + NULLIF ( - - 83, COUNT( ALL 93 ) / - 97 * 71 + + - ( - 80 ) * - - 10 - 45 + + COUNT( ALL - - 67 ) / - + MAX( ALL + 29 ) ) col0
----
83

skipif mysql # not compatible
query I rowsort label-277
SELECT + + NULLIF ( - - 83, COUNT ( ALL 93 ) / - 97 * 71 + + - ( - 80 ) * - - 10 - 45 + + COUNT ( ALL - - 67 ) / - + MAX ( ALL + 29 ) ) col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-278
SELECT ALL - CAST( + 48 AS DECIMAL ) / - CAST( NULL AS SIGNED ) + 31 + 2 + + NULLIF ( - + ( - 22 ), + COUNT( * ) ) + - COUNT( * ) * - ( - 58 ) * COUNT( * ) + COUNT( * ) * COUNT( ALL - 91 + 32 ) - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - CAST ( + 48 AS REAL ) / - CAST ( NULL AS INTEGER ) + 31 + 2 + + NULLIF ( - + ( - 22 ), + COUNT ( * ) ) + - COUNT ( * ) * - ( - 58 ) * COUNT ( * ) + COUNT ( * ) * COUNT ( ALL - 91 + 32 ) - + 25
----
NULL

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

skipif mysql # not compatible
query I rowsort label-279
SELECT - - SUM ( ALL - 7 ) * + - 99 AS col1
----
693

query I rowsort
SELECT DISTINCT + + 43 * - 89 * - 52 + - 57
----
198947

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

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL + CAST ( + 90 AS INTEGER ) AS col1
----
90

query I rowsort
SELECT - - 34 + + 69 AS col2
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-283
SELECT - COUNT( * ) * + 85 * 67 * 64, - 13 DIV + 64 AS col2
----
-364480
0

skipif mysql # not compatible
query II rowsort label-283
SELECT - COUNT ( * ) * + 85 * 67 * 64, - 13 / + 64 AS col2
----
-364480
0

onlyif mysql # aggregate syntax: 
query II rowsort label-284
SELECT ALL - 18 AS col2, - 81 * - 77 + + 63 + - 45 * + COUNT( * ) * + 18
----
-18
5490

skipif mysql # not compatible
query II rowsort label-284
SELECT ALL - 18 AS col2, - 81 * - 77 + + 63 + - 45 * + COUNT ( * ) * + 18
----
-18
5490

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-285
SELECT ALL - - 1 * + 68 DIV - CAST( 85 AS SIGNED ) * - 56 + + 41 col2
----
41

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL - - 1 * + 68 / - CAST ( 85 AS INTEGER ) * - 56 + + 41 col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-286
SELECT COUNT( * ) * + 35 * - 73 AS col2, + 25
----
-2555
25

skipif mysql # not compatible
query II rowsort label-286
SELECT COUNT ( * ) * + 35 * - 73 AS col2, + 25
----
-2555
25

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

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

query I rowsort
SELECT + 92 * - + 73 + - - 54
----
-6662

query I rowsort
SELECT ALL + ( + 31 ) + 97 * + ( + 35 ) + 46 AS col1
----
3472

onlyif mysql # DIV for integer division: 
query I rowsort label-290
SELECT DISTINCT 59 DIV + 29
----
2

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT 59 / + 29
----
2

query I rowsort
SELECT ALL + 89 + + + 11
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT DISTINCT 52 + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT 52 + COUNT ( * )
----
53

query I rowsort
SELECT ALL 11 + 49 + + 18 + - 99 - + 43 * + 44
----
-1913

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-294
SELECT 51 + COUNT( * ) * - 83 + - 63 + + COALESCE ( + + 94, 88 DIV - 51, + 62 ) AS col1, + 71 AS col2
----
-1
71

skipif mysql # not compatible
query II rowsort label-294
SELECT 51 + COUNT ( * ) * - 83 + - 63 + + COALESCE ( + + 94, 88 / - 51, + 62 ) AS col1, + 71 AS col2
----
-1
71

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT ALL 51 - + NULLIF ( + 40, 36 - 17 ) + + MAX( DISTINCT + - 75 )
----
-64

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL 51 - + NULLIF ( + 40, 36 - 17 ) + + MAX ( DISTINCT + - 75 )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-296
SELECT 67 * + - CAST( 96 AS SIGNED )
----
-6432

skipif mysql # not compatible
query I rowsort label-296
SELECT 67 * + - CAST ( 96 AS INTEGER )
----
-6432

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT MAX( 18 ) + - 16
----
2

skipif mysql # not compatible
query I rowsort label-297
SELECT MAX ( 18 ) + - 16
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-298
SELECT 86 + CAST( - ( - 75 ) AS SIGNED ) AS col0
----
161

skipif mysql # not compatible
query I rowsort label-298
SELECT 86 + CAST ( - ( - 75 ) AS INTEGER ) AS col0
----
161

query I rowsort
SELECT ALL 15 - 59 col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-300
SELECT ALL + ( - 19 ) - + COALESCE ( CAST( + COUNT( * ) AS SIGNED ), - 12 )
----
-20

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL + ( - 19 ) - + COALESCE ( CAST ( + COUNT ( * ) AS INTEGER ), - 12 )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-301
SELECT 36 DIV + 64 * + 99 + - - COALESCE ( - 76, + 83 ) + + ( + 13 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-301
SELECT 36 / + 64 * + 99 + - - COALESCE ( - 76, + 83 ) + + ( + 13 ) AS col0
----
-63

query I rowsort
SELECT + 33 * - + 98
----
-3234

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT COALESCE ( + 98, + 28 ) DIV 48
----
2

skipif mysql # not compatible
query I rowsort label-303
SELECT COALESCE ( + 98, + 28 ) / 48
----
2

query II rowsort
SELECT ALL + 27 * 40 AS col0, 68
----
1080
68

onlyif mysql # DIV for integer division: 
query I rowsort label-305
SELECT ALL + 66 * 87 DIV 71 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL + 66 * 87 / 71 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT - + 22 * COUNT( * ) - 54
----
-76

skipif mysql # not compatible
query I rowsort label-306
SELECT - + 22 * COUNT ( * ) - 54
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT CASE ( COALESCE ( - + COUNT( * ), + COALESCE ( - - MIN( - - ( 78 ) ), + 61 ) + - + MAX( 51 ) * + 33 * NULLIF ( + 59, - AVG ( ALL - 36 ) * 77 ), 25 ) ) WHEN 57 * + 67 THEN 59 * 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT CASE ( COALESCE ( - + COUNT ( * ), + COALESCE ( - - MIN ( - - ( 78 ) ), + 61 ) + - + MAX ( 51 ) * + 33 * NULLIF ( + 59, - AVG ( ALL - 36 ) * 77 ), 25 ) ) WHEN 57 * + 67 THEN 59 * 92 END
----
NULL

query I rowsort
SELECT ( + 8 ) * + - ( + + 37 ) * + - 55 AS col2
----
16280

query I rowsort
SELECT ALL - 30 * - 27
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT ALL - 57 + COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL - 57 + COUNT ( * ) AS col2
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-311
SELECT DISTINCT - COALESCE ( - 98, + 15 * 95 + - 92 + - ( 10 ), + 3 * - + 16 ) DIV - COUNT( * ) + - + 94 - COUNT( DISTINCT - - 82 )
----
-193

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT - COALESCE ( - 98, + 15 * 95 + - 92 + - ( 10 ), + 3 * - + 16 ) / - COUNT ( * ) + - + 94 - COUNT ( DISTINCT - - 82 )
----
-193

query I rowsort
SELECT ALL + 57 + + 64 * - - ( + - 20 ) AS col2
----
-1223

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT DISTINCT - 12 + - - NULLIF ( + 41, - COUNT( * ) )
----
29

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT - 12 + - - NULLIF ( + 41, - COUNT ( * ) )
----
29

query II rowsort
SELECT ALL + 58 - - 65 - 53, - 25 AS col0
----
70
-25

query II rowsort
SELECT 28 AS col0, 11 AS col1
----
28
11

onlyif mysql # DIV for integer division: 
query I rowsort label-316
SELECT ALL 4 DIV - ( + - 70 ) * - - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL 4 / - ( + - 70 ) * - - 88 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL + 95 - - COUNT ( * ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT MAX( 23 )
----
23

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT MAX ( 23 )
----
23

query I rowsort
SELECT ALL 98 - + - 50 * + 12 * - 32 col0
----
-19102

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT 2 * + MIN( ALL + 31 )
----
62

skipif mysql # not compatible
query I rowsort label-320
SELECT 2 * + MIN ( ALL + 31 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT ALL MIN( DISTINCT + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL MIN ( DISTINCT + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT - 31 * - CASE + 78 WHEN + - 26 + - SUM( DISTINCT + 68 ) + - 24 * 54 THEN NULL WHEN - - 4 * NULLIF ( + - 92, 9 ) THEN COUNT( * ) * - 48 END * + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT - 31 * - CASE + 78 WHEN + - 26 + - SUM ( DISTINCT + 68 ) + - 24 * 54 THEN NULL WHEN - - 4 * NULLIF ( + - 92, 9 ) THEN COUNT ( * ) * - 48 END * + 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT NULLIF ( - 14, + COUNT( * ) ) * + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-323
SELECT NULLIF ( - 14, + COUNT ( * ) ) * + COUNT ( * )
----
-14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT DISTINCT 46 * - 12 * - COUNT( * ) * 59
----
32568

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT 46 * - 12 * - COUNT ( * ) * 59
----
32568

onlyif mysql # DIV for integer division: 
query I rowsort label-326
SELECT ALL + 6 DIV 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL + 6 / 36 AS col0
----
0

query II rowsort
SELECT ALL + + 20 * + - 86 * 55 + + + 54 + + 37 * 54, + 64 AS col1
----
-92548
64

query I rowsort
SELECT ALL + - 54 * + 96 + + 82 AS col1
----
-5102

query I rowsort
SELECT + - 32 + - 64
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-330
SELECT COALESCE ( 90, + + 46 + - + 40 - + 31 DIV - 36 + + - 7 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-330
SELECT COALESCE ( 90, + + 46 + - + 40 - + 31 / - 36 + + - 7 ) AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-331
SELECT ALL - CAST( NULL AS SIGNED ) / + 20 + - 49 + + 94 * 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - CAST ( NULL AS INTEGER ) / + 20 + - 49 + + 94 * 51 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-332
SELECT - 30 DIV 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-332
SELECT - 30 / 33 AS col2
----
0

query I rowsort
SELECT ALL - 67 * + - 19 + - - 16 col2
----
1289

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-334
SELECT + - 49 * - AVG ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT + - 49 * - AVG ( - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT ALL 57 * - COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL 57 * - COUNT ( * ) AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-336
SELECT DISTINCT COUNT( - 31 ) * - 75 + NULLIF ( 76, + - 65 + - + CAST( + COALESCE ( + 84, - - 29 - - 73 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT COUNT ( - 31 ) * - 75 + NULLIF ( 76, + - 65 + - + CAST ( + COALESCE ( + 84, - - 29 - - 73 ) AS INTEGER ) )
----
1

query II rowsort
SELECT ALL + COALESCE ( + ( + 66 ), + - COALESCE ( + 28, + NULLIF ( - + 74, - - 61 ) + 42 ) ) AS col0, 0 AS col0
----
66
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-338
SELECT + 77 AS col2, 7 + - - MAX( - 11 ), + - CAST( NULL AS SIGNED ) AS col0
----
77
-4
NULL

skipif mysql # not compatible
query III rowsort label-338
SELECT + 77 AS col2, 7 + - - MAX ( - 11 ), + - CAST ( NULL AS INTEGER ) AS col0
----
77
-4
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-339
SELECT ALL + COUNT( * ) col2, + 36, + 43 DIV MAX( DISTINCT + 63 ) * + 33 col1
----
1
36
0

skipif mysql # not compatible
query III rowsort label-339
SELECT ALL + COUNT ( * ) col2, + 36, + 43 / MAX ( DISTINCT + 63 ) * + 33 col1
----
1
36
0

query I rowsort
SELECT DISTINCT 41 - - 33 + - + ( - 30 )
----
104

query I rowsort
SELECT ALL - 26 - - 48 AS col2
----
22

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-344
SELECT ALL - 99 DIV COUNT( * ) * + 2 * + ( 87 ) * - COUNT( * ) AS col0
----
17226

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL - 99 / COUNT ( * ) * + 2 * + ( 87 ) * - COUNT ( * ) AS col0
----
17226

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT - COUNT( * ) - - 15 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-345
SELECT - COUNT ( * ) - - 15 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL 40 - - - 98 + + - 44 + - MIN( ALL + 58 ) + 21 * - + 61 + 24 * 46 * + 70 * - MIN( - 50 ) * 98
----
378670559

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL 40 - - - 98 + + - 44 + - MIN ( ALL + 58 ) + 21 * - + 61 + 24 * 46 * + 70 * - MIN ( - 50 ) * 98
----
378670559

query I rowsort
SELECT ALL COALESCE ( + + 99, - + 97 + + 95 )
----
99

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-349
SELECT ALL COUNT( * ), 10 AS col1
----
1
10

skipif mysql # not compatible
query II rowsort label-349
SELECT ALL COUNT ( * ), 10 AS col1
----
1
10

query I rowsort
SELECT + 74 + 40 AS col1
----
114

query I rowsort
SELECT - 80 - + 74 col0
----
-154

query I rowsort
SELECT ALL NULLIF ( - 1, - 53 / - 93 )
----
-1

query I rowsort
SELECT - 56 - - 27
----
-29

query I rowsort
SELECT ALL CASE + 82 WHEN - 61 THEN NULL WHEN + ( + 46 ) + - 88 * - - COALESCE ( - 78, + 38 ) THEN - 89 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-355
SELECT - ( - 85 ) DIV 70 + + - CAST( - 84 AS SIGNED ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-355
SELECT - ( - 85 ) / 70 + + - CAST ( - 84 AS INTEGER ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT DISTINCT + ( - COUNT( ALL - + 91 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT + ( - COUNT ( ALL - + 91 ) )
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-358
SELECT - - SUM( DISTINCT - 20 ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-358
SELECT - - SUM ( DISTINCT - 20 ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT - - COALESCE ( - + 34, 26 ) * - 61 * + ( - ( MIN( + - 96 ) ) )
----
199104

skipif mysql # not compatible
query I rowsort label-359
SELECT - - COALESCE ( - + 34, 26 ) * - 61 * + ( - ( MIN ( + - 96 ) ) )
----
199104

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL + 41 + - 53 / - NULLIF ( - - CASE + COUNT( * ) WHEN - 12 - + + 72 THEN 90 WHEN - 95 THEN - 56 * CASE + 6 WHEN + 70 + + 58 / + + 94 * 87 THEN ( + COUNT( * ) ) END ELSE NULL END, ( - COUNT( * ) ) - + 2 ) / 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL + 41 + - 53 / - NULLIF ( - - CASE + COUNT ( * ) WHEN - 12 - + + 72 THEN 90 WHEN - 95 THEN - 56 * CASE + 6 WHEN + 70 + + 58 / + + 94 * 87 THEN ( + COUNT ( * ) ) END ELSE NULL END, ( - COUNT ( * ) ) - + 2 ) / 74 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-361
SELECT DISTINCT 61 DIV - 43 + - + 65 + 53 + - 63 * 15 + + 16 * 17 AS col2
----
-686

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT 61 / - 43 + - + 65 + 53 + - 63 * 15 + + 16 * 17 AS col2
----
-686

onlyif mysql # aggregate syntax: 
query II rowsort label-362
SELECT ALL + - 62 col1, + 84 - COUNT( * )
----
-62
83

skipif mysql # not compatible
query II rowsort label-362
SELECT ALL + - 62 col1, + 84 - COUNT ( * )
----
-62
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-363
SELECT 44 * - 70 DIV + COUNT( * ) + - 69 AS col0
----
-3149

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT + COUNT( * ) * - 10 + + + 37 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-364
SELECT + COUNT ( * ) * - 10 + + + 37 AS col0
----
27

query II rowsort
SELECT ALL + 57 col2, 29 * 5 AS col2
----
57
145

query I rowsort
SELECT + 19 + 69 + - + 68 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT ALL + COUNT( - - 46 ) * - - 72 + - - 15 col0
----
87

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL + COUNT ( - - 46 ) * - - 72 + - - 15 col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-368
SELECT - + CASE + 77 WHEN - MIN( - 98 ) * 44 * + 16 + - 16 / 23 * 58 THEN 2 + + 31 WHEN + 28 THEN - 70 ELSE + CASE WHEN NOT NULL NOT BETWEEN ( + 2 ) AND 96 * 95 THEN 24 - + 86 * 86 WHEN NOT 40 * 41 IS NOT NULL THEN NULL END + ( - 83 + + 13 ) END + CAST( - 84 AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-368
SELECT - + CASE + 77 WHEN - MIN ( - 98 ) * 44 * + 16 + - 16 / 23 * 58 THEN 2 + + 31 WHEN + 28 THEN - 70 ELSE + CASE WHEN NOT NULL NOT BETWEEN ( + 2 ) AND 96 * 95 THEN 24 - + 86 * 86 WHEN NOT 40 * 41 IS NOT NULL THEN NULL END + ( - 83 + + 13 ) END + CAST ( - 84 AS REAL ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 56 * 98 col2
----
5488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-370
SELECT + - COUNT( * ) * 34, - CAST( CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) + - 31 AS col1
----
-34
-30

skipif mysql # not compatible
query II rowsort label-370
SELECT + - COUNT ( * ) * 34, - CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) + - 31 AS col1
----
-34
-30

query I rowsort
SELECT ALL + NULLIF ( - 23, 40 ) col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT ALL CASE 59 WHEN - COUNT( * ) - - 7 THEN + + 52 WHEN + 66 THEN ( COUNT( * ) ) END * 51 - - 92 - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL CASE 59 WHEN - COUNT ( * ) - - 7 THEN + + 52 WHEN + 66 THEN ( COUNT ( * ) ) END * 51 - - 92 - + 26
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-373
SELECT ( - 9 ) col2, 50 - + - 37 * COUNT( * )
----
-9
87

skipif mysql # not compatible
query II rowsort label-373
SELECT ( - 9 ) col2, 50 - + - 37 * COUNT ( * )
----
-9
87

query I rowsort
SELECT - 88 + ( + 92 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-375
SELECT CAST( + + 49 AS SIGNED ) * - 95 + + 9 * + 55 col0
----
-4160

skipif mysql # not compatible
query I rowsort label-375
SELECT CAST ( + + 49 AS INTEGER ) * - 95 + + 9 * + 55 col0
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT + COALESCE ( + COUNT( * ), + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-376
SELECT + COALESCE ( + COUNT ( * ), + 95 )
----
1

query I rowsort
SELECT CASE + - 13 WHEN + 92 THEN + - 6 ELSE NULL END * + - 32 / + - 34 + + - 53 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT SUM( ALL - ( + 91 ) ) * + CAST( NULL AS SIGNED ) + - 55 + 60 + - 33 * + 23 * - 50 + - 7 * - ( 35 ) / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT SUM ( ALL - ( + 91 ) ) * + CAST ( NULL AS INTEGER ) + - 55 + 60 + - 33 * + 23 * - 50 + - 7 * - ( 35 ) / 38
----
NULL

query I rowsort
SELECT + ( - 81 ) + + + 79 AS col0
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-380
SELECT DISTINCT 58 * - 20 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT 58 * - 20 * + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - 95 * 28 AS col2
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT ALL CASE - 57 WHEN - + MAX( ALL - 16 ) + - 14 + - 5 - - COUNT( * ) - NULLIF ( + 67, - - 55 + - - 2 ) * - - 68 + + - 6 - 94 + - 20 + + COUNT( * ) * - + 96 * + 69 THEN COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL CASE - 57 WHEN - + MAX ( ALL - 16 ) + - 14 + - 5 - - COUNT ( * ) - NULLIF ( + 67, - - 55 + - - 2 ) * - - 68 + + - 6 - 94 + - 20 + + COUNT ( * ) * - + 96 * + 69 THEN COUNT ( * ) ELSE NULL END col2
----
NULL

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

query I rowsort
SELECT + 63 * - 1 AS col1
----
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT - 35 * 61 + MAX( ALL 27 )
----
-2108

skipif mysql # not compatible
query I rowsort label-386
SELECT - 35 * 61 + MAX ( ALL 27 )
----
-2108

onlyif mysql # aggregate syntax: 
query II rowsort label-387
SELECT ALL MIN( DISTINCT + 43 ) AS col2, + 67 AS col1
----
43
67

skipif mysql # not compatible
query II rowsort label-387
SELECT ALL MIN ( DISTINCT + 43 ) AS col2, + 67 AS col1
----
43
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-388
SELECT - 57 + + 94 + + + 5 + 73 DIV 63 DIV 51 * - 91 * - + 50 DIV - COUNT( * ) + ( + - 43 ) * - + 85 AS col2, 87 AS col1
----
3697
87

skipif mysql # not compatible
query II rowsort label-388
SELECT - 57 + + 94 + + + 5 + 73 / 63 / 51 * - 91 * - + 50 / - COUNT ( * ) + ( + - 43 ) * - + 85 AS col2, 87 AS col1
----
3697
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-389
SELECT ALL CASE + 41 WHEN + MAX( DISTINCT - - ( + + 96 ) ) THEN + - 44 * + 36 * - - CAST( NULL AS SIGNED ) + COALESCE ( - ( - 57 ), + 90 ) WHEN 23 THEN - 75 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL CASE + 41 WHEN + MAX ( DISTINCT - - ( + + 96 ) ) THEN + - 44 * + 36 * - - CAST ( NULL AS INTEGER ) + COALESCE ( - ( - 57 ), + 90 ) WHEN 23 THEN - 75 END AS col2
----
NULL

query I rowsort
SELECT + ( 16 ) * - 56
----
-896

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-391
SELECT - 33 + 31 AS col2, + 81 * + + CAST( NULL AS SIGNED ) AS col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-391
SELECT - 33 + 31 AS col2, + 81 * + + CAST ( NULL AS INTEGER ) AS col0
----
-2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-392
SELECT - CAST( COUNT( + 40 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-392
SELECT - CAST ( COUNT ( + 40 ) AS INTEGER ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-393
SELECT DISTINCT + - CASE - 54 WHEN + 83 THEN + - 66 * - 56 - + COUNT( CAST( 85 AS SIGNED ) ) WHEN + 76 THEN 81 * - CAST( NULL AS SIGNED ) END * CASE + 5 WHEN + COUNT( * ) + - 4 + + 66 + - + 20 THEN + 35 * + 93 WHEN + 98 * - MIN( 28 ) THEN NULL END * + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT + - CASE - 54 WHEN + 83 THEN + - 66 * - 56 - + COUNT ( CAST ( 85 AS INTEGER ) ) WHEN + 76 THEN 81 * - CAST ( NULL AS INTEGER ) END * CASE + 5 WHEN + COUNT ( * ) + - 4 + + 66 + - + 20 THEN + 35 * + 93 WHEN + 98 * - MIN ( 28 ) THEN NULL END * + 12 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 5 + + + 28, 73 AS col1
----
33
73

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

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL + - COUNT ( * ) * + - 17 * - 18
----
-306

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-397
SELECT ALL 23 + - 61 * + - ( 26 ) DIV - ( + + COUNT( * ) ) + + COUNT( * ) * - - MIN( 23 ) AS col0
----
-1540

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL 23 + - 61 * + - ( 26 ) / - ( + + COUNT ( * ) ) + + COUNT ( * ) * - - MIN ( 23 ) AS col0
----
-1540

query I rowsort
SELECT - 76 * + + 42 col1
----
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT ALL + + COUNT( * ) * COALESCE ( - 65, 43, 11 * 35 ) * - 69 AS col1
----
4485

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL + + COUNT ( * ) * COALESCE ( - 65, 43, 11 * 35 ) * - 69 AS col1
----
4485

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

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

query I rowsort
SELECT 39 + + + ( - 59 ) AS col0
----
-20

query I rowsort
SELECT + 99 + + 77 * - 18
----
-1287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-403
SELECT DISTINCT - + ( + ( MIN( 36 ) ) ) + + + 82 - MAX( + 17 ) * + - 13 + 51 * 93 / - 34 * - NULLIF ( CAST( NULL AS SIGNED ), - AVG ( + 33 ) + - + 15 * 61 ) * 8 + + 20 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT - + ( + ( MIN ( 36 ) ) ) + + + 82 - MAX ( + 17 ) * + - 13 + 51 * 93 / - 34 * - NULLIF ( CAST ( NULL AS INTEGER ), - AVG ( + 33 ) + - + 15 * 61 ) * 8 + + 20 col1
----
NULL

query I rowsort
SELECT + 43 * + 26 + 77 + - - ( + 55 )
----
1250

query I rowsort
SELECT ALL + 54 + - - 34
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT ALL - 63 DIV - 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL - 63 / - 80 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-407
SELECT 39 * + + 46 + - 8 + + + 27 + 0 DIV - + 76
----
1813

skipif mysql # not compatible
query I rowsort label-407
SELECT 39 * + + 46 + - 8 + + + 27 + 0 / - + 76
----
1813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-408
SELECT ALL - MIN( - 98 ) DIV - 7
----
-14

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL - MIN ( - 98 ) / - 7
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-409
SELECT + + CASE + NULLIF ( CASE - 54 WHEN COALESCE ( CASE CAST( 11 AS SIGNED ) WHEN ( + + 65 ) * 71 + - MAX( DISTINCT - 21 ) + - - 31 - 42 THEN 12 * 83 WHEN 22 THEN - COUNT( * ) END, 77 ) THEN - 58 WHEN 75 * + CAST( 85 * + 41 AS SIGNED ) THEN 28 - 11 END, - 5 ) WHEN + 99 + 81 THEN - 85 WHEN - 48 / + 11 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-409
SELECT + + CASE + NULLIF ( CASE - 54 WHEN COALESCE ( CASE CAST ( 11 AS INTEGER ) WHEN ( + + 65 ) * 71 + - MAX ( DISTINCT - 21 ) + - - 31 - 42 THEN 12 * 83 WHEN 22 THEN - COUNT ( * ) END, 77 ) THEN - 58 WHEN 75 * + CAST ( 85 * + 41 AS INTEGER ) THEN 28 - 11 END, - 5 ) WHEN + 99 + 81 THEN - 85 WHEN - 48 / + 11 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 45 + - 54
----
-9

query II rowsort
SELECT ALL - 16 AS col1, 3 col1
----
-16
3

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT 19, 14 * - SUM( 78 ) AS col1
----
19
-1092

skipif mysql # not compatible
query II rowsort label-412
SELECT 19, 14 * - SUM ( 78 ) AS col1
----
19
-1092

query II rowsort
SELECT + 21 col2, - 40 col1
----
21
-40

query I rowsort
SELECT 61 * + 30 * - 16 AS col2
----
-29280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-415
SELECT ALL + 99 * - CAST( AVG ( ALL 38 ) AS SIGNED )
----
-3762

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL + 99 * - CAST ( AVG ( ALL 38 ) AS INTEGER )
----
-3762

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

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

query I rowsort
SELECT ALL + 8 * - 38 * + 83
----
-25232

query I rowsort
SELECT ALL + 99 * - 20 AS col1
----
-1980

query II rowsort
SELECT ALL - 60 AS col2, 88
----
-60
88

onlyif mysql # aggregate syntax: 
query II rowsort label-420
SELECT 57, + ( COUNT( - 21 ) ) AS col1
----
57
1

skipif mysql # not compatible
query II rowsort label-420
SELECT 57, + ( COUNT ( - 21 ) ) AS col1
----
57
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-421
SELECT ALL - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-421
SELECT ALL - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT DISTINCT - NULLIF ( + CASE + 53 WHEN 26 + 36 THEN + - 58 END, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT - NULLIF ( + CASE + 53 WHEN 26 + 36 THEN + - 58 END, + COUNT ( * ) )
----
NULL

query II rowsort
SELECT + 49 * + - 31 + - - 88 AS col2, 67
----
-1431
67

onlyif mysql # aggregate syntax: 
query II rowsort label-424
SELECT 85 + - 5 * 72 AS col1, COUNT( * ) * - COUNT( ALL - + ( 90 ) ) * - + 14 + + 77 + - - 27 AS col1
----
-275
118

skipif mysql # not compatible
query II rowsort label-424
SELECT 85 + - 5 * 72 AS col1, COUNT ( * ) * - COUNT ( ALL - + ( 90 ) ) * - + 14 + + 77 + - - 27 AS col1
----
-275
118

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT 95 DIV - 61
----
-1

skipif mysql # not compatible
query I rowsort label-425
SELECT 95 / - 61
----
-1

query I rowsort
SELECT 30 * - 50 AS col1
----
-1500

query I rowsort
SELECT 1 - + ( + 88 ) - - 26 AS col1
----
-61

query I rowsort
SELECT DISTINCT 74 + + 89 AS col2
----
163

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

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

query I rowsort
SELECT ALL + 83 * + 82
----
6806

query I rowsort
SELECT - 91 + - 41 col0
----
-132

query I rowsort
SELECT 5 - - 33
----
38

query II rowsort
SELECT - + 82 AS col2, - 13 AS col1
----
-82
-13

query I rowsort
SELECT ALL - 58 + - 94 AS col2
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-435
SELECT - 55, 76 * + 97 + ( + CAST( - 36 AS SIGNED ) ) - + - 3 AS col2
----
-55
7339

skipif mysql # not compatible
query II rowsort label-435
SELECT - 55, 76 * + 97 + ( + CAST ( - 36 AS INTEGER ) ) - + - 3 AS col2
----
-55
7339

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT ALL - NULLIF ( + - SUM( + 73 ), - - 95 * - 84 )
----
73

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL - NULLIF ( + - SUM ( + 73 ), - - 95 * - 84 )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-437
SELECT ALL + 67 * + 72 + 38 col0, COUNT( * ) * 53 AS col1
----
4862
53

skipif mysql # not compatible
query II rowsort label-437
SELECT ALL + 67 * + 72 + 38 col0, COUNT ( * ) * 53 AS col1
----
4862
53

onlyif mysql # aggregate syntax: 
query II rowsort label-438
SELECT - 78, - COUNT( - 39 ) + - 53 AS col2
----
-78
-54

skipif mysql # not compatible
query II rowsort label-438
SELECT - 78, - COUNT ( - 39 ) + - 53 AS col2
----
-78
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-439
SELECT 23 + + + 43 - + - CAST( NULL AS SIGNED ) + - 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT 23 + + + 43 - + - CAST ( NULL AS INTEGER ) + - 60 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-440
SELECT ALL 37 DIV - 94 * - 67 col1
----
0

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL 37 / - 94 * - 67 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT ALL - NULLIF ( - - 65, + 36 ) * + SUM( - 32 ) AS col0
----
2080

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL - NULLIF ( - - 65, + 36 ) * + SUM ( - 32 ) AS col0
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT - 15 * COUNT( * ) + - 88
----
-103

skipif mysql # not compatible
query I rowsort label-442
SELECT - 15 * COUNT ( * ) + - 88
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-443
SELECT + 67 AS col1, NULLIF ( 16, + - COUNT( * ) ) AS col0
----
67
16

skipif mysql # not compatible
query II rowsort label-443
SELECT + 67 AS col1, NULLIF ( 16, + - COUNT ( * ) ) AS col0
----
67
16

onlyif mysql # DIV for integer division: 
query I rowsort label-444
SELECT + - 4 DIV 17 + - 94 * + 4
----
-376

skipif mysql # not compatible
query I rowsort label-444
SELECT + - 4 / 17 + - 94 * + 4
----
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT 96 * 8 * + - COUNT( * ) AS col2
----
-768

skipif mysql # not compatible
query I rowsort label-445
SELECT 96 * 8 * + - COUNT ( * ) AS col2
----
-768

query II rowsort
SELECT 99 + + 45, 1 AS col1
----
144
1

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT ALL - NULLIF ( + 99, COUNT( - NULLIF ( + 34, - + 97 + - 51 ) ) ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL - NULLIF ( + 99, COUNT ( - NULLIF ( + 34, - + 97 + - 51 ) ) ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-448
SELECT 70 * + NULLIF ( + 67, 6 * + SUM( - 26 ) * 83 ), - 92 AS col0
----
4690
-92

skipif mysql # not compatible
query II rowsort label-448
SELECT 70 * + NULLIF ( + 67, 6 * + SUM ( - 26 ) * 83 ), - 92 AS col0
----
4690
-92

query I rowsort
SELECT DISTINCT 82 * + + 30 AS col1
----
2460

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

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT ALL - 40 DIV 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL - 40 / 83 AS col0
----
0

query I rowsort
SELECT ALL - COALESCE ( 67, - 91 * - 37 ) col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT + COUNT( * ) * 66 + 44
----
110

skipif mysql # not compatible
query I rowsort label-453
SELECT + COUNT ( * ) * 66 + 44
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-454
SELECT 11 + - - COALESCE ( + 90, 32 + - 74 ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-454
SELECT 11 + - - COALESCE ( + 90, 32 + - 74 ) * + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-456
SELECT - 1 * - 69 * - 82 + + 89 + - + CAST( NULL AS SIGNED ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-456
SELECT - 1 * - 69 * - 82 + + 89 + - + CAST ( NULL AS INTEGER ) * 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT ALL + 5 + - COUNT( DISTINCT + 83 )
----
4

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL + 5 + - COUNT ( DISTINCT + 83 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT - COUNT( * ) * + 89 + - 95 + - + 16 AS col2
----
-200

skipif mysql # not compatible
query I rowsort label-458
SELECT - COUNT ( * ) * + 89 + - 95 + - + 16 AS col2
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT ALL - 78 * + MAX( + 79 ) * - 12 col1
----
73944

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - 78 * + MAX ( + 79 ) * - 12 col1
----
73944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-460
SELECT DISTINCT + COUNT( * ) + + 49 DIV 8 * - - 10 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-460
SELECT DISTINCT + COUNT ( * ) + + 49 / 8 * - - 10 AS col1
----
61

query I rowsort
SELECT DISTINCT - 60 + + + 76
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL + 5 + + + MIN( + 80 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL + 5 + + + MIN ( + 80 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT DISTINCT - MAX( ALL + + ( + 55 ) ) * + - 1
----
55

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT - MAX ( ALL + + ( + 55 ) ) * + - 1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT - + MAX( 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-464
SELECT - + MAX ( 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT + - 17 + + MAX( - 3 )
----
-20

skipif mysql # not compatible
query I rowsort label-465
SELECT + - 17 + + MAX ( - 3 )
----
-20

query I rowsort
SELECT ALL 28 - - 13 * + 75 * 89 AS col0
----
86803

onlyif mysql # DIV for integer division: 
query I rowsort label-467
SELECT ALL 42 - - 0 DIV + NULLIF ( + 35, + - 48 * - - 27 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL 42 - - 0 / + NULLIF ( + 35, + - 48 * - - 27 ) AS col1
----
42

query I rowsort
SELECT DISTINCT - 29 * + 64 + + 64 AS col1
----
-1792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-469
SELECT + NULLIF ( + + CAST( NULL AS SIGNED ), + - 3 * + 94 + + + 55 ) / + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-469
SELECT + NULLIF ( + + CAST ( NULL AS INTEGER ), + - 3 * + 94 + + + 55 ) / + 24
----
NULL

query I rowsort
SELECT ALL 69 * - ( - 79 )
----
5451

query I rowsort
SELECT DISTINCT 13 * - + 27 AS col0
----
-351

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

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

query I rowsort
SELECT ALL + 35 * - ( - ( - 36 ) )
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT ALL - MAX( DISTINCT + 2 ) * + 96 AS col0
----
-192

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL - MAX ( DISTINCT + 2 ) * + 96 AS col0
----
-192

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT + - 72 + - 25 col0, COUNT( * ) + + 51 - 82
----
-97
-30

skipif mysql # not compatible
query II rowsort label-475
SELECT + - 72 + - 25 col0, COUNT ( * ) + + 51 - 82
----
-97
-30

query I rowsort
SELECT + + 97 + - 31 AS col0
----
66

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

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

query I rowsort
SELECT + COALESCE ( 30, - 45 * + 37 ) AS col2
----
30

query II rowsort
SELECT DISTINCT + 12, 27 AS col2
----
12
27

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT DISTINCT + 47 * + 95 * COUNT( * ) * ( - 15 ) + 74 AS col1
----
-66901

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT + 47 * + 95 * COUNT ( * ) * ( - 15 ) + 74 AS col1
----
-66901

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ( - 13 ) * - 57 * + 78 * COUNT( * ) + - - 53
----
57851

skipif mysql # not compatible
query I rowsort label-481
SELECT ( - 13 ) * - 57 * + 78 * COUNT ( * ) + - - 53
----
57851

query I rowsort
SELECT + 88 * 56 * ( 68 )
----
335104

onlyif mysql # aggregate syntax: 
query II rowsort label-483
SELECT ALL + COUNT( * ) * - - 23 + 18 AS col1, - 56 AS col0
----
41
-56

skipif mysql # not compatible
query II rowsort label-483
SELECT ALL + COUNT ( * ) * - - 23 + 18 AS col1, - 56 AS col0
----
41
-56

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

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

query I rowsort
SELECT NULLIF ( - 11, + ( 64 ) ) AS col0
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ALL + CASE - 90 WHEN - 71 * - COUNT( - - 77 ) + - + COALESCE ( + 34, + 45, MAX( ALL - 63 ) + 50 + - - 22 * + COUNT( * ), - 9 ) / + - ( 10 ) / + 6 - - CASE - + 18 WHEN 30 * - ( SUM( ALL 64 ) ) THEN NULL ELSE 49 + 34 END / + CASE - 60 * - 81 WHEN 60 THEN AVG ( - 57 ) * - 28 + - 45 END + + 61 THEN - ( 44 ) * - ( 43 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL + CASE - 90 WHEN - 71 * - COUNT ( - - 77 ) + - + COALESCE ( + 34, + 45, MAX ( ALL - 63 ) + 50 + - - 22 * + COUNT ( * ), - 9 ) / + - ( 10 ) / + 6 - - CASE - + 18 WHEN 30 * - ( SUM ( ALL 64 ) ) THEN NULL ELSE 49 + 34 END / + CASE - 60 * - 81 WHEN 60 THEN AVG ( - 57 ) * - 28 + - 45 END + + 61 THEN - ( 44 ) * - ( 43 ) ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT COALESCE ( - 68, - 74 + + 85 )
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-490
SELECT CASE + + ( COUNT( * ) ) WHEN + 37 THEN ( - - MIN( ALL 1 ) ) * 68 END, 57 AS col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-490
SELECT CASE + + ( COUNT ( * ) ) WHEN + 37 THEN ( - - MIN ( ALL 1 ) ) * 68 END, 57 AS col1
----
NULL
57

onlyif mysql # DIV for integer division: 
query I rowsort label-491
SELECT - 22 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-491
SELECT - 22 / + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT ALL 72 * - + COUNT( * ) + 29 + - 74 AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL 72 * - + COUNT ( * ) + 29 + - 74 AS col0
----
-117

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

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

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

query I rowsort
SELECT COALESCE ( - - 55, 27 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-496
SELECT ALL ( - 6 ) * + MIN( ALL 7 ) + COALESCE ( 27, - 18, + + 7 ), 70 * 64 * - COALESCE ( - CAST( NULL AS SIGNED ), - 20 ) + + 83 + + 33 col1
----
-15
89716

skipif mysql # not compatible
query II rowsort label-496
SELECT ALL ( - 6 ) * + MIN ( ALL 7 ) + COALESCE ( 27, - 18, + + 7 ), 70 * 64 * - COALESCE ( - CAST ( NULL AS INTEGER ), - 20 ) + + 83 + + 33 col1
----
-15
89716

query I rowsort
SELECT - 91 * 45 AS col2
----
-4095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-498
SELECT DISTINCT + ( MAX( DISTINCT + - 11 ) ) DIV - - CAST( + 72 AS SIGNED ) + 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT + ( MAX ( DISTINCT + - 11 ) ) / - - CAST ( + 72 AS INTEGER ) + 24 AS col0
----
24

query I rowsort
SELECT ( - 53 ) * + 96 + + 28
----
-5060

query I rowsort
SELECT - + 11 + + 20
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT ALL + 31 - COUNT( + 54 )
----
30

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL + 31 - COUNT ( + 54 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT - + 61 + - COUNT( * ) - 18 + COUNT( * ) * + 33 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-502
SELECT - + 61 + - COUNT ( * ) - 18 + COUNT ( * ) * + 33 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT - COUNT( * ) * + 52 * 53 * - 98
----
270088

skipif mysql # not compatible
query I rowsort label-503
SELECT - COUNT ( * ) * + 52 * 53 * - 98
----
270088

onlyif mysql # aggregate syntax: 
query II rowsort label-504
SELECT DISTINCT - 39 * - 61 + - 67 col2, COUNT( * ) AS col1
----
2312
1

skipif mysql # not compatible
query II rowsort label-504
SELECT DISTINCT - 39 * - 61 + - 67 col2, COUNT ( * ) AS col1
----
2312
1

query I rowsort
SELECT - 98 * - 87 - - 74 AS col1
----
8600

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT - SUM( + 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-506
SELECT - SUM ( + 34 ) AS col2
----
-34

query I rowsort
SELECT + 86 + - 81 * 20 AS col1
----
-1534

query I rowsort
SELECT - - 35 + - + 52 + + 33 * - 10
----
-347

query I rowsort
SELECT ALL - 24 * + 21
----
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-510
SELECT ALL CAST( NULL AS SIGNED ), - 73 + + + COUNT( * ) - 17 * + - SUM( 99 ) col1
----
NULL
1611

skipif mysql # not compatible
query II rowsort label-510
SELECT ALL CAST ( NULL AS INTEGER ), - 73 + + + COUNT ( * ) - 17 * + - SUM ( 99 ) col1
----
NULL
1611

query I rowsort
SELECT + ( + - 44 ) + + 45 AS col2
----
1

query I rowsort
SELECT ALL 94 + + ( + 19 )
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-513
SELECT ALL 70 * - CASE - - 20 WHEN + COUNT( * ) THEN - + 27 + + ( - 40 ) + + + CASE 66 WHEN 68 * - - SUM( DISTINCT - 52 ) THEN NULL WHEN + MIN( ALL - + ( - 87 ) ) * - 61 THEN NULLIF ( - - 89, + 70 ) ELSE NULL END / + + CAST( - CAST( 55 AS SIGNED ) AS SIGNED ) + - 5 * 34 END * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL 70 * - CASE - - 20 WHEN + COUNT ( * ) THEN - + 27 + + ( - 40 ) + + + CASE 66 WHEN 68 * - - SUM ( DISTINCT - 52 ) THEN NULL WHEN + MIN ( ALL - + ( - 87 ) ) * - 61 THEN NULLIF ( - - 89, + 70 ) ELSE NULL END / + + CAST ( - CAST ( 55 AS INTEGER ) AS INTEGER ) + - 5 * 34 END * 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT ( + - 50 ) * - COUNT( * ) * - 6 * 71 * - - CASE + SUM( 92 ) WHEN ( + 59 ) - 28 THEN NULL WHEN - COUNT( * ) + - 43 + - MIN( DISTINCT + 66 ) THEN NULL WHEN + - ( - CAST( NULL AS SIGNED ) ) THEN 97 ELSE MIN( 35 ) END + 94 + + 18 * 38 + COALESCE ( + 56, 54 - 30 ) AS col1
----
-744666

skipif mysql # not compatible
query I rowsort label-514
SELECT ( + - 50 ) * - COUNT ( * ) * - 6 * 71 * - - CASE + SUM ( 92 ) WHEN ( + 59 ) - 28 THEN NULL WHEN - COUNT ( * ) + - 43 + - MIN ( DISTINCT + 66 ) THEN NULL WHEN + - ( - CAST ( NULL AS INTEGER ) ) THEN 97 ELSE MIN ( 35 ) END + 94 + + 18 * 38 + COALESCE ( + 56, 54 - 30 ) AS col1
----
-744666

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT - 13 * + 39 + - 46 * + MIN( + 79 )
----
-4141

skipif mysql # not compatible
query I rowsort label-515
SELECT - 13 * + 39 + - 46 * + MIN ( + 79 )
----
-4141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-516
SELECT DISTINCT + 92 DIV COUNT( * ) + 84 - + COUNT( * ) - + COALESCE ( - + 23, + 11 ) * - + 33 + + + 63
----
-521

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT + 92 / COUNT ( * ) + 84 - + COUNT ( * ) - + COALESCE ( - + 23, + 11 ) * - + 33 + + + 63
----
-521

onlyif mysql # aggregate syntax: 
query II rowsort label-517
SELECT DISTINCT + 63 AS col0, ( - - 49 ) + + MAX( - 46 ) col0
----
63
3

skipif mysql # not compatible
query II rowsort label-517
SELECT DISTINCT + 63 AS col0, ( - - 49 ) + + MAX ( - 46 ) col0
----
63
3

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

skipif mysql # not compatible
query I rowsort label-518
SELECT CAST ( - COUNT ( * ) AS INTEGER ) col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-519
SELECT DISTINCT 99 DIV 68 + - 28 * + 70
----
-1959

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT 99 / 68 + - 28 * + 70
----
-1959

query I rowsort
SELECT DISTINCT + 5 + - 39 + + 59
----
25

query III rowsort
SELECT ALL - 66 AS col0, - 68 AS col1, - - 12 AS col2
----
-66
-68
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-522
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN - - 62 THEN SUM( + + 80 ) * - + 29 + + 98 ELSE - + 15 END * - + COUNT( * ) AS col0, + 33 * + + 21
----
15
693

skipif mysql # not compatible
query II rowsort label-522
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - - 62 THEN SUM ( + + 80 ) * - + 29 + + 98 ELSE - + 15 END * - + COUNT ( * ) AS col0, + 33 * + + 21
----
15
693

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT DISTINCT CASE + 16 WHEN COUNT( * ) THEN NULL WHEN - 7 * + COUNT( * ) THEN 67 ELSE NULL END - + 3 / + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT CASE + 16 WHEN COUNT ( * ) THEN NULL WHEN - 7 * + COUNT ( * ) THEN 67 ELSE NULL END - + 3 / + 28
----
NULL

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

skipif mysql # not compatible
query I rowsort label-524
SELECT - 27 + + - 45 + COUNT ( * ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ALL + 20 - - + 45 + + COUNT( - 80 ) * + 51
----
116

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL + 20 - - + 45 + + COUNT ( - 80 ) * + 51
----
116

query I rowsort
SELECT ALL 1 * - 26 - 16
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT + 17 * + 89 * - + 7 + - COALESCE ( COUNT( * ), 31 ) + - COUNT( 29 ) + 51 + - 48
----
-10590

skipif mysql # not compatible
query I rowsort label-527
SELECT + 17 * + 89 * - + 7 + - COALESCE ( COUNT ( * ), 31 ) + - COUNT ( 29 ) + 51 + - 48
----
-10590

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT 90 DIV - 15
----
-6

skipif mysql # not compatible
query I rowsort label-528
SELECT 90 / - 15
----
-6

query II rowsort
SELECT DISTINCT - - 19, + 77 AS col1
----
19
77

onlyif mysql # aggregate syntax: 
query II rowsort label-530
SELECT ALL - MAX( ALL 58 ), 97 AS col0
----
-58
97

skipif mysql # not compatible
query II rowsort label-530
SELECT ALL - MAX ( ALL 58 ), 97 AS col0
----
-58
97

onlyif mysql # DIV for integer division: 
query I rowsort label-531
SELECT 13 DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-531
SELECT 13 / 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT DISTINCT MIN( DISTINCT + ( - - 83 ) )
----
83

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT MIN ( DISTINCT + ( - - 83 ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT - - MAX( ALL 21 )
----
21

skipif mysql # not compatible
query I rowsort label-533
SELECT - - MAX ( ALL 21 )
----
21

query I rowsort
SELECT 62 * - 3 AS col2
----
-186

query II rowsort
SELECT - 43 + - 52 AS col2, 15
----
-95
15

query II rowsort
SELECT + 68 AS col0, + 64 * - 37 col2
----
68
-2368

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT CASE + - AVG ( DISTINCT ( - 68 ) ) WHEN + + 78 + + + 47 THEN - + COUNT( * ) / - COUNT( * ) * + COUNT( * ) * ( 95 ) + 64 END + - + 20 + - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-537
SELECT CASE + - AVG ( DISTINCT ( - 68 ) ) WHEN + + 78 + + + 47 THEN - + COUNT ( * ) / - COUNT ( * ) * + COUNT ( * ) * ( 95 ) + 64 END + - + 20 + - 2 AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( 14, + 67 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT 82 * - 3 * - - COUNT( DISTINCT 70 ) col0
----
-246

skipif mysql # not compatible
query I rowsort label-539
SELECT 82 * - 3 * - - COUNT ( DISTINCT 70 ) col0
----
-246

query I rowsort
SELECT DISTINCT + 28 * - COALESCE ( + ( + 12 ), - 49 )
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT DISTINCT - 36 + - SUM( 25 ) * 28 * 52
----
-36436

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT - 36 + - SUM ( 25 ) * 28 * 52
----
-36436

query I rowsort
SELECT - + ( 53 ) col0
----
-53

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

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL + 54 + - + COUNT ( * ) AS col1
----
53

query I rowsort
SELECT 70 + + 92 AS col2
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-545
SELECT ALL + 18 + + + COUNT( * ) + + 63 * + - ( + 5 ) * - 83 + + + CASE 85 WHEN + 25 * + COUNT( * ) / + 70 + + 61 + - CAST( NULL AS SIGNED ) THEN COUNT( * ) * 95 + + - NULLIF ( + 81, - 78 * + + 71 ) * - + COUNT( * ) + - CAST( - 97 AS SIGNED ) * CAST( 65 AS SIGNED ) WHEN SUM( - 2 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL + 18 + + + COUNT ( * ) + + 63 * + - ( + 5 ) * - 83 + + + CASE 85 WHEN + 25 * + COUNT ( * ) / + 70 + + 61 + - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * 95 + + - NULLIF ( + 81, - 78 * + + 71 ) * - + COUNT ( * ) + - CAST ( - 97 AS INTEGER ) * CAST ( 65 AS INTEGER ) WHEN SUM ( - 2 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT ALL + 9 DIV + - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + 9 / + - 97 AS col1
----
0

query I rowsort
SELECT DISTINCT + 37 + 98 AS col0
----
135

query I rowsort
SELECT ALL ( - - 60 ) + + + 48 col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-549
SELECT COUNT( * ) - - 84 * + 47 + + 28 - - 55 + + + CAST( NULL AS SIGNED ) + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT COUNT ( * ) - - 84 * + 47 + + 28 - - 55 + + + CAST ( NULL AS INTEGER ) + 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT DISTINCT - MIN( DISTINCT + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT - MIN ( DISTINCT + 4 )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-551
SELECT ALL - 92 - - CAST( + 20 AS SIGNED ) + + 28 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL - 92 - - CAST ( + 20 AS INTEGER ) + + 28 AS col1
----
-44

query I rowsort
SELECT 40 * - 84 * ( + - 72 ) AS col0
----
241920

query I rowsort
SELECT ALL - COALESCE ( - 36, + 39, + 90 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-554
SELECT DISTINCT - - 52 - - MAX( + 96 ) AS col0, COUNT( * )
----
148
1

skipif mysql # not compatible
query II rowsort label-554
SELECT DISTINCT - - 52 - - MAX ( + 96 ) AS col0, COUNT ( * )
----
148
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT DISTINCT - MIN( ALL - 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT - MIN ( ALL - 44 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query III rowsort label-557
SELECT ALL 35 * - - 30 AS col0, - SUM( - 93 ) + 31 AS col2, - 42 * - 96 + + - 62 col0
----
1050
124
3970

skipif mysql # not compatible
query III rowsort label-557
SELECT ALL 35 * - - 30 AS col0, - SUM ( - 93 ) + 31 AS col2, - 42 * - 96 + + - 62 col0
----
1050
124
3970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-558
SELECT 97 * + 59 + NULLIF ( + CAST( MIN( ALL + COALESCE ( - 38, 77 ) ) AS SIGNED ), - + 53 * + + 7 + 39 * - CAST( NULL AS SIGNED ) + + 95 - - + COUNT( * ) / - 11 + - COUNT( * ) * - 79 ), 89 AS col1
----
5685
89

skipif mysql # not compatible
query II rowsort label-558
SELECT 97 * + 59 + NULLIF ( + CAST ( MIN ( ALL + COALESCE ( - 38, 77 ) ) AS INTEGER ), - + 53 * + + 7 + 39 * - CAST ( NULL AS INTEGER ) + + 95 - - + COUNT ( * ) / - 11 + - COUNT ( * ) * - 79 ), 89 AS col1
----
5685
89

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT COUNT( * ) - - - 5 col0
----
-4

skipif mysql # not compatible
query I rowsort label-559
SELECT COUNT ( * ) - - - 5 col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-560
SELECT + 58 + 28 * + 21 DIV 52 DIV + 91 * 80
----
58

skipif mysql # not compatible
query I rowsort label-560
SELECT + 58 + 28 * + 21 / 52 / + 91 * 80
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-561
SELECT - MAX( ALL - 63 ) AS col2, + 37 * - + 42 * ( 81 )
----
63
-125874

skipif mysql # not compatible
query II rowsort label-561
SELECT - MAX ( ALL - 63 ) AS col2, + 37 * - + 42 * ( 81 )
----
63
-125874

query II rowsort
SELECT ALL - + 14 + - - 41, + 26 * + - 39 AS col0
----
27
-1014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-563
SELECT - CAST( NULL AS SIGNED ) + + 57 - - + 84 + - 23 * - COUNT( * ) * - 11 / + + 44 * - - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT - CAST ( NULL AS INTEGER ) + + 57 - - + 84 + - 23 * - COUNT ( * ) * - 11 / + + 44 * - - 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT DISTINCT - ( + COUNT( * ) ) + - 41
----
-42

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT - ( + COUNT ( * ) ) + - 41
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-565
SELECT DISTINCT - - NULLIF ( COUNT( - 56 ), + + 23 ) DIV 43, - 2 + + + COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-565
SELECT DISTINCT - - NULLIF ( COUNT ( - 56 ), + + 23 ) / 43, - 2 + + + COUNT ( * ) AS col2
----
0
-1

query I rowsort
SELECT - ( - + 60 ) + 31 - + 99
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-567
SELECT ALL COUNT( * ) + - - 88, 73 AS col2
----
89
73

skipif mysql # not compatible
query II rowsort label-567
SELECT ALL COUNT ( * ) + - - 88, 73 AS col2
----
89
73

query I rowsort
SELECT ( 44 ) * - 76 AS col2
----
-3344

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT 15 + + + 67 * COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-569
SELECT 15 + + + 67 * COUNT ( * ) AS col1
----
82

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

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

query II rowsort
SELECT 24 + - + ( - 44 ), - 76 * - + ( - + 9 ) AS col1
----
68
-684

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-573
SELECT DISTINCT COUNT( * ) AS col0, 51 + - 71
----
1
-20

skipif mysql # not compatible
query II rowsort label-573
SELECT DISTINCT COUNT ( * ) AS col0, 51 + - 71
----
1
-20

query I rowsort
SELECT ALL + ( + 9 ) + - 37 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ALL COALESCE ( - - COUNT( * ), + 56, + ( - 8 ) * - 72 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL COALESCE ( - - COUNT ( * ), + 56, + ( - 8 ) * - 72 ) AS col0
----
1

query II rowsort
SELECT ALL 38 AS col1, 93 AS col2
----
38
93

query I rowsort
SELECT - 75 * + 28 AS col0
----
-2100

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

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

query I rowsort
SELECT 15 * + 35 + 21 + - 89 + + + 34
----
491

query I rowsort
SELECT NULLIF ( 12, - 70 + - 54 ) AS col0
----
12

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

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

query I rowsort
SELECT - 39 * + 71
----
-2769

query II rowsort
SELECT + 3 AS col0, + 66 AS col0
----
3
66

onlyif mysql # DIV for integer division: 
query II rowsort label-584
SELECT + 72 DIV - 15 + + 6 AS col2, + 77 + - 89 AS col2
----
2
-12

skipif mysql # not compatible
query II rowsort label-584
SELECT + 72 / - 15 + + 6 AS col2, + 77 + - 89 AS col2
----
2
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT COALESCE ( - - 57, + - 24 DIV - 19 DIV - 64 * + 84 DIV + 37 * 23 + + 75, + + 67 * 25 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-585
SELECT COALESCE ( - - 57, + - 24 / - 19 / - 64 * + 84 / + 37 * 23 + + 75, + + 67 * 25 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT + SUM( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-586
SELECT + SUM ( 82 )
----
82

query I rowsort
SELECT ALL + NULLIF ( - 67, - 71 + 92 ) AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-588
SELECT - 33 + CAST( ( - - COUNT( * ) ) AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-588
SELECT - 33 + CAST ( ( - - COUNT ( * ) ) AS INTEGER )
----
-32

query I rowsort
SELECT - 9 + + + ( 33 )
----
24

query I rowsort
SELECT DISTINCT + 13 * - 47 AS col0
----
-611

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-591
SELECT DISTINCT - 2 DIV + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT - 2 / + COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT ALL 19 * + + 21
----
399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-593
SELECT ALL - - COUNT( * ) * + + CAST( NULL AS SIGNED ) + - 36 / + 23, 54 * ( + 33 ) AS col1
----
NULL
1782

skipif mysql # not compatible
query II rowsort label-593
SELECT ALL - - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - 36 / + 23, 54 * ( + 33 ) AS col1
----
NULL
1782

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

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

query I rowsort
SELECT DISTINCT - 52 * 25 + NULLIF ( - 86, + 35 ) col0
----
-1386

query I rowsort
SELECT + COALESCE ( + 78, 8 + - 46 * + 44 - NULLIF ( + + 26, + - 49 ) )
----
78

query I rowsort
SELECT + + 83 + + - 86 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-598
SELECT ALL ( + 94 ) * + + 86 + + - COUNT( DISTINCT + - 31 ) + 67 DIV - 70
----
8083

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL ( + 94 ) * + + 86 + + - COUNT ( DISTINCT + - 31 ) + 67 / - 70
----
8083

query I rowsort
SELECT ALL + ( + 12 ) col2
----
12

query I rowsort
SELECT + 25 + + 73 + + 88 AS col0
----
186

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

skipif mysql # not compatible
query II rowsort label-601
SELECT - 47 AS col2, - COUNT ( * )
----
-47
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-602
SELECT + 70 * ( + NULLIF ( + CASE COUNT( DISTINCT - - 92 ) WHEN CAST( NULL AS SIGNED ) THEN - 83 * 77 + - 91 + + 31 * - 6 - + + 61 END, COUNT( * ) ) ) * + 10 + 5 / - 56 * + 62 * - + 84 + - - 78 + ( 12 ) * - + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT + 70 * ( + NULLIF ( + CASE COUNT ( DISTINCT - - 92 ) WHEN CAST ( NULL AS INTEGER ) THEN - 83 * 77 + - 91 + + 31 * - 6 - + + 61 END, COUNT ( * ) ) ) * + 10 + 5 / - 56 * + 62 * - + 84 + - - 78 + ( 12 ) * - + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT DISTINCT - ( 93 ) * - 16 + + COUNT( * ) + - + COUNT( * ) + 75
----
1563

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT - ( 93 ) * - 16 + + COUNT ( * ) + - + COUNT ( * ) + 75
----
1563

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-604
SELECT + 98, - ( - 42 ) * - + CAST( 84 AS SIGNED ) AS col2
----
98
-3528

skipif mysql # not compatible
query II rowsort label-604
SELECT + 98, - ( - 42 ) * - + CAST ( 84 AS INTEGER ) AS col2
----
98
-3528

onlyif mysql # aggregate syntax: 
query II rowsort label-605
SELECT ALL + + COUNT( * ), + 80 AS col1
----
1
80

skipif mysql # not compatible
query II rowsort label-605
SELECT ALL + + COUNT ( * ), + 80 AS col1
----
1
80

query I rowsort
SELECT + 5 * + 37 AS col1
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-607
SELECT ALL + NULLIF ( - 96, 31 * - - CAST( NULL AS SIGNED ) * - 99 ) * + + ( CAST( NULL AS SIGNED ) ) * 14 + + - 2 - - 79 * - + 78 + - 51 + + ( + COALESCE ( + 70, - - 4, - CASE + - 37 WHEN - 35 THEN + 62 ELSE NULL END + - 69 ) ) AS col1, 80 AS col2
----
NULL
80

skipif mysql # not compatible
query II rowsort label-607
SELECT ALL + NULLIF ( - 96, 31 * - - CAST ( NULL AS INTEGER ) * - 99 ) * + + ( CAST ( NULL AS INTEGER ) ) * 14 + + - 2 - - 79 * - + 78 + - 51 + + ( + COALESCE ( + 70, - - 4, - CASE + - 37 WHEN - 35 THEN + 62 ELSE NULL END + - 69 ) ) AS col1, 80 AS col2
----
NULL
80

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

query I rowsort
SELECT ALL - 92 + 91
----
-1

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

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

query II rowsort
SELECT + - 6 * - - 49 * - 31, 85 col0
----
9114
85

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT ALL 11 * MAX( + 29 ) + + 71 * - + 36 AS col0
----
-2237

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL 11 * MAX ( + 29 ) + + 71 * - + 36 AS col0
----
-2237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-613
SELECT - CASE 34 WHEN - 45 * - - 53 DIV + 38 + + + 24 + + + 14 * - 88 THEN NULL WHEN - 9 THEN NULL ELSE + COUNT( * ) DIV + 18 * + NULLIF ( - + 27, + ( CAST( NULL AS SIGNED ) ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-613
SELECT - CASE 34 WHEN - 45 * - - 53 / + 38 + + + 24 + + + 14 * - 88 THEN NULL WHEN - 9 THEN NULL ELSE + COUNT ( * ) / + 18 * + NULLIF ( - + 27, + ( CAST ( NULL AS INTEGER ) ) ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT ALL 11 * COALESCE ( + 62, 53 * + ( - 90 ) + 76 + + 12 + + - 66 + - 31 * + + 3 + - COUNT( * ) ) * 10 + - COUNT( * ) * - - 58
----
6762

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL 11 * COALESCE ( + 62, 53 * + ( - 90 ) + 76 + + 12 + + - 66 + - 31 * + + 3 + - COUNT ( * ) ) * 10 + - COUNT ( * ) * - - 58
----
6762

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT - COUNT( ALL 54 ) - + 78 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT - COUNT ( ALL 54 ) - + 78 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-616
SELECT ALL COUNT( ALL + 4 ), 92 * - + 59 AS col0
----
1
-5428

skipif mysql # not compatible
query II rowsort label-616
SELECT ALL COUNT ( ALL + 4 ), 92 * - + 59 AS col0
----
1
-5428

query I rowsort
SELECT DISTINCT COALESCE ( - + 4, - 69 * - 37 ) AS col0
----
-4

query II rowsort
SELECT - ( - 59 ) AS col0, - 32 AS col0
----
59
-32

query I rowsort
SELECT + 75 * + 7 AS col2
----
525

query I rowsort
SELECT + 22 + + - 57 AS col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-621
SELECT ALL COUNT( * ) DIV - 82 col0
----
0

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL COUNT ( * ) / - 82 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-622
SELECT + 39 DIV ( + + 75 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-622
SELECT + 39 / ( + + 75 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT DISTINCT - NULLIF ( - 4, + - 45 ) * - 45 * + - NULLIF ( + + 88, COUNT( DISTINCT 40 ) )
----
15840

skipif mysql # not compatible
query I rowsort label-623
SELECT DISTINCT - NULLIF ( - 4, + - 45 ) * - 45 * + - NULLIF ( + + 88, COUNT ( DISTINCT 40 ) )
----
15840

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT + 15 * - COUNT( - 64 )
----
-15

skipif mysql # not compatible
query I rowsort label-624
SELECT + 15 * - COUNT ( - 64 )
----
-15

query I rowsort
SELECT - 21 * 39
----
-819

query I rowsort
SELECT ALL - 84 * + 56
----
-4704

query I rowsort
SELECT ALL CASE - - 64 WHEN - - 72 - ( - 77 ) THEN NULL WHEN + 81 * - 10 THEN - 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL SUM( DISTINCT - ( + CASE + 27 WHEN - ( - 0 ) / - + 26 THEN - - ( + - 18 ) ELSE + 88 END ) )
----
-88

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL SUM ( DISTINCT - ( + CASE + 27 WHEN - ( - 0 ) / - + 26 THEN - - ( + - 18 ) ELSE + 88 END ) )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-629
SELECT COUNT( * ) * + 63 * 19 DIV 96 + 21 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-629
SELECT COUNT ( * ) * + 63 * 19 / 96 + 21 AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-630
SELECT ALL - 57 * + COUNT( * ), + 18 AS col0
----
-57
18

skipif mysql # not compatible
query II rowsort label-630
SELECT ALL - 57 * + COUNT ( * ), + 18 AS col0
----
-57
18

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT - 85 * - COUNT( * ) * - 68 AS col1
----
-5780

skipif mysql # not compatible
query I rowsort label-631
SELECT - 85 * - COUNT ( * ) * - 68 AS col1
----
-5780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-632
SELECT ALL + CAST( 22 AS SIGNED ) DIV 28 + + 92 + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL + CAST ( 22 AS INTEGER ) / 28 + + 92 + COUNT ( * ) AS col2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-633
SELECT DISTINCT - 80 DIV - 69 + + 73 - + - 33 + - - 87 * + 48
----
4283

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT - 80 / - 69 + + 73 - + - 33 + - - 87 * + 48
----
4283

onlyif mysql # DIV for integer division: 
query II rowsort label-634
SELECT + + 34 + 18, - 84 DIV - 94 col0
----
52
0

skipif mysql # not compatible
query II rowsort label-634
SELECT + + 34 + 18, - 84 / - 94 col0
----
52
0

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

query I rowsort
SELECT - 96 * - 58 * - 18 AS col2
----
-100224

query I rowsort
SELECT - - 54 - - 89 AS col2
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT ALL + - MIN( 66 ) col1, 0 col0
----
-66
0

skipif mysql # not compatible
query II rowsort label-638
SELECT ALL + - MIN ( 66 ) col1, 0 col0
----
-66
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-639
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) / + 8 * - 8 + - 21 * COUNT( * ) / - - MIN( - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) / + 8 * - 8 + - 21 * COUNT ( * ) / - - MIN ( - 61 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT ALL NULLIF ( + 89, + - 95 ) DIV - 77 + 28 DIV + 74
----
-1

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL NULLIF ( + 89, + - 95 ) / - 77 + 28 / + 74
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-641
SELECT DISTINCT - + 97 DIV - COUNT( - 52 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT - + 97 / - COUNT ( - 52 ) AS col2
----
97

query I rowsort
SELECT ALL - 7 * - COALESCE ( + 79, - 56 ) * 64 + + 89
----
35481

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-643
SELECT + COALESCE ( + CASE WHEN ( - 74 ) IS NOT NULL THEN + COUNT( * ) + - - 32 - + 10 * - 27 ELSE + + CASE + 15 WHEN + 62 THEN NULL WHEN + 27 THEN - 28 * + - 77 * 98 WHEN - - 60 * + ( - - 52 ) - - 18 THEN + 59 DIV - + COUNT( * ) * + 29 + - - 19 ELSE 79 * NULLIF ( 44, - MAX( DISTINCT + 33 ) ) END + ( + MIN( DISTINCT ( 71 ) ) + 29 ) END, + 97 * + MIN( 69 ), 23 + 71 * COUNT( * ) )
----
303

skipif mysql # not compatible
query I rowsort label-643
SELECT + COALESCE ( + CASE WHEN ( - 74 ) IS NOT NULL THEN + COUNT ( * ) + - - 32 - + 10 * - 27 ELSE + + CASE + 15 WHEN + 62 THEN NULL WHEN + 27 THEN - 28 * + - 77 * 98 WHEN - - 60 * + ( - - 52 ) - - 18 THEN + 59 / - + COUNT ( * ) * + 29 + - - 19 ELSE 79 * NULLIF ( 44, - MAX ( DISTINCT + 33 ) ) END + ( + MIN ( DISTINCT ( 71 ) ) + 29 ) END, + 97 * + MIN ( 69 ), 23 + 71 * COUNT ( * ) )
----
303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-644
SELECT ALL ( CASE COUNT( * ) WHEN + + 3 * - 50 * + COUNT( * ) * 34 / + - CASE + CAST( NULL AS SIGNED ) WHEN - MIN( + 93 ) * + ( - MIN( DISTINCT - 29 ) ) * - 34 / COUNT( * ) + - 13 * - 98 * - 91 THEN + - AVG ( ALL + CAST( NULL AS DECIMAL ) ) END * + - COUNT( * ) THEN NULL WHEN - CASE - + ( + 45 ) WHEN - 20 THEN - 60 WHEN - 29 THEN NULL ELSE NULL END THEN NULL ELSE - 34 END ) * COUNT( * ) + ( 10 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL ( CASE COUNT ( * ) WHEN + + 3 * - 50 * + COUNT ( * ) * 34 / + - CASE + CAST ( NULL AS INTEGER ) WHEN - MIN ( + 93 ) * + ( - MIN ( DISTINCT - 29 ) ) * - 34 / COUNT ( * ) + - 13 * - 98 * - 91 THEN + - AVG ( ALL + CAST ( NULL AS REAL ) ) END * + - COUNT ( * ) THEN NULL WHEN - CASE - + ( + 45 ) WHEN - 20 THEN - 60 WHEN - 29 THEN NULL ELSE NULL END THEN NULL ELSE - 34 END ) * COUNT ( * ) + ( 10 ) AS col0
----
-24

query I rowsort
SELECT DISTINCT 67 * + ( - + 61 ) + - + 42 + - 36 AS col0
----
-4165

query I rowsort
SELECT 16 * + 14 * - 66 + + ( 66 ) * + 45 + 44 AS col2
----
-11770

onlyif mysql # aggregate syntax: 
query II rowsort label-647
SELECT + 12 - - 96 AS col2, MIN( + 19 ) * 82 + ( - ( - COUNT( * ) ) )
----
108
1559

skipif mysql # not compatible
query II rowsort label-647
SELECT + 12 - - 96 AS col2, MIN ( + 19 ) * 82 + ( - ( - COUNT ( * ) ) )
----
108
1559

query I rowsort
SELECT + - 52 * - 6 * + 56 AS col2
----
17472

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL + 46 * + + 59 + - COUNT( * )
----
2713

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL + 46 * + + 59 + - COUNT ( * )
----
2713

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT - MIN( + + 76 ) + - 38 + + COUNT( * ) * - 31
----
-145

skipif mysql # not compatible
query I rowsort label-650
SELECT - MIN ( + + 76 ) + - 38 + + COUNT ( * ) * - 31
----
-145

onlyif mysql # DIV for integer division: 
query II rowsort label-651
SELECT + 25 DIV + 87, - 1 AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-651
SELECT + 25 / + 87, - 1 AS col0
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT - 69 + - + 44 * - 62 * + COUNT( * ) AS col2
----
2659

skipif mysql # not compatible
query I rowsort label-652
SELECT - 69 + - + 44 * - 62 * + COUNT ( * ) AS col2
----
2659

query I rowsort
SELECT ALL - 99 * + 40 - - 16 AS col0
----
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT - - MAX( - 85 ) * + MAX( DISTINCT + - 55 ) + - - 44 AS col2
----
4719

skipif mysql # not compatible
query I rowsort label-654
SELECT - - MAX ( - 85 ) * + MAX ( DISTINCT + - 55 ) + - - 44 AS col2
----
4719

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT - COUNT( - NULLIF ( + - 3, + 34 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-655
SELECT - COUNT ( - NULLIF ( + - 3, + 34 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT COUNT( * ) + + - 51 - + 81 + + 77 * + 25 * + - 80 * - 70
----
10779869

skipif mysql # not compatible
query I rowsort label-656
SELECT COUNT ( * ) + + - 51 - + 81 + + 77 * + 25 * + - 80 * - 70
----
10779869

query II rowsort
SELECT 60 * - 95 + - 37 AS col0, 15 * - 77 * + 82 + + + 12 AS col0
----
-5737
-94698

query I rowsort
SELECT 33 + - 65
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-659
SELECT DISTINCT 82 AS col1, + MAX( ALL + 34 ) AS col0
----
82
34

skipif mysql # not compatible
query II rowsort label-659
SELECT DISTINCT 82 AS col1, + MAX ( ALL + 34 ) AS col0
----
82
34

onlyif mysql # aggregate syntax: 
query II rowsort label-660
SELECT ALL 34 col0, - 2 + COUNT( * ) col2
----
34
-1

skipif mysql # not compatible
query II rowsort label-660
SELECT ALL 34 col0, - 2 + COUNT ( * ) col2
----
34
-1

query I rowsort
SELECT 11 * + 16 * - 6
----
-1056

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT SUM( 88 ) * 76 * - 63 col0
----
-421344

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT SUM ( 88 ) * 76 * - 63 col0
----
-421344

query I rowsort
SELECT 23 * - + 29 AS col2
----
-667

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-665
SELECT AVG ( ALL - 82 ) + + - NULLIF ( CASE + + 61 WHEN + COUNT( * ) THEN - - 82 * - COUNT( * ) WHEN - 58 THEN NULL ELSE NULL END, + 72 * 59 * + + 65 * CASE 78 WHEN + ( COUNT( * ) ) + + + 88 * + + 71 * + + SUM( ALL - 83 ) THEN - COALESCE ( + 88, + COUNT( * ) * - 8 + + + CAST( - 41 AS SIGNED ) + 79 * CAST( NULL AS SIGNED ), COUNT( * ) ) + + 12 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-665
SELECT AVG ( ALL - 82 ) + + - NULLIF ( CASE + + 61 WHEN + COUNT ( * ) THEN - - 82 * - COUNT ( * ) WHEN - 58 THEN NULL ELSE NULL END, + 72 * 59 * + + 65 * CASE 78 WHEN + ( COUNT ( * ) ) + + + 88 * + + 71 * + + SUM ( ALL - 83 ) THEN - COALESCE ( + 88, + COUNT ( * ) * - 8 + + + CAST ( - 41 AS INTEGER ) + 79 * CAST ( NULL AS INTEGER ), COUNT ( * ) ) + + 12 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-666
SELECT ALL COUNT( * ) * - + CASE - COUNT( * ) WHEN CASE - - 81 WHEN + 92 * - 44 + COUNT( * ) THEN - CAST( NULL AS SIGNED ) * + 51 END THEN - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL COUNT ( * ) * - + CASE - COUNT ( * ) WHEN CASE - - 81 WHEN + 92 * - 44 + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) * + 51 END THEN - 93 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-667
SELECT 30 DIV COALESCE ( - COALESCE ( + + CAST( NULL AS SIGNED ), 86 + + 46 ), - - 46 )
----
0

skipif mysql # not compatible
query I rowsort label-667
SELECT 30 / COALESCE ( - COALESCE ( + + CAST ( NULL AS INTEGER ), 86 + + 46 ), - - 46 )
----
0

query I rowsort
SELECT CASE + 33 WHEN + 11 THEN NULL WHEN + 4 + - 15 THEN + 45 + NULLIF ( 66, 60 * 18 + - 26 ) ELSE NULL END * - AVG ( + 0 ) AS col2
----
NULL

query II rowsort
SELECT ALL 97, + 74 AS col1
----
97
74

onlyif mysql # aggregate syntax: 
query II rowsort label-670
SELECT DISTINCT SUM( 7 ) * 60, 47 + COALESCE ( - 44, + + 78 ) * 19 + 38 * - - 63 + - + 25 * + + 93 + COUNT( * ) + - - MAX( + + 56 ) AS col1
----
420
-663

skipif mysql # not compatible
query II rowsort label-670
SELECT DISTINCT SUM ( 7 ) * 60, 47 + COALESCE ( - 44, + + 78 ) * 19 + 38 * - - 63 + - + 25 * + + 93 + COUNT ( * ) + - - MAX ( + + 56 ) AS col1
----
420
-663

query I rowsort
SELECT DISTINCT 15 + + 77 AS col0
----
92

query I rowsort
SELECT DISTINCT + 16 + 15 - 25
----
6

query I rowsort
SELECT 36 + + + 75 * 97
----
7311

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT + CASE - 61 WHEN + SUM( ALL + 4 ) THEN NULL WHEN - - 79 THEN + 2 ELSE NULL END * + + 75 + 98 - + - SUM( DISTINCT 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-674
SELECT + CASE - 61 WHEN + SUM ( ALL + 4 ) THEN NULL WHEN - - 79 THEN + 2 ELSE NULL END * + + 75 + 98 - + - SUM ( DISTINCT 78 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 59 + + 33
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL - CASE WHEN NOT - AVG ( - 41 ) IS NULL THEN 47 WHEN NULL IS NULL THEN COUNT( * ) END + 93 + - - 44 * 91 + CASE + 44 WHEN - - 21 * 69 - 12 THEN 58 ELSE - 3 END * + + 23 * + 84 * - - 59
----
-337914

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL - CASE WHEN NOT - AVG ( - 41 ) IS NULL THEN 47 WHEN NULL IS NULL THEN COUNT ( * ) END + 93 + - - 44 * 91 + CASE + 44 WHEN - - 21 * 69 - 12 THEN 58 ELSE - 3 END * + + 23 * + 84 * - - 59
----
-337914

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT + COALESCE ( 78, + - 67, - COUNT( * ) ) + + 63 * - 97 AS col0
----
-6033

skipif mysql # not compatible
query I rowsort label-677
SELECT + COALESCE ( 78, + - 67, - COUNT ( * ) ) + + 63 * - 97 AS col0
----
-6033

query I rowsort
SELECT DISTINCT - - 86 col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT ALL 30 + 78 + - CAST( + 22 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL 30 + 78 + - CAST ( + 22 AS INTEGER ) AS col2
----
86

query I rowsort
SELECT ALL 43 + 84 + - 36 AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-681
SELECT - 44 AS col0, - 2 * - 55 + 51 * + COUNT( * ) * - 41 * - MIN( - 52 ) AS col1
----
-44
-108622

skipif mysql # not compatible
query II rowsort label-681
SELECT - 44 AS col0, - 2 * - 55 + 51 * + COUNT ( * ) * - 41 * - MIN ( - 52 ) AS col1
----
-44
-108622

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT DISTINCT - + 78 * + COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT - + 78 * + COUNT ( * ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT - 10 + 8 + + MIN( ALL - 27 ) * - ( NULLIF ( 16, + 38 ) ) - - 59 * + 45 - - 89
----
3174

skipif mysql # not compatible
query I rowsort label-683
SELECT - 10 + 8 + + MIN ( ALL - 27 ) * - ( NULLIF ( 16, + 38 ) ) - - 59 * + 45 - - 89
----
3174

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

query I rowsort
SELECT + 63 * + 66 + - - 36 AS col2
----
4194

query I rowsort
SELECT DISTINCT + - 52 - + 46
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL + ( - COUNT( - 94 ) ) * + + 27 + + ( 89 )
----
62

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + ( - COUNT ( - 94 ) ) * + + 27 + + ( 89 )
----
62

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

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

query III rowsort
SELECT ALL - 59 AS col1, + 38 AS col1, - 3
----
-59
38
-3

query I rowsort
SELECT ALL 70 * - 96
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT 33 * MIN( DISTINCT + ( + - NULLIF ( 7, + 5 - - + 95 ) ) )
----
-231

skipif mysql # not compatible
query I rowsort label-691
SELECT 33 * MIN ( DISTINCT + ( + - NULLIF ( 7, + 5 - - + 95 ) ) )
----
-231

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - 95 ) * + - 34
----
3230

onlyif mysql # aggregate syntax: 
query II rowsort label-695
SELECT 20 * + 94, - COUNT( - - ( 74 ) ) AS col0
----
1880
-1

skipif mysql # not compatible
query II rowsort label-695
SELECT 20 * + 94, - COUNT ( - - ( 74 ) ) AS col0
----
1880
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT 23 * - 86 * COUNT( * ) AS col2
----
-1978

skipif mysql # not compatible
query I rowsort label-696
SELECT 23 * - 86 * COUNT ( * ) AS col2
----
-1978

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT CASE 87 WHEN 58 * ( + COUNT( ALL + 27 ) ) THEN NULL WHEN - 93 + - 33 THEN + 25 - - 6 + + - COUNT( * ) + + MAX( ALL 86 ) * - 7 * - + 50 ELSE NULL END * - - 9 + + 12 - + 38 + - COALESCE ( + 95, + 25, + COUNT( * ) * COALESCE ( - 95, COUNT( - + 82 ) ) + 71 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-697
SELECT CASE 87 WHEN 58 * ( + COUNT ( ALL + 27 ) ) THEN NULL WHEN - 93 + - 33 THEN + 25 - - 6 + + - COUNT ( * ) + + MAX ( ALL 86 ) * - 7 * - + 50 ELSE NULL END * - - 9 + + 12 - + 38 + - COALESCE ( + 95, + 25, + COUNT ( * ) * COALESCE ( - 95, COUNT ( - + 82 ) ) + 71 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-698
SELECT DISTINCT COUNT( * ) col1, + 30 + - 55 col2
----
1
-25

skipif mysql # not compatible
query II rowsort label-698
SELECT DISTINCT COUNT ( * ) col1, + 30 + - 55 col2
----
1
-25

query I rowsort
SELECT 39 - - + 78
----
117

query I rowsort
SELECT ALL 63 + 17
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-701
SELECT 46 AS col1, CASE - 81 WHEN - + COUNT( * ) THEN + 30 * + - 75 + 67 * + 85 + CASE - 89 WHEN + - 35 THEN + 25 WHEN + 33 THEN - ( + COUNT( * ) ) WHEN - + 55 THEN NULL END ELSE NULL END * 84
----
46
NULL

skipif mysql # not compatible
query II rowsort label-701
SELECT 46 AS col1, CASE - 81 WHEN - + COUNT ( * ) THEN + 30 * + - 75 + 67 * + 85 + CASE - 89 WHEN + - 35 THEN + 25 WHEN + 33 THEN - ( + COUNT ( * ) ) WHEN - + 55 THEN NULL END ELSE NULL END * 84
----
46
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-702
SELECT ALL + CASE + + 37 WHEN - 23 THEN NULL WHEN NULLIF ( - 71, - - CAST( + + COUNT( * ) AS DECIMAL ) ) THEN + + 17 / - 7 * + ( + 60 ) ELSE NULL END + + COUNT( DISTINCT 45 ) * + 40 - 73 * + + 6 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL + CASE + + 37 WHEN - 23 THEN NULL WHEN NULLIF ( - 71, - - CAST ( + + COUNT ( * ) AS REAL ) ) THEN + + 17 / - 7 * + ( + 60 ) ELSE NULL END + + COUNT ( DISTINCT 45 ) * + 40 - 73 * + + 6 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-703
SELECT - 54 col1, MAX( - 42 )
----
-54
-42

skipif mysql # not compatible
query II rowsort label-703
SELECT - 54 col1, MAX ( - 42 )
----
-54
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT ALL + 57 + + NULLIF ( - + 26, + COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL + 57 + + NULLIF ( - + 26, + COUNT ( * ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT DISTINCT 3 + + SUM( DISTINCT + 43 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT 3 + + SUM ( DISTINCT + 43 ) AS col0
----
46

query I rowsort
SELECT - 69 * + 90 AS col0
----
-6210

query I rowsort
SELECT ALL + 90 + 96 AS col2
----
186

query I rowsort
SELECT ALL - 31 + - 46 * - - 22 + - 38 AS col0
----
-1081

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT DISTINCT + CASE 29 WHEN + 63 THEN NULL WHEN + + COUNT( * ) THEN 34 ELSE COUNT( * ) END + 59
----
60

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT + CASE 29 WHEN + 63 THEN NULL WHEN + + COUNT ( * ) THEN 34 ELSE COUNT ( * ) END + 59
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-710
SELECT CASE 72 WHEN - 90 THEN - + 51 - 89 * + + 12 WHEN + 44 THEN - - 44 - 3 + + CAST( NULL AS SIGNED ) END * - + 61 + - SUM( ALL - 81 ) + - 13 / - - 49 + - + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-710
SELECT CASE 72 WHEN - 90 THEN - + 51 - 89 * + + 12 WHEN + 44 THEN - - 44 - 3 + + CAST ( NULL AS INTEGER ) END * - + 61 + - SUM ( ALL - 81 ) + - 13 / - - 49 + - + 93 AS col1
----
NULL

query II rowsort
SELECT + 49, 62 * + 30 AS col2
----
49
1860

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-713
SELECT ALL 2 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL 2 / + 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-714
SELECT SUM( DISTINCT - 98 ) * - 73 + + - 41 + - + COALESCE ( + COUNT( * ), + 26 + + 40 / - 75 / - 52 ) * - + 48 + + - CAST( NULL AS SIGNED ) + 38 * - + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-714
SELECT SUM ( DISTINCT - 98 ) * - 73 + + - 41 + - + COALESCE ( + COUNT ( * ), + 26 + + 40 / - 75 / - 52 ) * - + 48 + + - CAST ( NULL AS INTEGER ) + 38 * - + 98
----
NULL

query II rowsort
SELECT + + 53, 81 AS col1
----
53
81

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT ALL - MIN( - 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL - MIN ( - 82 ) AS col1
----
82

query I rowsort
SELECT 46 * 71
----
3266

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT 76 - - - COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-718
SELECT 76 - - - COUNT ( * ) AS col2
----
75

query II rowsort
SELECT DISTINCT + + 25 AS col0, + 1 AS col0
----
25
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-720
SELECT DISTINCT + - 25 * AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT + - 25 * AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT ALL + CASE + - COUNT( * ) WHEN 45 + - 65 THEN + 92 ELSE ( + 62 ) END AS col1
----
62

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL + CASE + - COUNT ( * ) WHEN 45 + - 65 THEN + 92 ELSE ( + 62 ) END AS col1
----
62

query I rowsort
SELECT - 52 - 53 - + 2 * NULLIF ( 53, + 11 ) * + - 32 + 90 * 65
----
9137

query I rowsort
SELECT ALL + 69 * - 61 AS col2
----
-4209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-724
SELECT - 75 * 21 - - + ( ( - - MAX( - 10 ) ) ) + - - 48 DIV + MIN( 29 ) AS col2
----
-1584

skipif mysql # not compatible
query I rowsort label-724
SELECT - 75 * 21 - - + ( ( - - MAX ( - 10 ) ) ) + - - 48 / + MIN ( 29 ) AS col2
----
-1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-725
SELECT ALL + CASE + - MAX( DISTINCT - - 23 ) WHEN 65 * + 13 + + - NULLIF ( - - COUNT( + - 0 ), - - 96 * 99 ) THEN - 2 / 87 * - CAST( 33 AS SIGNED ) * COUNT( * ) * - CASE - ( 5 ) WHEN ( - - ( MIN( DISTINCT 16 ) ) ) * + 51 THEN - - 11 ELSE NULL END + + 57 END, CAST( - 13 AS SIGNED ) AS col1
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-725
SELECT ALL + CASE + - MAX ( DISTINCT - - 23 ) WHEN 65 * + 13 + + - NULLIF ( - - COUNT ( + - 0 ), - - 96 * 99 ) THEN - 2 / 87 * - CAST ( 33 AS INTEGER ) * COUNT ( * ) * - CASE - ( 5 ) WHEN ( - - ( MIN ( DISTINCT 16 ) ) ) * + 51 THEN - - 11 ELSE NULL END + + 57 END, CAST ( - 13 AS INTEGER ) AS col1
----
NULL
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-726
SELECT SUM( - + 72 ), 81 * - MIN( ALL 82 ) AS col2, CAST( NULL AS SIGNED ) + 30 * - - NULLIF ( 25, - NULLIF ( - 28, + 7 ) - + 57 ) + - COUNT( * ) col1
----
-72
-6642
NULL

skipif mysql # not compatible
query III rowsort label-726
SELECT SUM ( - + 72 ), 81 * - MIN ( ALL 82 ) AS col2, CAST ( NULL AS INTEGER ) + 30 * - - NULLIF ( 25, - NULLIF ( - 28, + 7 ) - + 57 ) + - COUNT ( * ) col1
----
-72
-6642
NULL

query I rowsort
SELECT DISTINCT 40 + - + 49 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-728
SELECT ALL + 25 DIV + 12 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL + 25 / + 12 AS col2
----
2

query I rowsort
SELECT ALL - 70 + 33 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT DISTINCT COUNT( + 65 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT COUNT ( + 65 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT - COALESCE ( - 28, + COUNT( * ) ) + - 98 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-731
SELECT - COALESCE ( - 28, + COUNT ( * ) ) + - 98 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT ALL + 98 + - COUNT( * ) - - 50 * NULLIF ( ( - 64 ), - 49 ) * - 28
----
89697

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL + 98 + - COUNT ( * ) - - 50 * NULLIF ( ( - 64 ), - 49 ) * - 28
----
89697

query I rowsort
SELECT ALL + 71 + - - 52
----
123

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

skipif mysql # not compatible
query I rowsort label-734
SELECT - 15 + - - CAST ( - 4 AS INTEGER ) AS col0
----
-19

query I rowsort
SELECT ALL - 98 * - ( 3 )
----
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-736
SELECT ALL + 35 + - COALESCE ( 32, + CAST( + COUNT( * ) AS SIGNED ) ) * + SUM( - 39 ) AS col2
----
1283

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL + 35 + - COALESCE ( 32, + CAST ( + COUNT ( * ) AS INTEGER ) ) * + SUM ( - 39 ) AS col2
----
1283

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-737
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * - 23 + - COALESCE ( - - 54, - 11 ) + + - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT - - CAST ( NULL AS REAL ) * - 23 + - COALESCE ( - - 54, - 11 ) + + - 80 AS col2
----
NULL

query I rowsort
SELECT ALL + - 36 - 82
----
-118

query I rowsort
SELECT - + 3 + 59 + + 40 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT - + COUNT( * ) * - 13 * - 91 + + + 17 AS col2
----
-1166

skipif mysql # not compatible
query I rowsort label-740
SELECT - + COUNT ( * ) * - 13 * - 91 + + + 17 AS col2
----
-1166

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT + - NULLIF ( 55, 46 ) * + COUNT( * ) * + 62 + 67 + + + 79
----
-3264

skipif mysql # not compatible
query I rowsort label-741
SELECT + - NULLIF ( 55, 46 ) * + COUNT ( * ) * + 62 + 67 + + + 79
----
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT + 78 + COALESCE ( 38, COALESCE ( 3, + 56, + + 55 ) + + COUNT( * ) * - + 94 * 33 ) col1
----
116

skipif mysql # not compatible
query I rowsort label-742
SELECT + 78 + COALESCE ( 38, COALESCE ( 3, + 56, + + 55 ) + + COUNT ( * ) * - + 94 * 33 ) col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT DISTINCT 48 * + MAX( DISTINCT - 84 ) * + 40 + + 85 col2
----
-161195

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT 48 * + MAX ( DISTINCT - 84 ) * + 40 + + 85 col2
----
-161195

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-745
SELECT ALL + + 33 DIV + 81 + 72 - 66 + - + 70 DIV 27 * - + 69, - 64 AS col0
----
144
-64

skipif mysql # not compatible
query II rowsort label-745
SELECT ALL + + 33 / + 81 + 72 - 66 + - + 70 / 27 * - + 69, - 64 AS col0
----
144
-64

query II rowsort
SELECT - 36 * + - 43 AS col0, 29
----
1548
29

query I rowsort
SELECT ALL 75 * - - 1
----
75

query I rowsort
SELECT + ( - 45 ) + + 35
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-749
SELECT DISTINCT + - 19 * 64 + + + 87 + + - 51 + - COUNT( * ) * + 88 + 74 * 73 AS col0, 11 + 10
----
4134
21

skipif mysql # not compatible
query II rowsort label-749
SELECT DISTINCT + - 19 * 64 + + + 87 + + - 51 + - COUNT ( * ) * + 88 + 74 * 73 AS col0, 11 + 10
----
4134
21

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT ALL - COUNT( * ) * + 5 * COALESCE ( 86, 84 * + ( 1 ) + ( 94 ) ) AS col0
----
-430

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - COUNT ( * ) * + 5 * COALESCE ( 86, 84 * + ( 1 ) + ( 94 ) ) AS col0
----
-430

query I rowsort
SELECT DISTINCT + NULLIF ( - 23, + 7 ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-752
SELECT - CAST( NULL AS DECIMAL ) * MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + - 17 * + CAST( 65 AS SIGNED ) / COUNT( * ) - - 99 + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-752
SELECT - CAST ( NULL AS REAL ) * MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 17 * + CAST ( 65 AS INTEGER ) / COUNT ( * ) - - 99 + + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT ( - MAX( - COALESCE ( + 40, 77 - + 66 * + - 2 * - 50, 37 ) ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-753
SELECT ( - MAX ( - COALESCE ( + 40, 77 - + 66 * + - 2 * - 50, 37 ) ) ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-754
SELECT + 53 + 98 + - 7 * - CASE 50 WHEN + 54 * + - 55 THEN + CAST( - - MIN( + - 34 ) AS SIGNED ) * + ( 90 ) WHEN - - 63 THEN NULL END AS col1, - 99
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-754
SELECT + 53 + 98 + - 7 * - CASE 50 WHEN + 54 * + - 55 THEN + CAST ( - - MIN ( + - 34 ) AS INTEGER ) * + ( 90 ) WHEN - - 63 THEN NULL END AS col1, - 99
----
NULL
-99

query I rowsort
SELECT ( + 22 ) col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT DISTINCT + MAX( DISTINCT - 88 ) * 73 * + 98 + - + ( + - 27 ) * + - 42 AS col0
----
-630686

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT + MAX ( DISTINCT - 88 ) * 73 * + 98 + - + ( + - 27 ) * + - 42 AS col0
----
-630686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-757
SELECT + NULLIF ( + CAST( - 18 AS SIGNED ), + + 8 / + 62 + + 59 * + - 15 * - 73 + - SUM( - 56 ) + + 40 * - - 15 * 28 + - 36 + + 32 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-757
SELECT + NULLIF ( + CAST ( - 18 AS INTEGER ), + + 8 / + 62 + + 59 * + - 15 * - 73 + - SUM ( - 56 ) + + 40 * - - 15 * 28 + - 36 + + 32 ) AS col1
----
-18

query I rowsort
SELECT + 99 * + 64 AS col2
----
6336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-759
SELECT + 9 * COUNT( * ) * - + COUNT( * ) + + 74 + CAST( 76 AS SIGNED ) * + 73 * NULLIF ( + + ( + - 7 ), + CAST( NULL AS SIGNED ) + + COUNT( * ) )
----
-38771

skipif mysql # not compatible
query I rowsort label-759
SELECT + 9 * COUNT ( * ) * - + COUNT ( * ) + + 74 + CAST ( 76 AS INTEGER ) * + 73 * NULLIF ( + + ( + - 7 ), + CAST ( NULL AS INTEGER ) + + COUNT ( * ) )
----
-38771

query I rowsort
SELECT ALL 27 * 82 * - 1 + + - 11 col0
----
-2225

onlyif mysql # DIV for integer division: 
query II rowsort label-761
SELECT ALL + 31 * + 86 * - + 58 + - + 14, + 97 DIV - - 12 AS col2
----
-154642
8

skipif mysql # not compatible
query II rowsort label-761
SELECT ALL + 31 * + 86 * - + 58 + - + 14, + 97 / - - 12 AS col2
----
-154642
8

query I rowsort
SELECT ALL + 29 * + 88
----
2552

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-763
SELECT COUNT( * ) AS col2, - 49 DIV - + 6 + + 85 AS col0
----
1
93

skipif mysql # not compatible
query II rowsort label-763
SELECT COUNT ( * ) AS col2, - 49 / - + 6 + + 85 AS col0
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT ALL 70 * + 10 * 34 + - COUNT( ALL 19 ) * + 92 + 5
----
23713

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL 70 * + 10 * 34 + - COUNT ( ALL 19 ) * + 92 + 5
----
23713

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT + COUNT( * ) - - 42 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-765
SELECT + COUNT ( * ) - - 42 AS col1
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-766
SELECT - CAST( NULL AS DECIMAL ) * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT - CAST ( NULL AS REAL ) * 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-767
SELECT - CAST( NULL AS SIGNED ), + COUNT( * ) - + - CASE 47 WHEN AVG ( ALL + 50 ) - + + 60 / 21 THEN NULL WHEN - - COALESCE ( - 73, 14 / - CAST( NULL AS SIGNED ) + NULLIF ( ( ( 1 ) ), + + 74 ) ) + - NULLIF ( COUNT( * ), 56 ) * - + 10 THEN 80 WHEN 27 * 91 * 50 * COUNT( * ) * - + CAST( NULL AS SIGNED ) * - 31 * + 56 + 16 THEN NULL ELSE + ( - 52 ) - COUNT( * ) * 33 END + 17 * 67 AS col0
----
NULL
1055

skipif mysql # not compatible
query II rowsort label-767
SELECT - CAST ( NULL AS INTEGER ), + COUNT ( * ) - + - CASE 47 WHEN AVG ( ALL + 50 ) - + + 60 / 21 THEN NULL WHEN - - COALESCE ( - 73, 14 / - CAST ( NULL AS INTEGER ) + NULLIF ( ( ( 1 ) ), + + 74 ) ) + - NULLIF ( COUNT ( * ), 56 ) * - + 10 THEN 80 WHEN 27 * 91 * 50 * COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * - 31 * + 56 + 16 THEN NULL ELSE + ( - 52 ) - COUNT ( * ) * 33 END + 17 * 67 AS col0
----
NULL
1055

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-768
SELECT ALL 14 * - CAST( NULL AS DECIMAL ) * 26 + + + 80 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL 14 * - CAST ( NULL AS REAL ) * 26 + + + 80 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-769
SELECT - 91 DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-769
SELECT - 91 / + 92 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT + 3 * - - 21 DIV - 99 * - 11 * + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-770
SELECT + 3 * - - 21 / - 99 * - 11 * + 30 AS col2
----
0

query I rowsort
SELECT ALL ( CASE 59 WHEN 82 THEN + 43 + 32 WHEN + 94 + + 97 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-772
SELECT ALL ( - NULLIF ( + + COUNT( * ), + 80 ) ) AS col0, + 55 col1
----
-1
55

skipif mysql # not compatible
query II rowsort label-772
SELECT ALL ( - NULLIF ( + + COUNT ( * ), + 80 ) ) AS col0, + 55 col1
----
-1
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-773
SELECT ALL - COUNT( * ) DIV 59 * - ( + 5 ) * + 8 - + 56 AS col2, + 45 col1
----
-56
45

skipif mysql # not compatible
query II rowsort label-773
SELECT ALL - COUNT ( * ) / 59 * - ( + 5 ) * + 8 - + 56 AS col2, + 45 col1
----
-56
45

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT ALL + 13 DIV + 84 col0
----
0

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + 13 / + 84 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-775
SELECT + - COUNT( * ) + + - CAST( ( - SUM( + 15 ) ) AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-775
SELECT + - COUNT ( * ) + + - CAST ( ( - SUM ( + 15 ) ) AS INTEGER )
----
14

query I rowsort
SELECT ALL - 80 * + 58 AS col1
----
-4640

onlyif mysql # DIV for integer division: 
query I rowsort label-777
SELECT - + 68 DIV - 16 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-777
SELECT - + 68 / - 16 AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-778
SELECT - CAST( 81 AS SIGNED ) + 42 + - + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-778
SELECT - CAST ( 81 AS INTEGER ) + 42 + - + COUNT ( * )
----
-40

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

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT - 46 * + 71 * - + 46 / COUNT ( * )
----
150236

query I rowsort
SELECT ALL + 88 * 57
----
5016

query II rowsort
SELECT - 34 AS col0, + 99 * - + ( + - 21 ) AS col1
----
-34
2079

query II rowsort
SELECT - + 42 AS col0, 68 AS col1
----
-42
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-783
SELECT 29 DIV + 35 * + 8 * - + CAST( + 35 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-783
SELECT 29 / + 35 * + 8 * - + CAST ( + 35 AS INTEGER )
----
0

query I rowsort
SELECT + 29 * + - 41 * - 36
----
42804

query I rowsort
SELECT DISTINCT - 86 * + 51
----
-4386

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT ALL + 28 * + COUNT( * ) * - 26
----
-728

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL + 28 * + COUNT ( * ) * - 26
----
-728

query II rowsort
SELECT DISTINCT - - 21 col2, + 35
----
21
35

query I rowsort
SELECT ALL + 36 + 54 + + - ( + 0 ) + + + 54 * - COALESCE ( + + 57, + - 12, + + 21 )
----
-2988

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

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

query I rowsort
SELECT ( + 60 ) * + 62 AS col2
----
3720

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

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL - CAST ( NULL AS INTEGER ) * 32 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-792
SELECT 24 / - 96
----
0

query I rowsort
SELECT 59 * 10 AS col0
----
590

query I rowsort
SELECT 30 - - + 34
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT ALL 87 + - COUNT( * ) * - 49 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL 87 + - COUNT ( * ) * - 49 AS col2
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-796
SELECT ALL + CAST( + 79 AS SIGNED ) + 15 - + - 18 DIV - + COALESCE ( - CAST( + 40 AS SIGNED ), + 2 ) * - 23 AS col2, - 79 - - COUNT( * ) + + 36
----
94
-42

skipif mysql # not compatible
query II rowsort label-796
SELECT ALL + CAST ( + 79 AS INTEGER ) + 15 - + - 18 / - + COALESCE ( - CAST ( + 40 AS INTEGER ), + 2 ) * - 23 AS col2, - 79 - - COUNT ( * ) + + 36
----
94
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-797
SELECT ALL - NULLIF ( + - ( - SUM( 10 ) ), CAST( - 39 AS SIGNED ) ) * ( - 36 ) AS col2
----
360

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL - NULLIF ( + - ( - SUM ( 10 ) ), CAST ( - 39 AS INTEGER ) ) * ( - 36 ) AS col2
----
360

query I rowsort
SELECT 49 * + 66 AS col2
----
3234

onlyif mysql # DIV for integer division: 
query I rowsort label-799
SELECT ALL 81 + + 72 DIV 51 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL 81 + + 72 / 51 AS col0
----
82

query I rowsort
SELECT 71 * 95 + + 58 + - 19 AS col1
----
6784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-801
SELECT MAX( 1 ) - - 20 * COUNT( * ) - + 68 + - + 45 * CASE - 87 WHEN + 48 THEN NULL WHEN - CAST( NULL AS SIGNED ) + - MIN( + 92 ) / + ( 51 ) * MIN( ALL 8 ) * - MAX( + + 96 ) THEN NULL ELSE 75 END col0, 51 * + 94
----
-3422
4794

skipif mysql # not compatible
query II rowsort label-801
SELECT MAX ( 1 ) - - 20 * COUNT ( * ) - + 68 + - + 45 * CASE - 87 WHEN + 48 THEN NULL WHEN - CAST ( NULL AS INTEGER ) + - MIN ( + 92 ) / + ( 51 ) * MIN ( ALL 8 ) * - MAX ( + + 96 ) THEN NULL ELSE 75 END col0, 51 * + 94
----
-3422
4794

onlyif mysql # aggregate syntax: 
query II rowsort label-802
SELECT NULLIF ( 52, + ( MIN( DISTINCT + + 3 ) ) ) + 49 + - COUNT( * ) + + 85 + - 71 * 60 AS col2, - 24 * 82 * + SUM( + 31 )
----
-4075
-61008

skipif mysql # not compatible
query II rowsort label-802
SELECT NULLIF ( 52, + ( MIN ( DISTINCT + + 3 ) ) ) + 49 + - COUNT ( * ) + + 85 + - 71 * 60 AS col2, - 24 * 82 * + SUM ( + 31 )
----
-4075
-61008

onlyif mysql # DIV for integer division: 
query II rowsort label-803
SELECT ALL 21 - 94 AS col0, - 4 - 51 + + + 2 + + ( - 32 ) * - 77 + - 92 DIV + + 29
----
-73
2408

skipif mysql # not compatible
query II rowsort label-803
SELECT ALL 21 - 94 AS col0, - 4 - 51 + + + 2 + + ( - 32 ) * - 77 + - 92 / + + 29
----
-73
2408

query II rowsort
SELECT DISTINCT 15 * + COALESCE ( + - 47, 16 ) AS col1, 14 AS col0
----
-705
14

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT 41 + - COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-805
SELECT 41 + - COUNT ( * ) AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-806
SELECT ALL - CAST( NULLIF ( + + 72, - 50 ) AS SIGNED ) * - COUNT( * ) + + 25
----
97

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL - CAST ( NULLIF ( + + 72, - 50 ) AS INTEGER ) * - COUNT ( * ) + + 25
----
97

query I rowsort
SELECT - 54 * + 86 AS col2
----
-4644

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT 72 * COUNT( * ) + + 21
----
93

skipif mysql # not compatible
query I rowsort label-808
SELECT 72 * COUNT ( * ) + + 21
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT 64 + + COUNT( DISTINCT + 66 )
----
65

skipif mysql # not compatible
query I rowsort label-809
SELECT 64 + + COUNT ( DISTINCT + 66 )
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-810
SELECT CASE + 8 WHEN 89 THEN 50 ELSE + + 41 END * + - 9 + + COUNT( * ), 56 DIV 15 AS col0
----
-368
3

skipif mysql # not compatible
query II rowsort label-810
SELECT CASE + 8 WHEN 89 THEN 50 ELSE + + 41 END * + - 9 + + COUNT ( * ), 56 / 15 AS col0
----
-368
3

query I rowsort
SELECT 95 * - 74 + - - 64
----
-6966

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL NULLIF ( - 3, - COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL NULLIF ( - 3, - COUNT ( * ) )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-813
SELECT DISTINCT 69 * - 79 AS col0, 97 + CAST( + 40 AS SIGNED ) + NULLIF ( - - ( - - 3 ), + CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) ) * - + COUNT( * ) AS col1
----
-5451
134

skipif mysql # not compatible
query II rowsort label-813
SELECT DISTINCT 69 * - 79 AS col0, 97 + CAST ( + 40 AS INTEGER ) + NULLIF ( - - ( - - 3 ), + CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) AS col1
----
-5451
134

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

query II rowsort
SELECT 74 + + - 72 AS col1, ( + + 2 ) AS col1
----
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT DISTINCT - COUNT( * ) * 62 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT - COUNT ( * ) * 62 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT - 80 + 75 - 26 + - 28 + - 6 * - - 65 * - COUNT( * ) * 42 * 92 * - - 73 + - COUNT( * ) + - NULLIF ( + 92, ( - 25 ) ) + + 80 + + + 41 * - - 34 * - + 58 * - + 40 + - 97 col1
----
113241991

skipif mysql # not compatible
query I rowsort label-817
SELECT - 80 + 75 - 26 + - 28 + - 6 * - - 65 * - COUNT ( * ) * 42 * 92 * - - 73 + - COUNT ( * ) + - NULLIF ( + 92, ( - 25 ) ) + + 80 + + + 41 * - - 34 * - + 58 * - + 40 + - 97 col1
----
113241991

query I rowsort
SELECT 23 - + + 53
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-819
SELECT 54 + - 8 DIV - + ( + ( - + CASE - 83 WHEN + 46 THEN NULL ELSE - - 29 * - 38 END ) ) AS col0, + ( + 5 ) col0
----
54
5

skipif mysql # not compatible
query II rowsort label-819
SELECT 54 + - 8 / - + ( + ( - + CASE - 83 WHEN + 46 THEN NULL ELSE - - 29 * - 38 END ) ) AS col0, + ( + 5 ) col0
----
54
5

query I rowsort
SELECT + ( - ( + - 48 ) ) + + 32
----
80

query I rowsort
SELECT DISTINCT + - 51 + + 92
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-822
SELECT COUNT( * ) * + 72 DIV + COUNT( * ) + - 65 + - + 37 + + 17 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-822
SELECT COUNT ( * ) * + 72 / + COUNT ( * ) + - 65 + - + 37 + + 17 AS col2
----
-13

query II rowsort
SELECT DISTINCT - - NULLIF ( - - 25, - 7 ) * + + 65 AS col1, + 69 + - + 39 AS col2
----
1625
30

query I rowsort
SELECT ALL + 1 + 32 - - 28 * + 57 AS col1
----
1629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-825
SELECT DISTINCT COUNT( * ) * CASE WHEN NOT 1 IS NOT NULL THEN 2 * - NULLIF ( - + 66, + 78 * NULLIF ( SUM( + - 20 ), - 15 ) * - + CAST( - 65 AS SIGNED ) * 55 * + + 30 + 96 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT COUNT ( * ) * CASE WHEN NOT 1 IS NOT NULL THEN 2 * - NULLIF ( - + 66, + 78 * NULLIF ( SUM ( + - 20 ), - 15 ) * - + CAST ( - 65 AS INTEGER ) * 55 * + + 30 + 96 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT ALL - 38 + + - 12 + - + MIN( DISTINCT - + NULLIF ( - 22, 46 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL - 38 + + - 12 + - + MIN ( DISTINCT - + NULLIF ( - 22, 46 ) )
----
-72

query I rowsort
SELECT 39 + - 23 AS col0
----
16

query I rowsort
SELECT - 63 * - 40 - - 93 AS col1
----
2613

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL - MIN( 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL - MIN ( 75 ) AS col0
----
-75

query I rowsort
SELECT DISTINCT - 56 * 98
----
-5488

onlyif mysql # aggregate syntax: 
query II rowsort label-831
SELECT ALL - NULLIF ( + - 68, - + 61 ) + 70 + + 25 * + 68 + + MAX( - 17 ) AS col0, 12 + - 4
----
1821
8

skipif mysql # not compatible
query II rowsort label-831
SELECT ALL - NULLIF ( + - 68, - + 61 ) + 70 + + 25 * + 68 + + MAX ( - 17 ) AS col0, 12 + - 4
----
1821
8

query I rowsort
SELECT 29 * - + 70 AS col2
----
-2030

query I rowsort
SELECT 78 * - 92
----
-7176

query I rowsort
SELECT 84 + + 54
----
138

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

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

query I rowsort
SELECT DISTINCT - 94 * - 75
----
7050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-837
SELECT 68 * - + CAST( NULL AS SIGNED ) * + 85 / - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-837
SELECT 68 * - + CAST ( NULL AS INTEGER ) * + 85 / - 59
----
NULL

query I rowsort
SELECT DISTINCT + 94 * + NULLIF ( + + 81, + 49 ) AS col0
----
7614

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-839
SELECT 53, ( + CAST( + 54 AS SIGNED ) ) - 92 * + - 4 AS col0
----
53
422

skipif mysql # not compatible
query II rowsort label-839
SELECT 53, ( + CAST ( + 54 AS INTEGER ) ) - 92 * + - 4 AS col0
----
53
422

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT MAX( 80 ) * + 52 + - 21 + 57
----
4196

skipif mysql # not compatible
query I rowsort label-840
SELECT MAX ( 80 ) * + 52 + - 21 + 57
----
4196

query I rowsort
SELECT ALL + 76 * 63 AS col1
----
4788

query I rowsort
SELECT 64 - 30
----
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT 89 * + - MIN( + - 38 )
----
3382

skipif mysql # not compatible
query I rowsort label-844
SELECT 89 * + - MIN ( + - 38 )
----
3382

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-845
SELECT - - 41 DIV - COUNT( * ) - + 15 AS col1, - 69 AS col2
----
-56
-69

skipif mysql # not compatible
query II rowsort label-845
SELECT - - 41 / - COUNT ( * ) - + 15 AS col1, - 69 AS col2
----
-56
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT + + COUNT( * ) + - + ( + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-846
SELECT + + COUNT ( * ) + - + ( + COUNT ( * ) ) AS col2
----
0

query I rowsort
SELECT DISTINCT 14 / 95 * - CASE 30 WHEN + 42 * 43 THEN NULL WHEN + + 82 + 56 THEN NULL WHEN - 66 THEN 13 + + + 8 END AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-849
SELECT - - CAST( 39 AS SIGNED ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-849
SELECT - - CAST ( 39 AS INTEGER ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL ( - - 71 ) * + COUNT( * ) + + + 68
----
139

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL ( - - 71 ) * + COUNT ( * ) + + + 68
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-851
SELECT + COUNT( * ) DIV - COUNT( - - ( - - 28 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-851
SELECT + COUNT ( * ) / - COUNT ( - - ( - - 28 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-852
SELECT DISTINCT CAST( - + 57 AS SIGNED ) + 51 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT CAST ( - + 57 AS INTEGER ) + 51 AS col2
----
-6

query I rowsort
SELECT + 24 * 17
----
408

query I rowsort
SELECT + ( + ( 25 ) ) + + 91
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT + 82 + + + CASE - 94 WHEN CAST( NULL AS SIGNED ) * - - CAST( - 25 AS SIGNED ) / 95 * - - COUNT( * ) + - + 36 + + 7 + 48 + + 3 + - - 41 THEN - + COUNT( * ) WHEN - 46 THEN NULL ELSE NULL END * ( - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-855
SELECT + 82 + + + CASE - 94 WHEN CAST ( NULL AS INTEGER ) * - - CAST ( - 25 AS INTEGER ) / 95 * - - COUNT ( * ) + - + 36 + + 7 + 48 + + 3 + - - 41 THEN - + COUNT ( * ) WHEN - 46 THEN NULL ELSE NULL END * ( - 88 )
----
NULL

query I rowsort
SELECT + 52 - + 72 + + 26
----
6

query I rowsort
SELECT ALL - 45 * - 55
----
2475

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT DISTINCT 26 + - 43 DIV + 38 col1
----
25

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT 26 + - 43 / + 38 col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-859
SELECT - + 76 - - - ( SUM( DISTINCT + CAST( - - ( + 46 ) AS SIGNED ) ) ) + - 72 * + + COUNT( * ) col0
----
-194

skipif mysql # not compatible
query I rowsort label-859
SELECT - + 76 - - - ( SUM ( DISTINCT + CAST ( - - ( + 46 ) AS INTEGER ) ) ) + - 72 * + + COUNT ( * ) col0
----
-194

query I rowsort
SELECT ALL 44 + + 78 col0
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-861
SELECT - + CASE + + COUNT( * ) WHEN - + CASE CASE + - 32 WHEN + 50 THEN NULL WHEN + 58 - + 84 THEN NULL ELSE 53 END WHEN - 51 THEN - CAST( 2 AS SIGNED ) - 35 WHEN + 77 / + 23 * + 12 THEN COUNT( * ) / - - CAST( NULL AS SIGNED ) ELSE NULL END THEN + + 2 / - CASE - 46 WHEN + 33 * 40 THEN - 53 ELSE + + COUNT( * ) * + 94 + - 52 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT - + CASE + + COUNT ( * ) WHEN - + CASE CASE + - 32 WHEN + 50 THEN NULL WHEN + 58 - + 84 THEN NULL ELSE 53 END WHEN - 51 THEN - CAST ( 2 AS INTEGER ) - 35 WHEN + 77 / + 23 * + 12 THEN COUNT ( * ) / - - CAST ( NULL AS INTEGER ) ELSE NULL END THEN + + 2 / - CASE - 46 WHEN + 33 * 40 THEN - 53 ELSE + + COUNT ( * ) * + 94 + - 52 END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT ALL + 84 * + ( - COUNT( * ) ) * + 86
----
-7224

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL + 84 * + ( - COUNT ( * ) ) * + 86
----
-7224

query I rowsort
SELECT + 94 * - 6
----
-564

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

query I rowsort
SELECT ALL + 79 * - 54 AS col0
----
-4266

query I rowsort
SELECT ( + 84 ) col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT DISTINCT 69 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT 69 / + 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-868
SELECT 7 DIV + COALESCE ( + - COUNT( * ), + - 29 ) + - 52 - - 36 + + - 95 * MIN( - 17 )
----
1592

skipif mysql # not compatible
query I rowsort label-868
SELECT 7 / + COALESCE ( + - COUNT ( * ), + - 29 ) + - 52 - - 36 + + - 95 * MIN ( - 17 )
----
1592

query I rowsort
SELECT - ( + - 90 ) * + + 15
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL + 80 * - + 43 * - CASE 56 WHEN + 41 / - COUNT( ALL - + 69 ) THEN - + ( - 37 ) WHEN - 51 + + 55 - + - 52 + AVG ( DISTINCT 45 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL + 80 * - + 43 * - CASE 56 WHEN + 41 / - COUNT ( ALL - + 69 ) THEN - + ( - 37 ) WHEN - 51 + + 55 - + - 52 + AVG ( DISTINCT 45 ) THEN NULL END col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-872
SELECT ALL - COUNT( * ) * + SUM( + 2 ) * + 32 * 0 * + SUM( - + 36 ) * + + ( - 16 ), COUNT( * ) - + 41 AS col2
----
0
-40

skipif mysql # not compatible
query II rowsort label-872
SELECT ALL - COUNT ( * ) * + SUM ( + 2 ) * + 32 * 0 * + SUM ( - + 36 ) * + + ( - 16 ), COUNT ( * ) - + 41 AS col2
----
0
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT 71 * + MIN( - + 24 ) - - 76 + 75 AS col1
----
-1553

skipif mysql # not compatible
query I rowsort label-873
SELECT 71 * + MIN ( - + 24 ) - - 76 + 75 AS col1
----
-1553

query I rowsort
SELECT - ( + 87 ) * + - 56 AS col2
----
4872

query I rowsort
SELECT ALL 68 * + + 15
----
1020

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

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

query I rowsort
SELECT ALL - 8 * + 91 AS col1
----
-728

query I rowsort
SELECT NULLIF ( + - 80, + 77 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT NULLIF ( 17, - ( + 13 ) + + COUNT( ALL 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-879
SELECT NULLIF ( 17, - ( + 13 ) + + COUNT ( ALL 17 ) )
----
17

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

query I rowsort
SELECT - 46 * + 85
----
-3910

query I rowsort
SELECT - 97 * + 52 + 52 AS col2
----
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT - - 12 * 1 * + - 87 + - 51 + - 68 * COUNT( * ) * 13
----
-1979

skipif mysql # not compatible
query I rowsort label-883
SELECT - - 12 * 1 * + - 87 + - 51 + - 68 * COUNT ( * ) * 13
----
-1979

query I rowsort
SELECT ALL + 85 * - 16 + + 85 + + 17 + 38 * - 52
----
-3234

onlyif mysql # DIV for integer division: 
query II rowsort label-885
SELECT - 73 + 60 + 40 DIV + 34, 60 AS col2
----
-12
60

skipif mysql # not compatible
query II rowsort label-885
SELECT - 73 + 60 + 40 / + 34, 60 AS col2
----
-12
60

query II rowsort
SELECT ALL + 78, 34 - 98 AS col1
----
78
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ( + 24 ) * - 99 * - COUNT( * ) + - 85 * - COUNT( * )
----
2461

skipif mysql # not compatible
query I rowsort label-887
SELECT ( + 24 ) * - 99 * - COUNT ( * ) + - 85 * - COUNT ( * )
----
2461

query I rowsort
SELECT - 0 + 70 AS col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-889
SELECT ALL + + 10 + + 62 + 75 DIV - 49
----
71

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL + + 10 + + 62 + 75 / - 49
----
71

query II rowsort
SELECT - 25 AS col0, 3
----
-25
3

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT ALL ( + + ( - NULLIF ( + + 26, - COUNT( * ) ) ) ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL ( + + ( - NULLIF ( + + 26, - COUNT ( * ) ) ) ) col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-892
SELECT - + COALESCE ( + 93, + COALESCE ( + + 90, + 42 * - - 93 * - 60 + - 40 + - 63 ) ) + + CAST( NULL AS SIGNED ) - + + ( - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT - + COALESCE ( + 93, + COALESCE ( + + 90, + 42 * - - 93 * - 60 + - 40 + - 63 ) ) + + CAST ( NULL AS INTEGER ) - + + ( - 71 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-893
SELECT - + 85 * - 98 DIV - + 98 - + ( 87 ) AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-893
SELECT - + 85 * - 98 / - + 98 - + ( 87 ) AS col0
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT DISTINCT 14 + 97 * + COALESCE ( COUNT( * ), 84 )
----
111

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT 14 + 97 * + COALESCE ( COUNT ( * ), 84 )
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT ALL + 24 + - COUNT( * ) - - + 21 col0
----
44

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL + 24 + - COUNT ( * ) - - + 21 col0
----
44

query I rowsort
SELECT - 2 * 37 * 40
----
-2960

query II rowsort
SELECT ALL - 73 AS col1, + 37 - 44 AS col2
----
-73
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT DISTINCT + 91 + - MAX( ALL + + 66 )
----
25

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT + 91 + - MAX ( ALL + + 66 )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT + + 28 + NULLIF ( - COUNT( * ), - - 48 * + ( + 96 ) * 68 + - 85 ) - + 54 + - 43 - + SUM( - 5 ) DIV + 62
----
-70

skipif mysql # not compatible
query I rowsort label-899
SELECT + + 28 + NULLIF ( - COUNT ( * ), - - 48 * + ( + 96 ) * 68 + - 85 ) - + 54 + - 43 - + SUM ( - 5 ) / + 62
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL 35 - - 8 + + - MAX( + 38 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL 35 - - 8 + + - MAX ( + 38 ) AS col0
----
5

query I rowsort
SELECT - 58 + - 5 * - 30 AS col1
----
92

query II rowsort
SELECT ALL 29 * - 63 AS col1, - 98 + + 45
----
-1827
-53

query I rowsort
SELECT - NULLIF ( 18, - 24 )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-904
SELECT DISTINCT 28 * + + 1 AS col2, + MIN( + 28 )
----
28
28

skipif mysql # not compatible
query II rowsort label-904
SELECT DISTINCT 28 * + + 1 AS col2, + MIN ( + 28 )
----
28
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT + CAST( - - COALESCE ( - 30, + 85, - 15 ) AS SIGNED ) * + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-905
SELECT + CAST ( - - COALESCE ( - 30, + 85, - 15 ) AS INTEGER ) * + COUNT ( * )
----
-30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-907
SELECT COALESCE ( - 22, COUNT( + 55 ), + ( 99 ) DIV - 98 * - + 80 + 9 ) * + - 47 + + + COALESCE ( + 71, - 21 DIV - 45 ) + 44, 23 * - 63 col0
----
1149
-1449

skipif mysql # not compatible
query II rowsort label-907
SELECT COALESCE ( - 22, COUNT ( + 55 ), + ( 99 ) / - 98 * - + 80 + 9 ) * + - 47 + + + COALESCE ( + 71, - 21 / - 45 ) + 44, 23 * - 63 col0
----
1149
-1449

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

skipif mysql # not compatible
query I rowsort label-908
SELECT + 21 * + COUNT ( DISTINCT + - 93 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT - 27 + - SUM( ALL - 16 ) - + 56
----
-67

skipif mysql # not compatible
query I rowsort label-909
SELECT - 27 + - SUM ( ALL - 16 ) - + 56
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-910
SELECT DISTINCT 50 + 1 - - CASE 72 WHEN + COUNT( * ) - + 2 THEN - 76 ELSE - COUNT( * ) END + - 50 * - CAST( COALESCE ( - COUNT( * ), CASE + COUNT( * ) WHEN + 60 THEN - + 42 END + + 98 + 38 * - CAST( NULL AS DECIMAL ) - - 1, + 43 + - 12 * 72 + + 27 / + 86 * MAX( + 35 ) ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT 50 + 1 - - CASE 72 WHEN + COUNT ( * ) - + 2 THEN - 76 ELSE - COUNT ( * ) END + - 50 * - CAST ( COALESCE ( - COUNT ( * ), CASE + COUNT ( * ) WHEN + 60 THEN - + 42 END + + 98 + 38 * - CAST ( NULL AS REAL ) - - 1, + 43 + - 12 * 72 + + 27 / + 86 * MAX ( + 35 ) ) AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT - NULLIF ( - 84, + 33 ) DIV + 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-911
SELECT - NULLIF ( - 84, + 33 ) / + 48 AS col0
----
1

query I rowsort
SELECT - 57 * - 52 * - + 13 + 55
----
-38477

onlyif mysql # aggregate syntax: 
query II rowsort label-913
SELECT ALL 31 + + 23 * + 61 col1, 1 + + CASE - 60 WHEN + COUNT( * ) + - 60 * - 91 THEN 95 END * + ( + - 12 ) * - 67 + + 33 + 68 * + + 8 + - - 25
----
1434
NULL

skipif mysql # not compatible
query II rowsort label-913
SELECT ALL 31 + + 23 * + 61 col1, 1 + + CASE - 60 WHEN + COUNT ( * ) + - 60 * - 91 THEN 95 END * + ( + - 12 ) * - 67 + + 33 + 68 * + + 8 + - - 25
----
1434
NULL

query I rowsort
SELECT ALL - + 87 + 32 - - - 99 - - 42 AS col1
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT + 84 DIV + + 61
----
1

skipif mysql # not compatible
query I rowsort label-915
SELECT + 84 / + + 61
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT ALL - 69 + + CAST( + 95 AS SIGNED ) col1
----
26

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL - 69 + + CAST ( + 95 AS INTEGER ) col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT + 97 * COUNT( * ) * COUNT( * ) + CASE - SUM( + 65 ) WHEN - 79 * 93 * - 83 THEN 92 + - 14 * + 94 + + 27 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-917
SELECT + 97 * COUNT ( * ) * COUNT ( * ) + CASE - SUM ( + 65 ) WHEN - 79 * 93 * - 83 THEN 92 + - 14 * + 94 + + 27 END col1
----
NULL

query I rowsort
SELECT ( + ( + - 89 ) ) - 65
----
-154

query I rowsort
SELECT + 50 + 80
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT COUNT( * ) + - - 81 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-920
SELECT COUNT ( * ) + - - 81 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-921
SELECT ALL + 28 + + + 55 + CASE 18 WHEN + COALESCE ( + 75, + ( - 8 ) ) THEN - + SUM( ALL - + 13 ) WHEN - + MIN( DISTINCT - 61 ) THEN - - CAST( + + 81 AS DECIMAL ) ELSE - 58 / - - 7 + MIN( DISTINCT - NULLIF ( CAST( NULL AS SIGNED ), 97 ) ) END * + - 31 + - - AVG ( DISTINCT 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL + 28 + + + 55 + CASE 18 WHEN + COALESCE ( + 75, + ( - 8 ) ) THEN - + SUM ( ALL - + 13 ) WHEN - + MIN ( DISTINCT - 61 ) THEN - - CAST ( + + 81 AS REAL ) ELSE - 58 / - - 7 + MIN ( DISTINCT - NULLIF ( CAST ( NULL AS INTEGER ), 97 ) ) END * + - 31 + - - AVG ( DISTINCT 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT ALL - CASE - 49 WHEN NULLIF ( CASE - ( - 11 ) WHEN - + 83 THEN - 36 END, - COUNT( * ) * + 24 ) + 53 THEN + 71 + + 30 WHEN 25 / - 79 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL - CASE - 49 WHEN NULLIF ( CASE - ( - 11 ) WHEN - + 83 THEN - 36 END, - COUNT ( * ) * + 24 ) + 53 THEN + 71 + + 30 WHEN 25 / - 79 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT DISTINCT - COALESCE ( - 45, - 62 + - 94 * - COUNT( * ) ) - + 73
----
-28

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT - COALESCE ( - 45, - 62 + - 94 * - COUNT ( * ) ) - + 73
----
-28

query I rowsort
SELECT ALL - 62 * - + 19 - - - 47 AS col2
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT + ( + - MAX( ALL - 20 ) ) + + - 84 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-925
SELECT + ( + - MAX ( ALL - 20 ) ) + + - 84 AS col0
----
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-926
SELECT ALL + - CAST( NULL AS DECIMAL ) - + 30 + - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL + - CAST ( NULL AS REAL ) - + 30 + - 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-927
SELECT DISTINCT - - COUNT( * ) * + 39, + 23 - - 51 AS col0
----
39
74

skipif mysql # not compatible
query II rowsort label-927
SELECT DISTINCT - - COUNT ( * ) * + 39, + 23 - - 51 AS col0
----
39
74

query I rowsort
SELECT 33 + - 20 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-929
SELECT 68 * + CASE + CAST( NULL AS SIGNED ) WHEN + CASE 62 WHEN + 93 THEN + 54 ELSE NULL END * + COUNT( * ) THEN - - 76 WHEN 32 / + + COUNT( * ) + - 85 + + ( + 84 ) + - 36 * + - 0 THEN 22 * - + 81 * - 33 ELSE ( + 66 ) END * - 64 * - COUNT( * ) AS col2, + 41 * - 91 AS col0
----
287232
-3731

skipif mysql # not compatible
query II rowsort label-929
SELECT 68 * + CASE + CAST ( NULL AS INTEGER ) WHEN + CASE 62 WHEN + 93 THEN + 54 ELSE NULL END * + COUNT ( * ) THEN - - 76 WHEN 32 / + + COUNT ( * ) + - 85 + + ( + 84 ) + - 36 * + - 0 THEN 22 * - + 81 * - 33 ELSE ( + 66 ) END * - 64 * - COUNT ( * ) AS col2, + 41 * - 91 AS col0
----
287232
-3731

query I rowsort
SELECT ALL - 79 * + 80 AS col2
----
-6320

query II rowsort
SELECT - 14 AS col0, - 19 + + 51 + - 51
----
-14
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-932
SELECT 87 - + - 94 DIV 63 AS col1, + CASE COUNT( * ) WHEN + + 50 + 19 * - 54 THEN NULL ELSE 45 + - 14 END
----
88
31

skipif mysql # not compatible
query II rowsort label-932
SELECT 87 - + - 94 / 63 AS col1, + CASE COUNT ( * ) WHEN + + 50 + 19 * - 54 THEN NULL ELSE 45 + - 14 END
----
88
31

query II rowsort
SELECT ALL 20, + 61 AS col1
----
20
61

query I rowsort
SELECT 58 * - 39
----
-2262

query II rowsort
SELECT ALL 22 col1, ( + 34 ) + + 76
----
22
110

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-936
SELECT SUM( ALL 56 ) * + + CAST( NULL AS DECIMAL ) + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT SUM ( ALL 56 ) * + + CAST ( NULL AS REAL ) + 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT 77 + 67 * + SUM( DISTINCT + 59 )
----
4030

skipif mysql # not compatible
query I rowsort label-937
SELECT 77 + 67 * + SUM ( DISTINCT + 59 )
----
4030

query I rowsort
SELECT ALL 51 * - 59
----
-3009

query I rowsort
SELECT 84 * + - 27
----
-2268

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-940
SELECT DISTINCT - 35 DIV - ( - COUNT( * ) ) AS col1, - 11
----
-35
-11

skipif mysql # not compatible
query II rowsort label-940
SELECT DISTINCT - 35 / - ( - COUNT ( * ) ) AS col1, - 11
----
-35
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT + 12 DIV - + 85 + + 54 + + 51
----
105

skipif mysql # not compatible
query I rowsort label-941
SELECT + 12 / - + 85 + + 54 + + 51
----
105

query I rowsort
SELECT 73 + 69 AS col0
----
142

query II rowsort
SELECT 79 AS col2, 12
----
79
12

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT 18 * COUNT( * ) * - + 15 * + - COUNT( * )
----
270

skipif mysql # not compatible
query I rowsort label-944
SELECT 18 * COUNT ( * ) * - + 15 * + - COUNT ( * )
----
270

query II rowsort
SELECT ALL - 57 AS col0, - 75
----
-57
-75

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-947
SELECT 79 * SUM( ALL - - 54 ) + 10 + + 78 DIV + 37 + + 41
----
4319

skipif mysql # not compatible
query I rowsort label-947
SELECT 79 * SUM ( ALL - - 54 ) + 10 + + 78 / + 37 + + 41
----
4319

query I rowsort
SELECT ALL - 73 + - 5 col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-949
SELECT CASE - + 81 WHEN + + 50 / 49 THEN - 42 - - 85 WHEN 21 THEN NULL END + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT CASE - + 81 WHEN + + 50 / 49 THEN - 42 - - 85 WHEN 21 THEN NULL END + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 41 - NULLIF ( + 15, - 24 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-951
SELECT 44 + - ( - 87 ) col2, + COUNT( * ) * + - 5 - + + 68 AS col2
----
131
-73

skipif mysql # not compatible
query II rowsort label-951
SELECT 44 + - ( - 87 ) col2, + COUNT ( * ) * + - 5 - + + 68 AS col2
----
131
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT - COUNT( * ) + + NULLIF ( - + 23, - - MIN( ALL + 82 ) + + - 55 + - CASE + 28 WHEN + - 34 THEN + 13 * - COUNT( * ) * + - NULLIF ( - 13, 87 ) + + COUNT( * ) WHEN + ( - 20 ) THEN NULL END + 47 + 86 * + ( 61 ) / 36 + + 54 ) * - COUNT( * ) col2
----
22

skipif mysql # not compatible
query I rowsort label-952
SELECT - COUNT ( * ) + + NULLIF ( - + 23, - - MIN ( ALL + 82 ) + + - 55 + - CASE + 28 WHEN + - 34 THEN + 13 * - COUNT ( * ) * + - NULLIF ( - 13, 87 ) + + COUNT ( * ) WHEN + ( - 20 ) THEN NULL END + 47 + 86 * + ( 61 ) / 36 + + 54 ) * - COUNT ( * ) col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT ALL + 46 DIV 99 + 69
----
69

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL + 46 / 99 + 69
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-954
SELECT + 71 + + COUNT( * ) - + CAST( + + 91 AS SIGNED ) * + 21 + - + 2 col0
----
-1841

skipif mysql # not compatible
query I rowsort label-954
SELECT + 71 + + COUNT ( * ) - + CAST ( + + 91 AS INTEGER ) * + 21 + - + 2 col0
----
-1841

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

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

query I rowsort
SELECT 43 * + 87 * 45
----
168345

query I rowsort
SELECT 23 + - 69 + - 24
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT NULLIF ( + - 6, + NULLIF ( + - MAX( DISTINCT 34 ), + AVG ( ALL + ( - 56 ) ) + + 20 ) + + 69 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-958
SELECT NULLIF ( + - 6, + NULLIF ( + - MAX ( DISTINCT 34 ), + AVG ( ALL + ( - 56 ) ) + + 20 ) + + 69 ) AS col1
----
-6

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

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

query I rowsort
SELECT 74 + + 47
----
121

query I rowsort
SELECT 84 + + 32 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT CASE + + 73 WHEN 59 * + + 15 * 64 THEN 96 / + SUM( ALL + 93 ) + + 61 + + 44 * + + 2 WHEN 11 + + NULLIF ( - + MAX( DISTINCT - - 48 ), + 58 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT CASE + + 73 WHEN 59 * + + 15 * 64 THEN 96 / + SUM ( ALL + 93 ) + + 61 + + 44 * + + 2 WHEN 11 + + NULLIF ( - + MAX ( DISTINCT - - 48 ), + 58 ) THEN NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL - 49 + COUNT ( * ) AS col0
----
-48

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

skipif mysql # not compatible
query I rowsort label-964
SELECT 64 * - COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT - COUNT( * ) + - - 24
----
23

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT - COUNT ( * ) + - - 24
----
23

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

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

query I rowsort
SELECT + 3 + - 30 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT - COUNT( * ) * + + NULLIF ( - + 41, 18 )
----
41

skipif mysql # not compatible
query I rowsort label-968
SELECT - COUNT ( * ) * + + NULLIF ( - + 41, 18 )
----
41

query I rowsort
SELECT DISTINCT 39 * 58 + - + 88 AS col1
----
2174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-970
SELECT ALL + CAST( + 25 AS SIGNED ) * - 8 + - 94 * MAX( + + 17 )
----
-1798

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL + CAST ( + 25 AS INTEGER ) * - 8 + - 94 * MAX ( + + 17 )
----
-1798

query I rowsort
SELECT ALL 14 * - - 91 + + + 72 AS col0
----
1346

query I rowsort
SELECT ALL + - 3 * + - 52 AS col0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT ( + ( + MAX( DISTINCT + 82 ) ) ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-973
SELECT ( + ( + MAX ( DISTINCT + 82 ) ) ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-974
SELECT DISTINCT + - 8 * + 51 + + 70 - + COUNT( * ) AS col2, + 65 AS col1
----
-339
65

skipif mysql # not compatible
query II rowsort label-974
SELECT DISTINCT + - 8 * + 51 + + 70 - + COUNT ( * ) AS col2, + 65 AS col1
----
-339
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-975
SELECT ALL - + 42 * - CAST( + + 70 AS SIGNED ) - - COUNT( * ) - + + 91 AS col2
----
2850

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - + 42 * - CAST ( + + 70 AS INTEGER ) - - COUNT ( * ) - + + 91 AS col2
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT + - CASE - COUNT( * ) WHEN 81 THEN + - COUNT( * ) * - 86 ELSE + 7 * + + 91 END
----
-637

skipif mysql # not compatible
query I rowsort label-976
SELECT + - CASE - COUNT ( * ) WHEN 81 THEN + - COUNT ( * ) * - 86 ELSE + 7 * + + 91 END
----
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT MIN( - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-977
SELECT MIN ( - 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT DISTINCT - COUNT( * ) * + - 89 * - - ( - 4 ) - + 63 * - + 26 * COUNT( 30 ) AS col2
----
1282

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT - COUNT ( * ) * + - 89 * - - ( - 4 ) - + 63 * - + 26 * COUNT ( 30 ) AS col2
----
1282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-979
SELECT NULLIF ( - 6, - CAST( + + ( - 55 ) AS SIGNED ) + - 23 + - 77 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-979
SELECT NULLIF ( - 6, - CAST ( + + ( - 55 ) AS INTEGER ) + - 23 + - 77 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT 46 * 30 - COUNT( * ) AS col2
----
1379

skipif mysql # not compatible
query I rowsort label-980
SELECT 46 * 30 - COUNT ( * ) AS col2
----
1379

onlyif mysql # aggregate syntax: 
query II rowsort label-981
SELECT + COUNT( * ) - - - 32, + 68 col1
----
-31
68

skipif mysql # not compatible
query II rowsort label-981
SELECT + COUNT ( * ) - - - 32, + 68 col1
----
-31
68

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT - COALESCE ( 96, + 27 * - COUNT( * ) + - + 56 - - + MIN( ALL - 67 ) - - 51 ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-982
SELECT - COALESCE ( 96, + 27 * - COUNT ( * ) + - + 56 - - + MIN ( ALL - 67 ) - - 51 ) col1
----
-96

query I rowsort
SELECT + - 74 + - - CASE - 69 WHEN 59 + + 7 THEN - + 86 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-984
SELECT - - MAX( + 15 ), 73 AS col2
----
15
73

skipif mysql # not compatible
query II rowsort label-984
SELECT - - MAX ( + 15 ), 73 AS col2
----
15
73

query I rowsort
SELECT + CASE ( 18 ) WHEN + 99 THEN - - 82 END * + ( 3 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 5 * + 50 AS col2
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT - CASE - 16 WHEN - COUNT( * ) THEN NULL WHEN - 77 THEN 13 * ( - 11 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT - CASE - 16 WHEN - COUNT ( * ) THEN NULL WHEN - 77 THEN 13 * ( - 11 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT ALL 40 + + 36 + + + NULLIF ( - 41, + - MIN( - 56 ) * + - 47 + - + COUNT( * ) + - 14 + NULLIF ( - ( - 65 ), - COUNT( * ) * - + ( - 86 ) - - - 50 + + 65 * - 14 * 65 ) * CASE 50 WHEN - 99 * + 8 + - 76 THEN NULL ELSE - 87 / + 1 * - 72 END )
----
35

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL 40 + + 36 + + + NULLIF ( - 41, + - MIN ( - 56 ) * + - 47 + - + COUNT ( * ) + - 14 + NULLIF ( - ( - 65 ), - COUNT ( * ) * - + ( - 86 ) - - - 50 + + 65 * - 14 * 65 ) * CASE 50 WHEN - 99 * + 8 + - 76 THEN NULL ELSE - 87 / + 1 * - 72 END )
----
35

query I rowsort
SELECT + 22 * - 80 * - 10
----
17600

query I rowsort
SELECT - 27 * + 94 AS col1
----
-2538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-991
SELECT DISTINCT - 45 + - - ( + - 20 ) * - NULLIF ( - - CAST( - + 2 AS SIGNED ), + + 83 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT - 45 + - - ( + - 20 ) * - NULLIF ( - - CAST ( - + 2 AS INTEGER ), + + 83 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT ALL MIN( DISTINCT - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL MIN ( DISTINCT - 77 )
----
-77

query II rowsort
SELECT 88 col1, 61 AS col0
----
88
61

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT DISTINCT CASE - 28 WHEN + 12 THEN - 29 + + + 56 * + + 18 WHEN - + 88 + - 23 THEN NULL WHEN ( - 72 ) + + CASE + ( + COUNT( * ) ) WHEN 22 THEN NULL WHEN MIN( DISTINCT - 10 ) THEN NULL ELSE + 1 END THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT CASE - 28 WHEN + 12 THEN - 29 + + + 56 * + + 18 WHEN - + 88 + - 23 THEN NULL WHEN ( - 72 ) + + CASE + ( + COUNT ( * ) ) WHEN 22 THEN NULL WHEN MIN ( DISTINCT - 10 ) THEN NULL ELSE + 1 END THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT DISTINCT 97 + + - MAX( ALL - ( + 38 ) ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT 97 + + - MAX ( ALL - ( + 38 ) ) AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT DISTINCT - 0 + + 65 + + + COUNT( * ) col1
----
66

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT - 0 + + 65 + + + COUNT ( * ) col1
----
66

query I rowsort
SELECT DISTINCT - ( - 93 ) + + 65 AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT SUM( DISTINCT - 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-998
SELECT SUM ( DISTINCT - 71 ) AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-999
SELECT - + 2 + + 82 + - + 16 * CAST( NULL AS SIGNED ) * + 63 + - - 27 + + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT - + 2 + + 82 + - + 16 * CAST ( NULL AS INTEGER ) * + 63 + - - 27 + + 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT - 80 * + - 56 + + + 99 + - - NULLIF ( - 32, 12 * SUM( ALL + + 87 ) ) + - SUM( - 40 ) AS col1
----
4587

skipif mysql # not compatible
query I rowsort label-1000
SELECT - 80 * + - 56 + + + 99 + - - NULLIF ( - 32, 12 * SUM ( ALL + + 87 ) ) + - SUM ( - 40 ) AS col1
----
4587

query II rowsort
SELECT - - 52 * + 63 - - 13 * + COALESCE ( - 8, 4 ), 10 + - 82 col2
----
3172
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1002
SELECT + SUM( ALL - + 42 ) DIV 20 + 63
----
61

skipif mysql # not compatible
query I rowsort label-1002
SELECT + SUM ( ALL - + 42 ) / 20 + 63
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT - + 69 DIV + ( 41 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1003
SELECT - + 69 / + ( 41 ) col1
----
-1

query I rowsort
SELECT - 4 * + 55 * + 14 + - + 81
----
-3161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1005
SELECT + - ( 80 ) - - + 51 + CASE 12 WHEN - MAX( + 93 ) THEN + CAST( + - 91 AS SIGNED ) + - COALESCE ( - 15, - COUNT( ALL - + ( - 19 ) ) + 39 ) * 76 * 52 WHEN - - 26 THEN NULL ELSE 0 END AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1005
SELECT + - ( 80 ) - - + 51 + CASE 12 WHEN - MAX ( + 93 ) THEN + CAST ( + - 91 AS INTEGER ) + - COALESCE ( - 15, - COUNT ( ALL - + ( - 19 ) ) + 39 ) * 76 * 52 WHEN - - 26 THEN NULL ELSE 0 END AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1006
SELECT - + 25 + + CASE - 59 WHEN + CAST( + COUNT( * ) AS DECIMAL ) + - 93 + - 48 + + - 17 THEN NULL WHEN + 69 THEN + 49 * - 35 + - - 70 END + - - ( + 61 ) - - 54 * - 4 / + - 50 * 61 / - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1006
SELECT - + 25 + + CASE - 59 WHEN + CAST ( + COUNT ( * ) AS REAL ) + - 93 + - 48 + + - 17 THEN NULL WHEN + 69 THEN + 49 * - 35 + - - 70 END + - - ( + 61 ) - - 54 * - 4 / + - 50 * 61 / - 16
----
NULL

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

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

query I rowsort
SELECT - - 50 * + 63 AS col1
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT + - 45 + - COUNT( * ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1009
SELECT + - 45 + - COUNT ( * ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-1010
SELECT ALL + 8 * - 0 + 57 + - - 67 * - COUNT( * ) AS col0, - 85 * - 34
----
-10
2890

skipif mysql # not compatible
query II rowsort label-1010
SELECT ALL + 8 * - 0 + 57 + - - 67 * - COUNT ( * ) AS col0, - 85 * - 34
----
-10
2890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1011
SELECT + COUNT( * ) * 23 + + 38 + + + 41 * + ( - 28 ) * + 24 DIV - COUNT( * ) + 73 + ( COUNT( * ) ) AS col2
----
27687

skipif mysql # not compatible
query I rowsort label-1011
SELECT + COUNT ( * ) * 23 + + 38 + + + 41 * + ( - 28 ) * + 24 / - COUNT ( * ) + 73 + ( COUNT ( * ) ) AS col2
----
27687

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT ALL COUNT( 91 ) * - 21 + + 46 + + - 45 + - 75 + - 13 * 49
----
-732

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL COUNT ( 91 ) * - 21 + + 46 + + - 45 + - 75 + - 13 * 49
----
-732

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT - 46 + 2 - + 52 + 90 / - CASE - 0 WHEN + 71 THEN + + 0 * - 0 WHEN - - MIN( 62 ) THEN + 86 END * + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1013
SELECT - 46 + 2 - + 52 + 90 / - CASE - 0 WHEN + 71 THEN + + 0 * - 0 WHEN - - MIN ( 62 ) THEN + 86 END * + - 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1014
SELECT MAX( ALL + 60 ) + - NULLIF ( - 61, 90 * 20 ) + - MIN( ALL - 53 ) - + + 19 + - 98 + + ( + 70 ) + + 36 * + CAST( + CASE - - ( + 51 ) WHEN - 91 + COUNT( * ) THEN 9 END AS DECIMAL ) * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT MAX ( ALL + 60 ) + - NULLIF ( - 61, 90 * 20 ) + - MIN ( ALL - 53 ) - + + 19 + - 98 + + ( + 70 ) + + 36 * + CAST ( + CASE - - ( + 51 ) WHEN - 91 + COUNT ( * ) THEN 9 END AS REAL ) * 82
----
NULL

query I rowsort
SELECT ( - + 2 ) * 13
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT 12 + + 3 DIV - 55
----
12

skipif mysql # not compatible
query I rowsort label-1016
SELECT 12 + + 3 / - 55
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT ALL CASE COUNT( * ) WHEN - + 50 THEN - + 14 WHEN + + 52 + - 48 THEN 84 END * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL CASE COUNT ( * ) WHEN - + 50 THEN - + 14 WHEN + + 52 + - 48 THEN 84 END * + 90
----
NULL

query I rowsort
SELECT ( + 83 ) + + 10
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1020
SELECT CAST( NULL AS SIGNED ) / 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1020
SELECT CAST ( NULL AS INTEGER ) / 20 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1021
SELECT DISTINCT 91 * CAST( NULL AS SIGNED ) / + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT 91 * CAST ( NULL AS INTEGER ) / + 58 AS col2
----
NULL

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

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

query I rowsort
SELECT 2 - - - 99
----
-97

query I rowsort
SELECT 37 * + 31
----
1147

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

skipif mysql # not compatible
query II rowsort label-1025
SELECT - 55, COUNT ( * ) AS col2
----
-55
1

query I rowsort
SELECT - ( + 30 ) + - 64 col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT 39 + COUNT( * ) * 72
----
111

skipif mysql # not compatible
query I rowsort label-1027
SELECT 39 + COUNT ( * ) * 72
----
111

query II rowsort
SELECT DISTINCT - 70 AS col2, 10
----
-70
10

query II rowsort
SELECT ( 91 ) AS col0, + ( - 99 ) + 48 AS col2
----
91
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT ALL + - ( - - 18 ) * + + CAST( + 77 AS SIGNED ) * - ( 3 ) * ( - 27 )
----
-112266

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL + - ( - - 18 ) * + + CAST ( + 77 AS INTEGER ) * - ( 3 ) * ( - 27 )
----
-112266

query II rowsort
SELECT ALL - - 81, 24 AS col1
----
81
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1032
SELECT + COALESCE ( - 19, COALESCE ( - 35, 37 ) DIV - 6, + 4 )
----
-19

skipif mysql # not compatible
query I rowsort label-1032
SELECT + COALESCE ( - 19, COALESCE ( - 35, 37 ) / - 6, + 4 )
----
-19

query I rowsort
SELECT ALL + + 31 * - 90
----
-2790

query I rowsort
SELECT DISTINCT - COALESCE ( 64, - - 15 * 29 + - + 31 )
----
-64

query I rowsort
SELECT ALL - 94 + - 31 * + + 82 * + 55 col0
----
-139904

query II rowsort
SELECT + 47 AS col1, 84
----
47
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1037
SELECT DISTINCT - - 89 + COALESCE ( + 26, 72 DIV - 40 - + COUNT( 39 ) ) + - - 12 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT - - 89 + COALESCE ( + 26, 72 / - 40 - + COUNT ( 39 ) ) + - - 12 AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT DISTINCT COUNT( * ) + MAX( ALL + + 87 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT COUNT ( * ) + MAX ( ALL + + 87 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT ALL + 62 + SUM( + + 90 ) * + 7
----
692

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL + 62 + SUM ( + + 90 ) * + 7
----
692

query I rowsort
SELECT ALL - 90 * - 4 AS col2
----
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1041
SELECT 77 + 22 + AVG ( + ( + 70 ) ) / - 45 + 40 + - + CAST( NULL AS SIGNED ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1041
SELECT 77 + 22 + AVG ( + ( + 70 ) ) / - 45 + 40 + - + CAST ( NULL AS INTEGER ) * 27
----
NULL

query I rowsort
SELECT ALL - 99 + 90
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1043
SELECT COUNT( * ) - + CAST( 24 AS SIGNED ), + 24 AS col0
----
-23
24

skipif mysql # not compatible
query II rowsort label-1043
SELECT COUNT ( * ) - + CAST ( 24 AS INTEGER ), + 24 AS col0
----
-23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT 12 + + + CAST( 23 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-1044
SELECT 12 + + + CAST ( 23 AS INTEGER )
----
35

query I rowsort
SELECT ( - 70 ) * 79 - + + 16 * 83 * 74
----
-103802

query I rowsort
SELECT 2 + + 83 + - 45 AS col2
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT DISTINCT 43 * 49 * + - COUNT( * ) AS col1
----
-2107

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT 43 * 49 * + - COUNT ( * ) AS col1
----
-2107

query I rowsort
SELECT ALL + 30 * + 7
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1050
SELECT + CAST( NULL AS SIGNED ) * - - 82 * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1050
SELECT + CAST ( NULL AS INTEGER ) * - - 82 * - 54
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 13, + 96 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT - 96 * - 90 * + + 20 - 22 + + 14 - - ( - COALESCE ( + + COUNT( * ), - 36 ) ) + - ( - 15 ) - + COUNT( ALL + 2 ) + - 54 + - 52 * 71 * + 51 + - - 23 - + 10
----
-15528

skipif mysql # not compatible
query I rowsort label-1052
SELECT - 96 * - 90 * + + 20 - 22 + + 14 - - ( - COALESCE ( + + COUNT ( * ), - 36 ) ) + - ( - 15 ) - + COUNT ( ALL + 2 ) + - 54 + - 52 * 71 * + 51 + - - 23 - + 10
----
-15528

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

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

query I rowsort
SELECT 13 + 88 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT + MIN( DISTINCT 48 )
----
48

skipif mysql # not compatible
query I rowsort label-1055
SELECT + MIN ( DISTINCT 48 )
----
48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1057
SELECT ALL NULLIF ( 79, - + CAST( 3 AS SIGNED ) ) * 66 + + - 25 - + + 11 * 12 AS col1
----
5057

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL NULLIF ( 79, - + CAST ( 3 AS INTEGER ) ) * 66 + + - 25 - + + 11 * 12 AS col1
----
5057

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT + COALESCE ( + 97, - 14, + - 95 ) + + - MAX( ALL - ( - 28 ) )
----
69

skipif mysql # not compatible
query I rowsort label-1058
SELECT + COALESCE ( + 97, - 14, + - 95 ) + + - MAX ( ALL - ( - 28 ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL - COALESCE ( + + 10, - 31, + COALESCE ( - - 1, - ( SUM( DISTINCT - 38 ) ) ) * - COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL - COALESCE ( + + 10, - 31, + COALESCE ( - - 1, - ( SUM ( DISTINCT - 38 ) ) ) * - COUNT ( * ) )
----
-10

query I rowsort
SELECT ALL + - 76 * + + 76 + + + 80
----
-5696

query I rowsort
SELECT + 20 * + 58 + + 80 AS col0
----
1240

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT ALL + 6 * COUNT( * ) * ( - 30 )
----
-180

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL + 6 * COUNT ( * ) * ( - 30 )
----
-180

query I rowsort
SELECT DISTINCT 87 * + 98 + - 40 AS col1
----
8486

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT ALL - 71 * 8 + - 1 DIV + 29 AS col2
----
-568

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL - 71 * 8 + - 1 / + 29 AS col2
----
-568

query I rowsort
SELECT + 93 * + - ( 12 ) + - 15 + + 5 + - 38 * - 3 * + 35 AS col2
----
2864

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1067
SELECT - 30 * - 88 + 11 AS col1, - COUNT( * ) col0
----
2651
-1

skipif mysql # not compatible
query II rowsort label-1067
SELECT - 30 * - 88 + 11 AS col1, - COUNT ( * ) col0
----
2651
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1068
SELECT + 81 DIV - + 19
----
-4

skipif mysql # not compatible
query I rowsort label-1068
SELECT + 81 / - + 19
----
-4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1070
SELECT ALL + COUNT( * ) - + COUNT( * ) + + - 36 DIV + - 81 + - + COUNT( * ) DIV - + 28 * 46 * - + 33 * 30 - SUM( - + 11 ) * - COUNT( DISTINCT - ( + 24 ) ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL + COUNT ( * ) - + COUNT ( * ) + + - 36 / + - 81 + - + COUNT ( * ) / - + 28 * 46 * - + 33 * 30 - SUM ( - + 11 ) * - COUNT ( DISTINCT - ( + 24 ) ) col0
----
-11

query I rowsort
SELECT ALL 39 * + 38
----
1482

query I rowsort
SELECT 31 * + 80 + + 44
----
2524

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

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1074
SELECT ALL - 68 DIV + COUNT( * ) * - COUNT( * ) col0
----
68

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL - 68 / + COUNT ( * ) * - COUNT ( * ) col0
----
68

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

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

query I rowsort
SELECT - 21 * - - ( + ( 13 ) )
----
-273

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

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

query I rowsort
SELECT - 9 + + - 33 + + 88 + 88
----
134

query I rowsort
SELECT + 73 + - + 82 AS col1
----
-9

query I rowsort
SELECT - 61 * + 12 * + 7
----
-5124

query II rowsort
SELECT DISTINCT 96, 58 - 11 AS col1
----
96
47

query I rowsort
SELECT DISTINCT - ( - 22 ) * + 23 * - 72 col2
----
-36432

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT ALL - - ( - COUNT( * ) ) * - ( 84 ) - COUNT( * ) + 96 * - 39 AS col1
----
-3661

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL - - ( - COUNT ( * ) ) * - ( 84 ) - COUNT ( * ) + 96 * - 39 AS col1
----
-3661

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT + 19 + 49 * 4 + - COUNT( * ) + + 76 - + + CASE 75 WHEN + 15 THEN + - 2 - + 31 ELSE + 80 * - - 50 END AS col1
----
-3710

skipif mysql # not compatible
query I rowsort label-1084
SELECT + 19 + 49 * 4 + - COUNT ( * ) + + 76 - + + CASE 75 WHEN + 15 THEN + - 2 - + 31 ELSE + 80 * - - 50 END AS col1
----
-3710

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT DISTINCT + COUNT( ALL + - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT + COUNT ( ALL + - 60 )
----
1

query II rowsort
SELECT 46 AS col2, + 32 + - 75 AS col2
----
46
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT - - ( + COUNT( + - 36 ) ) * - 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1087
SELECT - - ( + COUNT ( + - 36 ) ) * - 43 AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1088
SELECT + - 7 + - NULLIF ( - ( - - 41 ), + 85 * - CAST( - COUNT( * ) AS SIGNED ) )
----
34

skipif mysql # not compatible
query I rowsort label-1088
SELECT + - 7 + - NULLIF ( - ( - - 41 ), + 85 * - CAST ( - COUNT ( * ) AS INTEGER ) )
----
34

query II rowsort
SELECT + 75, - 55 AS col1
----
75
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1090
SELECT ALL + 27 + + MAX( DISTINCT - 73 ) + - 94 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL + 27 + + MAX ( DISTINCT - 73 ) + - 94 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT ALL + + 98 DIV - 20 + - 77
----
-81

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL + + 98 / - 20 + - 77
----
-81

query I rowsort
SELECT DISTINCT - 8 * 67
----
-536

query II rowsort
SELECT + 59 AS col0, + 23 AS col1
----
59
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1094
SELECT - ( 86 ) - - 53 - - CASE + 7 WHEN + AVG ( + 96 ) + + 63 + + NULLIF ( - 47, + CAST( NULL AS DECIMAL ) + - COUNT( * ) ) + - NULLIF ( - CAST( - 21 AS SIGNED ), - 24 - - COUNT( * ) ) / + - 67 + + MIN( ALL 51 ) * + NULLIF ( + 85, - 31 - + - COUNT( * ) ) THEN - CAST( + 5 AS SIGNED ) ELSE NULL END AS col2, + 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-1094
SELECT - ( 86 ) - - 53 - - CASE + 7 WHEN + AVG ( + 96 ) + + 63 + + NULLIF ( - 47, + CAST ( NULL AS REAL ) + - COUNT ( * ) ) + - NULLIF ( - CAST ( - 21 AS INTEGER ), - 24 - - COUNT ( * ) ) / + - 67 + + MIN ( ALL 51 ) * + NULLIF ( + 85, - 31 - + - COUNT ( * ) ) THEN - CAST ( + 5 AS INTEGER ) ELSE NULL END AS col2, + 59
----
NULL
59

query I rowsort
SELECT + + 80 * - 52
----
-4160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1096
SELECT + 87 DIV + NULLIF ( + - 14, - 48 + + + COUNT( * ) * - 82 * + 57 )
----
-6

skipif mysql # not compatible
query I rowsort label-1096
SELECT + 87 / + NULLIF ( + - 14, - 48 + + + COUNT ( * ) * - 82 * + 57 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1097
SELECT + CASE - COALESCE ( + 59, 87 * - - 4 + - CASE + + AVG ( - 72 ) WHEN - + 12 * + ( - 41 ) + + COUNT( * ) THEN + - 57 / - - 5 * - - ( - + 27 ) / + + 85 * CASE - 81 WHEN + CAST( NULL AS SIGNED ) * - + COUNT( * ) + - NULLIF ( CAST( NULL AS SIGNED ), 10 ) THEN - - 72 * ( + + 30 ) * COUNT( * ) WHEN CAST( NULL AS DECIMAL ) THEN - - 99 WHEN + 42 THEN 74 ELSE NULL END * + - 14 END * + 42 * + - 7, - NULLIF ( - 45, 17 / + - 60 + + 87 / + 36 ) ) WHEN - ( ( - 98 ) ) THEN + COALESCE ( + 60, 52, CASE 0 WHEN NULLIF ( - 86, 99 + + 55 * 27 ) THEN 15 END, - 41 ) WHEN + 16 THEN NULL ELSE NULL END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT + CASE - COALESCE ( + 59, 87 * - - 4 + - CASE + + AVG ( - 72 ) WHEN - + 12 * + ( - 41 ) + + COUNT ( * ) THEN + - 57 / - - 5 * - - ( - + 27 ) / + + 85 * CASE - 81 WHEN + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + - NULLIF ( CAST ( NULL AS INTEGER ), 10 ) THEN - - 72 * ( + + 30 ) * COUNT ( * ) WHEN CAST ( NULL AS REAL ) THEN - - 99 WHEN + 42 THEN 74 ELSE NULL END * + - 14 END * + 42 * + - 7, - NULLIF ( - 45, 17 / + - 60 + + 87 / + 36 ) ) WHEN - ( ( - 98 ) ) THEN + COALESCE ( + 60, 52, CASE 0 WHEN NULLIF ( - 86, 99 + + 55 * 27 ) THEN 15 END, - 41 ) WHEN + 16 THEN NULL ELSE NULL END * 85
----
NULL

query II rowsort
SELECT ( - 95 ) AS col2, 67 + - 30 AS col1
----
-95
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1099
SELECT ALL + CAST( 46 AS SIGNED ) * + 97 - COUNT( * ) AS col0, - 62
----
4461
-62

skipif mysql # not compatible
query II rowsort label-1099
SELECT ALL + CAST ( 46 AS INTEGER ) * + 97 - COUNT ( * ) AS col0, - 62
----
4461
-62

query I rowsort
SELECT + 75 * + 48 col2
----
3600

query I rowsort
SELECT + 45 * + 4 * - 28 AS col1
----
-5040

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

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

query I rowsort
SELECT + ( - + COALESCE ( - NULLIF ( - 63, + 13 ), + 87 ) ) AS col1
----
-63

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

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

query I rowsort
SELECT - 98 - + 9 AS col1
----
-107

query I rowsort
SELECT + 9 * 78
----
702

query I rowsort
SELECT 91 * - + 10 + - - 68
----
-842

query I rowsort
SELECT DISTINCT - 55 * - 36
----
1980

query I rowsort
SELECT ALL COALESCE ( + 28, 15, - 34 )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1110
SELECT DISTINCT ( - 65 ) AS col1, - MIN( + 68 ) + - + 93 + + 38 AS col1
----
-65
-123

skipif mysql # not compatible
query II rowsort label-1110
SELECT DISTINCT ( - 65 ) AS col1, - MIN ( + 68 ) + - + 93 + + 38 AS col1
----
-65
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-1111
SELECT DISTINCT SUM( + ( - + ( - 22 ) ) ), - 44 AS col1
----
22
-44

skipif mysql # not compatible
query II rowsort label-1111
SELECT DISTINCT SUM ( + ( - + ( - 22 ) ) ), - 44 AS col1
----
22
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT DISTINCT MIN( + 92 ) * + 18 AS col1
----
1656

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT MIN ( + 92 ) * + 18 AS col1
----
1656

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

query I rowsort
SELECT DISTINCT + 10 + - 31
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1115
SELECT DISTINCT + COUNT( CAST( NULL AS SIGNED ) ) / 15 * + CAST( NULL AS SIGNED ) + - 69 * - + 5 * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT + COUNT ( CAST ( NULL AS INTEGER ) ) / 15 * + CAST ( NULL AS INTEGER ) + - 69 * - + 5 * - 25
----
NULL

query I rowsort
SELECT - 61 + - + 53 * 93 AS col2
----
-4990

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1118
SELECT - + COUNT( * ) DIV 68 col2
----
0

skipif mysql # not compatible
query I rowsort label-1118
SELECT - + COUNT ( * ) / 68 col2
----
0

query I rowsort
SELECT ALL + 31 + 81 - + + 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL - 61 + + CASE WHEN ( NULL ) NOT IN ( - - COUNT( * ) ) THEN - COALESCE ( - 77, ( + - 31 ), - 0 ) * + - 8 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL - 61 + + CASE WHEN ( NULL ) NOT IN ( - - COUNT ( * ) ) THEN - COALESCE ( - 77, ( + - 31 ), - 0 ) * + - 8 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT - MIN( DISTINCT - 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1121
SELECT - MIN ( DISTINCT - 87 ) AS col1
----
87

query I rowsort
SELECT DISTINCT - 28 + - - 9
----
-19

query I rowsort
SELECT ALL + 70 + - - 71
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1124
SELECT + COUNT( ALL - 72 ) DIV + MIN( - + 43 ) + 28 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1124
SELECT + COUNT ( ALL - 72 ) / + MIN ( - + 43 ) + 28 AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1125
SELECT - 53 * MAX( DISTINCT 32 ) * - + 98 + - 78 - - 98 - + - 18 DIV 51 AS col0
----
166228

skipif mysql # not compatible
query I rowsort label-1125
SELECT - 53 * MAX ( DISTINCT 32 ) * - + 98 + - 78 - - 98 - + - 18 / 51 AS col0
----
166228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT CASE - 11 WHEN + 14 THEN NULL WHEN - COUNT( ALL 88 ) * + + CAST( + 58 AS SIGNED ) - - MIN( DISTINCT 24 ) THEN + COUNT( DISTINCT 22 ) + 56 ELSE - SUM( DISTINCT + 32 ) END AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1126
SELECT CASE - 11 WHEN + 14 THEN NULL WHEN - COUNT ( ALL 88 ) * + + CAST ( + 58 AS INTEGER ) - - MIN ( DISTINCT 24 ) THEN + COUNT ( DISTINCT 22 ) + 56 ELSE - SUM ( DISTINCT + 32 ) END AS col2
----
-32

query I rowsort
SELECT + 22 * 55 * 17 + 52
----
20622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1128
SELECT DISTINCT + SUM( DISTINCT + - 77 ) DIV 41 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT + SUM ( DISTINCT + - 77 ) / 41 AS col1
----
-1

query I rowsort
SELECT ALL NULLIF ( + 75, - 37 ) * + 9
----
675

query II rowsort
SELECT DISTINCT - 80 col0, - 69 AS col0
----
-80
-69

query I rowsort
SELECT DISTINCT + 59 * + - 7
----
-413

query I rowsort
SELECT 28 * - 21
----
-588

query I rowsort
SELECT ALL 27 * + + 51 AS col2
----
1377

query I rowsort
SELECT - ( - 52 ) * - - 22 + + 67 AS col2
----
1211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1135
SELECT COUNT( * ) * - ( CAST( NULL AS SIGNED ) ) / - 20 * + 42 * - 19 + + 59 + + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1135
SELECT COUNT ( * ) * - ( CAST ( NULL AS INTEGER ) ) / - 20 * + 42 * - 19 + + 59 + + 47 AS col0
----
NULL

query I rowsort
SELECT 18 * - + 82 AS col1
----
-1476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1137
SELECT ALL - CASE + - CAST( NULL AS SIGNED ) WHEN 68 * + 48 + 72 THEN NULL WHEN - + 4 THEN NULL WHEN + 26 + + + 46 + - 83 * 22 + + SUM( - 92 ) THEN COUNT( * ) * - + CAST( - 7 AS SIGNED ) + + + 58 END * 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL - CASE + - CAST ( NULL AS INTEGER ) WHEN 68 * + 48 + 72 THEN NULL WHEN - + 4 THEN NULL WHEN + 26 + + + 46 + - 83 * 22 + + SUM ( - 92 ) THEN COUNT ( * ) * - + CAST ( - 7 AS INTEGER ) + + + 58 END * 24 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1139
SELECT COUNT( * ) * + ( - 12 ) DIV + - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1139
SELECT COUNT ( * ) * + ( - 12 ) / + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1140
SELECT COUNT( * ) - COUNT( * ) + - 43 * + 45 + - + 0 DIV + 10
----
-1935

skipif mysql # not compatible
query I rowsort label-1140
SELECT COUNT ( * ) - COUNT ( * ) + - 43 * + 45 + - + 0 / + 10
----
-1935

query I rowsort
SELECT ALL + 51 + + - ( - 98 ) col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT - ( + 4 ) + + COUNT( + - 14 )
----
-3

skipif mysql # not compatible
query I rowsort label-1142
SELECT - ( + 4 ) + + COUNT ( + - 14 )
----
-3

query I rowsort
SELECT DISTINCT 93 + + - 48 * + 6
----
-195

query I rowsort
SELECT ALL 98 * 90 * 15
----
132300

query I rowsort
SELECT DISTINCT - 32 + - 44
----
-76

query I rowsort
SELECT DISTINCT + CASE - - 37 WHEN - - 85 THEN + AVG ( ALL 90 ) END + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT DISTINCT - 77 + 30 * COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT - 77 + 30 * COUNT ( * ) AS col0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1148
SELECT ALL + COUNT( * ) + 92 + 72 + - 44 * + 17 * 51 DIV + COUNT( * ) AS col0
----
-37983

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + COUNT ( * ) + 92 + 72 + - 44 * + 17 * 51 / + COUNT ( * ) AS col0
----
-37983

query I rowsort
SELECT - CASE - 95 WHEN 96 THEN + 2 WHEN - 37 * - - 40 + - + 18 - + - ( - 85 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1150
SELECT ALL SUM( DISTINCT ( + 54 ) ) col0, ( + 71 ) DIV + 90 + 81 + + + 17 + + 13 + + + 50 * + 45 * - + 2 * MAX( ALL - 40 ) * + 67 + + - 57
----
54
12060054

skipif mysql # not compatible
query II rowsort label-1150
SELECT ALL SUM ( DISTINCT ( + 54 ) ) col0, ( + 71 ) / + 90 + 81 + + + 17 + + 13 + + + 50 * + 45 * - + 2 * MAX ( ALL - 40 ) * + 67 + + - 57
----
54
12060054

query I rowsort
SELECT + 57 * 33
----
1881

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT - 26 + + - COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1152
SELECT - 26 + + - COUNT ( * ) AS col0
----
-27

query I rowsort
SELECT 80 * - ( + 46 )
----
-3680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1154
SELECT ALL + 75 / - CASE + COUNT( * ) WHEN + 45 THEN NULL WHEN - 73 THEN - CAST( 96 AS SIGNED ) ELSE + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL + 75 / - CASE + COUNT ( * ) WHEN + 45 THEN NULL WHEN - 73 THEN - CAST ( 96 AS INTEGER ) ELSE + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT - 40 + + 66
----
26

query I rowsort
SELECT ALL - 83 - - 82 col1
----
-1

query I rowsort
SELECT - 93 * - 19 + + - 0
----
1767

query I rowsort
SELECT 59 * - - 49
----
2891

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1159
SELECT ALL 67 DIV - NULLIF ( - - 89, + - 97 * + - 70 ) DIV + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL 67 / - NULLIF ( - - 89, + - 97 * + - 70 ) / + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT + CASE - COUNT( * ) WHEN + 57 THEN + + 48 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT + CASE - COUNT ( * ) WHEN + 57 THEN + + 48 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT 5 * COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1161
SELECT 5 * COUNT ( * ) AS col0
----
5

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

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - COUNT ( * ) - + 89 AS col1
----
-90

query I rowsort
SELECT ALL + 73 * - + 90 * - 96 col0
----
630720

query I rowsort
SELECT 92 - + 82 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT DISTINCT - ( SUM( - - 71 ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-1165
SELECT DISTINCT - ( SUM ( - - 71 ) ) AS col2
----
-71

query I rowsort
SELECT 11 * - 57 AS col0
----
-627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT ALL - CAST( - 83 AS SIGNED ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL - CAST ( - 83 AS INTEGER ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT ALL - COUNT( * ) + + 48
----
47

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL - COUNT ( * ) + + 48
----
47

query I rowsort
SELECT DISTINCT - ( - NULLIF ( + 73, + 35 ) ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT ALL 33 + + + 54 + COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL 33 + + + 54 + COUNT ( * ) AS col0
----
88

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

skipif mysql # not compatible
query I rowsort label-1171
SELECT COUNT ( * ) - + 13 AS col2
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT DISTINCT + ( CASE 36 WHEN + - 44 * + - 27 + - 29 * + + CASE - ( + + 14 ) WHEN - 35 / - 89 THEN + - COUNT( * ) WHEN - 63 + + + 46 THEN NULL END + - 4 THEN NULL WHEN - 32 * + MAX( - 23 ) THEN 0 * - + COUNT( - 43 ) + - 23 * - + 68 WHEN - + 83 THEN - 27 + - 33 END ) * NULLIF ( - CASE + + 81 WHEN - COUNT( * ) + + 56 THEN NULL ELSE + + 54 * + 44 + + COUNT( * ) * 62 * + 4 + 99 END, 56 ) + 62 - + - 21 - - MAX( - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT + ( CASE 36 WHEN + - 44 * + - 27 + - 29 * + + CASE - ( + + 14 ) WHEN - 35 / - 89 THEN + - COUNT ( * ) WHEN - 63 + + + 46 THEN NULL END + - 4 THEN NULL WHEN - 32 * + MAX ( - 23 ) THEN 0 * - + COUNT ( - 43 ) + - 23 * - + 68 WHEN - + 83 THEN - 27 + - 33 END ) * NULLIF ( - CASE + + 81 WHEN - COUNT ( * ) + + 56 THEN NULL ELSE + + 54 * + 44 + + COUNT ( * ) * 62 * + 4 + 99 END, 56 ) + 62 - + - 21 - - MAX ( - 66 )
----
NULL

query I rowsort
SELECT ( + 8 ) + - 77 + - - 56 AS col2
----
-13

query I rowsort
SELECT - 99 - + 1 - 13
----
-113

query II rowsort
SELECT DISTINCT 48, + 3 AS col0
----
48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT DISTINCT - - 40 + - 53 - - - COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT - - 40 + - 53 - - - COUNT ( * ) AS col1
----
-14

query I rowsort
SELECT + 74 * - 31 col0
----
-2294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1179
SELECT DISTINCT NULLIF ( - - COUNT( * ), - - 22 ) - + - 58 * + 3 + + 33 DIV + CAST( + COUNT( * ) AS SIGNED )
----
208

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT NULLIF ( - - COUNT ( * ), - - 22 ) - + - 58 * + 3 + + 33 / + CAST ( + COUNT ( * ) AS INTEGER )
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT + COALESCE ( 15, + + 88 + + 62 ) - + - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-1180
SELECT + COALESCE ( 15, + + 88 + + 62 ) - + - COUNT ( * )
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-1181
SELECT - 0, 96 DIV + ( - 92 ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-1181
SELECT - 0, 96 / + ( - 92 ) AS col0
----
0
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1182
SELECT DISTINCT - 87 - - - 16 * - MAX( - 56 ) col0, 21 + - - COUNT( * ) - - COUNT( * ) AS col1
----
-983
23

skipif mysql # not compatible
query II rowsort label-1182
SELECT DISTINCT - 87 - - - 16 * - MAX ( - 56 ) col0, 21 + - - COUNT ( * ) - - COUNT ( * ) AS col1
----
-983
23

query I rowsort
SELECT DISTINCT 56 * - - ( + - NULLIF ( 99, 10 ) ) + + 26 AS col0
----
-5518

onlyif mysql # aggregate syntax: 
query II rowsort label-1184
SELECT DISTINCT - COUNT( * ) AS col1, 73 AS col1
----
-1
73

skipif mysql # not compatible
query II rowsort label-1184
SELECT DISTINCT - COUNT ( * ) AS col1, 73 AS col1
----
-1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT ALL SUM( - 53 ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL SUM ( - 53 ) col2
----
-53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1187
SELECT - 5 * + CAST( + MAX( ALL 92 ) AS SIGNED )
----
-460

skipif mysql # not compatible
query I rowsort label-1187
SELECT - 5 * + CAST ( + MAX ( ALL 92 ) AS INTEGER )
----
-460

query I rowsort
SELECT + 93 + - - 2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1189
SELECT ALL - NULLIF ( CASE - + COUNT( * ) WHEN - + COUNT( * ) + + 57 THEN NULL WHEN 80 THEN NULL WHEN 81 DIV - 63 THEN + + 51 * 56 WHEN + COUNT( * ) THEN + ( COALESCE ( + COUNT( * ), 18 * - - 47 ) ) END, - - 55 ) * 93 AS col1, + 51 + - 98 + + 39 AS col1
----
-265608
-8

skipif mysql # not compatible
query II rowsort label-1189
SELECT ALL - NULLIF ( CASE - + COUNT ( * ) WHEN - + COUNT ( * ) + + 57 THEN NULL WHEN 80 THEN NULL WHEN 81 / - 63 THEN + + 51 * 56 WHEN + COUNT ( * ) THEN + ( COALESCE ( + COUNT ( * ), 18 * - - 47 ) ) END, - - 55 ) * 93 AS col1, + 51 + - 98 + + 39 AS col1
----
-265608
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT DISTINCT - 86 * + COUNT( * ) + - 95 col1
----
-181

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT - 86 * + COUNT ( * ) + - 95 col1
----
-181

onlyif mysql # DIV for integer division: 
query I rowsort label-1191
SELECT 42 DIV - - 76 + - 14 col1
----
-14

skipif mysql # not compatible
query I rowsort label-1191
SELECT 42 / - - 76 + - 14 col1
----
-14

query I rowsort
SELECT ALL - 53 * 76 + - 69 AS col1
----
-4097

query I rowsort
SELECT DISTINCT + 51 * + + 27 AS col1
----
1377

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1195
SELECT ALL + 54 * 30 * - ( + CAST( - 88 AS SIGNED ) ) + - - COALESCE ( + 39, - 19 + - 18 )
----
142599

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL + 54 * 30 * - ( + CAST ( - 88 AS INTEGER ) ) + - - COALESCE ( + 39, - 19 + - 18 )
----
142599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT 33 * + + 84 + - - CAST( + - COALESCE ( 64, - 32 * + 86 * - 67, + - 1 ) AS SIGNED ) AS col0
----
2708

skipif mysql # not compatible
query I rowsort label-1196
SELECT 33 * + + 84 + - - CAST ( + - COALESCE ( 64, - 32 * + 86 * - 67, + - 1 ) AS INTEGER ) AS col0
----
2708

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT + COUNT( * ) * - COUNT( * ) + - 23 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1197
SELECT + COUNT ( * ) * - COUNT ( * ) + - 23 AS col0
----
-24

query I rowsort
SELECT COALESCE ( - - 74, + 83 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ALL - ( + 76 ) * + CASE + COUNT( ALL 83 ) WHEN + 89 THEN - 88 END + + 91 + + - 64 * + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL - ( + 76 ) * + CASE + COUNT ( ALL 83 ) WHEN + 89 THEN - 88 END + + 91 + + - 64 * + 6 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 23 * + - 63 - 10
----
-1459

query I rowsort
SELECT ALL + CASE + 57 WHEN + + 80 THEN + 6 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1202
SELECT - ( + COUNT( * ) ) + - 72 + - - CAST( NULL AS SIGNED ) * 68 * - ( 81 ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT - ( + COUNT ( * ) ) + - 72 + - - CAST ( NULL AS INTEGER ) * 68 * - ( 81 ) * 97
----
NULL

query I rowsort
SELECT + ( + CASE 45 WHEN + 58 THEN + 59 WHEN - 5 THEN NULL WHEN 92 THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT + ( COUNT( * ) ) * + COUNT( DISTINCT + 51 ) * + MIN( DISTINCT - - 28 ) + 12
----
40

skipif mysql # not compatible
query I rowsort label-1204
SELECT + ( COUNT ( * ) ) * + COUNT ( DISTINCT + 51 ) * + MIN ( DISTINCT - - 28 ) + 12
----
40

query I rowsort
SELECT - 30 - + ( + + 34 ) + 59
----
-5

query I rowsort
SELECT + + 22 + ( - 66 ) AS col2
----
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT ALL - COALESCE ( COUNT( 50 ), - 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL - COALESCE ( COUNT ( 50 ), - 29 )
----
-1

query I rowsort
SELECT - - 53 * - 37 * - 98
----
192178

onlyif mysql # aggregate syntax: 
query II rowsort label-1210
SELECT + - 47 + - 70 * NULLIF ( + MIN( DISTINCT + 28 ), - 1 + + + 29 ) AS col0, - 44 + + - 40 AS col0
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-1210
SELECT + - 47 + - 70 * NULLIF ( + MIN ( DISTINCT + 28 ), - 1 + + + 29 ) AS col0, - 44 + + - 40 AS col0
----
NULL
-84

query I rowsort
SELECT ALL + 89 * - ( + + 74 )
----
-6586

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

skipif mysql # not compatible
query II rowsort label-1212
SELECT ALL + CAST ( - + 26 AS INTEGER ) AS col2, + COUNT ( * )
----
-26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT DISTINCT - COALESCE ( + - 34, + 92, - - COUNT( * ) + 69 * MAX( ALL 52 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT - COALESCE ( + - 34, + 92, - - COUNT ( * ) + 69 * MAX ( ALL 52 ) ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL COUNT( * ) + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL COUNT ( * ) + - 66
----
-65

query I rowsort
SELECT ALL 5 * CASE 65 WHEN - - 46 * - 2 THEN NULL WHEN 32 * - + 14 THEN - 55 ELSE + 76 END
----
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1216
SELECT ALL 57 + + NULLIF ( + CAST( NULL AS SIGNED ), 14 * 10 * COUNT( * ) + 51 * ( + + 45 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL 57 + + NULLIF ( + CAST ( NULL AS INTEGER ), 14 * 10 * COUNT ( * ) + 51 * ( + + 45 ) )
----
NULL

query I rowsort
SELECT + 63 * - - 8
----
504

query II rowsort
SELECT ALL + 66, + 50 col0
----
66
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1219
SELECT DISTINCT CAST( 90 AS SIGNED ) DIV ( - - 89 ) * ( - + 94 ) + 2
----
-92

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT CAST ( 90 AS INTEGER ) / ( - - 89 ) * ( - + 94 ) + 2
----
-92

query I rowsort
SELECT DISTINCT 4 * 95 AS col0
----
380

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT ALL - 59 DIV - - 27 + + 32 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL - 59 / - - 27 + + 32 AS col0
----
30

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1223
SELECT ALL + 9 DIV - CAST( - ( - + 92 ) AS SIGNED ) + + COUNT( * ) + - + 20 * + 79
----
-1579

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL + 9 / - CAST ( - ( - + 92 ) AS INTEGER ) + + COUNT ( * ) + - + 20 * + 79
----
-1579

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT + 3 - - COUNT( * ) + 87 + + 1 * 93
----
184

skipif mysql # not compatible
query I rowsort label-1224
SELECT + 3 - - COUNT ( * ) + 87 + + 1 * 93
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-1225
SELECT ALL 91 DIV + + 70
----
1

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL 91 / + + 70
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1227
SELECT ALL + COUNT( * ) DIV + 53 - COUNT( + + 60 ) AS col0
----
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1228
SELECT DISTINCT COUNT( * ) DIV - ( 73 ) col0, 48 + 37
----
0
85

skipif mysql # not compatible
query II rowsort label-1228
SELECT DISTINCT COUNT ( * ) / - ( 73 ) col0, 48 + 37
----
0
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1229
SELECT DISTINCT + 23 AS col2, + CASE + 86 WHEN - NULLIF ( 46, 27 * CAST( - COUNT( * ) AS SIGNED ) * - ( - 91 ) ) * - 97 * + + 64 THEN ( - 28 ) END
----
23
NULL

skipif mysql # not compatible
query II rowsort label-1229
SELECT DISTINCT + 23 AS col2, + CASE + 86 WHEN - NULLIF ( 46, 27 * CAST ( - COUNT ( * ) AS INTEGER ) * - ( - 91 ) ) * - 97 * + + 64 THEN ( - 28 ) END
----
23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1230
SELECT ALL 89 DIV + 44 - + COALESCE ( + NULLIF ( - CAST( - + 29 AS SIGNED ), + - AVG ( - + 20 ) + - 22 * - SUM( - + 14 ) ), - 15 ) * + 94
----
-2724

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL 89 / + 44 - + COALESCE ( + NULLIF ( - CAST ( - + 29 AS INTEGER ), + - AVG ( - + 20 ) + - 22 * - SUM ( - + 14 ) ), - 15 ) * + 94
----
-2724

onlyif mysql # aggregate syntax: 
query II rowsort label-1231
SELECT + 34 - - - 0 + COUNT( * ) AS col2, - 79 * + - COUNT( * )
----
35
79

skipif mysql # not compatible
query II rowsort label-1231
SELECT + 34 - - - 0 + COUNT ( * ) AS col2, - 79 * + - COUNT ( * )
----
35
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1232
SELECT ALL 4 DIV 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL 4 / 89 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1233
SELECT - COUNT( * ) - - + 64 + + COUNT( * ) AS col0, + 99 AS col0
----
64
99

skipif mysql # not compatible
query II rowsort label-1233
SELECT - COUNT ( * ) - - + 64 + + COUNT ( * ) AS col0, + 99 AS col0
----
64
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL - - MAX( - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL - - MAX ( - 77 ) AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1235
SELECT DISTINCT - 12 * + + MAX( + + 90 ) + COALESCE ( MIN( ALL + + 68 ), - MAX( DISTINCT + 50 ) - - + 61 ) + - + CAST( - 91 AS SIGNED ) + + 17 AS col2
----
-904

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT - 12 * + + MAX ( + + 90 ) + COALESCE ( MIN ( ALL + + 68 ), - MAX ( DISTINCT + 50 ) - - + 61 ) + - + CAST ( - 91 AS INTEGER ) + + 17 AS col2
----
-904

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1237
SELECT - COUNT( * ) AS col0, - MAX( DISTINCT - 17 ) * 74
----
-1
1258

skipif mysql # not compatible
query II rowsort label-1237
SELECT - COUNT ( * ) AS col0, - MAX ( DISTINCT - 17 ) * 74
----
-1
1258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1238
SELECT 32 - + CAST( - ( - + 11 ) AS SIGNED ) DIV - 3 * + ( + COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-1238
SELECT 32 - + CAST ( - ( - + 11 ) AS INTEGER ) / - 3 * + ( + COUNT ( * ) )
----
35

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

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL - SUM ( ALL - 71 )
----
71

query I rowsort
SELECT DISTINCT - - ( - 87 )
----
-87

query I rowsort
SELECT 65 * - 86
----
-5590

onlyif mysql # aggregate syntax: 
query II rowsort label-1242
SELECT DISTINCT + 40, - COUNT( * ) AS col1
----
40
-1

skipif mysql # not compatible
query II rowsort label-1242
SELECT DISTINCT + 40, - COUNT ( * ) AS col1
----
40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT DISTINCT CASE - ( + 70 ) WHEN + COUNT( * ) + - MIN( 34 ) THEN AVG ( DISTINCT + - 74 ) + + 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT CASE - ( + 70 ) WHEN + COUNT ( * ) + - MIN ( 34 ) THEN AVG ( DISTINCT + - 74 ) + + 51 END
----
NULL

query I rowsort
SELECT - 77 + + 17 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL 16 * + 87 * + COALESCE ( + ( + + COUNT( - + 63 ) ), - COUNT( DISTINCT + ( 61 ) ) )
----
1392

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL 16 * + 87 * + COALESCE ( + ( + + COUNT ( - + 63 ) ), - COUNT ( DISTINCT + ( 61 ) ) )
----
1392

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1246
SELECT - MIN( + 33 ) * 86 * + + CASE - 70 WHEN 4 * - 60 + + - 34 + + 3 * - SUM( DISTINCT + 51 ) THEN NULL ELSE + 48 * + COUNT( * ) - - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1246
SELECT - MIN ( + 33 ) * 86 * + + CASE - 70 WHEN 4 * - 60 + + - 34 + + 3 * - SUM ( DISTINCT + 51 ) THEN NULL ELSE + 48 * + COUNT ( * ) - - CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT ALL - - 18 + + 27 AS col1
----
45

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1250
SELECT 2 + + - 48 DIV + + 97
----
2

skipif mysql # not compatible
query I rowsort label-1250
SELECT 2 + + - 48 / + + 97
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT COUNT( * ) * - - 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-1251
SELECT COUNT ( * ) * - - 58 AS col2
----
58

query I rowsort
SELECT 12 * - 25 AS col0
----
-300

query I rowsort
SELECT ALL 81 + 83 AS col2
----
164

query I rowsort
SELECT ALL ( 1 ) + 25
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1255
SELECT COUNT( * ) - ( - MAX( DISTINCT - 41 ) ) col1, COUNT( * )
----
-40
1

skipif mysql # not compatible
query II rowsort label-1255
SELECT COUNT ( * ) - ( - MAX ( DISTINCT - 41 ) ) col1, COUNT ( * )
----
-40
1

query II rowsort
SELECT ALL + 78 + - ( + 88 ) + - 43 AS col2, 76 - - 58 AS col2
----
-53
134

query I rowsort
SELECT 17 + - 32 + + + 13 - - 13 + + 98 * + - 35
----
-3419

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

skipif mysql # not compatible
query I rowsort label-1258
SELECT 27 + + COUNT ( * ) AS col2
----
28

query I rowsort
SELECT 62 - + + 88 col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT COUNT( * ) + - - COUNT( * ) + 35
----
37

skipif mysql # not compatible
query I rowsort label-1260
SELECT COUNT ( * ) + - - COUNT ( * ) + 35
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1261
SELECT ALL 50 * + + CAST( 17 AS SIGNED ) AS col1
----
850

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL 50 * + + CAST ( 17 AS INTEGER ) AS col1
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT 52 * + COUNT( DISTINCT - - 25 ) + - 27 + COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1262
SELECT 52 * + COUNT ( DISTINCT - - 25 ) + - 27 + COUNT ( * ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT ALL - SUM( + 26 ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL - SUM ( + 26 ) col2
----
-26

query II rowsort
SELECT 52 * - 44 col1, + 67 - 7
----
-2288
60

query I rowsort
SELECT ALL - ( 87 ) * 92 * ( + - 20 )
----
160080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1266
SELECT + 34 DIV - 82 * - - CAST( - COUNT( * ) AS SIGNED ) + CAST( - 28 AS SIGNED ) + - COALESCE ( COALESCE ( - 16, - 26 ), - 77 + + 55 )
----
-12

skipif mysql # not compatible
query I rowsort label-1266
SELECT + 34 / - 82 * - - CAST ( - COUNT ( * ) AS INTEGER ) + CAST ( - 28 AS INTEGER ) + - COALESCE ( COALESCE ( - 16, - 26 ), - 77 + + 55 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1267
SELECT - COALESCE ( + COUNT( * ), + COUNT( * ) * + + CAST( NULL AS SIGNED ) ) + + 81 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1267
SELECT - COALESCE ( + COUNT ( * ), + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) ) + + 81 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT - CASE WHEN ( - ( 0 ) IN ( 32, CASE + 77 WHEN - 96 THEN 71 END * + MIN( ALL - - 29 ) * - 40, - 42 / MIN( DISTINCT + 3 ), - 26 + + 54 ) ) THEN - ( 95 ) + 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1268
SELECT - CASE WHEN ( - ( 0 ) IN ( 32, CASE + 77 WHEN - 96 THEN 71 END * + MIN ( ALL - - 29 ) * - 40, - 42 / MIN ( DISTINCT + 3 ), - 26 + + 54 ) ) THEN - ( 95 ) + 58 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1269
SELECT + 68 DIV + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1269
SELECT + 68 / + 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT ALL - CASE 95 WHEN 77 THEN 8 WHEN + SUM( 0 ) * + - 16 + + COUNT( * ) + + + 62 * + - ( 38 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL - CASE 95 WHEN 77 THEN 8 WHEN + SUM ( 0 ) * + - 16 + + COUNT ( * ) + + + 62 * + - ( 38 ) THEN NULL END
----
NULL

query I rowsort
SELECT + 63 * 52 + + 99 + + - 62 AS col2
----
3313

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT - 92 * + COUNT( * ) * + 34 + MIN( + 68 ) * + 71 AS col0
----
1700

skipif mysql # not compatible
query I rowsort label-1273
SELECT - 92 * + COUNT ( * ) * + 34 + MIN ( + 68 ) * + 71 AS col0
----
1700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1274
SELECT DISTINCT - MAX( 88 ) DIV - 16 col0
----
5

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT - MAX ( 88 ) / - 16 col0
----
5

query I rowsort
SELECT + 25 * - 18
----
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-1276
SELECT - 34 DIV 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1276
SELECT - 34 / 44 AS col0
----
0

query I rowsort
SELECT DISTINCT 22 + 16 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT - 61 * - - COUNT( * ) - + 59 + 30 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-1278
SELECT - 61 * - - COUNT ( * ) - + 59 + 30 AS col1
----
-90

query I rowsort
SELECT ALL - 64 + + 9 * + 88 * - CASE + + 95 WHEN + + 94 * 4 - - - 79 THEN 98 END col2
----
NULL

query I rowsort
SELECT ALL - 6 * + 83
----
-498

query II rowsort
SELECT 90 + - 99 AS col1, 3
----
-9
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1282
SELECT DISTINCT - 57 + - - 56 - + 34 + - COUNT( * ) / + - 35 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT - 57 + - - 56 - + 34 + - COUNT ( * ) / + - 35 + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + ( - ( - 84 ) ) + - 27 * 4 AS col1
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT ALL + ( + 13 ) + CAST( - 4 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL + ( + 13 ) + CAST ( - 4 AS INTEGER )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT 27 + + + 99 + - COALESCE ( - COUNT( * ), - - ( - + 27 ), - 54 ) AS col2
----
127

skipif mysql # not compatible
query I rowsort label-1285
SELECT 27 + + + 99 + - COALESCE ( - COUNT ( * ), - - ( - + 27 ), - 54 ) AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT DISTINCT - ( 96 ) + + COUNT( * ) + + + COUNT( * ) * + + COUNT( * ) * + - 26 + 3 * - 3 + + NULLIF ( + 85, 2 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT - ( 96 ) + + COUNT ( * ) + + + COUNT ( * ) * + + COUNT ( * ) * + - 26 + 3 * - 3 + + NULLIF ( + 85, 2 ) AS col0
----
-45

query I rowsort
SELECT ALL - 47 + - 97 * ( + 36 ) AS col2
----
-3539

query I rowsort
SELECT DISTINCT + ( + 24 ) + 20 AS col0
----
44

query I rowsort
SELECT 21 * + 30
----
630

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT 27 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-1290
SELECT 27 / - 98
----
0

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

skipif mysql # not compatible
query I rowsort label-1291
SELECT 52 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT DISTINCT + ( + COUNT( * ) ) * + 9 - - - 51 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT + ( + COUNT ( * ) ) * + 9 - - - 51 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-1293
SELECT 62 * - - COALESCE ( - - COUNT( ALL - 31 ), - - 36 ) AS col2, - 52
----
62
-52

skipif mysql # not compatible
query II rowsort label-1293
SELECT 62 * - - COALESCE ( - - COUNT ( ALL - 31 ), - - 36 ) AS col2, - 52
----
62
-52

query I rowsort
SELECT ALL - ( - 29 ) AS col2
----
29

query I rowsort
SELECT COALESCE ( - 51, + - 67 ) AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT - 14 - - + 1 * - - ( COALESCE ( 75, 24 + - + 68 * - 21 / - 15 + 24, + + 31 ) ) + - 30 / + 58 / - 67 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT - 14 - - + 1 * - - ( COALESCE ( 75, 24 + - + 68 * - 21 / - 15 + 24, + + 31 ) ) + - 30 / + 58 / - 67 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT - COUNT( * ) * NULLIF ( - 79, - 17 + + + 17 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1297
SELECT - COUNT ( * ) * NULLIF ( - 79, - 17 + + + 17 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT DISTINCT + 29 * + 53 + COUNT( + + 59 ) AS col2
----
1538

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT + 29 * + 53 + COUNT ( + + 59 ) AS col2
----
1538

query I rowsort
SELECT DISTINCT 53 * NULLIF ( - + 11, + + 5 ) * 99 - + 67 AS col2
----
-57784

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1300
SELECT ALL + 66 * 43 + 99 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL + 66 * 43 + 99 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 90 - + 52 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT DISTINCT 89 * - - 45 + COUNT( * ) + - 57
----
3949

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT 89 * - - 45 + COUNT ( * ) + - 57
----
3949

query II rowsort
SELECT ALL + + 15, + 55 AS col1
----
15
55

query I rowsort
SELECT + + 41 * - - NULLIF ( + 33, + - 15 / + - 15 ) * + 49
----
66297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1305
SELECT - CAST( 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-1305
SELECT - CAST ( 40 AS INTEGER )
----
-40

query II rowsort
SELECT + 9 AS col1, 54 + + ( - + 69 )
----
9
-15

query II rowsort
SELECT ALL - 8 * + 93 + + 41 AS col1, - 81 col0
----
-703
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT + 7 * ( - + MIN( - 56 ) ) AS col0
----
392

skipif mysql # not compatible
query I rowsort label-1308
SELECT + 7 * ( - + MIN ( - 56 ) ) AS col0
----
392

query I rowsort
SELECT + - 55 + + 85
----
30

query I rowsort
SELECT + 95 - - 67 + - - 54 * - 81 * - 90
----
393822

onlyif mysql # aggregate syntax: 
query II rowsort label-1311
SELECT ALL + MIN( - 88 ) + 5 AS col0, 64 AS col2
----
-83
64

skipif mysql # not compatible
query II rowsort label-1311
SELECT ALL + MIN ( - 88 ) + 5 AS col0, 64 AS col2
----
-83
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT ALL COUNT( DISTINCT + 30 ) + + 47
----
48

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL COUNT ( DISTINCT + 30 ) + + 47
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1313
SELECT DISTINCT ( + + CASE 5 WHEN 40 * 73 * 93 * + - 87 + + + 53 + COUNT( * ) * - - 21 / - 53 THEN 60 ELSE NULL END ) * CAST( + 7 AS SIGNED ) + 27 + - 71 * + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT ( + + CASE 5 WHEN 40 * 73 * 93 * + - 87 + + + 53 + COUNT ( * ) * - - 21 / - 53 THEN 60 ELSE NULL END ) * CAST ( + 7 AS INTEGER ) + 27 + - 71 * + + 22
----
NULL

query I rowsort
SELECT DISTINCT 11 + 15 col1
----
26

query I rowsort
SELECT + 22 * 73 col2
----
1606

query I rowsort
SELECT ALL - 51 * + COALESCE ( - + 2, - + 68 + - 61 )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT ALL 46 + - + 45 + + MIN( - + 64 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL 46 + - + 45 + + MIN ( - + 64 ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1318
SELECT ALL 59 AS col2, - COUNT( * ) * 68 + - NULLIF ( - + NULLIF ( 28, + AVG ( DISTINCT 52 ) * - + 82 + - + 25 * - 32 ), 78 + - 11 ) * - CAST( NULL AS DECIMAL )
----
59
NULL

skipif mysql # not compatible
query II rowsort label-1318
SELECT ALL 59 AS col2, - COUNT ( * ) * 68 + - NULLIF ( - + NULLIF ( 28, + AVG ( DISTINCT 52 ) * - + 82 + - + 25 * - 32 ), 78 + - 11 ) * - CAST ( NULL AS REAL )
----
59
NULL

query I rowsort
SELECT + 28 - 10
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1320
SELECT - NULLIF ( 51, - CAST( + 85 AS SIGNED ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1320
SELECT - NULLIF ( 51, - CAST ( + 85 AS INTEGER ) ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-1321
SELECT - 15 col0, MIN( ALL 41 ) + 43 AS col0
----
-15
84

skipif mysql # not compatible
query II rowsort label-1321
SELECT - 15 col0, MIN ( ALL 41 ) + 43 AS col0
----
-15
84

query I rowsort
SELECT + 4 + + 94
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT - CASE + COUNT( * ) WHEN - 85 * + 18 THEN + + 4 + + NULLIF ( + SUM( DISTINCT 80 ), + 27 ) + + - 80 * 76 END * - + COUNT( * ) - - - 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT - CASE + COUNT ( * ) WHEN - 85 * + 18 THEN + + 4 + + NULLIF ( + SUM ( DISTINCT 80 ), + 27 ) + + - 80 * 76 END * - + COUNT ( * ) - - - 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT + 80 + COUNT( * ) + + 78 AS col2
----
159

skipif mysql # not compatible
query I rowsort label-1324
SELECT + 80 + COUNT ( * ) + + 78 AS col2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL + 79 - + COUNT( * ) * + + 3 * - 45 * - 86 + + 77 AS col2
----
-11454

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL + 79 - + COUNT ( * ) * + + 3 * - 45 * - 86 + + 77 AS col2
----
-11454

query I rowsort
SELECT ALL NULLIF ( 5, - 49 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1327
SELECT DISTINCT COUNT( * ) AS col0, 83 * + COUNT( * ) * + 67 AS col2
----
1
5561

skipif mysql # not compatible
query II rowsort label-1327
SELECT DISTINCT COUNT ( * ) AS col0, 83 * + COUNT ( * ) * + 67 AS col2
----
1
5561

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

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT + 43 * - COUNT ( * ) col2
----
-43

query I rowsort
SELECT ALL ( - COALESCE ( 29, + 60 ) )
----
-29

query II rowsort
SELECT - 26 + 15 * - - COALESCE ( - + 1, ( - + 24 ) ) col1, + ( - 5 ) AS col0
----
-41
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT + MAX( DISTINCT ( + + 36 ) ) * + 53 * - 89 AS col2
----
-169812

skipif mysql # not compatible
query I rowsort label-1331
SELECT + MAX ( DISTINCT ( + + 36 ) ) * + 53 * - 89 AS col2
----
-169812

query I rowsort
SELECT + NULLIF ( + 67, - 73 ) + + + NULLIF ( + 19, + - 23 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1333
SELECT - CAST( NULL AS SIGNED ) / 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT - CAST ( NULL AS INTEGER ) / 2 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 44 * + COALESCE ( + 9, - 88 ) AS col1
----
396

query I rowsort
SELECT ALL NULLIF ( + 42, 22 * ( - + 11 ) * 19 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT - MIN( + - 97 ) + - - 54 AS col2
----
151

skipif mysql # not compatible
query I rowsort label-1336
SELECT - MIN ( + - 97 ) + - - 54 AS col2
----
151

query I rowsort
SELECT ALL - + 29 * 99
----
-2871

onlyif mysql # DIV for integer division: 
query I rowsort label-1338
SELECT - - 69 DIV - 15 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-1338
SELECT - - 69 / - 15 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT DISTINCT - COUNT( ALL - - 96 ) * - - 77 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT - COUNT ( ALL - - 96 ) * - - 77 AS col1
----
-77

query I rowsort
SELECT ALL + - ( 78 ) * - 62 AS col2
----
4836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1341
SELECT DISTINCT + CAST( SUM( DISTINCT ( - 38 ) ) AS SIGNED ) DIV + + COUNT( * ) + + ( + COUNT( * ) ) + + - COALESCE ( - 39, + 69, + - 51 - + + COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT + CAST ( SUM ( DISTINCT ( - 38 ) ) AS INTEGER ) / + + COUNT ( * ) + + ( + COUNT ( * ) ) + + - COALESCE ( - 39, + 69, + - 51 - + + COUNT ( * ) )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT ALL 56 DIV + 53
----
1

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL 56 / + 53
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1343
SELECT ALL - + 55 DIV - 65 + - - 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL - + 55 / - 65 + - - 9 AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1344
SELECT - - 70 + + ( 49 ) * - 64 * + CASE 57 WHEN - + COUNT( * ) THEN NULL WHEN - 20 + - ( + + 62 ) + ( + + 63 ) THEN + 78 END / 12 * - COALESCE ( - 2, - NULLIF ( 78, MIN( 31 ) / + - CASE + CAST( - 57 AS SIGNED ) WHEN + 37 THEN SUM( DISTINCT + CAST( - 82 AS SIGNED ) ) END / + COUNT( * ) * 73 + - 91 ) * + 99 + - CASE - COUNT( * ) WHEN - 74 * - NULLIF ( - + 61, - 83 * - 47 ) THEN + 51 WHEN - COUNT( * ) + + - COALESCE ( - COALESCE ( - + COUNT( * ), 42 ), 98 * + CAST( NULL AS SIGNED ) * + 64 ) THEN NULL ELSE + ( 26 ) + 18 END ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT - - 70 + + ( 49 ) * - 64 * + CASE 57 WHEN - + COUNT ( * ) THEN NULL WHEN - 20 + - ( + + 62 ) + ( + + 63 ) THEN + 78 END / 12 * - COALESCE ( - 2, - NULLIF ( 78, MIN ( 31 ) / + - CASE + CAST ( - 57 AS INTEGER ) WHEN + 37 THEN SUM ( DISTINCT + CAST ( - 82 AS INTEGER ) ) END / + COUNT ( * ) * 73 + - 91 ) * + 99 + - CASE - COUNT ( * ) WHEN - 74 * - NULLIF ( - + 61, - 83 * - 47 ) THEN + 51 WHEN - COUNT ( * ) + + - COALESCE ( - COALESCE ( - + COUNT ( * ), 42 ), 98 * + CAST ( NULL AS INTEGER ) * + 64 ) THEN NULL ELSE + ( 26 ) + 18 END ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1345
SELECT DISTINCT + CASE MAX( + - 37 ) WHEN - NULLIF ( - - CAST( NULL AS SIGNED ), + 70 / + 43 * - + 6 ) + + 73 + + 46 - 59 THEN + 48 WHEN ( ( - CASE - ( - 11 ) WHEN - + 88 THEN NULL WHEN - CASE + + 69 WHEN + 2 THEN NULL WHEN + 53 THEN NULL ELSE 87 END / 68 + + + ( - 16 ) + + 26 + - 34 THEN 79 + - COUNT( + 8 ) END ) ) + - ( + 31 ) THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT + CASE MAX ( + - 37 ) WHEN - NULLIF ( - - CAST ( NULL AS INTEGER ), + 70 / + 43 * - + 6 ) + + 73 + + 46 - 59 THEN + 48 WHEN ( ( - CASE - ( - 11 ) WHEN - + 88 THEN NULL WHEN - CASE + + 69 WHEN + 2 THEN NULL WHEN + 53 THEN NULL ELSE 87 END / 68 + + + ( - 16 ) + + 26 + - 34 THEN 79 + - COUNT ( + 8 ) END ) ) + - ( + 31 ) THEN NULL ELSE NULL END col0
----
NULL

query II rowsort
SELECT ALL + - ( + - 45 ) col1, 13 * - - 51 AS col0
----
45
663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1347
SELECT ALL + NULLIF ( - + 82, - 30 + - + COALESCE ( 20, - COUNT( * ) * 76 + 8, - 97 ) ) * + + NULLIF ( - - 68, 6 * - 31 * - - COUNT( * ) ) + - 81 + 51 * 38 * + 79 * - 88 + - - 22 * CAST( 46 AS SIGNED )
----
-13477621

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL + NULLIF ( - + 82, - 30 + - + COALESCE ( 20, - COUNT ( * ) * 76 + 8, - 97 ) ) * + + NULLIF ( - - 68, 6 * - 31 * - - COUNT ( * ) ) + - 81 + 51 * 38 * + 79 * - 88 + - - 22 * CAST ( 46 AS INTEGER )
----
-13477621

query I rowsort
SELECT - 96 * - 1 AS col1
----
96

query I rowsort
SELECT - - 90 * - + 88 + 24 AS col0
----
-7896

query II rowsort
SELECT 31 AS col0, + 50 AS col2
----
31
50

query I rowsort
SELECT ALL + + ( + 67 ) AS col1
----
67

query I rowsort
SELECT ALL - - 5 * + + 36 + + - 58
----
122

query II rowsort
SELECT DISTINCT + 37 col2, 24
----
37
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1354
SELECT DISTINCT + 46 * - - 95 - + 29 + + + 83 DIV + 11
----
4348

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT + 46 * - - 95 - + 29 + + + 83 / + 11
----
4348

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

skipif mysql # not compatible
query II rowsort label-1355
SELECT ALL + 99 AS col1, + 81 + - - 81 / COUNT ( * ) AS col1
----
99
162

query I rowsort
SELECT + 55 + + + 81 AS col0
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1357
SELECT DISTINCT 43 * - 91 - - + 68 - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT 43 * - 91 - - + 68 - CAST ( NULL AS INTEGER ) col2
----
NULL

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

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

query I rowsort
SELECT 29 * - ( - 15 ) - 80 AS col1
----
355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1360
SELECT + 69 * - + COUNT( * ), - CAST( NULL AS SIGNED ) AS col0
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-1360
SELECT + 69 * - + COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col0
----
-69
NULL

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

skipif mysql # not compatible
query I rowsort label-1361
SELECT - NULLIF ( + COUNT ( * ), 34 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1362
SELECT + 86 + - 20 + - - 61 * - CASE 68 WHEN - 12 * - 73 + - + 21 - - + 71 * - 65 * - 82 THEN - 31 DIV + - 74 + + COUNT( * ) ELSE NULL END + - 1, 90 + + NULLIF ( - COALESCE ( - CASE + + ( + 32 ) WHEN + - 67 * + 61 THEN NULL WHEN - ( - 64 ) THEN NULL ELSE - - COUNT( * ) * - COUNT( * ) END, - + 17, ( + COUNT( CASE + 2 WHEN + 47 THEN - 91 DIV + 77 * - 9 WHEN - + ( - 70 ) THEN + 88 END ) ) DIV - + 36 * - - 72 ), 14 ) + - 71 AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-1362
SELECT + 86 + - 20 + - - 61 * - CASE 68 WHEN - 12 * - 73 + - + 21 - - + 71 * - 65 * - 82 THEN - 31 / + - 74 + + COUNT ( * ) ELSE NULL END + - 1, 90 + + NULLIF ( - COALESCE ( - CASE + + ( + 32 ) WHEN + - 67 * + 61 THEN NULL WHEN - ( - 64 ) THEN NULL ELSE - - COUNT ( * ) * - COUNT ( * ) END, - + 17, ( + COUNT ( CASE + 2 WHEN + 47 THEN - 91 / + 77 * - 9 WHEN - + ( - 70 ) THEN + 88 END ) ) / - + 36 * - - 72 ), 14 ) + - 71 AS col0
----
NULL
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT ALL 92 DIV 31 * + 48 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL 92 / 31 * + 48 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT SUM( + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-1364
SELECT SUM ( + 62 )
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-1365
SELECT ALL 39 DIV + + 72 AS col0, - 94 AS col2
----
0
-94

skipif mysql # not compatible
query II rowsort label-1365
SELECT ALL 39 / + + 72 AS col0, - 94 AS col2
----
0
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1366
SELECT ALL 56 DIV 3 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL 56 / 3 AS col1
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT ( 8 ) + - 37 * 19 + + COUNT( * )
----
-694

skipif mysql # not compatible
query I rowsort label-1368
SELECT ( 8 ) + - 37 * 19 + + COUNT ( * )
----
-694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1369
SELECT ALL + 48 * COALESCE ( 6, ( - + 29 ) * + NULLIF ( - - 46, 77 DIV ( CAST( NULL AS SIGNED ) ) + 89 - + 65 + + COALESCE ( + 63, COUNT( * ) * - - 52 + 43 ) + + 75 + + CAST( NULL AS SIGNED ) * + 85 + - CAST( NULL AS DECIMAL ) ) DIV 70 - 59 )
----
288

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL + 48 * COALESCE ( 6, ( - + 29 ) * + NULLIF ( - - 46, 77 / ( CAST ( NULL AS INTEGER ) ) + 89 - + 65 + + COALESCE ( + 63, COUNT ( * ) * - - 52 + 43 ) + + 75 + + CAST ( NULL AS INTEGER ) * + 85 + - CAST ( NULL AS REAL ) ) / 70 - 59 )
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-1370
SELECT 46 DIV + + 36 col2
----
1

skipif mysql # not compatible
query I rowsort label-1370
SELECT 46 / + + 36 col2
----
1

query I rowsort
SELECT 91 * + NULLIF ( - 71, - 72 )
----
-6461

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1372
SELECT DISTINCT COUNT( * ) + - - 37 + - - 57 DIV 69 + - + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT COUNT ( * ) + - - 37 + - - 57 / 69 + - + COUNT ( * ) AS col2
----
37

query I rowsort
SELECT ALL + - 89 + + - ( - 86 ) - + 63 AS col1
----
-66

query I rowsort
SELECT - 14 * + 58 * + 41
----
-33292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1375
SELECT ALL SUM( DISTINCT - 25 ) + 16 + - 15 + - 80 + - - ( - 58 ) + 23 DIV - - 14
----
-161

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL SUM ( DISTINCT - 25 ) + 16 + - 15 + - 80 + - - ( - 58 ) + 23 / - - 14
----
-161

query I rowsort
SELECT DISTINCT + 52 + 98 AS col2
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-1377
SELECT 65 - NULLIF ( + 26, AVG ( ALL + + 98 ) ) * - 29 - + + 33 col2, + COUNT( * )
----
786
1

skipif mysql # not compatible
query II rowsort label-1377
SELECT 65 - NULLIF ( + 26, AVG ( ALL + + 98 ) ) * - 29 - + + 33 col2, + COUNT ( * )
----
786
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT + NULLIF ( + 11, + CASE + CASE + 65 WHEN + 59 THEN 49 * - + 34 + COUNT( DISTINCT - 86 ) + - - NULLIF ( CASE - + 69 WHEN COALESCE ( + COUNT( * ), - - 50 * 79 ) THEN - 49 END, 13 ) + + 64 ELSE + 92 END WHEN + 45 * - - 73 THEN + + 58 END )
----
11

skipif mysql # not compatible
query I rowsort label-1378
SELECT + NULLIF ( + 11, + CASE + CASE + 65 WHEN + 59 THEN 49 * - + 34 + COUNT ( DISTINCT - 86 ) + - - NULLIF ( CASE - + 69 WHEN COALESCE ( + COUNT ( * ), - - 50 * 79 ) THEN - 49 END, 13 ) + + 64 ELSE + 92 END WHEN + 45 * - - 73 THEN + + 58 END )
----
11

query I rowsort
SELECT ALL - 19 + - 97 AS col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT - 1 * 67 - + + COUNT( * ) * + 75
----
-142

skipif mysql # not compatible
query I rowsort label-1380
SELECT - 1 * 67 - + + COUNT ( * ) * + 75
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT MAX( - + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-1381
SELECT MAX ( - + 16 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1382
SELECT ALL + CAST( + 51 AS SIGNED ) * - 24
----
-1224

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL + CAST ( + 51 AS INTEGER ) * - 24
----
-1224

query I rowsort
SELECT ALL + 78 - 11 AS col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1384
SELECT - COUNT( * ) - 95 AS col0, - 76
----
-96
-76

skipif mysql # not compatible
query II rowsort label-1384
SELECT - COUNT ( * ) - 95 AS col0, - 76
----
-96
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1385
SELECT - NULLIF ( + 91, + + COUNT( * ) + - 73 ) * - + 72 * - + CAST( NULL AS SIGNED ) * 51 * - + 15 - + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-1385
SELECT - NULLIF ( + 91, + + COUNT ( * ) + - 73 ) * - + 72 * - + CAST ( NULL AS INTEGER ) * 51 * - + 15 - + + 76
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1386
SELECT ALL - 92 - 70 + + + 73 + - 54 - + - 16 + COUNT( * ) * + 11 DIV + 11 - COUNT( ALL + 14 ) - - - 37
----
-164

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL - 92 - 70 + + + 73 + - 54 - + - 16 + COUNT ( * ) * + 11 / + 11 - COUNT ( ALL + 14 ) - - - 37
----
-164

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

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

query I rowsort
SELECT DISTINCT - CASE + ( + 21 ) WHEN + 47 THEN - 25 WHEN 66 THEN 3 END
----
NULL

query II rowsort
SELECT 24 AS col2, + 60 col1
----
24
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1390
SELECT + 60 AS col0, + CAST( 30 AS SIGNED ) AS col1
----
60
30

skipif mysql # not compatible
query II rowsort label-1390
SELECT + 60 AS col0, + CAST ( 30 AS INTEGER ) AS col1
----
60
30

query I rowsort
SELECT 75 - + 89 * - - NULLIF ( - 0, 65 )
----
75

query I rowsort
SELECT ALL - 61 * + + 4 AS col1
----
-244

query I rowsort
SELECT 46 * - 68 AS col0
----
-3128

query I rowsort
SELECT DISTINCT 86 * 14
----
1204

query I rowsort
SELECT 72 * + 38 AS col1
----
2736

onlyif mysql # aggregate syntax: 
query II rowsort label-1396
SELECT ALL 78, COUNT( * ) AS col0
----
78
1

skipif mysql # not compatible
query II rowsort label-1396
SELECT ALL 78, COUNT ( * ) AS col0
----
78
1

query II rowsort
SELECT - 79, + 63 AS col1
----
-79
63

query II rowsort
SELECT 61 AS col0, + 73 col1
----
61
73

query I rowsort
SELECT 52 + - - 65
----
117

query I rowsort
SELECT ALL 85 + 8
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-1401
SELECT 61 + - 14 DIV + + 40 * + 38
----
61

skipif mysql # not compatible
query I rowsort label-1401
SELECT 61 + - 14 / + + 40 * + 38
----
61

query II rowsort
SELECT CASE + 10 WHEN 62 * 28 THEN + 32 END + 0, 74 AS col2
----
NULL
74

query II rowsort
SELECT - 92, 53 AS col2
----
-92
53

query II rowsort
SELECT 81 + + 63 + + 37 AS col0, NULLIF ( + 60, 0 - - 25 * - 70 * 62 * + 55 ) AS col0
----
181
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT ALL - 26 + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL - 26 + COUNT ( * )
----
-25

query I rowsort
SELECT DISTINCT - 42 * 98 + - + 72 * + 1 + 24 AS col1
----
-4164

query I rowsort
SELECT ALL CASE + 45 WHEN - - 14 THEN NULL WHEN - 62 THEN + - 91 WHEN + 22 THEN NULL WHEN - - 79 * - 79 - - 8 + 33 * + 9 THEN NULL END + + 31
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT ALL 59 DIV - 23 - - 73 + - 12 * 95
----
-1069

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL 59 / - 23 - - 73 + - 12 * 95
----
-1069

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT COUNT( * ) + + - ( + 31 ) + 12 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-1409
SELECT COUNT ( * ) + + - ( + 31 ) + 12 AS col0
----
-18

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1411
SELECT + 51 + + ( - - 44 ) AS col1, MAX( ALL 23 ) + - 3
----
95
20

skipif mysql # not compatible
query II rowsort label-1411
SELECT + 51 + + ( - - 44 ) AS col1, MAX ( ALL 23 ) + - 3
----
95
20

query II rowsort
SELECT 80 + + + 16 + - - 50 * 57 AS col0, - NULLIF ( - 25, - - 74 )
----
2946
25

query I rowsort
SELECT + 34 - + + 45
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT + 78 + + - 32 + - + ( + ( + + COUNT( * ) ) ) * 75 - + + COUNT( ALL + 84 )
----
-30

skipif mysql # not compatible
query I rowsort label-1414
SELECT + 78 + + - 32 + - + ( + ( + + COUNT ( * ) ) ) * 75 - + + COUNT ( ALL + 84 )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1415
SELECT ALL + COUNT( * ) * - 99 DIV 21 + COUNT( * ) - 46
----
-49

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL + COUNT ( * ) * - 99 / 21 + COUNT ( * ) - 46
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT + - 95 * + + 16 + - COUNT( * ) - + SUM( - + 13 )
----
-1508

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT + - 95 * + + 16 + - COUNT ( * ) - + SUM ( - + 13 )
----
-1508

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

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL - MIN ( ALL - 25 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1418
SELECT DISTINCT + + 96 * + 48 - - + 55 * - 65 AS col1, - 52 / + CAST( NULL AS SIGNED ) * - + CAST( 85 AS DECIMAL ) / - COUNT( * ) + - - COUNT( * )
----
1033
NULL

skipif mysql # not compatible
query II rowsort label-1418
SELECT DISTINCT + + 96 * + 48 - - + 55 * - 65 AS col1, - 52 / + CAST ( NULL AS INTEGER ) * - + CAST ( 85 AS REAL ) / - COUNT ( * ) + - - COUNT ( * )
----
1033
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT DISTINCT + 81 * - + MIN( DISTINCT + 41 ) - 41 AS col2
----
-3362

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT + 81 * - + MIN ( DISTINCT + 41 ) - 41 AS col2
----
-3362

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1420
SELECT DISTINCT - 8 AS col2, COALESCE ( + 90, + CAST( NULL AS SIGNED ) + - 16 + 83 DIV - - 8 )
----
-8
90

skipif mysql # not compatible
query II rowsort label-1420
SELECT DISTINCT - 8 AS col2, COALESCE ( + 90, + CAST ( NULL AS INTEGER ) + - 16 + 83 / - - 8 )
----
-8
90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1422
SELECT DISTINCT - - COUNT( * ) AS col1, 2 * + CAST( NULL AS SIGNED ) - + - 17 * - - ( - 83 )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1422
SELECT DISTINCT - - COUNT ( * ) AS col1, 2 * + CAST ( NULL AS INTEGER ) - + - 17 * - - ( - 83 )
----
1
NULL

query I rowsort
SELECT 41 + - 48 col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1424
SELECT ALL - 46 DIV + + MIN( DISTINCT - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL - 46 / + + MIN ( DISTINCT - 47 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1425
SELECT 28 / - - AVG ( ALL CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT 28 / - - AVG ( ALL CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1426
SELECT + 50 * 35 + + CAST( + COUNT( * ) AS SIGNED ), - 55 * - 28 * - 22 AS col1
----
1751
-33880

skipif mysql # not compatible
query II rowsort label-1426
SELECT + 50 * 35 + + CAST ( + COUNT ( * ) AS INTEGER ), - 55 * - 28 * - 22 AS col1
----
1751
-33880

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT + 56 * + - 76 + - MIN( + 28 )
----
-4284

skipif mysql # not compatible
query I rowsort label-1427
SELECT + 56 * + - 76 + - MIN ( + 28 )
----
-4284

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT DISTINCT + 47 * MAX( - + 3 ) col1
----
-141

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT + 47 * MAX ( - + 3 ) col1
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT MIN( 92 )
----
92

skipif mysql # not compatible
query I rowsort label-1429
SELECT MIN ( 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ALL + 29 * 7 * ( - COUNT( - + 15 ) )
----
-203

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL + 29 * 7 * ( - COUNT ( - + 15 ) )
----
-203

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1432
SELECT DISTINCT CASE CASE - CAST( NULL AS SIGNED ) WHEN 32 * - COUNT( * ) THEN 11 ELSE + 4 END WHEN + 73 * + + 45 THEN NULL ELSE + COUNT( * ) END * + + CAST( - 11 AS SIGNED ) DIV COALESCE ( - + 90, + + 62 + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT CASE CASE - CAST ( NULL AS INTEGER ) WHEN 32 * - COUNT ( * ) THEN 11 ELSE + 4 END WHEN + 73 * + + 45 THEN NULL ELSE + COUNT ( * ) END * + + CAST ( - 11 AS INTEGER ) / COALESCE ( - + 90, + + 62 + - COUNT ( * ) )
----
0

query I rowsort
SELECT - 51 + + 61
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1434
SELECT + 71 * + - 6 * - COUNT( * ) DIV COUNT( * ) + + 97 AS col2
----
523

skipif mysql # not compatible
query I rowsort label-1434
SELECT + 71 * + - 6 * - COUNT ( * ) / COUNT ( * ) + + 97 AS col2
----
523

query I rowsort
SELECT ALL - 57 + 12 - - 64 * ( - 94 ) col1
----
-6061

onlyif mysql # aggregate syntax: 
query II rowsort label-1436
SELECT ALL + 3 + - 3 + ( - 70 ) * SUM( ALL + + 96 ) * - 6 col2, - 30 AS col1
----
40320
-30

skipif mysql # not compatible
query II rowsort label-1436
SELECT ALL + 3 + - 3 + ( - 70 ) * SUM ( ALL + + 96 ) * - 6 col2, - 30 AS col1
----
40320
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-1437
SELECT DISTINCT - 39 + + 16 + - - 29 DIV 15 AS col1, + 35
----
-22
35

skipif mysql # not compatible
query II rowsort label-1437
SELECT DISTINCT - 39 + + 16 + - - 29 / 15 AS col1, + 35
----
-22
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT COUNT( * ) * - + 71 - + 13 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1438
SELECT COUNT ( * ) * - + 71 - + 13 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT ALL NULLIF ( + + ( + + 38 ), - ( 65 ) + - COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL NULLIF ( + + ( + + 38 ), - ( 65 ) + - COUNT ( * ) )
----
38

query II rowsort
SELECT - 67 * - 3, + 78 AS col0
----
201
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL + MIN( 78 ) + 9 - + CASE + 48 WHEN - + 69 + - + 97 THEN NULL ELSE + - 51 * - ( + + 51 ) * 82 + + 25 END
----
-213220

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL + MIN ( 78 ) + 9 - + CASE + 48 WHEN - + 69 + - + 97 THEN NULL ELSE + - 51 * - ( + + 51 ) * 82 + + 25 END
----
-213220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1442
SELECT ALL 31 + - 68 * - 8 * + CAST( - 33 AS SIGNED )
----
-17921

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL 31 + - 68 * - 8 * + CAST ( - 33 AS INTEGER )
----
-17921

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1443
SELECT - COALESCE ( + 50, 19, 22 DIV - COUNT( * ) ) + + 52 + 20 - - 72 + + + COUNT( * ) - - 13 + 85 * + 6 * + 38 AS col0
----
19488

skipif mysql # not compatible
query I rowsort label-1443
SELECT - COALESCE ( + 50, 19, 22 / - COUNT ( * ) ) + + 52 + 20 - - 72 + + + COUNT ( * ) - - 13 + 85 * + 6 * + 38 AS col0
----
19488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1444
SELECT DISTINCT COUNT( * ) * + - COALESCE ( 18, 31 + + COUNT( * ) + - 18 DIV + 88 * SUM( 99 ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT COUNT ( * ) * + - COALESCE ( 18, 31 + + COUNT ( * ) + - 18 / + 88 * SUM ( 99 ) ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT CASE + 26 WHEN + + 33 THEN - - 42 * - + ( COUNT( ALL 90 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT CASE + 26 WHEN + + 33 THEN - - 42 * - + ( COUNT ( ALL 90 ) ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 19 - 97 + - + 33
----
-111

query I rowsort
SELECT ALL + 91 - - + 38 AS col1
----
129

query I rowsort
SELECT - + 80 * - 0 * + ( - + 44 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT DISTINCT + 69 DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT + 69 / - 75 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL 15 - + + ( + - COUNT( * ) ) col1
----
16

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL 15 - + + ( + - COUNT ( * ) ) col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1451
SELECT ALL - 36 * NULLIF ( + 79, - 28 ) DIV + ( 54 ) + - 13
----
-65

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL - 36 * NULLIF ( + 79, - 28 ) / + ( 54 ) + - 13
----
-65

query I rowsort
SELECT ALL + 20 * 44 * + 55 + + + 75
----
48475

onlyif mysql # DIV for integer division: 
query I rowsort label-1453
SELECT DISTINCT 77 DIV + ( + 85 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT 77 / + ( + 85 ) AS col0
----
0

query I rowsort
SELECT - - 45 * - 33 + + NULLIF ( 7, + 79 )
----
-1478

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT MIN( ALL + 56 ) * - - ( - + COUNT( * ) ) + + - 6 + + 94 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1456
SELECT MIN ( ALL + 56 ) * - - ( - + COUNT ( * ) ) + + - 6 + + 94 AS col0
----
32

query II rowsort
SELECT ALL 18 * - - 36 AS col1, 52 * + 72
----
648
3744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1458
SELECT + CASE + SUM( - 49 ) WHEN - SUM( + 37 ) + + + 34 - CAST( NULL AS SIGNED ) THEN + ( - CAST( - - COALESCE ( - - 41, 54 + - 77 ) AS SIGNED ) ) + + 70 + + 77 ELSE NULL END * ( - + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1458
SELECT + CASE + SUM ( - 49 ) WHEN - SUM ( + 37 ) + + + 34 - CAST ( NULL AS INTEGER ) THEN + ( - CAST ( - - COALESCE ( - - 41, 54 + - 77 ) AS INTEGER ) ) + + 70 + + 77 ELSE NULL END * ( - + 72 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1459
SELECT - + 62 * + COUNT( - - CAST( - + 7 AS SIGNED ) ) + - ( + CAST( ( + 33 ) AS SIGNED ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-1459
SELECT - + 62 * + COUNT ( - - CAST ( - + 7 AS INTEGER ) ) + - ( + CAST ( ( + 33 ) AS INTEGER ) ) AS col0
----
-95

query I rowsort
SELECT + NULLIF ( 38, - ( - 4 ) ) AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1461
SELECT ALL COALESCE ( + 55, - + 67 ) * - + CAST( + - 41 AS SIGNED ) + 64
----
2319

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL COALESCE ( + 55, - + 67 ) * - + CAST ( + - 41 AS INTEGER ) + 64
----
2319

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT + CASE + + 45 WHEN - MIN( DISTINCT - CASE WHEN + 2 < NULL THEN + 7 END ) THEN 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1463
SELECT + CASE + + 45 WHEN - MIN ( DISTINCT - CASE WHEN + 2 < NULL THEN + 7 END ) THEN 78 END
----
NULL

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

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

query I rowsort
SELECT ALL + 98 * - 74 AS col0
----
-7252

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1466
SELECT + CASE + - COALESCE ( + AVG ( ALL - 86 ), COUNT( * ) ) WHEN - 59 THEN NULL WHEN - 8 * - COALESCE ( - COUNT( * ), + 7, - - 42 ) - 22 + - + COUNT( * ) THEN NULL ELSE + + 77 + + SUM( DISTINCT - 91 ) END / + ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1466
SELECT + CASE + - COALESCE ( + AVG ( ALL - 86 ), COUNT ( * ) ) WHEN - 59 THEN NULL WHEN - 8 * - COALESCE ( - COUNT ( * ), + 7, - - 42 ) - 22 + - + COUNT ( * ) THEN NULL ELSE + + 77 + + SUM ( DISTINCT - 91 ) END / + ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT - 74 * + 49
----
-3626

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL 23 * - 68 * - 96 * - COUNT( * ) + - 5 AS col2
----
-150149

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL 23 * - 68 * - 96 * - COUNT ( * ) + - 5 AS col2
----
-150149

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

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

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

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

query I rowsort
SELECT + 2 + + 69 AS col2
----
71

query I rowsort
SELECT - 7 - + ( NULLIF ( 47, 1 ) ) * 91
----
-4284

query I rowsort
SELECT - 84 * 61
----
-5124

query I rowsort
SELECT ALL ( - ( 61 ) ) AS col2
----
-61

query I rowsort
SELECT - 54 + + 94
----
40

query I rowsort
SELECT DISTINCT 19 - 62
----
-43

query I rowsort
SELECT - 30 + 51
----
21

query I rowsort
SELECT - 48 + - 82 AS col1
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1479
SELECT - 24 + + CASE 36 WHEN CAST( + 73 AS SIGNED ) THEN COUNT( * ) DIV ( - 88 ) ELSE 44 * 91 + - NULLIF ( + 99 + + 8 * COUNT( * ), SUM( 98 ) ) END * 93 AS col1
----
362397

skipif mysql # not compatible
query I rowsort label-1479
SELECT - 24 + + CASE 36 WHEN CAST ( + 73 AS INTEGER ) THEN COUNT ( * ) / ( - 88 ) ELSE 44 * 91 + - NULLIF ( + 99 + + 8 * COUNT ( * ), SUM ( 98 ) ) END * 93 AS col1
----
362397

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

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

query I rowsort
SELECT - 12 * 20
----
-240

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

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

query I rowsort
SELECT - 76 + 10
----
-66

query I rowsort
SELECT - 64 + - 14
----
-78

query I rowsort
SELECT + ( 58 ) + 98 * 2
----
254

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT - COUNT( ALL 60 ) * 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1486
SELECT - COUNT ( ALL 60 ) * 56 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT DISTINCT + ( CASE 79 WHEN COUNT( ALL 78 ) THEN 67 * COUNT( * ) + 28 * 74 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT + ( CASE 79 WHEN COUNT ( ALL 78 ) THEN 67 * COUNT ( * ) + 28 * 74 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1488
SELECT ALL 28 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL 28 / 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1489
SELECT + 88 DIV + 27 + 51
----
54

skipif mysql # not compatible
query I rowsort label-1489
SELECT + 88 / + 27 + 51
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT MAX( ALL - 20 ) * ( - 3 )
----
60

skipif mysql # not compatible
query I rowsort label-1490
SELECT MAX ( ALL - 20 ) * ( - 3 )
----
60

query I rowsort
SELECT DISTINCT + 57 + + ( - ( + 80 ) - 19 ) AS col2
----
-42

query I rowsort
SELECT ALL - 2 + + 57
----
55

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

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

query I rowsort
SELECT ALL 86 * 47
----
4042

query I rowsort
SELECT 65 * - 6 AS col2
----
-390

query I rowsort
SELECT 0 * - 50 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT DISTINCT 80 + 99 * + COALESCE ( 56, SUM( 4 ), 41, + 50 ) AS col2
----
5624

skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT 80 + 99 * + COALESCE ( 56, SUM ( 4 ), 41, + 50 ) AS col2
----
5624

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

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

query I rowsort
SELECT DISTINCT 85 * 88
----
7480

query I rowsort
SELECT ( - 91 ) * + 3 AS col1
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1501
SELECT - 25 * - NULLIF ( + 65, COUNT( * ) - + 34 * - CAST( MAX( DISTINCT 85 ) AS SIGNED ) ) + - 72 AS col1
----
1553

skipif mysql # not compatible
query I rowsort label-1501
SELECT - 25 * - NULLIF ( + 65, COUNT ( * ) - + 34 * - CAST ( MAX ( DISTINCT 85 ) AS INTEGER ) ) + - 72 AS col1
----
1553

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT ALL COUNT( * ) - 63 * COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL COUNT ( * ) - 63 * COUNT ( * )
----
-62

query I rowsort
SELECT ALL 79 - + 63
----
16

query I rowsort
SELECT 68 * 65 + COALESCE ( + 87, 43 + - 43 ) AS col0
----
4507

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT DISTINCT CASE MIN( - ( - 83 ) ) WHEN 27 * COUNT( * ) - 52 THEN + COUNT( * ) * MAX( - CASE WHEN 48 IS NULL THEN + 45 END ) + - 48 END - - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT CASE MIN ( - ( - 83 ) ) WHEN 27 * COUNT ( * ) - 52 THEN + COUNT ( * ) * MAX ( - CASE WHEN 48 IS NULL THEN + 45 END ) + - 48 END - - 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT ( - SUM( 71 ) ) * ( 21 )
----
-1491

skipif mysql # not compatible
query I rowsort label-1506
SELECT ( - SUM ( 71 ) ) * ( 21 )
----
-1491

query I rowsort
SELECT 25 * - 99 AS col0
----
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT - - CASE 55 WHEN - COUNT( * ) THEN 96 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT - - CASE 55 WHEN - COUNT ( * ) THEN 96 END AS col2
----
NULL

query I rowsort
SELECT + 87 + 1
----
88

query I rowsort
SELECT NULLIF ( 50, 4 * - 83 )
----
50

query I rowsort
SELECT - 81 * ( 20 ) AS col2
----
-1620

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

skipif mysql # not compatible
query I rowsort label-1512
SELECT 4 * COUNT ( * )
----
4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1514
SELECT ALL - COUNT( - 58 ) DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL - COUNT ( - 58 ) / + 35
----
0

query I rowsort
SELECT ( + 83 ) * - 21
----
-1743

query I rowsort
SELECT DISTINCT + + 20 * - 19 col2
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL - + 58 + SUM( DISTINCT + 1 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL - + 58 + SUM ( DISTINCT + 1 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT DISTINCT - CASE 15 WHEN 18 THEN 67 WHEN + CASE 29 WHEN 75 + - 75 * COUNT( * ) THEN + 16 * 68 ELSE NULL END + 0 * COUNT( * ) THEN NULL ELSE - 68 END + 31 * - 83 AS col0
----
-2505

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT - CASE 15 WHEN 18 THEN 67 WHEN + CASE 29 WHEN 75 + - 75 * COUNT ( * ) THEN + 16 * 68 ELSE NULL END + 0 * COUNT ( * ) THEN NULL ELSE - 68 END + 31 * - 83 AS col0
----
-2505

query I rowsort
SELECT ALL + 98 * + 39
----
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT 72 * + 69 * CASE 69 WHEN + 51 / + COALESCE ( + 85, - COUNT( * ) * 11, 90 * 53 ) - - COUNT( * ) * + COUNT( * ) THEN NULL ELSE CASE NULLIF ( 74, 45 ) WHEN 34 THEN + 61 + + 9 * + 25 END * - 63 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1520
SELECT 72 * + 69 * CASE 69 WHEN + 51 / + COALESCE ( + 85, - COUNT ( * ) * 11, 90 * 53 ) - - COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE CASE NULLIF ( 74, 45 ) WHEN 34 THEN + 61 + + 9 * + 25 END * - 63 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT ALL + 70 + + ( - ( CASE - 90 WHEN + CASE - 28 WHEN + 18 THEN + 9 - 4 WHEN - MIN( - 5 ) THEN NULL ELSE NULL END + + 90 THEN + COUNT( * ) * 80 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL + 70 + + ( - ( CASE - 90 WHEN + CASE - 28 WHEN + 18 THEN + 9 - 4 WHEN - MIN ( - 5 ) THEN NULL ELSE NULL END + + 90 THEN + COUNT ( * ) * 80 END ) )
----
NULL

query I rowsort
SELECT DISTINCT - 16 * + 42 * ( - 82 ) AS col0
----
55104

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT 84 * - - MIN( 34 )
----
2856

skipif mysql # not compatible
query I rowsort label-1523
SELECT 84 * - - MIN ( 34 )
----
2856

query I rowsort
SELECT 55 + 27 * - 93
----
-2456

query I rowsort
SELECT ALL - 98 * + 70
----
-6860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1526
SELECT 44 DIV - 80 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1526
SELECT 44 / - 80 + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1527
SELECT DISTINCT - COALESCE ( CAST( 53 AS SIGNED ), + 29, + 18 + ( - 59 - 82 ) ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT - COALESCE ( CAST ( 53 AS INTEGER ), + 29, + 18 + ( - 59 - 82 ) ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT ALL COUNT( * ) - 25 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL COUNT ( * ) - 25 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT DISTINCT 74 / + + NULLIF ( ( - CASE 74 WHEN 59 / 63 THEN 40 END ), NULLIF ( - 9, 13 ) / - COUNT( - 35 * 44 + 35 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT 74 / + + NULLIF ( ( - CASE 74 WHEN 59 / 63 THEN 40 END ), NULLIF ( - 9, 13 ) / - COUNT ( - 35 * 44 + 35 ) )
----
NULL

query I rowsort
SELECT DISTINCT + 26 - + - 53 * 58
----
3100

query I rowsort
SELECT ALL 9 * 92 AS col2
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT ALL + COUNT( * ) - 92
----
-91

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL + COUNT ( * ) - 92
----
-91

query I rowsort
SELECT DISTINCT - 54 * - 51
----
2754

query I rowsort
SELECT ALL 73 * - ( + ( - 74 ) )
----
5402

query I rowsort
SELECT DISTINCT ( 51 ) * + 4 AS col1
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT MAX( - 17 ) + 96 * 64
----
6127

skipif mysql # not compatible
query I rowsort label-1536
SELECT MAX ( - 17 ) + 96 * 64
----
6127

query I rowsort
SELECT DISTINCT - CASE - 61 WHEN 0 THEN NULL ELSE + 34 END AS col1
----
-34

query I rowsort
SELECT ALL 55 * + 5 AS col0
----
275

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

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

query I rowsort
SELECT 93 * 44 AS col0
----
4092

query I rowsort
SELECT 39 + - 51 * + 13
----
-624

query I rowsort
SELECT + NULLIF ( - 86, + 19 + - 83 ) + + 92 * + 28 col2
----
2490

query I rowsort
SELECT 72 * 35 + 95 * + 12 AS col0
----
3660

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT + 78 * - CASE 48 WHEN NULLIF ( 42, + COUNT( * ) ) THEN NULL WHEN ( - 59 ) THEN - 52 ELSE + 0 END
----
0

skipif mysql # not compatible
query I rowsort label-1544
SELECT + 78 * - CASE 48 WHEN NULLIF ( 42, + COUNT ( * ) ) THEN NULL WHEN ( - 59 ) THEN - 52 ELSE + 0 END
----
0

query I rowsort
SELECT + 88 - - 92
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-1546
SELECT ALL + 88 + 76 - 76 DIV 18 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL + 88 + 76 - 76 / 18 AS col2
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT CAST( NULL AS SIGNED ) + + COALESCE ( 81, - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT CAST ( NULL AS INTEGER ) + + COALESCE ( 81, - 49 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL ( + - ( 75 ) ) + - 42 * - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL ( + - ( 75 ) ) + - 42 * - COUNT ( * )
----
-33

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

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT COUNT ( ALL + 0 ) AS col0
----
1

query I rowsort
SELECT ALL 28 + - 40
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT + 81 + + MIN( 9 ) + 13 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-1551
SELECT + 81 + + MIN ( 9 ) + 13 AS col2
----
103

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

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

query I rowsort
SELECT - 95 + + 63 + + 71 * 24 * + 42
----
71536

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1554
SELECT 73 AS col0, + COUNT( * ) * 30 DIV COALESCE ( ( 89 ) * 69, - 75 )
----
73
0

skipif mysql # not compatible
query II rowsort label-1554
SELECT 73 AS col0, + COUNT ( * ) * 30 / COALESCE ( ( 89 ) * 69, - 75 )
----
73
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT + MAX( ALL - + 61 ) * - + 17 + + 69 AS col1
----
1106

skipif mysql # not compatible
query I rowsort label-1555
SELECT + MAX ( ALL - + 61 ) * - + 17 + + 69 AS col1
----
1106

query I rowsort
SELECT + 51 * + + 85 AS col1
----
4335

query I rowsort
SELECT - 57 + - ( - - 11 ) * 19 AS col1
----
-266

query I rowsort
SELECT - COALESCE ( + + 13, - 46, 96 ) AS col1
----
-13

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1560
SELECT ALL 17 * - 36 - - + NULLIF ( CAST( NULL AS SIGNED ), 89 ) + 56 * 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL 17 * - 36 - - + NULLIF ( CAST ( NULL AS INTEGER ), 89 ) + 56 * 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT COALESCE ( 37, + SUM( 41 ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1561
SELECT COALESCE ( 37, + SUM ( 41 ) ) AS col2
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-1562
SELECT ALL + 16 AS col1, 34 DIV 6 AS col2
----
16
5

skipif mysql # not compatible
query II rowsort label-1562
SELECT ALL + 16 AS col1, 34 / 6 AS col2
----
16
5

query I rowsort
SELECT - 21 * - 89 * + 67
----
125223

query I rowsort
SELECT ALL - 67 * - - 90 AS col2
----
-6030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1565
SELECT ALL + ( - - MIN( ALL + CAST( - 69 AS SIGNED ) ) ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL + ( - - MIN ( ALL + CAST ( - 69 AS INTEGER ) ) ) AS col0
----
-69

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

skipif mysql # not compatible
query I rowsort label-1566
SELECT - CAST ( NULL AS INTEGER ) / 30 + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT CASE WHEN ( 10 ) = ( 47 ) THEN - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1567
SELECT CASE WHEN ( 10 ) = ( 47 ) THEN - COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 73 + + 94
----
21

query I rowsort
SELECT + 85 * + 67 AS col0
----
5695

query I rowsort
SELECT - 91 * + 34
----
-3094

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1571
SELECT ALL - CASE - 97 WHEN 78 + + 80 THEN COUNT( * ) * + 16 WHEN 29 THEN NULL END * CASE + 49 * 83 WHEN - COUNT( * ) THEN COALESCE ( 45, 75 * - 45 + 0 * 49 ) * - SUM( 29 + - 56 ) + CAST( NULL AS DECIMAL ) ELSE + NULLIF ( - 1, - ( - COUNT( * ) ) * + 75 + 0 ) * COUNT( ALL + 9 - + 16 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL - CASE - 97 WHEN 78 + + 80 THEN COUNT ( * ) * + 16 WHEN 29 THEN NULL END * CASE + 49 * 83 WHEN - COUNT ( * ) THEN COALESCE ( 45, 75 * - 45 + 0 * 49 ) * - SUM ( 29 + - 56 ) + CAST ( NULL AS REAL ) ELSE + NULLIF ( - 1, - ( - COUNT ( * ) ) * + 75 + 0 ) * COUNT ( ALL + 9 - + 16 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1572
SELECT COALESCE ( COUNT( * ), + - ( 99 ), - ( 4 ) DIV 15 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1572
SELECT COALESCE ( COUNT ( * ), + - ( 99 ), - ( 4 ) / 15 ) AS col2
----
1

query I rowsort
SELECT + COALESCE ( + 60, + 23 ) * 98 + + 98 AS col2
----
5978

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT NULLIF ( COUNT( * ), - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-1574
SELECT NULLIF ( COUNT ( * ), - 5 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT 77 * - - COUNT( * ) + - 57
----
20

skipif mysql # not compatible
query I rowsort label-1575
SELECT 77 * - - COUNT ( * ) + - 57
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT + SUM( + + 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT + SUM ( + + 57 ) AS col1
----
57

query I rowsort
SELECT COALESCE ( + 33, - 80 * 92 + 42 ) AS col1
----
33

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

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

query II rowsort
SELECT + 46 AS col0, + 68 AS col1
----
46
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ALL + COUNT( - + 74 ) * + 76
----
76

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL + COUNT ( - + 74 ) * + 76
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1581
SELECT - + COUNT( * ) + - 44 DIV + 61 * 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1581
SELECT - + COUNT ( * ) + - 44 / + 61 * 41 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT 72 * + + 47 * - - 33 * 2 + + 39 * - 60 + + COUNT( * )
----
221005

skipif mysql # not compatible
query I rowsort label-1582
SELECT 72 * + + 47 * - - 33 * 2 + + 39 * - 60 + + COUNT ( * )
----
221005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1583
SELECT ALL + CAST( NULL AS SIGNED ) * - - 16 + + - MAX( 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 16 + + - MAX ( 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT - 2 * + COALESCE ( - COALESCE ( - 35, 28 + ( 93 ), 33 ), - COUNT( ALL + 94 ) + 77, 47 + - 0 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-1584
SELECT - 2 * + COALESCE ( - COALESCE ( - 35, 28 + ( 93 ), 33 ), - COUNT ( ALL + 94 ) + 77, 47 + - 0 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT DISTINCT - + SUM( ALL + 92 ) * - CASE 44 WHEN 43 THEN ( - NULLIF ( 60, + 76 ) ) WHEN - 21 * - COUNT( DISTINCT - 73 * - 87 ) THEN NULL END + 56 * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT - + SUM ( ALL + 92 ) * - CASE 44 WHEN 43 THEN ( - NULLIF ( 60, + 76 ) ) WHEN - 21 * - COUNT ( DISTINCT - 73 * - 87 ) THEN NULL END + 56 * - 85
----
NULL

query I rowsort
SELECT ALL 55 + + 95 AS col0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1587
SELECT DISTINCT - + CAST( - COUNT( * ) AS SIGNED ) + + - 88 col0
----
-87

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT - + CAST ( - COUNT ( * ) AS INTEGER ) + + - 88 col0
----
-87

query I rowsort
SELECT ALL 69 + 81 AS col1
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1589
SELECT ALL 42 col0, - COUNT( DISTINCT + CAST( NULL AS SIGNED ) )
----
42
0

skipif mysql # not compatible
query II rowsort label-1589
SELECT ALL 42 col0, - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
42
0

query I rowsort
SELECT DISTINCT + + 49 + 89 AS col1
----
138

query I rowsort
SELECT DISTINCT 0 + + 71 AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-1592
SELECT - 21 col2, COUNT( * )
----
-21
1

skipif mysql # not compatible
query II rowsort label-1592
SELECT - 21 col2, COUNT ( * )
----
-21
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1593
SELECT + MIN( - ( - + 77 ) ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1593
SELECT + MIN ( - ( - + 77 ) ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 57 * 77 AS col1
----
4389

query I rowsort
SELECT ALL 63 * - 28
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT ALL 39 - - COUNT( * ) + - 66
----
-26

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL 39 - - COUNT ( * ) + - 66
----
-26

query I rowsort
SELECT DISTINCT 98 * - + 16 AS col1
----
-1568

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT ALL 10 DIV - + ( + + 51 ) * 75 + 6 * 92
----
552

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL 10 / - + ( + + 51 ) * 75 + 6 * 92
----
552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1599
SELECT ALL CASE - - 77 WHEN + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) THEN - COUNT( * ) + 52 WHEN - 22 THEN NULL WHEN 77 / CAST( NULL AS SIGNED ) THEN 59 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL CASE - - 77 WHEN + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN - COUNT ( * ) + 52 WHEN - 22 THEN NULL WHEN 77 / CAST ( NULL AS INTEGER ) THEN 59 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL COALESCE ( COUNT( * ), + + 75, - 57 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL COALESCE ( COUNT ( * ), + + 75, - 57 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT + CASE + COUNT( * ) WHEN - 16 * - COUNT( * ) THEN NULL ELSE - 62 END + ( + COUNT( * ) + + 5 * + 92 ) AS col1
----
399

skipif mysql # not compatible
query I rowsort label-1601
SELECT + CASE + COUNT ( * ) WHEN - 16 * - COUNT ( * ) THEN NULL ELSE - 62 END + ( + COUNT ( * ) + + 5 * + 92 ) AS col1
----
399

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1602
SELECT + ( ( - ( - - CASE + SUM( + 64 ) WHEN 21 * + ( + ( COUNT( * ) ) ) THEN + 12 WHEN CAST( NULL AS DECIMAL ) THEN - 57 * - 66 END ) ) ) / 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT + ( ( - ( - - CASE + SUM ( + 64 ) WHEN 21 * + ( + ( COUNT ( * ) ) ) THEN + 12 WHEN CAST ( NULL AS REAL ) THEN - 57 * - 66 END ) ) ) / 43 AS col2
----
NULL

query I rowsort
SELECT - 91 * - 13 col0
----
1183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1604
SELECT + 62 + 65 + COUNT( * ) * 93 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT + 62 + 65 + COUNT ( * ) * 93 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT + COUNT( * ) * - 96 * + - 43 + + 53
----
4181

skipif mysql # not compatible
query I rowsort label-1605
SELECT + COUNT ( * ) * - 96 * + - 43 + + 53
----
4181

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT + 31 * 13 DIV + 82 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1606
SELECT + 31 * 13 / + 82 AS col0
----
4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1608
SELECT - + 18 + + - 95 DIV COUNT( * ) AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-1608
SELECT - + 18 + + - 95 / COUNT ( * ) AS col1
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1609
SELECT ALL + COALESCE ( + 60, MAX( ( ( 74 ) ) ) + 79 DIV 64 )
----
60

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL + COALESCE ( + 60, MAX ( ( ( 74 ) ) ) + 79 / 64 )
----
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT - 33 * 15 * + COUNT( * ) AS col0
----
-495

skipif mysql # not compatible
query I rowsort label-1611
SELECT - 33 * 15 * + COUNT ( * ) AS col0
----
-495

query I rowsort
SELECT ALL + 63 * - 54 + 17 * + 35 AS col1
----
-2807

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT - 0 * COUNT( * ) + + 47 + 81 + + COALESCE ( - COUNT( * ) + 81, COALESCE ( 66, - 10 ) ) AS col1
----
208

skipif mysql # not compatible
query I rowsort label-1613
SELECT - 0 * COUNT ( * ) + + 47 + 81 + + COALESCE ( - COUNT ( * ) + 81, COALESCE ( 66, - 10 ) ) AS col1
----
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1614
SELECT DISTINCT - 84 * ( CAST( - CASE 14 WHEN CASE 56 WHEN + ( + 13 ) * + 44 THEN NULL WHEN 74 THEN 88 END THEN + 83 * + ( COUNT( * ) ) ELSE NULL END AS SIGNED ) ) + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT - 84 * ( CAST ( - CASE 14 WHEN CASE 56 WHEN + ( + 13 ) * + 44 THEN NULL WHEN 74 THEN 88 END THEN + 83 * + ( COUNT ( * ) ) ELSE NULL END AS INTEGER ) ) + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT DISTINCT + NULLIF ( 21, 45 * + + NULLIF ( + 41, 68 ) * COUNT( * ) ) * + 92 AS col1
----
1932

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT + NULLIF ( 21, 45 * + + NULLIF ( + 41, 68 ) * COUNT ( * ) ) * + 92 AS col1
----
1932

query I rowsort
SELECT ALL + ( 33 ) + - 98 + + 81 AS col1
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT COUNT( * ) - - CASE - - 20 WHEN - 70 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT COUNT ( * ) - - CASE - - 20 WHEN - 70 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT + CASE - COUNT( * ) WHEN - 27 THEN 86 * + 21 WHEN 93 + - 7 THEN NULL WHEN ( 29 ) THEN NULL ELSE - 55 END
----
-55

skipif mysql # not compatible
query I rowsort label-1619
SELECT + CASE - COUNT ( * ) WHEN - 27 THEN 86 * + 21 WHEN 93 + - 7 THEN NULL WHEN ( 29 ) THEN NULL ELSE - 55 END
----
-55

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1620
SELECT - CAST( 63 AS SIGNED ), CAST( NULL AS DECIMAL ) / 11 * 50 AS col1
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-1620
SELECT - CAST ( 63 AS INTEGER ), CAST ( NULL AS REAL ) / 11 * 50 AS col1
----
-63
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1621
SELECT 78 - - - CAST( NULL AS SIGNED ) + - - ( - + COALESCE ( + 20, 26 + 90 ) ) * - MAX( 30 * 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT 78 - - - CAST ( NULL AS INTEGER ) + - - ( - + COALESCE ( + 20, 26 + 90 ) ) * - MAX ( 30 * 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT - SUM( 47 ) * - 52 col1
----
2444

skipif mysql # not compatible
query I rowsort label-1622
SELECT - SUM ( 47 ) * - 52 col1
----
2444

query I rowsort
SELECT 81 + + + 81
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT + 99 - + 85 - 38 * - - COUNT( * ) * 71 AS col0
----
-2684

skipif mysql # not compatible
query I rowsort label-1624
SELECT + 99 - + 85 - 38 * - - COUNT ( * ) * 71 AS col0
----
-2684

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT ALL + + MIN( ALL - 16 ) * - + SUM( DISTINCT + 20 ) AS col1
----
320

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL + + MIN ( ALL - 16 ) * - + SUM ( DISTINCT + 20 ) AS col1
----
320

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

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL 22 * - 40 / - COUNT ( * ) / + ( + COUNT ( * ) )
----
880

query I rowsort
SELECT 75 + 75 AS col0
----
150

query I rowsort
SELECT 81 * + ( 73 ) col1
----
5913

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1629
SELECT ALL 4 AS col2, 68 DIV - - ( + + 45 ) * ( COUNT( * ) ) + COUNT( * ) + 73 AS col1
----
4
75

skipif mysql # not compatible
query II rowsort label-1629
SELECT ALL 4 AS col2, 68 / - - ( + + 45 ) * ( COUNT ( * ) ) + COUNT ( * ) + 73 AS col1
----
4
75

query I rowsort
SELECT 90 + - + 95 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT COUNT( * ) + + - 26 + - ( + 45 ) + - 20 + + CASE COUNT( * ) WHEN - 90 / + 42 + - 12 THEN 36 * - 61 WHEN - 62 * - 20 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1631
SELECT COUNT ( * ) + + - 26 + - ( + 45 ) + - 20 + + CASE COUNT ( * ) WHEN - 90 / + 42 + - 12 THEN 36 * - 61 WHEN - 62 * - 20 THEN NULL END col1
----
NULL

query I rowsort
SELECT 71 * 60 AS col1
----
4260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1633
SELECT COUNT( * ) * - NULLIF ( 76, + CAST( NULL AS SIGNED ) + - 34 DIV + 33 ) DIV - 1 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1633
SELECT COUNT ( * ) * - NULLIF ( 76, + CAST ( NULL AS INTEGER ) + - 34 / + 33 ) / - 1 AS col1
----
76

query I rowsort
SELECT 9 + + + 86 * 20 + - - 36 + 42 col0
----
1807

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT COALESCE ( - - MIN( + - 88 ), + 64 * - COUNT( * ) ) + NULLIF ( - 20, 23 * - 18 ) AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-1635
SELECT COALESCE ( - - MIN ( + - 88 ), + 64 * - COUNT ( * ) ) + NULLIF ( - 20, 23 * - 18 ) AS col2
----
-108

query I rowsort
SELECT DISTINCT ( + 90 ) * - 8
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT NULLIF ( COALESCE ( COUNT( * ), - 17 ), 7 * 82 - - 43 * + 72 ) * COALESCE ( - ( - SUM( ALL 76 ) ) * 43, COALESCE ( 23, - 50 + COUNT( * ) ), 2 + COUNT( * ) ) AS col0
----
3268

skipif mysql # not compatible
query I rowsort label-1637
SELECT NULLIF ( COALESCE ( COUNT ( * ), - 17 ), 7 * 82 - - 43 * + 72 ) * COALESCE ( - ( - SUM ( ALL 76 ) ) * 43, COALESCE ( 23, - 50 + COUNT ( * ) ), 2 + COUNT ( * ) ) AS col0
----
3268

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

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

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

skipif mysql # not compatible
query I rowsort label-1639
SELECT CAST ( NULL AS INTEGER ) * - 74 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1640
SELECT CAST( NULL AS SIGNED ) / 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1640
SELECT CAST ( NULL AS INTEGER ) / 47 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT + MAX( - 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1642
SELECT + MAX ( - 43 ) AS col1
----
-43

query II rowsort
SELECT 9 + + 46 + + 2, - 60 + + - 59 - - 86 * - 79 AS col1
----
57
-6913

query I rowsort
SELECT - 75 * - + 38
----
2850

query I rowsort
SELECT ( + + 72 ) + - - 22 * - COALESCE ( + 94, 67 * 31 )
----
-1996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1646
SELECT ALL - MAX( DISTINCT - 99 ) + - + COALESCE ( + 41, + + 67, - 8, + MAX( DISTINCT + 9 ) ) DIV 9 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL - MAX ( DISTINCT - 99 ) + - + COALESCE ( + 41, + + 67, - 8, + MAX ( DISTINCT + 9 ) ) / 9 AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1647
SELECT ALL - COALESCE ( - 50, - CAST( - COUNT( * ) AS SIGNED ) + + 13 + 3 ) + 46 DIV + 22 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL - COALESCE ( - 50, - CAST ( - COUNT ( * ) AS INTEGER ) + + 13 + 3 ) + 46 / + 22 AS col2
----
52

query I rowsort
SELECT ALL - - 24 + - 54
----
-30

query I rowsort
SELECT DISTINCT 90 + + 1 col0
----
91

query II rowsort
SELECT ALL - 37 AS col1, 74
----
-37
74

query I rowsort
SELECT 24 + 67 AS col1
----
91

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1653
SELECT 56, CAST( + - 31 AS SIGNED ) * + 82 col1
----
56
-2542

skipif mysql # not compatible
query II rowsort label-1653
SELECT 56, CAST ( + - 31 AS INTEGER ) * + 82 col1
----
56
-2542

query I rowsort
SELECT DISTINCT + + 19 * - 4 AS col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT 93 + + 32 DIV 83
----
93

skipif mysql # not compatible
query I rowsort label-1655
SELECT 93 + + 32 / 83
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1656
SELECT DISTINCT + 67 AS col0, + 62 * + CASE NULLIF ( - - 49, + 75 ) WHEN + 49 THEN MIN( DISTINCT - 60 ) END
----
67
-3720

skipif mysql # not compatible
query II rowsort label-1656
SELECT DISTINCT + 67 AS col0, + 62 * + CASE NULLIF ( - - 49, + 75 ) WHEN + 49 THEN MIN ( DISTINCT - 60 ) END
----
67
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT MIN( ALL 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT MIN ( ALL 25 ) AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1658
SELECT DISTINCT + COALESCE ( + CASE - COALESCE ( + + 13, COUNT( * ), 5 * - 64 ) WHEN 59 THEN NULL WHEN COUNT( * ) * 99 + + NULLIF ( 5, - MIN( + 46 ) + CAST( 51 AS SIGNED ) ) THEN COUNT( * ) + AVG ( DISTINCT + 43 ) END, CAST( NULL AS SIGNED ) + 3 ) - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT + COALESCE ( + CASE - COALESCE ( + + 13, COUNT ( * ), 5 * - 64 ) WHEN 59 THEN NULL WHEN COUNT ( * ) * 99 + + NULLIF ( 5, - MIN ( + 46 ) + CAST ( 51 AS INTEGER ) ) THEN COUNT ( * ) + AVG ( DISTINCT + 43 ) END, CAST ( NULL AS INTEGER ) + 3 ) - 73
----
NULL

query II rowsort
SELECT ALL 1, 0 * - 27 AS col1
----
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT 71 DIV 6 col1
----
11

skipif mysql # not compatible
query I rowsort label-1660
SELECT 71 / 6 col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1661
SELECT DISTINCT - 35 DIV + + 53 AS col2, - COUNT( * ) DIV + + 87 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-1661
SELECT DISTINCT - 35 / + + 53 AS col2, - COUNT ( * ) / + + 87 AS col2
----
0
0

query I rowsort
SELECT 19 * + 6 AS col2
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-1663
SELECT - 15, + SUM( 86 ) + - + 19 AS col0
----
-15
67

skipif mysql # not compatible
query II rowsort label-1663
SELECT - 15, + SUM ( 86 ) + - + 19 AS col0
----
-15
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1664
SELECT ALL - COALESCE ( + NULLIF ( + - ( + ( - 19 ) ), - 24 * 45 ), - ( + NULLIF ( CASE NULLIF ( 69, SUM( 87 ) ) WHEN 88 THEN - COUNT( * ) * + CAST( NULL AS SIGNED ) WHEN + 84 / 40 THEN NULL END, NULLIF ( 75, - 76 ) / 49 + ( + 16 ) ) ) ) * + 73
----
-1387

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL - COALESCE ( + NULLIF ( + - ( + ( - 19 ) ), - 24 * 45 ), - ( + NULLIF ( CASE NULLIF ( 69, SUM ( 87 ) ) WHEN 88 THEN - COUNT ( * ) * + CAST ( NULL AS INTEGER ) WHEN + 84 / 40 THEN NULL END, NULLIF ( 75, - 76 ) / 49 + ( + 16 ) ) ) ) * + 73
----
-1387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1665
SELECT - 69 AS col2, - COUNT( * ) - + AVG ( - 85 ) / SUM( - + CAST( NULL AS SIGNED ) ) - 60 * COALESCE ( COALESCE ( - 0, COALESCE ( 50, 90 - 62, + 9 * - 9 ), 39 - 35 ), 24 * + 43, COUNT( * ) )
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-1665
SELECT - 69 AS col2, - COUNT ( * ) - + AVG ( - 85 ) / SUM ( - + CAST ( NULL AS INTEGER ) ) - 60 * COALESCE ( COALESCE ( - 0, COALESCE ( 50, 90 - 62, + 9 * - 9 ), 39 - 35 ), 24 * + 43, COUNT ( * ) )
----
-69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT 6 * - 8 * CASE - MAX( ALL - + 82 ) WHEN + COUNT( * ) THEN + CASE WHEN NOT COUNT( * ) BETWEEN 77 AND ( ( + COUNT( - 48 ) ) ) THEN NULL WHEN NULL IS NULL THEN NULL ELSE - 98 END * 3 WHEN + 75 * COUNT( * ) THEN NULL END * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT 6 * - 8 * CASE - MAX ( ALL - + 82 ) WHEN + COUNT ( * ) THEN + CASE WHEN NOT COUNT ( * ) BETWEEN 77 AND ( ( + COUNT ( - 48 ) ) ) THEN NULL WHEN NULL IS NULL THEN NULL ELSE - 98 END * 3 WHEN + 75 * COUNT ( * ) THEN NULL END * 62
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1667
SELECT 9 DIV - CAST( 42 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1667
SELECT 9 / - CAST ( 42 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1668
SELECT DISTINCT MIN( DISTINCT CAST( - 65 AS SIGNED ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT MIN ( DISTINCT CAST ( - 65 AS INTEGER ) ) AS col2
----
-65

query I rowsort
SELECT DISTINCT 44 + - 64
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1670
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) + NULLIF ( - - SUM( ALL - 86 ), 39 + COUNT( * ) ) - 74 / 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) + NULLIF ( - - SUM ( ALL - 86 ), 39 + COUNT ( * ) ) - 74 / 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT COUNT( * ) - + 79
----
-78

skipif mysql # not compatible
query I rowsort label-1671
SELECT COUNT ( * ) - + 79
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-1672
SELECT - 37, - ( - - 11 ) * + COUNT( * ) + - COUNT( * ) AS col0
----
-37
-12

skipif mysql # not compatible
query II rowsort label-1672
SELECT - 37, - ( - - 11 ) * + COUNT ( * ) + - COUNT ( * ) AS col0
----
-37
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1673
SELECT ALL + 25 * CAST( NULL AS SIGNED ) + 85 + - 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL + 25 * CAST ( NULL AS INTEGER ) + 85 + - 87 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT COALESCE ( 22, + 7 * - - 5 + 21 * + 93 * + CAST( NULL AS SIGNED ), ( - 50 ), - ( 76 ) )
----
22

skipif mysql # not compatible
query I rowsort label-1674
SELECT COALESCE ( 22, + 7 * - - 5 + 21 * + 93 * + CAST ( NULL AS INTEGER ), ( - 50 ), - ( 76 ) )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT COUNT( * ) * - 22 * - COUNT( * ) + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1675
SELECT COUNT ( * ) * - 22 * - COUNT ( * ) + COUNT ( * ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1676
SELECT DISTINCT + NULLIF ( + 87, - CAST( COUNT( DISTINCT 62 ) AS SIGNED ) )
----
87

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT + NULLIF ( + 87, - CAST ( COUNT ( DISTINCT 62 ) AS INTEGER ) )
----
87

query I rowsort
SELECT DISTINCT - 68 * - COALESCE ( + 98, + 75 + - 58 ) + + CASE - 97 WHEN + ( - 59 ) * + 16 THEN - 3 WHEN + ( 57 ) THEN NULL ELSE 53 * ( ( + 19 ) ) END AS col1
----
7671

query II rowsort
SELECT DISTINCT + 44 AS col1, - 49 AS col2
----
44
-49

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

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL COUNT ( * ) * + 94 - + COUNT ( * ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT + COALESCE ( - 12, - 41 + - - 93 * + + 53, - - 7 ) * COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1680
SELECT + COALESCE ( - 12, - 41 + - - 93 * + + 53, - - 7 ) * COUNT ( * ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1681
SELECT - 5 AS col2, + NULLIF ( + 45, 97 + - 8 - - 19 + - 92 ) * + COUNT( * )
----
-5
45

skipif mysql # not compatible
query II rowsort label-1681
SELECT - 5 AS col2, + NULLIF ( + 45, 97 + - 8 - - 19 + - 92 ) * + COUNT ( * )
----
-5
45

query I rowsort
SELECT + 26 * - 61 + + + 87 + - - 29
----
-1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1683
SELECT - CASE 12 WHEN + - 85 + + 67 THEN - - ( - - CAST( 55 AS SIGNED ) ) WHEN NULLIF ( COUNT( * ), 14 ) / CAST( + ( CAST( 59 AS SIGNED ) ) AS SIGNED ) + + 69 THEN NULL ELSE 40 * + 5 END * 90 - 3 * 16
----
-18048

skipif mysql # not compatible
query I rowsort label-1683
SELECT - CASE 12 WHEN + - 85 + + 67 THEN - - ( - - CAST ( 55 AS INTEGER ) ) WHEN NULLIF ( COUNT ( * ), 14 ) / CAST ( + ( CAST ( 59 AS INTEGER ) ) AS INTEGER ) + + 69 THEN NULL ELSE 40 * + 5 END * 90 - 3 * 16
----
-18048

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT ( - - 87 ) * - + 30 + MIN( DISTINCT - 41 ) AS col1
----
-2651

skipif mysql # not compatible
query I rowsort label-1685
SELECT ( - - 87 ) * - + 30 + MIN ( DISTINCT - 41 ) AS col1
----
-2651

query II rowsort
SELECT DISTINCT + 59, - 17 AS col0
----
59
-17

query I rowsort
SELECT ALL + + NULLIF ( - - 45, + - 49 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL CASE + COUNT( * ) WHEN + 23 * + ( 51 ) * + - ( COUNT( * ) ) * - 6 - + 66 * - 92 THEN 68 + 92 * 45 WHEN 62 THEN SUM( - 11 ) END * CASE 47 WHEN COUNT( * ) THEN NULL ELSE 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL CASE + COUNT ( * ) WHEN + 23 * + ( 51 ) * + - ( COUNT ( * ) ) * - 6 - + 66 * - 92 THEN 68 + 92 * 45 WHEN 62 THEN SUM ( - 11 ) END * CASE 47 WHEN COUNT ( * ) THEN NULL ELSE 90 END
----
NULL

query I rowsort
SELECT + 12 * 48 AS col0
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1690
SELECT ALL 51 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL 51 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT + ( 87 ) - - 16 + NULLIF ( + - 14, COUNT( * ) + + 92 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1691
SELECT + ( 87 ) - - 16 + NULLIF ( + - 14, COUNT ( * ) + + 92 ) AS col2
----
89

query I rowsort
SELECT + 25 * - - 6
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT + 8 * - - ( - - ( + + COUNT( * ) ) ) - 76 * + 46
----
-3488

skipif mysql # not compatible
query I rowsort label-1693
SELECT + 8 * - - ( - - ( + + COUNT ( * ) ) ) - 76 * + 46
----
-3488

query I rowsort
SELECT DISTINCT + 46 * + 51
----
2346

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

skipif mysql # not compatible
query I rowsort label-1695
SELECT MIN ( ALL - - 32 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1696
SELECT + 69 * COUNT( * ) DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1696
SELECT + 69 * COUNT ( * ) / - 95 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1697
SELECT - 75 * + 46 AS col0, - COUNT( * )
----
-3450
-1

skipif mysql # not compatible
query II rowsort label-1697
SELECT - 75 * + 46 AS col0, - COUNT ( * )
----
-3450
-1

query I rowsort
SELECT ALL 80 * 17
----
1360

query II rowsort
SELECT + 86 + 38, 70 * + + 3 AS col1
----
124
210

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT ALL SUM( DISTINCT + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL SUM ( DISTINCT + 51 ) AS col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT + 39 + - 70 DIV + 29
----
37

skipif mysql # not compatible
query I rowsort label-1702
SELECT + 39 + - 70 / + 29
----
37

query I rowsort
SELECT ALL 45 + - 94 + + + 76
----
27

query I rowsort
SELECT ALL + 50 + + 87 + - + ( - + 91 )
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT ALL - 77 DIV + 29
----
-2

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL - 77 / + 29
----
-2

query I rowsort
SELECT DISTINCT - 5 + ( 27 ) AS col2
----
22

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1708
SELECT - 61 + - - 12 AS col1, + COUNT( * )
----
-49
1

skipif mysql # not compatible
query II rowsort label-1708
SELECT - 61 + - - 12 AS col1, + COUNT ( * )
----
-49
1

query I rowsort
SELECT + 73 * + 41
----
2993

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT - 25 DIV + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT - 25 / + 48 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1712
SELECT ALL 27 + - 87 * + 29 + - - NULLIF ( + - 41, CAST( NULL AS SIGNED ) / - ( + COALESCE ( CASE 2 WHEN COUNT( * ) THEN 95 ELSE NULL END, + SUM( DISTINCT + ( - 97 ) ) - 43, + 81 ) ) * + 50 ) AS col1
----
-2537

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL 27 + - 87 * + 29 + - - NULLIF ( + - 41, CAST ( NULL AS INTEGER ) / - ( + COALESCE ( CASE 2 WHEN COUNT ( * ) THEN 95 ELSE NULL END, + SUM ( DISTINCT + ( - 97 ) ) - 43, + 81 ) ) * + 50 ) AS col1
----
-2537

query I rowsort
SELECT - 66 * - 9 AS col0
----
594

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1715
SELECT - 93 DIV 44 AS col1, 33 + + COUNT( * ) + + 66 * - 57 col2
----
-2
-3728

skipif mysql # not compatible
query II rowsort label-1715
SELECT - 93 / 44 AS col1, 33 + + COUNT ( * ) + + 66 * - 57 col2
----
-2
-3728

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT - + 3 * 32 * COUNT( * ) * 90
----
-8640

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - + 3 * 32 * COUNT ( * ) * 90
----
-8640

query I rowsort
SELECT CASE + + COALESCE ( 50, - - 83 ) WHEN + 6 * + 71 * + 35 / - 50 + + 45 THEN + 3 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT ALL + NULLIF ( - 4, 12 + - AVG ( - 23 ) * - + 32 ) / + + 32 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL + NULLIF ( - 4, 12 + - AVG ( - 23 ) * - + 32 ) / + + 32 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - CASE 42 WHEN + 48 THEN + + 29 END
----
NULL

query I rowsort
SELECT + 57 * + 4 + + 76 * 42 AS col2
----
3420

query I rowsort
SELECT ALL 40 * 68 * - 87 AS col0
----
-236640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1722
SELECT + 9 * + CAST( + - 52 AS SIGNED ) - + 4
----
-472

skipif mysql # not compatible
query I rowsort label-1722
SELECT + 9 * + CAST ( + - 52 AS INTEGER ) - + 4
----
-472

query I rowsort
SELECT + + 86 + 7
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1724
SELECT DISTINCT - CAST( 75 AS SIGNED ) * + - 35
----
2625

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT - CAST ( 75 AS INTEGER ) * + - 35
----
2625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1725
SELECT - + NULLIF ( - SUM( DISTINCT + 23 ), + 29 ) DIV + MIN( 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1725
SELECT - + NULLIF ( - SUM ( DISTINCT + 23 ), + 29 ) / + MIN ( 23 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT CASE + 68 WHEN + AVG ( DISTINCT - 67 ) + + - 75 * - 34 THEN NULL WHEN - 94 * - COUNT( * ) + 17 THEN - 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT CASE + 68 WHEN + AVG ( DISTINCT - 67 ) + + - 75 * - 34 THEN NULL WHEN - 94 * - COUNT ( * ) + 17 THEN - 8 END
----
NULL

query I rowsort
SELECT + 69 + + 63 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL - 80 * ( ( - 79 ) ) + + SUM( + 70 ) + + - COUNT( * ) + + - 45 + 65
----
6409

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL - 80 * ( ( - 79 ) ) + + SUM ( + 70 ) + + - COUNT ( * ) + + - 45 + 65
----
6409

query I rowsort
SELECT + 39 * - 67 AS col0
----
-2613

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT DISTINCT - 63 * NULLIF ( NULLIF ( + 12, 47 * + COUNT( * ) ), 94 )
----
-756

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT - 63 * NULLIF ( NULLIF ( + 12, 47 * + COUNT ( * ) ), 94 )
----
-756

query I rowsort
SELECT + 15 * - 70 AS col2
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL - 64 * ( + 33 ) * - + 24 * 71 * 18 * ( 7 ) + 38 + COUNT( * ) col0
----
453454887

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL - 64 * ( + 33 ) * - + 24 * 71 * 18 * ( 7 ) + 38 + COUNT ( * ) col0
----
453454887

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT - ( + CASE - 84 WHEN + - 84 * - 4 + - - 43 + - COUNT( * ) + + 48 - + 12 * - 5 THEN - AVG ( + 16 ) - - COUNT( * ) WHEN COALESCE ( COUNT( * ), - 21 ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT - ( + CASE - 84 WHEN + - 84 * - 4 + - - 43 + - COUNT ( * ) + + 48 - + 12 * - 5 THEN - AVG ( + 16 ) - - COUNT ( * ) WHEN COALESCE ( COUNT ( * ), - 21 ) THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT SUM( + 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1734
SELECT SUM ( + 47 ) AS col2
----
47

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

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL + COUNT ( * ) * COUNT ( * ) + + - ( - 86 ) AS col1
----
87

query I rowsort
SELECT + 9 * 1 AS col0
----
9

query II rowsort
SELECT + 79 * + 73 * 25 AS col1, + 52
----
144175
52

query I rowsort
SELECT + 85 * + 80
----
6800

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT ALL 91 + + - CASE + + 42 WHEN - 48 * + ( COUNT( * ) ) THEN NULL ELSE - - 68 END AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL 91 + + - CASE + + 42 WHEN - 48 * + ( COUNT ( * ) ) THEN NULL ELSE - - 68 END AS col0
----
23

query I rowsort
SELECT - ( - - 23 )
----
-23

query I rowsort
SELECT + 73 - + 28 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1742
SELECT 24 - COALESCE ( + COALESCE ( - 58, - - 99 * + - 75, - 89 * - - 70 + - COUNT( * ) ), + 37 DIV 75 + CASE + ( 37 ) WHEN 32 THEN NULL WHEN + ( + COUNT( * ) ) + - COALESCE ( + NULLIF ( 18, 29 * 45 ), 63 ) THEN + 58 END * 0, + 32 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-1742
SELECT 24 - COALESCE ( + COALESCE ( - 58, - - 99 * + - 75, - 89 * - - 70 + - COUNT ( * ) ), + 37 / 75 + CASE + ( 37 ) WHEN 32 THEN NULL WHEN + ( + COUNT ( * ) ) + - COALESCE ( + NULLIF ( 18, 29 * 45 ), 63 ) THEN + 58 END * 0, + 32 ) col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1743
SELECT DISTINCT - 74 - + CASE - NULLIF ( - + 12, + NULLIF ( + 12, CASE - 28 WHEN - 46 * - 82 THEN - CASE 40 WHEN 6 / + 71 THEN + COUNT( * ) WHEN - 33 THEN - CAST( NULL AS DECIMAL ) * + 79 END ELSE + 63 END * + 31 ) ) WHEN - 94 * - 68 + 96 THEN 38 + + 57 END + 90 * - 0 * ( 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT - 74 - + CASE - NULLIF ( - + 12, + NULLIF ( + 12, CASE - 28 WHEN - 46 * - 82 THEN - CASE 40 WHEN 6 / + 71 THEN + COUNT ( * ) WHEN - 33 THEN - CAST ( NULL AS REAL ) * + 79 END ELSE + 63 END * + 31 ) ) WHEN - 94 * - 68 + 96 THEN 38 + + 57 END + 90 * - 0 * ( 7 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 13 - + 11
----
-24

query I rowsort
SELECT 53 * - 42
----
-2226

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

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

query I rowsort
SELECT + 91 - + + 80 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT ALL - CASE - 82 WHEN - 77 THEN 62 + COUNT( * ) + - 95 ELSE NULL END - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL - CASE - 82 WHEN - 77 THEN 62 + COUNT ( * ) + - 95 ELSE NULL END - + 37
----
NULL

query II rowsort
SELECT 32 * + ( ( + 56 ) ), - 30 + COALESCE ( 91, + 84, + 94 ) AS col2
----
1792
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1750
SELECT COALESCE ( + - 87, + COALESCE ( 54, 35 * - - 81, + - 17 * - 72 - 19 ) * 44 ) DIV + 51 + 47
----
46

skipif mysql # not compatible
query I rowsort label-1750
SELECT COALESCE ( + - 87, + COALESCE ( 54, 35 * - - 81, + - 17 * - 72 - 19 ) * 44 ) / + 51 + 47
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1751
SELECT DISTINCT 45 DIV + 17
----
2

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT 45 / + 17
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1752
SELECT ALL - + 24, 76 DIV + COUNT( * ) AS col1
----
-24
76

skipif mysql # not compatible
query II rowsort label-1752
SELECT ALL - + 24, 76 / + COUNT ( * ) AS col1
----
-24
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT ALL + ( SUM( - 48 ) ) * - - 8 * 45
----
-17280

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL + ( SUM ( - 48 ) ) * - - 8 * 45
----
-17280

query I rowsort
SELECT DISTINCT - 68 * - 11
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + COUNT( * ) + + + ( + COUNT( * ) ) * - - 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1755
SELECT + COUNT ( * ) + + + ( + COUNT ( * ) ) * - - 81 AS col1
----
82

query II rowsort
SELECT ( - 11 ) * - 65 AS col2, COALESCE ( - 47, + + 89 ) - + 94 + - 59 * 67 AS col0
----
715
-4094

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL - + COUNT( * ) + - 35 + 94
----
58

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - + COUNT ( * ) + - 35 + 94
----
58

query I rowsort
SELECT + + 37 * - + ( + 43 ) - + 13
----
-1604

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL - COUNT( * ) + - - 46 + - + 58
----
-13

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL - COUNT ( * ) + - - 46 + - + 58
----
-13

query I rowsort
SELECT ( + + 75 ) * + ( + 76 ) + - 75 AS col2
----
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT ALL - SUM( ALL - 85 ) + + - 38
----
47

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL - SUM ( ALL - 85 ) + + - 38
----
47

query I rowsort
SELECT 15 - - 65 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT DISTINCT + COUNT( * ) + + 40 - + 51 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT + COUNT ( * ) + + 40 - + 51 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-1764
SELECT COUNT( * ) + - 35 AS col0, + 72 AS col2
----
-34
72

skipif mysql # not compatible
query II rowsort label-1764
SELECT COUNT ( * ) + - 35 AS col0, + 72 AS col2
----
-34
72

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

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

query I rowsort
SELECT 5 * + + 94 col2
----
470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1767
SELECT 15 + + MAX( ALL 38 ) + + 52 + 28 - COUNT( * ) * 70 + - + COUNT( * ) + - + ( 84 ) DIV 10
----
54

skipif mysql # not compatible
query I rowsort label-1767
SELECT 15 + + MAX ( ALL 38 ) + + 52 + 28 - COUNT ( * ) * 70 + - + COUNT ( * ) + - + ( 84 ) / 10
----
54

query I rowsort
SELECT 34 + + 51
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1769
SELECT NULLIF ( - + 65, + + 83 * - + MAX( DISTINCT 58 ) * - - CASE COUNT( * ) WHEN - COUNT( * ) + - - AVG ( DISTINCT + 15 ) * - ( COUNT( * ) + CAST( 95 AS SIGNED ) ) THEN NULL WHEN 75 + 63 THEN 10 + - ( 95 ) END ) + 16 * - 73 AS col2
----
-1233

skipif mysql # not compatible
query I rowsort label-1769
SELECT NULLIF ( - + 65, + + 83 * - + MAX ( DISTINCT 58 ) * - - CASE COUNT ( * ) WHEN - COUNT ( * ) + - - AVG ( DISTINCT + 15 ) * - ( COUNT ( * ) + CAST ( 95 AS INTEGER ) ) THEN NULL WHEN 75 + 63 THEN 10 + - ( 95 ) END ) + 16 * - 73 AS col2
----
-1233

onlyif mysql # DIV for integer division: 
query I rowsort label-1770
SELECT ( - 68 ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-1770
SELECT ( - 68 ) / 82
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1771
SELECT DISTINCT 31 DIV ( - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT 31 / ( - 99 )
----
0

query I rowsort
SELECT + COALESCE ( + - 50, + 81, 89 + + 2 ) * + 87 AS col1
----
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1773
SELECT DISTINCT ( - 79 ), 81 / + 54 / + CASE - CAST( NULL AS SIGNED ) WHEN 16 THEN NULL WHEN 92 / + COUNT( * ) + - 14 * 73 THEN CASE 68 WHEN 54 THEN 88 ELSE - 1 * 64 END + COUNT( * ) WHEN + COUNT( * ) THEN NULL END + + 40 AS col2
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-1773
SELECT DISTINCT ( - 79 ), 81 / + 54 / + CASE - CAST ( NULL AS INTEGER ) WHEN 16 THEN NULL WHEN 92 / + COUNT ( * ) + - 14 * 73 THEN CASE 68 WHEN 54 THEN 88 ELSE - 1 * 64 END + COUNT ( * ) WHEN + COUNT ( * ) THEN NULL END + + 40 AS col2
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT - 89 + + - NULLIF ( - + MIN( 75 ), + - MAX( 44 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-1774
SELECT - 89 + + - NULLIF ( - + MIN ( 75 ), + - MAX ( 44 ) )
----
-14

query I rowsort
SELECT ALL + 90 * + ( 47 ) AS col2
----
4230

query I rowsort
SELECT + 51 + - + 13
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT - CASE SUM( + ( - + 48 ) ) WHEN ( + - 80 ) THEN NULL WHEN - COUNT( * ) / + - ( - 53 ) THEN NULL WHEN 40 THEN - 69 * 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT - CASE SUM ( + ( - + 48 ) ) WHEN ( + - 80 ) THEN NULL WHEN - COUNT ( * ) / + - ( - 53 ) THEN NULL WHEN 40 THEN - 69 * 25 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL + 41 * + MIN( ALL + 47 )
----
1927

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL + 41 * + MIN ( ALL + 47 )
----
1927

query I rowsort
SELECT + ( - - 40 ) * + 88
----
3520

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1781
SELECT ALL - CASE 92 WHEN + CASE + - 36 WHEN + COUNT( DISTINCT + - 40 ) THEN - 23 END THEN 91 * + 57 WHEN + CAST( NULL AS DECIMAL ) THEN NULL ELSE - ( - SUM( + 47 ) ) END * 58 + 41
----
-2685

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL - CASE 92 WHEN + CASE + - 36 WHEN + COUNT ( DISTINCT + - 40 ) THEN - 23 END THEN 91 * + 57 WHEN + CAST ( NULL AS REAL ) THEN NULL ELSE - ( - SUM ( + 47 ) ) END * 58 + 41
----
-2685

onlyif mysql # DIV for integer division: 
query I rowsort label-1782
SELECT - 31 DIV - - COALESCE ( 13, + 17, + 13 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1782
SELECT - 31 / - - COALESCE ( 13, + 17, + 13 ) AS col1
----
-2

query I rowsort
SELECT - - 4 * + 80 * 31 + NULLIF ( 44, - - 95 ) + 98 + 82 * - 78
----
3666

query II rowsort
SELECT ALL + - 86 * + - 15 + - 15 + + 66 - + 46 + + ( 60 ), 97 col2
----
1355
97

query I rowsort
SELECT + + 75 * - 99 * - 69 + - 58 + - 76 AS col0
----
512191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1786
SELECT NULLIF ( + 46, + 57 - + CASE + - 2 WHEN + 81 DIV - COUNT( * ) THEN 16 WHEN COALESCE ( 83, COALESCE ( + ( 6 ), MAX( ALL 87 ) + 95 ), CASE WHEN NOT 6 = ( NULL ) THEN NULL ELSE 56 + - COUNT( * ) END ) + 50 THEN NULL ELSE + MAX( ALL + 34 ) END ) + + 63 DIV + 56
----
47

skipif mysql # not compatible
query I rowsort label-1786
SELECT NULLIF ( + 46, + 57 - + CASE + - 2 WHEN + 81 / - COUNT ( * ) THEN 16 WHEN COALESCE ( 83, COALESCE ( + ( 6 ), MAX ( ALL 87 ) + 95 ), CASE WHEN NOT 6 = ( NULL ) THEN NULL ELSE 56 + - COUNT ( * ) END ) + 50 THEN NULL ELSE + MAX ( ALL + 34 ) END ) + + 63 / + 56
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1787
SELECT + MAX( - 34 ) AS col1, + 44
----
-34
44

skipif mysql # not compatible
query II rowsort label-1787
SELECT + MAX ( - 34 ) AS col1, + 44
----
-34
44

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

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL - COUNT ( * ) + + 44 AS col1
----
43

query I rowsort
SELECT ALL + 18 + + 15 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT + NULLIF ( + + 99, + - COUNT( * ) / AVG ( ALL + 92 ) + MAX( ALL - 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-1790
SELECT + NULLIF ( + + 99, + - COUNT ( * ) / AVG ( ALL + 92 ) + MAX ( ALL - 99 ) )
----
99

query I rowsort
SELECT 15 * + 27 AS col0
----
405

query I rowsort
SELECT 50 * - - 34 * - - 51 AS col2
----
86700

query I rowsort
SELECT DISTINCT + 73 - - 30
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT ALL + 1 * - SUM( + + 45 ) * 29
----
-1305

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL + 1 * - SUM ( + + 45 ) * 29
----
-1305

query I rowsort
SELECT ALL + 56 - 40 col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT - CASE 36 WHEN - MAX( ( - + 23 ) ) THEN + + 9 END * - + COALESCE ( + - 44, 20 ) / - AVG ( DISTINCT - 21 ) * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT - CASE 36 WHEN - MAX ( ( - + 23 ) ) THEN + + 9 END * - + COALESCE ( + - 44, 20 ) / - AVG ( DISTINCT - 21 ) * 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT ALL 90 * 72 / COUNT( 91 ) * - CASE - 73 WHEN - COUNT( * ) * + 73 * + - 0 THEN NULL WHEN + - 55 * + 85 + - 9 THEN - 93 END * 20 + + 15 * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL 90 * 72 / COUNT ( 91 ) * - CASE - 73 WHEN - COUNT ( * ) * + 73 * + - 0 THEN NULL WHEN + - 55 * + 85 + - 9 THEN - 93 END * 20 + + 15 * 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1798
SELECT ALL + 56 DIV CAST( - 45 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL + 56 / CAST ( - 45 AS INTEGER )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT - + COUNT( - + 91 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1800
SELECT - + COUNT ( - + 91 ) AS col0
----
-1

query I rowsort
SELECT - - COALESCE ( + - 49, - - 65, - 97 ) AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1802
SELECT DISTINCT + CAST( - COUNT( DISTINCT + 24 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT + CAST ( - COUNT ( DISTINCT + 24 ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT - - 31 - - - COUNT( * ) col0
----
30

skipif mysql # not compatible
query I rowsort label-1803
SELECT - - 31 - - - COUNT ( * ) col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT - + 56 - - - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-1804
SELECT - + 56 - - - COUNT ( * )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1805
SELECT DISTINCT - - 4 * COALESCE ( CAST( NULL AS SIGNED ), - 89 * - + 5 * - - COUNT( * ) + + - COALESCE ( 3, - 41 ) )
----
1768

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT - - 4 * COALESCE ( CAST ( NULL AS INTEGER ), - 89 * - + 5 * - - COUNT ( * ) + + - COALESCE ( 3, - 41 ) )
----
1768

query I rowsort
SELECT - - 81 + - 82
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1807
SELECT + 49 / + + ( - - 58 ) * AVG ( ALL - ( + + 16 ) ) + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT + 49 / + + ( - - 58 ) * AVG ( ALL - ( + + 16 ) ) + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + + 91 + 46
----
137

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

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

query I rowsort
SELECT + 76 - + 40 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1811
SELECT + + CASE - + ( + 21 ) WHEN AVG ( - ( CASE - 78 WHEN - 86 THEN 40 END ) ) * + 54 * - 77 - 7 THEN - 22 ELSE CASE - ( - 69 ) WHEN 84 * 27 THEN + 27 + + 61 ELSE NULL END + 5 * MIN( ALL 94 + 98 ) END / CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT + + CASE - + ( + 21 ) WHEN AVG ( - ( CASE - 78 WHEN - 86 THEN 40 END ) ) * + 54 * - 77 - 7 THEN - 22 ELSE CASE - ( - 69 ) WHEN 84 * 27 THEN + 27 + + 61 ELSE NULL END + 5 * MIN ( ALL 94 + 98 ) END / CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL - COUNT( * ) + - 30 + 66 * 16 + + - 2 * - + 59 * 75 + 61 AS col2
----
9936

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL - COUNT ( * ) + - 30 + 66 * 16 + + - 2 * - + 59 * 75 + 61 AS col2
----
9936

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1814
SELECT DISTINCT - + 43 * 42 + + 1 DIV - 4
----
-1806

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT - + 43 * 42 + + 1 / - 4
----
-1806

query I rowsort
SELECT ALL 74 * + 98 + + 44
----
7296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1816
SELECT ALL + - 48 AS col2, 76 - + MIN( - - 44 ) - + 72 * - 97 * 24 + - CASE + 7 WHEN 64 THEN + COUNT( * ) / + NULLIF ( 41 * - CAST( NULL AS SIGNED ), - 19 + 46 * 22 ) WHEN + 53 THEN NULL END * - COUNT( * ) AS col0
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-1816
SELECT ALL + - 48 AS col2, 76 - + MIN ( - - 44 ) - + 72 * - 97 * 24 + - CASE + 7 WHEN 64 THEN + COUNT ( * ) / + NULLIF ( 41 * - CAST ( NULL AS INTEGER ), - 19 + 46 * 22 ) WHEN + 53 THEN NULL END * - COUNT ( * ) AS col0
----
-48
NULL

query I rowsort
SELECT DISTINCT 91 * 80 + - + 41 AS col0
----
7239

query I rowsort
SELECT + 10 * + 12
----
120

query I rowsort
SELECT DISTINCT - ( + 19 ) * + 55 - - + 70 + - - 57 + + 63 AS col2
----
-855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1820
SELECT + 56 * + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT + 56 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1821
SELECT NULLIF ( - 67, - ( - - 33 ) / 21 + SUM( + 81 ) - + - 96 + + 65 + CAST( + - 24 AS DECIMAL ) )
----
-67

skipif mysql # not compatible
query I rowsort label-1821
SELECT NULLIF ( - 67, - ( - - 33 ) / 21 + SUM ( + 81 ) - + - 96 + + 65 + CAST ( + - 24 AS REAL ) )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1822
SELECT ALL + 80 AS col0, CAST( ( 5 ) AS SIGNED ) + + CAST( - + MIN( 6 ) AS SIGNED )
----
80
-1

skipif mysql # not compatible
query II rowsort label-1822
SELECT ALL + 80 AS col0, CAST ( ( 5 ) AS INTEGER ) + + CAST ( - + MIN ( 6 ) AS INTEGER )
----
80
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1823
SELECT 23 * - - COUNT( * ) + + - COUNT( * ) * - 13 - - 19 + - + CAST( NULL AS SIGNED ) + + 55 + + AVG ( ALL + + 69 ) * - 34 - - COUNT( * ) * AVG ( 97 * - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT 23 * - - COUNT ( * ) + + - COUNT ( * ) * - 13 - - 19 + - + CAST ( NULL AS INTEGER ) + + 55 + + AVG ( ALL + + 69 ) * - 34 - - COUNT ( * ) * AVG ( 97 * - 0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT + 50 + + COALESCE ( 92, 9 * 25 - - COUNT( * ) * 69 ) * + 70 AS col2
----
6490

skipif mysql # not compatible
query I rowsort label-1824
SELECT + 50 + + COALESCE ( 92, 9 * 25 - - COUNT ( * ) * 69 ) * + 70 AS col2
----
6490

query II rowsort
SELECT + 65 AS col0, + 14
----
65
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT + 26 + - 82 - + 24 + - MIN( + 50 ) * 23 - + 37 * + 61
----
-3487

skipif mysql # not compatible
query I rowsort label-1827
SELECT + 26 + - 82 - + 24 + - MIN ( + 50 ) * 23 - + 37 * + 61
----
-3487

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT ALL 32 DIV - 42 * - + 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL 32 / - 42 * - + 44 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1829
SELECT ALL + COALESCE ( + 42, - 81 + - 78 + - 70 - - 36 * + 4 DIV - COUNT( * ) * - + 53 * + + 14 - - 88 * CAST( NULL AS SIGNED ) ) col0
----
42

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL + COALESCE ( + 42, - 81 + - 78 + - 70 - - 36 * + 4 / - COUNT ( * ) * - + 53 * + + 14 - - 88 * CAST ( NULL AS INTEGER ) ) col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1830
SELECT DISTINCT - 15 * + COUNT( * ) * + COALESCE ( + COUNT( * ), - 62 * - - 4 DIV - 91 * + 67 * - ( 96 ) + + 38 + + 31 * COALESCE ( - 69, - 30 * + 63 ) * 22 + - MAX( ALL + 29 ), 99, 95 ) * 57 AS col2
----
-855

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT - 15 * + COUNT ( * ) * + COALESCE ( + COUNT ( * ), - 62 * - - 4 / - 91 * + 67 * - ( 96 ) + + 38 + + 31 * COALESCE ( - 69, - 30 * + 63 ) * 22 + - MAX ( ALL + 29 ), 99, 95 ) * 57 AS col2
----
-855

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1831
SELECT DISTINCT 67 DIV + 45 DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT 67 / + 45 / + COUNT ( * )
----
1

query II rowsort
SELECT ALL + 24 AS col1, 79 AS col2
----
24
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL + ( - - COUNT( * ) ) * + + 77 + + 77 + + CAST( NULL AS SIGNED ) * - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL + ( - - COUNT ( * ) ) * + + 77 + + 77 + + CAST ( NULL AS INTEGER ) * - 49
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT - ( + 35 ) + + 61 DIV + NULLIF ( - - 56, 39 + + 18 )
----
-34

skipif mysql # not compatible
query I rowsort label-1834
SELECT - ( + 35 ) + + 61 / + NULLIF ( - - 56, 39 + + 18 )
----
-34

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT COUNT( * ), + 62 * - - 44 + COUNT( * ) + - 21 * - - 26 AS col1
----
1
2183

skipif mysql # not compatible
query II rowsort label-1836
SELECT COUNT ( * ), + 62 * - - 44 + COUNT ( * ) + - 21 * - - 26 AS col1
----
1
2183

query I rowsort
SELECT + 60 + + 44 * - + COALESCE ( + 19, 17 + - 80 * - 34, 76 ) AS col1
----
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT - - MIN( ALL - 23 ) * 84
----
-1932

skipif mysql # not compatible
query I rowsort label-1838
SELECT - - MIN ( ALL - 23 ) * 84
----
-1932

query I rowsort
SELECT - - 85 + 72
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT - COUNT( * ) * - - 81 + + 3 * + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-1840
SELECT - COUNT ( * ) * - - 81 + + 3 * + COUNT ( * )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1841
SELECT DISTINCT 89 + - 93 + + - 39 * - COALESCE ( - COUNT( * ), MAX( - + CAST( + 83 AS SIGNED ) ) DIV + 56 )
----
-43

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT 89 + - 93 + + - 39 * - COALESCE ( - COUNT ( * ), MAX ( - + CAST ( + 83 AS INTEGER ) ) / + 56 )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1842
SELECT ALL + - 39 + + 38 - - 76 DIV - + 11 - - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL + - 39 + + 38 - - 76 / - + 11 - - COUNT ( * )
----
-6

query I rowsort
SELECT - 37 * - 46 AS col1
----
1702

query I rowsort
SELECT DISTINCT + + 89 + - + 80 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1845
SELECT - - 44 + - - 42 + - COALESCE ( + - COALESCE ( + + 27, + 30 * - 58 - CAST( NULL AS SIGNED ), - 6 ), 62, 76 )
----
113

skipif mysql # not compatible
query I rowsort label-1845
SELECT - - 44 + - - 42 + - COALESCE ( + - COALESCE ( + + 27, + 30 * - 58 - CAST ( NULL AS INTEGER ), - 6 ), 62, 76 )
----
113

query II rowsort
SELECT + 31 AS col0, 62
----
31
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1847
SELECT - + SUM( DISTINCT - + ( - 86 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT - + SUM ( DISTINCT - + ( - 86 ) ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 47 + 98
----
51

query I rowsort
SELECT ALL + 89 + + 59 * - 77
----
-4454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1850
SELECT - 35 + - ( + 85 ) + COALESCE ( - 34, 18, + 95 + ( + 3 ) DIV + 85 * + + COUNT( * ) * - 48 ) col1
----
-154

skipif mysql # not compatible
query I rowsort label-1850
SELECT - 35 + - ( + 85 ) + COALESCE ( - 34, 18, + 95 + ( + 3 ) / + 85 * + + COUNT ( * ) * - 48 ) col1
----
-154

query I rowsort
SELECT ALL - 86 * - 61 * + 32
----
167872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1852
SELECT ALL + 28 + + + 5 * - 68 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL + 28 + + + 5 * - 68 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1853
SELECT ALL CASE - 38 WHEN - 15 THEN NULL WHEN - - 6 THEN - 81 - - 11 ELSE - 96 DIV 63 END
----
-1

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL CASE - 38 WHEN - 15 THEN NULL WHEN - - 6 THEN - 81 - - 11 ELSE - 96 / 63 END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT 91 * - + 33 + + + 78 + + COUNT( * ) + + 82 * + 37 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-1854
SELECT 91 * - + 33 + + + 78 + + COUNT ( * ) + + 82 * + 37 AS col0
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT DISTINCT - 46 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT - 46 / 61
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1856
SELECT + 45 DIV + - 1, + 37 * ( - - 75 ) AS col2
----
-45
2775

skipif mysql # not compatible
query II rowsort label-1856
SELECT + 45 / + - 1, + 37 * ( - - 75 ) AS col2
----
-45
2775

query I rowsort
SELECT - 57 * + 31 AS col1
----
-1767

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT + 62 + 7 + - 94 * - COUNT( * )
----
163

skipif mysql # not compatible
query I rowsort label-1858
SELECT + 62 + 7 + - 94 * - COUNT ( * )
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1859
SELECT 15 + + 44 + 10 DIV NULLIF ( COUNT( * ), - 34 * 27 * - 98 + + 71 - - 42 )
----
69

skipif mysql # not compatible
query I rowsort label-1859
SELECT 15 + + 44 + 10 / NULLIF ( COUNT ( * ), - 34 * 27 * - 98 + + 71 - - 42 )
----
69

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

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

query I rowsort
SELECT 54 * 51 AS col2
----
2754

query III rowsort
SELECT 60 + - ( - NULLIF ( - 43, - - 59 * 7 ) ) * 99 AS col0, 2 * 2 * - 29 AS col1, + 59 AS col1
----
-4197
-116
59

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

query I rowsort
SELECT 44 * - 75
----
-3300

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1865
SELECT ( - + 33 ) + - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT ( - + 33 ) + - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT 34 * - + COUNT( * ) * 90 * + 97 * - + CASE - SUM( ALL 60 ) WHEN - 10 THEN 92 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT 34 * - + COUNT ( * ) * 90 * + 97 * - + CASE - SUM ( ALL 60 ) WHEN - 10 THEN 92 END AS col0
----
NULL

query I rowsort
SELECT ALL 55 + - 57
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT 88 DIV - 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1868
SELECT 88 / - 47 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT MAX( ALL + 8 ) * 82
----
656

skipif mysql # not compatible
query I rowsort label-1869
SELECT MAX ( ALL + 8 ) * 82
----
656

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT DISTINCT 82 DIV - 40
----
-2

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT 82 / - 40
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1872
SELECT 91 DIV 28 col2, + 50 + - 54 - - COUNT( * ) + - + 55 * - 11 AS col1
----
3
602

skipif mysql # not compatible
query II rowsort label-1872
SELECT 91 / 28 col2, + 50 + - 54 - - COUNT ( * ) + - + 55 * - 11 AS col1
----
3
602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1873
SELECT ALL + CASE - 33 WHEN 42 THEN NULL WHEN + 54 THEN + 11 * - - MAX( ALL - COALESCE ( 27, CAST( + 52 AS SIGNED ) ) ) ELSE NULL END + + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL + CASE - 33 WHEN 42 THEN NULL WHEN + 54 THEN + 11 * - - MAX ( ALL - COALESCE ( 27, CAST ( + 52 AS INTEGER ) ) ) ELSE NULL END + + 54 AS col0
----
NULL

query I rowsort
SELECT 22 * 32 + - 49 AS col2
----
655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1875
SELECT ALL - 42 * + CAST( NULL AS SIGNED ) * + + 31 * - - AVG ( ALL + 68 ) + 33 + - 93 + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - 42 * + CAST ( NULL AS INTEGER ) * + + 31 * - - AVG ( ALL + 68 ) + 33 + - 93 + - 62 AS col0
----
NULL

query I rowsort
SELECT ALL - 84 + - 92 + - 64 AS col2
----
-240

query I rowsort
SELECT - + 55 col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT 71 DIV - 50 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1878
SELECT 71 / - 50 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT 14 DIV + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1879
SELECT 14 / + 74 AS col1
----
0

query I rowsort
SELECT 1 * + - 63 * + ( + 34 )
----
-2142

query I rowsort
SELECT ALL - - 24 + + + 0 + - 51 - + 91 * 96
----
-8763

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

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

query I rowsort
SELECT 40 + 11 + 23 + - - 24 col0
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT DISTINCT COALESCE ( + - CASE - AVG ( + 46 ) WHEN - + 94 * 76 * COUNT( * ) * + 50 / 46 * 12 THEN NULL WHEN - 66 * + 70 THEN + 89 ELSE + 37 END, + 41 * + 83 )
----
-37

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT COALESCE ( + - CASE - AVG ( + 46 ) WHEN - + 94 * 76 * COUNT ( * ) * + 50 / 46 * 12 THEN NULL WHEN - 66 * + 70 THEN + 89 ELSE + 37 END, + 41 * + 83 )
----
-37

query I rowsort
SELECT ALL + + ( + 60 ) - + 87
----
-27

query I rowsort
SELECT ALL - ( - 8 ) AS col2
----
8

query I rowsort
SELECT 50 * ( + 78 )
----
3900

query I rowsort
SELECT ALL - 41 * - 7 AS col2
----
287

query I rowsort
SELECT 18 + 13
----
31

query I rowsort
SELECT 54 * 80 * + - 80 AS col0
----
-345600

onlyif mysql # DIV for integer division: 
query II rowsort label-1892
SELECT 22 AS col2, + 69 DIV ( + + ( + 74 ) )
----
22
0

skipif mysql # not compatible
query II rowsort label-1892
SELECT 22 AS col2, + 69 / ( + + ( + 74 ) )
----
22
0

query I rowsort
SELECT 42 * 45 * - 66 * + + 8 + - - 2 AS col2
----
-997918

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT DISTINCT - COALESCE ( + + COUNT( * ), - 6 * - - COUNT( * ) + + 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT - COALESCE ( + + COUNT ( * ), - 6 * - - COUNT ( * ) + + 59 )
----
-1

query I rowsort
SELECT ALL + ( + - 72 ) * + 56 * - COALESCE ( - 83, - 97 - CASE - 94 WHEN + - 14 * - - 44 + - - NULLIF ( - 69, ( + 49 ) + - 42 ) THEN 69 ELSE NULL END ) AS col2
----
-334656

query II rowsort
SELECT DISTINCT - 76 AS col2, 13 AS col2
----
-76
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT DISTINCT - CASE CASE 2 WHEN - 54 THEN 0 WHEN 9 THEN NULL WHEN ( 42 ) THEN + 64 ELSE + 77 * - - COALESCE ( 56, - NULLIF ( - COUNT( * ), - 25 + - 34 ) + + 70 / 75, 65 * - 78 ) END WHEN SUM( DISTINCT 85 ) THEN - ( + ( + 91 ) ) + 14 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT - CASE CASE 2 WHEN - 54 THEN 0 WHEN 9 THEN NULL WHEN ( 42 ) THEN + 64 ELSE + 77 * - - COALESCE ( 56, - NULLIF ( - COUNT ( * ), - 25 + - 34 ) + + 70 / 75, 65 * - 78 ) END WHEN SUM ( DISTINCT 85 ) THEN - ( + ( + 91 ) ) + 14 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1898
SELECT - NULLIF ( + 95, + - MAX( + + 36 ) ) * 51 + 91 - - 3 * + CAST( - 6 AS SIGNED ) AS col2
----
-4772

skipif mysql # not compatible
query I rowsort label-1898
SELECT - NULLIF ( + 95, + - MAX ( + + 36 ) ) * 51 + 91 - - 3 * + CAST ( - 6 AS INTEGER ) AS col2
----
-4772

query I rowsort
SELECT ALL + 97 + - 60 - + 21 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1900
SELECT - NULLIF ( + 66, + + 84 ) * - + COUNT( * ) + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - 58 + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1900
SELECT - NULLIF ( + 66, + + 84 ) * - + COUNT ( * ) + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 58 + + 89
----
NULL

query I rowsort
SELECT 79 * 75 AS col1
----
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT MAX( + 97 ) + 11 * - 61 + + COUNT( * ) AS col1
----
-573

skipif mysql # not compatible
query I rowsort label-1902
SELECT MAX ( + 97 ) + 11 * - 61 + + COUNT ( * ) AS col1
----
-573

onlyif mysql # aggregate syntax: 
query II rowsort label-1903
SELECT ALL + SUM( 28 ) + 31, + 74 AS col2
----
59
74

skipif mysql # not compatible
query II rowsort label-1903
SELECT ALL + SUM ( 28 ) + 31, + 74 AS col2
----
59
74

query I rowsort
SELECT ALL 7 * + 12
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT 69 + + SUM( - 97 )
----
-28

skipif mysql # not compatible
query I rowsort label-1905
SELECT 69 + + SUM ( - 97 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1906
SELECT ALL - 34 + + 10 + MIN( DISTINCT + + ( + ( + + 1 ) ) ) + + - COUNT( * ) + + + CASE - 37 WHEN MAX( DISTINCT - - 51 ) + - + 47 + - 93 THEN NULL WHEN + 72 * + COUNT( ALL + 69 ) + COUNT( * ) THEN NULL WHEN COUNT( 91 ) - + 38 THEN - CAST( 52 AS SIGNED ) * 90 END DIV + 63
----
-98

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL - 34 + + 10 + MIN ( DISTINCT + + ( + ( + + 1 ) ) ) + + - COUNT ( * ) + + + CASE - 37 WHEN MAX ( DISTINCT - - 51 ) + - + 47 + - 93 THEN NULL WHEN + 72 * + COUNT ( ALL + 69 ) + COUNT ( * ) THEN NULL WHEN COUNT ( 91 ) - + 38 THEN - CAST ( 52 AS INTEGER ) * 90 END / + 63
----
-98

query I rowsort
SELECT DISTINCT + 80 + + 69 AS col1
----
149

query I rowsort
SELECT DISTINCT - ( + - 13 ) * - CASE - 78 WHEN - - 80 THEN + ( + 87 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 83 + - 6
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT + - CASE - 76 WHEN - COUNT( * ) THEN + - 47 + 54 END * 90 + - 67 + 27 / + 81 / + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT + - CASE - 76 WHEN - COUNT ( * ) THEN + - 47 + 54 END * 90 + - 67 + 27 / + 81 / + + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT ALL - - 85 AS col0, 30 * + ( + - ( - 67 ) )
----
85
2010

query I rowsort
SELECT ALL + COALESCE ( + 27, - 42 + - - 78 * + + 26 ) * + ( - - 14 )
----
378

query I rowsort
SELECT DISTINCT 94 + 90 + 51
----
235

onlyif mysql # DIV for integer division: 
query II rowsort label-1914
SELECT + 43, + 15 DIV - + 89 AS col2
----
43
0

skipif mysql # not compatible
query II rowsort label-1914
SELECT + 43, + 15 / - + 89 AS col2
----
43
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT DISTINCT CASE + + 63 WHEN + + 80 THEN NULLIF ( + 59, + - CAST( NULL AS SIGNED ) - + 76 ) * + SUM( ALL 30 ) * - - 3 - - + COALESCE ( - + 46, - 76, - COALESCE ( 51, - 78, - 65 ) * + ( COALESCE ( - 89, 76 ) * - 5 ) + 34 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT CASE + + 63 WHEN + + 80 THEN NULLIF ( + 59, + - CAST ( NULL AS INTEGER ) - + 76 ) * + SUM ( ALL 30 ) * - - 3 - - + COALESCE ( - + 46, - 76, - COALESCE ( 51, - 78, - 65 ) * + ( COALESCE ( - 89, 76 ) * - 5 ) + 34 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 12 + - - 32 col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT NULLIF ( + + COUNT( * ), + 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1917
SELECT NULLIF ( + + COUNT ( * ), + 30 ) AS col1
----
1

query I rowsort
SELECT 29 + - + 11 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT + MAX( ALL - 97 ) * - 51 + + 59 AS col0
----
5006

skipif mysql # not compatible
query I rowsort label-1919
SELECT + MAX ( ALL - 97 ) * - 51 + + 59 AS col0
----
5006

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT + MAX( DISTINCT + ( + 11 ) ) * + 30 col0
----
330

skipif mysql # not compatible
query I rowsort label-1920
SELECT + MAX ( DISTINCT + ( + 11 ) ) * + 30 col0
----
330

onlyif mysql # aggregate syntax: 
query II rowsort label-1921
SELECT ALL + NULLIF ( 6, + COUNT( * ) / COUNT( * ) + - ( - COUNT( * ) ) ), 6 AS col0
----
6
6

skipif mysql # not compatible
query II rowsort label-1921
SELECT ALL + NULLIF ( 6, + COUNT ( * ) / COUNT ( * ) + - ( - COUNT ( * ) ) ), 6 AS col0
----
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT ALL - 61 - - CASE - + COUNT( * ) WHEN - 40 THEN 12 ELSE 57 END * + + 51 + SUM( ALL ( - 8 ) ) AS col2
----
2838

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL - 61 - - CASE - + COUNT ( * ) WHEN - 40 THEN 12 ELSE 57 END * + + 51 + SUM ( ALL ( - 8 ) ) AS col2
----
2838

query I rowsort
SELECT - COALESCE ( - 1, 20 + 34 * 23 ) AS col0
----
1

query II rowsort
SELECT DISTINCT + 80 AS col1, + 70
----
80
70

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1926
SELECT ALL CAST( NULL AS SIGNED ) / + + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL CAST ( NULL AS INTEGER ) / + + 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1927
SELECT ALL - COUNT( * ) * + - ( - - 50 ) * - 34 - + 49 DIV - 53 + - COALESCE ( - - 63, + + 82 DIV - 36, 22 ) + - 61 + + 52
----
-1772

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL - COUNT ( * ) * + - ( - - 50 ) * - 34 - + 49 / - 53 + - COALESCE ( - - 63, + + 82 / - 36, 22 ) + - 61 + + 52
----
-1772

onlyif mysql # aggregate syntax: 
query II rowsort label-1928
SELECT ALL - 29, COUNT( DISTINCT + 64 ) * 43 * - 99 * - 73 AS col1
----
-29
310761

skipif mysql # not compatible
query II rowsort label-1928
SELECT ALL - 29, COUNT ( DISTINCT + 64 ) * 43 * - 99 * - 73 AS col1
----
-29
310761

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1929
SELECT ALL + 37 * + COUNT( DISTINCT + 5 ) DIV + 50 + 63 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL + 37 * + COUNT ( DISTINCT + 5 ) / + 50 + 63 AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1930
SELECT - 58 + SUM( ALL 48 ) + + + COUNT( * ) DIV + SUM( DISTINCT + - 80 ) * 33 - - 36 + - + 99 + 15 - - 52 * COUNT( * ) * - - 95 AS col0
----
4882

skipif mysql # not compatible
query I rowsort label-1930
SELECT - 58 + SUM ( ALL 48 ) + + + COUNT ( * ) / + SUM ( DISTINCT + - 80 ) * 33 - - 36 + - + 99 + 15 - - 52 * COUNT ( * ) * - - 95 AS col0
----
4882

query II rowsort
SELECT 19 * - 12 * 81 col0, 88 * - 66 + + 21
----
-18468
-5787

query I rowsort
SELECT DISTINCT - 4 * - 70
----
280

query I rowsort
SELECT ALL 41 * 38
----
1558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1934
SELECT + COUNT( * ) * + NULLIF ( + 26, - 88 ) * - 63 + - 23 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT + COUNT ( * ) * + NULLIF ( + 26, - 88 ) * - 63 + - 23 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT - CASE - + 73 WHEN - 51 + + 22 - - 95 + + 12 / - 92 * - 91 * COUNT( * ) * + 7 THEN - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT - CASE - + 73 WHEN - 51 + + 22 - - 95 + + 12 / - 92 * - 91 * COUNT ( * ) * + 7 THEN - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1936
SELECT + 51 + + CAST( - 59 AS SIGNED ) + + 46 + - - COUNT( * ) * COUNT( * ) - - + 56
----
95

skipif mysql # not compatible
query I rowsort label-1936
SELECT + 51 + + CAST ( - 59 AS INTEGER ) + + 46 + - - COUNT ( * ) * COUNT ( * ) - - + 56
----
95

query I rowsort
SELECT + 27 * 3 * - + 11
----
-891

query I rowsort
SELECT ALL + 10 * + - 54
----
-540

onlyif mysql # aggregate syntax: 
query II rowsort label-1939
SELECT ALL + COUNT( - 31 ) AS col0, - 2
----
1
-2

skipif mysql # not compatible
query II rowsort label-1939
SELECT ALL + COUNT ( - 31 ) AS col0, - 2
----
1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT DISTINCT - ( ( + - 45 ) ) * 87 + + 16 + - 2 + - COUNT( * ) AS col0
----
3928

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT - ( ( + - 45 ) ) * 87 + + 16 + - 2 + - COUNT ( * ) AS col0
----
3928

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT NULLIF ( 69, 13 + - NULLIF ( - + 97, + 33 ) ) DIV + 29 + + 97 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-1941
SELECT NULLIF ( 69, 13 + - NULLIF ( - + 97, + 33 ) ) / + 29 + + 97 AS col0
----
99

query I rowsort
SELECT ALL + 11 * ( + + 37 ) * - - ( - + 2 )
----
-814

query I rowsort
SELECT COALESCE ( - 49, + + 97 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1944
SELECT - NULLIF ( - MAX( ALL - ( + 37 ) ), COALESCE ( 56, + - 41 ) + - + 96 DIV - + 30 ) DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-1944
SELECT - NULLIF ( - MAX ( ALL - ( + 37 ) ), COALESCE ( 56, + - 41 ) + - + 96 / - + 30 ) / 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT - SUM( ALL + - 53 ) * + 62
----
3286

skipif mysql # not compatible
query I rowsort label-1945
SELECT - SUM ( ALL + - 53 ) * + 62
----
3286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT ALL 65 * + + 45 + + CAST( 41 AS SIGNED )
----
2966

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL 65 * + + 45 + + CAST ( 41 AS INTEGER )
----
2966

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL - ( - 63 ) * - 17 + COALESCE ( + - 98, - ( 66 ) + 29 * SUM( ALL 69 ) ) + - 1 + - 44 * ( + 46 ) * 73
----
-148922

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL - ( - 63 ) * - 17 + COALESCE ( + - 98, - ( 66 ) + 29 * SUM ( ALL 69 ) ) + - 1 + - 44 * ( + 46 ) * 73
----
-148922

query I rowsort
SELECT ALL + 11 * - 5 col0
----
-55

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

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL 8 * + + 3 + - 21 / COUNT ( * )
----
3

query I rowsort
SELECT DISTINCT + 93 * 70 * 99
----
644490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1951
SELECT - CAST( 57 AS SIGNED ) * + 60 * COUNT( * )
----
-3420

skipif mysql # not compatible
query I rowsort label-1951
SELECT - CAST ( 57 AS INTEGER ) * + 60 * COUNT ( * )
----
-3420

query I rowsort
SELECT ALL + 41 * 49 + 5
----
2014

query I rowsort
SELECT + NULLIF ( + 29, - 10 ) AS col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT - + ( + 59 ) DIV - 32
----
1

skipif mysql # not compatible
query I rowsort label-1954
SELECT - + ( + 59 ) / - 32
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1955
SELECT 65 * ( - + 71 ) / + COUNT( * ) * + + ( - 51 ) * + + 80 - + 21 * + - CAST( ( CAST( NULL AS DECIMAL ) ) AS SIGNED ) + 77 * CAST( NULL AS SIGNED ) * 52 + ( 49 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT 65 * ( - + 71 ) / + COUNT ( * ) * + + ( - 51 ) * + + 80 - + 21 * + - CAST ( ( CAST ( NULL AS REAL ) ) AS INTEGER ) + 77 * CAST ( NULL AS INTEGER ) * 52 + ( 49 ) col1
----
NULL

query II rowsort
SELECT DISTINCT - 60 * - 94 AS col1, - 5 * + 92 AS col0
----
5640
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT - ( - MIN( DISTINCT + 71 ) )
----
71

skipif mysql # not compatible
query I rowsort label-1957
SELECT - ( - MIN ( DISTINCT + 71 ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL + + COUNT( 82 ) * - 72 + + 6 col0
----
-66

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL + + COUNT ( 82 ) * - 72 + + 6 col0
----
-66

query I rowsort
SELECT + NULLIF ( 26, - + 25 ) * - 82
----
-2132

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT - 73 + + 80 * + COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1960
SELECT - 73 + + 80 * + COUNT ( * ) AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT ALL 12 - + CAST( - COUNT( DISTINCT - 27 ) AS SIGNED ) - - - 52 * + + COUNT( * ) + + COUNT( * ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL 12 - + CAST ( - COUNT ( DISTINCT - 27 ) AS INTEGER ) - - - 52 * + + COUNT ( * ) + + COUNT ( * ) AS col1
----
-38

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1963
SELECT - 86 + - + 49 + + - 92 - 1 DIV - + 11 + - 15
----
-242

skipif mysql # not compatible
query I rowsort label-1963
SELECT - 86 + - + 49 + + - 92 - 1 / - + 11 + - 15
----
-242

query I rowsort
SELECT + + 94 - + + 78
----
16

query II rowsort
SELECT + - 20 + + 60 col1, + 84 * - - 55
----
40
4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1966
SELECT + COUNT( * ) * - + MIN( ALL 24 ) AS col2, CAST( NULL AS SIGNED ) AS col2
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-1966
SELECT + COUNT ( * ) * - + MIN ( ALL 24 ) AS col2, CAST ( NULL AS INTEGER ) AS col2
----
-24
NULL

query I rowsort
SELECT + 86 + + + 84
----
170

query I rowsort
SELECT ALL 68 + + 57
----
125

query I rowsort
SELECT DISTINCT + 24 * - + 8 col1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT + SUM( ALL - COALESCE ( - 44, + + 51 + 11, - 72 - + 45 ) ) * COUNT( * ) * - CASE + 85 WHEN + ( - 2 ) + + - 43 + - + 5 THEN + + 38 END - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT + SUM ( ALL - COALESCE ( - 44, + + 51 + 11, - 72 - + 45 ) ) * COUNT ( * ) * - CASE + 85 WHEN + ( - 2 ) + + - 43 + - + 5 THEN + + 38 END - + 82
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1971
SELECT - 32 + - ( 6 ) + - COUNT( * ) * + 76 * + COUNT( * ) - - 37 * - ( + + 1 ) + - 24 + + 68 AS col0, + 50 AS col1
----
-107
50

skipif mysql # not compatible
query II rowsort label-1971
SELECT - 32 + - ( 6 ) + - COUNT ( * ) * + 76 * + COUNT ( * ) - - 37 * - ( + + 1 ) + - 24 + + 68 AS col0, + 50 AS col1
----
-107
50

query I rowsort
SELECT DISTINCT 97 * 70 AS col1
----
6790

onlyif mysql # DIV for integer division: 
query I rowsort label-1973
SELECT + 61 DIV + COALESCE ( 3, 19 * + 83 + + + 90 * 14 )
----
20

skipif mysql # not compatible
query I rowsort label-1973
SELECT + 61 / + COALESCE ( 3, 19 * + 83 + + + 90 * 14 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT + COUNT( * ) + 87 * + ( - 85 ) + + 43 + + ( - 26 ) AS col2
----
-7377

skipif mysql # not compatible
query I rowsort label-1974
SELECT + COUNT ( * ) + 87 * + ( - 85 ) + + 43 + + ( - 26 ) AS col2
----
-7377

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1975
SELECT ALL - 59 DIV 59 * CAST( - 67 AS SIGNED ) + - 95 + - - 64 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL - 59 / 59 * CAST ( - 67 AS INTEGER ) + - 95 + - - 64 AS col2
----
36

query I rowsort
SELECT DISTINCT 61 * - 2 AS col0
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT ALL 35 DIV COALESCE ( + 9, + 90 ) + + + 48 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL 35 / COALESCE ( + 9, + 90 ) + + + 48 AS col1
----
51

query I rowsort
SELECT ALL + COALESCE ( - 51, 44 * + 26 - - 41, + COALESCE ( - - 11, + + 86 ) * - 16 + + + 59 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1979
SELECT DISTINCT SUM( ALL + + 22 ) DIV + + 3 + + 81 * - + 80 AS col1
----
-6473

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT SUM ( ALL + + 22 ) / + + 3 + + 81 * - + 80 AS col1
----
-6473

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT DISTINCT + 62 * - MAX( - 77 ) AS col1
----
4774

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT + 62 * - MAX ( - 77 ) AS col1
----
4774

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

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

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

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

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

query I rowsort
SELECT - 77 + - 29 + 75 * + + 33
----
2369

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT + MIN( ALL - - 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT + MIN ( ALL - - 13 ) AS col1
----
13

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

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

query I rowsort
SELECT ALL - 70 * 74 AS col0
----
-5180

query I rowsort
SELECT 59 * 11 + - + 56
----
593

query I rowsort
SELECT - + 84 + + 61
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT 56 * + - COUNT( * ) * - 42 AS col0
----
2352

skipif mysql # not compatible
query I rowsort label-1990
SELECT 56 * + - COUNT ( * ) * - 42 AS col0
----
2352

query I rowsort
SELECT + 70 * 5 AS col0
----
350

query I rowsort
SELECT 15 + 76
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1993
SELECT ALL - + 50 * - 84 * + CAST( 1 AS SIGNED ) col0
----
4200

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL - + 50 * - 84 * + CAST ( 1 AS INTEGER ) col0
----
4200

query I rowsort
SELECT 94 + + 94 - - + 65
----
253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1995
SELECT DISTINCT + CAST( SUM( ALL 86 ) AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT + CAST ( SUM ( ALL 86 ) AS INTEGER ) AS col1
----
86

query I rowsort
SELECT DISTINCT - ( + 68 ) + - - 15
----
-53

query II rowsort
SELECT DISTINCT 41, 34 col0
----
41
34

query I rowsort
SELECT ALL - ( + + 26 ) + - 35 AS col2
----
-61

query I rowsort
SELECT 63 + - - 51 + + - 8 * - 30 * + + 39
----
9474

onlyif mysql # aggregate syntax: 
query II rowsort label-2000
SELECT ALL - ( - COUNT( 78 ) ) * 38, 91 AS col2
----
38
91

skipif mysql # not compatible
query II rowsort label-2000
SELECT ALL - ( - COUNT ( 78 ) ) * 38, 91 AS col2
----
38
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT MAX( DISTINCT + 41 ) + - - 5 * + 49 AS col0
----
286

skipif mysql # not compatible
query I rowsort label-2002
SELECT MAX ( DISTINCT + 41 ) + - - 5 * + 49 AS col0
----
286

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2003
SELECT DISTINCT 7, 7 * - CAST( NULL AS SIGNED ) * - 81 * + - 31 * + + 24 col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-2003
SELECT DISTINCT 7, 7 * - CAST ( NULL AS INTEGER ) * - 81 * + - 31 * + + 24 col1
----
7
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT ALL 15 + + 95 DIV + - 98 * + 38 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL 15 + + 95 / + - 98 * + 38 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT 53 * MIN( + 17 )
----
901

skipif mysql # not compatible
query I rowsort label-2005
SELECT 53 * MIN ( + 17 )
----
901

query I rowsort
SELECT 59 + 11 AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2007
SELECT DISTINCT 18, + ( - CAST( + ( - - 27 ) AS SIGNED ) ) AS col0
----
18
-27

skipif mysql # not compatible
query II rowsort label-2007
SELECT DISTINCT 18, + ( - CAST ( + ( - - 27 ) AS INTEGER ) ) AS col0
----
18
-27

query I rowsort
SELECT ALL 84 + - 88 - - 75
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT 78 * - - 26 * - + COUNT( * ) AS col1
----
-2028

skipif mysql # not compatible
query I rowsort label-2009
SELECT 78 * - - 26 * - + COUNT ( * ) AS col1
----
-2028

onlyif mysql # DIV for integer division: 
query I rowsort label-2010
SELECT ALL 96 DIV + - 61
----
-1

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL 96 / + - 61
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2011
SELECT DISTINCT 14 - + 10 * - + COUNT( * ) * - + 81 AS col0, - 47 + - MAX( ALL - - 42 ) AS col1
----
-796
-89

skipif mysql # not compatible
query II rowsort label-2011
SELECT DISTINCT 14 - + 10 * - + COUNT ( * ) * - + 81 AS col0, - 47 + - MAX ( ALL - - 42 ) AS col1
----
-796
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT + COUNT( 72 ) * - - 6 + + + SUM( + 12 ) + 49 - - MAX( - 18 ) + 24 * + - 11 * 49 + + - 4 + COALESCE ( + 45, ( - ( + 33 ) ) * COUNT( * ) ) - COUNT( ALL 34 ) * 31
----
-12877

skipif mysql # not compatible
query I rowsort label-2012
SELECT + COUNT ( 72 ) * - - 6 + + + SUM ( + 12 ) + 49 - - MAX ( - 18 ) + 24 * + - 11 * 49 + + - 4 + COALESCE ( + 45, ( - ( + 33 ) ) * COUNT ( * ) ) - COUNT ( ALL 34 ) * 31
----
-12877

query I rowsort
SELECT ALL 90 - + 70 + + 57
----
77

query I rowsort
SELECT ALL 49 * 10 AS col2
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT 68 * - SUM( ALL 15 ) AS col2
----
-1020

skipif mysql # not compatible
query I rowsort label-2015
SELECT 68 * - SUM ( ALL 15 ) AS col2
----
-1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2016
SELECT 76 DIV - + 33 + - COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2016
SELECT 76 / - + 33 + - COUNT ( * ) AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2017
SELECT 75 DIV - SUM( ALL + 9 )
----
-8

skipif mysql # not compatible
query I rowsort label-2017
SELECT 75 / - SUM ( ALL + 9 )
----
-8

query II rowsort
SELECT + 88 AS col2, 41 AS col0
----
88
41

query I rowsort
SELECT 66 + + 48 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT 81 * 85 + NULLIF ( + + 88, + 0 ) + - 24 * - ( - COUNT( * ) )
----
6949

skipif mysql # not compatible
query I rowsort label-2020
SELECT 81 * 85 + NULLIF ( + + 88, + 0 ) + - 24 * - ( - COUNT ( * ) )
----
6949

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT ALL 44 * + - 68 + COUNT( * ) col2
----
-2991

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL 44 * + - 68 + COUNT ( * ) col2
----
-2991

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2022
SELECT COUNT( * ) * + + 67 DIV ( - - 91 ) * - 38 * - - 61 - + 97 + COUNT( 26 ) col0, 71
----
-96
71

skipif mysql # not compatible
query II rowsort label-2022
SELECT COUNT ( * ) * + + 67 / ( - - 91 ) * - 38 * - - 61 - + 97 + COUNT ( 26 ) col0, 71
----
-96
71

onlyif mysql # aggregate syntax: 
query III rowsort label-2023
SELECT ALL - COUNT( * ) col2, COUNT( * ) col2, + - NULLIF ( + 77, MIN( 65 ) * - + 49 )
----
-1
1
-77

skipif mysql # not compatible
query III rowsort label-2023
SELECT ALL - COUNT ( * ) col2, COUNT ( * ) col2, + - NULLIF ( + 77, MIN ( 65 ) * - + 49 )
----
-1
1
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT COUNT( DISTINCT - + COALESCE ( 94, - - 13 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2024
SELECT COUNT ( DISTINCT - + COALESCE ( 94, - - 13 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2025
SELECT - 2 * COUNT( * ) * + CASE + 43 WHEN + + MIN( + 0 ) / - - CAST( NULL AS SIGNED ) + CASE ( - + 54 ) WHEN 85 THEN + + CASE 86 WHEN + + 82 THEN - ( + COALESCE ( ( 47 ), - CAST( COALESCE ( + 32, 13 * + 1 ) AS DECIMAL ) ) ) WHEN + 27 THEN + 93 ELSE + ( 75 ) END + - 59 * - MIN( 70 ) END - ( COUNT( ( - 75 ) ) ) THEN NULL WHEN + COUNT( * ) THEN 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT - 2 * COUNT ( * ) * + CASE + 43 WHEN + + MIN ( + 0 ) / - - CAST ( NULL AS INTEGER ) + CASE ( - + 54 ) WHEN 85 THEN + + CASE 86 WHEN + + 82 THEN - ( + COALESCE ( ( 47 ), - CAST ( COALESCE ( + 32, 13 * + 1 ) AS REAL ) ) ) WHEN + 27 THEN + 93 ELSE + ( 75 ) END + - 59 * - MIN ( 70 ) END - ( COUNT ( ( - 75 ) ) ) THEN NULL WHEN + COUNT ( * ) THEN 93 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2026
SELECT ALL - + CAST( + + 3 AS SIGNED ) AS col1, 0 + 65 + + + CAST( + - 30 AS SIGNED ) + - 30 + + + SUM( ALL + 3 ) + - 29 + - SUM( ALL - 55 ) DIV - 66 col1
----
-3
-21

skipif mysql # not compatible
query II rowsort label-2026
SELECT ALL - + CAST ( + + 3 AS INTEGER ) AS col1, 0 + 65 + + + CAST ( + - 30 AS INTEGER ) + - 30 + + + SUM ( ALL + 3 ) + - 29 + - SUM ( ALL - 55 ) / - 66 col1
----
-3
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2027
SELECT DISTINCT - COUNT( * ) AS col1, - 57 * - + 3 * - 0
----
-1
0

skipif mysql # not compatible
query II rowsort label-2027
SELECT DISTINCT - COUNT ( * ) AS col1, - 57 * - + 3 * - 0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT 71 - - - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-2028
SELECT 71 - - - COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT + SUM( - ( + 60 ) ) * + - 57 + - 89 + - 74 + + 38 AS col0
----
3295

skipif mysql # not compatible
query I rowsort label-2029
SELECT + SUM ( - ( + 60 ) ) * + - 57 + - 89 + - 74 + + 38 AS col0
----
3295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2030
SELECT + 38 * - CAST( NULL AS SIGNED ) * + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT + 38 * - CAST ( NULL AS INTEGER ) * + + 52
----
NULL

query I rowsort
SELECT ALL - + 98 + + 23 col0
----
-75

query II rowsort
SELECT 23 AS col1, 73 * - 58 AS col2
----
23
-4234

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT DISTINCT - 25 + + COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT - 25 + + COUNT ( * ) AS col2
----
-24

query II rowsort
SELECT ALL - 50, + 20 * - 22 * + 31 AS col2
----
-50
-13640

query II rowsort
SELECT + 52 AS col2, NULLIF ( - - 47, 25 ) col0
----
52
47

query I rowsort
SELECT DISTINCT + 56 + - - 51
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT NULLIF ( + COALESCE ( 71, - 95 * - COUNT( * ) - 41 + + COALESCE ( 93, - - 87 + - + CAST( NULL AS SIGNED ) + - + COUNT( * ) ) + - 75 * NULLIF ( - - 47, + 47 * + 86 + + 74 ) ), - 47 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2037
SELECT NULLIF ( + COALESCE ( 71, - 95 * - COUNT ( * ) - 41 + + COALESCE ( 93, - - 87 + - + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) ) + - 75 * NULLIF ( - - 47, + 47 * + 86 + + 74 ) ), - 47 ) AS col0
----
71

query I rowsort
SELECT DISTINCT - 64 + - 34 AS col2
----
-98

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

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

query II rowsort
SELECT ALL + 52 + - 53 AS col1, ( - 64 ) AS col1
----
-1
-64

query I rowsort
SELECT 53 + 87 AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT MAX( ALL + 13 ) * + 24
----
312

skipif mysql # not compatible
query I rowsort label-2042
SELECT MAX ( ALL + 13 ) * + 24
----
312

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2043
SELECT DISTINCT 44 * - - ( + CAST( NULL AS DECIMAL ) ) * + 34 - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT 44 * - - ( + CAST ( NULL AS REAL ) ) * + 34 - - 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2044
SELECT DISTINCT - 89 * + COUNT( * ) col2, COUNT( * ) - 17 AS col0
----
-89
-16

skipif mysql # not compatible
query II rowsort label-2044
SELECT DISTINCT - 89 * + COUNT ( * ) col2, COUNT ( * ) - 17 AS col0
----
-89
-16

query I rowsort
SELECT DISTINCT + 34 - + 90 AS col2
----
-56

query I rowsort
SELECT ALL - 80 * - - 82 AS col1
----
-6560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2047
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + - 55 * + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2047
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 55 * + - 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2048
SELECT ALL MAX( - 15 ), 11 + - + 1 AS col2
----
-15
10

skipif mysql # not compatible
query II rowsort label-2048
SELECT ALL MAX ( - 15 ), 11 + - + 1 AS col2
----
-15
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT 78 * MAX( - 99 )
----
-7722

skipif mysql # not compatible
query I rowsort label-2049
SELECT 78 * MAX ( - 99 )
----
-7722

query II rowsort
SELECT 13 * + 12, + 44 AS col1
----
156
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT + 20 * - 58 * - 71 + MIN( - 66 ) AS col1
----
82294

skipif mysql # not compatible
query I rowsort label-2051
SELECT + 20 * - 58 * - 71 + MIN ( - 66 ) AS col1
----
82294

query I rowsort
SELECT DISTINCT - 63 * + 48 AS col1
----
-3024

query I rowsort
SELECT ALL - ( - - 77 ) AS col2
----
-77

query I rowsort
SELECT DISTINCT 7 * - 12 * + 47
----
-3948

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT ALL + 53 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL + 53 / - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT + - 70 * + NULLIF ( + - COUNT( * ), - COUNT( * ) ) * MAX( DISTINCT + 9 ) * - - 16 + + ( + - CASE + COUNT( * ) WHEN + 80 THEN NULL WHEN ( - - 43 ) * MIN( + 35 ) - - 50 THEN + 74 + 78 WHEN + 55 + - 55 THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT + - 70 * + NULLIF ( + - COUNT ( * ), - COUNT ( * ) ) * MAX ( DISTINCT + 9 ) * - - 16 + + ( + - CASE + COUNT ( * ) WHEN + 80 THEN NULL WHEN ( - - 43 ) * MIN ( + 35 ) - - 50 THEN + 74 + 78 WHEN + 55 + - 55 THEN NULL ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT + 95 * + 7 * - 80 AS col2
----
-53200

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL + + 52 * + COUNT( * ) + + ( + 44 ) - - + ( + 63 ) * + 15 * - + COUNT( * ) + + COUNT( * ) col2
----
-848

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + + 52 * + COUNT ( * ) + + ( + 44 ) - - + ( + 63 ) * + 15 * - + COUNT ( * ) + + COUNT ( * ) col2
----
-848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2060
SELECT + 22 DIV + 73 + - 28 + + ( - MIN( DISTINCT - 41 ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2060
SELECT + 22 / + 73 + - 28 + + ( - MIN ( DISTINCT - 41 ) ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT ALL - + 53 * 99 + + SUM( DISTINCT + 16 ) + + 97 AS col0
----
-5134

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL - + 53 * 99 + + SUM ( DISTINCT + 16 ) + + 97 AS col0
----
-5134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2062
SELECT DISTINCT + 55 * + + ( + + 70 ) * - 52 + + 66 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT + 55 * + + ( + + 70 ) * - 52 + + 66 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2063
SELECT DISTINCT 54 * - 65 DIV + COUNT( * )
----
-3510

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT 54 * - 65 / + COUNT ( * )
----
-3510

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2064
SELECT DISTINCT + + 67 * + - 9 * + COUNT( * ) + + COALESCE ( - 81, 21 ) * 52 AS col2, + 29 DIV - + COUNT( * ) + 72
----
-4815
43

skipif mysql # not compatible
query II rowsort label-2064
SELECT DISTINCT + + 67 * + - 9 * + COUNT ( * ) + + COALESCE ( - 81, 21 ) * 52 AS col2, + 29 / - + COUNT ( * ) + 72
----
-4815
43

query II rowsort
SELECT + + NULLIF ( + 0, + CASE ( + 2 ) WHEN 80 THEN - ( + 25 ) END + - ( - + 94 ) ) AS col2, + 12
----
0
12

query I rowsort
SELECT ALL 70 * + 61 + + + 70
----
4340

query I rowsort
SELECT 41 * + 67 + - 45
----
2702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT ( + NULLIF ( + CAST( NULL AS SIGNED ), CASE - 27 WHEN 93 THEN + 61 * - - 36 ELSE + 74 + + 42 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT ( + NULLIF ( + CAST ( NULL AS INTEGER ), CASE - 27 WHEN 93 THEN + 61 * - - 36 ELSE + 74 + + 42 END ) )
----
NULL

query I rowsort
SELECT - 25 + 53 * 85 AS col1
----
4480

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

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

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

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

query I rowsort
SELECT ALL 39 + 36 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT + 45 * + ( + COUNT( ( + + 37 ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-2073
SELECT + 45 * + ( + COUNT ( ( + + 37 ) ) )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT - CAST( NULL AS SIGNED ) + + + 94 * - + ( + + 48 ) + - - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT - CAST ( NULL AS INTEGER ) + + + 94 * - + ( + + 48 ) + - - 10 AS col0
----
NULL

query I rowsort
SELECT ALL + 20 + 25
----
45

query II rowsort
SELECT - CASE - 43 WHEN - 83 THEN NULL ELSE + + 90 END AS col2, 76 * - + 74 * + 36
----
-90
-202464

query I rowsort
SELECT ALL + 48 * + 96 AS col1
----
4608

query I rowsort
SELECT ALL 21 * - - 57 col2
----
1197

query I rowsort
SELECT DISTINCT 38 - 47 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL NULLIF ( - - 99, - + 22 * 95 + - + NULLIF ( COUNT( * ), - 43 - 16 + 84 + - ( 78 ) * - + ( COUNT( - - 89 ) ) * - 77 ) ) col1
----
99

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL NULLIF ( - - 99, - + 22 * 95 + - + NULLIF ( COUNT ( * ), - 43 - 16 + 84 + - ( 78 ) * - + ( COUNT ( - - 89 ) ) * - 77 ) ) col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL MAX( ALL - 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL MAX ( ALL - 24 ) AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2082
SELECT - 43 + + 47 + + COUNT( * ) - + COALESCE ( 17, + COUNT( ALL + 86 ) DIV - 37 * + SUM( ALL ( - + 51 ) ) ) - - - 6 col1
----
-18

skipif mysql # not compatible
query I rowsort label-2082
SELECT - 43 + + 47 + + COUNT ( * ) - + COALESCE ( 17, + COUNT ( ALL + 86 ) / - 37 * + SUM ( ALL ( - + 51 ) ) ) - - - 6 col1
----
-18

query I rowsort
SELECT ALL NULLIF ( - 45, - AVG ( ALL + + 99 ) - - + 66 )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT ALL CASE + COUNT( * ) WHEN COALESCE ( AVG ( ALL - + 48 ), - 36 ) THEN + - 54 * CAST( NULL AS SIGNED ) * 95 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL CASE + COUNT ( * ) WHEN COALESCE ( AVG ( ALL - + 48 ), - 36 ) THEN + - 54 * CAST ( NULL AS INTEGER ) * 95 END AS col2
----
NULL

query I rowsort
SELECT - ( 39 ) + 23 + 70 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL + ( + 48 ) * - COUNT( * ) * - 66
----
3168

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL + ( + 48 ) * - COUNT ( * ) * - 66
----
3168

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

skipif mysql # not compatible
query I rowsort label-2087
SELECT - 1 / 15
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2088
SELECT - 66 + + 87 + CAST( + 17 AS SIGNED ) * COUNT( * ) col0
----
38

skipif mysql # not compatible
query I rowsort label-2088
SELECT - 66 + + 87 + CAST ( + 17 AS INTEGER ) * COUNT ( * ) col0
----
38

query I rowsort
SELECT DISTINCT - 41 * - 14 * - 69
----
-39606

onlyif mysql # DIV for integer division: 
query I rowsort label-2090
SELECT DISTINCT - 38 DIV 40 * 97 + 7 + + 59 - + - 88 * + 56 AS col0
----
4994

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT - 38 / 40 * 97 + 7 + + 59 - + - 88 * + 56 AS col0
----
4994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT - CAST( NULL AS SIGNED ) * + 72 - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT - CAST ( NULL AS INTEGER ) * + 72 - 22
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2092
SELECT DISTINCT + + COUNT( * ) DIV + 38 + - + ( + 32 ) - - 71 + - 92 * - + 62 * 26
----
148343

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT + + COUNT ( * ) / + 38 + - + ( + 32 ) - - 71 + - 92 * - + 62 * 26
----
148343

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT - + 94 / + 33 + - - COUNT( * ) - - NULLIF ( - - 3, + ( - - 3 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT - + 94 / + 33 + - - COUNT ( * ) - - NULLIF ( - - 3, + ( - - 3 ) )
----
NULL

query I rowsort
SELECT ALL + 47 * - 52 AS col0
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT + ( 31 ) * - + 86 + + + CASE 54 WHEN + + MAX( DISTINCT - - ( 13 ) ) + + 93 THEN + - 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT + ( 31 ) * - + 86 + + + CASE 54 WHEN + + MAX ( DISTINCT - - ( 13 ) ) + + 93 THEN + - 38 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2096
SELECT ALL + NULLIF ( + 80, - 1 ), SUM( - - 5 ) AS col2
----
80
5

skipif mysql # not compatible
query II rowsort label-2096
SELECT ALL + NULLIF ( + 80, - 1 ), SUM ( - - 5 ) AS col2
----
80
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT CAST( 91 AS SIGNED ) col2
----
91

skipif mysql # not compatible
query I rowsort label-2097
SELECT CAST ( 91 AS INTEGER ) col2
----
91

query II rowsort
SELECT ALL + 58 * + - 66 + - 33, 94 AS col2
----
-3861
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2099
SELECT ALL 18 * + NULLIF ( + NULLIF ( - + CAST( NULL AS DECIMAL ), ( COUNT( - + 11 ) ) ), - 46 ) + - 13 * - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL 18 * + NULLIF ( + NULLIF ( - + CAST ( NULL AS REAL ), ( COUNT ( - + 11 ) ) ), - 46 ) + - 13 * - 43 AS col2
----
NULL

query II rowsort
SELECT 96, - 10 * 31 AS col2
----
96
-310

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

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

query II rowsort
SELECT 33 AS col0, - 89 + 58
----
33
-31

query II rowsort
SELECT - + 9 - ( + 46 ), - 74 + 10 AS col2
----
-55
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2104
SELECT + ( ( + CAST( NULL AS SIGNED ) ) ) * 35 * 81 * - 62 + + + 92 AS col0, + 40 - + + COALESCE ( - - 37, + 15 * 74, MAX( 56 ) + + ( - + 10 ) ) AS col1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2104
SELECT + ( ( + CAST ( NULL AS INTEGER ) ) ) * 35 * 81 * - 62 + + + 92 AS col0, + 40 - + + COALESCE ( - - 37, + 15 * 74, MAX ( 56 ) + + ( - + 10 ) ) AS col1
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2105
SELECT CASE 20 WHEN - 78 THEN + - CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT CASE 20 WHEN - 78 THEN + - CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 21 * + 44
----
924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2107
SELECT DISTINCT + CAST( - - 11 AS SIGNED ) * - + COUNT( * ) * + - 69
----
759

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT + CAST ( - - 11 AS INTEGER ) * - + COUNT ( * ) * + - 69
----
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT + ( - CAST( NULL AS SIGNED ) ) * 23 + + + CASE + 58 WHEN - 76 THEN - 65 WHEN + - 66 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT + ( - CAST ( NULL AS INTEGER ) ) * 23 + + + CASE + 58 WHEN - 76 THEN - 65 WHEN + - 66 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT CASE - COUNT( * ) WHEN + - 1 THEN - - CAST( + 12 AS SIGNED ) * 13 ELSE - 65 END AS col1
----
156

skipif mysql # not compatible
query I rowsort label-2109
SELECT CASE - COUNT ( * ) WHEN + - 1 THEN - - CAST ( + 12 AS INTEGER ) * 13 ELSE - 65 END AS col1
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2110
SELECT ALL 80 * - 34 * - 72 * 16 AS col2, 86 * - CAST( + 2 AS SIGNED )
----
3133440
-172

skipif mysql # not compatible
query II rowsort label-2110
SELECT ALL 80 * - 34 * - 72 * 16 AS col2, 86 * - CAST ( + 2 AS INTEGER )
----
3133440
-172

query I rowsort
SELECT ALL COALESCE ( + + 57, + + 10 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT + 26 * - 81 * 89 + - ( - + MIN( 48 ) ) AS col1
----
-187386

skipif mysql # not compatible
query I rowsort label-2112
SELECT + 26 * - 81 * 89 + - ( - + MIN ( 48 ) ) AS col1
----
-187386

query I rowsort
SELECT - 61 * + 64 AS col2
----
-3904

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT + 31 + - 6 + COUNT( * ) * - 54
----
-29

skipif mysql # not compatible
query I rowsort label-2114
SELECT + 31 + - 6 + COUNT ( * ) * - 54
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT + ( 94 ) + 45 * - 73 + COUNT( * ) * 8
----
-3183

skipif mysql # not compatible
query I rowsort label-2115
SELECT + ( 94 ) + 45 * - 73 + COUNT ( * ) * 8
----
-3183

query I rowsort
SELECT ALL + 17 * + 63
----
1071

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

skipif mysql # not compatible
query I rowsort label-2117
SELECT + CAST ( NULL AS INTEGER ) * - 48 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2118
SELECT DISTINCT 31 DIV 26 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT 31 / 26 AS col1
----
1

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

query I rowsort
SELECT ALL - + 96 + - - ( + 62 )
----
-34

query I rowsort
SELECT DISTINCT 29 + + 66 + + - 3 AS col0
----
92

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

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT - COUNT ( * ) / + 32 + 81 AS col0
----
81

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2126
SELECT CAST( + CASE - - ( + - 23 ) WHEN - - 19 THEN + MIN( ALL - CAST( 3 AS SIGNED ) ) + + 10 + - + COUNT( * ) + + 63 ELSE + + CASE - - 92 WHEN 18 * + ( - + 14 ) + 32 * - + CASE + - COUNT( * ) WHEN 26 THEN 76 END THEN + 22 * 14 - 98 ELSE 44 * - 2 END * + 56 END AS SIGNED ) DIV + 16 - 71 AS col1
----
-379

skipif mysql # not compatible
query I rowsort label-2126
SELECT CAST ( + CASE - - ( + - 23 ) WHEN - - 19 THEN + MIN ( ALL - CAST ( 3 AS INTEGER ) ) + + 10 + - + COUNT ( * ) + + 63 ELSE + + CASE - - 92 WHEN 18 * + ( - + 14 ) + 32 * - + CASE + - COUNT ( * ) WHEN 26 THEN 76 END THEN + 22 * 14 - 98 ELSE 44 * - 2 END * + 56 END AS INTEGER ) / + 16 - 71 AS col1
----
-379

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ALL + 35 * NULLIF ( + COUNT( * ), + + 11 * - 39 + + COUNT( * ) ) - + COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL + 35 * NULLIF ( + COUNT ( * ), + + 11 * - 39 + + COUNT ( * ) ) - + COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT - - 32 * - NULLIF ( COALESCE ( + + 17, + COUNT( * ) ), - 2 ) * - - 67 + + 19 col1
----
-36429

skipif mysql # not compatible
query I rowsort label-2128
SELECT - - 32 * - NULLIF ( COALESCE ( + + 17, + COUNT ( * ) ), - 2 ) * - - 67 + + 19 col1
----
-36429

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

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

query I rowsort
SELECT 17 + - 48 * - 81
----
3905

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT ALL MAX( - 69 ) DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL MAX ( - 69 ) / + 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2132
SELECT ALL - COALESCE ( CAST( 83 AS SIGNED ), + CAST( NULL AS SIGNED ) DIV + 5, + + 15 + + + 47 * 21 * + + ( + 61 ), - ( - MIN( DISTINCT - 71 ) ) + CAST( + 37 AS SIGNED ) ), 11 AS col0
----
-83
11

skipif mysql # not compatible
query II rowsort label-2132
SELECT ALL - COALESCE ( CAST ( 83 AS INTEGER ), + CAST ( NULL AS INTEGER ) / + 5, + + 15 + + + 47 * 21 * + + ( + 61 ), - ( - MIN ( DISTINCT - 71 ) ) + CAST ( + 37 AS INTEGER ) ), 11 AS col0
----
-83
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2133
SELECT ALL - 30 DIV 42 * - 90
----
0

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL - 30 / 42 * - 90
----
0

query I rowsort
SELECT 62 * + 22 AS col0
----
1364

query I rowsort
SELECT 97 + - 63
----
34

query I rowsort
SELECT ALL - 21 * - - 43
----
-903

onlyif mysql # DIV for integer division: 
query I rowsort label-2137
SELECT 68 DIV + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2137
SELECT 68 / + 90 AS col0
----
0

query I rowsort
SELECT 4 * - 79
----
-316

query I rowsort
SELECT NULLIF ( - + 39, - 72 ) + + - 21 * - + CASE 99 WHEN - + 60 THEN - 26 ELSE NULL END AS col0
----
NULL

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

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

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

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

query II rowsort
SELECT ALL 19 AS col0, + ( 64 ) AS col1
----
19
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT 94 DIV 85 * + 39
----
39

skipif mysql # not compatible
query I rowsort label-2143
SELECT 94 / 85 * + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL + MAX( + + 31 ) * ( COUNT( * ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL + MAX ( + + 31 ) * ( COUNT ( * ) ) AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2145
SELECT ALL 72 DIV - ( + ( - + 95 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL 72 / - ( + ( - + 95 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2146
SELECT DISTINCT COUNT( * ) + + 36 - - + 49, + 47 AS col1
----
86
47

skipif mysql # not compatible
query II rowsort label-2146
SELECT DISTINCT COUNT ( * ) + + 36 - - + 49, + 47 AS col1
----
86
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT DISTINCT 19 + - + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT 19 + - + COUNT ( * ) AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2148
SELECT DISTINCT NULLIF ( + COALESCE ( + - 86, + 14 DIV - + SUM( DISTINCT 81 ) - + + 57 + + 93 * - + 33 ), 86 ) + + + ( + 12 ) * + 53 AS col1, - 50 * - MAX( - 27 ) - - + 39 * + 81 + + - CASE + + 5 WHEN 76 + - 89 THEN NULL WHEN 75 THEN - COUNT( * ) - + 12 END
----
550
NULL

skipif mysql # not compatible
query II rowsort label-2148
SELECT DISTINCT NULLIF ( + COALESCE ( + - 86, + 14 / - + SUM ( DISTINCT 81 ) - + + 57 + + 93 * - + 33 ), 86 ) + + + ( + 12 ) * + 53 AS col1, - 50 * - MAX ( - 27 ) - - + 39 * + 81 + + - CASE + + 5 WHEN 76 + - 89 THEN NULL WHEN 75 THEN - COUNT ( * ) - + 12 END
----
550
NULL

query I rowsort
SELECT ALL - 91 + + + 4
----
-87

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

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

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

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

query I rowsort
SELECT DISTINCT 84 + - + 16
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT DISTINCT - 42 + + COUNT( * ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT - 42 + + COUNT ( * ) AS col1
----
-41

query I rowsort
SELECT DISTINCT + 83 + + + 40 AS col2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT ALL + CAST( + 10 AS SIGNED ) + + + 29 + - 56 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + CAST ( + 10 AS INTEGER ) + + + 29 + - 56 AS col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2156
SELECT DISTINCT 49, COUNT( * ) * 48 + - + ( + 25 ) * + COUNT( * ) DIV - ( + 60 ) * + - 94 col1
----
49
48

skipif mysql # not compatible
query II rowsort label-2156
SELECT DISTINCT 49, COUNT ( * ) * 48 + - + ( + 25 ) * + COUNT ( * ) / - ( + 60 ) * + - 94 col1
----
49
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2157
SELECT DISTINCT ( 71 ) * + - ( + + 30 ) * CAST( 6 AS SIGNED ) + - 58 + + 73 + - 88
----
-12853

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT ( 71 ) * + - ( + + 30 ) * CAST ( 6 AS INTEGER ) + - 58 + + 73 + - 88
----
-12853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2158
SELECT + CAST( ( + + COUNT( * ) ) AS SIGNED ) * - CAST( + - ( + - 17 ) AS SIGNED ) - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2158
SELECT + CAST ( ( + + COUNT ( * ) ) AS INTEGER ) * - CAST ( + - ( + - 17 ) AS INTEGER ) - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2159
SELECT + 35 * - NULLIF ( - 25, - - SUM( ALL + NULLIF ( - 17, CAST( NULL AS SIGNED ) * - + 34 ) ) + 25 ) + - ( + + 95 )
----
780

skipif mysql # not compatible
query I rowsort label-2159
SELECT + 35 * - NULLIF ( - 25, - - SUM ( ALL + NULLIF ( - 17, CAST ( NULL AS INTEGER ) * - + 34 ) ) + 25 ) + - ( + + 95 )
----
780

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2160
SELECT ALL 14 - + + 50 * + 50 + COALESCE ( + - 37, - 45 * + - MAX( DISTINCT - 20 ) DIV + 29 * + + 67 - + 7 ), 68 AS col1
----
-2523
68

skipif mysql # not compatible
query II rowsort label-2160
SELECT ALL 14 - + + 50 * + 50 + COALESCE ( + - 37, - 45 * + - MAX ( DISTINCT - 20 ) / + 29 * + + 67 - + 7 ), 68 AS col1
----
-2523
68

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

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

query I rowsort
SELECT DISTINCT - 65 * 27 col1
----
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT ALL - SUM( DISTINCT 9 ) * + - ( + - 45 )
----
-405

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL - SUM ( DISTINCT 9 ) * + - ( + - 45 )
----
-405

query I rowsort
SELECT DISTINCT + 34 * 45
----
1530

query I rowsort
SELECT 82 * + - COALESCE ( ( + 69 ), - - 96 ) AS col0
----
-5658

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2167
SELECT COUNT( * ) col2, + 69 + + - 0 * + 28
----
1
69

skipif mysql # not compatible
query II rowsort label-2167
SELECT COUNT ( * ) col2, + 69 + + - 0 * + 28
----
1
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2168
SELECT ALL - COUNT( * ) AS col2, COUNT( * ) DIV 44 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-2168
SELECT ALL - COUNT ( * ) AS col2, COUNT ( * ) / 44 AS col2
----
-1
0

query I rowsort
SELECT DISTINCT - 35 * - + ( + - 2 )
----
-70

query I rowsort
SELECT 7 * 84
----
588

query I rowsort
SELECT 78 - + 99 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2172
SELECT ALL - COUNT( * ), 52 AS col2
----
-1
52

skipif mysql # not compatible
query II rowsort label-2172
SELECT ALL - COUNT ( * ), 52 AS col2
----
-1
52

query I rowsort
SELECT 97 * + 16 AS col2
----
1552

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT DISTINCT - NULLIF ( - - COUNT( - 25 ), + 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT - NULLIF ( - - COUNT ( - 25 ), + 16 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2176
SELECT ALL CASE + 25 WHEN - CAST( COUNT( * ) AS SIGNED ) - - 44 THEN + 97 END + COUNT( ALL - + 38 ) * + 93 / + 66 + CASE + 31 WHEN - + NULLIF ( - 0, - + CASE - 99 WHEN + 50 THEN - + COUNT( * ) WHEN 37 * - CAST( NULL AS SIGNED ) * - - COUNT( * ) + - 44 THEN + 36 END * 46 ) THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL CASE + 25 WHEN - CAST ( COUNT ( * ) AS INTEGER ) - - 44 THEN + 97 END + COUNT ( ALL - + 38 ) * + 93 / + 66 + CASE + 31 WHEN - + NULLIF ( - 0, - + CASE - 99 WHEN + 50 THEN - + COUNT ( * ) WHEN 37 * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + - 44 THEN + 36 END * 46 ) THEN - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2177
SELECT 41 AS col2, + COUNT( * ) + - 3 AS col0
----
41
-2

skipif mysql # not compatible
query II rowsort label-2177
SELECT 41 AS col2, + COUNT ( * ) + - 3 AS col0
----
41
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT ALL MIN( DISTINCT - 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL MIN ( DISTINCT - 46 ) AS col2
----
-46

query I rowsort
SELECT ALL ( 75 ) + + ( 26 )
----
101

query I rowsort
SELECT - 49 + + 18 * + 52 AS col2
----
887

query I rowsort
SELECT - 54 - + + 28
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL + 27 + - MAX( + 72 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + 27 + - MAX ( + 72 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT - MAX( + + CASE + 70 WHEN - + 46 THEN + 7 + + 41 * + - ( + 70 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT - MAX ( + + CASE + 70 WHEN - + 46 THEN + 7 + + 41 * + - ( + 70 ) END ) AS col2
----
NULL

query I rowsort
SELECT - 90 + - 28
----
-118

query I rowsort
SELECT ALL 29 * 60 col1
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT DISTINCT - - ( + COUNT( ALL 82 ) ) + - 50
----
-49

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT - - ( + COUNT ( ALL 82 ) ) + - 50
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-2187
SELECT DISTINCT - 78, COUNT( * ) AS col0
----
-78
1

skipif mysql # not compatible
query II rowsort label-2187
SELECT DISTINCT - 78, COUNT ( * ) AS col0
----
-78
1

query I rowsort
SELECT DISTINCT - COALESCE ( + - 40, - 11 ) + + 80 + + + COALESCE ( + 53, - + 87, 62 + + 97 * - + 1 ) + - + 37 + + 99 * 9 col0
----
1027

query I rowsort
SELECT + - 49 * 45 AS col1
----
-2205

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL + + COUNT( * ) * - - SUM( + 66 ) + + 5 - 41 * - - 96 AS col0
----
-3865

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL + + COUNT ( * ) * - - SUM ( + 66 ) + + 5 - 41 * - - 96 AS col0
----
-3865

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

skipif mysql # not compatible
query II rowsort label-2191
SELECT COUNT ( * ), 1 * - 33 AS col0
----
1
-33

query I rowsort
SELECT + - ( + - ( + - ( - 98 ) ) ) + + 27 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT + 6 * ( COALESCE ( COUNT( * ), + 88 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2193
SELECT + 6 * ( COALESCE ( COUNT ( * ), + 88 ) ) AS col1
----
6

query I rowsort
SELECT + + 97 - + + 39
----
58

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

query I rowsort
SELECT + - 22 + + - 26 AS col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2197
SELECT ALL + CAST( NULL AS SIGNED ) * - 28 * 11 + - CAST( NULL AS SIGNED ) * - ( + 17 ) * + 56 * - 50 + + - 92 AS col0, 22 AS col1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-2197
SELECT ALL + CAST ( NULL AS INTEGER ) * - 28 * 11 + - CAST ( NULL AS INTEGER ) * - ( + 17 ) * + 56 * - 50 + + - 92 AS col0, 22 AS col1
----
NULL
22

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

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

query I rowsort
SELECT + 63 + + - 79 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT ALL 74 * - COUNT( ALL 76 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL 74 * - COUNT ( ALL 76 ) AS col0
----
-74

query I rowsort
SELECT + 45 * + 50 + + 8
----
2258

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

skipif mysql # not compatible
query I rowsort label-2202
SELECT + COUNT ( * ) / - + 99
----
0

query I rowsort
SELECT - 21 * 58
----
-1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2204
SELECT + 51 * 89 + + - 79 + + NULLIF ( + 6, + COUNT( * ) ) + - MAX( 85 ) - 56 + + CAST( + 97 AS SIGNED ) * + 79 AS col1
----
11988

skipif mysql # not compatible
query I rowsort label-2204
SELECT + 51 * 89 + + - 79 + + NULLIF ( + 6, + COUNT ( * ) ) + - MAX ( 85 ) - 56 + + CAST ( + 97 AS INTEGER ) * + 79 AS col1
----
11988

query I rowsort
SELECT COALESCE ( 3, + + 67 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT + ( + - 35 ) + - 86 - 1 * - COUNT( * ) col2
----
-120

skipif mysql # not compatible
query I rowsort label-2206
SELECT + ( + - 35 ) + - 86 - 1 * - COUNT ( * ) col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT COALESCE ( 9, - COUNT( * ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2207
SELECT COALESCE ( 9, - COUNT ( * ) ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2208
SELECT DISTINCT 8 DIV - ( - ( + MIN( ALL - - 7 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT 8 / - ( - ( + MIN ( ALL - - 7 ) ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2209
SELECT ALL 82 * + 60 + - COUNT( * ) + - 10 DIV + 65 + 71 AS col0
----
4990

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL 82 * + 60 + - COUNT ( * ) + - 10 / + 65 + 71 AS col0
----
4990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2210
SELECT 58 * 61 / MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + + 86 + - ( + 4 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2210
SELECT 58 * 61 / MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 86 + - ( + 4 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT DISTINCT - CAST( - 66 AS SIGNED ) * - 34 AS col0
----
-2244

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT - CAST ( - 66 AS INTEGER ) * - 34 AS col0
----
-2244

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

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

query I rowsort
SELECT + 25 * - + 76 AS col0
----
-1900

query I rowsort
SELECT - 31 + + 66 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT ALL - COUNT( * ) * 84 * + - 67 * 70 * + + 40 + - - 71
----
15758471

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL - COUNT ( * ) * 84 * + - 67 * 70 * + + 40 + - - 71
----
15758471

query II rowsort
SELECT ALL ( 6 ) AS col0, 37
----
6
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT - - COUNT( DISTINCT - 67 ) * 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2217
SELECT - - COUNT ( DISTINCT - 67 ) * 4 AS col1
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT CASE + AVG ( + - 98 ) WHEN + - 27 * + 37 THEN + - COUNT( * ) * - 90 + + - 15 WHEN 54 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT CASE + AVG ( + - 98 ) WHEN + - 27 * + 37 THEN + - COUNT ( * ) * - 90 + + - 15 WHEN 54 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT - 46 + NULLIF ( - - ( 85 ), 33 * - 71 * 58 + COUNT( * ) - 5 * + ( - 69 ) + + 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2220
SELECT - 46 + NULLIF ( - - ( 85 ), 33 * - 71 * 58 + COUNT ( * ) - 5 * + ( - 69 ) + + 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT ALL + - 5 - + COUNT( * ) - - COUNT( * ) + - MIN( + 52 ) * - 77 + - 62
----
3937

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL + - 5 - + COUNT ( * ) - - COUNT ( * ) + - MIN ( + 52 ) * - 77 + - 62
----
3937

onlyif mysql # aggregate syntax: 
query II rowsort label-2222
SELECT + + COALESCE ( COUNT( * ), + COUNT( DISTINCT + 17 ) ) * + + 3 AS col1, 88 * - + CASE + 46 WHEN + + 76 THEN ( NULLIF ( CASE - - COALESCE ( + SUM( DISTINCT - + 42 ), + 45, + - 44 ) WHEN + 5 * 26 + ( - 70 ) * - 92 THEN NULL WHEN 25 THEN + 39 * 99 WHEN - 21 * COUNT( * ) THEN + 30 END, + 57 ) ) + - COUNT( * ) WHEN 92 THEN - 67 ELSE NULL END - + 58 * - MAX( 44 * 30 + - COALESCE ( - 64 + - 64 * 31, - 5 * - 52 ) )
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2222
SELECT + + COALESCE ( COUNT ( * ), + COUNT ( DISTINCT + 17 ) ) * + + 3 AS col1, 88 * - + CASE + 46 WHEN + + 76 THEN ( NULLIF ( CASE - - COALESCE ( + SUM ( DISTINCT - + 42 ), + 45, + - 44 ) WHEN + 5 * 26 + ( - 70 ) * - 92 THEN NULL WHEN 25 THEN + 39 * 99 WHEN - 21 * COUNT ( * ) THEN + 30 END, + 57 ) ) + - COUNT ( * ) WHEN 92 THEN - 67 ELSE NULL END - + 58 * - MAX ( 44 * 30 + - COALESCE ( - 64 + - 64 * 31, - 5 * - 52 ) )
----
3
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2223
SELECT - - CAST( NULL AS DECIMAL ) + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT - - CAST ( NULL AS REAL ) + 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT - ( - + NULLIF ( + 15, - - 35 * MIN( ALL + + 56 ) ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2224
SELECT - ( - + NULLIF ( + 15, - - 35 * MIN ( ALL + + 56 ) ) ) AS col0
----
15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT + 53 DIV + 44 col0
----
1

skipif mysql # not compatible
query I rowsort label-2226
SELECT + 53 / + 44 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2227
SELECT ALL 66 DIV - - 13 + + 34
----
39

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL 66 / - - 13 + + 34
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2228
SELECT DISTINCT + 25 DIV + - 67 + 48 + + 17 DIV - 94 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT + 25 / + - 67 + 48 + + 17 / - 94 AS col1
----
48

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2230
SELECT DISTINCT 34 DIV + CAST( 24 AS SIGNED ) + + + COUNT( - - 27 ) * COALESCE ( - 93, + 64 + + 23 + - + SUM( DISTINCT - 18 ) - - 32 + - - 56 - - + 63 + + - 18 * + + 90 + - ( 31 ) * - + 85 DIV + 46 DIV 84 * - 6 ) + + COUNT( 15 ) + 76 * 31 col1
----
2265

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT 34 / + CAST ( 24 AS INTEGER ) + + + COUNT ( - - 27 ) * COALESCE ( - 93, + 64 + + 23 + - + SUM ( DISTINCT - 18 ) - - 32 + - - 56 - - + 63 + + - 18 * + + 90 + - ( 31 ) * - + 85 / + 46 / 84 * - 6 ) + + COUNT ( 15 ) + 76 * 31 col1
----
2265

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL 67 + + ( + COUNT( * ) )
----
68

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL 67 + + ( + COUNT ( * ) )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2232
SELECT + 13 AS col0, - MIN( ALL - 47 )
----
13
47

skipif mysql # not compatible
query II rowsort label-2232
SELECT + 13 AS col0, - MIN ( ALL - 47 )
----
13
47

query I rowsort
SELECT ALL 61 + 41
----
102

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

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

query I rowsort
SELECT ALL 13 + - 22 AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2236
SELECT 12 - - - 26 + + + 0 DIV - 23 * + 73
----
-14

skipif mysql # not compatible
query I rowsort label-2236
SELECT 12 - - - 26 + + + 0 / - 23 * + 73
----
-14

query I rowsort
SELECT - 83 * - 75 - + + 44 - - 8 AS col1
----
6189

onlyif mysql # DIV for integer division: 
query I rowsort label-2238
SELECT ALL + 27 DIV 13 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL + 27 / 13 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2239
SELECT CAST( NULL AS SIGNED ) * + 84 * - + NULLIF ( - - 58, + + MIN( ALL + 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2239
SELECT CAST ( NULL AS INTEGER ) * + 84 * - + NULLIF ( - - 58, + + MIN ( ALL + 76 ) )
----
NULL

query I rowsort
SELECT ALL - 12 - - - 82 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2241
SELECT + - 89 AS col1, ( CASE - 45 WHEN + - 20 * + + COUNT( * ) THEN - CASE + 78 WHEN - 92 THEN + 69 END * - - SUM( ALL + + 47 ) WHEN + 50 THEN ( COUNT( * ) ) * - - 7 * - 90 + - 37 END )
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-2241
SELECT + - 89 AS col1, ( CASE - 45 WHEN + - 20 * + + COUNT ( * ) THEN - CASE + 78 WHEN - 92 THEN + 69 END * - - SUM ( ALL + + 47 ) WHEN + 50 THEN ( COUNT ( * ) ) * - - 7 * - 90 + - 37 END )
----
-89
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2243
SELECT + 47 * NULLIF ( - 75, - + COUNT( * ) * - CAST( + 35 AS DECIMAL ) + - COUNT( * ) )
----
-3525

skipif mysql # not compatible
query I rowsort label-2243
SELECT + 47 * NULLIF ( - 75, - + COUNT ( * ) * - CAST ( + 35 AS REAL ) + - COUNT ( * ) )
----
-3525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT 81 - - - CAST( - 80 AS SIGNED ) - + + 12 * 67 AS col1
----
-643

skipif mysql # not compatible
query I rowsort label-2244
SELECT 81 - - - CAST ( - 80 AS INTEGER ) - + + 12 * 67 AS col1
----
-643

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL MAX( DISTINCT - COALESCE ( 18, - - 62 * + + 48 + 94 / - + 8 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL MAX ( DISTINCT - COALESCE ( 18, - - 62 * + + 48 + 94 / - + 8 ) )
----
-18

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2247
SELECT - NULLIF ( - 67, COUNT( * ) ) AS col2, CAST( NULL AS SIGNED ) AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-2247
SELECT - NULLIF ( - 67, COUNT ( * ) ) AS col2, CAST ( NULL AS INTEGER ) AS col2
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL + - 77 * + - ( + COUNT( * ) ) * 57 + + 92 + + 6 AS col1
----
4487

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL + - 77 * + - ( + COUNT ( * ) ) * 57 + + 92 + + 6 AS col1
----
4487

query I rowsort
SELECT + 57 * + 91 AS col1
----
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT COUNT( * ) + + + 2
----
3

skipif mysql # not compatible
query I rowsort label-2250
SELECT COUNT ( * ) + + + 2
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2252
SELECT ALL - 40 AS col2, 35 + - + 86 + - + 64 + + 70 * CAST( NULL AS SIGNED ) / + + 73 + + + 13 + - ( - CAST( NULL AS SIGNED ) ) * + + 34 * - 14 + + COALESCE ( + + 36, - 93 ) AS col1
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-2252
SELECT ALL - 40 AS col2, 35 + - + 86 + - + 64 + + 70 * CAST ( NULL AS INTEGER ) / + + 73 + + + 13 + - ( - CAST ( NULL AS INTEGER ) ) * + + 34 * - 14 + + COALESCE ( + + 36, - 93 ) AS col1
----
-40
NULL

query I rowsort
SELECT - 24 * - 93 AS col1
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT COALESCE ( 56, - COUNT( * ) ) + - 44 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-2254
SELECT COALESCE ( 56, - COUNT ( * ) ) + - 44 AS col0
----
12

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

skipif mysql # not compatible
query I rowsort label-2255
SELECT + 90 / + + CAST ( NULL AS INTEGER ) / - - 32
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2257
SELECT 78 + - CAST( - COUNT( * ) AS SIGNED ) col2
----
79

skipif mysql # not compatible
query I rowsort label-2257
SELECT 78 + - CAST ( - COUNT ( * ) AS INTEGER ) col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT ALL + 3 DIV + 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL + 3 / + 95 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT 88 + + COUNT( * ) + 18
----
107

skipif mysql # not compatible
query I rowsort label-2259
SELECT 88 + + COUNT ( * ) + 18
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT DISTINCT + 58 + + 66 + - + COUNT( + 96 ) * - + COUNT( * )
----
125

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT + 58 + + 66 + - + COUNT ( + 96 ) * - + COUNT ( * )
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT DISTINCT + 85 * - + COUNT( ALL COALESCE ( - ( 86 ), + 52, + + 46 ) ) * - CASE + + 92 WHEN - - 65 THEN - 26 * + 54 * - COALESCE ( - 77, + 65 * 77 + - 73 + CASE - - 34 WHEN - 13 * + - COUNT( ALL + + 61 ) THEN - + 73 * - 77 * + 48 WHEN - 88 THEN NULL WHEN 28 + COUNT( * ) * 49 THEN NULL END ) + CASE - CAST( NULL AS SIGNED ) + 96 WHEN COUNT( * ) THEN 58 * - 35 END ELSE NULL END + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT + 85 * - + COUNT ( ALL COALESCE ( - ( 86 ), + 52, + + 46 ) ) * - CASE + + 92 WHEN - - 65 THEN - 26 * + 54 * - COALESCE ( - 77, + 65 * 77 + - 73 + CASE - - 34 WHEN - 13 * + - COUNT ( ALL + + 61 ) THEN - + 73 * - 77 * + 48 WHEN - 88 THEN NULL WHEN 28 + COUNT ( * ) * 49 THEN NULL END ) + CASE - CAST ( NULL AS INTEGER ) + 96 WHEN COUNT ( * ) THEN 58 * - 35 END ELSE NULL END + 73
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2262
SELECT ALL - COUNT( * ) + - + 47, 39 + - 27 AS col2
----
-48
12

skipif mysql # not compatible
query II rowsort label-2262
SELECT ALL - COUNT ( * ) + - + 47, 39 + - 27 AS col2
----
-48
12

query I rowsort
SELECT ALL 73 + + + 16 + 14
----
103

query I rowsort
SELECT 95 * - 16 - - 65 AS col1
----
-1455

query I rowsort
SELECT 87 + - 58 * + - 72 AS col0
----
4263

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT - 67 DIV + - 19 - + 44 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-2266
SELECT - 67 / + - 19 - + 44 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL + COUNT( DISTINCT - COALESCE ( + 14, + + 33 + + + 70 ) ) + - 93 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL + COUNT ( DISTINCT - COALESCE ( + 14, + + 33 + + + 70 ) ) + - 93 AS col1
----
-92

query I rowsort
SELECT 32 + - + 72 col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT 95 * - COUNT( * ) * 60 + + 88 * + 10 AS col2
----
-4820

skipif mysql # not compatible
query I rowsort label-2269
SELECT 95 * - COUNT ( * ) * 60 + + 88 * + 10 AS col2
----
-4820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2270
SELECT - 4 * - 84 DIV + COUNT( * ) + 7
----
343

skipif mysql # not compatible
query I rowsort label-2270
SELECT - 4 * - 84 / + COUNT ( * ) + 7
----
343

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2271
SELECT ALL - CAST( 0 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL - CAST ( 0 AS INTEGER ) col0
----
0

query II rowsort
SELECT COALESCE ( - 38, 53 ) * - 50, 69 AS col1
----
1900
69

query I rowsort
SELECT DISTINCT 1 * ( 5 ) AS col1
----
5

query I rowsort
SELECT DISTINCT 57 * + 94 + + - 35
----
5323

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2275
SELECT + - 76 * - 16 + + 98 - 52 + - 53 - + 10 * 17 - COUNT( * ) + + 70 + - + 52 * COUNT( * ) DIV + + 17 col0
----
1105

skipif mysql # not compatible
query I rowsort label-2275
SELECT + - 76 * - 16 + + 98 - 52 + - 53 - + 10 * 17 - COUNT ( * ) + + 70 + - + 52 * COUNT ( * ) / + + 17 col0
----
1105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2276
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - 88 + + 94 + - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - 88 + + 94 + - 55 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 84 * + + 50 * 19
----
79800

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

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

query I rowsort
SELECT 42 + 67 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL COUNT( * ) * 48 * - 30 AS col2
----
-1440

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL COUNT ( * ) * 48 * - 30 AS col2
----
-1440

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2282
SELECT DISTINCT + 98 DIV + CAST( 95 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT + 98 / + CAST ( 95 AS INTEGER ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2283
SELECT 22 * + - CAST( + 6 AS SIGNED ) AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-2283
SELECT 22 * + - CAST ( + 6 AS INTEGER ) AS col2
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2284
SELECT ALL - - 12 + - 35 + - COUNT( * ) * + 29 DIV + + COALESCE ( 90, + - 29 )
----
-23

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL - - 12 + - 35 + - COUNT ( * ) * + 29 / + + COALESCE ( 90, + - 29 )
----
-23

query I rowsort
SELECT + 31 + - + 10 AS col1
----
21

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

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

query I rowsort
SELECT - 44 + - - 16 AS col0
----
-28

query I rowsort
SELECT ALL + + 33 + 80 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT - 97 + - - MIN( ALL - ( - 12 ) ) + - 60
----
-145

skipif mysql # not compatible
query I rowsort label-2289
SELECT - 97 + - - MIN ( ALL - ( - 12 ) ) + - 60
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2290
SELECT 24 - - - CASE - + 7 WHEN - COUNT( * ) THEN + SUM( DISTINCT 34 ) WHEN + + 14 THEN + 3 / + 91 END col2, 1 * - CAST( NULL AS SIGNED ) / - + 66, 61 col1
----
NULL
NULL
61

skipif mysql # not compatible
query III rowsort label-2290
SELECT 24 - - - CASE - + 7 WHEN - COUNT ( * ) THEN + SUM ( DISTINCT 34 ) WHEN + + 14 THEN + 3 / + 91 END col2, 1 * - CAST ( NULL AS INTEGER ) / - + 66, 61 col1
----
NULL
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL SUM( DISTINCT + + 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL SUM ( DISTINCT + + 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2292
SELECT ALL 50 + COUNT( * ) + - 46 DIV 19 - - MAX( DISTINCT + 31 ) * - 40 * - ( + 77 ) + 12, 39 AS col1
----
95541
39

skipif mysql # not compatible
query II rowsort label-2292
SELECT ALL 50 + COUNT ( * ) + - 46 / 19 - - MAX ( DISTINCT + 31 ) * - 40 * - ( + 77 ) + 12, 39 AS col1
----
95541
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT DISTINCT SUM( - 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT SUM ( - 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL - ( - - SUM( DISTINCT + 50 ) ) + + 40 + - - 92 col2
----
82

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL - ( - - SUM ( DISTINCT + 50 ) ) + + 40 + - - 92 col2
----
82

query I rowsort
SELECT - 79 + - 13 * + 85 AS col0
----
-1184

onlyif mysql # DIV for integer division: 
query I rowsort label-2296
SELECT - 38 * 1 * 58 DIV 78
----
-28

skipif mysql # not compatible
query I rowsort label-2296
SELECT - 38 * 1 * 58 / 78
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2297
SELECT - COALESCE ( + - 29, + 22, + 47 + + 72, ( 55 ) + 62 - + - CAST( NULL AS SIGNED ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2297
SELECT - COALESCE ( + - 29, + 22, + 47 + + 72, ( 55 ) + 62 - + - CAST ( NULL AS INTEGER ) ) AS col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT - 56 + + - ( - 73 ) DIV - 1 AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-2298
SELECT - 56 + + - ( - 73 ) / - 1 AS col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT ALL SUM( 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL SUM ( 84 ) AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2300
SELECT - 1 DIV + + ( + 11 ) + ( - 68 ) AS col2, - CAST( NULL AS SIGNED ) + + - 65 * 99 col1
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-2300
SELECT - 1 / + + ( + 11 ) + ( - 68 ) AS col2, - CAST ( NULL AS INTEGER ) + + - 65 * 99 col1
----
-68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT COALESCE ( - COUNT( ALL - - 51 ), - COALESCE ( - 97, - 52 ), - 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-2301
SELECT COALESCE ( - COUNT ( ALL - - 51 ), - COALESCE ( - 97, - 52 ), - 65 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT - 2 * CAST( + CASE ( - CASE - + 66 WHEN + ( + 2 ) + + 60 THEN + 7 ELSE - + 14 + - + 75 END ) WHEN 19 * 21 + - 49 THEN NULL WHEN - 52 THEN + - 87 * + 92 WHEN + - 35 THEN NULL ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2302
SELECT - 2 * CAST ( + CASE ( - CASE - + 66 WHEN + ( + 2 ) + + 60 THEN + 7 ELSE - + 14 + - + 75 END ) WHEN 19 * 21 + - 49 THEN NULL WHEN - 52 THEN + - 87 * + 92 WHEN + - 35 THEN NULL ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( + 32, + 2 * + ( 63 ) ) col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT - 20 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-2304
SELECT - 20 / 57
----
0

query I rowsort
SELECT DISTINCT - 27 * + 82
----
-2214

onlyif mysql # DIV for integer division: 
query I rowsort label-2306
SELECT DISTINCT - 55 DIV + - 31 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT - 55 / + - 31 AS col2
----
1

query I rowsort
SELECT ALL + 64 * - 68 AS col2
----
-4352

query I rowsort
SELECT ALL - ( + 95 ) * ( - 68 ) col0
----
6460

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT NULLIF ( + COUNT( * ), 5 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2309
SELECT NULLIF ( + COUNT ( * ), 5 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2310
SELECT DISTINCT - 67 * - 55 - + + SUM( ALL - 23 ) * + - CAST( NULL AS SIGNED ) * 58 * - 65 * - + ( - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT - 67 * - 55 - + + SUM ( ALL - 23 ) * + - CAST ( NULL AS INTEGER ) * 58 * - 65 * - + ( - 94 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT - 29 DIV 4 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2311
SELECT - 29 / 4 AS col2
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + NULLIF ( + 1, + COUNT( * ) ) * 2 + + MIN( DISTINCT - ( + 30 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT + NULLIF ( + 1, + COUNT ( * ) ) * 2 + + MIN ( DISTINCT - ( + 30 ) ) col1
----
NULL

query I rowsort
SELECT DISTINCT - 64 * + 11 + - 9 AS col2
----
-713

query I rowsort
SELECT ALL + 69 * + 48
----
3312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT + + ( - 2 ) * + CAST( - 45 AS SIGNED ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-2316
SELECT + + ( - 2 ) * + CAST ( - 45 AS INTEGER ) AS col1
----
90

query I rowsort
SELECT DISTINCT 73 * + + 81 + 29
----
5942

query I rowsort
SELECT ALL 10 * + - 16 + 77 + - - 63 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT + + 14 - - COUNT( + - 3 )
----
15

skipif mysql # not compatible
query I rowsort label-2319
SELECT + + 14 - - COUNT ( + - 3 )
----
15

query I rowsort
SELECT ALL + 8 * - + 1 + - - 42 + + - 6 + + - ( 50 ) * 90 AS col0
----
-4472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2321
SELECT - 45 DIV 97 - - - 31 * + - 80 * - CASE + 81 WHEN + 30 * - 38 THEN + MIN( 57 ) ELSE + + 21 END + + 87
----
-51993

skipif mysql # not compatible
query I rowsort label-2321
SELECT - 45 / 97 - - - 31 * + - 80 * - CASE + 81 WHEN + 30 * - 38 THEN + MIN ( 57 ) ELSE + + 21 END + + 87
----
-51993

query I rowsort
SELECT + + 49 * - - 96 + - + 66 * 97 + + + 72 + + 28 col2
----
-1598

query I rowsort
SELECT + - 39 - - 80 AS col1
----
41

query I rowsort
SELECT ALL 16 + 49 + - ( + 14 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT + CASE - - COUNT( * ) WHEN - 3 / - - ( 19 ) + + 54 - - + COUNT( * ) * 20 * 23 THEN 24 ELSE NULL END + - + 43 + + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT + CASE - - COUNT ( * ) WHEN - 3 / - - ( 19 ) + + 54 - - + COUNT ( * ) * 20 * 23 THEN 24 ELSE NULL END + - + 43 + + + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT DISTINCT - + 51 * + COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT - + 51 * + COUNT ( * ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT SUM( + 67 ) col1
----
67

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT SUM ( + 67 ) col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2328
SELECT ALL 98 + + - SUM( + + 85 ) + + 72 + + 35 + + - CAST( NULL AS SIGNED ) * + 96 * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL 98 + + - SUM ( + + 85 ) + + 72 + + 35 + + - CAST ( NULL AS INTEGER ) * + 96 * - 56
----
NULL

query I rowsort
SELECT + 38 * + 65 AS col1
----
2470

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT ALL 44 DIV 21
----
2

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL 44 / 21
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT + 15 + - CASE + 15 WHEN - 43 THEN + + 12 + - COUNT( * ) WHEN + ( + NULLIF ( - 91, - 52 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT + 15 + - CASE + 15 WHEN - 43 THEN + + 12 + - COUNT ( * ) WHEN + ( + NULLIF ( - 91, - 52 ) ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT - CASE - + COUNT( * ) WHEN + + 90 * + 8 - - 21 + - 31 * + 2 * + COUNT( * ) THEN NULL WHEN 37 * - MAX( ALL + 24 ) THEN + - 64 * ( - + COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT - CASE - + COUNT ( * ) WHEN + + 90 * + 8 - - 21 + - 31 * + 2 * + COUNT ( * ) THEN NULL WHEN 37 * - MAX ( ALL + 24 ) THEN + - 64 * ( - + COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2333
SELECT ALL 38 * - COUNT( * ) col0, + 75 * - - 94 * - 71 * + + 84 AS col2
----
-38
-42046200

skipif mysql # not compatible
query II rowsort label-2333
SELECT ALL 38 * - COUNT ( * ) col0, + 75 * - - 94 * - 71 * + + 84 AS col2
----
-38
-42046200

query I rowsort
SELECT + 44 + + 79
----
123

query I rowsort
SELECT + 20 + 17 * - 22 * - 32 + - 4 - 91 col2
----
11893

query I rowsort
SELECT + 79 * 13
----
1027

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

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

query I rowsort
SELECT + 96 + + 84 AS col1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL + SUM( DISTINCT 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + SUM ( DISTINCT 5 ) AS col2
----
5

query I rowsort
SELECT - 49 * + - 68 AS col0
----
3332

query II rowsort
SELECT ALL + 12 AS col2, + 73
----
12
73

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2344
SELECT + 13 * - - COUNT( - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2344
SELECT + 13 * - - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
0

query II rowsort
SELECT - 18 + - ( - 13 ) + + 19, - 59 + - 6 col2
----
14
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2346
SELECT ALL - 6 / ( + 91 ) * + 46 + + 49 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL - 6 / ( + 91 ) * + 46 + + 49 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2347
SELECT 69 * - 89 + - COUNT( + 11 ) DIV - 43 * + - 80 col0
----
-6141

skipif mysql # not compatible
query I rowsort label-2347
SELECT 69 * - 89 + - COUNT ( + 11 ) / - 43 * + - 80 col0
----
-6141

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2348
SELECT ALL + 89 DIV 23 + + + COUNT( * ) + - 54, 91 AS col1
----
-50
91

skipif mysql # not compatible
query II rowsort label-2348
SELECT ALL + 89 / 23 + + + COUNT ( * ) + - 54, 91 AS col1
----
-50
91

query II rowsort
SELECT - 36, 69 AS col1
----
-36
69

query I rowsort
SELECT + + 24 * + 26 + - 56 + + - 3
----
565

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

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

query I rowsort
SELECT - 20 * - 50
----
1000

onlyif mysql # aggregate syntax: 
query II rowsort label-2353
SELECT - COUNT( * ) * + + 81, 88 AS col2
----
-81
88

skipif mysql # not compatible
query II rowsort label-2353
SELECT - COUNT ( * ) * + + 81, 88 AS col2
----
-81
88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT + 17 + + + 93 DIV - 99 * + 72 DIV 8 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-2355
SELECT + 17 + + + 93 / - 99 * + 72 / 8 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL + ( + NULLIF ( ( + 42 ), - 37 * + COUNT( * ) + 25 + - 14 - + 61 * - 88 ) ) * + 2 + + 58 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL + ( + NULLIF ( ( + 42 ), - 37 * + COUNT ( * ) + 25 + - 14 - + 61 * - 88 ) ) * + 2 + + 58 AS col2
----
142

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2358
SELECT 63 AS col2, + COALESCE ( CASE WHEN 97 >= - 13 + 87 THEN + + 33 ELSE NULL END, + CAST( ( - - 37 ) AS SIGNED ) ) AS col0
----
63
33

skipif mysql # not compatible
query II rowsort label-2358
SELECT 63 AS col2, + COALESCE ( CASE WHEN 97 >= - 13 + 87 THEN + + 33 ELSE NULL END, + CAST ( ( - - 37 ) AS INTEGER ) ) AS col0
----
63
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT COUNT( * ) * - ( + 16 ) + + 88 + - 14
----
58

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT COUNT ( * ) * - ( + 16 ) + + 88 + - 14
----
58

query I rowsort
SELECT ALL + 44 * - - 91 + 72 AS col0
----
4076

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT + 64 * + 97 + - 59 + + 67 + + + 85 * ( - ( + 23 ) ) + COUNT( * ) AS col1
----
4262

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + 64 * + 97 + - 59 + + 67 + + + 85 * ( - ( + 23 ) ) + COUNT ( * ) AS col1
----
4262

query I rowsort
SELECT DISTINCT 32 - 55 AS col1
----
-23

query I rowsort
SELECT 81 - + + 91 + + 68
----
58

query I rowsort
SELECT 26 * 47 * + 71 AS col0
----
86762

query I rowsort
SELECT 97 * + 28 * - + 83
----
-225428

query I rowsort
SELECT ALL ( 37 ) - + 74
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT 16 - - + ( + MIN( ALL - 94 ) ) * 68
----
-6376

skipif mysql # not compatible
query I rowsort label-2367
SELECT 16 - - + ( + MIN ( ALL - 94 ) ) * 68
----
-6376

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT COUNT( * ) * + 3 col1
----
3

skipif mysql # not compatible
query I rowsort label-2368
SELECT COUNT ( * ) * + 3 col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2369
SELECT DISTINCT ( + COALESCE ( ( + + 25 ), - NULLIF ( - ( - 77 ), + 81 + - - 58 ) / + 5 + - COUNT( * ) + + 2 ) ) / + SUM( 19 ) + + CASE + 84 WHEN + CASE - COUNT( * ) WHEN NULLIF ( 47, 82 * + 81 + + 43 ) + - CASE + COUNT( * ) WHEN - - COALESCE ( - 70, - ( SUM( 18 ) ) ) THEN CASE + 6 WHEN 35 THEN - 19 ELSE NULL END WHEN - CAST( - 28 AS SIGNED ) THEN + 65 END THEN 31 END THEN + 58 ELSE NULL END + + CAST( 44 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT ( + COALESCE ( ( + + 25 ), - NULLIF ( - ( - 77 ), + 81 + - - 58 ) / + 5 + - COUNT ( * ) + + 2 ) ) / + SUM ( 19 ) + + CASE + 84 WHEN + CASE - COUNT ( * ) WHEN NULLIF ( 47, 82 * + 81 + + 43 ) + - CASE + COUNT ( * ) WHEN - - COALESCE ( - 70, - ( SUM ( 18 ) ) ) THEN CASE + 6 WHEN 35 THEN - 19 ELSE NULL END WHEN - CAST ( - 28 AS INTEGER ) THEN + 65 END THEN 31 END THEN + 58 ELSE NULL END + + CAST ( 44 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2370
SELECT ALL 43 DIV + 91 * + ( SUM( ( 58 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL 43 / + 91 * + ( SUM ( ( 58 ) ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2371
SELECT DISTINCT ( + COUNT( * ) ) DIV - + 98 + + COUNT( DISTINCT 41 ) + SUM( ALL - - 5 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT ( + COUNT ( * ) ) / - + 98 + + COUNT ( DISTINCT 41 ) + SUM ( ALL - - 5 ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT NULLIF ( + 59, ( - 38 ) * 98 DIV + 80 + + 15 ) DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2372
SELECT NULLIF ( + 59, ( - 38 ) * 98 / + 80 + + 15 ) / - 97 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-2373
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * 25 col0
----
25

query I rowsort
SELECT DISTINCT 83 * 98 AS col2
----
8134

query I rowsort
SELECT 76 * - + 51 * 92
----
-356592

query II rowsort
SELECT DISTINCT ( + 77 ) + 94 AS col2, - 43 + - 56 AS col1
----
171
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT 64 * + 30 + - COUNT( * ) * + ( + - 18 ) AS col1
----
1938

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT 64 * + 30 + - COUNT ( * ) * + ( + - 18 ) AS col1
----
1938

query II rowsort
SELECT + - CASE 99 WHEN + 20 + 59 THEN + 44 END, + 25 + - 2 * + - 39 AS col1
----
NULL
103

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2379
SELECT ALL 8 + - 28, + CASE - - 80 WHEN - - 20 THEN 85 + + 89 WHEN + 96 * - 32 / + COALESCE ( - + 39, - 81 * - 40 + 53 - + - 55 * + + CASE 4 WHEN + COALESCE ( - 68, 92 ) THEN NULL ELSE + - 73 END ) - - - 38 THEN - - 77 ELSE NULL END * - 93 + + + ( + 72 ) - CAST( 37 AS DECIMAL ) AS col2
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-2379
SELECT ALL 8 + - 28, + CASE - - 80 WHEN - - 20 THEN 85 + + 89 WHEN + 96 * - 32 / + COALESCE ( - + 39, - 81 * - 40 + 53 - + - 55 * + + CASE 4 WHEN + COALESCE ( - 68, 92 ) THEN NULL ELSE + - 73 END ) - - - 38 THEN - - 77 ELSE NULL END * - 93 + + + ( + 72 ) - CAST ( 37 AS REAL ) AS col2
----
-20
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2380
SELECT DISTINCT + 75 * + CASE COUNT( * ) WHEN - 40 THEN + 89 * 85 * + ( + + CAST( NULL AS SIGNED ) ) ELSE + 47 END * 26
----
91650

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT + 75 * + CASE COUNT ( * ) WHEN - 40 THEN + 89 * 85 * + ( + + CAST ( NULL AS INTEGER ) ) ELSE + 47 END * 26
----
91650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2381
SELECT 28 * + CASE + COALESCE ( - + 53, + 79 * 72 ) WHEN - CAST( NULL AS SIGNED ) THEN 56 WHEN 18 THEN + - NULLIF ( 98, - - 65 + - MIN( + 70 ) ) WHEN + 32 / + COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2381
SELECT 28 * + CASE + COALESCE ( - + 53, + 79 * 72 ) WHEN - CAST ( NULL AS INTEGER ) THEN 56 WHEN 18 THEN + - NULLIF ( 98, - - 65 + - MIN ( + 70 ) ) WHEN + 32 / + COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT ALL - 53 + CAST( + ( 17 ) AS SIGNED ) - + 86
----
-122

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL - 53 + CAST ( + ( 17 ) AS INTEGER ) - + 86
----
-122

query I rowsort
SELECT DISTINCT - COALESCE ( - 34, + 25 ) AS col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT - - 48 * - 75 * - 31 - 63 - ( + - 64 ) DIV - - 61 + + + 44
----
111582

skipif mysql # not compatible
query I rowsort label-2384
SELECT - - 48 * - 75 * - 31 - 63 - ( + - 64 ) / - - 61 + + + 44
----
111582

query I rowsort
SELECT 51 * + + 81
----
4131

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2387
SELECT DISTINCT COUNT( * ) + + - ( - COUNT( * ) ) DIV - - 24 - - 19 + 39 * + COUNT( * ), - 42 DIV - 82 * + 31 * + 83 AS col1
----
59
0

skipif mysql # not compatible
query II rowsort label-2387
SELECT DISTINCT COUNT ( * ) + + - ( - COUNT ( * ) ) / - - 24 - - 19 + 39 * + COUNT ( * ), - 42 / - 82 * + 31 * + 83 AS col1
----
59
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2388
SELECT ALL + - 26 * MAX( ALL + + 0 ) + + - 80 * 75 * - CAST( NULL AS SIGNED ) * + - ( - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL + - 26 * MAX ( ALL + + 0 ) + + - 80 * 75 * - CAST ( NULL AS INTEGER ) * + - ( - 87 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2389
SELECT DISTINCT - 98 DIV + 24 col0
----
-4

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - 98 / + 24 col0
----
-4

query I rowsort
SELECT ALL + - 51 - + 56 + + - 91
----
-198

query II rowsort
SELECT 56 + - - 0 + 18, 49 * - 23 AS col0
----
74
-1127

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT 99 - + + SUM( 18 )
----
81

skipif mysql # not compatible
query I rowsort label-2392
SELECT 99 - + + SUM ( 18 )
----
81

query I rowsort
SELECT + 33 * - + 5 + - NULLIF ( 49, 85 ) AS col2
----
-214

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

skipif mysql # not compatible
query I rowsort label-2394
SELECT COUNT ( * ) - + 58 AS col2
----
-57

query I rowsort
SELECT 97 * - 56 AS col2
----
-5432

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT 6 * - COUNT( * ) * + COUNT( DISTINCT + 91 ) * + + 36
----
-216

skipif mysql # not compatible
query I rowsort label-2396
SELECT 6 * - COUNT ( * ) * + COUNT ( DISTINCT + 91 ) * + + 36
----
-216

query I rowsort
SELECT 42 * 75
----
3150

query II rowsort
SELECT ALL 42 AS col0, + 89 * 82 AS col1
----
42
7298

query I rowsort
SELECT 16 + + 69 + + 26 * + 32
----
917

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL COUNT( DISTINCT - + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL COUNT ( DISTINCT - + 72 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT 25 + + 51 - 90 + COUNT( * ) * + 98 * + + 26
----
2534

skipif mysql # not compatible
query I rowsort label-2401
SELECT 25 + + 51 - 90 + COUNT ( * ) * + 98 * + + 26
----
2534

query I rowsort
SELECT 32 * + + 74 AS col1
----
2368

query I rowsort
SELECT ALL 85 * 24 * 41
----
83640

query I rowsort
SELECT DISTINCT 2 * + NULLIF ( + - 63, - 59 ) AS col1
----
-126

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2406
SELECT MIN( + 65 ) * + + MAX( ALL + ( - - 67 ) ) + - 9, 47 AS col2
----
4346
47

skipif mysql # not compatible
query II rowsort label-2406
SELECT MIN ( + 65 ) * + + MAX ( ALL + ( - - 67 ) ) + - 9, 47 AS col2
----
4346
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2407
SELECT ALL + COALESCE ( + COUNT( * ), + 43 * - 94 - + ( + COUNT( * ) ) ) * - + COUNT( * ) + - 40, - 44 AS col1
----
-41
-44

skipif mysql # not compatible
query II rowsort label-2407
SELECT ALL + COALESCE ( + COUNT ( * ), + 43 * - 94 - + ( + COUNT ( * ) ) ) * - + COUNT ( * ) + - 40, - 44 AS col1
----
-41
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT ALL COUNT( * ) AS col1, - ( - COUNT( * ) ) + - 53 AS col1
----
1
-52

skipif mysql # not compatible
query II rowsort label-2408
SELECT ALL COUNT ( * ) AS col1, - ( - COUNT ( * ) ) + - 53 AS col1
----
1
-52

query I rowsort
SELECT 38 + - 70
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2410
SELECT CASE - - 25 WHEN 70 THEN NULL ELSE + 79 END DIV + ( + 18 )
----
4

skipif mysql # not compatible
query I rowsort label-2410
SELECT CASE - - 25 WHEN 70 THEN NULL ELSE + 79 END / + ( + 18 )
----
4

query I rowsort
SELECT ALL 1 + + + 36 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT COUNT( * ) + - 55 col0
----
-54

skipif mysql # not compatible
query I rowsort label-2412
SELECT COUNT ( * ) + - 55 col0
----
-54

query I rowsort
SELECT ALL 77 + + 7
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT DISTINCT COUNT( + 56 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT COUNT ( + 56 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT + MIN( + ( 20 ) ) * 12 - - + MIN( ALL - - 55 ) + - - COUNT( + 2 ) * + 83, - ( 37 ) + 49 + + 73 col2
----
378
85

skipif mysql # not compatible
query II rowsort label-2415
SELECT + MIN ( + ( 20 ) ) * 12 - - + MIN ( ALL - - 55 ) + - - COUNT ( + 2 ) * + 83, - ( 37 ) + 49 + + 73 col2
----
378
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT DISTINCT - 65 * - + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT - 65 * - + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2417
SELECT + 89 + + - 46 + 42 - + COUNT( * ) + + ( + COUNT( * ) ) * + 43 * - 63 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT + 89 + + - 46 + 42 - + COUNT ( * ) + + ( + COUNT ( * ) ) * + 43 * - 63 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2418
SELECT COALESCE ( + 50, + COUNT( ALL 64 ) ) DIV 43 + - - NULLIF ( + 49, 6 + - 43 * + - 30 ) + + - 72
----
-22

skipif mysql # not compatible
query I rowsort label-2418
SELECT COALESCE ( + 50, + COUNT ( ALL 64 ) ) / 43 + - - NULLIF ( + 49, 6 + - 43 * + - 30 ) + + - 72
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-2419
SELECT + 87 AS col0, 53 DIV + 27 AS col1
----
87
1

skipif mysql # not compatible
query II rowsort label-2419
SELECT + 87 AS col0, 53 / + 27 AS col1
----
87
1

query I rowsort
SELECT + 72 + - 81 AS col1
----
-9

query II rowsort
SELECT ALL - 72 * 66 + + - 13 AS col0, 34 AS col2
----
-4765
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2422
SELECT - + 22 * - + COUNT( * ) * - NULLIF ( + 65, COUNT( * ) + + 29 ) + + 60 * 64 + - 21 + - 4 * - 61, 84 col0
----
2633
84

skipif mysql # not compatible
query II rowsort label-2422
SELECT - + 22 * - + COUNT ( * ) * - NULLIF ( + 65, COUNT ( * ) + + 29 ) + + 60 * 64 + - 21 + - 4 * - 61, 84 col0
----
2633
84

onlyif mysql # aggregate syntax: 
query II rowsort label-2423
SELECT + - COUNT( * ) * 34 + - 89 AS col2, + 61
----
-123
61

skipif mysql # not compatible
query II rowsort label-2423
SELECT + - COUNT ( * ) * 34 + - 89 AS col2, + 61
----
-123
61

query II rowsort
SELECT 17 col1, 60 AS col1
----
17
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2425
SELECT DISTINCT MAX( DISTINCT + 81 ) * CAST( NULL AS SIGNED ) AS col1, 52 * - 97 - - + 73 AS col2
----
NULL
-4971

skipif mysql # not compatible
query II rowsort label-2425
SELECT DISTINCT MAX ( DISTINCT + 81 ) * CAST ( NULL AS INTEGER ) AS col1, 52 * - 97 - - + 73 AS col2
----
NULL
-4971

query I rowsort
SELECT DISTINCT 57 * + 74 - - ( + 5 ) AS col2
----
4223

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2427
SELECT ALL 95 * 66 * - 72 - - COUNT( * ) AS col0, 79 DIV - + 8 AS col0, - - 1 + - 90
----
-451439
-9
-89

skipif mysql # not compatible
query III rowsort label-2427
SELECT ALL 95 * 66 * - 72 - - COUNT ( * ) AS col0, 79 / - + 8 AS col0, - - 1 + - 90
----
-451439
-9
-89

query I rowsort
SELECT ALL 82 * - 78 AS col0
----
-6396

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT + COUNT( 60 ) + 35
----
36

skipif mysql # not compatible
query I rowsort label-2429
SELECT + COUNT ( 60 ) + 35
----
36

query I rowsort
SELECT DISTINCT - 69 * + - 69 + + 94 AS col2
----
4855

query I rowsort
SELECT ALL + 71 * 52 - - 72 AS col1
----
3764

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2432
SELECT ALL ( - - 95 ) * + 91 / - CASE 74 WHEN + 99 THEN - + 99 END * + 82 / + 21 * 28 + COUNT( * ) + - 19 - + CAST( NULL AS DECIMAL ) + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL ( - - 95 ) * + 91 / - CASE 74 WHEN + 99 THEN - + 99 END * + 82 / + 21 * 28 + COUNT ( * ) + - 19 - + CAST ( NULL AS REAL ) + + 78
----
NULL

query I rowsort
SELECT - + 50 + + 6
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL + COUNT( * ) - + + 80 - - 52 * - - ( + - 45 ) * - 60 - + CASE + 62 WHEN 50 + + - 50 THEN NULL WHEN + 78 * - 55 / + 29 - - COUNT( * ) + - 56 + 94 THEN 91 + + - CASE + 46 WHEN - 83 THEN + 52 + 44 + COUNT( * ) ELSE 21 - + 64 + - - 87 END + - 77 END - - 85 + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + COUNT ( * ) - + + 80 - - 52 * - - ( + - 45 ) * - 60 - + CASE + 62 WHEN 50 + + - 50 THEN NULL WHEN + 78 * - 55 / + 29 - - COUNT ( * ) + - 56 + 94 THEN 91 + + - CASE + 46 WHEN - 83 THEN + 52 + 44 + COUNT ( * ) ELSE 21 - + 64 + - - 87 END + - 77 END - - 85 + 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT - MIN( ALL + 12 ) + 98 + NULLIF ( - 88, - 52 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2435
SELECT - MIN ( ALL + 12 ) + 98 + NULLIF ( - 88, - 52 ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2436
SELECT ALL + 9 DIV + 48 * COALESCE ( + ( 29 ), 68 * - - COUNT( * ) * 27 + + CAST( + 32 AS SIGNED ) + + MAX( ALL - - 87 ) * + - 49 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL + 9 / + 48 * COALESCE ( + ( 29 ), 68 * - - COUNT ( * ) * 27 + + CAST ( + 32 AS INTEGER ) + + MAX ( ALL - - 87 ) * + - 49 ) col2
----
0

query I rowsort
SELECT - NULLIF ( + + 0, 87 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL ( + - 55 ) * - SUM( ALL - - 12 ) + + + MIN( DISTINCT + 32 ) AS col1
----
692

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL ( + - 55 ) * - SUM ( ALL - - 12 ) + + + MIN ( DISTINCT + 32 ) AS col1
----
692

query II rowsort
SELECT ALL NULLIF ( - ( - 63 ), 16 ) AS col1, - 93
----
63
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT DISTINCT NULLIF ( - COUNT( * ), + - 22 * - 93 * - 43 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT NULLIF ( - COUNT ( * ), + - 22 * - 93 * - 43 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT - CASE COALESCE ( + + ( - + 40 ), + 78 * - + 79 - - + 75 ) WHEN + 19 THEN NULL WHEN + 89 * - + 29 THEN 36 + - + COUNT( + + 79 ) + - - SUM( - 63 ) * + 70 + - 13 * - ( CASE - AVG ( DISTINCT + 79 ) WHEN - - 24 - - 1 THEN NULL WHEN + - 52 * + 35 / - 95 THEN + + 26 * + 48 / 10 * - 31 ELSE NULL END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT - CASE COALESCE ( + + ( - + 40 ), + 78 * - + 79 - - + 75 ) WHEN + 19 THEN NULL WHEN + 89 * - + 29 THEN 36 + - + COUNT ( + + 79 ) + - - SUM ( - 63 ) * + 70 + - 13 * - ( CASE - AVG ( DISTINCT + 79 ) WHEN - - 24 - - 1 THEN NULL WHEN + - 52 * + 35 / - 95 THEN + + 26 * + 48 / 10 * - 31 ELSE NULL END ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2442
SELECT + 37 DIV 30 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2442
SELECT + 37 / 30 AS col0
----
1

query II rowsort
SELECT - 43 + + 52 AS col1, - 30
----
9
-30

query I rowsort
SELECT ALL - 47 + 58 AS col1
----
11

query I rowsort
SELECT ALL 13 + + + 77 * 84
----
6481

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT - MIN( - 13 ) * 24 AS col0
----
312

skipif mysql # not compatible
query I rowsort label-2447
SELECT - MIN ( - 13 ) * 24 AS col0
----
312

onlyif mysql # aggregate syntax: 
query II rowsort label-2448
SELECT DISTINCT COUNT( - 14 ) AS col0, 11 * + 78 - CASE 99 WHEN - COUNT( * ) THEN NULL WHEN - 11 * + 19 THEN - 46 * - - 72 + + 84 + + 0 * - 94 + + MIN( ALL - 22 ) ELSE NULL END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2448
SELECT DISTINCT COUNT ( - 14 ) AS col0, 11 * + 78 - CASE 99 WHEN - COUNT ( * ) THEN NULL WHEN - 11 * + 19 THEN - 46 * - - 72 + + 84 + + 0 * - 94 + + MIN ( ALL - 22 ) ELSE NULL END AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL - 47 + + COUNT( + 97 )
----
-46

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL - 47 + + COUNT ( + 97 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL COUNT( * ) * - COUNT( * ) * 47 / CASE + - 54 WHEN + + 73 * COUNT( * ) + + 41 * + ( 47 ) - - AVG ( 2 ) THEN - + 71 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL COUNT ( * ) * - COUNT ( * ) * 47 / CASE + - 54 WHEN + + 73 * COUNT ( * ) + + 41 * + ( 47 ) - - AVG ( 2 ) THEN - + 71 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2451
SELECT ALL + 25 + + - 6 AS col2, SUM( DISTINCT ( - - 36 ) ) * - - 11 AS col2
----
19
396

skipif mysql # not compatible
query II rowsort label-2451
SELECT ALL + 25 + + - 6 AS col2, SUM ( DISTINCT ( - - 36 ) ) * - - 11 AS col2
----
19
396

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2452
SELECT ALL + - COUNT( DISTINCT - 16 ) * - COUNT( * ) DIV + 90 AS col1, + 88
----
0
88

skipif mysql # not compatible
query II rowsort label-2452
SELECT ALL + - COUNT ( DISTINCT - 16 ) * - COUNT ( * ) / + 90 AS col1, + 88
----
0
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - 9 * + MAX( ALL + 17 ) AS col0
----
-153

skipif mysql # not compatible
query I rowsort label-2453
SELECT - 9 * + MAX ( ALL + 17 ) AS col0
----
-153

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2454
SELECT + 79 * - COUNT( DISTINCT + 98 ) + + CAST( NULL AS DECIMAL ) col0, MIN( ALL + 17 )
----
NULL
17

skipif mysql # not compatible
query II rowsort label-2454
SELECT + 79 * - COUNT ( DISTINCT + 98 ) + + CAST ( NULL AS REAL ) col0, MIN ( ALL + 17 )
----
NULL
17

query I rowsort
SELECT ALL - 31 * + - 64
----
1984

onlyif mysql # DIV for integer division: 
query I rowsort label-2456
SELECT ALL + - 31 DIV - 79 - - 5 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL + - 31 / - 79 - - 5 / - 15
----
0

query I rowsort
SELECT + + 4 * + + ( - 65 )
----
-260

query I rowsort
SELECT DISTINCT + ( - 78 ) col1
----
-78

query I rowsort
SELECT DISTINCT 94 / - + 6 + 55 + - 24 * + 52 * + CASE + 57 WHEN + 51 THEN + + NULLIF ( 67, + - 87 + 90 ) * 41 * 13 END + + AVG ( ALL CASE - - 62 WHEN + + 90 THEN + 22 WHEN + 76 THEN NULL END ) * + 34 + + 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT + 84 * + 69 + + COUNT( * ) * - + 3 * + + 92 + 92
----
5612

skipif mysql # not compatible
query I rowsort label-2460
SELECT + 84 * + 69 + + COUNT ( * ) * - + 3 * + + 92 + 92
----
5612

onlyif mysql # aggregate syntax: 
query III rowsort label-2461
SELECT - 12 * 38 AS col1, COUNT( * ) * 61 * + - 55 col1, + 12
----
-456
-3355
12

skipif mysql # not compatible
query III rowsort label-2461
SELECT - 12 * 38 AS col1, COUNT ( * ) * 61 * + - 55 col1, + 12
----
-456
-3355
12

query I rowsort
SELECT - - 85 + 52 AS col1
----
137

query I rowsort
SELECT - 25 * + - ( + 24 )
----
600

query I rowsort
SELECT + 99 * 8
----
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2465
SELECT + 39 - + 35 + 53 DIV - 48 - MIN( 89 ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-2465
SELECT + 39 - + 35 + 53 / - 48 - MIN ( 89 ) col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT + ( - + 18 ) DIV 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2466
SELECT + ( - + 18 ) / 54 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT DISTINCT + MIN( ALL 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT + MIN ( ALL 54 ) AS col2
----
54

query I rowsort
SELECT 23 * 29 + - 83
----
584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2470
SELECT ALL + CAST( NULL AS SIGNED ) * + 95 * 51 + + + 44 - - + 22 * + 51 * - - MIN( ALL + - 7 ) + ( 69 ), 40 AS col1
----
NULL
40

skipif mysql # not compatible
query II rowsort label-2470
SELECT ALL + CAST ( NULL AS INTEGER ) * + 95 * 51 + + + 44 - - + 22 * + 51 * - - MIN ( ALL + - 7 ) + ( 69 ), 40 AS col1
----
NULL
40

query I rowsort
SELECT - CASE + + 18 WHEN - - AVG ( - 45 ) THEN + - 98 * + 17 ELSE - - 19 END AS col0
----
-19

query I rowsort
SELECT + 2 - + - 45
----
47

query I rowsort
SELECT - ( + + 67 ) col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2474
SELECT ALL 49 * 89 / CAST( NULL AS SIGNED ) / - + 56 + + CAST( NULL AS SIGNED ) * - + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL 49 * 89 / CAST ( NULL AS INTEGER ) / - + 56 + + CAST ( NULL AS INTEGER ) * - + 9 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2475
SELECT MIN ( - 39 )
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT + 66 + + 99 + + - COUNT( * )
----
164

skipif mysql # not compatible
query I rowsort label-2477
SELECT + 66 + + 99 + + - COUNT ( * )
----
164

query I rowsort
SELECT DISTINCT - 33 * - 4 * + + 59
----
7788

query I rowsort
SELECT - 36 * + 95 AS col2
----
-3420

query I rowsort
SELECT + 48 + 70 + + ( - 0 ) AS col0
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-2481
SELECT - 54 DIV - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2481
SELECT - 54 / - 97 AS col1
----
0

query I rowsort
SELECT ALL + + 32 * + 81
----
2592

query I rowsort
SELECT + 71 + - 66 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT + + CAST( 21 AS SIGNED ) + 41
----
62

skipif mysql # not compatible
query I rowsort label-2484
SELECT + + CAST ( 21 AS INTEGER ) + 41
----
62

query I rowsort
SELECT - - 24 + - + 75 - + - 29
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT DISTINCT MAX( + + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT MAX ( + + 0 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2487
SELECT + 34 + + + ( CAST( NULL AS SIGNED ) ) * - + 78 * + 86, + COUNT( * ) * - 60 AS col1
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-2487
SELECT + 34 + + + ( CAST ( NULL AS INTEGER ) ) * - + 78 * + 86, + COUNT ( * ) * - 60 AS col1
----
NULL
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT - COALESCE ( + 94, + 17, + 25 ) DIV - + 25 + 52 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-2488
SELECT - COALESCE ( + 94, + 17, + 25 ) / - + 25 + 52 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ALL - 19 * - 61 * - + NULLIF ( + + SUM( + ( - - 31 ) ), + 77 )
----
-35929

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL - 19 * - 61 * - + NULLIF ( + + SUM ( + ( - - 31 ) ), + 77 )
----
-35929

query I rowsort
SELECT DISTINCT - 86 * - 20
----
1720

query I rowsort
SELECT + 37 + - + 1 AS col2
----
36

query II rowsort
SELECT DISTINCT - - 11 col1, - 7 AS col2
----
11
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT DISTINCT - 26 + + MAX( + + 98 ) - + - 76
----
148

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT - 26 + + MAX ( + + 98 ) - + - 76
----
148

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

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

query I rowsort
SELECT ALL - 91 + - 45 - - ( - 34 ) AS col0
----
-170

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2498
SELECT ALL 85 + + COUNT( * ) - + CAST( - COUNT( * ) AS SIGNED ) * - 98 * + 66 * - - 58
----
-375058

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL 85 + + COUNT ( * ) - + CAST ( - COUNT ( * ) AS INTEGER ) * - 98 * + 66 * - - 58
----
-375058

query I rowsort
SELECT 47 + - - 64 AS col1
----
111

query II rowsort
SELECT DISTINCT 10 AS col1, 67 AS col0
----
10
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2501
SELECT ALL + CAST( NULL AS SIGNED ) + 67 * + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL + CAST ( NULL AS INTEGER ) + 67 * + 60 AS col2
----
NULL

query I rowsort
SELECT ALL 72 + + 70 AS col2
----
142

query I rowsort
SELECT DISTINCT 84 * + 71 * + + 43 AS col0
----
256452

query I rowsort
SELECT 85 * 39 col2
----
3315

onlyif mysql # aggregate syntax: 
query II rowsort label-2505
SELECT 71 + + COUNT( * ) AS col2, - 14 AS col2
----
72
-14

skipif mysql # not compatible
query II rowsort label-2505
SELECT 71 + + COUNT ( * ) AS col2, - 14 AS col2
----
72
-14

query II rowsort
SELECT ALL ( 76 ) AS col1, - 40 AS col2
----
76
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-2507
SELECT - COUNT( * ) AS col2, 41 AS col1
----
-1
41

skipif mysql # not compatible
query II rowsort label-2507
SELECT - COUNT ( * ) AS col2, 41 AS col1
----
-1
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT + SUM( + 67 ) * - + 55
----
-3685

skipif mysql # not compatible
query I rowsort label-2508
SELECT + SUM ( + 67 ) * - + 55
----
-3685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2509
SELECT ALL + COALESCE ( NULLIF ( - + 68, + - 5 ), + - 75, COUNT( * ) * - SUM( DISTINCT - ( + CAST( NULL AS SIGNED ) ) ) DIV 63 - + 79 )
----
-68

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL + COALESCE ( NULLIF ( - + 68, + - 5 ), + - 75, COUNT ( * ) * - SUM ( DISTINCT - ( + CAST ( NULL AS INTEGER ) ) ) / 63 - + 79 )
----
-68

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

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

query II rowsort
SELECT ALL + 94 col2, + 30 AS col2
----
94
30

query I rowsort
SELECT DISTINCT - ( + 16 ) * 9
----
-144

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

skipif mysql # not compatible
query II rowsort label-2513
SELECT COUNT ( * ) AS col0, 2
----
1
2

query I rowsort
SELECT ALL 15 * + 54
----
810

query I rowsort
SELECT 20 * - 64 AS col0
----
-1280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2516
SELECT - COUNT( * ), COUNT( * ) + - CASE - CAST( NULL AS DECIMAL ) WHEN 19 + + 60 THEN 77 ELSE NULL END col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2516
SELECT - COUNT ( * ), COUNT ( * ) + - CASE - CAST ( NULL AS REAL ) WHEN 19 + + 60 THEN 77 ELSE NULL END col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT - 98 * - 5 - + NULLIF ( - + ( + - 5 ), + CASE + + ( + 50 ) WHEN + 67 + 23 THEN 75 END ) + COUNT( * ) * + - COALESCE ( 58, - 2 + - + 29 * - + COUNT( * ), + 69 )
----
427

skipif mysql # not compatible
query I rowsort label-2517
SELECT - 98 * - 5 - + NULLIF ( - + ( + - 5 ), + CASE + + ( + 50 ) WHEN + 67 + 23 THEN 75 END ) + COUNT ( * ) * + - COALESCE ( 58, - 2 + - + 29 * - + COUNT ( * ), + 69 )
----
427

query I rowsort
SELECT ALL - - 13 + + 94 * - 85
----
-7977

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2519
SELECT ALL - CAST( NULL AS DECIMAL ) * - 91 + + - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - CAST ( NULL AS REAL ) * - 91 + + - 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT ALL - 88 * + COUNT( * ) * + + 64 AS col0
----
-5632

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL - 88 * + COUNT ( * ) * + + 64 AS col0
----
-5632

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT CASE SUM( DISTINCT + - 2 ) WHEN COUNT( * ) * 34 THEN + 51 ELSE - - 80 + - CASE - + 75 WHEN + + ( + 25 ) THEN NULL WHEN 75 + + 61 - 43 + + - 4 + - CASE + + 84 WHEN 52 THEN NULL ELSE + 88 END THEN + COALESCE ( + 22, - - AVG ( - - 48 ), + + 50 ) END END * + - COALESCE ( + 36, + COALESCE ( MIN( + - 84 ), - 92 ) + MAX( DISTINCT 19 ) + 27 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT CASE SUM ( DISTINCT + - 2 ) WHEN COUNT ( * ) * 34 THEN + 51 ELSE - - 80 + - CASE - + 75 WHEN + + ( + 25 ) THEN NULL WHEN 75 + + 61 - 43 + + - 4 + - CASE + + 84 WHEN 52 THEN NULL ELSE + 88 END THEN + COALESCE ( + 22, - - AVG ( - - 48 ), + + 50 ) END END * + - COALESCE ( + 36, + COALESCE ( MIN ( + - 84 ), - 92 ) + MAX ( DISTINCT 19 ) + 27 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2523
SELECT ALL - - 37 + - 67 + - 33 * + 52 * COUNT( 64 ) AS col0, 52 DIV + COUNT( * ) + 0 + 6 AS col2
----
-1746
58

skipif mysql # not compatible
query II rowsort label-2523
SELECT ALL - - 37 + - 67 + - 33 * + 52 * COUNT ( 64 ) AS col0, 52 / + COUNT ( * ) + 0 + 6 AS col2
----
-1746
58

query II rowsort
SELECT ALL 4 + 24, + 50 AS col0
----
28
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2525
SELECT ALL + 23 + + 62, - 80 * 55 * + + 49 + + - 1 * + - 94 - + + COUNT( * ) AS col2
----
85
-215507

skipif mysql # not compatible
query II rowsort label-2525
SELECT ALL + 23 + + 62, - 80 * 55 * + + 49 + + - 1 * + - 94 - + + COUNT ( * ) AS col2
----
85
-215507

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT 59 * 28 + - 8 + + COUNT( + 27 ) * - - 30 AS col2
----
1674

skipif mysql # not compatible
query I rowsort label-2526
SELECT 59 * 28 + - 8 + + COUNT ( + 27 ) * - - 30 AS col2
----
1674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2527
SELECT 51 * - 20 col2, - COALESCE ( - + 42, ( - - COUNT( * ) ) * + CAST( - 20 AS SIGNED ) DIV 84 + - 43 + 15 ) col0
----
-1020
42

skipif mysql # not compatible
query II rowsort label-2527
SELECT 51 * - 20 col2, - COALESCE ( - + 42, ( - - COUNT ( * ) ) * + CAST ( - 20 AS INTEGER ) / 84 + - 43 + 15 ) col0
----
-1020
42

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2529
SELECT 25 + - 59 + + CASE + COUNT( * ) WHEN + 90 / - 28 + ( CAST( NULL AS SIGNED ) ) THEN - CAST( NULL AS SIGNED ) * 77 END * - ( COUNT( * ) ) * + 65 * + - 51 / - 59 + - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT 25 + - 59 + + CASE + COUNT ( * ) WHEN + 90 / - 28 + ( CAST ( NULL AS INTEGER ) ) THEN - CAST ( NULL AS INTEGER ) * 77 END * - ( COUNT ( * ) ) * + 65 * + - 51 / - 59 + - 92 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2530
SELECT ALL - CAST( - 91 AS SIGNED ) * - 30 AS col1, 99 AS col1
----
-2730
99

skipif mysql # not compatible
query II rowsort label-2530
SELECT ALL - CAST ( - 91 AS INTEGER ) * - 30 AS col1, 99 AS col1
----
-2730
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT - CASE + 84 WHEN 32 THEN COUNT( 82 ) * - + 90 * - ( - + 52 ) + 80 + + - 68 + + 16 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - CASE + 84 WHEN 32 THEN COUNT ( 82 ) * - + 90 * - ( - + 52 ) + 80 + + - 68 + + 16 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2532
SELECT DISTINCT - NULLIF ( + COUNT( * ), + NULLIF ( - - 26, + COUNT( * ) ) ) AS col2, + 7
----
-1
7

skipif mysql # not compatible
query II rowsort label-2532
SELECT DISTINCT - NULLIF ( + COUNT ( * ), + NULLIF ( - - 26, + COUNT ( * ) ) ) AS col2, + 7
----
-1
7

query I rowsort
SELECT 40 + - ( + + 50 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT + 34 * - + 89 + + 77 - 27 + + 33 + + 83 * + + 46 * COUNT( * ) * 36
----
134505

skipif mysql # not compatible
query I rowsort label-2534
SELECT + 34 * - + 89 + + 77 - 27 + + 33 + + 83 * + + 46 * COUNT ( * ) * 36
----
134505

query I rowsort
SELECT 56 * 70 AS col2
----
3920

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT ALL + 16 DIV - - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + 16 / - - 79 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT - ( + + 82 ) DIV - - 55
----
-1

skipif mysql # not compatible
query I rowsort label-2537
SELECT - ( + + 82 ) / - - 55
----
-1

query I rowsort
SELECT ALL ( 96 ) * 27 col1
----
2592

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT + + 16 - 53 * + COUNT( * ) * + - 50 AS col0
----
2666

skipif mysql # not compatible
query I rowsort label-2540
SELECT + + 16 - 53 * + COUNT ( * ) * + - 50 AS col0
----
2666

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL - CASE 19 WHEN + COUNT( DISTINCT + 16 ) THEN NULL WHEN + + ( - 33 ) THEN 47 * - COUNT( * ) + - + 24 + - - 74 + - MAX( DISTINCT + + 6 ) END * + ( 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - CASE 19 WHEN + COUNT ( DISTINCT + 16 ) THEN NULL WHEN + + ( - 33 ) THEN 47 * - COUNT ( * ) + - + 24 + - - 74 + - MAX ( DISTINCT + + 6 ) END * + ( 39 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT - + SUM( - + ( + - 11 ) ) + + - 56
----
-67

skipif mysql # not compatible
query I rowsort label-2542
SELECT - + SUM ( - + ( + - 11 ) ) + + - 56
----
-67

query I rowsort
SELECT ALL + 61 + + 79 + - ( + 54 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT + - CAST( 59 AS SIGNED ) * - 91 AS col2
----
5369

skipif mysql # not compatible
query I rowsort label-2544
SELECT + - CAST ( 59 AS INTEGER ) * - 91 AS col2
----
5369

query I rowsort
SELECT + - 92 * + 50 * 43 AS col1
----
-197800

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT + 92 + + - COUNT( * ) + - + 93 * + 72 AS col2
----
-6605

skipif mysql # not compatible
query I rowsort label-2546
SELECT + 92 + + - COUNT ( * ) + - + 93 * + 72 AS col2
----
-6605

query I rowsort
SELECT DISTINCT + ( + ( - + 31 ) ) + 33 * 79
----
2576

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT + 19 + CASE + ( + + COALESCE ( - 57, 63 + 32 ) ) WHEN - + 60 + - 37 * + 62 THEN NULL WHEN 61 * + - 56 THEN - 47 END + - COALESCE ( - - 84, 58 ) * - + 27 * + COUNT( * ) + - + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT + 19 + CASE + ( + + COALESCE ( - 57, 63 + 32 ) ) WHEN - + 60 + - 37 * + 62 THEN NULL WHEN 61 * + - 56 THEN - 47 END + - COALESCE ( - - 84, 58 ) * - + 27 * + COUNT ( * ) + - + 75 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2549
SELECT + 32 + + MAX( ALL 91 ) + - + 64 * CAST( - 14 AS SIGNED ) + + + 10 * + + 51 col2
----
1529

skipif mysql # not compatible
query I rowsort label-2549
SELECT + 32 + + MAX ( ALL 91 ) + - + 64 * CAST ( - 14 AS INTEGER ) + + + 10 * + + 51 col2
----
1529

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL MAX( ALL + 20 ) * + 0 * 85 + - 31 + + + 71 - + MIN( ALL + - COALESCE ( - - 63, + 71, + 94 + + - 78 ) ) * - COUNT( * ) + + 97
----
74

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL MAX ( ALL + 20 ) * + 0 * 85 + - 31 + + + 71 - + MIN ( ALL + - COALESCE ( - - 63, + 71, + 94 + + - 78 ) ) * - COUNT ( * ) + + 97
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2551
SELECT ALL + 76 * + 46 + COUNT( * ) DIV 34 col0
----
3496

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + 76 * + 46 + COUNT ( * ) / 34 col0
----
3496

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2552
SELECT + + CAST( - ( + 81 ) AS SIGNED ) DIV + 72
----
-1

skipif mysql # not compatible
query I rowsort label-2552
SELECT + + CAST ( - ( + 81 ) AS INTEGER ) / + 72
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2553
SELECT + NULLIF ( 58, COUNT( * ) ) AS col2, + 57
----
58
57

skipif mysql # not compatible
query II rowsort label-2553
SELECT + NULLIF ( 58, COUNT ( * ) ) AS col2, + 57
----
58
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2554
SELECT + CASE + - CASE + + 32 WHEN 28 * - NULLIF ( - 39, - 57 * NULLIF ( - - 93, ( - + ( - + SUM( DISTINCT - 22 ) ) ) ) ) + ( - 52 ) THEN + 27 - + 57 + - 99 + 77 * - 7 * - 76 ELSE - 23 + + + 39 END WHEN - 92 * + CASE - 68 WHEN 13 THEN + - ( - - 29 ) WHEN + 76 + - ( + + COUNT( * ) ) THEN NULL ELSE NULL END * + 85 + COUNT( * ) * COUNT( * ) THEN - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * - 37 + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT + CASE + - CASE + + 32 WHEN 28 * - NULLIF ( - 39, - 57 * NULLIF ( - - 93, ( - + ( - + SUM ( DISTINCT - 22 ) ) ) ) ) + ( - 52 ) THEN + 27 - + 57 + - 99 + 77 * - 7 * - 76 ELSE - 23 + + + 39 END WHEN - 92 * + CASE - 68 WHEN 13 THEN + - ( - - 29 ) WHEN + 76 + - ( + + COUNT ( * ) ) THEN NULL ELSE NULL END * + 85 + COUNT ( * ) * COUNT ( * ) THEN - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * - 37 + + 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2555
SELECT + COUNT( 53 ) / COUNT( * ) * COUNT( * ) * + ( ( - - CAST( - - 66 AS DECIMAL ) ) ) - - ( - CAST( NULL AS SIGNED ) ) + + + ( + COUNT( * ) ) + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT + COUNT ( 53 ) / COUNT ( * ) * COUNT ( * ) * + ( ( - - CAST ( - - 66 AS REAL ) ) ) - - ( - CAST ( NULL AS INTEGER ) ) + + + ( + COUNT ( * ) ) + + 92
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2556
SELECT ALL + NULLIF ( + + COUNT( * ), NULLIF ( - - SUM( + 98 ), + 81 * - 46 * + 60 * + - COUNT( * ) * 37 / + 67 ) ) AS col0, CAST( NULL AS SIGNED ) + - 57 - - COALESCE ( - - 15, + + 66 ) + - + 36
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2556
SELECT ALL + NULLIF ( + + COUNT ( * ), NULLIF ( - - SUM ( + 98 ), + 81 * - 46 * + 60 * + - COUNT ( * ) * 37 / + 67 ) ) AS col0, CAST ( NULL AS INTEGER ) + - 57 - - COALESCE ( - - 15, + + 66 ) + - + 36
----
1
NULL

query I rowsort
SELECT + 67 * 24
----
1608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2558
SELECT CASE 90 WHEN - - 13 + 5 + - 49 THEN NULL WHEN - + SUM( DISTINCT - 99 ) THEN NULL ELSE 57 END AS col0, MAX( DISTINCT - + CAST( NULL AS SIGNED ) )
----
57
NULL

skipif mysql # not compatible
query II rowsort label-2558
SELECT CASE 90 WHEN - - 13 + 5 + - 49 THEN NULL WHEN - + SUM ( DISTINCT - 99 ) THEN NULL ELSE 57 END AS col0, MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
57
NULL

query I rowsort
SELECT COALESCE ( 73, - 62 )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT ALL - 22 * - - AVG ( + COALESCE ( 35, + 16 ) ) - COUNT( * ) + 4 * + - CASE - ( - 59 ) WHEN - NULLIF ( + 91, - 63 * - 35 * - - ( + - 35 ) * 11 ) + 11 / - 71 THEN + 90 WHEN + - 26 THEN NULL ELSE NULL END * + - 95 + - CAST( - 53 AS SIGNED ) + + COUNT( ALL - 53 ) + + 82 + - ( + + 83 ) / 26 + - 21 * - - 55 + + - ( SUM( DISTINCT 29 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL - 22 * - - AVG ( + COALESCE ( 35, + 16 ) ) - COUNT ( * ) + 4 * + - CASE - ( - 59 ) WHEN - NULLIF ( + 91, - 63 * - 35 * - - ( + - 35 ) * 11 ) + 11 / - 71 THEN + 90 WHEN + - 26 THEN NULL ELSE NULL END * + - 95 + - CAST ( - 53 AS INTEGER ) + + COUNT ( ALL - 53 ) + + 82 + - ( + + 83 ) / 26 + - 21 * - - 55 + + - ( SUM ( DISTINCT 29 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT NULLIF ( - ( + + 45 ), - - COUNT( * ) + + 75 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-2561
SELECT NULLIF ( - ( + + 45 ), - - COUNT ( * ) + + 75 ) AS col1
----
-45

query I rowsort
SELECT + 31 * - 63
----
-1953

onlyif mysql # aggregate syntax: 
query II rowsort label-2563
SELECT ALL + COUNT( * ), + 0 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2563
SELECT ALL + COUNT ( * ), + 0 AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT + ( NULLIF ( + 36, + 62 * + - 60 + 36 + - ( - + COUNT( * ) ) * - + ( + 69 ) ) )
----
36

skipif mysql # not compatible
query I rowsort label-2564
SELECT + ( NULLIF ( + 36, + 62 * + - 60 + 36 + - ( - + COUNT ( * ) ) * - + ( + 69 ) ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT CASE - COUNT( * ) WHEN + 22 THEN NULL ELSE + ( - 23 ) * + 36 END
----
-828

skipif mysql # not compatible
query I rowsort label-2565
SELECT CASE - COUNT ( * ) WHEN + 22 THEN NULL ELSE + ( - 23 ) * + 36 END
----
-828

onlyif mysql # aggregate syntax: 
query II rowsort label-2566
SELECT + 14 AS col0, + MIN( DISTINCT - + 34 ) + 31 AS col2
----
14
-3

skipif mysql # not compatible
query II rowsort label-2566
SELECT + 14 AS col0, + MIN ( DISTINCT - + 34 ) + 31 AS col2
----
14
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2567
SELECT COALESCE ( + 88, + + 84 - + - CAST( 73 AS SIGNED ) * + 39 )
----
88

skipif mysql # not compatible
query I rowsort label-2567
SELECT COALESCE ( + 88, + + 84 - + - CAST ( 73 AS INTEGER ) * + 39 )
----
88

query I rowsort
SELECT - COALESCE ( 31, + + 1 + 83 * - 32 ) * + 48
----
-1488

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

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

query II rowsort
SELECT ALL + 46 AS col2, 7 + - 37
----
46
-30

query I rowsort
SELECT ALL + 30 * 48 AS col2
----
1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT - + ( - + SUM( DISTINCT + + 22 ) ) * 48 DIV - 19 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2572
SELECT - + ( - + SUM ( DISTINCT + + 22 ) ) * 48 / - 19 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-2573
SELECT DISTINCT + + 84 * - - 25 + + 80 AS col0, + COUNT( * )
----
2180
1

skipif mysql # not compatible
query II rowsort label-2573
SELECT DISTINCT + + 84 * - - 25 + + 80 AS col0, + COUNT ( * )
----
2180
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2574
SELECT - - 93 + - - MIN( - + 1 ) + - 75 + - COALESCE ( + + ( - COALESCE ( + CAST( + COUNT( * ) AS SIGNED ), - 9 * + 46 * - 6 ) ), - - 74 ) + + 26 * - 56 + COUNT( * )
----
-1437

skipif mysql # not compatible
query I rowsort label-2574
SELECT - - 93 + - - MIN ( - + 1 ) + - 75 + - COALESCE ( + + ( - COALESCE ( + CAST ( + COUNT ( * ) AS INTEGER ), - 9 * + 46 * - 6 ) ), - - 74 ) + + 26 * - 56 + COUNT ( * )
----
-1437

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

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

query I rowsort
SELECT - + 76 * 52 AS col1
----
-3952

onlyif mysql # aggregate syntax: 
query II rowsort label-2577
SELECT - 9 + - ( - 85 ), - MAX( + 64 ) AS col1
----
76
-64

skipif mysql # not compatible
query II rowsort label-2577
SELECT - 9 + - ( - 85 ), - MAX ( + 64 ) AS col1
----
76
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2578
SELECT - NULLIF ( - - 48, + MAX( + CAST( + + NULLIF ( - 85, + 49 * NULLIF ( + + 70, - 15 ) + ( + - 26 ) + - 54 + - 92 * 60 * - ( - 56 ) ) AS SIGNED ) ) )
----
-48

skipif mysql # not compatible
query I rowsort label-2578
SELECT - NULLIF ( - - 48, + MAX ( + CAST ( + + NULLIF ( - 85, + 49 * NULLIF ( + + 70, - 15 ) + ( + - 26 ) + - 54 + - 92 * 60 * - ( - 56 ) ) AS INTEGER ) ) )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2579
SELECT + 23 + SUM( DISTINCT - + 18 ) AS col2, CAST( NULL AS SIGNED )
----
5
NULL

skipif mysql # not compatible
query II rowsort label-2579
SELECT + 23 + SUM ( DISTINCT - + 18 ) AS col2, CAST ( NULL AS INTEGER )
----
5
NULL

query I rowsort
SELECT ALL - 90 + 63
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2581
SELECT ALL + - MAX( - 13 ) DIV 91 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL + - MAX ( - 13 ) / 91 + - COUNT ( * )
----
-1

query II rowsort
SELECT 3 AS col0, 27
----
3
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2583
SELECT + 37 DIV + 35 col1
----
1

skipif mysql # not compatible
query I rowsort label-2583
SELECT + 37 / + 35 col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2584
SELECT DISTINCT + 63 + - - 71 DIV - 73
----
63

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT + 63 + - - 71 / - 73
----
63

query II rowsort
SELECT DISTINCT - 99 * - 55 * - 63 - 70, COALESCE ( + + 4, + 76 + 52 ) AS col0
----
-343105
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2586
SELECT - 89 * 97 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT - 89 * 97 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL + + 29 + - 79 + - 97 * + + 66 * COUNT( * ) - + 8 * - + 75 + + CASE 89 WHEN + 87 THEN NULL ELSE - + 97 END * + COUNT( ALL + 2 ) + 93 AS col2
----
-5856

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + + 29 + - 79 + - 97 * + + 66 * COUNT ( * ) - + 8 * - + 75 + + CASE 89 WHEN + 87 THEN NULL ELSE - + 97 END * + COUNT ( ALL + 2 ) + 93 AS col2
----
-5856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2588
SELECT ALL - + CASE NULLIF ( - 16, - COUNT( * ) + + - 7 + - 99 * 46 * - MAX( - 27 ) * + 88 ) WHEN - 55 THEN NULL ELSE - COUNT( * ) END DIV - 7 * + - 6 + 28 + 49
----
77

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL - + CASE NULLIF ( - 16, - COUNT ( * ) + + - 7 + - 99 * 46 * - MAX ( - 27 ) * + 88 ) WHEN - 55 THEN NULL ELSE - COUNT ( * ) END / - 7 * + - 6 + 28 + 49
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT - COALESCE ( + 5, - COALESCE ( COUNT( * ), - + 15 + + 23 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-2590
SELECT - COALESCE ( + 5, - COALESCE ( COUNT ( * ), - + 15 + + 23 ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT COUNT( - - 73 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2591
SELECT COUNT ( - - 73 ) AS col2
----
1

query II rowsort
SELECT - 93 AS col1, 17 AS col1
----
-93
17

query I rowsort
SELECT ALL 22 - + 84 AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2594
SELECT - 15 * - 18 * 94 * - 36 * CAST( NULL AS SIGNED ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT - 15 * - 18 * 94 * - 36 * CAST ( NULL AS INTEGER ) / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2595
SELECT DISTINCT - ( - COUNT( * ) ) DIV COALESCE ( 21, 24, + 17 ) - + 31 - - + MAX( ALL - + 33 ) * + + 42 AS col2
----
-1417

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT - ( - COUNT ( * ) ) / COALESCE ( 21, 24, + 17 ) - + 31 - - + MAX ( ALL - + 33 ) * + + 42 AS col2
----
-1417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2596
SELECT ALL + COUNT( * ) DIV + - 54 - 31
----
-31

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL + COUNT ( * ) / + - 54 - 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT DISTINCT 97 * + 26 * + COUNT( + ( 90 ) ) AS col2
----
2522

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT 97 * + 26 * + COUNT ( + ( 90 ) ) AS col2
----
2522

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2598
SELECT CAST( - 28 AS SIGNED ), - 36 DIV + + 13 col2
----
-28
-2

skipif mysql # not compatible
query II rowsort label-2598
SELECT CAST ( - 28 AS INTEGER ), - 36 / + + 13 col2
----
-28
-2

query I rowsort
SELECT + 37 - + 73 + + ( - 25 ) - + 25 * - + 36 AS col0
----
839

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2600
SELECT + 88 DIV + 82 + - MIN( - 70 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2600
SELECT + 88 / + 82 + - MIN ( - 70 ) AS col0
----
71

query I rowsort
SELECT + ( + CASE 60 WHEN 92 THEN NULL ELSE - + 62 END ) AS col0
----
-62

query I rowsort
SELECT ALL 96 * - - 54
----
5184

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2603
SELECT + 1 / - + CASE + 2 WHEN COALESCE ( + CAST( - 94 AS DECIMAL ), - MAX( DISTINCT + 75 ) ) + - + NULLIF ( - 60, 14 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT + 1 / - + CASE + 2 WHEN COALESCE ( + CAST ( - 94 AS REAL ), - MAX ( DISTINCT + 75 ) ) + - + NULLIF ( - 60, 14 ) THEN COUNT ( * ) END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2604
SELECT - 7 * + 37 / - COUNT ( * )
----
259

query I rowsort
SELECT DISTINCT 25 * 54
----
1350

query I rowsort
SELECT DISTINCT 1 * + - 89 AS col0
----
-89

query I rowsort
SELECT DISTINCT - 52 + - - 19 + + 27
----
-6

query I rowsort
SELECT ALL - ( - 39 ) + - 41 AS col1
----
-2

query I rowsort
SELECT DISTINCT + 3 * - + 13 + + + 26 AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT 5 * + - CAST( NULL AS SIGNED ) + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2610
SELECT 5 * + - CAST ( NULL AS INTEGER ) + + 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2611
SELECT DISTINCT CASE - 97 WHEN - 67 THEN 48 * + 54 END * - - 33 * - CASE - 77 WHEN + - COUNT( DISTINCT - 76 ) THEN NULL WHEN - 42 * + - MIN( DISTINCT + 42 ) THEN 91 END - CAST( + + MAX( 75 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT CASE - 97 WHEN - 67 THEN 48 * + 54 END * - - 33 * - CASE - 77 WHEN + - COUNT ( DISTINCT - 76 ) THEN NULL WHEN - 42 * + - MIN ( DISTINCT + 42 ) THEN 91 END - CAST ( + + MAX ( 75 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2612
SELECT - 10 - 22 DIV + - ( - MIN( + + 48 ) ) + 86 * + 32
----
2742

skipif mysql # not compatible
query I rowsort label-2612
SELECT - 10 - 22 / + - ( - MIN ( + + 48 ) ) + 86 * + 32
----
2742

query I rowsort
SELECT - 54 + + NULLIF ( 45, + 72 * - - 58 + + - 84 ) + 65
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT MAX( + 27 ) - - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-2614
SELECT MAX ( + 27 ) - - COUNT ( * ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL + 18 - + NULLIF ( - - NULLIF ( + - 27, + 68 ), + COUNT( * ) ) - - ( 40 ) * + + 22
----
925

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL + 18 - + NULLIF ( - - NULLIF ( + - 27, + 68 ), + COUNT ( * ) ) - - ( 40 ) * + + 22
----
925

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT + 76 + 49 + - 42 * - COUNT( * ) + + + 14 col2
----
181

skipif mysql # not compatible
query I rowsort label-2616
SELECT + 76 + 49 + - 42 * - COUNT ( * ) + + + 14 col2
----
181

onlyif mysql # DIV for integer division: 
query I rowsort label-2617
SELECT DISTINCT - + 89 DIV 13 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT - + 89 / 13 AS col2
----
-6

query I rowsort
SELECT 53 + + + 65 - ( 51 ) + + 5 * - - ( + 6 ) + - + 4 * 57 AS col0
----
-131

query I rowsort
SELECT 51 + + 35 * + 86 AS col1
----
3061

query I rowsort
SELECT ALL - ( - 90 ) - 16 AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 78 AS col0
----
NULL

query I rowsort
SELECT ALL 56 - - 80
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-2623
SELECT SUM( ALL - 7 ) * + 89, 15 AS col2
----
-623
15

skipif mysql # not compatible
query II rowsort label-2623
SELECT SUM ( ALL - 7 ) * + 89, 15 AS col2
----
-623
15

query I rowsort
SELECT ALL + 29 * 58 AS col1
----
1682

query I rowsort
SELECT 56 * 26 * + 62 AS col2
----
90272

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

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + 57 + - COUNT ( * ) AS col0
----
56

query I rowsort
SELECT ALL 42 * - + 90 col2
----
-3780

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL COUNT( * ) + + 35 + + 24 * - 70 + + 95 + CASE - 76 WHEN 87 + + 53 THEN - 90 END + + ( - 62 ) / - + NULLIF ( COUNT( - + 73 ), - COUNT( * ) ) * - - CASE + AVG ( + - 22 ) WHEN - COUNT( * ) THEN + + 83 * CASE - 60 WHEN - 49 THEN 80 * + AVG ( + 90 ) - 3 ELSE NULL END WHEN + NULLIF ( - 82, + COUNT( * ) - + 31 ) * - - 82 THEN - 40 ELSE - 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL COUNT ( * ) + + 35 + + 24 * - 70 + + 95 + CASE - 76 WHEN 87 + + 53 THEN - 90 END + + ( - 62 ) / - + NULLIF ( COUNT ( - + 73 ), - COUNT ( * ) ) * - - CASE + AVG ( + - 22 ) WHEN - COUNT ( * ) THEN + + 83 * CASE - 60 WHEN - 49 THEN 80 * + AVG ( + 90 ) - 3 ELSE NULL END WHEN + NULLIF ( - 82, + COUNT ( * ) - + 31 ) * - - 82 THEN - 40 ELSE - 82 END AS col2
----
NULL

query I rowsort
SELECT ALL 52 * + 78
----
4056

onlyif mysql # DIV for integer division: 
query II rowsort label-2630
SELECT - 36 AS col1, + 52 DIV - - 56 col2
----
-36
0

skipif mysql # not compatible
query II rowsort label-2630
SELECT - 36 AS col1, + 52 / - - 56 col2
----
-36
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2631
SELECT COUNT( * ) AS col2, + ( + + 44 ) + ( + 53 ) + + 34 + COUNT( * )
----
1
132

skipif mysql # not compatible
query II rowsort label-2631
SELECT COUNT ( * ) AS col2, + ( + + 44 ) + ( + 53 ) + + 34 + COUNT ( * )
----
1
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT COUNT( + 93 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2632
SELECT COUNT ( + 93 ) AS col1
----
1

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

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

query I rowsort
SELECT DISTINCT 14 + 28 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL - 4 * - - 80 + + 18 + ( + 5 ) * + COUNT( * )
----
-297

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - 4 * - - 80 + + 18 + ( + 5 ) * + COUNT ( * )
----
-297

query II rowsort
SELECT 70 col1, 8 AS col2
----
70
8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT - CASE + - 85 WHEN 25 THEN + 95 ELSE + CAST( + 91 AS SIGNED ) * 74 * + 10 + - - 26 END * - 53 + + 52 + - COUNT( * )
----
3570449

skipif mysql # not compatible
query I rowsort label-2638
SELECT - CASE + - 85 WHEN 25 THEN + 95 ELSE + CAST ( + 91 AS INTEGER ) * 74 * + 10 + - - 26 END * - 53 + + 52 + - COUNT ( * )
----
3570449

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - MIN( - 18 )
----
18

skipif mysql # not compatible
query I rowsort label-2639
SELECT - MIN ( - 18 )
----
18

query I rowsort
SELECT + 94 + + 4 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT + 8 + + ( - + 65 ) + + CASE 39 WHEN - + 39 + - + 75 * + 0 THEN NULL WHEN + CAST( + 36 AS SIGNED ) * + 88 + - 8 / 47 THEN - + 15 END * 15 * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT + 8 + + ( - + 65 ) + + CASE 39 WHEN - + 39 + - + 75 * + 0 THEN NULL WHEN + CAST ( + 36 AS INTEGER ) * + 88 + - 8 / 47 THEN - + 15 END * 15 * + 75
----
NULL

query I rowsort
SELECT 89 + + 89 AS col1
----
178

query I rowsort
SELECT 91 * - + 65
----
-5915

onlyif mysql # aggregate syntax: 
query II rowsort label-2644
SELECT - - 68 AS col1, - 27 + SUM( - 31 ) * 35 * + - 72 * - 12 + 84 - 85
----
68
-937468

skipif mysql # not compatible
query II rowsort label-2644
SELECT - - 68 AS col1, - 27 + SUM ( - 31 ) * 35 * + - 72 * - 12 + 84 - 85
----
68
-937468

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL + + 74 - - 32 * + + 77 * 14 + + - SUM( DISTINCT 19 ) + - - 33 col2
----
34584

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL + + 74 - - 32 * + + 77 * 14 + + - SUM ( DISTINCT 19 ) + - - 33 col2
----
34584

query II rowsort
SELECT DISTINCT 79 col1, - 75
----
79
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT 66 DIV + ( - - 71 )
----
0

skipif mysql # not compatible
query I rowsort label-2647
SELECT 66 / + ( - - 71 )
----
0

query II rowsort
SELECT 23 AS col2, 22 + + 62
----
23
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT 79 * - - MAX( ALL 91 )
----
7189

skipif mysql # not compatible
query I rowsort label-2649
SELECT 79 * - - MAX ( ALL 91 )
----
7189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2650
SELECT 56 DIV + NULLIF ( + - ( COALESCE ( 74, + MAX( DISTINCT 43 ) + - 27, + + 1 * - CASE 10 WHEN - - ( + ( + CASE - 51 WHEN + - 12 DIV - - 35 THEN NULL WHEN 86 + - 84 * 84 * 93 THEN NULL ELSE + - 96 * + 51 END ) ) + 70 + + 95 DIV 23 THEN + 31 * - + 4 * 39 + - - 63 DIV + + 13 WHEN - + 4 + - - 14 THEN NULL ELSE 40 END ) ), MIN( ALL ( 27 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2650
SELECT 56 / + NULLIF ( + - ( COALESCE ( 74, + MAX ( DISTINCT 43 ) + - 27, + + 1 * - CASE 10 WHEN - - ( + ( + CASE - 51 WHEN + - 12 / - - 35 THEN NULL WHEN 86 + - 84 * 84 * 93 THEN NULL ELSE + - 96 * + 51 END ) ) + 70 + + 95 / 23 THEN + 31 * - + 4 * 39 + - - 63 / + + 13 WHEN - + 4 + - - 14 THEN NULL ELSE 40 END ) ), MIN ( ALL ( 27 ) ) )
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2652
SELECT - 96 col1, + 90 * - COUNT( * )
----
-96
-90

skipif mysql # not compatible
query II rowsort label-2652
SELECT - 96 col1, + 90 * - COUNT ( * )
----
-96
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2653
SELECT - 8 * + CAST( NULL AS SIGNED ) * CAST( 77 AS SIGNED ) * + - 3 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2653
SELECT - 8 * + CAST ( NULL AS INTEGER ) * CAST ( 77 AS INTEGER ) * + - 3 + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2654
SELECT + 92 * 50 - - ( - SUM( - 45 ) ) DIV + 59 + - 46 + + - COUNT( * ) + + + CAST( + AVG ( ALL 25 ) AS SIGNED ) col2, - 97
----
4578
-97

skipif mysql # not compatible
query II rowsort label-2654
SELECT + 92 * 50 - - ( - SUM ( - 45 ) ) / + 59 + - 46 + + - COUNT ( * ) + + + CAST ( + AVG ( ALL 25 ) AS INTEGER ) col2, - 97
----
4578
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2655
SELECT ALL + COUNT( * ) AS col1, - 70 * 74 AS col0
----
1
-5180

skipif mysql # not compatible
query II rowsort label-2655
SELECT ALL + COUNT ( * ) AS col1, - 70 * 74 AS col0
----
1
-5180

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

query I rowsort
SELECT NULLIF ( + + 68, + 42 ) AS col0
----
68

query I rowsort
SELECT - 54 * - 6 - + 91 * + 77
----
-6683

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2660
SELECT DISTINCT - MAX( DISTINCT - - 36 ) * - 76 + + 0 AS col2, 64 * + COUNT( * ) + + 20 * + ( 33 ) col2
----
2736
724

skipif mysql # not compatible
query II rowsort label-2660
SELECT DISTINCT - MAX ( DISTINCT - - 36 ) * - 76 + + 0 AS col2, 64 * + COUNT ( * ) + + 20 * + ( 33 ) col2
----
2736
724

query I rowsort
SELECT + - ( + 20 ) * + 95 col1
----
-1900

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

skipif mysql # not compatible
query I rowsort label-2662
SELECT MIN ( ALL 12 )
----
12

query I rowsort
SELECT + + COALESCE ( + + 10, - 71 + - 84 )
----
10

query I rowsort
SELECT - + 39 + + + 99 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT NULLIF ( + 7, COUNT( * ) + + 64 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2665
SELECT NULLIF ( + 7, COUNT ( * ) + + 64 ) AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2666
SELECT ALL MIN( - 37 ) DIV + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL MIN ( - 37 ) / + COUNT ( * )
----
-37

query II rowsort
SELECT + - 88 AS col0, 21 - 63 AS col0
----
-88
-42

query II rowsort
SELECT - - 62 + - NULLIF ( 83, - 91 ) AS col1, 79 col1
----
-21
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT - 13 * + ( - CASE - 98 WHEN - ( - 21 ) - - 15 + - + CAST( + 65 AS SIGNED ) THEN NULL WHEN - + 25 THEN + 59 WHEN + 22 THEN NULL END ) + + 44 + + COALESCE ( 32, + - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2669
SELECT - 13 * + ( - CASE - 98 WHEN - ( - 21 ) - - 15 + - + CAST ( + 65 AS INTEGER ) THEN NULL WHEN - + 25 THEN + 59 WHEN + 22 THEN NULL END ) + + 44 + + COALESCE ( 32, + - 25 )
----
NULL

query I rowsort
SELECT ALL + 93 * 51 * + ( - 3 ) * - + 45 + + + 70 * - 10
----
639605

query II rowsort
SELECT + - 23 + + + 71 AS col2, + 34 col1
----
48
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2672
SELECT + - COUNT( * ) * + - 74 DIV ( - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-2672
SELECT + - COUNT ( * ) * + - 74 / ( - 66 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT DISTINCT + 15 * - NULLIF ( + 63, + SUM( DISTINCT - 80 ) ) col2
----
-945

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT + 15 * - NULLIF ( + 63, + SUM ( DISTINCT - 80 ) ) col2
----
-945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2674
SELECT ALL 16 DIV + + MAX( DISTINCT - + 8 )
----
-2

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL 16 / + + MAX ( DISTINCT - + 8 )
----
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2676
SELECT + NULLIF ( + 99, COALESCE ( + - 98, 22 ) + - - 37 - 33 ) + + + MAX( CAST( - 5 AS SIGNED ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-2676
SELECT + NULLIF ( + 99, COALESCE ( + - 98, 22 ) + - - 37 - 33 ) + + + MAX ( CAST ( - 5 AS INTEGER ) ) AS col2
----
94

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2678
SELECT + 85 * + + CAST( - 12 AS SIGNED )
----
-1020

skipif mysql # not compatible
query I rowsort label-2678
SELECT + 85 * + + CAST ( - 12 AS INTEGER )
----
-1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2679
SELECT + 2 + + COALESCE ( + - 66, - 38, COALESCE ( + COUNT( * ), + 65 * + 67 ) * + + 60 + 14 * - 25 DIV + 11 + - - 63 + - 63 * + MIN( ALL + - ( - ( + 46 ) ) ) * + + COUNT( * ) * + 63 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2679
SELECT + 2 + + COALESCE ( + - 66, - 38, COALESCE ( + COUNT ( * ), + 65 * + 67 ) * + + 60 + 14 * - 25 / + 11 + - - 63 + - 63 * + MIN ( ALL + - ( - ( + 46 ) ) ) * + + COUNT ( * ) * + 63 ) AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2680
SELECT + CAST( COUNT( * ) AS SIGNED ) + - ( + 89 ) * + 32
----
-2847

skipif mysql # not compatible
query I rowsort label-2680
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + - ( + 89 ) * + 32
----
-2847

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL + MIN( ALL + 65 ) * MAX( ALL - 92 ) AS col1
----
-5980

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + MIN ( ALL + 65 ) * MAX ( ALL - 92 ) AS col1
----
-5980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2682
SELECT ALL COALESCE ( 27, CAST( NULL AS SIGNED ) )
----
27

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL COALESCE ( 27, CAST ( NULL AS INTEGER ) )
----
27

query I rowsort
SELECT - 31 + + + 88
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-2684
SELECT ALL 37 + COUNT( * ), 21 * 26 AS col0
----
38
546

skipif mysql # not compatible
query II rowsort label-2684
SELECT ALL 37 + COUNT ( * ), 21 * 26 AS col0
----
38
546

query I rowsort
SELECT + NULLIF ( - + 96, - + 59 ) * - - 82 * - 56 AS col2
----
440832

query I rowsort
SELECT - 1 + - 9
----
-10

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

skipif mysql # not compatible
query I rowsort label-2687
SELECT - 89 * ( COUNT ( * ) )
----
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2688
SELECT ALL + 12 DIV 17 + 79 + + CAST( + 59 AS SIGNED )
----
138

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL + 12 / 17 + 79 + + CAST ( + 59 AS INTEGER )
----
138

query I rowsort
SELECT ALL + 82 * - 91 - + 50 AS col1
----
-7512

query I rowsort
SELECT - - 77 * + - 37 + + 2 col1
----
-2847

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT ALL + 71 / - CASE 51 WHEN - ( + 50 ) * COUNT( DISTINCT - ( + 66 ) ) / - + 37 + + 78 + - COUNT( * ) + - 27 + - + 19 * 25 - + + 9 + + 69 / 88 THEN NULL WHEN AVG ( DISTINCT + 79 ) * - + 59 + + 16 THEN NULL WHEN - 5 THEN - 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL + 71 / - CASE 51 WHEN - ( + 50 ) * COUNT ( DISTINCT - ( + 66 ) ) / - + 37 + + 78 + - COUNT ( * ) + - 27 + - + 19 * 25 - + + 9 + + 69 / 88 THEN NULL WHEN AVG ( DISTINCT + 79 ) * - + 59 + + 16 THEN NULL WHEN - 5 THEN - 17 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2692
SELECT ALL - 83 DIV - COUNT( * ) - - 10
----
93

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL - 83 / - COUNT ( * ) - - 10
----
93

query I rowsort
SELECT - - 33 - 17
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2694
SELECT - - COUNT( * ) DIV 10 DIV - SUM( ALL - 65 ) + + COALESCE ( - 56, + 80 + SUM( ALL - 3 ) * 7 )
----
-56

skipif mysql # not compatible
query I rowsort label-2694
SELECT - - COUNT ( * ) / 10 / - SUM ( ALL - 65 ) + + COALESCE ( - 56, + 80 + SUM ( ALL - 3 ) * 7 )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2695
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1, + COUNT( * ) * - - 79
----
1
79

skipif mysql # not compatible
query II rowsort label-2695
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1, + COUNT ( * ) * - - 79
----
1
79

query II rowsort
SELECT DISTINCT - - 45 * - + 53 AS col2, 68
----
-2385
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT - 20 * - ( + NULLIF ( + + COUNT( * ), - MIN( + COALESCE ( + + 40, - COALESCE ( + 70, - 42 / + 64 + + + 95 ) * 58, - + 81 * 56 + + 9 + + NULLIF ( + - ( + 23 ), + 93 * 65 + - - 90 ) - + + 65 + - 39 * 48 + 28 - - - 69 * + + 53 + + - 22 ) ) + - + 21 + - MAX( DISTINCT + - 69 ) ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2697
SELECT - 20 * - ( + NULLIF ( + + COUNT ( * ), - MIN ( + COALESCE ( + + 40, - COALESCE ( + 70, - 42 / + 64 + + + 95 ) * 58, - + 81 * 56 + + 9 + + NULLIF ( + - ( + 23 ), + 93 * 65 + - - 90 ) - + + 65 + - 39 * 48 + 28 - - - 69 * + + 53 + + - 22 ) ) + - + 21 + - MAX ( DISTINCT + - 69 ) ) ) AS col2
----
20

query I rowsort
SELECT - COALESCE ( + - 33, - 14 ) + + 14 - - NULLIF ( + 42, - 28 * - - 73 * - 42 ) * - + 71
----
-2935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2699
SELECT - - COUNT( * ) * - CAST( NULL AS SIGNED ) * COUNT( * ) - - COALESCE ( - + 72, SUM( ALL 2 ) ) / + 23 * 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * COUNT ( * ) - - COALESCE ( - + 72, SUM ( ALL 2 ) ) / + 23 * 18 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2700
SELECT DISTINCT 4 * NULLIF ( + CAST( + 86 AS SIGNED ), - 47 ) + COUNT( * ) AS col1
----
345

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT 4 * NULLIF ( + CAST ( + 86 AS INTEGER ), - 47 ) + COUNT ( * ) AS col1
----
345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2701
SELECT + - CAST( NULL AS SIGNED ) * - 78 AS col1, 73 * - + COUNT( * ) + - COUNT( * )
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-2701
SELECT + - CAST ( NULL AS INTEGER ) * - 78 AS col1, 73 * - + COUNT ( * ) + - COUNT ( * )
----
NULL
-74

query I rowsort
SELECT - + 15 * 10 * - + 7 AS col2
----
1050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2703
SELECT DISTINCT + + 2 DIV NULLIF ( + 63, - COUNT( * ) ) - - - COUNT( * ) DIV - 23 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT + + 2 / NULLIF ( + 63, - COUNT ( * ) ) - - - COUNT ( * ) / - 23 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2704
SELECT COUNT( 30 ) DIV + + 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-2704
SELECT COUNT ( 30 ) / + + 79 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT ALL 97 + + SUM( 43 ) + 9
----
149

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL 97 + + SUM ( 43 ) + 9
----
149

query II rowsort
SELECT 48 AS col1, 85 * - 6 AS col1
----
48
-510

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT DISTINCT + 97 DIV - + 48 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + 97 / - + 48 AS col2
----
-2

query I rowsort
SELECT ALL - 43 + - + 80 + - - 49 + - + 65 + - 15 AS col0
----
-154

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

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

query I rowsort
SELECT ALL 37 + + - 13
----
24

query II rowsort
SELECT DISTINCT 53, - 8 AS col0
----
53
-8

query I rowsort
SELECT 75 + - 48 + 40
----
67

query I rowsort
SELECT 10 * 37 col1
----
370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2714
SELECT ALL 31 DIV - 60 * + + MIN( DISTINCT - 3 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL 31 / - 60 * + + MIN ( DISTINCT - 3 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2715
SELECT 58 col1, 34 + CAST( NULL AS SIGNED ) AS col2
----
58
NULL

skipif mysql # not compatible
query II rowsort label-2715
SELECT 58 col1, 34 + CAST ( NULL AS INTEGER ) AS col2
----
58
NULL

query I rowsort
SELECT ( - + 95 ) * - - 68 * + 26 * 77 - 83
----
-12933003

onlyif mysql # DIV for integer division: 
query II rowsort label-2717
SELECT 67, - 97 DIV 50 AS col2
----
67
-1

skipif mysql # not compatible
query II rowsort label-2717
SELECT 67, - 97 / 50 AS col2
----
67
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2718
SELECT ALL 18, - MIN( + + 39 ) AS col2
----
18
-39

skipif mysql # not compatible
query II rowsort label-2718
SELECT ALL 18, - MIN ( + + 39 ) AS col2
----
18
-39

query II rowsort
SELECT ALL 70, - 15 + + 54 AS col2
----
70
39

query I rowsort
SELECT ALL + ( - 90 ) * - 11 AS col1
----
990

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

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL - CAST ( NULL AS INTEGER ) * 84 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2722
SELECT + 38 * - CASE 72 WHEN + - 74 THEN NULL WHEN CAST( NULL AS SIGNED ) + + - COUNT( * ) + - 0 / 71 + - + 50 THEN NULL WHEN - 83 THEN NULL ELSE + - 0 * + COUNT( * ) * - COALESCE ( - - COUNT( * ), 64, 99 ) * - 95 * - 39 - - + COUNT( ALL - NULLIF ( + - ( - 80 ), 43 * + 40 ) ) - + ( 49 ) * + 69 - - 42 END AS col2, 50 col0
----
126844
50

skipif mysql # not compatible
query II rowsort label-2722
SELECT + 38 * - CASE 72 WHEN + - 74 THEN NULL WHEN CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + - 0 / 71 + - + 50 THEN NULL WHEN - 83 THEN NULL ELSE + - 0 * + COUNT ( * ) * - COALESCE ( - - COUNT ( * ), 64, 99 ) * - 95 * - 39 - - + COUNT ( ALL - NULLIF ( + - ( - 80 ), 43 * + 40 ) ) - + ( 49 ) * + 69 - - 42 END AS col2, 50 col0
----
126844
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT + 95 + + 16 DIV + 33 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2723
SELECT + 95 + + 16 / + 33 AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2724
SELECT - COUNT( * ) * + 89 - - 78 col2, 45 * - + 45
----
-11
-2025

skipif mysql # not compatible
query II rowsort label-2724
SELECT - COUNT ( * ) * + 89 - - 78 col2, 45 * - + 45
----
-11
-2025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT DISTINCT - NULLIF ( + 37, - 93 + - + CAST( NULL AS SIGNED ) )
----
-37

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT - NULLIF ( + 37, - 93 + - + CAST ( NULL AS INTEGER ) )
----
-37

query II rowsort
SELECT ALL - + 87 AS col2, - 57 AS col0
----
-87
-57

query I rowsort
SELECT ALL - - 80 * + + 42
----
3360

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT ALL - 99 DIV - - 95 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - 99 / - - 95 AS col2
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT ALL - 49 * - + 90 * - 62 + + - COUNT( * ) + + - 66
----
-273487

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL - 49 * - + 90 * - 62 + + - COUNT ( * ) + + - 66
----
-273487

query I rowsort
SELECT 53 + + + 45
----
98

query I rowsort
SELECT 97 * - 11
----
-1067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT ALL + + COUNT( * ) * + COUNT( * ) + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + 71
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2734
SELECT COUNT( * ) * + + ( + 56 ) AS col1, ( 98 ) * + - 27 * - ( + + COUNT( DISTINCT 29 ) ) AS col2
----
56
2646

skipif mysql # not compatible
query II rowsort label-2734
SELECT COUNT ( * ) * + + ( + 56 ) AS col1, ( 98 ) * + - 27 * - ( + + COUNT ( DISTINCT 29 ) ) AS col2
----
56
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL + + MIN( NULLIF ( + - 80, 12 ) ) + - - 4 - + + 25 - + COUNT( * )
----
-102

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + + MIN ( NULLIF ( + - 80, 12 ) ) + - - 4 - + + 25 - + COUNT ( * )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL - COUNT( * ) + 56 + + + 15
----
70

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL - COUNT ( * ) + 56 + + + 15
----
70

query I rowsort
SELECT 2 * + 92 * - + 45 - + 6 AS col0
----
-8286

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

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

query I rowsort
SELECT ALL - 39 + 24 * - + ( + - 95 ) AS col1
----
2241

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT NULLIF ( - COUNT( * ), + 60 ) - - 61
----
60

skipif mysql # not compatible
query I rowsort label-2740
SELECT NULLIF ( - COUNT ( * ), + 60 ) - - 61
----
60

query I rowsort
SELECT 75 + + 12 + - 13 * 91 AS col2
----
-1096

query I rowsort
SELECT 14 * + 16 AS col1
----
224

query I rowsort
SELECT 20 + ( - - 99 ) AS col1
----
119

query II rowsort
SELECT ALL - 40 - + 9 AS col0, - 88 AS col0
----
-49
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT 91 * + ( COALESCE ( + 53, + + 40 * 34 * - 14 DIV - 74 ) ) AS col0
----
4823

skipif mysql # not compatible
query I rowsort label-2745
SELECT 91 * + ( COALESCE ( + 53, + + 40 * 34 * - 14 / - 74 ) ) AS col0
----
4823

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL SUM( DISTINCT - - 83 ) - MIN( DISTINCT + 83 )
----
0

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL SUM ( DISTINCT - - 83 ) - MIN ( DISTINCT + 83 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT 0 + + ( - COUNT( * ) ) * CASE - + 50 WHEN - 90 THEN NULL WHEN + - 40 THEN 25 END + 81 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT 0 + + ( - COUNT ( * ) ) * CASE - + 50 WHEN - 90 THEN NULL WHEN + - 40 THEN 25 END + 81 * 42
----
NULL

query I rowsort
SELECT 4 * - 97
----
-388

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT DISTINCT MIN( + + CASE 43 WHEN - + 85 THEN - 33 - - 3 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT MIN ( + + CASE 43 WHEN - + 85 THEN - 33 - - 3 END ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2750
SELECT ALL + 77 * - + CAST( + 29 AS SIGNED ) AS col2
----
-2233

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL + 77 * - + CAST ( + 29 AS INTEGER ) AS col2
----
-2233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2751
SELECT DISTINCT - 22 * - + 92 * NULLIF ( - 19, - ( + SUM( 55 ) ) + 60 - - ( CAST( NULL AS SIGNED ) ) * + 45 * COUNT( * ) )
----
-38456

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT - 22 * - + 92 * NULLIF ( - 19, - ( + SUM ( 55 ) ) + 60 - - ( CAST ( NULL AS INTEGER ) ) * + 45 * COUNT ( * ) )
----
-38456

query I rowsort
SELECT 29 + + 53
----
82

query I rowsort
SELECT DISTINCT + ( + 82 ) - + 70 - - 75 + + 3 * + 21 AS col0
----
150

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

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT COUNT ( * ) / + 85 + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT - CAST( - + 62 AS SIGNED ) * - - 41 AS col1
----
2542

skipif mysql # not compatible
query I rowsort label-2755
SELECT - CAST ( - + 62 AS INTEGER ) * - - 41 AS col1
----
2542

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

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

query I rowsort
SELECT + + 39 * 37 * - - 39 + - 76 - 93 AS col1
----
56108

onlyif mysql # DIV for integer division: 
query I rowsort label-2758
SELECT + 31 DIV 92 * + - 73 + - 95 + + 50 + + 43 * + 75 AS col0
----
3180

skipif mysql # not compatible
query I rowsort label-2758
SELECT + 31 / 92 * + - 73 + - 95 + + 50 + + 43 * + 75 AS col0
----
3180

query I rowsort
SELECT DISTINCT + - 73 * 90 + 91 * 56
----
-1474

query I rowsort
SELECT ALL + 70 * + + 36 * + 15 AS col0
----
37800

query I rowsort
SELECT 89 * - 36
----
-3204

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT DISTINCT + 24 * - + 31 - + COUNT( * ) + - ( - ( 74 ) ) AS col0
----
-671

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT + 24 * - + 31 - + COUNT ( * ) + - ( - ( 74 ) ) AS col0
----
-671

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT - + ( - 58 ) DIV 16 - - 26
----
29

skipif mysql # not compatible
query I rowsort label-2763
SELECT - + ( - 58 ) / 16 - - 26
----
29

query I rowsort
SELECT DISTINCT - 38 * - 0 * + 98 + + - 64
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT + - 98 / - CASE + 25 WHEN 30 * + COUNT( * ) + - COUNT( * ) + 51 + + MAX( - 25 ) - + - 49 * + 96 * + 57 THEN NULL WHEN - 7 THEN + COUNT( * ) / + ( + + 89 ) + - 33 + + 49 END * + 14 * ( + - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT + - 98 / - CASE + 25 WHEN 30 * + COUNT ( * ) + - COUNT ( * ) + 51 + + MAX ( - 25 ) - + - 49 * + 96 * + 57 THEN NULL WHEN - 7 THEN + COUNT ( * ) / + ( + + 89 ) + - 33 + + 49 END * + 14 * ( + - 66 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL + MIN( - 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL + MIN ( - 88 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT + CASE - 31 WHEN - ( COUNT( * ) ) + + + 19 THEN NULL WHEN + 48 * + 48 * COUNT( * ) THEN COUNT( DISTINCT + 63 ) + + COUNT( 26 ) + 81 + - - 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT + CASE - 31 WHEN - ( COUNT ( * ) ) + + + 19 THEN NULL WHEN + 48 * + 48 * COUNT ( * ) THEN COUNT ( DISTINCT + 63 ) + + COUNT ( 26 ) + 81 + - - 21 END AS col0
----
NULL

query I rowsort
SELECT - + COALESCE ( 13, 7 ) + - - ( + 0 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL - 54 + - 3 * 93 * NULLIF ( + 22, - + COUNT( * ) ) col2
----
-6192

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - 54 + - 3 * 93 * NULLIF ( + 22, - + COUNT ( * ) ) col2
----
-6192

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT DISTINCT 85 + - COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT 85 + - COUNT ( * ) AS col1
----
84

query I rowsort
SELECT DISTINCT - 25 + + 36
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL 20 + MAX( ALL + + 60 ) - + 49 * - NULLIF ( 98, - + 35 )
----
4882

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL 20 + MAX ( ALL + + 60 ) - + 49 * - NULLIF ( 98, - + 35 )
----
4882

onlyif mysql # DIV for integer division: 
query I rowsort label-2773
SELECT + 43 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT + 43 / + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL MIN( + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL MIN ( + 95 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT - CASE + + 20 WHEN - 32 + + - 83 * COUNT( * ) * 87 THEN NULL WHEN 16 + - 11 THEN - 91 * + 18 / 63 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT - CASE + + 20 WHEN - 32 + + - 83 * COUNT ( * ) * 87 THEN NULL WHEN 16 + - 11 THEN - 91 * + 18 / 63 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT - 25 + COUNT( * ) + 92 + - + 66 + 33
----
35

skipif mysql # not compatible
query I rowsort label-2776
SELECT - 25 + COUNT ( * ) + 92 + - + 66 + 33
----
35

query I rowsort
SELECT - 2 + - 18
----
-20

query I rowsort
SELECT ALL - 8 - + 72
----
-80

query II rowsort
SELECT 5, + 98 AS col2
----
5
98

query I rowsort
SELECT - 90 * 86 col0
----
-7740

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT ALL + COUNT( * ) - + 43
----
-42

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL + COUNT ( * ) - + 43
----
-42

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2783
SELECT ALL COUNT( * ) AS col0, 58 * - 63
----
1
-3654

skipif mysql # not compatible
query II rowsort label-2783
SELECT ALL COUNT ( * ) AS col0, 58 * - 63
----
1
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT MIN( - 44 ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT MIN ( - 44 ) col1
----
-44

query II rowsort
SELECT DISTINCT COALESCE ( + + 71, - 61, - + ( + 12 ) ) col1, 18
----
71
18

query I rowsort
SELECT - 30 - + 30 AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2787
SELECT - 6 + - + 99 * - CAST( NULL AS SIGNED ) / 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2787
SELECT - 6 + - + 99 * - CAST ( NULL AS INTEGER ) / 36 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - NULLIF ( + 34, - 33 - - - 83 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT - + 38 * + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - + 38 * + COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT - + 71 * + 10 AS col0
----
-710

query I rowsort
SELECT + - 65 * CASE + 25 WHEN 12 + - 49 + + + 33 / + + 86 THEN - + 5 ELSE NULL END * + 17 + + + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL 26 * + COUNT( * ) + + ( + 83 ) AS col2
----
109

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL 26 * + COUNT ( * ) + + ( + 83 ) AS col2
----
109

query I rowsort
SELECT ALL + 85 + + - 59 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT - - 63 * - 97 - + 5 * - MIN( ALL - + 87 ) * 88
----
-44391

skipif mysql # not compatible
query I rowsort label-2795
SELECT - - 63 * - 97 - + 5 * - MIN ( ALL - + 87 ) * 88
----
-44391

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL - 13 / + 25 - CASE + 95 WHEN - CASE ( MIN( - 62 ) ) WHEN + 27 THEN NULL WHEN + 9 * - 64 THEN 68 END + - + 98 - 12 * - 47 THEN + 20 END + - + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL - 13 / + 25 - CASE + 95 WHEN - CASE ( MIN ( - 62 ) ) WHEN + 27 THEN NULL WHEN + 9 * - 64 THEN 68 END + - + 98 - 12 * - 47 THEN + 20 END + - + 5 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2797
SELECT 4 DIV - 58 + - + 69 col0
----
-69

skipif mysql # not compatible
query I rowsort label-2797
SELECT 4 / - 58 + - + 69 col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2798
SELECT ALL - + 29 DIV + 67 + 70 + - 4 * + ( + 64 ) + - SUM( DISTINCT + + 54 ), + SUM( ALL - 54 ) + - 52 AS col1
----
-240
-106

skipif mysql # not compatible
query II rowsort label-2798
SELECT ALL - + 29 / + 67 + 70 + - 4 * + ( + 64 ) + - SUM ( DISTINCT + + 54 ), + SUM ( ALL - 54 ) + - 52 AS col1
----
-240
-106

onlyif mysql # aggregate syntax: 
query II rowsort label-2799
SELECT DISTINCT + + SUM( ALL - 67 ) * 77, 8 + + 66 AS col1
----
-5159
74

skipif mysql # not compatible
query II rowsort label-2799
SELECT DISTINCT + + SUM ( ALL - 67 ) * 77, 8 + + 66 AS col1
----
-5159
74

query I rowsort
SELECT + 25 * 96 + + 16
----
2416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT - - ( + CAST( NULL AS SIGNED ) ) * + 41 * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT - - ( + CAST ( NULL AS INTEGER ) ) * + 41 * - 0
----
NULL

query I rowsort
SELECT + + 38 - 53 + 21
----
6

query II rowsort
SELECT DISTINCT 95 * - 68 + + 10, CASE - 93 WHEN - - NULLIF ( - + 87, - NULLIF ( + 50, 83 ) ) * - - 88 THEN NULL WHEN - - COALESCE ( + - 98, 93 ) * - 70 THEN - - 20 WHEN + - AVG ( ALL + 51 ) THEN NULL END AS col0
----
-6450
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2805
SELECT 3 * + COUNT( * ) + 32 - - ( COUNT( * ) ), 28 AS col2
----
36
28

skipif mysql # not compatible
query II rowsort label-2805
SELECT 3 * + COUNT ( * ) + 32 - - ( COUNT ( * ) ), 28 AS col2
----
36
28

query I rowsort
SELECT + 4 * - - 60 + - + 74
----
166

query I rowsort
SELECT DISTINCT 79 * + - 7 AS col0
----
-553

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT + 2 * COUNT( * ) * + 37
----
74

skipif mysql # not compatible
query I rowsort label-2808
SELECT + 2 * COUNT ( * ) * + 37
----
74

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

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

query I rowsort
SELECT + 20 + + 68
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT + 26 DIV + 18
----
1

skipif mysql # not compatible
query I rowsort label-2811
SELECT + 26 / + 18
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2812
SELECT - 46, 50 * 11 DIV - 27 AS col1
----
-46
-20

skipif mysql # not compatible
query II rowsort label-2812
SELECT - 46, 50 * 11 / - 27 AS col1
----
-46
-20

query I rowsort
SELECT ALL COALESCE ( + 12, 21 * + 40 + - 94 ) AS col0
----
12

query I rowsort
SELECT + 42 + 49 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2815
SELECT ALL + CASE - + 34 WHEN + 14 THEN + MIN( + CAST( NULL AS SIGNED ) ) END * - - CASE - CAST( NULL AS SIGNED ) WHEN AVG ( DISTINCT + - 50 ) THEN NULL WHEN + CAST( NULL AS DECIMAL ) THEN - ( COUNT( * ) ) END * CAST( 26 AS SIGNED ) * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL + CASE - + 34 WHEN + 14 THEN + MIN ( + CAST ( NULL AS INTEGER ) ) END * - - CASE - CAST ( NULL AS INTEGER ) WHEN AVG ( DISTINCT + - 50 ) THEN NULL WHEN + CAST ( NULL AS REAL ) THEN - ( COUNT ( * ) ) END * CAST ( 26 AS INTEGER ) * + 60
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2816
SELECT ALL COUNT( * ) AS col1, + 90 + - + 50 + + 75 - - + 67 + 48
----
1
230

skipif mysql # not compatible
query II rowsort label-2816
SELECT ALL COUNT ( * ) AS col1, + 90 + - + 50 + + 75 - - + 67 + 48
----
1
230

query I rowsort
SELECT 13 * + 94 + 69
----
1291

query I rowsort
SELECT - 36 - - 30 * + 1 + - 75 + + 62 - + 67 + 74 + 25
----
13

query I rowsort
SELECT + 6 + ( 63 ) * - + 81
----
-5097

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT - COUNT( * ) + - + 52 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-2820
SELECT - COUNT ( * ) + - + 52 AS col1
----
-53

query I rowsort
SELECT ALL + 77 * + + 87
----
6699

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT - 88 + 31 + - 98 * - COUNT( - 45 )
----
41

skipif mysql # not compatible
query I rowsort label-2822
SELECT - 88 + 31 + - 98 * - COUNT ( - 45 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2823
SELECT ALL - CAST( NULL AS SIGNED ) * MIN( ALL 20 ) * SUM( CAST( NULL AS SIGNED ) ) * - - NULLIF ( - + 11, - ( - - 32 ) * - ( COALESCE ( + 53, NULLIF ( + 48, + - 90 * - 67 + 81 ) ) ) ) + - ( 76 ) * - 22 * - ( - ( + COUNT( * ) ) ) * + 6 col0, ( + - ( CAST( NULL AS DECIMAL ) ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2823
SELECT ALL - CAST ( NULL AS INTEGER ) * MIN ( ALL 20 ) * SUM ( CAST ( NULL AS INTEGER ) ) * - - NULLIF ( - + 11, - ( - - 32 ) * - ( COALESCE ( + 53, NULLIF ( + 48, + - 90 * - 67 + 81 ) ) ) ) + - ( 76 ) * - 22 * - ( - ( + COUNT ( * ) ) ) * + 6 col0, ( + - ( CAST ( NULL AS REAL ) ) )
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 36 * - 46 * - + 46
----
76176

query I rowsort
SELECT ALL - 14 + - + 62 + + + ( - 93 ) * + NULLIF ( - 62, - 59 ) AS col2
----
5690

query II rowsort
SELECT - 84 + - 60, 42 AS col0
----
-144
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT ALL AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * 4 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2828
SELECT - NULLIF ( - 5, - + COUNT( * ) * + 90 * - - 38 + + COUNT( * ) * + 52 / CAST( 2 AS DECIMAL ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2828
SELECT - NULLIF ( - 5, - + COUNT ( * ) * + 90 * - - 38 + + COUNT ( * ) * + 52 / CAST ( 2 AS REAL ) ) AS col2
----
5

query I rowsort
SELECT ALL - ( - 8 ) + + + ( + - 51 ) AS col2
----
-43

query III rowsort
SELECT ALL - 62, + 78 AS col2, - + 93 + + 47 col2
----
-62
78
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT COUNT( * ) * + 49 * + 35 AS col2
----
1715

skipif mysql # not compatible
query I rowsort label-2831
SELECT COUNT ( * ) * + 49 * + 35 AS col2
----
1715

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT + COUNT( * ) + - 46
----
-45

skipif mysql # not compatible
query I rowsort label-2832
SELECT + COUNT ( * ) + - 46
----
-45

query I rowsort
SELECT ALL 44 + + 96 AS col2
----
140

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2835
SELECT ALL + + 1 * 26 AS col0, + COUNT( + + 27 ) + - 9
----
26
-8

skipif mysql # not compatible
query II rowsort label-2835
SELECT ALL + + 1 * 26 AS col0, + COUNT ( + + 27 ) + - 9
----
26
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2836
SELECT ALL - + CASE + COALESCE ( 24, - - 49 / + COALESCE ( + 76, 2 + + - 25 + - 54, - ( - CAST( - ( - 62 ) AS SIGNED ) ) * + 90 ) + - - 72 / + COUNT( * ) + + 65 + + 16 * - 42 ) WHEN + 6 THEN - 20 ELSE NULL END AS col1, + 56 - - - 39 AS col2
----
NULL
17

skipif mysql # not compatible
query II rowsort label-2836
SELECT ALL - + CASE + COALESCE ( 24, - - 49 / + COALESCE ( + 76, 2 + + - 25 + - 54, - ( - CAST ( - ( - 62 ) AS INTEGER ) ) * + 90 ) + - - 72 / + COUNT ( * ) + + 65 + + 16 * - 42 ) WHEN + 6 THEN - 20 ELSE NULL END AS col1, + 56 - - - 39 AS col2
----
NULL
17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2838
SELECT + 62 DIV + 69 - 92
----
-92

skipif mysql # not compatible
query I rowsort label-2838
SELECT + 62 / + 69 - 92
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-2839
SELECT - 12 * + + 64 + 25 * - COUNT( * ) * + - 70 AS col2, 62 AS col1
----
982
62

skipif mysql # not compatible
query II rowsort label-2839
SELECT - 12 * + + 64 + 25 * - COUNT ( * ) * + - 70 AS col2, 62 AS col1
----
982
62

query II rowsort
SELECT 80 * - 39 * + 29 + - 41 * 95 AS col1, + 96 AS col1
----
-94375
96

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2842
SELECT ALL ( + ( - CASE - ( + CASE + + ( + + 77 ) WHEN + 90 THEN - COUNT( * ) + + + 13 WHEN - 85 THEN NULL END ) WHEN - 91 THEN NULL ELSE - 9 * + 46 END ) ) DIV + + 50 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL ( + ( - CASE - ( + CASE + + ( + + 77 ) WHEN + 90 THEN - COUNT ( * ) + + + 13 WHEN - 85 THEN NULL END ) WHEN - 91 THEN NULL ELSE - 9 * + 46 END ) ) / + + 50 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT + COUNT( * ) - + + 80 * + 65
----
-5199

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT + COUNT ( * ) - + + 80 * + 65
----
-5199

query I rowsort
SELECT DISTINCT - CASE + + 15 WHEN - + 7 * + 63 THEN NULL ELSE - 85 END AS col2
----
85

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2846
SELECT NULLIF ( 88, 3 - + + 59 ) + COUNT( * ) AS col0, - 81
----
89
-81

skipif mysql # not compatible
query II rowsort label-2846
SELECT NULLIF ( 88, 3 - + + 59 ) + COUNT ( * ) AS col0, - 81
----
89
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2847
SELECT COUNT( * ) * + 15 AS col0, CAST( NULL AS DECIMAL )
----
15
NULL

skipif mysql # not compatible
query II rowsort label-2847
SELECT COUNT ( * ) * + 15 AS col0, CAST ( NULL AS REAL )
----
15
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2848
SELECT DISTINCT ( + 5 ) + + 7 + - 44 + - + 74 * COUNT( * ) DIV ( - + 31 ) + 99 + - 95 - - + 71 - - 46 * - 75 + - + 89 * + COUNT( * )
----
-3494

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT ( + 5 ) + + 7 + - 44 + - + 74 * COUNT ( * ) / ( - + 31 ) + 99 + - 95 - - + 71 - - 46 * - 75 + - + 89 * + COUNT ( * )
----
-3494

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2850
SELECT ALL CASE 57 WHEN + + 84 * + COUNT( 94 ) * - 22 THEN - - 42 END + + 93 AS col1, 94 DIV + 71 AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2850
SELECT ALL CASE 57 WHEN + + 84 * + COUNT ( 94 ) * - 22 THEN - - 42 END + + 93 AS col1, 94 / + 71 AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2851
SELECT DISTINCT COUNT( * ) + 76, SUM( ALL - 37 ) AS col2
----
77
-37

skipif mysql # not compatible
query II rowsort label-2851
SELECT DISTINCT COUNT ( * ) + 76, SUM ( ALL - 37 ) AS col2
----
77
-37

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

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL - + 33 + + COUNT ( * ) AS col0
----
-32

query I rowsort
SELECT - 4 * - 18 * + 70 + - - 3 AS col2
----
5043

onlyif mysql # aggregate syntax: 
query II rowsort label-2854
SELECT + 48 + 59, COUNT( DISTINCT 3 ) * + - 43 * + COUNT( * ) * - ( + 98 ) AS col0
----
107
4214

skipif mysql # not compatible
query II rowsort label-2854
SELECT + 48 + 59, COUNT ( DISTINCT 3 ) * + - 43 * + COUNT ( * ) * - ( + 98 ) AS col0
----
107
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT - 62 + COUNT( * ) + - - 26 * + 11 AS col2
----
225

skipif mysql # not compatible
query I rowsort label-2855
SELECT - 62 + COUNT ( * ) + - - 26 * + 11 AS col2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT - 71 * COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2856
SELECT - 71 * COUNT ( * ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT - - MIN( - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-2857
SELECT - - MIN ( - 70 )
----
-70

query I rowsort
SELECT DISTINCT - NULLIF ( + 23, 92 )
----
-23

query I rowsort
SELECT ALL + - 66 + - 72 + + NULLIF ( + 93, AVG ( + 22 ) * + 60 ) * - - 75 * - - 74 + 25
----
516037

query I rowsort
SELECT ALL - 30 * 85
----
-2550

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

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

query I rowsort
SELECT + 78 * - 73 * - - 82 + 48 * + 24 + + + 54 AS col1
----
-465702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2863
SELECT + CAST( - - COUNT( * ) AS SIGNED ) DIV + 92 * - 63 * - COALESCE ( + 66, + 73 * + + 99 * + ( - 8 ) ) + 38 + + - NULLIF ( 46, 59 * 1 + - - 52 ) + + + ( + + 25 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2863
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) / + 92 * - 63 * - COALESCE ( + 66, + 73 * + + 99 * + ( - 8 ) ) + 38 + + - NULLIF ( 46, 59 * 1 + - - 52 ) + + + ( + + 25 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT 85 * + 84 * - 43 / + 29 * + - CASE + 30 WHEN + + 65 THEN + + COUNT( * ) WHEN 67 THEN + 6 END * + + 15 * - 29 + 0 / - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT 85 * + 84 * - 43 / + 29 * + - CASE + 30 WHEN + + 65 THEN + + COUNT ( * ) WHEN 67 THEN + 6 END * + + 15 * - 29 + 0 / - + 46
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2865
SELECT COUNT ( * ), - 69 AS col2
----
1
-69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL + MAX( + 49 ) * + 75 * + SUM( - 38 )
----
-139650

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + MAX ( + 49 ) * + 75 * + SUM ( - 38 )
----
-139650

query I rowsort
SELECT 10 * - 55
----
-550

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT 94 * - + 83 + COUNT( * ) AS col0
----
-7801

skipif mysql # not compatible
query I rowsort label-2869
SELECT 94 * - + 83 + COUNT ( * ) AS col0
----
-7801

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL - MIN( + 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL - MIN ( + 32 ) AS col2
----
-32

query I rowsort
SELECT 0 + - 75
----
-75

query I rowsort
SELECT 10 + + 60 AS col2
----
70

query I rowsort
SELECT 23 * + 46 + 85 * 29 + - 67
----
3456

query I rowsort
SELECT 55 * + 27
----
1485

onlyif mysql # DIV for integer division: 
query I rowsort label-2875
SELECT DISTINCT 12 DIV 96 * 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT 12 / 96 * 18 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT DISTINCT + ( + 30 ) + - 56 * 93 DIV - 96 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT + ( + 30 ) + - 56 * 93 / - 96 AS col2
----
84

query I rowsort
SELECT ALL + 86 + + + ( - 21 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT ALL 49 + - COALESCE ( + COUNT( * ), - NULLIF ( 17, - + MIN( + + 2 ) ) + + 49 ) + 28
----
76

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL 49 + - COALESCE ( + COUNT ( * ), - NULLIF ( 17, - + MIN ( + + 2 ) ) + + 49 ) + 28
----
76

query I rowsort
SELECT - NULLIF ( + 93, - 0 * 17 + 15 + 17 ) + - 58 AS col1
----
-151

query II rowsort
SELECT ALL 87 col2, 53 AS col1
----
87
53

query I rowsort
SELECT - 33 * 62 AS col1
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT + 2 + + COUNT( * ) - - + 39 + - 60
----
-18

skipif mysql # not compatible
query I rowsort label-2882
SELECT + 2 + + COUNT ( * ) - - + 39 + - 60
----
-18

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

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

query II rowsort
SELECT DISTINCT + 4 * + + ( + 44 ) AS col2, + 52 AS col1
----
176
52

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2886
SELECT ALL - 91 AS col1, COUNT( * ) * 71 * 10
----
-91
710

skipif mysql # not compatible
query II rowsort label-2886
SELECT ALL - 91 AS col1, COUNT ( * ) * 71 * 10
----
-91
710

query I rowsort
SELECT + - 65 + - + 22
----
-87

query II rowsort
SELECT + 33, 94 * + 77 AS col0
----
33
7238

query I rowsort
SELECT + + 15 + - + 96 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT DISTINCT - 77 - - - 88 + - 99 * + MIN( ALL + + 79 ) + - 15 col1, + 33 AS col0
----
-8001
33

skipif mysql # not compatible
query II rowsort label-2890
SELECT DISTINCT - 77 - - - 88 + - 99 * + MIN ( ALL + + 79 ) + - 15 col1, + 33 AS col0
----
-8001
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT - COUNT( * ) + - + 13 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2891
SELECT - COUNT ( * ) + - + 13 AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT + - 38 * 25 DIV - 37 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2892
SELECT + - 38 * 25 / - 37 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT - - COUNT( * ) * 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2893
SELECT - - COUNT ( * ) * 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT - 62 + + COALESCE ( + 27, 87, - + COUNT( * ) - + 0 ) + 92 * - + 16 * + COUNT( * ) * 58 AS col1
----
-85411

skipif mysql # not compatible
query I rowsort label-2894
SELECT - 62 + + COALESCE ( + 27, 87, - + COUNT ( * ) - + 0 ) + 92 * - + 16 * + COUNT ( * ) * 58 AS col1
----
-85411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2895
SELECT ALL + COALESCE ( 5, + - 97 * - COALESCE ( - + 81, ( - ( + CASE - 59 WHEN + - SUM( ALL - 93 ) THEN NULL WHEN 9 * - 64 + - + 42 THEN - 47 - CASE 54 WHEN - 31 * + COUNT( * ) * + 68 * - 85 THEN - ( 58 ) + + + CAST( NULL AS SIGNED ) WHEN + 4 + - - 53 + - 89 THEN NULL WHEN - + 43 THEN NULL ELSE + + ( + ( 12 ) ) END ELSE NULL END ) ) ) ) * - COUNT( * ) / + COUNT( * ) + - CASE COALESCE ( + COALESCE ( - COALESCE ( - - 20, 12 * 46 ), 81, - - 49 ), 64, + COUNT( * ) ) WHEN 4 THEN + 60 / + 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL + COALESCE ( 5, + - 97 * - COALESCE ( - + 81, ( - ( + CASE - 59 WHEN + - SUM ( ALL - 93 ) THEN NULL WHEN 9 * - 64 + - + 42 THEN - 47 - CASE 54 WHEN - 31 * + COUNT ( * ) * + 68 * - 85 THEN - ( 58 ) + + + CAST ( NULL AS INTEGER ) WHEN + 4 + - - 53 + - 89 THEN NULL WHEN - + 43 THEN NULL ELSE + + ( + ( 12 ) ) END ELSE NULL END ) ) ) ) * - COUNT ( * ) / + COUNT ( * ) + - CASE COALESCE ( + COALESCE ( - COALESCE ( - - 20, 12 * 46 ), 81, - - 49 ), 64, + COUNT ( * ) ) WHEN 4 THEN + 60 / + 27 END
----
NULL

query I rowsort
SELECT + NULLIF ( + 37, - 42 * NULLIF ( - + 27, - + 91 ) * + 69 - - 24 ) AS col0
----
37

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

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL + ( + CAST ( - 32 AS INTEGER ) ) AS col1
----
-32

query I rowsort
SELECT - 43 + - - 12 AS col0
----
-31

query I rowsort
SELECT ALL - 2 * + + ( - 84 ) + - 60 * + 70 * - 25 AS col1
----
105168

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT NULLIF ( - 86, + COUNT( 24 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-2900
SELECT NULLIF ( - 86, + COUNT ( 24 ) )
----
-86

query I rowsort
SELECT + NULLIF ( - - 41, - - 92 )
----
41

query I rowsort
SELECT + 90 - + + 68 + + - 90 + + 69
----
1

query I rowsort
SELECT ALL + CASE + 85 WHEN + + 74 THEN 55 * 16 + - 47 END AS col0
----
NULL

query I rowsort
SELECT + 7 * + 46 col1
----
322

query I rowsort
SELECT 18 * - - 95 + 80 AS col2
----
1790

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2907
SELECT ALL + 86 * CAST( NULL AS SIGNED ) + 81 + + COUNT( * ) + - + 8 + + - 8 / - - 76 + - CAST( - 35 AS SIGNED ), 40 AS col0
----
NULL
40

skipif mysql # not compatible
query II rowsort label-2907
SELECT ALL + 86 * CAST ( NULL AS INTEGER ) + 81 + + COUNT ( * ) + - + 8 + + - 8 / - - 76 + - CAST ( - 35 AS INTEGER ), 40 AS col0
----
NULL
40

query I rowsort
SELECT - 77 * - 56
----
4312

query I rowsort
SELECT DISTINCT - 46 * ( - 9 ) * - 22 col2
----
-9108

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT DISTINCT - COUNT( - 1 ) * + 89 + 26 + + 31 * - 92
----
-2915

skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT - COUNT ( - 1 ) * + 89 + 26 + + 31 * - 92
----
-2915

query I rowsort
SELECT DISTINCT + 76 * - 16 + 91 * 42
----
2606

query II rowsort
SELECT DISTINCT ( - 71 ) col0, 92 col0
----
-71
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2913
SELECT - + 55 DIV + - 69, + 81 * 68 + + - ( CASE + 72 WHEN - 90 * + 85 + - COALESCE ( 84, - + ( + COUNT( * ) ) + 60, + 25 DIV 41 ) THEN + - 72 * 22 - - 36 - - + 93 WHEN 15 THEN - 38 END ) * 22 AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2913
SELECT - + 55 / + - 69, + 81 * 68 + + - ( CASE + 72 WHEN - 90 * + 85 + - COALESCE ( 84, - + ( + COUNT ( * ) ) + 60, + 25 / 41 ) THEN + - 72 * 22 - - 36 - - + 93 WHEN 15 THEN - 38 END ) * 22 AS col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL + 75 - + NULLIF ( + 58, + ( + 25 ) ) * + - COUNT( * ) AS col2
----
133

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL + 75 - + NULLIF ( + 58, + ( + 25 ) ) * + - COUNT ( * ) AS col2
----
133

query I rowsort
SELECT - + 69 - - 11 + - + 54 AS col1
----
-112

onlyif mysql # DIV for integer division: 
query II rowsort label-2916
SELECT - 53 DIV + 29 AS col1, - ( - - 54 ) DIV 20 + + 27
----
-1
25

skipif mysql # not compatible
query II rowsort label-2916
SELECT - 53 / + 29 AS col1, - ( - - 54 ) / 20 + + 27
----
-1
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT ALL COUNT( * ) * - 57 * + 13 AS col2
----
-741

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL COUNT ( * ) * - 57 * + 13 AS col2
----
-741

query I rowsort
SELECT DISTINCT - 92 * - 16
----
1472

onlyif mysql # aggregate syntax: 
query II rowsort label-2919
SELECT DISTINCT - MIN( ALL - + 3 ), + SUM( ALL - 97 ) AS col1
----
3
-97

skipif mysql # not compatible
query II rowsort label-2919
SELECT DISTINCT - MIN ( ALL - + 3 ), + SUM ( ALL - 97 ) AS col1
----
3
-97

query I rowsort
SELECT - 33 + + - 50 * + + 36 AS col2
----
-1833

query I rowsort
SELECT + + 53 * - + 7
----
-371

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT + COALESCE ( + COUNT( * ), + - 47 + - SUM( 47 ), 85 )
----
1

skipif mysql # not compatible
query I rowsort label-2922
SELECT + COALESCE ( + COUNT ( * ), + - 47 + - SUM ( 47 ), 85 )
----
1

query I rowsort
SELECT + 50 - + 37
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2924
SELECT ALL 76 AS col0, + CAST( NULL AS SIGNED ) * 19 - NULLIF ( - 71, + SUM( - + 29 ) * + COUNT( + CAST( NULL AS SIGNED ) ) - - 26 )
----
76
NULL

skipif mysql # not compatible
query II rowsort label-2924
SELECT ALL 76 AS col0, + CAST ( NULL AS INTEGER ) * 19 - NULLIF ( - 71, + SUM ( - + 29 ) * + COUNT ( + CAST ( NULL AS INTEGER ) ) - - 26 )
----
76
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT ALL 38 DIV - 15 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL 38 / - 15 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT + 43 DIV 2 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-2926
SELECT + 43 / 2 AS col2
----
21

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

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

query I rowsort
SELECT 31 * 95 * - + COALESCE ( + 16, - 13 * + 65 ) + + - 54 - - 54 + 68
----
-47052

onlyif mysql # DIV for integer division: 
query I rowsort label-2929
SELECT + 8 DIV + 97 * - 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2929
SELECT + 8 / + 97 * - 9 AS col0
----
0

query I rowsort
SELECT + 13 * + - ( 5 ) AS col2
----
-65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2932
SELECT ALL + 42 DIV - - 44 * + - 68 + + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + 42 / - - 44 * + - 68 + + - 41
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-2933
SELECT ALL + 59 DIV + 34 + 91 col0
----
92

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL + 59 / + 34 + 91 col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT CAST( - - 95 AS SIGNED ) col2
----
95

skipif mysql # not compatible
query I rowsort label-2934
SELECT CAST ( - - 95 AS INTEGER ) col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2935
SELECT + 77 DIV - 35
----
-2

skipif mysql # not compatible
query I rowsort label-2935
SELECT + 77 / - 35
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2936
SELECT + 36 + + SUM( ALL - 4 ), + 5 AS col2
----
32
5

skipif mysql # not compatible
query II rowsort label-2936
SELECT + 36 + + SUM ( ALL - 4 ), + 5 AS col2
----
32
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT DISTINCT NULLIF ( + MIN( ALL - 34 ), - 45 - + 66 + - + 49 * - 9 * 19 ) * 94 * 46
----
-147016

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT NULLIF ( + MIN ( ALL - 34 ), - 45 - + 66 + - + 49 * - 9 * 19 ) * 94 * 46
----
-147016

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2938
SELECT ALL + SUM( ALL - 39 ) DIV + - 78 + + 4 + - 65 col2, 81 * + 85 AS col0
----
-61
6885

skipif mysql # not compatible
query II rowsort label-2938
SELECT ALL + SUM ( ALL - 39 ) / + - 78 + + 4 + - 65 col2, 81 * + 85 AS col0
----
-61
6885

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2939
SELECT ALL - 15 DIV 9 + - - 83, 55 * MAX( DISTINCT - - 23 ) col2
----
82
1265

skipif mysql # not compatible
query II rowsort label-2939
SELECT ALL - 15 / 9 + - - 83, 55 * MAX ( DISTINCT - - 23 ) col2
----
82
1265

query I rowsort
SELECT 35 + + - 62
----
-27

query I rowsort
SELECT + 1 + - 76 * 54 AS col0
----
-4103

query I rowsort
SELECT + 75 + + + 94
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2943
SELECT + 51 * 8 * + 95 + + 10 + - - 97 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT + 51 * 8 * + 95 + + 10 + - - 97 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2944
SELECT + ( - - SUM( DISTINCT + 54 ) ) AS col2, + MAX( - + 64 )
----
54
-64

skipif mysql # not compatible
query II rowsort label-2944
SELECT + ( - - SUM ( DISTINCT + 54 ) ) AS col2, + MAX ( - + 64 )
----
54
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2945
SELECT 98 * 57 DIV + 93 + + 87 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-2945
SELECT 98 * 57 / + 93 + + 87 AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL - - MAX( DISTINCT - 67 ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL - - MAX ( DISTINCT - 67 ) col1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT + ( + + 99 ) * - CAST( + 16 AS SIGNED ) + - - COALESCE ( - 47, 82 )
----
-1631

skipif mysql # not compatible
query I rowsort label-2947
SELECT + ( + + 99 ) * - CAST ( + 16 AS INTEGER ) + - - COALESCE ( - 47, 82 )
----
-1631

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL - ( 54 ) * - 12 * + COUNT( * )
----
648

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL - ( 54 ) * - 12 * + COUNT ( * )
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - 51 + - - ( 14 ) + COUNT( 63 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-2949
SELECT - 51 + - - ( 14 ) + COUNT ( 63 ) col0
----
-36

query I rowsort
SELECT DISTINCT - - 92 * - - 18 + 55 col2
----
1711

query I rowsort
SELECT - 8 * + 89 AS col0
----
-712

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT 10 + - 5 DIV 33 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2952
SELECT 10 + - 5 / 33 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT - COALESCE ( COALESCE ( + 26, 90, + 23 ), - 25, - + NULLIF ( 90, - ( - 87 ) + + + 63 - NULLIF ( + COUNT( * ), + + 72 + - 78 + + 44 + - 17 * 50 * - 5 ) ) * 63 * - 13 * - + COUNT( * ) )
----
-26

skipif mysql # not compatible
query I rowsort label-2953
SELECT - COALESCE ( COALESCE ( + 26, 90, + 23 ), - 25, - + NULLIF ( 90, - ( - 87 ) + + + 63 - NULLIF ( + COUNT ( * ), + + 72 + - 78 + + 44 + - 17 * 50 * - 5 ) ) * 63 * - 13 * - + COUNT ( * ) )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2954
SELECT COUNT( * ) + - - SUM( DISTINCT 7 ) DIV 63 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2954
SELECT COUNT ( * ) + - - SUM ( DISTINCT 7 ) / 63 AS col2
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2956
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) * CASE + + CAST( + 66 AS SIGNED ) WHEN 70 THEN 22 + 66 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) * CASE + + CAST ( + 66 AS INTEGER ) WHEN 70 THEN 22 + 66 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 40 * - 81
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT MIN( - 79 ) * 60 AS col1
----
-4740

skipif mysql # not compatible
query I rowsort label-2958
SELECT MIN ( - 79 ) * 60 AS col1
----
-4740

query I rowsort
SELECT + 14 + + 7 AS col2
----
21

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

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

query II rowsort
SELECT DISTINCT 74 col0, - 21 * + 94 AS col2
----
74
-1974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2962
SELECT + SUM( ALL + - 72 ) * - CAST( MAX( ALL + + 32 ) AS SIGNED ) * - 56
----
-129024

skipif mysql # not compatible
query I rowsort label-2962
SELECT + SUM ( ALL + - 72 ) * - CAST ( MAX ( ALL + + 32 ) AS INTEGER ) * - 56
----
-129024

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL - + 88 + + 48 * + 32 * - SUM( DISTINCT - 98 ) AS col2
----
150440

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL - + 88 + + 48 * + 32 * - SUM ( DISTINCT - 98 ) AS col2
----
150440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2964
SELECT DISTINCT + 94 DIV COUNT( * ) DIV + - COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT + 94 / COUNT ( * ) / + - COUNT ( * ) AS col1
----
-94

query I rowsort
SELECT 13 * + 57 AS col1
----
741

query I rowsort
SELECT 23 * + 58 AS col0
----
1334

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL - 99 + MAX( + + 95 ) + 38 * - - 56 col0
----
2124

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL - 99 + MAX ( + + 95 ) + 38 * - - 56 col0
----
2124

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

skipif mysql # not compatible
query II rowsort label-2968
SELECT 23 AS col2, COUNT ( * ) AS col2
----
23
1

query II rowsort
SELECT - 84, 71 AS col1
----
-84
71

query I rowsort
SELECT DISTINCT + 18 + - 21 - 54 + - - 40 * + 77 AS col0
----
3023

query II rowsort
SELECT + 95, 59 * + 86 AS col0
----
95
5074

query I rowsort
SELECT DISTINCT - 73 + + - 85 AS col0
----
-158

query I rowsort
SELECT 38 * 14 * + - 75
----
-39900

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT DISTINCT 83 DIV 21 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT 83 / 21 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT DISTINCT 42 - + 16 * 0 + + - 60 * - NULLIF ( 65, - ( - 94 ) ) * CAST( + 96 AS SIGNED )
----
374442

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT 42 - + 16 * 0 + + - 60 * - NULLIF ( 65, - ( - 94 ) ) * CAST ( + 96 AS INTEGER )
----
374442

query II rowsort
SELECT ALL - 99, + 70 * 17 AS col0
----
-99
1190

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2978
SELECT 38 - - - 62 - + + 4 + - 92 + + COUNT( * ) / + 39 - + 36 - + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT 38 - - - 62 - + + 4 + - 92 + + COUNT ( * ) / + 39 - + 36 - + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 92 * - 23 + + 57 AS col1
----
-2059

query I rowsort
SELECT DISTINCT 6 - - COALESCE ( 77, + - 96 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT - 99 * NULLIF ( + + 24, + 30 ) * + COUNT( DISTINCT + - 12 )
----
-2376

skipif mysql # not compatible
query I rowsort label-2981
SELECT - 99 * NULLIF ( + + 24, + 30 ) * + COUNT ( DISTINCT + - 12 )
----
-2376

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT MAX( ALL + - 90 ) * 29 * 91 AS col2
----
-237510

skipif mysql # not compatible
query I rowsort label-2983
SELECT MAX ( ALL + - 90 ) * 29 * 91 AS col2
----
-237510

query I rowsort
SELECT - NULLIF ( - 75, - 49 )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2985
SELECT + 88 - - + 46 col2, - COUNT( * ) + + 81 + - - 78 * + 81 AS col2
----
134
6398

skipif mysql # not compatible
query II rowsort label-2985
SELECT + 88 - - + 46 col2, - COUNT ( * ) + + 81 + - - 78 * + 81 AS col2
----
134
6398

query I rowsort
SELECT DISTINCT 27 * + 80 + 32
----
2192

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT - SUM( + + 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-2987
SELECT - SUM ( + + 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT 25 * + 45 * 0 * - COUNT( * ) * 39 + + NULLIF ( + + COUNT( * ), - 65 + - 82 * + COUNT( * ) + + - 59 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2988
SELECT 25 * + 45 * 0 * - COUNT ( * ) * 39 + + NULLIF ( + + COUNT ( * ), - 65 + - 82 * + COUNT ( * ) + + - 59 ) AS col2
----
1

query I rowsort
SELECT - 15 * - 57 AS col1
----
855

query II rowsort
SELECT - - 56 AS col0, + 51 * 97
----
56
4947

query II rowsort
SELECT - + 2 AS col0, - 77 * + + 95 * - 78 col0
----
-2
570570

onlyif mysql # aggregate syntax: 
query II rowsort label-2992
SELECT ALL - MAX( DISTINCT + + 59 ) + - - 11 * + + COUNT( * ) col0, 20
----
-48
20

skipif mysql # not compatible
query II rowsort label-2992
SELECT ALL - MAX ( DISTINCT + + 59 ) + - - 11 * + + COUNT ( * ) col0, 20
----
-48
20

query I rowsort
SELECT - 37 - + + 37 AS col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2994
SELECT 5 DIV 22 + - - 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2994
SELECT 5 / 22 + - - 47 AS col1
----
47

query I rowsort
SELECT ALL 12 + + 48 * 23 AS col0
----
1116

query I rowsort
SELECT DISTINCT + 29 + + + 52 * + 46 * 58
----
138765

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL - COUNT( * ) + + + 3 - 26 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL - COUNT ( * ) + + + 3 - 26 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-2999
SELECT - COUNT( * ) AS col1, 15 * - 91 AS col1
----
-1
-1365

skipif mysql # not compatible
query II rowsort label-2999
SELECT - COUNT ( * ) AS col1, 15 * - 91 AS col1
----
-1
-1365

query I rowsort
SELECT ALL - 96 + - - 59
----
-37

query I rowsort
SELECT DISTINCT 39 * + 90 + + 15 AS col2
----
3525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3002
SELECT COALESCE ( - + 72, 36 * 85 - - + 74 DIV 57 ) * - COUNT( DISTINCT - 40 ) + - 85 * - - 89
----
-7493

skipif mysql # not compatible
query I rowsort label-3002
SELECT COALESCE ( - + 72, 36 * 85 - - + 74 / 57 ) * - COUNT ( DISTINCT - 40 ) + - 85 * - - 89
----
-7493

query I rowsort
SELECT ALL + 58 * 10
----
580

query I rowsort
SELECT 39 - COALESCE ( - 55, - 97 * 86 * - 46, 5 + 80 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT COUNT( * ) * + + CASE 20 WHEN - ( 76 ) THEN - + 20 * - 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT COUNT ( * ) * + + CASE 20 WHEN - ( 76 ) THEN - + 20 * - 1 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT 23 + - NULLIF ( - - COUNT( * ), + + 78 + + 59 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-3006
SELECT 23 + - NULLIF ( - - COUNT ( * ), + + 78 + + 59 ) AS col0
----
22

query I rowsort
SELECT 58 * + 32 * ( - 51 ) * + - 4 * - - 30
----
11358720

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT DISTINCT + 14 DIV + 58 col2
----
0

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT + 14 / + 58 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT DISTINCT - ( - 54 ) - + MAX( DISTINCT - COALESCE ( - - ( 70 ), 17, 48 ) ) + - 63 * + 23 * 15 - + - 68 - + 55 + + + 24 * + 73
----
-19846

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT - ( - 54 ) - + MAX ( DISTINCT - COALESCE ( - - ( 70 ), 17, 48 ) ) + - 63 * + 23 * 15 - + - 68 - + 55 + + + 24 * + 73
----
-19846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3010
SELECT ALL NULLIF ( 11, 43 ) col1, ( - CAST( - + COUNT( * ) AS SIGNED ) ) * - 90 * + 62 + + ( + 89 ) AS col2
----
11
-5491

skipif mysql # not compatible
query II rowsort label-3010
SELECT ALL NULLIF ( 11, 43 ) col1, ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) * - 90 * + 62 + + ( + 89 ) AS col2
----
11
-5491

query I rowsort
SELECT 48 + + + 51 - + + 62
----
37

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT - 96 * 43 * - CASE - 10 WHEN + - 50 THEN + ( + + CAST( NULL AS SIGNED ) ) / + - 26 + SUM( ALL 84 ) / 9 WHEN 41 * - + 43 + - 2 THEN NULL END * + ( 28 ) + + + 35 * - MIN( DISTINCT - 44 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT - 96 * 43 * - CASE - 10 WHEN + - 50 THEN + ( + + CAST ( NULL AS INTEGER ) ) / + - 26 + SUM ( ALL 84 ) / 9 WHEN 41 * - + 43 + - 2 THEN NULL END * + ( 28 ) + + + 35 * - MIN ( DISTINCT - 44 ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 24 * + NULLIF ( - CASE + + ( 54 ) WHEN 97 THEN NULL ELSE + 62 END, - 15 ) col1
----
-1488

query I rowsort
SELECT DISTINCT + + ( - 56 ) * + 46 AS col2
----
-2576

query I rowsort
SELECT + + 32 * - 25 AS col0
----
-800

query II rowsort
SELECT - 86 + + - 58 * 81 AS col1, - 53
----
-4784
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3018
SELECT - CAST( 92 AS SIGNED ) + - COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3018
SELECT - CAST ( 92 AS INTEGER ) + - COUNT ( * ) AS col2
----
-93

query I rowsort
SELECT ALL - 60 * - 2 AS col0
----
120

query I rowsort
SELECT + 13 * - + 25 AS col2
----
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT + - ( - CASE + 18 WHEN - - COUNT( * ) THEN + 8 + + NULLIF ( + 90, 49 ) WHEN + 62 * SUM( - 48 ) THEN + + 4 + - ( + ( - 7 ) ) END ) * 94 + - 24 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT + - ( - CASE + 18 WHEN - - COUNT ( * ) THEN + 8 + + NULLIF ( + 90, 49 ) WHEN + 62 * SUM ( - 48 ) THEN + + 4 + - ( + ( - 7 ) ) END ) * 94 + - 24 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT DISTINCT 61 * + + 85 * COUNT( * ) AS col1
----
5185

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT 61 * + + 85 * COUNT ( * ) AS col1
----
5185

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT + - 5 + - COUNT( 35 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3024
SELECT + - 5 + - COUNT ( 35 ) AS col2
----
-6

query I rowsort
SELECT ALL - 0 + 99 * 31 AS col2
----
3069

onlyif mysql # aggregate syntax: 
query II rowsort label-3026
SELECT ALL + 36 + COUNT( * ), - 75 + - COUNT( * ) AS col1
----
37
-76

skipif mysql # not compatible
query II rowsort label-3026
SELECT ALL + 36 + COUNT ( * ), - 75 + - COUNT ( * ) AS col1
----
37
-76

query I rowsort
SELECT DISTINCT - 67 * 36 AS col1
----
-2412

query I rowsort
SELECT DISTINCT 27 * 89 - 20
----
2383

onlyif mysql # aggregate syntax: 
query II rowsort label-3029
SELECT + 15 * - + COALESCE ( - - ( - - 64 ), - + COUNT( * ), - 99, + + 4 * - 30 * 90 + + 77 * 51 ) - + - ( + - 74 ) AS col1, - 95 + + 70
----
-1034
-25

skipif mysql # not compatible
query II rowsort label-3029
SELECT + 15 * - + COALESCE ( - - ( - - 64 ), - + COUNT ( * ), - 99, + + 4 * - 30 * 90 + + 77 * 51 ) - + - ( + - 74 ) AS col1, - 95 + + 70
----
-1034
-25

query II rowsort
SELECT - NULLIF ( - 56, + - ( + 71 ) ), 95 AS col2
----
56
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT ALL 79 + + + 11 + ( - 91 ) + COUNT( DISTINCT + 57 )
----
0

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL 79 + + + 11 + ( - 91 ) + COUNT ( DISTINCT + 57 )
----
0

query I rowsort
SELECT - CASE - 56 WHEN - 10 * - 64 THEN 9 WHEN + 73 * + 6 THEN - 54 END
----
NULL

query I rowsort
SELECT + 61 * 52 AS col2
----
3172

query II rowsort
SELECT ALL 38 AS col2, + 12
----
38
12

query I rowsort
SELECT ALL + 9 * - + 15 AS col2
----
-135

query II rowsort
SELECT 0 AS col2, 76 * 62 AS col0
----
0
4712

query I rowsort
SELECT ALL + 0 * 10
----
0

query I rowsort
SELECT + 1 - - 69
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT ALL CASE 87 WHEN + 66 THEN NULL WHEN 78 THEN 91 + + 70 * 35 / + COUNT( * ) ELSE 76 END AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL CASE 87 WHEN + 66 THEN NULL WHEN 78 THEN 91 + + 70 * 35 / + COUNT ( * ) ELSE 76 END AS col2
----
76

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT ALL - 65 DIV - + 30 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL - 65 / - + 30 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3042
SELECT NULLIF ( 55, - - 45 + - + 61 ) * + 22 + + CAST( + 3 AS SIGNED ) * - COUNT( * ) * - CASE - 10 WHEN COUNT( * ) THEN NULL ELSE COUNT( * ) * - 25 END * - ( - + 85 ) + NULLIF ( COUNT( * ), - + 87 ) + + 2 * 28 col1
----
-5108

skipif mysql # not compatible
query I rowsort label-3042
SELECT NULLIF ( 55, - - 45 + - + 61 ) * + 22 + + CAST ( + 3 AS INTEGER ) * - COUNT ( * ) * - CASE - 10 WHEN COUNT ( * ) THEN NULL ELSE COUNT ( * ) * - 25 END * - ( - + 85 ) + NULLIF ( COUNT ( * ), - + 87 ) + + 2 * 28 col1
----
-5108

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3043
SELECT CAST( NULL AS DECIMAL ), 31 + - 17 * + 14 AS col1
----
NULL
-207

skipif mysql # not compatible
query II rowsort label-3043
SELECT CAST ( NULL AS REAL ), 31 + - 17 * + 14 AS col1
----
NULL
-207

query II rowsort
SELECT ALL - 67 * + + 20 + - 61 AS col2, - 49 * - 26 AS col0
----
-1401
1274

onlyif mysql # DIV for integer division: 
query I rowsort label-3045
SELECT - 17 DIV - - 1 - 3
----
-20

skipif mysql # not compatible
query I rowsort label-3045
SELECT - 17 / - - 1 - 3
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3046
SELECT - 52 AS col0, CASE 47 WHEN 53 THEN + - 37 ELSE NULL END * COUNT( * ) + - - CASE + - COUNT( * ) WHEN + 14 * + 46 THEN NULL WHEN + ( - CAST( NULL AS SIGNED ) ) THEN + CAST( NULL AS SIGNED ) ELSE + 64 END + - 20
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-3046
SELECT - 52 AS col0, CASE 47 WHEN 53 THEN + - 37 ELSE NULL END * COUNT ( * ) + - - CASE + - COUNT ( * ) WHEN + 14 * + 46 THEN NULL WHEN + ( - CAST ( NULL AS INTEGER ) ) THEN + CAST ( NULL AS INTEGER ) ELSE + 64 END + - 20
----
-52
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3047
SELECT + + 73 col1, 0 - + + 8 DIV + 99 AS col2
----
73
0

skipif mysql # not compatible
query II rowsort label-3047
SELECT + + 73 col1, 0 - + + 8 / + 99 AS col2
----
73
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT - - 70 + - MAX( + 5 ) + ( - 10 )
----
55

skipif mysql # not compatible
query I rowsort label-3048
SELECT - - 70 + - MAX ( + 5 ) + ( - 10 )
----
55

query II rowsort
SELECT + 52 AS col1, 18 AS col0
----
52
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3050
SELECT ALL + COUNT( * ) * + 42 + + 61 + - - 88 + + - 68 + - 64 DIV + COALESCE ( 98, + - 82 DIV + 80 ) col2
----
123

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL + COUNT ( * ) * + 42 + + 61 + - - 88 + + - 68 + - 64 / + COALESCE ( 98, + - 82 / + 80 ) col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT DISTINCT - 78 * - ( 65 ) + + 99 + CASE 95 WHEN - 32 / + - 9 + + 46 * + ( + - 59 ) + - + COUNT( * ) + + 10 + + 9 * COUNT( * ) * + 51 / + COUNT( * ) * 74 THEN + 22 * - ( - - COUNT( * ) ) + + - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT - 78 * - ( 65 ) + + 99 + CASE 95 WHEN - 32 / + - 9 + + 46 * + ( + - 59 ) + - + COUNT ( * ) + + 10 + + 9 * COUNT ( * ) * + 51 / + COUNT ( * ) * 74 THEN + 22 * - ( - - COUNT ( * ) ) + + - 84 END
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 1 ) * - 76 + 70 + 49
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3053
SELECT + CASE - COUNT( DISTINCT 60 ) WHEN + 43 + + 75 THEN + 47 + 82 WHEN - ( + - 90 ) THEN - - CAST( NULL AS SIGNED ) ELSE 32 + + CASE - 40 WHEN - 47 THEN 97 * - CAST( - + COUNT( * ) AS SIGNED ) * + 98 * - 35 END + 80 + + + NULLIF ( AVG ( DISTINCT 97 ), 7 + 86 + - 77 + + MAX( + 20 ) ) * + 17 / - - 48 * + - 19 + + 17 + - COUNT( * ) * + 20 * 69 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT + CASE - COUNT ( DISTINCT 60 ) WHEN + 43 + + 75 THEN + 47 + 82 WHEN - ( + - 90 ) THEN - - CAST ( NULL AS INTEGER ) ELSE 32 + + CASE - 40 WHEN - 47 THEN 97 * - CAST ( - + COUNT ( * ) AS INTEGER ) * + 98 * - 35 END + 80 + + + NULLIF ( AVG ( DISTINCT 97 ), 7 + 86 + - 77 + + MAX ( + 20 ) ) * + 17 / - - 48 * + - 19 + + 17 + - COUNT ( * ) * + 20 * 69 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3054
SELECT ALL - - 3 * - 20 + - NULLIF ( - CAST( NULL AS SIGNED ), - ( - ( - 97 ) ) * + ( - - 30 ) + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL - - 3 * - 20 + - NULLIF ( - CAST ( NULL AS INTEGER ), - ( - ( - 97 ) ) * + ( - - 30 ) + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3055
SELECT ALL - NULLIF ( + 8, + 56 / - COUNT( * ) ) * - 25 * 58 + NULLIF ( COUNT( * ), + + ( + + 0 ) ) + - 76 * 64 * COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL - NULLIF ( + 8, + 56 / - COUNT ( * ) ) * - 25 * 58 + NULLIF ( COUNT ( * ), + + ( + + 0 ) ) + - 76 * 64 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT - 86 - 38 * COUNT( * ) + - + 98 AS col2
----
-222

skipif mysql # not compatible
query I rowsort label-3056
SELECT - 86 - 38 * COUNT ( * ) + - + 98 AS col2
----
-222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3057
SELECT + + SUM( DISTINCT 2 ) * + 86 DIV 14 + 19
----
31

skipif mysql # not compatible
query I rowsort label-3057
SELECT + + SUM ( DISTINCT 2 ) * + 86 / 14 + 19
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3058
SELECT - CASE + ( - + CAST( NULL AS SIGNED ) ) WHEN - + 52 + + ( COUNT( * ) ) THEN NULL WHEN + 45 THEN - 81 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT - CASE + ( - + CAST ( NULL AS INTEGER ) ) WHEN - + 52 + + ( COUNT ( * ) ) THEN NULL WHEN + 45 THEN - 81 ELSE NULL END col0
----
NULL

query II rowsort
SELECT ALL 32 * + 82, 18 * - 14 AS col1
----
2624
-252

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

skipif mysql # not compatible
query I rowsort label-3060
SELECT + COUNT ( * ) - + 7 + - 90 AS col2
----
-96

query I rowsort
SELECT ALL - 14 * + + 18 AS col1
----
-252

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

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

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

skipif mysql # not compatible
query I rowsort label-3063
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * ( 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT 38 + - CASE + COUNT( * ) WHEN - + 13 THEN - 43 ELSE + 6 + 72 * - - 84 + + AVG ( + 66 ) + - 62 - - + 37 + - + 64 - - 16 + COUNT( * ) * + COALESCE ( - - 18, + 51 * - 5 ) / - CASE + 53 WHEN CASE - 97 WHEN - 14 * + 9 THEN 1 END * 43 + - + ( + NULLIF ( 40, - + 32 * - 83 + - 89 ) ) THEN NULL WHEN - 43 THEN 17 END - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT 38 + - CASE + COUNT ( * ) WHEN - + 13 THEN - 43 ELSE + 6 + 72 * - - 84 + + AVG ( + 66 ) + - 62 - - + 37 + - + 64 - - 16 + COUNT ( * ) * + COALESCE ( - - 18, + 51 * - 5 ) / - CASE + 53 WHEN CASE - 97 WHEN - 14 * + 9 THEN 1 END * 43 + - + ( + NULLIF ( 40, - + 32 * - 83 + - 89 ) ) THEN NULL WHEN - 43 THEN 17 END - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3065
SELECT 48 + - COALESCE ( 84, SUM( CAST( 74 AS SIGNED ) ), - 23 * + COALESCE ( 91, + COUNT( * ) ) * - + 71 + 20 ) * - 23 + 92 AS col2
----
2072

skipif mysql # not compatible
query I rowsort label-3065
SELECT 48 + - COALESCE ( 84, SUM ( CAST ( 74 AS INTEGER ) ), - 23 * + COALESCE ( 91, + COUNT ( * ) ) * - + 71 + 20 ) * - 23 + 92 AS col2
----
2072

query I rowsort
SELECT 54 * + 50 * - 78 * + ( - + 10 )
----
2106000

query II rowsort
SELECT 73 + 10, 29 AS col1
----
83
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT ( 37 ) + - - 43 + COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3068
SELECT ( 37 ) + - - 43 + COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL + ( 63 ) + + SUM( + 89 )
----
152

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL + ( 63 ) + + SUM ( + 89 )
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-3070
SELECT ALL 75 + - MAX( - ( 96 ) ) AS col1, + MIN( ALL + 52 ) AS col0
----
171
52

skipif mysql # not compatible
query II rowsort label-3070
SELECT ALL 75 + - MAX ( - ( 96 ) ) AS col1, + MIN ( ALL + 52 ) AS col0
----
171
52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3072
SELECT MIN( CAST( NULL AS SIGNED ) ) * + 82 + + NULLIF ( - CAST( + 8 AS SIGNED ), - + 54 * - ( + 14 ) ) + MIN( DISTINCT + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT MIN ( CAST ( NULL AS INTEGER ) ) * + 82 + + NULLIF ( - CAST ( + 8 AS INTEGER ), - + 54 * - ( + 14 ) ) + MIN ( DISTINCT + 54 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT + - CASE + - 93 WHEN - CAST( + 61 AS SIGNED ) - - - 62 THEN NULL WHEN 77 THEN NULL ELSE + 8 + - 38 * + + 4 END AS col1
----
144

skipif mysql # not compatible
query I rowsort label-3073
SELECT + - CASE + - 93 WHEN - CAST ( + 61 AS INTEGER ) - - - 62 THEN NULL WHEN 77 THEN NULL ELSE + 8 + - 38 * + + 4 END AS col1
----
144

query I rowsort
SELECT DISTINCT 60 * 23 - - ( + 51 ) AS col1
----
1431

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ALL + MAX( DISTINCT - 9 ) + + 91 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL + MAX ( DISTINCT - 9 ) + + 91 AS col1
----
82

query I rowsort
SELECT 41 + - ( 17 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT - COUNT( * ) * ( 90 ) + COUNT( * ) + 22
----
-67

skipif mysql # not compatible
query I rowsort label-3077
SELECT - COUNT ( * ) * ( 90 ) + COUNT ( * ) + 22
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT + 84 + - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3078
SELECT + 84 + - COUNT ( * ) AS col0
----
83

query I rowsort
SELECT - 24 * 3 - - 66
----
-6

query I rowsort
SELECT ALL - + 53 * 28 * 95 AS col0
----
-140980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT - COALESCE ( - ( 65 ), - + ( 51 ) + 85 ) * - CAST( + COUNT( * ) AS SIGNED ) + + - MIN( DISTINCT - 93 ) * + 32
----
2911

skipif mysql # not compatible
query I rowsort label-3081
SELECT - COALESCE ( - ( 65 ), - + ( 51 ) + 85 ) * - CAST ( + COUNT ( * ) AS INTEGER ) + + - MIN ( DISTINCT - 93 ) * + 32
----
2911

query II rowsort
SELECT DISTINCT - 26 * 49 * - 93 - - 46 col1, 65 AS col0
----
118528
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT DISTINCT - 15 - + + COUNT( * ) + + CAST( NULL AS SIGNED ) / + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT - 15 - + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) / + - 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL - SUM( 91 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL - SUM ( 91 ) AS col0
----
-91

query I rowsort
SELECT ALL 26 - + + 85 AS col2
----
-59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT 64 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-3087
SELECT 64 / - 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT 48 * - + MIN( ALL + 63 ) AS col0
----
-3024

skipif mysql # not compatible
query I rowsort label-3088
SELECT 48 * - + MIN ( ALL + 63 ) AS col0
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT SUM( + + 7 ) + 66 + - - 70 * + NULLIF ( + 8, - - 36 ) + + + 51 * ( 43 ) AS col2
----
2826

skipif mysql # not compatible
query I rowsort label-3089
SELECT SUM ( + + 7 ) + 66 + - - 70 * + NULLIF ( + 8, - - 36 ) + + + 51 * ( 43 ) AS col2
----
2826

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3090
SELECT 54 DIV - + MIN( DISTINCT + 91 ), + CASE 99 WHEN - 59 * COUNT( * ) + + 80 + + 36 THEN 21 ELSE - + COUNT( * ) END + 96 AS col1
----
0
95

skipif mysql # not compatible
query II rowsort label-3090
SELECT 54 / - + MIN ( DISTINCT + 91 ), + CASE 99 WHEN - 59 * COUNT ( * ) + + 80 + + 36 THEN 21 ELSE - + COUNT ( * ) END + 96 AS col1
----
0
95

query I rowsort
SELECT DISTINCT 83 * - 83 * - 79 AS col1
----
544231

query I rowsort
SELECT ALL 18 + ( 60 ) - + 4
----
74

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

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

query I rowsort
SELECT ALL 82 + + CASE + 3 WHEN + - 43 + + 62 * + 48 THEN + 93 / 99 * + 88 + + - 58 END + 27 / - 4 AS col0
----
NULL

query I rowsort
SELECT 63 - + 41 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT DISTINCT COUNT( * ) + + 19 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT COUNT ( * ) + + 19 AS col2
----
20

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

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

query I rowsort
SELECT ALL + 37 * 68 + + 57
----
2573

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL - 53 * 6 + + COUNT( * )
----
-317

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL - 53 * 6 + + COUNT ( * )
----
-317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT 3 * + 93 + + 0 * - NULLIF ( CAST( NULL AS SIGNED ), 56 - 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT 3 * + 93 + + 0 * - NULLIF ( CAST ( NULL AS INTEGER ), 56 - 39 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ( COUNT( * ) ) - 92
----
-91

skipif mysql # not compatible
query I rowsort label-3101
SELECT ( COUNT ( * ) ) - 92
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3102
SELECT - 70 DIV 18 + - 83 * 57 col1
----
-4734

skipif mysql # not compatible
query I rowsort label-3102
SELECT - 70 / 18 + - 83 * 57 col1
----
-4734

query I rowsort
SELECT ALL 82 * - 76 + 36
----
-6196

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT MIN( + 52 ) col0
----
52

skipif mysql # not compatible
query I rowsort label-3106
SELECT MIN ( + 52 ) col0
----
52

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

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

query I rowsort
SELECT DISTINCT 68 * + 74 col0
----
5032

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

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

query I rowsort
SELECT - CASE 10 WHEN 34 THEN 84 WHEN 61 THEN NULL ELSE NULL END * + 99 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT DISTINCT + 69 DIV 23
----
3

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT + 69 / 23
----
3

query I rowsort
SELECT + NULLIF ( + 3, - 98 * + ( 32 ) ) AS col2
----
3

query I rowsort
SELECT DISTINCT - 96 * + 53 AS col2
----
-5088

query I rowsort
SELECT - 31 * - 25
----
775

query I rowsort
SELECT ALL - 79 + 34 col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT ALL + 51 + + 32 * CAST( ( 78 ) AS SIGNED )
----
2547

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL + 51 + + 32 * CAST ( ( 78 ) AS INTEGER )
----
2547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT - CAST( NULL AS SIGNED ) - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3117
SELECT - CAST ( NULL AS INTEGER ) - 9 AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 52, 99 + - AVG ( ALL + 31 ) ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL + 79 + - COUNT( * ) * 88 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL + 79 + - COUNT ( * ) * 88 AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3120
SELECT - 88 + MIN( + 73 - 90 ) DIV 28 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3120
SELECT - 88 + MIN ( + 73 - 90 ) / 28 AS col1
----
-88

query I rowsort
SELECT ALL NULLIF ( + 33, + 68 - 80 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT - CASE + 48 WHEN 16 * 30 THEN 67 + - 74 WHEN + MIN( DISTINCT + 78 ) THEN 47 WHEN 74 * - 33 THEN NULL END + - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT - CASE + 48 WHEN 16 * 30 THEN 67 + - 74 WHEN + MIN ( DISTINCT + 78 ) THEN 47 WHEN 74 * - 33 THEN NULL END + - 39 AS col2
----
NULL

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

query I rowsort
SELECT - 41 + + 1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT + 10 - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-3125
SELECT + 10 - COUNT ( * )
----
9

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

query I rowsort
SELECT ALL 94 + 48 AS col1
----
142

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

skipif mysql # not compatible
query I rowsort label-3128
SELECT - - COUNT ( * ) * + 78 AS col2
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT MIN( DISTINCT + ( + 77 ) )
----
77

skipif mysql # not compatible
query I rowsort label-3130
SELECT MIN ( DISTINCT + ( + 77 ) )
----
77

query I rowsort
SELECT ALL + 52 * + 23
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT + - COUNT( ALL 56 ) + - 9
----
-10

skipif mysql # not compatible
query I rowsort label-3132
SELECT + - COUNT ( ALL 56 ) + - 9
----
-10

query I rowsort
SELECT - - 78 * + 8 col2
----
624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3134
SELECT + SUM( ALL 36 ) * ( + 57 DIV - 24 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-3134
SELECT + SUM ( ALL 36 ) * ( + 57 / - 24 ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - COALESCE ( - 77, + 7 ) + 2 * - MAX( DISTINCT NULLIF ( 27, 93 ) - - 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3135
SELECT - COALESCE ( - 77, + 7 ) + 2 * - MAX ( DISTINCT NULLIF ( 27, 93 ) - - 11 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT + 95 * + COUNT( * ) + - 70 * + 7
----
-395

skipif mysql # not compatible
query I rowsort label-3136
SELECT + 95 * + COUNT ( * ) + - 70 * + 7
----
-395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3137
SELECT - 53 DIV - COUNT( * ) - 31 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3137
SELECT - 53 / - COUNT ( * ) - 31 AS col2
----
22

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3139
SELECT + - 45 + 80 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT + - 45 + 80 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL + + ( - MIN( DISTINCT - 49 ) )
----
49

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + + ( - MIN ( DISTINCT - 49 ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT + 2 + CASE ( 1 ) WHEN 94 * 91 + COUNT( * ) THEN - 6 + SUM( DISTINCT 80 ) WHEN + 70 * + 32 + + 76 THEN NULL END + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT + 2 + CASE ( 1 ) WHEN 94 * 91 + COUNT ( * ) THEN - 6 + SUM ( DISTINCT 80 ) WHEN + 70 * + 32 + + 76 THEN NULL END + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT + CASE - + 57 WHEN + 15 THEN ( - 57 ) * + 15 + COUNT( * ) * CAST( NULL AS SIGNED ) END * ( + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT + CASE - + 57 WHEN + 15 THEN ( - 57 ) * + 15 + COUNT ( * ) * CAST ( NULL AS INTEGER ) END * ( + 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT NULLIF ( + ( - 77 ), - COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-3144
SELECT NULLIF ( + ( - 77 ), - COUNT ( * ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3145
SELECT 83 * 86 * ( 42 ) + CAST( NULL AS DECIMAL ) * ( MAX( DISTINCT 27 ) / + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT 83 * 86 * ( 42 ) + CAST ( NULL AS REAL ) * ( MAX ( DISTINCT 27 ) / + 75 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - 61 + CASE - CASE 81 WHEN 6 * COUNT( DISTINCT 93 ) THEN 91 * 73 END WHEN COUNT( * ) THEN NULLIF ( 5, - 78 + COUNT( * ) ) * COUNT( * ) ELSE NULL END + - 94 * + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT - 61 + CASE - CASE 81 WHEN 6 * COUNT ( DISTINCT 93 ) THEN 91 * 73 END WHEN COUNT ( * ) THEN NULLIF ( 5, - 78 + COUNT ( * ) ) * COUNT ( * ) ELSE NULL END + - 94 * + 39 AS col0
----
NULL

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

query I rowsort
SELECT + 82 * 94 * 30 + - 55
----
231185

query I rowsort
SELECT ALL 64 * - 92 + + 6 col2
----
-5882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3150
SELECT DISTINCT COALESCE ( - - ( - 95 ), + 60 * - 1 ) * + MAX( ALL + COALESCE ( 13, - ( + 68 ), + 58 * CASE 50 * - 43 WHEN + 88 THEN + ( + 8 ) ELSE + 86 END ) - 11 ) + - 49 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT COALESCE ( - - ( - 95 ), + 60 * - 1 ) * + MAX ( ALL + COALESCE ( 13, - ( + 68 ), + 58 * CASE 50 * - 43 WHEN + 88 THEN + ( + 8 ) ELSE + 86 END ) - 11 ) + - 49 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( + + 40, 3 + 99 * 65 )
----
40

query I rowsort
SELECT ALL 82 * 47 + - 23 * 96 col2
----
1646

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3153
SELECT - CAST( NULL AS DECIMAL ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3153
SELECT - CAST ( NULL AS REAL ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 7 * + 46 + 24
----
346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT + NULLIF ( - + 66, + 64 * - 19 ) * ( CASE 87 WHEN - 86 THEN 28 END + CAST( + 4 + + 57 AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT + NULLIF ( - + 66, + 64 * - 19 ) * ( CASE 87 WHEN - 86 THEN 28 END + CAST ( + 4 + + 57 AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3156
SELECT ALL - 20 DIV ( + 91 )
----
0

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - 20 / ( + 91 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT + 65 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-3157
SELECT + 65 / - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT 48 * MAX( DISTINCT 23 ) + 87
----
1191

skipif mysql # not compatible
query I rowsort label-3158
SELECT 48 * MAX ( DISTINCT 23 ) + 87
----
1191

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

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

query I rowsort
SELECT - 47 + + 75 * - ( - 77 + - 79 ) AS col2
----
11653

query I rowsort
SELECT ALL + 48 + - 10 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT ALL MAX( DISTINCT + 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL MAX ( DISTINCT + 10 ) AS col1
----
10

query I rowsort
SELECT DISTINCT + + 64 * + 94 AS col1
----
6016

query I rowsort
SELECT - CASE - 68 WHEN 55 * - 73 THEN + 63 ELSE NULL END + + 37 * 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT DISTINCT + + 89 - + 55 * COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT + + 89 - + 55 * COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT - 27 - - + 4 + + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-3166
SELECT - 27 - - + 4 + + COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT - + CASE 80 WHEN 12 * + ( MIN( - 89 ) ) THEN 83 WHEN + 88 THEN MIN( DISTINCT 29 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT - + CASE 80 WHEN 12 * + ( MIN ( - 89 ) ) THEN 83 WHEN + 88 THEN MIN ( DISTINCT 29 ) END
----
NULL

query I rowsort
SELECT - 41 - - 62 + 20 * 53
----
1081

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT DISTINCT - + 80 DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT - + 80 / + 85 AS col2
----
0

query I rowsort
SELECT ALL 30 * + 25 + 97
----
847

query I rowsort
SELECT DISTINCT - + ( - 81 ) * - 34 AS col0
----
-2754

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT 36 + + CAST( 36 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-3174
SELECT 36 + + CAST ( 36 AS INTEGER )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT 38 * - - 36 * COUNT( * ) * 98 AS col2
----
134064

skipif mysql # not compatible
query I rowsort label-3175
SELECT 38 * - - 36 * COUNT ( * ) * 98 AS col2
----
134064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT ( - CAST( - 41 AS SIGNED ) ) * - 95 + + 43 AS col2
----
-3852

skipif mysql # not compatible
query I rowsort label-3176
SELECT ( - CAST ( - 41 AS INTEGER ) ) * - 95 + + 43 AS col2
----
-3852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3177
SELECT COUNT( * ) * + + NULLIF ( MAX( ALL + 24 ), ( + CAST( NULL AS SIGNED ) ) )
----
24

skipif mysql # not compatible
query I rowsort label-3177
SELECT COUNT ( * ) * + + NULLIF ( MAX ( ALL + 24 ), ( + CAST ( NULL AS INTEGER ) ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT + 79 * COUNT( DISTINCT - 20 ) + - 65 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3178
SELECT + 79 * COUNT ( DISTINCT - 20 ) + - 65 AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3179
SELECT ALL 67 + CAST( NULL AS SIGNED ) / NULLIF ( + MIN( 12 ), + 45 ) * ( 25 + + 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL 67 + CAST ( NULL AS INTEGER ) / NULLIF ( + MIN ( 12 ), + 45 ) * ( 25 + + 6 ) AS col0
----
NULL

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

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

query I rowsort
SELECT CASE - 5 WHEN - 62 - 49 THEN NULL WHEN + 11 + - 19 THEN 55 + + 60 END * 89
----
NULL

query I rowsort
SELECT ALL + 79 + + + 34 + + 88
----
201

query I rowsort
SELECT 54 - + 28 - + NULLIF ( + 77, + 86 - 41 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT CAST( - 12 AS SIGNED ) * + - 66 + - ( - 27 ) AS col2
----
819

skipif mysql # not compatible
query I rowsort label-3184
SELECT CAST ( - 12 AS INTEGER ) * + - 66 + - ( - 27 ) AS col2
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT + COUNT( DISTINCT + - 71 ) * - ( - 90 ) * - 5 + CASE - COALESCE ( 47, ( - COUNT( * ) ) / + 1 ) - 36 WHEN - 70 THEN 30 + - 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT + COUNT ( DISTINCT + - 71 ) * - ( - 90 ) * - 5 + CASE - COALESCE ( 47, ( - COUNT ( * ) ) / + 1 ) - 36 WHEN - 70 THEN 30 + - 61 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3186
SELECT 18 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT 18 / + 91
----
0

query I rowsort
SELECT ALL 53 - + 57 + - 36
----
-40

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3189
SELECT ALL 65 * 3 / + CASE 77 WHEN - 86 THEN NULL WHEN - 66 THEN + 23 * + 30 WHEN + CAST( NULL AS SIGNED ) THEN - AVG ( + 77 ) WHEN - ( + 33 ) THEN - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL 65 * 3 / + CASE 77 WHEN - 86 THEN NULL WHEN - 66 THEN + 23 * + 30 WHEN + CAST ( NULL AS INTEGER ) THEN - AVG ( + 77 ) WHEN - ( + 33 ) THEN - COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3190
SELECT ALL 66 AS col1, ( SUM( - 0 ) ) + + 90
----
66
90

skipif mysql # not compatible
query II rowsort label-3190
SELECT ALL 66 AS col1, ( SUM ( - 0 ) ) + + 90
----
66
90

query II rowsort
SELECT ALL 17 AS col0, 76
----
17
76

query I rowsort
SELECT - 45 - + 11 + - 70 + 1
----
-125

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3193
SELECT ALL ( + + 21 ) - + + CAST( 70 AS SIGNED ) DIV - 27 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL ( + + 21 ) - + + CAST ( 70 AS INTEGER ) / - 27 AS col1
----
23

query I rowsort
SELECT 62 * - + 24 * - + 34 * 63 col1
----
3187296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3195
SELECT CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) + MIN( DISTINCT + 98 )
----
NULL
99

skipif mysql # not compatible
query II rowsort label-3195
SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) + MIN ( DISTINCT + 98 )
----
NULL
99

query I rowsort
SELECT 64 * - 39 * 14 * + 45 + 96
----
-1572384

query I rowsort
SELECT + 12 + 45 * - 79
----
-3543

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT COUNT( * ) * 77 + - 80
----
-3

skipif mysql # not compatible
query I rowsort label-3198
SELECT COUNT ( * ) * 77 + - 80
----
-3

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

skipif mysql # not compatible
query I rowsort label-3199
SELECT + CAST ( NULL AS REAL ) * - 42
----
NULL

query I rowsort
SELECT 3 + 87
----
90

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT - 98 * - + COUNT( * ) * + 89 AS col1
----
8722

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT - 98 * - + COUNT ( * ) * + 89 AS col1
----
8722

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

skipif mysql # not compatible
query I rowsort label-3204
SELECT - MIN ( ALL 46 )
----
-46

query I rowsort
SELECT NULLIF ( - 62, + + 53 ) col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT 3 * + - 28 * - MIN( + 52 )
----
4368

skipif mysql # not compatible
query I rowsort label-3206
SELECT 3 * + - 28 * - MIN ( + 52 )
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT + MIN( - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-3207
SELECT + MIN ( - 73 )
----
-73

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

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

query I rowsort
SELECT DISTINCT + 57 + - + 80 + + 27 AS col2
----
4

query II rowsort
SELECT ALL - 20 * 35, 64 - 43 AS col0
----
-700
21

query II rowsort
SELECT 73 + 2 col2, 29 col1
----
75
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL - 47 + COALESCE ( - CASE - 92 WHEN + ( + 42 ) * - NULLIF ( 76 * 24 + 27, 20 ) + COALESCE ( + 5, 64 * 50 ) THEN + 12 WHEN ( MAX( ALL + 28 ) ) + + 38 THEN + 55 END, - COALESCE ( - COUNT( * ), + 91 * - 42, 61 + 1 ) * + 4 ) * + 57
----
181

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL - 47 + COALESCE ( - CASE - 92 WHEN + ( + 42 ) * - NULLIF ( 76 * 24 + 27, 20 ) + COALESCE ( + 5, 64 * 50 ) THEN + 12 WHEN ( MAX ( ALL + 28 ) ) + + 38 THEN + 55 END, - COALESCE ( - COUNT ( * ), + 91 * - 42, 61 + 1 ) * + 4 ) * + 57
----
181

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3214
SELECT + 49 * 58 + + COUNT( * ) * + - CAST( + 75 AS SIGNED )
----
2767

skipif mysql # not compatible
query I rowsort label-3214
SELECT + 49 * 58 + + COUNT ( * ) * + - CAST ( + 75 AS INTEGER )
----
2767

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT + 74 * - 52 + - 85 + + + 99 + 79 DIV + 15
----
-3829

skipif mysql # not compatible
query I rowsort label-3215
SELECT + 74 * - 52 + - 85 + + + 99 + 79 / + 15
----
-3829

query I rowsort
SELECT 57 * + + NULLIF ( + + 49, + 38 * - NULLIF ( + 44, - 88 * 30 ) + 34 * + 30 ) AS col1
----
2793

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT 63 + + 66 DIV - 42
----
62

skipif mysql # not compatible
query I rowsort label-3217
SELECT 63 + + 66 / - 42
----
62

query I rowsort
SELECT 73 + + 88 AS col1
----
161

query I rowsort
SELECT ( + 2 ) - - 75
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT ALL + COUNT( * ) - SUM( DISTINCT + 52 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL + COUNT ( * ) - SUM ( DISTINCT + 52 ) AS col2
----
-51

query II rowsort
SELECT ALL - 57 * - 89 AS col0, 80
----
5073
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT DISTINCT - COALESCE ( + 60, - - SUM( ALL + 64 ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - COALESCE ( + 60, - - SUM ( ALL + 64 ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT COUNT( * ) + - ( - 97 )
----
98

skipif mysql # not compatible
query I rowsort label-3223
SELECT COUNT ( * ) + - ( - 97 )
----
98

query I rowsort
SELECT 17 + 19 + + - 88 * + 72 * + 13
----
-82332

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT + 82 * - + MIN( - 8 ) - - + 57
----
713

skipif mysql # not compatible
query I rowsort label-3225
SELECT + 82 * - + MIN ( - 8 ) - - + 57
----
713

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

query I rowsort
SELECT 69 + - + 23 + + - 82 AS col0
----
-36

query I rowsort
SELECT ALL 49 * 82 + 34 AS col2
----
4052

query I rowsort
SELECT ALL 6 * + 72 * + + ( - 28 )
----
-12096

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT + + NULLIF ( 46, - COUNT( DISTINCT + ( + 29 ) ) + 20 ) + COUNT( DISTINCT + 19 - 99 ) * + 44
----
90

skipif mysql # not compatible
query I rowsort label-3230
SELECT + + NULLIF ( 46, - COUNT ( DISTINCT + ( + 29 ) ) + 20 ) + COUNT ( DISTINCT + 19 - 99 ) * + 44
----
90

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

query I rowsort
SELECT - - NULLIF ( + 54, 71 )
----
54

query I rowsort
SELECT ALL + 78 + + 11
----
89

query I rowsort
SELECT + - 14 - + 18 * + 97 * + 2
----
-3506

query I rowsort
SELECT + 35 * + + 74 - + 73 col0
----
2517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3236
SELECT - COUNT( * ) + 31 * - CAST( NULL AS SIGNED ) * - COUNT( * ) + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3236
SELECT - COUNT ( * ) + 31 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 56
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3237
SELECT NULLIF ( + - CAST( NULL AS DECIMAL ), + - 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT NULLIF ( + - CAST ( NULL AS REAL ), + - 43 )
----
NULL

query I rowsort
SELECT ALL 52 * + 51 * + + 8 + + 52 col0
----
21268

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT COUNT( * ) * + CASE - 29 WHEN + COUNT( * ) THEN 9 * 34 - - 13 END + - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT COUNT ( * ) * + CASE - 29 WHEN + COUNT ( * ) THEN 9 * 34 - - 13 END + - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT DISTINCT 27 * 28 + + + COUNT( * ) * - - 19 * COUNT( * )
----
775

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT 27 * 28 + + + COUNT ( * ) * - - 19 * COUNT ( * )
----
775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3241
SELECT - 84 - + + 24 * - COUNT( * ) + + 64 - + 55 * MIN( - 12 ) DIV + COUNT( - 46 )
----
664

skipif mysql # not compatible
query I rowsort label-3241
SELECT - 84 - + + 24 * - COUNT ( * ) + + 64 - + 55 * MIN ( - 12 ) / + COUNT ( - 46 )
----
664

query I rowsort
SELECT ALL 90 * + + NULLIF ( + 11, 18 ) * + 56
----
55440

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

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

query I rowsort
SELECT COALESCE ( - - 55, + 17 + 67 + - 82 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3245
SELECT - 54 * + CASE + - SUM( ALL 34 ) WHEN - - 50 + COUNT( * ) THEN - 10 * MIN( ALL - 1 ) WHEN + 58 THEN COUNT( * ) DIV - 32 ELSE + COUNT( * ) END
----
-54

skipif mysql # not compatible
query I rowsort label-3245
SELECT - 54 * + CASE + - SUM ( ALL 34 ) WHEN - - 50 + COUNT ( * ) THEN - 10 * MIN ( ALL - 1 ) WHEN + 58 THEN COUNT ( * ) / - 32 ELSE + COUNT ( * ) END
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT 52 * + COUNT( * ) + + 97 * + COUNT( * )
----
149

skipif mysql # not compatible
query I rowsort label-3246
SELECT 52 * + COUNT ( * ) + + 97 * + COUNT ( * )
----
149

query I rowsort
SELECT COALESCE ( 13, + + 27 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3248
SELECT DISTINCT 1 * - - ( - + 80 ) - + COUNT( DISTINCT + CAST( 2 AS SIGNED ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT 1 * - - ( - + 80 ) - + COUNT ( DISTINCT + CAST ( 2 AS INTEGER ) ) AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3249
SELECT - COALESCE ( + COUNT( * ), + 84 * - 10 - + - ( + 43 ) * 48 + 86 ) * NULLIF ( COUNT( * ) * CASE WHEN NOT ( 94 ) IS NULL THEN CAST( ( + 16 ) AS SIGNED ) * 42 ELSE 2 * MAX( DISTINCT + 24 ) END + - 68 * - COALESCE ( 18 * 29 + + 98 * + 99, + 99 ), - 90 * MAX( DISTINCT 48 * + CAST( + 48 AS DECIMAL ) ) - + 83 )
----
-695904

skipif mysql # not compatible
query I rowsort label-3249
SELECT - COALESCE ( + COUNT ( * ), + 84 * - 10 - + - ( + 43 ) * 48 + 86 ) * NULLIF ( COUNT ( * ) * CASE WHEN NOT ( 94 ) IS NULL THEN CAST ( ( + 16 ) AS INTEGER ) * 42 ELSE 2 * MAX ( DISTINCT + 24 ) END + - 68 * - COALESCE ( 18 * 29 + + 98 * + 99, + 99 ), - 90 * MAX ( DISTINCT 48 * + CAST ( + 48 AS REAL ) ) - + 83 )
----
-695904

query I rowsort
SELECT ALL + 89 * - 9 AS col2
----
-801

query II rowsort
SELECT + 2, 28 * 40 AS col2
----
2
1120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3252
SELECT ALL + MIN( 52 ) / - - CAST( NULL AS DECIMAL ) + - 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + MIN ( 52 ) / - - CAST ( NULL AS REAL ) + - 76 AS col1
----
NULL

query I rowsort
SELECT - 88 * 18
----
-1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT - COALESCE ( - 55, - 40, + CAST( NULL AS SIGNED ) ) - + 19 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3254
SELECT - COALESCE ( - 55, - 40, + CAST ( NULL AS INTEGER ) ) - + 19 AS col0
----
36

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

skipif mysql # not compatible
query I rowsort label-3255
SELECT - 6 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3256
SELECT COUNT( * ) * + 14 + - + COUNT( * ) - + NULLIF ( - CAST( - 74 AS SIGNED ), - COALESCE ( + 63, 11 ) ) - 67 * - 39 + + 51 * + 39 AS col1
----
4541

skipif mysql # not compatible
query I rowsort label-3256
SELECT COUNT ( * ) * + 14 + - + COUNT ( * ) - + NULLIF ( - CAST ( - 74 AS INTEGER ), - COALESCE ( + 63, 11 ) ) - 67 * - 39 + + 51 * + 39 AS col1
----
4541

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT NULLIF ( + SUM( - 44 ), - 37 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-3257
SELECT NULLIF ( + SUM ( - 44 ), - 37 ) AS col0
----
-44

query I rowsort
SELECT - + 27 * + - 41 + + 75 * + 39
----
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3259
SELECT - - 28 / 12 + 63 * + + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) * + CASE + 84 WHEN 45 * ( CASE 96 WHEN - 32 THEN CASE COALESCE ( + 57, + 49 + 11 ) WHEN ( + 39 ) THEN - 62 / + CAST( NULL AS SIGNED ) END WHEN CAST( NULL AS SIGNED ) THEN ( + 47 ) + 7 * 97 WHEN + 36 THEN - 1 END ) THEN + 83 * + 30 ELSE CASE - NULLIF ( + ( MAX( 59 ) ), + 97 + 37 * + 86 ) WHEN 96 THEN 38 WHEN 0 THEN NULL ELSE + ( - 41 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT - - 28 / 12 + 63 * + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) * + CASE + 84 WHEN 45 * ( CASE 96 WHEN - 32 THEN CASE COALESCE ( + 57, + 49 + 11 ) WHEN ( + 39 ) THEN - 62 / + CAST ( NULL AS INTEGER ) END WHEN CAST ( NULL AS INTEGER ) THEN ( + 47 ) + 7 * 97 WHEN + 36 THEN - 1 END ) THEN + 83 * + 30 ELSE CASE - NULLIF ( + ( MAX ( 59 ) ), + 97 + 37 * + 86 ) WHEN 96 THEN 38 WHEN 0 THEN NULL ELSE + ( - 41 ) END END
----
NULL

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

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

query I rowsort
SELECT - - 78 - + + 40 col1
----
38

query I rowsort
SELECT - + 4 - - - 27
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL CASE 43 WHEN - COUNT( * ) THEN NULL WHEN - 19 THEN 82 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL CASE 43 WHEN - COUNT ( * ) THEN NULL WHEN - 19 THEN 82 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3264
SELECT + CAST( - COUNT( * ) AS SIGNED ) * - NULLIF ( - 13, 35 )
----
-13

skipif mysql # not compatible
query I rowsort label-3264
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * - NULLIF ( - 13, 35 )
----
-13

query I rowsort
SELECT DISTINCT - - 10 + - - 10
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL + COUNT( * ) + - 62 * + + 96
----
-5951

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL + COUNT ( * ) + - 62 * + + 96
----
-5951

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT - COUNT( * ) + CASE - - 9 WHEN + 60 THEN NULL ELSE + 5 + 13 END
----
17

skipif mysql # not compatible
query I rowsort label-3267
SELECT - COUNT ( * ) + CASE - - 9 WHEN + 60 THEN NULL ELSE + 5 + 13 END
----
17

query I rowsort
SELECT + 93 - + 13 * - 83
----
1172

query I rowsort
SELECT ALL + + 68 + + 0 AS col1
----
68

query I rowsort
SELECT - COALESCE ( + 16, - CASE + 63 WHEN - + 9 / 16 THEN - 65 * - 76 END * 65, - 11 * 81, + 22 * - 12 ) AS col0
----
-16

query I rowsort
SELECT + + 2 + + 20 + - 82 * + 44 AS col0
----
-3586

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL MIN( DISTINCT + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL MIN ( DISTINCT + 31 ) AS col2
----
31

query I rowsort
SELECT - ( COALESCE ( ( + 39 ), + - 3 ) ) AS col2
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3274
SELECT - CAST( NULL AS DECIMAL ) AS col1, - 2 + + 24
----
NULL
22

skipif mysql # not compatible
query II rowsort label-3274
SELECT - CAST ( NULL AS REAL ) AS col1, - 2 + + 24
----
NULL
22

query II rowsort
SELECT + 90 + 84, - 47 col1
----
174
-47

query I rowsort
SELECT + 54 * + 71
----
3834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3277
SELECT + COUNT( * ) * + - CASE + 81 WHEN - + 7 THEN - 52 + + 58 + + 78 ELSE + 29 END + 11 * ( 32 + CAST( 65 AS SIGNED ) DIV - 17 )
----
290

skipif mysql # not compatible
query I rowsort label-3277
SELECT + COUNT ( * ) * + - CASE + 81 WHEN - + 7 THEN - 52 + + 58 + + 78 ELSE + 29 END + 11 * ( 32 + CAST ( 65 AS INTEGER ) / - 17 )
----
290

query I rowsort
SELECT 66 * - ( - 11 ) + + 32 AS col0
----
758

onlyif mysql # DIV for integer division: 
query I rowsort label-3279
SELECT DISTINCT 7 DIV 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT 7 / 93 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3280
SELECT ALL + CASE + 98 WHEN - 90 * - 89 + 22 + CAST( NULL AS SIGNED ) THEN NULL WHEN 92 * 48 THEN - AVG ( - 18 ) / CASE 21 WHEN ( + 17 ) / 77 - ( 10 + + 22 * - 87 ) THEN 98 END + 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + CASE + 98 WHEN - 90 * - 89 + 22 + CAST ( NULL AS INTEGER ) THEN NULL WHEN 92 * 48 THEN - AVG ( - 18 ) / CASE 21 WHEN ( + 17 ) / 77 - ( 10 + + 22 * - 87 ) THEN 98 END + 9 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT + 12 + - 74 * COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-3281
SELECT + 12 + - 74 * COUNT ( * ) AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT DISTINCT 35 * - CAST( - 20 AS SIGNED ) AS col0
----
700

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT 35 * - CAST ( - 20 AS INTEGER ) AS col0
----
700

query I rowsort
SELECT 21 * + 60 + 51 * 64 col2
----
4524

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT - 65 * + COUNT( * ) AS col2, 4 * + + 9 + - 15 - - + 1
----
-65
22

skipif mysql # not compatible
query II rowsort label-3284
SELECT - 65 * + COUNT ( * ) AS col2, 4 * + + 9 + - 15 - - + 1
----
-65
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL + COUNT( DISTINCT + + ( - - ( - 54 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL + COUNT ( DISTINCT + + ( - - ( - 54 ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT + 52 + + 7 - + 31 + + - COUNT( * ) * + CASE + 53 WHEN + 99 * CAST( NULL AS SIGNED ) THEN NULL ELSE - 24 END * COUNT( * ) + + COUNT( * ) * 23
----
75

skipif mysql # not compatible
query I rowsort label-3287
SELECT + 52 + + 7 - + 31 + + - COUNT ( * ) * + CASE + 53 WHEN + 99 * CAST ( NULL AS INTEGER ) THEN NULL ELSE - 24 END * COUNT ( * ) + + COUNT ( * ) * 23
----
75

query I rowsort
SELECT - 58 + 61 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ( - MIN( COALESCE ( + + ( + 90 ), + + 73 - 31 ) ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3289
SELECT ( - MIN ( COALESCE ( + + ( + 90 ), + + 73 - 31 ) ) ) AS col0
----
-90

query I rowsort
SELECT + 92 * - ( + 74 )
----
-6808

query I rowsort
SELECT - 79 * + 30 + - 19
----
-2389

query I rowsort
SELECT ALL - 13 + + 81 AS col2
----
68

query I rowsort
SELECT + 92 * + - 15 - 14 * + 31 + + 86 + + 28
----
-1700

query II rowsort
SELECT ALL - 29 AS col0, + 92 AS col2
----
-29
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT + 28 + + CASE - - 55 WHEN - + 89 THEN - 34 WHEN - 8 * CASE + 42 * COUNT( - 48 / 93 ) WHEN 63 + - 44 THEN 89 * COUNT( * ) END THEN NULL WHEN - 43 + ( - ( MAX( ALL 37 ) ) ) * - 54 THEN NULL END + 82 / - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3295
SELECT + 28 + + CASE - - 55 WHEN - + 89 THEN - 34 WHEN - 8 * CASE + 42 * COUNT ( - 48 / 93 ) WHEN 63 + - 44 THEN 89 * COUNT ( * ) END THEN NULL WHEN - 43 + ( - ( MAX ( ALL 37 ) ) ) * - 54 THEN NULL END + 82 / - 46 AS col1
----
NULL

query I rowsort
SELECT ALL + 22 * + 94 AS col1
----
2068

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT - 94 * - - SUM( ALL ( - - 96 ) ) * + + 65 - + 20 + + 33 + - 9
----
-586556

skipif mysql # not compatible
query I rowsort label-3297
SELECT - 94 * - - SUM ( ALL ( - - 96 ) ) * + + 65 - + 20 + + 33 + - 9
----
-586556

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT - 64 + + - 82 + 96 * + + 25 + + 88 + - + 95 - MIN( ALL 80 ) * 97 * - 22
----
172967

skipif mysql # not compatible
query I rowsort label-3298
SELECT - 64 + + - 82 + 96 * + + 25 + + 88 + - + 95 - MIN ( ALL 80 ) * 97 * - 22
----
172967

query I rowsort
SELECT + 77 + + 98
----
175

onlyif mysql # aggregate syntax: 
query II rowsort label-3300
SELECT DISTINCT 20 AS col1, 75 + NULLIF ( + - 90, - 91 + + - 10 ) + COUNT( * ) AS col2
----
20
-14

skipif mysql # not compatible
query II rowsort label-3300
SELECT DISTINCT 20 AS col1, 75 + NULLIF ( + - 90, - 91 + + - 10 ) + COUNT ( * ) AS col2
----
20
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT DISTINCT + COUNT( ALL + + ( + - ( 78 ) ) ) + + 36
----
37

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT + COUNT ( ALL + + ( + - ( 78 ) ) ) + + 36
----
37

query I rowsort
SELECT ALL + 37 + + + 21 AS col1
----
58

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

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

query I rowsort
SELECT ALL + 33 - 11
----
22

query I rowsort
SELECT 57 * + - 78 AS col1
----
-4446

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3306
SELECT 66 - 82 AS col0, - CAST( NULL AS DECIMAL ) * + COUNT( * ) * 2 col1
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-3306
SELECT 66 - 82 AS col0, - CAST ( NULL AS REAL ) * + COUNT ( * ) * 2 col1
----
-16
NULL

query I rowsort
SELECT 8 + - + ( 74 ) * + - 88 AS col0
----
6520

onlyif mysql # DIV for integer division: 
query I rowsort label-3308
SELECT ( - + 90 ) DIV + 28
----
-3

skipif mysql # not compatible
query I rowsort label-3308
SELECT ( - + 90 ) / + 28
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3309
SELECT DISTINCT + 16 * - MAX( ALL 52 ), + 43 AS col1
----
-832
43

skipif mysql # not compatible
query II rowsort label-3309
SELECT DISTINCT + 16 * - MAX ( ALL 52 ), + 43 AS col1
----
-832
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3311
SELECT ( + 39 ) * SUM( 40 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT ( + 39 ) * SUM ( 40 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT 27 DIV + + 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3312
SELECT 27 / + + 5 AS col1
----
5

query I rowsort
SELECT 98 * - 36 * 85 col0
----
-299880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3314
SELECT DISTINCT 88 / + CAST( NULL AS SIGNED ) * + + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT 88 / + CAST ( NULL AS INTEGER ) * + + 96 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT - 79 * + 84 + - 41 * - - 64 * COUNT( + + 90 ) + + 55 AS col2
----
-9205

skipif mysql # not compatible
query I rowsort label-3315
SELECT - 79 * + 84 + - 41 * - - 64 * COUNT ( + + 90 ) + + 55 AS col2
----
-9205

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT 17 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-3316
SELECT 17 / - 45
----
0

query I rowsort
SELECT ALL 41 + + COALESCE ( + - 73, + 12 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL + COUNT( * ) + 78 col1
----
79

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL + COUNT ( * ) + 78 col1
----
79

query II rowsort
SELECT DISTINCT - 84 + NULLIF ( 79, 35 ) * 85 AS col0, + ( - 82 ) + - 1 * 46 AS col0
----
6631
-128

query I rowsort
SELECT DISTINCT + 26 * 18 * - 25
----
-11700

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

query I rowsort
SELECT 46 * + 8 - + - 40
----
408

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3324
SELECT + MAX( ALL - - 72 ) * 65 DIV + 94 + COALESCE ( + + NULLIF ( + 5, - 36 ), + 15 * 91 )
----
54

skipif mysql # not compatible
query I rowsort label-3324
SELECT + MAX ( ALL - - 72 ) * 65 / + 94 + COALESCE ( + + NULLIF ( + 5, - 36 ), + 15 * 91 )
----
54

query I rowsort
SELECT ( - - 44 ) + + 30 * + ( 77 )
----
2354

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL - - COUNT( - - ( ( + - NULLIF ( 15, - 79 ) ) ) ) * + 48 * + 86 + 23
----
4151

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL - - COUNT ( - - ( ( + - NULLIF ( 15, - 79 ) ) ) ) * + 48 * + 86 + 23
----
4151

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT 95 + - COUNT( * ) * 78
----
17

skipif mysql # not compatible
query I rowsort label-3327
SELECT 95 + - COUNT ( * ) * 78
----
17

query I rowsort
SELECT 41 + + 9 + + 65 + - 4
----
111

query I rowsort
SELECT ALL - + 1 * 12 * + - 67 + - - ( 44 ) - - 77
----
925

query I rowsort
SELECT + 94 + - - 4 + 85 AS col0
----
183

query II rowsort
SELECT 72 * + 28 AS col2, ( + 65 )
----
2016
65

query I rowsort
SELECT ( - + 63 ) + - 87 AS col0
----
-150

query I rowsort
SELECT 2 * + 36
----
72

query I rowsort
SELECT ALL + 29 * + - 68
----
-1972

query II rowsort
SELECT DISTINCT - 75 * + ( 25 ) AS col0, - 0 col0
----
-1875
0

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

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

query II rowsort
SELECT 11 - - 48 + + - 55 AS col2, 28
----
4
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3338
SELECT DISTINCT 74, - 77 * - 10 - - COUNT( * ) + + MAX( - 67 ) AS col2
----
74
704

skipif mysql # not compatible
query II rowsort label-3338
SELECT DISTINCT 74, - 77 * - 10 - - COUNT ( * ) + + MAX ( - 67 ) AS col2
----
74
704

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT 92 * 70 DIV 32 AS col2
----
201

skipif mysql # not compatible
query I rowsort label-3340
SELECT 92 * 70 / 32 AS col2
----
201

query I rowsort
SELECT ALL + 30 * - 50 AS col1
----
-1500

query II rowsort
SELECT DISTINCT 31, - 25 col1
----
31
-25

query I rowsort
SELECT 1 + 74
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT ALL COALESCE ( + - 57, + + 27 DIV 68 + + + 6 + + - 83 * - - 64 ) col1
----
-57

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL COALESCE ( + - 57, + + 27 / 68 + + + 6 + + - 83 * - - 64 ) col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT COUNT( * ) + ( - ( ( + CASE - COUNT( * ) WHEN 29 THEN - AVG ( + COALESCE ( 71, ( 22 ) / + 61 ) ) * - 65 WHEN - 65 THEN - NULLIF ( + 83, + 51 + CASE 2 WHEN AVG ( - COALESCE ( 98, - 38 ) ) THEN - 3 * - ( 1 ) + 13 WHEN 49 + COUNT( * ) THEN ( ( MAX( ALL + 18 ) ) ) * 90 + + 79 END ) + + 61 END ) ) ) - 21 * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT COUNT ( * ) + ( - ( ( + CASE - COUNT ( * ) WHEN 29 THEN - AVG ( + COALESCE ( 71, ( 22 ) / + 61 ) ) * - 65 WHEN - 65 THEN - NULLIF ( + 83, + 51 + CASE 2 WHEN AVG ( - COALESCE ( 98, - 38 ) ) THEN - 3 * - ( 1 ) + 13 WHEN 49 + COUNT ( * ) THEN ( ( MAX ( ALL + 18 ) ) ) * 90 + + 79 END ) + + 61 END ) ) ) - 21 * - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT 82 * + - COALESCE ( + ( + 64 ), + + 6 + COUNT( * ) + - 70 ) AS col2
----
-5248

skipif mysql # not compatible
query I rowsort label-3346
SELECT 82 * + - COALESCE ( + ( + 64 ), + + 6 + COUNT ( * ) + - 70 ) AS col2
----
-5248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3347
SELECT COUNT( * ) * - - CAST( - 61 AS SIGNED ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-3347
SELECT COUNT ( * ) * - - CAST ( - 61 AS INTEGER ) AS col2
----
-61

query I rowsort
SELECT 88 + - + 82 col0
----
6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT CASE + 69 WHEN + + 23 THEN - + ( + CAST( - 93 AS SIGNED ) ) ELSE - 0 * NULLIF ( 31, - 29 * - 57 ) END
----
0

skipif mysql # not compatible
query I rowsort label-3350
SELECT CASE + 69 WHEN + + 23 THEN - + ( + CAST ( - 93 AS INTEGER ) ) ELSE - 0 * NULLIF ( 31, - 29 * - 57 ) END
----
0

query I rowsort
SELECT 31 * - + 87 + + 60
----
-2637

query I rowsort
SELECT 43 * + 56 AS col0
----
2408

query I rowsort
SELECT - 76 * + + 0 + ( + 28 ) AS col0
----
28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT - 38 DIV - 41 + + + 67 col1
----
67

skipif mysql # not compatible
query I rowsort label-3355
SELECT - 38 / - 41 + + + 67 col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT DISTINCT + CASE - + 86 WHEN + 46 THEN + 79 WHEN 80 * + + CAST( NULL AS SIGNED ) THEN + + 7 + - + COUNT( * ) * + 67 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT + CASE - + 86 WHEN + 46 THEN + 79 WHEN 80 * + + CAST ( NULL AS INTEGER ) THEN + + 7 + - + COUNT ( * ) * + 67 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 68 * + 58 * - 6
----
23664

query I rowsort
SELECT DISTINCT + 64 * - 69 * - - ( - 70 ) * + 34 * + 92 + 52 / - - CASE 60 WHEN 78 * 52 THEN + ( 85 ) + 23 * + 50 ELSE NULL END / - 14 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - NULLIF ( 16, - 8 * - - 88 ) ) AS col0
----
-16

query I rowsort
SELECT + - 0 * 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3361
SELECT - - COUNT( * ) + 97 - + 19 + - 0 AS col1, 99 AS col2
----
79
99

skipif mysql # not compatible
query II rowsort label-3361
SELECT - - COUNT ( * ) + 97 - + 19 + - 0 AS col1, 99 AS col2
----
79
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT + - 84 * + 54 * - + 1 + + COUNT( * )
----
4537

skipif mysql # not compatible
query I rowsort label-3362
SELECT + - 84 * + 54 * - + 1 + + COUNT ( * )
----
4537

query I rowsort
SELECT + + 67 * - + 14
----
-938

onlyif mysql # DIV for integer division: 
query I rowsort label-3364
SELECT ALL + 61 DIV + 89 col1
----
0

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL + 61 / + 89 col1
----
0

query II rowsort
SELECT DISTINCT + + 50 AS col1, 91 * - - 27
----
50
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL 41 * - COUNT( * ) - - 80 * 37 col2
----
2919

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL 41 * - COUNT ( * ) - - 80 * 37 col2
----
2919

query I rowsort
SELECT + + 55 * + + 95 + ( 83 ) * + + ( - ( + ( + + 13 ) ) ) * 47 - - 64 AS col0
----
-45424

query II rowsort
SELECT ALL + - 68 AS col2, - 40 AS col2
----
-68
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3369
SELECT ALL 73 DIV 8 + - - 25
----
34

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL 73 / 8 + - - 25
----
34

query II rowsort
SELECT + 12 + - - 29 * - + 44 * + - 68 + - 4 + 92 col2, + 57 AS col1
----
86868
57

query I rowsort
SELECT ALL 56 * 80 * - 92 * - 3 + 24 AS col0
----
1236504

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT + NULLIF ( - ( - COUNT( * ) ), - 77 ) + + COUNT( * ) + + 65 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3372
SELECT + NULLIF ( - ( - COUNT ( * ) ), - 77 ) + + COUNT ( * ) + + 65 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL + 9 - + 92 + - + 74 + + 89 * + COUNT( * ) * + - 67
----
-6120

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL + 9 - + 92 + - + 74 + + 89 * + COUNT ( * ) * + - 67
----
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT + - COUNT( * ) * - 5 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3374
SELECT + - COUNT ( * ) * - 5 AS col2
----
5

query II rowsort
SELECT - + NULLIF ( - 32, - 56 ) AS col1, - 57 * - 66 col1
----
32
3762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3376
SELECT + 1 * CASE + + 11 WHEN + + 38 - + + 75 * CAST( NULL AS SIGNED ) THEN - + 3 WHEN 40 * + 13 THEN NULL WHEN 14 THEN 86 WHEN - COALESCE ( 77, 69 ) THEN 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT + 1 * CASE + + 11 WHEN + + 38 - + + 75 * CAST ( NULL AS INTEGER ) THEN - + 3 WHEN 40 * + 13 THEN NULL WHEN 14 THEN 86 WHEN - COALESCE ( 77, 69 ) THEN 88 END
----
NULL

query I rowsort
SELECT DISTINCT 90 * 60 * - - 11 AS col2
----
59400

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

skipif mysql # not compatible
query I rowsort label-3378
SELECT - 13 + + - COUNT ( * ) * + 43 * COUNT ( * )
----
-56

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3380
SELECT ALL 78 DIV + + 11 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL 78 / + + 11 AS col1
----
7

query I rowsort
SELECT - COALESCE ( - ( 9 ), + 77 * + + 84 + + 0 )
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-3382
SELECT - 89 DIV + - 71 AS col2, + 60 col0
----
1
60

skipif mysql # not compatible
query II rowsort label-3382
SELECT - 89 / + - 71 AS col2, + 60 col0
----
1
60

query II rowsort
SELECT - ( - 35 ) AS col0, + 1 AS col0
----
35
1

query I rowsort
SELECT + 36 - - 88
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3385
SELECT + 53 DIV - - 2 AS col2, - ( - CASE - 12 WHEN - COUNT( * ) - - ( AVG ( + 22 ) ) * 14 THEN NULL WHEN 94 THEN 41 END ) * - 60
----
26
NULL

skipif mysql # not compatible
query II rowsort label-3385
SELECT + 53 / - - 2 AS col2, - ( - CASE - 12 WHEN - COUNT ( * ) - - ( AVG ( + 22 ) ) * 14 THEN NULL WHEN 94 THEN 41 END ) * - 60
----
26
NULL

query I rowsort
SELECT - 59 + + 90 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT DISTINCT - NULLIF ( + 68, COUNT( * ) ) + + + 33 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT - NULLIF ( + 68, COUNT ( * ) ) + + + 33 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT DISTINCT 77 * + MAX( DISTINCT + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT 77 * + MAX ( DISTINCT + 0 )
----
0

query I rowsort
SELECT ALL + 8 + 94 AS col0
----
102

query I rowsort
SELECT DISTINCT ( - 45 ) AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3391
SELECT DISTINCT + 20 / CAST( NULL AS SIGNED ) + + - SUM( ALL + 5 ) AS col0, + 54 * + 24
----
NULL
1296

skipif mysql # not compatible
query II rowsort label-3391
SELECT DISTINCT + 20 / CAST ( NULL AS INTEGER ) + + - SUM ( ALL + 5 ) AS col0, + 54 * + 24
----
NULL
1296

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

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

query I rowsort
SELECT - 17 * + + 58
----
-986

query I rowsort
SELECT DISTINCT + 82 * + - 38 * - - 92
----
-286672

query I rowsort
SELECT ALL 97 * + 24 - + 39 AS col1
----
2289

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL - ( - 20 ) * NULLIF ( CASE 1 WHEN ( - 17 ) THEN NULL WHEN 82 THEN 0 + 62 ELSE 36 * - COUNT( * ) END, COUNT( - 14 ) ) * - 64 + - 98 AS col1
----
45982

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL - ( - 20 ) * NULLIF ( CASE 1 WHEN ( - 17 ) THEN NULL WHEN 82 THEN 0 + 62 ELSE 36 * - COUNT ( * ) END, COUNT ( - 14 ) ) * - 64 + - 98 AS col1
----
45982

onlyif mysql # DIV for integer division: 
query I rowsort label-3397
SELECT - 49 DIV + COALESCE ( + 84, 36 * - 59, - 71 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3397
SELECT - 49 / + COALESCE ( + 84, 36 * - 59, - 71 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + COUNT( * ) * + 77 * 93
----
7161

skipif mysql # not compatible
query I rowsort label-3398
SELECT + COUNT ( * ) * + 77 * 93
----
7161

query II rowsort
SELECT + ( - + 77 ) AS col2, + CASE + 71 WHEN + - CASE 62 WHEN - 78 THEN + 54 + + 28 * 1 END THEN 22 END * + 86
----
-77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3400
SELECT - 63 + + CAST( + CASE - CAST( 21 AS SIGNED ) WHEN - ( - 10 ) THEN + + 2 * - COUNT( * ) - - NULLIF ( + ( CAST( NULL AS DECIMAL ) ), 90 ) * COUNT( 48 * 0 ) WHEN + 73 THEN NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT - 63 + + CAST ( + CASE - CAST ( 21 AS INTEGER ) WHEN - ( - 10 ) THEN + + 2 * - COUNT ( * ) - - NULLIF ( + ( CAST ( NULL AS REAL ) ), 90 ) * COUNT ( 48 * 0 ) WHEN + 73 THEN NULL END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( - + 18 ) * 45 + 45 * + 87 AS col0
----
3105

query I rowsort
SELECT - 90 + + 40
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-3403
SELECT + 4 + + 22, 57 + - COUNT( * ) - - 56 AS col1
----
26
112

skipif mysql # not compatible
query II rowsort label-3403
SELECT + 4 + + 22, 57 + - COUNT ( * ) - - 56 AS col1
----
26
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3404
SELECT ALL CAST( + MAX( ALL - + 15 ) AS SIGNED ) AS col0, - NULLIF ( - 73, - - 48 * + 37 * + 31 + - 32 - + + 62 * - COUNT( 78 ) + + 40 ) AS col0
----
-15
73

skipif mysql # not compatible
query II rowsort label-3404
SELECT ALL CAST ( + MAX ( ALL - + 15 ) AS INTEGER ) AS col0, - NULLIF ( - 73, - - 48 * + 37 * + 31 + - 32 - + + 62 * - COUNT ( 78 ) + + 40 ) AS col0
----
-15
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3405
SELECT SUM( ALL ( - + 87 ) ) AS col2, - 54 * - + COUNT( * ) AS col2
----
-87
54

skipif mysql # not compatible
query II rowsort label-3405
SELECT SUM ( ALL ( - + 87 ) ) AS col2, - 54 * - + COUNT ( * ) AS col2
----
-87
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3406
SELECT DISTINCT 12 * - 70 DIV - COUNT( * ) + - 10 * CAST( - - 46 AS SIGNED ) * - - COALESCE ( - 55, 16 * + + 20 * + 58 + 75, - ( 29 ) ) AS col2
----
26140

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT 12 * - 70 / - COUNT ( * ) + - 10 * CAST ( - - 46 AS INTEGER ) * - - COALESCE ( - 55, 16 * + + 20 * + 58 + 75, - ( 29 ) ) AS col2
----
26140

query I rowsort
SELECT + 13 * 31
----
403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3408
SELECT - CASE + SUM( DISTINCT ( - + 20 ) ) WHEN - CASE - COUNT( * ) WHEN SUM( - - 42 ) THEN - 48 + - + 47 ELSE 25 + + CAST( 8 AS SIGNED ) END THEN + 14 + 94 END * CASE 39 * 89 WHEN - CASE 9 WHEN - COUNT( * ) + - 73 THEN + 89 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - 67 + 80 THEN NULL END THEN + 77 WHEN CAST( NULL AS SIGNED ) + 38 * + 2 THEN NULL WHEN 36 THEN ( - 84 ) * - COUNT( * ) WHEN COUNT( * ) THEN NULL END + 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT - CASE + SUM ( DISTINCT ( - + 20 ) ) WHEN - CASE - COUNT ( * ) WHEN SUM ( - - 42 ) THEN - 48 + - + 47 ELSE 25 + + CAST ( 8 AS INTEGER ) END THEN + 14 + 94 END * CASE 39 * 89 WHEN - CASE 9 WHEN - COUNT ( * ) + - 73 THEN + 89 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - 67 + 80 THEN NULL END THEN + 77 WHEN CAST ( NULL AS INTEGER ) + 38 * + 2 THEN NULL WHEN 36 THEN ( - 84 ) * - COUNT ( * ) WHEN COUNT ( * ) THEN NULL END + 84 col2
----
NULL

query I rowsort
SELECT DISTINCT 37 * + + 97
----
3589

onlyif mysql # aggregate syntax: 
query II rowsort label-3410
SELECT + MAX( 5 ) + - + 70 AS col1, 90 AS col2
----
-65
90

skipif mysql # not compatible
query II rowsort label-3410
SELECT + MAX ( 5 ) + - + 70 AS col1, 90 AS col2
----
-65
90

query I rowsort
SELECT ALL 72 * - 8 AS col1
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT + 36 + COUNT( * ) col1
----
37

skipif mysql # not compatible
query I rowsort label-3412
SELECT + 36 + COUNT ( * ) col1
----
37

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

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

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

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

query I rowsort
SELECT ALL 36 * + 51
----
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT MIN( + 11 ) + - 55
----
-44

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT MIN ( + 11 ) + - 55
----
-44

query I rowsort
SELECT DISTINCT 29 + - + 68 AS col1
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3418
SELECT ALL 64 + MAX( 11 ) + 48 DIV 39
----
76

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL 64 + MAX ( 11 ) + 48 / 39
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3419
SELECT ALL 11 col0, 10 + + COUNT( * ) + - 95 AS col1
----
11
-84

skipif mysql # not compatible
query II rowsort label-3419
SELECT ALL 11 col0, 10 + + COUNT ( * ) + - 95 AS col1
----
11
-84

query I rowsort
SELECT 23 + 32 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3421
SELECT NULLIF ( + ( + + 62 ), + COUNT( * ) * 82 + + + 62 * COUNT( * ) - - 26 ) * CAST( ( - SUM( ALL - 22 ) ) AS SIGNED ) - + 60 AS col2
----
1304

skipif mysql # not compatible
query I rowsort label-3421
SELECT NULLIF ( + ( + + 62 ), + COUNT ( * ) * 82 + + + 62 * COUNT ( * ) - - 26 ) * CAST ( ( - SUM ( ALL - 22 ) ) AS INTEGER ) - + 60 AS col2
----
1304

query I rowsort
SELECT 98 * - 62 + - 64 + 87
----
-6053

query I rowsort
SELECT 14 * - 1 + 13 - - ( - 49 )
----
-50

query I rowsort
SELECT ALL - 3 - - 29 col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3425
SELECT ALL - - 89, + COUNT( * ) AS col0
----
89
1

skipif mysql # not compatible
query II rowsort label-3425
SELECT ALL - - 89, + COUNT ( * ) AS col0
----
89
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT MIN( - 30 ) * - - 39 + - + 40 * 48 * + 30 AS col2
----
-58770

skipif mysql # not compatible
query I rowsort label-3426
SELECT MIN ( - 30 ) * - - 39 + - + 40 * 48 * + 30 AS col2
----
-58770

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL + 33 * + 79 * 46 * - NULLIF ( 47, 75 * 46 + - 56 + + 62 + - 47 / COALESCE ( 30, + 92 * COALESCE ( MIN( - 28 ), COUNT( * ) ) ) * 33 )
----
-5636334

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL + 33 * + 79 * 46 * - NULLIF ( 47, 75 * 46 + - 56 + + 62 + - 47 / COALESCE ( 30, + 92 * COALESCE ( MIN ( - 28 ), COUNT ( * ) ) ) * 33 )
----
-5636334

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3428
SELECT + 53 DIV - COUNT( 83 ) + - NULLIF ( 34, + 51 ) + - 65 + - COUNT( DISTINCT + + 34 ) * - CASE 89 WHEN 52 THEN NULL WHEN 87 THEN NULL ELSE - ( + 73 ) * + 79 END * 1
----
-5919

skipif mysql # not compatible
query I rowsort label-3428
SELECT + 53 / - COUNT ( 83 ) + - NULLIF ( 34, + 51 ) + - 65 + - COUNT ( DISTINCT + + 34 ) * - CASE 89 WHEN 52 THEN NULL WHEN 87 THEN NULL ELSE - ( + 73 ) * + 79 END * 1
----
-5919

query I rowsort
SELECT + 81 + - 74 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL CASE - SUM( ALL - 81 ) WHEN 34 * - 94 THEN 78 END * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL CASE - SUM ( ALL - 81 ) WHEN 34 * - 94 THEN 78 END * - 14
----
NULL

query I rowsort
SELECT + ( - 81 ) * + - 17 + 66
----
1443

query I rowsort
SELECT + 38 * 81 - 8
----
3070

query I rowsort
SELECT 98 * - 10 + + 1
----
-979

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT - 78 * ( + COUNT( * ) ) * - 70 * MIN( DISTINCT + 4 ) + 58
----
21898

skipif mysql # not compatible
query I rowsort label-3434
SELECT - 78 * ( + COUNT ( * ) ) * - 70 * MIN ( DISTINCT + 4 ) + 58
----
21898

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT COUNT( * ) * - + 75 - + 15 * + 39 AS col0
----
-660

skipif mysql # not compatible
query I rowsort label-3435
SELECT COUNT ( * ) * - + 75 - + 15 * + 39 AS col0
----
-660

query I rowsort
SELECT ALL + - 82 * + 45 AS col0
----
-3690

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

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

query I rowsort
SELECT ALL - 57 + + 2 AS col1
----
-55

query I rowsort
SELECT DISTINCT - - ( + 27 ) col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3440
SELECT ALL MIN( DISTINCT - - 90 ) + CASE - COUNT( + - 42 ) WHEN + - 0 * - 2 + - + 81 + + 47 / 96 / + + NULLIF ( + 42, 7 ) THEN 48 WHEN COALESCE ( 26, 63 - - 21 ) * - CASE - COUNT( * ) WHEN + 54 THEN NULL WHEN NULLIF ( + 17, + 40 * - ( - 32 / ( 71 ) ) + - 32 ) + - NULLIF ( - ( + NULLIF ( CAST( NULL AS SIGNED ), 98 * - ( - 85 * COUNT( * ) ) ) ) - 17 / 53, 42 / 57 ) THEN + COUNT( * ) ELSE NULL END THEN + SUM( + 10 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL MIN ( DISTINCT - - 90 ) + CASE - COUNT ( + - 42 ) WHEN + - 0 * - 2 + - + 81 + + 47 / 96 / + + NULLIF ( + 42, 7 ) THEN 48 WHEN COALESCE ( 26, 63 - - 21 ) * - CASE - COUNT ( * ) WHEN + 54 THEN NULL WHEN NULLIF ( + 17, + 40 * - ( - 32 / ( 71 ) ) + - 32 ) + - NULLIF ( - ( + NULLIF ( CAST ( NULL AS INTEGER ), 98 * - ( - 85 * COUNT ( * ) ) ) ) - 17 / 53, 42 / 57 ) THEN + COUNT ( * ) ELSE NULL END THEN + SUM ( + 10 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 2 * - + 9 AS col2
----
-18

query I rowsort
SELECT ALL + 71 * + 72 * COALESCE ( 78, 15 ) * + 8
----
3189888

onlyif mysql # aggregate syntax: 
query II rowsort label-3443
SELECT + 21 col0, COUNT( * ) - 85
----
21
-84

skipif mysql # not compatible
query II rowsort label-3443
SELECT + 21 col0, COUNT ( * ) - 85
----
21
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL + COUNT( * ) + - + 34 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL + COUNT ( * ) + - + 34 AS col2
----
-33

query I rowsort
SELECT 91 * - 66 AS col2
----
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT DISTINCT + ( + ( - COUNT( * ) ) ) + + 23 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT + ( + ( - COUNT ( * ) ) ) + + 23 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT 43 * + 13 * - + 35 * - - COUNT( * )
----
-19565

skipif mysql # not compatible
query I rowsort label-3447
SELECT 43 * + 13 * - + 35 * - - COUNT ( * )
----
-19565

query I rowsort
SELECT ALL ( - 27 ) + + + 4 + 72 col1
----
49

query I rowsort
SELECT DISTINCT - 63 - - 90 + - - 42 col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3450
SELECT ( - - 44 ) + + - 99 * + SUM( CAST( + + 71 AS SIGNED ) )
----
-6985

skipif mysql # not compatible
query I rowsort label-3450
SELECT ( - - 44 ) + + - 99 * + SUM ( CAST ( + + 71 AS INTEGER ) )
----
-6985

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3451
SELECT COUNT( * ) * + - 5 * SUM( DISTINCT + - ( + 17 ) ) DIV + 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3451
SELECT COUNT ( * ) * + - 5 * SUM ( DISTINCT + - ( + 17 ) ) / + 57 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3452
SELECT ALL CASE - 39 WHEN ( + ( + CAST( + + 43 AS SIGNED ) ) ) * + + 24 THEN - - MAX( + 73 ) * - - NULLIF ( 98, + 14 ) * 61 + NULLIF ( 91, + 64 + + 54 ) WHEN - COUNT( 31 ) THEN 6 + 79 * 43 ELSE NULL END * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL CASE - 39 WHEN ( + ( + CAST ( + + 43 AS INTEGER ) ) ) * + + 24 THEN - - MAX ( + 73 ) * - - NULLIF ( 98, + 14 ) * 61 + NULLIF ( 91, + 64 + + 54 ) WHEN - COUNT ( 31 ) THEN 6 + 79 * 43 ELSE NULL END * + 91
----
NULL

query I rowsort
SELECT ALL 41 - + 58 AS col2
----
-17

query I rowsort
SELECT 26 - 12 AS col1
----
14

query I rowsort
SELECT DISTINCT 17 * + 48
----
816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3456
SELECT SUM( CAST( + 61 AS SIGNED ) ) AS col1
----
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL + - COUNT( * ) * - 72 * + + 34 + - 34 + + - 57 * + + 46 * 41 AS col2
----
-105088

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL + - COUNT ( * ) * - 72 * + + 34 + - 34 + + - 57 * + + 46 * 41 AS col2
----
-105088

onlyif mysql # aggregate syntax: 
query II rowsort label-3458
SELECT ALL COUNT( * ), MIN( + - 35 ) + - - 75 - 92 AS col2
----
1
-52

skipif mysql # not compatible
query II rowsort label-3458
SELECT ALL COUNT ( * ), MIN ( + - 35 ) + - - 75 - 92 AS col2
----
1
-52

query II rowsort
SELECT - 11, - 72 AS col0
----
-11
-72

query II rowsort
SELECT ALL 84 col1, 53
----
84
53

query I rowsort
SELECT + 70 - + + 69
----
1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT ALL 62 DIV 10
----
6

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL 62 / 10
----
6

query I rowsort
SELECT + + NULLIF ( 39, + 25 )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3466
SELECT 80 AS col1, 84 * + COUNT( * ) + - 41 * + - NULLIF ( + + 27, + - COUNT( * ) ) AS col1
----
80
1191

skipif mysql # not compatible
query II rowsort label-3466
SELECT 80 AS col1, 84 * + COUNT ( * ) + - 41 * + - NULLIF ( + + 27, + - COUNT ( * ) ) AS col1
----
80
1191

query I rowsort
SELECT 95 * + 54
----
5130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3468
SELECT ALL 50 * - - NULLIF ( 25, COUNT( * ) * 63 ) + 11 + - COUNT( * ) + - - 99 DIV + 65 AS col2
----
1261

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL 50 * - - NULLIF ( 25, COUNT ( * ) * 63 ) + 11 + - COUNT ( * ) + - - 99 / + 65 AS col2
----
1261

query II rowsort
SELECT - 52, 7 AS col1
----
-52
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3470
SELECT COALESCE ( + + 17, - 95, - 22, + 27 * 16 + + 48, + 53 - + CAST( COUNT( * ) AS SIGNED ) + + - 75 + - 21 ) * 77 AS col1
----
1309

skipif mysql # not compatible
query I rowsort label-3470
SELECT COALESCE ( + + 17, - 95, - 22, + 27 * 16 + + 48, + 53 - + CAST ( COUNT ( * ) AS INTEGER ) + + - 75 + - 21 ) * 77 AS col1
----
1309

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL + SUM( ALL 92 ) + - 37 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL + SUM ( ALL 92 ) + - 37 AS col2
----
55

query I rowsort
SELECT DISTINCT + 28 + + - 83
----
-55

query I rowsort
SELECT ALL 51 * - + 17
----
-867

query I rowsort
SELECT ALL - 6 + 45
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT - 95 * - COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3475
SELECT - 95 * - COUNT ( * ) AS col0
----
95

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

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL COUNT ( DISTINCT + - 22 ) + + + ( 36 ) * 15
----
541

query I rowsort
SELECT DISTINCT + ( - + 62 ) + + + 49 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT SUM( DISTINCT ( 73 ) )
----
73

skipif mysql # not compatible
query I rowsort label-3478
SELECT SUM ( DISTINCT ( 73 ) )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3479
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED ) + - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 92 + + NULLIF ( - + 6, - - 46 ) * + 78
----
-376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3481
SELECT - 66 * CAST( NULL AS SIGNED ) * - - 60 + ( 62 ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT - 66 * CAST ( NULL AS INTEGER ) * - - 60 + ( 62 ) - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT 36 * SUM( - - 63 ) AS col2
----
2268

skipif mysql # not compatible
query I rowsort label-3482
SELECT 36 * SUM ( - - 63 ) AS col2
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT - 13 + + - COUNT( * ) * - 84
----
71

skipif mysql # not compatible
query I rowsort label-3483
SELECT - 13 + + - COUNT ( * ) * - 84
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL 19 + - - COUNT( * ) + + 47
----
67

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL 19 + - - COUNT ( * ) + + 47
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT DISTINCT - SUM( DISTINCT 95 ) - - + 2
----
-93

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT - SUM ( DISTINCT 95 ) - - + 2
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT ALL + 40 * 4 DIV 69 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL + 40 * 4 / 69 AS col1
----
2

query I rowsort
SELECT ALL NULLIF ( - + 11, - 63 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3488
SELECT - 83 + COUNT( * ) AS col0, + 66 * - 44 AS col1
----
-82
-2904

skipif mysql # not compatible
query II rowsort label-3488
SELECT - 83 + COUNT ( * ) AS col0, + 66 * - 44 AS col1
----
-82
-2904

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT DISTINCT + COUNT( * ) * - 79 * 68 * 67 AS col1
----
-359924

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT + COUNT ( * ) * - 79 * 68 * 67 AS col1
----
-359924

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT - COUNT( * ) * + + 1 + - - 1 + + + 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-3490
SELECT - COUNT ( * ) * + + 1 + - - 1 + + + 93 AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT ALL + CAST( NULL AS SIGNED ) * 86 * + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL + CAST ( NULL AS INTEGER ) * 86 * + 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL COALESCE ( 36, - 94, 18 + - 68 + - COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL COALESCE ( 36, - 94, 18 + - 68 + - COUNT ( * ) )
----
36

query I rowsort
SELECT DISTINCT COALESCE ( 28, - - 97 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT - 23 + - COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-3494
SELECT - 23 + - COUNT ( * ) AS col2
----
-24

query I rowsort
SELECT ALL NULLIF ( 94, + ( - + 42 ) ) AS col2
----
94

query I rowsort
SELECT - 41 * + 96
----
-3936

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT DISTINCT + NULLIF ( + 12, 4 ) DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT + NULLIF ( + 12, 4 ) / + 31
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT DISTINCT - + 53 DIV 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT - + 53 / 47 AS col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL + 51 + + - COUNT( CASE + 82 WHEN - 54 THEN - ( + 98 ) END ) col1
----
51

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + 51 + + - COUNT ( CASE + 82 WHEN - 54 THEN - ( + 98 ) END ) col1
----
51

query II rowsort
SELECT - - 70 + + - 65, 53 AS col1
----
5
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT + 99 - NULLIF ( ( + MAX( + 76 ) ), COALESCE ( SUM( - 54 ), + 45 ) + - SUM( 17 ) - + COUNT( * ) ) + + MIN( DISTINCT 82 ) * 78
----
6419

skipif mysql # not compatible
query I rowsort label-3502
SELECT + 99 - NULLIF ( ( + MAX ( + 76 ) ), COALESCE ( SUM ( - 54 ), + 45 ) + - SUM ( 17 ) - + COUNT ( * ) ) + + MIN ( DISTINCT 82 ) * 78
----
6419

query I rowsort
SELECT ALL 69 * + 33 * ( + + ( - 51 ) )
----
-116127

query I rowsort
SELECT ALL + COALESCE ( - + 34, + + 2 + + + 32 + ( 89 ) + + 91 * + 78 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3505
SELECT + COUNT( * ) DIV + 52 + + - NULLIF ( - 0, + - 8 ) + - + 9 * + CAST( + + 94 AS SIGNED ) col1
----
-846

skipif mysql # not compatible
query I rowsort label-3505
SELECT + COUNT ( * ) / + 52 + + - NULLIF ( - 0, + - 8 ) + - + 9 * + CAST ( + + 94 AS INTEGER ) col1
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT 48 * + 23 * + NULLIF ( - - COUNT( * ), - 0 ) + + + COUNT( * )
----
1105

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT 48 * + 23 * + NULLIF ( - - COUNT ( * ), - 0 ) + + + COUNT ( * )
----
1105

query I rowsort
SELECT ALL - - 41 * - + 59 + + - 44 AS col0
----
-2463

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT + - ( - + 97 ) + - - COUNT( * ) col2
----
98

skipif mysql # not compatible
query I rowsort label-3508
SELECT + - ( - + 97 ) + - - COUNT ( * ) col2
----
98

query I rowsort
SELECT DISTINCT + 73 * - + 27 * + 43 + - 71 + ( + 41 ) - 7 + + + 38 AS col2
----
-84752

query I rowsort
SELECT + + 44 * - 98
----
-4312

onlyif mysql # aggregate syntax: 
query II rowsort label-3511
SELECT ALL + + 23 * + 33 + COUNT( * ) AS col2, - 40 * MIN( ALL + + 63 ) * - 38
----
760
95760

skipif mysql # not compatible
query II rowsort label-3511
SELECT ALL + + 23 * + 33 + COUNT ( * ) AS col2, - 40 * MIN ( ALL + + 63 ) * - 38
----
760
95760

query I rowsort
SELECT CASE WHEN 88 <> ( + ( - 87 ) ) THEN NULL ELSE 23 END AS col2
----
NULL

query II rowsort
SELECT ALL + 62 AS col1, 71 + + 42 + 3 AS col0
----
62
116

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3514
SELECT + 37 DIV + 99 * - CAST( + + 2 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3514
SELECT + 37 / + 99 * - CAST ( + + 2 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT - 43 + + 0
----
-43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3517
SELECT CASE + - 13 WHEN - AVG ( ALL 44 ) + - + CAST( NULL AS SIGNED ) THEN - 76 ELSE - - 18 END
----
18

skipif mysql # not compatible
query I rowsort label-3517
SELECT CASE + - 13 WHEN - AVG ( ALL 44 ) + - + CAST ( NULL AS INTEGER ) THEN - 76 ELSE - - 18 END
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT DISTINCT 60 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT 60 / - 83 AS col0
----
0

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

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

query II rowsort
SELECT DISTINCT 81 * - - 87 * + 93 - - 97, 70 AS col0
----
655468
70

query I rowsort
SELECT CASE - 53 WHEN 12 THEN NULL WHEN 78 THEN - 29 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 13 * ( - 63 ) * + 44 + + 10 + 10
----
-36016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3523
SELECT + COUNT( + + CAST( NULL AS SIGNED ) ) * - COUNT( + 61 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT + COUNT ( + + CAST ( NULL AS INTEGER ) ) * - COUNT ( + 61 ) AS col2
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3525
SELECT COALESCE ( - 73, - NULLIF ( 81, - 61 ) * 50 * - - NULLIF ( 85, 44 ) DIV - + MAX( DISTINCT - - 88 ) + + COUNT( * ) )
----
-73

skipif mysql # not compatible
query I rowsort label-3525
SELECT COALESCE ( - 73, - NULLIF ( 81, - 61 ) * 50 * - - NULLIF ( 85, 44 ) / - + MAX ( DISTINCT - - 88 ) + + COUNT ( * ) )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL + COALESCE ( - + 11, - + CASE WHEN NOT - 41 IS NULL THEN NULL WHEN - 93 * COALESCE ( - COALESCE ( 4, - 54 ), + - 42 * - 8 ) IN ( COUNT( DISTINCT 98 ) + - AVG ( 43 ) ) THEN COUNT( * ) END ) * 63 - 3
----
-696

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL + COALESCE ( - + 11, - + CASE WHEN NOT - 41 IS NULL THEN NULL WHEN - 93 * COALESCE ( - COALESCE ( 4, - 54 ), + - 42 * - 8 ) IN ( COUNT ( DISTINCT 98 ) + - AVG ( 43 ) ) THEN COUNT ( * ) END ) * 63 - 3
----
-696

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

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

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

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

query II rowsort
SELECT ALL 53 AS col1, - 18
----
53
-18

query I rowsort
SELECT ALL - 73 * - 71 AS col0
----
5183

onlyif mysql # aggregate syntax: 
query II rowsort label-3531
SELECT DISTINCT COUNT( * ) AS col2, 71 * + 89 * + 41 * + 5 AS col0
----
1
1295395

skipif mysql # not compatible
query II rowsort label-3531
SELECT DISTINCT COUNT ( * ) AS col2, 71 * + 89 * + 41 * + 5 AS col0
----
1
1295395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3532
SELECT + - CASE + 60 WHEN + 93 THEN + 42 END * - + ( + + COALESCE ( 45, - MIN( ALL + 44 ) * - 23 + + 60 + + 15 + + + 80 + + AVG ( ALL 15 ) * CAST( NULL AS SIGNED ) ) ) + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT + - CASE + 60 WHEN + 93 THEN + 42 END * - + ( + + COALESCE ( 45, - MIN ( ALL + 44 ) * - 23 + + 60 + + 15 + + + 80 + + AVG ( ALL 15 ) * CAST ( NULL AS INTEGER ) ) ) + - 61
----
NULL

query I rowsort
SELECT - + 60 + + - 38 * + - 46 + 85
----
1773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT + COALESCE ( + - 36, + 93, + CAST( + 21 AS SIGNED ) )
----
-36

skipif mysql # not compatible
query I rowsort label-3534
SELECT + COALESCE ( + - 36, + 93, + CAST ( + 21 AS INTEGER ) )
----
-36

query I rowsort
SELECT - - 16 + 43 AS col1
----
59

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

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

query I rowsort
SELECT - ( 35 ) * + 13 + + 21 AS col0
----
-434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3538
SELECT - 83 + - - ( 23 ) + + 43 - + - CAST( NULL AS SIGNED ) + 10 + ( - 91 ) * + - 2 * + MAX( + + 28 ) * 74 * + 50 * - 30 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT - 83 + - - ( 23 ) + + 43 - + - CAST ( NULL AS INTEGER ) + 10 + ( - 91 ) * + - 2 * + MAX ( + + 28 ) * 74 * + 50 * - 30 col2
----
NULL

query II rowsort
SELECT ALL 19 AS col2, + ( - + 96 )
----
19
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT - 72 + - 43 + COUNT( * ) + - 28 AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT - 72 + - 43 + COUNT ( * ) + - 28 AS col0
----
-142

query I rowsort
SELECT ALL + - 63 + - + 25 + + 57
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT - SUM( + - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-3542
SELECT - SUM ( + - 89 )
----
89

query I rowsort
SELECT - - 33 * + 19 * + - 63
----
-39501

onlyif mysql # aggregate syntax: 
query II rowsort label-3544
SELECT DISTINCT COUNT( * ) AS col1, + MIN( ALL 69 ) - + MAX( 94 ) AS col0
----
1
-25

skipif mysql # not compatible
query II rowsort label-3544
SELECT DISTINCT COUNT ( * ) AS col1, + MIN ( ALL 69 ) - + MAX ( 94 ) AS col0
----
1
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3545
SELECT ALL + 68, - 67 * + - COALESCE ( + 83, + 22 + MIN( ( - 4 ) ) ) * - 50 AS col1
----
68
-278050

skipif mysql # not compatible
query II rowsort label-3545
SELECT ALL + 68, - 67 * + - COALESCE ( + 83, + 22 + MIN ( ( - 4 ) ) ) * - 50 AS col1
----
68
-278050

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3548
SELECT ALL COUNT( 10 ) DIV - + 92 + - 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL COUNT ( 10 ) / - + 92 + - 12 AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3549
SELECT - COUNT( * ) - + CAST( + 0 AS SIGNED ) - + - COALESCE ( + 43, + CASE 81 WHEN + 71 THEN NULL WHEN + + 16 THEN NULL ELSE 73 - 74 END DIV COUNT( * ) * - 18 + + 32 ) * 86 AS col2
----
3697

skipif mysql # not compatible
query I rowsort label-3549
SELECT - COUNT ( * ) - + CAST ( + 0 AS INTEGER ) - + - COALESCE ( + 43, + CASE 81 WHEN + 71 THEN NULL WHEN + + 16 THEN NULL ELSE 73 - 74 END / COUNT ( * ) * - 18 + + 32 ) * 86 AS col2
----
3697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT + CAST( - 53 AS SIGNED ) * - ( + 35 ) * + 57 AS col2
----
105735

skipif mysql # not compatible
query I rowsort label-3550
SELECT + CAST ( - 53 AS INTEGER ) * - ( + 35 ) * + 57 AS col2
----
105735

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3552
SELECT ALL - 49 * 62 AS col2, 81 + - NULLIF ( + 9, 11 * + - 50 ) DIV + 64 AS col1
----
-3038
81

skipif mysql # not compatible
query II rowsort label-3552
SELECT ALL - 49 * 62 AS col2, 81 + - NULLIF ( + 9, 11 * + - 50 ) / + 64 AS col1
----
-3038
81

query I rowsort
SELECT ALL 25 - - 56
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT 17 * - COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3554
SELECT 17 * - COUNT ( * ) AS col0
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3555
SELECT DISTINCT - 40 * - + CASE + + 78 WHEN - 60 THEN + + AVG ( 55 ) WHEN - + NULLIF ( + + 12, - 20 ) + 67 - + + CAST( NULL AS DECIMAL ) / + 29 / 60 * + + 40 + 80 THEN 39 + - 40 WHEN - 52 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - 40 * - + CASE + + 78 WHEN - 60 THEN + + AVG ( 55 ) WHEN - + NULLIF ( + + 12, - 20 ) + 67 - + + CAST ( NULL AS REAL ) / + 29 / 60 * + + 40 + 80 THEN 39 + - 40 WHEN - 52 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT COUNT( * ) + + - 13 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3556
SELECT COUNT ( * ) + + - 13 AS col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3557
SELECT COUNT( * ) + - 50 - 70 + - 88 + COALESCE ( + 71, + + ( - 13 ), - 30 * - ( - 10 ) ) DIV SUM( + 46 ) * 64
----
-143

skipif mysql # not compatible
query I rowsort label-3557
SELECT COUNT ( * ) + - 50 - 70 + - 88 + COALESCE ( + 71, + + ( - 13 ), - 30 * - ( - 10 ) ) / SUM ( + 46 ) * 64
----
-143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3558
SELECT MIN( + 27 ) DIV 58 * MAX( ALL 78 )
----
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT MIN ( + 27 ) / 58 * MAX ( ALL 78 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3559
SELECT ALL SUM( + - 89 ) DIV 57 + - + 84, + CAST( NULL AS SIGNED ) + - 80 AS col0
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-3559
SELECT ALL SUM ( + - 89 ) / 57 + - + 84, + CAST ( NULL AS INTEGER ) + - 80 AS col0
----
-85
NULL

query I rowsort
SELECT DISTINCT 94 * - - 81 AS col1
----
7614

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3563
SELECT AVG ( + 46 ) / + + COALESCE ( + 51, - COUNT( * ) * + MIN( DISTINCT - 37 ) * 86 / + - 0 * 6 + + 94 ) * - 40 - - 40 + - - 13 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT AVG ( + 46 ) / + + COALESCE ( + 51, - COUNT ( * ) * + MIN ( DISTINCT - 37 ) * 86 / + - 0 * 6 + + 94 ) * - 40 - - 40 + - - 13 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3564
SELECT ALL COALESCE ( - 75, + 42 - + CAST( NULL AS SIGNED ) ) * + + CAST( 62 AS SIGNED ) + + 26 * - + COALESCE ( + 9, 43, 18 + + 78 ) AS col2, COUNT( DISTINCT - - 0 ) AS col0
----
-4884
1

skipif mysql # not compatible
query II rowsort label-3564
SELECT ALL COALESCE ( - 75, + 42 - + CAST ( NULL AS INTEGER ) ) * + + CAST ( 62 AS INTEGER ) + + 26 * - + COALESCE ( + 9, 43, 18 + + 78 ) AS col2, COUNT ( DISTINCT - - 0 ) AS col0
----
-4884
1

query I rowsort
SELECT 61 + - + 66 * - 40 + 57 AS col0
----
2758

query I rowsort
SELECT ALL 1 + - 83
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3567
SELECT ALL - 26 + 10, + COUNT( * ) * 68 col2
----
-16
68

skipif mysql # not compatible
query II rowsort label-3567
SELECT ALL - 26 + 10, + COUNT ( * ) * 68 col2
----
-16
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT COUNT( * ) + 52
----
53

skipif mysql # not compatible
query I rowsort label-3568
SELECT COUNT ( * ) + 52
----
53

query I rowsort
SELECT DISTINCT - 76 + - ( - 88 ) AS col0
----
12

query I rowsort
SELECT 70 * 61 + + 30
----
4300

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

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

query I rowsort
SELECT ALL 17 + + 12 + - 13 * + 84 AS col2
----
-1063

query I rowsort
SELECT ALL + - 43 + + - 42
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT - 5 * - ( + COUNT( * ) ) * + COUNT( DISTINCT + 97 )
----
5

skipif mysql # not compatible
query I rowsort label-3574
SELECT - 5 * - ( + COUNT ( * ) ) * + COUNT ( DISTINCT + 97 )
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT DISTINCT - CASE + 32 WHEN 29 THEN NULL WHEN 79 THEN - - COUNT( * ) / 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT - CASE + 32 WHEN 29 THEN NULL WHEN 79 THEN - - COUNT ( * ) / 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT NULLIF ( - + CASE - COUNT( * ) WHEN - COUNT( + 26 ) THEN 48 + - - 44 - + 54 ELSE NULL END, - + 1 ) + 36
----
-2

skipif mysql # not compatible
query I rowsort label-3577
SELECT NULLIF ( - + CASE - COUNT ( * ) WHEN - COUNT ( + 26 ) THEN 48 + - - 44 - + 54 ELSE NULL END, - + 1 ) + 36
----
-2

query I rowsort
SELECT + 97 - + 39 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT - - CASE 89 WHEN 73 + - + NULLIF ( + 87, 43 + - 51 + + CASE - - ( + 30 ) WHEN + 39 * 44 THEN NULL WHEN - 31 / - COUNT( + 71 ) + NULLIF ( - 96, - ( + ( - 94 ) ) * + 1 - - 59 * - 74 ) THEN COALESCE ( - 68, + 65 + - CASE 85 + 27 WHEN 36 THEN ( 66 ) END ) END + - ( + 42 + ( ( + 6 ) ) ) ) + + 36 THEN + ( - 88 ) + + 51 * 45 WHEN 11 THEN NULL WHEN 15 + - 20 * + COUNT( * ) THEN COUNT( * ) ELSE NULL END / CASE COUNT( * ) - + 10 / 7 WHEN + 49 / 86 THEN - 24 WHEN 79 * 90 THEN 54 / 43 + - COUNT( * ) END + 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3579
SELECT - - CASE 89 WHEN 73 + - + NULLIF ( + 87, 43 + - 51 + + CASE - - ( + 30 ) WHEN + 39 * 44 THEN NULL WHEN - 31 / - COUNT ( + 71 ) + NULLIF ( - 96, - ( + ( - 94 ) ) * + 1 - - 59 * - 74 ) THEN COALESCE ( - 68, + 65 + - CASE 85 + 27 WHEN 36 THEN ( 66 ) END ) END + - ( + 42 + ( ( + 6 ) ) ) ) + + 36 THEN + ( - 88 ) + + 51 * 45 WHEN 11 THEN NULL WHEN 15 + - 20 * + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END / CASE COUNT ( * ) - + 10 / 7 WHEN + 49 / 86 THEN - 24 WHEN 79 * 90 THEN 54 / 43 + - COUNT ( * ) END + 6 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT DISTINCT - MAX( - 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT - MAX ( - 38 ) AS col2
----
38

query I rowsort
SELECT 36 + + 0 AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3582
SELECT ALL + ( NULLIF ( - COUNT( * ), + 67 + 20 * 33 * 87 * - - 1 DIV + 81 * 62 ) ) DIV + 68 col1
----
0

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + ( NULLIF ( - COUNT ( * ), + 67 + 20 * 33 * 87 * - - 1 / + 81 * 62 ) ) / + 68 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT 7 DIV - 7
----
-1

skipif mysql # not compatible
query I rowsort label-3583
SELECT 7 / - 7
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3584
SELECT 54 * CAST( NULL AS DECIMAL ) * - ( + CAST( 74 AS SIGNED ) ) * - 40 / 71 * 61 * + - 19 * + + 41 + - + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT 54 * CAST ( NULL AS REAL ) * - ( + CAST ( 74 AS INTEGER ) ) * - 40 / 71 * 61 * + - 19 * + + 41 + - + 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3585
SELECT + COUNT( * ) DIV - + 87 * + 43 + 6 DIV - 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-3585
SELECT + COUNT ( * ) / - + 87 * + 43 + 6 / - 93 col2
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT ALL - 91 * NULLIF ( 93, + 88 ) DIV - ( - + 12 )
----
-705

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL - 91 * NULLIF ( 93, + 88 ) / - ( - + 12 )
----
-705

query I rowsort
SELECT 71 + + - NULLIF ( + 50, + 89 ) col0
----
21

query II rowsort
SELECT + 48 AS col2, - 95 + 85 AS col0
----
48
-10

query I rowsort
SELECT DISTINCT - 28 + 81
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT + 74 + - 99 + 89 + - SUM( DISTINCT 20 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT + 74 + - 99 + 89 + - SUM ( DISTINCT 20 ) AS col0
----
44

query II rowsort
SELECT 66, + 52 AS col1
----
66
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT ALL 52 + - - 9 + - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL 52 + - - 9 + - COUNT ( * )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT ALL CASE + - 35 WHEN + 36 THEN NULL WHEN - 61 * - 33 * + 8 * - - 20 + - 1 THEN 12 + - + 5 WHEN - CAST( + 90 AS SIGNED ) THEN 67 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL CASE + - 35 WHEN + 36 THEN NULL WHEN - 61 * - 33 * + 8 * - - 20 + - 1 THEN 12 + - + 5 WHEN - CAST ( + 90 AS INTEGER ) THEN 67 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT + MAX( DISTINCT - 47 ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-3595
SELECT + MAX ( DISTINCT - 47 ) col1
----
-47

query I rowsort
SELECT - 87 * 98 * - 5 * - 30 AS col0
----
-1278900

query I rowsort
SELECT + 56 * - 11
----
-616

query II rowsort
SELECT DISTINCT - 97 AS col0, 24 col0
----
-97
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3599
SELECT DISTINCT COUNT( * ) + - 48 * 85 AS col1, + 35 col2
----
-4079
35

skipif mysql # not compatible
query II rowsort label-3599
SELECT DISTINCT COUNT ( * ) + - 48 * 85 AS col1, + 35 col2
----
-4079
35

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

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL + COUNT ( * ) + 48 AS col1
----
49

query I rowsort
SELECT DISTINCT - ( - 63 ) + - 20 AS col2
----
43

query I rowsort
SELECT + 23 * 5
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT DISTINCT CASE + 27 WHEN + 70 + + - 29 / + + CASE + 32 WHEN 67 + + 18 / - 46 * + 77 + - 52 THEN 88 * - COUNT( * ) * - + 54 WHEN 14 + NULLIF ( 1 - - 94, COUNT( * ) ) THEN NULL ELSE NULL END THEN + 66 * 52 WHEN - 92 THEN - 50 + 63 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT CASE + 27 WHEN + 70 + + - 29 / + + CASE + 32 WHEN 67 + + 18 / - 46 * + 77 + - 52 THEN 88 * - COUNT ( * ) * - + 54 WHEN 14 + NULLIF ( 1 - - 94, COUNT ( * ) ) THEN NULL ELSE NULL END THEN + 66 * 52 WHEN - 92 THEN - 50 + 63 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ALL 6 * - - CASE - 61 WHEN MAX( DISTINCT - 62 ) THEN - COUNT( * ) END * - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL 6 * - - CASE - 61 WHEN MAX ( DISTINCT - 62 ) THEN - COUNT ( * ) END * - 5 AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( + + 27, - - 51 ) - - 32
----
59

query I rowsort
SELECT - 89 * - - 65 AS col1
----
-5785

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

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

query I rowsort
SELECT DISTINCT 51 - + + NULLIF ( - - 2, - - ( 92 ) )
----
49

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

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

query I rowsort
SELECT + + 32 * 54 - - 16 + 43 + - 90 - + ( - 46 ) + + 83 col2
----
1826

query I rowsort
SELECT DISTINCT + CASE + 93 WHEN - 65 THEN NULL WHEN - 48 THEN - 77 END
----
NULL

query II rowsort
SELECT - 11, + 65 col2
----
-11
65

query I rowsort
SELECT + 54 * - + ( 50 ) col1
----
-2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3615
SELECT - MAX( - 75 ) * - CAST( + COALESCE ( 37, - 48 ) AS SIGNED ) AS col0, - COUNT( * ) - - 69 AS col1
----
-2775
68

skipif mysql # not compatible
query II rowsort label-3615
SELECT - MAX ( - 75 ) * - CAST ( + COALESCE ( 37, - 48 ) AS INTEGER ) AS col0, - COUNT ( * ) - - 69 AS col1
----
-2775
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3616
SELECT DISTINCT + CAST( 9 AS SIGNED ) * - 77 + COUNT( DISTINCT - 16 ) AS col0
----
-692

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT + CAST ( 9 AS INTEGER ) * - 77 + COUNT ( DISTINCT - 16 ) AS col0
----
-692

query I rowsort
SELECT 86 * + - 73 - + - 54 AS col1
----
-6224

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3619
SELECT DISTINCT ( - 86 ) * 11 + - CAST( NULL AS SIGNED ) + + AVG ( DISTINCT - ( + 34 ) ) + COUNT( * ) + + MAX( ALL - ( - 1 ) ) * COUNT( * ) * + - ( + 93 ) * - + 8 * + + CAST( - 47 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT ( - 86 ) * 11 + - CAST ( NULL AS INTEGER ) + + AVG ( DISTINCT - ( + 34 ) ) + COUNT ( * ) + + MAX ( ALL - ( - 1 ) ) * COUNT ( * ) * + - ( + 93 ) * - + 8 * + + CAST ( - 47 AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( + ( - 42 ), - - 23 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3621
SELECT ALL + ( 51 ) * - + 33 * - 13 / + 69 / - - 62 + + CASE - COUNT( * ) WHEN - 87 THEN - 9 WHEN CAST( NULL AS SIGNED ) - + CAST( + COUNT( * ) AS SIGNED ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL + ( 51 ) * - + 33 * - 13 / + 69 / - - 62 + + CASE - COUNT ( * ) WHEN - 87 THEN - 9 WHEN CAST ( NULL AS INTEGER ) - + CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3622
SELECT DISTINCT - 35 * - - 45 * + - 5 * 35 * + - CASE + 5 WHEN - 16 / + + COUNT( * ) * - - 36 + - + 93 THEN NULL WHEN - + ( CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 12 THEN + COUNT( * ) + - COUNT( * ) ELSE NULL END + - 91 - - 8 / + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT - 35 * - - 45 * + - 5 * 35 * + - CASE + 5 WHEN - 16 / + + COUNT ( * ) * - - 36 + - + 93 THEN NULL WHEN - + ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 12 THEN + COUNT ( * ) + - COUNT ( * ) ELSE NULL END + - 91 - - 8 / + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL COUNT( * ) * - 85 + 99 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL COUNT ( * ) * - 85 + 99 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT NULLIF ( - COUNT( * ), 88 * + + 87 ) * 11 - + - ( - 70 ) * - CASE + 47 WHEN + 1 THEN + 36 WHEN COALESCE ( - 18, + 1, + 32 ) * - 70 THEN + 4 + 31 END + + ( 26 ) * - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT NULLIF ( - COUNT ( * ), 88 * + + 87 ) * 11 - + - ( - 70 ) * - CASE + 47 WHEN + 1 THEN + 36 WHEN COALESCE ( - 18, + 1, + 32 ) * - 70 THEN + 4 + 31 END + + ( 26 ) * - 74 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3625
SELECT ALL ( - + 98 ) * + 95 - - 48 + - CAST( NULL AS SIGNED ) * - COALESCE ( - ( CAST( 36 AS DECIMAL ) ), - ( + COALESCE ( MAX( - 53 ), + MIN( ALL - ( - 54 ) ) * MIN( - 56 ) ) ) * 28 - + 93 * ( + 51 + 90 ) ) / 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL ( - + 98 ) * + 95 - - 48 + - CAST ( NULL AS INTEGER ) * - COALESCE ( - ( CAST ( 36 AS REAL ) ), - ( + COALESCE ( MAX ( - 53 ), + MIN ( ALL - ( - 54 ) ) * MIN ( - 56 ) ) ) * 28 - + 93 * ( + 51 + 90 ) ) / 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT - COALESCE ( - 41, + COALESCE ( + 76, + 63 ) ) DIV - 7 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3626
SELECT - COALESCE ( - 41, + COALESCE ( + 76, + 63 ) ) / - 7 AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT - 47 DIV - + 38
----
1

skipif mysql # not compatible
query I rowsort label-3627
SELECT - 47 / - + 38
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3628
SELECT - 58 + 58 + + - 0 * + 43 DIV + 76 + + 36 + + + 39 * - 82 AS col1
----
-3162

skipif mysql # not compatible
query I rowsort label-3628
SELECT - 58 + 58 + + - 0 * + 43 / + 76 + + 36 + + + 39 * - 82 AS col1
----
-3162

query I rowsort
SELECT ALL - 15 * + ( - + 17 ) AS col0
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3630
SELECT + 67 * + CASE + 45 WHEN - - COALESCE ( - 1, - SUM( - 3 ), + NULLIF ( + - 21, + + COUNT( * ) ) * - 88 * - - CAST( NULL AS SIGNED ) ) THEN NULL ELSE 19 * + 40 - 76 END + + 39 - 15 * + 63
----
44922

skipif mysql # not compatible
query I rowsort label-3630
SELECT + 67 * + CASE + 45 WHEN - - COALESCE ( - 1, - SUM ( - 3 ), + NULLIF ( + - 21, + + COUNT ( * ) ) * - 88 * - - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 19 * + 40 - 76 END + + 39 - 15 * + 63
----
44922

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3632
SELECT - 48 AS col2, 70 * - - CAST( ( - 87 ) AS SIGNED ) + + COALESCE ( - 4, COUNT( * ) * - 5, COALESCE ( 66, 27, - + 4 ) ) * - 49 * + - ( - - 8 ) * 95 + + 22 AS col1
----
-48
-155028

skipif mysql # not compatible
query II rowsort label-3632
SELECT - 48 AS col2, 70 * - - CAST ( ( - 87 ) AS INTEGER ) + + COALESCE ( - 4, COUNT ( * ) * - 5, COALESCE ( 66, 27, - + 4 ) ) * - 49 * + - ( - - 8 ) * 95 + + 22 AS col1
----
-48
-155028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT ALL + - 64 * + 53 / - MAX( + 32 ) * + 80 - - 69 + + ( - - 19 ) + + 66 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL + - 64 * + 53 / - MAX ( + 32 ) * + 80 - - 69 + + ( - - 19 ) + + 66 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 35 * 9 - NULLIF ( + - 56, - + 63 ) * - 5 AS col2
----
35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3636
SELECT - + COUNT( + 77 ) * + COALESCE ( - + 2, - 55 ) DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-3636
SELECT - + COUNT ( + 77 ) * + COALESCE ( - + 2, - 55 ) / 17
----
0

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

skipif mysql # not compatible
query I rowsort label-3637
SELECT - + NULLIF ( COUNT ( * ), + 8 )
----
-1

query II rowsort
SELECT - + 53, 53 * - 29 - 60 AS col1
----
-53
-1597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT - + SUM( ALL - + 38 ) + + CAST( 73 AS SIGNED ) + + COALESCE ( + - 94, + COUNT( * ) * + 33, 85 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3639
SELECT - + SUM ( ALL - + 38 ) + + CAST ( 73 AS INTEGER ) + + COALESCE ( + - 94, + COUNT ( * ) * + 33, 85 ) AS col1
----
17

query I rowsort
SELECT - + NULLIF ( + CASE + COALESCE ( ( - 65 ), + COALESCE ( + + 13, + - 15 ) + + 20 ) WHEN 94 THEN + 44 WHEN + + 60 + + 48 + ( + 14 ) * - 34 THEN NULL END, 58 ) / + 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT DISTINCT 35 * - 94 * + - 62 * - NULLIF ( - COUNT( * ), + - 92 )
----
203980

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT 35 * - 94 * + - 62 * - NULLIF ( - COUNT ( * ), + - 92 )
----
203980

query II rowsort
SELECT DISTINCT - 61 AS col0, + 95 * 75 + + - 91
----
-61
7034

query II rowsort
SELECT ALL 67 AS col2, 4 + + ( - - 41 ) * - 81 AS col1
----
67
-3317

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT ALL SUM( ( + 93 ) ) - + + ( + 24 ) * - 93, - 86 AS col0
----
2325
-86

skipif mysql # not compatible
query II rowsort label-3644
SELECT ALL SUM ( ( + 93 ) ) - + + ( + 24 ) * - 93, - 86 AS col0
----
2325
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3645
SELECT + 23 * - CAST( NULL AS DECIMAL ) AS col1, - 63
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-3645
SELECT + 23 * - CAST ( NULL AS REAL ) AS col1, - 63
----
NULL
-63

query I rowsort
SELECT ALL - 56 * + 14 AS col1
----
-784

query I rowsort
SELECT DISTINCT + 39 * - 1
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-3648
SELECT ALL + COUNT( * ) AS col0, 9 * - 91 * - - 59 - + 86
----
1
-48407

skipif mysql # not compatible
query II rowsort label-3648
SELECT ALL + COUNT ( * ) AS col0, 9 * - 91 * - - 59 - + 86
----
1
-48407

onlyif mysql # aggregate syntax: 
query II rowsort label-3649
SELECT + + 70 + + 0 * + MIN( + 30 ), + 88 col2
----
70
88

skipif mysql # not compatible
query II rowsort label-3649
SELECT + + 70 + + 0 * + MIN ( + 30 ), + 88 col2
----
70
88

query I rowsort
SELECT ALL - 64 * + 82
----
-5248

query I rowsort
SELECT ALL 49 * - ( + 1 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3652
SELECT - 55 DIV ( + COUNT( * ) ) * + 5
----
-275

skipif mysql # not compatible
query I rowsort label-3652
SELECT - 55 / ( + COUNT ( * ) ) * + 5
----
-275

query I rowsort
SELECT + 72 + + 26 - + - ( 81 ) AS col0
----
179

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

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

query I rowsort
SELECT ALL ( ( - 84 ) ) + - + 7 AS col0
----
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3657
SELECT + 45 DIV 72 + 75 + - 59 * - - 43 * - - 45 - - 96
----
-113994

skipif mysql # not compatible
query I rowsort label-3657
SELECT + 45 / 72 + 75 + - 59 * - - 43 * - - 45 - - 96
----
-113994

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3659
SELECT ALL CAST( NULL AS DECIMAL ) / + 15 + + - ( - 95 ) * 52, + 5 AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-3659
SELECT ALL CAST ( NULL AS REAL ) / + 15 + + - ( - 95 ) * 52, + 5 AS col2
----
NULL
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3660
SELECT + 95 + - - 88 + + 32 - - NULLIF ( + 71, + + 31 ) + + 23 DIV COUNT( * ), 82 * - - 3 col0
----
309
246

skipif mysql # not compatible
query II rowsort label-3660
SELECT + 95 + - - 88 + + 32 - - NULLIF ( + 71, + + 31 ) + + 23 / COUNT ( * ), 82 * - - 3 col0
----
309
246

query I rowsort
SELECT + 35 * + 43 col2
----
1505

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL - COUNT( * ) * - + 55 + - ( + - 45 ) + + 90 + + 83 + 26 * - - ( - ( ( + 73 ) ) ) + 1 AS col1
----
-1624

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL - COUNT ( * ) * - + 55 + - ( + - 45 ) + + 90 + + 83 + 26 * - - ( - ( ( + 73 ) ) ) + 1 AS col1
----
-1624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL + 38 * - - SUM( ALL - - CAST( 8 AS SIGNED ) ) - - 31
----
335

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + 38 * - - SUM ( ALL - - CAST ( 8 AS INTEGER ) ) - - 31
----
335

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + - 6 * ( COUNT( * ) ) + 70 + 27
----
91

skipif mysql # not compatible
query I rowsort label-3664
SELECT + - 6 * ( COUNT ( * ) ) + 70 + 27
----
91

query I rowsort
SELECT - - 0 * - 69 * + - 75
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3666
SELECT ALL - 62 * - - 19 AS col2, - 52 * - CAST( NULL AS SIGNED ) + + - 14 + 58 + 95 * - 90 * + 79 col2
----
-1178
NULL

skipif mysql # not compatible
query II rowsort label-3666
SELECT ALL - 62 * - - 19 AS col2, - 52 * - CAST ( NULL AS INTEGER ) + + - 14 + 58 + 95 * - 90 * + 79 col2
----
-1178
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3667
SELECT 55 * - 16 + + MAX( ALL 74 ) * - + 32 AS col1, 26
----
-3248
26

skipif mysql # not compatible
query II rowsort label-3667
SELECT 55 * - 16 + + MAX ( ALL 74 ) * - + 32 AS col1, 26
----
-3248
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3668
SELECT - CAST( - MAX( + + 39 ) AS SIGNED ) + - + 14 col2
----
25

skipif mysql # not compatible
query I rowsort label-3668
SELECT - CAST ( - MAX ( + + 39 ) AS INTEGER ) + - + 14 col2
----
25

query I rowsort
SELECT DISTINCT - NULLIF ( - 53, - 72 )
----
53

query I rowsort
SELECT ALL + 70 * - + 39 * 46
----
-125580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT - 94 * + + CAST( + 15 AS SIGNED ) AS col2
----
-1410

skipif mysql # not compatible
query I rowsort label-3671
SELECT - 94 * + + CAST ( + 15 AS INTEGER ) AS col2
----
-1410

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3672
SELECT DISTINCT CAST( - - ( + - 50 ) AS SIGNED ) AS col2, + 23
----
-50
23

skipif mysql # not compatible
query II rowsort label-3672
SELECT DISTINCT CAST ( - - ( + - 50 ) AS INTEGER ) AS col2, + 23
----
-50
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT DISTINCT NULLIF ( - + 65, - 27 * COUNT( * ) * COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT NULLIF ( - + 65, - 27 * COUNT ( * ) * COUNT ( * ) )
----
-65

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3675
SELECT COUNT( * ) + - 44 AS col1, COUNT( * ) + - 32 * - COALESCE ( - - 64, + 87 DIV 84, + COUNT( * ) * + 7 )
----
-43
2049

skipif mysql # not compatible
query II rowsort label-3675
SELECT COUNT ( * ) + - 44 AS col1, COUNT ( * ) + - 32 * - COALESCE ( - - 64, + 87 / 84, + COUNT ( * ) * + 7 )
----
-43
2049

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT + 34 - COUNT( * ) * - 48
----
82

skipif mysql # not compatible
query I rowsort label-3676
SELECT + 34 - COUNT ( * ) * - 48
----
82

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

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

query II rowsort
SELECT ALL + 19 + + 49, + 57 AS col0
----
68
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT 62 + - 41 * - + COUNT( * ) - + 70 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3679
SELECT 62 + - 41 * - + COUNT ( * ) - + 70 AS col2
----
33

query II rowsort
SELECT ALL 37 + 76 * - - 34 AS col1, 74 * 35 AS col1
----
2621
2590

query I rowsort
SELECT ALL 95 * + 1
----
95

query I rowsort
SELECT ALL - 59 + + + 53 * 80 * 40 AS col2
----
169541

query I rowsort
SELECT DISTINCT 30 * - 6
----
-180

query I rowsort
SELECT ALL 89 + - 72 * 56
----
-3943

onlyif mysql # aggregate syntax: 
query II rowsort label-3685
SELECT - 79 AS col2, + 1 + 99 - - 69 + COALESCE ( + 91, + 9, - COUNT( * ), + NULLIF ( + 68, - + 2 * - 96 * - 60 + - 73 * + COUNT( * ) + + + 66 * - 93 ) ) + COALESCE ( + 86, 36 * 81 ) * + 45 AS col1
----
-79
4130

skipif mysql # not compatible
query II rowsort label-3685
SELECT - 79 AS col2, + 1 + 99 - - 69 + COALESCE ( + 91, + 9, - COUNT ( * ), + NULLIF ( + 68, - + 2 * - 96 * - 60 + - 73 * + COUNT ( * ) + + + 66 * - 93 ) ) + COALESCE ( + 86, 36 * 81 ) * + 45 AS col1
----
-79
4130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3686
SELECT ALL + 87 + + 37 * 99 * - 42 DIV - + COUNT( * ) + + + 22 col2
----
153955

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + 87 + + 37 * 99 * - 42 / - + COUNT ( * ) + + + 22 col2
----
153955

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL - 32 * + + MAX( - + 56 ) AS col1
----
1792

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - 32 * + + MAX ( - + 56 ) AS col1
----
1792

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT 71 DIV + ( - - 33 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-3688
SELECT 71 / + ( - - 33 ) col1
----
2

query I rowsort
SELECT ALL 36 * + ( + ( - COALESCE ( + 10, 87 ) ) ) AS col1
----
-360

query I rowsort
SELECT DISTINCT 94 * 53 * - 79
----
-393578

query I rowsort
SELECT ALL 53 + - 44 AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT 60 DIV - 64 - + ( 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-3692
SELECT 60 / - 64 - + ( 4 )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3693
SELECT MIN( + + 4 ) DIV - 99 + + - 7 + ( + 29 )
----
22

skipif mysql # not compatible
query I rowsort label-3693
SELECT MIN ( + + 4 ) / - 99 + + - 7 + ( + 29 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3694
SELECT ALL 23 - - 34 + + + 19 AS col0, + CASE 60 WHEN - CAST( + + 75 AS SIGNED ) + 66 / - + 40 THEN + NULLIF ( + ( - NULLIF ( + ( + + CASE WHEN NULL IN ( COUNT( DISTINCT - 77 ) ) THEN NULL ELSE - COUNT( * ) - 57 * - CAST( - 36 - + ( + 26 ) AS SIGNED ) END ), + 25 ) ), 62 ) + NULLIF ( 13, 24 * 30 ) WHEN 33 THEN NULL ELSE NULL END * 1
----
76
NULL

skipif mysql # not compatible
query II rowsort label-3694
SELECT ALL 23 - - 34 + + + 19 AS col0, + CASE 60 WHEN - CAST ( + + 75 AS INTEGER ) + 66 / - + 40 THEN + NULLIF ( + ( - NULLIF ( + ( + + CASE WHEN NULL IN ( COUNT ( DISTINCT - 77 ) ) THEN NULL ELSE - COUNT ( * ) - 57 * - CAST ( - 36 - + ( + 26 ) AS INTEGER ) END ), + 25 ) ), 62 ) + NULLIF ( 13, 24 * 30 ) WHEN 33 THEN NULL ELSE NULL END * 1
----
76
NULL

query II rowsort
SELECT DISTINCT - 44 AS col0, 99 + - 34 - + 69 * 96 AS col0
----
-44
-6559

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT DISTINCT 52 - - + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT 52 - - + COUNT ( * ) AS col2
----
53

query II rowsort
SELECT DISTINCT - 57, + 85 col0
----
-57
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL + 26 * + SUM( DISTINCT + + 41 ) * + 5 AS col0
----
5330

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + 26 * + SUM ( DISTINCT + + 41 ) * + 5 AS col0
----
5330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3699
SELECT - COUNT( * ) * COUNT( * ) - - CAST( - 96 AS SIGNED ) AS col0, COUNT( * ) col0
----
-97
1

skipif mysql # not compatible
query II rowsort label-3699
SELECT - COUNT ( * ) * COUNT ( * ) - - CAST ( - 96 AS INTEGER ) AS col0, COUNT ( * ) col0
----
-97
1

query I rowsort
SELECT ALL 72 * - 72 - 16 + - 96 * - + 61 * 88 * 49
----
25245872

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT - 42 + 53 + + + 68 + - 58 * + 34 * 69 + - COUNT( * ) * 44 * + - COUNT( * )
----
-135945

skipif mysql # not compatible
query I rowsort label-3701
SELECT - 42 + 53 + + + 68 + - 58 * + 34 * 69 + - COUNT ( * ) * 44 * + - COUNT ( * )
----
-135945

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3702
SELECT 90 * + 68 * - 53, + 20 * - CAST( NULL AS SIGNED ) AS col2
----
-324360
NULL

skipif mysql # not compatible
query II rowsort label-3702
SELECT 90 * + 68 * - 53, + 20 * - CAST ( NULL AS INTEGER ) AS col2
----
-324360
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3703
SELECT DISTINCT - + COALESCE ( + + CASE - + MIN( + 37 ) WHEN + + 36 + - ( + 89 ) THEN - COUNT( * ) + + 74 - + + 86 DIV 92 END, + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT - + COALESCE ( + + CASE - + MIN ( + 37 ) WHEN + + 36 + - ( + 89 ) THEN - COUNT ( * ) + + 74 - + + 86 / 92 END, + 19 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT ALL - - 46 DIV + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL - - 46 / + 57 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3705
SELECT + COUNT( * ) + - 47 + + NULLIF ( 46, + - 63 ) DIV + 55 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3705
SELECT + COUNT ( * ) + - 47 + + NULLIF ( 46, + - 63 ) / + 55 AS col2
----
-46

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

query I rowsort
SELECT - 50 * - 34 + - 13 + 40 + 58 AS col1
----
1785

onlyif mysql # aggregate syntax: 
query II rowsort label-3708
SELECT COUNT( * ), ( + COUNT( * ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-3708
SELECT COUNT ( * ), ( + COUNT ( * ) )
----
1
1

query I rowsort
SELECT 39 * 47 AS col2
----
1833

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ALL - + COALESCE ( - COUNT( * ), - 70 ) + - 61 col1
----
-60

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL - + COALESCE ( - COUNT ( * ), - 70 ) + - 61 col1
----
-60

query II rowsort
SELECT 13 AS col2, + ( 3 )
----
13
3

query I rowsort
SELECT + 80 + 55
----
135

query I rowsort
SELECT ALL - 64 * 76
----
-4864

query I rowsort
SELECT 36 + + 78
----
114

query I rowsort
SELECT ALL 31 + + 86 * 17 AS col2
----
1493

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT 61 + + 50 DIV + + 92
----
61

skipif mysql # not compatible
query I rowsort label-3717
SELECT 61 + + 50 / + + 92
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3718
SELECT ALL - 55 + - COUNT( * ) AS col0, + 75 + 70 AS col1
----
-56
145

skipif mysql # not compatible
query II rowsort label-3718
SELECT ALL - 55 + - COUNT ( * ) AS col0, + 75 + 70 AS col1
----
-56
145

query II rowsort
SELECT DISTINCT - 46 * + - 43 AS col2, ( + 73 )
----
1978
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3720
SELECT 42 + + + CASE 85 WHEN + + 36 * + 35 THEN + COUNT( * ) - - CAST( - 32 AS SIGNED ) ELSE NULL END * - + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT 42 + + + CASE 85 WHEN + + 36 * + 35 THEN + COUNT ( * ) - - CAST ( - 32 AS INTEGER ) ELSE NULL END * - + 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL - 28 + - ( + NULLIF ( MAX( DISTINCT - 36 ), - 82 + - 84 ) ) + + - 44 col2
----
-36

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - 28 + - ( + NULLIF ( MAX ( DISTINCT - 36 ), - 82 + - 84 ) ) + + - 44 col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT 51 + - 51 + - COUNT( * ) + COALESCE ( - 87, 1 * + COALESCE ( - + 50, - - COUNT( * ) ) ) * + + COUNT( - + 31 )
----
-88

skipif mysql # not compatible
query I rowsort label-3722
SELECT 51 + - 51 + - COUNT ( * ) + COALESCE ( - 87, 1 * + COALESCE ( - + 50, - - COUNT ( * ) ) ) * + + COUNT ( - + 31 )
----
-88

query I rowsort
SELECT 87 * + 99 * - 9 AS col2
----
-77517

query I rowsort
SELECT 61 + - 95 + + + 75 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT ALL MAX( - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL MAX ( - 70 )
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT ALL - 1 DIV - 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL - 1 / - 9 AS col2
----
0

query I rowsort
SELECT 70 + - + 52 AS col1
----
18

query I rowsort
SELECT 77 * 9
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT DISTINCT 41 * - - CASE + - MIN( - 96 ) WHEN - + 34 THEN - 25 WHEN + 12 * - 91 * 6 THEN NULL END * - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT 41 * - - CASE + - MIN ( - 96 ) WHEN - + 34 THEN - 25 WHEN + 12 * - 91 * 6 THEN NULL END * - + 30
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3731
SELECT ALL SUM( DISTINCT 72 ) * + NULLIF ( CAST( NULL AS SIGNED ), - 29 / 14 ) * + COUNT( * ), 31 + - 37 AS col1
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-3731
SELECT ALL SUM ( DISTINCT 72 ) * + NULLIF ( CAST ( NULL AS INTEGER ), - 29 / 14 ) * + COUNT ( * ), 31 + - 37 AS col1
----
NULL
-6

query I rowsort
SELECT ALL + 93 * - 30 AS col1
----
-2790

query I rowsort
SELECT DISTINCT + 84 * - + 61
----
-5124

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT COALESCE ( - + COUNT( * ), + 31 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3734
SELECT COALESCE ( - + COUNT ( * ), + 31 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT + MIN( DISTINCT - + 31 ) * + 29
----
-899

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + MIN ( DISTINCT - + 31 ) * + 29
----
-899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3736
SELECT ALL + - CASE WHEN + 62 <> + + 70 THEN 90 ELSE 33 DIV ( - 28 ) - + + 32 + COALESCE ( + NULLIF ( - 9, + + 25 ), CASE 54 WHEN - - COUNT( - 0 ) * 74 THEN - - 74 - CAST( - 98 AS SIGNED ) WHEN + 71 THEN 48 + 62 WHEN MIN( DISTINCT 55 ) * - 23 THEN NULL ELSE - 53 * + 79 + 47 END DIV + 17 ) * 31 + - 23 END
----
-90

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL + - CASE WHEN + 62 <> + + 70 THEN 90 ELSE 33 / ( - 28 ) - + + 32 + COALESCE ( + NULLIF ( - 9, + + 25 ), CASE 54 WHEN - - COUNT ( - 0 ) * 74 THEN - - 74 - CAST ( - 98 AS INTEGER ) WHEN + 71 THEN 48 + 62 WHEN MIN ( DISTINCT 55 ) * - 23 THEN NULL ELSE - 53 * + 79 + 47 END / + 17 ) * 31 + - 23 END
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3737
SELECT + - ( + - 10 ) DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-3737
SELECT + - ( + - 10 ) / + 98
----
0

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

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

query I rowsort
SELECT DISTINCT - - 53 * + 15
----
795

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT + + 4 * COUNT( ALL 77 )
----
4

skipif mysql # not compatible
query I rowsort label-3741
SELECT + + 4 * COUNT ( ALL 77 )
----
4

query I rowsort
SELECT + 12 * + + 61 + ( - 46 ) * - - 98 AS col0
----
-3776

query II rowsort
SELECT ALL 86 + + - 53 AS col1, 15 AS col2
----
33
15

query II rowsort
SELECT ALL - 27 * 42 AS col2, - ( + - 12 ) AS col2
----
-1134
12

query I rowsort
SELECT ALL - 59 + 91 AS col1
----
32

query I rowsort
SELECT ALL + 5 + 42 AS col1
----
47

query I rowsort
SELECT - 54 - - 95
----
41

query I rowsort
SELECT ALL 77 + 44 AS col2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-3749
SELECT ALL + 96 DIV + + 50
----
1

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL + 96 / + + 50
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - COUNT( * ) + - - 83 * 44 + 50
----
3701

skipif mysql # not compatible
query I rowsort label-3751
SELECT - COUNT ( * ) + - - 83 * 44 + 50
----
3701

query I rowsort
SELECT DISTINCT NULLIF ( 81, - - 52 )
----
81

query I rowsort
SELECT ALL + 70 * + + 55 AS col0
----
3850

query II rowsort
SELECT 2 AS col1, - 1
----
2
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3755
SELECT ALL 18 DIV + COALESCE ( + + 76, + 74 )
----
0

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL 18 / + COALESCE ( + + 76, + 74 )
----
0

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

skipif mysql # not compatible
query I rowsort label-3756
SELECT - COUNT ( * ) * - 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT DISTINCT - 25 * MAX( + 18 )
----
-450

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT - 25 * MAX ( + 18 )
----
-450

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

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

query I rowsort
SELECT DISTINCT ( 51 ) AS col0
----
51

query I rowsort
SELECT ALL + 98 * + - 15
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT - + SUM( - 37 ) * - 60
----
-2220

skipif mysql # not compatible
query I rowsort label-3761
SELECT - + SUM ( - 37 ) * - 60
----
-2220

onlyif mysql # DIV for integer division: 
query I rowsort label-3762
SELECT + 46 DIV 2 + 77 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-3762
SELECT + 46 / 2 + 77 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - - MIN( ALL + 64 ) + - - 67
----
131

skipif mysql # not compatible
query I rowsort label-3763
SELECT - - MIN ( ALL + 64 ) + - - 67
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), - 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), - 71 ) AS col0
----
NULL

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

query I rowsort
SELECT - 60 - + 13 * + 26 * + 1 + 79
----
-319

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3767
SELECT + 59 * - 0 + - 45 - + + 99 DIV + - 94 + - + 81 * - COUNT( * ) * + - 95 * - + SUM( - 89 ) AS col0
----
-684899

skipif mysql # not compatible
query I rowsort label-3767
SELECT + 59 * - 0 + - 45 - + + 99 / + - 94 + - + 81 * - COUNT ( * ) * + - 95 * - + SUM ( - 89 ) AS col0
----
-684899

query I rowsort
SELECT - 17 + - 10 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT CASE + + 16 WHEN 83 THEN - 43 / + - 91 + 11 + 39 - ( + ( - COALESCE ( + 62, - 36, 36 * - SUM( ALL 30 ) * 48 ) ) ) * SUM( + 11 ) * 79 + 72 WHEN - ( 83 ) THEN ( 17 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT CASE + + 16 WHEN 83 THEN - 43 / + - 91 + 11 + 39 - ( + ( - COALESCE ( + 62, - 36, 36 * - SUM ( ALL 30 ) * 48 ) ) ) * SUM ( + 11 ) * 79 + 72 WHEN - ( 83 ) THEN ( 17 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3770
SELECT + CAST( NULL AS SIGNED ) + - CAST( - 56 AS DECIMAL ) + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT + CAST ( NULL AS INTEGER ) + - CAST ( - 56 AS REAL ) + - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT COUNT( * ) * + COUNT( + - 12 ) * + 27 * + + 70 - 89 + COUNT( 92 ) + COALESCE ( 84, + + 68 * + SUM( ALL 78 ), COUNT( * ) ) + - COUNT( * ) - 0 * + - 18 col0
----
1885

skipif mysql # not compatible
query I rowsort label-3771
SELECT COUNT ( * ) * + COUNT ( + - 12 ) * + 27 * + + 70 - 89 + COUNT ( 92 ) + COALESCE ( 84, + + 68 * + SUM ( ALL 78 ), COUNT ( * ) ) + - COUNT ( * ) - 0 * + - 18 col0
----
1885

query I rowsort
SELECT - 49 * - 3 * ( + NULLIF ( + - 1, + 94 ) ) AS col2
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT - SUM( DISTINCT 79 ) * + MAX( DISTINCT + - 97 ) + 20
----
7683

skipif mysql # not compatible
query I rowsort label-3773
SELECT - SUM ( DISTINCT 79 ) * + MAX ( DISTINCT + - 97 ) + 20
----
7683

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + + 62 - + 35 + + 28 * COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3774
SELECT + + 62 - + 35 + + 28 * COUNT ( * ) AS col0
----
55

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT ALL + CAST( NULL AS SIGNED ) * + + 41 - 27 + - + 20 * + 70 * 73 + - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 41 - 27 + - + 20 * + 70 * 73 + - - 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3777
SELECT ALL - MAX( - 7 ) * ( + - 46 ) * + 61 - + 30 + - 36 / 70 + + CAST( NULL AS SIGNED ) + 13 + + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - MAX ( - 7 ) * ( + - 46 ) * + 61 - + 30 + - 36 / 70 + + CAST ( NULL AS INTEGER ) + 13 + + 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT ALL 87 * SUM( DISTINCT + 68 ) * - - 29 + - - 49 + ( COUNT( ALL + 53 ) ) + + COUNT( * )
----
171615

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL 87 * SUM ( DISTINCT + 68 ) * - - 29 + - - 49 + ( COUNT ( ALL + 53 ) ) + + COUNT ( * )
----
171615

query I rowsort
SELECT CASE + AVG ( ALL - NULLIF ( - 37, + 11 ) ) WHEN - 88 THEN - 50 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT + SUM( + - 41 ) + + 10 + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-3780
SELECT + SUM ( + - 41 ) + + 10 + COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT - MAX( ALL + - 4 ) col2
----
4

skipif mysql # not compatible
query I rowsort label-3781
SELECT - MAX ( ALL + - 4 ) col2
----
4

query I rowsort
SELECT ALL 48 * + 51 - - 91
----
2539

query I rowsort
SELECT + 60 + + 39 + - 42 col2
----
57

query I rowsort
SELECT ALL 30 * + 89
----
2670

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT SUM( ALL - 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-3785
SELECT SUM ( ALL - 14 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT + 12 + - ( + + COUNT( * ) ) + + + 83 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3786
SELECT + 12 + - ( + + COUNT ( * ) ) + + + 83 AS col2
----
94

query I rowsort
SELECT ALL 77 - - 10 AS col2
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3788
SELECT + ( - 18 ) * - + 30 + - - ( + ( + 24 ) ) AS col2, COALESCE ( + - COUNT( * ), 63 + + + 91 + 94 + - + 88 * COUNT( * ), + - 28 )
----
564
-1

skipif mysql # not compatible
query II rowsort label-3788
SELECT + ( - 18 ) * - + 30 + - - ( + ( + 24 ) ) AS col2, COALESCE ( + - COUNT ( * ), 63 + + + 91 + 94 + - + 88 * COUNT ( * ), + - 28 )
----
564
-1

query II rowsort
SELECT 87, 68 AS col2
----
87
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT + SUM( DISTINCT + + 64 ) + + MIN( DISTINCT + + 48 )
----
112

skipif mysql # not compatible
query I rowsort label-3790
SELECT + SUM ( DISTINCT + + 64 ) + + MIN ( DISTINCT + + 48 )
----
112

query I rowsort
SELECT - 58 + + NULLIF ( - + 6, + + 48 * + 27 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-3792
SELECT ALL MIN( DISTINCT - - 95 ) AS col0, + 22 + + 6
----
95
28

skipif mysql # not compatible
query II rowsort label-3792
SELECT ALL MIN ( DISTINCT - - 95 ) AS col0, + 22 + + 6
----
95
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT + CAST( 60 AS SIGNED ) + - 26 - - 37 * 59
----
2217

skipif mysql # not compatible
query I rowsort label-3793
SELECT + CAST ( 60 AS INTEGER ) + - 26 - - 37 * 59
----
2217

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT MIN( DISTINCT - 62 ) + + + 73 col2
----
11

skipif mysql # not compatible
query I rowsort label-3794
SELECT MIN ( DISTINCT - 62 ) + + + 73 col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3795
SELECT 24 DIV + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3795
SELECT 24 / + 72 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3796
SELECT ALL - 39 DIV - MAX( - 93 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - 39 / - MAX ( - 93 ) AS col2
----
0

query I rowsort
SELECT 95 + - 74 + - 65 * + 64 col0
----
-4139

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT - 45 + COUNT( DISTINCT + 86 ) * - + CASE - - COUNT( * ) WHEN 43 THEN - 41 WHEN + 46 THEN 0 END * - 86 * 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT - 45 + COUNT ( DISTINCT + 86 ) * - + CASE - - COUNT ( * ) WHEN 43 THEN - 41 WHEN + 46 THEN 0 END * - 86 * 54 AS col2
----
NULL

query I rowsort
SELECT ALL + 87 * + 32 AS col2
----
2784

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT - 6 DIV - - 46 + - + 51 + - 49 + - + COALESCE ( + + 10, 41 ) DIV - 93 + - + 92 * 57
----
-5344

skipif mysql # not compatible
query I rowsort label-3801
SELECT - 6 / - - 46 + - + 51 + - 49 + - + COALESCE ( + + 10, 41 ) / - 93 + - + 92 * 57
----
-5344

query I rowsort
SELECT ALL 18 + - + 21 - - 69 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT COUNT( * ) + + - NULLIF ( + - 54, 44 + + + 85 ) * + - 88 * - 74 + - - ( - COUNT( * ) ) AS col1
----
351648

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT COUNT ( * ) + + - NULLIF ( + - 54, 44 + + + 85 ) * + - 88 * - 74 + - - ( - COUNT ( * ) ) AS col1
----
351648

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT + SUM( - 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-3804
SELECT + SUM ( - 77 ) AS col0
----
-77

query I rowsort
SELECT ALL - + 23 + - 22 AS col1
----
-45

query I rowsort
SELECT + 85 * - - 83
----
7055

query I rowsort
SELECT NULLIF ( + + 71, + ( - 44 ) ) * 41 * 9 AS col1
----
26199

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3809
SELECT ALL - + 48 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL - + 48 + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT 1, + 85 * + 0 AS col2
----
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT - 51 DIV 21 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3811
SELECT - 51 / 21 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT ALL + - 35 + - 10 + + 75 DIV - 75
----
-46

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + - 35 + - 10 + + 75 / - 75
----
-46

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

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

query II rowsort
SELECT ALL - 36 - - 91 * - 99 + + + 6, 48 + - 13 col2
----
-9039
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL - NULLIF ( - + 3, - COUNT( * ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL - NULLIF ( - + 3, - COUNT ( * ) ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT + + 6 - - - MAX( - 35 )
----
41

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT + + 6 - - - MAX ( - 35 )
----
41

query I rowsort
SELECT ALL + 42 - + + 39 + + ( - NULLIF ( + - 24, - 26 ) ) * + 88 * - 77 + + 77
----
-162544

query I rowsort
SELECT 90 * NULLIF ( + + 33, + ( - - 75 ) ) AS col2
----
2970

onlyif mysql # DIV for integer division: 
query I rowsort label-3820
SELECT 64 - + 78 DIV - 23
----
67

skipif mysql # not compatible
query I rowsort label-3820
SELECT 64 - + 78 / - 23
----
67

query II rowsort
SELECT ALL + 42 * - 50 AS col2, 95
----
-2100
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT ALL 83 DIV COALESCE ( - 82, + - 61 - - 52 * + 24 + + 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL 83 / COALESCE ( - 82, + - 61 - - 52 * + 24 + + 8 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT 80 DIV - 96 * ( - 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3823
SELECT 80 / - 96 * ( - 50 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3824
SELECT 99 - + - COUNT( * ) col2, + 79 * SUM( + + 13 ) * 69 AS col2
----
100
70863

skipif mysql # not compatible
query II rowsort label-3824
SELECT 99 - + - COUNT ( * ) col2, + 79 * SUM ( + + 13 ) * 69 AS col2
----
100
70863

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT MAX( + - 43 ) * - 11 col2
----
473

skipif mysql # not compatible
query I rowsort label-3825
SELECT MAX ( + - 43 ) * - 11 col2
----
473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3826
SELECT CAST( NULL AS SIGNED ) * - - COUNT( * ) * - CAST( - - 29 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * - CAST ( - - 29 AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3827
SELECT ALL - AVG ( + - CAST( NULL AS SIGNED ) ) * 11 col1, - 65 - 53, + 12 AS col1
----
NULL
-118
12

skipif mysql # not compatible
query III rowsort label-3827
SELECT ALL - AVG ( + - CAST ( NULL AS INTEGER ) ) * 11 col1, - 65 - 53, + 12 AS col1
----
NULL
-118
12

query I rowsort
SELECT ALL + 16 + 71 * - 46 + - 22
----
-3272

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

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

query I rowsort
SELECT ALL - 47 + + + 49 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT MIN( ALL 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3831
SELECT MIN ( ALL 66 ) AS col0
----
66

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

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

query I rowsort
SELECT 0 * + 13 * 74 + - 27 AS col1
----
-27

query I rowsort
SELECT 59 * + + ( 13 )
----
767

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3835
SELECT ALL 48 DIV + - 91 AS col1, COALESCE ( + - 44, + 39 * - COUNT( * ) * - 39 )
----
0
-44

skipif mysql # not compatible
query II rowsort label-3835
SELECT ALL 48 / + - 91 AS col1, COALESCE ( + - 44, + 39 * - COUNT ( * ) * - 39 )
----
0
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT ALL - - 14 * + 25 + + 9 DIV 36 + + 43 - + ( 94 ) * + - 69
----
6879

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL - - 14 * + 25 + + 9 / 36 + + 43 - + ( 94 ) * + - 69
----
6879

query I rowsort
SELECT 8 + + ( + 7 ) AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3838
SELECT COUNT( * ) * - 81 DIV 60 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3838
SELECT COUNT ( * ) * - 81 / 60 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3839
SELECT ALL + 29 DIV - - 50 * + 99
----
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL + 29 / - - 50 * + 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3840
SELECT DISTINCT 37 * - CAST( + CAST( 59 AS SIGNED ) AS SIGNED ) + + 32 * + 51 * MIN( DISTINCT 53 ) * 10 + ( 47 ) - + COUNT( * ), 65 col2
----
862823
65

skipif mysql # not compatible
query II rowsort label-3840
SELECT DISTINCT 37 * - CAST ( + CAST ( 59 AS INTEGER ) AS INTEGER ) + + 32 * + 51 * MIN ( DISTINCT 53 ) * 10 + ( 47 ) - + COUNT ( * ), 65 col2
----
862823
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT - 25 * - + 30 * 13 * - + COUNT( ALL 45 ) + - ( - 3 ) * 47 * + COUNT( * ) - - 49 AS col0
----
-9560

skipif mysql # not compatible
query I rowsort label-3842
SELECT - 25 * - + 30 * 13 * - + COUNT ( ALL 45 ) + - ( - 3 ) * 47 * + COUNT ( * ) - - 49 AS col0
----
-9560

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT 8 * + 87 * NULLIF ( + 35, - ( - + COALESCE ( - COUNT( * ), + 18 + 19 / - 84 + + + 43 ) ) ) - - 82 AS col2
----
24442

skipif mysql # not compatible
query I rowsort label-3843
SELECT 8 * + 87 * NULLIF ( + 35, - ( - + COALESCE ( - COUNT ( * ), + 18 + 19 / - 84 + + + 43 ) ) ) - - 82 AS col2
----
24442

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

query II rowsort
SELECT + 21 * - - 67 + - - 30 col2, - 73
----
1437
-73

query I rowsort
SELECT ALL 1 * 66 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT 70 * COUNT( * ) * 18
----
1260

skipif mysql # not compatible
query I rowsort label-3847
SELECT 70 * COUNT ( * ) * 18
----
1260

query II rowsort
SELECT DISTINCT - 41, + 76 * - - 12 col1
----
-41
912

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3850
SELECT DISTINCT - 18 AS col1, 75 * - SUM( DISTINCT + 57 ) + 95 + - 98
----
-18
-4278

skipif mysql # not compatible
query II rowsort label-3850
SELECT DISTINCT - 18 AS col1, 75 * - SUM ( DISTINCT + 57 ) + 95 + - 98
----
-18
-4278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT ALL - NULLIF ( - 12, - 63 * 61 * - CAST( NULL AS SIGNED ) ) * + 99 col2
----
1188

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL - NULLIF ( - 12, - 63 * 61 * - CAST ( NULL AS INTEGER ) ) * + 99 col2
----
1188

query I rowsort
SELECT 96 * - - 27 AS col2
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT DISTINCT MIN( DISTINCT - - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT MIN ( DISTINCT - - 20 )
----
20

query I rowsort
SELECT ALL - 39 + 76 AS col2
----
37

query I rowsort
SELECT ALL + 75 + - 41 AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT DISTINCT + 66 + 44 DIV - - SUM( + 71 ) + 44 * + + 87 AS col1
----
3894

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT + 66 + 44 / - - SUM ( + 71 ) + 44 * + + 87 AS col1
----
3894

query I rowsort
SELECT DISTINCT + 94 * - 98
----
-9212

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

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL COUNT ( * ) + 23 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3859
SELECT DISTINCT COALESCE ( - + 23, + MIN( ( - + 46 ) ) * 68, - COALESCE ( + - 72, - - 70 + + 90 ) * COALESCE ( 14, + 4 ) * - - ( + 15 ), - + 98 - - - 90 DIV AVG ( + 6 ) + - - 86 ) DIV CASE 76 WHEN - - CAST( NULL AS SIGNED ) THEN - CASE + ( - 29 ) WHEN 60 THEN + 19 END ELSE ( 45 ) END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT COALESCE ( - + 23, + MIN ( ( - + 46 ) ) * 68, - COALESCE ( + - 72, - - 70 + + 90 ) * COALESCE ( 14, + 4 ) * - - ( + 15 ), - + 98 - - - 90 / AVG ( + 6 ) + - - 86 ) / CASE 76 WHEN - - CAST ( NULL AS INTEGER ) THEN - CASE + ( - 29 ) WHEN 60 THEN + 19 END ELSE ( 45 ) END AS col2
----
0

query I rowsort
SELECT DISTINCT + 21 + + 54 * + - 36 AS col1
----
-1923

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT ALL 57 + CASE 18 WHEN 9 THEN - + ( + - 61 ) * + - 57 * NULLIF ( 49, + + COUNT( * ) * - ( - - 70 ) ) + + 21 ELSE - - 53 * MAX( - 63 ) END - - + ( 22 ) + - 59 + 57 + 98 * + + 84
----
4970

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL 57 + CASE 18 WHEN 9 THEN - + ( + - 61 ) * + - 57 * NULLIF ( 49, + + COUNT ( * ) * - ( - - 70 ) ) + + 21 ELSE - - 53 * MAX ( - 63 ) END - - + ( 22 ) + - 59 + 57 + 98 * + + 84
----
4970

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT + 26 + - 79 * - - 90 - - COUNT( * ) col2
----
-7083

skipif mysql # not compatible
query I rowsort label-3862
SELECT + 26 + - 79 * - - 90 - - COUNT ( * ) col2
----
-7083

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3863
SELECT ALL + - CAST( NULL AS DECIMAL ) + + - 0 + CASE - 32 WHEN + - 98 THEN - 84 * + + COUNT( * ) + + COALESCE ( + COUNT( ALL - 46 ), - 50 + + 47, - 99 + - - 3 + 64 ) WHEN + 20 * - 46 THEN NULL ELSE NULL END * 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL + - CAST ( NULL AS REAL ) + + - 0 + CASE - 32 WHEN + - 98 THEN - 84 * + + COUNT ( * ) + + COALESCE ( + COUNT ( ALL - 46 ), - 50 + + 47, - 99 + - - 3 + 64 ) WHEN + 20 * - 46 THEN NULL ELSE NULL END * 38 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3864
SELECT ALL CASE 50 WHEN - COUNT( * ) + + COUNT( * ) + - 53 THEN 60 ELSE NULL END, CASE - CAST( + + 66 AS SIGNED ) WHEN 98 * + - 74 + + ( + 65 ) THEN + - 7 END * - COUNT( * ) * - + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3864
SELECT ALL CASE 50 WHEN - COUNT ( * ) + + COUNT ( * ) + - 53 THEN 60 ELSE NULL END, CASE - CAST ( + + 66 AS INTEGER ) WHEN 98 * + - 74 + + ( + 65 ) THEN + - 7 END * - COUNT ( * ) * - + COUNT ( * )
----
NULL
NULL

query I rowsort
SELECT + NULLIF ( 41, 59 / + - 57 ) + 45 - 8 * - - 87 col2
----
-610

query I rowsort
SELECT - 79 * - 64
----
5056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3867
SELECT + + 24 + - 80 - + MAX( + 52 ) - - 68 * 35 + 45 + + 80 * + 89 - + + COALESCE ( - 27, - 70 * - - 33 + + 19 - + COUNT( * ) + + MIN( 40 ), - MAX( + 70 ) ) * + 54 * - 7 + - 39 + - ( 83 ) DIV + 40
----
-810

skipif mysql # not compatible
query I rowsort label-3867
SELECT + + 24 + - 80 - + MAX ( + 52 ) - - 68 * 35 + 45 + + 80 * + 89 - + + COALESCE ( - 27, - 70 * - - 33 + + 19 - + COUNT ( * ) + + MIN ( 40 ), - MAX ( + 70 ) ) * + 54 * - 7 + - 39 + - ( 83 ) / + 40
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT DISTINCT 41 - NULLIF ( 87, - 51 ) + 57 + - ( 92 ) + - MAX( ALL 99 ) AS col1
----
-180

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT 41 - NULLIF ( 87, - 51 ) + 57 + - ( 92 ) + - MAX ( ALL 99 ) AS col1
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3869
SELECT ALL - 44 * COUNT( * ) DIV + + 67 * 45
----
0

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL - 44 * COUNT ( * ) / + + 67 * 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT DISTINCT - - 26 * - ( + 29 ) * + COUNT( * ) + + + 5
----
-749

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT - - 26 * - ( + 29 ) * + COUNT ( * ) + + + 5
----
-749

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL + MIN( ALL + 57 ) - + 71 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL + MIN ( ALL + 57 ) - + 71 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT MAX( + 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3872
SELECT MAX ( + 30 ) AS col1
----
30

query I rowsort
SELECT ALL - 0 * - - 87
----
0

query II rowsort
SELECT DISTINCT - 4 * - 59 - 13, + 46 AS col0
----
223
46

query I rowsort
SELECT + 56 + - 39
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3876
SELECT ALL 64 * - + 1 - + 61, AVG ( + CAST( NULL AS SIGNED ) ) AS col1
----
-125
NULL

skipif mysql # not compatible
query II rowsort label-3876
SELECT ALL 64 * - + 1 - + 61, AVG ( + CAST ( NULL AS INTEGER ) ) AS col1
----
-125
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3877
SELECT + 0 * + CAST( NULL AS SIGNED ) + - 48 * + 53, - 33 DIV + 8 AS col2
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-3877
SELECT + 0 * + CAST ( NULL AS INTEGER ) + - 48 * + 53, - 33 / + 8 AS col2
----
NULL
-4

query I rowsort
SELECT - 84 * 50 * 6 * 20 + 58 AS col2
----
-503942

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3879
SELECT + 9 DIV - SUM( 26 ) + - + ( - 35 ) + - + 47 * + 73 + - - 22 * - 62 + 57 + - - 29 AS col0
----
-4674

skipif mysql # not compatible
query I rowsort label-3879
SELECT + 9 / - SUM ( 26 ) + - + ( - 35 ) + - + 47 * + 73 + - - 22 * - 62 + 57 + - - 29 AS col0
----
-4674

onlyif mysql # aggregate syntax: 
query II rowsort label-3880
SELECT + + ( + - COUNT( * ) ) * + + 49 AS col2, MAX( + + 17 ) * + 93
----
-49
1581

skipif mysql # not compatible
query II rowsort label-3880
SELECT + + ( + - COUNT ( * ) ) * + + 49 AS col2, MAX ( + + 17 ) * + 93
----
-49
1581

onlyif mysql # aggregate syntax: 
query II rowsort label-3881
SELECT ALL + + 48, + COUNT( * ) + + 79 AS col2
----
48
80

skipif mysql # not compatible
query II rowsort label-3881
SELECT ALL + + 48, + COUNT ( * ) + + 79 AS col2
----
48
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT CASE - 58 WHEN - + COUNT( * ) THEN + 14 + 14 WHEN - - 44 THEN 4 * 36 + + + MAX( + 62 ) * - - 21 + + 24 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT CASE - 58 WHEN - + COUNT ( * ) THEN + 14 + 14 WHEN - - 44 THEN 4 * 36 + + + MAX ( + 62 ) * - - 21 + + 24 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3884
SELECT + NULLIF ( - - 12, - 78 ) DIV 67 * - + 14 + + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3884
SELECT + NULLIF ( - - 12, - 78 ) / 67 * - + 14 + + + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3885
SELECT ALL 19 DIV - + COUNT( * ) AS col2, - 93
----
-19
-93

skipif mysql # not compatible
query II rowsort label-3885
SELECT ALL 19 / - + COUNT ( * ) AS col2, - 93
----
-19
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL - COUNT( DISTINCT 98 ) * ( + 99 ) + + 88
----
-11

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL - COUNT ( DISTINCT 98 ) * ( + 99 ) + + 88
----
-11

query I rowsort
SELECT + 89 * + 0 AS col2
----
0

query I rowsort
SELECT + ( - 68 ) * + 29 * + - 50 + + 77 AS col2
----
98677

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT NULLIF ( + 12, + COUNT( * ) * + + 95 )
----
12

skipif mysql # not compatible
query I rowsort label-3889
SELECT NULLIF ( + 12, + COUNT ( * ) * + + 95 )
----
12

query I rowsort
SELECT + 53 * ( + 22 ) AS col0
----
1166

query I rowsort
SELECT - 59 + - 26 col1
----
-85

query I rowsort
SELECT COALESCE ( - 69, + 78 + + 45 * 26 * 72 ) AS col0
----
-69

query I rowsort
SELECT ALL - 58 * + 73 * + 32 + - + 51 AS col2
----
-135539

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT + COUNT( * ) - + - ( - ( 7 ) ) + - 73 col0
----
-79

skipif mysql # not compatible
query I rowsort label-3894
SELECT + COUNT ( * ) - + - ( - ( 7 ) ) + - 73 col0
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-3895
SELECT + COUNT( * ) * + 52 AS col1, - 29
----
52
-29

skipif mysql # not compatible
query II rowsort label-3895
SELECT + COUNT ( * ) * + 52 AS col1, - 29
----
52
-29

query I rowsort
SELECT ALL 3 * + 85 + + + 76 AS col0
----
331

onlyif mysql # DIV for integer division: 
query II rowsort label-3897
SELECT ALL - COALESCE ( - 31, - 83 + 0 ) DIV 51 + 34 - 33, 89 AS col1
----
1
89

skipif mysql # not compatible
query II rowsort label-3897
SELECT ALL - COALESCE ( - 31, - 83 + 0 ) / 51 + 34 - 33, 89 AS col1
----
1
89

query I rowsort
SELECT ALL + 55 * 22
----
1210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3899
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3900
SELECT - + 33 - - 61 DIV - 65 DIV - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-3900
SELECT - + 33 - - 61 / - 65 / - COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3901
SELECT - + 95 * 67 * + 46 DIV + COUNT( * ) - 26 AS col0
----
-292816

skipif mysql # not compatible
query I rowsort label-3901
SELECT - + 95 * 67 * + 46 / + COUNT ( * ) - 26 AS col0
----
-292816

query I rowsort
SELECT ALL + + 3 - 72 + + 94
----
25

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

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - ( 78 ) * COUNT ( + 80 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT - COALESCE ( ( - 96 ), 22 * - - 66 * ( - + ( + 51 ) ) * - + COUNT( * ) * - 64 + 81 * COUNT( 51 ), + 30 * + - 75 + + COUNT( * ) ) * - + 64 / + 10 + + CASE 28 WHEN + - 85 THEN + - 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT - COALESCE ( ( - 96 ), 22 * - - 66 * ( - + ( + 51 ) ) * - + COUNT ( * ) * - 64 + 81 * COUNT ( 51 ), + 30 * + - 75 + + COUNT ( * ) ) * - + 64 / + 10 + + CASE 28 WHEN + - 85 THEN + - 45 ELSE NULL END
----
NULL

query I rowsort
SELECT - + 34 * + 57
----
-1938

onlyif mysql # DIV for integer division: 
query I rowsort label-3906
SELECT ALL 57 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL 57 / + 62
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3907
SELECT - 27 DIV + 80, - 96 * + + 43 col0
----
0
-4128

skipif mysql # not compatible
query II rowsort label-3907
SELECT - 27 / + 80, - 96 * + + 43 col0
----
0
-4128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT - + NULLIF ( + 23, - 17 ) * ( + CAST( - 74 AS SIGNED ) ) + + 20 + - 56 + - + CASE 72 WHEN + - 33 * + - ( - + 1 ) THEN COUNT( * ) END * + + COUNT( * ) * - ( + - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT - + NULLIF ( + 23, - 17 ) * ( + CAST ( - 74 AS INTEGER ) ) + + 20 + - 56 + - + CASE 72 WHEN + - 33 * + - ( - + 1 ) THEN COUNT ( * ) END * + + COUNT ( * ) * - ( + - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT - 84 + - + 26 * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-3909
SELECT - 84 + - + 26 * - COUNT ( * )
----
-58

query I rowsort
SELECT + ( - 12 ) col2
----
-12

query I rowsort
SELECT - 40 * + 10 + - + 7 AS col1
----
-407

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3912
SELECT 7 DIV - 12 * + 68 + - MAX( - 55 ) + COALESCE ( + 23, + + 5 ) * + 76 * - MAX( - 92 ) * ( + 8 )
----
1286583

skipif mysql # not compatible
query I rowsort label-3912
SELECT 7 / - 12 * + 68 + - MAX ( - 55 ) + COALESCE ( + 23, + + 5 ) * + 76 * - MAX ( - 92 ) * ( + 8 )
----
1286583

query I rowsort
SELECT DISTINCT + ( + 1 ) * 16 * 71
----
1136

query I rowsort
SELECT ALL + 83 * + 7
----
581

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT DISTINCT - 40 DIV + 49 + - 32
----
-32

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT - 40 / + 49 + - 32
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT ( + 66 ) * - + 4 * + 44 * + 16 + - + 98 * - 14 + + 51 + + - NULLIF ( - - 96, ( 92 ) * CAST( - 6 AS SIGNED ) - - CAST( - 12 AS SIGNED ) + - 89 * 24 - 67 ) - - 28 - ( 69 ) AS col0
----
-184570

skipif mysql # not compatible
query I rowsort label-3917
SELECT ( + 66 ) * - + 4 * + 44 * + 16 + - + 98 * - 14 + + 51 + + - NULLIF ( - - 96, ( 92 ) * CAST ( - 6 AS INTEGER ) - - CAST ( - 12 AS INTEGER ) + - 89 * 24 - 67 ) - - 28 - ( 69 ) AS col0
----
-184570

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT + COUNT( * ) * - 69 * + 78 + - - 49 AS col0
----
-5333

skipif mysql # not compatible
query I rowsort label-3918
SELECT + COUNT ( * ) * - 69 * + 78 + - - 49 AS col0
----
-5333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3919
SELECT DISTINCT MAX( DISTINCT + 30 ) + - ( + + 28 ) - - CAST( NULL AS SIGNED ) * - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT MAX ( DISTINCT + 30 ) + - ( + + 28 ) - - CAST ( NULL AS INTEGER ) * - 27 AS col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3922
SELECT ALL - COUNT( * ) + - + 72 + + + 86 AS col0, - 14 - 47 AS col1
----
13
-61

skipif mysql # not compatible
query II rowsort label-3922
SELECT ALL - COUNT ( * ) + - + 72 + + + 86 AS col0, - 14 - 47 AS col1
----
13
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT MAX( + 29 ) * + 5
----
145

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT MAX ( + 29 ) * + 5
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT - 61 + - 22 * - - COUNT( * ) + - MAX( 39 )
----
-122

skipif mysql # not compatible
query I rowsort label-3924
SELECT - 61 + - 22 * - - COUNT ( * ) + - MAX ( 39 )
----
-122

query I rowsort
SELECT 65 - + 73 + - 83 - + 56 col2
----
-147

query I rowsort
SELECT 68 + - + 9 - + 71 col0
----
-12

query II rowsort
SELECT - 88 + - + 88 * - 59 AS col0, NULLIF ( - - 84, - 33 ) AS col2
----
5104
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3928
SELECT ALL - 58 AS col1, COUNT( * ) DIV COUNT( ALL 27 )
----
-58
1

skipif mysql # not compatible
query II rowsort label-3928
SELECT ALL - 58 AS col1, COUNT ( * ) / COUNT ( ALL 27 )
----
-58
1

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

skipif mysql # not compatible
query I rowsort label-3929
SELECT NULLIF ( + - 83, COUNT ( * ) )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT 6 * 38 DIV ( + + 21 )
----
10

skipif mysql # not compatible
query I rowsort label-3930
SELECT 6 * 38 / ( + + 21 )
----
10

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

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

query I rowsort
SELECT 37 + - - 10
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3933
SELECT COUNT( * ) DIV + COUNT( + 8 ) - - ( + + 56 )
----
57

skipif mysql # not compatible
query I rowsort label-3933
SELECT COUNT ( * ) / + COUNT ( + 8 ) - - ( + + 56 )
----
57

query I rowsort
SELECT DISTINCT + - 59 * - 28 + + + 55 AS col2
----
1707

query I rowsort
SELECT + 52 + + + ( + 41 ) col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL + - 84 * - - 86 + - COUNT( - 5 )
----
-7225

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + - 84 * - - 86 + - COUNT ( - 5 )
----
-7225

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT - 18 * - ( 50 ) * - 6 + + COUNT( * )
----
-5399

skipif mysql # not compatible
query I rowsort label-3937
SELECT - 18 * - ( 50 ) * - 6 + + COUNT ( * )
----
-5399

query I rowsort
SELECT ALL - + NULLIF ( + 41, 83 + + 37 / + 14 * 12 ) + - 99 + 35 * - 53
----
-1995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3939
SELECT 55 * + COUNT( ALL - 29 ) + - CASE COUNT( * ) WHEN - 31 * 94 THEN + - MAX( DISTINCT - - 32 ) WHEN CAST( NULL AS SIGNED ) THEN + 45 - + + 54 + - + 1 - + ( - + NULLIF ( + 70, + - NULLIF ( + - 10, + + 47 ) ) ) * - SUM( DISTINCT - 82 ) + 92 END * - 52 + - - 90 + - 97 + 95 * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT 55 * + COUNT ( ALL - 29 ) + - CASE COUNT ( * ) WHEN - 31 * 94 THEN + - MAX ( DISTINCT - - 32 ) WHEN CAST ( NULL AS INTEGER ) THEN + 45 - + + 54 + - + 1 - + ( - + NULLIF ( + 70, + - NULLIF ( + - 10, + + 47 ) ) ) * - SUM ( DISTINCT - 82 ) + 92 END * - 52 + - - 90 + - 97 + 95 * 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL + MIN( 63 ) + + 99 + - 85 * 37 AS col0
----
-2983

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL + MIN ( 63 ) + + 99 + - 85 * 37 AS col0
----
-2983

onlyif mysql # DIV for integer division: 
query II rowsort label-3941
SELECT DISTINCT 19 DIV - - NULLIF ( 87, - 89 + 47 * - - 10 ) AS col2, - 68 DIV + 64
----
0
-1

skipif mysql # not compatible
query II rowsort label-3941
SELECT DISTINCT 19 / - - NULLIF ( 87, - 89 + 47 * - - 10 ) AS col2, - 68 / + 64
----
0
-1

query I rowsort
SELECT ALL - 24 + 29
----
5

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

skipif mysql # not compatible
query I rowsort label-3943
SELECT 64 / 97 * - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT 99 * + 16 AS col1
----
1584

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3945
SELECT COUNT( * ) * - 17 AS col0, ( + CAST( NULL AS DECIMAL ) ) * + NULLIF ( - CASE + - 85 WHEN 64 + + + 67 THEN - 99 END, 99 )
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-3945
SELECT COUNT ( * ) * - 17 AS col0, ( + CAST ( NULL AS REAL ) ) * + NULLIF ( - CASE + - 85 WHEN 64 + + + 67 THEN - 99 END, 99 )
----
-17
NULL

query II rowsort
SELECT + 67 AS col2, + 99 AS col1
----
67
99

query I rowsort
SELECT DISTINCT - 7 + + + 93 AS col2
----
86

query II rowsort
SELECT 41 AS col2, + 31 * + 12 AS col2
----
41
372

query I rowsort
SELECT DISTINCT ( - + ( - 64 ) ) + 15 - - - 44 * - 6 + - 74
----
269

query I rowsort
SELECT DISTINCT + 35 * - 54 AS col2
----
-1890

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT COUNT( * ) + + COUNT( 32 ) * + CASE + - COUNT( * ) WHEN - 96 THEN - COALESCE ( - + COUNT( * ), 77 ) WHEN + - NULLIF ( + SUM( ALL 54 ), 58 + + + 39 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT COUNT ( * ) + + COUNT ( 32 ) * + CASE + - COUNT ( * ) WHEN - 96 THEN - COALESCE ( - + COUNT ( * ), 77 ) WHEN + - NULLIF ( + SUM ( ALL 54 ), 58 + + + 39 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3953
SELECT ALL CAST( NULL AS DECIMAL ) - - ( - 40 ) + + 81 AS col0, 12 + - 40 * 57 AS col0
----
NULL
-2268

skipif mysql # not compatible
query II rowsort label-3953
SELECT ALL CAST ( NULL AS REAL ) - - ( - 40 ) + + 81 AS col0, 12 + - 40 * 57 AS col0
----
NULL
-2268

query I rowsort
SELECT NULLIF ( 17, NULLIF ( + 44, ( - 70 ) ) ) * + 87 * + 59 col2
----
87261

query I rowsort
SELECT 49 * 71
----
3479

onlyif mysql # DIV for integer division: 
query II rowsort label-3956
SELECT 23 - 54 DIV + 53 + + 28 AS col2, 23
----
50
23

skipif mysql # not compatible
query II rowsort label-3956
SELECT 23 - 54 / + 53 + + 28 AS col2, 23
----
50
23

query I rowsort
SELECT 83 * + - 4 AS col0
----
-332

onlyif mysql # aggregate syntax: 
query II rowsort label-3958
SELECT ALL + 56 * 41, - COUNT( * ) AS col0
----
2296
-1

skipif mysql # not compatible
query II rowsort label-3958
SELECT ALL + 56 * 41, - COUNT ( * ) AS col0
----
2296
-1

query II rowsort
SELECT ALL - 81 * - 98 AS col2, - 86
----
7938
-86

query II rowsort
SELECT - - 59 AS col1, 62 + - 67 * 93 + + + 31 * - 4
----
59
-6293

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

skipif mysql # not compatible
query II rowsort label-3961
SELECT + COUNT ( * ) / - 69, COUNT ( * ) AS col1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL + 12 * + COALESCE ( + 15, COUNT( * ) * 92 ) AS col0
----
180

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL + 12 * + COALESCE ( + 15, COUNT ( * ) * 92 ) AS col0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT CASE + 50 WHEN - 86 THEN - COUNT( * ) * 13 + 71 ELSE - 67 END * 31 AS col1
----
-2077

skipif mysql # not compatible
query I rowsort label-3963
SELECT CASE + 50 WHEN - 86 THEN - COUNT ( * ) * 13 + 71 ELSE - 67 END * 31 AS col1
----
-2077

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT + 9 * - 45 DIV - 22
----
18

skipif mysql # not compatible
query I rowsort label-3964
SELECT + 9 * - 45 / - 22
----
18

query I rowsort
SELECT + 53 * COALESCE ( 98, 9, - - 78 ) AS col1
----
5194

query II rowsort
SELECT - 23 AS col1, - 90
----
-23
-90

query I rowsort
SELECT 39 - - 46 AS col2
----
85

query II rowsort
SELECT - 73 AS col2, - ( + 11 )
----
-73
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3969
SELECT - + 44, ( - + 31 ) * + 98 + - + COUNT( * ) - - 15 - + 15 * - - 90 DIV + - COUNT( * ) + + ( - MAX( + 96 ) ) * MIN( ALL 31 ) AS col2
----
-44
-4650

skipif mysql # not compatible
query II rowsort label-3969
SELECT - + 44, ( - + 31 ) * + 98 + - + COUNT ( * ) - - 15 - + 15 * - - 90 / + - COUNT ( * ) + + ( - MAX ( + 96 ) ) * MIN ( ALL 31 ) AS col2
----
-44
-4650

query II rowsort
SELECT ALL + 87, ( + 15 ) AS col0
----
87
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT 31 * + + COUNT( * ), 27 AS col0
----
31
27

skipif mysql # not compatible
query II rowsort label-3971
SELECT 31 * + + COUNT ( * ), 27 AS col0
----
31
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT DISTINCT + 38 + - CASE - ( - ( + 13 ) ) WHEN + 27 THEN + 28 + + 5 + 35 ELSE NULL END AS col0, CASE COUNT( * ) WHEN + - 94 THEN 96 * 23 ELSE 22 + - + 88 * 39 + 47 END * - 29 + - 72 AS col2
----
NULL
97455

skipif mysql # not compatible
query II rowsort label-3972
SELECT DISTINCT + 38 + - CASE - ( - ( + 13 ) ) WHEN + 27 THEN + 28 + + 5 + 35 ELSE NULL END AS col0, CASE COUNT ( * ) WHEN + - 94 THEN 96 * 23 ELSE 22 + - + 88 * 39 + 47 END * - 29 + - 72 AS col2
----
NULL
97455

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT ALL - 80 + 2 DIV - 26 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - 80 + 2 / - 26 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT DISTINCT - COUNT( DISTINCT 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT - COUNT ( DISTINCT 64 )
----
-1

query I rowsort
SELECT ALL + - 81 + + 95 * - 24 + + NULLIF ( NULLIF ( + + 89, - - 48 ), + + 31 ) col0
----
-2272

query II rowsort
SELECT + NULLIF ( - + 34, + 2 ) - - 92 col1, - 67
----
58
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3977
SELECT + - COUNT( * ) + - - ( - COUNT( * ) ) DIV - 66 * 98 * ( 13 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3977
SELECT + - COUNT ( * ) + - - ( - COUNT ( * ) ) / - 66 * 98 * ( 13 ) AS col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-3978
SELECT + 13 + + + 74 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT - 19 DIV + - 4 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3979
SELECT - 19 / + - 4 AS col2
----
4

query I rowsort
SELECT ALL - 20 + - - 45 + - 98
----
-73

query I rowsort
SELECT + 30 + 64 AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3982
SELECT COALESCE ( + + 4, + ( 35 ) + + 66 + - 75 DIV + + 6 * 10, 89 * + - 56 + + - 77 + + COUNT( * ), 12 )
----
4

skipif mysql # not compatible
query I rowsort label-3982
SELECT COALESCE ( + + 4, + ( 35 ) + + 66 + - 75 / + + 6 * 10, 89 * + - 56 + + - 77 + + COUNT ( * ), 12 )
----
4

query I rowsort
SELECT - 42 * - - 30 * + 79 - + 55 AS col2
----
-99595

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT - 83 + - MIN( + 59 ) AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-3984
SELECT - 83 + - MIN ( + 59 ) AS col2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT - 59 + - 73 * - MAX( - 17 ) AS col0
----
-1300

skipif mysql # not compatible
query I rowsort label-3985
SELECT - 59 + - 73 * - MAX ( - 17 ) AS col0
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL + 76 * + COUNT( * ) - - 28
----
104

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + 76 * + COUNT ( * ) - - 28
----
104

query I rowsort
SELECT COALESCE ( + 6, 39 * - + 34 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL - COUNT( * ) * 98 - + - 5
----
-93

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - COUNT ( * ) * 98 - + - 5
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT COALESCE ( - 77, + COUNT( * ) * ( + 73 ) * - - 48 + + 41 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-3989
SELECT COALESCE ( - 77, + COUNT ( * ) * ( + 73 ) * - - 48 + + 41 ) AS col0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT - 5 + + - 79 DIV 2 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3990
SELECT - 5 + + - 79 / 2 AS col1
----
-44

query I rowsort
SELECT NULLIF ( - 51, + 5 )
----
-51

query I rowsort
SELECT NULLIF ( - 34, + 69 + + + 20 )
----
-34

query I rowsort
SELECT + ( 87 ) * - - 14 * - - 36
----
43848

query I rowsort
SELECT ALL + 86 * - + ( - 17 ) col0
----
1462

query I rowsort
SELECT - 69 + - - 0 col0
----
-69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT ALL - 27 * 57 * + COUNT( DISTINCT + 75 ) col1
----
-1539

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL - 27 * 57 * + COUNT ( DISTINCT + 75 ) col1
----
-1539

query I rowsort
SELECT - - ( + 23 ) * - + 11
----
-253

query II rowsort
SELECT - 79 - 18 AS col2, CASE + 42 WHEN + 86 + + 41 THEN - 0 ELSE + 28 + - 68 END AS col1
----
-97
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT + CASE - 87 WHEN COUNT( * ) THEN - 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT + CASE - 87 WHEN COUNT ( * ) THEN - 9 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 83 * + 3 * + 90
----
-22410

query I rowsort
SELECT + 7 * - + 79 AS col0
----
-553

query I rowsort
SELECT 44 * + 2 - - 97 + - 40 - 25 * 16
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT - + MAX( DISTINCT - - 68 ) + - ( 87 )
----
-155

skipif mysql # not compatible
query I rowsort label-4004
SELECT - + MAX ( DISTINCT - - 68 ) + - ( 87 )
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT + - 15 * + - 46 - + + 43 * + COUNT( * )
----
647

skipif mysql # not compatible
query I rowsort label-4005
SELECT + - 15 * + - 46 - + + 43 * + COUNT ( * )
----
647

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

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL + 0 / - 69
----
0

query I rowsort
SELECT + - 95 + - - 43 + - 60
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL - 89 + + + 55 - - SUM( ALL - 92 ) AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - 89 + + + 55 - - SUM ( ALL - 92 ) AS col1
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4009
SELECT + + COUNT( * ) * 81 + - COALESCE ( + MAX( 44 ), - + 47 * 31 + - 59 + - - 51 * - - ( + CASE 80 WHEN 78 THEN 65 ELSE + 85 + - 81 END ) + COALESCE ( + 55, - + CAST( - 97 AS DECIMAL ) - - + 97 ) * - + 7 ) - 5 + - - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + + 12 / - 14 * - MAX( ALL - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT + + COUNT ( * ) * 81 + - COALESCE ( + MAX ( 44 ), - + 47 * 31 + - 59 + - - 51 * - - ( + CASE 80 WHEN 78 THEN 65 ELSE + 85 + - 81 END ) + COALESCE ( + 55, - + CAST ( - 97 AS REAL ) - - + 97 ) * - + 7 ) - 5 + - - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 12 / - 14 * - MAX ( ALL - 80 )
----
NULL

query I rowsort
SELECT ALL + 9 + - - 28 AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4011
SELECT - COALESCE ( COUNT( * ), + + SUM( - 89 ) DIV - 87, + CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4011
SELECT - COALESCE ( COUNT ( * ), + + SUM ( - 89 ) / - 87, + CAST ( NULL AS INTEGER ) )
----
-1

query I rowsort
SELECT ALL - 40 + + 57 * + + 22 * 52 AS col2
----
65168

query II rowsort
SELECT + 9 + + + 98, - 78 + - + 35 col1
----
107
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT - 53 * + 16 * COUNT( * ) AS col0
----
-848

skipif mysql # not compatible
query I rowsort label-4014
SELECT - 53 * + 16 * COUNT ( * ) AS col0
----
-848

query I rowsort
SELECT + ( 5 ) + - 19
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT ALL 92 + + COALESCE ( 35, + 2 + - CAST( NULL AS SIGNED ), - 18 ) + 26 + + 30 * 54
----
1773

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL 92 + + COALESCE ( 35, + 2 + - CAST ( NULL AS INTEGER ), - 18 ) + 26 + + 30 * 54
----
1773

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4017
SELECT + 36 + - ( - 70 ) - + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) - - 38 / - 32 * + + 56 + - - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT + 36 + - ( - 70 ) - + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) - - 38 / - 32 * + + 56 + - - 81 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT - CAST( 90 AS SIGNED ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-4018
SELECT - CAST ( 90 AS INTEGER ) AS col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4019
SELECT DISTINCT 56 AS col2, CAST( NULL AS SIGNED )
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4019
SELECT DISTINCT 56 AS col2, CAST ( NULL AS INTEGER )
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL SUM( DISTINCT + - 34 ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL SUM ( DISTINCT + - 34 ) col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT DISTINCT 36 - + - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT 36 - + - COUNT ( * )
----
37

query I rowsort
SELECT DISTINCT 48 * 50 * + 34 * + - 77
----
-6283200

query I rowsort
SELECT + 77 * - + 0
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4025
SELECT ALL - 55 DIV NULLIF ( + 13, COUNT( * ) * - + 73 * 80 ) * - COALESCE ( + 24, 56 * + COUNT( * ) ) - + 71 + + + 76 DIV - + 51 AS col2, 70
----
24
70

skipif mysql # not compatible
query II rowsort label-4025
SELECT ALL - 55 / NULLIF ( + 13, COUNT ( * ) * - + 73 * 80 ) * - COALESCE ( + 24, 56 * + COUNT ( * ) ) - + 71 + + + 76 / - + 51 AS col2, 70
----
24
70

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

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

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

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

query I rowsort
SELECT + 11 * 61
----
671

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-4031
SELECT + CAST ( NULL AS REAL ) * ( + 43 )
----
NULL

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

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

query I rowsort
SELECT - - 99 * - + 50
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT - - 41 + ( - COUNT( * ) ) + + COUNT( * ) + 18
----
59

skipif mysql # not compatible
query I rowsort label-4034
SELECT - - 41 + ( - COUNT ( * ) ) + + COUNT ( * ) + 18
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4035
SELECT ALL + 97 * - CASE 0 WHEN + 92 THEN COALESCE ( - 25, ( 8 ) ) + - COUNT( * ) * 83 WHEN + 21 THEN NULL END * - 34 + + 83 * 91 + 76 + 0, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4035
SELECT ALL + 97 * - CASE 0 WHEN + 92 THEN COALESCE ( - 25, ( 8 ) ) + - COUNT ( * ) * 83 WHEN + 21 THEN NULL END * - 34 + + 83 * 91 + 76 + 0, + COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT DISTINCT + 22 * - 15
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL - + ( NULLIF ( NULLIF ( 18, - 7 + COALESCE ( - 76, + 69, COUNT( * ) * + COUNT( * ) * + 22 + + 33 ) ), - 64 * 27 ) ) + + ( + 78 )
----
60

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL - + ( NULLIF ( NULLIF ( 18, - 7 + COALESCE ( - 76, + 69, COUNT ( * ) * + COUNT ( * ) * + 22 + + 33 ) ), - 64 * 27 ) ) + + ( + 78 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT 71 - - + COUNT( * ) + + 87 * - 5 AS col2
----
-363

skipif mysql # not compatible
query I rowsort label-4038
SELECT 71 - - + COUNT ( * ) + + 87 * - 5 AS col2
----
-363

onlyif mysql # DIV for integer division: 
query I rowsort label-4039
SELECT + 73 DIV 69 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4039
SELECT + 73 / 69 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4040
SELECT DISTINCT COUNT( * ) DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT COUNT ( * ) / - - 80
----
0

query I rowsort
SELECT ALL 95 - - ( + ( + 88 ) )
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT DISTINCT ( + COUNT( * ) ) * COUNT( DISTINCT - NULLIF ( + 43, - + 90 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT ( + COUNT ( * ) ) * COUNT ( DISTINCT - NULLIF ( + 43, - + 90 ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4043
SELECT DISTINCT + 76 DIV - + 54 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + 76 / - + 54 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4044
SELECT 98 + MAX( ALL CAST( - 3 AS SIGNED ) ) - - 44
----
139

skipif mysql # not compatible
query I rowsort label-4044
SELECT 98 + MAX ( ALL CAST ( - 3 AS INTEGER ) ) - - 44
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4045
SELECT ALL COALESCE ( - 75, + 22 + MIN( DISTINCT 3 ) + 80 DIV + 37 ) * + 28 AS col2
----
-2100

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL COALESCE ( - 75, + 22 + MIN ( DISTINCT 3 ) + 80 / + 37 ) * + 28 AS col2
----
-2100

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

skipif mysql # not compatible
query I rowsort label-4046
SELECT COUNT ( * ) / + 15 AS col0
----
0

query I rowsort
SELECT 14 + + - 90 + ( - - 36 ) * - 91 + + - 14
----
-3366

query I rowsort
SELECT 49 * - 5 AS col1
----
-245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4049
SELECT DISTINCT - COUNT( * ) * + - 61 * - 2 * + CAST( - 74 AS SIGNED )
----
9028

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT - COUNT ( * ) * + - 61 * - 2 * + CAST ( - 74 AS INTEGER )
----
9028

query I rowsort
SELECT 33 + + - 15
----
18

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4052
SELECT ALL COUNT( - 15 ) * 51 DIV MAX( ALL 22 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL COUNT ( - 15 ) * 51 / MAX ( ALL 22 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT ALL + 86 + - - ( - + 60 ) + + ( + + 55 ) + - 80 * MAX( DISTINCT 36 ) AS col1
----
-2799

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL + 86 + - - ( - + 60 ) + + ( + + 55 ) + - 80 * MAX ( DISTINCT 36 ) AS col1
----
-2799

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT - 71 DIV + - ( - - 43 ) + - + 90 + - 91 AS col2
----
-180

skipif mysql # not compatible
query I rowsort label-4054
SELECT - 71 / + - ( - - 43 ) + - + 90 + - 91 AS col2
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT ALL - + NULLIF ( + 51, - COUNT( * ) - + + CAST( + - 98 AS SIGNED ) )
----
-51

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL - + NULLIF ( + 51, - COUNT ( * ) - + + CAST ( + - 98 AS INTEGER ) )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4056
SELECT ALL 58 + 20 + + + 16 * COUNT( * ) DIV - + 7
----
76

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL 58 + 20 + + + 16 * COUNT ( * ) / - + 7
----
76

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

query I rowsort
SELECT ALL - + COALESCE ( + + 38, + 44 )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT DISTINCT - 6 DIV 26 + - 28
----
-28

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT - 6 / 26 + - 28
----
-28

query I rowsort
SELECT DISTINCT - 42 + - 97 AS col2
----
-139

query II rowsort
SELECT ALL 25 * + 2 AS col2, - 40
----
50
-40

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

query I rowsort
SELECT - 44 + + 24 AS col0
----
-20

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

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

query II rowsort
SELECT 85 + - - 7, 85 col1
----
92
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL 27 - + + SUM( ALL + - 34 ) + + CASE + 65 WHEN - 74 THEN NULL ELSE + 74 END - - 61
----
196

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL 27 - + + SUM ( ALL + - 34 ) + + CASE + 65 WHEN - 74 THEN NULL ELSE + 74 END - - 61
----
196

query I rowsort
SELECT ALL + ( + 24 ) - 47 * + - 88 AS col0
----
4160

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

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

query I rowsort
SELECT 24 + - 66
----
-42

query I rowsort
SELECT 34 + + 51 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4071
SELECT DISTINCT + ( - COALESCE ( + 14, CAST( NULL AS SIGNED ), + COUNT( * ) ) ) * - 33
----
462

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT + ( - COALESCE ( + 14, CAST ( NULL AS INTEGER ), + COUNT ( * ) ) ) * - 33
----
462

query I rowsort
SELECT 8 * + 71 AS col1
----
568

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT COUNT( 70 )
----
1

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT COUNT ( 70 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT ALL 82 DIV - 19
----
-4

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL 82 / - 19
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4076
SELECT CASE 93 WHEN + 30 * + - 18 / + + MAX( ALL CAST( + 96 AS SIGNED ) ) * COUNT( * ) * + 38 THEN - COUNT( * ) * + - NULLIF ( + 10, + 93 / + 90 * COUNT( * ) + + 77 ) ELSE NULL END * - 35 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT CASE 93 WHEN + 30 * + - 18 / + + MAX ( ALL CAST ( + 96 AS INTEGER ) ) * COUNT ( * ) * + 38 THEN - COUNT ( * ) * + - NULLIF ( + 10, + 93 / + 90 * COUNT ( * ) + + 77 ) ELSE NULL END * - 35 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4077
SELECT COUNT( * ) AS col2, 29 DIV - MAX( DISTINCT 76 ) col2
----
1
0

skipif mysql # not compatible
query II rowsort label-4077
SELECT COUNT ( * ) AS col2, 29 / - MAX ( DISTINCT 76 ) col2
----
1
0

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

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

query I rowsort
SELECT DISTINCT 81 * + 67
----
5427

query I rowsort
SELECT - 3 - + 66
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT 57 DIV 49 + + 82
----
83

skipif mysql # not compatible
query I rowsort label-4081
SELECT 57 / 49 + + 82
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4082
SELECT 75 - + COUNT( * ) - 38 * + + CASE - 1 WHEN 69 THEN NULL WHEN CAST( NULL AS SIGNED ) + - 70 * 6 THEN COUNT( * ) * + 31 WHEN COUNT( * ) * + 98 THEN 97 * + 22 END * - 33 + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT 75 - + COUNT ( * ) - 38 * + + CASE - 1 WHEN 69 THEN NULL WHEN CAST ( NULL AS INTEGER ) + - 70 * 6 THEN COUNT ( * ) * + 31 WHEN COUNT ( * ) * + 98 THEN 97 * + 22 END * - 33 + + 38
----
NULL

query I rowsort
SELECT ALL + 93 * - 14
----
-1302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT ALL CAST( NULL AS SIGNED ) * + 13 + - - COALESCE ( + + 23, COALESCE ( - 75, + + COALESCE ( 63, - 35, + 4 ) ) ) + + AVG ( ALL ( - 12 ) ) + + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL CAST ( NULL AS INTEGER ) * + 13 + - - COALESCE ( + + 23, COALESCE ( - 75, + + COALESCE ( 63, - 35, + 4 ) ) ) + + AVG ( ALL ( - 12 ) ) + + - 81
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4085
SELECT ALL 56 * + 62 * + + 29 DIV + COUNT( * ) + + - NULLIF ( + 56, - 79 )
----
100632

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL 56 * + 62 * + + 29 / + COUNT ( * ) + + - NULLIF ( + 56, - 79 )
----
100632

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT + + MIN( - ( - 63 ) ) col1
----
63

skipif mysql # not compatible
query I rowsort label-4086
SELECT + + MIN ( - ( - 63 ) ) col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4087
SELECT ALL + + CAST( + MAX( - + 33 ) AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL + + CAST ( + MAX ( - + 33 ) AS INTEGER ) AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4088
SELECT + 14 * - 3 / ( + 23 ) + + MIN( DISTINCT - 10 ) / 7 + - 7 + + CASE + COUNT( * ) WHEN + COUNT( * ) THEN MAX( 17 ) ELSE NULL END * MIN( CAST( NULL AS SIGNED ) ) / + - MAX( DISTINCT + - 71 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT + 14 * - 3 / ( + 23 ) + + MIN ( DISTINCT - 10 ) / 7 + - 7 + + CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN MAX ( 17 ) ELSE NULL END * MIN ( CAST ( NULL AS INTEGER ) ) / + - MAX ( DISTINCT + - 71 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT ALL 59 DIV - + 10 col2
----
-5

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL 59 / - + 10 col2
----
-5

query I rowsort
SELECT DISTINCT 43 * + 46
----
1978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4091
SELECT ALL 7 AS col0, + COALESCE ( + 13, + + 43 * - MAX( + 12 ) DIV 28, - CAST( - - 95 AS SIGNED ) ) * - 41 + + 58 AS col2
----
7
-475

skipif mysql # not compatible
query II rowsort label-4091
SELECT ALL 7 AS col0, + COALESCE ( + 13, + + 43 * - MAX ( + 12 ) / 28, - CAST ( - - 95 AS INTEGER ) ) * - 41 + + 58 AS col2
----
7
-475

onlyif mysql # aggregate syntax: 
query II rowsort label-4092
SELECT ALL 59 AS col2, + 36 * + - 88 * SUM( DISTINCT + - ( - - 55 ) ) - + - 74 AS col1
----
59
174314

skipif mysql # not compatible
query II rowsort label-4092
SELECT ALL 59 AS col2, + 36 * + - 88 * SUM ( DISTINCT + - ( - - 55 ) ) - + - 74 AS col1
----
59
174314

query I rowsort
SELECT + 42 - + 64
----
-22

query I rowsort
SELECT - 6 * - + 27
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT + 18 - - - 39 + 31 - - + MAX( ALL 32 ) * 90 * + - 8
----
-23030

skipif mysql # not compatible
query I rowsort label-4095
SELECT + 18 - - - 39 + 31 - - + MAX ( ALL 32 ) * 90 * + - 8
----
-23030

query I rowsort
SELECT ALL 76 + - - 16 AS col0
----
92

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4098
SELECT DISTINCT - 13 + - CAST( NULL AS SIGNED ) - 76 * + 26 * NULLIF ( 71, - + 51 ) + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT - 13 + - CAST ( NULL AS INTEGER ) - 76 * + 26 * NULLIF ( 71, - + 51 ) + - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL + ( + ( - 93 ) ) * + COUNT( * ) + COUNT( * ) * + 20
----
-73

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + ( + ( - 93 ) ) * + COUNT ( * ) + COUNT ( * ) * + 20
----
-73

query I rowsort
SELECT - 40 - - 28 AS col2
----
-12

query I rowsort
SELECT ALL COALESCE ( + 43, 93 ) col1
----
43

query I rowsort
SELECT DISTINCT + 41 * - + 79
----
-3239

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT - COUNT( * ) + - + 88 + - - COUNT( ALL + 64 ) AS col1, + 74 * 90
----
-88
6660

skipif mysql # not compatible
query II rowsort label-4103
SELECT - COUNT ( * ) + - + 88 + - - COUNT ( ALL + 64 ) AS col1, + 74 * 90
----
-88
6660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4104
SELECT - ( - CASE + 31 WHEN + COALESCE ( 19, + 33 + - 99 + + 73 / + CAST( NULL AS SIGNED ) * - + COALESCE ( 22, - + ( 14 ), + 85 + + + 57, 40 * + + 0, + + 74 ) + + + COUNT( * ) + + COUNT( * ) ) THEN 1 * + 1 * - + 3 END ) * + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT - ( - CASE + 31 WHEN + COALESCE ( 19, + 33 + - 99 + + 73 / + CAST ( NULL AS INTEGER ) * - + COALESCE ( 22, - + ( 14 ), + 85 + + + 57, 40 * + + 0, + + 74 ) + + + COUNT ( * ) + + COUNT ( * ) ) THEN 1 * + 1 * - + 3 END ) * + 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4105
SELECT DISTINCT + 23 * - COUNT( * ) AS col2, + 61 * - 3 * 38 + 62 AS col2
----
-23
-6892

skipif mysql # not compatible
query II rowsort label-4105
SELECT DISTINCT + 23 * - COUNT ( * ) AS col2, + 61 * - 3 * 38 + 62 AS col2
----
-23
-6892

query I rowsort
SELECT ALL - 69 + - 97 AS col0
----
-166

query I rowsort
SELECT - 4 + 58 - - - 19
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4108
SELECT DISTINCT + - 75 AS col1, + 87 DIV 58 * - COUNT( ALL 19 ) AS col1
----
-75
-1

skipif mysql # not compatible
query II rowsort label-4108
SELECT DISTINCT + - 75 AS col1, + 87 / 58 * - COUNT ( ALL 19 ) AS col1
----
-75
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4109
SELECT DISTINCT + COUNT( * ) AS col2, CAST( - 18 AS SIGNED ) + 85
----
1
67

skipif mysql # not compatible
query II rowsort label-4109
SELECT DISTINCT + COUNT ( * ) AS col2, CAST ( - 18 AS INTEGER ) + 85
----
1
67

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

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

query II rowsort
SELECT DISTINCT + 7 AS col0, + 67
----
7
67

query I rowsort
SELECT + NULLIF ( + 11, + 26 * + 78 + + 69 + - 72 * + 97 + 69 ) * 89 + 7
----
986

query I rowsort
SELECT - 3 * 43 * + 61
----
-7869

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL 43 * + + 5 + - + COUNT( + 6 ) AS col2
----
214

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL 43 * + + 5 + - + COUNT ( + 6 ) AS col2
----
214

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL NULLIF ( - ( 34 ), COUNT( * ) ) * + - 47 AS col2
----
1598

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL NULLIF ( - ( 34 ), COUNT ( * ) ) * + - 47 AS col2
----
1598

query I rowsort
SELECT - - 10 + 77 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT DISTINCT - + 11 * 43 + - 61 + - - SUM( 77 ) + - 81 - + 28 AS col1
----
-566

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT - + 11 * 43 + - 61 + - - SUM ( 77 ) + - 81 - + 28 AS col1
----
-566

query I rowsort
SELECT ALL + 71 * - 14 AS col0
----
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT + - 60 * - COUNT( ALL 5 ) * - + 74 col2
----
-4440

skipif mysql # not compatible
query I rowsort label-4119
SELECT + - 60 * - COUNT ( ALL 5 ) * - + 74 col2
----
-4440

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

query I rowsort
SELECT + 76 + + 80 AS col1
----
156

query I rowsort
SELECT - 25 * 15
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT MIN( 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4123
SELECT MIN ( 87 ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT ALL - NULLIF ( - 74, 11 * - + 5 * - 58 * - CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) + + 65 ) * - 55 + - NULLIF ( + - ( + 75 ), - + 87 ) AS col2
----
-3995

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL - NULLIF ( - 74, 11 * - + 5 * - 58 * - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + + 65 ) * - 55 + - NULLIF ( + - ( + 75 ), - + 87 ) AS col2
----
-3995

onlyif mysql # DIV for integer division: 
query I rowsort label-4125
SELECT + 83 DIV - 3
----
-27

skipif mysql # not compatible
query I rowsort label-4125
SELECT + 83 / - 3
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4126
SELECT DISTINCT - 85 * - 43 * + COALESCE ( 67, + + 85 ) + 11 + - 24 DIV MAX( + 2 ) * + + 9 + + COUNT( * )
----
244789

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT - 85 * - 43 * + COALESCE ( 67, + + 85 ) + 11 + - 24 / MAX ( + 2 ) * + + 9 + + COUNT ( * )
----
244789

query II rowsort
SELECT ALL 6 * 63 AS col2, 19 * + - 71
----
378
-1349

query I rowsort
SELECT + 71 + 19 + 8 - + NULLIF ( 68, + + ( 91 ) * + 76 + 60 ) * + 38 - 84
----
-2570

query I rowsort
SELECT DISTINCT 35 + - + ( + 72 ) + + 59 col1
----
22

query I rowsort
SELECT ALL - 0 + - + 92 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + 64 + 77 + - + 54 + - + 65 + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4131
SELECT + 64 + 77 + - + 54 + - + 65 + COUNT ( * ) AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT ALL 70 * - 79 * CAST( - AVG ( ALL - 89 ) AS SIGNED ) AS col2
----
-492170

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL 70 * - 79 * CAST ( - AVG ( ALL - 89 ) AS INTEGER ) AS col2
----
-492170

query I rowsort
SELECT ALL ( - 27 ) * - 92 AS col1
----
2484

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT + 28 * + MIN( ALL - 90 )
----
-2520

skipif mysql # not compatible
query I rowsort label-4135
SELECT + 28 * + MIN ( ALL - 90 )
----
-2520

query I rowsort
SELECT - ( + 96 ) + + 78 AS col1
----
-18

query I rowsort
SELECT ALL - 77 - - ( + 79 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT COUNT( * ) + + SUM( ALL + + ( + 71 ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4138
SELECT COUNT ( * ) + + SUM ( ALL + + ( + 71 ) ) AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4139
SELECT DISTINCT - + 39 * 33 + + - 62 + 12 + + ( + + 25 ) + COALESCE ( + 57, - 70, + - 9 / + ( + COUNT( * ) ) * CASE + 61 WHEN + COUNT( * ) THEN NULL ELSE + 74 END * + + 13 - 83 * - ( 18 ), 86 + + MIN( ALL + NULLIF ( - 11, + + 99 + 3 + 74 ) ) ) * - 64 * + 27 * + 78 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT - + 39 * 33 + + - 62 + 12 + + ( + + 25 ) + COALESCE ( + 57, - 70, + - 9 / + ( + COUNT ( * ) ) * CASE + 61 WHEN + COUNT ( * ) THEN NULL ELSE + 74 END * + + 13 - 83 * - ( 18 ), 86 + + MIN ( ALL + NULLIF ( - 11, + + 99 + 3 + 74 ) ) ) * - 64 * + 27 * + 78 + + + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT ALL 77 DIV + - ( + - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL 77 / + - ( + - 59 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT DISTINCT - + 22 DIV + + COALESCE ( - 7, - 83 * 68 )
----
3

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT - + 22 / + + COALESCE ( - 7, - 83 * 68 )
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4144
SELECT 63 DIV ( 69 )
----
0

skipif mysql # not compatible
query I rowsort label-4144
SELECT 63 / ( 69 )
----
0

query I rowsort
SELECT ALL - 18 + 83 AS col2
----
65

query I rowsort
SELECT 43 * + 8 * + 56 * + 71
----
1367744

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

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

query I rowsort
SELECT DISTINCT - 85 + + 78
----
-7

query I rowsort
SELECT ALL + 31 + + ( - - 98 ) AS col2
----
129

query II rowsort
SELECT ALL - 98 AS col2, 47 AS col2
----
-98
47

query I rowsort
SELECT 33 * - - 20
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT ALL - CASE + - 91 WHEN - + COUNT( * ) THEN + - 61 END + - 16 + - COALESCE ( 9, + 22 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL - CASE + - 91 WHEN - + COUNT ( * ) THEN + - 61 END + - 16 + - COALESCE ( 9, + 22 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 13 + - + 52
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT DISTINCT - CAST( - 27 AS SIGNED ) * - 3 * - 31
----
2511

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT - CAST ( - 27 AS INTEGER ) * - 3 * - 31
----
2511

query I rowsort
SELECT 23 + 62 AS col0
----
85

query I rowsort
SELECT 59 * - 78
----
-4602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4157
SELECT COUNT( * ) - - - 43 + - 69 + + CAST( NULL AS SIGNED ) + + - 83 / - 47 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT COUNT ( * ) - - - 43 + - 69 + + CAST ( NULL AS INTEGER ) + + - 83 / - 47 * 33
----
NULL

query II rowsort
SELECT 83, 37 AS col1
----
83
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT 49 - + NULLIF ( 52, + COUNT( * ) ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-4159
SELECT 49 - + NULLIF ( 52, + COUNT ( * ) ) col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4160
SELECT ALL + CAST( - CAST( - 25 AS SIGNED ) AS SIGNED ) - SUM( + - 97 ) * + 18 AS col2
----
1771

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + CAST ( - CAST ( - 25 AS INTEGER ) AS INTEGER ) - SUM ( + - 97 ) * + 18 AS col2
----
1771

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4161
SELECT ALL 52 * + COALESCE ( + MIN( 82 ), - 78, CASE COUNT( * ) WHEN + 78 THEN 88 DIV 12 ELSE NULL END + SUM( - 61 ) ) AS col2
----
4264

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL 52 * + COALESCE ( + MIN ( 82 ), - 78, CASE COUNT ( * ) WHEN + 78 THEN 88 / 12 ELSE NULL END + SUM ( - 61 ) ) AS col2
----
4264

onlyif mysql # DIV for integer division: 
query I rowsort label-4162
SELECT ALL 63 DIV 30 * - ( - + 46 ) * - + 74
----
-6808

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL 63 / 30 * - ( - + 46 ) * - + 74
----
-6808

onlyif mysql # aggregate syntax: 
query II rowsort label-4163
SELECT SUM( 7 ) * 76 AS col0, - 59 * 20 + 36 AS col2
----
532
-1144

skipif mysql # not compatible
query II rowsort label-4163
SELECT SUM ( 7 ) * 76 AS col0, - 59 * 20 + 36 AS col2
----
532
-1144

query I rowsort
SELECT - 6 - + 74
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT 37 * - CASE - - 25 WHEN COUNT( * ) THEN ( 98 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT 37 * - CASE - - 25 WHEN COUNT ( * ) THEN ( 98 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4166
SELECT + 28 * + 12 DIV - COUNT( * )
----
-336

skipif mysql # not compatible
query I rowsort label-4166
SELECT + 28 * + 12 / - COUNT ( * )
----
-336

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT - MAX( + 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-4168
SELECT - MAX ( + 84 )
----
-84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4170
SELECT + 55 DIV - + 36 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4170
SELECT + 55 / - + 36 AS col1
----
-1

query I rowsort
SELECT - 95 * - - 94
----
-8930

query I rowsort
SELECT 6 * 95
----
570

query I rowsort
SELECT + 13 + - 57 AS col2
----
-44

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT ALL - + MIN( DISTINCT - 72 ) * + 58, 41 AS col0
----
4176
41

skipif mysql # not compatible
query II rowsort label-4175
SELECT ALL - + MIN ( DISTINCT - 72 ) * + 58, 41 AS col0
----
4176
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4176
SELECT ( - + 97 ) * - COUNT( * ) + NULLIF ( - 6, 65 DIV + + 84 ) * - 54 * - 84 * + 63 + - 98 + 56 DIV ( 61 ) * + 53 * + - ( ( 27 ) ) AS col0
----
-1714609

skipif mysql # not compatible
query I rowsort label-4176
SELECT ( - + 97 ) * - COUNT ( * ) + NULLIF ( - 6, 65 / + + 84 ) * - 54 * - 84 * + 63 + - 98 + 56 / ( 61 ) * + 53 * + - ( ( 27 ) ) AS col0
----
-1714609

query I rowsort
SELECT + 44 * 10
----
440

query I rowsort
SELECT DISTINCT - 22 + 35 AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4179
SELECT + CASE + 70 WHEN - + 34 THEN ( 37 ) * + CASE CAST( NULL AS SIGNED ) WHEN + CASE 24 WHEN + 75 + 2 * - 95 * COALESCE ( - - ( - 31 ), 99 ) - 19 THEN - - 64 + 24 END THEN - 81 WHEN + ( 5 ) THEN NULL ELSE NULL END * + COUNT( 31 ) * - 44 * - COALESCE ( + 24, ( - 67 ), 83 ) WHEN 76 THEN NULL END AS col1, + 22 * - ( + 82 )
----
NULL
-1804

skipif mysql # not compatible
query II rowsort label-4179
SELECT + CASE + 70 WHEN - + 34 THEN ( 37 ) * + CASE CAST ( NULL AS INTEGER ) WHEN + CASE 24 WHEN + 75 + 2 * - 95 * COALESCE ( - - ( - 31 ), 99 ) - 19 THEN - - 64 + 24 END THEN - 81 WHEN + ( 5 ) THEN NULL ELSE NULL END * + COUNT ( 31 ) * - 44 * - COALESCE ( + 24, ( - 67 ), 83 ) WHEN 76 THEN NULL END AS col1, + 22 * - ( + 82 )
----
NULL
-1804

query I rowsort
SELECT ALL + - 32 + 91
----
59

query I rowsort
SELECT ALL - 89 * - + 45
----
4005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4182
SELECT + 71 * + CAST( NULL AS SIGNED ) * 78 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT + 71 * + CAST ( NULL AS INTEGER ) * 78 * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT - 11 + - NULLIF ( COUNT( * ), 8 ) + + 76
----
64

skipif mysql # not compatible
query I rowsort label-4183
SELECT - 11 + - NULLIF ( COUNT ( * ), 8 ) + + 76
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL 1 + + 63 - - SUM( ALL - 23 )
----
41

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL 1 + + 63 - - SUM ( ALL - 23 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL + 99 + - COUNT( * ) * - + 48 col0
----
147

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL + 99 + - COUNT ( * ) * - + 48 col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT COUNT( * ) * - 4 + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4186
SELECT COUNT ( * ) * - 4 + COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT 52 * + 99 * + CASE - - 57 WHEN 84 * + 44 + 51 * + 81 + + + 6 + + 75 * + 90 THEN - 84 WHEN + 27 * 48 THEN NULL WHEN - - 71 + + 83 * - 85 THEN + 91 - - COUNT( * ) END * + 91 + - 78 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT 52 * + 99 * + CASE - - 57 WHEN 84 * + 44 + 51 * + 81 + + + 6 + + 75 * + 90 THEN - 84 WHEN + 27 * 48 THEN NULL WHEN - - 71 + + 83 * - 85 THEN + 91 - - COUNT ( * ) END * + 91 + - 78 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT DISTINCT - CAST( - 86 AS SIGNED ) + 45 AS col1
----
131

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT - CAST ( - 86 AS INTEGER ) + 45 AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL + COALESCE ( 80, + 4 / + NULLIF ( + SUM( ALL - 8 ), - + 68 ) ) + + CASE 15 WHEN 13 THEN 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + COALESCE ( 80, + 4 / + NULLIF ( + SUM ( ALL - 8 ), - + 68 ) ) + + CASE 15 WHEN 13 THEN 27 ELSE NULL END
----
NULL

query I rowsort
SELECT 68 + - ( + + 96 ) + - 21 AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4191
SELECT + 24 * 10 * - 76 - 1 + - 59 + - 39 * COUNT( * ) AS col2, 73 - - CAST( NULL AS SIGNED ) * 22 AS col0
----
-18339
NULL

skipif mysql # not compatible
query II rowsort label-4191
SELECT + 24 * 10 * - 76 - 1 + - 59 + - 39 * COUNT ( * ) AS col2, 73 - - CAST ( NULL AS INTEGER ) * 22 AS col0
----
-18339
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT ALL - 10 * - CAST( 17 AS SIGNED ) AS col2
----
170

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL - 10 * - CAST ( 17 AS INTEGER ) AS col2
----
170

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL MAX( 89 ) - + - 13 + + 8 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL MAX ( 89 ) - + - 13 + + 8 AS col1
----
110

query I rowsort
SELECT ALL - 10 * + 6
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT + MAX( DISTINCT + 68 ) + - - COALESCE ( + 92, - 96 + - - ( 5 ) ) AS col1
----
160

skipif mysql # not compatible
query I rowsort label-4196
SELECT + MAX ( DISTINCT + 68 ) + - - COALESCE ( + 92, - 96 + - - ( 5 ) ) AS col1
----
160

query I rowsort
SELECT + - 74 + + + ( + 94 ) * - + 48 + + + 19 + + 97
----
-4470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4198
SELECT - - NULLIF ( 49, CAST( + MAX( + + 50 ) AS SIGNED ) + 16 * - 91 * + 13 / 4 )
----
49

skipif mysql # not compatible
query I rowsort label-4198
SELECT - - NULLIF ( 49, CAST ( + MAX ( + + 50 ) AS INTEGER ) + 16 * - 91 * + 13 / 4 )
----
49

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

query I rowsort
SELECT + 26 * + 40
----
1040

query I rowsort
SELECT ALL 14 * 77 AS col1
----
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL 80 + - + 75 + - COUNT( * ) - + MAX( DISTINCT - 24 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL 80 + - + 75 + - COUNT ( * ) - + MAX ( DISTINCT - 24 ) AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4203
SELECT - + COUNT( - CASE - 42 WHEN + + 0 THEN 38 WHEN + - 59 THEN NULL END ) DIV - + ( 51 ) + - - 85 AS col2, + 75
----
85
75

skipif mysql # not compatible
query II rowsort label-4203
SELECT - + COUNT ( - CASE - 42 WHEN + + 0 THEN 38 WHEN + - 59 THEN NULL END ) / - + ( 51 ) + - - 85 AS col2, + 75
----
85
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT + 42 + + SUM( DISTINCT 32 )
----
74

skipif mysql # not compatible
query I rowsort label-4204
SELECT + 42 + + SUM ( DISTINCT 32 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT + 99 - - 24 + - - SUM( - 10 ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-4205
SELECT + 99 - - 24 + - - SUM ( - 10 ) AS col0
----
113

query I rowsort
SELECT DISTINCT - - 42 * + 2 + + - 85 + + + 2 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT - SUM( + 16 ) * + 2 + + + 99 - 95 + + 44 * + 26 AS col0
----
1116

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - SUM ( + 16 ) * + 2 + + + 99 - 95 + + 44 * + 26 AS col0
----
1116

query I rowsort
SELECT ALL - 54 * 40 - + 51 + + 4 col1
----
-2207

query I rowsort
SELECT + 29 * - 26
----
-754

onlyif mysql # aggregate syntax: 
query II rowsort label-4210
SELECT - 11 + - COUNT( * ) * + 83 col1, COUNT( * ) * - 50 AS col0
----
-94
-50

skipif mysql # not compatible
query II rowsort label-4210
SELECT - 11 + - COUNT ( * ) * + 83 col1, COUNT ( * ) * - 50 AS col0
----
-94
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4211
SELECT ALL + COALESCE ( - - 12, - 15 + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) - COUNT( * ), + + 6 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + COALESCE ( - - 12, - 15 + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) - COUNT ( * ), + + 6 ) AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT DISTINCT 5 * + NULLIF ( - 63, 50 * - CAST( NULL AS SIGNED ) + + 70 + 38 ) col1
----
-315

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT 5 * + NULLIF ( - 63, 50 * - CAST ( NULL AS INTEGER ) + + 70 + 38 ) col1
----
-315

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

skipif mysql # not compatible
query II rowsort label-4213
SELECT COUNT ( * ), 39 AS col0
----
1
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4214
SELECT + 22 + - 7 DIV - 51 * - 82 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4214
SELECT + 22 + - 7 / - 51 * - 82 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4215
SELECT ALL + COUNT( - + 68 ) DIV - - 60 + + 51 * + 63, 11 + + + 7 AS col0
----
3213
18

skipif mysql # not compatible
query II rowsort label-4215
SELECT ALL + COUNT ( - + 68 ) / - - 60 + + 51 * + 63, 11 + + + 7 AS col0
----
3213
18

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

skipif mysql # not compatible
query I rowsort label-4216
SELECT - 4 * - - COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT - 41 - + 1 - 89 * - COALESCE ( + 47, + COUNT( * ) + - CASE ( - NULLIF ( - 0, + 35 ) ) WHEN - - 36 THEN NULL WHEN - 62 THEN - ( - 85 ) END, + ( + + ( 72 ) ) * + + 89 ) AS col2
----
4141

skipif mysql # not compatible
query I rowsort label-4217
SELECT - 41 - + 1 - 89 * - COALESCE ( + 47, + COUNT ( * ) + - CASE ( - NULLIF ( - 0, + 35 ) ) WHEN - - 36 THEN NULL WHEN - 62 THEN - ( - 85 ) END, + ( + + ( 72 ) ) * + + 89 ) AS col2
----
4141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4218
SELECT - NULLIF ( + 92, + COUNT( * ) - MIN( DISTINCT - 77 ) + 21 * - 0 * - 70 + + 40 DIV + COUNT( * ) ) DIV 45
----
-2

skipif mysql # not compatible
query I rowsort label-4218
SELECT - NULLIF ( + 92, + COUNT ( * ) - MIN ( DISTINCT - 77 ) + 21 * - 0 * - 70 + + 40 / + COUNT ( * ) ) / 45
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT - 54 + + + COUNT( * ) + + - 32 * + CASE - 83 WHEN - CASE - - 16 WHEN - + 99 + 50 + - + 27 THEN - 37 * + 16 - COALESCE ( + + 95, + COUNT( * ) ) END * 46 THEN NULL ELSE 87 END AS col1
----
-2837

skipif mysql # not compatible
query I rowsort label-4220
SELECT - 54 + + + COUNT ( * ) + + - 32 * + CASE - 83 WHEN - CASE - - 16 WHEN - + 99 + 50 + - + 27 THEN - 37 * + 16 - COALESCE ( + + 95, + COUNT ( * ) ) END * 46 THEN NULL ELSE 87 END AS col1
----
-2837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT ALL - + CAST( - - CAST( 4 AS SIGNED ) AS SIGNED ) * - 88 AS col0
----
352

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL - + CAST ( - - CAST ( 4 AS INTEGER ) AS INTEGER ) * - 88 AS col0
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL - + 65 * MAX( DISTINCT + + 34 ) AS col1
----
-2210

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - + 65 * MAX ( DISTINCT + + 34 ) AS col1
----
-2210

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4223
SELECT DISTINCT 1 AS col0, - ( CAST( NULL AS DECIMAL ) ) * - 48 + 42 * - 75 * - 58
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4223
SELECT DISTINCT 1 AS col0, - ( CAST ( NULL AS REAL ) ) * - 48 + 42 * - 75 * - 58
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4224
SELECT ALL - COUNT( * ), - 62 AS col0
----
-1
-62

skipif mysql # not compatible
query II rowsort label-4224
SELECT ALL - COUNT ( * ), - 62 AS col0
----
-1
-62

query I rowsort
SELECT ALL - - 90 + + + 11
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4226
SELECT + + 27 - MIN( ALL 7 ) + - 49 DIV - + 85 * - + 63 + - 76 * COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-4226
SELECT + + 27 - MIN ( ALL 7 ) + - 49 / - + 85 * - + 63 + - 76 * COUNT ( * ) AS col1
----
-56

query II rowsort
SELECT + 31 + 38 * + 37 AS col0, 83
----
1437
83

query I rowsort
SELECT ALL 14 + + 98
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4229
SELECT ALL - COALESCE ( + - MIN( - CAST( NULL AS SIGNED ) ), + - MIN( DISTINCT + 72 ) ) col1, - 74 + + 62 + - - 90
----
72
78

skipif mysql # not compatible
query II rowsort label-4229
SELECT ALL - COALESCE ( + - MIN ( - CAST ( NULL AS INTEGER ) ), + - MIN ( DISTINCT + 72 ) ) col1, - 74 + + 62 + - - 90
----
72
78

query I rowsort
SELECT DISTINCT 27 + 69 AS col1
----
96

query I rowsort
SELECT - 97 + - 66 AS col2
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4232
SELECT + - NULLIF ( - 9, COALESCE ( 27, + NULLIF ( - 92, - 81 + CAST( NULL AS SIGNED ) ) + + 97 ) - 35 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4232
SELECT + - NULLIF ( - 9, COALESCE ( 27, + NULLIF ( - 92, - 81 + CAST ( NULL AS INTEGER ) ) + + 97 ) - 35 ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4233
SELECT + - 0 * + 73 * + COUNT( * ) + COUNT( * ) + - - ( 27 ) * - - 97 * - + CAST( NULL AS DECIMAL ) + - 6 + + 96 * - + COUNT( + - 25 ) * + 44 * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT + - 0 * + 73 * + COUNT ( * ) + COUNT ( * ) + - - ( 27 ) * - - 97 * - + CAST ( NULL AS REAL ) + - 6 + + 96 * - + COUNT ( + - 25 ) * + 44 * - 93
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4234
SELECT ALL - COALESCE ( ( 93 ), - - 93 * 34 ) * - CASE - 26 WHEN + 45 / ( + 59 ) * ( + 66 ) * CAST( NULL AS SIGNED ) THEN - 95 * + - ( + CAST( - 81 AS DECIMAL ) ) * - 23 * - 14 - + 78 + - + ( + - 9 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL - COALESCE ( ( 93 ), - - 93 * 34 ) * - CASE - 26 WHEN + 45 / ( + 59 ) * ( + 66 ) * CAST ( NULL AS INTEGER ) THEN - 95 * + - ( + CAST ( - 81 AS REAL ) ) * - 23 * - 14 - + 78 + - + ( + - 9 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT DISTINCT + 60 DIV + 93 - - 79 + 58 + - 30
----
107

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT + 60 / + 93 - - 79 + 58 + - 30
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT - 17 * - 83 * - - ( + COUNT( * ) ) + - - 56 * + - 31 - + ( - COUNT( * ) ) * + - 71
----
-396

skipif mysql # not compatible
query I rowsort label-4236
SELECT - 17 * - 83 * - - ( + COUNT ( * ) ) + - - 56 * + - 31 - + ( - COUNT ( * ) ) * + - 71
----
-396

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT DISTINCT - 10 DIV 43 - + + NULLIF ( 91, 30 )
----
-91

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT - 10 / 43 - + + NULLIF ( 91, 30 )
----
-91

query I rowsort
SELECT ALL 6 * - ( - 66 )
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT - 12 * 25 * - - 22 * + 62 * - COUNT( * )
----
409200

skipif mysql # not compatible
query I rowsort label-4239
SELECT - 12 * 25 * - - 22 * + 62 * - COUNT ( * )
----
409200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT CAST( - - 94 AS SIGNED ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4240
SELECT CAST ( - - 94 AS INTEGER ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT + COUNT( * ) + ( + 6 ) + 65 * + 46 AS col0
----
2997

skipif mysql # not compatible
query I rowsort label-4241
SELECT + COUNT ( * ) + ( + 6 ) + 65 * + 46 AS col0
----
2997

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT + 65 DIV - 9 col1
----
-7

skipif mysql # not compatible
query I rowsort label-4242
SELECT + 65 / - 9 col1
----
-7

query II rowsort
SELECT ALL + 87 AS col1, 25 AS col0
----
87
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT DISTINCT 94 - + 85 * + COUNT( * ) * - - 52
----
-4326

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT 94 - + 85 * + COUNT ( * ) * - - 52
----
-4326

query I rowsort
SELECT ALL - 19 * + - 5
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4246
SELECT 77 DIV 19 * - 14 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4246
SELECT 77 / 19 * - 14 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT MIN( ALL + ( + 91 ) ) + + 21
----
112

skipif mysql # not compatible
query I rowsort label-4247
SELECT MIN ( ALL + ( + 91 ) ) + + 21
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4248
SELECT CAST( - NULLIF ( 77, + MIN( + + 14 ) ) AS SIGNED ) * - - 4 - + NULLIF ( - 48, 81 )
----
-260

skipif mysql # not compatible
query I rowsort label-4248
SELECT CAST ( - NULLIF ( 77, + MIN ( + + 14 ) ) AS INTEGER ) * - - 4 - + NULLIF ( - 48, 81 )
----
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT 74 * - CASE - ( ( - + COUNT( * ) ) ) WHEN + 89 THEN - 49 END + 16 - + 94 + 40 - + - 99 + - 48 * 43 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT 74 * - CASE - ( ( - + COUNT ( * ) ) ) WHEN + 89 THEN - 49 END + 16 - + 94 + 40 - + - 99 + - 48 * 43 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - ( - 22 ) * - 27 + - ( - + 66 ) + - COUNT( * ) * + - 53 + - + MAX( DISTINCT 23 ) AS col1
----
-498

skipif mysql # not compatible
query I rowsort label-4250
SELECT - ( - 22 ) * - 27 + - ( - + 66 ) + - COUNT ( * ) * + - 53 + - + MAX ( DISTINCT 23 ) AS col1
----
-498

query I rowsort
SELECT ALL + 66 * 22 * - + 3 + - 13 AS col0
----
-4369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4252
SELECT 81 + + CASE 82 WHEN - 13 / 31 + + 52 / CASE + + 77 WHEN - - 61 + + 28 / - 27 * - 72 THEN 5 WHEN ( + 60 ) THEN NULL ELSE NULL END THEN - CAST( - 82 AS DECIMAL ) END * - CAST( NULL AS SIGNED ) * - 2 AS col0, + 4 + - 78 + COUNT( * ), CAST( + 90 AS SIGNED ) + + SUM( - 75 ) AS col1
----
NULL
-73
15

skipif mysql # not compatible
query III rowsort label-4252
SELECT 81 + + CASE 82 WHEN - 13 / 31 + + 52 / CASE + + 77 WHEN - - 61 + + 28 / - 27 * - 72 THEN 5 WHEN ( + 60 ) THEN NULL ELSE NULL END THEN - CAST ( - 82 AS REAL ) END * - CAST ( NULL AS INTEGER ) * - 2 AS col0, + 4 + - 78 + COUNT ( * ), CAST ( + 90 AS INTEGER ) + + SUM ( - 75 ) AS col1
----
NULL
-73
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT COUNT( * ) + - 20
----
-19

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT COUNT ( * ) + - 20
----
-19

query II rowsort
SELECT - + 58 AS col1, 67 col1
----
-58
67

query I rowsort
SELECT ALL - 42 + - 45 AS col0
----
-87

query I rowsort
SELECT DISTINCT + 84 + 58 AS col0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT 50 + - COUNT( DISTINCT - 55 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4257
SELECT 50 + - COUNT ( DISTINCT - 55 ) AS col0
----
49

query I rowsort
SELECT DISTINCT - - 13 + - - 76 + - 6
----
83

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4260
SELECT 30 * + - 19 + - ( - - CAST( NULL AS DECIMAL ) ) / - + 62 / + + CAST( COUNT( * ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT 30 * + - 19 + - ( - - CAST ( NULL AS REAL ) ) / - + 62 / + + CAST ( COUNT ( * ) AS REAL )
----
NULL

query I rowsort
SELECT + ( 99 ) * + 52 AS col1
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT NULLIF ( + CASE - 87 WHEN - - 23 THEN - 92 - + - COUNT( * ) WHEN - - 78 / - - 10 THEN - + 62 WHEN - COUNT( * ) + + + 50 THEN NULL END, COALESCE ( 2, + MAX( + 73 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT NULLIF ( + CASE - 87 WHEN - - 23 THEN - 92 - + - COUNT ( * ) WHEN - - 78 / - - 10 THEN - + 62 WHEN - COUNT ( * ) + + + 50 THEN NULL END, COALESCE ( 2, + MAX ( + 73 ) ) ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4264
SELECT ALL - CASE - COUNT( * ) WHEN COUNT( * ) * + - 97 * 33 + + + ( + 78 ) + + + 32 * - 63 THEN + COUNT( * ) * CAST( 79 AS DECIMAL ) + - 37 + + - 6 - - + ( + 60 ) + 29 WHEN + + 7 + 53 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL - CASE - COUNT ( * ) WHEN COUNT ( * ) * + - 97 * 33 + + + ( + 78 ) + + + 32 * - 63 THEN + COUNT ( * ) * CAST ( 79 AS REAL ) + - 37 + + - 6 - - + ( + 60 ) + 29 WHEN + + 7 + 53 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - - 34, 61 ) AS col0
----
-34

query I rowsort
SELECT 78 * - + 51
----
-3978

query I rowsort
SELECT 52 - + 32 * 33
----
-1004

query I rowsort
SELECT 68 * - ( + - 37 ) AS col0
----
2516

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

query I rowsort
SELECT DISTINCT 88 * 98
----
8624

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT DISTINCT - 60 * + + CASE COUNT( * ) WHEN + 8 * + MIN( - 58 ) THEN - 76 * + 27 WHEN - + 95 THEN NULL ELSE - + 60 - 30 END
----
5400

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT - 60 * + + CASE COUNT ( * ) WHEN + 8 * + MIN ( - 58 ) THEN - 76 * + 27 WHEN - + 95 THEN NULL ELSE - + 60 - 30 END
----
5400

query I rowsort
SELECT 51 + - 78 + 78
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4273
SELECT ALL - 51 * - SUM( - 71 ) AS col0, + 33 AS col0
----
-3621
33

skipif mysql # not compatible
query II rowsort label-4273
SELECT ALL - 51 * - SUM ( - 71 ) AS col0, + 33 AS col0
----
-3621
33

query I rowsort
SELECT 93 * + 21
----
1953

query I rowsort
SELECT ( - 13 ) - + 85
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT DISTINCT 52 * + SUM( - 51 ) * - - 48 AS col0
----
-127296

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT 52 * + SUM ( - 51 ) * - - 48 AS col0
----
-127296

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL COUNT( * ) + 96 + + 23 * + + 59 * - ( - 62 ) - 74 * 78 AS col1
----
78459

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL COUNT ( * ) + 96 + + 23 * + + 59 * - ( - 62 ) - 74 * 78 AS col1
----
78459

query I rowsort
SELECT ALL 87 + 23 AS col2
----
110

query I rowsort
SELECT 83 * + ( 80 ) AS col0
----
6640

query I rowsort
SELECT ALL - 43 + + 15 - - - 34 AS col0
----
-62

query I rowsort
SELECT ALL + 88 * + - 21
----
-1848

query I rowsort
SELECT DISTINCT - 34 + - - 88 * - 62 + + 29
----
-5461

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4283
SELECT - MIN( 20 ) DIV - 34 * 18
----
0

skipif mysql # not compatible
query I rowsort label-4283
SELECT - MIN ( 20 ) / - 34 * 18
----
0

query I rowsort
SELECT ALL 19 + + 33 + + 60 * + + 6 col0
----
412

query I rowsort
SELECT DISTINCT + 88 + 11
----
99

query I rowsort
SELECT ALL 3 + + 18 - + 54 + - - 47 + ( + 5 ) * - 42
----
-196

query I rowsort
SELECT - 30 + + 16 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4288
SELECT + 99 * CASE - 16 WHEN + + 37 / - MIN( DISTINCT 81 ) THEN NULL WHEN 69 + 93 + 12 + + 99 THEN NULL WHEN + 49 * COUNT( - CAST( NULL AS SIGNED ) ) + 8 * + 91 * - 29 THEN - MAX( + 23 ) ELSE NULL END * + + 6 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT + 99 * CASE - 16 WHEN + + 37 / - MIN ( DISTINCT 81 ) THEN NULL WHEN 69 + 93 + 12 + + 99 THEN NULL WHEN + 49 * COUNT ( - CAST ( NULL AS INTEGER ) ) + 8 * + 91 * - 29 THEN - MAX ( + 23 ) ELSE NULL END * + + 6 * 92
----
NULL

query I rowsort
SELECT + 39 + + 71
----
110

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

skipif mysql # not compatible
query I rowsort label-4290
SELECT CAST ( - 3 AS INTEGER ) + + 36 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL 22 + - COUNT( * ) + + 48
----
69

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL 22 + - COUNT ( * ) + + 48
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT + 66 + MAX( + 4 )
----
70

skipif mysql # not compatible
query I rowsort label-4292
SELECT + 66 + MAX ( + 4 )
----
70

query I rowsort
SELECT 75 * - - 20 AS col0
----
1500

query I rowsort
SELECT DISTINCT - 11 - + + 48
----
-59

query II rowsort
SELECT - 32 + - 72 AS col0, 92
----
-104
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4296
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN - - 52 + - 18 THEN - 43 * - 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN - - 52 + - 18 THEN - 43 * - 13 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT CAST( - - 92 AS SIGNED ) * + - 25 + + 31 * + - COUNT( * )
----
-2331

skipif mysql # not compatible
query I rowsort label-4297
SELECT CAST ( - - 92 AS INTEGER ) * + - 25 + + 31 * + - COUNT ( * )
----
-2331

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT - 46 + + SUM( DISTINCT - 89 ) AS col2, COUNT( * ) AS col2
----
-135
1

skipif mysql # not compatible
query II rowsort label-4298
SELECT - 46 + + SUM ( DISTINCT - 89 ) AS col2, COUNT ( * ) AS col2
----
-135
1

query I rowsort
SELECT + 15 + 9
----
24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT ALL + 54 DIV + - ( - 71 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL + 54 / + - ( - 71 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4302
SELECT COALESCE ( + 87, + 55 ) / COUNT( * ) * + CAST( NULL AS SIGNED ) - + ( - 49 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT COALESCE ( + 87, + 55 ) / COUNT ( * ) * + CAST ( NULL AS INTEGER ) - + ( - 49 ) col0
----
NULL

query I rowsort
SELECT 78 * + + 53 * - - 56
----
231504

onlyif mysql # aggregate syntax: 
query II rowsort label-4304
SELECT DISTINCT 10 AS col1, - COUNT( * )
----
10
-1

skipif mysql # not compatible
query II rowsort label-4304
SELECT DISTINCT 10 AS col1, - COUNT ( * )
----
10
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4305
SELECT ALL + COALESCE ( - + CAST( - COALESCE ( + COUNT( * ), + ( 90 ) * - + 77 * + CAST( + 73 AS SIGNED ) + + 31 - + COUNT( * ) + 73 + + COUNT( + 37 ) - - + 60 * - + 64 * + + 16 * - + 50 * - COUNT( * ) / - - ( - 86 ) * + 57 + ( + - 12 ) + - 60 ) AS SIGNED ), ( + - 16 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL + COALESCE ( - + CAST ( - COALESCE ( + COUNT ( * ), + ( 90 ) * - + 77 * + CAST ( + 73 AS INTEGER ) + + 31 - + COUNT ( * ) + 73 + + COUNT ( + 37 ) - - + 60 * - + 64 * + + 16 * - + 50 * - COUNT ( * ) / - - ( - 86 ) * + 57 + ( + - 12 ) + - 60 ) AS INTEGER ), ( + - 16 ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 37 * + 72 AS col2
----
2664

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT + 70 DIV - - COALESCE ( 26, + 21, + 57 ) + + 87 + 97
----
186

skipif mysql # not compatible
query I rowsort label-4308
SELECT + 70 / - - COALESCE ( 26, + 21, + 57 ) + + 87 + 97
----
186

query I rowsort
SELECT COALESCE ( - - NULLIF ( + 4, + 61 ), + - ( 18 ), - 45 ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4310
SELECT CAST( - + 60 AS SIGNED ) DIV - 78 + + 11 + COUNT( * ) + - + COUNT( * ) + - 33 + + COUNT( * ) * 86 DIV 23 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4310
SELECT CAST ( - + 60 AS INTEGER ) / - 78 + + 11 + COUNT ( * ) + - + COUNT ( * ) + - 33 + + COUNT ( * ) * 86 / 23 AS col0
----
-19

query I rowsort
SELECT NULLIF ( + 99, + + 76 * - 52 * - 34 - + 12 ) col2
----
99

query II rowsort
SELECT ALL 1 * - 19 + - 8 AS col0, - 48 AS col0
----
-27
-48

query I rowsort
SELECT - 17 + 58
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4314
SELECT - CAST( MAX( DISTINCT 47 ) AS SIGNED ) + + - 4 * - 14 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4314
SELECT - CAST ( MAX ( DISTINCT 47 ) AS INTEGER ) + + - 4 * - 14 AS col0
----
9

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

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

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

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

query I rowsort
SELECT ( + 10 ) * - 36 + - 98 AS col0
----
-458

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL COUNT( * ) * + ( 31 ) + + - 97
----
-66

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL COUNT ( * ) * + ( 31 ) + + - 97
----
-66

query I rowsort
SELECT - 32 * + 77 + - 7
----
-2471

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT DISTINCT 96 * - 46 + COUNT( * )
----
-4415

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT 96 * - 46 + COUNT ( * )
----
-4415

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT DISTINCT + 67 * 11 + + + 28 * ( - - 66 ) DIV 8 AS col1
----
968

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT + 67 * 11 + + + 28 * ( - - 66 ) / 8 AS col1
----
968

onlyif mysql # aggregate syntax: 
query II rowsort label-4322
SELECT - 23 * COUNT( * ) + 55, 69 * - + ( + 40 ) - 44 AS col1
----
32
-2804

skipif mysql # not compatible
query II rowsort label-4322
SELECT - 23 * COUNT ( * ) + 55, 69 * - + ( + 40 ) - 44 AS col1
----
32
-2804

query I rowsort
SELECT ( - NULLIF ( 66, - - 12 - - 79 ) ) col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT + - CAST( + 70 AS SIGNED ) + - - 85 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4324
SELECT + - CAST ( + 70 AS INTEGER ) + - - 85 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL - SUM( - - 10 ) col0
----
-10

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL - SUM ( - - 10 ) col0
----
-10

query I rowsort
SELECT ALL + 74 - + 25
----
49

query I rowsort
SELECT + - 63 * - 17 * + + 7 * + 41 * + + 93 + - 41 col0
----
28586020

query II rowsort
SELECT - 49 AS col2, - 95 + COALESCE ( + - 11, - 66 ) * 68
----
-49
-843

onlyif mysql # aggregate syntax: 
query III rowsort label-4329
SELECT ALL 60, + 12 + + MIN( 98 ) AS col0, - + 94 + + 72 AS col2
----
60
110
-22

skipif mysql # not compatible
query III rowsort label-4329
SELECT ALL 60, + 12 + + MIN ( 98 ) AS col0, - + 94 + + 72 AS col2
----
60
110
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT ALL + 93 - - AVG ( ALL 12 ) - + 31 * + 97 / 23 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL + 93 - - AVG ( ALL 12 ) - + 31 * + 97 / 23 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + ( + 81 ) * CASE 72 WHEN + 30 THEN 78 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4332
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, - ( + 59 ) + + 45
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-4332
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, - ( + 59 ) + + 45
----
NULL
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4333
SELECT + - COUNT( * ) + - + 2 DIV 29 + + 23 + - NULLIF ( 12, + 91 ) * 80 AS col0
----
-938

skipif mysql # not compatible
query I rowsort label-4333
SELECT + - COUNT ( * ) + - + 2 / 29 + + 23 + - NULLIF ( 12, + 91 ) * 80 AS col0
----
-938

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4334
SELECT ALL COALESCE ( + 23, + 63 DIV COUNT( * ) * 0 + 19 ) col2
----
23

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL COALESCE ( + 23, + 63 / COUNT ( * ) * 0 + 19 ) col2
----
23

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4336
SELECT + + 38 + NULLIF ( - - COUNT( * ), - 14 + - AVG ( + 32 ) ) DIV - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4336
SELECT + + 38 + NULLIF ( - - COUNT ( * ), - 14 + - AVG ( + 32 ) ) / - COUNT ( * ) AS col2
----
37

query I rowsort
SELECT + 39 * 59 + + 91 - + - 31 AS col0
----
2423

query I rowsort
SELECT + 9 * 40 AS col0
----
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 57 AS col2
----
NULL

query II rowsort
SELECT ALL 77 * - - 27, - 83 - + 2 col0
----
2079
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4341
SELECT DISTINCT MAX( 31 ), 35 DIV - 43 + - 11 * - - 5 AS col2
----
31
-55

skipif mysql # not compatible
query II rowsort label-4341
SELECT DISTINCT MAX ( 31 ), 35 / - 43 + - 11 * - - 5 AS col2
----
31
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4342
SELECT DISTINCT - 78 + + 39, + CAST( NULL AS SIGNED ) AS col2
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-4342
SELECT DISTINCT - 78 + + 39, + CAST ( NULL AS INTEGER ) AS col2
----
-39
NULL

query I rowsort
SELECT ALL CASE - 1 WHEN 88 THEN NULL WHEN 54 * 37 * + 31 * + 69 + 11 THEN + 40 + + - 32 ELSE + + 65 - 61 * 55 + - 72 END
----
-3362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4344
SELECT - CAST( - - 29 AS SIGNED ), COUNT( * ) DIV COUNT( * ) * + + COUNT( * ) AS col0
----
-29
1

skipif mysql # not compatible
query II rowsort label-4344
SELECT - CAST ( - - 29 AS INTEGER ), COUNT ( * ) / COUNT ( * ) * + + COUNT ( * ) AS col0
----
-29
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4345
SELECT + 6 + + 64 * - NULLIF ( - ( - 79 ), 59 * + - 46 ) * - COUNT( * ) * - 90 AS col2, + MIN( - 70 )
----
-455034
-70

skipif mysql # not compatible
query II rowsort label-4345
SELECT + 6 + + 64 * - NULLIF ( - ( - 79 ), 59 * + - 46 ) * - COUNT ( * ) * - 90 AS col2, + MIN ( - 70 )
----
-455034
-70

query I rowsort
SELECT DISTINCT 76 + 19 - - 39 AS col2
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT DISTINCT 23 DIV 33 + + NULLIF ( + - 80, + 1 ) + + + 69 + - 45 * + 78
----
-3521

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT 23 / 33 + + NULLIF ( + - 80, + 1 ) + + + 69 + - 45 * + 78
----
-3521

query II rowsort
SELECT + ( + + 63 ) AS col1, + 81
----
63
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT - 5 DIV - ( 66 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT - 5 / - ( 66 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4350
SELECT ALL 29 DIV + - 85 + 15
----
15

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL 29 / + - 85 + 15
----
15

query II rowsort
SELECT DISTINCT + 6 * - - 24 AS col0, - 92 * + 3 AS col0
----
144
-276

query I rowsort
SELECT + ( - 17 ) - + - 64 - 60 * 83 AS col2
----
-4933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4353
SELECT ALL + MIN( ALL 22 ) * - - CAST( + + 42 AS SIGNED )
----
924

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL + MIN ( ALL 22 ) * - - CAST ( + + 42 AS INTEGER )
----
924

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

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

query I rowsort
SELECT - 22 * 51
----
-1122

query I rowsort
SELECT ALL + 89 * - - 33
----
2937

onlyif mysql # DIV for integer division: 
query I rowsort label-4357
SELECT - 39 DIV 18
----
-2

skipif mysql # not compatible
query I rowsort label-4357
SELECT - 39 / 18
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4358
SELECT ( - ( CASE ( 65 ) WHEN - ( - - CAST( NULL AS SIGNED ) ) THEN - + 63 WHEN + 44 - 40 + + 66 * - COUNT( * ) THEN - 36 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT ( - ( CASE ( 65 ) WHEN - ( - - CAST ( NULL AS INTEGER ) ) THEN - + 63 WHEN + 44 - 40 + + 66 * - COUNT ( * ) THEN - 36 END ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4359
SELECT ALL - 7 * ( 46 ) * + - 43 * ( + 90 ) * + COALESCE ( - MAX( + ( - NULLIF ( + + 52, + + 53 ) ) ), - ( 21 ) - + + 34 DIV + - 36 ) - + 61 - - 38
----
64799257

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL - 7 * ( 46 ) * + - 43 * ( + 90 ) * + COALESCE ( - MAX ( + ( - NULLIF ( + + 52, + + 53 ) ) ), - ( 21 ) - + + 34 / + - 36 ) - + 61 - - 38
----
64799257

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT + 64 * + 46 - 38 - + - SUM( ALL 39 ) * - 27 AS col0
----
1853

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT + 64 * + 46 - 38 - + - SUM ( ALL 39 ) * - 27 AS col0
----
1853

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4361
SELECT - 12 * CAST( NULL AS DECIMAL ) AS col1, 18
----
NULL
18

skipif mysql # not compatible
query II rowsort label-4361
SELECT - 12 * CAST ( NULL AS REAL ) AS col1, 18
----
NULL
18

query I rowsort
SELECT DISTINCT + COALESCE ( + 82, - - 85, + ( - + 48 ) * + 75 )
----
82

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT DISTINCT + - 26 DIV + - 9 + - 15 + - 14 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + - 26 / + - 9 + - 15 + - 14 AS col2
----
-27

query I rowsort
SELECT - + 48 + - 89 * - 37 AS col1
----
3245

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL + SUM( + - 28 ) * + 44 * 1
----
-1232

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + SUM ( + - 28 ) * + 44 * 1
----
-1232

query I rowsort
SELECT - - 73 + - 52 * 75
----
-3827

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4368
SELECT ALL + + SUM( ALL + NULLIF ( 94, - 44 ) ) * 27 + 14 + + 52 DIV + COUNT( * ) + + - 70 AS col0, + 24 DIV - - ( + - 84 ) + ( 67 ) AS col2
----
2534
67

skipif mysql # not compatible
query II rowsort label-4368
SELECT ALL + + SUM ( ALL + NULLIF ( 94, - 44 ) ) * 27 + 14 + + 52 / + COUNT ( * ) + + - 70 AS col0, + 24 / - - ( + - 84 ) + ( 67 ) AS col2
----
2534
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT - 23 / - CASE - 4 WHEN - ( - COUNT( * ) ) THEN 97 * - + 54 + - 94 + COUNT( * ) END AS col2, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4369
SELECT - 23 / - CASE - 4 WHEN - ( - COUNT ( * ) ) THEN 97 * - + 54 + - 94 + COUNT ( * ) END AS col2, + COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT - 37 + - COUNT( * ) + + - COUNT( * ) * + + COUNT( + 64 ) + - 43 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4370
SELECT - 37 + - COUNT ( * ) + + - COUNT ( * ) * + + COUNT ( + 64 ) + - 43 AS col2
----
-82

query I rowsort
SELECT ALL COALESCE ( - - 76, + + 81 ) AS col2
----
76

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

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

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

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

query I rowsort
SELECT 71 + + + 16 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT ALL 30 DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL 30 / + + 88
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT ALL - 19 DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL - 19 / + 48
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT 48 DIV 4 col0
----
12

skipif mysql # not compatible
query I rowsort label-4377
SELECT 48 / 4 col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT 52 + - - CASE + 38 WHEN + + 1 / - COUNT( * ) + - 56 THEN + 40 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT 52 + - - CASE + 38 WHEN + + 1 / - COUNT ( * ) + - 56 THEN + 40 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4379
SELECT - 61 AS col0, + 21 * + COUNT( * ) * + 32 + 11 AS col2
----
-61
683

skipif mysql # not compatible
query II rowsort label-4379
SELECT - 61 AS col0, + 21 * + COUNT ( * ) * + 32 + 11 AS col2
----
-61
683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4380
SELECT CASE - 27 WHEN - 84 THEN NULL ELSE + - COUNT( * ) END * - 33 + - CAST( NULL AS SIGNED ) * + 98 / 74 * 43 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT CASE - 27 WHEN - 84 THEN NULL ELSE + - COUNT ( * ) END * - 33 + - CAST ( NULL AS INTEGER ) * + 98 / 74 * 43 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT DISTINCT 35 + + NULLIF ( - 42, - - CAST( NULL AS SIGNED ) ) + 41
----
34

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT 35 + + NULLIF ( - 42, - - CAST ( NULL AS INTEGER ) ) + 41
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT ALL 94 + 65 - - COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL 94 + 65 - - COUNT ( * )
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT SUM( ALL - 83 ) + + 73 * + 34 col2
----
2399

skipif mysql # not compatible
query I rowsort label-4383
SELECT SUM ( ALL - 83 ) + + 73 * + 34 col2
----
2399

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL MAX( DISTINCT - - 11 ) * - COUNT( * ) + + + 60 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL MAX ( DISTINCT - - 11 ) * - COUNT ( * ) + + + 60 AS col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4385
SELECT DISTINCT + 47 + - - 75 + + 72 AS col0, - COUNT( * ) + - 52 AS col2
----
194
-53

skipif mysql # not compatible
query II rowsort label-4385
SELECT DISTINCT + 47 + - - 75 + + 72 AS col0, - COUNT ( * ) + - 52 AS col2
----
194
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-4386
SELECT ALL 75 + - 73 DIV + 27 AS col0, - 86 + + - 14
----
73
-100

skipif mysql # not compatible
query II rowsort label-4386
SELECT ALL 75 + - 73 / + 27 AS col0, - 86 + + - 14
----
73
-100

query I rowsort
SELECT DISTINCT 81 + - 31 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL ( CASE WHEN 51 IN ( + COUNT( * ) ) THEN COUNT( * ) END ) + - 54 + + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL ( CASE WHEN 51 IN ( + COUNT ( * ) ) THEN COUNT ( * ) END ) + - 54 + + - 68
----
NULL

query I rowsort
SELECT ALL - 29 + - 1 + - 50 * - + 36 + - 66 * + NULLIF ( - 85, + 24 ) + 84
----
7464

query I rowsort
SELECT 21 * + 40 + - 24 + - - 80
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT + + MIN( ALL 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4391
SELECT + + MIN ( ALL 85 ) AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT + 91 + + 95 DIV - - 98
----
91

skipif mysql # not compatible
query I rowsort label-4392
SELECT + 91 + + 95 / - - 98
----
91

query I rowsort
SELECT ALL - 18 * 74 * + 97 AS col2
----
-129204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4394
SELECT - - 74 * COUNT( * ) + 69 AS col1, CAST( NULL AS DECIMAL ) * - 64 + + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
143
NULL

skipif mysql # not compatible
query II rowsort label-4394
SELECT - - 74 * COUNT ( * ) + 69 AS col1, CAST ( NULL AS REAL ) * - 64 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
143
NULL

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

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

query I rowsort
SELECT DISTINCT 11 * - 14 AS col2
----
-154

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

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

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

skipif mysql # not compatible
query I rowsort label-4398
SELECT - 68 + + + COUNT ( * ) AS col2
----
-67

query I rowsort
SELECT + NULLIF ( + 71, 12 )
----
71

query I rowsort
SELECT 22 * + 18
----
396

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL - COUNT( * ) + - ( - 65 )
----
64

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL - COUNT ( * ) + - ( - 65 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT + COALESCE ( - COALESCE ( - 6, - 37, - - 32 ), + + MAX( + - ( + 3 ) ) )
----
6

skipif mysql # not compatible
query I rowsort label-4403
SELECT + COALESCE ( - COALESCE ( - 6, - 37, - - 32 ), + + MAX ( + - ( + 3 ) ) )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT + COUNT( * ) * - + 55 * 52 * - 61 + + 34 + - 64 + + 5 DIV - 67 + + 14 AS col1
----
174444

skipif mysql # not compatible
query I rowsort label-4404
SELECT + COUNT ( * ) * - + 55 * 52 * - 61 + + 34 + - 64 + + 5 / - 67 + + 14 AS col1
----
174444

query I rowsort
SELECT ALL + + 32 + - 37 * - + 36
----
1364

query I rowsort
SELECT ALL - 60 + - 58
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT + COUNT( * ) * + + MIN( - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT + COUNT ( * ) * + + MIN ( - 62 )
----
-62

query I rowsort
SELECT 52 * 15 AS col2
----
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4409
SELECT ALL + MIN( DISTINCT - 26 ) + - COALESCE ( - 35, + CAST( NULL AS SIGNED ) ) + - + ( - + CAST( - - 20 AS SIGNED ) )
----
29

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + MIN ( DISTINCT - 26 ) + - COALESCE ( - 35, + CAST ( NULL AS INTEGER ) ) + - + ( - + CAST ( - - 20 AS INTEGER ) )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT DISTINCT - 6 * + 21 * + - 67 * - - 12 * 44 / + CAST( NULL AS SIGNED ) * 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT - 6 * + 21 * + - 67 * - - 12 * 44 / + CAST ( NULL AS INTEGER ) * 80 AS col2
----
NULL

query I rowsort
SELECT 77 - 79 * + 94
----
-7349

onlyif mysql # aggregate syntax: 
query II rowsort label-4412
SELECT ALL COUNT( * ), 85 AS col0
----
1
85

skipif mysql # not compatible
query II rowsort label-4412
SELECT ALL COUNT ( * ), 85 AS col0
----
1
85

query I rowsort
SELECT ALL + 33 + + 29 * + 21
----
642

query II rowsort
SELECT 34 AS col2, 48 + - 26 AS col1
----
34
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT ALL + 61 + + 66 DIV + - 49
----
60

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL + 61 + + 66 / + - 49
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT 96 DIV + 28 col0
----
3

skipif mysql # not compatible
query I rowsort label-4416
SELECT 96 / + 28 col0
----
3

query I rowsort
SELECT ALL - 97 + + + 40 * - 14
----
-657

onlyif mysql # DIV for integer division: 
query I rowsort label-4418
SELECT ALL 40 DIV - + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL 40 / - + 55 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4419
SELECT ALL COUNT( * ), + 86 AS col0
----
1
86

skipif mysql # not compatible
query II rowsort label-4419
SELECT ALL COUNT ( * ), + 86 AS col0
----
1
86

query I rowsort
SELECT ALL ( 10 ) - - + 82
----
92

query I rowsort
SELECT 86 + + 26 col0
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-4422
SELECT 21 DIV + 97 col1
----
0

skipif mysql # not compatible
query I rowsort label-4422
SELECT 21 / + 97 col1
----
0

query I rowsort
SELECT 92 * - 16 * + - 14 AS col1
----
20608

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4424
SELECT ALL + COALESCE ( + 89, NULLIF ( + + ( ( - + CAST( - + 33 AS SIGNED ) ) ), + + ( COALESCE ( + + 23, - 51 ) ) ) ) * 33 * + 43 - - 98 DIV - NULLIF ( - 55, + ( - ( - 41 ) ) )
----
126292

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL + COALESCE ( + 89, NULLIF ( + + ( ( - + CAST ( - + 33 AS INTEGER ) ) ), + + ( COALESCE ( + + 23, - 51 ) ) ) ) * 33 * + 43 - - 98 / - NULLIF ( - 55, + ( - ( - 41 ) ) )
----
126292

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT COUNT( - 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4425
SELECT COUNT ( - 19 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4426
SELECT ALL - 29, 1 * - + SUM( CAST( NULLIF ( 84, - 64 - + 38 ) AS SIGNED ) ) col2
----
-29
-84

skipif mysql # not compatible
query II rowsort label-4426
SELECT ALL - 29, 1 * - + SUM ( CAST ( NULLIF ( 84, - 64 - + 38 ) AS INTEGER ) ) col2
----
-29
-84

query I rowsort
SELECT DISTINCT - 88 * - 43 + 98 * + 74
----
11036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT CAST( 74 AS SIGNED ) * + - 24 + 87 - - - 15
----
-1704

skipif mysql # not compatible
query I rowsort label-4428
SELECT CAST ( 74 AS INTEGER ) * + - 24 + 87 - - - 15
----
-1704

query I rowsort
SELECT ALL - 77 * - + 79 + 39 * - 37 col0
----
4640

query I rowsort
SELECT ALL - - 47 col1
----
47

onlyif mysql # DIV for integer division: 
query III rowsort label-4431
SELECT - 30 * 7 AS col2, + 38 DIV 9 AS col2, - 24 AS col2
----
-210
4
-24

skipif mysql # not compatible
query III rowsort label-4431
SELECT - 30 * 7 AS col2, + 38 / 9 AS col2, - 24 AS col2
----
-210
4
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL CASE - + 29 WHEN + - 25 * 57 * - 36 THEN - 8 + + + 49 + 51 * + 66 WHEN - COUNT( * ) * - 3 THEN + + MAX( 33 ) ELSE NULL END * 92 + + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL CASE - + 29 WHEN + - 25 * 57 * - 36 THEN - 8 + + + 49 + 51 * + 66 WHEN - COUNT ( * ) * - 3 THEN + + MAX ( 33 ) ELSE NULL END * 92 + + 39 AS col0
----
NULL

query II rowsort
SELECT + 17 AS col0, - COALESCE ( 10, + 12 + 39 ) AS col2
----
17
-10

query II rowsort
SELECT ALL - + 22, 18 AS col1
----
-22
18

query II rowsort
SELECT + 35 AS col2, 93 AS col0
----
35
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4436
SELECT DISTINCT 45 DIV + COUNT( * ) + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT 45 / + COUNT ( * ) + COUNT ( * )
----
46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4438
SELECT ALL - 1 DIV - 16
----
0

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL - 1 / - 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4439
SELECT + 32 * - + CAST( 83 AS SIGNED ) - - COUNT( * ), + NULLIF ( 62, - 25 * + 51 / COUNT( * ) ) AS col2, - 93 + - 3 * + 55 + + ( + + 35 ) + - 39 AS col2
----
-2655
62
-262

skipif mysql # not compatible
query III rowsort label-4439
SELECT + 32 * - + CAST ( 83 AS INTEGER ) - - COUNT ( * ), + NULLIF ( 62, - 25 * + 51 / COUNT ( * ) ) AS col2, - 93 + - 3 * + 55 + + ( + + 35 ) + - 39 AS col2
----
-2655
62
-262

query I rowsort
SELECT DISTINCT + 68 * + + NULLIF ( - 45, - 74 + - + 58 )
----
-3060

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT - 55 - + 70 DIV 49 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4441
SELECT - 55 - + 70 / 49 AS col0
----
-56

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT - COUNT( * ) * 68 col1, 91 * + - 86 + - 23 AS col2
----
-68
-7849

skipif mysql # not compatible
query II rowsort label-4443
SELECT - COUNT ( * ) * 68 col1, 91 * + - 86 + - 23 AS col2
----
-68
-7849

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

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

query I rowsort
SELECT + 83 + - - 71 AS col0
----
154

query I rowsort
SELECT - 89 * + + 32 * 42
----
-119616

onlyif mysql # aggregate syntax: 
query II rowsort label-4447
SELECT ALL - COUNT( * ) + + 93, ( + COUNT( * ) ) AS col2
----
92
1

skipif mysql # not compatible
query II rowsort label-4447
SELECT ALL - COUNT ( * ) + + 93, ( + COUNT ( * ) ) AS col2
----
92
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + CASE - AVG ( - + 49 ) WHEN + COUNT( DISTINCT - 73 ) + + - 84 * 57 THEN 89 END + - MAX( 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4449
SELECT + CASE - AVG ( - + 49 ) WHEN + COUNT ( DISTINCT - 73 ) + + - 84 * 57 THEN 89 END + - MAX ( 58 )
----
NULL

query I rowsort
SELECT - 53 + 3 * + + 20
----
7

query I rowsort
SELECT ALL 59 + 30
----
89

query I rowsort
SELECT - 5 + 52 + - 92
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4453
SELECT - 23 * - COUNT( * ) DIV - SUM( ALL + 88 ) * + 49 * 85 + + 39 * + 44
----
1716

skipif mysql # not compatible
query I rowsort label-4453
SELECT - 23 * - COUNT ( * ) / - SUM ( ALL + 88 ) * + 49 * 85 + + 39 * + 44
----
1716

query I rowsort
SELECT DISTINCT - 84 * - + 43 col2
----
3612

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

query I rowsort
SELECT ALL ( + - 2 ) AS col1
----
-2

query II rowsort
SELECT DISTINCT ( - 52 ) AS col0, - 39
----
-52
-39

query I rowsort
SELECT DISTINCT ( - 3 ) AS col0
----
-3

query I rowsort
SELECT - 87 * - 12 + + ( - 13 ) - - - 80
----
951

query I rowsort
SELECT ALL + - NULLIF ( 58, - 54 * - 88 - + - ( - 41 ) )
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-4461
SELECT DISTINCT + 68 DIV + 82, 75 AS col1
----
0
75

skipif mysql # not compatible
query II rowsort label-4461
SELECT DISTINCT + 68 / + 82, 75 AS col1
----
0
75

query I rowsort
SELECT - + 36 * - 97 + + + NULLIF ( - 10, 58 ) + - 52
----
3430

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT + + 29 - COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4463
SELECT + + 29 - COUNT ( * ) AS col1
----
28

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

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT + + 20 / COUNT ( * )
----
20

query I rowsort
SELECT - + 60 * - 38 * + - 82 AS col2
----
-186960

query I rowsort
SELECT + - COALESCE ( + - 57, + 23 )
----
57

query I rowsort
SELECT ALL 44 * + 83 + 98
----
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL - ( - + 32 ) * 71 + + 85 * + - SUM( - + 12 ) AS col1
----
3292

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - ( - + 32 ) * 71 + + 85 * + - SUM ( - + 12 ) AS col1
----
3292

query I rowsort
SELECT DISTINCT + + 76 * + 89 * - 22 + 41 AS col1
----
-148767

query I rowsort
SELECT DISTINCT 15 * + 11 + 32
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL 52 * + 92 * 46 + - 26 - + 40 + + - COALESCE ( + CASE + 69 WHEN 68 + + - 5 + 27 THEN NULL ELSE - COUNT( * ) + - - 57 END, + 79, - - 99 ) * + + COALESCE ( + 6, 6 * - 35 * 49 - - MAX( DISTINCT - 48 ) + + 46 * + - 92, + COUNT( ( + 91 ) ), - COUNT( * ) ) * + COUNT( * ) AS col1
----
219662

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL 52 * + 92 * 46 + - 26 - + 40 + + - COALESCE ( + CASE + 69 WHEN 68 + + - 5 + 27 THEN NULL ELSE - COUNT ( * ) + - - 57 END, + 79, - - 99 ) * + + COALESCE ( + 6, 6 * - 35 * 49 - - MAX ( DISTINCT - 48 ) + + 46 * + - 92, + COUNT ( ( + 91 ) ), - COUNT ( * ) ) * + COUNT ( * ) AS col1
----
219662

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT CASE WHEN NOT COUNT( * ) < + - COUNT( * ) THEN - 15 ELSE NULL END
----
-15

skipif mysql # not compatible
query I rowsort label-4473
SELECT CASE WHEN NOT COUNT ( * ) < + - COUNT ( * ) THEN - 15 ELSE NULL END
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4474
SELECT ALL 7 * ( + 98 ) DIV 75 + 64
----
73

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL 7 * ( + 98 ) / 75 + 64
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4475
SELECT DISTINCT 76 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT 76 / + 89
----
0

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

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

query I rowsort
SELECT ALL 11 * + - ( + 9 )
----
-99

query I rowsort
SELECT ALL 5 * + 97 * + 91 * + 28 * - - 99
----
122342220

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT - ( + ( + MIN( DISTINCT - + 48 ) ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4479
SELECT - ( + ( + MIN ( DISTINCT - + 48 ) ) ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4480
SELECT + CAST( - COUNT( DISTINCT 2 ) AS SIGNED ) * - + 78 * - - 94 - + 91 * + - 24
----
9516

skipif mysql # not compatible
query I rowsort label-4480
SELECT + CAST ( - COUNT ( DISTINCT 2 ) AS INTEGER ) * - + 78 * - - 94 - + 91 * + - 24
----
9516

onlyif mysql # DIV for integer division: 
query I rowsort label-4481
SELECT + 87 DIV - + 82 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4481
SELECT + 87 / - + 82 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4482
SELECT - SUM( 9 ) DIV - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4482
SELECT - SUM ( 9 ) / - 59 AS col1
----
0

query I rowsort
SELECT + 63 - + NULLIF ( 23, - 10 )
----
40

query I rowsort
SELECT ALL 69 * - - 97
----
6693

query I rowsort
SELECT + 81 + ( 7 )
----
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT - - 50 * NULLIF ( + COUNT( * ), ( - - 7 ) / - - 58 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4487
SELECT - - 50 * NULLIF ( + COUNT ( * ), ( - - 7 ) / - - 58 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL - + 84 + SUM( - 72 ) * - 5
----
276

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL - + 84 + SUM ( - 72 ) * - 5
----
276

query I rowsort
SELECT + + 81 + + 95
----
176

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-4491
SELECT - 21 + + 34 + + - 89 DIV + ( + - 29 ) DIV - 1 AS col1, - 99 + + + 5
----
10
-94

skipif mysql # not compatible
query II rowsort label-4491
SELECT - 21 + + 34 + + - 89 / + ( + - 29 ) / - 1 AS col1, - 99 + + + 5
----
10
-94

query I rowsort
SELECT DISTINCT + 62 * + + 90 AS col1
----
5580

query I rowsort
SELECT ALL - 3 + + + 29
----
26

query I rowsort
SELECT ALL + 45 + + + 92
----
137

query I rowsort
SELECT ALL 48 * - NULLIF ( 98, - COALESCE ( + 3, ( + 27 ) ) ) AS col2
----
-4704

query I rowsort
SELECT + 87 * 25 col1
----
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT + COALESCE ( + NULLIF ( - 61, + MAX( DISTINCT 64 ) ), + COUNT( * ) ) * + 51 AS col2
----
-3111

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT + COALESCE ( + NULLIF ( - 61, + MAX ( DISTINCT 64 ) ), + COUNT ( * ) ) * + 51 AS col2
----
-3111

query I rowsort
SELECT ALL - ( + 55 ) + + + 16 AS col2
----
-39

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

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

query I rowsort
SELECT 28 * 10
----
280

query I rowsort
SELECT ALL - - 12 + - 44 - 32
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT ALL + - 50 DIV 27
----
-1

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL + - 50 / 27
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT 7 - + - 13 DIV 43 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4503
SELECT 7 - + - 13 / 43 AS col1
----
7

query I rowsort
SELECT DISTINCT + + 0 * + 11 AS col1
----
0

query I rowsort
SELECT ( + 58 ) * + ( 22 ) - + 35 * + 55 col1
----
-649

query I rowsort
SELECT ALL - 29 - + - 70 AS col0
----
41

query I rowsort
SELECT DISTINCT 6 * - 90 * + 84
----
-45360

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL COUNT( * ) * - 92 * 70
----
-6440

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL COUNT ( * ) * - 92 * 70
----
-6440

query I rowsort
SELECT ALL + 2 * - + ( - 13 ) AS col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4510
SELECT COUNT( * ) * 80 AS col2, 20 DIV - 20 AS col1
----
80
-1

skipif mysql # not compatible
query II rowsort label-4510
SELECT COUNT ( * ) * 80 AS col2, 20 / - 20 AS col1
----
80
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4511
SELECT 12 - NULLIF ( COUNT( * ), + 85 ) AS col2, 67
----
11
67

skipif mysql # not compatible
query II rowsort label-4511
SELECT 12 - NULLIF ( COUNT ( * ), + 85 ) AS col2, 67
----
11
67

query I rowsort
SELECT - 8 * + 99 - 56
----
-848

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT 96 + - COUNT( - - 70 ) * COUNT( ALL + 53 ) + 33 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-4513
SELECT 96 + - COUNT ( - - 70 ) * COUNT ( ALL + 53 ) + 33 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ( + 86 ) * - - 80 - - MIN( ALL 51 ) * - COUNT( * )
----
6829

skipif mysql # not compatible
query I rowsort label-4514
SELECT ( + 86 ) * - - 80 - - MIN ( ALL 51 ) * - COUNT ( * )
----
6829

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

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

query I rowsort
SELECT DISTINCT + 94 + - + 69
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT DISTINCT CAST( - 37 AS SIGNED ) * - 15 - 41 * - + 41
----
2236

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT CAST ( - 37 AS INTEGER ) * - 15 - 41 * - + 41
----
2236

query II rowsort
SELECT 63 + - - 30 AS col1, + 94
----
93
94

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4520
SELECT 94 DIV 84 * - 21 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-4520
SELECT 94 / 84 * - 21 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT - 7 + - COALESCE ( + COALESCE ( + - 67, + - 62 + + + 86 ), MIN( DISTINCT + 34 ) * 44 * - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT - 7 + - COALESCE ( + COALESCE ( + - 67, + - 62 + + + 86 ), MIN ( DISTINCT + 34 ) * 44 * - 60 )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4522
SELECT DISTINCT 37 * 20 AS col0, 7 * + COUNT( * )
----
740
7

skipif mysql # not compatible
query II rowsort label-4522
SELECT DISTINCT 37 * 20 AS col0, 7 * + COUNT ( * )
----
740
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4523
SELECT ALL 55 + - - CAST( NULL AS DECIMAL ) + + MAX( - 84 ) * - CAST( NULL AS SIGNED ) + ( - NULLIF ( + 23, 56 * - - 92 + + 21 / 27 * + - 94 ) ) + + - 80 - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL 55 + - - CAST ( NULL AS REAL ) + + MAX ( - 84 ) * - CAST ( NULL AS INTEGER ) + ( - NULLIF ( + 23, 56 * - - 92 + + 21 / 27 * + - 94 ) ) + + - 80 - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4524
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), 17 ) + - 92 - COUNT( * ) + - ( - 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), 17 ) + - 92 - COUNT ( * ) + - ( - 33 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4525
SELECT - CAST( NULL AS DECIMAL ) - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT - CAST ( NULL AS REAL ) - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT 42 + - MAX( ALL - 95 ) AS col1
----
137

skipif mysql # not compatible
query I rowsort label-4526
SELECT 42 + - MAX ( ALL - 95 ) AS col1
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-4527
SELECT ALL - - 85 - - COUNT( * ) col1, - 93 AS col0
----
86
-93

skipif mysql # not compatible
query II rowsort label-4527
SELECT ALL - - 85 - - COUNT ( * ) col1, - 93 AS col0
----
86
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4528
SELECT + 77 DIV 35 + - 86 + COUNT( DISTINCT - 44 ) + ( + 67 ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-4528
SELECT + 77 / 35 + - 86 + COUNT ( DISTINCT - 44 ) + ( + 67 ) col0
----
-16

query I rowsort
SELECT 91 * + 28 * 41
----
104468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL + 56 * + + COUNT( * ) * MIN( + CAST( - + 6 AS SIGNED ) )
----
-336

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL + 56 * + + COUNT ( * ) * MIN ( + CAST ( - + 6 AS INTEGER ) )
----
-336

onlyif mysql # aggregate syntax: 
query II rowsort label-4531
SELECT COUNT( * ) + 27 + - + 7 * COUNT( * ) AS col0, + 26
----
21
26

skipif mysql # not compatible
query II rowsort label-4531
SELECT COUNT ( * ) + 27 + - + 7 * COUNT ( * ) AS col0, + 26
----
21
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT + MAX( DISTINCT - 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4532
SELECT + MAX ( DISTINCT - 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT + 86 * - CASE + SUM( ALL - + 18 ) WHEN + 69 / + - COALESCE ( + COUNT( * ), + + COUNT( * ) ) + - + 40 * - ( + 75 ) * + COUNT( DISTINCT + 20 ) - 93 + - + 93 * 75 - + + 84 + + 33 THEN - 49 ELSE NULL END + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT + 86 * - CASE + SUM ( ALL - + 18 ) WHEN + 69 / + - COALESCE ( + COUNT ( * ), + + COUNT ( * ) ) + - + 40 * - ( + 75 ) * + COUNT ( DISTINCT + 20 ) - 93 + - + 93 * 75 - + + 84 + + 33 THEN - 49 ELSE NULL END + 67 AS col2
----
NULL

query I rowsort
SELECT ALL + 70 * + 87 AS col2
----
6090

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4536
SELECT DISTINCT - NULLIF ( - 50, ( - - CAST( NULL AS SIGNED ) ) ) DIV 83 + 30
----
30

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT - NULLIF ( - 50, ( - - CAST ( NULL AS INTEGER ) ) ) / 83 + 30
----
30

query I rowsort
SELECT 12 + 86
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4538
SELECT 15 DIV + - 87
----
0

skipif mysql # not compatible
query I rowsort label-4538
SELECT 15 / + - 87
----
0

query I rowsort
SELECT 22 + 89
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-4540
SELECT DISTINCT - 25 DIV - - 5
----
-5

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT - 25 / - - 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT COUNT( * ) * + 57 col1
----
57

skipif mysql # not compatible
query I rowsort label-4541
SELECT COUNT ( * ) * + 57 col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4542
SELECT 44 * + 49 DIV + 49 + 12 * + 17 * + CAST( - 90 AS SIGNED ) + - COUNT( - 96 )
----
-18317

skipif mysql # not compatible
query I rowsort label-4542
SELECT 44 * + 49 / + 49 + 12 * + 17 * + CAST ( - 90 AS INTEGER ) + - COUNT ( - 96 )
----
-18317

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

query I rowsort
SELECT ALL - CASE + 66 WHEN + - CASE - 45 WHEN 51 THEN + 71 ELSE NULL END THEN NULL WHEN 96 THEN 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT - NULLIF ( - - 58, - + COUNT( 12 ) ) + 75
----
17

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT - NULLIF ( - - 58, - + COUNT ( 12 ) ) + 75
----
17

query I rowsort
SELECT ALL ( + + ( 88 ) ) * - - 45
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT COUNT( * ) * + 23 * - 51 AS col0
----
-1173

skipif mysql # not compatible
query I rowsort label-4547
SELECT COUNT ( * ) * + 23 * - 51 AS col0
----
-1173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT 11 - + NULLIF ( + ( - 52 ), - 28 / - CAST( NULL AS SIGNED ) - + 59 ) + - COALESCE ( - 2, + - 1 - 76 ) + + 96
----
161

skipif mysql # not compatible
query I rowsort label-4548
SELECT 11 - + NULLIF ( + ( - 52 ), - 28 / - CAST ( NULL AS INTEGER ) - + 59 ) + - COALESCE ( - 2, + - 1 - 76 ) + + 96
----
161

query I rowsort
SELECT ALL + 35 * 13
----
455

query I rowsort
SELECT 17 * 74
----
1258

query I rowsort
SELECT DISTINCT + 36 + - 55 AS col0
----
-19

query I rowsort
SELECT ALL - 78 + + 90 AS col1
----
12

query I rowsort
SELECT + + 98 - + 54 col0
----
44

query I rowsort
SELECT ALL 0 * + 80
----
0

query II rowsort
SELECT - 48 AS col1, 53 + - 39 AS col1
----
-48
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT COALESCE ( - 78, 15 * 79 * + 75 * + - 4, + SUM( ALL 69 ) ) + - 13 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT COALESCE ( - 78, 15 * 79 * + 75 * + - 4, + SUM ( ALL 69 ) ) + - 13 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT - 27 + 87 * + 24 + + COUNT( * ) AS col1
----
2062

skipif mysql # not compatible
query I rowsort label-4557
SELECT - 27 + 87 * + 24 + + COUNT ( * ) AS col1
----
2062

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL 66 * + 89 * 55 * COUNT( * )
----
323070

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL 66 * + 89 * 55 * COUNT ( * )
----
323070

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + 10 - ( + MIN( + - 2 ) ) * COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4559
SELECT + 10 - ( + MIN ( + - 2 ) ) * COUNT ( * ) AS col2
----
12

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

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

query I rowsort
SELECT + - 22 + + 77
----
55

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4563
SELECT DISTINCT + 35 col1, + SUM( - 92 )
----
35
-92

skipif mysql # not compatible
query II rowsort label-4563
SELECT DISTINCT + 35 col1, + SUM ( - 92 )
----
35
-92

query II rowsort
SELECT DISTINCT + 38 AS col1, ( + 28 )
----
38
28

query I rowsort
SELECT COALESCE ( - - 1, + 33 )
----
1

query I rowsort
SELECT + 70 * + 4 AS col0
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT - 76 * + ( - - 63 ) * + 80 + - NULLIF ( + 14, + MIN( + 21 ) ) * + 13 + + 55
----
-383167

skipif mysql # not compatible
query I rowsort label-4567
SELECT - 76 * + ( - - 63 ) * + 80 + - NULLIF ( + 14, + MIN ( + 21 ) ) * + 13 + + 55
----
-383167

onlyif mysql # aggregate syntax: 
query II rowsort label-4568
SELECT + ( - 10 ) AS col1, COUNT( * ) * 87 AS col1
----
-10
87

skipif mysql # not compatible
query II rowsort label-4568
SELECT + ( - 10 ) AS col1, COUNT ( * ) * 87 AS col1
----
-10
87

query I rowsort
SELECT - 0 * + - 35 - 62 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL - 2 * - ( MIN( 5 ) ) + - 13 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL - 2 * - ( MIN ( 5 ) ) + - 13 AS col0
----
-3

query I rowsort
SELECT - 40 + 23 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL + MIN( DISTINCT + - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + MIN ( DISTINCT + - 6 )
----
-6

query I rowsort
SELECT - 10 - 84 AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4574
SELECT + CAST( NULL AS SIGNED ) col1, - 88 AS col2
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-4574
SELECT + CAST ( NULL AS INTEGER ) col1, - 88 AS col2
----
NULL
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4575
SELECT + ( 91 ) * 19 - COUNT( * ) DIV + - COUNT( ALL 11 ) + - - 47 AS col2
----
1777

skipif mysql # not compatible
query I rowsort label-4575
SELECT + ( 91 ) * 19 - COUNT ( * ) / + - COUNT ( ALL 11 ) + - - 47 AS col2
----
1777

onlyif mysql # aggregate syntax: 
query II rowsort label-4576
SELECT - 57 + + 75, MAX( - 35 ) * - + 99 AS col0
----
18
3465

skipif mysql # not compatible
query II rowsort label-4576
SELECT - 57 + + 75, MAX ( - 35 ) * - + 99 AS col0
----
18
3465

query I rowsort
SELECT - 74 * 42 AS col0
----
-3108

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT - - 27 + ( - CASE - 93 WHEN - SUM( + 97 ) THEN + 70 / - 60 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT - - 27 + ( - CASE - 93 WHEN - SUM ( + 97 ) THEN + 70 / - 60 END )
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 69, 30 ) * 2
----
138

query I rowsort
SELECT - 45 + - 66 + + 36
----
-75

query I rowsort
SELECT ALL + + 19 + + 74 AS col2
----
93

query I rowsort
SELECT DISTINCT - 83 * 39 AS col1
----
-3237

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL 97 - - + ( CASE - + COUNT( * ) WHEN - + 58 THEN + - 17 - - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL 97 - - + ( CASE - + COUNT ( * ) WHEN - + 58 THEN + - 17 - - COUNT ( * ) END )
----
NULL

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

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

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

skipif mysql # not compatible
query II rowsort label-4585
SELECT - - COUNT ( * ), + COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT + - 36 + - 23 + + 58 * + + 15 AS col1
----
811

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT ALL 0 DIV + 27 * + 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL 0 / + 27 * + 35 AS col1
----
0

query I rowsort
SELECT + 70 + + - 82 AS col0
----
-12

query II rowsort
SELECT - 28, + 29 + + 8 AS col2
----
-28
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT ALL + MIN( + 88 ) - 11 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + MIN ( + 88 ) - 11 AS col1
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4591
SELECT - 61 col1, + NULLIF ( 8, - + 28 * - ( 55 ) - + - NULLIF ( - 96, + COUNT( * ) ) )
----
-61
8

skipif mysql # not compatible
query II rowsort label-4591
SELECT - 61 col1, + NULLIF ( 8, - + 28 * - ( 55 ) - + - NULLIF ( - 96, + COUNT ( * ) ) )
----
-61
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4592
SELECT + 97 / - CAST( NULL AS DECIMAL ) * + COUNT( * ) + + 9 * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT + 97 / - CAST ( NULL AS REAL ) * + COUNT ( * ) + + 9 * - 95
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4593
SELECT ALL - 79 DIV - 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - 79 / - 68 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4594
SELECT MAX( ALL - 60 ) * + 37 + + COALESCE ( - + 92, 84, + 43 + - - 99 + - 69 DIV 91 * + + 60 * + + 30, + + 34 * - + ( + 61 ) ) + - 78 AS col0, 3 * + - SUM( DISTINCT - 10 ) AS col1
----
-2390
30

skipif mysql # not compatible
query II rowsort label-4594
SELECT MAX ( ALL - 60 ) * + 37 + + COALESCE ( - + 92, 84, + 43 + - - 99 + - 69 / 91 * + + 60 * + + 30, + + 34 * - + ( + 61 ) ) + - 78 AS col0, 3 * + - SUM ( DISTINCT - 10 ) AS col1
----
-2390
30

query I rowsort
SELECT + - 68 - + 66 AS col0
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT + COUNT( ALL 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4596
SELECT + COUNT ( ALL 17 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4597
SELECT - 90 * + NULLIF ( - + 17, 44 ) + 85 * ( 31 ) * + 18 + CAST( NULL AS SIGNED ) * - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT - 90 * + NULLIF ( - + 17, 44 ) + 85 * ( 31 ) * + 18 + CAST ( NULL AS INTEGER ) * - 67 AS col1
----
NULL

query I rowsort
SELECT + CASE WHEN NOT NULL IS NULL THEN 20 END / - - 82 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT - ( - 45 ) / + 11 + + + 73 + - CAST( NULL AS SIGNED ) + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT - ( - 45 ) / + 11 + + + 73 + - CAST ( NULL AS INTEGER ) + 36
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4600
SELECT ALL - 57 DIV - NULLIF ( + 85, CAST( + - 89 AS DECIMAL ) ) + 15 + - - 77, + 84 AS col2
----
92
84

skipif mysql # not compatible
query II rowsort label-4600
SELECT ALL - 57 / - NULLIF ( + 85, CAST ( + - 89 AS REAL ) ) + 15 + - - 77, + 84 AS col2
----
92
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT - 33 * - CASE - - 1 WHEN MAX( + 71 ) THEN NULL WHEN + MIN( - 87 ) THEN - 71 ELSE - 63 END * + - 74 * - - COUNT( * ) + - 48 * + 78 AS col1
----
150102

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 33 * - CASE - - 1 WHEN MAX ( + 71 ) THEN NULL WHEN + MIN ( - 87 ) THEN - 71 ELSE - 63 END * + - 74 * - - COUNT ( * ) + - 48 * + 78 AS col1
----
150102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4602
SELECT ALL - 80 DIV 67 + + SUM( DISTINCT - - 82 )
----
81

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL - 80 / 67 + + SUM ( DISTINCT - - 82 )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT DISTINCT 5 * - 18 DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT 5 * - 18 / - 97 AS col0
----
0

query I rowsort
SELECT + 17 * - + 99
----
-1683

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4605
SELECT ALL 64 DIV 70 * - 94 + - - 87 * - 25 AS col1, COUNT( 54 ) AS col2
----
-2175
1

skipif mysql # not compatible
query II rowsort label-4605
SELECT ALL 64 / 70 * - 94 + - - 87 * - 25 AS col1, COUNT ( 54 ) AS col2
----
-2175
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4606
SELECT ( + 84 ) AS col2, COUNT( * ) AS col0
----
84
1

skipif mysql # not compatible
query II rowsort label-4606
SELECT ( + 84 ) AS col2, COUNT ( * ) AS col0
----
84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT + 81 * + - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-4607
SELECT + 81 * + - COUNT ( * )
----
-81

query I rowsort
SELECT 56 + - 80 * + 1 * + 20
----
-1544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4609
SELECT ALL 93 + - + 41, CAST( + 90 AS SIGNED ) col1
----
52
90

skipif mysql # not compatible
query II rowsort label-4609
SELECT ALL 93 + - + 41, CAST ( + 90 AS INTEGER ) col1
----
52
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4610
SELECT DISTINCT - 90 * - - NULLIF ( - + 3, - COALESCE ( - CASE COUNT( * ) WHEN - + 34 / + + COALESCE ( 73, - 1 + 15 + + + 59, + 86 ) * - + SUM( ALL + + 30 ) + - - 37 THEN COUNT( * ) END, - 20 * - + CAST( + - NULLIF ( + + COUNT( * ), CAST( NULL AS SIGNED ) / + + 30 + + 73 ) AS SIGNED ) + + 80 - + 1 * + + NULLIF ( - 91, AVG ( + - 72 ) ) * + + 10 * + + 92 * + CAST( NULL AS SIGNED ) + MIN( DISTINCT + 30 ) * - - CAST( 1 AS SIGNED ) * + ( + + MAX( + - 91 ) ) * - NULLIF ( NULLIF ( 47, 51 * + + 64 ), + - 56 ) + + 19 ) * - 36 + + ( 56 ) / - 17 )
----
270

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT - 90 * - - NULLIF ( - + 3, - COALESCE ( - CASE COUNT ( * ) WHEN - + 34 / + + COALESCE ( 73, - 1 + 15 + + + 59, + 86 ) * - + SUM ( ALL + + 30 ) + - - 37 THEN COUNT ( * ) END, - 20 * - + CAST ( + - NULLIF ( + + COUNT ( * ), CAST ( NULL AS INTEGER ) / + + 30 + + 73 ) AS INTEGER ) + + 80 - + 1 * + + NULLIF ( - 91, AVG ( + - 72 ) ) * + + 10 * + + 92 * + CAST ( NULL AS INTEGER ) + MIN ( DISTINCT + 30 ) * - - CAST ( 1 AS INTEGER ) * + ( + + MAX ( + - 91 ) ) * - NULLIF ( NULLIF ( 47, 51 * + + 64 ), + - 56 ) + + 19 ) * - 36 + + ( 56 ) / - 17 )
----
270

query I rowsort
SELECT DISTINCT ( - 20 ) + 48
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL - 72 * + MAX( ALL + 93 ) col2
----
-6696

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL - 72 * + MAX ( ALL + 93 ) col2
----
-6696

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT - COUNT( * ) - + 28 + - 59 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT - COUNT ( * ) - + 28 + - 59 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT DISTINCT COUNT( * ) * 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT COUNT ( * ) * 53 AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT ALL + - CAST( CAST( - 98 AS SIGNED ) AS SIGNED ) - - 49
----
147

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL + - CAST ( CAST ( - 98 AS INTEGER ) AS INTEGER ) - - 49
----
147

query I rowsort
SELECT 71 * + + 92 + + 43 AS col1
----
6575

query II rowsort
SELECT ALL ( 31 ) AS col1, - 82 AS col1
----
31
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT + MAX( ALL - 14 ) - - - MAX( - 72 ) * - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-4618
SELECT + MAX ( ALL - 14 ) - - - MAX ( - 72 ) * - COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT 51 * MIN( - 31 ) AS col0
----
-1581

skipif mysql # not compatible
query I rowsort label-4619
SELECT 51 * MIN ( - 31 ) AS col0
----
-1581

query I rowsort
SELECT 97 * - 2 + - 93 + - 61 AS col1
----
-348

query I rowsort
SELECT - 45 - 83 AS col0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT ALL + - ( - + NULLIF ( + COUNT( * ), + CASE WHEN NOT NULL IS NOT NULL THEN + 44 END * + COUNT( * ) ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL + - ( - + NULLIF ( + COUNT ( * ), + CASE WHEN NOT NULL IS NOT NULL THEN + 44 END * + COUNT ( * ) ) ) * - COUNT ( * )
----
-1

query II rowsort
SELECT 89 - 91 AS col1, ( - 97 ) * + 42 * + + 70 + - NULLIF ( + - ( - 76 ), - 87 / - - 62 ) * ( - + 0 ) + 4 AS col2
----
-2
-285176

query I rowsort
SELECT 20 * + + 30 + 85
----
685

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT - SUM( ALL - 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4625
SELECT - SUM ( ALL - 82 ) AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT - CAST( + + COUNT( + 22 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4626
SELECT - CAST ( + + COUNT ( + 22 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4627
SELECT 97 + - - 92 DIV - + COUNT( DISTINCT 94 )
----
5

skipif mysql # not compatible
query I rowsort label-4627
SELECT 97 + - - 92 / - + COUNT ( DISTINCT 94 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - 4 + + ( - + COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 4 + + ( - + COUNT ( * ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL - + 86 + COALESCE ( + + MAX( ALL 38 ), - ( + + 89 ) * 28 ) * - 5
----
-276

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL - + 86 + COALESCE ( + + MAX ( ALL 38 ), - ( + + 89 ) * 28 ) * - 5
----
-276

onlyif mysql # aggregate syntax: 
query II rowsort label-4630
SELECT - 93 AS col0, 50 * - MAX( DISTINCT NULLIF ( - 32, 99 * 76 * 84 / + NULLIF ( 17, - + 81 ) ) ) col0
----
-93
1600

skipif mysql # not compatible
query II rowsort label-4630
SELECT - 93 AS col0, 50 * - MAX ( DISTINCT NULLIF ( - 32, 99 * 76 * 84 / + NULLIF ( 17, - + 81 ) ) ) col0
----
-93
1600

onlyif mysql # aggregate syntax: 
query II rowsort label-4631
SELECT + 48, ( + 6 ) * - CASE - - 82 WHEN - + 98 * 44 * - 16 + - + ( + 12 ) * - 14 + + + 83 + + 0 THEN + + 47 * - 88 + - + 92 END + - COUNT( * ) + - COUNT( * ) AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-4631
SELECT + 48, ( + 6 ) * - CASE - - 82 WHEN - + 98 * 44 * - 16 + - + ( + 12 ) * - 14 + + + 83 + + 0 THEN + + 47 * - 88 + - + 92 END + - COUNT ( * ) + - COUNT ( * ) AS col0
----
48
NULL

query I rowsort
SELECT 12 * + - 67
----
-804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4633
SELECT ALL + COUNT( * ) + + 86 * - 81 + + 62 AS col0, - CAST( + 34 AS SIGNED ) AS col2
----
-6903
-34

skipif mysql # not compatible
query II rowsort label-4633
SELECT ALL + COUNT ( * ) + + 86 * - 81 + + 62 AS col0, - CAST ( + 34 AS INTEGER ) AS col2
----
-6903
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4634
SELECT ALL 53 + + ( - - ( - 62 ) ) - 23 + - 93 + + 89 + 70 * - 66 - + 68 + - 64 * - - 19 * ( + + NULLIF ( 15, + + 53 + + ( + 49 ) ) ) - - - COUNT( ALL - 84 ) DIV - 21 - - 99 AS col0
----
-22865

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL 53 + + ( - - ( - 62 ) ) - 23 + - 93 + + 89 + 70 * - 66 - + 68 + - 64 * - - 19 * ( + + NULLIF ( 15, + + 53 + + ( + 49 ) ) ) - - - COUNT ( ALL - 84 ) / - 21 - - 99 AS col0
----
-22865

query II rowsort
SELECT 51 AS col1, + 78
----
51
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT ALL 29 + 34 DIV + 35 col2
----
29

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL 29 + 34 / + 35 col2
----
29

query I rowsort
SELECT 11 + - - 76
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT CASE + + COUNT( * ) WHEN ( MAX( ALL + ( 76 ) ) ) THEN NULL ELSE 92 + + COUNT( * ) END * + 1
----
93

skipif mysql # not compatible
query I rowsort label-4638
SELECT CASE + + COUNT ( * ) WHEN ( MAX ( ALL + ( 76 ) ) ) THEN NULL ELSE 92 + + COUNT ( * ) END * + 1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4639
SELECT 21 + + 83 * + ( 48 ) + - + ( - 55 ), + MIN( ALL + - 17 ) AS col1
----
4060
-17

skipif mysql # not compatible
query II rowsort label-4639
SELECT 21 + + 83 * + ( 48 ) + - + ( - 55 ), + MIN ( ALL + - 17 ) AS col1
----
4060
-17

query I rowsort
SELECT 56 + + + 88 AS col0
----
144

query II rowsort
SELECT DISTINCT - 97 AS col0, - 42
----
-97
-42

query I rowsort
SELECT + 80 + + 9 - + - 16 - + 53 AS col0
----
52

query I rowsort
SELECT 73 * - + 93
----
-6789

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL ( + 13 ) - - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL ( + 13 ) - - COUNT ( * )
----
14

query I rowsort
SELECT 35 * + 88
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT 65 + + + COUNT( * ) + - 36 * + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4646
SELECT 65 + + + COUNT ( * ) + - 36 * + COUNT ( * ) AS col0
----
30

query I rowsort
SELECT + 43 + - - 86 AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT + ( - COUNT( * ) ) * - 75
----
75

skipif mysql # not compatible
query I rowsort label-4648
SELECT + ( - COUNT ( * ) ) * - 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL COALESCE ( ( 4 ), - + COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL COALESCE ( ( 4 ), - + COUNT ( * ) )
----
4

query I rowsort
SELECT 22 + + ( - 13 ) AS col0
----
9

query I rowsort
SELECT + 9 * + 24 AS col2
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT DISTINCT + + 21 DIV - 38 - 50 - NULLIF ( 92, - 18 * + 55 )
----
-142

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT + + 21 / - 38 - 50 - NULLIF ( 92, - 18 * + 55 )
----
-142

query I rowsort
SELECT 12 + - 26 + ( + 2 ) AS col2
----
-12

query I rowsort
SELECT DISTINCT + NULLIF ( 47, + 73 - + - 28 ) + - 70 AS col2
----
-23

query I rowsort
SELECT ALL - 53 * - + 12 * 93
----
59148

query I rowsort
SELECT ALL - 80 + - 36 col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - CASE - + 21 WHEN + ( - - 52 ) * - + 43 + 40 - + + 59 THEN NULL WHEN + - 0 + - 99 - - 15 THEN - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT - CASE - + 21 WHEN + ( - - 52 ) * - + 43 + 40 - + + 59 THEN NULL WHEN + - 0 + - 99 - - 15 THEN - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4658
SELECT - 25 * - ( + - COUNT( * ) ) * + 67 + 6 + - COALESCE ( + 3, + 36, COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) AS col2
----
-1672

skipif mysql # not compatible
query I rowsort label-4658
SELECT - 25 * - ( + - COUNT ( * ) ) * + 67 + 6 + - COALESCE ( + 3, + 36, COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) AS col2
----
-1672

query I rowsort
SELECT 47 + + 55 AS col0
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4660
SELECT DISTINCT - 26 * 80 + + COUNT( * ) DIV - 58 * - 69 * + 55 AS col0
----
-2080

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT - 26 * 80 + + COUNT ( * ) / - 58 * - 69 * + 55 AS col0
----
-2080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4661
SELECT CASE 6 WHEN - 84 THEN 26 + - 33 + - - 10 * 60 + 12 * + 70 END * + 82 + + SUM( DISTINCT - - 0 ) + - 7 - + CAST( NULL AS SIGNED ) * + - 75 * 93 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT CASE 6 WHEN - 84 THEN 26 + - 33 + - - 10 * 60 + 12 * + 70 END * + 82 + + SUM ( DISTINCT - - 0 ) + - 7 - + CAST ( NULL AS INTEGER ) * + - 75 * 93 / COUNT ( * )
----
NULL

query I rowsort
SELECT COALESCE ( 84, 72 ) AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4663
SELECT + 50 DIV - 84 + + 48 + - 77 DIV + - 6 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4663
SELECT + 50 / - 84 + + 48 + - 77 / + - 6 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4664
SELECT - 51 + - + COUNT( * ) + + 91 + - 87 / + + 2 - 37 + + 52 + - 49 + + COALESCE ( + 91, + SUM( ALL + 11 ), 83 ) * - + 17 / COUNT( * ) * + CAST( NULL AS SIGNED ) * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4664
SELECT - 51 + - + COUNT ( * ) + + 91 + - 87 / + + 2 - 37 + + 52 + - 49 + + COALESCE ( + 91, + SUM ( ALL + 11 ), 83 ) * - + 17 / COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL + CASE - 59 WHEN + + 43 THEN + 12 + + 4 * - 77 - - 6 * COUNT( DISTINCT 88 ) * + 38 + - - 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL + CASE - 59 WHEN + + 43 THEN + 12 + + 4 * - 77 - - 6 * COUNT ( DISTINCT 88 ) * + 38 + - - 24 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 12 * - - 75 - + 56 AS col1
----
844

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT + ( 2 ) * - - 22 - + COUNT( * ) + - 93 + - 40 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4667
SELECT + ( 2 ) * - - 22 - + COUNT ( * ) + - 93 + - 40 AS col1
----
-90

query I rowsort
SELECT DISTINCT + CASE 11 WHEN 42 * 7 * 43 THEN + 79 END AS col1
----
NULL

query I rowsort
SELECT ALL + + 99 * + - 99 + - 81 AS col2
----
-9882

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT - + COUNT( - - 64 ) * - - 16 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4670
SELECT - + COUNT ( - - 64 ) * - - 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - 91 * - COUNT( * ) + + 19
----
110

skipif mysql # not compatible
query I rowsort label-4671
SELECT - 91 * - COUNT ( * ) + + 19
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT - 32 * COUNT( * ) + + 79
----
47

skipif mysql # not compatible
query I rowsort label-4672
SELECT - 32 * COUNT ( * ) + + 79
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT + ( - CAST( 17 AS SIGNED ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4673
SELECT + ( - CAST ( 17 AS INTEGER ) ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL + - 20 * + COUNT( * ) * - COUNT( - 64 )
----
20

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL + - 20 * + COUNT ( * ) * - COUNT ( - 64 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT - - ( - ( - - COUNT( * ) ) ) * 89 * - 57
----
5073

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT - - ( - ( - - COUNT ( * ) ) ) * 89 * - 57
----
5073

query I rowsort
SELECT + + 63 * 45 + COALESCE ( + 82, - - ( + + 93 ) ) col2
----
2917

onlyif mysql # DIV for integer division: 
query I rowsort label-4677
SELECT ALL 66 DIV - + 35 + + + 13 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL 66 / - + 35 + + + 13 AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT + 36 DIV 12
----
3

skipif mysql # not compatible
query I rowsort label-4678
SELECT + 36 / 12
----
3

query I rowsort
SELECT ALL 6 + - 85
----
-79

query I rowsort
SELECT ALL 10 + + 3 * + 32
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4681
SELECT - SUM( 41 ) - + 95 * 86 * 38 DIV COUNT( * ) AS col1
----
-310501

skipif mysql # not compatible
query I rowsort label-4681
SELECT - SUM ( 41 ) - + 95 * 86 * 38 / COUNT ( * ) AS col1
----
-310501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4682
SELECT - - CAST( + 79 AS SIGNED ) * + COUNT( * ) * + COUNT( DISTINCT - NULLIF ( - 95, + - 47 ) ) * - COALESCE ( - COUNT( * ), 26 + + 61 + - COUNT( * ) - - 9 * + - 62 - 89 + + - 4 * - 86 * + 55 * - 3 * 69 + 78 * + 9 * + - 80 ) * + 97 AS col0
----
7663

skipif mysql # not compatible
query I rowsort label-4682
SELECT - - CAST ( + 79 AS INTEGER ) * + COUNT ( * ) * + COUNT ( DISTINCT - NULLIF ( - 95, + - 47 ) ) * - COALESCE ( - COUNT ( * ), 26 + + 61 + - COUNT ( * ) - - 9 * + - 62 - 89 + + - 4 * - 86 * + 55 * - 3 * 69 + 78 * + 9 * + - 80 ) * + 97 AS col0
----
7663

query I rowsort
SELECT + + ( - 24 ) + - COALESCE ( - 5, - 12 + 1 )
----
-19

query I rowsort
SELECT + - 6 + - 88 + - 82 AS col2
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT DISTINCT 95 + + COUNT( * ) + - + 27 - + - COUNT( * ) + - ( + CASE + + 17 WHEN 26 * 54 THEN NULL WHEN - COUNT( * ) + - 10 * - 44 THEN NULL ELSE 2 END )
----
68

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT 95 + + COUNT ( * ) + - + 27 - + - COUNT ( * ) + - ( + CASE + + 17 WHEN 26 * 54 THEN NULL WHEN - COUNT ( * ) + - 10 * - 44 THEN NULL ELSE 2 END )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT ALL + 67 + + ( - + AVG ( DISTINCT - 42 ) ) + - - 85 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + 67 + + ( - + AVG ( DISTINCT - 42 ) ) + - - 85 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4687
SELECT + - SUM( ALL + 71 ) - - + 30 + + - 38 + - - 48 AS col1, 1 * + + 49 * + - 69
----
-31
-3381

skipif mysql # not compatible
query II rowsort label-4687
SELECT + - SUM ( ALL + 71 ) - - + 30 + + - 38 + - - 48 AS col1, 1 * + + 49 * + - 69
----
-31
-3381

query I rowsort
SELECT - ( + - 39 ) col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4689
SELECT ALL 48 AS col1, 90 DIV COUNT( * )
----
48
90

skipif mysql # not compatible
query II rowsort label-4689
SELECT ALL 48 AS col1, 90 / COUNT ( * )
----
48
90

query II rowsort
SELECT + 88 + ( 77 ), + 79 * + 24 AS col2
----
165
1896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4691
SELECT - 11 + - CAST( NULL AS SIGNED ) - + - COUNT( - 54 ) - - + COUNT( * ) + - 26 * - 18 / + COALESCE ( - 26, + 98, - + 15 + - + 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT - 11 + - CAST ( NULL AS INTEGER ) - + - COUNT ( - 54 ) - - + COUNT ( * ) + - 26 * - 18 / + COALESCE ( - 26, + 98, - + 15 + - + 78 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT DISTINCT 17 - + + MIN( + 54 ) * - 43
----
2339

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT 17 - + + MIN ( + 54 ) * - 43
----
2339

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT - 46 - + COUNT( * ) + + - COUNT( * ) + 10 + + 78 * + 73
----
5656

skipif mysql # not compatible
query I rowsort label-4693
SELECT - 46 - + COUNT ( * ) + + - COUNT ( * ) + 10 + + 78 * + 73
----
5656

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT + 58 * + ( COUNT( * ) ) * + ( + NULLIF ( - 47, 72 + COUNT( * ) + + 76 ) )
----
-2726

skipif mysql # not compatible
query I rowsort label-4694
SELECT + 58 * + ( COUNT ( * ) ) * + ( + NULLIF ( - 47, 72 + COUNT ( * ) + + 76 ) )
----
-2726

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT ALL - 49 DIV + 46 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - 49 / + 46 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4696
SELECT + 75 DIV COUNT( * ) col2
----
75

skipif mysql # not compatible
query I rowsort label-4696
SELECT + 75 / COUNT ( * ) col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT + CAST( + + 55 AS SIGNED ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4697
SELECT + CAST ( + + 55 AS INTEGER ) AS col2
----
55

query I rowsort
SELECT DISTINCT + COALESCE ( 4, + 50, - ( 73 ) )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4699
SELECT + 33 AS col0, - NULLIF ( - COUNT( * ), + 96 * + COUNT( * ) ) + - 90
----
33
-89

skipif mysql # not compatible
query II rowsort label-4699
SELECT + 33 AS col0, - NULLIF ( - COUNT ( * ), + 96 * + COUNT ( * ) ) + - 90
----
33
-89

query I rowsort
SELECT DISTINCT 9 * - 49 AS col1
----
-441

query I rowsort
SELECT DISTINCT 56 * 45 + 61
----
2581

query I rowsort
SELECT COALESCE ( 76, 57 * + 10, 47 ) AS col2
----
76

query I rowsort
SELECT - 90 + 18
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT ALL 31 * CAST( NULL AS SIGNED ) + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL 31 * CAST ( NULL AS INTEGER ) + 81 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4705
SELECT 88 * 64 + ( - 48 + - NULLIF ( 78, - 56 * - 47 + COALESCE ( - 99 + COALESCE ( 43, - 81, 14 * 90 ), - 14 * CAST( 26 AS SIGNED ), + COUNT( * ) * + 73 + 63 ) ) ) AS col2
----
5506

skipif mysql # not compatible
query I rowsort label-4705
SELECT 88 * 64 + ( - 48 + - NULLIF ( 78, - 56 * - 47 + COALESCE ( - 99 + COALESCE ( 43, - 81, 14 * 90 ), - 14 * CAST ( 26 AS INTEGER ), + COUNT ( * ) * + 73 + 63 ) ) ) AS col2
----
5506

query I rowsort
SELECT NULLIF ( - 65, 46 + 87 )
----
-65

query I rowsort
SELECT DISTINCT - 97 * 22 AS col2
----
-2134

query I rowsort
SELECT - 54 + + 69 * - 25 AS col2
----
-1779

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT NULLIF ( - COUNT( * ), COUNT( * ) / COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4709
SELECT NULLIF ( - COUNT ( * ), COUNT ( * ) / COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 81 * 79 + NULLIF ( 97, 42 )
----
6496

query I rowsort
SELECT ALL - 97 * - 86 + - 87 AS col0
----
8255

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT - 48 + 29 DIV 24 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4712
SELECT - 48 + 29 / 24 AS col0
----
-47

query I rowsort
SELECT 25 * 27 + 85 AS col2
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT DISTINCT + COALESCE ( NULLIF ( + 11, - 86 ), COUNT( 91 ) + 16 ) * + 0
----
0

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT + COALESCE ( NULLIF ( + 11, - 86 ), COUNT ( 91 ) + 16 ) * + 0
----
0

query I rowsort
SELECT DISTINCT - 80 * - 69 col2
----
5520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4716
SELECT DISTINCT MAX( + 81 ) DIV 17 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT MAX ( + 81 ) / 17 AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT ALL - ( 30 ) - + COALESCE ( 43, - AVG ( 67 ) ) DIV - 60 col2
----
-30

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL - ( 30 ) - + COALESCE ( 43, - AVG ( 67 ) ) / - 60 col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT MIN( - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-4718
SELECT MIN ( - 8 )
----
-8

query I rowsort
SELECT 11 + - 14
----
-3

query I rowsort
SELECT 50 + - 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT COUNT( * ) + - 35 * + ( 20 + - 73 )
----
1856

skipif mysql # not compatible
query I rowsort label-4721
SELECT COUNT ( * ) + - 35 * + ( 20 + - 73 )
----
1856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) - - 41 / 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) - - 41 / 65
----
NULL

query I rowsort
SELECT 46 + 52 AS col1
----
98

query I rowsort
SELECT DISTINCT 64 * 10 col0
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT DISTINCT 75 * + COALESCE ( 20, 47 * - COUNT( * ) + 64 )
----
1500

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT 75 * + COALESCE ( 20, 47 * - COUNT ( * ) + 64 )
----
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT 65 * NULLIF ( - 33, + 84 * + 76 + ( + 43 - COUNT( DISTINCT + 19 - ( 94 ) ) ) * + NULLIF ( 62 - 78 * + 55, + 20 ) )
----
-2145

skipif mysql # not compatible
query I rowsort label-4726
SELECT 65 * NULLIF ( - 33, + 84 * + 76 + ( + 43 - COUNT ( DISTINCT + 19 - ( 94 ) ) ) * + NULLIF ( 62 - 78 * + 55, + 20 ) )
----
-2145

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT 72 + - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4727
SELECT 72 + - COUNT ( * )
----
71

query I rowsort
SELECT DISTINCT 28 * CASE + 97 WHEN + 88 THEN NULL WHEN + 65 THEN + 82 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4729
SELECT CAST( 34 AS SIGNED ) + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-4729
SELECT CAST ( 34 AS INTEGER ) + COUNT ( * )
----
35

query I rowsort
SELECT 55 * + 94
----
5170

query I rowsort
SELECT ( - 80 ) * + 31 + + 2
----
-2478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4732
SELECT - COALESCE ( ( + 93 ), + 58 ) DIV - 9 + + COUNT( * ) * 79 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4732
SELECT - COALESCE ( ( + 93 ), + 58 ) / - 9 + + COUNT ( * ) * 79 AS col2
----
89

query I rowsort
SELECT ALL 99 + + 10 * 20 AS col1
----
299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4734
SELECT 71 + 9 * - SUM( DISTINCT - ( - 46 ) DIV - 31 )
----
80

skipif mysql # not compatible
query I rowsort label-4734
SELECT 71 + 9 * - SUM ( DISTINCT - ( - 46 ) / - 31 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT - CAST( NULL AS SIGNED ) * 57 + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT - CAST ( NULL AS INTEGER ) * 57 + 74 AS col1
----
NULL

query I rowsort
SELECT ALL + - 69 + + 30 AS col0
----
-39

query I rowsort
SELECT ALL - 16 + + 93 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT + CAST( NULL AS SIGNED ) * + MAX( ALL 4 * ( 38 * 24 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT + CAST ( NULL AS INTEGER ) * + MAX ( ALL 4 * ( 38 * 24 ) )
----
NULL

query I rowsort
SELECT CASE 81 WHEN 65 THEN NULL WHEN - 25 THEN NULL ELSE 5 END
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT + COUNT( * ) + 64 * 36 AS col2
----
2305

skipif mysql # not compatible
query I rowsort label-4740
SELECT + COUNT ( * ) + 64 * 36 AS col2
----
2305

query I rowsort
SELECT + - ( + 77 ) AS col1
----
-77

query I rowsort
SELECT ALL - - 77 + 74 AS col2
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4743
SELECT CAST( + 9 AS SIGNED ) * + 70
----
630

skipif mysql # not compatible
query I rowsort label-4743
SELECT CAST ( + 9 AS INTEGER ) * + 70
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT + MIN( ALL 89 ) - 42 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4744
SELECT + MIN ( ALL 89 ) - 42 AS col1
----
47

query I rowsort
SELECT 21 * - + 31 AS col2
----
-651

query I rowsort
SELECT ALL + 31 * 71
----
2201

onlyif mysql # DIV for integer division: 
query I rowsort label-4747
SELECT 40 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-4747
SELECT 40 / 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL + MAX( 77 ) * - 73
----
-5621

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + MAX ( 77 ) * - 73
----
-5621

query I rowsort
SELECT 46 * + + 47 * + 47 AS col1
----
101614

query I rowsort
SELECT 50 - 43
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT ALL - COUNT( - - 33 ) * 40 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - COUNT ( - - 33 ) * 40 AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4752
SELECT AVG ( DISTINCT + - 7 ) / CASE + 31 * + COALESCE ( ( 16 ) * AVG ( DISTINCT - 93 ), + 36 ) + - COUNT( * ) WHEN 89 + CAST( 43 + 91 AS SIGNED ) * ( + 92 ) THEN + 31 WHEN 17 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT AVG ( DISTINCT + - 7 ) / CASE + 31 * + COALESCE ( ( 16 ) * AVG ( DISTINCT - 93 ), + 36 ) + - COUNT ( * ) WHEN 89 + CAST ( 43 + 91 AS INTEGER ) * ( + 92 ) THEN + 31 WHEN 17 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT 39 + + CAST( NULLIF ( - 18, - 97 ) AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-4753
SELECT 39 + + CAST ( NULLIF ( - 18, - 97 ) AS INTEGER )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT 75 * + - CASE COUNT( * ) WHEN - 68 THEN NULL WHEN 22 THEN 6 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT 75 * + - CASE COUNT ( * ) WHEN - 68 THEN NULL WHEN 22 THEN 6 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 22 + - 8
----
14

query I rowsort
SELECT ALL 80 + 11 + 18 AS col0
----
109

query I rowsort
SELECT 0 * + 53 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT COUNT( * ) + - + CASE - 49 WHEN COUNT( * ) - + ( 4 ) * - COALESCE ( 87 + 72, + 83 ) THEN MIN( DISTINCT - 28 ) * 6 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT COUNT ( * ) + - + CASE - 49 WHEN COUNT ( * ) - + ( 4 ) * - COALESCE ( 87 + 72, + 83 ) THEN MIN ( DISTINCT - 28 ) * 6 END + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 74 * + 32 AS col1
----
2368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4760
SELECT DISTINCT COUNT( * ) * - 90 * + 46 + CAST( NULL AS SIGNED ) * + MIN( - CASE 0 WHEN 50 * 91 THEN NULL WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN - 91 THEN 85 END + - 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT COUNT ( * ) * - 90 * + 46 + CAST ( NULL AS INTEGER ) * + MIN ( - CASE 0 WHEN 50 * 91 THEN NULL WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN - 91 THEN 85 END + - 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT DISTINCT + ( 23 ) * 66 + + COUNT( * )
----
1519

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT + ( 23 ) * 66 + + COUNT ( * )
----
1519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT DISTINCT + COALESCE ( - CAST( NULL AS SIGNED ), AVG ( - 89 ) + NULLIF ( + CASE - ( COUNT( * ) ) WHEN + 22 / 94 + 57 THEN NULL WHEN - 35 * + 31 + + CAST( NULL AS SIGNED ) THEN + 31 ELSE NULL END - + 58, + 11 ) * - 37 ) * + 88 + - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT + COALESCE ( - CAST ( NULL AS INTEGER ), AVG ( - 89 ) + NULLIF ( + CASE - ( COUNT ( * ) ) WHEN + 22 / 94 + 57 THEN NULL WHEN - 35 * + 31 + + CAST ( NULL AS INTEGER ) THEN + 31 ELSE NULL END - + 58, + 11 ) * - 37 ) * + 88 + - 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4763
SELECT 65 DIV + 58 + - MAX( - ( 39 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4763
SELECT 65 / + 58 + - MAX ( - ( 39 ) ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT DISTINCT - - MIN( - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT - - MIN ( - 97 )
----
-97

query I rowsort
SELECT ALL + CASE - - 27 WHEN 83 THEN NULL ELSE + 5 + - 34 END * 91
----
-2639

query I rowsort
SELECT - 46 + + 86 col1
----
40

query I rowsort
SELECT 55 * 28
----
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT COUNT( * ) * - 19 + COUNT( * ) * - 89
----
-108

skipif mysql # not compatible
query I rowsort label-4768
SELECT COUNT ( * ) * - 19 + COUNT ( * ) * - 89
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT ALL + - 93 * + + 49 + 6 * + CAST( NULL AS SIGNED ) + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL + - 93 * + + 49 + 6 * + CAST ( NULL AS INTEGER ) + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + + NULLIF ( 97, - 49 )
----
97

query I rowsort
SELECT ALL NULLIF ( 84, 22 + + 30 ) * - 69
----
-5796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT - 29 * 68 / 43 + + CASE + CAST( - 54 AS SIGNED ) WHEN + 69 THEN COUNT( * ) / COUNT( * ) + - 99 ELSE NULL END * + COUNT( * ) + - 22 / ( - 80 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT - 29 * 68 / 43 + + CASE + CAST ( - 54 AS INTEGER ) WHEN + 69 THEN COUNT ( * ) / COUNT ( * ) + - 99 ELSE NULL END * + COUNT ( * ) + - 22 / ( - 80 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4773
SELECT + NULLIF ( - CASE 69 WHEN - 42 * - CASE + 47 WHEN NULLIF ( 54, - 36 * NULLIF ( 0 * - 74, 49 ) ) / CAST( - 66 * 14 AS SIGNED ) + 50 / + 15 THEN - COUNT( + 5 ) WHEN 70 THEN - COUNT( * ) WHEN 24 THEN NULL WHEN + 34 + CAST( - SUM( ALL NULLIF ( + 20, - 1 ) ) AS SIGNED ) THEN NULL ELSE 32 END THEN NULL WHEN + COUNT( * ) THEN - COUNT( * ) + - 32 ELSE NULL END, + ( - 86 ) + + 67 ) * - 76 + 77 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT + NULLIF ( - CASE 69 WHEN - 42 * - CASE + 47 WHEN NULLIF ( 54, - 36 * NULLIF ( 0 * - 74, 49 ) ) / CAST ( - 66 * 14 AS INTEGER ) + 50 / + 15 THEN - COUNT ( + 5 ) WHEN 70 THEN - COUNT ( * ) WHEN 24 THEN NULL WHEN + 34 + CAST ( - SUM ( ALL NULLIF ( + 20, - 1 ) ) AS INTEGER ) THEN NULL ELSE 32 END THEN NULL WHEN + COUNT ( * ) THEN - COUNT ( * ) + - 32 ELSE NULL END, + ( - 86 ) + + 67 ) * - 76 + 77 col1
----
NULL

query I rowsort
SELECT + NULLIF ( + - 7, + 43 ) AS col2
----
-7

query I rowsort
SELECT ALL - CASE + 29 WHEN 27 THEN 71 WHEN + 27 + + 46 THEN - 53 END - 97 AS col2
----
NULL

query I rowsort
SELECT + 66 * + - 53 + - 84 AS col0
----
-3582

query I rowsort
SELECT - 32 * - - 15
----
-480

query I rowsort
SELECT + 76 + + - 74
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT + - 20 * + - CASE - COUNT( * ) WHEN 30 THEN NULL WHEN COUNT( * ) THEN - 6 END / - 89 - 20 / + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT + - 20 * + - CASE - COUNT ( * ) WHEN 30 THEN NULL WHEN COUNT ( * ) THEN - 6 END / - 89 - 20 / + 86
----
NULL

query II rowsort
SELECT + 90 AS col1, 60
----
90
60

query I rowsort
SELECT DISTINCT + CASE 25 WHEN 28 + 13 * - ( 97 ) THEN + 5 * + 76 WHEN - 82 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT - COUNT( ALL ( - - 21 ) ) * + 70
----
-70

skipif mysql # not compatible
query I rowsort label-4782
SELECT - COUNT ( ALL ( - - 21 ) ) * + 70
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - COUNT( * ) + 50 * + 44
----
2199

skipif mysql # not compatible
query I rowsort label-4783
SELECT - COUNT ( * ) + 50 * + 44
----
2199

onlyif mysql # aggregate syntax: 
query II rowsort label-4784
SELECT ALL COUNT( * ), - 49 AS col2
----
1
-49

skipif mysql # not compatible
query II rowsort label-4784
SELECT ALL COUNT ( * ), - 49 AS col2
----
1
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4785
SELECT + 59 * 25 * CASE 79 WHEN + CAST( NULL AS SIGNED ) + 56 * 48 THEN + 17 * 98 END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT + 59 * 25 * CASE 79 WHEN + CAST ( NULL AS INTEGER ) + 56 * 48 THEN + 17 * 98 END + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - + 0, 53 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4787
SELECT ALL COUNT( * ) AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4787
SELECT ALL COUNT ( * ) AS col2, COUNT ( * )
----
1
1

query I rowsort
SELECT + 17 + + 97 + 19
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - COUNT( + + 62 ) + - 65 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4789
SELECT - COUNT ( + + 62 ) + - 65 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT - 57 + COALESCE ( + 48, 50, + 86 ) + ( COUNT( * ) ) * 25 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4790
SELECT - 57 + COALESCE ( + 48, 50, + 86 ) + ( COUNT ( * ) ) * 25 AS col2
----
16

query II rowsort
SELECT - 21 col1, + 93
----
-21
93

query I rowsort
SELECT ALL + 1 * - 89
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4793
SELECT 16 AS col1, 57 + + 95 * - CAST( NULL AS SIGNED )
----
16
NULL

skipif mysql # not compatible
query II rowsort label-4793
SELECT 16 AS col1, 57 + + 95 * - CAST ( NULL AS INTEGER )
----
16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL + 28 + 1 * + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL + 28 + 1 * + + COUNT ( * )
----
29

query I rowsort
SELECT DISTINCT - 73 + 65 AS col2
----
-8

query I rowsort
SELECT ALL - 28 + + - ( + 59 ) * 41
----
-2447

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4797
SELECT - 39 + + - COUNT( * ) + 90 DIV + 27 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-4797
SELECT - 39 + + - COUNT ( * ) + 90 / + 27 AS col1
----
-37

query I rowsort
SELECT ALL - 56 + - 46
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4799
SELECT - CAST( NULL AS SIGNED ) + + + 86 - - 36 + 22 / + ( 50 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT - CAST ( NULL AS INTEGER ) + + + 86 - - 36 + 22 / + ( 50 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT SUM( 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT SUM ( 46 ) AS col1
----
46

query I rowsort
SELECT + 87 + + - 29 * - ( - 24 ) + - 78 col2
----
-687

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT - - MAX( ALL - 70 ) * - COUNT( * ) + 70 + 80 AS col2
----
220

skipif mysql # not compatible
query I rowsort label-4802
SELECT - - MAX ( ALL - 70 ) * - COUNT ( * ) + 70 + 80 AS col2
----
220

query I rowsort
SELECT ALL + - 16 * + 22 * NULLIF ( - 4, - 21 + 6 ) - - 32 AS col0
----
1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4804
SELECT - - COUNT( * ) * + ( - 38 ) DIV 35
----
-1

skipif mysql # not compatible
query I rowsort label-4804
SELECT - - COUNT ( * ) * + ( - 38 ) / 35
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT DISTINCT 44 * ( + 38 ) - CAST( COUNT( * ) AS SIGNED )
----
1671

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT 44 * ( + 38 ) - CAST ( COUNT ( * ) AS INTEGER )
----
1671

query I rowsort
SELECT + ( - + 81 ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4807
SELECT + NULLIF ( + + ( COUNT( * ) ), 38 * - 12 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT + NULLIF ( + + ( COUNT ( * ) ), 38 * - 12 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4808
SELECT + + 75 AS col0, - MIN( ALL - 43 ) * + 1 AS col2
----
75
43

skipif mysql # not compatible
query II rowsort label-4808
SELECT + + 75 AS col0, - MIN ( ALL - 43 ) * + 1 AS col2
----
75
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT + 30 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT + 30 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4810
SELECT + + 6 AS col1, - 57 DIV 40 * 26 + 98 AS col2
----
6
72

skipif mysql # not compatible
query II rowsort label-4810
SELECT + + 6 AS col1, - 57 / 40 * 26 + 98 AS col2
----
6
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT + 74 * - - 14 * - + COUNT( * )
----
-1036

skipif mysql # not compatible
query I rowsort label-4811
SELECT + 74 * - - 14 * - + COUNT ( * )
----
-1036

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT + - 58 * + + 3 * - 15 - COUNT( * ) + 94
----
2703

skipif mysql # not compatible
query I rowsort label-4812
SELECT + - 58 * + + 3 * - 15 - COUNT ( * ) + 94
----
2703

query I rowsort
SELECT ALL + NULLIF ( + 90, - 38 )
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4814
SELECT + + CASE - - ( - 1 ) WHEN - CASE 46 WHEN 52 * - 34 THEN - 56 * 76 WHEN CAST( NULL AS SIGNED ) THEN - 88 * + 55 - - 56 END THEN NULL ELSE + 72 END DIV - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4814
SELECT + + CASE - - ( - 1 ) WHEN - CASE 46 WHEN 52 * - 34 THEN - 56 * 76 WHEN CAST ( NULL AS INTEGER ) THEN - 88 * + 55 - - 56 END THEN NULL ELSE + 72 END / - 88 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4815
SELECT ALL 6 DIV MAX( ALL - 5 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL 6 / MAX ( ALL - 5 ) AS col2
----
-1

query I rowsort
SELECT CASE 88 WHEN - 82 + 24 THEN NULL WHEN 20 * - 33 THEN + 94 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4817
SELECT + COALESCE ( COUNT( * ), - + 59 + + 95 * + 84 ) DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-4817
SELECT + COALESCE ( COUNT ( * ), - + 59 + + 95 * + 84 ) / 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT - 86 * 6 * + COUNT( * ) * - ( + NULLIF ( 35, 70 * 69 + - 87 ) ) * 63 AS col1
----
1137780

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT - 86 * 6 * + COUNT ( * ) * - ( + NULLIF ( 35, 70 * 69 + - 87 ) ) * 63 AS col1
----
1137780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4819
SELECT - CAST( 57 AS SIGNED ), + ( - 31 ) col2
----
-57
-31

skipif mysql # not compatible
query II rowsort label-4819
SELECT - CAST ( 57 AS INTEGER ), + ( - 31 ) col2
----
-57
-31

query I rowsort
SELECT + 76 + 49
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-4821
SELECT + 93 DIV + 44
----
2

skipif mysql # not compatible
query I rowsort label-4821
SELECT + 93 / + 44
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4822
SELECT - ( - + CAST( NULL AS SIGNED ) ) + + COUNT( * ) * + + 18 + 31 * + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT - ( - + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * + + 18 + 31 * + 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL - 69 + - 70 + - + COUNT( * )
----
-140

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - 69 + - 70 + - + COUNT ( * )
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT + COUNT( * ) * - CASE - - 22 WHEN - 91 THEN NULL ELSE 5 END AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT + COUNT ( * ) * - CASE - - 22 WHEN - 91 THEN NULL ELSE 5 END AS col1
----
-5

query I rowsort
SELECT DISTINCT 10 + - 67
----
-57

query I rowsort
SELECT DISTINCT 69 + - 32 + + - 24 * - 24
----
613

query II rowsort
SELECT DISTINCT 63 * + 28, 75 AS col2
----
1764
75

query I rowsort
SELECT DISTINCT NULLIF ( 67, + - 5 ) AS col0
----
67

query I rowsort
SELECT ALL CASE + 8 WHEN 24 THEN 96 + - 27 WHEN - 51 + + 91 * + 57 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4830
SELECT + ( 20 ) * COALESCE ( - - COUNT( * ), + ( 24 ) * - CASE NULLIF ( 93, + 35 + + 99 ) * 88 WHEN - 33 THEN ( CAST( COUNT( * ) AS SIGNED ) ) END )
----
20

skipif mysql # not compatible
query I rowsort label-4830
SELECT + ( 20 ) * COALESCE ( - - COUNT ( * ), + ( 24 ) * - CASE NULLIF ( 93, + 35 + + 99 ) * 88 WHEN - 33 THEN ( CAST ( COUNT ( * ) AS INTEGER ) ) END )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4831
SELECT - + COUNT( * ) * + 70 AS col1, 12 AS col1
----
-70
12

skipif mysql # not compatible
query II rowsort label-4831
SELECT - + COUNT ( * ) * + 70 AS col1, 12 AS col1
----
-70
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT ALL - 37 - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL - 37 - COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT - - MAX( DISTINCT + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-4833
SELECT - - MAX ( DISTINCT + 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT - 37 - - COUNT( 54 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4834
SELECT - 37 - - COUNT ( 54 ) AS col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT DISTINCT - 35 DIV 75 DIV + 33 - + 15
----
-15

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT - 35 / 75 / + 33 - + 15
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4836
SELECT ALL + 77 - + 32 - - + 84 * + + CAST( COUNT( * ) AS SIGNED ) * - 71 - 63
----
-5982

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL + 77 - + 32 - - + 84 * + + CAST ( COUNT ( * ) AS INTEGER ) * - 71 - 63
----
-5982

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL - + 70 * - COUNT( * ) * + 93 AS col1
----
6510

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - + 70 * - COUNT ( * ) * + 93 AS col1
----
6510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4838
SELECT DISTINCT + + CAST( 70 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT + + CAST ( 70 AS INTEGER )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT COUNT( + 27 ) * + + 84
----
84

skipif mysql # not compatible
query I rowsort label-4839
SELECT COUNT ( + 27 ) * + + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT + - 41 * + COUNT( * ) + + MIN( DISTINCT - - 80 )
----
39

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT + - 41 * + COUNT ( * ) + + MIN ( DISTINCT - - 80 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT 56 * 59 - COUNT( * ) - + 43 + + COUNT( * ) * 19
----
3279

skipif mysql # not compatible
query I rowsort label-4841
SELECT 56 * 59 - COUNT ( * ) - + 43 + + COUNT ( * ) * 19
----
3279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4842
SELECT COUNT( * ) + + CAST( + + ( 71 ) AS SIGNED ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4842
SELECT COUNT ( * ) + + CAST ( + + ( 71 ) AS INTEGER ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4843
SELECT COUNT( * ) * - CASE + 56 WHEN + - COUNT( * ) * CAST( NULL AS SIGNED ) THEN + CASE - 10 WHEN COUNT( * ) THEN - ( 89 ) * 49 WHEN MAX( ALL - 41 ) THEN - 3 + - 52 END WHEN + 98 THEN - ( + 36 ) / + 57 WHEN + 69 + - 46 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT COUNT ( * ) * - CASE + 56 WHEN + - COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN + CASE - 10 WHEN COUNT ( * ) THEN - ( 89 ) * 49 WHEN MAX ( ALL - 41 ) THEN - 3 + - 52 END WHEN + 98 THEN - ( + 36 ) / + 57 WHEN + 69 + - 46 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT DISTINCT - CASE - MAX( 56 ) WHEN - + NULLIF ( - 34, - COUNT( * ) + 10 ) THEN 76 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT - CASE - MAX ( 56 ) WHEN - + NULLIF ( - 34, - COUNT ( * ) + 10 ) THEN 76 END AS col1
----
NULL

query I rowsort
SELECT ALL 6 + 79
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT 50 + + ( + COUNT( * ) ) AS col2, 58 * + - 98
----
51
-5684

skipif mysql # not compatible
query II rowsort label-4846
SELECT 50 + + ( + COUNT ( * ) ) AS col2, 58 * + - 98
----
51
-5684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT DISTINCT - CAST( + 42 AS SIGNED ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT - CAST ( + 42 AS INTEGER ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT - SUM( DISTINCT + 12 ) + + + 65 - - - 31 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT - SUM ( DISTINCT + 12 ) + + + 65 - - - 31 AS col1
----
22

query I rowsort
SELECT ALL + 27 * - 14 col1
----
-378

query I rowsort
SELECT 49 * + - 24
----
-1176

query I rowsort
SELECT ALL 64 * + 59 AS col0
----
3776

onlyif mysql # DIV for integer division: 
query I rowsort label-4852
SELECT 91 DIV - + 94
----
0

skipif mysql # not compatible
query I rowsort label-4852
SELECT 91 / - + 94
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT DISTINCT 13, + COUNT( ALL 91 ) AS col2
----
13
1

skipif mysql # not compatible
query II rowsort label-4853
SELECT DISTINCT 13, + COUNT ( ALL 91 ) AS col2
----
13
1

query I rowsort
SELECT DISTINCT - 10 + + - 4 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL 4 + 65 + ( + - SUM( ALL + - 99 ) )
----
168

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL 4 + 65 + ( + - SUM ( ALL + - 99 ) )
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4856
SELECT DISTINCT 24, CAST( - MIN( 63 ) AS SIGNED ) + 72 - 97 * + CASE + 4 WHEN + 17 + 25 THEN NULL WHEN + 40 + + 87 * 9 THEN NULL ELSE - 42 END AS col1
----
24
4083

skipif mysql # not compatible
query II rowsort label-4856
SELECT DISTINCT 24, CAST ( - MIN ( 63 ) AS INTEGER ) + 72 - 97 * + CASE + 4 WHEN + 17 + 25 THEN NULL WHEN + 40 + + 87 * 9 THEN NULL ELSE - 42 END AS col1
----
24
4083

query I rowsort
SELECT 0 * - - 78 * - - 56
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4858
SELECT ALL 98 DIV + 12 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL 98 / + 12 AS col2
----
8

query II rowsort
SELECT 98 AS col0, 58 * + 1 * + 26 col2
----
98
1508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4860
SELECT NULLIF ( - + 25, + 25 - + + CAST( 26 AS SIGNED ) ) * COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4860
SELECT NULLIF ( - + 25, + 25 - + + CAST ( 26 AS INTEGER ) ) * COUNT ( * ) AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL CAST( 47 AS SIGNED ) * - 21 * - COUNT( * )
----
987

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL CAST ( 47 AS INTEGER ) * - 21 * - COUNT ( * )
----
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT DISTINCT CAST( NULL AS SIGNED ) - + + ( 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + + ( 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT - COUNT( * ) + + COUNT( * ) + + + 59
----
59

skipif mysql # not compatible
query I rowsort label-4863
SELECT - COUNT ( * ) + + COUNT ( * ) + + + 59
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT COALESCE ( COUNT( * ), - - NULLIF ( + + COUNT( * ), 16 + ( 43 ) * CASE 84 * 2 WHEN - COUNT( * ) THEN 19 * 72 END ) ) + NULLIF ( + 48, 56 + 77 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4864
SELECT COALESCE ( COUNT ( * ), - - NULLIF ( + + COUNT ( * ), 16 + ( 43 ) * CASE 84 * 2 WHEN - COUNT ( * ) THEN 19 * 72 END ) ) + NULLIF ( + 48, 56 + 77 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ( - MAX( ALL 3 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4865
SELECT ( - MAX ( ALL 3 ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ( NULLIF ( - 29, + MIN( DISTINCT + 30 ) ) ) + + ( - 20 )
----
-49

skipif mysql # not compatible
query I rowsort label-4866
SELECT ( NULLIF ( - 29, + MIN ( DISTINCT + 30 ) ) ) + + ( - 20 )
----
-49

query I rowsort
SELECT + 47 * - 80 + + ( 0 ) AS col0
----
-3760

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT + 56 DIV + + COALESCE ( + - 6, + 17, - 27 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4868
SELECT + 56 / + + COALESCE ( + - 6, + 17, - 27 ) AS col2
----
-9

query I rowsort
SELECT ALL - - ( - 89 ) col1
----
-89

query I rowsort
SELECT DISTINCT - 7 + 59 + - 89
----
-37

query I rowsort
SELECT DISTINCT - 96 * - - ( 35 )
----
-3360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4872
SELECT + 40 AS col2, - 53 * CAST( NULL AS SIGNED )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-4872
SELECT + 40 AS col2, - 53 * CAST ( NULL AS INTEGER )
----
40
NULL

query I rowsort
SELECT ALL + 41 + - 26
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4874
SELECT 49 DIV - ( + 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-4874
SELECT 49 / - ( + 26 )
----
-1

query I rowsort
SELECT 85 * - 75 AS col0
----
-6375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT ALL + 68 + + CASE - 77 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 11 * 37 + - 28 / COUNT( - 97 ) THEN 79 + COUNT( * ) * - 30 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL + 68 + + CASE - 77 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 11 * 37 + - 28 / COUNT ( - 97 ) THEN 79 + COUNT ( * ) * - 30 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT 94 * COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4877
SELECT 94 * COUNT ( * ) AS col0
----
94

query I rowsort
SELECT ALL + 42 + - - 88 + + + 5
----
135

query II rowsort
SELECT DISTINCT - 13 AS col0, 78
----
-13
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL 10 * + 28 * - - COUNT( * )
----
280

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL 10 * + 28 * - - COUNT ( * )
----
280

query I rowsort
SELECT ALL + 42 - + + 54
----
-12

query I rowsort
SELECT 65 + - - 80 AS col1
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4883
SELECT - 72, COUNT( * ) DIV 50 * COUNT( * ) AS col1
----
-72
0

skipif mysql # not compatible
query II rowsort label-4883
SELECT - 72, COUNT ( * ) / 50 * COUNT ( * ) AS col1
----
-72
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4884
SELECT ALL - 79 * + CASE - CAST( NULL AS DECIMAL ) WHEN + 99 THEN - - NULLIF ( + + 62, + 64 ) + 44 WHEN 79 THEN 30 WHEN 48 + COALESCE ( + 97 + + COUNT( DISTINCT - 61 ) * 27, - COALESCE ( 25, 19 * ( COUNT( * ) ) ) * 51 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - 79 * + CASE - CAST ( NULL AS REAL ) WHEN + 99 THEN - - NULLIF ( + + 62, + 64 ) + 44 WHEN 79 THEN 30 WHEN 48 + COALESCE ( + 97 + + COUNT ( DISTINCT - 61 ) * 27, - COALESCE ( 25, 19 * ( COUNT ( * ) ) ) * 51 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 74 + + + 39 + - - 13 AS col1
----
126

query I rowsort
SELECT 9 * - 22 * + 72
----
-14256

query I rowsort
SELECT 97 * - 12 + - 6 AS col2
----
-1170

query II rowsort
SELECT 70 AS col1, 74
----
70
74

query II rowsort
SELECT ALL 82 AS col0, 55 + + + 51 AS col2
----
82
106

query I rowsort
SELECT 78 * 92 * 31 + - - 11 * + 77 + - + 65
----
223238

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4891
SELECT ALL 33 AS col2, 35 + - COUNT( * ) DIV - + 15 AS col1, + COUNT( DISTINCT + 72 ) * 89 AS col1
----
33
35
89

skipif mysql # not compatible
query III rowsort label-4891
SELECT ALL 33 AS col2, 35 + - COUNT ( * ) / - + 15 AS col1, + COUNT ( DISTINCT + 72 ) * 89 AS col1
----
33
35
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4892
SELECT DISTINCT - + MIN( ALL - - 45 ) * CAST( NULLIF ( + - 57, 0 ) AS SIGNED ) * - 66 + COUNT( * ) col1
----
-169289

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT - + MIN ( ALL - - 45 ) * CAST ( NULLIF ( + - 57, 0 ) AS INTEGER ) * - 66 + COUNT ( * ) col1
----
-169289

query II rowsort
SELECT 69 AS col1, - 69 AS col1
----
69
-69

query I rowsort
SELECT - 37 + - - 13
----
-24

query I rowsort
SELECT ALL - CASE 40 WHEN + - 9 THEN 3 END / 93 - + + 58 - - 20 AS col2
----
NULL

query I rowsort
SELECT + - 91 * + - 56 + + 7 + 33
----
5136

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL + MAX( + - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL + MAX ( + - 33 )
----
-33

query I rowsort
SELECT - + 21 * - 34 + 66
----
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-4899
SELECT - - CAST( NULL AS SIGNED ), 91 DIV - CASE COUNT( * ) WHEN 41 * + COUNT( * ) * 26 THEN 81 WHEN CAST( + 28 AS DECIMAL ) THEN NULL ELSE 65 END - + 56 DIV 34 AS col1
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-4899
SELECT - - CAST ( NULL AS INTEGER ), 91 / - CASE COUNT ( * ) WHEN 41 * + COUNT ( * ) * 26 THEN 81 WHEN CAST ( + 28 AS REAL ) THEN NULL ELSE 65 END - + 56 / 34 AS col1
----
NULL
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT DISTINCT - 52 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT - 52 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 82 * 61 * 33
----
165066

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL 57 * - 45 * - - COUNT( * )
----
-2565

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL 57 * - 45 * - - COUNT ( * )
----
-2565

query I rowsort
SELECT + 26 * - 39
----
-1014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4904
SELECT + 96 * - + 74 + - + SUM( ALL 43 ) AS col0, COUNT( * ) + - CAST( NULL AS SIGNED )
----
-7147
NULL

skipif mysql # not compatible
query II rowsort label-4904
SELECT + 96 * - + 74 + - + SUM ( ALL 43 ) AS col0, COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
-7147
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL CASE 37 WHEN + 79 + + 19 * + COUNT( * ) THEN NULL ELSE + - 12 END + 99 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL CASE 37 WHEN + 79 + + 19 * + COUNT ( * ) THEN NULL ELSE + - 12 END + 99 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT + - 64 - + CASE - 44 WHEN + + 59 * - NULLIF ( + COUNT( * ), - 45 * 88 - + COALESCE ( 6 + - COALESCE ( 15 + - 33, + ( 70 ) - + ( 56 ) / 86, + 49, - 74 / MIN( 17 ) ) * - 45, + 12 ) ) + + 72 * - ( + 11 + 20 ) THEN NULL WHEN 81 + 40 THEN NULL ELSE - 64 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4906
SELECT + - 64 - + CASE - 44 WHEN + + 59 * - NULLIF ( + COUNT ( * ), - 45 * 88 - + COALESCE ( 6 + - COALESCE ( 15 + - 33, + ( 70 ) - + ( 56 ) / 86, + 49, - 74 / MIN ( 17 ) ) * - 45, + 12 ) ) + + 72 * - ( +