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 * - ( + 11 + 20 ) THEN NULL WHEN 81 + 40 THEN NULL ELSE - 64 END AS col0
----
0

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

skipif mysql # not compatible
query II rowsort label-4907
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL 23 * 97
----
2231

query II rowsort
SELECT ALL + + 2 col0, 90 - 28 * 23 * 81
----
2
-52074

query I rowsort
SELECT - - 45 * - 65 * + ( + 97 ) + - + 68 + + 74 AS col0
----
-283719

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4911
SELECT DISTINCT + COALESCE ( - + 35, - 91 ) * - - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT + COALESCE ( - + 35, - 91 ) * - - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 48 * 96 * - 75 + + 34 col0
----
-345566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT 73 * + CAST( - 56 AS SIGNED ) + + 23
----
-4065

skipif mysql # not compatible
query I rowsort label-4913
SELECT 73 * + CAST ( - 56 AS INTEGER ) + + 23
----
-4065

onlyif mysql # DIV for integer division: 
query I rowsort label-4914
SELECT DISTINCT 87 DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT 87 / - + 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4915
SELECT ALL + CASE MIN( + CAST( NULL AS SIGNED ) ) WHEN - 8 / - 8 * + - 66 + 8 + 91 * MIN( ALL + 43 ) THEN - 77 * 54 + 57 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL + CASE MIN ( + CAST ( NULL AS INTEGER ) ) WHEN - 8 / - 8 * + - 66 + 8 + 91 * MIN ( ALL + 43 ) THEN - 77 * 54 + 57 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT DISTINCT + 65 * COALESCE ( + 24, + NULLIF ( + 25, + + SUM( - 31 ) ) ) * 51 AS col2
----
79560

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT + 65 * COALESCE ( + 24, + NULLIF ( + 25, + + SUM ( - 31 ) ) ) * 51 AS col2
----
79560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT DISTINCT 60 * 47 - + + 9 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT 60 * 47 - + + 9 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4918
SELECT 11 * - 97 + ( 26 ) * - COALESCE ( - 94, - 90 DIV 47 ) * - NULLIF ( - CAST( - 12 AS SIGNED ), - 83 * 74 ) + 65
----
-30330

skipif mysql # not compatible
query I rowsort label-4918
SELECT 11 * - 97 + ( 26 ) * - COALESCE ( - 94, - 90 / 47 ) * - NULLIF ( - CAST ( - 12 AS INTEGER ), - 83 * 74 ) + 65
----
-30330

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT - 21 + COUNT( * ) + + 86 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4919
SELECT - 21 + COUNT ( * ) + + 86 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT ALL MAX( - 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL MAX ( - 85 ) AS col2
----
-85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4922
SELECT DISTINCT - 67 * ( - MIN( ALL 98 ) ) * 60 + COALESCE ( CAST( 32 AS SIGNED ), - ( - 60 ) + + 60 ) + - ( 95 )
----
393897

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT - 67 * ( - MIN ( ALL 98 ) ) * 60 + COALESCE ( CAST ( 32 AS INTEGER ), - ( - 60 ) + + 60 ) + - ( 95 )
----
393897

query I rowsort
SELECT - 70 + 33 - + + 84 * + 54 * + - 13
----
58931

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

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

query I rowsort
SELECT DISTINCT + + 34 * + 70 AS col1
----
2380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4926
SELECT + 71 + + COUNT( * ) DIV - ( - 66 ) + - - 74 + - COUNT( * )
----
144

skipif mysql # not compatible
query I rowsort label-4926
SELECT + 71 + + COUNT ( * ) / - ( - 66 ) + - - 74 + - COUNT ( * )
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4927
SELECT - ( - MIN( 59 ) ) DIV + 46 col1
----
1

skipif mysql # not compatible
query I rowsort label-4927
SELECT - ( - MIN ( 59 ) ) / + 46 col1
----
1

query I rowsort
SELECT - - 68 + - 23 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4929
SELECT DISTINCT + ( 92 ) * CASE 13 WHEN 85 * 73 * - + COALESCE ( 15, + MAX( DISTINCT 29 ) + 0 * 4 ) * 59 THEN - NULLIF ( 19, 36 ) END + NULLIF ( CAST( 28 AS SIGNED ), - CAST( - 66 AS DECIMAL ) - - 32 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT + ( 92 ) * CASE 13 WHEN 85 * 73 * - + COALESCE ( 15, + MAX ( DISTINCT 29 ) + 0 * 4 ) * 59 THEN - NULLIF ( 19, 36 ) END + NULLIF ( CAST ( 28 AS INTEGER ), - CAST ( - 66 AS REAL ) - - 32 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4930
SELECT ALL - CAST( NULL AS SIGNED ) + 93 - + 40 + - COUNT( * ) * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL - CAST ( NULL AS INTEGER ) + 93 - + 40 + - COUNT ( * ) * + 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4931
SELECT - - CASE 78 WHEN 66 THEN COUNT( * ) - - 54 + + + COALESCE ( - + 41, + 33 ) - + 12 * + 85 DIV + 98 * + 45 ELSE - 17 - 14 END AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4931
SELECT - - CASE 78 WHEN 66 THEN COUNT ( * ) - - 54 + + + COALESCE ( - + 41, + 33 ) - + 12 * + 85 / + 98 * + 45 ELSE - 17 - 14 END AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4932
SELECT DISTINCT - 71 + CAST( NULL AS SIGNED ) col1, - 40 AS col0
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-4932
SELECT DISTINCT - 71 + CAST ( NULL AS INTEGER ) col1, - 40 AS col0
----
NULL
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL + 13 + + ( + + 80 ) * COUNT( * ) - + 88
----
5

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL + 13 + + ( + + 80 ) * COUNT ( * ) - + 88
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4934
SELECT - COUNT( * ) DIV + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4934
SELECT - COUNT ( * ) / + 92 AS col1
----
0

query I rowsort
SELECT + 83 + 19 * + 80 AS col2
----
1603

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT ALL + COALESCE ( + 97, - 76 * 44 * + ( - 71 ) ) DIV + 58 + 4
----
5

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + COALESCE ( + 97, - 76 * 44 * + ( - 71 ) ) / + 58 + 4
----
5

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

skipif mysql # not compatible
query I rowsort label-4937
SELECT CAST ( - COALESCE ( + 88, 11 ) AS INTEGER ) col1
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4938
SELECT + 57 DIV 11 + + 69 + - COUNT( * ) + - 36 * - 28 * 28
----
28297

skipif mysql # not compatible
query I rowsort label-4938
SELECT + 57 / 11 + + 69 + - COUNT ( * ) + - 36 * - 28 * 28
----
28297

onlyif mysql # DIV for integer division: 
query I rowsort label-4939
SELECT ALL 6 DIV + - 56 - ( - + 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL 6 / + - 56 - ( - + 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL + SUM( DISTINCT 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL + SUM ( DISTINCT 32 )
----
32

query I rowsort
SELECT ALL 81 * - - COALESCE ( + + 69, - 64 ) * + 46 AS col2
----
257094

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4942
SELECT + MIN( + + 79 ) - - 72, 26 DIV - 62 AS col0
----
151
0

skipif mysql # not compatible
query II rowsort label-4942
SELECT + MIN ( + + 79 ) - - 72, 26 / - 62 AS col0
----
151
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4943
SELECT + 93 * COALESCE ( + COALESCE ( - NULLIF ( + COUNT( ALL - 6 ), - - COUNT( * ) * 66 + + 52 ), NULLIF ( 45, ( - 6 ) DIV + NULLIF ( + 35, + 0 ) - MAX( + 40 + 12 ) ), 42 ), 43 * CAST( NULL AS SIGNED ) ) DIV - SUM( + 76 * + 29 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4943
SELECT + 93 * COALESCE ( + COALESCE ( - NULLIF ( + COUNT ( ALL - 6 ), - - COUNT ( * ) * 66 + + 52 ), NULLIF ( 45, ( - 6 ) / + NULLIF ( + 35, + 0 ) - MAX ( + 40 + 12 ) ), 42 ), 43 * CAST ( NULL AS INTEGER ) ) / - SUM ( + 76 * + 29 ) AS col2
----
0

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

query II rowsort
SELECT ALL + 45 AS col0, 14 AS col0
----
45
14

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

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

query I rowsort
SELECT + ( + 87 ) * ( + 62 ) + - NULLIF ( - - 39, - ( + + 99 ) / - 84 ) + - 67 * 56 col2
----
1603

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4949
SELECT DISTINCT CASE - 50 WHEN + 70 + 51 * + + NULLIF ( + + 89, + ( 39 ) - + ( 75 ) ) THEN - 72 * + CAST( - 63 * + 48 AS SIGNED ) ELSE NULL END / + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT CASE - 50 WHEN + 70 + 51 * + + NULLIF ( + + 89, + ( 39 ) - + ( 75 ) ) THEN - 72 * + CAST ( - 63 * + 48 AS INTEGER ) ELSE NULL END / + 98
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4951
SELECT DISTINCT + 38 AS col1, + CASE + 2 WHEN + - COUNT( * ) THEN COUNT( * ) ELSE 68 + + 55 END * - 66 + NULLIF ( COUNT( * ), 86 / - 11 ) AS col1
----
38
-8117

skipif mysql # not compatible
query II rowsort label-4951
SELECT DISTINCT + 38 AS col1, + CASE + 2 WHEN + - COUNT ( * ) THEN COUNT ( * ) ELSE 68 + + 55 END * - 66 + NULLIF ( COUNT ( * ), 86 / - 11 ) AS col1
----
38
-8117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT + 9 - - CAST( NULL AS SIGNED ) / + 89 - + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT + 9 - - CAST ( NULL AS INTEGER ) / + 89 - + 57 AS col1
----
NULL

query I rowsort
SELECT ALL + 7 * 65 col1
----
455

query I rowsort
SELECT - 27 * - 32
----
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4955
SELECT DISTINCT NULLIF ( - 44, + 15 * NULLIF ( + 83, + 67 DIV - - 58 + - 7 DIV - ( + ( ( + ( + CASE + 38 WHEN + 37 * 0 THEN 43 - - 16 WHEN + 55 THEN 1 WHEN 21 + 31 THEN NULL ELSE NULL END ) ) ) ) ) ) DIV - COUNT( 22 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT NULLIF ( - 44, + 15 * NULLIF ( + 83, + 67 / - - 58 + - 7 / - ( + ( ( + ( + CASE + 38 WHEN + 37 * 0 THEN 43 - - 16 WHEN + 55 THEN 1 WHEN 21 + 31 THEN NULL ELSE NULL END ) ) ) ) ) ) / - COUNT ( 22 ) AS col2
----
44

query II rowsort
SELECT ALL - 54 AS col1, + 39 + ( 34 ) + - + 22 col1
----
-54
51

query II rowsort
SELECT DISTINCT - + 50 AS col2, 39
----
-50
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4958
SELECT - COUNT( CAST( CAST( - 83 AS SIGNED ) AS SIGNED ) ) + + 60 + - 28 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4958
SELECT - COUNT ( CAST ( CAST ( - 83 AS INTEGER ) AS INTEGER ) ) + + 60 + - 28 AS col1
----
31

query I rowsort
SELECT ALL + 69 * 18
----
1242

query I rowsort
SELECT + 68 * - 36
----
-2448

query I rowsort
SELECT 87 + - 28 AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4962
SELECT + CASE - 8 WHEN + 24 * - + 25 THEN NULL WHEN + 21 THEN + - CAST( NULL AS SIGNED ) WHEN 76 THEN NULL ELSE - 48 DIV 79 + - 61 * 2 END + 49
----
-73

skipif mysql # not compatible
query I rowsort label-4962
SELECT + CASE - 8 WHEN + 24 * - + 25 THEN NULL WHEN + 21 THEN + - CAST ( NULL AS INTEGER ) WHEN 76 THEN NULL ELSE - 48 / 79 + - 61 * 2 END + 49
----
-73

query I rowsort
SELECT DISTINCT + 77 + - + 96 + + + 75 + - 81 AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4964
SELECT COUNT( * ) DIV - 24 * - - 99 * + MAX( 28 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4964
SELECT COUNT ( * ) / - 24 * - - 99 * + MAX ( 28 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL - + 19 + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL - + 19 + COUNT ( * )
----
-18

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

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

query II rowsort
SELECT - 64 AS col1, 84 AS col0
----
-64
84

query I rowsort
SELECT ALL - - 27 + - - 81 AS col1
----
108

query II rowsort
SELECT - - 33, 71 + - + 56 AS col2
----
33
15

query I rowsort
SELECT 25 * - 41 col2
----
-1025

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

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

query II rowsort
SELECT DISTINCT 43 AS col0, ( - - 90 ) AS col1
----
43
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL + - 39 - - SUM( - 34 ) + + 80 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + - 39 - - SUM ( - 34 ) + + 80 AS col2
----
7

query I rowsort
SELECT - ( NULLIF ( + + 50, + - 67 ) )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL + 82 * - CAST( + COUNT( ALL + 40 ) AS SIGNED ) * COUNT( * ) * + 55
----
-4510

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL + 82 * - CAST ( + COUNT ( ALL + 40 ) AS INTEGER ) * COUNT ( * ) * + 55
----
-4510

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT MAX( - + 59 ) - + 40 * + 78
----
-3179

skipif mysql # not compatible
query I rowsort label-4976
SELECT MAX ( - + 59 ) - + 40 * + 78
----
-3179

query I rowsort
SELECT 94 * + + 56
----
5264

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4978
SELECT ( + + 10 ) / - 72 + + - 13 / + - CASE + 91 WHEN - - CAST( NULL AS DECIMAL ) + 8 / + 12 * 44 THEN - COUNT( * ) * - COUNT( * ) + COUNT( * ) WHEN + SUM( - 42 ) THEN NULL ELSE NULL END + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT ( + + 10 ) / - 72 + + - 13 / + - CASE + 91 WHEN - - CAST ( NULL AS REAL ) + 8 / + 12 * 44 THEN - COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) WHEN + SUM ( - 42 ) THEN NULL ELSE NULL END + + 88
----
NULL

query I rowsort
SELECT 74 + - 63
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT - 71 * - + MAX( + 55 ) - - 1 AS col2
----
3906

skipif mysql # not compatible
query I rowsort label-4980
SELECT - 71 * - + MAX ( + 55 ) - - 1 AS col2
----
3906

onlyif mysql # DIV for integer division: 
query I rowsort label-4981
SELECT ALL 34 DIV - 94 * - 85
----
0

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL 34 / - 94 * - 85
----
0

query I rowsort
SELECT 47 / - ( + CASE - 72 WHEN - 2 * - 79 * + 48 THEN 63 + 6 ELSE NULL END ) - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4983
SELECT 26 DIV - SUM( DISTINCT + 37 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4983
SELECT 26 / - SUM ( DISTINCT + 37 ) AS col2
----
0

query I rowsort
SELECT - 8 * + - 62 + + 19
----
515

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT 48 * - 36 * - 79 + - - 69 DIV 16 + + - 31
----
136485

skipif mysql # not compatible
query I rowsort label-4985
SELECT 48 * - 36 * - 79 + - - 69 / 16 + + - 31
----
136485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4986
SELECT COALESCE ( - - 0, + - 32 + - - 55 DIV + 92 + - 25, 99 + - 31 + - + CASE SUM( 86 ) WHEN 30 THEN 41 + - 94 ELSE - ( CAST( NULL AS SIGNED ) ) + + COALESCE ( NULLIF ( + CAST( NULL AS SIGNED ), 12 ), MIN( + 16 ) + + 86 * - 26 ) END - 55 * NULLIF ( + 95 * + 30, + 67 ), 23 - - 56 ) + 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4986
SELECT COALESCE ( - - 0, + - 32 + - - 55 / + 92 + - 25, 99 + - 31 + - + CASE SUM ( 86 ) WHEN 30 THEN 41 + - 94 ELSE - ( CAST ( NULL AS INTEGER ) ) + + COALESCE ( NULLIF ( + CAST ( NULL AS INTEGER ), 12 ), MIN ( + 16 ) + + 86 * - 26 ) END - 55 * NULLIF ( + 95 * + 30, + 67 ), 23 - - 56 ) + 45 AS col0
----
45

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4989
SELECT + 57 * CASE - COUNT( ALL - - CAST( + 7 AS SIGNED ) ) WHEN CAST( NULL AS SIGNED ) + - + 57 - - 3 * + AVG ( 9 ) * 95 * - 60 THEN NULL WHEN COALESCE ( 13, 69 * - 20, 51 * - 95 + + COUNT( * ) * 51 ) + + COALESCE ( - 65, 14, 69 ) THEN NULL ELSE - 29 END
----
-1653

skipif mysql # not compatible
query I rowsort label-4989
SELECT + 57 * CASE - COUNT ( ALL - - CAST ( + 7 AS INTEGER ) ) WHEN CAST ( NULL AS INTEGER ) + - + 57 - - 3 * + AVG ( 9 ) * 95 * - 60 THEN NULL WHEN COALESCE ( 13, 69 * - 20, 51 * - 95 + + COUNT ( * ) * 51 ) + + COALESCE ( - 65, 14, 69 ) THEN NULL ELSE - 29 END
----
-1653

query I rowsort
SELECT - - 13 * 83 + - 6
----
1073

query I rowsort
SELECT 30 * 26 AS col1
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT DISTINCT NULLIF ( + 81, - 60 ) + 61 + - + CASE WHEN ( NOT - 66 IS NOT NULL ) THEN 28 END * COUNT( - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT NULLIF ( + 81, - 60 ) + 61 + - + CASE WHEN ( NOT - 66 IS NOT NULL ) THEN 28 END * COUNT ( - 18 )
----
NULL

query I rowsort
SELECT DISTINCT + 4 + - 66 * + 34
----
-2240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4994
SELECT DISTINCT 7 * + COUNT( * ) DIV + - 88 * + 25 + 16 + 28
----
44

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT 7 * + COUNT ( * ) / + - 88 * + 25 + 16 + 28
----
44

query I rowsort
SELECT + ( - - 17 ) * 86
----
1462

query I rowsort
SELECT ALL - 30 - + + 5 AS col1
----
-35

query I rowsort
SELECT - NULLIF ( 44, 45 ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4998
SELECT ALL 29 - COUNT( + + CAST( NULL AS SIGNED ) )
----
29

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL 29 - COUNT ( + + CAST ( NULL AS INTEGER ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT 84 + 38 + + COUNT( * ) + 43
----
166

skipif mysql # not compatible
query I rowsort label-4999
SELECT 84 + 38 + + COUNT ( * ) + 43
----
166

query I rowsort
SELECT ALL + 51 * + 23
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT DISTINCT MIN( + - 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT MIN ( + - 47 ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5002
SELECT ALL - CASE + COALESCE ( - 32, - + COUNT( * ) / - 36 / + 74 * - MAX( DISTINCT CAST( + 92 AS DECIMAL ) ) ) WHEN + 74 + - 92 THEN - CAST( COUNT( * ) AS SIGNED ) WHEN 38 THEN 41 WHEN 34 THEN 41 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL - CASE + COALESCE ( - 32, - + COUNT ( * ) / - 36 / + 74 * - MAX ( DISTINCT CAST ( + 92 AS REAL ) ) ) WHEN + 74 + - 92 THEN - CAST ( COUNT ( * ) AS INTEGER ) WHEN 38 THEN 41 WHEN 34 THEN 41 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5003
SELECT 93 * NULLIF ( 11, + 97 + CASE + - COALESCE ( 3, COUNT( * ) + - MAX( DISTINCT - 61 ) + - CAST( NULL AS SIGNED ) ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - 34 THEN + 96 END )
----
1023

skipif mysql # not compatible
query I rowsort label-5003
SELECT 93 * NULLIF ( 11, + 97 + CASE + - COALESCE ( 3, COUNT ( * ) + - MAX ( DISTINCT - 61 ) + - CAST ( NULL AS INTEGER ) ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 34 THEN + 96 END )
----
1023

query I rowsort
SELECT ALL - 52 * + 54 AS col0
----
-2808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5005
SELECT NULLIF ( - - 63, + + 4 ), CASE + + 60 WHEN - - CASE - 25 WHEN + 17 THEN + 60 / + 88 + - 7 WHEN 79 THEN NULL WHEN 62 * COUNT( * ) + 60 THEN NULL WHEN - ( + CASE - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 99 + + COUNT( * ) THEN NULL ELSE 89 * COUNT( * ) END ) * - 90 + 84 THEN - 59 * - 44 END THEN NULL ELSE 46 END AS col2
----
63
46

skipif mysql # not compatible
query II rowsort label-5005
SELECT NULLIF ( - - 63, + + 4 ), CASE + + 60 WHEN - - CASE - 25 WHEN + 17 THEN + 60 / + 88 + - 7 WHEN 79 THEN NULL WHEN 62 * COUNT ( * ) + 60 THEN NULL WHEN - ( + CASE - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 99 + + COUNT ( * ) THEN NULL ELSE 89 * COUNT ( * ) END ) * - 90 + 84 THEN - 59 * - 44 END THEN NULL ELSE 46 END AS col2
----
63
46

query I rowsort
SELECT DISTINCT 85 * - + 70 + 10 + ( - CASE - 14 WHEN + - ( + 50 ) + 20 THEN NULL ELSE - - 32 + + 66 END ) AS col0
----
-6038

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT ALL + NULLIF ( - MIN( ( + 7 ) ), + 2 * + 16 / - ( - MAX( + 9 ) ) + COUNT( * ) ) col2
----
-7

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL + NULLIF ( - MIN ( ( + 7 ) ), + 2 * + 16 / - ( - MAX ( + 9 ) ) + COUNT ( * ) ) col2
----
-7

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

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

query I rowsort
SELECT - 86 * - - 84 col0
----
-7224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5010
SELECT DISTINCT - 80 * + 19 + + COUNT( * ) DIV + + 72 AS col1
----
-1520

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT - 80 * + 19 + + COUNT ( * ) / + + 72 AS col1
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT + MAX( DISTINCT 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5011
SELECT + MAX ( DISTINCT 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5012
SELECT ALL - ( + 48 ) * COUNT( * ) DIV - 77 + + 82 col0, - 16 + + - 66 AS col2
----
82
-82

skipif mysql # not compatible
query II rowsort label-5012
SELECT ALL - ( + 48 ) * COUNT ( * ) / - 77 + + 82 col0, - 16 + + - 66 AS col2
----
82
-82

query I rowsort
SELECT 53 * + 45 * - 53 - + - 98 col2
----
-126307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5014
SELECT ALL - + ( - + AVG ( - - 68 ) ) * - CAST( NULL AS SIGNED ) + + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL - + ( - + AVG ( - - 68 ) ) * - CAST ( NULL AS INTEGER ) + + 48 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5015
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + AVG ( 12 ) + - - 58 - + CAST( 97 AS SIGNED ) + - 77 / - CASE + 2 WHEN 37 * 70 THEN CAST( NULL AS SIGNED ) + 12 WHEN + COUNT( * ) / + 83 THEN NULL WHEN MAX( ALL - 55 ) + + 36 THEN NULL ELSE 38 * 53 + COALESCE ( NULLIF ( 70, - COUNT( * ) ), - 51 * + 11 + - ( 22 ), ( - 92 ), 30 ) END * 45 + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + AVG ( 12 ) + - - 58 - + CAST ( 97 AS INTEGER ) + - 77 / - CASE + 2 WHEN 37 * 70 THEN CAST ( NULL AS INTEGER ) + 12 WHEN + COUNT ( * ) / + 83 THEN NULL WHEN MAX ( ALL - 55 ) + + 36 THEN NULL ELSE 38 * 53 + COALESCE ( NULLIF ( 70, - COUNT ( * ) ), - 51 * + 11 + - ( 22 ), ( - 92 ), 30 ) END * 45 + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT - MAX( ALL - 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5016
SELECT - MAX ( ALL - 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT + + NULLIF ( 0, - - COUNT( * ) * - - 96 / + 94 )
----
0

skipif mysql # not compatible
query I rowsort label-5017
SELECT + + NULLIF ( 0, - - COUNT ( * ) * - - 96 / + 94 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5018
SELECT ALL - ( + 42 ) + SUM( - - 51 ) DIV 90
----
-42

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL - ( + 42 ) + SUM ( - - 51 ) / 90
----
-42

query II rowsort
SELECT DISTINCT 78 * - ( 10 ) AS col1, 29
----
-780
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT + + 56 * - + MIN( - - 60 ) AS col1
----
-3360

skipif mysql # not compatible
query I rowsort label-5020
SELECT + + 56 * - + MIN ( - - 60 ) AS col1
----
-3360

query I rowsort
SELECT DISTINCT 5 - 3 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT NULLIF ( 9, + SUM( 50 ) * MAX( DISTINCT + - 96 ) * + 83 )
----
9

skipif mysql # not compatible
query I rowsort label-5022
SELECT NULLIF ( 9, + SUM ( 50 ) * MAX ( DISTINCT + - 96 ) * + 83 )
----
9

query I rowsort
SELECT + COALESCE ( - 56, 36 + + ( + - 53 ), - 10 + - + 11 ) + - + 37 * 64
----
-2424

query I rowsort
SELECT + 54 - 48
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT DISTINCT + 68 * COALESCE ( + MAX( + 12 ), - NULLIF ( + 93, + CASE 97 WHEN 31 THEN NULL WHEN + - CAST( - 83 AS SIGNED ) THEN NULL ELSE - ( - 29 ) + + 22 END ) )
----
816

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT + 68 * COALESCE ( + MAX ( + 12 ), - NULLIF ( + 93, + CASE 97 WHEN 31 THEN NULL WHEN + - CAST ( - 83 AS INTEGER ) THEN NULL ELSE - ( - 29 ) + + 22 END ) )
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT - SUM( - 39 ) col0
----
39

skipif mysql # not compatible
query I rowsort label-5026
SELECT - SUM ( - 39 ) col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5027
SELECT ALL 94, 12 + + COUNT( * ) + - NULLIF ( + COALESCE ( - - 5, - 63 * - - 89 ), NULLIF ( - - 29, COUNT( * ) ) + ( 49 ) ) * COUNT( * ) AS col0
----
94
8

skipif mysql # not compatible
query II rowsort label-5027
SELECT ALL 94, 12 + + COUNT ( * ) + - NULLIF ( + COALESCE ( - - 5, - 63 * - - 89 ), NULLIF ( - - 29, COUNT ( * ) ) + ( 49 ) ) * COUNT ( * ) AS col0
----
94
8

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

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

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

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

query I rowsort
SELECT ALL - 10 * - 73
----
730

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT 23 * COALESCE ( + - NULLIF ( 32, - NULLIF ( + COUNT( * ), + - 68 ) ), 10, + - 99 * + 86 + - + 8 + - MIN( ALL + NULLIF ( 1, + 62 ) ) ) AS col2
----
-736

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT 23 * COALESCE ( + - NULLIF ( 32, - NULLIF ( + COUNT ( * ), + - 68 ) ), 10, + - 99 * + 86 + - + 8 + - MIN ( ALL + NULLIF ( 1, + 62 ) ) ) AS col2
----
-736

query I rowsort
SELECT ALL 76 * + 86
----
6536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5033
SELECT DISTINCT 64 * + 2 * + CASE - 7 WHEN - 55 + - 81 THEN CAST( 13 AS SIGNED ) * 12 + - - SUM( + 71 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT 64 * + 2 * + CASE - 7 WHEN - 55 + - 81 THEN CAST ( 13 AS INTEGER ) * 12 + - - SUM ( + 71 ) ELSE NULL END col0
----
NULL

query I rowsort
SELECT DISTINCT 81 + + 58 + 70 * 90 + + 16 AS col1
----
6455

query I rowsort
SELECT ALL - 20 + ( - 25 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL MIN( DISTINCT - 25 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL MIN ( DISTINCT - 25 ) AS col1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-5037
SELECT ALL + 13 DIV 60 + 88 - - - 99 * - 39
----
3949

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL + 13 / 60 + 88 - - - 99 * - 39
----
3949

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5038
SELECT ALL + 52 DIV COUNT( * ) + + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL + 52 / COUNT ( * ) + + COUNT ( * ) AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5039
SELECT CAST( NULL AS SIGNED ) AS col2, + SUM( ALL - + 14 ) * + 7 * - 2
----
NULL
196

skipif mysql # not compatible
query II rowsort label-5039
SELECT CAST ( NULL AS INTEGER ) AS col2, + SUM ( ALL - + 14 ) * + 7 * - 2
----
NULL
196

query I rowsort
SELECT + 50 + - 65
----
-15

query I rowsort
SELECT 58 * 15 + + 23
----
893

query I rowsort
SELECT - 33 - + + 45 AS col1
----
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT DISTINCT - CASE - - 63 WHEN 35 THEN + 51 WHEN + + 5 + + 51 THEN CASE + - COUNT( * ) WHEN + + 35 * - + 9 * - 40 THEN 98 WHEN 76 + COUNT( * ) THEN 8 WHEN + NULLIF ( - 47, 59 ) * 86 THEN NULL ELSE + 64 END ELSE NULL END * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT - CASE - - 63 WHEN 35 THEN + 51 WHEN + + 5 + + 51 THEN CASE + - COUNT ( * ) WHEN + + 35 * - + 9 * - 40 THEN 98 WHEN 76 + COUNT ( * ) THEN 8 WHEN + NULLIF ( - 47, 59 ) * 86 THEN NULL ELSE + 64 END ELSE NULL END * 24
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5045
SELECT + COUNT ( * ) / + + 2 + - + 64
----
-64

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5047
SELECT ALL + 83 AS col0, - COUNT( * )
----
83
-1

skipif mysql # not compatible
query II rowsort label-5047
SELECT ALL + 83 AS col0, - COUNT ( * )
----
83
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5048
SELECT - 11 * - + CAST( 23 AS SIGNED ) + COUNT( * ) + - + 29 DIV 43 AS col0, - COUNT( + - 49 ) * 66 * - - 79 AS col2
----
254
-5214

skipif mysql # not compatible
query II rowsort label-5048
SELECT - 11 * - + CAST ( 23 AS INTEGER ) + COUNT ( * ) + - + 29 / 43 AS col0, - COUNT ( + - 49 ) * 66 * - - 79 AS col2
----
254
-5214

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT DISTINCT + 53 * + COUNT( * ) - + 52 * 58 AS col1
----
-2963

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT + 53 * + COUNT ( * ) - + 52 * 58 AS col1
----
-2963

query I rowsort
SELECT + 38 + - COALESCE ( 19, - ( + 94 ) ) + 81 + - - 81 AS col0
----
181

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT ALL + - 41 DIV - 12 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL + - 41 / - 12 AS col2
----
3

query II rowsort
SELECT DISTINCT + - 51 AS col1, 17 AS col1
----
-51
17

query I rowsort
SELECT DISTINCT 16 * - 61 + - 47 - 28 AS col1
----
-1051

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

skipif mysql # not compatible
query II rowsort label-5054
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col2, 23
----
1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - - 33 + + MIN( DISTINCT + 78 ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-5055
SELECT - - 33 + + MIN ( DISTINCT + 78 ) AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT ALL + - CASE + ( + 15 ) WHEN - MAX( ALL - - 57 ) THEN 86 WHEN + 10 THEN - ( - COUNT( * ) ) END * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL + - CASE + ( + 15 ) WHEN - MAX ( ALL - - 57 ) THEN 86 WHEN + 10 THEN - ( - COUNT ( * ) ) END * - 36
----
NULL

query I rowsort
SELECT DISTINCT - - 3 * + 72 * 78 AS col0
----
16848

query II rowsort
SELECT DISTINCT 11 AS col0, 43
----
11
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT + 27 * + + 2 + - COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5059
SELECT + 27 * + + 2 + - COUNT ( * ) AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5060
SELECT ALL SUM( ALL 7 ) * + - NULLIF ( - COUNT( * ), + - 42 + - CAST( NULL AS SIGNED ) * + 9 + + + COUNT( * ) / - 35 )
----
7

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL SUM ( ALL 7 ) * + - NULLIF ( - COUNT ( * ), + - 42 + - CAST ( NULL AS INTEGER ) * + 9 + + + COUNT ( * ) / - 35 )
----
7

query I rowsort
SELECT - 66 + 84
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT - ( + 85 ) + - MIN( ALL 7 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5062
SELECT - ( + 85 ) + - MIN ( ALL 7 ) AS col2
----
-92

query I rowsort
SELECT + 46 + + - 57 AS col1
----
-11

query II rowsort
SELECT ALL + 88 + - 31, - 68 - - ( + 57 ) + + 3 AS col1
----
57
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT 63 + + MIN( - 73 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT 63 + + MIN ( - 73 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT SUM( ALL - 21 ) * 32 AS col0
----
-672

skipif mysql # not compatible
query I rowsort label-5066
SELECT SUM ( ALL - 21 ) * 32 AS col0
----
-672

query I rowsort
SELECT ( + - 31 ) + 0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT + MAX( DISTINCT 75 ) * COUNT( * ) * - - 7 * 78 + + 16 + 23 + - 71 * + MIN( - 99 )
----
48018

skipif mysql # not compatible
query I rowsort label-5068
SELECT + MAX ( DISTINCT 75 ) * COUNT ( * ) * - - 7 * 78 + + 16 + 23 + - 71 * + MIN ( - 99 )
----
48018

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ( + 30 ) * - COALESCE ( + - ( + + COUNT( * ) ), - 75 + + CASE - NULLIF ( + COUNT( * ), - 7 ) WHEN - + NULLIF ( - 31, - 79 ) * 1 THEN NULL WHEN - NULLIF ( + 8, 25 - + 33 * COUNT( * ) ) THEN NULL ELSE 44 END + 0 )
----
30

skipif mysql # not compatible
query I rowsort label-5069
SELECT ( + 30 ) * - COALESCE ( + - ( + + COUNT ( * ) ), - 75 + + CASE - NULLIF ( + COUNT ( * ), - 7 ) WHEN - + NULLIF ( - 31, - 79 ) * 1 THEN NULL WHEN - NULLIF ( + 8, 25 - + 33 * COUNT ( * ) ) THEN NULL ELSE 44 END + 0 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT - MIN( - - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT - MIN ( - - 11 )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5071
SELECT ALL - 90 + + - COUNT( * ) DIV - 18 + - - NULLIF ( 2, - 32 * - + AVG ( ALL - - 61 ) ) + + 82
----
-6

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL - 90 + + - COUNT ( * ) / - 18 + - - NULLIF ( 2, - 32 * - + AVG ( ALL - - 61 ) ) + + 82
----
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5072
SELECT ALL + CAST( CASE + 34 WHEN - NULLIF ( 19, 26 ) + COALESCE ( + 77, - - 90 ) * + 82 THEN NULL ELSE + 9 * 89 + 2 * + 37 END AS SIGNED ) DIV - 37 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL + CAST ( CASE + 34 WHEN - NULLIF ( 19, 26 ) + COALESCE ( + 77, - - 90 ) * + 82 THEN NULL ELSE + 9 * 89 + 2 * + 37 END AS INTEGER ) / - 37 AS col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT + 59 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-5073
SELECT + 59 / - 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5074
SELECT ALL + - ( + COUNT( * ) ) DIV + + NULLIF ( - 99, + SUM( - 25 ) ) + - CAST( + NULLIF ( + - COUNT( * ), - - 79 ) AS SIGNED ) + - 7
----
-6

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL + - ( + COUNT ( * ) ) / + + NULLIF ( - 99, + SUM ( - 25 ) ) + - CAST ( + NULLIF ( + - COUNT ( * ), - - 79 ) AS INTEGER ) + - 7
----
-6

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

query I rowsort
SELECT - 25 - + 56 + + 51 AS col0
----
-30

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

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

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

skipif mysql # not compatible
query II rowsort label-5078
SELECT ( - COUNT ( * ) ) AS col1, 40
----
-1
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5079
SELECT - - 78 * + COUNT( * ) + ( - 22 ) - 23 + + MIN( DISTINCT - 49 ) + + + CASE - 87 WHEN + + 41 + + 20 THEN - 74 ELSE + ( 49 ) END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT - - 78 * + COUNT ( * ) + ( - 22 ) - 23 + + MIN ( DISTINCT - 49 ) + + + CASE - 87 WHEN + + 41 + + 20 THEN - 74 ELSE + ( 49 ) END * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 9 * + ( 90 ) AS col2
----
810

query I rowsort
SELECT ALL + - 6 * + + NULLIF ( + + 36, - + 76 ) * 3
----
-648

query I rowsort
SELECT + NULLIF ( - + 72, + - 44 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL - MAX( + - 60 ) * - ( + 54 ) AS col0
----
-3240

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL - MAX ( + - 60 ) * - ( + 54 ) AS col0
----
-3240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5084
SELECT ALL + - 30 * - ( 55 ) + + 64 DIV - COUNT( * )
----
1586

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL + - 30 * - ( 55 ) + + 64 / - COUNT ( * )
----
1586

query I rowsort
SELECT ALL 45 * - - 98
----
4410

query I rowsort
SELECT - 84 * + - 56
----
4704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5087
SELECT 25 - COUNT( * ) + + ( CAST( - + 12 AS SIGNED ) ) - - + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-5087
SELECT 25 - COUNT ( * ) + + ( CAST ( - + 12 AS INTEGER ) ) - - + COUNT ( * )
----
13

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT ALL + 92 DIV - 79
----
-1

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL + 92 / - 79
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5090
SELECT 84 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-5090
SELECT 84 / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT DISTINCT ( + 98 ) + + MAX( - ( + + 16 ) ) * ( + 4 ) + - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT ( + 98 ) + + MAX ( - ( + + 16 ) ) * ( + 4 ) + - COUNT ( * ) AS col2
----
33

query II rowsort
SELECT DISTINCT 99 AS col1, 45 AS col1
----
99
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT 19 * + MAX( DISTINCT - 26 )
----
-494

skipif mysql # not compatible
query I rowsort label-5093
SELECT 19 * + MAX ( DISTINCT - 26 )
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL + NULLIF ( COUNT( ( 82 ) ), + 82 ) + 30 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + NULLIF ( COUNT ( ( 82 ) ), + 82 ) + 30 AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5095
SELECT DISTINCT COUNT( * ) AS col2, - 73 AS col1
----
1
-73

skipif mysql # not compatible
query II rowsort label-5095
SELECT DISTINCT COUNT ( * ) AS col2, - 73 AS col1
----
1
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT 9 + - - ( COUNT( * ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5096
SELECT 9 + - - ( COUNT ( * ) ) AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5097
SELECT COALESCE ( ( ( - 92 ) ), CASE - + ( + + 44 ) WHEN + 88 THEN - 16 WHEN - 18 THEN 79 * - 51 END DIV + 15 DIV 44 - - 40 ) * COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-5097
SELECT COALESCE ( ( ( - 92 ) ), CASE - + ( + + 44 ) WHEN + 88 THEN - 16 WHEN - 18 THEN 79 * - 51 END / + 15 / 44 - - 40 ) * COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5098
SELECT DISTINCT 68 col0, COUNT( * )
----
68
1

skipif mysql # not compatible
query II rowsort label-5098
SELECT DISTINCT 68 col0, COUNT ( * )
----
68
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5099
SELECT DISTINCT + COALESCE ( + - SUM( ALL + + 34 ), - - 3 ) - - 75 + + 77 DIV - ( 99 ) col1
----
41

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT + COALESCE ( + - SUM ( ALL + + 34 ), - - 3 ) - - 75 + + 77 / - ( 99 ) col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5100
SELECT DISTINCT - COALESCE ( 68, + - 29 DIV + + COUNT( * ) * + 29 * + COUNT( * ) ) - - 84 * - - ( - + 26 ) AS col1
----
-2252

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT - COALESCE ( 68, + - 29 / + + COUNT ( * ) * + 29 * + COUNT ( * ) ) - - 84 * - - ( - + 26 ) AS col1
----
-2252

query I rowsort
SELECT DISTINCT 74 - - - 99 AS col0
----
-25

query I rowsort
SELECT 44 + - - 77 * 21 * - CASE - + AVG ( ALL - - ( - 79 ) ) WHEN 44 * + 79 + + 95 * - 66 * - 82 * - + 37 + 83 * + 71 THEN + 0 * - ( - NULLIF ( NULLIF ( - 91, - 95 ), 91 / 65 ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL 87 * + 85 AS col2
----
7395

query I rowsort
SELECT - 57 + - 24 AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT ALL ( - 87 ) / - CAST( NULL AS SIGNED ) + 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL ( - 87 ) / - CAST ( NULL AS INTEGER ) + 10 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5106
SELECT + CAST( + 34 AS SIGNED ) * + 96 + 76 + COUNT( * ) * ( - + 31 ) + - 77 DIV + + 88
----
3309

skipif mysql # not compatible
query I rowsort label-5106
SELECT + CAST ( + 34 AS INTEGER ) * + 96 + 76 + COUNT ( * ) * ( - + 31 ) + - 77 / + + 88
----
3309

onlyif mysql # aggregate syntax: 
query II rowsort label-5107
SELECT + - COUNT( * ) AS col2, 23 * - - 65 + - 89 + + + 27 AS col0
----
-1
1433

skipif mysql # not compatible
query II rowsort label-5107
SELECT + - COUNT ( * ) AS col2, 23 * - - 65 + - 89 + + + 27 AS col0
----
-1
1433

query I rowsort
SELECT - 32 * + 94 * - 74 * 54 * 68 + + ( - - 80 )
----
817357904

onlyif mysql # DIV for integer division: 
query I rowsort label-5109
SELECT + 6 + 67 DIV - 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5109
SELECT + 6 + 67 / - 11 AS col1
----
0

query I rowsort
SELECT DISTINCT + 36 * - 16 AS col0
----
-576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5111
SELECT ALL - - 90, - NULLIF ( 91, + 9 * - + CASE + + COALESCE ( + - COUNT( * ), - 48, COUNT( * ) + + - 15 ) WHEN 9 THEN NULL WHEN + COUNT( * ) / - + COUNT( * ) + 73 - COALESCE ( + 45 - 66, 17 ) * CAST( NULL AS SIGNED ) THEN 91 WHEN 53 * 47 THEN NULL WHEN COUNT( ALL - 74 ) THEN - 90 * + 9 + - 10 ELSE + 94 + + COUNT( * ) END ) - - CASE ( + 97 ) WHEN + 98 THEN 33 WHEN 11 * + CASE 99 * + 1 WHEN 73 * - 38 THEN + 12 + COUNT( * ) * ( 99 ) ELSE NULL END THEN 56 ELSE + COUNT( * ) + 66 END AS col0
----
90
-24

skipif mysql # not compatible
query II rowsort label-5111
SELECT ALL - - 90, - NULLIF ( 91, + 9 * - + CASE + + COALESCE ( + - COUNT ( * ), - 48, COUNT ( * ) + + - 15 ) WHEN 9 THEN NULL WHEN + COUNT ( * ) / - + COUNT ( * ) + 73 - COALESCE ( + 45 - 66, 17 ) * CAST ( NULL AS INTEGER ) THEN 91 WHEN 53 * 47 THEN NULL WHEN COUNT ( ALL - 74 ) THEN - 90 * + 9 + - 10 ELSE + 94 + + COUNT ( * ) END ) - - CASE ( + 97 ) WHEN + 98 THEN 33 WHEN 11 * + CASE 99 * + 1 WHEN 73 * - 38 THEN + 12 + COUNT ( * ) * ( 99 ) ELSE NULL END THEN 56 ELSE + COUNT ( * ) + 66 END AS col0
----
90
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5112
SELECT COUNT( * ) * - 61 + 28 DIV + COUNT( + 99 )
----
-33

skipif mysql # not compatible
query I rowsort label-5112
SELECT COUNT ( * ) * - 61 + 28 / + COUNT ( + 99 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5113
SELECT DISTINCT - 44 * + MIN( - - 70 ) * 71 + CAST( - 84 AS SIGNED ) - 40 - 96 + ( - + 6 ) * + SUM( - - 68 )
----
-219308

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT - 44 * + MIN ( - - 70 ) * 71 + CAST ( - 84 AS INTEGER ) - 40 - 96 + ( - + 6 ) * + SUM ( - - 68 )
----
-219308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5114
SELECT - ( 94 ) + + - 16 AS col1, CAST( NULL AS SIGNED ) AS col2, - - 85 DIV 80 * + - MAX( ALL + - 71 )
----
-110
NULL
71

skipif mysql # not compatible
query III rowsort label-5114
SELECT - ( 94 ) + + - 16 AS col1, CAST ( NULL AS INTEGER ) AS col2, - - 85 / 80 * + - MAX ( ALL + - 71 )
----
-110
NULL
71

query I rowsort
SELECT + 82 * - 79 * 74 + - - 82 - - - 84
----
-479374

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

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT - COUNT ( * ) + + 22 AS col0
----
21

query I rowsort
SELECT ALL - - 56 col1
----
56

query II rowsort
SELECT + + 27, - 14 AS col0
----
27
-14

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

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL 70 + + COUNT ( * ) AS col2
----
71

query I rowsort
SELECT + CASE + 47 WHEN - + 98 THEN ( - 77 ) WHEN 82 * + 0 / 6 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5121
SELECT + 78 * 47 + 56 * 85 DIV - - 35 + - SUM( + 13 )
----
3789

skipif mysql # not compatible
query I rowsort label-5121
SELECT + 78 * 47 + 56 * 85 / - - 35 + - SUM ( + 13 )
----
3789

query I rowsort
SELECT - 18 * + - 76
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT + 7 * 70 + + - COUNT( * ) * COUNT( * ) + COUNT( * ) * + + 18 AS col1
----
507

skipif mysql # not compatible
query I rowsort label-5123
SELECT + 7 * 70 + + - COUNT ( * ) * COUNT ( * ) + COUNT ( * ) * + + 18 AS col1
----
507

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT DISTINCT + - 36 + + 8 + + 30 * COUNT( * ) * + - 43
----
-1318

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT + - 36 + + 8 + + 30 * COUNT ( * ) * + - 43
----
-1318

query I rowsort
SELECT ALL - - 74 + + 73 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT COUNT( * ) + + 18 + - - 62 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT COUNT ( * ) + + 18 + - - 62 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT DISTINCT + SUM( ALL 89 ) * - ( - 4 )
----
356

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT + SUM ( ALL 89 ) * - ( - 4 )
----
356

onlyif mysql # aggregate syntax: 
query II rowsort label-5128
SELECT - 70 * - 2 AS col1, + COALESCE ( + - 20, + + 70 ) * 19 + COUNT( * ) AS col1
----
140
-379

skipif mysql # not compatible
query II rowsort label-5128
SELECT - 70 * - 2 AS col1, + COALESCE ( + - 20, + + 70 ) * 19 + COUNT ( * ) AS col1
----
140
-379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5129
SELECT - 57 * - - COUNT( * ) + - + 5 + + 71 - COUNT( * ) DIV - + 88 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5129
SELECT - 57 * - - COUNT ( * ) + - + 5 + + 71 - COUNT ( * ) / - + 88 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT ALL + CASE + + 50 WHEN - - 20 / + CASE 51 WHEN ( 95 ) THEN NULL WHEN - 0 THEN NULL ELSE + ( + COUNT( * ) ) - 82 + COALESCE ( - 38, ( + COUNT( * ) ) ) * + 16 END THEN 68 ELSE COUNT( * ) + + 55 END + 16 col2
----
72

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL + CASE + + 50 WHEN - - 20 / + CASE 51 WHEN ( 95 ) THEN NULL WHEN - 0 THEN NULL ELSE + ( + COUNT ( * ) ) - 82 + COALESCE ( - 38, ( + COUNT ( * ) ) ) * + 16 END THEN 68 ELSE COUNT ( * ) + + 55 END + 16 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT - 81 + 87 + + - MAX( DISTINCT + - 84 ) * 38 col0
----
3198

skipif mysql # not compatible
query I rowsort label-5131
SELECT - 81 + 87 + + - MAX ( DISTINCT + - 84 ) * 38 col0
----
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT DISTINCT SUM( ALL + 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT SUM ( ALL + 53 ) AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT - 57 + - COALESCE ( - 33, - 53 + 50 - + + 7 + 15 DIV - 40, - + ( 68 ) ) + - - 13 - - NULLIF ( 73, + 21 ) * 44 * - 95
----
-305151

skipif mysql # not compatible
query I rowsort label-5133
SELECT - 57 + - COALESCE ( - 33, - 53 + 50 - + + 7 + 15 / - 40, - + ( 68 ) ) + - - 13 - - NULLIF ( 73, + 21 ) * 44 * - 95
----
-305151

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL CASE 18 WHEN - COUNT( * ) THEN NULL WHEN + 27 THEN NULL ELSE - 45 END AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL CASE 18 WHEN - COUNT ( * ) THEN NULL WHEN + 27 THEN NULL ELSE - 45 END AS col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5135
SELECT DISTINCT - ( + - 21 ) DIV - - 16
----
1

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT - ( + - 21 ) / - - 16
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5136
SELECT ALL + MAX( ALL - 36 ) - + CAST( + COUNT( * ) AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL + MAX ( ALL - 36 ) - + CAST ( + COUNT ( * ) AS INTEGER )
----
-37

query I rowsort
SELECT - 45 + + 28 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT SUM( ALL + 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT SUM ( ALL + 72 ) AS col2
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-5139
SELECT ALL - 53 DIV - - 81 col1, - 71 * 55
----
0
-3905

skipif mysql # not compatible
query II rowsort label-5139
SELECT ALL - 53 / - - 81 col1, - 71 * 55
----
0
-3905

onlyif mysql # aggregate syntax: 
query II rowsort label-5140
SELECT ALL 9 * + 96 AS col2, COUNT( * ) * - 84 AS col2
----
864
-84

skipif mysql # not compatible
query II rowsort label-5140
SELECT ALL 9 * + 96 AS col2, COUNT ( * ) * - 84 AS col2
----
864
-84

query I rowsort
SELECT ALL - ( - - 14 ) * - 4
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT + - ( - + 5 ) + 33 + + 47 - - 76 * - + CASE + 64 WHEN - - 17 THEN - 97 WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT + - ( - + 5 ) + 33 + + 47 - - 76 * - + CASE + 64 WHEN - - 17 THEN - 97 WHEN + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 67 * 90 AS col0
----
6030

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

query I rowsort
SELECT - + 29 * + 84 AS col2
----
-2436

query I rowsort
SELECT ALL + 6 * 18 * - - 18 col0
----
1944

query I rowsort
SELECT ALL + - CASE + 11 WHEN - + 76 THEN + 48 * - 44 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL + + NULLIF ( - - 78, - - ( 58 ) + + - 25 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT - 54 * - MAX( ALL 32 ) + + 94
----
1822

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT - 54 * - MAX ( ALL 32 ) + + 94
----
1822

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT + + ( + + 93 ) * - 15 * - - 82 + - 18 * + - 29 + + + COUNT( * )
----
-113867

skipif mysql # not compatible
query I rowsort label-5150
SELECT + + ( + + 93 ) * - 15 * - - 82 + - 18 * + - 29 + + + COUNT ( * )
----
-113867

query I rowsort
SELECT - + 77 - + + 84
----
-161

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT + ( - 96 ) DIV - - 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5152
SELECT + ( - 96 ) / - - 57 AS col0
----
-1

query I rowsort
SELECT + - 39 * + 61 + + 12 col0
----
-2367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT DISTINCT - CAST( - 94 AS SIGNED ) * + - 6 AS col1
----
-564

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT - CAST ( - 94 AS INTEGER ) * + - 6 AS col1
----
-564

query II rowsort
SELECT ALL 29 * 3 AS col2, - ( - 96 ) AS col0
----
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT CASE - - 96 WHEN 51 THEN NULL WHEN - 94 * + 57 - + - 67 + + 95 THEN ( + COUNT( * ) ) / - - COUNT( * ) * + 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT CASE - - 96 WHEN 51 THEN NULL WHEN - 94 * + 57 - + - 67 + + 95 THEN ( + COUNT ( * ) ) / - - COUNT ( * ) * + 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT DISTINCT 90 * + COUNT( * ) + COUNT( * ) - + + 50 * - + COUNT( * ) AS col1
----
141

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT 90 * + COUNT ( * ) + COUNT ( * ) - + + 50 * - + COUNT ( * ) AS col1
----
141

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5158
SELECT CASE + ( + 84 ) WHEN 14 + - 26 + 41 + + COUNT( * ) * - 78 * CAST( + 99 AS DECIMAL ) + COUNT( * ) * 30 / - COUNT( * ) * - 75 * - - 26 THEN + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT CASE + ( + 84 ) WHEN 14 + - 26 + 41 + + COUNT ( * ) * - 78 * CAST ( + 99 AS REAL ) + COUNT ( * ) * 30 / - COUNT ( * ) * - 75 * - - 26 THEN + 67 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5159
SELECT ALL + 42 * - COUNT( * ) DIV + 91 + - 70 + - ( + - 42 ) + 3 + - + 25 * - 97 * + + 5 * + + COUNT( * ) + + 91 * + 63 col2, 24 * 11
----
17833
264

skipif mysql # not compatible
query II rowsort label-5159
SELECT ALL + 42 * - COUNT ( * ) / + 91 + - 70 + - ( + - 42 ) + 3 + - + 25 * - 97 * + + 5 * + + COUNT ( * ) + + 91 * + 63 col2, 24 * 11
----
17833
264

query I rowsort
SELECT + 34 + 77 col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT MIN( - + 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-5161
SELECT MIN ( - + 80 ) AS col1
----
-80

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

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

query I rowsort
SELECT + 80 * - 37
----
-2960

query I rowsort
SELECT ALL ( CASE ( + 14 ) WHEN + 69 THEN + 93 WHEN - + 98 THEN - 87 WHEN - 5 - + 17 THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5165
SELECT ALL ( - + ( - - NULLIF ( 5, + + 29 ) ) ) AS col1, 70 - + COUNT( + + NULLIF ( + + CAST( - - 1 AS SIGNED ), + 43 ) ) + - 32 AS col1
----
-5
37

skipif mysql # not compatible
query II rowsort label-5165
SELECT ALL ( - + ( - - NULLIF ( 5, + + 29 ) ) ) AS col1, 70 - + COUNT ( + + NULLIF ( + + CAST ( - - 1 AS INTEGER ), + 43 ) ) + - 32 AS col1
----
-5
37

query I rowsort
SELECT + 86 + + + 1 + - 45 AS col1
----
42

query I rowsort
SELECT - 50 * + 47 AS col0
----
-2350

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT NULLIF ( 64, + - COUNT( DISTINCT + 97 ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT NULLIF ( 64, + - COUNT ( DISTINCT + 97 ) ) AS col1
----
64

query I rowsort
SELECT + ( - - 41 ) + - - 76
----
117

query I rowsort
SELECT - 5 + 79 + + 93 + 43
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5172
SELECT ALL - + 99 DIV - COUNT( + 29 )
----
99

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL - + 99 / - COUNT ( + 29 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5173
SELECT - COALESCE ( + ( + 2 ), NULLIF ( + 62, + + CASE - + 25 WHEN 35 / + 71 THEN + + 55 END - - + 91 ) + MIN( + 58 ) * - 62, + + CAST( NULL AS SIGNED ), 46 * + 76 + 72 ) * + 21
----
-42

skipif mysql # not compatible
query I rowsort label-5173
SELECT - COALESCE ( + ( + 2 ), NULLIF ( + 62, + + CASE - + 25 WHEN 35 / + 71 THEN + + 55 END - - + 91 ) + MIN ( + 58 ) * - 62, + + CAST ( NULL AS INTEGER ), 46 * + 76 + 72 ) * + 21
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT - - 66 + COUNT( * ) - - - 87 * + 87 * - 34 * - 75
----
-19300883

skipif mysql # not compatible
query I rowsort label-5174
SELECT - - 66 + COUNT ( * ) - - - 87 * + 87 * - 34 * - 75
----
-19300883

query I rowsort
SELECT ALL - + 7 + - 54 + + 84
----
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5177
SELECT - - NULLIF ( - + COUNT( * ), - - 89 + - - CAST( 91 AS SIGNED ) + - 63 / 20 + - 64 - 17 * 82 ) + + 42
----
41

skipif mysql # not compatible
query I rowsort label-5177
SELECT - - NULLIF ( - + COUNT ( * ), - - 89 + - - CAST ( 91 AS INTEGER ) + - 63 / 20 + - 64 - 17 * 82 ) + + 42
----
41

query I rowsort
SELECT ALL - 11 + 3 + 1 AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5179
SELECT + 11 * + CAST( NULL AS SIGNED ) + + + 32 + + - CASE COUNT( * ) WHEN - + ( 73 ) THEN NULL WHEN - ( - + 35 ) * 8 + + + COUNT( * ) THEN 3 END + + CASE 15 WHEN - 15 THEN AVG ( ALL ( + 59 ) ) WHEN + 8 * + CASE COUNT( 27 ) WHEN - 32 THEN 86 / + COUNT( * ) + ( + MAX( 96 ) ) ELSE - NULLIF ( 80, - COALESCE ( - MAX( 19 ), - 20, - 56 + - 17 * - COUNT( * ) ) * + 34 ) END THEN 42 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT + 11 * + CAST ( NULL AS INTEGER ) + + + 32 + + - CASE COUNT ( * ) WHEN - + ( 73 ) THEN NULL WHEN - ( - + 35 ) * 8 + + + COUNT ( * ) THEN 3 END + + CASE 15 WHEN - 15 THEN AVG ( ALL ( + 59 ) ) WHEN + 8 * + CASE COUNT ( 27 ) WHEN - 32 THEN 86 / + COUNT ( * ) + ( + MAX ( 96 ) ) ELSE - NULLIF ( 80, - COALESCE ( - MAX ( 19 ), - 20, - 56 + - 17 * - COUNT ( * ) ) * + 34 ) END THEN 42 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT + 23 DIV + ( ( - + 29 ) ) * - 24 + 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5180
SELECT + 23 / + ( ( - + 29 ) ) * - 24 + 39 AS col1
----
39

query I rowsort
SELECT - + 35 * - - 92 * + COALESCE ( 69, + 42 ) - 51 + - 67 AS col0
----
-222298

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

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL COUNT ( * ) / 94 + + 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT - COUNT( * ) + + CASE - 35 WHEN 45 * COUNT( * ) THEN - COUNT( * ) + - 37 ELSE 71 END + + 15 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5183
SELECT - COUNT ( * ) + + CASE - 35 WHEN 45 * COUNT ( * ) THEN - COUNT ( * ) + - 37 ELSE 71 END + + 15 AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT - NULLIF ( + 76, - 52 ) DIV ( 28 ) - - 19 * 98 AS col2
----
1860

skipif mysql # not compatible
query I rowsort label-5184
SELECT - NULLIF ( + 76, - 52 ) / ( 28 ) - - 19 * 98 AS col2
----
1860

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - COUNT( - 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5185
SELECT - COUNT ( - 58 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5186
SELECT ALL - + 77 DIV - 17 + + 28 + + ( + 85 ) + - + 2 * 81 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - + 77 / - 17 + + 28 + + ( + 85 ) + - + 2 * 81 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT - ( COUNT( DISTINCT + ( 82 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5187
SELECT - ( COUNT ( DISTINCT + ( 82 ) ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 68 + - 7
----
-75

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

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

query I rowsort
SELECT ALL 70 * - 33
----
-2310

onlyif mysql # aggregate syntax: 
query II rowsort label-5191
SELECT ALL - 73, CASE - COUNT( * ) WHEN - - COUNT( ALL 91 ) THEN - 43 * - 25 WHEN - 53 THEN 96 END + - 63 + + 44 + - - 83 - - - COUNT( * ) AS col2
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-5191
SELECT ALL - 73, CASE - COUNT ( * ) WHEN - - COUNT ( ALL 91 ) THEN - 43 * - 25 WHEN - 53 THEN 96 END + - 63 + + 44 + - - 83 - - - COUNT ( * ) AS col2
----
-73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT - COUNT( * ) * - 80 + 0 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-5192
SELECT - COUNT ( * ) * - 80 + 0 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) - + 51
----
-50

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) - + 51
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5194
SELECT COUNT( * ) DIV + - 37 * + 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5194
SELECT COUNT ( * ) / + - 37 * + 30 AS col1
----
0

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

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

query I rowsort
SELECT COALESCE ( - 13, + + 45 ) + + 40
----
27

onlyif mysql # aggregate syntax: 
query III rowsort label-5197
SELECT ALL 61 AS col0, + 32 * - ( CASE + 15 WHEN + 1 THEN NULL ELSE + 24 * 48 + COALESCE ( - SUM( - - 36 ), SUM( + + 99 ) ) + + 24 END ) col0, + - 10 + + 26 * - COUNT( * )
----
61
-36480
-36

skipif mysql # not compatible
query III rowsort label-5197
SELECT ALL 61 AS col0, + 32 * - ( CASE + 15 WHEN + 1 THEN NULL ELSE + 24 * 48 + COALESCE ( - SUM ( - - 36 ), SUM ( + + 99 ) ) + + 24 END ) col0, + - 10 + + 26 * - COUNT ( * )
----
61
-36480
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5198
SELECT COUNT( * ) DIV - 44 * 38
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT COUNT ( * ) / - 44 * 38
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5199
SELECT ( - SUM( ALL - 74 ) ) DIV + 15
----
4

skipif mysql # not compatible
query I rowsort label-5199
SELECT ( - SUM ( ALL - 74 ) ) / + 15
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT 43 * + SUM( - - 3 )
----
129

skipif mysql # not compatible
query I rowsort label-5200
SELECT 43 * + SUM ( - - 3 )
----
129

query II rowsort
SELECT ALL - 76 + - 27 AS col0, 47 AS col1
----
-103
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5202
SELECT DISTINCT - 84 * 54 AS col1, + COUNT( * ) col0
----
-4536
1

skipif mysql # not compatible
query II rowsort label-5202
SELECT DISTINCT - 84 * 54 AS col1, + COUNT ( * ) col0
----
-4536
1

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

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

query I rowsort
SELECT 0 + + - 68 AS col0
----
-68

query I rowsort
SELECT ALL 95 + 44 AS col1
----
139

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

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT - 82 + + + CAST ( NULL AS INTEGER ) + - + 12
----
NULL

query II rowsort
SELECT ALL 97 AS col0, - 27
----
97
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT 25 DIV 83 - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5208
SELECT 25 / 83 - + COUNT ( * ) AS col1
----
-1

query II rowsort
SELECT - 42 AS col2, 36 col2
----
-42
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL - + ( - - 90 ) + + 2 + - CASE + 76 WHEN - + 5 / 63 * ( + 17 ) + + - ( 33 ) + - + 20 + + COUNT( * ) * + CASE + 81 WHEN - 78 THEN - SUM( DISTINCT 2 ) / - 15 + 27 END + + 22 THEN NULL ELSE 33 + - 0 END * 47 * + 26
----
-40414

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL - + ( - - 90 ) + + 2 + - CASE + 76 WHEN - + 5 / 63 * ( + 17 ) + + - ( 33 ) + - + 20 + + COUNT ( * ) * + CASE + 81 WHEN - 78 THEN - SUM ( DISTINCT 2 ) / - 15 + 27 END + + 22 THEN NULL ELSE 33 + - 0 END * 47 * + 26
----
-40414

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5211
SELECT DISTINCT + + 29 DIV - - SUM( ALL + 34 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT + + 29 / - - SUM ( ALL + 34 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT DISTINCT COUNT( * ) - - 66 + - COUNT( * ) + - - 12 * - + COUNT( * ) * - COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT COUNT ( * ) - - 66 + - COUNT ( * ) + - - 12 * - + COUNT ( * ) * - COUNT ( * ) AS col1
----
78

query II rowsort
SELECT ALL + - 79 * 28 + - 69 + + + 63 AS col2, 17 col1
----
-2218
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5214
SELECT 94 * - 43 * - - NULLIF ( - 43, CAST( NULL AS SIGNED ) )
----
173806

skipif mysql # not compatible
query I rowsort label-5214
SELECT 94 * - 43 * - - NULLIF ( - 43, CAST ( NULL AS INTEGER ) )
----
173806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT ALL - 39 - - + 41 + + - COALESCE ( - 5, + 79 + + 54 ) + - CAST( + 50 AS SIGNED ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - 39 - - + 41 + + - COALESCE ( - 5, + 79 + + 54 ) + - CAST ( + 50 AS INTEGER ) col2
----
-43

query I rowsort
SELECT DISTINCT + 80 * 31 AS col2
----
2480

query I rowsort
SELECT 28 - 5 AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5218
SELECT COUNT( * ) * + + 29 * - 51 AS col1, - 97 * + - 71 * 30 + + - MAX( - 83 ) + - - ( + + 91 ) * - + 38 AS col0
----
-1479
203235

skipif mysql # not compatible
query II rowsort label-5218
SELECT COUNT ( * ) * + + 29 * - 51 AS col1, - 97 * + - 71 * 30 + + - MAX ( - 83 ) + - - ( + + 91 ) * - + 38 AS col0
----
-1479
203235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5219
SELECT ALL + COALESCE ( + 12, + - COALESCE ( - 93, - COUNT( * ) ) DIV - 85, + 2 ) * - ( + 72 ) * + 62 + - 6 + - + MIN( DISTINCT + ( - 77 ) ) + + + ( + 71 ) * + + 93 + 16
----
-46878

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + COALESCE ( + 12, + - COALESCE ( - 93, - COUNT ( * ) ) / - 85, + 2 ) * - ( + 72 ) * + 62 + - 6 + - + MIN ( DISTINCT + ( - 77 ) ) + + + ( + 71 ) * + + 93 + 16
----
-46878

query II rowsort
SELECT 38 * + 61, + 85 AS col1
----
2318
85

query I rowsort
SELECT - 44 * - + 83 + 62 AS col2
----
3714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5222
SELECT ALL - CAST( + 91 AS SIGNED ) col1, - 70 - COUNT( * ) AS col2
----
-91
-71

skipif mysql # not compatible
query II rowsort label-5222
SELECT ALL - CAST ( + 91 AS INTEGER ) col1, - 70 - COUNT ( * ) AS col2
----
-91
-71

query I rowsort
SELECT 28 * 90 * 86 AS col2
----
216720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT DISTINCT 51 * - COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT 51 * - COUNT ( * ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT SUM( ALL + 65 ) * COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-5226
SELECT SUM ( ALL + 65 ) * COUNT ( * ) AS col1
----
65

query II rowsort
SELECT DISTINCT + 13 * - 89 AS col1, 15
----
-1157
15

query I rowsort
SELECT 43 * + 91
----
3913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT CASE 46 WHEN + CAST( NULL AS SIGNED ) THEN - 95 * + 25 END * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT CASE 46 WHEN + CAST ( NULL AS INTEGER ) THEN - 95 * + 25 END * + 98
----
NULL

query I rowsort
SELECT ALL - 68 + NULLIF ( - - 78, 0 / - 12 * 20 ) * 66 * + 84 AS col1
----
432364

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT - SUM( ALL 57 ) + - 70 + COUNT( DISTINCT - 90 ) * 17 * + COUNT( * ) * 35
----
468

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT - SUM ( ALL 57 ) + - 70 + COUNT ( DISTINCT - 90 ) * 17 * + COUNT ( * ) * 35
----
468

query II rowsort
SELECT ALL 40 + + - 74 AS col1, - ( - 10 ) - - 32
----
-34
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT DISTINCT + 97 + - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT + 97 + - COUNT ( * )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5234
SELECT 15 DIV 13 + 5 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-5234
SELECT 15 / 13 + 5 / + 50
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT COUNT( * ) + - 51 * - COUNT( * ) - + COALESCE ( 85, - COUNT( - - 17 ) * + 70 * + 96 * 25 ) * + 36 - 28
----
-3036

skipif mysql # not compatible
query I rowsort label-5235
SELECT COUNT ( * ) + - 51 * - COUNT ( * ) - + COALESCE ( 85, - COUNT ( - - 17 ) * + 70 * + 96 * 25 ) * + 36 - 28
----
-3036

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5237
SELECT + 76 + + 51 * + + 15 * + CAST( + + 84 AS SIGNED )
----
64336

skipif mysql # not compatible
query I rowsort label-5237
SELECT + 76 + + 51 * + + 15 * + CAST ( + + 84 AS INTEGER )
----
64336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5238
SELECT CASE 55 WHEN + 26 * 87 THEN - + 11 / 55 / - + 91 * + - 37 ELSE MIN( ALL - 12 ) + - - CAST( NULL AS SIGNED ) END + + 53 + + 1 * + + 91 + + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT CASE 55 WHEN + 26 * 87 THEN - + 11 / 55 / - + 91 * + - 37 ELSE MIN ( ALL - 12 ) + - - CAST ( NULL AS INTEGER ) END + + 53 + + 1 * + + 91 + + - 91
----
NULL

query I rowsort
SELECT ALL + 3 + + ( - ( - 90 ) ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT + - 40 + + 14 + 31 * + + COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5240
SELECT + - 40 + + 14 + 31 * + + COUNT ( * ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT + COUNT( * ) + - + NULLIF ( 10, - 21 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5241
SELECT + COUNT ( * ) + - + NULLIF ( 10, - 21 ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5242
SELECT ALL + 79 * - - COUNT( * ) DIV - COALESCE ( - - ( + 82 ), - - 45 ) * 45 * + 98 * - 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL + 79 * - - COUNT ( * ) / - COALESCE ( - - ( + 82 ), - - 45 ) * 45 * + 98 * - 22 AS col1
----
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5245
SELECT DISTINCT + 51 * + CASE + 2 WHEN 0 THEN NULL ELSE COUNT( 28 ) * + 46 * + + 1 + + 94 END * - ( 35 ) + CAST( - 1 AS SIGNED )
----
-249901

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT + 51 * + CASE + 2 WHEN 0 THEN NULL ELSE COUNT ( 28 ) * + 46 * + + 1 + + 94 END * - ( 35 ) + CAST ( - 1 AS INTEGER )
----
-249901

onlyif mysql # aggregate syntax: 
query II rowsort label-5246
SELECT ALL + MAX( - 40 ) AS col1, 49 AS col0
----
-40
49

skipif mysql # not compatible
query II rowsort label-5246
SELECT ALL + MAX ( - 40 ) AS col1, 49 AS col0
----
-40
49

query I rowsort
SELECT + + 13 + - 34 + - 66 * - 11 * + - 14 + 54 * - 35 col2
----
-12075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5248
SELECT - + 97 * - 24 + CAST( + 95 AS SIGNED ) - - + 16 + - 3 + MAX( + 55 ) - + 45 - + CAST( - 80 AS SIGNED ) * - - 98 * - 91 * - - 89 AS col2
----
-63493714

skipif mysql # not compatible
query I rowsort label-5248
SELECT - + 97 * - 24 + CAST ( + 95 AS INTEGER ) - - + 16 + - 3 + MAX ( + 55 ) - + 45 - + CAST ( - 80 AS INTEGER ) * - - 98 * - 91 * - - 89 AS col2
----
-63493714

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

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

query I rowsort
SELECT + 11 + ( 69 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT 7 DIV - + 37 + - NULLIF ( + 69, 62 DIV + ( 41 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5251
SELECT 7 / - + 37 + - NULLIF ( + 69, 62 / + ( 41 ) ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-5252
SELECT ALL + 83, + MIN( - 61 ) AS col1
----
83
-61

skipif mysql # not compatible
query II rowsort label-5252
SELECT ALL + 83, + MIN ( - 61 ) AS col1
----
83
-61

query I rowsort
SELECT ALL + 98 * + 69 AS col2
----
6762

onlyif mysql # aggregate syntax: 
query II rowsort label-5254
SELECT ALL + COUNT( * ) AS col1, 2 AS col2
----
1
2

skipif mysql # not compatible
query II rowsort label-5254
SELECT ALL + COUNT ( * ) AS col1, 2 AS col2
----
1
2

query I rowsort
SELECT CASE AVG ( + 57 ) WHEN + 73 THEN NULL ELSE 31 END AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT COALESCE ( CASE - NULLIF ( - 99, 99 ) WHEN 92 THEN + + 35 * - COUNT( * ) + - 53 + + + 92 WHEN - CASE 49 WHEN ( - - COALESCE ( + 64, COUNT( * ) ) ) THEN - - 51 * NULLIF ( 63, + 12 ) ELSE NULL END - 69 THEN 94 + 37 END, - ( COUNT( DISTINCT - 64 ) ) * + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-5256
SELECT COALESCE ( CASE - NULLIF ( - 99, 99 ) WHEN 92 THEN + + 35 * - COUNT ( * ) + - 53 + + + 92 WHEN - CASE 49 WHEN ( - - COALESCE ( + 64, COUNT ( * ) ) ) THEN - - 51 * NULLIF ( 63, + 12 ) ELSE NULL END - 69 THEN 94 + 37 END, - ( COUNT ( DISTINCT - 64 ) ) * + 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT - ( + 88 ) * + - 94 + + + 36 * + - 70 - - - SUM( DISTINCT + 91 )
----
5661

skipif mysql # not compatible
query I rowsort label-5257
SELECT - ( + 88 ) * + - 94 + + + 36 * + - 70 - - - SUM ( DISTINCT + 91 )
----
5661

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT DISTINCT + 27 * + COUNT( - 34 ) * - SUM( DISTINCT 64 ) AS col0
----
-1728

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT + 27 * + COUNT ( - 34 ) * - SUM ( DISTINCT 64 ) AS col0
----
-1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5259
SELECT 36 * + 0 + + + COALESCE ( - ( - 84 ), + + 48, - - ( + 85 ) * 49 + - MIN( ALL + 67 ) DIV - - 3 * + 3 + - 94 ), - ( + 97 ) * 58 - + 76 AS col2
----
84
-5702

skipif mysql # not compatible
query II rowsort label-5259
SELECT 36 * + 0 + + + COALESCE ( - ( - 84 ), + + 48, - - ( + 85 ) * 49 + - MIN ( ALL + 67 ) / - - 3 * + 3 + - 94 ), - ( + 97 ) * 58 - + 76 AS col2
----
84
-5702

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT DISTINCT COUNT( * ) * + + 29 + - - 41 * - 21
----
-832

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT COUNT ( * ) * + + 29 + - - 41 * - 21
----
-832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 87 + + 98 - - AVG ( - 79 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 87 + + 98 - - AVG ( - 79 ) AS col0
----
NULL

query II rowsort
SELECT + 21 AS col0, - 24
----
21
-24

query I rowsort
SELECT DISTINCT 64 * + 12 * - - 85 + + - NULLIF ( 88, + + 54 ) AS col1
----
65192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5264
SELECT ALL + COALESCE ( - + 40, ( + 35 ) * - 23, - + 90 * - + COUNT( * ) * + 90 + CAST( + 41 AS SIGNED ) )
----
-40

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL + COALESCE ( - + 40, ( + 35 ) * - 23, - + 90 * - + COUNT ( * ) * + 90 + CAST ( + 41 AS INTEGER ) )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5265
SELECT DISTINCT 80 * 0 * - 4 * - - 97 + 65 + + + ( + 79 ) + - + ( - 80 ) / + CAST( NULL AS SIGNED ) - NULLIF ( + 47, + 78 ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT 80 * 0 * - 4 * - - 97 + 65 + + + ( + 79 ) + - + ( - 80 ) / + CAST ( NULL AS INTEGER ) - NULLIF ( + 47, + 78 ) * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5266
SELECT DISTINCT 92, 93 * COUNT( + NULLIF ( - 17, 28 + + 4 ) ) * + 75 col2
----
92
6975

skipif mysql # not compatible
query II rowsort label-5266
SELECT DISTINCT 92, 93 * COUNT ( + NULLIF ( - 17, 28 + + 4 ) ) * + 75 col2
----
92
6975

query I rowsort
SELECT ALL - 99 + - - 82 col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5268
SELECT - + 18 DIV 74 * + - CASE SUM( 23 ) WHEN + COUNT( * ) THEN NULL WHEN - + 97 THEN - + COALESCE ( NULLIF ( - + 86, + + 67 ), - 57 ) WHEN - + 33 THEN + + 46 ELSE - 9 - - + 88 END
----
0

skipif mysql # not compatible
query I rowsort label-5268
SELECT - + 18 / 74 * + - CASE SUM ( 23 ) WHEN + COUNT ( * ) THEN NULL WHEN - + 97 THEN - + COALESCE ( NULLIF ( - + 86, + + 67 ), - 57 ) WHEN - + 33 THEN + + 46 ELSE - 9 - - + 88 END
----
0

query I rowsort
SELECT + NULLIF ( - 49, - 28 ) + - 67 - - 99 AS col2
----
-17

query I rowsort
SELECT DISTINCT + - 88 * ( - 25 ) AS col1
----
2200

query I rowsort
SELECT + 44 + + 72 + + 14 - - 71 + + + 1 + + + 25 * - 54
----
-1148

query I rowsort
SELECT ALL 13 - - NULLIF ( ( + - ( - 61 ) ), - 7 * 91 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT ALL + 74 * 43 * - + ( 11 ) + COUNT( * ) - SUM( ALL + CASE 52 WHEN 52 THEN NULL ELSE - 10 END ) * + 35 + - MAX( ALL 95 ) * - + 2 * 59 * - 62 * COUNT( * ) * - 8 * ( 5 ) + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL + 74 * 43 * - + ( 11 ) + COUNT ( * ) - SUM ( ALL + CASE 52 WHEN 52 THEN NULL ELSE - 10 END ) * + 35 + - MAX ( ALL 95 ) * - + 2 * 59 * - 62 * COUNT ( * ) * - 8 * ( 5 ) + 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5274
SELECT - 71, COUNT( * ) + + NULLIF ( + + 70, + CASE - - 7 WHEN + COUNT( * ) + + 58 - - ( + - 52 ) + + 30 THEN + MAX( DISTINCT + + 7 ) WHEN - 70 THEN COUNT( * ) END ) col0
----
-71
71

skipif mysql # not compatible
query II rowsort label-5274
SELECT - 71, COUNT ( * ) + + NULLIF ( + + 70, + CASE - - 7 WHEN + COUNT ( * ) + + 58 - - ( + - 52 ) + + 30 THEN + MAX ( DISTINCT + + 7 ) WHEN - 70 THEN COUNT ( * ) END ) col0
----
-71
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5275
SELECT ALL - + COUNT( * ) * + 59 + - 40 AS col0, - 59 + - 51 - + + 62
----
-99
-172

skipif mysql # not compatible
query II rowsort label-5275
SELECT ALL - + COUNT ( * ) * + 59 + - 40 AS col0, - 59 + - 51 - + + 62
----
-99
-172

query I rowsort
SELECT ALL + - ( - ( - 44 ) ) - + - 72 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT ALL - - 46 * + 75 * - COUNT( * ) + - COUNT( * )
----
-3451

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL - - 46 * + 75 * - COUNT ( * ) + - COUNT ( * )
----
-3451

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT ALL - 92 DIV + ( 2 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL - 92 / + ( 2 ) AS col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5279
SELECT + - 86 * 14 DIV + + 1, COUNT( * ) * NULLIF ( - 85, + 92 ) + + + COUNT( * ) AS col0
----
-1204
-84

skipif mysql # not compatible
query II rowsort label-5279
SELECT + - 86 * 14 / + + 1, COUNT ( * ) * NULLIF ( - 85, + 92 ) + + + COUNT ( * ) AS col0
----
-1204
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT + SUM( ALL 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5280
SELECT + SUM ( ALL 5 ) AS col2
----
5

query I rowsort
SELECT + + 11 * 85 col1
----
935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5282
SELECT + - 53 * - 1 DIV COUNT( * ) * 42
----
2226

skipif mysql # not compatible
query I rowsort label-5282
SELECT + - 53 * - 1 / COUNT ( * ) * 42
----
2226

query I rowsort
SELECT - ( COALESCE ( 33, - + 63, 3 ) )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5284
SELECT + 99 DIV 32 * + COUNT( * ) * - 48 * - COUNT( ALL 69 ), + 16 AS col2
----
144
16

skipif mysql # not compatible
query II rowsort label-5284
SELECT + 99 / 32 * + COUNT ( * ) * - 48 * - COUNT ( ALL 69 ), + 16 AS col2
----
144
16

query I rowsort
SELECT + 73 + + 62 AS col0
----
135

query I rowsort
SELECT ALL ( 4 ) * + COALESCE ( 34, + 10 )
----
136

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5287
SELECT DISTINCT + NULLIF ( - COUNT( * ), 18 * + - 30 + - - 75 ) AS col2, + CAST( NULL AS DECIMAL )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5287
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 18 * + - 30 + - - 75 ) AS col2, + CAST ( NULL AS REAL )
----
-1
NULL

query I rowsort
SELECT + NULLIF ( - 59, - 82 ) AS col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT ALL + 7 DIV 1 + + 5
----
12

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL + 7 / 1 + + 5
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5290
SELECT ALL - 24 DIV - CASE - 35 WHEN + + 58 THEN NULL ELSE + 28 END + - 96
----
-96

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL - 24 / - CASE - 35 WHEN + + 58 THEN NULL ELSE + 28 END + - 96
----
-96

query I rowsort
SELECT + 46 - - 19 * + - 10 AS col0
----
-144

query I rowsort
SELECT - 4 * + 68
----
-272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5293
SELECT ALL 60 DIV + 60 + + 41 * + - MIN( ALL 75 ) AS col1
----
-3074

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL 60 / + 60 + + 41 * + - MIN ( ALL 75 ) AS col1
----
-3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5294
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 93 / 13 * + 89 + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 93 / 13 * + 89 + 90
----
NULL

query I rowsort
SELECT - 68 - + 64 AS col0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-5296
SELECT ALL 74 DIV + - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL 74 / + - 76 AS col1
----
0

query II rowsort
SELECT ( - 36 ) AS col2, 54 * + 70 + + 80 + 41 AS col1
----
-36
3901

query I rowsort
SELECT + 53 * 69 * - 21 + 25 * + ( 17 )
----
-76372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5299
SELECT + CAST( COALESCE ( - - SUM( - + 15 ), + 11 * 7 + + ( 73 ) + + 64 + - - 99 * + - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5299
SELECT + CAST ( COALESCE ( - - SUM ( - + 15 ), + 11 * 7 + + ( 73 ) + + 64 + - - 99 * + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
-15

query I rowsort
SELECT + + 64 * - 55 * + 29 AS col1
----
-102080

query I rowsort
SELECT - - 58 * + 50
----
2900

query II rowsort
SELECT DISTINCT 46 * - 4 AS col1, 56 col0
----
-184
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT COUNT( * ) * - + 57 * - MAX( DISTINCT + 7 ) * + 95 + NULLIF ( 79, + 7 ) AS col2
----
37984

skipif mysql # not compatible
query I rowsort label-5303
SELECT COUNT ( * ) * - + 57 * - MAX ( DISTINCT + 7 ) * + 95 + NULLIF ( 79, + 7 ) AS col2
----
37984

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT SUM( + 76 ) col2
----
76

skipif mysql # not compatible
query I rowsort label-5304
SELECT SUM ( + 76 ) col2
----
76

query I rowsort
SELECT 3 * + - 42 col1
----
-126

query I rowsort
SELECT + 22 * - ( + + 80 ) + - - 89 AS col2
----
-1671

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

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

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

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

query I rowsort
SELECT ALL - 2 * - 99 + - + 47 + + + 80 * + + 19 AS col2
----
1671

query I rowsort
SELECT - 88 + - 12 AS col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT 72 + - COUNT( ALL + 42 )
----
71

skipif mysql # not compatible
query I rowsort label-5311
SELECT 72 + - COUNT ( ALL + 42 )
----
71

query I rowsort
SELECT DISTINCT - 58 * - - 11 + - - 9
----
-629

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5313
SELECT ALL 76 + - 84 * - CAST( NULL AS DECIMAL ) + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL 76 + - 84 * - CAST ( NULL AS REAL ) + 65
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5314
SELECT 38 + 49 * COUNT ( * ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT ALL 33, ( + CASE + 8 WHEN - 53 THEN + + 95 + + COUNT( * ) ELSE + 71 END ) AS col1
----
33
71

skipif mysql # not compatible
query II rowsort label-5315
SELECT ALL 33, ( + CASE + 8 WHEN - 53 THEN + + 95 + + COUNT ( * ) ELSE + 71 END ) AS col1
----
33
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5316
SELECT DISTINCT - 99 + + CASE - - 89 WHEN - + 42 * + + 63 * - 52 THEN NULL WHEN - MIN( ALL 97 ) - 56 THEN NULL WHEN + COUNT( * ) + ( + + 8 ) + - 85 - 93 THEN - 62 * CASE - NULLIF ( + - 9, - 55 ) WHEN - 89 + 86 / - ( CAST( - ( 1 ) AS SIGNED ) + 79 * 1 ) THEN NULL WHEN + 37 THEN NULLIF ( 17, 90 ) - 54 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT - 99 + + CASE - - 89 WHEN - + 42 * + + 63 * - 52 THEN NULL WHEN - MIN ( ALL 97 ) - 56 THEN NULL WHEN + COUNT ( * ) + ( + + 8 ) + - 85 - 93 THEN - 62 * CASE - NULLIF ( + - 9, - 55 ) WHEN - 89 + 86 / - ( CAST ( - ( 1 ) AS INTEGER ) + 79 * 1 ) THEN NULL WHEN + 37 THEN NULLIF ( 17, 90 ) - 54 ELSE NULL END END
----
NULL

query I rowsort
SELECT 57 + + 45 AS col1
----
102

query I rowsort
SELECT 28 * + 91 AS col2
----
2548

onlyif mysql # DIV for integer division: 
query I rowsort label-5319
SELECT + 32 DIV - - 13 + 29 * 73
----
2119

skipif mysql # not compatible
query I rowsort label-5319
SELECT + 32 / - - 13 + 29 * 73
----
2119

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT DISTINCT 92 DIV - + 46 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT 92 / - + 46 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5321
SELECT 47 DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5321
SELECT 47 / - 93 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5322
SELECT CASE + 74 WHEN CAST( + + 34 AS SIGNED ) THEN 84 WHEN + 46 THEN + MIN( DISTINCT - - 74 ) + - - ( 34 ) END + + - ( - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT CASE + 74 WHEN CAST ( + + 34 AS INTEGER ) THEN 84 WHEN + 46 THEN + MIN ( DISTINCT - - 74 ) + - - ( 34 ) END + + - ( - 38 )
----
NULL

query I rowsort
SELECT DISTINCT 27 + 26 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL 86 + - 84 + - COUNT( * ) + 78 * - - MAX( - 49 ) AS col0
----
-3821

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL 86 + - 84 + - COUNT ( * ) + 78 * - - MAX ( - 49 ) AS col0
----
-3821

query II rowsort
SELECT + 9 AS col2, - 71 * - - 31 AS col2
----
9
-2201

query I rowsort
SELECT 69 * 58
----
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT + CASE - + 13 WHEN + + 80 THEN + + 86 + + 71 WHEN + - 89 + + + 92 THEN 46 + 31 END / - 27 * + ( + + ( + - COUNT( - 10 ) ) ) + - + CASE - + 29 WHEN + + 43 + 90 THEN + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT + CASE - + 13 WHEN + + 80 THEN + + 86 + + 71 WHEN + - 89 + + + 92 THEN 46 + 31 END / - 27 * + ( + + ( + - COUNT ( - 10 ) ) ) + - + CASE - + 29 WHEN + + 43 + 90 THEN + 97 END
----
NULL

query I rowsort
SELECT 52 * - - 28 AS col2
----
1456

onlyif mysql # DIV for integer division: 
query I rowsort label-5329
SELECT ALL 26 - - COALESCE ( - - 69, + 39 * + + COALESCE ( - + 33, + 41 DIV - 0 ) ) + 84 * + + 42 + - 99 AS col1
----
3524

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL 26 - - COALESCE ( - - 69, + 39 * + + COALESCE ( - + 33, + 41 / - 0 ) ) + 84 * + + 42 + - 99 AS col1
----
3524

query I rowsort
SELECT DISTINCT 85 * + - ( - 67 )
----
5695

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5331
SELECT CAST( NULL AS SIGNED ) - - + 28 * 50 AS col0, - 28 DIV 45 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5331
SELECT CAST ( NULL AS INTEGER ) - - + 28 * 50 AS col0, - 28 / 45 AS col0
----
NULL
0

query I rowsort
SELECT - 3 * - 70
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5333
SELECT 2 * CAST( NULL AS SIGNED ) + + NULLIF ( - - COUNT( * ), - + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT 2 * CAST ( NULL AS INTEGER ) + + NULLIF ( - - COUNT ( * ), - + 76 )
----
NULL

query I rowsort
SELECT + NULLIF ( 24, 70 + 6 + - - 99 * + 34 ) col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL COUNT( * ) - 2
----
-1

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL COUNT ( * ) - 2
----
-1

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

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

query I rowsort
SELECT 77 + - 47 AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT - 79 + 51 + + CAST( + ( + 17 ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-5338
SELECT - 79 + 51 + + CAST ( + ( + 17 ) AS INTEGER )
----
-11

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5340
SELECT DISTINCT - NULLIF ( + 47, - - 37 * - - 7 ) DIV COUNT( * ) * - + MIN( DISTINCT + 26 )
----
1222

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT - NULLIF ( + 47, - - 37 * - - 7 ) / COUNT ( * ) * - + MIN ( DISTINCT + 26 )
----
1222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5341
SELECT 15 + - + 89 + - - CAST( + COUNT( * ) AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-5341
SELECT 15 + - + 89 + - - CAST ( + COUNT ( * ) AS INTEGER )
----
-73

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

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL MIN ( - - 53 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5343
SELECT CASE CAST( NULL AS DECIMAL ) WHEN 55 + - 4 + 94 THEN - 38 * + NULLIF ( COUNT( * ), - + 2 ) WHEN COUNT( * ) / + ( 39 ) * - 38 + + + 12 + - - NULLIF ( - 51, + + COUNT( * ) * - 20 + + 12 ) THEN COUNT( * ) WHEN + COUNT( * ) THEN 0 - - 32 END * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT CASE CAST ( NULL AS REAL ) WHEN 55 + - 4 + 94 THEN - 38 * + NULLIF ( COUNT ( * ), - + 2 ) WHEN COUNT ( * ) / + ( 39 ) * - 38 + + + 12 + - - NULLIF ( - 51, + + COUNT ( * ) * - 20 + + 12 ) THEN COUNT ( * ) WHEN + COUNT ( * ) THEN 0 - - 32 END * 80
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT 38 + - 47 + - 78 + - 81 DIV - + 9
----
-78

skipif mysql # not compatible
query I rowsort label-5344
SELECT 38 + - 47 + - 78 + - 81 / - + 9
----
-78

onlyif mysql # DIV for integer division: 
query III rowsort label-5345
SELECT + 86 * + ( + - CASE - 44 WHEN + - 86 + - - 39 THEN NULL ELSE - 49 DIV - 28 + + 81 END ) + 38 AS col0, 36 AS col0, + 64 * - 75 - - + 74 AS col2
----
-7014
36
-4726

skipif mysql # not compatible
query III rowsort label-5345
SELECT + 86 * + ( + - CASE - 44 WHEN + - 86 + - - 39 THEN NULL ELSE - 49 / - 28 + + 81 END ) + 38 AS col0, 36 AS col0, + 64 * - 75 - - + 74 AS col2
----
-7014
36
-4726

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT ALL - - 66 + 52 + COUNT( * ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL - - 66 + 52 + COUNT ( * ) AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT DISTINCT + NULLIF ( 45, + 30 + + - CASE WHEN + 2 NOT IN ( + 81 ) THEN + 80 * - COUNT( * ) END * 98 + - 84 * - - 94 * + + 3 + + 10 + 53 * + 7 + - + 51 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT + NULLIF ( 45, + 30 + + - CASE WHEN + 2 NOT IN ( + 81 ) THEN + 80 * - COUNT ( * ) END * 98 + - 84 * - - 94 * + + 3 + + 10 + 53 * + 7 + - + 51 ) AS col2
----
45

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

query I rowsort
SELECT ALL - 70 + + + ( 84 )
----
14

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5352
SELECT ALL - NULLIF ( 66, + 83 * - 33 * - + ( - 16 ) ) + COUNT( * ) * - 0 + 20, 38 col1
----
-46
38

skipif mysql # not compatible
query II rowsort label-5352
SELECT ALL - NULLIF ( 66, + 83 * - 33 * - + ( - 16 ) ) + COUNT ( * ) * - 0 + 20, 38 col1
----
-46
38

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

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

query I rowsort
SELECT 73 * - 4
----
-292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5355
SELECT - 95, - COUNT( DISTINCT + - CAST( + - CASE + 13 WHEN + 31 / - 89 THEN NULL ELSE + + 56 END AS SIGNED ) ) col2
----
-95
-1

skipif mysql # not compatible
query II rowsort label-5355
SELECT - 95, - COUNT ( DISTINCT + - CAST ( + - CASE + 13 WHEN + 31 / - 89 THEN NULL ELSE + + 56 END AS INTEGER ) ) col2
----
-95
-1

query I rowsort
SELECT ALL + 49 + + ( - 83 ) - - - 61 + + 54 + + - 84 * + 19 * + + 18
----
-28769

query II rowsort
SELECT DISTINCT 47 col1, - 25 AS col0
----
47
-25

query I rowsort
SELECT 63 - - + 17
----
80

query II rowsort
SELECT DISTINCT - 1 AS col1, - ( + - 44 )
----
-1
44

query I rowsort
SELECT NULLIF ( + 22, + 32 - + ( 34 ) ) AS col2
----
22

query II rowsort
SELECT ALL - 43 AS col0, - 11 + 83
----
-43
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5362
SELECT NULLIF ( + 5, - + COUNT( * ) + - 90 ), CAST( + + CAST( - + ( 24 ) AS SIGNED ) AS SIGNED ) AS col0
----
5
-24

skipif mysql # not compatible
query II rowsort label-5362
SELECT NULLIF ( + 5, - + COUNT ( * ) + - 90 ), CAST ( + + CAST ( - + ( 24 ) AS INTEGER ) AS INTEGER ) AS col0
----
5
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT - 5 * - MIN( ALL + - 56 ) * + 20
----
-5600

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT - 5 * - MIN ( ALL + - 56 ) * + 20
----
-5600

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

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

query I rowsort
SELECT 53 * - 72 * 96
----
-366336

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT SUM( ALL + - 75 ) * + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-5366
SELECT SUM ( ALL + - 75 ) * + COUNT ( * )
----
-75

query I rowsort
SELECT 62 + 10 col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5368
SELECT COUNT( * ), + 48 col1, - COUNT( * ) * 73 * + + 55 + 22 DIV + 12 AS col1
----
1
48
-4014

skipif mysql # not compatible
query III rowsort label-5368
SELECT COUNT ( * ), + 48 col1, - COUNT ( * ) * 73 * + + 55 + 22 / + 12 AS col1
----
1
48
-4014

query I rowsort
SELECT + 15 - + - 1 + - 10
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5370
SELECT - ( 50 ) * COALESCE ( - COUNT( + 42 ), - 30 ), + ( 46 ) * + - 12 - 98 + + 82 AS col0
----
50
-568

skipif mysql # not compatible
query II rowsort label-5370
SELECT - ( 50 ) * COALESCE ( - COUNT ( + 42 ), - 30 ), + ( 46 ) * + - 12 - 98 + + 82 AS col0
----
50
-568

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT + 32 + - - 56 * COALESCE ( + - COUNT( * ), + 34 * + ( + 27 ) - 40, - + 76 ) * - - 6
----
-304

skipif mysql # not compatible
query I rowsort label-5371
SELECT + 32 + - - 56 * COALESCE ( + - COUNT ( * ), + 34 * + ( + 27 ) - 40, - + 76 ) * - - 6
----
-304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5372
SELECT DISTINCT COUNT( * ) DIV 93 * 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5372
SELECT DISTINCT COUNT ( * ) / 93 * 83 AS col1
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5374
SELECT ALL + + 84 AS col1, COUNT( * ) + + 74 + - 87 + 25 DIV + 63 + - 33 - - + 12 DIV - 40 * - COALESCE ( 68, - + 55, COUNT( * ), - 93 ) DIV NULLIF ( + 43, - CAST( 1 AS SIGNED ) )
----
84
-45

skipif mysql # not compatible
query II rowsort label-5374
SELECT ALL + + 84 AS col1, COUNT ( * ) + + 74 + - 87 + 25 / + 63 + - 33 - - + 12 / - 40 * - COALESCE ( 68, - + 55, COUNT ( * ), - 93 ) / NULLIF ( + 43, - CAST ( 1 AS INTEGER ) )
----
84
-45

query I rowsort
SELECT + 67 + - 10
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5376
SELECT ALL ( - + 74 ) * 88 * - + 90 AS col1, CASE + - 35 WHEN - + 15 THEN NULL ELSE - 62 * NULLIF ( CAST( + + 88 AS SIGNED ), 36 ) END col0
----
586080
-5456

skipif mysql # not compatible
query II rowsort label-5376
SELECT ALL ( - + 74 ) * 88 * - + 90 AS col1, CASE + - 35 WHEN - + 15 THEN NULL ELSE - 62 * NULLIF ( CAST ( + + 88 AS INTEGER ), 36 ) END col0
----
586080
-5456

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5380
SELECT + COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) * - + 25 - - COUNT( * ) + - 42 + + 38 - + COUNT( * ) / + + 77 * + - 19 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5380
SELECT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) * - + 25 - - COUNT ( * ) + - 42 + + 38 - + COUNT ( * ) / + + 77 * + - 19 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT ALL MIN( 77 ) + - 52
----
25

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL MIN ( 77 ) + - 52
----
25

query I rowsort
SELECT ALL 9 + - 35
----
-26

query I rowsort
SELECT + 79 - + - 80 + - 91 + + 37 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ( - + NULLIF ( - - 98, + - 46 / NULLIF ( 13, 78 ) + + + COUNT( * ) ) )
----
-98

skipif mysql # not compatible
query I rowsort label-5384
SELECT ( - + NULLIF ( - - 98, + - 46 / NULLIF ( 13, 78 ) + + + COUNT ( * ) ) )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5385
SELECT ALL ( + - CAST( - + 94 AS SIGNED ) ) + + 46 AS col1, + 88 * - 47 AS col2
----
140
-4136

skipif mysql # not compatible
query II rowsort label-5385
SELECT ALL ( + - CAST ( - + 94 AS INTEGER ) ) + + 46 AS col1, + 88 * - 47 AS col2
----
140
-4136

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5387
SELECT + 6 DIV 28 * - - 66
----
0

skipif mysql # not compatible
query I rowsort label-5387
SELECT + 6 / 28 * - - 66
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5388
SELECT + 46 + - + 45 * - + CAST( NULL AS SIGNED ) + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5388
SELECT + 46 + - + 45 * - + CAST ( NULL AS INTEGER ) + 60
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5389
SELECT - 52 - - COUNT ( * ) * + + 70 AS col0
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT + COUNT( * ) + - - COUNT( * ) + - SUM( + 57 ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-5391
SELECT + COUNT ( * ) + - - COUNT ( * ) + - SUM ( + 57 ) col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT - ( 40 ) - + - ( + + MIN( + 64 ) ) * - - ( - + 14 ) - + 7 + 13 * + 79 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5392
SELECT - ( 40 ) - + - ( + + MIN ( + 64 ) ) * - - ( - + 14 ) - + 7 + 13 * + 79 AS col1
----
84

query I rowsort
SELECT + 99 + + + 10 * + 59 * 57
----
33729

onlyif mysql # aggregate syntax: 
query II rowsort label-5394
SELECT ALL - 81 + 67 AS col2, SUM( 24 ) AS col2
----
-14
24

skipif mysql # not compatible
query II rowsort label-5394
SELECT ALL - 81 + 67 AS col2, SUM ( 24 ) AS col2
----
-14
24

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

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL COUNT ( * ) * - ( - CAST ( - 82 AS INTEGER ) )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5396
SELECT ALL CASE + 66 WHEN + 95 + - + 46 THEN NULL ELSE MIN( ALL + + 3 ) - + 31 END AS col2, ( + CAST( NULL AS SIGNED ) ) * - 92
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-5396
SELECT ALL CASE + 66 WHEN + 95 + - + 46 THEN NULL ELSE MIN ( ALL + + 3 ) - + 31 END AS col2, ( + CAST ( NULL AS INTEGER ) ) * - 92
----
-28
NULL

query II rowsort
SELECT ALL ( + ( 51 ) ), ( - 1 ) AS col0
----
51
-1

query I rowsort
SELECT - 45 + - 25 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT - ( + COALESCE ( - 25, - COUNT( * ) ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5399
SELECT - ( + COALESCE ( - 25, - COUNT ( * ) ) ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT - COALESCE ( - 37, + 88 ) + CASE + + 22 WHEN COUNT( * ) THEN - + ( 96 ) WHEN 8 THEN NULL WHEN 79 THEN - 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT - COALESCE ( - 37, + 88 ) + CASE + + 22 WHEN COUNT ( * ) THEN - + ( 96 ) WHEN 8 THEN NULL WHEN 79 THEN - 24 ELSE NULL END
----
NULL

query I rowsort
SELECT - ( - + 50 ) * + 13 * + 27 AS col1
----
17550

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5402
SELECT 19 DIV - + MAX( + 65 ) * - COUNT( * ) + 95 + + 51 * - 34, + 58 AS col1
----
-1639
58

skipif mysql # not compatible
query II rowsort label-5402
SELECT 19 / - + MAX ( + 65 ) * - COUNT ( * ) + 95 + + 51 * - 34, + 58 AS col1
----
-1639
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ( - NULLIF ( MAX( + 8 ), - ( + 95 ) ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5403
SELECT ( - NULLIF ( MAX ( + 8 ), - ( + 95 ) ) ) AS col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT ALL + 47 DIV 86 DIV + NULLIF ( - 56, + 56 * 43 ) * + 22 + - ( 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + 47 / 86 / + NULLIF ( - 56, + 56 * 43 ) * + 22 + - ( 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT + - COUNT( * ) * 27 * + 58
----
-1566

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + - COUNT ( * ) * 27 * + 58
----
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT DISTINCT + + 12 * + MIN( 38 ) AS col2
----
456

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT + + 12 * + MIN ( 38 ) AS col2
----
456

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

skipif mysql # not compatible
query I rowsort label-5407
SELECT SUM ( DISTINCT - - 99 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5408
SELECT - - 33 + 59 * + ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT - - 33 + 59 * + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5409
SELECT + CASE 16 WHEN 68 - - - COUNT( * ) / 47 - - COUNT( * ) THEN 56 * - 42 * - 29 - + NULLIF ( + 0, 61 + - + 13 - + COUNT( * ) ) * + 21 + - 3 WHEN + 98 THEN - CAST( NULL AS SIGNED ) + - ( SUM( DISTINCT + 81 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT + CASE 16 WHEN 68 - - - COUNT ( * ) / 47 - - COUNT ( * ) THEN 56 * - 42 * - 29 - + NULLIF ( + 0, 61 + - + 13 - + COUNT ( * ) ) * + 21 + - 3 WHEN + 98 THEN - CAST ( NULL AS INTEGER ) + - ( SUM ( DISTINCT + 81 ) ) END
----
NULL

query I rowsort
SELECT - 41 * + + 59 * 41 AS col2
----
-99179

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL - + CASE + - 79 WHEN + COUNT( * ) * + 75 * - 71 THEN + 28 WHEN 83 THEN + 44 ELSE NULL END * - COUNT( * ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL - + CASE + - 79 WHEN + COUNT ( * ) * + 75 * - 71 THEN + 28 WHEN 83 THEN + 44 ELSE NULL END * - COUNT ( * ) + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT ALL 85 DIV 24
----
3

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL 85 / 24
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5413
SELECT ALL + 12 * + 22 + - COALESCE ( ( + - COUNT( * ) ), - + 14 DIV - COUNT( * ), - 58 )
----
265

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL + 12 * + 22 + - COALESCE ( ( + - COUNT ( * ) ), - + 14 / - COUNT ( * ), - 58 )
----
265

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT - + 92 + - - 31 DIV - 71 * 45 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5414
SELECT - + 92 + - - 31 / - 71 * 45 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5415
SELECT - COUNT( * ) * + 21 + NULLIF ( - ( 97 ), + 40 + + COUNT( * ) ), - ( 21 ) AS col0
----
-118
-21

skipif mysql # not compatible
query II rowsort label-5415
SELECT - COUNT ( * ) * + 21 + NULLIF ( - ( 97 ), + 40 + + COUNT ( * ) ), - ( 21 ) AS col0
----
-118
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5416
SELECT - + 57 * + + COALESCE ( + 77, - 56 DIV 64 ) * + SUM( - 98 ) col1
----
430122

skipif mysql # not compatible
query I rowsort label-5416
SELECT - + 57 * + + COALESCE ( + 77, - 56 / 64 ) * + SUM ( - 98 ) col1
----
430122

query II rowsort
SELECT + COALESCE ( - 39, 91 + + 26 ) + - 37 col1, 75 AS col2
----
-76
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT - CASE + ( - MIN( COALESCE ( + 49, 53, - - 47 - + + 77 + + + 71 ) ) ) WHEN - - 7 * + 34 * + 6 * + - ( + + 66 ) + - - MIN( - ( 54 ) ) THEN + - 24 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT - CASE + ( - MIN ( COALESCE ( + 49, 53, - - 47 - + + 77 + + + 71 ) ) ) WHEN - - 7 * + 34 * + 6 * + - ( + + 66 ) + - - MIN ( - ( 54 ) ) THEN + - 24 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - NULLIF ( + - 58, - + ( + - 81 ) * - - 41 + - + 72 + - - COUNT( * ) )
----
58

skipif mysql # not compatible
query I rowsort label-5419
SELECT - NULLIF ( + - 58, - + ( + - 81 ) * - - 41 + - + 72 + - - COUNT ( * ) )
----
58

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

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

query I rowsort
SELECT ALL 11 - - 70
----
81

query I rowsort
SELECT ALL 75 - - 87 * + 81 AS col2
----
7122

query II rowsort
SELECT DISTINCT 53, - 20 - - + 35 AS col0
----
53
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5424
SELECT + 39 DIV - 35 col1
----
-1

skipif mysql # not compatible
query I rowsort label-5424
SELECT + 39 / - 35 col1
----
-1

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

skipif mysql # not compatible
query II rowsort label-5425
SELECT - 59 AS col0, MIN ( DISTINCT + + 32 ) AS col0
----
-59
32

query I rowsort
SELECT 81 * + 14 AS col2
----
1134

onlyif mysql # DIV for integer division: 
query I rowsort label-5427
SELECT 88 DIV 45 col2
----
1

skipif mysql # not compatible
query I rowsort label-5427
SELECT 88 / 45 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT DISTINCT COUNT( * ) * 39 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT COUNT ( * ) * 39 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL - + COALESCE ( + COUNT( * ), + + ( COUNT( ALL + 26 ) ), + 20, - + COALESCE ( + - 82, + 20 * - + 32 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL - + COALESCE ( + COUNT ( * ), + + ( COUNT ( ALL + 26 ) ), + 20, - + COALESCE ( + - 82, + 20 * - + 32 ) ) AS col2
----
-1

query I rowsort
SELECT - 98 * - 21
----
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT - - 94 * - - 85 + + 70 + + - MIN( ALL + CASE + + CASE + + 17 WHEN - 90 THEN 47 * 83 WHEN 83 * - - 77 - + 12 THEN NULL ELSE NULL END WHEN - 7 THEN NULL ELSE + 49 + - 0 END ) * - 55 AS col2
----
10755

skipif mysql # not compatible
query I rowsort label-5431
SELECT - - 94 * - - 85 + + 70 + + - MIN ( ALL + CASE + + CASE + + 17 WHEN - 90 THEN 47 * 83 WHEN 83 * - - 77 - + 12 THEN NULL ELSE NULL END WHEN - 7 THEN NULL ELSE + 49 + - 0 END ) * - 55 AS col2
----
10755

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT 13 - - 79 + + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-5432
SELECT 13 - - 79 + + + COUNT ( * )
----
93

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

skipif mysql # not compatible
query I rowsort label-5433
SELECT CAST ( NULL AS INTEGER ) / - - 73 AS col2
----
NULL

query I rowsort
SELECT ALL - 41 + + - 86 * + ( + - 50 ) * + 53
----
227859

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT MIN( DISTINCT COALESCE ( - - 94, - 30 ) )
----
94

skipif mysql # not compatible
query I rowsort label-5435
SELECT MIN ( DISTINCT COALESCE ( - - 94, - 30 ) )
----
94

query I rowsort
SELECT - - 14 * + 97 - - ( - 86 ) * + + 98
----
-7070

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5437
SELECT ( MAX( 73 ) ) * 84 DIV - NULLIF ( + + 45, + 49 ) + + 12 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-5437
SELECT ( MAX ( 73 ) ) * 84 / - NULLIF ( + + 45, + 49 ) + + 12 AS col1
----
-124

query I rowsort
SELECT 86 * - 4 - ( - 0 ) - - 6 + + 5 + + + 80 + - 25 col2
----
-278

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT - 97 * + + COUNT( * ) * ( - ( - 74 ) ) + + 18 + + 29 AS col2
----
-7131

skipif mysql # not compatible
query I rowsort label-5439
SELECT - 97 * + + COUNT ( * ) * ( - ( - 74 ) ) + + 18 + + 29 AS col2
----
-7131

onlyif mysql # aggregate syntax: 
query II rowsort label-5440
SELECT DISTINCT - 23, COUNT( * ) * + 25 + + 8 AS col0
----
-23
33

skipif mysql # not compatible
query II rowsort label-5440
SELECT DISTINCT - 23, COUNT ( * ) * + 25 + + 8 AS col0
----
-23
33

query I rowsort
SELECT 72 - + 92 + + + CASE + + 90 WHEN - - 81 THEN NULL ELSE + - 31 END * 4 * + 96 AS col1
----
-11924

query I rowsort
SELECT ALL - 18 - + + 87 * + 0 AS col2
----
-18

query I rowsort
SELECT 53 + + 43
----
96

query I rowsort
SELECT ( - 71 ) * - + 46 AS col1
----
3266

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT DISTINCT + 46 * 33 * MIN( 5 ) AS col1
----
7590

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT + 46 * 33 * MIN ( 5 ) AS col1
----
7590

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT 62 + 84 - 57 DIV ( + 40 ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-5446
SELECT 62 + 84 - 57 / ( + 40 ) AS col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT MAX( - 6 ) - + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-5447
SELECT MAX ( - 6 ) - + COUNT ( * )
----
-7

query I rowsort
SELECT 1 * + 57
----
57

query I rowsort
SELECT 72 + 49
----
121

query I rowsort
SELECT 7 - - 44
----
51

query I rowsort
SELECT 78 * + 4 * - 7 AS col0
----
-2184

query I rowsort
SELECT DISTINCT - 46 * + 34
----
-1564

query I rowsort
SELECT ALL - 28 * - - 42 col1
----
-1176

onlyif mysql # aggregate syntax: 
query II rowsort label-5454
SELECT 16 + + - COUNT( * ), - 69 AS col1
----
15
-69

skipif mysql # not compatible
query II rowsort label-5454
SELECT 16 + + - COUNT ( * ), - 69 AS col1
----
15
-69

query I rowsort
SELECT ALL 17 + + ( - 1 ) + COALESCE ( 76, - 87 ) AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5456
SELECT ALL - 47 * - CAST( NULL AS SIGNED ) col1, 66 + - 14 AS col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-5456
SELECT ALL - 47 * - CAST ( NULL AS INTEGER ) col1, 66 + - 14 AS col2
----
NULL
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5457
SELECT CASE + 72 WHEN - 7 THEN 13 * - 95 - - + NULLIF ( + 5, + COUNT( * ) ) * - MIN( + 11 ) WHEN CAST( NULL AS DECIMAL ) * - MAX( - 13 ) / COUNT( * ) THEN NULL END AS col0, ( + 25 ) * COUNT( * )
----
NULL
25

skipif mysql # not compatible
query II rowsort label-5457
SELECT CASE + 72 WHEN - 7 THEN 13 * - 95 - - + NULLIF ( + 5, + COUNT ( * ) ) * - MIN ( + 11 ) WHEN CAST ( NULL AS REAL ) * - MAX ( - 13 ) / COUNT ( * ) THEN NULL END AS col0, ( + 25 ) * COUNT ( * )
----
NULL
25

query I rowsort
SELECT - - 82 * - 11 + 88 - + 54 * 36 * + 94
----
-183550

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT COALESCE ( 46, + 47 * + SUM( - - 89 ) - - 70 + - 21 * ( 41 ) * + - SUM( ALL + ( + 72 ) ) ) * 25
----
1150

skipif mysql # not compatible
query I rowsort label-5459
SELECT COALESCE ( 46, + 47 * + SUM ( - - 89 ) - - 70 + - 21 * ( 41 ) * + - SUM ( ALL + ( + 72 ) ) ) * 25
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL + 12 * COUNT( * ) + - 11 + 15
----
16

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL + 12 * COUNT ( * ) + - 11 + 15
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5461
SELECT - - 53 * 74 + - ( + 43 ) + + 52 * - COALESCE ( + + 23, 35 DIV - 54 + + NULLIF ( 29, - 33 ) * - 74 * - + 58, - - 40 ) + + CAST( 60 AS SIGNED ) + 36 * COALESCE ( NULLIF ( 28, + COUNT( * ) ), + 46 ) AS col0
----
3751

skipif mysql # not compatible
query I rowsort label-5461
SELECT - - 53 * 74 + - ( + 43 ) + + 52 * - COALESCE ( + + 23, 35 / - 54 + + NULLIF ( 29, - 33 ) * - 74 * - + 58, - - 40 ) + + CAST ( 60 AS INTEGER ) + 36 * COALESCE ( NULLIF ( 28, + COUNT ( * ) ), + 46 ) AS col0
----
3751

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT - MIN( 29 ) * - - 83 AS col2
----
-2407

skipif mysql # not compatible
query I rowsort label-5462
SELECT - MIN ( 29 ) * - - 83 AS col2
----
-2407

query I rowsort
SELECT 40 * 20 + - 37
----
763

query I rowsort
SELECT + 95 + + - 2 AS col0
----
93

query I rowsort
SELECT DISTINCT - 29 - - + ( - 96 ) AS col0
----
-125

query II rowsort
SELECT + 52 * + 85 col1, + 12 AS col1
----
4420
12

query I rowsort
SELECT ALL - 22 * - 73
----
1606

onlyif mysql # DIV for integer division: 
query I rowsort label-5468
SELECT 63 + 18 + 57 DIV + + 31
----
82

skipif mysql # not compatible
query I rowsort label-5468
SELECT 63 + 18 + 57 / + + 31
----
82

query I rowsort
SELECT DISTINCT 99 - + - 64
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT 72 + COUNT( DISTINCT 50 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5470
SELECT 72 + COUNT ( DISTINCT 50 ) AS col1
----
73

query I rowsort
SELECT ALL - 32 * - + 32
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT COUNT( * ) * - 44 * 65
----
-2860

skipif mysql # not compatible
query I rowsort label-5472
SELECT COUNT ( * ) * - 44 * 65
----
-2860

onlyif mysql # DIV for integer division: 
query I rowsort label-5473
SELECT - 98 DIV + 93
----
-1

skipif mysql # not compatible
query I rowsort label-5473
SELECT - 98 / + 93
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT - COUNT( * ) * + - 22 * COUNT( * ) col1
----
22

skipif mysql # not compatible
query I rowsort label-5474
SELECT - COUNT ( * ) * + - 22 * COUNT ( * ) col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - 16 + + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5475
SELECT - 16 + + COUNT ( * ) AS col2
----
-15

query I rowsort
SELECT ALL NULLIF ( + + 70, - 56 ) AS col2
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT ALL + CASE - ( + - 70 ) WHEN + 11 THEN NULL ELSE + COUNT( * ) * - 60 * - 37 END + - 36 - - 15 - MIN( ALL - 24 )
----
2223

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL + CASE - ( + - 70 ) WHEN + 11 THEN NULL ELSE + COUNT ( * ) * - 60 * - 37 END + - 36 - - 15 - MIN ( ALL - 24 )
----
2223

onlyif mysql # DIV for integer division: 
query II rowsort label-5479
SELECT - ( + - 26 ) * + 95, 75 * - 3 DIV + 76 DIV 59 * + 70 AS col0
----
2470
0

skipif mysql # not compatible
query II rowsort label-5479
SELECT - ( + - 26 ) * + 95, 75 * - 3 / + 76 / 59 * + 70 AS col0
----
2470
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5480
SELECT ALL + 88 DIV 47 * 18
----
18

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL + 88 / 47 * 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT DISTINCT NULLIF ( 18, - - 27 + - CASE - - 94 WHEN - - 65 THEN + 20 END * + + 31 ) + - NULLIF ( - 41, + 81 + - 15 ) + COUNT( * ) col1
----
60

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT NULLIF ( 18, - - 27 + - CASE - - 94 WHEN - - 65 THEN + 20 END * + + 31 ) + - NULLIF ( - 41, + 81 + - 15 ) + COUNT ( * ) col1
----
60

query II rowsort
SELECT - 15 col1, 9
----
-15
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5484
SELECT - ( - + 28 ) - - CAST( + ( - + 37 ) AS SIGNED ) + - + 22 * + - 85 * - NULLIF ( - COUNT( * ), 76 * - 58 + + 8 - - - SUM( ( - COALESCE ( 67, ( - 95 ) ) ) ) * - 40 )
----
1861

skipif mysql # not compatible
query I rowsort label-5484
SELECT - ( - + 28 ) - - CAST ( + ( - + 37 ) AS INTEGER ) + - + 22 * + - 85 * - NULLIF ( - COUNT ( * ), 76 * - 58 + + 8 - - - SUM ( ( - COALESCE ( 67, ( - 95 ) ) ) ) * - 40 )
----
1861

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

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

query I rowsort
SELECT + 8 * - 49
----
-392

query I rowsort
SELECT ALL - 97 + 5
----
-92

query I rowsort
SELECT - + 7 col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5489
SELECT - CAST( + 62 AS SIGNED ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-5489
SELECT - CAST ( + 62 AS INTEGER ) AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT - + NULLIF ( + 64, - 74 ) * 52 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT - + NULLIF ( + 64, - 74 ) * 52 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5491
SELECT - - 84, 99 + + 66 + - 15 + + + MAX( ALL + - 62 ) AS col0
----
84
88

skipif mysql # not compatible
query II rowsort label-5491
SELECT - - 84, 99 + + 66 + - 15 + + + MAX ( ALL + - 62 ) AS col0
----
84
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5492
SELECT ALL 42 AS col2, - 82 * + COUNT( * )
----
42
-82

skipif mysql # not compatible
query II rowsort label-5492
SELECT ALL 42 AS col2, - 82 * + COUNT ( * )
----
42
-82

query I rowsort
SELECT + 21 - 75 - ( + 15 ) AS col2
----
-69

query I rowsort
SELECT NULLIF ( + 46, - 78 + + 98 ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5495
SELECT 47 * 71 - - CAST( - 19 AS SIGNED ) * + - COUNT( * ) + - CAST( + + 38 AS SIGNED ) * - 98 + + 83 DIV - - 82 - - ( 22 ) + - 6 * - 60 - - - 19, SUM( - ( + 63 ) ) AS col0
----
7444
-63

skipif mysql # not compatible
query II rowsort label-5495
SELECT 47 * 71 - - CAST ( - 19 AS INTEGER ) * + - COUNT ( * ) + - CAST ( + + 38 AS INTEGER ) * - 98 + + 83 / - - 82 - - ( 22 ) + - 6 * - 60 - - - 19, SUM ( - ( + 63 ) ) AS col0
----
7444
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT - 73 * MIN( DISTINCT - 65 ) - + + 98 * 94 AS col0
----
-4467

skipif mysql # not compatible
query I rowsort label-5496
SELECT - 73 * MIN ( DISTINCT - 65 ) - + + 98 * 94 AS col0
----
-4467

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT COALESCE ( COALESCE ( COUNT( + 68 ), - 13 + 65, 33 - + 42 + - + 94 + - - 55 * - ( + - 87 ) * - 17 * + 78 ), - 68 * 76 * 20, + 64 - 66 )
----
1

skipif mysql # not compatible
query I rowsort label-5497
SELECT COALESCE ( COALESCE ( COUNT ( + 68 ), - 13 + 65, 33 - + 42 + - + 94 + - - 55 * - ( + - 87 ) * - 17 * + 78 ), - 68 * 76 * 20, + 64 - 66 )
----
1

query I rowsort
SELECT - - 63 * - - 63 + - 90 + - + 73
----
3806

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + - COUNT( * ) - - + 71 + + - 59 - - + 97 * - - 0 - + + 80 * + - 37 col0
----
2971

skipif mysql # not compatible
query I rowsort label-5499
SELECT + - COUNT ( * ) - - + 71 + + - 59 - - + 97 * - - 0 - + + 80 * + - 37 col0
----
2971

query II rowsort
SELECT DISTINCT 58 * 57 * + - 20 AS col0, - 43 AS col2
----
-66120
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5501
SELECT + + COUNT( * ) DIV 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5501
SELECT + + COUNT ( * ) / 16 AS col1
----
0

query I rowsort
SELECT ALL 20 * 87
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT + MIN( ALL - + 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5503
SELECT + MIN ( ALL - + 13 ) AS col0
----
-13

query I rowsort
SELECT + 17 * - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5505
SELECT - COUNT( * ) * + COUNT( ALL + 45 ) / + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5505
SELECT - COUNT ( * ) * + COUNT ( ALL + 45 ) / + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - 25
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5506
SELECT + 34 + 12 DIV - COALESCE ( - - 29, - + 99 * + 39 ) + + - COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5506
SELECT + 34 + 12 / - COALESCE ( - - 29, - + 99 * + 39 ) + + - COUNT ( * ) AS col1
----
33

query II rowsort
SELECT + 37 AS col2, - ( + NULLIF ( ( + - 92 ), + 7 ) ) * COALESCE ( + ( 59 ), + + 37, + 48 )
----
37
5428

query I rowsort
SELECT COALESCE ( - - 16, + 70 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT + ( SUM( 81 ) ) + - 39 col1
----
42

skipif mysql # not compatible
query I rowsort label-5509
SELECT + ( SUM ( 81 ) ) + - 39 col1
----
42

query II rowsort
SELECT ALL + 46 AS col2, - 92 AS col2
----
46
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5511
SELECT + SUM( DISTINCT - 9 ) * - ( + CASE WHEN NULL >= COUNT( * ) THEN - ( - + 10 ) * + 87 END ) - + 75 * - 1, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5511
SELECT + SUM ( DISTINCT - 9 ) * - ( + CASE WHEN NULL >= COUNT ( * ) THEN - ( - + 10 ) * + 87 END ) - + 75 * - 1, + COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT ALL 0 * + + 22 + + + 0
----
0

query I rowsort
SELECT ALL + 57 * - 57 + - 22 AS col1
----
-3271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5514
SELECT CAST( 57 AS SIGNED ) * - - COUNT( * ) - + 73 AS col1, + SUM( ALL + 1 ) * + ( + 23 ) + + 13 AS col2
----
-16
36

skipif mysql # not compatible
query II rowsort label-5514
SELECT CAST ( 57 AS INTEGER ) * - - COUNT ( * ) - + 73 AS col1, + SUM ( ALL + 1 ) * + ( + 23 ) + + 13 AS col2
----
-16
36

query I rowsort
SELECT ALL 45 * + ( - 99 )
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT MIN( DISTINCT 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5516
SELECT MIN ( DISTINCT 66 ) AS col0
----
66

query I rowsort
SELECT ALL - 29 + - - 79 * + 6
----
445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5518
SELECT + 44 + + COALESCE ( COALESCE ( + - 44, - 90 ), - 97 ) * COALESCE ( 91, + + COALESCE ( + COUNT( * ), + - 38 + + + 65 * + 25 DIV - 97 ) ) DIV - 92 + + 8 + + + NULLIF ( + - 78, - 53 )
----
17

skipif mysql # not compatible
query I rowsort label-5518
SELECT + 44 + + COALESCE ( COALESCE ( + - 44, - 90 ), - 97 ) * COALESCE ( 91, + + COALESCE ( + COUNT ( * ), + - 38 + + + 65 * + 25 / - 97 ) ) / - 92 + + 8 + + + NULLIF ( + - 78, - 53 )
----
17

query I rowsort
SELECT + ( + - COALESCE ( - 97, + 38 ) ) + + 27 col2
----
124

query I rowsort
SELECT - 97 + - + 23 * - - 39
----
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT - 2 - - COUNT( ALL + - 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-5521
SELECT - 2 - - COUNT ( ALL + - 96 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5522
SELECT DISTINCT + 47 DIV + + 1 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT + 47 / + + 1 AS col2
----
47

query I rowsort
SELECT - - 42 + 86
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5524
SELECT DISTINCT - + CASE + 49 WHEN - + 96 + + 37 THEN + - SUM( DISTINCT - 97 ) + - + 80 + + 96 - - 0 * - - 54 + + ( + COALESCE ( 47, - 78, - 84 * + - 17 * - + 85 ) ) * - 23 ELSE - 10 * ( + CASE - 13 WHEN - 19 * - MAX( DISTINCT + 33 ) THEN - 13 WHEN + 90 * + 49 THEN NULL ELSE ( 32 ) * - ( - ( ( 74 ) ) ) END ) + + 10 END + + CAST( + COALESCE ( + NULLIF ( + COUNT( * ), 14 ), + 95 ) - + 22 AS SIGNED ) AS col2
----
23649

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT - + CASE + 49 WHEN - + 96 + + 37 THEN + - SUM ( DISTINCT - 97 ) + - + 80 + + 96 - - 0 * - - 54 + + ( + COALESCE ( 47, - 78, - 84 * + - 17 * - + 85 ) ) * - 23 ELSE - 10 * ( + CASE - 13 WHEN - 19 * - MAX ( DISTINCT + 33 ) THEN - 13 WHEN + 90 * + 49 THEN NULL ELSE ( 32 ) * - ( - ( ( 74 ) ) ) END ) + + 10 END + + CAST ( + COALESCE ( + NULLIF ( + COUNT ( * ), 14 ), + 95 ) - + 22 AS INTEGER ) AS col2
----
23649

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

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

query I rowsort
SELECT ALL - 56 - 39 AS col2
----
-95

query I rowsort
SELECT - 5 + - 24
----
-29

query II rowsort
SELECT ALL + 42 AS col2, 40
----
42
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5529
SELECT DISTINCT + + ( 28 ) DIV 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT + + ( 28 ) / 30 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT - COUNT( * ) + - - 12 * + - 26 + - - 16
----
-297

skipif mysql # not compatible
query I rowsort label-5530
SELECT - COUNT ( * ) + - - 12 * + - 26 + - - 16
----
-297

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5531
SELECT DISTINCT - 19 AS col0, 91 - 15 DIV - COUNT( * )
----
-19
106

skipif mysql # not compatible
query II rowsort label-5531
SELECT DISTINCT - 19 AS col0, 91 - 15 / - COUNT ( * )
----
-19
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT - - CASE 0 WHEN + 59 THEN + + ( - 9 ) * - COUNT( * ) END * 27 + + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5532
SELECT - - CASE 0 WHEN + 59 THEN + + ( - 9 ) * - COUNT ( * ) END * 27 + + + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT - + 84 * + + COUNT( * ) + + - 41 - - + 5 col0
----
-120

skipif mysql # not compatible
query I rowsort label-5533
SELECT - + 84 * + + COUNT ( * ) + + - 41 - - + 5 col0
----
-120

query I rowsort
SELECT - 80 + 23
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5535
SELECT - 10 AS col2, + 59 * CAST( NULL AS DECIMAL ) * - ( + 77 ) col1
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-5535
SELECT - 10 AS col2, + 59 * CAST ( NULL AS REAL ) * - ( + 77 ) col1
----
-10
NULL

query II rowsort
SELECT - 44 col1, ( + 19 ) AS col2
----
-44
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT - 7 * ( - COALESCE ( + COUNT( * ), COUNT( * ) * + + 18 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5537
SELECT - 7 * ( - COALESCE ( + COUNT ( * ), COUNT ( * ) * + + 18 ) ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5538
SELECT ALL + 60 col1, - COUNT( * )
----
60
-1

skipif mysql # not compatible
query II rowsort label-5538
SELECT ALL + 60 col1, - COUNT ( * )
----
60
-1

query I rowsort
SELECT DISTINCT + ( 34 ) * NULLIF ( 1, + 93 ) AS col0
----
34

query I rowsort
SELECT - + 32 + 17 AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5541
SELECT ALL + COUNT( * ), - CAST( + 94 AS DECIMAL ) / + CASE + 3 WHEN + - CASE 24 WHEN 49 * - 0 THEN NULL WHEN + + 27 THEN 44 ELSE NULL END * + + 10 THEN - - 46 - + 84 + 41 + 18 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5541
SELECT ALL + COUNT ( * ), - CAST ( + 94 AS REAL ) / + CASE + 3 WHEN + - CASE 24 WHEN 49 * - 0 THEN NULL WHEN + + 27 THEN 44 ELSE NULL END * + + 10 THEN - - 46 - + 84 + 41 + 18 END AS col2
----
1
NULL

query I rowsort
SELECT + 64 * - 0 * - 18 * 68 + + 60 AS col0
----
60

query I rowsort
SELECT - 58 + + 3 - - 68
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5544
SELECT + 3 * - ( + 62 ) DIV 29 * - 25 + COALESCE ( + - 67, 96, + 89 * + COUNT( * ) ) * + + 32 + - - 7 + + + 89 + + 90 DIV 4 + + 69 + - COALESCE ( + - 18, + + 45, - 18, CAST( NULL AS SIGNED ) ) + - - 96 + 49 - + + 38 DIV 12, 56 + + 58 AS col0
----
-1647
114

skipif mysql # not compatible
query II rowsort label-5544
SELECT + 3 * - ( + 62 ) / 29 * - 25 + COALESCE ( + - 67, 96, + 89 * + COUNT ( * ) ) * + + 32 + - - 7 + + + 89 + + 90 / 4 + + 69 + - COALESCE ( + - 18, + + 45, - 18, CAST ( NULL AS INTEGER ) ) + - - 96 + 49 - + + 38 / 12, 56 + + 58 AS col0
----
-1647
114

query I rowsort
SELECT ( - 37 ) - - 52 - - 3 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT 60 * + NULLIF ( + + 80, + + 31 * - CASE - COUNT( * ) WHEN + 85 THEN NULL WHEN ( + 65 ) THEN + - 27 END ) + - - 74 AS col0
----
4874

skipif mysql # not compatible
query I rowsort label-5546
SELECT 60 * + NULLIF ( + + 80, + + 31 * - CASE - COUNT ( * ) WHEN + 85 THEN NULL WHEN ( + 65 ) THEN + - 27 END ) + - - 74 AS col0
----
4874

onlyif mysql # DIV for integer division: 
query I rowsort label-5547
SELECT ALL + 5 DIV - 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL + 5 / - 10 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT CASE - COUNT( * ) WHEN - + 38 * SUM( DISTINCT + 78 ) + - 44 - + ( - 77 ) + + 48 * CASE + 40 WHEN + 57 + - MAX( DISTINCT - 53 ) + - + COALESCE ( + 96, + + 29, + 29 / + + 19 ) * + + COALESCE ( - - 24, + 16 ) * - 15 THEN - - 51 * - 53 + 68 + - - COUNT( * ) + + 63 END + - 76 THEN 49 END / 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT CASE - COUNT ( * ) WHEN - + 38 * SUM ( DISTINCT + 78 ) + - 44 - + ( - 77 ) + + 48 * CASE + 40 WHEN + 57 + - MAX ( DISTINCT - 53 ) + - + COALESCE ( + 96, + + 29, + 29 / + + 19 ) * + + COALESCE ( - - 24, + 16 ) * - 15 THEN - - 51 * - 53 + 68 + - - COUNT ( * ) + + 63 END + - 76 THEN 49 END / 98
----
NULL

query I rowsort
SELECT ( + 7 ) + + 61 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT + 87 * + + COALESCE ( + + COUNT( * ), - 79 * + 14 * - - 41 )
----
87

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT + 87 * + + COALESCE ( + + COUNT ( * ), - 79 * + 14 * - - 41 )
----
87

query I rowsort
SELECT ALL 69 + ( - 48 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT COUNT( DISTINCT - ( 65 ) ) + ( - + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-5552
SELECT COUNT ( DISTINCT - ( 65 ) ) + ( - + 0 )
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5554
SELECT MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) * + 49 * CASE + 63 WHEN + + 64 THEN NULL WHEN - 60 THEN - CASE + 84 WHEN - ( + ( 61 ) ) + 19 THEN - + 98 + - + 53 + + + 39 * - 27 + - + 44 ELSE NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * + 49 * CASE + 63 WHEN + + 64 THEN NULL WHEN - 60 THEN - CASE + 84 WHEN - ( + ( 61 ) ) + 19 THEN - + 98 + - + 53 + + + 39 * - 27 + - + 44 ELSE NULL END ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT ( + 26 ) * + 22 * 55 AS col0
----
31460

query I rowsort
SELECT ALL + 25 * - 98
----
-2450

query II rowsort
SELECT + 56 - - ( + ( - 1 ) ) + 1 + - + 76 * + 92 AS col1, 93 + + + 88
----
-6936
181

query II rowsort
SELECT 93 - 58, + 39 * 11 + + - 41 AS col2
----
35
388

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT - 83 + CASE 61 WHEN + ( + 52 ) THEN 76 * - 63 * + COUNT( * ) / - 49 WHEN 36 THEN - 30 * + 11 * - 60 / - - 64 * COUNT( * ) END * - 42 + - + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT - 83 + CASE 61 WHEN + ( + 52 ) THEN 76 * - 63 * + COUNT ( * ) / - 49 WHEN 36 THEN - 30 * + 11 * - 60 / - - 64 * COUNT ( * ) END * - 42 + - + 36 AS col1
----
NULL

query I rowsort
SELECT ALL 52 * - 45 - - 27
----
-2313

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT DISTINCT - + 8 DIV + ( - 38 ) * + - 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT - + 8 / + ( - 38 ) * + - 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5562
SELECT ALL - MAX( ALL + 85 ), - 13 + - 32 + + 39 AS col0
----
-85
-6

skipif mysql # not compatible
query II rowsort label-5562
SELECT ALL - MAX ( ALL + 85 ), - 13 + - 32 + + 39 AS col0
----
-85
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT ALL - - NULLIF ( 12, + COALESCE ( CASE - 58 WHEN + MIN( - - 61 ) + + 55 THEN + - 31 WHEN - - 71 THEN NULL WHEN - - 84 * - 94 THEN NULL WHEN + ( - 80 ) + NULLIF ( + COUNT( DISTINCT - 63 ), + COUNT( * ) / - 75 ) THEN NULL END, + 13 ) * COUNT( * ) ) * + 1 + + 33 + 98 col1
----
143

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL - - NULLIF ( 12, + COALESCE ( CASE - 58 WHEN + MIN ( - - 61 ) + + 55 THEN + - 31 WHEN - - 71 THEN NULL WHEN - - 84 * - 94 THEN NULL WHEN + ( - 80 ) + NULLIF ( + COUNT ( DISTINCT - 63 ), + COUNT ( * ) / - 75 ) THEN NULL END, + 13 ) * COUNT ( * ) ) * + 1 + + 33 + 98 col1
----
143

query I rowsort
SELECT ( - 38 ) * - 55 * 12 AS col1
----
25080

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT 95 * - SUM( ALL + 51 )
----
-4845

skipif mysql # not compatible
query I rowsort label-5565
SELECT 95 * - SUM ( ALL + 51 )
----
-4845

query I rowsort
SELECT + 41 * 11 AS col1
----
451

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL - + NULLIF ( + COUNT( * ), - COUNT( * ) * NULLIF ( - 85, + ( - 11 ) * + MAX( + - 72 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL - + NULLIF ( + COUNT ( * ), - COUNT ( * ) * NULLIF ( - 85, + ( - 11 ) * + MAX ( + - 72 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT - MIN( ALL + + 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-5568
SELECT - MIN ( ALL + + 63 ) AS col2
----
-63

query I rowsort
SELECT + ( - 36 ) * - 55 + - 81 AS col0
----
1899

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

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

query I rowsort
SELECT 72 * 53
----
3816

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT COUNT( * ) + 49 + - 68
----
-18

skipif mysql # not compatible
query I rowsort label-5572
SELECT COUNT ( * ) + 49 + - 68
----
-18

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

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

query I rowsort
SELECT DISTINCT + 19 * + 96 AS col2
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL + MAX( - 27 ) + + MAX( DISTINCT - + 73 ) AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL + MAX ( - 27 ) + + MAX ( DISTINCT - + 73 ) AS col0
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT ALL + 1 * + COUNT( * ) * + 77 col2, - 54 AS col1
----
77
-54

skipif mysql # not compatible
query II rowsort label-5576
SELECT ALL + 1 * + COUNT ( * ) * + 77 col2, - 54 AS col1
----
77
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-5577
SELECT DISTINCT - 46 + - 10 + - - 31 + - 73 DIV - 8
----
-16

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT - 46 + - 10 + - - 31 + - 73 / - 8
----
-16

query II rowsort
SELECT ALL - 71 AS col0, 83
----
-71
83

query I rowsort
SELECT ALL - 29 + - 81 AS col1
----
-110

query II rowsort
SELECT + 97 AS col2, + 65
----
97
65

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

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

query I rowsort
SELECT 35 * + + 88 AS col0
----
3080

query II rowsort
SELECT ALL 91 * + 66 * 2 AS col1, 59 AS col2
----
12012
59

query I rowsort
SELECT 6 + - 37 AS col2
----
-31

query I rowsort
SELECT ALL - 66 - - - 80 + - + 15
----
-161

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5587
SELECT ALL - COUNT( * ) * - + SUM( 74 ) AS col1, 50 DIV 31 * + COUNT( * ) AS col0
----
74
1

skipif mysql # not compatible
query II rowsort label-5587
SELECT ALL - COUNT ( * ) * - + SUM ( 74 ) AS col1, 50 / 31 * + COUNT ( * ) AS col0
----
74
1

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

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT SUM ( - ( 88 ) )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT CAST( + ( + 76 ) AS SIGNED ) + COALESCE ( - 2, 91 )
----
74

skipif mysql # not compatible
query I rowsort label-5589
SELECT CAST ( + ( + 76 ) AS INTEGER ) + COALESCE ( - 2, 91 )
----
74

query I rowsort
SELECT ALL 57 - - 62
----
119

query I rowsort
SELECT 69 * - 63
----
-4347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT - 40 + - 3 + 82 * - CASE - 49 WHEN + 76 * + ( + 83 ) THEN + CASE 66 WHEN + ( - 52 ) THEN + COUNT( * ) WHEN + + CASE + 5 WHEN - 69 * - - 82 / - + 20 * - - 72 / - 15 + ( - ( - 33 ) ) THEN NULL WHEN - 14 * - 35 + - 31 * - SUM( ALL + 54 ) THEN NULL ELSE 71 END THEN NULL END END * CAST( NULL AS SIGNED ) + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT - 40 + - 3 + 82 * - CASE - 49 WHEN + 76 * + ( + 83 ) THEN + CASE 66 WHEN + ( - 52 ) THEN + COUNT ( * ) WHEN + + CASE + 5 WHEN - 69 * - - 82 / - + 20 * - - 72 / - 15 + ( - ( - 33 ) ) THEN NULL WHEN - 14 * - 35 + - 31 * - SUM ( ALL + 54 ) THEN NULL ELSE 71 END THEN NULL END END * CAST ( NULL AS INTEGER ) + + 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5593
SELECT ALL CASE + 15 WHEN + AVG ( - 19 ) * - + 28 / - - 15 - - 56 THEN + + MIN( CAST( + 13 AS SIGNED ) ) * + MIN( ALL + 51 ) + + - CAST( NULL AS SIGNED ) WHEN 51 * + - SUM( + - 92 ) THEN + 31 * - - 70 + + + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL CASE + 15 WHEN + AVG ( - 19 ) * - + 28 / - - 15 - - 56 THEN + + MIN ( CAST ( + 13 AS INTEGER ) ) * + MIN ( ALL + 51 ) + + - CAST ( NULL AS INTEGER ) WHEN 51 * + - SUM ( + - 92 ) THEN + 31 * - - 70 + + + COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5594
SELECT 61 + + 11 * 63 + + ( MAX( ALL + - 7 ) ) * + - CASE + 13 WHEN + MAX( + CAST( NULL AS SIGNED ) ) + - 97 * - 58 * - 78 THEN NULL WHEN 79 THEN NULL ELSE + - 47 END + - + 8 AS col0
----
417

skipif mysql # not compatible
query I rowsort label-5594
SELECT 61 + + 11 * 63 + + ( MAX ( ALL + - 7 ) ) * + - CASE + 13 WHEN + MAX ( + CAST ( NULL AS INTEGER ) ) + - 97 * - 58 * - 78 THEN NULL WHEN 79 THEN NULL ELSE + - 47 END + - + 8 AS col0
----
417

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT + MIN( ALL - + 57 ) * - 72 AS col2
----
4104

skipif mysql # not compatible
query I rowsort label-5595
SELECT + MIN ( ALL - + 57 ) * - 72 AS col2
----
4104

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

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

query I rowsort
SELECT - 80 * - 54 AS col0
----
4320

query I rowsort
SELECT ALL - 13 * 90
----
-1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5599
SELECT ALL - COALESCE ( - 90, + 75 * + 28 - COUNT( * ) DIV - 64 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL - COALESCE ( - 90, + 75 * + 28 - COUNT ( * ) / - 64 ) AS col0
----
90

query I rowsort
SELECT ALL - 63 + + 50
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5601
SELECT - 26 / 95 / + + 23 * - CAST( NULL AS DECIMAL ) * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT - 26 / 95 / + + 23 * - CAST ( NULL AS REAL ) * 22
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT ALL COUNT( * ) + + 35 + - 76
----
-40

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL COUNT ( * ) + + 35 + - 76
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT + + COUNT( - 13 ) + NULLIF ( - - ( + 41 ), 28 ) * ( 16 ) + - 51 + + 37 + - - 54 col1
----
697

skipif mysql # not compatible
query I rowsort label-5604
SELECT + + COUNT ( - 13 ) + NULLIF ( - - ( + 41 ), 28 ) * ( 16 ) + - 51 + + 37 + - - 54 col1
----
697

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5605
SELECT + COUNT( + 30 ) * + 68, CAST( NULL AS DECIMAL ) + + - COUNT( * ) + - 54 AS col2
----
68
NULL

skipif mysql # not compatible
query II rowsort label-5605
SELECT + COUNT ( + 30 ) * + 68, CAST ( NULL AS REAL ) + + - COUNT ( * ) + - 54 AS col2
----
68
NULL

query I rowsort
SELECT DISTINCT 34 * - 54 * NULLIF ( - 57, + + 62 ) AS col2
----
104652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5607
SELECT ALL SUM( DISTINCT - + 67 ) * + 73 + - + 18 + + + 6 + 12 + - - MIN( + + 17 ) - - + CAST( - + 46 AS SIGNED ) * 8 * + 48 AS col1
----
-22538

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL SUM ( DISTINCT - + 67 ) * + 73 + - + 18 + + + 6 + 12 + - - MIN ( + + 17 ) - - + CAST ( - + 46 AS INTEGER ) * 8 * + 48 AS col1
----
-22538

query II rowsort
SELECT DISTINCT + ( + - 20 ), 74 AS col1
----
-20
74

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5610
SELECT - 19 * + 11 + + 37 DIV + 76 * - MIN( 28 )
----
-209

skipif mysql # not compatible
query I rowsort label-5610
SELECT - 19 * + 11 + + 37 / + 76 * - MIN ( 28 )
----
-209

query I rowsort
SELECT ALL ( 50 ) * + 54 + - - 7 + - 32 AS col2
----
2675

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT ALL - 42 DIV 24
----
-1

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - 42 / 24
----
-1

query I rowsort
SELECT - 33 + - ( - 2 ) AS col0
----
-31

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

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

query I rowsort
SELECT ALL + 70 * 31
----
2170

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT + 56 * - COUNT( * ) + - 35
----
-91

skipif mysql # not compatible
query I rowsort label-5616
SELECT + 56 * - COUNT ( * ) + - 35
----
-91

query I rowsort
SELECT - 91 + + 23 AS col0
----
-68

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5619
SELECT 71 * - 36 * - 95 + - COUNT( * ) + - COUNT( * ) DIV + ( - + COUNT( * ) ) AS col2
----
242820

skipif mysql # not compatible
query I rowsort label-5619
SELECT 71 * - 36 * - 95 + - COUNT ( * ) + - COUNT ( * ) / + ( - + COUNT ( * ) ) AS col2
----
242820

query I rowsort
SELECT - ( - 50 ) col0
----
50

query I rowsort
SELECT DISTINCT 86 * - - 30 + - 99
----
2481

onlyif mysql # aggregate syntax: 
query II rowsort label-5622
SELECT ALL - COUNT( - + 92 ) AS col1, - ( + - 76 ) AS col1
----
-1
76

skipif mysql # not compatible
query II rowsort label-5622
SELECT ALL - COUNT ( - + 92 ) AS col1, - ( + - 76 ) AS col1
----
-1
76

query I rowsort
SELECT - + 11 * + COALESCE ( + 10, + + 17 ) * + + 16 col0
----
-1760

query I rowsort
SELECT - + 53 * - 59 * - + 99 + + 17 AS col1
----
-309556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5625
SELECT ALL - + 74 / - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL - + 74 / - - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT - 14 + - 2 + - 81 * 94 col1
----
-7630

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5628
SELECT + 1 * + NULLIF ( COUNT( * ), + MIN( DISTINCT + ( + - CAST( 76 AS SIGNED ) ) ) * - - 1 / 46 - + 78 + + + 9 * - ( + CASE + CAST( + + COALESCE ( 68, + + 95 - - 61 ) AS SIGNED ) WHEN - 5 THEN NULL ELSE 8 * - 50 - - 78 END ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5628
SELECT + 1 * + NULLIF ( COUNT ( * ), + MIN ( DISTINCT + ( + - CAST ( 76 AS INTEGER ) ) ) * - - 1 / 46 - + 78 + + + 9 * - ( + CASE + CAST ( + + COALESCE ( 68, + + 95 - - 61 ) AS INTEGER ) WHEN - 5 THEN NULL ELSE 8 * - 50 - - 78 END ) ) AS col0
----
1

query I rowsort
SELECT ALL 70 + 99 * 36 AS col0
----
3634

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT - ( MIN( 65 ) ) - + + 10 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-5631
SELECT - ( MIN ( 65 ) ) - + + 10 AS col1
----
-75

query I rowsort
SELECT + - 26 - 68 AS col1
----
-94

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5634
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT DISTINCT 17 * + 62 AS col2
----
1054

query I rowsort
SELECT + 40 - 12
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5637
SELECT CAST( - 13 AS SIGNED ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5637
SELECT CAST ( - 13 AS INTEGER ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT - 15 / - - ( - NULLIF ( + 84, + 55 + + 76 + 1 + 72 - + - COUNT( * ) ) ) - - + CASE + NULLIF ( 24, - 15 * + 47 / - + 42 ) WHEN + 63 * + 76 THEN + 16 / + - 32 WHEN 2 / + MAX( 9 ) + - 73 THEN NULL END * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT - 15 / - - ( - NULLIF ( + 84, + 55 + + 76 + 1 + 72 - + - COUNT ( * ) ) ) - - + CASE + NULLIF ( 24, - 15 * + 47 / - + 42 ) WHEN + 63 * + 76 THEN + 16 / + - 32 WHEN 2 / + MAX ( 9 ) + - 73 THEN NULL END * - 5
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5640
SELECT - 27 DIV + + 63
----
0

skipif mysql # not compatible
query I rowsort label-5640
SELECT - 27 / + + 63
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5641
SELECT ALL - 38 DIV 73 - + 0 AS col0, - COUNT( * ) - - MIN( - - 86 )
----
0
85

skipif mysql # not compatible
query II rowsort label-5641
SELECT ALL - 38 / 73 - + 0 AS col0, - COUNT ( * ) - - MIN ( - - 86 )
----
0
85

query I rowsort
SELECT + 74 * + 84
----
6216

query I rowsort
SELECT ALL 80 * - 25 * 54
----
-108000

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT DISTINCT + 93 DIV - 54
----
-1

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT + 93 / - 54
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5645
SELECT - 26 DIV - ( + - 43 ) * + + 31 * 3 + 31 - - + ( 60 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-5645
SELECT - 26 / - ( + - 43 ) * + + 31 * 3 + 31 - - + ( 60 ) AS col1
----
91

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

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

query I rowsort
SELECT - 44 * - 94 AS col0
----
4136

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT - MAX( - 21 ) * 78 + + 48 + - 29 + - 72 * - 65 + - 23 AS col2
----
6314

skipif mysql # not compatible
query I rowsort label-5648
SELECT - MAX ( - 21 ) * 78 + + 48 + - 29 + - 72 * - 65 + - 23 AS col2
----
6314

onlyif mysql # DIV for integer division: 
query I rowsort label-5649
SELECT 3 * + 9 + + 85 DIV - - 50 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-5649
SELECT 3 * + 9 + + 85 / - - 50 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ALL - - COUNT( * ) * + 98 * 55
----
5390

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL - - COUNT ( * ) * + 98 * 55
----
5390

query II rowsort
SELECT ALL + 47 AS col1, - 67 + + 95
----
47
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT DISTINCT + CASE COUNT( * ) WHEN + - 42 * 62 THEN - - SUM( DISTINCT 56 ) END + 26 + - NULLIF ( + 82, 45 * 11 + - 92 - + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT + CASE COUNT ( * ) WHEN + - 42 * 62 THEN - - SUM ( DISTINCT 56 ) END + 26 + - NULLIF ( + 82, 45 * 11 + - 92 - + 50 )
----
NULL

query I rowsort
SELECT ALL + 36 + - 39 AS col1
----
-3

query I rowsort
SELECT 47 + 54
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5656
SELECT ALL - - CASE 9 WHEN + 36 * 60 * 61 / ( COUNT( * ) ) THEN NULL WHEN - - 89 THEN + ( - + CAST( NULL AS SIGNED ) ) END + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - - CASE 9 WHEN + 36 * 60 * 61 / ( COUNT ( * ) ) THEN NULL WHEN - - 89 THEN + ( - + CAST ( NULL AS INTEGER ) ) END + - 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5657
SELECT + CAST( + 9 AS SIGNED ) + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-5657
SELECT + CAST ( + 9 AS INTEGER ) + - COUNT ( * )
----
8

query I rowsort
SELECT ALL + - 46 + - 61 AS col0
----
-107

onlyif mysql # aggregate syntax: 
query II rowsort label-5659
SELECT + 64 AS col1, - NULLIF ( + - COUNT( * ), + 14 ) AS col1
----
64
1

skipif mysql # not compatible
query II rowsort label-5659
SELECT + 64 AS col1, - NULLIF ( + - COUNT ( * ), + 14 ) AS col1
----
64
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5660
SELECT ALL + - 30 DIV - 78 + - SUM( + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL + - 30 / - 78 + - SUM ( + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT ALL - - 67 + + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL - - 67 + + COUNT ( * )
----
68

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

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT + 42 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 31 + - 21
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT - COUNT( * ) + + 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5664
SELECT - COUNT ( * ) + + 6 AS col1
----
5

query I rowsort
SELECT ALL + 42 * - ( + - 63 )
----
2646

query I rowsort
SELECT 72 * - 76
----
-5472

query I rowsort
SELECT 10 + + 88 AS col0
----
98

query II rowsort
SELECT - 28 AS col2, 77 * - - 49
----
-28
3773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5669
SELECT ALL CASE + - 63 WHEN - + 74 THEN - + 54 ELSE 78 - + 3 END - - ( + + CAST( + 73 AS SIGNED ) ) + + - 85
----
63

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL CASE + - 63 WHEN - + 74 THEN - + 54 ELSE 78 - + 3 END - - ( + + CAST ( + 73 AS INTEGER ) ) + + - 85
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5670
SELECT MAX( ALL - + CASE 5 WHEN + 61 THEN - - 47 ELSE 27 * + 27 END ) + + + ( - 35 ), + 25 * + ( + 41 ) + + - 56 + - 79 + - 54 * + 47 - - 50 * + 40 * + 82 AS col2
----
-764
162352

skipif mysql # not compatible
query II rowsort label-5670
SELECT MAX ( ALL - + CASE 5 WHEN + 61 THEN - - 47 ELSE 27 * + 27 END ) + + + ( - 35 ), + 25 * + ( + 41 ) + + - 56 + - 79 + - 54 * + 47 - - 50 * + 40 * + 82 AS col2
----
-764
162352

query I rowsort
SELECT 6 + + 8 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT ALL - 70 * 76 * 44 * - - MIN( DISTINCT - 24 )
----
5617920

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL - 70 * 76 * 44 * - - MIN ( DISTINCT - 24 )
----
5617920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL CASE 44 WHEN - 55 THEN NULL WHEN 69 / - 14 + 58 THEN + 15 + + COUNT( * ) END * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL CASE 44 WHEN - 55 THEN NULL WHEN 69 / - 14 + 58 THEN + 15 + + COUNT ( * ) END * - 86
----
NULL

query II rowsort
SELECT DISTINCT - 67 AS col0, - 38 * - - 3
----
-67
-114

onlyif mysql # DIV for integer division: 
query II rowsort label-5676
SELECT ALL - 70, - 43 DIV - 50 AS col2
----
-70
0

skipif mysql # not compatible
query II rowsort label-5676
SELECT ALL - 70, - 43 / - 50 AS col2
----
-70
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT CASE + COUNT( * ) WHEN - - 18 THEN NULL WHEN + 94 + - - ( - 39 ) THEN NULL WHEN MIN( ALL - + 76 ) THEN NULL WHEN + ( + 73 ) THEN - 53 + - - 5 END + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5678
SELECT CASE + COUNT ( * ) WHEN - - 18 THEN NULL WHEN + 94 + - - ( - 39 ) THEN NULL WHEN MIN ( ALL - + 76 ) THEN NULL WHEN + ( + 73 ) THEN - 53 + - - 5 END + 53 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 90 AS col1, COALESCE ( + 46, NULLIF ( - 19, + - 76 ) * + 12, ( - ( - 71 ) ) * - 94 ) AS col0
----
-90
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT DISTINCT + - COUNT( * ) + - - 27
----
26

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT + - COUNT ( * ) + - - 27
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT DISTINCT 7 + CAST( - 24 AS SIGNED ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT 7 + CAST ( - 24 AS INTEGER ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT ALL - 34, - 98 - COUNT( ALL + CASE - 8 WHEN - 34 THEN - 92 * + 26 ELSE NULL END ) AS col1
----
-34
-98

skipif mysql # not compatible
query II rowsort label-5682
SELECT ALL - 34, - 98 - COUNT ( ALL + CASE - 8 WHEN - 34 THEN - 92 * + 26 ELSE NULL END ) AS col1
----
-34
-98

query I rowsort
SELECT DISTINCT - - ( + + 51 ) + + 55
----
106

query I rowsort
SELECT ALL - CASE + + 18 WHEN + 23 * 71 + - - COALESCE ( - 51, 20 ) THEN 48 + 1 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 82 * - 69 AS col0
----
-5658

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT MAX( ALL + - 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5686
SELECT MAX ( ALL + - 5 ) AS col2
----
-5

query II rowsort
SELECT - 52 AS col0, 73
----
-52
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT 16 * + 31 * + 30 + + COUNT( * )
----
14881

skipif mysql # not compatible
query I rowsort label-5688
SELECT 16 * + 31 * + 30 + + COUNT ( * )
----
14881

query I rowsort
SELECT - ( 88 ) * - 51 + - 76 AS col0
----
4412

query I rowsort
SELECT 5 + - NULLIF ( 8, - - 85 ) AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5691
SELECT ALL NULLIF ( 0, + + COUNT( * ) DIV + 85 ) + - - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL NULLIF ( 0, + + COUNT ( * ) / + 85 ) + - - 66 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 40 * + 33
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT DISTINCT 37 - - - 52 * + COUNT( + 82 )
----
-15

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT 37 - - - 52 * + COUNT ( + 82 )
----
-15

query II rowsort
SELECT ALL + 13 * + 78, - 22 + - 92 AS col0
----
1014
-114

query II rowsort
SELECT DISTINCT - 5 AS col2, + 75
----
-5
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT ( - 89 ) * + 6 + - - 91 - COALESCE ( + - 2, + 59, - - 87 * + + COUNT( * ) ) * 10 * + + 21 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5696
SELECT ( - 89 ) * + 6 + - - 91 - COALESCE ( + - 2, + 59, - - 87 * + + COUNT ( * ) ) * 10 * + + 21 AS col1
----
-23

query I rowsort
SELECT 17 * 36 col2
----
612

query I rowsort
SELECT 91 - 31
----
60

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

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

query I rowsort
SELECT 10 + + 94
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-5701
SELECT DISTINCT + 93 * - 49 AS col0, + 24 * MIN( - + 45 )
----
-4557
-1080

skipif mysql # not compatible
query II rowsort label-5701
SELECT DISTINCT + 93 * - 49 AS col0, + 24 * MIN ( - + 45 )
----
-4557
-1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5702
SELECT COUNT( * ) DIV - MIN( DISTINCT 68 )
----
0

skipif mysql # not compatible
query I rowsort label-5702
SELECT COUNT ( * ) / - MIN ( DISTINCT 68 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5703
SELECT ALL + COUNT( * ) DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL + COUNT ( * ) / - 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5704
SELECT COUNT( * ) * - 39, + 92 col2
----
-39
92

skipif mysql # not compatible
query II rowsort label-5704
SELECT COUNT ( * ) * - 39, + 92 col2
----
-39
92

query I rowsort
SELECT 6 * + 51 AS col1
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL + COUNT( * ) * 38 * + - ( + + ( - - 5 ) )
----
-190

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL + COUNT ( * ) * 38 * + - ( + + ( - - 5 ) )
----
-190

query I rowsort
SELECT ALL - 73 * 90 + + 12 + + 94
----
-6464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5708
SELECT 22 * 90 DIV + - NULLIF ( - 72, SUM( ALL 3 ) ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5708
SELECT 22 * 90 / + - NULLIF ( - 72, SUM ( ALL 3 ) ) AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5709
SELECT 25 + + COUNT( * ) DIV + 21 + + 59 col0
----
84

skipif mysql # not compatible
query I rowsort label-5709
SELECT 25 + + COUNT ( * ) / + 21 + + 59 col0
----
84

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5712
SELECT DISTINCT + 31 * + + ( + SUM( - CASE + - 30 WHEN - 81 + 11 THEN + + CAST( - - 66 AS SIGNED ) + + + 5 + 92 WHEN 17 THEN NULL END ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + 31 * + + ( + SUM ( - CASE + - 30 WHEN - 81 + 11 THEN + + CAST ( - - 66 AS INTEGER ) + + + 5 + 92 WHEN 17 THEN NULL END ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5713
SELECT DISTINCT 6 * + 99 + - + 32 + + - COUNT( 97 ) DIV + + 79 AS col2
----
562

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT 6 * + 99 + - + 32 + + - COUNT ( 97 ) / + + 79 AS col2
----
562

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL - COUNT( * ) * + 2 + + ( - + 76 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL - COUNT ( * ) * + 2 + + ( - + 76 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT - ( - - COALESCE ( - 43, 75 * 5 * + 47 + + + 99 * + + 28 ) ) * + 27 + - 78 + COUNT( * ) + - - 9 * + 82
----
1822

skipif mysql # not compatible
query I rowsort label-5717
SELECT - ( - - COALESCE ( - 43, 75 * 5 * + 47 + + + 99 * + + 28 ) ) * + 27 + - 78 + COUNT ( * ) + - - 9 * + 82
----
1822

query I rowsort
SELECT - ( - 60 ) * 68 - + 56
----
4024

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5719
SELECT DISTINCT + MIN( ALL + 86 ) AS col0, 29 DIV + 65 col0
----
86
0

skipif mysql # not compatible
query II rowsort label-5719
SELECT DISTINCT + MIN ( ALL + 86 ) AS col0, 29 / + 65 col0
----
86
0

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

query I rowsort
SELECT + 90 * 28 * - 31 * - 55 + + 46 AS col1
----
4296646

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT ALL - 2 * - 85 + 16 + 71 * - - COUNT( * )
----
257

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL - 2 * - 85 + 16 + 71 * - - COUNT ( * )
----
257

query I rowsort
SELECT DISTINCT 8 - + - ( - 82 ) AS col1
----
-74

query I rowsort
SELECT ALL - 53 - + 92 + + 55 - + 39 AS col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL - MAX( - 67 ) col2
----
67

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL - MAX ( - 67 ) col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT ALL ( + COUNT( * ) ), - 30 * 38 AS col0
----
1
-1140

skipif mysql # not compatible
query II rowsort label-5726
SELECT ALL ( + COUNT ( * ) ), - 30 * 38 AS col0
----
1
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT + - 3 * + CASE - - 94 WHEN ( + 32 ) THEN NULL ELSE + COUNT( * ) END AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5727
SELECT + - 3 * + CASE - - 94 WHEN ( + 32 ) THEN NULL ELSE + COUNT ( * ) END AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5728
SELECT ALL COUNT( DISTINCT - 34 ) DIV - + COUNT( DISTINCT - 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL COUNT ( DISTINCT - 34 ) / - + COUNT ( DISTINCT - 22 )
----
-1

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

skipif mysql # not compatible
query I rowsort label-5729
SELECT + 22 / + + 60
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5730
SELECT + CAST( NULL AS SIGNED ) + 88 AS col2, - COUNT( * ) * + 86
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-5730
SELECT + CAST ( NULL AS INTEGER ) + 88 AS col2, - COUNT ( * ) * + 86
----
NULL
-86

query I rowsort
SELECT - 6 * - 97 + - ( 81 ) * + - 23 * - + 95
----
-176403

query I rowsort
SELECT + 81 + - 79
----
2

query I rowsort
SELECT - 87 + + 80 AS col1
----
-7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5735
SELECT + 39 * - + 30 * - 88 DIV + ( + 11 ) AS col0
----
9360

skipif mysql # not compatible
query I rowsort label-5735
SELECT + 39 * - + 30 * - 88 / + ( + 11 ) AS col0
----
9360

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL + COUNT( * ) + + 60 + - MAX( 38 ) + + 64
----
87

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL + COUNT ( * ) + + 60 + - MAX ( 38 ) + + 64
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5737
SELECT + 33 + + CAST( NULL AS SIGNED ) + - + CASE COUNT( * ) WHEN + ( + - 65 ) THEN + 65 WHEN - + 17 THEN + 18 * + 26 * + CASE - 64 WHEN + - CAST( NULL AS DECIMAL ) * + 11 + + 53 THEN 49 END ELSE - ( 77 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT + 33 + + CAST ( NULL AS INTEGER ) + - + CASE COUNT ( * ) WHEN + ( + - 65 ) THEN + 65 WHEN - + 17 THEN + 18 * + 26 * + CASE - 64 WHEN + - CAST ( NULL AS REAL ) * + 11 + + 53 THEN 49 END ELSE - ( 77 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5738
SELECT ALL COALESCE ( 1, CASE WHEN NOT COUNT( DISTINCT - - ( - 10 ) ) <= ( + 26 ) THEN NULL ELSE + 52 * - - COUNT( * ) + + + 91 END * ( - NULLIF ( 92, + 81 * - - 9 + - CAST( + - SUM( ALL - - 73 ) AS SIGNED ) - - 37 + 58 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL COALESCE ( 1, CASE WHEN NOT COUNT ( DISTINCT - - ( - 10 ) ) <= ( + 26 ) THEN NULL ELSE + 52 * - - COUNT ( * ) + + + 91 END * ( - NULLIF ( 92, + 81 * - - 9 + - CAST ( + - SUM ( ALL - - 73 ) AS INTEGER ) - - 37 + 58 ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5739
SELECT ALL COUNT( * ) / 96 + 31 + + - CAST( NULL AS SIGNED ) - COUNT( * ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL COUNT ( * ) / 96 + 31 + + - CAST ( NULL AS INTEGER ) - COUNT ( * ) * 12
----
NULL

query I rowsort
SELECT - 79 + 26 col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5741
SELECT DISTINCT + 36 DIV + COUNT( ALL - - 98 ) + CAST( + + 29 AS SIGNED ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT + 36 / + COUNT ( ALL - - 98 ) + CAST ( + + 29 AS INTEGER ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL + CASE COUNT( * ) WHEN - - NULLIF ( + 55, 62 + 29 ) THEN + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL + CASE COUNT ( * ) WHEN - - NULLIF ( + 55, 62 + 29 ) THEN + 61 END
----
NULL

query I rowsort
SELECT - + 20 * + 78
----
-1560

query II rowsort
SELECT 14, + 36 AS col0
----
14
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5745
SELECT 3 / - CASE + 22 WHEN + COUNT( * ) THEN + 18 + - 57 + + + CAST( + 94 AS SIGNED ) - COUNT( * ) + COALESCE ( + 34, - 84 ) + - - 10 * COUNT( * ) WHEN - + 99 THEN NULL ELSE NULL END / 86 * + + 91 * - 68 + - - 10 * + 10 + + SUM( + 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT 3 / - CASE + 22 WHEN + COUNT ( * ) THEN + 18 + - 57 + + + CAST ( + 94 AS INTEGER ) - COUNT ( * ) + COALESCE ( + 34, - 84 ) + - - 10 * COUNT ( * ) WHEN - + 99 THEN NULL ELSE NULL END / 86 * + + 91 * - 68 + - - 10 * + 10 + + SUM ( + 56 ) AS col1
----
NULL

query I rowsort
SELECT - - 92 * + 23
----
2116

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT + - ( - COUNT( * ) ) + + ( 50 ) * - + 45 * 74 + + 42
----
-166457

skipif mysql # not compatible
query I rowsort label-5747
SELECT + - ( - COUNT ( * ) ) + + ( 50 ) * - + 45 * 74 + + 42
----
-166457

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT + + COUNT( * ) + + + 2 + + NULLIF ( 46, - 96 ) * + COALESCE ( - + ( - NULLIF ( - 13, - + NULLIF ( + COUNT( * ), - 26 + 18 * - 8 * - 50 + + COUNT( * ) + 98 ) ) ), - MAX( DISTINCT - 64 ) ) AS col2
----
-595

skipif mysql # not compatible
query I rowsort label-5748
SELECT + + COUNT ( * ) + + + 2 + + NULLIF ( 46, - 96 ) * + COALESCE ( - + ( - NULLIF ( - 13, - + NULLIF ( + COUNT ( * ), - 26 + 18 * - 8 * - 50 + + COUNT ( * ) + 98 ) ) ), - MAX ( DISTINCT - 64 ) ) AS col2
----
-595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5749
SELECT ALL + CAST( + 58 AS SIGNED ) * - ( + 90 )
----
-5220

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL + CAST ( + 58 AS INTEGER ) * - ( + 90 )
----
-5220

query I rowsort
SELECT - 27 * - ( + 52 )
----
1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5751
SELECT ALL + - CASE - 4 WHEN - 81 * + - 2 - - ( - + SUM( 88 ) ) THEN + CAST( + 30 AS SIGNED ) + + - SUM( ALL 95 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL + - CASE - 4 WHEN - 81 * + - 2 - - ( - + SUM ( 88 ) ) THEN + CAST ( + 30 AS INTEGER ) + + - SUM ( ALL 95 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + + 18 * + - 98 + 34
----
-1730

query II rowsort
SELECT - 72 AS col1, 40 * - 27
----
-72
-1080

query II rowsort
SELECT ALL + - NULLIF ( + - 22, 77 ), - 27 AS col1
----
22
-27

onlyif mysql # aggregate syntax: 
query III rowsort label-5755
SELECT - - 16 - + 31 * - 11 AS col0, 23 AS col1, + + COUNT( * )
----
357
23
1

skipif mysql # not compatible
query III rowsort label-5755
SELECT - - 16 - + 31 * - 11 AS col0, 23 AS col1, + + COUNT ( * )
----
357
23
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT + 81 * + CAST( + 43 AS SIGNED ) + - 53
----
3430

skipif mysql # not compatible
query I rowsort label-5756
SELECT + 81 * + CAST ( + 43 AS INTEGER ) + - 53
----
3430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5757
SELECT - CASE 13 WHEN - - 91 THEN NULL WHEN + CAST( + + 83 AS SIGNED ) THEN + 80 * 29 * + 47 / - 68 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT - CASE 13 WHEN - - 91 THEN NULL WHEN + CAST ( + + 83 AS INTEGER ) THEN + 80 * 29 * + 47 / - 68 END AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 30 * 70 AS col0
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL + CASE - + CASE 47 WHEN + COALESCE ( COUNT( * ), - 66 / - + COUNT( * ), - + 79 ) * - 33 + + 56 + + - 2 + + - 38 THEN COUNT( * ) WHEN + + 20 THEN + 2 WHEN + 4 * 43 THEN NULL END WHEN - - 42 * 77 + + 36 THEN - 5 WHEN - COUNT( * ) THEN + - CASE - 28 WHEN COUNT( * ) * + 27 + + 45 THEN NULL WHEN + 56 * 15 THEN - 60 ELSE 27 * + 82 - 9 + 57 / 34 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL + CASE - + CASE 47 WHEN + COALESCE ( COUNT ( * ), - 66 / - + COUNT ( * ), - + 79 ) * - 33 + + 56 + + - 2 + + - 38 THEN COUNT ( * ) WHEN + + 20 THEN + 2 WHEN + 4 * 43 THEN NULL END WHEN - - 42 * 77 + + 36 THEN - 5 WHEN - COUNT ( * ) THEN + - CASE - 28 WHEN COUNT ( * ) * + 27 + + 45 THEN NULL WHEN + 56 * 15 THEN - 60 ELSE 27 * + 82 - 9 + 57 / 34 END END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5761
SELECT + 58 * + CAST( NULL AS SIGNED ) * + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT + 58 * + CAST ( NULL AS INTEGER ) * + 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5762
SELECT ALL - COUNT( * ) * + - 19 * 76 DIV 23
----
62

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL - COUNT ( * ) * + - 19 * 76 / 23
----
62

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

query I rowsort
SELECT ALL 81 * - 66 AS col2
----
-5346

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT COUNT( - + 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5765
SELECT COUNT ( - + 35 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT DISTINCT ( + COUNT( * ) ) + - 14 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT ( + COUNT ( * ) ) + - 14 AS col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5767
SELECT + 45 DIV 26 DIV + 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5767
SELECT + 45 / 26 / + 35 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5768
SELECT DISTINCT SUM( - - 18 ) / MIN( - 64 ) * - ( - + CAST( NULL AS DECIMAL ) ) + 66 + + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT SUM ( - - 18 ) / MIN ( - 64 ) * - ( - + CAST ( NULL AS REAL ) ) + 66 + + 47 AS col2
----
NULL

query III rowsort
SELECT ALL NULLIF ( - - 38, + + 85 ) * - 48 AS col2, - 43 AS col0, + + 1 AS col0
----
-1824
-43
1

query I rowsort
SELECT + 68 + + 41 + - ( 61 ) * - + 15 * - + 33
----
-30086

query I rowsort
SELECT ALL 74 + - - 78
----
152

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5772
SELECT DISTINCT - 76 + 3, CAST( NULL AS DECIMAL ) AS col0
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-5772
SELECT DISTINCT - 76 + 3, CAST ( NULL AS REAL ) AS col0
----
-73
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5773
SELECT ALL - 58 + - CAST( NULL AS DECIMAL ) / + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL - 58 + - CAST ( NULL AS REAL ) / + 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5774
SELECT DISTINCT 61 + - 7 * - + 91 DIV ( - COUNT( * ) ) AS col0
----
-576

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT 61 + - 7 * - + 91 / ( - COUNT ( * ) ) AS col0
----
-576

query II rowsort
SELECT ALL 37 + - 61 col2, ( + + 85 )
----
-24
85

query I rowsort
SELECT 91 * + 78
----
7098

query I rowsort
SELECT + NULLIF ( + 60, - 80 )
----
60

query I rowsort
SELECT + + NULLIF ( - 17, + 52 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT + - 60 * - - COUNT( * ) + - + 69 + - + ( - + 62 ) - + + 77
----
-144

skipif mysql # not compatible
query I rowsort label-5779
SELECT + - 60 * - - COUNT ( * ) + - + 69 + - + ( - + 62 ) - + + 77
----
-144

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

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL - - COUNT ( * ) / - 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5781
SELECT + 77 DIV 62 + - - 86 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5781
SELECT + 77 / 62 + - - 86 AS col2
----
87

query I rowsort
SELECT + 61 * 71 - + 31 + - - 39 * - + 55
----
2155

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5783
SELECT + COUNT( * ) + 63 + - 18 + + 85 + - 1 * + - 10 DIV 49 AS col0, + COUNT( * )
----
131
1

skipif mysql # not compatible
query II rowsort label-5783
SELECT + COUNT ( * ) + 63 + - 18 + + 85 + - 1 * + - 10 / 49 AS col0, + COUNT ( * )
----
131
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5784
SELECT ALL - - CAST( NULL AS SIGNED ) * - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 35 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT 52 * 80 + + 68 + 44 * - - 49 * + COUNT( * ) * + 46 + + 37 * 29 + 17 + 35 * - 60 + 31 AS col2
----
102425

skipif mysql # not compatible
query I rowsort label-5786
SELECT 52 * 80 + + 68 + 44 * - - 49 * + COUNT ( * ) * + 46 + + 37 * 29 + 17 + 35 * - 60 + 31 AS col2
----
102425

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5788
SELECT DISTINCT - COALESCE ( MAX( DISTINCT - 88 ), CASE - - ( + 62 ) WHEN MAX( ALL - - 85 ) * + 35 * - SUM( ALL - - 95 ) / CAST( NULL AS SIGNED ) + + - 37 + 28 THEN + 93 * + MAX( - 76 ) * 6 + - + 48 * + 29 + - COUNT( * ) + + 23 WHEN - COALESCE ( MIN( + - 96 ), - CAST( NULL AS DECIMAL ) * - COUNT( * ) + + 16 - COUNT( * ) * 96 * - 18 + 5 + + - 76 + + - 98 - + 56 * 43 ) + - 36 * - 11 THEN NULL ELSE 42 + - COUNT( * ) END ) + + 91 * + 63 AS col1
----
5821

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT - COALESCE ( MAX ( DISTINCT - 88 ), CASE - - ( + 62 ) WHEN MAX ( ALL - - 85 ) * + 35 * - SUM ( ALL - - 95 ) / CAST ( NULL AS INTEGER ) + + - 37 + 28 THEN + 93 * + MAX ( - 76 ) * 6 + - + 48 * + 29 + - COUNT ( * ) + + 23 WHEN - COALESCE ( MIN ( + - 96 ), - CAST ( NULL AS REAL ) * - COUNT ( * ) + + 16 - COUNT ( * ) * 96 * - 18 + 5 + + - 76 + + - 98 - + 56 * 43 ) + - 36 * - 11 THEN NULL ELSE 42 + - COUNT ( * ) END ) + + 91 * + 63 AS col1
----
5821

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

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

query I rowsort
SELECT 45 + + - 5 + + - 68
----
-28

query II rowsort
SELECT ALL - 89 + ( - 12 ) + + 16 + + 20, + 47 col0
----
-65
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5792
SELECT - 89, COUNT( * ) * 45 col2
----
-89
45

skipif mysql # not compatible
query II rowsort label-5792
SELECT - 89, COUNT ( * ) * 45 col2
----
-89
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5793
SELECT ALL 91 AS col0, COALESCE ( - NULLIF ( + - 32, + + ( 61 ) ), - COUNT( * ), - 35 ) * - 9
----
91
-288

skipif mysql # not compatible
query II rowsort label-5793
SELECT ALL 91 AS col0, COALESCE ( - NULLIF ( + - 32, + + ( 61 ) ), - COUNT ( * ), - 35 ) * - 9
----
91
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT ALL SUM( ALL - 30 ) + + COUNT( ALL 36 ) * - - COUNT( - 56 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL SUM ( ALL - 30 ) + + COUNT ( ALL 36 ) * - - COUNT ( - 56 ) AS col1
----
-29

query I rowsort
SELECT 35 * - NULLIF ( - 63, 81 + 90 * - 94 / - 95 )
----
2205

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL - CASE + COALESCE ( - 29, - 95 + MIN( DISTINCT - 45 ) ) WHEN - COUNT( * ) THEN 46 WHEN - - 83 THEN 52 * 81 * + - 86 - + 44 * + + 64 / - - ( ( - - 61 ) ) + + 13 * COUNT( - + 0 ) ELSE NULL END + 75 + + CASE - + 71 WHEN 19 THEN - 18 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL - CASE + COALESCE ( - 29, - 95 + MIN ( DISTINCT - 45 ) ) WHEN - COUNT ( * ) THEN 46 WHEN - - 83 THEN 52 * 81 * + - 86 - + 44 * + + 64 / - - ( ( - - 61 ) ) + + 13 * COUNT ( - + 0 ) ELSE NULL END + 75 + + CASE - + 71 WHEN 19 THEN - 18 END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL + 63 + - 16 + + - COALESCE ( - - 49, COUNT( * ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL + 63 + - 16 + + - COALESCE ( - - 49, COUNT ( * ) ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5799
SELECT 70 + + SUM( ALL - 17 ), - 4 AS col2
----
53
-4

skipif mysql # not compatible
query II rowsort label-5799
SELECT 70 + + SUM ( ALL - 17 ), - 4 AS col2
----
53
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5800
SELECT ALL 96 - - 11 - - - AVG ( ALL + 29 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL 96 - - 11 - - - AVG ( ALL + 29 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 44 ) * + 42 * 98 AS col1
----
181104

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5803
SELECT 5 * - + COUNT( * ) + CAST( + 96 AS SIGNED ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5803
SELECT 5 * - + COUNT ( * ) + CAST ( + 96 AS INTEGER ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5804
SELECT 36 + + + ( SUM( DISTINCT + 48 ) ) + + + 73 col2, COUNT( * ) + 6 * - - MIN( DISTINCT - - 31 )
----
157
187

skipif mysql # not compatible
query II rowsort label-5804
SELECT 36 + + + ( SUM ( DISTINCT + 48 ) ) + + + 73 col2, COUNT ( * ) + 6 * - - MIN ( DISTINCT - - 31 )
----
157
187

query I rowsort
SELECT DISTINCT 12 - - 49 AS col2
----
61

query I rowsort
SELECT DISTINCT NULLIF ( - - 57, 44 )
----
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5808
SELECT ALL - - CASE - - 22 WHEN - COUNT( * ) THEN + MIN( 81 ) - CASE + + 59 WHEN + - ( + + 13 ) + - 79 THEN NULL ELSE MIN( ALL 43 ) END - COUNT( * ) ELSE + + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL - - CASE - - 22 WHEN - COUNT ( * ) THEN + MIN ( 81 ) - CASE + + 59 WHEN + - ( + + 13 ) + - 79 THEN NULL ELSE MIN ( ALL 43 ) END - COUNT ( * ) ELSE + + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + + 70, - 76 ) + 21 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT DISTINCT 88 * NULLIF ( + - 93, - 67 / + 86 - + SUM( - - 61 ) ) * + + 42
----
-343728

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT 88 * NULLIF ( + - 93, - 67 / + 86 - + SUM ( - - 61 ) ) * + + 42
----
-343728

onlyif mysql # aggregate syntax: 
query II rowsort label-5811
SELECT ALL - + 92 AS col0, MAX( 61 ) AS col0
----
-92
61

skipif mysql # not compatible
query II rowsort label-5811
SELECT ALL - + 92 AS col0, MAX ( 61 ) AS col0
----
-92
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5812
SELECT ALL + ( + + 99 ) * + 89 AS col2, + 40 * 59 - MAX( DISTINCT - 36 ) AS col1
----
8811
2396

skipif mysql # not compatible
query II rowsort label-5812
SELECT ALL + ( + + 99 ) * + 89 AS col2, + 40 * 59 - MAX ( DISTINCT - 36 ) AS col1
----
8811
2396

onlyif mysql # DIV for integer division: 
query II rowsort label-5813
SELECT + 67 col2, + 64 DIV + 64
----
67
1

skipif mysql # not compatible
query II rowsort label-5813
SELECT + 67 col2, + 64 / + 64
----
67
1

query I rowsort
SELECT - 58 + 48 * + - NULLIF ( - - 44, 79 ) col2
----
-2170

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

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

query I rowsort
SELECT COALESCE ( + + 40, + 91 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5817
SELECT ALL - + 80 + - COALESCE ( 69, + + CAST( NULL AS SIGNED ) * + NULLIF ( - + 29, - 89 + 21 * ( COUNT( ALL - 91 ) ) * - 57 + - - NULLIF ( + - 43, - 93 / + 7 + + 87 ) / SUM( - - 53 ) + 99 ) ) + - 71
----
-220

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL - + 80 + - COALESCE ( 69, + + CAST ( NULL AS INTEGER ) * + NULLIF ( - + 29, - 89 + 21 * ( COUNT ( ALL - 91 ) ) * - 57 + - - NULLIF ( + - 43, - 93 / + 7 + + 87 ) / SUM ( - - 53 ) + 99 ) ) + - 71
----
-220

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

query I rowsort
SELECT ALL 99 + + + CASE ( + 56 ) WHEN AVG ( ALL + 38 ) + - 19 THEN + 55 WHEN - 84 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT COUNT ( * ) + - + ( + 79 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT DISTINCT + - SUM( 28 ) * 22 AS col2
----
-616

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT + - SUM ( 28 ) * 22 AS col2
----
-616

onlyif mysql # aggregate syntax: 
query II rowsort label-5822
SELECT + COUNT( * ), + 52 - - - 36 + - COUNT( * ) * COUNT( * ) AS col2
----
1
15

skipif mysql # not compatible
query II rowsort label-5822
SELECT + COUNT ( * ), + 52 - - - 36 + - COUNT ( * ) * COUNT ( * ) AS col2
----
1
15

query II rowsort
SELECT 94 AS col0, + 39
----
94
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT 45 DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5824
SELECT 45 / - 65 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5825
SELECT CAST( NULL AS SIGNED ) - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5825
SELECT CAST ( NULL AS INTEGER ) - 1 AS col1
----
NULL

query II rowsort
SELECT + 79 AS col0, - 41 - 43 AS col2
----
79
-84

query I rowsort
SELECT DISTINCT + 48 * 2 * 76
----
7296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5828
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + + - CASE + 31 WHEN + + 39 THEN + 12 - - 33 * - - 17 ELSE - 95 END AS col0, MAX( DISTINCT ( - 60 ) ) AS col0
----
96
-60

skipif mysql # not compatible
query II rowsort label-5828
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + + - CASE + 31 WHEN + + 39 THEN + 12 - - 33 * - - 17 ELSE - 95 END AS col0, MAX ( DISTINCT ( - 60 ) ) AS col0
----
96
-60

query II rowsort
SELECT + 33, 47 col2
----
33
47

query II rowsort
SELECT 43, + 77 AS col2
----
43
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT ALL COUNT( ALL 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL COUNT ( ALL 45 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5832
SELECT 35 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-5832
SELECT 35 / + 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT ALL + CASE + 78 WHEN - 70 + + + 30 * + 0 THEN COUNT( * ) ELSE + + COALESCE ( - 50, + ( 75 ) * - 23 ) END + + 59 * + 42 AS col1
----
2428

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL + CASE + 78 WHEN - 70 + + + 30 * + 0 THEN COUNT ( * ) ELSE + + COALESCE ( - 50, + ( 75 ) * - 23 ) END + + 59 * + 42 AS col1
----
2428

onlyif mysql # aggregate syntax: 
query II rowsort label-5834
SELECT ALL - 58 + + NULLIF ( + COUNT( * ), + 54 ), + 27 * 45 * 47 AS col2
----
-57
57105

skipif mysql # not compatible
query II rowsort label-5834
SELECT ALL - 58 + + NULLIF ( + COUNT ( * ), + 54 ), + 27 * 45 * 47 AS col2
----
-57
57105

onlyif mysql # aggregate syntax: 
query II rowsort label-5835
SELECT ALL COUNT( * ) col2, + 44 - 96 AS col1
----
1
-52

skipif mysql # not compatible
query II rowsort label-5835
SELECT ALL COUNT ( * ) col2, + 44 - 96 AS col1
----
1
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5836
SELECT ALL NULLIF ( - + 37, + - ( - 58 ) * - + CAST( NULL AS SIGNED ) * + - NULLIF ( + CAST( NULL AS SIGNED ), - + 72 * + - COUNT( * ) ) * + 89 + - 27 + - + 98 + - + COUNT( * ) * 81 * + MAX( ALL + 95 ) - - + 46 + 86 * - COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL NULLIF ( - + 37, + - ( - 58 ) * - + CAST ( NULL AS INTEGER ) * + - NULLIF ( + CAST ( NULL AS INTEGER ), - + 72 * + - COUNT ( * ) ) * + 89 + - 27 + - + 98 + - + COUNT ( * ) * 81 * + MAX ( ALL + 95 ) - - + 46 + 86 * - COUNT ( * ) )
----
-37

query I rowsort
SELECT - 56 + 59 + - - 90 * - 95
----
-8547

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

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

query I rowsort
SELECT ALL + 58 - 9 * + + 96
----
-806

query I rowsort
SELECT - 26 * - 57
----
1482

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

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL NULLIF ( - - COUNT ( * ), + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5842
SELECT ALL + 32 * + - CAST( + + 64 AS SIGNED ) col1
----
-2048

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL + 32 * + - CAST ( + + 64 AS INTEGER ) col1
----
-2048

query I rowsort
SELECT + ( 83 ) * + 28 AS col0
----
2324

query II rowsort
SELECT DISTINCT 18, 35 - - 51 + - - ( 79 ) AS col1
----
18
165

query I rowsort
SELECT - 55 + ( - - 8 ) col1
----
-47

query II rowsort
SELECT ALL - 66 - - + 87, - 3 * + NULLIF ( ( + 63 ), - + 15 ) AS col2
----
21
-189

query II rowsort
SELECT DISTINCT + + 79 * 74 AS col2, - 3 AS col1
----
5846
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT ALL + CASE + 15 WHEN 48 * - + 94 THEN - - 63 - + 85 ELSE - COUNT( - 46 ) + 45 END
----
44

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL + CASE + 15 WHEN 48 * - + 94 THEN - - 63 - + 85 ELSE - COUNT ( - 46 ) + 45 END
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ALL 14 - + ( 52 ) * + CASE - 95 WHEN + ( COUNT( * ) ) THEN - - 61 * - 96 WHEN - - 25 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL 14 - + ( 52 ) * + CASE - 95 WHEN + ( COUNT ( * ) ) THEN - - 61 * - 96 WHEN - - 25 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5850
SELECT ALL + 75 * - COUNT( - + 60 ) + + 90 DIV 56 + + 24 - - - 15
----
-65

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL + 75 * - COUNT ( - + 60 ) + + 90 / 56 + + 24 - - - 15
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-5851
SELECT DISTINCT + + COUNT( * ) * - 23 + + MAX( + ( ( - 58 ) ) ) AS col0, COALESCE ( 50, 4 ) * 62
----
-81
3100

skipif mysql # not compatible
query II rowsort label-5851
SELECT DISTINCT + + COUNT ( * ) * - 23 + + MAX ( + ( ( - 58 ) ) ) AS col0, COALESCE ( 50, 4 ) * 62
----
-81
3100

query II rowsort
SELECT ALL 11, - 2 AS col1
----
11
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5853
SELECT ALL CAST( NULL AS SIGNED ), ( + CAST( NULL AS SIGNED ) ) + + 79, - - 10 AS col1
----
NULL
NULL
10

skipif mysql # not compatible
query III rowsort label-5853
SELECT ALL CAST ( NULL AS INTEGER ), ( + CAST ( NULL AS INTEGER ) ) + + 79, - - 10 AS col1
----
NULL
NULL
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT + 20 DIV 19 DIV - 15 - - 9
----
9

skipif mysql # not compatible
query I rowsort label-5854
SELECT + 20 / 19 / - 15 - - 9
----
9

query II rowsort
SELECT + 90, + 98 AS col1
----
90
98

query I rowsort
SELECT + 34 * 99 AS col0
----
3366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT DISTINCT - 76 DIV - ( + MAX( DISTINCT - 74 ) ) + 25 * + - 49
----
-1226

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT - 76 / - ( + MAX ( DISTINCT - 74 ) ) + 25 * + - 49
----
-1226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5858
SELECT DISTINCT - NULLIF ( - COUNT( ALL + 5 ), 3 ) DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT - NULLIF ( - COUNT ( ALL + 5 ), 3 ) / - 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5859
SELECT 87 DIV + 34 - + 10 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5859
SELECT 87 / + 34 - + 10 AS col0
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5860
SELECT - 65 * + + 25 * + CAST( NULL AS DECIMAL ) + + + 77 + - + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT - 65 * + + 25 * + CAST ( NULL AS REAL ) + + + 77 + - + 69 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5862
SELECT + NULLIF ( - - CAST( - 46 AS SIGNED ), + COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-5862
SELECT + NULLIF ( - - CAST ( - 46 AS INTEGER ), + COUNT ( * ) )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5863
SELECT NULLIF ( - 20, 40 * + - NULLIF ( 60, - CAST( COUNT( * ) AS SIGNED ) * - CASE + COUNT( * ) WHEN - 38 THEN NULL WHEN - - ( - - 78 ) THEN + + 3 * - 97 END ) + 89 )
----
-20

skipif mysql # not compatible
query I rowsort label-5863
SELECT NULLIF ( - 20, 40 * + - NULLIF ( 60, - CAST ( COUNT ( * ) AS INTEGER ) * - CASE + COUNT ( * ) WHEN - 38 THEN NULL WHEN - - ( - - 78 ) THEN + + 3 * - 97 END ) + 89 )
----
-20

query I rowsort
SELECT ALL + 70 * - 73 + 99 - - 90
----
-4921

query I rowsort
SELECT + 93 + - + 34
----
59

query III rowsort
SELECT + 69 + + 8, 7 AS col1, 36 col1
----
77
7
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL CAST( - 26 AS SIGNED ) * + + 68 * - 64 + 20 * - + 35 AS col1
----
112452

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL CAST ( - 26 AS INTEGER ) * + + 68 * - 64 + 20 * - + 35 AS col1
----
112452

query I rowsort
SELECT DISTINCT + 17 * 64 * + - ( + CASE + 17 WHEN 11 THEN NULL WHEN + 49 THEN - + 90 END ) AS col0
----
NULL

query II rowsort
SELECT - ( - + 97 ) + 73 AS col2, + CASE - 2 WHEN - 77 + - - 91 THEN 32 END * - + AVG ( + + 57 ) - + 24
----
170
NULL

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

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

query I rowsort
SELECT - 32 * - - 59 AS col1
----
-1888

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5873
SELECT - CAST( - 11 AS SIGNED ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5873
SELECT - CAST ( - 11 AS INTEGER ) AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5874
SELECT ALL + 54 * - CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL + 54 * - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT DISTINCT + 45 - 27 + + + CASE - COALESCE ( 92, - 24 ) WHEN + 55 THEN - + COUNT( * ) END * - - 19 - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT + 45 - 27 + + + CASE - COALESCE ( 92, - 24 ) WHEN + 55 THEN - + COUNT ( * ) END * - - 19 - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT DISTINCT COUNT( 22 )
----
1

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT COUNT ( 22 )
----
1

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

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

query I rowsort
SELECT ALL 78 * + - 5
----
-390

onlyif mysql # aggregate syntax: 
query II rowsort label-5879
SELECT - NULLIF ( + 27, + 41 + + 26 * COUNT( * ) ) * + 85 * - 40 * - 54 AS col2, + 98 * + 43 AS col1
----
-4957200
4214

skipif mysql # not compatible
query II rowsort label-5879
SELECT - NULLIF ( + 27, + 41 + + 26 * COUNT ( * ) ) * + 85 * - 40 * - 54 AS col2, + 98 * + 43 AS col1
----
-4957200
4214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT + 18 * - - 46 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5880
SELECT + 18 * - - 46 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT ALL + + NULLIF ( - SUM( + 33 ), + - 43 ) + - - 16
----
-17

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL + + NULLIF ( - SUM ( + 33 ), + - 43 ) + - - 16
----
-17

query II rowsort
SELECT - + 58 + - + 77 * 44, 54 AS col0
----
-3446
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT DISTINCT + 47 * - + CASE COALESCE ( - + 90, - 30 ) WHEN + MAX( - - 48 ) THEN - 82 + - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT + 47 * - + CASE COALESCE ( - + 90, - 30 ) WHEN + MAX ( - - 48 ) THEN - 82 + - 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5884
SELECT DISTINCT + COUNT( * ) + + NULLIF ( + 14, + 47 * + 46 ) + - 93 - + 44, 77 - + - 90 AS col1
----
-122
167

skipif mysql # not compatible
query II rowsort label-5884
SELECT DISTINCT + COUNT ( * ) + + NULLIF ( + 14, + 47 * + 46 ) + - 93 - + 44, 77 - + - 90 AS col1
----
-122
167

query I rowsort
SELECT ALL + 13 * 3
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - ( 11 ) * - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - ( 11 ) * - - 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5887
SELECT - - 68 * + 50 + - + 15, + 46 / COALESCE ( 9, - 67 * - + 28 / 19 + COUNT( DISTINCT - 7 ) ) / + 6 + - CASE - + COUNT( * ) WHEN 63 + + - 13 + - COALESCE ( - 8, + 85 * + 66 + - CAST( NULL AS SIGNED ) + - 75 + 43 * ( 69 ) * 92 / - - 44 / + COUNT( * ), CAST( + COUNT( * ) AS SIGNED ) / ( + NULLIF ( - + CAST( NULL AS SIGNED ), + 94 ) ) * + COUNT( * ) ) - 3 THEN 59 * - 34 WHEN 2 + + 48 * + 8 THEN - COUNT( * ) - + 87 WHEN ( - 37 ) THEN NULL END col0
----
3385
NULL

skipif mysql # not compatible
query II rowsort label-5887
SELECT - - 68 * + 50 + - + 15, + 46 / COALESCE ( 9, - 67 * - + 28 / 19 + COUNT ( DISTINCT - 7 ) ) / + 6 + - CASE - + COUNT ( * ) WHEN 63 + + - 13 + - COALESCE ( - 8, + 85 * + 66 + - CAST ( NULL AS INTEGER ) + - 75 + 43 * ( 69 ) * 92 / - - 44 / + COUNT ( * ), CAST ( + COUNT ( * ) AS INTEGER ) / ( + NULLIF ( - + CAST ( NULL AS INTEGER ), + 94 ) ) * + COUNT ( * ) ) - 3 THEN 59 * - 34 WHEN 2 + + 48 * + 8 THEN - COUNT ( * ) - + 87 WHEN ( - 37 ) THEN NULL END col0
----
3385
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT ALL - 96 DIV + 20 + 76 col1
----
72

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL - 96 / + 20 + 76 col1
----
72

query II rowsort
SELECT - 78 * + - 38 AS col0, 13 + 83 + + + 95
----
2964
191

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT ALL 87 DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL 87 / - 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT + 99 + + + 61 * + MIN( - 57 ) + + - 69 - + 81 + - - 58
----
-3470

skipif mysql # not compatible
query I rowsort label-5891
SELECT + 99 + + + 61 * + MIN ( - 57 ) + + - 69 - + 81 + - - 58
----
-3470

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT ALL 5 DIV - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL 5 / - 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5893
SELECT ALL 39 * NULLIF ( + - 96, - + 67 ), COUNT( * ) AS col1
----
-3744
1

skipif mysql # not compatible
query II rowsort label-5893
SELECT ALL 39 * NULLIF ( + - 96, - + 67 ), COUNT ( * ) AS col1
----
-3744
1

query I rowsort
SELECT ( - + 40 ) * - 74 * - - 66 * + 74 AS col1
----
14456640

onlyif mysql # aggregate syntax: 
query II rowsort label-5895
SELECT DISTINCT - 12, MAX( ALL - NULLIF ( 65, - 42 * + - 79 ) ) AS col2
----
-12
-65

skipif mysql # not compatible
query II rowsort label-5895
SELECT DISTINCT - 12, MAX ( ALL - NULLIF ( 65, - 42 * + - 79 ) ) AS col2
----
-12
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT ALL 97 * + SUM( 8 ) AS col1
----
776

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL 97 * + SUM ( 8 ) AS col1
----
776

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5898
SELECT ALL - 69 * 35 DIV + CAST( + + 93 AS SIGNED ) col0
----
-25

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL - 69 * 35 / + CAST ( + + 93 AS INTEGER ) col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT 80 - 33 * - + COALESCE ( MIN( ALL 76 ), 54 ) - - - 86
----
2502

skipif mysql # not compatible
query I rowsort label-5899
SELECT 80 - 33 * - + COALESCE ( MIN ( ALL 76 ), 54 ) - - - 86
----
2502

query I rowsort
SELECT 11 * - 95 col2
----
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT - MIN( DISTINCT - - 94 ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-5901
SELECT - MIN ( DISTINCT - - 94 ) col1
----
-94

query I rowsort
SELECT ALL - - 86 + ( 38 )
----
124

query II rowsort
SELECT + 1 AS col2, 20
----
1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT + 46 + + + 63 + - COUNT( * ) + 46 * + 41
----
1994

skipif mysql # not compatible
query I rowsort label-5904
SELECT + 46 + + + 63 + - COUNT ( * ) + 46 * + 41
----
1994

query I rowsort
SELECT ALL + + 74 * + + 44
----
3256

onlyif mysql # aggregate syntax: 
query II rowsort label-5906
SELECT - + 83 AS col2, 89 + + + MIN( ALL 93 )
----
-83
182

skipif mysql # not compatible
query II rowsort label-5906
SELECT - + 83 AS col2, 89 + + + MIN ( ALL 93 )
----
-83
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL - + 61 + - COUNT( * ) + 51 + + CASE 44 WHEN 78 + - 43 * - - 18 / - + COUNT( * ) - + 10 THEN - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - + 61 + - COUNT ( * ) + 51 + + CASE 44 WHEN 78 + - 43 * - - 18 / - + COUNT ( * ) - + 10 THEN - 95 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5908
SELECT ALL + 51 + - COUNT( * ) + - 77 - NULLIF ( + + 94, 19 ) + + 88 * - COUNT( * ) * - - CAST( NULL AS SIGNED ) * 44 - - + 82 + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + 51 + - COUNT ( * ) + - 77 - NULLIF ( + + 94, 19 ) + + 88 * - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * 44 - - + 82 + - 97
----
NULL

query I rowsort
SELECT 60 * - 17 AS col2
----
-1020

query I rowsort
SELECT DISTINCT + 40 + 11
----
51

query II rowsort
SELECT ALL 47, 77 + + COALESCE ( 86, - 66 + - + 64 + 50 ) AS col1
----
47
163

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT - SUM( + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-5912
SELECT - SUM ( + 14 )
----
-14

query II rowsort
SELECT DISTINCT - 80 AS col2, 73 AS col0
----
-80
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5914
SELECT ALL COALESCE ( - COUNT( * ), - MIN( + 41 ) - + 4 + - - CASE 12 WHEN + + 3 THEN NULL WHEN - 43 THEN + 60 ELSE + COALESCE ( 98, CAST( - COUNT( * ) AS SIGNED ), + 31, + 22 * + + 34 * - 1 ) END ) AS col0, - 39 * - CAST( - - 59 AS SIGNED ) * - 9 + + + 47 AS col1
----
-1
-20662

skipif mysql # not compatible
query II rowsort label-5914
SELECT ALL COALESCE ( - COUNT ( * ), - MIN ( + 41 ) - + 4 + - - CASE 12 WHEN + + 3 THEN NULL WHEN - 43 THEN + 60 ELSE + COALESCE ( 98, CAST ( - COUNT ( * ) AS INTEGER ), + 31, + 22 * + + 34 * - 1 ) END ) AS col0, - 39 * - CAST ( - - 59 AS INTEGER ) * - 9 + + + 47 AS col1
----
-1
-20662

query II rowsort
SELECT DISTINCT - - 11 AS col2, 89 AS col1
----
11
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT ALL - 41 * - COUNT( ALL 89 ) * + - 97 AS col1
----
-3977

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL - 41 * - COUNT ( ALL 89 ) * + - 97 AS col1
----
-3977

query II rowsort
SELECT DISTINCT - 17 * + + NULLIF ( 22, + 70 ) AS col2, - 13 + - ( + + 31 ) col1
----
-374
-44

query I rowsort
SELECT DISTINCT - 44 - 76 - + 24 AS col1
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5919
SELECT 63 DIV + CASE + - 76 WHEN - 17 THEN - CASE - + 15 WHEN CAST( + - COUNT( * ) AS SIGNED ) * - 65 + COUNT( * ) THEN NULL WHEN + 85 THEN NULL WHEN + 51 - + NULLIF ( ( + 40 ), - 14 * + 94 ) DIV + 59 THEN SUM( ALL + 61 ) * + 96 * - 88 + - MAX( + 45 ) * 2 ELSE NULL END + COUNT( DISTINCT - - COALESCE ( 61, + 89, CASE - 51 WHEN - - 33 + + ( + - 94 ) THEN 16 DIV 28 DIV + 27 + 80 * 59 * + 92 END + 71 ) ) * 81 WHEN 54 THEN 51 ELSE 77 END - 21 * - 76
----
1596

skipif mysql # not compatible
query I rowsort label-5919
SELECT 63 / + CASE + - 76 WHEN - 17 THEN - CASE - + 15 WHEN CAST ( + - COUNT ( * ) AS INTEGER ) * - 65 + COUNT ( * ) THEN NULL WHEN + 85 THEN NULL WHEN + 51 - + NULLIF ( ( + 40 ), - 14 * + 94 ) / + 59 THEN SUM ( ALL + 61 ) * + 96 * - 88 + - MAX ( + 45 ) * 2 ELSE NULL END + COUNT ( DISTINCT - - COALESCE ( 61, + 89, CASE - 51 WHEN - - 33 + + ( + - 94 ) THEN 16 / 28 / + 27 + 80 * 59 * + 92 END + 71 ) ) * 81 WHEN 54 THEN 51 ELSE 77 END - 21 * - 76
----
1596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5920
SELECT ALL - COALESCE ( 74, + - 72 * COUNT( - 75 ) + - 57 DIV + - 49 * + - NULLIF ( - COUNT( * ), + - COUNT( 79 ) + - COUNT( * ) ), 54 ) - 53 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL - COALESCE ( 74, + - 72 * COUNT ( - 75 ) + - 57 / + - 49 * + - NULLIF ( - COUNT ( * ), + - COUNT ( 79 ) + - COUNT ( * ) ), 54 ) - 53 AS col0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT CASE - COUNT( * ) WHEN + 6 THEN NULL ELSE + 17 END + + 55 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5921
SELECT CASE - COUNT ( * ) WHEN + 6 THEN NULL ELSE + 17 END + + 55 AS col2
----
72

query I rowsort
SELECT 44 * + 96 AS col1
----
4224

query I rowsort
SELECT 79 * - 85 AS col0
----
-6715

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT COUNT( - 45 ) + + COALESCE ( SUM( 96 ), + 35 ) + 60 * + 21
----
1357

skipif mysql # not compatible
query I rowsort label-5924
SELECT COUNT ( - 45 ) + + COALESCE ( SUM ( 96 ), + 35 ) + 60 * + 21
----
1357

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

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL 50 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5926
SELECT 69 + - 65, COUNT( * ) AS col0
----
4
1

skipif mysql # not compatible
query II rowsort label-5926
SELECT 69 + - 65, COUNT ( * ) AS col0
----
4
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5927
SELECT 76 DIV - 33
----
-2

skipif mysql # not compatible
query I rowsort label-5927
SELECT 76 / - 33
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5928
SELECT 73 * 8 + + 58 * + CAST( - 42 AS SIGNED ) * ( - 40 ) AS col1
----
98024

skipif mysql # not compatible
query I rowsort label-5928
SELECT 73 * 8 + + 58 * + CAST ( - 42 AS INTEGER ) * ( - 40 ) AS col1
----
98024

query I rowsort
SELECT ALL 44 * 10 * + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL COUNT( * ) + 96
----
97

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL COUNT ( * ) + 96
----
97

query I rowsort
SELECT + 45 * - 39 + + + ( ( - - 11 ) )
----
-1744

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT DISTINCT 90 * COUNT( DISTINCT - 8 )
----
90

skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT 90 * COUNT ( DISTINCT - 8 )
----
90

query I rowsort
SELECT 69 * + 81 * - - 51 AS col0
----
285039

query I rowsort
SELECT 4 + + 94 + + 4
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-5935
SELECT - COALESCE ( + 60, - - 98, + - MAX( + - 94 ) + + + 93 + - 10 ) col0, + 5
----
-60
5

skipif mysql # not compatible
query II rowsort label-5935
SELECT - COALESCE ( + 60, - - 98, + - MAX ( + - 94 ) + + + 93 + - 10 ) col0, + 5
----
-60
5

query I rowsort
SELECT ALL 43 + ( - 62 ) - ( 17 ) * - 1 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT ALL - COUNT( * ) + - 44 * + 48 * - 38
----
80255

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL - COUNT ( * ) + - 44 * + 48 * - 38
----
80255

query I rowsort
SELECT - NULLIF ( - 49, + 59 * + 98 ) + 44
----
93

query I rowsort
SELECT 74 * - ( 54 )
----
-3996

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5940
SELECT + 75 + + 57 - + + 27 * + CAST( CASE - 78 WHEN - 6 THEN - 17 WHEN + 43 THEN NULL END AS SIGNED ) + - - 32 AS col1, + 24
----
NULL
24

skipif mysql # not compatible
query II rowsort label-5940
SELECT + 75 + + 57 - + + 27 * + CAST ( CASE - 78 WHEN - 6 THEN - 17 WHEN + 43 THEN NULL END AS INTEGER ) + - - 32 AS col1, + 24
----
NULL
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT DISTINCT 54 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT 54 / + 94
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5942
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN + - 15 THEN + 69 ELSE NULL END * + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN + - 15 THEN + 69 ELSE NULL END * + - 31
----
NULL

query II rowsort
SELECT - 42 + - 97, 7 AS col1
----
-139
7

query I rowsort
SELECT 54 + - 8 AS col1
----
46

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

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT - - 29 - + - COUNT ( * ) AS col0
----
30

query I rowsort
SELECT ALL 39 * + NULLIF ( - 70, + - 72 ) AS col1
----
-2730

onlyif mysql # DIV for integer division: 
query I rowsort label-5947
SELECT ALL 43 - 51 + + + 64 DIV 55 * 59 * - 8 AS col2
----
-480

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL 43 - 51 + + + 64 / 55 * 59 * - 8 AS col2
----
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5948
SELECT - 63 + + + COALESCE ( - 86, + 96 ) * CASE + + 52 WHEN 52 + - 63 THEN + 82 * MIN( 27 ) + - - 78 + + 86 * - 26 * - SUM( ALL - + 12 ) DIV + - 87 DIV - 9 + - 46 * + - 11 * + COUNT( * ) WHEN + - 24 DIV + ( 7 ) - - - COALESCE ( - 27, - 71 * + 41 ) + - + 19 THEN 17 ELSE - 87 END * - MIN( ( + 19 ) ) col1
----
-142221

skipif mysql # not compatible
query I rowsort label-5948
SELECT - 63 + + + COALESCE ( - 86, + 96 ) * CASE + + 52 WHEN 52 + - 63 THEN + 82 * MIN ( 27 ) + - - 78 + + 86 * - 26 * - SUM ( ALL - + 12 ) / + - 87 / - 9 + - 46 * + - 11 * + COUNT ( * ) WHEN + - 24 / + ( 7 ) - - - COALESCE ( - 27, - 71 * + 41 ) + - + 19 THEN 17 ELSE - 87 END * - MIN ( ( + 19 ) ) col1
----
-142221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT DISTINCT 69 * + + CAST( NULL AS SIGNED ) * + - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT 69 * + + CAST ( NULL AS INTEGER ) * + - 45 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT + 74 * 31 * - NULLIF ( + COUNT( * ), - 61 / 79 ) + + 90 + + + 30 * 70 + + 14 * - - 77
----
974

skipif mysql # not compatible
query I rowsort label-5951
SELECT + 74 * 31 * - NULLIF ( + COUNT ( * ), - 61 / 79 ) + + 90 + + + 30 * 70 + + 14 * - - 77
----
974

query I rowsort
SELECT - 98 * - + 49 AS col1
----
4802

onlyif mysql # DIV for integer division: 
query I rowsort label-5953
SELECT 67 DIV + 40 + 54 col2
----
55

skipif mysql # not compatible
query I rowsort label-5953
SELECT 67 / + 40 + 54 col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5954
SELECT CASE + - 53 WHEN - 37 + + CAST( - 6 AS SIGNED ) THEN NULL ELSE + 5 END AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5954
SELECT CASE + - 53 WHEN - 37 + + CAST ( - 6 AS INTEGER ) THEN NULL ELSE + 5 END AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT - 62 * + ( 48 ) * + - 27 * - ( - COUNT( * ) )
----
80352

skipif mysql # not compatible
query I rowsort label-5955
SELECT - 62 * + ( 48 ) * + - 27 * - ( - COUNT ( * ) )
----
80352

query I rowsort
SELECT ALL + COALESCE ( + 91, 12 + + - 91 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT - COUNT( * ) * 89 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-5957
SELECT - COUNT ( * ) * 89 AS col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5958
SELECT ALL + 96 * + + ( + NULLIF ( - - CASE - 94 WHEN + - 74 + 51 THEN + AVG ( - 46 ) / 9 + + - ( 84 ) + + - COUNT( * ) * + CAST( NULL AS SIGNED ) END, + COUNT( * ) ) ) * + 60 + + + 10 * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL + 96 * + + ( + NULLIF ( - - CASE - 94 WHEN + - 74 + 51 THEN + AVG ( - 46 ) / 9 + + - ( 84 ) + + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) END, + COUNT ( * ) ) ) * + 60 + + + 10 * 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5959
SELECT ALL 48 * - + 61 + + + 58 * + CAST( + - 20 AS SIGNED ) AS col1
----
-4088

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL 48 * - + 61 + + + 58 * + CAST ( + - 20 AS INTEGER ) AS col1
----
-4088

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT DISTINCT + MIN( + 58 ) * - - 84 + - 86 AS col1
----
4786

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT + MIN ( + 58 ) * - - 84 + - 86 AS col1
----
4786

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT - MIN( ALL - - 61 ) * 76
----
-4636

skipif mysql # not compatible
query I rowsort label-5961
SELECT - MIN ( ALL - - 61 ) * 76
----
-4636

query I rowsort
SELECT - 2 * 59 AS col1
----
-118

query I rowsort
SELECT ALL 91 * - 21 * + 81 + - - 31 AS col2
----
-154760

query I rowsort
SELECT - 90 - - 48 AS col2
----
-42

query II rowsort
SELECT + 11 * - + 98 - - 51, 80 * + 69 - + 39 AS col1
----
-1027
5481

query I rowsort
SELECT - 28 * 26 AS col0
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT ALL - COUNT( * ) + + ( 14 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL - COUNT ( * ) + + ( 14 ) AS col1
----
13

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5969
SELECT ALL + 26 + + 46 + - CASE + - 70 WHEN + + 44 * + + ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE CAST( + NULLIF ( 32, + + CASE 1 WHEN + - 52 + + - ( - - 67 ) THEN - 57 ELSE + - COALESCE ( + - CAST( NULL AS SIGNED ), - 99, - 87 ) END ) AS SIGNED ) END * + 74 AS col2
----
-2296

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL + 26 + + 46 + - CASE + - 70 WHEN + + 44 * + + ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE CAST ( + NULLIF ( 32, + + CASE 1 WHEN + - 52 + + - ( - - 67 ) THEN - 57 ELSE + - COALESCE ( + - CAST ( NULL AS INTEGER ), - 99, - 87 ) END ) AS INTEGER ) END * + 74 AS col2
----
-2296

onlyif mysql # DIV for integer division: 
query I rowsort label-5970
SELECT ALL + 15 DIV 15
----
1

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL + 15 / 15
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT + - 46 - - COUNT( * ) + 38 + 62
----
55

skipif mysql # not compatible
query I rowsort label-5971
SELECT + - 46 - - COUNT ( * ) + 38 + 62
----
55

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5973
SELECT COUNT( * ) AS col0, + CASE + + 67 WHEN + + 67 * - + COUNT( * ) THEN + 24 + - COUNT( * ) WHEN - COALESCE ( + + MAX( + 77 ), 95 * - ( - - 16 ) ) * + 19 THEN NULL END + - 65 * 77 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5973
SELECT COUNT ( * ) AS col0, + CASE + + 67 WHEN + + 67 * - + COUNT ( * ) THEN + 24 + - COUNT ( * ) WHEN - COALESCE ( + + MAX ( + 77 ), 95 * - ( - - 16 ) ) * + 19 THEN NULL END + - 65 * 77 AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5974
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 78 * - MAX( 87 ) * + ( - 23 ) + 57 / + 63 * - 67 + 54, + 37 - - 46 + - ( - - COUNT( * ) ) AS col2
----
NULL
82

skipif mysql # not compatible
query II rowsort label-5974
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 78 * - MAX ( 87 ) * + ( - 23 ) + 57 / + 63 * - 67 + 54, + 37 - - 46 + - ( - - COUNT ( * ) ) AS col2
----
NULL
82

query I rowsort
SELECT ALL - 65 - 92 AS col0
----
-157

onlyif mysql # aggregate syntax: 
query II rowsort label-5976
SELECT - 32 AS col0, + COUNT( * ) AS col1
----
-32
1

skipif mysql # not compatible
query II rowsort label-5976
SELECT - 32 AS col0, + COUNT ( * ) AS col1
----
-32
1

query I rowsort
SELECT - ( - 36 ) + + NULLIF ( + 85, - 51 )
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5978
SELECT ALL CAST( + 97 AS SIGNED ) * + SUM( - - ( + ( + + 81 ) ) )
----
7857

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL CAST ( + 97 AS INTEGER ) * + SUM ( - - ( + ( + + 81 ) ) )
----
7857

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT DISTINCT 15 DIV + - 5
----
-3

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT 15 / + - 5
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT + CASE - 45 WHEN + + COUNT( * ) + - - 41 * 11 / - 2 * - ( + 92 ) + + - 94 THEN MIN( + 16 ) WHEN - COALESCE ( 17, - + 22 * - - COUNT( DISTINCT - ( + 30 ) ) ) + - 92 THEN NULL ELSE - 50 + - - 88 END + + 30 * - + 45 + + - 65 col0
----
-1377

skipif mysql # not compatible
query I rowsort label-5981
SELECT + CASE - 45 WHEN + + COUNT ( * ) + - - 41 * 11 / - 2 * - ( + 92 ) + + - 94 THEN MIN ( + 16 ) WHEN - COALESCE ( 17, - + 22 * - - COUNT ( DISTINCT - ( + 30 ) ) ) + - 92 THEN NULL ELSE - 50 + - - 88 END + + 30 * - + 45 + + - 65 col0
----
-1377

query I rowsort
SELECT + 10 * + 48
----
480

query I rowsort
SELECT + NULLIF ( + 8, 46 ) * - 10 * - ( - + 70 ) col0
----
-5600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5984
SELECT ALL 22 DIV - CASE 76 WHEN - SUM( ALL - 83 ) + - 11 * - 65 THEN 99 + + COUNT( * ) * - + 48 ELSE + 48 END * + 70 col2
----
0

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL 22 / - CASE 76 WHEN - SUM ( ALL - 83 ) + - 11 * - 65 THEN 99 + + COUNT ( * ) * - + 48 ELSE + 48 END * + 70 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT + COUNT( * ) - - CASE 52 WHEN 70 * COALESCE ( + 20, + COUNT( * ) + + - AVG ( - + 68 ) * + - COUNT( * ) * 42 - - 91, - 32 * + 40 / - 20 ) + - 95 - - + 44 + - + 90 * 0 THEN NULL WHEN + + COUNT( * ) / 66 - - + 24 + - - 29 * 35 THEN NULL ELSE + 80 END AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5985
SELECT + COUNT ( * ) - - CASE 52 WHEN 70 * COALESCE ( + 20, + COUNT ( * ) + + - AVG ( - + 68 ) * + - COUNT ( * ) * 42 - - 91, - 32 * + 40 / - 20 ) + - 95 - - + 44 + - + 90 * 0 THEN NULL WHEN + + COUNT ( * ) / 66 - - + 24 + - - 29 * 35 THEN NULL ELSE + 80 END AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5986
SELECT 64, COALESCE ( + 66, + 39, + 27 * - COUNT( - 8 ) * + 3 * - - 75 + - 28 ) * - + 3 AS col1
----
64
-198

skipif mysql # not compatible
query II rowsort label-5986
SELECT 64, COALESCE ( + 66, + 39, + 27 * - COUNT ( - 8 ) * + 3 * - - 75 + - 28 ) * - + 3 AS col1
----
64
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5987
SELECT - 26 col0, 33, 93 + + + COUNT( * ) + + COUNT( * ) * - + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + 69 * + + 91 AS col1
----
-26
33
NULL

skipif mysql # not compatible
query III rowsort label-5987
SELECT - 26 col0, 33, 93 + + + COUNT ( * ) + + COUNT ( * ) * - + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 69 * + + 91 AS col1
----
-26
33
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5988
SELECT 99 DIV COUNT( * ) * + CASE + COALESCE ( - 28, - - ( - - COUNT( * ) ) ) WHEN 27 + + COUNT( * ) + + + 18 * 24 THEN - - 99 * + COUNT( * ) * - 40 WHEN 41 THEN NULL ELSE - - 35 DIV - COUNT( * ) END - + 67 AS col2
----
-3532

skipif mysql # not compatible
query I rowsort label-5988
SELECT 99 / COUNT ( * ) * + CASE + COALESCE ( - 28, - - ( - - COUNT ( * ) ) ) WHEN 27 + + COUNT ( * ) + + + 18 * 24 THEN - - 99 * + COUNT ( * ) * - 40 WHEN 41 THEN NULL ELSE - - 35 / - COUNT ( * ) END - + 67 AS col2
----
-3532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5989
SELECT ALL CAST( - - 56 AS SIGNED ) DIV COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL CAST ( - - 56 AS INTEGER ) / COUNT ( * )
----
56

query I rowsort
SELECT ALL - 9 * + 16
----
-144

query I rowsort
SELECT DISTINCT 21 * - - 71 AS col1
----
1491

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5993
SELECT ALL - COUNT( + - 75 ) DIV - - 6 * 55 * + CAST( - 20 AS SIGNED ) - - 64 + - COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL - COUNT ( + - 75 ) / - - 6 * 55 * + CAST ( - 20 AS INTEGER ) - - 64 + - COUNT ( * ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT + 94 * - + 72 - + - COUNT( * ) AS col0
----
-6767

skipif mysql # not compatible
query I rowsort label-5994
SELECT + 94 * - + 72 - + - COUNT ( * ) AS col0
----
-6767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5995
SELECT DISTINCT + COUNT( * ) DIV 2 col2
----
0

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT + COUNT ( * ) / 2 col2
----
0

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

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT COUNT ( * ) / 42 + - 53 AS col0
----
-53

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

query I rowsort
SELECT ALL 19 * 82 * - - 87 + - 88 AS col2
----
135458

onlyif mysql # DIV for integer division: 
query II rowsort label-5999
SELECT - 79 * ( + 25 ) * + 65 AS col1, COALESCE ( - 84, - 42 DIV - 41 DIV + 11 ) + - 30 * 38
----
-128375
-1224

skipif mysql # not compatible
query II rowsort label-5999
SELECT - 79 * ( + 25 ) * + 65 AS col1, COALESCE ( - 84, - 42 / - 41 / + 11 ) + - 30 * 38
----
-128375
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT + COUNT( * ) * + - 18 + + + 18
----
0

skipif mysql # not compatible
query I rowsort label-6000
SELECT + COUNT ( * ) * + - 18 + + + 18
----
0

query I rowsort
SELECT - 67 + 22
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT - COUNT( * ) + - 73 * - 95
----
6934

skipif mysql # not compatible
query I rowsort label-6002
SELECT - COUNT ( * ) + - 73 * - 95
----
6934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6003
SELECT ALL + COUNT( * ) DIV + CASE WHEN NOT 8 <> + - ( 70 ) THEN - - ( + 99 ) + 93 ELSE - + 16 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL + COUNT ( * ) / + CASE WHEN NOT 8 <> + - ( 70 ) THEN - - ( + 99 ) + 93 ELSE - + 16 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT + MAX( - - ( COALESCE ( - 83, - 88, + 67 * - + 49 ) ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-6004
SELECT + MAX ( - - ( COALESCE ( - 83, - 88, + 67 * - + 49 ) ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ALL + + 0 * - 56 + SUM( ALL + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL + + 0 * - 56 + SUM ( ALL + 23 )
----
23

query II rowsort
SELECT - 93, CASE - + 31 WHEN - 61 + - 50 * - 32 THEN - 7 + + 27 WHEN + - 31 THEN + - 74 ELSE NULL END AS col0
----
-93
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT - - ( + - 61 ) * + 63 + - + COALESCE ( + 41, - 93 * - + 41 - - + 16 - + - 87 * - COUNT( * ) + 45 ) * - COUNT( * ) col0
----
-3802

skipif mysql # not compatible
query I rowsort label-6007
SELECT - - ( + - 61 ) * + 63 + - + COALESCE ( + 41, - 93 * - + 41 - - + 16 - + - 87 * - COUNT ( * ) + 45 ) * - COUNT ( * ) col0
----
-3802

query I rowsort
SELECT - 88 * + - 42
----
3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6009
SELECT - 37, + 97 * + COALESCE ( + - 71, - MAX( - 29 ) DIV - 47 * - - 39, + 93 + + 50 * + 84, - 50 * 43 ) AS col1
----
-37
-6887

skipif mysql # not compatible
query II rowsort label-6009
SELECT - 37, + 97 * + COALESCE ( + - 71, - MAX ( - 29 ) / - 47 * - - 39, + 93 + + 50 * + 84, - 50 * 43 ) AS col1
----
-37
-6887

query I rowsort
SELECT - 62 + - ( + + 70 )
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6011
SELECT DISTINCT - CAST( NULLIF ( - 34, - NULLIF ( - 65, + + 14 ) ) AS SIGNED ), 80 + + + 36 - + 58 * + 52 * 51 * + + 78 * COALESCE ( + - ( + 71 ), NULLIF ( 71, + - 44 ) ) + - 44 + + 20 AS col1
----
34
851833100

skipif mysql # not compatible
query II rowsort label-6011
SELECT DISTINCT - CAST ( NULLIF ( - 34, - NULLIF ( - 65, + + 14 ) ) AS INTEGER ), 80 + + + 36 - + 58 * + 52 * 51 * + + 78 * COALESCE ( + - ( + 71 ), NULLIF ( 71, + - 44 ) ) + - 44 + + 20 AS col1
----
34
851833100

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6013
SELECT - 15 DIV 50 DIV - + MIN( DISTINCT 82 ) * 67 * 58 - + 21 AS col0, - 3 + - COUNT( * ) AS col0
----
-21
-4

skipif mysql # not compatible
query II rowsort label-6013
SELECT - 15 / 50 / - + MIN ( DISTINCT 82 ) * 67 * 58 - + 21 AS col0, - 3 + - COUNT ( * ) AS col0
----
-21
-4

query I rowsort
SELECT + 85 * 69
----
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - + 98 + + - 22 + - COUNT( * ) * - - 25 AS col1
----
-145

skipif mysql # not compatible
query I rowsort label-6015
SELECT - + 98 + + - 22 + - COUNT ( * ) * - - 25 AS col1
----
-145

query II rowsort
SELECT - - 23 + + 27 col1, ( 35 )
----
50
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6017
SELECT ALL - - 83 DIV ( + CAST( - COUNT( * ) AS SIGNED ) ) * - CAST( 69 AS SIGNED ) + + COUNT( * ) AS col2
----
5728

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - - 83 / ( + CAST ( - COUNT ( * ) AS INTEGER ) ) * - CAST ( 69 AS INTEGER ) + + COUNT ( * ) AS col2
----
5728

onlyif mysql # DIV for integer division: 
query II rowsort label-6018
SELECT ALL 0 col0, - 26 DIV 75
----
0
0

skipif mysql # not compatible
query II rowsort label-6018
SELECT ALL 0 col0, - 26 / 75
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6019
SELECT + 65 * - - COUNT( * ) - - - COUNT( - 56 ) AS col1, - 83 * + 79 * + + 9 * + NULLIF ( + 33, + - 78 * - + SUM( DISTINCT 98 ) + - + 54 * + 80 * ( - 33 ) * + - CASE - CAST( ( + + 3 ) AS SIGNED ) WHEN - 37 THEN NULL WHEN - 94 THEN - 8 * - - 13 END + 4 + - - 8 )
----
64
-1947429

skipif mysql # not compatible
query II rowsort label-6019
SELECT + 65 * - - COUNT ( * ) - - - COUNT ( - 56 ) AS col1, - 83 * + 79 * + + 9 * + NULLIF ( + 33, + - 78 * - + SUM ( DISTINCT 98 ) + - + 54 * + 80 * ( - 33 ) * + - CASE - CAST ( ( + + 3 ) AS INTEGER ) WHEN - 37 THEN NULL WHEN - 94 THEN - 8 * - - 13 END + 4 + - - 8 )
----
64
-1947429

query I rowsort
SELECT - 74 + - 73 * - 83
----
5985

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6022
SELECT COUNT( * ) + + - 60 DIV + 1 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-6022
SELECT COUNT ( * ) + + - 60 / + 1 AS col2
----
-59

query I rowsort
SELECT DISTINCT + 95 * - 56
----
-5320

query I rowsort
SELECT ALL - 41 + + 36 + 75
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6025
SELECT 85 + SUM( DISTINCT - 29 ) + - COUNT( DISTINCT - 17 ) - - ( 72 ) + - 7 + + + ( 41 ) * - NULLIF ( - CASE + 1 WHEN - + 35 * + CAST( + + ( + 54 ) AS SIGNED ) + + CASE + NULLIF ( - 95, + 78 - - 32 ) WHEN CASE - 58 WHEN - + CAST( - 53 AS DECIMAL ) * - ( - - COUNT( - + 73 ) ) THEN 76 END THEN + COUNT( * ) ELSE + + COALESCE ( - - COUNT( * ), - COALESCE ( + + 6, COUNT( * ) * 47 * - 10 * 90, + 16 + + 51 ) ) END * - ( 97 ) THEN 54 + - 29 / + COALESCE ( 43, MAX( + NULLIF ( 72, 94 ) ) ) WHEN - 41 THEN 52 - + 8 * 79 END, 44 ) * 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT 85 + SUM ( DISTINCT - 29 ) + - COUNT ( DISTINCT - 17 ) - - ( 72 ) + - 7 + + + ( 41 ) * - NULLIF ( - CASE + 1 WHEN - + 35 * + CAST ( + + ( + 54 ) AS INTEGER ) + + CASE + NULLIF ( - 95, + 78 - - 32 ) WHEN CASE - 58 WHEN - + CAST ( - 53 AS REAL ) * - ( - - COUNT ( - + 73 ) ) THEN 76 END THEN + COUNT ( * ) ELSE + + COALESCE ( - - COUNT ( * ), - COALESCE ( + + 6, COUNT ( * ) * 47 * - 10 * 90, + 16 + + 51 ) ) END * - ( 97 ) THEN 54 + - 29 / + COALESCE ( 43, MAX ( + NULLIF ( 72, 94 ) ) ) WHEN - 41 THEN 52 - + 8 * 79 END, 44 ) * 92 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT 41 / 53 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT 41 / 53 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 85 * - 84 AS col2
----
-7140

query II rowsort
SELECT 20 * + 73 AS col1, 31 AS col1
----
1460
31

query I rowsort
SELECT DISTINCT 20 + + 56 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT ALL - COUNT( * ) - - COUNT( DISTINCT - NULLIF ( + 27, + + ( - - 41 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL - COUNT ( * ) - - COUNT ( DISTINCT - NULLIF ( + 27, + + ( - - 41 ) ) ) AS col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6032
SELECT DISTINCT 75 * COALESCE ( CAST( NULL AS SIGNED ), 69 )
----
5175

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT 75 * COALESCE ( CAST ( NULL AS INTEGER ), 69 )
----
5175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6033
SELECT ALL + 90 * 42 + - COUNT( - 35 ) + - 51 - - 82 + CAST( NULL AS SIGNED ) * - - ( - - 17 ) * + - 30 + 97 / 27 * - 40 * + COALESCE ( + - COUNT( * ), - - ( + 63 ) ) + - 64 * + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + 90 * 42 + - COUNT ( - 35 ) + - 51 - - 82 + CAST ( NULL AS INTEGER ) * - - ( - - 17 ) * + - 30 + 97 / 27 * - 40 * + COALESCE ( + - COUNT ( * ), - - ( + 63 ) ) + - 64 * + + 12
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6034
SELECT 49 DIV + 76 * + 54
----
0

skipif mysql # not compatible
query I rowsort label-6034
SELECT 49 / + 76 * + 54
----
0

query I rowsort
SELECT 83 * - 43 AS col2
----
-3569

query I rowsort
SELECT + 55 * 67 AS col1
----
3685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6037
SELECT COALESCE ( + CAST( - 18 AS SIGNED ), COUNT( * ) DIV 63 + NULLIF ( - 29, - - 5 ), ( 90 ) * COUNT( * ) + 31 + + 1, 15 * - 90 + COUNT( * ) * + - 75 ) - - - CASE - 29 WHEN + COUNT( * ) DIV + 74 - COUNT( * ) * + + 67 THEN + + 65 * - - COUNT( * ) + 99 + COALESCE ( + 32, 6 ) + 85 ELSE - - 18 END + + COUNT( * ) * - 52 + + 21 * + COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6037
SELECT COALESCE ( + CAST ( - 18 AS INTEGER ), COUNT ( * ) / 63 + NULLIF ( - 29, - - 5 ), ( 90 ) * COUNT ( * ) + 31 + + 1, 15 * - 90 + COUNT ( * ) * + - 75 ) - - - CASE - 29 WHEN + COUNT ( * ) / + 74 - COUNT ( * ) * + + 67 THEN + + 65 * - - COUNT ( * ) + 99 + COALESCE ( + 32, 6 ) + 85 ELSE - - 18 END + + COUNT ( * ) * - 52 + + 21 * + COUNT ( * ) AS col1
----
-67

query I rowsort
SELECT - - NULLIF ( 35, 69 ) * + 89 - 84 col1
----
3031

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT - 22 * - CASE - 36 WHEN 47 THEN + CAST( NULL AS SIGNED ) + - 84 ELSE NULL END * - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT - 22 * - CASE - 36 WHEN 47 THEN + CAST ( NULL AS INTEGER ) + - 84 ELSE NULL END * - + 2
----
NULL

query I rowsort
SELECT ( 95 ) + + 48 * - 12
----
-481

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT DISTINCT + 24 * + - COUNT( * ) * + - COUNT( * ) * - 85 + + - 33 AS col2
----
-2073

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT + 24 * + - COUNT ( * ) * + - COUNT ( * ) * - 85 + + - 33 AS col2
----
-2073

query I rowsort
SELECT ALL - 13 * + 65 AS col2
----
-845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6043
SELECT ALL COUNT( DISTINCT CAST( NULL AS SIGNED ) ), 41 AS col1
----
0
41

skipif mysql # not compatible
query II rowsort label-6043
SELECT ALL COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ), 41 AS col1
----
0
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT 29 * + COUNT( * ) * - - 6
----
174

skipif mysql # not compatible
query I rowsort label-6044
SELECT 29 * + COUNT ( * ) * - - 6
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT DISTINCT - 80 * NULLIF ( ( + - MAX( - - 89 ) ), - ( + 56 ) * - 12 ) AS col2
----
7120

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT - 80 * NULLIF ( ( + - MAX ( - - 89 ) ), - ( + 56 ) * - 12 ) AS col2
----
7120

onlyif mysql # aggregate syntax: 
query II rowsort label-6046
SELECT 46 col1, 36 * + - 42 + - COUNT( - - 49 ) AS col0
----
46
-1513

skipif mysql # not compatible
query II rowsort label-6046
SELECT 46 col1, 36 * + - 42 + - COUNT ( - - 49 ) AS col0
----
46
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL + 9 + + NULLIF ( 89, - - 62 ) + - 22 * - COUNT( * ) * - 78 AS col1
----
-1618

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + 9 + + NULLIF ( 89, - - 62 ) + - 22 * - COUNT ( * ) * - 78 AS col1
----
-1618

query I rowsort
SELECT 63 + + + 42 AS col0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-6049
SELECT 69 DIV - + 18
----
-3

skipif mysql # not compatible
query I rowsort label-6049
SELECT 69 / - + 18
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT ALL - 36 + + NULLIF ( + + 18, - 19 ) + - 66 DIV - 34 + + 68 * + - 37 * - 37
----
93075

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL - 36 + + NULLIF ( + + 18, - 19 ) + - 66 / - 34 + + 68 * + - 37 * - 37
----
93075

query II rowsort
SELECT - 79 AS col0, 77
----
-79
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL + 9 + - + 0 - - COUNT( - - 77 )
----
10

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL + 9 + - + 0 - - COUNT ( - - 77 )
----
10

query I rowsort
SELECT DISTINCT - 55 + + 69 col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6054
SELECT 95 DIV - 26
----
-3

skipif mysql # not compatible
query I rowsort label-6054
SELECT 95 / - 26
----
-3

query I rowsort
SELECT ALL - 37 + 68 + + 23 * 41
----
974

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

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

query I rowsort
SELECT 75 - - 33
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT COUNT( 98 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6058
SELECT COUNT ( 98 ) AS col1
----
1

query I rowsort
SELECT ALL 61 * - 7 AS col0
----
-427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6060
SELECT MIN( + + NULLIF ( CAST( + - 78 AS SIGNED ), - 13 ) ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-6060
SELECT MIN ( + + NULLIF ( CAST ( + - 78 AS INTEGER ), - 13 ) ) col2
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6061
SELECT DISTINCT + CAST( + 7 AS SIGNED ) * + COUNT( - 49 ) - + + 34 * ( + 80 ) AS col1
----
-2713

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT + CAST ( + 7 AS INTEGER ) * + COUNT ( - 49 ) - + + 34 * ( + 80 ) AS col1
----
-2713

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

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

query I rowsort
SELECT 95 * 9 + - - ( - 19 ) AS col1
----
836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6065
SELECT - + 78 DIV - 14 * + - COUNT( * ) + + - 23 + + 5 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6065
SELECT - + 78 / - 14 * + - COUNT ( * ) + + - 23 + + 5 AS col2
----
-23

query II rowsort
SELECT + + 41 AS col0, + 91 * - 62 + - 43 + 21 * + 14 * + - 74
----
41
-27441

query I rowsort
SELECT ALL + 3 * 37
----
111

query I rowsort
SELECT ALL 36 * - ( - 26 )
----
936

onlyif mysql # DIV for integer division: 
query I rowsort label-6069
SELECT + 6 DIV + COALESCE ( + 11, + + 36 + + 83 * + + 34, - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-6069
SELECT + 6 / + COALESCE ( + 11, + + 36 + + 83 * + + 34, - 57 )
----
0

query I rowsort
SELECT DISTINCT 76 * + 29 AS col1
----
2204

query I rowsort
SELECT + 20 * 54 AS col0
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT + - COUNT( * ) + - 72 - 76 + - 9 + 19 * + - 62 * - 55 - 80 * + 0 col0
----
64632

skipif mysql # not compatible
query I rowsort label-6072
SELECT + - COUNT ( * ) + - 72 - 76 + - 9 + 19 * + - 62 * - 55 - 80 * + 0 col0
----
64632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6073
SELECT CAST( NULL AS SIGNED ) AS col1, + COALESCE ( COUNT( * ), - 71 - + 94 ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6073
SELECT CAST ( NULL AS INTEGER ) AS col1, + COALESCE ( COUNT ( * ), - 71 - + 94 ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6074
SELECT + + 57 + + COALESCE ( - - 50, - - ( - 60 ) - 0 + 82 * - 52 - - 27 DIV - CASE + NULLIF ( 65, + 13 * + - 9 ) WHEN 29 + MIN( CAST( ( + 46 ) AS SIGNED ) ) THEN - COUNT( * ) END, - - 37 * - 21 )
----
107

skipif mysql # not compatible
query I rowsort label-6074
SELECT + + 57 + + COALESCE ( - - 50, - - ( - 60 ) - 0 + 82 * - 52 - - 27 / - CASE + NULLIF ( 65, + 13 * + - 9 ) WHEN 29 + MIN ( CAST ( ( + 46 ) AS INTEGER ) ) THEN - COUNT ( * ) END, - - 37 * - 21 )
----
107

query I rowsort
SELECT DISTINCT + - 21 col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6076
SELECT + CAST( + + CAST( - + CASE - - COUNT( * ) WHEN + 16 + - 87 - 83 * + - 99 * + COUNT( * ) THEN 2 WHEN ( 71 ) THEN NULL ELSE NULL END AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT + CAST ( + + CAST ( - + CASE - - COUNT ( * ) WHEN + 16 + - 87 - 83 * + - 99 * + COUNT ( * ) THEN 2 WHEN ( 71 ) THEN NULL ELSE NULL END AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT ALL + 2 + COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL + 2 + COUNT ( * ) col1
----
3

query I rowsort
SELECT + 22 + + 41
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT DISTINCT - MIN( ALL + 19 ) + 36
----
17

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT - MIN ( ALL + 19 ) + 36
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT ALL MAX( ALL 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL MAX ( ALL 78 ) AS col2
----
78

query I rowsort
SELECT ALL 63 + - + 67
----
-4

query I rowsort
SELECT DISTINCT 57 + - 33 * + - 53
----
1806

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT - CASE COUNT( * ) WHEN - SUM( ALL + + 8 ) + - COUNT( * ) THEN + COUNT( * ) + + 61 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT - CASE COUNT ( * ) WHEN - SUM ( ALL + + 8 ) + - COUNT ( * ) THEN + COUNT ( * ) + + 61 END col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT - 80 + COUNT( DISTINCT - 59 ) - + + 6
----
-85

skipif mysql # not compatible
query I rowsort label-6086
SELECT - 80 + COUNT ( DISTINCT - 59 ) - + + 6
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6087
SELECT - CAST( - - 49 AS SIGNED ) + 67 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6087
SELECT - CAST ( - - 49 AS INTEGER ) + 67 AS col2
----
18

query II rowsort
SELECT - 97 + - 60 AS col2, - 82 AS col0
----
-157
-82

query I rowsort
SELECT - 56 * - + 33
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT - 20 * - COUNT( * ) * 9 AS col0
----
180

skipif mysql # not compatible
query I rowsort label-6090
SELECT - 20 * - COUNT ( * ) * 9 AS col0
----
180

query I rowsort
SELECT - 37 + + 90 + - - 65 + 11 * - - 17
----
305

onlyif mysql # DIV for integer division: 
query I rowsort label-6092
SELECT ALL + 6 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL + 6 / - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - - 87 * - - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-6093
SELECT - - 87 * - - COUNT ( * )
----
87

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

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

query I rowsort
SELECT ALL - - 81 * + + 96
----
7776

query I rowsort
SELECT ( - - 0 ) AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT + - COALESCE ( 53, - AVG ( DISTINCT - 31 ) DIV + 53 + - 78 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6098
SELECT + - COALESCE ( 53, - AVG ( DISTINCT - 31 ) / + 53 + - 78 ) AS col2
----
-53

query I rowsort
SELECT ALL - ( - 0 ) * - 38 + - 69 * 4
----
-276

query I rowsort
SELECT + - 86 * - 86 AS col2
----
7396

onlyif mysql # DIV for integer division: 
query I rowsort label-6101
SELECT + 40 DIV + - 73
----
0

skipif mysql # not compatible
query I rowsort label-6101
SELECT + 40 / + - 73
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6102
SELECT + - NULLIF ( + - 30, 20 * + - 65 DIV - 9 * - + 85 ) DIV 10
----
3

skipif mysql # not compatible
query I rowsort label-6102
SELECT + - NULLIF ( + - 30, 20 * + - 65 / - 9 * - + 85 ) / 10
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6103
SELECT 50 * CASE - 38 WHEN - 5 * + 86 + - CAST( NULL AS SIGNED ) THEN - ( + 74 ) * - 45 * 81 END + + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6103
SELECT 50 * CASE - 38 WHEN - 5 * + 86 + - CAST ( NULL AS INTEGER ) THEN - ( + 74 ) * - 45 * 81 END + + 67 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 55 * - 37
----
-2035

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT ALL + 22 * ( ( + 31 ) ) + + + COUNT( * ) - - - 24 * + 81 col1
----
-1261

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL + 22 * ( ( + 31 ) ) + + + COUNT ( * ) - - - 24 * + 81 col1
----
-1261

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

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL MIN ( - 47 )
----
-47

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

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL - COUNT ( * ) * + 58 + 91 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT MAX( ALL - - NULLIF ( - 24, - + 81 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-6108
SELECT MAX ( ALL - - NULLIF ( - 24, - + 81 ) )
----
-24

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT + CAST( - 75 AS SIGNED ) - 82 - + + 7 * - 59 AS col2
----
256

skipif mysql # not compatible
query I rowsort label-6110
SELECT + CAST ( - 75 AS INTEGER ) - 82 - + + 7 * - 59 AS col2
----
256

onlyif mysql # aggregate syntax: 
query II rowsort label-6111
SELECT SUM( + - ( 47 ) ) AS col1, + 34 + 2 + - + 82 AS col2
----
-47
-46

skipif mysql # not compatible
query II rowsort label-6111
SELECT SUM ( + - ( 47 ) ) AS col1, + 34 + 2 + - + 82 AS col2
----
-47
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT MAX( DISTINCT COALESCE ( + 67, - - 69 + + - 26 * - 39 ) )
----
67

skipif mysql # not compatible
query I rowsort label-6112
SELECT MAX ( DISTINCT COALESCE ( + 67, - - 69 + + - 26 * - 39 ) )
----
67

query II rowsort
SELECT 71, - ( - 96 ) + + + 2 AS col0
----
71
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6114
SELECT + CAST( - CASE - 11 WHEN + - 40 + + 88 + - 20 THEN 80 / + AVG ( - 61 ) END AS SIGNED ) + + + 66 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT + CAST ( - CASE - 11 WHEN + - 40 + + 88 + - 20 THEN 80 / + AVG ( - 61 ) END AS INTEGER ) + + + 66 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6115
SELECT ALL COALESCE ( + COUNT( DISTINCT + + 21 ), - - 90 - + 24, ( + COALESCE ( + 13, 85 ) ), - 57 + - 4 - CASE + CAST( NULL AS SIGNED ) WHEN + 19 THEN 27 + + 57 WHEN + NULLIF ( - 7, + 4 ) * - COUNT( * ) * + 89 * - NULLIF ( 38, - - ( + - 70 ) ) * + 30 THEN NULL ELSE - 8 END + 23 DIV 43 * + + 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL COALESCE ( + COUNT ( DISTINCT + + 21 ), - - 90 - + 24, ( + COALESCE ( + 13, 85 ) ), - 57 + - 4 - CASE + CAST ( NULL AS INTEGER ) WHEN + 19 THEN 27 + + 57 WHEN + NULLIF ( - 7, + 4 ) * - COUNT ( * ) * + 89 * - NULLIF ( 38, - - ( + - 70 ) ) * + 30 THEN NULL ELSE - 8 END + 23 / 43 * + + 37 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - ( 36 ) * 30 AS col1
----
-1080

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6117
SELECT DISTINCT + CAST( - 33 AS SIGNED ) * - 33 AS col2, CAST( NULL AS SIGNED ) AS col0
----
1089
NULL

skipif mysql # not compatible
query II rowsort label-6117
SELECT DISTINCT + CAST ( - 33 AS INTEGER ) * - 33 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
1089
NULL

query I rowsort
SELECT - 96 * + + 40 AS col2
----
-3840

onlyif mysql # aggregate syntax: 
query II rowsort label-6119
SELECT DISTINCT COUNT( * ) * + COALESCE ( SUM( ALL + - 97 ), + 93 * - 80 ) AS col1, 90 AS col0
----
-97
90

skipif mysql # not compatible
query II rowsort label-6119
SELECT DISTINCT COUNT ( * ) * + COALESCE ( SUM ( ALL + - 97 ), + 93 * - 80 ) AS col1, 90 AS col0
----
-97
90

query I rowsort
SELECT ALL COALESCE ( - 92, + 58 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT - 13 * 11 + + 61 * + 2 + - COUNT( * ) + + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-6121
SELECT - 13 * 11 + + 61 * + 2 + - COUNT ( * ) + + COUNT ( * )
----
-21

query I rowsort
SELECT + 52 + - - ( + 57 ) + + - 21 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6123
SELECT + - MAX( + ( - CAST( NULL AS SIGNED ) ) ), - CAST( NULL AS SIGNED ) / - 20 + - NULLIF ( + 36, + ( 19 ) / + 47 - + 50 ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6123
SELECT + - MAX ( + ( - CAST ( NULL AS INTEGER ) ) ), - CAST ( NULL AS INTEGER ) / - 20 + - NULLIF ( + 36, + ( 19 ) / + 47 - + 50 ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL + MIN( DISTINCT 12 ) + 34
----
46

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL + MIN ( DISTINCT 12 ) + 34
----
46

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6126
SELECT 90 DIV COUNT( * ) + + + COUNT( * ) + - 99 * + 94 + 50 + - + 10 - - 55 DIV + 28 + + + 81 + 68 AS col1
----
-9025

skipif mysql # not compatible
query I rowsort label-6126
SELECT 90 / COUNT ( * ) + + + COUNT ( * ) + - 99 * + 94 + 50 + - + 10 - - 55 / + 28 + + + 81 + 68 AS col1
----
-9025

query I rowsort
SELECT - 59 * 29 * 16
----
-27376

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT 5 * - ( ( COUNT( DISTINCT + - 41 ) ) ) + + 75
----
70

skipif mysql # not compatible
query I rowsort label-6129
SELECT 5 * - ( ( COUNT ( DISTINCT + - 41 ) ) ) + + 75
----
70

query I rowsort
SELECT DISTINCT + ( - 42 ) * - 42 + + 99
----
1863

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT ALL + COUNT( * ) - + 10 + + + 43
----
34

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL + COUNT ( * ) - + 10 + + + 43
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT + 99 * + + 23 * COUNT( 96 ) + 62
----
2339

skipif mysql # not compatible
query I rowsort label-6132
SELECT + 99 * + + 23 * COUNT ( 96 ) + 62
----
2339

query I rowsort
SELECT ALL - NULLIF ( + 42, 10 ) AS col2
----
-42

query I rowsort
SELECT 98 + - 54
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6135
SELECT COALESCE ( - - 87, - 11 * 21 * - + 3, + - COUNT( * ) ) + ( - 35 ) - - COUNT( * ) DIV - - 22 * - + ( - 54 ) + + 77 - + 1 * - 54
----
183

skipif mysql # not compatible
query I rowsort label-6135
SELECT COALESCE ( - - 87, - 11 * 21 * - + 3, + - COUNT ( * ) ) + ( - 35 ) - - COUNT ( * ) / - - 22 * - + ( - 54 ) + + 77 - + 1 * - 54
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ALL MAX( - - 70 ) - + 82
----
-12

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL MAX ( - - 70 ) - + 82
----
-12

query I rowsort
SELECT ( + 62 ) * + 0 + - + 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL ( + 21 ) * + COUNT( * ) col1
----
21

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL ( + 21 ) * + COUNT ( * ) col1
----
21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6140
SELECT ( + 34 ) DIV - 32 + + + COUNT( * ) + - NULLIF ( + 23, - 45 ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-6140
SELECT ( + 34 ) / - 32 + + + COUNT ( * ) + - NULLIF ( + 23, - 45 ) col2
----
-23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6142
SELECT 3 * + - CASE + CAST( NULL AS SIGNED ) WHEN + 81 * - 49 + 66 + - 33 * + CAST( - + CASE + COUNT( * ) WHEN - COALESCE ( + 11, + 54 * + 33 + ( COALESCE ( - 29, 91, + 10 * - - ( + 43 ) + + ( - - 29 ) / - 3 ) ) ) THEN - 51 WHEN - + 35 THEN - - COALESCE ( + - COUNT( * ), + CASE - 71 WHEN 48 + - + 89 / - 49 + - COUNT( * ) * + 4 THEN 70 WHEN 90 + - - 33 THEN - CASE - + 48 WHEN + 42 * - 25 THEN - 79 + - + 49 WHEN + + ( 85 ) * + ( + 40 ) THEN NULL ELSE NULL END - + 65 WHEN - CASE 17 WHEN - COUNT( * ) THEN NULL WHEN COUNT( * ) + 24 / 53 THEN + 17 END / + ( 44 * - 6 + + 61 ) THEN - 66 ELSE NULL END, 17 ) WHEN 8 + COALESCE ( MAX( - 54 ) - COUNT( * ) / + NULLIF ( - 21, 58 ), 71, 56 - - 68 ) THEN NULL END AS SIGNED ) THEN NULL WHEN + 49 + - 47 THEN NULL WHEN NULLIF ( + 55, - 26 - + 71 ) + COUNT( * ) THEN NULL ELSE - 34 + 2 END
----
96

skipif mysql # not compatible
query I rowsort label-6142
SELECT 3 * + - CASE + CAST ( NULL AS INTEGER ) WHEN + 81 * - 49 + 66 + - 33 * + CAST ( - + CASE + COUNT ( * ) WHEN - COALESCE ( + 11, + 54 * + 33 + ( COALESCE ( - 29, 91, + 10 * - - ( + 43 ) + + ( - - 29 ) / - 3 ) ) ) THEN - 51 WHEN - + 35 THEN - - COALESCE ( + - COUNT ( * ), + CASE - 71 WHEN 48 + - + 89 / - 49 + - COUNT ( * ) * + 4 THEN 70 WHEN 90 + - - 33 THEN - CASE - + 48 WHEN + 42 * - 25 THEN - 79 + - + 49 WHEN + + ( 85 ) * + ( + 40 ) THEN NULL ELSE NULL END - + 65 WHEN - CASE 17 WHEN - COUNT ( * ) THEN NULL WHEN COUNT ( * ) + 24 / 53 THEN + 17 END / + ( 44 * - 6 + + 61 ) THEN - 66 ELSE NULL END, 17 ) WHEN 8 + COALESCE ( MAX ( - 54 ) - COUNT ( * ) / + NULLIF ( - 21, 58 ), 71, 56 - - 68 ) THEN NULL END AS INTEGER ) THEN NULL WHEN + 49 + - 47 THEN NULL WHEN NULLIF ( + 55, - 26 - + 71 ) + COUNT ( * ) THEN NULL ELSE - 34 + 2 END
----
96

query II rowsort
SELECT 56 AS col2, + 74 col0
----
56
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6144
SELECT 48 DIV + - 31 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6144
SELECT 48 / + - 31 col2
----
-1

query I rowsort
SELECT 19 * - + 66 col1
----
-1254

onlyif mysql # DIV for integer division: 
query I rowsort label-6146
SELECT 55 + 84 DIV 2 + - 67 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6146
SELECT 55 + 84 / 2 + - 67 AS col2
----
30

query II rowsort
SELECT DISTINCT 11 AS col2, 83
----
11
83

query I rowsort
SELECT + 50 * - ( + ( + + 37 ) )
----
-1850

onlyif mysql # DIV for integer division: 
query II rowsort label-6149
SELECT DISTINCT - 70, NULLIF ( - 80, 20 ) DIV - 64 AS col1
----
-70
1

skipif mysql # not compatible
query II rowsort label-6149
SELECT DISTINCT - 70, NULLIF ( - 80, 20 ) / - 64 AS col1
----
-70
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT ALL + - 13 + + CASE - 43 WHEN - - 85 THEN NULL WHEN - + 69 THEN - 60 * - + 15 - + CAST( NULL AS SIGNED ) + - + 85 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL + - 13 + + CASE - 43 WHEN - - 85 THEN NULL WHEN - + 69 THEN - 60 * - + 15 - + CAST ( NULL AS INTEGER ) + - + 85 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6151
SELECT + + 88 AS col2, SUM( DISTINCT + - 96 ) + + - 50 - + - 18 DIV - 78 AS col0
----
88
-146

skipif mysql # not compatible
query II rowsort label-6151
SELECT + + 88 AS col2, SUM ( DISTINCT + - 96 ) + + - 50 - + - 18 / - 78 AS col0
----
88
-146

onlyif mysql # DIV for integer division: 
query II rowsort label-6152
SELECT 28 AS col2, + 20 DIV 59 * + + ( + 4 ) * 89 AS col1
----
28
0

skipif mysql # not compatible
query II rowsort label-6152
SELECT 28 AS col2, + 20 / 59 * + + ( + 4 ) * 89 AS col1
----
28
0

query I rowsort
SELECT - ( + - 24 ) * + 6
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT ALL - 64 + + NULLIF ( + 25, 33 ) + + NULLIF ( ( COUNT( ( + 73 ) ) ), - 55 / - 55 + - 77 ) * - + 57 + + + 49 + - COUNT( * ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL - 64 + + NULLIF ( + 25, 33 ) + + NULLIF ( ( COUNT ( ( + 73 ) ) ), - 55 / - 55 + - 77 ) * - + 57 + + + 49 + - COUNT ( * ) col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT 52 * + SUM( - 38 )
----
-1976

skipif mysql # not compatible
query I rowsort label-6155
SELECT 52 * + SUM ( - 38 )
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT - COUNT( - - 78 ) * + 59
----
-59

skipif mysql # not compatible
query I rowsort label-6156
SELECT - COUNT ( - - 78 ) * + 59
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-6157
SELECT - 65 AS col1, COUNT( * ) AS col0
----
-65
1

skipif mysql # not compatible
query II rowsort label-6157
SELECT - 65 AS col1, COUNT ( * ) AS col0
----
-65
1

query I rowsort
SELECT ALL - 48 * + 88
----
-4224

query I rowsort
SELECT 70 + + ( 76 ) * 20
----
1590

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ALL - MIN( ALL 4 ) * 96 AS col2
----
-384

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL - MIN ( ALL 4 ) * 96 AS col2
----
-384

query I rowsort
SELECT 14 * - 19 * + 72
----
-19152

query I rowsort
SELECT 88 - + + 97 * 63
----
-6023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6163
SELECT ALL + COUNT( * ) * - 14 * 23 DIV 76 * MAX( + 82 )
----
-328

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL + COUNT ( * ) * - 14 * 23 / 76 * MAX ( + 82 )
----
-328

query I rowsort
SELECT ALL + 20 * - ( - 71 )
----
1420

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT DISTINCT SUM( ALL + + ( + 30 ) )
----
30

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT SUM ( ALL + + ( + 30 ) )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6166
SELECT ALL COALESCE ( - 94, - + COUNT( * ) * - 34, - ( + NULLIF ( + - ( 60 ), CAST( NULL AS SIGNED ) / + - 59 / - CAST( NULL AS SIGNED ) ) ) ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL COALESCE ( - 94, - + COUNT ( * ) * - 34, - ( + NULLIF ( + - ( 60 ), CAST ( NULL AS INTEGER ) / + - 59 / - CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-6167
SELECT - 37 + + - 44 AS col1, 62 * COUNT( * ) * - - 82
----
-81
5084

skipif mysql # not compatible
query II rowsort label-6167
SELECT - 37 + + - 44 AS col1, 62 * COUNT ( * ) * - - 82
----
-81
5084

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL 49 * + - CASE - + SUM( DISTINCT + 54 ) WHEN + COUNT( * ) THEN NULL WHEN - 31 * + + 96 + - 48 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL 49 * + - CASE - + SUM ( DISTINCT + 54 ) WHEN + COUNT ( * ) THEN NULL WHEN - 31 * + + 96 + - 48 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT - 55 * MIN( + 89 ) col1
----
-4895

skipif mysql # not compatible
query I rowsort label-6169
SELECT - 55 * MIN ( + 89 ) col1
----
-4895

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6170
SELECT ALL + 30 + + - 54 + + COUNT( * ) * + NULLIF ( + 67, - 94 ) + - - CAST( NULL AS DECIMAL ) + + COALESCE ( 42, + + 6 / + - SUM( 39 ) + - CASE WHEN NOT - ( 2 ) > NULL THEN - 91 ELSE NULL END ) * + SUM( DISTINCT + - 70 ) + - - ( 6 ) * + - 62 / - 65 * + + 75 * 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL + 30 + + - 54 + + COUNT ( * ) * + NULLIF ( + 67, - 94 ) + - - CAST ( NULL AS REAL ) + + COALESCE ( 42, + + 6 / + - SUM ( 39 ) + - CASE WHEN NOT - ( 2 ) > NULL THEN - 91 ELSE NULL END ) * + SUM ( DISTINCT + - 70 ) + - - ( 6 ) * + - 62 / - 65 * + + 75 * 17 AS col0
----
NULL

query I rowsort
SELECT ALL - 59 * + ( + - 95 ) AS col2
----
5605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6172
SELECT - COUNT( * ) + - + 48 - + COUNT( + CAST( NULL AS SIGNED ) ) / + ( + CASE COUNT( 25 ) WHEN - + 63 THEN + + 76 + - 68 * + ( + - 95 ) END ) / + 44 * + 26 AS col2, + 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-6172
SELECT - COUNT ( * ) + - + 48 - + COUNT ( + CAST ( NULL AS INTEGER ) ) / + ( + CASE COUNT ( 25 ) WHEN - + 63 THEN + + 76 + - 68 * + ( + - 95 ) END ) / + 44 * + 26 AS col2, + 72
----
NULL
72

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6173
SELECT + + CAST( - + ( - CAST( 22 AS DECIMAL ) ) AS SIGNED ) * - + COALESCE ( - + 4, + ( - 66 ) ) col2
----
88

skipif mysql # not compatible
query I rowsort label-6173
SELECT + + CAST ( - + ( - CAST ( 22 AS REAL ) ) AS INTEGER ) * - + COALESCE ( - + 4, + ( - 66 ) ) col2
----
88

query I rowsort
SELECT ALL - 68 + 76
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6175
SELECT - + CAST( - MAX( DISTINCT - NULLIF ( - 59, + 82 * 50 / - CAST( - 8 AS SIGNED ) ) ) AS SIGNED ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6175
SELECT - + CAST ( - MAX ( DISTINCT - NULLIF ( - 59, + 82 * 50 / - CAST ( - 8 AS INTEGER ) ) ) AS INTEGER ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT + - COUNT( * ) + + 79 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6176
SELECT + - COUNT ( * ) + + 79 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT ALL + + MIN( NULLIF ( + 10, - 1 + 8 ) )
----
10

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL + + MIN ( NULLIF ( + 10, - 1 + 8 ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT - 98 * + 71 * + + 55 + - MAX( - - 24 ) * - 21 AS col2
----
-382186

skipif mysql # not compatible
query I rowsort label-6178
SELECT - 98 * + 71 * + + 55 + - MAX ( - - 24 ) * - 21 AS col2
----
-382186

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

skipif mysql # not compatible
query I rowsort label-6179
SELECT + 98 / 8 + + COUNT ( * )
----
13

query I rowsort
SELECT + + 97 + - + 56
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + + COUNT( - ( 4 ) ) * - 84 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6181
SELECT + + COUNT ( - ( 4 ) ) * - 84 AS col0
----
-84

query I rowsort
SELECT - + 80 * + + 67
----
-5360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT 32 * + 5 + CASE - 41 WHEN + COUNT( * ) - - 77 THEN NULL WHEN + - 1 - 6 THEN NULL WHEN 1 * - - ( - 36 ) THEN + 66 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT 32 * + 5 + CASE - 41 WHEN + COUNT ( * ) - - 77 THEN NULL WHEN + - 1 - 6 THEN NULL WHEN 1 * - - ( - 36 ) THEN + 66 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6185
SELECT DISTINCT + 20 AS col2, - NULLIF ( + - ( - 19 ), - COUNT( * ) )
----
20
-19

skipif mysql # not compatible
query II rowsort label-6185
SELECT DISTINCT + 20 AS col2, - NULLIF ( + - ( - 19 ), - COUNT ( * ) )
----
20
-19

query I rowsort
SELECT + 69 * - - 55
----
3795

query II rowsort
SELECT + ( + + 51 ) + 3 AS col1, ( - 23 ) + 47 AS col2
----
54
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT DISTINCT 92 * MAX( ALL + - 2 ) * 50 * 45
----
-414000

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT 92 * MAX ( ALL + - 2 ) * 50 * 45
----
-414000

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT + 4 * - CASE - 58 WHEN - COUNT( * ) THEN + 16 WHEN + ( COUNT( * ) ) * MAX( DISTINCT + - 12 ) THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6189
SELECT + 4 * - CASE - 58 WHEN - COUNT ( * ) THEN + 16 WHEN + ( COUNT ( * ) ) * MAX ( DISTINCT + - 12 ) THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6190
SELECT ALL - 60 DIV 28 * 39
----
-78

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL - 60 / 28 * 39
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT DISTINCT + CASE - 20 WHEN 31 * + 27 * - NULLIF ( 37, + 46 * - 95 ) THEN - - 26 + + - 65 * + + COUNT( * ) + + 10 WHEN - - 48 * - 50 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT + CASE - 20 WHEN 31 * + 27 * - NULLIF ( 37, + 46 * - 95 ) THEN - - 26 + + - 65 * + + COUNT ( * ) + + 10 WHEN - - 48 * - 50 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT ALL + COUNT( - 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL + COUNT ( - 78 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT - ( + 36 ) * + - COUNT( * ) + + + 54 + 71
----
161

skipif mysql # not compatible
query I rowsort label-6194
SELECT - ( + 36 ) * + - COUNT ( * ) + + + 54 + 71
----
161

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6196
SELECT - 73 + + 67 * - + ( + ( - - SUM( ALL 49 ) ) ), + CASE - 69 WHEN 67 - 74 THEN NULL WHEN - 87 THEN + - 3 * + + 67 END * + MIN( - 0 ) / 64 * - + ( - + 2 ) AS col1
----
-3356
NULL

skipif mysql # not compatible
query II rowsort label-6196
SELECT - 73 + + 67 * - + ( + ( - - SUM ( ALL 49 ) ) ), + CASE - 69 WHEN 67 - 74 THEN NULL WHEN - 87 THEN + - 3 * + + 67 END * + MIN ( - 0 ) / 64 * - + ( - + 2 ) AS col1
----
-3356
NULL

query II rowsort
SELECT ALL - CASE + 55 WHEN + 98 THEN - 15 WHEN - 98 * - + 46 THEN NULL END / + - 40 / 38 AS col2, 56 + - - 49
----
NULL
105

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6199
SELECT - 91 DIV + 84 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6199
SELECT - 91 / + 84 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6200
SELECT - CAST( 87 AS SIGNED ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-6200
SELECT - CAST ( 87 AS INTEGER ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT ALL + 7 * - + 13 * - COUNT( * ) * - 85 + + + 15
----
-7720

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL + 7 * - + 13 * - COUNT ( * ) * - 85 + + + 15
----
-7720

query I rowsort
SELECT - 79 + 32 AS col0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6203
SELECT ALL COUNT( * ) DIV - + 68 * + - 38 AS col2
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6204
SELECT DISTINCT + 16 + - 47 * + 72 AS col2, - CAST( - + 44 AS SIGNED ) col0
----
-3368
44

skipif mysql # not compatible
query II rowsort label-6204
SELECT DISTINCT + 16 + - 47 * + 72 AS col2, - CAST ( - + 44 AS INTEGER ) col0
----
-3368
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT DISTINCT SUM( ALL + 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT SUM ( ALL + 39 ) AS col1
----
39

query I rowsort
SELECT ALL + 98 + - 57 - - - 59 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6207
SELECT ALL CASE - 93 WHEN CAST( - 34 AS DECIMAL ) * - + CASE - COALESCE ( + ( + 82 ), 31 ) WHEN + - COUNT( * ) / 53 THEN - + 43 * + 18 / - 80 WHEN - MAX( - 81 ) + - + 42 + 97 THEN 88 - - 97 ELSE NULL END THEN 36 WHEN + 31 THEN 5 * + NULLIF ( - 99, - + 18 * - 67 ) * - 86 WHEN 22 + 26 THEN + - CAST( + - 30 AS SIGNED ) + - + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL CASE - 93 WHEN CAST ( - 34 AS REAL ) * - + CASE - COALESCE ( + ( + 82 ), 31 ) WHEN + - COUNT ( * ) / 53 THEN - + 43 * + 18 / - 80 WHEN - MAX ( - 81 ) + - + 42 + 97 THEN 88 - - 97 ELSE NULL END THEN 36 WHEN + 31 THEN 5 * + NULLIF ( - 99, - + 18 * - 67 ) * - 86 WHEN 22 + 26 THEN + - CAST ( + - 30 AS INTEGER ) + - + 34 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6208
SELECT DISTINCT - - 80 + + ( COUNT( * ) ) DIV - 24 + + 66
----
146

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT - - 80 + + ( COUNT ( * ) ) / - 24 + + 66
----
146

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL - + COUNT( * ) + 43
----
42

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL - + COUNT ( * ) + 43
----
42

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6212
SELECT - - 58 * - MIN( DISTINCT - + 8 ) * COUNT( ALL 95 ) + + 34 AS col2, + 92
----
498
92

skipif mysql # not compatible
query II rowsort label-6212
SELECT - - 58 * - MIN ( DISTINCT - + 8 ) * COUNT ( ALL 95 ) + + 34 AS col2, + 92
----
498
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL - + 38 - - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL - + 38 - - COUNT ( * )
----
-37

query II rowsort
SELECT ALL 4 AS col2, + 23
----
4
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT DISTINCT - NULLIF ( + - MAX( + + 19 ), + ( 63 ) + + 68 + + - 41 ) * 18 * + - 23 AS col0
----
-7866

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT - NULLIF ( + - MAX ( + + 19 ), + ( 63 ) + + 68 + + - 41 ) * 18 * + - 23 AS col0
----
-7866

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6217
SELECT - - MIN( DISTINCT 86 ) DIV ( - 67 ) * - 61 col1
----
61

skipif mysql # not compatible
query I rowsort label-6217
SELECT - - MIN ( DISTINCT 86 ) / ( - 67 ) * - 61 col1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-6218
SELECT - + 32 * - - MIN( DISTINCT - ( + 90 ) ), - 10 + + - COUNT( + 81 ) col2
----
2880
-11

skipif mysql # not compatible
query II rowsort label-6218
SELECT - + 32 * - - MIN ( DISTINCT - ( + 90 ) ), - 10 + + - COUNT ( + 81 ) col2
----
2880
-11

query I rowsort
SELECT ALL 67 * 9 * - ( 45 ) * - 80 AS col1
----
2170800

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT - 37 DIV + 17 + + + 9 + + 81 * 24 * - 2 * - - 56 AS col1
----
-217721

skipif mysql # not compatible
query I rowsort label-6220
SELECT - 37 / + 17 + + + 9 + + 81 * 24 * - 2 * - - 56 AS col1
----
-217721

query II rowsort
SELECT - ( 30 ) - 67, 6 * 2 AS col0
----
-97
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6222
SELECT + 20 * 47 + 82 DIV 11 AS col0, + ( - 73 ) * - CASE - 9 WHEN CAST( - 57 AS SIGNED ) THEN 91 DIV - COUNT( * ) * + 10 END * + ( 37 ) + 24 + + + 29 * - 51 AS col1
----
947
NULL

skipif mysql # not compatible
query II rowsort label-6222
SELECT + 20 * 47 + 82 / 11 AS col0, + ( - 73 ) * - CASE - 9 WHEN CAST ( - 57 AS INTEGER ) THEN 91 / - COUNT ( * ) * + 10 END * + ( 37 ) + 24 + + + 29 * - 51 AS col1
----
947
NULL

query II rowsort
SELECT DISTINCT + 71 AS col1, 5 * + - 84 AS col0
----
71
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT DISTINCT - 18 * + NULLIF ( 61, - - CASE WHEN 72 NOT IN ( 49 ) THEN 67 WHEN NOT + ( + 76 ) = + 52 * 25 + - SUM( ALL - ( + 49 ) ) THEN + + MAX( ALL - COALESCE ( - - 25, - 84, + - 38 ) ) * + - 28 * 46 * + 88 END / 42 )
----
-1098

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT - 18 * + NULLIF ( 61, - - CASE WHEN 72 NOT IN ( 49 ) THEN 67 WHEN NOT + ( + 76 ) = + 52 * 25 + - SUM ( ALL - ( + 49 ) ) THEN + + MAX ( ALL - COALESCE ( - - 25, - 84, + - 38 ) ) * + - 28 * 46 * + 88 END / 42 )
----
-1098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6225
SELECT CAST( COUNT( * ) AS SIGNED ), - 46 AS col0
----
1
-46

skipif mysql # not compatible
query II rowsort label-6225
SELECT CAST ( COUNT ( * ) AS INTEGER ), - 46 AS col0
----
1
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6226
SELECT DISTINCT 74 * - CAST( NULLIF ( - + CASE + - CAST( NULL AS SIGNED ) WHEN - 50 * - - CAST( + - SUM( - - 3 ) AS SIGNED ) THEN + 17 END, + 68 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT 74 * - CAST ( NULLIF ( - + CASE + - CAST ( NULL AS INTEGER ) WHEN - 50 * - - CAST ( + - SUM ( - - 3 ) AS INTEGER ) THEN + 17 END, + 68 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6227
SELECT ALL - 90 DIV ( - 51 ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL - 90 / ( - 51 ) + - - COUNT ( * )
----
2

query II rowsort
SELECT + 9 * - - 61 AS col1, 13 * + 88
----
549
1144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6229
SELECT ALL + COUNT( ALL + 63 ) * + + ( + MIN( 17 ) ) DIV 45 + + SUM( - 30 ) + - - 19 * 11 * + + 4 AS col0
----
806

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL + COUNT ( ALL + 63 ) * + + ( + MIN ( 17 ) ) / 45 + + SUM ( - 30 ) + - - 19 * 11 * + + 4 AS col0
----
806

query I rowsort
SELECT + ( - NULLIF ( + + 30, - 3 ) ) AS col1
----
-30

query I rowsort
SELECT 13 + - 32 AS col0
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL COUNT( * ) * + + 90 / - + CASE 9 WHEN + 62 THEN + + 78 * 93 * + 61 END * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL COUNT ( * ) * + + 90 / - + CASE 9 WHEN + 62 THEN + + 78 * 93 * + 61 END * + 61
----
NULL

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

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

query II rowsort
SELECT 58 - - 77 * + 35 + + 46, 5 * - 1 AS col1
----
2799
-5

query I rowsort
SELECT 40 + 89 * - 79 AS col0
----
-6991

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6238
SELECT - CAST( NULL AS SIGNED ) * + - 4 + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6238
SELECT - CAST ( NULL AS INTEGER ) * + - 4 + - 26
----
NULL

query I rowsort
SELECT 17 * + 40
----
680

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT DISTINCT - COUNT( * ) * - - 91 - + + 6 * - 90 AS col1
----
449

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT - COUNT ( * ) * - - 91 - + + 6 * - 90 AS col1
----
449

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6241
SELECT 19 + + 83 - COUNT( * ) DIV + ( - 67 ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-6241
SELECT 19 + + 83 - COUNT ( * ) / + ( - 67 ) AS col2
----
102

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6242
SELECT DISTINCT ( SUM( - CAST( NULL AS DECIMAL ) ) ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT ( SUM ( - CAST ( NULL AS REAL ) ) ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 85 - + 68
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT + MIN( + + 69 ) * ( + - 15 ) + 33 AS col1
----
-1002

skipif mysql # not compatible
query I rowsort label-6244
SELECT + MIN ( + + 69 ) * ( + - 15 ) + 33 AS col1
----
-1002

query I rowsort
SELECT + 99 + - 15 AS col1
----
84

query II rowsort
SELECT ALL - 24 - + 94, 94 * + 31 AS col1
----
-118
2914

onlyif mysql # aggregate syntax: 
query II rowsort label-6247
SELECT 75 + COUNT( * ), MIN( 81 ) * - + 98 + - - 10 AS col1
----
76
-7928

skipif mysql # not compatible
query II rowsort label-6247
SELECT 75 + COUNT ( * ), MIN ( 81 ) * - + 98 + - - 10 AS col1
----
76
-7928

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6248
SELECT - 26 * + - COUNT( * ) col2, - 36 * MIN( DISTINCT + 82 ) + + + 45 DIV - + 12
----
26
-2955

skipif mysql # not compatible
query II rowsort label-6248
SELECT - 26 * + - COUNT ( * ) col2, - 36 * MIN ( DISTINCT + 82 ) + + + 45 / - + 12
----
26
-2955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6249
SELECT + 51 * - - ( - CAST( 4 AS SIGNED ) ) * 15 + 38 * + - ( - - 50 ) + + - COUNT( * ) * - 65
----
-4895

skipif mysql # not compatible
query I rowsort label-6249
SELECT + 51 * - - ( - CAST ( 4 AS INTEGER ) ) * 15 + 38 * + - ( - - 50 ) + + - COUNT ( * ) * - 65
----
-4895

query I rowsort
SELECT ALL - 33 + + 93
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6251
SELECT DISTINCT 33 + - NULLIF ( 29, - COUNT( * ) / + 38 + + + CASE + + 33 WHEN + + 36 THEN NULL WHEN - 36 - + + 25 THEN - 81 + + CAST( NULL AS SIGNED ) * 73 ELSE NULL END + + COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT 33 + - NULLIF ( 29, - COUNT ( * ) / + 38 + + + CASE + + 33 WHEN + + 36 THEN NULL WHEN - 36 - + + 25 THEN - 81 + + CAST ( NULL AS INTEGER ) * 73 ELSE NULL END + + COUNT ( * ) )
----
4

query I rowsort
SELECT ALL + 61 * 3
----
183

query I rowsort
SELECT 33 + + 77
----
110

query II rowsort
SELECT + 27, - 40 AS col1
----
27
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6255
SELECT DISTINCT - CAST( 89 AS SIGNED ) + 88 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT - CAST ( 89 AS INTEGER ) + 88 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6256
SELECT DISTINCT - CAST( + CAST( 72 AS SIGNED ) AS SIGNED ) AS col0, 22 - + 31 AS col2
----
-72
-9

skipif mysql # not compatible
query II rowsort label-6256
SELECT DISTINCT - CAST ( + CAST ( 72 AS INTEGER ) AS INTEGER ) AS col0, 22 - + 31 AS col2
----
-72
-9

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

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

query I rowsort
SELECT ALL 84 * + 69 AS col1
----
5796

query I rowsort
SELECT 54 + + 0 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6260
SELECT CASE 41 WHEN 76 THEN NULL WHEN - MAX( 88 ) + CASE WHEN + 92 BETWEEN 92 - - 99 AND - 6 THEN 51 ELSE NULL END * 53 THEN NULL ELSE + 43 * CAST( NULL AS DECIMAL ) + 33 END / 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT CASE 41 WHEN 76 THEN NULL WHEN - MAX ( 88 ) + CASE WHEN + 92 BETWEEN 92 - - 99 AND - 6 THEN 51 ELSE NULL END * 53 THEN NULL ELSE + 43 * CAST ( NULL AS REAL ) + 33 END / 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT ALL ( - 60 ) * ( COUNT( * ) ) col1
----
-60

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL ( - 60 ) * ( COUNT ( * ) ) col1
----
-60

query I rowsort
SELECT 79 + 39
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT CAST( 48 AS SIGNED ) * 26
----
1248

skipif mysql # not compatible
query I rowsort label-6263
SELECT CAST ( 48 AS INTEGER ) * 26
----
1248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6264
SELECT CAST( + ( + MIN( DISTINCT + 72 ) ) AS SIGNED ) + 71 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-6264
SELECT CAST ( + ( + MIN ( DISTINCT + 72 ) ) AS INTEGER ) + 71 AS col0
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6265
SELECT 98 + + CAST( + 78 AS SIGNED ) * 33 AS col2
----
2672

skipif mysql # not compatible
query I rowsort label-6265
SELECT 98 + + CAST ( + 78 AS INTEGER ) * 33 AS col2
----
2672

query I rowsort
SELECT 8 + 80
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6267
SELECT ALL SUM( DISTINCT 77 ) DIV 72 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL SUM ( DISTINCT 77 ) / 72 AS col0
----
1

query I rowsort
SELECT 17 * 23 AS col0
----
391

query I rowsort
SELECT DISTINCT + 46 * 67 AS col2
----
3082

query I rowsort
SELECT DISTINCT 75 + - 66
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL 34 + 75 * COUNT( 81 )
----
109

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL 34 + 75 * COUNT ( 81 )
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6272
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * 14
----
14

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT 7 * COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6273
SELECT 7 * COUNT ( * ) AS col0
----
7

query I rowsort
SELECT ALL 10 + - 16 AS col1
----
-6

query I rowsort
SELECT DISTINCT 69 + 32 * 87
----
2853

query I rowsort
SELECT ALL - 29 + + 89 AS col2
----
60

query I rowsort
SELECT ( 32 ) * - 42 AS col1
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT 33 * - COUNT( 46 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-6278
SELECT 33 * - COUNT ( 46 ) AS col2
----
-33

query I rowsort
SELECT CASE 24 WHEN 47 / 7 THEN NULL WHEN 87 THEN NULL ELSE 61 + 99 END
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6280
SELECT ALL + 41 * + 74 + - 6 DIV + COUNT( * ) AS col2
----
3028

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL + 41 * + 74 + - 6 / + COUNT ( * ) AS col2
----
3028

query I rowsort
SELECT 66 * + 22 - + 24
----
1428

query I rowsort
SELECT NULLIF ( - 60, + 26 / 10 ) col2
----
-60

query I rowsort
SELECT - 38 * 62 AS col0
----
-2356

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT ALL + NULLIF ( + NULLIF ( ( - 57 ), - COUNT( * ) ), MAX( DISTINCT 69 ) ) * COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL + NULLIF ( + NULLIF ( ( - 57 ), - COUNT ( * ) ), MAX ( DISTINCT 69 ) ) * COUNT ( * ) AS col0
----
-57

query I rowsort
SELECT ALL - 64 * - 45 + 93
----
2973

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6287
SELECT ALL + CAST( NULL AS SIGNED ) / + COALESCE ( 98, - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL + CAST ( NULL AS INTEGER ) / + COALESCE ( 98, - 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT 39 * ( 32 * CASE - NULLIF ( - 14, + 40 ) * 46 WHEN 41 / 77 THEN NULL WHEN + 53 THEN 82 * - NULLIF ( 26 * COUNT( * ), - ( + AVG ( ALL 32 ) ) ) + 74 END ) + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT 39 * ( 32 * CASE - NULLIF ( - 14, + 40 ) * 46 WHEN 41 / 77 THEN NULL WHEN + 53 THEN 82 * - NULLIF ( 26 * COUNT ( * ), - ( + AVG ( ALL 32 ) ) ) + 74 END ) + 35 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6289
SELECT DISTINCT + NULLIF ( MIN( DISTINCT CASE - CAST( 19 AS SIGNED ) WHEN 56 / 45 THEN + NULLIF ( - ( - ( - 59 ) ), - CAST( 73 AS SIGNED ) ) WHEN NULLIF ( + COALESCE ( + 74, 26 / + 37, - 51 + 65 ), COALESCE ( 51, + 77 * - 43 + 80, 17 ) ) * - 77 THEN NULL ELSE NULL END ), - 17 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT + NULLIF ( MIN ( DISTINCT CASE - CAST ( 19 AS INTEGER ) WHEN 56 / 45 THEN + NULLIF ( - ( - ( - 59 ) ), - CAST ( 73 AS INTEGER ) ) WHEN NULLIF ( + COALESCE ( + 74, 26 / + 37, - 51 + 65 ), COALESCE ( 51, + 77 * - 43 + 80, 17 ) ) * - 77 THEN NULL ELSE NULL END ), - 17 ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT - SUM( + 60 ) + ( - 36 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6290
SELECT - SUM ( + 60 ) + ( - 36 ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT + 78 * NULLIF ( COUNT( + 25 ), - COALESCE ( + CASE WHEN NOT - 91 <> - COALESCE ( 72, + 17 ) * 18 THEN 53 * COUNT( * ) END, - 81 + 13 ) + COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-6291
SELECT + 78 * NULLIF ( COUNT ( + 25 ), - COALESCE ( + CASE WHEN NOT - 91 <> - COALESCE ( 72, + 17 ) * 18 THEN 53 * COUNT ( * ) END, - 81 + 13 ) + COUNT ( * ) )
----
78

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

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

query I rowsort
SELECT ALL + NULLIF ( + 49, 56 ) col1
----
49

query I rowsort
SELECT - 49 + 46 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT MIN( DISTINCT 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6295
SELECT MIN ( DISTINCT 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT - 13 * - COUNT( ALL + 35 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT - 13 * - COUNT ( ALL + 35 ) AS col1
----
13

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

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL COUNT ( * ) / - 55
----
0

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

skipif mysql # not compatible
query I rowsort label-6298
SELECT - CAST ( NULL AS INTEGER ) * 50 AS col2
----
NULL

query I rowsort
SELECT + 14 * + 26
----
364

query I rowsort
SELECT + 41 + + 25 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT - + 19 * + CASE + 6 * - 19 WHEN 83 / - 83 THEN NULL WHEN 72 * - 83 THEN - 24 ELSE COUNT( * ) + - 17 * + 80 END AS col0
----
25821

skipif mysql # not compatible
query I rowsort label-6301
SELECT - + 19 * + CASE + 6 * - 19 WHEN 83 / - 83 THEN NULL WHEN 72 * - 83 THEN - 24 ELSE COUNT ( * ) + - 17 * + 80 END AS col0
----
25821

query I rowsort
SELECT ALL - 33 + - 75
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT + NULLIF ( - 92, MAX( DISTINCT - 5 ) ) - 67 * 91 AS col2
----
-6189

skipif mysql # not compatible
query I rowsort label-6303
SELECT + NULLIF ( - 92, MAX ( DISTINCT - 5 ) ) - 67 * 91 AS col2
----
-6189

query I rowsort
SELECT ALL + - CASE - 36 WHEN - 21 * 34 THEN 31 END * - AVG ( ALL 32 + 91 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6305
SELECT DISTINCT - + 14 + CASE 19 WHEN 77 THEN - CAST( NULL AS SIGNED ) + - 97 ELSE 25 + + 86 END AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT - + 14 + CASE 19 WHEN 77 THEN - CAST ( NULL AS INTEGER ) + - 97 ELSE 25 + + 86 END AS col2
----
97

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

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

query I rowsort
SELECT DISTINCT + 31 + 36 col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL 0 + - COUNT( DISTINCT 72 ) * 18
----
-18

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL 0 + - COUNT ( DISTINCT 72 ) * 18
----
-18

query I rowsort
SELECT DISTINCT + 14 + + 38 AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6310
SELECT DISTINCT - 50 + - CASE + 97 WHEN + MIN( DISTINCT CAST( NULL AS SIGNED ) ) THEN ( - ( + 11 ) ) * ( - ( 86 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT - 50 + - CASE + 97 WHEN + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN ( - ( + 11 ) ) * ( - ( 86 ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL 83 + 82 * + 66
----
5495

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT + - MIN( ALL 23 ) - 44 * - ( COUNT( * ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6312
SELECT + - MIN ( ALL 23 ) - 44 * - ( COUNT ( * ) ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT + + ( COALESCE ( 0, 11 + 12, 30 ) ) + MAX( ( 15 ) ) * 62 col2
----
930

skipif mysql # not compatible
query I rowsort label-6313
SELECT + + ( COALESCE ( 0, 11 + 12, 30 ) ) + MAX ( ( 15 ) ) * 62 col2
----
930

onlyif mysql # DIV for integer division: 
query I rowsort label-6314
SELECT + + 12 - + 95 DIV 38 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6314
SELECT + + 12 - + 95 / 38 AS col0
----
10

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

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT COUNT ( * ) + + ( - 41 ) + 50 AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT + 86 + 13 DIV 44 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6316
SELECT + 86 + 13 / 44 AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6317
SELECT ALL 27 DIV - 3
----
-9

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL 27 / - 3
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6318
SELECT ALL - CASE + CASE CAST( NULL AS SIGNED ) WHEN 75 + + 3 THEN COUNT( * ) END WHEN - 4 THEN 30 + COALESCE ( COUNT( * ), + 43 * ( + 86 ) ) * 4 WHEN - 50 / 3 + 41 / 32 THEN - 49 ELSE NULL END * 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL - CASE + CASE CAST ( NULL AS INTEGER ) WHEN 75 + + 3 THEN COUNT ( * ) END WHEN - 4 THEN 30 + COALESCE ( COUNT ( * ), + 43 * ( + 86 ) ) * 4 WHEN - 50 / 3 + 41 / 32 THEN - 49 ELSE NULL END * 57 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6319
SELECT DISTINCT 62 DIV + 8
----
7

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT 62 / + 8
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6320
SELECT ALL - 20 DIV 51 DIV - 10 - 56 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL - 20 / 51 / - 10 - 56 AS col0
----
-56

query I rowsort
SELECT DISTINCT 79 * 21
----
1659

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6322
SELECT ALL 42 DIV - + 33 - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL 42 / - + 33 - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6323
SELECT 34 DIV + + 58 + 37 * + ( 44 + 96 * NULLIF ( - 24 DIV - COUNT( * ), ( 62 ) ) )
----
86876

skipif mysql # not compatible
query I rowsort label-6323
SELECT 34 / + + 58 + 37 * + ( 44 + 96 * NULLIF ( - 24 / - COUNT ( * ), ( 62 ) ) )
----
86876

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

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * 28 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6325
SELECT CAST( ( 92 ) AS SIGNED ) col0
----
92

skipif mysql # not compatible
query I rowsort label-6325
SELECT CAST ( ( 92 ) AS INTEGER ) col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6326
SELECT - CASE + 12 WHEN 94 THEN 56 * ( NULLIF ( 65, - ( - 80 ) ) * - 63 ) WHEN 5 THEN 71 * + COUNT( * ) ELSE + 81 END + ( COUNT( * ) ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT - CASE + 12 WHEN 94 THEN 56 * ( NULLIF ( 65, - ( - 80 ) ) * - 63 ) WHEN 5 THEN 71 * + COUNT ( * ) ELSE + 81 END + ( COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL 55 * - COUNT( 3 )
----
-55

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL 55 * - COUNT ( 3 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT MAX( - 50 ) * 6 + 57 AS col0
----
-243

skipif mysql # not compatible
query I rowsort label-6328
SELECT MAX ( - 50 ) * 6 + 57 AS col0
----
-243

query I rowsort
SELECT ALL + NULLIF ( - - 87, - 23 * - 2 ) AS col2
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT DISTINCT + + SUM( ALL 16 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT + + SUM ( ALL 16 ) col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6332
SELECT DISTINCT - ( 22 ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT - ( 22 ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6333
SELECT DISTINCT - - ( + 29 ) * NULLIF ( CAST( NULL AS SIGNED ), - 22 + 1 * MAX( - 28 + - 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT - - ( + 29 ) * NULLIF ( CAST ( NULL AS INTEGER ), - 22 + 1 * MAX ( - 28 + - 13 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6334
SELECT - - NULLIF ( + 76, + 51 ) DIV - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-6334
SELECT - - NULLIF ( + 76, + 51 ) / - COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT - - 43 * - COUNT( * ) + + 23
----
-20

skipif mysql # not compatible
query I rowsort label-6335
SELECT - - 43 * - COUNT ( * ) + + 23
----
-20

query I rowsort
SELECT ALL - 3 * + - 4 * 18 + 50 AS col2
----
266

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT - 87 + COUNT( DISTINCT 8 ) + + 60 * - 56
----
-3446

skipif mysql # not compatible
query I rowsort label-6338
SELECT - 87 + COUNT ( DISTINCT 8 ) + + 60 * - 56
----
-3446

query I rowsort
SELECT ALL - 93 * + 60 + 43 col1
----
-5537

query I rowsort
SELECT DISTINCT 74 * 95 * 36 + - 4
----
253076

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT ALL COALESCE ( - 37, 21 * + 85 ) * ( + COUNT( * ) ) + 18 * - 51 AS col0
----
-955

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL COALESCE ( - 37, 21 * + 85 ) * ( + COUNT ( * ) ) + 18 * - 51 AS col0
----
-955

query I rowsort
SELECT ALL + 67 * - ( + 32 ) + 92 col0
----
-2052

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT DISTINCT + COALESCE ( - 60, 70 * + COUNT( * ) )
----
-60

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT + COALESCE ( - 60, 70 * + COUNT ( * ) )
----
-60

query I rowsort
SELECT + + 16 + 77 + - 10 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT - - 46 * - 7 + COUNT( * ) AS col1
----
-321

skipif mysql # not compatible
query I rowsort label-6346
SELECT - - 46 * - 7 + COUNT ( * ) AS col1
----
-321

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT + - COUNT( * ) + - MAX( DISTINCT + 80 ) + - 53 * COUNT( * ) AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-6347
SELECT + - COUNT ( * ) + - MAX ( DISTINCT + 80 ) + - 53 * COUNT ( * ) AS col2
----
-134

query I rowsort
SELECT + + CASE + + 44 WHEN + 38 THEN 40 ELSE 31 END - 72
----
-41

query I rowsort
SELECT ALL 34 + - 59 + 56
----
31

query I rowsort
SELECT 13 * - - 13 AS col1
----
169

query I rowsort
SELECT DISTINCT - CASE + 18 WHEN - 12 THEN - NULLIF ( 92, 15 ) ELSE - 0 END * 85
----
0

query I rowsort
SELECT ALL + 2 - 55 AS col0
----
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT DISTINCT + ( + + MAX( DISTINCT - 72 ) ) - - 49
----
-23

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT + ( + + MAX ( DISTINCT - 72 ) ) - - 49
----
-23

query I rowsort
SELECT DISTINCT 39 * 77 AS col1
----
3003

query II rowsort
SELECT 74 AS col0, 58
----
74
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6357
SELECT ALL 79 AS col2, 70 DIV 79 * COUNT( * )
----
79
0

skipif mysql # not compatible
query II rowsort label-6357
SELECT ALL 79 AS col2, 70 / 79 * COUNT ( * )
----
79
0

query II rowsort
SELECT ALL 31 AS col1, - 75 col0
----
31
-75

query II rowsort
SELECT - 33 AS col2, 77
----
-33
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT 29 * + - ( ( NULLIF ( + ( + NULLIF ( - 42, - 78 ) ), - NULLIF ( + CASE NULLIF ( 21, COUNT( * ) ) WHEN + COUNT( * ) THEN + 23 WHEN ( 81 ) THEN NULL ELSE NULL END, - 13 ) - 59 ) ) )
----
1218

skipif mysql # not compatible
query I rowsort label-6360
SELECT 29 * + - ( ( NULLIF ( + ( + NULLIF ( - 42, - 78 ) ), - NULLIF ( + CASE NULLIF ( 21, COUNT ( * ) ) WHEN + COUNT ( * ) THEN + 23 WHEN ( 81 ) THEN NULL ELSE NULL END, - 13 ) - 59 ) ) )
----
1218

query II rowsort
SELECT DISTINCT - 0, 16 col1
----
0
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6362
SELECT ALL - 3 AS col1, 22 * - - ( + COALESCE ( 95, - 98 ) ) + CAST( NULL AS SIGNED )
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6362
SELECT ALL - 3 AS col1, 22 * - - ( + COALESCE ( 95, - 98 ) ) + CAST ( NULL AS INTEGER )
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT MAX( + + ( - + COALESCE ( 95, 35 + 60 ) ) ) * 60
----
-5700

skipif mysql # not compatible
query I rowsort label-6363
SELECT MAX ( + + ( - + COALESCE ( 95, 35 + 60 ) ) ) * 60
----
-5700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6364
SELECT DISTINCT CASE WHEN NOT NULL BETWEEN 0 AND ( - 83 ) THEN NULL WHEN ( 68 * + CASE - 32 WHEN COUNT( * ) + + 99 THEN + ( - 58 ) ELSE 91 END ) NOT IN ( ( 12 ) * + 65 ) THEN 95 * ( 76 ) ELSE NULL END DIV 66 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT CASE WHEN NOT NULL BETWEEN 0 AND ( - 83 ) THEN NULL WHEN ( 68 * + CASE - 32 WHEN COUNT ( * ) + + 99 THEN + ( - 58 ) ELSE 91 END ) NOT IN ( ( 12 ) * + 65 ) THEN 95 * ( 76 ) ELSE NULL END / 66 AS col2
----
109

query I rowsort
SELECT 64 * - 39 AS col1
----
-2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6366
SELECT CASE + + 48 WHEN - 96 - ( CASE + 62 WHEN + 56 + 54 THEN SUM( DISTINCT - CAST( 44 AS SIGNED ) ) WHEN - CAST( NULL AS SIGNED ) THEN NULL END ) * 10 THEN 14 END * - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT CASE + + 48 WHEN - 96 - ( CASE + 62 WHEN + 56 + 54 THEN SUM ( DISTINCT - CAST ( 44 AS INTEGER ) ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL END ) * 10 THEN 14 END * - 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6367
SELECT ALL 7 DIV + - MAX( - 68 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL 7 / + - MAX ( - 68 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6368
SELECT DISTINCT - 5 AS col1, - 19 - + ( + 45 ) * MIN( DISTINCT - 9 ) col0
----
-5
386

skipif mysql # not compatible
query II rowsort label-6368
SELECT DISTINCT - 5 AS col1, - 19 - + ( + 45 ) * MIN ( DISTINCT - 9 ) col0
----
-5
386

query I rowsort
SELECT ALL 25 * + - 46
----
-1150

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

skipif mysql # not compatible
query II rowsort label-6370
SELECT + COUNT ( * ), ( - CAST ( - 85 AS INTEGER ) ) + 71 AS col0
----
1
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT ALL - SUM( 8 ) * + 40
----
-320

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL - SUM ( 8 ) * + 40
----
-320

query I rowsort
SELECT - 36 * + - 27 AS col2
----
972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6373
SELECT + COUNT( * ) DIV 20 + - 45 * + 61 AS col0
----
-2745

skipif mysql # not compatible
query I rowsort label-6373
SELECT + COUNT ( * ) / 20 + - 45 * + 61 AS col0
----
-2745

query I rowsort
SELECT DISTINCT 88 + - - 46 * - 59
----
-2626

query II rowsort
SELECT + - 40, 2 + + 2 AS col2
----
-40
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT - MAX( - + 66 ) + + 73
----
139

skipif mysql # not compatible
query I rowsort label-6376
SELECT - MAX ( - + 66 ) + + 73
----
139

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

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

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

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT - 6 + - + COUNT ( * ) AS col2
----
-7

query II rowsort
SELECT + 63, 14 + - 51 col1
----
63
-37

query I rowsort
SELECT DISTINCT - - 76 + - 97 * CASE 85 WHEN + 32 THEN - ( 18 ) * + 27 ELSE NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-6381
SELECT + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) + + + 0 + + 47 * 91
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT + 26 * - - 56 * + + ( + 94 ) + + COUNT( * ) AS col2
----
136865

skipif mysql # not compatible
query I rowsort label-6382
SELECT + 26 * - - 56 * + + ( + 94 ) + + COUNT ( * ) AS col2
----
136865

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6383
SELECT ALL - + CAST( NULL AS DECIMAL ) / + COUNT( DISTINCT + - 1 ) - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL - + CAST ( NULL AS REAL ) / + COUNT ( DISTINCT + - 1 ) - 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6384
SELECT - - 98 AS col1, - COUNT( * ) AS col0
----
98
-1

skipif mysql # not compatible
query II rowsort label-6384
SELECT - - 98 AS col1, - COUNT ( * ) AS col0
----
98
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT ALL - 65 + - NULLIF ( 15, - 1 - COUNT( * ) ) - 38 * 68 AS col2
----
-2664

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL - 65 + - NULLIF ( 15, - 1 - COUNT ( * ) ) - 38 * 68 AS col2
----
-2664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6386
SELECT - - 45 AS col1, - 9 + - CAST( NULL AS SIGNED ) + 6 * + COUNT( * ) * + 97
----
45
NULL

skipif mysql # not compatible
query II rowsort label-6386
SELECT - - 45 AS col1, - 9 + - CAST ( NULL AS INTEGER ) + 6 * + COUNT ( * ) * + 97
----
45
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6387
SELECT COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) - 85
----
-85

skipif mysql # not compatible
query I rowsort label-6387
SELECT COUNT ( DISTINCT CAST ( NULL AS REAL ) ) - 85
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6388
SELECT - CAST( - MAX( CAST( + 96 AS SIGNED ) ) AS SIGNED ) * 63
----
6048

skipif mysql # not compatible
query I rowsort label-6388
SELECT - CAST ( - MAX ( CAST ( + 96 AS INTEGER ) ) AS INTEGER ) * 63
----
6048

query I rowsort
SELECT + 1 - - 81 - - 93 + 1 AS col0
----
176

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( - 37, + 41 ) * + 31 + - 91
----
-1238

query I rowsort
SELECT ALL - 70 - + 59 * + 40 + - - 38
----
-2392

query I rowsort
SELECT ALL + 16 * + 42 * + - 60
----
-40320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6394
SELECT ALL 27 - - 91 * - CAST( NULL AS SIGNED ) * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL 27 - - 91 * - CAST ( NULL AS INTEGER ) * - 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT 39 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-6395
SELECT 39 / 68
----
0

query I rowsort
SELECT 48 - 5
----
43

query II rowsort
SELECT 74 * - 81, 45 + - 22 + + 33 AS col0
----
-5994
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT COUNT( * ) + + NULLIF ( MIN( DISTINCT 47 ), + 97 * 94 ) col1
----
48

skipif mysql # not compatible
query I rowsort label-6398
SELECT COUNT ( * ) + + NULLIF ( MIN ( DISTINCT 47 ), + 97 * 94 ) col1
----
48

query I rowsort
SELECT ALL 20 * - 74 * - 30
----
44400

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

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

query I rowsort
SELECT + 65 * - + 16 + + + 16
----
-1024

query I rowsort
SELECT DISTINCT - 90 * - 41 AS col1
----
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT SUM( - + ( + 24 ) ) * - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-6403
SELECT SUM ( - + ( + 24 ) ) * - COUNT ( * )
----
24

query I rowsort
SELECT ALL ( - - 50 ) * 85 + 66 + 67 * 23
----
5857

query I rowsort
SELECT 47 * - + ( + 92 )
----
-4324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6406
SELECT + 8 DIV + + CAST( 53 AS SIGNED ) + - - COUNT( - 95 )
----
1

skipif mysql # not compatible
query I rowsort label-6406
SELECT + 8 / + + CAST ( 53 AS INTEGER ) + - - COUNT ( - 95 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT DISTINCT 58 * 12 + - ( + 6 ) + + COUNT( 34 ) * 4
----
694

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT 58 * 12 + - ( + 6 ) + + COUNT ( 34 ) * 4
----
694

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6408
SELECT ALL MIN( ALL + + NULLIF ( + 21, - + 43 ) ) * + ( SUM( DISTINCT 65 ) ) + + 83 DIV MAX( ALL - ( 29 ) )
----
1363

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL MIN ( ALL + + NULLIF ( + 21, - + 43 ) ) * + ( SUM ( DISTINCT 65 ) ) + + 83 / MAX ( ALL - ( 29 ) )
----
1363

onlyif mysql # aggregate syntax: 
query II rowsort label-6409
SELECT + - MIN( - - 34 ) AS col0, 65
----
-34
65

skipif mysql # not compatible
query II rowsort label-6409
SELECT + - MIN ( - - 34 ) AS col0, 65
----
-34
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT 68 * - + COUNT( * ) * 91 + + CASE 42 WHEN - 33 + 46 THEN + 18 + 77 END + 75 + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6410
SELECT 68 * - + COUNT ( * ) * 91 + + CASE 42 WHEN - 33 + 46 THEN + 18 + 77 END + 75 + 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT DISTINCT 20 * - + COALESCE ( 54, - 53 ) + - COUNT( * ) + 42
----
-1039

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT 20 * - + COALESCE ( 54, - 53 ) + - COUNT ( * ) + 42
----
-1039

query II rowsort
SELECT ALL - + ( - 23 ), + 27 * - 4 * 2 col2
----
23
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT - 40 * - COUNT( * ) * 5 * 21 + 75 * COUNT( * )
----
4275

skipif mysql # not compatible
query I rowsort label-6413
SELECT - 40 * - COUNT ( * ) * 5 * 21 + 75 * COUNT ( * )
----
4275

query I rowsort
SELECT DISTINCT - 66 * - ( 26 ) + - + 85 - + 55
----
1576

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT DISTINCT COUNT( * ) + MAX( - 47 ) + COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT COUNT ( * ) + MAX ( - 47 ) + COUNT ( * ) AS col0
----
-45

query I rowsort
SELECT ALL + 96 * + + 74 AS col0
----
7104

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT DISTINCT + ( + - 46 ) + 19 + - ( - 79 ) - + 81 DIV - 55
----
53

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT + ( + - 46 ) + 19 + - ( - 79 ) - + 81 / - 55
----
53

query I rowsort
SELECT + 40 - - 56
----
96

query I rowsort
SELECT 80 * 25
----
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT 24 * - + MAX( + NULLIF ( + - 48, - 71 ) ) + - 96 AS col2
----
1056

skipif mysql # not compatible
query I rowsort label-6421
SELECT 24 * - + MAX ( + NULLIF ( + - 48, - 71 ) ) + - 96 AS col2
----
1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6422
SELECT ALL 7 - CAST( NULL AS SIGNED ) * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL 7 - CAST ( NULL AS INTEGER ) * - 22
----
NULL

query II rowsort
SELECT DISTINCT + 33 - - 16, 18 AS col1
----
49
18

query I rowsort
SELECT - ( + + 32 ) * - + ( - 49 ) + - 40 AS col2
----
-1608

query I rowsort
SELECT ALL + 84 * - 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6426
SELECT - 92 * CAST( - COUNT( * ) AS SIGNED ) AS col0, SUM( DISTINCT - 24 ) * - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
92
24

skipif mysql # not compatible
query II rowsort label-6426
SELECT - 92 * CAST ( - COUNT ( * ) AS INTEGER ) AS col0, SUM ( DISTINCT - 24 ) * - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
92
24

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

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

query II rowsort
SELECT - 17 col0, - 62 * + 33 * - 13
----
-17
26598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6429
SELECT DISTINCT + COUNT( + - ( 88 ) ) * 60 * 33 + CAST( 36 AS SIGNED ) * + CASE 35 WHEN + 63 THEN NULL WHEN - 37 + 93 THEN - COALESCE ( 41, - 83 + CASE 54 WHEN + 66 * - 74 THEN - ( + 59 ) END * 79, - 23 ) WHEN - 54 THEN 95 * 89 ELSE - SUM( DISTINCT 63 ) * 98 + 38 * + 65 END
----
-131364

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT + COUNT ( + - ( 88 ) ) * 60 * 33 + CAST ( 36 AS INTEGER ) * + CASE 35 WHEN + 63 THEN NULL WHEN - 37 + 93 THEN - COALESCE ( 41, - 83 + CASE 54 WHEN + 66 * - 74 THEN - ( + 59 ) END * 79, - 23 ) WHEN - 54 THEN 95 * 89 ELSE - SUM ( DISTINCT 63 ) * 98 + 38 * + 65 END
----
-131364

query I rowsort
SELECT ALL + CASE + 48 WHEN + 97 * 94 * - 74 + 64 THEN NULL WHEN 92 THEN + AVG ( DISTINCT 77 ) ELSE NULL END * - 33 AS col1
----
NULL

query I rowsort
SELECT + 56 * - 24 col0
----
-1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6432
SELECT - CASE - + 62 WHEN + 46 + + + COUNT( * ) - - ( + CAST( NULL AS SIGNED ) ) - - 92 * 22 THEN + 85 ELSE NULL END + - ( 71 ) * + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT - CASE - + 62 WHEN + 46 + + + COUNT ( * ) - - ( + CAST ( NULL AS INTEGER ) ) - - 92 * 22 THEN + 85 ELSE NULL END + - ( 71 ) * + 99 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 67 * - + 74 AS col0
----
-4958

query I rowsort
SELECT DISTINCT ( - + 66 ) * - - 1
----
-66

query I rowsort
SELECT - NULLIF ( - 3, + + 51 + + 17 ) * - 11
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT ALL + COUNT( DISTINCT - 65 ) * - + ( - COUNT( * ) ) * - - SUM( ALL + 12 ) col1
----
12

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL + COUNT ( DISTINCT - 65 ) * - + ( - COUNT ( * ) ) * - - SUM ( ALL + 12 ) col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT DISTINCT COUNT( + - 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT COUNT ( + - 19 ) AS col1
----
1

query I rowsort
SELECT ALL - 77 + + + 30 AS col0
----
-47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6440
SELECT - CAST( + 22 AS SIGNED ) DIV COUNT( * ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-6440
SELECT - CAST ( + 22 AS INTEGER ) / COUNT ( * ) col0
----
-22

query I rowsort
SELECT ALL + 49 + - 15 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6442
SELECT - CASE + 71 WHEN 39 / + - 56 * + 60 THEN NULL ELSE + CAST( NULL AS SIGNED ) END - - 82 / 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT - CASE + 71 WHEN 39 / + - 56 * + 60 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END - - 82 / 58
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6444
SELECT ALL + 77 + - CAST( 73 AS DECIMAL ) * - CASE - - ( 5 ) WHEN - 75 THEN + CAST( 87 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL + 77 + - CAST ( 73 AS REAL ) * - CASE - - ( 5 ) WHEN - 75 THEN + CAST ( 87 AS INTEGER ) END
----
NULL

query II rowsort
SELECT - 54 AS col2, 90 * 93
----
-54
8370

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT + 79 * + COUNT( * ) + + ( 4 ) * ( MAX( + 41 ) )
----
243

skipif mysql # not compatible
query I rowsort label-6446
SELECT + 79 * + COUNT ( * ) + + ( 4 ) * ( MAX ( + 41 ) )
----
243

query I rowsort
SELECT + + 97 * - 92 + + NULLIF ( + - ( 35 ), - 56 ) col0
----
-8959

onlyif mysql # DIV for integer division: 
query I rowsort label-6448
SELECT DISTINCT 80 * + NULLIF ( + - 71, - - 93 ) + + 1 + - 87 DIV - 31 AS col0
----
-5677

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT 80 * + NULLIF ( + - 71, - - 93 ) + + 1 + - 87 / - 31 AS col0
----
-5677

onlyif mysql # DIV for integer division: 
query I rowsort label-6449
SELECT 11 DIV 56 DIV + 20 - - + 1
----
1

skipif mysql # not compatible
query I rowsort label-6449
SELECT 11 / 56 / + 20 - - + 1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6450
SELECT ALL - 76 * + + COUNT( * ) + - COALESCE ( 81, + 66 * 83 + + 80 DIV - ( 96 + 81 ) )
----
-157

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - 76 * + + COUNT ( * ) + - COALESCE ( 81, + 66 * 83 + + 80 / - ( 96 + 81 ) )
----
-157

query I rowsort
SELECT DISTINCT + + 67 * + 91 + - 69 AS col0
----
6028

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT ALL - 12 * NULLIF ( - 81, - 80 ) + COUNT( * ) AS col0
----
973

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL - 12 * NULLIF ( - 81, - 80 ) + COUNT ( * ) AS col0
----
973

query I rowsort
SELECT + 81 * + 81 col0
----
6561

query I rowsort
SELECT ALL + 14 * + 46 * 81 AS col2
----
52164

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT ALL + - MIN( DISTINCT 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL + - MIN ( DISTINCT 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT - 46 * COUNT( + 49 ) + + NULLIF ( + ( 91 ), - 93 )
----
45

skipif mysql # not compatible
query I rowsort label-6456
SELECT - 46 * COUNT ( + 49 ) + + NULLIF ( + ( 91 ), - 93 )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6457
SELECT + MIN( + 79 ) - + 13, 9 + + - COALESCE ( 40, - ( 28 ) ) AS col0
----
66
-31

skipif mysql # not compatible
query II rowsort label-6457
SELECT + MIN ( + 79 ) - + 13, 9 + + - COALESCE ( 40, - ( 28 ) ) AS col0
----
66
-31

query I rowsort
SELECT - 38 + - 0 + 19 * 94
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - - COUNT( * ) * + 92 * COUNT( * ) - - - 16
----
76

skipif mysql # not compatible
query I rowsort label-6459
SELECT - - COUNT ( * ) * + 92 * COUNT ( * ) - - - 16
----
76

query I rowsort
SELECT + - NULLIF ( 30, + 46 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT + MIN( 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6461
SELECT + MIN ( 93 ) AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6462
SELECT ALL - 15 DIV + - 9 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL - 15 / + - 9 AS col1
----
1

query I rowsort
SELECT ALL + NULLIF ( + + 63, + 75 * + 80 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6464
SELECT DISTINCT + ( - SUM( DISTINCT 26 ) ), MIN( DISTINCT 12 ) * + 40 AS col2
----
-26
480

skipif mysql # not compatible
query II rowsort label-6464
SELECT DISTINCT + ( - SUM ( DISTINCT 26 ) ), MIN ( DISTINCT 12 ) * + 40 AS col2
----
-26
480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ALL MAX( DISTINCT 58 ) * COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL MAX ( DISTINCT 58 ) * COUNT ( * )
----
58

query I rowsort
SELECT - 4 + + ( 5 ) + - 70
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT + 80 + + - 86 * + + CAST( NULL AS SIGNED ) * 23 * + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT + 80 + + - 86 * + + CAST ( NULL AS INTEGER ) * 23 * + + 56
----
NULL

query I rowsort
SELECT ALL ( 85 ) * - 16
----
-1360

onlyif mysql # aggregate syntax: 
query II rowsort label-6470
SELECT ALL 16 AS col1, + 65 + 63 + - 6 * - 80 + - + COUNT( * ) * 49
----
16
559

skipif mysql # not compatible
query II rowsort label-6470
SELECT ALL 16 AS col1, + 65 + 63 + - 6 * - 80 + - + COUNT ( * ) * 49
----
16
559

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT - NULLIF ( + + MIN( ALL + 33 ), MIN( 0 ) * + 63 * + 2 + - 91 * 20 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-6471
SELECT - NULLIF ( + + MIN ( ALL + 33 ), MIN ( 0 ) * + 63 * + 2 + - 91 * 20 ) AS col0
----
-33

query I rowsort
SELECT + 74 - 41 AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6473
SELECT SUM( - 46 ) AS col1, - 8 AS col1
----
-46
-8

skipif mysql # not compatible
query II rowsort label-6473
SELECT SUM ( - 46 ) AS col1, - 8 AS col1
----
-46
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT + MIN( - 88 ) + - 12
----
-100

skipif mysql # not compatible
query I rowsort label-6474
SELECT + MIN ( - 88 ) + - 12
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6475
SELECT ALL ( + - 24 ) * 22 + 5 + + COALESCE ( + + 92, + 62, ( COUNT( * ) ) * - 11 - CAST( NULL AS SIGNED ) )
----
-431

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL ( + - 24 ) * 22 + 5 + + COALESCE ( + + 92, + 62, ( COUNT ( * ) ) * - 11 - CAST ( NULL AS INTEGER ) )
----
-431

query II rowsort
SELECT + 26 + 12 col2, - 88
----
38
-88

query I rowsort
SELECT ALL NULLIF ( - + 25, - 10 ) AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6478
SELECT DISTINCT MAX( DISTINCT + - 16 ) + 20 - - 43 * + + 76 * + COUNT( * ) DIV - COUNT( + 75 ) AS col0
----
-3264

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT MAX ( DISTINCT + - 16 ) + 20 - - 43 * + + 76 * + COUNT ( * ) / - COUNT ( + 75 ) AS col0
----
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT ALL 8 + - 64 - COUNT( * ) - - 66
----
9

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL 8 + - 64 - COUNT ( * ) - - 66
----
9

query I rowsort
SELECT ALL 85 + - 86 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6481
SELECT 84 col0, CAST( NULL AS SIGNED ) + - + COALESCE ( - + 56, - 13 ) AS col1
----
84
NULL

skipif mysql # not compatible
query II rowsort label-6481
SELECT 84 col0, CAST ( NULL AS INTEGER ) + - + COALESCE ( - + 56, - 13 ) AS col1
----
84
NULL

query I rowsort
SELECT - 49 + - 92 col0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT + MIN( + 26 ) + + 75 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-6483
SELECT + MIN ( + 26 ) + + 75 AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6484
SELECT ALL - 18 + + 24 + - 92 + - 25 + - - MIN( + ( - 2 ) ) * + 27 * 9 * CASE - 64 WHEN NULLIF ( 42, - COALESCE ( - 74, 76 ) * + CAST( NULL AS SIGNED ) + - 14 ) + COUNT( * ) THEN + 19 / 91 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL - 18 + + 24 + - 92 + - 25 + - - MIN ( + ( - 2 ) ) * + 27 * 9 * CASE - 64 WHEN NULLIF ( 42, - COALESCE ( - 74, 76 ) * + CAST ( NULL AS INTEGER ) + - 14 ) + COUNT ( * ) THEN + 19 / 91 ELSE NULL END
----
NULL

query I rowsort
SELECT - 36 + + ( + 26 )
----
-10

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

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

query I rowsort
SELECT DISTINCT - 18 * + + 31 AS col1
----
-558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6488
SELECT ALL - 15 DIV - - 61 + - - COUNT( * ) - 7 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL - 15 / - - 61 + - - COUNT ( * ) - 7 / 44
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6489
SELECT - + COALESCE ( + - CAST( NULL AS SIGNED ), + + ( - + COUNT( * ) ) + + - 10 ) * + - 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6489
SELECT - + COALESCE ( + - CAST ( NULL AS INTEGER ), + + ( - + COUNT ( * ) ) + + - 10 ) * + - 0 AS col1
----
0

query II rowsort
SELECT ALL + - 39 AS col2, 17
----
-39
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT + 9 * - COUNT( * ) + - 75
----
-84

skipif mysql # not compatible
query I rowsort label-6491
SELECT + 9 * - COUNT ( * ) + - 75
----
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6492
SELECT - ( 64 ) / 29 + CAST( NULL AS DECIMAL ) + + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6492
SELECT - ( 64 ) / 29 + CAST ( NULL AS REAL ) + + 64 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6493
SELECT ALL - - ( + - 29 ) - - COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL - - ( + - 29 ) - - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT + COALESCE ( 50, 57 * - - COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-6494
SELECT + COALESCE ( 50, 57 * - - COUNT ( * ) )
----
50

query I rowsort
SELECT - 23 * + + 43 + - 54 AS col2
----
-1043

query I rowsort
SELECT ALL + + 90 * - - 71 AS col1
----
6390

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT DISTINCT - CASE + COUNT( * ) WHEN - 3 THEN NULL WHEN 35 / + + COUNT( * ) + 92 THEN + COUNT( * ) ELSE 9 END
----
-9

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT - CASE + COUNT ( * ) WHEN - 3 THEN NULL WHEN 35 / + + COUNT ( * ) + 92 THEN + COUNT ( * ) ELSE 9 END
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6498
SELECT DISTINCT + 86 - MAX( 33 ) * - - COALESCE ( - + COUNT( * ), + + COUNT( * ) DIV NULLIF ( + COUNT( * ) + 89, - 88 ) ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT + 86 - MAX ( 33 ) * - - COALESCE ( - + COUNT ( * ), + + COUNT ( * ) / NULLIF ( + COUNT ( * ) + 89, - 88 ) ) AS col1
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-6499
SELECT DISTINCT - COUNT( * ), - COALESCE ( + - 85, 64 ) - + 11 AS col0
----
-1
74

skipif mysql # not compatible
query II rowsort label-6499
SELECT DISTINCT - COUNT ( * ), - COALESCE ( + - 85, 64 ) - + 11 AS col0
----
-1
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6500
SELECT COALESCE ( COUNT( * ), + - COUNT( * ) DIV COUNT( * ) + - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-6500
SELECT COALESCE ( COUNT ( * ), + - COUNT ( * ) / COUNT ( * ) + - 55 )
----
1

query I rowsort
SELECT COALESCE ( 34, - 57 * + - 55 - - 44 ) * + + 25 + 91 AS col2
----
941

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6503
SELECT DISTINCT - - 30, CAST( NULL AS SIGNED ) AS col1
----
30
NULL

skipif mysql # not compatible
query II rowsort label-6503
SELECT DISTINCT - - 30, CAST ( NULL AS INTEGER ) AS col1
----
30
NULL

query I rowsort
SELECT - NULLIF ( 14, + 73 ) - - + 72
----
58

query I rowsort
SELECT + - NULLIF ( - 6, 39 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6506
SELECT ALL - CASE + + 41 WHEN - 66 THEN NULL WHEN - - 47 + - NULLIF ( - 95, + CAST( NULL AS SIGNED ) ) * 23 THEN + 1 END * 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL - CASE + + 41 WHEN - 66 THEN NULL WHEN - - 47 + - NULLIF ( - 95, + CAST ( NULL AS INTEGER ) ) * 23 THEN + 1 END * 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT 99 * 17 * - - COUNT( * ) * + 39 * + 47 * + - ( 24 )
----
-74038536

skipif mysql # not compatible
query I rowsort label-6507
SELECT 99 * 17 * - - COUNT ( * ) * + 39 * + 47 * + - ( 24 )
----
-74038536

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT COALESCE ( + MAX( 16 ), - 98 ) * + + 42 * MAX( + 24 ) + 94 AS col0
----
16222

skipif mysql # not compatible
query I rowsort label-6508
SELECT COALESCE ( + MAX ( 16 ), - 98 ) * + + 42 * MAX ( + 24 ) + 94 AS col0
----
16222

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT SUM( + 67 ) + + 31
----
98

skipif mysql # not compatible
query I rowsort label-6509
SELECT SUM ( + 67 ) + + 31
----
98

query I rowsort
SELECT ALL 68 + - - 23 AS col1
----
91

query I rowsort
SELECT 38 + + - ( 20 ) * + - 94 - - 92 * + 2 AS col1
----
2102

onlyif mysql # DIV for integer division: 
query I rowsort label-6512
SELECT 77 DIV 77 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6512
SELECT 77 / 77 AS col0
----
1

query I rowsort
SELECT DISTINCT - ( + 10 ) + + + 70 + 92
----
152

query II rowsort
SELECT ALL 97 * - 27 AS col2, + 56
----
-2619
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6515
SELECT 67 DIV 48 col1
----
1

skipif mysql # not compatible
query I rowsort label-6515
SELECT 67 / 48 col1
----
1

query I rowsort
SELECT ALL - 49 + - 73 + 85 * 12
----
898

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT COUNT( * ) * - - 33
----
33

skipif mysql # not compatible
query I rowsort label-6517
SELECT COUNT ( * ) * - - 33
----
33

query I rowsort
SELECT 86 * + 66
----
5676

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT ALL 61 * SUM( ALL - 64 ) AS col2
----
-3904

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL 61 * SUM ( ALL - 64 ) AS col2
----
-3904

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT SUM( DISTINCT - - 48 ) + + 18
----
66

skipif mysql # not compatible
query I rowsort label-6520
SELECT SUM ( DISTINCT - - 48 ) + + 18
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6521
SELECT ALL MIN( - - 11 ) + - 67 DIV - 61
----
12

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL MIN ( - - 11 ) + - 67 / - 61
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6522
SELECT DISTINCT 90 - - COUNT( * ) + + NULLIF ( + CASE + 66 WHEN - CAST( - 63 AS SIGNED ) THEN - ( COUNT( * ) ) / + 83 + - 37 ELSE NULL END, + 24 * - 38 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT 90 - - COUNT ( * ) + + NULLIF ( + CASE + 66 WHEN - CAST ( - 63 AS INTEGER ) THEN - ( COUNT ( * ) ) / + 83 + - 37 ELSE NULL END, + 24 * - 38 ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6523
SELECT ALL 1 * - 0 DIV + + 78 * + 87 col0
----
0

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL 1 * - 0 / + + 78 * + 87 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6524
SELECT DISTINCT MAX( - - 27 ) col1, COUNT( * )
----
27
1

skipif mysql # not compatible
query II rowsort label-6524
SELECT DISTINCT MAX ( - - 27 ) col1, COUNT ( * )
----
27
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6525
SELECT - 2 * - + 78 DIV + - MIN( ALL + - 67 )
----
2

skipif mysql # not compatible
query I rowsort label-6525
SELECT - 2 * - + 78 / + - MIN ( ALL + - 67 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ALL - - SUM( ALL + + NULLIF ( - + ( + 23 ), + + 11 * - 44 ) ) * + - 92
----
2116

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL - - SUM ( ALL + + NULLIF ( - + ( + 23 ), + + 11 * - 44 ) ) * + - 92
----
2116

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6527
SELECT - 29 - + 82 AS col1, - 64, + + 85 + - NULLIF ( - 23, + 8 ) - - ( COALESCE ( - 87, COUNT( * ) * CASE - 94 WHEN 69 THEN NULL WHEN - 41 THEN - 77 END ) ) DIV 64 AS col0
----
-111
-64
107

skipif mysql # not compatible
query III rowsort label-6527
SELECT - 29 - + 82 AS col1, - 64, + + 85 + - NULLIF ( - 23, + 8 ) - - ( COALESCE ( - 87, COUNT ( * ) * CASE - 94 WHEN 69 THEN NULL WHEN - 41 THEN - 77 END ) ) / 64 AS col0
----
-111
-64
107

query I rowsort
SELECT 9 * - 10 * - 21 * 95 AS col1
----
179550

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ALL - CASE + COUNT( * ) WHEN - 0 THEN - ( - 68 ) * + - 59 / NULLIF ( COUNT( * ), + 76 + + CASE 84 WHEN 96 THEN 51 WHEN - 32 THEN NULL ELSE 2 * 40 END ) + + 55 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL - CASE + COUNT ( * ) WHEN - 0 THEN - ( - 68 ) * + - 59 / NULLIF ( COUNT ( * ), + 76 + + CASE 84 WHEN 96 THEN 51 WHEN - 32 THEN NULL ELSE 2 * 40 END ) + + 55 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT COUNT( - 73 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6530
SELECT COUNT ( - 73 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6531
SELECT COUNT( DISTINCT - - 6 ) DIV - - 96 + - - 13 + NULLIF ( + 38, 55 * + CAST( NULL AS SIGNED ) + 63 ) * COUNT( * ) DIV 78
----
13

skipif mysql # not compatible
query I rowsort label-6531
SELECT COUNT ( DISTINCT - - 6 ) / - - 96 + - - 13 + NULLIF ( + 38, 55 * + CAST ( NULL AS INTEGER ) + 63 ) * COUNT ( * ) / 78
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6532
SELECT SUM( DISTINCT + 81 ) DIV 27 - + - 71
----
74

skipif mysql # not compatible
query I rowsort label-6532
SELECT SUM ( DISTINCT + 81 ) / 27 - + - 71
----
74

query I rowsort
SELECT DISTINCT - - COALESCE ( 82, + + 17 )
----
82

query I rowsort
SELECT 32 * + ( 25 ) + - - 90 AS col0
----
890

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT + MAX( ALL - 86 ) - + 83 * 61 AS col0
----
-5149

skipif mysql # not compatible
query I rowsort label-6535
SELECT + MAX ( ALL - 86 ) - + 83 * 61 AS col0
----
-5149

onlyif mysql # DIV for integer division: 
query I rowsort label-6536
SELECT 68 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-6536
SELECT 68 / - 42
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT - 1 * - SUM( + - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6537
SELECT - 1 * - SUM ( + - 41 ) AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6538
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) / - - 21 col0, - COUNT( * ) col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6538
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) / - - 21 col0, - COUNT ( * ) col0
----
NULL
-1

query I rowsort
SELECT ALL - 30 + + + 24 + + 47 * - 45 AS col2
----
-2121

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL + 26 + - COUNT( - + 24 ) + - + SUM( + 42 )
----
-17

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL + 26 + - COUNT ( - + 24 ) + - + SUM ( + 42 )
----
-17

query I rowsort
SELECT DISTINCT - 62 + - + CASE 28 WHEN + ( - 1 ) THEN NULL ELSE + ( - - 9 ) END
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6542
SELECT 26 * 85 DIV 20 DIV 41 + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6542
SELECT 26 * 85 / 20 / 41 + COUNT ( * ) AS col0
----
3

query I rowsort
SELECT 57 * + 85 col2
----
4845

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL - COUNT( DISTINCT - 45 ) + - 23 * + 27
----
-622

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL - COUNT ( DISTINCT - 45 ) + - 23 * + 27
----
-622

query I rowsort
SELECT DISTINCT - 35 * 7
----
-245

query I rowsort
SELECT DISTINCT - 63 + 90
----
27

query I rowsort
SELECT 47 + + 23 AS col1
----
70

query I rowsort
SELECT 83 * + 55 col0
----
4565

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT - 45 + COUNT( - - 76 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT - 45 + COUNT ( - - 76 ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6550
SELECT ALL MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT 57 + + 42 * MAX( DISTINCT + CAST( + 24 AS SIGNED ) )
----
1065

skipif mysql # not compatible
query I rowsort label-6551
SELECT 57 + + 42 * MAX ( DISTINCT + CAST ( + 24 AS INTEGER ) )
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT DISTINCT MAX( DISTINCT + 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT MAX ( DISTINCT + 22 ) AS col0
----
22

query I rowsort
SELECT ALL - 18 + - - 15 * 40 AS col2
----
582

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT MAX( + 25 ) + 98
----
123

skipif mysql # not compatible
query I rowsort label-6554
SELECT MAX ( + 25 ) + 98
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-6555
SELECT ALL 7 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL 7 / + 62
----
0

query I rowsort
SELECT 92 + - - 4
----
96

query I rowsort
SELECT ALL - 19 - + + 1 AS col2
----
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-6558
SELECT 1 + - 23 DIV + 23, 67 + + 19 - 85 - - 28 AS col1
----
0
29

skipif mysql # not compatible
query II rowsort label-6558
SELECT 1 + - 23 / + 23, 67 + + 19 - 85 - - 28 AS col1
----
0
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT DISTINCT + 1 - + 57 + + 54 * - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT + 1 - + 57 + + 54 * - - COUNT ( * )
----
-2

query II rowsort
SELECT DISTINCT 4 AS col2, 70 + 28
----
4
98

query I rowsort
SELECT - 77 + 25 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT ALL NULLIF ( + 26, CASE WHEN - 80 >= NULL THEN 31 * - 13 / - COALESCE ( 7, COUNT( * ) + 25 / 13 ) + 58 + - 96 END + + 58 ) * 89 AS col0
----
2314

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL NULLIF ( + 26, CASE WHEN - 80 >= NULL THEN 31 * - 13 / - COALESCE ( 7, COUNT ( * ) + 25 / 13 ) + 58 + - 96 END + + 58 ) * 89 AS col0
----
2314

query I rowsort
SELECT DISTINCT + 10 * + 70
----
700

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

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

query I rowsort
SELECT - 5 * + - CASE + + 10 WHEN + 95 THEN - 48 WHEN + 86 * 90 THEN NULL END * - - ( 9 ) - 58
----
NULL

query I rowsort
SELECT + 74 + 12 * + + ( + 25 )
----
374

query I rowsort
SELECT + + 72 + + + 88
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT CASE WHEN + 0 IS NULL THEN NULL ELSE + - 24 * + 41 * + COUNT( * ) END AS col1
----
-984

skipif mysql # not compatible
query I rowsort label-6568
SELECT CASE WHEN + 0 IS NULL THEN NULL ELSE + - 24 * + 41 * + COUNT ( * ) END AS col1
----
-984

query II rowsort
SELECT ALL - + 56 * - - 27 + + - 29 * - - 12 AS col2, + 39 AS col0
----
-1860
39

query I rowsort
SELECT + - 97 + + 32 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-6571
SELECT + + 80 * + 3 + + 86 + + ( SUM( - 68 ) ) col1, ( + + 2 )
----
258
2

skipif mysql # not compatible
query II rowsort label-6571
SELECT + + 80 * + 3 + + 86 + + ( SUM ( - 68 ) ) col1, ( + + 2 )
----
258
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT ALL CASE + ( 99 ) WHEN - 78 THEN - COUNT( + 41 ) WHEN + 31 * - 95 * 49 THEN NULL WHEN 83 * 22 - + 83 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL CASE + ( 99 ) WHEN - 78 THEN - COUNT ( + 41 ) WHEN + 31 * - 95 * 49 THEN NULL WHEN 83 * 22 - + 83 THEN NULL END
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6575
SELECT + 22 DIV + 90 * + 36 * 47 * - - 88 + + + 28 * - 25
----
-700

skipif mysql # not compatible
query I rowsort label-6575
SELECT + 22 / + 90 * + 36 * 47 * - - 88 + + + 28 * - 25
----
-700

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

query I rowsort
SELECT + 21 * + - 33
----
-693

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL + 19 * - NULLIF ( + - CASE + + 46 WHEN + 13 + + MIN( DISTINCT + 52 ) + 22 - 70 * + 1 * COUNT( * ) THEN - 80 + - COUNT( * ) ELSE 13 + 42 END, 11 * NULLIF ( 41 / - 66, - 34 + + COUNT( * ) ) + 47 ) + 2 + - 19 AS col2
----
1028

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL + 19 * - NULLIF ( + - CASE + + 46 WHEN + 13 + + MIN ( DISTINCT + 52 ) + 22 - 70 * + 1 * COUNT ( * ) THEN - 80 + - COUNT ( * ) ELSE 13 + 42 END, 11 * NULLIF ( 41 / - 66, - 34 + + COUNT ( * ) ) + 47 ) + 2 + - 19 AS col2
----
1028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6580
SELECT ALL + 83 * + + COUNT( * ) * - + NULLIF ( 38, + SUM( DISTINCT + 95 ) + NULLIF ( + CAST( NULL AS SIGNED ), + COUNT( * ) / 63 + 79 ) ) + COUNT( * ) AS col0
----
-3153

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL + 83 * + + COUNT ( * ) * - + NULLIF ( 38, + SUM ( DISTINCT + 95 ) + NULLIF ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) / 63 + 79 ) ) + COUNT ( * ) AS col0
----
-3153

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT DISTINCT 78 * CASE COUNT( * ) WHEN - + COALESCE ( 68, COUNT( * ) ) * 7 * + 74 / 90 - 80 * SUM( DISTINCT 99 * + ( 70 ) ) THEN ( - 34 ) ELSE NULL END * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT 78 * CASE COUNT ( * ) WHEN - + COALESCE ( 68, COUNT ( * ) ) * 7 * + 74 / 90 - 80 * SUM ( DISTINCT 99 * + ( 70 ) ) THEN ( - 34 ) ELSE NULL END * 8
----
NULL

query I rowsort
SELECT DISTINCT + 33 * - - 22 + 35 + - 43 * 53
----
-1518

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL - 19 * 77 * + + CASE WHEN - 48 IS NULL THEN NULL ELSE + 86 END + COUNT( 49 ) + + - 8
----
-125825

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL - 19 * 77 * + + CASE WHEN - 48 IS NULL THEN NULL ELSE + 86 END + COUNT ( 49 ) + + - 8
----
-125825

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

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

query I rowsort
SELECT ALL 26 * - + 57 + 77
----
-1405

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT MAX( DISTINCT + 65 ) col1
----
65

skipif mysql # not compatible
query I rowsort label-6587
SELECT MAX ( DISTINCT + 65 ) col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6588
SELECT ( + 83 ) * + CAST( MAX( 86 ) AS SIGNED ) * 95 * - CAST( NULL AS SIGNED ) * - 79 + + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT ( + 83 ) * + CAST ( MAX ( 86 ) AS INTEGER ) * 95 * - CAST ( NULL AS INTEGER ) * - 79 + + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6589
SELECT + COALESCE ( - - 77, + 32 * - 15 * 68 - - 26 + + MIN( - - ( + 95 ) ) * 73 DIV 37 + 70 ) * 48 AS col1
----
3696

skipif mysql # not compatible
query I rowsort label-6589
SELECT + COALESCE ( - - 77, + 32 * - 15 * 68 - - 26 + + MIN ( - - ( + 95 ) ) * 73 / 37 + 70 ) * 48 AS col1
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT - 49 + NULLIF ( CASE 5 WHEN + - 79 * 93 + + - 20 - + ( - + 39 ) - 40 / + 72 THEN 1 * MAX( + 29 ) + + COUNT( * ) END, + 40 / - 5 + - 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6590
SELECT - 49 + NULLIF ( CASE 5 WHEN + - 79 * 93 + + - 20 - + ( - + 39 ) - 40 / + 72 THEN 1 * MAX ( + 29 ) + + COUNT ( * ) END, + 40 / - 5 + - 82 ) AS col2
----
NULL

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

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

query II rowsort
SELECT DISTINCT + ( - 85 ) AS col0, 58 * - 72 AS col0
----
-85
-4176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6593
SELECT - CAST( - 12 AS SIGNED ) - - COUNT( * ) + + 54 + + - 2 * - ( + + 26 ) + 86 + + 43 * 63 AS col2
----
2914

skipif mysql # not compatible
query I rowsort label-6593
SELECT - CAST ( - 12 AS INTEGER ) - - COUNT ( * ) + + 54 + + - 2 * - ( + + 26 ) + 86 + + 43 * 63 AS col2
----
2914

query II rowsort
SELECT ALL ( + - 51 ), 87 AS col1
----
-51
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT DISTINCT - COUNT( * ) * + 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT - COUNT ( * ) * + 10 AS col2
----
-10

query I rowsort
SELECT DISTINCT ( 95 )
----
95

query I rowsort
SELECT ALL - 87 * + 90 AS col2
----
-7830

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT DISTINCT + 14 * + - MAX( ALL + 21 )
----
-294

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT + 14 * + - MAX ( ALL + 21 )
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL NULLIF ( + 78, + 21 * + AVG ( DISTINCT - + 97 ) + + + COUNT( * ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL NULLIF ( + 78, + 21 * + AVG ( DISTINCT - + 97 ) + + + COUNT ( * ) ) AS col1
----
78

query I rowsort
SELECT ALL + 98 * + 67
----
6566

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT - + COUNT( + 0 ) + + - 33 col0
----
-34

skipif mysql # not compatible
query I rowsort label-6601
SELECT - + COUNT ( + 0 ) + + - 33 col0
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6602
SELECT - + CASE 86 WHEN - 42 THEN NULL ELSE - 27 END / + - 11 * + 38 + + CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT - + CASE 86 WHEN - 42 THEN NULL ELSE - 27 END / + - 11 * + 38 + + CAST ( + CAST ( NULL AS REAL ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6603
SELECT MAX( - + 84 ), ( - 2 ) col0
----
-84
-2

skipif mysql # not compatible
query II rowsort label-6603
SELECT MAX ( - + 84 ), ( - 2 ) col0
----
-84
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT ALL ( - MIN( DISTINCT 44 ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL ( - MIN ( DISTINCT 44 ) ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT DISTINCT + 4 + + COUNT( * ) * COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT + 4 + + COUNT ( * ) * COUNT ( * ) AS col1
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT - + 76 * - 79 * + - 36 * - COUNT( * )
----
216144

skipif mysql # not compatible
query I rowsort label-6607
SELECT - + 76 * - 79 * + - 36 * - COUNT ( * )
----
216144

onlyif mysql # DIV for integer division: 
query I rowsort label-6608
SELECT ALL + 54 DIV + + 41
----
1

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL + 54 / + + 41
----
1

query I rowsort
SELECT ALL - 96 + - 42 AS col1
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT - COUNT( + 31 ) + - - CASE + 65 WHEN 19 / - 55 - - - 42 / + 93 THEN 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6610
SELECT - COUNT ( + 31 ) + - - CASE + 65 WHEN 19 / - 55 - - - 42 / + 93 THEN 32 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6611
SELECT - + NULLIF ( 4, - CASE - + 19 WHEN CASE + - 16 WHEN NULLIF ( + NULLIF ( - CAST( NULL AS SIGNED ), ( 32 ) + COUNT( 15 ) ), + 35 * - 36 ) * - MAX( DISTINCT - 17 ) + CASE - MAX( ALL + 30 ) WHEN + 50 + + 94 THEN 24 / 41 ELSE NULL END THEN - 14 * - 51 ELSE COUNT( * ) END - - CAST( - 2 AS SIGNED ) THEN 44 END ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-6611
SELECT - + NULLIF ( 4, - CASE - + 19 WHEN CASE + - 16 WHEN NULLIF ( + NULLIF ( - CAST ( NULL AS INTEGER ), ( 32 ) + COUNT ( 15 ) ), + 35 * - 36 ) * - MAX ( DISTINCT - 17 ) + CASE - MAX ( ALL + 30 ) WHEN + 50 + + 94 THEN 24 / 41 ELSE NULL END THEN - 14 * - 51 ELSE COUNT ( * ) END - - CAST ( - 2 AS INTEGER ) THEN 44 END ) col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6612
SELECT - 5 + + 36, SUM( + 19 ) * 17 DIV + - 11 - 71 * 84 + + 84 AS col0
----
31
-5909

skipif mysql # not compatible
query II rowsort label-6612
SELECT - 5 + + 36, SUM ( + 19 ) * 17 / + - 11 - 71 * 84 + + 84 AS col0
----
31
-5909

query I rowsort
SELECT ALL - 5 + - 69 - - + 89 * + - 82
----
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT CASE - ( + COUNT( * ) ) WHEN - - 21 * + - 53 THEN NULL WHEN - 63 + - 39 THEN NULL ELSE 48 END AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6614
SELECT CASE - ( + COUNT ( * ) ) WHEN - - 21 * + - 53 THEN NULL WHEN - 63 + - 39 THEN NULL ELSE 48 END AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT ALL + 29 DIV + + 69 + - - 33 col0
----
33

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL + 29 / + + 69 + - - 33 col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT + 20 * + + ( - 90 ) - - COUNT( * ) AS col0
----
-1799

skipif mysql # not compatible
query I rowsort label-6616
SELECT + 20 * + + ( - 90 ) - - COUNT ( * ) AS col0
----
-1799

onlyif mysql # DIV for integer division: 
query I rowsort label-6617
SELECT DISTINCT + 43 DIV - 11 + + - 38
----
-41

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT + 43 / - 11 + + - 38
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6618
SELECT + + SUM( - - 5 ) DIV - COUNT( * ) + 79 + + 4 * + 46
----
258

skipif mysql # not compatible
query I rowsort label-6618
SELECT + + SUM ( - - 5 ) / - COUNT ( * ) + 79 + + 4 * + 46
----
258

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT + COUNT( * ) * - 50 - + + 9 * + COALESCE ( + - 29, + 87 + 60 ) + - 83 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-6620
SELECT + COUNT ( * ) * - 50 - + + 9 * + COALESCE ( + - 29, + 87 + 60 ) + - 83 AS col2
----
128

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6622
SELECT DISTINCT 91 DIV + - 92 - - ( - + 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT 91 / + - 92 - - ( - + 84 ) AS col0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6623
SELECT ALL 65 DIV - 55 - - 20 col2
----
19

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL 65 / - 55 - - 20 col2
----
19

query I rowsort
SELECT + ( - + 61 ) * 75 AS col1
----
-4575

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT ALL COUNT( * ) * - - 41 * + COALESCE ( + + 50, - - 94 * - 65 + MAX( + 58 ) )
----
2050

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL COUNT ( * ) * - - 41 * + COALESCE ( + + 50, - - 94 * - 65 + MAX ( + 58 ) )
----
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ( ( CASE + 57 WHEN 90 - 39 THEN NULL ELSE - + COUNT( * ) * + + 33 * 21 + + NULLIF ( - COALESCE ( 2, - 44 + + 2 ), 99 + 68 * + ( AVG ( ALL - 97 ) ) ) * + 59 + - COUNT( * ) END ) )
----
-812

skipif mysql # not compatible
query I rowsort label-6626
SELECT ( ( CASE + 57 WHEN 90 - 39 THEN NULL ELSE - + COUNT ( * ) * + + 33 * 21 + + NULLIF ( - COALESCE ( 2, - 44 + + 2 ), 99 + 68 * + ( AVG ( ALL - 97 ) ) ) * + 59 + - COUNT ( * ) END ) )
----
-812

query I rowsort
SELECT ALL 43 * 71 AS col1
----
3053

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6628
SELECT ALL 2 * + 3 * + 26 - - CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL 2 * + 3 * + 26 - - CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT SUM( - + 12 ) * 84
----
-1008

skipif mysql # not compatible
query I rowsort label-6629
SELECT SUM ( - + 12 ) * 84
----
-1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6630
SELECT SUM( DISTINCT 7 ) + + ( + ( - 36 ) ) AS col1, + 40 DIV + - 59
----
-29
0

skipif mysql # not compatible
query II rowsort label-6630
SELECT SUM ( DISTINCT 7 ) + + ( + ( - 36 ) ) AS col1, + 40 / + - 59
----
-29
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6631
SELECT 21 DIV 41 col2
----
0

skipif mysql # not compatible
query I rowsort label-6631
SELECT 21 / 41 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6632
SELECT ALL - COUNT( - 31 ) DIV + ( 54 ) + - MIN( - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - COUNT ( - 31 ) / + ( 54 ) + - MIN ( - 39 )
----
39

query I rowsort
SELECT 98 + 35
----
133

query I rowsort
SELECT NULLIF ( 80, 55 ) * - + ( + 60 )
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT - 96 + 1 * + 93 - - + SUM( DISTINCT - 94 )
----
-97

skipif mysql # not compatible
query I rowsort label-6635
SELECT - 96 + 1 * + 93 - - + SUM ( DISTINCT - 94 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL + - COUNT( + 96 ) * + - 36 + - 19
----
17

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL + - COUNT ( + 96 ) * + - 36 + - 19
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT ALL 79 + 64 * CASE 38 WHEN - - CAST( NULL AS SIGNED ) THEN - + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL 79 + 64 * CASE 38 WHEN - - CAST ( NULL AS INTEGER ) THEN - + COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 69 * - - 23
----
1587

query I rowsort
SELECT - 23 + 97
----
74

query I rowsort
SELECT ALL - + ( - 17 ) + 50
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6641
SELECT ALL + + 89 + CAST( + + 44 AS SIGNED ) + - ( - + 72 )
----
205

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL + + 89 + CAST ( + + 44 AS INTEGER ) + - ( - + 72 )
----
205

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT 43 + - - MAX( - 73 )
----
-30

skipif mysql # not compatible
query I rowsort label-6642
SELECT 43 + - - MAX ( - 73 )
----
-30

query I rowsort
SELECT + 45 + + 73 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT - COUNT( ALL + 30 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6644
SELECT - COUNT ( ALL + 30 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6645
SELECT COALESCE ( NULLIF ( + 14, - 66 ), + + CAST( 14 AS SIGNED ), - ( + - 30 ) * + COUNT( * ) * 71 ) + - 43
----
-29

skipif mysql # not compatible
query I rowsort label-6645
SELECT COALESCE ( NULLIF ( + 14, - 66 ), + + CAST ( 14 AS INTEGER ), - ( + - 30 ) * + COUNT ( * ) * 71 ) + - 43
----
-29

query II rowsort
SELECT - + 19 AS col0, ( 33 ) + + - 12 AS col2
----
-19
21

query II rowsort
SELECT - 12 + + - 61 * 13, + 21 AS col1
----
-805
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6648
SELECT ALL - + COALESCE ( + 15, - - SUM( + 93 ) + - - 0 + - 71 DIV + - 12 ) + - COUNT( * ) AS col2, 89 * + - 30 AS col0
----
-16
-2670

skipif mysql # not compatible
query II rowsort label-6648
SELECT ALL - + COALESCE ( + 15, - - SUM ( + 93 ) + - - 0 + - 71 / + - 12 ) + - COUNT ( * ) AS col2, 89 * + - 30 AS col0
----
-16
-2670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6649
SELECT 12 + - CAST( + 37 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-6649
SELECT 12 + - CAST ( + 37 AS INTEGER )
----
-25

query I rowsort
SELECT ALL - + ( + + 84 ) + + 84
----
0

query I rowsort
SELECT ALL - 98 + - + ( + + 97 ) * + 78 - + 97 * - + ( + 45 ) AS col0
----
-3299

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL 78 * + 44 + MIN( 61 ) * COUNT( * ) + + - 18 AS col1
----
3475

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL 78 * + 44 + MIN ( 61 ) * COUNT ( * ) + + - 18 AS col1
----
3475

query I rowsort
SELECT ALL - COALESCE ( - 26, + + 39 * - 8 * - 85 + + - 1 ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6654
SELECT - 87 DIV 94 + 69
----
69

skipif mysql # not compatible
query I rowsort label-6654
SELECT - 87 / 94 + 69
----
69

query II rowsort
SELECT 20, COALESCE ( + 8, - 97 ) AS col2
----
20
8

query I rowsort
SELECT 57 * + 35 AS col1
----
1995

query I rowsort
SELECT DISTINCT - 86 * + 40 AS col1
----
-3440

query I rowsort
SELECT ALL + 31 - + - 32 AS col2
----
63

query I rowsort
SELECT DISTINCT 97 * + + 38 * 63
----
232218

query II rowsort
SELECT DISTINCT - 18, + 65 * - 72 AS col1
----
-18
-4680

query I rowsort
SELECT ALL + 32 * 30 AS col0
----
960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6662
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, 7
----
NULL
7

skipif mysql # not compatible
query II rowsort label-6662
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 7
----
NULL
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6663
SELECT SUM( ALL - 47 ) - - 6 + - NULLIF ( 76, + 36 * - - CAST( NULL AS SIGNED ) ) AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-6663
SELECT SUM ( ALL - 47 ) - - 6 + - NULLIF ( 76, + 36 * - - CAST ( NULL AS INTEGER ) ) AS col2
----
-117

query I rowsort
SELECT ALL ( + - 77 ) * - 58 AS col1
----
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT 36 + - + 62 * - COUNT( * ) * - 44 * + - 48 + + + 80 AS col0
----
131060

skipif mysql # not compatible
query I rowsort label-6665
SELECT 36 + - + 62 * - COUNT ( * ) * - 44 * + - 48 + + + 80 AS col0
----
131060

query I rowsort
SELECT DISTINCT 60 * + + 77
----
4620

query II rowsort
SELECT + 85 col0, 54
----
85
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT ALL + 79 + + CASE + - ( + 34 ) WHEN - + MAX( DISTINCT + + 60 ) - - 6 * - 4 THEN ( - 94 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL + 79 + + CASE + - ( + 34 ) WHEN - + MAX ( DISTINCT + + 60 ) - - 6 * - 4 THEN ( - 94 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL 54 * + COUNT( * ) + + 6 col2
----
60

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL 54 * + COUNT ( * ) + + 6 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL + 98 + + MIN( ALL + + 66 )
----
164

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL + 98 + + MIN ( ALL + + 66 )
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6671
SELECT DISTINCT + 87 * + 24, CAST( NULL AS SIGNED ) * + 33 AS col1
----
2088
NULL

skipif mysql # not compatible
query II rowsort label-6671
SELECT DISTINCT + 87 * + 24, CAST ( NULL AS INTEGER ) * + 33 AS col1
----
2088
NULL

query I rowsort
SELECT ALL + 29 + 56
----
85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6674
SELECT + 60 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-6674
SELECT + 60 / 99
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6676
SELECT ALL CAST( - + COUNT( DISTINCT + 20 ) AS SIGNED ) + 77 - - + 5
----
81

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL CAST ( - + COUNT ( DISTINCT + 20 ) AS INTEGER ) + 77 - - + 5
----
81

query II rowsort
SELECT 90, - ( 19 ) AS col0
----
90
-19

query I rowsort
SELECT - 43 * - + 36 AS col1
----
1548

query I rowsort
SELECT ALL 13 + - 76 AS col1
----
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT DISTINCT + COUNT( * ) + + 74 + + + 17 * + 33 + 66 * - 96 AS col1
----
-5700

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT + COUNT ( * ) + + 74 + + + 17 * + 33 + 66 * - 96 AS col1
----
-5700

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT DISTINCT - 72 DIV 14 + - 12
----
-17

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT - 72 / 14 + - 12
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT - ( + MAX( 95 ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-6683
SELECT - ( + MAX ( 95 ) ) AS col0
----
-95

query I rowsort
SELECT DISTINCT + + COALESCE ( - 24, + 65 ) * 86 AS col0
----
-2064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6685
SELECT ALL - 22 - - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL - 22 - - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-21

query II rowsort
SELECT - 26 AS col1, 61 * 72 col2
----
-26
4392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6687
SELECT + MIN( ALL 10 ) + + NULLIF ( COALESCE ( - 14, + + NULLIF ( - + 3, + 86 + - COUNT( * ) ) ), 18 ) DIV + 96
----
10

skipif mysql # not compatible
query I rowsort label-6687
SELECT + MIN ( ALL 10 ) + + NULLIF ( COALESCE ( - 14, + + NULLIF ( - + 3, + 86 + - COUNT ( * ) ) ), 18 ) / + 96
----
10

query I rowsort
SELECT + 46 * 3 + 0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6689
SELECT ALL COALESCE ( + 86, + COUNT( * ) + CASE 76 WHEN - + 35 * - 8 THEN NULL WHEN COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) THEN + 29 + + 39 END - + 84 )
----
86

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL COALESCE ( + 86, + COUNT ( * ) + CASE 76 WHEN - + 35 * - 8 THEN NULL WHEN COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) THEN + 29 + + 39 END - + 84 )
----
86

query II rowsort
SELECT - + 49 AS col1, 27 AS col2
----
-49
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6691
SELECT 93 + + - SUM( DISTINCT 75 ) DIV + - COUNT( * ) + 78 * - - 72 AS col0
----
5784

skipif mysql # not compatible
query I rowsort label-6691
SELECT 93 + + - SUM ( DISTINCT 75 ) / + - COUNT ( * ) + 78 * - - 72 AS col0
----
5784

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6693
SELECT 67 * - 55 DIV + 55
----
-67

skipif mysql # not compatible
query I rowsort label-6693
SELECT 67 * - 55 / + 55
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6694
SELECT 2 * - + COUNT( * ) AS col1, 58 * + + 97
----
-2
5626

skipif mysql # not compatible
query II rowsort label-6694
SELECT 2 * - + COUNT ( * ) AS col1, 58 * + + 97
----
-2
5626

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT DISTINCT 68 * 75 * COUNT( * )
----
5100

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT 68 * 75 * COUNT ( * )
----
5100

query I rowsort
SELECT ALL - NULLIF ( + + 61, - + 41 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6697
SELECT COALESCE ( - 29, 7, + COUNT( * ) + - 38 ), - 17 * - 29 + CAST( COUNT( * ) AS SIGNED ) AS col2
----
-29
494

skipif mysql # not compatible
query II rowsort label-6697
SELECT COALESCE ( - 29, 7, + COUNT ( * ) + - 38 ), - 17 * - 29 + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-29
494

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT 95 + - 95 * + 69 * COUNT( * ) * - + 25
----
163970

skipif mysql # not compatible
query I rowsort label-6698
SELECT 95 + - 95 * + 69 * COUNT ( * ) * - + 25
----
163970

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT DISTINCT 44 * - CASE COUNT( * ) WHEN - ( + + NULLIF ( + 34, - 30 ) ) THEN NULL ELSE - 72 * - MIN( + - 90 ) * + SUM( DISTINCT - 68 ) + - 17 END AS col0
----
-19387412

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT 44 * - CASE COUNT ( * ) WHEN - ( + + NULLIF ( + 34, - 30 ) ) THEN NULL ELSE - 72 * - MIN ( + - 90 ) * + SUM ( DISTINCT - 68 ) + - 17 END AS col0
----
-19387412

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT COALESCE ( CASE SUM( DISTINCT 37 ) WHEN + + 41 * + + AVG ( 55 ) + - COUNT( * ) THEN NULL WHEN - 65 THEN NULL ELSE - 20 END, 38 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6700
SELECT COALESCE ( CASE SUM ( DISTINCT 37 ) WHEN + + 41 * + + AVG ( 55 ) + - COUNT ( * ) THEN NULL WHEN - 65 THEN NULL ELSE - 20 END, 38 ) AS col2
----
-20

query I rowsort
SELECT - 78 * + 86
----
-6708

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT COUNT( + + 62 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6702
SELECT COUNT ( + + 62 ) AS col2
----
1

query I rowsort
SELECT ALL - 37 * 26 AS col2
----
-962

query I rowsort
SELECT DISTINCT + ( - + 15 ) * 72
----
-1080

query I rowsort
SELECT - 48 * + + 6 * + 60 * + + 56 * + 23 * 42
----
-934778880

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT - 25 * 93 * + + COUNT( * )
----
-2325

skipif mysql # not compatible
query I rowsort label-6706
SELECT - 25 * 93 * + + COUNT ( * )
----
-2325

onlyif mysql # aggregate syntax: 
query II rowsort label-6707
SELECT ALL + COUNT( 9 ), 73 col2
----
1
73

skipif mysql # not compatible
query II rowsort label-6707
SELECT ALL + COUNT ( 9 ), 73 col2
----
1
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6708
SELECT DISTINCT - AVG ( ALL - CAST( NULL AS SIGNED ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT - AVG ( ALL - CAST ( NULL AS INTEGER ) ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6709
SELECT - 31 + - CAST( + CASE - CAST( + + 93 AS SIGNED ) WHEN 52 / + 81 * - 84 + - CAST( 93 AS SIGNED ) / + 1 * 81 * 91 + + 21 THEN - 69 * 41 + COUNT( * ) / - 20 WHEN + 94 + - 14 THEN NULL END AS SIGNED ) * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6709
SELECT - 31 + - CAST ( + CASE - CAST ( + + 93 AS INTEGER ) WHEN 52 / + 81 * - 84 + - CAST ( 93 AS INTEGER ) / + 1 * 81 * 91 + + 21 THEN - 69 * 41 + COUNT ( * ) / - 20 WHEN + 94 + - 14 THEN NULL END AS INTEGER ) * 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT + 80 * + MIN( + 40 ) * + 16 + - 79 - + 73 col1
----
51048

skipif mysql # not compatible
query I rowsort label-6710
SELECT + 80 * + MIN ( + 40 ) * + 16 + - 79 - + 73 col1
----
51048

query II rowsort
SELECT - 44 + + - 2 AS col0, 9 AS col0
----
-46
9

query I rowsort
SELECT ALL 83 + + - 14 * + - 57
----
881

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT - 13 * + - 94 + - 29 + + 52 * 4 + - ( - - 43 ) + - CASE - 6 WHEN - + 83 / - 99 - - COUNT( 17 ) THEN NULL WHEN + 99 + + 30 THEN - 77 END / 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT - 13 * + - 94 + - 29 + + 52 * 4 + - ( - - 43 ) + - CASE - 6 WHEN - + 83 / - 99 - - COUNT ( 17 ) THEN NULL WHEN + 99 + + 30 THEN - 77 END / 62 col1
----
NULL

query I rowsort
SELECT + COALESCE ( + + 64, - 17 ) * + + 3
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT - + COUNT( + - 84 ) + - 22 col1
----
-23

skipif mysql # not compatible
query I rowsort label-6715
SELECT - + COUNT ( + - 84 ) + - 22 col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT DISTINCT - 76 * - COUNT( DISTINCT + 1 ) * 86 AS col2
----
6536

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT - 76 * - COUNT ( DISTINCT + 1 ) * 86 AS col2
----
6536

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL ( - + ( MIN( 49 ) ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL ( - + ( MIN ( 49 ) ) ) AS col1
----
-49

query II rowsort
SELECT ALL + 43 * + 18 AS col0, - 15
----
774
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT + + NULLIF ( - CASE - NULLIF ( - 14, COUNT( * ) ) WHEN - + 42 THEN NULL WHEN - ( - + 42 ) THEN NULL WHEN COUNT( * ) * + ( - - 47 ) THEN 55 END, - 91 ) + - 1 * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT + + NULLIF ( - CASE - NULLIF ( - 14, COUNT ( * ) ) WHEN - + 42 THEN NULL WHEN - ( - + 42 ) THEN NULL WHEN COUNT ( * ) * + ( - - 47 ) THEN 55 END, - 91 ) + - 1 * - 24
----
NULL

query I rowsort
SELECT DISTINCT 72 * - 2 + - - 30 AS col1
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6721
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ), - 51 AS col2
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-6721
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ), - 51 AS col2
----
NULL
-51

query I rowsort
SELECT + + 87 + 18 * 44 * + 92 col0
----
72951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6723
SELECT ALL - CAST( 16 AS SIGNED ) * 3 * + 19
----
-912

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL - CAST ( 16 AS INTEGER ) * 3 * + 19
----
-912

query I rowsort
SELECT NULLIF ( + ( 13 ), - + 30 ) AS col0
----
13

query I rowsort
SELECT + 30 + - ( + 31 )
----
-1

query II rowsort
SELECT DISTINCT ( + 22 ), 72 + - 12 * + 14 + + 92 AS col0
----
22
-4

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

skipif mysql # not compatible
query I rowsort label-6727
SELECT + NULLIF ( - COUNT ( * ), 10 * - 61 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6728
SELECT + 87 * - NULLIF ( + CASE + - ( - 32 ) WHEN + - 19 / + CAST( NULL AS SIGNED ) * + - COALESCE ( - + ( - 6 ), 40 / + 47, - 62, - COUNT( * ) ) THEN 80 WHEN 12 * AVG ( DISTINCT ( 97 ) ) THEN ( 44 ) / + 20 END, - 19 + - MIN( DISTINCT + 72 ) * ( 6 * + 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT + 87 * - NULLIF ( + CASE + - ( - 32 ) WHEN + - 19 / + CAST ( NULL AS INTEGER ) * + - COALESCE ( - + ( - 6 ), 40 / + 47, - 62, - COUNT ( * ) ) THEN 80 WHEN 12 * AVG ( DISTINCT ( 97 ) ) THEN ( 44 ) / + 20 END, - 19 + - MIN ( DISTINCT + 72 ) * ( 6 * + 89 ) )
----
NULL

query I rowsort
SELECT - 57 + 56
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6730
SELECT - 51 DIV + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6730
SELECT - 51 / + 79 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6731
SELECT DISTINCT 58, + 70 DIV + MAX( - 76 ) AS col1
----
58
0

skipif mysql # not compatible
query II rowsort label-6731
SELECT DISTINCT 58, + 70 / + MAX ( - 76 ) AS col1
----
58
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6732
SELECT ALL + COALESCE ( 46, - 77 * + 52 * 93 ) * + + SUM( DISTINCT 72 ) + + CASE 69 WHEN + 32 THEN NULL WHEN + 48 THEN NULL ELSE - 86 DIV 18 END col2
----
3308

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL + COALESCE ( 46, - 77 * + 52 * 93 ) * + + SUM ( DISTINCT 72 ) + + CASE 69 WHEN + 32 THEN NULL WHEN + 48 THEN NULL ELSE - 86 / 18 END col2
----
3308

query II rowsort
SELECT ALL CASE - 72 WHEN + - 32 THEN - + 61 ELSE NULL END AS col0, 32
----
NULL
32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6735
SELECT CAST( COALESCE ( + 60, + 77 + + + 84 + - + CAST( NULL AS SIGNED ) * + 70 * + 21 * + COUNT( * ) - - SUM( DISTINCT + NULLIF ( + 95, - 34 * 73 ) ) * + 49, + 22 * - 2 ) AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-6735
SELECT CAST ( COALESCE ( + 60, + 77 + + + 84 + - + CAST ( NULL AS INTEGER ) * + 70 * + 21 * + COUNT ( * ) - - SUM ( DISTINCT + NULLIF ( + 95, - 34 * 73 ) ) * + 49, + 22 * - 2 ) AS INTEGER )
----
60

query I rowsort
SELECT - 43 + + 76 AS col0
----
33

query I rowsort
SELECT ALL - 69 * 1 AS col2
----
-69

query I rowsort
SELECT - 61 * + 36 col0
----
-2196

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT - 28 * + 4 * - 0 + - + ( + + 76 ) + - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-6739
SELECT - 28 * + 4 * - 0 + - + ( + + 76 ) + - COUNT ( * )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6740
SELECT + CAST( 30 AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6740
SELECT + CAST ( 30 AS INTEGER ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT ALL - CAST( NULL AS SIGNED ) / - 94 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL - CAST ( NULL AS INTEGER ) / - 94 + 30
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6742
SELECT ALL - 52 DIV 82 + + 85 + - - SUM( ALL + 25 ) * - - NULLIF ( + + COUNT( * ), - - 47 DIV + + COUNT( + 68 ) - + 71 ) * + + ( + 21 ) col1
----
610

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - 52 / 82 + + 85 + - - SUM ( ALL + 25 ) * - - NULLIF ( + + COUNT ( * ), - - 47 / + + COUNT ( + 68 ) - + 71 ) * + + ( + 21 ) col1
----
610

query I rowsort
SELECT ALL 13 * + + 23 AS col1
----
299

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT 97 DIV + - ( - - ( + ( - 6 ) ) ) + - 44 col0
----
-28

skipif mysql # not compatible
query I rowsort label-6744
SELECT 97 / + - ( - - ( + ( - 6 ) ) ) + - 44 col0
----
-28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6746
SELECT + 15 DIV - + 30 + - + 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6746
SELECT + 15 / - + 30 + - + 31 AS col0
----
-31

query I rowsort
SELECT - 84 + + + 95 + - 45 - + NULLIF ( - 72, 3 ) + - 42 + - 58 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT + 53 * + COUNT( DISTINCT 65 ) + - 43 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6748
SELECT + 53 * + COUNT ( DISTINCT 65 ) + - 43 AS col0
----
10

query I rowsort
SELECT ALL + + 62 * + + 50 + - 66 - ( + 16 ) * + - 46 + + 44
----
3814

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ALL + COUNT( * ) * + CASE - 0 WHEN - 25 THEN NULL ELSE + COUNT( * ) END + + - 5 * - 33 AS col1
----
166

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL + COUNT ( * ) * + CASE - 0 WHEN - 25 THEN NULL ELSE + COUNT ( * ) END + + - 5 * - 33 AS col1
----
166

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

skipif mysql # not compatible
query I rowsort label-6751
SELECT - + 16 / - 77
----
0

query II rowsort
SELECT DISTINCT + - 32 * - 13 * + - 16 col1, 67
----
-6656
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT ALL - - CASE - - 24 WHEN - + 69 THEN - - CAST( 6 AS SIGNED ) + - COUNT( * ) + + 3 * + 41 / - - CAST( 43 AS SIGNED ) WHEN 35 * + 27 - COUNT( * ) * - 79 THEN NULL ELSE NULL END * 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL - - CASE - - 24 WHEN - + 69 THEN - - CAST ( 6 AS INTEGER ) + - COUNT ( * ) + + 3 * + 41 / - - CAST ( 43 AS INTEGER ) WHEN 35 * + 27 - COUNT ( * ) * - 79 THEN NULL ELSE NULL END * 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6754
SELECT - - COALESCE ( ( 80 ), + - 97 DIV + 4 ) * COALESCE ( + 45, + MIN( DISTINCT + 63 ) + + - COUNT( * ) ) * + - NULLIF ( 67, 0 * 99 + + 69 DIV + 11 ) col1
----
-241200

skipif mysql # not compatible
query I rowsort label-6754
SELECT - - COALESCE ( ( 80 ), + - 97 / + 4 ) * COALESCE ( + 45, + MIN ( DISTINCT + 63 ) + + - COUNT ( * ) ) * + - NULLIF ( 67, 0 * 99 + + 69 / + 11 ) col1
----
-241200

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT + CASE - 36 WHEN - - ( + - 91 ) * + + 1 THEN NULL WHEN CASE - + COUNT( * ) WHEN + 28 + - 25 THEN NULL ELSE - + 71 * + + 30 END THEN - 38 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6758
SELECT + CASE - 36 WHEN - - ( + - 91 ) * + + 1 THEN NULL WHEN CASE - + COUNT ( * ) WHEN + 28 + - 25 THEN NULL ELSE - + 71 * + + 30 END THEN - 38 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6759
SELECT - + COALESCE ( ( 49 ), - CAST( NULL AS SIGNED ) * - - 98 / + 44 ) * + ( 56 ) / + + COUNT( * ) + + 66 + - 88 * + 72 * - CASE CASE - 68 WHEN 99 THEN 21 ELSE NULL END WHEN - 7 THEN 47 WHEN + 4 * COUNT( * ) + + 99 * COALESCE ( + COUNT( * ) * - SUM( 47 ) + 72 * MAX( - 24 ), + 97, + 93 - - ( - 84 ) ) THEN NULL END + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT - + COALESCE ( ( 49 ), - CAST ( NULL AS INTEGER ) * - - 98 / + 44 ) * + ( 56 ) / + + COUNT ( * ) + + 66 + - 88 * + 72 * - CASE CASE - 68 WHEN 99 THEN 21 ELSE NULL END WHEN - 7 THEN 47 WHEN + 4 * COUNT ( * ) + + 99 * COALESCE ( + COUNT ( * ) * - SUM ( 47 ) + 72 * MAX ( - 24 ), + 97, + 93 - - ( - 84 ) ) THEN NULL END + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT - MAX( - - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-6760
SELECT - MAX ( - - 2 )
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT - SUM( DISTINCT + 83 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-6762
SELECT - SUM ( DISTINCT + 83 ) AS col1
----
-83

query I rowsort
SELECT - COALESCE ( - 49, - 78 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL MIN( DISTINCT - 99 ) * - 87 + - ( - 74 ) * - ( - + ( 58 ) )
----
12905

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL MIN ( DISTINCT - 99 ) * - 87 + - ( - 74 ) * - ( - + ( 58 ) )
----
12905

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT SUM( - 47 ) * - MAX( DISTINCT - 20 ) * + ( 36 ) AS col1
----
-33840

skipif mysql # not compatible
query I rowsort label-6765
SELECT SUM ( - 47 ) * - MAX ( DISTINCT - 20 ) * + ( 36 ) AS col1
----
-33840

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT ALL 80 * - CASE 81 WHEN - MIN( - 71 ) - 8 + + 95 / + 56 THEN NULL WHEN 0 / 95 + + COALESCE ( + COUNT( * ), + 50 - + + 56 * - ( 79 * 22 ) ) + - 40 / 54 THEN ( 19 ) WHEN + 23 * - 43 THEN 99 * + ( + 87 ) + + 63 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL 80 * - CASE 81 WHEN - MIN ( - 71 ) - 8 + + 95 / + 56 THEN NULL WHEN 0 / 95 + + COALESCE ( + COUNT ( * ), + 50 - + + 56 * - ( 79 * 22 ) ) + - 40 / 54 THEN ( 19 ) WHEN + 23 * - 43 THEN 99 * + ( + 87 ) + + 63 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT 76 + + 19 * + MIN( DISTINCT - 28 ) + + + 78
----
-378

skipif mysql # not compatible
query I rowsort label-6767
SELECT 76 + + 19 * + MIN ( DISTINCT - 28 ) + + + 78
----
-378

query I rowsort
SELECT 11 - 8 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL ( + + COUNT( ALL + 48 ) ) + - 17
----
-16

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL ( + + COUNT ( ALL + 48 ) ) + - 17
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6770
SELECT ( - + 44 ) DIV 13
----
-3

skipif mysql # not compatible
query I rowsort label-6770
SELECT ( - + 44 ) / 13
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6771
SELECT 11 DIV + + COUNT( * ) + + 13 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6771
SELECT 11 / + + COUNT ( * ) + + 13 AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT ALL ( CAST( NULL AS SIGNED ) ) + ( 61 ) + 37 + - - AVG ( DISTINCT - 6 ) / + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL ( CAST ( NULL AS INTEGER ) ) + ( 61 ) + 37 + - - AVG ( DISTINCT - 6 ) / + 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6773
SELECT + SUM( + CAST( + NULLIF ( 3, + 91 ) AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-6773
SELECT + SUM ( + CAST ( + NULLIF ( 3, + 91 ) AS INTEGER ) )
----
3

query I rowsort
SELECT + 40 * - - ( + 82 ) AS col2
----
3280

query II rowsort
SELECT - 49 - + 49 AS col2, - 98 AS col0
----
-98
-98

query II rowsort
SELECT DISTINCT - 48 * + ( + 35 ) * - 0 col0, + 54
----
0
54

query I rowsort
SELECT DISTINCT - 84 - + 75
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT 66 + - COUNT( DISTINCT + 77 ) + + - MIN( + 13 ) * CASE + + COALESCE ( 71, - 6 + - ( - CASE - - COUNT( * ) WHEN - 30 * - AVG ( + 25 ) THEN COUNT( DISTINCT - 5 ) END ) + - MIN( + 60 - - 53 * - 29 ) * SUM( 33 ), 26 ) WHEN 80 THEN NULL WHEN + COALESCE ( 88, - 83 ) THEN NULL ELSE 6 END AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6778
SELECT 66 + - COUNT ( DISTINCT + 77 ) + + - MIN ( + 13 ) * CASE + + COALESCE ( 71, - 6 + - ( - CASE - - COUNT ( * ) WHEN - 30 * - AVG ( + 25 ) THEN COUNT ( DISTINCT - 5 ) END ) + - MIN ( + 60 - - 53 * - 29 ) * SUM ( 33 ), 26 ) WHEN 80 THEN NULL WHEN + COALESCE ( 88, - 83 ) THEN NULL ELSE 6 END AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6779
SELECT DISTINCT - CASE 64 WHEN - COALESCE ( 14, - ( - CAST( - 94 AS SIGNED ) ), CAST( NULL AS SIGNED ) ) THEN - + 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT - CASE 64 WHEN - COALESCE ( 14, - ( - CAST ( - 94 AS INTEGER ) ), CAST ( NULL AS INTEGER ) ) THEN - + 2 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6780
SELECT ALL + + CASE - 92 WHEN 35 + - - COUNT( * ) * + 72 * + CAST( NULL AS SIGNED ) + 42 * + 84 * 20 THEN + - 88 * + 16 ELSE NULL END / 62 * 71 * + AVG ( 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL + + CASE - 92 WHEN 35 + - - COUNT ( * ) * + 72 * + CAST ( NULL AS INTEGER ) + 42 * + 84 * 20 THEN + - 88 * + 16 ELSE NULL END / 62 * 71 * + AVG ( 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT NULLIF ( + + COUNT( * ), - 29 ) + - 46 + - 20 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-6781
SELECT NULLIF ( + + COUNT ( * ), - 29 ) + - 46 + - 20 AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6782
SELECT SUM( DISTINCT - - ( CAST( NULL AS DECIMAL ) ) ) * - 42 + + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT SUM ( DISTINCT - - ( CAST ( NULL AS REAL ) ) ) * - 42 + + + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT DISTINCT - - COUNT( * ) + + 88 + + COUNT( * ) * - + COUNT( * ) + ( + 0 )
----
88

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT - - COUNT ( * ) + + 88 + + COUNT ( * ) * - + COUNT ( * ) + ( + 0 )
----
88

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

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

query I rowsort
SELECT 95 + ( 34 ) * NULLIF ( 54, + 49 ) AS col1
----
1931

query I rowsort
SELECT ALL - 41 + + 47 col0
----
6

query I rowsort
SELECT DISTINCT + 87 * - 39 * - - 42
----
-142506

query I rowsort
SELECT 5 + ( + 10 ) + - 71
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT COUNT( * ) + - + NULLIF ( - - 67, - 9 + - + 28 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6789
SELECT COUNT ( * ) + - + NULLIF ( - - 67, - 9 + - + 28 ) AS col0
----
-66

query II rowsort
SELECT ALL 63, + 25 + - + 88 col0
----
63
-63

query I rowsort
SELECT ALL - 14 + - + 28 - - 35 * + 65 AS col2
----
2233

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT NULLIF ( COUNT( * ), + COUNT( * ) ) + + + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT NULLIF ( COUNT ( * ), + COUNT ( * ) ) + + + 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL 2 + + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL 2 + + + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT DISTINCT - 97 + + 75 - - COUNT( * ) + - 14
----
-35

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT - 97 + + 75 - - COUNT ( * ) + - 14
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6795
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * + 93 col1
----
93

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * + 93 col1
----
93

query I rowsort
SELECT DISTINCT + 24 * 9 AS col1
----
216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6797
SELECT COUNT( * ) DIV + 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6797
SELECT COUNT ( * ) / + 62 AS col1
----
0

query I rowsort
SELECT ( + 95 ) * - + 81
----
-7695

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT + MIN( ALL + + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6799
SELECT + MIN ( ALL + + 49 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT MIN( ALL 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-6800
SELECT MIN ( ALL 42 ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6801
SELECT 99 * - - CAST( NULL AS SIGNED ) - + 47 + 59 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT 99 * - - CAST ( NULL AS INTEGER ) - + 47 + 59 col1
----
NULL

query I rowsort
SELECT - 37 * 10 AS col0
----
-370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6803
SELECT DISTINCT - + COALESCE ( + 3, - 16 + 25 * + COUNT( * ) + - COUNT( * ), - + 62 DIV - 68 * + - 83 )
----
-3

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT - + COALESCE ( + 3, - 16 + 25 * + COUNT ( * ) + - COUNT ( * ), - + 62 / - 68 * + - 83 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6804
SELECT ALL - CASE + COUNT( * ) WHEN + ( + MIN( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) ) THEN NULL WHEN - - 73 THEN - - 77 - + 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL - CASE + COUNT ( * ) WHEN + ( + MIN ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) ) THEN NULL WHEN - - 73 THEN - - 77 - + 46 END
----
NULL

query I rowsort
SELECT ALL 90 * - - 72 AS col2
----
6480

query I rowsort
SELECT 1 * + ( 10 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL - COUNT( - 91 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL - COUNT ( - 91 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT DISTINCT - - NULLIF ( - 16, - MIN( + 82 ) / + 24 + - - AVG ( ALL 45 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT - - NULLIF ( - 16, - MIN ( + 82 ) / + 24 + - - AVG ( ALL 45 ) )
----
-16

query I rowsort
SELECT + COALESCE ( + 84, + ( + 98 ) ) AS col2
----
84

query I rowsort
SELECT DISTINCT 61 * 74
----
4514

query I rowsort
SELECT 70 + 27
----
97

query III rowsort
SELECT ALL - 29 AS col1, - 5 * - - 73 AS col0, + 36
----
-29
-365
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6813
SELECT + 40 AS col1, + COUNT( * )
----
40
1

skipif mysql # not compatible
query II rowsort label-6813
SELECT + 40 AS col1, + COUNT ( * )
----
40
1

query I rowsort
SELECT ALL + 54 + + 62 col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ALL - NULLIF ( + 11, + - 35 ) + + COUNT( ALL + 89 )
----
-10

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL - NULLIF ( + 11, + - 35 ) + + COUNT ( ALL + 89 )
----
-10

query I rowsort
SELECT DISTINCT + + 85 + - - 6 AS col1
----
91

query I rowsort
SELECT + 62 * - 97
----
-6014

query I rowsort
SELECT - 68 * + 65
----
-4420

query II rowsort
SELECT 90 AS col1, 21 AS col0
----
90
21

query I rowsort
SELECT ALL - 10 + 38
----
28

query I rowsort
SELECT - 32 - + 39 AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6822
SELECT ALL 38 DIV ( 85 ) * - + COUNT( * ) AS col0, 33
----
0
33

skipif mysql # not compatible
query II rowsort label-6822
SELECT ALL 38 / ( 85 ) * - + COUNT ( * ) AS col0, 33
----
0
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT - 8 - ( MIN( ALL - 38 ) ) - 60 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-6823
SELECT - 8 - ( MIN ( ALL - 38 ) ) - 60 AS col1
----
-30

query I rowsort
SELECT ALL + 38 * + + 92 AS col1
----
3496

onlyif mysql # DIV for integer division: 
query I rowsort label-6825
SELECT - 85 DIV + 15
----
-5

skipif mysql # not compatible
query I rowsort label-6825
SELECT - 85 / + 15
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6826
SELECT ALL - COALESCE ( + 94, + 82 * + - 70 ) + - 54 + - 80 DIV - - 57 + - + 97 AS col2
----
-246

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL - COALESCE ( + 94, + 82 * + - 70 ) + - 54 + - 80 / - - 57 + - + 97 AS col2
----
-246

query I rowsort
SELECT - 2 * - 17
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6828
SELECT DISTINCT ( + NULLIF ( - + COUNT( * ), 94 ) ) AS col1, - 33
----
-1
-33

skipif mysql # not compatible
query II rowsort label-6828
SELECT DISTINCT ( + NULLIF ( - + COUNT ( * ), 94 ) ) AS col1, - 33
----
-1
-33

query I rowsort
SELECT ALL + 11 - + - 62 + - - 46 * - 80 AS col2
----
-3607

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT 33 AS col2, + COUNT( * ) + - - ( - 78 ) AS col2
----
33
-77

skipif mysql # not compatible
query II rowsort label-6830
SELECT 33 AS col2, + COUNT ( * ) + - - ( - 78 ) AS col2
----
33
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6831
SELECT - 49 + - - 44 + + - 83 * + 89 DIV COUNT( * ) + - 65 AS col1
----
-7457

skipif mysql # not compatible
query I rowsort label-6831
SELECT - 49 + - - 44 + + - 83 * + 89 / COUNT ( * ) + - 65 AS col1
----
-7457

query I rowsort
SELECT - 54 - + 50 AS col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT - NULLIF ( + 6, + - 70 ) * - - SUM( ALL 91 ) AS col0
----
-546

skipif mysql # not compatible
query I rowsort label-6833
SELECT - NULLIF ( + 6, + - 70 ) * - - SUM ( ALL 91 ) AS col0
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT - SUM( - 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6834
SELECT - SUM ( - 72 ) AS col1
----
72

query I rowsort
SELECT DISTINCT ( - 5 ) col0
----
-5

query I rowsort
SELECT ALL - 48 - - 69 AS col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-6837
SELECT ALL COUNT( * ) AS col1, + SUM( ALL - ( + 5 ) ) AS col1
----
1
-5

skipif mysql # not compatible
query II rowsort label-6837
SELECT ALL COUNT ( * ) AS col1, + SUM ( ALL - ( + 5 ) ) AS col1
----
1
-5

query I rowsort
SELECT + 79 * + - 59 + + - 22 AS col2
----
-4683

query I rowsort
SELECT + - 4 * + 73 AS col2
----
-292

query I rowsort
SELECT - 97 * + 75
----
-7275

query II rowsort
SELECT + - 46 AS col2, 49 * 90 AS col1
----
-46
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT - 65 * CASE + + COUNT( + - 84 ) WHEN COUNT( DISTINCT - 24 ) / - 92 THEN COUNT( * ) END + + - NULLIF ( + + ( + 33 ), + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT - 65 * CASE + + COUNT ( + - 84 ) WHEN COUNT ( DISTINCT - 24 ) / - 92 THEN COUNT ( * ) END + + - NULLIF ( + + ( + 33 ), + 99 )
----
NULL

query III rowsort
SELECT ALL + 36 AS col1, 8 * + + ( 98 ), + + 7 AS col0
----
36
784
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6844
SELECT - NULLIF ( 80, + 14 ) DIV - + 29
----
2

skipif mysql # not compatible
query I rowsort label-6844
SELECT - NULLIF ( 80, + 14 ) / - + 29
----
2

query I rowsort
SELECT + 94 * + 88 - + - 48 col1
----
8320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6846
SELECT - 62 * + CAST( + CASE - 70 WHEN + 58 + 9 * 95 THEN - COUNT( * ) * - 28 + COUNT( * ) + - + COUNT( * ) WHEN 89 THEN NULL WHEN - SUM( ALL 34 ) + - ( + CAST( + COUNT( * ) AS SIGNED ) ) - 58 / 52 THEN NULL END AS SIGNED ) - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT - 62 * + CAST ( + CASE - 70 WHEN + 58 + 9 * 95 THEN - COUNT ( * ) * - 28 + COUNT ( * ) + - + COUNT ( * ) WHEN 89 THEN NULL WHEN - SUM ( ALL 34 ) + - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) - 58 / 52 THEN NULL END AS INTEGER ) - 13
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6847
SELECT DISTINCT 28 * 95 + - MIN( - 36 ) DIV 71
----
2660

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT 28 * 95 + - MIN ( - 36 ) / 71
----
2660

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6849
SELECT ALL + + 86 * - - CAST( NULL AS SIGNED ) * - 25 + - + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL + + 86 * - - CAST ( NULL AS INTEGER ) * - 25 + - + 20 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT + + 77 DIV + 40
----
1

skipif mysql # not compatible
query I rowsort label-6850
SELECT + + 77 / + 40
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6851
SELECT + - COALESCE ( + 95, CASE CAST( - ( + 45 ) AS SIGNED ) WHEN 71 * AVG ( ALL - 59 ) THEN - - 4 WHEN - - 48 THEN NULL ELSE + - CAST( NULL AS SIGNED ) END ) * - 6 col0
----
570

skipif mysql # not compatible
query I rowsort label-6851
SELECT + - COALESCE ( + 95, CASE CAST ( - ( + 45 ) AS INTEGER ) WHEN 71 * AVG ( ALL - 59 ) THEN - - 4 WHEN - - 48 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) END ) * - 6 col0
----
570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT ALL + CAST( NULL AS SIGNED ) * + 30 + + + ( + 49 ) * - 94 * 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL + CAST ( NULL AS INTEGER ) * + 30 + + + ( + 49 ) * - 94 * 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT - + ( + 45 ) * + NULLIF ( - COUNT( * ), + - 49 * - + 60 * 50 ) * 26 + + ( - - 69 ) - + 14 * NULLIF ( - 78, - ( - 17 ) + - 89 )
----
2331

skipif mysql # not compatible
query I rowsort label-6853
SELECT - + ( + 45 ) * + NULLIF ( - COUNT ( * ), + - 49 * - + 60 * 50 ) * 26 + + ( - - 69 ) - + 14 * NULLIF ( - 78, - ( - 17 ) + - 89 )
----
2331

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6854
SELECT DISTINCT + - COUNT( ALL - 21 ), - 11 DIV 96 col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-6854
SELECT DISTINCT + - COUNT ( ALL - 21 ), - 11 / 96 col0
----
-1
0

query I rowsort
SELECT ALL + 84 * - - 22 * + 26 + - 75 AS col0
----
47973

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT + 27 + + COALESCE ( 78, - 24 ) + COUNT( DISTINCT + 28 ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-6856
SELECT + 27 + + COALESCE ( 78, - 24 ) + COUNT ( DISTINCT + 28 ) AS col1
----
106

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

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

query I rowsort
SELECT ALL + 75 * 88 + + ( - 77 ) col1
----
6523

query I rowsort
SELECT - 62 * + 84 * - - 83 + NULLIF ( + 50, ( + 63 ) ) * 14 + - 31
----
-431595

query I rowsort
SELECT ALL 97 * - 55 col2
----
-5335

query I rowsort
SELECT DISTINCT COALESCE ( + - 34, ( + - ( 35 ) ), NULLIF ( + + 16, + - 59 ) + - 18 * - 4 + - - 14 + - 29 ) * - - 9 + 26
----
-280

query I rowsort
SELECT ALL COALESCE ( 39, + - 75 )
----
39

query I rowsort
SELECT + 85 + 40
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL SUM( ALL ( - - 87 ) ) - - 55 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL SUM ( ALL ( - - 87 ) ) - - 55 AS col0
----
142

query I rowsort
SELECT + 73 * - 32 AS col0
----
-2336

query I rowsort
SELECT - 78 * 95
----
-7410

onlyif mysql # aggregate syntax: 
query II rowsort label-6867
SELECT ALL SUM( 48 ), + 52 col0
----
48
52

skipif mysql # not compatible
query II rowsort label-6867
SELECT ALL SUM ( 48 ), + 52 col0
----
48
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT - SUM( ( + 4 ) ) + + ( ( - + 54 ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-6868
SELECT - SUM ( ( + 4 ) ) + + ( ( - + 54 ) ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT + 43 * COUNT( * ) * + 95 * - + 79 * + 94
----
-30335210

skipif mysql # not compatible
query I rowsort label-6869
SELECT + 43 * COUNT ( * ) * + 95 * - + 79 * + 94
----
-30335210

query I rowsort
SELECT - 48 * 65
----
-3120

onlyif mysql # aggregate syntax: 
query II rowsort label-6871
SELECT - ( + + 30 ) + - - 29 + + COUNT( DISTINCT 18 ), + 44 AS col2
----
0
44

skipif mysql # not compatible
query II rowsort label-6871
SELECT - ( + + 30 ) + - - 29 + + COUNT ( DISTINCT 18 ), + 44 AS col2
----
0
44

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

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

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

query I rowsort
SELECT - 12 * - 52
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6875
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) * - 69 * - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) * - 69 * - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT + 72 - + 41 + - 8, - 53 * - + COUNT( ALL - 80 ) * + 95 AS col2
----
23
5035

skipif mysql # not compatible
query II rowsort label-6876
SELECT + 72 - + 41 + - 8, - 53 * - + COUNT ( ALL - 80 ) * + 95 AS col2
----
23
5035

query I rowsort
SELECT + 81 + 22 col2
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT + 26 DIV 54 * - 63 + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-6878
SELECT + 26 / 54 * - 63 + - 37
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-6879
SELECT DISTINCT 18 DIV - - 11 + - 6 col2
----
-5

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT 18 / - - 11 + - 6 col2
----
-5

query I rowsort
SELECT - COALESCE ( + 40, - - 67 ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - 35 * MIN( ALL 69 ) * - ( + 13 ) * 44 + - - 58 + - 0 AS col2
----
1381438

skipif mysql # not compatible
query I rowsort label-6881
SELECT - 35 * MIN ( ALL 69 ) * - ( + 13 ) * 44 + - - 58 + - 0 AS col2
----
1381438

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6882
SELECT DISTINCT - 52 DIV + - COUNT( * ) * ( - COUNT( * ) ) + + 77 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT - 52 / + - COUNT ( * ) * ( - COUNT ( * ) ) + + 77 AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6883
SELECT + - 2 DIV - - NULLIF ( - 61, - + ( - COUNT( * ) ) ) + 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6883
SELECT + - 2 / - - NULLIF ( - 61, - + ( - COUNT ( * ) ) ) + 19 AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-6884
SELECT DISTINCT - MAX( ALL ( + 99 ) ) col0, 34 + + ( + COUNT( * ) ) col2
----
-99
35

skipif mysql # not compatible
query II rowsort label-6884
SELECT DISTINCT - MAX ( ALL ( + 99 ) ) col0, 34 + + ( + COUNT ( * ) ) col2
----
-99
35

query II rowsort
SELECT ALL 98 + + - 8, 53 AS col2
----
90
53

query I rowsort
SELECT - 85 * + - 73
----
6205

query I rowsort
SELECT ALL - ( - 77 ) + - NULLIF ( + 63, - 15 * - 1 ) AS col1
----
14

query I rowsort
SELECT 30 + + 99
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT 4 * + CASE - 11 WHEN - 39 THEN - + 99 / - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT 4 * + CASE - 11 WHEN - 39 THEN - + 99 / - COUNT ( * ) END AS col2
----
NULL

query II rowsort
SELECT ALL - 75, - 19 AS col0
----
-75
-19

query I rowsort
SELECT ALL + 10 - - - 8 + 72 * - 70 AS col1
----
-5038

query I rowsort
SELECT ALL 97 - - 51 AS col0
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6893
SELECT 1 - 3 * + - 26 - - + NULLIF ( - 24, CAST( NULL AS SIGNED ) + + CAST( + + 30 AS SIGNED ) * + + 25 )
----
55

skipif mysql # not compatible
query I rowsort label-6893
SELECT 1 - 3 * + - 26 - - + NULLIF ( - 24, CAST ( NULL AS INTEGER ) + + CAST ( + + 30 AS INTEGER ) * + + 25 )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6894
SELECT 84 * - 61 - 45 + - 44, - CASE - ( + + ( - 69 ) ) WHEN - 29 THEN - - 31 + + 50 - + - 28 * COUNT( * ) + 28 * 36 WHEN - 95 * + - 84 + - 38 * 34 THEN 77 + 57 * + COUNT( ALL 54 * + 54 ) WHEN - COUNT( 80 ) THEN ( 43 ) END AS col1
----
-5213
NULL

skipif mysql # not compatible
query II rowsort label-6894
SELECT 84 * - 61 - 45 + - 44, - CASE - ( + + ( - 69 ) ) WHEN - 29 THEN - - 31 + + 50 - + - 28 * COUNT ( * ) + 28 * 36 WHEN - 95 * + - 84 + - 38 * 34 THEN 77 + 57 * + COUNT ( ALL 54 * + 54 ) WHEN - COUNT ( 80 ) THEN ( 43 ) END AS col1
----
-5213
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT 17 * + + 57 * COUNT( * ) * - 7
----
-6783

skipif mysql # not compatible
query I rowsort label-6895
SELECT 17 * + + 57 * COUNT ( * ) * - 7
----
-6783

onlyif mysql # aggregate syntax: 
query II rowsort label-6896
SELECT - 79 AS col1, - ( + ( + 94 ) ) - ( COUNT( * ) ) col1
----
-79
-95

skipif mysql # not compatible
query II rowsort label-6896
SELECT - 79 AS col1, - ( + ( + 94 ) ) - ( COUNT ( * ) ) col1
----
-79
-95

query II rowsort
SELECT ALL 80 AS col2, 39 AS col1
----
80
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6898
SELECT 58 AS col0, NULLIF ( + 40, - + 89 * - + 1 ) + - 54 * - + SUM( - 33 )
----
58
-1742

skipif mysql # not compatible
query II rowsort label-6898
SELECT 58 AS col0, NULLIF ( + 40, - + 89 * - + 1 ) + - 54 * - + SUM ( - 33 )
----
58
-1742

query I rowsort
SELECT 29 * - 32
----
-928

query I rowsort
SELECT 36 - + 58 + - 43 AS col0
----
-65

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

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

query II rowsort
SELECT - 45 AS col0, + 63 AS col1
----
-45
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6903
SELECT COUNT( + - 55 ) * - 35 DIV CASE + 51 WHEN NULLIF ( + CASE + - CAST( + 42 AS DECIMAL ) WHEN + + 84 THEN NULL ELSE - SUM( - 55 ) + + 29 END, - 63 + 74 + + ( 22 ) DIV + 8 + - 36 * 73 ) THEN NULL ELSE - 79 END DIV 56 - + ( + 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6903
SELECT COUNT ( + - 55 ) * - 35 / CASE + 51 WHEN NULLIF ( + CASE + - CAST ( + 42 AS REAL ) WHEN + + 84 THEN NULL ELSE - SUM ( - 55 ) + + 29 END, - 63 + 74 + + ( 22 ) / + 8 + - 36 * 73 ) THEN NULL ELSE - 79 END / 56 - + ( + 82 ) AS col2
----
-82

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

skipif mysql # not compatible
query II rowsort label-6904
SELECT ALL 49 col1, COUNT ( * )
----
49
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT - 57 + - MIN( DISTINCT - + 9 ) + 81 + - ( - 65 ) + - 32 * - COALESCE ( - + 13, - - 95 * + + ( + 46 ) ) + 21
----
-297

skipif mysql # not compatible
query I rowsort label-6905
SELECT - 57 + - MIN ( DISTINCT - + 9 ) + 81 + - ( - 65 ) + - 32 * - COALESCE ( - + 13, - - 95 * + + ( + 46 ) ) + 21
----
-297

query I rowsort
SELECT ( - - 8 )
----
8

query I rowsort
SELECT 55 + + - 55 * 38
----
-2035

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6908
SELECT + CAST( NULL AS SIGNED ) - - 36 * - 96, - 49 AS col1
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-6908
SELECT + CAST ( NULL AS INTEGER ) - - 36 * - 96, - 49 AS col1
----
NULL
-49

query I rowsort
SELECT + 49 * + - 23 col2
----
-1127

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6912
SELECT - 15 DIV 15 * + + 46 + + 88 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6912
SELECT - 15 / 15 * + + 46 + + 88 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT DISTINCT 85 + - SUM( DISTINCT - 14 )
----
99

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT 85 + - SUM ( DISTINCT - 14 )
----
99

query I rowsort
SELECT 55 * + 38
----
2090

query I rowsort
SELECT ALL 12 * - 61 * + - 37 AS col0
----
27084

onlyif mysql # aggregate syntax: 
query II rowsort label-6916
SELECT + ( COUNT( * ) ) + - 83, 54 * - 26 * 46 AS col0
----
-82
-64584

skipif mysql # not compatible
query II rowsort label-6916
SELECT + ( COUNT ( * ) ) + - 83, 54 * - 26 * 46 AS col0
----
-82
-64584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT COALESCE ( + NULLIF ( + - 81, + + CAST( + - ( 95 ) AS SIGNED ) ), - 70 - - - 84 )
----
-81

skipif mysql # not compatible
query I rowsort label-6917
SELECT COALESCE ( + NULLIF ( + - 81, + + CAST ( + - ( 95 ) AS INTEGER ) ), - 70 - - - 84 )
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT 35 + 29 DIV 46 * + 31 + - - 13 + + 29
----
77

skipif mysql # not compatible
query I rowsort label-6918
SELECT 35 + 29 / 46 * + 31 + - - 13 + + 29
----
77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6920
SELECT - AVG ( - - CASE + CAST( NULL AS SIGNED ) WHEN 77 THEN + + 84 WHEN - - 89 THEN NULL WHEN + 18 THEN NULL END ) * - 21 + + 50 + + + ( - ( - 48 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT - AVG ( - - CASE + CAST ( NULL AS INTEGER ) WHEN 77 THEN + + 84 WHEN - - 89 THEN NULL WHEN + 18 THEN NULL END ) * - 21 + + 50 + + + ( - ( - 48 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6921
SELECT DISTINCT - CAST( - - COUNT( + 20 ) AS SIGNED ) - + + 67 * 10 col2
----
-671

skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT - CAST ( - - COUNT ( + 20 ) AS INTEGER ) - + + 67 * 10 col2
----
-671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6922
SELECT DISTINCT + CASE 74 WHEN - 56 THEN 91 * - 42 + - - 55 + 48 + - NULLIF ( + 14, + CAST( + 80 AS SIGNED ) * + 17 * + COUNT( * ) * - 11 + + - 83 * + - SUM( DISTINCT + 84 ) * 49 * + 47 + 79 ) + CASE 54 WHEN - CAST( + COALESCE ( - 87, - ( 92 ) ) AS SIGNED ) THEN NULL WHEN + 55 / + 32 THEN 4 END * + 49 * 36 * + MAX( ALL CASE - 51 WHEN 91 THEN + ( + 65 ) + - 47 * 52 WHEN - 53 THEN + 85 END ) END - - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT + CASE 74 WHEN - 56 THEN 91 * - 42 + - - 55 + 48 + - NULLIF ( + 14, + CAST ( + 80 AS INTEGER ) * + 17 * + COUNT ( * ) * - 11 + + - 83 * + - SUM ( DISTINCT + 84 ) * 49 * + 47 + 79 ) + CASE 54 WHEN - CAST ( + COALESCE ( - 87, - ( 92 ) ) AS INTEGER ) THEN NULL WHEN + 55 / + 32 THEN 4 END * + 49 * 36 * + MAX ( ALL CASE - 51 WHEN 91 THEN + ( + 65 ) + - 47 * 52 WHEN - 53 THEN + 85 END ) END - - 17 AS col2
----
NULL

query I rowsort
SELECT 14 * + + 48
----
672

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

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

query I rowsort
SELECT 1 + - + ( + 24 )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6926
SELECT SUM( - 22 ) * 7 DIV - - NULLIF ( + + 83, - 94 - 14 ) - - COUNT( + - 6 ) * - - COALESCE ( + 31, + 64 + + + ( + 14 ) ) + 63 * - 77
----
-4821

skipif mysql # not compatible
query I rowsort label-6926
SELECT SUM ( - 22 ) * 7 / - - NULLIF ( + + 83, - 94 - 14 ) - - COUNT ( + - 6 ) * - - COALESCE ( + 31, + 64 + + + ( + 14 ) ) + 63 * - 77
----
-4821

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT COUNT( * ) * - 75 col2
----
-75

skipif mysql # not compatible
query I rowsort label-6927
SELECT COUNT ( * ) * - 75 col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT - 78 * + CASE - - 39 WHEN - - 9 THEN NULL WHEN - 14 THEN NULL ELSE - + 9 END - - 26 * + - COUNT( DISTINCT 52 ) AS col0
----
676

skipif mysql # not compatible
query I rowsort label-6928
SELECT - 78 * + CASE - - 39 WHEN - - 9 THEN NULL WHEN - 14 THEN NULL ELSE - + 9 END - - 26 * + - COUNT ( DISTINCT 52 ) AS col0
----
676

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

skipif mysql # not compatible
query I rowsort label-6929
SELECT 88 * - + COUNT ( * ) + + + 2 AS col0
----
-86

query I rowsort
SELECT 55 + - 66
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT 29 * - CASE 80 WHEN - 86 * + 24 THEN - CASE + 37 WHEN + 57 THEN NULL ELSE + 15 * - - COUNT( * ) * - COUNT( - 45 ) END * + + 73 * - 97 WHEN 67 * - 89 + 9 + COUNT( * ) + + - 98 * 0 * - 49 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6931
SELECT 29 * - CASE 80 WHEN - 86 * + 24 THEN - CASE + 37 WHEN + 57 THEN NULL ELSE + 15 * - - COUNT ( * ) * - COUNT ( - 45 ) END * + + 73 * - 97 WHEN 67 * - 89 + 9 + COUNT ( * ) + + - 98 * 0 * - 49 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6932
SELECT 45 + + COUNT( * ) + - - 33 * - CAST( + AVG ( ALL + 10 ) AS SIGNED ) + - SUM( DISTINCT 2 ) * - 98 * - - COUNT( * ) + MAX( + 71 ) - + 50
----
-67

skipif mysql # not compatible
query I rowsort label-6932
SELECT 45 + + COUNT ( * ) + - - 33 * - CAST ( + AVG ( ALL + 10 ) AS INTEGER ) + - SUM ( DISTINCT 2 ) * - 98 * - - COUNT ( * ) + MAX ( + 71 ) - + 50
----
-67

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

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

query I rowsort
SELECT + 24 + 27 AS col1
----
51

query I rowsort
SELECT + 38 + - 76 * 35
----
-2622

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

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

query I rowsort
SELECT ALL 74 * + 15 AS col2
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT DISTINCT + 53 + + 75 * + COUNT( * ) AS col2
----
128

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT + 53 + + 75 * + COUNT ( * ) AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL + COALESCE ( - 63, + 15 + + + COUNT( * ) - + COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL + COALESCE ( - 63, + 15 + + + COUNT ( * ) - + COUNT ( * ) )
----
-63

query I rowsort
SELECT ALL 1 + + + 55
----
56

query I rowsort
SELECT + - NULLIF ( 54, + 90 ) - + ( - 50 ) * + 0 + - + 20
----
-74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT + + 46 - - - COUNT( * ) - - 29
----
74

skipif mysql # not compatible
query I rowsort label-6943
SELECT + + 46 - - - COUNT ( * ) - - 29
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT + ( - + CASE + COUNT( * ) WHEN + 16 THEN + - 33 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT + ( - + CASE + COUNT ( * ) WHEN + 16 THEN + - 33 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6945
SELECT ( + SUM( DISTINCT - 72 ) ) DIV + 12 + + COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6945
SELECT ( + SUM ( DISTINCT - 72 ) ) / + 12 + + COUNT ( * ) AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6946
SELECT - - 65 DIV COUNT( + 96 ) DIV - 60, + 36 * - 84 AS col0
----
-1
-3024

skipif mysql # not compatible
query II rowsort label-6946
SELECT - - 65 / COUNT ( + 96 ) / - 60, + 36 * - 84 AS col0
----
-1
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT + ( 95 ) * - - MIN( DISTINCT + - 67 ) * 48
----
-305520

skipif mysql # not compatible
query I rowsort label-6947
SELECT + ( 95 ) * - - MIN ( DISTINCT + - 67 ) * 48
----
-305520

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

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

query II rowsort
SELECT - 75 * + + ( + + 54 ) + + 28 * + 18 AS col1, 21 AS col0
----
-3546
21

query I rowsort
SELECT + ( + 30 ) - 14
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6951
SELECT ALL 3 / - 80 * - AVG ( ALL - CAST( NULL AS SIGNED ) ) * + 65 * - 87 * + 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL 3 / - 80 * - AVG ( ALL - CAST ( NULL AS INTEGER ) ) * + 65 * - 87 * + 94 col1
----
NULL

query I rowsort
SELECT + 86 + + 55 AS col1
----
141

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6954
SELECT COALESCE ( + 57, - ( + 33 ) * CAST( NULL AS SIGNED ) * + 32 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-6954
SELECT COALESCE ( + 57, - ( + 33 ) * CAST ( NULL AS INTEGER ) * + 32 ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6955
SELECT ALL MAX( DISTINCT - 43 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL MAX ( DISTINCT - 43 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT + CASE - ( - - 91 ) WHEN + 9 * - NULLIF ( + 25, + COUNT( ALL - 42 ) ) * + 93 * + - 67 * + 83 + + COALESCE ( - 82, - 34, 49 ) THEN NULL WHEN + + 50 THEN - + CASE + 57 WHEN + - 10 THEN - 61 + - CASE 18 + - 9 WHEN 3 THEN 91 WHEN - 46 + + 98 * + 43 THEN NULL WHEN 77 THEN NULL ELSE 44 * COUNT( 89 * - 27 ) END END - 8 * 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT + CASE - ( - - 91 ) WHEN + 9 * - NULLIF ( + 25, + COUNT ( ALL - 42 ) ) * + 93 * + - 67 * + 83 + + COALESCE ( - 82, - 34, 49 ) THEN NULL WHEN + + 50 THEN - + CASE + 57 WHEN + - 10 THEN - 61 + - CASE 18 + - 9 WHEN 3 THEN 91 WHEN - 46 + + 98 * + 43 THEN NULL WHEN 77 THEN NULL ELSE 44 * COUNT ( 89 * - 27 ) END END - 8 * 59 ELSE NULL END
----
NULL

query I rowsort
SELECT - 79 + + - 76 + + - 94 + + 26
----
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6958
SELECT - 38 DIV + COALESCE ( 57, - 50, + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6958
SELECT - 38 / + COALESCE ( 57, - 50, + COUNT ( * ) ) AS col1
----
0

query I rowsort
SELECT + 50 * 75 AS col1
----
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT 84 * COALESCE ( + 59, - - 26 ) + - + COUNT( * ) - - - COUNT( * ) + + 42 AS col1
----
4996

skipif mysql # not compatible
query I rowsort label-6960
SELECT 84 * COALESCE ( + 59, - - 26 ) + - + COUNT ( * ) - - - COUNT ( * ) + + 42 AS col1
----
4996

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT SUM( - 79 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-6962
SELECT SUM ( - 79 ) AS col2
----
-79

query I rowsort
SELECT DISTINCT CASE + 63 WHEN - - 92 THEN - - AVG ( DISTINCT + - ( 30 ) ) ELSE NULL END * + COALESCE ( - + 48, 21, + 82 * 21 )
----
NULL

query I rowsort
SELECT ALL + 48 * - 47
----
-2256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6965
SELECT DISTINCT - CAST( - 24 AS SIGNED ) * + COUNT( * ) - + 4 * - - 89 + + 77 - ( + 0 )
----
-255

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT - CAST ( - 24 AS INTEGER ) * + COUNT ( * ) - + 4 * - - 89 + + 77 - ( + 0 )
----
-255

query I rowsort
SELECT ALL + 30 * + 28
----
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6967
SELECT 58 * + 3 + CAST( + 4 AS SIGNED )
----
178

skipif mysql # not compatible
query I rowsort label-6967
SELECT 58 * + 3 + CAST ( + 4 AS INTEGER )
----
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6968
SELECT ALL NULLIF ( - + 62, - + 68 + - CAST( + 90 AS SIGNED ) + + 35 / 4 * - + 79 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL NULLIF ( - + 62, - + 68 + - CAST ( + 90 AS INTEGER ) + + 35 / 4 * - + 79 ) AS col1
----
-62

query I rowsort
SELECT ALL + 31 * - + 63 * - 25 * + - 40 AS col2
----
-1953000

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT - SUM( DISTINCT 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-6970
SELECT - SUM ( DISTINCT 24 ) AS col1
----
-24

query II rowsort
SELECT ALL COALESCE ( + 14, 55 ) col2, + 32 AS col0
----
14
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT - + NULLIF ( - 91, COUNT( * ) + - 46 + - 21 * + - 3 - 63 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6972
SELECT - + NULLIF ( - 91, COUNT ( * ) + - 46 + - 21 * + - 3 - 63 ) AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6973
SELECT ALL - + CASE - MIN( 97 ) WHEN + + CAST( + 47 AS SIGNED ) THEN NULL WHEN 45 * 8 + COUNT( * ) * + 92 THEN NULL ELSE - CASE + 4 WHEN - - CASE - MAX( ALL + 47 ) WHEN 41 THEN NULL WHEN + 80 THEN NULL ELSE SUM( DISTINCT + 91 ) * - - 13 + + + CAST( NULL AS SIGNED ) END * 79 + 41 * + ( - 62 * + 71 + 64 ) THEN 96 * 52 END * + 58 END - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL - + CASE - MIN ( 97 ) WHEN + + CAST ( + 47 AS INTEGER ) THEN NULL WHEN 45 * 8 + COUNT ( * ) * + 92 THEN NULL ELSE - CASE + 4 WHEN - - CASE - MAX ( ALL + 47 ) WHEN 41 THEN NULL WHEN + 80 THEN NULL ELSE SUM ( DISTINCT + 91 ) * - - 13 + + + CAST ( NULL AS INTEGER ) END * 79 + 41 * + ( - 62 * + 71 + 64 ) THEN 96 * 52 END * + 58 END - 98
----
NULL

query II rowsort
SELECT + - 44 * - 3 + + 74 + + - 0 * - 25 AS col1, - COALESCE ( + - 53, + 5 )
----
206
53

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6976
SELECT + 38 - + 79 * 3 AS col2, NULLIF ( - COUNT( * ), + ( ( - 79 ) ) * + 44 - - 12 / - 45 )
----
-199
-1

skipif mysql # not compatible
query II rowsort label-6976
SELECT + 38 - + 79 * 3 AS col2, NULLIF ( - COUNT ( * ), + ( ( - 79 ) ) * + 44 - - 12 / - 45 )
----
-199
-1

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

query I rowsort
SELECT ALL NULLIF ( + 35, - 9 ) * + + 80 AS col1
----
2800

query I rowsort
SELECT + 4 * - 47 + - 20 AS col2
----
-208

query I rowsort
SELECT + 18 + + - 43 AS col0
----
-25

query I rowsort
SELECT DISTINCT + - ( 72 ) * COALESCE ( 74, + 48 )
----
-5328

query I rowsort
SELECT - 74 + + 12
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6983
SELECT - COALESCE ( + + 71, - COUNT( DISTINCT + 90 ) ) * + - CAST( 74 AS SIGNED ) + + - COUNT( * ) AS col0
----
5253

skipif mysql # not compatible
query I rowsort label-6983
SELECT - COALESCE ( + + 71, - COUNT ( DISTINCT + 90 ) ) * + - CAST ( 74 AS INTEGER ) + + - COUNT ( * ) AS col0
----
5253

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6984
SELECT + CAST( NULL AS SIGNED ) AS col0, - 33
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-6984
SELECT + CAST ( NULL AS INTEGER ) AS col0, - 33
----
NULL
-33

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

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

query I rowsort
SELECT + 32 * - - 53 * + 4 AS col2
----
6784

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6987
SELECT - 70 / + COUNT( + - 58 ) * - 22 * 35 - - - CASE 82 WHEN - - 20 THEN + COUNT( * ) END * - + NULLIF ( - - 92, + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6987
SELECT - 70 / + COUNT ( + - 58 ) * - 22 * 35 - - - CASE 82 WHEN - - 20 THEN + COUNT ( * ) END * - + NULLIF ( - - 92, + - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6988
SELECT + 96 + + 57 DIV + + 85
----
96

skipif mysql # not compatible
query I rowsort label-6988
SELECT + 96 + + 57 / + + 85
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6989
SELECT ALL + CAST( NULL AS SIGNED ) * + 74 + + 78 / COALESCE ( + - 55, 81 * 87 * - 78 + + 58 + + 16 * 12 + 59 ) / + MIN( DISTINCT 50 ), - 62 AS col2
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-6989
SELECT ALL + CAST ( NULL AS INTEGER ) * + 74 + + 78 / COALESCE ( + - 55, 81 * 87 * - 78 + + 58 + + 16 * 12 + 59 ) / + MIN ( DISTINCT 50 ), - 62 AS col2
----
NULL
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6990
SELECT + 49 DIV + + 72 * - + 70
----
0

skipif mysql # not compatible
query I rowsort label-6990
SELECT + 49 / + + 72 * - + 70
----
0

query I rowsort
SELECT + 60 + - 30 AS col0
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT + COUNT( * ) + + 82 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6993
SELECT + COUNT ( * ) + + 82 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT 63 * 13 + - COUNT( * ) col2
----
818

skipif mysql # not compatible
query I rowsort label-6994
SELECT 63 * 13 + - COUNT ( * ) col2
----
818

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6996
SELECT CASE WHEN NOT CASE - + 66 WHEN + AVG ( DISTINCT - + 95 ) THEN - + 97 END IS NULL THEN - 35 * - 6 * - 62 + - 16 END, + COALESCE ( 26, + 0 ) DIV 14 + - - 89 AS col1
----
NULL
90

skipif mysql # not compatible
query II rowsort label-6996
SELECT CASE WHEN NOT CASE - + 66 WHEN + AVG ( DISTINCT - + 95 ) THEN - + 97 END IS NULL THEN - 35 * - 6 * - 62 + - 16 END, + COALESCE ( 26, + 0 ) / 14 + - - 89 AS col1
----
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT + 69 * + 89 + - MIN( ALL - + 52 )
----
6193

skipif mysql # not compatible
query I rowsort label-6997
SELECT + 69 * + 89 + - MIN ( ALL - + 52 )
----
6193

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT ALL CASE + 16 WHEN - + 77 THEN 86 + + - MAX( ALL + - ( 61 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL CASE + 16 WHEN - + 77 THEN 86 + + - MAX ( ALL + - ( 61 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT + ( 60 ) + ( + - COUNT( DISTINCT - 71 ) )
----
59

skipif mysql # not compatible
query I rowsort label-6999
SELECT + ( 60 ) + ( + - COUNT ( DISTINCT - 71 ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL - - COUNT( * ) - + 15
----
-14

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL - - COUNT ( * ) - + 15
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT - 95 * COUNT( DISTINCT + 74 ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-7001
SELECT - 95 * COUNT ( DISTINCT + 74 ) col2
----
-95

query I rowsort
SELECT 23 + 24 AS col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7003
SELECT - 48, - ( + COUNT( * ) ) * + - 58 + COUNT( * ) col1
----
-48
59

skipif mysql # not compatible
query II rowsort label-7003
SELECT - 48, - ( + COUNT ( * ) ) * + - 58 + COUNT ( * ) col1
----
-48
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT COUNT( * ) + + 51 + + + MIN( DISTINCT 40 ) AS col2, - 52 * - + 47 col1
----
92
2444

skipif mysql # not compatible
query II rowsort label-7004
SELECT COUNT ( * ) + + 51 + + + MIN ( DISTINCT 40 ) AS col2, - 52 * - + 47 col1
----
92
2444

query I rowsort
SELECT 99 + + 44 + - 55
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT DISTINCT - + 92 * COUNT( ALL - 63 )
----
-92

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT - + 92 * COUNT ( ALL - 63 )
----
-92

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7008
SELECT 79 DIV - + SUM( DISTINCT - 81 ) * - + 40
----
0

skipif mysql # not compatible
query I rowsort label-7008
SELECT 79 / - + SUM ( DISTINCT - 81 ) * - + 40
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7009
SELECT DISTINCT - COUNT( * ) AS col1, + MAX( - + 72 )
----
-1
-72

skipif mysql # not compatible
query II rowsort label-7009
SELECT DISTINCT - COUNT ( * ) AS col1, + MAX ( - + 72 )
----
-1
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT - 11 + - 7 - + COUNT( * ) + 55 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7010
SELECT - 11 + - 7 - + COUNT ( * ) + 55 AS col1
----
36

query I rowsort
SELECT - 69 - + - 4 AS col0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT + 66 DIV - 20 + - 75 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7012
SELECT + 66 / - 20 + - 75 AS col1
----
-78

query I rowsort
SELECT DISTINCT 32 * 69 AS col1
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT DISTINCT - MIN( + 86 ) + - - 51 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT - MIN ( + 86 ) + - - 51 AS col1
----
-35

query I rowsort
SELECT 49 - - - 77 AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7016
SELECT ALL - CAST( - 82 AS SIGNED ) + + CASE + 47 WHEN AVG ( ALL + 49 ) + 83 THEN - + 93 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL - CAST ( - 82 AS INTEGER ) + + CASE + 47 WHEN AVG ( ALL + 49 ) + 83 THEN - + 93 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7017
SELECT CASE 23 WHEN 21 * + - COUNT( * ) + - 63 - 36 - - + NULLIF ( 69, + - 5 * - 94 ) - + ( - - AVG ( DISTINCT - CAST( + + NULLIF ( - 28, - 37 ) AS SIGNED ) ) ) THEN - 70 WHEN ( + 26 ) * 23 + + COUNT( * ) THEN NULL WHEN - 15 / - 4 THEN 41 + 96 * 86 WHEN - 8 THEN NULL ELSE NULL END + - 19 / 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT CASE 23 WHEN 21 * + - COUNT ( * ) + - 63 - 36 - - + NULLIF ( 69, + - 5 * - 94 ) - + ( - - AVG ( DISTINCT - CAST ( + + NULLIF ( - 28, - 37 ) AS INTEGER ) ) ) THEN - 70 WHEN ( + 26 ) * 23 + + COUNT ( * ) THEN NULL WHEN - 15 / - 4 THEN 41 + 96 * 86 WHEN - 8 THEN NULL ELSE NULL END + - 19 / 51
----
NULL

query I rowsort
SELECT 45 * 96 col2
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT + 65 * - + MAX( DISTINCT - - 19 ) + 86 AS col2
----
-1149

skipif mysql # not compatible
query I rowsort label-7019
SELECT + 65 * - + MAX ( DISTINCT - - 19 ) + 86 AS col2
----
-1149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7020
SELECT DISTINCT - CAST( + 0 AS SIGNED ) AS col2, 49 * + COUNT( * ) + - COUNT( + 73 )
----
0
48

skipif mysql # not compatible
query II rowsort label-7020
SELECT DISTINCT - CAST ( + 0 AS INTEGER ) AS col2, 49 * + COUNT ( * ) + - COUNT ( + 73 )
----
0
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL - COUNT( - ( + - 16 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL - COUNT ( - ( + - 16 ) ) AS col2
----
-1

query II rowsort
SELECT DISTINCT 18 * - 33, 57 + 90 AS col0
----
-594
147

onlyif mysql # DIV for integer division: 
query II rowsort label-7023
SELECT DISTINCT 30 DIV 99 col0, - 50 AS col0
----
0
-50

skipif mysql # not compatible
query II rowsort label-7023
SELECT DISTINCT 30 / 99 col0, - 50 AS col0
----
0
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL - 99 * + + COUNT( * ) / - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL - 99 * + + COUNT ( * ) / - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 41 * 81
----
-3321

query I rowsort
SELECT - 23 - - + 15
----
-8

query I rowsort
SELECT + 93 * + ( - 75 )
----
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT + 59 * 68 - - 41 * COUNT( * ) AS col0
----
4053

skipif mysql # not compatible
query I rowsort label-7028
SELECT + 59 * 68 - - 41 * COUNT ( * ) AS col0
----
4053

query I rowsort
SELECT ALL 29 * + 29 AS col1
----
841

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT + SUM( DISTINCT 11 ) - 17
----
-6

skipif mysql # not compatible
query I rowsort label-7030
SELECT + SUM ( DISTINCT 11 ) - 17
----
-6

query I rowsort
SELECT 24 * + + 55 * - + 67
----
-88440

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT - COUNT( * ) + + 96 + + COUNT( 94 ) + - + 48 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7032
SELECT - COUNT ( * ) + + 96 + + COUNT ( 94 ) + - + 48 AS col1
----
48

query I rowsort
SELECT ALL - + 97 * 52 * 40
----
-201760

query I rowsort
SELECT 63 - NULLIF ( + 67, + 23 ) + + 12
----
8

query I rowsort
SELECT - COALESCE ( 15, 14 ) AS col2
----
-15

query II rowsort
SELECT 8 AS col2, ( + ( + + 62 ) )
----
8
62

query II rowsort
SELECT 21, 29 + + + 71 * + - COALESCE ( + + 62, + - 29 * - 47, 71 ) AS col2
----
21
-4373

query I rowsort
SELECT ALL - 89 + + 53 * + 23 AS col2
----
1130

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT DISTINCT 93 * + 32 + - COALESCE ( - + 78, + - COUNT( * ), 21 ) + + 52 * - ( 82 ) * + 38 AS col1
----
-158978

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT 93 * + 32 + - COALESCE ( - + 78, + - COUNT ( * ), 21 ) + + 52 * - ( 82 ) * + 38 AS col1
----
-158978

onlyif mysql # aggregate syntax: 
query II rowsort label-7040
SELECT NULLIF ( ( + 87 ), - + COUNT( * ) ), - 12 AS col0
----
87
-12

skipif mysql # not compatible
query II rowsort label-7040
SELECT NULLIF ( ( + 87 ), - + COUNT ( * ) ), - 12 AS col0
----
87
-12

query II rowsort
SELECT + 17 AS col1, 92 AS col0
----
17
92

query I rowsort
SELECT 35 + - + 41 + - ( - 62 )
----
56

query I rowsort
SELECT 39 * + 28 col0
----
1092

query I rowsort
SELECT - 74 * + + ( 62 ) + + 57 AS col0
----
-4531

query II rowsort
SELECT + 26 AS col1, 12 AS col0
----
26
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7046
SELECT 99 DIV - ( 90 ) + + 86 + + 69 + + 17 + COUNT( + + 88 ) AS col1
----
172

skipif mysql # not compatible
query I rowsort label-7046
SELECT 99 / - ( 90 ) + + 86 + + 69 + + 17 + COUNT ( + + 88 ) AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT MAX( ALL - 19 ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-7047
SELECT MAX ( ALL - 19 ) col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL 5 * 20 - 34 + - NULLIF ( + 41, - 57 ) * + COUNT( * ) * + 65 + - - 13 AS col1
----
-2586

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL 5 * 20 - 34 + - NULLIF ( + 41, - 57 ) * + COUNT ( * ) * + 65 + - - 13 AS col1
----
-2586

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT 90 * MIN( 38 ) - 88 + 98
----
3430

skipif mysql # not compatible
query I rowsort label-7049
SELECT 90 * MIN ( 38 ) - 88 + 98
----
3430

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7050
SELECT COUNT( * ) col1, 77 * COUNT( * ) * 94 + - - ( + - MIN( - 19 ) ) + + NULLIF ( + 3, - + MAX( ALL 46 ) + - ( + - 0 ) - + NULLIF ( 63, - 75 - + 42 ) * - + CASE - 7 WHEN + + 12 + - 19 - - 97 * + 22 * - 39 THEN + 52 / 63 WHEN AVG ( DISTINCT 49 ) THEN MIN( + 1 ) + - CAST( NULL AS DECIMAL ) / - 2 END ) * + ( - 40 * - 71 ) AS col0
----
1
15777

skipif mysql # not compatible
query II rowsort label-7050
SELECT COUNT ( * ) col1, 77 * COUNT ( * ) * 94 + - - ( + - MIN ( - 19 ) ) + + NULLIF ( + 3, - + MAX ( ALL 46 ) + - ( + - 0 ) - + NULLIF ( 63, - 75 - + 42 ) * - + CASE - 7 WHEN + + 12 + - 19 - - 97 * + 22 * - 39 THEN + 52 / 63 WHEN AVG ( DISTINCT 49 ) THEN MIN ( + 1 ) + - CAST ( NULL AS REAL ) / - 2 END ) * + ( - 40 * - 71 ) AS col0
----
1
15777

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT DISTINCT 67 * + COUNT( * ) - - ( 82 ) + - 28 * + - 10 AS col0
----
429

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT 67 * + COUNT ( * ) - - ( 82 ) + - 28 * + - 10 AS col0
----
429

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

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

query I rowsort
SELECT ALL 77 * - 13 AS col0
----
-1001

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7054
SELECT - SUM( 92 ) + + + ( - COALESCE ( + + COUNT( * ), MAX( + 52 ) DIV 6 + + 85 + + + ( 26 ) ) ) AS col1, 56 col1
----
-93
56

skipif mysql # not compatible
query II rowsort label-7054
SELECT - SUM ( 92 ) + + + ( - COALESCE ( + + COUNT ( * ), MAX ( + 52 ) / 6 + + 85 + + + ( 26 ) ) ) AS col1, 56 col1
----
-93
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7055
SELECT ALL 42 * + 48 - + + ( 96 ) + - COALESCE ( - 1, + 33, + 62 DIV + 8 - - + 14 ) * + COALESCE ( 84, 19 + + - 73, + 40 * - 35 ) * 45
----
5700

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL 42 * + 48 - + + ( 96 ) + - COALESCE ( - 1, + 33, + 62 / + 8 - - + 14 ) * + COALESCE ( 84, 19 + + - 73, + 40 * - 35 ) * 45
----
5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7056
SELECT ALL + 10 * 1 - - - 0 * - + SUM( ALL + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL + 10 * 1 - - - 0 * - + SUM ( ALL + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - + 37 + 50
----
13

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

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL + ( + + NULLIF ( + - 92, COUNT ( * ) ) )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT - - 62 + - MIN( + 38 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-7059
SELECT - - 62 + - MIN ( + 38 ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7060
SELECT + - MIN( ALL COALESCE ( - + 39, - 6 * - + 34 ) ) + + + 21 + 81 + 7 + - - 48 DIV 53 * + - 7
----
148

skipif mysql # not compatible
query I rowsort label-7060
SELECT + - MIN ( ALL COALESCE ( - + 39, - 6 * - + 34 ) ) + + + 21 + 81 + 7 + - - 48 / 53 * + - 7
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7061
SELECT + + 82 + 45 + + + CASE + - 72 WHEN + 25 THEN NULL WHEN ( - 27 ) + + 55 THEN + 97 ELSE + 69 - + 10 END col2, 37 * COALESCE ( - 68, + 56, + 50 * - + 62 + + + 10 - + 95 DIV + COUNT( * ) + - 68 - + 6 * + 23 * 60, ( 18 ) ) * + 81 + 28 * 52 col2
----
186
-202340

skipif mysql # not compatible
query II rowsort label-7061
SELECT + + 82 + 45 + + + CASE + - 72 WHEN + 25 THEN NULL WHEN ( - 27 ) + + 55 THEN + 97 ELSE + 69 - + 10 END col2, 37 * COALESCE ( - 68, + 56, + 50 * - + 62 + + + 10 - + 95 / + COUNT ( * ) + - 68 - + 6 * + 23 * 60, ( 18 ) ) * + 81 + 28 * 52 col2
----
186
-202340

onlyif mysql # aggregate syntax: 
query II rowsort label-7062
SELECT ALL + - 74 AS col0, + COUNT( * )
----
-74
1

skipif mysql # not compatible
query II rowsort label-7062
SELECT ALL + - 74 AS col0, + COUNT ( * )
----
-74
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7063
SELECT + ( COUNT( * ) ) DIV + - 9 AS col2, + COUNT( * ) + + 62
----
0
63

skipif mysql # not compatible
query II rowsort label-7063
SELECT + ( COUNT ( * ) ) / + - 9 AS col2, + COUNT ( * ) + + 62
----
0
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT + ( 46 ) + + - COUNT( - 75 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7064
SELECT + ( 46 ) + + - COUNT ( - 75 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT + 84 + - 22 * - + COUNT( * ) * - + 80 * + COUNT( * )
----
-1676

skipif mysql # not compatible
query I rowsort label-7065
SELECT + 84 + - 22 * - + COUNT ( * ) * - + 80 * + COUNT ( * )
----
-1676

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

skipif mysql # not compatible
query I rowsort label-7066
SELECT - + MAX ( + 42 )
----
-42

query I rowsort
SELECT - - COALESCE ( - - 55, 1 + + 83 ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7068
SELECT ALL + CAST( - CASE + COUNT( * ) WHEN + 23 THEN + COUNT( * ) + - + 6 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL + CAST ( - CASE + COUNT ( * ) WHEN + 23 THEN + COUNT ( * ) + - + 6 END AS INTEGER )
----
NULL

query I rowsort
SELECT - COALESCE ( - + 4, + 81 + - 15 * ( 64 ) )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7070
SELECT DISTINCT CASE + NULLIF ( - - SUM( - CAST( + - 16 AS SIGNED ) ), 73 ) WHEN 15 THEN - 61 WHEN - + CAST( NULL AS SIGNED ) THEN - 32 * + - 66 * - COUNT( * ) * + 18 + + 10 + - COUNT( DISTINCT + - COALESCE ( + 7, 34 + + ( - 1 ) ) ) + - 0 + + 56 * 42 * - CAST( NULL AS SIGNED ) DIV 99 ELSE + 7 END + - 20
----
-13

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT CASE + NULLIF ( - - SUM ( - CAST ( + - 16 AS INTEGER ) ), 73 ) WHEN 15 THEN - 61 WHEN - + CAST ( NULL AS INTEGER ) THEN - 32 * + - 66 * - COUNT ( * ) * + 18 + + 10 + - COUNT ( DISTINCT + - COALESCE ( + 7, 34 + + ( - 1 ) ) ) + - 0 + + 56 * 42 * - CAST ( NULL AS INTEGER ) / 99 ELSE + 7 END + - 20
----
-13

query I rowsort
SELECT - 29 * + 64
----
-1856

query I rowsort
SELECT - - 5 + + - 8
----
-3

query I rowsort
SELECT ALL 4 + + - 99
----
-95

query I rowsort
SELECT DISTINCT + 31 + + - 95 AS col2
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7075
SELECT DISTINCT ( + + 1 ) + + + SUM( - 42 ) - + 63 + + NULLIF ( COUNT( * ), + 22 ) * - 38 * 10 DIV + 6 AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT ( + + 1 ) + + + SUM ( - 42 ) - + 63 + + NULLIF ( COUNT ( * ), + 22 ) * - 38 * 10 / + 6 AS col1
----
-167

query I rowsort
SELECT + 97 + - 30 * + 94 AS col1
----
-2723

query I rowsort
SELECT + 73 + + 85 AS col1
----
158

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT - CASE + 12 WHEN ( + 10 ) * 48 * - AVG ( ALL + + 38 ) * + 62 THEN NULL ELSE + - 26 - 74 - - 67 * CASE + 89 WHEN + NULLIF ( + - COUNT( DISTINCT + + 99 ), - + 22 ) THEN NULL ELSE 12 END END AS col1
----
-704

skipif mysql # not compatible
query I rowsort label-7079
SELECT - CASE + 12 WHEN ( + 10 ) * 48 * - AVG ( ALL + + 38 ) * + 62 THEN NULL ELSE + - 26 - 74 - - 67 * CASE + 89 WHEN + NULLIF ( + - COUNT ( DISTINCT + + 99 ), - + 22 ) THEN NULL ELSE 12 END END AS col1
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT DISTINCT - 58 - - + 13 + + SUM( + 78 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT - 58 - - + 13 + + SUM ( + 78 ) AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7081
SELECT + 20 DIV + 44 + - 97 * - + 32 + + + 29 + COUNT( * ) * - - 96 * + 48 + + CAST( - 44 AS SIGNED )
----
7697

skipif mysql # not compatible
query I rowsort label-7081
SELECT + 20 / + 44 + - 97 * - + 32 + + + 29 + COUNT ( * ) * - - 96 * + 48 + + CAST ( - 44 AS INTEGER )
----
7697

query I rowsort
SELECT DISTINCT + 85 * - - 40 * + 72
----
244800

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7084
SELECT ALL + ( + + 87 ), COUNT( * ) AS col2
----
87
1

skipif mysql # not compatible
query II rowsort label-7084
SELECT ALL + ( + + 87 ), COUNT ( * ) AS col2
----
87
1

query I rowsort
SELECT ALL 89 * + - 41 AS col2
----
-3649

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT DISTINCT + NULLIF ( 9, + MAX( DISTINCT - + 75 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT + NULLIF ( 9, + MAX ( DISTINCT - + 75 ) ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7087
SELECT + ( + + 98 ) DIV MIN( ALL 2 ) AS col0, - 75 * 72 AS col2
----
49
-5400

skipif mysql # not compatible
query II rowsort label-7087
SELECT + ( + + 98 ) / MIN ( ALL 2 ) AS col0, - 75 * 72 AS col2
----
49
-5400

query I rowsort
SELECT - 53 + + COALESCE ( + + 26, + NULLIF ( - ( + 15 ), + ( - + 95 ) ), + 73 ) + 41 col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7089
SELECT DISTINCT + - 60 DIV - 30 + + SUM( 53 )
----
55

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT + - 60 / - 30 + + SUM ( 53 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7090
SELECT ALL + - COALESCE ( 54, - MIN( ALL + 57 ) * CAST( - NULLIF ( 22, - - 57 ) AS SIGNED ) )
----
-54

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL + - COALESCE ( 54, - MIN ( ALL + 57 ) * CAST ( - NULLIF ( 22, - - 57 ) AS INTEGER ) )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT - 19 * NULLIF ( + SUM( ALL - 47 ), - - 30 + - 2 ) col1
----
893

skipif mysql # not compatible
query I rowsort label-7091
SELECT - 19 * NULLIF ( + SUM ( ALL - 47 ), - - 30 + - 2 ) col1
----
893

query I rowsort
SELECT + 89 * 93 * - 4 AS col2
----
-33108

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

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

query I rowsort
SELECT DISTINCT + + 56 * + ( - - 46 ) - + - 18
----
2594

query I rowsort
SELECT DISTINCT + 36 * + 5 + 55 + - + 54 AS col0
----
181

onlyif mysql # aggregate syntax: 
query II rowsort label-7096
SELECT - - 64 - COUNT( * ), + COALESCE ( + 2, - 99 * - 74 * - + 41 ) col0
----
63
2

skipif mysql # not compatible
query II rowsort label-7096
SELECT - - 64 - COUNT ( * ), + COALESCE ( + 2, - 99 * - 74 * - + 41 ) col0
----
63
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT ALL - + COUNT( * ) * + 44 + + + CASE + - 42 WHEN MIN( + 92 ) * - 18 * + 76 THEN + NULLIF ( + COUNT( * ), + 55 ) * - 97 / - 23 / - - 23 END + - - 43 * + ( - 97 ) * + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL - + COUNT ( * ) * + 44 + + + CASE + - 42 WHEN MIN ( + 92 ) * - 18 * + 76 THEN + NULLIF ( + COUNT ( * ), + 55 ) * - 97 / - 23 / - - 23 END + - - 43 * + ( - 97 ) * + 33 AS col1
----
NULL

query I rowsort
SELECT - 35 * + 6 + - 80 - 64 + + 52
----
-302

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT - - 15 + 39 + + + ( + + COUNT( * ) ) + + + 96 AS col0
----
151

skipif mysql # not compatible
query I rowsort label-7099
SELECT - - 15 + 39 + + + ( + + COUNT ( * ) ) + + + 96 AS col0
----
151

query I rowsort
SELECT + 5 * 46
----
230

query I rowsort
SELECT DISTINCT - - 1 + - 85 - NULLIF ( + + 16, + + 45 ) AS col1
----
-100

query I rowsort
SELECT ( ( - - 38 ) )
----
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7103
SELECT + 56 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT + 56 + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7104
SELECT DISTINCT 21 DIV 59 * + MAX( ALL + 15 ) * + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT 21 / 59 * + MAX ( ALL + 15 ) * + 39 AS col2
----
0

query I rowsort
SELECT + 32 + + 34 - - 14 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT - 44 * + - COUNT( 42 ) * + 88 * + 8 - - 4 - + + 22
----
30958

skipif mysql # not compatible
query I rowsort label-7106
SELECT - 44 * + - COUNT ( 42 ) * + 88 * + 8 - - 4 - + + 22
----
30958

query I rowsort
SELECT ALL 56 * - + 88 * 51 AS col0
----
-251328

query I rowsort
SELECT - 20 + 65 AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT - CASE - - 46 WHEN + 39 THEN NULL ELSE + 24 + - CAST( 48 AS SIGNED ) END AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7109
SELECT - CASE - - 46 WHEN + 39 THEN NULL ELSE + 24 + - CAST ( 48 AS INTEGER ) END AS col2
----
24

query I rowsort
SELECT + 14 * 40 * - 80 AS col2
----
-44800

query II rowsort
SELECT 76 AS col1, 56
----
76
56

query I rowsort
SELECT DISTINCT 13 - - 1
----
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT ( COUNT( * ) ) + 12
----
13

skipif mysql # not compatible
query I rowsort label-7114
SELECT ( COUNT ( * ) ) + 12
----
13

query II rowsort
SELECT + 82 AS col2, - 65 col0
----
82
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7116
SELECT ALL - 25 AS col0, COUNT( DISTINCT + + 69 )
----
-25
1

skipif mysql # not compatible
query II rowsort label-7116
SELECT ALL - 25 AS col0, COUNT ( DISTINCT + + 69 )
----
-25
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7117
SELECT + 27 * CAST( NULL AS SIGNED ) + 3 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT + 27 * CAST ( NULL AS INTEGER ) + 3 * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( + - 73, 29 ) * 79
----
-5767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7119
SELECT + 87 DIV + - COALESCE ( + 66, + + COALESCE ( + 27, - - CAST( + COUNT( * ) AS SIGNED ) * ( + 76 ) + + 80 ) + + 67 + 33 * - - SUM( DISTINCT + 26 ) ) + - - 5 - - 93 DIV + + 66 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7119
SELECT + 87 / + - COALESCE ( + 66, + + COALESCE ( + 27, - - CAST ( + COUNT ( * ) AS INTEGER ) * ( + 76 ) + + 80 ) + + 67 + 33 * - - SUM ( DISTINCT + 26 ) ) + - - 5 - - 93 / + + 66 AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7120
SELECT DISTINCT 77 DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT 77 / - 95 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7121
SELECT 23 DIV 31 DIV 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7121
SELECT 23 / 31 / 14 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT CASE 9 WHEN + 0 + - 58 THEN - + 2 WHEN CASE - 73 WHEN + COUNT( * ) * 5 * + 64 * + 80 THEN NULL WHEN - - COUNT( 76 ) THEN NULL ELSE - COUNT( * ) END THEN - 83 WHEN + - 34 THEN + 29 END + + + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7122
SELECT CASE 9 WHEN + 0 + - 58 THEN - + 2 WHEN CASE - 73 WHEN + COUNT ( * ) * 5 * + 64 * + 80 THEN NULL WHEN - - COUNT ( 76 ) THEN NULL ELSE - COUNT ( * ) END THEN - 83 WHEN + - 34 THEN + 29 END + + + 16 AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 72, - 44 ) col0
----
-72

query I rowsort
SELECT 99 + - - 88 + + + 88 AS col2
----
275

query I rowsort
SELECT ALL - - 79 col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT DISTINCT COUNT( * ) + - 21 + 17 * + + 16 AS col1
----
252

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT COUNT ( * ) + - 21 + 17 * + + 16 AS col1
----
252

query I rowsort
SELECT ALL - + 91 + + ( ( 16 ) ) col2
----
-75

query I rowsort
SELECT 92 + - COALESCE ( 95, + + 97 ) + + ( - 49 )
----
-52

query I rowsort
SELECT 79 + + - 41
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT - 19 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-7130
SELECT - 19 / - 52
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7131
SELECT ALL - 33 + + COALESCE ( - - 99, - 82 * + 98 ) * - 12 AS col2, - 55 + + 86 + + 89 * 67 - - CASE 72 WHEN 36 * + + 43 - + - 95 THEN - + ( + + AVG ( + 16 ) ) DIV + + MIN( ALL ( + 21 ) ) ELSE - - 70 * + 60 END
----
-1221
10194

skipif mysql # not compatible
query II rowsort label-7131
SELECT ALL - 33 + + COALESCE ( - - 99, - 82 * + 98 ) * - 12 AS col2, - 55 + + 86 + + 89 * 67 - - CASE 72 WHEN 36 * + + 43 - + - 95 THEN - + ( + + AVG ( + 16 ) ) / + + MIN ( ALL ( + 21 ) ) ELSE - - 70 * + 60 END
----
-1221
10194

query I rowsort
SELECT ALL 2 + + 91
----
93

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

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

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

query I rowsort
SELECT ALL - 83 + 59 AS col1
----
-24

query II rowsort
SELECT ALL - 92, + 88 AS col1
----
-92
88

query I rowsort
SELECT + ( - 51 ) + - 97 + - 31 AS col1
----
-179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7138
SELECT 39 * COALESCE ( + + 71, - ( COUNT( - 41 ) ) * + 67 ) * + 67 DIV - COUNT( * ), - 42 + + 78 - + + CAST( + 7 AS SIGNED ) col1
----
-185523
29

skipif mysql # not compatible
query II rowsort label-7138
SELECT 39 * COALESCE ( + + 71, - ( COUNT ( - 41 ) ) * + 67 ) * + 67 / - COUNT ( * ), - 42 + + 78 - + + CAST ( + 7 AS INTEGER ) col1
----
-185523
29

query I rowsort
SELECT 74 * 94 col2
----
6956

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT AVG ( ALL + + 28 ) + CASE + + 55 WHEN - 90 THEN NULL WHEN + 40 THEN - CASE + COUNT( * ) WHEN + + 37 * - 85 THEN + 91 + 53 + 5 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT AVG ( ALL + + 28 ) + CASE + + 55 WHEN - 90 THEN NULL WHEN + 40 THEN - CASE + COUNT ( * ) WHEN + + 37 * - 85 THEN + 91 + 53 + 5 END ELSE NULL END
----
NULL

query II rowsort
SELECT 31 AS col0, 94 * - 13 * 98 * 97 AS col0
----
31
-11616332

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7143
SELECT ALL - CAST( NULL AS SIGNED ) * - 39 * + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL - CAST ( NULL AS INTEGER ) * - 39 * + 79 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 20, + 5 AS col0
----
20
5

query I rowsort
SELECT ALL 54 * 47 AS col0
----
2538

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7147
SELECT ALL - 68 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL - 68 / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT ALL MAX( 98 )
----
98

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL MAX ( 98 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7149
SELECT DISTINCT 1 * - + 95 DIV - + 4 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT 1 * - + 95 / - + 4 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT COUNT( * ) + + - 15
----
-14

skipif mysql # not compatible
query I rowsort label-7150
SELECT COUNT ( * ) + + - 15
----
-14

query I rowsort
SELECT DISTINCT - 50 + 18 AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7152
SELECT ALL - MIN( 92 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL - MIN ( 92 ) + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 10 * - 58 + - 82 + - 42 AS col1
----
456

query I rowsort
SELECT ALL 80 + 43
----
123

query I rowsort
SELECT ALL - ( + - 93 ) * - 27 AS col0
----
-2511

onlyif mysql # aggregate syntax: 
query II rowsort label-7156
SELECT DISTINCT - + 2 AS col1, - CASE - SUM( ( + + ( + 26 ) ) ) WHEN 91 THEN NULL ELSE + 45 END AS col2
----
-2
-45

skipif mysql # not compatible
query II rowsort label-7156
SELECT DISTINCT - + 2 AS col1, - CASE - SUM ( ( + + ( + 26 ) ) ) WHEN 91 THEN NULL ELSE + 45 END AS col2
----
-2
-45

query II rowsort
SELECT ALL 7 + + - 12, + 6 AS col0
----
-5
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7158
SELECT DISTINCT - 70 + + + 1 + + 49 + ( - 14 ) DIV + 56 * + + 22 + 84
----
64

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT - 70 + + + 1 + + 49 + ( - 14 ) / + 56 * + + 22 + 84
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-7159
SELECT + 52, 4 DIV - 64 AS col1
----
52
0

skipif mysql # not compatible
query II rowsort label-7159
SELECT + 52, 4 / - 64 AS col1
----
52
0

query II rowsort
SELECT + 63 AS col2, + 3 - - 77
----
63
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7161
SELECT COUNT( * ) * - + 1, + 60 + + ( + COALESCE ( + ( - - NULLIF ( + + 72, - 2 ) ), 50 + COUNT( * ) + + 19 * COUNT( * ) * + - 20 * 1 + 44 + + - COUNT( ALL - 48 ), + 18 + - COALESCE ( + COALESCE ( - 56, + + 8 * + 33 * - - CASE 52 WHEN + 89 THEN + 1 WHEN - 22 THEN NULL END ), + 80 ) + + 39 ) ) AS col0
----
-1
132

skipif mysql # not compatible
query II rowsort label-7161
SELECT COUNT ( * ) * - + 1, + 60 + + ( + COALESCE ( + ( - - NULLIF ( + + 72, - 2 ) ), 50 + COUNT ( * ) + + 19 * COUNT ( * ) * + - 20 * 1 + 44 + + - COUNT ( ALL - 48 ), + 18 + - COALESCE ( + COALESCE ( - 56, + + 8 * + 33 * - - CASE 52 WHEN + 89 THEN + 1 WHEN - 22 THEN NULL END ), + 80 ) + + 39 ) ) AS col0
----
-1
132

onlyif mysql # aggregate syntax: 
query II rowsort label-7162
SELECT + - 6 col1, + ( 54 ) * + 16 + - + CASE ( 58 ) WHEN - 87 THEN NULL WHEN + + 36 * - + 92 - - - COUNT( * ) * - COUNT( * ) THEN - COUNT( * ) + - 32 ELSE - 95 END + - COUNT( * )
----
-6
958

skipif mysql # not compatible
query II rowsort label-7162
SELECT + - 6 col1, + ( 54 ) * + 16 + - + CASE ( 58 ) WHEN - 87 THEN NULL WHEN + + 36 * - + 92 - - - COUNT ( * ) * - COUNT ( * ) THEN - COUNT ( * ) + - 32 ELSE - 95 END + - COUNT ( * )
----
-6
958

query II rowsort
SELECT + 47, 39 + + 34 AS col0
----
47
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7164
SELECT + MAX( - 60 ) AS col1, + COUNT( - ( + + 97 ) ) * + + 78 AS col0
----
-60
78

skipif mysql # not compatible
query II rowsort label-7164
SELECT + MAX ( - 60 ) AS col1, + COUNT ( - ( + + 97 ) ) * + + 78 AS col0
----
-60
78

query I rowsort
SELECT ( - + COALESCE ( + 7, 47 * - 83 ) ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7166
SELECT ALL 96 * - - CAST( NULL AS SIGNED ) / - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL 96 * - - CAST ( NULL AS INTEGER ) / - 5 AS col1
----
NULL

query I rowsort
SELECT ALL + 43 * - ( 99 ) * + COALESCE ( - - 97, + 50 ) + - 62
----
-412991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7168
SELECT 93 * - CAST( + 77 AS SIGNED ) AS col2
----
-7161

skipif mysql # not compatible
query I rowsort label-7168
SELECT 93 * - CAST ( + 77 AS INTEGER ) AS col2
----
-7161

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT DISTINCT + 10 * 10 * + 92 - - 71 - + COUNT( * ) AS col1
----
9270

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT + 10 * 10 * + 92 - - 71 - + COUNT ( * ) AS col1
----
9270

query II rowsort
SELECT ALL - 52, + 35 AS col2
----
-52
35

query I rowsort
SELECT 55 * + + 50 AS col1
----
2750

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT 74 DIV - 76 * - + 58 * + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7172
SELECT 74 / - 76 * - + 58 * + 99 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT NULLIF ( + + 29, - ( - ( - 96 ) ) / + + 58 + - + 88 ) * - 87 - COUNT( * )
----
-2524

skipif mysql # not compatible
query I rowsort label-7173
SELECT NULLIF ( + + 29, - ( - ( - 96 ) ) / + + 58 + - + 88 ) * - 87 - COUNT ( * )
----
-2524

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT 48 + - - 18 DIV - 51
----
48

skipif mysql # not compatible
query I rowsort label-7174
SELECT 48 + - - 18 / - 51
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-7175
SELECT DISTINCT + 53 DIV 18 AS col1, 45
----
2
45

skipif mysql # not compatible
query II rowsort label-7175
SELECT DISTINCT + 53 / 18 AS col1, 45
----
2
45

query I rowsort
SELECT DISTINCT 38 - + 54 col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT ALL 96 / - + NULLIF ( - NULLIF ( + + CASE - 76 WHEN - 72 - + 47 THEN 53 * - 1 / 1 + - COUNT( * ) WHEN + - COUNT( * ) THEN - 81 ELSE NULL END, 8 ), - - 56 + + 99 - 82 * + 33 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL 96 / - + NULLIF ( - NULLIF ( + + CASE - 76 WHEN - 72 - + 47 THEN 53 * - 1 / 1 + - COUNT ( * ) WHEN + - COUNT ( * ) THEN - 81 ELSE NULL END, 8 ), - - 56 + + 99 - 82 * + 33 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7178
SELECT - 67 - CAST( 68 AS SIGNED ) col0, + 89 * - 10 * - 68 AS col2
----
-135
60520

skipif mysql # not compatible
query II rowsort label-7178
SELECT - 67 - CAST ( 68 AS INTEGER ) col0, + 89 * - 10 * - 68 AS col2
----
-135
60520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7179
SELECT - COALESCE ( MIN( DISTINCT - 59 ), + 74 + - SUM( DISTINCT + CAST( + + ( - 18 ) AS SIGNED ) ) - + + 69 + 93 + + CAST( ( + + 59 ) AS DECIMAL ) / - CASE - + CAST( NULL AS SIGNED ) WHEN + 7 + 59 + NULLIF ( + + MAX( ALL + 31 ), - + 17 ) / + 86 THEN - - 54 - 93 END ) + - CAST( NULL AS DECIMAL ) * - COUNT( * ) * - + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT - COALESCE ( MIN ( DISTINCT - 59 ), + 74 + - SUM ( DISTINCT + CAST ( + + ( - 18 ) AS INTEGER ) ) - + + 69 + 93 + + CAST ( ( + + 59 ) AS REAL ) / - CASE - + CAST ( NULL AS INTEGER ) WHEN + 7 + 59 + NULLIF ( + + MAX ( ALL + 31 ), - + 17 ) / + 86 THEN - - 54 - 93 END ) + - CAST ( NULL AS REAL ) * - COUNT ( * ) * - + 32
----
NULL

query I rowsort
SELECT ALL CASE 20 WHEN - 12 * 54 THEN - - 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT ALL - 81 * + ( - - COUNT( * ) ) * 25 * + 29 AS col1
----
-58725

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL - 81 * + ( - - COUNT ( * ) ) * 25 * + 29 AS col1
----
-58725

query I rowsort
SELECT - 31 + + - 46 col1
----
-77

query I rowsort
SELECT - 37 * - 2 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT - COALESCE ( 73, + 79, + - 4 * NULLIF ( + 20, + + 76 * - 20 * + COUNT( * ) + 93 / 89 * - 92 + 59 * - 25 ) + + + 91 + - 7 * - - 68 ) + + 24 + 71 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-7184
SELECT - COALESCE ( 73, + 79, + - 4 * NULLIF ( + 20, + + 76 * - 20 * + COUNT ( * ) + 93 / 89 * - 92 + 59 * - 25 ) + + + 91 + - 7 * - - 68 ) + + 24 + 71 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7185
SELECT ALL CASE - COUNT( * ) WHEN - COUNT( * ) * - + 98 + - 48 + + ( + 62 ) * - + 57 * + CAST( NULL AS SIGNED ) THEN - 15 * - + ( + ( + - 22 ) ) WHEN - 26 THEN + + CASE + MIN( - 17 ) WHEN - 62 THEN NULL WHEN - NULLIF ( + 8, - 58 ) THEN - 34 WHEN - CAST( NULL AS SIGNED ) * + - 45 THEN - CASE - + CAST( NULL AS SIGNED ) WHEN + 87 * AVG ( ALL + 94 ) THEN 57 + COUNT( * ) * + 44 END END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL CASE - COUNT ( * ) WHEN - COUNT ( * ) * - + 98 + - 48 + + ( + 62 ) * - + 57 * + CAST ( NULL AS INTEGER ) THEN - 15 * - + ( + ( + - 22 ) ) WHEN - 26 THEN + + CASE + MIN ( - 17 ) WHEN - 62 THEN NULL WHEN - NULLIF ( + 8, - 58 ) THEN - 34 WHEN - CAST ( NULL AS INTEGER ) * + - 45 THEN - CASE - + CAST ( NULL AS INTEGER ) WHEN + 87 * AVG ( ALL + 94 ) THEN 57 + COUNT ( * ) * + 44 END END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT + 89 - 56 * SUM( DISTINCT 43 ) + + + 63 + 97
----
-2159

skipif mysql # not compatible
query I rowsort label-7186
SELECT + 89 - 56 * SUM ( DISTINCT 43 ) + + + 63 + 97
----
-2159

onlyif mysql # aggregate syntax: 
query II rowsort label-7187
SELECT - COUNT( * ) * 40, - 52 * 2 AS col1
----
-40
-104

skipif mysql # not compatible
query II rowsort label-7187
SELECT - COUNT ( * ) * 40, - 52 * 2 AS col1
----
-40
-104

query I rowsort
SELECT DISTINCT - 64 * - 22 * + 23
----
32384

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL MAX( ALL 11 )
----
11

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL MAX ( ALL 11 )
----
11

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

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

query I rowsort
SELECT - 53 + - + 75 + + 77
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7192
SELECT ALL NULLIF ( - + 94, + + COALESCE ( - COUNT( * ), 36 - + 36 / - - 98 ) ), - CAST( NULLIF ( 81, + 13 ) AS SIGNED ) AS col1
----
-94
-81

skipif mysql # not compatible
query II rowsort label-7192
SELECT ALL NULLIF ( - + 94, + + COALESCE ( - COUNT ( * ), 36 - + 36 / - - 98 ) ), - CAST ( NULLIF ( 81, + 13 ) AS INTEGER ) AS col1
----
-94
-81

query I rowsort
SELECT ALL - ( + - 16 ) + + + 93 AS col2
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-7194
SELECT ALL + + 0 * COUNT( * ) + - COUNT( * ) AS col0, 45
----
-1
45

skipif mysql # not compatible
query II rowsort label-7194
SELECT ALL + + 0 * COUNT ( * ) + - COUNT ( * ) AS col0, 45
----
-1
45

query I rowsort
SELECT - - 77 + + 56 + - + 96 AS col0
----
37

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

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

query I rowsort
SELECT DISTINCT + 66 * + ( - - 85 )
----
5610

query I rowsort
SELECT ALL + NULLIF ( - 28, 53 ) AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7199
SELECT + 28 * + - CAST( NULL AS SIGNED ) + 64 * + - MIN( ALL 52 ) * AVG ( + 85 ) + 8 / - - MIN( ALL 42 ) * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT + 28 * + - CAST ( NULL AS INTEGER ) + 64 * + - MIN ( ALL 52 ) * AVG ( + 85 ) + 8 / - - MIN ( ALL 42 ) * + 71
----
NULL

query I rowsort
SELECT + - 97 * 79 * - 46 AS col1
----
352498

query I rowsort
SELECT ALL + 44 * - 36 - + - 46 col2
----
-1538

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT + + 7 * 51 * + 67 * - 77 + - 20 - - COUNT( * ) + ( - COUNT( * ) )
----
-1841783

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT + + 7 * 51 * + 67 * - 77 + - 20 - - COUNT ( * ) + ( - COUNT ( * ) )
----
-1841783

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

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

query I rowsort
SELECT + 24 + + - 0
----
24

query I rowsort
SELECT - - ( - 34 ) * + + 41 AS col2
----
-1394

query II rowsort
SELECT + + 70 * 54 AS col0, 59 col0
----
3780
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT - MAX( ALL - 18 ) col2
----
18

skipif mysql # not compatible
query I rowsort label-7207
SELECT - MAX ( ALL - 18 ) col2
----
18

query I rowsort
SELECT + 15 * 11 AS col2
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7209
SELECT ALL + 29 AS col0, - COUNT( 94 ) DIV + COUNT( * )
----
29
-1

skipif mysql # not compatible
query II rowsort label-7209
SELECT ALL + 29 AS col0, - COUNT ( 94 ) / + COUNT ( * )
----
29
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT MIN( DISTINCT + - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-7211
SELECT MIN ( DISTINCT + - 62 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7212
SELECT + CASE + COUNT( - + ( ( + - 62 ) ) ) WHEN + 66 * + CAST( 91 AS SIGNED ) * - 74 THEN + COUNT( * ) ELSE COUNT( * ) + 64 END * - - 1 + + + 60 + - 3
----
122

skipif mysql # not compatible
query I rowsort label-7212
SELECT + CASE + COUNT ( - + ( ( + - 62 ) ) ) WHEN + 66 * + CAST ( 91 AS INTEGER ) * - 74 THEN + COUNT ( * ) ELSE COUNT ( * ) + 64 END * - - 1 + + + 60 + - 3
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT ALL MAX( + 3 ) col1
----
3

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL MAX ( + 3 ) col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT SUM( ALL + - 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7214
SELECT SUM ( ALL + - 81 ) AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-7215
SELECT + NULLIF ( + 68, - 67 ) + + + 37 DIV - - 68
----
68

skipif mysql # not compatible
query I rowsort label-7215
SELECT + NULLIF ( + 68, - 67 ) + + + 37 / - - 68
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7216
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 13 + - + 45
----
-58

query I rowsort
SELECT + 25 * 62
----
1550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7219
SELECT + ( ( - COALESCE ( - MIN( ALL + 5 ), 66 DIV - 84 * - CAST( 84 AS SIGNED ) ) ) ) * + CASE + - 52 WHEN 39 * + - 75 * 38 * + ( + - 86 ) DIV 47 * + 32 THEN NULL WHEN - 90 - - 58 DIV + CAST( NULL AS DECIMAL ) * + 82 THEN + 55 ELSE 53 * + COUNT( * ) * - - 98 + 52 END - ( - 8 ) AS col0
----
26238

skipif mysql # not compatible
query I rowsort label-7219
SELECT + ( ( - COALESCE ( - MIN ( ALL + 5 ), 66 / - 84 * - CAST ( 84 AS INTEGER ) ) ) ) * + CASE + - 52 WHEN 39 * + - 75 * 38 * + ( + - 86 ) / 47 * + 32 THEN NULL WHEN - 90 - - 58 / + CAST ( NULL AS REAL ) * + 82 THEN + 55 ELSE 53 * + COUNT ( * ) * - - 98 + 52 END - ( - 8 ) AS col0
----
26238

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT - 89 + - 71 + + + MAX( DISTINCT 63 ) * - SUM( DISTINCT + 12 ) + + 38 AS col1
----
-878

skipif mysql # not compatible
query I rowsort label-7220
SELECT - 89 + - 71 + + + MAX ( DISTINCT 63 ) * - SUM ( DISTINCT + 12 ) + + 38 AS col1
----
-878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT - CAST( + NULLIF ( - + 38, + + 28 ) AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-7221
SELECT - CAST ( + NULLIF ( - + 38, + + 28 ) AS INTEGER )
----
38

onlyif mysql # aggregate syntax: 
query III rowsort label-7222
SELECT ALL COUNT( * ), + 15 * - COUNT( * ) * - 99 AS col2, + - MAX( DISTINCT - 30 ) * - 50 + 52 AS col0
----
1
1485
-1448

skipif mysql # not compatible
query III rowsort label-7222
SELECT ALL COUNT ( * ), + 15 * - COUNT ( * ) * - 99 AS col2, + - MAX ( DISTINCT - 30 ) * - 50 + 52 AS col0
----
1
1485
-1448

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7223
SELECT ALL + COUNT( * ) + + - COUNT( * ) DIV + 90 + + 51, 9 AS col2
----
52
9

skipif mysql # not compatible
query II rowsort label-7223
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) / + 90 + + 51, 9 AS col2
----
52
9

query I rowsort
SELECT ALL - 51 + + 26
----
-25

query I rowsort
SELECT + - 81 * - - 64
----
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT - MIN( + + 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-7226
SELECT - MIN ( + + 90 )
----
-90

query I rowsort
SELECT ALL + 37 * + - 44 AS col2
----
-1628

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT - NULLIF ( 48, 46 ) + COUNT( * ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-7228
SELECT - NULLIF ( 48, 46 ) + COUNT ( * ) col2
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-7229
SELECT ALL + - 72 - + 9 DIV + 55 AS col0, + 24 * - 37 + + - 92
----
-72
-980

skipif mysql # not compatible
query II rowsort label-7229
SELECT ALL + - 72 - + 9 / + 55 AS col0, + 24 * - 37 + + - 92
----
-72
-980

query I rowsort
SELECT DISTINCT + - 55 * + + ( + 60 ) + - 93 AS col2
----
-3393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7231
SELECT DISTINCT + 54 DIV 9 - + + COALESCE ( 79, - 33 * + NULLIF ( - 17, + SUM( - 47 ) + - 44 * + 3 ) ) + 84 + 76 * 32, - ( + CAST( - 30 AS SIGNED ) ) * + CAST( NULL AS SIGNED ) * + 63 * 22 DIV ( - CAST( 26 AS SIGNED ) ) AS col2
----
2443
NULL

skipif mysql # not compatible
query II rowsort label-7231
SELECT DISTINCT + 54 / 9 - + + COALESCE ( 79, - 33 * + NULLIF ( - 17, + SUM ( - 47 ) + - 44 * + 3 ) ) + 84 + 76 * 32, - ( + CAST ( - 30 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) * + 63 * 22 / ( - CAST ( 26 AS INTEGER ) ) AS col2
----
2443
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT DISTINCT + - ( - - CASE + + 49 WHEN + 73 THEN NULL WHEN + - COUNT( * ) THEN + - ( - 57 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT + - ( - - CASE + + 49 WHEN + 73 THEN NULL WHEN + - COUNT ( * ) THEN + - ( - 57 ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT DISTINCT - 54 DIV - + 19
----
2

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT - 54 / - + 19
----
2

query II rowsort
SELECT DISTINCT + - 87, + 85 * + 6 AS col1
----
-87
510

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT DISTINCT + - MAX( - 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT + - MAX ( - 14 ) AS col2
----
14

query I rowsort
SELECT - + 21 * 30 + - 77 - - 61 AS col0
----
-646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7237
SELECT DISTINCT + 18 DIV + 39 - + + 54 * COUNT( DISTINCT + 82 )
----
-54

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT + 18 / + 39 - + + 54 * COUNT ( DISTINCT + 82 )
----
-54

query I rowsort
SELECT DISTINCT + 94 * + 2 AS col1
----
188

query II rowsort
SELECT + 55 AS col0, - 24 * - 56 AS col2
----
55
1344

query I rowsort
SELECT ALL + + 29 * COALESCE ( - + 3, - + 5, + 25 - + 69 ) + - 49
----
-136

query II rowsort
SELECT 26 * + 5 * + NULLIF ( + 24, 35 + + + ( + 48 ) * + - 12 ), 86 AS col2
----
3120
86

query I rowsort
SELECT ALL 41 * + COALESCE ( + - 92, - - 29 + - - 98 + 12 ) * 29 + + 45
----
-109343

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT 56 DIV + 92 + 77 col1
----
77

skipif mysql # not compatible
query I rowsort label-7243
SELECT 56 / + 92 + 77 col1
----
77

query I rowsort
SELECT DISTINCT + - 87 * - 90
----
7830

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT 64 - COUNT( * ) * 24 + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-7245
SELECT 64 - COUNT ( * ) * 24 + + COUNT ( * )
----
41

query II rowsort
SELECT ALL + 53 * 14, 22 * - - 32 * ( 47 ) * 6 AS col0
----
742
198528

onlyif mysql # DIV for integer division: 
query I rowsort label-7247
SELECT ALL 79 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL 79 / - 84
----
0

query I rowsort
SELECT ALL 38 + + 15
----
53

query I rowsort
SELECT ALL - NULLIF ( - 52, 66 ) AS col1
----
52

query I rowsort
SELECT 64 + + - 69 col2
----
-5

query I rowsort
SELECT ALL 2 + 87 * + 56
----
4874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT NULLIF ( 80, - - 43 + ( - + 0 ) ) - CAST( + - 19 AS SIGNED ) * + 9
----
251

skipif mysql # not compatible
query I rowsort label-7252
SELECT NULLIF ( 80, - - 43 + ( - + 0 ) ) - CAST ( + - 19 AS INTEGER ) * + 9
----
251

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT DISTINCT 78 + + CASE + - 86 WHEN + 40 + + 94 * + 26 + COUNT( * ) / + 14 THEN - 66 * + 36 * - + 66 * + 64 WHEN COUNT( * ) * SUM( DISTINCT + + 0 ) THEN NULL END / - 65 + 79 * - SUM( DISTINCT + - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT 78 + + CASE + - 86 WHEN + 40 + + 94 * + 26 + COUNT ( * ) / + 14 THEN - 66 * + 36 * - + 66 * + 64 WHEN COUNT ( * ) * SUM ( DISTINCT + + 0 ) THEN NULL END / - 65 + 79 * - SUM ( DISTINCT + - 64 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7254
SELECT 83 + CAST( + 26 AS SIGNED ) * ( + 66 ) AS col0
----
1799

skipif mysql # not compatible
query I rowsort label-7254
SELECT 83 + CAST ( + 26 AS INTEGER ) * ( + 66 ) AS col0
----
1799

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT ALL 96 + - MIN( ALL - + 17 ) + - - 76 + - + 26 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL 96 + - MIN ( ALL - + 17 ) + - - 76 + - + 26 AS col1
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ALL CASE 72 WHEN - 91 / + + COUNT( * ) + + 95 + + 83 THEN + - 71 ELSE NULL END + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL CASE 72 WHEN - 91 / + + COUNT ( * ) + + 95 + + 83 THEN + - 71 ELSE NULL END + + 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT ALL 83 DIV - 73 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL 83 / - 73 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT DISTINCT COUNT( * ) + + 46 * 31 AS col1
----
1427

skipif mysql # not compatible
query I rowsort label-7258
SELECT DISTINCT COUNT ( * ) + + 46 * 31 AS col1
----
1427

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

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT + 92 + COUNT ( * ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7260
SELECT CAST( NULL AS SIGNED ) + + 29 AS col2, 59 + - + 10 * - 83 col2
----
NULL
889

skipif mysql # not compatible
query II rowsort label-7260
SELECT CAST ( NULL AS INTEGER ) + + 29 AS col2, 59 + - + 10 * - 83 col2
----
NULL
889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7261
SELECT ALL NULLIF ( - + MIN( DISTINCT - 26 ), ( - COUNT( * ) ) + - + NULLIF ( ( + - 50 ), - CAST( NULL AS SIGNED ) ) / - NULLIF ( + + 38, + COUNT( * ) ) ) + - 21 + 52 / 3 + + CAST( NULL AS SIGNED ) + - NULLIF ( + NULLIF ( - - 90, - 18 * + + 30 + + 1 / ( - + CAST( NULL AS DECIMAL ) ) ), 36 / - - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL NULLIF ( - + MIN ( DISTINCT - 26 ), ( - COUNT ( * ) ) + - + NULLIF ( ( + - 50 ), - CAST ( NULL AS INTEGER ) ) / - NULLIF ( + + 38, + COUNT ( * ) ) ) + - 21 + 52 / 3 + + CAST ( NULL AS INTEGER ) + - NULLIF ( + NULLIF ( - - 90, - 18 * + + 30 + + 1 / ( - + CAST ( NULL AS REAL ) ) ), 36 / - - 52 )
----
NULL

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

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

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

query I rowsort
SELECT 92 * - 30
----
-2760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7265
SELECT ALL - 5 DIV + + COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL - 5 / + + COUNT ( * ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT ALL - MIN( + 25 ) - 17 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL - MIN ( + 25 ) - 17 AS col0
----
-42

query I rowsort
SELECT ALL + - 69 * 67 AS col2
----
-4623

query I rowsort
SELECT ALL - 56 * + 19 AS col1
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT 2 + - + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7269
SELECT 2 + - + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7270
SELECT ALL + 64 * + + 39 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + 64 * + + 39 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT 92 - + - CASE 64 WHEN - CASE - + 18 WHEN - SUM( + - 21 ) - + - NULLIF ( 51, - 77 ) THEN - - 81 / + 57 + + 34 ELSE NULL END + - - 76 + + 97 * COUNT( * ) THEN + 82 - - COUNT( * ) END + - - 41 + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT 92 - + - CASE 64 WHEN - CASE - + 18 WHEN - SUM ( + - 21 ) - + - NULLIF ( 51, - 77 ) THEN - - 81 / + 57 + + 34 ELSE NULL END + - - 76 + + 97 * COUNT ( * ) THEN + 82 - - COUNT ( * ) END + - - 41 + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT + CASE + NULLIF ( - MAX( - 21 ), - - 61 + + 26 * - + ( 62 ) / - 54 + COUNT( * ) + + + 55 / 16 ) WHEN - - 75 * - 11 * 83 THEN - 4 * - 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT + CASE + NULLIF ( - MAX ( - 21 ), - - 61 + + 26 * - + ( 62 ) / - 54 + COUNT ( * ) + + + 55 / 16 ) WHEN - - 75 * - 11 * 83 THEN - 4 * - 95 END AS col0
----
NULL

query I rowsort
SELECT 40 * - - 45 AS col0
----
1800

onlyif mysql # aggregate syntax: 
query II rowsort label-7274
SELECT ALL - ( COUNT( * ) ) * - 80 * 33, + 58 AS col1
----
2640
58

skipif mysql # not compatible
query II rowsort label-7274
SELECT ALL - ( COUNT ( * ) ) * - 80 * 33, + 58 AS col1
----
2640
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT ALL - COALESCE ( - 53, + COUNT( * ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7275
SELECT ALL - COALESCE ( - 53, + COUNT ( * ) ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT DISTINCT + - ( - COUNT( * ) ) + - 89 + + 31 * - 78 AS col2
----
-2506

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + - ( - COUNT ( * ) ) + - 89 + + 31 * - 78 AS col2
----
-2506

query I rowsort
SELECT ALL + 22 + + 80
----
102

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

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL + 49 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 6 AS col1, + 76 * - ( - 40 ) AS col2
----
6
3040

query I rowsort
SELECT + 96 * - - 15 + 28 AS col2
----
1468

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT ALL - NULLIF ( + 20, + - NULLIF ( - 29, + 21 * - + NULLIF ( 92, + + COUNT( * ) ) ) )
----
-20

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL - NULLIF ( + 20, + - NULLIF ( - 29, + 21 * - + NULLIF ( 92, + + COUNT ( * ) ) ) )
----
-20

query I rowsort
SELECT ALL - 22 + - 50 AS col1
----
-72

query I rowsort
SELECT 73 * 5
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT 9 + 25 - + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7284
SELECT 9 + 25 - + COUNT ( * ) AS col2
----
33

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

query I rowsort
SELECT DISTINCT 55 * - 14
----
-770

onlyif mysql # aggregate syntax: 
query II rowsort label-7287
SELECT 35, MIN( + 99 ) AS col1
----
35
99

skipif mysql # not compatible
query II rowsort label-7287
SELECT 35, MIN ( + 99 ) AS col1
----
35
99

query I rowsort
SELECT ALL - 23 + - 49 * 58 - 24 col0
----
-2889

query I rowsort
SELECT 99 * + 9 AS col1
----
891

query I rowsort
SELECT DISTINCT + 59 * - 65 AS col0
----
-3835

query I rowsort
SELECT DISTINCT - 5 + + 87
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7292
SELECT ALL + 51 * + - SUM( DISTINCT 98 ), - 61 AS col1
----
-4998
-61

skipif mysql # not compatible
query II rowsort label-7292
SELECT ALL + 51 * + - SUM ( DISTINCT 98 ), - 61 AS col1
----
-4998
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7293
SELECT DISTINCT 24 DIV + 35 DIV + COUNT( DISTINCT + 43 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT 24 / + 35 / + COUNT ( DISTINCT + 43 ) AS col2
----
0

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

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

query I rowsort
SELECT ALL - 87 - 37 AS col2
----
-124

query I rowsort
SELECT 89 * 90 AS col1
----
8010

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT - MAX( - + NULLIF ( + 19, + 83 * - 76 * + - 4 * ( - + 1 ) * - 44 * + - 11 + + 67 ) )
----
19

skipif mysql # not compatible
query I rowsort label-7297
SELECT - MAX ( - + NULLIF ( + 19, + 83 * - 76 * + - 4 * ( - + 1 ) * - 44 * + - 11 + + 67 ) )
----
19

query II rowsort
SELECT ALL 87 AS col1, 50 * 87 * ( + 75 ) AS col2
----
87
326250

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT DISTINCT MIN( DISTINCT - 80 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT MIN ( DISTINCT - 80 ) AS col2
----
-80

query I rowsort
SELECT + 54 * 28 AS col0
----
1512

query I rowsort
SELECT DISTINCT + 76 * + 43 AS col1
----
3268

query I rowsort
SELECT ALL - 60 * 73
----
-4380

query I rowsort
SELECT DISTINCT + 27 * + - 42
----
-1134

onlyif mysql # DIV for integer division: 
query II rowsort label-7304
SELECT ALL 5, ( 92 ) * 27 DIV 22 AS col0
----
5
112

skipif mysql # not compatible
query II rowsort label-7304
SELECT ALL 5, ( 92 ) * 27 / 22 AS col0
----
5
112

onlyif mysql # DIV for integer division: 
query I rowsort label-7305
SELECT - 17 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-7305
SELECT - 17 / - 74
----
0

query I rowsort
SELECT + + 88 * 11
----
968

query I rowsort
SELECT - + 83 + + 93 AS col2
----
10

query I rowsort
SELECT - - 8 + - 99 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT ALL ( + - SUM( DISTINCT 1 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL ( + - SUM ( DISTINCT 1 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7310
SELECT ALL + 44 DIV - NULLIF ( + + 17, - COALESCE ( - 48, - COUNT( * ) ) + + 66 + + 9 )
----
-2

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL + 44 / - NULLIF ( + + 17, - COALESCE ( - 48, - COUNT ( * ) ) + + 66 + + 9 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7311
SELECT + + 38 DIV + - NULLIF ( 77, + - 23 * + 92 * - 94 + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7311
SELECT + + 38 / + - NULLIF ( 77, + - 23 * + 92 * - 94 + - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL + - 2 * - + 25 + + COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL + - 2 * - + 25 + + COUNT ( * ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT DISTINCT - + ( 67 ) * + - 47 + + 96 + - COUNT( * ) + + 53
----
3297

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT - + ( 67 ) * + - 47 + + 96 + - COUNT ( * ) + + 53
----
3297

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT DISTINCT - 11 * 28 + + ( + MIN( - 33 ) ) + - ( 42 ) + + 41
----
-342

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT - 11 * 28 + + ( + MIN ( - 33 ) ) + - ( 42 ) + + 41
----
-342

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7315
SELECT ALL + SUM( ALL + 76 ) DIV 68 + + 0
----
1

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL + SUM ( ALL + 76 ) / 68 + + 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + 59 - + + COUNT( * ) + - 78
----
-20

skipif mysql # not compatible
query I rowsort label-7316
SELECT + 59 - + + COUNT ( * ) + - 78
----
-20

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

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

query II rowsort
SELECT + 49, + 26 AS col2
----
49
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7319
SELECT ALL + COUNT( * ), 28 AS col2
----
1
28

skipif mysql # not compatible
query II rowsort label-7319
SELECT ALL + COUNT ( * ), 28 AS col2
----
1
28

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

skipif mysql # not compatible
query I rowsort label-7320
SELECT + 85 * + - COUNT ( ALL + 72 ) AS col0
----
-85

query I rowsort
SELECT - 90 * + + 84 AS col2
----
-7560

query I rowsort
SELECT NULLIF ( - - 4, + + 91 ) AS col2
----
4

query II rowsort
SELECT ALL + 28 col1, 9 + - 4
----
28
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7324
SELECT ALL + CASE 53 WHEN - 70 * + 63 * - 2 + 17 + 12 - COUNT( * ) THEN + - CAST( NULL AS SIGNED ) / - 93 + 33 END, + COUNT( * ) + + COALESCE ( + CAST( NULL AS SIGNED ), 14 ) - + COUNT( DISTINCT - 28 ) + 24 * + 64 AS col1
----
NULL
1550

skipif mysql # not compatible
query II rowsort label-7324
SELECT ALL + CASE 53 WHEN - 70 * + 63 * - 2 + 17 + 12 - COUNT ( * ) THEN + - CAST ( NULL AS INTEGER ) / - 93 + 33 END, + COUNT ( * ) + + COALESCE ( + CAST ( NULL AS INTEGER ), 14 ) - + COUNT ( DISTINCT - 28 ) + 24 * + 64 AS col1
----
NULL
1550

query I rowsort
SELECT - 54 * - + 15 AS col2
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL 22 * COUNT( * ) * 40 + - + COUNT( * )
----
879

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL 22 * COUNT ( * ) * 40 + - + COUNT ( * )
----
879

query II rowsort
SELECT + 75, + 57 + - 72 AS col2
----
75
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT 56 * - 46 + + - 33 * - MIN( + COALESCE ( - 47, 38 ) ) AS col2
----
-4127

skipif mysql # not compatible
query I rowsort label-7328
SELECT 56 * - 46 + + - 33 * - MIN ( + COALESCE ( - 47, 38 ) ) AS col2
----
-4127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7329
SELECT ALL - CAST( + 2 AS SIGNED ) - + CAST( - 98 AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - CAST ( + 2 AS INTEGER ) - + CAST ( - 98 AS INTEGER ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7330
SELECT DISTINCT - 22 * 94, CASE + CAST( + 31 AS SIGNED ) WHEN - 25 + - - 58 + COUNT( * ) * CAST( + 92 AS SIGNED ) * - 25 THEN + 21 ELSE CAST( + MIN( 2 ) AS SIGNED ) END DIV - 18 + - SUM( + 96 ) AS col0
----
-2068
-96

skipif mysql # not compatible
query II rowsort label-7330
SELECT DISTINCT - 22 * 94, CASE + CAST ( + 31 AS INTEGER ) WHEN - 25 + - - 58 + COUNT ( * ) * CAST ( + 92 AS INTEGER ) * - 25 THEN + 21 ELSE CAST ( + MIN ( 2 ) AS INTEGER ) END / - 18 + - SUM ( + 96 ) AS col0
----
-2068
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT ALL + 16 AS col0, - 44 * - COUNT( * ) - 8 * 81 * + 38
----
16
-24580

skipif mysql # not compatible
query II rowsort label-7331
SELECT ALL + 16 AS col0, - 44 * - COUNT ( * ) - 8 * 81 * + 38
----
16
-24580

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT DISTINCT + - 60 * - COUNT( * ) + - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT + - 60 * - COUNT ( * ) + - COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL + - SUM( DISTINCT 20 ) * 92 AS col2
----
-1840

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + - SUM ( DISTINCT 20 ) * 92 AS col2
----
-1840

query I rowsort
SELECT DISTINCT - - 35 * - 95 AS col1
----
-3325

query I rowsort
SELECT - 18 * 31 * - 76 AS col2
----
42408

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT - CASE 75 WHEN + MAX( DISTINCT + 77 ) THEN NULL WHEN + 73 THEN - COUNT( * ) + 85 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT - CASE 75 WHEN + MAX ( DISTINCT + 77 ) THEN NULL WHEN + 73 THEN - COUNT ( * ) + 85 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT - NULLIF ( - 8, NULLIF ( + MAX( - - 16 ), 90 + + 71 ) - - 31 )
----
8

skipif mysql # not compatible
query I rowsort label-7339
SELECT - NULLIF ( - 8, NULLIF ( + MAX ( - - 16 ), 90 + + 71 ) - - 31 )
----
8

query I rowsort
SELECT - + 42 * 55 * + - 60 AS col0
----
138600

query I rowsort
SELECT + ( 34 ) * + 36 AS col2
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT ALL COUNT( * ) + 97 * + 54
----
5239

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL COUNT ( * ) + 97 * + 54
----
5239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7343
SELECT + 77 - + CASE - 93 WHEN + + CASE + 78 WHEN + ( - SUM( + 11 ) ) * - CAST( 30 AS SIGNED ) - - ( + 63 ) * + - 39 THEN NULL WHEN - COALESCE ( 37, + 78 + + - 57, - 66 ) THEN - - 8 ELSE 92 END * - 84 THEN + + 96 + + 93 END * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7343
SELECT + 77 - + CASE - 93 WHEN + + CASE + 78 WHEN + ( - SUM ( + 11 ) ) * - CAST ( 30 AS INTEGER ) - - ( + 63 ) * + - 39 THEN NULL WHEN - COALESCE ( 37, + 78 + + - 57, - 66 ) THEN - - 8 ELSE 92 END * - 84 THEN + + 96 + + 93 END * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT DISTINCT - MIN( - 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT - MIN ( - 49 ) AS col2
----
49

query II rowsort
SELECT + 90 + - 76 AS col2, 15
----
14
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT DISTINCT - 65 * - MIN( ALL + 99 )
----
6435

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT - 65 * - MIN ( ALL + 99 )
----
6435

query II rowsort
SELECT DISTINCT + 54 + + 76 + + 75 + - - 24 AS col2, + 40
----
229
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT - + COUNT( + 55 ) + + 40 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-7348
SELECT - + COUNT ( + 55 ) + + 40 AS col2
----
39

query I rowsort
SELECT + - 16 + - ( + 39 ) + 22 + 76
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7350
SELECT 10 / + CAST( NULL AS SIGNED ) + - COUNT( * ) + 24 + + 85 * 8 - - 2 / + - 25 + - COALESCE ( 0, + - CAST( NULL AS SIGNED ) ) + + 65 * + 75 * + - 22 - 68 * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7350
SELECT 10 / + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 24 + + 85 * 8 - - 2 / + - 25 + - COALESCE ( 0, + - CAST ( NULL AS INTEGER ) ) + + 65 * + 75 * + - 22 - 68 * 86
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7351
SELECT + 14 - + 53 DIV - CASE - - 92 WHEN - 27 THEN NULL WHEN + NULLIF ( 49, - 73 ) THEN NULL ELSE 85 END + - 29 AS col0, - COUNT( * )
----
-15
-1

skipif mysql # not compatible
query II rowsort label-7351
SELECT + 14 - + 53 / - CASE - - 92 WHEN - 27 THEN NULL WHEN + NULLIF ( 49, - 73 ) THEN NULL ELSE 85 END + - 29 AS col0, - COUNT ( * )
----
-15
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT ALL 6 DIV + 31 + - + 53 + - 45 * - - 97 * 82 + - COALESCE ( + 25, + 51 DIV - 37 )
----
-358008

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL 6 / + 31 + - + 53 + - 45 * - - 97 * 82 + - COALESCE ( + 25, + 51 / - 37 )
----
-358008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7353
SELECT ( - - 7 ) DIV - COUNT( * ) + 12 DIV - 78 + - CAST( - 47 AS SIGNED ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7353
SELECT ( - - 7 ) / - COUNT ( * ) + 12 / - 78 + - CAST ( - 47 AS INTEGER ) AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7354
SELECT - 91 DIV 75 * + + 29 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-7354
SELECT - 91 / 75 * + + 29 AS col0
----
-29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7356
SELECT CAST( 47 AS SIGNED ) DIV + - 71 + + 11 + + MIN( DISTINCT - - 59 ) * + + 71 * + COUNT( - + 99 ) + COUNT( * ) DIV 13 + COALESCE ( - SUM( - 83 ), - 6, MAX( - 97 ), - ( CAST( 51 AS SIGNED ) ) * + COUNT( * ) * - 69 + - 58 ) DIV + 14 AS col2
----
4205

skipif mysql # not compatible
query I rowsort label-7356
SELECT CAST ( 47 AS INTEGER ) / + - 71 + + 11 + + MIN ( DISTINCT - - 59 ) * + + 71 * + COUNT ( - + 99 ) + COUNT ( * ) / 13 + COALESCE ( - SUM ( - 83 ), - 6, MAX ( - 97 ), - ( CAST ( 51 AS INTEGER ) ) * + COUNT ( * ) * - 69 + - 58 ) / + 14 AS col2
----
4205

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ALL + MAX( ALL + 40 ) * + + 31
----
1240

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL + MAX ( ALL + 40 ) * + + 31
----
1240

query II rowsort
SELECT + 55 + - - 45 AS col2, - 34
----
100
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7359
SELECT ALL COALESCE ( MIN( ALL - + 90 ), 38, + 97 ) DIV + 3 - 72 - 69 * - - 16 * + COUNT( * )
----
-1206

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL COALESCE ( MIN ( ALL - + 90 ), 38, + 97 ) / + 3 - 72 - 69 * - - 16 * + COUNT ( * )
----
-1206

query I rowsort
SELECT ALL COALESCE ( - - 47, + 10 ) * - 28
----
-1316

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT DISTINCT + MIN( - 19 ) col0, + 72
----
-19
72

skipif mysql # not compatible
query II rowsort label-7361
SELECT DISTINCT + MIN ( - 19 ) col0, + 72
----
-19
72

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

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

query I rowsort
SELECT DISTINCT + ( - 70 ) col0
----
-70

query II rowsort
SELECT ALL + ( 7 ), 58 AS col2
----
7
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7365
SELECT MIN( DISTINCT - + 34 ) AS col1, + 52 AS col0
----
-34
52

skipif mysql # not compatible
query II rowsort label-7365
SELECT MIN ( DISTINCT - + 34 ) AS col1, + 52 AS col0
----
-34
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7366
SELECT DISTINCT - ( + + 44 ) AS col2, + ( + COUNT( ALL - - CASE + - 10 WHEN - - 2 THEN 1 END ) ) AS col1
----
-44
0

skipif mysql # not compatible
query II rowsort label-7366
SELECT DISTINCT - ( + + 44 ) AS col2, + ( + COUNT ( ALL - - CASE + - 10 WHEN - - 2 THEN 1 END ) ) AS col1
----
-44
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7367
SELECT - - 32 * + + 55 AS col2, + MIN( DISTINCT + - ( + + 80 ) )
----
1760
-80

skipif mysql # not compatible
query II rowsort label-7367
SELECT - - 32 * + + 55 AS col2, + MIN ( DISTINCT + - ( + + 80 ) )
----
1760
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ALL COALESCE ( + - 23, + + 12 * - ( 32 ), - COUNT( * ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL COALESCE ( + - 23, + + 12 * - ( 32 ), - COUNT ( * ) ) AS col1
----
-23

query I rowsort
SELECT ALL + ( + 54 ) * + COALESCE ( - + 72, ( 64 ) ) + - NULLIF ( 28, + - 13 ) col1
----
-3916

query I rowsort
SELECT + 16 - 34 * + 69 AS col2
----
-2330

query I rowsort
SELECT DISTINCT - 35 + 42 + + - 44 * + 27 AS col0
----
-1181

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT - 39 DIV + + ( + 27 ) + + - 41 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7372
SELECT - 39 / + + ( + 27 ) + + - 41 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT - 8 + + NULLIF ( + + 47, 8 * - 25 * - - COUNT( * ) ) * + 92 * + 86 col1
----
371856

skipif mysql # not compatible
query I rowsort label-7373
SELECT - 8 + + NULLIF ( + + 47, 8 * - 25 * - - COUNT ( * ) ) * + 92 * + 86 col1
----
371856

query I rowsort
SELECT ALL + 8 + - - NULLIF ( + 86, - 22 ) + + + 59 * + 85
----
5109

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

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT + - COUNT ( * ) * - - 96 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT ALL - MIN( + - 49 ) + - + 80 - + 35 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL - MIN ( + - 49 ) + - + 80 - + 35 AS col2
----
-66

query I rowsort
SELECT DISTINCT - 75 + 13
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7378
SELECT ALL + 16 * + 81 * + 99 AS col2, - 65 + + COUNT( * ) * 79 AS col1
----
128304
14

skipif mysql # not compatible
query II rowsort label-7378
SELECT ALL + 16 * + 81 * + 99 AS col2, - 65 + + COUNT ( * ) * 79 AS col1
----
128304
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7379
SELECT + 75 + - + 95, + 42 + CAST( NULL AS SIGNED ) col0
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-7379
SELECT + 75 + - + 95, + 42 + CAST ( NULL AS INTEGER ) col0
----
-20
NULL

query I rowsort
SELECT ALL - 25 + 79 AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7381
SELECT + COUNT( * ) * + - 50 AS col2, 70
----
-50
70

skipif mysql # not compatible
query II rowsort label-7381
SELECT + COUNT ( * ) * + - 50 AS col2, 70
----
-50
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7382
SELECT 46 + + + 10 - + + CAST( - 60 AS SIGNED ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-7382
SELECT 46 + + + 10 - + + CAST ( - 60 AS INTEGER ) AS col0
----
116

query II rowsort
SELECT DISTINCT 44 AS col2, 8 AS col0
----
44
8

query I rowsort
SELECT DISTINCT - 36 - - + 57 AS col0
----
21

query I rowsort
SELECT 99 * + + 40 * 24 col1
----
95040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT ALL - COALESCE ( + 97, CAST( - + 83 AS SIGNED ), + - 4 )
----
-97

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL - COALESCE ( + 97, CAST ( - + 83 AS INTEGER ), + - 4 )
----
-97

query II rowsort
SELECT + 5, 96 AS col1
----
5
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT ALL COALESCE ( 25, 0 ) * - COUNT( * ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL COALESCE ( 25, 0 ) * - COUNT ( * ) AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7389
SELECT 65 AS col0, CAST( NULL AS SIGNED ) * 95 AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-7389
SELECT 65 AS col0, CAST ( NULL AS INTEGER ) * 95 AS col0
----
65
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7390
SELECT ALL COUNT( * ) * + + 45 * - CASE CAST( NULL AS SIGNED ) WHEN ( + 17 ) THEN NULL ELSE + - 75 * + 69 * + COUNT( * ) * - + COUNT( * ) END AS col1
----
-232875

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL COUNT ( * ) * + + 45 * - CASE CAST ( NULL AS INTEGER ) WHEN ( + 17 ) THEN NULL ELSE + - 75 * + 69 * + COUNT ( * ) * - + COUNT ( * ) END AS col1
----
-232875

query I rowsort
SELECT + 95 * + + 6 - + 27 * - 11
----
867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7392
SELECT NULLIF ( - CASE + 71 WHEN + + MAX( ALL + - 12 ) THEN NULL WHEN + 90 THEN - + 88 ELSE 5 END, 83 ) * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT NULLIF ( - CASE + 71 WHEN + + MAX ( ALL + - 12 ) THEN NULL WHEN + 90 THEN - + 88 ELSE 5 END, 83 ) * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL CAST ( 36 AS INTEGER ) / + + 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT 29 * + 58 - - 74 + COUNT( * ) AS col1
----
1757

skipif mysql # not compatible
query I rowsort label-7394
SELECT 29 * + 58 - - 74 + COUNT ( * ) AS col1
----
1757

onlyif mysql # aggregate syntax: 
query II rowsort label-7395
SELECT ALL - 14 col0, ( - COUNT( * ) )
----
-14
-1

skipif mysql # not compatible
query II rowsort label-7395
SELECT ALL - 14 col0, ( - COUNT ( * ) )
----
-14
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT DISTINCT COUNT( + 93 ) + - 81 * + 32 AS col1
----
-2591

skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT COUNT ( + 93 ) + - 81 * + 32 AS col1
----
-2591

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL - 72 / COUNT( * ) * 31 * CASE + 98 WHEN 26 * - ( 6 ) THEN NULL WHEN + 81 THEN - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL - 72 / COUNT ( * ) * 31 * CASE + 98 WHEN 26 * - ( 6 ) THEN NULL WHEN + 81 THEN - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7399
SELECT - 62 AS col0, MAX( + 85 ) * 76 * 83 * - 12 AS col0
----
-62
-6434160

skipif mysql # not compatible
query II rowsort label-7399
SELECT - 62 AS col0, MAX ( + 85 ) * 76 * 83 * - 12 AS col0
----
-62
-6434160

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT ALL + 98 + - 47 + - ( + SUM( + 8 ) )
----
43

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL + 98 + - 47 + - ( + SUM ( + 8 ) )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7401
SELECT 92 * COUNT( * ) + 49 DIV + 96
----
92

skipif mysql # not compatible
query I rowsort label-7401
SELECT 92 * COUNT ( * ) + 49 / + 96
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7402
SELECT ALL 40 * - CASE - 49 WHEN - COUNT( * ) THEN - 50 * - 1 + - - 82 END - - - ( - - COUNT( * ) ) * + + 67 + - CAST( + + 55 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL 40 * - CASE - 49 WHEN - COUNT ( * ) THEN - 50 * - 1 + - - 82 END - - - ( - - COUNT ( * ) ) * + + 67 + - CAST ( + + 55 AS INTEGER )
----
NULL

query I rowsort
SELECT 22 * 15 AS col1
----
330

query I rowsort
SELECT - 14 + - 71 AS col2
----
-85

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

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

query II rowsort
SELECT ALL + 25 AS col2, 86
----
25
86

query I rowsort
SELECT DISTINCT + 48 + + 24 AS col2
----
72

query I rowsort
SELECT + NULLIF ( - 26, - 27 ) AS col0
----
-26

query I rowsort
SELECT ALL + - 18 + + 95 * - 56
----
-5338

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

query I rowsort
SELECT ALL ( 92 ) + + 44 AS col0
----
136

query I rowsort
SELECT 71 + + 29 AS col2
----
100

query I rowsort
SELECT 30 * + 95 AS col1
----
2850

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT ALL + + 51 DIV 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL + + 51 / 80 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7415
SELECT - 39 + - COUNT( * ) * + - 95 DIV - 80 + + COUNT( + ( 78 ) ) + - 35 AS col0, 48 AS col1
----
-74
48

skipif mysql # not compatible
query II rowsort label-7415
SELECT - 39 + - COUNT ( * ) * + - 95 / - 80 + + COUNT ( + ( 78 ) ) + - 35 AS col0, 48 AS col1
----
-74
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT - 13 + + MAX( DISTINCT - 17 ) + + 19 + COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-7416
SELECT - 13 + + MAX ( DISTINCT - 17 ) + + 19 + COUNT ( * ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT ALL - + 38 - 3 - COUNT( * ) * - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL - + 38 - 3 - COUNT ( * ) * - COUNT ( * )
----
-40

query I rowsort
SELECT ALL + CASE 99 WHEN - 30 - - 94 + 17 THEN NULL ELSE CASE + - 25 WHEN 4 THEN - 50 ELSE - - 90 END END * - 26
----
-2340

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

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT SUM ( DISTINCT 46 )
----
46

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7421
SELECT DISTINCT + COALESCE ( - - 51, - 64, + 68 + + + ( + 62 ) / 27 * + ( + ( + COUNT( * ) ) ) / - MIN( ALL + ( 94 ) ) + - CAST( NULL AS SIGNED ) * - NULLIF ( + 74, - + 82 * - 24 ) ) - 5 * - - MAX( - ( - - 17 ) ) * + MAX( DISTINCT + - 35 ) - + AVG ( DISTINCT - + 51 ) + - - 75 * + - CASE - COUNT( * ) WHEN - CAST( - - 97 AS SIGNED ) / - - 28 THEN - 56 + + CAST( NULL AS SIGNED ) WHEN + 79 THEN 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT + COALESCE ( - - 51, - 64, + 68 + + + ( + 62 ) / 27 * + ( + ( + COUNT ( * ) ) ) / - MIN ( ALL + ( 94 ) ) + - CAST ( NULL AS INTEGER ) * - NULLIF ( + 74, - + 82 * - 24 ) ) - 5 * - - MAX ( - ( - - 17 ) ) * + MAX ( DISTINCT + - 35 ) - + AVG ( DISTINCT - + 51 ) + - - 75 * + - CASE - COUNT ( * ) WHEN - CAST ( - - 97 AS INTEGER ) / - - 28 THEN - 56 + + CAST ( NULL AS INTEGER ) WHEN + 79 THEN 47 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7422
SELECT - 41 DIV 5 * - CAST( COUNT( ALL - 4 ) AS SIGNED ) * + COUNT( * ) - 75 + + + 52
----
-15

skipif mysql # not compatible
query I rowsort label-7422
SELECT - 41 / 5 * - CAST ( COUNT ( ALL - 4 ) AS INTEGER ) * + COUNT ( * ) - 75 + + + 52
----
-15

query I rowsort
SELECT DISTINCT - CASE 30 WHEN 59 THEN - + 13 ELSE NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT ALL - ( + 57 ) DIV 20 col1
----
-2

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL - ( + 57 ) / 20 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT 97 * + COUNT( * ) + + 83 col2
----
180

skipif mysql # not compatible
query I rowsort label-7425
SELECT 97 * + COUNT ( * ) + + 83 col2
----
180

query I rowsort
SELECT 43 - - 79 + - 57 - + - 71 * + - 70 + - 76 AS col0
----
-4981

query I rowsort
SELECT COALESCE ( + 33, - - 27 + - 40 + + + 60 ) * - COALESCE ( + 81, - 11 + + + 57 + - 38 ) + + - 79 - + 43 AS col2
----
-2795

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT ALL - 95 * - SUM( DISTINCT + 97 ) + + 10 AS col1
----
9225

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL - 95 * - SUM ( DISTINCT + 97 ) + + 10 AS col1
----
9225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7429
SELECT + ( CAST( NULL AS SIGNED ) ) / - + CASE 40 WHEN + + ( ( + 23 ) ) THEN + 6 * CAST( NULL AS SIGNED ) WHEN + - COUNT( * ) + ( + COUNT( * ) ) THEN NULL END * + 75 - - 43 * - 8 + + 26 / - + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT + ( CAST ( NULL AS INTEGER ) ) / - + CASE 40 WHEN + + ( ( + 23 ) ) THEN + 6 * CAST ( NULL AS INTEGER ) WHEN + - COUNT ( * ) + ( + COUNT ( * ) ) THEN NULL END * + 75 - - 43 * - 8 + + 26 / - + 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT - MAX( ALL + 52 ) * - + 92
----
4784

skipif mysql # not compatible
query I rowsort label-7430
SELECT - MAX ( ALL + 52 ) * - + 92
----
4784

query I rowsort
SELECT ALL + 10 * - 43 AS col1
----
-430

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT DISTINCT + 19 + - - COUNT( - 6 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT + 19 + - - COUNT ( - 6 ) AS col2
----
20

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

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

query I rowsort
SELECT DISTINCT + CASE 21 WHEN + 73 THEN NULL ELSE - 53 * + - 28 * + ( + 45 ) * - 16 * 28 + 41 + 44 - 26 * - 94 END
----
-29914911

onlyif mysql # DIV for integer division: 
query I rowsort label-7436
SELECT ALL 26 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL 26 / + 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL COUNT( * ) - + 76 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL COUNT ( * ) - + 76 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT + 90 * 90 * - + COUNT( * ) + 63 - - 6
----
-8031

skipif mysql # not compatible
query I rowsort label-7438
SELECT + 90 * 90 * - + COUNT ( * ) + 63 - - 6
----
-8031

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7439
SELECT + 14 - - 17 + - + 0 + + - CAST( NULL AS SIGNED ) + - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7439
SELECT + 14 - - 17 + - + 0 + + - CAST ( NULL AS INTEGER ) + - 23 AS col1
----
NULL

query I rowsort
SELECT ALL - 34 * - 39 + - 87
----
1239

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT DISTINCT SUM( + + NULLIF ( - 89, + + 21 ) ) * 67 AS col1
----
-5963

skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT SUM ( + + NULLIF ( - 89, + + 21 ) ) * 67 AS col1
----
-5963

query I rowsort
SELECT + 28 * - - 32 - + - 48 AS col2
----
944

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT ALL - 84 - - - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL - 84 - - - COUNT ( * )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT - - MIN( ALL - 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-7444
SELECT - - MIN ( ALL - 94 ) AS col2
----
-94

query I rowsort
SELECT ALL + NULLIF ( + 11, + - 25 )
----
11

query I rowsort
SELECT + 59 + + 20 AS col2
----
79

query I rowsort
SELECT ALL - 98 * - 71
----
6958

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT ALL SUM( DISTINCT + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL SUM ( DISTINCT + 0 )
----
0

query I rowsort
SELECT - COALESCE ( 50, - 46, + + 97 ) AS col2
----
-50

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

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

query I rowsort
SELECT - COALESCE ( 8, - + 13 )
----
-8

query I rowsort
SELECT - 26 + - 48 * - 89
----
4246

query I rowsort
SELECT + 72 * - 30 AS col1
----
-2160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7454
SELECT ALL - CAST( NULL AS DECIMAL ) * + 78 AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT - 11 * - 18
----
198

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7457
SELECT ALL 5 DIV - 12 * - 36 + + 94 - + 46 AS col0, 33
----
48
33

skipif mysql # not compatible
query II rowsort label-7457
SELECT ALL 5 / - 12 * - 36 + + 94 - + 46 AS col0, 33
----
48
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + 12 * SUM( DISTINCT + - 37 )
----
-444

skipif mysql # not compatible
query I rowsort label-7458
SELECT + 12 * SUM ( DISTINCT + - 37 )
----
-444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7459
SELECT ALL - 51 DIV - COUNT( * ) + + + MIN( + - 56 ) + - 8 - - - 79 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL - 51 / - COUNT ( * ) + + + MIN ( + - 56 ) + - 8 - - - 79 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT DISTINCT + CASE - ( - 51 ) WHEN + COUNT( * ) + - - COUNT( * ) THEN + 49 - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT + CASE - ( - 51 ) WHEN + COUNT ( * ) + - - COUNT ( * ) THEN + 49 - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7461
SELECT 66 * - + ( - + 94 ) - ( - - COALESCE ( - 84, + - 38 + + COUNT( * ) * CAST( NULL AS SIGNED ) + - COUNT( * ), - 6 ) )
----
6288

skipif mysql # not compatible
query I rowsort label-7461
SELECT 66 * - + ( - + 94 ) - ( - - COALESCE ( - 84, + - 38 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - COUNT ( * ), - 6 ) )
----
6288

query I rowsort
SELECT - 12 * 46 AS col0
----
-552

query II rowsort
SELECT ALL + 4, 23 AS col1
----
4
23

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7465
SELECT DISTINCT - 89 * + 28 + + 85 AS col0, - 36 - - - 23 DIV + 90 + - + 43 + 47 + - 96
----
-2407
-128

skipif mysql # not compatible
query II rowsort label-7465
SELECT DISTINCT - 89 * + 28 + + 85 AS col0, - 36 - - - 23 / + 90 + - + 43 + 47 + - 96
----
-2407
-128

onlyif mysql # aggregate syntax: 
query II rowsort label-7466
SELECT ALL MIN( 0 ) * COUNT( * ) + SUM( ALL + + 41 ), + MAX( + + 12 ) AS col2
----
41
12

skipif mysql # not compatible
query II rowsort label-7466
SELECT ALL MIN ( 0 ) * COUNT ( * ) + SUM ( ALL + + 41 ), + MAX ( + + 12 ) AS col2
----
41
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7467
SELECT + 68 * - 66 * + 72 - - 27 + + - CASE 60 WHEN 45 THEN + 74 - + 25 WHEN - COUNT( * ) * + - 26 / + 70 + - 77 + + ( 72 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END col2, - 2 + - - 35 + COUNT( * ) + - 12
----
NULL
22

skipif mysql # not compatible
query II rowsort label-7467
SELECT + 68 * - 66 * + 72 - - 27 + + - CASE 60 WHEN 45 THEN + 74 - + 25 WHEN - COUNT ( * ) * + - 26 / + 70 + - 77 + + ( 72 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END col2, - 2 + - - 35 + COUNT ( * ) + - 12
----
NULL
22

query I rowsort
SELECT ALL 58 * + + 63
----
3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7469
SELECT + CASE - - 92 WHEN 85 + 91 - + 44 THEN - CASE 58 WHEN + 67 * - 98 + - + CAST( NULL AS SIGNED ) THEN + 77 * - + 63 WHEN + COUNT( * ) * AVG ( ALL - 87 ) + CASE WHEN NOT 97 IS NOT NULL THEN COALESCE ( + COUNT( * ), 7 ) END * - MAX( DISTINCT + 82 ) THEN 7 * + NULLIF ( + 91, + ( + COUNT( * ) ) + 7 - SUM( ALL 91 ) * 14 ) + + CAST( - 91 AS SIGNED ) + + 27 END WHEN + 23 THEN COUNT( * ) + COALESCE ( - 5 + + 0, 57 + + ( - 23 ) ) WHEN + ( - 40 ) * ( 69 * - 77 ) THEN 74 * + ( CASE 46 WHEN 27 / 21 THEN NULL WHEN + CASE COUNT( * ) WHEN - SUM( DISTINCT + 36 ) * - 35 THEN NULL WHEN 72 THEN ( 62 ) ELSE + 35 * 65 + - 90 END * 93 THEN - ( ( 66 ) ) END ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT + CASE - - 92 WHEN 85 + 91 - + 44 THEN - CASE 58 WHEN + 67 * - 98 + - + CAST ( NULL AS INTEGER ) THEN + 77 * - + 63 WHEN + COUNT ( * ) * AVG ( ALL - 87 ) + CASE WHEN NOT 97 IS NOT NULL THEN COALESCE ( + COUNT ( * ), 7 ) END * - MAX ( DISTINCT + 82 ) THEN 7 * + NULLIF ( + 91, + ( + COUNT ( * ) ) + 7 - SUM ( ALL 91 ) * 14 ) + + CAST ( - 91 AS INTEGER ) + + 27 END WHEN + 23 THEN COUNT ( * ) + COALESCE ( - 5 + + 0, 57 + + ( - 23 ) ) WHEN + ( - 40 ) * ( 69 * - 77 ) THEN 74 * + ( CASE 46 WHEN 27 / 21 THEN NULL WHEN + CASE COUNT ( * ) WHEN - SUM ( DISTINCT + 36 ) * - 35 THEN NULL WHEN 72 THEN ( 62 ) ELSE + 35 * 65 + - 90 END * 93 THEN - ( ( 66 ) ) END ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7470
SELECT + - 43 * - COALESCE ( COUNT( * ), - 10 ) DIV - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-7470
SELECT + - 43 * - COALESCE ( COUNT ( * ), - 10 ) / - COUNT ( * )
----
-43

query I rowsort
SELECT DISTINCT 42 * + 60 AS col0
----
2520

query I rowsort
SELECT - - 99 + ( - + 95 ) AS col0
----
4

query I rowsort
SELECT ALL + - 89 * + - 2 + + 32 * + 70 + + 32 - 74 AS col1
----
2376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7474
SELECT + NULLIF ( - - 61, + - CAST( NULL AS SIGNED ) ) + + 63 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-7474
SELECT + NULLIF ( - - 61, + - CAST ( NULL AS INTEGER ) ) + + 63 AS col1
----
124

query I rowsort
SELECT + 57 * 20 + + 19 AS col1
----
1159

query II rowsort
SELECT ALL 16 AS col0, 24 AS col0
----
16
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7478
SELECT - CAST( NULL AS SIGNED ) + + - CASE - 0 WHEN - 59 THEN + + 15 * + - 71 WHEN 62 THEN NULL END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT - CAST ( NULL AS INTEGER ) + + - CASE - 0 WHEN - 59 THEN + + 15 * + - 71 WHEN 62 THEN NULL END * COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 94 AS col0, + 9
----
94
9

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

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL COUNT ( * ) * + 33 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT + COALESCE ( + + 73, 39 ) + - COUNT( * ) + ( 37 ) + - 77
----
32

skipif mysql # not compatible
query I rowsort label-7481
SELECT + COALESCE ( + + 73, 39 ) + - COUNT ( * ) + ( 37 ) + - 77
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7482
SELECT - CAST( NULL AS SIGNED ) AS col1, 68 AS col2
----
NULL
68

skipif mysql # not compatible
query II rowsort label-7482
SELECT - CAST ( NULL AS INTEGER ) AS col1, 68 AS col2
----
NULL
68

query II rowsort
SELECT 89 AS col0, - 92
----
89
-92

query I rowsort
SELECT + 96 + - 59
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL 8 * - 61 * + MAX( ALL + 34 )
----
-16592

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL 8 * - 61 * + MAX ( ALL + 34 )
----
-16592

query I rowsort
SELECT ALL 54 + + ( 72 ) AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT DISTINCT COUNT( * ) + - + 47 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT COUNT ( * ) + - + 47 AS col1
----
-46

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

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

query I rowsort
SELECT ALL + 70 + - + 69
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT + COUNT( * ) + + 19 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7490
SELECT + COUNT ( * ) + + 19 AS col1
----
20

query II rowsort
SELECT ALL 20 AS col0, + 85 AS col2
----
20
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT + 18 + 27 * - + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-7492
SELECT + 18 + 27 * - + COUNT ( * )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7493
SELECT 23 + - CASE - 44 WHEN 49 THEN - - 58 * + 34 + - COUNT( * ) ELSE + 32 DIV + - CASE - + 73 WHEN - 1 * - NULLIF ( - - 23, - 59 ) + + - CASE - 4 WHEN + CAST( - CAST( + 94 AS DECIMAL ) AS DECIMAL ) THEN + - 61 END THEN 6 + - - 53 WHEN + 38 THEN 20 WHEN 81 + - CASE 62 WHEN - 66 THEN NULL ELSE - 14 * + + 19 + + 61 * + 65 END * - ( + + ( - CASE - - ( MAX( ALL 34 ) ) WHEN - NULLIF ( SUM( ALL - 44 ), + 29 ) THEN NULL WHEN - 11 + - 5 THEN NULL ELSE + 54 END ) ) THEN 64 * 77 ELSE - 95 END END col0
----
23

skipif mysql # not compatible
query I rowsort label-7493
SELECT 23 + - CASE - 44 WHEN 49 THEN - - 58 * + 34 + - COUNT ( * ) ELSE + 32 / + - CASE - + 73 WHEN - 1 * - NULLIF ( - - 23, - 59 ) + + - CASE - 4 WHEN + CAST ( - CAST ( + 94 AS REAL ) AS REAL ) THEN + - 61 END THEN 6 + - - 53 WHEN + 38 THEN 20 WHEN 81 + - CASE 62 WHEN - 66 THEN NULL ELSE - 14 * + + 19 + + 61 * + 65 END * - ( + + ( - CASE - - ( MAX ( ALL 34 ) ) WHEN - NULLIF ( SUM ( ALL - 44 ), + 29 ) THEN NULL WHEN - 11 + - 5 THEN NULL ELSE + 54 END ) ) THEN 64 * 77 ELSE - 95 END END col0
----
23

query II rowsort
SELECT - 25 AS col2, 16 - 16
----
-25
0

query II rowsort
SELECT 5 col0, 1
----
5
1

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

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

query I rowsort
SELECT ( + + 62 ) + + 73 AS col0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT + 94 DIV - - 84 - + ( - 18 ) * + 58
----
1045

skipif mysql # not compatible
query I rowsort label-7498
SELECT + 94 / - - 84 - + ( - 18 ) * + 58
----
1045

query I rowsort
SELECT 78 - COALESCE ( - - 86, 54 * 80, + + 72 )
----
-8

query I rowsort
SELECT ALL - 98 + - 20 AS col1
----
-118

query I rowsort
SELECT ALL + 35 + - 94
----
-59

query II rowsort
SELECT + + 21 AS col1, 50
----
21
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7503
SELECT ALL 63 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL 63 / 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7504
SELECT DISTINCT - ( NULLIF ( - COUNT( * ), - + 56 * - 28 * CASE 59 WHEN + 84 THEN - 85 * + NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) ) END * + 93 * + 30 ) ) - 94 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT - ( NULLIF ( - COUNT ( * ), - + 56 * - 28 * CASE 59 WHEN + 84 THEN - 85 * + NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) END * + 93 * + 30 ) ) - 94 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ALL - MIN( ALL ( 83 ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL - MIN ( ALL ( 83 ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-7506
SELECT + 40 * ( + NULLIF ( + 97, - + 70 ) ) + + COUNT( * ) + 69 AS col2, - 59 * 58 + - - 22 + - 2
----
3950
-3402

skipif mysql # not compatible
query II rowsort label-7506
SELECT + 40 * ( + NULLIF ( + 97, - + 70 ) ) + + COUNT ( * ) + 69 AS col2, - 59 * 58 + - - 22 + - 2
----
3950
-3402

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL - CASE + 49 WHEN - + 67 * - - COUNT( * ) * - COUNT( * ) + COUNT( * ) THEN + 8 END - + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL - CASE + 49 WHEN - + 67 * - - COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) THEN + 8 END - + 24 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7508
SELECT + ( 35 ), CAST( - - 74 AS SIGNED ) * - + 63 + - + COUNT( * ) AS col2
----
35
-4663

skipif mysql # not compatible
query II rowsort label-7508
SELECT + ( 35 ), CAST ( - - 74 AS INTEGER ) * - + 63 + - + COUNT ( * ) AS col2
----
35
-4663

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT + - COALESCE ( COUNT( * ), - 45 * 49 + + 99 ) * - + 44 + 27 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7510
SELECT + - COALESCE ( COUNT ( * ), - 45 * 49 + + 99 ) * - + 44 + 27 AS col1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7511
SELECT ( - 88 ) DIV - 75
----
1

skipif mysql # not compatible
query I rowsort label-7511
SELECT ( - 88 ) / - 75
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT + CAST( NULL AS SIGNED ) * - 91 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT + CAST ( NULL AS INTEGER ) * - 91 * 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7513
SELECT ALL - + COUNT( * ) AS col0, 47 AS col1
----
-1
47

skipif mysql # not compatible
query II rowsort label-7513
SELECT ALL - + COUNT ( * ) AS col0, 47 AS col1
----
-1
47

query I rowsort
SELECT + ( - 14 ) col2
----
-14

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7517
SELECT ALL + - 44 DIV - 73 + 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL + - 44 / - 73 + 85 AS col0
----
85

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

skipif mysql # not compatible
query II rowsort label-7518
SELECT ALL - - COUNT ( * ), 21 AS col2
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT 15 * COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-7519
SELECT 15 * COUNT ( * )
----
15

query II rowsort
SELECT ALL - + 58, - 85 AS col0
----
-58
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7521
SELECT ALL - 48 AS col2, - 45 * - CAST( + + 67 AS SIGNED )
----
-48
3015

skipif mysql # not compatible
query II rowsort label-7521
SELECT ALL - 48 AS col2, - 45 * - CAST ( + + 67 AS INTEGER )
----
-48
3015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT - - 33 * - + 23 * + 96 + 30 * 24 + - + CAST( NULL AS SIGNED ) * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT - - 33 * - + 23 * + 96 + 30 * 24 + - + CAST ( NULL AS INTEGER ) * - 18
----
NULL

query II rowsort
SELECT 42 AS col2, 91
----
42
91

query I rowsort
SELECT - NULLIF ( + 46, 78 / ( - + 15 ) )
----
-46

query I rowsort
SELECT 2 - + + ( 60 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT COUNT( * ) + MIN( DISTINCT + + 88 ) * + 1 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7526
SELECT COUNT ( * ) + MIN ( DISTINCT + + 88 ) * + 1 AS col1
----
89

query I rowsort
SELECT DISTINCT + COALESCE ( - 96, + - 75 - 49 - - + COALESCE ( - 77, + 82, - 81 ) ) + - + ( 20 ) * + ( - + 15 )
----
204

query I rowsort
SELECT DISTINCT 95 + 84 AS col2
----
179

onlyif mysql # DIV for integer division: 
query I rowsort label-7529
SELECT DISTINCT ( + 9 ) DIV 5 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT ( + 9 ) / 5 AS col0
----
1

query I rowsort
SELECT 33 * 74
----
2442

query I rowsort
SELECT 68 + - 80
----
-12

query I rowsort
SELECT ( 79 ) * + 48 * + 90 AS col0
----
341280

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT DISTINCT 36 + + COUNT( * ) - + ( - ( COUNT( * ) ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT 36 + + COUNT ( * ) - + ( - ( COUNT ( * ) ) ) AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7534
SELECT ALL 94 + + + CAST( + 59 AS SIGNED ) AS col1
----
153

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL 94 + + + CAST ( + 59 AS INTEGER ) AS col1
----
153

query I rowsort
SELECT ALL 53 * - 79 AS col0
----
-4187

query I rowsort
SELECT 58 * + + 34 * - 95
----
-187340

query I rowsort
SELECT DISTINCT 0 * - 37 * - + 22 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT + COALESCE ( - 51, - 14, 32 - + 67 ) * ( 36 ) * - + 92 * + + COUNT( * ) AS col1
----
168912

skipif mysql # not compatible
query I rowsort label-7538
SELECT + COALESCE ( - 51, - 14, 32 - + 67 ) * ( 36 ) * - + 92 * + + COUNT ( * ) AS col1
----
168912

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT 12 * 69 * - 73 * 32 + ( + + COUNT( * ) ) - 72 * 68
----
-1939103

skipif mysql # not compatible
query I rowsort label-7539
SELECT 12 * 69 * - 73 * 32 + ( + + COUNT ( * ) ) - 72 * 68
----
-1939103

query I rowsort
SELECT - ( + - COALESCE ( + 58, - 47 ) ) AS col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7541
SELECT + + 44 DIV + + 96 + + + 44
----
44

skipif mysql # not compatible
query I rowsort label-7541
SELECT + + 44 / + + 96 + + + 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT 4 * 76 * - COUNT( * ) col0
----
-304

skipif mysql # not compatible
query I rowsort label-7542
SELECT 4 * 76 * - COUNT ( * ) col0
----
-304

query I rowsort
SELECT 92 * - 74 + 32
----
-6776

query II rowsort
SELECT - 81 + 68, 18 + + + ( - 92 ) col0
----
-13
-74

query I rowsort
SELECT ALL NULLIF ( - 46, + - 69 ) - ( - 64 ) AS col2
----
18

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

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

query I rowsort
SELECT ALL - CASE + 71 WHEN - 71 THEN NULL ELSE 87 END
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL + COUNT( 34 ) * - - 37 - + 32 + - 0
----
5

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL + COUNT ( 34 ) * - - 37 - + 32 + - 0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7549
SELECT ALL - + COALESCE ( + CAST( + + 88 AS SIGNED ), 66 * + 38 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL - + COALESCE ( + CAST ( + + 88 AS INTEGER ), 66 * + 38 ) AS col2
----
-88

query I rowsort
SELECT ALL - ( + 75 ) col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7551
SELECT 9 + 62, + COUNT( * ) * - 51 AS col2
----
71
-51

skipif mysql # not compatible
query II rowsort label-7551
SELECT 9 + 62, + COUNT ( * ) * - 51 AS col2
----
71
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7552
SELECT - + 14 * + COALESCE ( - COUNT( * ), + COUNT( * ), + 38 ) * - 64 * 17 + 71 * + + COALESCE ( - COUNT( * ), + 98 ) + - 46 + - 22 DIV - + COUNT( * )
----
-15327

skipif mysql # not compatible
query I rowsort label-7552
SELECT - + 14 * + COALESCE ( - COUNT ( * ), + COUNT ( * ), + 38 ) * - 64 * 17 + 71 * + + COALESCE ( - COUNT ( * ), + 98 ) + - 46 + - 22 / - + COUNT ( * )
----
-15327

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT - ( + 84 ) DIV + 18
----
-4

skipif mysql # not compatible
query I rowsort label-7553
SELECT - ( + 84 ) / + 18
----
-4

query I rowsort
SELECT 11 + - 59
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7555
SELECT ALL - SUM( CAST( 21 AS SIGNED ) ), - 68 + - 82 AS col0
----
-21
-150

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL - SUM ( CAST ( 21 AS INTEGER ) ), - 68 + - 82 AS col0
----
-21
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-7556
SELECT DISTINCT + 88 DIV + 14 col2
----
6

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT + 88 / + 14 col2
----
6

query II rowsort
SELECT 14 AS col1, - CASE - - NULLIF ( - 37, - ( - 83 ) ) WHEN - + ( - 10 ) * - 75 THEN 13 WHEN - - 92 THEN NULL ELSE NULL END + - 66
----
14
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7558
SELECT ALL + ( - - 22 ) + + 91 AS col2, + ( + 94 ) + + COUNT( * )
----
113
95

skipif mysql # not compatible
query II rowsort label-7558
SELECT ALL + ( - - 22 ) + + 91 AS col2, + ( + 94 ) + + COUNT ( * )
----
113
95

query I rowsort
SELECT ALL + 15 + + 36
----
51

query I rowsort
SELECT 43 * + 44 AS col2
----
1892

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT DISTINCT COUNT( ALL - 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT COUNT ( ALL - 47 ) AS col2
----
1

query I rowsort
SELECT ALL - 70 + 78
----
8

query I rowsort
SELECT - 31 + 55 AS col0
----
24

query I rowsort
SELECT - 7 + - 31 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT - NULLIF ( 21, + COUNT( * ) * - - 19 + + - 1 ) * + + COUNT( * ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-7565
SELECT - NULLIF ( 21, + COUNT ( * ) * - - 19 + + - 1 ) * + + COUNT ( * ) col2
----
-21

query I rowsort
SELECT DISTINCT + 98 * - 0
----
0

query I rowsort
SELECT - 83 + 26 AS col2
----
-57

query II rowsort
SELECT 57, 89 col1
----
57
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7569
SELECT ALL CASE + COUNT( * ) WHEN - CAST( + 42 AS DECIMAL ) THEN NULL ELSE - 54 * + + 93 END
----
-5022

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL CASE + COUNT ( * ) WHEN - CAST ( + 42 AS REAL ) THEN NULL ELSE - 54 * + + 93 END
----
-5022

onlyif mysql # aggregate syntax: 
query II rowsort label-7570
SELECT 30 AS col1, 68 + - COUNT( * )
----
30
67

skipif mysql # not compatible
query II rowsort label-7570
SELECT 30 AS col1, 68 + - COUNT ( * )
----
30
67

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7571
SELECT ALL + ( + 86 ) * - ( - CAST( NULL AS DECIMAL ) ) AS col2, - 53 AS col1
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-7571
SELECT ALL + ( + 86 ) * - ( - CAST ( NULL AS REAL ) ) AS col2, - 53 AS col1
----
NULL
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT - 53 - - - NULLIF ( - - 60, - 11 * + 99 * - 11 + - COUNT( * ) * + COALESCE ( + 87, + COUNT( * ) ) * - - 49 / + COUNT( * ) * - - 29 - - 88 ) AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT - 53 - - - NULLIF ( - - 60, - 11 * + 99 * - 11 + - COUNT ( * ) * + COALESCE ( + 87, + COUNT ( * ) ) * - - 49 / + COUNT ( * ) * - - 29 - - 88 ) AS col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT + ( - - MIN( ALL - 76 ) ) + 51 + 84 * - 97
----
-8173

skipif mysql # not compatible
query I rowsort label-7573
SELECT + ( - - MIN ( ALL - 76 ) ) + 51 + 84 * - 97
----
-8173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT - NULLIF ( 24, + 26 ) + CAST( - 41 AS SIGNED ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7574
SELECT - NULLIF ( 24, + 26 ) + CAST ( - 41 AS INTEGER ) AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7575
SELECT - CAST( 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-7575
SELECT - CAST ( 47 AS INTEGER )
----
-47

query I rowsort
SELECT + 12 * + 52
----
624

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

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

query I rowsort
SELECT ALL + 50 * + 37 AS col1
----
1850

onlyif mysql # DIV for integer division: 
query I rowsort label-7579
SELECT + + ( - 32 ) DIV 32 * - + 97 + 0
----
97

skipif mysql # not compatible
query I rowsort label-7579
SELECT + + ( - 32 ) / 32 * - + 97 + 0
----
97

query I rowsort
SELECT ALL - 75 * + + 38 AS col0
----
-2850

query I rowsort
SELECT + - 70 * - 0 * - 23 + - 59 * 81 AS col2
----
-4779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7582
SELECT + 78 * - COUNT( ALL + 36 ) * CAST( NULL AS SIGNED ) * - + 97 - - 97 - - 70 + - 48 / - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT + 78 * - COUNT ( ALL + 36 ) * CAST ( NULL AS INTEGER ) * - + 97 - - 97 - - 70 + - 48 / - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7583
SELECT ALL - + 85 * + 5 + 19 * SUM( ALL + 72 ) * - 2 AS col2, - 3
----
-3161
-3

skipif mysql # not compatible
query II rowsort label-7583
SELECT ALL - + 85 * + 5 + 19 * SUM ( ALL + 72 ) * - 2 AS col2, - 3
----
-3161
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7584
SELECT DISTINCT + 40, SUM( + - 72 ) AS col2
----
40
-72

skipif mysql # not compatible
query II rowsort label-7584
SELECT DISTINCT + 40, SUM ( + - 72 ) AS col2
----
40
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT + - 20 + NULLIF ( COUNT( * ), - + ( + - COUNT( * ) ) ) / COUNT( * ) * - COUNT( * ) * + NULLIF ( - AVG ( DISTINCT 65 ), + + 64 * - MIN( ALL + 37 ) ) + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7585
SELECT + - 20 + NULLIF ( COUNT ( * ), - + ( + - COUNT ( * ) ) ) / COUNT ( * ) * - COUNT ( * ) * + NULLIF ( - AVG ( DISTINCT 65 ), + + 64 * - MIN ( ALL + 37 ) ) + - 22
----
NULL

query I rowsort
SELECT ALL 71 * - 9
----
-639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7587
SELECT - 93 * - + CASE + - 43 WHEN - 44 THEN - 47 / - 35 ELSE + 91 / + 92 * + CAST( NULL AS SIGNED ) END * COUNT( * ) + - 80 + - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7587
SELECT - 93 * - + CASE + - 43 WHEN - 44 THEN - 47 / - 35 ELSE + 91 / + 92 * + CAST ( NULL AS INTEGER ) END * COUNT ( * ) + - 80 + - 24 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7588
SELECT DISTINCT - - COUNT( * ) * + - COUNT( * ) * ( + 25 ) * - CAST( - 84 AS SIGNED ) * 75 + + COALESCE ( + 54, + 50, - 90 * - - SUM( ALL ( - - 88 ) ) ), 51 AS col1
----
-157446
51

skipif mysql # not compatible
query II rowsort label-7588
SELECT DISTINCT - - COUNT ( * ) * + - COUNT ( * ) * ( + 25 ) * - CAST ( - 84 AS INTEGER ) * 75 + + COALESCE ( + 54, + 50, - 90 * - - SUM ( ALL ( - - 88 ) ) ), 51 AS col1
----
-157446
51

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

skipif mysql # not compatible
query I rowsort label-7589
SELECT + MAX ( - 30 )
----
-30

query I rowsort
SELECT ALL + 17 * - 10 * 28 + - 94 AS col0
----
-4854

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT MAX( DISTINCT + + 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7591
SELECT MAX ( DISTINCT + + 89 ) AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7592
SELECT + AVG ( + 4 ) * 70 - CAST( NULL AS DECIMAL ) + - 95 * - - CAST( NULL AS SIGNED ) * + 12 / - 23 + + 64 * + 82 * - - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT + AVG ( + 4 ) * 70 - CAST ( NULL AS REAL ) + - 95 * - - CAST ( NULL AS INTEGER ) * + 12 / - 23 + + 64 * + 82 * - - 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL + 99 / - + CASE + 75 WHEN 26 THEN NULL WHEN 34 THEN + 81 + - - COUNT( ALL - 0 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + 99 / - + CASE + 75 WHEN 26 THEN NULL WHEN 34 THEN + 81 + - - COUNT ( ALL - 0 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT + + ( - COUNT( - 61 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7594
SELECT + + ( - COUNT ( - 61 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT 1 * - COUNT( * ) + 71 + + - ( 15 ) * + 77 + - + ( 95 ) * + - 57 * + 69
----
372550

skipif mysql # not compatible
query I rowsort label-7595
SELECT 1 * - COUNT ( * ) + 71 + + - ( 15 ) * + 77 + - + ( 95 ) * + - 57 * + 69
----
372550

onlyif mysql # aggregate syntax: 
query II rowsort label-7596
SELECT + COUNT( * ) * 0 AS col1, - 60 + - - 71 + - 85 col2
----
0
-74

skipif mysql # not compatible
query II rowsort label-7596
SELECT + COUNT ( * ) * 0 AS col1, - 60 + - - 71 + - 85 col2
----
0
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7597
SELECT + CAST( CASE + 58 WHEN 16 + - CAST( NULL AS DECIMAL ) THEN 63 + + ( - + 93 ) WHEN + + 33 THEN NULL WHEN - + 86 THEN - 73 * + + 60 / 54 - + 12 + + - 30 ELSE - 85 / + - 66 + + 93 - - 1 * - ( - 80 ) + COUNT( * ) + - 60 END AS SIGNED ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-7597
SELECT + CAST ( CASE + 58 WHEN 16 + - CAST ( NULL AS REAL ) THEN 63 + + ( - + 93 ) WHEN + + 33 THEN NULL WHEN - + 86 THEN - 73 * + + 60 / 54 - + 12 + + - 30 ELSE - 85 / + - 66 + + 93 - - 1 * - ( - 80 ) + COUNT ( * ) + - 60 END AS INTEGER ) AS col2
----
115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT - ( + MIN( DISTINCT - + 64 ) ) col2
----
64

skipif mysql # not compatible
query I rowsort label-7599
SELECT - ( + MIN ( DISTINCT - + 64 ) ) col2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7600
SELECT + 90 * CAST( NULL AS SIGNED ) / + + 58 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT + 90 * CAST ( NULL AS INTEGER ) / + + 58 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7601
SELECT SUM( 89 ) AS col2, + 78 + + 46 AS col0
----
89
124

skipif mysql # not compatible
query II rowsort label-7601
SELECT SUM ( 89 ) AS col2, + 78 + + 46 AS col0
----
89
124

onlyif mysql # DIV for integer division: 
query I rowsort label-7602
SELECT ALL - 48 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL - 48 / - 71
----
0

query I rowsort
SELECT + 60 * 50
----
3000

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT ALL - 39 DIV 39 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL - 39 / 39 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7605
SELECT - 77 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT - 77 / CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7607
SELECT - 12 - + - 63 / - CAST( NULL AS SIGNED ) * - 5 + - MAX( ALL 20 ) * 36, - 51 * + + 38 * + - COUNT( * ) AS col2
----
NULL
1938

skipif mysql # not compatible
query II rowsort label-7607
SELECT - 12 - + - 63 / - CAST ( NULL AS INTEGER ) * - 5 + - MAX ( ALL 20 ) * 36, - 51 * + + 38 * + - COUNT ( * ) AS col2
----
NULL
1938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT + NULLIF ( - ( 68 ), + + CAST( + 33 AS SIGNED ) ) * 41 + + 58 AS col1
----
-2730

skipif mysql # not compatible
query I rowsort label-7608
SELECT + NULLIF ( - ( 68 ), + + CAST ( + 33 AS INTEGER ) ) * 41 + + 58 AS col1
----
-2730

onlyif mysql # aggregate syntax: 
query II rowsort label-7609
SELECT ALL + 76 * ( - + 47 ) * - MAX( ALL + + 76 ) AS col0, - 74
----
271472
-74

skipif mysql # not compatible
query II rowsort label-7609
SELECT ALL + 76 * ( - + 47 ) * - MAX ( ALL + + 76 ) AS col0, - 74
----
271472
-74

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

query II rowsort
SELECT - - 85 + - 54 AS col0, 79 * + - 87
----
31
-6873

query I rowsort
SELECT - 10 * 28 AS col2
----
-280

query I rowsort
SELECT ALL + 21 * + + 18
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT - - 16 * - 3 * COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-7614
SELECT - - 16 * - 3 * COUNT ( * ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT - COUNT( ALL - 49 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7615
SELECT - COUNT ( ALL - 49 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 77 * - - 98
----
-7546

onlyif mysql # DIV for integer division: 
query I rowsort label-7617
SELECT - - 66 DIV - + 68
----
0

skipif mysql # not compatible
query I rowsort label-7617
SELECT - - 66 / - + 68
----
0

query I rowsort
SELECT ALL 15 + + 38
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7619
SELECT ALL 24 DIV - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL 24 / - 59 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7620
SELECT DISTINCT 8 DIV ( + 77 ) + - - 98
----
98

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT 8 / ( + 77 ) + - - 98
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7621
SELECT + NULLIF ( - 56, + - MIN( - - 78 ) + - 1 ) DIV + 6
----
-9

skipif mysql # not compatible
query I rowsort label-7621
SELECT + NULLIF ( - 56, + - MIN ( - - 78 ) + - 1 ) / + 6
----
-9

query I rowsort
SELECT 89 * 24 - 22 AS col2
----
2114

query I rowsort
SELECT + + NULLIF ( + 30, + 85 )
----
30

query I rowsort
SELECT DISTINCT + 45 * + + 91 + 19 col2
----
4114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7625
SELECT ALL - 41 / 7 + - CAST( NULL AS SIGNED ) + 11 + + ( - 41 ) + + 73 + + 23 * - 15 * - - COUNT( * ) + + 90 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL - 41 / 7 + - CAST ( NULL AS INTEGER ) + 11 + + ( - 41 ) + + 73 + + 23 * - 15 * - - COUNT ( * ) + + 90 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7626
SELECT ALL - MAX( DISTINCT - + 65 ) DIV - 93 - - - 11 + - 44 * + + 23 + - + 65 + + 54 - + + 8 * - CASE - 14 WHEN + 51 DIV - 74 + + - 41 THEN NULL ELSE 28 END - 49 * 40 AS col2
----
-2770

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - MAX ( DISTINCT - + 65 ) / - 93 - - - 11 + - 44 * + + 23 + - + 65 + + 54 - + + 8 * - CASE - 14 WHEN + 51 / - 74 + + - 41 THEN NULL ELSE 28 END - 49 * 40 AS col2
----
-2770

onlyif mysql # DIV for integer division: 
query I rowsort label-7627
SELECT ALL 4 DIV + 27 * + 4 + + + 52 + + 3 + + + ( 52 ) * 46
----
2447

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL 4 / + 27 * + 4 + + + 52 + + 3 + + + ( 52 ) * 46
----
2447

query I rowsort
SELECT DISTINCT + ( ( + 29 ) ) * - - 80
----
2320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7629
SELECT 52 AS col0, CAST( 20 AS SIGNED ) + - 58 col0
----
52
-38

skipif mysql # not compatible
query II rowsort label-7629
SELECT 52 AS col0, CAST ( 20 AS INTEGER ) + - 58 col0
----
52
-38

query I rowsort
SELECT 52 * - - ( + + 92 ) * + 35 + + 19
----
167459

query I rowsort
SELECT 72 * - 93
----
-6696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7632
SELECT ALL 30 - + COUNT( * ) * - 31 - - COUNT( * ) * - CAST( - + 51 AS DECIMAL ) + + 89 + + + CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7632
SELECT ALL 30 - + COUNT ( * ) * - 31 - - COUNT ( * ) * - CAST ( - + 51 AS REAL ) + + 89 + + + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) col2
----
NULL
1

query I rowsort
SELECT 87 * - 43 AS col1
----
-3741

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

skipif mysql # not compatible
query I rowsort label-7634
SELECT 58 + - - COUNT ( * ) AS col2
----
59

query I rowsort
SELECT DISTINCT 29 * + 66 AS col1
----
1914

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7636
SELECT ALL - CAST( - CASE + CAST( NULL AS DECIMAL ) WHEN - - 94 * 62 THEN - 8 * 34 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL - CAST ( - CASE + CAST ( NULL AS REAL ) WHEN - - 94 * 62 THEN - 8 * 34 END AS INTEGER )
----
NULL

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

query I rowsort
SELECT ALL 3 + + 71 * + - 68 + + 59
----
-4766

onlyif mysql # aggregate syntax: 
query II rowsort label-7639
SELECT 59 * COUNT( - 12 ) AS col1, + 22 AS col0
----
59
22

skipif mysql # not compatible
query II rowsort label-7639
SELECT 59 * COUNT ( - 12 ) AS col1, + 22 AS col0
----
59
22

query I rowsort
SELECT ALL + - CASE + + 52 WHEN - 38 THEN - 38 ELSE NULL END + - ( - 87 )
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + + 84, - 11 * - - 95 ) AS col0
----
84

query I rowsort
SELECT ALL + 98 + - + 56 col0
----
42

query I rowsort
SELECT 28 + 23 - + 33
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7644
SELECT NULLIF ( - - 66, - COUNT( * ) * + AVG ( ( + 12 ) ) ) + + 18 * + 72 + - + ( CAST( + 6 AS SIGNED ) ) AS col2
----
1356

skipif mysql # not compatible
query I rowsort label-7644
SELECT NULLIF ( - - 66, - COUNT ( * ) * + AVG ( ( + 12 ) ) ) + + 18 * + 72 + - + ( CAST ( + 6 AS INTEGER ) ) AS col2
----
1356

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT COUNT( ALL + 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7645
SELECT COUNT ( ALL + 90 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT 5 + + 12 + + COUNT( - + 2 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7646
SELECT 5 + + 12 + + COUNT ( - + 2 ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7647
SELECT + - COALESCE ( + 38, 82, - COUNT( * ) * - 25 DIV - ( - + 56 ) - 97 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-7647
SELECT + - COALESCE ( + 38, 82, - COUNT ( * ) * - 25 / - ( - + 56 ) - 97 ) AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7648
SELECT ALL COUNT( * ) + + - 30 + CAST( NULL AS SIGNED ) * + - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL COUNT ( * ) + + - 30 + CAST ( NULL AS INTEGER ) * + - 59 AS col0
----
NULL

query I rowsort
SELECT ALL - 83 + - 85 + + - 13 - + 83 + - + 41 AS col2
----
-305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7650
SELECT CAST( - AVG ( - 54 ) AS SIGNED ) DIV 53 + - COUNT( * ) * - + COALESCE ( COUNT( * ), - - NULLIF ( + 99, 83 ) * + + 8 + + 54 ) * + 6
----
7

skipif mysql # not compatible
query I rowsort label-7650
SELECT CAST ( - AVG ( - 54 ) AS INTEGER ) / 53 + - COUNT ( * ) * - + COALESCE ( COUNT ( * ), - - NULLIF ( + 99, 83 ) * + + 8 + + 54 ) * + 6
----
7

query I rowsort
SELECT 27 * + 99 + 42 AS col1
----
2715

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL - 84 - COUNT( * ) + 11 - 49 * 49
----
-2475

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL - 84 - COUNT ( * ) + 11 - 49 * 49
----
-2475

query I rowsort
SELECT 17 * 47 * - 88
----
-70312

query I rowsort
SELECT 53 * 79
----
4187

query I rowsort
SELECT DISTINCT 96 * 72 col1
----
6912

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT DISTINCT + 66 DIV - 17 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT + 66 / - 17 AS col1
----
-3

query I rowsort
SELECT ALL 72 * + 96
----
6912

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT + MAX( + + 94 ) * 87 + + 29 + - 69
----
8138

skipif mysql # not compatible
query I rowsort label-7658
SELECT + MAX ( + + 94 ) * 87 + + 29 + - 69
----
8138

onlyif mysql # aggregate syntax: 
query II rowsort label-7659
SELECT DISTINCT - 39 AS col1, COUNT( * )
----
-39
1

skipif mysql # not compatible
query II rowsort label-7659
SELECT DISTINCT - 39 AS col1, COUNT ( * )
----
-39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT 78 + + + MAX( DISTINCT - 73 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7660
SELECT 78 + + + MAX ( DISTINCT - 73 ) AS col0
----
5

query I rowsort
SELECT ALL - 76 * + + 52 col1
----
-3952

query II rowsort
SELECT 67 AS col1, - 24 AS col1
----
67
-24

query II rowsort
SELECT - 74 AS col0, - 99 AS col0
----
-74
-99

query I rowsort
SELECT 61 - + + 55
----
6

query I rowsort
SELECT 97 * + + 78
----
7566

query I rowsort
SELECT 68 * - 45
----
-3060

query I rowsort
SELECT 3 + 81
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7668
SELECT 83 AS col0, 3 / + 74 - - CAST( NULL AS DECIMAL ) AS col1
----
83
NULL

skipif mysql # not compatible
query II rowsort label-7668
SELECT 83 AS col0, 3 / + 74 - - CAST ( NULL AS REAL ) AS col1
----
83
NULL

query I rowsort
SELECT DISTINCT 23 + + + 99 col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT ALL SUM( - 43 ) + - 12 + - 21 + + 22 * - 14 col1
----
-384

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL SUM ( - 43 ) + - 12 + - 21 + + 22 * - 14 col1
----
-384

query I rowsort
SELECT + 40 * - - 1
----
40

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7673
SELECT DISTINCT 19 + - COUNT( * ) - + ( + 87 ) + - + 76 * 88 * 34 * + + CASE 24 WHEN + 80 * - 68 THEN ( + 36 ) * CAST( NULL AS SIGNED ) WHEN - 5 THEN + - 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT 19 + - COUNT ( * ) - + ( + 87 ) + - + 76 * 88 * 34 * + + CASE 24 WHEN + 80 * - 68 THEN ( + 36 ) * CAST ( NULL AS INTEGER ) WHEN - 5 THEN + - 28 END AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 92 AS col0, + 39 AS col1
----
-92
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7675
SELECT + 67 DIV COALESCE ( + 63, + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7675
SELECT + 67 / COALESCE ( + 63, + COUNT ( * ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT ALL + COUNT( * ) + + 91 * + 66 AS col1
----
6007

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL + COUNT ( * ) + + 91 * + 66 AS col1
----
6007

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7677
SELECT - 7 - 76 + + 72 DIV 50 + 36 - + CAST( 42 AS SIGNED ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7677
SELECT - 7 - 76 + + 72 / 50 + 36 - + CAST ( 42 AS INTEGER ) AS col0
----
-88

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7679
SELECT 22, - 40 + 34 + - + 66 * NULLIF ( + COALESCE ( - 72, - - 66 ), + 12 ) * - + COUNT( - 40 ) AS col2
----
22
-4758

skipif mysql # not compatible
query II rowsort label-7679
SELECT 22, - 40 + 34 + - + 66 * NULLIF ( + COALESCE ( - 72, - - 66 ), + 12 ) * - + COUNT ( - 40 ) AS col2
----
22
-4758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7680
SELECT 73 * - COUNT( * ) + ( CASE NULLIF ( - 58, - CAST( NULL AS SIGNED ) + + 26 + + - MAX( DISTINCT + ( - 37 ) ) * - 9 * - 66 * + - CASE 88 WHEN + COALESCE ( + + 7, + 60 * - 29 / + 8 * + ( CAST( - 72 AS DECIMAL ) ) + 26 ) * - ( 99 ) THEN + + 44 ELSE + 32 * + ( 52 ) / - + 59 END / - 70 / + + COUNT( * ) + 44 + + 65 + - + 75 - 97 * + 79 * - + 81 ) WHEN 34 * - 55 THEN CASE WHEN NOT - ( - 90 ) > + CASE + 80 WHEN ( - ( 76 ) ) THEN NULL WHEN - 50 * 56 THEN 14 ELSE NULL END * - COALESCE ( - NULLIF ( 77, 81 ) + ( - MIN( + 21 ) + - 91 ), 27, 60 ) + 96 THEN + ( + 28 ) - CAST( NULL AS SIGNED ) WHEN NULL BETWEEN NULL AND + COALESCE ( - MAX( + NULLIF ( + 76, - 70 * + 80 ) ), + 48 ) THEN + 36 + 43 ELSE + 32 END * 27 END ) + + 84 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT 73 * - COUNT ( * ) + ( CASE NULLIF ( - 58, - CAST ( NULL AS INTEGER ) + + 26 + + - MAX ( DISTINCT + ( - 37 ) ) * - 9 * - 66 * + - CASE 88 WHEN + COALESCE ( + + 7, + 60 * - 29 / + 8 * + ( CAST ( - 72 AS REAL ) ) + 26 ) * - ( 99 ) THEN + + 44 ELSE + 32 * + ( 52 ) / - + 59 END / - 70 / + + COUNT ( * ) + 44 + + 65 + - + 75 - 97 * + 79 * - + 81 ) WHEN 34 * - 55 THEN CASE WHEN NOT - ( - 90 ) > + CASE + 80 WHEN ( - ( 76 ) ) THEN NULL WHEN - 50 * 56 THEN 14 ELSE NULL END * - COALESCE ( - NULLIF ( 77, 81 ) + ( - MIN ( + 21 ) + - 91 ), 27, 60 ) + 96 THEN + ( + 28 ) - CAST ( NULL AS INTEGER ) WHEN NULL BETWEEN NULL AND + COALESCE ( - MAX ( + NULLIF ( + 76, - 70 * + 80 ) ), + 48 ) THEN + 36 + 43 ELSE + 32 END * 27 END ) + + 84 * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 75 * + + 34
----
2550

onlyif mysql # DIV for integer division: 
query I rowsort label-7682
SELECT DISTINCT 48 DIV - - 45 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT 48 / - - 45 AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7684
SELECT DISTINCT + + 71 AS col2, 85 + - COUNT( * ) AS col1
----
71
84

skipif mysql # not compatible
query II rowsort label-7684
SELECT DISTINCT + + 71 AS col2, 85 + - COUNT ( * ) AS col1
----
71
84

query II rowsort
SELECT + 48 AS col0, + 4
----
48
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7686
SELECT 52 * 40 * COUNT( DISTINCT - ( COALESCE ( - 91, 89 + + 71 * - - 61 ) ) ) + - 88, COUNT( * ) + 77 col2
----
1992
78

skipif mysql # not compatible
query II rowsort label-7686
SELECT 52 * 40 * COUNT ( DISTINCT - ( COALESCE ( - 91, 89 + + 71 * - - 61 ) ) ) + - 88, COUNT ( * ) + 77 col2
----
1992
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7687
SELECT ALL - 79 * NULLIF ( + ( + - 71 ), 80 * - 24 * 10 ) * CAST( NULL AS SIGNED ) + 49 * - 11 / - 93 + - ( - 79 ) * - 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - 79 * NULLIF ( + ( + - 71 ), 80 * - 24 * 10 ) * CAST ( NULL AS INTEGER ) + 49 * - 11 / - 93 + - ( - 79 ) * - 46 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7688
SELECT ALL + COALESCE ( + 36, - NULLIF ( - COUNT( * ), COUNT( CAST( NULL AS SIGNED ) ) * NULLIF ( COUNT( * ), 53 ) * 41 * + COUNT( * ) ) DIV - CASE + COUNT( * ) WHEN - + 18 * - + CASE + COUNT( * ) WHEN + 18 THEN + NULLIF ( CASE CAST( NULL AS SIGNED ) WHEN 73 * + 59 THEN - + 21 ELSE NULL END, - + 8 * - 89 * - + 47 ) * CASE - 65 WHEN COUNT( * ) + + 7 - ( + MIN( - 35 ) ) * - 22 THEN - - ( 4 ) * - - 67 * - 12 + - 69 END + - 65 + 31 - COUNT( ALL 61 ) * + COUNT( * ) END + + 75 THEN + 47 * CASE ( - 9 ) WHEN 29 + + 24 THEN - 91 WHEN 28 THEN - 62 END WHEN 96 + 21 * 61 THEN NULL END + + 81 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL + COALESCE ( + 36, - NULLIF ( - COUNT ( * ), COUNT ( CAST ( NULL AS INTEGER ) ) * NULLIF ( COUNT ( * ), 53 ) * 41 * + COUNT ( * ) ) / - CASE + COUNT ( * ) WHEN - + 18 * - + CASE + COUNT ( * ) WHEN + 18 THEN + NULLIF ( CASE CAST ( NULL AS INTEGER ) WHEN 73 * + 59 THEN - + 21 ELSE NULL END, - + 8 * - 89 * - + 47 ) * CASE - 65 WHEN COUNT ( * ) + + 7 - ( + MIN ( - 35 ) ) * - 22 THEN - - ( 4 ) * - - 67 * - 12 + - 69 END + - 65 + 31 - COUNT ( ALL 61 ) * + COUNT ( * ) END + + 75 THEN + 47 * CASE ( - 9 ) WHEN 29 + + 24 THEN - 91 WHEN 28 THEN - 62 END WHEN 96 + 21 * 61 THEN NULL END + + 81 ) AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT + CASE + + 96 WHEN + + CAST( 83 AS SIGNED ) THEN 51 * 64 - 82 + 95 + + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT + CASE + + 96 WHEN + + CAST ( 83 AS INTEGER ) THEN 51 * 64 - 82 + 95 + + 61 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7690
SELECT - 61 * 18, 2 * - + CAST( NULL AS SIGNED ) * - CASE - 31 WHEN + - 9 * - - 18 * - + 83 THEN + 67 END * COALESCE ( - 25, 58 / - + 11, - - 67 ) * + - 85 - + MIN( - + 2 ) col2
----
-1098
NULL

skipif mysql # not compatible
query II rowsort label-7690
SELECT - 61 * 18, 2 * - + CAST ( NULL AS INTEGER ) * - CASE - 31 WHEN + - 9 * - - 18 * - + 83 THEN + 67 END * COALESCE ( - 25, 58 / - + 11, - - 67 ) * + - 85 - + MIN ( - + 2 ) col2
----
-1098
NULL

query I rowsort
SELECT NULLIF ( 0, + + 19 + 1 + - 24 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT + 70 * - 52 + - NULLIF ( - COUNT( * ), ( - SUM( + + 15 ) ) * 3 * + 9 )
----
-3639

skipif mysql # not compatible
query I rowsort label-7692
SELECT + 70 * - 52 + - NULLIF ( - COUNT ( * ), ( - SUM ( + + 15 ) ) * 3 * + 9 )
----
-3639

query I rowsort
SELECT + 25 * + 53 * 42
----
55650

query I rowsort
SELECT - 89 + - 5 AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7695
SELECT ALL + COUNT( * ) DIV 24, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-7695
SELECT ALL + COUNT ( * ) / 24, COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT + 0 * - 59 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7697
SELECT 90 * CAST( - 39 AS SIGNED ) - - COALESCE ( - NULLIF ( COUNT( * ), + - 22 + + 76 + - 91 ), + MAX( DISTINCT - 95 ) )
----
-3511

skipif mysql # not compatible
query I rowsort label-7697
SELECT 90 * CAST ( - 39 AS INTEGER ) - - COALESCE ( - NULLIF ( COUNT ( * ), + - 22 + + 76 + - 91 ), + MAX ( DISTINCT - 95 ) )
----
-3511

query II rowsort
SELECT - 71 * 69 AS col0, - 34 * + + 86 col1
----
-4899
-2924

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL MAX( ( + + 83 ) ) * 21 - + + 77 * + + 16 * + MIN( DISTINCT + 99 ) + + ( - - 61 ) + + COUNT( * ) * + - 35
----
-120199

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL MAX ( ( + + 83 ) ) * 21 - + + 77 * + + 16 * + MIN ( DISTINCT + 99 ) + + ( - - 61 ) + + COUNT ( * ) * + - 35
----
-120199

query I rowsort
SELECT ALL + 18 + + 96 * + 4 + + 39 * + - 49
----
-1509

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT - CAST( ( + 4 ) AS SIGNED ) - + - 92
----
88

skipif mysql # not compatible
query I rowsort label-7701
SELECT - CAST ( ( + 4 ) AS INTEGER ) - + - 92
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT ALL - 42 + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL - 42 + COUNT ( * )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7703
SELECT ALL - - 14 + - 22 AS col1, + CASE - CAST( NULL AS SIGNED ) WHEN - 68 THEN 51 WHEN - 43 * + + 72 THEN NULL END
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-7703
SELECT ALL - - 14 + - 22 AS col1, + CASE - CAST ( NULL AS INTEGER ) WHEN - 68 THEN 51 WHEN - 43 * + + 72 THEN NULL END
----
-8
NULL

query II rowsort
SELECT ( + - 76 ), + 22 AS col1
----
-76
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT - 18 + CAST( + 58 AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7705
SELECT - 18 + CAST ( + 58 AS INTEGER ) AS col0
----
40

query I rowsort
SELECT ALL + 16 - + 44 col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7707
SELECT + - COUNT( * ) * 84 + + + CAST( - 95 AS SIGNED ) AS col1
----
-179

skipif mysql # not compatible
query I rowsort label-7707
SELECT + - COUNT ( * ) * 84 + + + CAST ( - 95 AS INTEGER ) AS col1
----
-179

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT + + 35 + + - COALESCE ( 71, 15 + + MIN( ALL - 8 ) ) - - 38 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7709
SELECT + + 35 + + - COALESCE ( 71, 15 + + MIN ( ALL - 8 ) ) - - 38 AS col1
----
2

query I rowsort
SELECT + + 77 * - 14 AS col1
----
-1078

query I rowsort
SELECT ALL + 66 * - - ( - 35 ) col2
----
-2310

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7712
SELECT ALL 37 - + 34 AS col0, - ( - - COALESCE ( + SUM( ALL + 77 ), + - 64 * 97 DIV NULLIF ( + 57, MIN( - 9 ) * NULLIF ( - 73, + 35 ) + + + 46 ) ) ) + + 77
----
3
0

skipif mysql # not compatible
query II rowsort label-7712
SELECT ALL 37 - + 34 AS col0, - ( - - COALESCE ( + SUM ( ALL + 77 ), + - 64 * 97 / NULLIF ( + 57, MIN ( - 9 ) * NULLIF ( - 73, + 35 ) + + + 46 ) ) ) + + 77
----
3
0

query I rowsort
SELECT - 7 * 74
----
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT DISTINCT + COUNT( * ) * - 12 * + 8
----
-96

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT + COUNT ( * ) * - 12 * + 8
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7715
SELECT + COUNT( * ) DIV + 70 + + + COUNT( * ) DIV + - COUNT( ALL + 38 ) DIV - COUNT( DISTINCT + - ( + 85 ) ) - + - 61
----
62

skipif mysql # not compatible
query I rowsort label-7715
SELECT + COUNT ( * ) / + 70 + + + COUNT ( * ) / + - COUNT ( ALL + 38 ) / - COUNT ( DISTINCT + - ( + 85 ) ) - + - 61
----
62

query I rowsort
SELECT + 73 + - + 22 AS col1
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT + CASE WHEN NOT + SUM( - + 87 ) IS NOT NULL THEN NULL ELSE - - 62 * + - MAX( DISTINCT - 54 ) + - + CASE + 60 WHEN + 93 THEN - COUNT( * ) + + COUNT( DISTINCT - - 45 ) ELSE NULL END END / + 45 * - 78 * 11 / - + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7718
SELECT + CASE WHEN NOT + SUM ( - + 87 ) IS NOT NULL THEN NULL ELSE - - 62 * + - MAX ( DISTINCT - 54 ) + - + CASE + 60 WHEN + 93 THEN - COUNT ( * ) + + COUNT ( DISTINCT - - 45 ) ELSE NULL END END / + 45 * - 78 * 11 / - + 49 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT ALL 19 DIV + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL 19 / + 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT + NULLIF ( + CASE + 61 WHEN 31 THEN + 35 * - 15 + + + 29 + 82 WHEN + - 21 * ( - + COALESCE ( - 29, - + 81 ) ) + 94 THEN NULL END, + + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT + NULLIF ( + CASE + 61 WHEN 31 THEN + 35 * - 15 + + + 29 + 82 WHEN + - 21 * ( - + COALESCE ( - 29, - + 81 ) ) + 94 THEN NULL END, + + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT + ( - COALESCE ( 61, - 38, - COUNT( * ) ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-7721
SELECT + ( - COALESCE ( 61, - 38, - COUNT ( * ) ) ) AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT ALL 53 DIV + 64 * + 77 * + 49 * 43 + - 65 col0
----
-65

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL 53 / + 64 * + 77 * + 49 * 43 + - 65 col0
----
-65

query I rowsort
SELECT + 95 + - + 43 * - 73
----
3234

query I rowsort
SELECT - 59 + 79
----
20

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

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

query I rowsort
SELECT DISTINCT + 4 * 12 AS col0
----
48

query I rowsort
SELECT DISTINCT 65 * 50 + + 37
----
3287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7728
SELECT - 27 * - 1 * CAST( 53 AS SIGNED ) + - CAST( - COUNT( * ) AS SIGNED )
----
1432

skipif mysql # not compatible
query I rowsort label-7728
SELECT - 27 * - 1 * CAST ( 53 AS INTEGER ) + - CAST ( - COUNT ( * ) AS INTEGER )
----
1432

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7730
SELECT - - 5 DIV + + MIN( + 50 )
----
0

skipif mysql # not compatible
query I rowsort label-7730
SELECT - - 5 / + + MIN ( + 50 )
----
0

query I rowsort
SELECT - 93 - + + 87 AS col1
----
-180

query II rowsort
SELECT - + 80 AS col0, COALESCE ( - - 0, CASE + 88 WHEN + 44 * - 90 THEN + NULLIF ( 7, 26 * - - 84 ) END, 43 * - + 48 ) + 49 AS col0
----
-80
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7733
SELECT ALL ( - CAST( 91 AS SIGNED ) ) col2, - 11 AS col1
----
-91
-11

skipif mysql # not compatible
query II rowsort label-7733
SELECT ALL ( - CAST ( 91 AS INTEGER ) ) col2, - 11 AS col1
----
-91
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT DISTINCT - 17 DIV + + 59 col0
----
0

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT - 17 / + + 59 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7735
SELECT + 43 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-7735
SELECT + 43 / - 77
----
0

query II rowsort
SELECT 32, + 72 AS col0
----
32
72

query I rowsort
SELECT + 5 - + + 68
----
-63

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

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL - MIN ( 68 )
----
-68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT - 92 * + - NULLIF ( - 9, + + CAST( NULL AS SIGNED ) )
----
-828

skipif mysql # not compatible
query I rowsort label-7740
SELECT - 92 * + - NULLIF ( - 9, + + CAST ( NULL AS INTEGER ) )
----
-828

query I rowsort
SELECT 93 * 71 * + 34 AS col0
----
224502

query I rowsort
SELECT DISTINCT + - 2 * - 43
----
86

query I rowsort
SELECT ALL 8 + 94 AS col0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT - CAST( NULL AS SIGNED ) * 45 + - 92 / + SUM( - + CAST( NULL AS SIGNED ) ) + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7744
SELECT - CAST ( NULL AS INTEGER ) * 45 + - 92 / + SUM ( - + CAST ( NULL AS INTEGER ) ) + 44
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7745
SELECT 81 * + + 10 DIV + 10 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7745
SELECT 81 * + + 10 / + 10 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT 90 * + 69 + - - 37 + - 86 * + - COUNT( * ) + - - 8
----
6341

skipif mysql # not compatible
query I rowsort label-7746
SELECT 90 * + 69 + - - 37 + - 86 * + - COUNT ( * ) + - - 8
----
6341

query I rowsort
SELECT ALL 13 + - 22 + 23
----
14

query I rowsort
SELECT ALL 72 + - 8 + - 99
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7749
SELECT + 62 DIV 54 + - 73 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-7749
SELECT + 62 / 54 + - 73 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT DISTINCT - ( - NULLIF ( - COUNT( * ), + 78 * + 84 / + COUNT( * ) + - 98 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT - ( - NULLIF ( - COUNT ( * ), + 78 * + 84 / + COUNT ( * ) + - 98 ) ) AS col1
----
-1

query II rowsort
SELECT ALL - 17 + 19, - 80 AS col0
----
2
-80

query I rowsort
SELECT DISTINCT 71 + 35 AS col0
----
106

query I rowsort
SELECT ALL + ( + 86 ) + 69
----
155

query I rowsort
SELECT + 77 * + + 68 AS col1
----
5236

query II rowsort
SELECT 49 * 47 * - - 29 + ( + 74 ) - + - 37 - - + 21 AS col0, 9 - - 79
----
66919
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT COUNT( 6 ) + + 82
----
83

skipif mysql # not compatible
query I rowsort label-7756
SELECT COUNT ( 6 ) + + 82
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7757
SELECT 28 * ( ( - - CASE + - ( + + 21 ) WHEN - + 8 THEN NULL WHEN + - 63 + - COUNT( * ) THEN + 76 * - 30 ELSE 5 * - 93 * - 42 END ) ), MAX( ALL - 79 ) AS col2
----
546840
-79

skipif mysql # not compatible
query II rowsort label-7757
SELECT 28 * ( ( - - CASE + - ( + + 21 ) WHEN - + 8 THEN NULL WHEN + - 63 + - COUNT ( * ) THEN + 76 * - 30 ELSE 5 * - 93 * - 42 END ) ), MAX ( ALL - 79 ) AS col2
----
546840
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT - CASE + 10 WHEN - COUNT( * ) THEN NULL WHEN + + ( + 28 ) THEN + 79 / + + CASE + 61 WHEN - - 78 * + 28 - + 4 * + + 66 THEN - NULLIF ( + 56, 67 ) + - 36 ELSE - NULLIF ( - + 51, - 54 ) * + NULLIF ( + + 5, 25 ) END + 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT - CASE + 10 WHEN - COUNT ( * ) THEN NULL WHEN + + ( + 28 ) THEN + 79 / + + CASE + 61 WHEN - - 78 * + 28 - + 4 * + + 66 THEN - NULLIF ( + 56, 67 ) + - 36 ELSE - NULLIF ( - + 51, - 54 ) * + NULLIF ( + + 5, 25 ) END + 95 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7759
SELECT DISTINCT + 88 - + 13 * + ( + COUNT( * ) ) DIV + + 28 DIV - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT + 88 - + 13 * + ( + COUNT ( * ) ) / + + 28 / - COUNT ( * )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7760
SELECT ALL 10 * - - 74 DIV + 1 * + COUNT( * ) AS col2
----
740

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL 10 * - - 74 / + 1 * + COUNT ( * ) AS col2
----
740

query I rowsort
SELECT 7 * - + 17 - - + 4 AS col1
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7762
SELECT + MIN( ALL 29 ) * 0 DIV - 65 col0, + 64 + 26 AS col2
----
0
90

skipif mysql # not compatible
query II rowsort label-7762
SELECT + MIN ( ALL 29 ) * 0 / - 65 col0, + 64 + 26 AS col2
----
0
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7763
SELECT CASE + 95 WHEN - 7 THEN + COUNT( * ) + 27 + - + CAST( NULL AS DECIMAL ) + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT CASE + 95 WHEN - 7 THEN + COUNT ( * ) + 27 + - + CAST ( NULL AS REAL ) + 22 END
----
NULL

query I rowsort
SELECT 28 - 40 * - + 46
----
1868

onlyif mysql # DIV for integer division: 
query I rowsort label-7765
SELECT + 16 + + - 60 DIV - 38
----
17

skipif mysql # not compatible
query I rowsort label-7765
SELECT + 16 + + - 60 / - 38
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7766
SELECT ALL - 72 DIV + 41
----
-1

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL - 72 / + 41
----
-1

query I rowsort
SELECT 77 + + 63
----
140

query I rowsort
SELECT ALL 99 + 92
----
191

onlyif mysql # DIV for integer division: 
query I rowsort label-7769
SELECT - 43 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-7769
SELECT - 43 / 89
----
0

query I rowsort
SELECT ALL - 23 + - 42 AS col1
----
-65

query I rowsort
SELECT - 52 + - ( 12 ) - + 54
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7772
SELECT ALL - COALESCE ( + + 56, - - ( - 30 ), - SUM( - ( + 46 ) ) ) DIV 80 + - 87 - - CAST( + + 2 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL - COALESCE ( + + 56, - - ( - 30 ), - SUM ( - ( + 46 ) ) ) / 80 + - 87 - - CAST ( + + 2 AS INTEGER )
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7773
SELECT 71 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT 71 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 3 * 51
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-7775
SELECT 45 DIV + - 19 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7775
SELECT 45 / + - 19 AS col1
----
-2

query II rowsort
SELECT 81 + - + 82 + 65 AS col1, - 39 + - 72 AS col2
----
64
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT ALL + 31 + - - 2 * + 25 + 8 * 18, 89 * + - COUNT( * ) AS col1
----
225
-89

skipif mysql # not compatible
query II rowsort label-7777
SELECT ALL + 31 + - - 2 * + 25 + 8 * 18, 89 * + - COUNT ( * ) AS col1
----
225
-89

query I rowsort
SELECT DISTINCT + 76 + + - 53 AS col0
----
23

query II rowsort
SELECT + 9 AS col0, 10
----
9
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7780
SELECT ALL 14 * 45 + CAST( NULL AS SIGNED ) * + 26 / + - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL 14 * 45 + CAST ( NULL AS INTEGER ) * + 26 / + - 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7781
SELECT ALL - 69 * + 11 + 70 + + + 45 - - COUNT( * ) * + 12 * 10 + + 52 AS col2, 52 AS col0
----
-472
52

skipif mysql # not compatible
query II rowsort label-7781
SELECT ALL - 69 * + 11 + 70 + + + 45 - - COUNT ( * ) * + 12 * 10 + + 52 AS col2, 52 AS col0
----
-472
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7782
SELECT ALL - NULLIF ( 68, - 14 + CAST( NULL AS SIGNED ) * + 60 + NULLIF ( - CASE WHEN + COUNT( * ) IS NOT NULL THEN + 77 END, 13 * - 35 ) ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL - NULLIF ( 68, - 14 + CAST ( NULL AS INTEGER ) * + 60 + NULLIF ( - CASE WHEN + COUNT ( * ) IS NOT NULL THEN + 77 END, 13 * - 35 ) ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT 77 * 77 * COUNT( * ) * + 12
----
71148

skipif mysql # not compatible
query I rowsort label-7783
SELECT 77 * 77 * COUNT ( * ) * + 12
----
71148

onlyif mysql # DIV for integer division: 
query I rowsort label-7784
SELECT DISTINCT - 86 DIV COALESCE ( 5, + 10, 78 - ( + 67 ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT - 86 / COALESCE ( 5, + 10, 78 - ( + 67 ) ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT + 19 * + 34 + + COUNT( * ) + + 35
----
682

skipif mysql # not compatible
query I rowsort label-7785
SELECT + 19 * + 34 + + COUNT ( * ) + + 35
----
682

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT - COUNT( * ) * ( - 44 ) * - + 28 + + 75 + 92 + + 80 + 90 * - ( + 91 )
----
-9175

skipif mysql # not compatible
query I rowsort label-7786
SELECT - COUNT ( * ) * ( - 44 ) * - + 28 + + 75 + 92 + + 80 + 90 * - ( + 91 )
----
-9175

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT 23 * 72 + - 6 + + + 2 * - 64 * + COUNT( * ) + + + COUNT( * )
----
1523

skipif mysql # not compatible
query I rowsort label-7788
SELECT 23 * 72 + - 6 + + + 2 * - 64 * + COUNT ( * ) + + + COUNT ( * )
----
1523

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT + 11 * + COUNT( * ) + + MIN( DISTINCT + 3 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-7789
SELECT + 11 * + COUNT ( * ) + + MIN ( DISTINCT + 3 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT + 36 * + + COUNT( * ) + - 43 + 1 * - + ( 80 )
----
-87

skipif mysql # not compatible
query I rowsort label-7790
SELECT + 36 * + + COUNT ( * ) + - 43 + 1 * - + ( 80 )
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT ALL - 68 DIV + 80 * + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL - 68 / + 80 * + 32 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7792
SELECT + + 4 * - 72 * 47, + COUNT( * ) + + - 38 AS col1
----
-13536
-37

skipif mysql # not compatible
query II rowsort label-7792
SELECT + + 4 * - 72 * 47, + COUNT ( * ) + + - 38 AS col1
----
-13536
-37

query I rowsort
SELECT + 56 + 23 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ALL 44 * + 70 * - MIN( + 51 ) AS col2
----
-157080

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL 44 * + 70 * - MIN ( + 51 ) AS col2
----
-157080

query II rowsort
SELECT + NULLIF ( - - 14, + 58 * 96 ) * 3 AS col1, - 14
----
42
-14

query I rowsort
SELECT ALL 83 + - ( - 97 )
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7797
SELECT ALL + + MAX( + + NULLIF ( - CAST( - - 48 AS SIGNED ), + CAST( NULL AS SIGNED ) ) ) + - - 68 + - 53
----
-33

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL + + MAX ( + + NULLIF ( - CAST ( - - 48 AS INTEGER ), + CAST ( NULL AS INTEGER ) ) ) + - - 68 + - 53
----
-33

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

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

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

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

query I rowsort
SELECT ALL - 83 * + 45
----
-3735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7801
SELECT - CASE - 44 WHEN + + 72 + + - 79 + - 47 * + - CASE + 24 WHEN - + 49 THEN NULL WHEN - 80 * - 85 / + + 55 * - - CAST( NULL AS SIGNED ) + + ( + 58 ) THEN - 60 / + COALESCE ( 87, - 14 ) END + + SUM( DISTINCT + 14 ) THEN + - SUM( DISTINCT ( - 8 ) ) * 58 / 46 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT - CASE - 44 WHEN + + 72 + + - 79 + - 47 * + - CASE + 24 WHEN - + 49 THEN NULL WHEN - 80 * - 85 / + + 55 * - - CAST ( NULL AS INTEGER ) + + ( + 58 ) THEN - 60 / + COALESCE ( 87, - 14 ) END + + SUM ( DISTINCT + 14 ) THEN + - SUM ( DISTINCT ( - 8 ) ) * 58 / 46 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL 96 + ( + 37 ) - + - 64 + - 7 * - 68 + - 30 * + SUM( + 94 ) AS col1
----
-2147

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL 96 + ( + 37 ) - + - 64 + - 7 * - 68 + - 30 * + SUM ( + 94 ) AS col1
----
-2147

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT + NULLIF ( - + COUNT( * ), 10 ) - - - 51 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7803
SELECT + NULLIF ( - + COUNT ( * ), 10 ) - - - 51 AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7804
SELECT - COALESCE ( COUNT( * ), - 89 * - + COALESCE ( - - 20, + - CAST( NULL AS SIGNED ), CAST( - - ( + 59 ) AS SIGNED ) + CASE - 58 WHEN - 53 THEN + - COUNT( * ) WHEN + + 14 DIV + 91 THEN NULL ELSE + COALESCE ( 2, - - CASE - 9 WHEN 40 THEN - + 75 * ( + CASE + 51 WHEN + COUNT( * ) THEN - + 88 END ) DIV + 12 ELSE 91 END * - + COUNT( * ) + 61 * - COUNT( * ) + + - 79 + + 49 * - CAST( - 58 AS SIGNED ), - + 24 * 81 ) END DIV - - 9 DIV 55 ) + + 39 + 63 * 40 - + 56 DIV COUNT( * ) * + 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7804
SELECT - COALESCE ( COUNT ( * ), - 89 * - + COALESCE ( - - 20, + - CAST ( NULL AS INTEGER ), CAST ( - - ( + 59 ) AS INTEGER ) + CASE - 58 WHEN - 53 THEN + - COUNT ( * ) WHEN + + 14 / + 91 THEN NULL ELSE + COALESCE ( 2, - - CASE - 9 WHEN 40 THEN - + 75 * ( + CASE + 51 WHEN + COUNT ( * ) THEN - + 88 END ) / + 12 ELSE 91 END * - + COUNT ( * ) + 61 * - COUNT ( * ) + + - 79 + + 49 * - CAST ( - 58 AS INTEGER ), - + 24 * 81 ) END / - - 9 / 55 ) + + 39 + 63 * 40 - + 56 / COUNT ( * ) * + 79 ) AS col1
----
-1

query I rowsort
SELECT + 78 - - - 29
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7806
SELECT ALL COUNT( * ), 95 col0
----
1
95

skipif mysql # not compatible
query II rowsort label-7806
SELECT ALL COUNT ( * ), 95 col0
----
1
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7807
SELECT ALL - 99 - + ( - 52 ) - - 3 + - 37 * - CAST( + 92 AS SIGNED )
----
3360

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL - 99 - + ( - 52 ) - - 3 + - 37 * - CAST ( + 92 AS INTEGER )
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT - 24 - + - 83 * - + 34 + + MIN( DISTINCT + 63 ) + - MAX( ALL 25 ) * + 74 col1
----
-4633

skipif mysql # not compatible
query I rowsort label-7808
SELECT - 24 - + - 83 * - + 34 + + MIN ( DISTINCT + 63 ) + - MAX ( ALL 25 ) * + 74 col1
----
-4633

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT - 1 DIV 66 * - + 88
----
0

skipif mysql # not compatible
query I rowsort label-7809
SELECT - 1 / 66 * - + 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT - 18 * - 83 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT - 18 * - 83 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT + 15 DIV - ( 91 ) + + 97 + - 27
----
70

skipif mysql # not compatible
query I rowsort label-7811
SELECT + 15 / - ( 91 ) + + 97 + - 27
----
70

query I rowsort
SELECT ALL - 1 * 35
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT DISTINCT + CAST( MAX( + 96 ) AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT + CAST ( MAX ( + 96 ) AS INTEGER )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7814
SELECT DISTINCT + - COUNT( * ), 22 + + + ( + 15 ) AS col1, - CASE - + 23 WHEN 38 THEN - 8 WHEN 62 THEN NULL WHEN - - 12 / - - 57 + 79 / - - 2 * CAST( NULL AS SIGNED ) THEN - - 36 * - ( 28 ) / + - 17 * + 98 / - 54 + 54 - + 77 + + 71 - + CAST( NULL AS SIGNED ) - + 56 + + SUM( + ( + ( - ( + - 3 ) ) ) ) END col0
----
-1
37
NULL

skipif mysql # not compatible
query III rowsort label-7814
SELECT DISTINCT + - COUNT ( * ), 22 + + + ( + 15 ) AS col1, - CASE - + 23 WHEN 38 THEN - 8 WHEN 62 THEN NULL WHEN - - 12 / - - 57 + 79 / - - 2 * CAST ( NULL AS INTEGER ) THEN - - 36 * - ( 28 ) / + - 17 * + 98 / - 54 + 54 - + 77 + + 71 - + CAST ( NULL AS INTEGER ) - + 56 + + SUM ( + ( + ( - ( + - 3 ) ) ) ) END col0
----
-1
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL + COALESCE ( + 10, COUNT( * ) * - 3 )
----
10

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + COALESCE ( + 10, COUNT ( * ) * - 3 )
----
10

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7817
SELECT - - 97 DIV COUNT( * ) + - 71 - + NULLIF ( 93, COUNT( * ) * 80 ) - 95 * + + 14 AS col1
----
-1397

skipif mysql # not compatible
query I rowsort label-7817
SELECT - - 97 / COUNT ( * ) + - 71 - + NULLIF ( 93, COUNT ( * ) * 80 ) - 95 * + + 14 AS col1
----
-1397

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT ALL + - COUNT( 13 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL + - COUNT ( 13 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7819
SELECT + 32 DIV ( + + 73 ) DIV - - NULLIF ( + 89, + - MIN( DISTINCT ( + 51 ) ) * + 7 * - + CAST( NULL AS SIGNED ) + + 68 + + NULLIF ( - 0, - + 53 * 61 + - + 2 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7819
SELECT + 32 / ( + + 73 ) / - - NULLIF ( + 89, + - MIN ( DISTINCT ( + 51 ) ) * + 7 * - + CAST ( NULL AS INTEGER ) + + 68 + + NULLIF ( - 0, - + 53 * 61 + - + 2 ) ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 5 * + + 95 AS col0
----
475

query I rowsort
SELECT ALL + - 52 * + + 24 + - + 63 AS col1
----
-1311

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7822
SELECT - + 67 / CAST( NULL AS DECIMAL ) * - COUNT( + 23 ) + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT - + 67 / CAST ( NULL AS REAL ) * - COUNT ( + 23 ) + 44 AS col1
----
NULL

query I rowsort
SELECT ALL 12 * - 63 + - - 4 + + 50
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT DISTINCT + + SUM( + 28 ) * - 3
----
-84

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT + + SUM ( + 28 ) * - 3
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7825
SELECT ALL - + 54 * + COUNT( * ) + - 13 + - - 67 DIV - NULLIF ( - 78, - 97 ) * - + MIN( ALL + CASE + + 85 WHEN + - 2 THEN 25 ELSE + + 47 END )
----
-67

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL - + 54 * + COUNT ( * ) + - 13 + - - 67 / - NULLIF ( - 78, - 97 ) * - + MIN ( ALL + CASE + + 85 WHEN + - 2 THEN 25 ELSE + + 47 END )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT + COUNT( * ) - 14
----
-13

skipif mysql # not compatible
query I rowsort label-7826
SELECT + COUNT ( * ) - 14
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT ALL 33 * - 79 + - COUNT( * )
----
-2608

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL 33 * - 79 + - COUNT ( * )
----
-2608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7828
SELECT COUNT( DISTINCT + + CASE WHEN NULL > 17 THEN + CAST( NULL AS SIGNED ) ELSE NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-7828
SELECT COUNT ( DISTINCT + + CASE WHEN NULL > 17 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7829
SELECT MIN( + - 58 ), + 26 AS col0
----
-58
26

skipif mysql # not compatible
query II rowsort label-7829
SELECT MIN ( + - 58 ), + 26 AS col0
----
-58
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT + SUM( DISTINCT + 7 ) + + 64 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7830
SELECT + SUM ( DISTINCT + 7 ) + + 64 AS col1
----
71

query I rowsort
SELECT DISTINCT 84 * - COALESCE ( + + 77, + 8 ) col1
----
-6468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7832
SELECT ALL NULLIF ( + 32, 32 ) - - CAST( + + 49 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL NULLIF ( + 32, 32 ) - - CAST ( + + 49 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 13 * ( ( + 45 ) ) AS col0
----
585

query I rowsort
SELECT - COALESCE ( - 94, + - 49 )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7835
SELECT + 1 + + CASE + CASE - - 32 WHEN + 95 THEN - 20 WHEN - SUM( + 92 ) THEN NULL END WHEN - 61 THEN - 92 END col1, 61
----
NULL
61

skipif mysql # not compatible
query II rowsort label-7835
SELECT + 1 + + CASE + CASE - - 32 WHEN + 95 THEN - 20 WHEN - SUM ( + 92 ) THEN NULL END WHEN - 61 THEN - 92 END col1, 61
----
NULL
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT - 77 + + 79 + - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7837
SELECT - 77 + + 79 + - COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL MIN( DISTINCT - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL MIN ( DISTINCT - 32 )
----
-32

query I rowsort
SELECT - 95 * - NULLIF ( + - 37, 0 )
----
-3515

query I rowsort
SELECT - 53 + + 90
----
37

query I rowsort
SELECT - 71 + + - 6
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL COALESCE ( + ( 41 ), + - COUNT( DISTINCT - 31 ) + ( + COUNT( * ) ), + 53 * + ( + + 93 ) ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL COALESCE ( + ( 41 ), + - COUNT ( DISTINCT - 31 ) + ( + COUNT ( * ) ), + 53 * + ( + + 93 ) ) AS col0
----
41

query I rowsort
SELECT ALL CASE + 62 WHEN - 35 THEN + + 96 WHEN + - 53 THEN + 21 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT + 59 * + COUNT( * ) * 79
----
4661

skipif mysql # not compatible
query I rowsort label-7844
SELECT + 59 * + COUNT ( * ) * 79
----
4661

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7846
SELECT ALL CASE + + 0 WHEN NULLIF ( MIN( ALL - 77 ), + 99 * + 8 * + 69 * - 14 - - COUNT( ALL - - 83 ) + + - 68 + + + 91 * ( 90 ) ) THEN 79 * - CAST( - 77 AS DECIMAL ) + 66 - 32 + + AVG ( ALL - - ( - + 73 ) ) END / - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL CASE + + 0 WHEN NULLIF ( MIN ( ALL - 77 ), + 99 * + 8 * + 69 * - 14 - - COUNT ( ALL - - 83 ) + + - 68 + + + 91 * ( 90 ) ) THEN 79 * - CAST ( - 77 AS REAL ) + 66 - 32 + + AVG ( ALL - - ( - + 73 ) ) END / - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - 89 + - COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-7847
SELECT - 89 + - COUNT ( * ) AS col0
----
-90

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

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

query I rowsort
SELECT - 2 * 38 + + + 80 AS col2
----
4

query II rowsort
SELECT 72 * - 60 AS col0, - 63 * 78 AS col2
----
-4320
-4914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7851
SELECT ALL + - CASE + 98 WHEN + COUNT( * ) THEN - + 67 / - ( - 38 ) + - + CAST( NULL AS SIGNED ) * - 96 + + CASE + - 2 WHEN + CAST( NULL AS SIGNED ) THEN 49 ELSE NULL END WHEN + - 31 THEN + 11 END * - ( ( - - 10 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL + - CASE + 98 WHEN + COUNT ( * ) THEN - + 67 / - ( - 38 ) + - + CAST ( NULL AS INTEGER ) * - 96 + + CASE + - 2 WHEN + CAST ( NULL AS INTEGER ) THEN 49 ELSE NULL END WHEN + - 31 THEN + 11 END * - ( ( - - 10 ) ) AS col0
----
NULL

query I rowsort
SELECT COALESCE ( 5, + 17 ) AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7853
SELECT - + COUNT( + 59 ) DIV + + 29 + + 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7853
SELECT - + COUNT ( + 59 ) / + + 29 + + 9 AS col2
----
9

query I rowsort
SELECT 5 - + ( - 64 ) * - 80 AS col1
----
-5115

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT + 69 * + 43 + - COUNT( * ) AS col1
----
2966

skipif mysql # not compatible
query I rowsort label-7855
SELECT + 69 * + 43 + - COUNT ( * ) AS col1
----
2966

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL + SUM( DISTINCT + 21 ) + - + 32 + - COALESCE ( - COUNT( - 86 ), + + 68 * - 86 - 30 * 23 + - - 5 )
----
-10

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL + SUM ( DISTINCT + 21 ) + - + 32 + - COALESCE ( - COUNT ( - 86 ), + + 68 * - 86 - 30 * 23 + - - 5 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT ALL + COUNT( * ) + + 48 + 23 col0
----
72

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + COUNT ( * ) + + 48 + 23 col0
----
72

query I rowsort
SELECT ALL - 85 + - - 6 + + 82
----
3

query I rowsort
SELECT ALL + 27 + - + 52
----
-25

query II rowsort
SELECT 75 - - 98 AS col1, + 65
----
173
65

query I rowsort
SELECT DISTINCT + 33 * - CASE 65 WHEN - 2 * - 20 THEN NULL ELSE + 71 END AS col1
----
-2343

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT NULLIF ( 75, - 95 ) * - - COUNT( * ) col1
----
75

skipif mysql # not compatible
query I rowsort label-7862
SELECT NULLIF ( 75, - 95 ) * - - COUNT ( * ) col1
----
75

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

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

query I rowsort
SELECT ALL + 99 - + 92
----
7

query I rowsort
SELECT DISTINCT - 44 - + 84
----
-128

query II rowsort
SELECT DISTINCT + 90 * - 75 * + 75 AS col1, + 74 col1
----
-506250
74

query I rowsort
SELECT ALL 43 - + 82
----
-39

query II rowsort
SELECT 47, - 77 col1
----
47
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7869
SELECT CASE MIN( + 80 ) WHEN + COUNT( * ) + + - CAST( NULL AS DECIMAL ) THEN - - ( - 9 ) * + 20 END * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT CASE MIN ( + 80 ) WHEN + COUNT ( * ) + + - CAST ( NULL AS REAL ) THEN - - ( - 9 ) * + 20 END * 54
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT DISTINCT - 18 * - CAST( NULL AS SIGNED ) * - + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT - 18 * - CAST ( NULL AS INTEGER ) * - + 21 AS col1
----
NULL

query I rowsort
SELECT 77 * - 87
----
-6699

query I rowsort
SELECT 80 * - - 14
----
1120

query I rowsort
SELECT 15 * + - 82
----
-1230

query I rowsort
SELECT 86 - + + 41
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7875
SELECT SUM( - 33 ) - + ( - 7 ) + + + CAST( + 41 AS SIGNED ) col1, - 29 DIV + 64
----
15
0

skipif mysql # not compatible
query II rowsort label-7875
SELECT SUM ( - 33 ) - + ( - 7 ) + + + CAST ( + 41 AS INTEGER ) col1, - 29 / + 64
----
15
0

query II rowsort
SELECT ALL 16 AS col1, 81 AS col0
----
16
81

query II rowsort
SELECT DISTINCT 67 col0, 67
----
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT NULLIF ( ( - - COUNT( * ) ), 93 ) * + 49
----
49

skipif mysql # not compatible
query I rowsort label-7878
SELECT NULLIF ( ( - - COUNT ( * ) ), 93 ) * + 49
----
49

query I rowsort
SELECT ALL ( - 14 ) * - 50 AS col0
----
700

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7881
SELECT ALL 27 AS col0, - 35 DIV 74 AS col0
----
27
0

skipif mysql # not compatible
query II rowsort label-7881
SELECT ALL 27 AS col0, - 35 / 74 AS col0
----
27
0

query I rowsort
SELECT COALESCE ( + 95, - + 94 ) + - - 88
----
183

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

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

query I rowsort
SELECT 91 * + + 41 + - 51
----
3680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7885
SELECT 20 + + - 75 + - CASE - 62 WHEN - + 55 * + CAST( NULL AS SIGNED ) * - 96 + + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 1 * - 30 * 78 / - + 30 THEN + 61 * - - 54 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT 20 + + - 75 + - CASE - 62 WHEN - + 55 * + CAST ( NULL AS INTEGER ) * - 96 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 1 * - 30 * 78 / - + 30 THEN + 61 * - - 54 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT DISTINCT - MAX( ALL + NULLIF ( - 5, 98 ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT - MAX ( ALL + NULLIF ( - 5, 98 ) ) AS col0
----
5

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

query I rowsort
SELECT ALL - 56 + - COALESCE ( 96, - 37 ) AS col2
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7889
SELECT + CAST( + + AVG ( DISTINCT 6 ) AS SIGNED ) * - COUNT( * ) + - 7 col2
----
-13

skipif mysql # not compatible
query I rowsort label-7889
SELECT + CAST ( + + AVG ( DISTINCT 6 ) AS INTEGER ) * - COUNT ( * ) + - 7 col2
----
-13

query I rowsort
SELECT ALL - 53 + + - 6 AS col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7891
SELECT ALL 77 + - + 51 / + 26 + 83 / - + ( - 35 ) + 23 + 3 * COUNT( * ) * - CASE - 28 WHEN + 66 THEN - SUM( 77 ) * - + 28 * CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL 77 + - + 51 / + 26 + 83 / - + ( - 35 ) + 23 + 3 * COUNT ( * ) * - CASE - 28 WHEN + 66 THEN - SUM ( 77 ) * - + 28 * CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT + + COALESCE ( ( 40 ), - + NULLIF ( + 8, 50 ) ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT + SUM( 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7893
SELECT + SUM ( 72 ) AS col0
----
72

query I rowsort
SELECT ALL + 4 * - 90 * 62 + - 90
----
-22410

query I rowsort
SELECT + 69 + + 88 * + 77
----
6845

onlyif mysql # DIV for integer division: 
query I rowsort label-7896
SELECT DISTINCT - + COALESCE ( - - 25, + + 16 + 90 DIV - 18 * - 11 * 19 )
----
-25

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT - + COALESCE ( - - 25, + + 16 + 90 / - 18 * - 11 * 19 )
----
-25

query I rowsort
SELECT ALL - + 53 - + ( 83 ) AS col0
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7898
SELECT DISTINCT - CAST( - ( - COUNT( ALL + 27 ) ) AS SIGNED ) AS col2, COALESCE ( 88, COUNT( COALESCE ( - 90, + 93 ) ) * 28 + + COUNT( * ) )
----
-1
88

skipif mysql # not compatible
query II rowsort label-7898
SELECT DISTINCT - CAST ( - ( - COUNT ( ALL + 27 ) ) AS INTEGER ) AS col2, COALESCE ( 88, COUNT ( COALESCE ( - 90, + 93 ) ) * 28 + + COUNT ( * ) )
----
-1
88

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

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

query I rowsort
SELECT 90 * - 44 col2
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT 25 * + - 95 * + 41 * - - MIN( ( - 68 ) )
----
6621500

skipif mysql # not compatible
query I rowsort label-7901
SELECT 25 * + - 95 * + 41 * - - MIN ( ( - 68 ) )
----
6621500

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

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

query I rowsort
SELECT 5 + 3 AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7904
SELECT DISTINCT MIN( DISTINCT - + 60 ), COUNT( * ) AS col1
----
-60
1

skipif mysql # not compatible
query II rowsort label-7904
SELECT DISTINCT MIN ( DISTINCT - + 60 ), COUNT ( * ) AS col1
----
-60
1

query I rowsort
SELECT ALL - 42 + + + 47
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL + 78 + MIN( - 25 )
----
53

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL + 78 + MIN ( - 25 )
----
53

query I rowsort
SELECT + 88 + 53 + 8 AS col1
----
149

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

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL - CAST ( NULL AS INTEGER ) + 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL - ( COALESCE ( - 87, + 32 + + 24, - 89 ) ) + - - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL - ( COALESCE ( - 87, + 32 + + 24, - 89 ) ) + - - COUNT ( * )
----
88

query II rowsort
SELECT - - 45 * 46 AS col0, 32 * + + 34
----
2070
1088

query I rowsort
SELECT ALL 81 * - + 36 + + 43 + 58 * - + 48 * - NULLIF ( 93, + 33 ) * 9 + - ( - - 21 ) - - + 82
----
2327396

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT DISTINCT 99 * + SUM( 28 ) AS col1
----
2772

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT 99 * + SUM ( 28 ) AS col1
----
2772

query I rowsort
SELECT DISTINCT 39 * 88
----
3432

query I rowsort
SELECT DISTINCT - CASE + 13 WHEN - 55 * - 43 * - - 21 + + NULLIF ( + 55, + + 24 / - 71 * - 8 + AVG ( - 49 ) ) THEN NULL ELSE + 29 END * - ( ( - ( + NULLIF ( 82, - - 45 / + + 58 ) ) ) ) * - - 15 + + 61
----
-35609

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7916
SELECT DISTINCT 66 * + ( 34 ) * 95 AS col2, 54 + + 79 + + + 82 DIV - 91 * COUNT( * ) + - + 91 col1
----
213180
42

skipif mysql # not compatible
query II rowsort label-7916
SELECT DISTINCT 66 * + ( 34 ) * 95 AS col2, 54 + + 79 + + + 82 / - 91 * COUNT ( * ) + - + 91 col1
----
213180
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT + - COUNT( * ) - MIN( 4 ) * + 28 * - - 43
----
-4817

skipif mysql # not compatible
query I rowsort label-7917
SELECT + - COUNT ( * ) - MIN ( 4 ) * + 28 * - - 43
----
-4817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7918
SELECT ALL + - CASE 28 WHEN - 0 + 16 THEN + - 38 * - - 87 WHEN - - CASE + 2 WHEN - ( - COUNT( * ) ) / 66 THEN NULL WHEN COALESCE ( + 2, + 9, + SUM( DISTINCT - + 41 ) ) + - ( 24 ) THEN + - 5 * - - CAST( NULL AS SIGNED ) + - + 67 END * + - 20 + + CAST( 76 AS DECIMAL ) THEN - - COUNT( * ) * - 82 + + ( - 87 ) WHEN 21 - - + 50 THEN COUNT( * ) ELSE - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL + - CASE 28 WHEN - 0 + 16 THEN + - 38 * - - 87 WHEN - - CASE + 2 WHEN - ( - COUNT ( * ) ) / 66 THEN NULL WHEN COALESCE ( + 2, + 9, + SUM ( DISTINCT - + 41 ) ) + - ( 24 ) THEN + - 5 * - - CAST ( NULL AS INTEGER ) + - + 67 END * + - 20 + + CAST ( 76 AS REAL ) THEN - - COUNT ( * ) * - 82 + + ( - 87 ) WHEN 21 - - + 50 THEN COUNT ( * ) ELSE - COUNT ( * ) END
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT + + 69 - - - 62 + + ( ( + COUNT( * ) ) ) * - 84
----
-77

skipif mysql # not compatible
query I rowsort label-7920
SELECT + + 69 - - - 62 + + ( ( + COUNT ( * ) ) ) * - 84
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7921
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) + 44 DIV - 80 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) + 44 / - 80 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7922
SELECT ALL COALESCE ( + + 67, + - 66 ) DIV + CAST( - 17 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL COALESCE ( + + 67, + - 66 ) / + CAST ( - 17 AS INTEGER ) AS col2
----
-3

query I rowsort
SELECT + 80 * - + 16 - + + 17 * + COALESCE ( 12, 77 * - ( 36 ) )
----
-1484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7924
SELECT ALL + + CASE - - 99 WHEN SUM( DISTINCT + - 25 ) DIV - + COALESCE ( + + AVG ( 66 ), 35 * - 50 * + COALESCE ( + 13, - + 49 + + COUNT( * ), + COUNT( * ) * ( 23 ) + + + 18 + 40 ), ( + ( - COUNT( * ) ) ) * - + COUNT( + - 50 ) + - - CAST( + ( - + COALESCE ( + 93, - 53, + - 72 + + + 16 ) ) AS SIGNED ) + - 14 * - 97 + + 47 + ( 80 ) DIV + 63 ) THEN - - 26 DIV - + CAST( NULL AS SIGNED ) + - COUNT( * ) + - - 74 ELSE + ( + 97 ) END AS col2, - 1 DIV 58
----
97
0

skipif mysql # not compatible
query II rowsort label-7924
SELECT ALL + + CASE - - 99 WHEN SUM ( DISTINCT + - 25 ) / - + COALESCE ( + + AVG ( 66 ), 35 * - 50 * + COALESCE ( + 13, - + 49 + + COUNT ( * ), + COUNT ( * ) * ( 23 ) + + + 18 + 40 ), ( + ( - COUNT ( * ) ) ) * - + COUNT ( + - 50 ) + - - CAST ( + ( - + COALESCE ( + 93, - 53, + - 72 + + + 16 ) ) AS INTEGER ) + - 14 * - 97 + + 47 + ( 80 ) / + 63 ) THEN - - 26 / - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - - 74 ELSE + ( + 97 ) END AS col2, - 1 / 58
----
97
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7925
SELECT ALL + CASE 89 WHEN - 10 - + COUNT( * ) THEN 58 + - 50 + - + ( - 61 ) + - 72 DIV - 87 DIV - ( + 53 ) ELSE + COUNT( DISTINCT ( + - 80 ) ) * + COUNT( * ) DIV + 97 + + + COUNT( * ) + + - 8 END AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL + CASE 89 WHEN - 10 - + COUNT ( * ) THEN 58 + - 50 + - + ( - 61 ) + - 72 / - 87 / - ( + 53 ) ELSE + COUNT ( DISTINCT ( + - 80 ) ) * + COUNT ( * ) / + 97 + + + COUNT ( * ) + + - 8 END AS col0
----
-7

query I rowsort
SELECT + 96 * + ( - + 40 ) * 41
----
-157440

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT - 2 + 65 * + - 71 + 51 * - 62 + + - 58 + - 31 * - + ( - COUNT( * ) ) col2
----
-7868

skipif mysql # not compatible
query I rowsort label-7927
SELECT - 2 + 65 * + - 71 + 51 * - 62 + + - 58 + - 31 * - + ( - COUNT ( * ) ) col2
----
-7868

onlyif mysql # aggregate syntax: 
query II rowsort label-7928
SELECT ALL + COUNT( * ) col1, 35
----
1
35

skipif mysql # not compatible
query II rowsort label-7928
SELECT ALL + COUNT ( * ) col1, 35
----
1
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT + CAST( - 53 AS SIGNED ) * + 25 AS col2
----
-1325

skipif mysql # not compatible
query I rowsort label-7929
SELECT + CAST ( - 53 AS INTEGER ) * + 25 AS col2
----
-1325

onlyif mysql # aggregate syntax: 
query II rowsort label-7930
SELECT COUNT( * ) AS col0, 40 col0
----
1
40

skipif mysql # not compatible
query II rowsort label-7930
SELECT COUNT ( * ) AS col0, 40 col0
----
1
40

onlyif mysql # DIV for integer division: 
query II rowsort label-7931
SELECT - 54 DIV + COALESCE ( 88, 69 + 35 ) AS col1, 93 * - 45 + + 74 - 99 + - 38
----
0
-4248

skipif mysql # not compatible
query II rowsort label-7931
SELECT - 54 / + COALESCE ( 88, 69 + 35 ) AS col1, 93 * - 45 + + 74 - 99 + - 38
----
0
-4248

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

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

query I rowsort
SELECT - 72 + 89
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7934
SELECT ALL COUNT( * ) + + 5 + 56 + - COALESCE ( 3, + - 2 ) + + + 70 DIV + + 3
----
82

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL COUNT ( * ) + + 5 + 56 + - COALESCE ( 3, + - 2 ) + + + 70 / + + 3
----
82

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

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

query II rowsort
SELECT - 13, - 57 AS col1
----
-13
-57

query I rowsort
SELECT ALL - 10 + 58 col0
----
48

query I rowsort
SELECT ALL - 37 + + 4
----
-33

query II rowsort
SELECT 26 AS col0, + 73 AS col0
----
26
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7940
SELECT - CAST( NULL AS SIGNED ) AS col1, 76 AS col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-7940
SELECT - CAST ( NULL AS INTEGER ) AS col1, 76 AS col1
----
NULL
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7941
SELECT - 76 - 14 + + 87 / 47 * - CAST( NULL AS SIGNED ) + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT - 76 - 14 + + 87 / 47 * - CAST ( NULL AS INTEGER ) + 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT - MIN( + ( 7 ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7942
SELECT - MIN ( + ( 7 ) ) AS col1
----
-7

query I rowsort
SELECT - 52 + - - 88
----
36

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7945
SELECT ALL - 75 + + 76 * + CASE + CAST( + MIN( 25 ) AS SIGNED ) WHEN 55 * 96 THEN + 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL - 75 + + 76 * + CASE + CAST ( + MIN ( 25 ) AS INTEGER ) WHEN 55 * 96 THEN + 1 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7946
SELECT ALL - COALESCE ( 26, - 46, 62 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL - COALESCE ( 26, - 46, 62 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 48 + 99 AS col0
----
147

query I rowsort
SELECT DISTINCT - ( - 14 ) + + 71 AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT DISTINCT + NULLIF ( 1, + COALESCE ( - ( + CAST( NULL AS SIGNED ) ), - ( - 75 ), + 64 ) ) - 6 * 76 AS col0
----
-455

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT + NULLIF ( 1, + COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), - ( - 75 ), + 64 ) ) - 6 * 76 AS col0
----
-455

query I rowsort
SELECT ALL - 75 * + 28 AS col0
----
-2100

query I rowsort
SELECT - 10 * 68
----
-680

query I rowsort
SELECT + 74 - + 58 * + 55 AS col1
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT ALL + COALESCE ( - COUNT( * ), 76, 83 * - 97 + - 15 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL + COALESCE ( - COUNT ( * ), 76, 83 * - 97 + - 15 ) AS col1
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7955
SELECT 49 DIV 42 + MAX( 84 + + 66 )
----
151

skipif mysql # not compatible
query I rowsort label-7955
SELECT 49 / 42 + MAX ( 84 + + 66 )
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT ALL 34 DIV + 7 - - 48 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL 34 / + 7 - - 48 AS col0
----
52

query I rowsort
SELECT DISTINCT + NULLIF ( 62, 66 ) AS col0
----
62

query I rowsort
SELECT DISTINCT 85 * - 0 AS col1
----
0

query I rowsort
SELECT ALL 20 * 16
----
320

query I rowsort
SELECT DISTINCT - 68 * 57
----
-3876

query I rowsort
SELECT DISTINCT 49 * + 66 AS col0
----
3234

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

skipif mysql # not compatible
query I rowsort label-7962
SELECT + 61 + COUNT ( * ) / 47
----
61

query I rowsort
SELECT + 78 * - 14 AS col2
----
-1092

query I rowsort
SELECT ALL 84 * 96 AS col2
----
8064

query I rowsort
SELECT ( ( 78 ) ) AS col1
----
78

query I rowsort
SELECT ALL - 50 * 41
----
-2050

query I rowsort
SELECT 78 * - 5 + + 75 AS col2
----
-315

query I rowsort
SELECT ALL 48 + + 14 AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7969
SELECT DISTINCT CASE 84 WHEN 55 THEN NULL WHEN 95 * COALESCE ( 76 * COUNT( * ), ( - COUNT( * ) ) * - 45 ) THEN + CAST( NULL AS SIGNED ) ELSE 28 + + 72 END + - 39
----
61

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT CASE 84 WHEN 55 THEN NULL WHEN 95 * COALESCE ( 76 * COUNT ( * ), ( - COUNT ( * ) ) * - 45 ) THEN + CAST ( NULL AS INTEGER ) ELSE 28 + + 72 END + - 39
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT ALL + 78 + COUNT( * ) * COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL + 78 + COUNT ( * ) * COUNT ( * )
----
79

query I rowsort
SELECT NULLIF ( 28, CASE + 91 WHEN - 58 THEN + 32 ELSE NULL END + 12 ) + 85 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT DISTINCT COALESCE ( - COUNT( * ), + 96 + + 25 * 43 ) + - 90 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT COALESCE ( - COUNT ( * ), + 96 + + 25 * 43 ) + - 90 AS col2
----
-91

query I rowsort
SELECT 56 * - 77 AS col1
----
-4312

query I rowsort
SELECT 30 + + 98 * 20 AS col1
----
1990

query I rowsort
SELECT ALL - 6 * + 93
----
-558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT CAST( NULL AS SIGNED ) + NULLIF ( 54, CAST( NULL AS SIGNED ) * - 3 ) * 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT CAST ( NULL AS INTEGER ) + NULLIF ( 54, CAST ( NULL AS INTEGER ) * - 3 ) * 2 AS col2
----
NULL

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

query I rowsort
SELECT ALL + 49 * - 11
----
-539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7979
SELECT DISTINCT 98 - - COUNT( * ) DIV 90
----
98

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT 98 - - COUNT ( * ) / 90
----
98

query I rowsort
SELECT ALL NULLIF ( 46, - 72 ) * 71 AS col0
----
3266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7981
SELECT - 46 + CASE 36 WHEN + CAST( NULL AS SIGNED ) - - 80 THEN - 28 / ( 52 ) WHEN - 30 THEN NULL END * - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT - 46 + CASE 36 WHEN + CAST ( NULL AS INTEGER ) - - 80 THEN - 28 / ( 52 ) WHEN - 30 THEN NULL END * - 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT ALL COUNT( * ) - ( - 95 )
----
96

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL COUNT ( * ) - ( - 95 )
----
96

query I rowsort
SELECT DISTINCT + NULLIF ( - 56, - ( 79 ) )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT 95 + - 33 * COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-7984
SELECT 95 + - 33 * COUNT ( * ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7985
SELECT 82 * + SUM( CASE + ( + 67 ) WHEN + 81 - 7 THEN NULL ELSE 93 END DIV - 78 + 89 ) AS col2
----
7216

skipif mysql # not compatible
query I rowsort label-7985
SELECT 82 * + SUM ( CASE + ( + 67 ) WHEN + 81 - 7 THEN NULL ELSE 93 END / - 78 + 89 ) AS col2
----
7216

query I rowsort
SELECT 26 * + 49
----
1274

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT + MAX( + 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7987
SELECT + MAX ( + 12 ) AS col1
----
12

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7990
SELECT DISTINCT - 5 DIV 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT - 5 / 46 AS col2
----
0

query I rowsort
SELECT ALL + 72 * + 73
----
5256

query I rowsort
SELECT ALL + - 67 * 63
----
-4221

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

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

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

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

query I rowsort
SELECT 87 * + + ( - COALESCE ( + 16, 25 ) ) AS col2
----
-1392

query I rowsort
SELECT 90 - - 49
----
139

query I rowsort
SELECT + 48 * + 56 - - 33 * - 96 AS col1
----
-480

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT ALL ( - + 17 ) DIV 9
----
-1

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL ( - + 17 ) / 9
----
-1

query I rowsort
SELECT ALL - 55 + - 91
----
-146

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT 10 * + 85 + COUNT( * ) * - 80
----
770

skipif mysql # not compatible
query I rowsort label-8001
SELECT 10 * + 85 + COUNT ( * ) * - 80
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT COUNT( * ) - - 62 * 74
----
4589

skipif mysql # not compatible
query I rowsort label-8002
SELECT COUNT ( * ) - - 62 * 74
----
4589

query I rowsort
SELECT ALL + NULLIF ( + 59, 30 - 36 ) * + ( 63 * 13 )
----
48321

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

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

query I rowsort
SELECT ALL 71 + ( + 66 ) + + 13
----
150

query I rowsort
SELECT DISTINCT ( 72 ) + + 91 * - 72
----
-6480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT DISTINCT + CAST( 67 AS SIGNED ) - 86
----
-19

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT + CAST ( 67 AS INTEGER ) - 86
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT ALL 17 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL 17 / - 37
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT ALL 5 DIV - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL 5 / - 87 AS col1
----
0

query I rowsort
SELECT 20 * - 46
----
-920

onlyif mysql # DIV for integer division: 
query I rowsort label-8011
SELECT ALL - 12 DIV - 72 - 22 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - 12 / - 72 - 22 / + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT COUNT( 87 ) - 25 col1
----
-24

skipif mysql # not compatible
query I rowsort label-8012
SELECT COUNT ( 87 ) - 25 col1
----
-24

query I rowsort
SELECT + ( - 90 ) * - 56
----
5040

query I rowsort
SELECT 41 * - COALESCE ( - 15, 32 )
----
615

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8016
SELECT + 11 + COALESCE ( + 26, + 17, - 27 DIV 74 + 69 * + 93, 6 + 19 ) + ( 16 )
----
53

skipif mysql # not compatible
query I rowsort label-8016
SELECT + 11 + COALESCE ( + 26, + 17, - 27 / 74 + 69 * + 93, 6 + 19 ) + ( 16 )
----
53

query I rowsort
SELECT DISTINCT 89 * - 98 AS col2
----
-8722

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL - MIN( + NULLIF ( 38, + ( 1 ) ) ) * 50
----
-1900

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL - MIN ( + NULLIF ( 38, + ( 1 ) ) ) * 50
----
-1900

query I rowsort
SELECT DISTINCT + 43 * - 47 * 58
----
-117218

query I rowsort
SELECT 69 + + 54
----
123

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL - + COUNT( * ) * 2 + 57 col1
----
55

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL - + COUNT ( * ) * 2 + 57 col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8024
SELECT + - MAX( + 58 ) DIV + MAX( ALL 11 ) + 17
----
12

skipif mysql # not compatible
query I rowsort label-8024
SELECT + - MAX ( + 58 ) / + MAX ( ALL 11 ) + 17
----
12

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8027
SELECT DISTINCT COUNT( * ) * + COALESCE ( + 42, - 74 * CAST( NULL AS SIGNED ), 31 DIV 11 + + 64 ) + 42
----
84

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT COUNT ( * ) * + COALESCE ( + 42, - 74 * CAST ( NULL AS INTEGER ), 31 / 11 + + 64 ) + 42
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT DISTINCT + ( COUNT( * ) ) * + 24 + 40
----
64

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT + ( COUNT ( * ) ) * + 24 + 40
----
64

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

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

query I rowsort
SELECT COALESCE ( 13, - 69 ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8031
SELECT ALL - COUNT( * ) * - 85 * CAST( NULL AS SIGNED ) * - CAST( 30 AS SIGNED ) + + COUNT( * ) * + MIN( DISTINCT - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL - COUNT ( * ) * - 85 * CAST ( NULL AS INTEGER ) * - CAST ( 30 AS INTEGER ) + + COUNT ( * ) * + MIN ( DISTINCT - 7 )
----
NULL

query I rowsort
SELECT DISTINCT + 80 * 17 + + ( - NULLIF ( + 89, 45 ) )
----
1271

query I rowsort
SELECT - 31 * - 18 + 41 AS col2
----
599

query I rowsort
SELECT ALL + ( + + 83 ) * - 59 - + 13 + 61
----
-4849

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL + 64 * + + CASE + 11 WHEN 26 THEN - MAX( 23 ) WHEN + 89 + COALESCE ( + 74, - NULLIF ( - 21, + NULLIF ( + 7, + 15 ) ) * 8 ) THEN NULL END + ( - ( AVG ( ALL 52 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL + 64 * + + CASE + 11 WHEN 26 THEN - MAX ( 23 ) WHEN + 89 + COALESCE ( + 74, - NULLIF ( - 21, + NULLIF ( + 7, + 15 ) ) * 8 ) THEN NULL END + ( - ( AVG ( ALL 52 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8036
SELECT COUNT( * ) AS col2, - 50 + 52 * 85
----
1
4370

skipif mysql # not compatible
query II rowsort label-8036
SELECT COUNT ( * ) AS col2, - 50 + 52 * 85
----
1
4370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8037
SELECT - 77 + - NULLIF ( + 27, COUNT( * ) DIV - 55 ) + + 27 DIV CAST( ( - 54 ) AS SIGNED )
----
-104

skipif mysql # not compatible
query I rowsort label-8037
SELECT - 77 + - NULLIF ( + 27, COUNT ( * ) / - 55 ) + + 27 / CAST ( ( - 54 ) AS INTEGER )
----
-104

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8039
SELECT ALL + 70 * - 40 - + 55 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL + 70 * - 40 - + 55 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + ( + + 52 ) * + 28 - + 2
----
1454

query I rowsort
SELECT DISTINCT + CASE + 14 WHEN + 4 THEN NULL WHEN - 51 THEN NULL ELSE + ( 97 ) * 16 END AS col0
----
1552

query I rowsort
SELECT - 23 + 89 + - 63 * 78 AS col1
----
-4848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8044
SELECT ALL + ( + + NULLIF ( - CAST( + 81 AS SIGNED ), - CAST( NULL AS SIGNED ) + 15 ) ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL + ( + + NULLIF ( - CAST ( + 81 AS INTEGER ), - CAST ( NULL AS INTEGER ) + 15 ) ) col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8045
SELECT - + COUNT( * ) * + 57 DIV + 2
----
-28

skipif mysql # not compatible
query I rowsort label-8045
SELECT - + COUNT ( * ) * + 57 / + 2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8046
SELECT 35 * + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT 35 * + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + 36 AS col0
----
NULL

query I rowsort
SELECT - - 77 * + 78 col0
----
6006

query I rowsort
SELECT + 75 * + 4 - - 27 * + 51 - 68
----
1609

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT ALL NULLIF ( + - CASE - 97 WHEN 74 THEN NULL WHEN + SUM( + 56 ) THEN 71 ELSE - 40 * + 72 + 75 * 73 END, 16 / - 5 ) * 21 AS col1
----
-54495

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL NULLIF ( + - CASE - 97 WHEN 74 THEN NULL WHEN + SUM ( + 56 ) THEN 71 ELSE - 40 * + 72 + 75 * 73 END, 16 / - 5 ) * 21 AS col1
----
-54495

query I rowsort
SELECT DISTINCT + 38 * - ( - 85 ) + + 44
----
3274

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

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

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

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

query II rowsort
SELECT ALL 11, 11 * 73 * + 24 col1
----
11
19272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8054
SELECT - MIN( - - CAST( + 84 AS SIGNED ) ) * - 98
----
8232

skipif mysql # not compatible
query I rowsort label-8054
SELECT - MIN ( - - CAST ( + 84 AS INTEGER ) ) * - 98
----
8232

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8056
SELECT - + 68 AS col1, 23 DIV + 2 + 50 * + 32
----
-68
1611

skipif mysql # not compatible
query II rowsort label-8056
SELECT - + 68 AS col1, 23 / + 2 + 50 * + 32
----
-68
1611

onlyif mysql # DIV for integer division: 
query I rowsort label-8057
SELECT + - 28 DIV + 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8057
SELECT + - 28 / + 61 AS col2
----
0

query I rowsort
SELECT ALL + 64 + - + 63 AS col1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT + - CASE - 39 WHEN + SUM( ALL 23 ) THEN CASE COUNT( * ) WHEN + 67 THEN + 29 - - 83 WHEN - 44 THEN NULL END END / + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT + - CASE - 39 WHEN + SUM ( ALL 23 ) THEN CASE COUNT ( * ) WHEN + 67 THEN + 29 - - 83 WHEN - 44 THEN NULL END END / + 6 AS col2
----
NULL

query I rowsort
SELECT + - 84 * 59 col1
----
-4956

query I rowsort
SELECT ALL 50 * + 96 AS col2
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT + COALESCE ( COALESCE ( - MAX( 85 ), - 87 ), - 41, - 15 * - COUNT( * ) + - 77 * COUNT( * ) ) + + 13 * 43
----
474

skipif mysql # not compatible
query I rowsort label-8063
SELECT + COALESCE ( COALESCE ( - MAX ( 85 ), - 87 ), - 41, - 15 * - COUNT ( * ) + - 77 * COUNT ( * ) ) + + 13 * 43
----
474

query I rowsort
SELECT DISTINCT 90 + + 91 * + - 17 AS col2
----
-1457

query I rowsort
SELECT ALL CASE + 44 WHEN - 54 THEN + 57 - - 26 ELSE NULL END + + ( COALESCE ( + 58, - 5, CASE + 97 WHEN + 80 * 98 THEN 76 WHEN + 94 THEN NULL ELSE NULL END ) + + AVG ( - 13 + 18 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT + 2 DIV 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8066
SELECT + 2 / 60 AS col1
----
0

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

query I rowsort
SELECT ALL 25 * + 66
----
1650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8069
SELECT ALL + COUNT( ALL + 42 ) DIV - 95 * - COUNT( * ) + 66
----
66

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL + COUNT ( ALL + 42 ) / - 95 * - COUNT ( * ) + 66
----
66

query I rowsort
SELECT + NULLIF ( 11, ( + 87 ) + 88 ) AS col1
----
11

query I rowsort
SELECT - NULLIF ( - + 27, + 44 ) * + 90 col2
----
2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8072
SELECT ALL + CAST( NULL AS SIGNED ) / - 12 * - 6 * - 50 / 96 - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL + CAST ( NULL AS INTEGER ) / - 12 * - 6 * - 50 / 96 - - COUNT ( * ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8074
SELECT + 36 - 60 DIV COUNT( ALL - 49 )
----
-24

skipif mysql # not compatible
query I rowsort label-8074
SELECT + 36 - 60 / COUNT ( ALL - 49 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT DISTINCT - 65 * - - SUM( 14 )
----
-910

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT - 65 * - - SUM ( 14 )
----
-910

query II rowsort
SELECT ( 55 ) AS col1, - 1 * - 63 * 18
----
55
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL - 47 * + COALESCE ( - COUNT( * ), COUNT( ALL 11 ) + 24 ) col1
----
47

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL - 47 * + COALESCE ( - COUNT ( * ), COUNT ( ALL 11 ) + 24 ) col1
----
47

query I rowsort
SELECT ALL 88 * + - ( - 98 ) * + + 10 AS col1
----
86240

query I rowsort
SELECT + 94 * - ( - - 24 ) AS col2
----
-2256

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8081
SELECT + CAST( - SUM( DISTINCT - + 31 ) AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8081
SELECT + CAST ( - SUM ( DISTINCT - + 31 ) AS INTEGER ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT COALESCE ( 41, + - ( + MAX( 4 ) ) ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8082
SELECT COALESCE ( 41, + - ( + MAX ( 4 ) ) ) AS col2
----
41

query I rowsort
SELECT CASE + - 22 WHEN 64 THEN NULL ELSE + 9 END col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT - + 6 DIV + 33 * - - 91 * - - 22
----
0

skipif mysql # not compatible
query I rowsort label-8084
SELECT - + 6 / + 33 * - - 91 * - - 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT - NULLIF ( + 63, + COUNT( * ) * + + COUNT( * ) ) * + ( COUNT( * ) ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-8085
SELECT - NULLIF ( + 63, + COUNT ( * ) * + + COUNT ( * ) ) * + ( COUNT ( * ) ) AS col0
----
-63

query I rowsort
SELECT DISTINCT + NULLIF ( + 90, - 32 * + 48 )
----
90

query I rowsort
SELECT - 93 * - 38 - - COALESCE ( - 4, + 97 ) + 39
----
3569

query I rowsort
SELECT ALL - 29 * + + 8
----
-232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8089
SELECT DISTINCT - - 35 / + COUNT( * ) + - + 42 - + + CAST( NULL AS SIGNED ) - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT - - 35 / + COUNT ( * ) + - + 42 - + + CAST ( NULL AS INTEGER ) - + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT 55 * COUNT( * ) * + SUM( + 36 ) * 25 AS col2
----
49500

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT 55 * COUNT ( * ) * + SUM ( + 36 ) * 25 AS col2
----
49500

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT - + COUNT( * ) + MAX( - 49 ) * - - 43 + 30 AS col1
----
-2078

skipif mysql # not compatible
query I rowsort label-8091
SELECT - + COUNT ( * ) + MAX ( - 49 ) * - - 43 + 30 AS col1
----
-2078

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

skipif mysql # not compatible
query I rowsort label-8092
SELECT + - COUNT ( + 54 ) * - - 64 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL - 94 + - ( - COALESCE ( + - COUNT( * ), + 81 * COUNT( * ), + 28 * 34 + + 3 ) ) * 90 AS col1
----
-184

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL - 94 + - ( - COALESCE ( + - COUNT ( * ), + 81 * COUNT ( * ), + 28 * 34 + + 3 ) ) * 90 AS col1
----
-184

query I rowsort
SELECT DISTINCT - + 47 * + + 84 - + NULLIF ( + + 91, ( 90 ) ) AS col2
----
-4039

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8095
SELECT - 95 + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT - 95 + + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT COALESCE ( - 85, - + 15 + 34 ) AS col0
----
-85

query I rowsort
SELECT ALL 39 + + 77 + + 61 - 87 + + 26 * + 36
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL - 33 + - + CASE - - 0 WHEN + COUNT( 80 ) THEN 68 * 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL - 33 + - + CASE - - 0 WHEN + COUNT ( 80 ) THEN 68 * 28 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ALL COALESCE ( ( - COUNT( * ) ), - 70, COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL COALESCE ( ( - COUNT ( * ) ), - 70, COUNT ( * ) )
----
-1

query II rowsort
SELECT - 33 AS col0, 71 + - 1 AS col1
----
-33
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT 99 + - 92 * + 0 + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-8101
SELECT 99 + - 92 * + 0 + - COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8102
SELECT COUNT( * ) + + - 49 * + - 72 AS col1, + 30 + - 77 + - 69 * - 31
----
3529
2092

skipif mysql # not compatible
query II rowsort label-8102
SELECT COUNT ( * ) + + - 49 * + - 72 AS col1, + 30 + - 77 + - 69 * - 31
----
3529
2092

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL SUM( + 47 ) - + 8 + - + 97 * + 70
----
-6751

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL SUM ( + 47 ) - + 8 + - + 97 * + 70
----
-6751

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT ALL MIN( - 2 ) * + + 37
----
-74

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL MIN ( - 2 ) * + + 37
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT - 23 DIV - 30 + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-8106
SELECT - 23 / - 30 + - 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8107
SELECT COUNT( * ) + 82 + + - 40 + + - COUNT( * ) + - - 33 DIV 4
----
50

skipif mysql # not compatible
query I rowsort label-8107
SELECT COUNT ( * ) + 82 + + - 40 + + - COUNT ( * ) + - - 33 / 4
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT ALL + 61 - - + COUNT( * ) * - + 59
----
2

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL + 61 - - + COUNT ( * ) * - + 59
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT COUNT( * ) * CASE + - 13 WHEN 89 THEN 72 * 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT COUNT ( * ) * CASE + - 13 WHEN 89 THEN 72 * 96 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8110
SELECT ALL 0 - + COUNT( * ) * - + MIN( ALL - + CAST( - + 91 AS SIGNED ) ) * - 85 + + COUNT( 31 ) col1
----
-7734

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL 0 - + COUNT ( * ) * - + MIN ( ALL - + CAST ( - + 91 AS INTEGER ) ) * - 85 + + COUNT ( 31 ) col1
----
-7734

query I rowsort
SELECT ALL 12 * + 5 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT DISTINCT CASE - - COUNT( * ) WHEN AVG ( DISTINCT 4 ) * + 4 THEN - 16 * COUNT( * ) ELSE - 98 * + 7 END * 23
----
-15778

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT CASE - - COUNT ( * ) WHEN AVG ( DISTINCT 4 ) * + 4 THEN - 16 * COUNT ( * ) ELSE - 98 * + 7 END * 23
----
-15778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8113
SELECT - CAST( NULL AS SIGNED ) / + 0 * + 32 * 99 + - + CAST( CASE 73 WHEN + CAST( + AVG ( 38 ) AS SIGNED ) THEN COUNT( DISTINCT 36 ) * + 58 WHEN + 31 THEN - 23 - COALESCE ( 83 + 80, + COUNT( * ), - 53 * + 8 + + MAX( + 74 ) ) / 58 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8113
SELECT - CAST ( NULL AS INTEGER ) / + 0 * + 32 * 99 + - + CAST ( CASE 73 WHEN + CAST ( + AVG ( 38 ) AS INTEGER ) THEN COUNT ( DISTINCT 36 ) * + 58 WHEN + 31 THEN - 23 - COALESCE ( 83 + 80, + COUNT ( * ), - 53 * + 8 + + MAX ( + 74 ) ) / 58 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8114
SELECT COUNT( ALL - 20 ) DIV 22 + - 2 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8114
SELECT COUNT ( ALL - 20 ) / 22 + - 2 AS col0
----
-2

query I rowsort
SELECT 40 * - 83 AS col0
----
-3320

onlyif mysql # aggregate syntax: 
query II rowsort label-8116
SELECT 46 + + MIN( + 2 ) AS col0, + 60 AS col0
----
48
60

skipif mysql # not compatible
query II rowsort label-8116
SELECT 46 + + MIN ( + 2 ) AS col0, + 60 AS col0
----
48
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT + 65 * - CASE - + 53 WHEN - 2 THEN + COUNT( * ) + - COALESCE ( 84, 46 ) WHEN - COUNT( * ) / 72 THEN + SUM( ALL 42 ) ELSE ( 77 ) + + 48 END - COUNT( * ) * + 82 AS col1
----
-8207

skipif mysql # not compatible
query I rowsort label-8117
SELECT + 65 * - CASE - + 53 WHEN - 2 THEN + COUNT ( * ) + - COALESCE ( 84, 46 ) WHEN - COUNT ( * ) / 72 THEN + SUM ( ALL 42 ) ELSE ( 77 ) + + 48 END - COUNT ( * ) * + 82 AS col1
----
-8207

query I rowsort
SELECT - 24 * - + 31 + 3
----
747

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

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

query I rowsort
SELECT + + 44 * + 51 + 51 col2
----
2295

query I rowsort
SELECT ALL + 58 + 43 AS col1
----
101

query II rowsort
SELECT + NULLIF ( - + 50, + 90 ) AS col2, 5
----
-50
5

query I rowsort
SELECT DISTINCT + 31 + + 50 AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8124
SELECT DISTINCT - COUNT( + 56 ) + + 87 + - 52 DIV ( - COUNT( * ) ) AS col1
----
138

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT - COUNT ( + 56 ) + + 87 + - 52 / ( - COUNT ( * ) ) AS col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL 83 + SUM( ALL + 0 )
----
83

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL 83 + SUM ( ALL + 0 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT ALL + ( - 69 ) * 54 * 17 * + NULLIF ( 98, + COUNT( - ( 20 ) ) * - 83 ) * 81 AS col2
----
-502808796

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL + ( - 69 ) * 54 * 17 * + NULLIF ( 98, + COUNT ( - ( 20 ) ) * - 83 ) * 81 AS col2
----
-502808796

query I rowsort
SELECT - - 50 * 76 + - 49 AS col2
----
3751

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT - CASE + 91 WHEN - 1 THEN - - COUNT( DISTINCT 24 ) WHEN MIN( 16 ) THEN NULL END * 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT - CASE + 91 WHEN - 1 THEN - - COUNT ( DISTINCT 24 ) WHEN MIN ( 16 ) THEN NULL END * 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT - - CASE - 75 WHEN + SUM( DISTINCT - 40 ) THEN - 71 * 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT - - CASE - 75 WHEN + SUM ( DISTINCT - 40 ) THEN - 71 * 0 END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8131
SELECT + COALESCE ( 62, COUNT( * ) * - ( CASE 52 WHEN - ( ( 77 ) ) THEN NULL WHEN - 84 * - SUM( DISTINCT + 17 DIV - 23 ) THEN - 83 * - 49 ELSE NULL END ) DIV - COUNT( * ) + 26 + 35 * - COUNT( * ), - COUNT( * ), - 45 )
----
62

skipif mysql # not compatible
query I rowsort label-8131
SELECT + COALESCE ( 62, COUNT ( * ) * - ( CASE 52 WHEN - ( ( 77 ) ) THEN NULL WHEN - 84 * - SUM ( DISTINCT + 17 / - 23 ) THEN - 83 * - 49 ELSE NULL END ) / - COUNT ( * ) + 26 + 35 * - COUNT ( * ), - COUNT ( * ), - 45 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT 37 * - 19 - COUNT( * ) + - 52 AS col0
----
-756

skipif mysql # not compatible
query I rowsort label-8132
SELECT 37 * - 19 - COUNT ( * ) + - 52 AS col0
----
-756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8133
SELECT ALL + 56 DIV 81 * - + MIN( + - 49 )
----
0

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL + 56 / 81 * - + MIN ( + - 49 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL - + COUNT( * ) + - + 11 col1
----
-12

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL - + COUNT ( * ) + - + 11 col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8136
SELECT ALL + + 66 DIV + MAX( DISTINCT - 99 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL + + 66 / + MAX ( DISTINCT - 99 ) AS col2
----
0

query II rowsort
SELECT - + 69 AS col2, - 36 * + 12
----
-69
-432

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8138
SELECT 34 + - NULLIF ( + - 71, MAX( DISTINCT - - 19 ) * + - ( 41 ) * + CAST( 11 AS DECIMAL ) )
----
105

skipif mysql # not compatible
query I rowsort label-8138
SELECT 34 + - NULLIF ( + - 71, MAX ( DISTINCT - - 19 ) * + - ( 41 ) * + CAST ( 11 AS REAL ) )
----
105

query I rowsort
SELECT DISTINCT - 74 * 36 AS col0
----
-2664

query I rowsort
SELECT ALL - 65 * + 42
----
-2730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8141
SELECT 24 * + 72 DIV + COUNT( * )
----
1728

skipif mysql # not compatible
query I rowsort label-8141
SELECT 24 * + 72 / + COUNT ( * )
----
1728

query I rowsort
SELECT 60 * + 45 AS col1
----
2700

query I rowsort
SELECT DISTINCT - CASE + 84 WHEN 50 THEN + 71 * + + 27 ELSE 33 END * - 58 AS col1
----
1914

query I rowsort
SELECT 50 * 13
----
650

onlyif mysql # aggregate syntax: 
query II rowsort label-8145
SELECT COUNT( * ), + 79 AS col1
----
1
79

skipif mysql # not compatible
query II rowsort label-8145
SELECT COUNT ( * ), + 79 AS col1
----
1
79

query I rowsort
SELECT 66 + - 9 AS col1
----
57

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8148
SELECT 40 DIV + ( - - 62 )
----
0

skipif mysql # not compatible
query I rowsort label-8148
SELECT 40 / + ( - - 62 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8149
SELECT SUM( ALL - 90 ) + - COUNT( * ) * + 28 DIV + COALESCE ( COUNT( * ), 41 ) + 79
----
-39

skipif mysql # not compatible
query I rowsort label-8149
SELECT SUM ( ALL - 90 ) + - COUNT ( * ) * + 28 / + COALESCE ( COUNT ( * ), 41 ) + 79
----
-39

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

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT 0 / COUNT ( + 98 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL MAX( - 67 ) * 47 + COUNT( * ) * 29
----
-3120

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL MAX ( - 67 ) * 47 + COUNT ( * ) * 29
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT MAX( ALL - + 8 ) - 57
----
-65

skipif mysql # not compatible
query I rowsort label-8152
SELECT MAX ( ALL - + 8 ) - 57
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-8153
SELECT MIN( DISTINCT + - 79 ) * + 31 + - 0, 99 col1
----
-2449
99

skipif mysql # not compatible
query II rowsort label-8153
SELECT MIN ( DISTINCT + - 79 ) * + 31 + - 0, 99 col1
----
-2449
99

query I rowsort
SELECT ALL - 4 * - 71
----
284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8155
SELECT + 61 * + 8 - CAST( 45 AS SIGNED ) + + 49 * + + ( + COUNT( * ) )
----
492

skipif mysql # not compatible
query I rowsort label-8155
SELECT + 61 * + 8 - CAST ( 45 AS INTEGER ) + + 49 * + + ( + COUNT ( * ) )
----
492

query I rowsort
SELECT ALL - + NULLIF ( - 60, 90 * - 76 / 36 + + 82 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8157
SELECT ALL NULLIF ( - COUNT( + 49 ), 44 * + + MAX( - 10 ) + - 88 ) + 65 DIV + 32 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL NULLIF ( - COUNT ( + 49 ), 44 * + + MAX ( - 10 ) + - 88 ) + 65 / + 32 AS col0
----
1

query I rowsort
SELECT ALL 14 + + 61
----
75

query I rowsort
SELECT - 28 * + 44 + 43 AS col0
----
-1189

query I rowsort
SELECT - ( + 47 ) * 19
----
-893

query I rowsort
SELECT ALL + 27 + - 17 * - 18 * - 11 + + - 80
----
-3419

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8163
SELECT + 85 * - ( + NULLIF ( + + 4, ( + CAST( NULL AS SIGNED ) ) ) ) - - 7
----
-333

skipif mysql # not compatible
query I rowsort label-8163
SELECT + 85 * - ( + NULLIF ( + + 4, ( + CAST ( NULL AS INTEGER ) ) ) ) - - 7
----
-333

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8164
SELECT + 69 AS col0, CAST( NULL AS SIGNED ) AS col1
----
69
NULL

skipif mysql # not compatible
query II rowsort label-8164
SELECT + 69 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
69
NULL

query II rowsort
SELECT ALL + + 94 AS col1, 92 col1
----
94
92

query I rowsort
SELECT - - 66 * - - ( 61 )
----
4026

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT DISTINCT COUNT( * ) + + 89 col2
----
90

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT COUNT ( * ) + + 89 col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT + 0 * ( + + COUNT( * ) ) - + 96
----
-96

skipif mysql # not compatible
query I rowsort label-8168
SELECT + 0 * ( + + COUNT ( * ) ) - + 96
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT + CASE - 65 WHEN - COUNT( * ) THEN NULL ELSE - - 12 END - - ( + COUNT( * ) ) * - 36 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT + CASE - 65 WHEN - COUNT ( * ) THEN NULL ELSE - - 12 END - - ( + COUNT ( * ) ) * - 36 AS col2
----
-24

query I rowsort
SELECT - CASE - 87 WHEN - 80 * 50 / - 99 THEN + 70 ELSE NULL END
----
NULL

query I rowsort
SELECT + 57 + 48 AS col2
----
105

query I rowsort
SELECT ALL - 50 - - - 18 col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT + - NULLIF ( 93, - COUNT( - 8 ) ) * - - 80
----
-7440

skipif mysql # not compatible
query I rowsort label-8173
SELECT + - NULLIF ( 93, - COUNT ( - 8 ) ) * - - 80
----
-7440

query I rowsort
SELECT - + 39 * - + ( + - 68 )
----
-2652

query I rowsort
SELECT DISTINCT + 34 * - 93 AS col1
----
-3162

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT + 61 + + + 56 * + NULLIF ( + 89, + 66 * - + 85 * + 81 * 39 + MAX( ALL 41 ) * 63 + 37 * ( + 23 ) )
----
5045

skipif mysql # not compatible
query I rowsort label-8176
SELECT + 61 + + + 56 * + NULLIF ( + 89, + 66 * - + 85 * + 81 * 39 + MAX ( ALL 41 ) * 63 + 37 * ( + 23 ) )
----
5045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8177
SELECT - COALESCE ( 2, - - 62 * + 5 - + 54, - COUNT( * ) + - 8 + COUNT( * ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT - COALESCE ( 2, - - 62 * + 5 - + 54, - COUNT ( * ) + - 8 + COUNT ( * ) ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8178
SELECT + 37 + + - COUNT( * ) DIV + 83 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8178
SELECT + 37 + + - COUNT ( * ) / + 83 AS col1
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT - 13 + - + NULLIF ( - 63, + + 17 + - 46 * NULLIF ( COUNT( * ), COUNT( * ) ) * - 1 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8180
SELECT - 13 + - + NULLIF ( - 63, + + 17 + - 46 * NULLIF ( COUNT ( * ), COUNT ( * ) ) * - 1 ) AS col2
----
50

query II rowsort
SELECT ALL NULLIF ( 48, + 79 ) AS col2, - 59 * - + ( - 49 ) AS col0
----
48
-2891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8182
SELECT - COALESCE ( CASE - ( 93 ) WHEN 7 * + 45 THEN NULL WHEN COALESCE ( - COUNT( * ), COUNT( + CAST( NULL AS SIGNED ) ) * 67, + ( 26 ) ) - COUNT( * ) DIV COUNT( * ) THEN CAST( NULL AS SIGNED ) * - 61 - NULLIF ( 54, - 97 ) WHEN - 74 * 9 THEN NULL END, + 84 * + 29 ) DIV + ( 90 )
----
-27

skipif mysql # not compatible
query I rowsort label-8182
SELECT - COALESCE ( CASE - ( 93 ) WHEN 7 * + 45 THEN NULL WHEN COALESCE ( - COUNT ( * ), COUNT ( + CAST ( NULL AS INTEGER ) ) * 67, + ( 26 ) ) - COUNT ( * ) / COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * - 61 - NULLIF ( 54, - 97 ) WHEN - 74 * 9 THEN NULL END, + 84 * + 29 ) / + ( 90 )
----
-27

query I rowsort
SELECT ALL + 88 * - 84
----
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL NULLIF ( + + 22, - 12 * - MIN( - 27 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL NULLIF ( + + 22, - 12 * - MIN ( - 27 ) ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT - COUNT( - 88 ) + + 44
----
43

skipif mysql # not compatible
query I rowsort label-8185
SELECT - COUNT ( - 88 ) + + 44
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT - 59 + + - 23 + + COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-8186
SELECT - 59 + + - 23 + + COUNT ( * ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8187
SELECT DISTINCT CASE CAST( - + COUNT( ALL - 75 ) AS SIGNED ) WHEN + + COUNT( * ) * - MAX( DISTINCT 81 ) THEN 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT CASE CAST ( - + COUNT ( ALL - 75 ) AS INTEGER ) WHEN + + COUNT ( * ) * - MAX ( DISTINCT 81 ) THEN 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT ALL - 89 + - - COUNT( 20 )
----
-88

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL - 89 + - - COUNT ( 20 )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT ALL 95 DIV + 2 + - 19 + + 61 - 20 * + - 15 + 38 AS col2
----
427

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL 95 / + 2 + - 19 + + 61 - 20 * + - 15 + 38 AS col2
----
427

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT - COUNT( + + 7 ) * 54 * - - 68
----
-3672

skipif mysql # not compatible
query I rowsort label-8190
SELECT - COUNT ( + + 7 ) * 54 * - - 68
----
-3672

onlyif mysql # DIV for integer division: 
query I rowsort label-8191
SELECT 35 DIV - 25 + - 7 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8191
SELECT 35 / - 25 + - 7 AS col1
----
-8

query I rowsort
SELECT - CASE WHEN NOT - 43 <> + + 92 THEN 66 END + - 26 col0
----
NULL

query I rowsort
SELECT ( - NULLIF ( ( + 35 ), - 65 ) ) AS col1
----
-35

query I rowsort
SELECT ALL 32 * + 8 + - 33 col1
----
223

query II rowsort
SELECT - ( + ( - + 13 ) ) col2, + 79 + + + 27 * 56
----
13
1591

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + ( + MIN( ALL + + COALESCE ( 32, COALESCE ( 22, + 88 ), + 42 ) ) )
----
32

skipif mysql # not compatible
query I rowsort label-8196
SELECT + ( + MIN ( ALL + + COALESCE ( 32, COALESCE ( 22, + 88 ), + 42 ) ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT + + COALESCE ( 61, - - 58 * 5 + - COUNT( * ) + - 62 * 75 * + 78 + 22 - + 79 )
----
61

skipif mysql # not compatible
query I rowsort label-8197
SELECT + + COALESCE ( 61, - - 58 * 5 + - COUNT ( * ) + - 62 * 75 * + 78 + 22 - + 79 )
----
61

query II rowsort
SELECT - - 17 * + + 44 AS col1, - 0 AS col1
----
748
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8199
SELECT ALL - CAST( NULL AS DECIMAL ) * - - 56 col0, + 92 * + COUNT( * )
----
NULL
92

skipif mysql # not compatible
query II rowsort label-8199
SELECT ALL - CAST ( NULL AS REAL ) * - - 56 col0, + 92 * + COUNT ( * )
----
NULL
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8200
SELECT DISTINCT 87 * - CAST( NULL AS SIGNED ), + NULLIF ( + 82, 35 ) col0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-8200
SELECT DISTINCT 87 * - CAST ( NULL AS INTEGER ), + NULLIF ( + 82, 35 ) col0
----
NULL
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8201
SELECT DISTINCT - - 24 DIV - COUNT( * ) AS col1, - ( + - COALESCE ( + 28, + - 49 ) ) * - 20 + + 13
----
-24
-547

skipif mysql # not compatible
query II rowsort label-8201
SELECT DISTINCT - - 24 / - COUNT ( * ) AS col1, - ( + - COALESCE ( + 28, + - 49 ) ) * - 20 + + 13
----
-24
-547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8202
SELECT ALL - 99 * + COUNT( * ) * + 44 - - - CAST( NULLIF ( + MAX( + 67 ), CAST( NULL AS SIGNED ) * - 88 ) AS SIGNED ) + - 84 AS col0
----
-4507

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL - 99 * + COUNT ( * ) * + 44 - - - CAST ( NULLIF ( + MAX ( + 67 ), CAST ( NULL AS INTEGER ) * - 88 ) AS INTEGER ) + - 84 AS col0
----
-4507

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT ALL COUNT( * ) * + 79 + COUNT( * ) AS col1
----
80

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

query I rowsort
SELECT + 75 + 43 * 84
----
3687

query I rowsort
SELECT ALL + - 28 col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8206
SELECT + - 60 + CAST( NULL AS SIGNED ), ( - CASE + 76 WHEN - 26 THEN 94 * COUNT( * ) END )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8206
SELECT + - 60 + CAST ( NULL AS INTEGER ), ( - CASE + 76 WHEN - 26 THEN 94 * COUNT ( * ) END )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8207
SELECT ALL - SUM( ALL 48 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL - SUM ( ALL 48 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - + 90 * + - 0 AS col1
----
0

query I rowsort
SELECT + + 85 + + ( 61 )
----
146

query I rowsort
SELECT + 34 * + - 4 + + 7 AS col1
----
-129

query I rowsort
SELECT + + 35 + - 40
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT MAX( - - 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8212
SELECT MAX ( - - 69 ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8213
SELECT DISTINCT CAST( + ( CASE + + NULLIF ( ( + 3 ), - - 30 * - 92 + 78 ) WHEN - 46 THEN COUNT( 39 ) / 17 ELSE NULL END ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT CAST ( + ( CASE + + NULLIF ( ( + 3 ), - - 30 * - 92 + 78 ) WHEN - 46 THEN COUNT ( 39 ) / 17 ELSE NULL END ) AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL 25 * ( CASE - 40 WHEN - + 81 * + - COUNT( * ) / + - 81 * - + 98 * 1 THEN NULL ELSE - 21 * - 94 END )
----
49350

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL 25 * ( CASE - 40 WHEN - + 81 * + - COUNT ( * ) / + - 81 * - + 98 * 1 THEN NULL ELSE - 21 * - 94 END )
----
49350

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT + COUNT( * ) * - - COALESCE ( - 61, COUNT( * ) + - 30 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-8216
SELECT + COUNT ( * ) * - - COALESCE ( - 61, COUNT ( * ) + - 30 ) AS col1
----
-61

query I rowsort
SELECT DISTINCT 42 * - 94 * - - 19
----
-75012

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT NULLIF ( - - COALESCE ( - 8, 10 ), + NULLIF ( - - COUNT( DISTINCT - 97 ), - + 80 ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT NULLIF ( - - COALESCE ( - 8, 10 ), + NULLIF ( - - COUNT ( DISTINCT - 97 ), - + 80 ) ) AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8219
SELECT 91 col1, - ( + 63 ) DIV + + COUNT( * ) + + 45 * ( + 6 )
----
91
207

skipif mysql # not compatible
query II rowsort label-8219
SELECT 91 col1, - ( + 63 ) / + + COUNT ( * ) + + 45 * ( + 6 )
----
91
207

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

query I rowsort
SELECT ALL 83 + - 53
----
30

query I rowsort
SELECT + 47 - - 52 * - 79 + + + 82
----
-3979

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

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

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

query I rowsort
SELECT ALL 47 + - 10 - - + 0 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8226
SELECT ALL - 58 + 41 + 88 * 46 * 14 + - + 87 * 7 + - COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL - 58 + 41 + 88 * 46 * 14 + - + 87 * 7 + - COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8228
SELECT DISTINCT 3 DIV ( - + 11 ) * 39 + + 63 + - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT 3 / ( - + 11 ) * 39 + + 63 + - COUNT ( * )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT ALL - 67 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL - 67 / + 91
----
0

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

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

query I rowsort
SELECT - + 32 * - 24
----
768

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8233
SELECT + 81, + MAX( DISTINCT + + 79 ) + + + 96 AS col2
----
81
175

skipif mysql # not compatible
query II rowsort label-8233
SELECT + 81, + MAX ( DISTINCT + + 79 ) + + + 96 AS col2
----
81
175

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT 19 - - COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8234
SELECT 19 - - COUNT ( * ) AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT ALL + + 22 * 28 DIV + + 36 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + + 22 * 28 / + + 36 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL - COUNT( DISTINCT 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL - COUNT ( DISTINCT 77 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8237
SELECT + COUNT( * ) AS col1, CAST( 98 AS SIGNED )
----
1
98

skipif mysql # not compatible
query II rowsort label-8237
SELECT + COUNT ( * ) AS col1, CAST ( 98 AS INTEGER )
----
1
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8238
SELECT DISTINCT - 16 - + 15 * - 76 AS col0, - NULLIF ( 51, 65 ) * + CAST( - - 52 AS SIGNED ) * + 57 + NULLIF ( 68 + COUNT( * ) DIV COUNT( * ), 12 + 50 ) * - 77 + + COUNT( * ) AS col0
----
1124
-156476

skipif mysql # not compatible
query II rowsort label-8238
SELECT DISTINCT - 16 - + 15 * - 76 AS col0, - NULLIF ( 51, 65 ) * + CAST ( - - 52 AS INTEGER ) * + 57 + NULLIF ( 68 + COUNT ( * ) / COUNT ( * ), 12 + 50 ) * - 77 + + COUNT ( * ) AS col0
----
1124
-156476

query I rowsort
SELECT ALL - - NULLIF ( - + 16, + 88 ) - - + 95 + + + 68 AS col1
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-8240
SELECT ALL - 31 AS col2, 27 + + - 7 + + MIN( + 84 ) AS col1
----
-31
104

skipif mysql # not compatible
query II rowsort label-8240
SELECT ALL - 31 AS col2, 27 + + - 7 + + MIN ( + 84 ) AS col1
----
-31
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT 28 * - 98 - 66 * - 30 + + - SUM( DISTINCT - + 29 )
----
-735

skipif mysql # not compatible
query I rowsort label-8241
SELECT 28 * - 98 - 66 * - 30 + + - SUM ( DISTINCT - + 29 )
----
-735

query II rowsort
SELECT 95, 45 AS col0
----
95
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT - 75 * + + MAX( ALL 68 ) AS col2
----
-5100

skipif mysql # not compatible
query I rowsort label-8243
SELECT - 75 * + + MAX ( ALL 68 ) AS col2
----
-5100

onlyif mysql # DIV for integer division: 
query I rowsort label-8244
SELECT 40 DIV NULLIF ( + 78, - + 0 * - - 94 + 2 ) * 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8244
SELECT 40 / NULLIF ( + 78, - + 0 * - - 94 + 2 ) * 11 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8245
SELECT DISTINCT 43 + + + CAST( + + ( - 1 ) AS SIGNED ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT 43 + + + CAST ( + + ( - 1 ) AS INTEGER ) AS col1
----
42

query I rowsort
SELECT 24 + NULLIF ( - 21, - + 98 ) * + + 9 AS col1
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT ALL - CAST( + 36 AS SIGNED ) * 97 * + - 68
----
237456

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL - CAST ( + 36 AS INTEGER ) * 97 * + - 68
----
237456

query I rowsort
SELECT DISTINCT 83 + 95 AS col1
----
178

query I rowsort
SELECT ALL 42 + - - 95 col0
----
137

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

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

query I rowsort
SELECT 59 + - 5 AS col2
----
54

query I rowsort
SELECT DISTINCT 94 + + - 44
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8253
SELECT ALL 88 + - COUNT( * ) - - 10 * - 26 AS col1, 41 DIV + 21 AS col2
----
-173
1

skipif mysql # not compatible
query II rowsort label-8253
SELECT ALL 88 + - COUNT ( * ) - - 10 * - 26 AS col1, 41 / + 21 AS col2
----
-173
1

query I rowsort
SELECT DISTINCT 34 * + 84 col1
----
2856

query I rowsort
SELECT DISTINCT 93 + - ( + 29 )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8256
SELECT 74 * - - CASE COUNT( * ) WHEN + + 86 THEN 66 WHEN + 56 * + 2 THEN - 35 ELSE - 68 END DIV COUNT( * )
----
-5032

skipif mysql # not compatible
query I rowsort label-8256
SELECT 74 * - - CASE COUNT ( * ) WHEN + + 86 THEN 66 WHEN + 56 * + 2 THEN - 35 ELSE - 68 END / COUNT ( * )
----
-5032

query I rowsort
SELECT ALL 38 - - 84 + - - 77 AS col1
----
199

query I rowsort
SELECT DISTINCT - 23 * + 7 * 42
----
-6762

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT + SUM( - + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-8259
SELECT + SUM ( - + 62 )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-8260
SELECT 87 DIV + ( - 6 )
----
-14

skipif mysql # not compatible
query I rowsort label-8260
SELECT 87 / + ( - 6 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8261
SELECT DISTINCT - - NULLIF ( NULLIF ( + + 91, COUNT( * ) ), - + 10 ) DIV MIN( - 22 ) * - 83 + - 56 AS col1
----
276

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT - - NULLIF ( NULLIF ( + + 91, COUNT ( * ) ), - + 10 ) / MIN ( - 22 ) * - 83 + - 56 AS col1
----
276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8262
SELECT ALL - + COUNT( * ) - NULLIF ( COALESCE ( + - 94, + + 72 ), + + MAX( ALL 7 ) * AVG ( + + 63 ) ) - - 11 DIV 2
----
98

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL - + COUNT ( * ) - NULLIF ( COALESCE ( + - 94, + + 72 ), + + MAX ( ALL 7 ) * AVG ( + + 63 ) ) - - 11 / 2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8263
SELECT + 33 + 22 + CASE - - ( - - 38 ) WHEN + 32 THEN 49 WHEN + 0 THEN NULL END + - + 85 * + CAST( + 31 AS SIGNED ) * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT + 33 + 22 + CASE - - ( - - 38 ) WHEN + 32 THEN 49 WHEN + 0 THEN NULL END + - + 85 * + CAST ( + 31 AS INTEGER ) * + 14
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT - CAST( NULL AS SIGNED ) * + 38 / 21 * + 40 + - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8264
SELECT - CAST ( NULL AS INTEGER ) * + 38 / 21 * + 40 + - + 82
----
NULL

query I rowsort
SELECT - 23 * - 73 + 65 AS col2
----
1744

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

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

query I rowsort
SELECT 65 * 30 + - 83 * - - 65
----
-3445

query I rowsort
SELECT ALL - 29 * 97
----
-2813

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

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

query I rowsort
SELECT 59 + 34 AS col2
----
93

query I rowsort
SELECT 33 * + - 70
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT 69 + 56 + - COUNT( * ) + + 45
----
169

skipif mysql # not compatible
query I rowsort label-8272
SELECT 69 + 56 + - COUNT ( * ) + + 45
----
169

query II rowsort
SELECT 43, 40 AS col0
----
43
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8274
SELECT ALL + 39 + + 16 + + COUNT( * ) * + CAST( - 38 AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL + 39 + + 16 + + COUNT ( * ) * + CAST ( - 38 AS INTEGER ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT ALL MAX( ALL 71 ) col2
----
71

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL MAX ( ALL 71 ) col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT + ( + COUNT( * ) ) + + + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT + ( + COUNT ( * ) ) + + + 16 AS col1
----
17

query I rowsort
SELECT ALL - 66 * + 56 AS col1
----
-3696

onlyif mysql # aggregate syntax: 
query II rowsort label-8278
SELECT DISTINCT + 57 + - MIN( + 6 ) AS col1, - 79
----
51
-79

skipif mysql # not compatible
query II rowsort label-8278
SELECT DISTINCT + 57 + - MIN ( + 6 ) AS col1, - 79
----
51
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-8279
SELECT DISTINCT + 85 DIV 66 * 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT + 85 / 66 * 53 AS col1
----
53

query II rowsort
SELECT ALL 88 + 65 * - 37 AS col0, 5 + - + 50 * + CASE - + COALESCE ( ( 62 ), + 99 ) WHEN + 60 THEN 59 WHEN + 19 + 87 THEN NULL ELSE NULL END
----
-2317
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8281
SELECT 84 * - COUNT( DISTINCT - 27 ) AS col0, 76 * 38 * + 39 / - + 79 + 22 + CAST( NULL AS SIGNED )
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-8281
SELECT 84 * - COUNT ( DISTINCT - 27 ) AS col0, 76 * 38 * + 39 / - + 79 + 22 + CAST ( NULL AS INTEGER )
----
-84
NULL

query I rowsort
SELECT ALL + 67 * 57 col1
----
3819

query I rowsort
SELECT 58 * + 12 * 2 AS col1
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT 94 * - + MIN( + 12 )
----
-1128

skipif mysql # not compatible
query I rowsort label-8284
SELECT 94 * - + MIN ( + 12 )
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT DISTINCT - SUM( + 64 ) * + + 91
----
-5824

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT - SUM ( + 64 ) * + + 91
----
-5824

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL + 40 - + COALESCE ( + 64, - CASE - - 20 WHEN + 75 THEN - SUM( DISTINCT 9 ) WHEN 38 - 47 + + NULLIF ( - 32, 48 * - 2 ) * 92 THEN NULL ELSE 47 END + + 48, + 19 )
----
-24

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL + 40 - + COALESCE ( + 64, - CASE - - 20 WHEN + 75 THEN - SUM ( DISTINCT 9 ) WHEN 38 - 47 + + NULLIF ( - 32, 48 * - 2 ) * 92 THEN NULL ELSE 47 END + + 48, + 19 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT - CASE + 67 WHEN + + 33 * + ( - 84 ) + - + COUNT( * ) THEN ( - 55 ) ELSE NULL END * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT - CASE + 67 WHEN + + 33 * + ( - 84 ) + - + COUNT ( * ) THEN ( - 55 ) ELSE NULL END * - 52
----
NULL

query I rowsort
SELECT + 64 * + 76 * - 80
----
-389120

query I rowsort
SELECT - 34 - - - 72
----
-106

query I rowsort
SELECT + 40 * - 28 * 23 AS col1
----
-25760

query I rowsort
SELECT - - 88 + 5
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT DISTINCT + MIN( DISTINCT - - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT + MIN ( DISTINCT - - 22 )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8293
SELECT ALL 67 * ( - - 52 ) DIV 22 - 72 - - 59 DIV - 30 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL 67 * ( - - 52 ) / 22 - 72 - - 59 / - 30 AS col0
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL + MIN( + 97 ) * - - ( - 30 ) AS col2
----
-2910

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL + MIN ( + 97 ) * - - ( - 30 ) AS col2
----
-2910

query II rowsort
SELECT ALL + - 38, 91 * - 45 AS col0
----
-38
-4095

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

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

query I rowsort
SELECT ALL + CASE 30 WHEN - 10 + ( - 23 ) THEN + 7 ELSE - + ( - 61 ) END col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL + 6 * + + 14 + - CASE + + 82 WHEN 76 THEN NULL WHEN 11 / + - 65 THEN NULL WHEN COALESCE ( COUNT( * ), 62, 9, 33 + - 55 ) THEN - COALESCE ( ( - 63 ), 54 * 25 ) ELSE NULL END + ( 2 ) * 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL + 6 * + + 14 + - CASE + + 82 WHEN 76 THEN NULL WHEN 11 / + - 65 THEN NULL WHEN COALESCE ( COUNT ( * ), 62, 9, 33 + - 55 ) THEN - COALESCE ( ( - 63 ), 54 * 25 ) ELSE NULL END + ( 2 ) * 14 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8300
SELECT DISTINCT + 42 * 51 + - + CAST( NULL AS SIGNED ) AS col2, + 9 * - + COALESCE ( - - 86, - 63 )
----
NULL
-774

skipif mysql # not compatible
query II rowsort label-8300
SELECT DISTINCT + 42 * 51 + - + CAST ( NULL AS INTEGER ) AS col2, + 9 * - + COALESCE ( - - 86, - 63 )
----
NULL
-774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8301
SELECT + + 62 DIV - 70 * - MIN( + 65 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8301
SELECT + + 62 / - 70 * - MIN ( + 65 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8302
SELECT DISTINCT + 34 DIV - - 16 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT + 34 / - - 16 AS col0
----
2

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

skipif mysql # not compatible
query I rowsort label-8303
SELECT + 54 / 52
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + MAX( ALL + 67 ) - - 44 + + 48 * + 67 AS col0
----
3327

skipif mysql # not compatible
query I rowsort label-8304
SELECT + MAX ( ALL + 67 ) - - 44 + + 48 * + 67 AS col0
----
3327

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL - SUM( ALL - 48 ) * + 62 + + + 16 AS col1
----
2992

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL - SUM ( ALL - 48 ) * + 62 + + + 16 AS col1
----
2992

query I rowsort
SELECT ALL 16 * - 94 * - 50 + 98
----
75298

query I rowsort
SELECT DISTINCT 24 * - + 92
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ALL 22 * - 71 - + ( - + COUNT( * ) ) AS col0
----
-1561

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL 22 * - 71 - + ( - + COUNT ( * ) ) AS col0
----
-1561

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT - 94 - + ( + 45 ) - - SUM( + - 9 ) + - MIN( + + 31 ) * + + COUNT( * ) AS col0
----
-179

skipif mysql # not compatible
query I rowsort label-8309
SELECT - 94 - + ( + 45 ) - - SUM ( + - 9 ) + - MIN ( + + 31 ) * + + COUNT ( * ) AS col0
----
-179

query I rowsort
SELECT ALL + 81 * 37 AS col2
----
2997

query I rowsort
SELECT + 41 * ( - 24 ) - - + 80 AS col0
----
-904

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT + MAX( ALL - + 71 ) * 38
----
-2698

skipif mysql # not compatible
query I rowsort label-8312
SELECT + MAX ( ALL - + 71 ) * 38
----
-2698

query I rowsort
SELECT + 41 + - 76 AS col2
----
-35

query II rowsort
SELECT 1, ( + 59 ) AS col2
----
1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT - NULLIF ( 52, + - COUNT( - 65 ) * + + 78 - + - COALESCE ( + - NULLIF ( - CASE + COUNT( * ) WHEN - + 8 THEN NULL ELSE ( + COALESCE ( - AVG ( ALL 9 ), COUNT( * ) * - 70 + 42 * + 22, - MIN( ALL 45 ) + 74 ) ) END, 16 ), 6 * 37 ) * ( 4 / + 67 + - 92 ) ) + + 52 * 22 AS col0
----
1092

skipif mysql # not compatible
query I rowsort label-8315
SELECT - NULLIF ( 52, + - COUNT ( - 65 ) * + + 78 - + - COALESCE ( + - NULLIF ( - CASE + COUNT ( * ) WHEN - + 8 THEN NULL ELSE ( + COALESCE ( - AVG ( ALL 9 ), COUNT ( * ) * - 70 + 42 * + 22, - MIN ( ALL 45 ) + 74 ) ) END, 16 ), 6 * 37 ) * ( 4 / + 67 + - 92 ) ) + + 52 * 22 AS col0
----
1092

query I rowsort
SELECT - 40 * + 82 AS col0
----
-3280

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

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT MAX ( DISTINCT - - 25 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8318
SELECT DISTINCT + COALESCE ( 69, ( - - CASE COALESCE ( - ( + + 27 ), + 38 / CAST( NULL AS SIGNED ) * 7 * 19 * 53 ) WHEN + 71 THEN NULL WHEN + 39 THEN 30 * 24 + 1 * 53 END ) - CAST( NULL AS SIGNED ) * 54, - 88 ) * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT + COALESCE ( 69, ( - - CASE COALESCE ( - ( + + 27 ), + 38 / CAST ( NULL AS INTEGER ) * 7 * 19 * 53 ) WHEN + 71 THEN NULL WHEN + 39 THEN 30 * 24 + 1 * 53 END ) - CAST ( NULL AS INTEGER ) * 54, - 88 ) * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT ALL + + COUNT( * ) * + 35 * - 31 col1
----
-1085

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + + COUNT ( * ) * + 35 * - 31 col1
----
-1085

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8321
SELECT ALL + - NULLIF ( - COUNT( * ), + COUNT( * ) ) DIV + 64 * 23 * ( - - 82 ) - + 36 col1
----
-36

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL + - NULLIF ( - COUNT ( * ), + COUNT ( * ) ) / + 64 * 23 * ( - - 82 ) - + 36 col1
----
-36

query III rowsort
SELECT ALL - 4 AS col1, 16 AS col1, + 25
----
-4
16
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8323
SELECT DISTINCT + - 65 * + - 87 + + 90 + - 6 + + 99 + - - 79 * COUNT( * ) * 62 DIV - 6
----
5022

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT + - 65 * + - 87 + + 90 + - 6 + + 99 + - - 79 * COUNT ( * ) * 62 / - 6
----
5022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8324
SELECT DISTINCT CASE - 75 WHEN - - ( 7 ) THEN + + 36 * - COUNT( * ) * - ( + 55 ) + 62 / 18 * + 19 * - ( + 85 ) + + 36 / 52 ELSE MIN( DISTINCT 41 ) + CAST( - 97 AS SIGNED ) END
----
-56

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT CASE - 75 WHEN - - ( 7 ) THEN + + 36 * - COUNT ( * ) * - ( + 55 ) + 62 / 18 * + 19 * - ( + 85 ) + + 36 / 52 ELSE MIN ( DISTINCT 41 ) + CAST ( - 97 AS INTEGER ) END
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-8325
SELECT - + ( - 55 ) DIV + 56 + 95
----
95

skipif mysql # not compatible
query I rowsort label-8325
SELECT - + ( - 55 ) / + 56 + 95
----
95

query I rowsort
SELECT + 53 + - - 0
----
53

query II rowsort
SELECT ALL - 38 * - - 38 AS col0, + 23 AS col2
----
-1444
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8328
SELECT DISTINCT + 99, + SUM( - 57 ) AS col1
----
99
-57

skipif mysql # not compatible
query II rowsort label-8328
SELECT DISTINCT + 99, + SUM ( - 57 ) AS col1
----
99
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT - SUM( - 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8329
SELECT - SUM ( - 82 ) AS col2
----
82

query II rowsort
SELECT - 6, 94 AS col2
----
-6
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT 41 * + MAX( ALL - 86 ) * - - 36 - - 63 + + 2
----
-126871

skipif mysql # not compatible
query I rowsort label-8331
SELECT 41 * + MAX ( ALL - 86 ) * - - 36 - - 63 + + 2
----
-126871

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT - COUNT( * ) * - 43 + - 97 + + 83 * + COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8332
SELECT - COUNT ( * ) * - 43 + - 97 + + 83 * + COUNT ( * ) AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8333
SELECT ALL COUNT( * ) DIV + - 11 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL COUNT ( * ) / + - 11 + + COUNT ( * )
----
1

query II rowsort
SELECT 26, + 4 + 26 AS col0
----
26
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8335
SELECT ALL + COUNT( * ) DIV + - 15 + - + 71 * ( 35 ) AS col0
----
-2485

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL + COUNT ( * ) / + - 15 + - + 71 * ( 35 ) AS col0
----
-2485

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT - 52 * ( MAX( ALL 53 ) ) + 33 AS col0
----
-2723

skipif mysql # not compatible
query I rowsort label-8336
SELECT - 52 * ( MAX ( ALL 53 ) ) + 33 AS col0
----
-2723

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

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL + COUNT ( * ) / + 38 + - 36
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8338
SELECT + + COALESCE ( - 88, + - 88 - + - 55 - COUNT( * ), - 98 * 14 + - - 31 - - COALESCE ( - 81, - - 8 DIV 34, 42, - 46 ) + + ( 45 ) * + 56 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8338
SELECT + + COALESCE ( - 88, + - 88 - + - 55 - COUNT ( * ), - 98 * 14 + - - 31 - - COALESCE ( - 81, - - 8 / 34, 42, - 46 ) + + ( 45 ) * + 56 ) AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8339
SELECT + CAST( + - 34 AS SIGNED ), 24 AS col2
----
-34
24

skipif mysql # not compatible
query II rowsort label-8339
SELECT + CAST ( + - 34 AS INTEGER ), 24 AS col2
----
-34
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8340
SELECT + COUNT( * ) + - COUNT( * ), + 45 AS col1
----
0
45

skipif mysql # not compatible
query II rowsort label-8340
SELECT + COUNT ( * ) + - COUNT ( * ), + 45 AS col1
----
0
45

query I rowsort
SELECT + 19 * - 16 - ( - 40 )
----
-264

query I rowsort
SELECT DISTINCT 60 * - 68 AS col0
----
-4080

query I rowsort
SELECT 75 * - 77 + 98 + - 75 AS col2
----
-5752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8344
SELECT ALL - 97 / ( - 88 ) * - 63 + - ( 88 ) / CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * 11 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8344
SELECT ALL - 97 / ( - 88 ) * - 63 + - ( 88 ) / CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * 11 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8345
SELECT + 19 * 96 DIV + COUNT( * ) + + 35 + - 76 AS col0
----
1783

skipif mysql # not compatible
query I rowsort label-8345
SELECT + 19 * 96 / + COUNT ( * ) + + 35 + - 76 AS col0
----
1783

query I rowsort
SELECT ALL 44 * - 22 - - 56 col0
----
-912

query I rowsort
SELECT + ( + - ( + 34 ) ) * - - 24
----
-816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8348
SELECT + 71 + - CAST( NULL AS SIGNED ) + - - 94 * - - COALESCE ( - ( 72 ), - 63 + 53, - NULLIF ( - ( - + CASE 18 WHEN - CAST( - 61 AS SIGNED ) * - 97 THEN COUNT( * ) END ), + 79 / 31 ) ) / - 9 * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT + 71 + - CAST ( NULL AS INTEGER ) + - - 94 * - - COALESCE ( - ( 72 ), - 63 + 53, - NULLIF ( - ( - + CASE 18 WHEN - CAST ( - 61 AS INTEGER ) * - 97 THEN COUNT ( * ) END ), + 79 / 31 ) ) / - 9 * - 94
----
NULL

query I rowsort
SELECT + 82 * 93 AS col1
----
7626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8350
SELECT - 74 * - 56 * + 55 + - COALESCE ( - 44, - - COALESCE ( - + 77, 32 ) * + 67 + - + 98 + + + 74 - + - ( COUNT( * ) ), MAX( - 93 ) * CAST( NULL AS SIGNED ) ) - 6 * 72 AS col0
----
227532

skipif mysql # not compatible
query I rowsort label-8350
SELECT - 74 * - 56 * + 55 + - COALESCE ( - 44, - - COALESCE ( - + 77, 32 ) * + 67 + - + 98 + + + 74 - + - ( COUNT ( * ) ), MAX ( - 93 ) * CAST ( NULL AS INTEGER ) ) - 6 * 72 AS col0
----
227532

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT MIN( - 48 ) * + 87
----
-4176

skipif mysql # not compatible
query I rowsort label-8351
SELECT MIN ( - 48 ) * + 87
----
-4176

query I rowsort
SELECT 49 * + 93 + + NULLIF ( - 47, + 6 * + 48 ) AS col0
----
4510

query I rowsort
SELECT ALL + 49 * - - 85
----
4165

query I rowsort
SELECT ( + 57 ) * - + 27 + - + 95
----
-1634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8355
SELECT DISTINCT + COUNT( * ) * - CAST( - 23 AS SIGNED ) * + - COUNT( * ) DIV 37 - - 26 - - 26 + - 2 DIV + 41 * 80 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT + COUNT ( * ) * - CAST ( - 23 AS INTEGER ) * + - COUNT ( * ) / 37 - - 26 - - 26 + - 2 / + 41 * 80 AS col2
----
52

query I rowsort
SELECT 3 * COALESCE ( + 63, + 54 * + - 77, + 94 ) AS col1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT DISTINCT 89 * - CASE + 14 WHEN + - ( ( 92 ) ) * - CASE - COUNT( * ) WHEN - 48 * 80 + + + ( 25 ) THEN + 16 * - 48 END + - COUNT( * ) THEN 77 * + 74 WHEN ( - 4 ) THEN NULL ELSE + 99 / + COUNT( * ) END + + CASE - 48 WHEN 50 * + COUNT( * ) THEN + 43 * - 15 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT 89 * - CASE + 14 WHEN + - ( ( 92 ) ) * - CASE - COUNT ( * ) WHEN - 48 * 80 + + + ( 25 ) THEN + 16 * - 48 END + - COUNT ( * ) THEN 77 * + 74 WHEN ( - 4 ) THEN NULL ELSE + 99 / + COUNT ( * ) END + + CASE - 48 WHEN 50 * + COUNT ( * ) THEN + 43 * - 15 END AS col0
----
NULL

query II rowsort
SELECT 93 + - + 60 col2, 11 AS col2
----
33
11

query I rowsort
SELECT + 37 * - + 18 AS col2
----
-666

onlyif mysql # DIV for integer division: 
query I rowsort label-8360
SELECT ALL + 50 + - - 5 + 54 DIV + 17
----
58

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL + 50 + - - 5 + 54 / + 17
----
58

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

skipif mysql # not compatible
query I rowsort label-8361
SELECT 42 - COUNT ( * ) / - - 32
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT COUNT( DISTINCT COALESCE ( + 51, - - COALESCE ( + 94, + 59, + - 94 + + 74 ) / - 53, - - 95 * + ( 7 ) * 77 + + 86 + + 78 ) ) + 1 col2
----
2

skipif mysql # not compatible
query I rowsort label-8362
SELECT COUNT ( DISTINCT COALESCE ( + 51, - - COALESCE ( + 94, + 59, + - 94 + + 74 ) / - 53, - - 95 * + ( 7 ) * 77 + + 86 + + 78 ) ) + 1 col2
----
2

query I rowsort
SELECT - 3 - - 23 AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT 19 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-8364
SELECT 19 / + 79
----
0

query I rowsort
SELECT DISTINCT - 56 + - 31
----
-87

query I rowsort
SELECT 11 * + 99 AS col1
----
1089

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8367
SELECT MIN( DISTINCT 36 ) AS col2, 79 * + 92 * + 56, + 11 + + 77 + - - 79 DIV - 97 AS col0
----
36
407008
88

skipif mysql # not compatible
query III rowsort label-8367
SELECT MIN ( DISTINCT 36 ) AS col2, 79 * + 92 * + 56, + 11 + + 77 + - - 79 / - 97 AS col0
----
36
407008
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8368
SELECT - 3 / CAST( NULL AS SIGNED ) + COUNT( * ) + + 13 / + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT - 3 / CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 13 / + 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT DISTINCT - + 95 + + 40 * + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT - + 95 + + 40 * + COUNT ( * )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8370
SELECT ALL + - 33 * + 15 * 8 DIV 60 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL + - 33 * + 15 * 8 / 60 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT 88 + + NULLIF ( COUNT( * ), - 24 + + - 22 + 98 * 50 ) * + 63
----
151

skipif mysql # not compatible
query I rowsort label-8371
SELECT 88 + + NULLIF ( COUNT ( * ), - 24 + + - 22 + 98 * 50 ) * + 63
----
151

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

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

query I rowsort
SELECT DISTINCT - 25 - 63 * 67
----
-4246

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8374
SELECT DISTINCT - ( CAST( + 39 AS SIGNED ) ) AS col1, - 61
----
-39
-61

skipif mysql # not compatible
query II rowsort label-8374
SELECT DISTINCT - ( CAST ( + 39 AS INTEGER ) ) AS col1, - 61
----
-39
-61

query I rowsort
SELECT ALL 13 - - 25 AS col0
----
38

query II rowsort
SELECT 26, 62 AS col0
----
26
62

query I rowsort
SELECT ALL - 8 - - - 78
----
-86

query II rowsort
SELECT 31, 64 AS col0
----
31
64

query I rowsort
SELECT 10 * + - 35 AS col2
----
-350

query I rowsort
SELECT DISTINCT 71 * + 85 * 52 * - 91 col1
----
-28557620

query I rowsort
SELECT ALL 5 * 30
----
150

query I rowsort
SELECT 93 + + 29 AS col2
----
122

query I rowsort
SELECT 0 * - 87 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT DISTINCT - 36 * - COUNT( * ) col2
----
36

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT - 36 * - COUNT ( * ) col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8385
SELECT 69 AS col0, 33 DIV + CASE + 30 WHEN - MAX( DISTINCT + 2 ) + + + 85 + - - 54 THEN 43 WHEN - + COUNT( * ) + + - 83 + + 72 THEN - 93 ELSE - 66 * - 83 END col1
----
69
0

skipif mysql # not compatible
query II rowsort label-8385
SELECT 69 AS col0, 33 / + CASE + 30 WHEN - MAX ( DISTINCT + 2 ) + + + 85 + - - 54 THEN 43 WHEN - + COUNT ( * ) + + - 83 + + 72 THEN - 93 ELSE - 66 * - 83 END col1
----
69
0

query I rowsort
SELECT 12 * + 99 * + + 72 AS col0
----
85536

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL 70 + - COALESCE ( CASE + - ( - - 89 ) WHEN - 79 / 2 + + ( 36 ) / - 85 THEN COUNT( * ) WHEN 55 + + 11 + + 67 THEN 68 + COUNT( * ) END, 73 ) + 59 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL 70 + - COALESCE ( CASE + - ( - - 89 ) WHEN - 79 / 2 + + ( 36 ) / - 85 THEN COUNT ( * ) WHEN 55 + + 11 + + 67 THEN 68 + COUNT ( * ) END, 73 ) + 59 AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8388
SELECT 19 - + + ( + 34 ) * NULLIF ( - 35, + + 53 ) * 39 + SUM( ALL + 81 ) AS col1, 15
----
46510
15

skipif mysql # not compatible
query II rowsort label-8388
SELECT 19 - + + ( + 34 ) * NULLIF ( - 35, + + 53 ) * 39 + SUM ( ALL + 81 ) AS col1, 15
----
46510
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8389
SELECT 90 DIV + 67
----
1

skipif mysql # not compatible
query I rowsort label-8389
SELECT 90 / + 67
----
1

query II rowsort
SELECT ALL - 75 AS col0, 35
----
-75
35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8391
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + 23 / - CAST( 77 AS SIGNED ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT - CAST ( NULL AS REAL ) / + 23 / - CAST ( 77 AS INTEGER ) * - 5
----
NULL

query II rowsort
SELECT 77 * 80 * + 82 AS col1, - 41
----
505120
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8393
SELECT 38 AS col2, CAST( NULL AS DECIMAL )
----
38
NULL

skipif mysql # not compatible
query II rowsort label-8393
SELECT 38 AS col2, CAST ( NULL AS REAL )
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT ALL ( + SUM( ALL NULLIF ( + 67, + 25 ) ) ) + - 30 col0
----
37

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL ( + SUM ( ALL NULLIF ( + 67, + 25 ) ) ) + - 30 col0
----
37

query I rowsort
SELECT - 74 + 48 col1
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-8396
SELECT ALL 18 AS col2, 44 * + 71 + - + 46 * + COUNT( * ) * - 19 + + 68 AS col0
----
18
4066

skipif mysql # not compatible
query II rowsort label-8396
SELECT ALL 18 AS col2, 44 * + 71 + - + 46 * + COUNT ( * ) * - 19 + + 68 AS col0
----
18
4066

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL MIN( - 2 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL MIN ( - 2 ) col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8399
SELECT ALL - 19 + + COALESCE ( ( - 59 ), - 7 * - COUNT( * ) * - - 44 DIV + 99 - - 41 ), 12 * + 19 AS col2
----
-78
228

skipif mysql # not compatible
query II rowsort label-8399
SELECT ALL - 19 + + COALESCE ( ( - 59 ), - 7 * - COUNT ( * ) * - - 44 / + 99 - - 41 ), 12 * + 19 AS col2
----
-78
228

query I rowsort
SELECT DISTINCT 89 + + 36
----
125

query I rowsort
SELECT 67 + 49 * + 40
----
2027

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT + 68 * ( + 20 ) * - MAX( 70 ) * + COUNT( + 33 )
----
-95200

skipif mysql # not compatible
query I rowsort label-8402
SELECT + 68 * ( + 20 ) * - MAX ( 70 ) * + COUNT ( + 33 )
----
-95200

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

skipif mysql # not compatible
query I rowsort label-8403
SELECT COUNT ( * ) + + 57 AS col2
----
58

query II rowsort
SELECT ALL + 69, - 77 * - 35 * - 90 * - 35 AS col1
----
69
8489250

query I rowsort
SELECT DISTINCT 68 * - 22 - - 4 * - + ( + 5 )
----
-1516

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL - COALESCE ( - ( - 12 ), 25, COUNT( - 6 ) + - - 11 )
----
-12

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL - COALESCE ( - ( - 12 ), 25, COUNT ( - 6 ) + - - 11 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL - COUNT( * ) * + - MAX( DISTINCT - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - COUNT ( * ) * + - MAX ( DISTINCT - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT ALL - NULLIF ( 82, + 49 * + COALESCE ( + - COUNT( * ), - MAX( DISTINCT + 88 ), + 57, - 28 + + - MAX( ALL - - 98 ), - 72 * + 17 * - 85 * COUNT( * ) ) ) * + 94
----
-7708

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL - NULLIF ( 82, + 49 * + COALESCE ( + - COUNT ( * ), - MAX ( DISTINCT + 88 ), + 57, - 28 + + - MAX ( ALL - - 98 ), - 72 * + 17 * - 85 * COUNT ( * ) ) ) * + 94
----
-7708

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

skipif mysql # not compatible
query I rowsort label-8409
SELECT + COUNT ( * ) / + - 95 + + 94
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8410
SELECT + 23 * - 12 * 55 + - 96 AS col2, + ( - MIN( DISTINCT 25 ) )
----
-15276
-25

skipif mysql # not compatible
query II rowsort label-8410
SELECT + 23 * - 12 * 55 + - 96 AS col2, + ( - MIN ( DISTINCT 25 ) )
----
-15276
-25

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

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - 22 * MAX ( ALL + 14 ) AS col1
----
-308

query I rowsort
SELECT - 42 * - ( 53 )
----
2226

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8413
SELECT 49 * 11 + ( - 1 ) DIV + 85 col1, - 13 DIV + 4 * - 37 * CAST( NULL AS SIGNED )
----
539
NULL

skipif mysql # not compatible
query II rowsort label-8413
SELECT 49 * 11 + ( - 1 ) / + 85 col1, - 13 / + 4 * - 37 * CAST ( NULL AS INTEGER )
----
539
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8414
SELECT - SUM( DISTINCT 8 ) + - CAST( - + 19 AS SIGNED ) + - MAX( 67 ) + - COUNT( * ) * NULLIF ( 34, + + 60 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8414
SELECT - SUM ( DISTINCT 8 ) + - CAST ( - + 19 AS INTEGER ) + - MAX ( 67 ) + - COUNT ( * ) * NULLIF ( 34, + + 60 ) AS col1
----
-90

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

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

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

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

query I rowsort
SELECT ALL + 22 * 19 col2
----
418

query I rowsort
SELECT + 66 * - 92 + ( - 55 ) - + 32
----
-6159

query I rowsort
SELECT 86 * - - 44 + - 15 + + 42
----
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT DISTINCT - 62 * - + COUNT( * ) + + + 37
----
99

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT - 62 * - + COUNT ( * ) + + + 37
----
99

query I rowsort
SELECT - 81 + + + 47 + + 71 * + + 90 col1
----
6356

query I rowsort
SELECT - 52 * - 0
----
0

query I rowsort
SELECT + 58 + 65 AS col0
----
123

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

query I rowsort
SELECT DISTINCT - ( + + 36 ) + 45 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT - + NULLIF ( + + 57, - 23 * - + 60 * - 74 - - 13 + - 36 + 8 + + + COUNT( * ) ) * + 32 AS col1
----
-1824

skipif mysql # not compatible
query I rowsort label-8426
SELECT - + NULLIF ( + + 57, - 23 * - + 60 * - 74 - - 13 + - 36 + 8 + + + COUNT ( * ) ) * + 32 AS col1
----
-1824

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8428
SELECT + + ( + - 67 ) DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-8428
SELECT + + ( + - 67 ) / - + 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8429
SELECT + 94 * - + 7 + + 66 DIV + - 58 * - + COUNT( + - 25 )
----
-657

skipif mysql # not compatible
query I rowsort label-8429
SELECT + 94 * - + 7 + + 66 / + - 58 * - + COUNT ( + - 25 )
----
-657

query I rowsort
SELECT ALL 38 + 56 + - 70 - - 38 * + 90 * + 7 AS col2
----
23964

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT + + 87 + + COUNT( + 32 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8431
SELECT + + 87 + + COUNT ( + 32 ) AS col0
----
88

query I rowsort
SELECT - 61 * + 52
----
-3172

query I rowsort
SELECT + - 12 + 52 col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8434
SELECT ALL - 7 DIV + 48 * + + 79 * CASE - - 12 WHEN - COUNT( * ) THEN NULL ELSE + 32 DIV 92 DIV COALESCE ( + 73, + 29, + + 45 ) * 47 + - 53 * + 55 END
----
0

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL - 7 / + 48 * + + 79 * CASE - - 12 WHEN - COUNT ( * ) THEN NULL ELSE + 32 / 92 / COALESCE ( + 73, + 29, + + 45 ) * 47 + - 53 * + 55 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT + - NULLIF ( COUNT( * ), - 78 ) + + 6 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8435
SELECT + - NULLIF ( COUNT ( * ), - 78 ) + + 6 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT - CAST( AVG ( ALL + NULLIF ( + 96, - + CAST( 16 AS SIGNED ) + 1 ) ) AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-8436
SELECT - CAST ( AVG ( ALL + NULLIF ( + 96, - + CAST ( 16 AS INTEGER ) + 1 ) ) AS INTEGER )
----
-96

query I rowsort
SELECT + + 93 - 37 * - ( + 16 ) * 82 + + 23 + + ( 59 ) col1
----
48719

query I rowsort
SELECT ALL + 82 * - 6 AS col2
----
-492

query I rowsort
SELECT DISTINCT - 35 * + + 32 AS col2
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT ALL MIN( DISTINCT + + NULLIF ( 10, - 41 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL MIN ( DISTINCT + + NULLIF ( 10, - 41 ) ) AS col2
----
10

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

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

query I rowsort
SELECT ALL 60 * - - 34
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT - COUNT( ALL + + 60 ) + - ( + 96 )
----
-97

skipif mysql # not compatible
query I rowsort label-8443
SELECT - COUNT ( ALL + + 60 ) + - ( + 96 )
----
-97

query I rowsort
SELECT + 19 * + + 1 * - 3 - - ( 24 ) * - - 7 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT + CASE COUNT( * ) WHEN NULLIF ( - 71, + + 87 ) THEN + COUNT( * ) * 66 ELSE + + 48 END col0
----
48

skipif mysql # not compatible
query I rowsort label-8445
SELECT + CASE COUNT ( * ) WHEN NULLIF ( - 71, + + 87 ) THEN + COUNT ( * ) * 66 ELSE + + 48 END col0
----
48

query I rowsort
SELECT - 24 * + + 69 * - 48
----
79488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8447
SELECT DISTINCT 37 DIV 45 + + COALESCE ( + COUNT( DISTINCT + 8 ), + + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT 37 / 45 + + COALESCE ( + COUNT ( DISTINCT + 8 ), + + 32 )
----
1

query I rowsort
SELECT - 88 * + - 95
----
8360

onlyif mysql # aggregate syntax: 
query II rowsort label-8449
SELECT + 8, - COUNT( * ) col0
----
8
-1

skipif mysql # not compatible
query II rowsort label-8449
SELECT + 8, - COUNT ( * ) col0
----
8
-1

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

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

query I rowsort
SELECT - 58 * - 54 * + 81 AS col0
----
253692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8452
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 33 + + 17 + + - 69 + + 13 + - 0 / COUNT( * ) + - 62 + + 16 * - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 33 + + 17 + + - 69 + + 13 + - 0 / COUNT ( * ) + - 62 + + 16 * - 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL - 57 * + 7 + 90 - - COUNT( * ) AS col0
----
-308

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL - 57 * + 7 + 90 - - COUNT ( * ) AS col0
----
-308

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8454
SELECT 82 * + - 59 * + - COUNT( * ) - COUNT( * ) DIV + 75
----
4838

skipif mysql # not compatible
query I rowsort label-8454
SELECT 82 * + - 59 * + - COUNT ( * ) - COUNT ( * ) / + 75
----
4838

onlyif mysql # aggregate syntax: 
query II rowsort label-8455
SELECT NULLIF ( 8, + + 39 - - COUNT( * ) * 12 / - 95 ) col2, 25
----
8
25

skipif mysql # not compatible
query II rowsort label-8455
SELECT NULLIF ( 8, + + 39 - - COUNT ( * ) * 12 / - 95 ) col2, 25
----
8
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT + MIN( - - 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8456
SELECT + MIN ( - - 72 ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8457
SELECT DISTINCT - COUNT( * ) * + MIN( DISTINCT 71 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT - COUNT ( * ) * + MIN ( DISTINCT 71 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 68 * 56 + 45 AS col2
----
3853

query I rowsort
SELECT - ( 91 ) + + 92 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8460
SELECT - 92 - CASE 27 WHEN + + 29 / COUNT( * ) * + 66 THEN 23 * 60 ELSE - 76 - - 6 - + CAST( NULL AS SIGNED ) + - 86 * - ( + 51 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT - 92 - CASE 27 WHEN + + 29 / COUNT ( * ) * + 66 THEN 23 * 60 ELSE - 76 - - 6 - + CAST ( NULL AS INTEGER ) + - 86 * - ( + 51 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + - 28 * - 54 - + ( - CASE - ( - 10 ) WHEN + MIN( - 85 ) + 98 THEN + 25 ELSE - - 41 * + 0 * - - 74 * - COUNT( 25 ) * - 19 + 13 END ) * 22
----
1798

skipif mysql # not compatible
query I rowsort label-8461
SELECT + - 28 * - 54 - + ( - CASE - ( - 10 ) WHEN + MIN ( - 85 ) + 98 THEN + 25 ELSE - - 41 * + 0 * - - 74 * - COUNT ( 25 ) * - 19 + 13 END ) * 22
----
1798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8462
SELECT - - CAST( 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-8462
SELECT - - CAST ( 25 AS INTEGER )
----
25

query II rowsort
SELECT - - ( - + 85 ) * + + 56 AS col2, - 52
----
-4760
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT - + MAX( DISTINCT - ( - 9 ) ) + 65
----
56

skipif mysql # not compatible
query I rowsort label-8464
SELECT - + MAX ( DISTINCT - ( - 9 ) ) + 65
----
56

query I rowsort
SELECT DISTINCT + 34 * - 81 AS col1
----
-2754

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8466
SELECT - - CAST( NULL AS SIGNED ) + + - NULLIF ( + + 72, 96 ) * + - ( 44 ) AS col0, 76 + - 77 * - 24
----
NULL
1924

skipif mysql # not compatible
query II rowsort label-8466
SELECT - - CAST ( NULL AS INTEGER ) + + - NULLIF ( + + 72, 96 ) * + - ( 44 ) AS col0, 76 + - 77 * - 24
----
NULL
1924

query I rowsort
SELECT - 95 * 34 AS col1
----
-3230

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT 59 + + + 3 * - MAX( + 81 ) + + 11 AS col0
----
-173

skipif mysql # not compatible
query I rowsort label-8469
SELECT 59 + + + 3 * - MAX ( + 81 ) + + 11 AS col0
----
-173

query I rowsort
SELECT 97 + + 79 AS col0
----
176

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8472
SELECT - 82 AS col2, - 5 + + CAST( NULL AS SIGNED ) - - COUNT( * ) * + - NULLIF ( - 9, + - COALESCE ( 20, - + 92 ) ) * - ( - + AVG ( ALL 21 ) ) - + - 11
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-8472
SELECT - 82 AS col2, - 5 + + CAST ( NULL AS INTEGER ) - - COUNT ( * ) * + - NULLIF ( - 9, + - COALESCE ( 20, - + 92 ) ) * - ( - + AVG ( ALL 21 ) ) - + - 11
----
-82
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8473
SELECT CAST( NULL AS SIGNED ) / + + 47 * - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8473
SELECT CAST ( NULL AS INTEGER ) / + + 47 * - + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT COALESCE ( COUNT( * ), - + 88 * + 66 ) * - 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT COALESCE ( COUNT ( * ), - + 88 * + 66 ) * - 36 AS col1
----
-36

query I rowsort
SELECT ( - NULLIF ( 2, 22 ) ) + - 53 + - 46 AS col2
----
-101

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8477
SELECT + ( 90 ) * + CAST( + 78 AS SIGNED ) + - + MAX( - 72 ) + + MIN( DISTINCT - + 44 ) - + 92 AS col0
----
6956

skipif mysql # not compatible
query I rowsort label-8477
SELECT + ( 90 ) * + CAST ( + 78 AS INTEGER ) + - + MAX ( - 72 ) + + MIN ( DISTINCT - + 44 ) - + 92 AS col0
----
6956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8478
SELECT COALESCE ( - COUNT( * ), - 35 + - - MIN( 14 ), - 16 * + - 23 DIV - NULLIF ( + 10, - COUNT( + + 0 ) ) + ( 0 ) * + 29 + - - 57 ) + - 16
----
-17

skipif mysql # not compatible
query I rowsort label-8478
SELECT COALESCE ( - COUNT ( * ), - 35 + - - MIN ( 14 ), - 16 * + - 23 / - NULLIF ( + 10, - COUNT ( + + 0 ) ) + ( 0 ) * + 29 + - - 57 ) + - 16
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT 87 * + 46 + + ( MAX( DISTINCT - 87 ) )
----
3915

skipif mysql # not compatible
query I rowsort label-8479
SELECT 87 * + 46 + + ( MAX ( DISTINCT - 87 ) )
----
3915

query II rowsort
SELECT 66 AS col1, 55 - CASE 65 WHEN - - 63 / - ( + + 73 ) THEN NULL ELSE - - 89 + + 77 END
----
66
-111

query I rowsort
SELECT ALL COALESCE ( - + 14, - 13 ) + + + 32 - - 64 * - 82 * - COALESCE ( + 15, 65 ) AS col2
----
78738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8482
SELECT NULLIF ( - 10, COUNT( * ) - + + 92 ) + 80 * - MAX( + CASE - - 49 WHEN 44 - + 87 THEN NULL ELSE - 20 DIV + + 62 + - - 23 END ) + - - 30 DIV + + 17 AS col2
----
-1849

skipif mysql # not compatible
query I rowsort label-8482
SELECT NULLIF ( - 10, COUNT ( * ) - + + 92 ) + 80 * - MAX ( + CASE - - 49 WHEN 44 - + 87 THEN NULL ELSE - 20 / + + 62 + - - 23 END ) + - - 30 / + + 17 AS col2
----
-1849

query I rowsort
SELECT 18 + + 77 AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8484
SELECT ALL - COUNT( ALL 73 ) AS col1, + 40 / - + 38 - 94 - + 55 + - 44 * - - 44 * + + CAST( - - ( - CAST( NULL AS SIGNED ) ) AS DECIMAL )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8484
SELECT ALL - COUNT ( ALL 73 ) AS col1, + 40 / - + 38 - 94 - + 55 + - 44 * - - 44 * + + CAST ( - - ( - CAST ( NULL AS INTEGER ) ) AS REAL )
----
-1
NULL

query I rowsort
SELECT ALL 10 + ( + + 10 )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8486
SELECT COALESCE ( + COUNT( * ), - COUNT( * ) + + - 7, - - CAST( + - CAST( + 27 AS DECIMAL ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8486
SELECT COALESCE ( + COUNT ( * ), - COUNT ( * ) + + - 7, - - CAST ( + - CAST ( + 27 AS REAL ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL - + MIN( - - 59 ) - + COUNT( * ) * - ( - 89 )
----
-148

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL - + MIN ( - - 59 ) - + COUNT ( * ) * - ( - 89 )
----
-148

query I rowsort
SELECT NULLIF ( - 11, + 45 + AVG ( DISTINCT - 81 ) )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8489
SELECT CAST( 96 AS SIGNED ) * - 18
----
-1728

skipif mysql # not compatible
query I rowsort label-8489
SELECT CAST ( 96 AS INTEGER ) * - 18
----
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT + COUNT( + - 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8490
SELECT + COUNT ( + - 77 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8491
SELECT 31 + + 88 DIV + 75 - + - 16 DIV + - 50 * COUNT( - - 60 )
----
32

skipif mysql # not compatible
query I rowsort label-8491
SELECT 31 + + 88 / + 75 - + - 16 / + - 50 * COUNT ( - - 60 )
----
32

query I rowsort
SELECT + 34 * - 41 AS col2
----
-1394

query I rowsort
SELECT ALL + - 86 * ( - + 86 )
----
7396

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8494
SELECT - NULLIF ( 41, + + CASE - + 88 WHEN - 90 + - ( - + 29 ) THEN - + ( 17 ) WHEN + ( 52 ) + + - MIN( - 95 ) THEN NULL WHEN + 43 + + 21 + + 61 + COUNT( * ) * 3 THEN CAST( NULL AS DECIMAL ) END ) DIV - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8494
SELECT - NULLIF ( 41, + + CASE - + 88 WHEN - 90 + - ( - + 29 ) THEN - + ( 17 ) WHEN + ( 52 ) + + - MIN ( - 95 ) THEN NULL WHEN + 43 + + 21 + + 61 + COUNT ( * ) * 3 THEN CAST ( NULL AS REAL ) END ) / - 66 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8495
SELECT ALL - COUNT( * ), + ( + - CASE - ( - 35 ) WHEN 16 THEN NULL ELSE + + 4 DIV + CAST( + 87 AS SIGNED ) * - + 96 * 71 * - 43 + - 41 * - 58 END ) * - 10 + - - 64 AS col1
----
-1
23844

skipif mysql # not compatible
query II rowsort label-8495
SELECT ALL - COUNT ( * ), + ( + - CASE - ( - 35 ) WHEN 16 THEN NULL ELSE + + 4 / + CAST ( + 87 AS INTEGER ) * - + 96 * 71 * - 43 + - 41 * - 58 END ) * - 10 + - - 64 AS col1
----
-1
23844

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT + 79 DIV 17 + - 45 + + - 10 * 32
----
-361

skipif mysql # not compatible
query I rowsort label-8496
SELECT + 79 / 17 + - 45 + + - 10 * 32
----
-361

query II rowsort
SELECT - + 3 AS col0, - 40
----
-3
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8498
SELECT ALL + ( - 56 ), + ( + 75 ) * + CASE + COUNT( * ) WHEN - COUNT( * ) - - - 35 * + 71 + - 60 THEN + COUNT( ALL + 73 ) ELSE NULL END * 70 - 2 * COUNT( + + CAST( + 86 AS SIGNED ) ) * 27 AS col0
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-8498
SELECT ALL + ( - 56 ), + ( + 75 ) * + CASE + COUNT ( * ) WHEN - COUNT ( * ) - - - 35 * + 71 + - 60 THEN + COUNT ( ALL + 73 ) ELSE NULL END * 70 - 2 * COUNT ( + + CAST ( + 86 AS INTEGER ) ) * 27 AS col0
----
-56
NULL

query I rowsort
SELECT + 36 - + 80 + + + 3
----
-41

query II rowsort
SELECT + 17 AS col0, - 71
----
17
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT 11 + + SUM( ALL - 65 )
----
-54

skipif mysql # not compatible
query I rowsort label-8501
SELECT 11 + + SUM ( ALL - 65 )
----
-54

query I rowsort
SELECT + 59 * ( - 27 )
----
-1593

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT COUNT( * ) + + 60 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8503
SELECT COUNT ( * ) + + 60 AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8504
SELECT DISTINCT + COUNT( * ) * - CAST( 88 AS SIGNED ) * + 13
----
-1144

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT + COUNT ( * ) * - CAST ( 88 AS INTEGER ) * + 13
----
-1144

query I rowsort
SELECT DISTINCT + 35 + - + 20 * - - 26 AS col0
----
-485

query I rowsort
SELECT ALL + 90 * 22 AS col2
----
1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8507
SELECT 94 * - COALESCE ( + - CAST( NULL AS SIGNED ), - 65, + SUM( + 29 ) - - 10 ), 40 + - 93 * - 62 * - 60 + MAX( - - CAST( NULL AS SIGNED ) ) * CASE - ( - 73 ) WHEN 13 * + NULLIF ( + 15, NULLIF ( MAX( ALL 68 ), ( 45 ) ) ) THEN NULL WHEN 12 THEN + 75 ELSE NULL END * + 82 AS col0
----
6110
NULL

skipif mysql # not compatible
query II rowsort label-8507
SELECT 94 * - COALESCE ( + - CAST ( NULL AS INTEGER ), - 65, + SUM ( + 29 ) - - 10 ), 40 + - 93 * - 62 * - 60 + MAX ( - - CAST ( NULL AS INTEGER ) ) * CASE - ( - 73 ) WHEN 13 * + NULLIF ( + 15, NULLIF ( MAX ( ALL 68 ), ( 45 ) ) ) THEN NULL WHEN 12 THEN + 75 ELSE NULL END * + 82 AS col0
----
6110
NULL

query I rowsort
SELECT ALL - 63 + + - 24 col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL COUNT( * ) + + - 89
----
-88

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL COUNT ( * ) + + - 89
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT 84 DIV + - 32
----
-2

skipif mysql # not compatible
query I rowsort label-8510
SELECT 84 / + - 32
----
-2

query I rowsort
SELECT COALESCE ( + 39, + 4, - 14 ) + 30
----
69

query I rowsort
SELECT DISTINCT + 73 + COALESCE ( + 54, - - 68 ) AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL + 19 * + COUNT( - + 23 ) + - 43 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL + 19 * + COUNT ( - + 23 ) + - 43 AS col1
----
-24

query I rowsort
SELECT 9 * - 60
----
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-8515
SELECT DISTINCT 58 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT 58 / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL 93 * + 18 * + SUM( + ( ( + 29 ) ) ) AS col0
----
48546

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL 93 * + 18 * + SUM ( + ( ( + 29 ) ) ) AS col0
----
48546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8517
SELECT DISTINCT - ( + CASE + + COUNT( * ) WHEN ( + COUNT( * ) ) + 76 THEN NULL ELSE 4 * + + 12 + - ( - 43 ) DIV + - 5 END ) col0
----
-40

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT - ( + CASE + + COUNT ( * ) WHEN ( + COUNT ( * ) ) + 76 THEN NULL ELSE 4 * + + 12 + - ( - 43 ) / + - 5 END ) col0
----
-40

query I rowsort
SELECT ALL 87 - + + 25 * - 80
----
2087

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ( 37 ) * - 41 * - COUNT( 73 )
----
1517

skipif mysql # not compatible
query I rowsort label-8519
SELECT ( 37 ) * - 41 * - COUNT ( 73 )
----
1517

query I rowsort
SELECT ALL - ( - + 35 ) col2
----
35

query I rowsort
SELECT CASE + - 52 WHEN + 65 THEN NULL WHEN + 20 THEN - + ( - NULLIF ( + 7, - + 51 + - 6 / 55 * + + 6 * + 43 ) ) ELSE + 90 END + + 65
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL COUNT( * ) - - - CASE + 10 WHEN - 76 THEN - 90 + 55 + ( - - COALESCE ( + 83, + AVG ( - 12 ) * 65 + - NULLIF ( + + COUNT( * ), 81 ), ( 76 ) - 50 ) ) WHEN - 24 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL COUNT ( * ) - - - CASE + 10 WHEN - 76 THEN - 90 + 55 + ( - - COALESCE ( + 83, + AVG ( - 12 ) * 65 + - NULLIF ( + + COUNT ( * ), 81 ), ( 76 ) - 50 ) ) WHEN - 24 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8523
SELECT 87 * + ( - CASE - 45 WHEN - - 83 - - 44 THEN 64 WHEN 52 + AVG ( 68 ) + - 41 * 21 * + 41 + ( - - CAST( + 98 AS DECIMAL ) ) * + MAX( ALL + 96 ) THEN + 34 * 8 + - 36 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT 87 * + ( - CASE - 45 WHEN - - 83 - - 44 THEN 64 WHEN 52 + AVG ( 68 ) + - 41 * 21 * + 41 + ( - - CAST ( + 98 AS REAL ) ) * + MAX ( ALL + 96 ) THEN + 34 * 8 + - 36 END )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8525
SELECT DISTINCT - ( + CAST( + ( + - COUNT( - - 48 ) ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT - ( + CAST ( + ( + - COUNT ( - - 48 ) ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT + ( - 3 ) + MAX( - + 34 )
----
-37

skipif mysql # not compatible
query I rowsort label-8526
SELECT + ( - 3 ) + MAX ( - + 34 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8527
SELECT ALL - 95 * + + 51 DIV + - COUNT( * ) + 95 AS col0
----
4940

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL - 95 * + + 51 / + - COUNT ( * ) + 95 AS col0
----
4940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8528
SELECT + COUNT( * ) * - 44 / 23 + + 83 * - 23 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT + COUNT ( * ) * - 44 / 23 + + 83 * - 23 + + + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT + - 45 + + NULLIF ( + 67, + 32 * + COUNT( * ) ) + - - NULLIF ( + + 93, + + COUNT( * ) * 28 ) * - 21 - + 35
----
-1966

skipif mysql # not compatible
query I rowsort label-8530
SELECT + - 45 + + NULLIF ( + 67, + 32 * + COUNT ( * ) ) + - - NULLIF ( + + 93, + + COUNT ( * ) * 28 ) * - 21 - + 35
----
-1966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT - 4 - + NULLIF ( + 31, - CAST( + + 91 AS SIGNED ) * - 29 )
----
-35

skipif mysql # not compatible
query I rowsort label-8531
SELECT - 4 - + NULLIF ( + 31, - CAST ( + + 91 AS INTEGER ) * - 29 )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT - 13 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-8532
SELECT - 13 / + 49
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8534
SELECT - MAX( DISTINCT + 58 ) AS col1, COUNT( * ) + - 40
----
-58
-39

skipif mysql # not compatible
query II rowsort label-8534
SELECT - MAX ( DISTINCT + 58 ) AS col1, COUNT ( * ) + - 40
----
-58
-39

query I rowsort
SELECT ALL + 22 + + 50 + - - 0
----
72

query I rowsort
SELECT DISTINCT 42 + 43 * 84 AS col1
----
3654

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

skipif mysql # not compatible
query I rowsort label-8537
SELECT - 13 / + COUNT ( - 9 )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8538
SELECT ALL 77 + 9 + MIN( - 70 ) DIV + - 42 + + 10 + + - 9 col0
----
88

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL 77 + 9 + MIN ( - 70 ) / + - 42 + + 10 + + - 9 col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8539
SELECT DISTINCT CASE - - 82 WHEN + + 39 + + COUNT( 42 ) + + COUNT( * ) * COUNT( * ) / - 10 * SUM( - 46 ) THEN NULL WHEN 62 / + + 84 + + + CAST( - + 75 AS SIGNED ) THEN NULL ELSE + MAX( 88 ) END
----
88

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT CASE - - 82 WHEN + + 39 + + COUNT ( 42 ) + + COUNT ( * ) * COUNT ( * ) / - 10 * SUM ( - 46 ) THEN NULL WHEN 62 / + + 84 + + + CAST ( - + 75 AS INTEGER ) THEN NULL ELSE + MAX ( 88 ) END
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8540
SELECT + CAST( NULL AS DECIMAL ) * 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT + CAST ( NULL AS REAL ) * 7 AS col2
----
NULL

query I rowsort
SELECT - 59 * ( 54 )
----
-3186

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL + MIN( ALL - 11 ) + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL + MIN ( ALL - 11 ) + COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT ALL COALESCE ( + 35, + + COUNT( * ), + MAX( DISTINCT - 35 ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL COALESCE ( + 35, + + COUNT ( * ), + MAX ( DISTINCT - 35 ) ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - 47 + - - 69 + - - 36 - - 91 + - 80 * - 64 + - 46 * - + COUNT( * ) * + 0 + 58 AS col2
----
5327

skipif mysql # not compatible
query I rowsort label-8544
SELECT - 47 + - - 69 + - - 36 - - 91 + - 80 * - 64 + - 46 * - + COUNT ( * ) * + 0 + 58 AS col2
----
5327

query I rowsort
SELECT - 5 * - 21 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT DISTINCT + MAX( - + 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT + MAX ( - + 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8547
SELECT - MAX( + 55 ) + + - COUNT( * ) * + 97 DIV + 80
----
-56

skipif mysql # not compatible
query I rowsort label-8547
SELECT - MAX ( + 55 ) + + - COUNT ( * ) * + 97 / + 80
----
-56

query I rowsort
SELECT + + 62 * 82 + - - 23 * - 24 AS col1
----
4532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8549
SELECT - 89 * - - COALESCE ( - MAX( + + 97 ), + 26 + + - 67 + + 79 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT - 89 * - - COALESCE ( - MAX ( + + 97 ), + 26 + + - 67 + + 79 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT COUNT( * ) * 37 + 11 * + 51 + - 82
----
516

skipif mysql # not compatible
query I rowsort label-8550
SELECT COUNT ( * ) * 37 + 11 * + 51 + - 82
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT - + 60 + + NULLIF ( - CASE - - COUNT( * ) WHEN - + 85 * - ( 17 ) + + 50 - + COALESCE ( + 53, 94 ) * - - 79 * 81 / ( 53 ) THEN + 11 END, - ( 81 ) * + 61 + - COUNT( * ) ) * 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT - + 60 + + NULLIF ( - CASE - - COUNT ( * ) WHEN - + 85 * - ( 17 ) + + 50 - + COALESCE ( + 53, 94 ) * - - 79 * 81 / ( 53 ) THEN + 11 END, - ( 81 ) * + 61 + - COUNT ( * ) ) * 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8552
SELECT + - COUNT( ALL + + 14 ) * - 64 + 25 - - MIN( DISTINCT + 95 ) AS col2, + 42 AS col0
----
184
42

skipif mysql # not compatible
query II rowsort label-8552
SELECT + - COUNT ( ALL + + 14 ) * - 64 + 25 - - MIN ( DISTINCT + 95 ) AS col2, + 42 AS col0
----
184
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8553
SELECT ALL - 90 DIV - 27 + - - SUM( - 56 ) * - + 77 - + - 21
----
4336

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - 90 / - 27 + - - SUM ( - 56 ) * - + 77 - + - 21
----
4336

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT 85 * + COUNT( * ) + - 42 * - - 98
----
-4031

skipif mysql # not compatible
query I rowsort label-8554
SELECT 85 * + COUNT ( * ) + - 42 * - - 98
----
-4031

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT DISTINCT + MIN( DISTINCT - + COALESCE ( + 23, 32 * + 62, 84 ) ) * + 23 AS col2
----
-529

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT + MIN ( DISTINCT - + COALESCE ( + 23, 32 * + 62, 84 ) ) * + 23 AS col2
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT ALL 40 * - - 60 + + COUNT( * )
----
2401

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL 40 * - - 60 + + COUNT ( * )
----
2401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8557
SELECT + CASE + 98 WHEN 88 THEN - 84 * 30 WHEN ( - - 47 ) * - SUM( + 33 ) THEN + 16 END + + - 8 * - CAST( NULL AS SIGNED ) + + 10, + 88 AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-8557
SELECT + CASE + 98 WHEN 88 THEN - 84 * 30 WHEN ( - - 47 ) * - SUM ( + 33 ) THEN + 16 END + + - 8 * - CAST ( NULL AS INTEGER ) + + 10, + 88 AS col0
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT ALL COUNT( * ) * + - 99 + - + COUNT( * ) * - - 27 + + 35 col1
----
-91

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL COUNT ( * ) * + - 99 + - + COUNT ( * ) * - - 27 + + 35 col1
----
-91

query I rowsort
SELECT DISTINCT 62 * + 71 col2
----
4402

query I rowsort
SELECT 94 * - 22 + 43 * - 60
----
-4648

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT ALL COALESCE ( ( 53 ), + + MIN( + 47 ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL COALESCE ( ( 53 ), + + MIN ( + 47 ) ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT - ( - + COUNT( ALL - 70 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8563
SELECT - ( - + COUNT ( ALL - 70 ) ) col1
----
1

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

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

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

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

query I rowsort
SELECT + 42 * + 58
----
2436

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT - 59 + - 82 * + - COUNT( * ) + COALESCE ( + 56, + 78 + - 40 + 0 * + 42 * + 18 ) + 12
----
91

skipif mysql # not compatible
query I rowsort label-8567
SELECT - 59 + - 82 * + - COUNT ( * ) + COALESCE ( + 56, + 78 + - 40 + 0 * + 42 * + 18 ) + 12
----
91

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

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

query I rowsort
SELECT - ( - ( 17 ) )
----
17

query I rowsort
SELECT + 82 - - 22 AS col2
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8571
SELECT DISTINCT COUNT( * ) * + CASE - CAST( MIN( ALL - 5 ) AS SIGNED ) WHEN 81 * + CAST( 96 AS SIGNED ) THEN 9 - + - 4 END * + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT COUNT ( * ) * + CASE - CAST ( MIN ( ALL - 5 ) AS INTEGER ) WHEN 81 * + CAST ( 96 AS INTEGER ) THEN 9 - + - 4 END * + + 42
----
NULL

query I rowsort
SELECT DISTINCT - 55 - - 94 AS col1
----
39

query I rowsort
SELECT - 76 * - + 18 AS col1
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL SUM( ALL - ( - 97 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL SUM ( ALL - ( - 97 ) ) AS col0
----
97

query I rowsort
SELECT ALL COALESCE ( - 28, 68, 97 ) AS col2
----
-28

query I rowsort
SELECT - - COALESCE ( - + 75, - 82 ) * - + 72 + 27 AS col2
----
5427

query I rowsort
SELECT ALL + + ( + - COALESCE ( - ( - 73 ), - 66 ) )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT DISTINCT + - COUNT( - 70 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT + - COUNT ( - 70 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT - SUM( ALL + + 40 ) + + 46 + + 59
----
65

skipif mysql # not compatible
query I rowsort label-8579
SELECT - SUM ( ALL + + 40 ) + + 46 + + 59
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT MIN( DISTINCT + + 18 ) * - - 10 * - 97
----
-17460

skipif mysql # not compatible
query I rowsort label-8580
SELECT MIN ( DISTINCT + + 18 ) * - - 10 * - 97
----
-17460

query I rowsort
SELECT 4 * 37 + - - 37 AS col2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT - CAST( + ( - 41 ) AS SIGNED ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8582
SELECT - CAST ( + ( - 41 ) AS INTEGER ) AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8583
SELECT + - 60 * + COUNT( * ) + COUNT( * ) * - 0 DIV + NULLIF ( - 94, - 8 ) * - 6
----
-60

skipif mysql # not compatible
query I rowsort label-8583
SELECT + - 60 * + COUNT ( * ) + COUNT ( * ) * - 0 / + NULLIF ( - 94, - 8 ) * - 6
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT - 4 * - COUNT( * ) + + 60 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8584
SELECT - 4 * - COUNT ( * ) + + 60 AS col2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8585
SELECT ALL - + 95 + - - COALESCE ( CAST( - ( + + 51 ) AS SIGNED ), - + 53 + + 73 )
----
-146

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL - + 95 + - - COALESCE ( CAST ( - ( + + 51 ) AS INTEGER ), - + 53 + + 73 )
----
-146

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

query I rowsort
SELECT DISTINCT - 15 + + CASE - + 0 WHEN + 52 THEN + - AVG ( DISTINCT + + 60 ) END AS col2
----
NULL

query II rowsort
SELECT ALL 92 * + + 91 AS col0, 28 AS col2
----
8372
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8589
SELECT ALL + - 83 DIV 76 + - 42 * 99 * + 28
----
-116425

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL + - 83 / 76 + - 42 * 99 * + 28
----
-116425

query I rowsort
SELECT ALL - 4 + ( - 72 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT DISTINCT - CASE 89 WHEN 27 / + + 64 + 55 * - 84 * + + 70 + + NULLIF ( + - MAX( + 0 ), 4 - - 39 + - SUM( - COALESCE ( + 32, + 57 * - + 12 ) ) ) THEN - 0 + - 25 WHEN + 88 * - 9 THEN 51 ELSE NULL END - NULLIF ( 56, + 15 + 43 * + 66 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT - CASE 89 WHEN 27 / + + 64 + 55 * - 84 * + + 70 + + NULLIF ( + - MAX ( + 0 ), 4 - - 39 + - SUM ( - COALESCE ( + 32, + 57 * - + 12 ) ) ) THEN - 0 + - 25 WHEN + 88 * - 9 THEN 51 ELSE NULL END - NULLIF ( 56, + 15 + 43 * + 66 ) col0
----
NULL

query I rowsort
SELECT 96 + + 21 - 51 AS col2
----
66

query I rowsort
SELECT 32 + + + 19 AS col1
----
51

query I rowsort
SELECT 3 * 38 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT COUNT( * ) + - 0 + + + 80 * + 45 + + 78 * - COUNT( * ) * - 51 * - 56 col2
----
-219167

skipif mysql # not compatible
query I rowsort label-8595
SELECT COUNT ( * ) + - 0 + + + 80 * + 45 + + 78 * - COUNT ( * ) * - 51 * - 56 col2
----
-219167

query II rowsort
SELECT 86 AS col1, + 61
----
86
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8597
SELECT NULLIF ( 56, - 9 DIV 86 * + 59 ) DIV 9 col0
----
6

skipif mysql # not compatible
query I rowsort label-8597
SELECT NULLIF ( 56, - 9 / 86 * + 59 ) / 9 col0
----
6

query I rowsort
SELECT 73 * 2 * - 84 * 26 AS col2
----
-318864

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT NULLIF ( 30, - 31 ) + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-8599
SELECT NULLIF ( 30, - 31 ) + + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL SUM( ALL - 68 ) * + ( MAX( ALL 6 ) ) * 95
----
-38760

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL SUM ( ALL - 68 ) * + ( MAX ( ALL 6 ) ) * 95
----
-38760

query I rowsort
SELECT ALL 77 + + - 16
----
61

query II rowsort
SELECT ALL - 34 col2, 84 AS col1
----
-34
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ALL 90 + - 91 * + + 1 + - COALESCE ( + 84, - 15 ) + - 5 * 8 * - - COUNT( * ) AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL 90 + - 91 * + + 1 + - COALESCE ( + 84, - 15 ) + - 5 * 8 * - - COUNT ( * ) AS col0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT DISTINCT MAX( ALL + 20 ) + - COUNT( * ) + 46 - 70 * + 21 AS col0
----
-1405

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT MAX ( ALL + 20 ) + - COUNT ( * ) + 46 - 70 * + 21 AS col0
----
-1405

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT 11 DIV - - 61 + 71 DIV 6
----
11

skipif mysql # not compatible
query I rowsort label-8605
SELECT 11 / - - 61 + 71 / 6
----
11

query I rowsort
SELECT + 43 + 44
----
87

query I rowsort
SELECT ALL + 97 + - 99
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8608
SELECT + CASE + 97 WHEN + + CAST( NULL AS DECIMAL ) + + 38 THEN NULL WHEN 86 THEN NULL ELSE + 95 * - 4 * - - SUM( DISTINCT - 11 ) * 43 END * - + 9 AS col0, - COUNT( * )
----
-1617660
-1

skipif mysql # not compatible
query II rowsort label-8608
SELECT + CASE + 97 WHEN + + CAST ( NULL AS REAL ) + + 38 THEN NULL WHEN 86 THEN NULL ELSE + 95 * - 4 * - - SUM ( DISTINCT - 11 ) * 43 END * - + 9 AS col0, - COUNT ( * )
----
-1617660
-1

query I rowsort
SELECT - 56 * - 29 + + + 30 * + ( + 2 ) AS col2
----
1684

query I rowsort
SELECT ALL - + 60 + - 76
----
-136

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

query II rowsort
SELECT + + 26, 47 AS col0
----
26
47

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

query I rowsort
SELECT ALL + 12 * - - 14
----
168

query I rowsort
SELECT DISTINCT - 53 - + 97 + 20
----
-130

query I rowsort
SELECT 22 + + 71 + + + 81 + - 86 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT DISTINCT - CASE 36 WHEN - 46 THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT - CASE 36 WHEN - 46 THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8618
SELECT 7 AS col0, CASE + 3 WHEN COUNT( * ) THEN - - ( COUNT( * ) ) - - ( + COALESCE ( + - 25, 44 ) ) DIV + 84 ELSE + - COUNT( * ) END + - COUNT( * ) * + - 94 DIV - COUNT( * )
----
7
-95

skipif mysql # not compatible
query II rowsort label-8618
SELECT 7 AS col0, CASE + 3 WHEN COUNT ( * ) THEN - - ( COUNT ( * ) ) - - ( + COALESCE ( + - 25, 44 ) ) / + 84 ELSE + - COUNT ( * ) END + - COUNT ( * ) * + - 94 / - COUNT ( * )
----
7
-95

query I rowsort
SELECT - 82 * 45 * + 79 + - - 2
----
-291508

query II rowsort
SELECT DISTINCT 85 AS col2, - 37
----
85
-37

query II rowsort
SELECT - 87, 74 * + + 13 + + 1 + - 5 AS col2
----
-87
958

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

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

query I rowsort
SELECT 38 * - + ( + 88 ) * - - 8
----
-26752

query I rowsort
SELECT ALL 88 * + 2 col1
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-8625
SELECT COALESCE ( - 94, + 75 ) DIV 51 * - NULLIF ( - + 61, + 76 ) + 78
----
17

skipif mysql # not compatible
query I rowsort label-8625
SELECT COALESCE ( - 94, + 75 ) / 51 * - NULLIF ( - + 61, + 76 ) + 78
----
17

query I rowsort
SELECT 18 * + NULLIF ( + ( - 46 ), - + 56 ) AS col2
----
-828

query I rowsort
SELECT 54 + - 75
----
-21

query III rowsort
SELECT 58 AS col2, - 0 * + 12 * 27 AS col2, - 23 col2
----
58
0
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT 28 * MAX( + 22 )
----
616

skipif mysql # not compatible
query I rowsort label-8629
SELECT 28 * MAX ( + 22 )
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT MIN( ALL 87 ) + - 40 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8630
SELECT MIN ( ALL 87 ) + - 40 AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8631
SELECT ALL + CAST( NULL AS SIGNED ) * - - CASE + CAST( - 44 AS DECIMAL ) WHEN + 30 THEN NULL WHEN - - 48 THEN NULL ELSE + 76 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL + CAST ( NULL AS INTEGER ) * - - CASE + CAST ( - 44 AS REAL ) WHEN + 30 THEN NULL WHEN - - 48 THEN NULL ELSE + 76 END col1
----
NULL

query I rowsort
SELECT 56 - 21 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT + - MIN( DISTINCT 19 ) + + - 67
----
-86

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT + - MIN ( DISTINCT 19 ) + + - 67
----
-86

query I rowsort
SELECT ALL + + 33 + - ( - 63 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT DISTINCT 40 + - ( 76 ) * + + 42 * ( - 61 ) + + 9 + + - 86 + + COUNT( * )
----
194676

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT 40 + - ( 76 ) * + + 42 * ( - 61 ) + + 9 + + - 86 + + COUNT ( * )
----
194676

query II rowsort
SELECT ALL - 12 + + 13, 29 col1
----
1
29

query I rowsort
SELECT + - 6 * + 55 AS col2
----
-330

query II rowsort
SELECT DISTINCT + 21 AS col0, 4 + - + 65
----
21
-61

query II rowsort
SELECT + 85 AS col0, 12 AS col2
----
85
12

query I rowsort
SELECT + - 73 * ( - 88 )
----
6424

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8642
SELECT + 98 * COUNT( * ) DIV COALESCE ( - 21, 80 )
----
-4

skipif mysql # not compatible
query I rowsort label-8642
SELECT + 98 * COUNT ( * ) / COALESCE ( - 21, 80 )
----
-4

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8644
SELECT ALL + - 51, + ( + MIN( - + 2 ) ) AS col2
----
-51
-2

skipif mysql # not compatible
query II rowsort label-8644
SELECT ALL + - 51, + ( + MIN ( - + 2 ) ) AS col2
----
-51
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8645
SELECT ALL 28 * - CASE - 54 WHEN 55 THEN NULL ELSE - 30 * - COUNT( * ) - - + 37 END + 72 * + 86 - - CAST( NULL AS SIGNED ) * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL 28 * - CASE - 54 WHEN 55 THEN NULL ELSE - 30 * - COUNT ( * ) - - + 37 END + 72 * + 86 - - CAST ( NULL AS INTEGER ) * 12 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 95 * + 94 + - - 5
----
8935

onlyif mysql # DIV for integer division: 
query I rowsort label-8647
SELECT - 32 DIV + 34 + 42 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8647
SELECT - 32 / + 34 + 42 AS col2
----
42

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

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

query I rowsort
SELECT - 57 * 15 + + - 99
----
-954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8650
SELECT NULLIF ( + + 42, 44 + CAST( NULL AS SIGNED ) + + - NULLIF ( + - 57, + + 59 ) * 61 )
----
42

skipif mysql # not compatible
query I rowsort label-8650
SELECT NULLIF ( + + 42, 44 + CAST ( NULL AS INTEGER ) + + - NULLIF ( + - 57, + + 59 ) * 61 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8651
SELECT NULLIF ( + + 15, - COUNT( * ) / 60 + - + NULLIF ( 85, + + 94 ) + - CAST( NULL AS SIGNED ) + - 57 * CAST( NULL AS DECIMAL ) - + 71 - + + 53 )
----
15

skipif mysql # not compatible
query I rowsort label-8651
SELECT NULLIF ( + + 15, - COUNT ( * ) / 60 + - + NULLIF ( 85, + + 94 ) + - CAST ( NULL AS INTEGER ) + - 57 * CAST ( NULL AS REAL ) - + 71 - + + 53 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT COALESCE ( 77, - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-8652
SELECT COALESCE ( 77, - COUNT ( * ) )
----
77

query II rowsort
SELECT - 40 * + 78 + 2 AS col0, 50 * + 61
----
-3118
3050

query I rowsort
SELECT + 83 + 14
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT DISTINCT + NULLIF ( - 18, COUNT( * ) ) * + - 40
----
720

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT + NULLIF ( - 18, COUNT ( * ) ) * + - 40
----
720

query I rowsort
SELECT ALL ( 16 ) * - 9 + - 16 AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT 42 * + - 79 * + COUNT( * ) + 45 AS col0
----
-3273

skipif mysql # not compatible
query I rowsort label-8657
SELECT 42 * + - 79 * + COUNT ( * ) + 45 AS col0
----
-3273

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8659
SELECT + 2 * + CAST( + 76 AS DECIMAL ) * - COUNT( * ) * + 29 + 82 * 1 + - + CAST( NULL AS DECIMAL ) + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8659
SELECT + 2 * + CAST ( + 76 AS REAL ) * - COUNT ( * ) * + 29 + 82 * 1 + - + CAST ( NULL AS REAL ) + - 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8660
SELECT + 41 DIV - - COALESCE ( 91, - - COUNT( * ) * - CAST( NULL AS SIGNED ) * - COUNT( * ) * + NULLIF ( + 33, - 72 ) * 34 + + CASE - MIN( - 82 ) WHEN 50 + - 29 * + 84 THEN NULL WHEN - ( + 59 ) THEN NULL ELSE 19 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8660
SELECT + 41 / - - COALESCE ( 91, - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + NULLIF ( + 33, - 72 ) * 34 + + CASE - MIN ( - 82 ) WHEN 50 + - 29 * + 84 THEN NULL WHEN - ( + 59 ) THEN NULL ELSE 19 END ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8661
SELECT DISTINCT - CASE + 51 WHEN + - 49 THEN - 30 ELSE NULL END + - MIN( - 92 ) * + COUNT( * ) AS col2, COUNT( * ) DIV + - COALESCE ( + 74, 26 ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8661
SELECT DISTINCT - CASE + 51 WHEN + - 49 THEN - 30 ELSE NULL END + - MIN ( - 92 ) * + COUNT ( * ) AS col2, COUNT ( * ) / + - COALESCE ( + 74, 26 ) AS col1
----
NULL
0

query I rowsort
SELECT ALL - 79 + - ( - - 51 )
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8663
SELECT - SUM( ALL - CAST( NULL AS SIGNED ) ) * + 93 * - - ( + + 66 ) * + 27 + + 25 + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT - SUM ( ALL - CAST ( NULL AS INTEGER ) ) * + 93 * - - ( + + 66 ) * + 27 + + 25 + - 44
----
NULL

query I rowsort
SELECT ALL - 80 + + 67 AS col0
----
-13

query I rowsort
SELECT ALL 28 + - + 48 AS col0
----
-20

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

query I rowsort
SELECT + 16 + - 44
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8668
SELECT DISTINCT + + COUNT( * ) * + 80 + - 20 + 19 + - - 46 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT + + COUNT ( * ) * + 80 + - 20 + 19 + - - 46 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT - - 75 + + + 50
----
125

query I rowsort
SELECT DISTINCT + 78 * + 61 AS col1
----
4758

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT + + 50 + - 57 + - - 70 DIV - ( + 86 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8673
SELECT + + 50 + - 57 + - - 70 / - ( + 86 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL + - MAX( ALL 72 ) * - + 79
----
5688

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL + - MAX ( ALL 72 ) * - + 79
----
5688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8675
SELECT DISTINCT ( COUNT( * ) ) DIV 19 + - 69 - + + ( 76 ) col1
----
-145

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT ( COUNT ( * ) ) / 19 + - 69 - + + ( 76 ) col1
----
-145

query I rowsort
SELECT + 28 + - + 65 * + 52 * - 52
----
175788

onlyif mysql # DIV for integer division: 
query I rowsort label-8677
SELECT DISTINCT + 62 DIV + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8677
SELECT DISTINCT + 62 / + 71 AS col2
----
0

query I rowsort
SELECT ALL + - NULLIF ( 84, - 84 ) AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8679
SELECT + MIN( - + 59 ) * 70 - + + COUNT( * ) + - CAST( NULL AS SIGNED ), 51 DIV - + 25 + - 10 * - COALESCE ( - 30, - + 10 + - 9, - 29 + - 72 ) AS col1
----
NULL
-302

skipif mysql # not compatible
query II rowsort label-8679
SELECT + MIN ( - + 59 ) * 70 - + + COUNT ( * ) + - CAST ( NULL AS INTEGER ), 51 / - + 25 + - 10 * - COALESCE ( - 30, - + 10 + - 9, - 29 + - 72 ) AS col1
----
NULL
-302

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8681
SELECT DISTINCT 30 * CAST( NULL AS SIGNED ) * 12 AS col2, 93 + + SUM( ALL - 63 ) * + + CASE - - SUM( + 79 ) WHEN + 6 THEN 93 ELSE MAX( ALL - CASE 29 WHEN - CAST( NULL AS SIGNED ) * + + 10 + 89 THEN NULL ELSE + 17 END ) END AS col2
----
NULL
1164

skipif mysql # not compatible
query II rowsort label-8681
SELECT DISTINCT 30 * CAST ( NULL AS INTEGER ) * 12 AS col2, 93 + + SUM ( ALL - 63 ) * + + CASE - - SUM ( + 79 ) WHEN + 6 THEN 93 ELSE MAX ( ALL - CASE 29 WHEN - CAST ( NULL AS INTEGER ) * + + 10 + 89 THEN NULL ELSE + 17 END ) END AS col2
----
NULL
1164

query II rowsort
SELECT ALL + 57 col2, 54 AS col2
----
57
54

query I rowsort
SELECT + 59 * - 21 AS col0
----
-1239

query I rowsort
SELECT ALL 65 * - 89
----
-5785

query I rowsort
SELECT ALL 83 * + 91
----
7553

query I rowsort
SELECT + 23 * 13 AS col2
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT + 29 * - 93 * - - 75 * - + SUM( + - 67 ) * + 44 AS col2
----
-596306700

skipif mysql # not compatible
query I rowsort label-8687
SELECT + 29 * - 93 * - - 75 * - + SUM ( + - 67 ) * + 44 AS col2
----
-596306700

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8689
SELECT - 47 DIV - ( + + 60 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8689
SELECT - 47 / - ( + + 60 ) col2
----
0

query I rowsort
SELECT ALL 48 * 66 + - + 19 * 25 - + + 49 AS col1
----
2644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8691
SELECT + CAST( + NULLIF ( 64, + - 19 / + + 94 + + 21 ) AS SIGNED ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-8691
SELECT + CAST ( + NULLIF ( 64, + - 19 / + + 94 + + 21 ) AS INTEGER ) AS col0
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT ALL + 52 * - + COUNT( * ) * - + NULLIF ( 82, + 96 ) + 64 + - - 42
----
4370

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL + 52 * - + COUNT ( * ) * - + NULLIF ( 82, + 96 ) + 64 + - - 42
----
4370

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT - MAX( ALL 76 ) + + 98
----
22

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT - MAX ( ALL 76 ) + + 98
----
22

query I rowsort
SELECT DISTINCT 10 * + - 77 AS col1
----
-770

query I rowsort
SELECT 82 * - 53 AS col0
----
-4346

query II rowsort
SELECT ALL ( + + 40 ) * - 21 AS col0, 18 * + 88 * - - 94 * 3 * + 87 col1
----
-840
38861856

query II rowsort
SELECT DISTINCT 2 AS col2, - 36 * + + 63 * + + 18 AS col2
----
2
-40824

query I rowsort
SELECT DISTINCT - 84 + 36
----
-48

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

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

query I rowsort
SELECT ALL + + 28 + - 68 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ( 32 ) * NULLIF ( 62, - + 74 + + - SUM( ALL - 75 ) )
----
1984

skipif mysql # not compatible
query I rowsort label-8702
SELECT ( 32 ) * NULLIF ( 62, - + 74 + + - SUM ( ALL - 75 ) )
----
1984

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

query I rowsort
SELECT ALL 46 - + + 36 AS col1
----
10

query II rowsort
SELECT + 32, 98 AS col1
----
32
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ALL - - 40 * 99 + - CASE + + COUNT( * ) WHEN + + ( 80 ) THEN 31 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL - - 40 * 99 + - CASE + + COUNT ( * ) WHEN + + ( 80 ) THEN 31 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8707
SELECT DISTINCT - - COUNT( * ) DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT - - COUNT ( * ) / - 92
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8708
SELECT - - 9, + COUNT( * ) + - + COALESCE ( + 62, + + 21 ) * + 67 - + 36 AS col2
----
9
-4189

skipif mysql # not compatible
query II rowsort label-8708
SELECT - - 9, + COUNT ( * ) + - + COALESCE ( + 62, + + 21 ) * + 67 - + 36 AS col2
----
9
-4189

onlyif mysql # DIV for integer division: 
query I rowsort label-8709
SELECT - 17 DIV + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8709
SELECT - 17 / + 28 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8710
SELECT - 56 * COALESCE ( 61, + ( COUNT( * ) ), 57 DIV 57 * + - 46 ) DIV 59 col2, 49 AS col1
----
-57
49

skipif mysql # not compatible
query II rowsort label-8710
SELECT - 56 * COALESCE ( 61, + ( COUNT ( * ) ), 57 / 57 * + - 46 ) / 59 col2, 49 AS col1
----
-57
49

query I rowsort
SELECT ALL + + 48 * + 57
----
2736

query II rowsort
SELECT - 5 AS col2, + 37 AS col2
----
-5
37

onlyif mysql # aggregate syntax: 
query II rowsort label-8713
SELECT + + COUNT( * ) col2, 18 + 58 AS col0
----
1
76

skipif mysql # not compatible
query II rowsort label-8713
SELECT + + COUNT ( * ) col2, 18 + 58 AS col0
----
1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + - COALESCE ( COUNT( * ), - - 36, - 8, COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8714
SELECT + - COALESCE ( COUNT ( * ), - - 36, - 8, COUNT ( * ) ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8715
SELECT DISTINCT - - CASE ( + 65 ) WHEN + + COUNT( * ) THEN - 99 + 61 END AS col2, + 65 + - CAST( NULL AS SIGNED ) col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8715
SELECT DISTINCT - - CASE ( + 65 ) WHEN + + COUNT ( * ) THEN - 99 + 61 END AS col2, + 65 + - CAST ( NULL AS INTEGER ) col2
----
NULL
NULL

query I rowsort
SELECT ALL - NULLIF ( + ( 13 ), + 8 ) * + - 74 AS col0
----
962

query I rowsort
SELECT 41 * 92 AS col1
----
3772

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT ALL - COUNT( * ) + ( + 45 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL - COUNT ( * ) + ( + 45 ) AS col1
----
44

query I rowsort
SELECT 12 + + 79 * + + 45
----
3567

query I rowsort
SELECT 21 + + 11 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT 51 * + - NULLIF ( + + 17, COUNT( * ) ) + + 70 * + + 0
----
-867

skipif mysql # not compatible
query I rowsort label-8721
SELECT 51 * + - NULLIF ( + + 17, COUNT ( * ) ) + + 70 * + + 0
----
-867

query II rowsort
SELECT ALL + ( - ( - 50 ) ) + - - 44 AS col1, COALESCE ( 94, - 35 ) * - 26 * 60 * + - 29 * + 90
----
94
382730400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8723
SELECT ALL 64 + - CASE + CAST( NULL AS SIGNED ) WHEN - CAST( + 90 AS SIGNED ) THEN 42 * + - 56 DIV + - 58 + + ( + ( + - 54 ) ) + + COUNT( * ) ELSE + - 69 * COUNT( * ) + + CASE - + 31 WHEN - ( - 4 ) + + - 65 THEN - 67 * - 78 * + - CAST( NULL AS SIGNED ) ELSE 61 END + - 96 END * 3
----
376

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL 64 + - CASE + CAST ( NULL AS INTEGER ) WHEN - CAST ( + 90 AS INTEGER ) THEN 42 * + - 56 / + - 58 + + ( + ( + - 54 ) ) + + COUNT ( * ) ELSE + - 69 * COUNT ( * ) + + CASE - + 31 WHEN - ( - 4 ) + + - 65 THEN - 67 * - 78 * + - CAST ( NULL AS INTEGER ) ELSE 61 END + - 96 END * 3
----
376

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT SUM( + 74 ) + + 27 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-8724
SELECT SUM ( + 74 ) + + 27 AS col0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT ALL + ( - - 3 ) + 12 DIV - 66 + + 70 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL + ( - - 3 ) + 12 / - 66 + + 70 AS col1
----
73

query I rowsort
SELECT 66 + 60
----
126

query I rowsort
SELECT ALL 58 + - + 56
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL 28 + SUM( DISTINCT + ( - 7 ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL 28 + SUM ( DISTINCT + ( - 7 ) ) AS col2
----
21

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

skipif mysql # not compatible
query I rowsort label-8729
SELECT COUNT ( * ) / 48 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8730
SELECT CASE + 22 WHEN + 19 * 85 - - 50 - - 19 * - + 56 THEN NULL WHEN - 68 THEN NULL ELSE + - CAST( 76 AS SIGNED ) END * 54 AS col2
----
-4104

skipif mysql # not compatible
query I rowsort label-8730
SELECT CASE + 22 WHEN + 19 * 85 - - 50 - - 19 * - + 56 THEN NULL WHEN - 68 THEN NULL ELSE + - CAST ( 76 AS INTEGER ) END * 54 AS col2
----
-4104

query I rowsort
SELECT 56 * 40 AS col0
----
2240

query I rowsort
SELECT 16 * + + 14 + + 24 * 79 - - + 77 col2
----
2197

query I rowsort
SELECT ALL - 80 - - - ( 86 )
----
-166

query II rowsort
SELECT DISTINCT + NULLIF ( - - 52, 98 * - 37 ), 1 AS col1
----
52
1

query I rowsort
SELECT DISTINCT CASE 10 WHEN - - 24 * - + 62 * + 97 * 96 + + 24 THEN 79 ELSE + - ( + - 59 ) END
----
59

query I rowsort
SELECT - 87 * - 76 AS col1
----
6612

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

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

query I rowsort
SELECT DISTINCT 75 * + - NULLIF ( - + 97, + 50 ) + - 44
----
7231

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ALL - ( - MIN( DISTINCT + NULLIF ( - + 54, - - 16 + - - NULLIF ( 96, 86 ) * - + ( + 66 ) ) ) ) * - 89 * - ( - - 5 ) AS col2
----
-24030

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL - ( - MIN ( DISTINCT + NULLIF ( - + 54, - - 16 + - - NULLIF ( 96, 86 ) * - + ( + 66 ) ) ) ) * - 89 * - ( - - 5 ) AS col2
----
-24030

query I rowsort
SELECT ( - - 49 ) * + 21 AS col1
----
1029

query I rowsort
SELECT DISTINCT - 34 * - + 0 AS col1
----
0

query I rowsort
SELECT - + COALESCE ( - + 78, 28 ) col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8744
SELECT 49 + + 36 + + ( - 51 ), COUNT( * ) + CASE ( + NULLIF ( 21, 79 ) ) WHEN 96 THEN NULL ELSE 24 END AS col2
----
34
25

skipif mysql # not compatible
query II rowsort label-8744
SELECT 49 + + 36 + + ( - 51 ), COUNT ( * ) + CASE ( + NULLIF ( 21, 79 ) ) WHEN 96 THEN NULL ELSE 24 END AS col2
----
34
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL - 10 + ( SUM( + - 27 ) ) * 39 - - + MIN( DISTINCT 8 )
----
-1055

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL - 10 + ( SUM ( + - 27 ) ) * 39 - - + MIN ( DISTINCT 8 )
----
-1055

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8746
SELECT - 19, - CASE + 49 WHEN - + 40 + 78 * - AVG ( + 15 ) + - 90 THEN - AVG ( - 70 ) + CAST( NULL AS DECIMAL ) WHEN COUNT( * ) * - 90 * SUM( ALL - 33 ) + + 91 * ( 22 ) - + 21 + + + 33 + 16 * - 27 * - 15 * 22 * + + COUNT( * ) THEN NULL ELSE NULL END col1
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-8746
SELECT - 19, - CASE + 49 WHEN - + 40 + 78 * - AVG ( + 15 ) + - 90 THEN - AVG ( - 70 ) + CAST ( NULL AS REAL ) WHEN COUNT ( * ) * - 90 * SUM ( ALL - 33 ) + + 91 * ( 22 ) - + 21 + + + 33 + 16 * - 27 * - 15 * 22 * + + COUNT ( * ) THEN NULL ELSE NULL END col1
----
-19
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT DISTINCT - 73 AS col2, 48 * + - 2 * + + COUNT( * ) col0
----
-73
-96

skipif mysql # not compatible
query II rowsort label-8747
SELECT DISTINCT - 73 AS col2, 48 * + - 2 * + + COUNT ( * ) col0
----
-73
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL - COALESCE ( + 22, - - 46 ) * + + 94 + + COUNT( * )
----
-2067

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - COALESCE ( + 22, - - 46 ) * + + 94 + + COUNT ( * )
----
-2067

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT ( - 42 ) * + - 11 * + - SUM( DISTINCT 29 ) + 27
----
-13371

skipif mysql # not compatible
query I rowsort label-8749
SELECT ( - 42 ) * + - 11 * + - SUM ( DISTINCT 29 ) + 27
----
-13371

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8750
SELECT 22 * - 1 * - - 30 AS col2, ( - CAST( 50 AS SIGNED ) ) * - 55
----
-660
2750

skipif mysql # not compatible
query II rowsort label-8750
SELECT 22 * - 1 * - - 30 AS col2, ( - CAST ( 50 AS INTEGER ) ) * - 55
----
-660
2750

query I rowsort
SELECT 47 * + - 99 + 12 AS col2
----
-4641

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

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

query I rowsort
SELECT 37 * + 27
----
999

query II rowsort
SELECT + 85 AS col0, 70
----
85
70

query I rowsort
SELECT ALL - 11 * 98 AS col0
----
-1078

query I rowsort
SELECT DISTINCT 83 * - + 54 + - 88 + - - 33 AS col2
----
-4537

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT DISTINCT + ( - SUM( DISTINCT - 90 ) ) col2
----
90

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT + ( - SUM ( DISTINCT - 90 ) ) col2
----
90

query I rowsort
SELECT ALL 58 * 92 + - + 66
----
5270

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT DISTINCT ( 94 ) * + SUM( DISTINCT 6 ) - 28
----
536

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT ( 94 ) * + SUM ( DISTINCT 6 ) - 28
----
536

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT SUM( ALL + 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8761
SELECT SUM ( ALL + 41 ) AS col0
----
41

query I rowsort
SELECT DISTINCT 57 * - 21
----
-1197

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8763
SELECT - NULLIF ( + CAST( + 85 AS SIGNED ), + 63 ) - - + 56 col0, + 38
----
-29
38

skipif mysql # not compatible
query II rowsort label-8763
SELECT - NULLIF ( + CAST ( + 85 AS INTEGER ), + 63 ) - - + 56 col0, + 38
----
-29
38

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

query I rowsort
SELECT DISTINCT - 1 * 79 AS col0
----
-79

query I rowsort
SELECT DISTINCT + 90 * 16
----
1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8767
SELECT ALL CASE - 6 WHEN SUM( + 80 ) THEN + 43 - - - CASE - + COUNT( * ) WHEN CAST( NULL AS SIGNED ) + + 38 THEN NULL ELSE + 28 * - 33 END * - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL CASE - 6 WHEN SUM ( + 80 ) THEN + 43 - - - CASE - + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) + + 38 THEN NULL ELSE + 28 * - 33 END * - + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8768
SELECT + + 63 DIV - 61
----
-1

skipif mysql # not compatible
query I rowsort label-8768
SELECT + + 63 / - 61
----
-1

query I rowsort
SELECT ALL - 57 * + - 90
----
5130

query I rowsort
SELECT - - 52 * + - 75 col1
----
-3900

query I rowsort
SELECT - - 93 + - - 56 col1
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT + - CASE + ( 7 ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - 41 THEN + 88 ELSE NULL END * + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8772
SELECT + - CASE + ( 7 ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 41 THEN + 88 ELSE NULL END * + 92 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8773
SELECT + CAST( + COUNT( * ) AS SIGNED ) + + + 82 + COUNT( * ) * + - 61 * - 51 * + + COUNT( * ) * - NULLIF ( - 32, + + 92 )
----
99635

skipif mysql # not compatible
query I rowsort label-8773
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + + + 82 + COUNT ( * ) * + - 61 * - 51 * + + COUNT ( * ) * - NULLIF ( - 32, + + 92 )
----
99635

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8774
SELECT + 38 DIV 80 - - - 40 + - ( 69 ) + - - 74 * + MIN( ALL 77 ) * - 80 + - 12 + + + 14 * - + 51 * - ( - 85 )
----
-516651

skipif mysql # not compatible
query I rowsort label-8774
SELECT + 38 / 80 - - - 40 + - ( 69 ) + - - 74 * + MIN ( ALL 77 ) * - 80 + - 12 + + + 14 * - + 51 * - ( - 85 )
----
-516651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT DISTINCT CASE - + 14 WHEN - CAST( NULL AS SIGNED ) THEN + 75 ELSE + 65 END
----
65

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT CASE - + 14 WHEN - CAST ( NULL AS INTEGER ) THEN + 75 ELSE + 65 END
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8776
SELECT ALL 91 + - 71 + - 37 col2, SUM( + 45 )
----
-17
45

skipif mysql # not compatible
query II rowsort label-8776
SELECT ALL 91 + - 71 + - 37 col2, SUM ( + 45 )
----
-17
45

query II rowsort
SELECT 55 AS col1, 70 AS col0
----
55
70

query I rowsort
SELECT ALL - ( + + 83 ) AS col1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-8779
SELECT + - CASE + 18 WHEN + 75 + + 15 THEN + 77 ELSE - 29 * + + 43 END * 59 DIV + 2 col0
----
36786

skipif mysql # not compatible
query I rowsort label-8779
SELECT + - CASE + 18 WHEN + 75 + + 15 THEN + 77 ELSE - 29 * + + 43 END * 59 / + 2 col0
----
36786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT ALL - 56 + - 67 - - 50 + - ( + 82 ) * + 91 + CAST( NULL AS SIGNED ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL - 56 + - 67 - - 50 + - ( + 82 ) * + 91 + CAST ( NULL AS INTEGER ) * - 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8781
SELECT ALL 18 AS col0, - 73 * 83 * - + 47 + COUNT( * ) - COUNT( * ) - - + 65 * + + 59 AS col0
----
18
288608

skipif mysql # not compatible
query II rowsort label-8781
SELECT ALL 18 AS col0, - 73 * 83 * - + 47 + COUNT ( * ) - COUNT ( * ) - - + 65 * + + 59 AS col0
----
18
288608

query II rowsort
SELECT ALL ( + - 49 ) + - + 6 - - 74 * 38 * - - 90 AS col2, 29 AS col1
----
253025
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8783
SELECT ALL COUNT( * ) AS col2, - ( COUNT( * ) ) * + - 37 + + + 56
----
1
93

skipif mysql # not compatible
query II rowsort label-8783
SELECT ALL COUNT ( * ) AS col2, - ( COUNT ( * ) ) * + - 37 + + + 56
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT - NULLIF ( - + 95, + COUNT( * ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-8784
SELECT - NULLIF ( - + 95, + COUNT ( * ) ) AS col0
----
95

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT ALL NULLIF ( - 30, + 80 + + + 97 + - - ( - 83 ) ) DIV - 34 * - 75 * - 25 DIV 15 + + - 77 * + 55 AS col2
----
-4235

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL NULLIF ( - 30, + 80 + + + 97 + - - ( - 83 ) ) / - 34 * - 75 * - 25 / 15 + + - 77 * + 55 AS col2
----
-4235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8787
SELECT - 48 DIV + - 12 - + + ( COUNT( * ) ) + - + 5 + 36, CASE + + COALESCE ( - 81, + - CAST( NULL AS SIGNED ), + 70 + COUNT( * ) ) WHEN + + 19 + ( - 26 ) * - COUNT( * ) THEN NULL ELSE - + 36 END AS col1
----
34
-36

skipif mysql # not compatible
query II rowsort label-8787
SELECT - 48 / + - 12 - + + ( COUNT ( * ) ) + - + 5 + 36, CASE + + COALESCE ( - 81, + - CAST ( NULL AS INTEGER ), + 70 + COUNT ( * ) ) WHEN + + 19 + ( - 26 ) * - COUNT ( * ) THEN NULL ELSE - + 36 END AS col1
----
34
-36

query II rowsort
SELECT ( - + 60 ) AS col1, + ( + 37 ) AS col0
----
-60
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8789
SELECT ALL 73 DIV - NULLIF ( 70, - + 83 ) - 88 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL 73 / - NULLIF ( 70, - + 83 ) - 88 AS col0
----
-89

query I rowsort
SELECT - ( 44 ) * + + 28
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT COUNT( * ) * 67 * - COUNT( * ) - 94 - - 62 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-8791
SELECT COUNT ( * ) * 67 * - COUNT ( * ) - 94 - - 62 AS col1
----
-99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8793
SELECT + 11 + - - 99 DIV + - ( - + 88 )
----
12

skipif mysql # not compatible
query I rowsort label-8793
SELECT + 11 + - - 99 / + - ( - + 88 )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8794
SELECT - 17 - + 20 AS col2, + COUNT( * )
----
-37
1

skipif mysql # not compatible
query II rowsort label-8794
SELECT - 17 - + 20 AS col2, + COUNT ( * )
----
-37
1

query I rowsort
SELECT ALL 22 * 13 - 60 col1
----
226

query I rowsort
SELECT - 34 * 90
----
-3060

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

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT - 7 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT - NULLIF ( + COUNT( * ), - 94 * 66 ) * + 10 col2
----
-10

skipif mysql # not compatible
query I rowsort label-8798
SELECT - NULLIF ( + COUNT ( * ), - 94 * 66 ) * + 10 col2
----
-10

query I rowsort
SELECT ALL + 44 * + 89 AS col2
----
3916

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT DISTINCT 3 * - 76 - COUNT( * ) + 19 * - + ( - 82 ) AS col2
----
1329

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT 3 * - 76 - COUNT ( * ) + 19 * - + ( - 82 ) AS col2
----
1329

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT DISTINCT + 62 * 77 DIV 80
----
59

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT + 62 * 77 / 80
----
59

query I rowsort
SELECT - + 83 + - 94 - + 65
----
-242

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

query I rowsort
SELECT ALL + 61 * + 1
----
61

query II rowsort
SELECT 96 AS col2, 34 * + ( 12 )
----
96
408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT + CAST( NULL AS SIGNED ) * - 20 + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8807
SELECT + CAST ( NULL AS INTEGER ) * - 20 + - 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8808
SELECT - CAST( - 44 AS SIGNED ), + 81 * - + 16 - - 25 AS col2
----
44
-1271

skipif mysql # not compatible
query II rowsort label-8808
SELECT - CAST ( - 44 AS INTEGER ), + 81 * - + 16 - - 25 AS col2
----
44
-1271

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8809
SELECT - 9 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT - 9 * CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + 78 * + 78 * - 56 AS col1
----
-340704

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT + MIN( ALL - - 87 ) + + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8811
SELECT + MIN ( ALL - - 87 ) + + COUNT ( * ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT - + 40 + COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-8812
SELECT - + 40 + COUNT ( * ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT DISTINCT 84 * 97 * - - COUNT( * )
----
8148

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT 84 * 97 * - - COUNT ( * )
----
8148

query I rowsort
SELECT ALL - 96 * + 71 AS col0
----
-6816

query II rowsort
SELECT 89 AS col2, - 44 + - - 45 * - 52 AS col0
----
89
-2384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8816
SELECT - CAST( - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT - CAST ( - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 95, - 81 AS col2
----
95
-81

query I rowsort
SELECT - 25 + + 31
----
6

query I rowsort
SELECT + 94 - + 91 * - + 97
----
8921

query I rowsort
SELECT - 38 + 19
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8821
SELECT - CAST( - CASE + 23 WHEN + 94 THEN NULL WHEN - + 56 THEN NULL ELSE + COUNT( * ) / - 62 + - 20 + - 7 END AS SIGNED ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8821
SELECT - CAST ( - CASE + 23 WHEN + 94 THEN NULL WHEN - + 56 THEN NULL ELSE + COUNT ( * ) / - 62 + - 20 + - 7 END AS INTEGER ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT + 18 + + + COUNT( * ) col1
----
19

skipif mysql # not compatible
query I rowsort label-8822
SELECT + 18 + + + COUNT ( * ) col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT ALL 89 DIV + ( 74 )
----
1

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL 89 / + ( 74 )
----
1

query I rowsort
SELECT + 95 + + 21 * + 74
----
1649

query I rowsort
SELECT ALL - 47 - - 81 + + 88 AS col1
----
122

query I rowsort
SELECT ALL 82 - + - ( - 92 )
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-8827
SELECT ALL 46 * - 71 * + CASE - 66 WHEN + COUNT( * ) + - 84 THEN NULL WHEN + 11 THEN NULL WHEN + + MAX( DISTINCT - 91 ) - 49 THEN 71 * 85 END, - 63 * - - CASE + 55 WHEN 59 THEN 35 ELSE MIN( - + 62 ) + 89 - - 39 END * + 31 AS col2
----
NULL
-128898

skipif mysql # not compatible
query II rowsort label-8827
SELECT ALL 46 * - 71 * + CASE - 66 WHEN + COUNT ( * ) + - 84 THEN NULL WHEN + 11 THEN NULL WHEN + + MAX ( DISTINCT - 91 ) - 49 THEN 71 * 85 END, - 63 * - - CASE + 55 WHEN 59 THEN 35 ELSE MIN ( - + 62 ) + 89 - - 39 END * + 31 AS col2
----
NULL
-128898

query I rowsort
SELECT 21 * 5 + - + 0 + + 49 AS col2
----
154

query I rowsort
SELECT 66 * + + 75 * + 60 AS col2
----
297000

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT 57 DIV 75 * 53 + + NULLIF ( + 78, + 42 + - 75 - 11 ) + - 5 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8830
SELECT 57 / 75 * 53 + + NULLIF ( + 78, + 42 + - 75 - 11 ) + - 5 AS col1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8831
SELECT ALL 99 * - 77 col0, 92 AS col0, CAST( NULL AS SIGNED ) AS col2
----
-7623
92
NULL

skipif mysql # not compatible
query III rowsort label-8831
SELECT ALL 99 * - 77 col0, 92 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
-7623
92
NULL

query I rowsort
SELECT ALL 11 * + 12
----
132

query I rowsort
SELECT ALL - CASE 8 WHEN - 85 / 65 THEN 46 END / - 21 * + 61 + - 69 + - 75
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8834
SELECT 97 DIV - + 54 col1, 36
----
-1
36

skipif mysql # not compatible
query II rowsort label-8834
SELECT 97 / - + 54 col1, 36
----
-1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT SUM( + - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-8835
SELECT SUM ( + - 94 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8836
SELECT ALL - + NULLIF ( 86, 47 / - COALESCE ( - MAX( DISTINCT - 93 ), + 80 * - 33, CAST( NULL AS DECIMAL ) + 26 + + 10 + - 96 * - 95 ) ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL - + NULLIF ( 86, 47 / - COALESCE ( - MAX ( DISTINCT - 93 ), + 80 * - 33, CAST ( NULL AS REAL ) + 26 + + 10 + - 96 * - 95 ) ) col0
----
-86

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

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

query I rowsort
SELECT ( + 6 ) + - 87
----
-81

query I rowsort
SELECT + NULLIF ( + 20, 89 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT + MIN( + 90 ) * + 83
----
7470

skipif mysql # not compatible
query I rowsort label-8840
SELECT + MIN ( + 90 ) * + 83
----
7470

query I rowsort
SELECT ALL + - 2 + + 48 * + - 40
----
-1922

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8842
SELECT ALL + 80 DIV + SUM( 40 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL + 80 / + SUM ( 40 ) AS col1
----
2

query I rowsort
SELECT + 34 - + - 68 AS col1
----
102

query I rowsort
SELECT ALL + - 27 * 82
----
-2214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8845
SELECT - COUNT( * ) * - + 39 + - + 3 + + + 22 + MIN( DISTINCT + 27 ) * 20 DIV + 66 col0
----
66

skipif mysql # not compatible
query I rowsort label-8845
SELECT - COUNT ( * ) * - + 39 + - + 3 + + + 22 + MIN ( DISTINCT + 27 ) * 20 / + 66 col0
----
66

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8847
SELECT - 0 + + 11 AS col2, COUNT( * ) AS col2
----
11
1

skipif mysql # not compatible
query II rowsort label-8847
SELECT - 0 + + 11 AS col2, COUNT ( * ) AS col2
----
11
1

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

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

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

query I rowsort
SELECT ALL - 73 + + 93
----
20

onlyif mysql # aggregate syntax: 
query III rowsort label-8851
SELECT - 69, - 78 * + 20 * - + CASE - 67 WHEN - 17 THEN NULL WHEN - SUM( ALL - + 3 ) + - 93 - - + NULLIF ( + + 96, + 87 ) THEN + AVG ( ALL - + 84 ) ELSE NULL END AS col0, + + 33 AS col2
----
-69
NULL
33

skipif mysql # not compatible
query III rowsort label-8851
SELECT - 69, - 78 * + 20 * - + CASE - 67 WHEN - 17 THEN NULL WHEN - SUM ( ALL - + 3 ) + - 93 - - + NULLIF ( + + 96, + 87 ) THEN + AVG ( ALL - + 84 ) ELSE NULL END AS col0, + + 33 AS col2
----
-69
NULL
33

query I rowsort
SELECT ALL 65 * 8
----
520

query II rowsort
SELECT 38, + ( + 5 ) AS col2
----
38
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8854
SELECT ALL - CAST( + ( + - ( COALESCE ( - 24, AVG ( DISTINCT - 60 ) + + ( + 70 ), 36 + + + 22 DIV - + 63 ) ) ) AS SIGNED ) DIV - 57 AS col1, - ( - 91 ) DIV + 40
----
0
2

skipif mysql # not compatible
query II rowsort label-8854
SELECT ALL - CAST ( + ( + - ( COALESCE ( - 24, AVG ( DISTINCT - 60 ) + + ( + 70 ), 36 + + + 22 / - + 63 ) ) ) AS INTEGER ) / - 57 AS col1, - ( - 91 ) / + 40
----
0
2

query II rowsort
SELECT ALL 79, + 19 AS col1
----
79
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8856
SELECT DISTINCT - 34 - + - 42 DIV 75 * + - 59
----
-34

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT - 34 - + - 42 / 75 * + - 59
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT 76 * + SUM( DISTINCT + 12 )
----
912

skipif mysql # not compatible
query I rowsort label-8857
SELECT 76 * + SUM ( DISTINCT + 12 )
----
912

query I rowsort
SELECT 47 + - 49 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8859
SELECT - 36 AS col1, + MAX( + + 46 ) * + 96 + + + 84
----
-36
4500

skipif mysql # not compatible
query II rowsort label-8859
SELECT - 36 AS col1, + MAX ( + + 46 ) * + 96 + + + 84
----
-36
4500

query I rowsort
SELECT ALL - 16 * + 9 AS col0
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-8861
SELECT 32 AS col0, MAX( DISTINCT - + 37 ) + + MIN( 93 ) + - 45
----
32
11

skipif mysql # not compatible
query II rowsort label-8861
SELECT 32 AS col0, MAX ( DISTINCT - + 37 ) + + MIN ( 93 ) + - 45
----
32
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT MAX( 15 ) * - 92 * + 54
----
-74520

skipif mysql # not compatible
query I rowsort label-8862
SELECT MAX ( 15 ) * - 92 * + 54
----
-74520

query I rowsort
SELECT 66 * + 80
----
5280

onlyif mysql # aggregate syntax: 
query II rowsort label-8864
SELECT 72 - + 17 + - 88 col0, 71 * + 92 + - COUNT( * ) AS col2
----
-33
6531

skipif mysql # not compatible
query II rowsort label-8864
SELECT 72 - + 17 + - 88 col0, 71 * + 92 + - COUNT ( * ) AS col2
----
-33
6531

query I rowsort
SELECT DISTINCT - NULLIF ( - - 9, + - 34 * 18 ) AS col2
----
-9

query I rowsort
SELECT ALL - COALESCE ( 44, + 5 * ( - 44 ) + + 34 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT MIN( DISTINCT + COALESCE ( 71, - 31 ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8867
SELECT MIN ( DISTINCT + COALESCE ( 71, - 31 ) ) AS col1
----
71

query I rowsort
SELECT 0 * ( - 29 ) AS col1
----
0

query I rowsort
SELECT ALL 39 + - 37
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8870
SELECT MAX( DISTINCT - 48 ) DIV + 76 + 9 * 55 * 64 + 26 AS col0
----
31706

skipif mysql # not compatible
query I rowsort label-8870
SELECT MAX ( DISTINCT - 48 ) / + 76 + 9 * 55 * 64 + 26 AS col0
----
31706

query II rowsort
SELECT ALL - 42 AS col2, ( + - 36 )
----
-42
-36

query I rowsort
SELECT DISTINCT 12 + - 6 AS col1
----
6

query II rowsort
SELECT + 96, 47 + 97 AS col1
----
96
144

query I rowsort
SELECT DISTINCT 30 + 4 * - 32
----
-98

query I rowsort
SELECT ALL - 20 + + 39
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8876
SELECT DISTINCT + 51 + - 60 + - COUNT( * ) DIV - 90 DIV + 31 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT + 51 + - 60 + - COUNT ( * ) / - 90 / + 31 AS col0
----
-9

query I rowsort
SELECT + 4 * 15 + 68 AS col1
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8878
SELECT ALL - - 57, - 46 * CAST( + 65 AS SIGNED ) * - 51 + + 80 AS col0
----
57
152570

skipif mysql # not compatible
query II rowsort label-8878
SELECT ALL - - 57, - 46 * CAST ( + 65 AS INTEGER ) * - 51 + + 80 AS col0
----
57
152570

query I rowsort
SELECT - 31 + 96 AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8880
SELECT ALL COUNT( * ) + - NULLIF ( 56, - - COUNT( * ) * + 60 ) + 13, CAST( NULL AS DECIMAL ) AS col0
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-8880
SELECT ALL COUNT ( * ) + - NULLIF ( 56, - - COUNT ( * ) * + 60 ) + 13, CAST ( NULL AS REAL ) AS col0
----
-42
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / + ( - 34 ) + - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / + ( - 34 ) + - 91 AS col0
----
NULL

query I rowsort
SELECT 72 * + + 68
----
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT + 54 * - + MAX( ALL 63 ) AS col1
----
-3402

skipif mysql # not compatible
query I rowsort label-8883
SELECT + 54 * - + MAX ( ALL 63 ) AS col1
----
-3402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT 63 * - 0 * - 27 + CAST( - + 7 AS SIGNED ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-8884
SELECT 63 * - 0 * - 27 + CAST ( - + 7 AS INTEGER ) AS col1
----
-7

query I rowsort
SELECT + + 14 * - 11 * 15 + + + CASE + NULLIF ( 24, 53 * - + 53 ) WHEN + + 92 + + 69 THEN - + 34 * + 80 * + 68 WHEN 38 THEN NULL END * + + 73
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT DISTINCT 46 - - + 79 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT 46 - - + 79 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8887
SELECT - CASE + + 22 WHEN + - 84 THEN NULL WHEN + 59 THEN + 41 DIV - 12 ELSE - 45 END AS col0
----
45

skipif mysql # not compatible
query I rowsort label-8887
SELECT - CASE + + 22 WHEN + - 84 THEN NULL WHEN + 59 THEN + 41 / - 12 ELSE - 45 END AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL - + COUNT( * ) - - MAX( DISTINCT + 52 )
----
51

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - + COUNT ( * ) - - MAX ( DISTINCT + 52 )
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT ALL MAX( DISTINCT - ( 28 ) ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL MAX ( DISTINCT - ( 28 ) ) col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT - MIN( + 87 ) + + - 89 AS col0
----
-176

skipif mysql # not compatible
query I rowsort label-8891
SELECT - MIN ( + 87 ) + + - 89 AS col0
----
-176

query I rowsort
SELECT ALL 36 - 34
----
2

query I rowsort
SELECT DISTINCT CASE + 99 WHEN - 31 THEN + - 4 ELSE NULL END
----
NULL

query I rowsort
SELECT + 59 + + COALESCE ( + 16, - 6 )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT - 65 - + - 45 DIV - - COALESCE ( ( + - 8 ), - 58 * - 69 + 69 ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-8895
SELECT - 65 - + - 45 / - - COALESCE ( ( + - 8 ), - 58 * - 69 + 69 ) col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT DISTINCT - 48 * + 97 * + + COUNT( * ) AS col2
----
-4656

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT - 48 * + 97 * + + COUNT ( * ) AS col2
----
-4656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8897
SELECT - ( + + 27 ) + - + NULLIF ( + 36, - 71 * - + CAST( + - 66 AS SIGNED ) + - COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-8897
SELECT - ( + + 27 ) + - + NULLIF ( + 36, - 71 * - + CAST ( + - 66 AS INTEGER ) + - COUNT ( * ) )
----
-63

query I rowsort
SELECT - 12 * + 95
----
-1140

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8899
SELECT ALL CASE + 10 WHEN + 50 - CAST( - 31 AS DECIMAL ) / - 54 + - 89 THEN - - CASE 77 WHEN + + 15 / - 70 * 60 THEN NULL ELSE 58 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL CASE + 10 WHEN + 50 - CAST ( - 31 AS REAL ) / - 54 + - 89 THEN - - CASE 77 WHEN + + 15 / - 70 * 60 THEN NULL ELSE 58 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT - ( - ( + 70 ) ) + + + 75 * - COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8900
SELECT - ( - ( + 70 ) ) + + + 75 * - COUNT ( * ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT DISTINCT CASE + 65 WHEN - 63 * 83 THEN + + 17 * + + ( 8 ) * 67 + - + 73 - - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT CASE + 65 WHEN - 63 * 83 THEN + + 17 * + + ( 8 ) * 67 + - + 73 - - COUNT ( * ) END AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8903
SELECT DISTINCT + 3 DIV + CAST( + 17 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT + 3 / + CAST ( + 17 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8904
SELECT - 34 * + COALESCE ( - 24, CAST( NULL AS SIGNED ) ) col0
----
816

skipif mysql # not compatible
query I rowsort label-8904
SELECT - 34 * + COALESCE ( - 24, CAST ( NULL AS INTEGER ) ) col0
----
816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8905
SELECT - COUNT( * ) * + - 26 * - - CAST( - ( CAST( + 78 AS SIGNED ) ) AS SIGNED )
----
-2028

skipif mysql # not compatible
query I rowsort label-8905
SELECT - COUNT ( * ) * + - 26 * - - CAST ( - ( CAST ( + 78 AS INTEGER ) ) AS INTEGER )
----
-2028

query I rowsort
SELECT ALL + 85 * - 76
----
-6460

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + 28 + SUM( + 14 ) * + 34 * 85 AS col0
----
40488

skipif mysql # not compatible
query I rowsort label-8907
SELECT + 28 + SUM ( + 14 ) * + 34 * 85 AS col0
----
40488

query I rowsort
SELECT CASE + 36 WHEN 74 THEN - + 35 ELSE + 10 END
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8909
SELECT - 68 DIV - + ( + 75 ) + + ( - 73 ) col1
----
-73

skipif mysql # not compatible
query I rowsort label-8909
SELECT - 68 / - + ( + 75 ) + + ( - 73 ) col1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8910
SELECT ALL + COUNT( * ) * + COUNT( * ) DIV 54 + - 43 + - - 12 * 0 + + 46, - 16 AS col2
----
3
-16

skipif mysql # not compatible
query II rowsort label-8910
SELECT ALL + COUNT ( * ) * + COUNT ( * ) / 54 + - 43 + - - 12 * 0 + + 46, - 16 AS col2
----
3
-16

query I rowsort
SELECT DISTINCT + 32 * - - 93 + + 32
----
3008

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

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

query I rowsort
SELECT + + 52 + + + 72 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT DISTINCT + - 80 * + SUM( ALL 2 ) + - - ( + 78 ) + + + 36 * 76
----
2654

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT + - 80 * + SUM ( ALL 2 ) + - - ( + 78 ) + + + 36 * 76
----
2654

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT DISTINCT + - 69 * - COUNT( * ) * - 5 + + 37 + - ( - 75 ) AS col2
----
-233

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT + - 69 * - COUNT ( * ) * - 5 + + 37 + - ( - 75 ) AS col2
----
-233

query II rowsort
SELECT - + 8 - + 64, + 76 AS col1
----
-72
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT + CASE + 83 WHEN COUNT( * ) * 33 + + 70 THEN + - 9 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8917
SELECT + CASE + 83 WHEN COUNT ( * ) * 33 + + 70 THEN + - 9 END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT CAST( NULL AS SIGNED ) * 64 - - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT CAST ( NULL AS INTEGER ) * 64 - - 69
----
NULL

query I rowsort
SELECT + - 28 * + - 33 - + 36 col2
----
888

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT ALL + COUNT( ALL + 74 ) * - - 49 - MAX( DISTINCT - - 97 )
----
-48

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL + COUNT ( ALL + 74 ) * - - 49 - MAX ( DISTINCT - - 97 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT + 74 + + 44 + SUM( + - 97 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8923
SELECT + 74 + + 44 + SUM ( + - 97 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL - ( - 53 ) * 18 - + COUNT( * ) * + 94 - + 59 + - + ( 97 ) + - 79 - 56 AS col2
----
569

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL - ( - 53 ) * 18 - + COUNT ( * ) * + 94 - + 59 + - + ( 97 ) + - 79 - 56 AS col2
----
569

query I rowsort
SELECT + 18 * + 1 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL + + CASE + 83 WHEN + + COUNT( * ) THEN - - 18 END * + + AVG ( DISTINCT 42 ) / + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL + + CASE + 83 WHEN + + COUNT ( * ) THEN - - 18 END * + + AVG ( DISTINCT 42 ) / + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8927
SELECT CAST( - + 25 AS SIGNED ) AS col2, 16 + 90 + MAX( DISTINCT CAST( NULL AS SIGNED ) )
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-8927
SELECT CAST ( - + 25 AS INTEGER ) AS col2, 16 + 90 + MAX ( DISTINCT CAST ( NULL AS INTEGER ) )
----
-25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT - CASE + 57 WHEN + ( - + 90 ) THEN - AVG ( + + 95 ) * SUM( ( + 48 ) ) * + ( - + COUNT( * ) ) * + 96 - - + 2 + - 5 WHEN 10 THEN - + 46 * - ( + - ( 47 ) ) + - 43 * - + 13 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT - CASE + 57 WHEN + ( - + 90 ) THEN - AVG ( + + 95 ) * SUM ( ( + 48 ) ) * + ( - + COUNT ( * ) ) * + 96 - - + 2 + - 5 WHEN 10 THEN - + 46 * - ( + - ( 47 ) ) + - 43 * - + 13 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT + 18 + - 49 + - COUNT( * ) * 62 col1
----
-93

skipif mysql # not compatible
query I rowsort label-8929
SELECT + 18 + - 49 + - COUNT ( * ) * 62 col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT MAX( - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-8930
SELECT MAX ( - 22 )
----
-22

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

skipif mysql # not compatible
query II rowsort label-8931
SELECT COUNT ( * ) AS col1, 65
----
1
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8932
SELECT ALL 24 DIV - - 75
----
0

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL 24 / - - 75
----
0

query I rowsort
SELECT + 88 * - 77
----
-6776

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT DISTINCT + 71 * 35 DIV + - 8
----
-310

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT + 71 * 35 / + - 8
----
-310

query I rowsort
SELECT DISTINCT - 17 * - 50 AS col2
----
850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT + CAST( + 42 AS SIGNED ) * 91 * - 76 AS col1
----
-290472

skipif mysql # not compatible
query I rowsort label-8936
SELECT + CAST ( + 42 AS INTEGER ) * 91 * - 76 AS col1
----
-290472

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL - MIN( ALL 97 ) * - - 78 AS col0
----
-7566

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - MIN ( ALL 97 ) * - - 78 AS col0
----
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT - SUM( DISTINCT + 54 ) * - - 93 AS col0
----
-5022

skipif mysql # not compatible
query I rowsort label-8939
SELECT - SUM ( DISTINCT + 54 ) * - - 93 AS col0
----
-5022

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ALL 64 + + CASE - 8 WHEN COUNT( * ) + + - 25 THEN + 67 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL 64 + + CASE - 8 WHEN COUNT ( * ) + + - 25 THEN + 67 END col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - - 80, + + ( 36 ) + + 98 + + 7 ) AS col2
----
80

query I rowsort
SELECT - 28 * 64 AS col0
----
-1792

onlyif mysql # aggregate syntax: 
query II rowsort label-8944
SELECT DISTINCT + SUM( DISTINCT - 29 ) + + 25 AS col2, ( ( - - ( 84 ) ) ) + - - 51 + + + CASE 81 WHEN + 76 THEN + - 88 / + + ( - - 72 ) END + - 50 / - 8 * - + 11 * COUNT( * )
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-8944
SELECT DISTINCT + SUM ( DISTINCT - 29 ) + + 25 AS col2, ( ( - - ( 84 ) ) ) + - - 51 + + + CASE 81 WHEN + 76 THEN + - 88 / + + ( - - 72 ) END + - 50 / - 8 * - + 11 * COUNT ( * )
----
-4
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT DISTINCT ( ( - COUNT( DISTINCT + + 73 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT ( ( - COUNT ( DISTINCT + + 73 ) ) ) AS col2
----
-1

query I rowsort
SELECT ALL 80 + 92
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT - SUM( + + 88 ) - - 9 * 53 col2
----
389

skipif mysql # not compatible
query I rowsort label-8948
SELECT - SUM ( + + 88 ) - - 9 * 53 col2
----
389

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8949
SELECT DISTINCT + + 95 DIV - ( - CASE - 4 WHEN + SUM( + 58 ) THEN NULL WHEN - - 94 + - 65 - - 71 * + COUNT( * ) * + - 94 * + COUNT( * ) * - 65 THEN + - 67 * - 17 + - ( + + CASE - 70 WHEN - - ( + 80 ) + + MIN( DISTINCT - + 65 ) - + COUNT( * ) DIV 44 THEN - + COALESCE ( + 5, - 91 * + 13 * COUNT( * ) + + 42 - 14 ) DIV + 25 ELSE MAX( ALL - 11 ) * - ( 7 + ( COUNT( * ) ) DIV 36 ) END ) + - 44 WHEN - 92 DIV + 92 THEN 93 ELSE + ( + 55 ) * + 5 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT + + 95 / - ( - CASE - 4 WHEN + SUM ( + 58 ) THEN NULL WHEN - - 94 + - 65 - - 71 * + COUNT ( * ) * + - 94 * + COUNT ( * ) * - 65 THEN + - 67 * - 17 + - ( + + CASE - 70 WHEN - - ( + 80 ) + + MIN ( DISTINCT - + 65 ) - + COUNT ( * ) / 44 THEN - + COALESCE ( + 5, - 91 * + 13 * COUNT ( * ) + + 42 - 14 ) / + 25 ELSE MAX ( ALL - 11 ) * - ( 7 + ( COUNT ( * ) ) / 36 ) END ) + - 44 WHEN - 92 / + 92 THEN 93 ELSE + ( + 55 ) * + 5 END ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT - + 98 - - CAST( - 98 AS SIGNED ) AS col0
----
-196

skipif mysql # not compatible
query I rowsort label-8950
SELECT - + 98 - - CAST ( - 98 AS INTEGER ) AS col0
----
-196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8951
SELECT ALL + 29 * + COUNT( * ) DIV + 88 col1
----
0

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL + 29 * + COUNT ( * ) / + 88 col1
----
0

query I rowsort
SELECT - - 23 + + CASE + - 64 WHEN - 31 THEN + 16 ELSE NULL END * + 44 + - 59 + + 46
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT ALL + - 36 DIV 35 + - + 93 * - ( 90 ) * - 45
----
-376651

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL + - 36 / 35 + - + 93 * - ( 90 ) * - 45
----
-376651

query I rowsort
SELECT - + 7 * 65 AS col2
----
-455

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8956
SELECT 37 DIV 17 * + 52 + - 60 - - CAST( - 26 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-8956
SELECT 37 / 17 * + 52 + - 60 - - CAST ( - 26 AS INTEGER )
----
18

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

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

query II rowsort
SELECT + + 40 AS col2, + 68
----
40
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8959
SELECT 88 * + - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + + 12 + - - CASE + ( + - ( + COUNT( * ) ) ) WHEN COUNT( * ) THEN + - 1 WHEN - NULLIF ( - + SUM( - - 68 ), COUNT( * ) * + COUNT( * ) * 12 ) * - + 55 + - COUNT( * ) THEN NULL END * ( - COUNT( + 45 ) ) AS col1, 86 AS col0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-8959
SELECT 88 * + - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 12 + - - CASE + ( + - ( + COUNT ( * ) ) ) WHEN COUNT ( * ) THEN + - 1 WHEN - NULLIF ( - + SUM ( - - 68 ), COUNT ( * ) * + COUNT ( * ) * 12 ) * - + 55 + - COUNT ( * ) THEN NULL END * ( - COUNT ( + 45 ) ) AS col1, 86 AS col0
----
NULL
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8960
SELECT ALL + COUNT( * ) / - 25 - + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL + COUNT ( * ) / - 25 - + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT ALL + + 61 * - + 10 + + COUNT( * )
----
-609

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL + + 61 * - + 10 + + COUNT ( * )
----
-609

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8962
SELECT ALL - 86 DIV 90 + + - COUNT( * ) + - - NULLIF ( - 50, 79 )
----
-51

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL - 86 / 90 + + - COUNT ( * ) + - - NULLIF ( - 50, 79 )
----
-51

query I rowsort
SELECT + 11 * - 87
----
-957

query I rowsort
SELECT 71 + + + 85
----
156

query II rowsort
SELECT ALL - 14 AS col0, + 63 col1
----
-14
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT - MIN( DISTINCT 6 ) * - 66 AS col2
----
396

skipif mysql # not compatible
query I rowsort label-8966
SELECT - MIN ( DISTINCT 6 ) * - 66 AS col2
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - COUNT( * ) * - 81 + + 21 * - COUNT( + 81 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8967
SELECT - COUNT ( * ) * - 81 + + 21 * - COUNT ( + 81 ) AS col2
----
60

query I rowsort
SELECT 2 * - 29 * - 69 + + 33
----
4035

query II rowsort
SELECT ALL - 27, ( 81 ) AS col2
----
-27
81

query I rowsort
SELECT DISTINCT - 75 + + 78
----
3

query II rowsort
SELECT - 29 AS col1, 74 + - 42 AS col1
----
-29
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8972
SELECT 82 + COUNT( * ) DIV - + COUNT( * ) + - ( 55 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-8972
SELECT 82 + COUNT ( * ) / - + COUNT ( * ) + - ( 55 ) AS col2
----
26

query I rowsort
SELECT ALL 47 * ( 59 )
----
2773

onlyif mysql # aggregate syntax: 
query II rowsort label-8974
SELECT ALL 40 + 67, COUNT( * ) AS col0
----
107
1

skipif mysql # not compatible
query II rowsort label-8974
SELECT ALL 40 + 67, COUNT ( * ) AS col0
----
107
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8975
SELECT COUNT( * ) - + ( COALESCE ( - 8, + COUNT( * ), CAST( ( NULLIF ( 25, + - 89 ) ) AS SIGNED ) * - - 74 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8975
SELECT COUNT ( * ) - + ( COALESCE ( - 8, + COUNT ( * ), CAST ( ( NULLIF ( 25, + - 89 ) ) AS INTEGER ) * - - 74 ) ) AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8976
SELECT CASE - AVG ( 10 ) WHEN 67 THEN NULL ELSE - + 86 * + 80 END DIV 55 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-8976
SELECT CASE - AVG ( 10 ) WHEN 67 THEN NULL ELSE - + 86 * + 80 END / 55 AS col0
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-8977
SELECT ALL COALESCE ( - - 84, + 54 ) + - - COUNT( * ) AS col0, - COUNT( * )
----
85
-1

skipif mysql # not compatible
query II rowsort label-8977
SELECT ALL COALESCE ( - - 84, + 54 ) + - - COUNT ( * ) AS col0, - COUNT ( * )
----
85
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT NULLIF ( + + 70, COUNT( * ) ) + ( - 68 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8978
SELECT NULLIF ( + + 70, COUNT ( * ) ) + ( - 68 ) AS col0
----
2

query II rowsort
SELECT DISTINCT 57 AS col2, 43
----
57
43

query I rowsort
SELECT DISTINCT 4 * 3 * 73
----
876

query I rowsort
SELECT ALL - 41 - 3 + - + 25
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8982
SELECT 78 * + 32 * + 37 + 48 + + 60 DIV + 14
----
92404

skipif mysql # not compatible
query I rowsort label-8982
SELECT 78 * + 32 * + 37 + 48 + + 60 / + 14
----
92404

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT 86 * + COUNT( * ) + - - 22
----
108

skipif mysql # not compatible
query I rowsort label-8983
SELECT 86 * + COUNT ( * ) + - - 22
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT + MIN( DISTINCT - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-8984
SELECT + MIN ( DISTINCT - 11 ) AS col2
----
-11

query I rowsort
SELECT ALL + + 1 - + ( 83 ) + - 55 AS col0
----
-137

query I rowsort
SELECT + 43 * + + 85 col1
----
3655

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT DISTINCT - - SUM( ALL + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT - - SUM ( ALL + 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ALL + + 26 * - - CASE - 54 WHEN - + 90 + + + 45 THEN + 8 * + - 7 ELSE 52 * - COUNT( * ) * 88 END AS col0
----
-118976

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL + + 26 * - - CASE - 54 WHEN - + 90 + + + 45 THEN + 8 * + - 7 ELSE 52 * - COUNT ( * ) * 88 END AS col0
----
-118976

query I rowsort
SELECT DISTINCT - - 75 * - 63
----
-4725

query III rowsort
SELECT ALL - - 92 col2, + 4 AS col0, - ( + - 95 )
----
92
4
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL - MAX( 30 ) * + CASE + - 57 WHEN + 42 THEN NULL WHEN - 33 THEN - - COALESCE ( 92, + 21, + + 59 ) + - 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL - MAX ( 30 ) * + CASE + - 57 WHEN + 42 THEN NULL WHEN - 33 THEN - - COALESCE ( 92, + 21, + + 59 ) + - 89 END
----
NULL

query II rowsort
SELECT - 44, + 61 - + ( + 1 ) AS col0
----
-44
60

query I rowsort
SELECT + 76 * - - 23
----
1748

query I rowsort
SELECT + 38 * - 55 - + 69 - + ( + 58 ) AS col2
----
-2217

query I rowsort
SELECT 95 * - 92 AS col2
----
-8740

query I rowsort
SELECT DISTINCT - ( - - 20 ) AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT ALL - 62 + 6 DIV - NULLIF ( ( + + 73 ), - + 96 * 59 ) * + - 50 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL - 62 + 6 / - NULLIF ( ( + + 73 ), - + 96 * 59 ) * + - 50 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8998
SELECT DISTINCT - 89 + + 33 AS col1, - 27 * + 95 * COUNT( * ) AS col1
----
-56
-2565

skipif mysql # not compatible
query II rowsort label-8998
SELECT DISTINCT - 89 + + 33 AS col1, - 27 * + 95 * COUNT ( * ) AS col1
----
-56
-2565

onlyif mysql # aggregate syntax: 
query II rowsort label-8999
SELECT ALL + COUNT( + - 55 ) + + + 70 AS col2, + 34
----
71
34

skipif mysql # not compatible
query II rowsort label-8999
SELECT ALL + COUNT ( + - 55 ) + + + 70 AS col2, + 34
----
71
34

query I rowsort
SELECT DISTINCT - 44 + + - 95 + + ( + 43 ) * + ( 14 ) AS col1
----
463

query I rowsort
SELECT 85 - + + 94
----
-9

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

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

query I rowsort
SELECT DISTINCT 70 + - 97
----
-27

query II rowsort
SELECT ALL + 99 + 49 AS col1, 98 - - 71 - + 75 AS col0
----
148
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT 72 * 83 * - - COUNT( * ) AS col2
----
5976

skipif mysql # not compatible
query I rowsort label-9005
SELECT 72 * 83 * - - COUNT ( * ) AS col2
----
5976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9006
SELECT DISTINCT + AVG ( - - 95 ) + - 29 + COUNT( * ) + + 67 + - 17 + - - ( + + 5 ) * - - 67 / CASE - SUM( CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) + 84 THEN + 52 ELSE + 31 * - - 97 END - + CASE + COUNT( * ) WHEN - 7 THEN - 9 + + + ( NULLIF ( + 44, 42 * ( 31 ) ) ) WHEN - 98 THEN NULL END * + 23 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT + AVG ( - - 95 ) + - 29 + COUNT ( * ) + + 67 + - 17 + - - ( + + 5 ) * - - 67 / CASE - SUM ( CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) + 84 THEN + 52 ELSE + 31 * - - 97 END - + CASE + COUNT ( * ) WHEN - 7 THEN - 9 + + + ( NULLIF ( + 44, 42 * ( 31 ) ) ) WHEN - 98 THEN NULL END * + 23 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL - 27 + - - 64 - - 69 * - - COUNT( ALL - + 99 )
----
106

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL - 27 + - - 64 - - 69 * - - COUNT ( ALL - + 99 )
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL + CASE + 99 WHEN + 77 THEN - 83 END * 86 + - COUNT( * ) + 22 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL + CASE + 99 WHEN + 77 THEN - 83 END * 86 + - COUNT ( * ) + 22 / COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 28 * - - 72 * - 1
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT DISTINCT COALESCE ( - COUNT( * ), 30 * 50 + + 7 ) - 55 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT COALESCE ( - COUNT ( * ), 30 * 50 + + 7 ) - 55 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL MIN( + NULLIF ( + 55, - - 19 ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL MIN ( + NULLIF ( + 55, - - 19 ) ) AS col1
----
55

query I rowsort
SELECT ALL 8 - + - 60
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT 16 * SUM( + + 53 )
----
848

skipif mysql # not compatible
query I rowsort label-9013
SELECT 16 * SUM ( + + 53 )
----
848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9014
SELECT + COUNT( 15 ) DIV ( 35 )
----
0

skipif mysql # not compatible
query I rowsort label-9014
SELECT + COUNT ( 15 ) / ( 35 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT + 48 + - + CAST( NULL AS SIGNED ) * - - 86 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9015
SELECT + 48 + - + CAST ( NULL AS INTEGER ) * - - 86 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT - - CASE ( - 45 ) WHEN + 82 THEN NULL ELSE + 74 END
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9018
SELECT DISTINCT 36 DIV COUNT( * ) AS col2, - 55 * + - 43 AS col2
----
36
2365

skipif mysql # not compatible
query II rowsort label-9018
SELECT DISTINCT 36 / COUNT ( * ) AS col2, - 55 * + - 43 AS col2
----
36
2365

query I rowsort
SELECT ALL + 86 * - + 81 + 48 AS col1
----
-6918

query I rowsort
SELECT DISTINCT - 58 * + 25
----
-1450

query I rowsort
SELECT + + 89 * + 76
----
6764

query I rowsort
SELECT ALL + ( - + 72 ) * - 58 + + 58 AS col1
----
4234

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL + 89 * - 49 * - 79 + + SUM( DISTINCT - 86 ) * + 47 + - ( - 36 ) AS col0
----
340513

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL + 89 * - 49 * - 79 + + SUM ( DISTINCT - 86 ) * + 47 + - ( - 36 ) AS col0
----
340513

onlyif mysql # DIV for integer division: 
query I rowsort label-9024
SELECT - 86 DIV 28 + - - 39 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9024
SELECT - 86 / 28 + - - 39 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - NULLIF ( 72, 64 ) * 0 - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9025
SELECT - NULLIF ( 72, 64 ) * 0 - COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9026
SELECT ALL 20 * COUNT( * ) + + 98 - 41 DIV + + 98 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL 20 * COUNT ( * ) + + 98 - 41 / + + 98 AS col1
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9027
SELECT ALL CASE - 57 WHEN 60 * + ( + + 61 ) THEN NULL WHEN 10 * - 37 * 45 THEN NULL WHEN + 52 - - 10 THEN - 33 ELSE - COUNT( - 29 ) + + - CASE - + COUNT( * ) WHEN + - 43 - 30 THEN NULL ELSE - 57 * + 6 * - 98 + NULLIF ( 44, - AVG ( - - ( + 16 ) ) DIV 80 + 96 ) DIV + 16 END - - 44 END * SUM( DISTINCT + - 48 ) * + + 79 + - ( 86 ) + + 33 + 45 AS col1
----
126937192

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL CASE - 57 WHEN 60 * + ( + + 61 ) THEN NULL WHEN 10 * - 37 * 45 THEN NULL WHEN + 52 - - 10 THEN - 33 ELSE - COUNT ( - 29 ) + + - CASE - + COUNT ( * ) WHEN + - 43 - 30 THEN NULL ELSE - 57 * + 6 * - 98 + NULLIF ( 44, - AVG ( - - ( + 16 ) ) / 80 + 96 ) / + 16 END - - 44 END * SUM ( DISTINCT + - 48 ) * + + 79 + - ( 86 ) + + 33 + 45 AS col1
----
126937192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT NULLIF ( ( 37 ), - 11 + + 96 ) * - ( - 67 ) / CAST( NULL AS SIGNED ) + NULLIF ( - 99, + CAST( NULL AS SIGNED ) ) + - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT NULLIF ( ( 37 ), - 11 + + 96 ) * - ( - 67 ) / CAST ( NULL AS INTEGER ) + NULLIF ( - 99, + CAST ( NULL AS INTEGER ) ) + - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9029
SELECT DISTINCT 94 * - 96 + + COALESCE ( - 19, + + 19 * + + COUNT( * ) * - 4 DIV - 70 ) AS col1
----
-9043

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT 94 * - 96 + + COALESCE ( - 19, + + 19 * + + COUNT ( * ) * - 4 / - 70 ) AS col1
----
-9043

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT - ( COUNT( * ) ) + + 30 - - MAX( - 34 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9030
SELECT - ( COUNT ( * ) ) + + 30 - - MAX ( - 34 ) AS col0
----
-5

query II rowsort
SELECT + 74 AS col1, - 49 + + 8 * - 69 AS col2
----
74
-601

query I rowsort
SELECT ALL 57 * - + ( + 6 ) + - 77 AS col1
----
-419

query I rowsort
SELECT ALL - 40 * 59 col1
----
-2360

query I rowsort
SELECT + 47 + 77 AS col1
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9035
SELECT + ( CASE - 78 WHEN + 95 THEN + + CAST( NULL AS SIGNED ) WHEN - + 53 THEN 61 + ( + SUM( ALL 65 ) ) WHEN 55 + - + 6 + - 0 THEN NULL END ) AS col2, + 37 * ( 40 ) * + - 73 + - CAST( NULL AS DECIMAL ) - - 13
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9035
SELECT + ( CASE - 78 WHEN + 95 THEN + + CAST ( NULL AS INTEGER ) WHEN - + 53 THEN 61 + ( + SUM ( ALL 65 ) ) WHEN 55 + - + 6 + - 0 THEN NULL END ) AS col2, + 37 * ( 40 ) * + - 73 + - CAST ( NULL AS REAL ) - - 13
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT + 81 * + COUNT( * ) + + + 65 + - 27 * - COUNT( * ) - 77
----
96

skipif mysql # not compatible
query I rowsort label-9036
SELECT + 81 * + COUNT ( * ) + + + 65 + - 27 * - COUNT ( * ) - 77
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9037
SELECT COUNT( * ) AS col0, 17
----
1
17

skipif mysql # not compatible
query II rowsort label-9037
SELECT COUNT ( * ) AS col0, 17
----
1
17

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

skipif mysql # not compatible
query II rowsort label-9038
SELECT COUNT ( * ) AS col1, - 97 AS col2
----
1
-97

query I rowsort
SELECT - 93 + 23
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT DISTINCT + MIN( + 25 ) - + 60 * 41
----
-2435

skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT + MIN ( + 25 ) - + 60 * 41
----
-2435

query I rowsort
SELECT ALL - 41 * 44
----
-1804

query I rowsort
SELECT ALL ( - 16 ) col0
----
-16

query I rowsort
SELECT 5 * 83 + - 80 col0
----
335

query I rowsort
SELECT ALL COALESCE ( - 14, + + CASE - + 57 WHEN - 59 THEN NULL ELSE + 37 END, + 61 )
----
-14

query I rowsort
SELECT - 21 * 16 col0
----
-336

onlyif mysql # DIV for integer division: 
query I rowsort label-9046
SELECT ALL + 5 DIV + - 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL + 5 / + - 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT - + NULLIF ( - - 73, COUNT( * ) ) + 18 - + + 42 + + MAX( + + 95 )
----
-2

skipif mysql # not compatible
query I rowsort label-9047
SELECT - + NULLIF ( - - 73, COUNT ( * ) ) + 18 - + + 42 + + MAX ( + + 95 )
----
-2

query I rowsort
SELECT + - 45 + + 64
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT COUNT( + 17 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9049
SELECT COUNT ( + 17 ) AS col2
----
1

query I rowsort
SELECT + + 70 + + ( + 61 )
----
131

query I rowsort
SELECT - - 0 * + + 70
----
0

query I rowsort
SELECT - ( 91 ) + - 6 AS col2
----
-97

query I rowsort
SELECT ALL - - 17 * + - 48
----
-816

query I rowsort
SELECT - 69 + 0
----
-69

query I rowsort
SELECT ALL - - 42 + 61
----
103

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT - + 74 * + + 93 + + - NULLIF ( 15, + 53 * + CAST( 61 AS SIGNED ) ) + - 64 col1
----
-6961

skipif mysql # not compatible
query I rowsort label-9057
SELECT - + 74 * + + 93 + + - NULLIF ( 15, + 53 * + CAST ( 61 AS INTEGER ) ) + - 64 col1
----
-6961

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT + 27 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-9058
SELECT + 27 / - 64
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9059
SELECT ALL 66 DIV 19 + + + 54 + - 30 * + - 94 * + COALESCE ( + 12, + 98 DIV - 85 + + + 34 + + MAX( NULLIF ( + 70, - - 12 ) ) DIV + 90 + - 10 ) * - 17 + 46 + + + 8 - + 85 * + 99 + + 46
----
-583538

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL 66 / 19 + + + 54 + - 30 * + - 94 * + COALESCE ( + 12, + 98 / - 85 + + + 34 + + MAX ( NULLIF ( + 70, - - 12 ) ) / + 90 + - 10 ) * - 17 + 46 + + + 8 - + 85 * + 99 + + 46
----
-583538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9060
SELECT ALL 54 DIV - COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL 54 / - COUNT ( * ) AS col0
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9061
SELECT DISTINCT + 85 / - + 93 * + - 81 * - 61 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT + 85 / - + 93 * + - 81 * - 61 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT + ( 40 ) DIV + - 14 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9062
SELECT + ( 40 ) / + - 14 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9063
SELECT ALL 53 DIV - 77 * - + COUNT( * ) * 74 + + 9
----
9

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL 53 / - 77 * - + COUNT ( * ) * 74 + + 9
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9064
SELECT + 35 * + + 8 AS col0, + COUNT( - 52 ) AS col2
----
280
1

skipif mysql # not compatible
query II rowsort label-9064
SELECT + 35 * + + 8 AS col0, + COUNT ( - 52 ) AS col2
----
280
1

query I rowsort
SELECT 44 * - 37 * + ( + 70 ) - + 44 * - ( - + 33 ) * - 10 * - 83
----
-1319120

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT ALL 17 * + - ( MAX( + - 2 ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL 17 * + - ( MAX ( + - 2 ) ) AS col0
----
34

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9068
SELECT ALL + COUNT( - 86 ), - 58 AS col0
----
1
-58

skipif mysql # not compatible
query II rowsort label-9068
SELECT ALL + COUNT ( - 86 ), - 58 AS col0
----
1
-58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9070
SELECT + 76 * CASE - - SUM( ALL + - 44 ) WHEN + MAX( ALL + 56 ) * 85 THEN NULL WHEN - + 95 THEN + 83 - 91 WHEN + SUM( ALL CAST( + 90 AS SIGNED ) ) THEN - - 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9070
SELECT + 76 * CASE - - SUM ( ALL + - 44 ) WHEN + MAX ( ALL + 56 ) * 85 THEN NULL WHEN - + 95 THEN + 83 - 91 WHEN + SUM ( ALL CAST ( + 90 AS INTEGER ) ) THEN - - 21 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL - COUNT( * ) * + + 23 * + 95 * - + 71 * - 97 * 51 AS col2
----
-767452845

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL - COUNT ( * ) * + + 23 * + 95 * - + 71 * - 97 * 51 AS col2
----
-767452845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9072
SELECT NULLIF ( - + 48, CAST( ( - 6 ) AS SIGNED ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-9072
SELECT NULLIF ( - + 48, CAST ( ( - 6 ) AS INTEGER ) ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT + 92 + + 43 * + - COUNT( - + 64 ) * + 56 + + 34
----
-2282

skipif mysql # not compatible
query I rowsort label-9073
SELECT + 92 + + 43 * + - COUNT ( - + 64 ) * + 56 + + 34
----
-2282

query I rowsort
SELECT - 98 * - 69 AS col2
----
6762

query I rowsort
SELECT + 10 * - - 15
----
150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9076
SELECT - - ( + 15 ) - + COUNT( * ) + + 30 + + CAST( NULL AS DECIMAL ) * - + COUNT( * ) / CASE + + 24 WHEN - 37 THEN + 81 + 88 * 25 / + - 57 WHEN - 92 + + 21 * + 48 THEN NULL END + + - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT - - ( + 15 ) - + COUNT ( * ) + + 30 + + CAST ( NULL AS REAL ) * - + COUNT ( * ) / CASE + + 24 WHEN - 37 THEN + 81 + 88 * 25 / + - 57 WHEN - 92 + + 21 * + 48 THEN NULL END + + - 48 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-9077
SELECT DISTINCT + - 44 * + 65, - 10 DIV - - 47 + 3 AS col1, - ( - + 65 ) AS col0
----
-2860
3
65

skipif mysql # not compatible
query III rowsort label-9077
SELECT DISTINCT + - 44 * + 65, - 10 / - - 47 + 3 AS col1, - ( - + 65 ) AS col0
----
-2860
3
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT DISTINCT MIN( DISTINCT + + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT MIN ( DISTINCT + + 0 )
----
0

query I rowsort
SELECT DISTINCT + - 52 + + 88
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9080
SELECT 45 DIV + 29
----
1

skipif mysql # not compatible
query I rowsort label-9080
SELECT 45 / + 29
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9081
SELECT NULLIF ( COALESCE ( + 79, - - 85, - MIN( DISTINCT + 50 ) ), + + 39 ) + - CASE + 22 WHEN + 89 * 54 - 73 * 27 THEN 4 * 87 / MIN( 28 ) ELSE NULL END - - 9 - + 47, - 99 AS col0
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-9081
SELECT NULLIF ( COALESCE ( + 79, - - 85, - MIN ( DISTINCT + 50 ) ), + + 39 ) + - CASE + 22 WHEN + 89 * 54 - 73 * 27 THEN 4 * 87 / MIN ( 28 ) ELSE NULL END - - 9 - + 47, - 99 AS col0
----
NULL
-99

query I rowsort
SELECT ( - 44 ) * 71 AS col0
----
-3124

query I rowsort
SELECT - 19 + 58 + + 17 AS col0
----
56

query I rowsort
SELECT ALL + NULLIF ( + 79, + 81 ) + + + 5 AS col2
----
84

query I rowsort
SELECT 25 + 22 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9086
SELECT DISTINCT + SUM( - CAST( NULL AS SIGNED ) ) + - 70 * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT + SUM ( - CAST ( NULL AS INTEGER ) ) + - 70 * 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT + MAX( + ( - 66 ) ) + - 27 * + + 78 AS col0
----
-2172

skipif mysql # not compatible
query I rowsort label-9087
SELECT + MAX ( + ( - 66 ) ) + - 27 * + + 78 AS col0
----
-2172

query I rowsort
SELECT DISTINCT + 73 * 87 AS col2
----
6351

query I rowsort
SELECT DISTINCT - 15 + - 76 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT 49 * + - 10 * 87 * COUNT( * ) + - 19 + + 86 * - 56 * - 51 col1
----
202967

skipif mysql # not compatible
query I rowsort label-9090
SELECT 49 * + - 10 * 87 * COUNT ( * ) + - 19 + + 86 * - 56 * - 51 col1
----
202967

onlyif mysql # DIV for integer division: 
query I rowsort label-9091
SELECT ALL - 12 + - + 29 DIV - ( - 63 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL - 12 + - + 29 / - ( - 63 ) AS col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9092
SELECT 76 DIV - 68 + - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9092
SELECT 76 / - 68 + - - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT NULLIF ( - 44, - 10 ) * - 66 * + 49
----
142296

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9095
SELECT DISTINCT - 49 col2, - CASE - + 20 WHEN - ( 8 ) + - COALESCE ( 36, + CAST( + 0 AS SIGNED ) + - ( + MAX( ALL - - 37 ) ) * - 37 + + CASE - + 49 WHEN - 65 + 58 + - + 5 THEN NULL WHEN - 56 / - - 77 * - 10 * + 16 THEN + + CASE 28 WHEN 20 THEN - 13 + - 43 WHEN - - 98 THEN NULL ELSE NULL END * - 48 * + COUNT( * ) * + - 9 * + 56 + + 22 WHEN + MIN( 7 ) THEN NULL WHEN + CASE 94 WHEN 51 * 7 + + 60 * + 56 THEN NULL WHEN + 88 * - COUNT( * ) THEN 75 WHEN 24 + 79 * - 98 THEN NULL ELSE - 75 + + ( 85 + + 41 ) * + 7 END THEN + ( COUNT( * ) ) END + COALESCE ( + 3, - 32, - 5 + 80 ) ) / - SUM( + 43 ) THEN 10 * NULLIF ( 94, COUNT( * ) * - ( 27 * COUNT( * ) ) ) ELSE 99 END AS col0
----
-49
-99

skipif mysql # not compatible
query II rowsort label-9095
SELECT DISTINCT - 49 col2, - CASE - + 20 WHEN - ( 8 ) + - COALESCE ( 36, + CAST ( + 0 AS INTEGER ) + - ( + MAX ( ALL - - 37 ) ) * - 37 + + CASE - + 49 WHEN - 65 + 58 + - + 5 THEN NULL WHEN - 56 / - - 77 * - 10 * + 16 THEN + + CASE 28 WHEN 20 THEN - 13 + - 43 WHEN - - 98 THEN NULL ELSE NULL END * - 48 * + COUNT ( * ) * + - 9 * + 56 + + 22 WHEN + MIN ( 7 ) THEN NULL WHEN + CASE 94 WHEN 51 * 7 + + 60 * + 56 THEN NULL WHEN + 88 * - COUNT ( * ) THEN 75 WHEN 24 + 79 * - 98 THEN NULL ELSE - 75 + + ( 85 + + 41 ) * + 7 END THEN + ( COUNT ( * ) ) END + COALESCE ( + 3, - 32, - 5 + 80 ) ) / - SUM ( + 43 ) THEN 10 * NULLIF ( 94, COUNT ( * ) * - ( 27 * COUNT ( * ) ) ) ELSE 99 END AS col0
----
-49
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT 84 + 61 * + 26 / 63 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT 84 + 61 * + 26 / 63 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9097
SELECT 13 / 91 + 28 * - + ( + CAST( NULL AS SIGNED ) ) * - + COUNT( ALL + - 38 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT 13 / 91 + 28 * - + ( + CAST ( NULL AS INTEGER ) ) * - + COUNT ( ALL + - 38 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT ( NULLIF ( + 96, 7 ) ) + + - CASE 67 WHEN - + 62 + - COUNT( ALL - 78 ) * 35 THEN 6 * NULLIF ( + 45, 15 ) * + 92 - + 87 - + NULLIF ( - 53, 11 + - 61 * 55 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT ( NULLIF ( + 96, 7 ) ) + + - CASE 67 WHEN - + 62 + - COUNT ( ALL - 78 ) * 35 THEN 6 * NULLIF ( + 45, 15 ) * + 92 - + 87 - + NULLIF ( - 53, 11 + - 61 * 55 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT 13 * - SUM( - + 56 ) + - 71
----
657

skipif mysql # not compatible
query I rowsort label-9099
SELECT 13 * - SUM ( - + 56 ) + - 71
----
657

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT DISTINCT + 23 DIV 19 DIV + - 5
----
0

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT + 23 / 19 / + - 5
----
0

query I rowsort
SELECT ( - 81 ) + - 12 - - - 59 AS col0
----
-152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9102
SELECT ALL CAST( NULL AS DECIMAL ) * - 81 * - 61 / + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL CAST ( NULL AS REAL ) * - 81 * - 61 / + 52 AS col2
----
NULL

query I rowsort
SELECT ( - 64 ) * + NULLIF ( + 35, + 15 / + - 32 )
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT DISTINCT - MIN( ALL + 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT - MIN ( ALL + 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT 0 * - SUM( - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-9105
SELECT 0 * - SUM ( - 26 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT COUNT( * ) * - 60 * - + 38 AS col0
----
2280

skipif mysql # not compatible
query I rowsort label-9106
SELECT COUNT ( * ) * - 60 * - + 38 AS col0
----
2280

query I rowsort
SELECT 5 * 76 * - - 0 * + 6 + + ( ( - 63 ) )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT 45 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-9108
SELECT 45 / - 63
----
0

query I rowsort
SELECT 61 * - 21 * + 85
----
-108885

query I rowsort
SELECT DISTINCT - 11 * + 3 * - 81 + - 32 col0
----
2641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9111
SELECT MAX( DISTINCT + 59 ) + - - 33 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9111
SELECT MAX ( DISTINCT + 59 ) + - - 33 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT ALL 7 + COALESCE ( 69, + + MAX( 31 ), - 9 ) col0
----
76

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL 7 + COALESCE ( 69, + + MAX ( 31 ), - 9 ) col0
----
76

query II rowsort
SELECT DISTINCT - 29 + + 82 + + 96, + 91 AS col0
----
149
91

query I rowsort
SELECT 47 * - ( + + 48 ) * 65 AS col1
----
-146640

query I rowsort
SELECT 91 + - - 99 AS col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL + - MIN( DISTINCT + 82 ) + 10 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL + - MIN ( DISTINCT + 82 ) + 10 AS col1
----
-72

query I rowsort
SELECT ALL - 35 * - 79
----
2765

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9119
SELECT ALL 36 - - COUNT( * ) DIV - 77 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL 36 - - COUNT ( * ) / - 77 AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9120
SELECT DISTINCT - 63 DIV 24 * + - 60
----
120

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT - 63 / 24 * + - 60
----
120

query I rowsort
SELECT 96 * + COALESCE ( - 62, 56, + ( + - CASE - 91 WHEN - 54 THEN NULL ELSE + ( - 53 ) * + 93 END ) )
----
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ALL COUNT( DISTINCT - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL COUNT ( DISTINCT - 31 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9123
SELECT 10 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-9123
SELECT 10 / 83
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT - CAST( NULL AS SIGNED ) * + 61 + ( - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT - CAST ( NULL AS INTEGER ) * + 61 + ( - 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT 91 * - NULLIF ( + - COUNT( * ), - + COUNT( - 70 ) - - ( 99 ) )
----
91

skipif mysql # not compatible
query I rowsort label-9127
SELECT 91 * - NULLIF ( + - COUNT ( * ), - + COUNT ( - 70 ) - - ( 99 ) )
----
91

query I rowsort
SELECT DISTINCT + 27 * COALESCE ( + + 39, 92 * 27, + ( + 58 ) )
----
1053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9129
SELECT COUNT( * ) AS col2, ( + COALESCE ( 89, + 51, CASE - CAST( - - 38 AS SIGNED ) WHEN + - 13 THEN + + MAX( - 83 ) END + 71 ) ) AS col0
----
1
89

skipif mysql # not compatible
query II rowsort label-9129
SELECT COUNT ( * ) AS col2, ( + COALESCE ( 89, + 51, CASE - CAST ( - - 38 AS INTEGER ) WHEN + - 13 THEN + + MAX ( - 83 ) END + 71 ) ) AS col0
----
1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL + NULLIF ( + 7, + - 29 / + COUNT( * ) ) * + CASE 11 WHEN 64 / - COUNT( * ) * - + 51 THEN + 48 END + 2 + - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL + NULLIF ( + 7, + - 29 / + COUNT ( * ) ) * + CASE 11 WHEN 64 / - COUNT ( * ) * - + 51 THEN + 48 END + 2 + - 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT DISTINCT + COUNT( * ) * + 15 * 61 AS col2
----
915

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT + COUNT ( * ) * + 15 * 61 AS col2
----
915

query I rowsort
SELECT 0 - 54
----
-54

query I rowsort
SELECT ALL + 9 * 89 col1
----
801

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT 6 * - CASE + 3 WHEN + 15 + - COUNT( * ) * - 85 - + + 30 THEN NULL WHEN - ( 84 ) + - COUNT( * ) / - COUNT( * ) THEN - 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT 6 * - CASE + 3 WHEN + 15 + - COUNT ( * ) * - 85 - + + 30 THEN NULL WHEN - ( 84 ) + - COUNT ( * ) / - COUNT ( * ) THEN - 21 END
----
NULL

query I rowsort
SELECT 19 * + 16 * - 14 * - - 41 + 98
----
-174398

onlyif mysql # aggregate syntax: 
query II rowsort label-9136
SELECT MIN( 77 ) col1, - 19
----
77
-19

skipif mysql # not compatible
query II rowsort label-9136
SELECT MIN ( 77 ) col1, - 19
----
77
-19

query I rowsort
SELECT + 16 + 60 * - - ( - + 62 ) - 0 + - 20 * - 6 + 90 + - 17
----
-3511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9138
SELECT DISTINCT + CASE - 3 WHEN - ( 44 ) THEN + - 57 + + 57 WHEN 38 / - + CAST( + + 91 AS SIGNED ) + - + 83 + COALESCE ( ( + 66 ), - 94 ) + 51 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT + CASE - 3 WHEN - ( 44 ) THEN + - 57 + + 57 WHEN 38 / - + CAST ( + + 91 AS INTEGER ) + - + 83 + COALESCE ( ( + 66 ), - 94 ) + 51 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9139
SELECT - 86 DIV - 64 col2
----
1

skipif mysql # not compatible
query I rowsort label-9139
SELECT - 86 / - 64 col2
----
1

query II rowsort
SELECT + 92 + + - 34, 36 col2
----
58
36

query II rowsort
SELECT ALL + ( - 63 ) * + 87 + + 61, + 73 AS col1
----
-5420
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9142
SELECT DISTINCT 16 DIV - - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT 16 / - - 31 AS col2
----
0

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

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

query I rowsort
SELECT + 39 - - + NULLIF ( + - 12, - + 65 )
----
27

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

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

query II rowsort
SELECT ALL + 95 AS col1, + 25 + - 11
----
95
14

query I rowsort
SELECT - + 23 * - 21 - + 89 AS col1
----
394

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT - ( 56 ) * - 44 * + + COUNT( * ) AS col2
----
2464

skipif mysql # not compatible
query I rowsort label-9148
SELECT - ( 56 ) * - 44 * + + COUNT ( * ) AS col2
----
2464

query II rowsort
SELECT ALL 18 * 29 AS col2, + 20 AS col0
----
522
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9150
SELECT - - 36 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-9150
SELECT - - 36 / + 93
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9151
SELECT + - COUNT( * ) * - 22, 55 + - ( COUNT( * ) ) DIV - 24 AS col0
----
22
55

skipif mysql # not compatible
query II rowsort label-9151
SELECT + - COUNT ( * ) * - 22, 55 + - ( COUNT ( * ) ) / - 24 AS col0
----
22
55

query II rowsort
SELECT DISTINCT 36 + - 26 + - ( + - 78 ) col1, - 82 AS col1
----
88
-82

query I rowsort
SELECT ALL + 50 + + 47 AS col0
----
97

query II rowsort
SELECT - + 8, + 40 AS col0
----
-8
40

query I rowsort
SELECT DISTINCT + 48 + - 56 + + 43 col1
----
35

query II rowsort
SELECT DISTINCT - 72 AS col0, 36 AS col1
----
-72
36

query I rowsort
SELECT DISTINCT + 67 - + - 16 * + + 58 AS col2
----
995

query I rowsort
SELECT DISTINCT CASE 28 WHEN - 61 THEN - - ( 37 ) * + 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT + 4 + + SUM( DISTINCT + - 43 ) + + 66 * 67 * - + 77 AS col0
----
-340533

skipif mysql # not compatible
query I rowsort label-9159
SELECT + 4 + + SUM ( DISTINCT + - 43 ) + + 66 * 67 * - + 77 AS col0
----
-340533

query I rowsort
SELECT + - 29 * - 70 AS col1
----
2030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9161
SELECT + + 60 + COUNT( * ) * + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT + + 60 + COUNT ( * ) * + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 83 + - ( + 5 ) + + 81 * + - 70
----
-5592

query I rowsort
SELECT ALL 95 - - 68
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT - ( MAX( ALL 6 ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9164
SELECT - ( MAX ( ALL 6 ) ) AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9165
SELECT + 53 + + CAST( 23 AS SIGNED ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9165
SELECT + 53 + + CAST ( 23 AS INTEGER ) AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9166
SELECT ALL COALESCE ( MAX( + 45 ), CAST( 43 AS SIGNED ) )
----
45

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL COALESCE ( MAX ( + 45 ), CAST ( 43 AS INTEGER ) )
----
45

query II rowsort
SELECT - 70 * 5 col0, + 76 * + 43 * 19 col0
----
-350
62092

query II rowsort
SELECT + ( + 80 ), 58 AS col1
----
80
58

query II rowsort
SELECT ( + 41 ) col0, + 60 AS col2
----
41
60

query I rowsort
SELECT + 34 * + 82 * - 87
----
-242556

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT + 93 + 73 - + 77 * 36 - + + MIN( + + 1 ) + + + 11 * 60 AS col1
----
-1947

skipif mysql # not compatible
query I rowsort label-9171
SELECT + 93 + 73 - + 77 * 36 - + + MIN ( + + 1 ) + + + 11 * 60 AS col1
----
-1947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9172
SELECT - CASE + 19 WHEN 50 THEN NULL WHEN - + 36 THEN 87 ELSE - - 77 END * - + CAST( NULL AS SIGNED ) + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT - CASE + 19 WHEN 50 THEN NULL WHEN - + 36 THEN 87 ELSE - - 77 END * - + CAST ( NULL AS INTEGER ) + + 79
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9173
SELECT + 11 * + - COUNT( + + 36 ) * - - 27 + + 10 DIV - 30 - 27 col1
----
-324

skipif mysql # not compatible
query I rowsort label-9173
SELECT + 11 * + - COUNT ( + + 36 ) * - - 27 + + 10 / - 30 - 27 col1
----
-324

query I rowsort
SELECT - 75 + 15 * 58 + 42 AS col1
----
837

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

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

query I rowsort
SELECT ALL ( + 55 ) * + 71 + + 39 * - - 80
----
7025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9177
SELECT - 80 * + 41 * + 65 AS col2, + CAST( NULL AS SIGNED )
----
-213200
NULL

skipif mysql # not compatible
query II rowsort label-9177
SELECT - 80 * + 41 * + 65 AS col2, + CAST ( NULL AS INTEGER )
----
-213200
NULL

query I rowsort
SELECT DISTINCT + 7 * 41 + - - CASE + 60 WHEN - 32 / + 66 THEN - 31 - 67 * 34 * - 73 + + 86 - + 56 END + - + 19 col0
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 18, + 13, + 42 ) AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9180
SELECT DISTINCT 1 * + CAST( NULL AS SIGNED ) + - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT 1 * + CAST ( NULL AS INTEGER ) + - 91 AS col2
----
NULL

query I rowsort
SELECT - + 60 - 20 + - 45 AS col2
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT ALL 83 * 23 + - NULLIF ( - + ( - COUNT( * ) ), 64 )
----
1908

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL 83 * 23 + - NULLIF ( - + ( - COUNT ( * ) ), 64 )
----
1908

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT - 8 + - 10 DIV COUNT( * ) + COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-9183
SELECT - 8 + - 10 / COUNT ( * ) + COUNT ( * ) AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9184
SELECT ALL 52 DIV + COUNT( * ) AS col2, - 19 * - + 35 * + - 92
----
52
-61180

skipif mysql # not compatible
query II rowsort label-9184
SELECT ALL 52 / + COUNT ( * ) AS col2, - 19 * - + 35 * + - 92
----
52
-61180

onlyif mysql # aggregate syntax: 
query II rowsort label-9185
SELECT - COUNT( * ) + - - 52 AS col1, + 68 - - - CASE - 98 WHEN + 69 THEN - 51 * + ( 95 ) + - 36 END AS col0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-9185
SELECT - COUNT ( * ) + - - 52 AS col1, + 68 - - - CASE - 98 WHEN + 69 THEN - 51 * + ( 95 ) + - 36 END AS col0
----
51
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9186
SELECT ALL + 11 * + - 5 - + - 94 * - + 78 - + 37, - CAST( - 80 AS SIGNED ) AS col2
----
-7424
80

skipif mysql # not compatible
query II rowsort label-9186
SELECT ALL + 11 * + - 5 - + - 94 * - + 78 - + 37, - CAST ( - 80 AS INTEGER ) AS col2
----
-7424
80

query I rowsort
SELECT DISTINCT + CASE 20 WHEN - 26 THEN - 93 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9188
SELECT - ( 32 ), NULLIF ( 50, - + 78 ) + + CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col2
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-9188
SELECT - ( 32 ), NULLIF ( 50, - + 78 ) + + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col2
----
-32
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9189
SELECT DISTINCT 37 * MAX( ALL - + 59 ) * 43 DIV + 57 + + 23 * + COALESCE ( - + 8, + + 3, + COUNT( * ) * COUNT( * ), MIN( + + 18 ) ) * - + COUNT( * ) + 16 + - ( + 17 ) AS col1
----
-1463

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT 37 * MAX ( ALL - + 59 ) * 43 / + 57 + + 23 * + COALESCE ( - + 8, + + 3, + COUNT ( * ) * COUNT ( * ), MIN ( + + 18 ) ) * - + COUNT ( * ) + 16 + - ( + 17 ) AS col1
----
-1463

query I rowsort
SELECT - + 14 * + 93 col0
----
-1302

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT - 45 * + + MIN( - 94 ) col0
----
4230

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT - 45 * + + MIN ( - 94 ) col0
----
4230

query I rowsort
SELECT ALL - 34 * 55 + + 78 + + + 85
----
-1707

query II rowsort
SELECT DISTINCT 14 AS col1, 34 AS col2
----
14
34

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

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL SUM ( - - 12 )
----
12

query II rowsort
SELECT ALL 67, - 77 AS col2
----
67
-77

query I rowsort
SELECT + 47 * - 75
----
-3525

query I rowsort
SELECT + 17 - 1 AS col0
----
16

query I rowsort
SELECT ALL 88 + - - 41 + + 31 * - 20
----
-491

query I rowsort
SELECT + 93 * + - 86
----
-7998

onlyif mysql # DIV for integer division: 
query I rowsort label-9200
SELECT 16 DIV 30
----
0

skipif mysql # not compatible
query I rowsort label-9200
SELECT 16 / 30
----
0

query II rowsort
SELECT + 89, 62 AS col1
----
89
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL CASE + 48 WHEN 45 THEN - 58 WHEN - + 90 THEN NULL END + 79 + + ( - NULLIF ( + - 54, 84 ) ) * + NULLIF ( 43, + COUNT( * ) ) + 58 + 63 + + + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL CASE + 48 WHEN 45 THEN - 58 WHEN - + 90 THEN NULL END + 79 + + ( - NULLIF ( + - 54, 84 ) ) * + NULLIF ( 43, + COUNT ( * ) ) + 58 + 63 + + + 35 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9204
SELECT 51 + - 33 - + 52 + 78 DIV + + 44 col2
----
-33

skipif mysql # not compatible
query I rowsort label-9204
SELECT 51 + - 33 - + 52 + 78 / + + 44 col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-9205
SELECT DISTINCT - 93 AS col1, + MAX( DISTINCT + 37 )
----
-93
37

skipif mysql # not compatible
query II rowsort label-9205
SELECT DISTINCT - 93 AS col1, + MAX ( DISTINCT + 37 )
----
-93
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - + COUNT( ALL + 98 ) * - 67 + + - COUNT( * ) + 6 * + 68 AS col1
----
474

skipif mysql # not compatible
query I rowsort label-9206
SELECT - + COUNT ( ALL + 98 ) * - 67 + + - COUNT ( * ) + 6 * + 68 AS col1
----
474

query II rowsort
SELECT + 31 * + 32 * - + 12, + 80 + - + ( + + 35 ) AS col2
----
-11904
45

query II rowsort
SELECT + + 99 AS col0, 21 AS col2
----
99
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT 43 + - COUNT( ALL - 59 )
----
42

skipif mysql # not compatible
query I rowsort label-9209
SELECT 43 + - COUNT ( ALL - 59 )
----
42

query I rowsort
SELECT + 44 * + 91 AS col2
----
4004

onlyif mysql # aggregate syntax: 
query II rowsort label-9211
SELECT + - 45 AS col2, 2 + + COUNT( ALL - + 96 ) * 44 AS col1
----
-45
46

skipif mysql # not compatible
query II rowsort label-9211
SELECT + - 45 AS col2, 2 + + COUNT ( ALL - + 96 ) * 44 AS col1
----
-45
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT 58 - + 82 + - - ( - 74 ) * - + 88 + COUNT( - 36 )
----
6489

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT 58 - + 82 + - - ( - 74 ) * - + 88 + COUNT ( - 36 )
----
6489

query II rowsort
SELECT + 75 col2, 99
----
75
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT - COUNT( * ) * SUM( DISTINCT - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT - COUNT ( * ) * SUM ( DISTINCT - 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL - - COUNT( ALL - 75 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL - - COUNT ( ALL - 75 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL - + COUNT( - ( + 22 ) ) - + 58 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL - + COUNT ( - ( + 22 ) ) - + 58 AS col0
----
-59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT + ( + 63 ) * 7 * + MIN( - 85 ) * + 65 - - COUNT( * ) AS col1
----
-2436524

skipif mysql # not compatible
query I rowsort label-9218
SELECT + ( + 63 ) * 7 * + MIN ( - 85 ) * + 65 - - COUNT ( * ) AS col1
----
-2436524

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT + COUNT( * ) * 46 - - 72 + ( + + 70 ) AS col1
----
188

skipif mysql # not compatible
query I rowsort label-9219
SELECT + COUNT ( * ) * 46 - - 72 + ( + + 70 ) AS col1
----
188

onlyif mysql # DIV for integer division: 
query I rowsort label-9220
SELECT DISTINCT + NULLIF ( + + COALESCE ( + + 39, + 21 * + 70, - 59 DIV 39 ), - 31 DIV 35 + + 76 - + - ( 4 ) + + 59 + 86 + NULLIF ( - 97, + 29 ) )
----
39

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT + NULLIF ( + + COALESCE ( + + 39, + 21 * + 70, - 59 / 39 ), - 31 / 35 + + 76 - + - ( 4 ) + + 59 + 86 + NULLIF ( - 97, + 29 ) )
----
39

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9222
SELECT ALL 55 col0, SUM( - 73 ) AS col0
----
55
-73

skipif mysql # not compatible
query II rowsort label-9222
SELECT ALL 55 col0, SUM ( - 73 ) AS col0
----
55
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT 10 - - CASE + 74 WHEN + 48 THEN NULL WHEN - 2 THEN NULL ELSE 93 * - COUNT( * ) + - 78 + + MAX( DISTINCT 89 ) + - 44 END * + 46 col0
----
-5786

skipif mysql # not compatible
query I rowsort label-9223
SELECT 10 - - CASE + 74 WHEN + 48 THEN NULL WHEN - 2 THEN NULL ELSE 93 * - COUNT ( * ) + - 78 + + MAX ( DISTINCT 89 ) + - 44 END * + 46 col0
----
-5786

query I rowsort
SELECT 20 * 77 AS col0
----
1540

onlyif mysql # aggregate syntax: 
query II rowsort label-9225
SELECT ALL ( + 12 ) * + MAX( + - 30 ) AS col2, - 50 * - - 83 + + COUNT( * ) + ( 21 )
----
-360
-4128

skipif mysql # not compatible
query II rowsort label-9225
SELECT ALL ( + 12 ) * + MAX ( + - 30 ) AS col2, - 50 * - - 83 + + COUNT ( * ) + ( 21 )
----
-360
-4128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9226
SELECT 0 + + CAST( NULL AS SIGNED ) - + + COUNT( * ) * - - 11, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9226
SELECT 0 + + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) * - - 11, + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9227
SELECT COALESCE ( - CAST( - 63 AS SIGNED ), - 5 ) DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-9227
SELECT COALESCE ( - CAST ( - 63 AS INTEGER ), - 5 ) / + 66
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9228
SELECT COALESCE ( 56, + - 85 * + 16 DIV + 26 - + 66 ) - - 8 AS col2, - 66 + + 49 * + - 94 AS col0
----
64
-4672

skipif mysql # not compatible
query II rowsort label-9228
SELECT COALESCE ( 56, + - 85 * + 16 / + 26 - + 66 ) - - 8 AS col2, - 66 + + 49 * + - 94 AS col0
----
64
-4672

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

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL + MAX ( DISTINCT + 46 ) + - ( + 72 ) AS col1
----
-26

query I rowsort
SELECT DISTINCT - 5 + - + 62
----
-67

query I rowsort
SELECT 44 + - - 97
----
141

query I rowsort
SELECT ( + 88 ) + - 72
----
16

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

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

query I rowsort
SELECT 34 * 50 * - + 66 AS col1
----
-112200

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - 28 + COUNT( * ) * 28 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9235
SELECT - 28 + COUNT ( * ) * 28 + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 68 * - 19 + - 58
----
1234

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9237
SELECT ALL - 63 * + CAST( + 34 AS SIGNED ) / + + 99 * - CASE - 66 WHEN - 66 THEN NULL WHEN + + 15 THEN - CAST( NULL AS SIGNED ) * - 56 END * + 76 + + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL - 63 * + CAST ( + 34 AS INTEGER ) / + + 99 * - CASE - 66 WHEN - 66 THEN NULL WHEN + + 15 THEN - CAST ( NULL AS INTEGER ) * - 56 END * + 76 + + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9238
SELECT + CAST( NULL AS SIGNED ) * + - 58 * 28 + - - 14 + COUNT( * ) * 15 + - - 77 + + + 24 + 77 / - + 59 * + 43 + 31 + + 72 * 58 * 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9238
SELECT + CAST ( NULL AS INTEGER ) * + - 58 * 28 + - - 14 + COUNT ( * ) * 15 + - - 77 + + + 24 + 77 / - + 59 * + 43 + 31 + + 72 * 58 * 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL + COUNT( * ) * - 13 + - 58
----
-71

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL + COUNT ( * ) * - 13 + - 58
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9240
SELECT + 4 * MIN( COALESCE ( CAST( NULL AS SIGNED ), 83 / CAST( NULL AS DECIMAL ) ) ) * + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT + 4 * MIN ( COALESCE ( CAST ( NULL AS INTEGER ), 83 / CAST ( NULL AS REAL ) ) ) * + 1 AS col1
----
NULL

query II rowsort
SELECT 70 + - COALESCE ( + - 16, 82 ), + 28 AS col2
----
86
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT 29 / - 39 * 16 + - ( + + 79 ) * + 53 * - - CASE + - AVG ( + 98 ) WHEN ( + 62 ) + + AVG ( ALL 83 ) + - 70 + + 63 * + 72 - + ( + 53 ) THEN NULL WHEN - - 67 / - 53 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT 29 / - 39 * 16 + - ( + + 79 ) * + 53 * - - CASE + - AVG ( + 98 ) WHEN ( + 62 ) + + AVG ( ALL 83 ) + - 70 + + 63 * + 72 - + ( + 53 ) THEN NULL WHEN - - 67 / - 53 THEN - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT 60 - 98
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-9244
SELECT DISTINCT + 36 DIV 16 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT + 36 / 16 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9245
SELECT 9 DIV + - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9245
SELECT 9 / + - 45 AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT ( 95 ) + COALESCE ( + - 14, - SUM( + 31 ), + 80 - - 67 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9247
SELECT ( 95 ) + COALESCE ( + - 14, - SUM ( + 31 ), + 80 - - 67 ) AS col0
----
81

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

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

query I rowsort
SELECT + 20 + COALESCE ( - ( - - 15 ), 45 ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9250
SELECT DISTINCT + CASE COUNT( - 33 ) WHEN + - 17 THEN + + 97 / 55 * 80 ELSE NULL END * + COUNT( * ) + + - COUNT( * ) AS col1, + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9250
SELECT DISTINCT + CASE COUNT ( - 33 ) WHEN + - 17 THEN + + 97 / 55 * 80 ELSE NULL END * + COUNT ( * ) + + - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER )
----
NULL
NULL

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

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

query I rowsort
SELECT 29 + - 22 col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT ALL + 91 + - NULLIF ( COUNT( * ), - + 99 )
----
90

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL + 91 + - NULLIF ( COUNT ( * ), - + 99 )
----
90

query I rowsort
SELECT 35 + - 12 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT - 0 + COUNT( * ) + + 78 + - 36 + - 88 + - - MAX( ALL - 70 ) * + CAST( NULL AS SIGNED ) * - - 65 * + 28 * - 80 * - 83 * - + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT - 0 + COUNT ( * ) + + 78 + - 36 + - 88 + - - MAX ( ALL - 70 ) * + CAST ( NULL AS INTEGER ) * - - 65 * + 28 * - 80 * - 83 * - + 98 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9257
SELECT - 70 * + CAST( + 77 AS SIGNED )
----
-5390

skipif mysql # not compatible
query I rowsort label-9257
SELECT - 70 * + CAST ( + 77 AS INTEGER )
----
-5390

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT - COUNT( DISTINCT - - 85 ) + + 49
----
48

skipif mysql # not compatible
query I rowsort label-9258
SELECT - COUNT ( DISTINCT - - 85 ) + + 49
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL - ( - 67 ) + MIN( + 60 ) - + + COUNT( * ) + 7 - - 52
----
185

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL - ( - 67 ) + MIN ( + 60 ) - + + COUNT ( * ) + 7 - - 52
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT - COUNT( * ) * + - NULLIF ( + - 17, - 31 + + 50 * NULLIF ( + 79, - 59 ) / + 7 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-9260
SELECT - COUNT ( * ) * + - NULLIF ( + - 17, - 31 + + 50 * NULLIF ( + 79, - 59 ) / + 7 ) AS col1
----
-17

query I rowsort
SELECT ALL + 19 * + 73
----
1387

query I rowsort
SELECT DISTINCT - 74 - + 79 AS col2
----
-153

query I rowsort
SELECT DISTINCT - 2 * 68 AS col0
----
-136

query I rowsort
SELECT - 74 * + + 4
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT ALL + - COUNT( DISTINCT - 34 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL + - COUNT ( DISTINCT - 34 ) AS col1
----
-1

query I rowsort
SELECT - + 28 * + 84 * - + 45
----
105840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT + - COALESCE ( COUNT( * ), 37 ) * ( + 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT + - COALESCE ( COUNT ( * ), 37 ) * ( + 27 ) AS col0
----
-27

query I rowsort
SELECT - 32 * - 73 + 42 - - 72 + + - 91 + - 20 AS col1
----
2339

query I rowsort
SELECT + NULLIF ( - 67, + 57 / - 41 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT - COUNT( * ) + + 29 - + 52 + - 64 * + 39 + + 45 * + COUNT( * ) * - 13
----
-3105

skipif mysql # not compatible
query I rowsort label-9271
SELECT - COUNT ( * ) + + 29 - + 52 + - 64 * + 39 + + 45 * + COUNT ( * ) * - 13
----
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT + - 1 * + COUNT( * ) * + COUNT( * ) * + - 86 + + 36
----
122

skipif mysql # not compatible
query I rowsort label-9272
SELECT + - 1 * + COUNT ( * ) * + COUNT ( * ) * + - 86 + + 36
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT + COUNT( - 15 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9273
SELECT + COUNT ( - 15 ) AS col0
----
1

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

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

query I rowsort
SELECT ALL + 40 * 46 + - 38
----
1802

query I rowsort
SELECT ALL - 57 * - 99 AS col2
----
5643

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL + NULLIF ( + COUNT( * ), SUM( ALL 33 ) ) * + - 59 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL + NULLIF ( + COUNT ( * ), SUM ( ALL 33 ) ) * + - 59 AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9278
SELECT + NULLIF ( + - COUNT( - 77 ), + 84 - 42 - CAST( - - 99 AS DECIMAL ) ) * - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9278
SELECT + NULLIF ( + - COUNT ( - 77 ), + 84 - 42 - CAST ( - - 99 AS REAL ) ) * - + COUNT ( * )
----
1

query I rowsort
SELECT + + 77 + - 13
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9280
SELECT - 68, - COUNT( * ) DIV + + 72 * + 13 AS col2
----
-68
0

skipif mysql # not compatible
query II rowsort label-9280
SELECT - 68, - COUNT ( * ) / + + 72 * + 13 AS col2
----
-68
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT + MIN( + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-9281
SELECT + MIN ( + 65 )
----
65

query I rowsort
SELECT 74 * - 5 * 62 - - 85 AS col0
----
-22855

query I rowsort
SELECT + 94 * + 51 AS col1
----
4794

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9284
SELECT ALL 65 DIV COALESCE ( - - 52, + ( - 43 ), - - 1 ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9284
SELECT ALL 65 / COALESCE ( - - 52, + ( - 43 ), - - 1 ) AS col0, COUNT ( * )
----
1
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9286
SELECT - 76 DIV + 22 col0
----
-3

skipif mysql # not compatible
query I rowsort label-9286
SELECT - 76 / + 22 col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9287
SELECT ALL + 60 + + 98 DIV 87 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL + 60 + + 98 / 87 AS col2
----
61

query I rowsort
SELECT + 64 - - + 67
----
131

query II rowsort
SELECT ALL 75 col0, 65
----
75
65

query I rowsort
SELECT + 28 + 38 - + + 67 col2
----
-1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9292
SELECT - 41 AS col2, + 54 * - + COUNT( * )
----
-41
-54

skipif mysql # not compatible
query II rowsort label-9292
SELECT - 41 AS col2, + 54 * - + COUNT ( * )
----
-41
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL NULLIF ( 34, COUNT( * ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL NULLIF ( 34, COUNT ( * ) ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT + COUNT( ALL - - 79 ) + 62 + 52 * 34 col0
----
1831

skipif mysql # not compatible
query I rowsort label-9294
SELECT + COUNT ( ALL - - 79 ) + 62 + 52 * 34 col0
----
1831

query I rowsort
SELECT - 57 + - - 61 AS col1
----
4

query I rowsort
SELECT DISTINCT 21 * - 83
----
-1743

query II rowsort
SELECT ALL ( - 68 ) col1, 9 AS col1
----
-68
9

query I rowsort
SELECT - 50 + NULLIF ( - ( + 83 ), - 69 * + - 95 * - 8 ) + + 50 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT - COUNT( ALL + 71 ) + - MIN( DISTINCT - 28 ) * 36 * + 48 col0
----
48383

skipif mysql # not compatible
query I rowsort label-9299
SELECT - COUNT ( ALL + 71 ) + - MIN ( DISTINCT - 28 ) * 36 * + 48 col0
----
48383

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT - + 91 DIV - - 93
----
0

skipif mysql # not compatible
query I rowsort label-9301
SELECT - + 91 / - - 93
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9302
SELECT + - 15 DIV + COUNT( * ) + + COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-9302
SELECT + - 15 / + COUNT ( * ) + + COUNT ( * ) AS col1
----
-14

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-9304
SELECT - 90 DIV - 58 + - ( 48 ), 72 AS col0
----
-47
72

skipif mysql # not compatible
query II rowsort label-9304
SELECT - 90 / - 58 + - ( 48 ), 72 AS col0
----
-47
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9305
SELECT - - 30 DIV - 28 + + + 1 * - - COUNT( * ) + 71 - + 27 * + 57 col0, 2 * + CAST( + - 74 AS SIGNED ) AS col0
----
-1468
-148

skipif mysql # not compatible
query II rowsort label-9305
SELECT - - 30 / - 28 + + + 1 * - - COUNT ( * ) + 71 - + 27 * + 57 col0, 2 * + CAST ( + - 74 AS INTEGER ) AS col0
----
-1468
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9306
SELECT + 22 * - COUNT( * ) + - CAST( + CASE - - 16 WHEN - 29 - + 87 THEN NULL WHEN 36 THEN + - 90 END AS SIGNED ) * + NULLIF ( - - 45, 64 ) AS col2, 69
----
NULL
69

skipif mysql # not compatible
query II rowsort label-9306
SELECT + 22 * - COUNT ( * ) + - CAST ( + CASE - - 16 WHEN - 29 - + 87 THEN NULL WHEN 36 THEN + - 90 END AS INTEGER ) * + NULLIF ( - - 45, 64 ) AS col2, 69
----
NULL
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9307
SELECT ALL - COUNT( * ) DIV - + 2 * + 95 * + 30 * - 83 + + 87 * NULLIF ( - 59, + MIN( DISTINCT - - 92 ) DIV + COUNT( - + 67 ) + + - 37 ) * - 14 + + - 12
----
71850

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL - COUNT ( * ) / - + 2 * + 95 * + 30 * - 83 + + 87 * NULLIF ( - 59, + MIN ( DISTINCT - - 92 ) / + COUNT ( - + 67 ) + + - 37 ) * - 14 + + - 12
----
71850

onlyif mysql # DIV for integer division: 
query I rowsort label-9308
SELECT ALL - 50 DIV - + 33 + - 82 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL - 50 / - + 33 + - 82 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9309
SELECT + 1 col2, COUNT( * ) + - 92 + - 90 - 54
----
1
-235

skipif mysql # not compatible
query II rowsort label-9309
SELECT + 1 col2, COUNT ( * ) + - 92 + - 90 - 54
----
1
-235

query II rowsort
SELECT ALL + - 49 AS col2, + 24 * 63 AS col0
----
-49
1512

query I rowsort
SELECT ALL + - 32 col1
----
-32

query I rowsort
SELECT + + 89 * - 18 + 57 AS col2
----
-1545

query I rowsort
SELECT - - 78 + + 32 AS col0
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9314
SELECT + 24 AS col0, - 42 + + COUNT( * ) * + COUNT( * ) DIV + + 67 + - MIN( ALL 15 ) + - - 26 AS col1
----
24
-31

skipif mysql # not compatible
query II rowsort label-9314
SELECT + 24 AS col0, - 42 + + COUNT ( * ) * + COUNT ( * ) / + + 67 + - MIN ( ALL 15 ) + - - 26 AS col1
----
24
-31

query I rowsort
SELECT + 55 + - 84
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9316
SELECT + COUNT( * ) - + + 76 - + SUM( 10 ) * + + COUNT( ALL - 60 ) * - 73 * 5 + - 34 DIV + SUM( - + ( ( + 46 ) ) ) - - MAX( ALL - 82 )
----
3493

skipif mysql # not compatible
query I rowsort label-9316
SELECT + COUNT ( * ) - + + 76 - + SUM ( 10 ) * + + COUNT ( ALL - 60 ) * - 73 * 5 + - 34 / + SUM ( - + ( ( + 46 ) ) ) - - MAX ( ALL - 82 )
----
3493

query I rowsort
SELECT + - CASE - 53 WHEN + - 17 / - - NULLIF ( + 64, 61 + - 96 ) THEN 16 WHEN 99 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9318
SELECT COUNT( * ) * + - 66 + 21 + + - 49 AS col0, + 87
----
-94
87

skipif mysql # not compatible
query II rowsort label-9318
SELECT COUNT ( * ) * + - 66 + 21 + + - 49 AS col0, + 87
----
-94
87

query I rowsort
SELECT - 38 - - 51
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9320
SELECT DISTINCT - CASE - COALESCE ( + CAST( - - COALESCE ( - + 50, COUNT( * ) ) AS SIGNED ), + 91 * - - 13 - 0 + - 91, - - 79 ) WHEN + 6 THEN 21 WHEN - COUNT( * ) * + 4 + - 89 THEN 60 WHEN - 34 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT - CASE - COALESCE ( + CAST ( - - COALESCE ( - + 50, COUNT ( * ) ) AS INTEGER ), + 91 * - - 13 - 0 + - 91, - - 79 ) WHEN + 6 THEN 21 WHEN - COUNT ( * ) * + 4 + - 89 THEN 60 WHEN - 34 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT 35 + - - CASE 90 WHEN + 13 THEN NULL ELSE - - 56 + - 39 * + 26 * 67 END + + 22 * + COUNT( * ) AS col2
----
-67825

skipif mysql # not compatible
query I rowsort label-9321
SELECT 35 + - - CASE 90 WHEN + 13 THEN NULL ELSE - - 56 + - 39 * + 26 * 67 END + + 22 * + COUNT ( * ) AS col2
----
-67825

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT 65 * - - SUM( - 38 ) + 80
----
-2390

skipif mysql # not compatible
query I rowsort label-9322
SELECT 65 * - - SUM ( - 38 ) + 80
----
-2390

query I rowsort
SELECT ALL 23 * 94
----
2162

onlyif mysql # DIV for integer division: 
query II rowsort label-9324
SELECT 25 DIV - 83 AS col0, - 69 * + 54
----
0
-3726

skipif mysql # not compatible
query II rowsort label-9324
SELECT 25 / - 83 AS col0, - 69 * + 54
----
0
-3726

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT COUNT( - 63 ) + + 14 - NULLIF ( ( + 6 ), - + 97 + 71 * 13 )
----
9

skipif mysql # not compatible
query I rowsort label-9325
SELECT COUNT ( - 63 ) + + 14 - NULLIF ( ( + 6 ), - + 97 + 71 * 13 )
----
9

query II rowsort
SELECT 50 * + 52 AS col1, - 74 AS col0
----
2600
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9327
SELECT DISTINCT 10 DIV + + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT 10 / + + 60 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9328
SELECT DISTINCT COUNT( * ) - - CASE + 28 WHEN + 68 THEN - CAST( NULL AS SIGNED ) WHEN - 73 THEN + - 76 WHEN + + 68 THEN + 0 * - - COALESCE ( ( - - COUNT( * ) ), + ( + 95 ) ) + ( - 41 ) * - 88 END + - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT COUNT ( * ) - - CASE + 28 WHEN + 68 THEN - CAST ( NULL AS INTEGER ) WHEN - 73 THEN + - 76 WHEN + + 68 THEN + 0 * - - COALESCE ( ( - - COUNT ( * ) ), + ( + 95 ) ) + ( - 41 ) * - 88 END + - - 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9329
SELECT MAX( - - CAST( 64 AS SIGNED ) ) * - MAX( DISTINCT + 96 )
----
-6144

skipif mysql # not compatible
query I rowsort label-9329
SELECT MAX ( - - CAST ( 64 AS INTEGER ) ) * - MAX ( DISTINCT + 96 )
----
-6144

query I rowsort
SELECT ALL + 57 * - - 73
----
4161

query II rowsort
SELECT 85 * 5 * - 32, 70 AS col0
----
-13600
70

query II rowsort
SELECT 4 * + 59 AS col2, 92 + - 65 AS col1
----
236
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT COUNT( 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9333
SELECT COUNT ( 42 ) AS col0
----
1

query III rowsort
SELECT - 23 * - 73 AS col0, - 78 AS col2, + - 43 - - 37 AS col0
----
1679
-78
-6

query II rowsort
SELECT 37 - - 62, - ( + 32 ) AS col2
----
99
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-9336
SELECT - 6 + + + COUNT( * ), + 20 * - 98 * 19 + 47 AS col2
----
-5
-37193

skipif mysql # not compatible
query II rowsort label-9336
SELECT - 6 + + + COUNT ( * ), + 20 * - 98 * 19 + 47 AS col2
----
-5
-37193

onlyif mysql # aggregate syntax: 
query II rowsort label-9337
SELECT DISTINCT + + COUNT( * ) + - 10 AS col2, NULLIF ( - 97, + 88 ) * + 33 + COUNT( * )
----
-9
-3200

skipif mysql # not compatible
query II rowsort label-9337
SELECT DISTINCT + + COUNT ( * ) + - 10 AS col2, NULLIF ( - 97, + 88 ) * + 33 + COUNT ( * )
----
-9
-3200

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT ALL 20 * - COUNT( * ) - + - 76
----
56

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL 20 * - COUNT ( * ) - + - 76
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9339
SELECT DISTINCT 38 + - 38 * 85 AS col2, 46 + NULLIF ( - 84, + + 77 * - 18 + - + CAST( NULL AS SIGNED ) * NULLIF ( + 86, + 75 * + 96 / - CAST( + COUNT( * ) AS DECIMAL ) ) / 53 - + - 97 * 41 + 47 ) col2
----
-3192
-38

skipif mysql # not compatible
query II rowsort label-9339
SELECT DISTINCT 38 + - 38 * 85 AS col2, 46 + NULLIF ( - 84, + + 77 * - 18 + - + CAST ( NULL AS INTEGER ) * NULLIF ( + 86, + 75 * + 96 / - CAST ( + COUNT ( * ) AS REAL ) ) / 53 - + - 97 * 41 + 47 ) col2
----
-3192
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9340
SELECT DISTINCT - 88 + - - 82 + + ( + - 71 ) + 40 + - 66 * - 13 - - COALESCE ( 92, + 12 * - COUNT( * ), - 68 * - 2, + 49 * 20 + - 87 * + COUNT( * ) + 49 ) * + ( - + ( + - ( - 7 ) ) ) * + 53 + 58 + - COUNT( * ) + 24 - ( 74 ) + + 88 - + + 71 AS col0, 31
----
-33287
31

skipif mysql # not compatible
query II rowsort label-9340
SELECT DISTINCT - 88 + - - 82 + + ( + - 71 ) + 40 + - 66 * - 13 - - COALESCE ( 92, + 12 * - COUNT ( * ), - 68 * - 2, + 49 * 20 + - 87 * + COUNT ( * ) + 49 ) * + ( - + ( + - ( - 7 ) ) ) * + 53 + 58 + - COUNT ( * ) + 24 - ( 74 ) + + 88 - + + 71 AS col0, 31
----
-33287
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9341
SELECT - CASE + - 70 WHEN - 75 THEN NULL WHEN + ( 6 ) THEN NULL ELSE - - COUNT( * ) DIV - 43 + + 8 * + 35 + 40 END AS col1
----
-320

skipif mysql # not compatible
query I rowsort label-9341
SELECT - CASE + - 70 WHEN - 75 THEN NULL WHEN + ( 6 ) THEN NULL ELSE - - COUNT ( * ) / - 43 + + 8 * + 35 + 40 END AS col1
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT SUM( - 14 ) * - 22 * + 42 + - 31 * + 96 + + NULLIF ( + 15, - 40 ) - 45 + 78 * - + 14 AS col2
----
8838

skipif mysql # not compatible
query I rowsort label-9342
SELECT SUM ( - 14 ) * - 22 * + 42 + - 31 * + 96 + + NULLIF ( + 15, - 40 ) - 45 + 78 * - + 14 AS col2
----
8838

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9343
SELECT + 13 * + 31 + - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * - + CAST( 17 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT + 13 * + 31 + - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - + CAST ( 17 AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - + 99 + + 23 AS col0
----
-76

query I rowsort
SELECT + - 63 col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9346
SELECT ALL - 72 - 73 + 79 + + + CASE + 1 WHEN - + COUNT( * ) THEN + + CAST( - - 45 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL - 72 - 73 + 79 + + + CASE + 1 WHEN - + COUNT ( * ) THEN + + CAST ( - - 45 AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT 29 * - 58
----
-1682

onlyif mysql # DIV for integer division: 
query I rowsort label-9348
SELECT 35 DIV + 99 * + + 61
----
0

skipif mysql # not compatible
query I rowsort label-9348
SELECT 35 / + 99 * + + 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL - COUNT( ALL - + 43 ) - + 8
----
-9

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL - COUNT ( ALL - + 43 ) - + 8
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9350
SELECT 44 AS col1, - COUNT( * ) + - 98 DIV - + 13 + + 86 col1
----
44
92

skipif mysql # not compatible
query II rowsort label-9350
SELECT 44 AS col1, - COUNT ( * ) + - 98 / - + 13 + + 86 col1
----
44
92

query I rowsort
SELECT - 2 * 30 - + - 48 + - 93 * + 4
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT 28 * - + MAX( - 87 ) AS col1
----
2436

skipif mysql # not compatible
query I rowsort label-9352
SELECT 28 * - + MAX ( - 87 ) AS col1
----
2436

query II rowsort
SELECT + 25 col2, - 26 col0
----
25
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9354
SELECT 35 + 15 + 43 + + 12 + + 15 * - - 48 * + - 65 DIV + COUNT( * ) + - 23 AS col0, ( SUM( ALL 6 ) )
----
-46718
6

skipif mysql # not compatible
query II rowsort label-9354
SELECT 35 + 15 + 43 + + 12 + + 15 * - - 48 * + - 65 / + COUNT ( * ) + - 23 AS col0, ( SUM ( ALL 6 ) )
----
-46718
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT 70 * COUNT( - ( - 89 ) )
----
70

skipif mysql # not compatible
query I rowsort label-9355
SELECT 70 * COUNT ( - ( - 89 ) )
----
70

query II rowsort
SELECT 60 col0, 92 AS col1
----
60
92

query I rowsort
SELECT 44 + - 0 AS col1
----
44

query I rowsort
SELECT 54 * + - ( 80 ) * - 2 + + - 25 + + 68 * + - 16 * 3 * - 7 - + - 96 AS col1
----
31559

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL 69 * - - 11 * + - COALESCE ( COUNT( * ), + + 66 )
----
-759

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL 69 * - - 11 * + - COALESCE ( COUNT ( * ), + + 66 )
----
-759

query I rowsort
SELECT ALL 21 * + ( 25 )
----
525

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9362
SELECT MIN( - 41 ) DIV + 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9362
SELECT MIN ( - 41 ) / + 46 AS col1
----
0

query I rowsort
SELECT 59 + + 91 AS col1
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9364
SELECT 91 DIV COUNT( * ) + - - MAX( DISTINCT + 0 ) + + 74 + + 5 AS col2
----
170

skipif mysql # not compatible
query I rowsort label-9364
SELECT 91 / COUNT ( * ) + - - MAX ( DISTINCT + 0 ) + + 74 + + 5 AS col2
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT DISTINCT + SUM( ALL + 48 ) + COUNT( * ) + 1 * - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT + SUM ( ALL + 48 ) + COUNT ( * ) + 1 * - COUNT ( * )
----
48

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

skipif mysql # not compatible
query I rowsort label-9366
SELECT - + MAX ( - 61 )
----
61

query I rowsort
SELECT ALL + NULLIF ( - + 74, - ( - - 81 ) )
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT DISTINCT 13 + 31 DIV + 36 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT 13 + 31 / + 36 AS col0
----
13

query I rowsort
SELECT 60 * - + 19 * - ( - 55 )
----
-62700

query I rowsort
SELECT DISTINCT 27 + + 4
----
31

query I rowsort
SELECT ALL + 59 + 31 AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9372
SELECT - - 77 DIV + + 96 + - + 11
----
-11

skipif mysql # not compatible
query I rowsort label-9372
SELECT - - 77 / + + 96 + - + 11
----
-11

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

query I rowsort
SELECT ALL + 7 * 90 AS col2
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL - - 91 * CASE + 13 WHEN - 30 + + + 89 + + 98 THEN - 98 + - 13 * + - COUNT( * ) * + 65 END + - COUNT( * ) - + - 70 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - - 91 * CASE + 13 WHEN - 30 + + + 89 + + 98 THEN - 98 + - 13 * + - COUNT ( * ) * + 65 END + - COUNT ( * ) - + - 70 col0
----
NULL

query I rowsort
SELECT DISTINCT 38 * + 0 AS col1
----
0

query II rowsort
SELECT DISTINCT + 34 * 42 - 67 AS col1, 61
----
1361
61

query I rowsort
SELECT - 99 * - 12 + - - 3 AS col1
----
1191

onlyif mysql # aggregate syntax: 
query II rowsort label-9379
SELECT - 17 + - - COUNT( * ), + 76 + 76 AS col1
----
-16
152

skipif mysql # not compatible
query II rowsort label-9379
SELECT - 17 + - - COUNT ( * ), + 76 + 76 AS col1
----
-16
152

query I rowsort
SELECT + 29 + + 65
----
94

query I rowsort
SELECT + 88 * + - 15
----
-1320

query I rowsort
SELECT - CASE + + 17 WHEN 46 + + + 46 * COALESCE ( 8, + ( 92 ) + - 78, + - 82 * + NULLIF ( 14, + 12 + + 51 ) * - 33 ) THEN - COALESCE ( + + 4, + 72 ) WHEN - 50 THEN NULL ELSE - ( - 35 ) END * - ( - - 89 )
----
3115

query I rowsort
SELECT - 36 * - 18 + - - 48
----
696

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT - NULLIF ( COALESCE ( - COUNT( * ), - 73 ), - - 68 ) - - 90
----
91

skipif mysql # not compatible
query I rowsort label-9384
SELECT - NULLIF ( COALESCE ( - COUNT ( * ), - 73 ), - - 68 ) - - 90
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9385
SELECT COUNT( * ) * 46 + - - 25 * - ( - + 94 ) * + 78 + + - CAST( - 68 AS SIGNED ) * - 13 AS col1
----
182462

skipif mysql # not compatible
query I rowsort label-9385
SELECT COUNT ( * ) * 46 + - - 25 * - ( - + 94 ) * + 78 + + - CAST ( - 68 AS INTEGER ) * - 13 AS col1
----
182462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9386
SELECT - CASE + 95 WHEN + 96 * + COUNT( + - 16 ) THEN NULL ELSE + ( - - 38 ) * - NULLIF ( - 55, - 42 ) * - COALESCE ( - 4, 23 DIV + 91 + + 59 ) + - 54 + - 15 END + 6
----
-8285

skipif mysql # not compatible
query I rowsort label-9386
SELECT - CASE + 95 WHEN + 96 * + COUNT ( + - 16 ) THEN NULL ELSE + ( - - 38 ) * - NULLIF ( - 55, - 42 ) * - COALESCE ( - 4, 23 / + 91 + + 59 ) + - 54 + - 15 END + 6
----
-8285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9387
SELECT - CAST( NULL AS SIGNED ) + CASE + MIN( DISTINCT - 99 ) WHEN - 30 THEN + + 22 * - 3 * CAST( - 51 AS SIGNED ) END + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT - CAST ( NULL AS INTEGER ) + CASE + MIN ( DISTINCT - 99 ) WHEN - 30 THEN + + 22 * - 3 * CAST ( - 51 AS INTEGER ) END + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 12 * + - 81
----
972

query II rowsort
SELECT 39 * - 22 + 21 * 8, - 3 AS col2
----
-690
-3

query I rowsort
SELECT DISTINCT CASE - - 42 WHEN 8 * + 97 + 95 THEN 82 + 17 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL - COUNT ( * ) + - 94 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-9392
SELECT + 97 + + + COUNT( * ), 42 AS col2
----
98
42

skipif mysql # not compatible
query II rowsort label-9392
SELECT + 97 + + + COUNT ( * ), 42 AS col2
----
98
42

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

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

query I rowsort
SELECT - - NULLIF ( 46, + - 53 + 47 ) AS col1
----
46

query I rowsort
SELECT DISTINCT 53 * - - COALESCE ( + 26, + - 76 ) + 5 col2
----
1383

query I rowsort
SELECT ALL + 79 + + 23 * - 66
----
-1439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9397
SELECT ALL + - 70 DIV - 28 + + + 15 + - 92 - + COALESCE ( - - 83, + - ( - + 3 ) * - + 2, + 53 ) + + 62 DIV - - ( - 86 ) + 62 * - SUM( ALL - ( + 22 ) )
----
1206

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL + - 70 / - 28 + + + 15 + - 92 - + COALESCE ( - - 83, + - ( - + 3 ) * - + 2, + 53 ) + + 62 / - - ( - 86 ) + 62 * - SUM ( ALL - ( + 22 ) )
----
1206

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT + 68 * + 19 + + 83 + + COUNT( 46 ) AS col2
----
1376

skipif mysql # not compatible
query I rowsort label-9398
SELECT + 68 * + 19 + + 83 + + COUNT ( 46 ) AS col2
----
1376

query I rowsort
SELECT ALL - 96 * + + 4 AS col2
----
-384

query I rowsort
SELECT - 12 - - ( + NULLIF ( - 90, + 82 ) ) AS col0
----
-102

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

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

query I rowsort
SELECT + - 41 * - - 54 AS col2
----
-2214

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9403
SELECT ALL CASE + COUNT( * ) WHEN - COUNT( * ) - - COUNT( * ) * - 38 * + 43 THEN NULL WHEN + 24 * + + COUNT( * ) THEN - + 46 / - + COUNT( * ) + - AVG ( DISTINCT + + ( ( 25 ) ) ) WHEN + CAST( - 52 AS DECIMAL ) * 46 THEN - 36 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL CASE + COUNT ( * ) WHEN - COUNT ( * ) - - COUNT ( * ) * - 38 * + 43 THEN NULL WHEN + 24 * + + COUNT ( * ) THEN - + 46 / - + COUNT ( * ) + - AVG ( DISTINCT + + ( ( 25 ) ) ) WHEN + CAST ( - 52 AS REAL ) * 46 THEN - 36 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9404
SELECT DISTINCT + SUM( + 43 ) DIV NULLIF ( - 14, - 46 ) - + 53 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT + SUM ( + 43 ) / NULLIF ( - 14, - 46 ) - + 53 AS col2
----
-56

query I rowsort
SELECT + 71 * + 75 * 61
----
324825

onlyif mysql # aggregate syntax: 
query II rowsort label-9406
SELECT - 24 * - 70 + 25 - - 32, SUM( + 93 ) + 68 col0
----
1737
161

skipif mysql # not compatible
query II rowsort label-9406
SELECT - 24 * - 70 + 25 - - 32, SUM ( + 93 ) + 68 col0
----
1737
161

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

query I rowsort
SELECT + CASE + + 47 WHEN + 47 THEN - - 39 END AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9409
SELECT - COALESCE ( - - 60, + + ( - COUNT( * ) ) * - 35 + - COUNT( ALL + + 2 ) + ( + 93 ), + 14 ) * 34 + - 9 + - + ( + 61 ) DIV 6
----
-2059

skipif mysql # not compatible
query I rowsort label-9409
SELECT - COALESCE ( - - 60, + + ( - COUNT ( * ) ) * - 35 + - COUNT ( ALL + + 2 ) + ( + 93 ), + 14 ) * 34 + - 9 + - + ( + 61 ) / 6
----
-2059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT + SUM( ALL - 71 ) * + 64 * - - COALESCE ( - CAST( NULL AS SIGNED ), + + 51, 8 )
----
-231744

skipif mysql # not compatible
query I rowsort label-9410
SELECT + SUM ( ALL - 71 ) * + 64 * - - COALESCE ( - CAST ( NULL AS INTEGER ), + + 51, 8 )
----
-231744

query I rowsort
SELECT ALL 93 * + + 41 AS col1
----
3813

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT DISTINCT ( + NULLIF ( - 84, 13 / - - 76 * COUNT( * ) ) ) * COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT ( + NULLIF ( - 84, 13 / - - 76 * COUNT ( * ) ) ) * COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL COUNT( * ) * - 80 + 81 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL COUNT ( * ) * - 80 + 81 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9414
SELECT + CAST( + MIN( - 98 ) AS SIGNED ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9414
SELECT + CAST ( + MIN ( - 98 ) AS INTEGER ) AS col0
----
-98

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9417
SELECT ALL 43 * - 86 + - + 21 DIV - - 9 AS col2
----
-3700

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL 43 * - 86 + - + 21 / - - 9 AS col2
----
-3700

query I rowsort
SELECT COALESCE ( - 5, 71 )
----
-5

query I rowsort
SELECT ALL 49 * 27 + + + 31
----
1354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9420
SELECT COALESCE ( - + ( ( + ( - COUNT( * ) ) ) ), COUNT( + 20 ) * + - 95 + + 5 * + + 0, 4 DIV + 71 + MIN( ALL 76 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9420
SELECT COALESCE ( - + ( ( + ( - COUNT ( * ) ) ) ), COUNT ( + 20 ) * + - 95 + + 5 * + + 0, 4 / + 71 + MIN ( ALL 76 ) ) AS col0
----
1

query I rowsort
SELECT - 74 * + 52 col1
----
-3848

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL 93 * 3 + - - MIN( ALL ( - + ( ( + 4 ) ) ) ) - + ( 10 ) AS col2
----
265

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL 93 * 3 + - - MIN ( ALL ( - + ( ( + 4 ) ) ) ) - + ( 10 ) AS col2
----
265

onlyif mysql # DIV for integer division: 
query I rowsort label-9423
SELECT DISTINCT 91 DIV - 54 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT 91 / - 54 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT ALL COALESCE ( 45, 30, 47 ) * 65 + + COUNT( * ) col0, - MIN( 14 ) AS col1
----
2926
-14

skipif mysql # not compatible
query II rowsort label-9424
SELECT ALL COALESCE ( 45, 30, 47 ) * 65 + + COUNT ( * ) col0, - MIN ( 14 ) AS col1
----
2926
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT - ( SUM( 88 ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9425
SELECT - ( SUM ( 88 ) ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL - 34 * - COUNT( * ) * - + 9 - - 73 + + ( + + 59 )
----
-174

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL - 34 * - COUNT ( * ) * - + 9 - - 73 + + ( + + 59 )
----
-174

query I rowsort
SELECT ALL - 92 * + 13
----
-1196

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

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * - - 41 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - 30 + + - COUNT( * ) - + 17
----
-48

skipif mysql # not compatible
query I rowsort label-9429
SELECT - 30 + + - COUNT ( * ) - + 17
----
-48

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

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

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

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL - 42 - + + COUNT ( * ) AS col2
----
-43

query I rowsort
SELECT + 83 + - 69
----
14

query I rowsort
SELECT + 66 - - - 69
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT DISTINCT - COUNT( * ) - - 17 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT - COUNT ( * ) - - 17 AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9435
SELECT DISTINCT + 57 DIV - 35 col1
----
-1

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT + 57 / - 35 col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL CASE - 2 WHEN + NULLIF ( + - 98, COUNT( * ) * + 16 * 16 * + 0 ) + + 27 THEN SUM( 41 ) + + 61 END * - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL CASE - 2 WHEN + NULLIF ( + - 98, COUNT ( * ) * + 16 * 16 * + 0 ) + + 27 THEN SUM ( 41 ) + + 61 END * - 77 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9439
SELECT - 91 * CAST( 91 AS SIGNED ) + + 50 - + + 9 - - 34
----
-8206

skipif mysql # not compatible
query I rowsort label-9439
SELECT - 91 * CAST ( 91 AS INTEGER ) + + 50 - + + 9 - - 34
----
-8206

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9440
SELECT ALL + ( + 38 ) + - + 47 - + + 86 - - COUNT( * ) DIV - 72 * - + 78
----
-95

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL + ( + 38 ) + - + 47 - + + 86 - - COUNT ( * ) / - 72 * - + 78
----
-95

query I rowsort
SELECT DISTINCT - ( ( - - 53 ) )
----
-53

query I rowsort
SELECT ALL 46 + 2 col1
----
48

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

skipif mysql # not compatible
query I rowsort label-9443
SELECT COUNT ( * ) * + 32 + 7 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT DISTINCT - 66 + - + 76 + - SUM( - 16 )
----
-126

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT - 66 + - + 76 + - SUM ( - 16 )
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT DISTINCT COUNT( * ) + + 19 * + - MIN( ( - 87 ) ) AS col2
----
1654

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT COUNT ( * ) + + 19 * + - MIN ( ( - 87 ) ) AS col2
----
1654

query I rowsort
SELECT 89 + - 2 AS col0
----
87

query II rowsort
SELECT 60 + - 63 AS col1, 27
----
-3
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9448
SELECT 84 col0, COUNT( + 4 )
----
84
1

skipif mysql # not compatible
query II rowsort label-9448
SELECT 84 col0, COUNT ( + 4 )
----
84
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT DISTINCT COUNT( * ) * - 43 * 93 AS col0
----
-3999

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT COUNT ( * ) * - 43 * 93 AS col0
----
-3999

query I rowsort
SELECT 39 * + 63 + + 37 AS col0
----
2494

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ALL NULLIF ( 88, + + COUNT( * ) * - + ( + 77 ) + + NULLIF ( - + 29, - 21 * + 45 + + - COUNT( * ) + - 33 + + - 14 * 63 * + + 74 + + 31 ) ) * - COUNT( * ) * - - 98 + - COUNT( * ) AS col0
----
-8625

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL NULLIF ( 88, + + COUNT ( * ) * - + ( + 77 ) + + NULLIF ( - + 29, - 21 * + 45 + + - COUNT ( * ) + - 33 + + - 14 * 63 * + + 74 + + 31 ) ) * - COUNT ( * ) * - - 98 + - COUNT ( * ) AS col0
----
-8625

query I rowsort
SELECT ALL 51 * - 34
----
-1734

query I rowsort
SELECT DISTINCT 9 + 43 col1
----
52

query I rowsort
SELECT ALL 75 * - - 98 AS col1
----
7350

query II rowsort
SELECT DISTINCT 75 AS col2, 81 * + - 84 * + + CASE - - 15 WHEN - - ( 99 ) / + - ( 43 ) - - AVG ( DISTINCT - 81 ) * - 83 THEN - ( + 59 ) END
----
75
NULL

query II rowsort
SELECT - 15 AS col2, + 81 * + 49 col1
----
-15
3969

query I rowsort
SELECT + 41 * 71 AS col0
----
2911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9459
SELECT 4 + + 3 * - 6 * 10 * + - 24 + + + CAST( + 5 AS SIGNED )
----
4329

skipif mysql # not compatible
query I rowsort label-9459
SELECT 4 + + 3 * - 6 * 10 * + - 24 + + + CAST ( + 5 AS INTEGER )
----
4329

onlyif mysql # aggregate syntax: 
query II rowsort label-9460
SELECT - 64 + NULLIF ( - 6, - 25 + - CASE - - COUNT( * ) WHEN + - 31 THEN NULL ELSE 91 END / - 22 + - 94 + + 30 ) + 36 AS col1, + COUNT( - 12 )
----
-34
1

skipif mysql # not compatible
query II rowsort label-9460
SELECT - 64 + NULLIF ( - 6, - 25 + - CASE - - COUNT ( * ) WHEN + - 31 THEN NULL ELSE 91 END / - 22 + - 94 + + 30 ) + 36 AS col1, + COUNT ( - 12 )
----
-34
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT DISTINCT + ( - COUNT( ALL 19 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT + ( - COUNT ( ALL 19 ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT ALL + 19 DIV - 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + 19 / - 52 col1
----
0

query II rowsort
SELECT DISTINCT + 1 col0, 16 AS col2
----
1
16

query I rowsort
SELECT DISTINCT ( - 6 ) * - 8 AS col0
----
48

query I rowsort
SELECT DISTINCT + 28 * + + 30 col0
----
840

onlyif mysql # DIV for integer division: 
query I rowsort label-9467
SELECT 63 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-9467
SELECT 63 / + 82
----
0

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

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

query I rowsort
SELECT ALL + + 48 * - 40
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ( - 20 ) * COUNT( * ) * - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-9470
SELECT ( - 20 ) * COUNT ( * ) * - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT - COUNT( * ) * - 80 - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-9471
SELECT - COUNT ( * ) * - 80 - COUNT ( * )
----
79

query I rowsort
SELECT 55 - + - 8 AS col2
----
63

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9474
SELECT ALL - 70 + - 66 AS col0, - SUM( + + 99 )
----
-136
-99

skipif mysql # not compatible
query II rowsort label-9474
SELECT ALL - 70 + - 66 AS col0, - SUM ( + + 99 )
----
-136
-99

query II rowsort
SELECT ALL 30 * + 36 + - - 27 AS col2, 62 + 21 AS col1
----
1107
83

query I rowsort
SELECT 16 * 37 * + + 34 - - 66 AS col2
----
20194

query I rowsort
SELECT DISTINCT 23 * - 88 + + 66
----
-1958

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL 92 * COUNT( * ) + + 45
----
137

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL 92 * COUNT ( * ) + + 45
----
137

query I rowsort
SELECT ALL 98 * - + 11 + - ( - - 14 ) AS col1
----
-1092

query I rowsort
SELECT 63 * - 82
----
-5166

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

skipif mysql # not compatible
query I rowsort label-9481
SELECT 69 / - - COUNT ( * )
----
69

query II rowsort
SELECT 5 * + - 5 AS col0, 13 * - 80
----
-25
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT 53 * + 49 - 62 + COUNT( - + 90 ) * + 21 AS col2
----
2556

skipif mysql # not compatible
query I rowsort label-9483
SELECT 53 * + 49 - 62 + COUNT ( - + 90 ) * + 21 AS col2
----
2556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9484
SELECT ALL + + CASE + 12 WHEN + 82 THEN + AVG ( - + ( + 92 ) ) * - + ( + CASE - 32 WHEN - CASE 61 WHEN COALESCE ( - + 11, + COUNT( * ) DIV - 45 * COUNT( DISTINCT - 21 ) - + 92 ) * 35 + - 20 DIV - 77 + - 32 THEN + 88 END THEN + + 14 + - - CAST( - 20 AS SIGNED ) * COUNT( * ) WHEN + ( - 35 ) + + 39 THEN + ( 42 ) WHEN 6 * - 14 THEN - 91 + - + NULLIF ( 91, + 21 ) END ) DIV - 65 + - 82 ELSE - 41 END - 40 - + - 82
----
1

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL + + CASE + 12 WHEN + 82 THEN + AVG ( - + ( + 92 ) ) * - + ( + CASE - 32 WHEN - CASE 61 WHEN COALESCE ( - + 11, + COUNT ( * ) / - 45 * COUNT ( DISTINCT - 21 ) - + 92 ) * 35 + - 20 / - 77 + - 32 THEN + 88 END THEN + + 14 + - - CAST ( - 20 AS INTEGER ) * COUNT ( * ) WHEN + ( - 35 ) + + 39 THEN + ( 42 ) WHEN 6 * - 14 THEN - 91 + - + NULLIF ( 91, + 21 ) END ) / - 65 + - 82 ELSE - 41 END - 40 - + - 82
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9485
SELECT ALL + COALESCE ( - - 86, + + ( - 61 ), - + 40 DIV + 60 )
----
86

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL + COALESCE ( - - 86, + + ( - 61 ), - + 40 / + 60 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9486
SELECT + 21 * + 25 - COUNT( * ) AS col1, - CAST( 67 AS SIGNED ) * CASE - 2 WHEN 63 + 25 THEN NULL ELSE + + 96 * - + NULLIF ( - 67, + 91 ) + - + SUM( - 93 ) + 52 + - MIN( 40 ) + COUNT( * ) END AS col0
----
524
-438046

skipif mysql # not compatible
query II rowsort label-9486
SELECT + 21 * + 25 - COUNT ( * ) AS col1, - CAST ( 67 AS INTEGER ) * CASE - 2 WHEN 63 + 25 THEN NULL ELSE + + 96 * - + NULLIF ( - 67, + 91 ) + - + SUM ( - 93 ) + 52 + - MIN ( 40 ) + COUNT ( * ) END AS col0
----
524
-438046

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT - 65 + + COUNT( * ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-9487
SELECT - 65 + + COUNT ( * ) col1
----
-64

query I rowsort
SELECT ALL 9 * - 22
----
-198

query I rowsort
SELECT - ( - + 16 ) * + + 81 * + 31 * + 6 * 4 + - - 16 AS col0
----
964240

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL 75 * - - 56 + + 81 * + + COUNT( * ) AS col2
----
4281

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL 75 * - - 56 + + 81 * + + COUNT ( * ) AS col2
----
4281

query I rowsort
SELECT + 92 * 95 + + 22 AS col2
----
8762

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

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

query I rowsort
SELECT + - 4 + - 77
----
-81

query II rowsort
SELECT + 81 + - 61 AS col0, 11 AS col2
----
20
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT ( - COUNT( DISTINCT 57 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9495
SELECT ( - COUNT ( DISTINCT 57 ) ) AS col0
----
-1

query II rowsort
SELECT + 8 + + 26, - ( - 0 ) AS col2
----
34
0

query II rowsort
SELECT - 78 - - 11 AS col0, + ( + 7 )
----
-67
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT DISTINCT + 38 + - 18 * - 91 + + COUNT( - + 86 ) AS col1
----
1677

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT + 38 + - 18 * - 91 + + COUNT ( - + 86 ) AS col1
----
1677

query I rowsort
SELECT ALL - 84 + - - 14 * - + 38 * 8 * 28
----
-119252

query I rowsort
SELECT DISTINCT 0 + 48
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9501
SELECT - COALESCE ( COUNT( * ), COUNT( * ) + 61 + 70, 34 ) DIV NULLIF ( + 20, + COUNT( * ) * + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-9501
SELECT - COALESCE ( COUNT ( * ), COUNT ( * ) + 61 + 70, 34 ) / NULLIF ( + 20, + COUNT ( * ) * + 85 )
----
0

query I rowsort
SELECT DISTINCT 35 + + - 0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9503
SELECT ALL 93 + 92 DIV - - 38
----
95

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL 93 + 92 / - - 38
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9504
SELECT ALL + 21 + MAX( 33 ) * + 58 * - COALESCE ( - COUNT( * ), + CAST( - + ( - 12 ) AS SIGNED ) * - 24 ) AS col0
----
1935

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL + 21 + MAX ( 33 ) * + 58 * - COALESCE ( - COUNT ( * ), + CAST ( - + ( - 12 ) AS INTEGER ) * - 24 ) AS col0
----
1935

query I rowsort
SELECT ALL + COALESCE ( - 85, 15 )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT + ( 3 ) DIV - 88 + 67 + - - 80 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-9506
SELECT + ( 3 ) / - 88 + 67 + - - 80 AS col0
----
147

query I rowsort
SELECT ( - + COALESCE ( + 92, + + 25 + + - 80 ) )
----
-92

query I rowsort
SELECT - 69 + - - 85
----
16

query I rowsort
SELECT ( - + 52 ) col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL + ( + + NULLIF ( - + COUNT( * ), + 70 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL + ( + + NULLIF ( - + COUNT ( * ), + 70 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT + COALESCE ( + - COUNT( * ), + CASE 90 WHEN COUNT( * ) THEN - 5 WHEN + 28 + 8 + + - 80 + - COUNT( * ) + + - 30 * + + 5 THEN 69 + + 66 * + MIN( + 42 ) + 52 END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + COALESCE ( + - COUNT ( * ), + CASE 90 WHEN COUNT ( * ) THEN - 5 WHEN + 28 + 8 + + - 80 + - COUNT ( * ) + + - 30 * + + 5 THEN 69 + + 66 * + MIN ( + 42 ) + 52 END ) AS col1
----
-1

query II rowsort
SELECT ALL + 33, + 95 AS col2
----
33
95

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

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

query I rowsort
SELECT - 5 + 6 AS col1
----
1

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

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

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

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

query I rowsort
SELECT - 63 * + + 21 * + + ( 93 )
----
-123039

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT - - COUNT( * ) * ( + 3 ) + - 2 * + 87 - - + 86 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-9518
SELECT - - COUNT ( * ) * ( + 3 ) + - 2 * + 87 - - + 86 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-9519
SELECT DISTINCT + - 37, COUNT( * ) AS col1
----
-37
1

skipif mysql # not compatible
query II rowsort label-9519
SELECT DISTINCT + - 37, COUNT ( * ) AS col1
----
-37
1

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

query I rowsort
SELECT - - 83 + + + 91 * + - 42 AS col1
----
-3739

query II rowsort
SELECT ALL + 64 AS col1, + 4
----
64
4

onlyif mysql # aggregate syntax: 
query III rowsort label-9523
SELECT - + ( + 92 ) + 0 AS col1, MIN( DISTINCT 15 ) * + - 36 AS col1, 29 * COUNT( * ) - + 77 + 31 * + MIN( - 40 ) col2
----
-92
-540
-1288

skipif mysql # not compatible
query III rowsort label-9523
SELECT - + ( + 92 ) + 0 AS col1, MIN ( DISTINCT 15 ) * + - 36 AS col1, 29 * COUNT ( * ) - + 77 + 31 * + MIN ( - 40 ) col2
----
-92
-540
-1288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9524
SELECT ALL COUNT( * ) DIV - 30 + + 89
----
89

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL COUNT ( * ) / - 30 + + 89
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT ALL - COUNT( * ) * SUM( ALL + 17 ) * - - CAST( - COUNT( * ) AS SIGNED ) + 83 + + 31 + + COALESCE ( + 51, + - 84 )
----
182

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL - COUNT ( * ) * SUM ( ALL + 17 ) * - - CAST ( - COUNT ( * ) AS INTEGER ) + 83 + + 31 + + COALESCE ( + 51, + - 84 )
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9526
SELECT DISTINCT + ( + 36 ) DIV COUNT( * ) * - - MAX( + - 22 ) AS col0
----
-792

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT + ( + 36 ) / COUNT ( * ) * - - MAX ( + - 22 ) AS col0
----
-792

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT - - 64 DIV - + 41 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9527
SELECT - - 64 / - + 41 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9528
SELECT + COUNT( * ) DIV + 26 - + CASE + 80 WHEN COUNT( * ) THEN NULL ELSE 31 DIV + + 45 END + - + 88
----
-88

skipif mysql # not compatible
query I rowsort label-9528
SELECT + COUNT ( * ) / + 26 - + CASE + 80 WHEN COUNT ( * ) THEN NULL ELSE 31 / + + 45 END + - + 88
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9529
SELECT + COUNT( - + CAST( + 70 AS DECIMAL ) ), + 98 AS col0
----
1
98

skipif mysql # not compatible
query II rowsort label-9529
SELECT + COUNT ( - + CAST ( + 70 AS REAL ) ), + 98 AS col0
----
1
98

query I rowsort
SELECT ALL + 37 * 29 AS col2
----
1073

query I rowsort
SELECT ALL 81 * + NULLIF ( + 85, + + 88 ) * + - 53 * + - 97 + - 80 + + + 16 * + ( - 90 )
----
35394265

query I rowsort
SELECT - - COALESCE ( - 43, - 83 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9533
SELECT COUNT( * ) AS col2, - 99 / - CASE + 29 WHEN + 78 + + 54 + 45 / - 11 + + 44 THEN + COUNT( * ) END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9533
SELECT COUNT ( * ) AS col2, - 99 / - CASE + 29 WHEN + 78 + + 54 + 45 / - 11 + + 44 THEN + COUNT ( * ) END AS col2
----
1
NULL

query I rowsort
SELECT ALL + + ( 23 ) + + ( - - 74 )
----
97

query II rowsort
SELECT - + 69, - 15 AS col1
----
-69
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT + - 23 * - 51 + + 0 * CAST( + COUNT( * ) AS SIGNED )
----
1173

skipif mysql # not compatible
query I rowsort label-9536
SELECT + - 23 * - 51 + + 0 * CAST ( + COUNT ( * ) AS INTEGER )
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL - COUNT( * ) + + COUNT( - 78 ) - 60 + - + 83 AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL - COUNT ( * ) + + COUNT ( - 78 ) - 60 + - + 83 AS col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT + MIN( ALL + ( 98 ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT + MIN ( ALL + ( 98 ) ) AS col2
----
98

query I rowsort
SELECT DISTINCT 35 + - 45 AS col0
----
-10

query II rowsort
SELECT ALL 94 + + 96 AS col0, 50 col1
----
190
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9541
SELECT - CAST( SUM( - 2 ) AS SIGNED ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9541
SELECT - CAST ( SUM ( - 2 ) AS INTEGER ) AS col1
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT - 75 + + COUNT( * ) + - - 21 * - ( COUNT( * ) ) * + 92 + - - 89
----
-1917

skipif mysql # not compatible
query I rowsort label-9543
SELECT - 75 + + COUNT ( * ) + - - 21 * - ( COUNT ( * ) ) * + 92 + - - 89
----
-1917

query I rowsort
SELECT ALL + 90 - + 36 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9545
SELECT ALL COUNT( * ) DIV CAST( + 12 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL COUNT ( * ) / CAST ( + 12 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9546
SELECT DISTINCT COUNT( * ) * 55 AS col1, - 62 * 44 + - COALESCE ( - 35, + COUNT( * ), + - 3 )
----
55
-2693

skipif mysql # not compatible
query II rowsort label-9546
SELECT DISTINCT COUNT ( * ) * 55 AS col1, - 62 * 44 + - COALESCE ( - 35, + COUNT ( * ), + - 3 )
----
55
-2693

query I rowsort
SELECT DISTINCT - ( - 85 ) AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9548
SELECT ( - 68 ) DIV + ( + 58 ) + - + ( - - CASE - 91 WHEN - ( 67 ) THEN NULL ELSE - 29 END ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9548
SELECT ( - 68 ) / + ( + 58 ) + - + ( - - CASE - 91 WHEN - ( 67 ) THEN NULL ELSE - 29 END ) AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9549
SELECT 33 * + 21 DIV - 1 AS col1
----
-693

skipif mysql # not compatible
query I rowsort label-9549
SELECT 33 * + 21 / - 1 AS col1
----
-693

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

query II rowsort
SELECT + 60 * + 85, - CASE - 32 WHEN + 44 THEN NULL ELSE + - 93 + - 69 END + - 37 + 54 - - 24 AS col0
----
5100
203

query II rowsort
SELECT ALL + 68 + + 88 AS col0, - 54
----
156
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9553
SELECT ALL + - COUNT( * ) + - 2 + - 72 + + CAST( NULL AS SIGNED ) + - CAST( + 83 AS SIGNED ) - + + 65 - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL + - COUNT ( * ) + - 2 + - 72 + + CAST ( NULL AS INTEGER ) + - CAST ( + 83 AS INTEGER ) - + + 65 - + 74
----
NULL

query I rowsort
SELECT 77 * 24 + - + 16 col0
----
1832

query I rowsort
SELECT DISTINCT - COALESCE ( - 23, - + 97 ) col1
----
23

query I rowsort
SELECT ALL + - 42 + - 84
----
-126

query I rowsort
SELECT + 33 * - - 29 * + 34
----
32538

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT ALL - + 29 + + 77 + + MIN( - - ( - 25 ) ) * - 77 * ( + 80 ) + - 60 + - - 79 + - 3 + - + COALESCE ( + 61, - 82 * + 49, + 59 + + 5 ) AS col2
----
154003

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL - + 29 + + 77 + + MIN ( - - ( - 25 ) ) * - 77 * ( + 80 ) + - 60 + - - 79 + - 3 + - + COALESCE ( + 61, - 82 * + 49, + 59 + + 5 ) AS col2
----
154003

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL + + 50 + - 53 - CASE - - 31 WHEN - - 18 + - 12 THEN NULL WHEN + 5 + 56 THEN COUNT( * ) * - 34 + + 34 * 13 ELSE NULL END * + COUNT( - + 30 ) * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL + + 50 + - 53 - CASE - - 31 WHEN - - 18 + - 12 THEN NULL WHEN + 5 + 56 THEN COUNT ( * ) * - 34 + + 34 * 13 ELSE NULL END * + COUNT ( - + 30 ) * - 85
----
NULL

query II rowsort
SELECT - 99 + 26, 91 col1
----
-73
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9561
SELECT ALL 38 DIV + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL 38 / + 62 AS col0
----
0

query II rowsort
SELECT - 53 AS col1, - 63 AS col0
----
-53
-63

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

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

query I rowsort
SELECT 89 * 22
----
1958

query I rowsort
SELECT 63 + + + 52 AS col0
----
115

query II rowsort
SELECT - 62 col2, 21
----
-62
21

query I rowsort
SELECT ALL - 94 * - 74
----
6956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9568
SELECT 72 + - - 56 + 93 + COUNT( - 53 ) DIV + - 17
----
221

skipif mysql # not compatible
query I rowsort label-9568
SELECT 72 + - - 56 + 93 + COUNT ( - 53 ) / + - 17
----
221

query I rowsort
SELECT 8 - - 90 + 57
----
155

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT - 27 AS col0, - 55 + - CASE COUNT( * ) WHEN + COALESCE ( 98, 64 - - - COUNT( * ), 87 * + + 82 ) THEN NULL WHEN - 91 * + 26 THEN + 69 + 2 + + - 92 * ( - 71 ) * + 2 * + ( COUNT( * ) ) * + 84 END * + 34 * + 71 AS col0
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-9571
SELECT - 27 AS col0, - 55 + - CASE COUNT ( * ) WHEN + COALESCE ( 98, 64 - - - COUNT ( * ), 87 * + + 82 ) THEN NULL WHEN - 91 * + 26 THEN + 69 + 2 + + - 92 * ( - 71 ) * + 2 * + ( COUNT ( * ) ) * + 84 END * + 34 * + 71 AS col0
----
-27
NULL

query II rowsort
SELECT ALL 29 AS col1, 98
----
29
98

query I rowsort
SELECT ALL + 22 * - 80 AS col0
----
-1760

query I rowsort
SELECT ( + - 83 ) * 9 * - 98 AS col1
----
73206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9575
SELECT 17 + + - 69 DIV - - COALESCE ( - 33, + 59 - - - COUNT( * ), - 97 + - 72, 91 * + CAST( 5 AS SIGNED ) )
----
19

skipif mysql # not compatible
query I rowsort label-9575
SELECT 17 + + - 69 / - - COALESCE ( - 33, + 59 - - - COUNT ( * ), - 97 + - 72, 91 * + CAST ( 5 AS INTEGER ) )
----
19

query I rowsort
SELECT 94 + - + 19
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT CAST( NULL AS SIGNED ) * + + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT CAST ( NULL AS INTEGER ) * + + 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT COUNT( * ) + - 64 * COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-9578
SELECT COUNT ( * ) + - 64 * COUNT ( * ) AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9579
SELECT 23 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-9579
SELECT 23 / 78
----
0

query I rowsort
SELECT ALL 38 + + 77 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT DISTINCT MAX( ALL - 91 ) + - 98 * - SUM( - ( 60 ) ) AS col2
----
-5971

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT MAX ( ALL - 91 ) + - 98 * - SUM ( - ( 60 ) ) AS col2
----
-5971

query I rowsort
SELECT DISTINCT 61 * 45 AS col2
----
2745

query I rowsort
SELECT ALL + 87 + + ( 16 + 36 ) AS col2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT ALL NULLIF ( - 47, + COUNT( * ) / COUNT( * ) ) + + 31
----
-16

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL NULLIF ( - 47, + COUNT ( * ) / COUNT ( * ) ) + + 31
----
-16

query I rowsort
SELECT ALL 90 * - ( - 92 * 44 ) AS col0
----
364320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9586
SELECT 87 DIV - COUNT( ALL 28 * + 47 ) + 60 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9586
SELECT 87 / - COUNT ( ALL 28 * + 47 ) + 60 AS col2
----
-27

query I rowsort
SELECT DISTINCT ( - 65 ) * 23 col0
----
-1495

query I rowsort
SELECT DISTINCT 25 * 24 AS col1
----
600

query I rowsort
SELECT ALL ( - 32 ) + 36 AS col0
----
4

query I rowsort
SELECT 64 + 3
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT DISTINCT 19 + + 67 * COUNT( + 85 - 15 ) col2
----
86

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT 19 + + 67 * COUNT ( + 85 - 15 ) col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT ALL + 51 + - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL + 51 + - COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT DISTINCT - COALESCE ( MAX( ALL - 3 ), 40 * 47 )
----
3

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT - COALESCE ( MAX ( ALL - 3 ), 40 * 47 )
----
3

query I rowsort
SELECT DISTINCT 59 + 43 AS col2
----
102

query I rowsort
SELECT DISTINCT - 34 * 85 AS col0
----
-2890

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT 63 * + SUM( - 16 ) AS col0
----
-1008

skipif mysql # not compatible
query I rowsort label-9596
SELECT 63 * + SUM ( - 16 ) AS col0
----
-1008

query I rowsort
SELECT 98 * + 22
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL MAX( - ( ( 56 ) ) ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL MAX ( - ( ( 56 ) ) ) AS col1
----
-56

query I rowsort
SELECT DISTINCT - 7 * + 2 AS col2
----
-14

query I rowsort
SELECT ALL - 89 - - 88 AS col1
----
-1

query I rowsort
SELECT 88 * 76
----
6688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9602
SELECT DISTINCT COALESCE ( NULLIF ( - 10, - CASE + 6 WHEN + CAST( NULL AS SIGNED ) * + 47 THEN 88 * 11 END ), - 36 + 24 * 12 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT COALESCE ( NULLIF ( - 10, - CASE + 6 WHEN + CAST ( NULL AS INTEGER ) * + 47 THEN 88 * 11 END ), - 36 + 24 * 12 ) AS col1
----
-10

query I rowsort
SELECT DISTINCT - 8 * - ( + COALESCE ( 72, 35 ) )
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT DISTINCT MIN( ALL - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT MIN ( ALL - 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT - MAX( ALL 72 ) - 47 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-9605
SELECT - MAX ( ALL 72 ) - 47 AS col2
----
-119

query I rowsort
SELECT - 80 * 4
----
-320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9607
SELECT - 39 + CASE NULLIF ( + COUNT( * ), 0 ) WHEN - CAST( 59 AS SIGNED ) + + 41 THEN - COUNT( * ) WHEN 90 * + 58 THEN NULL ELSE NULL END * 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT - 39 + CASE NULLIF ( + COUNT ( * ), 0 ) WHEN - CAST ( 59 AS INTEGER ) + + 41 THEN - COUNT ( * ) WHEN 90 * + 58 THEN NULL ELSE NULL END * 95 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 13 + - 9 * + 61
----
-536

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT ALL - 65 * + 21 + + CASE + COUNT( * ) + + 59 WHEN - COUNT( * ) THEN 32 ELSE - COUNT( * ) * 3 END
----
-1368

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL - 65 * + 21 + + CASE + COUNT ( * ) + + 59 WHEN - COUNT ( * ) THEN 32 ELSE - COUNT ( * ) * 3 END
----
-1368

query I rowsort
SELECT DISTINCT - - 0 * - 35
----
0

query I rowsort
SELECT - 29 * 53 - - 48 * - 59 AS col0
----
-4369

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL + 50 * - 70 + - COUNT( * )
----
-3501

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL + 50 * - 70 + - COUNT ( * )
----
-3501

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT - 18 * COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9613
SELECT - 18 * COUNT ( * ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT + CASE + 86 WHEN + 83 * - COUNT( * ) THEN NULL WHEN - 29 THEN 10 ELSE NULL END * 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT + CASE + 86 WHEN + 83 * - COUNT ( * ) THEN NULL WHEN - 29 THEN 10 ELSE NULL END * 2 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT DISTINCT + 7 * - COUNT( * ) + CAST( NULL AS SIGNED ) * - CASE - NULLIF ( 22, 44 * - CAST( NULL AS SIGNED ) ) WHEN ( 85 ) * + NULLIF ( + 90 * NULLIF ( + 18, 27 ), 29 * 49 ) + + 23 THEN - CAST( NULL AS SIGNED ) / - COUNT( * ) + + 84 WHEN 88 THEN + COUNT( * ) WHEN - 41 * 83 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT + 7 * - COUNT ( * ) + CAST ( NULL AS INTEGER ) * - CASE - NULLIF ( 22, 44 * - CAST ( NULL AS INTEGER ) ) WHEN ( 85 ) * + NULLIF ( + 90 * NULLIF ( + 18, 27 ), 29 * 49 ) + + 23 THEN - CAST ( NULL AS INTEGER ) / - COUNT ( * ) + + 84 WHEN 88 THEN + COUNT ( * ) WHEN - 41 * 83 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 72 * 93 + 55 AS col2
----
6751

query I rowsort
SELECT ALL - NULLIF ( + 40, - 71 / 64 + - NULLIF ( 25, 85 ) ) * + 95 + 91
----
-3709

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT + + MIN( 22 ) * 93
----
2046

skipif mysql # not compatible
query I rowsort label-9618
SELECT + + MIN ( 22 ) * 93
----
2046

query I rowsort
SELECT ALL + 57 * 98 + 86 * 58 AS col1
----
10574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9620
SELECT + ( - CAST( NULL AS SIGNED ) ) * COUNT( * ) - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT + ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) - + 29
----
NULL

query I rowsort
SELECT + 72 * ( 6 + - 41 * ( + 43 ) ) AS col1
----
-126504

query I rowsort
SELECT ALL + 25 * - 39 AS col1
----
-975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9623
SELECT + + COALESCE ( COUNT( - 69 ), 51, + CAST( 84 AS SIGNED ) * 39 - 4 * CASE 77 - - CASE 70 WHEN - 94 THEN NULL ELSE + 46 * 75 END * 55 WHEN + 17 + COALESCE ( + 71, 33 ) THEN NULL ELSE 73 END ) DIV + 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9623
SELECT + + COALESCE ( COUNT ( - 69 ), 51, + CAST ( 84 AS INTEGER ) * 39 - 4 * CASE 77 - - CASE 70 WHEN - 94 THEN NULL ELSE + 46 * 75 END * 55 WHEN + 17 + COALESCE ( + 71, 33 ) THEN NULL ELSE 73 END ) / + 4 AS col2
----
0

query I rowsort
SELECT + 62 * + 5 + - 34 AS col0
----
276

query I rowsort
SELECT + + 75 * - 10 AS col0
----
-750

query I rowsort
SELECT + + 70 * + 40 AS col1
----
2800

query I rowsort
SELECT ALL 78 * + 60 AS col2
----
4680

query I rowsort
SELECT - 74 * + 57 + - 21 AS col1
----
-4239

onlyif mysql # DIV for integer division: 
query I rowsort label-9629
SELECT - 17 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-9629
SELECT - 17 / + 95
----
0

query I rowsort
SELECT + 53 + 57 + - 73 * - 68
----
5074

query I rowsort
SELECT + 70 * + - 40 * 60
----
-168000

query I rowsort
SELECT DISTINCT 76 * + 2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT SUM( ALL + - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-9633
SELECT SUM ( ALL + - 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT 67 * COUNT( * ) + 49 col1
----
116

skipif mysql # not compatible
query I rowsort label-9634
SELECT 67 * COUNT ( * ) + 49 col1
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9635
SELECT ALL COALESCE ( - 41, + CAST( NULL AS SIGNED ) DIV 26 - COUNT( * ) ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL COALESCE ( - 41, + CAST ( NULL AS INTEGER ) / 26 - COUNT ( * ) ) col2
----
-41

query I rowsort
SELECT 58 * + + 17 + 20 * + 91 col0
----
2806

onlyif mysql # DIV for integer division: 
query I rowsort label-9637
SELECT - 99 + + 17 + + 33 DIV 81
----
-82

skipif mysql # not compatible
query I rowsort label-9637
SELECT - 99 + + 17 + + 33 / 81
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL MIN( + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL MIN ( + 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT MIN( + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT MIN ( + 29 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9640
SELECT - ( MAX( ALL CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT - ( MAX ( ALL CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL - ( 82 ) * 88
----
-7216

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL + COUNT( * ) + - 73 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL + COUNT ( * ) + - 73 AS col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9643
SELECT - CAST( + + 67 AS SIGNED ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9643
SELECT - CAST ( + + 67 AS INTEGER ) AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9644
SELECT + 39 * NULLIF ( + 45, + MAX( + 34 ) - + COUNT( * ) * + 36 ) / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT + 39 * NULLIF ( + 45, + MAX ( + 34 ) - + COUNT ( * ) * + 36 ) / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9645
SELECT - 45 + - COALESCE ( + 95, - MAX( DISTINCT + CAST( - 32 AS SIGNED ) ) + 6 )
----
-140

skipif mysql # not compatible
query I rowsort label-9645
SELECT - 45 + - COALESCE ( + 95, - MAX ( DISTINCT + CAST ( - 32 AS INTEGER ) ) + 6 )
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL - MIN( ( 79 ) ) * 40 AS col0
----
-3160

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - MIN ( ( 79 ) ) * 40 AS col0
----
-3160

onlyif mysql # DIV for integer division: 
query I rowsort label-9647
SELECT - 57 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-9647
SELECT - 57 / + 94
----
0

query I rowsort
SELECT ALL NULLIF ( - 26, + 96 + + 37 ) + - 51
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT ( - - MIN( ALL 49 ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT ( - - MIN ( ALL 49 ) ) AS col0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9650
SELECT ALL + COUNT( - 79 ) + 15 DIV - 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL + COUNT ( - 79 ) + 15 / - 60 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT DISTINCT + COUNT( * ) + 84 - 65
----
20

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT + COUNT ( * ) + 84 - 65
----
20

query I rowsort
SELECT ALL - 59 * + - 35
----
2065

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT - 27 DIV - + 98
----
0

skipif mysql # not compatible
query I rowsort label-9653
SELECT - 27 / - + 98
----
0

query I rowsort
SELECT - 85 + + 87
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL - 44 + + COUNT( * ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL - 44 + + COUNT ( * ) col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9656
SELECT - ( + CAST( - 55 AS SIGNED ) ) * + 53
----
2915

skipif mysql # not compatible
query I rowsort label-9656
SELECT - ( + CAST ( - 55 AS INTEGER ) ) * + 53
----
2915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9657
SELECT ALL + + 10 DIV + NULLIF ( + 84, - ( + COUNT( * ) ) ) * - COUNT( * ) - - COALESCE ( 27, + ( COALESCE ( MIN( 79 ), - COUNT( * ) * - 91 + + SUM( ALL 82 + 40 ), - 71 ) ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL + + 10 / + NULLIF ( + 84, - ( + COUNT ( * ) ) ) * - COUNT ( * ) - - COALESCE ( 27, + ( COALESCE ( MIN ( 79 ), - COUNT ( * ) * - 91 + + SUM ( ALL 82 + 40 ), - 71 ) ) ) AS col1
----
27

query I rowsort
SELECT - 2 + + 36 AS col0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9659
SELECT DISTINCT + 53 DIV - - 1 + - 27
----
26

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT + 53 / - - 1 + - 27
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9660
SELECT 89 / + CASE - CASE - 17 WHEN COUNT( * ) THEN 53 * COALESCE ( + 85, - COUNT( * ) ) WHEN COUNT( * ) THEN NULL END WHEN CAST( 54 AS SIGNED ) * 46 THEN NULL WHEN COUNT( * ) * + 88 THEN 59 ELSE NULL END + ( - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT 89 / + CASE - CASE - 17 WHEN COUNT ( * ) THEN 53 * COALESCE ( + 85, - COUNT ( * ) ) WHEN COUNT ( * ) THEN NULL END WHEN CAST ( 54 AS INTEGER ) * 46 THEN NULL WHEN COUNT ( * ) * + 88 THEN 59 ELSE NULL END + ( - 37 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT - CAST( NULL AS SIGNED ) * 3 + ( 62 ) / - 39 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT - CAST ( NULL AS INTEGER ) * 3 + ( 62 ) / - 39 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9662
SELECT DISTINCT - COUNT( * ) DIV - 74 - + 0
----
0

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT - COUNT ( * ) / - 74 - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL + COUNT( * ) * 54 * 23
----
1242

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL + COUNT ( * ) * 54 * 23
----
1242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9664
SELECT - CAST( - COUNT( * ) AS SIGNED ) + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-9664
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + - 98
----
-97

query I rowsort
SELECT DISTINCT - - 5 * - - 16 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9666
SELECT ALL - - COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL - - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 18 * - 20
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL + - COUNT( - 4 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL + - COUNT ( - 4 ) AS col0
----
-1

query I rowsort
SELECT + + 82 + - 49 AS col2
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9670
SELECT + ( - ( CAST( NULL AS DECIMAL ) ) ) * + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT + ( - ( CAST ( NULL AS REAL ) ) ) * + 98 AS col0
----
NULL

query I rowsort
SELECT + - 7 + - 55
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9672
SELECT ALL + 18, CAST( - 60 AS SIGNED ) AS col1
----
18
-60

skipif mysql # not compatible
query II rowsort label-9672
SELECT ALL + 18, CAST ( - 60 AS INTEGER ) AS col1
----
18
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT DISTINCT + COALESCE ( + 13, 23 - + COUNT( * ) ) col0
----
13

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT + COALESCE ( + 13, 23 - + COUNT ( * ) ) col0
----
13

query I rowsort
SELECT + NULLIF ( + - 5, - 43 ) * - 37
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL COUNT( * ) * + + 6
----
6

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL COUNT ( * ) * + + 6
----
6

query II rowsort
SELECT 64 AS col0, 52
----
64
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT DISTINCT SUM( ALL - 81 ) * + + 84
----
-6804

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT SUM ( ALL - 81 ) * + + 84
----
-6804

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9678
SELECT SUM( + 60 ) DIV NULLIF ( 6, - 98 ) + - ( + 13 ) * - 13 AS col1
----
179

skipif mysql # not compatible
query I rowsort label-9678
SELECT SUM ( + 60 ) / NULLIF ( 6, - 98 ) + - ( + 13 ) * - 13 AS col1
----
179

query I rowsort
SELECT COALESCE ( + 69, 83, - ( - ( + 43 ) ) ) * 6
----
414

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL SUM( + 11 ) * - + COUNT( * ) + 92 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL SUM ( + 11 ) * - + COUNT ( * ) + 92 AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9681
SELECT ALL 57 + - COUNT( * ) + - 39 DIV 43 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL 57 + - COUNT ( * ) + - 39 / 43 AS col1
----
56

query I rowsort
SELECT ALL 75 * + + 12 AS col0
----
900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT NULLIF ( 11, + + CASE CAST( - 38 AS SIGNED ) WHEN + 29 THEN 68 + 3 ELSE NULL END ) * 16
----
176

skipif mysql # not compatible
query I rowsort label-9683
SELECT NULLIF ( 11, + + CASE CAST ( - 38 AS INTEGER ) WHEN + 29 THEN 68 + 3 ELSE NULL END ) * 16
----
176

query I rowsort
SELECT 42 * 15 AS col0
----
630

query II rowsort
SELECT ALL 80 AS col2, + 31 + - 9 AS col0
----
80
22

query II rowsort
SELECT - 81, - 84 - + NULLIF ( + CASE 18 WHEN 85 THEN 75 / NULLIF ( - 97, 92 ) ELSE NULL END, 97 + + 0 * + 75 ) AS col0
----
-81
NULL

query I rowsort
SELECT 16 * + ( + - 33 ) AS col2
----
-528

query I rowsort
SELECT ALL 21 + 53 AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9689
SELECT CAST( NULL AS SIGNED ) - + CASE - - MIN( ALL 4 ) WHEN + CASE COUNT( * ) WHEN + 28 THEN + COUNT( * ) + 96 WHEN 15 + - CASE 82 - 19 WHEN - 96 * - 21 THEN 58 WHEN + 82 THEN + 85 WHEN - 96 THEN NULL END * 9 THEN NULL ELSE + 48 END * 94 THEN 33 WHEN 53 THEN - 53 + 27 WHEN - 67 + 56 THEN - AVG ( CAST( NULL AS SIGNED ) ) * - COUNT( * ) END + - AVG ( 54 ) / 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9689
SELECT CAST ( NULL AS INTEGER ) - + CASE - - MIN ( ALL 4 ) WHEN + CASE COUNT ( * ) WHEN + 28 THEN + COUNT ( * ) + 96 WHEN 15 + - CASE 82 - 19 WHEN - 96 * - 21 THEN 58 WHEN + 82 THEN + 85 WHEN - 96 THEN NULL END * 9 THEN NULL ELSE + 48 END * 94 THEN 33 WHEN 53 THEN - 53 + 27 WHEN - 67 + 56 THEN - AVG ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) END + - AVG ( 54 ) / 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9690
SELECT COALESCE ( + + COALESCE ( + + 59, - 95 ), 32 DIV + 65 + 52 ) * 65 col1
----
3835

skipif mysql # not compatible
query I rowsort label-9690
SELECT COALESCE ( + + COALESCE ( + + 59, - 95 ), 32 / + 65 + 52 ) * 65 col1
----
3835

query II rowsort
SELECT DISTINCT 97 AS col2, 59 * - 63
----
97
-3717

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT ALL COUNT( * ) + - + 23 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL COUNT ( * ) + - + 23 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT + MAX( DISTINCT + - 55 ) * - + 87 AS col0
----
4785

skipif mysql # not compatible
query I rowsort label-9693
SELECT + MAX ( DISTINCT + - 55 ) * - + 87 AS col0
----
4785

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT ALL + + 83 * 52 DIV + - 72
----
-59

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL + + 83 * 52 / + - 72
----
-59

query II rowsort
SELECT - 53 AS col2, 85
----
-53
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9696
SELECT ALL + 69 AS col1, NULLIF ( - 71, + 72 ) * + CAST( NULL AS SIGNED ) AS col2
----
69
NULL

skipif mysql # not compatible
query II rowsort label-9696
SELECT ALL + 69 AS col1, NULLIF ( - 71, + 72 ) * + CAST ( NULL AS INTEGER ) AS col2
----
69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT DISTINCT + COUNT( + 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT + COUNT ( + 77 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9698
SELECT - 37 AS col2, + 85 * - COUNT( * ) * 17 AS col0
----
-37
-1445

skipif mysql # not compatible
query II rowsort label-9698
SELECT - 37 AS col2, + 85 * - COUNT ( * ) * 17 AS col0
----
-37
-1445

query I rowsort
SELECT DISTINCT 6 - 20 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT - 94 * + 55 * COUNT( * )
----
-5170

skipif mysql # not compatible
query I rowsort label-9700
SELECT - 94 * + 55 * COUNT ( * )
----
-5170

query I rowsort
SELECT 51 * - 52 - + - 2 AS col2
----
-2650

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT + + SUM( + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-9702
SELECT + + SUM ( + 91 )
----
91

query I rowsort
SELECT + 16 - - + 25 - + 74 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT DISTINCT - MIN( - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-9704
SELECT DISTINCT - MIN ( - 41 )
----
41

query I rowsort
SELECT ALL - ( - - ( + 6 ) ) col0
----
-6

query I rowsort
SELECT + COALESCE ( + + 52, - - ( 25 ) * - 4 + 79, 89 )
----
52

query I rowsort
SELECT 51 * + 38 - - + 32 + 7
----
1977

query II rowsort
SELECT DISTINCT - 51, + COALESCE ( 35, 25 * 73 ) + + 78 col0
----
-51
113

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT 94 * 22 * COALESCE ( - 67, - 83 * + 23 ) - SUM( ALL - ( 31 ) + + 32 )
----
-138557

skipif mysql # not compatible
query I rowsort label-9709
SELECT 94 * 22 * COALESCE ( - 67, - 83 * + 23 ) - SUM ( ALL - ( 31 ) + + 32 )
----
-138557

query II rowsort
SELECT DISTINCT - 49 + + 60 AS col1, 8 AS col2
----
11
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9711
SELECT DISTINCT + 85 + + - COUNT( * ) DIV + 63 + - ( 79 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT + 85 + + - COUNT ( * ) / + 63 + - ( 79 ) AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9712
SELECT COUNT( * ) * - - 10 AS col1, + 0 DIV - COUNT( * )
----
10
0

skipif mysql # not compatible
query II rowsort label-9712
SELECT COUNT ( * ) * - - 10 AS col1, + 0 / - COUNT ( * )
----
10
0

query I rowsort
SELECT - ( - 48 ) * - + 84 - 16 AS col2
----
-4048

query I rowsort
SELECT ALL - ( + - ( + 46 ) ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9715
SELECT ALL 34 + + 44 - 31 * - CAST( 35 AS SIGNED ) * 51 + MIN( 78 )
----
55491

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL 34 + + 44 - 31 * - CAST ( 35 AS INTEGER ) * 51 + MIN ( 78 )
----
55491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9716
SELECT 7 + - NULLIF ( - - COUNT( * ), + 30 - COALESCE ( COUNT( * ), CAST( 65 AS SIGNED ), CAST( NULL AS SIGNED ) - - 15 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9716
SELECT 7 + - NULLIF ( - - COUNT ( * ), + 30 - COALESCE ( COUNT ( * ), CAST ( 65 AS INTEGER ), CAST ( NULL AS INTEGER ) - - 15 ) ) AS col1
----
6

query I rowsort
SELECT 42 - - + 34 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT - 81 * + + 10 + + COUNT( * )
----
-809

skipif mysql # not compatible
query I rowsort label-9718
SELECT - 81 * + + 10 + + COUNT ( * )
----
-809

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL ( + MAX( - ( 75 ) ) ) + 10 * - 42
----
-495

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL ( + MAX ( - ( 75 ) ) ) + 10 * - 42
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT 32 * 58 + 84 * + COUNT( * ) AS col1
----
1940

skipif mysql # not compatible
query I rowsort label-9720
SELECT 32 * 58 + 84 * + COUNT ( * ) AS col1
----
1940

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT COUNT( * ) * + COALESCE ( - COUNT( * ), 2 ) * + 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9721
SELECT COUNT ( * ) * + COALESCE ( - COUNT ( * ), 2 ) * + 18 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9722
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( - - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( - - 3 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9723
SELECT COALESCE ( + - 47, 33, - COUNT( * ) * + CAST( 50 + 76 * + MIN( + 19 ) AS SIGNED ) + - CASE + 41 WHEN + 71 THEN + COUNT( * ) + + 23 WHEN COUNT( * ) THEN NULL END ) DIV CASE - SUM( DISTINCT + 1 ) DIV + 75 WHEN 25 + - 15 THEN NULL WHEN + 77 * - 54 THEN + MAX( + 43 ) ELSE MAX( - ( CAST( - 11 AS SIGNED ) ) ) * COUNT( * ) END
----
-4

skipif mysql # not compatible
query I rowsort label-9723
SELECT COALESCE ( + - 47, 33, - COUNT ( * ) * + CAST ( 50 + 76 * + MIN ( + 19 ) AS INTEGER ) + - CASE + 41 WHEN + 71 THEN + COUNT ( * ) + + 23 WHEN COUNT ( * ) THEN NULL END ) / CASE - SUM ( DISTINCT + 1 ) / + 75 WHEN 25 + - 15 THEN NULL WHEN + 77 * - 54 THEN + MAX ( + 43 ) ELSE MAX ( - ( CAST ( - 11 AS INTEGER ) ) ) * COUNT ( * ) END
----
-4

query II rowsort
SELECT 67 * - + 72, 45 AS col2
----
-4824
45

query I rowsort
SELECT ALL + CASE 92 WHEN - - 93 THEN + - 15 / 44 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ALL + + CASE + ( 61 ) WHEN + MAX( - 32 ) THEN 96 WHEN 49 / 74 THEN NULL END - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL + + CASE + ( 61 ) WHEN + MAX ( - 32 ) THEN 96 WHEN 49 / 74 THEN NULL END - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT ALL 42 - - - COALESCE ( + COUNT( * ), 67 )
----
41

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL 42 - - - COALESCE ( + COUNT ( * ), 67 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL MIN( DISTINCT 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL MIN ( DISTINCT 3 ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9729
SELECT NULLIF ( - 87, + + COUNT( * ) ) - CASE 43 WHEN - ( NULLIF ( - 45, + 91 * + 12 ) ) / 20 + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) THEN - 25 WHEN + 90 + 45 THEN ( - 38 ) * 25 + 14 * + 50 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT NULLIF ( - 87, + + COUNT ( * ) ) - CASE 43 WHEN - ( NULLIF ( - 45, + 91 * + 12 ) ) / 20 + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) THEN - 25 WHEN + 90 + 45 THEN ( - 38 ) * 25 + 14 * + 50 END AS col0
----
NULL

query I rowsort
SELECT - 25 * + 8 AS col2
----
-200

query I rowsort
SELECT ALL NULLIF ( - 2, - 76 + 88 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT + COUNT( * ) + 63 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9732
SELECT + COUNT ( * ) + 63 AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9733
SELECT COUNT( DISTINCT - + 7 ), + 38 * - 58 col0
----
1
-2204

skipif mysql # not compatible
query II rowsort label-9733
SELECT COUNT ( DISTINCT - + 7 ), + 38 * - 58 col0
----
1
-2204

query I rowsort
SELECT 96 - - 11
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT COUNT( * ) * - 98 + ( + - MAX( 39 ) )
----
-137

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT COUNT ( * ) * - 98 + ( + - MAX ( 39 ) )
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-9736
SELECT 71 DIV + 67 + - 35 + 69 + 80 * 37 AS col1
----
2995

skipif mysql # not compatible
query I rowsort label-9736
SELECT 71 / + 67 + - 35 + 69 + 80 * 37 AS col1
----
2995

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT MIN( + 23 ) * - 15 - + 82 - + 93
----
-520

skipif mysql # not compatible
query I rowsort label-9737
SELECT MIN ( + 23 ) * - 15 - + 82 - + 93
----
-520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9738
SELECT ALL - COALESCE ( + 55, - - COUNT( * ) - - COUNT( * ) * ( - 41 * COUNT( * ) ), + 25 ) DIV + COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - COALESCE ( + 55, - - COUNT ( * ) - - COUNT ( * ) * ( - 41 * COUNT ( * ) ), + 25 ) / + COUNT ( * ) AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9739
SELECT 45 * - 43 - - 85 DIV + - CAST( - 60 AS SIGNED )
----
-1934

skipif mysql # not compatible
query I rowsort label-9739
SELECT 45 * - 43 - - 85 / + - CAST ( - 60 AS INTEGER )
----
-1934

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL + - ( - + SUM( DISTINCT 38 ) ) * + - COUNT( * ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL + - ( - + SUM ( DISTINCT 38 ) ) * + - COUNT ( * ) col0
----
-38

query I rowsort
SELECT + 36 + - 99 * + + 63 * - 21
----
131013

query I rowsort
SELECT DISTINCT - 74 * + 59
----
-4366

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL 84 * + 61 + SUM( 15 ) - SUM( DISTINCT + 42 )
----
5097

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL 84 * + 61 + SUM ( 15 ) - SUM ( DISTINCT + 42 )
----
5097

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT - 67 * - 31 + + 2 * - COUNT( * ) * ( - 32 ) AS col2
----
2141

skipif mysql # not compatible
query I rowsort label-9744
SELECT - 67 * - 31 + + 2 * - COUNT ( * ) * ( - 32 ) AS col2
----
2141

query I rowsort
SELECT ALL ( 43 ) * - 86
----
-3698

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL + - NULLIF ( - 38, - + ( 5 ) ) * 81 + + COUNT( * )
----
3079

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + - NULLIF ( - 38, - + ( 5 ) ) * 81 + + COUNT ( * )
----
3079

query I rowsort
SELECT COALESCE ( + + 57, + - COALESCE ( + + 20, - 79 ) ) * + 72 + + 43 AS col0
----
4147

query I rowsort
SELECT ALL 72 * 32 + + 85 AS col1
----
2389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9749
SELECT + COALESCE ( CASE + + 18 WHEN + MAX( DISTINCT 96 ) THEN NULL WHEN 23 + 95 THEN CAST( NULL AS SIGNED ) END, + 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-9749
SELECT + COALESCE ( CASE + + 18 WHEN + MAX ( DISTINCT 96 ) THEN NULL WHEN 23 + 95 THEN CAST ( NULL AS INTEGER ) END, + 56 ) AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT - 76 + - - 31 + - + NULLIF ( - 8, NULLIF ( + ( 62 ), 3 + - 93 ) ) - - 97 DIV ( 33 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9750
SELECT - 76 + - - 31 + - + NULLIF ( - 8, NULLIF ( + ( 62 ), 3 + - 93 ) ) - - 97 / ( 33 ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9751
SELECT ALL + CAST( + 20 AS SIGNED ) * - COUNT( DISTINCT + 13 ) + - - 11 * + 1 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL + CAST ( + 20 AS INTEGER ) * - COUNT ( DISTINCT + 13 ) + - - 11 * + 1 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT MIN( DISTINCT 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9752
SELECT MIN ( DISTINCT 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT + COALESCE ( COUNT( * ), + - 25, + 91 * - 84 - 47 )
----
1

skipif mysql # not compatible
query I rowsort label-9753
SELECT + COALESCE ( COUNT ( * ), + - 25, + 91 * - 84 - 47 )
----
1

query I rowsort
SELECT + 64 * + + 33 AS col1
----
2112

query I rowsort
SELECT - 70 + 63 col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT - 40 * - 36 * + COUNT( * ) col0
----
1440

skipif mysql # not compatible
query I rowsort label-9756
SELECT - 40 * - 36 * + COUNT ( * ) col0
----
1440

query I rowsort
SELECT - 15 * - COALESCE ( + 91, - 18, ( - 3 ) * 10 ) + + 84
----
1449

onlyif mysql # DIV for integer division: 
query I rowsort label-9758
SELECT DISTINCT 5 DIV 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT 5 / 40 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT DISTINCT + COUNT( * ) * - 24 * 74 + 34 - 47 - 48
----
-1837

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT + COUNT ( * ) * - 24 * 74 + 34 - 47 - 48
----
-1837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9760
SELECT ALL - 46 * + MAX( ALL - + 13 ) * + - 89 + - 90 DIV + 5 AS col1
----
-53240

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL - 46 * + MAX ( ALL - + 13 ) * + - 89 + - 90 / + 5 AS col1
----
-53240

onlyif mysql # aggregate syntax: 
query II rowsort label-9761
SELECT - 34 * - + COUNT( DISTINCT 85 ) col2, 99
----
34
99

skipif mysql # not compatible
query II rowsort label-9761
SELECT - 34 * - + COUNT ( DISTINCT 85 ) col2, 99
----
34
99

query I rowsort
SELECT - 10 * 87
----
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL + 27 * - + COUNT( * ) col2
----
-27

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL + 27 * - + COUNT ( * ) col2
----
-27

query I rowsort
SELECT DISTINCT + 55 * - 99
----
-5445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT ALL - CAST( NULL AS SIGNED ) - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL - CAST ( NULL AS INTEGER ) - + 53
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9766
SELECT COUNT( * ) AS col0, - 15 AS col0
----
1
-15

skipif mysql # not compatible
query II rowsort label-9766
SELECT COUNT ( * ) AS col0, - 15 AS col0
----
1
-15

query I rowsort
SELECT ALL + ( - 36 ) - 6 AS col2
----
-42

query II rowsort
SELECT - 74 - - 88 + - 9 AS col2, + COALESCE ( 77, 22, - 98 + 68 * 9, + 99 ) col1
----
5
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9769
SELECT - 50 - + - COUNT( * ) * 13, - 88 * - + 25 AS col2
----
-37
2200

skipif mysql # not compatible
query II rowsort label-9769
SELECT - 50 - + - COUNT ( * ) * 13, - 88 * - + 25 AS col2
----
-37
2200

query I rowsort
SELECT DISTINCT ( + 54 ) AS col2
----
54

query I rowsort
SELECT ALL + 37 - + 13
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9772
SELECT DISTINCT COALESCE ( - 19, + + AVG ( ALL + + CASE - - 86 WHEN + 30 - 58 THEN 90 + + COALESCE ( CAST( NULL AS SIGNED ), 72 * + 5 + 78 ) ELSE NULL END ) DIV - 9 )
----
-19

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT COALESCE ( - 19, + + AVG ( ALL + + CASE - - 86 WHEN + 30 - 58 THEN 90 + + COALESCE ( CAST ( NULL AS INTEGER ), 72 * + 5 + 78 ) ELSE NULL END ) / - 9 )
----
-19

query I rowsort
SELECT ALL 26 - 57
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9774
SELECT DISTINCT 30 DIV + COUNT( * ) + - - 51 * - + 42
----
-2112

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT 30 / + COUNT ( * ) + - - 51 * - + 42
----
-2112

query I rowsort
SELECT + + 52 - + 11 + + 80 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT ALL + NULLIF ( 37, - MAX( - + 95 ) ) * + - COUNT( * ) * - 81 AS col1
----
2997

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL + NULLIF ( 37, - MAX ( - + 95 ) ) * + - COUNT ( * ) * - 81 AS col1
----
2997

query I rowsort
SELECT + + 36 + + 68
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9778
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 78 + - 9 AS col1, ( + COUNT( * ) )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9778
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 78 + - 9 AS col1, ( + COUNT ( * ) )
----
NULL
1

query I rowsort
SELECT ALL + 97 * + 57
----
5529

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT + COUNT( DISTINCT + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-9780
SELECT + COUNT ( DISTINCT + 50 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9781
SELECT + COUNT( * ) DIV - - COALESCE ( + + MAX( DISTINCT - 64 ), - + 69 * + 18 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9781
SELECT + COUNT ( * ) / - - COALESCE ( + + MAX ( DISTINCT - 64 ), - + 69 * + 18 ) AS col0
----
0

query I rowsort
SELECT ALL 15 * - + 44 AS col0
----
-660

query I rowsort
SELECT - 85 * - ( - ( 1 ) ) + - 74
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT - - COUNT( * ) + 90
----
91

skipif mysql # not compatible
query I rowsort label-9784
SELECT - - COUNT ( * ) + 90
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9785
SELECT ALL 28 * + 60 + - - CAST( NULL AS SIGNED ) col2, 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-9785
SELECT ALL 28 * + 60 + - - CAST ( NULL AS INTEGER ) col2, 36
----
NULL
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT DISTINCT + COUNT( 71 ) * + 67
----
67

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT + COUNT ( 71 ) * + 67
----
67

query I rowsort
SELECT ALL - 15 + + - 25 - - 33
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9788
SELECT DISTINCT 60 DIV + + MIN( DISTINCT - 81 ) DIV + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT 60 / + + MIN ( DISTINCT - 81 ) / + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL + + 69 / + 70 * + CASE - - 10 WHEN - COUNT( * ) THEN + 78 WHEN + COUNT( * ) THEN 7 ELSE NULL END * COUNT( * ) + 89 + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL + + 69 / + 70 * + CASE - - 10 WHEN - COUNT ( * ) THEN + 78 WHEN + COUNT ( * ) THEN 7 ELSE NULL END * COUNT ( * ) + 89 + 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9790
SELECT ALL - 89 DIV 7 * 93 + - - 33 AS col2
----
-1083

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL - 89 / 7 * 93 + - - 33 AS col2
----
-1083

query I rowsort
SELECT + - CASE + 24 WHEN - 2 THEN - 94 * - 75 END * ( + 51 + 4 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT CAST( NULL AS SIGNED ) / - - 65 - + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT CAST ( NULL AS INTEGER ) / - - 65 - + 69 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT CAST( + AVG ( ALL + - 15 ) AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-9793
SELECT CAST ( + AVG ( ALL + - 15 ) AS INTEGER )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT + CAST( + CASE + 62 WHEN - 41 THEN + 27 * + - COUNT( * ) * 31 + 32 ELSE 21 END AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9794
SELECT + CAST ( + CASE + 62 WHEN - 41 THEN + 27 * + - COUNT ( * ) * 31 + 32 ELSE 21 END AS INTEGER ) AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9795
SELECT ALL + 68 DIV - - 72 * + 77 * + + COUNT( * ) * + + ( - 32 ) + + 61
----
61

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL + 68 / - - 72 * + 77 * + + COUNT ( * ) * + + ( - 32 ) + + 61
----
61

query I rowsort
SELECT + 40 * 40
----
1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9797
SELECT ALL + 52 DIV - COUNT( * ) * - 63 DIV - 99 DIV + + CAST( + 80 AS SIGNED ) + 61
----
61

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + 52 / - COUNT ( * ) * - 63 / - 99 / + + CAST ( + 80 AS INTEGER ) + 61
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9798
SELECT DISTINCT 64 DIV + CAST( - 56 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT 64 / + CAST ( - 56 AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT - 73 * 84 - - 41
----
-6091

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT DISTINCT + MIN( DISTINCT 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT + MIN ( DISTINCT 7 ) AS col0
----
7

query I rowsort
SELECT DISTINCT + 58 * + 65 - - + 87
----
3857

query I rowsort
SELECT + ( NULLIF ( 11, - 7 ) ) col0
----
11

query I rowsort
SELECT + ( - 50 ) AS col1
----
-50

query II rowsort
SELECT + 30 AS col2, 97
----
30
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT ALL + 93 AS col0, CASE + 71 WHEN COUNT( * ) + + 86 + + ( + 80 ) + + 52 * + 32 * + 14 THEN NULL WHEN 75 + COUNT( * ) * 23 THEN NULLIF ( + 86, - 50 - + COALESCE ( COUNT( * ), + 5 + - NULLIF ( 77, + 36 * + ( 5 ) ) / COALESCE ( - COUNT( * ) + 94 * 71, COUNT( * ) ), 26 + 50 ) ) + 47 * 34 WHEN 54 / + COUNT( * ) THEN + 84 * 44 ELSE - 94 + + 55 END * 15 + NULLIF ( - 65, 22 ) * NULLIF ( - ( + MAX( DISTINCT + 71 ) ) * - COUNT( + 43 ), - 16 )
----
93
-5200

skipif mysql # not compatible
query II rowsort label-9805
SELECT ALL + 93 AS col0, CASE + 71 WHEN COUNT ( * ) + + 86 + + ( + 80 ) + + 52 * + 32 * + 14 THEN NULL WHEN 75 + COUNT ( * ) * 23 THEN NULLIF ( + 86, - 50 - + COALESCE ( COUNT ( * ), + 5 + - NULLIF ( 77, + 36 * + ( 5 ) ) / COALESCE ( - COUNT ( * ) + 94 * 71, COUNT ( * ) ), 26 + 50 ) ) + 47 * 34 WHEN 54 / + COUNT ( * ) THEN + 84 * 44 ELSE - 94 + + 55 END * 15 + NULLIF ( - 65, 22 ) * NULLIF ( - ( + MAX ( DISTINCT + 71 ) ) * - COUNT ( + 43 ), - 16 )
----
93
-5200

query I rowsort
SELECT ALL + CASE - + 20 WHEN + ( 82 ) * 74 - + 11 THEN 45 END AS col1
----
NULL

query I rowsort
SELECT + 51 + + NULLIF ( + 84, 15 ) col1
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9808
SELECT + COUNT( * ) * 15 - 75 + + - 95 + - - SUM( DISTINCT - 48 ) DIV 35 AS col1
----
-156

skipif mysql # not compatible
query I rowsort label-9808
SELECT + COUNT ( * ) * 15 - 75 + + - 95 + - - SUM ( DISTINCT - 48 ) / 35 AS col1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT + 27 + + + COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-9809
SELECT + 27 + + + COUNT ( * ) AS col2
----
28

query I rowsort
SELECT ALL - 69 * - + 58
----
4002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9811
SELECT - 44 / MIN( ALL - NULLIF ( - 33, - 44 ) ) * + CASE + 51 WHEN - 78 THEN - CASE + 6 WHEN + 59 THEN NULL WHEN 48 THEN NULL WHEN - 37 + - 48 THEN 11 ELSE NULL END WHEN + COUNT( * ) THEN 19 + 73 ELSE - CAST( NULL AS SIGNED ) END * + MAX( + CAST( NULL AS SIGNED ) + - 42 ) + + 99 / - ( - 16 + + ( 29 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT - 44 / MIN ( ALL - NULLIF ( - 33, - 44 ) ) * + CASE + 51 WHEN - 78 THEN - CASE + 6 WHEN + 59 THEN NULL WHEN 48 THEN NULL WHEN - 37 + - 48 THEN 11 ELSE NULL END WHEN + COUNT ( * ) THEN 19 + 73 ELSE - CAST ( NULL AS INTEGER ) END * + MAX ( + CAST ( NULL AS INTEGER ) + - 42 ) + + 99 / - ( - 16 + + ( 29 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9812
SELECT ALL COUNT( ALL - 76 ) DIV - 32 * - ( + CAST( - 71 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL COUNT ( ALL - 76 ) / - 32 * - ( + CAST ( - 71 AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT ALL ( + - 12 ) AS col1
----
-12

query I rowsort
SELECT ALL - - 63 * - 95
----
-5985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9815
SELECT + + CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) * - + COALESCE ( ( - 74 ), 27 + 58 ) + + CASE 98 + 14 WHEN 96 THEN 66 ELSE + NULLIF ( 56, 6 ) END + + 21 * - 58 col1
----
-1088

skipif mysql # not compatible
query I rowsort label-9815
SELECT + + CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) * - + COALESCE ( ( - 74 ), 27 + 58 ) + + CASE 98 + 14 WHEN 96 THEN 66 ELSE + NULLIF ( 56, 6 ) END + + 21 * - 58 col1
----
-1088

query II rowsort
SELECT ALL 44 AS col2, 22 + + ( + 22 ) AS col2
----
44
44

query I rowsort
SELECT ALL - + 13 * + 5 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT - + 7 + + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-9818
SELECT - + 7 + + - COUNT ( * )
----
-8

query I rowsort
SELECT - 16 * + 7
----
-112

query I rowsort
SELECT - - 32 + + 44
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT DISTINCT - - ( - NULLIF ( + 74, + 47 - - 58 ) ) * - SUM( ALL 73 ) AS col2
----
5402

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT - - ( - NULLIF ( + 74, + 47 - - 58 ) ) * - SUM ( ALL 73 ) AS col2
----
5402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9822
SELECT - + ( + - 73 ) + + 18 - - CASE + 24 WHEN 91 * 64 + - CASE - COALESCE ( COALESCE ( - 31, + ( 32 ) * - ( 85 + 56 ) + AVG ( 3 ) ), - COALESCE ( 6, 65, - 21, 75 + 63 ) * + CAST( 4 + - ( + COUNT( * ) + - 16 ) AS SIGNED ) ) WHEN 17 * 93 + + 20 / - COUNT( * ) THEN NULL ELSE 55 END THEN NULL WHEN + NULLIF ( - MAX( DISTINCT - 87 ), 85 * COUNT( + CASE 77 WHEN 3 THEN 2 ELSE + 63 END / - 66 ) + - 80 * - 18 ) THEN 35 * CAST( NULL AS DECIMAL ) + 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT - + ( + - 73 ) + + 18 - - CASE + 24 WHEN 91 * 64 + - CASE - COALESCE ( COALESCE ( - 31, + ( 32 ) * - ( 85 + 56 ) + AVG ( 3 ) ), - COALESCE ( 6, 65, - 21, 75 + 63 ) * + CAST ( 4 + - ( + COUNT ( * ) + - 16 ) AS INTEGER ) ) WHEN 17 * 93 + + 20 / - COUNT ( * ) THEN NULL ELSE 55 END THEN NULL WHEN + NULLIF ( - MAX ( DISTINCT - 87 ), 85 * COUNT ( + CASE 77 WHEN 3 THEN 2 ELSE + 63 END / - 66 ) + - 80 * - 18 ) THEN 35 * CAST ( NULL AS REAL ) + 92 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT - - COUNT( * ) * + + 81
----
81

skipif mysql # not compatible
query I rowsort label-9823
SELECT - - COUNT ( * ) * + + 81
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT DISTINCT - - 71 + + CASE 93 WHEN 37 * + + COUNT( * ) * - NULLIF ( 86, AVG ( DISTINCT 8 ) ) - + 69 THEN + COUNT( DISTINCT 12 ) * - CASE - 93 + CASE 30 WHEN - COUNT( + 18 ) * + COUNT( * ) THEN COUNT( * ) END * 40 WHEN + 52 THEN 69 + - 38 WHEN + 34 * + 17 + - 80 THEN NULL ELSE NULL END WHEN + COUNT( 49 ) THEN NULL END * 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT - - 71 + + CASE 93 WHEN 37 * + + COUNT ( * ) * - NULLIF ( 86, AVG ( DISTINCT 8 ) ) - + 69 THEN + COUNT ( DISTINCT 12 ) * - CASE - 93 + CASE 30 WHEN - COUNT ( + 18 ) * + COUNT ( * ) THEN COUNT ( * ) END * 40 WHEN + 52 THEN 69 + - 38 WHEN + 34 * + 17 + - 80 THEN NULL ELSE NULL END WHEN + COUNT ( 49 ) THEN NULL END * 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL + - MAX( + 51 ) + - 9
----
-60

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL + - MAX ( + 51 ) + - 9
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL + 69 + - 8 * - CASE 17 WHEN + - MIN( - 92 ) THEN NULL WHEN 25 THEN - ( - 36 ) END + COUNT( DISTINCT 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL + 69 + - 8 * - CASE 17 WHEN + - MIN ( - 92 ) THEN NULL WHEN 25 THEN - ( - 36 ) END + COUNT ( DISTINCT 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9827
SELECT ALL + 61 AS col1, 22 * COUNT( * )
----
61
22

skipif mysql # not compatible
query II rowsort label-9827
SELECT ALL + 61 AS col1, 22 * COUNT ( * )
----
61
22

query I rowsort
SELECT + 37 * - 38 AS col2
----
-1406

onlyif mysql # DIV for integer division: 
query I rowsort label-9829
SELECT ALL - 25 DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL - 25 / 56 AS col2
----
0

query II rowsort
SELECT - - 8 AS col1, + 58 * COALESCE ( + + 67, 66 * - 37 * 87 + 27 * - 98 ) + 65
----
8
3951

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT COALESCE ( - + 13, COUNT( * ) )
----
-13

skipif mysql # not compatible
query I rowsort label-9831
SELECT COALESCE ( - + 13, COUNT ( * ) )
----
-13

query I rowsort
SELECT 84 + - 53 + - 85 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ( - COUNT( * ) ) - - 15
----
14

skipif mysql # not compatible
query I rowsort label-9833
SELECT ( - COUNT ( * ) ) - - 15
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9834
SELECT - COUNT( + - 38 ) DIV - COUNT( * ) + + 64 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9834
SELECT - COUNT ( + - 38 ) / - COUNT ( * ) + + 64 AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9835
SELECT DISTINCT + COUNT( * ) * - 19, - ( + 46 ) + - COALESCE ( 2, - + 68, 52 DIV 20 ) col0
----
-19
-48

skipif mysql # not compatible
query II rowsort label-9835
SELECT DISTINCT + COUNT ( * ) * - 19, - ( + 46 ) + - COALESCE ( 2, - + 68, 52 / 20 ) col0
----
-19
-48

query I rowsort
SELECT ALL - 72 * - + 95 AS col2
----
6840

query I rowsort
SELECT 23 + 90 col2
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-9838
SELECT COUNT( * ) * - 65 AS col2, CASE WHEN NOT 94 <> - 36 + + 44 THEN - 40 WHEN NULL IS NULL THEN - 25 + - 9 END + - 82
----
-65
-116

skipif mysql # not compatible
query II rowsort label-9838
SELECT COUNT ( * ) * - 65 AS col2, CASE WHEN NOT 94 <> - 36 + + 44 THEN - 40 WHEN NULL IS NULL THEN - 25 + - 9 END + - 82
----
-65
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9839
SELECT - 7 * - COALESCE ( - 85, COUNT( * ) + 47 + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * NULLIF ( - COALESCE ( + CAST( 74 AS SIGNED ), 44 + ( - ( - CAST( NULL AS SIGNED ) ) ) ), + 66 + + 19 ) ) + - 44 AS col2
----
-639

skipif mysql # not compatible
query I rowsort label-9839
SELECT - 7 * - COALESCE ( - 85, COUNT ( * ) + 47 + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * NULLIF ( - COALESCE ( + CAST ( 74 AS INTEGER ), 44 + ( - ( - CAST ( NULL AS INTEGER ) ) ) ), + 66 + + 19 ) ) + - 44 AS col2
----
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL NULLIF ( 33, + + CASE + - COUNT( * ) WHEN - 40 * + 98 + - 80 THEN NULL WHEN 23 + - MAX( ALL - 2 ) THEN + 35 / - COUNT( * ) + + 51 * + 48 END ) - - 92 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL NULLIF ( 33, + + CASE + - COUNT ( * ) WHEN - 40 * + 98 + - 80 THEN NULL WHEN 23 + - MAX ( ALL - 2 ) THEN + 35 / - COUNT ( * ) + + 51 * + 48 END ) - - 92 AS col0
----
125

query I rowsort
SELECT 13 * - 12
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL COUNT( * ) * + 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL COUNT ( * ) * + 15 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT 51 * 65 DIV 29 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-9843
SELECT 51 * 65 / 29 AS col2
----
114

query I rowsort
SELECT - 44 - CASE WHEN - 15 >= 69 THEN - 39 - - 95 END + + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL 88 + - COUNT( * ) * + 84 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL 88 + - COUNT ( * ) * + 84 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT SUM( + - 49 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9846
SELECT SUM ( + - 49 ) AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT CAST( NULL AS SIGNED ) / 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT CAST ( NULL AS INTEGER ) / 39
----
NULL

query I rowsort
SELECT DISTINCT + 48 + + ( - + 64 ) + - 54
----
-70

query I rowsort
SELECT DISTINCT + 31 * 41 + + 19 AS col2
----
1290

query I rowsort
SELECT ALL + 20 + + - 24 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT - + 19 * 61 + + 88 * + + MIN( - 89 ) + + 78
----
-8913

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT - + 19 * 61 + + 88 * + + MIN ( - 89 ) + + 78
----
-8913

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL - COUNT( * ) + + - 72 * + + CASE - 36 WHEN - 64 * - - ( COUNT( * ) ) THEN 83 WHEN 25 + ( + CASE COALESCE ( 38, + 79 - 77 / + 43 ) WHEN + COUNT( * ) THEN NULL ELSE 18 END + + 63 ) THEN NULL ELSE 18 END
----
-1297

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL - COUNT ( * ) + + - 72 * + + CASE - 36 WHEN - 64 * - - ( COUNT ( * ) ) THEN 83 WHEN 25 + ( + CASE COALESCE ( 38, + 79 - 77 / + 43 ) WHEN + COUNT ( * ) THEN NULL ELSE 18 END + + 63 ) THEN NULL ELSE 18 END
----
-1297

query I rowsort
SELECT 43 - - + ( - ( + 29 ) ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT 89 - - MIN( ALL + + 14 ) AS col0
----
103

skipif mysql # not compatible
query I rowsort label-9854
SELECT 89 - - MIN ( ALL + + 14 ) AS col0
----
103

query I rowsort
SELECT ALL - - 77 * + + 19 - - - 6
----
1457

query I rowsort
SELECT DISTINCT + - 14 + + ( - + NULLIF ( - 7, + 82 ) )
----
-7

query I rowsort
SELECT 68 + + 99 + CASE - 24 WHEN - 76 * 54 THEN NULL WHEN + 96 THEN 38 END / 77
----
NULL

query I rowsort
SELECT DISTINCT - CASE + 92 WHEN - + 34 THEN + + 35 END - + + 53 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9859
SELECT DISTINCT + CASE + MIN( ALL + + 64 ) WHEN + 39 * 12 + + 11 + - - MIN( ALL - + 1 ) + + 3 THEN NULL WHEN - 33 THEN - ( 72 ) END / - CAST( - ( + 2 ) + + ( - 12 - 11 ) * AVG ( COALESCE ( - 3, - 34 + - 57 * - CAST( NULL AS SIGNED ), 79 + + ( + 62 ) ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT + CASE + MIN ( ALL + + 64 ) WHEN + 39 * 12 + + 11 + - - MIN ( ALL - + 1 ) + + 3 THEN NULL WHEN - 33 THEN - ( 72 ) END / - CAST ( - ( + 2 ) + + ( - 12 - 11 ) * AVG ( COALESCE ( - 3, - 34 + - 57 * - CAST ( NULL AS INTEGER ), 79 + + ( + 62 ) ) ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9860
SELECT ALL COUNT( * ) AS col0, + 72 + + - CAST( + 65 AS SIGNED ) col2
----
1
7

skipif mysql # not compatible
query II rowsort label-9860
SELECT ALL COUNT ( * ) AS col0, + 72 + + - CAST ( + 65 AS INTEGER ) col2
----
1
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9861
SELECT 36 * + - ( - - CASE ( + COUNT( * ) ) WHEN ( + - COUNT( DISTINCT 87 ) ) THEN NULL WHEN - CASE CAST( - 39 AS SIGNED ) WHEN COUNT( + NULLIF ( 43, 53 ) ) THEN CASE 59 WHEN - 11 + MAX( 93 ) / - COUNT( * ) THEN - 6 END END THEN + 12 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT 36 * + - ( - - CASE ( + COUNT ( * ) ) WHEN ( + - COUNT ( DISTINCT 87 ) ) THEN NULL WHEN - CASE CAST ( - 39 AS INTEGER ) WHEN COUNT ( + NULLIF ( 43, 53 ) ) THEN CASE 59 WHEN - 11 + MAX ( 93 ) / - COUNT ( * ) THEN - 6 END END THEN + 12 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9862
SELECT - ( + 51 ) * 26 - + 41 + - CAST( 88 AS SIGNED )
----
-1455

skipif mysql # not compatible
query I rowsort label-9862
SELECT - ( + 51 ) * 26 - + 41 + - CAST ( 88 AS INTEGER )
----
-1455

onlyif mysql # DIV for integer division: 
query I rowsort label-9863
SELECT DISTINCT + 96 DIV + - 6
----
-16

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT + 96 / + - 6
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9864
SELECT 26 DIV 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9864
SELECT 26 / 50 AS col0
----
0

query I rowsort
SELECT 32 + - - 10 AS col0
----
42

query II rowsort
SELECT + 74 AS col2, - 47
----
74
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL + 69 * 11 * + MAX( + + 97 )
----
73623

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + 69 * 11 * + MAX ( + + 97 )
----
73623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9868
SELECT DISTINCT + CASE + 38 WHEN + + 71 THEN NULL WHEN CAST( - ( 91 ) AS SIGNED ) THEN 50 ELSE NULL END * + - MIN( - 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT + CASE + 38 WHEN + + 71 THEN NULL WHEN CAST ( - ( 91 ) AS INTEGER ) THEN 50 ELSE NULL END * + - MIN ( - 56 )
----
NULL

query II rowsort
SELECT ALL - 16 AS col1, 76
----
-16
76

query I rowsort
SELECT ALL + 78 * 94 AS col1
----
7332

query I rowsort
SELECT DISTINCT - ( + + 96 ) * - 62
----
5952

query II rowsort
SELECT 61 * + - 68 * - - 59 AS col2, + 82 col0
----
-244732
82

query II rowsort
SELECT ALL - 32 AS col0, - 43 * - 19 col0
----
-32
817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT 67 - 70 * + - NULLIF ( - 64, 27 * + CAST( NULL AS SIGNED ) ) AS col1
----
-4413

skipif mysql # not compatible
query I rowsort label-9874
SELECT 67 - 70 * + - NULLIF ( - 64, 27 * + CAST ( NULL AS INTEGER ) ) AS col1
----
-4413

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ( + 49 ) + SUM( 37 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9875
SELECT ( + 49 ) + SUM ( 37 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT 51 * NULLIF ( + - CASE - + 89 WHEN - + 69 + - 20 / + 44 THEN + 46 WHEN ( COUNT( * ) ) - 56 * 80 THEN NULL END, + ( 87 ) * - 64 + + 43 / + NULLIF ( 49 * 41, + 4 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT 51 * NULLIF ( + - CASE - + 89 WHEN - + 69 + - 20 / + 44 THEN + 46 WHEN ( COUNT ( * ) ) - 56 * 80 THEN NULL END, + ( 87 ) * - 64 + + 43 / + NULLIF ( 49 * 41, + 4 ) ) AS col1
----
NULL

query I rowsort
SELECT 9 * + + 96
----
864

query I rowsort
SELECT + - 56 * + 27 + 12 + + 50 AS col2
----
-1450

query I rowsort
SELECT + - COALESCE ( + + 19, - - 45 )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9880
SELECT 99 * 81 - AVG ( - 37 ) / - CASE + 69 WHEN - COUNT( 67 ) THEN NULL WHEN 26 / COUNT( * ) THEN 87 ELSE NULL END - 43 * + COALESCE ( 25 * + 90, + 42 / - COUNT( * ) + 62, + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9880
SELECT 99 * 81 - AVG ( - 37 ) / - CASE + 69 WHEN - COUNT ( 67 ) THEN NULL WHEN 26 / COUNT ( * ) THEN 87 ELSE NULL END - 43 * + COALESCE ( 25 * + 90, + 42 / - COUNT ( * ) + 62, + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9881
SELECT + 40 AS col0, ( + CAST( - - 89 AS SIGNED ) ) * + 82 col2
----
40
7298

skipif mysql # not compatible
query II rowsort label-9881
SELECT + 40 AS col0, ( + CAST ( - - 89 AS INTEGER ) ) * + 82 col2
----
40
7298

query I rowsort
SELECT DISTINCT - - 0 + + 1 AS col2
----
1

query I rowsort
SELECT DISTINCT 4 + - + 25 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT DISTINCT - COUNT( 20 ) + + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT - COUNT ( 20 ) + + - COUNT ( * )
----
-2

query II rowsort
SELECT DISTINCT 19 AS col2, 2 * - 32 AS col0
----
19
-64

query I rowsort
SELECT + 5 + + + 24 * - ( + 75 )
----
-1795

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT ALL - COUNT( * ) - + COUNT( ALL CASE + + 49 WHEN - 55 + + 6 THEN NULL WHEN - 52 + 23 THEN + 82 ELSE 86 END ) * MIN( NULLIF ( 39, + 39 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL - COUNT ( * ) - + COUNT ( ALL CASE + + 49 WHEN - 55 + + 6 THEN NULL WHEN - 52 + 23 THEN + 82 ELSE 86 END ) * MIN ( NULLIF ( 39, + 39 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT + - COALESCE ( - 56, + 22 ) * - COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9888
SELECT + - COALESCE ( - 56, + 22 ) * - COUNT ( * ) AS col0
----
-56

query I rowsort
SELECT - - 97 * + 17
----
1649

query I rowsort
SELECT + 67 + - + 47 + 57 + 17 * - + 98 + + 72 + + 72 * + + 65
----
3163

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT 6 - 35 + + 34 - - MAX( ALL 4 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT 6 - 35 + + 34 - - MAX ( ALL 4 ) AS col0
----
9

query I rowsort
SELECT DISTINCT - CASE - 96 WHEN ( - - ( + 4 ) ) / - + 29 THEN NULL ELSE 15 END col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9893
SELECT ALL + 42 DIV + + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL + 42 / + + 70 AS col1
----
0

query I rowsort
SELECT + 94 * - 39
----
-3666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9895
SELECT ALL + - 37 * COUNT( CAST( NULL AS SIGNED ) ) * - + ( 98 ) - - 18, 85 AS col2
----
18
85

skipif mysql # not compatible
query II rowsort label-9895
SELECT ALL + - 37 * COUNT ( CAST ( NULL AS INTEGER ) ) * - + ( 98 ) - - 18, 85 AS col2
----
18
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT DISTINCT ( - - 12 ) / + + CASE 36 WHEN - 75 THEN - 6 ELSE NULL END / + + 11 + + 55 / + COUNT( * ) + ( + 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT ( - - 12 ) / + + CASE 36 WHEN - 75 THEN - 6 ELSE NULL END / + + 11 + + 55 / + COUNT ( * ) + ( + 65 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 9 * 84
----
756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9898
SELECT - 11 + - CASE + 33 WHEN - 44 + 89 THEN NULL WHEN + ( + 0 ) * + - 68 THEN NULL ELSE + 15 DIV COUNT( * ) END * - ( 67 * + 6 )
----
6019

skipif mysql # not compatible
query I rowsort label-9898
SELECT - 11 + - CASE + 33 WHEN - 44 + 89 THEN NULL WHEN + ( + 0 ) * + - 68 THEN NULL ELSE + 15 / COUNT ( * ) END * - ( 67 * + 6 )
----
6019

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT - 70 DIV + 52
----
-1

skipif mysql # not compatible
query I rowsort label-9899
SELECT - 70 / + 52
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9900
SELECT + 58 * + - CAST( + 65 AS SIGNED ) AS col0
----
-3770

skipif mysql # not compatible
query I rowsort label-9900
SELECT + 58 * + - CAST ( + 65 AS INTEGER ) AS col0
----
-3770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9901
SELECT ALL + ( + + CASE 35 WHEN SUM( - 28 ) * - - 60 + - - CAST( NULL AS SIGNED ) + + CAST( - 6 AS SIGNED ) + + 8 THEN + 99 WHEN - 8 - + 64 * 98 THEN NULL END ) * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + ( + + CASE 35 WHEN SUM ( - 28 ) * - - 60 + - - CAST ( NULL AS INTEGER ) + + CAST ( - 6 AS INTEGER ) + + 8 THEN + 99 WHEN - 8 - + 64 * 98 THEN NULL END ) * 53
----
NULL

query I rowsort
SELECT + 51 + ( 40 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT - 57 - + 4 + - + COALESCE ( + COUNT( * ), 33 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9903
SELECT - 57 - + 4 + - + COALESCE ( + COUNT ( * ), 33 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-9904
SELECT DISTINCT + SUM( DISTINCT 87 ) AS col2, + 46 AS col2
----
87
46

skipif mysql # not compatible
query II rowsort label-9904
SELECT DISTINCT + SUM ( DISTINCT 87 ) AS col2, + 46 AS col2
----
87
46

query I rowsort
SELECT - CASE + 58 WHEN + 37 THEN + + 73 WHEN 44 THEN NULL WHEN + 82 * - + 65 THEN NULL ELSE NULL END / + 62 + - 34 + + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT + 60 * + 72 + - + COUNT( * )
----
4319

skipif mysql # not compatible
query I rowsort label-9906
SELECT + 60 * + 72 + - + COUNT ( * )
----
4319

onlyif mysql # aggregate syntax: 
query II rowsort label-9907
SELECT DISTINCT + 38 * - 62 AS col2, - COUNT( * ) AS col0
----
-2356
-1

skipif mysql # not compatible
query II rowsort label-9907
SELECT DISTINCT + 38 * - 62 AS col2, - COUNT ( * ) AS col0
----
-2356
-1

query I rowsort
SELECT ALL + + 77 * + - 14 - - - 86 AS col2
----
-1164

onlyif mysql # DIV for integer division: 
query II rowsort label-9909
SELECT - 40 DIV - + 12, 55 AS col0
----
3
55

skipif mysql # not compatible
query II rowsort label-9909
SELECT - 40 / - + 12, 55 AS col0
----
3
55

query I rowsort
SELECT ALL 98 * 41 + + 70 col2
----
4088

query I rowsort
SELECT ALL + 62 * + + 36
----
2232

query I rowsort
SELECT ALL + 58 * - 1 + - 95 col0
----
-153

query I rowsort
SELECT - + 81 * + NULLIF ( + 37, 27 ) AS col2
----
-2997

query I rowsort
SELECT + + 76 + + - 94 + + + 46 * - + 69
----
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + + 18 * - 64 - COUNT( DISTINCT - - 17 ) * - 55
----
-1097

skipif mysql # not compatible
query I rowsort label-9915
SELECT + + 18 * - 64 - COUNT ( DISTINCT - - 17 ) * - 55
----
-1097

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT - + 32 - - + 94 - - - ( + 78 ) * + 51 * SUM( DISTINCT + - 39 ) + - - 21 + - 76 + COUNT( * ) * + 23 col0
----
155172

skipif mysql # not compatible
query I rowsort label-9916
SELECT - + 32 - - + 94 - - - ( + 78 ) * + 51 * SUM ( DISTINCT + - 39 ) + - - 21 + - 76 + COUNT ( * ) * + 23 col0
----
155172

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT - COUNT( * ) * + 52 - 92 * - + SUM( ALL + - 31 ) - 93
----
-2997

skipif mysql # not compatible
query I rowsort label-9917
SELECT - COUNT ( * ) * + 52 - 92 * - + SUM ( ALL + - 31 ) - 93
----
-2997

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT + 25 * - + MAX( ( + 45 ) ) AS col0
----
-1125

skipif mysql # not compatible
query I rowsort label-9918
SELECT + 25 * - + MAX ( ( + 45 ) ) AS col0
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT + COUNT( - 99 ) + - 14 col0
----
-13

skipif mysql # not compatible
query I rowsort label-9919
SELECT + COUNT ( - 99 ) + - 14 col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT ALL - 0 * + 54 - MAX( DISTINCT - 22 ) + + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL - 0 * + 54 - MAX ( DISTINCT - 22 ) + + COUNT ( * ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT 13 * MAX( 66 ) * + - ( 93 )
----
-79794

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT 13 * MAX ( 66 ) * + - ( 93 )
----
-79794

onlyif mysql # aggregate syntax: 
query II rowsort label-9922
SELECT ALL COUNT( * ) * - - 79 AS col2, - 59
----
79
-59

skipif mysql # not compatible
query II rowsort label-9922
SELECT ALL COUNT ( * ) * - - 79 AS col2, - 59
----
79
-59

query I rowsort
SELECT + + 91 * + 8 AS col2
----
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9924
SELECT DISTINCT CAST( NULL AS SIGNED ) * AVG ( ALL - 94 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT CAST ( NULL AS INTEGER ) * AVG ( ALL - 94 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 46 - - 61
----
107

query I rowsort
SELECT + 58 * + 69 AS col0
----
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT - NULLIF ( - + 8, - CASE + - 50 WHEN - COUNT( * ) THEN 25 * + COUNT( * ) END / + + 11 + - - 55 + 40 + - COUNT( 91 ) * + 46 / - ( + 77 + 52 ) )
----
8

skipif mysql # not compatible
query I rowsort label-9927
SELECT - NULLIF ( - + 8, - CASE + - 50 WHEN - COUNT ( * ) THEN 25 * + COUNT ( * ) END / + + 11 + - - 55 + 40 + - COUNT ( 91 ) * + 46 / - ( + 77 + 52 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT - MIN( + 30 ) + 76
----
46

skipif mysql # not compatible
query I rowsort label-9928
SELECT - MIN ( + 30 ) + 76
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9929
SELECT ALL 22 DIV - 12
----
-1

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL 22 / - 12
----
-1

query I rowsort
SELECT + 28 * - CASE - - ( - - 80 ) WHEN + + 50 + - 2 THEN + 21 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 34 + + + 92 * CASE - 34 WHEN + 85 THEN NULL ELSE 56 END * 40 AS col2
----
206114

query I rowsort
SELECT DISTINCT - 24 * - 72 col0
----
1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9933
SELECT ALL 86 DIV + + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL 86 / + + COUNT ( * ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT + 98 * + COUNT( ALL - 54 )
----
98

skipif mysql # not compatible
query I rowsort label-9934
SELECT + 98 * + COUNT ( ALL - 54 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT + MIN( DISTINCT - + 22 ) * + + 85 AS col1
----
-1870

skipif mysql # not compatible
query I rowsort label-9935
SELECT + MIN ( DISTINCT - + 22 ) * + + 85 AS col1
----
-1870

query II rowsort
SELECT - ( + 50 ) * - - 17 col1, 29 AS col0
----
-850
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) / - CAST( NULL AS SIGNED ) / 40 * + 64 + + + 93 + + + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) / - CAST ( NULL AS INTEGER ) / 40 * + 64 + + + 93 + + + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9938
SELECT + 39 AS col1, + COUNT( * ) AS col1
----
39
1

skipif mysql # not compatible
query II rowsort label-9938
SELECT + 39 AS col1, + COUNT ( * ) AS col1
----
39
1

query I rowsort
SELECT + ( 48 ) + 10 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT 2 * + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9940
SELECT 2 * + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9941
SELECT DISTINCT CAST( 78 AS SIGNED ) + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT CAST ( 78 AS INTEGER ) + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - + NULLIF ( - + 53, - 2 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT 26 * - 19 + MIN( DISTINCT + 25 ) AS col1
----
-469

skipif mysql # not compatible
query I rowsort label-9943
SELECT 26 * - 19 + MIN ( DISTINCT + 25 ) AS col1
----
-469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9944
SELECT - COALESCE ( + 36, - CAST( NULL AS SIGNED ), CAST( - + COUNT( * ) AS SIGNED ), + + COUNT( * ) ) + + + 3 + - COALESCE ( - - 87, - CASE - 80 WHEN 31 THEN NULL ELSE - COUNT( DISTINCT + 41 ) END * - 6 - MIN( ALL 16 ), 54 ) DIV MAX( DISTINCT - ( ( ( 18 ) ) ) ) DIV COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-9944
SELECT - COALESCE ( + 36, - CAST ( NULL AS INTEGER ), CAST ( - + COUNT ( * ) AS INTEGER ), + + COUNT ( * ) ) + + + 3 + - COALESCE ( - - 87, - CASE - 80 WHEN 31 THEN NULL ELSE - COUNT ( DISTINCT + 41 ) END * - 6 - MIN ( ALL 16 ), 54 ) / MAX ( DISTINCT - ( ( ( 18 ) ) ) ) / COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT - 78 * + ( + 62 ) - - + CASE COUNT( - 75 ) WHEN 28 THEN NULL WHEN 46 THEN ( + COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT - 78 * + ( + 62 ) - - + CASE COUNT ( - 75 ) WHEN 28 THEN NULL WHEN 46 THEN ( + COUNT ( * ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9946
SELECT 5 * - 96 * 65 + + 16 - + COUNT( * ) DIV - + 98 + + 78
----
-31106

skipif mysql # not compatible
query I rowsort label-9946
SELECT 5 * - 96 * 65 + + 16 - + COUNT ( * ) / - + 98 + + 78
----
-31106

query I rowsort
SELECT DISTINCT - + 28 * + 41 * - + 13 * + - 8
----
-119392

onlyif mysql # DIV for integer division: 
query I rowsort label-9948
SELECT 97 DIV - 93 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9948
SELECT 97 / - 93 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT ALL - 15 * + 66 + + + MIN( 99 ) AS col0
----
-891

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL - 15 * + 66 + + + MIN ( 99 ) AS col0
----
-891

query I rowsort
SELECT + 90 + + 69 * - 84
----
-5706

query I rowsort
SELECT - 29 * - 2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT + 3 + - MAX( ALL - 18 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-9952
SELECT + 3 + - MAX ( ALL - 18 ) col0
----
21

query II rowsort
SELECT 58, - 92 col0
----
58
-92

query I rowsort
SELECT 23 + + 52 AS col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT 32 + - - 95 + - ( + 14 ) + CAST( + - 77 AS SIGNED ) + 2
----
38

skipif mysql # not compatible
query I rowsort label-9955
SELECT 32 + - - 95 + - ( + 14 ) + CAST ( + - 77 AS INTEGER ) + 2
----
38

query I rowsort
SELECT 42 + + 22 AS col0
----
64

query I rowsort
SELECT ALL 40 + + + ( - 8 ) AS col0
----
32

query I rowsort
SELECT ALL 16 + + 63 * + 59 AS col0
----
3733

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT 58 + + 92 + + 75 + + 67 + - 47 + - 35 + + CASE MAX( ALL - 41 ) WHEN - - 57 THEN 31 * + 62 WHEN 44 * 44 THEN NULL END * MAX( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT 58 + + 92 + + 75 + + 67 + - 47 + - 35 + + CASE MAX ( ALL - 41 ) WHEN - - 57 THEN 31 * + 62 WHEN 44 * 44 THEN NULL END * MAX ( 79 )
----
NULL

query II rowsort
SELECT - 68 AS col2, + ( + - 34 )
----
-68
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9961
SELECT ALL 69 AS col2, COUNT( ALL + 85 ) AS col0
----
69
1

skipif mysql # not compatible
query II rowsort label-9961
SELECT ALL 69 AS col2, COUNT ( ALL + 85 ) AS col0
----
69
1

query II rowsort
SELECT 69, 69 AS col1
----
69
69

query I rowsort
SELECT ALL 80 + - - 25 + + 25 - ( 27 ) col0
----
103

query I rowsort
SELECT 48 + - 62 + - - 50
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9965
SELECT - 78 AS col0, COALESCE ( 13, + 83, 63 * - CAST( - 14 AS SIGNED ) * + 55 * 96 ) AS col0
----
-78
13

skipif mysql # not compatible
query II rowsort label-9965
SELECT - 78 AS col0, COALESCE ( 13, + 83, 63 * - CAST ( - 14 AS INTEGER ) * + 55 * 96 ) AS col0
----
-78
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9966
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - COUNT( ALL - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - COUNT ( ALL - 71 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9967
SELECT DISTINCT 67 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT 67 / + 52
----
1

query I rowsort
SELECT ALL NULLIF ( - 53, + 78 ) + - 20 + 46 AS col0
----
-27

query I rowsort
SELECT ALL + 31 - 37 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT 71 + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9970
SELECT 71 + COUNT ( * ) AS col1
----
72

query II rowsort
SELECT ALL - + 5 AS col1, - 15 + - 69 AS col0
----
-5
-84

query I rowsort
SELECT - 88 * - 74 AS col0
----
6512

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT 51 DIV + + 29 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9973
SELECT 51 / + + 29 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT 94 * + + 42 * - COUNT( * )
----
-3948

skipif mysql # not compatible
query I rowsort label-9974
SELECT 94 * + + 42 * - COUNT ( * )
----
-3948

query II rowsort
SELECT 26 AS col0, - 7 AS col0
----
26
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9976
SELECT + CASE - 80 WHEN - 76 THEN COUNT( * ) * COALESCE ( + - 35, CASE - + AVG ( + 4 ) WHEN + ( + 19 ) THEN 63 * + 72 + + COUNT( * ) END / + CAST( 13 / 63 + - COUNT( * ) AS SIGNED ) ) * + CAST( - 90 * - CAST( NULL AS SIGNED ) AS SIGNED ) WHEN 99 THEN + ( 74 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT + CASE - 80 WHEN - 76 THEN COUNT ( * ) * COALESCE ( + - 35, CASE - + AVG ( + 4 ) WHEN + ( + 19 ) THEN 63 * + 72 + + COUNT ( * ) END / + CAST ( 13 / 63 + - COUNT ( * ) AS INTEGER ) ) * + CAST ( - 90 * - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN 99 THEN + ( 74 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9977
SELECT ( - 10 ) * + COALESCE ( - 15, + MIN( - 5 ), + + COALESCE ( - 76, + 29, 34 ) ) * + + CAST( NULL AS SIGNED ) + 28 / - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT ( - 10 ) * + COALESCE ( - 15, + MIN ( - 5 ), + + COALESCE ( - 76, + 29, 34 ) ) * + + CAST ( NULL AS INTEGER ) + 28 / - 32
----
NULL

query II rowsort
SELECT + 65 AS col0, 35
----
65
35

query II rowsort
SELECT 63 AS col1, - 97
----
63
-97

query II rowsort
SELECT DISTINCT - - 12 col1, + 89 col0
----
12
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9981
SELECT CAST( NULL AS SIGNED ) AS col2, COUNT( * ) + - 83 AS col0
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-9981
SELECT CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) + - 83 AS col0
----
NULL
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9982
SELECT DISTINCT - + 35 col0, 99 + - 40 * 97 + + - MIN( - 64 ) AS col1
----
-35
-3717

skipif mysql # not compatible
query II rowsort label-9982
SELECT DISTINCT - + 35 col0, 99 + - 40 * 97 + + - MIN ( - 64 ) AS col1
----
-35
-3717

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT - COUNT( * ) * - NULLIF ( - 65, + + 83 + + COUNT( * ) * 45 )
----
-65

skipif mysql # not compatible
query I rowsort label-9983
SELECT - COUNT ( * ) * - NULLIF ( - 65, + + 83 + + COUNT ( * ) * 45 )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-9984
SELECT + 66 AS col2, + ( - - COUNT( * ) ) * - - 91 * - 56 AS col0
----
66
-5096

skipif mysql # not compatible
query II rowsort label-9984
SELECT + 66 AS col2, + ( - - COUNT ( * ) ) * - - 91 * - 56 AS col0
----
66
-5096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9985
SELECT ALL - 2 col2, + COUNT( * ) DIV - - CAST( - 26 AS SIGNED ) AS col2
----
-2
0

skipif mysql # not compatible
query II rowsort label-9985
SELECT ALL - 2 col2, + COUNT ( * ) / - - CAST ( - 26 AS INTEGER ) AS col2
----
-2
0

query II rowsort
SELECT + + 89 AS col2, - 23
----
89
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT 91 - - CAST( 55 AS SIGNED ) AS col2
----
146

skipif mysql # not compatible
query I rowsort label-9987
SELECT 91 - - CAST ( 55 AS INTEGER ) AS col2
----
146

query I rowsort
SELECT 32 * - - 33
----
1056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT - 55 * - - 15 - - COALESCE ( CAST( NULL AS SIGNED ), - 73, + ( + - 59 ) ) + - ( + COUNT( * ) ) AS col2
----
-899

skipif mysql # not compatible
query I rowsort label-9989
SELECT - 55 * - - 15 - - COALESCE ( CAST ( NULL AS INTEGER ), - 73, + ( + - 59 ) ) + - ( + COUNT ( * ) ) AS col2
----
-899

query I rowsort
SELECT DISTINCT - 78 + - + 61 AS col2
----
-139

query I rowsort
SELECT ALL + 51 + - 33 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL - 60 + COUNT( + 1 )
----
-59

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL - 60 + COUNT ( + 1 )
----
-59

query I rowsort
SELECT DISTINCT - 79 + - + 35 * 78
----
-2809

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT 57 * - ( - 28 ) * + ( + MAX( ALL - 98 ) ) * + - COALESCE ( - 53, 9, MAX( - 89 ) + - 61 ) * + 98 AS col1
----
-812383152

skipif mysql # not compatible
query I rowsort label-9994
SELECT 57 * - ( - 28 ) * + ( + MAX ( ALL - 98 ) ) * + - COALESCE ( - 53, 9, MAX ( - 89 ) + - 61 ) * + 98 AS col1
----
-812383152

onlyif mysql # aggregate syntax: 
query II rowsort label-9995
SELECT ALL CASE - 20 WHEN - 2 * - + 16 THEN NULL ELSE - COUNT( * ) END, + 88 AS col1
----
-1
88

skipif mysql # not compatible
query II rowsort label-9995
SELECT ALL CASE - 20 WHEN - 2 * - + 16 THEN NULL ELSE - COUNT ( * ) END, + 88 AS col1
----
-1
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9996
SELECT ALL 27 - 35 AS col1, + 61 * 85 - + COALESCE ( + COUNT( * ), - + 66, 35, 66 DIV 45 + 33 + - 69 * 35 ) DIV 17
----
-8
5185

skipif mysql # not compatible
query II rowsort label-9996
SELECT ALL 27 - 35 AS col1, + 61 * 85 - + COALESCE ( + COUNT ( * ), - + 66, 35, 66 / 45 + 33 + - 69 * 35 ) / 17
----
-8
5185

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT ALL COUNT( + - 4 ) * - + 28 * + - 38 AS col0
----
1064

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL COUNT ( + - 4 ) * - + 28 * + - 38 AS col0
----
1064

onlyif mysql # aggregate syntax: 
query II rowsort label-9998
SELECT NULLIF ( - 61, 33 ) AS col0, + 20 * COUNT( * ) + + COUNT( * ) AS col1
----
-61
21

skipif mysql # not compatible
query II rowsort label-9998
SELECT NULLIF ( - 61, 33 ) AS col0, + 20 * COUNT ( * ) + + COUNT ( * ) AS col1
----
-61
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ALL - SUM( ALL + 87 ) - - 22 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL - SUM ( ALL + 87 ) - - 22 AS col1
----
-65

