sqllogictest
Artifact Content
Not logged in

Artifact 2fd3ab75db45e2f146b8d0ef27f355cc18acec1a:


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 I rowsort label-0
SELECT - CAST( + 73 AS SIGNED ) AS col2
----
-73

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1
SELECT ALL + 84 + - CAST( - 63 AS SIGNED ) + + - ( + 48 )
----
99

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL + 84 + - CAST ( - 63 AS INTEGER ) + + - ( + 48 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2
SELECT - CASE - 81 WHEN + 64 THEN NULL WHEN COUNT( * ) * - COUNT( * ) / + 83 THEN + CASE + 12 WHEN + 22 THEN NULL WHEN 97 THEN NULL WHEN 11 * - - CAST( - 30 AS SIGNED ) THEN NULL ELSE 21 END ELSE + - 41 + 53 END * + + 78 + - 43 col2
----
-979

skipif mysql # not compatible
query I rowsort label-2
SELECT - CASE - 81 WHEN + 64 THEN NULL WHEN COUNT ( * ) * - COUNT ( * ) / + 83 THEN + CASE + 12 WHEN + 22 THEN NULL WHEN 97 THEN NULL WHEN 11 * - - CAST ( - 30 AS INTEGER ) THEN NULL ELSE 21 END ELSE + - 41 + 53 END * + + 78 + - 43 col2
----
-979

onlyif mysql # DIV for integer division: 
query I rowsort label-3
SELECT DISTINCT + 87 DIV + - 33 + - - 77 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT + 87 / + - 33 + - - 77 AS col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT DISTINCT 79 DIV 44 + 32 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT 79 / 44 + 32 AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5
SELECT ALL COUNT( * ) / + - MIN( ( - 7 ) ) * - 70 + - - 98 + MIN( ALL 43 ) * 36 * + - 0 - + + CAST( NULL AS SIGNED ) + + - NULLIF ( + 75, + 17 ) / - SUM( + 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL COUNT ( * ) / + - MIN ( ( - 7 ) ) * - 70 + - - 98 + MIN ( ALL 43 ) * 36 * + - 0 - + + CAST ( NULL AS INTEGER ) + + - NULLIF ( + 75, + 17 ) / - SUM ( + 84 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7
SELECT DISTINCT COALESCE ( + 79, + 55, + COUNT( * ) ) DIV + 80 - - 16 + + 6 + - 73 DIV - 34 + 47 col0
----
71

skipif mysql # not compatible
query I rowsort label-7
SELECT DISTINCT COALESCE ( + 79, + 55, + COUNT ( * ) ) / + 80 - - 16 + + 6 + - 73 / - 34 + 47 col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT - 86 * - 51 * - COALESCE ( - + ( - ( - - MIN( - - 73 ) ) ), - + COALESCE ( 96, - + 6, - 53 * ( - + 10 ), - - 11 * + 87 * - - 3 + - 30 ) ) AS col2
----
-320178

skipif mysql # not compatible
query I rowsort label-8
SELECT - 86 * - 51 * - COALESCE ( - + ( - ( - - MIN ( - - 73 ) ) ), - + COALESCE ( 96, - + 6, - 53 * ( - + 10 ), - - 11 * + 87 * - - 3 + - 30 ) ) AS col2
----
-320178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT - 97 + - + CAST( - 23 AS SIGNED ) + - 11 + COUNT( * ) - + 68 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-9
SELECT - 97 + - + CAST ( - 23 AS INTEGER ) + - 11 + COUNT ( * ) - + 68 AS col1
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT - CASE 8 WHEN + + AVG ( DISTINCT + ( + 45 ) ) THEN NULL ELSE - COALESCE ( + 55, - + CAST( NULL AS SIGNED ) + - COUNT( * ) ) * - - 9 + - 75 END + + 95
----
665

skipif mysql # not compatible
query I rowsort label-10
SELECT - CASE 8 WHEN + + AVG ( DISTINCT + ( + 45 ) ) THEN NULL ELSE - COALESCE ( + 55, - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) * - - 9 + - 75 END + + 95
----
665

query I rowsort
SELECT DISTINCT + 76 * + NULLIF ( + + 27, 13 ) AS col2
----
2052

query I rowsort
SELECT ALL + 95 * + 81
----
7695

query II rowsort
SELECT - 43 + + + 82 col2, - 69 + + - 22 AS col1
----
39
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-14
SELECT ALL + 6 * + 21 * 76 - - + 49 AS col0, 92 + CASE - + COUNT( * ) WHEN - COUNT( * ) * 13 - + 63 * + + 60 * + 20 + - - 56 THEN COUNT( * ) WHEN CAST( + COUNT( * ) AS SIGNED ) THEN - - 51 + - 41 ELSE NULL END + + + 44 + 51 * + 67 * 43 AS col0
----
9625
NULL

skipif mysql # not compatible
query II rowsort label-14
SELECT ALL + 6 * + 21 * 76 - - + 49 AS col0, 92 + CASE - + COUNT ( * ) WHEN - COUNT ( * ) * 13 - + 63 * + + 60 * + 20 + - - 56 THEN COUNT ( * ) WHEN CAST ( + COUNT ( * ) AS INTEGER ) THEN - - 51 + - 41 ELSE NULL END + + + 44 + 51 * + 67 * 43 AS col0
----
9625
NULL

query I rowsort
SELECT + ( - 17 ) * + 45
----
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-16
SELECT + - CAST( COUNT( * ) AS SIGNED ) + + 43 + + 65 * 85 + + 58
----
5625

skipif mysql # not compatible
query I rowsort label-16
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) + + 43 + + 65 * 85 + + 58
----
5625

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

query I rowsort
SELECT DISTINCT + 12 * 33
----
396

query I rowsort
SELECT - - 7 * 85 + + 10 AS col0
----
605

query I rowsort
SELECT + - 1 + + + ( 69 ) col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT - COUNT( * ) + - 40
----
-41

skipif mysql # not compatible
query I rowsort label-21
SELECT - COUNT ( * ) + - 40
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-22
SELECT + 15 DIV + 25 * - - 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-22
SELECT + 15 / + 25 * - - 82 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-23
SELECT DISTINCT + + 73 DIV + + 98 + - 11 + - + 17 + 91 * 56 + + 81 DIV 99 AS col2
----
5068

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT + + 73 / + + 98 + - 11 + - + 17 + 91 * 56 + + 81 / 99 AS col2
----
5068

onlyif mysql # DIV for integer division: 
query II rowsort label-24
SELECT DISTINCT - 52 * - 6 + 62 DIV + - 92 AS col1, 79 + 82 AS col0
----
312
161

skipif mysql # not compatible
query II rowsort label-24
SELECT DISTINCT - 52 * - 6 + 62 / + - 92 AS col1, 79 + 82 AS col0
----
312
161

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

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL MIN ( - - 40 )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT + 81 DIV - 26 col0
----
-3

skipif mysql # not compatible
query I rowsort label-26
SELECT + 81 / - 26 col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-27
SELECT ALL + 19 + 39 * - 49 * - + CASE CASE WHEN ( - 45 ) IS NULL THEN + 23 * + 1 END WHEN - 0 THEN + ( + - 60 ) / + + COUNT( * ) * + 40 + - COUNT( * ) WHEN 86 * - - 18 THEN NULL END * + - 78 + + 46 * - - 66 * - NULLIF ( - + 43, 95 ) - + 88 AS col0, 90 AS col1
----
NULL
90

skipif mysql # not compatible
query II rowsort label-27
SELECT ALL + 19 + 39 * - 49 * - + CASE CASE WHEN ( - 45 ) IS NULL THEN + 23 * + 1 END WHEN - 0 THEN + ( + - 60 ) / + + COUNT ( * ) * + 40 + - COUNT ( * ) WHEN 86 * - - 18 THEN NULL END * + - 78 + + 46 * - - 66 * - NULLIF ( - + 43, 95 ) - + 88 AS col0, 90 AS col1
----
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT - NULLIF ( 98, 33 * 59 * + COALESCE ( + 7, + MIN( + 80 ) ) )
----
-98

skipif mysql # not compatible
query I rowsort label-28
SELECT - NULLIF ( 98, 33 * 59 * + COALESCE ( + 7, + MIN ( + 80 ) ) )
----
-98

query I rowsort
SELECT ALL - 38 + + 12
----
-26

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

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

query I rowsort
SELECT - CASE 21 WHEN - 78 THEN NULL WHEN + 75 THEN ( + 15 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-32
SELECT 24 DIV 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-32
SELECT 24 / 48 AS col2
----
0

query I rowsort
SELECT + 22 + - + 10 AS col0
----
12

query I rowsort
SELECT 83 + - 14 * + ( - + 60 )
----
923

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT 60 + COUNT( + 46 ) col1
----
61

skipif mysql # not compatible
query I rowsort label-35
SELECT 60 + COUNT ( + 46 ) col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-36
SELECT DISTINCT COUNT( ALL + 59 ) + + - CAST( 93 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT COUNT ( ALL + 59 ) + + - CAST ( 93 AS INTEGER )
----
-92

query I rowsort
SELECT ( + ( 19 ) ) + - 76 col0
----
-57

query I rowsort
SELECT DISTINCT + 80 + 97
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-39
SELECT ALL 98 + + COALESCE ( 69, - CASE - 22 WHEN - 22 THEN + 72 + + - 0 * + CASE - 37 WHEN - 0 THEN NULL ELSE COUNT( * ) END * + 94 + + 95 WHEN - 80 - - 24 THEN - - 83 + - 74 END * - 57, + 5 ) + - 92 * + 25 * + NULLIF ( + + ( + 78 ), - 56 ) * 64 * + COALESCE ( 7, + + 1 + - 34 - + MIN( + + CASE - - 44 WHEN - CAST( - 82 AS SIGNED ) THEN - 70 WHEN - 82 THEN 96 END ) + - - CAST( 79 AS SIGNED ) DIV 54 ) AS col1
----
-80371033

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL 98 + + COALESCE ( 69, - CASE - 22 WHEN - 22 THEN + 72 + + - 0 * + CASE - 37 WHEN - 0 THEN NULL ELSE COUNT ( * ) END * + 94 + + 95 WHEN - 80 - - 24 THEN - - 83 + - 74 END * - 57, + 5 ) + - 92 * + 25 * + NULLIF ( + + ( + 78 ), - 56 ) * 64 * + COALESCE ( 7, + + 1 + - 34 - + MIN ( + + CASE - - 44 WHEN - CAST ( - 82 AS INTEGER ) THEN - 70 WHEN - 82 THEN 96 END ) + - - CAST ( 79 AS INTEGER ) / 54 ) AS col1
----
-80371033

query I rowsort
SELECT 95 + - - 3
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT DISTINCT COUNT( * ) - 60
----
-59

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT COUNT ( * ) - 60
----
-59

query I rowsort
SELECT - 5 * - 55 + - NULLIF ( 16, - - AVG ( ALL - - 55 ) ) AS col1
----
259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-43
SELECT 8 * + COUNT( - 79 ) col2, + CAST( NULL AS SIGNED )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-43
SELECT 8 * + COUNT ( - 79 ) col2, + CAST ( NULL AS INTEGER )
----
8
NULL

query I rowsort
SELECT 78 * - 37
----
-2886

query I rowsort
SELECT 90 * + 1 + - 9 AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT 85 DIV - - 29 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-46
SELECT 85 / - - 29 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL - SUM( ALL 51 ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL - SUM ( ALL 51 ) col2
----
-51

query II rowsort
SELECT DISTINCT - 36 AS col1, - 96 AS col1
----
-36
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-49
SELECT DISTINCT - NULLIF ( + 15, - 74 * + 91 ) DIV - - SUM( + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT - NULLIF ( + 15, - 74 * + 91 ) / - - SUM ( + 54 )
----
0

query I rowsort
SELECT + 54 * + 80
----
4320

query I rowsort
SELECT ALL - - 50 * + 25 AS col1
----
1250

query I rowsort
SELECT DISTINCT - + 0 * - + 14
----
0

query I rowsort
SELECT - 4 * + - ( - 59 ) AS col0
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT ALL + COUNT( DISTINCT 57 ) + - + 72 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL + COUNT ( DISTINCT 57 ) + - + 72 AS col2
----
-71

query I rowsort
SELECT NULLIF ( + 48, + 40 * + - 98 + 16 + + + NULLIF ( + 86, + - 41 * - 45 + - 59 ) )
----
48

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

query I rowsort
SELECT DISTINCT + 48 + ( + 74 ) * + + 19
----
1454

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT DISTINCT + - 33 + - - COALESCE ( - + COUNT( * ), + 35 * 85 )
----
-34

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT + - 33 + - - COALESCE ( - + COUNT ( * ), + 35 * 85 )
----
-34

query I rowsort
SELECT 18 + + + 76 AS col1
----
94

query I rowsort
SELECT DISTINCT - COALESCE ( + - 82, 42 )
----
82

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

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

query I rowsort
SELECT 63 + 52 col0
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-63
SELECT DISTINCT - 84 * - 19 * COUNT( ALL - + 90 ) AS col2, 1
----
1596
1

skipif mysql # not compatible
query II rowsort label-63
SELECT DISTINCT - 84 * - 19 * COUNT ( ALL - + 90 ) AS col2, 1
----
1596
1

query II rowsort
SELECT ALL 81, + 51 AS col2
----
81
51

query II rowsort
SELECT 59 AS col1, - 4 - - 28 AS col0
----
59
24

query I rowsort
SELECT ALL - 66 - 3 AS col0
----
-69

query I rowsort
SELECT DISTINCT 57 * + 28 AS col1
----
1596

query II rowsort
SELECT ALL 91, 46 AS col0
----
91
46

onlyif mysql # DIV for integer division: 
query I rowsort label-69
SELECT ALL 86 DIV 38
----
2

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL 86 / 38
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT 88 * - - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-70
SELECT 88 * - - COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-71
SELECT - COUNT( * ), + 57 + 1 + + 68 AS col0
----
-1
126

skipif mysql # not compatible
query II rowsort label-71
SELECT - COUNT ( * ), + 57 + 1 + + 68 AS col0
----
-1
126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT MAX( ALL + + ( - 4 ) ) + + 57 col2
----
53

skipif mysql # not compatible
query I rowsort label-73
SELECT MAX ( ALL + + ( - 4 ) ) + + 57 col2
----
53

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

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

query I rowsort
SELECT ALL 14 * 41 col0
----
574

query I rowsort
SELECT 13 * 78
----
1014

query II rowsort
SELECT 20 - - ( + 66 ) - + 96 AS col2, + 8
----
-10
8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-79
SELECT + 13 DIV - COUNT( * ) + + 29 + 82
----
98

skipif mysql # not compatible
query I rowsort label-79
SELECT + 13 / - COUNT ( * ) + + 29 + 82
----
98

query II rowsort
SELECT ALL - 65, + 2 AS col1
----
-65
2

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT ALL NULLIF ( + CASE NULLIF ( + 67, - 84 ) WHEN + MIN( + 62 ) THEN - + 98 ELSE NULL END, 3 * + COUNT( * ) ) * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL NULLIF ( + CASE NULLIF ( + 67, - 84 ) WHEN + MIN ( + 62 ) THEN - + 98 ELSE NULL END, 3 * + COUNT ( * ) ) * + 51
----
NULL

query I rowsort
SELECT - 91 + + 73 AS col2
----
-18

query II rowsort
SELECT + - 84, - 5 AS col0
----
-84
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT ALL + 27 * - 19 + + - COUNT( * ) - 96 * + 45
----
-4834

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL + 27 * - 19 + + - COUNT ( * ) - 96 * + 45
----
-4834

query I rowsort
SELECT - 27 * + 10 + - + 90 * + - 9 * 45 * 90 * + 42 - - 89 AS col0
----
137780819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-86
SELECT 74 * + ( + 16 ) DIV - 16 + - + 3 + 91 * SUM( - 95 )
----
-8722

skipif mysql # not compatible
query I rowsort label-86
SELECT 74 * + ( + 16 ) / - 16 + - + 3 + 91 * SUM ( - 95 )
----
-8722

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

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

query I rowsort
SELECT DISTINCT + 34 * - 10 + + 94 AS col2
----
-246

query II rowsort
SELECT + 86, + 84 + - + 76 AS col1
----
86
8

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT - - COUNT( * ) + + + COALESCE ( - + 29, - 1 ) + + 16
----
-12

skipif mysql # not compatible
query I rowsort label-90
SELECT - - COUNT ( * ) + + + COALESCE ( - + 29, - 1 ) + + 16
----
-12

query I rowsort
SELECT DISTINCT - 60 + - + 74 * + 3
----
-282

onlyif mysql # DIV for integer division: 
query II rowsort label-92
SELECT ALL 33 DIV + 88 AS col2, 66 DIV 49 * - 96
----
0
-96

skipif mysql # not compatible
query II rowsort label-92
SELECT ALL 33 / + 88 AS col2, 66 / 49 * - 96
----
0
-96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-94
SELECT + 21 DIV + - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-94
SELECT + 21 / + - 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT + + MIN( ALL + 5 ) * 71 + - 71
----
284

skipif mysql # not compatible
query I rowsort label-95
SELECT + + MIN ( ALL + 5 ) * 71 + - 71
----
284

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT + + 47 * + MIN( DISTINCT 28 ) col2
----
1316

skipif mysql # not compatible
query I rowsort label-96
SELECT + + 47 * + MIN ( DISTINCT 28 ) col2
----
1316

query I rowsort
SELECT DISTINCT + + 30 * 7 * + 5 AS col2
----
1050

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

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

query I rowsort
SELECT ALL 18 * 69 + 62 * - ( 98 ) AS col1
----
-4834

query I rowsort
SELECT + + ( 31 ) * - ( - 60 ) + + + 89 + - ( - + 6 ) col2
----
1955

onlyif mysql # DIV for integer division: 
query II rowsort label-101
SELECT DISTINCT - - 1 * 88 DIV - - 14 + - - 23, 62 col2
----
29
62

skipif mysql # not compatible
query II rowsort label-101
SELECT DISTINCT - - 1 * 88 / - - 14 + - - 23, 62 col2
----
29
62

query II rowsort
SELECT DISTINCT + 30, - 34 col1
----
30
-34

query II rowsort
SELECT ALL - 98 - 53 AS col1, + 67 * + + ( + + 68 ) AS col2
----
-151
4556

query I rowsort
SELECT DISTINCT ( - + COALESCE ( 59, + 91 ) )
----
-59

query I rowsort
SELECT DISTINCT - 80 - - - 11 * - 11 * 47 AS col1
----
5607

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT - COALESCE ( - - COUNT( * ), + 53 ) + - 46 * 84 * - COUNT( * ) + + COALESCE ( - 23, - - ( - 46 ), 12 + - 47 + 54 ) - 58
----
3782

skipif mysql # not compatible
query I rowsort label-106
SELECT - COALESCE ( - - COUNT ( * ), + 53 ) + - 46 * 84 * - COUNT ( * ) + + COALESCE ( - 23, - - ( - 46 ), 12 + - 47 + 54 ) - 58
----
3782

query I rowsort
SELECT ALL NULLIF ( + 46, + + 73 ) col1
----
46

query II rowsort
SELECT - 98 * 81 AS col2, + 42 * 24 * + 38
----
-7938
38304

onlyif mysql # aggregate syntax: 
query II rowsort label-109
SELECT DISTINCT NULLIF ( - NULLIF ( - CASE SUM( DISTINCT 6 ) WHEN + 55 + - - COUNT( ALL + ( + 31 ) ) * + 64 THEN NULL WHEN - COUNT( * ) THEN - 67 + + - 90 END, + 3 * 90 / 67 ), 81 ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-109
SELECT DISTINCT NULLIF ( - NULLIF ( - CASE SUM ( DISTINCT 6 ) WHEN + 55 + - - COUNT ( ALL + ( + 31 ) ) * + 64 THEN NULL WHEN - COUNT ( * ) THEN - 67 + + - 90 END, + 3 * 90 / 67 ), 81 ) AS col0, COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL - 35 * ( + 17 )
----
-595

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-111
SELECT DISTINCT CASE - 86 WHEN - CASE + 36 WHEN + 88 * + 42 THEN NULL WHEN + - 54 THEN - - 43 END + ( CAST( + 28 AS DECIMAL ) ) + + 84 * 12 + + + NULLIF ( + 89, - 80 ) THEN NULL WHEN - 12 * 6 THEN - 37 + 91 * + ( + - 19 ) * + + COUNT( * ) * 86 - ( 18 ) + - 91 / - + 52 * + COUNT( * ) * - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT CASE - 86 WHEN - CASE + 36 WHEN + 88 * + 42 THEN NULL WHEN + - 54 THEN - - 43 END + ( CAST ( + 28 AS REAL ) ) + + 84 * 12 + + + NULLIF ( + 89, - 80 ) THEN NULL WHEN - 12 * 6 THEN - 37 + 91 * + ( + - 19 ) * + + COUNT ( * ) * 86 - ( 18 ) + - 91 / - + 52 * + COUNT ( * ) * - 54 END
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 48, 75 + + 78 )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-113
SELECT ALL + 36 * + COALESCE ( + 60, - 14 DIV - NULLIF ( CASE - 73 WHEN - COUNT( * ) + + 2 * 63 THEN + CASE - 43 WHEN - 43 THEN - 62 * + 99 WHEN - 83 - + 72 THEN NULL END END, - COALESCE ( + SUM( + 12 ), - 19 * + 20 ) DIV + + 46 + - 71 - 72 + + 15 ) + - ( + 53 ) + - 30 * + COALESCE ( - 68, + + 30 ) * + 28 )
----
2160

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + 36 * + COALESCE ( + 60, - 14 / - NULLIF ( CASE - 73 WHEN - COUNT ( * ) + + 2 * 63 THEN + CASE - 43 WHEN - 43 THEN - 62 * + 99 WHEN - 83 - + 72 THEN NULL END END, - COALESCE ( + SUM ( + 12 ), - 19 * + 20 ) / + + 46 + - 71 - 72 + + 15 ) + - ( + 53 ) + - 30 * + COALESCE ( - 68, + + 30 ) * + 28 )
----
2160

query II rowsort
SELECT + 21 * - - CASE 97 WHEN + 48 THEN 48 END AS col0, - 58 AS col1
----
NULL
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-115
SELECT DISTINCT ( NULLIF ( + + COUNT( * ), - - COUNT( * ) * CAST( + 83 AS DECIMAL ) + - + CAST( NULL AS SIGNED ) + - 2 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT ( NULLIF ( + + COUNT ( * ), - - COUNT ( * ) * CAST ( + 83 AS REAL ) + - + CAST ( NULL AS INTEGER ) + - 2 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 18 * - - 75 AS col1
----
1350

onlyif mysql # aggregate syntax: 
query II rowsort label-117
SELECT ALL ( - 25 ) AS col0, - COUNT( * ) * 19 - - + COUNT( ALL + ( 10 ) ) + ( + - 99 ) AS col2
----
-25
-117

skipif mysql # not compatible
query II rowsort label-117
SELECT ALL ( - 25 ) AS col0, - COUNT ( * ) * 19 - - + COUNT ( ALL + ( 10 ) ) + ( + - 99 ) AS col2
----
-25
-117

query I rowsort
SELECT + 14 + 5 * 46 - + 98 AS col2
----
146

query I rowsort
SELECT + CASE - + 84 WHEN + + 82 * - 69 THEN - 31 END
----
NULL

query I rowsort
SELECT DISTINCT + 15 * + - 26 + 77 AS col1
----
-313

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL COUNT( * ) * + 63 + + 83 * - + ( + ( + 20 ) )
----
-1597

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL COUNT ( * ) * + 63 + + 83 * - + ( + ( + 20 ) )
----
-1597

onlyif mysql # aggregate syntax: 
query II rowsort label-122
SELECT + MIN( + 6 ) AS col1, + 84 AS col1
----
6
84

skipif mysql # not compatible
query II rowsort label-122
SELECT + MIN ( + 6 ) AS col1, + 84 AS col1
----
6
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-123
SELECT + 92 * - - AVG ( + - 97 ) * ( - + 1 ) + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-123
SELECT + 92 * - - AVG ( + - 97 ) * ( - + 1 ) + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + - ( 84 ) * - 78 col0
----
6552

query I rowsort
SELECT DISTINCT ( - 17 ) * 42
----
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-126
SELECT ALL - 51 * - + 92 + - 15 * - - 51 + ( + CAST( NULL AS SIGNED ) ) + + + 42 / - 64 * - MIN( + 79 ) * - - 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL - 51 * - + 92 + - 15 * - - 51 + ( + CAST ( NULL AS INTEGER ) ) + + + 42 / - 64 * - MIN ( + 79 ) * - - 76 AS col2
----
NULL

query I rowsort
SELECT ALL + ( + NULLIF ( - 67, ( + 31 ) ) )
----
-67

query II rowsort
SELECT DISTINCT 6 * + + 62 * COALESCE ( + 24, - - 98 * 43 + + 71 ) AS col0, - 30 AS col1
----
8928
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT ALL + COALESCE ( - COUNT( * ), - 42 * 73 + - + 58 + MIN( ALL 45 ) DIV - 46 - 99 + + 27 + 89 * - - 34 - - COUNT( * ) * 93 + - 95 DIV + 19 * - - CASE - COUNT( * ) WHEN 7 * 82 THEN NULL ELSE + - NULLIF ( + 5, 36 * 49 + - 44 ) END )
----
-1

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + COALESCE ( - COUNT ( * ), - 42 * 73 + - + 58 + MIN ( ALL 45 ) / - 46 - 99 + + 27 + 89 * - - 34 - - COUNT ( * ) * 93 + - 95 / + 19 * - - CASE - COUNT ( * ) WHEN 7 * 82 THEN NULL ELSE + - NULLIF ( + 5, 36 * 49 + - 44 ) END )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT DISTINCT + 24 * 57 * 38 * + + 10 * MAX( DISTINCT 7 ) AS col1
----
3638880

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT + 24 * 57 * 38 * + + 10 * MAX ( DISTINCT 7 ) AS col1
----
3638880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-131
SELECT ALL - 39 * COUNT( * ) - + + 46 DIV - - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL - 39 * COUNT ( * ) - + + 46 / - - COUNT ( * )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-132
SELECT ALL 75 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL 75 / + 88
----
0

query I rowsort
SELECT - 4 * + 25 col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT DISTINCT + 21 * + 52 * - MAX( + + 54 ) * 59 + - 17 + + MAX( DISTINCT - + 44 ) + + 68 + + 76
----
-3479029

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT + 21 * + 52 * - MAX ( + + 54 ) * 59 + - 17 + + MAX ( DISTINCT - + 44 ) + + 68 + + 76
----
-3479029

query I rowsort
SELECT + 75 * 5 AS col0
----
375

query I rowsort
SELECT - 39 * NULLIF ( 68, 25 * + - 33 )
----
-2652

query I rowsort
SELECT ALL + 4 * - 97 AS col1
----
-388

query I rowsort
SELECT DISTINCT 74 * 63
----
4662

query I rowsort
SELECT - 45 * - ( + 92 )
----
4140

query I rowsort
SELECT ALL 50 * - 39
----
-1950

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

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

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

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL - CAST ( - 92 AS INTEGER ) + + 89 AS col2
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT COUNT( * ) * - COALESCE ( 49, + 87 )
----
-49

skipif mysql # not compatible
query I rowsort label-143
SELECT COUNT ( * ) * - COALESCE ( 49, + 87 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-144
SELECT DISTINCT + CAST( ( + CASE 19 WHEN 41 THEN NULL WHEN + - 79 + + CAST( COALESCE ( 98, + 90 * MIN( + 89 ) / 15 + - 60 ) AS SIGNED ) THEN NULL WHEN - 77 THEN + + 32 END ) AS SIGNED ) * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT + CAST ( ( + CASE 19 WHEN 41 THEN NULL WHEN + - 79 + + CAST ( COALESCE ( 98, + 90 * MIN ( + 89 ) / 15 + - 60 ) AS INTEGER ) THEN NULL WHEN - 77 THEN + + 32 END ) AS INTEGER ) * + 42
----
NULL

query I rowsort
SELECT ALL - 27 + 14 - + 1 * + 67 AS col2
----
-80

query I rowsort
SELECT ALL 40 * + 76
----
3040

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

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

query I rowsort
SELECT DISTINCT + 35 * 68 col1
----
2380

query I rowsort
SELECT DISTINCT - CASE - - 9 WHEN - + 94 THEN - 74 * 48 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT ( CAST( 54 AS SIGNED ) ) + - MIN( ALL + 72 ) * 96 AS col1
----
-6858

skipif mysql # not compatible
query I rowsort label-150
SELECT ( CAST ( 54 AS INTEGER ) ) + - MIN ( ALL + 72 ) * 96 AS col1
----
-6858

onlyif mysql # DIV for integer division: 
query I rowsort label-151
SELECT + ( 41 ) DIV ( + 81 )
----
0

skipif mysql # not compatible
query I rowsort label-151
SELECT + ( 41 ) / ( + 81 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-152
SELECT + 89 + CAST( + + 98 AS SIGNED )
----
187

skipif mysql # not compatible
query I rowsort label-152
SELECT + 89 + CAST ( + + 98 AS INTEGER )
----
187

onlyif mysql # DIV for integer division: 
query II rowsort label-153
SELECT ALL + 11 - 5 DIV + 80 AS col1, 77 + - 5
----
11
72

skipif mysql # not compatible
query II rowsort label-153
SELECT ALL + 11 - 5 / + 80 AS col1, 77 + - 5
----
11
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-154
SELECT - 98 + 62 + - + ( - + COUNT( 40 ) ) + - - 25 + - + 81 + - COALESCE ( + + 55, + 73, - - 7 * 39 ) DIV - 73 + - 87
----
-178

skipif mysql # not compatible
query I rowsort label-154
SELECT - 98 + 62 + - + ( - + COUNT ( 40 ) ) + - - 25 + - + 81 + - COALESCE ( + + 55, + 73, - - 7 * 39 ) / - 73 + - 87
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT ( + 97 ) * - - 14 * + - NULLIF ( - COUNT( * ), - ( 27 ) ) * COUNT( * ) - - - MAX( 77 ) + 81 AS col1
----
1362

skipif mysql # not compatible
query I rowsort label-155
SELECT ( + 97 ) * - - 14 * + - NULLIF ( - COUNT ( * ), - ( 27 ) ) * COUNT ( * ) - - - MAX ( 77 ) + 81 AS col1
----
1362

query I rowsort
SELECT 30 * - 68 + 12 + - 39
----
-2067

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT DISTINCT 51 DIV 73 col2
----
0

skipif mysql # not compatible
query I rowsort label-157
SELECT DISTINCT 51 / 73 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT ALL - - SUM( ( - 35 ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL - - SUM ( ( - 35 ) ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT + - COALESCE ( - 70, - COUNT( * ), ( - 60 ) ) * NULLIF ( + 92, + - 9 ) + - COUNT( ALL 22 ) AS col2
----
6439

skipif mysql # not compatible
query I rowsort label-159
SELECT + - COALESCE ( - 70, - COUNT ( * ), ( - 60 ) ) * NULLIF ( + 92, + - 9 ) + - COUNT ( ALL 22 ) AS col2
----
6439

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-160
SELECT DISTINCT - - NULLIF ( + 91, 0 + + + CASE + ( - 8 ) WHEN 87 * - CASE 14 WHEN - - 10 THEN + 47 * - + 22 WHEN CAST( - 76 AS DECIMAL ) - - - 59 * - + 89 - - 50 / 37 + + COALESCE ( 12, - 9, COUNT( * ) * 23 + + + 11 + 96 ) * ( 62 ) THEN COUNT( * ) END THEN NULL ELSE + + 64 / 64 + - 12 END )
----
91

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT - - NULLIF ( + 91, 0 + + + CASE + ( - 8 ) WHEN 87 * - CASE 14 WHEN - - 10 THEN + 47 * - + 22 WHEN CAST ( - 76 AS REAL ) - - - 59 * - + 89 - - 50 / 37 + + COALESCE ( 12, - 9, COUNT ( * ) * 23 + + + 11 + 96 ) * ( 62 ) THEN COUNT ( * ) END THEN NULL ELSE + + 64 / 64 + - 12 END )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL + ( - 91 ) * COUNT( * ) * - 98
----
8918

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL + ( - 91 ) * COUNT ( * ) * - 98
----
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL MAX( ALL 55 ) * 48
----
2640

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL MAX ( ALL 55 ) * 48
----
2640

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

skipif mysql # not compatible
query I rowsort label-163
SELECT COUNT ( * ) + + 58 AS col1
----
59

query I rowsort
SELECT DISTINCT 16 * - 13
----
-208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-165
SELECT CAST( NULL AS SIGNED ) * + CASE + CAST( + + 31 AS SIGNED ) WHEN COUNT( * ) THEN NULL ELSE - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-165
SELECT CAST ( NULL AS INTEGER ) * + CASE + CAST ( + + 31 AS INTEGER ) WHEN COUNT ( * ) THEN NULL ELSE - 66 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-166
SELECT ALL + CAST( MIN( + 42 ) AS SIGNED ) + + 36
----
78

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + CAST ( MIN ( + 42 ) AS INTEGER ) + + 36
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-167
SELECT ALL 3 DIV + 31 * 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL 3 / + 31 * 67 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-168
SELECT 94 DIV CAST( - 79 AS SIGNED ) DIV - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-168
SELECT 94 / CAST ( - 79 AS INTEGER ) / - + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-169
SELECT ( + ( + COUNT( * ) ) ) + SUM( ALL - - 37 ) + - NULLIF ( - 34, + 31 + 79 * 89 ) - + SUM( ALL + 6 ) DIV 26 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-169
SELECT ( + ( + COUNT ( * ) ) ) + SUM ( ALL - - 37 ) + - NULLIF ( - 34, + 31 + 79 * 89 ) - + SUM ( ALL + 6 ) / 26 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT ALL 20 * - + COUNT( * ) * + - 51 col1
----
1020

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL 20 * - + COUNT ( * ) * + - 51 col1
----
1020

query I rowsort
SELECT DISTINCT - 75 + + 6 AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-172
SELECT ALL + - 37 * MAX( ALL - - ( + 22 ) ) DIV - COUNT( * ) + 14 * - + ( + 94 ) AS col1
----
-502

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + - 37 * MAX ( ALL - - ( + 22 ) ) / - COUNT ( * ) + 14 * - + ( + 94 ) AS col1
----
-502

query I rowsort
SELECT 62 + - 86 AS col2
----
-24

query I rowsort
SELECT + NULLIF ( - 12, 3 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT - - SUM( - 81 ), 5 AS col0
----
-81
5

skipif mysql # not compatible
query II rowsort label-175
SELECT - - SUM ( - 81 ), 5 AS col0
----
-81
5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT + - 0 * - ( COUNT( * ) ) + + - ( ( 17 ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-178
SELECT + - 0 * - ( COUNT ( * ) ) + + - ( ( 17 ) ) AS col1
----
-17

query I rowsort
SELECT 70 * - - 54 * - + 91 AS col2
----
-343980

query II rowsort
SELECT 31 * - 69 AS col1, - 85
----
-2139
-85

query I rowsort
SELECT ALL + 90 * - - 34 AS col2
----
3060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-182
SELECT DISTINCT - + COUNT( * ) * - - 94 AS col0, CASE 6 WHEN + + 57 THEN NULL WHEN 99 THEN 62 / + ( 41 ) + - CAST( NULL AS SIGNED ) * - NULLIF ( + - 95, + NULLIF ( + + 16, + 86 + - COUNT( * ) ) + 49 + 9 ) END AS col1
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-182
SELECT DISTINCT - + COUNT ( * ) * - - 94 AS col0, CASE 6 WHEN + + 57 THEN NULL WHEN 99 THEN 62 / + ( 41 ) + - CAST ( NULL AS INTEGER ) * - NULLIF ( + - 95, + NULLIF ( + + 16, + 86 + - COUNT ( * ) ) + 49 + 9 ) END AS col1
----
-94
NULL

query II rowsort
SELECT DISTINCT - 97 * 22 AS col1, - 2 AS col2
----
-2134
-2

query I rowsort
SELECT + 3 * + 95 AS col2
----
285

query I rowsort
SELECT 77 * + 10 + - 70
----
700

query II rowsort
SELECT + 21 col1, 68 + 49
----
21
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-187
SELECT 14 DIV - + MIN( - - 98 ) col1, - 61 + 3 col0
----
0
-58

skipif mysql # not compatible
query II rowsort label-187
SELECT 14 / - + MIN ( - - 98 ) col1, - 61 + 3 col0
----
0
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-188
SELECT ALL - 59 AS col1, 28 * - CAST( - 15 AS SIGNED )
----
-59
420

skipif mysql # not compatible
query II rowsort label-188
SELECT ALL - 59 AS col1, 28 * - CAST ( - 15 AS INTEGER )
----
-59
420

query I rowsort
SELECT ALL 22 + - + 20 AS col1
----
2

query II rowsort
SELECT 98 * - 93 * 57 AS col1, + 67
----
-519498
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT DISTINCT 57 + - 46 + - - COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT 57 + - 46 + - - COUNT ( * ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-193
SELECT ALL CASE + 71 WHEN + 57 - + COUNT( * ) THEN - 34 * + 27 + - ( + COALESCE ( + CAST( 69 AS SIGNED ), + 25 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL CASE + 71 WHEN + 57 - + COUNT ( * ) THEN - 34 * + 27 + - ( + COALESCE ( + CAST ( 69 AS INTEGER ), + 25 ) ) ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL ( + + 81 ) + COUNT ( * ) AS col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-195
SELECT + 91 * + 88 * + CAST( NULL AS SIGNED ) / + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-195
SELECT + 91 * + 88 * + CAST ( NULL AS INTEGER ) / + 4 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-196
SELECT ALL MIN( - - 85 ) + + 75 * - + 74 + - + 69 DIV CAST( + 20 AS SIGNED ) col1
----
-5468

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL MIN ( - - 85 ) + + 75 * - + 74 + - + 69 / CAST ( + 20 AS INTEGER ) col1
----
-5468

query I rowsort
SELECT DISTINCT 15 * + 12 AS col1
----
180

query I rowsort
SELECT + 26 * 26
----
676

query II rowsort
SELECT 76 AS col2, - 78 AS col0
----
76
-78

query I rowsort
SELECT DISTINCT 43 + + - 38
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT ALL 2 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL 2 / 84
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-202
SELECT DISTINCT + ( + 18 ) - - 18 col1, COUNT( * ) * + 97
----
36
97

skipif mysql # not compatible
query II rowsort label-202
SELECT DISTINCT + ( + 18 ) - - 18 col1, COUNT ( * ) * + 97
----
36
97

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

skipif mysql # not compatible
query I rowsort label-203
SELECT - - CAST ( - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-204
SELECT DISTINCT - 2 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT - 2 / 67
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-205
SELECT DISTINCT 84 - - 71 * + - MAX( ALL 52 ) + + 19 + + 25 - - 7 * MIN( DISTINCT + 40 ) DIV 70 + 97 * - - 18 AS col1
----
-1814

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT 84 - - 71 * + - MAX ( ALL 52 ) + + 19 + + 25 - - 7 * MIN ( DISTINCT + 40 ) / 70 + 97 * - - 18 AS col1
----
-1814

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT ALL 88 DIV - - 2 + + COALESCE ( 30, - ( - 91 ) )
----
74

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL 88 / - - 2 + + COALESCE ( 30, - ( - 91 ) )
----
74

query I rowsort
SELECT + 58 * - 40
----
-2320

query I rowsort
SELECT ALL 2 - + 32
----
-30

query II rowsort
SELECT - 0 AS col0, 29
----
0
29

query I rowsort
SELECT + - ( 53 ) - 81
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT DISTINCT 96 * CASE - 15 WHEN - 0 - 81 THEN 28 - 35 WHEN + COUNT( * ) THEN NULL END - + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT 96 * CASE - 15 WHEN - 0 - 81 THEN 28 - 35 WHEN + COUNT ( * ) THEN NULL END - + 17
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-212
SELECT DISTINCT 73 * + - 71 - COALESCE ( - - 72, + 18 DIV 38 + COUNT( 83 ), + 39 )
----
-5255

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT 73 * + - 71 - COALESCE ( - - 72, + 18 / 38 + COUNT ( 83 ), + 39 )
----
-5255

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - AVG ( ( + 84 ) ) * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - AVG ( ( + 84 ) ) * - 82
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-215
SELECT - - 90 * + 62 * 57 AS col2, MAX( + + 74 )
----
318060
74

skipif mysql # not compatible
query II rowsort label-215
SELECT - - 90 * + 62 * 57 AS col2, MAX ( + + 74 )
----
318060
74

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT - - MAX( + + 51 ) + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-216
SELECT - - MAX ( + + 51 ) + COUNT ( * ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT ALL - 51 * - 38 + - 5 + CASE + + 47 WHEN COUNT( * ) THEN + 38 WHEN + 67 THEN NULL ELSE - + 14 END
----
1919

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL - 51 * - 38 + - 5 + CASE + + 47 WHEN COUNT ( * ) THEN + 38 WHEN + 67 THEN NULL ELSE - + 14 END
----
1919

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT + 33 * + NULLIF ( 85, - 78 * - 22 ) * 49 + - + ( - 33 ) + - 10 + - 60 * - + 14 + + + ( + COALESCE ( - + 24, ( - - COUNT( * ) ) + + COUNT( * ) + + 55, - 9 ) )
----
138284

skipif mysql # not compatible
query I rowsort label-218
SELECT + 33 * + NULLIF ( 85, - 78 * - 22 ) * 49 + - + ( - 33 ) + - 10 + - 60 * - + 14 + + + ( + COALESCE ( - + 24, ( - - COUNT ( * ) ) + + COUNT ( * ) + + 55, - 9 ) )
----
138284

onlyif mysql # DIV for integer division: 
query I rowsort label-219
SELECT + 75 DIV + 30 + + - 7 * - 24
----
170

skipif mysql # not compatible
query I rowsort label-219
SELECT + 75 / + 30 + + - 7 * - 24
----
170

query I rowsort
SELECT ALL 88 * + + 6 + + 88
----
616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-221
SELECT DISTINCT COUNT( * ) * + 32 + + 88 + - 96 DIV + - ( + 14 ) + + 23
----
149

skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT COUNT ( * ) * + 32 + + 88 + - 96 / + - ( + 14 ) + + 23
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-222
SELECT ALL - 14 * + - ( + CAST( NULL AS SIGNED ) ) * + 36 + - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL - 14 * + - ( + CAST ( NULL AS INTEGER ) ) * + 36 + - + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT NULLIF ( 84, + COALESCE ( 52, + 56 * + + COUNT( DISTINCT - + 97 ) / - + 45 + + COUNT( * ) + + + MIN( DISTINCT - - 69 ), COUNT( * ) + 28 - - - 62 ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-223
SELECT NULLIF ( 84, + COALESCE ( 52, + 56 * + + COUNT ( DISTINCT - + 97 ) / - + 45 + + COUNT ( * ) + + + MIN ( DISTINCT - - 69 ), COUNT ( * ) + 28 - - - 62 ) ) AS col0
----
84

query I rowsort
SELECT DISTINCT - 0 * 78 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL + 53 * - + 25 + + COUNT( * ) AS col1
----
-1324

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL + 53 * - + 25 + + COUNT ( * ) AS col1
----
-1324

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT - ( - 53 ) * - - 58 + - 14 + + + 23 * + ( NULLIF ( CASE - 26 WHEN + COUNT( * ) * + 56 THEN - 95 * + COUNT( * ) - COUNT( * ) + SUM( + ( - - 19 ) ) / - 23 WHEN + + 73 THEN NULL END, + - 74 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT - ( - 53 ) * - - 58 + - 14 + + + 23 * + ( NULLIF ( CASE - 26 WHEN + COUNT ( * ) * + 56 THEN - 95 * + COUNT ( * ) - COUNT ( * ) + SUM ( + ( - - 19 ) ) / - 23 WHEN + + 73 THEN NULL END, + - 74 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-227
SELECT - MIN( + 93 ) DIV + 31 + - 35 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-227
SELECT - MIN ( + 93 ) / + 31 + - 35 AS col0
----
-38

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

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

query I rowsort
SELECT + CASE 67 WHEN + 29 THEN 49 ELSE + 90 END
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT - 38 * COUNT( * ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-230
SELECT - 38 * COUNT ( * ) col0
----
-38

query I rowsort
SELECT - 14 * + 65
----
-910

query I rowsort
SELECT ALL 2 - + 1 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-233
SELECT SUM( + 96 ) AS col2, + 85 DIV + 99 col1
----
96
0

skipif mysql # not compatible
query II rowsort label-233
SELECT SUM ( + 96 ) AS col2, + 85 / + 99 col1
----
96
0

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

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

query I rowsort
SELECT - 79 - 76 AS col1
----
-155

query I rowsort
SELECT + 84 * + 54 * + 24
----
108864

query I rowsort
SELECT DISTINCT + 73 * + 13 AS col0
----
949

query I rowsort
SELECT DISTINCT 77 * - + 0
----
0

query I rowsort
SELECT - + 34 * - 16 AS col1
----
544

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

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

query I rowsort
SELECT ALL + 23 * - + 72 * - 19 * + 22
----
692208

onlyif mysql # aggregate syntax: 
query II rowsort label-242
SELECT + + COUNT( * ) + + 93 + - 94 * + 45 / - 32 * + CASE 76 WHEN - + 92 THEN - ( 62 ) + 71 END, + 57 + - 27 AS col0
----
NULL
30

skipif mysql # not compatible
query II rowsort label-242
SELECT + + COUNT ( * ) + + 93 + - 94 * + 45 / - 32 * + CASE 76 WHEN - + 92 THEN - ( 62 ) + 71 END, + 57 + - 27 AS col0
----
NULL
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + MIN( DISTINCT + + 90 ) + 99 * + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-244
SELECT + MIN ( DISTINCT + + 90 ) + 99 * + - COUNT ( * )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-245
SELECT ALL + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 22
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-246
SELECT DISTINCT - 41 DIV 97 + + - COUNT( * ) * - + 32 * - 46
----
-1472

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT - 41 / 97 + + - COUNT ( * ) * - + 32 * - 46
----
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT DISTINCT - ( - CASE - - 4 WHEN - CASE - - 54 WHEN NULLIF ( + COUNT( * ), - 30 * - + COUNT( * ) + + 42 + ( + COUNT( * ) ) * + 27 ) * + MIN( DISTINCT 60 ) / + 56 * - 24 * + 79 THEN - + 34 END THEN + + 87 + 69 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT - ( - CASE - - 4 WHEN - CASE - - 54 WHEN NULLIF ( + COUNT ( * ), - 30 * - + COUNT ( * ) + + 42 + ( + COUNT ( * ) ) * + 27 ) * + MIN ( DISTINCT 60 ) / + 56 * - 24 * + 79 THEN - + 34 END THEN + + 87 + 69 ELSE NULL END )
----
NULL

query I rowsort
SELECT + 58 * 86 AS col0
----
4988

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-249
SELECT - 98 * - + ( 93 ) + 23 * + CAST( + 88 AS SIGNED ) col0, - 96
----
11138
-96

skipif mysql # not compatible
query II rowsort label-249
SELECT - 98 * - + ( 93 ) + 23 * + CAST ( + 88 AS INTEGER ) col0, - 96
----
11138
-96

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT ALL - 97 DIV 35 * + COUNT( ALL + 23 ) + - 0 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL - 97 / 35 * + COUNT ( ALL + 23 ) + - 0 AS col0
----
-2

query II rowsort
SELECT - 97 AS col0, 30
----
-97
30

query I rowsort
SELECT DISTINCT 93 * + 52 col1
----
4836

onlyif mysql # DIV for integer division: 
query II rowsort label-254
SELECT + 5 DIV - 87 col2, 46 AS col0
----
0
46

skipif mysql # not compatible
query II rowsort label-254
SELECT + 5 / - 87 col2, 46 AS col0
----
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT + 22 * + MIN( DISTINCT + 33 ) AS col1
----
726

skipif mysql # not compatible
query I rowsort label-255
SELECT + 22 * + MIN ( DISTINCT + 33 ) AS col1
----
726

query I rowsort
SELECT + 92 - 80 + + 59
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT - CASE - + AVG ( + 47 ) WHEN - COUNT( * ) THEN - 23 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT - CASE - + AVG ( + 47 ) WHEN - COUNT ( * ) THEN - 23 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-258
SELECT 32 DIV 43 * 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-258
SELECT 32 / 43 * 93 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-259
SELECT ALL + 42 * CAST( - COUNT( * ) AS SIGNED ) * 16 + - - 49 + + 74 + + 28 + + - 64 + + + 34 DIV - + 91 * - + 18
----
-585

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL + 42 * CAST ( - COUNT ( * ) AS INTEGER ) * 16 + - - 49 + + 74 + + 28 + + - 64 + + + 34 / - + 91 * - + 18
----
-585

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-260
SELECT DISTINCT + MIN( 72 ) DIV - 76 AS col1, + 33 + + - 23 + 84 col0
----
0
94

skipif mysql # not compatible
query II rowsort label-260
SELECT DISTINCT + MIN ( 72 ) / - 76 AS col1, + 33 + + - 23 + 84 col0
----
0
94

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT DISTINCT + 24 * + COUNT( * ) * - COALESCE ( - + 60, 75 + 52 ) AS col0
----
1440

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT + 24 * + COUNT ( * ) * - COALESCE ( - + 60, 75 + 52 ) AS col0
----
1440

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

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

query I rowsort
SELECT 29 * - 98 AS col0
----
-2842

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-264
SELECT + 40 DIV - + ( - 7 ) AS col2, - ( + - MIN( ALL - - NULLIF ( - 34, + ( 89 ) ) ) ) + - 87 DIV + 10
----
5
-42

skipif mysql # not compatible
query II rowsort label-264
SELECT + 40 / - + ( - 7 ) AS col2, - ( + - MIN ( ALL - - NULLIF ( - 34, + ( 89 ) ) ) ) + - 87 / + 10
----
5
-42

query I rowsort
SELECT DISTINCT - ( - 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT - 67 + - MIN( ALL - - 96 )
----
-163

skipif mysql # not compatible
query I rowsort label-266
SELECT - 67 + - MIN ( ALL - - 96 )
----
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-267
SELECT ALL 6 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL 6 / + 86
----
0

query I rowsort
SELECT - ( - 67 ) * + - 11 * 24
----
-17688

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

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

query I rowsort
SELECT - - ( - 2 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT + COALESCE ( - SUM( DISTINCT - ( + - 66 ) ), 28 * 95 ) + + 78 + - - 4 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-271
SELECT + COALESCE ( - SUM ( DISTINCT - ( + - 66 ) ), 28 * 95 ) + + 78 + - - 4 AS col2
----
16

query I rowsort
SELECT + 56 * + COALESCE ( + 35, - - 32 ) + 63 + 84 + + + ( 16 ) + + - 49 * + - 83 AS col2
----
6190

onlyif mysql # aggregate syntax: 
query II rowsort label-273
SELECT COUNT( + 53 ), + 72 + + - 44 AS col2
----
1
28

skipif mysql # not compatible
query II rowsort label-273
SELECT COUNT ( + 53 ), + 72 + + - 44 AS col2
----
1
28

onlyif mysql # DIV for integer division: 
query I rowsort label-274
SELECT ALL ( - + COALESCE ( - + 53, - 56 ) ) + - - 99 DIV 28 * - + 62 AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL ( - + COALESCE ( - + 53, - 56 ) ) + - - 99 / 28 * - + 62 AS col2
----
-133

query I rowsort
SELECT 16 + 69 + - 99 * + - 23 AS col2
----
2362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-276
SELECT - NULLIF ( + ( + - COUNT( * ) ), 37 * + - ( + + CASE 44 WHEN 1 THEN - + CAST( NULL AS SIGNED ) END ) * 10 * - - 4 - - - 76 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-276
SELECT - NULLIF ( + ( + - COUNT ( * ) ), 37 * + - ( + + CASE 44 WHEN 1 THEN - + CAST ( NULL AS INTEGER ) END ) * 10 * - - 4 - - - 76 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT ALL + COUNT( * ) * + - MAX( - 65 ) col2
----
65

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL + COUNT ( * ) * + - MAX ( - 65 ) col2
----
65

query I rowsort
SELECT ALL + 85 + + 49 AS col2
----
134

query I rowsort
SELECT DISTINCT + - NULLIF ( + ( + 35 ), - 56 ) * 99
----
-3465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-280
SELECT DISTINCT - MAX( DISTINCT - 35 ) + - 3 + + + 1 DIV 62 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT - MAX ( DISTINCT - 35 ) + - 3 + + + 1 / 62 AS col1
----
32

query I rowsort
SELECT DISTINCT 80 + - - 34
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-282
SELECT - 79 * + 90 * + COUNT( * ) - - - 89 DIV + + 24 AS col0
----
-7113

skipif mysql # not compatible
query I rowsort label-282
SELECT - 79 * + 90 * + COUNT ( * ) - - - 89 / + + 24 AS col0
----
-7113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-283
SELECT 97 + + - 3 + 70 * + CAST( - + COUNT( * ) AS SIGNED ) * + - ( - + CAST( NULL AS SIGNED ) ) * - 98 * + 41 AS col2, + 27 / + 23 * 12 * - CASE 6 WHEN - - 63 + - 18 THEN NULL WHEN - 88 THEN - 34 * + - 16 ELSE NULL END - - - 83
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-283
SELECT 97 + + - 3 + 70 * + CAST ( - + COUNT ( * ) AS INTEGER ) * + - ( - + CAST ( NULL AS INTEGER ) ) * - 98 * + 41 AS col2, + 27 / + 23 * 12 * - CASE 6 WHEN - - 63 + - 18 THEN NULL WHEN - 88 THEN - 34 * + - 16 ELSE NULL END - - - 83
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-284
SELECT ALL ( 32 ) DIV + 40 + + + 48
----
48

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL ( 32 ) / + 40 + + + 48
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-285
SELECT 93 AS col2, 31 DIV 18 - COUNT( ALL + 90 ) AS col0
----
93
0

skipif mysql # not compatible
query II rowsort label-285
SELECT 93 AS col2, 31 / 18 - COUNT ( ALL + 90 ) AS col0
----
93
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-287
SELECT 46 * + 41 + COUNT( * ), ( ( NULLIF ( - COUNT( * ), + 72 ) ) ) DIV - 57 + 60 AS col0
----
1887
60

skipif mysql # not compatible
query II rowsort label-287
SELECT 46 * + 41 + COUNT ( * ), ( ( NULLIF ( - COUNT ( * ), + 72 ) ) ) / - 57 + 60 AS col0
----
1887
60

query II rowsort
SELECT DISTINCT - 65 AS col0, ( - 43 ) * - ( + 45 )
----
-65
1935

query I rowsort
SELECT ALL - NULLIF ( + 30, + 65 ) AS col0
----
-30

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

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

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

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT - NULLIF ( + - 77, + COUNT ( * ) )
----
77

query I rowsort
SELECT DISTINCT 56 - + + 51
----
5

query I rowsort
SELECT 51 * + - 29 AS col2
----
-1479

query II rowsort
SELECT 73 AS col0, - 7 AS col2
----
73
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT + CASE + COUNT( * ) WHEN + - 20 * 92 THEN NULL WHEN - + 93 THEN + 41 END * + 69 * - ( - - 48 ) * + 90 + + - 17 + + - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-295
SELECT + CASE + COUNT ( * ) WHEN + - 20 * 92 THEN NULL WHEN - + 93 THEN + 41 END * + 69 * - ( - - 48 ) * + 90 + + - 17 + + - 29 AS col0
----
NULL

query I rowsort
SELECT 74 * + - 14 * 93
----
-96348

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

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

query II rowsort
SELECT - 2 AS col0, - 27 + + + 11
----
-2
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT ALL - 21 + - 16 DIV + 62 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL - 21 + - 16 / + 62 AS col0
----
-21

query I rowsort
SELECT DISTINCT - 16 + - - 23
----
7

query I rowsort
SELECT + 13 * 42 col2
----
546

onlyif mysql # aggregate syntax: 
query II rowsort label-302
SELECT ALL - 18 AS col2, - 14 + - 17 + 34 * - COUNT( * ) * + ( + ( + 22 ) )
----
-18
-779

skipif mysql # not compatible
query II rowsort label-302
SELECT ALL - 18 AS col2, - 14 + - 17 + 34 * - COUNT ( * ) * + ( + ( + 22 ) )
----
-18
-779

query I rowsort
SELECT DISTINCT + 13 + 51 + + 55 + + 61 * + 26 * + 83
----
131757

query II rowsort
SELECT + 75, 47 col2
----
75
47

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

skipif mysql # not compatible
query I rowsort label-305
SELECT 52 + - COUNT ( * ) + + + 86 / + 33 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT ALL + + ( 83 ) + - CASE + NULLIF ( - + 42, + 22 + - 21 * - COUNT( 71 ) * + + 5 + - 24 * COUNT( * ) ) WHEN + + 85 * + 54 * + + COUNT( * ) THEN 67 / + + 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + + ( 83 ) + - CASE + NULLIF ( - + 42, + 22 + - 21 * - COUNT ( 71 ) * + + 5 + - 24 * COUNT ( * ) ) WHEN + + 85 * + 54 * + + COUNT ( * ) THEN 67 / + + 13 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL - 22 + + - NULLIF ( + + 20, 90 ) + COUNT( * ) * 60
----
18

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL - 22 + + - NULLIF ( + + 20, 90 ) + COUNT ( * ) * 60
----
18

query I rowsort
SELECT 0 - + + 26 AS col2
----
-26

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

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

query I rowsort
SELECT 31 + 39 col2
----
70

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

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL - COUNT ( * ) + + 26 AS col0
----
25

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

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

query I rowsort
SELECT ALL + 39 + + 90 AS col1
----
129

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

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

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

query I rowsort
SELECT - 12 + - 1 AS col2
----
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT COALESCE ( - 45, + MIN( DISTINCT + - 71 ), - 99 + 66 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT COALESCE ( - 45, + MIN ( DISTINCT + - 71 ), - 99 + 66 ) AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-319
SELECT 50 * - 86 + - CAST( - 87 AS SIGNED ) AS col2
----
-4213

skipif mysql # not compatible
query I rowsort label-319
SELECT 50 * - 86 + - CAST ( - 87 AS INTEGER ) AS col2
----
-4213

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

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

query I rowsort
SELECT ALL + 87 * - 71
----
-6177

onlyif mysql # aggregate syntax: 
query II rowsort label-322
SELECT ALL + MAX( - 52 ) AS col1, + 38
----
-52
38

skipif mysql # not compatible
query II rowsort label-322
SELECT ALL + MAX ( - 52 ) AS col1, + 38
----
-52
38

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-324
SELECT ALL + CAST( - 33 AS SIGNED ) * ( - 13 ) AS col1
----
429

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL + CAST ( - 33 AS INTEGER ) * ( - 13 ) AS col1
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT CASE NULLIF ( 65, ( MIN( 0 ) ) ) WHEN + 64 THEN - 57 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-325
SELECT CASE NULLIF ( 65, ( MIN ( 0 ) ) ) WHEN + 64 THEN - 57 END AS col2
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-328
SELECT - 42 * - 69 - - CAST( - - 35 AS SIGNED ) DIV - + 59 col2, - 51 + + MIN( + - 89 ) + - 68
----
2898
-208

skipif mysql # not compatible
query II rowsort label-328
SELECT - 42 * - 69 - - CAST ( - - 35 AS INTEGER ) / - + 59 col2, - 51 + + MIN ( + - 89 ) + - 68
----
2898
-208

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT + CASE COUNT( * ) WHEN + + COUNT( * ) THEN NULL WHEN - COUNT( * ) + + ( 31 ) THEN 81 * 83 * + 47 * - 46 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-329
SELECT + CASE COUNT ( * ) WHEN + + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) + + ( 31 ) THEN 81 * 83 * + 47 * - 46 END AS col2
----
NULL

query I rowsort
SELECT ALL 37 * + + 53
----
1961

onlyif mysql # DIV for integer division: 
query I rowsort label-331
SELECT + 43 DIV 14 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-331
SELECT + 43 / 14 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-332
SELECT DISTINCT - 19 * 24 + COALESCE ( + - 68, 42 * - + COALESCE ( + + 1, - CAST( NULL AS SIGNED ), + ( - COUNT( * ) ) DIV + CAST( COUNT( ALL + 9 ) AS SIGNED ) + 12 + - COUNT( * ) + + 13 ) + + 73 + - MAX( 61 ) + + 62 ) - - 87 + - COUNT( * ) AS col2
----
-438

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT - 19 * 24 + COALESCE ( + - 68, 42 * - + COALESCE ( + + 1, - CAST ( NULL AS INTEGER ), + ( - COUNT ( * ) ) / + CAST ( COUNT ( ALL + 9 ) AS INTEGER ) + 12 + - COUNT ( * ) + + 13 ) + + 73 + - MAX ( 61 ) + + 62 ) - - 87 + - COUNT ( * ) AS col2
----
-438

query I rowsort
SELECT + + 56 * + - ( - + 88 ) * + 97 AS col0
----
478016

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT ALL 28 * + CASE SUM( + 28 ) WHEN + 80 THEN NULL ELSE ( 83 ) END
----
2324

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL 28 * + CASE SUM ( + 28 ) WHEN + 80 THEN NULL ELSE ( 83 ) END
----
2324

onlyif mysql # DIV for integer division: 
query I rowsort label-336
SELECT + 97 DIV + + 7 - + - 83
----
96

skipif mysql # not compatible
query I rowsort label-336
SELECT + 97 / + + 7 - + - 83
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-337
SELECT + - 12 + - COUNT( * ) col2, 48 / CASE 83 WHEN + 24 THEN + + 8 END AS col2
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-337
SELECT + - 12 + - COUNT ( * ) col2, 48 / CASE 83 WHEN + 24 THEN + + 8 END AS col2
----
-13
NULL

query I rowsort
SELECT + ( - + 63 ) * + 10 AS col1
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT - 84 + - - 37 + + CASE + 74 WHEN + 32 THEN NULL ELSE + ( - COUNT( * ) ) END - - NULLIF ( + 12, - - 82 + - 3 + + + 57 )
----
-36

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT - 84 + - - 37 + + CASE + 74 WHEN + 32 THEN NULL ELSE + ( - COUNT ( * ) ) END - - NULLIF ( + 12, - - 82 + - 3 + + + 57 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT NULLIF ( + + ( - + 61 ), + - 70 + + SUM( - 53 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-340
SELECT NULLIF ( + + ( - + 61 ), + - 70 + + SUM ( - 53 ) )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-341
SELECT ALL + COUNT( * ) + - + 27, + COALESCE ( + NULLIF ( - 97, 99 ), 94 + + 83 * - 54, + - 62 ) AS col0
----
-26
-97

skipif mysql # not compatible
query II rowsort label-341
SELECT ALL + COUNT ( * ) + - + 27, + COALESCE ( + NULLIF ( - 97, 99 ), 94 + + 83 * - 54, + - 62 ) AS col0
----
-26
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-342
SELECT ALL CASE + - 6 WHEN 46 + - NULLIF ( - + 4, 59 * 88 ) THEN NULL ELSE ( CAST( 11 AS SIGNED ) ) * 68 END + 57 - - 40 AS col0
----
845

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL CASE + - 6 WHEN 46 + - NULLIF ( - + 4, 59 * 88 ) THEN NULL ELSE ( CAST ( 11 AS INTEGER ) ) * 68 END + 57 - - 40 AS col0
----
845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-343
SELECT DISTINCT 12 + - 68 - - ( 4 ) + + CASE 72 WHEN CAST( NULL AS SIGNED ) THEN ( 31 ) WHEN COUNT( * ) THEN - 44 ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT 12 + - 68 - - ( 4 ) + + CASE 72 WHEN CAST ( NULL AS INTEGER ) THEN ( 31 ) WHEN COUNT ( * ) THEN - 44 ELSE NULL END * + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-344
SELECT + 52 + 99 AS col1, 70 DIV + - 52 - - 17 + - - 9
----
151
25

skipif mysql # not compatible
query II rowsort label-344
SELECT + 52 + 99 AS col1, 70 / + - 52 - - 17 + - - 9
----
151
25

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

query I rowsort
SELECT ALL + 49 + + - 17
----
32

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

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL + 90 + + CAST ( NULL AS INTEGER ) + - 21
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-348
SELECT ALL + NULLIF ( - + COALESCE ( 52, 30 DIV 11 ), + + COUNT( * ) * SUM( ALL + 2 ) ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL + NULLIF ( - + COALESCE ( 52, 30 / 11 ), + + COUNT ( * ) * SUM ( ALL + 2 ) ) AS col1
----
-52

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

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

query I rowsort
SELECT - 1 * 92
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT ALL - ( - ( - 74 ) ) * + MIN( ALL - 15 ) + - 87
----
1023

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL - ( - ( - 74 ) ) * + MIN ( ALL - 15 ) + - 87
----
1023

query II rowsort
SELECT ALL - - 90 - - 3 AS col1, 67 AS col0
----
93
67

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

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

query I rowsort
SELECT - 63 - - 54
----
-9

query I rowsort
SELECT - 22 * - + 95 * - 29
----
-60610

query I rowsort
SELECT ALL 28 * + 40 AS col2
----
1120

query I rowsort
SELECT DISTINCT ( - - 99 ) AS col0
----
99

query I rowsort
SELECT - 92 * + 82 AS col1
----
-7544

onlyif mysql # DIV for integer division: 
query I rowsort label-359
SELECT - 20 DIV 38 + + + 42 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-359
SELECT - 20 / 38 + + + 42 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL + MIN( ALL - - ( ( 47 ) ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL + MIN ( ALL - - ( ( 47 ) ) ) AS col1
----
47

query I rowsort
SELECT - 56 + - 18 AS col0
----
-74

query I rowsort
SELECT - 32 * - 70 * + 56 AS col1
----
125440

query I rowsort
SELECT + 38 + - 7 + 11 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT - 11 * - SUM( ALL - - 65 ) col0
----
715

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT - 11 * - SUM ( ALL - - 65 ) col0
----
715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-365
SELECT DISTINCT + 24 DIV + 99 + - ( + 60 ) + CASE 55 WHEN - COUNT( * ) * 39 * - + CASE - 6 WHEN + - 37 THEN 80 * 56 WHEN ( - 57 ) THEN NULL END + 92 THEN - + CASE + 49 WHEN - - ( 44 ) + - COALESCE ( - 37, 1, 87 * COUNT( * ) + + 90 ) THEN + 93 WHEN - 56 THEN NULL END WHEN + MAX( ALL - 80 ) * - 65 DIV + ( 87 ) + + 53 THEN NULL ELSE 27 + 24 + + 78 END col2
----
69

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT + 24 / + 99 + - ( + 60 ) + CASE 55 WHEN - COUNT ( * ) * 39 * - + CASE - 6 WHEN + - 37 THEN 80 * 56 WHEN ( - 57 ) THEN NULL END + 92 THEN - + CASE + 49 WHEN - - ( 44 ) + - COALESCE ( - 37, 1, 87 * COUNT ( * ) + + 90 ) THEN + 93 WHEN - 56 THEN NULL END WHEN + MAX ( ALL - 80 ) * - 65 / + ( 87 ) + + 53 THEN NULL ELSE 27 + 24 + + 78 END col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-366
SELECT - 2 + COALESCE ( + CASE - 26 WHEN 48 + - COUNT( * ) THEN NULL WHEN + COUNT( * ) * 25 THEN NULL ELSE + 50 END, - COUNT( * ), - CASE + 30 WHEN ( - MAX( - 23 ) ) THEN + MAX( 38 ) WHEN ( - CAST( 69 AS SIGNED ) ) THEN NULL END ) * - - NULLIF ( 75, - + 97 ) + + - 84
----
3664

skipif mysql # not compatible
query I rowsort label-366
SELECT - 2 + COALESCE ( + CASE - 26 WHEN 48 + - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) * 25 THEN NULL ELSE + 50 END, - COUNT ( * ), - CASE + 30 WHEN ( - MAX ( - 23 ) ) THEN + MAX ( 38 ) WHEN ( - CAST ( 69 AS INTEGER ) ) THEN NULL END ) * - - NULLIF ( 75, - + 97 ) + + - 84
----
3664

query I rowsort
SELECT ALL 13 * - 48 + 61 * - 68
----
-4772

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

query I rowsort
SELECT - 66 * - 86
----
5676

query I rowsort
SELECT ALL 50 * - 56 + 71 AS col1
----
-2729

query I rowsort
SELECT COALESCE ( 47, - 37, 88 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-372
SELECT + 24 + + 42 * - CAST( + 56 AS SIGNED ) AS col1
----
-2328

skipif mysql # not compatible
query I rowsort label-372
SELECT + 24 + + 42 * - CAST ( + 56 AS INTEGER ) AS col1
----
-2328

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL 56 * 80 + COUNT( * ) * 4
----
4484

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL 56 * 80 + COUNT ( * ) * 4
----
4484

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL 48 * CASE - 68 WHEN - SUM( DISTINCT 16 ) THEN NULL WHEN + 72 THEN + COUNT( * ) + 2 WHEN 41 THEN NULL ELSE - 95 END AS col2
----
-4560

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL 48 * CASE - 68 WHEN - SUM ( DISTINCT 16 ) THEN NULL WHEN + 72 THEN + COUNT ( * ) + 2 WHEN 41 THEN NULL ELSE - 95 END AS col2
----
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT DISTINCT - COUNT( * ) * + 2 + - 37
----
-39

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT - COUNT ( * ) * + 2 + - 37
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT ALL + 11 * 80 - SUM( 20 ) col2
----
860

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL + 11 * 80 - SUM ( 20 ) col2
----
860

query I rowsort
SELECT ALL 88 * - 42
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT MIN( ALL - 1 ) - 0 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-378
SELECT MIN ( ALL - 1 ) - 0 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-379
SELECT SUM( DISTINCT + 3 ) * CAST( 40 * + 23 AS SIGNED ) AS col1
----
2760

skipif mysql # not compatible
query I rowsort label-379
SELECT SUM ( DISTINCT + 3 ) * CAST ( 40 * + 23 AS INTEGER ) AS col1
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT COALESCE ( 60, - 11, - COUNT( * ), ( 95 ) + + 47 ) + - 86
----
-26

skipif mysql # not compatible
query I rowsort label-380
SELECT COALESCE ( 60, - 11, - COUNT ( * ), ( 95 ) + + 47 ) + - 86
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT 36 * COUNT( * ) col2
----
36

skipif mysql # not compatible
query I rowsort label-381
SELECT 36 * COUNT ( * ) col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT 26 - 5 DIV + 60
----
26

skipif mysql # not compatible
query I rowsort label-382
SELECT 26 - 5 / + 60
----
26

query I rowsort
SELECT ALL - 23 * + 12 AS col2
----
-276

query I rowsort
SELECT ALL - 14 * 14 AS col0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT 48 + + COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-385
SELECT 48 + + COUNT ( * ) AS col1
----
49

query I rowsort
SELECT 51 * + 55
----
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT ALL MAX( 98 ) * - ( 94 ) AS col2
----
-9212

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL MAX ( 98 ) * - ( 94 ) AS col2
----
-9212

query I rowsort
SELECT 22 * + 42
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT 58 + - COUNT( * ) * MIN( - 94 + - 75 ) AS col2
----
227

skipif mysql # not compatible
query I rowsort label-389
SELECT 58 + - COUNT ( * ) * MIN ( - 94 + - 75 ) AS col2
----
227

query I rowsort
SELECT DISTINCT 9 * 60 AS col2
----
540

query I rowsort
SELECT 77 * 13 AS col0
----
1001

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ALL + COUNT( 79 ) + - 53 col1
----
-52

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL + COUNT ( 79 ) + - 53 col1
----
-52

query I rowsort
SELECT 67 * 36 AS col0
----
2412

query I rowsort
SELECT ALL + 52 + 95
----
147

query I rowsort
SELECT 76 * + 4
----
304

query I rowsort
SELECT ALL + 62 + - 84 col2
----
-22

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

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

query I rowsort
SELECT ( - 57 ) * 38 + 99 AS col1
----
-2067

query I rowsort
SELECT 27 * + 64
----
1728

query I rowsort
SELECT ALL - 84 + + 35
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-403
SELECT + - 41 * SUM( DISTINCT - CAST( NULL AS SIGNED ) / 3 + + ( 11 ) ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-403
SELECT + - 41 * SUM ( DISTINCT - CAST ( NULL AS INTEGER ) / 3 + + ( 11 ) ) - + COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT 6 - 73
----
-67

query I rowsort
SELECT ALL - + 24 * - 46
----
1104

query I rowsort
SELECT - - 26 * 98 + + 24 AS col2
----
2572

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

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

query I rowsort
SELECT 85 + 51 * 1 AS col1
----
136

query I rowsort
SELECT + 56 * - 83 AS col1
----
-4648

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-412
SELECT 75 - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-412
SELECT 75 - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

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

query I rowsort
SELECT + 83 - 67 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT - 92 * - CASE 13 * 32 WHEN ( + 92 ) THEN + MIN( - 80 ) + + 53 * 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-415
SELECT - 92 * - CASE 13 * 32 WHEN ( + 92 ) THEN + MIN ( - 80 ) + + 53 * 74 END
----
NULL

query I rowsort
SELECT DISTINCT + 75 * - 77 AS col2
----
-5775

onlyif mysql # DIV for integer division: 
query I rowsort label-417
SELECT ALL + 47 DIV - 28 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL + 47 / - 28 AS col2
----
-1

query I rowsort
SELECT DISTINCT 69 * + 69 AS col2
----
4761

query I rowsort
SELECT DISTINCT 28 * + 71
----
1988

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

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT + COUNT ( * ) * + 8 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT COUNT( * ) + 71 * + 43
----
3054

skipif mysql # not compatible
query I rowsort label-421
SELECT COUNT ( * ) + 71 * + 43
----
3054

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

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

query I rowsort
SELECT 32 + - - 38 * 29
----
1134

query I rowsort
SELECT ALL 68 + 47 + 11 * 72
----
907

query I rowsort
SELECT ALL 21 + - 30 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT MAX( ALL - 46 ) + 89 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-426
SELECT MAX ( ALL - 46 ) + 89 AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT ALL NULLIF ( + 74, 16 ) + - CAST( NULL AS SIGNED ) * - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL NULLIF ( + 74, 16 ) + - CAST ( NULL AS INTEGER ) * - 68 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - 20 + - 53
----
-73

query I rowsort
SELECT 57 + + 5 + 31 * - 65 col1
----
-1953

query I rowsort
SELECT ( + + 73 ) * 96 + + 73
----
7081

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

skipif mysql # not compatible
query I rowsort label-432
SELECT SUM ( ALL - 87 )
----
-87

query I rowsort
SELECT 82 * - + 1 + 32
----
-50

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

query I rowsort
SELECT 41 + - 34
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-436
SELECT DISTINCT + MAX( - 85 ) * + 34 - + 72 DIV + 9 col2
----
-2898

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT + MAX ( - 85 ) * + 34 - + 72 / + 9 col2
----
-2898

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT + - CASE + 60 WHEN 82 + - CASE COUNT( * ) WHEN COUNT( * ) THEN 88 WHEN + 93 THEN 43 WHEN 33 * + 24 THEN + 91 / ( 61 * 35 ) END THEN 68 ELSE NULL END * - ( - 25 * COUNT( * ) + - ( + COALESCE ( - 47, COUNT( * ) * + 3 - + 8 ) ) / 51 ) + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-437
SELECT + - CASE + 60 WHEN 82 + - CASE COUNT ( * ) WHEN COUNT ( * ) THEN 88 WHEN + 93 THEN 43 WHEN 33 * + 24 THEN + 91 / ( 61 * 35 ) END THEN 68 ELSE NULL END * - ( - 25 * COUNT ( * ) + - ( + COALESCE ( - 47, COUNT ( * ) * + 3 - + 8 ) ) / 51 ) + + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL MAX( ALL - 55 ) * + 51 - 14 AS col1
----
-2819

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL MAX ( ALL - 55 ) * + 51 - 14 AS col1
----
-2819

query I rowsort
SELECT 21 + + 42 + - 37
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-440
SELECT DISTINCT + - 26 DIV - NULLIF ( - 71, 27 ) - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT + - 26 / - NULLIF ( - 71, 27 ) - - COUNT ( * )
----
1

query I rowsort
SELECT NULLIF ( + - 37, 74 + 28 ) AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-442
SELECT - - COUNT( ALL + 89 ) DIV - 67 col0
----
0

skipif mysql # not compatible
query I rowsort label-442
SELECT - - COUNT ( ALL + 89 ) / - 67 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-443
SELECT DISTINCT + + 59 DIV + 95 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT + + 59 / + 95 * COUNT ( * )
----
0

query I rowsort
SELECT + - NULLIF ( - 7, 32 ) * 17
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT - + 78 * + 1 + + 63 + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-445
SELECT - + 78 * + 1 + + 63 + COUNT ( * )
----
-14

query I rowsort
SELECT ALL + 37 * + 11
----
407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-447
SELECT DISTINCT + NULLIF ( - - 33, + 59 * - NULLIF ( CASE + COUNT( * ) WHEN 3 + 15 THEN - 16 + - COUNT( * ) ELSE - CAST( NULL AS SIGNED ) * - 13 + - 68 END, - 56 / 16 ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT + NULLIF ( - - 33, + 59 * - NULLIF ( CASE + COUNT ( * ) WHEN 3 + 15 THEN - 16 + - COUNT ( * ) ELSE - CAST ( NULL AS INTEGER ) * - 13 + - 68 END, - 56 / 16 ) ) AS col0
----
33

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

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

query I rowsort
SELECT ALL + 45 * - ( 19 ) + + 16 AS col0
----
-839

onlyif mysql # DIV for integer division: 
query I rowsort label-450
SELECT - - 40 + - - 21 DIV - 22
----
40

skipif mysql # not compatible
query I rowsort label-450
SELECT - - 40 + - - 21 / - 22
----
40

query I rowsort
SELECT DISTINCT + - 71 * + - 37 AS col1
----
2627

query I rowsort
SELECT DISTINCT + - 54 * - 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT NULLIF ( + ( COUNT( * ) ), 89 - 72 * + SUM( + ( ( 8 ) ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-453
SELECT NULLIF ( + ( COUNT ( * ) ), 89 - 72 * + SUM ( + ( ( 8 ) ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT - - 90 * 25 + - COUNT( * ) AS col0
----
2249

skipif mysql # not compatible
query I rowsort label-454
SELECT - - 90 * 25 + - COUNT ( * ) AS col0
----
2249

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

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

query I rowsort
SELECT - 63 - - 72
----
9

query I rowsort
SELECT - 86 + + 74 AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-458
SELECT DISTINCT COALESCE ( + 84, - - 30 + 84, CASE 16 WHEN 34 THEN NULL WHEN + ( 37 ) + CAST( COUNT( * ) AS SIGNED ) THEN - 26 WHEN 43 THEN NULL END ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT COALESCE ( + 84, - - 30 + 84, CASE 16 WHEN 34 THEN NULL WHEN + ( 37 ) + CAST ( COUNT ( * ) AS INTEGER ) THEN - 26 WHEN 43 THEN NULL END ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT - 57 * - COUNT( - 21 )
----
57

skipif mysql # not compatible
query I rowsort label-459
SELECT - 57 * - COUNT ( - 21 )
----
57

query I rowsort
SELECT + CASE + 45 WHEN + - 62 THEN - 68 END + - 73
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL ( + CASE + 98 WHEN - 98 THEN - CASE + 19 WHEN COUNT( * ) THEN + 60 * 97 END / 13 WHEN CASE - 10 WHEN - 94 * COUNT( * ) THEN NULL WHEN + CASE 22 WHEN + 25 THEN NULL WHEN 54 * + 28 + + COUNT( * ) THEN COUNT( * ) * 44 + - 31 ELSE NULL END THEN + 10 END + + AVG ( DISTINCT + 11 ) / COUNT( - 25 ) THEN NULL WHEN + 92 THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL ( + CASE + 98 WHEN - 98 THEN - CASE + 19 WHEN COUNT ( * ) THEN + 60 * 97 END / 13 WHEN CASE - 10 WHEN - 94 * COUNT ( * ) THEN NULL WHEN + CASE 22 WHEN + 25 THEN NULL WHEN 54 * + 28 + + COUNT ( * ) THEN COUNT ( * ) * 44 + - 31 ELSE NULL END THEN + 10 END + + AVG ( DISTINCT + 11 ) / COUNT ( - 25 ) THEN NULL WHEN + 92 THEN NULL ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-463
SELECT DISTINCT ( - COALESCE ( - - 71, - 34 + - COUNT( CAST( NULL AS SIGNED ) + - 99 ) ) )
----
-71

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT ( - COALESCE ( - - 71, - 34 + - COUNT ( CAST ( NULL AS INTEGER ) + - 99 ) ) )
----
-71

query I rowsort
SELECT ALL - 24 + + - ( + 41 )
----
-65

query I rowsort
SELECT ALL 21 + - 64 + + 26
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-466
SELECT - NULLIF ( 52, + ( 92 ) + 22 ) * NULLIF ( 31 * - 35 + + 34, - CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
54652

skipif mysql # not compatible
query I rowsort label-466
SELECT - NULLIF ( 52, + ( 92 ) + 22 ) * NULLIF ( 31 * - 35 + + 34, - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
54652

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT - 85 - + 75 + - ( - 10 ) - COUNT( * )
----
-151

skipif mysql # not compatible
query I rowsort label-467
SELECT - 85 - + 75 + - ( - 10 ) - COUNT ( * )
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT DISTINCT + CASE - 75 WHEN - - 96 + 41 THEN - COUNT( * ) END / + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT + CASE - 75 WHEN - - 96 + 41 THEN - COUNT ( * ) END / + 46 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT ALL 15 + 17 DIV + 12
----
16

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL 15 + 17 / + 12
----
16

query II rowsort
SELECT 58 col2, - 8
----
58
-8

query I rowsort
SELECT ALL + 61 + + 30
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-472
SELECT + 97 + - 82 - + COUNT( * ) + + 16 * NULLIF ( - 32 + - 4, - CAST( 14 AS SIGNED ) )
----
-562

skipif mysql # not compatible
query I rowsort label-472
SELECT + 97 + - 82 - + COUNT ( * ) + + 16 * NULLIF ( - 32 + - 4, - CAST ( 14 AS INTEGER ) )
----
-562

onlyif mysql # aggregate syntax: 
query II rowsort label-473
SELECT 66 AS col1, - COUNT( ALL - 17 ) AS col0
----
66
-1

skipif mysql # not compatible
query II rowsort label-473
SELECT 66 AS col1, - COUNT ( ALL - 17 ) AS col0
----
66
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT - SUM( - 99 ) * - 42
----
-4158

skipif mysql # not compatible
query I rowsort label-474
SELECT - SUM ( - 99 ) * - 42
----
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT ALL 79 + + + SUM( DISTINCT + ( - 21 ) )
----
58

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL 79 + + + SUM ( DISTINCT + ( - 21 ) )
----
58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-478
SELECT DISTINCT AVG ( + ( - + CAST( NULL AS SIGNED ) ) ) / + ( + CASE 26 WHEN + MAX( ALL - 38 ) / - 53 + AVG ( DISTINCT + 0 ) * NULLIF ( 33 * - 85, 23 ) THEN 79 END ) - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT AVG ( + ( - + CAST ( NULL AS INTEGER ) ) ) / + ( + CASE 26 WHEN + MAX ( ALL - 38 ) / - 53 + AVG ( DISTINCT + 0 ) * NULLIF ( 33 * - 85, 23 ) THEN 79 END ) - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT ALL + 56 * 11 * + 54 + + COALESCE ( + 22, 35, + COUNT( * ) - COUNT( * ), ( 85 ) ) AS col1
----
33286

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL + 56 * 11 * + 54 + + COALESCE ( + 22, 35, + COUNT ( * ) - COUNT ( * ), ( 85 ) ) AS col1
----
33286

query II rowsort
SELECT ALL + - 19 col0, 11
----
-19
11

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

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

query I rowsort
SELECT + 11 * - 39 * 11 AS col1
----
-4719

query I rowsort
SELECT DISTINCT 51 * - - 61 * - 11
----
-34221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-484
SELECT + + 27 + - CAST( NULL AS SIGNED ) * + 51 * + ( 3 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-484
SELECT + + 27 + - CAST ( NULL AS INTEGER ) * + 51 * + ( 3 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-485
SELECT + + SUM( ALL NULLIF ( + 66, + CAST( NULL AS SIGNED ) ) ) * + 78 + - 23 AS col0
----
5125

skipif mysql # not compatible
query I rowsort label-485
SELECT + + SUM ( ALL NULLIF ( + 66, + CAST ( NULL AS INTEGER ) ) ) * + 78 + - 23 AS col0
----
5125

query I rowsort
SELECT + 78 * 72 AS col2
----
5616

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT + ( + COUNT( ALL - 26 ) ) - 61 col0
----
-60

skipif mysql # not compatible
query I rowsort label-487
SELECT + ( + COUNT ( ALL - 26 ) ) - 61 col0
----
-60

query I rowsort
SELECT ALL + 80 * - 41
----
-3280

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT + - 11 + + NULLIF ( - - CASE + ( - 74 ) WHEN 68 THEN NULL WHEN 26 * 62 + 46 * 34 THEN NULL ELSE 49 END, - 67 ) DIV 78 col2
----
-11

skipif mysql # not compatible
query I rowsort label-489
SELECT + - 11 + + NULLIF ( - - CASE + ( - 74 ) WHEN 68 THEN NULL WHEN 26 * 62 + 46 * 34 THEN NULL ELSE 49 END, - 67 ) / 78 col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT DISTINCT MIN( + 9 ) * - 47 AS col1
----
-423

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT MIN ( + 9 ) * - 47 AS col1
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT DISTINCT - + SUM( DISTINCT 57 ) * ( - ( 53 ) ) + + 25 col2
----
3046

skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT - + SUM ( DISTINCT 57 ) * ( - ( 53 ) ) + + 25 col2
----
3046

onlyif mysql # DIV for integer division: 
query I rowsort label-492
SELECT ALL - + 81 DIV - - 14 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL - + 81 / - - 14 AS col1
----
-5

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

skipif mysql # not compatible
query I rowsort label-493
SELECT - + 19 / - + SUM ( DISTINCT - 85 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT + - 50 + 63 - 59 + - COUNT( - 15 ) * 84
----
-130

skipif mysql # not compatible
query I rowsort label-494
SELECT + - 50 + 63 - 59 + - COUNT ( - 15 ) * 84
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT + 81 * - + SUM( DISTINCT 84 )
----
-6804

skipif mysql # not compatible
query I rowsort label-495
SELECT + 81 * - + SUM ( DISTINCT 84 )
----
-6804

query I rowsort
SELECT - 45 - - 4 + + 49 AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-497
SELECT MAX( 52 ) col2, - 59 col2
----
52
-59

skipif mysql # not compatible
query II rowsort label-497
SELECT MAX ( 52 ) col2, - 59 col2
----
52
-59

query I rowsort
SELECT ALL 35 * 25 + 13 AS col2
----
888

query I rowsort
SELECT DISTINCT + 74 + + - 8 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT - CASE + 43 WHEN + SUM( - 79 ) THEN NULL WHEN + 61 THEN - 57 END + COUNT( * ) / 85
----
NULL

skipif mysql # not compatible
query I rowsort label-500
SELECT - CASE + 43 WHEN + SUM ( - 79 ) THEN NULL WHEN + 61 THEN - 57 END + COUNT ( * ) / 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT ALL + SUM( ALL - - 73 ) * - 48 + - + COUNT( 19 ) AS col1
----
-3505

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL + SUM ( ALL - - 73 ) * - 48 + - + COUNT ( 19 ) AS col1
----
-3505

query I rowsort
SELECT + 91 + + ( - + 44 ) AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-503
SELECT - CASE 40 WHEN - - CASE + 52 WHEN 90 * + CAST( NULL AS SIGNED ) THEN 17 * COALESCE ( 7 * 75, NULLIF ( + CAST( NULL AS DECIMAL ), COUNT( * ) ) * + 15 ) WHEN ( + 44 ) THEN NULL END THEN + 16 END * 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT - CASE 40 WHEN - - CASE + 52 WHEN 90 * + CAST ( NULL AS INTEGER ) THEN 17 * COALESCE ( 7 * 75, NULLIF ( + CAST ( NULL AS REAL ), COUNT ( * ) ) * + 15 ) WHEN ( + 44 ) THEN NULL END THEN + 16 END * 67 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-504
SELECT - COUNT( ALL - 69 ) AS col2, 94 DIV - 5 - - 67 AS col1
----
-1
49

skipif mysql # not compatible
query II rowsort label-504
SELECT - COUNT ( ALL - 69 ) AS col2, 94 / - 5 - - 67 AS col1
----
-1
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-505
SELECT ALL CAST( - 43 AS SIGNED ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL CAST ( - 43 AS INTEGER ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT - COUNT( * ) + + NULLIF ( + 57, COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-506
SELECT - COUNT ( * ) + + NULLIF ( + 57, COUNT ( * ) )
----
56

query I rowsort
SELECT - 20 * 44
----
-880

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT ALL - 30 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL - 30 / + 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT - 37 + + 68 DIV + 38 + 1 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-509
SELECT - 37 + + 68 / + 38 + 1 AS col0
----
-35

query I rowsort
SELECT - ( - 28 ) + 42 * - + 26 + - 88
----
-1152

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

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

query I rowsort
SELECT - + NULLIF ( 66, + 19 - + 81 + 29 / 73 ) + + 22
----
-44

query I rowsort
SELECT - 38 * - 90 * - 61 + + - 4 - 51 AS col0
----
-208675

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-514
SELECT + - 42 / + + 7 + - 31 + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT + - 42 / + + 7 + - 31 + - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 13 * + NULLIF ( + 12, + 48 ) * 92 + 2 col0
----
-14350

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT - COUNT( + - 99 ) * - - ( - 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-516
SELECT - COUNT ( + - 99 ) * - - ( - 17 ) AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-517
SELECT + 62 / - 10 + - + CAST( NULL AS SIGNED ) + + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-517
SELECT + 62 / - 10 + - + CAST ( NULL AS INTEGER ) + + 98 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 1 AS col1
----
-1

query I rowsort
SELECT CASE + 5 WHEN - 93 / ( 4 ) THEN NULL WHEN + 10 + - 24 THEN NULL WHEN - 27 THEN 59 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-520
SELECT NULLIF ( 55, + 0 ) * - - 93 + 70 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-520
SELECT NULLIF ( 55, + 0 ) * - - 93 + 70 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 51 * + + 88
----
4488

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT - 46 DIV + 79 + + 26 + + - 9
----
17

skipif mysql # not compatible
query I rowsort label-522
SELECT - 46 / + 79 + + 26 + + - 9
----
17

query I rowsort
SELECT - 12 * + ( - 51 ) col1
----
612

query I rowsort
SELECT ( + 40 ) * - - 41 AS col0
----
1640

query I rowsort
SELECT DISTINCT + 27 + - + 24 AS col2
----
3

query I rowsort
SELECT 63 * - 90 + + 14 + + 26
----
-5630

query I rowsort
SELECT + + ( + + 21 ) * 51 + - 65 - 19 * + 75 AS col2
----
-419

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

query I rowsort
SELECT DISTINCT 69 + + + 38 AS col0
----
107

query I rowsort
SELECT ALL 4 + - 37
----
-33

query I rowsort
SELECT 61 * - + 29
----
-1769

query I rowsort
SELECT 97 * - 21 + + 64 + - + 21 + + 66 col2
----
-1928

query I rowsort
SELECT ALL 68 + + 43 AS col0
----
111

query I rowsort
SELECT 86 * + + 39 col2
----
3354

query I rowsort
SELECT 92 + + + 47 + - 70 * 90 AS col2
----
-6161

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT DISTINCT - COALESCE ( + 32, - - 20 + - MIN( DISTINCT - + 99 ), + 94 ) - + 78
----
-110

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT - COALESCE ( + 32, - - 20 + - MIN ( DISTINCT - + 99 ), + 94 ) - + 78
----
-110

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

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

query I rowsort
SELECT DISTINCT - 26 * 58 * + 77 AS col2
----
-116116

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT - 44 * - COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT - 44 * - COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT - CASE WHEN NOT 26 IN ( + 95 ) THEN - NULLIF ( 63, + COUNT( * ) ) * MIN( DISTINCT 12 ) WHEN NOT ( COUNT( * ) - 68 * + 98 ) IS NULL THEN NULL ELSE NULL END * + 51
----
38556

skipif mysql # not compatible
query I rowsort label-540
SELECT - CASE WHEN NOT 26 IN ( + 95 ) THEN - NULLIF ( 63, + COUNT ( * ) ) * MIN ( DISTINCT 12 ) WHEN NOT ( COUNT ( * ) - 68 * + 98 ) IS NULL THEN NULL ELSE NULL END * + 51
----
38556

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT + CASE - 90 WHEN + 6 * + 82 + - + 61 THEN CASE 34 WHEN - CASE 67 WHEN COALESCE ( 36, ( - 72 ), - 98, 7 + 91 ) + 42 THEN MIN( ALL + 89 ) / + 64 WHEN - 0 - ( + COUNT( * ) ) THEN NULL END - ( 5 + - ( 49 ) * - 71 ) THEN ( 79 ) END + 49 WHEN - 94 THEN ( - 14 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-541
SELECT + CASE - 90 WHEN + 6 * + 82 + - + 61 THEN CASE 34 WHEN - CASE 67 WHEN COALESCE ( 36, ( - 72 ), - 98, 7 + 91 ) + 42 THEN MIN ( ALL + 89 ) / + 64 WHEN - 0 - ( + COUNT ( * ) ) THEN NULL END - ( 5 + - ( 49 ) * - 71 ) THEN ( 79 ) END + 49 WHEN - 94 THEN ( - 14 ) END AS col0
----
NULL

query I rowsort
SELECT ( - 75 ) AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT + CASE - 80 WHEN AVG ( DISTINCT + 98 ) * - 79 THEN - 22 * - 87 + + 15 WHEN + 36 THEN 70 / ( - CAST( NULL AS SIGNED ) ) + 64 ELSE NULL END * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT + CASE - 80 WHEN AVG ( DISTINCT + 98 ) * - 79 THEN - 22 * - 87 + + 15 WHEN + 36 THEN 70 / ( - CAST ( NULL AS INTEGER ) ) + 64 ELSE NULL END * 75
----
NULL

query I rowsort
SELECT 96 * 81 AS col1
----
7776

query I rowsort
SELECT + 60 - 49 + - + 55 AS col1
----
-44

query II rowsort
SELECT 66, 55 * + 12 * 73 AS col2
----
66
48180

query II rowsort
SELECT 4 AS col1, 55
----
4
55

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT DISTINCT + 22 + - + 90 * 82 - - 14 + 85 + - 30 DIV - 9 AS col1
----
-7256

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT + 22 + - + 90 * 82 - - 14 + 85 + - 30 / - 9 AS col1
----
-7256

query I rowsort
SELECT ALL - 58 * + 76 + + 97 AS col1
----
-4311

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-550
SELECT ALL NULLIF ( - CAST( NULL AS DECIMAL ), + SUM( DISTINCT + 65 ) ) + + - 79 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL NULLIF ( - CAST ( NULL AS REAL ), + SUM ( DISTINCT + 65 ) ) + + - 79 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT DISTINCT + COUNT( * ) + + 47
----
48

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT + COUNT ( * ) + + 47
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT DISTINCT - ( + + SUM( DISTINCT CASE + 7 WHEN - 88 * + 2 THEN - 36 + + 4 * + 76 WHEN 90 THEN NULL END ) ) / + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT - ( + + SUM ( DISTINCT CASE + 7 WHEN - 88 * + 2 THEN - 36 + + 4 * + 76 WHEN 90 THEN NULL END ) ) / + 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT MAX( + 47 ) * - + 97
----
-4559

skipif mysql # not compatible
query I rowsort label-553
SELECT MAX ( + 47 ) * - + 97
----
-4559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-554
SELECT - NULLIF ( + - COUNT( * ), - 3 / + NULLIF ( + 88, MIN( ALL 89 ) + - 39 ) - + COALESCE ( - 83 - - 8 * - CAST( + ( + 32 ) + - 26 / 19 AS SIGNED ), CAST( + 48 AS DECIMAL ), MAX( ALL - 89 ) + COUNT( * ) / 97 ) ) / SUM( + 85 / - 30 - 17 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-554
SELECT - NULLIF ( + - COUNT ( * ), - 3 / + NULLIF ( + 88, MIN ( ALL 89 ) + - 39 ) - + COALESCE ( - 83 - - 8 * - CAST ( + ( + 32 ) + - 26 / 19 AS INTEGER ), CAST ( + 48 AS REAL ), MAX ( ALL - 89 ) + COUNT ( * ) / 97 ) ) / SUM ( + 85 / - 30 - 17 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 48 + 64
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-556
SELECT CAST( 72 AS SIGNED ) * - 26 + + + 64 + + + 22 + COUNT( * )
----
-1785

skipif mysql # not compatible
query I rowsort label-556
SELECT CAST ( 72 AS INTEGER ) * - 26 + + + 64 + + + 22 + COUNT ( * )
----
-1785

query I rowsort
SELECT ALL + - 6 * 29 / + 59 * - 63 * CASE 45 WHEN 91 * 81 THEN 48 * - 18 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 51 + 3
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT DISTINCT - MIN( DISTINCT + 14 ) + - 81 * + ( + - COUNT( 15 ) ) - 30 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT - MIN ( DISTINCT + 14 ) + - 81 * + ( + - COUNT ( 15 ) ) - 30 AS col1
----
37

query II rowsort
SELECT DISTINCT - 35 AS col0, - 35 * 58 * 22 * - - 23 * + 71 col2
----
-35
-72929780

query I rowsort
SELECT ALL - 75 - - - 33 AS col1
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-562
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, 9 AS col2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-562
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 9 AS col2
----
NULL
9

query II rowsort
SELECT + 30, + 48 AS col0
----
30
48

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT MIN( ALL - 49 ) + - 21
----
-70

skipif mysql # not compatible
query I rowsort label-564
SELECT MIN ( ALL - 49 ) + - 21
----
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT MAX( DISTINCT - 17 ) - + ( + + 37 ) + + - 66 * + 73
----
-4872

skipif mysql # not compatible
query I rowsort label-566
SELECT MAX ( DISTINCT - 17 ) - + ( + + 37 ) + + - 66 * + 73
----
-4872

query I rowsort
SELECT 67 * 49 AS col1
----
3283

query I rowsort
SELECT ALL 56 * 67 AS col1
----
3752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-569
SELECT ALL COUNT( * ) - MIN( ALL + CAST( NULL AS SIGNED ) ) + - + 62 * COALESCE ( + - 32, 70 + ( 37 ) * + COUNT( * ) ) + - 61 * - AVG ( ALL - 31 * - 45 + - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL COUNT ( * ) - MIN ( ALL + CAST ( NULL AS INTEGER ) ) + - + 62 * COALESCE ( + - 32, 70 + ( 37 ) * + COUNT ( * ) ) + - 61 * - AVG ( ALL - 31 * - 45 + - 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-570
SELECT - 93 AS col2, 71 * + + NULLIF ( COUNT( * ), 19 ) * + 27
----
-93
1917

skipif mysql # not compatible
query II rowsort label-570
SELECT - 93 AS col2, 71 * + + NULLIF ( COUNT ( * ), 19 ) * + 27
----
-93
1917

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT ALL CASE - 12 WHEN - + 66 * 71 + - + 27 + - + 65 THEN + 28 * + CASE - 80 * - COUNT( NULLIF ( + 84, - 71 ) ) WHEN ( + ( 53 ) ) + + 68 THEN NULL WHEN 63 * COUNT( * ) THEN NULL ELSE 27 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL CASE - 12 WHEN - + 66 * 71 + - + 27 + - + 65 THEN + 28 * + CASE - 80 * - COUNT ( NULLIF ( + 84, - 71 ) ) WHEN ( + ( 53 ) ) + + 68 THEN NULL WHEN 63 * COUNT ( * ) THEN NULL ELSE 27 END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT - COUNT( 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-572
SELECT - COUNT ( 83 )
----
-1

query I rowsort
SELECT ALL 20 * - 33
----
-660

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

query II rowsort
SELECT DISTINCT 56 AS col0, + 32 - - - 33
----
56
-1

query II rowsort
SELECT ALL 7 AS col2, 52 AS col2
----
7
52

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT + 84 - + COUNT( + 44 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-577
SELECT + 84 - + COUNT ( + 44 ) AS col0
----
83

query II rowsort
SELECT + + 39 + - 6, 10 AS col1
----
33
10

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT - - COUNT( + - 46 ) + - 55 + - 64 * - 89 + + + 69 * 24 * - 86 AS col2
----
-136774

skipif mysql # not compatible
query I rowsort label-579
SELECT - - COUNT ( + - 46 ) + - 55 + - 64 * - 89 + + + 69 * 24 * - 86 AS col2
----
-136774

query I rowsort
SELECT + - 64 + 8
----
-56

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

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

query I rowsort
SELECT ALL 74 + 76 AS col1
----
150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT ALL 18 + - ( - COUNT( * ) ) * COUNT( * ) + - 28 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL 18 + - ( - COUNT ( * ) ) * COUNT ( * ) + - 28 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT + SUM( ALL - - 69 ) + + ( + 36 )
----
105

skipif mysql # not compatible
query I rowsort label-585
SELECT + SUM ( ALL - - 69 ) + + ( + 36 )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT DISTINCT - + ( 77 ) * + + 96 * 65 + - CASE - + 93 WHEN 13 / + 59 THEN + NULLIF ( COUNT( * ), - COALESCE ( 44, + 29 ) * - 18 ) ELSE - 47 + - ( - 46 ) END * + 25 AS col0
----
-480455

skipif mysql # not compatible
query I rowsort label-586
SELECT DISTINCT - + ( 77 ) * + + 96 * 65 + - CASE - + 93 WHEN 13 / + 59 THEN + NULLIF ( COUNT ( * ), - COALESCE ( 44, + 29 ) * - 18 ) ELSE - 47 + - ( - 46 ) END * + 25 AS col0
----
-480455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-587
SELECT ALL + - 75 + - 70 + + COALESCE ( + 92, 95 * CAST( NULL AS SIGNED ) * + 78 + 62 + + 60, - 67, CASE 22 WHEN 0 + 26 THEN NULL WHEN 27 THEN - COALESCE ( 79, 7 ) END * + 94 )
----
-53

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL + - 75 + - 70 + + COALESCE ( + 92, 95 * CAST ( NULL AS INTEGER ) * + 78 + 62 + + 60, - 67, CASE 22 WHEN 0 + 26 THEN NULL WHEN 27 THEN - COALESCE ( 79, 7 ) END * + 94 )
----
-53

query I rowsort
SELECT - 85 + + NULLIF ( + + ( + CASE 73 WHEN - 19 THEN - 73 END ), 32 )
----
NULL

query I rowsort
SELECT ALL - + 62 + + 35
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) + + NULLIF ( 51, + 41 ) * + 47 * - 22
----
-52733

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) + + NULLIF ( 51, + 41 ) * + 47 * - 22
----
-52733

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT + - 47 * - 80 + - 0 + + 64 + - COUNT( * ) * - 21
----
3845

skipif mysql # not compatible
query I rowsort label-591
SELECT + - 47 * - 80 + - 0 + + 64 + - COUNT ( * ) * - 21
----
3845

query II rowsort
SELECT ALL - 68 * + 37 AS col1, - ( - + 53 ) * - 94 AS col2
----
-2516
-4982

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT - - 82 + - 87 - + 90 + - + COUNT( * ) * 36
----
-131

skipif mysql # not compatible
query I rowsort label-593
SELECT - - 82 + - 87 - + 90 + - + COUNT ( * ) * 36
----
-131

onlyif mysql # DIV for integer division: 
query II rowsort label-594
SELECT ALL + 90, + 62 DIV + + 35 AS col2
----
90
1

skipif mysql # not compatible
query II rowsort label-594
SELECT ALL + 90, + 62 / + + 35 AS col2
----
90
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-595
SELECT - CAST( 8 AS SIGNED ) * - CAST( NULL AS DECIMAL ) * + ( - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT - CAST ( 8 AS INTEGER ) * - CAST ( NULL AS REAL ) * + ( - 97 )
----
NULL

query I rowsort
SELECT ALL + 49 * + - 31 - 17 AS col1
----
-1536

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT DISTINCT + 15 * COUNT( * ) AS col1, 55 + 9
----
15
64

skipif mysql # not compatible
query II rowsort label-597
SELECT DISTINCT + 15 * COUNT ( * ) AS col1, 55 + 9
----
15
64

query I rowsort
SELECT COALESCE ( - + 66, 62 )
----
-66

query I rowsort
SELECT ALL 67 * 64 * - ( + 45 ) - ( + 24 )
----
-192984

onlyif mysql # aggregate syntax: 
query II rowsort label-600
SELECT ALL + 34 * - - 50 AS col2, - 30 + + 11 - ( + + 30 ) - - + ( + 39 ) * MAX( - 64 * + 18 )
----
1700
-44977

skipif mysql # not compatible
query II rowsort label-600
SELECT ALL + 34 * - - 50 AS col2, - 30 + + 11 - ( + + 30 ) - - + ( + 39 ) * MAX ( - 64 * + 18 )
----
1700
-44977

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT DISTINCT + 16 * - MIN( ALL + 92 ) AS col2
----
-1472

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT + 16 * - MIN ( ALL + 92 ) AS col2
----
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT + 91 * MIN( DISTINCT + - 96 ) + - 91 + + + 33 + COUNT( * ) * - COUNT( ALL 17 ) + 63 * 48
----
-5771

skipif mysql # not compatible
query I rowsort label-604
SELECT + 91 * MIN ( DISTINCT + - 96 ) + - 91 + + + 33 + COUNT ( * ) * - COUNT ( ALL 17 ) + 63 * 48
----
-5771

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT - COALESCE ( + - COUNT( * ), 3, + 58 + - + 47 ) * - 78 col2
----
-78

skipif mysql # not compatible
query I rowsort label-605
SELECT - COALESCE ( + - COUNT ( * ), 3, + 58 + - + 47 ) * - 78 col2
----
-78

query II rowsort
SELECT + 50 * + 2, 81 AS col2
----
100
81

onlyif mysql # DIV for integer division: 
query I rowsort label-607
SELECT + 9 + - 19 DIV - 37
----
9

skipif mysql # not compatible
query I rowsort label-607
SELECT + 9 + - 19 / - 37
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT - COUNT( * ) * - 38
----
38

skipif mysql # not compatible
query I rowsort label-608
SELECT - COUNT ( * ) * - 38
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-609
SELECT ALL - 71 * 9 * COUNT( * ) DIV + 97
----
-6

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL - 71 * 9 * COUNT ( * ) / + 97
----
-6

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

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

query I rowsort
SELECT + 90 * + 48 AS col1
----
4320

query II rowsort
SELECT + 84 + 39 col2, 33
----
123
33

onlyif mysql # aggregate syntax: 
query II rowsort label-613
SELECT + 60 + + 54 + - 33 + + - 4 * - - 58 AS col0, 53 * - COALESCE ( 62, MAX( ALL 49 ) )
----
-151
-3286

skipif mysql # not compatible
query II rowsort label-613
SELECT + 60 + + 54 + - 33 + + - 4 * - - 58 AS col0, 53 * - COALESCE ( 62, MAX ( ALL 49 ) )
----
-151
-3286

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

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

query I rowsort
SELECT + 89 + 39
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-616
SELECT DISTINCT - COALESCE ( + 49, COUNT( * ) DIV 66 )
----
-49

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT - COALESCE ( + 49, COUNT ( * ) / 66 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-617
SELECT DISTINCT - + 68 + + 43 + - 57 * + + 49 + - 83 DIV CASE + CAST( NULL AS SIGNED ) WHEN 64 DIV + 74 THEN NULL ELSE 93 END + + ( + COUNT( * ) ) DIV + 86 AS col2
----
-2818

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT - + 68 + + 43 + - 57 * + + 49 + - 83 / CASE + CAST ( NULL AS INTEGER ) WHEN 64 / + 74 THEN NULL ELSE 93 END + + ( + COUNT ( * ) ) / + 86 AS col2
----
-2818

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-618
SELECT ALL - ( ( - COALESCE ( SUM( - - 3 ), 70, - COUNT( * ) - - 54, CAST( NULL AS SIGNED ) ) ) ) + - 38 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - ( ( - COALESCE ( SUM ( - - 3 ), 70, - COUNT ( * ) - - 54, CAST ( NULL AS INTEGER ) ) ) ) + - 38 AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-619
SELECT - NULLIF ( COUNT( * ), - 4 + - + 49 + + 61 + + - CAST( 7 AS SIGNED ) * COUNT( 42 * - 22 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT - NULLIF ( COUNT ( * ), - 4 + - + 49 + + 61 + + - CAST ( 7 AS INTEGER ) * COUNT ( 42 * - 22 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 22 + - ( 81 ) + - - 6
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL - 41 + - COUNT( * ) + + ( - - 92 ) + + MIN( ALL + + 42 ) + - - 48 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL - 41 + - COUNT ( * ) + + ( - - 92 ) + + MIN ( ALL + + 42 ) + - - 48 AS col0
----
140

query I rowsort
SELECT + 78 * 16 AS col0
----
1248

query I rowsort
SELECT ALL - COALESCE ( 40, + + 76 + - 42 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-624
SELECT COALESCE ( - CAST( + NULLIF ( 21, 47 ) AS SIGNED ), 5 * + 1 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-624
SELECT COALESCE ( - CAST ( + NULLIF ( 21, 47 ) AS INTEGER ), 5 * + 1 ) AS col2
----
-21

query II rowsort
SELECT - ( - + 50 ), + 89 col1
----
50
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-626
SELECT DISTINCT - 39 + ( - 54 ) + 90 * - CAST( - 90 AS SIGNED ) * + 28 * + NULLIF ( - 2, COALESCE ( + 74, - COUNT( * ) + 79 * - 9, 17 * 73 + 11 ) )
----
-453693

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT - 39 + ( - 54 ) + 90 * - CAST ( - 90 AS INTEGER ) * + 28 * + NULLIF ( - 2, COALESCE ( + 74, - COUNT ( * ) + 79 * - 9, 17 * 73 + 11 ) )
----
-453693

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT + COUNT( * ) * - + 35 + 41
----
6

skipif mysql # not compatible
query I rowsort label-627
SELECT + COUNT ( * ) * - + 35 + 41
----
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT ALL 32 DIV 47 + ( - 10 ) - - 13
----
3

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL 32 / 47 + ( - 10 ) - - 13
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-630
SELECT DISTINCT + 35 DIV 59 - 3 * + - 90 AS col2
----
270

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT + 35 / 59 - 3 * + - 90 AS col2
----
270

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-632
SELECT + 15 AS col0, + COUNT( * ) * COALESCE ( 63, - 95 DIV - - 55 ) * + 59
----
15
3717

skipif mysql # not compatible
query II rowsort label-632
SELECT + 15 AS col0, + COUNT ( * ) * COALESCE ( 63, - 95 / - - 55 ) * + 59
----
15
3717

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-633
SELECT CAST( NULL AS DECIMAL ), + 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-633
SELECT CAST ( NULL AS REAL ), + 80 AS col1
----
NULL
80

query I rowsort
SELECT ALL 45 * + 4 * 95 AS col2
----
17100

query II rowsort
SELECT - ( + 57 ) - 83 AS col2, ( + + 2 ) col1
----
-140
2

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT + COALESCE ( - + 85, - 79, + + ( + + 13 ) * + 48 + + - 13 - 47 + - 62 ) + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-636
SELECT + COALESCE ( - + 85, - 79, + + ( + + 13 ) * + 48 + + - 13 - 47 + - 62 ) + COUNT ( * ) AS col2
----
-84

query II rowsort
SELECT + ( - - 55 ) * - - 94 AS col2, + 47
----
5170
47

query II rowsort
SELECT DISTINCT + 15 AS col2, + 76 AS col0
----
15
76

query II rowsort
SELECT 95 + 16 * - + 72 AS col0, ( - 65 )
----
-1057
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-640
SELECT ALL - COALESCE ( + COUNT( * ), - - COUNT( * ) + + ( - 42 ), + 90 ) col2, + 5 AS col2
----
-1
5

skipif mysql # not compatible
query II rowsort label-640
SELECT ALL - COALESCE ( + COUNT ( * ), - - COUNT ( * ) + + ( - 42 ), + 90 ) col2, + 5 AS col2
----
-1
5

query I rowsort
SELECT 2 * - + 27 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-642
SELECT + 49 AS col0, - COUNT( * ) * - - 21 AS col0
----
49
-21

skipif mysql # not compatible
query II rowsort label-642
SELECT + 49 AS col0, - COUNT ( * ) * - - 21 AS col0
----
49
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT 85 + + + 14 + COALESCE ( COUNT( * ), + 93 + + NULLIF ( - 45, 20 * 56 + + 30 ) )
----
100

skipif mysql # not compatible
query I rowsort label-643
SELECT 85 + + + 14 + COALESCE ( COUNT ( * ), + 93 + + NULLIF ( - 45, 20 * 56 + + 30 ) )
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-644
SELECT 91 DIV - + 69 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-644
SELECT 91 / - + 69 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT 27 * - + 25 * - COUNT( ALL - 39 )
----
675

skipif mysql # not compatible
query I rowsort label-645
SELECT 27 * - + 25 * - COUNT ( ALL - 39 )
----
675

query I rowsort
SELECT ALL + 13 * + 40 AS col1
----
520

query I rowsort
SELECT ALL - COALESCE ( ( - ( - ( + 43 ) ) ), - - 8 + 80 + + 67, 39 ) + - 26 col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT COUNT( * ) - - + 98 + + - 14 * 30 col1
----
-321

skipif mysql # not compatible
query I rowsort label-648
SELECT COUNT ( * ) - - + 98 + + - 14 * 30 col1
----
-321

query II rowsort
SELECT DISTINCT - + 66 + 57 * 80 AS col1, + 8
----
4494
8

query I rowsort
SELECT DISTINCT 79 + + 68 AS col2
----
147

query I rowsort
SELECT ( - 30 ) col2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-652
SELECT - - 73 AS col0, - 82 * 73 + - SUM( - 47 )
----
73
-5939

skipif mysql # not compatible
query II rowsort label-652
SELECT - - 73 AS col0, - 82 * 73 + - SUM ( - 47 )
----
73
-5939

query I rowsort
SELECT 60 + + 68
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-654
SELECT 4 - - COUNT( * ) - + + 94 DIV + 12 + - ( 99 ) * 2
----
-200

skipif mysql # not compatible
query I rowsort label-654
SELECT 4 - - COUNT ( * ) - + + 94 / + 12 + - ( 99 ) * 2
----
-200

query I rowsort
SELECT - 20 + - + 98 AS col1
----
-118

query I rowsort
SELECT ALL 63 * - - 0
----
0

query I rowsort
SELECT DISTINCT - 82 - - 47 * 70 AS col0
----
3208

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT ALL ( - CASE - - 37 WHEN + + 20 THEN 28 + - + NULLIF ( + CAST( NULL AS SIGNED ), - - 30 ) WHEN 32 THEN + 58 + - 50 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL ( - CASE - - 37 WHEN + + 20 THEN 28 + - + NULLIF ( + CAST ( NULL AS INTEGER ), - - 30 ) WHEN 32 THEN + 58 + - 50 END )
----
NULL

query I rowsort
SELECT 29 + 82 AS col1
----
111

query I rowsort
SELECT DISTINCT + NULLIF ( 18, - AVG ( - - 87 ) ) AS col2
----
18

query I rowsort
SELECT 57 * + + 9 * + 97
----
49761

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT MIN( - 64 ) * + + MAX( ALL + 71 ) * COUNT( * )
----
-4544

skipif mysql # not compatible
query I rowsort label-663
SELECT MIN ( - 64 ) * + + MAX ( ALL + 71 ) * COUNT ( * )
----
-4544

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

onlyif mysql # aggregate syntax: 
query II rowsort label-665
SELECT ALL - COUNT( - 96 ) AS col1, 66 AS col1
----
-1
66

skipif mysql # not compatible
query II rowsort label-665
SELECT ALL - COUNT ( - 96 ) AS col1, 66 AS col1
----
-1
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-666
SELECT ALL 97 + - - 24 + - ( 91 ) + - + 59 + - + 74 - - COUNT( * ) DIV 44 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL 97 + - - 24 + - ( 91 ) + - + 59 + - + 74 - - COUNT ( * ) / 44 AS col2
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT + ( - 31 ) * + CASE + + 65 WHEN - ( + 96 ) THEN COUNT( * ) ELSE NULL END + - - COUNT( * ) + + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-667
SELECT + ( - 31 ) * + CASE + + 65 WHEN - ( + 96 ) THEN COUNT ( * ) ELSE NULL END + - - COUNT ( * ) + + - 19
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-668
SELECT 37 * - 98, 31 DIV - 94 * + - 16 AS col1
----
-3626
0

skipif mysql # not compatible
query II rowsort label-668
SELECT 37 * - 98, 31 / - 94 * + - 16 AS col1
----
-3626
0

query I rowsort
SELECT ( + 32 ) + + - ( + - 25 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT DISTINCT COUNT( * ) + 93 + - + MAX( + 17 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT COUNT ( * ) + 93 + - + MAX ( + 17 ) AS col2
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT DISTINCT CASE + 32 WHEN - 17 * - COALESCE ( 41, + NULLIF ( + 67, + 56 ) ) / + + 20 + MIN( + 25 ) THEN ( ( 47 ) ) WHEN 4 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT CASE + 32 WHEN - 17 * - COALESCE ( 41, + NULLIF ( + 67, + 56 ) ) / + + 20 + MIN ( + 25 ) THEN ( ( 47 ) ) WHEN 4 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-673
SELECT DISTINCT + - 1 - 4 col0, - 57 * + CASE + 51 WHEN + + 45 THEN 0 / 78 * + 24 END * MIN( + ( 18 ) - ( + 27 + 11 ) * 21 ) AS col0
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-673
SELECT DISTINCT + - 1 - 4 col0, - 57 * + CASE + 51 WHEN + + 45 THEN 0 / 78 * + 24 END * MIN ( + ( 18 ) - ( + 27 + 11 ) * 21 ) AS col0
----
-5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-674
SELECT - 78 DIV + 64 + - 22
----
-23

skipif mysql # not compatible
query I rowsort label-674
SELECT - 78 / + 64 + - 22
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-675
SELECT ALL - + COUNT( ALL - CAST( + 92 AS SIGNED ) ) * + + CASE + + AVG ( - 70 ) WHEN - - COUNT( * ) / - + COUNT( * ) * 99 THEN 30 WHEN 57 + - 2 THEN + SUM( DISTINCT + 30 ) * ( ( 78 ) + 18 ) END + MIN( - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL - + COUNT ( ALL - CAST ( + 92 AS INTEGER ) ) * + + CASE + + AVG ( - 70 ) WHEN - - COUNT ( * ) / - + COUNT ( * ) * 99 THEN 30 WHEN 57 + - 2 THEN + SUM ( DISTINCT + 30 ) * ( ( 78 ) + 18 ) END + MIN ( - 29 )
----
NULL

query I rowsort
SELECT + 17 * + - ( - - 32 ) AS col1
----
-544

query I rowsort
SELECT ( + - 84 ) + - 54 + - 22
----
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT - 26 DIV + - 7 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-678
SELECT - 26 / + - 7 AS col2
----
3

query I rowsort
SELECT DISTINCT 96 * - - 67 * - 19
----
-122208

query I rowsort
SELECT ALL COALESCE ( + + CASE 91 WHEN NULLIF ( 8, + 85 * - 18 ) THEN + - 55 END, ( 61 ) + 74 * - 32 )
----
-2307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-681
SELECT ALL - CAST( - 58 AS SIGNED ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL - CAST ( - 58 AS INTEGER ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-682
SELECT + 76 * COUNT( * ) * - 96 + + - 30 - + CAST( + + 43 AS SIGNED )
----
-7369

skipif mysql # not compatible
query I rowsort label-682
SELECT + 76 * COUNT ( * ) * - 96 + + - 30 - + CAST ( + + 43 AS INTEGER )
----
-7369

onlyif mysql # aggregate syntax: 
query II rowsort label-683
SELECT DISTINCT CASE - 44 WHEN - 40 THEN NULL WHEN - 73 + + 57 THEN - - COUNT( * ) END AS col2, + COALESCE ( 68, + 57 ) * + 45 AS col1
----
NULL
3060

skipif mysql # not compatible
query II rowsort label-683
SELECT DISTINCT CASE - 44 WHEN - 40 THEN NULL WHEN - 73 + + 57 THEN - - COUNT ( * ) END AS col2, + COALESCE ( 68, + 57 ) * + 45 AS col1
----
NULL
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT DISTINCT - 2 * - COUNT( * ) * - 83 * + 16
----
-2656

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT - 2 * - COUNT ( * ) * - 83 * + 16
----
-2656

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

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT - 98 - + 1 + - 16 + - 82 + + - 86 DIV 38 * + 92 * 53 col0
----
-9949

skipif mysql # not compatible
query I rowsort label-686
SELECT - 98 - + 1 + - 16 + - 82 + + - 86 / 38 * + 92 * 53 col0
----
-9949

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL - 12 * + SUM( ALL + - 83 ) AS col2
----
996

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL - 12 * + SUM ( ALL + - 83 ) AS col2
----
996

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT CASE - 34 WHEN + MIN( DISTINCT - 58 ) THEN + COUNT( * ) * - + MIN( - + 85 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT CASE - 34 WHEN + MIN ( DISTINCT - 58 ) THEN + COUNT ( * ) * - + MIN ( - + 85 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 62 + + 76
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT + COUNT( - 27 ) * + + 12 * + + COUNT( - 0 ) * - 73 + - + 49 + + + COUNT( DISTINCT + 38 )
----
-924

skipif mysql # not compatible
query I rowsort label-690
SELECT + COUNT ( - 27 ) * + + 12 * + + COUNT ( - 0 ) * - 73 + - + 49 + + + COUNT ( DISTINCT + 38 )
----
-924

query I rowsort
SELECT + 44 - + + 42 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-692
SELECT COALESCE ( 30, - 23, - MAX( + ( 80 ) ) + + + 5 * - 88 ) AS col0, 51 + + + 24 - 32 * CAST( NULL AS SIGNED ) AS col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-692
SELECT COALESCE ( 30, - 23, - MAX ( + ( 80 ) ) + + + 5 * - 88 ) AS col0, 51 + + + 24 - 32 * CAST ( NULL AS INTEGER ) AS col2
----
30
NULL

query I rowsort
SELECT 22 * - + 81 + + - 91 * - 12 + + - 83
----
-773

query I rowsort
SELECT + 20 * + 95 AS col0
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT DISTINCT COUNT( * ) * ( + 23 ) * - - COUNT( * ) + 53 + + ( - - 67 )
----
143

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT COUNT ( * ) * ( + 23 ) * - - COUNT ( * ) + 53 + + ( - - 67 )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT ALL + 60 * ( 91 ) + + 19 / - ( + 83 ) * CASE + 83 WHEN - ( 80 ) * 40 + 89 / + 75 THEN 94 * 50 - - NULLIF ( - 8, 94 ) ELSE NULL END - 75 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + 60 * ( 91 ) + + 19 / - ( + 83 ) * CASE + 83 WHEN - ( 80 ) * 40 + 89 / + 75 THEN 94 * 50 - - NULLIF ( - 8, 94 ) ELSE NULL END - 75 * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 84 + + 87 col1
----
171

query I rowsort
SELECT ALL 72 * - 76 AS col2
----
-5472

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT CASE - - 12 WHEN 67 * 38 * + - COUNT( * ) THEN NULL WHEN + 19 + - 31 / 77 * + 23 THEN NULL WHEN 90 THEN + 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-699
SELECT CASE - - 12 WHEN 67 * 38 * + - COUNT ( * ) THEN NULL WHEN + 19 + - 31 / 77 * + 23 THEN NULL WHEN 90 THEN + 17 ELSE NULL END
----
NULL

query I rowsort
SELECT + - 96 * + 44
----
-4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-701
SELECT - COALESCE ( - NULLIF ( + + 46, + COUNT( * ) ), + - COALESCE ( 64, - COALESCE ( + - 42, - - COUNT( * ) * 41 + + 20 ) * 95 ) + CAST( 31 AS SIGNED ), - 54 * 93 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-701
SELECT - COALESCE ( - NULLIF ( + + 46, + COUNT ( * ) ), + - COALESCE ( 64, - COALESCE ( + - 42, - - COUNT ( * ) * 41 + + 20 ) * 95 ) + CAST ( 31 AS INTEGER ), - 54 * 93 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-702
SELECT - 39, - 89 * + 79 * - 19 + 42 * COUNT( * ) AS col0
----
-39
133631

skipif mysql # not compatible
query II rowsort label-702
SELECT - 39, - 89 * + 79 * - 19 + 42 * COUNT ( * ) AS col0
----
-39
133631

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT + 11 - + 26 + - MIN( 0 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-703
SELECT + 11 - + 26 + - MIN ( 0 ) AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-704
SELECT ALL CAST( 97 AS SIGNED ) * - 20 AS col2, - 66
----
-1940
-66

skipif mysql # not compatible
query II rowsort label-704
SELECT ALL CAST ( 97 AS INTEGER ) * - 20 AS col2, - 66
----
-1940
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-705
SELECT 13 * - 50 + - - 99 + - 82 + + CASE - 51 WHEN - COALESCE ( + 31, 93 + - 65 + + 64 / 33 * - CAST( - 55 * 35 AS SIGNED ), + 50 + 85 / 3 ) * NULLIF ( + 33, + 20 * - SUM( ALL 44 * 67 ) ) THEN 7 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-705
SELECT 13 * - 50 + - - 99 + - 82 + + CASE - 51 WHEN - COALESCE ( + 31, 93 + - 65 + + 64 / 33 * - CAST ( - 55 * 35 AS INTEGER ), + 50 + 85 / 3 ) * NULLIF ( + 33, + 20 * - SUM ( ALL 44 * 67 ) ) THEN 7 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-706
SELECT + 28 AS col1, + ( + COALESCE ( + COALESCE ( + 52, - ( + 16 ), - 15 DIV - - 66 + - + ( COUNT( * ) ) ), 80 ) ) * + 41
----
28
2132

skipif mysql # not compatible
query II rowsort label-706
SELECT + 28 AS col1, + ( + COALESCE ( + COALESCE ( + 52, - ( + 16 ), - 15 / - - 66 + - + ( COUNT ( * ) ) ), 80 ) ) * + 41
----
28
2132

query II rowsort
SELECT ALL - 69 * - ( - 30 ) AS col1, 59
----
-2070
59

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

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

query I rowsort
SELECT - - NULLIF ( + 36, + 97 ) - + 22
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT - CASE SUM( + 20 ) WHEN 18 THEN - - ( + 38 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-710
SELECT - CASE SUM ( + 20 ) WHEN 18 THEN - - ( + 38 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + + 78 + 25 AS col1
----
103

query I rowsort
SELECT - + 72 - 10
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-713
SELECT + - 3 + - ( - 13 ) + + + SUM( DISTINCT - 12 ) AS col2, 54 * 0
----
-2
0

skipif mysql # not compatible
query II rowsort label-713
SELECT + - 3 + - ( - 13 ) + + + SUM ( DISTINCT - 12 ) AS col2, 54 * 0
----
-2
0

query I rowsort
SELECT ALL 86 + - 71 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT - ( - + ( + 64 ) ) + + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-715
SELECT - ( - + ( + 64 ) ) + + COUNT ( * )
----
65

query I rowsort
SELECT ALL - 26 * + 75
----
-1950

query I rowsort
SELECT DISTINCT + 71 + - COALESCE ( - + 9, 38 * - 51 * 4 ) AS col2
----
80

query II rowsort
SELECT - 23, + 27 col2
----
-23
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-719
SELECT - 50 + + CAST( - + 44 AS SIGNED ) + - 23 * + + 66
----
-1612

skipif mysql # not compatible
query I rowsort label-719
SELECT - 50 + + CAST ( - + 44 AS INTEGER ) + - 23 * + + 66
----
-1612

query I rowsort
SELECT ALL + 53 + + 78 - + 7 + + 78 * + 71 col1
----
5662

onlyif mysql # DIV for integer division: 
query II rowsort label-721
SELECT - 77 AS col2, - 63 DIV - 9
----
-77
7

skipif mysql # not compatible
query II rowsort label-721
SELECT - 77 AS col2, - 63 / - 9
----
-77
7

query I rowsort
SELECT - 38 * + - 65
----
2470

query III rowsort
SELECT ALL + 56 AS col1, 51 AS col2, - 68 - - - 62 AS col1
----
56
51
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-724
SELECT - 99 DIV + ( + COALESCE ( + - MIN( + - ( 18 ) ), - - 65 ) ) + 39 * + 87, 78 * 53 DIV 68 AS col1
----
3388
60

skipif mysql # not compatible
query II rowsort label-724
SELECT - 99 / + ( + COALESCE ( + - MIN ( + - ( 18 ) ), - - 65 ) ) + 39 * + 87, 78 * 53 / 68 AS col1
----
3388
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-725
SELECT DISTINCT + CAST( + 69 AS SIGNED ) col0, + 50 DIV + + 33 * + COUNT( ALL - 43 )
----
69
1

skipif mysql # not compatible
query II rowsort label-725
SELECT DISTINCT + CAST ( + 69 AS INTEGER ) col0, + 50 / + + 33 * + COUNT ( ALL - 43 )
----
69
1

query I rowsort
SELECT ALL + ( - + 91 ) col2
----
-91

query I rowsort
SELECT + 78 * + + 87
----
6786

query III rowsort
SELECT ALL + 75, 96 AS col0, + - 9 AS col0
----
75
96
-9

query I rowsort
SELECT 55 * + 42 - 97 AS col0
----
2213

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-730
SELECT ( + 72 ) AS col1, 25 DIV COUNT( * ) AS col0
----
72
25

skipif mysql # not compatible
query II rowsort label-730
SELECT ( + 72 ) AS col1, 25 / COUNT ( * ) AS col0
----
72
25

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT + - 19 DIV + 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-731
SELECT + - 19 / + 65 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT ALL 30 DIV - + 55
----
0

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL 30 / - + 55
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-733
SELECT + 99 / - - CAST( NULL AS SIGNED ) * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-733
SELECT + 99 / - - CAST ( NULL AS INTEGER ) * 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-734
SELECT ALL + 48 AS col1, SUM( + - 65 ) * - CAST( NULL AS SIGNED ) + + + 53 / + 4 * + + 3 + + 30 - - CAST( NULL AS SIGNED ) + - 7 * + 72
----
48
NULL

skipif mysql # not compatible
query II rowsort label-734
SELECT ALL + 48 AS col1, SUM ( + - 65 ) * - CAST ( NULL AS INTEGER ) + + + 53 / + 4 * + + 3 + + 30 - - CAST ( NULL AS INTEGER ) + - 7 * + 72
----
48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT + + 42 + + COUNT( * ) * - - 46
----
88

skipif mysql # not compatible
query I rowsort label-735
SELECT + + 42 + + COUNT ( * ) * - - 46
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT + 25 * 64 - COUNT( * ) AS col2
----
1599

skipif mysql # not compatible
query I rowsort label-736
SELECT + 25 * 64 - COUNT ( * ) AS col2
----
1599

onlyif mysql # DIV for integer division: 
query I rowsort label-737
SELECT DISTINCT 87 DIV + 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT 87 / + 48 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-738
SELECT ALL + 25 col2, 84 * + 33 * + CAST( NULL AS SIGNED ) AS col2
----
25
NULL

skipif mysql # not compatible
query II rowsort label-738
SELECT ALL + 25 col2, 84 * + 33 * + CAST ( NULL AS INTEGER ) AS col2
----
25
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-739
SELECT + + 93 DIV - 97 * 88 * - + 17 AS col1, 28 + - 40 AS col1
----
0
-12

skipif mysql # not compatible
query II rowsort label-739
SELECT + + 93 / - 97 * 88 * - + 17 AS col1, 28 + - 40 AS col1
----
0
-12

query I rowsort
SELECT - 75 * + + 90 AS col0
----
-6750

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

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

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

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

skipif mysql # not compatible
query I rowsort label-743
SELECT - CAST ( + ( 68 ) AS INTEGER ) AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-744
SELECT ALL 80 AS col0, + ( - 46 ) + + + ( - + CAST( NULL AS SIGNED ) ) + 75 + + 8
----
80
NULL

skipif mysql # not compatible
query II rowsort label-744
SELECT ALL 80 AS col0, + ( - 46 ) + + + ( - + CAST ( NULL AS INTEGER ) ) + 75 + + 8
----
80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT DISTINCT - NULLIF ( - MIN( - 10 ), 43 ) * - 66 * - + 1 * - 51 + - ( - 84 ) + - COUNT( * ) - - + 76 + - 7 * + COUNT( * ) AS col2
----
33812

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT - NULLIF ( - MIN ( - 10 ), 43 ) * - 66 * - + 1 * - 51 + - ( - 84 ) + - COUNT ( * ) - - + 76 + - 7 * + COUNT ( * ) AS col2
----
33812

query I rowsort
SELECT + 15 * - - 31 + + 44 AS col1
----
509

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-748
SELECT ALL 99 + COUNT( ALL - 28 ) + + COALESCE ( 73, 15 - + - ( + 61 ) DIV - + 63, + + 59 )
----
173

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL 99 + COUNT ( ALL - 28 ) + + COALESCE ( 73, 15 - + - ( + 61 ) / - + 63, + + 59 )
----
173

query I rowsort
SELECT DISTINCT 3 + + + 29
----
32

onlyif mysql # DIV for integer division: 
query III rowsort label-750
SELECT ALL 80 + 99 DIV - 64, - 77 + - + 38 AS col2, + 20 col0
----
79
-115
20

skipif mysql # not compatible
query III rowsort label-750
SELECT ALL 80 + 99 / - 64, - 77 + - + 38 AS col2, + 20 col0
----
79
-115
20

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT 76 - CASE + + 46 WHEN - + CASE + - COALESCE ( + 62, - 0 ) WHEN - - COUNT( * ) THEN 41 WHEN 80 THEN NULL END + - 83 + - 10 + + 12 THEN 75 * 12 END * - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-751
SELECT 76 - CASE + + 46 WHEN - + CASE + - COALESCE ( + 62, - 0 ) WHEN - - COUNT ( * ) THEN 41 WHEN 80 THEN NULL END + - 83 + - 10 + + 12 THEN 75 * 12 END * - 44 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT DISTINCT + COALESCE ( + - 26, 86 * + COUNT( * ) ) + - CAST( - 42 AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT + COALESCE ( + - 26, 86 * + COUNT ( * ) ) + - CAST ( - 42 AS INTEGER ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-753
SELECT ALL + 22 - - 47 + + + CAST( NULL AS SIGNED ) + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL + 22 - - 47 + + + CAST ( NULL AS INTEGER ) + + 67
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-755
SELECT ALL - COUNT( DISTINCT + CAST( - 77 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL - COUNT ( DISTINCT + CAST ( - 77 AS INTEGER ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-756
SELECT ALL - CAST( 28 AS SIGNED ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL - CAST ( 28 AS INTEGER ) col1
----
-28

query II rowsort
SELECT 36 * + - 1 AS col0, - 76 * - + 79 AS col0
----
-36
6004

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL - SUM( ALL 4 ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL - SUM ( ALL 4 ) col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT 60 * - 18 + MAX( CASE + ( + + 33 ) WHEN + ( + CASE 95 WHEN - - 90 THEN + 17 END ) THEN NULL WHEN + + 95 * 26 THEN - 56 * + 55 + + 91 ELSE - 24 * 39 END )
----
-2016

skipif mysql # not compatible
query I rowsort label-759
SELECT 60 * - 18 + MAX ( CASE + ( + + 33 ) WHEN + ( + CASE 95 WHEN - - 90 THEN + 17 END ) THEN NULL WHEN + + 95 * 26 THEN - 56 * + 55 + + 91 ELSE - 24 * 39 END )
----
-2016

query I rowsort
SELECT 55 - - 21 + + 46
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-761
SELECT DISTINCT - CASE + + CAST( NULL AS SIGNED ) WHEN - - 87 THEN SUM( - 95 ) WHEN + ( + ( + ( - - COUNT( ( + + 30 ) ) ) ) ) * + 2 + - 46 THEN COALESCE ( - 28, + COUNT( * ) + ( + 47 ) ) * 32 + - 65 / - 95 WHEN + 86 * - 25 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT DISTINCT - CASE + + CAST ( NULL AS INTEGER ) WHEN - - 87 THEN SUM ( - 95 ) WHEN + ( + ( + ( - - COUNT ( ( + + 30 ) ) ) ) ) * + 2 + - 46 THEN COALESCE ( - 28, + COUNT ( * ) + ( + 47 ) ) * 32 + - 65 / - 95 WHEN + 86 * - 25 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-762
SELECT - + ( - 39 ) DIV + COUNT( * ) + - 90
----
-51

skipif mysql # not compatible
query I rowsort label-762
SELECT - + ( - 39 ) / + COUNT ( * ) + - 90
----
-51

query I rowsort
SELECT + 78 * + 70 - 0
----
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + 70 * + + COUNT( * ) * - 52 AS col2
----
-3640

skipif mysql # not compatible
query I rowsort label-764
SELECT + 70 * + + COUNT ( * ) * - 52 AS col2
----
-3640

query I rowsort
SELECT DISTINCT + - 19 * + ( + 13 ) * - 27 + - 88 * 43
----
2885

query I rowsort
SELECT DISTINCT - - 62 AS col2
----
62

query I rowsort
SELECT ALL + 2 * - - 75 AS col2
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-768
SELECT - COUNT( * ) * + + 25 - + + 16 AS col2, + 75 - ( - 24 )
----
-41
99

skipif mysql # not compatible
query II rowsort label-768
SELECT - COUNT ( * ) * + + 25 - + + 16 AS col2, + 75 - ( - 24 )
----
-41
99

query I rowsort
SELECT ALL + + 77 * + 10 AS col0
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT - MAX( ALL 10 ) + + 29 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-770
SELECT - MAX ( ALL 10 ) + + 29 AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-771
SELECT 73 * COUNT( * ) * + - CAST( - - 35 AS SIGNED ) AS col0
----
-2555

skipif mysql # not compatible
query I rowsort label-771
SELECT 73 * COUNT ( * ) * + - CAST ( - - 35 AS INTEGER ) AS col0
----
-2555

query I rowsort
SELECT DISTINCT + - 27 + - 85 AS col0
----
-112

query I rowsort
SELECT ALL + 50 + - 72
----
-22

query I rowsort
SELECT 52 - + - 16
----
68

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-776
SELECT ALL - 15 + 24 DIV + ( + SUM( - - 96 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL - 15 + 24 / + ( + SUM ( - - 96 ) )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-777
SELECT DISTINCT 60, + MIN( - 7 ) AS col2
----
60
-7

skipif mysql # not compatible
query II rowsort label-777
SELECT DISTINCT 60, + MIN ( - 7 ) AS col2
----
60
-7

query II rowsort
SELECT - 61 AS col2, 22 * + + 28 AS col1
----
-61
616

query II rowsort
SELECT DISTINCT 66, 21 AS col0
----
66
21

query I rowsort
SELECT 21 - 37 + - + 29 AS col0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-781
SELECT ( 90 ) + + 92, 16 DIV + COUNT( * ) - + MIN( 81 ) AS col2
----
182
-65

skipif mysql # not compatible
query II rowsort label-781
SELECT ( 90 ) + + 92, 16 / + COUNT ( * ) - + MIN ( 81 ) AS col2
----
182
-65

query I rowsort
SELECT ALL COALESCE ( + - 69, - ( 43 ) ) - - 31 AS col1
----
-38

query I rowsort
SELECT 11 + + 7
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT ALL 38 AS col2, CASE - + SUM( DISTINCT - - 91 ) WHEN + + 24 THEN - + MIN( - - ( - - 77 ) ) WHEN + 27 THEN ( - COUNT( * ) ) + 88 / 20 END AS col2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-784
SELECT ALL 38 AS col2, CASE - + SUM ( DISTINCT - - 91 ) WHEN + + 24 THEN - + MIN ( - - ( - - 77 ) ) WHEN + 27 THEN ( - COUNT ( * ) ) + 88 / 20 END AS col2
----
38
NULL

query II rowsort
SELECT - 96, + 2 AS col1
----
-96
2

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT MIN( 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-786
SELECT MIN ( 24 ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-787
SELECT + COUNT( * ) DIV ( - 67 ) + CAST( + 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-787
SELECT + COUNT ( * ) / ( - 67 ) + CAST ( + 77 AS INTEGER )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT + MAX( - - 5 ) col2
----
5

skipif mysql # not compatible
query I rowsort label-788
SELECT + MAX ( - - 5 ) col2
----
5

query II rowsort
SELECT 65 + + ( 55 ), 6 + 38 AS col2
----
120
44

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT ALL 25 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL 25 / - 93
----
0

query I rowsort
SELECT DISTINCT + 53 * - ( + 81 ) - - 99 AS col1
----
-4194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-793
SELECT ALL 51 * - CASE - - MIN( DISTINCT - + 60 ) WHEN CASE - - 83 WHEN + 7 + + NULLIF ( MAX( ALL - CASE + CAST( NULL AS SIGNED ) WHEN - - 84 + + ( 62 ) + + 77 / 79 THEN + 1 END ), + 52 ) * + MAX( - 80 ) THEN NULL WHEN + NULLIF ( - AVG ( ALL 2 ), + COALESCE ( - 25, 40 ) - 21 ) * + COUNT( * ) THEN + 73 * COUNT( DISTINCT - 46 * + 48 ) END THEN 8 + 85 * 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL 51 * - CASE - - MIN ( DISTINCT - + 60 ) WHEN CASE - - 83 WHEN + 7 + + NULLIF ( MAX ( ALL - CASE + CAST ( NULL AS INTEGER ) WHEN - - 84 + + ( 62 ) + + 77 / 79 THEN + 1 END ), + 52 ) * + MAX ( - 80 ) THEN NULL WHEN + NULLIF ( - AVG ( ALL 2 ), + COALESCE ( - 25, 40 ) - 21 ) * + COUNT ( * ) THEN + 73 * COUNT ( DISTINCT - 46 * + 48 ) END THEN 8 + 85 * 19 END AS col0
----
NULL

query I rowsort
SELECT 26 * 19 + + 8 + - 3
----
499

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

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT - COALESCE ( + + 59, + ( 10 ) ) * ( + ( - COUNT( * ) ) ) + + - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-796
SELECT - COALESCE ( + + 59, + ( 10 ) ) * ( + ( - COUNT ( * ) ) ) + + - COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT ALL COUNT( * ) * - 75 * MIN( ALL 28 ) + 36
----
-2064

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL COUNT ( * ) * - 75 * MIN ( ALL 28 ) + 36
----
-2064

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

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

query II rowsort
SELECT - 61 - - 32 + + 29 AS col2, 80
----
0
80

onlyif mysql # aggregate syntax: 
query II rowsort label-800
SELECT + COUNT( * ), 93 * - 16 * + + 62 col0
----
1
-92256

skipif mysql # not compatible
query II rowsort label-800
SELECT + COUNT ( * ), 93 * - 16 * + + 62 col0
----
1
-92256

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-802
SELECT ALL + 30 * 48 + 56 AS col2, COUNT( * ) col2
----
1496
1

skipif mysql # not compatible
query II rowsort label-802
SELECT ALL + 30 * 48 + 56 AS col2, COUNT ( * ) col2
----
1496
1

onlyif mysql # aggregate syntax: 
query II rowsort label-803
SELECT ALL + 19 + + 20 + COALESCE ( + COUNT( * ), - COUNT( * ) + 51 ), COUNT( * ) - 10 AS col2
----
40
-9

skipif mysql # not compatible
query II rowsort label-803
SELECT ALL + 19 + + 20 + COALESCE ( + COUNT ( * ), - COUNT ( * ) + 51 ), COUNT ( * ) - 10 AS col2
----
40
-9

query II rowsort
SELECT ALL + 26 AS col0, 8 col2
----
26
8

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT DISTINCT - + CASE + COUNT( * ) WHEN - COUNT( * ) * - - 70 THEN + 78 ELSE + NULLIF ( 63, + + 79 ) END + - + MAX( 17 )
----
-80

skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT - + CASE + COUNT ( * ) WHEN - COUNT ( * ) * - - 70 THEN + 78 ELSE + NULLIF ( 63, + + 79 ) END + - + MAX ( 17 )
----
-80

query I rowsort
SELECT ALL - 38 + - 97 AS col0
----
-135

query I rowsort
SELECT ALL - 69 * - ( + ( + - 57 ) ) + - 17
----
-3950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-808
SELECT - + MIN( DISTINCT ( - 24 ) ) * - 56 * - CAST( - 12 AS SIGNED ) * - 18 * - NULLIF ( - 14, COUNT( * ) + 17 ) + - 67 * + + 78 + 93
----
4059123

skipif mysql # not compatible
query I rowsort label-808
SELECT - + MIN ( DISTINCT ( - 24 ) ) * - 56 * - CAST ( - 12 AS INTEGER ) * - 18 * - NULLIF ( - 14, COUNT ( * ) + 17 ) + - 67 * + + 78 + 93
----
4059123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-809
SELECT + 41 * 60 DIV - + COUNT( ( - ( + COALESCE ( + 17, + 14, 42 ) ) ) ) + - 0 DIV - 56 * - 64 AS col1
----
-2460

skipif mysql # not compatible
query I rowsort label-809
SELECT + 41 * 60 / - + COUNT ( ( - ( + COALESCE ( + 17, + 14, 42 ) ) ) ) + - 0 / - 56 * - 64 AS col1
----
-2460

query I rowsort
SELECT + 4 * - + 62 col1
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT + 21 + - + COUNT( * ) * - - 28 * - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-811
SELECT + 21 + - + COUNT ( * ) * - - 28 * - COUNT ( * )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-812
SELECT ALL - 22 - + 26 DIV 54
----
-22

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL - 22 - + 26 / 54
----
-22

query II rowsort
SELECT - 33 * - 44, 18 + 80 * + NULLIF ( - + 59, + 87 + - - 23 ) AS col2
----
1452
-4702

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT DISTINCT - 49 * 95 DIV - - 63 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT - 49 * 95 / - - 63 AS col0
----
-73

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

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

query I rowsort
SELECT - 68 * + - 92 AS col1
----
6256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-817
SELECT ALL - NULLIF ( 39, - MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) - 24 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL - NULLIF ( 39, - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) - 24 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-818
SELECT ALL CASE - + 32 WHEN 73 * - 87 * + CAST( - CASE - COUNT( DISTINCT - + 70 ) WHEN 1 THEN NULL ELSE - COUNT( * ) END AS DECIMAL ) THEN NULL ELSE + 41 * - - NULLIF ( + COUNT( * ), - 64 * - 67 ) END AS col1
----
41

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL CASE - + 32 WHEN 73 * - 87 * + CAST ( - CASE - COUNT ( DISTINCT - + 70 ) WHEN 1 THEN NULL ELSE - COUNT ( * ) END AS REAL ) THEN NULL ELSE + 41 * - - NULLIF ( + COUNT ( * ), - 64 * - 67 ) END AS col1
----
41

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

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

query I rowsort
SELECT ALL 73 - + 22 + + 36 col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-821
SELECT + COUNT( DISTINCT + CAST( 98 AS DECIMAL ) ) * - COUNT( * ) + + 98 - + CASE + - 83 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + ( 62 ) / + COUNT( * ) - + - CAST( NULL AS SIGNED ) + 98 / - 50 * + 34 - - 94 / - ( - COALESCE ( - 80, + 92 ) ) END + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT + COUNT ( DISTINCT + CAST ( 98 AS REAL ) ) * - COUNT ( * ) + + 98 - + CASE + - 83 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + ( 62 ) / + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) + 98 / - 50 * + 34 - - 94 / - ( - COALESCE ( - 80, + 92 ) ) END + - 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-822
SELECT ALL - MIN( + 70 ) * + 69 + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL - MIN ( + 70 ) * + 69 + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-823
SELECT - 49 - 11 - - 78 * - 62 + 91 + - ( - 79 ) + + CAST( 75 AS SIGNED ) + - 56 * - 14 * - 69 AS col1
----
-58747

skipif mysql # not compatible
query I rowsort label-823
SELECT - 49 - 11 - - 78 * - 62 + 91 + - ( - 79 ) + + CAST ( 75 AS INTEGER ) + - 56 * - 14 * - 69 AS col1
----
-58747

onlyif mysql # aggregate syntax: 
query II rowsort label-824
SELECT - NULLIF ( + 6, - + MAX( + 75 ) * + - 73 + + + COUNT( * ) + + 1 ) AS col1, 6
----
-6
6

skipif mysql # not compatible
query II rowsort label-824
SELECT - NULLIF ( + 6, - + MAX ( + 75 ) * + - 73 + + + COUNT ( * ) + + 1 ) AS col1, 6
----
-6
6

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

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL CAST ( NULL AS INTEGER ) * - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT - 26 + + COALESCE ( + 35, - 53 * - 9 + - - 40 ) * + + MAX( ALL + 3 ) + - 21
----
58

skipif mysql # not compatible
query I rowsort label-826
SELECT - 26 + + COALESCE ( + 35, - 53 * - 9 + - - 40 ) * + + MAX ( ALL + 3 ) + - 21
----
58

query I rowsort
SELECT - 43 * + + 89 AS col1
----
-3827

onlyif mysql # aggregate syntax: 
query II rowsort label-828
SELECT - COALESCE ( - 26, + MAX( 36 ) - + 21 ) AS col1, ( + 16 ) * + 5 + - + NULLIF ( + 65, 66 / + - COUNT( * ) + COUNT( DISTINCT - 58 ) + + 34 ) + - 49 * + 99
----
26
-4836

skipif mysql # not compatible
query II rowsort label-828
SELECT - COALESCE ( - 26, + MAX ( 36 ) - + 21 ) AS col1, ( + 16 ) * + 5 + - + NULLIF ( + 65, 66 / + - COUNT ( * ) + COUNT ( DISTINCT - 58 ) + + 34 ) + - 49 * + 99
----
26
-4836

onlyif mysql # aggregate syntax: 
query II rowsort label-829
SELECT DISTINCT 72 * - 37, 54 * - + CASE - 1 WHEN 28 THEN 78 WHEN + - 92 + - COUNT( * ) + + - CASE - 12 WHEN - 57 THEN - 69 * 35 ELSE NULL END THEN NULL END * + 82 AS col2
----
-2664
NULL

skipif mysql # not compatible
query II rowsort label-829
SELECT DISTINCT 72 * - 37, 54 * - + CASE - 1 WHEN 28 THEN 78 WHEN + - 92 + - COUNT ( * ) + + - CASE - 12 WHEN - 57 THEN - 69 * 35 ELSE NULL END THEN NULL END * + 82 AS col2
----
-2664
NULL

query II rowsort
SELECT + 78 * + 5 AS col1, 60 * + 0 + + 32 AS col0
----
390
32

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ALL - ( - + ( + - NULLIF ( - 83, + - COUNT( ALL 32 ) ) ) ) * 84 AS col1
----
6972

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL - ( - + ( + - NULLIF ( - 83, + - COUNT ( ALL 32 ) ) ) ) * 84 AS col1
----
6972

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

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT ALL + ( - 33 ) * 94 + + + 27 - + ( - + 61 ) - - - 48 * + 7 - + CASE + + 75 WHEN + + COUNT( * ) THEN NULL WHEN 65 THEN - 88 END * 56 + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + ( - 33 ) * 94 + + + 27 - + ( - + 61 ) - - - 48 * + 7 - + CASE + + 75 WHEN + + COUNT ( * ) THEN NULL WHEN 65 THEN - 88 END * 56 + 21 AS col1
----
NULL

query I rowsort
SELECT ALL + 70 * + - 64 + + + 70
----
-4410

query I rowsort
SELECT + + 11 + + + 72
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT + COUNT( + 14 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-836
SELECT + COUNT ( + 14 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT DISTINCT COUNT( * ) * + 50 * - - 23 + 71 AS col0
----
1221

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT COUNT ( * ) * + 50 * - - 23 + 71 AS col0
----
1221

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT COUNT( * ) * MIN( DISTINCT + - 22 ) * + 59 * + + ( + 27 ) + + COUNT( * )
----
-35045

skipif mysql # not compatible
query I rowsort label-838
SELECT COUNT ( * ) * MIN ( DISTINCT + - 22 ) * + 59 * + + ( + 27 ) + + COUNT ( * )
----
-35045

query I rowsort
SELECT - - 30 - ( - 37 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT DISTINCT - 92 * - NULLIF ( - - MAX( + 53 ), - 26 ) - + + 25 * + 37 + - 89 AS col0
----
3862

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT - 92 * - NULLIF ( - - MAX ( + 53 ), - 26 ) - + + 25 * + 37 + - 89 AS col0
----
3862

query I rowsort
SELECT DISTINCT 81 * + + 61 + + - 24
----
4917

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT + MIN( + + 34 ) / ( CASE - 92 WHEN - NULLIF ( - - 32, + 49 * + COUNT( * ) + + 83 ) THEN + + ( COUNT( DISTINCT + + 21 ) ) + + 10 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-843
SELECT + MIN ( + + 34 ) / ( CASE - 92 WHEN - NULLIF ( - - 32, + 49 * + COUNT ( * ) + + 83 ) THEN + + ( COUNT ( DISTINCT + + 21 ) ) + + 10 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-844
SELECT DISTINCT + CASE COUNT( * ) WHEN + + 56 + - - 71 - ( - ( 75 ) ) THEN NULL WHEN + 27 * COALESCE ( - + 92, 48 + + CAST( - 88 AS SIGNED ) * + 89 * 32, CAST( NULL AS DECIMAL ) * 31 ) + CAST( 72 AS SIGNED ) + + COUNT( * ) THEN 5 + - 47 END * 93 + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT + CASE COUNT ( * ) WHEN + + 56 + - - 71 - ( - ( 75 ) ) THEN NULL WHEN + 27 * COALESCE ( - + 92, 48 + + CAST ( - 88 AS INTEGER ) * + 89 * 32, CAST ( NULL AS REAL ) * 31 ) + CAST ( 72 AS INTEGER ) + + COUNT ( * ) THEN 5 + - 47 END * 93 + 47 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 31 * - + 9
----
279

query I rowsort
SELECT DISTINCT + ( + - 15 ) * - 56 + - 72 AS col2
----
768

query I rowsort
SELECT + ( 67 ) * - 19 AS col0
----
-1273

query I rowsort
SELECT - + 4 * 34 * - 22 col1
----
2992

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT + + NULLIF ( 9, ( + + 5 ) ) + - - COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-849
SELECT + + NULLIF ( 9, ( + + 5 ) ) + - - COUNT ( * ) AS col0
----
10

query I rowsort
SELECT DISTINCT + 97 * + + 34 + + 44 - + 7 * 98
----
2656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-851
SELECT COALESCE ( + - COUNT( * ), - 85 DIV 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-851
SELECT COALESCE ( + - COUNT ( * ), - 85 / 66 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-852
SELECT ALL COUNT( * ), - 62 + 27 AS col2
----
1
-35

skipif mysql # not compatible
query II rowsort label-852
SELECT ALL COUNT ( * ), - 62 + 27 AS col2
----
1
-35

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

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

query I rowsort
SELECT - 46 * - 2 + 28
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT DISTINCT CASE - COUNT( * ) WHEN - 97 + 72 / - + 70 * 18 * - 89 * 54 THEN NULL ELSE - 32 END AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT CASE - COUNT ( * ) WHEN - 97 + 72 / - + 70 * 18 * - 89 * 54 THEN NULL ELSE - 32 END AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-856
SELECT + 73 + + 80 DIV - + 61
----
72

skipif mysql # not compatible
query I rowsort label-856
SELECT + 73 + + 80 / - + 61
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT - MAX( 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-858
SELECT - MAX ( 91 )
----
-91

query I rowsort
SELECT - 50 + - 8 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT - COUNT( DISTINCT + 18 ) - - ( + 40 ) + + NULLIF ( 16, + + ( 54 ) ) + CASE + 61 WHEN + 14 THEN + 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-860
SELECT - COUNT ( DISTINCT + 18 ) - - ( + 40 ) + + NULLIF ( 16, + + ( 54 ) ) + CASE + 61 WHEN + 14 THEN + 97 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-861
SELECT - 14 * + 59 * - CAST( + 73 AS SIGNED )
----
60298

skipif mysql # not compatible
query I rowsort label-861
SELECT - 14 * + 59 * - CAST ( + 73 AS INTEGER )
----
60298

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT - 26 + + COUNT( * ) * - 66
----
-92

skipif mysql # not compatible
query I rowsort label-862
SELECT - 26 + + COUNT ( * ) * - 66
----
-92

query I rowsort
SELECT - 32 - 19 AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-864
SELECT 18 AS col0, - CAST( 16 AS SIGNED ) * + COUNT( * ) + 63 * 46
----
18
2882

skipif mysql # not compatible
query II rowsort label-864
SELECT 18 AS col0, - CAST ( 16 AS INTEGER ) * + COUNT ( * ) + 63 * 46
----
18
2882

query I rowsort
SELECT + ( + 84 ) + - ( - 72 ) AS col2
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-866
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, ( - 75 ) AS col2
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-866
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, ( - 75 ) AS col2
----
NULL
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT - 78 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-867
SELECT - 78 / + 83 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-868
SELECT DISTINCT + COUNT( * ) + - 35 * + ( - 49 ) DIV COUNT( * ) + 67 - - ( + 54 ) * + 25 * - 97
----
-129167

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT + COUNT ( * ) + - 35 * + ( - 49 ) / COUNT ( * ) + 67 - - ( + 54 ) * + 25 * - 97
----
-129167

query I rowsort
SELECT ALL 66 + + 19 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT - 72 + - COUNT( * ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-870
SELECT - 72 + - COUNT ( * ) AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-871
SELECT DISTINCT CAST( - + 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT CAST ( - + 64 AS INTEGER )
----
-64

query I rowsort
SELECT - + 15 * + CASE 50 WHEN - AVG ( - 72 ) THEN NULL WHEN 75 * - + 36 THEN + - 98 END * - 32 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT ALL + 4 DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL + 4 / + 26
----
0

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

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL - COUNT ( * ) + + 27 AS col1
----
26

query I rowsort
SELECT - 25 + - + 55
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-876
SELECT - + 65 DIV + 91 * - - MIN( - 35 )
----
0

skipif mysql # not compatible
query I rowsort label-876
SELECT - + 65 / + 91 * - - MIN ( - 35 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-877
SELECT + 13 + COUNT( DISTINCT + - 87 ) DIV - + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-877
SELECT + 13 + COUNT ( DISTINCT + - 87 ) / - + COUNT ( * )
----
12

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

onlyif mysql # aggregate syntax: 
query II rowsort label-879
SELECT ALL - + 92 AS col0, 21 + - ( COUNT( * ) )
----
-92
20

skipif mysql # not compatible
query II rowsort label-879
SELECT ALL - + 92 AS col0, 21 + - ( COUNT ( * ) )
----
-92
20

query I rowsort
SELECT DISTINCT - 52 + 6 AS col1
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-881
SELECT ALL - 17, 92 DIV + 79 AS col0, - 82 * + COALESCE ( + - COUNT( * ), + 20 ) AS col0
----
-17
1
82

skipif mysql # not compatible
query III rowsort label-881
SELECT ALL - 17, 92 / + 79 AS col0, - 82 * + COALESCE ( + - COUNT ( * ), + 20 ) AS col0
----
-17
1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT COUNT( * ) * - 81 * + - 82 + + COUNT( * )
----
6643

skipif mysql # not compatible
query I rowsort label-882
SELECT COUNT ( * ) * - 81 * + - 82 + + COUNT ( * )
----
6643

query I rowsort
SELECT ALL - + 91 * + 16
----
-1456

query II rowsort
SELECT + 72 AS col2, + 80 - - ( + - 10 ) * + 20 AS col1
----
72
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT + COUNT( * ) * - 67 - + + 71
----
-138

skipif mysql # not compatible
query I rowsort label-885
SELECT + COUNT ( * ) * - 67 - + + 71
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT + 16 * + 52 * + + 74 * COUNT( * ) AS col2
----
61568

skipif mysql # not compatible
query I rowsort label-886
SELECT + 16 * + 52 * + + 74 * COUNT ( * ) AS col2
----
61568

query I rowsort
SELECT - 25 + + 94 + - 72 AS col2
----
-3

query I rowsort
SELECT DISTINCT 94 - - 92 AS col0
----
186

query I rowsort
SELECT DISTINCT + 19 * ( - 67 ) AS col1
----
-1273

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-891
SELECT NULLIF ( + + ( CASE - 55 WHEN MAX( DISTINCT + + CAST( + 54 AS SIGNED ) ) THEN NULL ELSE + 36 END ), 59 * + 92 * 67 + 22 ) + COUNT( * ) col1
----
37

skipif mysql # not compatible
query I rowsort label-891
SELECT NULLIF ( + + ( CASE - 55 WHEN MAX ( DISTINCT + + CAST ( + 54 AS INTEGER ) ) THEN NULL ELSE + 36 END ), 59 * + 92 * 67 + 22 ) + COUNT ( * ) col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT DISTINCT COUNT( * ) / COUNT( * ) * + ( + NULLIF ( + + COUNT( * ), + + COUNT( * ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) * + ( + NULLIF ( + + COUNT ( * ), + + COUNT ( * ) ) ) AS col1
----
NULL

query II rowsort
SELECT + 16, + 5 AS col2
----
16
5

query I rowsort
SELECT - 42 * 58 - + - 53 * - + 96 * 4
----
-22788

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-895
SELECT DISTINCT 9 * - ( + - 21 ) DIV COUNT( * ) + 76 + + 3 * - 18 * - - 75
----
-3785

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT 9 * - ( + - 21 ) / COUNT ( * ) + 76 + + 3 * - 18 * - - 75
----
-3785

query I rowsort
SELECT 4 * 48 * 37 AS col2
----
7104

query I rowsort
SELECT 59 * + 24 + - 55 + 73
----
1434

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

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

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

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

query I rowsort
SELECT 65 + 26 AS col1
----
91

query I rowsort
SELECT ALL + 33 + 70 AS col0
----
103

query I rowsort
SELECT 55 * - 22 AS col0
----
-1210

query I rowsort
SELECT ALL + 60 * + 85
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT ALL - 33 + - COUNT( ALL - - 19 )
----
-34

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL - 33 + - COUNT ( ALL - - 19 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT 35 - + 76 + - 37 + - 92 * + 22 * - COUNT( * ) * - 65 AS col0
----
-131638

skipif mysql # not compatible
query I rowsort label-905
SELECT 35 - + 76 + - 37 + - 92 * + 22 * - COUNT ( * ) * - 65 AS col0
----
-131638

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-906
SELECT - 5 AS col0, - CAST( + 34 AS SIGNED ) DIV 32 + + - ( 34 ) AS col1
----
-5
-35

skipif mysql # not compatible
query II rowsort label-906
SELECT - 5 AS col0, - CAST ( + 34 AS INTEGER ) / 32 + + - ( 34 ) AS col1
----
-5
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-907
SELECT 25 AS col0, 11 DIV 35 + + COUNT( * ) - + 9
----
25
-8

skipif mysql # not compatible
query II rowsort label-907
SELECT 25 AS col0, 11 / 35 + + COUNT ( * ) - + 9
----
25
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-908
SELECT ALL + 70 + - 40 DIV 38 + + MAX( 26 )
----
95

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL + 70 + - 40 / 38 + + MAX ( 26 )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-909
SELECT 73 + CAST( COALESCE ( + 23, COUNT( * ) ) AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-909
SELECT 73 + CAST ( COALESCE ( + 23, COUNT ( * ) ) AS INTEGER )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-910
SELECT - 48 col1, - 83 * NULLIF ( - ( - COUNT( * ) ), - 15 - + - 14 + + - 78 )
----
-48
-83

skipif mysql # not compatible
query II rowsort label-910
SELECT - 48 col1, - 83 * NULLIF ( - ( - COUNT ( * ) ), - 15 - + - 14 + + - 78 )
----
-48
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT - MIN( 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-911
SELECT - MIN ( 36 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-912
SELECT COALESCE ( + 61, - + 55 * + CAST( - 74 AS DECIMAL ) + - 40 * 97, 96 + + COUNT( * ) ) - - + 61 + + 71 * CASE - 40 WHEN - - CAST( NULL AS SIGNED ) THEN + 13 * 22 + COUNT( * ) WHEN ( - NULLIF ( 85, + CASE + 26 WHEN - 83 THEN NULL WHEN 91 THEN NULL ELSE + 76 END ) ) THEN 73 WHEN + 4 * 59 THEN NULL END * - MAX( 67 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT COALESCE ( + 61, - + 55 * + CAST ( - 74 AS REAL ) + - 40 * 97, 96 + + COUNT ( * ) ) - - + 61 + + 71 * CASE - 40 WHEN - - CAST ( NULL AS INTEGER ) THEN + 13 * 22 + COUNT ( * ) WHEN ( - NULLIF ( 85, + CASE + 26 WHEN - 83 THEN NULL WHEN 91 THEN NULL ELSE + 76 END ) ) THEN 73 WHEN + 4 * 59 THEN NULL END * - MAX ( 67 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-913
SELECT ALL + ( + + COALESCE ( + COUNT( * ), - 58, 96 + + 69 + + + CAST( + COUNT( * ) AS SIGNED ) + + - NULLIF ( 69, + CAST( - 6 AS SIGNED ) * AVG ( + 86 ) ), - 74 ) )
----
1

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL + ( + + COALESCE ( + COUNT ( * ), - 58, 96 + + 69 + + + CAST ( + COUNT ( * ) AS INTEGER ) + + - NULLIF ( 69, + CAST ( - 6 AS INTEGER ) * AVG ( + 86 ) ), - 74 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-914
SELECT DISTINCT + + 26 DIV - - 43, + NULLIF ( 62, COUNT( + 97 ) DIV - 36 * - - 68 * + + COUNT( * ) * ( - 4 ) - - - ( + AVG ( DISTINCT + 59 ) ) * + + 4 * + SUM( DISTINCT - 87 ) ) + CAST( 46 AS SIGNED ) col2
----
0
108

skipif mysql # not compatible
query II rowsort label-914
SELECT DISTINCT + + 26 / - - 43, + NULLIF ( 62, COUNT ( + 97 ) / - 36 * - - 68 * + + COUNT ( * ) * ( - 4 ) - - - ( + AVG ( DISTINCT + 59 ) ) * + + 4 * + SUM ( DISTINCT - 87 ) ) + CAST ( 46 AS INTEGER ) col2
----
0
108

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT ALL - + MAX( DISTINCT - 64 ) - - 6 + - 16 * - + 24 AS col1
----
454

skipif mysql # not compatible
query I rowsort label-915
SELECT ALL - + MAX ( DISTINCT - 64 ) - - 6 + - 16 * - + 24 AS col1
----
454

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT - COUNT( * ) + - - COUNT( * ) * 90 + + + 68 * - + 21 * - - 73
----
-104155

skipif mysql # not compatible
query I rowsort label-916
SELECT - COUNT ( * ) + - - COUNT ( * ) * 90 + + + 68 * - + 21 * - - 73
----
-104155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-917
SELECT 11 DIV 63 + + COUNT( * ) + NULLIF ( + COUNT( * ), 64 + 36 * 5 + + - 40 * 54 * - 25 DIV - + 17 ) DIV - 90
----
1

skipif mysql # not compatible
query I rowsort label-917
SELECT 11 / 63 + + COUNT ( * ) + NULLIF ( + COUNT ( * ), 64 + 36 * 5 + + - 40 * 54 * - 25 / - + 17 ) / - 90
----
1

query I rowsort
SELECT ALL + + ( + 68 ) * - - 78
----
5304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-919
SELECT - CAST( NULL AS SIGNED ) * 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-919
SELECT - CAST ( NULL AS INTEGER ) * 55 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ALL - 7 * + COALESCE ( COUNT( * ), - 66 )
----
-7

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL - 7 * + COALESCE ( COUNT ( * ), - 66 )
----
-7

query I rowsort
SELECT + NULLIF ( + 99, - 16 * 60 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT DISTINCT + MAX( ALL + 74 ) * - - 32 AS col2
----
2368

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT + MAX ( ALL + 74 ) * - - 32 AS col2
----
2368

query I rowsort
SELECT DISTINCT - - 31 AS col2
----
31

query II rowsort
SELECT ALL - 93, - 75 AS col2
----
-93
-75

query I rowsort
SELECT + 80 + + - 2 * + + 85
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL + COUNT( * ) * - 26 col2
----
-26

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + COUNT ( * ) * - 26 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT DISTINCT + 18 * - + COUNT( * ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-928
SELECT DISTINCT + 18 * - + COUNT ( * ) col0
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-929
SELECT NULLIF ( + 67, - CAST( NULL AS DECIMAL ) ) * - + 48
----
-3216

skipif mysql # not compatible
query I rowsort label-929
SELECT NULLIF ( + 67, - CAST ( NULL AS REAL ) ) * - + 48
----
-3216

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

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

query I rowsort
SELECT ( - 32 ) + 17
----
-15

query I rowsort
SELECT ALL 14 + - 24 * - 38 * + - 43
----
-39202

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-933
SELECT DISTINCT - CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT - CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

query II rowsort
SELECT ALL 90 + + + 50 AS col0, 7
----
140
7

onlyif mysql # aggregate syntax: 
query II rowsort label-935
SELECT ALL COUNT( * ) + + 74 AS col1, - NULLIF ( + 38, + + ( + 69 ) + - 73 ) col0
----
75
-38

skipif mysql # not compatible
query II rowsort label-935
SELECT ALL COUNT ( * ) + + 74 AS col1, - NULLIF ( + 38, + + ( + 69 ) + - 73 ) col0
----
75
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT ALL CAST( - 51 AS SIGNED ) * ( + 35 ) col1
----
-1785

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL CAST ( - 51 AS INTEGER ) * ( + 35 ) col1
----
-1785

query I rowsort
SELECT - COALESCE ( + 88, 10 ) AS col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT DISTINCT 89 + 87 DIV + - 60 + + - 71
----
17

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT 89 + 87 / + - 60 + + - 71
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-939
SELECT ALL COUNT( * ) / - 96 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL COUNT ( * ) / - 96 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT ALL - - 3 - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL - - 3 - + COUNT ( * )
----
2

query I rowsort
SELECT + - 57 + - 97 - - 81
----
-73

query I rowsort
SELECT - - 88 col2
----
88

query I rowsort
SELECT - 62 + 21 AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-945
SELECT + COALESCE ( - - 12, - 6 * - + 11 + - ( 82 ) + - 25 ) * + CAST( NULL AS SIGNED ) - - 39 / - CAST( 75 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT + COALESCE ( - - 12, - 6 * - + 11 + - ( 82 ) + - 25 ) * + CAST ( NULL AS INTEGER ) - - 39 / - CAST ( 75 AS INTEGER )
----
NULL

query I rowsort
SELECT + - 5 + NULLIF ( 27, - + 57 ) + - 91 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-947
SELECT + COUNT( - 35 ) AS col0, - 97 AS col0
----
1
-97

skipif mysql # not compatible
query II rowsort label-947
SELECT + COUNT ( - 35 ) AS col0, - 97 AS col0
----
1
-97

query I rowsort
SELECT - + 25 * 31 AS col1
----
-775

query II rowsort
SELECT DISTINCT 16 * 49 AS col2, + 85
----
784
85

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT ALL + + CASE - - 39 WHEN - COALESCE ( + 5, + + 6 + - + 70 - - ( - 45 ), - 23 ) + + + AVG ( - 87 ) * MAX( 68 ) * + 60 + - 72 + + - 13 + - + ( - SUM( - 76 ) ) + - 77 THEN 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL + + CASE - - 39 WHEN - COALESCE ( + 5, + + 6 + - + 70 - - ( - 45 ), - 23 ) + + + AVG ( - 87 ) * MAX ( 68 ) * + 60 + - 72 + + - 13 + - + ( - SUM ( - 76 ) ) + - 77 THEN 93 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-951
SELECT DISTINCT + CASE - 42 WHEN - + CAST( NULL AS SIGNED ) + 52 THEN 45 WHEN - 38 THEN - ( + + 12 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT + CASE - 42 WHEN - + CAST ( NULL AS INTEGER ) + 52 THEN 45 WHEN - 38 THEN - ( + + 12 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT MAX( DISTINCT - ( + + 24 ) ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-952
SELECT MAX ( DISTINCT - ( + + 24 ) ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL + 80 * 64 + - 99 + + - CASE - 18 WHEN + + 83 / SUM( DISTINCT 80 ) + + - 98 + - - 21 * + 88 + + 97 + + COUNT( * ) + 49 / ( - 21 ) * - COUNT( * ) THEN NULL WHEN + - 29 + - 79 THEN 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL + 80 * 64 + - 99 + + - CASE - 18 WHEN + + 83 / SUM ( DISTINCT 80 ) + + - 98 + - - 21 * + 88 + + 97 + + COUNT ( * ) + 49 / ( - 21 ) * - COUNT ( * ) THEN NULL WHEN + - 29 + - 79 THEN 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT DISTINCT + CASE - 72 WHEN + 90 + + - ( - + 95 ) + + ( - + CASE - 10 WHEN COUNT( * ) * + + ( + + 5 ) + 75 THEN 63 ELSE NULL END ) THEN + + 51 + ( - ( CASE + NULLIF ( - 38, 47 ) WHEN 22 * + 46 + - 51 * + COUNT( * ) THEN NULL WHEN + 28 THEN NULL ELSE ( 40 ) * 21 END ) ) WHEN COALESCE ( 72, 27 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT + CASE - 72 WHEN + 90 + + - ( - + 95 ) + + ( - + CASE - 10 WHEN COUNT ( * ) * + + ( + + 5 ) + 75 THEN 63 ELSE NULL END ) THEN + + 51 + ( - ( CASE + NULLIF ( - 38, 47 ) WHEN 22 * + 46 + - 51 * + COUNT ( * ) THEN NULL WHEN + 28 THEN NULL ELSE ( 40 ) * 21 END ) ) WHEN COALESCE ( 72, 27 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-955
SELECT - 34 DIV - + 62 * + - 22 - + 3 + COALESCE ( NULLIF ( + - 18, + - 66 ), 47 )
----
-21

skipif mysql # not compatible
query I rowsort label-955
SELECT - 34 / - + 62 * + - 22 - + 3 + COALESCE ( NULLIF ( + - 18, + - 66 ), 47 )
----
-21

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

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

query I rowsort
SELECT - 27 * + 12 AS col2
----
-324

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

skipif mysql # not compatible
query I rowsort label-958
SELECT + COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER )
----
2

query I rowsort
SELECT + 91 * + - 85
----
-7735

query II rowsort
SELECT ALL 2 * + + 39 + - 38 + - 32 AS col2, - 85 AS col2
----
8
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT - MAX( + 33 ) * - 42 AS col0
----
1386

skipif mysql # not compatible
query I rowsort label-961
SELECT - MAX ( + 33 ) * - 42 AS col0
----
1386

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-963
SELECT DISTINCT - ( 39 ) * + 86 + + + SUM( - + 12 ) - + 27 * + + CAST( + ( - + SUM( 43 ) ) AS SIGNED ) + - 51 col0
----
-2256

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT - ( 39 ) * + 86 + + + SUM ( - + 12 ) - + 27 * + + CAST ( + ( - + SUM ( 43 ) ) AS INTEGER ) + - 51 col0
----
-2256

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ALL COUNT( * ) * + 82 + 99 AS col0
----
181

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL COUNT ( * ) * + 82 + 99 AS col0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT - MAX( ALL 69 ) * + + 5 AS col2
----
-345

skipif mysql # not compatible
query I rowsort label-966
SELECT - MAX ( ALL 69 ) * + + 5 AS col2
----
-345

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

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

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

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

query I rowsort
SELECT ALL 1 - - 41 AS col1
----
42

query I rowsort
SELECT DISTINCT - 8 * + 35
----
-280

query I rowsort
SELECT + + 3 * + + 38 + 84 + + + 56 * + 51
----
3054

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-973
SELECT + ( + + NULLIF ( + ( - - 48 ), - 18 ) ) DIV 19 DIV + - 51 + - ( + 79 ) col2
----
-79

skipif mysql # not compatible
query I rowsort label-973
SELECT + ( + + NULLIF ( + ( - - 48 ), - 18 ) ) / 19 / + - 51 + - ( + 79 ) col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-974
SELECT DISTINCT 58 * + 79 * CAST( + - 32 AS SIGNED ) - + - 80
----
-146544

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT 58 * + 79 * CAST ( + - 32 AS INTEGER ) - + - 80
----
-146544

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT DISTINCT - CASE - 26 WHEN - - 79 THEN + COUNT( * ) WHEN - SUM( DISTINCT - + 71 ) THEN NULL ELSE NULL END * + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT - CASE - 26 WHEN - - 79 THEN + COUNT ( * ) WHEN - SUM ( DISTINCT - + 71 ) THEN NULL ELSE NULL END * + 16 AS col1
----
NULL

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

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

query I rowsort
SELECT + ( + 92 ) col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-978
SELECT + - 20 / - CAST( + - CASE + + 70 WHEN + 51 + - 47 THEN - 8 * ( + 15 ) + + 34 - - 31 WHEN + 99 THEN NULL WHEN - - 99 / ( - 16 ) + + COUNT( * ) + 24 + 76 THEN 42 WHEN - 24 THEN 39 ELSE NULL END AS SIGNED ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-978
SELECT + - 20 / - CAST ( + - CASE + + 70 WHEN + 51 + - 47 THEN - 8 * ( + 15 ) + + 34 - - 31 WHEN + 99 THEN NULL WHEN - - 99 / ( - 16 ) + + COUNT ( * ) + 24 + 76 THEN 42 WHEN - 24 THEN 39 ELSE NULL END AS INTEGER ) - + COUNT ( * )
----
NULL

query I rowsort
SELECT + + 51 + + 78 + + + 63 * + - 62
----
-3777

query I rowsort
SELECT ALL + NULLIF ( - + 58, + 29 )
----
-58

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

query II rowsort
SELECT 81, 7 AS col1
----
81
7

query I rowsort
SELECT + + 1 + + 23
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-984
SELECT ALL - 72, COUNT( * ) * 65 AS col0
----
-72
65

skipif mysql # not compatible
query II rowsort label-984
SELECT ALL - 72, COUNT ( * ) * 65 AS col0
----
-72
65

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

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

query II rowsort
SELECT ALL - 61 col1, 58
----
-61
58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-988
SELECT ALL - 1 DIV - 93 * COUNT( * ) + + - 18 + - - 4 + + + 60 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL - 1 / - 93 * COUNT ( * ) + + - 18 + - - 4 + + + 60 AS col1
----
46

query I rowsort
SELECT + + 49 + + 27
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-990
SELECT ALL - MIN( ALL - 85 ) / CASE + + 85 WHEN + SUM( DISTINCT - - 12 ) / - 21 + - 38 + - COALESCE ( - ( + COALESCE ( - + MAX( + - ( + 14 ) ), - 34 * + - CAST( NULL AS DECIMAL ) + - - 46 / - - COUNT( * ) ) ), - COUNT( * ) ) + + 27 * AVG ( - 32 ) THEN + 95 WHEN - 10 THEN NULL WHEN 66 THEN NULL WHEN + 3 + 84 / 63 THEN NULL ELSE NULL END + 64 * 46 + + CAST( - 53 AS SIGNED ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL - MIN ( ALL - 85 ) / CASE + + 85 WHEN + SUM ( DISTINCT - - 12 ) / - 21 + - 38 + - COALESCE ( - ( + COALESCE ( - + MAX ( + - ( + 14 ) ), - 34 * + - CAST ( NULL AS REAL ) + - - 46 / - - COUNT ( * ) ) ), - COUNT ( * ) ) + + 27 * AVG ( - 32 ) THEN + 95 WHEN - 10 THEN NULL WHEN 66 THEN NULL WHEN + 3 + 84 / 63 THEN NULL ELSE NULL END + 64 * 46 + + CAST ( - 53 AS INTEGER ) * - 79
----
NULL

query I rowsort
SELECT ALL - 73 * - 20 AS col0
----
1460

query I rowsort
SELECT + 27 * + 90 AS col0
----
2430

query II rowsort
SELECT - 33 * + 58 AS col1, - 95 * + 34 * + 40
----
-1914
-129200

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT DISTINCT - 70 DIV 79 * - + 92 + - 97
----
-97

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT - 70 / 79 * - + 92 + - 97
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT ALL 29 DIV 3 * 44 + + 49
----
445

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL 29 / 3 * 44 + + 49
----
445

onlyif mysql # DIV for integer division: 
query I rowsort label-996
SELECT DISTINCT - 76 DIV - - 61 + - 87
----
-88

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT - 76 / - - 61 + - 87
----
-88

query I rowsort
SELECT ALL + ( - 52 ) AS col1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-998
SELECT ALL + 43 DIV + 74 + + 14
----
14

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL + 43 / + 74 + + 14
----
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT 1 * - COUNT( * ) + + 68 col1
----
67

skipif mysql # not compatible
query I rowsort label-1000
SELECT 1 * - COUNT ( * ) + + 68 col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1001
SELECT DISTINCT - 29 DIV - COUNT( * ) AS col0, + ( + 92 ) AS col2
----
29
92

skipif mysql # not compatible
query II rowsort label-1001
SELECT DISTINCT - 29 / - COUNT ( * ) AS col0, + ( + 92 ) AS col2
----
29
92

query I rowsort
SELECT - 91 * + - 84 + + 63
----
7707

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

skipif mysql # not compatible
query I rowsort label-1003
SELECT - CAST ( NULL AS INTEGER ) * - - 45 AS col2
----
NULL

query I rowsort
SELECT ALL - 11 * + + ( + - 89 ) AS col1
----
979

query I rowsort
SELECT ALL - 2 - + ( + 46 )
----
-48

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

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - COUNT ( * ) / - 32 AS col0
----
0

query I rowsort
SELECT ALL - 38 * 89 AS col0
----
-3382

onlyif mysql # aggregate syntax: 
query II rowsort label-1008
SELECT 70 + 56 AS col1, COUNT( * ) * - COUNT( * )
----
126
-1

skipif mysql # not compatible
query II rowsort label-1008
SELECT 70 + 56 AS col1, COUNT ( * ) * - COUNT ( * )
----
126
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1009
SELECT DISTINCT - 57 * - 60 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT - 57 * - 60 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( 6, + 90 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT ALL - MIN( + 50 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL - MIN ( + 50 ) AS col1
----
-50

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

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

query I rowsort
SELECT 40 + - 3 AS col2
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT + MAX( ALL 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT + MAX ( ALL 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT 66 * MIN( + 67 )
----
4422

skipif mysql # not compatible
query I rowsort label-1016
SELECT 66 * MIN ( + 67 )
----
4422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1017
SELECT ALL 49 * 61 + + CAST( 5 AS SIGNED ) + + CAST( NULL AS SIGNED ) * ( + 67 ) + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL 49 * 61 + + CAST ( 5 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * ( + 67 ) + - 74
----
NULL

query I rowsort
SELECT 97 + + 90
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT DISTINCT + NULLIF ( + - MIN( 43 ), MIN( - ( 75 ) ) ) * COUNT( * ) * - 84 + - 67 * + 10 * - + COUNT( * )
----
4282

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT + NULLIF ( + - MIN ( 43 ), MIN ( - ( 75 ) ) ) * COUNT ( * ) * - 84 + - 67 * + 10 * - + COUNT ( * )
----
4282

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT ALL 76 + + - COUNT( * ) + 85 * 89 * - + 49 * + 54 AS col0
----
-20016915

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL 76 + + - COUNT ( * ) + 85 * 89 * - + 49 * + 54 AS col0
----
-20016915

query I rowsort
SELECT 89 + - 51 AS col2
----
38

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1024
SELECT ALL + 9 + 21 * + 13 * 92 AS col1, 55 * + COALESCE ( - 21, + + 92 * + 74 + COUNT( * ) + - - MIN( ALL - + 26 ) DIV - - 13 + + MIN( ALL + CAST( NULL AS SIGNED ) ) + - COUNT( * ) + + - ( + 69 ) + 26 * COUNT( * ), 26 )
----
25125
-1155

skipif mysql # not compatible
query II rowsort label-1024
SELECT ALL + 9 + 21 * + 13 * 92 AS col1, 55 * + COALESCE ( - 21, + + 92 * + 74 + COUNT ( * ) + - - MIN ( ALL - + 26 ) / - - 13 + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + + - ( + 69 ) + 26 * COUNT ( * ), 26 )
----
25125
-1155

query I rowsort
SELECT ( + 68 ) * - 32 * ( + + 89 ) * + 26 AS col0
----
-5035264

onlyif mysql # DIV for integer division: 
query I rowsort label-1026
SELECT DISTINCT 80 + - 51 DIV - 26
----
81

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT 80 + - 51 / - 26
----
81

query I rowsort
SELECT 23 * + ( - 9 ) AS col0
----
-207

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1028
SELECT NULLIF ( 80, 97 ) DIV 19 + CAST( ( - 82 ) AS SIGNED )
----
-78

skipif mysql # not compatible
query I rowsort label-1028
SELECT NULLIF ( 80, 97 ) / 19 + CAST ( ( - 82 ) AS INTEGER )
----
-78

query I rowsort
SELECT ALL 9 * 33
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1030
SELECT COALESCE ( 8, + - CAST( NULL AS SIGNED ) * - 15 DIV + 88 DIV COUNT( * ) * + 43 ) * - 7 col1
----
-56

skipif mysql # not compatible
query I rowsort label-1030
SELECT COALESCE ( 8, + - CAST ( NULL AS INTEGER ) * - 15 / + 88 / COUNT ( * ) * + 43 ) * - 7 col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1031
SELECT ALL - COUNT( * ) AS col0, - CASE ( + 42 ) WHEN - + 35 - + 69 THEN + 99 * - COUNT( * ) * - - CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1031
SELECT ALL - COUNT ( * ) AS col0, - CASE ( + 42 ) WHEN - + 35 - + 69 THEN + 99 * - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
-1
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 34, 18 + - 7 * 64 * ( + + 21 ) ) + 57 + 67 + - 63 + - 43 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT COUNT( * ) * + 87 + 8 - 30 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1033
SELECT COUNT ( * ) * + 87 + 8 - 30 AS col1
----
65

query I rowsort
SELECT DISTINCT - 33 - - 99 AS col1
----
66

query I rowsort
SELECT 39 * 60
----
2340

query I rowsort
SELECT ALL 32 * + 57 AS col2
----
1824

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1037
SELECT + 87 AS col0, CASE + 90 WHEN - 54 * + - 73 + + 31 + + CASE - - MAX( + 69 ) WHEN + - 55 THEN + - 90 + ( - ( + 53 ) ) END THEN 45 ELSE NULL END - - 0 + - 73 * - 83 + + CAST( NULL AS DECIMAL ) * + - 35 * + 1 AS col1
----
87
NULL

skipif mysql # not compatible
query II rowsort label-1037
SELECT + 87 AS col0, CASE + 90 WHEN - 54 * + - 73 + + 31 + + CASE - - MAX ( + 69 ) WHEN + - 55 THEN + - 90 + ( - ( + 53 ) ) END THEN 45 ELSE NULL END - - 0 + - 73 * - 83 + + CAST ( NULL AS REAL ) * + - 35 * + 1 AS col1
----
87
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1038
SELECT 90 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT 90 + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1039
SELECT ALL - 15 * COUNT( * ) * CAST( - 94 AS SIGNED )
----
1410

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL - 15 * COUNT ( * ) * CAST ( - 94 AS INTEGER )
----
1410

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1041
SELECT 83 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-1041
SELECT 83 / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT ALL + + 84 / - - CASE - - 33 WHEN - COUNT( * ) * + 58 + 27 + 50 * - 98 * - 60 THEN + 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL + + 84 / - - CASE - - 33 WHEN - COUNT ( * ) * + 58 + 27 + 50 * - 98 * - 60 THEN + 65 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1044
SELECT 42 * - + 43 * + - 36 AS col2, - CAST( NULL AS SIGNED )
----
65016
NULL

skipif mysql # not compatible
query II rowsort label-1044
SELECT 42 * - + 43 * + - 36 AS col2, - CAST ( NULL AS INTEGER )
----
65016
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT DISTINCT + 82 + + 39 * COALESCE ( + 10, + - 6 + + ( + - COUNT( * ) ), - + 63 * - 99 - - 34 + - 2 ) + 7 AS col1
----
479

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT + 82 + + 39 * COALESCE ( + 10, + - 6 + + ( + - COUNT ( * ) ), - + 63 * - 99 - - 34 + - 2 ) + 7 AS col1
----
479

onlyif mysql # DIV for integer division: 
query I rowsort label-1046
SELECT 35 DIV + 94 * ( - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-1046
SELECT 35 / + 94 * ( - 66 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1047
SELECT 65 - - CAST( + ( 29 ) AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-1047
SELECT 65 - - CAST ( + ( 29 ) AS INTEGER )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1048
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( * ) + + + 64 AS col1
----
1
63

skipif mysql # not compatible
query II rowsort label-1048
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) + + + 64 AS col1
----
1
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1049
SELECT ALL - + NULLIF ( + 19, - COUNT( * ) ) * - 30 - + MIN( - - 52 ) AS col1, 70 + ( 93 ) * + - 1 AS col2
----
518
-23

skipif mysql # not compatible
query II rowsort label-1049
SELECT ALL - + NULLIF ( + 19, - COUNT ( * ) ) * - 30 - + MIN ( - - 52 ) AS col1, 70 + ( 93 ) * + - 1 AS col2
----
518
-23

query I rowsort
SELECT ALL + - ( - 37 ) + - 20 - - 77
----
94

query I rowsort
SELECT - ( - 28 ) AS col1
----
28

query I rowsort
SELECT ALL + 88 + NULLIF ( - 37, NULLIF ( - 31, + + AVG ( DISTINCT + 34 ) * 51 ) ) AS col2
----
51

query I rowsort
SELECT DISTINCT - 30 * + 65
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT DISTINCT + 71 + + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT + 71 + + COUNT ( * ) AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1055
SELECT ALL + 38 + 75 - COUNT( * ) * + ( - 2 ) * + + COALESCE ( ( + NULLIF ( + COUNT( * ), + + 21 * COUNT( * ) - - 19 * 78 ) ), 46, + + CASE 62 WHEN - 48 * - 50 + + 40 * + - COUNT( * ) * + 73 + - 70 THEN NULL WHEN 87 + 77 THEN 58 DIV COUNT( * ) ELSE NULL END * + 70 - 7 ) * + 53
----
219

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL + 38 + 75 - COUNT ( * ) * + ( - 2 ) * + + COALESCE ( ( + NULLIF ( + COUNT ( * ), + + 21 * COUNT ( * ) - - 19 * 78 ) ), 46, + + CASE 62 WHEN - 48 * - 50 + + 40 * + - COUNT ( * ) * + 73 + - 70 THEN NULL WHEN 87 + 77 THEN 58 / COUNT ( * ) ELSE NULL END * + 70 - 7 ) * + 53
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - 97 + + 56 + NULLIF ( - ( + 90 ), COUNT( + 42 ) + 53 * COUNT( * ) * + 47 ) col0
----
-131

skipif mysql # not compatible
query I rowsort label-1056
SELECT - 97 + + 56 + NULLIF ( - ( + 90 ), COUNT ( + 42 ) + 53 * COUNT ( * ) * + 47 ) col0
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1057
SELECT 83 + - 9 + + MAX( - 47 ) + 66 + + + 44 + + 2 + + + 41 + - + 0 * 39 + + 73 DIV 55 * - COALESCE ( - 86, + + NULLIF ( + SUM( ALL - - 55 ), + + 55 DIV + COUNT( * ) * - 34 ) DIV - 88 ) + - 75 * 21 AS col2
----
-1309

skipif mysql # not compatible
query I rowsort label-1057
SELECT 83 + - 9 + + MAX ( - 47 ) + 66 + + + 44 + + 2 + + + 41 + - + 0 * 39 + + 73 / 55 * - COALESCE ( - 86, + + NULLIF ( + SUM ( ALL - - 55 ), + + 55 / + COUNT ( * ) * - 34 ) / - 88 ) + - 75 * 21 AS col2
----
-1309

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT - 80 * - + 66 + - 21 * - ( + 6 ) * 87 * - 65 + - COALESCE ( - + COUNT( * ), - NULLIF ( + + 53, + - 50 ) )
----
-707249

skipif mysql # not compatible
query I rowsort label-1058
SELECT - 80 * - + 66 + - 21 * - ( + 6 ) * 87 * - 65 + - COALESCE ( - + COUNT ( * ), - NULLIF ( + + 53, + - 50 ) )
----
-707249

query I rowsort
SELECT ALL + + 37 + + 59 col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT ALL - NULLIF ( + 14, 0 ) + - + COUNT( * ) * - 44
----
30

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL - NULLIF ( + 14, 0 ) + - + COUNT ( * ) * - 44
----
30

query II rowsort
SELECT ALL 10, + 15 + - 69 AS col2
----
10
-54

query I rowsort
SELECT ALL 50 + + - 38 - + 56 * 11 - + 64 col0
----
-668

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT COUNT( * ) + - 57 + + 71 * 19 * + 36 * + 30
----
1456864

skipif mysql # not compatible
query I rowsort label-1063
SELECT COUNT ( * ) + - 57 + + 71 * 19 * + 36 * + 30
----
1456864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1064
SELECT ALL - CAST( - - 37 AS SIGNED ) * - 75 * + COALESCE ( - 43, + 12 * - COALESCE ( - CAST( + ( - 37 ) AS SIGNED ), - 83 * + 97 + - COUNT( * ) + + + COUNT( * ) ) * + 56 ) - 49 + - 54 AS col1, + 73 * - 10 + 86 - - - ( - ( NULLIF ( ( 27 ), SUM( ( 99 ) ) / CAST( NULL AS SIGNED ) - + NULLIF ( 66, 45 ) ) ) ) AS col1
----
-119428
-617

skipif mysql # not compatible
query II rowsort label-1064
SELECT ALL - CAST ( - - 37 AS INTEGER ) * - 75 * + COALESCE ( - 43, + 12 * - COALESCE ( - CAST ( + ( - 37 ) AS INTEGER ), - 83 * + 97 + - COUNT ( * ) + + + COUNT ( * ) ) * + 56 ) - 49 + - 54 AS col1, + 73 * - 10 + 86 - - - ( - ( NULLIF ( ( 27 ), SUM ( ( 99 ) ) / CAST ( NULL AS INTEGER ) - + NULLIF ( 66, 45 ) ) ) ) AS col1
----
-119428
-617

query I rowsort
SELECT 39 + - 18
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1066
SELECT COALESCE ( 43, + COUNT( * ) * + - 21 + + 85 + + 53 ) AS col0, - COUNT( * )
----
43
-1

skipif mysql # not compatible
query II rowsort label-1066
SELECT COALESCE ( 43, + COUNT ( * ) * + - 21 + + 85 + + 53 ) AS col0, - COUNT ( * )
----
43
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1067
SELECT CASE + ( + 74 ) WHEN COUNT( * ) * - - MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) + - 56 + - 41 + - 5 * - COUNT( * ) THEN - 57 * 1 + + 60 WHEN + 71 * - + 59 THEN + + NULLIF ( + - COUNT( * ), 5 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1067
SELECT CASE + ( + 74 ) WHEN COUNT ( * ) * - - MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + - 56 + - 41 + - 5 * - COUNT ( * ) THEN - 57 * 1 + + 60 WHEN + 71 * - + 59 THEN + + NULLIF ( + - COUNT ( * ), 5 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1068
SELECT DISTINCT + 25, - COALESCE ( - 29, + AVG ( DISTINCT + 47 ) DIV + + 89 + - 8 ) AS col2
----
25
29

skipif mysql # not compatible
query II rowsort label-1068
SELECT DISTINCT + 25, - COALESCE ( - 29, + AVG ( DISTINCT + 47 ) / + + 89 + - 8 ) AS col2
----
25
29

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1073
SELECT DISTINCT + CASE - 63 WHEN COUNT( * ) / CASE + - COUNT( * ) WHEN + 88 THEN 58 * - - 58 + - 62 WHEN + 91 THEN NULL ELSE 78 * + + COUNT( * ) END / - - COUNT( * ) + 25 THEN - CAST( 94 AS DECIMAL ) WHEN + 54 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT + CASE - 63 WHEN COUNT ( * ) / CASE + - COUNT ( * ) WHEN + 88 THEN 58 * - - 58 + - 62 WHEN + 91 THEN NULL ELSE 78 * + + COUNT ( * ) END / - - COUNT ( * ) + 25 THEN - CAST ( 94 AS REAL ) WHEN + 54 THEN NULL END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1075
SELECT + NULLIF ( - - ( - 22 ), - 40 + + 23 + + NULLIF ( 56, - 73 * + SUM( NULLIF ( 27, + 84 ) ) ) * 40 * + 32 ) * 58 + CAST( - CASE ( COALESCE ( + NULLIF ( + 11, 50 * 48 ), CAST( + 94 AS SIGNED ) / + 64, CASE 71 WHEN COUNT( * ) THEN + 70 * + 96 WHEN CASE 27 WHEN 6 THEN 41 * - 79 WHEN - 86 * NULLIF ( 72 / 8, 0 ) - NULLIF ( 20 - 21, 43 + 37 ) THEN 67 WHEN 88 * - 75 THEN NULL END THEN NULL ELSE 13 END ) ) WHEN 78 - 26 THEN AVG ( DISTINCT 86 ) + - 15 * - 53 END AS SIGNED ) * + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1075
SELECT + NULLIF ( - - ( - 22 ), - 40 + + 23 + + NULLIF ( 56, - 73 * + SUM ( NULLIF ( 27, + 84 ) ) ) * 40 * + 32 ) * 58 + CAST ( - CASE ( COALESCE ( + NULLIF ( + 11, 50 * 48 ), CAST ( + 94 AS INTEGER ) / + 64, CASE 71 WHEN COUNT ( * ) THEN + 70 * + 96 WHEN CASE 27 WHEN 6 THEN 41 * - 79 WHEN - 86 * NULLIF ( 72 / 8, 0 ) - NULLIF ( 20 - 21, 43 + 37 ) THEN 67 WHEN 88 * - 75 THEN NULL END THEN NULL ELSE 13 END ) ) WHEN 78 - 26 THEN AVG ( DISTINCT 86 ) + - 15 * - 53 END AS INTEGER ) * + 36 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1077
SELECT + 52 + - 19 + + - ( + + 38 ) + + 50 + COUNT( * ), 57 AS col0
----
46
57

skipif mysql # not compatible
query II rowsort label-1077
SELECT + 52 + - 19 + + - ( + + 38 ) + + 50 + COUNT ( * ), 57 AS col0
----
46
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1078
SELECT 33 * - 53 - - + 11 + - CAST( + + 22 AS SIGNED ) - + 82 * + 34 * 61 * - 18 - - CASE - 25 WHEN + ( + 39 ) - - - 89 + - CAST( + 51 AS DECIMAL ) + + + AVG ( ALL + 31 ) * + - 95 THEN NULL WHEN + 88 THEN + 7 WHEN + 99 - - 36 * - NULLIF ( + 49, 92 + ( + 46 ) ) THEN + 48 + 33 END * + COUNT( * ) * COALESCE ( 56, 27, - 35 * 58, - 49 * 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT 33 * - 53 - - + 11 + - CAST ( + + 22 AS INTEGER ) - + 82 * + 34 * 61 * - 18 - - CASE - 25 WHEN + ( + 39 ) - - - 89 + - CAST ( + 51 AS REAL ) + + + AVG ( ALL + 31 ) * + - 95 THEN NULL WHEN + 88 THEN + 7 WHEN + 99 - - 36 * - NULLIF ( + 49, 92 + ( + 46 ) ) THEN + 48 + 33 END * + COUNT ( * ) * COALESCE ( 56, 27, - 35 * 58, - 49 * 41 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT + + COUNT( DISTINCT - 32 ) + + - NULLIF ( - 62, + 97 ) col1
----
63

skipif mysql # not compatible
query I rowsort label-1079
SELECT + + COUNT ( DISTINCT - 32 ) + + - NULLIF ( - 62, + 97 ) col1
----
63

query I rowsort
SELECT - + 58 * - - 45 AS col1
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL - MIN( - + 53 ) * - ( COUNT( - + 92 ) ) + - 35 + - 8 * ( + + 1 )
----
-96

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL - MIN ( - + 53 ) * - ( COUNT ( - + 92 ) ) + - 35 + - 8 * ( + + 1 )
----
-96

query I rowsort
SELECT + - COALESCE ( - 7, + - 58 * - 18, + 69 - + 32 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1083
SELECT ALL 71 + CASE - + CAST( NULL AS SIGNED ) WHEN - 18 THEN COALESCE ( - 96, 95 / + 32 * + NULLIF ( - 59, 14 ) ) + CAST( + + 96 AS SIGNED ) WHEN COUNT( * ) THEN 38 END / - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL 71 + CASE - + CAST ( NULL AS INTEGER ) WHEN - 18 THEN COALESCE ( - 96, 95 / + 32 * + NULLIF ( - 59, 14 ) ) + CAST ( + + 96 AS INTEGER ) WHEN COUNT ( * ) THEN 38 END / - 41
----
NULL

query II rowsort
SELECT ALL 36, 76 col1
----
36
76

query I rowsort
SELECT ALL 98 + - 87 * 28
----
-2338

query I rowsort
SELECT + 68 * 72 - + 4
----
4892

query I rowsort
SELECT - 37 * - 21
----
777

query I rowsort
SELECT - - ( + 13 ) + + 52 * - + 7
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT - - CASE + CASE + + ( + - 41 ) WHEN - CASE - + ( + 12 ) WHEN + 7 THEN + COALESCE ( + 36, - 27 ) END THEN 39 WHEN 83 THEN NULL WHEN + - 43 THEN NULL ELSE + 15 * + + COUNT( * ) * COUNT( * ) + 35 END WHEN - 64 THEN - ( 6 ) * + 2 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1089
SELECT - - CASE + CASE + + ( + - 41 ) WHEN - CASE - + ( + 12 ) WHEN + 7 THEN + COALESCE ( + 36, - 27 ) END THEN 39 WHEN 83 THEN NULL WHEN + - 43 THEN NULL ELSE + 15 * + + COUNT ( * ) * COUNT ( * ) + 35 END WHEN - 64 THEN - ( 6 ) * + 2 END AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT 82 - - + 42
----
124

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT DISTINCT + 32 - + + NULLIF ( 15, - + 5 ) * - COUNT( * ) * - 81
----
-1183

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT + 32 - + + NULLIF ( 15, - + 5 ) * - COUNT ( * ) * - 81
----
-1183

query I rowsort
SELECT DISTINCT + 60 * + - 90 AS col0
----
-5400

query I rowsort
SELECT DISTINCT - 69 - + 79 - - 16 AS col2
----
-132

query I rowsort
SELECT + 44 * 71 AS col0
----
3124

query I rowsort
SELECT ALL + 42 * + 83 AS col1
----
3486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1098
SELECT ALL NULLIF ( COUNT( * ), 90 + 20 + 49 + + 92 + - 98 * + - 9 * + - 99 / - - CAST( 37 AS SIGNED ) * - 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL NULLIF ( COUNT ( * ), 90 + 20 + 49 + + 92 + - 98 * + - 9 * + - 99 / - - CAST ( 37 AS INTEGER ) * - 33 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1099
SELECT - 38 + - CAST( NULL AS SIGNED ), 86 AS col1
----
NULL
86

skipif mysql # not compatible
query II rowsort label-1099
SELECT - 38 + - CAST ( NULL AS INTEGER ), 86 AS col1
----
NULL
86

query I rowsort
SELECT DISTINCT ( - 47 ) col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL ( + - CASE 53 WHEN - + 14 THEN - 0 + - + 49 WHEN MIN( ALL - + 77 ) THEN NULL WHEN - 29 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL ( + - CASE 53 WHEN - + 14 THEN - 0 + - + 49 WHEN MIN ( ALL - + 77 ) THEN NULL WHEN - 29 THEN NULL END ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1102
SELECT - COUNT ( * ) * + COUNT ( DISTINCT + 5 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT - COUNT( - - 97 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1103
SELECT - COUNT ( - - 97 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL SUM( 87 ) * COUNT( * ) * - + 35 + MAX( DISTINCT + 59 ) col2
----
-2986

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL SUM ( 87 ) * COUNT ( * ) * - + 35 + MAX ( DISTINCT + 59 ) col2
----
-2986

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT + COUNT( * ) * - COUNT( * ) + - NULLIF ( 83, 13 ) + + - ( - 89 ) * - 36
----
-3288

skipif mysql # not compatible
query I rowsort label-1105
SELECT + COUNT ( * ) * - COUNT ( * ) + - NULLIF ( 83, 13 ) + + - ( - 89 ) * - 36
----
-3288

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

query II rowsort
SELECT ( 35 ) AS col2, 73 AS col0
----
35
73

query II rowsort
SELECT - ( 52 ) * + 86, 54 AS col0
----
-4472
54

query I rowsort
SELECT 89 * - 70 - 92
----
-6322

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT + SUM( - - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-1110
SELECT + SUM ( - - 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT 87 * - 11 - 63 + - MIN( + 49 ) AS col2
----
-1069

skipif mysql # not compatible
query I rowsort label-1111
SELECT 87 * - 11 - 63 + - MIN ( + 49 ) AS col2
----
-1069

onlyif mysql # aggregate syntax: 
query II rowsort label-1112
SELECT + CASE + 79 WHEN - 47 * - 42 THEN NULL WHEN 85 THEN MIN( DISTINCT - 57 ) + + - ( + - 90 ) - - SUM( - 13 ) / 48 END AS col2, 35 col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-1112
SELECT + CASE + 79 WHEN - 47 * - 42 THEN NULL WHEN 85 THEN MIN ( DISTINCT - 57 ) + + - ( + - 90 ) - - SUM ( - 13 ) / 48 END AS col2, 35 col2
----
NULL
35

query I rowsort
SELECT ALL + 13 * + 81 + - + 5 AS col2
----
1048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1114
SELECT ALL + - MAX( 78 ) * - 98 * + SUM( - ( 51 ) ) + - CASE - 97 WHEN 92 / - + 25 - - 24 - + 28 + + COUNT( * ) * - + 4 THEN 47 WHEN - 13 + + - COUNT( * ) * + + CAST( + COUNT( * ) AS SIGNED ) THEN NULL ELSE + ( - COUNT( + + 31 ) ) END AS col1
----
-389843

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + - MAX ( 78 ) * - 98 * + SUM ( - ( 51 ) ) + - CASE - 97 WHEN 92 / - + 25 - - 24 - + 28 + + COUNT ( * ) * - + 4 THEN 47 WHEN - 13 + + - COUNT ( * ) * + + CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL ELSE + ( - COUNT ( + + 31 ) ) END AS col1
----
-389843

query I rowsort
SELECT DISTINCT + 15 * 86 * - NULLIF ( - - 71, + 61 / - 20 + 59 ) AS col0
----
-91590

query II rowsort
SELECT + 99 * + 98 * - 89 AS col0, 96 AS col2
----
-863478
96

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

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

query I rowsort
SELECT ALL - + CASE - + 93 WHEN - AVG ( ALL - 70 ) THEN NULL WHEN - 35 + - 80 * + - 12 + + 93 THEN + + 55 END * - + 83 * + 76 + - 89 * + 66 / 45 + + ( + 27 )
----
NULL

query I rowsort
SELECT + + 66 - + 30 + - - 80 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT + SUM( - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-1120
SELECT + SUM ( - 22 )
----
-22

query I rowsort
SELECT + - 85 * + 28 * - 87 * - 0 AS col1
----
0

query I rowsort
SELECT ALL + 80 * - 2
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT ALL + CASE 65 WHEN - 44 + + CASE + 78 WHEN 44 THEN 74 * 3 END THEN 61 WHEN CAST( 46 AS SIGNED ) + MAX( ALL - 21 ) * 48 / + 60 * - + 23 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL + CASE 65 WHEN - 44 + + CASE + 78 WHEN 44 THEN 74 * 3 END THEN 61 WHEN CAST ( 46 AS INTEGER ) + MAX ( ALL - 21 ) * 48 / + 60 * - + 23 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT - + ( 16 ) col0, ( - 34 ) AS col0
----
-16
-34

query I rowsort
SELECT DISTINCT - 47 * + + 74 * + 31
----
-107818

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1126
SELECT ( - 5 ) col0, - CASE - + CAST( + 59 AS SIGNED ) WHEN + 50 THEN NULL WHEN - 24 THEN - 78 * + NULLIF ( + 8, - 24 ) * + - 51 + + 54 / 23 + + + 3 ELSE NULL END + - + COUNT( * ) * 46 AS col0
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-1126
SELECT ( - 5 ) col0, - CASE - + CAST ( + 59 AS INTEGER ) WHEN + 50 THEN NULL WHEN - 24 THEN - 78 * + NULLIF ( + 8, - 24 ) * + - 51 + + 54 / 23 + + + 3 ELSE NULL END + - + COUNT ( * ) * 46 AS col0
----
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT + ( CASE - + 33 WHEN + - 77 THEN - - 18 * 2 WHEN + - 9 * - 84 * COUNT( * ) + - 38 THEN NULL ELSE NULL END ) - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT + ( CASE - + 33 WHEN + - 77 THEN - - 18 * 2 WHEN + - 9 * - 84 * COUNT ( * ) + - 38 THEN NULL ELSE NULL END ) - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1128
SELECT DISTINCT - 97 - - COUNT( * ), 4 col1
----
-96
4

skipif mysql # not compatible
query II rowsort label-1128
SELECT DISTINCT - 97 - - COUNT ( * ), 4 col1
----
-96
4

query II rowsort
SELECT - 62 AS col2, 34
----
-62
34

query I rowsort
SELECT 48 + + + 70 * - 62 + + 2 AS col2
----
-4290

query I rowsort
SELECT 84 - - 14
----
98

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

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

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

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

query II rowsort
SELECT 5, - NULLIF ( + + 68, - 55 ) AS col2
----
5
-68

query I rowsort
SELECT ALL 73 * - - 74
----
5402

query I rowsort
SELECT DISTINCT - 66 * 44 AS col1
----
-2904

query I rowsort
SELECT DISTINCT + 11 + 61 AS col0
----
72

query II rowsort
SELECT + 38 AS col1, - 23
----
38
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT ALL + 94 + COUNT( ALL - 58 ) * 16 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL + 94 + COUNT ( ALL - 58 ) * 16 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT COUNT( * ) * - 80 * + ( 60 )
----
-4800

skipif mysql # not compatible
query I rowsort label-1140
SELECT COUNT ( * ) * - 80 * + ( 60 )
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT ALL - COUNT( 25 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL - COUNT ( 25 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1142
SELECT DISTINCT - SUM( DISTINCT - + 48 ) + + - 65, 45 + + 63 AS col0
----
-17
108

skipif mysql # not compatible
query II rowsort label-1142
SELECT DISTINCT - SUM ( DISTINCT - + 48 ) + + - 65, 45 + + 63 AS col0
----
-17
108

query I rowsort
SELECT ALL - 94 + - + 36 AS col2
----
-130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT DISTINCT 5 + ( + MAX( DISTINCT - ( - - 19 ) ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT 5 + ( + MAX ( DISTINCT - ( - - 19 ) ) ) AS col0
----
-14

query I rowsort
SELECT - 74 + - 69 - + - 2 * - 64 AS col0
----
-271

query I rowsort
SELECT ALL 14 * - - NULLIF ( + - COALESCE ( + 19, ( 79 ) ), 40 ) + 94
----
-172

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

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

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

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

query I rowsort
SELECT 40 - 83 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT + MAX( 45 ) + - 72
----
-27

skipif mysql # not compatible
query I rowsort label-1151
SELECT + MAX ( 45 ) + - 72
----
-27

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

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

query I rowsort
SELECT 89 + 52 + - ( - 63 ) + - 35 - 66 + + + 91
----
194

onlyif mysql # DIV for integer division: 
query I rowsort label-1154
SELECT ALL 16 DIV - - 54
----
0

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL 16 / - - 54
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT - 86 + - + COUNT( * ) + - 83 + + - 84, 22 AS col2
----
-254
22

skipif mysql # not compatible
query II rowsort label-1155
SELECT - 86 + - + COUNT ( * ) + - 83 + + - 84, 22 AS col2
----
-254
22

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

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

query II rowsort
SELECT ALL - - 60 AS col1, - 17 AS col0
----
60
-17

query I rowsort
SELECT 58 + - 45 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT + MAX( ALL + 32 ) * - 64
----
-2048

skipif mysql # not compatible
query I rowsort label-1159
SELECT + MAX ( ALL + 32 ) * - 64
----
-2048

query I rowsort
SELECT 74 * 86
----
6364

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT CASE COUNT( DISTINCT + + 76 ) WHEN + - 79 * + + 49 * 60 + + 32 THEN - COUNT( * ) END + - - 21 + 99 * + 87 * + - SUM( ALL 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT CASE COUNT ( DISTINCT + + 76 ) WHEN + - 79 * + + 49 * 60 + + 32 THEN - COUNT ( * ) END + - - 21 + 99 * + 87 * + - SUM ( ALL 44 ) AS col2
----
NULL

query I rowsort
SELECT ALL 68 * + + 29 AS col2
----
1972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1163
SELECT 58 * + 59 DIV + COUNT( * ) AS col1
----
3422

skipif mysql # not compatible
query I rowsort label-1163
SELECT 58 * + 59 / + COUNT ( * ) AS col1
----
3422

query I rowsort
SELECT DISTINCT 32 * - + 60 AS col2
----
-1920

query I rowsort
SELECT DISTINCT 67 + + 64
----
131

query II rowsort
SELECT ALL 26 + + - 36 AS col1, 91 AS col2
----
-10
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1167
SELECT - COUNT( + 74 ) AS col2, 64 / 39 * + + 11 * COUNT( + + 21 ) + + CAST( NULL AS DECIMAL ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1167
SELECT - COUNT ( + 74 ) AS col2, 64 / 39 * + + 11 * COUNT ( + + 21 ) + + CAST ( NULL AS REAL ) AS col0
----
-1
NULL

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

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

query I rowsort
SELECT ALL + 15 * + COALESCE ( - ( + 26 ), + 0 ) + 3
----
-387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1170
SELECT ALL - 32 * - 21 DIV + COUNT( * ) + 42 AS col1
----
714

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL - 32 * - 21 / + COUNT ( * ) + 42 AS col1
----
714

query I rowsort
SELECT DISTINCT 19 * 63 * - 34 AS col2
----
-40698

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT ALL + 83 * + + COUNT( * ) * - - 71 * - + 78 + - COALESCE ( + 16, - + ( 42 ) ) + - 4 * 96 + + COALESCE ( - 14, - 91 * + 49 ) + 62 + + 80 * + 51
----
-455926

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL + 83 * + + COUNT ( * ) * - - 71 * - + 78 + - COALESCE ( + 16, - + ( 42 ) ) + - 4 * 96 + + COALESCE ( - 14, - 91 * + 49 ) + 62 + + 80 * + 51
----
-455926

query I rowsort
SELECT 65 * - 44 AS col1
----
-2860

query I rowsort
SELECT - - 83 * 49 + + - 11
----
4056

query I rowsort
SELECT ALL - - 64 col0
----
64

query I rowsort
SELECT - COALESCE ( 45, - - 43 ) * + 51
----
-2295

query I rowsort
SELECT DISTINCT 22 - 30 AS col0
----
-8

query II rowsort
SELECT ALL - + ( - 52 ) AS col2, + 42 * - 44 AS col1
----
52
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT - 74 * 68 * + - ( - NULLIF ( - 13, COUNT( * ) - + 77 ) )
----
65416

skipif mysql # not compatible
query I rowsort label-1179
SELECT - 74 * 68 * + - ( - NULLIF ( - 13, COUNT ( * ) - + 77 ) )
----
65416

query I rowsort
SELECT DISTINCT - + 78 * 13 AS col0
----
-1014

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT 14 - + ( - COUNT( - 33 ) ) col0
----
15

skipif mysql # not compatible
query I rowsort label-1181
SELECT 14 - + ( - COUNT ( - 33 ) ) col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1182
SELECT + 41 * - - CAST( - 88 AS SIGNED ) + - 3 * + 97 + - 33 AS col0
----
-3932

skipif mysql # not compatible
query I rowsort label-1182
SELECT + 41 * - - CAST ( - 88 AS INTEGER ) + - 3 * + 97 + - 33 AS col0
----
-3932

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT + - SUM( 13 ) * + - 12 AS col0
----
156

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + - SUM ( 13 ) * + - 12 AS col0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT ALL CASE COUNT( * ) WHEN 49 * - + NULLIF ( - 14, + - 6 * + ( - - 79 ) ) THEN - + 15 WHEN 3 THEN NULL WHEN AVG ( DISTINCT - 35 ) + + + 91 - - 68 * - 20 - - - COALESCE ( - 71, - ( 89 ) * + COUNT( * ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL CASE COUNT ( * ) WHEN 49 * - + NULLIF ( - 14, + - 6 * + ( - - 79 ) ) THEN - + 15 WHEN 3 THEN NULL WHEN AVG ( DISTINCT - 35 ) + + + 91 - - 68 * - 20 - - - COALESCE ( - 71, - ( 89 ) * + COUNT ( * ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT - MAX( - 8 ) * - - 6 * 42 + COUNT( * )
----
2017

skipif mysql # not compatible
query I rowsort label-1185
SELECT - MAX ( - 8 ) * - - 6 * 42 + COUNT ( * )
----
2017

query II rowsort
SELECT - 60 AS col2, 18
----
-60
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL 62 + + 54 * + 50 * - + 75 + - MAX( + 96 ) + + - 96 * SUM( ALL 74 )
----
-209638

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL 62 + + 54 * + 50 * - + 75 + - MAX ( + 96 ) + + - 96 * SUM ( ALL 74 )
----
-209638

query I rowsort
SELECT - 68 - 90 * + ( 60 ) AS col0
----
-5468

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1189
SELECT DISTINCT - 11 + 76 - + COUNT( * ) + + MAX( + 9 ) * + 37 * 60 * COUNT( * ) col0, 0 DIV + 7
----
20044
0

skipif mysql # not compatible
query II rowsort label-1189
SELECT DISTINCT - 11 + 76 - + COUNT ( * ) + + MAX ( + 9 ) * + 37 * 60 * COUNT ( * ) col0, 0 / + 7
----
20044
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1190
SELECT + ( 47 ) DIV MAX( 1 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1190
SELECT + ( 47 ) / MAX ( 1 ) AS col1
----
47

query I rowsort
SELECT + 20 * - 36 AS col2
----
-720

query I rowsort
SELECT DISTINCT CASE + + 87 WHEN 93 THEN NULL WHEN + + 32 * - 10 THEN NULL ELSE + - 3 END
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1193
SELECT 68 AS col1, - 45 + + - 53 + - COUNT( * ) * - - 16 DIV - 74 * + + COUNT( * ) AS col2
----
68
-98

skipif mysql # not compatible
query II rowsort label-1193
SELECT 68 AS col1, - 45 + + - 53 + - COUNT ( * ) * - - 16 / - 74 * + + COUNT ( * ) AS col2
----
68
-98

query I rowsort
SELECT ALL 78 + + 23
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1195
SELECT + 90 - - - ( 22 ) + + 50 + 94 * + CAST( - 43 AS SIGNED ) * - 2 + + 14 * + 15, 29 * + 93 * + ( - 41 ) + + - 70 col0
----
8412
-110647

skipif mysql # not compatible
query II rowsort label-1195
SELECT + 90 - - - ( 22 ) + + 50 + 94 * + CAST ( - 43 AS INTEGER ) * - 2 + + 14 * + 15, 29 * + 93 * + ( - 41 ) + + - 70 col0
----
8412
-110647

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT - COUNT( DISTINCT + 51 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1196
SELECT - COUNT ( DISTINCT + 51 ) col2
----
-1

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

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

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

query I rowsort
SELECT DISTINCT 77 - 7
----
70

query I rowsort
SELECT + 96 * + 71 AS col2
----
6816

query I rowsort
SELECT DISTINCT + NULLIF ( - 22, - 61 + - 86 * + - 94 - + + 54 * + + 32 ) col1
----
-22

query I rowsort
SELECT + NULLIF ( 31, + - 6 * + - 45 - + 17 * - + 91 + 5 ) AS col0
----
31

query I rowsort
SELECT - 92 + - + 66 AS col2
----
-158

query I rowsort
SELECT ALL + 93 * COALESCE ( + 86, 78 ) AS col0
----
7998

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1205
SELECT + CASE - + 90 WHEN + ( 61 ) THEN NULL ELSE COALESCE ( - + 71, COUNT( * ), - - 81 * - 12 DIV - 96 DIV + - 15 ) END + 46 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-1205
SELECT + CASE - + 90 WHEN + ( 61 ) THEN NULL ELSE COALESCE ( - + 71, COUNT ( * ), - - 81 * - 12 / - 96 / + - 15 ) END + 46 AS col0
----
-25

query I rowsort
SELECT ALL 37 * + 29 AS col2
----
1073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1207
SELECT + 50 * CAST( - COUNT( * ) AS SIGNED ) + + 77 + - COUNT( * ) + + 27 + + 32 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1207
SELECT + 50 * CAST ( - COUNT ( * ) AS INTEGER ) + + 77 + - COUNT ( * ) + + 27 + + 32 AS col2
----
85

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + + COUNT( * ) + + - ( - 60 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-1210
SELECT + + COUNT ( * ) + + - ( - 60 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT - 67 * + - COUNT( * ) + + 10 - 55 + + ( - - COUNT( * ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1211
SELECT - 67 * + - COUNT ( * ) + + 10 - 55 + + ( - - COUNT ( * ) ) AS col1
----
23

query I rowsort
SELECT + - 27 + - - 38
----
11

query I rowsort
SELECT ALL 82 * 0 + - + 94 AS col2
----
-94

query II rowsort
SELECT DISTINCT + 0 AS col1, 83 * - 27
----
0
-2241

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL CASE + 33 WHEN - ( 32 ) * + 77 THEN - - 17 + + 81 WHEN - + 64 + 47 THEN + + 79 + + ( 39 ) + 98 * 45 ELSE - COUNT( * ) END * + 21 + - 56 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL CASE + 33 WHEN - ( 32 ) * + 77 THEN - - 17 + + 81 WHEN - + 64 + 47 THEN + + 79 + + ( 39 ) + 98 * 45 ELSE - COUNT ( * ) END * + 21 + - 56 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT + MAX( + 95 ) * - 57
----
-5415

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT + MAX ( + 95 ) * - 57
----
-5415

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL MAX( - 28 ) * + 19 * - 20 + + 67 * - MIN( DISTINCT 1 ) AS col1
----
10573

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL MAX ( - 28 ) * + 19 * - 20 + + 67 * - MIN ( DISTINCT 1 ) AS col1
----
10573

onlyif mysql # DIV for integer division: 
query I rowsort label-1218
SELECT - 44 + 28 + - 79 DIV 52 * + 62 * + 7 AS col2
----
-450

skipif mysql # not compatible
query I rowsort label-1218
SELECT - 44 + 28 + - 79 / 52 * + 62 * + 7 AS col2
----
-450

query I rowsort
SELECT ALL 19 * + ( 98 ) * + 30 + - - 15 + + 64 * + 61
----
59779

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT + NULLIF ( - 13, + SUM( ALL + NULLIF ( - - 82, - 49 * 34 ) ) ) * - 63
----
819

skipif mysql # not compatible
query I rowsort label-1221
SELECT + NULLIF ( - 13, + SUM ( ALL + NULLIF ( - - 82, - 49 * 34 ) ) ) * - 63
----
819

query I rowsort
SELECT DISTINCT + 52 * - - 53 * + 14 AS col2
----
38584

query II rowsort
SELECT - 14 + + 74 AS col0, - 77 AS col1
----
60
-77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1225
SELECT - ( - 24 ) DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-1225
SELECT - ( - 24 ) / + 99
----
0

query I rowsort
SELECT + 90 + 35 * 55 * 24
----
46290

query II rowsort
SELECT 21 AS col2, - 98
----
21
-98

query I rowsort
SELECT - 54 * + 67 AS col0
----
-3618

query II rowsort
SELECT ALL 43 AS col2, 53 col1
----
43
53

query I rowsort
SELECT - 30 * - 71 col2
----
2130

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

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

query I rowsort
SELECT + 24 * - 77
----
-1848

query II rowsort
SELECT ALL COALESCE ( 45, - 40, - - 9 ) AS col1, - 75
----
45
-75

query II rowsort
SELECT - 93 - + 19, - 5 AS col0
----
-112
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT - CAST( 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-1235
SELECT - CAST ( 74 AS INTEGER )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-1236
SELECT 48 AS col1, COUNT( * ) + 35 + - 87 AS col1
----
48
-51

skipif mysql # not compatible
query II rowsort label-1236
SELECT 48 AS col1, COUNT ( * ) + 35 + - 87 AS col1
----
48
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-1237
SELECT ALL + ( SUM( + 16 ) ) - - - 10, COUNT( * ) + + - ( - 30 ) + + MAX( DISTINCT + 37 ) + + COUNT( * ) AS col2
----
6
69

skipif mysql # not compatible
query II rowsort label-1237
SELECT ALL + ( SUM ( + 16 ) ) - - - 10, COUNT ( * ) + + - ( - 30 ) + + MAX ( DISTINCT + 37 ) + + COUNT ( * ) AS col2
----
6
69

query I rowsort
SELECT + + 58 * + 70
----
4060

query II rowsort
SELECT DISTINCT + + 4 col1, 92 * 84 col2
----
4
7728

onlyif mysql # DIV for integer division: 
query II rowsort label-1240
SELECT + 12 AS col1, 71 DIV 43
----
12
1

skipif mysql # not compatible
query II rowsort label-1240
SELECT + 12 AS col1, 71 / 43
----
12
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1241
SELECT 67 * - COUNT( * ) + ( - 61 ) DIV + 41 + 5 + + 70 - + 88 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-1241
SELECT 67 * - COUNT ( * ) + ( - 61 ) / + 41 + 5 + + 70 - + 88 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-1242
SELECT ALL + - COUNT( * ) AS col2, - 44 + + + 6
----
-1
-38

skipif mysql # not compatible
query II rowsort label-1242
SELECT ALL + - COUNT ( * ) AS col2, - 44 + + + 6
----
-1
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1243
SELECT - 96 * - 75 * CAST( + 46 AS SIGNED )
----
331200

skipif mysql # not compatible
query I rowsort label-1243
SELECT - 96 * - 75 * CAST ( + 46 AS INTEGER )
----
331200

query I rowsort
SELECT + ( 5 ) * + + 3
----
15

query I rowsort
SELECT DISTINCT - + 44 col1
----
-44

query I rowsort
SELECT ALL + 11 + - 68 AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1247
SELECT 43 * 26 * - 54 * + - 21 * + CAST( 13 AS SIGNED ) col0
----
16481556

skipif mysql # not compatible
query I rowsort label-1247
SELECT 43 * 26 * - 54 * + - 21 * + CAST ( 13 AS INTEGER ) col0
----
16481556

query I rowsort
SELECT + 2 + 67 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT ALL ( COUNT( 88 ) ) + + 55 + - - ( 90 ) * - 4 AS col2
----
-304

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL ( COUNT ( 88 ) ) + + 55 + - - ( 90 ) * - 4 AS col2
----
-304

query II rowsort
SELECT + + 20 AS col2, 18 col1
----
20
18

query II rowsort
SELECT + 19, + 51 - 71 AS col0
----
19
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1252
SELECT ALL 29 + - 59 * - 10 + - + SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL 29 + - 59 * - 10 + - + SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1253
SELECT DISTINCT - COUNT( * ) + 48 + + 35 * + 13 AS col2, + ( - 9 ) * + 85 + + 62 * - NULLIF ( + - 36, 34 ) - 63 + - COUNT( * ) - - + 1 * + 83 AS col0
----
502
1486

skipif mysql # not compatible
query II rowsort label-1253
SELECT DISTINCT - COUNT ( * ) + 48 + + 35 * + 13 AS col2, + ( - 9 ) * + 85 + + 62 * - NULLIF ( + - 36, 34 ) - 63 + - COUNT ( * ) - - + 1 * + 83 AS col0
----
502
1486

query I rowsort
SELECT ALL + 66 + - - 37 + + 39 + 41
----
183

query I rowsort
SELECT DISTINCT - COALESCE ( 31, - - 34 ) + - 69 AS col1
----
-100

query I rowsort
SELECT 64 - + - 24 AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1257
SELECT 99 * 95 DIV - CAST( - 66 AS SIGNED )
----
142

skipif mysql # not compatible
query I rowsort label-1257
SELECT 99 * 95 / - CAST ( - 66 AS INTEGER )
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-1258
SELECT DISTINCT 44 * - 63 AS col0, 72 + + NULLIF ( - COUNT( * ), - 50 ) col0
----
-2772
71

skipif mysql # not compatible
query II rowsort label-1258
SELECT DISTINCT 44 * - 63 AS col0, 72 + + NULLIF ( - COUNT ( * ), - 50 ) col0
----
-2772
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT ALL 3 + - + 11 * - ( - 98 ) + + COUNT( * ) AS col0
----
-1074

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL 3 + - + 11 * - ( - 98 ) + + COUNT ( * ) AS col0
----
-1074

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT CASE + - 34 WHEN + 81 THEN NULL WHEN + - 30 THEN ( - + COUNT( * ) ) - - - COUNT( * ) ELSE NULL END - 70 + + MAX( 37 ) + - + 71 * + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1260
SELECT CASE + - 34 WHEN + 81 THEN NULL WHEN + - 30 THEN ( - + COUNT ( * ) ) - - - COUNT ( * ) ELSE NULL END - 70 + + MAX ( 37 ) + - + 71 * + 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT DISTINCT + 48 + + ( - CASE - - 19 WHEN + AVG ( ALL 3 ) * + - 74 + 62 * - - ( + 98 ) THEN NULL WHEN - 55 THEN - 68 * + 45 + 79 * + ( 74 ) ELSE - 40 * - + SUM( - 81 ) - + MIN( DISTINCT 84 ) END )
----
3372

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT + 48 + + ( - CASE - - 19 WHEN + AVG ( ALL 3 ) * + - 74 + 62 * - - ( + 98 ) THEN NULL WHEN - 55 THEN - 68 * + 45 + 79 * + ( 74 ) ELSE - 40 * - + SUM ( - 81 ) - + MIN ( DISTINCT 84 ) END )
----
3372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1262
SELECT CAST( + + 49 AS SIGNED ) * 74 * 24 AS col0
----
87024

skipif mysql # not compatible
query I rowsort label-1262
SELECT CAST ( + + 49 AS INTEGER ) * 74 * 24 AS col0
----
87024

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT COUNT( * ) - - COUNT( * ) * + 24 + - 42 * - CASE + 92 WHEN + 67 THEN 70 END * - ( 85 ) + - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) * + 24 + - 42 * - CASE + 92 WHEN + 67 THEN 70 END * - ( 85 ) + - 4 AS col1
----
NULL

query I rowsort
SELECT ALL + 3 * - 23 AS col2
----
-69

query I rowsort
SELECT 18 - + 53 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT 24 * + COUNT( * ) * - - 80 * + + 17 * + 65 * 40 AS col2
----
84864000

skipif mysql # not compatible
query I rowsort label-1266
SELECT 24 * + COUNT ( * ) * - - 80 * + + 17 * + 65 * 40 AS col2
----
84864000

query II rowsort
SELECT 8 + + - 14 + - + 95 * + + 73 + + 67 * + + 0 * - + 76, + 10 AS col1
----
-6941
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1268
SELECT - 87 * + 10 * COUNT( * ) * + + CASE + 61 WHEN - 76 THEN NULL WHEN + - COALESCE ( 84, 17, - 56 ) THEN - CAST( NULL AS SIGNED ) + + + 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1268
SELECT - 87 * + 10 * COUNT ( * ) * + + CASE + 61 WHEN - 76 THEN NULL WHEN + - COALESCE ( 84, 17, - 56 ) THEN - CAST ( NULL AS INTEGER ) + + + 58 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1269
SELECT 33 + + + COUNT( * ) DIV - 76 + ( + + 84 ) col2
----
117

skipif mysql # not compatible
query I rowsort label-1269
SELECT 33 + + + COUNT ( * ) / - 76 + ( + + 84 ) col2
----
117

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1271
SELECT 9 DIV COALESCE ( 98, 57 ) - 50 * + 75 * 24 AS col2
----
-90000

skipif mysql # not compatible
query I rowsort label-1271
SELECT 9 / COALESCE ( 98, 57 ) - 50 * + 75 * 24 AS col2
----
-90000

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT DISTINCT - + ( MIN( DISTINCT - - 43 ) ) * - COUNT( + 33 ) + 34
----
77

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT - + ( MIN ( DISTINCT - - 43 ) ) * - COUNT ( + 33 ) + 34
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT ALL + COALESCE ( + 48, - 14, - 63 * + COUNT( * ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL + COALESCE ( + 48, - 14, - 63 * + COUNT ( * ) ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1274
SELECT 2 + 0, MAX( - - 47 ) AS col1
----
2
47

skipif mysql # not compatible
query II rowsort label-1274
SELECT 2 + 0, MAX ( - - 47 ) AS col1
----
2
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT 89 DIV - - 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1275
SELECT 89 / - - 37 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1276
SELECT + 50 DIV + 95 + 16 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1276
SELECT + 50 / + 95 + 16 AS col0
----
16

query I rowsort
SELECT 79 * - + 38 AS col0
----
-3002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1278
SELECT ALL + 41 + 8 DIV - 23 + + - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL + 41 + 8 / - 23 + + - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1279
SELECT - - COUNT( * ) DIV COUNT( * ) * - 20 + + 86 + 50
----
116

skipif mysql # not compatible
query I rowsort label-1279
SELECT - - COUNT ( * ) / COUNT ( * ) * - 20 + + 86 + 50
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-1280
SELECT ALL + 80 + 98, NULLIF ( + 26, + + CASE - - ( + + 25 ) WHEN + + 64 THEN - - 81 * - - COUNT( * ) + 37 * + + 5 WHEN 54 + - COUNT( * ) THEN NULL END ) AS col1
----
178
26

skipif mysql # not compatible
query II rowsort label-1280
SELECT ALL + 80 + 98, NULLIF ( + 26, + + CASE - - ( + + 25 ) WHEN + + 64 THEN - - 81 * - - COUNT ( * ) + 37 * + + 5 WHEN 54 + - COUNT ( * ) THEN NULL END ) AS col1
----
178
26

query I rowsort
SELECT DISTINCT + ( + 38 ) * - 40 AS col0
----
-1520

query I rowsort
SELECT 94 * - + 40 * + 36 + + 24 + + 91 * + 40 AS col0
----
-131696

query II rowsort
SELECT + 53 AS col1, 47
----
53
47

query I rowsort
SELECT + 92 * 27 + + 34 - + 28 * + 59 AS col1
----
866

query I rowsort
SELECT 98 * + + 80 + + + 63 + - NULLIF ( - 44, - 12 )
----
7947

query I rowsort
SELECT 62 * 78 - - 20 * - 36 AS col2
----
4116

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT COUNT( 43 ) + + COUNT( * ) + + 97 - + - ( 90 ) * - + 16 + - COUNT( * ) - - 38 + 60
----
-1244

skipif mysql # not compatible
query I rowsort label-1287
SELECT COUNT ( 43 ) + + COUNT ( * ) + + 97 - + - ( 90 ) * - + 16 + - COUNT ( * ) - - 38 + 60
----
-1244

onlyif mysql # DIV for integer division: 
query I rowsort label-1288
SELECT ALL 55 DIV 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL 55 / 74 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1289
SELECT + 20 AS col0, 95 DIV - + 35 + 88 AS col0
----
20
86

skipif mysql # not compatible
query II rowsort label-1289
SELECT + 20 AS col0, 95 / - + 35 + 88 AS col0
----
20
86

query I rowsort
SELECT DISTINCT 90 * + + 33 AS col0
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT ALL - MIN( 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL - MIN ( 44 ) AS col1
----
-44

query I rowsort
SELECT ALL 25 * - 60
----
-1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1293
SELECT 18 + - COUNT( * ) - + 60 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1293
SELECT 18 + - COUNT ( * ) - + 60 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT 89 DIV 81
----
1

skipif mysql # not compatible
query I rowsort label-1294
SELECT 89 / 81
----
1

query II rowsort
SELECT - 85 AS col1, - 9
----
-85
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1296
SELECT CAST( NULL AS SIGNED ) + + COALESCE ( + - 89, 31 + + NULLIF ( 41, 36 * - 48 + 19 * 49 ) + + SUM( DISTINCT + 81 ) * + COUNT( * ) + + ( AVG ( 91 ) ), 84 + - 82 + - 76 * - 66 ) * + 16 / - + COUNT( * ) * 85 + + 99 + + NULLIF ( - 91, - 73 + + 45 * 60 ) * ( - 28 + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT CAST ( NULL AS INTEGER ) + + COALESCE ( + - 89, 31 + + NULLIF ( 41, 36 * - 48 + 19 * 49 ) + + SUM ( DISTINCT + 81 ) * + COUNT ( * ) + + ( AVG ( 91 ) ), 84 + - 82 + - 76 * - 66 ) * + 16 / - + COUNT ( * ) * 85 + + 99 + + NULLIF ( - 91, - 73 + + 45 * 60 ) * ( - 28 + 11 )
----
NULL

query I rowsort
SELECT 37 * - + 35
----
-1295

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT 43 + 98 + + + 87 * + COUNT( * ) - + 65 * ( - COUNT( * ) ) AS col2
----
293

skipif mysql # not compatible
query I rowsort label-1298
SELECT 43 + 98 + + + 87 * + COUNT ( * ) - + 65 * ( - COUNT ( * ) ) AS col2
----
293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1299
SELECT COUNT( * ) + + ( + - 0 ) + - CASE CAST( + - CASE - 16 WHEN + - 90 THEN NULL ELSE + 51 END AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN + ( 4 ) * 72 + 15 * - 81 WHEN - 24 THEN - 75 ELSE 78 + + + 1 END AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-1299
SELECT COUNT ( * ) + + ( + - 0 ) + - CASE CAST ( + - CASE - 16 WHEN + - 90 THEN NULL ELSE + 51 END AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN + ( 4 ) * 72 + 15 * - 81 WHEN - 24 THEN - 75 ELSE 78 + + + 1 END AS col2
----
-78

query I rowsort
SELECT 53 + - 89 AS col1
----
-36

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

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

query II rowsort
SELECT 47 col0, + 41
----
47
41

query I rowsort
SELECT ALL - ( - 4 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT CASE + + ( + 95 ) WHEN + COUNT( * ) THEN + 84 END + - 47 + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1304
SELECT CASE + + ( + 95 ) WHEN + COUNT ( * ) THEN + 84 END + - 47 + 51 AS col1
----
NULL

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

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

query II rowsort
SELECT - 58, + 27 + + 94 AS col0
----
-58
121

query I rowsort
SELECT + 87 * - - 40 AS col2
----
3480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1309
SELECT + + COALESCE ( 37, - CAST( NULL AS SIGNED ) * 51 + 1, - COUNT( * ) * - 85 + + ( 79 ) ) - 17 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1309
SELECT + + COALESCE ( 37, - CAST ( NULL AS INTEGER ) * 51 + 1, - COUNT ( * ) * - 85 + + ( 79 ) ) - 17 AS col1
----
20

query I rowsort
SELECT - 70 + 57 * - 83 + + 68 AS col0
----
-4733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1311
SELECT DISTINCT CAST( + + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col0, 62 + ( MAX( - 81 ) ) * + COUNT( 9 )
----
-1
-19

skipif mysql # not compatible
query II rowsort label-1311
SELECT DISTINCT CAST ( + + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0, 62 + ( MAX ( - 81 ) ) * + COUNT ( 9 )
----
-1
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1312
SELECT ALL 88 + 99 * + CASE + + COUNT( * ) WHEN - - 46 / 66 THEN + 16 WHEN + ( - 34 ) + - 3 THEN - 9 END, 95 + - 81 + - 72 col2
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-1312
SELECT ALL 88 + 99 * + CASE + + COUNT ( * ) WHEN - - 46 / 66 THEN + 16 WHEN + ( - 34 ) + - 3 THEN - 9 END, 95 + - 81 + - 72 col2
----
NULL
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1313
SELECT DISTINCT + 45 AS col2, - 24 DIV 26 * ( - + ( + 86 ) ) - - COUNT( * ) AS col1
----
45
1

skipif mysql # not compatible
query II rowsort label-1313
SELECT DISTINCT + 45 AS col2, - 24 / 26 * ( - + ( + 86 ) ) - - COUNT ( * ) AS col1
----
45
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1314
SELECT ALL + 36 * 13 / + 21 * CAST( NULL AS SIGNED ) + 99 + 56 + CAST( NULL AS SIGNED ) * + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL + 36 * 13 / + 21 * CAST ( NULL AS INTEGER ) + 99 + 56 + CAST ( NULL AS INTEGER ) * + 32 AS col0
----
NULL

query II rowsort
SELECT - + 23 + - + 25 * - 25, - 41 col2
----
602
-41

query I rowsort
SELECT DISTINCT 47 * 97 + - 19
----
4540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1317
SELECT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

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

query I rowsort
SELECT COALESCE ( + 90, 69 )
----
90

query I rowsort
SELECT + 91 + + 36
----
127

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1322
SELECT COALESCE ( + ( + COUNT( * ) ), - 43 ) AS col1, - 57 - + + 53 + - 17 + - - 29
----
1
-98

skipif mysql # not compatible
query II rowsort label-1322
SELECT COALESCE ( + ( + COUNT ( * ) ), - 43 ) AS col1, - 57 - + + 53 + - 17 + - - 29
----
1
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT ALL 49 * 18 * - 49 * - COUNT( * ) * + 87 AS col0
----
3759966

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL 49 * 18 * - 49 * - COUNT ( * ) * + 87 AS col0
----
3759966

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1324
SELECT NULLIF ( + 97, + - CAST( - 44 AS DECIMAL ) / - 55 * + + 55 - - COUNT( * ) * - 46 - - 63 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1324
SELECT NULLIF ( + 97, + - CAST ( - 44 AS REAL ) / - 55 * + + 55 - - COUNT ( * ) * - 46 - - 63 ) AS col0
----
97

query I rowsort
SELECT ALL 94 * + 15 * - 36 - + 45
----
-50805

query I rowsort
SELECT - 2 * + ( 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL - 4 * COUNT( * ) * 56 * 50
----
-11200

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL - 4 * COUNT ( * ) * 56 * 50
----
-11200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1328
SELECT - COUNT( * ) - 79, - CAST( - + 12 AS SIGNED ) AS col1
----
-80
12

skipif mysql # not compatible
query II rowsort label-1328
SELECT - COUNT ( * ) - 79, - CAST ( - + 12 AS INTEGER ) AS col1
----
-80
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT COUNT( 3 )
----
1

skipif mysql # not compatible
query I rowsort label-1330
SELECT COUNT ( 3 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT 41 * 52 + ( + 86 ) + - + COUNT( * )
----
2217

skipif mysql # not compatible
query I rowsort label-1331
SELECT 41 * 52 + ( + 86 ) + - + COUNT ( * )
----
2217

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

skipif mysql # not compatible
query I rowsort label-1332
SELECT + 89 / COUNT ( * ) AS col0
----
89

query II rowsort
SELECT ALL ( 65 ), + 45 * 81 col0
----
65
3645

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT ALL + 76 + - COUNT( * ) - + CASE + MAX( DISTINCT + - 46 ) WHEN MIN( + - 10 ) + + - 54 THEN NULL WHEN - COUNT( * ) THEN SUM( DISTINCT - 70 ) + - - NULLIF ( - 78, + - 76 * + - 69 + - 3 * - 72 / 14 ) END - + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL + 76 + - COUNT ( * ) - + CASE + MAX ( DISTINCT + - 46 ) WHEN MIN ( + - 10 ) + + - 54 THEN NULL WHEN - COUNT ( * ) THEN SUM ( DISTINCT - 70 ) + - - NULLIF ( - 78, + - 76 * + - 69 + - 3 * - 72 / 14 ) END - + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT + - 96 - 41 + + + ( - 9 ) + - COUNT( * ) * ( + 51 ) * + 38 AS col2
----
-2084

skipif mysql # not compatible
query I rowsort label-1335
SELECT + - 96 - 41 + + + ( - 9 ) + - COUNT ( * ) * ( + 51 ) * + 38 AS col2
----
-2084

query I rowsort
SELECT DISTINCT 88 + + 51 col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1337
SELECT ALL 93 + - 37 + - SUM( + 20 ) + CASE + - 99 WHEN - 19 * - + 69 * - + CAST( NULL AS SIGNED ) THEN + 71 WHEN + 11 * + - 48 + + ( + 69 ) THEN NULL WHEN + - 40 * - 27 THEN NULL END * + - AVG ( ALL - - 13 ) * - + 33 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL 93 + - 37 + - SUM ( + 20 ) + CASE + - 99 WHEN - 19 * - + 69 * - + CAST ( NULL AS INTEGER ) THEN + 71 WHEN + 11 * + - 48 + + ( + 69 ) THEN NULL WHEN + - 40 * - 27 THEN NULL END * + - AVG ( ALL - - 13 ) * - + 33 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT + 62 + + MIN( 12 )
----
74

skipif mysql # not compatible
query I rowsort label-1338
SELECT + 62 + + MIN ( 12 )
----
74

query I rowsort
SELECT + 76 + + 46 AS col0
----
122

query II rowsort
SELECT ALL 15 * - 0 AS col1, ( - 67 ) AS col1
----
0
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1341
SELECT COUNT( 34 ) col0, - 80 DIV 93
----
1
0

skipif mysql # not compatible
query II rowsort label-1341
SELECT COUNT ( 34 ) col0, - 80 / 93
----
1
0

query II rowsort
SELECT + 89 + + - 70, - 53 + - - 65 AS col1
----
19
12

query I rowsort
SELECT + 21 * - 38 AS col1
----
-798

query I rowsort
SELECT + - 94 + + 78 * 42 + - 22 AS col0
----
3160

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT - + 19 + - 42 * - 26 * 14 + + 30 + 98 + + + 53 + 30 * MAX( DISTINCT ( + 16 ) ) * - 4 * - - 34 AS col2
----
-49830

skipif mysql # not compatible
query I rowsort label-1345
SELECT - + 19 + - 42 * - 26 * 14 + + 30 + 98 + + + 53 + 30 * MAX ( DISTINCT ( + 16 ) ) * - 4 * - - 34 AS col2
----
-49830

query I rowsort
SELECT + + 17 + - 65 + + - 54 + + + 96
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT + 5 * + + COUNT( ALL - 1 ) * - 28 AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-1347
SELECT + 5 * + + COUNT ( ALL - 1 ) * - 28 AS col2
----
-140

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT + CASE - - 58 WHEN + COUNT( DISTINCT + 9 ) - + + NULLIF ( 88, ( 35 ) * - 46 ) THEN 83 END + 6 * + 14 + + + 10 - + 94 - - 37 / ( + 51 ) * + 67 * + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1349
SELECT + CASE - - 58 WHEN + COUNT ( DISTINCT + 9 ) - + + NULLIF ( 88, ( 35 ) * - 46 ) THEN 83 END + 6 * + 14 + + + 10 - + 94 - - 37 / ( + 51 ) * + 67 * + 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1350
SELECT ALL 91 DIV COUNT( * ) DIV 21 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL 91 / COUNT ( * ) / 21 AS col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1351
SELECT + 7 AS col1, - 6 * - 74 + + NULLIF ( COALESCE ( 44, - 36, - + 30 ), + + COUNT( * ) ) AS col2
----
7
488

skipif mysql # not compatible
query II rowsort label-1351
SELECT + 7 AS col1, - 6 * - 74 + + NULLIF ( COALESCE ( 44, - 36, - + 30 ), + + COUNT ( * ) ) AS col2
----
7
488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1352
SELECT CAST( + COUNT( * ) AS SIGNED ) * 7 * - COUNT( * ) * - 20 * - 48 * + 17 + - NULLIF ( - 26, COALESCE ( + COALESCE ( - 80, + + COUNT( * ) + 92 + + + 60, - 78 ), + 65 ) * 29 + + 41 ) + ( - 30 ) * - 5 - - NULLIF ( - 76, 63 ) AS col2, 27 col1, COUNT( * )
----
-114140
27
1

skipif mysql # not compatible
query III rowsort label-1352
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * 7 * - COUNT ( * ) * - 20 * - 48 * + 17 + - NULLIF ( - 26, COALESCE ( + COALESCE ( - 80, + + COUNT ( * ) + 92 + + + 60, - 78 ), + 65 ) * 29 + + 41 ) + ( - 30 ) * - 5 - - NULLIF ( - 76, 63 ) AS col2, 27 col1, COUNT ( * )
----
-114140
27
1

query I rowsort
SELECT - 38 * + 78
----
-2964

onlyif mysql # DIV for integer division: 
query II rowsort label-1354
SELECT - 9 DIV + 48 * 18 + - 54 * + 36 col1, 36
----
-1944
36

skipif mysql # not compatible
query II rowsort label-1354
SELECT - 9 / + 48 * 18 + - 54 * + 36 col1, 36
----
-1944
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT DISTINCT + SUM( DISTINCT - 82 ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-1355
SELECT DISTINCT + SUM ( DISTINCT - 82 ) col1
----
-82

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

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

query I rowsort
SELECT ALL + CASE - + 92 WHEN + COALESCE ( - + 88, + 80 ) * - 34 THEN - 50 WHEN - 89 + + - CASE 48 WHEN + + 23 THEN + 78 * - 43 ELSE NULL END / - NULLIF ( + ( 90 ), + 22 / - - 26 * 49 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 46 * + 51 + 25 AS col1
----
2371

query I rowsort
SELECT - 78 * - - 65
----
-5070

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1361
SELECT - 96 + 6 * - + MIN( 64 ) + - SUM( ALL - 73 ) DIV - 78 + - - 75 AS col0, 58 + - + 79 AS col0
----
-405
-21

skipif mysql # not compatible
query II rowsort label-1361
SELECT - 96 + 6 * - + MIN ( 64 ) + - SUM ( ALL - 73 ) / - 78 + - - 75 AS col0, 58 + - + 79 AS col0
----
-405
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1362
SELECT - COUNT( + + 67 ) DIV + - 7 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1362
SELECT - COUNT ( + + 67 ) / + - 7 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT ALL + NULLIF ( 39, 68 * AVG ( + 81 ) ) DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL + NULLIF ( 39, 68 * AVG ( + 81 ) ) / + 61
----
0

query I rowsort
SELECT - 72 + + 56 AS col2
----
-16

query I rowsort
SELECT - 48 * 25 * - 2 * - 2 AS col0
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT + MAX( 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1366
SELECT + MAX ( 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL 95 * SUM( ALL - - 10 ) + + 36 + 12 AS col1
----
998

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL 95 * SUM ( ALL - - 10 ) + + 36 + 12 AS col1
----
998

query I rowsort
SELECT ALL - 82 * + + 14 AS col1
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT 54 + + MAX( DISTINCT - 56 )
----
-2

skipif mysql # not compatible
query I rowsort label-1369
SELECT 54 + + MAX ( DISTINCT - 56 )
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1370
SELECT ALL - CAST( NULL AS DECIMAL ) + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL - CAST ( NULL AS REAL ) + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1371
SELECT - 70 AS col2, + SUM( ALL - + 83 ) AS col2
----
-70
-83

skipif mysql # not compatible
query II rowsort label-1371
SELECT - 70 AS col2, + SUM ( ALL - + 83 ) AS col2
----
-70
-83

query I rowsort
SELECT 87 * + 58 AS col2
----
5046

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT ALL - + COUNT( * ) + - + 24 - - 9 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL - + COUNT ( * ) + - + 24 - - 9 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT + SUM( DISTINCT - + 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1375
SELECT + SUM ( DISTINCT - + 91 ) AS col1
----
-91

query I rowsort
SELECT ALL - 4 + - - 48 AS col1
----
44

query I rowsort
SELECT DISTINCT + 70 * + + 26 AS col0
----
1820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1378
SELECT DISTINCT - 59 DIV COUNT( + 69 ) * 40
----
-2360

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT - 59 / COUNT ( + 69 ) * 40
----
-2360

onlyif mysql # DIV for integer division: 
query I rowsort label-1379
SELECT 2 DIV 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1379
SELECT 2 / 38 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT - ( COUNT( * ) ) * + 72 + + 25 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1380
SELECT - ( COUNT ( * ) ) * + 72 + + 25 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT COUNT( * ) * 21
----
21

skipif mysql # not compatible
query I rowsort label-1381
SELECT COUNT ( * ) * 21
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1382
SELECT 36 - - 25 - - - 85 + - 64 + + - ( - CAST( NULL AS SIGNED ) ) * + 86 * - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT 36 - - 25 - - - 85 + - 64 + + - ( - CAST ( NULL AS INTEGER ) ) * + 86 * - 66 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1384
SELECT COUNT( ALL 10 ) - + 53 + 29 * 46 AS col1, - 91 * + 34 * + 54 AS col1
----
1282
-167076

skipif mysql # not compatible
query II rowsort label-1384
SELECT COUNT ( ALL 10 ) - + 53 + 29 * 46 AS col1, - 91 * + 34 * + 54 AS col1
----
1282
-167076

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

query I rowsort
SELECT 12 * + - 35
----
-420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT ALL - NULLIF ( - COUNT( ALL 94 ), + 87 * 48 + + + 53 + + 88 * - 58 + 28 ) * + 7 DIV + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL - NULLIF ( - COUNT ( ALL 94 ), + 87 * 48 + + + 53 + + 88 * - 58 + 28 ) * + 7 / + 89 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1388
SELECT SUM( DISTINCT + 40 ) * - - ( + CASE - 79 WHEN CAST( NULL AS SIGNED ) * + 19 - + 1 THEN COUNT( ALL + - 93 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1388
SELECT SUM ( DISTINCT + 40 ) * - - ( + CASE - 79 WHEN CAST ( NULL AS INTEGER ) * + 19 - + 1 THEN COUNT ( ALL + - 93 ) END ) AS col0
----
NULL

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

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

query II rowsort
SELECT ALL 4 AS col2, - NULLIF ( - 30, - ( - - 31 ) + 86 * + - 2 ) * - 91
----
4
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT 3 * MAX( - + 32 ) + + 38 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1391
SELECT 3 * MAX ( - + 32 ) + + 38 AS col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT - 5 DIV + 98 - + 76 col1
----
-76

skipif mysql # not compatible
query I rowsort label-1392
SELECT - 5 / + 98 - + 76 col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT ALL - MAX( ALL - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL - MAX ( ALL - 75 )
----
75

query II rowsort
SELECT DISTINCT - 66 AS col1, 66 AS col2
----
-66
66

query II rowsort
SELECT + 70, 87 * + 30 * 48 col2
----
70
125280

query I rowsort
SELECT 37 * - 85 * 59 AS col1
----
-185555

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

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

query II rowsort
SELECT + 26, 70 AS col2
----
26
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1399
SELECT ALL - 82 AS col1, NULLIF ( 43, + CASE - 8 WHEN 86 THEN NULL WHEN - - 83 - 49 + + - 3 THEN - 4 END ) * 25 + - + ( - - 20 ) + - 8 + - + 54 + - 54 * 42 - - NULLIF ( - - MAX( ALL - 20 ), - - 10 ) AS col1
----
-82
-1295

skipif mysql # not compatible
query II rowsort label-1399
SELECT ALL - 82 AS col1, NULLIF ( 43, + CASE - 8 WHEN 86 THEN NULL WHEN - - 83 - 49 + + - 3 THEN - 4 END ) * 25 + - + ( - - 20 ) + - 8 + - + 54 + - 54 * 42 - - NULLIF ( - - MAX ( ALL - 20 ), - - 10 ) AS col1
----
-82
-1295

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT + 28, 44 * - COUNT( * ) AS col0
----
28
-44

skipif mysql # not compatible
query II rowsort label-1400
SELECT + 28, 44 * - COUNT ( * ) AS col0
----
28
-44

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

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

query I rowsort
SELECT ALL + ( - 41 ) + + NULLIF ( + 22, - 71 ) AS col0
----
-19

query I rowsort
SELECT ALL 30 + - + 54
----
-24

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

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

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

skipif mysql # not compatible
query I rowsort label-1405
SELECT 52 / + 53
----
0

query I rowsort
SELECT ALL + 41 + 18
----
59

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

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

query I rowsort
SELECT 9 - + 26
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1409
SELECT + 43 AS col2, 69 * - CAST( 88 AS SIGNED ) * COUNT( * ) * 90 + 80 AS col0
----
43
-546400

skipif mysql # not compatible
query II rowsort label-1409
SELECT + 43 AS col2, 69 * - CAST ( 88 AS INTEGER ) * COUNT ( * ) * 90 + 80 AS col0
----
43
-546400

onlyif mysql # aggregate syntax: 
query II rowsort label-1410
SELECT + COUNT( * ) + - 85 * + 26 + + + 12 AS col0, 95 * + 57 AS col0
----
-2197
5415

skipif mysql # not compatible
query II rowsort label-1410
SELECT + COUNT ( * ) + - 85 * + 26 + + + 12 AS col0, 95 * + 57 AS col0
----
-2197
5415

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

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

query I rowsort
SELECT ALL - 13 + 84 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT - CASE - - 7 WHEN 40 THEN NULL WHEN + NULLIF ( - - CASE 58 WHEN + 40 THEN + 44 + 86 ELSE - + 32 END, 34 ) * + 99 THEN NULL ELSE + 65 * + COUNT( * ) * - + COUNT( * ) END
----
65

skipif mysql # not compatible
query I rowsort label-1413
SELECT - CASE - - 7 WHEN 40 THEN NULL WHEN + NULLIF ( - - CASE 58 WHEN + 40 THEN + 44 + 86 ELSE - + 32 END, 34 ) * + 99 THEN NULL ELSE + 65 * + COUNT ( * ) * - + COUNT ( * ) END
----
65

query I rowsort
SELECT ALL - - 70 - 59 AS col2
----
11

query II rowsort
SELECT ALL - 22 AS col0, + 50 * + 69 AS col1
----
-22
3450

query I rowsort
SELECT ALL + 41 * + - ( - 57 ) AS col0
----
2337

onlyif mysql # aggregate syntax: 
query II rowsort label-1417
SELECT - CASE ( + 89 ) WHEN - ( - 83 ) + + 39 * 72 THEN NULL ELSE - 72 * + + 79 END AS col0, COUNT( * ) * 38
----
5688
38

skipif mysql # not compatible
query II rowsort label-1417
SELECT - CASE ( + 89 ) WHEN - ( - 83 ) + + 39 * 72 THEN NULL ELSE - 72 * + + 79 END AS col0, COUNT ( * ) * 38
----
5688
38

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1419
SELECT ( + COUNT( * ) ) * + - 36 DIV - 23 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1419
SELECT ( + COUNT ( * ) ) * + - 36 / - 23 AS col2
----
1

query I rowsort
SELECT 50 + - + 37 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT + COUNT( * ) - + - 17 - 16 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1421
SELECT + COUNT ( * ) - + - 17 - 16 AS col2
----
2

query II rowsort
SELECT + ( - 34 ) + + ( - - 76 ) * 67 * + - 52 AS col1, - COALESCE ( + 25, + 50 ) AS col1
----
-264818
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-1423
SELECT COUNT( * ) AS col1, NULLIF ( 81, - - 0 * + 53 + - - 71 )
----
1
81

skipif mysql # not compatible
query II rowsort label-1423
SELECT COUNT ( * ) AS col1, NULLIF ( 81, - - 0 * + 53 + - - 71 )
----
1
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1424
SELECT ALL MAX( - 49 ), + 31 * - + 50 AS col1
----
-49
-1550

skipif mysql # not compatible
query II rowsort label-1424
SELECT ALL MAX ( - 49 ), + 31 * - + 50 AS col1
----
-49
-1550

query I rowsort
SELECT ALL 26 * + 74 AS col2
----
1924

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

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

query I rowsort
SELECT 92 * 78 * + + 84
----
602784

query II rowsort
SELECT 98 + + 50 AS col2, 35
----
148
35

query II rowsort
SELECT 8 + + 36, 10 * - 44 AS col1
----
44
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1430
SELECT CASE - + 16 WHEN - 17 THEN NULL WHEN CAST( NULL AS SIGNED ) * + - 87 / + 43 * 39 + ( 50 ) THEN + 80 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1430
SELECT CASE - + 16 WHEN - 17 THEN NULL WHEN CAST ( NULL AS INTEGER ) * + - 87 / + 43 * 39 + ( 50 ) THEN + 80 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT - COUNT( * ) * 21 + + 59
----
38

skipif mysql # not compatible
query I rowsort label-1431
SELECT - COUNT ( * ) * 21 + + 59
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT ALL ( - 97 ) * + SUM( 57 ) AS col0
----
-5529

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL ( - 97 ) * + SUM ( 57 ) AS col0
----
-5529

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT DISTINCT + 42 * 18 + - - COUNT( * ) + - + 68
----
689

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT + 42 * 18 + - - COUNT ( * ) + - + 68
----
689

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT ALL - 9 * - 73 * - COUNT( * ) + + 33
----
-624

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL - 9 * - 73 * - COUNT ( * ) + + 33
----
-624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1435
SELECT + CAST( + 99 AS SIGNED ) * + 90 + - 14
----
8896

skipif mysql # not compatible
query I rowsort label-1435
SELECT + CAST ( + 99 AS INTEGER ) * + 90 + - 14
----
8896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1436
SELECT + ( + COALESCE ( + 82, + 98 ) ) * NULLIF ( - ( + + AVG ( ALL CAST( NULL AS SIGNED ) ) ), SUM( ALL 44 ) ) * + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1436
SELECT + ( + COALESCE ( + 82, + 98 ) ) * NULLIF ( - ( + + AVG ( ALL CAST ( NULL AS INTEGER ) ) ), SUM ( ALL 44 ) ) * + 92 AS col1
----
NULL

query II rowsort
SELECT + 83 + 97, - 38 * + ( + + 81 ) * - - 64 * + 29 - 36 + - + 84 col0
----
180
-5712888

query I rowsort
SELECT + + 63 * + 23 + - - 79 + - 71
----
1457

query II rowsort
SELECT + 51 * + 94 AS col0, 0 * - 39
----
4794
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1440
SELECT DISTINCT - 26 DIV - 95 AS col1, + 52 * + CAST( NULL AS SIGNED ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1440
SELECT DISTINCT - 26 / - 95 AS col1, + 52 * + CAST ( NULL AS INTEGER ) AS col2
----
0
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1442
SELECT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * 27 + MAX( - 21 ) AS col0, - 70 AS col2
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-1442
SELECT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * 27 + MAX ( - 21 ) AS col0, - 70 AS col2
----
NULL
-70

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

skipif mysql # not compatible
query I rowsort label-1443
SELECT - + COUNT ( * ) + - 63 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-1444
SELECT ALL COUNT( ALL 42 ) AS col0, 64
----
1
64

skipif mysql # not compatible
query II rowsort label-1444
SELECT ALL COUNT ( ALL 42 ) AS col0, 64
----
1
64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1446
SELECT - 14 DIV 75 * - 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1446
SELECT - 14 / 75 * - 62 AS col2
----
0

query II rowsort
SELECT ALL - ( 87 ), 30 col1
----
-87
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1448
SELECT - 72 * + - 7 col0, - 18 * - 79 DIV COUNT( * ) - - COUNT( * ) + - 49 DIV - - 43 - - 16
----
504
1438

skipif mysql # not compatible
query II rowsort label-1448
SELECT - 72 * + - 7 col0, - 18 * - 79 / COUNT ( * ) - - COUNT ( * ) + - 49 / - - 43 - - 16
----
504
1438

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1449
SELECT - 33 + 99 + + - 32 DIV - - 37 * 50 * - - 65, - COUNT( + - 93 ) AS col0
----
66
-1

skipif mysql # not compatible
query II rowsort label-1449
SELECT - 33 + 99 + + - 32 / - - 37 * 50 * - - 65, - COUNT ( + - 93 ) AS col0
----
66
-1

query I rowsort
SELECT ALL + ( - 83 ) + 73 AS col1
----
-10

query I rowsort
SELECT + 2 + 56
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1452
SELECT - COUNT( * ), SUM( + + 78 ) + 43 AS col2
----
-1
121

skipif mysql # not compatible
query II rowsort label-1452
SELECT - COUNT ( * ), SUM ( + + 78 ) + 43 AS col2
----
-1
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT DISTINCT MIN( 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT MIN ( 48 ) AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1454
SELECT DISTINCT COALESCE ( - 8, - 85 ) AS col0, - COALESCE ( - COUNT( * ), - - 24 DIV - - 38 + 43 - + 79 + - 50 + 28 ) col0
----
-8
1

skipif mysql # not compatible
query II rowsort label-1454
SELECT DISTINCT COALESCE ( - 8, - 85 ) AS col0, - COALESCE ( - COUNT ( * ), - - 24 / - - 38 + 43 - + 79 + - 50 + 28 ) col0
----
-8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT ALL + COUNT( * ) + 94 + - 28 * + - 45
----
1355

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL + COUNT ( * ) + 94 + - 28 * + - 45
----
1355

query II rowsort
SELECT 38 AS col1, + 43
----
38
43

query II rowsort
SELECT DISTINCT 74, + 20 col2
----
74
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1458
SELECT - 43 * + - CAST( + CASE + - 35 WHEN + 90 * - 73 + 46 THEN 29 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1458
SELECT - 43 * + - CAST ( + CASE + - 35 WHEN + 90 * - 73 + 46 THEN 29 END AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1459
SELECT ALL - 15 DIV - 64 + - 69 AS col1, - 78 AS col2
----
-69
-78

skipif mysql # not compatible
query II rowsort label-1459
SELECT ALL - 15 / - 64 + - 69 AS col1, - 78 AS col2
----
-69
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1460
SELECT CAST( NULL AS SIGNED ), 39 * - 63 AS col2
----
NULL
-2457

skipif mysql # not compatible
query II rowsort label-1460
SELECT CAST ( NULL AS INTEGER ), 39 * - 63 AS col2
----
NULL
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT + MIN( - CASE - 78 WHEN 15 THEN + 38 * + - 54 + + 35 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1461
SELECT + MIN ( - CASE - 78 WHEN 15 THEN + 38 * + - 54 + + 35 END )
----
NULL

query I rowsort
SELECT - 89 * + 76 * + 12 AS col0
----
-81168

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT - 7 DIV - + 3 col0
----
2

skipif mysql # not compatible
query I rowsort label-1463
SELECT - 7 / - + 3 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT + 13 * ( COUNT( * ) ) * 36
----
468

skipif mysql # not compatible
query I rowsort label-1464
SELECT + 13 * ( COUNT ( * ) ) * 36
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT + MIN( ALL + 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1465
SELECT + MIN ( ALL + 90 ) AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1466
SELECT + CAST( 56 AS SIGNED ) * + + CAST( NULL AS SIGNED ) AS col0, - 69 * + 26
----
NULL
-1794

skipif mysql # not compatible
query II rowsort label-1466
SELECT + CAST ( 56 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) AS col0, - 69 * + 26
----
NULL
-1794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1467
SELECT + COUNT( * ) * - 81 * - COUNT( * ), - CAST( NULL AS SIGNED ) * + 97 - - 26 * - - 69 - - - 1 col2
----
81
NULL

skipif mysql # not compatible
query II rowsort label-1467
SELECT + COUNT ( * ) * - 81 * - COUNT ( * ), - CAST ( NULL AS INTEGER ) * + 97 - - 26 * - - 69 - - - 1 col2
----
81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT + + 60 DIV + 78 * + NULLIF ( + - 47, + - 85 ) * - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1468
SELECT + + 60 / + 78 * + NULLIF ( + - 47, + - 85 ) * - 54 AS col1
----
0

query I rowsort
SELECT + - 85 * + - 7 AS col0
----
595

query I rowsort
SELECT - - 41 + + - 17 + + 45 + - 86 AS col2
----
-17

query I rowsort
SELECT + NULLIF ( + ( + 28 ), 57 ) col0
----
28

query I rowsort
SELECT + 85 * 86 - + 27 + 63 AS col1
----
7346

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT + + COUNT( + - 18 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1473
SELECT + + COUNT ( + - 18 ) AS col0
----
1

query I rowsort
SELECT + 3 * - - 10 * - ( - - 33 )
----
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-1475
SELECT ALL 73 * - + 67 + - COUNT( * ) col2, + 68
----
-4892
68

skipif mysql # not compatible
query II rowsort label-1475
SELECT ALL 73 * - + 67 + - COUNT ( * ) col2, + 68
----
-4892
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL - 20 * - COUNT( * ) col0
----
20

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL - 20 * - COUNT ( * ) col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT + + 9 - ( COUNT( + 92 ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1479
SELECT + + 9 - ( COUNT ( + 92 ) ) AS col1
----
8

query I rowsort
SELECT ALL - 0 * 25 + - 72 + - 38 * + 25 col2
----
-1022

query I rowsort
SELECT - + 59 + 93
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT DISTINCT + CAST( - - 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT + CAST ( - - 7 AS INTEGER )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL COUNT( * ) + - 24 + + 74 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL COUNT ( * ) + - 24 + + 74 AS col0
----
51

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

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

query I rowsort
SELECT + 97 * 16 * 51 AS col2
----
79152

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT + 56 + + MIN( + + 66 ) - + - MIN( - 48 )
----
74

skipif mysql # not compatible
query I rowsort label-1486
SELECT + 56 + + MIN ( + + 66 ) - + - MIN ( - 48 )
----
74

query I rowsort
SELECT - 62 - 41 AS col2
----
-103

query I rowsort
SELECT DISTINCT NULLIF ( - - 79, 29 ) + + - 70 + - + 62 AS col2
----
-53

query I rowsort
SELECT DISTINCT 73 + - 22 AS col0
----
51

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

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

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

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

query I rowsort
SELECT 33 + + 93 AS col1
----
126

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

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

query I rowsort
SELECT 72 * + 18 * - 26 AS col0
----
-33696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1495
SELECT 78 * - - CASE + - 54 WHEN - 68 THEN NULL ELSE + + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1495
SELECT 78 * - - CASE + - 54 WHEN - 68 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1496
SELECT DISTINCT - 10 - - 92 - + 31 * + 60 + - 17 * + COALESCE ( + - COUNT( * ), + - 9 DIV - 18 + - - 25 * - COUNT( DISTINCT 5 ) ) AS col0
----
-1761

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT - 10 - - 92 - + 31 * + 60 + - 17 * + COALESCE ( + - COUNT ( * ), + - 9 / - 18 + - - 25 * - COUNT ( DISTINCT 5 ) ) AS col0
----
-1761

query I rowsort
SELECT 62 * 97
----
6014

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT + 43 * COUNT( * ) + + + 56
----
99

skipif mysql # not compatible
query I rowsort label-1498
SELECT + 43 * COUNT ( * ) + + + 56
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1499
SELECT - CAST( + 54 AS SIGNED ), - 83 AS col2
----
-54
-83

skipif mysql # not compatible
query II rowsort label-1499
SELECT - CAST ( + 54 AS INTEGER ), - 83 AS col2
----
-54
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1500
SELECT 40 DIV - 10 + - 74 + + MIN( DISTINCT 77 ) * CASE - 1 WHEN + COUNT( 53 ) THEN - + MAX( - + CAST( + - 69 AS SIGNED ) ) ELSE + 57 DIV - 63 END DIV - 71 * 73 + + CASE - 2 WHEN + 95 THEN + 0 * - 72 WHEN - + 80 - + - COUNT( * ) + - 7 + + 60 THEN - 49 + + + 65 ELSE + - 95 END AS col0
----
-173

skipif mysql # not compatible
query I rowsort label-1500
SELECT 40 / - 10 + - 74 + + MIN ( DISTINCT 77 ) * CASE - 1 WHEN + COUNT ( 53 ) THEN - + MAX ( - + CAST ( + - 69 AS INTEGER ) ) ELSE + 57 / - 63 END / - 71 * 73 + + CASE - 2 WHEN + 95 THEN + 0 * - 72 WHEN - + 80 - + - COUNT ( * ) + - 7 + + 60 THEN - 49 + + + 65 ELSE + - 95 END AS col0
----
-173

query I rowsort
SELECT - 91 * + + 75 + + 54 - + 26 + + - 39 * + 23
----
-7694

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1502
SELECT 7 DIV - MIN( DISTINCT + 83 )
----
0

skipif mysql # not compatible
query I rowsort label-1502
SELECT 7 / - MIN ( DISTINCT + 83 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1503
SELECT DISTINCT + 43 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT + 43 / 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1504
SELECT + ( + COUNT( * ) ) * - 99 DIV + 36 + - - ( + - 35 )
----
-37

skipif mysql # not compatible
query I rowsort label-1504
SELECT + ( + COUNT ( * ) ) * - 99 / + 36 + - - ( + - 35 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1505
SELECT - CASE 28 WHEN 55 + + 38 THEN NULL WHEN + + 93 THEN - CAST( 64 AS SIGNED ) END / - - 57 * - + 84 + 85, COUNT( * ) - - 97 AS col0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-1505
SELECT - CASE 28 WHEN 55 + + 38 THEN NULL WHEN + + 93 THEN - CAST ( 64 AS INTEGER ) END / - - 57 * - + 84 + 85, COUNT ( * ) - - 97 AS col0
----
NULL
98

onlyif mysql # DIV for integer division: 
query II rowsort label-1506
SELECT 87 DIV - 96 + - - 21 + 33, 8 * + 57 AS col0
----
54
456

skipif mysql # not compatible
query II rowsort label-1506
SELECT 87 / - 96 + - - 21 + 33, 8 * + 57 AS col0
----
54
456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1507
SELECT DISTINCT - COALESCE ( + 69, - ( - 82 ) * 45 * + COUNT( * ) * 26 DIV - 70 * + - 19, + + 96, 72 * + 99 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT - COALESCE ( + 69, - ( - 82 ) * 45 * + COUNT ( * ) * 26 / - 70 * + - 19, + + 96, 72 * + 99 ) AS col1
----
-69

query I rowsort
SELECT DISTINCT - 91 + - 64 AS col1
----
-155

query I rowsort
SELECT ALL COALESCE ( + 47, - ( + 39 ) + - 90 ) + - ( 28 ) col1
----
19

query I rowsort
SELECT - 90 + - 99 + + 43
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL + SUM( DISTINCT - + 29 ) + + 82 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + SUM ( DISTINCT - + 29 ) + + 82 AS col1
----
53

query I rowsort
SELECT 8 + - + 18
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1513
SELECT COUNT( * ) * 25 DIV - ( - 60 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1513
SELECT COUNT ( * ) * 25 / - ( - 60 ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL COUNT ( * ) + - 37 * - 60 AS col1
----
2221

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT DISTINCT MIN( DISTINCT - 87 ) + - 41
----
-128

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT MIN ( DISTINCT - 87 ) + - 41
----
-128

query I rowsort
SELECT ALL + 95 + - - 81 AS col0
----
176

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT COUNT( * ) * 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1518
SELECT COUNT ( * ) * 44 AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1519
SELECT ALL 60 - 32 * 3 * - CAST( 23 AS SIGNED ) + COUNT( * ) DIV - CASE - MAX( ALL - 31 ) WHEN + MAX( - 1 ) + + 94 THEN NULL ELSE - 59 END AS col2
----
2268

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL 60 - 32 * 3 * - CAST ( 23 AS INTEGER ) + COUNT ( * ) / - CASE - MAX ( ALL - 31 ) WHEN + MAX ( - 1 ) + + 94 THEN NULL ELSE - 59 END AS col2
----
2268

query I rowsort
SELECT 72 * - 46
----
-3312

query I rowsort
SELECT 78 + - 99
----
-21

query I rowsort
SELECT DISTINCT 95 - 29
----
66

query I rowsort
SELECT ALL + 51 * 22 AS col0
----
1122

onlyif mysql # DIV for integer division: 
query I rowsort label-1524
SELECT DISTINCT 59 DIV - + 69 * + 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT 59 / - + 69 * + 14 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1525
SELECT + 46 AS col1, - 60 DIV + 1
----
46
-60

skipif mysql # not compatible
query II rowsort label-1525
SELECT + 46 AS col1, - 60 / + 1
----
46
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1526
SELECT COUNT( * ) - - - 79 DIV 5 col0
----
-14

skipif mysql # not compatible
query I rowsort label-1526
SELECT COUNT ( * ) - - - 79 / 5 col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT - MAX( + 66 ) * 23
----
-1518

skipif mysql # not compatible
query I rowsort label-1527
SELECT - MAX ( + 66 ) * 23
----
-1518

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT MAX( - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-1530
SELECT MAX ( - 37 ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-1531
SELECT ALL - + 55 AS col2, ( - 64 ) + + 2 DIV + 69 AS col0
----
-55
-64

skipif mysql # not compatible
query II rowsort label-1531
SELECT ALL - + 55 AS col2, ( - 64 ) + + 2 / + 69 AS col0
----
-55
-64

query I rowsort
SELECT ALL 94 + + 45 AS col0
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1533
SELECT DISTINCT + + 6 + + CAST( - CASE - COUNT( * ) WHEN - 5 THEN NULL WHEN + SUM( ALL + - 94 ) / AVG ( - - 84 ) - - COUNT( * ) * 93 THEN + COUNT( * ) - COUNT( * ) WHEN + 70 THEN NULL ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT + + 6 + + CAST ( - CASE - COUNT ( * ) WHEN - 5 THEN NULL WHEN + SUM ( ALL + - 94 ) / AVG ( - - 84 ) - - COUNT ( * ) * 93 THEN + COUNT ( * ) - COUNT ( * ) WHEN + 70 THEN NULL ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1534
SELECT ALL - - COALESCE ( - + 7, + - CAST( NULL AS SIGNED ) ) + - + 48
----
-55

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL - - COALESCE ( - + 7, + - CAST ( NULL AS INTEGER ) ) + - + 48
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL - CASE - COUNT( * ) WHEN COUNT( * ) THEN + 82 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - CASE - COUNT ( * ) WHEN COUNT ( * ) THEN + 82 END AS col0
----
NULL

query I rowsort
SELECT ALL + 4 + - 69
----
-65

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT - ( - + 8 ) + + CAST( NULL AS SIGNED ) * + CASE - - 13 WHEN - 44 + 75 THEN + 63 + + 80 END * + SUM( DISTINCT 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT - ( - + 8 ) + + CAST ( NULL AS INTEGER ) * + CASE - - 13 WHEN - 44 + 75 THEN + 63 + + 80 END * + SUM ( DISTINCT 42 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1539
SELECT ALL + 37 + - 55 * - - 9 + ( - CAST( NULL AS SIGNED ) ) AS col2, 33
----
NULL
33

skipif mysql # not compatible
query II rowsort label-1539
SELECT ALL + 37 + - 55 * - - 9 + ( - CAST ( NULL AS INTEGER ) ) AS col2, 33
----
NULL
33

query I rowsort
SELECT ALL - 46 * + + 32 * + 36 col1
----
-52992

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT DISTINCT - 88 * - - ( - - MIN( - 69 ) ) AS col1
----
6072

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT - 88 * - - ( - - MIN ( - 69 ) ) AS col1
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT COUNT( * ) + + 54 + - 92 col0
----
-37

skipif mysql # not compatible
query I rowsort label-1542
SELECT COUNT ( * ) + + 54 + - 92 col0
----
-37

query I rowsort
SELECT ALL + 27 + 25
----
52

query I rowsort
SELECT ALL 20 - - 78 AS col1
----
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1546
SELECT DISTINCT COALESCE ( - - 87, + 55 - + 59 ), + ( ( 11 ) ) * + CAST( NULL AS SIGNED ) + - - 42 + - 52 * + 68 + + 77 * + 39 / - 94 * + 95 * - 54 * CAST( - 42 AS SIGNED ) AS col1
----
87
NULL

skipif mysql # not compatible
query II rowsort label-1546
SELECT DISTINCT COALESCE ( - - 87, + 55 - + 59 ), + ( ( 11 ) ) * + CAST ( NULL AS INTEGER ) + - - 42 + - 52 * + 68 + + 77 * + 39 / - 94 * + 95 * - 54 * CAST ( - 42 AS INTEGER ) AS col1
----
87
NULL

query I rowsort
SELECT + 2 + + - 86 AS col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1548
SELECT DISTINCT COALESCE ( + - 97, + SUM( + 27 ) DIV - COUNT( * ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT COALESCE ( + - 97, + SUM ( + 27 ) / - COUNT ( * ) ) AS col1
----
-97

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

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

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

skipif mysql # not compatible
query I rowsort label-1550
SELECT - SUM ( DISTINCT - ( 67 ) )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1551
SELECT 48, COUNT( * ) + + 44 col1
----
48
45

skipif mysql # not compatible
query II rowsort label-1551
SELECT 48, COUNT ( * ) + + 44 col1
----
48
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1552
SELECT - COALESCE ( COUNT( * ), + + CAST( 18 AS SIGNED ) * - COUNT( * ) - - ( 36 ) + 1, - - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-1552
SELECT - COALESCE ( COUNT ( * ), + + CAST ( 18 AS INTEGER ) * - COUNT ( * ) - - ( 36 ) + 1, - - 1 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1553
SELECT + 54 - CAST( NULL AS SIGNED ) + + 94 * - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1553
SELECT + 54 - CAST ( NULL AS INTEGER ) + + 94 * - 14 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 36, 33 + + 23 + - 87 AS col0
----
36
-31

query I rowsort
SELECT ALL 18 * - - 45 AS col1
----
810

query III rowsort
SELECT DISTINCT 39, 73 * 26 - + + 95 AS col0, - - 64 AS col2
----
39
1803
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT + SUM( + 23 ) + - 84 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-1557
SELECT + SUM ( + 23 ) + - 84 AS col0
----
-61

query II rowsort
SELECT + 18, 24 AS col2
----
18
24

query I rowsort
SELECT + 82 + + 30
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT + ( + 1 ) - + MIN( + 74 )
----
-73

skipif mysql # not compatible
query I rowsort label-1560
SELECT + ( + 1 ) - + MIN ( + 74 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT - 8 * - MAX( DISTINCT + CASE 86 WHEN - 66 THEN - 14 ELSE NULL END ) + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT - 8 * - MAX ( DISTINCT + CASE 86 WHEN - 66 THEN - 14 ELSE NULL END ) + 34 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 74 * + 26 + - 47 + + 98 AS col0
----
1975

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1564
SELECT ALL - - 79 * + + 2 + COUNT( DISTINCT 66 ) + + 4 DIV + 62 col0, 23 col0
----
159
23

skipif mysql # not compatible
query II rowsort label-1564
SELECT ALL - - 79 * + + 2 + COUNT ( DISTINCT 66 ) + + 4 / + 62 col0, 23 col0
----
159
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT - COUNT( ALL + 38 ) * - 75 + + COUNT( * ) * + MIN( + 14 ) + + 26 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-1565
SELECT - COUNT ( ALL + 38 ) * - 75 + + COUNT ( * ) * + MIN ( + 14 ) + + 26 AS col0
----
115

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1567
SELECT - - 47 + - - 88 + + 59 + + - COUNT( * ) + - - 41 DIV - 61
----
193

skipif mysql # not compatible
query I rowsort label-1567
SELECT - - 47 + - - 88 + + 59 + + - COUNT ( * ) + - - 41 / - 61
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT + CASE + 8 WHEN 43 + 81 THEN + 15 * + 52 * - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1568
SELECT + CASE + 8 WHEN 43 + 81 THEN + 15 * + 52 * - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 73 * - - 76 + + - 25 + + 9
----
-5564

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1571
SELECT ALL - 79 * 37 + - 17 - 57 + + 97 * + CAST( 36 AS SIGNED )
----
495

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL - 79 * 37 + - 17 - 57 + + 97 * + CAST ( 36 AS INTEGER )
----
495

query II rowsort
SELECT ALL + + 17 AS col0, + 66
----
17
66

query I rowsort
SELECT ALL 49 * + 80 - - + 96 + - 41
----
3975

onlyif mysql # aggregate syntax: 
query II rowsort label-1574
SELECT - COUNT( * ) * + 88, COUNT( * ) * 23 + 68 AS col2
----
-88
91

skipif mysql # not compatible
query II rowsort label-1574
SELECT - COUNT ( * ) * + 88, COUNT ( * ) * 23 + 68 AS col2
----
-88
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1575
SELECT ALL + CASE - CAST( ( - + 19 ) AS SIGNED ) WHEN COUNT( * ) THEN NULL ELSE - 63 END
----
-63

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL + CASE - CAST ( ( - + 19 ) AS INTEGER ) WHEN COUNT ( * ) THEN NULL ELSE - 63 END
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT + COUNT( ALL - - ( + ( - - 96 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT + COUNT ( ALL - - ( + ( - - 96 ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1577
SELECT DISTINCT + MAX( ALL - 77 ) col2, COUNT( * )
----
-77
1

skipif mysql # not compatible
query II rowsort label-1577
SELECT DISTINCT + MAX ( ALL - 77 ) col2, COUNT ( * )
----
-77
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1578
SELECT - 91 DIV + 30 AS col0, 74
----
-3
74

skipif mysql # not compatible
query II rowsort label-1578
SELECT - 91 / + 30 AS col0, 74
----
-3
74

query I rowsort
SELECT - 96 * + 88 * 27 AS col0
----
-228096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1580
SELECT DISTINCT 61 * - CASE + ( + + 41 ) WHEN ( + - 65 ) THEN NULL ELSE - - 74 + 0 + - + CASE - CAST( 93 AS SIGNED ) WHEN 73 THEN + 74 + - + 67 + + + COUNT( * ) WHEN - ( - 44 ) THEN NULL ELSE - 32 END + 18 * - 68 END * + 83 * + + 80 - + + 45 * ( 19 ) + + - 91
----
452833774

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT 61 * - CASE + ( + + 41 ) WHEN ( + - 65 ) THEN NULL ELSE - - 74 + 0 + - + CASE - CAST ( 93 AS INTEGER ) WHEN 73 THEN + 74 + - + 67 + + + COUNT ( * ) WHEN - ( - 44 ) THEN NULL ELSE - 32 END + 18 * - 68 END * + 83 * + + 80 - + + 45 * ( 19 ) + + - 91
----
452833774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT DISTINCT - CAST( - 51 AS SIGNED ) * - 61 AS col0
----
-3111

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT - CAST ( - 51 AS INTEGER ) * - 61 AS col0
----
-3111

query I rowsort
SELECT ALL - 60 * + + 99 col0
----
-5940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1583
SELECT DISTINCT + 6 * - 80 * - 1 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT + 6 * - 80 * - 1 * - CAST ( NULL AS INTEGER ) col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1585
SELECT - COALESCE ( - COUNT( * ), 32 DIV - 80 ) * + - 73 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1585
SELECT - COALESCE ( - COUNT ( * ), 32 / - 80 ) * + - 73 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT ALL + 88 + 0 + + COALESCE ( - MAX( DISTINCT 90 ), 70 )
----
-2

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + 88 + 0 + + COALESCE ( - MAX ( DISTINCT 90 ), 70 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT - ( - MIN( DISTINCT 83 ) ) - + - 64
----
147

skipif mysql # not compatible
query I rowsort label-1587
SELECT - ( - MIN ( DISTINCT 83 ) ) - + - 64
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT - COUNT( ALL 75 ) * 14 * + 58 * + COUNT( ALL 33 ) AS col2
----
-812

skipif mysql # not compatible
query I rowsort label-1588
SELECT - COUNT ( ALL 75 ) * 14 * + 58 * + COUNT ( ALL 33 ) AS col2
----
-812

query I rowsort
SELECT ALL + - COALESCE ( - 55, - + 47 ) + - 41 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL + - 85 + - MAX( - 54 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL + - 85 + - MAX ( - 54 ) AS col0
----
-31

query I rowsort
SELECT DISTINCT 28 + + 73
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL - COUNT( * ) + - 89 * - - 53
----
-4718

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL - COUNT ( * ) + - 89 * - - 53
----
-4718

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT + + 26 * - 45 * + 54 * - NULLIF ( + - 15, + + COUNT( - 29 ) * + - 55 * - 51 )
----
-947700

skipif mysql # not compatible
query I rowsort label-1593
SELECT + + 26 * - 45 * + 54 * - NULLIF ( + - 15, + + COUNT ( - 29 ) * + - 55 * - 51 )
----
-947700

query I rowsort
SELECT DISTINCT 55 * 86 AS col1
----
4730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1595
SELECT DISTINCT + 5 DIV 37 - 65 - 36 + + 89 + + COUNT( * ) + - + 15
----
-26

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT + 5 / 37 - 65 - 36 + + 89 + + COUNT ( * ) + - + 15
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1596
SELECT ALL + 69 DIV + 8 + - ( CAST( - - NULLIF ( + 67, + 78 DIV + - 84 DIV + - 25 DIV - COUNT( * ) + CAST( 80 AS SIGNED ) + + 68 + + - ( - - 41 ) + + 68 ) AS SIGNED ) ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL + 69 / + 8 + - ( CAST ( - - NULLIF ( + 67, + 78 / + - 84 / + - 25 / - COUNT ( * ) + CAST ( 80 AS INTEGER ) + + 68 + + - ( - - 41 ) + + 68 ) AS INTEGER ) ) AS col1
----
-59

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

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

query I rowsort
SELECT DISTINCT + ( 15 ) * - 87 AS col2
----
-1305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1599
SELECT ALL 81 DIV + 54 - - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL 81 / + 54 - - + COUNT ( * )
----
2

query I rowsort
SELECT + - 99 * - 56 * + 6 AS col1
----
33264

query I rowsort
SELECT 49 * + 72 * + 94
----
331632

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL - + COUNT( + 48 ) * - + 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL - + COUNT ( + 48 ) * - + 28 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1603
SELECT - 82 DIV + - MIN( ALL + 86 ) + CASE - CAST( NULL AS DECIMAL ) WHEN + - COUNT( * ) THEN + 25 WHEN 50 * + - CAST( - 26 AS DECIMAL ) THEN - + 81 WHEN + 33 * + 41 THEN - 17 * + COUNT( * ) + + 14 WHEN + - CAST( NULL AS SIGNED ) THEN - 81 ELSE - + 69 END + - 92 AS col1
----
-161

skipif mysql # not compatible
query I rowsort label-1603
SELECT - 82 / + - MIN ( ALL + 86 ) + CASE - CAST ( NULL AS REAL ) WHEN + - COUNT ( * ) THEN + 25 WHEN 50 * + - CAST ( - 26 AS REAL ) THEN - + 81 WHEN + 33 * + 41 THEN - 17 * + COUNT ( * ) + + 14 WHEN + - CAST ( NULL AS INTEGER ) THEN - 81 ELSE - + 69 END + - 92 AS col1
----
-161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1604
SELECT ALL CAST( NULL AS SIGNED ) - 3 + + 57 * 85 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL CAST ( NULL AS INTEGER ) - 3 + + 57 * 85 col0
----
NULL

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

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

query II rowsort
SELECT + 51 AS col0, - 55 * - 73 AS col2
----
51
4015

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT COUNT( * ) + 90 + - NULLIF ( + 18, - 41 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1607
SELECT COUNT ( * ) + 90 + - NULLIF ( + 18, - 41 ) AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1608
SELECT 36 + 43 * - - CAST( NULL AS SIGNED ) + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT 36 + 43 * - - CAST ( NULL AS INTEGER ) + 60 AS col1
----
NULL

query I rowsort
SELECT 72 * - 80 * + 69
----
-397440

query I rowsort
SELECT ALL - 91 * - - 44
----
-4004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1611
SELECT DISTINCT 90 * + SUM( 19 ) AS col1, COUNT( * ) / - - 38 + - 61 * + + 93 / + COUNT( * ) + - + 92 + + CAST( NULL AS SIGNED )
----
1710
NULL

skipif mysql # not compatible
query II rowsort label-1611
SELECT DISTINCT 90 * + SUM ( 19 ) AS col1, COUNT ( * ) / - - 38 + - 61 * + + 93 / + COUNT ( * ) + - + 92 + + CAST ( NULL AS INTEGER )
----
1710
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT DISTINCT 8 * + SUM( + 28 ) AS col0
----
224

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT 8 * + SUM ( + 28 ) AS col0
----
224

query I rowsort
SELECT 55 + 20
----
75

query II rowsort
SELECT ALL - 26, - 88 + + CASE - 34 WHEN - 39 THEN - - 59 WHEN + - 95 THEN NULL END + 89 * - - 55 * - 66 col0
----
-26
NULL

query I rowsort
SELECT ALL 43 * + 90
----
3870

query I rowsort
SELECT 71 + - 91 + - 36
----
-56

query I rowsort
SELECT 45 * - 7 AS col0
----
-315

query I rowsort
SELECT 81 + + + 54 AS col2
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1619
SELECT 87 DIV ( + COUNT( * ) ) * + + 30 + + ( - 74 ) * 43
----
-572

skipif mysql # not compatible
query I rowsort label-1619
SELECT 87 / ( + COUNT ( * ) ) * + + 30 + + ( - 74 ) * 43
----
-572

query I rowsort
SELECT 90 + - + 7
----
83

query I rowsort
SELECT ALL + 2 + - 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL + MIN( ALL 32 ) + + 72
----
104

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL + MIN ( ALL 32 ) + + 72
----
104

query I rowsort
SELECT 71 * - 77 AS col1
----
-5467

query I rowsort
SELECT ALL - 29 * - 72 AS col0
----
2088

onlyif mysql # DIV for integer division: 
query I rowsort label-1625
SELECT 77 DIV + 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1625
SELECT 77 / + 44 AS col0
----
1

query I rowsort
SELECT ALL 35 + 72 + + - 81
----
26

query I rowsort
SELECT ALL + + 12 + 16
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1628
SELECT - NULLIF ( + 6, + + COUNT( * ) ) AS col0, + 7 AS col2
----
-6
7

skipif mysql # not compatible
query II rowsort label-1628
SELECT - NULLIF ( + 6, + + COUNT ( * ) ) AS col0, + 7 AS col2
----
-6
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1629
SELECT ALL + MAX( ALL - 71 ) * + 58 + + + 27 + - 78 + - 76 DIV - 49 AS col0
----
-4168

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL + MAX ( ALL - 71 ) * + 58 + + + 27 + - 78 + - 76 / - 49 AS col0
----
-4168

query I rowsort
SELECT - 13 * - - 86 * 70 AS col0
----
-78260

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT ALL - MAX( - 57 ) + - MAX( ALL 12 ) * - CASE 97 WHEN - 65 * + - 87 - + 6 THEN + 70 WHEN COUNT( * ) THEN NULL ELSE - 79 END * - 19 + - 85
----
17984

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL - MAX ( - 57 ) + - MAX ( ALL 12 ) * - CASE 97 WHEN - 65 * + - 87 - + 6 THEN + 70 WHEN COUNT ( * ) THEN NULL ELSE - 79 END * - 19 + - 85
----
17984

query I rowsort
SELECT + 66 + + - 6
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1633
SELECT - + MIN( + ( - 21 ) ) AS col2, 71 - - 32
----
21
103

skipif mysql # not compatible
query II rowsort label-1633
SELECT - + MIN ( + ( - 21 ) ) AS col2, 71 - - 32
----
21
103

query I rowsort
SELECT + 80 + - 22
----
58

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT + COALESCE ( + 82, 40 * + 72 - - - 55 + + + 51 + - 30 + 42 - - 26 * + ( COUNT( * ) ) * - 16 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1637
SELECT + COALESCE ( + 82, 40 * + 72 - - - 55 + + + 51 + - 30 + 42 - - 26 * + ( COUNT ( * ) ) * - 16 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT - 37 * + COUNT( * ) + + 33 + 24 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-1638
SELECT - 37 * + COUNT ( * ) + + 33 + 24 AS col0
----
20

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

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 82
----
NULL

query II rowsort
SELECT DISTINCT - 35 AS col1, - 73
----
-35
-73

query I rowsort
SELECT 94 + - - 7
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1642
SELECT + 74 * - COUNT( ALL + + 2 ) * COUNT( * ) + 70 + 70 + - CAST( - - 70 AS SIGNED ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1642
SELECT + 74 * - COUNT ( ALL + + 2 ) * COUNT ( * ) + 70 + 70 + - CAST ( - - 70 AS INTEGER ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1643
SELECT DISTINCT COALESCE ( 44, 19 ) * - NULLIF ( + + CAST( NULL AS SIGNED ), - SUM( + 56 ) * 97 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT COALESCE ( 44, 19 ) * - NULLIF ( + + CAST ( NULL AS INTEGER ), - SUM ( + 56 ) * 97 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT COUNT( * ) * + COUNT( * ) * + 75 + - 52 * + 12
----
-549

skipif mysql # not compatible
query I rowsort label-1644
SELECT COUNT ( * ) * + COUNT ( * ) * + 75 + - 52 * + 12
----
-549

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT + ( + 79 ) * - 22 - - + COUNT( * ) * 62 + + COUNT( * ) * + - 74 + + 25
----
-1725

skipif mysql # not compatible
query I rowsort label-1645
SELECT + ( + 79 ) * - 22 - - + COUNT ( * ) * 62 + + COUNT ( * ) * + - 74 + + 25
----
-1725

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1646
SELECT DISTINCT - CASE ( 78 ) WHEN + 29 THEN + CAST( ( + 92 ) AS SIGNED ) END AS col0, + 81 AS col0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-1646
SELECT DISTINCT - CASE ( 78 ) WHEN + 29 THEN + CAST ( ( + 92 ) AS INTEGER ) END AS col0, + 81 AS col0
----
NULL
81

query I rowsort
SELECT ALL 2 + 26
----
28

query I rowsort
SELECT DISTINCT 61 + + + 24 AS col0
----
85

query I rowsort
SELECT 42 * + 96
----
4032

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

skipif mysql # not compatible
query I rowsort label-1650
SELECT COUNT ( * ) / - 30
----
0

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

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

query I rowsort
SELECT ALL 95 + - 58 AS col2
----
37

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

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

query II rowsort
SELECT 90 * - - 12 AS col2, 83 * 73 AS col0
----
1080
6059

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1655
SELECT COALESCE ( + 81, + 88 ) * 87 * - 39 + COUNT( * ) - 21 - + 27 + + 69 + 97 * 10 + AVG ( DISTINCT - 28 ) / + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT COALESCE ( + 81, + 88 ) * 87 * - 39 + COUNT ( * ) - 21 - + 27 + + 69 + 97 * 10 + AVG ( DISTINCT - 28 ) / + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 89 * + + ( + + 21 )
----
1869

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT - SUM( DISTINCT - 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1657
SELECT - SUM ( DISTINCT - 79 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT DISTINCT 24 + + - 68 - COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT 24 + + - 68 - COUNT ( * ) AS col0
----
-45

query I rowsort
SELECT ALL 53 * - - 7
----
371

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT DISTINCT - CASE 37 WHEN - 37 THEN - 19 WHEN - - 65 * - - COUNT( * ) * - MIN( - - 20 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT - CASE 37 WHEN - 37 THEN - 19 WHEN - - 65 * - - COUNT ( * ) * - MIN ( - - 20 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT DISTINCT + 37 + - - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT + 37 + - - COUNT ( * )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1662
SELECT + AVG ( ALL CAST( NULL AS SIGNED ) ) + + 15 / + 46 * - - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1662
SELECT + AVG ( ALL CAST ( NULL AS INTEGER ) ) + + 15 / + 46 * - - 25 AS col2
----
NULL

query I rowsort
SELECT + 55 * - 7
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT MAX( ALL 1 ) * - 72
----
-72

skipif mysql # not compatible
query I rowsort label-1664
SELECT MAX ( ALL 1 ) * - 72
----
-72

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

query I rowsort
SELECT 91 + - 42
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1667
SELECT ALL - + 93 - + 60 - - CAST( + + 63 AS SIGNED ) - - + MAX( 3 ) * + 89 * 77
----
20469

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL - + 93 - + 60 - - CAST ( + + 63 AS INTEGER ) - - + MAX ( 3 ) * + 89 * 77
----
20469

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1669
SELECT - 0 DIV + ( + + 17 )
----
0

skipif mysql # not compatible
query I rowsort label-1669
SELECT - 0 / + ( + + 17 )
----
0

query I rowsort
SELECT ALL - + 1 - - - 50
----
-51

query I rowsort
SELECT - 27 * 94
----
-2538

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT ALL - 69 * + - MAX( ALL - + 3 )
----
-207

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL - 69 * + - MAX ( ALL - + 3 )
----
-207

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT + COALESCE ( 56, - 9 DIV 29 * - 20, + 50 )
----
56

skipif mysql # not compatible
query I rowsort label-1673
SELECT + COALESCE ( 56, - 9 / 29 * - 20, + 50 )
----
56

query I rowsort
SELECT - 86 * + 48 - 72
----
-4200

query I rowsort
SELECT ALL - 10 * + + 0 col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1677
SELECT ALL - 47 * + - 32 * + 72 + - 21 * + COUNT( * ) DIV - 94
----
108288

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL - 47 * + - 32 * + 72 + - 21 * + COUNT ( * ) / - 94
----
108288

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT NULLIF ( - + 56, - 94 - + COUNT( ALL 52 ) + + + 62 * - + 55 + - - CASE 94 WHEN - - 77 THEN NULL WHEN + 42 THEN - 70 WHEN 1 THEN NULL END )
----
-56

skipif mysql # not compatible
query I rowsort label-1678
SELECT NULLIF ( - + 56, - 94 - + COUNT ( ALL 52 ) + + + 62 * - + 55 + - - CASE 94 WHEN - - 77 THEN NULL WHEN + 42 THEN - 70 WHEN 1 THEN NULL END )
----
-56

query I rowsort
SELECT ALL 17 * - 67 * 78 + 15 AS col2
----
-88827

query I rowsort
SELECT ALL + 65 * - 6
----
-390

query I rowsort
SELECT - 54 + - 66 AS col2
----
-120

query I rowsort
SELECT DISTINCT + 47 * - NULLIF ( - 25, 42 ) col0
----
1175

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

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

query I rowsort
SELECT ALL 10 * - 72 + 50 * + + 60 AS col1
----
2280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1685
SELECT DISTINCT 47 - NULLIF ( CAST( - SUM( + 93 ) AS SIGNED ), - CASE - COUNT( * ) WHEN - - 61 THEN NULL WHEN + 20 + - 91 THEN + 13 * - 12 + + + ( - COUNT( * ) ) - + + COALESCE ( + - COUNT( * ), + - 96 / + 22 + + 34 ) + + 55 ELSE NULL END ) * - 79 + - ( - - 57 ) AS col1
----
-7357

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT 47 - NULLIF ( CAST ( - SUM ( + 93 ) AS INTEGER ), - CASE - COUNT ( * ) WHEN - - 61 THEN NULL WHEN + 20 + - 91 THEN + 13 * - 12 + + + ( - COUNT ( * ) ) - + + COALESCE ( + - COUNT ( * ), + - 96 / + 22 + + 34 ) + + 55 ELSE NULL END ) * - 79 + - ( - - 57 ) AS col1
----
-7357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1686
SELECT ALL COUNT( * ) / CASE - - 8 WHEN - 62 / + CASE - COALESCE ( - 39, - 7 ) WHEN + + 94 THEN + 40 ELSE NULL END + + CASE - 85 WHEN - 53 + - ( AVG ( ALL - 17 ) ) THEN - + CASE 67 WHEN 49 THEN NULL WHEN + 40 + + - 1 * 29 THEN NULL ELSE 95 END WHEN + - 69 THEN ( + + 67 ) ELSE NULL END + 92 * MAX( - - 9 ) + 87 + 78 * + CAST( - 88 AS SIGNED ) * + 38 / 58 - 88 * + 88 + - + COUNT( * ) + + - 6 THEN - 91 - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL COUNT ( * ) / CASE - - 8 WHEN - 62 / + CASE - COALESCE ( - 39, - 7 ) WHEN + + 94 THEN + 40 ELSE NULL END + + CASE - 85 WHEN - 53 + - ( AVG ( ALL - 17 ) ) THEN - + CASE 67 WHEN 49 THEN NULL WHEN + 40 + + - 1 * 29 THEN NULL ELSE 95 END WHEN + - 69 THEN ( + + 67 ) ELSE NULL END + 92 * MAX ( - - 9 ) + 87 + 78 * + CAST ( - 88 AS INTEGER ) * + 38 / 58 - 88 * + 88 + - + COUNT ( * ) + + - 6 THEN - 91 - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1687
SELECT + 48 + + CAST( MAX( 1 ) AS SIGNED ) * - - 88 col1, 10
----
136
10

skipif mysql # not compatible
query II rowsort label-1687
SELECT + 48 + + CAST ( MAX ( 1 ) AS INTEGER ) * - - 88 col1, 10
----
136
10

query I rowsort
SELECT + + 19 * + 17 - - 18 + - - 68
----
409

query I rowsort
SELECT - + 14 * - 8 * - 58 + + 34 AS col1
----
-6462

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT DISTINCT CASE - 95 WHEN + - AVG ( + - 58 ) THEN NULL WHEN - 26 * COUNT( * ) THEN + 13 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT CASE - 95 WHEN + - AVG ( + - 58 ) THEN NULL WHEN - 26 * COUNT ( * ) THEN + 13 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 1 * + - 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT DISTINCT - 81 * 81 * - - 75 - - 76 + + - COUNT( * ) + + - 88
----
-492088

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT - 81 * 81 * - - 75 - - 76 + + - COUNT ( * ) + + - 88
----
-492088

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

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

skipif mysql # not compatible
query I rowsort label-1694
SELECT - - MIN ( DISTINCT 63 )
----
63

query I rowsort
SELECT - + 62 + + 78
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1696
SELECT - - 87 * - + NULLIF ( + SUM( CAST( + 34 AS SIGNED ) ), + - ( 46 ) + + + 18 ) DIV - COALESCE ( + COUNT( * ), - ( - 59 ) - - - COUNT( * ) )
----
2958

skipif mysql # not compatible
query I rowsort label-1696
SELECT - - 87 * - + NULLIF ( + SUM ( CAST ( + 34 AS INTEGER ) ), + - ( 46 ) + + + 18 ) / - COALESCE ( + COUNT ( * ), - ( - 59 ) - - - COUNT ( * ) )
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT + 64 + COUNT( * ) + + - 28 * - 35
----
1045

skipif mysql # not compatible
query I rowsort label-1697
SELECT + 64 + COUNT ( * ) + + - 28 * - 35
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT MIN( DISTINCT 99 ) col0
----
99

skipif mysql # not compatible
query I rowsort label-1698
SELECT MIN ( DISTINCT 99 ) col0
----
99

query I rowsort
SELECT ALL - + 98 + + 16 AS col2
----
-82

query I rowsort
SELECT + 78 + - 24 + - 70 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT ALL + 32 * + ( + + COUNT( DISTINCT + 91 ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL + 32 * + ( + + COUNT ( DISTINCT + 91 ) ) AS col2
----
32

query I rowsort
SELECT DISTINCT + NULLIF ( 62, + - 31 )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT ALL 57 DIV - + 21 + 66
----
64

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL 57 / - + 21 + 66
----
64

query I rowsort
SELECT ALL - 33 * + 43 * - 3 AS col2
----
4257

query I rowsort
SELECT ALL + 78 * - 92 AS col0
----
-7176

onlyif mysql # aggregate syntax: 
query II rowsort label-1706
SELECT + 84 * + 62 * - - CASE - 93 WHEN - - 28 THEN NULL ELSE + + 17 END, MIN( DISTINCT 37 ) AS col1
----
88536
37

skipif mysql # not compatible
query II rowsort label-1706
SELECT + 84 * + 62 * - - CASE - 93 WHEN - - 28 THEN NULL ELSE + + 17 END, MIN ( DISTINCT 37 ) AS col1
----
88536
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1707
SELECT - CASE - 98 WHEN 27 * + SUM( ALL + 34 ) + + 98 THEN NULL WHEN COUNT( * ) * MAX( ALL 29 ) + + + CAST( 11 AS SIGNED ) THEN + 52 * - 93 * - COUNT( * ) - - - 45 ELSE - + 55 + + ( - 86 ) END + - - 93 AS col0
----
234

skipif mysql # not compatible
query I rowsort label-1707
SELECT - CASE - 98 WHEN 27 * + SUM ( ALL + 34 ) + + 98 THEN NULL WHEN COUNT ( * ) * MAX ( ALL 29 ) + + + CAST ( 11 AS INTEGER ) THEN + 52 * - 93 * - COUNT ( * ) - - - 45 ELSE - + 55 + + ( - 86 ) END + - - 93 AS col0
----
234

query I rowsort
SELECT DISTINCT + NULLIF ( + - 58, 62 )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1709
SELECT ALL 94 DIV - - 92 + + + 17 + 60
----
78

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL 94 / - - 92 + + + 17 + 60
----
78

query II rowsort
SELECT + 16 col0, - 83 AS col0
----
16
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1711
SELECT ALL 0 DIV 53 + - 46 + - COUNT( * ) * + + NULLIF ( 0, - 23 ) * + - SUM( DISTINCT - 3 ) + + 90 + - 98 * - 41 * - + ( - 54 ) + + 69 AS col0
----
217085

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL 0 / 53 + - 46 + - COUNT ( * ) * + + NULLIF ( 0, - 23 ) * + - SUM ( DISTINCT - 3 ) + + 90 + - 98 * - 41 * - + ( - 54 ) + + 69 AS col0
----
217085

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT - CASE - COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN CASE - 90 WHEN + - 86 THEN - + COUNT( * ) END THEN - + CASE 41 WHEN - + 64 * + COUNT( * ) - - 82 * + 61 + + 82 * - 74 - - 52 THEN 7 WHEN 64 + - + 67 THEN NULL END ELSE NULL END * + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1712
SELECT - CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN CASE - 90 WHEN + - 86 THEN - + COUNT ( * ) END THEN - + CASE 41 WHEN - + 64 * + COUNT ( * ) - - 82 * + 61 + + 82 * - 74 - - 52 THEN 7 WHEN 64 + - + 67 THEN NULL END ELSE NULL END * + 10 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT - COUNT( * ) * - 70 + + 30
----
100

skipif mysql # not compatible
query I rowsort label-1713
SELECT - COUNT ( * ) * - 70 + + 30
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL + ( - MIN( 25 ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL + ( - MIN ( 25 ) ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query III rowsort label-1715
SELECT + 73 col1, + 20, - 20 * + SUM( + - 85 ) AS col0
----
73
20
1700

skipif mysql # not compatible
query III rowsort label-1715
SELECT + 73 col1, + 20, - 20 * + SUM ( + - 85 ) AS col0
----
73
20
1700

onlyif mysql # aggregate syntax: 
query II rowsort label-1716
SELECT DISTINCT + COUNT( * ) AS col2, + SUM( ALL - 95 )
----
1
-95

skipif mysql # not compatible
query II rowsort label-1716
SELECT DISTINCT + COUNT ( * ) AS col2, + SUM ( ALL - 95 )
----
1
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1717
SELECT ALL - COUNT( * ) * 23 + - - CAST( - 99 AS SIGNED ) + - - 90
----
-32

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - COUNT ( * ) * 23 + - - CAST ( - 99 AS INTEGER ) + - - 90
----
-32

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

query II rowsort
SELECT + 79 AS col0, + 30
----
79
30

query I rowsort
SELECT DISTINCT ( + 45 ) * 64 - - 26 AS col1
----
2906

onlyif mysql # aggregate syntax: 
query II rowsort label-1721
SELECT ALL + 70 AS col0, SUM( DISTINCT ( - 79 ) ) * COUNT( * ) AS col2
----
70
-79

skipif mysql # not compatible
query II rowsort label-1721
SELECT ALL + 70 AS col0, SUM ( DISTINCT ( - 79 ) ) * COUNT ( * ) AS col2
----
70
-79

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1723
SELECT - CAST( - - COALESCE ( - 6, - 56 ) AS SIGNED ) * - 7
----
-42

skipif mysql # not compatible
query I rowsort label-1723
SELECT - CAST ( - - COALESCE ( - 6, - 56 ) AS INTEGER ) * - 7
----
-42

query I rowsort
SELECT + 80 * - + 57 col0
----
-4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1725
SELECT ALL + CASE - 7 WHEN + + ( MIN( DISTINCT - CAST( + 26 AS SIGNED ) ) ) * - 13 + - 92 THEN + 42 * 65 - - 15 / + + 78 + + 34 - - 17 - - 60 + + 43 * + ( - 26 ) + + NULLIF ( - 59, - 26 ) + 74 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL + CASE - 7 WHEN + + ( MIN ( DISTINCT - CAST ( + 26 AS INTEGER ) ) ) * - 13 + - 92 THEN + 42 * 65 - - 15 / + + 78 + + 34 - - 17 - - 60 + + 43 * + ( - 26 ) + + NULLIF ( - 59, - 26 ) + 74 END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT + 43 * + COUNT( DISTINCT 57 ) + + - 70 - - 66 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-1726
SELECT + 43 * + COUNT ( DISTINCT 57 ) + + - 70 - - 66 AS col0
----
39

query I rowsort
SELECT COALESCE ( - - 71, - 81 * + 73 + + 91 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1728
SELECT - CAST( NULL AS SIGNED ) + + MIN( DISTINCT - 46 ) - - 86 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT - CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT - 46 ) - - 86 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 37 - + 50 - - + 21 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL - 43 * 58 * - SUM( 56 ) - + - SUM( ALL - 62 ) + - COUNT( * ) AS col1
----
139601

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL - 43 * 58 * - SUM ( 56 ) - + - SUM ( ALL - 62 ) + - COUNT ( * ) AS col1
----
139601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT DISTINCT COALESCE ( - COUNT( * ), - + CAST( + + 23 AS SIGNED ) + + - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT COALESCE ( - COUNT ( * ), - + CAST ( + + 23 AS INTEGER ) + + - 62 )
----
-1

query I rowsort
SELECT ALL - + 22 * 79 * - 70
----
121660

query II rowsort
SELECT 55 AS col1, + 61 AS col0
----
55
61

onlyif mysql # DIV for integer division: 
query II rowsort label-1734
SELECT ALL + 36, - 71 DIV + 1 AS col0
----
36
-71

skipif mysql # not compatible
query II rowsort label-1734
SELECT ALL + 36, - 71 / + 1 AS col0
----
36
-71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT CAST( + 73 AS SIGNED ) + + + 48 + - 21
----
100

skipif mysql # not compatible
query I rowsort label-1736
SELECT CAST ( + 73 AS INTEGER ) + + + 48 + - 21
----
100

query I rowsort
SELECT ( + - 35 ) - - COALESCE ( 9, + 8 * + + 38 + - - 18 )
----
-26

query II rowsort
SELECT ALL - 13 AS col2, 22 * - + 80 AS col1
----
-13
-1760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1739
SELECT CAST( CAST( 75 AS SIGNED ) AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-1739
SELECT CAST ( CAST ( 75 AS INTEGER ) AS INTEGER )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT - COUNT( * ) DIV ( 36 ) + - 85 col2
----
-85

skipif mysql # not compatible
query I rowsort label-1740
SELECT - COUNT ( * ) / ( 36 ) + - 85 col2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1741
SELECT ALL CAST( - + 30 AS SIGNED ) + + 43
----
13

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL CAST ( - + 30 AS INTEGER ) + + 43
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT COUNT( * ) * 65
----
65

skipif mysql # not compatible
query I rowsort label-1742
SELECT COUNT ( * ) * 65
----
65

query I rowsort
SELECT 92 * + 29 col0
----
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT DISTINCT + + 17 + - + COUNT( * ) + + 5 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT + + 17 + - + COUNT ( * ) + + 5 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ALL - MIN( ALL + 22 ) + - 22 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL - MIN ( ALL + 22 ) + - 22 AS col2
----
-44

query I rowsort
SELECT ALL 20 * + + 95 * + 32 * + 2 AS col1
----
121600

query I rowsort
SELECT DISTINCT 24 + + + 30 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT ALL + 70 + + MIN( + 47 ) AS col1
----
117

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL + 70 + + MIN ( + 47 ) AS col1
----
117

query I rowsort
SELECT ALL - 74 + 7 + + + 41 AS col1
----
-26

query I rowsort
SELECT DISTINCT + 19 + 64 AS col0
----
83

query I rowsort
SELECT DISTINCT 38 + + - 86 * + 35 + + 10 col0
----
-2962

query I rowsort
SELECT ALL 73 + + 19 col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1753
SELECT ALL - 2 DIV - 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL - 2 / - 33 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT - 84 * NULLIF ( 3, + ( - SUM( DISTINCT + 97 ) ) )
----
-252

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT - 84 * NULLIF ( 3, + ( - SUM ( DISTINCT + 97 ) ) )
----
-252

query I rowsort
SELECT ALL - 75 - + + 72 - + 50
----
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT 96 - - COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1756
SELECT 96 - - COUNT ( * ) AS col0
----
97

query I rowsort
SELECT 6 - + 19
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT DISTINCT - SUM( + 45 ) * + 58 AS col2
----
-2610

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT - SUM ( + 45 ) * + 58 AS col2
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT 12 * 4 - + - 38 + 3 + - COUNT( - - 87 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-1759
SELECT 12 * 4 - + - 38 + 3 + - COUNT ( - - 87 ) AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1760
SELECT COUNT( - - 24 ) DIV - + 65 + - 56 + - ( - COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-1760
SELECT COUNT ( - - 24 ) / - + 65 + - 56 + - ( - COUNT ( * ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT COUNT( * ) * - 80 * - 59 AS col0
----
4720

skipif mysql # not compatible
query I rowsort label-1761
SELECT COUNT ( * ) * - 80 * - 59 AS col0
----
4720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1762
SELECT + 15 * - + ( + 70 ) * - 23 * - 96 * - CAST( NULL AS SIGNED ) + AVG ( 41 ) + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT + 15 * - + ( + 70 ) * - 23 * - 96 * - CAST ( NULL AS INTEGER ) + AVG ( 41 ) + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT ALL - CASE + + 19 WHEN 10 * 60 * 65 - + + ( + 2 ) THEN NULL WHEN COUNT( * ) THEN - - 26 ELSE - + 9 END AS col0
----
9

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL - CASE + + 19 WHEN 10 * 60 * 65 - + + ( + 2 ) THEN NULL WHEN COUNT ( * ) THEN - - 26 ELSE - + 9 END AS col0
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT COUNT( * ) * - 74
----
-74

skipif mysql # not compatible
query I rowsort label-1765
SELECT COUNT ( * ) * - 74
----
-74

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

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

query II rowsort
SELECT ALL - ( 25 ), + 0 col1
----
-25
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1768
SELECT 25 * + 67 * + + 73 * - - CASE - 63 WHEN - + 93 * - COUNT( * ) THEN COALESCE ( + COUNT( * ), - 34 * 77, - 49 DIV - CAST( NULL AS SIGNED ) + + 83 + 75 ) * + - 59 - - 25 - - 97 ELSE - 96 END AS col0
----
-11738400

skipif mysql # not compatible
query I rowsort label-1768
SELECT 25 * + 67 * + + 73 * - - CASE - 63 WHEN - + 93 * - COUNT ( * ) THEN COALESCE ( + COUNT ( * ), - 34 * 77, - 49 / - CAST ( NULL AS INTEGER ) + + 83 + 75 ) * + - 59 - - 25 - - 97 ELSE - 96 END AS col0
----
-11738400

query I rowsort
SELECT 69 * - 96 * + 1
----
-6624

query II rowsort
SELECT ALL - - 94 + - 94, ( - - 12 ) col1
----
0
12

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

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL + COUNT ( * ) + - 10 AS col1
----
-9

query I rowsort
SELECT + 33 + - 90 * - 69 * + 61 AS col0
----
378843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1773
SELECT DISTINCT - COUNT( * ) + + + 10 DIV + 85 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - COUNT ( * ) + + + 10 / + 85 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT DISTINCT MAX( ALL - 35 ) + - + 12 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT MAX ( ALL - 35 ) + - + 12 AS col2
----
-47

query I rowsort
SELECT ALL - + 52 + - - ( + 91 ) * - 50 + - - 79 AS col2
----
-4523

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1778
SELECT COUNT( + 25 ) + + 69 + COUNT( * ) + + 97 * - 22 + - + SUM( ALL + 71 ) * + 31 + - 58 * - 57 AS col1, - COUNT( * )
----
-958
-1

skipif mysql # not compatible
query II rowsort label-1778
SELECT COUNT ( + 25 ) + + 69 + COUNT ( * ) + + 97 * - 22 + - + SUM ( ALL + 71 ) * + 31 + - 58 * - 57 AS col1, - COUNT ( * )
----
-958
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1779
SELECT - 0 AS col0, - CAST( - - SUM( - + 89 ) AS SIGNED )
----
0
89

skipif mysql # not compatible
query II rowsort label-1779
SELECT - 0 AS col0, - CAST ( - - SUM ( - + 89 ) AS INTEGER )
----
0
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1780
SELECT 61 + - + 57 + CAST( 57 AS SIGNED ) + MIN( 48 ) + - 46 DIV - MAX( - + 16 ) AS col1
----
107

skipif mysql # not compatible
query I rowsort label-1780
SELECT 61 + - + 57 + CAST ( 57 AS INTEGER ) + MIN ( 48 ) + - 46 / - MAX ( - + 16 ) AS col1
----
107

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

skipif mysql # not compatible
query I rowsort label-1781
SELECT NULLIF ( + - ( - 11 ), 14 ) * - COUNT ( * ) * - 70
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT MIN( + 44 ) + COUNT( * ) - + + 88 + + 55 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1782
SELECT MIN ( + 44 ) + COUNT ( * ) - + + 88 + + 55 AS col0
----
12

query II rowsort
SELECT ALL 59, + 76 AS col0
----
59
76

query I rowsort
SELECT ALL 25 * 3
----
75

query I rowsort
SELECT 80 + - - 77 - - 10
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT + COUNT( 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1786
SELECT + COUNT ( 37 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1788
SELECT 43 DIV + NULLIF ( - + 47, + + 27 ) + MAX( 85 ), 65 - - 82 DIV + - 22 AS col2
----
85
62

skipif mysql # not compatible
query II rowsort label-1788
SELECT 43 / + NULLIF ( - + 47, + + 27 ) + MAX ( 85 ), 65 - - 82 / + - 22 AS col2
----
85
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT 77 * 14 DIV - - 19
----
56

skipif mysql # not compatible
query I rowsort label-1789
SELECT 77 * 14 / - - 19
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT COUNT( + 3 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1791
SELECT COUNT ( + 3 ) AS col1
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT 31 DIV - + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1793
SELECT 31 / - + 89 AS col1
----
0

query I rowsort
SELECT ALL + CASE - 30 WHEN + 74 THEN + 77 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT COUNT( 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1795
SELECT COUNT ( 90 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1796
SELECT DISTINCT + 12 AS col0, COUNT( DISTINCT + + 66 ) + + 44 + + ( + - ( ( ( 30 ) ) ) ) AS col0
----
12
15

skipif mysql # not compatible
query II rowsort label-1796
SELECT DISTINCT + 12 AS col0, COUNT ( DISTINCT + + 66 ) + + 44 + + ( + - ( ( ( 30 ) ) ) ) AS col0
----
12
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1797
SELECT DISTINCT + COALESCE ( - 67, 22 * + - 25, + COUNT( * ) DIV - + 65 - - CAST( - + 27 AS SIGNED ) * 32, - 59 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT + COALESCE ( - 67, 22 * + - 25, + COUNT ( * ) / - + 65 - - CAST ( - + 27 AS INTEGER ) * 32, - 59 ) AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1798
SELECT DISTINCT - - 89 * + 7 + + + 97 + - CAST( MAX( - CASE - 36 WHEN + + 78 THEN + CASE + - 37 WHEN - 63 THEN 3 + 73 WHEN - + 63 * 68 THEN NULL END WHEN NULLIF ( - 13, - 27 ) THEN + - 94 ELSE NULL END ) AS SIGNED ) - - NULLIF ( + 58, + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT - - 89 * + 7 + + + 97 + - CAST ( MAX ( - CASE - 36 WHEN + + 78 THEN + CASE + - 37 WHEN - 63 THEN 3 + 73 WHEN - + 63 * 68 THEN NULL END WHEN NULLIF ( - 13, - 27 ) THEN + - 94 ELSE NULL END ) AS INTEGER ) - - NULLIF ( + 58, + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT DISTINCT - 93 DIV 24 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT - 93 / 24 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1800
SELECT + ( - - COUNT( - 18 ) ) - + 17, + 71 AS col0
----
-16
71

skipif mysql # not compatible
query II rowsort label-1800
SELECT + ( - - COUNT ( - 18 ) ) - + 17, + 71 AS col0
----
-16
71

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

query I rowsort
SELECT DISTINCT - 44 + - - 45 + - 8
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL ( 73 ) + + ( 97 ) * 46 * - 24 * - COUNT( * ) * - + COUNT( * ) * + 62 AS col1
----
-6639383

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL ( 73 ) + + ( 97 ) * 46 * - 24 * - COUNT ( * ) * - + COUNT ( * ) * + 62 AS col1
----
-6639383

query II rowsort
SELECT + 86 col2, - 47 * + + 50 AS col2
----
86
-2350

query III rowsort
SELECT - - 14 * + 36 - + 36 AS col2, + 52 * 12 * 97 AS col1, ( + 8 ) AS col0
----
468
60528
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT DISTINCT COUNT( * ) + - 11 * + 57 + COUNT( + 40 ) AS col1
----
-625

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT COUNT ( * ) + - 11 * + 57 + COUNT ( + 40 ) AS col1
----
-625

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT DISTINCT + 61 + COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT + 61 + COUNT ( * ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1808
SELECT DISTINCT - COUNT( * ) + MAX( 90 ) AS col2, 13 col1
----
89
13

skipif mysql # not compatible
query II rowsort label-1808
SELECT DISTINCT - COUNT ( * ) + MAX ( 90 ) AS col2, 13 col1
----
89
13

query I rowsort
SELECT ALL + + 79 + - 93 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL - - 16 + + NULLIF ( + 40, - 88 ) * + + COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - - 16 + + NULLIF ( + 40, - 88 ) * + + COUNT ( * ) AS col2
----
56

query II rowsort
SELECT - + 55 AS col0, + 14 - + + 70 * - 0 + - 69 AS col2
----
-55
-55

query I rowsort
SELECT - - ( 89 ) + 15 * + + 66 AS col0
----
1079

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT DISTINCT - + 50 * COUNT( * ) + 80 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT - + 50 * COUNT ( * ) + 80 AS col1
----
30

query I rowsort
SELECT ALL - 19 + + - 17
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT - COUNT( * ) * + 67 * - + 53 * + 50 * + 78
----
13848900

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT - COUNT ( * ) * + 67 * - + 53 * + 50 * + 78
----
13848900

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

skipif mysql # not compatible
query II rowsort label-1816
SELECT ALL ( - 77 ) AS col0, CAST ( NULL AS INTEGER ) + COUNT ( * ) * + - 0 AS col2
----
-77
NULL

query I rowsort
SELECT ALL - 74 - - ( + + 49 )
----
-25

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

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

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

query I rowsort
SELECT DISTINCT + 2 * - + 33
----
-66

query I rowsort
SELECT - 84 * - 55
----
4620

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1822
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), 59 ) / 72, - 18 AS col2
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-1822
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), 59 ) / 72, - 18 AS col2
----
NULL
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT DISTINCT + 66 DIV 39 * - 24 * - + 56 AS col1
----
1344

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT + 66 / 39 * - 24 * - + 56 AS col1
----
1344

query I rowsort
SELECT + 95 * - 64 col1
----
-6080

query I rowsort
SELECT + 54 * + 65 AS col1
----
3510

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT ALL CASE - COUNT( * ) WHEN - 62 THEN NULL WHEN + 31 THEN NULL ELSE - + 53 END * + - ( - 49 )
----
-2597

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL CASE - COUNT ( * ) WHEN - 62 THEN NULL WHEN + 31 THEN NULL ELSE - + 53 END * + - ( - 49 )
----
-2597

query I rowsort
SELECT + 59 * 6 * + 12 AS col0
----
4248

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT - 99 DIV + 48 + 51
----
49

skipif mysql # not compatible
query I rowsort label-1828
SELECT - 99 / + 48 + 51
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT DISTINCT + COUNT( DISTINCT + CASE - 71 WHEN 16 THEN + 1 / - - 75 ELSE NULL END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT + COUNT ( DISTINCT + CASE - 71 WHEN 16 THEN + 1 / - - 75 ELSE NULL END ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1831
SELECT + 94 * + COALESCE ( + NULLIF ( - + ( - + 42 ), - COALESCE ( + + COALESCE ( - + NULLIF ( 90, 83 ), + COALESCE ( COALESCE ( + + 51, + 84 * 64 + + + 97 * + CAST( - + 25 AS SIGNED ), + 82 ), 61 * + - 67 + - - 92 ) ), + CAST( - 70 AS SIGNED ), - CAST( NULL AS SIGNED ) ) ), ( + 12 ) + + 18, COUNT( * ) DIV 46 + + 99 )
----
3948

skipif mysql # not compatible
query I rowsort label-1831
SELECT + 94 * + COALESCE ( + NULLIF ( - + ( - + 42 ), - COALESCE ( + + COALESCE ( - + NULLIF ( 90, 83 ), + COALESCE ( COALESCE ( + + 51, + 84 * 64 + + + 97 * + CAST ( - + 25 AS INTEGER ), + 82 ), 61 * + - 67 + - - 92 ) ), + CAST ( - 70 AS INTEGER ), - CAST ( NULL AS INTEGER ) ) ), ( + 12 ) + + 18, COUNT ( * ) / 46 + + 99 )
----
3948

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1832
SELECT ALL - + 46 * CAST( + + 22 AS SIGNED ) + - 83 AS col2, 42
----
-1095
42

skipif mysql # not compatible
query II rowsort label-1832
SELECT ALL - + 46 * CAST ( + + 22 AS INTEGER ) + - 83 AS col2, 42
----
-1095
42

query I rowsort
SELECT + 26 - - + 38
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT ALL - ( ( + - ( - - ( - 57 ) ) ) ) * + - CASE 42 WHEN - - 40 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 7 END AS col1
----
-399

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL - ( ( + - ( - - ( - 57 ) ) ) ) * + - CASE 42 WHEN - - 40 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 7 END AS col1
----
-399

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT - 56 * 63 + - COALESCE ( - + 91, - - 7 + + 14 ) DIV 1
----
-3437

skipif mysql # not compatible
query I rowsort label-1835
SELECT - 56 * 63 + - COALESCE ( - + 91, - - 7 + + 14 ) / 1
----
-3437

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT - - CASE + ( 42 ) WHEN ( + MIN( ALL - - 1 ) ) * COUNT( * ) THEN + ( ( - + ( + ( + + 81 ) ) ) ) * 87 ELSE NULL END * - 88 - - + 59 / + - ( + 47 ) * - + 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT - - CASE + ( 42 ) WHEN ( + MIN ( ALL - - 1 ) ) * COUNT ( * ) THEN + ( ( - + ( + ( + + 81 ) ) ) ) * 87 ELSE NULL END * - 88 - - + 59 / + - ( + 47 ) * - + 22 col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1838
SELECT - CAST( ( - - CASE - 48 WHEN - 25 / + MAX( + 87 ) * COUNT( * ) + - + 42 THEN + 16 / 11 END ) AS SIGNED ) + + + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT - CAST ( ( - - CASE - 48 WHEN - 25 / + MAX ( + 87 ) * COUNT ( * ) + - + 42 THEN + 16 / 11 END ) AS INTEGER ) + + + 73 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT ALL + 25 * 50 * - + 37 * + 27 * 10 - + + NULLIF ( CAST( NULL AS SIGNED ), - - MAX( DISTINCT - 40 ) / - CASE - 1 WHEN 61 * 96 / 85 THEN - 60 WHEN 94 THEN NULL END / + 39 + 68 + 17 ) + - 61 + - 97 + - COUNT( DISTINCT - + 47 ) / + + 26 * - - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL + 25 * 50 * - + 37 * + 27 * 10 - + + NULLIF ( CAST ( NULL AS INTEGER ), - - MAX ( DISTINCT - 40 ) / - CASE - 1 WHEN 61 * 96 / 85 THEN - 60 WHEN 94 THEN NULL END / + 39 + 68 + 17 ) + - 61 + - 97 + - COUNT ( DISTINCT - + 47 ) / + + 26 * - - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT + + SUM( 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1840
SELECT + + SUM ( 66 ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1841
SELECT - 69 * - + CAST( NULL AS SIGNED ) + - + 13 + + 43 + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT - 69 * - + CAST ( NULL AS INTEGER ) + - + 13 + + 43 + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT ALL - + ( - + CASE + COUNT( * ) WHEN + ( 17 ) - + + 43 THEN - - 26 ELSE - ( + - 29 ) END ) * - + 24 + - COUNT( * ) AS col0
----
-697

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL - + ( - + CASE + COUNT ( * ) WHEN + ( 17 ) - + + 43 THEN - - 26 ELSE - ( + - 29 ) END ) * - + 24 + - COUNT ( * ) AS col0
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL - ( - + MAX( + 89 ) ) * + 56 + - ( - 71 ) + + 80 AS col2
----
5135

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL - ( - + MAX ( + 89 ) ) * + 56 + - ( - 71 ) + + 80 AS col2
----
5135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT ALL + CAST( NULL AS SIGNED ) * 82 + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL + CAST ( NULL AS INTEGER ) * 82 + 47 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT ALL + 88 * - COUNT( + 24 )
----
-88

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL + 88 * - COUNT ( + 24 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1846
SELECT ALL + - CAST( + CASE - + 52 WHEN - 72 THEN + 15 * COUNT( * ) + + - CASE - COUNT( * ) WHEN - COUNT( * ) * + 66 / + 29 / + 83 * + 31 THEN NULL ELSE + 82 END + + NULLIF ( + COALESCE ( 65, CAST( COUNT( * ) AS SIGNED ) * ( + 50 ), - + COUNT( * ) ), - + 65 ) WHEN - 92 THEN NULL END AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL + - CAST ( + CASE - + 52 WHEN - 72 THEN + 15 * COUNT ( * ) + + - CASE - COUNT ( * ) WHEN - COUNT ( * ) * + 66 / + 29 / + 83 * + 31 THEN NULL ELSE + 82 END + + NULLIF ( + COALESCE ( 65, CAST ( COUNT ( * ) AS INTEGER ) * ( + 50 ), - + COUNT ( * ) ), - + 65 ) WHEN - 92 THEN NULL END AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT - MIN( DISTINCT - 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-1847
SELECT - MIN ( DISTINCT - 64 ) AS col2
----
64

query I rowsort
SELECT DISTINCT - 38 * 41 - + - 61
----
-1497

query I rowsort
SELECT ALL + 96 * + 36
----
3456

query I rowsort
SELECT + 38 * + - 54 AS col1
----
-2052

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL NULLIF ( - 8, - + COUNT( * ) - - 76 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL NULLIF ( - 8, - + COUNT ( * ) - - 76 ) AS col0
----
-8

query I rowsort
SELECT ALL 61 * 25 col1
----
1525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1853
SELECT + CAST( NULL AS SIGNED ) + + + 57 + - NULLIF ( + 79, + COUNT( * ) ) + - + MAX( DISTINCT + 68 ) * + AVG ( + - 0 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1853
SELECT + CAST ( NULL AS INTEGER ) + + + 57 + - NULLIF ( + 79, + COUNT ( * ) ) + - + MAX ( DISTINCT + 68 ) * + AVG ( + - 0 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT ALL ( - CASE + SUM( 44 ) WHEN + 21 THEN + - 7 - + - 69 + + - 20 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL ( - CASE + SUM ( 44 ) WHEN + 21 THEN + - 7 - + - 69 + + - 20 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL MAX( + + NULLIF ( + ( - 5 ), - 31 + + - 17 + + + 64 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL MAX ( + + NULLIF ( + ( - 5 ), - 31 + + - 17 + + + 64 ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT - 78 + - SUM( - 87 )
----
9

skipif mysql # not compatible
query I rowsort label-1856
SELECT - 78 + - SUM ( - 87 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1857
SELECT + ( - CAST( - + 17 AS SIGNED ) ) + - COUNT( * ) + - + ( + + 55 )
----
-39

skipif mysql # not compatible
query I rowsort label-1857
SELECT + ( - CAST ( - + 17 AS INTEGER ) ) + - COUNT ( * ) + - + ( + + 55 )
----
-39

query I rowsort
SELECT DISTINCT + 71 * - 96 AS col1
----
-6816

query I rowsort
SELECT - 66 + - + 60 col0
----
-126

query I rowsort
SELECT - 71 - + - 21 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT COUNT( * ) * 43
----
43

skipif mysql # not compatible
query I rowsort label-1861
SELECT COUNT ( * ) * 43
----
43

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - 67 ) + + 17 AS col1
----
-50

query I rowsort
SELECT ALL - 81 + - 31
----
-112

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT 24 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1867
SELECT 24 / + 90 AS col2
----
0

query I rowsort
SELECT ALL + 54 + + 44 AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1869
SELECT - 70 DIV + - 95 * 25 * + 18 DIV + 15 + - 85 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-1869
SELECT - 70 / + - 95 * 25 * + 18 / + 15 + - 85 AS col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1870
SELECT DISTINCT 23 DIV 27 * + ( 53 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT 23 / 27 * + ( 53 ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 79 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1872
SELECT + 68 DIV - 96 + 2 AS col2, + 28 + - 82 * 40
----
2
-3252

skipif mysql # not compatible
query II rowsort label-1872
SELECT + 68 / - 96 + 2 AS col2, + 28 + - 82 * 40
----
2
-3252

query I rowsort
SELECT + ( - + 26 ) + - - 21
----
-5

query I rowsort
SELECT ALL + - 12 + 62 + + 93 + - 94 + - 33 + + ( 7 ) * - 95 * + - 64 AS col0
----
42576

onlyif mysql # DIV for integer division: 
query I rowsort label-1875
SELECT DISTINCT - 27 DIV + - 21
----
1

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT - 27 / + - 21
----
1

query I rowsort
SELECT ALL 34 * - 43 AS col0
----
-1462

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

skipif mysql # not compatible
query I rowsort label-1877
SELECT - ( + 18 ) / 64 / + COUNT ( * ) + - 73
----
-73

query I rowsort
SELECT ALL + 3 + 69
----
72

query I rowsort
SELECT - 4 * 66 + + 22 + - + 98 + + - 76
----
-416

query I rowsort
SELECT ALL + 42 * + ( + - 58 ) AS col1
----
-2436

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1881
SELECT CAST( NULL AS SIGNED ) AS col2, - 93
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-1881
SELECT CAST ( NULL AS INTEGER ) AS col2, - 93
----
NULL
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1882
SELECT + CAST( NULL AS DECIMAL ) col0, ( - + 79 ) AS col0
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-1882
SELECT + CAST ( NULL AS REAL ) col0, ( - + 79 ) AS col0
----
NULL
-79

query I rowsort
SELECT ALL - 67 - 87 col1
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-1884
SELECT + 49 * + 94 + - ( + 50 ) - - + 13 DIV 73 AS col2
----
4556

skipif mysql # not compatible
query I rowsort label-1884
SELECT + 49 * + 94 + - ( + 50 ) - - + 13 / 73 AS col2
----
4556

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT 61 * + MAX( ALL + 59 ) * + + 91
----
327509

skipif mysql # not compatible
query I rowsort label-1885
SELECT 61 * + MAX ( ALL + 59 ) * + + 91
----
327509

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1887
SELECT ALL - - 53 - + + CASE + COUNT( * ) WHEN 13 THEN NULL WHEN MAX( ALL - - 32 ) + + 11 + + - 2 THEN + - 36 DIV 99 ELSE - - COUNT( ALL + 46 ) END + - 33 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL - - 53 - + + CASE + COUNT ( * ) WHEN 13 THEN NULL WHEN MAX ( ALL - - 32 ) + + 11 + + - 2 THEN + - 36 / 99 ELSE - - COUNT ( ALL + 46 ) END + - 33 AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1888
SELECT ALL COALESCE ( - ( + 92 ), - NULLIF ( + 2, + 85 - + CAST( - 75 AS SIGNED ) ) / - + 51 ) * CASE - 32 WHEN + + NULLIF ( - 97, - NULLIF ( - 14, + 68 * - + 9 * + COUNT( * ) ) + + MIN( + - 20 ) + - + COUNT( DISTINCT 42 ) * COALESCE ( + COUNT( * ), + COALESCE ( 37, - 27 + ( + 8 ) + + 60 * + - MAX( + 58 ) + + + 56 + - - 96, - 30 ) + - - SUM( + 45 ) * 82 ) + + COUNT( * ) ) + - 96 THEN - 73 + + 1 + + + COUNT( * ) * - 52 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL COALESCE ( - ( + 92 ), - NULLIF ( + 2, + 85 - + CAST ( - 75 AS INTEGER ) ) / - + 51 ) * CASE - 32 WHEN + + NULLIF ( - 97, - NULLIF ( - 14, + 68 * - + 9 * + COUNT ( * ) ) + + MIN ( + - 20 ) + - + COUNT ( DISTINCT 42 ) * COALESCE ( + COUNT ( * ), + COALESCE ( 37, - 27 + ( + 8 ) + + 60 * + - MAX ( + 58 ) + + + 56 + - - 96, - 30 ) + - - SUM ( + 45 ) * 82 ) + + COUNT ( * ) ) + - 96 THEN - 73 + + 1 + + + COUNT ( * ) * - 52 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT DISTINCT 49 * - + 22 * - - CASE - MIN( DISTINCT 58 ) WHEN - 59 / - - ( - 53 ) + - - 3 * COUNT( * ) THEN + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT 49 * - + 22 * - - CASE - MIN ( DISTINCT 58 ) WHEN - 59 / - - ( - 53 ) + - - 3 * COUNT ( * ) THEN + 99 END
----
NULL

query I rowsort
SELECT 9 - + 50 + 5 * 52 AS col2
----
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1891
SELECT ALL 66 * + + 5 * + 34 * CASE - 83 WHEN - 13 * - + 84 THEN - CAST( NULL AS SIGNED ) + 83 + 0 + - 90 * + CAST( NULL AS SIGNED ) + - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL 66 * + + 5 * + 34 * CASE - 83 WHEN - 13 * - + 84 THEN - CAST ( NULL AS INTEGER ) + 83 + 0 + - 90 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 16 * + 66 * - + 97
----
-102432

query I rowsort
SELECT DISTINCT 1 * 87 col2
----
87

query I rowsort
SELECT 31 + - 41
----
-10

query I rowsort
SELECT ALL 36 + - ( 74 )
----
-38

query I rowsort
SELECT 5 * + 96 * 32
----
15360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1897
SELECT ALL - COUNT( * ) DIV - + 21 * + CASE - 46 WHEN + + COALESCE ( 18, + 13 DIV COUNT( * ), 8 ) THEN + 12 WHEN - + 83 THEN NULL ELSE 29 DIV 3 + 57 * 42 END * - 26 AS col0, 4 * 79 AS col1
----
0
316

skipif mysql # not compatible
query II rowsort label-1897
SELECT ALL - COUNT ( * ) / - + 21 * + CASE - 46 WHEN + + COALESCE ( 18, + 13 / COUNT ( * ), 8 ) THEN + 12 WHEN - + 83 THEN NULL ELSE 29 / 3 + 57 * 42 END * - 26 AS col0, 4 * 79 AS col1
----
0
316

query II rowsort
SELECT ALL 28 col1, 67 AS col2
----
28
67

query I rowsort
SELECT ( - 44 ) + 25 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT ALL ( - + COUNT( * ) ) + + - SUM( + 67 ) + - 66 * 93 + - + 94 * COUNT( * )
----
-6300

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL ( - + COUNT ( * ) ) + + - SUM ( + 67 ) + - 66 * 93 + - + 94 * COUNT ( * )
----
-6300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1901
SELECT ALL 39 col2, - NULLIF ( 24, 73 + 78 * COUNT( * ) ) - + 3 DIV - + 53 + - 43 * + ( - + CAST( + AVG ( ALL 80 ) AS SIGNED ) )
----
39
3416

skipif mysql # not compatible
query II rowsort label-1901
SELECT ALL 39 col2, - NULLIF ( 24, 73 + 78 * COUNT ( * ) ) - + 3 / - + 53 + - 43 * + ( - + CAST ( + AVG ( ALL 80 ) AS INTEGER ) )
----
39
3416

query II rowsort
SELECT - - 59, + 19 AS col2
----
59
19

query I rowsort
SELECT - 61 - 33 * - - 66
----
-2239

onlyif mysql # aggregate syntax: 
query II rowsort label-1904
SELECT + - 89, - SUM( - 8 ) AS col2
----
-89
8

skipif mysql # not compatible
query II rowsort label-1904
SELECT + - 89, - SUM ( - 8 ) AS col2
----
-89
8

query I rowsort
SELECT ALL + - 85 + + ( + 39 ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1906
SELECT - + CAST( - 76 AS SIGNED ) * - MIN( ALL 6 ) + 31 + - COUNT( * ) AS col0
----
-426

skipif mysql # not compatible
query I rowsort label-1906
SELECT - + CAST ( - 76 AS INTEGER ) * - MIN ( ALL 6 ) + 31 + - COUNT ( * ) AS col0
----
-426

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT - 89 DIV + ( - - 67 ) + + ( + 36 )
----
35

skipif mysql # not compatible
query I rowsort label-1907
SELECT - 89 / + ( - - 67 ) + + ( + 36 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1908
SELECT DISTINCT ( + + 53 ) * + - CASE ( - 58 ) WHEN 75 * - 76 THEN + - CAST( NULL AS SIGNED ) ELSE NULL END * - 18 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT ( + + 53 ) * + - CASE ( - 58 ) WHEN 75 * - 76 THEN + - CAST ( NULL AS INTEGER ) ELSE NULL END * - 18 + - + COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT - + 67 AS col0, 86 * + - 47 + + 50 AS col2
----
-67
-3992

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

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

query I rowsort
SELECT 77 * + 3 - 28
----
203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1912
SELECT 38 * - 7 * - ( - CAST( NULL AS SIGNED ) ) + - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT 38 * - 7 * - ( - CAST ( NULL AS INTEGER ) ) + - 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT + + 44 * 10 * 10 + - 10 + COUNT( * ) + - + 96 * + 63
----
-1657

skipif mysql # not compatible
query I rowsort label-1913
SELECT + + 44 * 10 * 10 + - 10 + COUNT ( * ) + - + 96 * + 63
----
-1657

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1915
SELECT ALL - 28, + CAST( - CAST( - 44 AS SIGNED ) AS SIGNED ) AS col1
----
-28
44

skipif mysql # not compatible
query II rowsort label-1915
SELECT ALL - 28, + CAST ( - CAST ( - 44 AS INTEGER ) AS INTEGER ) AS col1
----
-28
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1916
SELECT 87 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT 87 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ( + - 45 ) * - 10 AS col2
----
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1918
SELECT + 22 * 3 + COUNT( * ) + 69 / MAX( ( + + 22 ) ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1918
SELECT + 22 * 3 + COUNT ( * ) + 69 / MAX ( ( + + 22 ) ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1919
SELECT ALL - 30 * 15 AS col0, 24 * - COUNT( * ) * 18 * + 39
----
-450
-16848

skipif mysql # not compatible
query II rowsort label-1919
SELECT ALL - 30 * 15 AS col0, 24 * - COUNT ( * ) * 18 * + 39
----
-450
-16848

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT + 27 * - COUNT( * ) + + + 50 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1920
SELECT + 27 * - COUNT ( * ) + + + 50 AS col2
----
23

query I rowsort
SELECT ALL - COALESCE ( 40, - - 20 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT + 98 * - - 79 * + + COUNT( 87 ) AS col0
----
7742

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + 98 * - - 79 * + + COUNT ( 87 ) AS col0
----
7742

query I rowsort
SELECT DISTINCT + 80 * - 1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT ( - + COUNT( ALL ( - 71 ) ) ) * - - 5 + + 53 * - 18
----
-959

skipif mysql # not compatible
query I rowsort label-1924
SELECT ( - + COUNT ( ALL ( - 71 ) ) ) * - - 5 + + 53 * - 18
----
-959

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1925
SELECT ALL 13 DIV - MIN( DISTINCT - + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL 13 / - MIN ( DISTINCT - + 93 )
----
0

query I rowsort
SELECT ALL - 53 + 57 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1927
SELECT - MAX( ALL 2 ) AS col2, 56 + 12 col1
----
-2
68

skipif mysql # not compatible
query II rowsort label-1927
SELECT - MAX ( ALL 2 ) AS col2, 56 + 12 col1
----
-2
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1928
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) * - - 77 - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) * - - 77 - 15 AS col1
----
NULL

query I rowsort
SELECT ALL 94 + + 64
----
158

query I rowsort
SELECT + 0 * + 88 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT + COUNT( 46 ) + + - 28 + - + 58
----
-85

skipif mysql # not compatible
query I rowsort label-1931
SELECT + COUNT ( 46 ) + + - 28 + - + 58
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT + 76 + - - ( - - COUNT( * ) ) + 30 + + SUM( - 5 ) * + 58 * + + 43 * 87 AS col1
----
-1084783

skipif mysql # not compatible
query I rowsort label-1932
SELECT + 76 + - - ( - - COUNT ( * ) ) + 30 + + SUM ( - 5 ) * + 58 * + + 43 * 87 AS col1
----
-1084783

query I rowsort
SELECT + 41 + 3 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT + - COUNT( * ) + + ( + 49 ) * 60 * + 99 * - - 14
----
4074839

skipif mysql # not compatible
query I rowsort label-1934
SELECT + - COUNT ( * ) + + ( + 49 ) * 60 * + 99 * - - 14
----
4074839

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT - + 16 - + - COUNT( - 64 ) + - 16 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-1935
SELECT - + 16 - + - COUNT ( - 64 ) + - 16 AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1936
SELECT 81 DIV 43 + + COALESCE ( 67, - 55 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1936
SELECT 81 / 43 + + COALESCE ( 67, - 55 ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1937
SELECT - ( CAST( - - 42 AS SIGNED ) ) + 24 + 70 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1937
SELECT - ( CAST ( - - 42 AS INTEGER ) ) + 24 + 70 AS col0
----
52

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

query I rowsort
SELECT ALL - + 65 * - 77
----
5005

query I rowsort
SELECT ALL 80 * 90 AS col0
----
7200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1941
SELECT DISTINCT + MIN( + 35 ), CAST( NULL AS DECIMAL ) * - - 60 AS col0
----
35
NULL

skipif mysql # not compatible
query II rowsort label-1941
SELECT DISTINCT + MIN ( + 35 ), CAST ( NULL AS REAL ) * - - 60 AS col0
----
35
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1943
SELECT COALESCE ( + + CAST( NULL AS SIGNED ), COALESCE ( - + 52, + - ( 33 ) * - 20 + + COUNT( * ), 0 ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-1943
SELECT COALESCE ( + + CAST ( NULL AS INTEGER ), COALESCE ( - + 52, + - ( 33 ) * - 20 + + COUNT ( * ), 0 ) ) AS col0
----
-52

query I rowsort
SELECT 30 * + 87 - 48
----
2562

query I rowsort
SELECT DISTINCT + 53 * + - 10 + + - 34 * - 47 * - 5 * ( - 63 ) AS col2
----
502840

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1946
SELECT DISTINCT + ( + + COUNT( - 19 ) ) * CASE + + 72 WHEN - 50 + CAST( NULL AS DECIMAL ) THEN + 2 * - 17 - + 55 WHEN 86 THEN + COUNT( * ) WHEN - - 58 * - 80 * - COUNT( ALL 6 ) THEN 29 / - - 31 - + + 63 - 44 END + + 60 + + ( 49 ) * + MIN( ALL 49 ) * + + ( 52 ) - - 40 / - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + ( + + COUNT ( - 19 ) ) * CASE + + 72 WHEN - 50 + CAST ( NULL AS REAL ) THEN + 2 * - 17 - + 55 WHEN 86 THEN + COUNT ( * ) WHEN - - 58 * - 80 * - COUNT ( ALL 6 ) THEN 29 / - - 31 - + + 63 - 44 END + + 60 + + ( 49 ) * + MIN ( ALL 49 ) * + + ( 52 ) - - 40 / - 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL 7 + - 56 + + 56 * + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL 7 + - 56 + + 56 * + COUNT ( * )
----
7

query I rowsort
SELECT - 13 * + 14 * + 0
----
0

query I rowsort
SELECT DISTINCT - 49 + ( + 28 )
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - CASE 40 WHEN + + MAX( DISTINCT - 44 ) THEN - 5 + 48 + - MIN( - 66 ) + + + 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT - CASE 40 WHEN + + MAX ( DISTINCT - 44 ) THEN - 5 + 48 + - MIN ( - 66 ) + + + 32 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT ALL - NULLIF ( + - 74, COUNT( * ) ) * 28 * COUNT( * ) AS col2
----
2072

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL - NULLIF ( + - 74, COUNT ( * ) ) * 28 * COUNT ( * ) AS col2
----
2072

query I rowsort
SELECT ALL - ( 25 ) + - 92 * + + 13 AS col2
----
-1221

query I rowsort
SELECT - 77 * + + 68
----
-5236

query II rowsort
SELECT 68 AS col2, ( + + 57 ) AS col0
----
68
57

onlyif mysql # aggregate syntax: 
query II rowsort label-1956
SELECT ALL 83 AS col2, MIN( - 16 ) AS col1
----
83
-16

skipif mysql # not compatible
query II rowsort label-1956
SELECT ALL 83 AS col2, MIN ( - 16 ) AS col1
----
83
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT - MAX( ALL - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-1957
SELECT - MAX ( ALL - 76 )
----
76

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT DISTINCT - 48 DIV + + 47 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT - 48 / + + 47 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT - COUNT( * ) - NULLIF ( 74, 63 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT - COUNT ( * ) - NULLIF ( 74, 63 ) AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1962
SELECT + MAX( NULLIF ( 63, - CAST( + - 13 AS SIGNED ) ) ) * + + COALESCE ( - + 36, + - 78 * - 4 * 0, 55 ) AS col0, 92 AS col2
----
-2268
92

skipif mysql # not compatible
query II rowsort label-1962
SELECT + MAX ( NULLIF ( 63, - CAST ( + - 13 AS INTEGER ) ) ) * + + COALESCE ( - + 36, + - 78 * - 4 * 0, 55 ) AS col0, 92 AS col2
----
-2268
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1963
SELECT ALL - 4 DIV + 55 + + 23
----
23

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL - 4 / + 55 + + 23
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT - 36 + MIN( CAST( 87 AS SIGNED ) )
----
51

skipif mysql # not compatible
query I rowsort label-1964
SELECT - 36 + MIN ( CAST ( 87 AS INTEGER ) )
----
51

query II rowsort
SELECT - + NULLIF ( 99, - 35 ) AS col1, 76 + NULLIF ( 71, - - 51 * - 52 + 57 * - 87 + 49 )
----
-99
147

query I rowsort
SELECT - + 66 + + ( + 45 ) + - 75 * 39
----
-2946

onlyif mysql # aggregate syntax: 
query II rowsort label-1967
SELECT ALL + - 12 AS col1, 1 * 50 + + - 7 * COUNT( * ) AS col0
----
-12
43

skipif mysql # not compatible
query II rowsort label-1967
SELECT ALL + - 12 AS col1, 1 * 50 + + - 7 * COUNT ( * ) AS col0
----
-12
43

query I rowsort
SELECT DISTINCT 51 * + + 21
----
1071

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT DISTINCT - 13 DIV 50 + ( - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT - 13 / 50 + ( - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-1970
SELECT + NULLIF ( + CASE COALESCE ( - 27, 45 * + - NULLIF ( MAX( 83 ), AVG ( 45 ) * 5 * - - 34 ) * - - 90 * COUNT( * ) + + 41 * 53 + 37 ) WHEN 15 * - 18 - + + 45 + + 51 THEN + - 40 END, - - 33 ) - COUNT( * ) AS col0, + COUNT( * ) * + - 37
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-1970
SELECT + NULLIF ( + CASE COALESCE ( - 27, 45 * + - NULLIF ( MAX ( 83 ), AVG ( 45 ) * 5 * - - 34 ) * - - 90 * COUNT ( * ) + + 41 * 53 + 37 ) WHEN 15 * - 18 - + + 45 + + 51 THEN + - 40 END, - - 33 ) - COUNT ( * ) AS col0, + COUNT ( * ) * + - 37
----
NULL
-37

query I rowsort
SELECT - 54 * 14 + 9
----
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT - 79 * + MAX( + + 64 ) AS col0
----
-5056

skipif mysql # not compatible
query I rowsort label-1972
SELECT - 79 * + MAX ( + + 64 ) AS col0
----
-5056

onlyif mysql # DIV for integer division: 
query I rowsort label-1973
SELECT ALL + 42 DIV - 80 + - 85 + + + 28 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL + 42 / - 80 + - 85 + + + 28 AS col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1974
SELECT ALL COALESCE ( - + 13, - + 14 * 29 - + MAX( DISTINCT - 30 ) + - + 65, COUNT( ALL 72 ) ) + + - 7 + - - CAST( NULL AS SIGNED ) * + 51, 5 AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-1974
SELECT ALL COALESCE ( - + 13, - + 14 * 29 - + MAX ( DISTINCT - 30 ) + - + 65, COUNT ( ALL 72 ) ) + + - 7 + - - CAST ( NULL AS INTEGER ) * + 51, 5 AS col2
----
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT ALL 49 + + - COUNT( * ) + + 93 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL 49 + + - COUNT ( * ) + + 93 AS col1
----
141

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1977
SELECT ALL - CASE 0 WHEN COUNT( * ) THEN - + 33 / - - NULLIF ( 32, - + 22 ) * CAST( - 34 AS DECIMAL ) - + + 54 + + 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - CASE 0 WHEN COUNT ( * ) THEN - + 33 / - - NULLIF ( 32, - + 22 ) * CAST ( - 34 AS REAL ) - + + 54 + + 44 ELSE NULL END
----
NULL

query I rowsort
SELECT 31 * 6 * + 44 col1
----
8184

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT 5 + - ( - SUM( - 53 ) ) - - + 80 * + 77 * - CASE + 32 WHEN 95 THEN NULL ELSE + + 32 END * - - 94 AS col1
----
-18529328

skipif mysql # not compatible
query I rowsort label-1979
SELECT 5 + - ( - SUM ( - 53 ) ) - - + 80 * + 77 * - CASE + 32 WHEN 95 THEN NULL ELSE + + 32 END * - - 94 AS col1
----
-18529328

query II rowsort
SELECT 44 + + + 20 AS col1, 67 AS col2
----
64
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1981
SELECT 34 DIV 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1981
SELECT 34 / 54 AS col0
----
0

query I rowsort
SELECT 40 + + 29
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1983
SELECT ALL + 91 DIV - 59
----
-1

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL + 91 / - 59
----
-1

query I rowsort
SELECT 50 + 81 + - - 49
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL - + 66 * - - 29 - COUNT( * )
----
-1915

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL - + 66 * - - 29 - COUNT ( * )
----
-1915

query I rowsort
SELECT + 63 + + 95
----
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1987
SELECT 36 DIV + - 22 + 92 + - + COUNT( * ) * - 98 * + 2 + - 61 + 66 AS col2
----
292

skipif mysql # not compatible
query I rowsort label-1987
SELECT 36 / + - 22 + 92 + - + COUNT ( * ) * - 98 * + 2 + - 61 + 66 AS col2
----
292

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1988
SELECT CAST( NULL AS DECIMAL ) + + 39 + + + ( + + 98 ) * + NULLIF ( - 66, - 78 * + 34 * COUNT( * ) * - + ( + 79 ) * + 67 * 79 ) + - + 11 / + 39 + + + NULLIF ( - NULLIF ( 41, - 99 * + - 58 ), 77 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT CAST ( NULL AS REAL ) + + 39 + + + ( + + 98 ) * + NULLIF ( - 66, - 78 * + 34 * COUNT ( * ) * - + ( + 79 ) * + 67 * 79 ) + - + 11 / + 39 + + + NULLIF ( - NULLIF ( 41, - 99 * + - 58 ), 77 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1989
SELECT - 30 * + 26 * + 37 + 74 AS col0, 51 * + COUNT( * ) AS col1
----
-28786
51

skipif mysql # not compatible
query II rowsort label-1989
SELECT - 30 * + 26 * + 37 + 74 AS col0, 51 * + COUNT ( * ) AS col1
----
-28786
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT CASE + - ( - COUNT( - - 99 ) ) WHEN 41 THEN + 78 + - + 78 ELSE + + 5 * - 50 * + + 52 + + 93 * - + 45 END col1
----
-17185

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT CASE + - ( - COUNT ( - - 99 ) ) WHEN 41 THEN + 78 + - + 78 ELSE + + 5 * - 50 * + + 52 + + 93 * - + 45 END col1
----
-17185

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT DISTINCT + + MAX( - + 12 ) + - 31 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT + + MAX ( - + 12 ) + - 31 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT 85 * + + CASE 56 WHEN - + COUNT( * ) + - 86 / - + 98 * + 34 * - 53 THEN - NULLIF ( - 45, + COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT 85 * + + CASE 56 WHEN - + COUNT ( * ) + - 86 / - + 98 * + 34 * - 53 THEN - NULLIF ( - 45, + COUNT ( * ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1993
SELECT ALL - + MAX( ALL - - 86 ) AS col0, - 82 AS col1
----
-86
-82

skipif mysql # not compatible
query II rowsort label-1993
SELECT ALL - + MAX ( ALL - - 86 ) AS col0, - 82 AS col1
----
-86
-82

query I rowsort
SELECT ALL + 68 + + + 77
----
145

query I rowsort
SELECT DISTINCT + 99 + + 48 AS col1
----
147

query I rowsort
SELECT + 20 + + + 62 AS col0
----
82

query I rowsort
SELECT ALL 3 + - 48
----
-45

query I rowsort
SELECT DISTINCT - 49 * + 8 AS col1
----
-392

query I rowsort
SELECT DISTINCT + 21 + + 14
----
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT DISTINCT NULLIF ( - - 24, + COUNT( * ) ) + 73
----
97

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT NULLIF ( - - 24, + COUNT ( * ) ) + 73
----
97

query I rowsort
SELECT 25 * - - 82
----
2050

query II rowsort
SELECT ALL - 60, - 21 * - 51 + - - 73 AS col0
----
-60
1144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2004
SELECT 60 * SUM( ALL 44 ) DIV 99 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2004
SELECT 60 * SUM ( ALL 44 ) / 99 AS col2
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT DISTINCT + 77 * + ( - + ( + COUNT( * ) ) ) * + COALESCE ( - 62, COALESCE ( - 47, + 19 ) * + COUNT( * ) + - - ( + + 86 ) * - 98 + - 7 + - COUNT( * ), - 27 + - + COUNT( * ) + + 8 ) AS col2
----
4774

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT + 77 * + ( - + ( + COUNT ( * ) ) ) * + COALESCE ( - 62, COALESCE ( - 47, + 19 ) * + COUNT ( * ) + - - ( + + 86 ) * - 98 + - 7 + - COUNT ( * ), - 27 + - + COUNT ( * ) + + 8 ) AS col2
----
4774

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2008
SELECT 69 DIV - 51 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2008
SELECT 69 / - 51 AS col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-2009
SELECT CAST ( NULL AS INTEGER ) * - 99 AS col2
----
NULL

query I rowsort
SELECT 75 * + 82 AS col1
----
6150

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT CASE 87 WHEN - 73 THEN NULL WHEN MAX( ALL 73 ) THEN COALESCE ( 54, + 74 ) WHEN + 69 THEN NULL END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT CASE 87 WHEN - 73 THEN NULL WHEN MAX ( ALL 73 ) THEN COALESCE ( 54, + 74 ) WHEN + 69 THEN NULL END - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT 94 DIV 52 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2012
SELECT 94 / 52 AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL - 24 / + COUNT ( * )
----
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT DISTINCT - COUNT( * ) + + 20 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT - COUNT ( * ) + + 20 AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2016
SELECT DISTINCT 81 DIV 66
----
1

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT 81 / 66
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2017
SELECT ALL - 97 + + ( 27 ) DIV 67
----
-97

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL - 97 + + ( 27 ) / 67
----
-97

query I rowsort
SELECT 90 - - ( - 39 )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT ALL - 25 DIV 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL - 25 / 47 AS col1
----
0

query I rowsort
SELECT ALL + 70 + 79
----
149

query I rowsort
SELECT ( - ( 87 ) ) + 43 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT 74 + 83 * + COUNT( * )
----
157

skipif mysql # not compatible
query I rowsort label-2022
SELECT 74 + 83 * + COUNT ( * )
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL - MAX( + 24 ) + 7
----
-17

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - MAX ( + 24 ) + 7
----
-17

query I rowsort
SELECT - 38 * - 18
----
684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT - CAST( ( 69 ) AS SIGNED ) + - 88 * ( - ( - 44 ) - 76 )
----
2747

skipif mysql # not compatible
query I rowsort label-2025
SELECT - CAST ( ( 69 ) AS INTEGER ) + - 88 * ( - ( - 44 ) - 76 )
----
2747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2026
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT DISTINCT MAX( ALL + 96 ) * - 41 + 22 col2
----
-3914

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT MAX ( ALL + 96 ) * - 41 + 22 col2
----
-3914

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT ALL + MAX( DISTINCT - 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL + MAX ( DISTINCT - 15 ) AS col2
----
-15

query I rowsort
SELECT NULLIF ( + 4, + 94 )
----
4

query I rowsort
SELECT - 79 + NULLIF ( + 63 + + 4, + 93 ) AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2031
SELECT ALL + CAST( - 50 AS SIGNED ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL + CAST ( - 50 AS INTEGER ) AS col2
----
-50

query I rowsort
SELECT + 72 + 15 AS col1
----
87

query I rowsort
SELECT - 84 * - 60
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT CASE ( 31 ) WHEN + 45 + 81 THEN 78 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT CASE ( 31 ) WHEN + 45 + 81 THEN 78 WHEN COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 77 * 99 - 76
----
7547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2036
SELECT + MIN( DISTINCT - ( CAST( + 82 AS SIGNED ) ) ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-2036
SELECT + MIN ( DISTINCT - ( CAST ( + 82 AS INTEGER ) ) ) AS col1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT - 36 DIV 4 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2037
SELECT - 36 / 4 AS col1
----
-9

query I rowsort
SELECT + 42 * 48 AS col2
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT SUM( ( - 27 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-2039
SELECT SUM ( ( - 27 ) )
----
-27

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

skipif mysql # not compatible
query I rowsort label-2040
SELECT COUNT ( * ) * - 5 + 85 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2041
SELECT DISTINCT + NULLIF ( 30, - 26 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT + NULLIF ( 30, - 26 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT ALL 18 DIV 14 col1
----
1

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL 18 / 14 col1
----
1

query I rowsort
SELECT - 94 + COALESCE ( 50, + 24 ) AS col1
----
-44

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

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

skipif mysql # not compatible
query I rowsort label-2045
SELECT MAX ( DISTINCT 47 )
----
47

query I rowsort
SELECT + 3 * - 63
----
-189

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

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

query I rowsort
SELECT + - 62 + ( - 21 )
----
-83

query I rowsort
SELECT ALL - ( 88 ) + + 33
----
-55

query I rowsort
SELECT ALL + 92 * 5
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT + + MAX( 48 ) + + 31 col0
----
79

skipif mysql # not compatible
query I rowsort label-2051
SELECT + + MAX ( 48 ) + + 31 col0
----
79

query I rowsort
SELECT ALL 78 + 32 AS col2
----
110

query I rowsort
SELECT DISTINCT 18 * + 43 AS col0
----
774

query I rowsort
SELECT ALL + - 19 + 17
----
-2

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

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

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

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

query I rowsort
SELECT + 5 * 9
----
45

query I rowsort
SELECT - 75 + + 58 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2059
SELECT - MIN( 88 ) + CASE MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) WHEN 34 + 92 THEN + 90 WHEN MIN( ALL 0 ) + + COUNT( * ) * - 13 THEN NULL ELSE - 33 - + 47 END
----
-168

skipif mysql # not compatible
query I rowsort label-2059
SELECT - MIN ( 88 ) + CASE MAX ( DISTINCT + CAST ( NULL AS REAL ) ) WHEN 34 + 92 THEN + 90 WHEN MIN ( ALL 0 ) + + COUNT ( * ) * - 13 THEN NULL ELSE - 33 - + 47 END
----
-168

query I rowsort
SELECT - 2 + - 36 * 37
----
-1334

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT + - MAX( + 51 ) * 36
----
-1836

skipif mysql # not compatible
query I rowsort label-2061
SELECT + - MAX ( + 51 ) * 36
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT DISTINCT + CASE - SUM( ALL 19 ) WHEN - COUNT( - 83 ) / + 77 THEN + 6 * + SUM( DISTINCT 48 * 1 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT + CASE - SUM ( ALL 19 ) WHEN - COUNT ( - 83 ) / + 77 THEN + 6 * + SUM ( DISTINCT 48 * 1 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT DISTINCT NULLIF ( + 42, + 6 * 68 + - COUNT( * ) ) + 78
----
120

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT NULLIF ( + 42, + 6 * 68 + - COUNT ( * ) ) + 78
----
120

query I rowsort
SELECT ALL + 80 + + 59 AS col2
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT ALL - 16 DIV + ( + 45 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL - 16 / + ( + 45 ) AS col1
----
0

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

query I rowsort
SELECT ALL - + 39 - + ( 55 ) AS col0
----
-94

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

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

query I rowsort
SELECT - 96 * - 39
----
3744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2070
SELECT CAST( + + COALESCE ( 4, COALESCE ( - NULLIF ( - 5, 76 ), 12 * 98, - 51 / - ( 10 ) ) + - MAX( - 1 ) * + 48, - 42 * + 56 ) AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-2070
SELECT CAST ( + + COALESCE ( 4, COALESCE ( - NULLIF ( - 5, 76 ), 12 * 98, - 51 / - ( 10 ) ) + - MAX ( - 1 ) * + 48, - 42 * + 56 ) AS INTEGER )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2071
SELECT - 73 DIV 51
----
-1

skipif mysql # not compatible
query I rowsort label-2071
SELECT - 73 / 51
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2072
SELECT + CAST( - + 34 AS SIGNED ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-2072
SELECT + CAST ( - + 34 AS INTEGER ) col0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT ALL + 33 DIV + 40 - 96 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL + 33 / + 40 - 96 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT - 60 * + COUNT( * ) * 74
----
-4440

skipif mysql # not compatible
query I rowsort label-2074
SELECT - 60 * + COUNT ( * ) * 74
----
-4440

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ALL + CASE + 12 WHEN - SUM( DISTINCT + NULLIF ( 27, - 26 ) ) / - 97 THEN NULL WHEN + 42 / 43 THEN + 11 + ( + 3 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL + CASE + 12 WHEN - SUM ( DISTINCT + NULLIF ( 27, - 26 ) ) / - 97 THEN NULL WHEN + 42 / 43 THEN + 11 + ( + 3 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT - NULLIF ( + - COUNT( * ), + 99 ) * + 39 + 98
----
137

skipif mysql # not compatible
query I rowsort label-2077
SELECT - NULLIF ( + - COUNT ( * ), + 99 ) * + 39 + 98
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT DISTINCT + SUM( ALL + - NULLIF ( + 14, 84 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT + SUM ( ALL + - NULLIF ( + 14, 84 ) )
----
-14

query I rowsort
SELECT ALL - 4 * + 40
----
-160

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

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + ( - NULLIF ( - 67, COUNT ( * ) ) )
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2081
SELECT - 94 * CASE + 99 WHEN + CAST( + ( 16 ) AS DECIMAL ) / ( 13 * 20 + 75 ) - 37 THEN 22 * COUNT( * ) WHEN - COUNT( * ) * 50 THEN NULL ELSE + 79 END AS col1
----
-7426

skipif mysql # not compatible
query I rowsort label-2081
SELECT - 94 * CASE + 99 WHEN + CAST ( + ( 16 ) AS REAL ) / ( 13 * 20 + 75 ) - 37 THEN 22 * COUNT ( * ) WHEN - COUNT ( * ) * 50 THEN NULL ELSE + 79 END AS col1
----
-7426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2082
SELECT - 0 + 65 * + ( - CAST( - 75 AS SIGNED ) )
----
4875

skipif mysql # not compatible
query I rowsort label-2082
SELECT - 0 + 65 * + ( - CAST ( - 75 AS INTEGER ) )
----
4875

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

query I rowsort
SELECT ALL - 42 * - ( + 37 )
----
1554

query I rowsort
SELECT NULLIF ( - 53, 76 * 87 )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2086
SELECT + SUM( ALL - - 75 ) DIV 35
----
2

skipif mysql # not compatible
query I rowsort label-2086
SELECT + SUM ( ALL - - 75 ) / 35
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2087
SELECT ALL - CAST( + + NULLIF ( 9, NULLIF ( + 53, 20 + 87 ) ) AS SIGNED ) * COUNT( * ) + 36
----
27

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL - CAST ( + + NULLIF ( 9, NULLIF ( + 53, 20 + 87 ) ) AS INTEGER ) * COUNT ( * ) + 36
----
27

query I rowsort
SELECT DISTINCT - 19 * + 64 * 17 + 88 * 98 col1
----
-12048

query I rowsort
SELECT - - 33 + - 56 + + CASE - 96 + ( 83 ) WHEN - 2 * - 69 THEN NULL ELSE 23 * + 74 END AS col0
----
1679

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ALL - NULLIF ( - 40, 9 ) * ( + COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL - NULLIF ( - 40, 9 ) * ( + COUNT ( * ) )
----
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2091
SELECT ALL 67 * - 53 + + COUNT( ALL 90 ) / CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL 67 * - 53 + + COUNT ( ALL 90 ) / CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 50 * - - 3 AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT - NULLIF ( - 77, MIN( + 23 ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-2093
SELECT - NULLIF ( - 77, MIN ( + 23 ) ) AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2094
SELECT + + COUNT( + 78 ) DIV - 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT + + COUNT ( + 78 ) / - 11 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2095
SELECT DISTINCT - CASE + 25 WHEN 24 THEN 34 WHEN 9 THEN - 78 + ( COUNT( * ) ) WHEN 25 THEN 60 + + 30 ELSE - 8 END - - 89 DIV 80
----
-89

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT - CASE + 25 WHEN 24 THEN 34 WHEN 9 THEN - 78 + ( COUNT ( * ) ) WHEN 25 THEN 60 + + 30 ELSE - 8 END - - 89 / 80
----
-89

query I rowsort
SELECT ALL + ( 34 ) AS col1
----
34

query I rowsort
SELECT ALL 92 - - 45 + 92 * - 60
----
-5383

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2099
SELECT CAST( NULL AS DECIMAL ) - + ( - + 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT CAST ( NULL AS REAL ) - + ( - + 42 ) AS col0
----
NULL

query I rowsort
SELECT 8 + + NULLIF ( + 47, 45 ) AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2101
SELECT COUNT( * ) DIV - + 33 * + 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2101
SELECT COUNT ( * ) / - + 33 * + 24 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT 24 + + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2103
SELECT 24 + + COUNT ( * ) AS col2
----
25

query II rowsort
SELECT + 1 AS col0, 49 AS col1
----
1
49

onlyif mysql # aggregate syntax: 
query II rowsort label-2105
SELECT ALL - 98, - COUNT( * ) + + 91 - 41 * 43 col0
----
-98
-1673

skipif mysql # not compatible
query II rowsort label-2105
SELECT ALL - 98, - COUNT ( * ) + + 91 - 41 * 43 col0
----
-98
-1673

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT NULLIF ( - NULLIF ( SUM( ALL 58 ), - CASE + 13 WHEN + 74 THEN NULL WHEN COUNT( * ) THEN - CASE SUM( ALL ( + 78 ) ) WHEN ( COUNT( * ) ) * - 45 THEN - MIN( ALL + 8 ) - - 13 ELSE NULL END + + 97 * - 71 ELSE NULL END + - COUNT( * ) * - MIN( DISTINCT 8 ) ), 75 + 14 ) * - 4 col2
----
232

skipif mysql # not compatible
query I rowsort label-2107
SELECT NULLIF ( - NULLIF ( SUM ( ALL 58 ), - CASE + 13 WHEN + 74 THEN NULL WHEN COUNT ( * ) THEN - CASE SUM ( ALL ( + 78 ) ) WHEN ( COUNT ( * ) ) * - 45 THEN - MIN ( ALL + 8 ) - - 13 ELSE NULL END + + 97 * - 71 ELSE NULL END + - COUNT ( * ) * - MIN ( DISTINCT 8 ) ), 75 + 14 ) * - 4 col2
----
232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2108
SELECT COUNT( * ) DIV + CAST( - + MAX( DISTINCT + 81 ) AS SIGNED ) * - 46 + - CAST( 74 + 55 AS SIGNED ) DIV - 19 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2108
SELECT COUNT ( * ) / + CAST ( - + MAX ( DISTINCT + 81 ) AS INTEGER ) * - 46 + - CAST ( 74 + 55 AS INTEGER ) / - 19 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT ALL ( + 29 ) + + COUNT( DISTINCT 81 ) + + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL ( + 29 ) + + COUNT ( DISTINCT 81 ) + + COUNT ( * ) AS col2
----
31

query I rowsort
SELECT DISTINCT - 55 * + 26 AS col2
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT DISTINCT + 28 + + SUM( + 11 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT + 28 + + SUM ( + 11 ) AS col2
----
39

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

query I rowsort
SELECT 75 * - - ( + 90 ) AS col0
----
6750

query I rowsort
SELECT + 62 * 32 + - ( 77 ) * + ( - 98 )
----
9530

query II rowsort
SELECT 96 AS col2, NULLIF ( + - ( 49 ), - 33 * + 49 ) AS col0
----
96
-49

query I rowsort
SELECT ALL + 1 + - + 95
----
-94

query I rowsort
SELECT 65 * - 73
----
-4745

query II rowsort
SELECT + 86 AS col2, + COALESCE ( + 81, 69 - - 14 ) AS col2
----
86
81

query II rowsort
SELECT ALL - 26 AS col1, + 28 * ( - 95 )
----
-26
-2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2120
SELECT DISTINCT - - CAST( 42 AS SIGNED ) * CAST( NULL AS SIGNED ) - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT - - CAST ( 42 AS INTEGER ) * CAST ( NULL AS INTEGER ) - + COUNT ( * ) col0
----
NULL

query II rowsort
SELECT + + 59, + 16 AS col2
----
59
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2122
SELECT DISTINCT + - 85 + + 36 * + + 49 * + CAST( + 80 * - ( 67 * 42 ) AS SIGNED ) AS col2
----
-397111765

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT + - 85 + + 36 * + + 49 * + CAST ( + 80 * - ( 67 * 42 ) AS INTEGER ) AS col2
----
-397111765

query I rowsort
SELECT 92 + + - ( - 30 ) + + 31 * 9 AS col2
----
401

query I rowsort
SELECT DISTINCT - 74 + - 50 AS col2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT + + COALESCE ( - COUNT( * ), - 48, 33 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2125
SELECT + + COALESCE ( - COUNT ( * ), - 48, 33 ) AS col1
----
-1

query II rowsort
SELECT - 16 AS col2, 99 + + 14 - 11 col2
----
-16
102

query I rowsort
SELECT 18 * - - 74 + - 11
----
1321

query I rowsort
SELECT DISTINCT + 22 * + 54 - - ( - 14 ) AS col1
----
1174

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT 54 * + + COUNT( * ) - - 64
----
118

skipif mysql # not compatible
query I rowsort label-2129
SELECT 54 * + + COUNT ( * ) - - 64
----
118

query I rowsort
SELECT ALL + 89 * - 79
----
-7031

query I rowsort
SELECT DISTINCT - 30 * - 73
----
2190

query I rowsort
SELECT + CASE + 20 WHEN - + 83 * 79 THEN 99 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT CAST( NULL AS SIGNED ) + - - 1 + + COALESCE ( COALESCE ( - 96, 0, ( - 58 ) ), + 30, 62 ) + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-2133
SELECT CAST ( NULL AS INTEGER ) + - - 1 + + COALESCE ( COALESCE ( - 96, 0, ( - 58 ) ), + 30, 62 ) + - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT ALL - + SUM( DISTINCT 23 ) - - 98 + - ( + COUNT( + 17 ) ) * 61 * 56
----
-3341

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL - + SUM ( DISTINCT 23 ) - - 98 + - ( + COUNT ( + 17 ) ) * 61 * 56
----
-3341

query I rowsort
SELECT - 12 * + + 76
----
-912

query I rowsort
SELECT 33 * 45
----
1485

query I rowsort
SELECT ( + 6 ) + 44 * + + 54 AS col2
----
2382

query I rowsort
SELECT 18 * 40 * - 47
----
-33840

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT MAX( + 79 ) + - 4 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2139
SELECT MAX ( + 79 ) + - 4 AS col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2140
SELECT DISTINCT 66 * + 80 AS col0, - 67 - - COUNT( * ) + COUNT( * ) * COUNT( * )
----
5280
-65

skipif mysql # not compatible
query II rowsort label-2140
SELECT DISTINCT 66 * + 80 AS col0, - 67 - - COUNT ( * ) + COUNT ( * ) * COUNT ( * )
----
5280
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT SUM( DISTINCT - 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT SUM ( DISTINCT - 40 ) AS col2
----
-40

query II rowsort
SELECT DISTINCT 19 + - 96 AS col1, 20
----
-77
20

query I rowsort
SELECT ALL 65 * 67 * + 15
----
65325

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT SUM( + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-2144
SELECT SUM ( + 44 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2145
SELECT ( - - 68 ) DIV COUNT( DISTINCT 49 )
----
68

skipif mysql # not compatible
query I rowsort label-2145
SELECT ( - - 68 ) / COUNT ( DISTINCT 49 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL COUNT( * ) * - 55 + - 99 AS col2
----
-154

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL COUNT ( * ) * - 55 + - 99 AS col2
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL 8 * + 6 + + COALESCE ( - - 44, 42 ) * + CASE 8 WHEN + 26 / 30 THEN - 71 * SUM( + 13 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL 8 * + 6 + + COALESCE ( - - 44, 42 ) * + CASE 8 WHEN + 26 / 30 THEN - 71 * SUM ( + 13 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2148
SELECT ALL CAST( NULL AS SIGNED ) * - ( MAX( - 37 ) ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT MAX( ALL - - 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-2149
SELECT MAX ( ALL - - 33 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2150
SELECT + MAX( 6 ) col1, COUNT( * ) + + 60
----
6
61

skipif mysql # not compatible
query II rowsort label-2150
SELECT + MAX ( 6 ) col1, COUNT ( * ) + + 60
----
6
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT ALL - 60 * - 64 + - MIN( DISTINCT - 19 ) AS col0
----
3859

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL - 60 * - 64 + - MIN ( DISTINCT - 19 ) AS col0
----
3859

query I rowsort
SELECT DISTINCT ( + 41 ) * + + 74 * - + 6 + 17 AS col0
----
-18187

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT - 4 * + - ( - 9 ) + + - COUNT( * ) * 91 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-2153
SELECT - 4 * + - ( - 9 ) + + - COUNT ( * ) * 91 AS col0
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2154
SELECT - 41 * - + 63 - + ( + 50 ) + - 26 DIV COUNT( * ) AS col2
----
2507

skipif mysql # not compatible
query I rowsort label-2154
SELECT - 41 * - + 63 - + ( + 50 ) + - 26 / COUNT ( * ) AS col2
----
2507

query I rowsort
SELECT ALL - 44 * 91
----
-4004

query I rowsort
SELECT + 72 * - 72 * + 18 * - - 78
----
-7278336

query I rowsort
SELECT ALL + - 20 * 97 + - 44
----
-1984

query I rowsort
SELECT DISTINCT - 95 - - - 29 * + - 40 + 9 col2
----
1074

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT DISTINCT - - COUNT( * ) - - COALESCE ( - ( - - 47 ), 30 * + 50 )
----
-46

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT - - COUNT ( * ) - - COALESCE ( - ( - - 47 ), 30 * + 50 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL - 92 * 60 + - COUNT( * ) AS col0
----
-5521

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL - 92 * 60 + - COUNT ( * ) AS col0
----
-5521

query II rowsort
SELECT ( 94 ), 35 + - - 65 AS col0
----
94
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT - - COUNT( * ) * - - SUM( - 85 ) + + + 83 * 66
----
5393

skipif mysql # not compatible
query I rowsort label-2162
SELECT - - COUNT ( * ) * - - SUM ( - 85 ) + + + 83 * 66
----
5393

query I rowsort
SELECT - 10 - + 48 col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT - 15 * + + COALESCE ( - 96, - 56 * + COUNT( * ) )
----
1440

skipif mysql # not compatible
query I rowsort label-2164
SELECT - 15 * + + COALESCE ( - 96, - 56 * + COUNT ( * ) )
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - COUNT( DISTINCT + + 71 ) * + + 58 col1
----
-58

skipif mysql # not compatible
query I rowsort label-2165
SELECT - COUNT ( DISTINCT + + 71 ) * + + 58 col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT ALL + COUNT( * ) * AVG ( - - 35 ) * - CASE + - COUNT( * ) WHEN 67 THEN + 75 WHEN 7 THEN + 27 ELSE NULL END + 74 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + COUNT ( * ) * AVG ( - - 35 ) * - CASE + - COUNT ( * ) WHEN 67 THEN + 75 WHEN 7 THEN + 27 ELSE NULL END + 74 col0
----
NULL

query I rowsort
SELECT ALL ( NULLIF ( + 88, - 2 ) )
----
88

query I rowsort
SELECT ALL + 18 * + 37 AS col2
----
666

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2169
SELECT ALL + CAST( NULL AS DECIMAL ) + + 80 + + COALESCE ( 34, - + 51 + AVG ( - 40 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL + CAST ( NULL AS REAL ) + + 80 + + COALESCE ( 34, - + 51 + AVG ( - 40 ) ) col0
----
NULL

query I rowsort
SELECT - 66 * 2
----
-132

query I rowsort
SELECT - AVG ( + 33 ) - - 91 + - 24 - 65 * + ( + CASE 12 WHEN - 47 THEN - 46 * 15 END ) * 31 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2172
SELECT ALL + CAST( - 86 AS SIGNED ) * - + ( + + 88 ) AS col0
----
7568

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL + CAST ( - 86 AS INTEGER ) * - + ( + + 88 ) AS col0
----
7568

onlyif mysql # aggregate syntax: 
query II rowsort label-2173
SELECT + 60 - + 53 + 33 AS col2, COUNT( * ) + - 42 * COUNT( DISTINCT + CASE + 12 WHEN + 60 THEN - 58 END * - 12 )
----
40
1

skipif mysql # not compatible
query II rowsort label-2173
SELECT + 60 - + 53 + 33 AS col2, COUNT ( * ) + - 42 * COUNT ( DISTINCT + CASE + 12 WHEN + 60 THEN - 58 END * - 12 )
----
40
1

query I rowsort
SELECT - 30 + + ( 15 )
----
-15

query I rowsort
SELECT ALL 18 + + 8 AS col0
----
26

query I rowsort
SELECT - 24 + + 21 + - - ( - - 1 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT DISTINCT + ( - CASE + 85 WHEN + + ( + 97 ) THEN 12 + - COALESCE ( + 79 + + 49 * 79, 44 * 32, + 37 + - CASE + 80 - 27 * - 65 WHEN + 29 THEN 67 + - 53 WHEN 65 * - 34 + 14 THEN NULL END ) WHEN + COUNT( * ) / 3 THEN NULL WHEN - 12 * 58 THEN + 76 * COUNT( * ) + + ( MAX( 94 ) ) * 43 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT + ( - CASE + 85 WHEN + + ( + 97 ) THEN 12 + - COALESCE ( + 79 + + 49 * 79, 44 * 32, + 37 + - CASE + 80 - 27 * - 65 WHEN + 29 THEN 67 + - 53 WHEN 65 * - 34 + 14 THEN NULL END ) WHEN + COUNT ( * ) / 3 THEN NULL WHEN - 12 * 58 THEN + 76 * COUNT ( * ) + + ( MAX ( 94 ) ) * 43 END )
----
NULL

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

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

query I rowsort
SELECT ALL + ( - + 79 ) AS col1
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2180
SELECT ALL ( - 47 ) DIV - 23 + + MAX( DISTINCT + 59 ) + - 41 * + 25 AS col0
----
-964

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL ( - 47 ) / - 23 + + MAX ( DISTINCT + 59 ) + - 41 * + 25 AS col0
----
-964

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + COALESCE ( - 14, + - ( + + MAX( + 52 ) ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2181
SELECT + COALESCE ( - 14, + - ( + + MAX ( + 52 ) ) ) AS col1
----
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT + 1 * - 37 + + COUNT( DISTINCT + + 77 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-2183
SELECT + 1 * - 37 + + COUNT ( DISTINCT + + 77 ) AS col2
----
-36

query I rowsort
SELECT DISTINCT + NULLIF ( - - 13, 24 ) * 64 AS col2
----
832

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT ALL + 63 AS col2, COUNT( * ) * - 27
----
63
-27

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL + 63 AS col2, COUNT ( * ) * - 27
----
63
-27

query I rowsort
SELECT + 69 * + + 4 AS col2
----
276

query I rowsort
SELECT + - 88 * - 75 * 10
----
66000

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

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

query I rowsort
SELECT DISTINCT 57 * - - 7 AS col0
----
399

query I rowsort
SELECT + + 27 * + 1 + - ( + - 49 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT ALL + - ( + COALESCE ( - COUNT( * ), + 44, + - 86 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL + - ( + COALESCE ( - COUNT ( * ), + 44, + - 86 ) ) AS col1
----
1

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

query I rowsort
SELECT - 84 * + 47 - 37
----
-3985

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2194
SELECT + 33 DIV - 82 * 51 + - ( 66 ) + MIN( 97 + + 75 ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-2194
SELECT + 33 / - 82 * 51 + - ( 66 ) + MIN ( 97 + + 75 ) AS col1
----
106

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

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

query I rowsort
SELECT - ( + 6 ) + - 45 * - - 41
----
-1851

query II rowsort
SELECT + 12 AS col1, + 72 AS col1
----
12
72

query I rowsort
SELECT + 85 * - - 34 + + - CASE - 70 WHEN - 49 THEN 13 ELSE NULL END - 70 * - 87 * + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL + MAX( ALL - 13 ) col2
----
-13

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + MAX ( ALL - 13 ) col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT + + 75 + 10 DIV 14 DIV + - 51 + - 40
----
35

skipif mysql # not compatible
query I rowsort label-2200
SELECT + + 75 + 10 / 14 / + - 51 + - 40
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2201
SELECT 0 * + 12 / + - 30 + - + COUNT( * ) * - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT 0 * + 12 / + - 30 + - + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 67, 85 + - + 73 / - 74 ) AS col2
----
-67

query I rowsort
SELECT ALL ( 27 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT - 90 + ( + 23 ) * + - COUNT( * ) * 13 + - + 2 AS col1
----
-391

skipif mysql # not compatible
query I rowsort label-2204
SELECT - 90 + ( + 23 ) * + - COUNT ( * ) * 13 + - + 2 AS col1
----
-391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2205
SELECT DISTINCT CAST( + - 3 AS SIGNED ) + - + 3
----
-6

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT CAST ( + - 3 AS INTEGER ) + - + 3
----
-6

query II rowsort
SELECT - 94 col2, 77
----
-94
77

query I rowsort
SELECT ALL + 14 + + 76
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT - ( + 51 ) + - + COALESCE ( COUNT( * ), + + 37, - 60 * - 33 ) + + ( + 35 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2208
SELECT - ( + 51 ) + - + COALESCE ( COUNT ( * ), + + 37, - 60 * - 33 ) + + ( + 35 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL COALESCE ( + 62, 57 + - + COUNT( * ), - 66 * - 27 + 93 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL COALESCE ( + 62, 57 + - + COUNT ( * ), - 66 * - 27 + 93 ) AS col0
----
62

query II rowsort
SELECT 96 AS col1, 85 * - - 25 AS col0
----
96
2125

query I rowsort
SELECT ALL - 14 + + - 95
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT - COALESCE ( + - 16, - 97 - + + 41 ) + - 68 * COUNT( DISTINCT 89 )
----
-52

skipif mysql # not compatible
query I rowsort label-2212
SELECT - COALESCE ( + - 16, - 97 - + + 41 ) + - 68 * COUNT ( DISTINCT 89 )
----
-52

query II rowsort
SELECT - 71 col2, 9 * - 86
----
-71
-774

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL + 51 - - 33 + - NULLIF ( - + 61, + 40 * ( SUM( ALL - 65 ) ) / 56 )
----
145

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL + 51 - - 33 + - NULLIF ( - + 61, + 40 * ( SUM ( ALL - 65 ) ) / 56 )
----
145

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

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT - 97 * - COUNT ( * ) AS col1
----
97

query I rowsort
SELECT - 64 - 64 AS col1
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-2217
SELECT - 70 DIV - 73 col0
----
0

skipif mysql # not compatible
query I rowsort label-2217
SELECT - 70 / - 73 col0
----
0

query II rowsort
SELECT ALL 29, 25 AS col2
----
29
25

query I rowsort
SELECT 65 * - - 8 AS col2
----
520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2220
SELECT COUNT( * ) * 52, + CAST( NULL AS SIGNED ) * - 50 AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-2220
SELECT COUNT ( * ) * 52, + CAST ( NULL AS INTEGER ) * - 50 AS col1
----
52
NULL

query I rowsort
SELECT + NULLIF ( - 49, - - NULLIF ( 27, 47 + + + 1 * - 69 ) )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT - COALESCE ( - COUNT( * ), 7 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT - COALESCE ( - COUNT ( * ), 7 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL - - 66 - 22 - + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - - 66 - 22 - + COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT + COUNT( * ) * - 44 * - 88 + - 48 * + - 9
----
4304

skipif mysql # not compatible
query I rowsort label-2224
SELECT + COUNT ( * ) * - 44 * - 88 + - 48 * + - 9
----
4304

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT + ( CASE ( + + COUNT( * ) ) WHEN - - ( 87 ) * + 50 THEN NULL WHEN 21 + - COUNT( * ) THEN + 71 END ) - 10 * + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT + ( CASE ( + + COUNT ( * ) ) WHEN - - ( 87 ) * + 50 THEN NULL WHEN 21 + - COUNT ( * ) THEN + 71 END ) - 10 * + 84 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 3 * 82
----
-246

query I rowsort
SELECT - 47 + - - 91
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2228
SELECT + + 93 col0, 33 * ( COUNT( * ) ) + + 85 + - 60
----
93
58

skipif mysql # not compatible
query II rowsort label-2228
SELECT + + 93 col0, 33 * ( COUNT ( * ) ) + + 85 + - 60
----
93
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2229
SELECT - 57 * + + ( - COUNT( * ) ) + - CAST( 79 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-2229
SELECT - 57 * + + ( - COUNT ( * ) ) + - CAST ( 79 AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT COALESCE ( COALESCE ( - 27, - 61, - + 79, 57 ), 3 + + COUNT( * ) * 14 ) * + 8
----
-216

skipif mysql # not compatible
query I rowsort label-2230
SELECT COALESCE ( COALESCE ( - 27, - 61, - + 79, 57 ), 3 + + COUNT ( * ) * 14 ) * + 8
----
-216

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT ALL - 60 + + 3 DIV - 74 * + + 16
----
-60

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL - 60 + + 3 / - 74 * + + 16
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT - 6 * + ( 35 ) * - + COUNT( * )
----
210

skipif mysql # not compatible
query I rowsort label-2233
SELECT - 6 * + ( 35 ) * - + COUNT ( * )
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL 75 + - 65 + + + COUNT( * ) + COUNT( * ) * CASE - - 11 WHEN - 90 - COUNT( * ) THEN - 31 / COUNT( * ) WHEN + ( - 95 ) + 96 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL 75 + - 65 + + + COUNT ( * ) + COUNT ( * ) * CASE - - 11 WHEN - 90 - COUNT ( * ) THEN - 31 / COUNT ( * ) WHEN + ( - 95 ) + 96 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 2 + + 24 + + 52
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT COUNT( - 40 ) * 99
----
99

skipif mysql # not compatible
query I rowsort label-2236
SELECT COUNT ( - 40 ) * 99
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2237
SELECT ALL 42 + - 53 DIV - ( - 48 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL 42 + - 53 / - ( - 48 ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2238
SELECT ALL 7 - - - MAX( ALL + 58 ), + 41 * + 5 + - - NULLIF ( 36, CAST( - 73 AS SIGNED ) + - 60 ) AS col0
----
-51
241

skipif mysql # not compatible
query II rowsort label-2238
SELECT ALL 7 - - - MAX ( ALL + 58 ), + 41 * + 5 + - - NULLIF ( 36, CAST ( - 73 AS INTEGER ) + - 60 ) AS col0
----
-51
241

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

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

query I rowsort
SELECT 84 * - + 48
----
-4032

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2243
SELECT 3 - + + COUNT( * ), 44 + 61 AS col2
----
2
105

skipif mysql # not compatible
query II rowsort label-2243
SELECT 3 - + + COUNT ( * ), 44 + 61 AS col2
----
2
105

query I rowsort
SELECT 10 * - 60 * - ( + 71 )
----
42600

query I rowsort
SELECT + 12 * - - 79 + - 48 AS col1
----
900

query I rowsort
SELECT 5 + COALESCE ( + 34, + - 20 * - - 30 + 31 ) * + - 14 col1
----
-471

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2247
SELECT 36 * + - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT 36 * + - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT DISTINCT - 55 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT - 55 / - 84 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2249
SELECT DISTINCT - - 72 DIV + + 91, + 96 * + 8 * - - 90 col2
----
0
69120

skipif mysql # not compatible
query II rowsort label-2249
SELECT DISTINCT - - 72 / + + 91, + 96 * + 8 * - - 90 col2
----
0
69120

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT - COUNT( * ) + + - MAX( + CASE + 90 WHEN - ( 84 ) THEN + 11 ELSE 65 - 49 END ) + 90 col0
----
73

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT - COUNT ( * ) + + - MAX ( + CASE + 90 WHEN - ( 84 ) THEN + 11 ELSE 65 - 49 END ) + 90 col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT 51 DIV 6 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-2251
SELECT 51 / 6 / + 37
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT DISTINCT + 22 DIV + + 79 + - 67 * - 26 AS col1
----
1742

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + 22 / + + 79 + - 67 * - 26 AS col1
----
1742

query I rowsort
SELECT DISTINCT + 11 + 96 * + 11
----
1067

query I rowsort
SELECT DISTINCT - 53 + - 37 col1
----
-90

query I rowsort
SELECT - 90 + + - 87
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL + + NULLIF ( - 39, + + 2 + - COALESCE ( + 78, 85 * + - NULLIF ( - 36, + COUNT( * ) + + COUNT( * ) ), + 70 ) ) + + 77
----
38

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL + + NULLIF ( - 39, + + 2 + - COALESCE ( + 78, 85 * + - NULLIF ( - 36, + COUNT ( * ) + + COUNT ( * ) ), + 70 ) ) + + 77
----
38

query I rowsort
SELECT ALL + 98 + 40 - + 74
----
64

query I rowsort
SELECT ALL - - NULLIF ( - 38, - + 44 )
----
-38

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT + 56 + 2 AS col1, + COUNT( * ) AS col0
----
58
1

skipif mysql # not compatible
query II rowsort label-2260
SELECT + 56 + 2 AS col1, + COUNT ( * ) AS col0
----
58
1

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

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

query I rowsort
SELECT ALL - 14 + 12
----
-2

query I rowsort
SELECT ( ( + 17 ) ) + 62
----
79

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

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

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

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

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

query I rowsort
SELECT 68 + - 15 AS col2
----
53

query I rowsort
SELECT + 71 + - 59 + - 78 * - 22 * + - 79 AS col1
----
-135552

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2269
SELECT + NULLIF ( - ( - 38 ), 92 / + 91 * - + 33 ) * - - CAST( NULL AS DECIMAL ) * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT + NULLIF ( - ( - 38 ), 92 / + 91 * - + 33 ) * - - CAST ( NULL AS REAL ) * - 66
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2270
SELECT + 47 + + - COUNT( * ) + ( - + ( + - 9 ) ) + 58 + - 71 + - + 83 DIV + 50 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2270
SELECT + 47 + + - COUNT ( * ) + ( - + ( + - 9 ) ) + 58 + - 71 + - + 83 / + 50 AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT ALL 53 DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL 53 / - + 91
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2273
SELECT + 23 + - CASE + 5 WHEN - 93 + + 47 + + MIN( ALL 73 ) THEN - - 34 * 25 ELSE NULL END - - CAST( NULL AS SIGNED ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT + 23 + - CASE + 5 WHEN - 93 + + 47 + + MIN ( ALL 73 ) THEN - - 34 * 25 ELSE NULL END - - CAST ( NULL AS INTEGER ) * 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT DISTINCT MAX( ALL - 99 ) * + 60 * - + 2 AS col2
----
11880

skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT MAX ( ALL - 99 ) * + 60 * - + 2 AS col2
----
11880

query I rowsort
SELECT ALL 17 * - + 21
----
-357

query I rowsort
SELECT ALL 19 * + ( - + 51 ) + - - 13
----
-956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2277
SELECT + - COUNT( * ) * - 4 + - - COUNT( * ) DIV - - 7 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2277
SELECT + - COUNT ( * ) * - 4 + - - COUNT ( * ) / - - 7 AS col1
----
4

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

query I rowsort
SELECT + - 70 - - + ( - + 85 ) AS col2
----
-155

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

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

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

query I rowsort
SELECT - - 15 * 65
----
975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2283
SELECT ALL - + CAST( NULL AS SIGNED ) * + 55 + - 21 - + + 62 * + + COALESCE ( - NULLIF ( + 54, - COUNT( * ) ), ( 86 ) * 35 + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 55 + - 21 - + + 62 * + + COALESCE ( - NULLIF ( + 54, - COUNT ( * ) ), ( 86 ) * 35 + 23 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2284
SELECT ALL + 20 * CAST( - 81 AS SIGNED ) + - - 73 DIV - COUNT( * )
----
-1693

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL + 20 * CAST ( - 81 AS INTEGER ) + - - 73 / - COUNT ( * )
----
-1693

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

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

query I rowsort
SELECT + - 19 * + 11 + 53 AS col1
----
-156

query II rowsort
SELECT NULLIF ( + - 19, ( - - 13 ) ), 12 + - 85 * + 7 * - COALESCE ( - + 65, 33 * 99, 71 ) AS col0
----
-19
-38663

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2289
SELECT ALL + 55 DIV 27 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL + 55 / 27 AS col0
----
2

query I rowsort
SELECT ALL 88 * - 74 - - 27 * - 46 * - 94 + + 84 AS col2
----
110320

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

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL COUNT ( * ) * + - COUNT ( * ) * - 70 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2292
SELECT - CASE - ( - ( - MAX( ( - 34 ) ) ) ) WHEN + ( + - 5 ) THEN - 47 * + 80 + 54 / - 51 WHEN + 44 * - 30 + NULLIF ( 39, + COUNT( * ) ) THEN 54 WHEN 30 THEN NULL WHEN - CAST( COUNT( * ) AS SIGNED ) THEN + 3 END * - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT - CASE - ( - ( - MAX ( ( - 34 ) ) ) ) WHEN + ( + - 5 ) THEN - 47 * + 80 + 54 / - 51 WHEN + 44 * - 30 + NULLIF ( 39, + COUNT ( * ) ) THEN 54 WHEN 30 THEN NULL WHEN - CAST ( COUNT ( * ) AS INTEGER ) THEN + 3 END * - 87 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + COUNT( * ) * - 79 + 54
----
-25

skipif mysql # not compatible
query I rowsort label-2294
SELECT + COUNT ( * ) * - 79 + 54
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-2295
SELECT - 42 + - 32 AS col0, 55 * + COUNT( * ) AS col1
----
-74
55

skipif mysql # not compatible
query II rowsort label-2295
SELECT - 42 + - 32 AS col0, 55 * + COUNT ( * ) AS col1
----
-74
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT - NULLIF ( + - COUNT( * ), 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2296
SELECT - NULLIF ( + - COUNT ( * ), 33 ) AS col2
----
1

query I rowsort
SELECT + 24 * - + 36 AS col0
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT - ( + CASE ( 95 ) WHEN - COUNT( * ) THEN + 70 ELSE NULL END ) - - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT - ( + CASE ( 95 ) WHEN - COUNT ( * ) THEN + 70 ELSE NULL END ) - - 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2299
SELECT + 41 DIV + 18
----
2

skipif mysql # not compatible
query I rowsort label-2299
SELECT + 41 / + 18
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2300
SELECT DISTINCT + 66 * 90 DIV - + 85 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT + 66 * 90 / - + 85 AS col2
----
-69

query I rowsort
SELECT DISTINCT + + 30 + 17 - - + 55
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL - 80 + - - 96 * 12 - - ( - CASE 48 WHEN 90 / - 79 THEN NULL WHEN COUNT( * ) + 24 THEN 67 ELSE NULL END ) + 35 * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL - 80 + - - 96 * 12 - - ( - CASE 48 WHEN 90 / - 79 THEN NULL WHEN COUNT ( * ) + 24 THEN 67 ELSE NULL END ) + 35 * 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2303
SELECT DISTINCT - COUNT( * ) DIV + + MAX( DISTINCT + + CAST( 27 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT - COUNT ( * ) / + + MAX ( DISTINCT + + CAST ( 27 AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + 5 + + 69 * - 80 AS col1
----
-5515

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT - + 0 + - CAST( - 11 AS SIGNED ) - 25 + + - 76 * - 89
----
6750

skipif mysql # not compatible
query I rowsort label-2305
SELECT - + 0 + - CAST ( - 11 AS INTEGER ) - 25 + + - 76 * - 89
----
6750

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

query I rowsort
SELECT + 83 - + 98 AS col1
----
-15

query I rowsort
SELECT + 36 * - 32 AS col2
----
-1152

query I rowsort
SELECT + + 59 + 34 AS col2
----
93

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2311
SELECT CASE + - 45 WHEN - COUNT( * ) - 15 THEN - 54 WHEN + CAST( NULL AS SIGNED ) THEN - + CASE + + 3 WHEN - 17 THEN + 2 * - 93 END ELSE + 24 * 56 END DIV - 31 + 82 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-2311
SELECT CASE + - 45 WHEN - COUNT ( * ) - 15 THEN - 54 WHEN + CAST ( NULL AS INTEGER ) THEN - + CASE + + 3 WHEN - 17 THEN + 2 * - 93 END ELSE + 24 * 56 END / - 31 + 82 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2312
SELECT DISTINCT 37 * MAX( ALL - 40 ) * + - CAST( + 87 AS SIGNED ) AS col0
----
128760

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT 37 * MAX ( ALL - 40 ) * + - CAST ( + 87 AS INTEGER ) AS col0
----
128760

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL + 58 / - CASE 97 WHEN - 12 + - - 11 THEN + + 14 END * - - COUNT( * ) + 62 + - 91 * 91 + - 80 / - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL + 58 / - CASE 97 WHEN - 12 + - - 11 THEN + + 14 END * - - COUNT ( * ) + 62 + - 91 * 91 + - 80 / - 24
----
NULL

query I rowsort
SELECT + 25 + + - ( - ( 57 ) ) * ( 68 ) AS col1
----
3901

query I rowsort
SELECT + 79 * + 67 + + 14 + 12 col1
----
5319

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT + - 29 * - MAX( + 2 ) * - 55 + + - 69 - - 47 + + 81 - + COUNT( * ) + COUNT( DISTINCT - 61 ) + 37 * - 0 AS col2
----
-3131

skipif mysql # not compatible
query I rowsort label-2316
SELECT + - 29 * - MAX ( + 2 ) * - 55 + + - 69 - - 47 + + 81 - + COUNT ( * ) + COUNT ( DISTINCT - 61 ) + 37 * - 0 AS col2
----
-3131

query I rowsort
SELECT + 52 * + 89 * + ( - 46 ) * - - 59 * + 28 + - 62 AS col1
----
-351691038

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

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

query I rowsort
SELECT DISTINCT + 51 * - 55 AS col2
----
-2805

onlyif mysql # DIV for integer division: 
query I rowsort label-2320
SELECT DISTINCT 25 DIV - - 16 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT 25 / - - 16 AS col0
----
1

query I rowsort
SELECT DISTINCT 42 * + 49
----
2058

query I rowsort
SELECT 88 * + 68 col1
----
5984

query I rowsort
SELECT 59 * - 47
----
-2773

query I rowsort
SELECT 3 + 91
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT 78 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-2325
SELECT 78 / + 49
----
1

query I rowsort
SELECT ALL + 61 + - - 67
----
128

query I rowsort
SELECT 93 + + 72
----
165

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

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

query II rowsort
SELECT DISTINCT - 16 + + 15 + - 76, ( + 48 ) + 96 AS col2
----
-77
144

query I rowsort
SELECT DISTINCT - 7 + + 26 + - 90 * - 27
----
2449

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2331
SELECT DISTINCT + 76 + + + 4 + - - 99 DIV - - CAST( + 76 AS SIGNED ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT + 76 + + + 4 + - - 99 / - - CAST ( + 76 AS INTEGER ) AS col0
----
81

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

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

query I rowsort
SELECT - ( + 93 ) * - + 63 AS col1
----
5859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT - 67 + 92 + - CAST( - MIN( - 90 ) AS SIGNED ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2334
SELECT - 67 + 92 + - CAST ( - MIN ( - 90 ) AS INTEGER ) AS col0
----
-65

query II rowsort
SELECT DISTINCT + 85, ( + 21 ) AS col0
----
85
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT DISTINCT + 26 * 74 + + COUNT( * ) + ( - - 34 ) * - 91 - - CASE - 43 WHEN + ( + - 55 ) * + COUNT( * ) THEN 82 / MAX( ALL + 32 ) WHEN - 46 THEN - 93 WHEN COUNT( * ) THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT + 26 * 74 + + COUNT ( * ) + ( - - 34 ) * - 91 - - CASE - 43 WHEN + ( + - 55 ) * + COUNT ( * ) THEN 82 / MAX ( ALL + 32 ) WHEN - 46 THEN - 93 WHEN COUNT ( * ) THEN NULL ELSE NULL END col2
----
NULL

query II rowsort
SELECT - 65 AS col0, + 0
----
-65
0

query I rowsort
SELECT - 43 + 90 + - + 27
----
20

query II rowsort
SELECT DISTINCT ( ( - - 16 ) ), - 46 AS col0
----
16
-46

query I rowsort
SELECT ALL - 33 - + 89 col2
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2341
SELECT DISTINCT + 74 - - 71 DIV COUNT( ALL + 97 ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT + 74 - - 71 / COUNT ( ALL + 97 ) AS col0
----
145

query I rowsort
SELECT 31 - - - 87 AS col1
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2343
SELECT + 31 DIV 85 + + COALESCE ( - 17, 0 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2343
SELECT + 31 / 85 + + COALESCE ( - 17, 0 ) AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2344
SELECT + COALESCE ( - + MAX( - - 46 ), COUNT( * ) ) + + 83 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2344
SELECT + COALESCE ( - + MAX ( - - 46 ), COUNT ( * ) ) + + 83 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 50 * + 49
----
2450

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL - MAX( DISTINCT - - 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL - MAX ( DISTINCT - - 47 ) AS col1
----
-47

query II rowsort
SELECT + 56 AS col1, 92
----
56
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT 69 * + MIN( DISTINCT 53 ) col2
----
3657

skipif mysql # not compatible
query I rowsort label-2348
SELECT 69 * + MIN ( DISTINCT 53 ) col2
----
3657

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL 8 * - - 36 * - + ( 27 ) * + 30 * + COUNT( * ) + COALESCE ( - 41, - - 5 * 24 + + COUNT( * ) - 15 + 10 ) + - NULLIF ( - 95, + ( - COALESCE ( - MAX( ALL CASE + 54 WHEN 38 * 71 THEN NULL WHEN 48 THEN 60 + - 74 ELSE NULL END ), 77 ) ) / 32 - + 18 )
----
-233226

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL 8 * - - 36 * - + ( 27 ) * + 30 * + COUNT ( * ) + COALESCE ( - 41, - - 5 * 24 + + COUNT ( * ) - 15 + 10 ) + - NULLIF ( - 95, + ( - COALESCE ( - MAX ( ALL CASE + 54 WHEN 38 * 71 THEN NULL WHEN 48 THEN 60 + - 74 ELSE NULL END ), 77 ) ) / 32 - + 18 )
----
-233226

query I rowsort
SELECT ( + + 88 ) * + + CASE - NULLIF ( + 2, + 33 ) WHEN + 71 + + 18 THEN - - NULLIF ( - - 8, + + 58 + 56 ) WHEN + 29 + + 9 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 84 * - - 1
----
84

query I rowsort
SELECT DISTINCT 1 * + 34 * + - 66
----
-2244

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

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

query II rowsort
SELECT DISTINCT - 29 AS col1, + 62 AS col2
----
-29
62

query I rowsort
SELECT 68 * - 2 * + ( + + 60 ) * 69
----
-563040

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT 4 * MIN( ALL + 58 ) AS col2
----
232

skipif mysql # not compatible
query I rowsort label-2356
SELECT 4 * MIN ( ALL + 58 ) AS col2
----
232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2357
SELECT 4 AS col0, + MAX( + + 8 ) + + CAST( NULL AS SIGNED )
----
4
NULL

skipif mysql # not compatible
query II rowsort label-2357
SELECT 4 AS col0, + MAX ( + + 8 ) + + CAST ( NULL AS INTEGER )
----
4
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2358
SELECT + 9 AS col2, - NULLIF ( COUNT( * ), + 87 * + 16 / + + 11 + 51 * + 15 ) AS col1
----
9
-1

skipif mysql # not compatible
query II rowsort label-2358
SELECT + 9 AS col2, - NULLIF ( COUNT ( * ), + 87 * + 16 / + + 11 + 51 * + 15 ) AS col1
----
9
-1

query II rowsort
SELECT ALL - 23, 1 * + 37 col0
----
-23
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT DISTINCT + SUM( - + 9 ) + 76 col2
----
67

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT + SUM ( - + 9 ) + 76 col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT 35 + + - CASE + 75 WHEN + - 36 THEN 33 + + + 44 ELSE 47 * - COUNT( * ) + 51 END + - 25 col2
----
6

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT 35 + + - CASE + 75 WHEN + - 36 THEN 33 + + + 44 ELSE 47 * - COUNT ( * ) + 51 END + - 25 col2
----
6

query I rowsort
SELECT ALL 94 + + ( + + 7 ) col2
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-2363
SELECT ALL - NULLIF ( + 63, + 4 ) * 0, 25 * MIN( - 11 ) AS col2
----
0
-275

skipif mysql # not compatible
query II rowsort label-2363
SELECT ALL - NULLIF ( + 63, + 4 ) * 0, 25 * MIN ( - 11 ) AS col2
----
0
-275

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT DISTINCT COUNT( * ) + ( - 87 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT COUNT ( * ) + ( - 87 ) AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2366
SELECT + 54 * - COALESCE ( ( + 35 ), 60 * - + 76 DIV + + 59 ) + MIN( + 34 ) + - 80 + - 42 * 6
----
-2188

skipif mysql # not compatible
query I rowsort label-2366
SELECT + 54 * - COALESCE ( ( + 35 ), 60 * - + 76 / + + 59 ) + MIN ( + 34 ) + - 80 + - 42 * 6
----
-2188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2367
SELECT 12 AS col2, 93 + - 34 * + 93 / 65 - + 35 - 68 * - CAST( NULL AS SIGNED ) + - - 87 AS col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-2367
SELECT 12 AS col2, 93 + - 34 * + 93 / 65 - + 35 - 68 * - CAST ( NULL AS INTEGER ) + - - 87 AS col2
----
12
NULL

query I rowsort
SELECT ALL - 3 * 94
----
-282

query I rowsort
SELECT + 82 + - 84 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2370
SELECT MIN( DISTINCT 5 ) DIV SUM( + 15 ) col0, - 7 AS col2
----
0
-7

skipif mysql # not compatible
query II rowsort label-2370
SELECT MIN ( DISTINCT 5 ) / SUM ( + 15 ) col0, - 7 AS col2
----
0
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2371
SELECT + ( + 44 ) * - CAST( NULL AS SIGNED ) + + 57 + 62 / + - 12 AS col2, 4 AS col2, + 29
----
NULL
4
29

skipif mysql # not compatible
query III rowsort label-2371
SELECT + ( + 44 ) * - CAST ( NULL AS INTEGER ) + + 57 + 62 / + - 12 AS col2, 4 AS col2, + 29
----
NULL
4
29

onlyif mysql # aggregate syntax: 
query II rowsort label-2372
SELECT DISTINCT + 69, - MIN( DISTINCT 32 ) * COUNT( + 4 ) AS col0
----
69
-32

skipif mysql # not compatible
query II rowsort label-2372
SELECT DISTINCT + 69, - MIN ( DISTINCT 32 ) * COUNT ( + 4 ) AS col0
----
69
-32

query I rowsort
SELECT ALL 74 * + - 4 + + 55
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL - ( + 16 ) * + NULLIF ( + + MAX( DISTINCT - 48 ), + - COUNT( * ) + - 98 + + + 91 * - + COUNT( * ) )
----
768

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL - ( + 16 ) * + NULLIF ( + + MAX ( DISTINCT - 48 ), + - COUNT ( * ) + - 98 + + + 91 * - + COUNT ( * ) )
----
768

query I rowsort
SELECT 74 + - 61
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT ALL - + 87 DIV 67 * 47 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL - + 87 / 67 * 47 AS col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2377
SELECT ALL 1 - + CASE + + CASE - COALESCE ( - - 67, + 73 ) WHEN - 3 * - 24 THEN NULLIF ( + MIN( DISTINCT - 5 ), + COUNT( * ) * COUNT( * ) ) * 32 ELSE NULL END WHEN + 68 THEN - 33 - + 58 WHEN + 14 DIV - 88 + + 91 THEN COUNT( * ) DIV ( 98 DIV + 71 ) + + 13 ELSE - 48 END AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL 1 - + CASE + + CASE - COALESCE ( - - 67, + 73 ) WHEN - 3 * - 24 THEN NULLIF ( + MIN ( DISTINCT - 5 ), + COUNT ( * ) * COUNT ( * ) ) * 32 ELSE NULL END WHEN + 68 THEN - 33 - + 58 WHEN + 14 / - 88 + + 91 THEN COUNT ( * ) / ( 98 / + 71 ) + + 13 ELSE - 48 END AS col2
----
49

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2379
SELECT 67 + + 22 col0, 52 DIV - - 34 AS col1
----
89
1

skipif mysql # not compatible
query II rowsort label-2379
SELECT 67 + + 22 col0, 52 / - - 34 AS col1
----
89
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2380
SELECT DISTINCT - - 58 - - CASE 43 WHEN - SUM( + - 92 ) + CASE + COUNT( * ) WHEN - - 7 * + 17 * - - COUNT( * ) * + CAST( - 40 AS SIGNED ) + + 19 * CAST( CAST( + COALESCE ( 67, 28 * 63 + COUNT( * ) ) AS SIGNED ) AS SIGNED ) - COUNT( * ) THEN NULL WHEN 67 + + COUNT( - 7 ) * 77 THEN NULL WHEN + COUNT( * ) THEN 5 + + 9 * 84 ELSE CASE 64 WHEN 29 THEN + 29 * - 54 + - 29 END END + - 45 THEN - 4 * 38 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT - - 58 - - CASE 43 WHEN - SUM ( + - 92 ) + CASE + COUNT ( * ) WHEN - - 7 * + 17 * - - COUNT ( * ) * + CAST ( - 40 AS INTEGER ) + + 19 * CAST ( CAST ( + COALESCE ( 67, 28 * 63 + COUNT ( * ) ) AS INTEGER ) AS INTEGER ) - COUNT ( * ) THEN NULL WHEN 67 + + COUNT ( - 7 ) * 77 THEN NULL WHEN + COUNT ( * ) THEN 5 + + 9 * 84 ELSE CASE 64 WHEN 29 THEN + 29 * - 54 + - 29 END END + - 45 THEN - 4 * 38 ELSE NULL END
----
NULL

query I rowsort
SELECT + 98 + + + 86 AS col1
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT COUNT( * ) - + + 3 * + 15
----
-44

skipif mysql # not compatible
query I rowsort label-2382
SELECT COUNT ( * ) - + + 3 * + 15
----
-44

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT + 81 + + CASE - 87 WHEN - 61 THEN - - 42 * - MIN( ALL + 82 ) * ( + 16 ) WHEN - + 62 / - 84 * AVG ( ALL 37 ) + + CASE + COUNT( * ) + 78 WHEN ( - ( - COALESCE ( 73, + 94, - CASE - 23 WHEN 44 THEN - 61 WHEN 45 THEN NULL ELSE ( - 3 ) END ) ) ) + + 58 * - 66 THEN - 68 ELSE 85 * - 50 END THEN + CASE 68 WHEN - 85 + + ( + NULLIF ( + 95, + CAST( 17 AS SIGNED ) * 52 ) ) THEN CASE 68 WHEN - 47 THEN + 34 + - COALESCE ( COUNT( DISTINCT 31 ), - 68 / - 27 + 45, COUNT( * ) + - 22 ) END * SUM( ALL 52 ) END * COUNT( * ) + + 63 WHEN + 1 - + 72 * - 64 THEN NULL ELSE NULL END + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT + 81 + + CASE - 87 WHEN - 61 THEN - - 42 * - MIN ( ALL + 82 ) * ( + 16 ) WHEN - + 62 / - 84 * AVG ( ALL 37 ) + + CASE + COUNT ( * ) + 78 WHEN ( - ( - COALESCE ( 73, + 94, - CASE - 23 WHEN 44 THEN - 61 WHEN 45 THEN NULL ELSE ( - 3 ) END ) ) ) + + 58 * - 66 THEN - 68 ELSE 85 * - 50 END THEN + CASE 68 WHEN - 85 + + ( + NULLIF ( + 95, + CAST ( 17 AS INTEGER ) * 52 ) ) THEN CASE 68 WHEN - 47 THEN + 34 + - COALESCE ( COUNT ( DISTINCT 31 ), - 68 / - 27 + 45, COUNT ( * ) + - 22 ) END * SUM ( ALL 52 ) END * COUNT ( * ) + + 63 WHEN + 1 - + 72 * - 64 THEN NULL ELSE NULL END + 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL - + 32 * + + 85 + COUNT( * ) * + + CASE - 18 WHEN - - 68 + - 43 - + - COUNT( * ) * 15 THEN NULL ELSE + 64 END
----
-2656

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL - + 32 * + + 85 + COUNT ( * ) * + + CASE - 18 WHEN - - 68 + - 43 - + - COUNT ( * ) * 15 THEN NULL ELSE + 64 END
----
-2656

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2386
SELECT 23 + + 70 + - - 40 DIV NULLIF ( + 79, + CAST( NULL AS DECIMAL ) )
----
93

skipif mysql # not compatible
query I rowsort label-2386
SELECT 23 + + 70 + - - 40 / NULLIF ( + 79, + CAST ( NULL AS REAL ) )
----
93

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

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

query II rowsort
SELECT DISTINCT - 82, - 62 AS col1
----
-82
-62

query I rowsort
SELECT - 48 + - COALESCE ( - 8, - + 32 * 13 - + 19 + - 80 * - - 90 - - 28 )
----
-40

query I rowsort
SELECT DISTINCT - - 66 * + 37 AS col2
----
2442

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

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

query I rowsort
SELECT ALL - + 40 * + ( - - 21 )
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT - 78 * + 34 * - COUNT( DISTINCT + 1 ) * + + 5
----
13260

skipif mysql # not compatible
query I rowsort label-2393
SELECT - 78 * + 34 * - COUNT ( DISTINCT + 1 ) * + + 5
----
13260

onlyif mysql # aggregate syntax: 
query II rowsort label-2394
SELECT ALL + ( 86 ) AS col2, NULLIF ( 61, - 77 ) + + COALESCE ( + COUNT( * ), + 58 * COUNT( - 23 ) ) + - - 31 * - - 79 - COALESCE ( 16, + 85 + - 86 ) AS col2
----
86
2495

skipif mysql # not compatible
query II rowsort label-2394
SELECT ALL + ( 86 ) AS col2, NULLIF ( 61, - 77 ) + + COALESCE ( + COUNT ( * ), + 58 * COUNT ( - 23 ) ) + - - 31 * - - 79 - COALESCE ( 16, + 85 + - 86 ) AS col2
----
86
2495

query I rowsort
SELECT COALESCE ( 86, + 63 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2396
SELECT SUM( + 67 ) * - CAST( NULL AS SIGNED ) + AVG ( DISTINCT + + CAST( 4 AS DECIMAL ) ) / ( - 18 ) + + + CASE + + 67 WHEN + + 65 THEN NULL WHEN 94 * - 28 THEN - 82 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2396
SELECT SUM ( + 67 ) * - CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + + CAST ( 4 AS REAL ) ) / ( - 18 ) + + + CASE + + 67 WHEN + + 65 THEN NULL WHEN 94 * - 28 THEN - 82 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 48 * - 48
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL 13 * - - 6 + - 2 + + + 4 * - - COUNT( * ) * - + 66 col0
----
-188

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL 13 * - - 6 + - 2 + + + 4 * - - COUNT ( * ) * - + 66 col0
----
-188

query I rowsort
SELECT ALL 19 * + 94 + 85 col2
----
1871

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT 98 * + 91 * - 44 * - 13 + + + COUNT( * ) * - COUNT( * ) + - - 87 + + 81 * - - 69 * + 4
----
5123538

skipif mysql # not compatible
query I rowsort label-2400
SELECT 98 * + 91 * - 44 * - 13 + + + COUNT ( * ) * - COUNT ( * ) + - - 87 + + 81 * - - 69 * + 4
----
5123538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT ALL ( NULLIF ( + 79, + COUNT( * ) + - 83 ) ) * - 50 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL ( NULLIF ( + 79, + COUNT ( * ) + - 83 ) ) * - 50 + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT ALL 25 * + 78 * 34 + - - CAST( + MIN( 32 ) AS SIGNED )
----
66332

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL 25 * + 78 * 34 + - - CAST ( + MIN ( 32 ) AS INTEGER )
----
66332

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT - 50 * - COUNT( * ) * + 49 + - + 98
----
2352

skipif mysql # not compatible
query I rowsort label-2403
SELECT - 50 * - COUNT ( * ) * + 49 + - + 98
----
2352

query I rowsort
SELECT ALL 47 * + 69
----
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT - 53 * + 6 * - COUNT( * ) * + - 16 AS col0
----
-5088

skipif mysql # not compatible
query I rowsort label-2405
SELECT - 53 * + 6 * - COUNT ( * ) * + - 16 AS col0
----
-5088

query I rowsort
SELECT 62 * + 23 * - 84 * - - 64 + + 88
----
-7666088

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT SUM( NULLIF ( - 76, - 72 ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-2407
SELECT SUM ( NULLIF ( - 76, - 72 ) ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL - 15 * 59 + MAX( - 5 ) + 9 + 16 col0
----
-865

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - 15 * 59 + MAX ( - 5 ) + 9 + 16 col0
----
-865

onlyif mysql # DIV for integer division: 
query II rowsort label-2409
SELECT + 11 + - 11 col0, 8 * - 26 * 50 + + + 24 DIV + - 84 * - ( + 98 )
----
0
-10400

skipif mysql # not compatible
query II rowsort label-2409
SELECT + 11 + - 11 col0, 8 * - 26 * 50 + + + 24 / + - 84 * - ( + 98 )
----
0
-10400

onlyif mysql # aggregate syntax: 
query II rowsort label-2410
SELECT ALL COUNT( * ) + 43 AS col2, + 19 * + + 71
----
44
1349

skipif mysql # not compatible
query II rowsort label-2410
SELECT ALL COUNT ( * ) + 43 AS col2, + 19 * + + 71
----
44
1349

query I rowsort
SELECT + 2 + - - 87
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL COUNT( * ) * + 37 * 31 AS col2
----
1147

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL COUNT ( * ) * + 37 * 31 AS col2
----
1147

query I rowsort
SELECT ALL + COALESCE ( - 91, + 44 )
----
-91

query I rowsort
SELECT + - 55 * + 65 + - 9 * 27 AS col2
----
-3818

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2415
SELECT DISTINCT NULLIF ( CAST( NULL AS DECIMAL ), - ( 86 ) ) - - - ( - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT NULLIF ( CAST ( NULL AS REAL ), - ( 86 ) ) - - - ( - 36 )
----
NULL

query I rowsort
SELECT ALL + 16 * + + 72 AS col0
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT - - 5 + - 2 * - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-2417
SELECT - - 5 + - 2 * - COUNT ( * )
----
7

query I rowsort
SELECT - 79 * - + 90 + 19 AS col0
----
7129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2419
SELECT DISTINCT COUNT( - + 71 ) * + + 75 + + CAST( NULL AS SIGNED ) * - - 30 * - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT COUNT ( - + 71 ) * + + 75 + + CAST ( NULL AS INTEGER ) * - - 30 * - 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2420
SELECT DISTINCT + COUNT( * ) DIV 58 - + ( 87 ) * + - 49 * + 61
----
260043

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT + COUNT ( * ) / 58 - + ( 87 ) * + - 49 * + 61
----
260043

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2422
SELECT - + 78 DIV + - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT - + 78 / + - 98 AS col0
----
0

query I rowsort
SELECT DISTINCT + - ( - 50 ) + + 59 + COALESCE ( 96, 62 ) + + - 67
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT ALL NULLIF ( + 87, + + COUNT( * ) / - 15 + + 95 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL NULLIF ( + 87, + + COUNT ( * ) / - 15 + + 95 ) AS col0
----
87

query I rowsort
SELECT + 67 * + 55 col0
----
3685

query I rowsort
SELECT + COALESCE ( ( - + NULLIF ( - 80, + 60 ) ), - - 13 ) + + 81 * + - 23
----
-1783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2427
SELECT DISTINCT - COUNT( * ) + - + 32 DIV + 57 * + + 9
----
-1

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT - COUNT ( * ) + - + 32 / + 57 * + + 9
----
-1

query I rowsort
SELECT ALL - 38 * 95
----
-3610

query I rowsort
SELECT - 25 * - + 98 AS col1
----
2450

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT ALL + 80 DIV 48 + + - 9
----
-8

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL + 80 / 48 + + - 9
----
-8

query I rowsort
SELECT ALL + NULLIF ( - 15, - 64 / 2 + 97 - + + 63 )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2432
SELECT DISTINCT COUNT( * ) DIV 78 + - 66, 31 AS col0
----
-66
31

skipif mysql # not compatible
query II rowsort label-2432
SELECT DISTINCT COUNT ( * ) / 78 + - 66, 31 AS col0
----
-66
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL + CASE 16 WHEN + - 23 THEN NULL WHEN + + 47 THEN + 53 WHEN - 5 / + 99 - + + COALESCE ( 11, COUNT( * ) ) * + 41 THEN 22 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL + CASE 16 WHEN + - 23 THEN NULL WHEN + + 47 THEN + 53 WHEN - 5 / + 99 - + + COALESCE ( 11, COUNT ( * ) ) * + 41 THEN 22 ELSE NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2435
SELECT ALL COUNT( - 3 ) DIV + 68 * + MAX( ALL - + 42 ) + + 27 DIV - MIN( DISTINCT + 87 ) AS col1, + SUM( + - ( + 33 ) ) AS col0
----
0
-33

skipif mysql # not compatible
query II rowsort label-2435
SELECT ALL COUNT ( - 3 ) / + 68 * + MAX ( ALL - + 42 ) + + 27 / - MIN ( DISTINCT + 87 ) AS col1, + SUM ( + - ( + 33 ) ) AS col0
----
0
-33

query I rowsort
SELECT DISTINCT + 21 * - 49
----
-1029

query II rowsort
SELECT + 65 AS col0, - 36
----
65
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-2438
SELECT + 59 DIV 56 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2438
SELECT + 59 / 56 AS col2
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2440
SELECT - 5 * - ( 64 ), CASE 70 WHEN ( 51 ) THEN NULL ELSE 38 + COUNT( * ) * - - CAST( NULLIF ( CASE WHEN NOT - 49 IS NULL THEN ( 90 ) * 51 WHEN NOT 63 * 83 + 48 <= - 34 THEN - 26 END, 89 ) AS SIGNED ) END - + 45 * + 33 AS col2
----
320
3143

skipif mysql # not compatible
query II rowsort label-2440
SELECT - 5 * - ( 64 ), CASE 70 WHEN ( 51 ) THEN NULL ELSE 38 + COUNT ( * ) * - - CAST ( NULLIF ( CASE WHEN NOT - 49 IS NULL THEN ( 90 ) * 51 WHEN NOT 63 * 83 + 48 <= - 34 THEN - 26 END, 89 ) AS INTEGER ) END - + 45 * + 33 AS col2
----
320
3143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2441
SELECT - 23 DIV 20 * - COUNT( * ) * + + 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-2441
SELECT - 23 / 20 * - COUNT ( * ) * + + 28 AS col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2442
SELECT + COUNT( * ), - ( + 41 ) * - COUNT( * ) + - 12 DIV - - 40 AS col2, - NULLIF ( + 87, 47 ) col1
----
1
41
-87

skipif mysql # not compatible
query III rowsort label-2442
SELECT + COUNT ( * ), - ( + 41 ) * - COUNT ( * ) + - 12 / - - 40 AS col2, - NULLIF ( + 87, 47 ) col1
----
1
41
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL - 6 * - ( - - 61 ) * + MAX( DISTINCT + 39 ) AS col1
----
14274

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL - 6 * - ( - - 61 ) * + MAX ( DISTINCT + 39 ) AS col1
----
14274

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT 35 * 89 * - COUNT( * ) * 21 * - 63 * + 51
----
210178395

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT 35 * 89 * - COUNT ( * ) * 21 * - 63 * + 51
----
210178395

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT + ( - 82 ) DIV - 18
----
4

skipif mysql # not compatible
query I rowsort label-2445
SELECT + ( - 82 ) / - 18
----
4

query II rowsort
SELECT DISTINCT + - ( + 21 ) * 24 col0, + 85
----
-504
85

query I rowsort
SELECT - 53 + - 10
----
-63

query I rowsort
SELECT + 23 * + 58 AS col2
----
1334

query I rowsort
SELECT ALL 92 * + 76
----
6992

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT - + SUM( 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-2450
SELECT - + SUM ( 22 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2451
SELECT ALL 29 AS col1, + ( - - 70 ) * - CAST( NULL AS DECIMAL ) + - - COUNT( * ) AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-2451
SELECT ALL 29 AS col1, + ( - - 70 ) * - CAST ( NULL AS REAL ) + - - COUNT ( * ) AS col1
----
29
NULL

query II rowsort
SELECT + - 48 * 30 - - 1, 2 AS col1
----
-1439
2

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

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

query II rowsort
SELECT DISTINCT 35, + 53 AS col0
----
35
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL + COUNT( ALL 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL + COUNT ( ALL 29 ) AS col1
----
1

query II rowsort
SELECT ALL - 96 AS col0, - 85 AS col1
----
-96
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + COUNT( * ) + - COUNT( * ) * CASE COUNT( * ) WHEN + ( - 47 ) THEN + - 73 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT + COUNT ( * ) + - COUNT ( * ) * CASE COUNT ( * ) WHEN + ( - 47 ) THEN + - 73 END AS col0
----
NULL

query I rowsort
SELECT 86 + + + 30 AS col1
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT ALL ( + 40 ) * COUNT( - 11 ) DIV - 90 - - 73 * + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL ( + 40 ) * COUNT ( - 11 ) / - 90 - - 73 * + + COUNT ( * )
----
73

query I rowsort
SELECT 75 + - 35 * + 46
----
-1535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2461
SELECT 7 + + 98 AS col0, CAST( - ( - 21 ) AS SIGNED ) + - ( 29 ) + - COUNT( * ) * 29 * - NULLIF ( + - NULLIF ( 78, + - 96 + 27 ), 88 ) AS col2
----
105
-2270

skipif mysql # not compatible
query II rowsort label-2461
SELECT 7 + + 98 AS col0, CAST ( - ( - 21 ) AS INTEGER ) + - ( 29 ) + - COUNT ( * ) * 29 * - NULLIF ( + - NULLIF ( 78, + - 96 + 27 ), 88 ) AS col2
----
105
-2270

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT ALL COUNT( * ) + + 65 + + + 6 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL COUNT ( * ) + + 65 + + + 6 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT COUNT( + - 33 ) + + + 85 + - ( MAX( ALL - 42 ) )
----
128

skipif mysql # not compatible
query I rowsort label-2463
SELECT COUNT ( + - 33 ) + + + 85 + - ( MAX ( ALL - 42 ) )
----
128

query I rowsort
SELECT DISTINCT 60 * 64
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL + MIN( DISTINCT + - 63 ) + 69 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL + MIN ( DISTINCT + - 63 ) + 69 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT SUM( ALL + + 60 ) + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-2466
SELECT SUM ( ALL + + 60 ) + COUNT ( * )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2467
SELECT 99 / + 21 * 42 + + - 13 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2467
SELECT 99 / + 21 * 42 + + - 13 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 22 * - 93
----
-2046

query I rowsort
SELECT 28 + + ( + 73 ) * ( + 97 )
----
7109

query I rowsort
SELECT DISTINCT + CASE + + 15 WHEN - 54 * + 41 THEN + 76 WHEN NULLIF ( 34, + - 98 * - 94 ) THEN + 56 END - - + 68
----
NULL

query I rowsort
SELECT 72 * + + 34 col2
----
2448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2472
SELECT ALL + - COUNT( * ) * + 79 - + - 44 - - 56 * - CAST( - - CASE + - 94 WHEN COALESCE ( - 48, - 5 ) - + - SUM( ALL - 81 ) * - - COUNT( * ) THEN 11 * + 57 + 33 * + 97 END AS SIGNED ) - 23 * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL + - COUNT ( * ) * + 79 - + - 44 - - 56 * - CAST ( - - CASE + - 94 WHEN COALESCE ( - 48, - 5 ) - + - SUM ( ALL - 81 ) * - - COUNT ( * ) THEN 11 * + 57 + 33 * + 97 END AS INTEGER ) - 23 * - 34
----
NULL

query I rowsort
SELECT 52 * + + 35
----
1820

onlyif mysql # aggregate syntax: 
query II rowsort label-2474
SELECT + ( - CASE - + AVG ( ALL + 34 ) WHEN + + 67 THEN - 32 ELSE NULL END ) + + COUNT( * ) col1, COUNT( - 5 ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2474
SELECT + ( - CASE - + AVG ( ALL + 34 ) WHEN + + 67 THEN - 32 ELSE NULL END ) + + COUNT ( * ) col1, COUNT ( - 5 ) col1
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT ALL + - 1 DIV + 77 * ( 49 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL + - 1 / + 77 * ( 49 ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2476
SELECT DISTINCT + 66 DIV - 81 - - 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT + 66 / - 81 - - 38 AS col0
----
38

query I rowsort
SELECT ALL + 33 + - 22 col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2478
SELECT ALL - 22 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL - 22 / - 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2479
SELECT - - NULLIF ( 47, + 30 * - CAST( NULL AS SIGNED ) * + ( + + COUNT( - + 37 ) ) + + - 33 ) col1
----
47

skipif mysql # not compatible
query I rowsort label-2479
SELECT - - NULLIF ( 47, + 30 * - CAST ( NULL AS INTEGER ) * + ( + + COUNT ( - + 37 ) ) + + - 33 ) col1
----
47

query II rowsort
SELECT ALL 53 * 94 AS col0, - 2 + + 14 col1
----
4982
12

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

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

query I rowsort
SELECT ALL - 73 + 81
----
8

query I rowsort
SELECT ALL + + 46 + 56
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT 0 * + COUNT( * ) * MIN( ALL - NULLIF ( - 66, - + 65 + 5 + 82 ) ) * - 98 + + - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2484
SELECT 0 * + COUNT ( * ) * MIN ( ALL - NULLIF ( - 66, - + 65 + 5 + 82 ) ) * - 98 + + - 19 AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2485
SELECT ALL + 81 * + 26 + 17 + - CASE - CAST( NULL AS SIGNED ) WHEN + + 54 + + 0 THEN - 32 * - 14 + + + CAST( NULL AS SIGNED ) END AS col1, 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2485
SELECT ALL + 81 * + 26 + 17 + - CASE - CAST ( NULL AS INTEGER ) WHEN + + 54 + + 0 THEN - 32 * - 14 + + + CAST ( NULL AS INTEGER ) END AS col1, 0 AS col1
----
NULL
0

query I rowsort
SELECT ALL - 7 + + - 40 AS col0
----
-47

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

skipif mysql # not compatible
query I rowsort label-2487
SELECT - SUM ( CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL + 47 + + 22 * + 57
----
1301

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2491
SELECT ALL CAST( - + NULLIF ( - 17, 16 ) AS SIGNED ) * - + 63 AS col1
----
-1071

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL CAST ( - + NULLIF ( - 17, 16 ) AS INTEGER ) * - + 63 AS col1
----
-1071

query I rowsort
SELECT ALL 30 - - - 9
----
21

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

skipif mysql # not compatible
query I rowsort label-2493
SELECT 87 + COUNT ( * ) + COUNT ( * ) AS col2
----
89

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

skipif mysql # not compatible
query I rowsort label-2494
SELECT - MAX ( + 61 )
----
-61

query I rowsort
SELECT DISTINCT 6 * - - 5 col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT DISTINCT MAX( ALL - 14 ) - - ( + 72 ) * + 75
----
5386

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT MAX ( ALL - 14 ) - - ( + 72 ) * + 75
----
5386

query I rowsort
SELECT ALL 24 * + - 95 AS col1
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT 3 * CASE - 31 WHEN - + 66 THEN + 21 / COALESCE ( + 64, + 62 ) / - 32 * - NULLIF ( + COALESCE ( 6, - 54 + + NULLIF ( 49, - CASE COUNT( * ) WHEN - COUNT( * ) + - 99 * 11 THEN NULL WHEN - 4 * - 54 THEN NULL ELSE - COALESCE ( - 7, + 92 / - AVG ( DISTINCT 94 ), - 12 ) + + 99 END * + 51 ) * ( - 94 ), 14 ), + 42 ) WHEN 77 * - COUNT( DISTINCT + ( - 22 ) ) + - 17 THEN - AVG ( ( + 43 ) ) + 31 WHEN - 92 + 59 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT 3 * CASE - 31 WHEN - + 66 THEN + 21 / COALESCE ( + 64, + 62 ) / - 32 * - NULLIF ( + COALESCE ( 6, - 54 + + NULLIF ( 49, - CASE COUNT ( * ) WHEN - COUNT ( * ) + - 99 * 11 THEN NULL WHEN - 4 * - 54 THEN NULL ELSE - COALESCE ( - 7, + 92 / - AVG ( DISTINCT 94 ), - 12 ) + + 99 END * + 51 ) * ( - 94 ), 14 ), + 42 ) WHEN 77 * - COUNT ( DISTINCT + ( - 22 ) ) + - 17 THEN - AVG ( ( + 43 ) ) + 31 WHEN - 92 + 59 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT 38 + + COUNT( ALL - - 61 ) + + 35 * + 11 + - 10 + 97
----
511

skipif mysql # not compatible
query I rowsort label-2499
SELECT 38 + + COUNT ( ALL - - 61 ) + + 35 * + 11 + - 10 + 97
----
511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT ALL - 0 * 19 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL - 0 * 19 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 70 * + + 35 AS col0
----
2450

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT DISTINCT - MIN( DISTINCT - 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT - MIN ( DISTINCT - 87 ) AS col2
----
87

query I rowsort
SELECT ( + + 48 ) - - - 89
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT SUM( + - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-2504
SELECT SUM ( + - 82 )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2505
SELECT ALL - 13 DIV - 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL - 13 / - 26 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2506
SELECT 47 / + + CASE + - 10 WHEN + 5 THEN - CAST( NULL AS DECIMAL ) END * + ( ( - 91 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT 47 / + + CASE + - 10 WHEN + 5 THEN - CAST ( NULL AS REAL ) END * + ( ( - 91 ) )
----
NULL

query I rowsort
SELECT 18 * - + NULLIF ( - - 69, + 74 )
----
-1242

query II rowsort
SELECT + COALESCE ( - + 47, - 22 ), + 0 + - 25 AS col2
----
-47
-25

query II rowsort
SELECT ALL - 77 AS col0, + 87 * + + 48 * + 24 * - - 54 AS col1
----
-77
5412096

query I rowsort
SELECT - 58 - - 0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT ALL + + 74 + - CASE - 67 WHEN + + ( 60 ) + - 35 * + 13 * 89 THEN CAST( NULL AS SIGNED ) + + 8 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL + + 74 + - CASE - 67 WHEN + + ( 60 ) + - 35 * + 13 * 89 THEN CAST ( NULL AS INTEGER ) + + 8 END AS col0
----
NULL

query I rowsort
SELECT ALL - 62 + 80 col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2513
SELECT DISTINCT - - 23 + COUNT( - + 64 ) DIV + 85 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT - - 23 + COUNT ( - + 64 ) / + 85 AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2514
SELECT ALL + 93 * - ( 38 ) + - 2 - + COUNT( * ) * 92 AS col0, - 43 AS col0
----
-3628
-43

skipif mysql # not compatible
query II rowsort label-2514
SELECT ALL + 93 * - ( 38 ) + - 2 - + COUNT ( * ) * 92 AS col0, - 43 AS col0
----
-3628
-43

query I rowsort
SELECT DISTINCT + 35 + - 53 + - - 62 - + 24
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL - SUM( ALL 32 ) + COUNT( * ) * 63 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - SUM ( ALL 32 ) + COUNT ( * ) * 63 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT + + 96 + + MAX( DISTINCT 79 ) * + + 32
----
2624

skipif mysql # not compatible
query I rowsort label-2517
SELECT + + 96 + + MAX ( DISTINCT 79 ) * + + 32
----
2624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2518
SELECT - + 91 - + COUNT( ALL - 83 ) + COALESCE ( - 38, 22 ) DIV 89 * 41 DIV 95 * + 15
----
-92

skipif mysql # not compatible
query I rowsort label-2518
SELECT - + 91 - + COUNT ( ALL - 83 ) + COALESCE ( - 38, 22 ) / 89 * 41 / 95 * + 15
----
-92

query I rowsort
SELECT - - 16 * + + 72 * + + 72 col1
----
82944

query I rowsort
SELECT ALL - 10 + - 61 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT - + 47 + MAX( - 94 ) + + COUNT( * ) * + ( - 6 ) AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-2521
SELECT - + 47 + MAX ( - 94 ) + + COUNT ( * ) * + ( - 6 ) AS col0
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-2522
SELECT DISTINCT - 77 DIV - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT - 77 / - 86 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL - 61 + - MAX( DISTINCT 7 ) + + 6 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL - 61 + - MAX ( DISTINCT 7 ) + + 6 AS col0
----
-62

query I rowsort
SELECT ALL + 43 + + - 49 AS col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2525
SELECT DISTINCT - 89 DIV - - 61
----
-1

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT - 89 / - - 61
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT CASE + 45 WHEN - COUNT( * ) * - + CASE - 13 WHEN - - 9 THEN - 85 * + - 14 END * + SUM( - + 77 ) - - COUNT( * ) THEN - 47 WHEN 10 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT CASE + 45 WHEN - COUNT ( * ) * - + CASE - 13 WHEN - - 9 THEN - 85 * + - 14 END * + SUM ( - + 77 ) - - COUNT ( * ) THEN - 47 WHEN 10 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT ALL MIN( - 39 ) - + + 35 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL MIN ( - 39 ) - + + 35 AS col2
----
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL - SUM( - 71 ) * + 40 + + 24 + + + 72
----
2936

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - SUM ( - 71 ) * + 40 + + 24 + + + 72
----
2936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT DISTINCT - CASE + COALESCE ( + - CAST( + + 35 AS SIGNED ), ( + COUNT( * ) ) + + 99 / + - 99 ) WHEN - 43 THEN - 36 END - - 89 * 34 * 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT - CASE + COALESCE ( + - CAST ( + + 35 AS INTEGER ), ( + COUNT ( * ) ) + + 99 / + - 99 ) WHEN - 43 THEN - 36 END - - 89 * 34 * 15 AS col1
----
NULL

query II rowsort
SELECT - 95 AS col2, 89 + - - 65
----
-95
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2532
SELECT ALL ( - CAST( - NULLIF ( + NULLIF ( + ( + COUNT( - 79 ) ), + 50 ), - 86 + - + 56 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL ( - CAST ( - NULLIF ( + NULLIF ( + ( + COUNT ( - 79 ) ), + 50 ), - 86 + - + 56 ) AS INTEGER ) )
----
1

query I rowsort
SELECT + 95 + 44 + + 40 col2
----
179

query I rowsort
SELECT - 6 * - 58
----
348

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

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

query I rowsort
SELECT DISTINCT - 99 * - 21
----
2079

onlyif mysql # aggregate syntax: 
query II rowsort label-2537
SELECT DISTINCT 12 AS col0, + COUNT( * ) + + + 54
----
12
55

skipif mysql # not compatible
query II rowsort label-2537
SELECT DISTINCT 12 AS col0, + COUNT ( * ) + + + 54
----
12
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2538
SELECT + 59 + - NULLIF ( CAST( - + 76 AS SIGNED ), - 68 + 51 ) AS col2, CASE + 52 WHEN 89 * MIN( DISTINCT - - 42 ) THEN - CASE + 89 WHEN + 1 THEN + ( MAX( DISTINCT - COALESCE ( CAST( NULL AS SIGNED ), - 52 + + 72 ) ) ) * COALESCE ( + COUNT( * ), 24 ) + COUNT( * ) ELSE NULL END - - 21 ELSE NULL END + + 27
----
135
NULL

skipif mysql # not compatible
query II rowsort label-2538
SELECT + 59 + - NULLIF ( CAST ( - + 76 AS INTEGER ), - 68 + 51 ) AS col2, CASE + 52 WHEN 89 * MIN ( DISTINCT - - 42 ) THEN - CASE + 89 WHEN + 1 THEN + ( MAX ( DISTINCT - COALESCE ( CAST ( NULL AS INTEGER ), - 52 + + 72 ) ) ) * COALESCE ( + COUNT ( * ), 24 ) + COUNT ( * ) ELSE NULL END - - 21 ELSE NULL END + + 27
----
135
NULL

query I rowsort
SELECT ALL ( + 28 ) AS col1
----
28

query I rowsort
SELECT ALL 70 * - 0
----
0

query I rowsort
SELECT + 76 * 61 * - 28 AS col2
----
-129808

query II rowsort
SELECT ALL + 12, 15 * + + 51 AS col2
----
12
765

query I rowsort
SELECT - 64 + 94 * - - 49
----
4542

query II rowsort
SELECT DISTINCT + 89 AS col2, - 95 AS col2
----
89
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT 9 * - 92 + MAX( ALL + 71 )
----
-757

skipif mysql # not compatible
query I rowsort label-2545
SELECT 9 * - 92 + MAX ( ALL + 71 )
----
-757

query I rowsort
SELECT + 46 * - CASE + 61 WHEN ( + 70 ) * - - 19 THEN - 85 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2547
SELECT ALL + + MIN( + 86 ), + 33 AS col2
----
86
33

skipif mysql # not compatible
query II rowsort label-2547
SELECT ALL + + MIN ( + 86 ), + 33 AS col2
----
86
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2548
SELECT + CASE + + 23 WHEN + 0 THEN + 39 END AS col2, - CAST( COALESCE ( + 52, + COUNT( * ) ) AS SIGNED ) col1
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-2548
SELECT + CASE + + 23 WHEN + 0 THEN + 39 END AS col2, - CAST ( COALESCE ( + 52, + COUNT ( * ) ) AS INTEGER ) col1
----
NULL
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT - 13 * + 38 * + COUNT( * ) + 41 - + 9 * + - 22 AS col2
----
-255

skipif mysql # not compatible
query I rowsort label-2549
SELECT - 13 * + 38 * + COUNT ( * ) + 41 - + 9 * + - 22 AS col2
----
-255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT + COUNT( * ) / 65 + + CASE - MAX( 47 ) WHEN - 62 * - CAST( + 47 AS SIGNED ) THEN - 82 WHEN - 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2550
SELECT + COUNT ( * ) / 65 + + CASE - MAX ( 47 ) WHEN - 62 * - CAST ( + 47 AS INTEGER ) THEN - 82 WHEN - 89 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT ALL - 72 * - 80 * - 28 * - 55 * COUNT( * ) - - 34 + - 42 * - 64 AS col1
----
8873122

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL - 72 * - 80 * - 28 * - 55 * COUNT ( * ) - - 34 + - 42 * - 64 AS col1
----
8873122

query II rowsort
SELECT ALL + - 30 AS col2, 36 + - 29 + + 60 * - - 16 col2
----
-30
967

query I rowsort
SELECT + 69 + - 1
----
68

query I rowsort
SELECT ALL 54 * - 95 + + ( - 18 ) * - 88 + + + 0 + 7 + + 73
----
-3466

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT + - COUNT( * ) * - 75 + - 51 - + MIN( DISTINCT - 11 )
----
35

skipif mysql # not compatible
query I rowsort label-2555
SELECT + - COUNT ( * ) * - 75 + - 51 - + MIN ( DISTINCT - 11 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2556
SELECT 20 * - 32 * + ( COALESCE ( + 86, - - ( + + CAST( + + 63 AS SIGNED ) ) * + 50 * 54 ) ) + 96 * + 10 * - - 18 + + 85 * + CASE - ( 10 ) WHEN 14 * - 41 + - SUM( ALL 77 ) THEN + 93 + 2 ELSE 79 END AS col1
----
-31045

skipif mysql # not compatible
query I rowsort label-2556
SELECT 20 * - 32 * + ( COALESCE ( + 86, - - ( + + CAST ( + + 63 AS INTEGER ) ) * + 50 * 54 ) ) + 96 * + 10 * - - 18 + + 85 * + CASE - ( 10 ) WHEN 14 * - 41 + - SUM ( ALL 77 ) THEN + 93 + 2 ELSE 79 END AS col1
----
-31045

onlyif mysql # DIV for integer division: 
query II rowsort label-2557
SELECT + + 51 DIV + 45, 26 AS col2
----
1
26

skipif mysql # not compatible
query II rowsort label-2557
SELECT + + 51 / + 45, 26 AS col2
----
1
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2558
SELECT + CAST( NULL AS DECIMAL ) col1, 29 DIV MIN( DISTINCT - 27 ) - + - COALESCE ( - + ( + 42 ), + - 7 + + 82 ) AS col1
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-2558
SELECT + CAST ( NULL AS REAL ) col1, 29 / MIN ( DISTINCT - 27 ) - + - COALESCE ( - + ( + 42 ), + - 7 + + 82 ) AS col1
----
NULL
-43

query I rowsort
SELECT - 32 + COALESCE ( + 3, 52 ) * - 39 AS col0
----
-149

query I rowsort
SELECT + 71 * - NULLIF ( - + NULLIF ( + 13, - 96 ), - AVG ( + 70 ) )
----
923

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL + ( + - 32 ) * + CASE ( + 64 ) WHEN + - 59 + - 25 THEN NULL ELSE + MAX( + 0 ) END + 2 - + 55 + 35 + + MAX( DISTINCT + + 23 )
----
5

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL + ( + - 32 ) * + CASE ( + 64 ) WHEN + - 59 + - 25 THEN NULL ELSE + MAX ( + 0 ) END + 2 - + 55 + 35 + + MAX ( DISTINCT + + 23 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT DISTINCT - 20 * - - COUNT( * ) / + CASE - 35 WHEN + AVG ( DISTINCT - - 68 ) THEN + 49 + - 40 + + COUNT( DISTINCT - - 95 ) + - COUNT( * ) END - COUNT( - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT - 20 * - - COUNT ( * ) / + CASE - 35 WHEN + AVG ( DISTINCT - - 68 ) THEN + 49 + - 40 + + COUNT ( DISTINCT - - 95 ) + - COUNT ( * ) END - COUNT ( - 67 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2563
SELECT DISTINCT - 13 * - + 81 + + COALESCE ( - COUNT( * ), + 94 DIV 76 ) - + 98 * 15 DIV 56
----
1026

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT - 13 * - + 81 + + COALESCE ( - COUNT ( * ), + 94 / 76 ) - + 98 * 15 / 56
----
1026

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2564
SELECT DISTINCT 96 * + 15 * + CAST( - 19 AS SIGNED ) * 80 * - ( - + 60 ) AS col2, + 9
----
-131328000
9

skipif mysql # not compatible
query II rowsort label-2564
SELECT DISTINCT 96 * + 15 * + CAST ( - 19 AS INTEGER ) * 80 * - ( - + 60 ) AS col2, + 9
----
-131328000
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL - 84 * + - 27 * + - 48 * COALESCE ( + 87, 5 * 45 - - - SUM( ALL - 53 ) )
----
-9471168

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - 84 * + - 27 * + - 48 * COALESCE ( + 87, 5 * 45 - - - SUM ( ALL - 53 ) )
----
-9471168

query I rowsort
SELECT - 42 * 80 AS col1
----
-3360

query I rowsort
SELECT ALL COALESCE ( + 0, 20, + - 12 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2569
SELECT + MAX( + COALESCE ( 53, - 79 - + 67 ) ) * - - CAST( NULL AS SIGNED ) / 50 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT + MAX ( + COALESCE ( 53, - 79 - + 67 ) ) * - - CAST ( NULL AS INTEGER ) / 50 * COUNT ( * ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT DISTINCT ( - COALESCE ( 19, - MAX( - 30 ) + - COUNT( * ) ) )
----
-19

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT ( - COALESCE ( 19, - MAX ( - 30 ) + - COUNT ( * ) ) )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT - 89 * COUNT( * ) DIV 14 * - 96 AS col1
----
576

skipif mysql # not compatible
query I rowsort label-2572
SELECT - 89 * COUNT ( * ) / 14 * - 96 AS col1
----
576

onlyif mysql # DIV for integer division: 
query I rowsort label-2573
SELECT ALL + 40 DIV - + 93 * + - 32 * + + COALESCE ( + + 73, + 15 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + 40 / - + 93 * + - 32 * + + COALESCE ( + + 73, + 15 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2574
SELECT ALL COALESCE ( - NULLIF ( + 14, - CASE ( + - 68 ) WHEN + COUNT( + 83 ) * - 7 / 25 * + SUM( DISTINCT - COALESCE ( 93, - 14 ) ) THEN 76 / CAST( NULL AS DECIMAL ) * + - COUNT( * ) / 28 WHEN + SUM( ALL + 67 ) THEN NULL END * + MAX( 72 ) + 47 ), 74 * - 44 - COALESCE ( - 21, 2, + 86 + - COUNT( 93 + CASE - 68 WHEN 80 + 52 THEN + 20 ELSE + 45 END ) ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL COALESCE ( - NULLIF ( + 14, - CASE ( + - 68 ) WHEN + COUNT ( + 83 ) * - 7 / 25 * + SUM ( DISTINCT - COALESCE ( 93, - 14 ) ) THEN 76 / CAST ( NULL AS REAL ) * + - COUNT ( * ) / 28 WHEN + SUM ( ALL + 67 ) THEN NULL END * + MAX ( 72 ) + 47 ), 74 * - 44 - COALESCE ( - 21, 2, + 86 + - COUNT ( 93 + CASE - 68 WHEN 80 + 52 THEN + 20 ELSE + 45 END ) ) ) AS col1
----
-14

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

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

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

skipif mysql # not compatible
query I rowsort label-2576
SELECT - 76 / + + 52
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - 53 * - 84 * MIN( ALL - 97 ) * MIN( DISTINCT 42 ) + CASE + COUNT( * ) WHEN + NULLIF ( 66, - 15 + - SUM( - 67 ) ) - + COUNT( * ) + + 55 * + - COUNT( * ) THEN + 20 WHEN + 83 THEN NULL ELSE + 5 END AS col2
----
-18137443

skipif mysql # not compatible
query I rowsort label-2578
SELECT - 53 * - 84 * MIN ( ALL - 97 ) * MIN ( DISTINCT 42 ) + CASE + COUNT ( * ) WHEN + NULLIF ( 66, - 15 + - SUM ( - 67 ) ) - + COUNT ( * ) + + 55 * + - COUNT ( * ) THEN + 20 WHEN + 83 THEN NULL ELSE + 5 END AS col2
----
-18137443

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2579
SELECT DISTINCT + 22 + - 88, + CASE + 82 WHEN - 21 * - - 75 + + + 68 * - 4 THEN NULL WHEN - + MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) THEN NULL ELSE + 28 END col0
----
-66
28

skipif mysql # not compatible
query II rowsort label-2579
SELECT DISTINCT + 22 + - 88, + CASE + 82 WHEN - 21 * - - 75 + + + 68 * - 4 THEN NULL WHEN - + MAX ( DISTINCT + CAST ( NULL AS REAL ) ) THEN NULL ELSE + 28 END col0
----
-66
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2580
SELECT - 23 + + - 91 DIV COUNT( * ) col0
----
-114

skipif mysql # not compatible
query I rowsort label-2580
SELECT - 23 + + - 91 / COUNT ( * ) col0
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2581
SELECT - CASE - 9 WHEN 42 THEN + - 37 + ( + + 88 ) * + 49 ELSE - COUNT( * ) * - ( + 13 ) END AS col2, - 75 - - CAST( + CAST( - 88 AS SIGNED ) AS SIGNED ) AS col0
----
-13
-163

skipif mysql # not compatible
query II rowsort label-2581
SELECT - CASE - 9 WHEN 42 THEN + - 37 + ( + + 88 ) * + 49 ELSE - COUNT ( * ) * - ( + 13 ) END AS col2, - 75 - - CAST ( + CAST ( - 88 AS INTEGER ) AS INTEGER ) AS col0
----
-13
-163

onlyif mysql # aggregate syntax: 
query II rowsort label-2582
SELECT ALL + COUNT( * ) * - 52, 0 * 81 AS col0
----
-52
0

skipif mysql # not compatible
query II rowsort label-2582
SELECT ALL + COUNT ( * ) * - 52, 0 * 81 AS col0
----
-52
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2583
SELECT - 40 DIV - + 82
----
0

skipif mysql # not compatible
query I rowsort label-2583
SELECT - 40 / - + 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT + NULLIF ( - - 18, COUNT( * ) + 65 - + 21 + 41 * - 66 ) + + COUNT( * ) + - 58 * - 56 AS col0
----
3267

skipif mysql # not compatible
query I rowsort label-2584
SELECT + NULLIF ( - - 18, COUNT ( * ) + 65 - + 21 + 41 * - 66 ) + + COUNT ( * ) + - 58 * - 56 AS col0
----
3267

query II rowsort
SELECT ALL - 50 * 90 * 96 col0, 7 AS col2
----
-432000
7

query II rowsort
SELECT - 17 * + 93 AS col1, + 15 AS col1
----
-1581
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2587
SELECT ALL 47 DIV - - 29 + 62
----
63

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL 47 / - - 29 + 62
----
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2588
SELECT 32 DIV + CAST( + 19 AS SIGNED ) + - 27
----
-26

skipif mysql # not compatible
query I rowsort label-2588
SELECT 32 / + CAST ( + 19 AS INTEGER ) + - 27
----
-26

query I rowsort
SELECT DISTINCT + ( + COALESCE ( + 57, + ( + 20 ) ) ) + 33 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT DISTINCT 2 + CASE - 42 WHEN - + COUNT( 7 ) THEN + - 13 * - 91 END * - + ( - + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT 2 + CASE - 42 WHEN - + COUNT ( 7 ) THEN + - 13 * - 91 END * - + ( - + 20 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT - MIN( ALL - 98 ) + - COALESCE ( + 18, + - 59 * 72 )
----
80

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - MIN ( ALL - 98 ) + - COALESCE ( + 18, + - 59 * 72 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2592
SELECT DISTINCT 59 DIV 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2592
SELECT DISTINCT 59 / 76 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT ALL 77 * - CAST( + + 53 AS SIGNED ) * + - 28
----
114268

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL 77 * - CAST ( + + 53 AS INTEGER ) * + - 28
----
114268

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL 86 - + 20 + + COUNT( + 35 )
----
67

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL 86 - + 20 + + COUNT ( + 35 )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2595
SELECT DISTINCT + 83 * + COUNT( * ) AS col1, + 84
----
83
84

skipif mysql # not compatible
query II rowsort label-2595
SELECT DISTINCT + 83 * + COUNT ( * ) AS col1, + 84
----
83
84

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

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

query I rowsort
SELECT ALL - + COALESCE ( - + 27, - - 53 ) AS col0
----
27

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

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + - 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT + 8 * 21 + - COALESCE ( - NULLIF ( COUNT( * ), + 4 + - - COUNT( * ) + AVG ( ALL - + 19 ) + - + 9 + 6 ), - - 96 * + - 37 * + CAST( MIN( + - 86 ) AS SIGNED ) )
----
169

skipif mysql # not compatible
query I rowsort label-2599
SELECT + 8 * 21 + - COALESCE ( - NULLIF ( COUNT ( * ), + 4 + - - COUNT ( * ) + AVG ( ALL - + 19 ) + - + 9 + 6 ), - - 96 * + - 37 * + CAST ( MIN ( + - 86 ) AS INTEGER ) )
----
169

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2601
SELECT ALL 33 AS col0, SUM( ALL - 79 ) * + 65 + - 57 AS col2
----
33
-5192

skipif mysql # not compatible
query II rowsort label-2601
SELECT ALL 33 AS col0, SUM ( ALL - 79 ) * + 65 + - 57 AS col2
----
33
-5192

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

query I rowsort
SELECT 3 * + 82
----
246

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2604
SELECT ( 26 ) + 86 col0, ( + 65 ) DIV + - COUNT( * ) * - COUNT( - + 23 )
----
112
65

skipif mysql # not compatible
query II rowsort label-2604
SELECT ( 26 ) + 86 col0, ( + 65 ) / + - COUNT ( * ) * - COUNT ( - + 23 )
----
112
65

query II rowsort
SELECT 78 AS col2, 93
----
78
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT COUNT( * ) + - 67 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2606
SELECT COUNT ( * ) + - 67 AS col1
----
-66

query II rowsort
SELECT DISTINCT 50 AS col0, 29 * - 71
----
50
-2059

query II rowsort
SELECT ALL 3, + 34 AS col1
----
3
34

query I rowsort
SELECT 41 + - 37 AS col0
----
4

query II rowsort
SELECT DISTINCT 7 AS col1, - ( + 78 )
----
7
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2611
SELECT COALESCE ( - - 19, + - ( - 42 ) * CAST( + - 94 AS SIGNED ) + 42 ) * + 91
----
1729

skipif mysql # not compatible
query I rowsort label-2611
SELECT COALESCE ( - - 19, + - ( - 42 ) * CAST ( + - 94 AS INTEGER ) + 42 ) * + 91
----
1729

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2612
SELECT ( + + CAST( 49 AS SIGNED ) ) * + + 27 - + 67 DIV + 22
----
1320

skipif mysql # not compatible
query I rowsort label-2612
SELECT ( + + CAST ( 49 AS INTEGER ) ) * + + 27 - + 67 / + 22
----
1320

query I rowsort
SELECT 66 + - 98 AS col0
----
-32

query I rowsort
SELECT ALL - 55 + 45 AS col0
----
-10

query I rowsort
SELECT 53 + + 33
----
86

query I rowsort
SELECT + 28 * + - 41
----
-1148

onlyif mysql # DIV for integer division: 
query I rowsort label-2617
SELECT 49 DIV - 16 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2617
SELECT 49 / - 16 AS col0
----
-3

query I rowsort
SELECT DISTINCT + + 17 * 73 AS col1
----
1241

query I rowsort
SELECT + 95 * - 51 + 96
----
-4749

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2621
SELECT + + COALESCE ( + + 12, - + CAST( + 32 AS SIGNED ) DIV + 37 * + 43 * + 0 + + + 94 + 39 * MIN( ALL - + 67 ) ) DIV - 33 * + - 68 - - - COUNT( * ) + - 36 + - NULLIF ( - 1, + 61 ) + 56 * 36 * - 69 - 67 * 69 AS col0
----
-143763

skipif mysql # not compatible
query I rowsort label-2621
SELECT + + COALESCE ( + + 12, - + CAST ( + 32 AS INTEGER ) / + 37 * + 43 * + 0 + + + 94 + 39 * MIN ( ALL - + 67 ) ) / - 33 * + - 68 - - - COUNT ( * ) + - 36 + - NULLIF ( - 1, + 61 ) + 56 * 36 * - 69 - 67 * 69 AS col0
----
-143763

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2622
SELECT + 79 * + 89 + - - NULLIF ( - COUNT( ( 53 ) ), ( - CAST( NULL AS DECIMAL ) ) )
----
7030

skipif mysql # not compatible
query I rowsort label-2622
SELECT + 79 * + 89 + - - NULLIF ( - COUNT ( ( 53 ) ), ( - CAST ( NULL AS REAL ) ) )
----
7030

onlyif mysql # aggregate syntax: 
query II rowsort label-2623
SELECT 18 + - + 51 - COUNT( * ) AS col0, - 64
----
-34
-64

skipif mysql # not compatible
query II rowsort label-2623
SELECT 18 + - + 51 - COUNT ( * ) AS col0, - 64
----
-34
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT - 92 DIV - 8 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2624
SELECT - 92 / - 8 AS col0
----
11

query I rowsort
SELECT 21 * 45 * - 72
----
-68040

query I rowsort
SELECT + 66 * + - 27 + + 93 AS col0
----
-1689

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT + SUM( + 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-2627
SELECT + SUM ( + 96 ) AS col2
----
96

query I rowsort
SELECT ALL + 54 * - + 39
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT 98 + + - ( - - COUNT( * ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-2629
SELECT 98 + + - ( - - COUNT ( * ) ) AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT + NULLIF ( 69, + - 52 * - - 13 / + 95 * CAST( NULL AS SIGNED ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2630
SELECT + NULLIF ( 69, + - 52 * - - 13 / + 95 * CAST ( NULL AS INTEGER ) ) AS col2
----
69

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

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

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

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

query I rowsort
SELECT 21 * + + 2
----
42

query I rowsort
SELECT 2 * + + 12 + - 42 AS col0
----
-18

query I rowsort
SELECT ALL + 38 * - 27
----
-1026

query I rowsort
SELECT 96 * 87 * + 10
----
83520

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

skipif mysql # not compatible
query I rowsort label-2637
SELECT COUNT ( * ) / - ( ( - - 64 ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT ( - 49 ) * - 12
----
588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT ALL + SUM( ALL + 88 ) * COALESCE ( 57, 87 * - - CAST( NULL AS SIGNED ) ) + - - COUNT( * ) AS col0
----
5017

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL + SUM ( ALL + 88 ) * COALESCE ( 57, 87 * - - CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) AS col0
----
5017

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2640
SELECT ALL MIN( ALL - 6 ) + 30 + - 28 DIV 81 * - COUNT( * ) * 6
----
24

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL MIN ( ALL - 6 ) + 30 + - 28 / 81 * - COUNT ( * ) * 6
----
24

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT ( - 80 ) * ( + 66 ) / + CASE - 32 WHEN - 66 + - 25 THEN - NULLIF ( + ( + ( + COALESCE ( + 70, ( COALESCE ( CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) ) ), - - 90 ) ) ), + 31 ) / 28 + 91 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT ( - 80 ) * ( + 66 ) / + CASE - 32 WHEN - 66 + - 25 THEN - NULLIF ( + ( + ( + COALESCE ( + 70, ( COALESCE ( CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) ) ), - - 90 ) ) ), + 31 ) / 28 + 91 END AS col0
----
NULL

query II rowsort
SELECT ALL 42 + - + COALESCE ( 68, - 39 ) AS col1, - 15 AS col2
----
-26
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT 86 * 40 - - 61 + + 1 DIV - 44 * - 68
----
3501

skipif mysql # not compatible
query I rowsort label-2644
SELECT 86 * 40 - - 61 + + 1 / - 44 * - 68
----
3501

onlyif mysql # aggregate syntax: 
query II rowsort label-2645
SELECT - MIN( 72 ) AS col1, + 22 AS col1
----
-72
22

skipif mysql # not compatible
query II rowsort label-2645
SELECT - MIN ( 72 ) AS col1, + 22 AS col1
----
-72
22

query I rowsort
SELECT DISTINCT 94 + - 94 AS col1
----
0

query I rowsort
SELECT 66 * 60 AS col2
----
3960

query II rowsort
SELECT DISTINCT 29 + + 97 AS col0, 8
----
126
8

query I rowsort
SELECT ALL 88 + + + 48
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-2650
SELECT - MIN( DISTINCT 72 ) col2, - 31 * 14 AS col0
----
-72
-434

skipif mysql # not compatible
query II rowsort label-2650
SELECT - MIN ( DISTINCT 72 ) col2, - 31 * 14 AS col0
----
-72
-434

onlyif mysql # aggregate syntax: 
query II rowsort label-2651
SELECT DISTINCT 58 + - - COUNT( * ) * + - 88 + - - 99 + 94 + - MAX( DISTINCT + 62 ) AS col2, 46 + - + 71
----
101
-25

skipif mysql # not compatible
query II rowsort label-2651
SELECT DISTINCT 58 + - - COUNT ( * ) * + - 88 + - - 99 + 94 + - MAX ( DISTINCT + 62 ) AS col2, 46 + - + 71
----
101
-25

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2653
SELECT DISTINCT 93 + + 99 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT 93 + + 99 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 52 + 19 - + 65 * - 49
----
3256

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2656
SELECT + 93 + 13 * 88 * + 57 DIV COUNT( 84 ) * 38 - - MIN( 52 ) + + 65 * + 88 AS col1
----
2483769

skipif mysql # not compatible
query I rowsort label-2656
SELECT + 93 + 13 * 88 * + 57 / COUNT ( 84 ) * 38 - - MIN ( 52 ) + + 65 * + 88 AS col1
----
2483769

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT - 62 * + CASE + COUNT( * ) WHEN - - 11 THEN NULL WHEN - 19 * COUNT( * ) THEN NULL ELSE - 93 + - 65 END AS col1
----
9796

skipif mysql # not compatible
query I rowsort label-2657
SELECT - 62 * + CASE + COUNT ( * ) WHEN - - 11 THEN NULL WHEN - 19 * COUNT ( * ) THEN NULL ELSE - 93 + - 65 END AS col1
----
9796

query I rowsort
SELECT ALL NULLIF ( + 61, 35 ) AS col1
----
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL + + CASE + 74 WHEN - - 75 THEN - 29 + ( - 23 ) - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL + + CASE + 74 WHEN - - 75 THEN - 29 + ( - 23 ) - + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) * - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL NULLIF ( + - COUNT( * ), - COUNT( * ) ) / - - COUNT( - - 8 ) * 93 * - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL NULLIF ( + - COUNT ( * ), - COUNT ( * ) ) / - - COUNT ( - - 8 ) * 93 * - 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT - CASE - MAX( - + 56 ) WHEN - 54 THEN + - 65 ELSE NULL END * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT - CASE - MAX ( - + 56 ) WHEN - 54 THEN + - 65 ELSE NULL END * - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT - 0 * 50 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT - 0 * 50 + - COUNT ( * )
----
-1

query I rowsort
SELECT - - 56 * - 77
----
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT - + COUNT( DISTINCT - + ( + - 70 ) ) * - - 76 + - + 89
----
-165

skipif mysql # not compatible
query I rowsort label-2666
SELECT - + COUNT ( DISTINCT - + ( + - 70 ) ) * - - 76 + - + 89
----
-165

query I rowsort
SELECT ALL + ( + 60 ) col2
----
60

query I rowsort
SELECT - 7 - - - 17 + - - 46 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT DISTINCT - COALESCE ( - 76, - 54 + 78, + - ( + 63 ) ) * + + ( + + ( - ( - + 76 ) ) ) * CAST( 70 AS SIGNED ) + - 11
----
404309

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT - COALESCE ( - 76, - 54 + 78, + - ( + 63 ) ) * + + ( + + ( - ( - + 76 ) ) ) * CAST ( 70 AS INTEGER ) + - 11
----
404309

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

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

query I rowsort
SELECT ALL + 80 * - 9 + 97 AS col1
----
-623

query I rowsort
SELECT - 60 * - + 33
----
1980

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT + MAX( ALL 99 ) col2
----
99

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT + MAX ( ALL 99 ) col2
----
99

query I rowsort
SELECT - 48 + - 93 AS col0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT - 61 * COUNT( * ) * 8 + ( - 92 ) + + 8
----
-572

skipif mysql # not compatible
query I rowsort label-2676
SELECT - 61 * COUNT ( * ) * 8 + ( - 92 ) + + 8
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT + 30 - 2 + - 55 * - NULLIF ( - 19, - 39 ) + - ( - COUNT( * ) )
----
-1016

skipif mysql # not compatible
query I rowsort label-2677
SELECT + 30 - 2 + - 55 * - NULLIF ( - 19, - 39 ) + - ( - COUNT ( * ) )
----
-1016

query I rowsort
SELECT ALL ( + 97 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2679
SELECT ALL 92 * - COUNT( * ) * + COALESCE ( + CAST( + 67 AS SIGNED ), - COUNT( * ) DIV 63 + + 95 + + 16 ) + + + 57
----
-6107

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL 92 * - COUNT ( * ) * + COALESCE ( + CAST ( + 67 AS INTEGER ), - COUNT ( * ) / 63 + + 95 + + 16 ) + + + 57
----
-6107

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT - CASE + COUNT( * ) WHEN 46 THEN NULL WHEN + ( COUNT( * ) ) THEN 47 END AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-2680
SELECT - CASE + COUNT ( * ) WHEN 46 THEN NULL WHEN + ( COUNT ( * ) ) THEN 47 END AS col1
----
-47

query I rowsort
SELECT + 82 * 2 AS col1
----
164

query I rowsort
SELECT - 94 + + 52 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL 5 * - + MIN( ALL 29 ) AS col0
----
-145

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL 5 * - + MIN ( ALL 29 ) AS col0
----
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT DISTINCT - 9 + + - CAST( 3 AS SIGNED ) * - 47 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT - 9 + + - CAST ( 3 AS INTEGER ) * - 47 AS col1
----
132

query I rowsort
SELECT ALL - 91 - - 82
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT DISTINCT CAST( + 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT CAST ( + 74 AS INTEGER )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT + COALESCE ( CAST( - 80 AS SIGNED ), 43 ) + + 93
----
13

skipif mysql # not compatible
query I rowsort label-2687
SELECT + COALESCE ( CAST ( - 80 AS INTEGER ), 43 ) + + 93
----
13

query I rowsort
SELECT - - 67 * + + 59
----
3953

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT DISTINCT 25 DIV + + 69
----
0

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT 25 / + + 69
----
0

query I rowsort
SELECT ALL + 23 - + 74 AS col2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT DISTINCT COALESCE ( - 23, - 63 DIV + - 90, 57, + 82 )
----
-23

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT COALESCE ( - 23, - 63 / + - 90, 57, + 82 )
----
-23

query I rowsort
SELECT + 22 + - + 44 - - 71 + 47
----
96

query I rowsort
SELECT + + 40 + - 29 col1
----
11

query I rowsort
SELECT ALL - 71 * - 78 * - 37 col1
----
-204906

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2698
SELECT ALL + 9 AS col2, COUNT( + 83 ) / - - CASE + 11 WHEN + COUNT( * ) * 34 THEN - 18 WHEN COALESCE ( - 30, - 84 ) + + - 29 THEN NULL END
----
9
NULL

skipif mysql # not compatible
query II rowsort label-2698
SELECT ALL + 9 AS col2, COUNT ( + 83 ) / - - CASE + 11 WHEN + COUNT ( * ) * 34 THEN - 18 WHEN COALESCE ( - 30, - 84 ) + + - 29 THEN NULL END
----
9
NULL

query I rowsort
SELECT - 99 * - 11
----
1089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2700
SELECT ALL + COALESCE ( 82, - 21 + - 61 ) DIV 32 + - - 27 + + SUM( - 43 )
----
-14

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL + COALESCE ( 82, - 21 + - 61 ) / 32 + - - 27 + + SUM ( - 43 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2701
SELECT ALL + COUNT( * ) DIV + SUM( ALL - 69 ) + + ( + ( + 10 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL + COUNT ( * ) / + SUM ( ALL - 69 ) + + ( + ( + 10 ) ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT 58 * - COUNT( * ) + - - NULLIF ( 44, - ( 23 ) * - ( - 64 ) / - + 65 ) + + - 35 * - 1 * - 32 AS col0
----
-1134

skipif mysql # not compatible
query I rowsort label-2702
SELECT 58 * - COUNT ( * ) + - - NULLIF ( 44, - ( 23 ) * - ( - 64 ) / - + 65 ) + + - 35 * - 1 * - 32 AS col0
----
-1134

onlyif mysql # DIV for integer division: 
query I rowsort label-2703
SELECT ALL ( 49 ) DIV 69 + + + 5 col0
----
5

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL ( 49 ) / 69 + + + 5 col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2704
SELECT DISTINCT 83 DIV 10
----
8

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT 83 / 10
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT ( - COUNT( NULLIF ( - 44, + + 72 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2705
SELECT ( - COUNT ( NULLIF ( - 44, + + 72 ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT - CASE + 55 WHEN + 12 * - 11 + + 83 THEN NULL WHEN + 58 THEN + 74 ELSE NULL END * - 36 + COUNT( * ) + 73 + + - 87 + 44 * + - 76 * - COUNT( - 95 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT - CASE + 55 WHEN + 12 * - 11 + + 83 THEN NULL WHEN + 58 THEN + 74 ELSE NULL END * - 36 + COUNT ( * ) + 73 + + - 87 + 44 * + - 76 * - COUNT ( - 95 ) AS col2
----
NULL

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

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

query I rowsort
SELECT - ( + 48 ) + - 27
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT ALL 19 * - COUNT( * ) + 34
----
15

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL 19 * - COUNT ( * ) + 34
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ALL COUNT( 77 ) * - 92
----
-92

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL COUNT ( 77 ) * - 92
----
-92

query I rowsort
SELECT 47 * - 14 * - 8
----
5264

query I rowsort
SELECT DISTINCT - NULLIF ( + 71, 56 )
----
-71

query I rowsort
SELECT ALL - ( 41 ) + - 68 AS col2
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2714
SELECT 60 * + - 85 * 21 - - 46 / - - ( + CAST( NULL AS SIGNED ) ) + - 25 + - 55 * - - CAST( NULL AS SIGNED ) * - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2714
SELECT 60 * + - 85 * 21 - - 46 / - - ( + CAST ( NULL AS INTEGER ) ) + - 25 + - 55 * - - CAST ( NULL AS INTEGER ) * - + 0
----
NULL

query I rowsort
SELECT 82 * - 60 * 29
----
-142680

query I rowsort
SELECT 56 - - + 66 AS col0
----
122

query II rowsort
SELECT - 75 AS col2, 69
----
-75
69

query I rowsort
SELECT - 40 + - 30 * - - ( 73 ) AS col1
----
-2230

query I rowsort
SELECT ALL - 27 - - - 40 * + 72
----
-2907

query I rowsort
SELECT - 53 * 3 AS col0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ALL + CASE - - COUNT( * ) WHEN 43 THEN NULL WHEN + 49 THEN + + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + CASE - - COUNT ( * ) WHEN 43 THEN NULL WHEN + 49 THEN + + COUNT ( * ) END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2723
SELECT + 20 * + + COUNT( * ) * + AVG ( DISTINCT - 87 ) / + - CAST( NULL AS SIGNED ) - + + ( + 91 ) + + 35 + - + 13 * - - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT + 20 * + + COUNT ( * ) * + AVG ( DISTINCT - 87 ) / + - CAST ( NULL AS INTEGER ) - + + ( + 91 ) + + 35 + - + 13 * - - 44 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT ALL CASE + CAST( NULL AS SIGNED ) WHEN 1 THEN + 31 + + + 73 WHEN - 7 THEN 29 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL CASE + CAST ( NULL AS INTEGER ) WHEN 1 THEN + 31 + + + 73 WHEN - 7 THEN 29 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2725
SELECT + 47 DIV MAX( DISTINCT 65 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2725
SELECT + 47 / MAX ( DISTINCT 65 ) AS col0
----
0

query I rowsort
SELECT - 86 * + 59 AS col2
----
-5074

query I rowsort
SELECT - ( - - 46 ) + - 55
----
-101

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

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

query I rowsort
SELECT ALL 39 + + ( + + 69 )
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT COALESCE ( - 82, 39 * - MIN( - + 15 ) + 21 ), + 0 AS col0
----
-82
0

skipif mysql # not compatible
query II rowsort label-2730
SELECT COALESCE ( - 82, 39 * - MIN ( - + 15 ) + 21 ), + 0 AS col0
----
-82
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2731
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + + 42 / - 32 * + 88 * - 2 * - 64, 77 col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-2731
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + + 42 / - 32 * + 88 * - 2 * - 64, 77 col0
----
NULL
77

query I rowsort
SELECT DISTINCT - 18 * + 41 * - 98 * 18 + - 70 + 25 - - + ( - 36 )
----
1301751

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL - - 84 + 13 + 88 * 92 + - COUNT( * )
----
8192

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL - - 84 + 13 + 88 * 92 + - COUNT ( * )
----
8192

query I rowsort
SELECT DISTINCT 84 + 23 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL 72 + + NULLIF ( + COUNT( * ), + - 71 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL 72 + + NULLIF ( + COUNT ( * ), + - 71 ) AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2736
SELECT ALL 42 + - - COUNT( * ), ( - + CAST( NULL AS SIGNED ) ) col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-2736
SELECT ALL 42 + - - COUNT ( * ), ( - + CAST ( NULL AS INTEGER ) ) col1
----
43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT 90 * MIN( DISTINCT - + 97 ) - + 21 AS col0
----
-8751

skipif mysql # not compatible
query I rowsort label-2737
SELECT 90 * MIN ( DISTINCT - + 97 ) - + 21 AS col0
----
-8751

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

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

query I rowsort
SELECT 66 * - 46 AS col0
----
-3036

query I rowsort
SELECT ALL 12 + - - 64 * 30
----
1932

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2742
SELECT + 71 * - CAST( NULL AS DECIMAL ) - + + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT + 71 * - CAST ( NULL AS REAL ) - + + 25 AS col2
----
NULL

query I rowsort
SELECT ALL - 91 - 64 col1
----
-155

query II rowsort
SELECT DISTINCT + 37 * + 31, - 34 col0
----
1147
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-2745
SELECT ALL 29 DIV + 68 AS col0, 64
----
0
64

skipif mysql # not compatible
query II rowsort label-2745
SELECT ALL 29 / + 68 AS col0, 64
----
0
64

query I rowsort
SELECT NULLIF ( 43, + - 21 ) + - 87 AS col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2747
SELECT 82 DIV 82 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2747
SELECT 82 / 82 AS col0
----
1

query I rowsort
SELECT 65 * 39 + 44 AS col2
----
2579

query I rowsort
SELECT ( + 94 ) + + 74 AS col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT ALL + COUNT( * ) * + 16 * 5 col0
----
80

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL + COUNT ( * ) * + 16 * 5 col0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2751
SELECT + COUNT( * ) * 60 AS col1, - MIN( - 64 ) AS col1
----
60
64

skipif mysql # not compatible
query II rowsort label-2751
SELECT + COUNT ( * ) * 60 AS col1, - MIN ( - 64 ) AS col1
----
60
64

query I rowsort
SELECT + ( + 9 ) + 80
----
89

query I rowsort
SELECT 34 + - 13 + + 58 * - 86
----
-4967

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2755
SELECT ALL + - SUM( ALL + 62 ) + - - COALESCE ( + + 3, + CASE + + 11 WHEN + 8 THEN - 90 WHEN CASE - 73 WHEN - COUNT( * ) + CAST( - 98 AS SIGNED ) THEN - 21 ELSE 69 * + COALESCE ( 4, - 96 ) END THEN NULL ELSE 59 * - - 10 END, + 18 * + - 27 )
----
-59

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + - SUM ( ALL + 62 ) + - - COALESCE ( + + 3, + CASE + + 11 WHEN + 8 THEN - 90 WHEN CASE - 73 WHEN - COUNT ( * ) + CAST ( - 98 AS INTEGER ) THEN - 21 ELSE 69 * + COALESCE ( 4, - 96 ) END THEN NULL ELSE 59 * - - 10 END, + 18 * + - 27 )
----
-59

query I rowsort
SELECT - - 13 col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2757
SELECT DISTINCT - + COUNT( * ) + - 90 DIV - + 44
----
1

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

query I rowsort
SELECT - 20 + + ( 44 ) * - + 30 + + - 42 * - - 58 AS col0
----
-3776

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT 59 * - - 8 * COALESCE ( + 27, + + COUNT( * ), - - 10 * COUNT( * ) )
----
12744

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT 59 * - - 8 * COALESCE ( + 27, + + COUNT ( * ), - - 10 * COUNT ( * ) )
----
12744

query I rowsort
SELECT DISTINCT + - ( - 84 ) * - 57 col0
----
-4788

query I rowsort
SELECT ALL 73 + + 16 + - - 10 * + 28 * + 11 AS col0
----
3169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2762
SELECT ALL + 28 * + ( 49 ) DIV + + COUNT( * ) - COUNT( * ) + + 96 col1
----
1467

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + 28 * + ( 49 ) / + + COUNT ( * ) - COUNT ( * ) + + 96 col1
----
1467

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

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

query I rowsort
SELECT 95 * - COALESCE ( ( - 34 ), 93, - 68 * + - 54 * - ( 82 ) ) + + 30 AS col0
----
3260

query I rowsort
SELECT 57 + + + 54 AS col2
----
111

query II rowsort
SELECT ALL + 12 col0, ( 42 ) + + 52 * + 4 * 68
----
12
14186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2767
SELECT CASE + 11 WHEN - ( + ( - 86 ) ) + 1 - + CAST( NULL AS SIGNED ) + + - 71 - CASE - + 20 WHEN + 94 + + 55 - + 60 - - 52 THEN NULL ELSE 54 END * + + MIN( + 34 ) + + 49 / 77 THEN - + 27 * + - 26 + 2 * - 26 - - 39 * + ( 8 + COUNT( * ) ) WHEN - 97 + - 14 * 18 THEN + 6 ELSE NULL END / + 97 + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT CASE + 11 WHEN - ( + ( - 86 ) ) + 1 - + CAST ( NULL AS INTEGER ) + + - 71 - CASE - + 20 WHEN + 94 + + 55 - + 60 - - 52 THEN NULL ELSE 54 END * + + MIN ( + 34 ) + + 49 / 77 THEN - + 27 * + - 26 + 2 * - 26 - - 39 * + ( 8 + COUNT ( * ) ) WHEN - 97 + - 14 * 18 THEN + 6 ELSE NULL END / + 97 + 70 AS col0
----
NULL

query I rowsort
SELECT ALL 65 * ( - 68 )
----
-4420

query II rowsort
SELECT ALL + 27 AS col2, COALESCE ( - 93, - 60 - - ( + 92 ) + 39 + 27 ) AS col2
----
27
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL COUNT( * ) * - 67 - - 45 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL COUNT ( * ) * - 67 - - 45 AS col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2771
SELECT + COUNT( * ) AS col0, + 57 * COALESCE ( + 35, + 50, - 88 ) AS col1, 63 DIV + 2 - - 79 + + 20 - 91
----
1
1995
39

skipif mysql # not compatible
query III rowsort label-2771
SELECT + COUNT ( * ) AS col0, + 57 * COALESCE ( + 35, + 50, - 88 ) AS col1, 63 / + 2 - - 79 + + 20 - 91
----
1
1995
39

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

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

query I rowsort
SELECT + 93 + 12
----
105

query II rowsort
SELECT ALL + 46 AS col1, + 17
----
46
17

query I rowsort
SELECT ALL 87 * - + ( + + 21 ) * - - 31 AS col0
----
-56637

query I rowsort
SELECT DISTINCT 58 + + 53 AS col2
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2777
SELECT ALL SUM( 63 ) + 9 * + 55 * 81 * + - 70 DIV COUNT( * ) * 0 col1
----
63

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL SUM ( 63 ) + 9 * + 55 * 81 * + - 70 / COUNT ( * ) * 0 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT + 46 - + COUNT( * ) + + 51 * + COUNT( * ) * + + 34 + - COUNT( * )
----
1778

skipif mysql # not compatible
query I rowsort label-2778
SELECT + 46 - + COUNT ( * ) + + 51 * + COUNT ( * ) * + + 34 + - COUNT ( * )
----
1778

query II rowsort
SELECT - 80 AS col0, 50
----
-80
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT + CAST( + 15 AS SIGNED ) - - 66 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-2780
SELECT + CAST ( + 15 AS INTEGER ) - - 66 AS col1
----
81

query I rowsort
SELECT ALL - ( - 98 ) * + 98
----
9604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2782
SELECT - NULLIF ( - COUNT( * ), + + CAST( CAST( + CASE - - 92 WHEN 58 THEN NULL ELSE 27 END AS SIGNED ) AS SIGNED ) + 70 * - 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2782
SELECT - NULLIF ( - COUNT ( * ), + + CAST ( CAST ( + CASE - - 92 WHEN 58 THEN NULL ELSE 27 END AS INTEGER ) AS INTEGER ) + 70 * - 64 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2783
SELECT - - 73 + 46 + 18 / 61 * - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT - - 73 + 46 + 18 / 61 * - ( CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT ALL + 92 + 38 AS col1
----
130

onlyif mysql # DIV for integer division: 
query II rowsort label-2786
SELECT ALL - 34 + - - 70 - 19, 72 DIV + 10 AS col0
----
17
7

skipif mysql # not compatible
query II rowsort label-2786
SELECT ALL - 34 + - - 70 - 19, 72 / + 10 AS col0
----
17
7

query I rowsort
SELECT + - 29 * + 74 AS col0
----
-2146

query I rowsort
SELECT ALL 65 * 59 AS col0
----
3835

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2789
SELECT - 4 DIV NULLIF ( + 34, SUM( DISTINCT 31 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2789
SELECT - 4 / NULLIF ( + 34, SUM ( DISTINCT 31 ) ) AS col2
----
0

query I rowsort
SELECT - + 54 - + + 98 AS col2
----
-152

query I rowsort
SELECT ALL 88 + + 74 AS col2
----
162

query I rowsort
SELECT + 75 + + ( 62 ) * + - 76 AS col2
----
-4637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT - COALESCE ( 62, CAST( 13 AS SIGNED ) * 95 + - + 75 + 27 )
----
-62

skipif mysql # not compatible
query I rowsort label-2793
SELECT - COALESCE ( 62, CAST ( 13 AS INTEGER ) * 95 + - + 75 + 27 )
----
-62

query I rowsort
SELECT - - 71 + - 18
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT - 90 - - 83 + - COUNT( DISTINCT + 46 ) + - MAX( - ( + + 42 ) ) * + CASE 93 WHEN - 90 + - - 68 THEN + 24 * + 52 WHEN - 54 THEN NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT - 90 - - 83 + - COUNT ( DISTINCT + 46 ) + - MAX ( - ( + + 42 ) ) * + CASE 93 WHEN - 90 + - - 68 THEN + 24 * + 52 WHEN - 54 THEN NULL END * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT - MAX( ALL + 74 ) * + + MIN( - 6 )
----
444

skipif mysql # not compatible
query I rowsort label-2796
SELECT - MAX ( ALL + 74 ) * + + MIN ( - 6 )
----
444

query I rowsort
SELECT ALL + 63 * 78 AS col0
----
4914

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT DISTINCT - 9 - + COALESCE ( COUNT( * ), SUM( ALL - - 66 ) - 8 + + - 53 ) * - 65
----
56

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT - 9 - + COALESCE ( COUNT ( * ), SUM ( ALL - - 66 ) - 8 + + - 53 ) * - 65
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT DISTINCT + 46 * - - 52 DIV 51
----
46

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT + 46 * - - 52 / 51
----
46

query I rowsort
SELECT ALL + 64 * ( + 97 ) AS col1
----
6208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2801
SELECT ( - NULLIF ( + + ( + 15 ), CASE 56 WHEN - - 89 THEN - 43 - CAST( + + 41 AS SIGNED ) * COUNT( * ) * CAST( NULL AS SIGNED ) END * + - 34 - 23 ) ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-2801
SELECT ( - NULLIF ( + + ( + 15 ), CASE 56 WHEN - - 89 THEN - 43 - CAST ( + + 41 AS INTEGER ) * COUNT ( * ) * CAST ( NULL AS INTEGER ) END * + - 34 - 23 ) ) col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT - 63 * - 58 * - 0 DIV 14 + + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2802
SELECT - 63 * - 58 * - 0 / 14 + + 13 AS col1
----
13

query I rowsort
SELECT DISTINCT + NULLIF ( - 47, - 62 ) AS col0
----
-47

query I rowsort
SELECT + COALESCE ( + 43, 21 + - 7, 26 ) AS col2
----
43

query I rowsort
SELECT ALL + COALESCE ( 54, ( + 10 ) * + + 72, 78 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2806
SELECT + CASE 3 WHEN - - CAST( NULL AS SIGNED ) + - 94 * 97 + 26 * + + AVG ( - 33 ) * + - 81 * + 4 * - 25 - SUM( + CAST( + 72 AS SIGNED ) ) * + CASE + 43 WHEN + 36 THEN - 66 ELSE NULL END * - - 13 * 2 + - + 34 THEN 92 ELSE - CASE 5 WHEN 47 THEN + 69 WHEN 88 * - 98 + SUM( ALL - 59 + - 32 * - 17 ) * 76 THEN NULL END - COALESCE ( + COUNT( * ), 63 ) * - 7 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2806
SELECT + CASE 3 WHEN - - CAST ( NULL AS INTEGER ) + - 94 * 97 + 26 * + + AVG ( - 33 ) * + - 81 * + 4 * - 25 - SUM ( + CAST ( + 72 AS INTEGER ) ) * + CASE + 43 WHEN + 36 THEN - 66 ELSE NULL END * - - 13 * 2 + - + 34 THEN 92 ELSE - CASE 5 WHEN 47 THEN + 69 WHEN 88 * - 98 + SUM ( ALL - 59 + - 32 * - 17 ) * 76 THEN NULL END - COALESCE ( + COUNT ( * ), 63 ) * - 7 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2807
SELECT - 64 DIV + - 57 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2807
SELECT - 64 / + - 57 AS col1
----
1

query I rowsort
SELECT + 25 * - 34 + + 66 + - 90 * + + 69 + 61
----
-6933

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2809
SELECT + 77 + + 49 DIV - COUNT( * ) - + 76 - - - COUNT( * ) DIV 43 * 16 * MAX( DISTINCT 87 ) * - 17 * + 71 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-2809
SELECT + 77 + + 49 / - COUNT ( * ) - + 76 - - - COUNT ( * ) / 43 * 16 * MAX ( DISTINCT 87 ) * - 17 * + 71 AS col2
----
-48

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

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

query I rowsort
SELECT + 91 * 91 AS col2
----
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2812
SELECT ALL - ( + 71 ) * - 50 - - CAST( + + 23 AS SIGNED )
----
3573

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL - ( + 71 ) * - 50 - - CAST ( + + 23 AS INTEGER )
----
3573

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2813
SELECT - - 82 * - - 77 + COUNT( * ) * + + COUNT( * ) DIV - - 42, - CASE + 34 WHEN + 42 THEN NULL WHEN + - 18 THEN NULL ELSE - + ( - NULLIF ( - + 78, + + 44 ) ) * + 52 * 61 * - - 7 END AS col0
----
6314
1731912

skipif mysql # not compatible
query II rowsort label-2813
SELECT - - 82 * - - 77 + COUNT ( * ) * + + COUNT ( * ) / - - 42, - CASE + 34 WHEN + 42 THEN NULL WHEN + - 18 THEN NULL ELSE - + ( - NULLIF ( - + 78, + + 44 ) ) * + 52 * 61 * - - 7 END AS col0
----
6314
1731912

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT + CASE 9 WHEN + + 30 THEN - + 61 WHEN + 90 * - 14 THEN NULL END * - 64 * - 29 - + CASE - 60 WHEN + 57 + - 56 THEN - 25 + + 78 WHEN - 56 - ( 25 ) THEN 64 + + MIN( DISTINCT - 4 ) END * + + 50 * + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT + CASE 9 WHEN + + 30 THEN - + 61 WHEN + 90 * - 14 THEN NULL END * - 64 * - 29 - + CASE - 60 WHEN + 57 + - 56 THEN - 25 + + 78 WHEN - 56 - ( 25 ) THEN 64 + + MIN ( DISTINCT - 4 ) END * + + 50 * + 95 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2815
SELECT - 2 * ( + COUNT( CAST( NULL AS SIGNED ) ) ) + + COUNT( DISTINCT + - 95 )
----
1

skipif mysql # not compatible
query I rowsort label-2815
SELECT - 2 * ( + COUNT ( CAST ( NULL AS INTEGER ) ) ) + + COUNT ( DISTINCT + - 95 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2816
SELECT ALL + 65 * + 62 - - - 31 + - + NULLIF ( + + 46, + + ( + 43 ) ) AS col1, CAST( NULL AS SIGNED ) - + 44 * 87 AS col2
----
3953
NULL

skipif mysql # not compatible
query II rowsort label-2816
SELECT ALL + 65 * + 62 - - - 31 + - + NULLIF ( + + 46, + + ( + 43 ) ) AS col1, CAST ( NULL AS INTEGER ) - + 44 * 87 AS col2
----
3953
NULL

query I rowsort
SELECT DISTINCT - 94 * + 88 AS col1
----
-8272

query I rowsort
SELECT + 93 + - ( 36 ) + ( - + 3 ) AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT ALL 33 DIV + 39 + + 42
----
42

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL 33 / + 39 + + 42
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2820
SELECT - - CASE + - ( - 85 ) WHEN 74 THEN + CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT - - CASE + - ( - 85 ) WHEN 74 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + ( + 26 ) col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL 76 - MAX( ALL - + 12 ) col1
----
88

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL 76 - MAX ( ALL - + 12 ) col1
----
88

query I rowsort
SELECT - COALESCE ( + 36, + + 43, + + ( + 42 ) )
----
-36

query I rowsort
SELECT + + ( - 28 ) * - 37 AS col2
----
1036

query II rowsort
SELECT + + 17 * 89 * - 92 * 19 AS col1, - 71 col0
----
-2644724
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT - - COUNT( * ) + + 84 + - 80
----
5

skipif mysql # not compatible
query I rowsort label-2826
SELECT - - COUNT ( * ) + + 84 + - 80
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT DISTINCT - 78 * - CAST( + - 75 AS SIGNED ) + + 6 + 36 AS col2
----
-5808

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT - 78 * - CAST ( + - 75 AS INTEGER ) + + 6 + 36 AS col2
----
-5808

query I rowsort
SELECT 41 * - - 22 AS col0
----
902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT DISTINCT + 59 - + CAST( 50 AS SIGNED ) + + 93 + 24 + CAST( - 75 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT + 59 - + CAST ( 50 AS INTEGER ) + + 93 + 24 + CAST ( - 75 AS INTEGER )
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-2830
SELECT ALL - 5 DIV 71 * + 33 AS col2, 4 AS col0
----
0
4

skipif mysql # not compatible
query II rowsort label-2830
SELECT ALL - 5 / 71 * + 33 AS col2, 4 AS col0
----
0
4

query I rowsort
SELECT 66 + - + 71
----
-5

query I rowsort
SELECT ALL 12 * - 1 AS col0
----
-12

query I rowsort
SELECT 91 + - 72 + 35 + 57
----
111

query II rowsort
SELECT + 1 col2, + 93 + 82 col0
----
1
175

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT 97 * MIN( - - 62 ) + + 14 - - 98 AS col1
----
6126

skipif mysql # not compatible
query I rowsort label-2835
SELECT 97 * MIN ( - - 62 ) + + 14 - - 98 AS col1
----
6126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2836
SELECT + 46 DIV - MIN( ALL - 70 ) + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2836
SELECT + 46 / - MIN ( ALL - 70 ) + 16 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2837
SELECT ALL - CASE + COUNT( * ) WHEN - 35 * + + 89 THEN - + CAST( 37 AS DECIMAL ) * 61 * + 67 * + - COUNT( * ) + - - 11 / + 29 WHEN - MIN( ( - CAST( - 3 AS SIGNED ) ) ) THEN NULL END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - CASE + COUNT ( * ) WHEN - 35 * + + 89 THEN - + CAST ( 37 AS REAL ) * 61 * + 67 * + - COUNT ( * ) + - - 11 / + 29 WHEN - MIN ( ( - CAST ( - 3 AS INTEGER ) ) ) THEN NULL END * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL + 43 + + 90 * + + ( - 10 ) + + 73 - - + NULLIF ( + 91, - - MIN( DISTINCT + - 9 ) ) * + 33 AS col2
----
2219

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL + 43 + + 90 * + + ( - 10 ) + + 73 - - + NULLIF ( + 91, - - MIN ( DISTINCT + - 9 ) ) * + 33 AS col2
----
2219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2839
SELECT DISTINCT - ( + 18 ) + - + 47 + + COUNT( * ) DIV + - 93 col0
----
-65

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT - ( + 18 ) + - + 47 + + COUNT ( * ) / + - 93 col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT DISTINCT - COUNT( * ) * + NULLIF ( - 26, - 65 )
----
26

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT - COUNT ( * ) * + NULLIF ( - 26, - 65 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT + NULLIF ( COUNT( * ), - 49 ) * - 40 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2841
SELECT + NULLIF ( COUNT ( * ), - 49 ) * - 40 AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2842
SELECT - 38 * - - CAST( NULL AS SIGNED ) - - 20 + + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT - 38 * - - CAST ( NULL AS INTEGER ) - - 20 + + - 26
----
NULL

query I rowsort
SELECT 9 + + - 69
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2844
SELECT MIN( ALL 97 ) * CASE - 8 WHEN + + CASE - COUNT( ALL + 51 ) WHEN + COUNT( ALL - 44 ) / - 93 THEN + 5 WHEN - COUNT( * ) * + CASE COALESCE ( + NULLIF ( 92, + CASE - 50 WHEN + NULLIF ( + - 25, + + COUNT( * ) ) * 37 + 27 / CAST( NULL AS SIGNED ) THEN + - 59 * 40 END * - ( + 52 * + 31 ) ), 21 / 71 ) WHEN - 32 / - 39 THEN - 31 * ( + 82 * + 59 ) WHEN + 28 THEN - 11 ELSE 55 END + + 35 + + 79 THEN NULL WHEN 68 + 58 THEN NULL ELSE 81 END * + 13 THEN - 81 + + ( 66 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT MIN ( ALL 97 ) * CASE - 8 WHEN + + CASE - COUNT ( ALL + 51 ) WHEN + COUNT ( ALL - 44 ) / - 93 THEN + 5 WHEN - COUNT ( * ) * + CASE COALESCE ( + NULLIF ( 92, + CASE - 50 WHEN + NULLIF ( + - 25, + + COUNT ( * ) ) * 37 + 27 / CAST ( NULL AS INTEGER ) THEN + - 59 * 40 END * - ( + 52 * + 31 ) ), 21 / 71 ) WHEN - 32 / - 39 THEN - 31 * ( + 82 * + 59 ) WHEN + 28 THEN - 11 ELSE 55 END + + 35 + + 79 THEN NULL WHEN 68 + 58 THEN NULL ELSE 81 END * + 13 THEN - 81 + + ( 66 ) END AS col0
----
NULL

query I rowsort
SELECT + + 42 col1
----
42

query II rowsort
SELECT DISTINCT - - 38, + 35 AS col0
----
38
35

query I rowsort
SELECT ALL - 1 * - - 35 * - 17 + + ( - 51 )
----
544

query I rowsort
SELECT + 86 * - + 3 + + 32
----
-226

query I rowsort
SELECT DISTINCT 26 - - 29
----
55

query II rowsort
SELECT 67 - - 59 - - 55 AS col2, 13
----
181
13

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2853
SELECT MIN( ALL + - 17 ) * + - CASE - + COUNT( * ) WHEN - AVG ( ALL CASE NULLIF ( + 96, CAST( - - 40 AS SIGNED ) ) WHEN 38 / - 72 THEN NULL WHEN + 37 + - 51 THEN 3 * - 32 ELSE NULLIF ( 27, - ( + 99 ) ) END ) THEN NULL WHEN + COUNT( * ) + - + 77 THEN - + 81 / - 61 END + - + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT MIN ( ALL + - 17 ) * + - CASE - + COUNT ( * ) WHEN - AVG ( ALL CASE NULLIF ( + 96, CAST ( - - 40 AS INTEGER ) ) WHEN 38 / - 72 THEN NULL WHEN + 37 + - 51 THEN 3 * - 32 ELSE NULLIF ( 27, - ( + 99 ) ) END ) THEN NULL WHEN + COUNT ( * ) + - + 77 THEN - + 81 / - 61 END + - + 49
----
NULL

query I rowsort
SELECT DISTINCT - 49 * 88 AS col2
----
-4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2855
SELECT ALL 10 - CASE + 51 WHEN + COUNT( - + 74 ) - - - NULLIF ( 57, + 0 * 86 ) THEN 50 + - 47 WHEN - + 72 + COUNT( * ) THEN NULL WHEN 37 - ( - COUNT( * ) ) THEN NULL ELSE + - 97 END DIV + - 28 - + - ( + - MIN( DISTINCT + 29 ) ) DIV - 71 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL 10 - CASE + 51 WHEN + COUNT ( - + 74 ) - - - NULLIF ( 57, + 0 * 86 ) THEN 50 + - 47 WHEN - + 72 + COUNT ( * ) THEN NULL WHEN 37 - ( - COUNT ( * ) ) THEN NULL ELSE + - 97 END / + - 28 - + - ( + - MIN ( DISTINCT + 29 ) ) / - 71 AS col1
----
7

query I rowsort
SELECT 50 - - 61
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2857
SELECT DISTINCT 76 AS col0, - 55 * - COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
76
NULL

skipif mysql # not compatible
query II rowsort label-2857
SELECT DISTINCT 76 AS col0, - 55 * - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
76
NULL

query II rowsort
SELECT ALL 80, 7 AS col1
----
80
7

query II rowsort
SELECT 73 AS col1, 4 AS col2
----
73
4

query I rowsort
SELECT 47 * - 98
----
-4606

onlyif mysql # aggregate syntax: 
query II rowsort label-2861
SELECT 86, 98 * - 68 + - COUNT( * ) AS col1
----
86
-6665

skipif mysql # not compatible
query II rowsort label-2861
SELECT 86, 98 * - 68 + - COUNT ( * ) AS col1
----
86
-6665

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2864
SELECT 72 AS col1, 92 + + COUNT( * )
----
72
93

skipif mysql # not compatible
query II rowsort label-2864
SELECT 72 AS col1, 92 + + COUNT ( * )
----
72
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2865
SELECT DISTINCT 12 DIV + COALESCE ( 40, 13 )
----
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT 12 / + COALESCE ( 40, 13 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL 70 + - + ( 31 ) * + COUNT( * ) * + - 92 - + NULLIF ( + 69, - - 85 ) AS col2
----
2853

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL 70 + - + ( 31 ) * + COUNT ( * ) * + - 92 - + NULLIF ( + 69, - - 85 ) AS col2
----
2853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2867
SELECT 81, - COALESCE ( - 97, - - 70 * - + 3 + COUNT( * ) + CAST( + 76 AS SIGNED ) DIV 64 + + 77 + - 33 ) col0
----
81
97

skipif mysql # not compatible
query II rowsort label-2867
SELECT 81, - COALESCE ( - 97, - - 70 * - + 3 + COUNT ( * ) + CAST ( + 76 AS INTEGER ) / 64 + + 77 + - 33 ) col0
----
81
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT ALL 92 * + 40 + - COUNT( * ) AS col0
----
3679

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL 92 * + 40 + - COUNT ( * ) AS col0
----
3679

query I rowsort
SELECT 1 * 15 col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2870
SELECT COUNT( * ) * - 59 + - NULLIF ( + AVG ( DISTINCT 63 ), + + SUM( - 22 ) ) + 22 / - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT COUNT ( * ) * - 59 + - NULLIF ( + AVG ( DISTINCT 63 ), + + SUM ( - 22 ) ) + 22 / - ( - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT + 16 * + 46 + - COUNT( * ) + - 67 * - 26 + + + 58
----
2535

skipif mysql # not compatible
query I rowsort label-2873
SELECT + 16 * + 46 + - COUNT ( * ) + - 67 * - 26 + + + 58
----
2535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2874
SELECT + 19 / + 36 + - 76 / - CAST( NULL AS SIGNED ) * + - COUNT( * ) * - ( - - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT + 19 / + 36 + - 76 / - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * - ( - - 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2875
SELECT + + 77 AS col0, + COUNT( * ) + + ( - 96 ) col2, 81 + + 70 AS col0
----
77
-95
151

skipif mysql # not compatible
query III rowsort label-2875
SELECT + + 77 AS col0, + COUNT ( * ) + + ( - 96 ) col2, 81 + + 70 AS col0
----
77
-95
151

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2876
SELECT DISTINCT - - 52 * - 58 + + - 22 * + + 60 * CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1, - 13 AS col1
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-2876
SELECT DISTINCT - - 52 * - 58 + + - 22 * + + 60 * CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1, - 13 AS col1
----
NULL
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT - 19 * - SUM( ALL + 88 ) + + 45
----
1717

skipif mysql # not compatible
query I rowsort label-2877
SELECT - 19 * - SUM ( ALL + 88 ) + + 45
----
1717

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

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT COUNT ( * ) / + 97 + + + 90 AS col0
----
90

query I rowsort
SELECT ALL + 36 - + 24 AS col1
----
12

onlyif mysql # DIV for integer division: 
query III rowsort label-2880
SELECT + + 87 AS col0, - 33, - - COALESCE ( 14, - 71 DIV + - 44 ) + - - 20 * 64 AS col2
----
87
-33
1294

skipif mysql # not compatible
query III rowsort label-2880
SELECT + + 87 AS col0, - 33, - - COALESCE ( 14, - 71 / + - 44 ) + - - 20 * 64 AS col2
----
87
-33
1294

query I rowsort
SELECT 90 + 62 col2
----
152

query I rowsort
SELECT 34 * + - 81 AS col2
----
-2754

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL - COUNT( * ) * 62 + + 28
----
-34

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL - COUNT ( * ) * 62 + + 28
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT - 39 * - 74 + - - CASE - 27 WHEN - MAX( DISTINCT + - ( - - 73 ) ) THEN - + NULLIF ( COUNT( * ), + 56 + - - 35 * + 0 ) - + 88 * 6 - - 18 ELSE NULL END * 85 * - + COUNT( DISTINCT - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT - 39 * - 74 + - - CASE - 27 WHEN - MAX ( DISTINCT + - ( - - 73 ) ) THEN - + NULLIF ( COUNT ( * ), + 56 + - - 35 * + 0 ) - + 88 * 6 - - 18 ELSE NULL END * 85 * - + COUNT ( DISTINCT - 94 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT - - 56 * 55 - + 31 * SUM( ALL 36 ) + - - CASE CAST( NULL AS SIGNED ) WHEN + 24 * - 71 + - + 14 + - - 51 THEN 49 ELSE - - 17 END AS col1
----
1981

skipif mysql # not compatible
query I rowsort label-2885
SELECT - - 56 * 55 - + 31 * SUM ( ALL 36 ) + - - CASE CAST ( NULL AS INTEGER ) WHEN + 24 * - 71 + - + 14 + - - 51 THEN 49 ELSE - - 17 END AS col1
----
1981

query I rowsort
SELECT - 11 - + 42 AS col0
----
-53

query I rowsort
SELECT - + 89 * + 71 + 78
----
-6241

query I rowsort
SELECT - + 84 * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2889
SELECT - + 40 + - + COUNT( * ) * + + 82 + CAST( NULL AS DECIMAL ) / + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT - + 40 + - + COUNT ( * ) * + + 82 + CAST ( NULL AS REAL ) / + 3 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT - MAX( + - 60 ) * 59 * ( - + 61 ) + + COALESCE ( 60, - - 4 )
----
-215880

skipif mysql # not compatible
query I rowsort label-2891
SELECT - MAX ( + - 60 ) * 59 * ( - + 61 ) + + COALESCE ( 60, - - 4 )
----
-215880

query I rowsort
SELECT DISTINCT 1 * + - 98 * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT NULLIF ( - 20, - + ( 87 ) * - 42 - COUNT( 84 ) + 47 * - - AVG ( ALL + 61 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT NULLIF ( - 20, - + ( 87 ) * - 42 - COUNT ( 84 ) + 47 * - - AVG ( ALL + 61 ) )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2894
SELECT - COUNT( * ) + - 31 AS col2, 9
----
-32
9

skipif mysql # not compatible
query II rowsort label-2894
SELECT - COUNT ( * ) + - 31 AS col2, 9
----
-32
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2896
SELECT DISTINCT - 33 + - + 21 * - CAST( - + ( - 27 ) AS SIGNED ), + 17 AS col1
----
534
17

skipif mysql # not compatible
query II rowsort label-2896
SELECT DISTINCT - 33 + - + 21 * - CAST ( - + ( - 27 ) AS INTEGER ), + 17 AS col1
----
534
17

query I rowsort
SELECT ALL 59 + - ( - 92 )
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL - 42 + 53 + - 0 + + 13 * - 15 + COUNT( DISTINCT + 64 ) - - - 41 AS col0
----
-224

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL - 42 + 53 + - 0 + + 13 * - 15 + COUNT ( DISTINCT + 64 ) - - - 41 AS col0
----
-224

query I rowsort
SELECT DISTINCT + 88 + - 96 * 1
----
-8

query I rowsort
SELECT ALL - 70 + + 6 AS col1
----
-64

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT + 28 + + - 74 + - 3 - - 77 - - NULLIF ( + 61, + 61 ) - + CASE + 82 WHEN COUNT( * ) THEN + 32 END * + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT + 28 + + - 74 + - 3 - - 77 - - NULLIF ( + 61, + 61 ) - + CASE + 82 WHEN COUNT ( * ) THEN + 32 END * + 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2904
SELECT + 5 + + COUNT( * ) col0, + 84 + - ( - 82 ) col2
----
6
166

skipif mysql # not compatible
query II rowsort label-2904
SELECT + 5 + + COUNT ( * ) col0, + 84 + - ( - 82 ) col2
----
6
166

onlyif mysql # DIV for integer division: 
query I rowsort label-2905
SELECT ALL - NULLIF ( 25, + 70 ) * 89 + + 96 DIV - 73 col2
----
-2226

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - NULLIF ( 25, + 70 ) * 89 + + 96 / - 73 col2
----
-2226

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT - 83 * + + 74 + ( - COUNT( * ) )
----
-6143

skipif mysql # not compatible
query I rowsort label-2906
SELECT - 83 * + + 74 + ( - COUNT ( * ) )
----
-6143

onlyif mysql # DIV for integer division: 
query II rowsort label-2907
SELECT DISTINCT 54 * - - 67 + - 60 DIV - 19 + + 84 AS col1, + 82
----
3705
82

skipif mysql # not compatible
query II rowsort label-2907
SELECT DISTINCT 54 * - - 67 + - 60 / - 19 + + 84 AS col1, + 82
----
3705
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT ALL + + CAST( + COALESCE ( + + 56, 10 * + + 54 ) AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL + + CAST ( + COALESCE ( + + 56, 10 * + + 54 ) AS INTEGER )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2909
SELECT DISTINCT - 7 * 87 DIV + - 25
----
24

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT - 7 * 87 / + - 25
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2910
SELECT + 69 DIV + COUNT( * ) AS col0, 95 AS col1
----
69
95

skipif mysql # not compatible
query II rowsort label-2910
SELECT + 69 / + COUNT ( * ) AS col0, 95 AS col1
----
69
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2911
SELECT + + MAX( - 76 ) col2, 9
----
-76
9

skipif mysql # not compatible
query II rowsort label-2911
SELECT + + MAX ( - 76 ) col2, 9
----
-76
9

query I rowsort
SELECT + COALESCE ( - - 3, - 2 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2913
SELECT 52 * - AVG ( DISTINCT + 44 ) + - 81 + - 33 * + - 80 + - - 92 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT 52 * - AVG ( DISTINCT + 44 ) + - 81 + - 33 * + - 80 + - - 92 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + + ( + 21 ) col1, 70
----
21
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT 8 * ( - - 48 ) - 78 + - 75 - - NULLIF ( - 13, + 10 ) + + MAX( 65 ) AS col0
----
283

skipif mysql # not compatible
query I rowsort label-2915
SELECT 8 * ( - - 48 ) - 78 + - 75 - - NULLIF ( - 13, + 10 ) + + MAX ( 65 ) AS col0
----
283

onlyif mysql # aggregate syntax: 
query II rowsort label-2916
SELECT - 23 AS col1, COUNT( * ) * + 60
----
-23
60

skipif mysql # not compatible
query II rowsort label-2916
SELECT - 23 AS col1, COUNT ( * ) * + 60
----
-23
60

query I rowsort
SELECT ALL NULLIF ( + 65, 24 * + ( - 91 ) ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT + COUNT( + + 51 ) - - + 25 * 89
----
2226

skipif mysql # not compatible
query I rowsort label-2918
SELECT + COUNT ( + + 51 ) - - + 25 * 89
----
2226

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2919
SELECT - 77 AS col1, - CAST( NULL AS SIGNED ) * - 80 AS col1
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-2919
SELECT - 77 AS col1, - CAST ( NULL AS INTEGER ) * - 80 AS col1
----
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT + COALESCE ( - 54, - + 48, + 32 ) / - ( CAST( NULL AS SIGNED ) ) * + + 94 / + 43 * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT + COALESCE ( - 54, - + 48, + 32 ) / - ( CAST ( NULL AS INTEGER ) ) * + + 94 / + 43 * + 53
----
NULL

query I rowsort
SELECT ALL ( - - 16 ) AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2922
SELECT - 95 + + 33 / + CAST( NULL AS SIGNED ) + + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT - 95 + + 33 / + CAST ( NULL AS INTEGER ) + + + 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2923
SELECT - CAST( - - 2 AS SIGNED ) DIV + + MAX( DISTINCT 22 )
----
0

skipif mysql # not compatible
query I rowsort label-2923
SELECT - CAST ( - - 2 AS INTEGER ) / + + MAX ( DISTINCT 22 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT + 1 + + + COUNT( * ) + 16 - + 93 * 51 * - 18
----
85392

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT + 1 + + + COUNT ( * ) + 16 - + 93 * 51 * - 18
----
85392

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT - SUM( 83 ) * - 83 * 56 col2
----
385784

skipif mysql # not compatible
query I rowsort label-2925
SELECT - SUM ( 83 ) * - 83 * 56 col2
----
385784

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT ALL + 83 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL + 83 / 92
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2928
SELECT - 54 AS col1, CASE - - 77 WHEN + COUNT( * ) THEN - + 51 * 46 + 35 ELSE NULL END
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-2928
SELECT - 54 AS col1, CASE - - 77 WHEN + COUNT ( * ) THEN - + 51 * 46 + 35 ELSE NULL END
----
-54
NULL

query I rowsort
SELECT - 29 * 85
----
-2465

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2930
SELECT 22, CAST( - - 39 AS SIGNED ) AS col0
----
22
39

skipif mysql # not compatible
query II rowsort label-2930
SELECT 22, CAST ( - - 39 AS INTEGER ) AS col0
----
22
39

query II rowsort
SELECT - NULLIF ( - 55, + 5 ) AS col2, + 99 AS col0
----
55
99

query I rowsort
SELECT ALL - 39 - - 76 AS col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2933
SELECT ALL + CASE + 95 WHEN 39 THEN NULL ELSE + 2 + - 85 END * + ( - 93 ) + + 20 + 33 * MIN( 9 ) AS col1, - 85 AS col2
----
8036
-85

skipif mysql # not compatible
query II rowsort label-2933
SELECT ALL + CASE + 95 WHEN 39 THEN NULL ELSE + 2 + - 85 END * + ( - 93 ) + + 20 + 33 * MIN ( 9 ) AS col1, - 85 AS col2
----
8036
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-2934
SELECT - COUNT( * ), + 50 * - - 19 AS col0
----
-1
950

skipif mysql # not compatible
query II rowsort label-2934
SELECT - COUNT ( * ), + 50 * - - 19 AS col0
----
-1
950

onlyif mysql # aggregate syntax: 
query II rowsort label-2935
SELECT + 61 AS col1, 67 + + 50 * - + COUNT( * )
----
61
17

skipif mysql # not compatible
query II rowsort label-2935
SELECT + 61 AS col1, 67 + + 50 * - + COUNT ( * )
----
61
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT ALL + + 46 DIV NULLIF ( + + 69, + - 35 + + - 65 + 33 + 98 DIV + + ( - ( - 21 ) ) + 44 DIV + 45 * + + 53 - + 61 ) - - 53
----
53

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL + + 46 / NULLIF ( + + 69, + - 35 + + - 65 + 33 + 98 / + + ( - ( - 21 ) ) + 44 / + 45 * + + 53 - + 61 ) - - 53
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2937
SELECT 14 * NULLIF ( - 67, + 34 * - MIN( DISTINCT 10 ) ) + - MAX( 16 ) - + + CASE + COUNT( * ) WHEN 44 + - - MIN( DISTINCT + 37 ) THEN AVG ( DISTINCT + 46 ) * + 72 ELSE 94 END DIV + 31 - - - 79 * NULLIF ( - 27, - 79 ) DIV 6 AS col1
----
-602

skipif mysql # not compatible
query I rowsort label-2937
SELECT 14 * NULLIF ( - 67, + 34 * - MIN ( DISTINCT 10 ) ) + - MAX ( 16 ) - + + CASE + COUNT ( * ) WHEN 44 + - - MIN ( DISTINCT + 37 ) THEN AVG ( DISTINCT + 46 ) * + 72 ELSE 94 END / + 31 - - - 79 * NULLIF ( - 27, - 79 ) / 6 AS col1
----
-602

query II rowsort
SELECT 76, 42 AS col1
----
76
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT - + 55 * - 62 + + 79 - - SUM( - COALESCE ( + 19, - - 45 ) ) col0
----
3470

skipif mysql # not compatible
query I rowsort label-2939
SELECT - + 55 * - 62 + + 79 - - SUM ( - COALESCE ( + 19, - - 45 ) ) col0
----
3470

query I rowsort
SELECT 19 + - 10
----
9

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

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

query I rowsort
SELECT + COALESCE ( + + 29, 75 ) + - 75
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ALL CASE + - 30 WHEN - 14 THEN - - 18 WHEN 3 THEN + 99 END * + - 98 * + COUNT( * ) + AVG ( ALL + - 70 ) * - 95 + + 15 + 82 / 24 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL CASE + - 30 WHEN - 14 THEN - - 18 WHEN 3 THEN + 99 END * + - 98 * + COUNT ( * ) + AVG ( ALL + - 70 ) * - 95 + + 15 + 82 / 24 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2944
SELECT + CASE 58 WHEN + 21 THEN 87 - + - 57 ELSE 92 END * + COUNT( * ) + - CAST( NULL AS SIGNED ) - - - 81 AS col1, 37 * - ( - + CAST( - - 42 AS SIGNED ) )
----
NULL
1554

skipif mysql # not compatible
query II rowsort label-2944
SELECT + CASE 58 WHEN + 21 THEN 87 - + - 57 ELSE 92 END * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) - - - 81 AS col1, 37 * - ( - + CAST ( - - 42 AS INTEGER ) )
----
NULL
1554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2945
SELECT COUNT( * ) DIV - - 85 + - - ( - 77 ) + + 60
----
-17

skipif mysql # not compatible
query I rowsort label-2945
SELECT COUNT ( * ) / - - 85 + - - ( - 77 ) + + 60
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2946
SELECT DISTINCT + 1 + - + ( CAST( NULL AS DECIMAL ) ) AS col1, 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-2946
SELECT DISTINCT + 1 + - + ( CAST ( NULL AS REAL ) ) AS col1, 27
----
NULL
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT ( + ( + 51 ) ) + - CAST( - 24 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-2947
SELECT ( + ( + 51 ) ) + - CAST ( - 24 AS INTEGER )
----
75

query I rowsort
SELECT ALL - 68 + 81
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2949
SELECT DISTINCT 12 + - 44 AS col1, CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-32
-1

skipif mysql # not compatible
query II rowsort label-2949
SELECT DISTINCT 12 + - 44 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-32
-1

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

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL + 88 + - COUNT ( * ) AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT CAST( - - CAST( + 95 AS SIGNED ) AS SIGNED ) + 70
----
165

skipif mysql # not compatible
query I rowsort label-2951
SELECT CAST ( - - CAST ( + 95 AS INTEGER ) AS INTEGER ) + 70
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2952
SELECT 88 * - CAST( - + COALESCE ( + + 12, - + 39 ) AS SIGNED ) * COUNT( * ) + 51 * - ( - - 22 ) AS col1, ( - 64 ) - - COUNT( * ) AS col0
----
-66
-63

skipif mysql # not compatible
query II rowsort label-2952
SELECT 88 * - CAST ( - + COALESCE ( + + 12, - + 39 ) AS INTEGER ) * COUNT ( * ) + 51 * - ( - - 22 ) AS col1, ( - 64 ) - - COUNT ( * ) AS col0
----
-66
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT DISTINCT COUNT( 90 ) * + 17
----
17

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT COUNT ( 90 ) * + 17
----
17

query II rowsort
SELECT 81 + + 15 AS col1, NULLIF ( + 33, - 23 ) + - 90
----
96
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT DISTINCT - 70 - + SUM( DISTINCT - + 66 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT - 70 - + SUM ( DISTINCT - + 66 ) AS col1
----
-4

query I rowsort
SELECT 29 + - 70 * + - ( + + 3 ) + 90 AS col1
----
329

query I rowsort
SELECT 0 * - - 52 col1
----
0

query I rowsort
SELECT ALL 81 * - 60 * + + 23
----
-111780

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT ALL - 18 - + + 73 AS col2, 43 + - 94 * - 27 * + - MAX( ALL 58 )
----
-91
-147161

skipif mysql # not compatible
query II rowsort label-2959
SELECT ALL - 18 - + + 73 AS col2, 43 + - 94 * - 27 * + - MAX ( ALL 58 )
----
-91
-147161

onlyif mysql # aggregate syntax: 
query II rowsort label-2960
SELECT ALL SUM( DISTINCT 70 ) AS col1, - 29
----
70
-29

skipif mysql # not compatible
query II rowsort label-2960
SELECT ALL SUM ( DISTINCT 70 ) AS col1, - 29
----
70
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2961
SELECT - COUNT( ALL + 35 ) AS col2, + COUNT( 42 ) * + 15 + + 5
----
-1
20

skipif mysql # not compatible
query II rowsort label-2961
SELECT - COUNT ( ALL + 35 ) AS col2, + COUNT ( 42 ) * + 15 + + 5
----
-1
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2962
SELECT 39 + + + MAX( + + 27 ) + - - COALESCE ( - + CAST( NULL AS SIGNED ), 51 ) + + - 7 col2, + 47 col2
----
110
47

skipif mysql # not compatible
query II rowsort label-2962
SELECT 39 + + + MAX ( + + 27 ) + - - COALESCE ( - + CAST ( NULL AS INTEGER ), 51 ) + + - 7 col2, + 47 col2
----
110
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2963
SELECT + 42 DIV - + 63
----
0

skipif mysql # not compatible
query I rowsort label-2963
SELECT + 42 / - + 63
----
0

query II rowsort
SELECT + 81 * - + 21 AS col0, 82
----
-1701
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2965
SELECT + 55 * 44 DIV + COUNT( * )
----
2420

skipif mysql # not compatible
query I rowsort label-2965
SELECT + 55 * 44 / + COUNT ( * )
----
2420

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT - 64 + 60 + - + COUNT( * ) + - + 6 + COUNT( + 35 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2966
SELECT - 64 + 60 + - + COUNT ( * ) + - + 6 + COUNT ( + 35 ) AS col2
----
-10

query I rowsort
SELECT DISTINCT + 66 * - + 88 AS col0
----
-5808

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

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

query I rowsort
SELECT DISTINCT + 30 + + - 52
----
-22

query II rowsort
SELECT ALL - 72 + 33 AS col0, + 39 + 4 + - 57 * 92
----
-39
-5201

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2972
SELECT DISTINCT - 39 + CASE + 75 WHEN + + 63 * + 19 / - + 34 + - + 34 * - - ( 93 ) + 31 THEN + + COUNT( * ) END / + 0 * - ( - 21 ) * CAST( + 91 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT - 39 + CASE + 75 WHEN + + 63 * + 19 / - + 34 + - + 34 * - - ( 93 ) + 31 THEN + + COUNT ( * ) END / + 0 * - ( - 21 ) * CAST ( + 91 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2973
SELECT - COUNT( * ) DIV 30 + - - 21 col1
----
21

skipif mysql # not compatible
query I rowsort label-2973
SELECT - COUNT ( * ) / 30 + - - 21 col1
----
21

query I rowsort
SELECT DISTINCT 1 + + - 97 * - NULLIF ( + - 98, - 58 / + 25 * 25 + 82 )
----
-9505

query I rowsort
SELECT DISTINCT - 1 + - 48
----
-49

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2978
SELECT ( + + 4 ) * + 55 * + COUNT( * ) + + - 5 AS col0, 19 AS col1
----
215
19

skipif mysql # not compatible
query II rowsort label-2978
SELECT ( + + 4 ) * + 55 * + COUNT ( * ) + + - 5 AS col0, 19 AS col1
----
215
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL - MAX( DISTINCT + - 30 ) col1
----
30

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL - MAX ( DISTINCT + - 30 ) col1
----
30

query II rowsort
SELECT 74 AS col1, 63 * - 63
----
74
-3969

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

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

query I rowsort
SELECT 20 * - 24 * - 1 + + - ( + 15 ) AS col1
----
465

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2984
SELECT CASE - + 22 WHEN COUNT( * ) THEN - - 11 END + + 5 AS col2, - 39 + + COUNT( * ) DIV MAX( 66 )
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-2984
SELECT CASE - + 22 WHEN COUNT ( * ) THEN - - 11 END + + 5 AS col2, - 39 + + COUNT ( * ) / MAX ( 66 )
----
NULL
-39

query I rowsort
SELECT 10 * - - 15 * ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2986
SELECT - MAX( + + ( - 11 ) ), 20 AS col2
----
11
20

skipif mysql # not compatible
query II rowsort label-2986
SELECT - MAX ( + + ( - 11 ) ), 20 AS col2
----
11
20

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

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

query I rowsort
SELECT 35 * ( + + 98 )
----
3430

query I rowsort
SELECT ALL 28 * + 12 AS col2
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT 64 - + - 86 * - + COUNT( * ) + + 2 * + + 78 AS col0
----
134

skipif mysql # not compatible
query I rowsort label-2990
SELECT 64 - + - 86 * - + COUNT ( * ) + + 2 * + + 78 AS col0
----
134

query II rowsort
SELECT - 96, 45 * + 43 - + ( - + ( + - 43 ) ) AS col1
----
-96
1892

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2992
SELECT - 7 AS col2, + COUNT( * ) DIV - 42 AS col2
----
-7
0

skipif mysql # not compatible
query II rowsort label-2992
SELECT - 7 AS col2, + COUNT ( * ) / - 42 AS col2
----
-7
0

query I rowsort
SELECT ALL 9 * 3
----
27

query I rowsort
SELECT + 79 * 93 + - 5 * + 28 AS col0
----
7207

query I rowsort
SELECT - 48 * + 83 - - 25 * ( - 27 )
----
-4659

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

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

query II rowsort
SELECT ALL 58 col0, - 28 col1
----
58
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - + 56 * + - 59 + + COUNT( * )
----
3305

skipif mysql # not compatible
query I rowsort label-2998
SELECT - + 56 * + - 59 + + COUNT ( * )
----
3305

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

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT - COUNT ( * ) / - + 88
----
0

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

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

query I rowsort
SELECT ALL 9 * + + 91 + - 68
----
751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3002
SELECT - + 24 * + COUNT( * ) + + CASE + 70 WHEN - 13 THEN - + CAST( NULL AS SIGNED ) + + COUNT( * ) * + MAX( - 84 ) * - 34 WHEN 98 + - - 45 THEN - 31 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT - + 24 * + COUNT ( * ) + + CASE + 70 WHEN - 13 THEN - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + MAX ( - 84 ) * - 34 WHEN 98 + - - 45 THEN - 31 END AS col0
----
NULL

query I rowsort
SELECT - 51 * + 90 AS col1
----
-4590

onlyif mysql # DIV for integer division: 
query II rowsort label-3004
SELECT - 13 DIV 41 + 72 - - 33 * + 20 AS col2, - 11
----
732
-11

skipif mysql # not compatible
query II rowsort label-3004
SELECT - 13 / 41 + 72 - - 33 * + 20 AS col2, - 11
----
732
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3005
SELECT - 4 * - - 78 DIV - - COUNT( * ) - - 87
----
-225

skipif mysql # not compatible
query I rowsort label-3005
SELECT - 4 * - - 78 / - - COUNT ( * ) - - 87
----
-225

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

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

query II rowsort
SELECT ALL + - 39 AS col1, 22
----
-39
22

query I rowsort
SELECT - 8 + - 19 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT + 38 * + 1 + 59 - SUM( + 19 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-3009
SELECT + 38 * + 1 + 59 - SUM ( + 19 ) AS col0
----
78

query I rowsort
SELECT - + 55 + + 89 + - 42 + + + 93
----
85

query I rowsort
SELECT ALL - + 4 * - + 95
----
380

query I rowsort
SELECT ALL + NULLIF ( - + 11, 44 * + 56 ) col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT + MAX( ALL + 53 ) * - + 94 + + + COUNT( * ) * - + 4 AS col2
----
-4986

skipif mysql # not compatible
query I rowsort label-3013
SELECT + MAX ( ALL + 53 ) * - + 94 + + + COUNT ( * ) * - + 4 AS col2
----
-4986

onlyif mysql # aggregate syntax: 
query II rowsort label-3014
SELECT ALL + 56 AS col1, - NULLIF ( - 73, + COUNT( * ) )
----
56
73

skipif mysql # not compatible
query II rowsort label-3014
SELECT ALL + 56 AS col1, - NULLIF ( - 73, + COUNT ( * ) )
----
56
73

query I rowsort
SELECT DISTINCT + COALESCE ( + + 85, - ( - 47 ), + + 2 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT - 95 + - COUNT( * ) * + 56 * - 91 AS col0
----
5001

skipif mysql # not compatible
query I rowsort label-3016
SELECT - 95 + - COUNT ( * ) * + 56 * - 91 AS col0
----
5001

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

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

query I rowsort
SELECT + 88 + - 55 + 77 * - 6 AS col1
----
-429

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3020
SELECT MIN( - 28 ), 33 AS col1
----
-28
33

skipif mysql # not compatible
query II rowsort label-3020
SELECT MIN ( - 28 ), 33 AS col1
----
-28
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3021
SELECT COUNT( * ) AS col1, COALESCE ( + 15, 91, + 9 )
----
1
15

skipif mysql # not compatible
query II rowsort label-3021
SELECT COUNT ( * ) AS col1, COALESCE ( + 15, 91, + 9 )
----
1
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3022
SELECT ALL + 71 col0, 65 + + COUNT( * )
----
71
66

skipif mysql # not compatible
query II rowsort label-3022
SELECT ALL + 71 col0, 65 + + COUNT ( * )
----
71
66

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

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL COUNT ( * ) * + 17 / 75 / + + 13
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3024
SELECT - 52 DIV + - 94 * 53 * + - 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3024
SELECT - 52 / + - 94 * 53 * + - 35 AS col0
----
0

query II rowsort
SELECT + 29 + + - 69 AS col1, 50
----
-40
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), 17 - + 45 * - + 73 ) * + 80 AS col0
----
264160

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), 17 - + 45 * - + 73 ) * + 80 AS col0
----
264160

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

skipif mysql # not compatible
query I rowsort label-3027
SELECT + 22 / - 23
----
0

query I rowsort
SELECT - 34 + + 66 * 95
----
6236

query I rowsort
SELECT + 98 * - - 98 AS col1
----
9604

query II rowsort
SELECT + - 51 + - ( - - 50 ) * + 46 AS col0, 92 * 15
----
-2351
1380

onlyif mysql # aggregate syntax: 
query II rowsort label-3031
SELECT - + SUM( DISTINCT - - 72 ) AS col0, + ( + - COALESCE ( - 67, + - 76, COALESCE ( COUNT( * ), 65 ) * + + 17 + - - 76 ) )
----
-72
67

skipif mysql # not compatible
query II rowsort label-3031
SELECT - + SUM ( DISTINCT - - 72 ) AS col0, + ( + - COALESCE ( - 67, + - 76, COALESCE ( COUNT ( * ), 65 ) * + + 17 + - - 76 ) )
----
-72
67

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT ALL COUNT( * ) * + 64 * 17 * - - 21 * 77 + - ( + + COALESCE ( - 30, + - COUNT( * ) + + 69 + + - 51 * + COUNT( * ) + MAX( DISTINCT + - 37 ) + COUNT( * ) * + ( - - 51 ) DIV MAX( + 71 ) * - 12 ) ) AS col1
----
1759326

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL COUNT ( * ) * + 64 * 17 * - - 21 * 77 + - ( + + COALESCE ( - 30, + - COUNT ( * ) + + 69 + + - 51 * + COUNT ( * ) + MAX ( DISTINCT + - 37 ) + COUNT ( * ) * + ( - - 51 ) / MAX ( + 71 ) * - 12 ) ) AS col1
----
1759326

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

skipif mysql # not compatible
query I rowsort label-3034
SELECT + CAST ( NULL AS INTEGER ) + - + 4 / + 89
----
NULL

query II rowsort
SELECT 7, 48 AS col1
----
7
48

query I rowsort
SELECT + + 19 + + ( - 18 ) AS col2
----
1

query II rowsort
SELECT + 87 AS col2, - 55 + 71
----
87
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT + - ( ( NULLIF ( - 79, + 41 ) ) ) * - + 63 + + + MAX( 21 ) * - 66 AS col2
----
-6363

skipif mysql # not compatible
query I rowsort label-3038
SELECT + - ( ( NULLIF ( - 79, + 41 ) ) ) * - + 63 + + + MAX ( 21 ) * - 66 AS col2
----
-6363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3039
SELECT - - 44 + + - 77 + - + COUNT( * ) + 78 AS col0, - COALESCE ( + COALESCE ( + 41, + 45 ), MAX( ALL - - CAST( NULL AS SIGNED ) ) ) * - - 43 AS col1
----
44
-1763

skipif mysql # not compatible
query II rowsort label-3039
SELECT - - 44 + + - 77 + - + COUNT ( * ) + 78 AS col0, - COALESCE ( + COALESCE ( + 41, + 45 ), MAX ( ALL - - CAST ( NULL AS INTEGER ) ) ) * - - 43 AS col1
----
44
-1763

query II rowsort
SELECT ALL + 76, + 94 + - 18 AS col0
----
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT DISTINCT - - 92 DIV - ( 18 ) + - 68 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT - - 92 / - ( 18 ) + - 68 AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3042
SELECT DISTINCT + 94 AS col0, + 52 + - CAST( + 33 AS SIGNED )
----
94
19

skipif mysql # not compatible
query II rowsort label-3042
SELECT DISTINCT + 94 AS col0, + 52 + - CAST ( + 33 AS INTEGER )
----
94
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3043
SELECT ALL - CAST( NULL AS SIGNED ) / - - 22 + - 61 - + MAX( + - 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL - CAST ( NULL AS INTEGER ) / - - 22 + - 61 - + MAX ( + - 36 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + COUNT( * ) * + 5 col1
----
5

skipif mysql # not compatible
query I rowsort label-3044
SELECT + COUNT ( * ) * + 5 col1
----
5

query I rowsort
SELECT ALL 85 * + 23
----
1955

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3048
SELECT ALL + 29 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL + 29 / 71
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT ALL 24 DIV - 8 - + 48
----
-51

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL 24 / - 8 - + 48
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3050
SELECT + NULLIF ( - + 27, - - 26 ) DIV + - 68 * + 14 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3050
SELECT + NULLIF ( - + 27, - - 26 ) / + - 68 * + 14 * COUNT ( * )
----
0

query II rowsort
SELECT - 36 * - + 41, - COALESCE ( + 61, 81, - - ( + 37 ) * + 30 ) AS col1
----
1476
-61

query I rowsort
SELECT + 7 - 96 AS col2
----
-89

query I rowsort
SELECT - 12 * - 62 * - 2
----
-1488

query II rowsort
SELECT ( 81 ) AS col2, + 22 * - 20 AS col2
----
81
-440

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3055
SELECT + CAST( NULL AS DECIMAL ) * + 62 * ( - - 88 ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT + CAST ( NULL AS REAL ) * + 62 * ( - - 88 ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3056
SELECT - 76 * + CASE - 88 WHEN - 50 - 36 * + + ( - + MAX( ALL + ( + + CAST( NULL AS SIGNED ) ) ) ) + - MAX( + + NULLIF ( + 55, 82 ) ) - + 58 * 24 + - + NULLIF ( + + 93, - - 9 ) * - 44 THEN + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT - 76 * + CASE - 88 WHEN - 50 - 36 * + + ( - + MAX ( ALL + ( + + CAST ( NULL AS INTEGER ) ) ) ) + - MAX ( + + NULLIF ( + 55, 82 ) ) - + 58 * 24 + - + NULLIF ( + + 93, - - 9 ) * - 44 THEN + 66 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3057
SELECT DISTINCT - 39 * - - 71 AS col2, + 84 * - - 37 DIV COUNT( * ) AS col2
----
-2769
3108

skipif mysql # not compatible
query II rowsort label-3057
SELECT DISTINCT - 39 * - - 71 AS col2, + 84 * - - 37 / COUNT ( * ) AS col2
----
-2769
3108

query I rowsort
SELECT ALL + CASE + 47 WHEN - 96 THEN - 58 ELSE NULL END
----
NULL

query I rowsort
SELECT NULLIF ( + - 1, 1 + 23 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT NULLIF ( - 90, COUNT( * ) ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3060
SELECT NULLIF ( - 90, COUNT ( * ) ) AS col2
----
-90

query I rowsort
SELECT 16 * 38
----
608

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3062
SELECT 19 + 41, COALESCE ( + 70, + 18 DIV + - COUNT( * ) ) AS col2
----
60
70

skipif mysql # not compatible
query II rowsort label-3062
SELECT 19 + 41, COALESCE ( + 70, + 18 / + - COUNT ( * ) ) AS col2
----
60
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3063
SELECT DISTINCT + COUNT( * ) + + + CAST( NULL AS SIGNED ), 95 * - 4 AS col1
----
NULL
-380

skipif mysql # not compatible
query II rowsort label-3063
SELECT DISTINCT + COUNT ( * ) + + + CAST ( NULL AS INTEGER ), 95 * - 4 AS col1
----
NULL
-380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3064
SELECT ALL + 0 + 36 AS col2, CASE WHEN - + 23 > + COUNT( * ) AND - 10 + + COUNT( * ) * - + 35 / - + CAST( - - CASE - 82 WHEN + 33 + - + 39 THEN + 59 * COUNT( * ) ELSE - + COUNT( * ) + + 47 END AS SIGNED ) + - 14 - + + COUNT( * ) NOT IN ( + - 46 ) THEN 55 END
----
36
NULL

skipif mysql # not compatible
query II rowsort label-3064
SELECT ALL + 0 + 36 AS col2, CASE WHEN - + 23 > + COUNT ( * ) AND - 10 + + COUNT ( * ) * - + 35 / - + CAST ( - - CASE - 82 WHEN + 33 + - + 39 THEN + 59 * COUNT ( * ) ELSE - + COUNT ( * ) + + 47 END AS INTEGER ) + - 14 - + + COUNT ( * ) NOT IN ( + - 46 ) THEN 55 END
----
36
NULL

query I rowsort
SELECT 71 * + 76 AS col2
----
5396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3066
SELECT DISTINCT + 78 * - - CAST( NULL AS SIGNED ) - - + 28 - 67 * + COUNT( ALL 53 ) + + COUNT( * ) * - MIN( DISTINCT 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT + 78 * - - CAST ( NULL AS INTEGER ) - - + 28 - 67 * + COUNT ( ALL 53 ) + + COUNT ( * ) * - MIN ( DISTINCT 12 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT DISTINCT + - MAX( ALL - - 0 ) + - 13 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT + - MAX ( ALL - - 0 ) + - 13 AS col1
----
-13

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

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col1
----
-2

query II rowsort
SELECT ALL 27 * 72 col1, 34 AS col2
----
1944
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT 63 DIV - + ( 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-3070
SELECT 63 / - + ( 62 )
----
-1

query I rowsort
SELECT ALL + - 17 + 53
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT + COUNT( * ) - + 15 - - 13 + 33 + - + 94 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3072
SELECT + COUNT ( * ) - + 15 - - 13 + 33 + - + 94 AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3073
SELECT + 50 - 16 - - COALESCE ( + 28, - + 37, - 19 * + - 16 + COUNT( ALL CAST( NULL AS SIGNED ) ) - 44, 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3073
SELECT + 50 - 16 - - COALESCE ( + 28, - + 37, - 19 * + - 16 + COUNT ( ALL CAST ( NULL AS INTEGER ) ) - 44, 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-3074
SELECT - NULLIF ( + - 87, 72 * + + COUNT( DISTINCT 49 ) ) AS col1, - 67 AS col0
----
87
-67

skipif mysql # not compatible
query II rowsort label-3074
SELECT - NULLIF ( + - 87, 72 * + + COUNT ( DISTINCT 49 ) ) AS col1, - 67 AS col0
----
87
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 18 + 81 + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 18 + 81 + 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT ALL + COUNT( ALL - + 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL + COUNT ( ALL - + 28 ) AS col0
----
1

query I rowsort
SELECT - - COALESCE ( 89, 93 ) AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3078
SELECT + ( - + CAST( - + 24 AS SIGNED ) ) DIV + 10 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3078
SELECT + ( - + CAST ( - + 24 AS INTEGER ) ) / + 10 AS col2
----
2

query II rowsort
SELECT - - NULLIF ( 60, 64 ) AS col0, - 55 col0
----
60
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3080
SELECT + COALESCE ( - 76, CAST( + 63 AS SIGNED ) - 6 + + 23 + 53 + + CASE - - 15 WHEN + + 48 * - - 96 THEN NULL WHEN - 20 / + 97 * + 21 - CASE + 25 WHEN + 33 + + 59 THEN + ( - 68 ) - + - 78 + + 61 WHEN - 95 THEN NULL END + - CAST( NULL AS DECIMAL ) + - COUNT( * ) * - MAX( + ( 92 ) ) * + 78 * + - 84 + 68 + + - 79 THEN CAST( NULL AS SIGNED ) * + 13 END + 77 * NULLIF ( 13, 71 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-3080
SELECT + COALESCE ( - 76, CAST ( + 63 AS INTEGER ) - 6 + + 23 + 53 + + CASE - - 15 WHEN + + 48 * - - 96 THEN NULL WHEN - 20 / + 97 * + 21 - CASE + 25 WHEN + 33 + + 59 THEN + ( - 68 ) - + - 78 + + 61 WHEN - 95 THEN NULL END + - CAST ( NULL AS REAL ) + - COUNT ( * ) * - MAX ( + ( 92 ) ) * + 78 * + - 84 + 68 + + - 79 THEN CAST ( NULL AS INTEGER ) * + 13 END + 77 * NULLIF ( 13, 71 ) )
----
-76

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

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL COUNT ( * ) - + - COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3082
SELECT - 86 * - + CASE - 95 WHEN - 17 + CASE WHEN 31 IS NOT NULL THEN NULL WHEN 20 * 84 IN ( 60, COUNT( * ) ) THEN - 31 * + CAST( NULL AS SIGNED ) ELSE NULL END THEN 50 + + 35 + - - 89 + + - 71 * - - 56 * SUM( DISTINCT + 70 ) / - + CAST( NULL AS SIGNED ) / + 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT - 86 * - + CASE - 95 WHEN - 17 + CASE WHEN 31 IS NOT NULL THEN NULL WHEN 20 * 84 IN ( 60, COUNT ( * ) ) THEN - 31 * + CAST ( NULL AS INTEGER ) ELSE NULL END THEN 50 + + 35 + - - 89 + + - 71 * - - 56 * SUM ( DISTINCT + 70 ) / - + CAST ( NULL AS INTEGER ) / + 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT DISTINCT + + COALESCE ( COALESCE ( - MAX( ALL 85 ), + 42 ), + 53, + 96 ) * NULLIF ( + - 12, - 67 ) AS col2
----
1020

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + + COALESCE ( COALESCE ( - MAX ( ALL 85 ), + 42 ), + 53, + 96 ) * NULLIF ( + - 12, - 67 ) AS col2
----
1020

query I rowsort
SELECT 12 - - 52
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL MAX( + 75 ) - + - 6
----
81

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL MAX ( + 75 ) - + - 6
----
81

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3087
SELECT + 66 + - MAX( DISTINCT - COALESCE ( 71, - CAST( + CAST( 89 AS SIGNED ) AS SIGNED ) * 97 DIV - 15 * - - CAST( ( 89 ) AS SIGNED ) * 28 - + 8 ) ) AS col0
----
137

skipif mysql # not compatible
query I rowsort label-3087
SELECT + 66 + - MAX ( DISTINCT - COALESCE ( 71, - CAST ( + CAST ( 89 AS INTEGER ) AS INTEGER ) * 97 / - 15 * - - CAST ( ( 89 ) AS INTEGER ) * 28 - + 8 ) ) AS col0
----
137

query I rowsort
SELECT ( 65 ) * - - 52
----
3380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3089
SELECT ( - COUNT( * ) ) DIV - + 61 + + + COALESCE ( - + 27, + + 92 + - COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-3089
SELECT ( - COUNT ( * ) ) / - + 61 + + + COALESCE ( - + 27, + + 92 + - COUNT ( * ) )
----
-27

query II rowsort
SELECT + 29 AS col0, - 57
----
29
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ( - + COALESCE ( 8, + + 61 * + 30 * 46 ) ) + + + 35 + CASE + 72 WHEN + 23 THEN NULL WHEN 7 / - 66 THEN 45 END / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT ( - + COALESCE ( 8, + + 61 * + 30 * 46 ) ) + + + 35 + CASE + 72 WHEN + 23 THEN NULL WHEN 7 / - 66 THEN 45 END / - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + 82, 87 AS col0
----
82
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT ALL MIN( 48 ) * + SUM( 25 ) * 92 * + MIN( + + 87 ) AS col1
----
9604800

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL MIN ( 48 ) * + SUM ( 25 ) * 92 * + MIN ( + + 87 ) AS col1
----
9604800

onlyif mysql # aggregate syntax: 
query II rowsort label-3094
SELECT COUNT( * ) + 23 + 85 AS col1, + ( + 62 ) AS col2
----
109
62

skipif mysql # not compatible
query II rowsort label-3094
SELECT COUNT ( * ) + 23 + 85 AS col1, + ( + 62 ) AS col2
----
109
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3095
SELECT - 32 * - CAST( + - CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) * - + 33 * - CASE - - AVG ( ALL + 8 ) WHEN - 50 THEN NULL WHEN 15 THEN NULL WHEN - AVG ( 46 ) + - 4 + - 59 * + + 89 / - 96 THEN + + 1 + + + CAST( NULL AS SIGNED ) END + - 73 + - 87 + 62 * COALESCE ( - 77, ( - - 96 ) / CASE - 67 WHEN - 97 THEN - CAST( NULL AS SIGNED ) WHEN - - 60 THEN NULL ELSE 81 * + 90 * 2 * 66 + - 24 END + - AVG ( + 27 ) ) / + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3095
SELECT - 32 * - CAST ( + - CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) * - + 33 * - CASE - - AVG ( ALL + 8 ) WHEN - 50 THEN NULL WHEN 15 THEN NULL WHEN - AVG ( 46 ) + - 4 + - 59 * + + 89 / - 96 THEN + + 1 + + + CAST ( NULL AS INTEGER ) END + - 73 + - 87 + 62 * COALESCE ( - 77, ( - - 96 ) / CASE - 67 WHEN - 97 THEN - CAST ( NULL AS INTEGER ) WHEN - - 60 THEN NULL ELSE 81 * + 90 * 2 * 66 + - 24 END + - AVG ( + 27 ) ) / + 27
----
NULL

query I rowsort
SELECT 29 + + 3
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3097
SELECT ALL COUNT( * ) + 60 + + 97 + + COALESCE ( ( - + CASE - 69 WHEN - + 44 * - + COUNT( * ) + 48 * - 3 * + 43 + COUNT( * ) DIV - 94 THEN 85 DIV - - 15 + ( 33 ) - + 17 WHEN + - 16 THEN NULL END ), - 29 * 5 + 53 + + CAST( + 29 AS SIGNED ) + + 38 + + 63, - + 72 * + - 9 * - ( + 24 ) DIV 76 + - + 10 * - 65 + - 93 - COALESCE ( + 5 + 14, + 10 ) ) * 81 * ( ( + 62 ) ) * 4 AS col0
----
763502

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL COUNT ( * ) + 60 + + 97 + + COALESCE ( ( - + CASE - 69 WHEN - + 44 * - + COUNT ( * ) + 48 * - 3 * + 43 + COUNT ( * ) / - 94 THEN 85 / - - 15 + ( 33 ) - + 17 WHEN + - 16 THEN NULL END ), - 29 * 5 + 53 + + CAST ( + 29 AS INTEGER ) + + 38 + + 63, - + 72 * + - 9 * - ( + 24 ) / 76 + - + 10 * - 65 + - 93 - COALESCE ( + 5 + 14, + 10 ) ) * 81 * ( ( + 62 ) ) * 4 AS col0
----
763502

onlyif mysql # DIV for integer division: 
query II rowsort label-3098
SELECT ALL 5 DIV + + 89 * 49 AS col0, NULLIF ( + + 3, + 14 )
----
0
3

skipif mysql # not compatible
query II rowsort label-3098
SELECT ALL 5 / + + 89 * 49 AS col0, NULLIF ( + + 3, + 14 )
----
0
3

query I rowsort
SELECT 54 + + + 52 * 72
----
3798

query I rowsort
SELECT 61 * + 52 AS col2
----
3172

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT DISTINCT NULLIF ( SUM( ALL 52 ), + 34 ) + + 35 + - 8 - 6
----
73

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT NULLIF ( SUM ( ALL 52 ), + 34 ) + + 35 + - 8 - 6
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT DISTINCT + 38 + COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT + 38 + COUNT ( * ) AS col1
----
39

query I rowsort
SELECT - ( - - 30 )
----
-30

query I rowsort
SELECT ALL + NULLIF ( + + 59, + 98 ) + - 55 * - + 8 col0
----
499

query I rowsort
SELECT - 48 + - 42 AS col1
----
-90

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

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

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

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

query II rowsort
SELECT - 21, - 7 AS col1
----
-21
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3110
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + 65
----
NULL
65

skipif mysql # not compatible
query II rowsort label-3110
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + 65
----
NULL
65

query I rowsort
SELECT 49 * + + 94 col2
----
4606

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL COUNT( * ) * - - 14 col2
----
14

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL COUNT ( * ) * - - 14 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT + 97 + + 1 + + + COUNT( * ) + NULLIF ( - NULLIF ( - 87, + - 44 ), + MAX( + + 88 ) ) AS col1
----
186

skipif mysql # not compatible
query I rowsort label-3113
SELECT + 97 + + 1 + + + COUNT ( * ) + NULLIF ( - NULLIF ( - 87, + - 44 ), + MAX ( + + 88 ) ) AS col1
----
186

query I rowsort
SELECT ( - + 67 ) * - 65 * 52 + + 90 AS col0
----
226550

query I rowsort
SELECT ALL - 12 * 95 - + - 11
----
-1129

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL + COUNT( DISTINCT - 70 ) * 74 * - 54
----
-3996

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL + COUNT ( DISTINCT - 70 ) * 74 * - 54
----
-3996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT COALESCE ( - 51, + NULLIF ( + CAST( + 74 AS SIGNED ), 3 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3117
SELECT COALESCE ( - 51, + NULLIF ( + CAST ( + 74 AS INTEGER ), 3 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT 94 * + COUNT( * ) * - + 52
----
-4888

skipif mysql # not compatible
query I rowsort label-3118
SELECT 94 * + COUNT ( * ) * - + 52
----
-4888

onlyif mysql # DIV for integer division: 
query II rowsort label-3119
SELECT ALL 71 DIV - 77, - 70 AS col0
----
0
-70

skipif mysql # not compatible
query II rowsort label-3119
SELECT ALL 71 / - 77, - 70 AS col0
----
0
-70

query I rowsort
SELECT ALL + 66 * - 64 * + 71 AS col0
----
-299904

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT - 90 * 54 - + - COUNT( - + 29 ) AS col2, 27 * - - 91 AS col1
----
-4859
2457

skipif mysql # not compatible
query II rowsort label-3121
SELECT - 90 * 54 - + - COUNT ( - + 29 ) AS col2, 27 * - - 91 AS col1
----
-4859
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT COUNT( + 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3122
SELECT COUNT ( + 90 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3123
SELECT ALL - 58 * - 91 / + + CAST( NULL AS SIGNED ) + + AVG ( + + 19 ) + 53 + AVG ( + + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL - 58 * - 91 / + + CAST ( NULL AS INTEGER ) + + AVG ( + + 19 ) + 53 + AVG ( + + 87 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL + 25 * - COUNT( * ) + - 8 + + 78 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + 25 * - COUNT ( * ) + - 8 + + 78 AS col0
----
45

query I rowsort
SELECT + 70 * - + 24
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT + 76 * 54 * + MAX( + 34 )
----
139536

skipif mysql # not compatible
query I rowsort label-3126
SELECT + 76 * 54 * + MAX ( + 34 )
----
139536

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3127
SELECT ( 83 ) * + + 3 * - ( - 25 ) + NULLIF ( - + CAST( NULL AS SIGNED ), - CAST( - 44 AS SIGNED ) ), - 14 col1
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-3127
SELECT ( 83 ) * + + 3 * - ( - 25 ) + NULLIF ( - + CAST ( NULL AS INTEGER ), - CAST ( - 44 AS INTEGER ) ), - 14 col1
----
NULL
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL + 9 * + 38 * ( - 81 ) + + - NULLIF ( - 96, - COUNT( * ) + + - MAX( DISTINCT + 81 ) + + + 75 ) + + - 44 * - 73 + ( - + 50 ) * + 32 * + 63
----
-125194

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL + 9 * + 38 * ( - 81 ) + + - NULLIF ( - 96, - COUNT ( * ) + + - MAX ( DISTINCT + 81 ) + + + 75 ) + + - 44 * - 73 + ( - + 50 ) * + 32 * + 63
----
-125194

onlyif mysql # aggregate syntax: 
query II rowsort label-3129
SELECT ALL - 48 * 43 + + COALESCE ( + + ( - 21 ), - - COUNT( * ) * + + 83 * COUNT( * ) + - COUNT( * ) - + 2 * + 79 + + 70 * 34 - 4 ), 75 col1
----
-2085
75

skipif mysql # not compatible
query II rowsort label-3129
SELECT ALL - 48 * 43 + + COALESCE ( + + ( - 21 ), - - COUNT ( * ) * + + 83 * COUNT ( * ) + - COUNT ( * ) - + 2 * + 79 + + 70 * 34 - 4 ), 75 col1
----
-2085
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT COUNT( * ) * - 75 + + - 2 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3130
SELECT COUNT ( * ) * - 75 + + - 2 AS col2
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3131
SELECT DISTINCT + 15 * - ( + 81 ) * 21 * + 38 - MIN( DISTINCT + - 85 ) + + COUNT( * ) DIV 42
----
-969485

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT + 15 * - ( + 81 ) * 21 * + 38 - MIN ( DISTINCT + - 85 ) + + COUNT ( * ) / 42
----
-969485

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - CASE + COUNT( * ) WHEN + 33 * 2 - 17 THEN 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT - CASE + COUNT ( * ) WHEN + 33 * 2 - 17 THEN 35 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3133
SELECT + + 40 / + + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT + 79 * MIN( ALL + 56 ) AS col2
----
4424

skipif mysql # not compatible
query I rowsort label-3134
SELECT + 79 * MIN ( ALL + 56 ) AS col2
----
4424

query I rowsort
SELECT + - 54 + 17 * + - 95
----
-1669

query I rowsort
SELECT - 6 - 84 * + 46
----
-3870

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT ALL - 57 DIV - NULLIF ( + + 92, + 83 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL - 57 / - NULLIF ( + + 92, + 83 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3138
SELECT ALL + - CAST( + 64 AS DECIMAL ) * - 18 + + COUNT( * ) + - ( - 23 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + - CAST ( + 64 AS REAL ) * - 18 + + COUNT ( * ) + - ( - 23 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 50, 39 ) col2
----
-50

query I rowsort
SELECT DISTINCT - 66 - - ( 90 ) AS col2
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT - + NULLIF ( - + NULLIF ( + 63, + + 57 ), + 21 + + 31 * NULLIF ( - MIN( DISTINCT + + COALESCE ( + 97, - - 60, + - 50 * + 6 ) ), - - 37 - + 25 ) ) + + 12
----
75

skipif mysql # not compatible
query I rowsort label-3142
SELECT - + NULLIF ( - + NULLIF ( + 63, + + 57 ), + 21 + + 31 * NULLIF ( - MIN ( DISTINCT + + COALESCE ( + 97, - - 60, + - 50 * + 6 ) ), - - 37 - + 25 ) ) + + 12
----
75

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

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

query I rowsort
SELECT + 48 - + NULLIF ( + 68, - 83 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT - 61 * + + COUNT( * ) + - 94
----
-155

skipif mysql # not compatible
query I rowsort label-3145
SELECT - 61 * + + COUNT ( * ) + - 94
----
-155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3146
SELECT ALL 66 + + COUNT( * ) - - 60 * 46 * 28 AS col1, + 25 - - - 66 + + CAST( SUM( - ( 58 ) ) AS SIGNED ) + - 17 * + 53 DIV + ( + 1 ) + + 93 * 28 AS col1
----
77347
1604

skipif mysql # not compatible
query II rowsort label-3146
SELECT ALL 66 + + COUNT ( * ) - - 60 * 46 * 28 AS col1, + 25 - - - 66 + + CAST ( SUM ( - ( 58 ) ) AS INTEGER ) + - 17 * + 53 / + ( + 1 ) + + 93 * 28 AS col1
----
77347
1604

onlyif mysql # DIV for integer division: 
query I rowsort label-3147
SELECT DISTINCT - 7 DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT - 7 / 57 AS col1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3149
SELECT - 30 - CAST( NULL AS SIGNED ) / - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT - 30 - CAST ( NULL AS INTEGER ) / - 48 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT DISTINCT + 63 DIV 84 + ( 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT + 63 / 84 + ( 40 ) AS col0
----
40

query I rowsort
SELECT DISTINCT - 89 * - 4
----
356

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + COUNT( * ) - + 88 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3152
SELECT + COUNT ( * ) - + 88 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT MIN( + 95 ) * - - COUNT( * ) - 3
----
92

skipif mysql # not compatible
query I rowsort label-3153
SELECT MIN ( + 95 ) * - - COUNT ( * ) - 3
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT - 46 + COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3154
SELECT - 46 + COUNT ( * ) AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3155
SELECT ( + - CAST( MIN( DISTINCT - + 70 ) AS SIGNED ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3155
SELECT ( + - CAST ( MIN ( DISTINCT - + 70 ) AS INTEGER ) ) AS col2
----
70

query I rowsort
SELECT DISTINCT + 20 * + 71 + 90 * 19 AS col1
----
3130

query I rowsort
SELECT 36 * + 60 + + - 91 AS col2
----
2069

query I rowsort
SELECT ALL - 87 * - + 20 + 46 + - + 24 - + 26
----
1736

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3160
SELECT + SUM( ALL - 34 ) + + 44 AS col2, + 92 + - - 39 col1
----
10
131

skipif mysql # not compatible
query II rowsort label-3160
SELECT + SUM ( ALL - 34 ) + + 44 AS col2, + 92 + - - 39 col1
----
10
131

query II rowsort
SELECT 16, + 30 AS col0
----
16
30

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

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

query I rowsort
SELECT + 77 * - + 12 + + 17 * - - 94
----
674

query I rowsort
SELECT - - 66 + - 26 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL + SUM( ALL - 79 ) col0
----
-79

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL + SUM ( ALL - 79 ) col0
----
-79

query I rowsort
SELECT ALL - 28 * - - 7
----
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT + - 17 * CASE 8 WHEN + + 82 / - CASE + 31 WHEN - 65 + COUNT( * ) THEN - ( - ( + + CAST( + 3 AS SIGNED ) ) ) * - - ( + - MIN( DISTINCT + COALESCE ( 72, + - 65 ) ) ) + 6 / + - 44 END - - 67 THEN NULL WHEN 70 * 60 THEN + 91 * - 10 * - - 68 WHEN + 26 + - - 36 THEN NULL ELSE 83 END col0
----
-1411

skipif mysql # not compatible
query I rowsort label-3167
SELECT + - 17 * CASE 8 WHEN + + 82 / - CASE + 31 WHEN - 65 + COUNT ( * ) THEN - ( - ( + + CAST ( + 3 AS INTEGER ) ) ) * - - ( + - MIN ( DISTINCT + COALESCE ( 72, + - 65 ) ) ) + 6 / + - 44 END - - 67 THEN NULL WHEN 70 * 60 THEN + 91 * - 10 * - - 68 WHEN + 26 + - - 36 THEN NULL ELSE 83 END col0
----
-1411

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL + COALESCE ( 59, + MIN( + - 96 ) + - - 77 )
----
59

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL + COALESCE ( 59, + MIN ( + - 96 ) + - - 77 )
----
59

query I rowsort
SELECT DISTINCT 22 * - 47 AS col2
----
-1034

query I rowsort
SELECT + 66 + - - 16 AS col1
----
82

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

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

query I rowsort
SELECT + 22 * 64 + + - 63 AS col0
----
1345

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT + - MAX( - COALESCE ( 36, + - 63 ) ) + - 32 + - ( 60 ) * 65 AS col1
----
-3896

skipif mysql # not compatible
query I rowsort label-3173
SELECT + - MAX ( - COALESCE ( 36, + - 63 ) ) + - 32 + - ( 60 ) * 65 AS col1
----
-3896

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT + + 59 - - 36 + + + 14 * - + 51 * + COUNT( * ) + 36
----
-583

skipif mysql # not compatible
query I rowsort label-3174
SELECT + + 59 - - 36 + + + 14 * - + 51 * + COUNT ( * ) + 36
----
-583

query II rowsort
SELECT + + 90 + 31 + + + 61 col1, - 80
----
182
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT - - 84 + - 0 + 86 + + 21 - - CASE - ( COUNT( * ) ) WHEN - MIN( 77 ) THEN CASE 98 WHEN - - 7 THEN + 79 WHEN - - 86 THEN + - 51 END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT - - 84 + - 0 + 86 + + 21 - - CASE - ( COUNT ( * ) ) WHEN - MIN ( 77 ) THEN CASE 98 WHEN - - 7 THEN + 79 WHEN - - 86 THEN + - 51 END ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT ALL - 79 DIV 32 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL - 79 / 32 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT ALL + 10 + 26 + 75 * - + MIN( ALL 18 ) * 37 - - 8 AS col1
----
-49906

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL + 10 + 26 + 75 * - + MIN ( ALL 18 ) * 37 - - 8 AS col1
----
-49906

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT COUNT( * ) + + 89 * + - 31
----
-2758

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT COUNT ( * ) + + 89 * + - 31
----
-2758

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT DISTINCT - - 17 * + 59 * COUNT( DISTINCT + 2 ) AS col2
----
1003

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT - - 17 * + 59 * COUNT ( DISTINCT + 2 ) AS col2
----
1003

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL + COUNT( - - NULLIF ( - - 27, - - 0 + + 6 * + - 69 ) ) + + + 54 col2
----
55

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL + COUNT ( - - NULLIF ( - - 27, - - 0 + + 6 * + - 69 ) ) + + + 54 col2
----
55

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

skipif mysql # not compatible
query I rowsort label-3182
SELECT + 54 + 13 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 70, + 33 AS col0
----
70
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT - 30 + - + ( - - 8 ) + COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3184
SELECT - 30 + - + ( - - 8 ) + COUNT ( * ) AS col2
----
-37

query I rowsort
SELECT DISTINCT 53 + - 70 + - - 86 + 50 * + 95
----
4819

onlyif mysql # aggregate syntax: 
query II rowsort label-3186
SELECT COUNT( * ) * + + 91 * - + 14 * 75, + COUNT( ALL - 65 ) * + 66 + + COUNT( * ) AS col2
----
-95550
67

skipif mysql # not compatible
query II rowsort label-3186
SELECT COUNT ( * ) * + + 91 * - + 14 * 75, + COUNT ( ALL - 65 ) * + 66 + + COUNT ( * ) AS col2
----
-95550
67

query I rowsort
SELECT 45 + - 50 AS col0
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3188
SELECT ALL + CAST( NULL AS DECIMAL ) + + 24 + 8 + + - 52 AS col2, - 4
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-3188
SELECT ALL + CAST ( NULL AS REAL ) + + 24 + 8 + + - 52 AS col2, - 4
----
NULL
-4

query I rowsort
SELECT DISTINCT - ( - + 23 ) col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3190
SELECT 11 AS col2, 46 * SUM( ALL - + 28 ) * + 38
----
11
-48944

skipif mysql # not compatible
query II rowsort label-3190
SELECT 11 AS col2, 46 * SUM ( ALL - + 28 ) * + 38
----
11
-48944

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT 54 DIV ( + 9 )
----
6

skipif mysql # not compatible
query I rowsort label-3191
SELECT 54 / ( + 9 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT 60 * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3192
SELECT 60 * COUNT ( * )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT 68 DIV 56 DIV + ( 12 ) - + 60 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-3193
SELECT 68 / 56 / + ( 12 ) - + 60 AS col0
----
-60

query II rowsort
SELECT + 64 col0, 73
----
64
73

query I rowsort
SELECT ALL + 41 * 44 AS col2
----
1804

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3196
SELECT 44 - + 10 - 10 - - 56, - CAST( 89 AS SIGNED ) AS col0
----
80
-89

skipif mysql # not compatible
query II rowsort label-3196
SELECT 44 - + 10 - 10 - - 56, - CAST ( 89 AS INTEGER ) AS col0
----
80
-89

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

skipif mysql # not compatible
query I rowsort label-3197
SELECT COUNT ( DISTINCT - 77 ) / + 42 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT ALL + + 83 * COUNT( * ) + + - 19 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + + 83 * COUNT ( * ) + + - 19 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT + 0 * + - COUNT( 97 ) - 42
----
-42

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

query II rowsort
SELECT ALL - + 44, 9 AS col2
----
-44
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3201
SELECT + COUNT( * ) AS col2, + MIN( 37 ) + + 89 AS col2
----
1
126

skipif mysql # not compatible
query II rowsort label-3201
SELECT + COUNT ( * ) AS col2, + MIN ( 37 ) + + 89 AS col2
----
1
126

query I rowsort
SELECT ALL - - 78 * 23 + + 49 * + CASE 14 WHEN + + 89 THEN NULL WHEN + 55 THEN 55 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3203
SELECT ALL 67 DIV + 82 + - - 12 + - 66 DIV + 79 + + COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL 67 / + 82 + - - 12 + - 66 / + 79 + + COUNT ( * ) AS col1
----
13

query II rowsort
SELECT ALL - 12 AS col0, 2
----
-12
2

query I rowsort
SELECT 1 - - - ( - + 77 ) * ( - - 13 ) * 45 + - 18
----
45028

query II rowsort
SELECT - 23, - 33 AS col1
----
-23
-33

query II rowsort
SELECT ALL - + 33 AS col1, 69
----
-33
69

query I rowsort
SELECT + ( - ( + - 85 ) ) * 98 + 72
----
8402

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

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

query I rowsort
SELECT ALL + 50 * + 68 AS col0
----
3400

query I rowsort
SELECT ALL + 39 + - 47 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL 83 + MAX( - - 1 )
----
84

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL 83 + MAX ( - - 1 )
----
84

query I rowsort
SELECT DISTINCT + 22 * - - 77 + + - 50 AS col1
----
1644

query I rowsort
SELECT ALL ( 10 ) + + 60
----
70

query I rowsort
SELECT DISTINCT + 0 + + 43 * + 15
----
645

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3217
SELECT DISTINCT - 31 + - CAST( NULL AS DECIMAL ) * - + 82 - + 72 + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT - 31 + - CAST ( NULL AS REAL ) * - + 82 - + 72 + 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT DISTINCT ( SUM( ALL - + 22 ) ) + - + 22 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT ( SUM ( ALL - + 22 ) ) + - + 22 AS col1
----
-44

query I rowsort
SELECT ALL 12 + + - 29 + 1
----
-16

query I rowsort
SELECT 0 - - 25
----
25

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3222
SELECT DISTINCT ( - + 66 ) DIV - 25 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT ( - + 66 ) / - 25 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT 19 + - CASE - + 81 WHEN 92 THEN NULL WHEN + COUNT( * ) THEN - NULLIF ( COUNT( * ), + COUNT( * ) ) * + 0 ELSE NULL END * 89 * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT 19 + - CASE - + 81 WHEN 92 THEN NULL WHEN + COUNT ( * ) THEN - NULLIF ( COUNT ( * ), + COUNT ( * ) ) * + 0 ELSE NULL END * 89 * 93
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3224
SELECT ALL CAST( NULL AS SIGNED ) / + 94 * + CAST( + 7 AS SIGNED ) * 54, 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-3224
SELECT ALL CAST ( NULL AS INTEGER ) / + 94 * + CAST ( + 7 AS INTEGER ) * 54, 80 AS col1
----
NULL
80

query I rowsort
SELECT ( + 54 ) - - 33 * - 36
----
-1134

onlyif mysql # DIV for integer division: 
query I rowsort label-3226
SELECT DISTINCT ( - 16 ) DIV - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT ( - 16 ) / - 63 AS col0
----
0

query II rowsort
SELECT ALL - 72 * 76, - 1 col0
----
-5472
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3228
SELECT - 71 * - CAST( + 26 AS SIGNED ) + - + 28 DIV 71
----
1846

skipif mysql # not compatible
query I rowsort label-3228
SELECT - 71 * - CAST ( + 26 AS INTEGER ) + - + 28 / 71
----
1846

query I rowsort
SELECT 70 * 54 * 18 AS col2
----
68040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3230
SELECT SUM( - 23 ) DIV + + 11 + - 70 + 9 * - 51
----
-531

skipif mysql # not compatible
query I rowsort label-3230
SELECT SUM ( - 23 ) / + + 11 + - 70 + 9 * - 51
----
-531

query I rowsort
SELECT 79 - - - 4 + 68 AS col0
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3232
SELECT + CASE + CAST( ( - 38 ) AS SIGNED ) WHEN 28 * + - AVG ( - 64 ) * + COUNT( DISTINCT - 88 ) * + 30 * + 21 / - + COUNT( * ) THEN COALESCE ( + - 38, 48 ) WHEN 98 * - 82 * + 53 + - + 23 + + 13 THEN 94 + - - 6 - COUNT( * ) * - 6 * + ( + ( - MIN( ALL + 45 ) ) ) + 72 ELSE ( + COUNT( DISTINCT 27 ) ) - - 64 * - 66 + - + COUNT( * ) + - COUNT( * ) + - 55 END * CAST( - 63 + 41 AS SIGNED ) - - 69 AS col1
----
94229

skipif mysql # not compatible
query I rowsort label-3232
SELECT + CASE + CAST ( ( - 38 ) AS INTEGER ) WHEN 28 * + - AVG ( - 64 ) * + COUNT ( DISTINCT - 88 ) * + 30 * + 21 / - + COUNT ( * ) THEN COALESCE ( + - 38, 48 ) WHEN 98 * - 82 * + 53 + - + 23 + + 13 THEN 94 + - - 6 - COUNT ( * ) * - 6 * + ( + ( - MIN ( ALL + 45 ) ) ) + 72 ELSE ( + COUNT ( DISTINCT 27 ) ) - - 64 * - 66 + - + COUNT ( * ) + - COUNT ( * ) + - 55 END * CAST ( - 63 + 41 AS INTEGER ) - - 69 AS col1
----
94229

query I rowsort
SELECT 32 * + 13 AS col0
----
416

query I rowsort
SELECT ALL - - 42 col0
----
42

query I rowsort
SELECT ALL + + 80 * - 45 AS col1
----
-3600

query I rowsort
SELECT + 72 * - 30 + 44 + + - 45 col0
----
-2161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3237
SELECT + 34 * - CAST( NULL AS SIGNED ) * + 54 / + 4 * - - COUNT( + 16 ) * - 20 + + COALESCE ( + 4, + 90 ) + + - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT + 34 * - CAST ( NULL AS INTEGER ) * + 54 / + 4 * - - COUNT ( + 16 ) * - 20 + + COALESCE ( + 4, + 90 ) + + - 12 AS col0
----
NULL

query I rowsort
SELECT - 1 + NULLIF ( - 10, + 15 ) AS col0
----
-11

query I rowsort
SELECT + - NULLIF ( 59, - 48 + 71 ) AS col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3240
SELECT 48 * - 8 + + + 36, CAST( + 49 AS SIGNED ) * + 77 col2
----
-348
3773

skipif mysql # not compatible
query II rowsort label-3240
SELECT 48 * - 8 + + + 36, CAST ( + 49 AS INTEGER ) * + 77 col2
----
-348
3773

query I rowsort
SELECT ( + + 88 ) col2
----
88

query I rowsort
SELECT ALL + - 0 + + 80 * + 19 + 69 col0
----
1589

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL + 93 * - MIN( DISTINCT + 1 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL + 93 * - MIN ( DISTINCT + 1 ) AS col1
----
-93

query II rowsort
SELECT ( + 8 ) + - + 94, 10 AS col1
----
-86
10

query I rowsort
SELECT ALL - + 71 + + ( 68 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3246
SELECT ALL + 27 + - - CASE - NULLIF ( 89, + - NULLIF ( + 23, 25 - - MIN( ALL - 70 ) + - 22 + - 78 ) * + MAX( - 62 ) ) WHEN 16 THEN - 13 ELSE NULL END + + - 30 / + - 11 + - + 67 * + 46 * + COUNT( ALL 88 ) - - COUNT( * ) - + COALESCE ( - 78, CAST( NULL AS SIGNED ) ) + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL + 27 + - - CASE - NULLIF ( 89, + - NULLIF ( + 23, 25 - - MIN ( ALL - 70 ) + - 22 + - 78 ) * + MAX ( - 62 ) ) WHEN 16 THEN - 13 ELSE NULL END + + - 30 / + - 11 + - + 67 * + 46 * + COUNT ( ALL 88 ) - - COUNT ( * ) - + COALESCE ( - 78, CAST ( NULL AS INTEGER ) ) + 12
----
NULL

query I rowsort
SELECT - 95 + - 96 AS col1
----
-191

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - + 97, + 54, + 26 * - 64 + - - 36 ) col1
----
-97

query I rowsort
SELECT ALL 59 - + 3 AS col2
----
56

query I rowsort
SELECT DISTINCT COALESCE ( + 74, + 20 + - 55 ) AS col0
----
74

query I rowsort
SELECT ALL + 76 * 87 AS col1
----
6612

query I rowsort
SELECT DISTINCT 94 - + 6
----
88

query I rowsort
SELECT ALL COALESCE ( - - 8, - - 77 )
----
8

query I rowsort
SELECT ALL ( + + 28 ) col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3256
SELECT - 87 * - COUNT( DISTINCT 57 ) AS col0, 67 DIV 18
----
87
3

skipif mysql # not compatible
query II rowsort label-3256
SELECT - 87 * - COUNT ( DISTINCT 57 ) AS col0, 67 / 18
----
87
3

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

skipif mysql # not compatible
query I rowsort label-3257
SELECT - SUM ( DISTINCT - 46 )
----
46

query I rowsort
SELECT DISTINCT 58 - + - NULLIF ( - + 69, - 13 / 42 - - 89 - + - 52 * + - 57 * - 18 * 3 * 86 ) + + + 16 * - 7 + ( + NULLIF ( - 10, - 40 ) )
----
-133

query II rowsort
SELECT 79 col0, 10 * 7
----
79
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3260
SELECT ALL 51 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL 51 / 72
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3261
SELECT + 63 + + SUM( + 12 ), 6 AS col1
----
75
6

skipif mysql # not compatible
query II rowsort label-3261
SELECT + 63 + + SUM ( + 12 ), 6 AS col1
----
75
6

query I rowsort
SELECT DISTINCT 86 * + + 98 AS col0
----
8428

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3263
SELECT DISTINCT 98 DIV SUM( - 18 ) * 11, 54 AS col2
----
-55
54

skipif mysql # not compatible
query II rowsort label-3263
SELECT DISTINCT 98 / SUM ( - 18 ) * 11, 54 AS col2
----
-55
54

query I rowsort
SELECT DISTINCT 4 * - + 88 AS col2
----
-352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3265
SELECT ALL 70 DIV COALESCE ( - COALESCE ( - 51, + + MIN( 38 ) * - 30 * COUNT( * ) * - 39 + - 40 + - 81 - - 87 + + 49 * + 71 ), - 69 ) * 38 + - 36 + - - 12 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL 70 / COALESCE ( - COALESCE ( - 51, + + MIN ( 38 ) * - 30 * COUNT ( * ) * - 39 + - 40 + - 81 - - 87 + + 49 * + 71 ), - 69 ) * 38 + - 36 + - - 12 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT DISTINCT COUNT( * ) * + + 26 + + 41 * + NULLIF ( - 67, + 0 ) * 95
----
-260939

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT COUNT ( * ) * + + 26 + + 41 * + NULLIF ( - 67, + 0 ) * 95
----
-260939

query I rowsort
SELECT ALL + + ( + 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3268
SELECT DISTINCT + 33 * + COUNT( * ) DIV - 42 * - 41 + - 44 * + 48 * 73 + MIN( DISTINCT - 88 ) + 23 * + 28 * + COUNT( * ) + + 41 + + 76 AS col0
----
-153503

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT + 33 * + COUNT ( * ) / - 42 * - 41 + - 44 * + 48 * 73 + MIN ( DISTINCT - 88 ) + 23 * + 28 * + COUNT ( * ) + + 41 + + 76 AS col0
----
-153503

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

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

query I rowsort
SELECT ALL + - ( + + 61 ) AS col1
----
-61

query I rowsort
SELECT + 89 - 81 * - 75 AS col2
----
6164

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT + SUM( + 32 ) * - ( - 37 ) AS col2
----
1184

skipif mysql # not compatible
query I rowsort label-3272
SELECT + SUM ( + 32 ) * - ( - 37 ) AS col2
----
1184

query I rowsort
SELECT + 65 * + 66 + - 15 * - - ( + 78 ) AS col2
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT DISTINCT - 55 * - COALESCE ( CASE + 28 WHEN - 10 + 1 THEN - 48 * 42 WHEN COUNT( * ) THEN + 92 ELSE - - COALESCE ( + COALESCE ( + 55, + 30 ), + 53, 81 ) END, - - 63 ) AS col1
----
3025

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT - 55 * - COALESCE ( CASE + 28 WHEN - 10 + 1 THEN - 48 * 42 WHEN COUNT ( * ) THEN + 92 ELSE - - COALESCE ( + COALESCE ( + 55, + 30 ), + 53, 81 ) END, - - 63 ) AS col1
----
3025

query I rowsort
SELECT ALL - - ( - + 86 ) * + 43 + + 95
----
-3603

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT - - SUM( - 74 ) - 55 * - 71 + + 36 + - 26
----
3841

skipif mysql # not compatible
query I rowsort label-3276
SELECT - - SUM ( - 74 ) - 55 * - 71 + + 36 + - 26
----
3841

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3277
SELECT ALL + 74 AS col0, + 30 / - + CAST( NULL AS DECIMAL ) / + 80 AS col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-3277
SELECT ALL + 74 AS col0, + 30 / - + CAST ( NULL AS REAL ) / + 80 AS col1
----
74
NULL

query I rowsort
SELECT DISTINCT - 3 * - 75 * + - 2 + - - 34 AS col2
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT + MAX( DISTINCT ( 58 ) ) col0
----
58

skipif mysql # not compatible
query I rowsort label-3279
SELECT + MAX ( DISTINCT ( 58 ) ) col0
----
58

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

skipif mysql # not compatible
query I rowsort label-3280
SELECT + 1 / - COUNT ( * ) col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3281
SELECT ALL + 54, 78 DIV + 53 col2
----
54
1

skipif mysql # not compatible
query II rowsort label-3281
SELECT ALL + 54, 78 / + 53 col2
----
54
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3282
SELECT - 60 * - - COUNT( * ) AS col1, + 82 AS col2
----
-60
82

skipif mysql # not compatible
query II rowsort label-3282
SELECT - 60 * - - COUNT ( * ) AS col1, + 82 AS col2
----
-60
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT ALL - NULLIF ( - + CAST( NULL AS SIGNED ), - 92 ) * + 55 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL - NULLIF ( - + CAST ( NULL AS INTEGER ), - 92 ) * + 55 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 90 * - 41
----
-3690

query I rowsort
SELECT ALL + 38 * 53 - ( - 65 ) AS col2
----
2079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3286
SELECT DISTINCT 95 * + CAST( 29 AS SIGNED )
----
2755

skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT 95 * + CAST ( 29 AS INTEGER )
----
2755

query I rowsort
SELECT - 65 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT ALL - 45 * - + 18 * - + 56 * - CASE CASE + + AVG ( - 17 ) WHEN + COUNT( * ) THEN NULL WHEN + NULLIF ( - 79, - COUNT( * ) ) THEN NULL WHEN - ( + + MIN( - + 94 ) ) * + - ( - COUNT( * ) ) + + + 57 * - SUM( - 44 ) THEN + 58 / + 3 / MAX( ALL + 15 ) END WHEN + 75 THEN - 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL - 45 * - + 18 * - + 56 * - CASE CASE + + AVG ( - 17 ) WHEN + COUNT ( * ) THEN NULL WHEN + NULLIF ( - 79, - COUNT ( * ) ) THEN NULL WHEN - ( + + MIN ( - + 94 ) ) * + - ( - COUNT ( * ) ) + + + 57 * - SUM ( - 44 ) THEN + 58 / + 3 / MAX ( ALL + 15 ) END WHEN + 75 THEN - 13 END
----
NULL

query I rowsort
SELECT DISTINCT + ( - 84 ) * 42 AS col0
----
-3528

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

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

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

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

query I rowsort
SELECT - 5 + - - NULLIF ( + 31, - 3 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT - ( 80 ) * NULLIF ( + CAST( NULL AS SIGNED ), - - 95 * - COALESCE ( 17, 55 ) + 20 * 4 + - 69 * - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT - ( 80 ) * NULLIF ( + CAST ( NULL AS INTEGER ), - - 95 * - COALESCE ( 17, 55 ) + 20 * 4 + - 69 * - 18 )
----
NULL

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

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

query I rowsort
SELECT - COALESCE ( CASE - 40 WHEN 90 - + 78 THEN + + CASE - 97 WHEN - 98 THEN 77 * 30 * - 34 + - 95 ELSE NULL END WHEN - 94 + + 6 THEN NULL END, - + 22 * - 97, - + 96 ) AS col2
----
-2134

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT - SUM( ALL - - 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3296
SELECT - SUM ( ALL - - 35 ) AS col0
----
-35

query I rowsort
SELECT - 34 * - + 51 * 52
----
90168

query I rowsort
SELECT ALL 45 * ( + 67 )
----
3015

query I rowsort
SELECT ALL - 37 * + - 25 AS col1
----
925

query I rowsort
SELECT DISTINCT 63 * 31 AS col1
----
1953

query I rowsort
SELECT DISTINCT - 28 + + 78 AS col1
----
50

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3302
SELECT + + 84 + + + CAST( NULL AS DECIMAL ) AS col0, 16 DIV 73
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3302
SELECT + + 84 + + + CAST ( NULL AS REAL ) AS col0, 16 / 73
----
NULL
0

query I rowsort
SELECT ALL - + ( - 88 ) + - 18 AS col2
----
70

query I rowsort
SELECT + ( + 57 ) * - 44 + 31
----
-2477

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3306
SELECT + 13 DIV - + 15 + - 2 + CAST( - 72 AS SIGNED ) * - 96
----
6910

skipif mysql # not compatible
query I rowsort label-3306
SELECT + 13 / - + 15 + - 2 + CAST ( - 72 AS INTEGER ) * - 96
----
6910

query I rowsort
SELECT - 5 * 33 - 11
----
-176

onlyif mysql # aggregate syntax: 
query II rowsort label-3308
SELECT + 87 + - COUNT( * ), + 5 AS col0
----
86
5

skipif mysql # not compatible
query II rowsort label-3308
SELECT + 87 + - COUNT ( * ), + 5 AS col0
----
86
5

query I rowsort
SELECT + - 57 * ( + - 7 )
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL COUNT( * ) * 10 - + 13 + + 20
----
17

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL COUNT ( * ) * 10 - + 13 + + 20
----
17

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

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL SUM ( + 17 ) * - + COUNT ( * ) AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3312
SELECT DISTINCT 2 + + 31 * - CAST( - 48 AS SIGNED ) + COUNT( * ) col0
----
1491

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT 2 + + 31 * - CAST ( - 48 AS INTEGER ) + COUNT ( * ) col0
----
1491

query I rowsort
SELECT ALL 7 - - ( - 56 ) - + 37
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT 35 * - ( + COUNT( * ) ) * + 32 + ( - + 22 )
----
-1142

skipif mysql # not compatible
query I rowsort label-3314
SELECT 35 * - ( + COUNT ( * ) ) * + 32 + ( - + 22 )
----
-1142

query I rowsort
SELECT ALL 29 * - 27 * - 50 AS col1
----
39150

query I rowsort
SELECT 66 + - 3 + - + 70
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-3317
SELECT DISTINCT - 90 AS col2, - SUM( + 49 )
----
-90
-49

skipif mysql # not compatible
query II rowsort label-3317
SELECT DISTINCT - 90 AS col2, - SUM ( + 49 )
----
-90
-49

query II rowsort
SELECT DISTINCT - 61 AS col0, 35 * 47
----
-61
1645

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

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL 54 * + COUNT ( * ) * + 54 AS col0
----
2916

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL + 85 - + + 51 * + 21 * + COUNT( 23 ) col0
----
-986

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL + 85 - + + 51 * + 21 * + COUNT ( 23 ) col0
----
-986

onlyif mysql # aggregate syntax: 
query II rowsort label-3321
SELECT 88 AS col1, - SUM( + 32 ) + - 33 - 46
----
88
-111

skipif mysql # not compatible
query II rowsort label-3321
SELECT 88 AS col1, - SUM ( + 32 ) + - 33 - 46
----
88
-111

query I rowsort
SELECT ( 61 ) + - ( 66 ) col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT 48 DIV - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT 48 / - 58 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3324
SELECT ALL - 13 * 13 DIV COALESCE ( - 1, 65 * + - 24 * + SUM( ALL + + ( + ( + 28 ) ) ) * - 68 + NULLIF ( - 57, - AVG ( ALL - - 16 ) ), - 5 - 43 ) AS col2
----
169

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - 13 * 13 / COALESCE ( - 1, 65 * + - 24 * + SUM ( ALL + + ( + ( + 28 ) ) ) * - 68 + NULLIF ( - 57, - AVG ( ALL - - 16 ) ), - 5 - 43 ) AS col2
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3325
SELECT 73 * + - CAST( NULL AS SIGNED ) * - 69 * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT 73 * + - CAST ( NULL AS INTEGER ) * - 69 * - 68
----
NULL

query I rowsort
SELECT ALL - 13 * 58
----
-754

query I rowsort
SELECT DISTINCT - 96 + + + 75
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3328
SELECT DISTINCT 99 col0, - SUM( ALL - - 55 ) * + 27 AS col2
----
99
-1485

skipif mysql # not compatible
query II rowsort label-3328
SELECT DISTINCT 99 col0, - SUM ( ALL - - 55 ) * + 27 AS col2
----
99
-1485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3329
SELECT 69 + NULLIF ( - CAST( NULL AS SIGNED ), + CASE - 4 WHEN - 48 THEN 51 END * - 45 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT 69 + NULLIF ( - CAST ( NULL AS INTEGER ), + CASE - 4 WHEN - 48 THEN 51 END * - 45 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT ALL - 14 + - - CAST( - - 62 AS SIGNED ) + + 75 + - 84 + 92 + - 25
----
106

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL - 14 + - - CAST ( - - 62 AS INTEGER ) + + 75 + - 84 + 92 + - 25
----
106

query I rowsort
SELECT ALL + 78 + - 7 AS col0
----
71

query I rowsort
SELECT ( - - 15 ) * + 97
----
1455

onlyif mysql # aggregate syntax: 
query II rowsort label-3333
SELECT DISTINCT - 99 + - ( + 34 ) AS col2, - SUM( ALL - 72 ) AS col2
----
-133
72

skipif mysql # not compatible
query II rowsort label-3333
SELECT DISTINCT - 99 + - ( + 34 ) AS col2, - SUM ( ALL - 72 ) AS col2
----
-133
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL - MAX( DISTINCT + - 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL - MAX ( DISTINCT + - 86 ) AS col1
----
86

query I rowsort
SELECT ALL 38 + - + ( ( - 74 ) ) AS col1
----
112

query I rowsort
SELECT 24 * + 88 AS col1
----
2112

query I rowsort
SELECT ALL - COALESCE ( - 25, - COALESCE ( - 76, + 57, - + 90 * - 62 + + 28 + + 53 ) ) * - 57 AS col2
----
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT 55 + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-3338
SELECT 55 + + COUNT ( * )
----
56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT ALL - CASE + 69 WHEN - + NULLIF ( + 53, - 93 ) THEN + - CASE - SUM( ALL - 52 ) WHEN + 48 THEN + - 4 WHEN 79 * - ( 24 ) * - CAST( + 47 AS SIGNED ) THEN + + COUNT( * ) END * + 1 * 80 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL - CASE + 69 WHEN - + NULLIF ( + 53, - 93 ) THEN + - CASE - SUM ( ALL - 52 ) WHEN + 48 THEN + - 4 WHEN 79 * - ( 24 ) * - CAST ( + 47 AS INTEGER ) THEN + + COUNT ( * ) END * + 1 * 80 ELSE NULL END AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT 54 * + - 34 * - COUNT( * ) + + 67 * - - 89 AS col2
----
7799

skipif mysql # not compatible
query I rowsort label-3343
SELECT 54 * + - 34 * - COUNT ( * ) + + 67 * - - 89 AS col2
----
7799

query I rowsort
SELECT - 10 * + 18 AS col0
----
-180

query I rowsort
SELECT 38 * 1 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT DISTINCT + ( - 46 ) / - + MIN( DISTINCT + 59 ) * + - 14 + - + 76 + ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + ( - 46 ) / - + MIN ( DISTINCT + 59 ) * + - 14 + - + 76 + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3347
SELECT ALL 95 * - CASE 92 WHEN + 60 + + - ( - 73 ) - - 57 * + 3 + + 29 - 28 THEN - CAST( 44 AS SIGNED ) * + 85 WHEN - + 14 THEN + - SUM( ALL - 62 ) ELSE - 33 END col0
----
3135

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL 95 * - CASE 92 WHEN + 60 + + - ( - 73 ) - - 57 * + 3 + + 29 - 28 THEN - CAST ( 44 AS INTEGER ) * + 85 WHEN - + 14 THEN + - SUM ( ALL - 62 ) ELSE - 33 END col0
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT NULLIF ( 69, - ( - NULLIF ( - 64, + - 0 - + ( 57 ) ) ) + + - NULLIF ( - 37, - + 0 * - + COUNT( * ) - + + 74 ) ) - - 10
----
79

skipif mysql # not compatible
query I rowsort label-3348
SELECT NULLIF ( 69, - ( - NULLIF ( - 64, + - 0 - + ( 57 ) ) ) + + - NULLIF ( - 37, - + 0 * - + COUNT ( * ) - + + 74 ) ) - - 10
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT ALL ( 36 ) DIV - + 98 + + + 99 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL ( 36 ) / - + 98 + + + 99 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT 57 - + + COUNT( * ) / - CASE - COUNT( * ) WHEN + - 55 THEN NULL WHEN 6 / + 19 THEN 22 WHEN - CASE + + 3 WHEN + 72 THEN NULL ELSE - 89 END + 96 * 31 THEN + ( - 68 ) END * + 37 + - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT 57 - + + COUNT ( * ) / - CASE - COUNT ( * ) WHEN + - 55 THEN NULL WHEN 6 / + 19 THEN 22 WHEN - CASE + + 3 WHEN + 72 THEN NULL ELSE - 89 END + 96 * 31 THEN + ( - 68 ) END * + 37 + - 70 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT 28 * - + ( - 67 ) * 18 * + CAST( 1 AS SIGNED ) * + 26 AS col2
----
877968

skipif mysql # not compatible
query I rowsort label-3351
SELECT 28 * - + ( - 67 ) * 18 * + CAST ( 1 AS INTEGER ) * + 26 AS col2
----
877968

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL COUNT( * ) * NULLIF ( 34, + 82 + - - 90 / - 85 )
----
34

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL COUNT ( * ) * NULLIF ( 34, + 82 + - - 90 / - 85 )
----
34

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

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

query II rowsort
SELECT ALL - 9 col0, ( - 72 )
----
-9
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3355
SELECT + COUNT( * ) AS col2, - ( - + ( + 30 ) ) * - - 45
----
1
1350

skipif mysql # not compatible
query II rowsort label-3355
SELECT + COUNT ( * ) AS col2, - ( - + ( + 30 ) ) * - - 45
----
1
1350

query I rowsort
SELECT 54 * + - 8
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL 70 + ( - - 75 ) + + COUNT( * )
----
146

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL 70 + ( - - 75 ) + + COUNT ( * )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT DISTINCT 87 + COALESCE ( 3, - 94, - COUNT( * ) * - 62 ) - - - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT 87 + COALESCE ( 3, - 94, - COUNT ( * ) * - 62 ) - - - COUNT ( * )
----
89

query I rowsort
SELECT DISTINCT 99 + + + 31
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3360
SELECT CASE - 87 WHEN - NULLIF ( + 52, 48 ) * - - 61 * 17 - 19 THEN + + 6 WHEN + 32 + 71 THEN NULL WHEN + + 59 * + CASE + COUNT( DISTINCT - 0 ) WHEN - COUNT( * ) + - 92 THEN + 64 ELSE 35 END THEN 87 * + - 24 + CASE + 90 WHEN - 1 THEN 72 * - + ( - 30 ) + - AVG ( DISTINCT + ( - 28 ) ) + + COALESCE ( - CASE - + 82 WHEN 15 * - - 65 * + COUNT( * ) - - 34 THEN NULL ELSE - COALESCE ( - 10, - 75 ) END, COALESCE ( MAX( CAST( + 90 AS SIGNED ) ), 57 * 7 + - 75 * + 47, 76 + NULLIF ( 98, + 37 * - 46 ) ) * CAST( NULL AS SIGNED ) ) WHEN 66 * 99 THEN NULL END * - NULLIF ( 55 / + 42 + 26, 46 ) ELSE NULL END * 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT CASE - 87 WHEN - NULLIF ( + 52, 48 ) * - - 61 * 17 - 19 THEN + + 6 WHEN + 32 + 71 THEN NULL WHEN + + 59 * + CASE + COUNT ( DISTINCT - 0 ) WHEN - COUNT ( * ) + - 92 THEN + 64 ELSE 35 END THEN 87 * + - 24 + CASE + 90 WHEN - 1 THEN 72 * - + ( - 30 ) + - AVG ( DISTINCT + ( - 28 ) ) + + COALESCE ( - CASE - + 82 WHEN 15 * - - 65 * + COUNT ( * ) - - 34 THEN NULL ELSE - COALESCE ( - 10, - 75 ) END, COALESCE ( MAX ( CAST ( + 90 AS INTEGER ) ), 57 * 7 + - 75 * + 47, 76 + NULLIF ( 98, + 37 * - 46 ) ) * CAST ( NULL AS INTEGER ) ) WHEN 66 * 99 THEN NULL END * - NULLIF ( 55 / + 42 + 26, 46 ) ELSE NULL END * 81 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3361
SELECT ALL 34 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL 34 + CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

query I rowsort
SELECT 59 + + + 36
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - SUM( DISTINCT - COALESCE ( 70, 16 + + 45 ) )
----
70

skipif mysql # not compatible
query I rowsort label-3364
SELECT - SUM ( DISTINCT - COALESCE ( 70, 16 + + 45 ) )
----
70

query I rowsort
SELECT ALL 86 + + + 25 * - + 81 AS col1
----
-1939

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3366
SELECT CASE - 6 WHEN - 62 THEN + COUNT( * ) ELSE - - 67 * 69 END + - 90 * 70 + + COUNT( * ) DIV - 60 col2
----
-1677

skipif mysql # not compatible
query I rowsort label-3366
SELECT CASE - 6 WHEN - 62 THEN + COUNT ( * ) ELSE - - 67 * 69 END + - 90 * 70 + + COUNT ( * ) / - 60 col2
----
-1677

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

query II rowsort
SELECT ALL - 11 AS col1, + 10
----
-11
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT MIN( + + 30 ) + - + 71
----
-41

skipif mysql # not compatible
query I rowsort label-3369
SELECT MIN ( + + 30 ) + - + 71
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT 1 * + 54 * 10 DIV - 65
----
-8

skipif mysql # not compatible
query I rowsort label-3370
SELECT 1 * + 54 * 10 / - 65
----
-8

query II rowsort
SELECT ALL 4 AS col1, - 90 + + CASE 98 WHEN + 20 THEN 82 ELSE + 42 * + 41 END + - - 47 + 34 * + 67 * + 99 AS col1
----
4
227201

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT DISTINCT - COUNT( ALL - 33 ) - + COUNT( - 86 ) - 17 col2
----
-19

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT - COUNT ( ALL - 33 ) - + COUNT ( - 86 ) - 17 col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT DISTINCT - + 91 - - - 74 DIV 8 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT - + 91 - - - 74 / 8 AS col1
----
-100

query I rowsort
SELECT DISTINCT 66 * + + 67 + 53 AS col0
----
4475

onlyif mysql # aggregate syntax: 
query II rowsort label-3375
SELECT - + 91 + + 43 * COUNT( * ) * + ( - 7 ) + - 72, + 93 * + 79 AS col1
----
-464
7347

skipif mysql # not compatible
query II rowsort label-3375
SELECT - + 91 + + 43 * COUNT ( * ) * + ( - 7 ) + - 72, + 93 * + 79 AS col1
----
-464
7347

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3377
SELECT + SUM( + 18 ) * + 33 + CAST( - CASE + + 4 WHEN - ( - MAX( + 13 ) ) THEN - 8 + + - 94 + 62 * COUNT( * ) END AS SIGNED ) - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3377
SELECT + SUM ( + 18 ) * + 33 + CAST ( - CASE + + 4 WHEN - ( - MAX ( + 13 ) ) THEN - 8 + + - 94 + 62 * COUNT ( * ) END AS INTEGER ) - + 6
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL - 11 * - COUNT( * ) - + - ( - + 23 )
----
-12

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL - 11 * - COUNT ( * ) - + - ( - + 23 )
----
-12

query II rowsort
SELECT 27, 49 AS col1
----
27
49

query I rowsort
SELECT DISTINCT + + NULLIF ( NULLIF ( + + 95, - 61 ), - + 24 ) col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3382
SELECT ALL + 28 * 0 * - 58 * COALESCE ( - - COUNT( + + 82 ), 76 ) AS col1, 58 * 85 + 57 + + COUNT( * ) * - CAST( - 39 AS SIGNED )
----
0
5026

skipif mysql # not compatible
query II rowsort label-3382
SELECT ALL + 28 * 0 * - 58 * COALESCE ( - - COUNT ( + + 82 ), 76 ) AS col1, 58 * 85 + 57 + + COUNT ( * ) * - CAST ( - 39 AS INTEGER )
----
0
5026

query II rowsort
SELECT ALL + - 52 col0, 81
----
-52
81

query I rowsort
SELECT DISTINCT + ( ( - 87 ) ) * 77
----
-6699

query I rowsort
SELECT ALL - 29 * - 58 + 40 * - 75
----
-1318

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT CASE + - 33 WHEN 86 THEN - 90 WHEN + 50 * - 8 THEN NULL ELSE ( + 4 ) * - + NULLIF ( MAX( + 23 ), 24 ) * - - 21 * - + 32 - 86 * + 29 + - ( - + 89 ) END col2
----
59419

skipif mysql # not compatible
query I rowsort label-3386
SELECT CASE + - 33 WHEN 86 THEN - 90 WHEN + 50 * - 8 THEN NULL ELSE ( + 4 ) * - + NULLIF ( MAX ( + 23 ), 24 ) * - - 21 * - + 32 - 86 * + 29 + - ( - + 89 ) END col2
----
59419

query I rowsort
SELECT - 82 + + 69 - 51 * + - 80
----
4067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3388
SELECT ALL 51 * 54 + CAST( NULL AS SIGNED ) + + MAX( + 90 ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL 51 * 54 + CAST ( NULL AS INTEGER ) + + MAX ( + 90 ) * 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT SUM( + 79 ) * 78 + - - 73
----
6235

skipif mysql # not compatible
query I rowsort label-3389
SELECT SUM ( + 79 ) * 78 + - - 73
----
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT COUNT( ALL + - 91 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3390
SELECT COUNT ( ALL + - 91 ) AS col1
----
1

query I rowsort
SELECT ALL 57 * - 85 + - 10 * + 49
----
-5335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3392
SELECT + CAST( NULL AS SIGNED ) + - - ( - 17 ) * 98 + 86 + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT + CAST ( NULL AS INTEGER ) + - - ( - 17 ) * 98 + 86 + + 23
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3393
SELECT DISTINCT + 69 DIV 66 AS col0, 43 * + 61 * - 71 + + 50 * 42
----
1
-184133

skipif mysql # not compatible
query II rowsort label-3393
SELECT DISTINCT + 69 / 66 AS col0, 43 * + 61 * - 71 + + 50 * 42
----
1
-184133

query I rowsort
SELECT + 74 + - - 6 AS col0
----
80

query I rowsort
SELECT DISTINCT + 6 * + 89 * 80 AS col0
----
42720

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL NULLIF ( - - SUM( - 17 ), - + 20 )
----
-17

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL NULLIF ( - - SUM ( - 17 ), - + 20 )
----
-17

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

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL CAST ( + + 93 AS INTEGER ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT - - CASE + + 16 WHEN + + ( + COUNT( * ) ) THEN - MIN( - 38 ) + - 51 WHEN - 50 THEN - 29 WHEN - 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT - - CASE + + 16 WHEN + + ( + COUNT ( * ) ) THEN - MIN ( - 38 ) + - 51 WHEN - 50 THEN - 29 WHEN - 91 THEN NULL END
----
NULL

query II rowsort
SELECT - + ( + 15 ) AS col2, 47 + 0 AS col0
----
-15
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT + - 84 - + - CAST( - + 50 AS SIGNED ) + 88 * - ( - 51 )
----
4354

skipif mysql # not compatible
query I rowsort label-3400
SELECT + - 84 - + - CAST ( - + 50 AS INTEGER ) + 88 * - ( - 51 )
----
4354

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT + 99 * + - SUM( DISTINCT + ( + - 86 ) )
----
8514

skipif mysql # not compatible
query I rowsort label-3401
SELECT + 99 * + - SUM ( DISTINCT + ( + - 86 ) )
----
8514

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3402
SELECT - + 45 * 38 * - 87 - ( NULLIF ( - 61, 98 ) ) AS col2, ( + ( 50 ) ) DIV + COUNT( * )
----
148831
50

skipif mysql # not compatible
query II rowsort label-3402
SELECT - + 45 * 38 * - 87 - ( NULLIF ( - 61, 98 ) ) AS col2, ( + ( 50 ) ) / + COUNT ( * )
----
148831
50

query I rowsort
SELECT NULLIF ( - 42, + 92 )
----
-42

query I rowsort
SELECT - 26 + + 30 AS col2
----
4

query I rowsort
SELECT ALL 95 * 81 AS col1
----
7695

query I rowsort
SELECT DISTINCT + - 60 * - 20 * + - 39
----
-46800

query I rowsort
SELECT + 83 * + - 54 + + 42
----
-4440

query I rowsort
SELECT ALL + NULLIF ( - + 67, - 62 ) AS col2
----
-67

query II rowsort
SELECT ALL - 88 * 63 AS col1, - 42
----
-5544
-42

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

skipif mysql # not compatible
query I rowsort label-3410
SELECT - 95 / 94
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3411
SELECT ALL 91 DIV 94 + 31
----
31

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL 91 / 94 + 31
----
31

query I rowsort
SELECT + 65 - - 27 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT + COUNT( + 38 ) * COUNT( * ) + - 19 + + 95
----
77

skipif mysql # not compatible
query I rowsort label-3413
SELECT + COUNT ( + 38 ) * COUNT ( * ) + - 19 + + 95
----
77

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3415
SELECT ALL + COALESCE ( 93, + + 30 * - 10 ) DIV 65 - - COUNT( * ) + + 26
----
28

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL + COALESCE ( 93, + + 30 * - 10 ) / 65 - - COUNT ( * ) + + 26
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT ALL - 25 / + CAST( NULL AS SIGNED ) / 98 + 49 * - 72 * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL - 25 / + CAST ( NULL AS INTEGER ) / 98 + 49 * - 72 * - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL 47 * + - COUNT( * ) + - COUNT( * ) col1
----
-48

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL 47 * + - COUNT ( * ) + - COUNT ( * ) col1
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ( MIN( 45 ) )
----
45

skipif mysql # not compatible
query I rowsort label-3419
SELECT ( MIN ( 45 ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL 15 * - COUNT( * ) + 92 * 40 AS col2
----
3665

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL 15 * - COUNT ( * ) + 92 * 40 AS col2
----
3665

query I rowsort
SELECT - 51 * + 18 AS col1
----
-918

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT + 75 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-3422
SELECT + 75 / + 88
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3423
SELECT DISTINCT + COUNT( * ) * 48 - 74, ( + 21 ) AS col1
----
-26
21

skipif mysql # not compatible
query II rowsort label-3423
SELECT DISTINCT + COUNT ( * ) * 48 - 74, ( + 21 ) AS col1
----
-26
21

query I rowsort
SELECT COALESCE ( 99, - 23 ) AS col1
----
99

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

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

query I rowsort
SELECT DISTINCT 27 * + + 15 * + 6 - + 16 col1
----
2414

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3427
SELECT + COUNT( * ) DIV + 79 + - ( + 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-3427
SELECT + COUNT ( * ) / + 79 + - ( + 77 ) AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3428
SELECT - - MIN( ( + CAST( 90 AS SIGNED ) ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-3428
SELECT - - MIN ( ( + CAST ( 90 AS INTEGER ) ) ) AS col0
----
90

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

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

query I rowsort
SELECT + 4 + COALESCE ( - 59, - 70 * + 44 )
----
-55

query I rowsort
SELECT NULLIF ( - + 90, 28 )
----
-90

query I rowsort
SELECT ALL - - 70 * + 30
----
2100

query I rowsort
SELECT 10 + - - ( + ( + 79 ) ) + + 41
----
130

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3435
SELECT DISTINCT - ( + 83 ) * CAST( NULL AS SIGNED ) * + AVG ( ALL 99 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT - ( + 83 ) * CAST ( NULL AS INTEGER ) * + AVG ( ALL 99 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT - COUNT( * ) + - + COUNT( * ) + + - 48 * - 31 AS col0
----
1486

skipif mysql # not compatible
query I rowsort label-3436
SELECT - COUNT ( * ) + - + COUNT ( * ) + + - 48 * - 31 AS col0
----
1486

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT MIN( - - COALESCE ( + + 60, - + 66, + 55 ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3437
SELECT MIN ( - - COALESCE ( + + 60, - + 66, + 55 ) ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3438
SELECT CAST( + 79 AS SIGNED ) + + 31 col0
----
110

skipif mysql # not compatible
query I rowsort label-3438
SELECT CAST ( + 79 AS INTEGER ) + + 31 col0
----
110

query II rowsort
SELECT ALL - 38 AS col1, - 18 + - - 58
----
-38
40

query I rowsort
SELECT 56 * - - 38 + 39 * - ( + 62 ) + - + 70 AS col0
----
-360

query I rowsort
SELECT 17 + 40 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL SUM( + COALESCE ( - 18, + + 14, + CASE - + ( 45 ) WHEN - + 77 THEN + 23 END ) ) + + 4 + + 70
----
56

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL SUM ( + COALESCE ( - 18, + + 14, + CASE - + ( 45 ) WHEN - + 77 THEN + 23 END ) ) + + 4 + + 70
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3443
SELECT - COUNT( * ) * 45 + - 91, 88 AS col2
----
-136
88

skipif mysql # not compatible
query II rowsort label-3443
SELECT - COUNT ( * ) * 45 + - 91, 88 AS col2
----
-136
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3444
SELECT ALL 77 * + COALESCE ( - 43, + + COALESCE ( - 38, + - COUNT( * ) ) DIV + 86 ) * 27 AS col1
----
-89397

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL 77 * + COALESCE ( - 43, + + COALESCE ( - 38, + - COUNT ( * ) ) / + 86 ) * 27 AS col1
----
-89397

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

skipif mysql # not compatible
query I rowsort label-3445
SELECT 44 / + 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3446
SELECT - COUNT( * ) DIV - 82 + - + 17 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3446
SELECT - COUNT ( * ) / - 82 + - + 17 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + 50 * 30 + + - 0 * - + COUNT( * ) col2
----
1500

skipif mysql # not compatible
query I rowsort label-3447
SELECT + 50 * 30 + + - 0 * - + COUNT ( * ) col2
----
1500

query I rowsort
SELECT DISTINCT 12 * - 77 AS col0
----
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-3449
SELECT 57 DIV 45 DIV - - 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3449
SELECT 57 / 45 / - - 16 AS col2
----
0

query I rowsort
SELECT ALL 24 + - 55 * - - ( - 68 ) + + - 79
----
3685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3451
SELECT ALL - 50 + + 91 AS col0, + 18 + + 45 - - COUNT( * ) - + CAST( NULL AS SIGNED ) * + 69 AS col0, 15 * + MAX( ALL ( - 3 ) ) AS col1
----
41
NULL
-45

skipif mysql # not compatible
query III rowsort label-3451
SELECT ALL - 50 + + 91 AS col0, + 18 + + 45 - - COUNT ( * ) - + CAST ( NULL AS INTEGER ) * + 69 AS col0, 15 * + MAX ( ALL ( - 3 ) ) AS col1
----
41
NULL
-45

query I rowsort
SELECT ALL + 96 + 89 AS col1
----
185

onlyif mysql # DIV for integer division: 
query II rowsort label-3453
SELECT 92 + + - 94 AS col1, - ( 44 ) DIV + 78 AS col1
----
-2
0

skipif mysql # not compatible
query II rowsort label-3453
SELECT 92 + + - 94 AS col1, - ( 44 ) / + 78 AS col1
----
-2
0

query I rowsort
SELECT 8 * + - 64
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT SUM( DISTINCT + 94 ) + SUM( + 42 ) * + - 60 AS col1
----
-2426

skipif mysql # not compatible
query I rowsort label-3455
SELECT SUM ( DISTINCT + 94 ) + SUM ( + 42 ) * + - 60 AS col1
----
-2426

onlyif mysql # aggregate syntax: 
query II rowsort label-3456
SELECT DISTINCT - COUNT( - + 19 ) AS col0, + 25
----
-1
25

skipif mysql # not compatible
query II rowsort label-3456
SELECT DISTINCT - COUNT ( - + 19 ) AS col0, + 25
----
-1
25

query I rowsort
SELECT + - NULLIF ( - 12, - 52 )
----
12

query I rowsort
SELECT 45 + + 69 AS col2
----
114

query I rowsort
SELECT - 2 * + 67
----
-134

query I rowsort
SELECT + 81 + 37
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3461
SELECT DISTINCT - CAST( - - 19 AS SIGNED ) AS col2, 14 AS col1
----
-19
14

skipif mysql # not compatible
query II rowsort label-3461
SELECT DISTINCT - CAST ( - - 19 AS INTEGER ) AS col2, 14 AS col1
----
-19
14

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

query I rowsort
SELECT + NULLIF ( - ( 64 ), - 11 ) * 38 AS col2
----
-2432

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT + NULLIF ( - 42, + 40 * 39 * - COUNT( * ) + COUNT( DISTINCT + - 36 ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + NULLIF ( - 42, + 40 * 39 * - COUNT ( * ) + COUNT ( DISTINCT + - 36 ) ) AS col0
----
-42

query I rowsort
SELECT ALL 91 + - 51
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT DISTINCT + 73 DIV - - 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT + 73 / - - 78 col0
----
0

query I rowsort
SELECT DISTINCT + - 13 + + 39 AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3468
SELECT + 27 - COUNT( * ) * - - 57 * - 8 AS col0, - 66 + + MIN( ALL - 93 ) AS col2
----
483
-159

skipif mysql # not compatible
query II rowsort label-3468
SELECT + 27 - COUNT ( * ) * - - 57 * - 8 AS col0, - 66 + + MIN ( ALL - 93 ) AS col2
----
483
-159

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3470
SELECT 73 * 8 + + COUNT( * ) + AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3470
SELECT 73 * 8 + + COUNT ( * ) + AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT + 54 * + 90
----
4860

query I rowsort
SELECT DISTINCT 71 + + 88 AS col1
----
159

query I rowsort
SELECT ALL 30 + 35
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL 2 * + 92 + + + 51 * + COUNT( * ) col2
----
235

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL 2 * + 92 + + + 51 * + COUNT ( * ) col2
----
235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT 28 / 92 * CAST( 57 AS SIGNED ) * - + 51 + - CAST( NULL AS SIGNED ) - NULLIF ( + - 28, - - 91 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT 28 / 92 * CAST ( 57 AS INTEGER ) * - + 51 + - CAST ( NULL AS INTEGER ) - NULLIF ( + - 28, - - 91 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT DISTINCT MIN( + + 11 ) * 76 - + 57 AS col0
----
779

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT MIN ( + + 11 ) * 76 - + 57 AS col0
----
779

query II rowsort
SELECT + 79 AS col1, - 29
----
79
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL NULLIF ( + 87, - 55 ) * + ( + 49 ) * + 49 - - COUNT( * )
----
208888

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL NULLIF ( + 87, - 55 ) * + ( + 49 ) * + 49 - - COUNT ( * )
----
208888

query I rowsort
SELECT 63 * - + 72 col2
----
-4536

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

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

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

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

query I rowsort
SELECT 1 * - 52 + 9 + + 28 * 65 AS col1
----
1777

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

skipif mysql # not compatible
query I rowsort label-3485
SELECT COUNT ( * ) / - 94
----
0

query I rowsort
SELECT ALL 57 * 51
----
2907

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT + 98 DIV - 89
----
-1

skipif mysql # not compatible
query I rowsort label-3488
SELECT + 98 / - 89
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL COUNT( * ) * + MAX( + + 59 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL COUNT ( * ) * + MAX ( + + 59 ) col0
----
59

query I rowsort
SELECT + + 71 - + 32 AS col1
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-3492
SELECT ALL + NULLIF ( + + 17, - 94 ), 98 + 53 + 41 DIV 50 AS col2
----
17
151

skipif mysql # not compatible
query II rowsort label-3492
SELECT ALL + NULLIF ( + + 17, - 94 ), 98 + 53 + 41 / 50 AS col2
----
17
151

query I rowsort
SELECT CASE WHEN NOT - 60 <> NULL THEN - 4 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT ALL + 36 + 37 + - 86 + 11 + + + CASE + 37 WHEN + - 42 * 37 + + - 3 + - + 61 THEN NULL WHEN + + 88 / CAST( 42 AS SIGNED ) * - - 78 + + ( + 48 ) * CASE + 73 WHEN + 2 * 28 THEN NULL ELSE - 48 END THEN + 76 WHEN - CAST( + 80 AS SIGNED ) THEN 43 + - 10 END * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + 36 + 37 + - 86 + 11 + + + CASE + 37 WHEN + - 42 * 37 + + - 3 + - + 61 THEN NULL WHEN + + 88 / CAST ( 42 AS INTEGER ) * - - 78 + + ( + 48 ) * CASE + 73 WHEN + 2 * 28 THEN NULL ELSE - 48 END THEN + 76 WHEN - CAST ( + 80 AS INTEGER ) THEN 43 + - 10 END * - 98
----
NULL

query I rowsort
SELECT ALL 6 + - 1
----
5

query I rowsort
SELECT - 45 - - 32 + - - 38 AS col1
----
25

query I rowsort
SELECT DISTINCT - 44 * - + 48 + + 85 AS col1
----
2197

query I rowsort
SELECT ALL + 86 + 68 AS col0
----
154

query I rowsort
SELECT - CASE - - 36 WHEN 93 THEN - 98 + - 37 WHEN 45 THEN NULL WHEN 69 THEN NULL ELSE + + 86 END
----
-86

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

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + 75 + - - COUNT ( * ) AS col2
----
76

query I rowsort
SELECT - - 6 * + 89
----
534

query I rowsort
SELECT + - 95 + + - 22
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3503
SELECT + 42, - 31 * + + 24 + - CAST( NULL AS SIGNED ) * 49 AS col2
----
42
NULL

skipif mysql # not compatible
query II rowsort label-3503
SELECT + 42, - 31 * + + 24 + - CAST ( NULL AS INTEGER ) * 49 AS col2
----
42
NULL

query I rowsort
SELECT + + 20 + + + 74 + - - COALESCE ( + 59, + 1 ) + 65 * - + 78
----
-4917

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3505
SELECT ALL NULLIF ( ( + + 78 ), + + 10 * 95 ), CASE - + 79 WHEN - CAST( 20 AS SIGNED ) THEN - - 61 ELSE NULL END AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-3505
SELECT ALL NULLIF ( ( + + 78 ), + + 10 * 95 ), CASE - + 79 WHEN - CAST ( 20 AS INTEGER ) THEN - - 61 ELSE NULL END AS col0
----
78
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3506
SELECT - - COUNT( * ) + + + 89 + 70 * - 83 * + 88 AS col2, + 77 * - 43 AS col0
----
-511190
-3311

skipif mysql # not compatible
query II rowsort label-3506
SELECT - - COUNT ( * ) + + + 89 + 70 * - 83 * + 88 AS col2, + 77 * - 43 AS col0
----
-511190
-3311

query I rowsort
SELECT - 8 * 37 * - 33 AS col1
----
9768

query I rowsort
SELECT ALL - 59 + - 88
----
-147

query I rowsort
SELECT ALL + 23 * + - 96 AS col0
----
-2208

onlyif mysql # aggregate syntax: 
query II rowsort label-3510
SELECT ALL 19, + COALESCE ( + - 88, + COUNT( * ) ) AS col1
----
19
-88

skipif mysql # not compatible
query II rowsort label-3510
SELECT ALL 19, + COALESCE ( + - 88, + COUNT ( * ) ) AS col1
----
19
-88

query I rowsort
SELECT - 88 + 46 + + 43 + - + 9 AS col0
----
-8

query I rowsort
SELECT ALL - 96 - - 42 + - 18 * - + 16
----
234

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT - CAST( 72 AS SIGNED ) * 65 * 92 + + ( 85 )
----
-430475

skipif mysql # not compatible
query I rowsort label-3514
SELECT - CAST ( 72 AS INTEGER ) * 65 * 92 + + ( 85 )
----
-430475

query I rowsort
SELECT ALL - 60 * 89
----
-5340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3516
SELECT + 34 AS col0, ( - 96 ) * - - COUNT( * ) + - 83 * + + CAST( NULL AS SIGNED ) + - 67 + + 50
----
34
NULL

skipif mysql # not compatible
query II rowsort label-3516
SELECT + 34 AS col0, ( - 96 ) * - - COUNT ( * ) + - 83 * + + CAST ( NULL AS INTEGER ) + - 67 + + 50
----
34
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3519
SELECT - COUNT ( * ) * - + 49 / + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL - 61 * - COUNT( * ) * - 21 AS col2
----
-1281

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL - 61 * - COUNT ( * ) * - 21 AS col2
----
-1281

onlyif mysql # aggregate syntax: 
query II rowsort label-3521
SELECT DISTINCT + 75 AS col0, COUNT( * ) * 72 + + 16 col2
----
75
88

skipif mysql # not compatible
query II rowsort label-3521
SELECT DISTINCT + 75 AS col0, COUNT ( * ) * 72 + + 16 col2
----
75
88

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

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

query I rowsort
SELECT ALL + 68 * - 16 + + 9 * - 13 AS col2
----
-1205

query I rowsort
SELECT - 80 + - 21 AS col2
----
-101

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

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

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

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

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

query I rowsort
SELECT ALL 50 * 3 * - - 64
----
9600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT DISTINCT + - 71 * - - COALESCE ( - 67, - ( 37 ) * + AVG ( + 75 ) * - 33 ) / - CAST( NULL AS SIGNED ) * - 73 + 66 + - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT + - 71 * - - COALESCE ( - 67, - ( 37 ) * + AVG ( + 75 ) * - 33 ) / - CAST ( NULL AS INTEGER ) * - 73 + 66 + - 10 AS col0
----
NULL

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

query I rowsort
SELECT ALL + 26 * + 12 + ( 87 ) + - 62 * + 55 AS col2
----
-3011

query I rowsort
SELECT + - 10 + - + 22 * + + 98 AS col2
----
-2166

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL - 12 * 35 * COUNT( DISTINCT - 65 ) * CASE ( - 86 ) WHEN - + 7 THEN NULL ELSE + - 57 * + ( + - COUNT( + 47 ) ) + - 54 END * - - 95 - - 55 - - - 64 * + 85 * + COUNT( * ) + - MIN( ALL 74 ) + - 69 + COUNT( * )
----
-125227

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL - 12 * 35 * COUNT ( DISTINCT - 65 ) * CASE ( - 86 ) WHEN - + 7 THEN NULL ELSE + - 57 * + ( + - COUNT ( + 47 ) ) + - 54 END * - - 95 - - 55 - - - 64 * + 85 * + COUNT ( * ) + - MIN ( ALL 74 ) + - 69 + COUNT ( * )
----
-125227

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL - 46 * 1 / - + ( - CASE - 76 WHEN COUNT( * ) / + 24 THEN - ( - ( 89 ) ) + + + 52 * 84 WHEN + 41 THEN 39 / + - ( + + 15 ) + 56 * + 1 ELSE NULL END ) * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL - 46 * 1 / - + ( - CASE - 76 WHEN COUNT ( * ) / + 24 THEN - ( - ( 89 ) ) + + + 52 * 84 WHEN + 41 THEN 39 / + - ( + + 15 ) + 56 * + 1 ELSE NULL END ) * 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT + CASE - 3 WHEN + 49 * 92 * + 98 + + 92 THEN - + COUNT( * ) WHEN - 62 * - 72 / AVG ( 15 ) + - AVG ( DISTINCT + 0 ) THEN - - ( - + COUNT( ALL + 47 ) ) END * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT + CASE - 3 WHEN + 49 * 92 * + 98 + + 92 THEN - + COUNT ( * ) WHEN - 62 * - 72 / AVG ( 15 ) + - AVG ( DISTINCT + 0 ) THEN - - ( - + COUNT ( ALL + 47 ) ) END * - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT + 9 * - 36 * 29 + - MIN( DISTINCT + - 85 ) AS col2
----
-9311

skipif mysql # not compatible
query I rowsort label-3537
SELECT + 9 * - 36 * 29 + - MIN ( DISTINCT + - 85 ) AS col2
----
-9311

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT ALL 53 DIV - - 70
----
0

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL 53 / - - 70
----
0

query II rowsort
SELECT - 87 AS col0, - 12
----
-87
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT + + 83 * + 52 * + 49 + - - ( CASE - 36 WHEN COUNT( * ) THEN + + 88 WHEN + 16 * - 96 * - - 52 / - 93 THEN - 75 + COUNT( * ) * - NULLIF ( - 45, + 28 * 13 * + - 67 + + + 67 + - + COUNT( * ) ) + + COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT + + 83 * + 52 * + 49 + - - ( CASE - 36 WHEN COUNT ( * ) THEN + + 88 WHEN + 16 * - 96 * - - 52 / - 93 THEN - 75 + COUNT ( * ) * - NULLIF ( - 45, + 28 * 13 * + - 67 + + + 67 + - + COUNT ( * ) ) + + COUNT ( * ) ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL ( 92 ) AS col0
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ALL 94 - - COUNT( * ) * + 5 + + - 92
----
7

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL 94 - - COUNT ( * ) * + 5 + + - 92
----
7

query I rowsort
SELECT + 76 - 62
----
14

query I rowsort
SELECT ALL NULLIF ( - 55, + ( + 20 ) )
----
-55

query I rowsort
SELECT ALL + 37 * + + 56
----
2072

query II rowsort
SELECT - 58 * - 0 AS col2, 41 AS col0
----
0
41

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

query I rowsort
SELECT ALL ( - ( - - 62 ) ) col0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3550
SELECT 91 * NULLIF ( SUM( + 34 ), - 57 ) DIV + COUNT( * )
----
3094

skipif mysql # not compatible
query I rowsort label-3550
SELECT 91 * NULLIF ( SUM ( + 34 ), - 57 ) / + COUNT ( * )
----
3094

onlyif mysql # DIV for integer division: 
query I rowsort label-3551
SELECT 98 DIV - 19
----
-5

skipif mysql # not compatible
query I rowsort label-3551
SELECT 98 / - 19
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3552
SELECT ALL + 93 DIV + CAST( COUNT( - + 58 ) AS SIGNED ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL + 93 / + CAST ( COUNT ( - + 58 ) AS INTEGER ) AS col2
----
93

query II rowsort
SELECT DISTINCT - NULLIF ( + + 11, + + 81 * 60 + - 36 ), 0 + - 92 col0
----
-11
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3554
SELECT 93 DIV COUNT( * ) + + 79
----
172

skipif mysql # not compatible
query I rowsort label-3554
SELECT 93 / COUNT ( * ) + + 79
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT ALL + COALESCE ( - COALESCE ( - + 7, - 93 * - 77 + 77 + - 30 ), NULLIF ( - 77, 64 - + - 34 ) * 57 + 13 ) DIV + 21
----
0

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + COALESCE ( - COALESCE ( - + 7, - 93 * - 77 + 77 + - 30 ), NULLIF ( - 77, 64 - + - 34 ) * 57 + 13 ) / + 21
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3556
SELECT 88 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3556
SELECT 88 / + 99 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3557
SELECT COUNT( * ) DIV - 89 AS col1, CAST( + ( - - 99 ) AS SIGNED ) * + - 47 - - CAST( - CASE - ( - - MIN( ALL 33 ) ) WHEN - 14 THEN - + 14 END AS SIGNED ) + - 96 * COUNT( * ) * - - 88 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3557
SELECT COUNT ( * ) / - 89 AS col1, CAST ( + ( - - 99 ) AS INTEGER ) * + - 47 - - CAST ( - CASE - ( - - MIN ( ALL 33 ) ) WHEN - 14 THEN - + 14 END AS INTEGER ) + - 96 * COUNT ( * ) * - - 88 AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL + NULLIF ( + CASE + 40 WHEN - - 38 THEN - MIN( + + 0 ) * - - 76 + + 95 * + COALESCE ( - 77, + + 53 ) WHEN - 0 * + 92 THEN NULL END, + + 82 ) + - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL + NULLIF ( + CASE + 40 WHEN - - 38 THEN - MIN ( + + 0 ) * - - 76 + + 95 * + COALESCE ( - 77, + + 53 ) WHEN - 0 * + 92 THEN NULL END, + + 82 ) + - 80 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL - 75 + + 24 * + COUNT( * ) - - + 17 col0
----
-34

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - 75 + + 24 * + COUNT ( * ) - - + 17 col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT 7 + 74 + MIN( + 94 ) + - COUNT( * )
----
174

skipif mysql # not compatible
query I rowsort label-3560
SELECT 7 + 74 + MIN ( + 94 ) + - COUNT ( * )
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3561
SELECT 13 DIV - - 95 AS col0, - COUNT( * )
----
0
-1

skipif mysql # not compatible
query II rowsort label-3561
SELECT 13 / - - 95 AS col0, - COUNT ( * )
----
0
-1

query I rowsort
SELECT ALL + 99 + + + ( + 9 ) col1
----
108

query I rowsort
SELECT ALL ( 69 ) + + 27 AS col0
----
96

query I rowsort
SELECT ALL - 19 + + COALESCE ( 3, 97 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3565
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COALESCE ( NULLIF ( 86, - MAX( - + 91 ) ), - - NULLIF ( + SUM( ALL - - 82 ), + 39 + - - AVG ( DISTINCT COALESCE ( + + 99, - - 95, 48 ) ) + 68 - - + 11 - - COUNT( * ) ) - 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COALESCE ( NULLIF ( 86, - MAX ( - + 91 ) ), - - NULLIF ( + SUM ( ALL - - 82 ), + 39 + - - AVG ( DISTINCT COALESCE ( + + 99, - - 95, 48 ) ) + 68 - - + 11 - - COUNT ( * ) ) - 54 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT ALL - + MIN( - + ( - CAST( - 14 AS SIGNED ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - + MIN ( - + ( - CAST ( - 14 AS INTEGER ) ) )
----
14

query I rowsort
SELECT 99 * 22 col0
----
2178

query I rowsort
SELECT - 80 - - 75 + - - 67 + 48 AS col0
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3569
SELECT - + MAX( DISTINCT - 97 ) * CAST( + 7 AS SIGNED ) - - + ( + + 51 )
----
730

skipif mysql # not compatible
query I rowsort label-3569
SELECT - + MAX ( DISTINCT - 97 ) * CAST ( + 7 AS INTEGER ) - - + ( + + 51 )
----
730

onlyif mysql # aggregate syntax: 
query II rowsort label-3570
SELECT + 63 * - COUNT( * ), COUNT( * ) * ( - 86 ) col2
----
-63
-86

skipif mysql # not compatible
query II rowsort label-3570
SELECT + 63 * - COUNT ( * ), COUNT ( * ) * ( - 86 ) col2
----
-63
-86

query I rowsort
SELECT ALL + 92 - + 50 AS col0
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT ALL NULLIF ( - 44, - - MIN( - 74 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL NULLIF ( - 44, - - MIN ( - 74 ) )
----
-44

query I rowsort
SELECT + 29 - COALESCE ( - 40, + + ( 30 ) ) + + 54 * + 97 * + 30 * + 3
----
471489

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3575
SELECT DISTINCT CASE NULLIF ( - 17, 34 * 28 + + 94 * 83 + - + NULLIF ( + 7, + + 42 + - SUM( ALL + 53 ) ) + - + 38 * - 34 * + ( + COUNT( * ) ) * - COUNT( * ) ) WHEN + + COALESCE ( + + 21, - CAST( NULL AS DECIMAL ) ) * COUNT( * ) THEN COUNT( ( 10 ) ) * + COALESCE ( - 4, COUNT( * ) * + 62 + - - 20 + + - 23 - - COUNT( * ) / + 12 ) * - 22 * + + COUNT( + 53 ) + - - 58 + - 37 * 12 / 74 / + COUNT( * ) + 20 WHEN + SUM( ALL - 16 ) * 53 + + + 18 - COUNT( * ) * + MIN( ( + NULLIF ( + 74, 1 ) ) ) * + 46 + 25 THEN NULL END * ( - 14 * - 91 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT CASE NULLIF ( - 17, 34 * 28 + + 94 * 83 + - + NULLIF ( + 7, + + 42 + - SUM ( ALL + 53 ) ) + - + 38 * - 34 * + ( + COUNT ( * ) ) * - COUNT ( * ) ) WHEN + + COALESCE ( + + 21, - CAST ( NULL AS REAL ) ) * COUNT ( * ) THEN COUNT ( ( 10 ) ) * + COALESCE ( - 4, COUNT ( * ) * + 62 + - - 20 + + - 23 - - COUNT ( * ) / + 12 ) * - 22 * + + COUNT ( + 53 ) + - - 58 + - 37 * 12 / 74 / + COUNT ( * ) + 20 WHEN + SUM ( ALL - 16 ) * 53 + + + 18 - COUNT ( * ) * + MIN ( ( + NULLIF ( + 74, 1 ) ) ) * + 46 + 25 THEN NULL END * ( - 14 * - 91 ) AS col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3577
SELECT CAST( NULL AS SIGNED ) - 48 * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT CAST ( NULL AS INTEGER ) - 48 * + 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3578
SELECT - 61 AS col2, - CAST( NULL AS SIGNED ) AS col1
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-3578
SELECT - 61 AS col2, - CAST ( NULL AS INTEGER ) AS col1
----
-61
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3579
SELECT SUM( + + 97 ) + + SUM( ALL - - 29 ) AS col1, COUNT( * )
----
126
1

skipif mysql # not compatible
query II rowsort label-3579
SELECT SUM ( + + 97 ) + + SUM ( ALL - - 29 ) AS col1, COUNT ( * )
----
126
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3580
SELECT ( + + 88 ) * - CAST( NULL AS SIGNED ) - 43 + + COUNT( * ) + 30 * 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT ( + + 88 ) * - CAST ( NULL AS INTEGER ) - 43 + + COUNT ( * ) + 30 * 63 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-3581
SELECT 2 * - ( + 84 ) col2, 70 AS col0, 36 DIV - - 77 * - - 69 AS col0
----
-168
70
0

skipif mysql # not compatible
query III rowsort label-3581
SELECT 2 * - ( + 84 ) col2, 70 AS col0, 36 / - - 77 * - - 69 AS col0
----
-168
70
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT 8 - + + CASE - 21 WHEN - - 68 THEN + 96 ELSE + MIN( DISTINCT - + ( - 13 ) ) END
----
-5

skipif mysql # not compatible
query I rowsort label-3582
SELECT 8 - + + CASE - 21 WHEN - - 68 THEN + 96 ELSE + MIN ( DISTINCT - + ( - 13 ) ) END
----
-5

query I rowsort
SELECT CASE - ( - 85 ) WHEN COALESCE ( + 84, 59 ) THEN - 35 + - 45 WHEN + NULLIF ( + + ( + - 67 ), + 23 ) * + + 21 + - + 24 / 3 + NULLIF ( - + 44, - 69 + - 63 + - 52 * + 62 ) THEN + + 90 + - - ( - 54 ) ELSE NULL END + - + CASE 53 WHEN 9 THEN 83 WHEN 66 - + 39 THEN - 81 WHEN - + 63 + + + 86 + 15 / 97 THEN NULL ELSE NULL END * - - 90 + - - 86 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 81 AS col1, 51 * + 96 AS col0
----
81
4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3585
SELECT CAST( NULL AS DECIMAL ) + + SUM( ALL + 5 ) * + CAST( - 50 AS SIGNED ) * + + 14 * 1 + ( + 40 ) * - 60 / 66 - 16 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT CAST ( NULL AS REAL ) + + SUM ( ALL + 5 ) * + CAST ( - 50 AS INTEGER ) * + + 14 * 1 + ( + 40 ) * - 60 / 66 - 16 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT COUNT( * ) + 71 - - 38 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-3586
SELECT COUNT ( * ) + 71 - - 38 AS col1
----
110

query II rowsort
SELECT 69, - 29 AS col0
----
69
-29

query I rowsort
SELECT ALL - 43 + 77
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT DISTINCT - ( + 82 ) + - - 65 + COUNT( * ) + + COUNT( * ) + - - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT - ( + 82 ) + - - 65 + COUNT ( * ) + + COUNT ( * ) + - - COUNT ( * )
----
-14

query I rowsort
SELECT 16 * + 25 AS col2
----
400

query II rowsort
SELECT ALL - 87, 31 AS col0
----
-87
31

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

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

query I rowsort
SELECT ALL + + 96 + ( COALESCE ( 97, - 67 ) ) AS col0
----
193

query I rowsort
SELECT - 98 + + 11 * 56 * 69
----
42406

onlyif mysql # aggregate syntax: 
query II rowsort label-3595
SELECT ALL - - 72 AS col2, NULLIF ( 27, + 33 + + 5 / 20 + + COUNT( * ) ) - 71 - + COUNT( * )
----
72
-45

skipif mysql # not compatible
query II rowsort label-3595
SELECT ALL - - 72 AS col2, NULLIF ( 27, + 33 + + 5 / 20 + + COUNT ( * ) ) - 71 - + COUNT ( * )
----
72
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3596
SELECT 68 * 59 + 19 * - + COUNT( * ) + + 96 * 96, + NULLIF ( + 95, 2 DIV - COUNT( * ) * + NULLIF ( - 37, - + 78 ) + - + 88 - - - 71 + - 93 * 7 * + - 21 ) DIV - 10 AS col2
----
13209
-9

skipif mysql # not compatible
query II rowsort label-3596
SELECT 68 * 59 + 19 * - + COUNT ( * ) + + 96 * 96, + NULLIF ( + 95, 2 / - COUNT ( * ) * + NULLIF ( - 37, - + 78 ) + - + 88 - - - 71 + - 93 * 7 * + - 21 ) / - 10 AS col2
----
13209
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3597
SELECT + - CASE + + 67 WHEN - 9 THEN + 31 / ( - + 73 ) * - 60 WHEN - + 83 THEN - CAST( COUNT( * ) AS SIGNED ) * + 62 / - 89 WHEN - - CASE + - 41 WHEN + 14 THEN NULL WHEN + 50 THEN NULL ELSE 54 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT + - CASE + + 67 WHEN - 9 THEN + 31 / ( - + 73 ) * - 60 WHEN - + 83 THEN - CAST ( COUNT ( * ) AS INTEGER ) * + 62 / - 89 WHEN - - CASE + - 41 WHEN + 14 THEN NULL WHEN + 50 THEN NULL ELSE 54 END THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL - - CASE ( - 29 ) WHEN MIN( - 19 ) THEN + + CAST( NULL AS SIGNED ) * + 67 * - + ( - 56 ) + NULLIF ( 7, - 3 * - CASE + COUNT( DISTINCT - + 78 ) WHEN - CAST( + - 66 AS SIGNED ) * - + 83 THEN + 28 WHEN + COALESCE ( + 38, 68 * + + 28, NULLIF ( + 18, 50 * - 9 * + + 11 ) ) THEN + 46 WHEN - 55 THEN - + ( - 37 ) ELSE NULL END + - 29 ) * - - 85 + - 93 + + + 23 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL - - CASE ( - 29 ) WHEN MIN ( - 19 ) THEN + + CAST ( NULL AS INTEGER ) * + 67 * - + ( - 56 ) + NULLIF ( 7, - 3 * - CASE + COUNT ( DISTINCT - + 78 ) WHEN - CAST ( + - 66 AS INTEGER ) * - + 83 THEN + 28 WHEN + COALESCE ( + 38, 68 * + + 28, NULLIF ( + 18, 50 * - 9 * + + 11 ) ) THEN + 46 WHEN - 55 THEN - + ( - 37 ) ELSE NULL END + - 29 ) * - - 85 + - 93 + + + 23 END AS col1
----
NULL

query I rowsort
SELECT 17 * - - 76
----
1292

query I rowsort
SELECT + 78 + - 94 AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3601
SELECT - + 24 * - ( 76 ) + + 58 DIV + 59
----
1824

skipif mysql # not compatible
query I rowsort label-3601
SELECT - + 24 * - ( 76 ) + + 58 / + 59
----
1824

query I rowsort
SELECT + 5 * - 96 AS col1
----
-480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3603
SELECT DISTINCT + + CAST( - 21 AS SIGNED ) - + 6 * - ( 14 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT + + CAST ( - 21 AS INTEGER ) - + 6 * - ( 14 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT 86 * ( + 47 ) + COUNT( * ) AS col2
----
4043

skipif mysql # not compatible
query I rowsort label-3604
SELECT 86 * ( + 47 ) + COUNT ( * ) AS col2
----
4043

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT + 63 * - COUNT( * ) * 52 * + 4
----
-13104

skipif mysql # not compatible
query I rowsort label-3605
SELECT + 63 * - COUNT ( * ) * 52 * + 4
----
-13104

query I rowsort
SELECT DISTINCT NULLIF ( 39, 33 * + + ( + + 4 ) / 95 * 30 * - 69 ) AS col1
----
39

query II rowsort
SELECT 11 * + 18 AS col1, 74
----
198
74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT - 47 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-3609
SELECT - 47 / - 96
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3610
SELECT DISTINCT 59 + 64, 53 DIV - 97 AS col1
----
123
0

skipif mysql # not compatible
query II rowsort label-3610
SELECT DISTINCT 59 + 64, 53 / - 97 AS col1
----
123
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3611
SELECT DISTINCT - 20 DIV - - 19
----
-1

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - 20 / - - 19
----
-1

query I rowsort
SELECT ALL 94 + + 10 - 8 AS col1
----
96

query I rowsort
SELECT ALL - 2 * 71
----
-142

query I rowsort
SELECT ALL 58 + - - 3 * - 52
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT - MAX( ALL 53 ) - 7
----
-60

skipif mysql # not compatible
query I rowsort label-3615
SELECT - MAX ( ALL 53 ) - 7
----
-60

query I rowsort
SELECT - NULLIF ( - 27, 83 ) col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT + COUNT( * ) * + 79 * + 38
----
3002

skipif mysql # not compatible
query I rowsort label-3617
SELECT + COUNT ( * ) * + 79 * + 38
----
3002

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3618
SELECT + 40 - + 58 + - 49 * - + 82 + - 7 * + + ( - + CAST( NULL AS DECIMAL ) ), - AVG ( 26 ) * + 9 * - CAST( NULL AS SIGNED ) / 56 * - 15
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3618
SELECT + 40 - + 58 + - 49 * - + 82 + - 7 * + + ( - + CAST ( NULL AS REAL ) ), - AVG ( 26 ) * + 9 * - CAST ( NULL AS INTEGER ) / 56 * - 15
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT - CASE 87 WHEN - COUNT( * ) * - COUNT( * ) THEN - 9 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT - CASE 87 WHEN - COUNT ( * ) * - COUNT ( * ) THEN - 9 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT DISTINCT MIN( DISTINCT - 16 ) + + - 37 - 89
----
-142

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT MIN ( DISTINCT - 16 ) + + - 37 - 89
----
-142

query I rowsort
SELECT ALL 80 + 6
----
86

query I rowsort
SELECT + 86 - - 39
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3623
SELECT + + MIN( DISTINCT CAST( + 60 AS SIGNED ) )
----
60

skipif mysql # not compatible
query I rowsort label-3623
SELECT + + MIN ( DISTINCT CAST ( + 60 AS INTEGER ) )
----
60

query I rowsort
SELECT + - ( + 85 ) col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + - 78 + - - COUNT( * ) + - 29 * + 86 AS col0
----
-2571

skipif mysql # not compatible
query I rowsort label-3625
SELECT + - 78 + - - COUNT ( * ) + - 29 * + 86 AS col0
----
-2571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3626
SELECT - - 73 * + CAST( NULL AS SIGNED ) * + - 50 - + 85 + 33 * - 81 * - - 57 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT - - 73 * + CAST ( NULL AS INTEGER ) * + - 50 - + 85 + 33 * - 81 * - - 57 col1
----
NULL

query I rowsort
SELECT ALL - 67 * - 48 + - - 48
----
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL 45 * + 97 * - COUNT( * ) AS col2
----
-4365

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL 45 * + 97 * - COUNT ( * ) AS col2
----
-4365

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT DISTINCT + - NULLIF ( + + 71, 56 + - + 85 / + COUNT( + ( - 7 ) ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + - NULLIF ( + + 71, 56 + - + 85 / + COUNT ( + ( - 7 ) ) ) AS col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT + + 51 DIV 11 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3630
SELECT + + 51 / 11 AS col2
----
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT ALL + 40 DIV - 11 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL + 40 / - 11 AS col1
----
-3

query I rowsort
SELECT + + AVG ( ALL - - 17 ) * - 17 - - - ( + 84 ) - - CASE - - 11 WHEN + ( 89 ) + - - 97 THEN 96 END + + + 68 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT - NULLIF ( NULLIF ( - 38, 92 ), - COUNT( * ) ) * + + 71
----
2698

skipif mysql # not compatible
query I rowsort label-3635
SELECT - NULLIF ( NULLIF ( - 38, 92 ), - COUNT ( * ) ) * + + 71
----
2698

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT ALL 12 * - 18 + + ( - - MAX( ALL + 10 ) ) AS col0
----
-206

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL 12 * - 18 + + ( - - MAX ( ALL + 10 ) ) AS col0
----
-206

query I rowsort
SELECT - 6 * - 75 AS col1
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL - 85 * + COUNT( * ) + 74 + - 63 + + - 54
----
-128

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL - 85 * + COUNT ( * ) + 74 + - 63 + + - 54
----
-128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL + 35 * - 17 + - 96 + - COUNT( DISTINCT - 94 ) col2
----
-692

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL + 35 * - 17 + - 96 + - COUNT ( DISTINCT - 94 ) col2
----
-692

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT - 0 - + 92 + - 51 + - COUNT( * )
----
-144

skipif mysql # not compatible
query I rowsort label-3641
SELECT - 0 - + 92 + - 51 + - COUNT ( * )
----
-144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT - 70 + + ( - 16 ) * + SUM( + 29 ) AS col1
----
-534

skipif mysql # not compatible
query I rowsort label-3643
SELECT - 70 + + ( - 16 ) * + SUM ( + 29 ) AS col1
----
-534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3644
SELECT 43 * + CAST( - 8 AS SIGNED ) + + COUNT( * )
----
-343

skipif mysql # not compatible
query I rowsort label-3644
SELECT 43 * + CAST ( - 8 AS INTEGER ) + + COUNT ( * )
----
-343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3645
SELECT - CAST( - SUM( ALL NULLIF ( + 27, - 7 ) ) AS SIGNED ) + + + 34 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3645
SELECT - CAST ( - SUM ( ALL NULLIF ( + 27, - 7 ) ) AS INTEGER ) + + + 34 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - NULLIF ( + 72, + CASE 67 WHEN + 62 THEN NULL ELSE MIN( ALL + 47 ) END )
----
-72

skipif mysql # not compatible
query I rowsort label-3646
SELECT - NULLIF ( + 72, + CASE 67 WHEN + 62 THEN NULL ELSE MIN ( ALL + 47 ) END )
----
-72

query I rowsort
SELECT - 40 + ( 45 ) * - 40 AS col0
----
-1840

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

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

query I rowsort
SELECT ALL + 44 + - + 5
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3650
SELECT - 92 + CASE + 74 WHEN - AVG ( 41 ) + - + 13 THEN - + COUNT( * ) * - 88 * COUNT( * ) END + 73 AS col2, - 81 + COUNT( * ) * CASE + 10 WHEN 22 THEN - 45 / - COUNT( * ) - - + 56 - - - 32 + - 92 ELSE NULL END col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3650
SELECT - 92 + CASE + 74 WHEN - AVG ( 41 ) + - + 13 THEN - + COUNT ( * ) * - 88 * COUNT ( * ) END + 73 AS col2, - 81 + COUNT ( * ) * CASE + 10 WHEN 22 THEN - 45 / - COUNT ( * ) - - + 56 - - - 32 + - 92 ELSE NULL END col1
----
NULL
NULL

query I rowsort
SELECT - 10 * 39
----
-390

onlyif mysql # DIV for integer division: 
query I rowsort label-3652
SELECT ALL + 71 DIV + - 90
----
0

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL + 71 / + - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL 80 - - + MIN( 8 )
----
88

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL 80 - - + MIN ( 8 )
----
88

query I rowsort
SELECT - NULLIF ( - 47, + + 54 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT + COUNT( DISTINCT 57 ) + + 40
----
41

skipif mysql # not compatible
query I rowsort label-3655
SELECT + COUNT ( DISTINCT 57 ) + + 40
----
41

query I rowsort
SELECT - 74 * ( ( 54 ) )
----
-3996

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL 44 - + COUNT( * ) * 40
----
4

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL 44 - + COUNT ( * ) * 40
----
4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3661
SELECT + NULLIF ( - 72, - 34 ) DIV - ( ( + COUNT( * ) ) )
----
72

skipif mysql # not compatible
query I rowsort label-3661
SELECT + NULLIF ( - 72, - 34 ) / - ( ( + COUNT ( * ) ) )
----
72

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3664
SELECT ALL 90 DIV - 17
----
-5

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL 90 / - 17
----
-5

query I rowsort
SELECT + ( - 59 ) + ( - 47 )
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT CAST( - 78 AS SIGNED ) * CAST( + COUNT( * ) * 9 AS SIGNED ) + + 13 * + 40
----
-182

skipif mysql # not compatible
query I rowsort label-3666
SELECT CAST ( - 78 AS INTEGER ) * CAST ( + COUNT ( * ) * 9 AS INTEGER ) + + 13 * + 40
----
-182

query I rowsort
SELECT + ( + 39 ) + 97
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT + SUM( - 68 ) + + 5 * 30
----
82

skipif mysql # not compatible
query I rowsort label-3668
SELECT + SUM ( - 68 ) + + 5 * 30
----
82

query I rowsort
SELECT - 60 - 84 AS col0
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3670
SELECT DISTINCT 83 + 8 DIV + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT 83 + 8 / + COUNT ( * )
----
91

query I rowsort
SELECT DISTINCT 95 * 84 AS col2
----
7980

query I rowsort
SELECT ALL + 74 + - 65
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + 71 * - 61 + + CASE WHEN 70 NOT IN ( 21 / CASE - 51 WHEN 91 * 24 THEN NULL WHEN COUNT( * ) + ( 82 + 14 ) * - MAX( ALL 54 ) THEN 83 WHEN 77 * + 21 THEN 86 ELSE NULL END ) THEN 35 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT + 71 * - 61 + + CASE WHEN 70 NOT IN ( 21 / CASE - 51 WHEN 91 * 24 THEN NULL WHEN COUNT ( * ) + ( 82 + 14 ) * - MAX ( ALL 54 ) THEN 83 WHEN 77 * + 21 THEN 86 ELSE NULL END ) THEN 35 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 30 * COALESCE ( 14, 64 ) AS col2
----
420

query I rowsort
SELECT 8 + - 48 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL SUM( DISTINCT 80 ) + + 85 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL SUM ( DISTINCT 80 ) + + 85 AS col2
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3677
SELECT 47 * - 99 + MIN( 73 + - 61 ) DIV + 11 AS col1
----
-4652

skipif mysql # not compatible
query I rowsort label-3677
SELECT 47 * - 99 + MIN ( 73 + - 61 ) / + 11 AS col1
----
-4652

query I rowsort
SELECT DISTINCT + 57 + 27 AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3679
SELECT CAST( NULL AS SIGNED ) / NULLIF ( + NULLIF ( + 96, - 38 + MAX( DISTINCT 86 ) ), + 67 + + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT CAST ( NULL AS INTEGER ) / NULLIF ( + NULLIF ( + 96, - 38 + MAX ( DISTINCT 86 ) ), + 67 + + 95 )
----
NULL

query I rowsort
SELECT 42 + 86 * ( - ( 57 ) * + 32 + 14 )
----
-155618

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT DISTINCT + ( + COUNT( * ) ) + - COALESCE ( 91, 71 )
----
-90

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT + ( + COUNT ( * ) ) + - COALESCE ( 91, 71 )
----
-90

query I rowsort
SELECT ALL + 39 * - 41 AS col2
----
-1599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3683
SELECT ALL - CASE + 72 WHEN + AVG ( ALL + 87 ) THEN COUNT( * ) WHEN 69 + NULLIF ( 82, - 31 * 81 ) THEN NULL ELSE 8 DIV - 49 END * 2
----
0

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL - CASE + 72 WHEN + AVG ( ALL + 87 ) THEN COUNT ( * ) WHEN 69 + NULLIF ( 82, - 31 * 81 ) THEN NULL ELSE 8 / - 49 END * 2
----
0

query I rowsort
SELECT DISTINCT + 67 * 34 AS col0
----
2278

query I rowsort
SELECT ALL - ( - 91 ) - 79 AS col2
----
12

query I rowsort
SELECT 32 - 21
----
11

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

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

query I rowsort
SELECT 69 - 66
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3689
SELECT DISTINCT + CAST( 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT + CAST ( 44 AS INTEGER )
----
44

query I rowsort
SELECT + 58 * 13 AS col2
----
754

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT DISTINCT + + 55 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT + + 55 / - 62
----
0

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

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

query I rowsort
SELECT + 24 * - 15
----
-360

query I rowsort
SELECT 68 * + 83 AS col0
----
5644

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT ALL + - NULLIF ( 70, MAX( DISTINCT 4 ) * - 56 ) * + 90
----
-6300

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL + - NULLIF ( 70, MAX ( DISTINCT 4 ) * - 56 ) * + 90
----
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT DISTINCT - COUNT( DISTINCT 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT - COUNT ( DISTINCT 81 )
----
-1

query I rowsort
SELECT - - 82 * + 60 + 39 AS col0
----
4959

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

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL - 54 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 74 * 64
----
4736

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

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

query I rowsort
SELECT 71 * + 33
----
2343

query I rowsort
SELECT DISTINCT 35 * 11 AS col1
----
385

query I rowsort
SELECT DISTINCT 47 + - - ( 91 )
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT 11 + - COUNT( 99 ) * - 53
----
64

skipif mysql # not compatible
query I rowsort label-3704
SELECT 11 + - COUNT ( 99 ) * - 53
----
64

query I rowsort
SELECT ALL 82 + - 83
----
-1

query I rowsort
SELECT 88 - 77 AS col0
----
11

query I rowsort
SELECT + 41 * + ( - 35 ) - 99
----
-1534

query I rowsort
SELECT ( 37 ) * 80
----
2960

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT ALL COUNT( * ) * - NULLIF ( + 69, - 75 ) * 75 AS col2
----
-5175

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL COUNT ( * ) * - NULLIF ( + 69, - 75 ) * 75 AS col2
----
-5175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3710
SELECT NULLIF ( + 79, 43 * - SUM( 64 ) ) + 50 DIV COUNT( * ) AS col2
----
129

skipif mysql # not compatible
query I rowsort label-3710
SELECT NULLIF ( + 79, 43 * - SUM ( 64 ) ) + 50 / COUNT ( * ) AS col2
----
129

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT ( + 9 ) * - CAST( - 32 * 29 + - 96 / 32 AS SIGNED )
----
8379

skipif mysql # not compatible
query I rowsort label-3712
SELECT ( + 9 ) * - CAST ( - 32 * 29 + - 96 / 32 AS INTEGER )
----
8379

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3714
SELECT CAST( NULL AS DECIMAL ) * + - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT CAST ( NULL AS REAL ) * + - 46 AS col2
----
NULL

query I rowsort
SELECT ALL ( - 40 ) * - ( + 75 - + 68 ) AS col0
----
280

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3716
SELECT CAST( NULL AS DECIMAL ) - + 57 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3716
SELECT CAST ( NULL AS REAL ) - + 57 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ( + MAX( 90 ) ) * + COUNT( + 37 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3717
SELECT ( + MAX ( 90 ) ) * + COUNT ( + 37 ) AS col1
----
90

query I rowsort
SELECT 52 + - 32 + 55 * 83
----
4585

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

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

query I rowsort
SELECT 61 * + 88
----
5368

query I rowsort
SELECT 32 + - 28 * - ( 11 * 63 + - 39 )
----
18344

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT 67 DIV - 56
----
-1

skipif mysql # not compatible
query I rowsort label-3722
SELECT 67 / - 56
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3723
SELECT NULLIF ( + 82, + COUNT( * ) ) + + MAX( ALL 45 + 57 * 12 ) DIV 41 col2
----
99

skipif mysql # not compatible
query I rowsort label-3723
SELECT NULLIF ( + 82, + COUNT ( * ) ) + + MAX ( ALL 45 + 57 * 12 ) / 41 col2
----
99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3725
SELECT + COUNT( * ) + - 43 DIV 19 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3725
SELECT + COUNT ( * ) + - 43 / 19 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL - + ( + + 93 ) * + NULLIF ( 97 * - 24 + + 82, + SUM( ALL - 61 ) )
----
208878

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL - + ( + + 93 ) * + NULLIF ( 97 * - 24 + + 82, + SUM ( ALL - 61 ) )
----
208878

onlyif mysql # DIV for integer division: 
query I rowsort label-3727
SELECT ( - 14 ) DIV + ( 44 + + 6 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3727
SELECT ( - 14 ) / + ( 44 + + 6 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT ALL COALESCE ( - + 60, 70, - 22, 7 ) DIV + 11 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL COALESCE ( - + 60, 70, - 22, 7 ) / + 11 AS col0
----
-5

query I rowsort
SELECT DISTINCT + 36 * + 31 AS col1
----
1116

query I rowsort
SELECT DISTINCT 34 * + 23 + - 38 * - 68
----
3366

query I rowsort
SELECT - 82 + - - 83 + + 87
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL + NULLIF ( - CASE ( 56 ) WHEN + ( COUNT( * ) ) * 39 THEN + 54 WHEN + 2 THEN 83 / 81 ELSE NULL END, - ( + 23 ) ) * - COALESCE ( SUM( DISTINCT + 29 ), 97 * - 10, - 60 - - 87 * - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + NULLIF ( - CASE ( 56 ) WHEN + ( COUNT ( * ) ) * 39 THEN + 54 WHEN + 2 THEN 83 / 81 ELSE NULL END, - ( + 23 ) ) * - COALESCE ( SUM ( DISTINCT + 29 ), 97 * - 10, - 60 - - 87 * - 4 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT - - 47 + + - 76 DIV - 37 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-3734
SELECT - - 47 + + - 76 / - 37 AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3735
SELECT DISTINCT + NULLIF ( 72, ( CAST( + 46 AS SIGNED ) ) + COUNT( * ) * + COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + NULLIF ( 72, ( CAST ( + 46 AS INTEGER ) ) + COUNT ( * ) * + COUNT ( * ) )
----
72

query I rowsort
SELECT ALL 24 * 94 * + 70 col2
----
157920

query I rowsort
SELECT - 94 + + - 15
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3738
SELECT DISTINCT 86 * + SUM( DISTINCT + 77 ) + 5 * - CAST( 60 * 39 AS SIGNED ) + COUNT( * ) col2
----
-5077

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT 86 * + SUM ( DISTINCT + 77 ) + 5 * - CAST ( 60 * 39 AS INTEGER ) + COUNT ( * ) col2
----
-5077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3739
SELECT ALL - 93 * + MAX( ALL - 12 ) DIV COUNT( 89 ) + 48 * 17 AS col2
----
1932

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL - 93 * + MAX ( ALL - 12 ) / COUNT ( 89 ) + 48 * 17 AS col2
----
1932

query I rowsort
SELECT - 47 * - 57 AS col1
----
2679

query I rowsort
SELECT - 65 + + 34 + - 79 AS col1
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3742
SELECT CASE CAST( - 14 AS SIGNED ) WHEN + 42 THEN NULL ELSE + MAX( DISTINCT - 70 ) END AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-3742
SELECT CASE CAST ( - 14 AS INTEGER ) WHEN + 42 THEN NULL ELSE + MAX ( DISTINCT - 70 ) END AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT + COUNT( * ) + + 92 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-3743
SELECT + COUNT ( * ) + + 92 AS col1
----
93

query I rowsort
SELECT ALL - 57 * - + 43 AS col1
----
2451

query I rowsort
SELECT ALL - 60 * 45 - + 35 AS col1
----
-2735

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3747
SELECT - 24 * - 98 + - - CASE + 1 WHEN - CASE 76 WHEN 78 THEN - 75 WHEN 16 THEN - CAST( COUNT( * ) AS SIGNED ) ELSE NULL END * COUNT( * ) + 83 * + 46 THEN 1 * + 21 END * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT - 24 * - 98 + - - CASE + 1 WHEN - CASE 76 WHEN 78 THEN - 75 WHEN 16 THEN - CAST ( COUNT ( * ) AS INTEGER ) ELSE NULL END * COUNT ( * ) + 83 * + 46 THEN 1 * + 21 END * - 98
----
NULL

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

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

query I rowsort
SELECT ALL 81 * - 10 AS col0
----
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT + 87 + + CAST( 49 AS SIGNED )
----
136

skipif mysql # not compatible
query I rowsort label-3750
SELECT + 87 + + CAST ( 49 AS INTEGER )
----
136

query I rowsort
SELECT ALL + 83 * - 82 - - 3 * - 7 AS col0
----
-6827

query I rowsort
SELECT + CASE - 62 WHEN + 86 THEN + 0 * 40 ELSE NULL END + 97
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT - COALESCE ( + + 49, 9, 21 - - 30 DIV - 82 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3753
SELECT - COALESCE ( + + 49, 9, 21 - - 30 / - 82 ) AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3754
SELECT + ( - - 77 ) * - 83 * - 26 + 43 * CASE - 91 WHEN 17 THEN - COUNT( * ) WHEN 40 THEN NULL WHEN ( - CAST( NULL AS SIGNED ) ) * + COALESCE ( 24, + COUNT( 52 ) DIV + 5 ) THEN NULL ELSE ( - 78 ) + COUNT( * ) DIV CASE + 10 WHEN CAST( NULL AS SIGNED ) * - CAST( + 75 AS SIGNED ) THEN NULLIF ( 52, - 69 * - 26 ) ELSE + 76 + COUNT( * ) * - 35 END END AS col1
----
162812

skipif mysql # not compatible
query I rowsort label-3754
SELECT + ( - - 77 ) * - 83 * - 26 + 43 * CASE - 91 WHEN 17 THEN - COUNT ( * ) WHEN 40 THEN NULL WHEN ( - CAST ( NULL AS INTEGER ) ) * + COALESCE ( 24, + COUNT ( 52 ) / + 5 ) THEN NULL ELSE ( - 78 ) + COUNT ( * ) / CASE + 10 WHEN CAST ( NULL AS INTEGER ) * - CAST ( + 75 AS INTEGER ) THEN NULLIF ( 52, - 69 * - 26 ) ELSE + 76 + COUNT ( * ) * - 35 END END AS col1
----
162812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT ALL 21 * COALESCE ( + 54, - MIN( ALL - 51 ) * 30 - + MIN( 45 ) DIV + 7 )
----
1134

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL 21 * COALESCE ( + 54, - MIN ( ALL - 51 ) * 30 - + MIN ( 45 ) / + 7 )
----
1134

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

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

query II rowsort
SELECT ALL 40, - 3 + + ( + 11 ) AS col2
----
40
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT ALL + 39 + 65 * + MAX( ALL 40 )
----
2639

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL + 39 + 65 * + MAX ( ALL 40 )
----
2639

query I rowsort
SELECT ALL + 59 + - 64 * - 36 * + 58 + 51
----
133742

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT + + 37 + CASE + AVG ( - 41 ) WHEN COUNT( * ) - 23 THEN + 13 * 8 ELSE 89 END AS col2
----
126

skipif mysql # not compatible
query I rowsort label-3760
SELECT + + 37 + CASE + AVG ( - 41 ) WHEN COUNT ( * ) - 23 THEN + 13 * 8 ELSE 89 END AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT + 67 * + SUM( DISTINCT - - 94 ) AS col0
----
6298

skipif mysql # not compatible
query I rowsort label-3761
SELECT + 67 * + SUM ( DISTINCT - - 94 ) AS col0
----
6298

query II rowsort
SELECT - + 8, 53 AS col2
----
-8
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL + COUNT( * ) + - 39 * - + 34 * + 94
----
124645

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL + COUNT ( * ) + - 39 * - + 34 * + 94
----
124645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3764
SELECT + - 18 - - COALESCE ( - - 83, 6 * - 92 + - 80, - ( 47 ) ) DIV COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-3764
SELECT + - 18 - - COALESCE ( - - 83, 6 * - 92 + - 80, - ( 47 ) ) / COUNT ( * )
----
65

query I rowsort
SELECT ALL - 13 + - 52 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL COUNT( * ) + + + 98 * + 94
----
9213

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL COUNT ( * ) + + + 98 * + 94
----
9213

query I rowsort
SELECT DISTINCT - - ( + 81 ) * + 87
----
7047

query I rowsort
SELECT ALL - 63 + + 50 + - 37
----
-50

query I rowsort
SELECT - 69 * + - 78 * - 39 AS col1
----
-209898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3770
SELECT - + COALESCE ( 69, COUNT( * ) * - 23, 18 - 76 ) DIV 55 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3770
SELECT - + COALESCE ( 69, COUNT ( * ) * - 23, 18 - 76 ) / 55 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT + NULLIF ( - - COUNT( ( 94 ) ), ( 7 ) + COUNT( * ) * 69 ) + 9
----
10

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT + NULLIF ( - - COUNT ( ( 94 ) ), ( 7 ) + COUNT ( * ) * 69 ) + 9
----
10

query I rowsort
SELECT ALL 52 * + 6 * ( + 82 )
----
25584

onlyif mysql # DIV for integer division: 
query I rowsort label-3773
SELECT - 4 * - - 61 * 19 * - 81 - - 9 DIV - 30 AS col1
----
375516

skipif mysql # not compatible
query I rowsort label-3773
SELECT - 4 * - - 61 * 19 * - 81 - - 9 / - 30 AS col1
----
375516

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + CASE - - 69 WHEN + 14 THEN NULL WHEN - MIN( 32 ) THEN - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT + CASE - - 69 WHEN + 14 THEN NULL WHEN - MIN ( 32 ) THEN - 38 END
----
NULL

query I rowsort
SELECT + 24 + + 93 AS col0
----
117

query I rowsort
SELECT - 71 * + - 70 + + 25 col2
----
4995

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

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

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

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

query I rowsort
SELECT - 94 * - - 28 * - 32 AS col0
----
84224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3780
SELECT ALL - COUNT( * ) * - 37 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL - COUNT ( * ) * - 37 / 47
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT - 63 * + - 73, - 57 - + + MAX( DISTINCT 61 ) AS col1
----
4599
-118

skipif mysql # not compatible
query II rowsort label-3782
SELECT - 63 * + - 73, - 57 - + + MAX ( DISTINCT 61 ) AS col1
----
4599
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-3783
SELECT - 75 - + - ( - - 25 ) - + 79 DIV + 67
----
-51

skipif mysql # not compatible
query I rowsort label-3783
SELECT - 75 - + - ( - - 25 ) - + 79 / + 67
----
-51

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

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 16 * + 33 * + 88
----
NULL

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

query I rowsort
SELECT 54 * 2 + 65
----
173

query I rowsort
SELECT ALL + NULLIF ( - CASE 97 WHEN 91 THEN NULL WHEN - 76 + 37 THEN NULL WHEN + 9 THEN - 92 END, 99 + 41 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT DISTINCT - COALESCE ( - 73, + MIN( + 38 ) * - 73 ) * - 48
----
-3504

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT - COALESCE ( - 73, + MIN ( + 38 ) * - 73 ) * - 48
----
-3504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3789
SELECT ALL - 62 * + - NULLIF ( + 75, - 98 ) + + COUNT( * ) DIV - COUNT( * )
----
4649

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - 62 * + - NULLIF ( + 75, - 98 ) + + COUNT ( * ) / - COUNT ( * )
----
4649

query I rowsort
SELECT ALL ( + 59 ) * + 38 + + + 9 + + 97
----
2348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3791
SELECT - COUNT( * ) * + - 96 + COALESCE ( - NULLIF ( 25, - 88 ), - 86 * CAST( 22 * 63 AS SIGNED ) + COUNT( DISTINCT 65 ) ) + 47 * 67 DIV 15
----
280

skipif mysql # not compatible
query I rowsort label-3791
SELECT - COUNT ( * ) * + - 96 + COALESCE ( - NULLIF ( 25, - 88 ), - 86 * CAST ( 22 * 63 AS INTEGER ) + COUNT ( DISTINCT 65 ) ) + 47 * 67 / 15
----
280

query II rowsort
SELECT + + 33 + - 9 AS col1, ( - 13 ) AS col1
----
24
-13

query I rowsort
SELECT ALL - 6 * + + 97 + 54 + + + 83 * 16
----
800

query I rowsort
SELECT + 4 + ( - 12 ) + ( 23 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT + COUNT( * ) + COUNT( * ) + - - 85 * ( 66 )
----
5612

skipif mysql # not compatible
query I rowsort label-3795
SELECT + COUNT ( * ) + COUNT ( * ) + - - 85 * ( 66 )
----
5612

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT 15 + - 35 + NULLIF ( - SUM( - ( 73 ) ), 42 + - ( + COALESCE ( 50, + 3, 90 + - ( + 44 ) ) ) ) - - 89 AS col1
----
142

skipif mysql # not compatible
query I rowsort label-3797
SELECT 15 + - 35 + NULLIF ( - SUM ( - ( 73 ) ), 42 + - ( + COALESCE ( 50, + 3, 90 + - ( + 44 ) ) ) ) - - 89 AS col1
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3798
SELECT ALL - 67 + + ( + ( - - COALESCE ( - COUNT( DISTINCT - 64 ), + 7 ) ) ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL - 67 + + ( + ( - - COALESCE ( - COUNT ( DISTINCT - 64 ), + 7 ) ) ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT - COALESCE ( COUNT( * ), - - 98 + - + 73, + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT - COALESCE ( COUNT ( * ), - - 98 + - + 73, + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT MAX( ALL + 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT MAX ( ALL + 85 ) AS col1
----
85

query I rowsort
SELECT DISTINCT + 34 + - 74 + - + 36
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT 95 DIV - + 14 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3802
SELECT 95 / - + 14 AS col1
----
-6

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

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

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

query I rowsort
SELECT NULLIF ( + 17, 93 + - - 76 * - 40 ) * 47 col0
----
799

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3806
SELECT - + ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT - + ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3807
SELECT ( 39 ) + - COALESCE ( + + 38, CAST( 32 AS SIGNED ), 32 ) + COUNT( * ) * CAST( + 95 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-3807
SELECT ( 39 ) + - COALESCE ( + + 38, CAST ( 32 AS INTEGER ), 32 ) + COUNT ( * ) * CAST ( + 95 AS INTEGER )
----
96

query I rowsort
SELECT - COALESCE ( - 61, + 45 ) AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3809
SELECT 2 + 64 + + + CAST( - 72 AS SIGNED ) - - 25
----
19

skipif mysql # not compatible
query I rowsort label-3809
SELECT 2 + 64 + + + CAST ( - 72 AS INTEGER ) - - 25
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3810
SELECT - NULLIF ( - 24, - CAST( 7 AS SIGNED ) + - 25 * ( 92 / MAX( DISTINCT - 75 * + 2 ) + 81 / 10 ) ) * 8
----
192

skipif mysql # not compatible
query I rowsort label-3810
SELECT - NULLIF ( - 24, - CAST ( 7 AS INTEGER ) + - 25 * ( 92 / MAX ( DISTINCT - 75 * + 2 ) + 81 / 10 ) ) * 8
----
192

query I rowsort
SELECT - NULLIF ( - 49, - 99 * 42 ) + - 16 * 3 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3812
SELECT 21 DIV COUNT( * ) + - 38 + 94 + 1 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3812
SELECT 21 / COUNT ( * ) + - 38 + 94 + 1 AS col1
----
78

query I rowsort
SELECT DISTINCT NULLIF ( 27, 66 ) - + 19
----
8

query I rowsort
SELECT ALL ( - 73 ) * 7 * + 98 + - ( + 55 )
----
-50133

query I rowsort
SELECT + 91 * 64 + 5
----
5829

query I rowsort
SELECT 26 * + COALESCE ( - 11, + 47 ) * + 20 + 89
----
-5631

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT 58 DIV + 49 + - - 12 * + 90
----
1081

skipif mysql # not compatible
query I rowsort label-3817
SELECT 58 / + 49 + - - 12 * + 90
----
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT COUNT( * ) + + - 31 * + - 68 * COUNT( * ) * - COUNT( * ) AS col0
----
-2107

skipif mysql # not compatible
query I rowsort label-3818
SELECT COUNT ( * ) + + - 31 * + - 68 * COUNT ( * ) * - COUNT ( * ) AS col0
----
-2107

onlyif mysql # aggregate syntax: 
query II rowsort label-3819
SELECT COUNT( * ) * 44 + + + 18 AS col2, + 18 col2
----
62
18

skipif mysql # not compatible
query II rowsort label-3819
SELECT COUNT ( * ) * 44 + + + 18 AS col2, + 18 col2
----
62
18

query I rowsort
SELECT DISTINCT 75 + + - 64
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT - MIN( DISTINCT + - 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT - MIN ( DISTINCT + - 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT - SUM( ALL 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT - SUM ( ALL 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL + COUNT( * ) + + MIN( - 71 ) * + - 17 * 46
----
55523

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + COUNT ( * ) + + MIN ( - 71 ) * + - 17 * 46
----
55523

query I rowsort
SELECT 77 + - 40 AS col2
----
37

query II rowsort
SELECT DISTINCT + + 46 + - + 35 * + 15 col0, 60 * - 14 AS col0
----
-479
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT ALL + - 96 + - AVG ( ALL - - 49 ) + + - CASE + - 23 WHEN - 54 THEN 48 END * + ( COALESCE ( 48, - 91 / 85 ) * + COUNT( DISTINCT - 73 ) - + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL + - 96 + - AVG ( ALL - - 49 ) + + - CASE + - 23 WHEN - 54 THEN 48 END * + ( COALESCE ( 48, - 91 / 85 ) * + COUNT ( DISTINCT - 73 ) - + 68 )
----
NULL

query I rowsort
SELECT 92 * + + 12 * - 42 * 47 - - 32 * + 92 AS col1
----
-2176352

query I rowsort
SELECT - 58 * 37 AS col0
----
-2146

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT DISTINCT + COALESCE ( - 54, 77 * + 45 * 19, + COUNT( * ) * 35 + 98 ) + 44 * COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT + COALESCE ( - 54, 77 * + 45 * 19, + COUNT ( * ) * 35 + 98 ) + 44 * COUNT ( * )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3830
SELECT ALL + - CAST( NULL AS SIGNED ) + + - COUNT( * ) + - 65 + - - COUNT( * ) + - 22 - ( + 13 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL + - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + - 65 + - - COUNT ( * ) + - 22 - ( + 13 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3831
SELECT ALL - 16 - + CAST( NULL AS SIGNED ) + - 61, 64 + - 79 AS col1
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-3831
SELECT ALL - 16 - + CAST ( NULL AS INTEGER ) + - 61, 64 + - 79 AS col1
----
NULL
-15

query I rowsort
SELECT ALL + NULLIF ( 5, - - 60 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3833
SELECT + CASE - + COUNT( * ) WHEN + + NULLIF ( + ( - 22 ), 78 + - CAST( 52 AS SIGNED ) * 89 ) + + 12 THEN + 76 + + 7 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT + CASE - + COUNT ( * ) WHEN + + NULLIF ( + ( - 22 ), 78 + - CAST ( 52 AS INTEGER ) * 89 ) + + 12 THEN + 76 + + 7 END + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3834
SELECT + 51 DIV COALESCE ( + - 18, - + 46, + 61 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3834
SELECT + 51 / COALESCE ( + - 18, - + 46, + 61 ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT DISTINCT + 13 DIV + - 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT + 13 / + - 32 AS col0
----
0

query I rowsort
SELECT 40 * - 34 AS col2
----
-1360

query I rowsort
SELECT - 18 - - + 80 col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3838
SELECT 57 AS col1, CAST( + + 47 AS SIGNED ) AS col0
----
57
47

skipif mysql # not compatible
query II rowsort label-3838
SELECT 57 AS col1, CAST ( + + 47 AS INTEGER ) AS col0
----
57
47

query I rowsort
SELECT - 31 + - - 87 AS col2
----
56

query I rowsort
SELECT + 40 * - + 78 col0
----
-3120

query II rowsort
SELECT ALL 61, 49 AS col1
----
61
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT ALL + COALESCE ( + ( + 28 ), ( + 91 ) + + 2 + 45, - ( MIN( + 30 ) ) * 56 ) * COALESCE ( COUNT( - CASE 35 WHEN ( + 10 ) * ( - NULLIF ( + 16, 33 - - CAST( 0 AS SIGNED ) ) ) THEN 7 + + 95 ELSE NULL END ) + + ( 74 ), 4 )
----
2072

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + COALESCE ( + ( + 28 ), ( + 91 ) + + 2 + 45, - ( MIN ( + 30 ) ) * 56 ) * COALESCE ( COUNT ( - CASE 35 WHEN ( + 10 ) * ( - NULLIF ( + 16, 33 - - CAST ( 0 AS INTEGER ) ) ) THEN 7 + + 95 ELSE NULL END ) + + ( 74 ), 4 )
----
2072

query I rowsort
SELECT 7 * + 88
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT COALESCE ( + 22, - MIN( - 69 ) ) * + + 76
----
1672

skipif mysql # not compatible
query I rowsort label-3844
SELECT COALESCE ( + 22, - MIN ( - 69 ) ) * + + 76
----
1672

query I rowsort
SELECT 45 - - 50 + - + 70 * 30
----
-2005

onlyif mysql # DIV for integer division: 
query II rowsort label-3846
SELECT ALL - 87 AS col0, 53 DIV - 52 AS col1
----
-87
-1

skipif mysql # not compatible
query II rowsort label-3846
SELECT ALL - 87 AS col0, 53 / - 52 AS col1
----
-87
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3847
SELECT ( - 61 ) DIV + 47 - + ( - 27 ) + - 48 + 11 * + 52 AS col2
----
550

skipif mysql # not compatible
query I rowsort label-3847
SELECT ( - 61 ) / + 47 - + ( - 27 ) + - 48 + 11 * + 52 AS col2
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT 35 + + 75 + + 84 * COUNT( * ) * + 64 * + CASE - 58 WHEN 34 THEN - CASE + COUNT( * ) WHEN - 15 THEN 28 * + 84 + COUNT( * ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT 35 + + 75 + + 84 * COUNT ( * ) * + 64 * + CASE - 58 WHEN 34 THEN - CASE + COUNT ( * ) WHEN - 15 THEN 28 * + 84 + COUNT ( * ) END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT + 7 * 86 * + COUNT( * ) + - 4 + + 96 AS col2
----
694

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT + 7 * 86 * + COUNT ( * ) + - 4 + + 96 AS col2
----
694

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT ALL - COUNT( * ) * - 19 + + + 54 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL - COUNT ( * ) * - 19 + + + 54 AS col1
----
73

query II rowsort
SELECT ALL 98 * - 95, + 53 AS col0
----
-9310
53

query I rowsort
SELECT ALL - ( - 71 ) * NULLIF ( - + 97, NULLIF ( 31, 94 ) - 9 * 45 ) + - 55
----
-6942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT DISTINCT CAST( NULL AS SIGNED ) / 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT COUNT( DISTINCT + + 67 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3854
SELECT COUNT ( DISTINCT + + 67 ) AS col2
----
1

query I rowsort
SELECT 86 * - + 76
----
-6536

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT SUM( ALL - 59 ) + + 52 * + - 74 AS col2
----
-3907

skipif mysql # not compatible
query I rowsort label-3856
SELECT SUM ( ALL - 59 ) + + 52 * + - 74 AS col2
----
-3907

query I rowsort
SELECT DISTINCT + ( + + 71 )
----
71

query II rowsort
SELECT + 4, - 79 AS col2
----
4
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT + - COALESCE ( + 62, + 71 ) + - - CAST( - - 60 AS SIGNED ) * + 70
----
4138

skipif mysql # not compatible
query I rowsort label-3859
SELECT + - COALESCE ( + 62, + 71 ) + - - CAST ( - - 60 AS INTEGER ) * + 70
----
4138

query III rowsort
SELECT ALL + 27 AS col2, 70, 22 AS col1
----
27
70
22

query I rowsort
SELECT ALL + + 69 * - 76 / + 22 / + + CASE 91 WHEN 42 + 41 * - 1 THEN - 29 ELSE NULL END + - ( 31 )
----
NULL

query I rowsort
SELECT - 22 + 2
----
-20

query II rowsort
SELECT ALL + 73 AS col2, 34
----
73
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT + 61 * + COUNT( * ) * - + 29
----
-1769

skipif mysql # not compatible
query I rowsort label-3864
SELECT + 61 * + COUNT ( * ) * - + 29
----
-1769

query I rowsort
SELECT + ( + + 31 )
----
31

query II rowsort
SELECT - 94 col2, 89 col0
----
-94
89

query I rowsort
SELECT + 88 + - 14 * - 46
----
732

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT COUNT( DISTINCT - 8 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3868
SELECT COUNT ( DISTINCT - 8 ) AS col2
----
1

query I rowsort
SELECT - + 13 * - 92 * + 24
----
28704

query I rowsort
SELECT DISTINCT - 91 * + 85
----
-7735

query I rowsort
SELECT - 71 + - ( - - 79 )
----
-150

query I rowsort
SELECT - 88 * 59 * + - 11 AS col0
----
57112

query I rowsort
SELECT DISTINCT COALESCE ( + 2, + 71 ) AS col0
----
2

query I rowsort
SELECT - 59 * - + 14
----
826

query I rowsort
SELECT ALL + ( + 54 ) + 84
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-3876
SELECT ALL - 67 DIV 64 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - 67 / 64 AS col1
----
-1

query I rowsort
SELECT - 52 + 90 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT ( SUM( DISTINCT + + 5 ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT ( SUM ( DISTINCT + + 5 ) ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3879
SELECT ALL + 94 * + + COUNT( * ) AS col2, 37 AS col2
----
94
37

skipif mysql # not compatible
query II rowsort label-3879
SELECT ALL + 94 * + + COUNT ( * ) AS col2, 37 AS col2
----
94
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT - COUNT( * ) + 22 * - 98 AS col0
----
-2157

skipif mysql # not compatible
query I rowsort label-3880
SELECT - COUNT ( * ) + 22 * - 98 AS col0
----
-2157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT ALL - CAST( + 39 AS SIGNED ) + - - 75 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL - CAST ( + 39 AS INTEGER ) + - - 75 AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3882
SELECT DISTINCT NULLIF ( 63, + 35 ) DIV + + 53 + + NULLIF ( + 53, + 88 - NULLIF ( 67, 79 DIV + 47 + 65 ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT NULLIF ( 63, + 35 ) / + + 53 + + NULLIF ( + 53, + 88 - NULLIF ( 67, 79 / + 47 + 65 ) ) AS col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3883
SELECT ALL 14 DIV + 75 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL 14 / + 75 + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT ALL + CAST( 20 AS SIGNED ) * + COALESCE ( - 22, - 69 ) AS col1
----
-440

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL + CAST ( 20 AS INTEGER ) * + COALESCE ( - 22, - 69 ) AS col1
----
-440

query I rowsort
SELECT + ( - 99 ) + - + 69 * - - 29 AS col0
----
-2100

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT DISTINCT 82 * - 30 + - 71 DIV - NULLIF ( - 16, + 61 ) AS col2
----
-2464

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT 82 * - 30 + - 71 / - NULLIF ( - 16, + 61 ) AS col2
----
-2464

query I rowsort
SELECT + NULLIF ( + 5, - + 65 + + 73 ) * + ( + ( - + 7 ) ) + 87
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3888
SELECT - CASE - + CAST( NULL AS SIGNED ) WHEN MAX( + 83 ) * - 6 THEN NULL WHEN 26 * + 86 * 89 - - ( 12 + SUM( DISTINCT + 38 ) ) THEN + 50 / + COUNT( * ) ELSE NULL END * - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT - CASE - + CAST ( NULL AS INTEGER ) WHEN MAX ( + 83 ) * - 6 THEN NULL WHEN 26 * + 86 * 89 - - ( 12 + SUM ( DISTINCT + 38 ) ) THEN + 50 / + COUNT ( * ) ELSE NULL END * - 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ( SUM( ALL 92 ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3889
SELECT ( SUM ( ALL 92 ) ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3890
SELECT ( + - CASE + 52 WHEN + 22 * + - 87 * - ( - 94 ) + + ( 15 ) + 67 THEN - CAST( - 29 AS SIGNED ) DIV + CASE + NULLIF ( 90, - 18 ) WHEN ( 18 ) * + 28 THEN 36 WHEN + MAX( ALL 16 ) + - 61 * 49 THEN MIN( ALL + 70 ) END ELSE - 83 END )
----
83

skipif mysql # not compatible
query I rowsort label-3890
SELECT ( + - CASE + 52 WHEN + 22 * + - 87 * - ( - 94 ) + + ( 15 ) + 67 THEN - CAST ( - 29 AS INTEGER ) / + CASE + NULLIF ( 90, - 18 ) WHEN ( 18 ) * + 28 THEN 36 WHEN + MAX ( ALL 16 ) + - 61 * 49 THEN MIN ( ALL + 70 ) END ELSE - 83 END )
----
83

query I rowsort
SELECT ALL 13 * 74 - 85 * - 55 AS col1
----
5637

query I rowsort
SELECT + - ( 42 )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-3893
SELECT ALL - 57 * - COUNT( * ) * 19 * + - 96 - - 39, 96 * - 71 + - 19 AS col2
----
-103929
-6835

skipif mysql # not compatible
query II rowsort label-3893
SELECT ALL - 57 * - COUNT ( * ) * 19 * + - 96 - - 39, 96 * - 71 + - 19 AS col2
----
-103929
-6835

query II rowsort
SELECT + - ( 25 ) * 28, - 35 AS col2
----
-700
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT ALL 67 DIV - 6
----
-11

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL 67 / - 6
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3896
SELECT + ( CAST( NULL AS SIGNED ) ) / + + COALESCE ( - 78, - + 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT + ( CAST ( NULL AS INTEGER ) ) / + + COALESCE ( - 78, - + 85 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ALL + - CASE + 89 WHEN + 96 THEN - - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL + - CASE + 89 WHEN + 96 THEN - - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + - 83 * + 36 + - + NULLIF ( + 90, + - 50 ) AS col1
----
-3078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3899
SELECT + 64 * CASE COALESCE ( + - 47, - 89 + - ( - NULLIF ( + COUNT( * ), + COUNT( * ) / 66 ) ) + NULLIF ( + 35, 65 ) ) WHEN - ( NULLIF ( 89, - 18 - + 57 ) ) * 81 THEN + COUNT( * ) WHEN 57 / - CAST( - 74 AS SIGNED ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT + 64 * CASE COALESCE ( + - 47, - 89 + - ( - NULLIF ( + COUNT ( * ), + COUNT ( * ) / 66 ) ) + NULLIF ( + 35, 65 ) ) WHEN - ( NULLIF ( 89, - 18 - + 57 ) ) * 81 THEN + COUNT ( * ) WHEN 57 / - CAST ( - 74 AS INTEGER ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3900
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), + 63 * 81 * - 92 * - 82 ) * - - 15 - 18
----
577455462

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), + 63 * 81 * - 92 * - 82 ) * - - 15 - 18
----
577455462

query I rowsort
SELECT ALL 96 + + ( + 53 ) AS col0
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT DISTINCT - COALESCE ( - - CAST( NULL AS SIGNED ), - 91 ) * + - 42
----
-3822

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - COALESCE ( - - CAST ( NULL AS INTEGER ), - 91 ) * + - 42
----
-3822

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT ALL COUNT( * ) col1, - 68 + - 63
----
1
-131

skipif mysql # not compatible
query II rowsort label-3903
SELECT ALL COUNT ( * ) col1, - 68 + - 63
----
1
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT - 65 * - 18 * + 67 * COALESCE ( 39, - + 28 ) * - - COUNT( * ) AS col0
----
3057210

skipif mysql # not compatible
query I rowsort label-3904
SELECT - 65 * - 18 * + 67 * COALESCE ( 39, - + 28 ) * - - COUNT ( * ) AS col0
----
3057210

query I rowsort
SELECT ALL + 35 + 69 AS col0
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT - CAST( - ( - + 23 ) AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3906
SELECT - CAST ( - ( - + 23 ) AS INTEGER ) AS col1
----
-23

query I rowsort
SELECT + 11 - - 22
----
33

query I rowsort
SELECT ALL - 63 * - 35
----
2205

onlyif mysql # DIV for integer division: 
query I rowsort label-3909
SELECT - 29 DIV 4
----
-7

skipif mysql # not compatible
query I rowsort label-3909
SELECT - 29 / 4
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL ( + + COUNT( * ) ) + 82 + + + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL ( + + COUNT ( * ) ) + 82 + + + COUNT ( * )
----
84

query I rowsort
SELECT DISTINCT 52 * + 86 AS col1
----
4472

query I rowsort
SELECT ALL - 36 + + NULLIF ( + 63, 87 + + 72 ) - 7
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3913
SELECT DISTINCT + NULLIF ( + CAST( - + 96 AS SIGNED ), + 20 ) + + - COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT + NULLIF ( + CAST ( - + 96 AS INTEGER ), + 20 ) + + - COUNT ( * ) AS col2
----
-97

query II rowsort
SELECT 97 AS col1, + 92 AS col2
----
97
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT - ( + CAST( NULL AS SIGNED ) ) * - ( - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT - ( + CAST ( NULL AS INTEGER ) ) * - ( - 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3916
SELECT 40, - CASE + COUNT( ALL 65 ) WHEN + + 16 + + COUNT( - 31 ) THEN + 30 / 91 WHEN - 39 * ( 66 ) THEN NULL ELSE NULL END * 15 + MAX( DISTINCT 14 ) AS col1
----
40
NULL

skipif mysql # not compatible
query II rowsort label-3916
SELECT 40, - CASE + COUNT ( ALL 65 ) WHEN + + 16 + + COUNT ( - 31 ) THEN + 30 / 91 WHEN - 39 * ( 66 ) THEN NULL ELSE NULL END * 15 + MAX ( DISTINCT 14 ) AS col1
----
40
NULL

query II rowsort
SELECT + 92 AS col1, - 57 * + 80 col1
----
92
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT NULLIF ( + 90, - 82 * COUNT( * ) ) * - ( + + 93 ) AS col1
----
-8370

skipif mysql # not compatible
query I rowsort label-3918
SELECT NULLIF ( + 90, - 82 * COUNT ( * ) ) * - ( + + 93 ) AS col1
----
-8370

query I rowsort
SELECT ALL - NULLIF ( + 36, + 67 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT - COUNT( * ) * + 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT - COUNT ( * ) * + 92 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL COUNT( * ) * + - MIN( DISTINCT + 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL COUNT ( * ) * + - MIN ( DISTINCT + 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT + 77 - - COALESCE ( - COUNT( * ), - 99 * 95 - + - 30 + - 34 ) - - - 39 * 7 col0
----
-197

skipif mysql # not compatible
query I rowsort label-3922
SELECT + 77 - - COALESCE ( - COUNT ( * ), - 99 * 95 - + - 30 + - 34 ) - - - 39 * 7 col0
----
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT - + COUNT( 71 ) * SUM( 61 ) + 5
----
-56

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT - + COUNT ( 71 ) * SUM ( 61 ) + 5
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT - 95 * - 42 * - - ( + CASE 34 WHEN - COUNT( * ) THEN NULL ELSE + 43 END )
----
171570

skipif mysql # not compatible
query I rowsort label-3924
SELECT - 95 * - 42 * - - ( + CASE 34 WHEN - COUNT ( * ) THEN NULL ELSE + 43 END )
----
171570

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT + + NULLIF ( - + NULLIF ( - - 70, - + NULLIF ( 75, - 53 ) - 27 * + + 91 ), COUNT( * ) )
----
-70

skipif mysql # not compatible
query I rowsort label-3925
SELECT + + NULLIF ( - + NULLIF ( - - 70, - + NULLIF ( 75, - 53 ) - 27 * + + 91 ), COUNT ( * ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL - + 85 * - ( + COUNT( * ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL - + 85 * - ( + COUNT ( * ) ) AS col1
----
85

query I rowsort
SELECT + 43 * 47 AS col2
----
2021

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT + 89 * 3 + + + COUNT( * ) * + 77 + - 90 AS col2
----
254

skipif mysql # not compatible
query I rowsort label-3928
SELECT + 89 * 3 + + + COUNT ( * ) * + 77 + - 90 AS col2
----
254

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3929
SELECT DISTINCT - - 96, CAST( NULL AS SIGNED ) + + 43 AS col2
----
96
NULL

skipif mysql # not compatible
query II rowsort label-3929
SELECT DISTINCT - - 96, CAST ( NULL AS INTEGER ) + + 43 AS col2
----
96
NULL

query I rowsort
SELECT ALL - ( 48 )
----
-48

query I rowsort
SELECT 36 - - + 18
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3932
SELECT 38 + 15 DIV - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3932
SELECT 38 + 15 / - COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL - - COUNT( + 24 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - - COUNT ( + 24 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - + 63 col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3935
SELECT ALL 37 * - 68 * COUNT( * ) DIV - - COUNT( * ) AS col1
----
-2516

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL 37 * - 68 * COUNT ( * ) / - - COUNT ( * ) AS col1
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL MAX( + 76 ) + - ( + - COUNT( ALL - - 86 ) )
----
77

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL MAX ( + 76 ) + - ( + - COUNT ( ALL - - 86 ) )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3937
SELECT 47 * CAST( NULL AS SIGNED ) + - 17 AS col0, COUNT( * ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3937
SELECT 47 * CAST ( NULL AS INTEGER ) + - 17 AS col0, COUNT ( * ) col0
----
NULL
1

query I rowsort
SELECT ALL - 41 + - - 34
----
-7

query I rowsort
SELECT ALL 47 * - 23
----
-1081

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL 6 + 25 + - 67 * - 18 * 84 + - ( + 79 ) + 55 + 51 * + MAX( 49 )
----
103810

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL 6 + 25 + - 67 * - 18 * 84 + - ( + 79 ) + 55 + 51 * + MAX ( 49 )
----
103810

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT COUNT( * ) + + 66 + - 94
----
-27

skipif mysql # not compatible
query I rowsort label-3941
SELECT COUNT ( * ) + + 66 + - 94
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT 45 + + COUNT( * ) * 13
----
58

skipif mysql # not compatible
query I rowsort label-3942
SELECT 45 + + COUNT ( * ) * 13
----
58

query I rowsort
SELECT ALL 94 + + 33 + + 8 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT 5 + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT 5 + + COUNT ( * )
----
6

query I rowsort
SELECT DISTINCT 81 - - + 17 AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3946
SELECT DISTINCT 98 DIV - + COUNT( * ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT 98 / - + COUNT ( * ) AS col2
----
-98

query I rowsort
SELECT ALL - 32 * + 66 * 1
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT MAX( ALL + 47 ) + - + 28 + - - 90 * + CASE + 14 WHEN + ( - NULLIF ( MIN( ALL + 33 ), COUNT( * ) + 91 ) ) THEN NULL WHEN 32 THEN + 86 + 75 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT MAX ( ALL + 47 ) + - + 28 + - - 90 * + CASE + 14 WHEN + ( - NULLIF ( MIN ( ALL + 33 ), COUNT ( * ) + 91 ) ) THEN NULL WHEN 32 THEN + 86 + 75 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 60 - - 21 * - 7 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT 86 * + MIN( 94 )
----
8084

skipif mysql # not compatible
query I rowsort label-3950
SELECT 86 * + MIN ( 94 )
----
8084

query I rowsort
SELECT ALL 97 * 69
----
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT - MAX( ALL - + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - MAX ( ALL - + 92 )
----
92

query I rowsort
SELECT + 75 + - + 50 + 96 AS col2
----
121

query I rowsort
SELECT DISTINCT - + ( 41 )
----
-41

query I rowsort
SELECT + 19 * + 69
----
1311

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT DISTINCT + + 20 / + CASE - NULLIF ( + 68, - 42 - + 69 + + + 79 ) WHEN - - 81 THEN - COUNT( * ) + SUM( 36 ) WHEN - 38 THEN - 53 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT + + 20 / + CASE - NULLIF ( + 68, - 42 - + 69 + + + 79 ) WHEN - - 81 THEN - COUNT ( * ) + SUM ( 36 ) WHEN - 38 THEN - 53 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3957
SELECT 30 DIV 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3957
SELECT 30 / 95 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT 73 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3958
SELECT 73 / - 76 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT ALL + 97 DIV - 46 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL + 97 / - 46 AS col1
----
-2

query I rowsort
SELECT 61 * + - 89 AS col2
----
-5429

query I rowsort
SELECT DISTINCT + 64 + - - 21 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3962
SELECT + NULLIF ( 95, + - 41 * - + 48 ), CASE + 17 WHEN + - CAST( + - 62 AS SIGNED ) * + 44 THEN 6 + + COUNT( ALL + 6 - 35 ) * - 8 ELSE - 85 END * + 81 AS col0
----
95
-6885

skipif mysql # not compatible
query II rowsort label-3962
SELECT + NULLIF ( 95, + - 41 * - + 48 ), CASE + 17 WHEN + - CAST ( + - 62 AS INTEGER ) * + 44 THEN 6 + + COUNT ( ALL + 6 - 35 ) * - 8 ELSE - 85 END * + 81 AS col0
----
95
-6885

onlyif mysql # aggregate syntax: 
query II rowsort label-3963
SELECT DISTINCT - MIN( ALL + 66 ) AS col2, 38 * - 21
----
-66
-798

skipif mysql # not compatible
query II rowsort label-3963
SELECT DISTINCT - MIN ( ALL + 66 ) AS col2, 38 * - 21
----
-66
-798

query I rowsort
SELECT + + ( - 1 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3965
SELECT DISTINCT + COUNT( * ) + + - 12 AS col2, 35 * - 2 AS col0
----
-11
-70

skipif mysql # not compatible
query II rowsort label-3965
SELECT DISTINCT + COUNT ( * ) + + - 12 AS col2, 35 * - 2 AS col0
----
-11
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT ALL - COALESCE ( + NULLIF ( - - 67, + CAST( + 98 AS SIGNED ) + - 88 ), COALESCE ( 0, - 18, 89 * 7 ), CAST( NULL AS SIGNED ) * - 75, + 75 * 26 ) * + 30 AS col0
----
-2010

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL - COALESCE ( + NULLIF ( - - 67, + CAST ( + 98 AS INTEGER ) + - 88 ), COALESCE ( 0, - 18, 89 * 7 ), CAST ( NULL AS INTEGER ) * - 75, + 75 * 26 ) * + 30 AS col0
----
-2010

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT COALESCE ( + 22, + - 40 * - 46 * - COUNT( * ) * - 92 )
----
22

skipif mysql # not compatible
query I rowsort label-3967
SELECT COALESCE ( + 22, + - 40 * - 46 * - COUNT ( * ) * - 92 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT ALL + - ( NULLIF ( 92, + - 14 + + MAX( + 79 ) ) ) + - - 65 + - 18 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL + - ( NULLIF ( 92, + - 14 + + MAX ( + 79 ) ) ) + - - 65 + - 18 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT DISTINCT - COUNT( * ) * 66 * COUNT( * ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT - COUNT ( * ) * 66 * COUNT ( * ) col0
----
-66

query I rowsort
SELECT ALL 15 + + + 84
----
99

query I rowsort
SELECT DISTINCT - 62 + + 19 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT DISTINCT SUM( DISTINCT + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT SUM ( DISTINCT + 26 )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT 45 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3973
SELECT 45 / - 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3974
SELECT ALL 16, 84 + MIN( ALL - 5 ) AS col2
----
16
79

skipif mysql # not compatible
query II rowsort label-3974
SELECT ALL 16, 84 + MIN ( ALL - 5 ) AS col2
----
16
79

query I rowsort
SELECT DISTINCT - 90 - + - 97 AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT ALL 64 DIV + MAX( DISTINCT - 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL 64 / + MAX ( DISTINCT - 52 ) AS col2
----
-1

query I rowsort
SELECT 41 * - + 19 col0
----
-779

query I rowsort
SELECT ALL 40 - - 40 AS col1
----
80

query I rowsort
SELECT DISTINCT 99 * 77 AS col1
----
7623

query I rowsort
SELECT ALL 57 * - + 7
----
-399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3981
SELECT + CAST( NULL AS SIGNED ) * 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT + CAST ( NULL AS INTEGER ) * 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT - SUM( + + 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3982
SELECT - SUM ( + + 38 ) AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3983
SELECT DISTINCT + 28 * + + COALESCE ( - 45, + 28, - 19 + 74 ) DIV - COUNT( + 81 )
----
1260

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT + 28 * + + COALESCE ( - 45, + 28, - 19 + 74 ) / - COUNT ( + 81 )
----
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3984
SELECT DISTINCT COUNT( DISTINCT + + 60 ) - + NULLIF ( COUNT( * ), - - CAST( NULL AS SIGNED ) * + - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT COUNT ( DISTINCT + + 60 ) - + NULLIF ( COUNT ( * ), - - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + ( 56 ) + - 26 + - 67 * - - ( - 68 ) * - + COUNT( * ) AS col2
----
-4526

skipif mysql # not compatible
query I rowsort label-3985
SELECT + ( 56 ) + - 26 + - 67 * - - ( - 68 ) * - + COUNT ( * ) AS col2
----
-4526

query I rowsort
SELECT DISTINCT 39 * - + 28 AS col2
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT - NULLIF ( + + COALESCE ( + + MIN( ALL + 59 ), 41 - + ( + 75 ) ), - 89 * - 23 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3987
SELECT - NULLIF ( + + COALESCE ( + + MIN ( ALL + 59 ), 41 - + ( + 75 ) ), - 89 * - 23 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + 44 - - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3988
SELECT + 44 - - COUNT ( * ) AS col1
----
45

query II rowsort
SELECT - 86 * 28 * - 94 col1, - 37
----
226352
-37

query I rowsort
SELECT ALL 56 * + 19 AS col0
----
1064

query II rowsort
SELECT - 68 AS col1, - ( 24 )
----
-68
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3992
SELECT DISTINCT + + 97 * 30 + + + ( 75 ) * + 45 * + - CAST( - 63 AS SIGNED )
----
215535

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT + + 97 * 30 + + + ( 75 ) * + 45 * + - CAST ( - 63 AS INTEGER )
----
215535

onlyif mysql # DIV for integer division: 
query I rowsort label-3993
SELECT ALL 13 DIV + + ( + + 8 )
----
1

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL 13 / + + ( + + 8 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ALL - - 32 * + 7 * + + 33 + COUNT( * )
----
7393

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL - - 32 * + 7 * + + 33 + COUNT ( * )
----
7393

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3995
SELECT + + 21 AS col2, + CAST( NULL AS SIGNED ) col2
----
21
NULL

skipif mysql # not compatible
query II rowsort label-3995
SELECT + + 21 AS col2, + CAST ( NULL AS INTEGER ) col2
----
21
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3996
SELECT ALL - MAX( - 21 ) * - COUNT( * ) + - + CAST( + 59 AS SIGNED ) + - 33 * 89 * - 3
----
8731

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL - MAX ( - 21 ) * - COUNT ( * ) + - + CAST ( + 59 AS INTEGER ) + - 33 * 89 * - 3
----
8731

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - + 1 * - COUNT( * ) * - 30 - + + 74
----
-104

skipif mysql # not compatible
query I rowsort label-3997
SELECT - + 1 * - COUNT ( * ) * - 30 - + + 74
----
-104

query I rowsort
SELECT DISTINCT + ( NULLIF ( + + 61, - 36 ) )
----
61

query I rowsort
SELECT DISTINCT + + 81 AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT ALL - - 15 * - COUNT( * ) * + COUNT( * ) + ( - 70 ) - - - 3 * + + 86 + - - 59 + - ( - - CASE + 75 WHEN + ( CAST( NULL AS SIGNED ) ) THEN NULL WHEN - 93 + 70 THEN COUNT( * ) / - ( - 97 ) + 18 END ) + + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL - - 15 * - COUNT ( * ) * + COUNT ( * ) + ( - 70 ) - - - 3 * + + 86 + - - 59 + - ( - - CASE + 75 WHEN + ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - 93 + 70 THEN COUNT ( * ) / - ( - 97 ) + 18 END ) + + 81 AS col1
----
NULL

query I rowsort
SELECT - - 13 * + 43
----
559

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL + - MIN( ALL - 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL + - MIN ( ALL - 51 ) AS col0
----
51

query I rowsort
SELECT ALL - 7 * - 94 * - 26 + + 81
----
-17027

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4004
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - 40 * + ( + 42 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT CAST ( NULL AS REAL ) / - 40 * + ( + 42 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL - COUNT( * ) * + + COUNT( * ) - - COUNT( - 92 ) + - - 78 * 78 * + - 2 + + 43 * - MIN( ALL + 15 ) * 35 AS col1
----
-34743

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) - - COUNT ( - 92 ) + - - 78 * 78 * + - 2 + + 43 * - MIN ( ALL + 15 ) * 35 AS col1
----
-34743

query I rowsort
SELECT DISTINCT + 49 * - 87
----
-4263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4007
SELECT ALL + SUM( DISTINCT + CAST( + + 2 AS SIGNED ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + SUM ( DISTINCT + CAST ( + + 2 AS INTEGER ) ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT + COUNT( * ) * SUM( + + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT + COUNT ( * ) * SUM ( + + 65 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4009
SELECT ALL NULLIF ( + NULLIF ( + 23, + 46 * + + ( + CAST( NULL AS SIGNED ) ) + + - 70 * + 66 * - 28 + + MAX( + 7 ) ), 74 + - 20 )
----
23

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL NULLIF ( + NULLIF ( + 23, + 46 * + + ( + CAST ( NULL AS INTEGER ) ) + + - 70 * + 66 * - 28 + + MAX ( + 7 ) ), 74 + - 20 )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4010
SELECT - COALESCE ( + + 9, + 37 - + 48 - - 12 DIV 6 ) + 84 + - 60 + ( 46 ) + - 2 * 29 * + 48 DIV 2 col2
----
-1331

skipif mysql # not compatible
query I rowsort label-4010
SELECT - COALESCE ( + + 9, + 37 - + 48 - - 12 / 6 ) + 84 + - 60 + ( 46 ) + - 2 * 29 * + 48 / 2 col2
----
-1331

query I rowsort
SELECT DISTINCT + 32 * - 98
----
-3136

query II rowsort
SELECT - 23 AS col1, ( 44 ) AS col0
----
-23
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4013
SELECT MAX( ALL + 28 ) AS col1, 37 DIV - 39 - 87 AS col1
----
28
-87

skipif mysql # not compatible
query II rowsort label-4013
SELECT MAX ( ALL + 28 ) AS col1, 37 / - 39 - 87 AS col1
----
28
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4014
SELECT ALL CAST( - MAX( DISTINCT COALESCE ( - ( 49 ), - + 12, - + 83 * - + 46 ) ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL CAST ( - MAX ( DISTINCT COALESCE ( - ( 49 ), - + 12, - + 83 * - + 46 ) ) AS INTEGER )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT ALL + 41 * - - 70 * COUNT( * )
----
2870

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL + 41 * - - 70 * COUNT ( * )
----
2870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT ALL CAST( SUM( ALL + + 43 ) AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL CAST ( SUM ( ALL + + 43 ) AS INTEGER )
----
43

query I rowsort
SELECT DISTINCT CASE COALESCE ( - 26, + 34 + - 56 ) WHEN + 30 THEN - + 96 WHEN - - 99 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 34 AS col2, - 11 AS col1
----
34
-11

query II rowsort
SELECT ALL ( - 54 ) col0, 93 AS col2
----
-54
93

query I rowsort
SELECT DISTINCT ( ( + 17 ) ) AS col0
----
17

query I rowsort
SELECT ALL ( + ( - 96 ) ) * + 35 AS col2
----
-3360

query I rowsort
SELECT + 86 + + + 66 + + 13 AS col2
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4023
SELECT DISTINCT + MIN( ALL + - 14 ) DIV 94 DIV + ( - 73 )
----
0

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT + MIN ( ALL + - 14 ) / 94 / + ( - 73 )
----
0

query I rowsort
SELECT - CASE - - NULLIF ( - ( + ( + 58 ) ), 33 ) WHEN + 38 THEN + 10 + + 79 WHEN - - 42 THEN NULL ELSE - 43 END
----
43

query II rowsort
SELECT 37, - 0 AS col0
----
37
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT + 38 DIV + 62 * - 96
----
0

skipif mysql # not compatible
query I rowsort label-4026
SELECT + 38 / + 62 * - 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4027
SELECT - - 24 + + + 55 * - CAST( - - 29 AS SIGNED ), 47 - + 99 + - - 77 AS col1
----
-1571
25

skipif mysql # not compatible
query II rowsort label-4027
SELECT - - 24 + + + 55 * - CAST ( - - 29 AS INTEGER ), 47 - + 99 + - - 77 AS col1
----
-1571
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4028
SELECT + + 91 * MAX( DISTINCT - - 75 ) * 55 + + COUNT( * ) + - + 75 * NULLIF ( COUNT( * ), - 26 ) - + 40 + 51 * - COUNT( * ) DIV + 57
----
375261

skipif mysql # not compatible
query I rowsort label-4028
SELECT + + 91 * MAX ( DISTINCT - - 75 ) * 55 + + COUNT ( * ) + - + 75 * NULLIF ( COUNT ( * ), - 26 ) - + 40 + 51 * - COUNT ( * ) / + 57
----
375261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT ALL - + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4030
SELECT ALL - CAST( NULL AS DECIMAL ), 12 AS col0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-4030
SELECT ALL - CAST ( NULL AS REAL ), 12 AS col0
----
NULL
12

query II rowsort
SELECT + - 75 + + 61 + - 62 - 36, ( + 63 ) AS col2
----
-112
63

query I rowsort
SELECT ALL - 69 + + 53 * + 79 + - - 76
----
4194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4033
SELECT DISTINCT - - 22 DIV SUM( 50 ) + - 96 DIV - 90 - + 5
----
-4

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT - - 22 / SUM ( 50 ) + - 96 / - 90 - + 5
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4034
SELECT DISTINCT - 32 DIV + 91 + + 33 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT - 32 / + 91 + + 33 AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4035
SELECT DISTINCT + - 29 col1, + 88 + + 67 - - + COUNT( * ) * - - 3
----
-29
158

skipif mysql # not compatible
query II rowsort label-4035
SELECT DISTINCT + - 29 col1, + 88 + + 67 - - + COUNT ( * ) * - - 3
----
-29
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT + 73 + + COUNT( * ) + 8 - - - 18 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4036
SELECT + 73 + + COUNT ( * ) + 8 - - - 18 AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4037
SELECT ALL + 89 DIV 27 * - COUNT( * ) + + 61 * - 4
----
-247

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + 89 / 27 * - COUNT ( * ) + + 61 * - 4
----
-247

query II rowsort
SELECT + 81 AS col0, 97
----
81
97

query I rowsort
SELECT + - 23 * - 25 AS col0
----
575

query II rowsort
SELECT + 99 col0, - 37 * + 23
----
99
-851

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4041
SELECT + CAST( NULL AS DECIMAL ), 22 AS col1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-4041
SELECT + CAST ( NULL AS REAL ), 22 AS col1
----
NULL
22

query I rowsort
SELECT ALL 50 * 66
----
3300

onlyif mysql # DIV for integer division: 
query I rowsort label-4043
SELECT DISTINCT - + 52 DIV 15 - + 24
----
-27

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT - + 52 / 15 - + 24
----
-27

query I rowsort
SELECT ALL 88 * + 41 * - 96 AS col2
----
-346368

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4045
SELECT 51 DIV CAST( - 43 AS SIGNED ) DIV - 1
----
1

skipif mysql # not compatible
query I rowsort label-4045
SELECT 51 / CAST ( - 43 AS INTEGER ) / - 1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4046
SELECT 86 * - 67, + 66 * + 26 * + COUNT( * ) * - 29 + CAST( NULL AS SIGNED ) * + 40 AS col2
----
-5762
NULL

skipif mysql # not compatible
query II rowsort label-4046
SELECT 86 * - 67, + 66 * + 26 * + COUNT ( * ) * - 29 + CAST ( NULL AS INTEGER ) * + 40 AS col2
----
-5762
NULL

query I rowsort
SELECT ( + 35 ) - - COALESCE ( - - 76, - 91 + 85 + 97 * + + 83 + 50, - 71, + + ( - - 1 ) )
----
111

query II rowsort
SELECT 96 * 30 AS col0, COALESCE ( - + ( + 65 ), + 99 * - 50 * - 4 ) * + - 78 - 37
----
2880
5033

onlyif mysql # aggregate syntax: 
query II rowsort label-4049
SELECT ALL - 73 * COUNT( * ) AS col1, + COUNT( * ) + - SUM( + 5 ) col0
----
-73
-4

skipif mysql # not compatible
query II rowsort label-4049
SELECT ALL - 73 * COUNT ( * ) AS col1, + COUNT ( * ) + - SUM ( + 5 ) col0
----
-73
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4050
SELECT 76 DIV + 47 AS col2, ( + COALESCE ( + COUNT( * ), ( + + 8 ), + + 11, - 18 ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-4050
SELECT 76 / + 47 AS col2, ( + COALESCE ( + COUNT ( * ), ( + + 8 ), + + 11, - 18 ) )
----
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT DISTINCT 22 DIV - 54 * - - 26
----
0

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT 22 / - 54 * - - 26
----
0

query I rowsort
SELECT 86 * + 48 AS col2
----
4128

query I rowsort
SELECT DISTINCT + 1 * 7 * + - 80
----
-560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT CAST( + 31 AS SIGNED ) + + 10 + + 20 * + 24 * 19 AS col2
----
9161

skipif mysql # not compatible
query I rowsort label-4054
SELECT CAST ( + 31 AS INTEGER ) + + 10 + + 20 * + 24 * 19 AS col2
----
9161

query I rowsort
SELECT 5 - + 45
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT COUNT( * ) * - 35 * ( + 44 ) AS col2
----
-1540

skipif mysql # not compatible
query I rowsort label-4056
SELECT COUNT ( * ) * - 35 * ( + 44 ) AS col2
----
-1540

query I rowsort
SELECT ALL - 38 + - - 40 * + 11 + 49
----
451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4058
SELECT ALL + 83 + 0 * - CASE WHEN NOT + NULLIF ( - 5, - 71 * 0 + - - 57 ) BETWEEN - 72 AND ( 54 * - COUNT( * ) + 86 ) THEN NULL WHEN NOT ( - ( - CAST( NULL AS SIGNED ) ) ) NOT BETWEEN + 11 / COUNT( * ) AND - 43 THEN - COUNT( * ) * + NULLIF ( CAST( NULL AS SIGNED ), 16 + 8 ) + + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + 83 + 0 * - CASE WHEN NOT + NULLIF ( - 5, - 71 * 0 + - - 57 ) BETWEEN - 72 AND ( 54 * - COUNT ( * ) + 86 ) THEN NULL WHEN NOT ( - ( - CAST ( NULL AS INTEGER ) ) ) NOT BETWEEN + 11 / COUNT ( * ) AND - 43 THEN - COUNT ( * ) * + NULLIF ( CAST ( NULL AS INTEGER ), 16 + 8 ) + + 93 END
----
NULL

query I rowsort
SELECT 95 + + 87 + - + 89
----
93

query I rowsort
SELECT + 12 + - - 56
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT DISTINCT - + COUNT( * ) + - + 93 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - + COUNT ( * ) + - + 93 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL - + COUNT( + 64 ) + 86 + 12
----
97

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL - + COUNT ( + 64 ) + 86 + 12
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL 74 + + - 44 - + MIN( DISTINCT + 4 )
----
26

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL 74 + + - 44 - + MIN ( DISTINCT + 4 )
----
26

query I rowsort
SELECT - - ( + + 45 )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT - 62 + - - 88 DIV - 97 * 72 * 71
----
-62

skipif mysql # not compatible
query I rowsort label-4065
SELECT - 62 + - - 88 / - 97 * 72 * 71
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4066
SELECT ALL - COUNT( DISTINCT - 25 ) DIV - CASE + COALESCE ( 98, MIN( ALL - 49 ) ) WHEN - SUM( ALL 19 ) THEN 68 + + - COUNT( * ) ELSE - MIN( DISTINCT - 93 ) END + + 86 DIV 16
----
5

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL - COUNT ( DISTINCT - 25 ) / - CASE + COALESCE ( 98, MIN ( ALL - 49 ) ) WHEN - SUM ( ALL 19 ) THEN 68 + + - COUNT ( * ) ELSE - MIN ( DISTINCT - 93 ) END + + 86 / 16
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4067
SELECT MIN( DISTINCT - - 61 ) AS col1, + 45
----
61
45

skipif mysql # not compatible
query II rowsort label-4067
SELECT MIN ( DISTINCT - - 61 ) AS col1, + 45
----
61
45

onlyif mysql # aggregate syntax: 
query II rowsort label-4068
SELECT ALL - - 59 + + COUNT( * ) AS col2, 96
----
60
96

skipif mysql # not compatible
query II rowsort label-4068
SELECT ALL - - 59 + + COUNT ( * ) AS col2, 96
----
60
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT - COUNT( + + 4 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4069
SELECT - COUNT ( + + 4 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4070
SELECT + 28 * 6, 61 DIV CAST( 69 AS SIGNED ) * + + 92 * - MIN( DISTINCT + + 36 ) + 27 AS col1
----
168
27

skipif mysql # not compatible
query II rowsort label-4070
SELECT + 28 * 6, 61 / CAST ( 69 AS INTEGER ) * + + 92 * - MIN ( DISTINCT + + 36 ) + 27 AS col1
----
168
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4071
SELECT COUNT( 91 ) * - MAX( DISTINCT + - 51 ) DIV - + MAX( ALL + 14 ) + - - 33 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4071
SELECT COUNT ( 91 ) * - MAX ( DISTINCT + - 51 ) / - + MAX ( ALL + 14 ) + - - 33 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT DISTINCT - 80 * - MIN( - 28 ) * + - 64
----
143360

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT - 80 * - MIN ( - 28 ) * + - 64
----
143360

query I rowsort
SELECT ALL + 22 * + + 17 * + 91
----
34034

query I rowsort
SELECT DISTINCT - ( - 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT + - COUNT( * ) * + COUNT( - 9 ) + - ( - + 74 ) - - ( CASE + + 12 WHEN 16 * - + 30 * COUNT( * ) THEN NULL WHEN + 69 + + AVG ( 12 + 43 * 20 ) THEN + 36 END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT + - COUNT ( * ) * + COUNT ( - 9 ) + - ( - + 74 ) - - ( CASE + + 12 WHEN 16 * - + 30 * COUNT ( * ) THEN NULL WHEN + 69 + + AVG ( 12 + 43 * 20 ) THEN + 36 END ) col2
----
NULL

query II rowsort
SELECT - 78 * - - 19, NULLIF ( + 32, 14 + - 46 + + - 32 ) AS col1
----
-1482
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4077
SELECT 87 + - - COUNT( * ) AS col2, + COUNT( * ) AS col1
----
88
1

skipif mysql # not compatible
query II rowsort label-4077
SELECT 87 + - - COUNT ( * ) AS col2, + COUNT ( * ) AS col1
----
88
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4078
SELECT - CASE - 50 WHEN 27 THEN 53 * - 68 + + 28 END * + CASE - AVG ( + ( - 45 ) ) WHEN - - 51 + - COUNT( * ) + COALESCE ( + 2, 24, 52 - CAST( NULL AS SIGNED ) * 73 ) THEN 60 * + 88 WHEN + 2 THEN NULL END - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4078
SELECT - CASE - 50 WHEN 27 THEN 53 * - 68 + + 28 END * + CASE - AVG ( + ( - 45 ) ) WHEN - - 51 + - COUNT ( * ) + COALESCE ( + 2, 24, 52 - CAST ( NULL AS INTEGER ) * 73 ) THEN 60 * + 88 WHEN + 2 THEN NULL END - 28 AS col2
----
NULL

query I rowsort
SELECT ( + NULLIF ( - 16, 8 ) ) * - ( ( + - 16 ) ) * - 41 + - - 53 AS col2
----
10549

query II rowsort
SELECT ALL - 16, - 70 + - - 21 - + 56 - 53 AS col1
----
-16
-158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4081
SELECT 54 * 60 * ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT 54 * 60 * ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 96 * + 34 * 81 * - 27 AS col0
----
-7138368

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT + 8 * 89 + COUNT( * ) * 90 * + 25 AS col0
----
2962

skipif mysql # not compatible
query I rowsort label-4083
SELECT + 8 * 89 + COUNT ( * ) * 90 * + 25 AS col0
----
2962

onlyif mysql # DIV for integer division: 
query II rowsort label-4084
SELECT DISTINCT - 12, 58 DIV + 25 AS col2
----
-12
2

skipif mysql # not compatible
query II rowsort label-4084
SELECT DISTINCT - 12, 58 / + 25 AS col2
----
-12
2

query I rowsort
SELECT ALL 81 * 93
----
7533

query II rowsort
SELECT DISTINCT - 18, + 82 + - 44 + 93 AS col1
----
-18
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL - SUM( - 25 ) col0
----
25

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - SUM ( - 25 ) col0
----
25

query II rowsort
SELECT + 79 AS col2, 3
----
79
3

query I rowsort
SELECT 69 * 90 AS col0
----
6210

query II rowsort
SELECT 67, - 1 * + 25 * - 79 * - 80 col1
----
67
-158000

onlyif mysql # DIV for integer division: 
query I rowsort label-4091
SELECT 11 DIV - + 82
----
0

skipif mysql # not compatible
query I rowsort label-4091
SELECT 11 / - + 82
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4092
SELECT DISTINCT 68 + + - 29 + - 93, 93 AS col0, - CAST( - 29 AS SIGNED ) * - + 19 AS col1
----
-54
93
-551

skipif mysql # not compatible
query III rowsort label-4092
SELECT DISTINCT 68 + + - 29 + - 93, 93 AS col0, - CAST ( - 29 AS INTEGER ) * - + 19 AS col1
----
-54
93
-551

query I rowsort
SELECT ALL NULLIF ( - COALESCE ( - - ( - 79 ), + 24 ), + 70 * + 21 + + 23 ) + 78 AS col2
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT 24 + + 28 DIV 9 * - ( - + 96 ) * 10 - + 98 AS col0
----
2806

skipif mysql # not compatible
query I rowsort label-4094
SELECT 24 + + 28 / 9 * - ( - + 96 ) * 10 - + 98 AS col0
----
2806

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL 3 + - 58 * SUM( DISTINCT - 44 )
----
2555

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL 3 + - 58 * SUM ( DISTINCT - 44 )
----
2555

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT + NULLIF ( 85, + 22 ) + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT + NULLIF ( 85, + 22 ) + + COUNT ( * )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT COALESCE ( + 22, - 14 ) DIV + ( + 52 )
----
0

skipif mysql # not compatible
query I rowsort label-4097
SELECT COALESCE ( + 22, - 14 ) / + ( + 52 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4098
SELECT ALL 79 + 54 + - 5 AS col1, CAST( NULL AS SIGNED ), 10 * - CASE - 51 WHEN - 61 THEN 78 - + 45 WHEN - 80 * - - 76 * + - 5 + NULLIF ( - 94 + 52, - 26 ) / ( 17 + - COUNT( * ) ) THEN + 82 ELSE NULL END
----
128
NULL
NULL

skipif mysql # not compatible
query III rowsort label-4098
SELECT ALL 79 + 54 + - 5 AS col1, CAST ( NULL AS INTEGER ), 10 * - CASE - 51 WHEN - 61 THEN 78 - + 45 WHEN - 80 * - - 76 * + - 5 + NULLIF ( - 94 + 52, - 26 ) / ( 17 + - COUNT ( * ) ) THEN + 82 ELSE NULL END
----
128
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4099
SELECT ( ( + + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT ( ( + + CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT ALL + - 11 + + - ( 64 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - - SUM( ALL + - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-4101
SELECT - - SUM ( ALL + - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT - MAX( - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-4102
SELECT - MAX ( - 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT COUNT( + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-4103
SELECT COUNT ( + 50 )
----
1

query I rowsort
SELECT ALL + 87 + - ( + 29 ) AS col0
----
58

query I rowsort
SELECT ALL - 28 - - 44
----
16

query I rowsort
SELECT 84 + - 88
----
-4

query II rowsort
SELECT DISTINCT 99 AS col0, 78
----
99
78

query II rowsort
SELECT ALL 16 AS col1, 40
----
16
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT 30 + SUM( 4 )
----
34

skipif mysql # not compatible
query I rowsort label-4109
SELECT 30 + SUM ( 4 )
----
34

query I rowsort
SELECT ALL 91 - 98
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4111
SELECT ALL 99 AS col0, + COUNT( * ) - - 81
----
99
82

skipif mysql # not compatible
query II rowsort label-4111
SELECT ALL 99 AS col0, + COUNT ( * ) - - 81
----
99
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT CASE + 35 WHEN COUNT( * ) THEN NULLIF ( - - 37, - - 98 + + 94 ) - - - 31 ELSE 89 END + - 83
----
6

skipif mysql # not compatible
query I rowsort label-4112
SELECT CASE + 35 WHEN COUNT ( * ) THEN NULLIF ( - - 37, - - 98 + + 94 ) - - - 31 ELSE 89 END + - 83
----
6

query I rowsort
SELECT DISTINCT - + ( - 55 )
----
55

query I rowsort
SELECT - - ( + 77 ) + + CASE + 1 WHEN + 11 THEN NULL WHEN + 54 THEN + 84 - - AVG ( ALL + - 53 ) ELSE NULL END * + 79
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT DISTINCT - + COUNT( * ) DIV - + 5 * + + 67 DIV - 61 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT - + COUNT ( * ) / - + 5 * + + 67 / - 61 + - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4116
SELECT - - 47 DIV + + 13
----
3

skipif mysql # not compatible
query I rowsort label-4116
SELECT - - 47 / + + 13
----
3

query I rowsort
SELECT COALESCE ( - 62, + - ( - - 76 ) + - 77 * - + 12, 68 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT DISTINCT + 73 * + - COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT + 73 * + - COUNT ( * ) AS col2
----
-73

query I rowsort
SELECT ALL 94 * 49 * + + CASE - - 91 WHEN + 14 THEN NULL WHEN + ( 86 ) THEN 80 END * + 50 * + 98 + + + ( - 5 )
----
NULL

query I rowsort
SELECT ALL ( - - 18 ) * - 97 + 80 * - 71
----
-7426

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT - 28 * COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT - 28 * COUNT ( * ) AS col2
----
-28

query I rowsort
SELECT + 52 * - + 50 AS col1
----
-2600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4123
SELECT ALL + ( CAST( NULL AS SIGNED ) ) * 1 + + - 21, - COALESCE ( - - COUNT( * ), + 90 ) col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4123
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) * 1 + + - 21, - COALESCE ( - - COUNT ( * ), + 90 ) col2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL 66 * - 16 + + 78 + 29 + + 57 * - COUNT( * ) + - 85 + - + 81 + + COUNT( * ) + + 11 * + 64 - + + MAX( 23 ) + COUNT( * ) * - 45 AS col0
----
-535

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL 66 * - 16 + + 78 + 29 + + 57 * - COUNT ( * ) + - 85 + - + 81 + + COUNT ( * ) + + 11 * + 64 - + + MAX ( 23 ) + COUNT ( * ) * - 45 AS col0
----
-535

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT 35 * - - COUNT( * ) + - MAX( DISTINCT + + 60 )
----
-25

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT 35 * - - COUNT ( * ) + - MAX ( DISTINCT + + 60 )
----
-25

query I rowsort
SELECT + 22 * ( + 84 ) AS col2
----
1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4127
SELECT + CASE - CAST( 41 AS SIGNED ) WHEN - 11 THEN + 73 * - CASE - 50 WHEN 90 / + 28 THEN NULL ELSE + + 52 END + 7 + - 35 * CAST( + 17 AS SIGNED ) * - COUNT( * ) + + 87 WHEN + 74 + 51 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT + CASE - CAST ( 41 AS INTEGER ) WHEN - 11 THEN + 73 * - CASE - 50 WHEN 90 / + 28 THEN NULL ELSE + + 52 END + 7 + - 35 * CAST ( + 17 AS INTEGER ) * - COUNT ( * ) + + 87 WHEN + 74 + 51 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4128
SELECT + CAST( NULL AS SIGNED ) - - COUNT( * ) / - - 13 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT + CAST ( NULL AS INTEGER ) - - COUNT ( * ) / - - 13 col2
----
NULL

query I rowsort
SELECT + 86 - 41 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT ALL - MIN( DISTINCT + + ( + - 34 ) ) + - 28
----
6

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - MIN ( DISTINCT + + ( + - 34 ) ) + - 28
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4131
SELECT ALL CAST( + 90 AS SIGNED ) + + - 31 * 1 + + - 77 + + 76
----
58

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL CAST ( + 90 AS INTEGER ) + + - 31 * 1 + + - 77 + + 76
----
58

query II rowsort
SELECT ALL + NULLIF ( + - 98, + 55 ) + + 87 - - + 25 AS col1, 97 col0
----
14
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT + + 13 * - CAST( 91 AS SIGNED )
----
-1183

skipif mysql # not compatible
query I rowsort label-4133
SELECT + + 13 * - CAST ( 91 AS INTEGER )
----
-1183

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4134
SELECT ALL + CAST( NULL AS DECIMAL ) * CASE COUNT( * ) WHEN - + 34 - - 85 * + - 37 THEN - 57 WHEN - 58 / + 3 + + - COALESCE ( 94, + 70 * - 67 + 37 / - 63 ) THEN - 37 - COALESCE ( 15, COUNT( * ), 74 * 93 ) * 35 WHEN + 28 THEN NULL END / 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL + CAST ( NULL AS REAL ) * CASE COUNT ( * ) WHEN - + 34 - - 85 * + - 37 THEN - 57 WHEN - 58 / + 3 + + - COALESCE ( 94, + 70 * - 67 + 37 / - 63 ) THEN - 37 - COALESCE ( 15, COUNT ( * ), 74 * 93 ) * 35 WHEN + 28 THEN NULL END / 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4135
SELECT DISTINCT ( + COUNT( * ) ), - 20 - - 38 + - ( + 8 ) AS col2
----
1
10

skipif mysql # not compatible
query II rowsort label-4135
SELECT DISTINCT ( + COUNT ( * ) ), - 20 - - 38 + - ( + 8 ) AS col2
----
1
10

onlyif mysql # DIV for integer division: 
query II rowsort label-4136
SELECT + + 63 DIV + 34 AS col0, 95 + 4 AS col2
----
1
99

skipif mysql # not compatible
query II rowsort label-4136
SELECT + + 63 / + 34 AS col0, 95 + 4 AS col2
----
1
99

query I rowsort
SELECT + 83 * - + ( + 23 ) col2
----
-1909

query I rowsort
SELECT - 53 * + NULLIF ( - 78, 63 * 11 + + 94 )
----
4134

onlyif mysql # DIV for integer division: 
query II rowsort label-4139
SELECT - COALESCE ( - + 83, + 54 DIV + 25 ) AS col2, + 87 DIV - 38
----
83
-2

skipif mysql # not compatible
query II rowsort label-4139
SELECT - COALESCE ( - + 83, + 54 / + 25 ) AS col2, + 87 / - 38
----
83
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT + SUM( - + 60 ) + + COUNT( * ) + + 99 * - - 77 * + 25 AS col0
----
190516

skipif mysql # not compatible
query I rowsort label-4140
SELECT + SUM ( - + 60 ) + + COUNT ( * ) + + 99 * - - 77 * + 25 AS col0
----
190516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4141
SELECT ALL + - CASE + 13 WHEN + COUNT( * ) THEN - 7 + CAST( NULL AS SIGNED ) ELSE + 92 - + 88 - 22 * - + 17 END * + 47 AS col1
----
-17766

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + - CASE + 13 WHEN + COUNT ( * ) THEN - 7 + CAST ( NULL AS INTEGER ) ELSE + 92 - + 88 - 22 * - + 17 END * + 47 AS col1
----
-17766

query I rowsort
SELECT ALL - COALESCE ( - 82, 86 - - 80 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT + + COUNT( * ) * 30 * + NULLIF ( + 77, - + COALESCE ( AVG ( ALL - + 48 ), - 73 * - + 59 * 84 ) )
----
2310

skipif mysql # not compatible
query I rowsort label-4143
SELECT + + COUNT ( * ) * 30 * + NULLIF ( + 77, - + COALESCE ( AVG ( ALL - + 48 ), - 73 * - + 59 * 84 ) )
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT - + CASE 87 WHEN COUNT( * ) * + - 62 + - 1 THEN + - MAX( 48 ) END + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT - + CASE 87 WHEN COUNT ( * ) * + - 62 + - 1 THEN + - MAX ( 48 ) END + + 6 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT + 99 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT + 99 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 34 - + 23 AS col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT + 16 DIV 8 - - + 60
----
62

skipif mysql # not compatible
query I rowsort label-4147
SELECT + 16 / 8 - - + 60
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT - COUNT( * ) + COUNT( * ) + + - 46 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4148
SELECT - COUNT ( * ) + COUNT ( * ) + + - 46 AS col2
----
-46

query I rowsort
SELECT ALL 6 * - 90
----
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-4150
SELECT DISTINCT 25 DIV - + 6 + ( + 93 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT 25 / - + 6 + ( + 93 ) AS col1
----
89

query I rowsort
SELECT - 40 + - ( + ( - 52 ) )
----
12

query I rowsort
SELECT ALL - 86 * + 42 + - 97 + 0 + - + 65 AS col1
----
-3774

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT - ( + 38 ) + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-4153
SELECT - ( + 38 ) + + COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ( - SUM( DISTINCT + 38 ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4154
SELECT ( - SUM ( DISTINCT + 38 ) ) AS col0
----
-38

query I rowsort
SELECT DISTINCT + 42 * - + 74
----
-3108

query I rowsort
SELECT 51 * - - 98 * - 33 + 67 AS col1
----
-164867

query I rowsort
SELECT ALL - 79 * + + 27
----
-2133

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT - 86 + - + 6 + CASE + COUNT( * ) WHEN - 11 * + 10 * + 35 - + - 44 THEN - 47 WHEN 49 THEN 30 END * + 48 + + 91 * - + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT - 86 + - + 6 + CASE + COUNT ( * ) WHEN - 11 * + 10 * + 35 - + - 44 THEN - 47 WHEN 49 THEN 30 END * + 48 + + 91 * - + 24 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4159
SELECT ALL CASE + 9 WHEN + - CAST( NULL AS SIGNED ) * - 55 / - + COUNT( + + 11 ) - + 92 - 16 + 49 * - ( - MIN( DISTINCT + - 69 ) ) * + - COUNT( COALESCE ( 43, 81 + 15 ) ) * - COALESCE ( + CAST( NULL AS SIGNED ), 92 ) THEN NULL ELSE - NULLIF ( + MAX( - 98 ), 34 ) END * CAST( 53 * + 79 AS SIGNED ) + + ( + 69 )
----
410395

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL CASE + 9 WHEN + - CAST ( NULL AS INTEGER ) * - 55 / - + COUNT ( + + 11 ) - + 92 - 16 + 49 * - ( - MIN ( DISTINCT + - 69 ) ) * + - COUNT ( COALESCE ( 43, 81 + 15 ) ) * - COALESCE ( + CAST ( NULL AS INTEGER ), 92 ) THEN NULL ELSE - NULLIF ( + MAX ( - 98 ), 34 ) END * CAST ( 53 * + 79 AS INTEGER ) + + ( + 69 )
----
410395

query I rowsort
SELECT - 62 + - 31
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4161
SELECT ALL - CASE + - 21 WHEN + 65 + - - 50 THEN - 60 WHEN CAST( 50 AS DECIMAL ) - 48 + ( + 6 ) * - - ( - 51 ) * + ( + 3 ) THEN NULL END * + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL - CASE + - 21 WHEN + 65 + - - 50 THEN - 60 WHEN CAST ( 50 AS REAL ) - 48 + ( + 6 ) * - - ( - 51 ) * + ( + 3 ) THEN NULL END * + 85 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT ALL + CAST( + COALESCE ( + - 17, - 12 ) AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + CAST ( + COALESCE ( + - 17, - 12 ) AS INTEGER )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT ALL - + 61 * + - COUNT( 36 ) * - + 89 - + + 25 - + - 57 AS col2
----
-5397

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL - + 61 * + - COUNT ( 36 ) * - + 89 - + + 25 - + - 57 AS col2
----
-5397

query I rowsort
SELECT ALL ( - + 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT - - COUNT( * ) * + 64
----
64

skipif mysql # not compatible
query I rowsort label-4165
SELECT - - COUNT ( * ) * + 64
----
64

query I rowsort
SELECT ALL - 95 * + - 15 col1
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT + - ( - 83 ) + 64 * + 84 - MAX( ALL + - 31 )
----
5490

skipif mysql # not compatible
query I rowsort label-4167
SELECT + - ( - 83 ) + 64 * + 84 - MAX ( ALL + - 31 )
----
5490

onlyif mysql # aggregate syntax: 
query II rowsort label-4168
SELECT 60 col0, + 26 * 93 - + + CASE - - 26 WHEN - + 20 THEN COUNT( * ) END
----
60
NULL

skipif mysql # not compatible
query II rowsort label-4168
SELECT 60 col0, + 26 * 93 - + + CASE - - 26 WHEN - + 20 THEN COUNT ( * ) END
----
60
NULL

query I rowsort
SELECT ALL - 46 * - 83 AS col0
----
3818

query I rowsort
SELECT + 17 * 59 * - 81 + + 66 AS col1
----
-81177

query I rowsort
SELECT ALL 87 * + 43
----
3741

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT DISTINCT - 2 * COUNT( * ) * + + 57 + - 15 AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT - 2 * COUNT ( * ) * + + 57 + - 15 AS col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL COALESCE ( + 94, - MIN( - 57 ) * - + 2 + + 9 + + 95, + 1 * COUNT( * ) ) * - 47
----
-4418

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL COALESCE ( + 94, - MIN ( - 57 ) * - + 2 + + 9 + + 95, + 1 * COUNT ( * ) ) * - 47
----
-4418

onlyif mysql # DIV for integer division: 
query I rowsort label-4174
SELECT - 83 DIV + - 31
----
2

skipif mysql # not compatible
query I rowsort label-4174
SELECT - 83 / + - 31
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL - 94 + - COUNT( * ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL - 94 + - COUNT ( * ) col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4176
SELECT ALL + 19 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL + 19 / - 51
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4177
SELECT DISTINCT 59 DIV + COUNT( ALL + 13 ) + - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT 59 / + COUNT ( ALL + 13 ) + - 59 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4178
SELECT DISTINCT COUNT( * ), ( - 65 ) * + 29 AS col2
----
1
-1885

skipif mysql # not compatible
query II rowsort label-4178
SELECT DISTINCT COUNT ( * ), ( - 65 ) * + 29 AS col2
----
1
-1885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT ALL + CASE - - ( + + 25 ) WHEN - 54 * + 76 + CAST( NULL AS SIGNED ) THEN 93 * - - 7 WHEN 60 THEN + COUNT( * ) * - 97 + + 17 + - CAST( NULL AS SIGNED ) + + 80 * - + 68 + - 58 / 52 END + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL + CASE - - ( + + 25 ) WHEN - 54 * + 76 + CAST ( NULL AS INTEGER ) THEN 93 * - - 7 WHEN 60 THEN + COUNT ( * ) * - 97 + + 17 + - CAST ( NULL AS INTEGER ) + + 80 * - + 68 + - 58 / 52 END + + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL - 28 * + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL - 28 * + COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT CASE 30 WHEN - 65 + + 19 / 79 THEN 61 + + COUNT( * ) END * + 89 + - COALESCE ( + ( COUNT( * ) ), + 70 * + 3 * - + COALESCE ( - COUNT( * ), + 54 * - COUNT( * ) ) ) + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT CASE 30 WHEN - 65 + + 19 / 79 THEN 61 + + COUNT ( * ) END * + 89 + - COALESCE ( + ( COUNT ( * ) ), + 70 * + 3 * - + COALESCE ( - COUNT ( * ), + 54 * - COUNT ( * ) ) ) + 97 AS col2
----
NULL

query I rowsort
SELECT ALL 52 + 67 + - 59 + 65 * - 95 AS col0
----
-6115

query I rowsort
SELECT 56 * - - 75 + - 81 col0
----
4119

onlyif mysql # aggregate syntax: 
query II rowsort label-4184
SELECT + 19 AS col2, - ( + + 98 ) * 85 + - 92 * - COUNT( * ) AS col2
----
19
-8238

skipif mysql # not compatible
query II rowsort label-4184
SELECT + 19 AS col2, - ( + + 98 ) * 85 + - 92 * - COUNT ( * ) AS col2
----
19
-8238

query II rowsort
SELECT 86 col0, - 82 AS col0
----
86
-82

query II rowsort
SELECT 21 AS col2, 20
----
21
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL + 56 + 31 * - SUM( + 23 ) - + - 1 * - - 45 - 52
----
-664

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + 56 + 31 * - SUM ( + 23 ) - + - 1 * - - 45 - 52
----
-664

query I rowsort
SELECT ( 29 ) * - 43
----
-1247

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT ALL 16 + 3 DIV + - 94
----
16

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL 16 + 3 / + - 94
----
16

query II rowsort
SELECT + 27, 22 AS col0
----
27
22

onlyif mysql # DIV for integer division: 
query II rowsort label-4191
SELECT ALL - 75 AS col2, + 7 DIV - 12 col2
----
-75
0

skipif mysql # not compatible
query II rowsort label-4191
SELECT ALL - 75 AS col2, + 7 / - 12 col2
----
-75
0

query I rowsort
SELECT 20 * + 91 AS col2
----
1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT DISTINCT - CAST( 96 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT - CAST ( 96 AS INTEGER )
----
-96

query II rowsort
SELECT + 93, - 40 AS col0
----
93
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT - 58 * - - SUM( DISTINCT COALESCE ( + 26, - NULLIF ( + NULLIF ( 47, - + 55 + 98 ), + - 71 / + 47 - - - 7 ) ) ) * - 16
----
24128

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT - 58 * - - SUM ( DISTINCT COALESCE ( + 26, - NULLIF ( + NULLIF ( 47, - + 55 + 98 ), + - 71 / + 47 - - - 7 ) ) ) * - 16
----
24128

query II rowsort
SELECT ALL - 46 AS col0, - 72
----
-46
-72

query I rowsort
SELECT + 65 - - 80
----
145

query I rowsort
SELECT 36 * - - 91
----
3276

query I rowsort
SELECT + 79 - + 62
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4200
SELECT ALL - 25 AS col2, 25 * + - CAST( NULL AS SIGNED ) * 50 AS col2
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-4200
SELECT ALL - 25 AS col2, 25 * + - CAST ( NULL AS INTEGER ) * 50 AS col2
----
-25
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4201
SELECT ALL + 84, - MIN( + 18 ) * - + COUNT( * ) * 0 col1
----
84
0

skipif mysql # not compatible
query II rowsort label-4201
SELECT ALL + 84, - MIN ( + 18 ) * - + COUNT ( * ) * 0 col1
----
84
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4202
SELECT ALL - 58 DIV - CAST( - 70 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - 58 / - CAST ( - 70 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4203
SELECT - 45 + + - COALESCE ( 66, + - 68 DIV + - COUNT( * ) )
----
-111

skipif mysql # not compatible
query I rowsort label-4203
SELECT - 45 + + - COALESCE ( 66, + - 68 / + - COUNT ( * ) )
----
-111

query I rowsort
SELECT - - ( + 71 )
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT DISTINCT - 79, + ( + - SUM( DISTINCT - 59 ) ) AS col0
----
-79
59

skipif mysql # not compatible
query II rowsort label-4205
SELECT DISTINCT - 79, + ( + - SUM ( DISTINCT - 59 ) ) AS col0
----
-79
59

query I rowsort
SELECT 66 - - 45
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT - CASE - 21 WHEN - 71 THEN NULL WHEN - + 83 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT - CASE - 21 WHEN - 71 THEN NULL WHEN - + 83 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ( + 84 ) * - 51 + - COALESCE ( - 57, - 7 - - - MIN( ALL 14 ) + + 55 + + - COUNT( * ) + 58 )
----
-4227

skipif mysql # not compatible
query I rowsort label-4208
SELECT ( + 84 ) * - 51 + - COALESCE ( - 57, - 7 - - - MIN ( ALL 14 ) + + 55 + + - COUNT ( * ) + 58 )
----
-4227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4209
SELECT ALL + 23 + + COUNT( * ) * + + NULLIF ( - - 51, - ( + + 12 ) + CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) )
----
74

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL + 23 + + COUNT ( * ) * + + NULLIF ( - - 51, - ( + + 12 ) + CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT DISTINCT + 90 + + MIN( ALL - - 66 ) AS col2
----
156

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT + 90 + + MIN ( ALL - - 66 ) AS col2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL COUNT( * ) * + 41
----
41

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL COUNT ( * ) * + 41
----
41

query I rowsort
SELECT ALL + 62 + + + 86
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT DISTINCT 76 + + + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT 76 + + + COUNT ( * )
----
77

query I rowsort
SELECT 70 + - 73 + + COALESCE ( 48, - 43 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT 5 * - ( + COUNT( * ) ) * + - 51 AS col1
----
255

skipif mysql # not compatible
query I rowsort label-4215
SELECT 5 * - ( + COUNT ( * ) ) * + - 51 AS col1
----
255

query I rowsort
SELECT DISTINCT 70 * - 64
----
-4480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4217
SELECT 88 DIV + 27 + - MIN( ALL 37 )
----
-34

skipif mysql # not compatible
query I rowsort label-4217
SELECT 88 / + 27 + - MIN ( ALL 37 )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT ALL 22 * - 32 - - 24 + + + 82 DIV + 24
----
-677

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL 22 * - 32 - - 24 + + + 82 / + 24
----
-677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4219
SELECT COALESCE ( + + CASE - 64 WHEN 98 + + + 90 THEN NULL WHEN 67 THEN NULL WHEN - - 49 THEN + - CASE + NULLIF ( - + 88, - 9 * 46 ) WHEN 84 THEN 66 + + CAST( NULL AS SIGNED ) * + CASE + CAST( + 92 AS SIGNED ) WHEN 77 * NULLIF ( 58, - 71 + CAST( + 68 AS DECIMAL ) ) THEN - CASE 43 WHEN - COUNT( * ) THEN - MAX( 21 ) + + 1 END END + COUNT( * ) END END, - 29, 70 ) + 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4219
SELECT COALESCE ( + + CASE - 64 WHEN 98 + + + 90 THEN NULL WHEN 67 THEN NULL WHEN - - 49 THEN + - CASE + NULLIF ( - + 88, - 9 * 46 ) WHEN 84 THEN 66 + + CAST ( NULL AS INTEGER ) * + CASE + CAST ( + 92 AS INTEGER ) WHEN 77 * NULLIF ( 58, - 71 + CAST ( + 68 AS REAL ) ) THEN - CASE 43 WHEN - COUNT ( * ) THEN - MAX ( 21 ) + + 1 END END + COUNT ( * ) END END, - 29, 70 ) + 29 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL + 32 * + 0 * - COUNT( * ) * - COUNT( * ) - + - 98
----
98

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL + 32 * + 0 * - COUNT ( * ) * - COUNT ( * ) - + - 98
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT 20 DIV + + 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT 20 / + + 46 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4222
SELECT DISTINCT - CAST( + + 84 AS SIGNED ) * + 89 AS col1
----
-7476

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT - CAST ( + + 84 AS INTEGER ) * + 89 AS col1
----
-7476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4223
SELECT 25 DIV + - COUNT( * ) + - + 60 col2
----
-85

skipif mysql # not compatible
query I rowsort label-4223
SELECT 25 / + - COUNT ( * ) + - + 60 col2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT ALL - CAST( NULL AS SIGNED ) * - 84 - + + 10 * - 92 * - ( + + 96 ) * ( + + 84 ) * + + 79 - - 94 + + 85 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - CAST ( NULL AS INTEGER ) * - 84 - + + 10 * - 92 * - ( + + 96 ) * ( + + 84 ) * + + 79 - - 94 + + 85 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4225
SELECT MAX( - 75 ), - 12 + - - MAX( - 74 ) + - 86 AS col2
----
-75
-172

skipif mysql # not compatible
query II rowsort label-4225
SELECT MAX ( - 75 ), - 12 + - - MAX ( - 74 ) + - 86 AS col2
----
-75
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT 49 + - - ( - COUNT( * ) ) + + - 43 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4226
SELECT 49 + - - ( - COUNT ( * ) ) + + - 43 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4227
SELECT 55 * - COALESCE ( + 16, + + MAX( + CAST( 83 AS SIGNED ) ) * - 56 ) * - COALESCE ( COALESCE ( + CASE 26 WHEN - SUM( ALL - - 34 ) THEN NULL WHEN COUNT( * ) THEN + MAX( + + 99 ) + - - 49 END, - 19 ), NULLIF ( - 76, + 2 ) DIV - 82 ) AS col0
----
-16720

skipif mysql # not compatible
query I rowsort label-4227
SELECT 55 * - COALESCE ( + 16, + + MAX ( + CAST ( 83 AS INTEGER ) ) * - 56 ) * - COALESCE ( COALESCE ( + CASE 26 WHEN - SUM ( ALL - - 34 ) THEN NULL WHEN COUNT ( * ) THEN + MAX ( + + 99 ) + - - 49 END, - 19 ), NULLIF ( - 76, + 2 ) / - 82 ) AS col0
----
-16720

query I rowsort
SELECT DISTINCT - 1 * 13 AS col0
----
-13

query I rowsort
SELECT + 72 * + 53 + - 22
----
3794

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT + COUNT( 7 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4230
SELECT + COUNT ( 7 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4231
SELECT - - COUNT( * ) + - + 15, 18 DIV - 2 AS col0
----
-14
-9

skipif mysql # not compatible
query II rowsort label-4231
SELECT - - COUNT ( * ) + - + 15, 18 / - 2 AS col0
----
-14
-9

query I rowsort
SELECT + - 13 * - + 88
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT + - 56 * - + 2 + + + COUNT( * ) + ( + + 94 )
----
207

skipif mysql # not compatible
query I rowsort label-4233
SELECT + - 56 * - + 2 + + + COUNT ( * ) + ( + + 94 )
----
207

query I rowsort
SELECT ALL - 52 + - 75
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4235
SELECT DISTINCT - - 80 * - COUNT( * ) - + CAST( - 21 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT - - 80 * - COUNT ( * ) - + CAST ( - 21 AS INTEGER )
----
-59

query I rowsort
SELECT - 92 * 36
----
-3312

query I rowsort
SELECT ALL - + ( - 98 ) + 58
----
156

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4238
SELECT ALL + - 51 + - COUNT( * ) + - 30 + COUNT( * ) + + - 36 * + - ( 85 ) * 69 + - 8 + - - ( + 29 ) DIV + + COALESCE ( 6, - NULLIF ( + 55, - 8 * - 34 - CASE - CAST( 40 AS DECIMAL ) WHEN 71 DIV 47 THEN 36 * - 56 END ) ) AS col0
----
211055

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL + - 51 + - COUNT ( * ) + - 30 + COUNT ( * ) + + - 36 * + - ( 85 ) * 69 + - 8 + - - ( + 29 ) / + + COALESCE ( 6, - NULLIF ( + 55, - 8 * - 34 - CASE - CAST ( 40 AS REAL ) WHEN 71 / 47 THEN 36 * - 56 END ) ) AS col0
----
211055

onlyif mysql # aggregate syntax: 
query II rowsort label-4239
SELECT - - 6 + + 22, 77 * + COUNT( * ) + - 68 AS col1
----
28
9

skipif mysql # not compatible
query II rowsort label-4239
SELECT - - 6 + + 22, 77 * + COUNT ( * ) + - 68 AS col1
----
28
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT DISTINCT + + 0 + MAX( DISTINCT + + ( + 49 ) )
----
49

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT + + 0 + MAX ( DISTINCT + + ( + 49 ) )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4241
SELECT - CAST( - + 94 AS SIGNED ), 1 AS col1
----
94
1

skipif mysql # not compatible
query II rowsort label-4241
SELECT - CAST ( - + 94 AS INTEGER ), 1 AS col1
----
94
1

query I rowsort
SELECT - 47 + + + 98
----
51

query II rowsort
SELECT ALL NULLIF ( 51, - 30 ) col0, 64 * 13
----
51
832

query I rowsort
SELECT ALL - 56 + - 34 AS col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT - 35 + - CAST( NULL AS SIGNED ) + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT - 35 + - CAST ( NULL AS INTEGER ) + 80
----
NULL

query I rowsort
SELECT - ( 69 ) + - 88 col1
----
-157

query I rowsort
SELECT - 69 - - 85 AS col0
----
16

query II rowsort
SELECT ALL NULLIF ( - 82, - 35 ), + 72 + 82 - + - 86 AS col0
----
-82
240

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL CASE COUNT( * ) WHEN + 83 / - 82 THEN + 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL CASE COUNT ( * ) WHEN + 83 / - 82 THEN + 75 END
----
NULL

query I rowsort
SELECT DISTINCT - 38 - - + 93 + - ( - 36 )
----
91

query I rowsort
SELECT + 39 * + - 73 AS col1
----
-2847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4252
SELECT + 26 AS col2, 9 + - + 4 * MAX( DISTINCT + CAST( + 47 AS SIGNED ) ) - + 81 + - ( + - 10 ) * + - 25 AS col0
----
26
-510

skipif mysql # not compatible
query II rowsort label-4252
SELECT + 26 AS col2, 9 + - + 4 * MAX ( DISTINCT + CAST ( + 47 AS INTEGER ) ) - + 81 + - ( + - 10 ) * + - 25 AS col0
----
26
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT + 57 + - + 14 * - COALESCE ( - + COUNT( * ), - COUNT( * ) + + 25 + - + 97 ) col0
----
43

skipif mysql # not compatible
query I rowsort label-4253
SELECT + 57 + - + 14 * - COALESCE ( - + COUNT ( * ), - COUNT ( * ) + + 25 + - + 97 ) col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL - COUNT( * ) * 96 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - COUNT ( * ) * 96 AS col1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4255
SELECT ALL + CAST( + 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL + CAST ( + 35 AS INTEGER )
----
35

query I rowsort
SELECT ALL 98 * + 1 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT - 3 * + + COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4257
SELECT - 3 * + + COUNT ( * ) AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4258
SELECT 30 DIV 99 * + ( - COUNT( * ) ) + ( + - 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4258
SELECT 30 / 99 * + ( - COUNT ( * ) ) + ( + - 80 ) AS col0
----
-80

query II rowsort
SELECT ALL + 94 AS col1, + 9 AS col0
----
94
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL + SUM( - + 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL + SUM ( - + 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT + 73 * - COALESCE ( - COUNT( * ), + 0 * + 41 * NULLIF ( - - 82, - COUNT( * ) + + 19 + 23 * - 95 * 49 ) - 72 * + 64 * - 13 * - 93 ) * COUNT( - 90 ) * 76
----
5548

skipif mysql # not compatible
query I rowsort label-4261
SELECT + 73 * - COALESCE ( - COUNT ( * ), + 0 * + 41 * NULLIF ( - - 82, - COUNT ( * ) + + 19 + 23 * - 95 * 49 ) - 72 * + 64 * - 13 * - 93 ) * COUNT ( - 90 ) * 76
----
5548

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT ALL 85 DIV + + 25
----
3

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL 85 / + + 25
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4263
SELECT + + 2 DIV - 56 * + + 91, + 59 - 30 + + + 38 + 2 AS col1
----
0
69

skipif mysql # not compatible
query II rowsort label-4263
SELECT + + 2 / - 56 * + + 91, + 59 - 30 + + + 38 + 2 AS col1
----
0
69

query II rowsort
SELECT DISTINCT + - 35 AS col1, - 58
----
-35
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT + CAST( NULL AS SIGNED ) / + - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT + CAST ( NULL AS INTEGER ) / + - 83 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4266
SELECT - 95 * - 51 + - 57 + + - 65 DIV + 16 AS col1
----
4784

skipif mysql # not compatible
query I rowsort label-4266
SELECT - 95 * - 51 + - 57 + + - 65 / + 16 AS col1
----
4784

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4267
SELECT ALL CAST( 8 AS SIGNED ) * + + 13 + + 91 * - COALESCE ( - 13, 15 DIV - 41 ) * - - 9
----
10751

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL CAST ( 8 AS INTEGER ) * + + 13 + + 91 * - COALESCE ( - 13, 15 / - 41 ) * - - 9
----
10751

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL + 30 * + - COUNT( * ) + - 62 - + 34 * 99 - - 65 AS col2
----
-3393

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + 30 * + - COUNT ( * ) + - 62 - + 34 * 99 - - 65 AS col2
----
-3393

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT DISTINCT MIN( + 99 ) * - 22 + 55 AS col1
----
-2123

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT MIN ( + 99 ) * - 22 + 55 AS col1
----
-2123

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT DISTINCT 59 AS col1, COUNT( * ) * - 77
----
59
-77

skipif mysql # not compatible
query II rowsort label-4270
SELECT DISTINCT 59 AS col1, COUNT ( * ) * - 77
----
59
-77

query II rowsort
SELECT ALL 26, 24 AS col0
----
26
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT DISTINCT - COUNT( - + 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT - COUNT ( - + 56 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4273
SELECT ALL - 24 DIV - 93 AS col1, - COUNT( * ) + - + COUNT( * ) col2
----
0
-2

skipif mysql # not compatible
query II rowsort label-4273
SELECT ALL - 24 / - 93 AS col1, - COUNT ( * ) + - + COUNT ( * ) col2
----
0
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL + CASE - COUNT( * ) WHEN + ( - - 26 ) * 33 * 11 + + 57 THEN 16 ELSE - MAX( ALL - + 22 ) END * + COUNT( * ) * + + 49 * - - MIN( + - 20 )
----
-21560

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL + CASE - COUNT ( * ) WHEN + ( - - 26 ) * 33 * 11 + + 57 THEN 16 ELSE - MAX ( ALL - + 22 ) END * + COUNT ( * ) * + + 49 * - - MIN ( + - 20 )
----
-21560

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT ALL 93 DIV 80 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL 93 / 80 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4276
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ), - 9 col1
----
1
-9

skipif mysql # not compatible
query II rowsort label-4276
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ), - 9 col1
----
1
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT DISTINCT + 6 * - - MIN( ALL + 76 ) * + - 82 + 81 - - 74 AS col2
----
-37237

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT + 6 * - - MIN ( ALL + 76 ) * + - 82 + 81 - - 74 AS col2
----
-37237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4278
SELECT + ( + CAST( + - COUNT( - 75 ) AS SIGNED ) ) + - 41
----
-42

skipif mysql # not compatible
query I rowsort label-4278
SELECT + ( + CAST ( + - COUNT ( - 75 ) AS INTEGER ) ) + - 41
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT - 16 * + NULLIF ( - + 93, - COUNT( * ) )
----
1488

skipif mysql # not compatible
query I rowsort label-4279
SELECT - 16 * + NULLIF ( - + 93, - COUNT ( * ) )
----
1488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT ALL - 34 * CAST( + 13 AS SIGNED ) AS col1
----
-442

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - 34 * CAST ( + 13 AS INTEGER ) AS col1
----
-442

query II rowsort
SELECT - 27 + + 17 - - 75 + + 80, 34 * + 31 AS col2
----
145
1054

query I rowsort
SELECT - 80 * - 51 AS col1
----
4080

query I rowsort
SELECT + 86 * 64
----
5504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4284
SELECT SUM( 85 ) DIV COUNT( DISTINCT 56 ) + - - 33 + 30 + - COUNT( * ) * 44 * + - 8 AS col0
----
500

skipif mysql # not compatible
query I rowsort label-4284
SELECT SUM ( 85 ) / COUNT ( DISTINCT 56 ) + - - 33 + 30 + - COUNT ( * ) * 44 * + - 8 AS col0
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT - COUNT( DISTINCT - 19 ) + 70 + 8 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4285
SELECT - COUNT ( DISTINCT - 19 ) + 70 + 8 AS col0
----
77

query I rowsort
SELECT - 98 + + 60 * + 39 * + 83 + - + 90 + 75 AS col1
----
194107

query I rowsort
SELECT ALL + 18 * + ( + 27 )
----
486

query I rowsort
SELECT 82 * COALESCE ( - 98, + 88 * 49 )
----
-8036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4289
SELECT + 47 DIV - 71 + - NULLIF ( + 0, - 54 - - 13 + - COUNT( * ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4289
SELECT + 47 / - 71 + - NULLIF ( + 0, - 54 - - 13 + - COUNT ( * ) ) col1
----
0

query I rowsort
SELECT ALL 64 + - 39 AS col2
----
25

query I rowsort
SELECT 21 * 32 + 3 AS col0
----
675

query I rowsort
SELECT ALL + - 71 * - 29 * + 48 AS col2
----
98832

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT + 55 * 58 + + 64 + 21 * COALESCE ( - 53, + - COUNT( * ) ) AS col2
----
2141

skipif mysql # not compatible
query I rowsort label-4293
SELECT + 55 * 58 + + 64 + 21 * COALESCE ( - 53, + - COUNT ( * ) ) AS col2
----
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL - MIN( DISTINCT 13 ) + 56 * - - 13 AS col2
----
715

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - MIN ( DISTINCT 13 ) + 56 * - - 13 AS col2
----
715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4295
SELECT DISTINCT + 2 / + + CAST( NULL AS SIGNED ) * + 31 * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT + 2 / + + CAST ( NULL AS INTEGER ) * + 31 * + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT + CAST( COUNT( * ) AS SIGNED ) + - + 18 + + 83 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4296
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + - + 18 + + 83 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL - 86 + + 4 * - NULLIF ( + 92, MIN( ALL + - 8 ) ) + - 47 + + + 71 AS col2
----
-430

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL - 86 + + 4 * - NULLIF ( + 92, MIN ( ALL + - 8 ) ) + - 47 + + + 71 AS col2
----
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - 84 * + + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-4298
SELECT - 84 * + + COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT + 38 * + COUNT( + 65 ) * + 0 + + 33
----
33

skipif mysql # not compatible
query I rowsort label-4299
SELECT + 38 * + COUNT ( + 65 ) * + 0 + + 33
----
33

query I rowsort
SELECT 31 * 99 * - 57 * + 5 * 12
----
-10495980

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - 79 * + COUNT( * ) * - 93 + + SUM( DISTINCT 7 )
----
7354

skipif mysql # not compatible
query I rowsort label-4301
SELECT - 79 * + COUNT ( * ) * - 93 + + SUM ( DISTINCT 7 )
----
7354

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT + 73 + + ( COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-4302
SELECT + 73 + + ( COUNT ( * ) )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT DISTINCT COUNT( * ) - 58
----
-57

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT COUNT ( * ) - 58
----
-57

query I rowsort
SELECT 5 + + 84 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT COALESCE ( + 38, + - 26 * - + 21 * + + 25 * 72, + + MIN( + 22 ) ) * + 2
----
76

skipif mysql # not compatible
query I rowsort label-4305
SELECT COALESCE ( + 38, + - 26 * - + 21 * + + 25 * 72, + + MIN ( + 22 ) ) * + 2
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-4306
SELECT ALL 12 AS col0, 0 DIV + 36 + - 43 * 95
----
12
-4085

skipif mysql # not compatible
query II rowsort label-4306
SELECT ALL 12 AS col0, 0 / + 36 + - 43 * 95
----
12
-4085

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT 30 + - - COUNT( * ) + - 88 * + ( - 65 ) * + 19 + - + 13 + + - 67 AS col1
----
108631

skipif mysql # not compatible
query I rowsort label-4307
SELECT 30 + - - COUNT ( * ) + - 88 * + ( - 65 ) * + 19 + - + 13 + + - 67 AS col1
----
108631

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT 49 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT 49 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT DISTINCT + ( - - ( - + 7 ) ) DIV - 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT + ( - - ( - + 7 ) ) / - 50 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4310
SELECT ALL 77 AS col1, 63 DIV - - 8
----
77
7

skipif mysql # not compatible
query II rowsort label-4310
SELECT ALL 77 AS col1, 63 / - - 8
----
77
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT DISTINCT + 57 * + COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT + 57 * + COUNT ( * ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4312
SELECT DISTINCT + 48 + + - MIN( ALL 68 ), + 5 AS col1
----
-20
5

skipif mysql # not compatible
query II rowsort label-4312
SELECT DISTINCT + 48 + + - MIN ( ALL 68 ), + 5 AS col1
----
-20
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4313
SELECT DISTINCT ( - + MAX( + 52 ) ) DIV + - 10 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT ( - + MAX ( + 52 ) ) / + - 10 AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT 49 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT 49 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL + 31 + + - 40 - + - 75 * + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + 31 + + - 40 - + - 75 * + COUNT ( * ) AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT DISTINCT CAST( + - CAST( + + 95 AS SIGNED ) AS SIGNED ) * - 33 AS col1
----
3135

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT CAST ( + - CAST ( + + 95 AS INTEGER ) AS INTEGER ) * - 33 AS col1
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT ALL - COUNT( * ) + - 33 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - COUNT ( * ) + - 33 AS col1
----
-34

query I rowsort
SELECT 65 + 17 + - + 86
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT ( + COUNT( * ) ) * + 53 * + - 48 DIV + COALESCE ( COUNT( * ), + 61 + - + 50 + - 31, - 52 * + COUNT( * ) ) + - 20
----
-2564

skipif mysql # not compatible
query I rowsort label-4319
SELECT ( + COUNT ( * ) ) * + 53 * + - 48 / + COALESCE ( COUNT ( * ), + 61 + - + 50 + - 31, - 52 * + COUNT ( * ) ) + - 20
----
-2564

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL - 31 + 23 + + 84 * - COALESCE ( COUNT( * ), - MIN( 39 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL - 31 + 23 + + 84 * - COALESCE ( COUNT ( * ), - MIN ( 39 ) ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT COUNT( * ) * + - 27
----
-27

skipif mysql # not compatible
query I rowsort label-4321
SELECT COUNT ( * ) * + - 27
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT DISTINCT 97 + CAST( - 83 AS SIGNED ) + - 54 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT 97 + CAST ( - 83 AS INTEGER ) + - 54 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT ALL - - SUM( DISTINCT + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL - - SUM ( DISTINCT + 56 )
----
56

query I rowsort
SELECT ALL + 46 * NULLIF ( - - 11, - 20 )
----
506

query I rowsort
SELECT + - 28 * - - 43 * 75 + + 61
----
-90239

query I rowsort
SELECT - 81 * - 48 AS col1
----
3888

query I rowsort
SELECT + 21 * 51 AS col2
----
1071

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4328
SELECT + 77 col1, - 5 - 70 + + + 9 + ( - COUNT( ALL - 22 ) ) + 51 DIV - 3 * ( COUNT( * ) )
----
77
-84

skipif mysql # not compatible
query II rowsort label-4328
SELECT + 77 col1, - 5 - 70 + + + 9 + ( - COUNT ( ALL - 22 ) ) + 51 / - 3 * ( COUNT ( * ) )
----
77
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL - - COUNT( * ) - + 24 + - 22
----
-45

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - - COUNT ( * ) - + 24 + - 22
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT + 48 - + CASE + 95 WHEN COUNT( * ) THEN NULL WHEN + 27 + COALESCE ( + 25, 26 + + + COUNT( * ) + - + 73 ) - + 18 * - + 54 THEN NULL WHEN CASE 49 WHEN - COUNT( * ) THEN - 88 ELSE NULL END THEN - 87 * + 92 * + 91 * + + 77 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT + 48 - + CASE + 95 WHEN COUNT ( * ) THEN NULL WHEN + 27 + COALESCE ( + 25, 26 + + + COUNT ( * ) + - + 73 ) - + 18 * - + 54 THEN NULL WHEN CASE 49 WHEN - COUNT ( * ) THEN - 88 ELSE NULL END THEN - 87 * + 92 * + 91 * + + 77 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4331
SELECT DISTINCT - + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 2 * 13
----
26

query II rowsort
SELECT DISTINCT - + 5, - 94 * 32 AS col2
----
-5
-3008

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT - 94 * - + COUNT( * ) + - 23
----
71

skipif mysql # not compatible
query I rowsort label-4334
SELECT - 94 * - + COUNT ( * ) + - 23
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4335
SELECT ALL - CAST( NULL AS SIGNED ), 57 * 60 * 80 * 33 + - ( + COUNT( * ) ) AS col1
----
NULL
9028799

skipif mysql # not compatible
query II rowsort label-4335
SELECT ALL - CAST ( NULL AS INTEGER ), 57 * 60 * 80 * 33 + - ( + COUNT ( * ) ) AS col1
----
NULL
9028799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT DISTINCT - NULLIF ( + + 80, COALESCE ( + - 37, CAST( NULL AS SIGNED ) ) - - 93 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT - NULLIF ( + + 80, COALESCE ( + - 37, CAST ( NULL AS INTEGER ) ) - - 93 ) AS col2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT ALL 76 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL 76 / + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT COUNT( * ) * - 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4338
SELECT COUNT ( * ) * - 39 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL MIN( - 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL MIN ( - 70 ) AS col1
----
-70

query II rowsort
SELECT 32 AS col2, - 73 AS col2
----
32
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT - MAX( DISTINCT ( + 53 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-4341
SELECT - MAX ( DISTINCT ( + 53 ) )
----
-53

query I rowsort
SELECT 33 - - 30 AS col1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT 4 DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-4343
SELECT 4 / - 18
----
0

query I rowsort
SELECT 40 * 70
----
2800

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT ALL 40 DIV + 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL 40 / + 35 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT COUNT( * ) * - 75 * 84
----
-6300

skipif mysql # not compatible
query I rowsort label-4346
SELECT COUNT ( * ) * - 75 * 84
----
-6300

query I rowsort
SELECT ALL 92 + + 60 AS col2
----
152

onlyif mysql # aggregate syntax: 
query III rowsort label-4348
SELECT ALL 68 * - + NULLIF ( 56, + COALESCE ( - + COUNT( * ), + 98 ) ) col1, 11 AS col1, + + 67
----
-3808
11
67

skipif mysql # not compatible
query III rowsort label-4348
SELECT ALL 68 * - + NULLIF ( 56, + COALESCE ( - + COUNT ( * ), + 98 ) ) col1, 11 AS col1, + + 67
----
-3808
11
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4349
SELECT COALESCE ( 86, + - 36 DIV + - 86 * 88 * + + ( COUNT( - - 85 ) ) + - 96 * - NULLIF ( + NULLIF ( - CAST( NULL AS SIGNED ), + + NULLIF ( CAST( - + CAST( 98 AS DECIMAL ) AS SIGNED ), + - AVG ( DISTINCT + 66 ) ) DIV + COUNT( * ) + + 96 ), COUNT( * ) ), - ( + 3 ) + COUNT( * ) * NULLIF ( 27, + COUNT( * ) * + ( + 3 * + 84 ) ) ) * 38 AS col2
----
3268

skipif mysql # not compatible
query I rowsort label-4349
SELECT COALESCE ( 86, + - 36 / + - 86 * 88 * + + ( COUNT ( - - 85 ) ) + - 96 * - NULLIF ( + NULLIF ( - CAST ( NULL AS INTEGER ), + + NULLIF ( CAST ( - + CAST ( 98 AS REAL ) AS INTEGER ), + - AVG ( DISTINCT + 66 ) ) / + COUNT ( * ) + + 96 ), COUNT ( * ) ), - ( + 3 ) + COUNT ( * ) * NULLIF ( 27, + COUNT ( * ) * + ( + 3 * + 84 ) ) ) * 38 AS col2
----
3268

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT DISTINCT ( + - 46 ) * ( - COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT ( + - 46 ) * ( - COUNT ( * ) )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT + 68 - 44 * + CAST( NULL AS SIGNED ) * - + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT + 68 - 44 * + CAST ( NULL AS INTEGER ) * - + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT - CASE + 38 WHEN + 27 THEN NULL WHEN 78 * - 27 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT - CASE + 38 WHEN + 27 THEN NULL WHEN 78 * - 27 THEN - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + 38 + + 54 + - + 27
----
65

query I rowsort
SELECT + ( 19 ) * + - 45
----
-855

query I rowsort
SELECT + 14 + + 92 - + 65 + + 10 * ( 47 )
----
511

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4356
SELECT ALL 96, CAST( NULL AS SIGNED ) AS col1
----
96
NULL

skipif mysql # not compatible
query II rowsort label-4356
SELECT ALL 96, CAST ( NULL AS INTEGER ) AS col1
----
96
NULL

query II rowsort
SELECT - - 66 col2, 26
----
66
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4358
SELECT - 72 * + COUNT( * ) AS col0, 78 AS col2
----
-72
78

skipif mysql # not compatible
query II rowsort label-4358
SELECT - 72 * + COUNT ( * ) AS col0, 78 AS col2
----
-72
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4359
SELECT DISTINCT ( 13 ) DIV - MAX( 85 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT ( 13 ) / - MAX ( 85 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL - 35 * + - MIN( ALL - - 47 ) AS col0
----
1645

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL - 35 * + - MIN ( ALL - - 47 ) AS col0
----
1645

query I rowsort
SELECT + NULLIF ( - 90, 68 ) + + 76
----
-14

query I rowsort
SELECT + + 13 * - 8
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4363
SELECT - COUNT( + + 19 ) * + 94 * - - 57 + + - 9 + - + 28 / - CASE + 50 WHEN + 62 THEN - 74 - + COALESCE ( + 18, - 66 * - 73 + + + 79 / - - CASE 81 WHEN - 23 + - + 14 THEN - - AVG ( - CAST( NULL AS SIGNED ) ) ELSE NULL END * - 47 + 79 ) WHEN + 84 + + 68 THEN + ( MAX( ALL + 65 ) ) * 2 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT - COUNT ( + + 19 ) * + 94 * - - 57 + + - 9 + - + 28 / - CASE + 50 WHEN + 62 THEN - 74 - + COALESCE ( + 18, - 66 * - 73 + + + 79 / - - CASE 81 WHEN - 23 + - + 14 THEN - - AVG ( - CAST ( NULL AS INTEGER ) ) ELSE NULL END * - 47 + 79 ) WHEN + 84 + + 68 THEN + ( MAX ( ALL + 65 ) ) * 2 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 26 * - 9 * + + 77 AS col0
----
-18018

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT + + ( MIN( - NULLIF ( + - 49, 84 ) ) ) + - 93 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4365
SELECT + + ( MIN ( - NULLIF ( + - 49, 84 ) ) ) + - 93 AS col1
----
-44

query I rowsort
SELECT + - 53 * - - 50
----
-2650

query I rowsort
SELECT + 18 * + 87 * - + 64 - + + 63 + - NULLIF ( - ( 9 ), + 25 / 63 * - 86 ) * + + 45 * + 91 AS col2
----
-63432

query II rowsort
SELECT + 66 col2, 95 AS col0
----
66
95

query I rowsort
SELECT - + 14 + - 8 AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4370
SELECT COUNT( * ) * + + 74 * - MAX( 94 ) + + ( + 3 ) AS col2, ( - CAST( NULL AS SIGNED ) )
----
-6953
NULL

skipif mysql # not compatible
query II rowsort label-4370
SELECT COUNT ( * ) * + + 74 * - MAX ( 94 ) + + ( + 3 ) AS col2, ( - CAST ( NULL AS INTEGER ) )
----
-6953
NULL

query II rowsort
SELECT ALL + - 71 col2, 66 * 72 AS col2
----
-71
4752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4372
SELECT - + COUNT( * ) * - COUNT( DISTINCT + 9 ) * + + 83 * + - 0 DIV + - 50 * + NULLIF ( - 98, COUNT( * ) ) * + COUNT( * ) + - - 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4372
SELECT - + COUNT ( * ) * - COUNT ( DISTINCT + 9 ) * + + 83 * + - 0 / + - 50 * + NULLIF ( - 98, COUNT ( * ) ) * + COUNT ( * ) + - - 78 AS col0
----
78

query I rowsort
SELECT - 59 + + 80
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4374
SELECT ALL + 71 AS col1, - COUNT( * ) AS col1
----
71
-1

skipif mysql # not compatible
query II rowsort label-4374
SELECT ALL + 71 AS col1, - COUNT ( * ) AS col1
----
71
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4375
SELECT + MIN( + - 84 ) col1, ( 58 ) AS col2
----
-84
58

skipif mysql # not compatible
query II rowsort label-4375
SELECT + MIN ( + - 84 ) col1, ( 58 ) AS col2
----
-84
58

onlyif mysql # DIV for integer division: 
query II rowsort label-4376
SELECT - 93 + + - 97, + 12 DIV - 90 AS col1
----
-190
0

skipif mysql # not compatible
query II rowsort label-4376
SELECT - 93 + + - 97, + 12 / - 90 AS col1
----
-190
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4377
SELECT ALL - CAST( 66 AS SIGNED ) * - + CASE - 9 WHEN - NULLIF ( + 66, - 12 + 7 - - 60 ) THEN + 64 * - CAST( NULL AS SIGNED ) / 98 END AS col2, 66
----
NULL
66

skipif mysql # not compatible
query II rowsort label-4377
SELECT ALL - CAST ( 66 AS INTEGER ) * - + CASE - 9 WHEN - NULLIF ( + 66, - 12 + 7 - - 60 ) THEN + 64 * - CAST ( NULL AS INTEGER ) / 98 END AS col2, 66
----
NULL
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT - 98 + - SUM( ALL - 26 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4378
SELECT - 98 + - SUM ( ALL - 26 ) AS col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT - 74 + - 43 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT - 74 + - 43 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 86 + + - 72 AS col1
----
14

query I rowsort
SELECT - 21 - 67
----
-88

query I rowsort
SELECT + 44 + + - 82
----
-38

query I rowsort
SELECT DISTINCT - 31 + 61 + + - 53 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT + ( CASE - 85 WHEN + - CAST( + 96 AS SIGNED ) THEN - 38 ELSE 87 END ) + - CASE - 35 WHEN - COALESCE ( - - 16, 51 + - 91 - + - 42 * + 83 * NULLIF ( - - 28, 98 ) + - COUNT( * ) * - 57 + + 36 + - 92 - 84, MAX( ALL - 4 ) + 85 ) + - 82 THEN NULL ELSE ( CASE ( MIN( DISTINCT + 18 ) ) WHEN COUNT( * ) THEN + 95 END ) * SUM( DISTINCT 61 ) END * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT + ( CASE - 85 WHEN + - CAST ( + 96 AS INTEGER ) THEN - 38 ELSE 87 END ) + - CASE - 35 WHEN - COALESCE ( - - 16, 51 + - 91 - + - 42 * + 83 * NULLIF ( - - 28, 98 ) + - COUNT ( * ) * - 57 + + 36 + - 92 - 84, MAX ( ALL - 4 ) + 85 ) + - 82 THEN NULL ELSE ( CASE ( MIN ( DISTINCT + 18 ) ) WHEN COUNT ( * ) THEN + 95 END ) * SUM ( DISTINCT 61 ) END * 90
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4385
SELECT ALL 85 * COALESCE ( 37, + COUNT( * ) * + - 78 DIV - 99, - + 16 + 62 ) AS col0
----
3145

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL 85 * COALESCE ( 37, + COUNT ( * ) * + - 78 / - 99, - + 16 + 62 ) AS col0
----
3145

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT + MIN( + + NULLIF ( + 47, - + 40 ) ) + + ( - 30 )
----
17

skipif mysql # not compatible
query I rowsort label-4386
SELECT + MIN ( + + NULLIF ( + 47, - + 40 ) ) + + ( - 30 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4387
SELECT - 8 DIV - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4387
SELECT - 8 / - COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - MIN( ALL - COALESCE ( - 17, + 69 ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4388
SELECT - MIN ( ALL - COALESCE ( - 17, + 69 ) ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL COUNT( * ) * - 27 * - + 79 AS col0
----
2133

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL COUNT ( * ) * - 27 * - + 79 AS col0
----
2133

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT 49 * + 65 * + - 30 - + COUNT( DISTINCT - 29 ) AS col0
----
-95551

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT 49 * + 65 * + - 30 - + COUNT ( DISTINCT - 29 ) AS col0
----
-95551

query I rowsort
SELECT + + 68 * - 23 * + 66 AS col2
----
-103224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT + CAST( + 79 AS SIGNED ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-4392
SELECT + CAST ( + 79 AS INTEGER ) AS col0
----
79

query I rowsort
SELECT + 3 * + 29 AS col0
----
87

query I rowsort
SELECT ALL 60 * + - 31
----
-1860

query I rowsort
SELECT + - 41 * 88 + - 56 + - - 91 AS col2
----
-3573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL + ( - CAST( 89 AS SIGNED ) )
----
-89

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + ( - CAST ( 89 AS INTEGER ) )
----
-89

query I rowsort
SELECT + - COALESCE ( + 58, - 99 ) * - 0 AS col1
----
0

query I rowsort
SELECT ( + 11 ) col2
----
11

query I rowsort
SELECT ALL ( - 24 ) * 66
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT - COUNT( * ) + + 61 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4400
SELECT - COUNT ( * ) + + 61 AS col2
----
60

query I rowsort
SELECT - 93 * - - 60 * + + 45 * 65 * + 41 AS col2
----
-669181500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT + CAST( + 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-4402
SELECT + CAST ( + 82 AS INTEGER )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4403
SELECT DISTINCT - COALESCE ( - 9, + - 21 * + 19 DIV - 97, 75 ) * + - 87 + - 15 AS col1
----
-798

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - COALESCE ( - 9, + - 21 * + 19 / - 97, 75 ) * + - 87 + - 15 AS col1
----
-798

query I rowsort
SELECT - 99 * 31 * - + 53
----
162657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT 17 * ( + + CAST( NULL AS SIGNED ) ) + - 91 * + - 11 / + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT 17 * ( + + CAST ( NULL AS INTEGER ) ) + - 91 * + - 11 / + 7 AS col0
----
NULL

query II rowsort
SELECT ALL + 17 + 72 * + 82 AS col2, + 70
----
5921
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT ( - 2 ) + - 11 + + + 52 DIV + - 95
----
-13

skipif mysql # not compatible
query I rowsort label-4407
SELECT ( - 2 ) + - 11 + + + 52 / + - 95
----
-13

query I rowsort
SELECT 32 + - - 76 AS col2
----
108

query I rowsort
SELECT ALL - 44 * 50
----
-2200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4410
SELECT 24, - CAST( - - 54 AS SIGNED ) * - + 58 AS col1
----
24
3132

skipif mysql # not compatible
query II rowsort label-4410
SELECT 24, - CAST ( - - 54 AS INTEGER ) * - + 58 AS col1
----
24
3132

query I rowsort
SELECT DISTINCT - + 62 * - 87
----
5394

query I rowsort
SELECT ALL ( - NULLIF ( - + 63, - - 78 ) ) col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT DISTINCT COUNT( * ), 79 * - 7 AS col1
----
1
-553

skipif mysql # not compatible
query II rowsort label-4413
SELECT DISTINCT COUNT ( * ), 79 * - 7 AS col1
----
1
-553

query I rowsort
SELECT 95 * 72
----
6840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT - CAST( - 39 AS SIGNED ) * + 36 * + 13 AS col1
----
18252

skipif mysql # not compatible
query I rowsort label-4415
SELECT - CAST ( - 39 AS INTEGER ) * + 36 * + 13 AS col1
----
18252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4416
SELECT DISTINCT + COUNT( * ) DIV + 12 + + 35 + + 7 + + - 73 * + 91
----
-6601

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT + COUNT ( * ) / + 12 + + 35 + + 7 + + - 73 * + 91
----
-6601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4417
SELECT DISTINCT - COALESCE ( + + NULLIF ( - 20, + - 28 * + 58 * + + 15 + - + 60 + - 40 ), ( + 21 ) * - 60 DIV - COUNT( * ) + - - 61 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - COALESCE ( + + NULLIF ( - 20, + - 28 * + 58 * + + 15 + - + 60 + - 40 ), ( + 21 ) * - 60 / - COUNT ( * ) + - - 61 ) AS col1
----
20

query II rowsort
SELECT DISTINCT - - 93 AS col2, 57
----
93
57

query I rowsort
SELECT ALL + 32 + 96 + 53 AS col1
----
181

query I rowsort
SELECT DISTINCT + 73 + + 86 * + 7 AS col1
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT 0 * + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4421
SELECT 0 * + + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4422
SELECT - COUNT( * ) DIV - - ( + 64 ) + - 51 + NULLIF ( COUNT( * ), + + 72 DIV + 40 + - + 67 ) col2
----
-50

skipif mysql # not compatible
query I rowsort label-4422
SELECT - COUNT ( * ) / - - ( + 64 ) + - 51 + NULLIF ( COUNT ( * ), + + 72 / + 40 + - + 67 ) col2
----
-50

query II rowsort
SELECT DISTINCT - 3, + 79 AS col2
----
-3
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4424
SELECT CAST( NULL AS SIGNED ), + 36 AS col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-4424
SELECT CAST ( NULL AS INTEGER ), + 36 AS col2
----
NULL
36

query I rowsort
SELECT 90 + 53 * + 18 AS col2
----
1044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 15 col0
----
NULL

query I rowsort
SELECT DISTINCT 11 + - ( 46 )
----
-35

query I rowsort
SELECT ALL + 3 * 88 col2
----
264

query I rowsort
SELECT DISTINCT ( 96 ) + + 90
----
186

query I rowsort
SELECT 40 * 92 + 84
----
3764

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT + 24 * + 38 * - COUNT( * ) + + COUNT( * ) * - 81 + - 30
----
-1023

skipif mysql # not compatible
query I rowsort label-4431
SELECT + 24 * + 38 * - COUNT ( * ) + + COUNT ( * ) * - 81 + - 30
----
-1023

query I rowsort
SELECT 55 + - - 35 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT DISTINCT COUNT( * ) - + 36
----
-35

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT COUNT ( * ) - + 36
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - 9 * + COALESCE ( - SUM( + 37 ), COUNT( DISTINCT + 73 ) ) AS col2
----
333

skipif mysql # not compatible
query I rowsort label-4434
SELECT - 9 * + COALESCE ( - SUM ( + 37 ), COUNT ( DISTINCT + 73 ) ) AS col2
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT 18 + + - COUNT( ALL 52 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4435
SELECT 18 + + - COUNT ( ALL 52 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT DISTINCT + + COUNT( * ) * 59
----
59

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT + + COUNT ( * ) * 59
----
59

query I rowsort
SELECT + 76 * - 65 * - + 74
----
365560

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT COUNT( * ) + - 4 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4438
SELECT COUNT ( * ) + - 4 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL + + 85 * + 45 * - CASE + - MIN( - 48 ) WHEN + - NULLIF ( + 49, 14 + 44 ) * - ( + 53 ) THEN + ( + + 26 ) + + + 20 WHEN - 15 THEN + 33 * + - 76 WHEN - 32 THEN - COUNT( * ) + 20 + NULLIF ( - 36, + - 94 ) END * + ( 69 ) * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL + + 85 * + 45 * - CASE + - MIN ( - 48 ) WHEN + - NULLIF ( + 49, 14 + 44 ) * - ( + 53 ) THEN + ( + + 26 ) + + + 20 WHEN - 15 THEN + 33 * + - 76 WHEN - 32 THEN - COUNT ( * ) + 20 + NULLIF ( - 36, + - 94 ) END * + ( 69 ) * + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT + COUNT( DISTINCT - 36 )
----
1

skipif mysql # not compatible
query I rowsort label-4440
SELECT + COUNT ( DISTINCT - 36 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4441
SELECT ALL CASE - 86 WHEN + 26 * + 68 + + 90 * - + COUNT( * ) THEN - 20 WHEN + 32 THEN - - COUNT( - 50 ) * + + 41 + - ( + ( ( - - 38 ) ) ) + MAX( + + 50 ) ELSE NULL END, - NULLIF ( + 27, 27 + 10 + - + 54 ) AS col1
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-4441
SELECT ALL CASE - 86 WHEN + 26 * + 68 + + 90 * - + COUNT ( * ) THEN - 20 WHEN + 32 THEN - - COUNT ( - 50 ) * + + 41 + - ( + ( ( - - 38 ) ) ) + MAX ( + + 50 ) ELSE NULL END, - NULLIF ( + 27, 27 + 10 + - + 54 ) AS col1
----
NULL
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT 89 * - NULLIF ( + 5, + - COUNT( * ) + COALESCE ( + 94, - 77 * - 11, - - 43 ) - NULLIF ( - COUNT( + 75 ), - - COUNT( * ) ) * - + 89 ) AS col0
----
-445

skipif mysql # not compatible
query I rowsort label-4442
SELECT 89 * - NULLIF ( + 5, + - COUNT ( * ) + COALESCE ( + 94, - 77 * - 11, - - 43 ) - NULLIF ( - COUNT ( + 75 ), - - COUNT ( * ) ) * - + 89 ) AS col0
----
-445

query I rowsort
SELECT DISTINCT - 13 + 11
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT + + 43 + - MAX( - 72 ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT + + 43 + - MAX ( - 72 ) AS col0
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4445
SELECT + 48 * - COUNT( * ) DIV NULLIF ( + + ( - COALESCE ( - - COUNT( * ), + - COALESCE ( - 1, COUNT( * ) ) + - ( - + 16 ), - CAST( NULL AS SIGNED ) ) ), 55 * + 6 + - 99 + CASE - 33 WHEN 75 THEN - - CAST( NULL AS SIGNED ) END + + 49 * - - COUNT( * ) * 73 DIV ( + 10 ) )
----
48

skipif mysql # not compatible
query I rowsort label-4445
SELECT + 48 * - COUNT ( * ) / NULLIF ( + + ( - COALESCE ( - - COUNT ( * ), + - COALESCE ( - 1, COUNT ( * ) ) + - ( - + 16 ), - CAST ( NULL AS INTEGER ) ) ), 55 * + 6 + - 99 + CASE - 33 WHEN 75 THEN - - CAST ( NULL AS INTEGER ) END + + 49 * - - COUNT ( * ) * 73 / ( + 10 ) )
----
48

query I rowsort
SELECT - 92 * 50
----
-4600

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT + - SUM( - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-4447
SELECT + - SUM ( - 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT + MIN( 29 )
----
29

skipif mysql # not compatible
query I rowsort label-4448
SELECT + MIN ( 29 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT + 75 DIV + 22
----
3

skipif mysql # not compatible
query I rowsort label-4449
SELECT + 75 / + 22
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL + 53 * + 0 + + 38 + + - ( + COUNT( * ) ) + - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL + 53 * + 0 + + 38 + + - ( + COUNT ( * ) ) + - COUNT ( * ) AS col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4451
SELECT ALL + NULLIF ( 19, + + COALESCE ( COUNT( * ), COUNT( * ) ) * 89 ) DIV - 9 - + 10 + - 30 col0
----
-42

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL + NULLIF ( 19, + + COALESCE ( COUNT ( * ), COUNT ( * ) ) * 89 ) / - 9 - + 10 + - 30 col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT + MIN( DISTINCT 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + MIN ( DISTINCT 13 ) AS col2
----
13

query I rowsort
SELECT - 58 * 12
----
-696

query I rowsort
SELECT ALL 70 * 90 AS col2
----
6300

query I rowsort
SELECT COALESCE ( - 42, 29 )
----
-42

query I rowsort
SELECT ALL - 43 * 76 + 42 - - - 8 + + - ( + 49 )
----
-3283

query I rowsort
SELECT - 22 + + 30
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4458
SELECT + COUNT( * ) * - - 91 * 62 AS col1, - 50 AS col2
----
5642
-50

skipif mysql # not compatible
query II rowsort label-4458
SELECT + COUNT ( * ) * - - 91 * 62 AS col1, - 50 AS col2
----
5642
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT + 68 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT + 68 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4460
SELECT DISTINCT + CAST( - COUNT( + - 69 ) AS SIGNED ) AS col1, + 44 * 86 AS col1
----
-1
3784

skipif mysql # not compatible
query II rowsort label-4460
SELECT DISTINCT + CAST ( - COUNT ( + - 69 ) AS INTEGER ) AS col1, + 44 * 86 AS col1
----
-1
3784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4461
SELECT + COALESCE ( + 99, COALESCE ( 15, + 65 ) - + 64 DIV - 31 + - + 49 * + 27, - 95 ) + 5 * - COUNT( * ) + - 87 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4461
SELECT + COALESCE ( + 99, COALESCE ( 15, + 65 ) - + 64 / - 31 + - + 49 * + 27, - 95 ) + 5 * - COUNT ( * ) + - 87 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT + COALESCE ( + ( - + COALESCE ( + 93, ( + 94 ), + CASE + ( + MIN( 75 ) ) WHEN - 53 THEN NULL ELSE - - COUNT( * ) - - + 27 * + MIN( ALL - - 53 ) + - - COALESCE ( 22, 29, ( + 19 ) * - - ( + 21 ) + + 44 + - 67 * COUNT( * ) ) + - 52 END ) ), 84 * 59 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4462
SELECT + COALESCE ( + ( - + COALESCE ( + 93, ( + 94 ), + CASE + ( + MIN ( 75 ) ) WHEN - 53 THEN NULL ELSE - - COUNT ( * ) - - + 27 * + MIN ( ALL - - 53 ) + - - COALESCE ( 22, 29, ( + 19 ) * - - ( + 21 ) + + 44 + - 67 * COUNT ( * ) ) + - 52 END ) ), 84 * 59 ) AS col0
----
-93

query I rowsort
SELECT + - 80 * - 34
----
2720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4464
SELECT ALL CASE + - 21 WHEN + + SUM( 58 ) THEN NULL WHEN 35 * - 20 + + 26 + - 11 * + - COUNT( * ) THEN NULL WHEN - + 59 THEN + 35 ELSE + - 44 END * - - 87 DIV + ( - - COUNT( * ) ) col0, - CAST( - CAST( AVG ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS SIGNED ) - - - ( + - 77 )
----
-3828
NULL

skipif mysql # not compatible
query II rowsort label-4464
SELECT ALL CASE + - 21 WHEN + + SUM ( 58 ) THEN NULL WHEN 35 * - 20 + + 26 + - 11 * + - COUNT ( * ) THEN NULL WHEN - + 59 THEN + 35 ELSE + - 44 END * - - 87 / + ( - - COUNT ( * ) ) col0, - CAST ( - CAST ( AVG ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS INTEGER ) - - - ( + - 77 )
----
-3828
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT + 69 - + - COUNT( ALL - 29 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4465
SELECT + 69 - + - COUNT ( ALL - 29 ) AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4466
SELECT + COALESCE ( MIN( ALL - CAST( NULL AS SIGNED ) ), COUNT( * ) + - - ( 96 ) + - MAX( - 96 ), - + 68 + + 51 - + - 26 ) AS col2
----
193

skipif mysql # not compatible
query I rowsort label-4466
SELECT + COALESCE ( MIN ( ALL - CAST ( NULL AS INTEGER ) ), COUNT ( * ) + - - ( 96 ) + - MAX ( - 96 ), - + 68 + + 51 - + - 26 ) AS col2
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL 43 * + SUM( DISTINCT + - 30 ) AS col0
----
-1290

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL 43 * + SUM ( DISTINCT + - 30 ) AS col0
----
-1290

query I rowsort
SELECT DISTINCT + 98 + + ( + 99 )
----
197

query I rowsort
SELECT ALL 66 + - 62 * 25 * - 70
----
108566

query I rowsort
SELECT DISTINCT 70 + - - 64
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4471
SELECT + - CASE + - 94 WHEN 91 * - 23 THEN - 25 * + - 66 + - 24 + + 49 WHEN - COUNT( * ) + 97 + COUNT( CAST( NULL AS SIGNED ) ) THEN NULL END + 75 + - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT + - CASE + - 94 WHEN 91 * - 23 THEN - 25 * + - 66 + - 24 + + 49 WHEN - COUNT ( * ) + 97 + COUNT ( CAST ( NULL AS INTEGER ) ) THEN NULL END + 75 + - 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4472
SELECT ALL 41 AS col2, 60 + + - 25 + COUNT( * )
----
41
36

skipif mysql # not compatible
query II rowsort label-4472
SELECT ALL 41 AS col2, 60 + + - 25 + COUNT ( * )
----
41
36

query I rowsort
SELECT + - ( 31 ) + - 31 + - 21
----
-83

query I rowsort
SELECT ALL + 24 + + 19
----
43

query I rowsort
SELECT + 85 + + 94 AS col2
----
179

query I rowsort
SELECT - + COALESCE ( - 53, + + 36 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4477
SELECT - CASE - 76 WHEN + - ( + 52 ) THEN ( + 98 ) END + - CAST( + CASE - 67 WHEN + - 14 THEN + - 98 + COUNT( * ) WHEN + 83 THEN + 79 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT - CASE - 76 WHEN + - ( + 52 ) THEN ( + 98 ) END + - CAST ( + CASE - 67 WHEN + - 14 THEN + - 98 + COUNT ( * ) WHEN + 83 THEN + 79 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4478
SELECT ALL - COUNT( DISTINCT + - 11 ) DIV - 78 * + 22 + 27 + + COUNT( * ) DIV + - 71 * - + 2 - - + 25 AS col2, - 59 AS col2
----
52
-59

skipif mysql # not compatible
query II rowsort label-4478
SELECT ALL - COUNT ( DISTINCT + - 11 ) / - 78 * + 22 + 27 + + COUNT ( * ) / + - 71 * - + 2 - - + 25 AS col2, - 59 AS col2
----
52
-59

query I rowsort
SELECT 58 * 11 + - 3
----
635

query I rowsort
SELECT 49 * + 58 + + - 13
----
2829

query I rowsort
SELECT ( - - 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4482
SELECT + 79 DIV 44 + + COUNT( * ) + 60 AS col2, 94
----
62
94

skipif mysql # not compatible
query II rowsort label-4482
SELECT + 79 / 44 + + COUNT ( * ) + 60 AS col2, 94
----
62
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT + SUM( 27 )
----
27

skipif mysql # not compatible
query I rowsort label-4483
SELECT + SUM ( 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT DISTINCT + NULLIF ( + COUNT( * ), 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT + NULLIF ( + COUNT ( * ), 11 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4485
SELECT - 92 DIV 85 AS col0, - 59
----
-1
-59

skipif mysql # not compatible
query II rowsort label-4485
SELECT - 92 / 85 AS col0, - 59
----
-1
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4486
SELECT + 98 * + 40 * + CAST( - MAX( + 83 ) AS SIGNED ) AS col0
----
-325360

skipif mysql # not compatible
query I rowsort label-4486
SELECT + 98 * + 40 * + CAST ( - MAX ( + 83 ) AS INTEGER ) AS col0
----
-325360

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL + MIN( DISTINCT + 27 ) col0
----
27

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL + MIN ( DISTINCT + 27 ) col0
----
27

query I rowsort
SELECT DISTINCT + COALESCE ( + 49, - 53 * + - 19 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT COUNT( * ) * - NULLIF ( + - 74, + + 80 / + COUNT( * ) ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT COUNT ( * ) * - NULLIF ( + - 74, + + 80 / + COUNT ( * ) ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT - ( - COUNT( * ) ) * + + 92 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4490
SELECT - ( - COUNT ( * ) ) * + + 92 AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4491
SELECT ALL + COUNT( * ), 51 AS col2
----
1
51

skipif mysql # not compatible
query II rowsort label-4491
SELECT ALL + COUNT ( * ), 51 AS col2
----
1
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4492
SELECT DISTINCT + 96 * + COUNT( * ), - 56 col0
----
96
-56

skipif mysql # not compatible
query II rowsort label-4492
SELECT DISTINCT + 96 * + COUNT ( * ), - 56 col0
----
96
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT COALESCE ( - 20, - MAX( ALL + 22 ) + + - 0, - 19 + - + CASE + 46 WHEN - 87 THEN + COUNT( * ) WHEN - COUNT( * ) THEN - MIN( DISTINCT - - 46 ) ELSE - + 13 + 67 END + + 46 + + 27 + - 48 - - 85 - - - 26 )
----
-20

skipif mysql # not compatible
query I rowsort label-4493
SELECT COALESCE ( - 20, - MAX ( ALL + 22 ) + + - 0, - 19 + - + CASE + 46 WHEN - 87 THEN + COUNT ( * ) WHEN - COUNT ( * ) THEN - MIN ( DISTINCT - - 46 ) ELSE - + 13 + 67 END + + 46 + + 27 + - 48 - - 85 - - - 26 )
----
-20

query I rowsort
SELECT + ( + + 81 )
----
81

query I rowsort
SELECT - ( 3 ) * + - 1 + + 38 * + 19 AS col1
----
725

query I rowsort
SELECT + 8 * 25 AS col1
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT ALL 93 * - 23 + - MIN( DISTINCT + 6 )
----
-2145

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL 93 * - 23 + - MIN ( DISTINCT + 6 )
----
-2145

onlyif mysql # aggregate syntax: 
query II rowsort label-4498
SELECT + 52, - NULLIF ( - 85, - COUNT( * ) * 80 ) AS col2
----
52
85

skipif mysql # not compatible
query II rowsort label-4498
SELECT + 52, - NULLIF ( - 85, - COUNT ( * ) * 80 ) AS col2
----
52
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4499
SELECT COALESCE ( + 79, + - 35, - ( + 81 ) DIV + 37 DIV + - 50 DIV + + CASE 90 WHEN - COUNT( * ) THEN + CAST( + 25 AS SIGNED ) ELSE NULL END * - COUNT( * ) ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4499
SELECT COALESCE ( + 79, + - 35, - ( + 81 ) / + 37 / + - 50 / + + CASE 90 WHEN - COUNT ( * ) THEN + CAST ( + 25 AS INTEGER ) ELSE NULL END * - COUNT ( * ) ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT DISTINCT - 96 * + COUNT( * ) + 67 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT - 96 * + COUNT ( * ) + 67 AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4501
SELECT + - CASE - + SUM( + 76 ) WHEN 97 + - - 10 - - 8 * 92 + + 6 * - 75 * + + 41 * 77 THEN - - 24 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - 49 THEN 78 WHEN - 3 * - 62 * - 27 + + 35 + - - ( - + 70 ) * - 50 THEN + COUNT( * ) * 86 * - ( 93 ) - 73 END + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT + - CASE - + SUM ( + 76 ) WHEN 97 + - - 10 - - 8 * 92 + + 6 * - 75 * + + 41 * 77 THEN - - 24 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - 49 THEN 78 WHEN - 3 * - 62 * - 27 + + 35 + - - ( - + 70 ) * - 50 THEN + COUNT ( * ) * 86 * - ( 93 ) - 73 END + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4502
SELECT ALL + 88 * + 34 + + COUNT( * ) + + 46 AS col0, 2 * + - MIN( DISTINCT - 69 ) - + + 46
----
3039
92

skipif mysql # not compatible
query II rowsort label-4502
SELECT ALL + 88 * + 34 + + COUNT ( * ) + + 46 AS col0, 2 * + - MIN ( DISTINCT - 69 ) - + + 46
----
3039
92

query II rowsort
SELECT DISTINCT - 1 col2, - 71 col0
----
-1
-71

query I rowsort
SELECT - + 13 * 9 - - 58 + 71 AS col0
----
12

query II rowsort
SELECT + 3 + + 94 col0, 46 AS col2
----
97
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT ALL CAST( - + 62 AS SIGNED ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL CAST ( - + 62 AS INTEGER ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT - NULLIF ( - SUM( DISTINCT - - 82 ), + 30 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4507
SELECT - NULLIF ( - SUM ( DISTINCT - - 82 ), + 30 ) AS col2
----
82

query I rowsort
SELECT + 16 + 54 col1
----
70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4509
SELECT CAST( NULL AS SIGNED ) AS col2, - 0 + + 67 DIV - 8 + NULLIF ( + + 74, 50 ) * + - 5 * 86 + + 20
----
NULL
-31808

skipif mysql # not compatible
query II rowsort label-4509
SELECT CAST ( NULL AS INTEGER ) AS col2, - 0 + + 67 / - 8 + NULLIF ( + + 74, 50 ) * + - 5 * 86 + + 20
----
NULL
-31808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4510
SELECT + CAST( - 1 AS SIGNED ) * + - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4510
SELECT + CAST ( - 1 AS INTEGER ) * + - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4511
SELECT 7, ( COUNT( 0 ) ) + ( + 61 ) + - 10 AS col2
----
7
52

skipif mysql # not compatible
query II rowsort label-4511
SELECT 7, ( COUNT ( 0 ) ) + ( + 61 ) + - 10 AS col2
----
7
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT DISTINCT - 25 + 15 * - COALESCE ( - 50, + CASE 59 WHEN + ( + 21 ) THEN 4 WHEN 4 - + SUM( + + 6 ) + + MAX( ALL + NULLIF ( - - 37, + 98 * - - 15 ) ) THEN NULL WHEN - 30 THEN NULL END - - 48 * - 36, + - 22 ) AS col2
----
725

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT - 25 + 15 * - COALESCE ( - 50, + CASE 59 WHEN + ( + 21 ) THEN 4 WHEN 4 - + SUM ( + + 6 ) + + MAX ( ALL + NULLIF ( - - 37, + 98 * - - 15 ) ) THEN NULL WHEN - 30 THEN NULL END - - 48 * - 36, + - 22 ) AS col2
----
725

onlyif mysql # DIV for integer division: 
query I rowsort label-4513
SELECT ALL 27 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL 27 / - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL - 92 - - ( - COUNT( * ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - 92 - - ( - COUNT ( * ) ) AS col0
----
-93

query I rowsort
SELECT - NULLIF ( + 43, - 51 )
----
-43

query I rowsort
SELECT ALL + - 38 - COALESCE ( - - 61, 54 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT DISTINCT - 99 * + + MAX( ALL - 84 ) AS col2
----
8316

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT - 99 * + + MAX ( ALL - 84 ) AS col2
----
8316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4518
SELECT ALL - 81 * - - CAST( NULL AS SIGNED ) * CASE + + 37 WHEN + 72 * 24 * + ( CAST( - - CAST( - COUNT( * ) AS DECIMAL ) AS DECIMAL ) ) * 18 * + - 17 / 84 THEN + 12 / - - COUNT( * ) + 82 * + 95 * COUNT( * ) WHEN MIN( ALL 95 ) THEN 49 + - 9 + + COALESCE ( - - ( 42 ), + 31 / + + 55 + CAST( + 98 + - 55 AS SIGNED ) ) * CASE WHEN NOT + ( 52 ) / COUNT( * ) BETWEEN 9 + + 53 AND + 43 THEN NULL WHEN + 58 * + 41 IS NOT NULL THEN NULL ELSE 11 END ELSE + 61 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - 81 * - - CAST ( NULL AS INTEGER ) * CASE + + 37 WHEN + 72 * 24 * + ( CAST ( - - CAST ( - COUNT ( * ) AS REAL ) AS REAL ) ) * 18 * + - 17 / 84 THEN + 12 / - - COUNT ( * ) + 82 * + 95 * COUNT ( * ) WHEN MIN ( ALL 95 ) THEN 49 + - 9 + + COALESCE ( - - ( 42 ), + 31 / + + 55 + CAST ( + 98 + - 55 AS INTEGER ) ) * CASE WHEN NOT + ( 52 ) / COUNT ( * ) BETWEEN 9 + + 53 AND + 43 THEN NULL WHEN + 58 * + 41 IS NOT NULL THEN NULL ELSE 11 END ELSE + 61 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4519
SELECT ALL - NULLIF ( COUNT( * ), + + CAST( - + ( - 38 ) AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL - NULLIF ( COUNT ( * ), + + CAST ( - + ( - 38 ) AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 9 * - 11 col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT 77 * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4521
SELECT 77 * COUNT ( * )
----
77

query I rowsort
SELECT 54 * - 56 AS col0
----
-3024

query II rowsort
SELECT + 86 * - + NULLIF ( - - 89, - - 78 ) + 37, 30 AS col0
----
-7617
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT 93 - + - COUNT( * ) + CASE + 88 WHEN + 23 THEN + + 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT 93 - + - COUNT ( * ) + CASE + 88 WHEN + 23 THEN + + 34 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ( + ( + MIN( DISTINCT 73 ) ) ) * SUM( 48 ) + + 20 + 17 + 0 + - 67 * + 75 * + 35 * - + CASE 11 WHEN + + 6 THEN - 69 ELSE - 87 END
----
-15297584

skipif mysql # not compatible
query I rowsort label-4525
SELECT ( + ( + MIN ( DISTINCT 73 ) ) ) * SUM ( 48 ) + + 20 + 17 + 0 + - 67 * + 75 * + 35 * - + CASE 11 WHEN + + 6 THEN - 69 ELSE - 87 END
----
-15297584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4526
SELECT 9 DIV + 86 * 43 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4526
SELECT 9 / + 86 * 43 * + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4527
SELECT ALL + MAX( ALL - 99 ) + 48 * + - 22 * 69, - 67 / - CAST( NULL AS SIGNED ) + + - SUM( + 7 ) AS col2
----
-72963
NULL

skipif mysql # not compatible
query II rowsort label-4527
SELECT ALL + MAX ( ALL - 99 ) + 48 * + - 22 * 69, - 67 / - CAST ( NULL AS INTEGER ) + + - SUM ( + 7 ) AS col2
----
-72963
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4528
SELECT DISTINCT - 37 DIV - - 10 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT - 37 / - - 10 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT + - 49 + + - 69 + COUNT( * ) AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT + - 49 + + - 69 + COUNT ( * ) AS col0
----
-117

query I rowsort
SELECT ALL - - 78 * 87
----
6786

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4531
SELECT + CASE - 62 WHEN + - ( 20 ) THEN COUNT( + - 28 ) WHEN - 42 * + - 90 THEN + 8 ELSE MIN( + 7 ) END DIV 5 + 34 + 30 - + - 5 * + 70 AS col0
----
415

skipif mysql # not compatible
query I rowsort label-4531
SELECT + CASE - 62 WHEN + - ( 20 ) THEN COUNT ( + - 28 ) WHEN - 42 * + - 90 THEN + 8 ELSE MIN ( + 7 ) END / 5 + 34 + 30 - + - 5 * + 70 AS col0
----
415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4532
SELECT ALL - 39 + 81 + - + 59 - - 57 * + NULLIF ( - + NULLIF ( MAX( 64 ), - COALESCE ( 21, - 78 + + 23 * - - 25 + - COUNT( * ), - COUNT( * ) ) - CAST( + 51 AS SIGNED ) ), + 40 * COUNT( * ) * + + 39 + - 76 + CASE + - MAX( + 27 ) WHEN + 44 THEN - CAST( - 57 AS DECIMAL ) / 87 ELSE NULL END * CASE COUNT( * ) * - CASE - 12 / 96 WHEN + COUNT( * ) * + 77 THEN NULL ELSE - 25 / CAST( NULL AS SIGNED ) END WHEN - CAST( NULL AS DECIMAL ) THEN NULL ELSE - 78 END + 54 ) * + ( 52 - ( 49 ) )
----
-10961

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL - 39 + 81 + - + 59 - - 57 * + NULLIF ( - + NULLIF ( MAX ( 64 ), - COALESCE ( 21, - 78 + + 23 * - - 25 + - COUNT ( * ), - COUNT ( * ) ) - CAST ( + 51 AS INTEGER ) ), + 40 * COUNT ( * ) * + + 39 + - 76 + CASE + - MAX ( + 27 ) WHEN + 44 THEN - CAST ( - 57 AS REAL ) / 87 ELSE NULL END * CASE COUNT ( * ) * - CASE - 12 / 96 WHEN + COUNT ( * ) * + 77 THEN NULL ELSE - 25 / CAST ( NULL AS INTEGER ) END WHEN - CAST ( NULL AS REAL ) THEN NULL ELSE - 78 END + 54 ) * + ( 52 - ( 49 ) )
----
-10961

query I rowsort
SELECT DISTINCT - + 49 * 68 + + 69
----
-3263

onlyif mysql # DIV for integer division: 
query I rowsort label-4534
SELECT - 18 + 61 * 76 DIV - 98
----
-65

skipif mysql # not compatible
query I rowsort label-4534
SELECT - 18 + 61 * 76 / - 98
----
-65

query I rowsort
SELECT 44 * + ( - 80 ) * - - 22 AS col1
----
-77440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4536
SELECT DISTINCT - COALESCE ( - - CASE - 45 WHEN - 25 THEN + 57 WHEN + 90 + + 16 + + - 32 THEN NULL ELSE + 93 + NULLIF ( 71, - ( + - 53 ) ) * + 90 * COUNT( * ) END, - 56 * - NULLIF ( + 63, + 23 + + + 17 DIV - 78 + - 96 ) ) AS col0, 31 DIV + 32 AS col0
----
-6483
0

skipif mysql # not compatible
query II rowsort label-4536
SELECT DISTINCT - COALESCE ( - - CASE - 45 WHEN - 25 THEN + 57 WHEN + 90 + + 16 + + - 32 THEN NULL ELSE + 93 + NULLIF ( 71, - ( + - 53 ) ) * + 90 * COUNT ( * ) END, - 56 * - NULLIF ( + 63, + 23 + + + 17 / - 78 + - 96 ) ) AS col0, 31 / + 32 AS col0
----
-6483
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT ALL - + AVG ( DISTINCT + NULLIF ( 54, + + 73 ) ) + + CASE + - COUNT( * ) WHEN + NULLIF ( - - 65, + 25 / NULLIF ( - 4, + + CAST( NULL AS SIGNED ) ) ) THEN + 91 + 75 WHEN + + COALESCE ( - - 60, + - ( - 20 ), + - CAST( NULL AS SIGNED ) ) + + 55 + CASE + 38 WHEN - + 25 THEN NULL ELSE 14 END + - 83 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL - + AVG ( DISTINCT + NULLIF ( 54, + + 73 ) ) + + CASE + - COUNT ( * ) WHEN + NULLIF ( - - 65, + 25 / NULLIF ( - 4, + + CAST ( NULL AS INTEGER ) ) ) THEN + 91 + 75 WHEN + + COALESCE ( - - 60, + - ( - 20 ), + - CAST ( NULL AS INTEGER ) ) + + 55 + CASE + 38 WHEN - + 25 THEN NULL ELSE 14 END + - 83 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT MIN( DISTINCT 38 ) - + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4538
SELECT MIN ( DISTINCT 38 ) - + + COUNT ( * )
----
37

query I rowsort
SELECT ALL - - 7 * - 77
----
-539

onlyif mysql # DIV for integer division: 
query I rowsort label-4540
SELECT DISTINCT 16 DIV - - 36 * + 37 DIV ( - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT 16 / - - 36 * + 37 / ( - 31 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT ALL 34 * COUNT( * ) col2
----
34

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL 34 * COUNT ( * ) col2
----
34

query I rowsort
SELECT 20 * + 50 AS col1
----
1000

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - COALESCE ( - NULLIF ( 78, + + 95 ), - ( + COUNT( - + 7 ) ) - + 83, - 43 ) - 44 * - + 91 + ( + + 82 ) + - 19 * - COUNT( * ) - 14 AS col1
----
4169

skipif mysql # not compatible
query I rowsort label-4543
SELECT - COALESCE ( - NULLIF ( 78, + + 95 ), - ( + COUNT ( - + 7 ) ) - + 83, - 43 ) - 44 * - + 91 + ( + + 82 ) + - 19 * - COUNT ( * ) - 14 AS col1
----
4169

onlyif mysql # DIV for integer division: 
query I rowsort label-4544
SELECT 39 DIV + 29
----
1

skipif mysql # not compatible
query I rowsort label-4544
SELECT 39 / + 29
----
1

query II rowsort
SELECT - 0, + 43 AS col0
----
0
43

query II rowsort
SELECT 87, + 31 + - + 85 AS col1
----
87
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT 49 + 45 / + 32 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT 49 + 45 / + 32 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4548
SELECT MIN( - NULLIF ( - 65, 28 ) ) DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-4548
SELECT MIN ( - NULLIF ( - 65, 28 ) ) / + 94
----
0

query II rowsort
SELECT ALL 10, - 74 + - ( - + 10 ) AS col1
----
10
-64

query I rowsort
SELECT 68 + - - 50
----
118

query II rowsort
SELECT DISTINCT - 6, - ( 33 ) * 24 - - 17 col1
----
-6
-775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT + 83 * + 58 * - CAST( - 71 AS SIGNED ) + - 34 AS col1
----
341760

skipif mysql # not compatible
query I rowsort label-4552
SELECT + 83 * + 58 * - CAST ( - 71 AS INTEGER ) + - 34 AS col1
----
341760

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT SUM( ALL - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-4553
SELECT SUM ( ALL - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT MAX( ALL - + 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4554
SELECT MAX ( ALL - + 92 ) AS col0
----
-92

query I rowsort
SELECT 23 * 57 * - 8 + 47
----
-10441

query I rowsort
SELECT 64 * + 80 AS col1
----
5120

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT SUM( DISTINCT - 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4557
SELECT SUM ( DISTINCT - 4 ) AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4558
SELECT - COALESCE ( - 71, + CAST( - + 35 AS SIGNED ) * + 94 ) DIV + 5 + - 6 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4558
SELECT - COALESCE ( - 71, + CAST ( - + 35 AS INTEGER ) * + 94 ) / + 5 + - 6 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ALL 45 * 16 + - + COUNT( - 3 ) AS col1
----
719

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL 45 * 16 + - + COUNT ( - 3 ) AS col1
----
719

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT COUNT( ALL - 59 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4560
SELECT COUNT ( ALL - 59 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT DISTINCT - MAX( - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT - MAX ( - 5 )
----
5

query I rowsort
SELECT DISTINCT 2 + - 65
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT + 40 * + 8 * + MAX( DISTINCT + 76 ) * ( - 90 ) + 93 - + - 41 - 10 + - - ( 24 ) AS col2
----
-2188652

skipif mysql # not compatible
query I rowsort label-4563
SELECT + 40 * + 8 * + MAX ( DISTINCT + 76 ) * ( - 90 ) + 93 - + - 41 - 10 + - - ( 24 ) AS col2
----
-2188652

query I rowsort
SELECT ALL + 68 + - 61
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT ALL - ( 11 ) + COUNT( DISTINCT 28 ) * + ( + ( + + 50 ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL - ( 11 ) + COUNT ( DISTINCT 28 ) * + ( + ( + + 50 ) ) AS col0
----
39

query I rowsort
SELECT + 38 * - + 95 + + + 37 col0
----
-3573

query I rowsort
SELECT - 6 - 20
----
-26

query I rowsort
SELECT DISTINCT + 86 - - 18 + + 38 AS col1
----
142

onlyif mysql # DIV for integer division: 
query II rowsort label-4569
SELECT 56 AS col0, 97 DIV - ( + 97 ) col0
----
56
-1

skipif mysql # not compatible
query II rowsort label-4569
SELECT 56 AS col0, 97 / - ( + 97 ) col0
----
56
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT - + COUNT( * ) + + + 81 * + 32
----
2591

skipif mysql # not compatible
query I rowsort label-4570
SELECT - + COUNT ( * ) + + + 81 * + 32
----
2591

query I rowsort
SELECT DISTINCT 21 - 84 AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT ALL CASE + CAST( NULL AS SIGNED ) WHEN + 84 THEN NULL ELSE - COALESCE ( + - 39, - 52 * + 78 ) * - 66 + + 81 END col2
----
-2493

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL CASE + CAST ( NULL AS INTEGER ) WHEN + 84 THEN NULL ELSE - COALESCE ( + - 39, - 52 * + 78 ) * - 66 + + 81 END col2
----
-2493

query I rowsort
SELECT - 65 + - ( + 19 ) * - + 85 - + 12 col2
----
1538

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT DISTINCT - 45 - + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT - 45 - + COUNT ( * )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT - COUNT( DISTINCT + 44 ) * + 87 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4575
SELECT - COUNT ( DISTINCT + 44 ) * + 87 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4576
SELECT - 92 * + COUNT( * ) + CAST( NULL AS DECIMAL ) + 9 - + 86 * + 9 AS col1, + 41 col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-4576
SELECT - 92 * + COUNT ( * ) + CAST ( NULL AS REAL ) + 9 - + 86 * + 9 AS col1, + 41 col2
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT ALL - COUNT( * ) * - 26
----
26

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - COUNT ( * ) * - 26
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT - COUNT( * ) AS col2, 75 + - 7 AS col1
----
-1
68

skipif mysql # not compatible
query II rowsort label-4578
SELECT - COUNT ( * ) AS col2, 75 + - 7 AS col1
----
-1
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4579
SELECT - + 15 + + CAST( + 24 AS SIGNED ) * + SUM( 70 ) * + - 10 + 8
----
-16807

skipif mysql # not compatible
query I rowsort label-4579
SELECT - + 15 + + CAST ( + 24 AS INTEGER ) * + SUM ( 70 ) * + - 10 + 8
----
-16807

onlyif mysql # aggregate syntax: 
query II rowsort label-4580
SELECT - 11 AS col1, - MAX( DISTINCT + 96 ) + + COUNT( * )
----
-11
-95

skipif mysql # not compatible
query II rowsort label-4580
SELECT - 11 AS col1, - MAX ( DISTINCT + 96 ) + + COUNT ( * )
----
-11
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT - 76 * + - CAST( - + 44 AS SIGNED ) AS col1
----
-3344

skipif mysql # not compatible
query I rowsort label-4581
SELECT - 76 * + - CAST ( - + 44 AS INTEGER ) AS col1
----
-3344

query I rowsort
SELECT DISTINCT ( - 49 )
----
-49

query I rowsort
SELECT DISTINCT + 8 * 62 AS col1
----
496

query I rowsort
SELECT ALL 57 * - - 91 AS col2
----
5187

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT - SUM( ALL + 51 ), + 68 + 50 AS col0
----
-51
118

skipif mysql # not compatible
query II rowsort label-4585
SELECT - SUM ( ALL + 51 ), + 68 + 50 AS col0
----
-51
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4586
SELECT DISTINCT CASE + - 80 WHEN + 62 THEN NULL ELSE + + 52 END AS col0, - ( + MIN( DISTINCT + + 95 ) ) * 4 DIV 7 DIV + - 83 AS col0
----
52
0

skipif mysql # not compatible
query II rowsort label-4586
SELECT DISTINCT CASE + - 80 WHEN + 62 THEN NULL ELSE + + 52 END AS col0, - ( + MIN ( DISTINCT + + 95 ) ) * 4 / 7 / + - 83 AS col0
----
52
0

query I rowsort
SELECT ALL + 64 + 58 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT - COUNT( * ) - + 59
----
-60

skipif mysql # not compatible
query I rowsort label-4588
SELECT - COUNT ( * ) - + 59
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4589
SELECT ( + - 64 ) AS col1, 40 * - - CASE + - ( - - 15 ) WHEN + 8 * + COUNT( * ) + - - CAST( ( CAST( NULL AS SIGNED ) ) AS SIGNED ) THEN - 2 + - COUNT( * ) * + 76 WHEN COALESCE ( - 2, + 11, + 81 / 19 ) THEN NULL ELSE NULL END + 52
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-4589
SELECT ( + - 64 ) AS col1, 40 * - - CASE + - ( - - 15 ) WHEN + 8 * + COUNT ( * ) + - - CAST ( ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN - 2 + - COUNT ( * ) * + 76 WHEN COALESCE ( - 2, + 11, + 81 / 19 ) THEN NULL ELSE NULL END + 52
----
-64
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4590
SELECT + ( + COALESCE ( - ( - 37 ), 50 * 41 ) ) - + NULLIF ( + 84, + COUNT( * ) + - 41 - - 89 * CAST( NULL AS SIGNED ) * + 6 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4590
SELECT + ( + COALESCE ( - ( - 37 ), 50 * 41 ) ) - + NULLIF ( + 84, + COUNT ( * ) + - 41 - - 89 * CAST ( NULL AS INTEGER ) * + 6 ) AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4591
SELECT COALESCE ( NULLIF ( + 69, - - 64 * - + 24 * 65 * - + 75 * + 20 ), - CAST( - + 80 AS DECIMAL ) * COUNT( DISTINCT + - 3 ), - + 12 ) * - 30 * + 69 * 44 + - - CASE 71 WHEN AVG ( DISTINCT 34 ) * + - ( - 16 ) * 13 * NULLIF ( SUM( DISTINCT - + 54 ), - SUM( ALL - 12 ) ) + + 98 THEN COUNT( * ) ELSE NULL END + - COUNT( ALL + ( - 55 ) ) * COUNT( * ) * - 69 - - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT COALESCE ( NULLIF ( + 69, - - 64 * - + 24 * 65 * - + 75 * + 20 ), - CAST ( - + 80 AS REAL ) * COUNT ( DISTINCT + - 3 ), - + 12 ) * - 30 * + 69 * 44 + - - CASE 71 WHEN AVG ( DISTINCT 34 ) * + - ( - 16 ) * 13 * NULLIF ( SUM ( DISTINCT - + 54 ), - SUM ( ALL - 12 ) ) + + 98 THEN COUNT ( * ) ELSE NULL END + - COUNT ( ALL + ( - 55 ) ) * COUNT ( * ) * - 69 - - 75 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT ALL - 92 * - 4 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - 92 * - 4 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 37 * + 32 col0
----
1184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4594
SELECT + 32 DIV - 59 AS col1, SUM( ALL 10 )
----
0
10

skipif mysql # not compatible
query II rowsort label-4594
SELECT + 32 / - 59 AS col1, SUM ( ALL 10 )
----
0
10

query I rowsort
SELECT + NULLIF ( + 97, 84 * - 14 / - - 9 * - 62 + - 43 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL - 48 * - 2 + + MIN( + ( + 96 ) ) AS col2
----
192

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL - 48 * - 2 + + MIN ( + ( + 96 ) ) AS col2
----
192

query I rowsort
SELECT + COALESCE ( + - 22, 24 )
----
-22

query I rowsort
SELECT + + 83 * - 65 + + + 54 col0
----
-5341

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT + + 37 - + 86 + - - 32 * - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-4599
SELECT + + 37 - + 86 + - - 32 * - COUNT ( * )
----
-81

query I rowsort
SELECT - 48 * + - 71 + + 78
----
3486

query I rowsort
SELECT - + 18 * + 28 - 20 AS col2
----
-524

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT CASE - ( - - 70 ) WHEN 32 * 44 THEN - 71 DIV - 5 WHEN 25 THEN NULL ELSE 67 DIV - 8 END col0
----
-8

skipif mysql # not compatible
query I rowsort label-4602
SELECT CASE - ( - - 70 ) WHEN 32 * 44 THEN - 71 / - 5 WHEN 25 THEN NULL ELSE 67 / - 8 END col0
----
-8

query I rowsort
SELECT DISTINCT - - ( - 35 ) * ( ( - 96 ) ) - - 83 + + 90 * 1 + + 2
----
3535

query I rowsort
SELECT ALL - 7 * - 98 + + + 31
----
717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4605
SELECT + - 2 + - CASE 80 WHEN - MAX( + ( CAST( - 16 AS SIGNED ) ) ) / - 2 + + 65 + 47 THEN + SUM( ALL - 63 ) ELSE NULL END + 9 - - ( AVG ( ALL + 66 ) ) / + 86 + - 39 + - + 67 * 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT + - 2 + - CASE 80 WHEN - MAX ( + ( CAST ( - 16 AS INTEGER ) ) ) / - 2 + + 65 + 47 THEN + SUM ( ALL - 63 ) ELSE NULL END + 9 - - ( AVG ( ALL + 66 ) ) / + 86 + - 39 + - + 67 * 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4606
SELECT ALL COUNT( * ) * - + 12 DIV + 19
----
0

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL COUNT ( * ) * - + 12 / + 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT + + ( - 48 ) * - SUM( DISTINCT - 6 ) + + 13 AS col1
----
-275

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT + + ( - 48 ) * - SUM ( DISTINCT - 6 ) + + 13 AS col1
----
-275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT DISTINCT - 63 * + - 68 - + CAST( NULL AS SIGNED ) + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT - 63 * + - 68 - + CAST ( NULL AS INTEGER ) + 11 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4609
SELECT + 7 / - 80 + - + 28 - - 40 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4609
SELECT + 7 / - 80 + - + 28 - - 40 * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT ALL + COALESCE ( - 83, 72, - 39 ) AS col2, - ( - 4 ) + - NULLIF ( - 60, COUNT( * ) * - 7 )
----
-83
64

skipif mysql # not compatible
query II rowsort label-4610
SELECT ALL + COALESCE ( - 83, 72, - 39 ) AS col2, - ( - 4 ) + - NULLIF ( - 60, COUNT ( * ) * - 7 )
----
-83
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4611
SELECT - + 69 * + COUNT( * ) AS col2, + CAST( + + COUNT( * ) AS SIGNED ) * 86 + - 96 AS col2
----
-69
-10

skipif mysql # not compatible
query II rowsort label-4611
SELECT - + 69 * + COUNT ( * ) AS col2, + CAST ( + + COUNT ( * ) AS INTEGER ) * 86 + - 96 AS col2
----
-69
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT + ( - - CAST( 71 AS SIGNED ) )
----
71

skipif mysql # not compatible
query I rowsort label-4612
SELECT + ( - - CAST ( 71 AS INTEGER ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL - 95 + + 81 + - COUNT( ALL - + 87 )
----
-15

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL - 95 + + 81 + - COUNT ( ALL - + 87 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4614
SELECT - 70 + - 54 + 39 AS col2, - COUNT( * ) * - 6 + ( - + 73 ) * + 22
----
-85
-1600

skipif mysql # not compatible
query II rowsort label-4614
SELECT - 70 + - 54 + 39 AS col2, - COUNT ( * ) * - 6 + ( - + 73 ) * + 22
----
-85
-1600

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT ALL COUNT( * ) AS col1, - 18
----
1
-18

skipif mysql # not compatible
query II rowsort label-4615
SELECT ALL COUNT ( * ) AS col1, - 18
----
1
-18

query I rowsort
SELECT DISTINCT 93 + - 5 AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT DISTINCT - 50 DIV + - 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - 50 / + - 58 AS col2
----
0

query I rowsort
SELECT ALL + 95 + 98 * + - 88
----
-8529

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT - NULLIF ( COUNT( * ), 73 ) - COALESCE ( + COUNT( ALL ( 45 ) ), - - CASE - 13 WHEN - 86 / - + 26 + ( + NULLIF ( - 99, - 77 ) ) THEN NULL ELSE + - 95 END, 96 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4619
SELECT - NULLIF ( COUNT ( * ), 73 ) - COALESCE ( + COUNT ( ALL ( 45 ) ), - - CASE - 13 WHEN - 86 / - + 26 + ( + NULLIF ( - 99, - 77 ) ) THEN NULL ELSE + - 95 END, 96 ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4620
SELECT - 16 - + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col1, + 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-4620
SELECT - 16 - + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col1, + 68
----
NULL
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4621
SELECT - CASE + COUNT( * ) WHEN + 66 DIV - 64 THEN NULL ELSE + + COUNT( * ) DIV + + 98 END + - 13
----
-13

skipif mysql # not compatible
query I rowsort label-4621
SELECT - CASE + COUNT ( * ) WHEN + 66 / - 64 THEN NULL ELSE + + COUNT ( * ) / + + 98 END + - 13
----
-13

query I rowsort
SELECT ALL NULLIF ( + ( + - 71 ), + 62 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL + COUNT( * ) + - + 11 col0
----
-10

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + COUNT ( * ) + - + 11 col0
----
-10

query I rowsort
SELECT ALL + 60 + + 68 AS col1
----
128

query I rowsort
SELECT DISTINCT ( + - 51 )
----
-51

query II rowsort
SELECT ALL 32 AS col1, 44
----
32
44

query I rowsort
SELECT DISTINCT ( + 30 ) * + 97
----
2910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4628
SELECT ALL 49 DIV 16 * + + 7 - + COUNT( * ) col2
----
20

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL 49 / 16 * + + 7 - + COUNT ( * ) col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4629
SELECT - CAST( NULL AS DECIMAL ) * - 4 * - 34 * - ( - - COUNT( * ) ), 5 * + - CAST( NULL AS SIGNED ) / COUNT( * ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4629
SELECT - CAST ( NULL AS REAL ) * - 4 * - 34 * - ( - - COUNT ( * ) ), 5 * + - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0
----
NULL
NULL

query I rowsort
SELECT + + 91 + 45 AS col0
----
136

query I rowsort
SELECT ALL 37 * + 44
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT - 58 - + COALESCE ( 59, + 76 - 84 + 58 * COUNT( * ) ) AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT - 58 - + COALESCE ( 59, + 76 - 84 + 58 * COUNT ( * ) ) AS col0
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4633
SELECT - 71 * - AVG ( ALL CAST( NULL AS SIGNED ) ) + - - 90 + NULLIF ( + 30, - 16 + + 81 ) + - 24 * 14 AS col1, 61 + + 94 + - + 11 + - CAST( CASE ( + 6 ) WHEN - 48 + + 88 THEN + - 57 * 94 WHEN + CAST( NULL AS SIGNED ) * + + 98 + MIN( ALL - 28 ) THEN NULL END AS SIGNED ) * + COUNT( * ) / - + COUNT( * ) - - 40 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4633
SELECT - 71 * - AVG ( ALL CAST ( NULL AS INTEGER ) ) + - - 90 + NULLIF ( + 30, - 16 + + 81 ) + - 24 * 14 AS col1, 61 + + 94 + - + 11 + - CAST ( CASE ( + 6 ) WHEN - 48 + + 88 THEN + - 57 * 94 WHEN + CAST ( NULL AS INTEGER ) * + + 98 + MIN ( ALL - 28 ) THEN NULL END AS INTEGER ) * + COUNT ( * ) / - + COUNT ( * ) - - 40 AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT DISTINCT + CAST( - - 65 AS SIGNED ) * + 34
----
2210

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT + CAST ( - - 65 AS INTEGER ) * + 34
----
2210

query I rowsort
SELECT ALL - 9 * - 17 * + - 14
----
-2142

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL - + MIN( - 99 ) col2
----
99

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL - + MIN ( - 99 ) col2
----
99

query II rowsort
SELECT 66 AS col1, 67
----
66
67

query I rowsort
SELECT ALL - ( - 24 ) AS col1
----
24

query I rowsort
SELECT ALL - - COALESCE ( 16, - + 7 + - 45 ) AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT + 61 DIV - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4640
SELECT + 61 / - 92 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT - MIN( DISTINCT - + 46 ) + + 47 + + - COUNT( * ) * COUNT( * ) * + + 75 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4641
SELECT - MIN ( DISTINCT - + 46 ) + + 47 + + - COUNT ( * ) * COUNT ( * ) * + + 75 AS col0
----
18

query I rowsort
SELECT - ( 94 ) * 35
----
-3290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4643
SELECT ALL 66 + - MIN( 24 ) + 31 + + 97 DIV + 35 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL 66 + - MIN ( 24 ) + 31 + + 97 / + 35 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4644
SELECT - COUNT( * ) + CAST( + 71 AS SIGNED ) DIV ( + 6 ) AS col0, 32
----
10
32

skipif mysql # not compatible
query II rowsort label-4644
SELECT - COUNT ( * ) + CAST ( + 71 AS INTEGER ) / ( + 6 ) AS col0, 32
----
10
32

query I rowsort
SELECT 98 + 30 col1
----
128

query I rowsort
SELECT 54 * - ( - + 11 ) - + + 14 + + - 8 AS col2
----
572

query I rowsort
SELECT DISTINCT 93 + + - 63
----
30

query I rowsort
SELECT ALL 52 + + - 54 AS col1
----
-2

query I rowsort
SELECT ( - + 80 ) * + 6
----
-480

query I rowsort
SELECT DISTINCT 46 * - + 17
----
-782

query I rowsort
SELECT ALL 22 + + 66 AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT ALL 7, + COUNT( * ) col0
----
7
1

skipif mysql # not compatible
query II rowsort label-4652
SELECT ALL 7, + COUNT ( * ) col0
----
7
1

query II rowsort
SELECT - 8 AS col0, 46 + 40 AS col1
----
-8
86

query I rowsort
SELECT 74 * + 50
----
3700

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4655
SELECT 12 + 74, 32 DIV - CAST( - 34 AS SIGNED ) * 90 + - + 64 AS col2, + ( - - 45 ) AS col1
----
86
-64
45

skipif mysql # not compatible
query III rowsort label-4655
SELECT 12 + 74, 32 / - CAST ( - 34 AS INTEGER ) * 90 + - + 64 AS col2, + ( - - 45 ) AS col1
----
86
-64
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL + MAX( - 37 ) + - + 58 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + MAX ( - 37 ) + - + 58 AS col2
----
-95

query II rowsort
SELECT ALL 66, - 72 AS col1
----
66
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL COUNT( * ) - + 77 * 71 * + SUM( DISTINCT + 58 )
----
-317085

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL COUNT ( * ) - + 77 * 71 * + SUM ( DISTINCT + 58 )
----
-317085

query II rowsort
SELECT - 77, 63 AS col1
----
-77
63

query I rowsort
SELECT DISTINCT + NULLIF ( + 2, - 8 * - 4 * - + CASE + 16 WHEN + - 0 + - 86 * + NULLIF ( 86, + 61 ) * - 18 / + 62 + - - 79 + 67 * - - 2 - + 13 THEN - 47 + - 68 END ) * - + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT 83 - - - 61 + + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4661
SELECT 83 - - - 61 + + COUNT ( * ) AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT ALL - 92 * CAST( NULL AS SIGNED ) * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL - 92 * CAST ( NULL AS INTEGER ) * + 79
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4663
SELECT CAST( - 21 AS SIGNED ) + + - 33 + ( + ( 0 ) ) + 12 col0
----
-42

skipif mysql # not compatible
query I rowsort label-4663
SELECT CAST ( - 21 AS INTEGER ) + + - 33 + ( + ( 0 ) ) + 12 col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4664
SELECT - 39, + COUNT( DISTINCT - 19 ) + - - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + 84 + - 52 + - - 77 AS col2
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-4664
SELECT - 39, + COUNT ( DISTINCT - 19 ) + - - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + 84 + - 52 + - - 77 AS col2
----
-39
NULL

query I rowsort
SELECT DISTINCT - + COALESCE ( 89, - 0, - 62 * + 29 * 61 + 66 ) col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT - MAX( DISTINCT + 32 ) - - 1 + 40 + - 21 * + 12 + - 7 * + 89 + - 79 * 29 * 81 * - - 51 AS col2
----
-9464987

skipif mysql # not compatible
query I rowsort label-4666
SELECT - MAX ( DISTINCT + 32 ) - - 1 + 40 + - 21 * + 12 + - 7 * + 89 + - 79 * 29 * 81 * - - 51 AS col2
----
-9464987

query II rowsort
SELECT DISTINCT - - 69 col0, 31 AS col1
----
69
31

onlyif mysql # DIV for integer division: 
query II rowsort label-4668
SELECT ALL - 77 col0, 29 DIV 8 + + 55 * - 86
----
-77
-4727

skipif mysql # not compatible
query II rowsort label-4668
SELECT ALL - 77 col0, 29 / 8 + + 55 * - 86
----
-77
-4727

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT 64 * + 90 + + ( + COUNT( * ) ) + + + COUNT( * ) AS col1
----
5762

skipif mysql # not compatible
query I rowsort label-4669
SELECT 64 * + 90 + + ( + COUNT ( * ) ) + + + COUNT ( * ) AS col1
----
5762

query II rowsort
SELECT ALL - 54, - 64 AS col1
----
-54
-64

query II rowsort
SELECT 24 col2, 20 + + 37 + + 31
----
24
88

query I rowsort
SELECT 56 - + 14 + - + 23
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4673
SELECT 44 DIV - + 88 + + 59 - - 65 + COUNT( * ) AS col2
----
125

skipif mysql # not compatible
query I rowsort label-4673
SELECT 44 / - + 88 + + 59 - - 65 + COUNT ( * ) AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL - COUNT( * ) + + 48 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL - COUNT ( * ) + + 48 AS col1
----
47

query I rowsort
SELECT ALL - + 5 + 30 * - 49 * + 39 AS col1
----
-57335

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4676
SELECT DISTINCT - NULLIF ( + ( - + 20 ), - CAST( + + 39 AS DECIMAL ) ) col2
----
20

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT - NULLIF ( + ( - + 20 ), - CAST ( + + 39 AS REAL ) ) col2
----
20

query I rowsort
SELECT ALL 98 + - - 64 * + 71 col1
----
4642

query I rowsort
SELECT 74 - - + 22 AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4679
SELECT 83 - + ( - 70 ) DIV COUNT( - 6 )
----
153

skipif mysql # not compatible
query I rowsort label-4679
SELECT 83 - + ( - 70 ) / COUNT ( - 6 )
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT NULLIF ( - 88, 23 * - ( COUNT( * ) ) * + + 66 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT NULLIF ( - 88, 23 * - ( COUNT ( * ) ) * + + 66 ) AS col1
----
-88

query I rowsort
SELECT 2 + + + ( 98 ) AS col0
----
100

query I rowsort
SELECT ALL 39 * - ( - 72 ) col2
----
2808

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT MAX( 49 ) + - + SUM( - 76 )
----
125

skipif mysql # not compatible
query I rowsort label-4683
SELECT MAX ( 49 ) + - + SUM ( - 76 )
----
125

query I rowsort
SELECT ( + 66 ) - + 60 col2
----
6

query I rowsort
SELECT ALL 91 * 67 col0
----
6097

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT COUNT( * ) - COUNT( * ), - MAX( + 2 ) AS col1
----
0
-2

skipif mysql # not compatible
query II rowsort label-4686
SELECT COUNT ( * ) - COUNT ( * ), - MAX ( + 2 ) AS col1
----
0
-2

query I rowsort
SELECT 98 * - NULLIF ( - 27, - 29 ) AS col1
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - SUM( - - 31 ) + - 80 * - - 49 AS col0
----
-3951

skipif mysql # not compatible
query I rowsort label-4688
SELECT - SUM ( - - 31 ) + - 80 * - - 49 AS col0
----
-3951

query I rowsort
SELECT + 49 * 65 * - + 12 AS col1
----
-38220

query I rowsort
SELECT + - 64 + + 52
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4691
SELECT ALL - 20 * + COUNT( * ) DIV - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - 20 * + COUNT ( * ) / - 46 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT + - 14 + - SUM( + 24 )
----
-38

skipif mysql # not compatible
query I rowsort label-4692
SELECT + - 14 + - SUM ( + 24 )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4693
SELECT ALL + COUNT( * ) DIV - 24
----
0

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + COUNT ( * ) / - 24
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT DISTINCT - CASE 12 WHEN - + 80 * CAST( - + 16 AS SIGNED ) THEN + 44 + - 99 WHEN - 64 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - CASE 12 WHEN - + 80 * CAST ( - + 16 AS INTEGER ) THEN + 44 + - 99 WHEN - 64 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 76 * - + COALESCE ( - 90, - 78 )
----
-6840

onlyif mysql # DIV for integer division: 
query I rowsort label-4696
SELECT + 12 DIV - 5 - 4 + 94 + 67 * 43 AS col1
----
2969

skipif mysql # not compatible
query I rowsort label-4696
SELECT + 12 / - 5 - 4 + 94 + 67 * 43 AS col1
----
2969

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT DISTINCT - ( 81 ) * 18 + CASE MIN( ALL - - 52 ) WHEN + 10 THEN NULL WHEN - 30 * 81 + 26 THEN - 93 END + - 73 * - 99 * + + 80 + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT - ( 81 ) * 18 + CASE MIN ( ALL - - 52 ) WHEN + 10 THEN NULL WHEN - 30 * 81 + 26 THEN - 93 END + - 73 * - 99 * + + 80 + 67 AS col1
----
NULL

query I rowsort
SELECT + 86 * + - 94 col0
----
-8084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4699
SELECT - 56 + + + 92 + + - 40 / - + 57 * 26 - 70 + - CAST( NULL AS SIGNED ) * 96 * + 71 + - + 60 * + ( - 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT - 56 + + + 92 + + - 40 / - + 57 * 26 - 70 + - CAST ( NULL AS INTEGER ) * 96 * + 71 + - + 60 * + ( - 83 )
----
NULL

query I rowsort
SELECT ALL 45 * + - 12 + - 67 * + ( ( - 59 ) ) AS col2
----
3413

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT + + COALESCE ( + - ( COALESCE ( + COALESCE ( - 32, - 38 - - - 28, 69 ), + 83 * + 93 + + ( + 36 ), - 86 ) ), COUNT( * ) * - 68 - + 12 )
----
32

skipif mysql # not compatible
query I rowsort label-4701
SELECT + + COALESCE ( + - ( COALESCE ( + COALESCE ( - 32, - 38 - - - 28, 69 ), + 83 * + 93 + + ( + 36 ), - 86 ) ), COUNT ( * ) * - 68 - + 12 )
----
32

query I rowsort
SELECT DISTINCT - - 0 * - - 44 * - 24 + - 46
----
-46

query I rowsort
SELECT DISTINCT + + 34 * - - 14 + + - 76 - - 93 + + 40 + + 73
----
606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4704
SELECT + COUNT( * ) * - 77 * + 44 * CAST( - 68 AS SIGNED ) * + - 6 + - 96 + 97 AS col2
----
-1382303

skipif mysql # not compatible
query I rowsort label-4704
SELECT + COUNT ( * ) * - 77 * + 44 * CAST ( - 68 AS INTEGER ) * + - 6 + - 96 + 97 AS col2
----
-1382303

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL 28 * - - 78 * - COUNT( DISTINCT + 23 ) * - MIN( 18 ) + 86
----
39398

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL 28 * - - 78 * - COUNT ( DISTINCT + 23 ) * - MIN ( 18 ) + 86
----
39398

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT + COUNT( ALL - 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4706
SELECT + COUNT ( ALL - 71 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4707
SELECT COUNT( * ) col1, 59 + + - 57 + 7 + - 47 + - 31 * - 90 * - 3
----
1
-8408

skipif mysql # not compatible
query II rowsort label-4707
SELECT COUNT ( * ) col1, 59 + + - 57 + 7 + - 47 + - 31 * - 90 * - 3
----
1
-8408

query I rowsort
SELECT - 69 * + 24 + + - 98 AS col0
----
-1754

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT ALL ( CASE - COUNT( * ) WHEN - 2 + + COUNT( * ) + - 78 THEN + 8 END ) * + COUNT( * ) - - 80 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL ( CASE - COUNT ( * ) WHEN - 2 + + COUNT ( * ) + - 78 THEN + 8 END ) * + COUNT ( * ) - - 80 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT - SUM( ALL - 92 ) * + 59
----
5428

skipif mysql # not compatible
query I rowsort label-4710
SELECT - SUM ( ALL - 92 ) * + 59
----
5428

onlyif mysql # aggregate syntax: 
query II rowsort label-4711
SELECT + 4 AS col2, 90 + + 83 - + COUNT( 60 )
----
4
172

skipif mysql # not compatible
query II rowsort label-4711
SELECT + 4 AS col2, 90 + + 83 - + COUNT ( 60 )
----
4
172

query II rowsort
SELECT ALL + 22, 29 AS col0
----
22
29

query I rowsort
SELECT DISTINCT + 19 * + + 79 AS col0
----
1501

query II rowsort
SELECT - AVG ( + CASE - + 93 WHEN 39 / - + 59 * + 58 + + + 53 + - - 72 THEN + 12 END ), 85 * 28 AS col2
----
NULL
2380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT DISTINCT ( + - ( - CAST( NULL AS SIGNED ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT ( + - ( - CAST ( NULL AS INTEGER ) ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT + 27 + - 1 * - - MAX( DISTINCT - 27 ) * + MIN( + + 34 ) * + 31 * - - 8 + 32
----
227723

skipif mysql # not compatible
query I rowsort label-4716
SELECT + 27 + - 1 * - - MAX ( DISTINCT - 27 ) * + MIN ( + + 34 ) * + 31 * - - 8 + 32
----
227723

query I rowsort
SELECT DISTINCT ( + 37 ) AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT - ( CAST( NULL AS SIGNED ) ) * + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT - ( CAST ( NULL AS INTEGER ) ) * + + 98
----
NULL

query I rowsort
SELECT + 79 + ( + 36 ) AS col2
----
115

query II rowsort
SELECT ALL 29 AS col2, 46 AS col0
----
29
46

query II rowsort
SELECT 47 AS col0, + 38 * 18
----
47
684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT ALL ( + + CAST( - 66 AS SIGNED ) ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL ( + + CAST ( - 66 AS INTEGER ) ) AS col1
----
-66

query I rowsort
SELECT ALL ( + ( + 97 ) )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT DISTINCT CAST( - + 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT CAST ( - + 28 AS INTEGER )
----
-28

query II rowsort
SELECT - 1 AS col0, + 69 AS col2
----
-1
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ALL 60 + - COUNT( * ) * + 58 * MAX( 95 ) - MIN( DISTINCT + 92 ) AS col0
----
-5542

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL 60 + - COUNT ( * ) * + 58 * MAX ( 95 ) - MIN ( DISTINCT + 92 ) AS col0
----
-5542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4727
SELECT DISTINCT - 79 * CAST( 47 AS SIGNED ) * + COUNT( * ) + - 83 * 11
----
-4626

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT - 79 * CAST ( 47 AS INTEGER ) * + COUNT ( * ) + - 83 * 11
----
-4626

query I rowsort
SELECT + 4 * - + 66 AS col0
----
-264

query I rowsort
SELECT - 44 - + 6 * 95
----
-614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4730
SELECT ALL + CAST( NULL AS SIGNED ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL + CAST ( NULL AS INTEGER ) * 91
----
NULL

query I rowsort
SELECT ALL 88 + - - 69 AS col1
----
157

query I rowsort
SELECT + 57 + - 3
----
54

query I rowsort
SELECT + + 2 * - 15 col1
----
-30

query II rowsort
SELECT - - 27 col1, 50 * - 27 AS col0
----
27
-1350

query I rowsort
SELECT ALL 49 * + - 2
----
-98

query I rowsort
SELECT + + ( - 83 ) - 0 AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT DISTINCT + + 57 DIV - + 50 + + 13
----
12

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT + + 57 / - + 50 + + 13
----
12

query II rowsort
SELECT - 42 AS col2, - 52 + - 65 AS col0
----
-42
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4739
SELECT DISTINCT + 3 DIV - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + 3 / - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT - - 76 * + 99 + + 28 * - 4 * - COUNT( * ) * - ( - - 13 )
----
6068

skipif mysql # not compatible
query I rowsort label-4740
SELECT - - 76 * + 99 + + 28 * - 4 * - COUNT ( * ) * - ( - - 13 )
----
6068

query I rowsort
SELECT ALL + 70 * + 56 * - + 37
----
-145040

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT + SUM( DISTINCT - - 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4742
SELECT + SUM ( DISTINCT - - 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4743
SELECT DISTINCT 88 DIV ( + - COUNT( * ) ) * - - COUNT( 97 ) - 45
----
-133

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT 88 / ( + - COUNT ( * ) ) * - - COUNT ( 97 ) - 45
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4744
SELECT ( - - 26 ) AS col1, ( + 58 ) * + COALESCE ( ( CAST( NULL AS SIGNED ) ), - 80 * - 52, - + 63 + + + 43 ) * - - 57 col0
----
26
13752960

skipif mysql # not compatible
query II rowsort label-4744
SELECT ( - - 26 ) AS col1, ( + 58 ) * + COALESCE ( ( CAST ( NULL AS INTEGER ) ), - 80 * - 52, - + 63 + + + 43 ) * - - 57 col0
----
26
13752960

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT ALL - COUNT( * ) * 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL - COUNT ( * ) * 73 AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT DISTINCT - 23 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT - 23 * - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT 28 * + - 57 * 31
----
-49476

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4748
SELECT - COUNT( * ) * + 46 AS col2, + ( + COUNT( * ) ) DIV - - 60
----
-46
0

skipif mysql # not compatible
query II rowsort label-4748
SELECT - COUNT ( * ) * + 46 AS col2, + ( + COUNT ( * ) ) / - - 60
----
-46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL + MIN( 91 )
----
91

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + MIN ( 91 )
----
91

query I rowsort
SELECT ALL 63 * 9
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT DISTINCT + CASE WHEN + 38 <= + 97 + + 74 + COUNT( * ) / - 73 THEN NULL ELSE + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT + CASE WHEN + 38 <= + 97 + + 74 + COUNT ( * ) / - 73 THEN NULL ELSE + 93 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4752
SELECT ALL 21 * 89 * 33 - - 2 * 11 AS col0, 19 * 11 * - COUNT( * )
----
61699
-209

skipif mysql # not compatible
query II rowsort label-4752
SELECT ALL 21 * 89 * 33 - - 2 * 11 AS col0, 19 * 11 * - COUNT ( * )
----
61699
-209

query I rowsort
SELECT - 10 * 30 * - 25
----
7500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4754
SELECT + 70 * + CAST( NULL AS SIGNED ) + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT + 70 * + CAST ( NULL AS INTEGER ) + + 99
----
NULL

query II rowsort
SELECT CASE + 21 WHEN - - 76 / - 92 * - + 68 THEN NULLIF ( 39, 4 ) * - 13 ELSE 5 END, 49 AS col0
----
5
49

query I rowsort
SELECT - 97 + 75 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-4757
SELECT 2 + + 60, - MAX( - - 63 ) AS col1
----
62
-63

skipif mysql # not compatible
query II rowsort label-4757
SELECT 2 + + 60, - MAX ( - - 63 ) AS col1
----
62
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-4758
SELECT COUNT( * ) * - 92 AS col1, MAX( 44 )
----
-92
44

skipif mysql # not compatible
query II rowsort label-4758
SELECT COUNT ( * ) * - 92 AS col1, MAX ( 44 )
----
-92
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT ALL + ( 3 ) * - NULLIF ( 22, MAX( 27 ) ) * - + 93 AS col1, COUNT( + 89 ) * ( 87 ) AS col2
----
6138
87

skipif mysql # not compatible
query II rowsort label-4759
SELECT ALL + ( 3 ) * - NULLIF ( 22, MAX ( 27 ) ) * - + 93 AS col1, COUNT ( + 89 ) * ( 87 ) AS col2
----
6138
87

query I rowsort
SELECT 8 - 0 AS col0
----
8

query I rowsort
SELECT DISTINCT + 61 * 47 * + + 85 AS col0
----
243695

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT ALL + COUNT( * ) + + 77 + - - 63
----
141

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL + COUNT ( * ) + + 77 + - - 63
----
141

query I rowsort
SELECT 27 + 8
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL + MIN( + 84 ) * - + 45
----
-3780

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL + MIN ( + 84 ) * - + 45
----
-3780

query I rowsort
SELECT 37 + - 6
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL 31 + 10 * - + COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL 31 + 10 * - + COUNT ( * ) AS col0
----
21

query I rowsort
SELECT DISTINCT - 50 * 51 AS col1
----
-2550

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4768
SELECT 72 + + - 56 AS col1, ( - ( + - 43 ) ) DIV - 75 + SUM( DISTINCT - - 46 ) AS col2
----
16
46

skipif mysql # not compatible
query II rowsort label-4768
SELECT 72 + + - 56 AS col1, ( - ( + - 43 ) ) / - 75 + SUM ( DISTINCT - - 46 ) AS col2
----
16
46

onlyif mysql # aggregate syntax: 
query III rowsort label-4769
SELECT + 98 - 44 + - 1 * 38 AS col2, + 46, - COUNT( * ) * - + 0 col1
----
16
46
0

skipif mysql # not compatible
query III rowsort label-4769
SELECT + 98 - 44 + - 1 * 38 AS col2, + 46, - COUNT ( * ) * - + 0 col1
----
16
46
0

query I rowsort
SELECT ALL - + 78 + - + 24 AS col1
----
-102

query I rowsort
SELECT ( + + 20 ) + 94 AS col2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT CAST( - 28 AS SIGNED ) + - + 56 * - 53
----
2940

skipif mysql # not compatible
query I rowsort label-4772
SELECT CAST ( - 28 AS INTEGER ) + - + 56 * - 53
----
2940

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4773
SELECT ALL 94 + - CAST( NULL AS DECIMAL ) - + ( - + 3 ) * 72 AS col1, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4773
SELECT ALL 94 + - CAST ( NULL AS REAL ) - + ( - + 3 ) * 72 AS col1, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT COALESCE ( 76, - 30 )
----
76

query I rowsort
SELECT ALL - 35 * + 2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL - - MAX( - 64 ) + - - 46 col2
----
-18

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL - - MAX ( - 64 ) + - - 46 col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL - 85 + + 30 * - - COUNT( * ) * + 13 + - - SUM( + 71 ) + - ( + 27 )
----
349

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL - 85 + + 30 * - - COUNT ( * ) * + 13 + - - SUM ( + 71 ) + - ( + 27 )
----
349

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + - ( + COUNT( DISTINCT - 71 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4778
SELECT + - ( + COUNT ( DISTINCT - 71 ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT ( 20 ) DIV + 20 + - 65 * + 49 * - 31 * + 68 + + + 24 AS col0
----
6714005

skipif mysql # not compatible
query I rowsort label-4779
SELECT ( 20 ) / + 20 + - 65 * + 49 * - 31 * + 68 + + + 24 AS col0
----
6714005

query I rowsort
SELECT + ( - + 83 ) AS col2
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4781
SELECT + - COUNT( ALL - 82 ) DIV - 99 * + 37 + 25 + - 59 + + + COUNT( ALL + + 48 ) + + 95 AS col2, COUNT( * )
----
62
1

skipif mysql # not compatible
query II rowsort label-4781
SELECT + - COUNT ( ALL - 82 ) / - 99 * + 37 + 25 + - 59 + + + COUNT ( ALL + + 48 ) + + 95 AS col2, COUNT ( * )
----
62
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4782
SELECT ALL + 24 * - 97 + + - 15 + - COUNT( * ) + + 0 * + 87 + - + 97 AS col2, - 28 + + 3 AS col1
----
-2441
-25

skipif mysql # not compatible
query II rowsort label-4782
SELECT ALL + 24 * - 97 + + - 15 + - COUNT ( * ) + + 0 * + 87 + - + 97 AS col2, - 28 + + 3 AS col1
----
-2441
-25

query I rowsort
SELECT + 54 + + 27
----
81

query I rowsort
SELECT ALL 24 - - - 5 * - - 63
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT DISTINCT 87 - - + 76 * 67 + + AVG ( + CAST( NULL AS SIGNED ) ) + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT 87 - - + 76 * 67 + + AVG ( + CAST ( NULL AS INTEGER ) ) + - 38
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4786
SELECT + 61 * 25 * COUNT( * ) + - ( + - 6 ) AS col0, 28 AS col2
----
1531
28

skipif mysql # not compatible
query II rowsort label-4786
SELECT + 61 * 25 * COUNT ( * ) + - ( + - 6 ) AS col0, 28 AS col2
----
1531
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4787
SELECT 76 DIV - 56 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4787
SELECT 76 / - 56 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4788
SELECT 12 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-4788
SELECT 12 / 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4789
SELECT ALL 16 DIV + - 50
----
0

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL 16 / + - 50
----
0

query I rowsort
SELECT ( 93 ) * + 67
----
6231

query I rowsort
SELECT 28 + - 95 AS col1
----
-67

query I rowsort
SELECT ALL 68 * 21 * - NULLIF ( + 80, - AVG ( ALL + - 35 ) ) AS col1
----
-114240

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT 2 DIV - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4793
SELECT 2 / - 25 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4794
SELECT MAX( 20 ) * + 34 + - ( + ( 2 ) ) DIV + + COALESCE ( 47, - + COUNT( * ) + - 96, + 38 ) + - 41 + COUNT( - 78 ) + - + CASE - COUNT( * ) WHEN - + COUNT( * ) - + - 4 THEN - 28 ELSE + 84 * + 9 END + 73
----
-43

skipif mysql # not compatible
query I rowsort label-4794
SELECT MAX ( 20 ) * + 34 + - ( + ( 2 ) ) / + + COALESCE ( 47, - + COUNT ( * ) + - 96, + 38 ) + - 41 + COUNT ( - 78 ) + - + CASE - COUNT ( * ) WHEN - + COUNT ( * ) - + - 4 THEN - 28 ELSE + 84 * + 9 END + 73
----
-43

query I rowsort
SELECT ( - - 72 ) * - 39 col1
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL COALESCE ( 72, + + 28 ) * - - 56 - - MIN( 73 )
----
4105

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL COALESCE ( 72, + + 28 ) * - - 56 - - MIN ( 73 )
----
4105

query I rowsort
SELECT 37 * - 96 AS col1
----
-3552

query I rowsort
SELECT ALL + 39 + + 74
----
113

query II rowsort
SELECT - 34, 52 AS col2
----
-34
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL - 12 + NULLIF ( - COUNT( * ), + ( - COUNT( * ) ) - + - 36 ) * 8 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL - 12 + NULLIF ( - COUNT ( * ), + ( - COUNT ( * ) ) - + - 36 ) * 8 AS col1
----
-20

query II rowsort
SELECT - + 0 AS col1, 68 AS col2
----
0
68

query I rowsort
SELECT 87 * 23
----
2001

query I rowsort
SELECT - 95 + + - 51 AS col2
----
-146

query I rowsort
SELECT ALL + + 13 + + 62
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT DISTINCT + COUNT( - + 99 )
----
1

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT + COUNT ( - + 99 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4807
SELECT + 62 * - 94 * - + COUNT( * ) AS col2, 41
----
5828
41

skipif mysql # not compatible
query II rowsort label-4807
SELECT + 62 * - 94 * - + COUNT ( * ) AS col2, 41
----
5828
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT ALL - + 21 DIV - - COALESCE ( + - 53, - ( COALESCE ( + + 48, + + 38 * + 89 + - 80, 51 DIV 35 ) ), - 61 * + 90 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - + 21 / - - COALESCE ( + - 53, - ( COALESCE ( + + 48, + + 38 * + 89 + - 80, 51 / 35 ) ), - 61 * + 90 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 36 * - + 89 AS col0
----
3204

query I rowsort
SELECT ALL + 14 - - 5
----
19

query I rowsort
SELECT 33 * - 20 AS col1
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL - NULLIF ( 8, - NULLIF ( + NULLIF ( + 17, + 11 ), 8 * COUNT( * ) ) / - 53 * 64 + + ( + - 90 ) + - MIN( ALL - 90 ) ) * - - MAX( 88 ) AS col1
----
-704

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - NULLIF ( 8, - NULLIF ( + NULLIF ( + 17, + 11 ), 8 * COUNT ( * ) ) / - 53 * 64 + + ( + - 90 ) + - MIN ( ALL - 90 ) ) * - - MAX ( 88 ) AS col1
----
-704

query I rowsort
SELECT DISTINCT - 87 - - 90 AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT 25 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-4814
SELECT 25 / - 40
----
0

query I rowsort
SELECT 56 + 35 + - + 13
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4816
SELECT 5 - - 1 DIV + 36 + - 30 + - 1 + + COUNT( ( 45 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-4816
SELECT 5 - - 1 / + 36 + - 30 + - 1 + + COUNT ( ( 45 ) )
----
-25

query II rowsort
SELECT ALL - + 61 AS col2, - CASE + 37 WHEN - 0 THEN NULL WHEN + 83 + + + 12 + + 36 THEN - + 12 + + 16 + + 43 + 32 * 95 / NULLIF ( AVG ( ALL + + 73 ), - 84 * + 0 ) ELSE NULL END AS col2
----
-61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT ALL 35 * COUNT( * ) + + 96 + + + 31
----
162

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL 35 * COUNT ( * ) + + 96 + + + 31
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4819
SELECT NULLIF ( ( CASE + 84 WHEN MAX( ALL - 83 ) + + 92 * + + 45 THEN + COALESCE ( + ( COUNT( * ) ), COUNT( ALL + + 7 ) / COUNT( * ) ) END ), + + CAST( NULL AS SIGNED ) + + - 82 + - + CASE 96 WHEN - 57 + - 50 * - + 54 / - COALESCE ( - 33, ( - COALESCE ( - 86, - 87 * + 74 * 87 + + 95 * 30 ) ), + - 30 ) + CASE WHEN NOT NULL IS NULL OR NOT + 68 <= ( + CAST( NULL AS SIGNED ) + 53 ) THEN NULL ELSE - 91 + + ( 94 + ( + 7 + + 21 ) ) END + - 14 * - COUNT( * ) THEN + 96 + - 94 WHEN - 66 THEN NULL WHEN COALESCE ( 69, - 13 * + 23 - - ( 87 - 91 * 4 ), 83 * 40 ) THEN NULL ELSE NULL END ) * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT NULLIF ( ( CASE + 84 WHEN MAX ( ALL - 83 ) + + 92 * + + 45 THEN + COALESCE ( + ( COUNT ( * ) ), COUNT ( ALL + + 7 ) / COUNT ( * ) ) END ), + + CAST ( NULL AS INTEGER ) + + - 82 + - + CASE 96 WHEN - 57 + - 50 * - + 54 / - COALESCE ( - 33, ( - COALESCE ( - 86, - 87 * + 74 * 87 + + 95 * 30 ) ), + - 30 ) + CASE WHEN NOT NULL IS NULL OR NOT + 68 <= ( + CAST ( NULL AS INTEGER ) + 53 ) THEN NULL ELSE - 91 + + ( 94 + ( + 7 + + 21 ) ) END + - 14 * - COUNT ( * ) THEN + 96 + - 94 WHEN - 66 THEN NULL WHEN COALESCE ( 69, - 13 * + 23 - - ( 87 - 91 * 4 ), 83 * 40 ) THEN NULL ELSE NULL END ) * + 38
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4820
SELECT - 98 * 56 * - 2 * - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT - 98 * 56 * - 2 * - ( + CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT DISTINCT 10 * + 86, 58 AS col1
----
860
58

query II rowsort
SELECT + 58, - 70 * 27 AS col2
----
58
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT MIN( + + ( 61 ) )
----
61

skipif mysql # not compatible
query I rowsort label-4823
SELECT MIN ( + + ( 61 ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL + MIN( - 58 ) * - NULLIF ( + 46, + 21 ) * - 2 * 41 + 10
----
-218766

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + MIN ( - 58 ) * - NULLIF ( + 46, + 21 ) * - 2 * 41 + 10
----
-218766

query I rowsort
SELECT + 68 * + 61
----
4148

query I rowsort
SELECT DISTINCT + ( - 93 ) * + 46 + - 27 AS col1
----
-4305

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT SUM( - 63 ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-4827
SELECT SUM ( - 63 ) col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT DISTINCT + 41 * + 94 * 69 + - + 81 + + - 30 * - COUNT( * ) * + 77 * - 84
----
71805

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT + 41 * + 94 * 69 + - + 81 + + - 30 * - COUNT ( * ) * + 77 * - 84
----
71805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4829
SELECT ALL 14 DIV NULLIF ( ( + + 41 ), + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL 14 / NULLIF ( ( + + 41 ), + COUNT ( * ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT + 20 DIV + - 87
----
0

skipif mysql # not compatible
query I rowsort label-4830
SELECT + 20 / + - 87
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT ALL - 80 * 47 * + 71 * 73 + + + CAST( - 20 AS SIGNED )
----
-19488100

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL - 80 * 47 * + 71 * 73 + + + CAST ( - 20 AS INTEGER )
----
-19488100

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT + CASE + + 40 WHEN - 74 * + 72 * 14 + 73 + + + 8 + 76 THEN + 21 * + + 54 * + - 5 + + 68 - + ( + + 32 ) * + - 91 * + + 49 - 95 WHEN + COUNT( * ) * + 49 * 43 + - 24 + 87 * COUNT( * ) + ( 51 ) THEN - + CASE + NULLIF ( - COUNT( * ), AVG ( - - 41 ) ) WHEN 69 THEN - - 35 / - ( - 21 ) WHEN 63 / 97 + 39 THEN - COUNT( * ) END * 71 ELSE COUNT( * ) * + 64 END
----
64

skipif mysql # not compatible
query I rowsort label-4832
SELECT + CASE + + 40 WHEN - 74 * + 72 * 14 + 73 + + + 8 + 76 THEN + 21 * + + 54 * + - 5 + + 68 - + ( + + 32 ) * + - 91 * + + 49 - 95 WHEN + COUNT ( * ) * + 49 * 43 + - 24 + 87 * COUNT ( * ) + ( 51 ) THEN - + CASE + NULLIF ( - COUNT ( * ), AVG ( - - 41 ) ) WHEN 69 THEN - - 35 / - ( - 21 ) WHEN 63 / 97 + 39 THEN - COUNT ( * ) END * 71 ELSE COUNT ( * ) * + 64 END
----
64

query I rowsort
SELECT + 8 + + 62
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4834
SELECT DISTINCT + 88, + 95 * + - ( + COUNT( * ) ) AS col0
----
88
-95

skipif mysql # not compatible
query II rowsort label-4834
SELECT DISTINCT + 88, + 95 * + - ( + COUNT ( * ) ) AS col0
----
88
-95

query I rowsort
SELECT + 84 + + - 86 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT + 90 DIV ( + 62 ) DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-4836
SELECT + 90 / ( + 62 ) / + 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT + MIN( DISTINCT - + 56 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4837
SELECT + MIN ( DISTINCT - + 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4838
SELECT + - COUNT( * ) + - 91 DIV COUNT( * ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-4838
SELECT + - COUNT ( * ) + - 91 / COUNT ( * ) col0
----
-92

query I rowsort
SELECT ALL - 98 - + + 79 AS col1
----
-177

query II rowsort
SELECT - 49 AS col2, 68 * + 96 * 54 AS col1
----
-49
352512

query II rowsort
SELECT - 60, + ( + 83 ) AS col2
----
-60
83

query I rowsort
SELECT + 26 + + 48 + + - 80 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - ( 9 ) + + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-4843
SELECT - ( 9 ) + + COUNT ( * )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4844
SELECT ALL + - ( COUNT( * ) ) - AVG ( DISTINCT CASE - - 47 WHEN 75 - + + 99 + + 55 THEN - - 31 ELSE NULL END ) - + + ( - AVG ( DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN 62 THEN - 56 + 86 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL + - ( COUNT ( * ) ) - AVG ( DISTINCT CASE - - 47 WHEN 75 - + + 99 + + 55 THEN - - 31 ELSE NULL END ) - + + ( - AVG ( DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN 62 THEN - 56 + 86 ELSE NULL END ) )
----
NULL

query I rowsort
SELECT + 53 * 88 * ( + 99 ) * + 57
----
26318952

query I rowsort
SELECT - 23 + - 31 + + - 99 * - + 42 AS col0
----
4104

query II rowsort
SELECT DISTINCT 28 AS col1, 93 AS col2
----
28
93

query I rowsort
SELECT DISTINCT - - 94 * + - 43 AS col1
----
-4042

query I rowsort
SELECT DISTINCT - - 68 * + 93
----
6324

query I rowsort
SELECT - - 53 + 33
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT - SUM( DISTINCT - + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - SUM ( DISTINCT - + 21 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4852
SELECT ALL - + 2 * MIN( ALL + 73 ) + 84 AS col1, - 26 - + COUNT( DISTINCT + 66 ) * - 91 AS col2
----
-62
65

skipif mysql # not compatible
query II rowsort label-4852
SELECT ALL - + 2 * MIN ( ALL + 73 ) + 84 AS col1, - 26 - + COUNT ( DISTINCT + 66 ) * - 91 AS col2
----
-62
65

query I rowsort
SELECT - 10 * - ( - + ( + 35 ) )
----
-350

query II rowsort
SELECT + 52 * + 47 + 17, 13 AS col1
----
2461
13

query I rowsort
SELECT DISTINCT + ( + - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT - 4 * + CASE - COUNT( * ) WHEN + ( 52 ) + 21 THEN COUNT( * ) END AS col2, MIN( ALL 47 ) AS col1
----
NULL
47

skipif mysql # not compatible
query II rowsort label-4856
SELECT - 4 * + CASE - COUNT ( * ) WHEN + ( 52 ) + 21 THEN COUNT ( * ) END AS col2, MIN ( ALL 47 ) AS col1
----
NULL
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT DISTINCT + 29 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT + 29 / + 96
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT ( + 17 ), COALESCE ( + 65, - 92 + + COUNT( * ) * + 17 + + 65 ) * + + 37 + - 97 * - 66 col1
----
17
8807

skipif mysql # not compatible
query II rowsort label-4858
SELECT ( + 17 ), COALESCE ( + 65, - 92 + + COUNT ( * ) * + 17 + + 65 ) * + + 37 + - 97 * - 66 col1
----
17
8807

query I rowsort
SELECT - 68 + - 7
----
-75

query I rowsort
SELECT DISTINCT + 35 * + 91 + 73 AS col0
----
3258

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT - 20 DIV 77 + + 30
----
30

skipif mysql # not compatible
query I rowsort label-4861
SELECT - 20 / 77 + + 30
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4862
SELECT ( - 63 ) AS col1, + CASE + 57 WHEN - 78 + 51 + - NULLIF ( 29, 86 + + 59 ) / COUNT( * ) * - 64 * COALESCE ( - + 53, - ( - + COALESCE ( + CASE - 55 WHEN 55 * - 8 THEN + COALESCE ( 63, 27 - + ( + 6 ) + + + ( + + COUNT( * ) ) * - NULLIF ( + ( - ( - - CASE CASE - + 93 WHEN + CAST( 75 AS DECIMAL ) * - CAST( 24 AS SIGNED ) * AVG ( 64 ) + + 54 + NULLIF ( - 17, 3 / + 19 ) THEN COALESCE ( + 80, + ( 3 ) * - COUNT( * ) ) WHEN + 2 * + 51 THEN - 42 / + 22 + CAST( NULL AS SIGNED ) ELSE ( 7 ) * 28 END WHEN 71 + 33 THEN NULL ELSE - 68 * COALESCE ( + 59, COUNT( * ) ) END ) ), - 94 ) + 8 ) END, + 99 + + 60 ) ) * 54 + 1 * - 11 ) * - COUNT( * ) THEN + COUNT( * ) WHEN + COUNT( DISTINCT 1 ) + NULLIF ( - 67, COUNT( * ) * - 77 ) THEN NULL END + - 17
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-4862
SELECT ( - 63 ) AS col1, + CASE + 57 WHEN - 78 + 51 + - NULLIF ( 29, 86 + + 59 ) / COUNT ( * ) * - 64 * COALESCE ( - + 53, - ( - + COALESCE ( + CASE - 55 WHEN 55 * - 8 THEN + COALESCE ( 63, 27 - + ( + 6 ) + + + ( + + COUNT ( * ) ) * - NULLIF ( + ( - ( - - CASE CASE - + 93 WHEN + CAST ( 75 AS REAL ) * - CAST ( 24 AS INTEGER ) * AVG ( 64 ) + + 54 + NULLIF ( - 17, 3 / + 19 ) THEN COALESCE ( + 80, + ( 3 ) * - COUNT ( * ) ) WHEN + 2 * + 51 THEN - 42 / + 22 + CAST ( NULL AS INTEGER ) ELSE ( 7 ) * 28 END WHEN 71 + 33 THEN NULL ELSE - 68 * COALESCE ( + 59, COUNT ( * ) ) END ) ), - 94 ) + 8 ) END, + 99 + + 60 ) ) * 54 + 1 * - 11 ) * - COUNT ( * ) THEN + COUNT ( * ) WHEN + COUNT ( DISTINCT 1 ) + NULLIF ( - 67, COUNT ( * ) * - 77 ) THEN NULL END + - 17
----
-63
NULL

query I rowsort
SELECT - 8 * 23 * + - 72 * + 31
----
410688

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT + 14 + + + 8 * COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-4864
SELECT + 14 + + + 8 * COUNT ( * )
----
22

query I rowsort
SELECT DISTINCT - 39 * - 83 AS col0
----
3237

query II rowsort
SELECT + 49 * - - 33 AS col0, + 43
----
1617
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL 55 * NULLIF ( COUNT( * ), + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL 55 * NULLIF ( COUNT ( * ), + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT NULLIF ( - + 9, + - 69 * + + 39 * + - 0 - COUNT( * ) ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4868
SELECT NULLIF ( - + 9, + - 69 * + + 39 * + - 0 - COUNT ( * ) ) AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4869
SELECT ALL 88 * - 71 - - NULLIF ( - ( + - 99 ), + 32 * CAST( NULL AS SIGNED ) ) - + + 55, 64 AS col0
----
-6204
64

skipif mysql # not compatible
query II rowsort label-4869
SELECT ALL 88 * - 71 - - NULLIF ( - ( + - 99 ), + 32 * CAST ( NULL AS INTEGER ) ) - + + 55, 64 AS col0
----
-6204
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT - 78 * - COUNT( ALL 35 )
----
78

skipif mysql # not compatible
query I rowsort label-4870
SELECT - 78 * - COUNT ( ALL 35 )
----
78

query I rowsort
SELECT DISTINCT - ( NULLIF ( + + 96, - 35 ) ) * + 58
----
-5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL + ( ( CAST( - 76 AS SIGNED ) ) )
----
-76

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL + ( ( CAST ( - 76 AS INTEGER ) ) )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4873
SELECT DISTINCT CASE 86 WHEN - - 48 THEN + 71 + + 71 WHEN - 23 + 23 THEN + 74 + + 15 WHEN 62 THEN + + CAST( + + 56 AS SIGNED ) - - 94 * - ( - 98 ) ELSE + + 84 END * + 65 - 30
----
5430

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT CASE 86 WHEN - - 48 THEN + 71 + + 71 WHEN - 23 + 23 THEN + 74 + + 15 WHEN 62 THEN + + CAST ( + + 56 AS INTEGER ) - - 94 * - ( - 98 ) ELSE + + 84 END * + 65 - 30
----
5430

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT + + 75 * + 82 * - SUM( - + 97 ) AS col2
----
596550

skipif mysql # not compatible
query I rowsort label-4874
SELECT + + 75 * + 82 * - SUM ( - + 97 ) AS col2
----
596550

onlyif mysql # aggregate syntax: 
query II rowsort label-4875
SELECT DISTINCT - CASE - - 0 WHEN - ( CASE - - 38 WHEN - 98 THEN + + ( 9 ) END ) - - 39 THEN - COALESCE ( + COUNT( * ), 92, - 77 ) WHEN - - MAX( DISTINCT + + 67 ) THEN NULL END AS col2, 58 + - 49
----
NULL
9

skipif mysql # not compatible
query II rowsort label-4875
SELECT DISTINCT - CASE - - 0 WHEN - ( CASE - - 38 WHEN - 98 THEN + + ( 9 ) END ) - - 39 THEN - COALESCE ( + COUNT ( * ), 92, - 77 ) WHEN - - MAX ( DISTINCT + + 67 ) THEN NULL END AS col2, 58 + - 49
----
NULL
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4876
SELECT DISTINCT + 31 * + 44 AS col1, 90 * 47 * + + 65 - - - 0 - - 2 + - 86 * + 66 * - 89 + + + 86 + - ( - + 89 ) DIV - COUNT( * ) AS col1
----
1364
780113

skipif mysql # not compatible
query II rowsort label-4876
SELECT DISTINCT + 31 * + 44 AS col1, 90 * 47 * + + 65 - - - 0 - - 2 + - 86 * + 66 * - 89 + + + 86 + - ( - + 89 ) / - COUNT ( * ) AS col1
----
1364
780113

query I rowsort
SELECT DISTINCT - 26 * 42 + + 64 - + 89 - - 82 * - 79 AS col1
----
-7595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4878
SELECT - 1 * 9 DIV - - 38 - + 68 + + COUNT( * ) * - + 14 DIV COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4878
SELECT - 1 * 9 / - - 38 - + 68 + + COUNT ( * ) * - + 14 / COUNT ( * ) AS col0
----
-82

query I rowsort
SELECT + - 6 * - - 20 AS col0
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT + + 48 * + NULLIF ( - CAST( NULL AS SIGNED ), + 0 ) / - + 64 + + 29 + + 79 + - - 94 + + + MAX( + + 18 ) + - 84 + + 16 + + 62 / + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT + + 48 * + NULLIF ( - CAST ( NULL AS INTEGER ), + 0 ) / - + 64 + + 29 + + 79 + - - 94 + + + MAX ( + + 18 ) + - 84 + + 16 + + 62 / + 86 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4881
SELECT ALL 16 * CAST( NULL AS DECIMAL ) / + - 28 * 0 / - 27 * COUNT( * ) + - COUNT( * ) / - 50 + + 50 + - 94 * + - 75 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL 16 * CAST ( NULL AS REAL ) / + - 28 * 0 / - 27 * COUNT ( * ) + - COUNT ( * ) / - 50 + + 50 + - 94 * + - 75 + - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4882
SELECT DISTINCT CASE + + 49 WHEN + CAST( - - 15 AS SIGNED ) + - - 93 * + 95 * + NULLIF ( SUM( - 18 ), 3 / + 32 ) THEN + - 44 WHEN - 43 THEN NULLIF ( + 10, 98 ) ELSE - ( 11 ) END
----
-11

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT CASE + + 49 WHEN + CAST ( - - 15 AS INTEGER ) + - - 93 * + 95 * + NULLIF ( SUM ( - 18 ), 3 / + 32 ) THEN + - 44 WHEN - 43 THEN NULLIF ( + 10, 98 ) ELSE - ( 11 ) END
----
-11

query I rowsort
SELECT DISTINCT + 35 * 51 AS col2
----
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT + 87 * COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-4884
SELECT + 87 * COUNT ( * )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT + 26 + + 51 DIV + 27 + - 52 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4885
SELECT + 26 + + 51 / + 27 + - 52 AS col2
----
-25

query II rowsort
SELECT ( - 79 ) + 98 AS col2, 72
----
19
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT MIN( + 27 ) + NULLIF ( - 36, 32 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4887
SELECT MIN ( + 27 ) + NULLIF ( - 36, 32 ) AS col1
----
-9

query I rowsort
SELECT 31 * + 15 AS col0
----
465

onlyif mysql # DIV for integer division: 
query I rowsort label-4889
SELECT 37 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4889
SELECT 37 / + 83 AS col2
----
0

query I rowsort
SELECT DISTINCT - ( + 36 ) + + 99 AS col2
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-4891
SELECT 93 AS col1, 82 DIV - - 61
----
93
1

skipif mysql # not compatible
query II rowsort label-4891
SELECT 93 AS col1, 82 / - - 61
----
93
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT ALL + 24 + - - COUNT( * ) DIV - 22
----
24

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + 24 + - - COUNT ( * ) / - 22
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4893
SELECT ALL COUNT( * ) DIV - + 46 * 62 * - 94 * - 94
----
0

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL COUNT ( * ) / - + 46 * 62 * - 94 * - 94
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT 27 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT 27 / + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT DISTINCT - COALESCE ( NULLIF ( + MIN( 20 ), COUNT( * ) ), + 67 )
----
-20

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT - COALESCE ( NULLIF ( + MIN ( 20 ), COUNT ( * ) ), + 67 )
----
-20

query I rowsort
SELECT ( + 56 ) * + + 62 + + 75 - + 2
----
3545

query II rowsort
SELECT 93 AS col2, - 47
----
93
-47

query I rowsort
SELECT DISTINCT - CASE + 26 WHEN - 6 THEN NULL ELSE + + ( - 78 ) END AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4899
SELECT + 66 * + 72 - - ( + 49 ) - COUNT( * ) DIV - 45 - + 50 AS col1
----
4751

skipif mysql # not compatible
query I rowsort label-4899
SELECT + 66 * + 72 - - ( + 49 ) - COUNT ( * ) / - 45 - + 50 AS col1
----
4751

onlyif mysql # DIV for integer division: 
query I rowsort label-4900
SELECT ALL + 80 DIV 7
----
11

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL + 80 / 7
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-4901
SELECT ALL - 26 - - 49 DIV + + 40 + + + CASE - - ( - 26 ) WHEN + 23 * 30 THEN 54 ELSE + 94 END + - 28 col0, + ( + + 23 )
----
41
23

skipif mysql # not compatible
query II rowsort label-4901
SELECT ALL - 26 - - 49 / + + 40 + + + CASE - - ( - 26 ) WHEN + 23 * 30 THEN 54 ELSE + 94 END + - 28 col0, + ( + + 23 )
----
41
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT DISTINCT + 62 - ( + 82 ) * - COUNT( * ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT + 62 - ( + 82 ) * - COUNT ( * ) AS col1
----
144

query I rowsort
SELECT 55 + 79 AS col2
----
134

query I rowsort
SELECT DISTINCT - ( - - 57 )
----
-57

query II rowsort
SELECT ALL - + 98 AS col0, 71
----
-98
71

query I rowsort
SELECT ALL 72 * 95 AS col1
----
6840

query I rowsort
SELECT + 19 * + - 8 + 35
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-4908
SELECT ( + 65 ) - + 32 col2, CASE + 25 WHEN - - 72 THEN + COALESCE ( + COALESCE ( - + COALESCE ( - 47, - 83 + - ( + - 63 ) ), - 52 / - + 60, - 41 ), 19 ) + + 16 - + + 26 * + 88 * COALESCE ( + COUNT( * ), - ( 47 ) * + 31 ) / + SUM( ALL - 33 ) END
----
33
NULL

skipif mysql # not compatible
query II rowsort label-4908
SELECT ( + 65 ) - + 32 col2, CASE + 25 WHEN - - 72 THEN + COALESCE ( + COALESCE ( - + COALESCE ( - 47, - 83 + - ( + - 63 ) ), - 52 / - + 60, - 41 ), 19 ) + + 16 - + + 26 * + 88 * COALESCE ( + COUNT ( * ), - ( 47 ) * + 31 ) / + SUM ( ALL - 33 ) END
----
33
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4909
SELECT DISTINCT - CAST( + - 58 AS SIGNED ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT - CAST ( + - 58 AS INTEGER ) AS col0
----
58

query I rowsort
SELECT 42 + 17 + 92 - + 84 AS col1
----
67

query I rowsort
SELECT 1 * + 40 AS col0
----
40

query I rowsort
SELECT ALL + - 52 * - + 63 AS col2
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT - COUNT( * ) + + 38 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4913
SELECT - COUNT ( * ) + + 38 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ( - + 62 ) * NULLIF ( COUNT( * ), - 59 * + 0 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4914
SELECT ( - + 62 ) * NULLIF ( COUNT ( * ), - 59 * + 0 ) AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4915
SELECT ALL + - 60 * + + ( + - 29 ) * - + 84 + + 88 + + - CAST( NULL AS SIGNED ) * + - ( CASE - 86 WHEN - 24 / + COALESCE ( + 50, - ( - + 89 ) * - 29 + + COUNT( * ), 24 ) * - COALESCE ( + + 74, - 37 / + CASE + + 46 WHEN 8 THEN 98 * + AVG ( + CASE - + 72 WHEN - + 88 * 17 THEN 89 END ) WHEN - 99 THEN NULL WHEN + COALESCE ( - COUNT( * ), + 68 ) THEN 23 ELSE - 77 END ) * + 30 + COUNT( ALL + 99 ) + 3 THEN 61 * - 99 ELSE NULL END ) * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL + - 60 * + + ( + - 29 ) * - + 84 + + 88 + + - CAST ( NULL AS INTEGER ) * + - ( CASE - 86 WHEN - 24 / + COALESCE ( + 50, - ( - + 89 ) * - 29 + + COUNT ( * ), 24 ) * - COALESCE ( + + 74, - 37 / + CASE + + 46 WHEN 8 THEN 98 * + AVG ( + CASE - + 72 WHEN - + 88 * 17 THEN 89 END ) WHEN - 99 THEN NULL WHEN + COALESCE ( - COUNT ( * ), + 68 ) THEN 23 ELSE - 77 END ) * + 30 + COUNT ( ALL + 99 ) + 3 THEN 61 * - 99 ELSE NULL END ) * + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT + COUNT( * ) * + 87 * + 50 + - 75
----
4275

skipif mysql # not compatible
query I rowsort label-4916
SELECT + COUNT ( * ) * + 87 * + 50 + - 75
----
4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT ALL 88 + + 65 + - 36 * CAST( 89 AS SIGNED ) AS col1
----
-3051

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL 88 + + 65 + - 36 * CAST ( 89 AS INTEGER ) AS col1
----
-3051

query I rowsort
SELECT - 58 + - 3
----
-61

query I rowsort
SELECT - 71 + 99 AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT ALL COALESCE ( 45, + 70, + + 17 DIV - - 53 + 90 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL COALESCE ( 45, + 70, + + 17 / - - 53 + 90 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT + MAX( 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4921
SELECT + MAX ( 64 ) AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4922
SELECT ( 23 ) + 74 + + 80 DIV - - 95 * + - 39 * 9 * + - CAST( + COUNT( DISTINCT 77 ) AS SIGNED ) + 19 * + 85 * ( + + 16 ) + - 26 AS col2
----
25911

skipif mysql # not compatible
query I rowsort label-4922
SELECT ( 23 ) + 74 + + 80 / - - 95 * + - 39 * 9 * + - CAST ( + COUNT ( DISTINCT 77 ) AS INTEGER ) + 19 * + 85 * ( + + 16 ) + - 26 AS col2
----
25911

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL - 81 + + MIN( - 34 ) * 40
----
-1441

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL - 81 + + MIN ( - 34 ) * 40
----
-1441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4924
SELECT + 38 DIV + - NULLIF ( + - ( - + ( + + 32 ) ), + ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4924
SELECT + 38 / + - NULLIF ( + - ( - + ( + + 32 ) ), + ( + COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT + 7 + + 67 + - 45 + + + 88 * - + COUNT( * ) * - 16 * - 82 AS col2
----
-115427

skipif mysql # not compatible
query I rowsort label-4925
SELECT + 7 + + 67 + - 45 + + + 88 * - + COUNT ( * ) * - 16 * - 82 AS col2
----
-115427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT DISTINCT CAST( NULL AS SIGNED ) * 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 63 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4927
SELECT DISTINCT 51 + + ( - 10 ) + 30 - - + CAST( 73 AS SIGNED ) DIV ( + - MIN( - 93 ) ) DIV + 31 * + 65 * - 35 * 81
----
71

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT 51 + + ( - 10 ) + 30 - - + CAST ( 73 AS INTEGER ) / ( + - MIN ( - 93 ) ) / + 31 * + 65 * - 35 * 81
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4928
SELECT ALL COUNT( * ) + + 47 + ( - 50 ) DIV + 10
----
43

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL COUNT ( * ) + + 47 + ( - 50 ) / + 10
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL 86 + + - CASE - - 42 WHEN - 8 THEN NULL WHEN - - 88 THEN - COUNT( + - ( - + 91 ) ) ELSE NULL END + 70 * + + 45 + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL 86 + + - CASE - - 42 WHEN - 8 THEN NULL WHEN - - 88 THEN - COUNT ( + - ( - + 91 ) ) ELSE NULL END + 70 * + + 45 + 64
----
NULL

query I rowsort
SELECT 56 * + + 12
----
672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4931
SELECT COUNT( ALL + 22 ) DIV + 68 - + - NULLIF ( 97, + NULLIF ( + + 13, - AVG ( ALL - + 43 ) + COUNT( + 40 ) DIV - 35 * - - 19 ) ) * + COUNT( * ) + - 50
----
47

skipif mysql # not compatible
query I rowsort label-4931
SELECT COUNT ( ALL + 22 ) / + 68 - + - NULLIF ( 97, + NULLIF ( + + 13, - AVG ( ALL - + 43 ) + COUNT ( + 40 ) / - 35 * - - 19 ) ) * + COUNT ( * ) + - 50
----
47

query I rowsort
SELECT ALL + 94 - + 66 col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + 61 * + 30 + - + CASE - - 6 WHEN 8 + + + ( + 48 ) / - COUNT( * ) * + - 30 * + + COUNT( * ) * + AVG ( - 82 ) THEN - 97 ELSE + 48 END
----
1782

skipif mysql # not compatible
query I rowsort label-4933
SELECT + 61 * + 30 + - + CASE - - 6 WHEN 8 + + + ( + 48 ) / - COUNT ( * ) * + - 30 * + + COUNT ( * ) * + AVG ( - 82 ) THEN - 97 ELSE + 48 END
----
1782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4934
SELECT 85 * - 35 + - COUNT( * ) DIV NULLIF ( + - 97, 48 - + + 46 ) + 44 AS col2
----
-2931

skipif mysql # not compatible
query I rowsort label-4934
SELECT 85 * - 35 + - COUNT ( * ) / NULLIF ( + - 97, 48 - + + 46 ) + 44 AS col2
----
-2931

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT ALL 96 - + - 82 * + COUNT( * ) AS col1
----
178

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL 96 - + - 82 * + COUNT ( * ) AS col1
----
178

query I rowsort
SELECT DISTINCT 5 * ( + 52 ) + 5 * - 6 AS col2
----
230

onlyif mysql # aggregate syntax: 
query II rowsort label-4937
SELECT ALL - + 0 * + 68 AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-4937
SELECT ALL - + 0 * + 68 AS col2, COUNT ( * )
----
0
1

query I rowsort
SELECT 54 + - 30
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4939
SELECT + ( + 98 ) DIV - - COUNT( * ) + + + 36 + 58 + - - 77
----
269

skipif mysql # not compatible
query I rowsort label-4939
SELECT + ( + 98 ) / - - COUNT ( * ) + + + 36 + 58 + - - 77
----
269

query I rowsort
SELECT 56 * + - 20 AS col0
----
-1120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4941
SELECT + CASE 42 WHEN 38 * - 73 * - ( - 16 ) THEN + ( 78 ) WHEN + SUM( + - 15 ) + + - 91 THEN + 98 + 15 ELSE 31 + + 0 END * 57 + + 61 + 25 + - - ( 33 ) * + - 69 * + 31 + - + 36 DIV + 52 * + 68 * + 42 * 73
----
-68734

skipif mysql # not compatible
query I rowsort label-4941
SELECT + CASE 42 WHEN 38 * - 73 * - ( - 16 ) THEN + ( 78 ) WHEN + SUM ( + - 15 ) + + - 91 THEN + 98 + 15 ELSE 31 + + 0 END * 57 + + 61 + 25 + - - ( 33 ) * + - 69 * + 31 + - + 36 / + 52 * + 68 * + 42 * 73
----
-68734

query I rowsort
SELECT - 6 * 6
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4943
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4944
SELECT DISTINCT - 37 DIV 15 * 38
----
-76

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT - 37 / 15 * 38
----
-76

query I rowsort
SELECT DISTINCT - + 54 col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT 94 + - - COUNT( * ) * - - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT 94 + - - COUNT ( * ) * - - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT 25 * COUNT( * ) DIV 5 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4947
SELECT 25 * COUNT ( * ) / 5 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4948
SELECT CASE 51 WHEN + 46 * + + 60 THEN NULL WHEN + 92 + 45 + + 78 + + CAST( NULL AS SIGNED ) * 98 * + 82 * 7 THEN NULL ELSE + 1 DIV + 52 * CAST( + 26 AS SIGNED ) + - 75 + ( COUNT( * ) ) END AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4948
SELECT CASE 51 WHEN + 46 * + + 60 THEN NULL WHEN + 92 + 45 + + 78 + + CAST ( NULL AS INTEGER ) * 98 * + 82 * 7 THEN NULL ELSE + 1 / + 52 * CAST ( + 26 AS INTEGER ) + - 75 + ( COUNT ( * ) ) END AS col0
----
-74

query I rowsort
SELECT ALL + 85 + + 15 AS col1
----
100

query I rowsort
SELECT - 8 * - - 72 + - - 87
----
-489

query I rowsort
SELECT ALL + ( + + 69 ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT DISTINCT + - SUM( - 87 ) + - 98 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + - SUM ( - 87 ) + - 98 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) + + - ( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) + + - ( 39 )
----
NULL

query I rowsort
SELECT - 52 - + 61 * 70 - - 48
----
-4274

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT DISTINCT + COUNT( * ) + - 82 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + COUNT ( * ) + - 82 AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4956
SELECT - COUNT( * ) DIV + COALESCE ( - 27, 51 * + COUNT( * ), + 67 * - 65 DIV COUNT( * ) + - 40 ) * + - MAX( - 35 ) * + COUNT( * ) + + 20 + 25
----
45

skipif mysql # not compatible
query I rowsort label-4956
SELECT - COUNT ( * ) / + COALESCE ( - 27, 51 * + COUNT ( * ), + 67 * - 65 / COUNT ( * ) + - 40 ) * + - MAX ( - 35 ) * + COUNT ( * ) + + 20 + 25
----
45

query I rowsort
SELECT ALL + 25 - - 27 * - + 27
----
-704

query I rowsort
SELECT DISTINCT COALESCE ( ( - 40 ), 25, + 66 )
----
-40

query I rowsort
SELECT - 92 + 4 col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT - MIN( DISTINCT - 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4960
SELECT - MIN ( DISTINCT - 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL CASE - - 35 WHEN 48 + 7 THEN - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL CASE - - 35 WHEN 48 + 7 THEN - - COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 68 + - 25 AS col1
----
-93

query I rowsort
SELECT + 74 - - 25
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT + 91 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT + 91 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4965
SELECT DISTINCT 97 * + + 63 * - 43 DIV + COUNT( * ) AS col0
----
-262773

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT 97 * + + 63 * - 43 / + COUNT ( * ) AS col0
----
-262773

query I rowsort
SELECT ALL 32 * - - 20
----
640

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT + 38 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-4967
SELECT + 38 / 92
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4968
SELECT ( - 98 ) * + ( + COUNT( * ) ) + - 11, 41 AS col0
----
-109
41

skipif mysql # not compatible
query II rowsort label-4968
SELECT ( - 98 ) * + ( + COUNT ( * ) ) + - 11, 41 AS col0
----
-109
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT - + COALESCE ( + - 79, - 89 + - - COUNT( * ) ) * COUNT( * ) + - 24 + - 69 * 10 AS col1
----
-635

skipif mysql # not compatible
query I rowsort label-4969
SELECT - + COALESCE ( + - 79, - 89 + - - COUNT ( * ) ) * COUNT ( * ) + - 24 + - 69 * 10 AS col1
----
-635

query II rowsort
SELECT ALL + - 20, - 68 - + 71 col0
----
-20
-139

query II rowsort
SELECT + 90 * + 53 * - + 64, + 63 * - 95 * 68 AS col2
----
-305280
-406980

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT + 51 * - COUNT( * ) - + + 80 * - 31 AS col0
----
2429

skipif mysql # not compatible
query I rowsort label-4972
SELECT + 51 * - COUNT ( * ) - + + 80 * - 31 AS col0
----
2429

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL - MAX( - + 15 ) * + 98 * 27 + + + 24 + + 4 * + 68
----
39986

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - MAX ( - + 15 ) * + 98 * 27 + + + 24 + + 4 * + 68
----
39986

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL + 85 * 48 * + 3 + + CASE - 76 WHEN - COUNT( * ) - 29 THEN NULL WHEN - 91 THEN NULL WHEN - 41 * - 51 THEN + NULLIF ( + 76, ( 13 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + 85 * 48 * + 3 + + CASE - 76 WHEN - COUNT ( * ) - 29 THEN NULL WHEN - 91 THEN NULL WHEN - 41 * - 51 THEN + NULLIF ( + 76, ( 13 ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL - + CAST( NULL AS SIGNED ) * - 18 + - COUNT( * ) + - SUM( - 27 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 18 + - COUNT ( * ) + - SUM ( - 27 ) AS col1
----
NULL

query I rowsort
SELECT + + 69 * - + 73 AS col0
----
-5037

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4977
SELECT ALL - + 91 * + COUNT( * ) + + COUNT( * ), + COALESCE ( 19, - - NULLIF ( - + 29, - 50 ) DIV - AVG ( DISTINCT - 26 ) ) - - 89 AS col1
----
-90
108

skipif mysql # not compatible
query II rowsort label-4977
SELECT ALL - + 91 * + COUNT ( * ) + + COUNT ( * ), + COALESCE ( 19, - - NULLIF ( - + 29, - 50 ) / - AVG ( DISTINCT - 26 ) ) - - 89 AS col1
----
-90
108

query II rowsort
SELECT DISTINCT 5 * 17 * 87 AS col1, 29
----
7395
29

query I rowsort
SELECT ALL 23 * 91 + 56 + + 97
----
2246

query I rowsort
SELECT + ( - 17 ) + - 0 * NULLIF ( + 93, + - 37 ) AS col2
----
-17

query I rowsort
SELECT + 6 + + - 12
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 83 / - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 83 / - 91
----
NULL

query I rowsort
SELECT ALL + 53 * NULLIF ( - - 95, - 61 ) AS col2
----
5035

query I rowsort
SELECT - - 42 + + + 15 AS col1
----
57

query II rowsort
SELECT ALL 54 col0, 94
----
54
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4986
SELECT - 4 + - 38 + - CAST( NULL AS DECIMAL ) - + 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT - 4 + - 38 + - CAST ( NULL AS REAL ) - + 73 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT + 92 * - COUNT( ALL - 0 )
----
-92

skipif mysql # not compatible
query I rowsort label-4987
SELECT + 92 * - COUNT ( ALL - 0 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT - 12 * - SUM( ALL + 58 ) * - COUNT( * ) + - + 83
----
-779

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT - 12 * - SUM ( ALL + 58 ) * - COUNT ( * ) + - + 83
----
-779

query II rowsort
SELECT 9 AS col0, 5 AS col2
----
9
5

query I rowsort
SELECT - 50 + + ( + + ( - 50 ) )
----
-100

query I rowsort
SELECT ALL - 94 - 16 + - + 99 * + 81 AS col1
----
-8129

query I rowsort
SELECT - 62 * + 7 col1
----
-434

query II rowsort
SELECT - 62, 54 + + 29 AS col0
----
-62
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4994
SELECT ALL CAST( + 76 AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL CAST ( + 76 AS INTEGER ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT DISTINCT ( + COALESCE ( - CAST( 96 AS SIGNED ), 36 ) ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT ( + COALESCE ( - CAST ( 96 AS INTEGER ), 36 ) ) AS col1
----
-96

query I rowsort
SELECT ALL - 94 * - 55 col1
----
5170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4997
SELECT - 32 * 16 * - 63 * + ( - - NULLIF ( - + 12, + + CAST( NULL AS SIGNED ) + + 21 ) ) AS col0
----
-387072

skipif mysql # not compatible
query I rowsort label-4997
SELECT - 32 * 16 * - 63 * + ( - - NULLIF ( - + 12, + + CAST ( NULL AS INTEGER ) + + 21 ) ) AS col0
----
-387072

query II rowsort
SELECT 41 col2, 3
----
41
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4999
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + 23 + + ( - 45 ) + - 86 + + - 58 * - + 43 + + COUNT( * )
----
NULL
2387

skipif mysql # not compatible
query II rowsort label-4999
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + 23 + + ( - 45 ) + - 86 + + - 58 * - + 43 + + COUNT ( * )
----
NULL
2387

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT - 79 - + COUNT( - - 36 )
----
-80

skipif mysql # not compatible
query I rowsort label-5000
SELECT - 79 - + COUNT ( - - 36 )
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT DISTINCT - 49 DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT - 49 / - - 96
----
0

query I rowsort
SELECT ALL + 70 * + NULLIF ( - + 96, 11 )
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT - ( + MAX( DISTINCT - 33 ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5003
SELECT - ( + MAX ( DISTINCT - 33 ) ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5004
SELECT DISTINCT - 74 DIV - 22 + - - 38 - 19 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT - 74 / - 22 + - - 38 - 19 AS col1
----
22

query II rowsort
SELECT + 30 col1, 23 * - - 69 AS col0
----
30
1587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5006
SELECT ALL - 45 DIV ( - 71 ) + - - COUNT( DISTINCT ( 75 ) ) * + NULLIF ( 86, + - COALESCE ( - 6, + CAST( + 11 AS SIGNED ), + 41 - + 24 ) + + 58 ) DIV + - MAX( + + 23 )
----
-3

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL - 45 / ( - 71 ) + - - COUNT ( DISTINCT ( 75 ) ) * + NULLIF ( 86, + - COALESCE ( - 6, + CAST ( + 11 AS INTEGER ), + 41 - + 24 ) + + 58 ) / + - MAX ( + + 23 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT + CAST( NULL AS SIGNED ) * + 60 + + ( - COALESCE ( - COUNT( * ), - CASE 36 WHEN + ( + 69 ) THEN 39 * + + 51 + 55 / - MAX( 59 ) WHEN - 50 + COUNT( * ) + - CAST( NULL AS SIGNED ) THEN + - 9 END ) ) + - COUNT( * ) + + 51 - + 9 + + + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT + CAST ( NULL AS INTEGER ) * + 60 + + ( - COALESCE ( - COUNT ( * ), - CASE 36 WHEN + ( + 69 ) THEN 39 * + + 51 + 55 / - MAX ( 59 ) WHEN - 50 + COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN + - 9 END ) ) + - COUNT ( * ) + + 51 - + 9 + + + 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5008
SELECT DISTINCT + 30 DIV - 64 + - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT + 30 / - 64 + - + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5009
SELECT ALL - + 53 *